@starasia/admin 6.3.4 → 6.5.0

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
@@ -22,12 +22,12 @@ import { searchParamsToObject as Pe } from "@starasia/http";
22
22
  export * from "@starasia/http";
23
23
  import { Input as gt } from "@starasia/input";
24
24
  export * from "@starasia/input";
25
- import { Menu as jt, MenuButton as Ue, MenuLists as Zt, MenuHeading as cr, MenuBody as $t, MenuFooter as ar } from "@starasia/menu";
25
+ import { Menu as jt, MenuButton as Ge, MenuLists as Zt, MenuHeading as cr, MenuBody as $t, MenuFooter as ar } from "@starasia/menu";
26
26
  export * from "@starasia/menu";
27
27
  import { Pagination as sr } from "@starasia/pagination";
28
28
  export * from "@starasia/pagination";
29
29
  export * from "@starasia/storage";
30
- import { Tr as Ve, Td as Se, Table as Ut, Thead as dr, Th as St, Tbody as ur } from "@starasia/table";
30
+ import { Tr as Re, Td as Se, Table as Gt, Thead as dr, Th as St, Tbody as ur } from "@starasia/table";
31
31
  export * from "@starasia/table";
32
32
  export * from "@starasia/tabs";
33
33
  import { Textarea as hr } from "@starasia/textarea";
@@ -35,7 +35,7 @@ export * from "@starasia/textarea";
35
35
  import { useTheme as fr, ThemeProvider as Ft, useColor as gr } from "@starasia/theme";
36
36
  export * from "@starasia/theme";
37
37
  export * from "@starasia/toast";
38
- import { Toggle as Gt } from "@starasia/toggle";
38
+ import { Toggle as Ut } from "@starasia/toggle";
39
39
  export * from "@starasia/toggle";
40
40
  import { Tooltip as me } from "@starasia/tooltip";
41
41
  export * from "@starasia/tooltip";
@@ -45,20 +45,20 @@ import { Radio as mr } from "@starasia/radio";
45
45
  export * from "@starasia/radio";
46
46
  import { Text as v } from "@starasia/text";
47
47
  export * from "@starasia/text";
48
- import { Icon as w } from "@starasia/icon";
48
+ import { Icon as b } from "@starasia/icon";
49
49
  export * from "@starasia/icon";
50
- import { Flex as U } from "@starasia/flex";
50
+ import { Flex as $ } from "@starasia/flex";
51
51
  export * from "@starasia/flex";
52
52
  export * from "@starasia/progress";
53
53
  export * from "@starasia/stepper";
54
54
  export * from "@starasia/accordion";
55
55
  export * from "@starasia/story-record";
56
- import { Skeleton as Re } from "@starasia/skeleton";
56
+ import { Skeleton as ze } from "@starasia/skeleton";
57
57
  export * from "@starasia/skeleton";
58
58
  export * from "@starasia/progress-stepper";
59
- import { jsx as e, Fragment as G, jsxs as u } from "react/jsx-runtime";
60
- import Ge, { createContext as Qe, useState as k, useContext as Be, useCallback as ve, useMemo as he, memo as ce, useEffect as Z, useRef as ie, useLayoutEffect as at, isValidElement as st, forwardRef as qt, Children as yr, useImperativeHandle as pr } from "react";
61
- import { useSearchParams as Ye, useNavigate as mt, useLocation as ze, Outlet as Et, Link as qe, useParams as Jt } from "react-router";
59
+ import { jsx as e, Fragment as U, jsxs as u } from "react/jsx-runtime";
60
+ import Ue, { createContext as Qe, useState as k, useContext as We, useCallback as ve, useMemo as he, memo as ce, useEffect as Z, useRef as ie, useLayoutEffect as at, isValidElement as st, forwardRef as qt, Children as yr, useImperativeHandle as pr } from "react";
61
+ import { useSearchParams as Ye, useNavigate as mt, useLocation as Ve, Outlet as Et, Link as qe, useParams as Jt } from "react-router";
62
62
  import xr, { createPortal as Pt } from "react-dom";
63
63
  import Cr from "react-easy-crop";
