@starasia/admin 14.48.0 → 14.49.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js CHANGED
@@ -25,13 +25,13 @@ import { searchParamsToObject as br } from "@starasia/http";
25
25
  export * from "@starasia/http";
26
26
  import { Input as Mt } from "@starasia/input";
27
27
  export * from "@starasia/input";
28
- import { Menu as Ze, MenuButton as Ge, MenuLists as qe, MenuHeading as xo, MenuBody as Ue, MenuItem as Je, MenuFooter as cn } from "@starasia/menu";
28
+ import { Menu as Ge, MenuButton as qe, MenuLists as Ue, MenuHeading as xo, MenuBody as Qe, MenuItem as Je, MenuFooter as cn } from "@starasia/menu";
29
29
  export * from "@starasia/menu";
30
30
  import { Pagination as sn } from "@starasia/pagination";
31
31
  export * from "@starasia/pagination";
32
32
  import { storage as zr } from "@starasia/storage";
33
33
  export * from "@starasia/storage";
34
- import { Tr as nt, Td as Ne, Table as ur, Thead as Ci, Th as Tt, Tbody as Xr, useColumnWidths as vo, Tfoot as Co } from "@starasia/table";
34
+ import { Tr as nt, Td as $e, Table as ur, Thead as Ci, Th as Tt, Tbody as Xr, useColumnWidths as vo, Tfoot as Co } from "@starasia/table";
35
35
  export * from "@starasia/table";
36
36
  export * from "@starasia/tabs";
37
37
  import { Textarea as wo } from "@starasia/textarea";
@@ -41,7 +41,7 @@ export * from "@starasia/theme";
41
41
  export * from "@starasia/toast";
42
42
  import { Toggle as xr } from "@starasia/toggle";
43
43
  export * from "@starasia/toggle";
44
- import { Tooltip as Oe } from "@starasia/tooltip";
44
+ import { Tooltip as Ve } from "@starasia/tooltip";
45
45
  export * from "@starasia/tooltip";
46
46
  import { Checkbox as Rt } from "@starasia/checkbox";
47
47
  export * from "@starasia/checkbox";
@@ -62,7 +62,7 @@ import { Skeleton as Ct } from "@starasia/skeleton";
62
62
  export * from "@starasia/skeleton";
63
63
  export * from "@starasia/progress-stepper";
64
64
  import { jsx as e, Fragment as ne, jsxs as u } from "react/jsx-runtime";
65
- import Dt, { createContext as _t, useState as B, useContext as At, useCallback as j, useMemo as Ee, memo as bt, useEffect as Y, useRef as le, useLayoutEffect as mt, forwardRef as an, isValidElement as Jr, useSyncExternalStore as Eo, Children as Fo, useImperativeHandle as Lo } from "react";
65
+ import Dt, { createContext as _t, useState as B, useContext as At, useCallback as P, useMemo as Fe, memo as bt, useEffect as Q, useRef as le, useLayoutEffect as mt, forwardRef as an, isValidElement as Jr, useSyncExternalStore as Eo, Children as Fo, useImperativeHandle as Lo } from "react";
66
66
  import Wo, { createPortal as dn } from "react-dom";
67
67
  import Ro from "react-easy-crop";
68
68
  const Mo = {
@@ -90,14 +90,14 @@ const Mo = {
90
90
  clearBadge: () => {
91
91
  }
92
92
  }), zo = ({ children: t }) => {
93
- const [r, n] = B({}), o = j(
93
+ const [r, n] = B({}), o = P(
94
94
  (s) => {
95
95
  n(
96
96
  (a) => typeof s == "function" ? s(a) : s
97
97
  );
98
98
  },
99
99
  []
100
- ), i = j(
100
+ ), i = P(
101
101
  (s, a) => {
102
102
  n((d) => {
103
103
  const f = typeof a == "function" ? a(d[s]) : a;
@@ -105,13 +105,13 @@ const Mo = {
105
105
  });
106
106
  },
107
107
  []
108
- ), l = j((s) => {
108
+ ), l = P((s) => {
109
109
  n((a) => {
110
110
  if (!(s in a)) return a;
111
111
  const d = { ...a };
112
112
  return delete d[s], d;
113
113
  });
114
- }, []), c = Ee(
114
+ }, []), c = Fe(
115
115
  () => ({ badges: r, setBadge: i, setBadges: o, clearBadge: l }),
116
116
  [r, i, o, l]
117
117
  );
@@ -171,32 +171,32 @@ const Mo = {
171
171
  }) => {
172
172
  const [c, s] = B(r), [a, d] = B(!1), [f, p] = B(
173
173
  () => Ho(l, n, o, i)
174
- ), g = j(
174
+ ), g = P(
175
175
  (k) => {
176
176
  s(
177
- (z) => typeof k == "function" ? k(z) : k
177
+ (M) => typeof k == "function" ? k(M) : k
178
178
  );
179
179
  },
180
180
  []
181
- ), b = j(() => s((k) => !k), []), D = j(() => s(!0), []), C = j(() => s(!1), []), I = j(
181
+ ), b = P(() => s((k) => !k), []), D = P(() => s(!0), []), C = P(() => s(!1), []), I = P(
182
182
  (k) => {
183
- p((z) => {
184
- const G = typeof k == "function" ? k(z) : k, O = Kr(Math.round(G), o, i);
183
+ p((M) => {
184
+ const G = typeof k == "function" ? k(M) : k, O = Kr(Math.round(G), o, i);
185
185
  return In(l, O), O;
186
186
  });
187
187
  },
188
188
  [o, i, l]
189
- ), A = j(() => {
189
+ ), z = P(() => {
190
190
  const k = Kr(n, o, i);
191
191
  In(l, k), p(k);
192
- }, [n, o, i, l]), M = j(
192
+ }, [n, o, i, l]), A = P(
193
193
  (k) => {
194
194
  d(
195
- (z) => typeof k == "function" ? k(z) : k
195
+ (M) => typeof k == "function" ? k(M) : k
196
196
  );
197
197
  },
198
198
  []
199
- ), x = j(() => d(!0), []), S = j(() => d(!1), []), L = j(() => d((k) => !k), []), R = Ee(
199
+ ), x = P(() => d(!0), []), S = P(() => d(!1), []), L = P(() => d((k) => !k), []), R = Fe(
200
200
  () => ({
201
201
  collapsed: c,
202
202
  setCollapsed: g,
@@ -205,11 +205,11 @@ const Mo = {
205
205
  expand: C,
206
206
  width: f,
207
207
  setWidth: I,
208
- resetWidth: A,
208
+ resetWidth: z,
209
209
  minWidth: o,
210
210
  maxWidth: i,
211
211
  mobileOpen: a,
212
- setMobileOpen: M,
212
+ setMobileOpen: A,
213
213
  openMobile: x,
214
214
  closeMobile: S,
215
215
  toggleMobile: L
@@ -222,11 +222,11 @@ const Mo = {
222
222
  C,
223
223
  f,
224
224
  I,
225
- A,
225
+ z,
226
226
  o,
227
227
  i,
228
228
  a,
229
- M,
229
+ A,
230
230
  x,
231
231
  S,
232
232
  L
@@ -310,7 +310,7 @@ function $o({
310
310
  }
311
311
  const un = _t(null);
312
312
  function _o({ children: t }) {
313
- const [r, n] = B(null), [o, i] = B(null), [l, c] = B(null), [s, a] = B(0), d = j(() => (a((f) => f + 1), () => a((f) => f - 1)), []);
313
+ const [r, n] = B(null), [o, i] = B(null), [l, c] = B(null), [s, a] = B(0), d = P(() => (a((f) => f + 1), () => a((f) => f - 1)), []);
314
314
  return /* @__PURE__ */ e(
315
315
  un.Provider,
316
316
  {
@@ -341,7 +341,7 @@ function Ea({
341
341
  mode: r = "append"
342
342
  }) {
343
343
  const n = At(un);
344
- if (Y(() => {
344
+ if (Q(() => {
345
345
  if (!(r !== "replace" || !n))
346
346
  return n.registerReplace();
347
347
  }, [r, n]), !n)
@@ -353,12 +353,12 @@ function Ea({
353
353
  }
354
354
  const hn = _t(null);
355
355
  function jo({ children: t }) {
356
- const [r, n] = B({}), [o, i] = B({}), l = j((a, d) => {
356
+ const [r, n] = B({}), [o, i] = B({}), l = P((a, d) => {
357
357
  n((f) => f[a] === d ? f : { ...f, [a]: d });
358
- }, []), c = j((a) => (i((d) => ({ ...d, [a]: (d[a] ?? 0) + 1 })), () => i((d) => ({
358
+ }, []), c = P((a) => (i((d) => ({ ...d, [a]: (d[a] ?? 0) + 1 })), () => i((d) => ({
359
359
  ...d,
360
360
  [a]: Math.max(0, (d[a] ?? 0) - 1)
361
- }))), []), s = Ee(
361
+ }))), []), s = Fe(
362
362
  () => ({ outletNodes: r, setOutletNode: l, slotCounts: o, registerSlot: c }),
363
363
  [r, l, o, c]
364
364
  );
@@ -367,7 +367,7 @@ function jo({ children: t }) {
367
367
  function Bn({ slotKey: t, fallback: r }) {
368
368
  const n = At(hn), o = n ? (n.slotCounts[t] ?? 0) > 0 : !1, i = le(n == null ? void 0 : n.setOutletNode);
369
369
  i.current = n == null ? void 0 : n.setOutletNode;
370
- const l = j(
370
+ const l = P(
371
371
  (c) => {
372
372
  var s;
373
373
  return (s = i.current) == null ? void 0 : s.call(i, t, c);
@@ -379,7 +379,7 @@ function Bn({ slotKey: t, fallback: r }) {
379
379
  }
380
380
  function Fa({ slotKey: t, children: r }) {
381
381
  const n = At(hn), o = le(n == null ? void 0 : n.registerSlot);
382
- if (o.current = n == null ? void 0 : n.registerSlot, Y(() => {
382
+ if (o.current = n == null ? void 0 : n.registerSlot, Q(() => {
383
383
  var l;
384
384
  return (l = o.current) == null ? void 0 : l.call(o, t);
385
385
  }, [t]), !n)
@@ -407,7 +407,7 @@ function Mi() {
407
407
  const [t, r] = B(
408
408
  () => Hn()
409
409
  );
410
- return Y(() => {
410
+ return Q(() => {
411
411
  const o = () => {
412
412
  r(Hn());
413
413
  }, i = (l) => {
@@ -431,7 +431,7 @@ function Tn({
431
431
  onClick: c
432
432
  }) {
433
433
  const [s, a] = B(!1);
434
- return /* @__PURE__ */ e(Oe, { fluid: !0, label: n, position: "right", children: /* @__PURE__ */ u(
434
+ return /* @__PURE__ */ e(Ve, { fluid: !0, label: n, position: "right", children: /* @__PURE__ */ u(
435
435
  h,
436
436
  {
437
437
  as: "button",
@@ -758,7 +758,7 @@ function Nn({
758
758
  children: t
759
759
  }
760
760
  );
761
- return /* @__PURE__ */ e(h, { ref: o, display: "block", style: { flex: 1, minWidth: 0 }, children: l ? /* @__PURE__ */ e(Oe, { fluid: !0, label: t, position: "top", children: c }) : c });
761
+ return /* @__PURE__ */ e(h, { ref: o, display: "block", style: { flex: 1, minWidth: 0 }, children: l ? /* @__PURE__ */ e(Ve, { fluid: !0, label: t, position: "top", children: c }) : c });
762
762
  }
763
763
  const Yo = 200, tn = "var(--app-header-height, 4rem)", $n = "44px", Hr = `calc((${tn} - 2rem) / 2)`, _n = 16;
764
764
  function Wa({
@@ -779,47 +779,47 @@ function Wa({
779
779
  rail: D
780
780
  }) {
781
781
  var Jt, Wt;
782
- const { useSearchParams: C, useNavigate: I, useLocation: A, Outlet: M } = wt(), [x] = C(), S = x.get("embed") === "true", L = Di(), { badges: R } = Io(), k = I(), z = A(), O = !Ie("md"), [H, N] = B(!1), {
782
+ const { useSearchParams: C, useNavigate: I, useLocation: z, Outlet: A } = wt(), [x] = C(), S = x.get("embed") === "true", L = Di(), { badges: R } = Io(), k = I(), M = z(), O = !Ie("md"), [H, N] = B(!1), {
783
783
  collapsed: Z,
784
- setCollapsed: q,
784
+ setCollapsed: Y,
785
785
  width: re,
786
786
  setWidth: J,
787
- resetWidth: K,
788
- minWidth: $,
789
- maxWidth: me,
790
- mobileOpen: fe,
791
- setMobileOpen: Re
792
- } = Oo(), [Qe, Fe] = B(!1), [xe, ve] = B(
787
+ resetWidth: me,
788
+ minWidth: j,
789
+ maxWidth: K,
790
+ mobileOpen: se,
791
+ setMobileOpen: ke
792
+ } = Oo(), [Be, Le] = B(!1), [xe, ve] = B(
793
793
  () => new Set(On)
794
- ), [Be, Ke] = B(null), { selectedGroupId: $e, setSelectedGroupId: ae } = Mi(), ue = !!(D && D.items.length > 0), ye = Z && !O && !ue, De = Z && !O && ue;
795
- Y(() => {
794
+ ), [He, Ke] = B(null), { selectedGroupId: _e, setSelectedGroupId: de } = Mi(), he = !!(D && D.items.length > 0), ye = Z && !O && !he, De = Z && !O && he;
795
+ Q(() => {
796
796
  On = xe;
797
797
  }, [xe]);
798
- const Me = le(null), st = le(null), at = le(null), [T, X] = B(!1), [U, he] = B(null), Le = b && !O && !Z, Ce = (E) => Math.min(Math.max(E, $), me), Ve = U ?? re, dt = (E) => {
799
- var tt, Pe, ot;
800
- if (!Le) return;
798
+ const Me = le(null), st = le(null), at = le(null), [T, X] = B(!1), [q, fe] = B(null), We = b && !O && !Z, Ce = (E) => Math.min(Math.max(E, j), K), Ne = q ?? re, dt = (E) => {
799
+ var tt, je, ot;
800
+ if (!We) return;
801
801
  E.preventDefault();
802
- const P = E.clientX, Q = ((tt = at.current) == null ? void 0 : tt.getBoundingClientRect().width) ?? re;
803
- (ot = (Pe = E.currentTarget).setPointerCapture) == null || ot.call(Pe, E.pointerId), X(!0), document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
804
- let ce = 0, ge = Q;
802
+ const _ = E.clientX, U = ((tt = at.current) == null ? void 0 : tt.getBoundingClientRect().width) ?? re;
803
+ (ot = (je = E.currentTarget).setPointerCapture) == null || ot.call(je, E.pointerId), X(!0), document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
804
+ let ce = 0, ge = U;
805
805
  const ze = (Xe) => {
806
- ge = Q + (Xe.clientX - P), ce || (ce = requestAnimationFrame(() => {
807
- ce = 0, he(Ce(ge));
806
+ ge = U + (Xe.clientX - _), ce || (ce = requestAnimationFrame(() => {
807
+ ce = 0, fe(Ce(ge));
808
808
  }));
809
- }, de = () => {
810
- ce && cancelAnimationFrame(ce), window.removeEventListener("pointermove", ze), window.removeEventListener("pointerup", de), document.body.style.userSelect = "", document.body.style.cursor = "", he(null), X(!1), ge < Yo ? q(!0) : J(Ce(ge));
809
+ }, ue = () => {
810
+ ce && cancelAnimationFrame(ce), window.removeEventListener("pointermove", ze), window.removeEventListener("pointerup", ue), document.body.style.userSelect = "", document.body.style.cursor = "", fe(null), X(!1), ge < Yo ? Y(!0) : J(Ce(ge));
811
811
  };
812
- window.addEventListener("pointermove", ze), window.addEventListener("pointerup", de);
812
+ window.addEventListener("pointermove", ze), window.addEventListener("pointerup", ue);
813
813
  }, et = (E) => {
814
- Le && (E.key === "ArrowLeft" ? (E.preventDefault(), J((P) => P - _n)) : E.key === "ArrowRight" ? (E.preventDefault(), J((P) => P + _n)) : E.key === "Home" ? (E.preventDefault(), J($)) : E.key === "End" && (E.preventDefault(), J(me)));
814
+ We && (E.key === "ArrowLeft" ? (E.preventDefault(), J((_) => _ - _n)) : E.key === "ArrowRight" ? (E.preventDefault(), J((_) => _ + _n)) : E.key === "Home" ? (E.preventDefault(), J(j)) : E.key === "End" && (E.preventDefault(), J(K)));
815
815
  };
816
- Y(() => {
816
+ Q(() => {
817
817
  const E = Me.current;
818
818
  if (!E) return;
819
- const P = () => {
819
+ const _ = () => {
820
820
  Ht || (nr = E.scrollTop);
821
821
  };
822
- return E.addEventListener("scroll", P), () => E.removeEventListener("scroll", P);
822
+ return E.addEventListener("scroll", _), () => E.removeEventListener("scroll", _);
823
823
  }, []);
824
824
  const Ae = () => {
825
825
  const E = Me.current;
@@ -835,33 +835,33 @@ function Wa({
835
835
  return () => clearTimeout(E);
836
836
  }, []), mt(() => {
837
837
  L.menus.length > 0 && (nr > 0 ? Ae() : requestAnimationFrame(() => {
838
- var P;
839
- const E = (P = Me.current) == null ? void 0 : P.querySelector(
838
+ var _;
839
+ const E = (_ = Me.current) == null ? void 0 : _.querySelector(
840
840
  "[data-menu-active='true']"
841
841
  );
842
842
  E && E.scrollIntoView({ block: "center", behavior: "instant" });
843
843
  }));
844
- }, [L.menus]), Y(() => {
844
+ }, [L.menus]), Q(() => {
845
845
  Ht = !0, Ae();
846
- const E = setTimeout(Ae, 0), P = setTimeout(Ae, 50), Q = setTimeout(Ae, 100), ce = setTimeout(Ae, 200), ge = setTimeout(() => {
846
+ const E = setTimeout(Ae, 0), _ = setTimeout(Ae, 50), U = setTimeout(Ae, 100), ce = setTimeout(Ae, 200), ge = setTimeout(() => {
847
847
  Ht = !1;
848
848
  }, 300), ze = setTimeout(() => {
849
- const de = Me.current, tt = de == null ? void 0 : de.querySelector("[data-menu-active='true']");
850
- if (de && tt) {
851
- const Pe = de.getBoundingClientRect(), ot = tt.getBoundingClientRect();
852
- ot.top >= Pe.top && ot.bottom <= Pe.bottom || tt.scrollIntoView({ block: "center", behavior: "smooth" });
849
+ const ue = Me.current, tt = ue == null ? void 0 : ue.querySelector("[data-menu-active='true']");
850
+ if (ue && tt) {
851
+ const je = ue.getBoundingClientRect(), ot = tt.getBoundingClientRect();
852
+ ot.top >= je.top && ot.bottom <= je.bottom || tt.scrollIntoView({ block: "center", behavior: "smooth" });
853
853
  }
854
854
  }, 250);
855
855
  return () => {
856
- clearTimeout(E), clearTimeout(P), clearTimeout(Q), clearTimeout(ce), clearTimeout(ge), clearTimeout(ze);
856
+ clearTimeout(E), clearTimeout(_), clearTimeout(U), clearTimeout(ce), clearTimeout(ge), clearTimeout(ze);
857
857
  };
858
- }, [z.pathname]), Y(() => {
858
+ }, [M.pathname]), Q(() => {
859
859
  st.current && (st.current.scrollTop = 0);
860
- }, [z.pathname]), Y(() => {
861
- O && Re(!1);
862
- }, [z.pathname, O]), Y(() => {
863
- O && q(!0);
864
- }, [O]), Y(() => {
860
+ }, [M.pathname]), Q(() => {
861
+ O && ke(!1);
862
+ }, [M.pathname, O]), Q(() => {
863
+ O && Y(!0);
864
+ }, [O]), Q(() => {
865
865
  const E = document.documentElement;
866
866
  return E.style.setProperty("--app-header-height", $n), () => {
867
867
  E.style.removeProperty("--app-header-height");
@@ -871,78 +871,78 @@ function Wa({
871
871
  N(!0);
872
872
  }, xt = () => {
873
873
  N(!1);
874
- }, We = () => {
874
+ }, Re = () => {
875
875
  N(!1), i();
876
- }, He = (E) => {
877
- const P = E.slotKey ? [] : [E.to];
878
- return E.children && P.push(...E.children.map((Q) => Q.to)), P;
876
+ }, Te = (E) => {
877
+ const _ = E.slotKey ? [] : [E.to];
878
+ return E.children && _.push(...E.children.map((U) => U.to)), _;
879
879
  }, zt = [
880
- ...L.menus.flatMap((E) => E.items.flatMap(He)),
881
- ...((Jt = L.menuBottom) == null ? void 0 : Jt.flatMap(He)) ?? []
880
+ ...L.menus.flatMap((E) => E.items.flatMap(Te)),
881
+ ...((Jt = L.menuBottom) == null ? void 0 : Jt.flatMap(Te)) ?? []
882
882
  ], ut = (E) => {
883
- if (!z.pathname.startsWith(E)) return !1;
884
- const P = zt.filter((Q) => z.pathname.startsWith(Q)).sort((Q, ce) => ce.length - Q.length)[0];
885
- return E === P;
883
+ if (!M.pathname.startsWith(E)) return !1;
884
+ const _ = zt.filter((U) => M.pathname.startsWith(U)).sort((U, ce) => ce.length - U.length)[0];
885
+ return E === _;
886
886
  }, Et = le(D);
887
887
  Et.current = D;
888
888
  const Ft = (E) => {
889
- const P = Et.current;
890
- if (!P || P.items.length === 0) return null;
891
- const Q = P.defaultKey ?? P.items[0].key, ce = P.items.find((de) => de.key === E), ge = L.menus.find(
892
- (de) => de.items.some((tt) => He(tt).some(ut))
889
+ const _ = Et.current;
890
+ if (!_ || _.items.length === 0) return null;
891
+ const U = _.defaultKey ?? _.items[0].key, ce = _.items.find((ue) => ue.key === E), ge = L.menus.find(
892
+ (ue) => ue.items.some((tt) => Te(tt).some(ut))
893
893
  );
894
- if (!ge) return ce ? ce.key : Q;
894
+ if (!ge) return ce ? ce.key : U;
895
895
  if (ce && Br(ce, ge)) return ce.key;
896
- const ze = P.items.find((de) => de.groupIds && Br(de, ge)) ?? P.items.find((de) => !de.groupIds);
897
- return (ze == null ? void 0 : ze.key) ?? (ce == null ? void 0 : ce.key) ?? Q;
898
- }, [Lt, _e] = B(
896
+ const ze = _.items.find((ue) => ue.groupIds && Br(ue, ge)) ?? _.items.find((ue) => !ue.groupIds);
897
+ return (ze == null ? void 0 : ze.key) ?? (ce == null ? void 0 : ce.key) ?? U;
898
+ }, [Lt, Pe] = B(
899
899
  () => Ft(null)
900
900
  );
901
- Y(() => {
902
- _e((E) => Ft(E));
903
- }, [z.pathname, L.menus]);
904
- const Ye = ue ? D.items.find((E) => E.key === Lt) ?? D.items[0] : void 0, Yt = (E) => {
905
- _e(E), De && q(!1);
901
+ Q(() => {
902
+ Pe((E) => Ft(E));
903
+ }, [M.pathname, L.menus]);
904
+ const Ye = he ? D.items.find((E) => E.key === Lt) ?? D.items[0] : void 0, Yt = (E) => {
905
+ Pe(E), De && Y(!1);
906
906
  }, Xt = (E) => {
907
907
  E.onClick ? E.onClick() : E.to && k(E.to);
908
908
  };
909
- Y(() => {
910
- var P;
911
- const E = (Q) => {
909
+ Q(() => {
910
+ var _;
911
+ const E = (U) => {
912
912
  var ge;
913
- const ce = Q.defaultExpanded && !Vn.has(Q.id);
914
- ce && Vn.add(Q.id), (ce || (ge = Q.children) != null && ge.some((ze) => z.pathname.startsWith(ze.to))) && ve((ze) => {
915
- const de = new Set(ze);
916
- return de.add(Q.id), de;
913
+ const ce = U.defaultExpanded && !Vn.has(U.id);
914
+ ce && Vn.add(U.id), (ce || (ge = U.children) != null && ge.some((ze) => M.pathname.startsWith(ze.to))) && ve((ze) => {
915
+ const ue = new Set(ze);
916
+ return ue.add(U.id), ue;
917
917
  });
918
918
  };
919
- L.menus.forEach((Q) => {
920
- Q.items.forEach(E);
921
- }), (P = L.menuBottom) == null || P.forEach(E);
922
- }, [z.pathname, L.menus, L.menuBottom]);
919
+ L.menus.forEach((U) => {
920
+ U.items.forEach(E);
921
+ }), (_ = L.menuBottom) == null || _.forEach(E);
922
+ }, [M.pathname, L.menus, L.menuBottom]);
923
923
  const wr = (E) => {
924
- ve((P) => {
925
- const Q = new Set(P);
926
- return Q.has(E) ? Q.delete(E) : Q.add(E), Q;
924
+ ve((_) => {
925
+ const U = new Set(_);
926
+ return U.has(E) ? U.delete(E) : U.add(E), U;
927
927
  });
928
928
  };
929
- Y(() => {
930
- L.menus.length !== 0 && $e !== null && !L.menus.some((E) => E.id === $e) && ae(null);
931
- }, [L.menus, $e, ae]);
932
- const Dr = Ee(() => {
929
+ Q(() => {
930
+ L.menus.length !== 0 && _e !== null && !L.menus.some((E) => E.id === _e) && de(null);
931
+ }, [L.menus, _e, de]);
932
+ const Dr = Fe(() => {
933
933
  if (Ye != null && Ye.groupIds)
934
934
  return L.menus.filter((ge) => Br(Ye, ge));
935
- const E = L.menus, P = ue ? null : $e;
936
- if (P !== null)
935
+ const E = L.menus, _ = he ? null : _e;
936
+ if (_ !== null)
937
937
  return E.filter(
938
- (ge) => ge.id === P || ge.parentGroupId === P
938
+ (ge) => ge.id === _ || ge.parentGroupId === _
939
939
  );
940
- const Q = E.filter((ge) => ge.parentGroupId === void 0), ce = E.filter((ge) => ge.parentGroupId !== void 0).flatMap((ge) => ge.items);
941
- return ce.length === 0 ? Q : [
942
- ...Q,
940
+ const U = E.filter((ge) => ge.parentGroupId === void 0), ce = E.filter((ge) => ge.parentGroupId !== void 0).flatMap((ge) => ge.items);
941
+ return ce.length === 0 ? U : [
942
+ ...U,
943
943
  { id: 18, name: "Pengaturan", items: ce, parentGroupId: void 0 }
944
944
  ];
945
- }, [L.menus, $e, Ye, ue]);
945
+ }, [L.menus, _e, Ye, he]);
946
946
  if (S)
947
947
  return /* @__PURE__ */ e(
948
948
  h,
@@ -951,11 +951,11 @@ function Wa({
951
951
  overflow: "overflow-y-auto",
952
952
  bg: "surface-inverse",
953
953
  style: { height: "100vh" },
954
- children: t || /* @__PURE__ */ e(M, {})
954
+ children: t || /* @__PURE__ */ e(A, {})
955
955
  }
956
956
  );
957
957
  const It = (E) => {
958
- const P = E.children && E.children.length > 0, Q = !!E.slotKey, ce = P || Q, ge = xe.has(E.id), ze = P ? E.children.some((Pe) => ut(Pe.to)) : Q ? !1 : ut(E.to), de = Ir(E.badge, R[E.id]), tt = !!de && ye;
958
+ const _ = E.children && E.children.length > 0, U = !!E.slotKey, ce = _ || U, ge = xe.has(E.id), ze = _ ? E.children.some((je) => ut(je.to)) : U ? !1 : ut(E.to), ue = Ir(E.badge, R[E.id]), tt = !!ue && ye;
959
959
  return /* @__PURE__ */ u(
960
960
  h,
961
961
  {
@@ -966,12 +966,12 @@ function Wa({
966
966
  h,
967
967
  {
968
968
  as: "button",
969
- onClick: (Pe) => {
970
- if (Q && ye)
969
+ onClick: (je) => {
970
+ if (U && ye)
971
971
  k(E.to);
972
972
  else if (ce)
973
973
  if (ye) {
974
- const ot = Pe.currentTarget.getBoundingClientRect();
974
+ const ot = je.currentTarget.getBoundingClientRect();
975
975
  Ke({
976
976
  item: E,
977
977
  top: ot.top,
@@ -1051,11 +1051,11 @@ function Wa({
1051
1051
  textStyle: { transition: "opacity 0.3s" }
1052
1052
  }
1053
1053
  ),
1054
- de && /* @__PURE__ */ e(
1054
+ ue && /* @__PURE__ */ e(
1055
1055
  qt,
1056
1056
  {
1057
- text: String(de.value),
1058
- variant: de.variant ?? "info",
1057
+ text: String(ue.value),
1058
+ variant: ue.variant ?? "info",
1059
1059
  size: "xs",
1060
1060
  border: !0
1061
1061
  }
@@ -1077,7 +1077,7 @@ function Wa({
1077
1077
  }
1078
1078
  ),
1079
1079
  ce && !ye && (() => {
1080
- const Pe = E.children ?? [], ot = Q ? -1 : Pe.findIndex((ct) => ut(ct.to)), Xe = Pe.map((ct) => {
1080
+ const je = E.children ?? [], ot = U ? -1 : je.findIndex((ct) => ut(ct.to)), Xe = je.map((ct) => {
1081
1081
  const Bt = Ir(
1082
1082
  ct.badge,
1083
1083
  R[ct.id]
@@ -1148,7 +1148,7 @@ function Wa({
1148
1148
  paddingLeft: "0.75rem",
1149
1149
  transition: "all 0.3s ease-in-out",
1150
1150
  // Konten slot panjangnya dinamis → tanpa batas tinggi saat terbuka.
1151
- maxHeight: ge ? Q ? "none" : `${Pe.length * 36}px` : "0px",
1151
+ maxHeight: ge ? U ? "none" : `${je.length * 36}px` : "0px",
1152
1152
  opacity: ge ? 1 : 0,
1153
1153
  marginTop: ge ? "0.25rem" : "0px"
1154
1154
  },
@@ -1185,7 +1185,7 @@ function Wa({
1185
1185
  }
1186
1186
  }
1187
1187
  ),
1188
- Q ? /* @__PURE__ */ e(
1188
+ U ? /* @__PURE__ */ e(
1189
1189
  Bn,
1190
1190
  {
1191
1191
  slotKey: E.slotKey,
@@ -1212,8 +1212,8 @@ function Wa({
1212
1212
  "--app-header-height": $n,
1213
1213
  // Dibaca FloatingFooter & AsideBar untuk offset — di mode rail
1214
1214
  // harus mencakup kolom rail + panel.
1215
- "--app-sidebar-width": O ? "0px" : ue ? `calc(${Ai(D.showLabels ?? !0)} + ${De ? "0px" : `${Ve}px`})` : Z ? tn : `${Ve}px`,
1216
- "--app-footer-zindex": O && fe ? "40" : "998"
1215
+ "--app-sidebar-width": O ? "0px" : he ? `calc(${Ai(D.showLabels ?? !0)} + ${De ? "0px" : `${Ne}px`})` : Z ? tn : `${Ne}px`,
1216
+ "--app-footer-zindex": O && se ? "40" : "998"
1217
1217
  },
1218
1218
  children: [
1219
1219
  O && /* @__PURE__ */ e(
@@ -1224,14 +1224,14 @@ function Wa({
1224
1224
  bg: "black-alpha-a50",
1225
1225
  style: {
1226
1226
  inset: 0,
1227
- opacity: fe ? 0.5 : 0,
1228
- pointerEvents: fe ? "auto" : "none",
1227
+ opacity: se ? 0.5 : 0,
1228
+ pointerEvents: se ? "auto" : "none",
1229
1229
  transition: "opacity 0.3s"
1230
1230
  },
1231
- onClick: () => Re(!1)
1231
+ onClick: () => ke(!1)
1232
1232
  }
1233
1233
  ),
1234
- ue && !O && /* @__PURE__ */ e(
1234
+ he && !O && /* @__PURE__ */ e(
1235
1235
  qo,
1236
1236
  {
1237
1237
  items: D.items,
@@ -1241,7 +1241,7 @@ function Wa({
1241
1241
  onAction: Xt,
1242
1242
  logo: L.logo,
1243
1243
  panelCollapsed: De,
1244
- onExpandPanel: () => q(!1),
1244
+ onExpandPanel: () => Y(!1),
1245
1245
  showLabels: D.showLabels ?? !0
1246
1246
  }
1247
1247
  ),
@@ -1257,7 +1257,7 @@ function Wa({
1257
1257
  borderColor: "border-base",
1258
1258
  flexShrink: O ? void 0 : "0",
1259
1259
  style: {
1260
- width: O ? "16.375rem" : De ? "0px" : Z ? tn : `${Ve}px`,
1260
+ width: O ? "16.375rem" : De ? "0px" : Z ? tn : `${Ne}px`,
1261
1261
  // Panel tersembunyi: lebar 0 saja masih menyisakan border 1px dan
1262
1262
  // isi yang bisa di-tab. `visibility` ikut transisi → baru hilang
1263
1263
  // setelah animasi menyempit selesai.
@@ -1270,7 +1270,7 @@ function Wa({
1270
1270
  ...O && {
1271
1271
  inset: 0,
1272
1272
  zIndex: 50,
1273
- transform: fe ? "translateX(0)" : "translateX(-100%)"
1273
+ transform: se ? "translateX(0)" : "translateX(-100%)"
1274
1274
  },
1275
1275
  transition: T ? "none" : "all 0.3s ease-in-out",
1276
1276
  // Flex items default to `min-width: auto` (= content min-content),
@@ -1282,8 +1282,8 @@ function Wa({
1282
1282
  /* @__PURE__ */ e(
1283
1283
  h,
1284
1284
  {
1285
- onMouseEnter: () => Fe(!0),
1286
- onMouseLeave: () => Fe(!1),
1285
+ onMouseEnter: () => Le(!0),
1286
+ onMouseLeave: () => Le(!1),
1287
1287
  direction: "row",
1288
1288
  align: "center",
1289
1289
  justify: "space-between",
@@ -1299,7 +1299,7 @@ function Wa({
1299
1299
  ...ye ? { paddingInline: Hr } : null
1300
1300
  },
1301
1301
  children: (() => {
1302
- const E = ue && !O, P = Ye != null && Ye.groupIds ? Ye.tooltip ?? Ye.label : L.appName, Q = !O && Z && !fe && !ue, ce = Q && Qe;
1302
+ const E = he && !O, _ = Ye != null && Ye.groupIds ? Ye.tooltip ?? Ye.label : L.appName, U = !O && Z && !se && !he, ce = U && Be;
1303
1303
  return /* @__PURE__ */ u(ne, { children: [
1304
1304
  /* @__PURE__ */ u(
1305
1305
  h,
@@ -1307,8 +1307,8 @@ function Wa({
1307
1307
  direction: "row",
1308
1308
  align: "center",
1309
1309
  gap: "sm",
1310
- flex: Q ? "1" : void 0,
1311
- justify: Q ? "center" : void 0,
1310
+ flex: U ? "1" : void 0,
1311
+ justify: U ? "center" : void 0,
1312
1312
  style: {
1313
1313
  transition: "opacity 0.2s",
1314
1314
  opacity: ce ? 0 : 1,
@@ -1327,7 +1327,7 @@ function Wa({
1327
1327
  }
1328
1328
  }
1329
1329
  ),
1330
- (!Z || fe) && /* @__PURE__ */ e(
1330
+ (!Z || se) && /* @__PURE__ */ e(
1331
1331
  w,
1332
1332
  {
1333
1333
  as: "span",
@@ -1336,7 +1336,7 @@ function Wa({
1336
1336
  color: "primary",
1337
1337
  truncate: !0,
1338
1338
  style: { transition: "opacity 0.3s" },
1339
- children: E ? P : L.appName
1339
+ children: E ? _ : L.appName
1340
1340
  }
1341
1341
  )
1342
1342
  ]
@@ -1346,7 +1346,7 @@ function Wa({
1346
1346
  h,
1347
1347
  {
1348
1348
  as: "button",
1349
- onClick: () => q(!0),
1349
+ onClick: () => Y(!0),
1350
1350
  "aria-label": "Collapse sidebar",
1351
1351
  display: "inline-flex",
1352
1352
  align: "center",
@@ -1356,11 +1356,11 @@ function Wa({
1356
1356
  children: /* @__PURE__ */ e(F, { name: "LayoutLeft", size: "sm" })
1357
1357
  }
1358
1358
  ),
1359
- Q && /* @__PURE__ */ e(
1359
+ U && /* @__PURE__ */ e(
1360
1360
  h,
1361
1361
  {
1362
1362
  as: "button",
1363
- onClick: () => q(!1),
1363
+ onClick: () => Y(!1),
1364
1364
  "aria-label": "Expand sidebar",
1365
1365
  position: "absolute",
1366
1366
  display: "inline-flex",
@@ -1389,7 +1389,7 @@ function Wa({
1389
1389
  h,
1390
1390
  {
1391
1391
  as: "button",
1392
- onClick: () => Re(!1),
1392
+ onClick: () => ke(!1),
1393
1393
  "aria-label": "Close menu",
1394
1394
  align: "center",
1395
1395
  justify: "center",
@@ -1408,11 +1408,11 @@ function Wa({
1408
1408
  s && /* @__PURE__ */ e(
1409
1409
  $o,
1410
1410
  {
1411
- collapsed: O || ue ? !1 : Z,
1411
+ collapsed: O || he ? !1 : Z,
1412
1412
  children: s
1413
1413
  }
1414
1414
  ),
1415
- ue && O && /* @__PURE__ */ e(
1415
+ he && O && /* @__PURE__ */ e(
1416
1416
  Uo,
1417
1417
  {
1418
1418
  items: D.items,
@@ -1486,9 +1486,9 @@ function Wa({
1486
1486
  Bn,
1487
1487
  {
1488
1488
  slotKey: E.slotKey,
1489
- fallback: E.items.map((P) => It(P))
1489
+ fallback: E.items.map((_) => It(_))
1490
1490
  }
1491
- ) : E.items.map((P) => It(P))
1491
+ ) : E.items.map((_) => It(_))
1492
1492
  }
1493
1493
  )
1494
1494
  ] }, E.id))
@@ -1509,19 +1509,19 @@ function Wa({
1509
1509
  children: L.menuBottom.map((E) => It(E))
1510
1510
  }
1511
1511
  ),
1512
- Le && /* @__PURE__ */ e(
1512
+ We && /* @__PURE__ */ e(
1513
1513
  h,
1514
1514
  {
1515
1515
  role: "separator",
1516
1516
  "aria-orientation": "vertical",
1517
1517
  "aria-label": "Resize sidebar",
1518
1518
  "aria-valuenow": re,
1519
- "aria-valuemin": $,
1520
- "aria-valuemax": me,
1519
+ "aria-valuemin": j,
1520
+ "aria-valuemax": K,
1521
1521
  tabIndex: 0,
1522
1522
  onPointerDown: dt,
1523
1523
  onKeyDown: et,
1524
- onDoubleClick: K,
1524
+ onDoubleClick: me,
1525
1525
  title: "Drag to resize · double-click to reset",
1526
1526
  position: "absolute",
1527
1527
  top: "top-0",
@@ -1574,7 +1574,7 @@ function Wa({
1574
1574
  h,
1575
1575
  {
1576
1576
  as: "button",
1577
- onClick: () => Re(!0),
1577
+ onClick: () => ke(!0),
1578
1578
  align: "center",
1579
1579
  justify: "center",
1580
1580
  borderRadius: "rounded-md",
@@ -1591,8 +1591,8 @@ function Wa({
1591
1591
  ),
1592
1592
  /* @__PURE__ */ u(h, { direction: "row", align: "center", gap: "md", children: [
1593
1593
  a,
1594
- /* @__PURE__ */ u(Ze, { position: "bottom-right", children: [
1595
- /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ u(
1594
+ /* @__PURE__ */ u(Ge, { position: "bottom-right", children: [
1595
+ /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ u(
1596
1596
  h,
1597
1597
  {
1598
1598
  direction: "row",
@@ -1636,6 +1636,8 @@ function Wa({
1636
1636
  Mn,
1637
1637
  {
1638
1638
  size: "sm",
1639
+ src: (n == null ? void 0 : n.avatar) || void 0,
1640
+ name: n == null ? void 0 : n.name,
1639
1641
  initials: ((n == null ? void 0 : n.name) || "U")[0].toUpperCase(),
1640
1642
  bg: "var(--sa-background-brand, #04254f)",
1641
1643
  color: "var(--sa-background-primary, #ffffff)"
@@ -1653,7 +1655,7 @@ function Wa({
1653
1655
  }
1654
1656
  ) }),
1655
1657
  /* @__PURE__ */ u(
1656
- qe,
1658
+ Ue,
1657
1659
  {
1658
1660
  width: 280,
1659
1661
  style: {
@@ -1675,6 +1677,8 @@ function Wa({
1675
1677
  Mn,
1676
1678
  {
1677
1679
  customSize: 64,
1680
+ src: (n == null ? void 0 : n.avatar) || void 0,
1681
+ name: n == null ? void 0 : n.name,
1678
1682
  initials: ((n == null ? void 0 : n.name) || "U")[0].toUpperCase(),
1679
1683
  bg: "var(--sa-background-brand, #04254f)",
1680
1684
  color: "var(--sa-background-primary, #ffffff)",
@@ -1722,15 +1726,15 @@ function Wa({
1722
1726
  ]
1723
1727
  }
1724
1728
  ) }),
1725
- (f && f.length > 0 || p) && /* @__PURE__ */ u(Ue, { children: [
1726
- f == null ? void 0 : f.map((E, P) => /* @__PURE__ */ e(
1729
+ (f && f.length > 0 || p) && /* @__PURE__ */ u(Qe, { children: [
1730
+ f == null ? void 0 : f.map((E, _) => /* @__PURE__ */ e(
1727
1731
  Je,
1728
1732
  {
1729
1733
  onClick: E.onClick,
1730
1734
  startIcon: /* @__PURE__ */ e(F, { name: E.icon, size: "md" }),
1731
1735
  children: E.label
1732
1736
  },
1733
- `${E.label}-${P}`
1737
+ `${E.label}-${_}`
1734
1738
  )),
1735
1739
  p
1736
1740
  ] }),
@@ -1758,7 +1762,7 @@ function Wa({
1758
1762
  ref: st,
1759
1763
  flex: "1",
1760
1764
  overflow: "overflow-y-auto",
1761
- children: t || /* @__PURE__ */ e(M, {})
1765
+ children: t || /* @__PURE__ */ e(A, {})
1762
1766
  }
1763
1767
  )
1764
1768
  ] })
@@ -1781,10 +1785,10 @@ function Wa({
1781
1785
  /* @__PURE__ */ e(pr, { children: "Are you sure you want to end the session and exit the page?" }),
1782
1786
  /* @__PURE__ */ e(bi, { children: /* @__PURE__ */ e(h, { direction: "column", display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ u(pe, { direction: "row", gap: "sm", align: "center", children: [
1783
1787
  /* @__PURE__ */ e(h, { direction: "column", children: /* @__PURE__ */ e(V, { secondary: !0, onClick: xt, children: "Cancel" }) }),
1784
- /* @__PURE__ */ e(h, { direction: "column", children: /* @__PURE__ */ e(V, { primary: !0, onClick: We, children: "Yes, Sure" }) })
1788
+ /* @__PURE__ */ e(h, { direction: "column", children: /* @__PURE__ */ e(V, { primary: !0, onClick: Re, children: "Yes, Sure" }) })
1785
1789
  ] }) }) })
1786
1790
  ] }),
1787
- Be && /* @__PURE__ */ u(ne, { children: [
1791
+ He && /* @__PURE__ */ u(ne, { children: [
1788
1792
  /* @__PURE__ */ e(
1789
1793
  h,
1790
1794
  {
@@ -1797,7 +1801,7 @@ function Wa({
1797
1801
  h,
1798
1802
  {
1799
1803
  role: "dialog",
1800
- "aria-label": Be.item.title,
1804
+ "aria-label": He.item.title,
1801
1805
  position: "fixed",
1802
1806
  bg: "white",
1803
1807
  borderWidth: "border",
@@ -1808,8 +1812,8 @@ function Wa({
1808
1812
  padding: "sm",
1809
1813
  gap: "spacing-2",
1810
1814
  style: {
1811
- top: Be.top,
1812
- left: Be.left,
1815
+ top: He.top,
1816
+ left: He.left,
1813
1817
  zIndex: 61,
1814
1818
  minWidth: "13rem",
1815
1819
  maxWidth: "16rem"
@@ -1826,11 +1830,11 @@ function Wa({
1826
1830
  padding: "0.25rem 0.5rem 0.5rem",
1827
1831
  letterSpacing: "0.05em"
1828
1832
  },
1829
- children: Be.item.title
1833
+ children: He.item.title
1830
1834
  }
1831
1835
  ),
1832
- (Wt = Be.item.children) == null ? void 0 : Wt.map((E) => {
1833
- const P = ut(E.to), Q = Ir(
1836
+ (Wt = He.item.children) == null ? void 0 : Wt.map((E) => {
1837
+ const _ = ut(E.to), U = Ir(
1834
1838
  E.badge,
1835
1839
  R[E.id]
1836
1840
  );
@@ -1850,12 +1854,12 @@ function Wa({
1850
1854
  borderRadius: "rounded-md",
1851
1855
  borderWidth: "border",
1852
1856
  borderStyle: "border-solid",
1853
- bg: P ? "primary-inverse" : void 0,
1854
- hover: P ? void 0 : { bg: "primary-inverse" },
1857
+ bg: _ ? "primary-inverse" : void 0,
1858
+ hover: _ ? void 0 : { bg: "primary-inverse" },
1855
1859
  style: {
1856
1860
  textAlign: "left",
1857
1861
  borderColor: "transparent",
1858
- color: P ? "var(--sa-text-primary, #292a2e)" : "var(--sa-text-subtle, #505258)"
1862
+ color: _ ? "var(--sa-text-primary, #292a2e)" : "var(--sa-text-subtle, #505258)"
1859
1863
  },
1860
1864
  children: [
1861
1865
  E.icon && /* @__PURE__ */ e(
@@ -1871,17 +1875,17 @@ function Wa({
1871
1875
  {
1872
1876
  as: "span",
1873
1877
  fontSize: "md",
1874
- fontWeight: P ? "medium" : "normal",
1878
+ fontWeight: _ ? "medium" : "normal",
1875
1879
  whiteSpace: "nowrap",
1876
1880
  style: { flex: 1 },
1877
1881
  children: E.title
1878
1882
  }
1879
1883
  ),
1880
- Q && /* @__PURE__ */ e(
1884
+ U && /* @__PURE__ */ e(
1881
1885
  qt,
1882
1886
  {
1883
- text: String(Q.value),
1884
- variant: Q.variant ?? "info",
1887
+ text: String(U.value),
1888
+ variant: U.variant ?? "info",
1885
1889
  size: "xs",
1886
1890
  border: !0
1887
1891
  }
@@ -2227,14 +2231,14 @@ const Ko = (t, r) => {
2227
2231
  lastIndex: i,
2228
2232
  labelAlign: l = "top"
2229
2233
  }) => {
2230
- const c = Ee(
2234
+ const c = Fe(
2231
2235
  () => ({
2232
2236
  padding: 0,
2233
2237
  paddingBottom: i ? 0 : 12,
2234
2238
  verticalAlign: l
2235
2239
  }),
2236
2240
  [i, l]
2237
- ), s = Ee(
2241
+ ), s = Fe(
2238
2242
  () => ({
2239
2243
  padding: 0,
2240
2244
  paddingRight: 12,
@@ -2245,9 +2249,9 @@ const Ko = (t, r) => {
2245
2249
  [i, l]
2246
2250
  ), a = () => typeof r == "string" ? /* @__PURE__ */ e(w, { fontWeight: "medium", color: "subtlest", children: r }) : r, d = () => typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ e(w, { color: "primary", fontWeight: "medium", children: t }) : t, f = () => typeof n == "string" || typeof n == "number" ? /* @__PURE__ */ e(w, { fontWeight: "medium", color: "subtlest", children: n }) : n;
2247
2251
  return /* @__PURE__ */ u(nt, { children: [
2248
- /* @__PURE__ */ e(Ne, { style: c, width: o, children: a() }),
2249
- n ? /* @__PURE__ */ e(Ne, { style: s, width: 24, children: f() }) : null,
2250
- /* @__PURE__ */ e(Ne, { style: c, children: d() })
2252
+ /* @__PURE__ */ e($e, { style: c, width: o, children: a() }),
2253
+ n ? /* @__PURE__ */ e($e, { style: s, width: 24, children: f() }) : null,
2254
+ /* @__PURE__ */ e($e, { style: c, children: d() })
2251
2255
  ] });
2252
2256
  }
2253
2257
  ), tl = bt(({ fields: t, separator: r, labelWidth: n }) => /* @__PURE__ */ e(ur, { withColumnBorder: !1, withRowBorder: !1, children: t.map((o, i) => /* @__PURE__ */ e(
@@ -2268,7 +2272,7 @@ const Ko = (t, r) => {
2268
2272
  labelWidth: i = 150,
2269
2273
  bordered: l = !1
2270
2274
  }) => {
2271
- const c = Ee(
2275
+ const c = Fe(
2272
2276
  () => Ko(o, t),
2273
2277
  [o, t]
2274
2278
  ), s = c.length > 2, a = () => {
@@ -2374,29 +2378,29 @@ const Ko = (t, r) => {
2374
2378
  containerProps: b,
2375
2379
  headerProps: D
2376
2380
  }) => {
2377
- const C = Ie("md"), { Link: I, useNavigate: A } = wt(), M = A(), x = t == null ? void 0 : t.show, S = () => {
2381
+ const C = Ie("md"), { Link: I, useNavigate: z } = wt(), A = z(), x = t == null ? void 0 : t.show, S = () => {
2378
2382
  if (typeof (t == null ? void 0 : t.onClick) == "function") {
2379
2383
  t.onClick();
2380
2384
  return;
2381
2385
  }
2382
- M(-1, { replace: !0 });
2386
+ A(-1, { replace: !0 });
2383
2387
  }, L = () => {
2384
2388
  if (!p) return null;
2385
2389
  if (Jr(p)) return p;
2386
2390
  const H = p.filter(
2387
2391
  (N) => N && (N.title || N.icon)
2388
2392
  );
2389
- return H.length === 0 ? null : C ? /* @__PURE__ */ e(h, { direction: "row", gap: "md", children: H.map(({ title: N, icon: Z, buttonProps: q, onClick: re }, J) => /* @__PURE__ */ e(
2393
+ return H.length === 0 ? null : C ? /* @__PURE__ */ e(h, { direction: "row", gap: "md", children: H.map(({ title: N, icon: Z, buttonProps: Y, onClick: re }, J) => /* @__PURE__ */ e(
2390
2394
  V,
2391
2395
  {
2392
2396
  iconLeft: Z ? /* @__PURE__ */ e(F, { name: Z, size: "md" }) : void 0,
2393
2397
  onClick: re,
2394
- ...q,
2398
+ ...Y,
2395
2399
  children: N
2396
2400
  },
2397
2401
  `action-${J}`
2398
- )) }) : /* @__PURE__ */ u(Ze, { position: "bottom-right", children: [
2399
- /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(
2402
+ )) }) : /* @__PURE__ */ u(Ge, { position: "bottom-right", children: [
2403
+ /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
2400
2404
  V,
2401
2405
  {
2402
2406
  variant: "tertiary",
@@ -2410,13 +2414,13 @@ const Ko = (t, r) => {
2410
2414
  "aria-label": "Actions"
2411
2415
  }
2412
2416
  ) }),
2413
- /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(Ue, { style: { minWidth: 200 }, children: H.map(({ title: N, icon: Z, buttonProps: q, onClick: re }, J) => {
2414
- const K = (q == null ? void 0 : q.tone) === "error" || (q == null ? void 0 : q.danger) === !0;
2417
+ /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(Qe, { style: { minWidth: 200 }, children: H.map(({ title: N, icon: Z, buttonProps: Y, onClick: re }, J) => {
2418
+ const me = (Y == null ? void 0 : Y.tone) === "error" || (Y == null ? void 0 : Y.danger) === !0;
2415
2419
  return /* @__PURE__ */ e(
2416
2420
  Je,
2417
2421
  {
2418
- intent: K ? "danger" : void 0,
2419
- disabled: q == null ? void 0 : q.disabled,
2422
+ intent: me ? "danger" : void 0,
2423
+ disabled: Y == null ? void 0 : Y.disabled,
2420
2424
  startIcon: Z ? /* @__PURE__ */ e(F, { name: Z }) : void 0,
2421
2425
  onClick: re,
2422
2426
  children: N
@@ -2490,21 +2494,21 @@ const Ko = (t, r) => {
2490
2494
  ]
2491
2495
  }
2492
2496
  );
2493
- }, z = () => {
2497
+ }, M = () => {
2494
2498
  if (!f || f.length === 0) return null;
2495
- const H = f.filter((q) => q.show !== !1);
2499
+ const H = f.filter((Y) => Y.show !== !1);
2496
2500
  if (H.length === 0) return null;
2497
2501
  let N = 0, Z = -1 / 0;
2498
- return H.forEach((q, re) => {
2499
- const J = q.order ?? 0;
2502
+ return H.forEach((Y, re) => {
2503
+ const J = Y.order ?? 0;
2500
2504
  J >= Z && (Z = J, N = re);
2501
- }), H.map(({ content: q, order: re, borderBottom: J = !0, keepBottomPadding: K = !1, paddingInline: $ = !0, paddingBlock: me = !0 }, fe) => /* @__PURE__ */ e(
2505
+ }), H.map(({ content: Y, order: re, borderBottom: J = !0, keepBottomPadding: me = !1, paddingInline: j = !0, paddingBlock: K = !0 }, se) => /* @__PURE__ */ e(
2502
2506
  h,
2503
2507
  {
2504
2508
  direction: "column",
2505
- paddingTop: me ? "sm" : "spacing-0",
2506
- paddingBottom: me && (J || K || fe === N) ? "sm" : "spacing-0",
2507
- paddingInline: $ ? "md" : "spacing-0",
2509
+ paddingTop: K ? "sm" : "spacing-0",
2510
+ paddingBottom: K && (J || me || se === N) ? "sm" : "spacing-0",
2511
+ paddingInline: j ? "md" : "spacing-0",
2508
2512
  style: {
2509
2513
  // Inset box-shadow (not a real border) so the divider line doesn't
2510
2514
  // add 1px to the row height — keeps the sub-header stack from shifting
@@ -2514,12 +2518,12 @@ const Ko = (t, r) => {
2514
2518
  } : {},
2515
2519
  ...re !== void 0 ? { order: re } : {}
2516
2520
  },
2517
- children: q
2521
+ children: Y
2518
2522
  },
2519
- `sub-header-${fe}`
2523
+ `sub-header-${se}`
2520
2524
  ));
2521
2525
  }, G = () => {
2522
- const H = l ? k() : null, N = z();
2526
+ const H = l ? k() : null, N = M();
2523
2527
  return !H && !N ? null : /* @__PURE__ */ u(
2524
2528
  h,
2525
2529
  {
@@ -2596,23 +2600,23 @@ const Ko = (t, r) => {
2596
2600
  widthPresets: D,
2597
2601
  resizable: C = !0,
2598
2602
  resizeMin: I = ll,
2599
- resizeMax: A,
2600
- onWidthChange: M
2603
+ resizeMax: z,
2604
+ onWidthChange: A
2601
2605
  }, x) => {
2602
- const L = !Ie("md"), R = s ?? d ?? a ?? "357px", k = D ?? [], z = k.length > 1, [G, O] = B(() => {
2603
- const ae = k.indexOf(R);
2604
- return ae >= 0 ? ae : 0;
2605
- }), [H, N] = B(null), [Z, q] = B(!1), [re, J] = B(!1), K = le(null), $ = (ae) => {
2606
- K.current = ae, typeof x == "function" ? x(ae) : x && (x.current = ae);
2607
- }, me = z ? k[G] : R, fe = H != null ? `${H}px` : me, Re = C && !L, Qe = G === k.length - 1, Fe = () => {
2608
- const ae = (G + 1) % k.length;
2609
- N(null), O(ae), M == null || M(k[ae]);
2610
- }, xe = j(
2611
- (ae) => {
2612
- const ue = A ?? window.innerWidth;
2613
- return Math.min(Math.max(ae, I), ue);
2606
+ const L = !Ie("md"), R = s ?? d ?? a ?? "357px", k = D ?? [], M = k.length > 1, [G, O] = B(() => {
2607
+ const de = k.indexOf(R);
2608
+ return de >= 0 ? de : 0;
2609
+ }), [H, N] = B(null), [Z, Y] = B(!1), [re, J] = B(!1), me = le(null), j = (de) => {
2610
+ me.current = de, typeof x == "function" ? x(de) : x && (x.current = de);
2611
+ }, K = M ? k[G] : R, se = H != null ? `${H}px` : K, ke = C && !L, Be = G === k.length - 1, Le = () => {
2612
+ const de = (G + 1) % k.length;
2613
+ N(null), O(de), A == null || A(k[de]);
2614
+ }, xe = P(
2615
+ (de) => {
2616
+ const he = z ?? window.innerWidth;
2617
+ return Math.min(Math.max(de, I), he);
2614
2618
  },
2615
- [I, A]
2619
+ [I, z]
2616
2620
  ), ve = le(null);
2617
2621
  return /* @__PURE__ */ e(
2618
2622
  vi,
@@ -2621,25 +2625,25 @@ const Ko = (t, r) => {
2621
2625
  isShow: r,
2622
2626
  position: "right",
2623
2627
  onHide: t,
2624
- ref: $,
2625
- size: fe,
2628
+ ref: j,
2629
+ size: se,
2626
2630
  style: o,
2627
2631
  flush: !0,
2628
2632
  radius: "none",
2629
2633
  hideBackdrop: f,
2630
2634
  children: /* @__PURE__ */ u(h, { direction: "column", height: "height-full", children: [
2631
- Re ? /* @__PURE__ */ e(
2635
+ ke ? /* @__PURE__ */ e(
2632
2636
  "div",
2633
2637
  {
2634
2638
  role: "separator",
2635
2639
  "aria-orientation": "vertical",
2636
2640
  "aria-label": "Ubah lebar panel",
2637
2641
  tabIndex: 0,
2638
- onPointerDown: (ae) => {
2639
- if (!Re) return;
2640
- ae.preventDefault();
2641
- const ue = ae.currentTarget;
2642
- ue.setPointerCapture(ae.pointerId), q(!0);
2642
+ onPointerDown: (de) => {
2643
+ if (!ke) return;
2644
+ de.preventDefault();
2645
+ const he = de.currentTarget;
2646
+ he.setPointerCapture(de.pointerId), Y(!0);
2643
2647
  const ye = document.body.style.cursor, De = document.body.style.userSelect;
2644
2648
  document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
2645
2649
  let Me = null;
@@ -2649,19 +2653,19 @@ const Ko = (t, r) => {
2649
2653
  Me = null, ve.current != null && N(ve.current);
2650
2654
  }));
2651
2655
  }, at = (T) => {
2652
- Me != null && window.cancelAnimationFrame(Me), ve.current != null && N(ve.current), ue.releasePointerCapture(T.pointerId), ue.removeEventListener("pointermove", st), ue.removeEventListener("pointerup", at), ue.removeEventListener("pointercancel", at), document.body.style.cursor = ye, document.body.style.userSelect = De, q(!1), ve.current != null && (M == null || M(`${ve.current}px`));
2656
+ Me != null && window.cancelAnimationFrame(Me), ve.current != null && N(ve.current), he.releasePointerCapture(T.pointerId), he.removeEventListener("pointermove", st), he.removeEventListener("pointerup", at), he.removeEventListener("pointercancel", at), document.body.style.cursor = ye, document.body.style.userSelect = De, Y(!1), ve.current != null && (A == null || A(`${ve.current}px`));
2653
2657
  };
2654
- ue.addEventListener("pointermove", st), ue.addEventListener("pointerup", at), ue.addEventListener("pointercancel", at);
2658
+ he.addEventListener("pointermove", st), he.addEventListener("pointerup", at), he.addEventListener("pointercancel", at);
2655
2659
  },
2656
- onKeyDown: (ae) => {
2660
+ onKeyDown: (de) => {
2657
2661
  var Me;
2658
- if (!Re || ae.key !== "ArrowLeft" && ae.key !== "ArrowRight") return;
2659
- ae.preventDefault();
2660
- const ue = ae.key === "ArrowLeft" ? qn : -qn, ye = H ?? ((Me = K.current) == null ? void 0 : Me.offsetWidth) ?? I, De = xe(ye + ue);
2661
- N(De), M == null || M(`${De}px`);
2662
+ if (!ke || de.key !== "ArrowLeft" && de.key !== "ArrowRight") return;
2663
+ de.preventDefault();
2664
+ const he = de.key === "ArrowLeft" ? qn : -qn, ye = H ?? ((Me = me.current) == null ? void 0 : Me.offsetWidth) ?? I, De = xe(ye + he);
2665
+ N(De), A == null || A(`${De}px`);
2662
2666
  },
2663
2667
  onDoubleClick: () => {
2664
- Re && (N(null), M == null || M(me));
2668
+ ke && (N(null), A == null || A(K));
2665
2669
  },
2666
2670
  title: "Tarik untuk mengubah lebar — klik dua kali untuk reset",
2667
2671
  onPointerEnter: () => J(!0),
@@ -2710,18 +2714,18 @@ const Ko = (t, r) => {
2710
2714
  ),
2711
2715
  /* @__PURE__ */ u(h, { direction: "row", align: "center", gap: "sm", flexShrink: "0", children: [
2712
2716
  g,
2713
- z ? /* @__PURE__ */ e(
2717
+ M ? /* @__PURE__ */ e(
2714
2718
  V,
2715
2719
  {
2716
2720
  variant: "tertiary",
2717
2721
  tone: "neutral",
2718
2722
  size: "xs",
2719
- onClick: Fe,
2720
- "aria-label": Qe ? "Kecilkan panel" : "Lebarkan panel",
2723
+ onClick: Le,
2724
+ "aria-label": Be ? "Kecilkan panel" : "Lebarkan panel",
2721
2725
  iconRight: /* @__PURE__ */ e(
2722
2726
  F,
2723
2727
  {
2724
- name: Qe ? "ChevronRight" : "ChevronLeft"
2728
+ name: Be ? "ChevronRight" : "ChevronLeft"
2725
2729
  }
2726
2730
  )
2727
2731
  }
@@ -3085,43 +3089,43 @@ const Ko = (t, r) => {
3085
3089
  titleSearchLabel: D = "Work Order",
3086
3090
  withTitleLabels: C = !1
3087
3091
  }) => {
3088
- const A = (g == null ? void 0 : g.isShowLabel) ?? !0, [M, x] = B(!1), [S, L] = B(0), R = () => {
3089
- L(($) => $ + 1);
3090
- }, { searchParams: k, setSearchParams: z, getQueryParam: G } = it(), O = br(k.toString()), H = fn(t, k, s) || "", [N, Z] = B(H), q = G(s), J = !!(q && !(() => {
3091
- if (q)
3092
+ const z = (g == null ? void 0 : g.isShowLabel) ?? !0, [A, x] = B(!1), [S, L] = B(0), R = () => {
3093
+ L((j) => j + 1);
3094
+ }, { searchParams: k, setSearchParams: M, getQueryParam: G } = it(), O = br(k.toString()), H = fn(t, k, s) || "", [N, Z] = B(H), Y = G(s), J = !!(Y && !(() => {
3095
+ if (Y)
3092
3096
  try {
3093
- const $ = JSON.parse(q);
3094
- return Object.keys($).length === 1 && $[t] === "";
3095
- } catch ($) {
3096
- console.error("Filter parameter is not a valid JSON:", $);
3097
+ const j = JSON.parse(Y);
3098
+ return Object.keys(j).length === 1 && j[t] === "";
3099
+ } catch (j) {
3100
+ console.error("Filter parameter is not a valid JSON:", j);
3097
3101
  }
3098
3102
  return !1;
3099
- })()), K = Ie("md");
3100
- return Y(() => {
3103
+ })()), me = Ie("md");
3104
+ return Q(() => {
3101
3105
  Z(H);
3102
- }, [H]), Y(() => {
3106
+ }, [H]), Q(() => {
3103
3107
  if (N === H)
3104
3108
  return;
3105
- const $ = window.setTimeout(() => {
3109
+ const j = window.setTimeout(() => {
3106
3110
  fr({
3107
3111
  value: N,
3108
3112
  name: t,
3109
3113
  type: "search",
3110
3114
  searchQueries: O,
3111
- setSearchParams: z,
3115
+ setSearchParams: M,
3112
3116
  filterKey: s,
3113
3117
  pageKey: a
3114
3118
  });
3115
3119
  }, 350);
3116
3120
  return () => {
3117
- window.clearTimeout($);
3121
+ window.clearTimeout(j);
3118
3122
  };
3119
3123
  }, [
3120
3124
  N,
3121
3125
  H,
3122
3126
  t,
3123
3127
  O,
3124
- z,
3128
+ M,
3125
3129
  s,
3126
3130
  a
3127
3131
  ]), /* @__PURE__ */ u(
@@ -3129,7 +3133,7 @@ const Ko = (t, r) => {
3129
3133
  {
3130
3134
  gap: "md",
3131
3135
  style: {
3132
- flexDirection: K && b === "left" ? "row" : K && b === "right" ? "row-reverse" : "column"
3136
+ flexDirection: me && b === "left" ? "row" : me && b === "right" ? "row-reverse" : "column"
3133
3137
  },
3134
3138
  align: "flex-end",
3135
3139
  children: [
@@ -3137,29 +3141,29 @@ const Ko = (t, r) => {
3137
3141
  V,
3138
3142
  {
3139
3143
  onClick: () => {
3140
- const $ = new URLSearchParams(k);
3141
- $.delete(s), z($), Z(""), R(), f && f();
3144
+ const j = new URLSearchParams(k);
3145
+ j.delete(s), M(j), Z(""), R(), f && f();
3142
3146
  },
3143
3147
  variant: "outline",
3144
3148
  tone: "neutral",
3145
3149
  children: /* @__PURE__ */ e(w, { color: "error", fontWeight: "semibold", children: "Reset" })
3146
3150
  }
3147
3151
  ) }),
3148
- i == null ? void 0 : i.map(({ minWidth: $, content: me, title: fe, onClickContainer: Re }, Qe) => /* @__PURE__ */ u(
3152
+ i == null ? void 0 : i.map(({ minWidth: j, content: K, title: se, onClickContainer: ke }, Be) => /* @__PURE__ */ u(
3149
3153
  h,
3150
3154
  {
3151
3155
  direction: "column",
3152
3156
  gap: "sm",
3153
- onClick: Re,
3157
+ onClick: ke,
3154
3158
  style: {
3155
- minWidth: $
3159
+ minWidth: j
3156
3160
  },
3157
3161
  children: [
3158
- fe && /* @__PURE__ */ e(gt.SubH3, { children: fe }),
3159
- me
3162
+ se && /* @__PURE__ */ e(gt.SubH3, { children: se }),
3163
+ K
3160
3164
  ]
3161
3165
  },
3162
- `extended-filter-${Qe}-${S}`
3166
+ `extended-filter-${Be}-${S}`
3163
3167
  )),
3164
3168
  !!(p != null && p.length) && /* @__PURE__ */ e(
3165
3169
  V,
@@ -3172,13 +3176,13 @@ const Ko = (t, r) => {
3172
3176
  size: "sm",
3173
3177
  name: (g == null ? void 0 : g.icon) || "FilterHorizontal",
3174
3178
  style: {
3175
- color: q ? "var(--sa-background-brand, #04254f)" : "var(--sa-text-primary, #292a2e)"
3179
+ color: Y ? "var(--sa-background-brand, #04254f)" : "var(--sa-text-primary, #292a2e)"
3176
3180
  }
3177
3181
  }
3178
3182
  ),
3179
- fullWidth: !K,
3183
+ fullWidth: !me,
3180
3184
  onClick: () => x(!0),
3181
- children: A ? "Filter" : void 0
3185
+ children: z ? "Filter" : void 0
3182
3186
  }
3183
3187
  ),
3184
3188
  c && /* @__PURE__ */ u(
@@ -3225,12 +3229,12 @@ const Ko = (t, r) => {
3225
3229
  })
3226
3230
  }
3227
3231
  ] : [],
3228
- onChange: ($) => fr({
3229
- value: $,
3232
+ onChange: (j) => fr({
3233
+ value: j,
3230
3234
  name: r,
3231
3235
  type: "dropdown",
3232
3236
  searchQueries: O,
3233
- setSearchParams: z,
3237
+ setSearchParams: M,
3234
3238
  filterKey: s
3235
3239
  }),
3236
3240
  placeholder: C ? "All" : "All Status"
@@ -3246,7 +3250,7 @@ const Ko = (t, r) => {
3246
3250
  direction: "column",
3247
3251
  gap: "sm",
3248
3252
  style: {
3249
- width: d && K ? d : K ? "310px" : ""
3253
+ width: d && me ? d : me ? "310px" : ""
3250
3254
  },
3251
3255
  children: [
3252
3256
  C && /* @__PURE__ */ u(gt.SubH3, { children: [
@@ -3258,7 +3262,7 @@ const Ko = (t, r) => {
3258
3262
  {
3259
3263
  placeholder: n,
3260
3264
  leftIcon: /* @__PURE__ */ e(F, { name: "Search", width: 20, height: 20 }),
3261
- onChange: ($) => Z($.target.value),
3265
+ onChange: (j) => Z(j.target.value),
3262
3266
  value: N,
3263
3267
  fullWidth: !0
3264
3268
  },
@@ -3270,7 +3274,7 @@ const Ko = (t, r) => {
3270
3274
  /* @__PURE__ */ e(
3271
3275
  Rl,
3272
3276
  {
3273
- isOpen: M,
3277
+ isOpen: A,
3274
3278
  onClose: () => x(!1),
3275
3279
  filterKey: s,
3276
3280
  filters: p,
@@ -3288,10 +3292,10 @@ function mn({
3288
3292
  pageKey: o = "page",
3289
3293
  searchKey: i = "q"
3290
3294
  }) {
3291
- const { searchParams: l, setSearchParams: c, searchQueries: s } = it(), a = Ee(
3295
+ const { searchParams: l, setSearchParams: c, searchQueries: s } = it(), a = Fe(
3292
3296
  () => Object.fromEntries(t.map((S) => [S.key, S])),
3293
3297
  [t]
3294
- ), d = Ee(() => {
3298
+ ), d = Fe(() => {
3295
3299
  const S = (l.get(n) || "").split(",").map((R) => R.trim()).filter(Boolean), L = Object.keys(
3296
3300
  yt(l.get(r))
3297
3301
  ).filter((R) => R !== i);
@@ -3299,24 +3303,24 @@ function mn({
3299
3303
  const k = a[R];
3300
3304
  return (k == null ? void 0 : k.locked) || S.includes(R) || L.includes(R);
3301
3305
  });
3302
- }, [l, n, r, i, t, a]), f = j(
3306
+ }, [l, n, r, i, t, a]), f = P(
3303
3307
  (S) => yt(S[r]),
3304
3308
  [r]
3305
- ), p = j(
3309
+ ), p = P(
3306
3310
  (S) => {
3307
3311
  const L = { ...s };
3308
3312
  S.length ? L[n] = S.join(",") : delete L[n], c(L);
3309
3313
  },
3310
3314
  [s, n, c]
3311
- ), g = j(
3315
+ ), g = P(
3312
3316
  (S) => {
3313
3317
  d.includes(S) || p([...d, S]);
3314
3318
  },
3315
3319
  [d, p]
3316
- ), b = j(
3320
+ ), b = P(
3317
3321
  (S) => {
3318
- var z;
3319
- if ((z = a[S]) != null && z.locked) return;
3322
+ var M;
3323
+ if ((M = a[S]) != null && M.locked) return;
3320
3324
  const L = { ...s }, R = d.filter((G) => G !== S);
3321
3325
  R.length ? L[n] = R.join(",") : delete L[n];
3322
3326
  const k = f(L);
@@ -3332,10 +3336,10 @@ function mn({
3332
3336
  c,
3333
3337
  a
3334
3338
  ]
3335
- ), D = j(
3339
+ ), D = P(
3336
3340
  (S) => d.includes(S) ? b(S) : g(S),
3337
3341
  [d, g, b]
3338
- ), C = j(
3342
+ ), C = P(
3339
3343
  (S) => {
3340
3344
  switch (S.type) {
3341
3345
  case "dropdown":
@@ -3369,7 +3373,7 @@ function mn({
3369
3373
  }
3370
3374
  },
3371
3375
  [l, r, f]
3372
- ), I = j(
3376
+ ), I = P(
3373
3377
  (S, L) => {
3374
3378
  if (S.type === "date-compact" || S.type === "text") {
3375
3379
  const R = { ...s }, k = f(R);
@@ -3387,13 +3391,13 @@ function mn({
3387
3391
  });
3388
3392
  },
3389
3393
  [s, c, r, o, f]
3390
- ), A = j(
3394
+ ), z = P(
3391
3395
  (S) => {
3392
3396
  const L = { ...s }, R = f(L);
3393
3397
  S in R && (delete R[S], Object.keys(R).length ? L[r] = JSON.stringify(R) : delete L[r]), delete L[o], c(L);
3394
3398
  },
3395
3399
  [s, r, o, f, c]
3396
- ), M = j(() => {
3400
+ ), A = P(() => {
3397
3401
  const S = { ...s };
3398
3402
  delete S[r], delete S[n], delete S[o], c(S);
3399
3403
  }, [s, r, n, o, c]), x = d.length > 0;
@@ -3406,8 +3410,8 @@ function mn({
3406
3410
  toggleFilter: D,
3407
3411
  getValue: C,
3408
3412
  setValue: I,
3409
- clearValue: A,
3410
- clearAll: M
3413
+ clearValue: z,
3414
+ clearAll: A
3411
3415
  };
3412
3416
  }
3413
3417
  const Hi = {
@@ -3439,10 +3443,10 @@ function zl({
3439
3443
  onColumnsChange: o,
3440
3444
  value: i
3441
3445
  }) {
3442
- const l = Ee(
3446
+ const l = Fe(
3443
3447
  () => ({ order: t.map((k) => k.key), hidden: [] }),
3444
3448
  [t]
3445
- ), c = r ? Ut.columns(r) : void 0, s = (k, z) => ir({ order: k.order ?? z, hidden: k.hidden ?? [] }, t), [a, d] = B(() => {
3449
+ ), c = r ? Ut.columns(r) : void 0, s = (k, M) => ir({ order: k.order ?? M, hidden: k.hidden ?? [] }, t), [a, d] = B(() => {
3446
3450
  if (i && (i.order || i.hidden))
3447
3451
  return s(i, t.map((k) => k.key));
3448
3452
  if (c) {
@@ -3451,50 +3455,50 @@ function zl({
3451
3455
  }
3452
3456
  return l;
3453
3457
  }), f = t.map((k) => k.key).join("|");
3454
- Y(() => d((k) => ir(k, t)), [f]);
3458
+ Q(() => d((k) => ir(k, t)), [f]);
3455
3459
  const p = le(a);
3456
3460
  p.current = a;
3457
3461
  const g = i ? `${(i.order ?? []).join("|")}~${(i.hidden ?? []).join("|")}` : null, b = le(g);
3458
- Y(() => {
3462
+ Q(() => {
3459
3463
  if (g == null || b.current === g) return;
3460
3464
  b.current = g;
3461
- const k = p.current, z = s(i, k.order);
3462
- z.order.join("|") === k.order.join("|") && z.hidden.join("|") === k.hidden.join("|") || (d(z), c && n.set(c, z));
3465
+ const k = p.current, M = s(i, k.order);
3466
+ M.order.join("|") === k.order.join("|") && M.hidden.join("|") === k.hidden.join("|") || (d(M), c && n.set(c, M));
3463
3467
  }, [g, f]);
3464
3468
  const D = le(!1);
3465
- Y(() => {
3469
+ Q(() => {
3466
3470
  D.current || (D.current = !0, o == null || o(a));
3467
3471
  }, []);
3468
- const C = j(
3472
+ const C = P(
3469
3473
  (k) => {
3470
3474
  d(k), c && n.set(c, k), o == null || o(k);
3471
3475
  },
3472
3476
  [c, n, o]
3473
- ), I = Ee(() => {
3474
- const k = new Map(t.map((z) => [z.key, z]));
3475
- return a.order.filter((z) => k.has(z)).map((z) => ({ ...k.get(z), visible: !a.hidden.includes(z) }));
3476
- }, [a, t]), A = j(
3477
+ ), I = Fe(() => {
3478
+ const k = new Map(t.map((M) => [M.key, M]));
3479
+ return a.order.filter((M) => k.has(M)).map((M) => ({ ...k.get(M), visible: !a.hidden.includes(M) }));
3480
+ }, [a, t]), z = P(
3477
3481
  (k) => {
3478
- const z = a.hidden.includes(k) ? a.hidden.filter((G) => G !== k) : [...a.hidden, k];
3479
- C({ ...a, hidden: z });
3482
+ const M = a.hidden.includes(k) ? a.hidden.filter((G) => G !== k) : [...a.hidden, k];
3483
+ C({ ...a, hidden: M });
3480
3484
  },
3481
3485
  [a, C]
3482
- ), M = j(
3483
- (k, z) => {
3484
- if (k === z) return;
3486
+ ), A = P(
3487
+ (k, M) => {
3488
+ if (k === M) return;
3485
3489
  const G = [...a.order], [O] = G.splice(k, 1);
3486
- G.splice(z, 0, O), C({ ...a, order: G });
3490
+ G.splice(M, 0, O), C({ ...a, order: G });
3487
3491
  },
3488
3492
  [a, C]
3489
- ), x = j(
3493
+ ), x = P(
3490
3494
  (k) => {
3491
3495
  C({
3492
3496
  ...a,
3493
- hidden: k ? t.filter((z) => !z.locked).map((z) => z.key) : []
3497
+ hidden: k ? t.filter((M) => !M.locked).map((M) => M.key) : []
3494
3498
  });
3495
3499
  },
3496
3500
  [a, t, C]
3497
- ), S = j(() => C(l), [C, l]), L = j(
3501
+ ), S = P(() => C(l), [C, l]), L = P(
3498
3502
  (k) => C(ir(k, t)),
3499
3503
  [C, t]
3500
3504
  ), R = a.hidden.length === 0;
@@ -3502,8 +3506,8 @@ function zl({
3502
3506
  state: a,
3503
3507
  orderedColumns: I,
3504
3508
  allVisible: R,
3505
- toggleVisibility: A,
3506
- reorder: M,
3509
+ toggleVisibility: z,
3510
+ reorder: A,
3507
3511
  setAllHidden: x,
3508
3512
  reset: S,
3509
3513
  applyState: L
@@ -3519,38 +3523,38 @@ function Il({
3519
3523
  }) {
3520
3524
  const { searchParams: c, setSearchParams: s } = it(), a = t ? Ut.savedViews(t) : void 0, [d, f] = B(
3521
3525
  () => a ? r.get(a) || [] : []
3522
- ), p = j(
3526
+ ), p = P(
3523
3527
  (C) => {
3524
3528
  f(C), a && r.set(a, C);
3525
3529
  },
3526
3530
  [a]
3527
3531
  // storage identity is stable (module singleton / caller-provided)
3528
- ), g = j(
3532
+ ), g = P(
3529
3533
  (C) => {
3530
3534
  const I = C.trim();
3531
3535
  if (!I) return;
3532
- const A = {};
3536
+ const z = {};
3533
3537
  n.forEach((x) => {
3534
3538
  const S = c.get(x);
3535
- S != null && (A[x] = S);
3539
+ S != null && (z[x] = S);
3536
3540
  });
3537
- const M = {
3541
+ const A = {
3538
3542
  id: `${Date.now()}`,
3539
3543
  name: I,
3540
- query: A,
3544
+ query: z,
3541
3545
  columns: i == null ? void 0 : i(),
3542
3546
  createdAt: Date.now()
3543
3547
  };
3544
- p([...d, M]);
3548
+ p([...d, A]);
3545
3549
  },
3546
3550
  [n, c, i, p, d]
3547
- ), b = j(
3551
+ ), b = P(
3548
3552
  (C) => p(d.filter((I) => I.id !== C)),
3549
3553
  [p, d]
3550
- ), D = j(
3554
+ ), D = P(
3551
3555
  (C) => {
3552
3556
  const I = Object.fromEntries(c.entries());
3553
- n.forEach((A) => delete I[A]), Object.assign(I, C.query), delete I[o], s(I), C.columns && (l == null || l(C.columns));
3557
+ n.forEach((z) => delete I[z]), Object.assign(I, C.query), delete I[o], s(I), C.columns && (l == null || l(C.columns));
3554
3558
  },
3555
3559
  [c, n, o, s, l]
3556
3560
  );
@@ -3582,7 +3586,7 @@ function Hl({
3582
3586
  persistSearch: c = !0
3583
3587
  }) {
3584
3588
  const { searchParams: s } = it(), a = t && o ? Ut.lastState(t) : void 0, d = le(a), f = le(!1);
3585
- Y(() => {
3589
+ Q(() => {
3586
3590
  if (!a) {
3587
3591
  d.current = a;
3588
3592
  return;
@@ -3609,13 +3613,13 @@ function Hl({
3609
3613
  i,
3610
3614
  l
3611
3615
  ]);
3612
- const p = j(() => {
3616
+ const p = P(() => {
3613
3617
  if (!a) return null;
3614
3618
  const b = r.get(a);
3615
3619
  if (!b || typeof b != "object" || Array.isArray(b) || Object.keys(b).length === 0) return null;
3616
3620
  const D = b[i];
3617
3621
  return D != null && Object.keys(yt(D)).length === 0 && delete b[i], c || Qn(b, i, l), Object.keys(b).length > 0 ? b : null;
3618
- }, [a, r, c, i, l]), g = j(() => {
3622
+ }, [a, r, c, i, l]), g = P(() => {
3619
3623
  a && r.remove(a);
3620
3624
  }, [a, r]);
3621
3625
  return {
@@ -3632,7 +3636,7 @@ function Tl({
3632
3636
  enabled: i = !0
3633
3637
  }) {
3634
3638
  const { searchParams: l } = it(), c = t && i ? Ut.perPage(t) : void 0, s = l.toString(), a = le(c);
3635
- Y(() => {
3639
+ Q(() => {
3636
3640
  if (!c) {
3637
3641
  a.current = c;
3638
3642
  return;
@@ -3646,13 +3650,13 @@ function Tl({
3646
3650
  const g = Number(p);
3647
3651
  !Number.isFinite(g) || g <= 0 || r.set(c, g);
3648
3652
  }, [s, c, n, r]);
3649
- const d = j(() => {
3653
+ const d = P(() => {
3650
3654
  if (!c) return null;
3651
3655
  const p = r.get(c);
3652
3656
  if (p == null) return null;
3653
3657
  const g = Number(p);
3654
3658
  return !Number.isFinite(g) || g <= 0 || o && !o.includes(g) ? null : String(g);
3655
- }, [c, r, o]), f = j(() => {
3659
+ }, [c, r, o]), f = P(() => {
3656
3660
  c && r.remove(c);
3657
3661
  }, [c, r]);
3658
3662
  return {
@@ -3682,7 +3686,7 @@ function Vl({
3682
3686
  readPerPage: i
3683
3687
  }) {
3684
3688
  const { searchParams: l, setSearchParams: c, location: s } = it(), a = le(null);
3685
- Y(() => {
3689
+ Q(() => {
3686
3690
  if (!t || a.current === s.pathname) return;
3687
3691
  a.current = s.pathname;
3688
3692
  const d = {};
@@ -3703,8 +3707,8 @@ const Nl = ({
3703
3707
  onToggle: n,
3704
3708
  hasActiveFilter: o,
3705
3709
  onReset: i
3706
- }) => t.length ? /* @__PURE__ */ u(Ze, { position: "bottom-left", children: [
3707
- /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(
3710
+ }) => t.length ? /* @__PURE__ */ u(Ge, { position: "bottom-left", children: [
3711
+ /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
3708
3712
  V,
3709
3713
  {
3710
3714
  variant: o ? "secondary" : "outline",
@@ -3714,8 +3718,8 @@ const Nl = ({
3714
3718
  "aria-label": "Add filter"
3715
3719
  }
3716
3720
  ) }),
3717
- /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
3718
- Ue,
3721
+ /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(
3722
+ Qe,
3719
3723
  {
3720
3724
  style: { minWidth: 260 },
3721
3725
  title: /* @__PURE__ */ u(
@@ -3760,8 +3764,8 @@ const Nl = ({
3760
3764
  ] }) : null, Qt = ({
3761
3765
  onClear: t,
3762
3766
  onRemove: r
3763
- }) => /* @__PURE__ */ u(Ze, { position: "bottom-right", children: [
3764
- /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(
3767
+ }) => /* @__PURE__ */ u(Ge, { position: "bottom-right", children: [
3768
+ /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
3765
3769
  V,
3766
3770
  {
3767
3771
  variant: "link",
@@ -3771,7 +3775,7 @@ const Nl = ({
3771
3775
  "aria-label": "Filter actions"
3772
3776
  }
3773
3777
  ) }),
3774
- /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ u(Ue, { style: { width: 180 }, children: [
3778
+ /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ u(Qe, { style: { width: 180 }, children: [
3775
3779
  /* @__PURE__ */ e(
3776
3780
  Je,
3777
3781
  {
@@ -3865,8 +3869,8 @@ const Nl = ({
3865
3869
  " ",
3866
3870
  /* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children: Oi(l) })
3867
3871
  ] }) : t.label;
3868
- return /* @__PURE__ */ u(Ze, { position: "bottom-left", children: [
3869
- /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(
3872
+ return /* @__PURE__ */ u(Ge, { position: "bottom-left", children: [
3873
+ /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
3870
3874
  V,
3871
3875
  {
3872
3876
  variant: c ? "secondary" : "outline",
@@ -3877,8 +3881,8 @@ const Nl = ({
3877
3881
  children: s
3878
3882
  }
3879
3883
  ) }),
3880
- /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
3881
- Ue,
3884
+ /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(
3885
+ Qe,
3882
3886
  {
3883
3887
  style: { width: 260 },
3884
3888
  title: /* @__PURE__ */ u(
@@ -3971,8 +3975,8 @@ const Nl = ({
3971
3975
  n({ op: b, date: r == null ? void 0 : r.date });
3972
3976
  }
3973
3977
  };
3974
- return /* @__PURE__ */ u(Ze, { position: "bottom-left", children: [
3975
- /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(
3978
+ return /* @__PURE__ */ u(Ge, { position: "bottom-left", children: [
3979
+ /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
3976
3980
  V,
3977
3981
  {
3978
3982
  variant: f ? "secondary" : "outline",
@@ -3983,9 +3987,9 @@ const Nl = ({
3983
3987
  children: p
3984
3988
  }
3985
3989
  ) }),
3986
- /* @__PURE__ */ u(qe, { children: [
3990
+ /* @__PURE__ */ u(Ue, { children: [
3987
3991
  /* @__PURE__ */ e(
3988
- Ue,
3992
+ Qe,
3989
3993
  {
3990
3994
  style: { width: 320 },
3991
3995
  title: /* @__PURE__ */ u(
@@ -4022,8 +4026,8 @@ const Nl = ({
4022
4026
  a === "is-relative-to-today" && /* @__PURE__ */ e(cn, { children: /* @__PURE__ */ e(w, { fontSize: "xs", color: "subtlest", children: "Filter will update with the current date" }) })
4023
4027
  ] })
4024
4028
  ] });
4025
- }, $i = ({ op: t, ops: r, onChange: n }) => /* @__PURE__ */ u(Ze, { position: "bottom-left", children: [
4026
- /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(
4029
+ }, $i = ({ op: t, ops: r, onChange: n }) => /* @__PURE__ */ u(Ge, { position: "bottom-left", children: [
4030
+ /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
4027
4031
  V,
4028
4032
  {
4029
4033
  variant: "link",
@@ -4033,7 +4037,7 @@ const Nl = ({
4033
4037
  children: mr[t]
4034
4038
  }
4035
4039
  ) }),
4036
- /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(Ue, { style: { width: 200 }, children: r.map((o) => /* @__PURE__ */ e(
4040
+ /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(Qe, { style: { width: 200 }, children: r.map((o) => /* @__PURE__ */ e(
4037
4041
  Je,
4038
4042
  {
4039
4043
  selected: t === o,
@@ -4117,8 +4121,8 @@ const Nl = ({
4117
4121
  const n = (t == null ? void 0 : t.direction) ?? "past", o = (t == null ? void 0 : t.count) ?? 1, i = (t == null ? void 0 : t.period) ?? "week", l = n !== "this", c = Ti({ direction: n, count: o, period: i });
4118
4122
  return /* @__PURE__ */ u(h, { direction: "column", display: "flex", gap: "sm", children: [
4119
4123
  /* @__PURE__ */ u(h, { direction: "row", display: "flex", align: "center", gap: "xs", children: [
4120
- /* @__PURE__ */ u(Ze, { position: "bottom-left", children: [
4121
- /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(
4124
+ /* @__PURE__ */ u(Ge, { position: "bottom-left", children: [
4125
+ /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
4122
4126
  V,
4123
4127
  {
4124
4128
  variant: "outline",
@@ -4128,7 +4132,7 @@ const Nl = ({
4128
4132
  children: rn[n]
4129
4133
  }
4130
4134
  ) }),
4131
- /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(Ue, { style: { width: 140 }, children: Pl.map((s) => /* @__PURE__ */ e(
4135
+ /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(Qe, { style: { width: 140 }, children: Pl.map((s) => /* @__PURE__ */ e(
4132
4136
  Je,
4133
4137
  {
4134
4138
  selected: n === s,
@@ -4160,8 +4164,8 @@ const Nl = ({
4160
4164
  style: { width: 72 }
4161
4165
  }
4162
4166
  ),
4163
- /* @__PURE__ */ u(Ze, { position: "bottom-left", children: [
4164
- /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(
4167
+ /* @__PURE__ */ u(Ge, { position: "bottom-left", children: [
4168
+ /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
4165
4169
  V,
4166
4170
  {
4167
4171
  variant: "outline",
@@ -4171,7 +4175,7 @@ const Nl = ({
4171
4175
  children: i
4172
4176
  }
4173
4177
  ) }),
4174
- /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(Ue, { style: { width: 140 }, children: _l.map((s) => /* @__PURE__ */ e(
4178
+ /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(Qe, { style: { width: 140 }, children: _l.map((s) => /* @__PURE__ */ e(
4175
4179
  Je,
4176
4180
  {
4177
4181
  selected: i === s,
@@ -4209,19 +4213,19 @@ const Nl = ({
4209
4213
  }) => {
4210
4214
  const l = t.type === "dropdown-multiple", c = r.length, s = t.searchable !== !1, [a, d] = B(""), f = t.options, p = typeof t.onSearch == "function", g = (() => {
4211
4215
  if (p) return f;
4212
- const A = a.trim().toLowerCase();
4213
- return A ? f.filter((M) => M.label.toLowerCase().includes(A)) : f;
4214
- })(), b = (A) => r.some((M) => M.value === A.value), D = (A) => {
4216
+ const z = a.trim().toLowerCase();
4217
+ return z ? f.filter((A) => A.label.toLowerCase().includes(z)) : f;
4218
+ })(), b = (z) => r.some((A) => A.value === z.value), D = (z) => {
4215
4219
  if (!l) {
4216
- n([{ label: A.label, value: A.value }]), d("");
4220
+ n([{ label: z.label, value: z.value }]), d("");
4217
4221
  return;
4218
4222
  }
4219
4223
  n(
4220
- b(A) ? r.filter((M) => M.value !== A.value) : [...r, { label: A.label, value: A.value }]
4224
+ b(z) ? r.filter((A) => A.value !== z.value) : [...r, { label: z.label, value: z.value }]
4221
4225
  );
4222
- }, C = (A) => {
4223
- var M;
4224
- d(A), (M = t.onSearch) == null || M.call(t, A);
4226
+ }, C = (z) => {
4227
+ var A;
4228
+ d(z), (A = t.onSearch) == null || A.call(t, z);
4225
4229
  }, I = c === 0 ? t.label : /* @__PURE__ */ u(ne, { children: [
4226
4230
  /* @__PURE__ */ u("span", { style: { fontWeight: 500 }, children: [
4227
4231
  t.label,
@@ -4230,8 +4234,8 @@ const Nl = ({
4230
4234
  " ",
4231
4235
  /* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children: c === 1 ? Ql(r[0].label) : `${c} Selected` })
4232
4236
  ] });
4233
- return /* @__PURE__ */ u(Ze, { position: "bottom-left", children: [
4234
- /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(
4237
+ return /* @__PURE__ */ u(Ge, { position: "bottom-left", children: [
4238
+ /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
4235
4239
  V,
4236
4240
  {
4237
4241
  variant: c > 0 ? "secondary" : "outline",
@@ -4242,8 +4246,8 @@ const Nl = ({
4242
4246
  children: I
4243
4247
  }
4244
4248
  ) }),
4245
- /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
4246
- Ue,
4249
+ /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(
4250
+ Qe,
4247
4251
  {
4248
4252
  style: { width: 260 },
4249
4253
  title: /* @__PURE__ */ u(
@@ -4284,18 +4288,18 @@ const Nl = ({
4284
4288
  direction: "column",
4285
4289
  overflow: "overflow-y-auto",
4286
4290
  customMaxHeight: "240px",
4287
- children: t.isLoading ? /* @__PURE__ */ e(h, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(w, { fontSize: "xs", color: "subtlest", children: "Loading…" }) }) : g.length === 0 ? /* @__PURE__ */ e(h, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(w, { fontSize: "xs", color: "subtlest", children: "No results" }) }) : g.map((A) => /* @__PURE__ */ e(
4291
+ children: t.isLoading ? /* @__PURE__ */ e(h, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(w, { fontSize: "xs", color: "subtlest", children: "Loading…" }) }) : g.length === 0 ? /* @__PURE__ */ e(h, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(w, { fontSize: "xs", color: "subtlest", children: "No results" }) }) : g.map((z) => /* @__PURE__ */ e(
4288
4292
  Je,
4289
4293
  {
4290
4294
  closeOnSelect: !l,
4291
- selected: b(A),
4292
- startIcon: A.avatar,
4293
- endIcon: b(A) ? /* @__PURE__ */ e(F, { name: "Check" }) : void 0,
4294
- description: A.description,
4295
- onClick: () => D(A),
4296
- children: A.label
4295
+ selected: b(z),
4296
+ startIcon: z.avatar,
4297
+ endIcon: b(z) ? /* @__PURE__ */ e(F, { name: "Check" }) : void 0,
4298
+ description: z.description,
4299
+ onClick: () => D(z),
4300
+ children: z.label
4297
4301
  },
4298
- A.value
4302
+ z.value
4299
4303
  ))
4300
4304
  }
4301
4305
  )
@@ -4336,8 +4340,8 @@ const Nl = ({
4336
4340
  " ",
4337
4341
  /* @__PURE__ */ e(w, { as: "span", children: c === 1 ? Xl(r[0].label) : `${c} Selected` })
4338
4342
  ] });
4339
- return /* @__PURE__ */ u(Ze, { position: "bottom-left", children: [
4340
- /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(
4343
+ return /* @__PURE__ */ u(Ge, { position: "bottom-left", children: [
4344
+ /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
4341
4345
  V,
4342
4346
  {
4343
4347
  variant: c > 0 ? "secondary" : "outline",
@@ -4348,8 +4352,8 @@ const Nl = ({
4348
4352
  children: p
4349
4353
  }
4350
4354
  ) }),
4351
- /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ u(
4352
- Ue,
4355
+ /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ u(
4356
+ Qe,
4353
4357
  {
4354
4358
  style: { width: 240 },
4355
4359
  title: /* @__PURE__ */ u(
@@ -4406,9 +4410,9 @@ const Nl = ({
4406
4410
  onRemove: i
4407
4411
  }) => {
4408
4412
  const [l, c] = B(r ?? ""), s = ln(l, t.debounceMs ?? 300);
4409
- Y(() => {
4413
+ Q(() => {
4410
4414
  s !== (r ?? "") && n(s);
4411
- }, [s]), Y(() => {
4415
+ }, [s]), Q(() => {
4412
4416
  c(r ?? "");
4413
4417
  }, [r]);
4414
4418
  const a = !!r, d = a ? /* @__PURE__ */ u(ne, { children: [
@@ -4419,8 +4423,8 @@ const Nl = ({
4419
4423
  " ",
4420
4424
  /* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children: Kl(r) })
4421
4425
  ] }) : t.label;
4422
- return /* @__PURE__ */ u(Ze, { position: "bottom-left", children: [
4423
- /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(
4426
+ return /* @__PURE__ */ u(Ge, { position: "bottom-left", children: [
4427
+ /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
4424
4428
  V,
4425
4429
  {
4426
4430
  variant: a ? "secondary" : "outline",
@@ -4431,8 +4435,8 @@ const Nl = ({
4431
4435
  children: d
4432
4436
  }
4433
4437
  ) }),
4434
- /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
4435
- Ue,
4438
+ /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(
4439
+ Qe,
4436
4440
  {
4437
4441
  style: { width: 260 },
4438
4442
  title: /* @__PURE__ */ u(
@@ -4525,21 +4529,21 @@ const Nl = ({
4525
4529
  showPageSize: c = !0,
4526
4530
  showPagination: s = !0
4527
4531
  }) => {
4528
- var A;
4529
- const { searchQueries: a, setSearchParams: d, searchParams: f } = it(), p = f.get(n), g = p ? Number(p) : i, b = (M) => {
4530
- d({ ...a, [r]: String(M) });
4531
- }, D = (M) => {
4532
+ var z;
4533
+ const { searchQueries: a, setSearchParams: d, searchParams: f } = it(), p = f.get(n), g = p ? Number(p) : i, b = (A) => {
4534
+ d({ ...a, [r]: String(A) });
4535
+ }, D = (A) => {
4532
4536
  d({
4533
4537
  ...a,
4534
- [n]: M,
4538
+ [n]: A,
4535
4539
  [r]: "1"
4536
4540
  // reset to first page when page size changes
4537
4541
  });
4538
4542
  }, C = (t == null ? void 0 : t.rangeStart) ?? (((t == null ? void 0 : t.currentPage) || 0) > 1 ? (((t == null ? void 0 : t.currentPage) || 0) - 1) * ((t == null ? void 0 : t.perPage) || 0) + 1 : 1), I = (t == null ? void 0 : t.rangeEnd) ?? ((t == null ? void 0 : t.totalCurrentPage) !== (t == null ? void 0 : t.perPage) ? t == null ? void 0 : t.totalData : ((t == null ? void 0 : t.currentPage) || 1) * ((t == null ? void 0 : t.totalCurrentPage) || 0));
4539
4543
  return /* @__PURE__ */ u(ne, { children: [
4540
- l && /* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${C}-${I} of ${((A = t == null ? void 0 : t.totalData) == null ? void 0 : A.toLocaleString()) || 0}` }),
4541
- c && /* @__PURE__ */ u(Ze, { position: "bottom-left", children: [
4542
- /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(
4544
+ l && /* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${C}-${I} of ${((z = t == null ? void 0 : t.totalData) == null ? void 0 : z.toLocaleString()) || 0}` }),
4545
+ c && /* @__PURE__ */ u(Ge, { position: "bottom-left", children: [
4546
+ /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
4543
4547
  V,
4544
4548
  {
4545
4549
  variant: "outline",
@@ -4550,14 +4554,14 @@ const Nl = ({
4550
4554
  children: ri(g)
4551
4555
  }
4552
4556
  ) }),
4553
- /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(Ue, { children: o.map((M) => /* @__PURE__ */ e(
4557
+ /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(Qe, { children: o.map((A) => /* @__PURE__ */ e(
4554
4558
  Je,
4555
4559
  {
4556
- selected: M === g,
4557
- onClick: () => D(String(M)),
4558
- children: ri(M)
4560
+ selected: A === g,
4561
+ onClick: () => D(String(A)),
4562
+ children: ri(A)
4559
4563
  },
4560
- M
4564
+ A
4561
4565
  )) }) })
4562
4566
  ] }),
4563
4567
  s && ((t == null ? void 0 : t.totalPage) ?? 0) > 1 && /* @__PURE__ */ e(
@@ -4587,7 +4591,7 @@ const Nl = ({
4587
4591
  ] });
4588
4592
  };
4589
4593
  function rc(t, r, n = !0) {
4590
- Y(() => {
4594
+ Q(() => {
4591
4595
  if (!n) return;
4592
4596
  const o = (i) => {
4593
4597
  var s;
@@ -4606,12 +4610,12 @@ const nc = 240, ji = ({
4606
4610
  shortcut: i = "/",
4607
4611
  collapsible: l = !0
4608
4612
  }) => {
4609
- const { searchParams: c, setSearchParams: s, searchQueries: a } = it(), d = fn(t, c, r) || "", [f, p] = B(!l || !!d), [g, b] = B(l && !d), [D, C] = B(d), I = ln(D, 350), A = le(null);
4610
- Y(() => {
4613
+ const { searchParams: c, setSearchParams: s, searchQueries: a } = it(), d = fn(t, c, r) || "", [f, p] = B(!l || !!d), [g, b] = B(l && !d), [D, C] = B(d), I = ln(D, 350), z = le(null);
4614
+ Q(() => {
4611
4615
  C(d), d && p(!0);
4612
- }, [d]), Y(() => {
4616
+ }, [d]), Q(() => {
4613
4617
  f && b(!1);
4614
- }, [f]), Y(() => {
4618
+ }, [f]), Q(() => {
4615
4619
  I !== d && fr({
4616
4620
  value: I,
4617
4621
  name: t,
@@ -4622,13 +4626,13 @@ const nc = 240, ji = ({
4622
4626
  pageKey: n
4623
4627
  });
4624
4628
  }, [I]);
4625
- const M = j(() => {
4629
+ const A = P(() => {
4626
4630
  p(!0), requestAnimationFrame(() => {
4627
4631
  var R;
4628
- return (R = A.current) == null ? void 0 : R.focus();
4632
+ return (R = z.current) == null ? void 0 : R.focus();
4629
4633
  });
4630
4634
  }, []);
4631
- return rc(i, M), // No internal gap: the trigger and the animated input are never visible at
4635
+ return rc(i, A), // No internal gap: the trigger and the animated input are never visible at
4632
4636
  // the same time, so spacing to neighbours is handled by the parent cluster.
4633
4637
  /* @__PURE__ */ u(h, { display: "flex", direction: "row", align: "center", gap: "spacing-0", children: [
4634
4638
  g && /* @__PURE__ */ e(
@@ -4640,7 +4644,7 @@ const nc = 240, ji = ({
4640
4644
  iconLeft: /* @__PURE__ */ e(F, { name: "Search", size: "sm" }),
4641
4645
  "aria-label": "Search",
4642
4646
  "aria-expanded": !1,
4643
- onClick: M
4647
+ onClick: A
4644
4648
  }
4645
4649
  ),
4646
4650
  /* @__PURE__ */ u(
@@ -4659,7 +4663,7 @@ const nc = 240, ji = ({
4659
4663
  /* @__PURE__ */ e(
4660
4664
  Mt,
4661
4665
  {
4662
- ref: A,
4666
+ ref: z,
4663
4667
  size: "sm",
4664
4668
  fullWidth: !0,
4665
4669
  value: D,
@@ -4668,7 +4672,7 @@ const nc = 240, ji = ({
4668
4672
  onChange: (R) => C(R.target.value),
4669
4673
  onKeyDown: (R) => {
4670
4674
  var k;
4671
- l && R.key === "Escape" && !D && (p(!1), (k = A.current) == null || k.blur());
4675
+ l && R.key === "Escape" && !D && (p(!1), (k = z.current) == null || k.blur());
4672
4676
  },
4673
4677
  onBlur: () => {
4674
4678
  l && !D && p(!1);
@@ -4717,8 +4721,8 @@ const nc = 240, ji = ({
4717
4721
  const b = p + g;
4718
4722
  b < 0 || b >= t.length || o(p, b);
4719
4723
  };
4720
- return /* @__PURE__ */ u(Ze, { position: "bottom-right", children: [
4721
- /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(
4724
+ return /* @__PURE__ */ u(Ge, { position: "bottom-right", children: [
4725
+ /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
4722
4726
  V,
4723
4727
  {
4724
4728
  variant: r ? "outline" : "secondary",
@@ -4728,7 +4732,7 @@ const nc = 240, ji = ({
4728
4732
  "aria-label": "Customize columns"
4729
4733
  }
4730
4734
  ) }),
4731
- /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ u(
4735
+ /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(Qe, { children: /* @__PURE__ */ u(
4732
4736
  h,
4733
4737
  {
4734
4738
  padding: "sm",
@@ -4846,8 +4850,8 @@ const nc = 240, ji = ({
4846
4850
  const s = i.trim();
4847
4851
  s && (o(s), l(""));
4848
4852
  };
4849
- return /* @__PURE__ */ u(Ze, { position: "bottom-right", children: [
4850
- /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(
4853
+ return /* @__PURE__ */ u(Ge, { position: "bottom-right", children: [
4854
+ /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
4851
4855
  V,
4852
4856
  {
4853
4857
  variant: t.length > 0 ? "secondary" : "outline",
@@ -4858,13 +4862,13 @@ const nc = 240, ji = ({
4858
4862
  }
4859
4863
  ) }),
4860
4864
  /* @__PURE__ */ u(
4861
- qe,
4865
+ Ue,
4862
4866
  {
4863
4867
  style: {
4864
4868
  width: "260px"
4865
4869
  },
4866
4870
  children: [
4867
- /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ u(h, { direction: "column", padding: "xs", gap: "sm", children: [
4871
+ /* @__PURE__ */ e(Qe, { children: /* @__PURE__ */ u(h, { direction: "column", padding: "xs", gap: "sm", children: [
4868
4872
  /* @__PURE__ */ e(w, { fontWeight: "semibold", color: "primary", children: "Saved Views" }),
4869
4873
  /* @__PURE__ */ e(
4870
4874
  h,
@@ -5136,8 +5140,8 @@ const nc = 240, ji = ({
5136
5140
  [r]: "1"
5137
5141
  });
5138
5142
  };
5139
- return i ? /* @__PURE__ */ u(Ze, { position: "bottom-right", children: [
5140
- /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ e(
5143
+ return i ? /* @__PURE__ */ u(Ge, { position: "bottom-right", children: [
5144
+ /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
5141
5145
  V,
5142
5146
  {
5143
5147
  variant: "outline",
@@ -5147,7 +5151,7 @@ const nc = 240, ji = ({
5147
5151
  "aria-label": "More options"
5148
5152
  }
5149
5153
  ) }),
5150
- /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ u(Ue, { style: { minWidth: 200 }, children: [
5154
+ /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ u(Qe, { style: { minWidth: 200 }, children: [
5151
5155
  /* @__PURE__ */ e(h, { paddingInline: "sm", paddingBlock: "xs", children: /* @__PURE__ */ e(w, { fontSize: "xs", fontWeight: "medium", color: "subtlest", children: "Rows per page" }) }),
5152
5156
  n.map((p) => /* @__PURE__ */ e(
5153
5157
  Je,
@@ -5180,31 +5184,31 @@ const nc = 240, ji = ({
5180
5184
  filterKey: D,
5181
5185
  pageKey: C,
5182
5186
  searchPlaceholder: I,
5183
- searchShortcut: A,
5184
- searchCollapsible: M,
5187
+ searchShortcut: z,
5188
+ searchCollapsible: A,
5185
5189
  pagination: x,
5186
5190
  perPageKey: S,
5187
5191
  pageSizeOptions: L,
5188
5192
  defaultPerPage: R,
5189
5193
  showPagination: k,
5190
- showResultCount: z,
5194
+ showResultCount: M,
5191
5195
  showPageSize: G,
5192
5196
  hasColumns: O,
5193
5197
  orderedColumns: H,
5194
5198
  allVisible: N,
5195
5199
  onToggleVisibility: Z,
5196
- onReorder: q,
5200
+ onReorder: Y,
5197
5201
  onSetAllHidden: re,
5198
5202
  showSavedViews: J,
5199
- savedViews: K,
5200
- onApplyView: $,
5201
- onDeleteView: me,
5202
- onSaveView: fe,
5203
- leadingActions: Re,
5204
- trailingActions: Qe
5205
- } = t, [Fe, xe] = B(!1), { searchQueries: ve, setSearchParams: Be } = it(), Ke = (x == null ? void 0 : x.rangeStart) ?? (((x == null ? void 0 : x.currentPage) || 0) > 1 ? (((x == null ? void 0 : x.currentPage) || 0) - 1) * ((x == null ? void 0 : x.perPage) || 0) + 1 : 1), $e = (x == null ? void 0 : x.rangeEnd) ?? ((x == null ? void 0 : x.totalCurrentPage) !== (x == null ? void 0 : x.perPage) ? x == null ? void 0 : x.totalData : ((x == null ? void 0 : x.currentPage) || 1) * ((x == null ? void 0 : x.totalCurrentPage) || 0)), ae = (Me) => {
5206
- Be({ ...ve, [C]: String(Me) });
5207
- }, ue = z || k && !!(x != null && x.totalPage), ye = () => {
5203
+ savedViews: me,
5204
+ onApplyView: j,
5205
+ onDeleteView: K,
5206
+ onSaveView: se,
5207
+ leadingActions: ke,
5208
+ trailingActions: Be
5209
+ } = t, [Le, xe] = B(!1), { searchQueries: ve, setSearchParams: He } = it(), Ke = (x == null ? void 0 : x.rangeStart) ?? (((x == null ? void 0 : x.currentPage) || 0) > 1 ? (((x == null ? void 0 : x.currentPage) || 0) - 1) * ((x == null ? void 0 : x.perPage) || 0) + 1 : 1), _e = (x == null ? void 0 : x.rangeEnd) ?? ((x == null ? void 0 : x.totalCurrentPage) !== (x == null ? void 0 : x.perPage) ? x == null ? void 0 : x.totalData : ((x == null ? void 0 : x.currentPage) || 1) * ((x == null ? void 0 : x.totalCurrentPage) || 0)), de = (Me) => {
5210
+ He({ ...ve, [C]: String(Me) });
5211
+ }, he = M || k && !!(x != null && x.totalPage), ye = () => {
5208
5212
  p(), xe(!1);
5209
5213
  };
5210
5214
  return /* @__PURE__ */ u(
@@ -5238,8 +5242,8 @@ const nc = 240, ji = ({
5238
5242
  filterKey: D,
5239
5243
  pageKey: C,
5240
5244
  placeholder: I,
5241
- shortcut: A,
5242
- collapsible: M
5245
+ shortcut: z,
5246
+ collapsible: A
5243
5247
  }
5244
5248
  ),
5245
5249
  /* @__PURE__ */ e(
@@ -5263,14 +5267,14 @@ const nc = 240, ji = ({
5263
5267
  gap: "sm",
5264
5268
  style: { marginLeft: "auto" },
5265
5269
  children: [
5266
- Re,
5270
+ ke,
5267
5271
  J && /* @__PURE__ */ e(
5268
5272
  Gi,
5269
5273
  {
5270
- views: K,
5271
- onApply: $,
5272
- onDelete: me,
5273
- onSave: fe
5274
+ views: me,
5275
+ onApply: j,
5276
+ onDelete: K,
5277
+ onSave: se
5274
5278
  }
5275
5279
  ),
5276
5280
  O && /* @__PURE__ */ e(
@@ -5279,7 +5283,7 @@ const nc = 240, ji = ({
5279
5283
  columns: H,
5280
5284
  allVisible: N,
5281
5285
  onToggle: Z,
5282
- onReorder: q,
5286
+ onReorder: Y,
5283
5287
  onSetAllHidden: re
5284
5288
  }
5285
5289
  ),
@@ -5293,14 +5297,14 @@ const nc = 240, ji = ({
5293
5297
  showPageSize: G
5294
5298
  }
5295
5299
  ),
5296
- Qe
5300
+ Be
5297
5301
  ]
5298
5302
  }
5299
5303
  )
5300
5304
  ]
5301
5305
  }
5302
5306
  ),
5303
- ue && /* @__PURE__ */ u(
5307
+ he && /* @__PURE__ */ u(
5304
5308
  h,
5305
5309
  {
5306
5310
  direction: "row",
@@ -5310,7 +5314,7 @@ const nc = 240, ji = ({
5310
5314
  gap: "sm",
5311
5315
  fullWidth: !0,
5312
5316
  children: [
5313
- z ? /* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${Ke}-${$e} of ${((De = x == null ? void 0 : x.totalData) == null ? void 0 : De.toLocaleString()) || 0}` }) : /* @__PURE__ */ e(h, { direction: "column" }),
5317
+ M ? /* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${Ke}-${_e} of ${((De = x == null ? void 0 : x.totalData) == null ? void 0 : De.toLocaleString()) || 0}` }) : /* @__PURE__ */ e(h, { direction: "column" }),
5314
5318
  k && !!(x != null && x.totalPage) && /* @__PURE__ */ e(
5315
5319
  sn,
5316
5320
  {
@@ -5319,7 +5323,7 @@ const nc = 240, ji = ({
5319
5323
  siblingCount: 0,
5320
5324
  currentPage: x != null && x.currentPage ? Number(x.currentPage) : 1,
5321
5325
  totalPages: Number(x.totalPage),
5322
- onPageChange: ae
5326
+ onPageChange: de
5323
5327
  }
5324
5328
  )
5325
5329
  ]
@@ -5328,7 +5332,7 @@ const nc = 240, ji = ({
5328
5332
  /* @__PURE__ */ e(
5329
5333
  ic,
5330
5334
  {
5331
- isOpen: Fe,
5335
+ isOpen: Le,
5332
5336
  onClose: () => xe(!1),
5333
5337
  configs: n,
5334
5338
  activeKeys: o,
@@ -5363,37 +5367,37 @@ const nc = 240, ji = ({
5363
5367
  searchShortcut: D = "/",
5364
5368
  searchPosition: C = "right",
5365
5369
  searchCollapsible: I = !0,
5366
- pagination: A,
5367
- columns: M = [],
5370
+ pagination: z,
5371
+ columns: A = [],
5368
5372
  onColumnsChange: x,
5369
5373
  columnsState: S,
5370
5374
  scopeId: L,
5371
5375
  savedViews: R,
5372
5376
  persistLastState: k = !0,
5373
- persistSearch: z = !0,
5377
+ persistSearch: M = !0,
5374
5378
  storage: G = Hi,
5375
5379
  onReset: O,
5376
5380
  leadingActions: H,
5377
5381
  trailingActions: N
5378
5382
  }) => {
5379
5383
  const Z = L ?? (R == null ? void 0 : R.scopeId), {
5380
- activeKeys: q,
5384
+ activeKeys: Y,
5381
5385
  configByKey: re,
5382
5386
  hasActiveFilter: J,
5383
- toggleFilter: K,
5384
- removeFilter: $,
5385
- getValue: me,
5386
- setValue: fe,
5387
- clearValue: Re,
5388
- clearAll: Qe
5387
+ toggleFilter: me,
5388
+ removeFilter: j,
5389
+ getValue: K,
5390
+ setValue: se,
5391
+ clearValue: ke,
5392
+ clearAll: Be
5389
5393
  } = mn({
5390
5394
  configs: r,
5391
5395
  filterKey: n,
5392
5396
  activeFilterKey: o,
5393
5397
  pageKey: i,
5394
5398
  searchKey: g
5395
- }), Fe = zl({
5396
- columns: M,
5399
+ }), Le = zl({
5400
+ columns: A,
5397
5401
  scopeId: Z,
5398
5402
  storage: G,
5399
5403
  onColumnsChange: x,
@@ -5403,8 +5407,8 @@ const nc = 240, ji = ({
5403
5407
  storage: G,
5404
5408
  snapshotKeys: [o, n, l],
5405
5409
  pageKey: i,
5406
- getColumns: () => Fe.state,
5407
- applyColumns: Fe.applyState
5410
+ getColumns: () => Le.state,
5411
+ applyColumns: Le.applyState
5408
5412
  }), ve = Hl({
5409
5413
  scopeId: Z,
5410
5414
  storage: G,
@@ -5412,8 +5416,8 @@ const nc = 240, ji = ({
5412
5416
  enabled: k,
5413
5417
  filterKey: n,
5414
5418
  searchKey: g,
5415
- persistSearch: z
5416
- }), Be = Tl({
5419
+ persistSearch: M
5420
+ }), He = Tl({
5417
5421
  scopeId: Z,
5418
5422
  storage: G,
5419
5423
  perPageKey: l,
@@ -5425,11 +5429,11 @@ const nc = 240, ji = ({
5425
5429
  snapshotKeys: [o, n, i],
5426
5430
  perPageKey: l,
5427
5431
  readSnapshot: ve.read,
5428
- readPerPage: Be.read
5432
+ readPerPage: He.read
5429
5433
  });
5430
- const Ke = s ?? c[0] ?? 25, $e = !!(R != null && R.enabled) && xe.enabled, ae = () => {
5431
- Qe(), ve.clear(), O == null || O();
5432
- }, ue = Ie("md"), ye = p ? /* @__PURE__ */ e(
5434
+ const Ke = s ?? c[0] ?? 25, _e = !!(R != null && R.enabled) && xe.enabled, de = () => {
5435
+ Be(), ve.clear(), O == null || O();
5436
+ }, he = Ie("md"), ye = p ? /* @__PURE__ */ e(
5433
5437
  ji,
5434
5438
  {
5435
5439
  searchKey: g,
@@ -5440,7 +5444,7 @@ const nc = 240, ji = ({
5440
5444
  collapsible: I
5441
5445
  }
5442
5446
  ) : null;
5443
- return ue ? /* @__PURE__ */ u(
5447
+ return he ? /* @__PURE__ */ u(
5444
5448
  h,
5445
5449
  {
5446
5450
  display: "flex",
@@ -5469,10 +5473,10 @@ const nc = 240, ji = ({
5469
5473
  Nl,
5470
5474
  {
5471
5475
  configs: r,
5472
- activeKeys: q,
5473
- onToggle: K,
5476
+ activeKeys: Y,
5477
+ onToggle: me,
5474
5478
  hasActiveFilter: J,
5475
- onReset: ae
5479
+ onReset: de
5476
5480
  }
5477
5481
  ),
5478
5482
  C === "left" && ye,
@@ -5489,12 +5493,12 @@ const nc = 240, ji = ({
5489
5493
  /* @__PURE__ */ e(
5490
5494
  Pi,
5491
5495
  {
5492
- activeKeys: q,
5496
+ activeKeys: Y,
5493
5497
  configByKey: re,
5494
- getValue: me,
5495
- setValue: fe,
5496
- clearValue: Re,
5497
- removeFilter: $
5498
+ getValue: K,
5499
+ setValue: se,
5500
+ clearValue: ke,
5501
+ removeFilter: j
5498
5502
  }
5499
5503
  ),
5500
5504
  J && /* @__PURE__ */ e(
@@ -5503,7 +5507,7 @@ const nc = 240, ji = ({
5503
5507
  variant: "link",
5504
5508
  tone: "brand",
5505
5509
  size: "sm",
5506
- onClick: ae,
5510
+ onClick: de,
5507
5511
  children: "Reset"
5508
5512
  }
5509
5513
  )
@@ -5518,7 +5522,7 @@ const nc = 240, ji = ({
5518
5522
  /* @__PURE__ */ e(
5519
5523
  tc,
5520
5524
  {
5521
- pagination: A,
5525
+ pagination: z,
5522
5526
  pageKey: i,
5523
5527
  perPageKey: l,
5524
5528
  pageSizeOptions: c,
@@ -5529,7 +5533,7 @@ const nc = 240, ji = ({
5529
5533
  }
5530
5534
  ),
5531
5535
  C === "right" && ye,
5532
- $e && /* @__PURE__ */ e(
5536
+ _e && /* @__PURE__ */ e(
5533
5537
  Gi,
5534
5538
  {
5535
5539
  views: xe.views,
@@ -5538,14 +5542,14 @@ const nc = 240, ji = ({
5538
5542
  onSave: xe.saveView
5539
5543
  }
5540
5544
  ),
5541
- M.length > 0 && /* @__PURE__ */ e(
5545
+ A.length > 0 && /* @__PURE__ */ e(
5542
5546
  Zi,
5543
5547
  {
5544
- columns: Fe.orderedColumns,
5545
- allVisible: Fe.allVisible,
5546
- onToggle: Fe.toggleVisibility,
5547
- onReorder: Fe.reorder,
5548
- onSetAllHidden: Fe.setAllHidden
5548
+ columns: Le.orderedColumns,
5549
+ allVisible: Le.allVisible,
5550
+ onToggle: Le.toggleVisibility,
5551
+ onReorder: Le.reorder,
5552
+ onSetAllHidden: Le.setAllHidden
5549
5553
  }
5550
5554
  ),
5551
5555
  N
@@ -5557,15 +5561,15 @@ const nc = 240, ji = ({
5557
5561
  {
5558
5562
  withPadding: t,
5559
5563
  configs: r,
5560
- activeKeys: q,
5564
+ activeKeys: Y,
5561
5565
  configByKey: re,
5562
5566
  hasActiveFilter: J,
5563
- toggleFilter: K,
5564
- removeFilter: $,
5565
- getValue: me,
5566
- setValue: fe,
5567
- clearValue: Re,
5568
- onReset: ae,
5567
+ toggleFilter: me,
5568
+ removeFilter: j,
5569
+ getValue: K,
5570
+ setValue: se,
5571
+ clearValue: ke,
5572
+ onReset: de,
5569
5573
  searchable: p,
5570
5574
  searchKey: g,
5571
5575
  filterKey: n,
@@ -5573,20 +5577,20 @@ const nc = 240, ji = ({
5573
5577
  searchPlaceholder: b,
5574
5578
  searchShortcut: D,
5575
5579
  searchCollapsible: I,
5576
- pagination: A,
5580
+ pagination: z,
5577
5581
  perPageKey: l,
5578
5582
  pageSizeOptions: c,
5579
5583
  defaultPerPage: Ke,
5580
5584
  showPagination: a,
5581
5585
  showResultCount: d,
5582
5586
  showPageSize: f,
5583
- hasColumns: M.length > 0,
5584
- orderedColumns: Fe.orderedColumns,
5585
- allVisible: Fe.allVisible,
5586
- onToggleVisibility: Fe.toggleVisibility,
5587
- onReorder: Fe.reorder,
5588
- onSetAllHidden: Fe.setAllHidden,
5589
- showSavedViews: $e,
5587
+ hasColumns: A.length > 0,
5588
+ orderedColumns: Le.orderedColumns,
5589
+ allVisible: Le.allVisible,
5590
+ onToggleVisibility: Le.toggleVisibility,
5591
+ onReorder: Le.reorder,
5592
+ onSetAllHidden: Le.setAllHidden,
5593
+ showSavedViews: _e,
5590
5594
  savedViews: xe.views,
5591
5595
  onApplyView: xe.applyView,
5592
5596
  onDeleteView: xe.deleteView,
@@ -5643,25 +5647,25 @@ const nc = 240, ji = ({
5643
5647
  pageKey: i,
5644
5648
  searchKey: c
5645
5649
  }), { searchParams: C } = it(), I = C.toString();
5646
- return Ee(() => {
5647
- const M = {}, x = {}, S = ni(C.get(i), s), L = ni(C.get(l), a);
5648
- M[(d == null ? void 0 : d.page) ?? "page"] = S, M[(d == null ? void 0 : d.perPage) ?? "perPage"] = L;
5650
+ return Fe(() => {
5651
+ const A = {}, x = {}, S = ni(C.get(i), s), L = ni(C.get(l), a);
5652
+ A[(d == null ? void 0 : d.page) ?? "page"] = S, A[(d == null ? void 0 : d.perPage) ?? "perPage"] = L;
5649
5653
  const R = fn(c, C, n) || "";
5650
- R && (M[(d == null ? void 0 : d.search) ?? "search"] = R);
5654
+ R && (A[(d == null ? void 0 : d.search) ?? "search"] = R);
5651
5655
  let k = !1;
5652
- for (const z of p) {
5653
- const G = g[z];
5656
+ for (const M of p) {
5657
+ const G = g[M];
5654
5658
  if (!G) continue;
5655
5659
  const O = D(G);
5656
- x[z] = O;
5657
- const H = f == null ? void 0 : f[z], N = H ? H(O) : dc(G, O);
5660
+ x[M] = O;
5661
+ const H = f == null ? void 0 : f[M], N = H ? H(O) : dc(G, O);
5658
5662
  if (N == null || Array.isArray(N) && N.length === 0)
5659
5663
  continue;
5660
- const Z = (d == null ? void 0 : d[z]) ?? z;
5661
- M[Z] = N, k = !0;
5664
+ const Z = (d == null ? void 0 : d[M]) ?? M;
5665
+ A[Z] = N, k = !0;
5662
5666
  }
5663
5667
  return {
5664
- params: M,
5668
+ params: A,
5665
5669
  raw: x,
5666
5670
  hasActiveFilter: b || !!R || k
5667
5671
  };
@@ -5701,7 +5705,7 @@ const nc = 240, ji = ({
5701
5705
  var R;
5702
5706
  const L = x.options;
5703
5707
  return ((R = L == null ? void 0 : L.find((k) => k.value === S)) == null ? void 0 : R.label) ?? S;
5704
- }, g = j(
5708
+ }, g = P(
5705
5709
  (x) => {
5706
5710
  const S = l[x];
5707
5711
  if (!S) return [];
@@ -5709,7 +5713,7 @@ const nc = 240, ji = ({
5709
5713
  return Array.isArray(L) ? L.map((R) => String(R.value)) : [];
5710
5714
  },
5711
5715
  [l, c]
5712
- ), b = j(
5716
+ ), b = P(
5713
5717
  (x, S) => {
5714
5718
  const L = l[x];
5715
5719
  if (!L || !uc.includes(L.type)) return;
@@ -5724,22 +5728,22 @@ const nc = 240, ji = ({
5724
5728
  );
5725
5729
  },
5726
5730
  [l, s, a]
5727
- ), D = j(
5731
+ ), D = P(
5728
5732
  (x, S) => {
5729
5733
  const L = g(x);
5730
5734
  b(x, L.includes(S) ? L.filter((R) => R !== S) : [...L, S]);
5731
5735
  },
5732
5736
  [g, b]
5733
- ), C = j(
5737
+ ), C = P(
5734
5738
  (x, S) => g(x).includes(S),
5735
5739
  [g]
5736
- ), I = j((x) => a(x), [a]), A = j(
5740
+ ), I = P((x) => a(x), [a]), z = P(
5737
5741
  (x) => {
5738
5742
  const S = l[x];
5739
5743
  return S ? c(S) : void 0;
5740
5744
  },
5741
5745
  [l, c]
5742
- ), M = j(
5746
+ ), A = P(
5743
5747
  (x, S) => {
5744
5748
  const L = l[x];
5745
5749
  if (L) {
@@ -5759,8 +5763,8 @@ const nc = 240, ji = ({
5759
5763
  clearAll: d,
5760
5764
  isActive: C,
5761
5765
  values: g,
5762
- getRaw: A,
5763
- setRaw: M,
5766
+ getRaw: z,
5767
+ setRaw: A,
5764
5768
  hasActiveFilter: f
5765
5769
  };
5766
5770
  }, Pr = "var(--sa-background-brand, #04254f)", hc = "var(--sa-text-brand, #031f43)", fc = {
@@ -5928,7 +5932,7 @@ const nc = 240, ji = ({
5928
5932
  controls: r
5929
5933
  }) => {
5930
5934
  const n = r.getRaw(t.key) ?? "", [o, i] = B(n), l = ln(o, t.debounceMs ?? 300);
5931
- return Y(() => {
5935
+ return Q(() => {
5932
5936
  const c = r.getRaw(t.key) ?? "";
5933
5937
  l !== c && r.setRaw(t.key, l || null);
5934
5938
  }, [l]), /* @__PURE__ */ u(h, { style: { display: "flex", flexDirection: "column", gap: 6, minWidth: 220 }, children: [
@@ -5980,7 +5984,7 @@ const nc = 240, ji = ({
5980
5984
  }
5981
5985
  }, xc = ({ children: t, borderRadius: r, height: n }) => {
5982
5986
  const o = le(null), [i, l] = B("100vh");
5983
- return Y(() => {
5987
+ return Q(() => {
5984
5988
  if (n) return;
5985
5989
  const c = () => {
5986
5990
  if (o.current) {
@@ -6175,29 +6179,29 @@ const nc = 240, ji = ({
6175
6179
  }
6176
6180
  );
6177
6181
  }, Dc = ({ filter: t, columnTitle: r }) => {
6178
- const [n, o] = B(!1), i = le(null), l = le(null), c = le(null), [s, a] = B(""), [d, f] = B({ top: 0, left: 0 }), p = t.selectedValues, g = Ee(() => s ? t.options.filter(
6182
+ const [n, o] = B(!1), i = le(null), l = le(null), c = le(null), [s, a] = B(""), [d, f] = B({ top: 0, left: 0 }), p = t.selectedValues, g = Fe(() => s ? t.options.filter(
6179
6183
  (C) => C.label.toLowerCase().includes(s.toLowerCase())
6180
6184
  ) : t.options, [t.options, s]);
6181
- Y(() => {
6185
+ Q(() => {
6182
6186
  if (n && l.current) {
6183
- const C = l.current.getBoundingClientRect(), I = 280, A = {
6187
+ const C = l.current.getBoundingClientRect(), I = 280, z = {
6184
6188
  top: C.bottom + 8
6185
6189
  };
6186
- t.position === "left" || C.left + I > window.innerWidth ? A.right = window.innerWidth - C.right : A.left = C.left, f(A);
6190
+ t.position === "left" || C.left + I > window.innerWidth ? z.right = window.innerWidth - C.right : z.left = C.left, f(z);
6187
6191
  }
6188
- }, [n, t.position]), Y(() => {
6192
+ }, [n, t.position]), Q(() => {
6189
6193
  n && c.current ? setTimeout(() => {
6190
6194
  var C;
6191
6195
  return (C = c.current) == null ? void 0 : C.focus();
6192
6196
  }, 50) : a("");
6193
- }, [n]), Y(() => {
6197
+ }, [n]), Q(() => {
6194
6198
  const C = (I) => {
6195
6199
  i.current && !i.current.contains(I.target) && l.current && !l.current.contains(I.target) && o(!1);
6196
6200
  };
6197
6201
  return n && document.addEventListener("mousedown", C), () => document.removeEventListener("mousedown", C);
6198
6202
  }, [n]);
6199
6203
  const b = (C) => {
6200
- const I = p.includes(C) ? p.filter((A) => A !== C) : [...p, C];
6204
+ const I = p.includes(C) ? p.filter((z) => z !== C) : [...p, C];
6201
6205
  t.onFilterChange(I);
6202
6206
  }, D = () => t.onFilterChange([]);
6203
6207
  return /* @__PURE__ */ u(h, { direction: "column", style: { position: "relative" }, children: [
@@ -6213,7 +6217,7 @@ const nc = 240, ji = ({
6213
6217
  },
6214
6218
  onClick: (C) => {
6215
6219
  var I;
6216
- C.stopPropagation(), n || (I = t.onOpen) == null || I.call(t), o((A) => !A);
6220
+ C.stopPropagation(), n || (I = t.onOpen) == null || I.call(t), o((z) => !z);
6217
6221
  },
6218
6222
  children: /* @__PURE__ */ e(
6219
6223
  F,
@@ -6544,81 +6548,81 @@ const nc = 240, ji = ({
6544
6548
  actionsOrder: D = ["detail", "update", "delete", "custom"],
6545
6549
  customEmptyState: C,
6546
6550
  enableColumnResize: I = !1,
6547
- defaultColumnWidths: A,
6548
- onColumnWidthsChange: M,
6551
+ defaultColumnWidths: z,
6552
+ onColumnWidthsChange: A,
6549
6553
  defaultMinColumnWidth: x = 60,
6550
6554
  sort: S,
6551
6555
  defaultSort: L,
6552
6556
  onSortChange: R,
6553
6557
  showActionDivider: k = !1
6554
6558
  }) => {
6555
- const z = S !== void 0, [G, O] = B(
6559
+ const M = S !== void 0, [G, O] = B(
6556
6560
  L ?? null
6557
- ), H = z ? S ?? null : G, N = (T) => {
6561
+ ), H = M ? S ?? null : G, N = (T) => {
6558
6562
  if (T.sortKey) return T.sortKey;
6559
6563
  if (typeof T.accessor == "string") return T.accessor;
6560
6564
  }, Z = (T) => {
6561
6565
  const X = N(T);
6562
6566
  if (!X) return;
6563
- let U;
6564
- !H || H.key !== X ? U = { key: X, direction: "asc" } : H.direction === "asc" ? U = { key: X, direction: "desc" } : U = null, z || O(U), R == null || R(U);
6565
- }, re = [n, o, i].filter((T) => T !== void 0).length, J = !!b, K = !!n || !!o || !!i || J, $ = "var(--sa-border-subtle, #0b120e24)", me = `1px solid ${$}`, fe = `inset 1px 0 0 ${$}`, Re = `inset -1px 0 0 ${$}`, Qe = re === 3 ? J ? "178px" : "140px" : re === 2 ? J ? "140px" : "102px" : re === 1 ? J ? "112px" : "74px" : J ? "74px" : "", Fe = (T, X) => {
6567
+ let q;
6568
+ !H || H.key !== X ? q = { key: X, direction: "asc" } : H.direction === "asc" ? q = { key: X, direction: "desc" } : q = null, M || O(q), R == null || R(q);
6569
+ }, re = [n, o, i].filter((T) => T !== void 0).length, J = !!b, me = !!n || !!o || !!i || J, j = "var(--sa-border-subtle, #0b120e24)", K = `1px solid ${j}`, se = `inset 1px 0 0 ${j}`, ke = `inset -1px 0 0 ${j}`, Be = re === 3 ? J ? "178px" : "140px" : re === 2 ? J ? "140px" : "102px" : re === 1 ? J ? "112px" : "74px" : J ? "74px" : "", Le = (T, X) => {
6566
6570
  if (!X) return T;
6567
6571
  if (typeof X == "function") return X(T);
6568
6572
  if (typeof X == "string") return T[X];
6569
6573
  }, [xe, ve] = B(!1);
6570
- Y(() => {
6574
+ Q(() => {
6571
6575
  if (!(f != null && f.current)) return;
6572
6576
  const T = f.current;
6573
6577
  ve(T.scrollHeight > T.clientHeight);
6574
6578
  }, [r, f]);
6575
- const Be = le(null), [Ke, $e] = B([]), [ae, ue] = B(
6576
- () => A ?? {}
6579
+ const He = le(null), [Ke, _e] = B([]), [de, he] = B(
6580
+ () => z ?? {}
6577
6581
  ), ye = le(null);
6578
6582
  mt(() => {
6579
- if (!p || !Be.current) {
6580
- $e([]);
6583
+ if (!p || !He.current) {
6584
+ _e([]);
6581
6585
  return;
6582
6586
  }
6583
6587
  const T = Array.from(
6584
- Be.current.querySelectorAll("thead tr th")
6588
+ He.current.querySelectorAll("thead tr th")
6585
6589
  ), X = [];
6586
- let U = 0;
6587
- T.forEach((he, Le) => {
6588
- X[Le] = U, Le < p && (U += he.offsetWidth);
6589
- }), $e(X);
6590
- }, [p, t, r, ae]);
6590
+ let q = 0;
6591
+ T.forEach((fe, We) => {
6592
+ X[We] = q, We < p && (q += fe.offsetWidth);
6593
+ }), _e(X);
6594
+ }, [p, t, r, de]);
6591
6595
  const De = (T) => {
6592
6596
  g && g(T < p ? T : T + 1);
6593
6597
  }, Me = (T, X) => {
6594
- const U = ae[T];
6595
- if (U !== void 0) {
6596
- const he = `${U}px`;
6597
- return { width: he, minWidth: he, maxWidth: he };
6598
+ const q = de[T];
6599
+ if (q !== void 0) {
6600
+ const fe = `${q}px`;
6601
+ return { width: fe, minWidth: fe, maxWidth: fe };
6598
6602
  }
6599
6603
  return X ? { width: X } : {};
6600
6604
  }, st = (T) => I && (T.resizable ?? !0), at = (T, X) => {
6601
6605
  T.preventDefault(), T.stopPropagation();
6602
- const U = T.currentTarget.closest("th");
6603
- if (!U) return;
6604
- const he = Math.round(U.getBoundingClientRect().width);
6605
- ye.current = { colIndex: X, startX: T.clientX, startWidth: he };
6606
- const Le = document.body.style.userSelect, Ce = document.body.style.cursor;
6606
+ const q = T.currentTarget.closest("th");
6607
+ if (!q) return;
6608
+ const fe = Math.round(q.getBoundingClientRect().width);
6609
+ ye.current = { colIndex: X, startX: T.clientX, startWidth: fe };
6610
+ const We = document.body.style.userSelect, Ce = document.body.style.cursor;
6607
6611
  document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
6608
- const Ve = (et) => {
6609
- var We;
6612
+ const Ne = (et) => {
6613
+ var Re;
6610
6614
  const Ae = ye.current;
6611
6615
  if (!Ae) return;
6612
- const St = ((We = t[Ae.colIndex]) == null ? void 0 : We.minWidth) ?? x, xt = Math.max(St, Ae.startWidth + (et.clientX - Ae.startX));
6613
- ue(
6614
- (He) => He[Ae.colIndex] === xt ? He : { ...He, [Ae.colIndex]: xt }
6616
+ const St = ((Re = t[Ae.colIndex]) == null ? void 0 : Re.minWidth) ?? x, xt = Math.max(St, Ae.startWidth + (et.clientX - Ae.startX));
6617
+ he(
6618
+ (Te) => Te[Ae.colIndex] === xt ? Te : { ...Te, [Ae.colIndex]: xt }
6615
6619
  );
6616
6620
  }, dt = () => {
6617
- document.removeEventListener("mousemove", Ve), document.removeEventListener("mouseup", dt), document.body.style.userSelect = Le, document.body.style.cursor = Ce, ye.current = null, M && ue((et) => (M(et), et));
6621
+ document.removeEventListener("mousemove", Ne), document.removeEventListener("mouseup", dt), document.body.style.userSelect = We, document.body.style.cursor = Ce, ye.current = null, A && he((et) => (A(et), et));
6618
6622
  };
6619
- document.addEventListener("mousemove", Ve), document.addEventListener("mouseup", dt);
6623
+ document.addEventListener("mousemove", Ne), document.addEventListener("mouseup", dt);
6620
6624
  };
6621
- return /* @__PURE__ */ e("div", { ref: Be, children: /* @__PURE__ */ u(ur, { fullWidth: !0, children: [
6625
+ return /* @__PURE__ */ e("div", { ref: He, children: /* @__PURE__ */ u(ur, { fullWidth: !0, children: [
6622
6626
  /* @__PURE__ */ e(
6623
6627
  Ci,
6624
6628
  {
@@ -6629,14 +6633,14 @@ const nc = 240, ji = ({
6629
6633
  children: /* @__PURE__ */ u(nt, { children: [
6630
6634
  t.map((T, X) => {
6631
6635
  var zt, ut;
6632
- const U = p > 0 && X < p, he = Ke[X] ?? 0, Le = st(T), Ve = X === t.length - 1 && K && k, dt = N(T), et = !!T.sortable && !!dt, Ae = et && (H == null ? void 0 : H.key) === dt ? H.direction : null, St = T.title || ((zt = T.accessor) == null ? void 0 : zt.toString()) || "", xt = (ut = T.headerTooltip) != null && ut.showIcon ? /* @__PURE__ */ e(
6636
+ const q = p > 0 && X < p, fe = Ke[X] ?? 0, We = st(T), Ne = X === t.length - 1 && me && k, dt = N(T), et = !!T.sortable && !!dt, Ae = et && (H == null ? void 0 : H.key) === dt ? H.direction : null, St = T.title || ((zt = T.accessor) == null ? void 0 : zt.toString()) || "", xt = (ut = T.headerTooltip) != null && ut.showIcon ? /* @__PURE__ */ e(
6633
6637
  F,
6634
6638
  {
6635
6639
  name: "InfoCircle",
6636
6640
  size: "xs",
6637
6641
  style: { flexShrink: 0, color: "var(--sa-icon-subtle, #8c8f97)", opacity: 0.75 }
6638
6642
  }
6639
- ) : null, We = /* @__PURE__ */ e("span", { style: { flex: 1, minWidth: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: St }), He = et ? /* @__PURE__ */ u(
6643
+ ) : null, Re = /* @__PURE__ */ e("span", { style: { flex: 1, minWidth: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: St }), Te = et ? /* @__PURE__ */ u(
6640
6644
  "button",
6641
6645
  {
6642
6646
  type: "button",
@@ -6658,13 +6662,13 @@ const nc = 240, ji = ({
6658
6662
  textAlign: T.textAlign === "text-right" ? "right" : T.textAlign === "text-center" ? "center" : "left"
6659
6663
  },
6660
6664
  children: [
6661
- We,
6665
+ Re,
6662
6666
  xt,
6663
6667
  /* @__PURE__ */ e(kc, { direction: Ae })
6664
6668
  ]
6665
6669
  }
6666
6670
  ) : /* @__PURE__ */ u("span", { style: { flex: 1, minWidth: 0, display: "flex", alignItems: "center", gap: 4 }, children: [
6667
- We,
6671
+ Re,
6668
6672
  xt
6669
6673
  ] });
6670
6674
  return /* @__PURE__ */ u(
@@ -6673,12 +6677,12 @@ const nc = 240, ji = ({
6673
6677
  style: {
6674
6678
  position: "sticky",
6675
6679
  top: 0,
6676
- left: U ? he : void 0,
6677
- zIndex: U ? 4 : 2,
6680
+ left: q ? fe : void 0,
6681
+ zIndex: q ? 4 : 2,
6678
6682
  paddingLeft: X === 0 ? "12px" : "",
6679
- borderRight: d && !Ve && !U ? me : void 0,
6680
- borderBottom: d ? me : void 0,
6681
- boxShadow: d && U ? Re : void 0,
6683
+ borderRight: d && !Ne && !q ? K : void 0,
6684
+ borderBottom: d ? K : void 0,
6685
+ boxShadow: d && q ? ke : void 0,
6682
6686
  backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
6683
6687
  textAlign: T.textAlign === "text-right" ? "right" : T.textAlign === "text-center" ? "center" : "left",
6684
6688
  ...Me(X, T.width)
@@ -6695,7 +6699,7 @@ const nc = 240, ji = ({
6695
6699
  minWidth: 0
6696
6700
  },
6697
6701
  children: [
6698
- T.headerTooltip ? /* @__PURE__ */ e(Oe, { label: T.headerTooltip.content, position: "bottom", children: He }) : He,
6702
+ T.headerTooltip ? /* @__PURE__ */ e(Ve, { label: T.headerTooltip.content, position: "bottom", children: Te }) : Te,
6699
6703
  T.filter && /* @__PURE__ */ e(
6700
6704
  Dc,
6701
6705
  {
@@ -6707,7 +6711,7 @@ const nc = 240, ji = ({
6707
6711
  "button",
6708
6712
  {
6709
6713
  onClick: () => De(X),
6710
- title: U ? "Unfreeze column" : "Freeze column",
6714
+ title: q ? "Unfreeze column" : "Freeze column",
6711
6715
  style: {
6712
6716
  background: "none",
6713
6717
  border: "none",
@@ -6716,17 +6720,17 @@ const nc = 240, ji = ({
6716
6720
  display: "flex",
6717
6721
  alignItems: "center",
6718
6722
  flexShrink: 0,
6719
- color: U ? "var(--sa-background-brand, #04254f)" : "var(--sa-text-subtle, #8c8f97)",
6720
- opacity: U ? 1 : 0.45,
6723
+ color: q ? "var(--sa-background-brand, #04254f)" : "var(--sa-text-subtle, #8c8f97)",
6724
+ opacity: q ? 1 : 0.45,
6721
6725
  transition: "opacity 0.15s"
6722
6726
  },
6723
- children: /* @__PURE__ */ e(Sc, { frozen: U })
6727
+ children: /* @__PURE__ */ e(Sc, { frozen: q })
6724
6728
  }
6725
6729
  )
6726
6730
  ]
6727
6731
  }
6728
6732
  ),
6729
- Le && /* @__PURE__ */ e(
6733
+ We && /* @__PURE__ */ e(
6730
6734
  "div",
6731
6735
  {
6732
6736
  onMouseDown: (Et) => at(Et, X),
@@ -6752,7 +6756,7 @@ const nc = 240, ji = ({
6752
6756
  `table-head-${X}`
6753
6757
  );
6754
6758
  }),
6755
- K ? /* @__PURE__ */ e(
6759
+ me ? /* @__PURE__ */ e(
6756
6760
  Tt,
6757
6761
  {
6758
6762
  style: {
@@ -6761,21 +6765,21 @@ const nc = 240, ji = ({
6761
6765
  top: 0,
6762
6766
  right: 0,
6763
6767
  zIndex: 3,
6764
- borderBottom: d ? me : void 0,
6765
- boxShadow: d && k ? fe : void 0
6768
+ borderBottom: d ? K : void 0,
6769
+ boxShadow: d && k ? se : void 0
6766
6770
  }
6767
6771
  }
6768
6772
  ) : null
6769
6773
  ] })
6770
6774
  }
6771
6775
  ),
6772
- /* @__PURE__ */ e(Xr, { children: l ? /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e(Ne, { colSpan: t.length + 1, children: /* @__PURE__ */ u(h, { direction: "column", style: { gap: "16px" }, children: [
6776
+ /* @__PURE__ */ e(Xr, { children: l ? /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e($e, { colSpan: t.length + 1, children: /* @__PURE__ */ u(h, { direction: "column", style: { gap: "16px" }, children: [
6773
6777
  /* @__PURE__ */ e(Ct, { variant: "list" }),
6774
6778
  /* @__PURE__ */ e(Ct, { variant: "list" }),
6775
6779
  /* @__PURE__ */ e(Ct, { variant: "list" }),
6776
6780
  /* @__PURE__ */ e(Ct, { variant: "list" }),
6777
6781
  /* @__PURE__ */ e(Ct, { variant: "list" })
6778
- ] }) }) }) : !(r != null && r.length) && C ? /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e(Ne, { colSpan: t.length + 1, children: C }) }) : r == null ? void 0 : r.map((T, X) => /* @__PURE__ */ u(
6782
+ ] }) }) }) : !(r != null && r.length) && C ? /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e($e, { colSpan: t.length + 1, children: C }) }) : r == null ? void 0 : r.map((T, X) => /* @__PURE__ */ u(
6779
6783
  nt,
6780
6784
  {
6781
6785
  style: {
@@ -6783,66 +6787,66 @@ const nc = 240, ji = ({
6783
6787
  padding: 0,
6784
6788
  borderBottom: X === r.length - 1 && xe ? void 0 : "1px solid var(--sa-border-subtle, #0b120e24)"
6785
6789
  },
6786
- onMouseEnter: (U) => {
6787
- const he = U.currentTarget;
6788
- he.style.backgroundColor = ii, Array.from(he.querySelectorAll("td")).forEach((Le) => {
6789
- Le.style.position === "sticky" && (Le.style.backgroundColor = ii);
6790
+ onMouseEnter: (q) => {
6791
+ const fe = q.currentTarget;
6792
+ fe.style.backgroundColor = ii, Array.from(fe.querySelectorAll("td")).forEach((We) => {
6793
+ We.style.position === "sticky" && (We.style.backgroundColor = ii);
6790
6794
  });
6791
6795
  },
6792
- onMouseLeave: (U) => {
6793
- const he = U.currentTarget;
6794
- he.style.backgroundColor = "", Array.from(he.querySelectorAll("td")).forEach((Le) => {
6795
- Le.style.position === "sticky" && (Le.style.backgroundColor = jr);
6796
+ onMouseLeave: (q) => {
6797
+ const fe = q.currentTarget;
6798
+ fe.style.backgroundColor = "", Array.from(fe.querySelectorAll("td")).forEach((We) => {
6799
+ We.style.position === "sticky" && (We.style.backgroundColor = jr);
6796
6800
  });
6797
6801
  },
6798
6802
  children: [
6799
- t.map((U, he) => {
6800
- const Le = U.render ? U.render(T, X, r) : Fe(T, U.accessor), Ce = p > 0 && he < p, Ve = Ke[he] ?? 0, dt = ae[he] !== void 0, et = Ce && he === p - 1;
6803
+ t.map((q, fe) => {
6804
+ const We = q.render ? q.render(T, X, r) : Le(T, q.accessor), Ce = p > 0 && fe < p, Ne = Ke[fe] ?? 0, dt = de[fe] !== void 0, et = Ce && fe === p - 1;
6801
6805
  return /* @__PURE__ */ e(
6802
- Ne,
6806
+ $e,
6803
6807
  {
6804
6808
  style: {
6805
6809
  position: Ce ? "sticky" : void 0,
6806
- left: Ce ? Ve : void 0,
6810
+ left: Ce ? Ne : void 0,
6807
6811
  zIndex: Ce ? 1 : void 0,
6808
6812
  backgroundColor: Ce ? jr : void 0,
6809
6813
  transition: Ce ? "background-color 0.3s ease" : void 0,
6810
- paddingLeft: he === 0 ? "12px" : "",
6814
+ paddingLeft: fe === 0 ? "12px" : "",
6811
6815
  whiteSpace: "nowrap",
6812
6816
  overflow: dt ? "hidden" : void 0,
6813
- borderLeft: U.showBorderLeft ? me : void 0,
6814
- borderRight: U.showBorderRight ? me : void 0,
6815
- boxShadow: et ? Re : void 0,
6816
- textAlign: U.textAlign === "text-right" ? "right" : U.textAlign === "text-center" ? "center" : "left",
6817
- ...Me(he, U.width)
6817
+ borderLeft: q.showBorderLeft ? K : void 0,
6818
+ borderRight: q.showBorderRight ? K : void 0,
6819
+ boxShadow: et ? ke : void 0,
6820
+ textAlign: q.textAlign === "text-right" ? "right" : q.textAlign === "text-center" ? "center" : "left",
6821
+ ...Me(fe, q.width)
6818
6822
  },
6819
- children: typeof Le == "string" ? /* @__PURE__ */ e(
6823
+ children: typeof We == "string" ? /* @__PURE__ */ e(
6820
6824
  w,
6821
6825
  {
6822
6826
  style: {
6823
6827
  whiteSpace: "nowrap",
6824
6828
  overflow: "hidden",
6825
6829
  textOverflow: "ellipsis",
6826
- textAlign: U.textAlign === "text-right" ? "right" : U.textAlign === "text-center" ? "center" : "left"
6830
+ textAlign: q.textAlign === "text-right" ? "right" : q.textAlign === "text-center" ? "center" : "left"
6827
6831
  },
6828
- children: Le
6832
+ children: We
6829
6833
  }
6830
- ) : Le
6834
+ ) : We
6831
6835
  },
6832
- `row-${X}-col-${he}`
6836
+ `row-${X}-col-${fe}`
6833
6837
  );
6834
6838
  }),
6835
- K ? /* @__PURE__ */ e(Ne, { style: {
6836
- width: Qe,
6839
+ me ? /* @__PURE__ */ e($e, { style: {
6840
+ width: Be,
6837
6841
  position: "sticky",
6838
6842
  right: 0,
6839
6843
  zIndex: 1,
6840
6844
  backgroundColor: jr,
6841
- boxShadow: k ? fe : void 0,
6845
+ boxShadow: k ? se : void 0,
6842
6846
  transition: "background-color 0.3s ease"
6843
- }, children: /* @__PURE__ */ e(pe, { direction: "row", align: "center", justify: "center", gap: "sm", children: D.map((U) => {
6844
- const he = X === r.length - 1 ? "top" : "bottom";
6845
- return U === "detail" && n && (a == null ? void 0 : a(T)) !== !1 ? /* @__PURE__ */ e(Oe, { label: "Detail", position: he, children: /* @__PURE__ */ e(
6847
+ }, children: /* @__PURE__ */ e(pe, { direction: "row", align: "center", justify: "center", gap: "sm", children: D.map((q) => {
6848
+ const fe = X === r.length - 1 ? "top" : "bottom";
6849
+ return q === "detail" && n && (a == null ? void 0 : a(T)) !== !1 ? /* @__PURE__ */ e(Ve, { label: "Detail", position: fe, children: /* @__PURE__ */ e(
6846
6850
  V,
6847
6851
  {
6848
6852
  size: "xs",
@@ -6851,7 +6855,7 @@ const nc = 240, ji = ({
6851
6855
  onClick: () => n(T.id, T),
6852
6856
  iconLeft: /* @__PURE__ */ e(F, { name: "DocumentClean", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
6853
6857
  }
6854
- ) }, "detail") : U === "update" && o && (s == null ? void 0 : s(T)) !== !1 ? /* @__PURE__ */ e(Oe, { label: "Update", position: he, children: /* @__PURE__ */ e(
6858
+ ) }, "detail") : q === "update" && o && (s == null ? void 0 : s(T)) !== !1 ? /* @__PURE__ */ e(Ve, { label: "Update", position: fe, children: /* @__PURE__ */ e(
6855
6859
  V,
6856
6860
  {
6857
6861
  size: "xs",
@@ -6860,7 +6864,7 @@ const nc = 240, ji = ({
6860
6864
  onClick: () => o(T),
6861
6865
  iconLeft: /* @__PURE__ */ e(F, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
6862
6866
  }
6863
- ) }, "update") : U === "delete" && i && (c == null ? void 0 : c(T)) !== !1 ? /* @__PURE__ */ e(Oe, { label: "Delete", position: he, children: /* @__PURE__ */ e(
6867
+ ) }, "update") : q === "delete" && i && (c == null ? void 0 : c(T)) !== !1 ? /* @__PURE__ */ e(Ve, { label: "Delete", position: fe, children: /* @__PURE__ */ e(
6864
6868
  V,
6865
6869
  {
6866
6870
  size: "xs",
@@ -6869,7 +6873,7 @@ const nc = 240, ji = ({
6869
6873
  onClick: () => i(T.id, T),
6870
6874
  iconLeft: /* @__PURE__ */ e(F, { name: "Trash1", size: "sm", style: { color: "var(--sa-color-error-600, #c9184a)" } })
6871
6875
  }
6872
- ) }, "delete") : U === "custom" ? /* @__PURE__ */ e(Dt.Fragment, { children: b == null ? void 0 : b(T) }, "custom") : null;
6876
+ ) }, "delete") : q === "custom" ? /* @__PURE__ */ e(Dt.Fragment, { children: b == null ? void 0 : b(T) }, "custom") : null;
6873
6877
  }) }) }) : null
6874
6878
  ]
6875
6879
  },
@@ -7010,7 +7014,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7010
7014
  }) => {
7011
7015
  const [p, g] = B(!1), b = le(null), D = le(null), [C, I] = B(
7012
7016
  { top: 0, left: 0 }
7013
- ), A = j(() => {
7017
+ ), z = P(() => {
7014
7018
  var H;
7015
7019
  const x = b.current;
7016
7020
  if (!x) return;
@@ -7019,24 +7023,24 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7019
7023
  g(!1);
7020
7024
  return;
7021
7025
  }
7022
- const k = Math.min(window.innerWidth - 8, R ? R.right : window.innerWidth), z = ((H = D.current) == null ? void 0 : H.offsetWidth) || li, G = R ? R.left : 8, O = Math.max(G, Math.min(S.left, k - z));
7026
+ const k = Math.min(window.innerWidth - 8, R ? R.right : window.innerWidth), M = ((H = D.current) == null ? void 0 : H.offsetWidth) || li, G = R ? R.left : 8, O = Math.max(G, Math.min(S.left, k - M));
7023
7027
  I({ top: S.bottom + 6, left: O });
7024
7028
  }, []);
7025
- Y(() => {
7029
+ Q(() => {
7026
7030
  if (!p) return;
7027
- A();
7028
- const x = () => A();
7031
+ z();
7032
+ const x = () => z();
7029
7033
  return window.addEventListener("scroll", x, !0), window.addEventListener("resize", x), () => {
7030
7034
  window.removeEventListener("scroll", x, !0), window.removeEventListener("resize", x);
7031
7035
  };
7032
- }, [p, A]), Y(() => {
7036
+ }, [p, z]), Q(() => {
7033
7037
  if (!p) return;
7034
7038
  const x = (S) => {
7035
7039
  D.current && !D.current.contains(S.target) && b.current && !b.current.contains(S.target) && g(!1);
7036
7040
  };
7037
7041
  return document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
7038
7042
  }, [p]);
7039
- const M = (x) => {
7043
+ const A = (x) => {
7040
7044
  x(), g(!1);
7041
7045
  };
7042
7046
  return /* @__PURE__ */ u(ne, { children: [
@@ -7110,7 +7114,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7110
7114
  icon: "ChevronUp",
7111
7115
  label: "Ascending",
7112
7116
  active: o === "asc",
7113
- onClick: () => M(() => o === "asc" ? c() : l("asc"))
7117
+ onClick: () => A(() => o === "asc" ? c() : l("asc"))
7114
7118
  }
7115
7119
  ),
7116
7120
  /* @__PURE__ */ e(
@@ -7119,7 +7123,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7119
7123
  icon: "ChevronDown",
7120
7124
  label: "Descending",
7121
7125
  active: o === "desc",
7122
- onClick: () => M(() => o === "desc" ? c() : l("desc"))
7126
+ onClick: () => A(() => o === "desc" ? c() : l("desc"))
7123
7127
  }
7124
7128
  ),
7125
7129
  /* @__PURE__ */ e("div", { style: { borderTop: or, margin: "4px 0" } })
@@ -7130,7 +7134,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7130
7134
  icon: "Pin1",
7131
7135
  label: i ? "Unfreeze" : "Freeze",
7132
7136
  active: i,
7133
- onClick: () => M(s)
7137
+ onClick: () => A(s)
7134
7138
  }
7135
7139
  ),
7136
7140
  n && /* @__PURE__ */ e(
@@ -7139,7 +7143,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7139
7143
  icon: "EyeClosed",
7140
7144
  label: "Hide column",
7141
7145
  danger: !0,
7142
- onClick: () => M(a)
7146
+ onClick: () => A(a)
7143
7147
  }
7144
7148
  )
7145
7149
  ]
@@ -7241,100 +7245,100 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7241
7245
  onSortChange: D,
7242
7246
  height: C,
7243
7247
  mobileLayout: I = "cards",
7244
- mobileBreakpoint: A = "md",
7245
- groupSeparator: M,
7248
+ mobileBreakpoint: z = "md",
7249
+ groupSeparator: A,
7246
7250
  summary: x,
7247
7251
  footer: S,
7248
7252
  stickyFooter: L = !1,
7249
7253
  emptyState: R,
7250
7254
  loading: k = !1,
7251
- loadingRows: z = 8,
7255
+ loadingRows: M = 8,
7252
7256
  rowActions: G,
7253
7257
  rowActionsMode: O = "auto",
7254
7258
  selectable: H = !1,
7255
7259
  selectedKeys: N,
7256
7260
  defaultSelectedKeys: Z,
7257
- onSelectionChange: q,
7261
+ onSelectionChange: Y,
7258
7262
  isRowSelectable: re
7259
7263
  }) => {
7260
7264
  $c();
7261
- const K = !Ie(A) && I !== "scroll", $ = !!(G != null && G.length), me = Ac(), fe = $ && (O === "column" || O === "auto" && me), Re = Math.min((G == null ? void 0 : G.length) ?? 0, Zr + 1), Qe = Re > Zr ? 1 : Re, Fe = cr * 2 + Qe * Nc + Math.max(0, Qe - 1) * Gr, xe = fe ? Fe : 1, [ve, Be] = B(null);
7262
- Y(() => {
7265
+ const me = !Ie(z) && I !== "scroll", j = !!(G != null && G.length), K = Ac(), se = j && (O === "column" || O === "auto" && K), ke = Math.min((G == null ? void 0 : G.length) ?? 0, Zr + 1), Be = ke > Zr ? 1 : ke, Le = cr * 2 + Be * Nc + Math.max(0, Be - 1) * Gr, xe = se ? Le : 1, [ve, He] = B(null);
7266
+ Q(() => {
7263
7267
  if (!ve) return;
7264
- const y = () => Be(null), v = setTimeout(() => document.addEventListener("click", y), 0);
7268
+ const y = () => He(null), v = setTimeout(() => document.addEventListener("click", y), 0);
7265
7269
  return () => {
7266
7270
  clearTimeout(v), document.removeEventListener("click", y);
7267
7271
  };
7268
7272
  }, [ve]);
7269
- const [Ke, $e] = B(
7273
+ const [Ke, _e] = B(
7270
7274
  () => /* @__PURE__ */ new Set()
7271
- ), ae = a !== void 0, [ue, ye] = B({}), De = a ?? ue, Me = (y) => {
7272
- d == null || d(y), ae || ye(y);
7275
+ ), de = a !== void 0, [he, ye] = B({}), De = a ?? he, Me = (y) => {
7276
+ d == null || d(y), de || ye(y);
7273
7277
  }, st = g !== void 0, [at, T] = B(
7274
7278
  b ?? null
7275
- ), X = st ? g ?? null : at, U = !D, he = (y) => {
7279
+ ), X = st ? g ?? null : at, q = !D, fe = (y) => {
7276
7280
  D == null || D(y), st || T(y);
7277
- }, { headerGroups: Le, leafColumns: Ce, hasGroups: Ve } = Ee(() => {
7281
+ }, { headerGroups: We, leafColumns: Ce, hasGroups: Ne } = Fe(() => {
7278
7282
  var oe;
7279
- const y = new Set(De.hidden ?? []), v = (ie, ke) => ie.key ?? (typeof ie.accessor == "string" ? ie.accessor : `col-${ke}`), W = t.map((ie, ke) => {
7283
+ const y = new Set(De.hidden ?? []), v = (ie, Se) => ie.key ?? (typeof ie.accessor == "string" ? ie.accessor : `col-${Se}`), W = t.map((ie, Se) => {
7280
7284
  var lt;
7281
7285
  if ((lt = ie.children) != null && lt.length) {
7282
- const Pt = ie.children.map((ht, Vt) => ({ col: ht, key: v(ht, `${ke}-${Vt}`) })).filter((ht) => !y.has(ht.key));
7283
- return { col: ie, key: ie.key ?? `group-${ke}`, isGroup: !0, leaves: Pt };
7286
+ const Pt = ie.children.map((ht, Vt) => ({ col: ht, key: v(ht, `${Se}-${Vt}`) })).filter((ht) => !y.has(ht.key));
7287
+ return { col: ie, key: ie.key ?? `group-${Se}`, isGroup: !0, leaves: Pt };
7284
7288
  }
7285
- const Se = { col: ie, key: v(ie, `${ke}`) };
7289
+ const Ee = { col: ie, key: v(ie, `${Se}`) };
7286
7290
  return {
7287
7291
  col: ie,
7288
- key: Se.key,
7292
+ key: Ee.key,
7289
7293
  isGroup: !1,
7290
- leaves: y.has(Se.key) ? [] : [Se]
7294
+ leaves: y.has(Ee.key) ? [] : [Ee]
7291
7295
  };
7292
- }).filter((ie) => ie.leaves.length > 0), _ = W.some((ie) => ie.isGroup);
7296
+ }).filter((ie) => ie.leaves.length > 0), $ = W.some((ie) => ie.isGroup);
7293
7297
  let ee = W.flatMap((ie) => ie.leaves);
7294
- if (!_ && ((oe = De.order) != null && oe.length)) {
7295
- const ie = new Map(De.order.map((ke, Se) => [ke, Se]));
7298
+ if (!$ && ((oe = De.order) != null && oe.length)) {
7299
+ const ie = new Map(De.order.map((Se, Ee) => [Se, Ee]));
7296
7300
  ee = [...ee].sort(
7297
- (ke, Se) => (ie.get(ke.key) ?? 1 / 0) - (ie.get(Se.key) ?? 1 / 0)
7301
+ (Se, Ee) => (ie.get(Se.key) ?? 1 / 0) - (ie.get(Ee.key) ?? 1 / 0)
7298
7302
  );
7299
7303
  }
7300
- return { headerGroups: W, leafColumns: ee, hasGroups: _ };
7301
- }, [t, De]), dt = Ee(
7304
+ return { headerGroups: W, leafColumns: ee, hasGroups: $ };
7305
+ }, [t, De]), dt = Fe(
7302
7306
  () => new Map(Ce.map((y, v) => [y.key, v])),
7303
7307
  [Ce]
7304
- ), et = !Ve && Ce.some((y) => (y.col.headerColSpan ?? 1) > 1), Ae = Ce.map((y) => y.key).join("|"), St = (y, v) => {
7308
+ ), et = !Ne && Ce.some((y) => (y.col.headerColSpan ?? 1) > 1), Ae = Ce.map((y) => y.key).join("|"), St = (y, v) => {
7305
7309
  const W = y.sortKey ?? (typeof y.accessor == "string" ? y.accessor : void 0);
7306
7310
  return W ? v[W] : void 0;
7307
- }, xt = (y) => y.sortable ?? (!!y.sortKey || typeof y.accessor == "string"), We = Ee(() => {
7308
- if (!U || !X) return r;
7311
+ }, xt = (y) => y.sortable ?? (!!y.sortKey || typeof y.accessor == "string"), Re = Fe(() => {
7312
+ if (!q || !X) return r;
7309
7313
  const y = Ce.find((W) => W.key === X.key);
7310
7314
  if (!y) return r;
7311
7315
  const v = X.direction === "asc" ? 1 : -1;
7312
7316
  return [...r].sort(
7313
- (W, _) => jc(St(y.col, W), St(y.col, _)) * v
7317
+ (W, $) => jc(St(y.col, W), St(y.col, $)) * v
7314
7318
  );
7315
- }, [r, U, X, Ce]), He = !Ve && !et, zt = !!s && He, [ut, Et] = vo(s ?? ""), Ft = zt ? ut : void 0, Lt = le(null), [_e, Ye] = B();
7319
+ }, [r, q, X, Ce]), Te = !Ne && !et, zt = !!s && Te, [ut, Et] = vo(s ?? ""), Ft = zt ? ut : void 0, Lt = le(null), [Pe, Ye] = B();
7316
7320
  mt(() => {
7317
7321
  Ye(void 0);
7318
7322
  }, [Ae]), mt(() => {
7319
- if (!He || _e || !Lt.current) return;
7323
+ if (!Te || Pe || !Lt.current) return;
7320
7324
  const y = Lt.current.querySelectorAll("th.sa-tl-leaf");
7321
7325
  Ye(Array.from(y).map((v) => v.offsetWidth));
7322
- }, [_e, He]);
7326
+ }, [Pe, Te]);
7323
7327
  const [Yt, Xt] = B(), [wr, Dr] = B(0);
7324
7328
  mt(() => {
7325
- if (!Ve || !Lt.current) return;
7329
+ if (!Ne || !Lt.current) return;
7326
7330
  const y = Lt.current.querySelector(":scope > tr");
7327
7331
  y && Dr(y.offsetHeight);
7328
- }, [Ve, Ae]);
7332
+ }, [Ne, Ae]);
7329
7333
  const It = (y, v) => {
7330
7334
  if ((Ft == null ? void 0 : Ft[v]) != null) return Ft[v];
7331
7335
  if (y.width != null) return y.width;
7332
- if ((_e == null ? void 0 : _e[v]) != null) return _e[v];
7333
- }, Jt = (y, v) => typeof y.width == "number" ? y.width : _e == null ? void 0 : _e[v], Wt = De.frozenKey && !Ve && !et ? Ce.findIndex((y) => y.key === De.frozenKey) : -1, E = (y) => y <= Wt, P = H ? Zt : 0, Q = (y) => {
7334
- const v = Yt ?? _e;
7335
- if (!v) return P;
7336
- let W = P;
7337
- for (let _ = 0; _ < y; _++) W += v[_] ?? 0;
7336
+ if ((Pe == null ? void 0 : Pe[v]) != null) return Pe[v];
7337
+ }, Jt = (y, v) => typeof y.width == "number" ? y.width : Pe == null ? void 0 : Pe[v], Wt = De.frozenKey && !Ne && !et ? Ce.findIndex((y) => y.key === De.frozenKey) : -1, E = (y) => y <= Wt, _ = H ? Zt : 0, U = (y) => {
7338
+ const v = Yt ?? Pe;
7339
+ if (!v) return _;
7340
+ let W = _;
7341
+ for (let $ = 0; $ < y; $++) W += v[$] ?? 0;
7338
7342
  return W;
7339
7343
  };
7340
7344
  mt(() => {
@@ -7350,15 +7354,15 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7350
7354
  (ie) => ie.getBoundingClientRect().width
7351
7355
  );
7352
7356
  Xt(
7353
- (ie) => ie && ie.length === oe.length && ie.every((ke, Se) => Math.abs(ke - oe[Se]) < 0.5) ? ie : oe
7357
+ (ie) => ie && ie.length === oe.length && ie.every((Se, Ee) => Math.abs(Se - oe[Ee]) < 0.5) ? ie : oe
7354
7358
  );
7355
- }, _ = new ResizeObserver(() => {
7359
+ }, $ = new ResizeObserver(() => {
7356
7360
  v || (v = requestAnimationFrame(W));
7357
7361
  });
7358
- return _.observe(y), y.querySelectorAll("th.sa-tl-leaf").forEach((ee) => _.observe(ee)), W(), () => {
7359
- v && cancelAnimationFrame(v), _.disconnect();
7362
+ return $.observe(y), y.querySelectorAll("th.sa-tl-leaf").forEach((ee) => $.observe(ee)), W(), () => {
7363
+ v && cancelAnimationFrame(v), $.disconnect();
7360
7364
  };
7361
- }, [Ae, Wt, H, _e, Ft]);
7365
+ }, [Ae, Wt, H, Pe, Ft]);
7362
7366
  const ce = le(null), [ge, ze] = B("100vh");
7363
7367
  mt(() => {
7364
7368
  if (C !== void 0) return;
@@ -7372,52 +7376,52 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7372
7376
  };
7373
7377
  return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
7374
7378
  }, [C]);
7375
- const de = (y, v) => n ? n(y, v) : v, tt = N !== void 0, [Pe, ot] = B(
7379
+ const ue = (y, v) => n ? n(y, v) : v, tt = N !== void 0, [je, ot] = B(
7376
7380
  () => new Set(Z ?? [])
7377
- ), Xe = Ee(
7378
- () => tt ? new Set(N) : Pe,
7379
- [tt, N, Pe]
7381
+ ), Xe = Fe(
7382
+ () => tt ? new Set(N) : je,
7383
+ [tt, N, je]
7380
7384
  );
7381
- Y(() => {
7385
+ Q(() => {
7382
7386
  H && !n && process.env.NODE_ENV !== "production" && console.warn(
7383
7387
  "[@starasia/admin] TableLayout: `selectable` tanpa `getRowKey` — key default (index) membuat seleksi menempel ke POSISI baris, bukan datanya. Beri `getRowKey` yang stabil (mis. r => r.id)."
7384
7388
  );
7385
7389
  }, [H, !n]);
7386
7390
  const ct = (y) => {
7387
- if (tt || ot(y), q) {
7388
- const v = We.filter((W, _) => y.has(de(W, _)));
7389
- q(Array.from(y), v);
7391
+ if (tt || ot(y), Y) {
7392
+ const v = Re.filter((W, $) => y.has(ue(W, $)));
7393
+ Y(Array.from(y), v);
7390
7394
  }
7391
7395
  }, Bt = (y, v) => H && (re ? re(y, v) : !0), vt = (y) => {
7392
7396
  const v = new Set(Xe);
7393
7397
  v.has(y) ? v.delete(y) : v.add(y), ct(v);
7394
- }, Ot = Ee(
7395
- () => H ? We.map((y, v) => ({ row: y, i: v, key: de(y, v) })).filter(
7398
+ }, Ot = Fe(
7399
+ () => H ? Re.map((y, v) => ({ row: y, i: v, key: ue(y, v) })).filter(
7396
7400
  ({ row: y, i: v }) => re ? re(y, v) : !0
7397
7401
  ).map(({ key: y }) => y) : [],
7398
7402
  // eslint-disable-next-line react-hooks/exhaustive-deps
7399
- [H, We, re, n]
7403
+ [H, Re, re, n]
7400
7404
  ), wn = Ot.filter((y) => Xe.has(y)), kr = Ot.length > 0 && wn.length === Ot.length, Dn = wn.length > 0 && !kr, Yi = () => {
7401
7405
  const y = new Set(Xe);
7402
7406
  kr ? Ot.forEach((v) => y.delete(v)) : Ot.forEach((v) => y.add(v)), ct(y);
7403
7407
  }, Sr = (y, v, W) => {
7404
- const _ = y.render ? y.render(v, W, We) : Pc(v, y.accessor);
7405
- if (p && !y.render && typeof _ == "string") {
7408
+ const $ = y.render ? y.render(v, W, Re) : Pc(v, y.accessor);
7409
+ if (p && !y.render && typeof $ == "string") {
7406
7410
  const ee = y.key ?? (typeof y.accessor == "string" ? y.accessor : void 0), oe = ee ? p[ee] : void 0;
7407
- if (oe) return /* @__PURE__ */ e(Oc, { text: _, query: oe });
7411
+ if (oe) return /* @__PURE__ */ e(Oc, { text: $, query: oe });
7408
7412
  }
7409
- return _;
7410
- }, Er = Ce.length + (H ? 1 : 0) + ($ ? 1 : 0), kn = ["80%", "55%", "70%", "45%", "90%", "60%"], Xi = (y, v) => kn[(y * 7 + v * 3) % kn.length], Ji = (y, v) => /* @__PURE__ */ e(Ct, { height: 14, width: Xi(y, v), borderRadius: "rounded-sm" }), Ki = Array.from({ length: z }, (y, v) => /* @__PURE__ */ u(nt, { children: [
7411
- H && /* @__PURE__ */ e(Ne, { style: { width: Zt, padding: 0 }, children: /* @__PURE__ */ e("div", { style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(Ct, { height: 14, width: 14, borderRadius: "rounded-sm" }) }) }),
7412
- Ce.map(({ col: W, key: _ }, ee) => /* @__PURE__ */ e(
7413
- Ne,
7413
+ return $;
7414
+ }, Er = Ce.length + (H ? 1 : 0) + (j ? 1 : 0), kn = ["80%", "55%", "70%", "45%", "90%", "60%"], Xi = (y, v) => kn[(y * 7 + v * 3) % kn.length], Ji = (y, v) => /* @__PURE__ */ e(Ct, { height: 14, width: Xi(y, v), borderRadius: "rounded-sm" }), Ki = Array.from({ length: M }, (y, v) => /* @__PURE__ */ u(nt, { children: [
7415
+ H && /* @__PURE__ */ e($e, { style: { width: Zt, padding: 0 }, children: /* @__PURE__ */ e("div", { style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ e(Ct, { height: 14, width: 14, borderRadius: "rounded-sm" }) }) }),
7416
+ Ce.map(({ col: W, key: $ }, ee) => /* @__PURE__ */ e(
7417
+ $e,
7414
7418
  {
7415
7419
  style: { textAlign: Gt(W.align) },
7416
7420
  children: Ji(v, ee)
7417
7421
  },
7418
- `sa-tl-sk-${v}-${_}`
7422
+ `sa-tl-sk-${v}-${$}`
7419
7423
  )),
7420
- $ && /* @__PURE__ */ e(Ne, { style: { width: xe, padding: 0, border: "none" } })
7424
+ j && /* @__PURE__ */ e($e, { style: { width: xe, padding: 0, border: "none" } })
7421
7425
  ] }, `sa-tl-sk-${v}`)), eo = (y, v) => {
7422
7426
  v || Me({
7423
7427
  ...De,
@@ -7429,7 +7433,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7429
7433
  }), Kt = (y) => (G ?? []).filter((v) => {
7430
7434
  var W;
7431
7435
  return !((W = v.hidden) != null && W.call(v, y));
7432
- }), Sn = fe ? {
7436
+ }), Sn = se ? {
7433
7437
  display: "flex",
7434
7438
  alignItems: "center",
7435
7439
  justifyContent: "flex-end",
@@ -7448,9 +7452,9 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7448
7452
  paddingRight: cr,
7449
7453
  paddingLeft: 40,
7450
7454
  background: "linear-gradient(to right, transparent, var(--sa-background-primary-inverse, #f8f8f8) 40px)"
7451
- }, er = (y, v, W, _) => {
7455
+ }, er = (y, v, W, $) => {
7452
7456
  var lt;
7453
- const ee = (lt = y.disabled) == null ? void 0 : lt.call(y, v), oe = (_ == null ? void 0 : _.showLabel) ?? y.showLabel, ie = (_ == null ? void 0 : _.size) ?? "xs", ke = /* @__PURE__ */ e(
7457
+ const ee = (lt = y.disabled) == null ? void 0 : lt.call(y, v), oe = ($ == null ? void 0 : $.showLabel) ?? y.showLabel, ie = ($ == null ? void 0 : $.size) ?? "xs", Se = /* @__PURE__ */ e(
7454
7458
  V,
7455
7459
  {
7456
7460
  size: ie,
@@ -7461,31 +7465,31 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7461
7465
  iconLeft: y.icon ? /* @__PURE__ */ e(F, { name: y.icon, size: "sm" }) : void 0,
7462
7466
  children: oe && y.label
7463
7467
  }
7464
- ), Se = y.tooltip;
7465
- return Se ? /* @__PURE__ */ e(Oe, { label: Se, position: "top-end", children: ke }) : ke;
7468
+ ), Ee = y.tooltip;
7469
+ return Ee ? /* @__PURE__ */ e(Ve, { label: Ee, position: "top-end", children: Se }) : Se;
7466
7470
  }, ro = (y, v) => {
7467
7471
  const W = Kt(y);
7468
7472
  if (!W.length) return null;
7469
7473
  if (W.length > Zr) {
7470
- const ee = de(y, v), oe = (ve == null ? void 0 : ve.rowKey) === ee;
7474
+ const ee = ue(y, v), oe = (ve == null ? void 0 : ve.rowKey) === ee;
7471
7475
  return /* @__PURE__ */ e(
7472
7476
  "div",
7473
7477
  {
7474
7478
  className: "sa-tl-row-actions",
7475
- "data-mode": fe ? "column" : "overlay",
7479
+ "data-mode": se ? "column" : "overlay",
7476
7480
  style: Sn,
7477
7481
  onClick: (ie) => ie.stopPropagation(),
7478
- children: /* @__PURE__ */ e(Oe, { label: "Aksi lainnya", position: "top", children: /* @__PURE__ */ e(
7482
+ children: /* @__PURE__ */ e(Ve, { label: "Aksi lainnya", position: "top", children: /* @__PURE__ */ e(
7479
7483
  V,
7480
7484
  {
7481
7485
  size: "xs",
7482
7486
  variant: "tertiary",
7483
7487
  onClick: (ie) => {
7484
- const ke = ie.currentTarget.getBoundingClientRect();
7485
- Be(oe ? null : {
7488
+ const Se = ie.currentTarget.getBoundingClientRect();
7489
+ He(oe ? null : {
7486
7490
  rowKey: ee,
7487
- top: ke.bottom + 4,
7488
- right: window.innerWidth - ke.right
7491
+ top: Se.bottom + 4,
7492
+ right: window.innerWidth - Se.right
7489
7493
  });
7490
7494
  },
7491
7495
  children: /* @__PURE__ */ e(F, { name: "MenuVertical", size: "sm" })
@@ -7498,31 +7502,31 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7498
7502
  "div",
7499
7503
  {
7500
7504
  className: "sa-tl-row-actions",
7501
- "data-mode": fe ? "column" : "overlay",
7505
+ "data-mode": se ? "column" : "overlay",
7502
7506
  style: Sn,
7503
7507
  children: W.map((ee) => /* @__PURE__ */ e(Dt.Fragment, { children: er(ee, y, v) }, ee.key))
7504
7508
  }
7505
7509
  );
7506
7510
  }, no = (y, v) => {
7507
7511
  const W = Kt(y);
7508
- return W.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 6, flexWrap: "wrap", paddingTop: 8, marginTop: 8, borderTop: jt }, children: W.map((_) => /* @__PURE__ */ e(Dt.Fragment, { children: er(_, y, v, { showLabel: !0, size: "sm" }) }, _.key)) }) : null;
7512
+ return W.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 6, flexWrap: "wrap", paddingTop: 8, marginTop: 8, borderTop: jt }, children: W.map(($) => /* @__PURE__ */ e(Dt.Fragment, { children: er($, y, v, { showLabel: !0, size: "sm" }) }, $.key)) }) : null;
7509
7513
  }, io = (y, v) => {
7510
7514
  const W = Kt(y);
7511
- return W.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4, paddingRight: 8, flexShrink: 0 }, children: W.map((_) => /* @__PURE__ */ e(Dt.Fragment, { children: er(_, y, v, { showLabel: !1 }) }, _.key)) }) : null;
7515
+ return W.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4, paddingRight: 8, flexShrink: 0 }, children: W.map(($) => /* @__PURE__ */ e(Dt.Fragment, { children: er($, y, v, { showLabel: !1 }) }, $.key)) }) : null;
7512
7516
  }, Fr = (y, v) => {
7513
7517
  var Vt;
7514
- const { col: W, key: _ } = y, ee = dt.get(_) ?? 0, oe = E(ee), ie = oe && ee === Wt, ke = (X == null ? void 0 : X.key) === _ ? X.direction : null, Se = f && !W.disableMenu ? /* @__PURE__ */ e(
7518
+ const { col: W, key: $ } = y, ee = dt.get($) ?? 0, oe = E(ee), ie = oe && ee === Wt, Se = (X == null ? void 0 : X.key) === $ ? X.direction : null, Ee = f && !W.disableMenu ? /* @__PURE__ */ e(
7515
7519
  Bc,
7516
7520
  {
7517
- active: !!ke || oe || !!W.filterActive,
7521
+ active: !!Se || oe || !!W.filterActive,
7518
7522
  canSort: xt(W),
7519
7523
  canHide: !W.locked,
7520
- sortDir: ke,
7524
+ sortDir: Se,
7521
7525
  frozen: oe,
7522
- onSort: (rr) => he({ key: _, direction: rr }),
7523
- onClearSort: () => he(null),
7524
- onToggleFreeze: () => to(_),
7525
- onHide: () => eo(_, W.locked),
7526
+ onSort: (rr) => fe({ key: $, direction: rr }),
7527
+ onClearSort: () => fe(null),
7528
+ onToggleFreeze: () => to($),
7529
+ onHide: () => eo($, W.locked),
7526
7530
  filterSlot: (Vt = W.renderFilter) == null ? void 0 : Vt.call(W),
7527
7531
  filterActive: W.filterActive
7528
7532
  }
@@ -7552,14 +7556,14 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7552
7556
  colSpan: v == null ? void 0 : v.colSpan,
7553
7557
  minWidth: W.minWidth,
7554
7558
  numeric: W.numeric,
7555
- resizable: He ? W.resizable : !1,
7559
+ resizable: Te ? W.resizable : !1,
7556
7560
  defaultWidth: Jt(W, ee),
7557
7561
  style: {
7558
7562
  textAlign: Gt(W.align),
7559
7563
  width: It(W, ee),
7560
7564
  position: "sticky",
7561
7565
  top: (v == null ? void 0 : v.top) ?? 0,
7562
- left: oe ? Q(ee) : void 0,
7566
+ left: oe ? U(ee) : void 0,
7563
7567
  zIndex: oe ? 3 : 2,
7564
7568
  backgroundColor: Nt,
7565
7569
  boxShadow: ie ? ci : void 0
@@ -7574,21 +7578,21 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7574
7578
  width: "100%"
7575
7579
  },
7576
7580
  children: lt ? /* @__PURE__ */ u(ne, { children: [
7577
- Se,
7581
+ Ee,
7578
7582
  ht
7579
7583
  ] }) : /* @__PURE__ */ u(ne, { children: [
7580
7584
  ht,
7581
- Se
7585
+ Ee
7582
7586
  ] })
7583
7587
  }
7584
7588
  )
7585
7589
  },
7586
- `th-${_}`
7590
+ `th-${$}`
7587
7591
  );
7588
7592
  }, oo = () => {
7589
7593
  const y = [];
7590
7594
  for (let v = 0; v < Ce.length; ) {
7591
- const W = Ce[v], _ = W.col.headerColSpan ?? 1, ee = Math.max(1, Math.min(_, Ce.length - v));
7595
+ const W = Ce[v], $ = W.col.headerColSpan ?? 1, ee = Math.max(1, Math.min($, Ce.length - v));
7592
7596
  y.push(Fr(W, ee > 1 ? { colSpan: ee } : void 0)), v += ee;
7593
7597
  }
7594
7598
  return y;
@@ -7631,9 +7635,9 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7631
7635
  },
7632
7636
  "th-select"
7633
7637
  ), lo = (y, v, W) => {
7634
- const _ = de(y, v);
7638
+ const $ = ue(y, v);
7635
7639
  return /* @__PURE__ */ e(
7636
- Ne,
7640
+ $e,
7637
7641
  {
7638
7642
  className: "sa-tl-frozen",
7639
7643
  style: {
@@ -7658,8 +7662,8 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7658
7662
  Rt,
7659
7663
  {
7660
7664
  size: "sm",
7661
- checked: Xe.has(_),
7662
- onChange: () => vt(_),
7665
+ checked: Xe.has($),
7666
+ onChange: () => vt($),
7663
7667
  "aria-label": "Pilih baris"
7664
7668
  }
7665
7669
  )
@@ -7668,10 +7672,10 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7668
7672
  },
7669
7673
  `tl-select-${v}`
7670
7674
  );
7671
- }, Lr = Ce.filter((y) => !y.col.hideOnMobile), Wr = Lr.find((y) => y.col.primary) ?? Lr[0], co = Lr.filter((y) => y !== Wr), so = (y) => $e((v) => {
7675
+ }, Lr = Ce.filter((y) => !y.col.hideOnMobile), Wr = Lr.find((y) => y.col.primary) ?? Lr[0], co = Lr.filter((y) => y !== Wr), so = (y) => _e((v) => {
7672
7676
  const W = new Set(v);
7673
7677
  return W.has(y) ? W.delete(y) : W.add(y), W;
7674
- }), Fn = (y, v) => co.map(({ col: W, key: _ }) => {
7678
+ }), Fn = (y, v) => co.map(({ col: W, key: $ }) => {
7675
7679
  const ee = Sr(W, y, v), oe = {
7676
7680
  minWidth: 0,
7677
7681
  overflow: "hidden",
@@ -7701,7 +7705,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7701
7705
  ie
7702
7706
  ]
7703
7707
  },
7704
- _
7708
+ $
7705
7709
  );
7706
7710
  }), Rr = (y, v) => {
7707
7711
  const W = Wr ? Sr(Wr.col, y, v) : null;
@@ -7710,7 +7714,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7710
7714
  h,
7711
7715
  {
7712
7716
  style: { display: "flex", flexDirection: "column", gap: 8, padding: 8 },
7713
- children: Array.from({ length: z }, (y, v) => /* @__PURE__ */ u(
7717
+ children: Array.from({ length: M }, (y, v) => /* @__PURE__ */ u(
7714
7718
  h,
7715
7719
  {
7716
7720
  style: {
@@ -7743,8 +7747,8 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7743
7747
  },
7744
7748
  children: R == null ? void 0 : R.content
7745
7749
  }
7746
- ), uo = k ? ao : We.length === 0 ? Ln : I === "expand" ? /* @__PURE__ */ e(h, { style: { display: "flex", flexDirection: "column" }, children: We.map((y, v) => {
7747
- const W = de(y, v), _ = Ke.has(W), oe = H && Xe.has(W) ? qr : ar(o == null ? void 0 : o(y, v));
7750
+ ), uo = k ? ao : Re.length === 0 ? Ln : I === "expand" ? /* @__PURE__ */ e(h, { style: { display: "flex", flexDirection: "column" }, children: Re.map((y, v) => {
7751
+ const W = ue(y, v), $ = Ke.has(W), oe = H && Xe.has(W) ? qr : ar(o == null ? void 0 : o(y, v));
7748
7752
  return /* @__PURE__ */ u(
7749
7753
  "div",
7750
7754
  {
@@ -7798,7 +7802,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7798
7802
  /* @__PURE__ */ e(
7799
7803
  F,
7800
7804
  {
7801
- name: _ ? "ChevronUp" : "ChevronDown",
7805
+ name: $ ? "ChevronUp" : "ChevronDown",
7802
7806
  size: "sm",
7803
7807
  style: { flexShrink: 0 }
7804
7808
  }
@@ -7806,9 +7810,9 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7806
7810
  ]
7807
7811
  }
7808
7812
  ),
7809
- $ && io(y, v)
7813
+ j && io(y, v)
7810
7814
  ] }),
7811
- _ && /* @__PURE__ */ e(
7815
+ $ && /* @__PURE__ */ e(
7812
7816
  "div",
7813
7817
  {
7814
7818
  style: {
@@ -7828,8 +7832,8 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7828
7832
  h,
7829
7833
  {
7830
7834
  style: { display: "flex", flexDirection: "column", gap: 8, padding: 8 },
7831
- children: We.map((y, v) => {
7832
- const W = de(y, v), _ = H && Xe.has(W);
7835
+ children: Re.map((y, v) => {
7836
+ const W = ue(y, v), $ = H && Xe.has(W);
7833
7837
  return /* @__PURE__ */ u(
7834
7838
  h,
7835
7839
  {
@@ -7840,7 +7844,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7840
7844
  display: "flex",
7841
7845
  flexDirection: "column",
7842
7846
  gap: 6,
7843
- backgroundColor: _ ? qr : ar(o == null ? void 0 : o(y, v))
7847
+ backgroundColor: $ ? qr : ar(o == null ? void 0 : o(y, v))
7844
7848
  },
7845
7849
  children: [
7846
7850
  Bt(y, v) ? /* @__PURE__ */ u("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
@@ -7859,15 +7863,15 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7859
7863
  Rr(y, v)
7860
7864
  ),
7861
7865
  Fn(y, v),
7862
- $ && no(y, v)
7866
+ j && no(y, v)
7863
7867
  ]
7864
7868
  },
7865
7869
  W
7866
7870
  );
7867
7871
  })
7868
7872
  }
7869
- ), ho = l && He && _e !== void 0, Wn = c === "fixed" && !l && (He ? _e !== void 0 : !0), fo = Wn && !He, tr = S && S.length > 0 ? S.map((y, v) => /* @__PURE__ */ e(nt, { children: y.cells.map((W, _) => /* @__PURE__ */ e(
7870
- Ne,
7873
+ ), ho = l && Te && Pe !== void 0, Wn = c === "fixed" && !l && (Te ? Pe !== void 0 : !0), fo = Wn && !Te, tr = S && S.length > 0 ? S.map((y, v) => /* @__PURE__ */ e(nt, { children: y.cells.map((W, $) => /* @__PURE__ */ e(
7874
+ $e,
7871
7875
  {
7872
7876
  colSpan: W.colSpan,
7873
7877
  rowSpan: W.rowSpan,
@@ -7875,7 +7879,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7875
7879
  style: { textAlign: Gt(W.align) },
7876
7880
  children: W.content
7877
7881
  },
7878
- `tl-foot-${v}-${_}`
7882
+ `tl-foot-${v}-${$}`
7879
7883
  )) }, `tl-foot-${v}`)) : null, mo = /* @__PURE__ */ u(
7880
7884
  ur,
7881
7885
  {
@@ -7889,12 +7893,12 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7889
7893
  fo && /* @__PURE__ */ u("colgroup", { children: [
7890
7894
  H && /* @__PURE__ */ e("col", { style: { width: Zt } }),
7891
7895
  Ce.map(({ col: y, key: v }, W) => /* @__PURE__ */ e("col", { style: { width: It(y, W) } }, `col-${v}`)),
7892
- $ && /* @__PURE__ */ e("col", { style: { width: xe } })
7896
+ j && /* @__PURE__ */ e("col", { style: { width: xe } })
7893
7897
  ] }),
7894
- /* @__PURE__ */ e(Ci, { ref: Lt, children: Ve ? /* @__PURE__ */ u(ne, { children: [
7898
+ /* @__PURE__ */ e(Ci, { ref: Lt, children: Ne ? /* @__PURE__ */ u(ne, { children: [
7895
7899
  /* @__PURE__ */ u(nt, { children: [
7896
7900
  H && En({ rowSpan: 2 }),
7897
- Le.map(
7901
+ We.map(
7898
7902
  (y) => y.isGroup ? /* @__PURE__ */ e(
7899
7903
  Tt,
7900
7904
  {
@@ -7911,7 +7915,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7911
7915
  `grp-${y.key}`
7912
7916
  ) : Fr(y.leaves[0], { rowSpan: 2 })
7913
7917
  ),
7914
- $ && /* @__PURE__ */ e(
7918
+ j && /* @__PURE__ */ e(
7915
7919
  Tt,
7916
7920
  {
7917
7921
  rowSpan: 2,
@@ -7928,13 +7932,13 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7928
7932
  }
7929
7933
  )
7930
7934
  ] }),
7931
- /* @__PURE__ */ e(nt, { children: Le.flatMap(
7935
+ /* @__PURE__ */ e(nt, { children: We.flatMap(
7932
7936
  (y) => y.isGroup ? y.leaves.map((v) => Fr(v, { top: wr })) : []
7933
7937
  ) })
7934
7938
  ] }) : /* @__PURE__ */ u(nt, { children: [
7935
7939
  H && En(),
7936
7940
  oo(),
7937
- $ && /* @__PURE__ */ e(
7941
+ j && /* @__PURE__ */ e(
7938
7942
  Tt,
7939
7943
  {
7940
7944
  style: {
@@ -7950,35 +7954,35 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7950
7954
  }
7951
7955
  )
7952
7956
  ] }) }),
7953
- /* @__PURE__ */ e(Xr, { children: k ? Ki : We.length === 0 ? /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e(Ne, { colSpan: Er, children: Ln }) }) : /* @__PURE__ */ u(ne, { children: [
7954
- We.map((y, v) => {
7955
- const W = M == null ? void 0 : M(
7957
+ /* @__PURE__ */ e(Xr, { children: k ? Ki : Re.length === 0 ? /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e($e, { colSpan: Er, children: Ln }) }) : /* @__PURE__ */ u(ne, { children: [
7958
+ Re.map((y, v) => {
7959
+ const W = A == null ? void 0 : A(
7956
7960
  y,
7957
7961
  v,
7958
- v > 0 ? We[v - 1] : void 0
7959
- ), ee = H && Xe.has(de(y, v)) ? qr : ar(o == null ? void 0 : o(y, v));
7962
+ v > 0 ? Re[v - 1] : void 0
7963
+ ), ee = H && Xe.has(ue(y, v)) ? qr : ar(o == null ? void 0 : o(y, v));
7960
7964
  return /* @__PURE__ */ u(Dt.Fragment, { children: [
7961
- W != null && W !== !1 && /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e(Ne, { colSpan: Er, style: { backgroundColor: Nt }, children: W }) }),
7965
+ W != null && W !== !1 && /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e($e, { colSpan: Er, style: { backgroundColor: Nt }, children: W }) }),
7962
7966
  /* @__PURE__ */ u(nt, { children: [
7963
7967
  H && lo(y, v, ee),
7964
- Ce.map(({ col: oe, key: ie }, ke) => {
7968
+ Ce.map(({ col: oe, key: ie }, Se) => {
7965
7969
  var Rn;
7966
- const Se = (Rn = oe.cellProps) == null ? void 0 : Rn.call(oe, y, v, We);
7967
- if (Se != null && Se.hidden) return null;
7968
- const lt = E(ke), Pt = lt && ke === Wt, ht = Sr(oe, y, v), Vt = typeof oe.bg == "function" ? oe.bg(y, v, We) : oe.bg, rr = ar(Vt) ?? ee;
7970
+ const Ee = (Rn = oe.cellProps) == null ? void 0 : Rn.call(oe, y, v, Re);
7971
+ if (Ee != null && Ee.hidden) return null;
7972
+ const lt = E(Se), Pt = lt && Se === Wt, ht = Sr(oe, y, v), Vt = typeof oe.bg == "function" ? oe.bg(y, v, Re) : oe.bg, rr = ar(Vt) ?? ee;
7969
7973
  return /* @__PURE__ */ e(
7970
- Ne,
7974
+ $e,
7971
7975
  {
7972
7976
  className: lt ? "sa-tl-frozen" : void 0,
7973
- colSpan: Se == null ? void 0 : Se.colSpan,
7974
- rowSpan: Se == null ? void 0 : Se.rowSpan,
7977
+ colSpan: Ee == null ? void 0 : Ee.colSpan,
7978
+ rowSpan: Ee == null ? void 0 : Ee.rowSpan,
7975
7979
  numeric: oe.numeric,
7976
7980
  style: {
7977
7981
  textAlign: Gt(oe.align),
7978
- width: It(oe, ke),
7982
+ width: It(oe, Se),
7979
7983
  minWidth: oe.minWidth,
7980
7984
  position: lt ? "sticky" : void 0,
7981
- left: lt ? Q(ke) : void 0,
7985
+ left: lt ? U(Se) : void 0,
7982
7986
  zIndex: lt ? 1 : void 0,
7983
7987
  boxShadow: Pt ? ci : void 0,
7984
7988
  ...rr ? { "--sa-tl-bg": rr } : {}
@@ -7999,10 +8003,10 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
7999
8003
  `tl-cell-${v}-${ie}`
8000
8004
  );
8001
8005
  }),
8002
- $ && /* @__PURE__ */ e(
8003
- Ne,
8006
+ j && /* @__PURE__ */ e(
8007
+ $e,
8004
8008
  {
8005
- className: fe ? "sa-tl-frozen" : void 0,
8009
+ className: se ? "sa-tl-frozen" : void 0,
8006
8010
  style: {
8007
8011
  position: "sticky",
8008
8012
  right: 0,
@@ -8010,7 +8014,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
8010
8014
  padding: 0,
8011
8015
  // Overlay perlu meluber keluar sel selebar 1px;
8012
8016
  // kolom nyata tidak — isinya muat di dalamnya.
8013
- overflow: fe ? void 0 : "visible",
8017
+ overflow: se ? void 0 : "visible",
8014
8018
  zIndex: 2,
8015
8019
  border: "none"
8016
8020
  },
@@ -8018,14 +8022,14 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
8018
8022
  }
8019
8023
  )
8020
8024
  ] })
8021
- ] }, de(y, v));
8025
+ ] }, ue(y, v));
8022
8026
  }),
8023
- x != null && /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e(Ne, { colSpan: Er, children: x }) })
8027
+ x != null && /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e($e, { colSpan: Er, children: x }) })
8024
8028
  ] }) }),
8025
8029
  tr && /* @__PURE__ */ e(Co, { className: L ? "sa-tl-sticky-foot" : void 0, children: tr })
8026
8030
  ]
8027
8031
  }
8028
- ), Mr = ve ? We.findIndex((y, v) => de(y, v) === ve.rowKey) : -1, Ar = Mr >= 0 ? We[Mr] : null;
8032
+ ), Mr = ve ? Re.findIndex((y, v) => ue(y, v) === ve.rowKey) : -1, Ar = Mr >= 0 ? Re[Mr] : null;
8029
8033
  return /* @__PURE__ */ u(ne, { children: [
8030
8034
  /* @__PURE__ */ e(
8031
8035
  h,
@@ -8037,9 +8041,9 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
8037
8041
  overflow: "auto",
8038
8042
  height: C ?? ge
8039
8043
  },
8040
- children: K ? /* @__PURE__ */ u(ne, { children: [
8044
+ children: me ? /* @__PURE__ */ u(ne, { children: [
8041
8045
  uo,
8042
- tr && !k && We.length > 0 && /* @__PURE__ */ e(h, { style: { borderTop: jt }, children: /* @__PURE__ */ e(ur, { fullWidth: !0, size: i, className: "sa-table-layout", children: /* @__PURE__ */ e(Xr, { children: tr }) }) })
8046
+ tr && !k && Re.length > 0 && /* @__PURE__ */ e(h, { style: { borderTop: jt }, children: /* @__PURE__ */ e(ur, { fullWidth: !0, size: i, className: "sa-table-layout", children: /* @__PURE__ */ e(Xr, { children: tr }) }) })
8043
8047
  ] }) : mo
8044
8048
  }
8045
8049
  ),
@@ -8063,7 +8067,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
8063
8067
  scopeId: c,
8064
8068
  storage: s = Hi
8065
8069
  } = t, { searchParams: a, setSearchParams: d, searchQueries: f } = it(), p = a.toString(), g = c ? Ut.tableSort(c) : void 0, b = le(!1);
8066
- Y(() => {
8070
+ Q(() => {
8067
8071
  if (b.current || (b.current = !0, !g) || a.has(r) || a.has(n))
8068
8072
  return;
8069
8073
  const x = s.get(g);
@@ -8076,26 +8080,26 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
8076
8080
  { replace: !0 }
8077
8081
  );
8078
8082
  }, []);
8079
- const D = Ee(() => {
8083
+ const D = Fe(() => {
8080
8084
  const x = a.get(r), S = a.get(n);
8081
8085
  return x && Ur(S) ? { key: x, direction: S } : i;
8082
8086
  }, [p, r, n, i]);
8083
- Y(() => {
8087
+ Q(() => {
8084
8088
  if (!g) return;
8085
8089
  const x = a.get(r), S = a.get(n);
8086
8090
  x && Ur(S) ? s.set(g, { key: x, direction: S }) : s.remove(g);
8087
8091
  }, [p, g, r, n, s]);
8088
- const C = (l == null ? void 0 : l.sortBy) ?? "sortBy", I = (l == null ? void 0 : l.sortOrder) ?? "sortOrder", A = Ee(() => D ? {
8092
+ const C = (l == null ? void 0 : l.sortBy) ?? "sortBy", I = (l == null ? void 0 : l.sortOrder) ?? "sortOrder", z = Fe(() => D ? {
8089
8093
  [C]: D.key,
8090
8094
  [I]: D.direction
8091
- } : {}, [D, C, I]), M = j(
8095
+ } : {}, [D, C, I]), A = P(
8092
8096
  (x) => {
8093
8097
  const S = { ...f };
8094
8098
  x ? (S[r] = x.key, S[n] = x.direction) : (delete S[r], delete S[n]), delete S[o], d(S);
8095
8099
  },
8096
8100
  [f, r, n, o, d]
8097
8101
  );
8098
- return { sort: D, setSort: M, params: A };
8102
+ return { sort: D, setSort: A, params: z };
8099
8103
  }, pn = ({
8100
8104
  of: t,
8101
8105
  render: r
@@ -8157,7 +8161,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
8157
8161
  /* @__PURE__ */ e(we, { fontSize: t, children: i.title }),
8158
8162
  /* @__PURE__ */ e(we, { color: "error", fontSize: t, children: n }),
8159
8163
  /* @__PURE__ */ e(be, { condition: !!((s = i.tooltip) != null && s.label), children: /* @__PURE__ */ e(
8160
- Oe,
8164
+ Ve,
8161
8165
  {
8162
8166
  label: (a = i.tooltip) == null ? void 0 : a.label,
8163
8167
  arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
@@ -8243,7 +8247,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
8243
8247
  /* @__PURE__ */ e(we, { fontSize: t, children: i.title }),
8244
8248
  /* @__PURE__ */ e(we, { color: "error", fontSize: t, children: n }),
8245
8249
  /* @__PURE__ */ e(be, { condition: !!((s = i.tooltip) != null && s.label), children: /* @__PURE__ */ e(
8246
- Oe,
8250
+ Ve,
8247
8251
  {
8248
8252
  label: (a = i.tooltip) == null ? void 0 : a.label,
8249
8253
  arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
@@ -8746,7 +8750,7 @@ const rs = (t) => {
8746
8750
  /* @__PURE__ */ e(we, { fontSize: t, children: i.title }),
8747
8751
  /* @__PURE__ */ e(we, { color: "error", fontSize: t, children: n }),
8748
8752
  /* @__PURE__ */ e(be, { condition: !!((s = i.tooltip) != null && s.label), children: /* @__PURE__ */ e(
8749
- Oe,
8753
+ Ve,
8750
8754
  {
8751
8755
  label: (a = i.tooltip) == null ? void 0 : a.label,
8752
8756
  arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
@@ -8829,7 +8833,7 @@ const rs = (t) => {
8829
8833
  /* @__PURE__ */ e(we, { fontSize: t, children: l.title }),
8830
8834
  /* @__PURE__ */ e(we, { color: "error", fontSize: t, children: n }),
8831
8835
  /* @__PURE__ */ e(be, { condition: !!((a = l.tooltip) != null && a.label), children: /* @__PURE__ */ e(
8832
- Oe,
8836
+ Ve,
8833
8837
  {
8834
8838
  label: (d = l.tooltip) == null ? void 0 : d.label,
8835
8839
  arrowPosition: (f = l.tooltip) == null ? void 0 : f.arrowPosition,
@@ -9030,7 +9034,7 @@ const rs = (t) => {
9030
9034
  /* @__PURE__ */ e(we, { fontSize: t, children: i.title }),
9031
9035
  /* @__PURE__ */ e(we, { color: "error", fontSize: t, children: n }),
9032
9036
  /* @__PURE__ */ e(be, { condition: !!((s = i.tooltip) != null && s.label), children: /* @__PURE__ */ e(
9033
- Oe,
9037
+ Ve,
9034
9038
  {
9035
9039
  label: (a = i.tooltip) == null ? void 0 : a.label,
9036
9040
  arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
@@ -9115,7 +9119,7 @@ const rs = (t) => {
9115
9119
  /* @__PURE__ */ e(we, { fontSize: t, children: l.title }),
9116
9120
  /* @__PURE__ */ e(we, { color: "error", fontSize: t, children: n }),
9117
9121
  /* @__PURE__ */ e(be, { condition: !!((s = l.tooltip) != null && s.label), children: /* @__PURE__ */ e(
9118
- Oe,
9122
+ Ve,
9119
9123
  {
9120
9124
  label: (a = l.tooltip) == null ? void 0 : a.label,
9121
9125
  arrowPosition: (d = l.tooltip) == null ? void 0 : d.arrowPosition,
@@ -9250,7 +9254,7 @@ const rs = (t) => {
9250
9254
  /* @__PURE__ */ e(we, { fontSize: t, children: i.title }),
9251
9255
  /* @__PURE__ */ e(we, { color: "error", fontSize: t, children: n }),
9252
9256
  /* @__PURE__ */ e(be, { condition: !!((s = i.tooltip) != null && s.label), children: /* @__PURE__ */ e(
9253
- Oe,
9257
+ Ve,
9254
9258
  {
9255
9259
  label: (a = i.tooltip) == null ? void 0 : a.label,
9256
9260
  arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
@@ -9349,25 +9353,26 @@ const ai = {
9349
9353
  maxFileSize: a = 2,
9350
9354
  onError: d
9351
9355
  }, f) => {
9352
- const p = Ie("md"), [g, b] = B(!1), [D, C] = B(null), [I, A] = B(!1), [M, x] = B({ x: 0, y: 0 }), [S, L] = B(1), [R, k] = B(null);
9353
- Y(() => {
9356
+ const p = Ie("md"), [g, b] = B(!1), [D, C] = B(null), [I, z] = B(!1), [A, x] = B({ x: 0, y: 0 }), [S, L] = B(1), [R, k] = B(null), [M, G] = B(!1);
9357
+ Q(() => {
9354
9358
  r === null && i(null);
9355
9359
  }, [r]);
9356
- const z = j(
9357
- (K, $) => {
9358
- k($);
9360
+ const O = P(
9361
+ (K, se) => {
9362
+ k(se);
9359
9363
  },
9360
9364
  []
9361
- ), G = (K) => {
9362
- var fe;
9363
- const $ = (fe = K.target.files) == null ? void 0 : fe[0];
9364
- if (!$) return;
9365
- const me = new FileReader();
9366
- me.onload = () => {
9367
- C(me.result), A(!0);
9368
- }, me.readAsDataURL($);
9369
- }, O = async () => {
9370
- if (!(!D || !R))
9365
+ ), H = (K) => {
9366
+ var Be;
9367
+ const se = (Be = K.target.files) == null ? void 0 : Be[0];
9368
+ if (!se) return;
9369
+ const ke = new FileReader();
9370
+ ke.onload = () => {
9371
+ C(ke.result), z(!0);
9372
+ }, ke.readAsDataURL(se);
9373
+ }, N = async () => {
9374
+ if (!(!D || !R || M)) {
9375
+ G(!0);
9371
9376
  try {
9372
9377
  const K = await hs(D, R);
9373
9378
  if (a && K.size > a * 1024 * 1024) {
@@ -9375,23 +9380,26 @@ const ai = {
9375
9380
  return;
9376
9381
  }
9377
9382
  t == null || t(K);
9378
- const $ = URL.createObjectURL(K);
9379
- i($, K), A(!1);
9383
+ const se = URL.createObjectURL(K);
9384
+ i(se, K), z(!1);
9380
9385
  } catch {
9381
9386
  d == null || d("Gagal memproses gambar");
9387
+ } finally {
9388
+ G(!1);
9382
9389
  }
9383
- }, H = le(null), N = () => {
9384
- H.current && H.current.click();
9390
+ }
9391
+ }, Z = le(null), Y = () => {
9392
+ Z.current && Z.current.click();
9385
9393
  };
9386
9394
  Lo(f, () => ({
9387
9395
  openFileDialog: () => {
9388
9396
  var K;
9389
- (K = H.current) == null || K.click();
9397
+ (K = Z.current) == null || K.click();
9390
9398
  }
9391
9399
  }));
9392
- const Z = parseInt(l, 10), q = ai[c];
9393
- let re, J;
9394
- return q >= 1 ? (J = Z, re = Z * q) : (re = Z, J = Z / q), /* @__PURE__ */ u(
9400
+ const re = parseInt(l, 10), J = ai[c];
9401
+ let me, j;
9402
+ return J >= 1 ? (j = re, me = re * J) : (me = re, j = re / J), /* @__PURE__ */ u(
9395
9403
  h,
9396
9404
  {
9397
9405
  direction: "column",
@@ -9406,9 +9414,9 @@ const ai = {
9406
9414
  align: "center",
9407
9415
  justify: "center",
9408
9416
  style: {
9409
- width: s != null && s.fullWidth ? "100%" : `${re}px`,
9410
- height: s != null && s.fullWidth ? "auto" : `${J}px`,
9411
- aspectRatio: q,
9417
+ width: s != null && s.fullWidth ? "100%" : `${me}px`,
9418
+ height: s != null && s.fullWidth ? "auto" : `${j}px`,
9419
+ aspectRatio: J,
9412
9420
  flexShrink: 0
9413
9421
  },
9414
9422
  onMouseEnter: () => b(!0),
@@ -9461,15 +9469,15 @@ const ai = {
9461
9469
  opacity: g ? 1 : 0,
9462
9470
  transition: "opacity 0.3s ease-in-out"
9463
9471
  },
9464
- onClick: N,
9472
+ onClick: Y,
9465
9473
  children: [
9466
9474
  /* @__PURE__ */ e(
9467
9475
  "input",
9468
9476
  {
9469
- ref: H,
9477
+ ref: Z,
9470
9478
  type: "file",
9471
9479
  accept: "image/*",
9472
- onChange: G,
9480
+ onChange: H,
9473
9481
  disabled: n,
9474
9482
  style: { display: "none" }
9475
9483
  }
@@ -9537,7 +9545,9 @@ const ai = {
9537
9545
  justifyContent: "center",
9538
9546
  backgroundColor: "rgba(0,0,0,0.6)"
9539
9547
  },
9540
- onClick: () => A(!1),
9548
+ onClick: () => {
9549
+ M || z(!1);
9550
+ },
9541
9551
  children: /* @__PURE__ */ u(
9542
9552
  "div",
9543
9553
  {
@@ -9546,7 +9556,7 @@ const ai = {
9546
9556
  borderRadius: "var(--sa-radii-md)",
9547
9557
  boxShadow: "0 20px 60px rgba(0,0,0,0.3)",
9548
9558
  overflow: "hidden",
9549
- width: p ? c === "1:1" ? "min(90vw, 480px)" : `min(90vw, ${re * 2}px)` : "calc(100vw - 2rem)",
9559
+ width: p ? c === "1:1" ? "min(90vw, 480px)" : `min(90vw, ${me * 2}px)` : "calc(100vw - 2rem)",
9550
9560
  display: "flex",
9551
9561
  flexDirection: "column"
9552
9562
  },
@@ -9565,12 +9575,12 @@ const ai = {
9565
9575
  Ro,
9566
9576
  {
9567
9577
  image: D,
9568
- crop: M,
9578
+ crop: A,
9569
9579
  zoom: S,
9570
9580
  aspect: c ? ai[c] : void 0,
9571
9581
  onCropChange: x,
9572
9582
  onZoomChange: L,
9573
- onCropComplete: z,
9583
+ onCropComplete: O,
9574
9584
  objectFit: "contain",
9575
9585
  minZoom: 0.5,
9576
9586
  restrictPosition: !1
@@ -9589,8 +9599,26 @@ const ai = {
9589
9599
  borderTop: "1px solid var(--sa-border-subtle)"
9590
9600
  },
9591
9601
  children: [
9592
- /* @__PURE__ */ e(V, { size: "sm", secondary: !0, onClick: () => A(!1), children: "Cancel" }),
9593
- /* @__PURE__ */ e(V, { size: "sm", primary: !0, onClick: O, children: "Crop" })
9602
+ /* @__PURE__ */ e(
9603
+ V,
9604
+ {
9605
+ size: "sm",
9606
+ secondary: !0,
9607
+ disabled: M,
9608
+ onClick: () => z(!1),
9609
+ children: "Cancel"
9610
+ }
9611
+ ),
9612
+ /* @__PURE__ */ e(
9613
+ V,
9614
+ {
9615
+ size: "sm",
9616
+ primary: !0,
9617
+ isLoading: M,
9618
+ onClick: N,
9619
+ children: "Crop"
9620
+ }
9621
+ )
9594
9622
  ]
9595
9623
  }
9596
9624
  )
@@ -9649,7 +9677,7 @@ const ai = {
9649
9677
  /* @__PURE__ */ e(we, { fontSize: t, children: l.title }),
9650
9678
  /* @__PURE__ */ e(we, { color: "error", fontSize: t, children: n }),
9651
9679
  /* @__PURE__ */ e(be, { condition: !!((a = l.tooltip) != null && a.label), children: /* @__PURE__ */ e(
9652
- Oe,
9680
+ Ve,
9653
9681
  {
9654
9682
  label: (d = l.tooltip) == null ? void 0 : d.label,
9655
9683
  arrowPosition: (f = l.tooltip) == null ? void 0 : f.arrowPosition,
@@ -9725,7 +9753,7 @@ const ai = {
9725
9753
  /* @__PURE__ */ e(we, { fontSize: t, children: i.title }),
9726
9754
  /* @__PURE__ */ e(we, { color: "error", fontSize: t, children: n }),
9727
9755
  /* @__PURE__ */ e(be, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
9728
- Oe,
9756
+ Ve,
9729
9757
  {
9730
9758
  label: (s = i.tooltip) == null ? void 0 : s.label,
9731
9759
  arrowPosition: (a = i.tooltip) == null ? void 0 : a.arrowPosition,
@@ -9765,10 +9793,10 @@ const ai = {
9765
9793
  }) => {
9766
9794
  var f;
9767
9795
  const [c, s] = B([]);
9768
- Y(() => {
9796
+ Q(() => {
9769
9797
  t && s([...t.map((p) => ({ id: p.id, isActive: p.isActive }))]);
9770
9798
  }, [t]);
9771
- const a = (f = c.find((p) => p.id === r)) == null ? void 0 : f.isActive, d = j(() => {
9799
+ const a = (f = c.find((p) => p.id === r)) == null ? void 0 : f.isActive, d = P(() => {
9772
9800
  s(
9773
9801
  (p) => p.map((g) => g.id === r ? { ...g, isActive: !g.isActive } : g)
9774
9802
  ), n && n(!a);
@@ -9811,7 +9839,7 @@ const ai = {
9811
9839
  }, i = () => {
9812
9840
  window.scrollTo({ top: 0, behavior: "smooth" });
9813
9841
  };
9814
- return Y(() => (window.addEventListener("scroll", o), () => {
9842
+ return Q(() => (window.addEventListener("scroll", o), () => {
9815
9843
  window.removeEventListener("scroll", o);
9816
9844
  }), []), /* @__PURE__ */ e(
9817
9845
  h,
@@ -9928,7 +9956,7 @@ const hd = ({
9928
9956
  className: f,
9929
9957
  style: p,
9930
9958
  "aria-label": g
9931
- }) => (Y(vs, []), /* @__PURE__ */ e(
9959
+ }) => (Q(vs, []), /* @__PURE__ */ e(
9932
9960
  "button",
9933
9961
  {
9934
9962
  type: "button",
@@ -10016,19 +10044,19 @@ const hd = ({
10016
10044
  bodyStyle: D,
10017
10045
  className: C,
10018
10046
  pageLayout: I,
10019
- overlay: A = "mobile",
10020
- wrapperProps: M,
10047
+ overlay: z = "mobile",
10048
+ wrapperProps: A,
10021
10049
  contentProps: x
10022
10050
  }) => {
10023
- const S = Ie("md"), L = n !== void 0, [R, k] = B(o), z = L ? n : R, G = () => {
10024
- const me = !z;
10025
- L || k(me), i == null || i(me);
10026
- }, O = c === "left", H = typeof s == "number" ? `${s}px` : s, N = a !== void 0 ? typeof a == "number" ? `${a}px` : a : `calc(100vh - ${H})`, Z = g ?? { collapse: "Collapse panel", expand: "Expand panel" }, q = f === "center" ? { top: "50%", transform: "translateY(-50%)" } : f === "bottom" ? { bottom: p } : { top: p }, re = z ? O ? "ChevronRight" : "ChevronLeft" : O ? "ChevronLeft" : "ChevronRight", J = I !== void 0 && (A === "mobile" ? !S : A), K = J ? {
10051
+ const S = Ie("md"), L = n !== void 0, [R, k] = B(o), M = L ? n : R, G = () => {
10052
+ const K = !M;
10053
+ L || k(K), i == null || i(K);
10054
+ }, O = c === "left", H = typeof s == "number" ? `${s}px` : s, N = a !== void 0 ? typeof a == "number" ? `${a}px` : a : `calc(100vh - ${H})`, Z = g ?? { collapse: "Collapse panel", expand: "Expand panel" }, Y = f === "center" ? { top: "50%", transform: "translateY(-50%)" } : f === "bottom" ? { bottom: p } : { top: p }, re = M ? O ? "ChevronRight" : "ChevronLeft" : O ? "ChevronLeft" : "ChevronRight", J = I !== void 0 && (z === "mobile" ? !S : z), me = J ? {
10027
10055
  position: "absolute",
10028
10056
  top: 0,
10029
10057
  bottom: 0,
10030
10058
  width: l,
10031
- transform: `translateX(${z ? O ? "-100%" : "100%" : "0"})`,
10059
+ transform: `translateX(${M ? O ? "-100%" : "100%" : "0"})`,
10032
10060
  transition: `transform ${ui}`,
10033
10061
  zIndex: 50,
10034
10062
  ...O ? { left: 0 } : { right: 0 },
@@ -10040,16 +10068,16 @@ const hd = ({
10040
10068
  position: "sticky",
10041
10069
  top: H,
10042
10070
  alignSelf: "flex-start",
10043
- width: z ? 0 : l,
10071
+ width: M ? 0 : l,
10044
10072
  flexShrink: 0,
10045
10073
  height: N,
10046
10074
  transition: `width ${ui}`,
10047
10075
  ...b
10048
- }, $ = /* @__PURE__ */ u(
10076
+ }, j = /* @__PURE__ */ u(
10049
10077
  h,
10050
10078
  {
10051
10079
  className: C,
10052
- style: K,
10080
+ style: me,
10053
10081
  children: [
10054
10082
  /* @__PURE__ */ e(
10055
10083
  h,
@@ -10059,8 +10087,8 @@ const hd = ({
10059
10087
  display: "flex",
10060
10088
  direction: "column",
10061
10089
  overflow: "overflow-hidden",
10062
- borderStyle: z ? void 0 : O ? "border-solid-r" : "border-solid-l",
10063
- borderWidth: z ? void 0 : O ? "border-r" : "border-l",
10090
+ borderStyle: M ? void 0 : O ? "border-solid-r" : "border-solid-l",
10091
+ borderWidth: M ? void 0 : O ? "border-r" : "border-l",
10064
10092
  style: { backgroundColor: hi, borderColor: Ui },
10065
10093
  children: /* @__PURE__ */ u(
10066
10094
  h,
@@ -10095,13 +10123,13 @@ const hd = ({
10095
10123
  justify: "center",
10096
10124
  position: "absolute",
10097
10125
  onClick: G,
10098
- "aria-label": z ? Z.expand : Z.collapse,
10099
- "aria-expanded": !z,
10100
- "aria-pressed": z,
10126
+ "aria-label": M ? Z.expand : Z.collapse,
10127
+ "aria-expanded": !M,
10128
+ "aria-pressed": M,
10101
10129
  customWidth: Qr,
10102
10130
  customHeight: Cs,
10103
10131
  style: {
10104
- ...q,
10132
+ ...Y,
10105
10133
  backgroundColor: hi,
10106
10134
  border: ws,
10107
10135
  zIndex: 5,
@@ -10123,19 +10151,19 @@ const hd = ({
10123
10151
  ]
10124
10152
  }
10125
10153
  );
10126
- return I === void 0 ? $ : /* @__PURE__ */ u(
10154
+ return I === void 0 ? j : /* @__PURE__ */ u(
10127
10155
  h,
10128
10156
  {
10129
10157
  direction: "row",
10130
10158
  position: "relative",
10131
- ...M,
10159
+ ...A,
10132
10160
  style: {
10133
10161
  height: `calc(100vh - ${H})`,
10134
10162
  overflow: "hidden",
10135
- ...(M == null ? void 0 : M.style) ?? {}
10163
+ ...(A == null ? void 0 : A.style) ?? {}
10136
10164
  },
10137
10165
  children: [
10138
- !J && O ? $ : null,
10166
+ !J && O ? j : null,
10139
10167
  /* @__PURE__ */ e(
10140
10168
  h,
10141
10169
  {
@@ -10151,9 +10179,9 @@ const hd = ({
10151
10179
  children: I
10152
10180
  }
10153
10181
  ),
10154
- !J && !O ? $ : null,
10182
+ !J && !O ? j : null,
10155
10183
  J && /* @__PURE__ */ u(ne, { children: [
10156
- !z && /* @__PURE__ */ e(
10184
+ !M && /* @__PURE__ */ e(
10157
10185
  "div",
10158
10186
  {
10159
10187
  onClick: G,
@@ -10166,7 +10194,7 @@ const hd = ({
10166
10194
  }
10167
10195
  }
10168
10196
  ),
10169
- $
10197
+ j
10170
10198
  ] })
10171
10199
  ]
10172
10200
  }
@@ -10282,7 +10310,7 @@ const hd = ({
10282
10310
  /* @__PURE__ */ e(w, { color: "gray-500", variant: "sub-h3", children: t })
10283
10311
  ] }) : /* @__PURE__ */ e(w, { color: "gray-500", variant: "sub-h3", children: t }),
10284
10312
  typeof r == "string" ? /* @__PURE__ */ e(w, { variant: "sub-h3", children: r }) : r
10285
- ] }), Te = {
10313
+ ] }), Oe = {
10286
10314
  silhouette: "#A7B0AC",
10287
10315
  accent: "#78867F"
10288
10316
  };
@@ -10300,112 +10328,112 @@ function Es({ width: t, height: r }) {
10300
10328
  "path",
10301
10329
  {
10302
10330
  d: "M51.0002 16.8145C36.0811 16.8145 24.8296 21.3801 24.8296 27.4328V76.5344C24.8296 82.573 36.0799 87.127 51.0002 87.127C65.9204 87.127 77.1707 82.573 77.1707 76.5344V27.4328C77.1707 21.3801 65.9204 16.8145 51.0002 16.8145ZM51.0002 19.1582C65.0602 19.1582 74.8582 23.5187 74.8582 27.4328C74.8582 30.1363 70.1615 32.9664 63.1708 34.4746C55.861 36.0543 46.1416 36.0543 38.8318 34.4746C31.8399 32.9664 27.1432 30.1363 27.1432 27.4328C27.1432 23.5187 36.9402 19.1582 51.0002 19.1582ZM74.8582 31.9199V43.784C74.8582 46.532 70.3142 49.2941 63.2737 50.8328C63.2391 50.8375 63.2032 50.8434 63.1697 50.8504C57.6867 52.0352 50.8498 52.3305 44.6893 51.7387C42.6358 51.5418 40.6575 51.2453 38.8306 50.8504C38.8029 50.8445 38.7682 50.8387 38.7347 50.8352C32.5707 49.4898 28.318 47.2047 27.3514 44.8141C27.2138 44.4719 27.1421 44.1285 27.1421 43.7852V31.9199C27.1999 31.9715 27.2693 32.0207 27.3294 32.0723C27.5052 32.2246 27.6902 32.3758 27.8844 32.5234C27.9954 32.609 28.1064 32.6934 28.2232 32.7766C28.4371 32.9301 28.6637 33.0801 28.8973 33.2289C29.0083 33.2992 29.1135 33.3719 29.2291 33.441C29.5702 33.6473 29.9275 33.8488 30.3044 34.0434C30.3195 34.0516 30.3333 34.0598 30.3484 34.068C30.7427 34.2707 31.1601 34.4652 31.5925 34.6551C31.7301 34.716 31.8758 34.7734 32.0168 34.832C32.3221 34.9598 32.6331 35.0852 32.9557 35.207C33.1303 35.2727 33.3095 35.3359 33.4887 35.4004C33.8032 35.5117 34.1247 35.6207 34.4542 35.7273C34.6404 35.7871 34.8254 35.8469 35.015 35.9043C35.3734 36.0133 35.7434 36.1164 36.1181 36.2184C36.2915 36.2652 36.4603 36.3145 36.6361 36.3602C37.1911 36.5031 37.7588 36.6402 38.3485 36.7668C42.1595 37.5906 46.5336 38.0254 50.999 38.0254C55.4644 38.0254 59.8397 37.5906 63.6495 36.768C64.2404 36.6402 64.8092 36.5031 65.3666 36.3602C65.5377 36.3156 65.7007 36.2688 65.8684 36.223C66.2499 36.1199 66.6246 36.0145 66.9888 35.9031C67.1749 35.8469 67.3553 35.7883 67.5368 35.7309C67.8745 35.623 68.2028 35.5105 68.5243 35.3969C68.6966 35.3359 68.8677 35.275 69.0353 35.2117C69.3672 35.0863 69.6852 34.9574 69.9985 34.8262C70.1326 34.7699 70.2725 34.7148 70.4032 34.6574C70.8379 34.4664 71.2576 34.2707 71.6542 34.0668C71.66 34.0633 71.6658 34.0609 71.6716 34.0574C72.0589 33.8582 72.4243 33.6508 72.7735 33.441C72.8868 33.3719 72.9909 33.3016 73.1007 33.2313C73.3354 33.0813 73.5632 32.9312 73.7794 32.7766C73.8951 32.6934 74.0049 32.609 74.1159 32.5258C74.3102 32.377 74.4963 32.2258 74.6732 32.0723C74.7322 32.0207 74.8027 31.9727 74.8594 31.9211L74.8582 31.9199ZM74.8582 48.2887V60.1598C74.8582 62.8773 70.3396 65.6359 63.335 67.2004C63.2737 67.2051 63.2136 67.2156 63.1547 67.2285C59.5021 68.016 55.2482 68.4109 50.9955 68.4098C48.8692 68.4098 46.7428 68.3113 44.6917 68.1145C42.6405 67.9176 40.6656 67.6211 38.8399 67.2273C38.7832 67.2133 38.7266 67.2051 38.6699 67.2004C31.663 65.6359 27.1432 62.8785 27.1432 60.1598V48.2887C27.2022 48.3426 27.2739 48.393 27.3352 48.4457C27.5075 48.5945 27.6878 48.7422 27.8763 48.8875C27.9908 48.9754 28.1052 49.0633 28.2255 49.15C28.4348 49.3 28.6568 49.4477 28.8834 49.593C28.999 49.6668 29.1089 49.7418 29.228 49.8145C29.5633 50.0172 29.9136 50.2152 30.2825 50.4074C30.3114 50.4227 30.338 50.4379 30.3669 50.452C30.7507 50.6488 31.1566 50.8398 31.5775 51.0262C31.722 51.0895 31.8746 51.1504 32.0226 51.2125C32.3198 51.3379 32.6227 51.4609 32.9372 51.5793C33.1164 51.6473 33.2991 51.7129 33.4841 51.7785C33.7917 51.8887 34.1073 51.9953 34.4299 52.0996C34.6196 52.1605 34.8092 52.2227 35.0046 52.2812C35.3584 52.3891 35.7238 52.4922 36.0938 52.593C36.2684 52.641 36.4395 52.6902 36.6176 52.7359C37.1714 52.8789 37.738 53.016 38.3253 53.1426C38.3554 53.1496 38.3889 53.1555 38.4236 53.159C42.2161 53.9723 46.5636 54.4023 51.0013 54.4023C55.439 54.4023 59.7784 53.9734 63.5697 53.1613C63.6056 53.1566 63.6414 53.1508 63.6773 53.1426C64.2647 53.0148 64.8312 52.8789 65.3851 52.7359C65.5643 52.6902 65.7342 52.6398 65.9088 52.593C66.2788 52.4922 66.6442 52.3891 66.998 52.2812C67.1934 52.2215 67.3831 52.1605 67.5727 52.0996C67.8953 51.9953 68.2109 51.8887 68.5185 51.7785C68.7023 51.7129 68.8862 51.6473 69.0654 51.5793C69.3799 51.4598 69.6817 51.3367 69.98 51.2125C70.128 51.1504 70.2806 51.0895 70.4252 51.0262C70.846 50.841 71.2507 50.65 71.6357 50.452C71.6646 50.4367 71.6912 50.4215 71.7201 50.4074C72.0901 50.2152 72.4405 50.0172 72.7747 49.8145C72.8949 49.7418 73.0036 49.6668 73.1192 49.593C73.347 49.4477 73.5678 49.3 73.7771 49.15C73.8974 49.0633 74.0118 48.9766 74.1263 48.8875C74.3148 48.7422 74.4952 48.5945 74.6674 48.4457C74.7287 48.393 74.7992 48.3426 74.8582 48.2887ZM74.8582 76.5355C74.8582 80.4367 65.0602 84.7844 51.0002 84.7844C36.9402 84.7844 27.1421 80.4367 27.1421 76.5355V64.6469C27.1987 64.6984 27.2693 64.7477 27.3282 64.7992C27.5028 64.9504 27.6844 65.0992 27.8763 65.2469C27.9873 65.3324 28.0995 65.418 28.2162 65.5023C28.4302 65.6559 28.6568 65.807 28.8892 65.9559C28.9979 66.0262 29.1019 66.0977 29.2152 66.1656C29.5691 66.3801 29.9367 66.591 30.3299 66.7937C30.331 66.7937 30.3322 66.7938 30.3333 66.7961C30.7253 66.9988 31.1404 67.1945 31.5694 67.3855C31.7058 67.4465 31.8515 67.5039 31.9914 67.5637C32.2955 67.6926 32.6054 67.8191 32.928 67.9422C33.1002 68.0078 33.2772 68.0711 33.4541 68.1355C33.7674 68.248 34.0888 68.3582 34.4184 68.466C34.6034 68.5258 34.7872 68.5867 34.9768 68.6453C35.3341 68.7555 35.703 68.8609 36.0764 68.9641C36.2476 69.0109 36.4141 69.0602 36.5887 69.1059C37.1413 69.2512 37.7079 69.3895 38.2941 69.5195C38.3462 69.5312 38.3993 69.5383 38.4514 69.543C42.2369 70.3516 46.5717 70.7793 50.999 70.7793C55.4263 70.7793 59.7599 70.3527 63.5478 69.543C63.5998 69.5383 63.653 69.5312 63.705 69.5195C64.2912 69.3906 64.8578 69.2512 65.4105 69.1059C65.5839 69.0602 65.7493 69.0121 65.9192 68.9652C66.295 68.8621 66.665 68.7555 67.0246 68.6453C67.2131 68.5879 67.3958 68.5281 67.5785 68.4684C67.9092 68.3605 68.2329 68.2492 68.5486 68.1355C68.7231 68.0723 68.8977 68.009 69.0689 67.9445C69.3938 67.8203 69.7071 67.6926 70.0135 67.5625C70.1511 67.5039 70.2933 67.4477 70.4275 67.3879C71.29 67.0047 72.0774 66.5969 72.7851 66.1668C72.8972 66.0988 73.0001 66.0273 73.1088 65.9582C73.3424 65.8082 73.5702 65.657 73.7852 65.5023C73.9008 65.4191 74.0118 65.3336 74.1217 65.2492C74.3148 65.1016 74.4975 64.9516 74.6732 64.7992C74.7322 64.7488 74.8016 64.6996 74.8582 64.648V76.5355Z",
10303
- fill: Te.silhouette
10331
+ fill: Oe.silhouette
10304
10332
  }
10305
10333
  ),
10306
10334
  /* @__PURE__ */ e(
10307
10335
  "path",
10308
10336
  {
10309
10337
  d: "M33.2089 38.8535C31.3993 38.8535 29.9263 40.3453 29.9263 42.1805C29.9263 44.0156 31.3982 45.5062 33.2089 45.5062C35.0196 45.5062 36.4903 44.0145 36.4903 42.1805C36.4903 40.3465 35.0184 38.8535 33.2089 38.8535ZM33.2089 43.1625C32.6735 43.1625 32.2388 42.7219 32.2388 42.1805C32.2388 41.6391 32.6735 41.1973 33.2089 41.1973C33.7442 41.1973 34.1778 41.6379 34.1778 42.1805C34.1778 42.723 33.7431 43.1625 33.2089 43.1625Z",
10310
- fill: Te.silhouette
10338
+ fill: Oe.silhouette
10311
10339
  }
10312
10340
  ),
10313
10341
  /* @__PURE__ */ e(
10314
10342
  "path",
10315
10343
  {
10316
10344
  d: "M33.2089 54.6777C31.3993 54.6777 29.9263 56.1695 29.9263 58.0047C29.9263 59.8398 31.3982 61.3316 33.2089 61.3316C35.0196 61.3316 36.4903 59.8398 36.4903 58.0047C36.4903 56.1695 35.0184 54.6777 33.2089 54.6777ZM33.2089 58.9879C32.6735 58.9879 32.2388 58.5473 32.2388 58.0047C32.2388 57.4621 32.6735 57.0215 33.2089 57.0215C33.7442 57.0215 34.1778 57.4621 34.1778 58.0047C34.1778 58.5473 33.7431 58.9879 33.2089 58.9879Z",
10317
- fill: Te.silhouette
10345
+ fill: Oe.silhouette
10318
10346
  }
10319
10347
  ),
10320
10348
  /* @__PURE__ */ e(
10321
10349
  "path",
10322
10350
  {
10323
10351
  d: "M33.2089 70.5C31.3993 70.5 29.9263 71.9918 29.9263 73.827C29.9263 75.6621 31.3982 77.1539 33.2089 77.1539C35.0196 77.1539 36.4903 75.6621 36.4903 73.827C36.4903 71.9918 35.0184 70.5 33.2089 70.5ZM33.2089 74.8102C32.6735 74.8102 32.2388 74.3695 32.2388 73.827C32.2388 73.2844 32.6735 72.8438 33.2089 72.8438C33.7442 72.8438 34.1778 73.2844 34.1778 73.827C34.1778 74.3695 33.7431 74.8102 33.2089 74.8102Z",
10324
- fill: Te.silhouette
10352
+ fill: Oe.silhouette
10325
10353
  }
10326
10354
  ),
10327
10355
  /* @__PURE__ */ e(
10328
10356
  "path",
10329
10357
  {
10330
10358
  d: "M70.0215 38.2852C69.3821 38.2852 68.8652 38.809 68.8652 39.457V44.3332C68.8652 44.9812 69.3821 45.5051 70.0215 45.5051C70.6609 45.5051 71.1777 44.9812 71.1777 44.3332V39.457C71.1777 38.809 70.6609 38.2852 70.0215 38.2852Z",
10331
- fill: Te.silhouette
10359
+ fill: Oe.silhouette
10332
10360
  }
10333
10361
  ),
10334
10362
  /* @__PURE__ */ e(
10335
10363
  "path",
10336
10364
  {
10337
10365
  d: "M70.0215 54.3926C69.3821 54.3926 68.8652 54.9164 68.8652 55.5645V60.4406C68.8652 61.0887 69.3821 61.6125 70.0215 61.6125C70.6609 61.6125 71.1777 61.0887 71.1777 60.4406V55.5645C71.1777 54.9164 70.6609 54.3926 70.0215 54.3926Z",
10338
- fill: Te.silhouette
10366
+ fill: Oe.silhouette
10339
10367
  }
10340
10368
  ),
10341
10369
  /* @__PURE__ */ e(
10342
10370
  "path",
10343
10371
  {
10344
10372
  d: "M70.0215 70.5C69.3821 70.5 68.8652 71.0238 68.8652 71.6719V76.5492C68.8652 77.1973 69.3821 77.7211 70.0215 77.7211C70.6609 77.7211 71.1777 77.1973 71.1777 76.5492V71.6719C71.1777 71.0238 70.6609 70.5 70.0215 70.5Z",
10345
- fill: Te.silhouette
10373
+ fill: Oe.silhouette
10346
10374
  }
10347
10375
  ),
10348
10376
  /* @__PURE__ */ e(
10349
10377
  "path",
10350
10378
  {
10351
10379
  d: "M65.77 39.7617C65.1306 39.7617 64.6138 40.2855 64.6138 40.9336V45.8098C64.6138 46.4578 65.1306 46.9816 65.77 46.9816C66.4094 46.9816 66.9263 46.4578 66.9263 45.8098V40.9336C66.9263 40.2855 66.4094 39.7617 65.77 39.7617Z",
10352
- fill: Te.silhouette
10380
+ fill: Oe.silhouette
10353
10381
  }
10354
10382
  ),
10355
10383
  /* @__PURE__ */ e(
10356
10384
  "path",
10357
10385
  {
10358
10386
  d: "M65.77 55.8691C65.1306 55.8691 64.6138 56.393 64.6138 57.041V61.9172C64.6138 62.5652 65.1306 63.0891 65.77 63.0891C66.4094 63.0891 66.9263 62.5652 66.9263 61.9172V57.041C66.9263 56.393 66.4094 55.8691 65.77 55.8691Z",
10359
- fill: Te.silhouette
10387
+ fill: Oe.silhouette
10360
10388
  }
10361
10389
  ),
10362
10390
  /* @__PURE__ */ e(
10363
10391
  "path",
10364
10392
  {
10365
10393
  d: "M65.77 71.9766C65.1306 71.9766 64.6138 72.5004 64.6138 73.1484V78.0246C64.6138 78.6727 65.1306 79.1965 65.77 79.1965C66.4094 79.1965 66.9263 78.6727 66.9263 78.0246V73.1484C66.9263 72.5004 66.4094 71.9766 65.77 71.9766Z",
10366
- fill: Te.silhouette
10394
+ fill: Oe.silhouette
10367
10395
  }
10368
10396
  ),
10369
10397
  /* @__PURE__ */ e(
10370
10398
  "path",
10371
10399
  {
10372
10400
  d: "M61.2939 40.7246C60.6545 40.7246 60.1377 41.2484 60.1377 41.8965V46.7727C60.1377 47.4207 60.6545 47.9445 61.2939 47.9445C61.9334 47.9445 62.4502 47.4207 62.4502 46.7727V41.8965C62.4502 41.2484 61.9334 40.7246 61.2939 40.7246Z",
10373
- fill: Te.silhouette
10401
+ fill: Oe.silhouette
10374
10402
  }
10375
10403
  ),
10376
10404
  /* @__PURE__ */ e(
10377
10405
  "path",
10378
10406
  {
10379
10407
  d: "M61.2939 56.832C60.6545 56.832 60.1377 57.3559 60.1377 58.0039V62.8801C60.1377 63.5281 60.6545 64.052 61.2939 64.052C61.9334 64.052 62.4502 63.5281 62.4502 62.8801V58.0039C62.4502 57.3559 61.9334 56.832 61.2939 56.832Z",
10380
- fill: Te.silhouette
10408
+ fill: Oe.silhouette
10381
10409
  }
10382
10410
  ),
10383
10411
  /* @__PURE__ */ e(
10384
10412
  "path",
10385
10413
  {
10386
10414
  d: "M61.2939 72.9395C60.6545 72.9395 60.1377 73.4633 60.1377 74.1113V78.9875C60.1377 79.6355 60.6545 80.1594 61.2939 80.1594C61.9334 80.1594 62.4502 79.6355 62.4502 78.9875V74.1113C62.4502 73.4633 61.9334 72.9395 61.2939 72.9395Z",
10387
- fill: Te.silhouette
10415
+ fill: Oe.silhouette
10388
10416
  }
10389
10417
  ),
10390
10418
  /* @__PURE__ */ e(
10391
10419
  "path",
10392
10420
  {
10393
10421
  d: "M39.0489 24.4037C39.131 24.4037 39.2154 24.3944 39.2986 24.3768C42.7316 23.6127 46.6755 23.185 51.0207 23.11C51.659 23.0983 52.1677 22.5651 52.1561 21.917C52.1446 21.2701 51.652 20.7451 50.9791 20.7662C46.4813 20.8448 42.3835 21.2889 38.8015 22.0881C38.1782 22.2264 37.7828 22.8522 37.9204 23.4838C38.0395 24.0311 38.5182 24.4037 39.0489 24.4037Z",
10394
- fill: Te.silhouette
10422
+ fill: Oe.silhouette
10395
10423
  }
10396
10424
  ),
10397
10425
  /* @__PURE__ */ e(
10398
10426
  "path",
10399
10427
  {
10400
10428
  d: "M32.5406 26.6215C32.7407 26.6215 32.9442 26.57 33.128 26.4586C33.1315 26.4563 33.5096 26.2336 34.2889 25.9055C34.8786 25.6582 35.1584 24.9727 34.9144 24.3739C34.6704 23.775 33.9917 23.4926 33.4032 23.7399C32.4632 24.1348 31.9926 24.4149 31.9417 24.4465C31.396 24.7782 31.219 25.4942 31.544 26.0485C31.7613 26.4164 32.1452 26.6204 32.5395 26.6204L32.5406 26.6215Z",
10401
- fill: Te.silhouette
10429
+ fill: Oe.silhouette
10402
10430
  }
10403
10431
  ),
10404
10432
  /* @__PURE__ */ e(
10405
10433
  "path",
10406
10434
  {
10407
10435
  d: "M92.7251 26.7272L82.3845 29.3124C81.6929 29.4856 80.9911 29.0642 80.8179 28.3727C80.6447 27.6799 81.066 26.978 81.7576 26.8048L92.0982 24.2196C92.791 24.0464 93.4929 24.4678 93.6661 25.1593C93.8393 25.8521 93.4179 26.554 92.7251 26.7272Z",
10408
- fill: Te.accent,
10436
+ fill: Oe.accent,
10409
10437
  fillOpacity: "0.65"
10410
10438
  }
10411
10439
  ),
@@ -10413,7 +10441,7 @@ function Es({ width: t, height: r }) {
10413
10441
  "path",
10414
10442
  {
10415
10443
  d: "M94.4649 11.0082L80.2465 21.3488C79.6701 21.7676 78.8609 21.6409 78.4408 21.0632C78.022 20.4867 78.1487 19.6775 78.7265 19.2574L92.9448 8.91682C93.5213 8.49803 94.3305 8.6247 94.7505 9.20248C95.1693 9.77897 95.0414 10.5881 94.4649 11.0082Z",
10416
- fill: Te.accent,
10444
+ fill: Oe.accent,
10417
10445
  fillOpacity: "0.65"
10418
10446
  }
10419
10447
  ),
@@ -10421,7 +10449,7 @@ function Es({ width: t, height: r }) {
10421
10449
  "path",
10422
10450
  {
10423
10451
  d: "M78.0091 10.6269L74.1314 17.0898C73.7643 17.7025 72.9706 17.9002 72.358 17.5331C71.7466 17.1673 71.5475 16.3724 71.9146 15.7597L75.7923 9.29684C76.1594 8.68545 76.9544 8.48769 77.5657 8.85349C78.1784 9.22058 78.3762 10.0155 78.0091 10.6269Z",
10424
- fill: Te.accent,
10452
+ fill: Oe.accent,
10425
10453
  fillOpacity: "0.65"
10426
10454
  }
10427
10455
  )
@@ -10739,7 +10767,7 @@ function bd({ onClick: t }) {
10739
10767
  }
10740
10768
  );
10741
10769
  }
10742
- const se = {
10770
+ const ae = {
10743
10771
  c46F16B: "#46F16B",
10744
10772
  c48504C: "#48504C",
10745
10773
  c64B5F6: "#64B5F6",
@@ -10770,14 +10798,14 @@ function Ls({ width: t, height: r }) {
10770
10798
  fill: "none",
10771
10799
  xmlns: "http://www.w3.org/2000/svg",
10772
10800
  children: [
10773
- /* @__PURE__ */ e("rect", { x: "228", y: "55.5", width: "55", height: "20", fill: se.cD6EBFD }),
10801
+ /* @__PURE__ */ e("rect", { x: "228", y: "55.5", width: "55", height: "20", fill: ae.cD6EBFD }),
10774
10802
  /* @__PURE__ */ e(
10775
10803
  "path",
10776
10804
  {
10777
10805
  fillRule: "evenodd",
10778
10806
  clipRule: "evenodd",
10779
10807
  d: "M75 238.124V197.28L163.523 63.5H217.029V194.32H240V238.124H217.029V252.5H169.126V238.124H75ZM125.424 194.32L172.487 119.143V194.32H125.424Z",
10780
- fill: se.cBBDEFB,
10808
+ fill: ae.cBBDEFB,
10781
10809
  fillOpacity: "0.6"
10782
10810
  }
10783
10811
  ),
@@ -10786,8 +10814,8 @@ function Ls({ width: t, height: r }) {
10786
10814
  "path",
10787
10815
  {
10788
10816
  d: "M334.5 274.5C381.168 274.5 419 227.266 419 169C419 110.734 381.168 63.5 334.5 63.5C287.832 63.5 250 110.734 250 169C250 227.266 287.832 274.5 334.5 274.5Z",
10789
- fill: se.cEFF3F8,
10790
- stroke: se.c67AEE6,
10817
+ fill: ae.cEFF3F8,
10818
+ stroke: ae.c67AEE6,
10791
10819
  strokeWidth: "5"
10792
10820
  }
10793
10821
  ),
@@ -10795,68 +10823,68 @@ function Ls({ width: t, height: r }) {
10795
10823
  "path",
10796
10824
  {
10797
10825
  d: "M413 197.5C411.397 211.835 402.919 230.898 389.361 246.49C375.596 262.32 356.651 274.5 334.496 274.5C311.331 274.5 292.389 261.672 278.878 245.52C265.592 229.638 257.606 210.603 256 197.5H413Z",
10798
- fill: se.cD5C7BD
10826
+ fill: ae.cD5C7BD
10799
10827
  }
10800
10828
  ),
10801
10829
  /* @__PURE__ */ e(
10802
10830
  "path",
10803
10831
  {
10804
10832
  d: "M278.887 211.766H391.104L392.583 222.856C392.687 223.635 392.08 224.328 391.294 224.328H277.961C277.14 224.328 276.525 223.577 276.686 222.773L278.887 211.766Z",
10805
- fill: se.cCABEB1
10833
+ fill: ae.cCABEB1
10806
10834
  }
10807
10835
  ),
10808
10836
  /* @__PURE__ */ e(
10809
10837
  "path",
10810
10838
  {
10811
10839
  d: "M287.68 218.884L289.354 213.022H378.961L381.473 218.884H287.68Z",
10812
- fill: se.cC0B2A2
10840
+ fill: ae.cC0B2A2
10813
10841
  }
10814
10842
  ),
10815
10843
  /* @__PURE__ */ e(
10816
10844
  "path",
10817
10845
  {
10818
10846
  d: "M381.944 218.803L381.58 212.266H386.385L386.022 218.803H381.944Z",
10819
- fill: se.c956847,
10820
- stroke: se.c48504C
10847
+ fill: ae.c956847,
10848
+ stroke: ae.c48504C
10821
10849
  }
10822
10850
  ),
10823
10851
  /* @__PURE__ */ e(
10824
10852
  "path",
10825
10853
  {
10826
10854
  d: "M283.124 218.803L282.768 213.104H287.565L287.209 218.803H283.124Z",
10827
- fill: se.c956847,
10828
- stroke: se.c48504C
10855
+ fill: ae.c956847,
10856
+ stroke: ae.c48504C
10829
10857
  }
10830
10858
  ),
10831
10859
  /* @__PURE__ */ e(
10832
10860
  "path",
10833
10861
  {
10834
10862
  d: "M285.902 212.103L284.935 186.306H279.606C278.151 186.306 277.004 187.542 277.113 188.993L278.673 209.79C278.77 211.095 279.857 212.103 281.166 212.103H285.902Z",
10835
- fill: se.cC8CEF4,
10836
- stroke: se.c48504C
10863
+ fill: ae.cC8CEF4,
10864
+ stroke: ae.c48504C
10837
10865
  }
10838
10866
  ),
10839
10867
  /* @__PURE__ */ e(
10840
10868
  "path",
10841
10869
  {
10842
10870
  d: "M383.256 212.103L384.638 186.306H389.556C391.007 186.306 392.153 187.537 392.05 188.984L390.564 209.782C390.471 211.09 389.382 212.103 388.07 212.103H383.256Z",
10843
- fill: se.cC8CEF4,
10844
- stroke: se.c48504C
10871
+ fill: ae.cC8CEF4,
10872
+ stroke: ae.c48504C
10845
10873
  }
10846
10874
  ),
10847
10875
  /* @__PURE__ */ e(
10848
10876
  "path",
10849
10877
  {
10850
10878
  d: "M284.497 178.155C284.455 176.194 286.034 174.581 287.996 174.581H381.904C383.895 174.581 385.485 176.24 385.401 178.23L384.066 209.59C383.987 211.463 382.445 212.941 380.569 212.941H288.663C286.759 212.941 285.205 211.419 285.164 209.515L284.497 178.155Z",
10851
- fill: se.cC8CEF4,
10852
- stroke: se.c48504C
10879
+ fill: ae.cC8CEF4,
10880
+ stroke: ae.c48504C
10853
10881
  }
10854
10882
  ),
10855
10883
  /* @__PURE__ */ e(
10856
10884
  "path",
10857
10885
  {
10858
10886
  d: "M284.845 181.524C284.792 179.279 286.598 177.431 288.844 177.431H380.687C382.948 177.431 384.76 179.304 384.684 181.565L383.774 208.737C383.701 210.893 381.933 212.603 379.776 212.603H289.48C287.307 212.603 285.532 210.869 285.481 208.697L284.845 181.524Z",
10859
- fill: se.cBBC3F5
10887
+ fill: ae.cBBC3F5
10860
10888
  }
10861
10889
  ),
10862
10890
  /* @__PURE__ */ e(
@@ -10873,7 +10901,7 @@ function Ls({ width: t, height: r }) {
10873
10901
  "path",
10874
10902
  {
10875
10903
  d: "M301 146.5C301 145.395 301.887 144.5 302.98 144.5H367.02C368.114 144.5 369 145.395 369 146.5V160.411H301V146.5Z",
10876
- fill: se.cFFFFFF
10904
+ fill: ae.cFFFFFF
10877
10905
  }
10878
10906
  )
10879
10907
  }
@@ -10883,42 +10911,42 @@ function Ls({ width: t, height: r }) {
10883
10911
  "path",
10884
10912
  {
10885
10913
  d: "M301 146.191C301 145.257 301.748 144.5 302.671 144.5H356.701C357.624 144.5 358.372 145.257 358.372 146.191V157.949H301V146.191Z",
10886
- fill: se.cFFFFFF
10914
+ fill: ae.cFFFFFF
10887
10915
  }
10888
10916
  ),
10889
10917
  /* @__PURE__ */ e(
10890
10918
  "path",
10891
10919
  {
10892
10920
  d: "M301.336 146.607C301.336 145.673 302.08 144.916 302.999 144.916H367.01C367.929 144.916 368.673 145.673 368.673 146.607V152.523H301.336V146.607Z",
10893
- fill: se.cD6D6D6
10921
+ fill: ae.cD6D6D6
10894
10922
  }
10895
10923
  ),
10896
10924
  /* @__PURE__ */ e(
10897
10925
  "path",
10898
10926
  {
10899
10927
  d: "M368.673 152.523H301.336V174.5H368.673V152.523Z",
10900
- fill: se.cF4F4F4
10928
+ fill: ae.cF4F4F4
10901
10929
  }
10902
10930
  ),
10903
10931
  /* @__PURE__ */ e(
10904
10932
  "path",
10905
10933
  {
10906
10934
  d: "M307.685 150.417C308.607 150.417 309.356 149.66 309.356 148.726C309.356 147.793 308.607 147.036 307.685 147.036C306.762 147.036 306.014 147.793 306.014 148.726C306.014 149.66 306.762 150.417 307.685 150.417Z",
10907
- fill: se.cEE8080
10935
+ fill: ae.cEE8080
10908
10936
  }
10909
10937
  ),
10910
10938
  /* @__PURE__ */ e(
10911
10939
  "path",
10912
10940
  {
10913
10941
  d: "M313.532 150.417C314.455 150.417 315.203 149.66 315.203 148.726C315.203 147.793 314.455 147.036 313.532 147.036C312.609 147.036 311.861 147.793 311.861 148.726C311.861 149.66 312.609 150.417 313.532 150.417Z",
10914
- fill: se.cE5EE80
10942
+ fill: ae.cE5EE80
10915
10943
  }
10916
10944
  ),
10917
10945
  /* @__PURE__ */ e(
10918
10946
  "path",
10919
10947
  {
10920
10948
  d: "M318.546 150.417C319.469 150.417 320.217 149.66 320.217 148.726C320.217 147.793 319.469 147.036 318.546 147.036C317.623 147.036 316.875 147.793 316.875 148.726C316.875 149.66 317.623 150.417 318.546 150.417Z",
10921
- fill: se.c46F16B
10949
+ fill: ae.c46F16B
10922
10950
  }
10923
10951
  )
10924
10952
  ] }),
@@ -10926,14 +10954,14 @@ function Ls({ width: t, height: r }) {
10926
10954
  "path",
10927
10955
  {
10928
10956
  d: "M301.16 146C301.16 145.172 301.832 144.5 302.66 144.5H367.33C368.159 144.5 368.83 145.172 368.83 146V174.419H301.16V146Z",
10929
- stroke: se.c48504C
10957
+ stroke: ae.c48504C
10930
10958
  }
10931
10959
  ),
10932
10960
  /* @__PURE__ */ e(
10933
10961
  "path",
10934
10962
  {
10935
10963
  d: "M395.29 207.579H423.344M354.255 236.889H369.329M327.038 222.234H347.556M350.905 222.234H358.024M288.097 230.19H304.846M253.344 210.091H272.605M278.467 246.938H295.216M297.309 246.938H303.59M337.088 252.801H354.255",
10936
- stroke: se.c86512B,
10964
+ stroke: ae.c86512B,
10937
10965
  strokeWidth: "2",
10938
10966
  strokeLinecap: "round"
10939
10967
  }
@@ -10943,21 +10971,21 @@ function Ls({ width: t, height: r }) {
10943
10971
  "path",
10944
10972
  {
10945
10973
  d: "M430.241 125.78C430.987 105.807 437.521 90.4065 449.841 79.5799C462.161 68.7532 478.867 63.3398 499.961 63.3398C513.961 63.3398 525.907 65.7665 535.801 70.6199C545.881 75.4732 553.441 82.0998 558.481 90.4998C563.707 98.8998 566.321 108.327 566.321 118.78C566.321 131.1 563.241 141.18 557.081 149.02C550.921 156.673 543.734 161.9 535.521 164.7V165.82C546.161 169.367 554.561 175.247 560.721 183.46C566.881 191.673 569.961 202.22 569.961 215.1C569.961 226.673 567.254 236.94 561.841 245.9C560.436 248.258 558.849 250.481 557.081 252.569L443.5 252.662C432.5 241 427.721 230.5 427.721 207.82H474.201C474.387 216.033 476.721 222.567 481.201 227.42C485.681 232.087 492.214 234.42 500.801 234.42C508.081 234.42 513.681 232.367 517.601 228.26C521.707 223.967 523.761 218.367 523.761 211.46C523.761 202.5 520.867 196.06 515.081 192.14C509.481 188.033 500.427 185.98 487.921 185.98H478.961V147.06H487.921C497.441 147.06 505.094 145.473 510.881 142.3C516.854 138.94 519.841 133.06 519.841 124.66C519.841 117.94 517.974 112.713 514.241 108.98C510.507 105.247 505.374 103.38 498.841 103.38C491.747 103.38 486.427 105.527 482.881 109.82C479.521 114.113 477.561 119.433 477.001 125.78H430.241Z",
10946
- fill: se.cBBDEFB,
10974
+ fill: ae.cBBDEFB,
10947
10975
  fillOpacity: "0.6"
10948
10976
  }
10949
10977
  ),
10950
- /* @__PURE__ */ e("rect", { x: "43", y: "87.5", width: "46", height: "20", fill: se.cD6EBFD }),
10951
- /* @__PURE__ */ e("rect", { x: "29", y: "109.5", width: "46", height: "20", fill: se.cD6EBFD }),
10952
- /* @__PURE__ */ e("rect", { x: "29", y: "65.5", width: "46", height: "20", fill: se.cD6EBFD }),
10953
- /* @__PURE__ */ e("rect", { x: "356", y: "0.5", width: "55", height: "20", fill: se.cD6EBFD }),
10954
- /* @__PURE__ */ e("rect", { x: "572", y: "142.5", width: "55", height: "20", fill: se.cD6EBFD }),
10955
- /* @__PURE__ */ e("rect", { x: "589", y: "120.5", width: "55", height: "20", fill: se.cD6EBFD }),
10978
+ /* @__PURE__ */ e("rect", { x: "43", y: "87.5", width: "46", height: "20", fill: ae.cD6EBFD }),
10979
+ /* @__PURE__ */ e("rect", { x: "29", y: "109.5", width: "46", height: "20", fill: ae.cD6EBFD }),
10980
+ /* @__PURE__ */ e("rect", { x: "29", y: "65.5", width: "46", height: "20", fill: ae.cD6EBFD }),
10981
+ /* @__PURE__ */ e("rect", { x: "356", y: "0.5", width: "55", height: "20", fill: ae.cD6EBFD }),
10982
+ /* @__PURE__ */ e("rect", { x: "572", y: "142.5", width: "55", height: "20", fill: ae.cD6EBFD }),
10983
+ /* @__PURE__ */ e("rect", { x: "589", y: "120.5", width: "55", height: "20", fill: ae.cD6EBFD }),
10956
10984
  /* @__PURE__ */ e(
10957
10985
  "path",
10958
10986
  {
10959
10987
  d: "M3 255.5L651 255.5",
10960
- stroke: se.c64B5F6,
10988
+ stroke: ae.c64B5F6,
10961
10989
  strokeWidth: "5",
10962
10990
  strokeLinecap: "round"
10963
10991
  }
@@ -10967,7 +10995,7 @@ function Ls({ width: t, height: r }) {
10967
10995
  {
10968
10996
  width: "179",
10969
10997
  height: "192",
10970
- fill: se.cFFFFFF,
10998
+ fill: ae.cFFFFFF,
10971
10999
  transform: "translate(246 60.5)"
10972
11000
  }
10973
11001
  ) }) })
@@ -11806,12 +11834,12 @@ const Cd = (t) => {
11806
11834
  footerProps: C = { borderTop: !0 },
11807
11835
  variantTag: I = "info"
11808
11836
  }) => {
11809
- const A = le(null), [M, x] = B("100vh");
11810
- Y(() => {
11837
+ const z = le(null), [A, x] = B("100vh");
11838
+ Q(() => {
11811
11839
  const k = () => {
11812
- if (A.current) {
11813
- const z = A.current.getBoundingClientRect().top;
11814
- x(`calc(100vh - ${z}px)`);
11840
+ if (z.current) {
11841
+ const M = z.current.getBoundingClientRect().top;
11842
+ x(`calc(100vh - ${M}px)`);
11815
11843
  }
11816
11844
  };
11817
11845
  return k(), window.addEventListener("resize", k), () => window.removeEventListener("resize", k);
@@ -11835,7 +11863,7 @@ const Cd = (t) => {
11835
11863
  return /* @__PURE__ */ u(
11836
11864
  h,
11837
11865
  {
11838
- ref: A,
11866
+ ref: z,
11839
11867
  height: r,
11840
11868
  customMinHeight: n,
11841
11869
  customHeight: o,
@@ -11847,7 +11875,7 @@ const Cd = (t) => {
11847
11875
  style: {
11848
11876
  backgroundColor: "var(--sa-background-primary, #ffffff)",
11849
11877
  display: "flex",
11850
- minHeight: M,
11878
+ minHeight: A,
11851
11879
  ...(g == null ? void 0 : g.style) ?? {}
11852
11880
  },
11853
11881
  children: [
@@ -11905,7 +11933,7 @@ function vn(t) {
11905
11933
  return null;
11906
11934
  }
11907
11935
  vn.displayName = "LayoutDialog.Footer";
11908
- const je = {
11936
+ const Ze = {
11909
11937
  "lyd-root": "_lyd-root_8mm4b_1",
11910
11938
  "lyd-backdrop": "_lyd-backdrop_8mm4b_38",
11911
11939
  "lyd-panel": "_lyd-panel_8mm4b_47",
@@ -11940,11 +11968,11 @@ const je = {
11940
11968
  }
11941
11969
  ];
11942
11970
  function Ms({ value: t, onChange: r }) {
11943
- return /* @__PURE__ */ e("div", { className: je["lyd-vm-group"], role: "group", "aria-label": "View mode", children: Rs.map((n) => /* @__PURE__ */ e(
11971
+ return /* @__PURE__ */ e("div", { className: Ze["lyd-vm-group"], role: "group", "aria-label": "View mode", children: Rs.map((n) => /* @__PURE__ */ e(
11944
11972
  "button",
11945
11973
  {
11946
11974
  type: "button",
11947
- className: je["lyd-vm-btn"],
11975
+ className: Ze["lyd-vm-btn"],
11948
11976
  "data-active": t === n.mode,
11949
11977
  "aria-label": `Switch to ${n.label} view`,
11950
11978
  "aria-pressed": t === n.mode,
@@ -12005,44 +12033,44 @@ function Is(t) {
12005
12033
  disableBackdropClose: p = !1,
12006
12034
  lockBodyScroll: g = !0,
12007
12035
  children: b
12008
- } = t, [D, C] = B(i), I = o ?? D, M = Ie("md") ? I : "fullscreen", x = j(
12036
+ } = t, [D, C] = B(i), I = o ?? D, A = Ie("md") ? I : "fullscreen", x = P(
12009
12037
  (Z) => {
12010
12038
  o === void 0 && C(Z), l == null || l(Z);
12011
12039
  },
12012
12040
  [o, l]
12013
12041
  ), S = le(null);
12014
- Y(() => {
12042
+ Q(() => {
12015
12043
  if (!(!r || !g))
12016
12044
  return S.current = document.body.style.overflow, document.body.style.overflow = "hidden", () => {
12017
12045
  document.body.style.overflow = S.current ?? "";
12018
12046
  };
12019
12047
  }, [r, g]);
12020
12048
  const L = le(n);
12021
- L.current = n, Y(() => {
12049
+ L.current = n, Q(() => {
12022
12050
  if (r)
12023
12051
  return xi({
12024
12052
  onEscape: f ? void 0 : () => L.current()
12025
12053
  });
12026
12054
  }, [r, f]);
12027
- const R = Ee(
12055
+ const R = Fe(
12028
12056
  () => dr(b, yn),
12029
12057
  [b]
12030
- ), k = Ee(
12058
+ ), k = Fe(
12031
12059
  () => dr(b, bn),
12032
12060
  [b]
12033
- ), z = Ee(
12061
+ ), M = Fe(
12034
12062
  () => dr(b, xn),
12035
12063
  [b]
12036
- ), G = Ee(
12064
+ ), G = Fe(
12037
12065
  () => dr(b, vn),
12038
12066
  [b]
12039
12067
  );
12040
12068
  if (!r) return null;
12041
12069
  const O = [
12042
- je["lyd-panel"],
12043
- M === "modal" && je["lyd-modal"],
12044
- M === "fullscreen" && je["lyd-fullscreen"],
12045
- M === "sidebar" && je["lyd-sidebar"]
12070
+ Ze["lyd-panel"],
12071
+ A === "modal" && Ze["lyd-modal"],
12072
+ A === "fullscreen" && Ze["lyd-fullscreen"],
12073
+ A === "sidebar" && Ze["lyd-sidebar"]
12046
12074
  ].filter(Boolean).join(" "), H = {
12047
12075
  "--lyd-max-w": zs(a),
12048
12076
  ...d !== void 0 && { "--lyd-aside-w": d }
@@ -12053,7 +12081,7 @@ function Is(t) {
12053
12081
  /* @__PURE__ */ u(
12054
12082
  "div",
12055
12083
  {
12056
- className: je["lyd-root"],
12084
+ className: Ze["lyd-root"],
12057
12085
  style: H,
12058
12086
  role: "dialog",
12059
12087
  "aria-modal": "true",
@@ -12061,21 +12089,21 @@ function Is(t) {
12061
12089
  /* @__PURE__ */ e(
12062
12090
  "div",
12063
12091
  {
12064
- className: je["lyd-backdrop"],
12092
+ className: Ze["lyd-backdrop"],
12065
12093
  onClick: N,
12066
12094
  "aria-hidden": "true"
12067
12095
  }
12068
12096
  ),
12069
12097
  /* @__PURE__ */ u("div", { className: O, children: [
12070
- /* @__PURE__ */ u("div", { className: je["lyd-header"], children: [
12071
- /* @__PURE__ */ e("div", { className: je["lyd-header-content"], children: R }),
12072
- /* @__PURE__ */ u("div", { className: je["lyd-header-actions"], children: [
12098
+ /* @__PURE__ */ u("div", { className: Ze["lyd-header"], children: [
12099
+ /* @__PURE__ */ e("div", { className: Ze["lyd-header-content"], children: R }),
12100
+ /* @__PURE__ */ u("div", { className: Ze["lyd-header-actions"], children: [
12073
12101
  c && /* @__PURE__ */ e(Ms, { value: I, onChange: x }),
12074
12102
  s && /* @__PURE__ */ e(
12075
12103
  "button",
12076
12104
  {
12077
12105
  type: "button",
12078
- className: je["lyd-close-btn"],
12106
+ className: Ze["lyd-close-btn"],
12079
12107
  onClick: n,
12080
12108
  "aria-label": "Close dialog",
12081
12109
  children: /* @__PURE__ */ e(F, { name: "Cross", size: "md" })
@@ -12083,11 +12111,11 @@ function Is(t) {
12083
12111
  )
12084
12112
  ] })
12085
12113
  ] }),
12086
- /* @__PURE__ */ u("div", { className: je["lyd-main"], children: [
12087
- /* @__PURE__ */ e("div", { className: je["lyd-body"], children: k }),
12088
- z && /* @__PURE__ */ e("aside", { className: je["lyd-aside"], children: z })
12114
+ /* @__PURE__ */ u("div", { className: Ze["lyd-main"], children: [
12115
+ /* @__PURE__ */ e("div", { className: Ze["lyd-body"], children: k }),
12116
+ M && /* @__PURE__ */ e("aside", { className: Ze["lyd-aside"], children: M })
12089
12117
  ] }),
12090
- G && /* @__PURE__ */ e("div", { className: je["lyd-footer"], children: G })
12118
+ G && /* @__PURE__ */ e("div", { className: Ze["lyd-footer"], children: G })
12091
12119
  ] })
12092
12120
  ]
12093
12121
  }
@@ -12102,7 +12130,7 @@ Cr.Aside = xn;
12102
12130
  Cr.Footer = vn;
12103
12131
  function kd({ url: t, filename: r, onClose: n }) {
12104
12132
  const o = le(n);
12105
- return o.current = n, Y(() => xi({ onEscape: () => o.current() }), []), /* @__PURE__ */ u(
12133
+ return o.current = n, Q(() => xi({ onEscape: () => o.current() }), []), /* @__PURE__ */ u(
12106
12134
  "div",
12107
12135
  {
12108
12136
  onClick: n,
@@ -12389,7 +12417,7 @@ function Ps({
12389
12417
  r,
12390
12418
  o && /* @__PURE__ */ u(ne, { children: [
12391
12419
  /* @__PURE__ */ e(nn, {}),
12392
- /* @__PURE__ */ e(Oe, { label: i, position: "top", children: /* @__PURE__ */ e(
12420
+ /* @__PURE__ */ e(Ve, { label: i, position: "top", children: /* @__PURE__ */ e(
12393
12421
  V,
12394
12422
  {
12395
12423
  variant: "tertiary",
@@ -12535,7 +12563,7 @@ function Fd({
12535
12563
  formatTitle: n
12536
12564
  }) {
12537
12565
  const { useLocation: o } = wt(), i = o();
12538
- Y(() => {
12566
+ Q(() => {
12539
12567
  let l = null, c = null;
12540
12568
  for (const d of r) {
12541
12569
  const f = d.items.find((p) => p.to ? p.to === "/" ? i.pathname === "/" : !!(p.to === i.pathname || i.pathname.startsWith(p.to + "/")) : !1);
@@ -12572,7 +12600,7 @@ const Ld = () => {
12572
12600
  function Wd(t) {
12573
12601
  var o, i;
12574
12602
  const r = t.decodedAccessToken;
12575
- return Ee(() => {
12603
+ return Fe(() => {
12576
12604
  var a, d;
12577
12605
  const l = ((d = (a = r == null ? void 0 : r.access) == null ? void 0 : a.role) == null ? void 0 : d.code) ?? "", c = Object.keys(t.role).reduce(
12578
12606
  (f, p) => {