64
64
  const vr = {
@@ -69,7 +69,7 @@ const vr = {
69
69
  userData: null,
70
70
  setUserData: () => {
71
71
  }
72
- }, Qt = Qe(vr), Yt = () => Be(Qt), Dr = (t) => {
72
+ }, Qt = Qe(vr), Yt = () => We(Qt), Dr = (t) => {
73
73
  const [r, i] = k(
74
74
  (t == null ? void 0 : t.initialUserData) || null
75
75
  );
@@ -112,7 +112,7 @@ const vr = {
112
112
  [r, n, o, l]
113
113
  );
114
114
  return /* @__PURE__ */ e(Xt.Provider, { value: s, children: t });
115
- }, wr = () => Be(Xt), rt = (t, r) => {
115
+ }, wr = () => We(Xt), rt = (t, r) => {
116
116
  const i = r !== void 0 ? r : t;
117
117
  return i == null ? null : typeof i == "string" || typeof i == "number" ? { value: i } : i;
118
118
  }, kr = ({
@@ -139,7 +139,7 @@ const vr = {
139
139
  children: /* @__PURE__ */ e(br, { children: s ? /* @__PURE__ */ e(Ft, { value: s, children: t }) : h ? /* @__PURE__ */ e(Ft, { value: h, children: t }) : t })
140
140
  }
141
141
  );
142
- }, Rn = ce(kr);
142
+ }, zn = ce(kr);
143
143
  function Sr({
144
144
  collapsed: t = !1,
145
145
  children: r
@@ -198,18 +198,18 @@ function Fr({ children: t }) {
198
198
  );
199
199
  }
200
200
  function Er({ children: t }) {
201
- const r = Be(yt);
202
- return r ? /* @__PURE__ */ u(G, { children: [
201
+ const r = We(yt);
202
+ return r ? /* @__PURE__ */ u(U, { children: [
203
203
  /* @__PURE__ */ e("div", { ref: r.setPrependNode, style: { display: "contents" } }),
204
204
  r.replaceCount > 0 ? /* @__PURE__ */ e("div", { ref: r.setReplaceNode, style: { display: "contents" } }) : t,
205
205
  /* @__PURE__ */ e("div", { ref: r.setAppendNode, style: { display: "contents" } })
206
- ] }) : /* @__PURE__ */ e(G, { children: t });
206
+ ] }) : /* @__PURE__ */ e(U, { children: t });
207
207
  }
208
- function Vn({
208
+ function Rn({
209
209
  children: t,
210
210
  mode: r = "append"
211
211
  }) {
212
- const i = Be(yt);
212
+ const i = We(yt);
213
213
  if (Z(() => {
214
214
  if (!(r !== "replace" || !i))
215
215
  return i.registerReplace();
@@ -234,7 +234,7 @@ function Mr({ children: t }) {
234
234
  return /* @__PURE__ */ e(pt.Provider, { value: a, children: t });
235
235
  }
236
236
  function Lr({ slotKey: t, fallback: r }) {
237
- const i = Be(pt), o = i ? (i.slotCounts[t] ?? 0) > 0 : !1, n = ie(i == null ? void 0 : i.setOutletNode);
237
+ const i = We(pt), o = i ? (i.slotCounts[t] ?? 0) > 0 : !1, n = ie(i == null ? void 0 : i.setOutletNode);
238
238
  n.current = i == null ? void 0 : i.setOutletNode;
239
239
  const l = ve(
240
240
  (s) => {
@@ -244,10 +244,10 @@ function Lr({ slotKey: t, fallback: r }) {
244
244
  [t]
245
245
  // slotKey is a stable string from group config
246
246
  );
247
- return /* @__PURE__ */ e(G, { children: o ? /* @__PURE__ */ e("div", { ref: l, style: { display: "contents" } }) : r });
247
+ return /* @__PURE__ */ e(U, { children: o ? /* @__PURE__ */ e("div", { ref: l, style: { display: "contents" } }) : r });
248
248
  }
249
- function zn({ slotKey: t, children: r }) {
250
- const i = Be(pt), o = ie(i == null ? void 0 : i.registerSlot);
249
+ function Vn({ slotKey: t, children: r }) {
250
+ const i = We(pt), o = ie(i == null ? void 0 : i.registerSlot);
251
251
  if (o.current = i == null ? void 0 : i.registerSlot, Z(() => {
252
252
  var l;
253
253
  return (l = o.current) == null ? void 0 : l.call(o, t);
@@ -290,7 +290,7 @@ function er() {
290
290
  } };
291
291
  }
292
292
  let Ze = 0, ke = !1, Lt = /* @__PURE__ */ new Set();
293
- const Bt = () => /* @__PURE__ */ u(
293
+ const Wt = () => /* @__PURE__ */ u(
294
294
  "svg",
295
295
  {
296
296
  width: "100%",
@@ -307,7 +307,7 @@ const Bt = () => /* @__PURE__ */ u(
307
307
  /* @__PURE__ */ e("line", { x1: "6", y1: "1.667", x2: "6", y2: "14.333" })
308
308
  ]
309
309
  }
310
- ), Wt = {
310
+ ), Bt = {
311
311
  width: "100%",
312
312
  display: "flex",
313
313
  alignItems: "center",
@@ -340,9 +340,9 @@ function Tn({
340
340
  logoutButton: y
341
341
  }) {
342
342
  var Ee, _e;
343
- const [D] = Ye(), E = D.get("embed") === "true", x = Yt(), { badges: R } = wr(), j = mt(), N = ze(), M = !ne("md"), [ae, J] = k(!1), [I, P] = k(!1), [oe, le] = k(!1), [$, Q] = k(!1), [K, se] = k(
343
+ const [D] = Ye(), E = D.get("embed") === "true", x = Yt(), { badges: z } = wr(), j = mt(), N = Ve(), M = !ne("md"), [ae, J] = k(!1), [I, P] = k(!1), [oe, le] = k(!1), [G, Q] = k(!1), [K, se] = k(
344
344
  () => new Set(Lt)
345
- ), [ee, X] = k(null), { selectedGroupId: V, setSelectedGroupId: z } = er();
345
+ ), [ee, X] = k(null), { selectedGroupId: R, setSelectedGroupId: V } = er();
346
346
  Z(() => {
347
347
  Lt = K;
348
348
  }, [K]);
@@ -390,7 +390,7 @@ function Tn({
390
390
  }, [N.pathname, M]), Z(() => {
391
391
  M && P(!0);
392
392
  }, [M]);
393
- const We = () => {
393
+ const Be = () => {
394
394
  J(!0);
395
395
  }, Ne = () => {
396
396
  J(!1);
@@ -412,8 +412,8 @@ function Tn({
412
412
  const p = (L) => {
413
413
  var C;
414
414
  (C = L.children) != null && C.some((S) => N.pathname.startsWith(S.to)) && se((S) => {
415
- const b = new Set(S);
416
- return b.add(L.id), b;
415
+ const w = new Set(S);
416
+ return w.add(L.id), w;
417
417
  });
418
418
  };
419
419
  x.menus.forEach((L) => {
@@ -427,31 +427,31 @@ function Tn({
427
427
  });
428
428
  };
429
429
  Z(() => {
430
- x.menus.length !== 0 && V !== null && !x.menus.some((p) => p.id === V) && z(null);
431
- }, [x.menus, V, z]);
430
+ x.menus.length !== 0 && R !== null && !x.menus.some((p) => p.id === R) && V(null);
431
+ }, [x.menus, R, V]);
432
432
  const Ie = he(() => {
433
- if (V !== null)
433
+ if (R !== null)
434
434
  return x.menus.filter(
435
- (L) => L.id === V || L.parentGroupId === V
435
+ (L) => L.id === R || L.parentGroupId === R
436
436
  );
437
437
  const p = x.menus.filter((L) => L.parentGroupId === void 0), F = x.menus.filter((L) => L.parentGroupId !== void 0).flatMap((L) => L.items);
438
438
  return F.length === 0 ? p : [
439
439
  ...p,
440
440
  { id: 18, name: "Pengaturan", items: F, parentGroupId: void 0 }
441
441
  ];
442
- }, [x.menus, V]);
442
+ }, [x.menus, R]);
443
443
  if (E)
444
444
  return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(Et, {}) });
445
445
  const Fe = (p) => {
446
- const F = p.children && p.children.length > 0, L = K.has(p.id), C = F ? p.children.some((W) => de(W.to)) : de(p.to), S = rt(p.badge, R[p.id]), b = !!S && I && !M;
446
+ const F = p.children && p.children.length > 0, L = K.has(p.id), C = F ? p.children.some((B) => de(B.to)) : de(p.to), S = rt(p.badge, z[p.id]), w = !!S && I && !M;
447
447
  return /* @__PURE__ */ u("div", { "data-menu-active": C || void 0, children: [
448
448
  /* @__PURE__ */ u(
449
449
  "button",
450
450
  {
451
- onClick: (W) => {
451
+ onClick: (B) => {
452
452
  if (F)
453
453
  if (I && !M) {
454
- const H = W.currentTarget.getBoundingClientRect();
454
+ const H = B.currentTarget.getBoundingClientRect();
455
455
  X({
456
456
  item: p,
457
457
  top: H.top,
@@ -481,11 +481,11 @@ function Tn({
481
481
  cursor: "pointer"
482
482
  },
483
483
  title: I && !M ? p.title : void 0,
484
- onMouseEnter: (W) => {
485
- C || (W.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
484
+ onMouseEnter: (B) => {
485
+ C || (B.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
486
486
  },
487
- onMouseLeave: (W) => {
488
- C || (W.currentTarget.style.backgroundColor = "transparent");
487
+ onMouseLeave: (B) => {
488
+ C || (B.currentTarget.style.backgroundColor = "transparent");
489
489
  },
490
490
  children: [
491
491
  /* @__PURE__ */ u(
@@ -497,8 +497,8 @@ function Tn({
497
497
  flexShrink: 0
498
498
  },
499
499
  children: [
500
- /* @__PURE__ */ e(w, { name: p.icon, size: "sm", style: { flexShrink: 0 } }),
501
- b && /* @__PURE__ */ e(
500
+ /* @__PURE__ */ e(b, { name: p.icon, size: "sm", style: { flexShrink: 0 } }),
501
+ w && /* @__PURE__ */ e(
502
502
  "span",
503
503
  {
504
504
  "aria-hidden": "true",
@@ -517,7 +517,7 @@ function Tn({
517
517
  ]
518
518
  }
519
519
  ),
520
- (!I || M) && /* @__PURE__ */ u(G, { children: [
520
+ (!I || M) && /* @__PURE__ */ u(U, { children: [
521
521
  /* @__PURE__ */ e(
522
522
  "span",
523
523
  {
@@ -572,7 +572,7 @@ function Tn({
572
572
  }
573
573
  ),
574
574
  F && (!I || M) && (() => {
575
- const W = p.children.findIndex(
575
+ const B = p.children.findIndex(
576
576
  (H) => de(H.to)
577
577
  );
578
578
  return /* @__PURE__ */ u(
@@ -604,14 +604,14 @@ function Tn({
604
604
  }
605
605
  }
606
606
  ),
607
- W >= 0 && /* @__PURE__ */ e(
607
+ B >= 0 && /* @__PURE__ */ e(
608
608
  "span",
609
609
  {
610
610
  "aria-hidden": "true",
611
611
  style: {
612
612
  position: "absolute",
613
613
  left: 0,
614
- top: `${W * 32}px`,
614
+ top: `${B * 32}px`,
615
615
  width: "1.5px",
616
616
  height: "32px",
617
617
  backgroundColor: "var(--sa-text-primary, #292a2e)",
@@ -624,7 +624,7 @@ function Tn({
624
624
  p.children.map((H) => {
625
625
  const ue = rt(
626
626
  H.badge,
627
- R[H.id]
627
+ z[H.id]
628
628
  );
629
629
  return /* @__PURE__ */ u(
630
630
  "button",
@@ -655,7 +655,7 @@ function Tn({
655
655
  },
656
656
  children: [
657
657
  /* @__PURE__ */ e(
658
- w,
658
+ b,
659
659
  {
660
660
  name: H.icon,
661
661
  size: "sm",
@@ -760,8 +760,8 @@ function Tn({
760
760
  position: "relative"
761
761
  },
762
762
  children: (() => {
763
- const p = !M && I && !oe, F = p && $;
764
- return /* @__PURE__ */ u(G, { children: [
763
+ const p = !M && I && !oe, F = p && G;
764
+ return /* @__PURE__ */ u(U, { children: [
765
765
  /* @__PURE__ */ u(
766
766
  "div",
767
767
  {
@@ -822,7 +822,7 @@ function Tn({
822
822
  cursor: "pointer",
823
823
  flexShrink: 0
824
824
  },
825
- children: /* @__PURE__ */ e(Bt, {})
825
+ children: /* @__PURE__ */ e(Wt, {})
826
826
  }
827
827
  ),
828
828
  p && /* @__PURE__ */ e(
@@ -859,7 +859,7 @@ function Tn({
859
859
  height: "1rem",
860
860
  display: "inline-flex"
861
861
  },
862
- children: /* @__PURE__ */ e(Bt, {})
862
+ children: /* @__PURE__ */ e(Wt, {})
863
863
  }
864
864
  )
865
865
  }
@@ -1047,7 +1047,7 @@ function Tn({
1047
1047
  /* @__PURE__ */ u("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
1048
1048
  h,
1049
1049
  /* @__PURE__ */ u(jt, { position: "bottom-right", children: [
1050
- /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ u(
1050
+ /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ u(
1051
1051
  "div",
1052
1052
  {
1053
1053
  style: {
@@ -1109,7 +1109,7 @@ function Tn({
1109
1109
  }
1110
1110
  ),
1111
1111
  /* @__PURE__ */ e(
1112
- w,
1112
+ b,
1113
1113
  {
1114
1114
  name: "ChevronDown",
1115
1115
  size: "sm",
@@ -1211,12 +1211,12 @@ function Tn({
1211
1211
  }
1212
1212
  ) }),
1213
1213
  (g && g.length > 0 || m) && /* @__PURE__ */ u($t, { children: [
1214
- g == null ? void 0 : g.map((p, F) => /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ u(
1214
+ g == null ? void 0 : g.map((p, F) => /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ u(
1215
1215
  "button",
1216
1216
  {
1217
1217
  type: "button",
1218
1218
  onClick: p.onClick,
1219
- style: Wt,
1219
+ style: Bt,
1220
1220
  onMouseEnter: (L) => {
1221
1221
  L.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)";
1222
1222
  },
@@ -1224,20 +1224,20 @@ function Tn({
1224
1224
  L.currentTarget.style.backgroundColor = "transparent";
1225
1225
  },
1226
1226
  children: [
1227
- /* @__PURE__ */ e(w, { name: p.icon, size: "md" }),
1227
+ /* @__PURE__ */ e(b, { name: p.icon, size: "md" }),
1228
1228
  /* @__PURE__ */ e("span", { children: p.label })
1229
1229
  ]
1230
1230
  }
1231
1231
  ) }, `${p.label}-${F}`)),
1232
1232
  m
1233
1233
  ] }),
1234
- y ?? /* @__PURE__ */ e(ar, { children: /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ u(
1234
+ y ?? /* @__PURE__ */ e(ar, { children: /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ u(
1235
1235
  "button",
1236
1236
  {
1237
1237
  type: "button",
1238
- onClick: We,
1238
+ onClick: Be,
1239
1239
  style: {
1240
- ...Wt,
1240
+ ...Bt,
1241
1241
  color: "var(--sa-background-error, #c9184a)",
1242
1242
  fontWeight: 500
1243
1243
  },
@@ -1249,7 +1249,7 @@ function Tn({
1249
1249
  },
1250
1250
  children: [
1251
1251
  /* @__PURE__ */ e(
1252
- w,
1252
+ b,
1253
1253
  {
1254
1254
  name: "Logout",
1255
1255
  size: "md",
@@ -1303,12 +1303,12 @@ function Tn({
1303
1303
  /* @__PURE__ */ u(ut, { isShow: ae, onHide: Ne, children: [
1304
1304
  /* @__PURE__ */ e(Ot, { children: "Confirmation Logout" }),
1305
1305
  /* @__PURE__ */ e(ht, { children: "Are you sure you want to end the session and exit the page?" }),
1306
- /* @__PURE__ */ e(_t, { children: /* @__PURE__ */ e(f, { display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ u(U, { direction: "row", gap: "sm", align: "center", children: [
1306
+ /* @__PURE__ */ e(_t, { children: /* @__PURE__ */ e(f, { display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ u($, { direction: "row", gap: "sm", align: "center", children: [
1307
1307
  /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(T, { secondary: !0, onClick: Ne, children: "Cancel" }) }),
1308
1308
  /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(T, { primary: !0, onClick: et, children: "Yes, Sure" }) })
1309
1309
  ] }) }) })
1310
1310
  ] }),
1311
- ee && /* @__PURE__ */ u(G, { children: [
1311
+ ee && /* @__PURE__ */ u(U, { children: [
1312
1312
  /* @__PURE__ */ e(
1313
1313
  "div",
1314
1314
  {
@@ -1360,7 +1360,7 @@ function Tn({
1360
1360
  (_e = ee.item.children) == null ? void 0 : _e.map((p) => {
1361
1361
  const F = de(p.to), L = rt(
1362
1362
  p.badge,
1363
- R[p.id]
1363
+ z[p.id]
1364
1364
  );
1365
1365
  return /* @__PURE__ */ u(
1366
1366
  "button",
@@ -1391,7 +1391,7 @@ function Tn({
1391
1391
  },
1392
1392
  children: [
1393
1393
  p.icon && /* @__PURE__ */ e(
1394
- w,
1394
+ b,
1395
1395
  {
1396
1396
  name: p.icon,
1397
1397
  size: "sm",
@@ -1419,7 +1419,7 @@ function Tn({
1419
1419
  ] })
1420
1420
  ] }) });
1421
1421
  }
1422
- const Br = ({ children: t, ...r }) => /* @__PURE__ */ e(
1422
+ const Wr = ({ children: t, ...r }) => /* @__PURE__ */ e(
1423
1423
  f,
1424
1424
  {
1425
1425
  role: "button",
@@ -1430,7 +1430,7 @@ const Br = ({ children: t, ...r }) => /* @__PURE__ */ e(
1430
1430
  ...r,
1431
1431
  children: t
1432
1432
  }
1433
- ), Xe = ce(Br), At = ({
1433
+ ), Xe = ce(Wr), At = ({
1434
1434
  title: t,
1435
1435
  iconName: r,
1436
1436
  textColor: i,
@@ -1450,7 +1450,7 @@ const Br = ({ children: t, ...r }) => /* @__PURE__ */ e(
1450
1450
  style: { cursor: "pointer" },
1451
1451
  children: [
1452
1452
  /* @__PURE__ */ e(
1453
- w,
1453
+ b,
1454
1454
  {
1455
1455
  name: r || "ChevronLeft",
1456
1456
  size: "xs",
@@ -1474,7 +1474,7 @@ const Br = ({ children: t, ...r }) => /* @__PURE__ */ e(
1474
1474
  ]
1475
1475
  }
1476
1476
  );
1477
- }, Wr = ({
1477
+ }, Br = ({
1478
1478
  items: t,
1479
1479
  separator: r = "/",
1480
1480
  iconName: i,
@@ -1482,7 +1482,7 @@ const Br = ({ children: t, ...r }) => /* @__PURE__ */ e(
1482
1482
  hoverIconColor: n
1483
1483
  }) => {
1484
1484
  const [l, s] = k(!1), a = o ?? "var(--sa-text-subtle, #8c8f97)", h = n ?? "var(--sa-text-subtle, #8c8f97)", d = t.length > 1 ? t[0] : void 0, g = !!(d != null && d.to || d != null && d.onClick), m = /* @__PURE__ */ e(
1485
- w,
1485
+ b,
1486
1486
  {
1487
1487
  name: i || "ChevronLeft",
1488
1488
  size: "xs",
@@ -1505,7 +1505,7 @@ const Br = ({ children: t, ...r }) => /* @__PURE__ */ e(
1505
1505
  }, On = (t) => {
1506
1506
  const { items: r, separator: i, onClick: o, navigateTo: n, ...l } = t;
1507
1507
  return r && r.length > 0 ? /* @__PURE__ */ e(
1508
- Wr,
1508
+ Br,
1509
1509
  {
1510
1510
  items: r,
1511
1511
  separator: i,
@@ -1583,7 +1583,7 @@ const Ht = {
1583
1583
  color: "var(--sa-background-primary, #ffffff)",
1584
1584
  lineHeight: "1.3",
1585
1585
  maxWidth: "80px"
1586
- }, Rt = {
1586
+ }, zt = {
1587
1587
  display: "flex",
1588
1588
  flexDirection: "column",
1589
1589
  alignItems: "center",
@@ -1629,9 +1629,9 @@ function Ar({
1629
1629
  onClick: () => a(null),
1630
1630
  onMouseEnter: () => s("all"),
1631
1631
  onMouseLeave: () => s(void 0),
1632
- style: Rt,
1632
+ style: zt,
1633
1633
  children: [
1634
- /* @__PURE__ */ e("div", { style: It(o === null, l === "all", h), children: /* @__PURE__ */ e("div", { style: { color: h.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(w, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
1634
+ /* @__PURE__ */ e("div", { style: It(o === null, l === "all", h), children: /* @__PURE__ */ e("div", { style: { color: h.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(b, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
1635
1635
  /* @__PURE__ */ e("span", { style: Ht, children: "Semua" })
1636
1636
  ]
1637
1637
  }
@@ -1645,9 +1645,9 @@ function Ar({
1645
1645
  onClick: () => a(d.id),
1646
1646
  onMouseEnter: () => s(d.id),
1647
1647
  onMouseLeave: () => s(void 0),
1648
- style: Rt,
1648
+ style: zt,
1649
1649
  children: [
1650
- /* @__PURE__ */ e("div", { style: It(m, y, E), children: /* @__PURE__ */ e("div", { style: { color: E.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(w, { name: D, size: "lg", style: { width: 32, height: 32 } }) }) }),
1650
+ /* @__PURE__ */ e("div", { style: It(m, y, E), children: /* @__PURE__ */ e("div", { style: { color: E.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(b, { name: D, size: "lg", style: { width: 32, height: 32 } }) }) }),
1651
1651
  /* @__PURE__ */ e("span", { style: Ht, children: d.name })
1652
1652
  ]
1653
1653
  },
@@ -1672,7 +1672,7 @@ function _n({
1672
1672
  }
1673
1673
  t == null || t(d);
1674
1674
  };
1675
- return /* @__PURE__ */ u(G, { children: [
1675
+ return /* @__PURE__ */ u(U, { children: [
1676
1676
  /* @__PURE__ */ u("div", { style: { position: "relative" }, children: [
1677
1677
  /* @__PURE__ */ e(
1678
1678
  "button",
@@ -1697,7 +1697,7 @@ function _n({
1697
1697
  onMouseLeave: (d) => {
1698
1698
  d.currentTarget.style.backgroundColor = "transparent";
1699
1699
  },
1700
- children: /* @__PURE__ */ e(w, { name: "GridApplication", size: "sm" })
1700
+ children: /* @__PURE__ */ e(b, { name: "GridApplication", size: "sm" })
1701
1701
  }
1702
1702
  ),
1703
1703
  n !== null && /* @__PURE__ */ e(
@@ -1763,13 +1763,13 @@ const Ir = (t, r) => {
1763
1763
  }),
1764
1764
  [n, l]
1765
1765
  ), h = () => typeof r == "string" ? /* @__PURE__ */ e(v, { fontWeight: "medium", color: "text-muted", children: r }) : r, d = () => typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ e(v, { color: "text", fontWeight: "medium", children: t }) : t, g = () => typeof i == "string" || typeof i == "number" ? /* @__PURE__ */ e(v, { fontWeight: "medium", color: "text-muted", children: i }) : i;
1766
- return /* @__PURE__ */ u(Ve, { children: [
1766
+ return /* @__PURE__ */ u(Re, { children: [
1767
1767
  /* @__PURE__ */ e(Se, { style: s, width: o, children: h() }),
1768
1768
  i ? /* @__PURE__ */ e(Se, { style: a, width: 24, children: g() }) : null,
1769
1769
  /* @__PURE__ */ e(Se, { style: s, children: d() })
1770
1770
  ] });
1771
1771
  }
1772
- ), Rr = ce(({ fields: t, separator: r, labelWidth: i }) => /* @__PURE__ */ e(Ut, { children: t.map((o, n) => /* @__PURE__ */ e(
1772
+ ), zr = ce(({ fields: t, separator: r, labelWidth: i }) => /* @__PURE__ */ e(Gt, { children: t.map((o, n) => /* @__PURE__ */ e(
1773
1773
  Hr,
1774
1774
  {
1775
1775
  separator: r,
@@ -1824,7 +1824,7 @@ const Ir = (t, r) => {
1824
1824
  width: a ? h() : void 0,
1825
1825
  marginBottom: a ? "lg" : void 0,
1826
1826
  children: /* @__PURE__ */ e(
1827
- Rr,
1827
+ zr,
1828
1828
  {
1829
1829
  labelWidth: n,
1830
1830
  fields: d,
@@ -1837,7 +1837,7 @@ const Ir = (t, r) => {
1837
1837
  }
1838
1838
  );
1839
1839
  }
1840
- ), Vr = ({ backButton: t }) => {
1840
+ ), Rr = ({ backButton: t }) => {
1841
1841
  const [r, i] = k(!1), o = (t == null ? void 0 : t.iconColor) ?? "var(--sa-text-subtle, #8c8f97)", n = (t == null ? void 0 : t.textColor) ?? "var(--sa-text-subtle, #8c8f97)", l = (t == null ? void 0 : t.hoverIconColor) ?? "var(--sa-text-subtle, #8c8f97)", s = (t == null ? void 0 : t.hoverTextColor) ?? "var(--sa-text-primary, #292a2e)";
1842
1842
  return /* @__PURE__ */ u(
1843
1843
  f,
@@ -1850,7 +1850,7 @@ const Ir = (t, r) => {
1850
1850
  style: { cursor: "pointer" },
1851
1851
  children: [
1852
1852
  /* @__PURE__ */ e(
1853
- w,
1853
+ b,
1854
1854
  {
1855
1855
  name: (t == null ? void 0 : t.iconName) || "ChevronLeft",
1856
1856
  size: "xs",
@@ -1875,7 +1875,7 @@ const Ir = (t, r) => {
1875
1875
  ]
1876
1876
  }
1877
1877
  );
1878
- }, zr = ({
1878
+ }, Vr = ({
1879
1879
  backButton: t,
1880
1880
  title: r,
1881
1881
  titleTag: i,
@@ -1886,7 +1886,7 @@ const Ir = (t, r) => {
1886
1886
  containerProps: a,
1887
1887
  headerProps: h
1888
1888
  }) => {
1889
- const d = ne("lg"), g = mt(), m = ze(), y = t == null ? void 0 : t.show, D = () => {
1889
+ const d = ne("lg"), g = mt(), m = Ve(), y = t == null ? void 0 : t.show, D = () => {
1890
1890
  if (typeof (t == null ? void 0 : t.onClick) == "function") {
1891
1891
  t.onClick();
1892
1892
  return;
@@ -1897,7 +1897,7 @@ const Ir = (t, r) => {
1897
1897
  T,
1898
1898
  {
1899
1899
  fullWidth: !d,
1900
- iconLeft: q ? /* @__PURE__ */ e(w, { name: q, size: "md" }) : void 0,
1900
+ iconLeft: q ? /* @__PURE__ */ e(b, { name: q, size: "md" }) : void 0,
1901
1901
  onClick: ae,
1902
1902
  ...M,
1903
1903
  children: N
@@ -1905,7 +1905,7 @@ const Ir = (t, r) => {
1905
1905
  `action-${J}`
1906
1906
  )
1907
1907
  ) }) : null, x = () => {
1908
- const N = /* @__PURE__ */ e(Vr, { backButton: t });
1908
+ const N = /* @__PURE__ */ e(Rr, { backButton: t });
1909
1909
  return t != null && t.navigateTo ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(
1910
1910
  qe,
1911
1911
  {
@@ -1915,7 +1915,7 @@ const Ir = (t, r) => {
1915
1915
  children: N
1916
1916
  }
1917
1917
  ) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Xe, { onClick: D, children: N }) });
1918
- }, R = () => {
1918
+ }, z = () => {
1919
1919
  const N = !!r, q = st(l) ? !0 : Array.isArray(l) && l.length > 0;
1920
1920
  return !N && !q && !y ? null : /* @__PURE__ */ u(
1921
1921
  f,
@@ -1958,16 +1958,16 @@ const Ir = (t, r) => {
1958
1958
  animation: "pageLayoutEnter 320ms cubic-bezier(0.16, 1, 0.3, 1) backwards"
1959
1959
  },
1960
1960
  children: [
1961
- n && R(),
1961
+ n && z(),
1962
1962
  j()
1963
1963
  ]
1964
1964
  },
1965
1965
  m.pathname
1966
1966
  );
1967
- }, Zn = ce(zr), Nr = {
1967
+ }, Zn = ce(Vr), Nr = {
1968
1968
  icon: "Cross",
1969
1969
  title: ""
1970
- }, Tr = "calc(100vw - 16px)", Vt = (t) => t == null ? void 0 : `min(${typeof t == "number" ? `${t}px` : t}, ${Tr})`, Or = qt(
1970
+ }, Tr = "calc(100vw - 16px)", Rt = (t) => t == null ? void 0 : `min(${typeof t == "number" ? `${t}px` : t}, ${Tr})`, Or = qt(
1971
1971
  ({
1972
1972
  onHide: t,
1973
1973
  show: r,
@@ -1979,7 +1979,7 @@ const Ir = (t, r) => {
1979
1979
  minWidth: a = "357px",
1980
1980
  maxWidth: h = "357px"
1981
1981
  }, d) => {
1982
- const g = Vt(s ?? a), m = Vt(s ?? h);
1982
+ const g = Rt(s ?? a), m = Rt(s ?? h);
1983
1983
  return /* @__PURE__ */ e(
1984
1984
  lr,
1985
1985
  {
@@ -2005,7 +2005,7 @@ const Ir = (t, r) => {
2005
2005
  cursor: "pointer",
2006
2006
  children: [
2007
2007
  /* @__PURE__ */ e(
2008
- w,
2008
+ b,
2009
2009
  {
2010
2010
  name: l.icon,
2011
2011
  size: "md",
@@ -2148,7 +2148,7 @@ const Ir = (t, r) => {
2148
2148
  children: t
2149
2149
  }
2150
2150
  );
2151
- }, $r = ce(Zr), Ur = ({
2151
+ }, $r = ce(Zr), Gr = ({
2152
2152
  icon: t,
2153
2153
  items: r = [],
2154
2154
  style: i,
@@ -2168,7 +2168,7 @@ const Ir = (t, r) => {
2168
2168
  [n]
2169
2169
  );
2170
2170
  return /* @__PURE__ */ u(jt, { position: l, style: i, children: [
2171
- /* @__PURE__ */ e(Ue, { style: o, children: /* @__PURE__ */ e(T, { size: "sm", secondary: !0, ...s, children: /* @__PURE__ */ e(w, { name: t, ...a }) }) }),
2171
+ /* @__PURE__ */ e(Ge, { style: o, children: /* @__PURE__ */ e(T, { size: "sm", secondary: !0, ...s, children: /* @__PURE__ */ e(b, { name: t, ...a }) }) }),
2172
2172
  /* @__PURE__ */ e(Zt, { style: d, children: r.map((g, m) => h === "outline-button" ? /* @__PURE__ */ e($t, { children: /* @__PURE__ */ u(
2173
2173
  T,
2174
2174
  {
@@ -2178,7 +2178,7 @@ const Ir = (t, r) => {
2178
2178
  onClick: g.onClick,
2179
2179
  ...g.buttonProps,
2180
2180
  children: [
2181
- /* @__PURE__ */ e(w, { name: g.icon, size: "md", ...g.iconProps }),
2181
+ /* @__PURE__ */ e(b, { name: g.icon, size: "md", ...g.iconProps }),
2182
2182
  /* @__PURE__ */ e(v, { fontSize: "sm", color: "text", ...g.textProps, children: g.label })
2183
2183
  ]
2184
2184
  }
@@ -2188,15 +2188,15 @@ const Ir = (t, r) => {
2188
2188
  onClick: g.onClick,
2189
2189
  ...g.buttonProps,
2190
2190
  children: [
2191
- /* @__PURE__ */ e(w, { name: g.icon, size: "md", ...g.iconProps }),
2191
+ /* @__PURE__ */ e(b, { name: g.icon, size: "md", ...g.iconProps }),
2192
2192
  /* @__PURE__ */ e(v, { fontSize: "sm", color: "text", ...g.textProps, children: g.label })
2193
2193
  ]
2194
2194
  },
2195
2195
  g.id || m
2196
2196
  )) })
2197
2197
  ] });
2198
- }, Un = ce(Ur), Gr = (t) => /* @__PURE__ */ e(v, { variant: "h1", children: t.children, ...t.props }), qr = (t) => /* @__PURE__ */ e(v, { variant: "h2", children: t.children, ...t.props }), Jr = (t) => /* @__PURE__ */ e(v, { variant: "h3", children: t.children, ...t.props }), Pr = (t) => /* @__PURE__ */ e(v, { variant: "h4", children: t.children, ...t.props }), Qr = (t) => /* @__PURE__ */ e(v, { variant: "h5", children: t.children, ...t.props }), Yr = (t) => /* @__PURE__ */ e(v, { variant: "h6", children: t.children, ...t.props }), Xr = (t) => /* @__PURE__ */ e(v, { variant: "sub-h1", children: t.children, ...t.props }), Kr = (t) => /* @__PURE__ */ e(v, { variant: "sub-h2", children: t.children, ...t.props }), ei = (t) => /* @__PURE__ */ e(v, { variant: "sub-h3", children: t.children, ...t.props }), ti = (t) => /* @__PURE__ */ e(v, { variant: "body-1", children: t.children, ...t.props }), ri = (t) => /* @__PURE__ */ e(v, { variant: "body-2", children: t.children, ...t.props }), ii = (t) => /* @__PURE__ */ e(v, { variant: "body-3", children: t.children, ...t.props }), pe = {
2199
- H1: Gr,
2198
+ }, Gn = ce(Gr), Ur = (t) => /* @__PURE__ */ e(v, { variant: "h1", children: t.children, ...t.props }), qr = (t) => /* @__PURE__ */ e(v, { variant: "h2", children: t.children, ...t.props }), Jr = (t) => /* @__PURE__ */ e(v, { variant: "h3", children: t.children, ...t.props }), Pr = (t) => /* @__PURE__ */ e(v, { variant: "h4", children: t.children, ...t.props }), Qr = (t) => /* @__PURE__ */ e(v, { variant: "h5", children: t.children, ...t.props }), Yr = (t) => /* @__PURE__ */ e(v, { variant: "h6", children: t.children, ...t.props }), Xr = (t) => /* @__PURE__ */ e(v, { variant: "sub-h1", children: t.children, ...t.props }), Kr = (t) => /* @__PURE__ */ e(v, { variant: "sub-h2", children: t.children, ...t.props }), ei = (t) => /* @__PURE__ */ e(v, { variant: "sub-h3", children: t.children, ...t.props }), ti = (t) => /* @__PURE__ */ e(v, { variant: "body-1", children: t.children, ...t.props }), ri = (t) => /* @__PURE__ */ e(v, { variant: "body-2", children: t.children, ...t.props }), ii = (t) => /* @__PURE__ */ e(v, { variant: "body-3", children: t.children, ...t.props }), pe = {
2199
+ H1: Ur,
2200
2200
  H2: qr,
2201
2201
  H3: Jr,
2202
2202
  H4: Pr,
@@ -2209,7 +2209,7 @@ const Ir = (t, r) => {
2209
2209
  Body2: ri,
2210
2210
  Body3: ii
2211
2211
  }, xt = () => {
2212
- const [t, r] = Ye(), i = Pe(t.toString()), o = Jt(), n = ze(), l = o.id;
2212
+ const [t, r] = Ye(), i = Pe(t.toString()), o = Jt(), n = Ve(), l = o.id;
2213
2213
  return {
2214
2214
  // query params
2215
2215
  setSearchParams: r,
@@ -2226,7 +2226,7 @@ const Ir = (t, r) => {
2226
2226
  id: l,
2227
2227
  hasId: !!l
2228
2228
  };
2229
- }, ni = (t) => JSON.stringify(t), oi = (t) => JSON.stringify(t), li = (t) => JSON.stringify(t), ci = (t) => JSON.stringify(t), ai = (t) => t, si = (t) => JSON.stringify(t), zt = ({
2229
+ }, ni = (t) => JSON.stringify(t), oi = (t) => JSON.stringify(t), li = (t) => JSON.stringify(t), ci = (t) => JSON.stringify(t), ai = (t) => t, si = (t) => JSON.stringify(t), Vt = ({
2230
2230
  value: t,
2231
2231
  name: r,
2232
2232
  type: i,
@@ -2288,7 +2288,7 @@ const Ir = (t, r) => {
2288
2288
  }) => {
2289
2289
  const n = i.get(r) || void 0, l = n && typeof n == "string" ? JSON.parse(n) : void 0, s = l ? l[t] : void 0;
2290
2290
  return o === "label" && s ? JSON.parse(s)[0].label : o === "value" && s ? JSON.parse(s)[0].value : s;
2291
- }, Gn = ({
2291
+ }, Un = ({
2292
2292
  name: t,
2293
2293
  filterKey: r = "filter",
2294
2294
  searchParams: i,
@@ -2363,7 +2363,7 @@ const Ir = (t, r) => {
2363
2363
  }
2364
2364
  };
2365
2365
  return /* @__PURE__ */ e(Or, { onHide: r, show: t || !1, children: /* @__PURE__ */ u(f, { direction: "column", gap: "md", children: [
2366
- /* @__PURE__ */ u(U, { direction: "row", justify: "space-between", align: "center", children: [
2366
+ /* @__PURE__ */ u($, { direction: "row", justify: "space-between", align: "center", children: [
2367
2367
  /* @__PURE__ */ e(f, { children: "Filter" }),
2368
2368
  /* @__PURE__ */ e(
2369
2369
  f,
@@ -2395,24 +2395,24 @@ const Ir = (t, r) => {
2395
2395
  withTitleLabels: x = !1
2396
2396
  }) => {
2397
2397
  const j = (y == null ? void 0 : y.isShowLabel) ?? !0, [N, q] = k(!1), [M, ae] = k(0), J = () => {
2398
- ae((z) => z + 1);
2399
- }, { searchParams: I, setSearchParams: P, getQueryParam: oe } = xt(), le = Pe(I.toString()), $ = di(t, I, a) || "", [Q, K] = k($), se = oe(a), X = !!(se && !(() => {
2398
+ ae((V) => V + 1);
2399
+ }, { searchParams: I, setSearchParams: P, getQueryParam: oe } = xt(), le = Pe(I.toString()), G = di(t, I, a) || "", [Q, K] = k(G), se = oe(a), X = !!(se && !(() => {
2400
2400
  if (se)
2401
2401
  try {
2402
- const z = JSON.parse(se);
2403
- return Object.keys(z).length === 1 && z[t] === "";
2404
- } catch (z) {
2405
- console.error("Filter parameter is not a valid JSON:", z);
2402
+ const V = JSON.parse(se);
2403
+ return Object.keys(V).length === 1 && V[t] === "";
2404
+ } catch (V) {
2405
+ console.error("Filter parameter is not a valid JSON:", V);
2406
2406
  }
2407
2407
  return !1;
2408
- })()), V = ne("md");
2408
+ })()), R = ne("md");
2409
2409
  return Z(() => {
2410
- K($);
2411
- }, [$]), Z(() => {
2412
- if (Q === $)
2410
+ K(G);
2411
+ }, [G]), Z(() => {
2412
+ if (Q === G)
2413
2413
  return;
2414
- const z = window.setTimeout(() => {
2415
- zt({
2414
+ const V = window.setTimeout(() => {
2415
+ Vt({
2416
2416
  value: Q,
2417
2417
  name: t,
2418
2418
  type: "search",
@@ -2423,22 +2423,22 @@ const Ir = (t, r) => {
2423
2423
  });
2424
2424
  }, 350);
2425
2425
  return () => {
2426
- window.clearTimeout(z);
2426
+ window.clearTimeout(V);
2427
2427
  };
2428
2428
  }, [
2429
2429
  Q,
2430
- $,
2430
+ G,
2431
2431
  t,
2432
2432
  le,
2433
2433
  P,
2434
2434
  a,
2435
2435
  h
2436
2436
  ]), /* @__PURE__ */ u(
2437
- U,
2437
+ $,
2438
2438
  {
2439
2439
  gap: "md",
2440
2440
  style: {
2441
- flexDirection: V && D === "left" ? "row" : V && D === "right" ? "row-reverse" : "column"
2441
+ flexDirection: R && D === "left" ? "row" : R && D === "right" ? "row-reverse" : "column"
2442
2442
  },
2443
2443
  align: "flex-end",
2444
2444
  children: [
@@ -2446,28 +2446,28 @@ const Ir = (t, r) => {
2446
2446
  T,
2447
2447
  {
2448
2448
  onClick: () => {
2449
- const z = new URLSearchParams(I);
2450
- z.delete(a), P(z), K(""), J(), g && g();
2449
+ const V = new URLSearchParams(I);
2450
+ V.delete(a), P(V), K(""), J(), g && g();
2451
2451
  },
2452
2452
  variant: "outline",
2453
2453
  tone: "neutral",
2454
2454
  children: /* @__PURE__ */ e(v, { color: "error", fontWeight: "semibold", children: "Reset" })
2455
2455
  }
2456
2456
  ) }),
2457
- n == null ? void 0 : n.map(({ minWidth: z, content: te, title: fe, onClickContainer: ge }, We) => /* @__PURE__ */ u(
2457
+ n == null ? void 0 : n.map(({ minWidth: V, content: te, title: fe, onClickContainer: ge }, Be) => /* @__PURE__ */ u(
2458
2458
  f,
2459
2459
  {
2460
2460
  gap: "sm",
2461
2461
  onClick: ge,
2462
2462
  style: {
2463
- minWidth: z
2463
+ minWidth: V
2464
2464
  },
2465
2465
  children: [
2466
2466
  fe && /* @__PURE__ */ e(pe.SubH3, { children: fe }),
2467
2467
  te
2468
2468
  ]
2469
2469
  },
2470
- `extended-filter-${We}-${M}`
2470
+ `extended-filter-${Be}-${M}`
2471
2471
  )),
2472
2472
  !!(m != null && m.length) && /* @__PURE__ */ e(
2473
2473
  T,
@@ -2475,7 +2475,7 @@ const Ir = (t, r) => {
2475
2475
  primary: X,
2476
2476
  secondary: !X,
2477
2477
  iconLeft: /* @__PURE__ */ e(
2478
- w,
2478
+ b,
2479
2479
  {
2480
2480
  size: "sm",
2481
2481
  name: (y == null ? void 0 : y.icon) || "FilterHorizontal",
@@ -2484,7 +2484,7 @@ const Ir = (t, r) => {
2484
2484
  }
2485
2485
  }
2486
2486
  ),
2487
- fullWidth: !V,
2487
+ fullWidth: !R,
2488
2488
  onClick: () => q(!0),
2489
2489
  children: j ? "Filter" : void 0
2490
2490
  }
@@ -2532,8 +2532,8 @@ const Ir = (t, r) => {
2532
2532
  })
2533
2533
  }
2534
2534
  ] : [],
2535
- onChange: (z) => zt({
2536
- value: z,
2535
+ onChange: (V) => Vt({
2536
+ value: V,
2537
2537
  name: r,
2538
2538
  type: "dropdown",
2539
2539
  searchQueries: le,
@@ -2552,7 +2552,7 @@ const Ir = (t, r) => {
2552
2552
  {
2553
2553
  gap: "sm",
2554
2554
  style: {
2555
- width: d && V ? d : V ? "310px" : ""
2555
+ width: d && R ? d : R ? "310px" : ""
2556
2556
  },
2557
2557
  children: [
2558
2558
  x && /* @__PURE__ */ u(pe.SubH3, { children: [
@@ -2563,8 +2563,8 @@ const Ir = (t, r) => {
2563
2563
  gt,
2564
2564
  {
2565
2565
  placeholder: i,
2566
- leftIcon: /* @__PURE__ */ e(w, { name: "Search", width: 20, height: 20 }),
2567
- onChange: (z) => K(z.target.value),
2566
+ leftIcon: /* @__PURE__ */ e(b, { name: "Search", width: 20, height: 20 }),
2567
+ onChange: (V) => K(V.target.value),
2568
2568
  value: Q,
2569
2569
  fullWidth: !0
2570
2570
  },
@@ -2642,7 +2642,7 @@ const Ir = (t, r) => {
2642
2642
  flexDirection: s ? "row" : "column-reverse",
2643
2643
  gap: "16px"
2644
2644
  },
2645
- children: o ? o({ filter: a }) : /* @__PURE__ */ u(G, { children: [
2645
+ children: o ? o({ filter: a }) : /* @__PURE__ */ u(U, { children: [
2646
2646
  /* @__PURE__ */ u(f, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flex: 1, minWidth: 0 }, children: [
2647
2647
  a,
2648
2648
  i
@@ -2664,7 +2664,7 @@ const Ir = (t, r) => {
2664
2664
  T,
2665
2665
  {
2666
2666
  fullWidth: !s,
2667
- iconLeft: g ? /* @__PURE__ */ e(w, { name: g }) : void 0,
2667
+ iconLeft: g ? /* @__PURE__ */ e(b, { name: g }) : void 0,
2668
2668
  onClick: y,
2669
2669
  ...m,
2670
2670
  children: d
@@ -2742,7 +2742,7 @@ const Ir = (t, r) => {
2742
2742
  borderTop: "1px solid var(--sa-border-subtle, #0b120e24)",
2743
2743
  flexShrink: 0
2744
2744
  },
2745
- children: n ? /* @__PURE__ */ u(G, { children: [
2745
+ children: n ? /* @__PURE__ */ u(U, { children: [
2746
2746
  /* @__PURE__ */ u(f, { style: { display: "flex", flexDirection: "row", gap: "8px", alignItems: "center", textWrap: "nowrap" }, children: [
2747
2747
  /* @__PURE__ */ e(v, { children: "Rows Per Page: " }),
2748
2748
  /* @__PURE__ */ e(
@@ -2788,10 +2788,10 @@ const Ir = (t, r) => {
2788
2788
  ) : t.options, [t.options, a]);
2789
2789
  Z(() => {
2790
2790
  if (i && l.current) {
2791
- const x = l.current.getBoundingClientRect(), R = 280, j = {
2791
+ const x = l.current.getBoundingClientRect(), z = 280, j = {
2792
2792
  top: x.bottom + 8
2793
2793
  };
2794
- t.position === "left" || x.left + R > window.innerWidth ? j.right = window.innerWidth - x.right : j.left = x.left, g(j);
2794
+ t.position === "left" || x.left + z > window.innerWidth ? j.right = window.innerWidth - x.right : j.left = x.left, g(j);
2795
2795
  }
2796
2796
  }, [i, t.position]), Z(() => {
2797
2797
  i && s.current ? setTimeout(() => {
@@ -2799,14 +2799,14 @@ const Ir = (t, r) => {
2799
2799
  return (x = s.current) == null ? void 0 : x.focus();
2800
2800
  }, 50) : h("");
2801
2801
  }, [i]), Z(() => {
2802
- const x = (R) => {
2803
- n.current && !n.current.contains(R.target) && l.current && !l.current.contains(R.target) && o(!1);
2802
+ const x = (z) => {
2803
+ n.current && !n.current.contains(z.target) && l.current && !l.current.contains(z.target) && o(!1);
2804
2804
  };
2805
2805
  return i && document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
2806
2806
  }, [i]);
2807
2807
  const D = (x) => {
2808
- const R = m.includes(x) ? m.filter((j) => j !== x) : [...m, x];
2809
- t.onFilterChange(R);
2808
+ const z = m.includes(x) ? m.filter((j) => j !== x) : [...m, x];
2809
+ t.onFilterChange(z);
2810
2810
  }, E = () => t.onFilterChange([]);
2811
2811
  return /* @__PURE__ */ u(f, { style: { position: "relative" }, children: [
2812
2812
  /* @__PURE__ */ e(
@@ -2820,11 +2820,11 @@ const Ir = (t, r) => {
2820
2820
  cursor: "pointer"
2821
2821
  },
2822
2822
  onClick: (x) => {
2823
- var R;
2824
- x.stopPropagation(), i || (R = t.onOpen) == null || R.call(t), o((j) => !j);
2823
+ var z;
2824
+ x.stopPropagation(), i || (z = t.onOpen) == null || z.call(t), o((j) => !j);
2825
2825
  },
2826
2826
  children: /* @__PURE__ */ e(
2827
- w,
2827
+ b,
2828
2828
  {
2829
2829
  name: i ? "ChevronUp" : "ChevronDown",
2830
2830
  size: "sm",
@@ -2902,7 +2902,7 @@ const Ir = (t, r) => {
2902
2902
  {
2903
2903
  ref: s,
2904
2904
  placeholder: `Search ${r.toLowerCase()}...`,
2905
- leftIcon: /* @__PURE__ */ e(w, { name: "Search", size: "sm" }),
2905
+ leftIcon: /* @__PURE__ */ e(b, { name: "Search", size: "sm" }),
2906
2906
  value: a,
2907
2907
  onChange: (x) => h(x.target.value),
2908
2908
  style: { fontSize: "14px" }
@@ -2933,7 +2933,7 @@ const Ir = (t, r) => {
2933
2933
  },
2934
2934
  children: [
2935
2935
  /* @__PURE__ */ e(
2936
- w,
2936
+ b,
2937
2937
  {
2938
2938
  name: "Loading",
2939
2939
  size: "lg",
@@ -2971,14 +2971,14 @@ const Ir = (t, r) => {
2971
2971
  transition: "all 0.2s ease",
2972
2972
  backgroundColor: m.includes(x.value) ? "var(--sa-color-brand-50, #e6edf6)" : "transparent"
2973
2973
  },
2974
- onClick: (R) => {
2975
- R.stopPropagation(), D(x.value);
2974
+ onClick: (z) => {
2975
+ z.stopPropagation(), D(x.value);
2976
2976
  },
2977
- onMouseEnter: (R) => {
2978
- m.includes(x.value) || (R.currentTarget.style.backgroundColor = "var(--sa-background-primary, #ffffff)"), R.currentTarget.style.transform = "translateX(2px)";
2977
+ onMouseEnter: (z) => {
2978
+ m.includes(x.value) || (z.currentTarget.style.backgroundColor = "var(--sa-background-primary, #ffffff)"), z.currentTarget.style.transform = "translateX(2px)";
2979
2979
  },
2980
- onMouseLeave: (R) => {
2981
- R.currentTarget.style.backgroundColor = m.includes(x.value) ? "var(--sa-color-brand-50, #e6edf6)" : "transparent", R.currentTarget.style.transform = "translateX(0)";
2980
+ onMouseLeave: (z) => {
2981
+ z.currentTarget.style.backgroundColor = m.includes(x.value) ? "var(--sa-color-brand-50, #e6edf6)" : "transparent", z.currentTarget.style.transform = "translateX(0)";
2982
2982
  },
2983
2983
  children: [
2984
2984
  /* @__PURE__ */ e(
@@ -3014,7 +3014,7 @@ const Ir = (t, r) => {
3014
3014
  },
3015
3015
  children: [
3016
3016
  /* @__PURE__ */ e(
3017
- w,
3017
+ b,
3018
3018
  {
3019
3019
  name: "Search",
3020
3020
  size: "lg",
@@ -3147,7 +3147,7 @@ const Ir = (t, r) => {
3147
3147
  customActions: D,
3148
3148
  actionsOrder: E = ["detail", "update", "delete", "custom"],
3149
3149
  customEmptyState: x,
3150
- enableColumnResize: R = !1,
3150
+ enableColumnResize: z = !1,
3151
3151
  defaultColumnWidths: j,
3152
3152
  onColumnWidthsChange: N,
3153
3153
  defaultMinColumnWidth: q = 60,
@@ -3158,15 +3158,15 @@ const Ir = (t, r) => {
3158
3158
  }) => {
3159
3159
  const P = M !== void 0, [oe, le] = k(
3160
3160
  ae ?? null
3161
- ), $ = P ? M ?? null : oe, Q = (C) => {
3161
+ ), G = P ? M ?? null : oe, Q = (C) => {
3162
3162
  if (C.sortKey) return C.sortKey;
3163
3163
  if (typeof C.accessor == "string") return C.accessor;
3164
3164
  }, K = (C) => {
3165
3165
  const S = Q(C);
3166
3166
  if (!S) return;
3167
- let b;
3168
- !$ || $.key !== S ? b = { key: S, direction: "asc" } : $.direction === "asc" ? b = { key: S, direction: "desc" } : b = null, P || le(b), J == null || J(b);
3169
- }, ee = [i, o, n].filter((C) => C !== void 0).length, X = !!D, V = !!i || !!o || !!n || X, z = "var(--sa-border-subtle, #0b120e24)", te = `1px solid ${z}`, fe = `inset 1px 0 0 ${z}`, ge = `inset -1px 0 0 ${z}`, We = ee === 3 ? X ? "178px" : "140px" : ee === 2 ? X ? "140px" : "102px" : ee === 1 ? X ? "112px" : "74px" : X ? "74px" : "", Ne = (C, S) => {
3167
+ let w;
3168
+ !G || G.key !== S ? w = { key: S, direction: "asc" } : G.direction === "asc" ? w = { key: S, direction: "desc" } : w = null, P || le(w), J == null || J(w);
3169
+ }, ee = [i, o, n].filter((C) => C !== void 0).length, X = !!D, R = !!i || !!o || !!n || X, V = "var(--sa-border-subtle, #0b120e24)", te = `1px solid ${V}`, fe = `inset 1px 0 0 ${V}`, ge = `inset -1px 0 0 ${V}`, Be = ee === 3 ? X ? "178px" : "140px" : ee === 2 ? X ? "140px" : "102px" : ee === 1 ? X ? "112px" : "74px" : X ? "74px" : "", Ne = (C, S) => {
3170
3170
  if (!S) return C;
3171
3171
  if (typeof S == "function") return S(C);
3172
3172
  if (typeof S == "string") return C[S];
@@ -3187,26 +3187,26 @@ const Ir = (t, r) => {
3187
3187
  const C = Array.from(
3188
3188
  Ae.current.querySelectorAll("thead tr th")
3189
3189
  ), S = [];
3190
- let b = 0;
3191
- C.forEach((W, H) => {
3192
- S[H] = b, H < m && (b += W.offsetWidth);
3190
+ let w = 0;
3191
+ C.forEach((B, H) => {
3192
+ S[H] = w, H < m && (w += B.offsetWidth);
3193
3193
  }), Oe(S);
3194
3194
  }, [m, t, r, Ie]);
3195
3195
  const _e = (C) => {
3196
3196
  y && y(C < m ? C : C + 1);
3197
3197
  }, p = (C, S) => {
3198
- const b = Ie[C];
3199
- if (b !== void 0) {
3200
- const W = `${b}px`;
3201
- return { width: W, minWidth: W, maxWidth: W };
3198
+ const w = Ie[C];
3199
+ if (w !== void 0) {
3200
+ const B = `${w}px`;
3201
+ return { width: B, minWidth: B, maxWidth: B };
3202
3202
  }
3203
3203
  return S ? { width: S } : {};
3204
- }, F = (C) => R && (C.resizable ?? !0), L = (C, S) => {
3204
+ }, F = (C) => z && (C.resizable ?? !0), L = (C, S) => {
3205
3205
  C.preventDefault(), C.stopPropagation();
3206
- const b = C.currentTarget.closest("th");
3207
- if (!b) return;
3208
- const W = Math.round(b.getBoundingClientRect().width);
3209
- Ee.current = { colIndex: S, startX: C.clientX, startWidth: W };
3206
+ const w = C.currentTarget.closest("th");
3207
+ if (!w) return;
3208
+ const B = Math.round(w.getBoundingClientRect().width);
3209
+ Ee.current = { colIndex: S, startX: C.clientX, startWidth: B };
3210
3210
  const H = document.body.style.userSelect, ue = document.body.style.cursor;
3211
3211
  document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
3212
3212
  const xe = (De) => {
@@ -3222,7 +3222,7 @@ const Ir = (t, r) => {
3222
3222
  };
3223
3223
  document.addEventListener("mousemove", xe), document.addEventListener("mouseup", we);
3224
3224
  };
3225
- return /* @__PURE__ */ e("div", { ref: Ae, children: /* @__PURE__ */ u(Ut, { fullWidth: !0, children: [
3225
+ return /* @__PURE__ */ e("div", { ref: Ae, children: /* @__PURE__ */ u(Gt, { fullWidth: !0, children: [
3226
3226
  /* @__PURE__ */ e(
3227
3227
  dr,
3228
3228
  {
@@ -3230,22 +3230,22 @@ const Ir = (t, r) => {
3230
3230
  height: "40px",
3231
3231
  whiteSpace: "nowrap"
3232
3232
  },
3233
- children: /* @__PURE__ */ u(Ve, { children: [
3233
+ children: /* @__PURE__ */ u(Re, { children: [
3234
3234
  t.map((C, S) => {
3235
3235
  var je, He;
3236
- const b = m > 0 && S < m, W = de[S] ?? 0, H = F(C), xe = S === t.length - 1 && V && I, we = Q(C), De = !!C.sortable && !!we, Ce = De && ($ == null ? void 0 : $.key) === we ? $.direction : null;
3236
+ const w = m > 0 && S < m, B = de[S] ?? 0, H = F(C), xe = S === t.length - 1 && R && I, we = Q(C), De = !!C.sortable && !!we, Ce = De && (G == null ? void 0 : G.key) === we ? G.direction : null;
3237
3237
  return /* @__PURE__ */ u(
3238
3238
  St,
3239
3239
  {
3240
3240
  style: {
3241
3241
  position: "sticky",
3242
3242
  top: 0,
3243
- left: b ? W : void 0,
3244
- zIndex: b ? 4 : 2,
3243
+ left: w ? B : void 0,
3244
+ zIndex: w ? 4 : 2,
3245
3245
  paddingLeft: S === 0 ? "12px" : "",
3246
- borderRight: d && !xe && !b ? te : void 0,
3246
+ borderRight: d && !xe && !w ? te : void 0,
3247
3247
  borderBottom: d ? te : void 0,
3248
- boxShadow: d && b ? ge : void 0,
3248
+ boxShadow: d && w ? ge : void 0,
3249
3249
  backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
3250
3250
  textAlign: C.textAlign === "text-right" ? "right" : C.textAlign === "text-center" ? "center" : "left",
3251
3251
  ...p(S, C.width)
@@ -3324,7 +3324,7 @@ const Ir = (t, r) => {
3324
3324
  "button",
3325
3325
  {
3326
3326
  onClick: () => _e(S),
3327
- title: b ? "Unfreeze column" : "Freeze column",
3327
+ title: w ? "Unfreeze column" : "Freeze column",
3328
3328
  style: {
3329
3329
  background: "none",
3330
3330
  border: "none",
@@ -3333,11 +3333,11 @@ const Ir = (t, r) => {
3333
3333
  display: "flex",
3334
3334
  alignItems: "center",
3335
3335
  flexShrink: 0,
3336
- color: b ? "var(--sa-background-brand, #04254f)" : "var(--sa-text-subtle, #8c8f97)",
3337
- opacity: b ? 1 : 0.45,
3336
+ color: w ? "var(--sa-background-brand, #04254f)" : "var(--sa-text-subtle, #8c8f97)",
3337
+ opacity: w ? 1 : 0.45,
3338
3338
  transition: "opacity 0.15s"
3339
3339
  },
3340
- children: /* @__PURE__ */ e(Ci, { frozen: b })
3340
+ children: /* @__PURE__ */ e(Ci, { frozen: w })
3341
3341
  }
3342
3342
  )
3343
3343
  ]
@@ -3369,7 +3369,7 @@ const Ir = (t, r) => {
3369
3369
  `table-head-${S}`
3370
3370
  );
3371
3371
  }),
3372
- V ? /* @__PURE__ */ e(
3372
+ R ? /* @__PURE__ */ e(
3373
3373
  St,
3374
3374
  {
3375
3375
  style: {
@@ -3386,35 +3386,35 @@ const Ir = (t, r) => {
3386
3386
  ] })
3387
3387
  }
3388
3388
  ),
3389
- /* @__PURE__ */ e(ur, { children: l ? /* @__PURE__ */ e(Ve, { children: /* @__PURE__ */ e(Se, { colSpan: t.length + 1, children: /* @__PURE__ */ u(f, { style: { gap: "16px" }, children: [
3390
- /* @__PURE__ */ e(Re, { variant: "list" }),
3391
- /* @__PURE__ */ e(Re, { variant: "list" }),
3392
- /* @__PURE__ */ e(Re, { variant: "list" }),
3393
- /* @__PURE__ */ e(Re, { variant: "list" }),
3394
- /* @__PURE__ */ e(Re, { variant: "list" })
3395
- ] }) }) }) : !(r != null && r.length) && x ? /* @__PURE__ */ e(Ve, { children: /* @__PURE__ */ e(Se, { colSpan: t.length + 1, children: x }) }) : r == null ? void 0 : r.map((C, S) => /* @__PURE__ */ u(
3396
- Ve,
3389
+ /* @__PURE__ */ e(ur, { children: l ? /* @__PURE__ */ e(Re, { children: /* @__PURE__ */ e(Se, { colSpan: t.length + 1, children: /* @__PURE__ */ u(f, { style: { gap: "16px" }, children: [
3390
+ /* @__PURE__ */ e(ze, { variant: "list" }),
3391
+ /* @__PURE__ */ e(ze, { variant: "list" }),
3392
+ /* @__PURE__ */ e(ze, { variant: "list" }),
3393
+ /* @__PURE__ */ e(ze, { variant: "list" }),
3394
+ /* @__PURE__ */ e(ze, { variant: "list" })
3395
+ ] }) }) }) : !(r != null && r.length) && x ? /* @__PURE__ */ e(Re, { children: /* @__PURE__ */ e(Se, { colSpan: t.length + 1, children: x }) }) : r == null ? void 0 : r.map((C, S) => /* @__PURE__ */ u(
3396
+ Re,
3397
3397
  {
3398
3398
  style: {
3399
3399
  transition: "background-color 0.3s ease",
3400
3400
  padding: 0,
3401
3401
  borderBottom: S === r.length - 1 && et ? void 0 : "1px solid var(--sa-border-subtle, #0b120e24)"
3402
3402
  },
3403
- onMouseEnter: (b) => {
3404
- const W = b.currentTarget;
3405
- W.style.backgroundColor = Nt, Array.from(W.querySelectorAll("td")).forEach((H) => {
3403
+ onMouseEnter: (w) => {
3404
+ const B = w.currentTarget;
3405
+ B.style.backgroundColor = Nt, Array.from(B.querySelectorAll("td")).forEach((H) => {
3406
3406
  H.style.position === "sticky" && (H.style.backgroundColor = Nt);
3407
3407
  });
3408
3408
  },
3409
- onMouseLeave: (b) => {
3410
- const W = b.currentTarget;
3411
- W.style.backgroundColor = "", Array.from(W.querySelectorAll("td")).forEach((H) => {
3409
+ onMouseLeave: (w) => {
3410
+ const B = w.currentTarget;
3411
+ B.style.backgroundColor = "", Array.from(B.querySelectorAll("td")).forEach((H) => {
3412
3412
  H.style.position === "sticky" && (H.style.backgroundColor = ot);
3413
3413
  });
3414
3414
  },
3415
3415
  children: [
3416
- t.map((b, W) => {
3417
- const H = b.render ? b.render(C, S, r) : Ne(C, b.accessor), ue = m > 0 && W < m, xe = de[W] ?? 0, we = Ie[W] !== void 0, De = ue && W === m - 1;
3416
+ t.map((w, B) => {
3417
+ const H = w.render ? w.render(C, S, r) : Ne(C, w.accessor), ue = m > 0 && B < m, xe = de[B] ?? 0, we = Ie[B] !== void 0, De = ue && B === m - 1;
3418
3418
  return /* @__PURE__ */ e(
3419
3419
  Se,
3420
3420
  {
@@ -3424,14 +3424,14 @@ const Ir = (t, r) => {
3424
3424
  zIndex: ue ? 1 : void 0,
3425
3425
  backgroundColor: ue ? ot : void 0,
3426
3426
  transition: ue ? "background-color 0.3s ease" : void 0,
3427
- paddingLeft: W === 0 ? "12px" : "",
3427
+ paddingLeft: B === 0 ? "12px" : "",
3428
3428
  whiteSpace: "nowrap",
3429
3429
  overflow: we ? "hidden" : void 0,
3430
- borderLeft: b.showBorderLeft ? te : void 0,
3431
- borderRight: b.showBorderRight ? te : void 0,
3430
+ borderLeft: w.showBorderLeft ? te : void 0,
3431
+ borderRight: w.showBorderRight ? te : void 0,
3432
3432
  boxShadow: De ? ge : void 0,
3433
- textAlign: b.textAlign === "text-right" ? "right" : b.textAlign === "text-center" ? "center" : "left",
3434
- ...p(W, b.width)
3433
+ textAlign: w.textAlign === "text-right" ? "right" : w.textAlign === "text-center" ? "center" : "left",
3434
+ ...p(B, w.width)
3435
3435
  },
3436
3436
  children: typeof H == "string" ? /* @__PURE__ */ e(
3437
3437
  v,
@@ -3440,53 +3440,53 @@ const Ir = (t, r) => {
3440
3440
  whiteSpace: "nowrap",
3441
3441
  overflow: "hidden",
3442
3442
  textOverflow: "ellipsis",
3443
- textAlign: b.textAlign === "text-right" ? "right" : b.textAlign === "text-center" ? "center" : "left"
3443
+ textAlign: w.textAlign === "text-right" ? "right" : w.textAlign === "text-center" ? "center" : "left"
3444
3444
  },
3445
3445
  children: H
3446
3446
  }
3447
3447
  ) : H
3448
3448
  },
3449
- `row-${S}-col-${W}`
3449
+ `row-${S}-col-${B}`
3450
3450
  );
3451
3451
  }),
3452
- V ? /* @__PURE__ */ e(Se, { style: {
3453
- width: We,
3452
+ R ? /* @__PURE__ */ e(Se, { style: {
3453
+ width: Be,
3454
3454
  position: "sticky",
3455
3455
  right: 0,
3456
3456
  zIndex: 1,
3457
3457
  backgroundColor: ot,
3458
3458
  boxShadow: I ? fe : void 0,
3459
3459
  transition: "background-color 0.3s ease"
3460
- }, children: /* @__PURE__ */ e(U, { direction: "row", align: "center", justify: "center", gap: "sm", children: E.map((b) => {
3461
- const W = S === r.length - 1 ? "top" : "bottom";
3462
- return b === "detail" && i && (h == null ? void 0 : h(C)) !== !1 ? /* @__PURE__ */ e(me, { label: "Detail", position: W, children: /* @__PURE__ */ e(
3460
+ }, children: /* @__PURE__ */ e($, { direction: "row", align: "center", justify: "center", gap: "sm", children: E.map((w) => {
3461
+ const B = S === r.length - 1 ? "top" : "bottom";
3462
+ return w === "detail" && i && (h == null ? void 0 : h(C)) !== !1 ? /* @__PURE__ */ e(me, { label: "Detail", position: B, children: /* @__PURE__ */ e(
3463
3463
  T,
3464
3464
  {
3465
3465
  size: "xs",
3466
3466
  variant: "outline",
3467
3467
  tone: "neutral",
3468
3468
  onClick: () => i(C.id, C),
3469
- iconLeft: /* @__PURE__ */ e(w, { name: "DocumentClean", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
3469
+ iconLeft: /* @__PURE__ */ e(b, { name: "DocumentClean", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
3470
3470
  }
3471
- ) }, "detail") : b === "update" && o && (a == null ? void 0 : a(C)) !== !1 ? /* @__PURE__ */ e(me, { label: "Update", position: W, children: /* @__PURE__ */ e(
3471
+ ) }, "detail") : w === "update" && o && (a == null ? void 0 : a(C)) !== !1 ? /* @__PURE__ */ e(me, { label: "Update", position: B, children: /* @__PURE__ */ e(
3472
3472
  T,
3473
3473
  {
3474
3474
  size: "xs",
3475
3475
  variant: "outline",
3476
3476
  tone: "neutral",
3477
3477
  onClick: () => o(C),
3478
- iconLeft: /* @__PURE__ */ e(w, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
3478
+ iconLeft: /* @__PURE__ */ e(b, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
3479
3479
  }
3480
- ) }, "update") : b === "delete" && n && (s == null ? void 0 : s(C)) !== !1 ? /* @__PURE__ */ e(me, { label: "Delete", position: W, children: /* @__PURE__ */ e(
3480
+ ) }, "update") : w === "delete" && n && (s == null ? void 0 : s(C)) !== !1 ? /* @__PURE__ */ e(me, { label: "Delete", position: B, children: /* @__PURE__ */ e(
3481
3481
  T,
3482
3482
  {
3483
3483
  size: "xs",
3484
3484
  variant: "outline",
3485
3485
  tone: "neutral",
3486
3486
  onClick: () => n(C.id, C),
3487
- iconLeft: /* @__PURE__ */ e(w, { name: "Trash1", size: "sm", style: { color: "var(--sa-color-error-600, #c9184a)" } })
3487
+ iconLeft: /* @__PURE__ */ e(b, { name: "Trash1", size: "sm", style: { color: "var(--sa-color-error-600, #c9184a)" } })
3488
3488
  }
3489
- ) }, "delete") : b === "custom" ? /* @__PURE__ */ e(Ge.Fragment, { children: D == null ? void 0 : D(C) }, "custom") : null;
3489
+ ) }, "delete") : w === "custom" ? /* @__PURE__ */ e(Ue.Fragment, { children: D == null ? void 0 : D(C) }, "custom") : null;
3490
3490
  }) }) }) : null
3491
3491
  ]
3492
3492
  },
@@ -3554,7 +3554,7 @@ const Yn = bi(Di), Ct = ({
3554
3554
  children: i,
3555
3555
  loading: o,
3556
3556
  isLoading: n
3557
- }) => /* @__PURE__ */ e(G, { children: n ? o : t ? i : r }), _ = (t) => /* @__PURE__ */ e(
3557
+ }) => /* @__PURE__ */ e(U, { children: n ? o : t ? i : r }), _ = (t) => /* @__PURE__ */ e(
3558
3558
  v,
3559
3559
  {
3560
3560
  ...t,
@@ -3603,7 +3603,7 @@ const Yn = bi(Di), Ct = ({
3603
3603
  customMaxWidth: s,
3604
3604
  fullWidth: o,
3605
3605
  children: [
3606
- /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
3606
+ /* @__PURE__ */ u($, { direction: "row", gap: "xs", align: "center", children: [
3607
3607
  /* @__PURE__ */ e(_, { fontSize: t, children: n.title }),
3608
3608
  /* @__PURE__ */ e(_, { color: "error", fontSize: t, children: i }),
3609
3609
  /* @__PURE__ */ e(O, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
@@ -3613,7 +3613,7 @@ const Yn = bi(Di), Ct = ({
3613
3613
  arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
3614
3614
  ...n.tooltip,
3615
3615
  children: /* @__PURE__ */ e(
3616
- w,
3616
+ b,
3617
3617
  {
3618
3618
  name: "InfoCircle",
3619
3619
  size: t === "lg" ? "sm" : "xs",
@@ -3688,7 +3688,7 @@ const Yn = bi(Di), Ct = ({
3688
3688
  customMaxWidth: s,
3689
3689
  fullWidth: o,
3690
3690
  children: [
3691
- /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
3691
+ /* @__PURE__ */ u($, { direction: "row", gap: "xs", align: "center", children: [
3692
3692
  /* @__PURE__ */ e(_, { fontSize: t, children: n.title }),
3693
3693
  /* @__PURE__ */ e(_, { color: "error", fontSize: t, children: i }),
3694
3694
  /* @__PURE__ */ e(O, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
@@ -3698,7 +3698,7 @@ const Yn = bi(Di), Ct = ({
3698
3698
  arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
3699
3699
  ...n.tooltip,
3700
3700
  children: /* @__PURE__ */ e(
3701
- w,
3701
+ b,
3702
3702
  {
3703
3703
  name: "InfoCircle",
3704
3704
  size: t === "lg" ? "sm" : "xs",
@@ -3771,7 +3771,7 @@ const Yn = bi(Di), Ct = ({
3771
3771
  },
3772
3772
  children: [
3773
3773
  /* @__PURE__ */ e(
3774
- w,
3774
+ b,
3775
3775
  {
3776
3776
  name: "Upload",
3777
3777
  size: "lg",
@@ -3781,8 +3781,8 @@ const Yn = bi(Di), Ct = ({
3781
3781
  }
3782
3782
  }
3783
3783
  ),
3784
- /* @__PURE__ */ u(U, { direction: "column", gap: "xs", children: [
3785
- /* @__PURE__ */ u(U, { direction: "row", gap: "xs", children: [
3784
+ /* @__PURE__ */ u($, { direction: "column", gap: "xs", children: [
3785
+ /* @__PURE__ */ u($, { direction: "row", gap: "xs", children: [
3786
3786
  /* @__PURE__ */ e(
3787
3787
  v,
3788
3788
  {
@@ -3889,7 +3889,7 @@ const Mi = "sa-admin", ye = (t) => `var(--${Mi}-${t})`, io = {
3889
3889
  o.font = r;
3890
3890
  const n = o.measureText(t).width;
3891
3891
  return Number(Math.ceil(n));
3892
- }, Li = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, Bi = /--+/, Wi = /-$/;
3892
+ }, Li = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, Wi = /--+/, Bi = /-$/;
3893
3893
  function lo(t, r) {
3894
3894
  return JSON.stringify(t) !== JSON.stringify(r);
3895
3895
  }
@@ -3937,7 +3937,7 @@ const so = (t) => {
3937
3937
  (t.ctrlKey || t.metaKey) && t.key === "v" || !r.test(t.key) && !i.includes(t.key) && t.preventDefault();
3938
3938
  }, fo = (t) => Li.test(t);
3939
3939
  function go(t) {
3940
- return !(Bi.test(t) || Wi.test(t));
3940
+ return !(Wi.test(t) || Bi.test(t));
3941
3941
  }
3942
3942
  const mo = (t) => {
3943
3943
  const r = [
@@ -4000,9 +4000,9 @@ const Hi = (t) => {
4000
4000
  cursor: "pointer"
4001
4001
  },
4002
4002
  children: [
4003
- /* @__PURE__ */ u(U, { direction: "row", align: "center", gap: "sm", children: [
4003
+ /* @__PURE__ */ u($, { direction: "row", align: "center", gap: "sm", children: [
4004
4004
  /* @__PURE__ */ e(
4005
- w,
4005
+ b,
4006
4006
  {
4007
4007
  name: "DocumentFilled",
4008
4008
  size: "lg",
@@ -4013,7 +4013,7 @@ const Hi = (t) => {
4013
4013
  }
4014
4014
  }
4015
4015
  ),
4016
- /* @__PURE__ */ u(U, { direction: "column", children: [
4016
+ /* @__PURE__ */ u($, { direction: "column", children: [
4017
4017
  /* @__PURE__ */ e(
4018
4018
  v,
4019
4019
  {
@@ -4024,25 +4024,17 @@ const Hi = (t) => {
4024
4024
  whiteSpace: "nowrap",
4025
4025
  overflow: "hidden"
4026
4026
  },
4027
- children: Ii(t.defaultUrl || "") || ((r = t.fileSelected) == null ? void 0 : r.name)
4027
+ children: t.defaultFile ? Ii(t.defaultFile.url) : (r = t.fileSelected) == null ? void 0 : r.name
4028
4028
  }
4029
4029
  ),
4030
- !t.defaultUrl && /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
4031
- /* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", children: `${Ai(
4032
- ((i = t.fileSelected) == null ? void 0 : i.size.toString()) || "100000"
4033
- )}` }),
4034
- /* @__PURE__ */ e(w, { name: "Dot", size: "xs" }),
4035
- /* @__PURE__ */ e(
4036
- v,
4037
- {
4038
- fontSize: "sm",
4039
- fontWeight: "medium",
4040
- style: {
4041
- textWrap: "nowrap"
4042
- },
4043
- children: t.fileDate ? t.fileDate : Ei(/* @__PURE__ */ new Date())
4044
- }
4045
- )
4030
+ t.defaultFile ? (t.defaultFile.size || t.defaultFile.date) && /* @__PURE__ */ u($, { direction: "row", gap: "xs", align: "center", children: [
4031
+ t.defaultFile.size && /* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", children: t.defaultFile.size }),
4032
+ t.defaultFile.size && t.defaultFile.date && /* @__PURE__ */ e(b, { name: "Dot", size: "xs" }),
4033
+ t.defaultFile.date && /* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: t.defaultFile.date })
4034
+ ] }) : /* @__PURE__ */ u($, { direction: "row", gap: "xs", align: "center", children: [
4035
+ /* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", children: Ai(((i = t.fileSelected) == null ? void 0 : i.size.toString()) || "100000") }),
4036
+ /* @__PURE__ */ e(b, { name: "Dot", size: "xs" }),
4037
+ /* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: Ei(/* @__PURE__ */ new Date()) })
4046
4038
  ] })
4047
4039
  ] })
4048
4040
  ] }),
@@ -4056,22 +4048,22 @@ const Hi = (t) => {
4056
4048
  onClick: (o) => {
4057
4049
  o.stopPropagation(), t.handleOnDeleteFile();
4058
4050
  },
4059
- iconLeft: /* @__PURE__ */ e(w, { name: "Trash1" })
4051
+ iconLeft: /* @__PURE__ */ e(b, { name: "Trash1" })
4060
4052
  }
4061
4053
  )
4062
4054
  ]
4063
4055
  }
4064
4056
  );
4065
- }, Ri = ({ status: t = "default", ...r }) => {
4057
+ }, zi = ({ status: t = "default", ...r }) => {
4066
4058
  var l;
4067
4059
  const i = ie(null), o = () => {
4068
- if (r.defaultUrl) {
4069
- window.open(r.defaultUrl);
4060
+ if (r.defaultFile) {
4061
+ window.open(r.defaultFile.url);
4070
4062
  return;
4071
4063
  }
4072
4064
  i.current && i.current.click();
4073
4065
  }, n = ne("md");
4074
- return /* @__PURE__ */ u(G, { children: [
4066
+ return /* @__PURE__ */ u(U, { children: [
4075
4067
  /* @__PURE__ */ e(
4076
4068
  "input",
4077
4069
  {
@@ -4098,17 +4090,16 @@ const Hi = (t) => {
4098
4090
  gap: "md",
4099
4091
  ...r.containerProps,
4100
4092
  children: [
4101
- (r.fileSelected || r.defaultUrl) && /* @__PURE__ */ e(
4093
+ (r.fileSelected || r.defaultFile) && /* @__PURE__ */ e(
4102
4094
  Hi,
4103
4095
  {
4104
4096
  fileSelected: r.fileSelected,
4105
- fileDate: r.fileDate,
4097
+ defaultFile: r.defaultFile,
4106
4098
  handleOnDeleteFile: r.handleOnDeleteFile,
4107
- handleOnClickFile: o,
4108
- defaultUrl: r.defaultUrl
4099
+ handleOnClickFile: o
4109
4100
  }
4110
4101
  ),
4111
- !r.fileSelected && !r.defaultUrl && /* @__PURE__ */ e(
4102
+ !r.fileSelected && !r.defaultFile && /* @__PURE__ */ e(
4112
4103
  Fi,
4113
4104
  {
4114
4105
  fileSupports: r.fileSupportOption,
@@ -4124,7 +4115,7 @@ const Hi = (t) => {
4124
4115
  ),
4125
4116
  typeof r.errorMessage == "string" && r.errorMessage && /* @__PURE__ */ e(v, { color: "error", fontSize: "xs", children: r.errorMessage })
4126
4117
  ] });
4127
- }, Vi = ({
4118
+ }, Ri = ({
4128
4119
  size: t = "md",
4129
4120
  direction: r = "vertical",
4130
4121
  requiredTitle: i = "(Required)",
@@ -4163,7 +4154,7 @@ const Hi = (t) => {
4163
4154
  customMaxWidth: s,
4164
4155
  fullWidth: o,
4165
4156
  children: [
4166
- /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
4157
+ /* @__PURE__ */ u($, { direction: "row", gap: "xs", align: "center", children: [
4167
4158
  /* @__PURE__ */ e(_, { fontSize: t, children: n.title }),
4168
4159
  /* @__PURE__ */ e(_, { color: "error", fontSize: t, children: i }),
4169
4160
  /* @__PURE__ */ e(O, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
@@ -4173,7 +4164,7 @@ const Hi = (t) => {
4173
4164
  arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
4174
4165
  ...n.tooltip,
4175
4166
  children: /* @__PURE__ */ e(
4176
- w,
4167
+ b,
4177
4168
  {
4178
4169
  name: "InfoCircle",
4179
4170
  size: t === "lg" ? "sm" : "xs",
@@ -4192,9 +4183,9 @@ const Hi = (t) => {
4192
4183
  )
4193
4184
  }
4194
4185
  ),
4195
- /* @__PURE__ */ u(U, { direction: "column", gap: "xs", children: [
4186
+ /* @__PURE__ */ u($, { direction: "column", gap: "xs", children: [
4196
4187
  /* @__PURE__ */ e(
4197
- Ri,
4188
+ zi,
4198
4189
  {
4199
4190
  ...n.inputProps,
4200
4191
  status: n.errorMessage ? "error" : "default"
@@ -4205,7 +4196,7 @@ const Hi = (t) => {
4205
4196
  ]
4206
4197
  }
4207
4198
  );
4208
- }, zi = ({
4199
+ }, Vi = ({
4209
4200
  size: t = "md",
4210
4201
  direction: r = "vertical",
4211
4202
  requiredTitle: i = "(Required)",
@@ -4245,7 +4236,7 @@ const Hi = (t) => {
4245
4236
  customMaxWidth: a,
4246
4237
  fullWidth: o,
4247
4238
  children: [
4248
- /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
4239
+ /* @__PURE__ */ u($, { direction: "row", gap: "xs", align: "center", children: [
4249
4240
  /* @__PURE__ */ e(_, { fontSize: t, children: l.title }),
4250
4241
  /* @__PURE__ */ e(_, { color: "error", fontSize: t, children: i }),
4251
4242
  /* @__PURE__ */ e(O, { condition: !!((h = l.tooltip) != null && h.label), children: /* @__PURE__ */ e(
@@ -4255,7 +4246,7 @@ const Hi = (t) => {
4255
4246
  arrowPosition: (g = l.tooltip) == null ? void 0 : g.arrowPosition,
4256
4247
  ...l.tooltip,
4257
4248
  children: /* @__PURE__ */ e(
4258
- w,
4249
+ b,
4259
4250
  {
4260
4251
  name: "InfoCircle",
4261
4252
  size: t === "lg" ? "sm" : "xs",
@@ -4445,7 +4436,7 @@ const Hi = (t) => {
4445
4436
  customMaxWidth: s,
4446
4437
  fullWidth: o,
4447
4438
  children: [
4448
- /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
4439
+ /* @__PURE__ */ u($, { direction: "row", gap: "xs", align: "center", children: [
4449
4440
  /* @__PURE__ */ e(_, { fontSize: t, children: n.title }),
4450
4441
  /* @__PURE__ */ e(_, { color: "error", fontSize: t, children: i }),
4451
4442
  /* @__PURE__ */ e(O, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
@@ -4455,7 +4446,7 @@ const Hi = (t) => {
4455
4446
  arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
4456
4447
  ...n.tooltip,
4457
4448
  children: /* @__PURE__ */ e(
4458
- w,
4449
+ b,
4459
4450
  {
4460
4451
  name: "InfoCircle",
4461
4452
  size: t === "lg" ? "sm" : "xs",
@@ -4474,7 +4465,7 @@ const Hi = (t) => {
4474
4465
  )
4475
4466
  }
4476
4467
  ),
4477
- /* @__PURE__ */ u(U, { direction: "column", gap: "xs", children: [
4468
+ /* @__PURE__ */ u($, { direction: "column", gap: "xs", children: [
4478
4469
  /* @__PURE__ */ e(
4479
4470
  hr,
4480
4471
  {
@@ -4529,7 +4520,7 @@ const Hi = (t) => {
4529
4520
  customMaxWidth: s,
4530
4521
  fullWidth: n,
4531
4522
  children: [
4532
- /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
4523
+ /* @__PURE__ */ u($, { direction: "row", gap: "xs", align: "center", children: [
4533
4524
  /* @__PURE__ */ e(_, { fontSize: t, children: l.title }),
4534
4525
  /* @__PURE__ */ e(_, { color: "error", fontSize: t, children: i }),
4535
4526
  /* @__PURE__ */ e(O, { condition: !!((a = l.tooltip) != null && a.label), children: /* @__PURE__ */ e(
@@ -4539,7 +4530,7 @@ const Hi = (t) => {
4539
4530
  arrowPosition: (d = l.tooltip) == null ? void 0 : d.arrowPosition,
4540
4531
  ...l.tooltip,
4541
4532
  children: /* @__PURE__ */ e(
4542
- w,
4533
+ b,
4543
4534
  {
4544
4535
  name: "InfoCircle",
4545
4536
  size: t === "lg" ? "sm" : "xs",
@@ -4559,7 +4550,7 @@ const Hi = (t) => {
4559
4550
  }
4560
4551
  ),
4561
4552
  /* @__PURE__ */ e(
4562
- Gt,
4553
+ Ut,
4563
4554
  {
4564
4555
  checked: l.checked,
4565
4556
  onChange: l.onChange,
@@ -4580,7 +4571,7 @@ const Hi = (t) => {
4580
4571
  var h, d, g, m, y, D;
4581
4572
  if (!s) return;
4582
4573
  const a = i.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (d = (h = o == null ? void 0 : o.computed) == null ? void 0 : h.red) == null ? void 0 : d[600] : t === "secondary-primary" ? (m = (g = o == null ? void 0 : o.computed) == null ? void 0 : g.blue) == null ? void 0 : m[700] : (D = (y = o == null ? void 0 : o.computed) == null ? void 0 : y.gray) == null ? void 0 : D[50];
4583
- return /* @__PURE__ */ e(w, { name: s, size: r, style: { color: a } });
4574
+ return /* @__PURE__ */ e(b, { name: s, size: r, style: { color: a } });
4584
4575
  }, l = () => {
4585
4576
  var a, h, d, g;
4586
4577
  if (t !== "secondary-danger" && t !== "secondary-primary")
@@ -4663,7 +4654,7 @@ const Hi = (t) => {
4663
4654
  customMaxWidth: s,
4664
4655
  fullWidth: o,
4665
4656
  children: [
4666
- /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
4657
+ /* @__PURE__ */ u($, { direction: "row", gap: "xs", align: "center", children: [
4667
4658
  /* @__PURE__ */ e(_, { fontSize: t, children: n.title }),
4668
4659
  /* @__PURE__ */ e(_, { color: "error", fontSize: t, children: i }),
4669
4660
  /* @__PURE__ */ e(O, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
@@ -4673,7 +4664,7 @@ const Hi = (t) => {
4673
4664
  arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
4674
4665
  ...n.tooltip,
4675
4666
  children: /* @__PURE__ */ e(
4676
- w,
4667
+ b,
4677
4668
  {
4678
4669
  name: "InfoCircle",
4679
4670
  size: t === "lg" ? "sm" : "xs",
@@ -4692,7 +4683,7 @@ const Hi = (t) => {
4692
4683
  )
4693
4684
  }
4694
4685
  ),
4695
- /* @__PURE__ */ u(U, { direction: "column", gap: "xs", children: [
4686
+ /* @__PURE__ */ u($, { direction: "column", gap: "xs", children: [
4696
4687
  /* @__PURE__ */ e(
4697
4688
  f,
4698
4689
  {
@@ -4751,7 +4742,7 @@ const Tt = {
4751
4742
  "2:3": 2 / 3,
4752
4743
  "3:2": 3 / 2,
4753
4744
  "32:9": 32 / 9
4754
- }, Ui = qt(
4745
+ }, Gi = qt(
4755
4746
  ({
4756
4747
  handleUpload: t,
4757
4748
  urlImage: r,
@@ -4764,44 +4755,44 @@ const Tt = {
4764
4755
  maxFileSize: h = 2,
4765
4756
  onError: d
4766
4757
  }, g) => {
4767
- const m = ne("md"), [y, D] = k(!1), [E, x] = k(null), [R, j] = k(!1), [N, q] = k({ x: 0, y: 0 }), [M, ae] = k(1), [J, I] = k(null);
4758
+ const m = ne("md"), [y, D] = k(!1), [E, x] = k(null), [z, j] = k(!1), [N, q] = k({ x: 0, y: 0 }), [M, ae] = k(1), [J, I] = k(null);
4768
4759
  Z(() => {
4769
4760
  r === null && n(null);
4770
4761
  }, [r]);
4771
4762
  const P = ve(
4772
- (V, z) => {
4773
- I(z);
4763
+ (R, V) => {
4764
+ I(V);
4774
4765
  },
4775
4766
  []
4776
- ), oe = (V) => {
4767
+ ), oe = (R) => {
4777
4768
  var fe;
4778
- const z = (fe = V.target.files) == null ? void 0 : fe[0];
4779
- if (!z) return;
4769
+ const V = (fe = R.target.files) == null ? void 0 : fe[0];
4770
+ if (!V) return;
4780
4771
  const te = new FileReader();
4781
4772
  te.onload = () => {
4782
4773
  x(te.result), j(!0);
4783
- }, te.readAsDataURL(z);
4774
+ }, te.readAsDataURL(V);
4784
4775
  }, le = async () => {
4785
4776
  if (!(!E || !J))
4786
4777
  try {
4787
- const V = await $i(E, J);
4788
- if (h && V.size > h * 1024 * 1024) {
4778
+ const R = await $i(E, J);
4779
+ if (h && R.size > h * 1024 * 1024) {
4789
4780
  d == null || d(`Ukuran file maksimal ${h}MB`);
4790
4781
  return;
4791
4782
  }
4792
- t == null || t(V);
4793
- const z = URL.createObjectURL(V);
4794
- n(z, V), j(!1);
4783
+ t == null || t(R);
4784
+ const V = URL.createObjectURL(R);
4785
+ n(V, R), j(!1);
4795
4786
  } catch {
4796
4787
  d == null || d("Gagal memproses gambar");
4797
4788
  }
4798
- }, $ = ie(null), Q = () => {
4799
- $.current && $.current.click();
4789
+ }, G = ie(null), Q = () => {
4790
+ G.current && G.current.click();
4800
4791
  };
4801
4792
  pr(g, () => ({
4802
4793
  openFileDialog: () => {
4803
- var V;
4804
- (V = $.current) == null || V.click();
4794
+ var R;
4795
+ (R = G.current) == null || R.click();
4805
4796
  }
4806
4797
  }));
4807
4798
  const K = parseInt(l, 10), se = Tt[s];
@@ -4848,7 +4839,7 @@ const Tt = {
4848
4839
  justify: "center",
4849
4840
  padding: "spacing-4",
4850
4841
  children: /* @__PURE__ */ e(
4851
- w,
4842
+ b,
4852
4843
  {
4853
4844
  name: "Image",
4854
4845
  style: {
@@ -4879,7 +4870,7 @@ const Tt = {
4879
4870
  /* @__PURE__ */ e(
4880
4871
  "input",
4881
4872
  {
4882
- ref: $,
4873
+ ref: G,
4883
4874
  type: "file",
4884
4875
  accept: "image/*",
4885
4876
  onChange: oe,
@@ -4889,7 +4880,7 @@ const Tt = {
4889
4880
  ),
4890
4881
  /* @__PURE__ */ u(f, { display: "flex", align: "center", gap: "spacing-2", direction: "row", children: [
4891
4882
  /* @__PURE__ */ e(
4892
- w,
4883
+ b,
4893
4884
  {
4894
4885
  name: "Edit3",
4895
4886
  style: { color: "var(--sa-background-primary, #ffffff)" }
@@ -4935,7 +4926,7 @@ const Tt = {
4935
4926
  )
4936
4927
  }
4937
4928
  ),
4938
- R && xr.createPortal(
4929
+ z && xr.createPortal(
4939
4930
  /* @__PURE__ */ e(
4940
4931
  "div",
4941
4932
  {
@@ -4961,7 +4952,7 @@ const Tt = {
4961
4952
  display: "flex",
4962
4953
  flexDirection: "column"
4963
4954
  },
4964
- onClick: (V) => V.stopPropagation(),
4955
+ onClick: (R) => R.stopPropagation(),
4965
4956
  children: [
4966
4957
  /* @__PURE__ */ e(
4967
4958
  "div",
@@ -5016,7 +5007,7 @@ const Tt = {
5016
5007
  }
5017
5008
  );
5018
5009
  }
5019
- ), Gi = ({
5010
+ ), Ui = ({
5020
5011
  size: t = "md",
5021
5012
  direction: r = "vertical",
5022
5013
  requiredTitle: i = "(Required)",
@@ -5056,7 +5047,7 @@ const Tt = {
5056
5047
  customMaxWidth: a,
5057
5048
  fullWidth: o,
5058
5049
  children: [
5059
- /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
5050
+ /* @__PURE__ */ u($, { direction: "row", gap: "xs", align: "center", children: [
5060
5051
  /* @__PURE__ */ e(_, { fontSize: t, children: l.title }),
5061
5052
  /* @__PURE__ */ e(_, { color: "error", fontSize: t, children: i }),
5062
5053
  /* @__PURE__ */ e(O, { condition: !!((h = l.tooltip) != null && h.label), children: /* @__PURE__ */ e(
@@ -5066,7 +5057,7 @@ const Tt = {
5066
5057
  arrowPosition: (g = l.tooltip) == null ? void 0 : g.arrowPosition,
5067
5058
  ...l.tooltip,
5068
5059
  children: /* @__PURE__ */ e(
5069
- w,
5060
+ b,
5070
5061
  {
5071
5062
  name: "InfoCircle",
5072
5063
  size: t === "lg" ? "sm" : "xs",
@@ -5085,8 +5076,8 @@ const Tt = {
5085
5076
  )
5086
5077
  }
5087
5078
  ),
5088
- /* @__PURE__ */ u(U, { direction: "column", gap: "xs", children: [
5089
- /* @__PURE__ */ e(Ui, { ...l.inputProps }),
5079
+ /* @__PURE__ */ u($, { direction: "column", gap: "xs", children: [
5080
+ /* @__PURE__ */ e(Gi, { ...l.inputProps }),
5090
5081
  !s && l.errorMessage && /* @__PURE__ */ e(be, { message: l.errorMessage })
5091
5082
  ] })
5092
5083
  ]
@@ -5131,7 +5122,7 @@ const Tt = {
5131
5122
  customMaxWidth: l,
5132
5123
  fullWidth: o,
5133
5124
  children: [
5134
- /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
5125
+ /* @__PURE__ */ u($, { direction: "row", gap: "xs", align: "center", children: [
5135
5126
  /* @__PURE__ */ e(_, { fontSize: t, children: n.title }),
5136
5127
  /* @__PURE__ */ e(_, { color: "error", fontSize: t, children: i }),
5137
5128
  /* @__PURE__ */ e(O, { condition: !!((s = n.tooltip) != null && s.label), children: /* @__PURE__ */ e(
@@ -5141,7 +5132,7 @@ const Tt = {
5141
5132
  arrowPosition: (h = n.tooltip) == null ? void 0 : h.arrowPosition,
5142
5133
  ...n.tooltip,
5143
5134
  children: /* @__PURE__ */ e(
5144
- w,
5135
+ b,
5145
5136
  {
5146
5137
  name: "InfoCircle",
5147
5138
  size: t === "lg" ? "sm" : "xs",
@@ -5191,7 +5182,7 @@ const Tt = {
5191
5182
  width: o
5192
5183
  },
5193
5184
  children: n && /* @__PURE__ */ e(
5194
- Gt,
5185
+ Ut,
5195
5186
  {
5196
5187
  disabled: l,
5197
5188
  checked: h,
@@ -5204,15 +5195,15 @@ const Tt = {
5204
5195
  }, xo = {
5205
5196
  InputText: wi,
5206
5197
  InputDropdown: ki,
5207
- InputSingleFile: Vi,
5208
- CheckBoxOptions: zi,
5198
+ InputSingleFile: Ri,
5199
+ CheckBoxOptions: Vi,
5209
5200
  RadioOptions: Ni,
5210
5201
  InputTextArea: Ti,
5211
5202
  ToggleForm: Oi,
5212
5203
  ActionButton: _i,
5213
5204
  FormTitle: ji,
5214
5205
  InputDate: Zi,
5215
- InputImgFile: Gi,
5206
+ InputImgFile: Ui,
5216
5207
  Custom: qi
5217
5208
  }, Ji = ({ customBottom: t }) => {
5218
5209
  const [r, i] = k(!1), o = () => {
@@ -5248,7 +5239,7 @@ const Tt = {
5248
5239
  onClick: n,
5249
5240
  type: "button",
5250
5241
  iconLeft: /* @__PURE__ */ e(
5251
- w,
5242
+ b,
5252
5243
  {
5253
5244
  width: 16,
5254
5245
  size: "xs",
@@ -5347,7 +5338,7 @@ const Tt = {
5347
5338
  }
5348
5339
  ) }), Pi = ({ title: t, value: r, icon: i }) => /* @__PURE__ */ u(f, { display: "flex", direction: "column", gap: "sm", children: [
5349
5340
  i ? /* @__PURE__ */ u(f, { display: "flex", direction: "row", align: "center", gap: "xs", children: [
5350
- /* @__PURE__ */ e(w, { name: i, color: "subtle" }),
5341
+ /* @__PURE__ */ e(b, { name: i, color: "subtle" }),
5351
5342
  /* @__PURE__ */ e(v, { color: "gray-500", variant: "sub-h3", children: t })
5352
5343
  ] }) : /* @__PURE__ */ e(v, { color: "gray-500", variant: "sub-h3", children: t }),
5353
5344
  typeof r == "string" ? /* @__PURE__ */ e(v, { variant: "sub-h3", children: r }) : r
@@ -5356,7 +5347,7 @@ const Tt = {
5356
5347
  accent: "#78867F"
5357
5348
  };
5358
5349
  function Qi({ width: t, height: r }) {
5359
- return /* @__PURE__ */ e(G, { children: /* @__PURE__ */ u(
5350
+ return /* @__PURE__ */ e(U, { children: /* @__PURE__ */ u(
5360
5351
  "svg",
5361
5352
  {
5362
5353
  width: t || "100",
@@ -5513,9 +5504,9 @@ const bo = ({
5513
5504
  const g = () => {
5514
5505
  switch (o) {
5515
5506
  case "primary":
5516
- return /* @__PURE__ */ e(G, { children: l ? /* @__PURE__ */ e(T, { primary: !0, iconLeft: l, onClick: i, children: h || t }) : /* @__PURE__ */ e(T, { primary: !0, onClick: i, children: h || t }) });
5507
+ return /* @__PURE__ */ e(U, { children: l ? /* @__PURE__ */ e(T, { primary: !0, iconLeft: l, onClick: i, children: h || t }) : /* @__PURE__ */ e(T, { primary: !0, onClick: i, children: h || t }) });
5517
5508
  case "secondary":
5518
- return /* @__PURE__ */ e(G, { children: l ? /* @__PURE__ */ e(T, { secondary: !0, iconLeft: l, onClick: i, children: n ? /* @__PURE__ */ e(
5509
+ return /* @__PURE__ */ e(U, { children: l ? /* @__PURE__ */ e(T, { secondary: !0, iconLeft: l, onClick: i, children: n ? /* @__PURE__ */ e(
5519
5510
  v,
5520
5511
  {
5521
5512
  fontFamily: "Poppins",
@@ -5526,9 +5517,9 @@ const bo = ({
5526
5517
  }
5527
5518
  ) : t }) : /* @__PURE__ */ e(T, { secondary: !0, onClick: i, children: h || t }) });
5528
5519
  case "success":
5529
- return /* @__PURE__ */ e(G, { children: l ? /* @__PURE__ */ e(T, { success: !0, iconLeft: l, onClick: i, children: h || t }) : /* @__PURE__ */ e(T, { success: !0, onClick: i, children: h || t }) });
5520
+ return /* @__PURE__ */ e(U, { children: l ? /* @__PURE__ */ e(T, { success: !0, iconLeft: l, onClick: i, children: h || t }) : /* @__PURE__ */ e(T, { success: !0, onClick: i, children: h || t }) });
5530
5521
  default:
5531
- return /* @__PURE__ */ e(G, { children: l ? /* @__PURE__ */ e(T, { primary: !0, iconLeft: l, onClick: i, children: h || t }) : /* @__PURE__ */ e(T, { primary: !0, onClick: i, children: h || t }) });
5522
+ return /* @__PURE__ */ e(U, { children: l ? /* @__PURE__ */ e(T, { primary: !0, iconLeft: l, onClick: i, children: h || t }) : /* @__PURE__ */ e(T, { primary: !0, onClick: i, children: h || t }) });
5532
5523
  }
5533
5524
  };
5534
5525
  return /* @__PURE__ */ u(
@@ -5559,7 +5550,7 @@ const bo = ({
5559
5550
  ]
5560
5551
  }
5561
5552
  );
5562
- }, B = {
5553
+ }, W = {
5563
5554
  c001A72: "#001A72",
5564
5555
  c64B5F6: "#64B5F6",
5565
5556
  c98B4CB: "#98B4CB",
@@ -5570,7 +5561,7 @@ const bo = ({
5570
5561
  cFFFFFF: "#FFFFFF"
5571
5562
  };
5572
5563
  function Yi({ width: t, height: r }) {
5573
- return /* @__PURE__ */ e(G, { children: /* @__PURE__ */ u(
5564
+ return /* @__PURE__ */ e(U, { children: /* @__PURE__ */ u(
5574
5565
  "svg",
5575
5566
  {
5576
5567
  width: t,
@@ -5583,23 +5574,23 @@ function Yi({ width: t, height: r }) {
5583
5574
  "path",
5584
5575
  {
5585
5576
  d: "M32.4375 254.5H612.437",
5586
- stroke: B.c64B5F6,
5577
+ stroke: W.c64B5F6,
5587
5578
  strokeWidth: "5",
5588
5579
  strokeLinecap: "round"
5589
5580
  }
5590
5581
  ),
5591
- /* @__PURE__ */ e("rect", { x: "216.562", y: "45.5605", width: "55", height: "20", fill: B.cD6EBFD }),
5592
- /* @__PURE__ */ e("rect", { x: "14.4375", y: "89.7803", width: "46", height: "20", fill: B.cD6EBFD }),
5593
- /* @__PURE__ */ e("rect", { x: "0.4375", y: "111.78", width: "46", height: "20", fill: B.cD6EBFD }),
5594
- /* @__PURE__ */ e("rect", { x: "0.4375", y: "67.7803", width: "46", height: "20", fill: B.cD6EBFD }),
5595
- /* @__PURE__ */ e("rect", { x: "344.312", y: "0.5", width: "55", height: "20", fill: B.cD6EBFD }),
5596
- /* @__PURE__ */ e("rect", { x: "549.562", y: "86.7803", width: "55", height: "20", fill: B.cD6EBFD }),
5597
- /* @__PURE__ */ e("rect", { x: "566.562", y: "64.7803", width: "55", height: "20", fill: B.cD6EBFD }),
5582
+ /* @__PURE__ */ e("rect", { x: "216.562", y: "45.5605", width: "55", height: "20", fill: W.cD6EBFD }),
5583
+ /* @__PURE__ */ e("rect", { x: "14.4375", y: "89.7803", width: "46", height: "20", fill: W.cD6EBFD }),
5584
+ /* @__PURE__ */ e("rect", { x: "0.4375", y: "111.78", width: "46", height: "20", fill: W.cD6EBFD }),
5585
+ /* @__PURE__ */ e("rect", { x: "0.4375", y: "67.7803", width: "46", height: "20", fill: W.cD6EBFD }),
5586
+ /* @__PURE__ */ e("rect", { x: "344.312", y: "0.5", width: "55", height: "20", fill: W.cD6EBFD }),
5587
+ /* @__PURE__ */ e("rect", { x: "549.562", y: "86.7803", width: "55", height: "20", fill: W.cD6EBFD }),
5588
+ /* @__PURE__ */ e("rect", { x: "566.562", y: "64.7803", width: "55", height: "20", fill: W.cD6EBFD }),
5598
5589
  /* @__PURE__ */ e(
5599
5590
  "path",
5600
5591
  {
5601
5592
  d: "M233.438 165.217C233.438 132.764 239.035 107.198 250.231 88.5189C261.596 69.8396 279.832 60.5 304.938 60.5C330.043 60.5 348.194 69.8396 359.389 88.5189C370.755 107.198 376.438 132.764 376.438 165.217C376.438 198.047 370.755 223.802 359.389 242.481C348.194 261.16 330.043 270.5 304.938 270.5C279.832 270.5 261.596 261.16 250.231 242.481C239.035 223.802 233.438 198.047 233.438 165.217ZM333.69 165.217C333.69 146.16 331.824 131.538 328.092 121.349C324.36 110.972 316.642 105.783 304.938 105.783C293.233 105.783 285.515 110.972 281.783 121.349C278.051 131.538 276.185 146.16 276.185 165.217C276.185 178.047 276.863 188.708 278.22 197.198C279.577 205.5 282.292 212.292 286.363 217.575C290.604 222.67 296.795 225.217 304.938 225.217C313.08 225.217 319.187 222.67 323.258 217.575C327.499 212.292 330.298 205.5 331.655 197.198C333.012 188.708 333.69 178.047 333.69 165.217Z",
5602
- fill: B.cD0E5F7
5593
+ fill: W.cD0E5F7
5603
5594
  }
5604
5595
  ),
5605
5596
  /* @__PURE__ */ e(
@@ -5608,7 +5599,7 @@ function Yi({ width: t, height: r }) {
5608
5599
  fillRule: "evenodd",
5609
5600
  clipRule: "evenodd",
5610
5601
  d: "M50.4375 235.124V194.28L138.96 60.5H192.466V191.32H215.438V235.124H192.466V249.5H144.563V235.124H50.4375ZM100.862 191.32L147.925 116.143V191.32H100.862Z",
5611
- fill: B.cBBDEFB,
5602
+ fill: W.cBBDEFB,
5612
5603
  fillOpacity: "0.6"
5613
5604
  }
5614
5605
  ),
@@ -5618,41 +5609,41 @@ function Yi({ width: t, height: r }) {
5618
5609
  fillRule: "evenodd",
5619
5610
  clipRule: "evenodd",
5620
5611
  d: "M394.438 235.124V194.28L482.96 60.5H536.466V191.32H559.438V235.124H536.466V249.5H488.563V235.124H394.438ZM444.862 191.32L491.925 116.143V191.32H444.862Z",
5621
- fill: B.cBBDEFB,
5612
+ fill: W.cBBDEFB,
5622
5613
  fillOpacity: "0.6"
5623
5614
  }
5624
5615
  ),
5625
- /* @__PURE__ */ e("path", { d: "M349.472 171.5H261.64V186.396H349.472V171.5Z", fill: B.c98B4CB }),
5626
- /* @__PURE__ */ e("path", { d: "M261.64 171.5L244.719 186.396H261.64V171.5Z", fill: B.c98B4CB }),
5616
+ /* @__PURE__ */ e("path", { d: "M349.472 171.5H261.64V186.396H349.472V171.5Z", fill: W.c98B4CB }),
5617
+ /* @__PURE__ */ e("path", { d: "M261.64 171.5L244.719 186.396H261.64V171.5Z", fill: W.c98B4CB }),
5627
5618
  /* @__PURE__ */ e(
5628
5619
  "path",
5629
5620
  {
5630
5621
  d: "M363.574 186.396L349.472 171.5V186.396H363.574Z",
5631
- fill: B.c98B4CB
5622
+ fill: W.c98B4CB
5632
5623
  }
5633
5624
  ),
5634
5625
  /* @__PURE__ */ e(
5635
5626
  "path",
5636
5627
  {
5637
5628
  d: "M244.719 200.89V264.5H363.574V200.89M244.719 200.89H233.438L244.719 186.396M244.719 200.89H363.574M363.574 200.89H372.437L363.574 186.396M244.719 186.396L261.64 171.5M244.719 186.396H261.64M363.574 186.396L349.472 171.5M363.574 186.396H349.472M261.64 171.5H349.472M261.64 171.5V186.396M349.472 171.5V186.396M349.472 186.396H261.64",
5638
- stroke: B.c000000,
5629
+ stroke: W.c000000,
5639
5630
  strokeWidth: "2"
5640
5631
  }
5641
5632
  ),
5642
- /* @__PURE__ */ e("rect", { x: "246.438", y: "202.5", width: "116", height: "60", fill: B.cFFFFFF }),
5633
+ /* @__PURE__ */ e("rect", { x: "246.438", y: "202.5", width: "116", height: "60", fill: W.cFFFFFF }),
5643
5634
  /* @__PURE__ */ e(
5644
5635
  "path",
5645
5636
  {
5646
5637
  d: "M245.536 187.5H362.959L369.438 198.5H237.438L245.536 187.5Z",
5647
- fill: B.cFFFFFF
5638
+ fill: W.cFFFFFF
5648
5639
  }
5649
5640
  ),
5650
5641
  /* @__PURE__ */ e(
5651
5642
  "path",
5652
5643
  {
5653
5644
  d: "M332.438 129.846C332.438 141.175 329.183 152.403 323.949 160.772C318.699 169.168 311.592 174.5 303.938 174.5C296.283 174.5 289.176 169.168 283.926 160.772C278.692 152.403 275.438 141.175 275.438 129.846C275.438 118.458 277.838 109.628 282.543 103.663C287.216 97.7387 294.274 94.5 303.938 94.5C313.601 94.5 320.659 97.7387 325.332 103.663C330.037 109.628 332.438 118.458 332.438 129.846Z",
5654
- fill: B.cFFFFFF,
5655
- stroke: B.c000000,
5645
+ fill: W.cFFFFFF,
5646
+ stroke: W.c000000,
5656
5647
  strokeWidth: "2"
5657
5648
  }
5658
5649
  ),
@@ -5660,7 +5651,7 @@ function Yi({ width: t, height: r }) {
5660
5651
  "path",
5661
5652
  {
5662
5653
  d: "M281.438 145.5C284.032 154.136 285.762 158.682 290.951 164.591M292.681 166.409C293.624 167.647 295.708 169.591 297.438 170.5",
5663
- stroke: B.c000000,
5654
+ stroke: W.c000000,
5664
5655
  strokeWidth: "2",
5665
5656
  strokeLinecap: "round",
5666
5657
  strokeLinejoin: "round"
@@ -5670,7 +5661,7 @@ function Yi({ width: t, height: r }) {
5670
5661
  "path",
5671
5662
  {
5672
5663
  d: "M304.438 175C299.54 176.339 297.208 177.876 293.938 182.5M304.438 175C301.183 178.041 299.537 178.883 299.438 182.5M304.438 175C308.173 177.107 309.635 178.834 311.438 182.5",
5673
- stroke: B.c000000,
5664
+ stroke: W.c000000,
5674
5665
  strokeWidth: "2",
5675
5666
  strokeLinecap: "round",
5676
5667
  strokeLinejoin: "round"
@@ -5680,7 +5671,7 @@ function Yi({ width: t, height: r }) {
5680
5671
  "path",
5681
5672
  {
5682
5673
  d: "M304.936 175.5C303.438 180 302.529 181.628 304.936 186.5",
5683
- stroke: B.c000000,
5674
+ stroke: W.c000000,
5684
5675
  strokeWidth: "2",
5685
5676
  strokeLinecap: "round",
5686
5677
  strokeLinejoin: "round"
@@ -5690,30 +5681,30 @@ function Yi({ width: t, height: r }) {
5690
5681
  "path",
5691
5682
  {
5692
5683
  d: "M288.178 120.981C289.969 120.93 290.921 121.313 292.167 122.754",
5693
- stroke: B.c000000,
5684
+ stroke: W.c000000,
5694
5685
  strokeWidth: "2",
5695
5686
  strokeLinecap: "round",
5696
5687
  strokeLinejoin: "round"
5697
5688
  }
5698
5689
  ),
5699
- /* @__PURE__ */ e("circle", { cx: "291.724", cy: "118.765", r: "3.1027", fill: B.c000000 }),
5690
+ /* @__PURE__ */ e("circle", { cx: "291.724", cy: "118.765", r: "3.1027", fill: W.c000000 }),
5700
5691
  /* @__PURE__ */ e(
5701
5692
  "path",
5702
5693
  {
5703
5694
  d: "M308.128 122.463C309.123 120.973 309.987 120.418 311.883 120.237",
5704
- stroke: B.c000000,
5695
+ stroke: W.c000000,
5705
5696
  strokeWidth: "2",
5706
5697
  strokeLinecap: "round",
5707
5698
  strokeLinejoin: "round"
5708
5699
  }
5709
5700
  ),
5710
- /* @__PURE__ */ e("circle", { cx: "307.681", cy: "118.765", r: "3.1027", fill: B.c000000 }),
5711
- /* @__PURE__ */ e("ellipse", { cx: "297.938", cy: "134.5", rx: "2.5", ry: "2", fill: B.c000000 }),
5701
+ /* @__PURE__ */ e("circle", { cx: "307.681", cy: "118.765", r: "3.1027", fill: W.c000000 }),
5702
+ /* @__PURE__ */ e("ellipse", { cx: "297.938", cy: "134.5", rx: "2.5", ry: "2", fill: W.c000000 }),
5712
5703
  /* @__PURE__ */ e(
5713
5704
  "path",
5714
5705
  {
5715
5706
  d: "M340.437 97.5L333.438 104.5M333.438 97.5L340.438 104.5",
5716
- stroke: B.c001A72,
5707
+ stroke: W.c001A72,
5717
5708
  strokeWidth: "2",
5718
5709
  strokeLinecap: "round",
5719
5710
  strokeLinejoin: "round"
@@ -5723,7 +5714,7 @@ function Yi({ width: t, height: r }) {
5723
5714
  "path",
5724
5715
  {
5725
5716
  d: "M265.437 115.5L260.438 120.5M260.438 115.5L265.438 120.5",
5726
- stroke: B.c001A72,
5717
+ stroke: W.c001A72,
5727
5718
  strokeWidth: "1.2",
5728
5719
  strokeLinecap: "round",
5729
5720
  strokeLinejoin: "round"
@@ -5733,7 +5724,7 @@ function Yi({ width: t, height: r }) {
5733
5724
  "path",
5734
5725
  {
5735
5726
  d: "M288.437 87.5L283.438 92.5M283.438 87.5L288.438 92.5",
5736
- stroke: B.c001A72,
5727
+ stroke: W.c001A72,
5737
5728
  strokeWidth: "1.2",
5738
5729
  strokeLinecap: "round",
5739
5730
  strokeLinejoin: "round"
@@ -5743,7 +5734,7 @@ function Yi({ width: t, height: r }) {
5743
5734
  "path",
5744
5735
  {
5745
5736
  d: "M305.437 83.5L298.438 90.5M298.438 83.5L305.438 90.5",
5746
- stroke: B.c001A72,
5737
+ stroke: W.c001A72,
5747
5738
  strokeWidth: "1.5",
5748
5739
  strokeLinecap: "round",
5749
5740
  strokeLinejoin: "round"
@@ -5753,21 +5744,21 @@ function Yi({ width: t, height: r }) {
5753
5744
  "path",
5754
5745
  {
5755
5746
  d: "M342.437 145.5L337.438 150.5M337.438 145.5L342.438 150.5",
5756
- stroke: B.c001A72,
5747
+ stroke: W.c001A72,
5757
5748
  strokeWidth: "1.2",
5758
5749
  strokeLinecap: "round",
5759
5750
  strokeLinejoin: "round"
5760
5751
  }
5761
5752
  ),
5762
- /* @__PURE__ */ e("circle", { cx: "339.938", cy: "111", r: "2.5", fill: B.c001A72 }),
5763
- /* @__PURE__ */ e("circle", { cx: "336.438", cy: "94.5", r: "1", fill: B.c001A72 }),
5764
- /* @__PURE__ */ e("circle", { cx: "347.438", cy: "99.5", r: "1", fill: B.c001A72 }),
5765
- /* @__PURE__ */ e("circle", { cx: "267.438", cy: "109.5", r: "2", fill: B.c001A72 }),
5766
- /* @__PURE__ */ e("circle", { cx: "293.438", cy: "85.5", r: "2", fill: B.c001A72 }),
5767
- /* @__PURE__ */ e("circle", { cx: "339.438", cy: "138.5", r: "2", fill: B.c001A72 }),
5768
- /* @__PURE__ */ e("circle", { cx: "267.438", cy: "150.5", r: "2", fill: B.c001A72 }),
5769
- /* @__PURE__ */ e("circle", { cx: "268.438", cy: "118.5", r: "1", fill: B.c001A72 }),
5770
- /* @__PURE__ */ e("circle", { cx: "260.438", cy: "124.5", r: "1", fill: B.c001A72 })
5753
+ /* @__PURE__ */ e("circle", { cx: "339.938", cy: "111", r: "2.5", fill: W.c001A72 }),
5754
+ /* @__PURE__ */ e("circle", { cx: "336.438", cy: "94.5", r: "1", fill: W.c001A72 }),
5755
+ /* @__PURE__ */ e("circle", { cx: "347.438", cy: "99.5", r: "1", fill: W.c001A72 }),
5756
+ /* @__PURE__ */ e("circle", { cx: "267.438", cy: "109.5", r: "2", fill: W.c001A72 }),
5757
+ /* @__PURE__ */ e("circle", { cx: "293.438", cy: "85.5", r: "2", fill: W.c001A72 }),
5758
+ /* @__PURE__ */ e("circle", { cx: "339.438", cy: "138.5", r: "2", fill: W.c001A72 }),
5759
+ /* @__PURE__ */ e("circle", { cx: "267.438", cy: "150.5", r: "2", fill: W.c001A72 }),
5760
+ /* @__PURE__ */ e("circle", { cx: "268.438", cy: "118.5", r: "1", fill: W.c001A72 }),
5761
+ /* @__PURE__ */ e("circle", { cx: "260.438", cy: "124.5", r: "1", fill: W.c001A72 })
5771
5762
  ]
5772
5763
  }
5773
5764
  ) });
@@ -5830,7 +5821,7 @@ const A = {
5830
5821
  cFFFFFF: "#FFFFFF"
5831
5822
  };
5832
5823
  function Xi({ width: t, height: r }) {
5833
- return /* @__PURE__ */ e(G, { children: /* @__PURE__ */ u(
5824
+ return /* @__PURE__ */ e(U, { children: /* @__PURE__ */ u(
5834
5825
  "svg",
5835
5826
  {
5836
5827
  width: t,
@@ -6081,7 +6072,7 @@ const c = {
6081
6072
  cFFFFFF: "#FFFFFF"
6082
6073
  };
6083
6074
  function Ki({ width: t, height: r }) {
6084
- return /* @__PURE__ */ e(G, { children: /* @__PURE__ */ u(
6075
+ return /* @__PURE__ */ e(U, { children: /* @__PURE__ */ u(
6085
6076
  "svg",
6086
6077
  {
6087
6078
  width: t,
@@ -6870,7 +6861,7 @@ const Fo = (t) => {
6870
6861
  bodyProps: D,
6871
6862
  headerProps: E = { borderBottom: !0 },
6872
6863
  footerProps: x = { borderTop: !0 },
6873
- variantTag: R = "info"
6864
+ variantTag: z = "info"
6874
6865
  }) => {
6875
6866
  const j = ie(null), [N, q] = k("100vh");
6876
6867
  Z(() => {
@@ -6884,7 +6875,7 @@ const Fo = (t) => {
6884
6875
  }, []);
6885
6876
  const M = () => d ? /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
6886
6877
  /* @__PURE__ */ e(v, { fontWeight: "medium", children: h }),
6887
- /* @__PURE__ */ e(Le, { border: !0, text: d, variant: R })
6878
+ /* @__PURE__ */ e(Le, { border: !0, text: d, variant: z })
6888
6879
  ] }) : /* @__PURE__ */ e(v, { fontWeight: "medium", children: h }), ae = () => s || /* @__PURE__ */ u(
6889
6880
  f,
6890
6881
  {
@@ -6936,7 +6927,7 @@ const Fo = (t) => {
6936
6927
  }
6937
6928
  );
6938
6929
  }
6939
- ), Mo = Ge.memo(
6930
+ ), Mo = Ue.memo(
6940
6931
  ({ value: t, options: r = [], onChange: i, multiple: o }) => {
6941
6932
  const n = (t == null ? void 0 : t.map((a) => a.value)) || [], l = (r == null ? void 0 : r.filter((a) => n.includes(a.value))) || [], s = (a) => {
6942
6933
  const h = [...l];
@@ -6996,12 +6987,12 @@ const re = {
6996
6987
  {
6997
6988
  mode: "modal",
6998
6989
  label: "Modal",
6999
- icon: /* @__PURE__ */ e(w, { name: "Newscreen", size: "sm" })
6990
+ icon: /* @__PURE__ */ e(b, { name: "Newscreen", size: "sm" })
7000
6991
  },
7001
6992
  {
7002
6993
  mode: "fullscreen",
7003
6994
  label: "Fullscreen",
7004
- icon: /* @__PURE__ */ e(w, { name: "Fullscreen", size: "sm" })
6995
+ icon: /* @__PURE__ */ e(b, { name: "Fullscreen", size: "sm" })
7005
6996
  }
7006
6997
  ];
7007
6998
  function tn({ value: t, onChange: r }) {
@@ -7051,8 +7042,8 @@ function nn(t) {
7051
7042
  }
7052
7043
  function $e(t, r) {
7053
7044
  let i = null;
7054
- return Ge.Children.forEach(t, (o) => {
7055
- Ge.isValidElement(o) && o.type === r && (i = o.props.children ?? null);
7045
+ return Ue.Children.forEach(t, (o) => {
7046
+ Ue.isValidElement(o) && o.type === r && (i = o.props.children ?? null);
7056
7047
  }), i;
7057
7048
  }
7058
7049
  function on(t) {
@@ -7070,7 +7061,7 @@ function on(t) {
7070
7061
  disableBackdropClose: m = !1,
7071
7062
  lockBodyScroll: y = !0,
7072
7063
  children: D
7073
- } = t, [E, x] = k(n), R = o ?? E, N = ne("md") ? R : "fullscreen", q = ve(
7064
+ } = t, [E, x] = k(n), z = o ?? E, N = ne("md") ? z : "fullscreen", q = ve(
7074
7065
  (Q) => {
7075
7066
  o === void 0 && x(Q), l == null || l(Q);
7076
7067
  },
@@ -7110,7 +7101,7 @@ function on(t) {
7110
7101
  ].filter(Boolean).join(" "), le = {
7111
7102
  "--lyd-max-w": nn(h),
7112
7103
  ...d !== void 0 && { "--lyd-aside-w": d }
7113
- }, $ = () => {
7104
+ }, G = () => {
7114
7105
  m || i();
7115
7106
  };
7116
7107
  return /* @__PURE__ */ u(
@@ -7125,7 +7116,7 @@ function on(t) {
7125
7116
  "div",
7126
7117
  {
7127
7118
  className: re["lyd-backdrop"],
7128
- onClick: $,
7119
+ onClick: G,
7129
7120
  "aria-hidden": "true"
7130
7121
  }
7131
7122
  ),
@@ -7133,7 +7124,7 @@ function on(t) {
7133
7124
  /* @__PURE__ */ u("div", { className: re["lyd-header"], children: [
7134
7125
  /* @__PURE__ */ e("div", { className: re["lyd-header-content"], children: ae }),
7135
7126
  /* @__PURE__ */ u("div", { className: re["lyd-header-actions"], children: [
7136
- s && /* @__PURE__ */ e(tn, { value: R, onChange: q }),
7127
+ s && /* @__PURE__ */ e(tn, { value: z, onChange: q }),
7137
7128
  a && /* @__PURE__ */ e(
7138
7129
  "button",
7139
7130
  {
@@ -7141,7 +7132,7 @@ function on(t) {
7141
7132
  className: re["lyd-close-btn"],
7142
7133
  onClick: i,
7143
7134
  "aria-label": "Close dialog",
7144
- children: /* @__PURE__ */ e(w, { name: "Cross", size: "md" })
7135
+ children: /* @__PURE__ */ e(b, { name: "Cross", size: "md" })
7145
7136
  }
7146
7137
  )
7147
7138
  ] })
@@ -7259,7 +7250,7 @@ function Lo({ url: t, filename: r, onClose: i }) {
7259
7250
  }
7260
7251
  );
7261
7252
  }
7262
- const Bo = (t) => {
7253
+ const Wo = (t) => {
7263
7254
  const { defaultTab: r = 0, paramKey: i = "tab" } = t || {}, [o, n] = Ye(), l = Pe(o.toString());
7264
7255
  return {
7265
7256
  activeTab: l[i] ? parseInt(l[i]) : r,
@@ -7272,12 +7263,12 @@ const Bo = (t) => {
7272
7263
  searchQueries: l
7273
7264
  };
7274
7265
  };
7275
- function Wo({
7266
+ function Bo({
7276
7267
  appName: t,
7277
7268
  menuConfig: r,
7278
7269
  formatTitle: i
7279
7270
  }) {
7280
- const o = ze();
7271
+ const o = Ve();
7281
7272
  Z(() => {
7282
7273
  let n = null, l = null;
7283
7274
  for (const h of r) {
@@ -7294,7 +7285,7 @@ function Wo({
7294
7285
  }, [o.pathname]);
7295
7286
  }
7296
7287
  const Ao = () => {
7297
- const [t, r] = Ye(), i = Pe(t.toString()), o = Jt(), n = ze(), l = o.id;
7288
+ const [t, r] = Ye(), i = Pe(t.toString()), o = Jt(), n = Ve(), l = o.id;
7298
7289
  return {
7299
7290
  // query params
7300
7291
  setSearchParams: r,
@@ -7338,9 +7329,9 @@ function Io(t) {
7338
7329
  }, [(n = (o = r == null ? void 0 : r.access) == null ? void 0 : o.role) == null ? void 0 : n.code, t]);
7339
7330
  }
7340
7331
  export {
7341
- Un as ActionMenu,
7332
+ Gn as ActionMenu,
7342
7333
  hi as AdvanceFilterBar,
7343
- Rn as App,
7334
+ zn as App,
7344
7335
  kr as AppComponent,
7345
7336
  Qt as AppContext,
7346
7337
  Tn as AppLayout,
@@ -7357,13 +7348,13 @@ export {
7357
7348
  ko as ForbiddenPage,
7358
7349
  xo as Form,
7359
7350
  Eo as FullSection,
7360
- Vn as HeaderLeftSlot,
7351
+ Rn as HeaderLeftSlot,
7361
7352
  Er as HeaderLeftSlotOutlet,
7362
7353
  Fr as HeaderLeftSlotProvider,
7363
7354
  jn as HorizontalField,
7364
7355
  Lo as ImagePreview,
7365
- Ri as InputFile,
7366
- Ui as InputImage,
7356
+ zi as InputFile,
7357
+ Gi as InputImage,
7367
7358
  Ke as LayoutDialog,
7368
7359
  bt as LayoutDialogAside,
7369
7360
  Dt as LayoutDialogBody,
@@ -7382,7 +7373,7 @@ export {
7382
7373
  Mo as SelectButton,
7383
7374
  So as ServerErrorPage,
7384
7375
  br as SidebarBadgesProvider,
7385
- zn as SidebarGroupSlot,
7376
+ Vn as SidebarGroupSlot,
7386
7377
  Lr as SidebarGroupSlotOutlet,
7387
7378
  Mr as SidebarGroupSlotProvider,
7388
7379
  Sr as SidebarHeaderSlot,
@@ -7403,11 +7394,11 @@ export {
7403
7394
  Pn as getDateFilterValue,
7404
7395
  Jn as getDateRangeFilterValue,
7405
7396
  to as getInitials,
7406
- Gn as getValueDropdownMultipleFilter,
7397
+ Un as getValueDropdownMultipleFilter,
7407
7398
  qn as getValueRadioFilter,
7408
7399
  di as getValueSearch,
7409
7400
  nt as getValuesFilter,
7410
- zt as handleChangeFilter,
7401
+ Vt as handleChangeFilter,
7411
7402
  yo as handleOnScroll,
7412
7403
  fo as isEmail,
7413
7404
  Qn as isFilterActive,
@@ -7429,10 +7420,10 @@ export {
7429
7420
  Yt as useApp,
7430
7421
  Dr as useAppState,
7431
7422
  Io as useAuthRole,
7432
- Wo as useDynamicTitle,
7423
+ Bo as useDynamicTitle,
7433
7424
  er as useModuleSelection,
7434
7425
  xt as useRouteInfo,
7435
7426
  Ao as useRouteParams,
7436
7427
  wr as useSidebarBadges,
7437
- Bo as useTabState
7428
+ Wo as useTabState
7438
7429
  };