@starasia/admin 14.49.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.cjs.js +3 -3
- package/dist/index.es.js +959 -935
- package/dist/index.umd.js +3 -3
- package/package.json +1 -1
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
|
|
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
|
|
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
|
|
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
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
174
|
+
), g = P(
|
|
175
175
|
(k) => {
|
|
176
176
|
s(
|
|
177
|
-
(
|
|
177
|
+
(M) => typeof k == "function" ? k(M) : k
|
|
178
178
|
);
|
|
179
179
|
},
|
|
180
180
|
[]
|
|
181
|
-
), b =
|
|
181
|
+
), b = P(() => s((k) => !k), []), D = P(() => s(!0), []), C = P(() => s(!1), []), I = P(
|
|
182
182
|
(k) => {
|
|
183
|
-
p((
|
|
184
|
-
const G = typeof k == "function" ? k(
|
|
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
|
-
),
|
|
189
|
+
), z = P(() => {
|
|
190
190
|
const k = Kr(n, o, i);
|
|
191
191
|
In(l, k), p(k);
|
|
192
|
-
}, [n, o, i, l]),
|
|
192
|
+
}, [n, o, i, l]), A = P(
|
|
193
193
|
(k) => {
|
|
194
194
|
d(
|
|
195
|
-
(
|
|
195
|
+
(M) => typeof k == "function" ? k(M) : k
|
|
196
196
|
);
|
|
197
197
|
},
|
|
198
198
|
[]
|
|
199
|
-
), x =
|
|
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:
|
|
208
|
+
resetWidth: z,
|
|
209
209
|
minWidth: o,
|
|
210
210
|
maxWidth: i,
|
|
211
211
|
mobileOpen: a,
|
|
212
|
-
setMobileOpen:
|
|
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
|
-
|
|
225
|
+
z,
|
|
226
226
|
o,
|
|
227
227
|
i,
|
|
228
228
|
a,
|
|
229
|
-
|
|
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 =
|
|
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 (
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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 =
|
|
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,
|
|
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
|
|
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(
|
|
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(
|
|
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:
|
|
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:
|
|
784
|
+
setCollapsed: Y,
|
|
785
785
|
width: re,
|
|
786
786
|
setWidth: J,
|
|
787
|
-
resetWidth:
|
|
788
|
-
minWidth:
|
|
789
|
-
maxWidth:
|
|
790
|
-
mobileOpen:
|
|
791
|
-
setMobileOpen:
|
|
792
|
-
} = Oo(), [
|
|
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
|
-
), [
|
|
795
|
-
|
|
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), [
|
|
799
|
-
var tt,
|
|
800
|
-
if (!
|
|
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
|
|
803
|
-
(ot = (
|
|
804
|
-
let ce = 0, ge =
|
|
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 =
|
|
807
|
-
ce = 0,
|
|
806
|
+
ge = U + (Xe.clientX - _), ce || (ce = requestAnimationFrame(() => {
|
|
807
|
+
ce = 0, fe(Ce(ge));
|
|
808
808
|
}));
|
|
809
|
-
},
|
|
810
|
-
ce && cancelAnimationFrame(ce), window.removeEventListener("pointermove", ze), window.removeEventListener("pointerup",
|
|
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",
|
|
812
|
+
window.addEventListener("pointermove", ze), window.addEventListener("pointerup", ue);
|
|
813
813
|
}, et = (E) => {
|
|
814
|
-
|
|
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
|
-
|
|
816
|
+
Q(() => {
|
|
817
817
|
const E = Me.current;
|
|
818
818
|
if (!E) return;
|
|
819
|
-
const
|
|
819
|
+
const _ = () => {
|
|
820
820
|
Ht || (nr = E.scrollTop);
|
|
821
821
|
};
|
|
822
|
-
return E.addEventListener("scroll",
|
|
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
|
|
839
|
-
const E = (
|
|
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]),
|
|
844
|
+
}, [L.menus]), Q(() => {
|
|
845
845
|
Ht = !0, Ae();
|
|
846
|
-
const E = setTimeout(Ae, 0),
|
|
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
|
|
850
|
-
if (
|
|
851
|
-
const
|
|
852
|
-
ot.top >=
|
|
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(
|
|
856
|
+
clearTimeout(E), clearTimeout(_), clearTimeout(U), clearTimeout(ce), clearTimeout(ge), clearTimeout(ze);
|
|
857
857
|
};
|
|
858
|
-
}, [
|
|
858
|
+
}, [M.pathname]), Q(() => {
|
|
859
859
|
st.current && (st.current.scrollTop = 0);
|
|
860
|
-
}, [
|
|
861
|
-
O &&
|
|
862
|
-
}, [
|
|
863
|
-
O &&
|
|
864
|
-
}, [O]),
|
|
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
|
-
},
|
|
874
|
+
}, Re = () => {
|
|
875
875
|
N(!1), i();
|
|
876
|
-
},
|
|
877
|
-
const
|
|
878
|
-
return E.children &&
|
|
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(
|
|
881
|
-
...((Jt = L.menuBottom) == null ? void 0 : Jt.flatMap(
|
|
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 (!
|
|
884
|
-
const
|
|
885
|
-
return E ===
|
|
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
|
|
890
|
-
if (!
|
|
891
|
-
const
|
|
892
|
-
(
|
|
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 :
|
|
894
|
+
if (!ge) return ce ? ce.key : U;
|
|
895
895
|
if (ce && Br(ce, ge)) return ce.key;
|
|
896
|
-
const ze =
|
|
897
|
-
return (ze == null ? void 0 : ze.key) ?? (ce == null ? void 0 : ce.key) ??
|
|
898
|
-
}, [Lt,
|
|
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
|
-
|
|
902
|
-
|
|
903
|
-
}, [
|
|
904
|
-
const Ye =
|
|
905
|
-
|
|
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
|
-
|
|
910
|
-
var
|
|
911
|
-
const E = (
|
|
909
|
+
Q(() => {
|
|
910
|
+
var _;
|
|
911
|
+
const E = (U) => {
|
|
912
912
|
var ge;
|
|
913
|
-
const ce =
|
|
914
|
-
ce && Vn.add(
|
|
915
|
-
const
|
|
916
|
-
return
|
|
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((
|
|
920
|
-
|
|
921
|
-
}), (
|
|
922
|
-
}, [
|
|
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((
|
|
925
|
-
const
|
|
926
|
-
return
|
|
924
|
+
ve((_) => {
|
|
925
|
+
const U = new Set(_);
|
|
926
|
+
return U.has(E) ? U.delete(E) : U.add(E), U;
|
|
927
927
|
});
|
|
928
928
|
};
|
|
929
|
-
|
|
930
|
-
L.menus.length !== 0 &&
|
|
931
|
-
}, [L.menus,
|
|
932
|
-
const Dr =
|
|
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,
|
|
936
|
-
if (
|
|
935
|
+
const E = L.menus, _ = he ? null : _e;
|
|
936
|
+
if (_ !== null)
|
|
937
937
|
return E.filter(
|
|
938
|
-
(ge) => ge.id ===
|
|
938
|
+
(ge) => ge.id === _ || ge.parentGroupId === _
|
|
939
939
|
);
|
|
940
|
-
const
|
|
941
|
-
return ce.length === 0 ?
|
|
942
|
-
...
|
|
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,
|
|
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(
|
|
954
|
+
children: t || /* @__PURE__ */ e(A, {})
|
|
955
955
|
}
|
|
956
956
|
);
|
|
957
957
|
const It = (E) => {
|
|
958
|
-
const
|
|
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: (
|
|
970
|
-
if (
|
|
969
|
+
onClick: (je) => {
|
|
970
|
+
if (U && ye)
|
|
971
971
|
k(E.to);
|
|
972
972
|
else if (ce)
|
|
973
973
|
if (ye) {
|
|
974
|
-
const ot =
|
|
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
|
-
|
|
1054
|
+
ue && /* @__PURE__ */ e(
|
|
1055
1055
|
qt,
|
|
1056
1056
|
{
|
|
1057
|
-
text: String(
|
|
1058
|
-
variant:
|
|
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
|
|
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 ?
|
|
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
|
-
|
|
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" :
|
|
1216
|
-
"--app-footer-zindex": O &&
|
|
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:
|
|
1228
|
-
pointerEvents:
|
|
1227
|
+
opacity: se ? 0.5 : 0,
|
|
1228
|
+
pointerEvents: se ? "auto" : "none",
|
|
1229
1229
|
transition: "opacity 0.3s"
|
|
1230
1230
|
},
|
|
1231
|
-
onClick: () =>
|
|
1231
|
+
onClick: () => ke(!1)
|
|
1232
1232
|
}
|
|
1233
1233
|
),
|
|
1234
|
-
|
|
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: () =>
|
|
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 : `${
|
|
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:
|
|
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: () =>
|
|
1286
|
-
onMouseLeave: () =>
|
|
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 =
|
|
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:
|
|
1311
|
-
justify:
|
|
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 ||
|
|
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 ?
|
|
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: () =>
|
|
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
|
-
|
|
1359
|
+
U && /* @__PURE__ */ e(
|
|
1360
1360
|
h,
|
|
1361
1361
|
{
|
|
1362
1362
|
as: "button",
|
|
1363
|
-
onClick: () =>
|
|
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: () =>
|
|
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 ||
|
|
1411
|
+
collapsed: O || he ? !1 : Z,
|
|
1412
1412
|
children: s
|
|
1413
1413
|
}
|
|
1414
1414
|
),
|
|
1415
|
-
|
|
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((
|
|
1489
|
+
fallback: E.items.map((_) => It(_))
|
|
1490
1490
|
}
|
|
1491
|
-
) : E.items.map((
|
|
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
|
-
|
|
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":
|
|
1519
|
+
"aria-valuemin": j,
|
|
1520
|
+
"aria-valuemax": K,
|
|
1521
1521
|
tabIndex: 0,
|
|
1522
1522
|
onPointerDown: dt,
|
|
1523
1523
|
onKeyDown: et,
|
|
1524
|
-
onDoubleClick:
|
|
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: () =>
|
|
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(
|
|
1595
|
-
/* @__PURE__ */ e(
|
|
1594
|
+
/* @__PURE__ */ u(Ge, { position: "bottom-right", children: [
|
|
1595
|
+
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ u(
|
|
1596
1596
|
h,
|
|
1597
1597
|
{
|
|
1598
1598
|
direction: "row",
|
|
@@ -1655,7 +1655,7 @@ function Wa({
|
|
|
1655
1655
|
}
|
|
1656
1656
|
) }),
|
|
1657
1657
|
/* @__PURE__ */ u(
|
|
1658
|
-
|
|
1658
|
+
Ue,
|
|
1659
1659
|
{
|
|
1660
1660
|
width: 280,
|
|
1661
1661
|
style: {
|
|
@@ -1726,15 +1726,15 @@ function Wa({
|
|
|
1726
1726
|
]
|
|
1727
1727
|
}
|
|
1728
1728
|
) }),
|
|
1729
|
-
(f && f.length > 0 || p) && /* @__PURE__ */ u(
|
|
1730
|
-
f == null ? void 0 : f.map((E,
|
|
1729
|
+
(f && f.length > 0 || p) && /* @__PURE__ */ u(Qe, { children: [
|
|
1730
|
+
f == null ? void 0 : f.map((E, _) => /* @__PURE__ */ e(
|
|
1731
1731
|
Je,
|
|
1732
1732
|
{
|
|
1733
1733
|
onClick: E.onClick,
|
|
1734
1734
|
startIcon: /* @__PURE__ */ e(F, { name: E.icon, size: "md" }),
|
|
1735
1735
|
children: E.label
|
|
1736
1736
|
},
|
|
1737
|
-
`${E.label}-${
|
|
1737
|
+
`${E.label}-${_}`
|
|
1738
1738
|
)),
|
|
1739
1739
|
p
|
|
1740
1740
|
] }),
|
|
@@ -1762,7 +1762,7 @@ function Wa({
|
|
|
1762
1762
|
ref: st,
|
|
1763
1763
|
flex: "1",
|
|
1764
1764
|
overflow: "overflow-y-auto",
|
|
1765
|
-
children: t || /* @__PURE__ */ e(
|
|
1765
|
+
children: t || /* @__PURE__ */ e(A, {})
|
|
1766
1766
|
}
|
|
1767
1767
|
)
|
|
1768
1768
|
] })
|
|
@@ -1785,10 +1785,10 @@ function Wa({
|
|
|
1785
1785
|
/* @__PURE__ */ e(pr, { children: "Are you sure you want to end the session and exit the page?" }),
|
|
1786
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: [
|
|
1787
1787
|
/* @__PURE__ */ e(h, { direction: "column", children: /* @__PURE__ */ e(V, { secondary: !0, onClick: xt, children: "Cancel" }) }),
|
|
1788
|
-
/* @__PURE__ */ e(h, { direction: "column", children: /* @__PURE__ */ e(V, { primary: !0, onClick:
|
|
1788
|
+
/* @__PURE__ */ e(h, { direction: "column", children: /* @__PURE__ */ e(V, { primary: !0, onClick: Re, children: "Yes, Sure" }) })
|
|
1789
1789
|
] }) }) })
|
|
1790
1790
|
] }),
|
|
1791
|
-
|
|
1791
|
+
He && /* @__PURE__ */ u(ne, { children: [
|
|
1792
1792
|
/* @__PURE__ */ e(
|
|
1793
1793
|
h,
|
|
1794
1794
|
{
|
|
@@ -1801,7 +1801,7 @@ function Wa({
|
|
|
1801
1801
|
h,
|
|
1802
1802
|
{
|
|
1803
1803
|
role: "dialog",
|
|
1804
|
-
"aria-label":
|
|
1804
|
+
"aria-label": He.item.title,
|
|
1805
1805
|
position: "fixed",
|
|
1806
1806
|
bg: "white",
|
|
1807
1807
|
borderWidth: "border",
|
|
@@ -1812,8 +1812,8 @@ function Wa({
|
|
|
1812
1812
|
padding: "sm",
|
|
1813
1813
|
gap: "spacing-2",
|
|
1814
1814
|
style: {
|
|
1815
|
-
top:
|
|
1816
|
-
left:
|
|
1815
|
+
top: He.top,
|
|
1816
|
+
left: He.left,
|
|
1817
1817
|
zIndex: 61,
|
|
1818
1818
|
minWidth: "13rem",
|
|
1819
1819
|
maxWidth: "16rem"
|
|
@@ -1830,11 +1830,11 @@ function Wa({
|
|
|
1830
1830
|
padding: "0.25rem 0.5rem 0.5rem",
|
|
1831
1831
|
letterSpacing: "0.05em"
|
|
1832
1832
|
},
|
|
1833
|
-
children:
|
|
1833
|
+
children: He.item.title
|
|
1834
1834
|
}
|
|
1835
1835
|
),
|
|
1836
|
-
(Wt =
|
|
1837
|
-
const
|
|
1836
|
+
(Wt = He.item.children) == null ? void 0 : Wt.map((E) => {
|
|
1837
|
+
const _ = ut(E.to), U = Ir(
|
|
1838
1838
|
E.badge,
|
|
1839
1839
|
R[E.id]
|
|
1840
1840
|
);
|
|
@@ -1854,12 +1854,12 @@ function Wa({
|
|
|
1854
1854
|
borderRadius: "rounded-md",
|
|
1855
1855
|
borderWidth: "border",
|
|
1856
1856
|
borderStyle: "border-solid",
|
|
1857
|
-
bg:
|
|
1858
|
-
hover:
|
|
1857
|
+
bg: _ ? "primary-inverse" : void 0,
|
|
1858
|
+
hover: _ ? void 0 : { bg: "primary-inverse" },
|
|
1859
1859
|
style: {
|
|
1860
1860
|
textAlign: "left",
|
|
1861
1861
|
borderColor: "transparent",
|
|
1862
|
-
color:
|
|
1862
|
+
color: _ ? "var(--sa-text-primary, #292a2e)" : "var(--sa-text-subtle, #505258)"
|
|
1863
1863
|
},
|
|
1864
1864
|
children: [
|
|
1865
1865
|
E.icon && /* @__PURE__ */ e(
|
|
@@ -1875,17 +1875,17 @@ function Wa({
|
|
|
1875
1875
|
{
|
|
1876
1876
|
as: "span",
|
|
1877
1877
|
fontSize: "md",
|
|
1878
|
-
fontWeight:
|
|
1878
|
+
fontWeight: _ ? "medium" : "normal",
|
|
1879
1879
|
whiteSpace: "nowrap",
|
|
1880
1880
|
style: { flex: 1 },
|
|
1881
1881
|
children: E.title
|
|
1882
1882
|
}
|
|
1883
1883
|
),
|
|
1884
|
-
|
|
1884
|
+
U && /* @__PURE__ */ e(
|
|
1885
1885
|
qt,
|
|
1886
1886
|
{
|
|
1887
|
-
text: String(
|
|
1888
|
-
variant:
|
|
1887
|
+
text: String(U.value),
|
|
1888
|
+
variant: U.variant ?? "info",
|
|
1889
1889
|
size: "xs",
|
|
1890
1890
|
border: !0
|
|
1891
1891
|
}
|
|
@@ -2231,14 +2231,14 @@ const Ko = (t, r) => {
|
|
|
2231
2231
|
lastIndex: i,
|
|
2232
2232
|
labelAlign: l = "top"
|
|
2233
2233
|
}) => {
|
|
2234
|
-
const c =
|
|
2234
|
+
const c = Fe(
|
|
2235
2235
|
() => ({
|
|
2236
2236
|
padding: 0,
|
|
2237
2237
|
paddingBottom: i ? 0 : 12,
|
|
2238
2238
|
verticalAlign: l
|
|
2239
2239
|
}),
|
|
2240
2240
|
[i, l]
|
|
2241
|
-
), s =
|
|
2241
|
+
), s = Fe(
|
|
2242
2242
|
() => ({
|
|
2243
2243
|
padding: 0,
|
|
2244
2244
|
paddingRight: 12,
|
|
@@ -2249,9 +2249,9 @@ const Ko = (t, r) => {
|
|
|
2249
2249
|
[i, l]
|
|
2250
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;
|
|
2251
2251
|
return /* @__PURE__ */ u(nt, { children: [
|
|
2252
|
-
/* @__PURE__ */ e(
|
|
2253
|
-
n ? /* @__PURE__ */ e(
|
|
2254
|
-
/* @__PURE__ */ e(
|
|
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() })
|
|
2255
2255
|
] });
|
|
2256
2256
|
}
|
|
2257
2257
|
), tl = bt(({ fields: t, separator: r, labelWidth: n }) => /* @__PURE__ */ e(ur, { withColumnBorder: !1, withRowBorder: !1, children: t.map((o, i) => /* @__PURE__ */ e(
|
|
@@ -2272,7 +2272,7 @@ const Ko = (t, r) => {
|
|
|
2272
2272
|
labelWidth: i = 150,
|
|
2273
2273
|
bordered: l = !1
|
|
2274
2274
|
}) => {
|
|
2275
|
-
const c =
|
|
2275
|
+
const c = Fe(
|
|
2276
2276
|
() => Ko(o, t),
|
|
2277
2277
|
[o, t]
|
|
2278
2278
|
), s = c.length > 2, a = () => {
|
|
@@ -2378,29 +2378,29 @@ const Ko = (t, r) => {
|
|
|
2378
2378
|
containerProps: b,
|
|
2379
2379
|
headerProps: D
|
|
2380
2380
|
}) => {
|
|
2381
|
-
const C = Ie("md"), { Link: I, useNavigate:
|
|
2381
|
+
const C = Ie("md"), { Link: I, useNavigate: z } = wt(), A = z(), x = t == null ? void 0 : t.show, S = () => {
|
|
2382
2382
|
if (typeof (t == null ? void 0 : t.onClick) == "function") {
|
|
2383
2383
|
t.onClick();
|
|
2384
2384
|
return;
|
|
2385
2385
|
}
|
|
2386
|
-
|
|
2386
|
+
A(-1, { replace: !0 });
|
|
2387
2387
|
}, L = () => {
|
|
2388
2388
|
if (!p) return null;
|
|
2389
2389
|
if (Jr(p)) return p;
|
|
2390
2390
|
const H = p.filter(
|
|
2391
2391
|
(N) => N && (N.title || N.icon)
|
|
2392
2392
|
);
|
|
2393
|
-
return H.length === 0 ? null : C ? /* @__PURE__ */ e(h, { direction: "row", gap: "md", children: H.map(({ title: N, icon: Z, buttonProps:
|
|
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(
|
|
2394
2394
|
V,
|
|
2395
2395
|
{
|
|
2396
2396
|
iconLeft: Z ? /* @__PURE__ */ e(F, { name: Z, size: "md" }) : void 0,
|
|
2397
2397
|
onClick: re,
|
|
2398
|
-
...
|
|
2398
|
+
...Y,
|
|
2399
2399
|
children: N
|
|
2400
2400
|
},
|
|
2401
2401
|
`action-${J}`
|
|
2402
|
-
)) }) : /* @__PURE__ */ u(
|
|
2403
|
-
/* @__PURE__ */ e(
|
|
2402
|
+
)) }) : /* @__PURE__ */ u(Ge, { position: "bottom-right", children: [
|
|
2403
|
+
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
|
|
2404
2404
|
V,
|
|
2405
2405
|
{
|
|
2406
2406
|
variant: "tertiary",
|
|
@@ -2414,13 +2414,13 @@ const Ko = (t, r) => {
|
|
|
2414
2414
|
"aria-label": "Actions"
|
|
2415
2415
|
}
|
|
2416
2416
|
) }),
|
|
2417
|
-
/* @__PURE__ */ e(
|
|
2418
|
-
const
|
|
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;
|
|
2419
2419
|
return /* @__PURE__ */ e(
|
|
2420
2420
|
Je,
|
|
2421
2421
|
{
|
|
2422
|
-
intent:
|
|
2423
|
-
disabled:
|
|
2422
|
+
intent: me ? "danger" : void 0,
|
|
2423
|
+
disabled: Y == null ? void 0 : Y.disabled,
|
|
2424
2424
|
startIcon: Z ? /* @__PURE__ */ e(F, { name: Z }) : void 0,
|
|
2425
2425
|
onClick: re,
|
|
2426
2426
|
children: N
|
|
@@ -2494,21 +2494,21 @@ const Ko = (t, r) => {
|
|
|
2494
2494
|
]
|
|
2495
2495
|
}
|
|
2496
2496
|
);
|
|
2497
|
-
},
|
|
2497
|
+
}, M = () => {
|
|
2498
2498
|
if (!f || f.length === 0) return null;
|
|
2499
|
-
const H = f.filter((
|
|
2499
|
+
const H = f.filter((Y) => Y.show !== !1);
|
|
2500
2500
|
if (H.length === 0) return null;
|
|
2501
2501
|
let N = 0, Z = -1 / 0;
|
|
2502
|
-
return H.forEach((
|
|
2503
|
-
const J =
|
|
2502
|
+
return H.forEach((Y, re) => {
|
|
2503
|
+
const J = Y.order ?? 0;
|
|
2504
2504
|
J >= Z && (Z = J, N = re);
|
|
2505
|
-
}), H.map(({ content:
|
|
2505
|
+
}), H.map(({ content: Y, order: re, borderBottom: J = !0, keepBottomPadding: me = !1, paddingInline: j = !0, paddingBlock: K = !0 }, se) => /* @__PURE__ */ e(
|
|
2506
2506
|
h,
|
|
2507
2507
|
{
|
|
2508
2508
|
direction: "column",
|
|
2509
|
-
paddingTop:
|
|
2510
|
-
paddingBottom:
|
|
2511
|
-
paddingInline:
|
|
2509
|
+
paddingTop: K ? "sm" : "spacing-0",
|
|
2510
|
+
paddingBottom: K && (J || me || se === N) ? "sm" : "spacing-0",
|
|
2511
|
+
paddingInline: j ? "md" : "spacing-0",
|
|
2512
2512
|
style: {
|
|
2513
2513
|
// Inset box-shadow (not a real border) so the divider line doesn't
|
|
2514
2514
|
// add 1px to the row height — keeps the sub-header stack from shifting
|
|
@@ -2518,12 +2518,12 @@ const Ko = (t, r) => {
|
|
|
2518
2518
|
} : {},
|
|
2519
2519
|
...re !== void 0 ? { order: re } : {}
|
|
2520
2520
|
},
|
|
2521
|
-
children:
|
|
2521
|
+
children: Y
|
|
2522
2522
|
},
|
|
2523
|
-
`sub-header-${
|
|
2523
|
+
`sub-header-${se}`
|
|
2524
2524
|
));
|
|
2525
2525
|
}, G = () => {
|
|
2526
|
-
const H = l ? k() : null, N =
|
|
2526
|
+
const H = l ? k() : null, N = M();
|
|
2527
2527
|
return !H && !N ? null : /* @__PURE__ */ u(
|
|
2528
2528
|
h,
|
|
2529
2529
|
{
|
|
@@ -2600,23 +2600,23 @@ const Ko = (t, r) => {
|
|
|
2600
2600
|
widthPresets: D,
|
|
2601
2601
|
resizable: C = !0,
|
|
2602
2602
|
resizeMin: I = ll,
|
|
2603
|
-
resizeMax:
|
|
2604
|
-
onWidthChange:
|
|
2603
|
+
resizeMax: z,
|
|
2604
|
+
onWidthChange: A
|
|
2605
2605
|
}, x) => {
|
|
2606
|
-
const L = !Ie("md"), R = s ?? d ?? a ?? "357px", k = D ?? [],
|
|
2607
|
-
const
|
|
2608
|
-
return
|
|
2609
|
-
}), [H, N] = B(null), [Z,
|
|
2610
|
-
|
|
2611
|
-
},
|
|
2612
|
-
const
|
|
2613
|
-
N(null), O(
|
|
2614
|
-
}, xe =
|
|
2615
|
-
(
|
|
2616
|
-
const
|
|
2617
|
-
return Math.min(Math.max(
|
|
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);
|
|
2618
2618
|
},
|
|
2619
|
-
[I,
|
|
2619
|
+
[I, z]
|
|
2620
2620
|
), ve = le(null);
|
|
2621
2621
|
return /* @__PURE__ */ e(
|
|
2622
2622
|
vi,
|
|
@@ -2625,25 +2625,25 @@ const Ko = (t, r) => {
|
|
|
2625
2625
|
isShow: r,
|
|
2626
2626
|
position: "right",
|
|
2627
2627
|
onHide: t,
|
|
2628
|
-
ref:
|
|
2629
|
-
size:
|
|
2628
|
+
ref: j,
|
|
2629
|
+
size: se,
|
|
2630
2630
|
style: o,
|
|
2631
2631
|
flush: !0,
|
|
2632
2632
|
radius: "none",
|
|
2633
2633
|
hideBackdrop: f,
|
|
2634
2634
|
children: /* @__PURE__ */ u(h, { direction: "column", height: "height-full", children: [
|
|
2635
|
-
|
|
2635
|
+
ke ? /* @__PURE__ */ e(
|
|
2636
2636
|
"div",
|
|
2637
2637
|
{
|
|
2638
2638
|
role: "separator",
|
|
2639
2639
|
"aria-orientation": "vertical",
|
|
2640
2640
|
"aria-label": "Ubah lebar panel",
|
|
2641
2641
|
tabIndex: 0,
|
|
2642
|
-
onPointerDown: (
|
|
2643
|
-
if (!
|
|
2644
|
-
|
|
2645
|
-
const
|
|
2646
|
-
|
|
2642
|
+
onPointerDown: (de) => {
|
|
2643
|
+
if (!ke) return;
|
|
2644
|
+
de.preventDefault();
|
|
2645
|
+
const he = de.currentTarget;
|
|
2646
|
+
he.setPointerCapture(de.pointerId), Y(!0);
|
|
2647
2647
|
const ye = document.body.style.cursor, De = document.body.style.userSelect;
|
|
2648
2648
|
document.body.style.cursor = "col-resize", document.body.style.userSelect = "none";
|
|
2649
2649
|
let Me = null;
|
|
@@ -2653,19 +2653,19 @@ const Ko = (t, r) => {
|
|
|
2653
2653
|
Me = null, ve.current != null && N(ve.current);
|
|
2654
2654
|
}));
|
|
2655
2655
|
}, at = (T) => {
|
|
2656
|
-
Me != null && window.cancelAnimationFrame(Me), ve.current != null && N(ve.current),
|
|
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`));
|
|
2657
2657
|
};
|
|
2658
|
-
|
|
2658
|
+
he.addEventListener("pointermove", st), he.addEventListener("pointerup", at), he.addEventListener("pointercancel", at);
|
|
2659
2659
|
},
|
|
2660
|
-
onKeyDown: (
|
|
2660
|
+
onKeyDown: (de) => {
|
|
2661
2661
|
var Me;
|
|
2662
|
-
if (!
|
|
2663
|
-
|
|
2664
|
-
const
|
|
2665
|
-
N(De),
|
|
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`);
|
|
2666
2666
|
},
|
|
2667
2667
|
onDoubleClick: () => {
|
|
2668
|
-
|
|
2668
|
+
ke && (N(null), A == null || A(K));
|
|
2669
2669
|
},
|
|
2670
2670
|
title: "Tarik untuk mengubah lebar — klik dua kali untuk reset",
|
|
2671
2671
|
onPointerEnter: () => J(!0),
|
|
@@ -2714,18 +2714,18 @@ const Ko = (t, r) => {
|
|
|
2714
2714
|
),
|
|
2715
2715
|
/* @__PURE__ */ u(h, { direction: "row", align: "center", gap: "sm", flexShrink: "0", children: [
|
|
2716
2716
|
g,
|
|
2717
|
-
|
|
2717
|
+
M ? /* @__PURE__ */ e(
|
|
2718
2718
|
V,
|
|
2719
2719
|
{
|
|
2720
2720
|
variant: "tertiary",
|
|
2721
2721
|
tone: "neutral",
|
|
2722
2722
|
size: "xs",
|
|
2723
|
-
onClick:
|
|
2724
|
-
"aria-label":
|
|
2723
|
+
onClick: Le,
|
|
2724
|
+
"aria-label": Be ? "Kecilkan panel" : "Lebarkan panel",
|
|
2725
2725
|
iconRight: /* @__PURE__ */ e(
|
|
2726
2726
|
F,
|
|
2727
2727
|
{
|
|
2728
|
-
name:
|
|
2728
|
+
name: Be ? "ChevronRight" : "ChevronLeft"
|
|
2729
2729
|
}
|
|
2730
2730
|
)
|
|
2731
2731
|
}
|
|
@@ -3089,43 +3089,43 @@ const Ko = (t, r) => {
|
|
|
3089
3089
|
titleSearchLabel: D = "Work Order",
|
|
3090
3090
|
withTitleLabels: C = !1
|
|
3091
3091
|
}) => {
|
|
3092
|
-
const
|
|
3093
|
-
L((
|
|
3094
|
-
}, { searchParams: k, setSearchParams:
|
|
3095
|
-
if (
|
|
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)
|
|
3096
3096
|
try {
|
|
3097
|
-
const
|
|
3098
|
-
return Object.keys(
|
|
3099
|
-
} catch (
|
|
3100
|
-
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);
|
|
3101
3101
|
}
|
|
3102
3102
|
return !1;
|
|
3103
|
-
})()),
|
|
3104
|
-
return
|
|
3103
|
+
})()), me = Ie("md");
|
|
3104
|
+
return Q(() => {
|
|
3105
3105
|
Z(H);
|
|
3106
|
-
}, [H]),
|
|
3106
|
+
}, [H]), Q(() => {
|
|
3107
3107
|
if (N === H)
|
|
3108
3108
|
return;
|
|
3109
|
-
const
|
|
3109
|
+
const j = window.setTimeout(() => {
|
|
3110
3110
|
fr({
|
|
3111
3111
|
value: N,
|
|
3112
3112
|
name: t,
|
|
3113
3113
|
type: "search",
|
|
3114
3114
|
searchQueries: O,
|
|
3115
|
-
setSearchParams:
|
|
3115
|
+
setSearchParams: M,
|
|
3116
3116
|
filterKey: s,
|
|
3117
3117
|
pageKey: a
|
|
3118
3118
|
});
|
|
3119
3119
|
}, 350);
|
|
3120
3120
|
return () => {
|
|
3121
|
-
window.clearTimeout(
|
|
3121
|
+
window.clearTimeout(j);
|
|
3122
3122
|
};
|
|
3123
3123
|
}, [
|
|
3124
3124
|
N,
|
|
3125
3125
|
H,
|
|
3126
3126
|
t,
|
|
3127
3127
|
O,
|
|
3128
|
-
|
|
3128
|
+
M,
|
|
3129
3129
|
s,
|
|
3130
3130
|
a
|
|
3131
3131
|
]), /* @__PURE__ */ u(
|
|
@@ -3133,7 +3133,7 @@ const Ko = (t, r) => {
|
|
|
3133
3133
|
{
|
|
3134
3134
|
gap: "md",
|
|
3135
3135
|
style: {
|
|
3136
|
-
flexDirection:
|
|
3136
|
+
flexDirection: me && b === "left" ? "row" : me && b === "right" ? "row-reverse" : "column"
|
|
3137
3137
|
},
|
|
3138
3138
|
align: "flex-end",
|
|
3139
3139
|
children: [
|
|
@@ -3141,29 +3141,29 @@ const Ko = (t, r) => {
|
|
|
3141
3141
|
V,
|
|
3142
3142
|
{
|
|
3143
3143
|
onClick: () => {
|
|
3144
|
-
const
|
|
3145
|
-
|
|
3144
|
+
const j = new URLSearchParams(k);
|
|
3145
|
+
j.delete(s), M(j), Z(""), R(), f && f();
|
|
3146
3146
|
},
|
|
3147
3147
|
variant: "outline",
|
|
3148
3148
|
tone: "neutral",
|
|
3149
3149
|
children: /* @__PURE__ */ e(w, { color: "error", fontWeight: "semibold", children: "Reset" })
|
|
3150
3150
|
}
|
|
3151
3151
|
) }),
|
|
3152
|
-
i == null ? void 0 : i.map(({ minWidth:
|
|
3152
|
+
i == null ? void 0 : i.map(({ minWidth: j, content: K, title: se, onClickContainer: ke }, Be) => /* @__PURE__ */ u(
|
|
3153
3153
|
h,
|
|
3154
3154
|
{
|
|
3155
3155
|
direction: "column",
|
|
3156
3156
|
gap: "sm",
|
|
3157
|
-
onClick:
|
|
3157
|
+
onClick: ke,
|
|
3158
3158
|
style: {
|
|
3159
|
-
minWidth:
|
|
3159
|
+
minWidth: j
|
|
3160
3160
|
},
|
|
3161
3161
|
children: [
|
|
3162
|
-
|
|
3163
|
-
|
|
3162
|
+
se && /* @__PURE__ */ e(gt.SubH3, { children: se }),
|
|
3163
|
+
K
|
|
3164
3164
|
]
|
|
3165
3165
|
},
|
|
3166
|
-
`extended-filter-${
|
|
3166
|
+
`extended-filter-${Be}-${S}`
|
|
3167
3167
|
)),
|
|
3168
3168
|
!!(p != null && p.length) && /* @__PURE__ */ e(
|
|
3169
3169
|
V,
|
|
@@ -3176,13 +3176,13 @@ const Ko = (t, r) => {
|
|
|
3176
3176
|
size: "sm",
|
|
3177
3177
|
name: (g == null ? void 0 : g.icon) || "FilterHorizontal",
|
|
3178
3178
|
style: {
|
|
3179
|
-
color:
|
|
3179
|
+
color: Y ? "var(--sa-background-brand, #04254f)" : "var(--sa-text-primary, #292a2e)"
|
|
3180
3180
|
}
|
|
3181
3181
|
}
|
|
3182
3182
|
),
|
|
3183
|
-
fullWidth: !
|
|
3183
|
+
fullWidth: !me,
|
|
3184
3184
|
onClick: () => x(!0),
|
|
3185
|
-
children:
|
|
3185
|
+
children: z ? "Filter" : void 0
|
|
3186
3186
|
}
|
|
3187
3187
|
),
|
|
3188
3188
|
c && /* @__PURE__ */ u(
|
|
@@ -3229,12 +3229,12 @@ const Ko = (t, r) => {
|
|
|
3229
3229
|
})
|
|
3230
3230
|
}
|
|
3231
3231
|
] : [],
|
|
3232
|
-
onChange: (
|
|
3233
|
-
value:
|
|
3232
|
+
onChange: (j) => fr({
|
|
3233
|
+
value: j,
|
|
3234
3234
|
name: r,
|
|
3235
3235
|
type: "dropdown",
|
|
3236
3236
|
searchQueries: O,
|
|
3237
|
-
setSearchParams:
|
|
3237
|
+
setSearchParams: M,
|
|
3238
3238
|
filterKey: s
|
|
3239
3239
|
}),
|
|
3240
3240
|
placeholder: C ? "All" : "All Status"
|
|
@@ -3250,7 +3250,7 @@ const Ko = (t, r) => {
|
|
|
3250
3250
|
direction: "column",
|
|
3251
3251
|
gap: "sm",
|
|
3252
3252
|
style: {
|
|
3253
|
-
width: d &&
|
|
3253
|
+
width: d && me ? d : me ? "310px" : ""
|
|
3254
3254
|
},
|
|
3255
3255
|
children: [
|
|
3256
3256
|
C && /* @__PURE__ */ u(gt.SubH3, { children: [
|
|
@@ -3262,7 +3262,7 @@ const Ko = (t, r) => {
|
|
|
3262
3262
|
{
|
|
3263
3263
|
placeholder: n,
|
|
3264
3264
|
leftIcon: /* @__PURE__ */ e(F, { name: "Search", width: 20, height: 20 }),
|
|
3265
|
-
onChange: (
|
|
3265
|
+
onChange: (j) => Z(j.target.value),
|
|
3266
3266
|
value: N,
|
|
3267
3267
|
fullWidth: !0
|
|
3268
3268
|
},
|
|
@@ -3274,7 +3274,7 @@ const Ko = (t, r) => {
|
|
|
3274
3274
|
/* @__PURE__ */ e(
|
|
3275
3275
|
Rl,
|
|
3276
3276
|
{
|
|
3277
|
-
isOpen:
|
|
3277
|
+
isOpen: A,
|
|
3278
3278
|
onClose: () => x(!1),
|
|
3279
3279
|
filterKey: s,
|
|
3280
3280
|
filters: p,
|
|
@@ -3292,10 +3292,10 @@ function mn({
|
|
|
3292
3292
|
pageKey: o = "page",
|
|
3293
3293
|
searchKey: i = "q"
|
|
3294
3294
|
}) {
|
|
3295
|
-
const { searchParams: l, setSearchParams: c, searchQueries: s } = it(), a =
|
|
3295
|
+
const { searchParams: l, setSearchParams: c, searchQueries: s } = it(), a = Fe(
|
|
3296
3296
|
() => Object.fromEntries(t.map((S) => [S.key, S])),
|
|
3297
3297
|
[t]
|
|
3298
|
-
), d =
|
|
3298
|
+
), d = Fe(() => {
|
|
3299
3299
|
const S = (l.get(n) || "").split(",").map((R) => R.trim()).filter(Boolean), L = Object.keys(
|
|
3300
3300
|
yt(l.get(r))
|
|
3301
3301
|
).filter((R) => R !== i);
|
|
@@ -3303,24 +3303,24 @@ function mn({
|
|
|
3303
3303
|
const k = a[R];
|
|
3304
3304
|
return (k == null ? void 0 : k.locked) || S.includes(R) || L.includes(R);
|
|
3305
3305
|
});
|
|
3306
|
-
}, [l, n, r, i, t, a]), f =
|
|
3306
|
+
}, [l, n, r, i, t, a]), f = P(
|
|
3307
3307
|
(S) => yt(S[r]),
|
|
3308
3308
|
[r]
|
|
3309
|
-
), p =
|
|
3309
|
+
), p = P(
|
|
3310
3310
|
(S) => {
|
|
3311
3311
|
const L = { ...s };
|
|
3312
3312
|
S.length ? L[n] = S.join(",") : delete L[n], c(L);
|
|
3313
3313
|
},
|
|
3314
3314
|
[s, n, c]
|
|
3315
|
-
), g =
|
|
3315
|
+
), g = P(
|
|
3316
3316
|
(S) => {
|
|
3317
3317
|
d.includes(S) || p([...d, S]);
|
|
3318
3318
|
},
|
|
3319
3319
|
[d, p]
|
|
3320
|
-
), b =
|
|
3320
|
+
), b = P(
|
|
3321
3321
|
(S) => {
|
|
3322
|
-
var
|
|
3323
|
-
if ((
|
|
3322
|
+
var M;
|
|
3323
|
+
if ((M = a[S]) != null && M.locked) return;
|
|
3324
3324
|
const L = { ...s }, R = d.filter((G) => G !== S);
|
|
3325
3325
|
R.length ? L[n] = R.join(",") : delete L[n];
|
|
3326
3326
|
const k = f(L);
|
|
@@ -3336,10 +3336,10 @@ function mn({
|
|
|
3336
3336
|
c,
|
|
3337
3337
|
a
|
|
3338
3338
|
]
|
|
3339
|
-
), D =
|
|
3339
|
+
), D = P(
|
|
3340
3340
|
(S) => d.includes(S) ? b(S) : g(S),
|
|
3341
3341
|
[d, g, b]
|
|
3342
|
-
), C =
|
|
3342
|
+
), C = P(
|
|
3343
3343
|
(S) => {
|
|
3344
3344
|
switch (S.type) {
|
|
3345
3345
|
case "dropdown":
|
|
@@ -3373,7 +3373,7 @@ function mn({
|
|
|
3373
3373
|
}
|
|
3374
3374
|
},
|
|
3375
3375
|
[l, r, f]
|
|
3376
|
-
), I =
|
|
3376
|
+
), I = P(
|
|
3377
3377
|
(S, L) => {
|
|
3378
3378
|
if (S.type === "date-compact" || S.type === "text") {
|
|
3379
3379
|
const R = { ...s }, k = f(R);
|
|
@@ -3391,13 +3391,13 @@ function mn({
|
|
|
3391
3391
|
});
|
|
3392
3392
|
},
|
|
3393
3393
|
[s, c, r, o, f]
|
|
3394
|
-
),
|
|
3394
|
+
), z = P(
|
|
3395
3395
|
(S) => {
|
|
3396
3396
|
const L = { ...s }, R = f(L);
|
|
3397
3397
|
S in R && (delete R[S], Object.keys(R).length ? L[r] = JSON.stringify(R) : delete L[r]), delete L[o], c(L);
|
|
3398
3398
|
},
|
|
3399
3399
|
[s, r, o, f, c]
|
|
3400
|
-
),
|
|
3400
|
+
), A = P(() => {
|
|
3401
3401
|
const S = { ...s };
|
|
3402
3402
|
delete S[r], delete S[n], delete S[o], c(S);
|
|
3403
3403
|
}, [s, r, n, o, c]), x = d.length > 0;
|
|
@@ -3410,8 +3410,8 @@ function mn({
|
|
|
3410
3410
|
toggleFilter: D,
|
|
3411
3411
|
getValue: C,
|
|
3412
3412
|
setValue: I,
|
|
3413
|
-
clearValue:
|
|
3414
|
-
clearAll:
|
|
3413
|
+
clearValue: z,
|
|
3414
|
+
clearAll: A
|
|
3415
3415
|
};
|
|
3416
3416
|
}
|
|
3417
3417
|
const Hi = {
|
|
@@ -3443,10 +3443,10 @@ function zl({
|
|
|
3443
3443
|
onColumnsChange: o,
|
|
3444
3444
|
value: i
|
|
3445
3445
|
}) {
|
|
3446
|
-
const l =
|
|
3446
|
+
const l = Fe(
|
|
3447
3447
|
() => ({ order: t.map((k) => k.key), hidden: [] }),
|
|
3448
3448
|
[t]
|
|
3449
|
-
), c = r ? Ut.columns(r) : void 0, s = (k,
|
|
3449
|
+
), c = r ? Ut.columns(r) : void 0, s = (k, M) => ir({ order: k.order ?? M, hidden: k.hidden ?? [] }, t), [a, d] = B(() => {
|
|
3450
3450
|
if (i && (i.order || i.hidden))
|
|
3451
3451
|
return s(i, t.map((k) => k.key));
|
|
3452
3452
|
if (c) {
|
|
@@ -3455,50 +3455,50 @@ function zl({
|
|
|
3455
3455
|
}
|
|
3456
3456
|
return l;
|
|
3457
3457
|
}), f = t.map((k) => k.key).join("|");
|
|
3458
|
-
|
|
3458
|
+
Q(() => d((k) => ir(k, t)), [f]);
|
|
3459
3459
|
const p = le(a);
|
|
3460
3460
|
p.current = a;
|
|
3461
3461
|
const g = i ? `${(i.order ?? []).join("|")}~${(i.hidden ?? []).join("|")}` : null, b = le(g);
|
|
3462
|
-
|
|
3462
|
+
Q(() => {
|
|
3463
3463
|
if (g == null || b.current === g) return;
|
|
3464
3464
|
b.current = g;
|
|
3465
|
-
const k = p.current,
|
|
3466
|
-
|
|
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));
|
|
3467
3467
|
}, [g, f]);
|
|
3468
3468
|
const D = le(!1);
|
|
3469
|
-
|
|
3469
|
+
Q(() => {
|
|
3470
3470
|
D.current || (D.current = !0, o == null || o(a));
|
|
3471
3471
|
}, []);
|
|
3472
|
-
const C =
|
|
3472
|
+
const C = P(
|
|
3473
3473
|
(k) => {
|
|
3474
3474
|
d(k), c && n.set(c, k), o == null || o(k);
|
|
3475
3475
|
},
|
|
3476
3476
|
[c, n, o]
|
|
3477
|
-
), I =
|
|
3478
|
-
const k = new Map(t.map((
|
|
3479
|
-
return a.order.filter((
|
|
3480
|
-
}, [a, t]),
|
|
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(
|
|
3481
3481
|
(k) => {
|
|
3482
|
-
const
|
|
3483
|
-
C({ ...a, hidden:
|
|
3482
|
+
const M = a.hidden.includes(k) ? a.hidden.filter((G) => G !== k) : [...a.hidden, k];
|
|
3483
|
+
C({ ...a, hidden: M });
|
|
3484
3484
|
},
|
|
3485
3485
|
[a, C]
|
|
3486
|
-
),
|
|
3487
|
-
(k,
|
|
3488
|
-
if (k ===
|
|
3486
|
+
), A = P(
|
|
3487
|
+
(k, M) => {
|
|
3488
|
+
if (k === M) return;
|
|
3489
3489
|
const G = [...a.order], [O] = G.splice(k, 1);
|
|
3490
|
-
G.splice(
|
|
3490
|
+
G.splice(M, 0, O), C({ ...a, order: G });
|
|
3491
3491
|
},
|
|
3492
3492
|
[a, C]
|
|
3493
|
-
), x =
|
|
3493
|
+
), x = P(
|
|
3494
3494
|
(k) => {
|
|
3495
3495
|
C({
|
|
3496
3496
|
...a,
|
|
3497
|
-
hidden: k ? t.filter((
|
|
3497
|
+
hidden: k ? t.filter((M) => !M.locked).map((M) => M.key) : []
|
|
3498
3498
|
});
|
|
3499
3499
|
},
|
|
3500
3500
|
[a, t, C]
|
|
3501
|
-
), S =
|
|
3501
|
+
), S = P(() => C(l), [C, l]), L = P(
|
|
3502
3502
|
(k) => C(ir(k, t)),
|
|
3503
3503
|
[C, t]
|
|
3504
3504
|
), R = a.hidden.length === 0;
|
|
@@ -3506,8 +3506,8 @@ function zl({
|
|
|
3506
3506
|
state: a,
|
|
3507
3507
|
orderedColumns: I,
|
|
3508
3508
|
allVisible: R,
|
|
3509
|
-
toggleVisibility:
|
|
3510
|
-
reorder:
|
|
3509
|
+
toggleVisibility: z,
|
|
3510
|
+
reorder: A,
|
|
3511
3511
|
setAllHidden: x,
|
|
3512
3512
|
reset: S,
|
|
3513
3513
|
applyState: L
|
|
@@ -3523,38 +3523,38 @@ function Il({
|
|
|
3523
3523
|
}) {
|
|
3524
3524
|
const { searchParams: c, setSearchParams: s } = it(), a = t ? Ut.savedViews(t) : void 0, [d, f] = B(
|
|
3525
3525
|
() => a ? r.get(a) || [] : []
|
|
3526
|
-
), p =
|
|
3526
|
+
), p = P(
|
|
3527
3527
|
(C) => {
|
|
3528
3528
|
f(C), a && r.set(a, C);
|
|
3529
3529
|
},
|
|
3530
3530
|
[a]
|
|
3531
3531
|
// storage identity is stable (module singleton / caller-provided)
|
|
3532
|
-
), g =
|
|
3532
|
+
), g = P(
|
|
3533
3533
|
(C) => {
|
|
3534
3534
|
const I = C.trim();
|
|
3535
3535
|
if (!I) return;
|
|
3536
|
-
const
|
|
3536
|
+
const z = {};
|
|
3537
3537
|
n.forEach((x) => {
|
|
3538
3538
|
const S = c.get(x);
|
|
3539
|
-
S != null && (
|
|
3539
|
+
S != null && (z[x] = S);
|
|
3540
3540
|
});
|
|
3541
|
-
const
|
|
3541
|
+
const A = {
|
|
3542
3542
|
id: `${Date.now()}`,
|
|
3543
3543
|
name: I,
|
|
3544
|
-
query:
|
|
3544
|
+
query: z,
|
|
3545
3545
|
columns: i == null ? void 0 : i(),
|
|
3546
3546
|
createdAt: Date.now()
|
|
3547
3547
|
};
|
|
3548
|
-
p([...d,
|
|
3548
|
+
p([...d, A]);
|
|
3549
3549
|
},
|
|
3550
3550
|
[n, c, i, p, d]
|
|
3551
|
-
), b =
|
|
3551
|
+
), b = P(
|
|
3552
3552
|
(C) => p(d.filter((I) => I.id !== C)),
|
|
3553
3553
|
[p, d]
|
|
3554
|
-
), D =
|
|
3554
|
+
), D = P(
|
|
3555
3555
|
(C) => {
|
|
3556
3556
|
const I = Object.fromEntries(c.entries());
|
|
3557
|
-
n.forEach((
|
|
3557
|
+
n.forEach((z) => delete I[z]), Object.assign(I, C.query), delete I[o], s(I), C.columns && (l == null || l(C.columns));
|
|
3558
3558
|
},
|
|
3559
3559
|
[c, n, o, s, l]
|
|
3560
3560
|
);
|
|
@@ -3586,7 +3586,7 @@ function Hl({
|
|
|
3586
3586
|
persistSearch: c = !0
|
|
3587
3587
|
}) {
|
|
3588
3588
|
const { searchParams: s } = it(), a = t && o ? Ut.lastState(t) : void 0, d = le(a), f = le(!1);
|
|
3589
|
-
|
|
3589
|
+
Q(() => {
|
|
3590
3590
|
if (!a) {
|
|
3591
3591
|
d.current = a;
|
|
3592
3592
|
return;
|
|
@@ -3613,13 +3613,13 @@ function Hl({
|
|
|
3613
3613
|
i,
|
|
3614
3614
|
l
|
|
3615
3615
|
]);
|
|
3616
|
-
const p =
|
|
3616
|
+
const p = P(() => {
|
|
3617
3617
|
if (!a) return null;
|
|
3618
3618
|
const b = r.get(a);
|
|
3619
3619
|
if (!b || typeof b != "object" || Array.isArray(b) || Object.keys(b).length === 0) return null;
|
|
3620
3620
|
const D = b[i];
|
|
3621
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;
|
|
3622
|
-
}, [a, r, c, i, l]), g =
|
|
3622
|
+
}, [a, r, c, i, l]), g = P(() => {
|
|
3623
3623
|
a && r.remove(a);
|
|
3624
3624
|
}, [a, r]);
|
|
3625
3625
|
return {
|
|
@@ -3636,7 +3636,7 @@ function Tl({
|
|
|
3636
3636
|
enabled: i = !0
|
|
3637
3637
|
}) {
|
|
3638
3638
|
const { searchParams: l } = it(), c = t && i ? Ut.perPage(t) : void 0, s = l.toString(), a = le(c);
|
|
3639
|
-
|
|
3639
|
+
Q(() => {
|
|
3640
3640
|
if (!c) {
|
|
3641
3641
|
a.current = c;
|
|
3642
3642
|
return;
|
|
@@ -3650,13 +3650,13 @@ function Tl({
|
|
|
3650
3650
|
const g = Number(p);
|
|
3651
3651
|
!Number.isFinite(g) || g <= 0 || r.set(c, g);
|
|
3652
3652
|
}, [s, c, n, r]);
|
|
3653
|
-
const d =
|
|
3653
|
+
const d = P(() => {
|
|
3654
3654
|
if (!c) return null;
|
|
3655
3655
|
const p = r.get(c);
|
|
3656
3656
|
if (p == null) return null;
|
|
3657
3657
|
const g = Number(p);
|
|
3658
3658
|
return !Number.isFinite(g) || g <= 0 || o && !o.includes(g) ? null : String(g);
|
|
3659
|
-
}, [c, r, o]), f =
|
|
3659
|
+
}, [c, r, o]), f = P(() => {
|
|
3660
3660
|
c && r.remove(c);
|
|
3661
3661
|
}, [c, r]);
|
|
3662
3662
|
return {
|
|
@@ -3686,7 +3686,7 @@ function Vl({
|
|
|
3686
3686
|
readPerPage: i
|
|
3687
3687
|
}) {
|
|
3688
3688
|
const { searchParams: l, setSearchParams: c, location: s } = it(), a = le(null);
|
|
3689
|
-
|
|
3689
|
+
Q(() => {
|
|
3690
3690
|
if (!t || a.current === s.pathname) return;
|
|
3691
3691
|
a.current = s.pathname;
|
|
3692
3692
|
const d = {};
|
|
@@ -3707,8 +3707,8 @@ const Nl = ({
|
|
|
3707
3707
|
onToggle: n,
|
|
3708
3708
|
hasActiveFilter: o,
|
|
3709
3709
|
onReset: i
|
|
3710
|
-
}) => t.length ? /* @__PURE__ */ u(
|
|
3711
|
-
/* @__PURE__ */ e(
|
|
3710
|
+
}) => t.length ? /* @__PURE__ */ u(Ge, { position: "bottom-left", children: [
|
|
3711
|
+
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
|
|
3712
3712
|
V,
|
|
3713
3713
|
{
|
|
3714
3714
|
variant: o ? "secondary" : "outline",
|
|
@@ -3718,8 +3718,8 @@ const Nl = ({
|
|
|
3718
3718
|
"aria-label": "Add filter"
|
|
3719
3719
|
}
|
|
3720
3720
|
) }),
|
|
3721
|
-
/* @__PURE__ */ e(
|
|
3722
|
-
|
|
3721
|
+
/* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(
|
|
3722
|
+
Qe,
|
|
3723
3723
|
{
|
|
3724
3724
|
style: { minWidth: 260 },
|
|
3725
3725
|
title: /* @__PURE__ */ u(
|
|
@@ -3764,8 +3764,8 @@ const Nl = ({
|
|
|
3764
3764
|
] }) : null, Qt = ({
|
|
3765
3765
|
onClear: t,
|
|
3766
3766
|
onRemove: r
|
|
3767
|
-
}) => /* @__PURE__ */ u(
|
|
3768
|
-
/* @__PURE__ */ e(
|
|
3767
|
+
}) => /* @__PURE__ */ u(Ge, { position: "bottom-right", children: [
|
|
3768
|
+
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
|
|
3769
3769
|
V,
|
|
3770
3770
|
{
|
|
3771
3771
|
variant: "link",
|
|
@@ -3775,7 +3775,7 @@ const Nl = ({
|
|
|
3775
3775
|
"aria-label": "Filter actions"
|
|
3776
3776
|
}
|
|
3777
3777
|
) }),
|
|
3778
|
-
/* @__PURE__ */ e(
|
|
3778
|
+
/* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ u(Qe, { style: { width: 180 }, children: [
|
|
3779
3779
|
/* @__PURE__ */ e(
|
|
3780
3780
|
Je,
|
|
3781
3781
|
{
|
|
@@ -3869,8 +3869,8 @@ const Nl = ({
|
|
|
3869
3869
|
" ",
|
|
3870
3870
|
/* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children: Oi(l) })
|
|
3871
3871
|
] }) : t.label;
|
|
3872
|
-
return /* @__PURE__ */ u(
|
|
3873
|
-
/* @__PURE__ */ e(
|
|
3872
|
+
return /* @__PURE__ */ u(Ge, { position: "bottom-left", children: [
|
|
3873
|
+
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
|
|
3874
3874
|
V,
|
|
3875
3875
|
{
|
|
3876
3876
|
variant: c ? "secondary" : "outline",
|
|
@@ -3881,8 +3881,8 @@ const Nl = ({
|
|
|
3881
3881
|
children: s
|
|
3882
3882
|
}
|
|
3883
3883
|
) }),
|
|
3884
|
-
/* @__PURE__ */ e(
|
|
3885
|
-
|
|
3884
|
+
/* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(
|
|
3885
|
+
Qe,
|
|
3886
3886
|
{
|
|
3887
3887
|
style: { width: 260 },
|
|
3888
3888
|
title: /* @__PURE__ */ u(
|
|
@@ -3975,8 +3975,8 @@ const Nl = ({
|
|
|
3975
3975
|
n({ op: b, date: r == null ? void 0 : r.date });
|
|
3976
3976
|
}
|
|
3977
3977
|
};
|
|
3978
|
-
return /* @__PURE__ */ u(
|
|
3979
|
-
/* @__PURE__ */ e(
|
|
3978
|
+
return /* @__PURE__ */ u(Ge, { position: "bottom-left", children: [
|
|
3979
|
+
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
|
|
3980
3980
|
V,
|
|
3981
3981
|
{
|
|
3982
3982
|
variant: f ? "secondary" : "outline",
|
|
@@ -3987,9 +3987,9 @@ const Nl = ({
|
|
|
3987
3987
|
children: p
|
|
3988
3988
|
}
|
|
3989
3989
|
) }),
|
|
3990
|
-
/* @__PURE__ */ u(
|
|
3990
|
+
/* @__PURE__ */ u(Ue, { children: [
|
|
3991
3991
|
/* @__PURE__ */ e(
|
|
3992
|
-
|
|
3992
|
+
Qe,
|
|
3993
3993
|
{
|
|
3994
3994
|
style: { width: 320 },
|
|
3995
3995
|
title: /* @__PURE__ */ u(
|
|
@@ -4026,8 +4026,8 @@ const Nl = ({
|
|
|
4026
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" }) })
|
|
4027
4027
|
] })
|
|
4028
4028
|
] });
|
|
4029
|
-
}, $i = ({ op: t, ops: r, onChange: n }) => /* @__PURE__ */ u(
|
|
4030
|
-
/* @__PURE__ */ e(
|
|
4029
|
+
}, $i = ({ op: t, ops: r, onChange: n }) => /* @__PURE__ */ u(Ge, { position: "bottom-left", children: [
|
|
4030
|
+
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
|
|
4031
4031
|
V,
|
|
4032
4032
|
{
|
|
4033
4033
|
variant: "link",
|
|
@@ -4037,7 +4037,7 @@ const Nl = ({
|
|
|
4037
4037
|
children: mr[t]
|
|
4038
4038
|
}
|
|
4039
4039
|
) }),
|
|
4040
|
-
/* @__PURE__ */ e(
|
|
4040
|
+
/* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(Qe, { style: { width: 200 }, children: r.map((o) => /* @__PURE__ */ e(
|
|
4041
4041
|
Je,
|
|
4042
4042
|
{
|
|
4043
4043
|
selected: t === o,
|
|
@@ -4121,8 +4121,8 @@ const Nl = ({
|
|
|
4121
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 });
|
|
4122
4122
|
return /* @__PURE__ */ u(h, { direction: "column", display: "flex", gap: "sm", children: [
|
|
4123
4123
|
/* @__PURE__ */ u(h, { direction: "row", display: "flex", align: "center", gap: "xs", children: [
|
|
4124
|
-
/* @__PURE__ */ u(
|
|
4125
|
-
/* @__PURE__ */ e(
|
|
4124
|
+
/* @__PURE__ */ u(Ge, { position: "bottom-left", children: [
|
|
4125
|
+
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
|
|
4126
4126
|
V,
|
|
4127
4127
|
{
|
|
4128
4128
|
variant: "outline",
|
|
@@ -4132,7 +4132,7 @@ const Nl = ({
|
|
|
4132
4132
|
children: rn[n]
|
|
4133
4133
|
}
|
|
4134
4134
|
) }),
|
|
4135
|
-
/* @__PURE__ */ e(
|
|
4135
|
+
/* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(Qe, { style: { width: 140 }, children: Pl.map((s) => /* @__PURE__ */ e(
|
|
4136
4136
|
Je,
|
|
4137
4137
|
{
|
|
4138
4138
|
selected: n === s,
|
|
@@ -4164,8 +4164,8 @@ const Nl = ({
|
|
|
4164
4164
|
style: { width: 72 }
|
|
4165
4165
|
}
|
|
4166
4166
|
),
|
|
4167
|
-
/* @__PURE__ */ u(
|
|
4168
|
-
/* @__PURE__ */ e(
|
|
4167
|
+
/* @__PURE__ */ u(Ge, { position: "bottom-left", children: [
|
|
4168
|
+
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
|
|
4169
4169
|
V,
|
|
4170
4170
|
{
|
|
4171
4171
|
variant: "outline",
|
|
@@ -4175,7 +4175,7 @@ const Nl = ({
|
|
|
4175
4175
|
children: i
|
|
4176
4176
|
}
|
|
4177
4177
|
) }),
|
|
4178
|
-
/* @__PURE__ */ e(
|
|
4178
|
+
/* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(Qe, { style: { width: 140 }, children: _l.map((s) => /* @__PURE__ */ e(
|
|
4179
4179
|
Je,
|
|
4180
4180
|
{
|
|
4181
4181
|
selected: i === s,
|
|
@@ -4213,19 +4213,19 @@ const Nl = ({
|
|
|
4213
4213
|
}) => {
|
|
4214
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 = (() => {
|
|
4215
4215
|
if (p) return f;
|
|
4216
|
-
const
|
|
4217
|
-
return
|
|
4218
|
-
})(), b = (
|
|
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) => {
|
|
4219
4219
|
if (!l) {
|
|
4220
|
-
n([{ label:
|
|
4220
|
+
n([{ label: z.label, value: z.value }]), d("");
|
|
4221
4221
|
return;
|
|
4222
4222
|
}
|
|
4223
4223
|
n(
|
|
4224
|
-
b(
|
|
4224
|
+
b(z) ? r.filter((A) => A.value !== z.value) : [...r, { label: z.label, value: z.value }]
|
|
4225
4225
|
);
|
|
4226
|
-
}, C = (
|
|
4227
|
-
var
|
|
4228
|
-
d(
|
|
4226
|
+
}, C = (z) => {
|
|
4227
|
+
var A;
|
|
4228
|
+
d(z), (A = t.onSearch) == null || A.call(t, z);
|
|
4229
4229
|
}, I = c === 0 ? t.label : /* @__PURE__ */ u(ne, { children: [
|
|
4230
4230
|
/* @__PURE__ */ u("span", { style: { fontWeight: 500 }, children: [
|
|
4231
4231
|
t.label,
|
|
@@ -4234,8 +4234,8 @@ const Nl = ({
|
|
|
4234
4234
|
" ",
|
|
4235
4235
|
/* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children: c === 1 ? Ql(r[0].label) : `${c} Selected` })
|
|
4236
4236
|
] });
|
|
4237
|
-
return /* @__PURE__ */ u(
|
|
4238
|
-
/* @__PURE__ */ e(
|
|
4237
|
+
return /* @__PURE__ */ u(Ge, { position: "bottom-left", children: [
|
|
4238
|
+
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
|
|
4239
4239
|
V,
|
|
4240
4240
|
{
|
|
4241
4241
|
variant: c > 0 ? "secondary" : "outline",
|
|
@@ -4246,8 +4246,8 @@ const Nl = ({
|
|
|
4246
4246
|
children: I
|
|
4247
4247
|
}
|
|
4248
4248
|
) }),
|
|
4249
|
-
/* @__PURE__ */ e(
|
|
4250
|
-
|
|
4249
|
+
/* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(
|
|
4250
|
+
Qe,
|
|
4251
4251
|
{
|
|
4252
4252
|
style: { width: 260 },
|
|
4253
4253
|
title: /* @__PURE__ */ u(
|
|
@@ -4288,18 +4288,18 @@ const Nl = ({
|
|
|
4288
4288
|
direction: "column",
|
|
4289
4289
|
overflow: "overflow-y-auto",
|
|
4290
4290
|
customMaxHeight: "240px",
|
|
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((
|
|
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(
|
|
4292
4292
|
Je,
|
|
4293
4293
|
{
|
|
4294
4294
|
closeOnSelect: !l,
|
|
4295
|
-
selected: b(
|
|
4296
|
-
startIcon:
|
|
4297
|
-
endIcon: b(
|
|
4298
|
-
description:
|
|
4299
|
-
onClick: () => D(
|
|
4300
|
-
children:
|
|
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
|
|
4301
4301
|
},
|
|
4302
|
-
|
|
4302
|
+
z.value
|
|
4303
4303
|
))
|
|
4304
4304
|
}
|
|
4305
4305
|
)
|
|
@@ -4340,8 +4340,8 @@ const Nl = ({
|
|
|
4340
4340
|
" ",
|
|
4341
4341
|
/* @__PURE__ */ e(w, { as: "span", children: c === 1 ? Xl(r[0].label) : `${c} Selected` })
|
|
4342
4342
|
] });
|
|
4343
|
-
return /* @__PURE__ */ u(
|
|
4344
|
-
/* @__PURE__ */ e(
|
|
4343
|
+
return /* @__PURE__ */ u(Ge, { position: "bottom-left", children: [
|
|
4344
|
+
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
|
|
4345
4345
|
V,
|
|
4346
4346
|
{
|
|
4347
4347
|
variant: c > 0 ? "secondary" : "outline",
|
|
@@ -4352,8 +4352,8 @@ const Nl = ({
|
|
|
4352
4352
|
children: p
|
|
4353
4353
|
}
|
|
4354
4354
|
) }),
|
|
4355
|
-
/* @__PURE__ */ e(
|
|
4356
|
-
|
|
4355
|
+
/* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ u(
|
|
4356
|
+
Qe,
|
|
4357
4357
|
{
|
|
4358
4358
|
style: { width: 240 },
|
|
4359
4359
|
title: /* @__PURE__ */ u(
|
|
@@ -4410,9 +4410,9 @@ const Nl = ({
|
|
|
4410
4410
|
onRemove: i
|
|
4411
4411
|
}) => {
|
|
4412
4412
|
const [l, c] = B(r ?? ""), s = ln(l, t.debounceMs ?? 300);
|
|
4413
|
-
|
|
4413
|
+
Q(() => {
|
|
4414
4414
|
s !== (r ?? "") && n(s);
|
|
4415
|
-
}, [s]),
|
|
4415
|
+
}, [s]), Q(() => {
|
|
4416
4416
|
c(r ?? "");
|
|
4417
4417
|
}, [r]);
|
|
4418
4418
|
const a = !!r, d = a ? /* @__PURE__ */ u(ne, { children: [
|
|
@@ -4423,8 +4423,8 @@ const Nl = ({
|
|
|
4423
4423
|
" ",
|
|
4424
4424
|
/* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children: Kl(r) })
|
|
4425
4425
|
] }) : t.label;
|
|
4426
|
-
return /* @__PURE__ */ u(
|
|
4427
|
-
/* @__PURE__ */ e(
|
|
4426
|
+
return /* @__PURE__ */ u(Ge, { position: "bottom-left", children: [
|
|
4427
|
+
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
|
|
4428
4428
|
V,
|
|
4429
4429
|
{
|
|
4430
4430
|
variant: a ? "secondary" : "outline",
|
|
@@ -4435,8 +4435,8 @@ const Nl = ({
|
|
|
4435
4435
|
children: d
|
|
4436
4436
|
}
|
|
4437
4437
|
) }),
|
|
4438
|
-
/* @__PURE__ */ e(
|
|
4439
|
-
|
|
4438
|
+
/* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(
|
|
4439
|
+
Qe,
|
|
4440
4440
|
{
|
|
4441
4441
|
style: { width: 260 },
|
|
4442
4442
|
title: /* @__PURE__ */ u(
|
|
@@ -4529,21 +4529,21 @@ const Nl = ({
|
|
|
4529
4529
|
showPageSize: c = !0,
|
|
4530
4530
|
showPagination: s = !0
|
|
4531
4531
|
}) => {
|
|
4532
|
-
var
|
|
4533
|
-
const { searchQueries: a, setSearchParams: d, searchParams: f } = it(), p = f.get(n), g = p ? Number(p) : i, b = (
|
|
4534
|
-
d({ ...a, [r]: String(
|
|
4535
|
-
}, D = (
|
|
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) => {
|
|
4536
4536
|
d({
|
|
4537
4537
|
...a,
|
|
4538
|
-
[n]:
|
|
4538
|
+
[n]: A,
|
|
4539
4539
|
[r]: "1"
|
|
4540
4540
|
// reset to first page when page size changes
|
|
4541
4541
|
});
|
|
4542
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));
|
|
4543
4543
|
return /* @__PURE__ */ u(ne, { children: [
|
|
4544
|
-
l && /* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${C}-${I} of ${((
|
|
4545
|
-
c && /* @__PURE__ */ u(
|
|
4546
|
-
/* @__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(
|
|
4547
4547
|
V,
|
|
4548
4548
|
{
|
|
4549
4549
|
variant: "outline",
|
|
@@ -4554,14 +4554,14 @@ const Nl = ({
|
|
|
4554
4554
|
children: ri(g)
|
|
4555
4555
|
}
|
|
4556
4556
|
) }),
|
|
4557
|
-
/* @__PURE__ */ e(
|
|
4557
|
+
/* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(Qe, { children: o.map((A) => /* @__PURE__ */ e(
|
|
4558
4558
|
Je,
|
|
4559
4559
|
{
|
|
4560
|
-
selected:
|
|
4561
|
-
onClick: () => D(String(
|
|
4562
|
-
children: ri(
|
|
4560
|
+
selected: A === g,
|
|
4561
|
+
onClick: () => D(String(A)),
|
|
4562
|
+
children: ri(A)
|
|
4563
4563
|
},
|
|
4564
|
-
|
|
4564
|
+
A
|
|
4565
4565
|
)) }) })
|
|
4566
4566
|
] }),
|
|
4567
4567
|
s && ((t == null ? void 0 : t.totalPage) ?? 0) > 1 && /* @__PURE__ */ e(
|
|
@@ -4591,7 +4591,7 @@ const Nl = ({
|
|
|
4591
4591
|
] });
|
|
4592
4592
|
};
|
|
4593
4593
|
function rc(t, r, n = !0) {
|
|
4594
|
-
|
|
4594
|
+
Q(() => {
|
|
4595
4595
|
if (!n) return;
|
|
4596
4596
|
const o = (i) => {
|
|
4597
4597
|
var s;
|
|
@@ -4610,12 +4610,12 @@ const nc = 240, ji = ({
|
|
|
4610
4610
|
shortcut: i = "/",
|
|
4611
4611
|
collapsible: l = !0
|
|
4612
4612
|
}) => {
|
|
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),
|
|
4614
|
-
|
|
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(() => {
|
|
4615
4615
|
C(d), d && p(!0);
|
|
4616
|
-
}, [d]),
|
|
4616
|
+
}, [d]), Q(() => {
|
|
4617
4617
|
f && b(!1);
|
|
4618
|
-
}, [f]),
|
|
4618
|
+
}, [f]), Q(() => {
|
|
4619
4619
|
I !== d && fr({
|
|
4620
4620
|
value: I,
|
|
4621
4621
|
name: t,
|
|
@@ -4626,13 +4626,13 @@ const nc = 240, ji = ({
|
|
|
4626
4626
|
pageKey: n
|
|
4627
4627
|
});
|
|
4628
4628
|
}, [I]);
|
|
4629
|
-
const
|
|
4629
|
+
const A = P(() => {
|
|
4630
4630
|
p(!0), requestAnimationFrame(() => {
|
|
4631
4631
|
var R;
|
|
4632
|
-
return (R =
|
|
4632
|
+
return (R = z.current) == null ? void 0 : R.focus();
|
|
4633
4633
|
});
|
|
4634
4634
|
}, []);
|
|
4635
|
-
return rc(i,
|
|
4635
|
+
return rc(i, A), // No internal gap: the trigger and the animated input are never visible at
|
|
4636
4636
|
// the same time, so spacing to neighbours is handled by the parent cluster.
|
|
4637
4637
|
/* @__PURE__ */ u(h, { display: "flex", direction: "row", align: "center", gap: "spacing-0", children: [
|
|
4638
4638
|
g && /* @__PURE__ */ e(
|
|
@@ -4644,7 +4644,7 @@ const nc = 240, ji = ({
|
|
|
4644
4644
|
iconLeft: /* @__PURE__ */ e(F, { name: "Search", size: "sm" }),
|
|
4645
4645
|
"aria-label": "Search",
|
|
4646
4646
|
"aria-expanded": !1,
|
|
4647
|
-
onClick:
|
|
4647
|
+
onClick: A
|
|
4648
4648
|
}
|
|
4649
4649
|
),
|
|
4650
4650
|
/* @__PURE__ */ u(
|
|
@@ -4663,7 +4663,7 @@ const nc = 240, ji = ({
|
|
|
4663
4663
|
/* @__PURE__ */ e(
|
|
4664
4664
|
Mt,
|
|
4665
4665
|
{
|
|
4666
|
-
ref:
|
|
4666
|
+
ref: z,
|
|
4667
4667
|
size: "sm",
|
|
4668
4668
|
fullWidth: !0,
|
|
4669
4669
|
value: D,
|
|
@@ -4672,7 +4672,7 @@ const nc = 240, ji = ({
|
|
|
4672
4672
|
onChange: (R) => C(R.target.value),
|
|
4673
4673
|
onKeyDown: (R) => {
|
|
4674
4674
|
var k;
|
|
4675
|
-
l && R.key === "Escape" && !D && (p(!1), (k =
|
|
4675
|
+
l && R.key === "Escape" && !D && (p(!1), (k = z.current) == null || k.blur());
|
|
4676
4676
|
},
|
|
4677
4677
|
onBlur: () => {
|
|
4678
4678
|
l && !D && p(!1);
|
|
@@ -4721,8 +4721,8 @@ const nc = 240, ji = ({
|
|
|
4721
4721
|
const b = p + g;
|
|
4722
4722
|
b < 0 || b >= t.length || o(p, b);
|
|
4723
4723
|
};
|
|
4724
|
-
return /* @__PURE__ */ u(
|
|
4725
|
-
/* @__PURE__ */ e(
|
|
4724
|
+
return /* @__PURE__ */ u(Ge, { position: "bottom-right", children: [
|
|
4725
|
+
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
|
|
4726
4726
|
V,
|
|
4727
4727
|
{
|
|
4728
4728
|
variant: r ? "outline" : "secondary",
|
|
@@ -4732,7 +4732,7 @@ const nc = 240, ji = ({
|
|
|
4732
4732
|
"aria-label": "Customize columns"
|
|
4733
4733
|
}
|
|
4734
4734
|
) }),
|
|
4735
|
-
/* @__PURE__ */ e(
|
|
4735
|
+
/* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ e(Qe, { children: /* @__PURE__ */ u(
|
|
4736
4736
|
h,
|
|
4737
4737
|
{
|
|
4738
4738
|
padding: "sm",
|
|
@@ -4850,8 +4850,8 @@ const nc = 240, ji = ({
|
|
|
4850
4850
|
const s = i.trim();
|
|
4851
4851
|
s && (o(s), l(""));
|
|
4852
4852
|
};
|
|
4853
|
-
return /* @__PURE__ */ u(
|
|
4854
|
-
/* @__PURE__ */ e(
|
|
4853
|
+
return /* @__PURE__ */ u(Ge, { position: "bottom-right", children: [
|
|
4854
|
+
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
|
|
4855
4855
|
V,
|
|
4856
4856
|
{
|
|
4857
4857
|
variant: t.length > 0 ? "secondary" : "outline",
|
|
@@ -4862,13 +4862,13 @@ const nc = 240, ji = ({
|
|
|
4862
4862
|
}
|
|
4863
4863
|
) }),
|
|
4864
4864
|
/* @__PURE__ */ u(
|
|
4865
|
-
|
|
4865
|
+
Ue,
|
|
4866
4866
|
{
|
|
4867
4867
|
style: {
|
|
4868
4868
|
width: "260px"
|
|
4869
4869
|
},
|
|
4870
4870
|
children: [
|
|
4871
|
-
/* @__PURE__ */ e(
|
|
4871
|
+
/* @__PURE__ */ e(Qe, { children: /* @__PURE__ */ u(h, { direction: "column", padding: "xs", gap: "sm", children: [
|
|
4872
4872
|
/* @__PURE__ */ e(w, { fontWeight: "semibold", color: "primary", children: "Saved Views" }),
|
|
4873
4873
|
/* @__PURE__ */ e(
|
|
4874
4874
|
h,
|
|
@@ -5140,8 +5140,8 @@ const nc = 240, ji = ({
|
|
|
5140
5140
|
[r]: "1"
|
|
5141
5141
|
});
|
|
5142
5142
|
};
|
|
5143
|
-
return i ? /* @__PURE__ */ u(
|
|
5144
|
-
/* @__PURE__ */ e(
|
|
5143
|
+
return i ? /* @__PURE__ */ u(Ge, { position: "bottom-right", children: [
|
|
5144
|
+
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(
|
|
5145
5145
|
V,
|
|
5146
5146
|
{
|
|
5147
5147
|
variant: "outline",
|
|
@@ -5151,7 +5151,7 @@ const nc = 240, ji = ({
|
|
|
5151
5151
|
"aria-label": "More options"
|
|
5152
5152
|
}
|
|
5153
5153
|
) }),
|
|
5154
|
-
/* @__PURE__ */ e(
|
|
5154
|
+
/* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ u(Qe, { style: { minWidth: 200 }, children: [
|
|
5155
5155
|
/* @__PURE__ */ e(h, { paddingInline: "sm", paddingBlock: "xs", children: /* @__PURE__ */ e(w, { fontSize: "xs", fontWeight: "medium", color: "subtlest", children: "Rows per page" }) }),
|
|
5156
5156
|
n.map((p) => /* @__PURE__ */ e(
|
|
5157
5157
|
Je,
|
|
@@ -5184,31 +5184,31 @@ const nc = 240, ji = ({
|
|
|
5184
5184
|
filterKey: D,
|
|
5185
5185
|
pageKey: C,
|
|
5186
5186
|
searchPlaceholder: I,
|
|
5187
|
-
searchShortcut:
|
|
5188
|
-
searchCollapsible:
|
|
5187
|
+
searchShortcut: z,
|
|
5188
|
+
searchCollapsible: A,
|
|
5189
5189
|
pagination: x,
|
|
5190
5190
|
perPageKey: S,
|
|
5191
5191
|
pageSizeOptions: L,
|
|
5192
5192
|
defaultPerPage: R,
|
|
5193
5193
|
showPagination: k,
|
|
5194
|
-
showResultCount:
|
|
5194
|
+
showResultCount: M,
|
|
5195
5195
|
showPageSize: G,
|
|
5196
5196
|
hasColumns: O,
|
|
5197
5197
|
orderedColumns: H,
|
|
5198
5198
|
allVisible: N,
|
|
5199
5199
|
onToggleVisibility: Z,
|
|
5200
|
-
onReorder:
|
|
5200
|
+
onReorder: Y,
|
|
5201
5201
|
onSetAllHidden: re,
|
|
5202
5202
|
showSavedViews: J,
|
|
5203
|
-
savedViews:
|
|
5204
|
-
onApplyView:
|
|
5205
|
-
onDeleteView:
|
|
5206
|
-
onSaveView:
|
|
5207
|
-
leadingActions:
|
|
5208
|
-
trailingActions:
|
|
5209
|
-
} = t, [
|
|
5210
|
-
|
|
5211
|
-
},
|
|
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 = () => {
|
|
5212
5212
|
p(), xe(!1);
|
|
5213
5213
|
};
|
|
5214
5214
|
return /* @__PURE__ */ u(
|
|
@@ -5242,8 +5242,8 @@ const nc = 240, ji = ({
|
|
|
5242
5242
|
filterKey: D,
|
|
5243
5243
|
pageKey: C,
|
|
5244
5244
|
placeholder: I,
|
|
5245
|
-
shortcut:
|
|
5246
|
-
collapsible:
|
|
5245
|
+
shortcut: z,
|
|
5246
|
+
collapsible: A
|
|
5247
5247
|
}
|
|
5248
5248
|
),
|
|
5249
5249
|
/* @__PURE__ */ e(
|
|
@@ -5267,14 +5267,14 @@ const nc = 240, ji = ({
|
|
|
5267
5267
|
gap: "sm",
|
|
5268
5268
|
style: { marginLeft: "auto" },
|
|
5269
5269
|
children: [
|
|
5270
|
-
|
|
5270
|
+
ke,
|
|
5271
5271
|
J && /* @__PURE__ */ e(
|
|
5272
5272
|
Gi,
|
|
5273
5273
|
{
|
|
5274
|
-
views:
|
|
5275
|
-
onApply:
|
|
5276
|
-
onDelete:
|
|
5277
|
-
onSave:
|
|
5274
|
+
views: me,
|
|
5275
|
+
onApply: j,
|
|
5276
|
+
onDelete: K,
|
|
5277
|
+
onSave: se
|
|
5278
5278
|
}
|
|
5279
5279
|
),
|
|
5280
5280
|
O && /* @__PURE__ */ e(
|
|
@@ -5283,7 +5283,7 @@ const nc = 240, ji = ({
|
|
|
5283
5283
|
columns: H,
|
|
5284
5284
|
allVisible: N,
|
|
5285
5285
|
onToggle: Z,
|
|
5286
|
-
onReorder:
|
|
5286
|
+
onReorder: Y,
|
|
5287
5287
|
onSetAllHidden: re
|
|
5288
5288
|
}
|
|
5289
5289
|
),
|
|
@@ -5297,14 +5297,14 @@ const nc = 240, ji = ({
|
|
|
5297
5297
|
showPageSize: G
|
|
5298
5298
|
}
|
|
5299
5299
|
),
|
|
5300
|
-
|
|
5300
|
+
Be
|
|
5301
5301
|
]
|
|
5302
5302
|
}
|
|
5303
5303
|
)
|
|
5304
5304
|
]
|
|
5305
5305
|
}
|
|
5306
5306
|
),
|
|
5307
|
-
|
|
5307
|
+
he && /* @__PURE__ */ u(
|
|
5308
5308
|
h,
|
|
5309
5309
|
{
|
|
5310
5310
|
direction: "row",
|
|
@@ -5314,7 +5314,7 @@ const nc = 240, ji = ({
|
|
|
5314
5314
|
gap: "sm",
|
|
5315
5315
|
fullWidth: !0,
|
|
5316
5316
|
children: [
|
|
5317
|
-
|
|
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" }),
|
|
5318
5318
|
k && !!(x != null && x.totalPage) && /* @__PURE__ */ e(
|
|
5319
5319
|
sn,
|
|
5320
5320
|
{
|
|
@@ -5323,7 +5323,7 @@ const nc = 240, ji = ({
|
|
|
5323
5323
|
siblingCount: 0,
|
|
5324
5324
|
currentPage: x != null && x.currentPage ? Number(x.currentPage) : 1,
|
|
5325
5325
|
totalPages: Number(x.totalPage),
|
|
5326
|
-
onPageChange:
|
|
5326
|
+
onPageChange: de
|
|
5327
5327
|
}
|
|
5328
5328
|
)
|
|
5329
5329
|
]
|
|
@@ -5332,7 +5332,7 @@ const nc = 240, ji = ({
|
|
|
5332
5332
|
/* @__PURE__ */ e(
|
|
5333
5333
|
ic,
|
|
5334
5334
|
{
|
|
5335
|
-
isOpen:
|
|
5335
|
+
isOpen: Le,
|
|
5336
5336
|
onClose: () => xe(!1),
|
|
5337
5337
|
configs: n,
|
|
5338
5338
|
activeKeys: o,
|
|
@@ -5367,37 +5367,37 @@ const nc = 240, ji = ({
|
|
|
5367
5367
|
searchShortcut: D = "/",
|
|
5368
5368
|
searchPosition: C = "right",
|
|
5369
5369
|
searchCollapsible: I = !0,
|
|
5370
|
-
pagination:
|
|
5371
|
-
columns:
|
|
5370
|
+
pagination: z,
|
|
5371
|
+
columns: A = [],
|
|
5372
5372
|
onColumnsChange: x,
|
|
5373
5373
|
columnsState: S,
|
|
5374
5374
|
scopeId: L,
|
|
5375
5375
|
savedViews: R,
|
|
5376
5376
|
persistLastState: k = !0,
|
|
5377
|
-
persistSearch:
|
|
5377
|
+
persistSearch: M = !0,
|
|
5378
5378
|
storage: G = Hi,
|
|
5379
5379
|
onReset: O,
|
|
5380
5380
|
leadingActions: H,
|
|
5381
5381
|
trailingActions: N
|
|
5382
5382
|
}) => {
|
|
5383
5383
|
const Z = L ?? (R == null ? void 0 : R.scopeId), {
|
|
5384
|
-
activeKeys:
|
|
5384
|
+
activeKeys: Y,
|
|
5385
5385
|
configByKey: re,
|
|
5386
5386
|
hasActiveFilter: J,
|
|
5387
|
-
toggleFilter:
|
|
5388
|
-
removeFilter:
|
|
5389
|
-
getValue:
|
|
5390
|
-
setValue:
|
|
5391
|
-
clearValue:
|
|
5392
|
-
clearAll:
|
|
5387
|
+
toggleFilter: me,
|
|
5388
|
+
removeFilter: j,
|
|
5389
|
+
getValue: K,
|
|
5390
|
+
setValue: se,
|
|
5391
|
+
clearValue: ke,
|
|
5392
|
+
clearAll: Be
|
|
5393
5393
|
} = mn({
|
|
5394
5394
|
configs: r,
|
|
5395
5395
|
filterKey: n,
|
|
5396
5396
|
activeFilterKey: o,
|
|
5397
5397
|
pageKey: i,
|
|
5398
5398
|
searchKey: g
|
|
5399
|
-
}),
|
|
5400
|
-
columns:
|
|
5399
|
+
}), Le = zl({
|
|
5400
|
+
columns: A,
|
|
5401
5401
|
scopeId: Z,
|
|
5402
5402
|
storage: G,
|
|
5403
5403
|
onColumnsChange: x,
|
|
@@ -5407,8 +5407,8 @@ const nc = 240, ji = ({
|
|
|
5407
5407
|
storage: G,
|
|
5408
5408
|
snapshotKeys: [o, n, l],
|
|
5409
5409
|
pageKey: i,
|
|
5410
|
-
getColumns: () =>
|
|
5411
|
-
applyColumns:
|
|
5410
|
+
getColumns: () => Le.state,
|
|
5411
|
+
applyColumns: Le.applyState
|
|
5412
5412
|
}), ve = Hl({
|
|
5413
5413
|
scopeId: Z,
|
|
5414
5414
|
storage: G,
|
|
@@ -5416,8 +5416,8 @@ const nc = 240, ji = ({
|
|
|
5416
5416
|
enabled: k,
|
|
5417
5417
|
filterKey: n,
|
|
5418
5418
|
searchKey: g,
|
|
5419
|
-
persistSearch:
|
|
5420
|
-
}),
|
|
5419
|
+
persistSearch: M
|
|
5420
|
+
}), He = Tl({
|
|
5421
5421
|
scopeId: Z,
|
|
5422
5422
|
storage: G,
|
|
5423
5423
|
perPageKey: l,
|
|
@@ -5429,11 +5429,11 @@ const nc = 240, ji = ({
|
|
|
5429
5429
|
snapshotKeys: [o, n, i],
|
|
5430
5430
|
perPageKey: l,
|
|
5431
5431
|
readSnapshot: ve.read,
|
|
5432
|
-
readPerPage:
|
|
5432
|
+
readPerPage: He.read
|
|
5433
5433
|
});
|
|
5434
|
-
const Ke = s ?? c[0] ?? 25,
|
|
5435
|
-
|
|
5436
|
-
},
|
|
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(
|
|
5437
5437
|
ji,
|
|
5438
5438
|
{
|
|
5439
5439
|
searchKey: g,
|
|
@@ -5444,7 +5444,7 @@ const nc = 240, ji = ({
|
|
|
5444
5444
|
collapsible: I
|
|
5445
5445
|
}
|
|
5446
5446
|
) : null;
|
|
5447
|
-
return
|
|
5447
|
+
return he ? /* @__PURE__ */ u(
|
|
5448
5448
|
h,
|
|
5449
5449
|
{
|
|
5450
5450
|
display: "flex",
|
|
@@ -5473,10 +5473,10 @@ const nc = 240, ji = ({
|
|
|
5473
5473
|
Nl,
|
|
5474
5474
|
{
|
|
5475
5475
|
configs: r,
|
|
5476
|
-
activeKeys:
|
|
5477
|
-
onToggle:
|
|
5476
|
+
activeKeys: Y,
|
|
5477
|
+
onToggle: me,
|
|
5478
5478
|
hasActiveFilter: J,
|
|
5479
|
-
onReset:
|
|
5479
|
+
onReset: de
|
|
5480
5480
|
}
|
|
5481
5481
|
),
|
|
5482
5482
|
C === "left" && ye,
|
|
@@ -5493,12 +5493,12 @@ const nc = 240, ji = ({
|
|
|
5493
5493
|
/* @__PURE__ */ e(
|
|
5494
5494
|
Pi,
|
|
5495
5495
|
{
|
|
5496
|
-
activeKeys:
|
|
5496
|
+
activeKeys: Y,
|
|
5497
5497
|
configByKey: re,
|
|
5498
|
-
getValue:
|
|
5499
|
-
setValue:
|
|
5500
|
-
clearValue:
|
|
5501
|
-
removeFilter:
|
|
5498
|
+
getValue: K,
|
|
5499
|
+
setValue: se,
|
|
5500
|
+
clearValue: ke,
|
|
5501
|
+
removeFilter: j
|
|
5502
5502
|
}
|
|
5503
5503
|
),
|
|
5504
5504
|
J && /* @__PURE__ */ e(
|
|
@@ -5507,7 +5507,7 @@ const nc = 240, ji = ({
|
|
|
5507
5507
|
variant: "link",
|
|
5508
5508
|
tone: "brand",
|
|
5509
5509
|
size: "sm",
|
|
5510
|
-
onClick:
|
|
5510
|
+
onClick: de,
|
|
5511
5511
|
children: "Reset"
|
|
5512
5512
|
}
|
|
5513
5513
|
)
|
|
@@ -5522,7 +5522,7 @@ const nc = 240, ji = ({
|
|
|
5522
5522
|
/* @__PURE__ */ e(
|
|
5523
5523
|
tc,
|
|
5524
5524
|
{
|
|
5525
|
-
pagination:
|
|
5525
|
+
pagination: z,
|
|
5526
5526
|
pageKey: i,
|
|
5527
5527
|
perPageKey: l,
|
|
5528
5528
|
pageSizeOptions: c,
|
|
@@ -5533,7 +5533,7 @@ const nc = 240, ji = ({
|
|
|
5533
5533
|
}
|
|
5534
5534
|
),
|
|
5535
5535
|
C === "right" && ye,
|
|
5536
|
-
|
|
5536
|
+
_e && /* @__PURE__ */ e(
|
|
5537
5537
|
Gi,
|
|
5538
5538
|
{
|
|
5539
5539
|
views: xe.views,
|
|
@@ -5542,14 +5542,14 @@ const nc = 240, ji = ({
|
|
|
5542
5542
|
onSave: xe.saveView
|
|
5543
5543
|
}
|
|
5544
5544
|
),
|
|
5545
|
-
|
|
5545
|
+
A.length > 0 && /* @__PURE__ */ e(
|
|
5546
5546
|
Zi,
|
|
5547
5547
|
{
|
|
5548
|
-
columns:
|
|
5549
|
-
allVisible:
|
|
5550
|
-
onToggle:
|
|
5551
|
-
onReorder:
|
|
5552
|
-
onSetAllHidden:
|
|
5548
|
+
columns: Le.orderedColumns,
|
|
5549
|
+
allVisible: Le.allVisible,
|
|
5550
|
+
onToggle: Le.toggleVisibility,
|
|
5551
|
+
onReorder: Le.reorder,
|
|
5552
|
+
onSetAllHidden: Le.setAllHidden
|
|
5553
5553
|
}
|
|
5554
5554
|
),
|
|
5555
5555
|
N
|
|
@@ -5561,15 +5561,15 @@ const nc = 240, ji = ({
|
|
|
5561
5561
|
{
|
|
5562
5562
|
withPadding: t,
|
|
5563
5563
|
configs: r,
|
|
5564
|
-
activeKeys:
|
|
5564
|
+
activeKeys: Y,
|
|
5565
5565
|
configByKey: re,
|
|
5566
5566
|
hasActiveFilter: J,
|
|
5567
|
-
toggleFilter:
|
|
5568
|
-
removeFilter:
|
|
5569
|
-
getValue:
|
|
5570
|
-
setValue:
|
|
5571
|
-
clearValue:
|
|
5572
|
-
onReset:
|
|
5567
|
+
toggleFilter: me,
|
|
5568
|
+
removeFilter: j,
|
|
5569
|
+
getValue: K,
|
|
5570
|
+
setValue: se,
|
|
5571
|
+
clearValue: ke,
|
|
5572
|
+
onReset: de,
|
|
5573
5573
|
searchable: p,
|
|
5574
5574
|
searchKey: g,
|
|
5575
5575
|
filterKey: n,
|
|
@@ -5577,20 +5577,20 @@ const nc = 240, ji = ({
|
|
|
5577
5577
|
searchPlaceholder: b,
|
|
5578
5578
|
searchShortcut: D,
|
|
5579
5579
|
searchCollapsible: I,
|
|
5580
|
-
pagination:
|
|
5580
|
+
pagination: z,
|
|
5581
5581
|
perPageKey: l,
|
|
5582
5582
|
pageSizeOptions: c,
|
|
5583
5583
|
defaultPerPage: Ke,
|
|
5584
5584
|
showPagination: a,
|
|
5585
5585
|
showResultCount: d,
|
|
5586
5586
|
showPageSize: f,
|
|
5587
|
-
hasColumns:
|
|
5588
|
-
orderedColumns:
|
|
5589
|
-
allVisible:
|
|
5590
|
-
onToggleVisibility:
|
|
5591
|
-
onReorder:
|
|
5592
|
-
onSetAllHidden:
|
|
5593
|
-
showSavedViews:
|
|
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,
|
|
5594
5594
|
savedViews: xe.views,
|
|
5595
5595
|
onApplyView: xe.applyView,
|
|
5596
5596
|
onDeleteView: xe.deleteView,
|
|
@@ -5647,25 +5647,25 @@ const nc = 240, ji = ({
|
|
|
5647
5647
|
pageKey: i,
|
|
5648
5648
|
searchKey: c
|
|
5649
5649
|
}), { searchParams: C } = it(), I = C.toString();
|
|
5650
|
-
return
|
|
5651
|
-
const
|
|
5652
|
-
|
|
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;
|
|
5653
5653
|
const R = fn(c, C, n) || "";
|
|
5654
|
-
R && (
|
|
5654
|
+
R && (A[(d == null ? void 0 : d.search) ?? "search"] = R);
|
|
5655
5655
|
let k = !1;
|
|
5656
|
-
for (const
|
|
5657
|
-
const G = g[
|
|
5656
|
+
for (const M of p) {
|
|
5657
|
+
const G = g[M];
|
|
5658
5658
|
if (!G) continue;
|
|
5659
5659
|
const O = D(G);
|
|
5660
|
-
x[
|
|
5661
|
-
const H = f == null ? void 0 : f[
|
|
5660
|
+
x[M] = O;
|
|
5661
|
+
const H = f == null ? void 0 : f[M], N = H ? H(O) : dc(G, O);
|
|
5662
5662
|
if (N == null || Array.isArray(N) && N.length === 0)
|
|
5663
5663
|
continue;
|
|
5664
|
-
const Z = (d == null ? void 0 : d[
|
|
5665
|
-
|
|
5664
|
+
const Z = (d == null ? void 0 : d[M]) ?? M;
|
|
5665
|
+
A[Z] = N, k = !0;
|
|
5666
5666
|
}
|
|
5667
5667
|
return {
|
|
5668
|
-
params:
|
|
5668
|
+
params: A,
|
|
5669
5669
|
raw: x,
|
|
5670
5670
|
hasActiveFilter: b || !!R || k
|
|
5671
5671
|
};
|
|
@@ -5705,7 +5705,7 @@ const nc = 240, ji = ({
|
|
|
5705
5705
|
var R;
|
|
5706
5706
|
const L = x.options;
|
|
5707
5707
|
return ((R = L == null ? void 0 : L.find((k) => k.value === S)) == null ? void 0 : R.label) ?? S;
|
|
5708
|
-
}, g =
|
|
5708
|
+
}, g = P(
|
|
5709
5709
|
(x) => {
|
|
5710
5710
|
const S = l[x];
|
|
5711
5711
|
if (!S) return [];
|
|
@@ -5713,7 +5713,7 @@ const nc = 240, ji = ({
|
|
|
5713
5713
|
return Array.isArray(L) ? L.map((R) => String(R.value)) : [];
|
|
5714
5714
|
},
|
|
5715
5715
|
[l, c]
|
|
5716
|
-
), b =
|
|
5716
|
+
), b = P(
|
|
5717
5717
|
(x, S) => {
|
|
5718
5718
|
const L = l[x];
|
|
5719
5719
|
if (!L || !uc.includes(L.type)) return;
|
|
@@ -5728,22 +5728,22 @@ const nc = 240, ji = ({
|
|
|
5728
5728
|
);
|
|
5729
5729
|
},
|
|
5730
5730
|
[l, s, a]
|
|
5731
|
-
), D =
|
|
5731
|
+
), D = P(
|
|
5732
5732
|
(x, S) => {
|
|
5733
5733
|
const L = g(x);
|
|
5734
5734
|
b(x, L.includes(S) ? L.filter((R) => R !== S) : [...L, S]);
|
|
5735
5735
|
},
|
|
5736
5736
|
[g, b]
|
|
5737
|
-
), C =
|
|
5737
|
+
), C = P(
|
|
5738
5738
|
(x, S) => g(x).includes(S),
|
|
5739
5739
|
[g]
|
|
5740
|
-
), I =
|
|
5740
|
+
), I = P((x) => a(x), [a]), z = P(
|
|
5741
5741
|
(x) => {
|
|
5742
5742
|
const S = l[x];
|
|
5743
5743
|
return S ? c(S) : void 0;
|
|
5744
5744
|
},
|
|
5745
5745
|
[l, c]
|
|
5746
|
-
),
|
|
5746
|
+
), A = P(
|
|
5747
5747
|
(x, S) => {
|
|
5748
5748
|
const L = l[x];
|
|
5749
5749
|
if (L) {
|
|
@@ -5763,8 +5763,8 @@ const nc = 240, ji = ({
|
|
|
5763
5763
|
clearAll: d,
|
|
5764
5764
|
isActive: C,
|
|
5765
5765
|
values: g,
|
|
5766
|
-
getRaw:
|
|
5767
|
-
setRaw:
|
|
5766
|
+
getRaw: z,
|
|
5767
|
+
setRaw: A,
|
|
5768
5768
|
hasActiveFilter: f
|
|
5769
5769
|
};
|
|
5770
5770
|
}, Pr = "var(--sa-background-brand, #04254f)", hc = "var(--sa-text-brand, #031f43)", fc = {
|
|
@@ -5932,7 +5932,7 @@ const nc = 240, ji = ({
|
|
|
5932
5932
|
controls: r
|
|
5933
5933
|
}) => {
|
|
5934
5934
|
const n = r.getRaw(t.key) ?? "", [o, i] = B(n), l = ln(o, t.debounceMs ?? 300);
|
|
5935
|
-
return
|
|
5935
|
+
return Q(() => {
|
|
5936
5936
|
const c = r.getRaw(t.key) ?? "";
|
|
5937
5937
|
l !== c && r.setRaw(t.key, l || null);
|
|
5938
5938
|
}, [l]), /* @__PURE__ */ u(h, { style: { display: "flex", flexDirection: "column", gap: 6, minWidth: 220 }, children: [
|
|
@@ -5984,7 +5984,7 @@ const nc = 240, ji = ({
|
|
|
5984
5984
|
}
|
|
5985
5985
|
}, xc = ({ children: t, borderRadius: r, height: n }) => {
|
|
5986
5986
|
const o = le(null), [i, l] = B("100vh");
|
|
5987
|
-
return
|
|
5987
|
+
return Q(() => {
|
|
5988
5988
|
if (n) return;
|
|
5989
5989
|
const c = () => {
|
|
5990
5990
|
if (o.current) {
|
|
@@ -6179,29 +6179,29 @@ const nc = 240, ji = ({
|
|
|
6179
6179
|
}
|
|
6180
6180
|
);
|
|
6181
6181
|
}, Dc = ({ filter: t, columnTitle: r }) => {
|
|
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 =
|
|
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(
|
|
6183
6183
|
(C) => C.label.toLowerCase().includes(s.toLowerCase())
|
|
6184
6184
|
) : t.options, [t.options, s]);
|
|
6185
|
-
|
|
6185
|
+
Q(() => {
|
|
6186
6186
|
if (n && l.current) {
|
|
6187
|
-
const C = l.current.getBoundingClientRect(), I = 280,
|
|
6187
|
+
const C = l.current.getBoundingClientRect(), I = 280, z = {
|
|
6188
6188
|
top: C.bottom + 8
|
|
6189
6189
|
};
|
|
6190
|
-
t.position === "left" || C.left + I > window.innerWidth ?
|
|
6190
|
+
t.position === "left" || C.left + I > window.innerWidth ? z.right = window.innerWidth - C.right : z.left = C.left, f(z);
|
|
6191
6191
|
}
|
|
6192
|
-
}, [n, t.position]),
|
|
6192
|
+
}, [n, t.position]), Q(() => {
|
|
6193
6193
|
n && c.current ? setTimeout(() => {
|
|
6194
6194
|
var C;
|
|
6195
6195
|
return (C = c.current) == null ? void 0 : C.focus();
|
|
6196
6196
|
}, 50) : a("");
|
|
6197
|
-
}, [n]),
|
|
6197
|
+
}, [n]), Q(() => {
|
|
6198
6198
|
const C = (I) => {
|
|
6199
6199
|
i.current && !i.current.contains(I.target) && l.current && !l.current.contains(I.target) && o(!1);
|
|
6200
6200
|
};
|
|
6201
6201
|
return n && document.addEventListener("mousedown", C), () => document.removeEventListener("mousedown", C);
|
|
6202
6202
|
}, [n]);
|
|
6203
6203
|
const b = (C) => {
|
|
6204
|
-
const I = p.includes(C) ? p.filter((
|
|
6204
|
+
const I = p.includes(C) ? p.filter((z) => z !== C) : [...p, C];
|
|
6205
6205
|
t.onFilterChange(I);
|
|
6206
6206
|
}, D = () => t.onFilterChange([]);
|
|
6207
6207
|
return /* @__PURE__ */ u(h, { direction: "column", style: { position: "relative" }, children: [
|
|
@@ -6217,7 +6217,7 @@ const nc = 240, ji = ({
|
|
|
6217
6217
|
},
|
|
6218
6218
|
onClick: (C) => {
|
|
6219
6219
|
var I;
|
|
6220
|
-
C.stopPropagation(), n || (I = t.onOpen) == null || I.call(t), o((
|
|
6220
|
+
C.stopPropagation(), n || (I = t.onOpen) == null || I.call(t), o((z) => !z);
|
|
6221
6221
|
},
|
|
6222
6222
|
children: /* @__PURE__ */ e(
|
|
6223
6223
|
F,
|
|
@@ -6548,81 +6548,81 @@ const nc = 240, ji = ({
|
|
|
6548
6548
|
actionsOrder: D = ["detail", "update", "delete", "custom"],
|
|
6549
6549
|
customEmptyState: C,
|
|
6550
6550
|
enableColumnResize: I = !1,
|
|
6551
|
-
defaultColumnWidths:
|
|
6552
|
-
onColumnWidthsChange:
|
|
6551
|
+
defaultColumnWidths: z,
|
|
6552
|
+
onColumnWidthsChange: A,
|
|
6553
6553
|
defaultMinColumnWidth: x = 60,
|
|
6554
6554
|
sort: S,
|
|
6555
6555
|
defaultSort: L,
|
|
6556
6556
|
onSortChange: R,
|
|
6557
6557
|
showActionDivider: k = !1
|
|
6558
6558
|
}) => {
|
|
6559
|
-
const
|
|
6559
|
+
const M = S !== void 0, [G, O] = B(
|
|
6560
6560
|
L ?? null
|
|
6561
|
-
), H =
|
|
6561
|
+
), H = M ? S ?? null : G, N = (T) => {
|
|
6562
6562
|
if (T.sortKey) return T.sortKey;
|
|
6563
6563
|
if (typeof T.accessor == "string") return T.accessor;
|
|
6564
6564
|
}, Z = (T) => {
|
|
6565
6565
|
const X = N(T);
|
|
6566
6566
|
if (!X) return;
|
|
6567
|
-
let
|
|
6568
|
-
!H || H.key !== X ?
|
|
6569
|
-
}, re = [n, o, i].filter((T) => T !== void 0).length, J = !!b,
|
|
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) => {
|
|
6570
6570
|
if (!X) return T;
|
|
6571
6571
|
if (typeof X == "function") return X(T);
|
|
6572
6572
|
if (typeof X == "string") return T[X];
|
|
6573
6573
|
}, [xe, ve] = B(!1);
|
|
6574
|
-
|
|
6574
|
+
Q(() => {
|
|
6575
6575
|
if (!(f != null && f.current)) return;
|
|
6576
6576
|
const T = f.current;
|
|
6577
6577
|
ve(T.scrollHeight > T.clientHeight);
|
|
6578
6578
|
}, [r, f]);
|
|
6579
|
-
const
|
|
6580
|
-
() =>
|
|
6579
|
+
const He = le(null), [Ke, _e] = B([]), [de, he] = B(
|
|
6580
|
+
() => z ?? {}
|
|
6581
6581
|
), ye = le(null);
|
|
6582
6582
|
mt(() => {
|
|
6583
|
-
if (!p || !
|
|
6584
|
-
|
|
6583
|
+
if (!p || !He.current) {
|
|
6584
|
+
_e([]);
|
|
6585
6585
|
return;
|
|
6586
6586
|
}
|
|
6587
6587
|
const T = Array.from(
|
|
6588
|
-
|
|
6588
|
+
He.current.querySelectorAll("thead tr th")
|
|
6589
6589
|
), X = [];
|
|
6590
|
-
let
|
|
6591
|
-
T.forEach((
|
|
6592
|
-
X[
|
|
6593
|
-
}),
|
|
6594
|
-
}, [p, t, r,
|
|
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]);
|
|
6595
6595
|
const De = (T) => {
|
|
6596
6596
|
g && g(T < p ? T : T + 1);
|
|
6597
6597
|
}, Me = (T, X) => {
|
|
6598
|
-
const
|
|
6599
|
-
if (
|
|
6600
|
-
const
|
|
6601
|
-
return { width:
|
|
6598
|
+
const q = de[T];
|
|
6599
|
+
if (q !== void 0) {
|
|
6600
|
+
const fe = `${q}px`;
|
|
6601
|
+
return { width: fe, minWidth: fe, maxWidth: fe };
|
|
6602
6602
|
}
|
|
6603
6603
|
return X ? { width: X } : {};
|
|
6604
6604
|
}, st = (T) => I && (T.resizable ?? !0), at = (T, X) => {
|
|
6605
6605
|
T.preventDefault(), T.stopPropagation();
|
|
6606
|
-
const
|
|
6607
|
-
if (!
|
|
6608
|
-
const
|
|
6609
|
-
ye.current = { colIndex: X, startX: T.clientX, startWidth:
|
|
6610
|
-
const
|
|
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;
|
|
6611
6611
|
document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
|
|
6612
|
-
const
|
|
6613
|
-
var
|
|
6612
|
+
const Ne = (et) => {
|
|
6613
|
+
var Re;
|
|
6614
6614
|
const Ae = ye.current;
|
|
6615
6615
|
if (!Ae) return;
|
|
6616
|
-
const St = ((
|
|
6617
|
-
|
|
6618
|
-
(
|
|
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 }
|
|
6619
6619
|
);
|
|
6620
6620
|
}, dt = () => {
|
|
6621
|
-
document.removeEventListener("mousemove",
|
|
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));
|
|
6622
6622
|
};
|
|
6623
|
-
document.addEventListener("mousemove",
|
|
6623
|
+
document.addEventListener("mousemove", Ne), document.addEventListener("mouseup", dt);
|
|
6624
6624
|
};
|
|
6625
|
-
return /* @__PURE__ */ e("div", { ref:
|
|
6625
|
+
return /* @__PURE__ */ e("div", { ref: He, children: /* @__PURE__ */ u(ur, { fullWidth: !0, children: [
|
|
6626
6626
|
/* @__PURE__ */ e(
|
|
6627
6627
|
Ci,
|
|
6628
6628
|
{
|
|
@@ -6633,14 +6633,14 @@ const nc = 240, ji = ({
|
|
|
6633
6633
|
children: /* @__PURE__ */ u(nt, { children: [
|
|
6634
6634
|
t.map((T, X) => {
|
|
6635
6635
|
var zt, ut;
|
|
6636
|
-
const
|
|
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(
|
|
6637
6637
|
F,
|
|
6638
6638
|
{
|
|
6639
6639
|
name: "InfoCircle",
|
|
6640
6640
|
size: "xs",
|
|
6641
6641
|
style: { flexShrink: 0, color: "var(--sa-icon-subtle, #8c8f97)", opacity: 0.75 }
|
|
6642
6642
|
}
|
|
6643
|
-
) : null,
|
|
6643
|
+
) : null, Re = /* @__PURE__ */ e("span", { style: { flex: 1, minWidth: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: St }), Te = et ? /* @__PURE__ */ u(
|
|
6644
6644
|
"button",
|
|
6645
6645
|
{
|
|
6646
6646
|
type: "button",
|
|
@@ -6662,13 +6662,13 @@ const nc = 240, ji = ({
|
|
|
6662
6662
|
textAlign: T.textAlign === "text-right" ? "right" : T.textAlign === "text-center" ? "center" : "left"
|
|
6663
6663
|
},
|
|
6664
6664
|
children: [
|
|
6665
|
-
|
|
6665
|
+
Re,
|
|
6666
6666
|
xt,
|
|
6667
6667
|
/* @__PURE__ */ e(kc, { direction: Ae })
|
|
6668
6668
|
]
|
|
6669
6669
|
}
|
|
6670
6670
|
) : /* @__PURE__ */ u("span", { style: { flex: 1, minWidth: 0, display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
6671
|
-
|
|
6671
|
+
Re,
|
|
6672
6672
|
xt
|
|
6673
6673
|
] });
|
|
6674
6674
|
return /* @__PURE__ */ u(
|
|
@@ -6677,12 +6677,12 @@ const nc = 240, ji = ({
|
|
|
6677
6677
|
style: {
|
|
6678
6678
|
position: "sticky",
|
|
6679
6679
|
top: 0,
|
|
6680
|
-
left:
|
|
6681
|
-
zIndex:
|
|
6680
|
+
left: q ? fe : void 0,
|
|
6681
|
+
zIndex: q ? 4 : 2,
|
|
6682
6682
|
paddingLeft: X === 0 ? "12px" : "",
|
|
6683
|
-
borderRight: d && !
|
|
6684
|
-
borderBottom: d ?
|
|
6685
|
-
boxShadow: d &&
|
|
6683
|
+
borderRight: d && !Ne && !q ? K : void 0,
|
|
6684
|
+
borderBottom: d ? K : void 0,
|
|
6685
|
+
boxShadow: d && q ? ke : void 0,
|
|
6686
6686
|
backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
|
|
6687
6687
|
textAlign: T.textAlign === "text-right" ? "right" : T.textAlign === "text-center" ? "center" : "left",
|
|
6688
6688
|
...Me(X, T.width)
|
|
@@ -6699,7 +6699,7 @@ const nc = 240, ji = ({
|
|
|
6699
6699
|
minWidth: 0
|
|
6700
6700
|
},
|
|
6701
6701
|
children: [
|
|
6702
|
-
T.headerTooltip ? /* @__PURE__ */ e(
|
|
6702
|
+
T.headerTooltip ? /* @__PURE__ */ e(Ve, { label: T.headerTooltip.content, position: "bottom", children: Te }) : Te,
|
|
6703
6703
|
T.filter && /* @__PURE__ */ e(
|
|
6704
6704
|
Dc,
|
|
6705
6705
|
{
|
|
@@ -6711,7 +6711,7 @@ const nc = 240, ji = ({
|
|
|
6711
6711
|
"button",
|
|
6712
6712
|
{
|
|
6713
6713
|
onClick: () => De(X),
|
|
6714
|
-
title:
|
|
6714
|
+
title: q ? "Unfreeze column" : "Freeze column",
|
|
6715
6715
|
style: {
|
|
6716
6716
|
background: "none",
|
|
6717
6717
|
border: "none",
|
|
@@ -6720,17 +6720,17 @@ const nc = 240, ji = ({
|
|
|
6720
6720
|
display: "flex",
|
|
6721
6721
|
alignItems: "center",
|
|
6722
6722
|
flexShrink: 0,
|
|
6723
|
-
color:
|
|
6724
|
-
opacity:
|
|
6723
|
+
color: q ? "var(--sa-background-brand, #04254f)" : "var(--sa-text-subtle, #8c8f97)",
|
|
6724
|
+
opacity: q ? 1 : 0.45,
|
|
6725
6725
|
transition: "opacity 0.15s"
|
|
6726
6726
|
},
|
|
6727
|
-
children: /* @__PURE__ */ e(Sc, { frozen:
|
|
6727
|
+
children: /* @__PURE__ */ e(Sc, { frozen: q })
|
|
6728
6728
|
}
|
|
6729
6729
|
)
|
|
6730
6730
|
]
|
|
6731
6731
|
}
|
|
6732
6732
|
),
|
|
6733
|
-
|
|
6733
|
+
We && /* @__PURE__ */ e(
|
|
6734
6734
|
"div",
|
|
6735
6735
|
{
|
|
6736
6736
|
onMouseDown: (Et) => at(Et, X),
|
|
@@ -6756,7 +6756,7 @@ const nc = 240, ji = ({
|
|
|
6756
6756
|
`table-head-${X}`
|
|
6757
6757
|
);
|
|
6758
6758
|
}),
|
|
6759
|
-
|
|
6759
|
+
me ? /* @__PURE__ */ e(
|
|
6760
6760
|
Tt,
|
|
6761
6761
|
{
|
|
6762
6762
|
style: {
|
|
@@ -6765,21 +6765,21 @@ const nc = 240, ji = ({
|
|
|
6765
6765
|
top: 0,
|
|
6766
6766
|
right: 0,
|
|
6767
6767
|
zIndex: 3,
|
|
6768
|
-
borderBottom: d ?
|
|
6769
|
-
boxShadow: d && k ?
|
|
6768
|
+
borderBottom: d ? K : void 0,
|
|
6769
|
+
boxShadow: d && k ? se : void 0
|
|
6770
6770
|
}
|
|
6771
6771
|
}
|
|
6772
6772
|
) : null
|
|
6773
6773
|
] })
|
|
6774
6774
|
}
|
|
6775
6775
|
),
|
|
6776
|
-
/* @__PURE__ */ e(Xr, { children: l ? /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e(
|
|
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: [
|
|
6777
6777
|
/* @__PURE__ */ e(Ct, { variant: "list" }),
|
|
6778
6778
|
/* @__PURE__ */ e(Ct, { variant: "list" }),
|
|
6779
6779
|
/* @__PURE__ */ e(Ct, { variant: "list" }),
|
|
6780
6780
|
/* @__PURE__ */ e(Ct, { variant: "list" }),
|
|
6781
6781
|
/* @__PURE__ */ e(Ct, { variant: "list" })
|
|
6782
|
-
] }) }) }) : !(r != null && r.length) && C ? /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e(
|
|
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(
|
|
6783
6783
|
nt,
|
|
6784
6784
|
{
|
|
6785
6785
|
style: {
|
|
@@ -6787,66 +6787,66 @@ const nc = 240, ji = ({
|
|
|
6787
6787
|
padding: 0,
|
|
6788
6788
|
borderBottom: X === r.length - 1 && xe ? void 0 : "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
6789
6789
|
},
|
|
6790
|
-
onMouseEnter: (
|
|
6791
|
-
const
|
|
6792
|
-
|
|
6793
|
-
|
|
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);
|
|
6794
6794
|
});
|
|
6795
6795
|
},
|
|
6796
|
-
onMouseLeave: (
|
|
6797
|
-
const
|
|
6798
|
-
|
|
6799
|
-
|
|
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);
|
|
6800
6800
|
});
|
|
6801
6801
|
},
|
|
6802
6802
|
children: [
|
|
6803
|
-
t.map((
|
|
6804
|
-
const
|
|
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;
|
|
6805
6805
|
return /* @__PURE__ */ e(
|
|
6806
|
-
|
|
6806
|
+
$e,
|
|
6807
6807
|
{
|
|
6808
6808
|
style: {
|
|
6809
6809
|
position: Ce ? "sticky" : void 0,
|
|
6810
|
-
left: Ce ?
|
|
6810
|
+
left: Ce ? Ne : void 0,
|
|
6811
6811
|
zIndex: Ce ? 1 : void 0,
|
|
6812
6812
|
backgroundColor: Ce ? jr : void 0,
|
|
6813
6813
|
transition: Ce ? "background-color 0.3s ease" : void 0,
|
|
6814
|
-
paddingLeft:
|
|
6814
|
+
paddingLeft: fe === 0 ? "12px" : "",
|
|
6815
6815
|
whiteSpace: "nowrap",
|
|
6816
6816
|
overflow: dt ? "hidden" : void 0,
|
|
6817
|
-
borderLeft:
|
|
6818
|
-
borderRight:
|
|
6819
|
-
boxShadow: et ?
|
|
6820
|
-
textAlign:
|
|
6821
|
-
...Me(
|
|
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)
|
|
6822
6822
|
},
|
|
6823
|
-
children: typeof
|
|
6823
|
+
children: typeof We == "string" ? /* @__PURE__ */ e(
|
|
6824
6824
|
w,
|
|
6825
6825
|
{
|
|
6826
6826
|
style: {
|
|
6827
6827
|
whiteSpace: "nowrap",
|
|
6828
6828
|
overflow: "hidden",
|
|
6829
6829
|
textOverflow: "ellipsis",
|
|
6830
|
-
textAlign:
|
|
6830
|
+
textAlign: q.textAlign === "text-right" ? "right" : q.textAlign === "text-center" ? "center" : "left"
|
|
6831
6831
|
},
|
|
6832
|
-
children:
|
|
6832
|
+
children: We
|
|
6833
6833
|
}
|
|
6834
|
-
) :
|
|
6834
|
+
) : We
|
|
6835
6835
|
},
|
|
6836
|
-
`row-${X}-col-${
|
|
6836
|
+
`row-${X}-col-${fe}`
|
|
6837
6837
|
);
|
|
6838
6838
|
}),
|
|
6839
|
-
|
|
6840
|
-
width:
|
|
6839
|
+
me ? /* @__PURE__ */ e($e, { style: {
|
|
6840
|
+
width: Be,
|
|
6841
6841
|
position: "sticky",
|
|
6842
6842
|
right: 0,
|
|
6843
6843
|
zIndex: 1,
|
|
6844
6844
|
backgroundColor: jr,
|
|
6845
|
-
boxShadow: k ?
|
|
6845
|
+
boxShadow: k ? se : void 0,
|
|
6846
6846
|
transition: "background-color 0.3s ease"
|
|
6847
|
-
}, children: /* @__PURE__ */ e(pe, { direction: "row", align: "center", justify: "center", gap: "sm", children: D.map((
|
|
6848
|
-
const
|
|
6849
|
-
return
|
|
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(
|
|
6850
6850
|
V,
|
|
6851
6851
|
{
|
|
6852
6852
|
size: "xs",
|
|
@@ -6855,7 +6855,7 @@ const nc = 240, ji = ({
|
|
|
6855
6855
|
onClick: () => n(T.id, T),
|
|
6856
6856
|
iconLeft: /* @__PURE__ */ e(F, { name: "DocumentClean", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
6857
6857
|
}
|
|
6858
|
-
) }, "detail") :
|
|
6858
|
+
) }, "detail") : q === "update" && o && (s == null ? void 0 : s(T)) !== !1 ? /* @__PURE__ */ e(Ve, { label: "Update", position: fe, children: /* @__PURE__ */ e(
|
|
6859
6859
|
V,
|
|
6860
6860
|
{
|
|
6861
6861
|
size: "xs",
|
|
@@ -6864,7 +6864,7 @@ const nc = 240, ji = ({
|
|
|
6864
6864
|
onClick: () => o(T),
|
|
6865
6865
|
iconLeft: /* @__PURE__ */ e(F, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
6866
6866
|
}
|
|
6867
|
-
) }, "update") :
|
|
6867
|
+
) }, "update") : q === "delete" && i && (c == null ? void 0 : c(T)) !== !1 ? /* @__PURE__ */ e(Ve, { label: "Delete", position: fe, children: /* @__PURE__ */ e(
|
|
6868
6868
|
V,
|
|
6869
6869
|
{
|
|
6870
6870
|
size: "xs",
|
|
@@ -6873,7 +6873,7 @@ const nc = 240, ji = ({
|
|
|
6873
6873
|
onClick: () => i(T.id, T),
|
|
6874
6874
|
iconLeft: /* @__PURE__ */ e(F, { name: "Trash1", size: "sm", style: { color: "var(--sa-color-error-600, #c9184a)" } })
|
|
6875
6875
|
}
|
|
6876
|
-
) }, "delete") :
|
|
6876
|
+
) }, "delete") : q === "custom" ? /* @__PURE__ */ e(Dt.Fragment, { children: b == null ? void 0 : b(T) }, "custom") : null;
|
|
6877
6877
|
}) }) }) : null
|
|
6878
6878
|
]
|
|
6879
6879
|
},
|
|
@@ -7014,7 +7014,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7014
7014
|
}) => {
|
|
7015
7015
|
const [p, g] = B(!1), b = le(null), D = le(null), [C, I] = B(
|
|
7016
7016
|
{ top: 0, left: 0 }
|
|
7017
|
-
),
|
|
7017
|
+
), z = P(() => {
|
|
7018
7018
|
var H;
|
|
7019
7019
|
const x = b.current;
|
|
7020
7020
|
if (!x) return;
|
|
@@ -7023,24 +7023,24 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7023
7023
|
g(!1);
|
|
7024
7024
|
return;
|
|
7025
7025
|
}
|
|
7026
|
-
const k = Math.min(window.innerWidth - 8, R ? R.right : window.innerWidth),
|
|
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));
|
|
7027
7027
|
I({ top: S.bottom + 6, left: O });
|
|
7028
7028
|
}, []);
|
|
7029
|
-
|
|
7029
|
+
Q(() => {
|
|
7030
7030
|
if (!p) return;
|
|
7031
|
-
|
|
7032
|
-
const x = () =>
|
|
7031
|
+
z();
|
|
7032
|
+
const x = () => z();
|
|
7033
7033
|
return window.addEventListener("scroll", x, !0), window.addEventListener("resize", x), () => {
|
|
7034
7034
|
window.removeEventListener("scroll", x, !0), window.removeEventListener("resize", x);
|
|
7035
7035
|
};
|
|
7036
|
-
}, [p,
|
|
7036
|
+
}, [p, z]), Q(() => {
|
|
7037
7037
|
if (!p) return;
|
|
7038
7038
|
const x = (S) => {
|
|
7039
7039
|
D.current && !D.current.contains(S.target) && b.current && !b.current.contains(S.target) && g(!1);
|
|
7040
7040
|
};
|
|
7041
7041
|
return document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
|
|
7042
7042
|
}, [p]);
|
|
7043
|
-
const
|
|
7043
|
+
const A = (x) => {
|
|
7044
7044
|
x(), g(!1);
|
|
7045
7045
|
};
|
|
7046
7046
|
return /* @__PURE__ */ u(ne, { children: [
|
|
@@ -7114,7 +7114,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7114
7114
|
icon: "ChevronUp",
|
|
7115
7115
|
label: "Ascending",
|
|
7116
7116
|
active: o === "asc",
|
|
7117
|
-
onClick: () =>
|
|
7117
|
+
onClick: () => A(() => o === "asc" ? c() : l("asc"))
|
|
7118
7118
|
}
|
|
7119
7119
|
),
|
|
7120
7120
|
/* @__PURE__ */ e(
|
|
@@ -7123,7 +7123,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7123
7123
|
icon: "ChevronDown",
|
|
7124
7124
|
label: "Descending",
|
|
7125
7125
|
active: o === "desc",
|
|
7126
|
-
onClick: () =>
|
|
7126
|
+
onClick: () => A(() => o === "desc" ? c() : l("desc"))
|
|
7127
7127
|
}
|
|
7128
7128
|
),
|
|
7129
7129
|
/* @__PURE__ */ e("div", { style: { borderTop: or, margin: "4px 0" } })
|
|
@@ -7134,7 +7134,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7134
7134
|
icon: "Pin1",
|
|
7135
7135
|
label: i ? "Unfreeze" : "Freeze",
|
|
7136
7136
|
active: i,
|
|
7137
|
-
onClick: () =>
|
|
7137
|
+
onClick: () => A(s)
|
|
7138
7138
|
}
|
|
7139
7139
|
),
|
|
7140
7140
|
n && /* @__PURE__ */ e(
|
|
@@ -7143,7 +7143,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7143
7143
|
icon: "EyeClosed",
|
|
7144
7144
|
label: "Hide column",
|
|
7145
7145
|
danger: !0,
|
|
7146
|
-
onClick: () =>
|
|
7146
|
+
onClick: () => A(a)
|
|
7147
7147
|
}
|
|
7148
7148
|
)
|
|
7149
7149
|
]
|
|
@@ -7245,100 +7245,100 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7245
7245
|
onSortChange: D,
|
|
7246
7246
|
height: C,
|
|
7247
7247
|
mobileLayout: I = "cards",
|
|
7248
|
-
mobileBreakpoint:
|
|
7249
|
-
groupSeparator:
|
|
7248
|
+
mobileBreakpoint: z = "md",
|
|
7249
|
+
groupSeparator: A,
|
|
7250
7250
|
summary: x,
|
|
7251
7251
|
footer: S,
|
|
7252
7252
|
stickyFooter: L = !1,
|
|
7253
7253
|
emptyState: R,
|
|
7254
7254
|
loading: k = !1,
|
|
7255
|
-
loadingRows:
|
|
7255
|
+
loadingRows: M = 8,
|
|
7256
7256
|
rowActions: G,
|
|
7257
7257
|
rowActionsMode: O = "auto",
|
|
7258
7258
|
selectable: H = !1,
|
|
7259
7259
|
selectedKeys: N,
|
|
7260
7260
|
defaultSelectedKeys: Z,
|
|
7261
|
-
onSelectionChange:
|
|
7261
|
+
onSelectionChange: Y,
|
|
7262
7262
|
isRowSelectable: re
|
|
7263
7263
|
}) => {
|
|
7264
7264
|
$c();
|
|
7265
|
-
const
|
|
7266
|
-
|
|
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(() => {
|
|
7267
7267
|
if (!ve) return;
|
|
7268
|
-
const y = () =>
|
|
7268
|
+
const y = () => He(null), v = setTimeout(() => document.addEventListener("click", y), 0);
|
|
7269
7269
|
return () => {
|
|
7270
7270
|
clearTimeout(v), document.removeEventListener("click", y);
|
|
7271
7271
|
};
|
|
7272
7272
|
}, [ve]);
|
|
7273
|
-
const [Ke,
|
|
7273
|
+
const [Ke, _e] = B(
|
|
7274
7274
|
() => /* @__PURE__ */ new Set()
|
|
7275
|
-
),
|
|
7276
|
-
d == null || d(y),
|
|
7275
|
+
), de = a !== void 0, [he, ye] = B({}), De = a ?? he, Me = (y) => {
|
|
7276
|
+
d == null || d(y), de || ye(y);
|
|
7277
7277
|
}, st = g !== void 0, [at, T] = B(
|
|
7278
7278
|
b ?? null
|
|
7279
|
-
), X = st ? g ?? null : at,
|
|
7279
|
+
), X = st ? g ?? null : at, q = !D, fe = (y) => {
|
|
7280
7280
|
D == null || D(y), st || T(y);
|
|
7281
|
-
}, { headerGroups:
|
|
7281
|
+
}, { headerGroups: We, leafColumns: Ce, hasGroups: Ne } = Fe(() => {
|
|
7282
7282
|
var oe;
|
|
7283
|
-
const y = new Set(De.hidden ?? []), v = (ie,
|
|
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) => {
|
|
7284
7284
|
var lt;
|
|
7285
7285
|
if ((lt = ie.children) != null && lt.length) {
|
|
7286
|
-
const Pt = ie.children.map((ht, Vt) => ({ col: ht, key: v(ht, `${
|
|
7287
|
-
return { col: ie, key: ie.key ?? `group-${
|
|
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 };
|
|
7288
7288
|
}
|
|
7289
|
-
const
|
|
7289
|
+
const Ee = { col: ie, key: v(ie, `${Se}`) };
|
|
7290
7290
|
return {
|
|
7291
7291
|
col: ie,
|
|
7292
|
-
key:
|
|
7292
|
+
key: Ee.key,
|
|
7293
7293
|
isGroup: !1,
|
|
7294
|
-
leaves: y.has(
|
|
7294
|
+
leaves: y.has(Ee.key) ? [] : [Ee]
|
|
7295
7295
|
};
|
|
7296
|
-
}).filter((ie) => ie.leaves.length > 0),
|
|
7296
|
+
}).filter((ie) => ie.leaves.length > 0), $ = W.some((ie) => ie.isGroup);
|
|
7297
7297
|
let ee = W.flatMap((ie) => ie.leaves);
|
|
7298
|
-
if (
|
|
7299
|
-
const ie = new Map(De.order.map((
|
|
7298
|
+
if (!$ && ((oe = De.order) != null && oe.length)) {
|
|
7299
|
+
const ie = new Map(De.order.map((Se, Ee) => [Se, Ee]));
|
|
7300
7300
|
ee = [...ee].sort(
|
|
7301
|
-
(
|
|
7301
|
+
(Se, Ee) => (ie.get(Se.key) ?? 1 / 0) - (ie.get(Ee.key) ?? 1 / 0)
|
|
7302
7302
|
);
|
|
7303
7303
|
}
|
|
7304
|
-
return { headerGroups: W, leafColumns: ee, hasGroups:
|
|
7305
|
-
}, [t, De]), dt =
|
|
7304
|
+
return { headerGroups: W, leafColumns: ee, hasGroups: $ };
|
|
7305
|
+
}, [t, De]), dt = Fe(
|
|
7306
7306
|
() => new Map(Ce.map((y, v) => [y.key, v])),
|
|
7307
7307
|
[Ce]
|
|
7308
|
-
), et = !
|
|
7308
|
+
), et = !Ne && Ce.some((y) => (y.col.headerColSpan ?? 1) > 1), Ae = Ce.map((y) => y.key).join("|"), St = (y, v) => {
|
|
7309
7309
|
const W = y.sortKey ?? (typeof y.accessor == "string" ? y.accessor : void 0);
|
|
7310
7310
|
return W ? v[W] : void 0;
|
|
7311
|
-
}, xt = (y) => y.sortable ?? (!!y.sortKey || typeof y.accessor == "string"),
|
|
7312
|
-
if (!
|
|
7311
|
+
}, xt = (y) => y.sortable ?? (!!y.sortKey || typeof y.accessor == "string"), Re = Fe(() => {
|
|
7312
|
+
if (!q || !X) return r;
|
|
7313
7313
|
const y = Ce.find((W) => W.key === X.key);
|
|
7314
7314
|
if (!y) return r;
|
|
7315
7315
|
const v = X.direction === "asc" ? 1 : -1;
|
|
7316
7316
|
return [...r].sort(
|
|
7317
|
-
(W,
|
|
7317
|
+
(W, $) => jc(St(y.col, W), St(y.col, $)) * v
|
|
7318
7318
|
);
|
|
7319
|
-
}, [r,
|
|
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();
|
|
7320
7320
|
mt(() => {
|
|
7321
7321
|
Ye(void 0);
|
|
7322
7322
|
}, [Ae]), mt(() => {
|
|
7323
|
-
if (!
|
|
7323
|
+
if (!Te || Pe || !Lt.current) return;
|
|
7324
7324
|
const y = Lt.current.querySelectorAll("th.sa-tl-leaf");
|
|
7325
7325
|
Ye(Array.from(y).map((v) => v.offsetWidth));
|
|
7326
|
-
}, [
|
|
7326
|
+
}, [Pe, Te]);
|
|
7327
7327
|
const [Yt, Xt] = B(), [wr, Dr] = B(0);
|
|
7328
7328
|
mt(() => {
|
|
7329
|
-
if (!
|
|
7329
|
+
if (!Ne || !Lt.current) return;
|
|
7330
7330
|
const y = Lt.current.querySelector(":scope > tr");
|
|
7331
7331
|
y && Dr(y.offsetHeight);
|
|
7332
|
-
}, [
|
|
7332
|
+
}, [Ne, Ae]);
|
|
7333
7333
|
const It = (y, v) => {
|
|
7334
7334
|
if ((Ft == null ? void 0 : Ft[v]) != null) return Ft[v];
|
|
7335
7335
|
if (y.width != null) return y.width;
|
|
7336
|
-
if ((
|
|
7337
|
-
}, Jt = (y, v) => typeof y.width == "number" ? y.width :
|
|
7338
|
-
const v = Yt ??
|
|
7339
|
-
if (!v) return
|
|
7340
|
-
let W =
|
|
7341
|
-
for (let
|
|
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;
|
|
7342
7342
|
return W;
|
|
7343
7343
|
};
|
|
7344
7344
|
mt(() => {
|
|
@@ -7354,15 +7354,15 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7354
7354
|
(ie) => ie.getBoundingClientRect().width
|
|
7355
7355
|
);
|
|
7356
7356
|
Xt(
|
|
7357
|
-
(ie) => ie && ie.length === oe.length && ie.every((
|
|
7357
|
+
(ie) => ie && ie.length === oe.length && ie.every((Se, Ee) => Math.abs(Se - oe[Ee]) < 0.5) ? ie : oe
|
|
7358
7358
|
);
|
|
7359
|
-
},
|
|
7359
|
+
}, $ = new ResizeObserver(() => {
|
|
7360
7360
|
v || (v = requestAnimationFrame(W));
|
|
7361
7361
|
});
|
|
7362
|
-
return
|
|
7363
|
-
v && cancelAnimationFrame(v),
|
|
7362
|
+
return $.observe(y), y.querySelectorAll("th.sa-tl-leaf").forEach((ee) => $.observe(ee)), W(), () => {
|
|
7363
|
+
v && cancelAnimationFrame(v), $.disconnect();
|
|
7364
7364
|
};
|
|
7365
|
-
}, [Ae, Wt, H,
|
|
7365
|
+
}, [Ae, Wt, H, Pe, Ft]);
|
|
7366
7366
|
const ce = le(null), [ge, ze] = B("100vh");
|
|
7367
7367
|
mt(() => {
|
|
7368
7368
|
if (C !== void 0) return;
|
|
@@ -7376,52 +7376,52 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7376
7376
|
};
|
|
7377
7377
|
return y(), window.addEventListener("resize", y), () => window.removeEventListener("resize", y);
|
|
7378
7378
|
}, [C]);
|
|
7379
|
-
const
|
|
7379
|
+
const ue = (y, v) => n ? n(y, v) : v, tt = N !== void 0, [je, ot] = B(
|
|
7380
7380
|
() => new Set(Z ?? [])
|
|
7381
|
-
), Xe =
|
|
7382
|
-
() => tt ? new Set(N) :
|
|
7383
|
-
[tt, N,
|
|
7381
|
+
), Xe = Fe(
|
|
7382
|
+
() => tt ? new Set(N) : je,
|
|
7383
|
+
[tt, N, je]
|
|
7384
7384
|
);
|
|
7385
|
-
|
|
7385
|
+
Q(() => {
|
|
7386
7386
|
H && !n && process.env.NODE_ENV !== "production" && console.warn(
|
|
7387
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)."
|
|
7388
7388
|
);
|
|
7389
7389
|
}, [H, !n]);
|
|
7390
7390
|
const ct = (y) => {
|
|
7391
|
-
if (tt || ot(y),
|
|
7392
|
-
const v =
|
|
7393
|
-
|
|
7391
|
+
if (tt || ot(y), Y) {
|
|
7392
|
+
const v = Re.filter((W, $) => y.has(ue(W, $)));
|
|
7393
|
+
Y(Array.from(y), v);
|
|
7394
7394
|
}
|
|
7395
7395
|
}, Bt = (y, v) => H && (re ? re(y, v) : !0), vt = (y) => {
|
|
7396
7396
|
const v = new Set(Xe);
|
|
7397
7397
|
v.has(y) ? v.delete(y) : v.add(y), ct(v);
|
|
7398
|
-
}, Ot =
|
|
7399
|
-
() => H ?
|
|
7398
|
+
}, Ot = Fe(
|
|
7399
|
+
() => H ? Re.map((y, v) => ({ row: y, i: v, key: ue(y, v) })).filter(
|
|
7400
7400
|
({ row: y, i: v }) => re ? re(y, v) : !0
|
|
7401
7401
|
).map(({ key: y }) => y) : [],
|
|
7402
7402
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
7403
|
-
[H,
|
|
7403
|
+
[H, Re, re, n]
|
|
7404
7404
|
), wn = Ot.filter((y) => Xe.has(y)), kr = Ot.length > 0 && wn.length === Ot.length, Dn = wn.length > 0 && !kr, Yi = () => {
|
|
7405
7405
|
const y = new Set(Xe);
|
|
7406
7406
|
kr ? Ot.forEach((v) => y.delete(v)) : Ot.forEach((v) => y.add(v)), ct(y);
|
|
7407
7407
|
}, Sr = (y, v, W) => {
|
|
7408
|
-
const
|
|
7409
|
-
if (p && !y.render && typeof
|
|
7408
|
+
const $ = y.render ? y.render(v, W, Re) : Pc(v, y.accessor);
|
|
7409
|
+
if (p && !y.render && typeof $ == "string") {
|
|
7410
7410
|
const ee = y.key ?? (typeof y.accessor == "string" ? y.accessor : void 0), oe = ee ? p[ee] : void 0;
|
|
7411
|
-
if (oe) return /* @__PURE__ */ e(Oc, { text:
|
|
7411
|
+
if (oe) return /* @__PURE__ */ e(Oc, { text: $, query: oe });
|
|
7412
7412
|
}
|
|
7413
|
-
return
|
|
7414
|
-
}, Er = Ce.length + (H ? 1 : 0) + (
|
|
7415
|
-
H && /* @__PURE__ */ e(
|
|
7416
|
-
Ce.map(({ col: W, key:
|
|
7417
|
-
|
|
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,
|
|
7418
7418
|
{
|
|
7419
7419
|
style: { textAlign: Gt(W.align) },
|
|
7420
7420
|
children: Ji(v, ee)
|
|
7421
7421
|
},
|
|
7422
|
-
`sa-tl-sk-${v}-${
|
|
7422
|
+
`sa-tl-sk-${v}-${$}`
|
|
7423
7423
|
)),
|
|
7424
|
-
|
|
7424
|
+
j && /* @__PURE__ */ e($e, { style: { width: xe, padding: 0, border: "none" } })
|
|
7425
7425
|
] }, `sa-tl-sk-${v}`)), eo = (y, v) => {
|
|
7426
7426
|
v || Me({
|
|
7427
7427
|
...De,
|
|
@@ -7433,7 +7433,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7433
7433
|
}), Kt = (y) => (G ?? []).filter((v) => {
|
|
7434
7434
|
var W;
|
|
7435
7435
|
return !((W = v.hidden) != null && W.call(v, y));
|
|
7436
|
-
}), Sn =
|
|
7436
|
+
}), Sn = se ? {
|
|
7437
7437
|
display: "flex",
|
|
7438
7438
|
alignItems: "center",
|
|
7439
7439
|
justifyContent: "flex-end",
|
|
@@ -7452,9 +7452,9 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7452
7452
|
paddingRight: cr,
|
|
7453
7453
|
paddingLeft: 40,
|
|
7454
7454
|
background: "linear-gradient(to right, transparent, var(--sa-background-primary-inverse, #f8f8f8) 40px)"
|
|
7455
|
-
}, er = (y, v, W,
|
|
7455
|
+
}, er = (y, v, W, $) => {
|
|
7456
7456
|
var lt;
|
|
7457
|
-
const ee = (lt = y.disabled) == null ? void 0 : lt.call(y, v), oe = (
|
|
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(
|
|
7458
7458
|
V,
|
|
7459
7459
|
{
|
|
7460
7460
|
size: ie,
|
|
@@ -7465,31 +7465,31 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7465
7465
|
iconLeft: y.icon ? /* @__PURE__ */ e(F, { name: y.icon, size: "sm" }) : void 0,
|
|
7466
7466
|
children: oe && y.label
|
|
7467
7467
|
}
|
|
7468
|
-
),
|
|
7469
|
-
return
|
|
7468
|
+
), Ee = y.tooltip;
|
|
7469
|
+
return Ee ? /* @__PURE__ */ e(Ve, { label: Ee, position: "top-end", children: Se }) : Se;
|
|
7470
7470
|
}, ro = (y, v) => {
|
|
7471
7471
|
const W = Kt(y);
|
|
7472
7472
|
if (!W.length) return null;
|
|
7473
7473
|
if (W.length > Zr) {
|
|
7474
|
-
const ee =
|
|
7474
|
+
const ee = ue(y, v), oe = (ve == null ? void 0 : ve.rowKey) === ee;
|
|
7475
7475
|
return /* @__PURE__ */ e(
|
|
7476
7476
|
"div",
|
|
7477
7477
|
{
|
|
7478
7478
|
className: "sa-tl-row-actions",
|
|
7479
|
-
"data-mode":
|
|
7479
|
+
"data-mode": se ? "column" : "overlay",
|
|
7480
7480
|
style: Sn,
|
|
7481
7481
|
onClick: (ie) => ie.stopPropagation(),
|
|
7482
|
-
children: /* @__PURE__ */ e(
|
|
7482
|
+
children: /* @__PURE__ */ e(Ve, { label: "Aksi lainnya", position: "top", children: /* @__PURE__ */ e(
|
|
7483
7483
|
V,
|
|
7484
7484
|
{
|
|
7485
7485
|
size: "xs",
|
|
7486
7486
|
variant: "tertiary",
|
|
7487
7487
|
onClick: (ie) => {
|
|
7488
|
-
const
|
|
7489
|
-
|
|
7488
|
+
const Se = ie.currentTarget.getBoundingClientRect();
|
|
7489
|
+
He(oe ? null : {
|
|
7490
7490
|
rowKey: ee,
|
|
7491
|
-
top:
|
|
7492
|
-
right: window.innerWidth -
|
|
7491
|
+
top: Se.bottom + 4,
|
|
7492
|
+
right: window.innerWidth - Se.right
|
|
7493
7493
|
});
|
|
7494
7494
|
},
|
|
7495
7495
|
children: /* @__PURE__ */ e(F, { name: "MenuVertical", size: "sm" })
|
|
@@ -7502,31 +7502,31 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7502
7502
|
"div",
|
|
7503
7503
|
{
|
|
7504
7504
|
className: "sa-tl-row-actions",
|
|
7505
|
-
"data-mode":
|
|
7505
|
+
"data-mode": se ? "column" : "overlay",
|
|
7506
7506
|
style: Sn,
|
|
7507
7507
|
children: W.map((ee) => /* @__PURE__ */ e(Dt.Fragment, { children: er(ee, y, v) }, ee.key))
|
|
7508
7508
|
}
|
|
7509
7509
|
);
|
|
7510
7510
|
}, no = (y, v) => {
|
|
7511
7511
|
const W = Kt(y);
|
|
7512
|
-
return W.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 6, flexWrap: "wrap", paddingTop: 8, marginTop: 8, borderTop: jt }, children: W.map((
|
|
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;
|
|
7513
7513
|
}, io = (y, v) => {
|
|
7514
7514
|
const W = Kt(y);
|
|
7515
|
-
return W.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4, paddingRight: 8, flexShrink: 0 }, children: W.map((
|
|
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;
|
|
7516
7516
|
}, Fr = (y, v) => {
|
|
7517
7517
|
var Vt;
|
|
7518
|
-
const { col: W, key:
|
|
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(
|
|
7519
7519
|
Bc,
|
|
7520
7520
|
{
|
|
7521
|
-
active: !!
|
|
7521
|
+
active: !!Se || oe || !!W.filterActive,
|
|
7522
7522
|
canSort: xt(W),
|
|
7523
7523
|
canHide: !W.locked,
|
|
7524
|
-
sortDir:
|
|
7524
|
+
sortDir: Se,
|
|
7525
7525
|
frozen: oe,
|
|
7526
|
-
onSort: (rr) =>
|
|
7527
|
-
onClearSort: () =>
|
|
7528
|
-
onToggleFreeze: () => to(
|
|
7529
|
-
onHide: () => eo(
|
|
7526
|
+
onSort: (rr) => fe({ key: $, direction: rr }),
|
|
7527
|
+
onClearSort: () => fe(null),
|
|
7528
|
+
onToggleFreeze: () => to($),
|
|
7529
|
+
onHide: () => eo($, W.locked),
|
|
7530
7530
|
filterSlot: (Vt = W.renderFilter) == null ? void 0 : Vt.call(W),
|
|
7531
7531
|
filterActive: W.filterActive
|
|
7532
7532
|
}
|
|
@@ -7556,14 +7556,14 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7556
7556
|
colSpan: v == null ? void 0 : v.colSpan,
|
|
7557
7557
|
minWidth: W.minWidth,
|
|
7558
7558
|
numeric: W.numeric,
|
|
7559
|
-
resizable:
|
|
7559
|
+
resizable: Te ? W.resizable : !1,
|
|
7560
7560
|
defaultWidth: Jt(W, ee),
|
|
7561
7561
|
style: {
|
|
7562
7562
|
textAlign: Gt(W.align),
|
|
7563
7563
|
width: It(W, ee),
|
|
7564
7564
|
position: "sticky",
|
|
7565
7565
|
top: (v == null ? void 0 : v.top) ?? 0,
|
|
7566
|
-
left: oe ?
|
|
7566
|
+
left: oe ? U(ee) : void 0,
|
|
7567
7567
|
zIndex: oe ? 3 : 2,
|
|
7568
7568
|
backgroundColor: Nt,
|
|
7569
7569
|
boxShadow: ie ? ci : void 0
|
|
@@ -7578,21 +7578,21 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7578
7578
|
width: "100%"
|
|
7579
7579
|
},
|
|
7580
7580
|
children: lt ? /* @__PURE__ */ u(ne, { children: [
|
|
7581
|
-
|
|
7581
|
+
Ee,
|
|
7582
7582
|
ht
|
|
7583
7583
|
] }) : /* @__PURE__ */ u(ne, { children: [
|
|
7584
7584
|
ht,
|
|
7585
|
-
|
|
7585
|
+
Ee
|
|
7586
7586
|
] })
|
|
7587
7587
|
}
|
|
7588
7588
|
)
|
|
7589
7589
|
},
|
|
7590
|
-
`th-${
|
|
7590
|
+
`th-${$}`
|
|
7591
7591
|
);
|
|
7592
7592
|
}, oo = () => {
|
|
7593
7593
|
const y = [];
|
|
7594
7594
|
for (let v = 0; v < Ce.length; ) {
|
|
7595
|
-
const W = Ce[v],
|
|
7595
|
+
const W = Ce[v], $ = W.col.headerColSpan ?? 1, ee = Math.max(1, Math.min($, Ce.length - v));
|
|
7596
7596
|
y.push(Fr(W, ee > 1 ? { colSpan: ee } : void 0)), v += ee;
|
|
7597
7597
|
}
|
|
7598
7598
|
return y;
|
|
@@ -7635,9 +7635,9 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7635
7635
|
},
|
|
7636
7636
|
"th-select"
|
|
7637
7637
|
), lo = (y, v, W) => {
|
|
7638
|
-
const
|
|
7638
|
+
const $ = ue(y, v);
|
|
7639
7639
|
return /* @__PURE__ */ e(
|
|
7640
|
-
|
|
7640
|
+
$e,
|
|
7641
7641
|
{
|
|
7642
7642
|
className: "sa-tl-frozen",
|
|
7643
7643
|
style: {
|
|
@@ -7662,8 +7662,8 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7662
7662
|
Rt,
|
|
7663
7663
|
{
|
|
7664
7664
|
size: "sm",
|
|
7665
|
-
checked: Xe.has(
|
|
7666
|
-
onChange: () => vt(
|
|
7665
|
+
checked: Xe.has($),
|
|
7666
|
+
onChange: () => vt($),
|
|
7667
7667
|
"aria-label": "Pilih baris"
|
|
7668
7668
|
}
|
|
7669
7669
|
)
|
|
@@ -7672,10 +7672,10 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7672
7672
|
},
|
|
7673
7673
|
`tl-select-${v}`
|
|
7674
7674
|
);
|
|
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) =>
|
|
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) => {
|
|
7676
7676
|
const W = new Set(v);
|
|
7677
7677
|
return W.has(y) ? W.delete(y) : W.add(y), W;
|
|
7678
|
-
}), Fn = (y, v) => co.map(({ col: W, key:
|
|
7678
|
+
}), Fn = (y, v) => co.map(({ col: W, key: $ }) => {
|
|
7679
7679
|
const ee = Sr(W, y, v), oe = {
|
|
7680
7680
|
minWidth: 0,
|
|
7681
7681
|
overflow: "hidden",
|
|
@@ -7705,7 +7705,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7705
7705
|
ie
|
|
7706
7706
|
]
|
|
7707
7707
|
},
|
|
7708
|
-
|
|
7708
|
+
$
|
|
7709
7709
|
);
|
|
7710
7710
|
}), Rr = (y, v) => {
|
|
7711
7711
|
const W = Wr ? Sr(Wr.col, y, v) : null;
|
|
@@ -7714,7 +7714,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7714
7714
|
h,
|
|
7715
7715
|
{
|
|
7716
7716
|
style: { display: "flex", flexDirection: "column", gap: 8, padding: 8 },
|
|
7717
|
-
children: Array.from({ length:
|
|
7717
|
+
children: Array.from({ length: M }, (y, v) => /* @__PURE__ */ u(
|
|
7718
7718
|
h,
|
|
7719
7719
|
{
|
|
7720
7720
|
style: {
|
|
@@ -7747,8 +7747,8 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7747
7747
|
},
|
|
7748
7748
|
children: R == null ? void 0 : R.content
|
|
7749
7749
|
}
|
|
7750
|
-
), uo = k ? ao :
|
|
7751
|
-
const W =
|
|
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));
|
|
7752
7752
|
return /* @__PURE__ */ u(
|
|
7753
7753
|
"div",
|
|
7754
7754
|
{
|
|
@@ -7802,7 +7802,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7802
7802
|
/* @__PURE__ */ e(
|
|
7803
7803
|
F,
|
|
7804
7804
|
{
|
|
7805
|
-
name:
|
|
7805
|
+
name: $ ? "ChevronUp" : "ChevronDown",
|
|
7806
7806
|
size: "sm",
|
|
7807
7807
|
style: { flexShrink: 0 }
|
|
7808
7808
|
}
|
|
@@ -7810,9 +7810,9 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7810
7810
|
]
|
|
7811
7811
|
}
|
|
7812
7812
|
),
|
|
7813
|
-
|
|
7813
|
+
j && io(y, v)
|
|
7814
7814
|
] }),
|
|
7815
|
-
|
|
7815
|
+
$ && /* @__PURE__ */ e(
|
|
7816
7816
|
"div",
|
|
7817
7817
|
{
|
|
7818
7818
|
style: {
|
|
@@ -7832,8 +7832,8 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7832
7832
|
h,
|
|
7833
7833
|
{
|
|
7834
7834
|
style: { display: "flex", flexDirection: "column", gap: 8, padding: 8 },
|
|
7835
|
-
children:
|
|
7836
|
-
const W =
|
|
7835
|
+
children: Re.map((y, v) => {
|
|
7836
|
+
const W = ue(y, v), $ = H && Xe.has(W);
|
|
7837
7837
|
return /* @__PURE__ */ u(
|
|
7838
7838
|
h,
|
|
7839
7839
|
{
|
|
@@ -7844,7 +7844,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7844
7844
|
display: "flex",
|
|
7845
7845
|
flexDirection: "column",
|
|
7846
7846
|
gap: 6,
|
|
7847
|
-
backgroundColor:
|
|
7847
|
+
backgroundColor: $ ? qr : ar(o == null ? void 0 : o(y, v))
|
|
7848
7848
|
},
|
|
7849
7849
|
children: [
|
|
7850
7850
|
Bt(y, v) ? /* @__PURE__ */ u("div", { style: { display: "flex", alignItems: "center", gap: 8 }, children: [
|
|
@@ -7863,15 +7863,15 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7863
7863
|
Rr(y, v)
|
|
7864
7864
|
),
|
|
7865
7865
|
Fn(y, v),
|
|
7866
|
-
|
|
7866
|
+
j && no(y, v)
|
|
7867
7867
|
]
|
|
7868
7868
|
},
|
|
7869
7869
|
W
|
|
7870
7870
|
);
|
|
7871
7871
|
})
|
|
7872
7872
|
}
|
|
7873
|
-
), ho = l &&
|
|
7874
|
-
|
|
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,
|
|
7875
7875
|
{
|
|
7876
7876
|
colSpan: W.colSpan,
|
|
7877
7877
|
rowSpan: W.rowSpan,
|
|
@@ -7879,7 +7879,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7879
7879
|
style: { textAlign: Gt(W.align) },
|
|
7880
7880
|
children: W.content
|
|
7881
7881
|
},
|
|
7882
|
-
`tl-foot-${v}-${
|
|
7882
|
+
`tl-foot-${v}-${$}`
|
|
7883
7883
|
)) }, `tl-foot-${v}`)) : null, mo = /* @__PURE__ */ u(
|
|
7884
7884
|
ur,
|
|
7885
7885
|
{
|
|
@@ -7893,12 +7893,12 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7893
7893
|
fo && /* @__PURE__ */ u("colgroup", { children: [
|
|
7894
7894
|
H && /* @__PURE__ */ e("col", { style: { width: Zt } }),
|
|
7895
7895
|
Ce.map(({ col: y, key: v }, W) => /* @__PURE__ */ e("col", { style: { width: It(y, W) } }, `col-${v}`)),
|
|
7896
|
-
|
|
7896
|
+
j && /* @__PURE__ */ e("col", { style: { width: xe } })
|
|
7897
7897
|
] }),
|
|
7898
|
-
/* @__PURE__ */ e(Ci, { ref: Lt, children:
|
|
7898
|
+
/* @__PURE__ */ e(Ci, { ref: Lt, children: Ne ? /* @__PURE__ */ u(ne, { children: [
|
|
7899
7899
|
/* @__PURE__ */ u(nt, { children: [
|
|
7900
7900
|
H && En({ rowSpan: 2 }),
|
|
7901
|
-
|
|
7901
|
+
We.map(
|
|
7902
7902
|
(y) => y.isGroup ? /* @__PURE__ */ e(
|
|
7903
7903
|
Tt,
|
|
7904
7904
|
{
|
|
@@ -7915,7 +7915,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7915
7915
|
`grp-${y.key}`
|
|
7916
7916
|
) : Fr(y.leaves[0], { rowSpan: 2 })
|
|
7917
7917
|
),
|
|
7918
|
-
|
|
7918
|
+
j && /* @__PURE__ */ e(
|
|
7919
7919
|
Tt,
|
|
7920
7920
|
{
|
|
7921
7921
|
rowSpan: 2,
|
|
@@ -7932,13 +7932,13 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7932
7932
|
}
|
|
7933
7933
|
)
|
|
7934
7934
|
] }),
|
|
7935
|
-
/* @__PURE__ */ e(nt, { children:
|
|
7935
|
+
/* @__PURE__ */ e(nt, { children: We.flatMap(
|
|
7936
7936
|
(y) => y.isGroup ? y.leaves.map((v) => Fr(v, { top: wr })) : []
|
|
7937
7937
|
) })
|
|
7938
7938
|
] }) : /* @__PURE__ */ u(nt, { children: [
|
|
7939
7939
|
H && En(),
|
|
7940
7940
|
oo(),
|
|
7941
|
-
|
|
7941
|
+
j && /* @__PURE__ */ e(
|
|
7942
7942
|
Tt,
|
|
7943
7943
|
{
|
|
7944
7944
|
style: {
|
|
@@ -7954,35 +7954,35 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
7954
7954
|
}
|
|
7955
7955
|
)
|
|
7956
7956
|
] }) }),
|
|
7957
|
-
/* @__PURE__ */ e(Xr, { children: k ? Ki :
|
|
7958
|
-
|
|
7959
|
-
const W =
|
|
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(
|
|
7960
7960
|
y,
|
|
7961
7961
|
v,
|
|
7962
|
-
v > 0 ?
|
|
7963
|
-
), ee = H && Xe.has(
|
|
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));
|
|
7964
7964
|
return /* @__PURE__ */ u(Dt.Fragment, { children: [
|
|
7965
|
-
W != null && W !== !1 && /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e(
|
|
7965
|
+
W != null && W !== !1 && /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e($e, { colSpan: Er, style: { backgroundColor: Nt }, children: W }) }),
|
|
7966
7966
|
/* @__PURE__ */ u(nt, { children: [
|
|
7967
7967
|
H && lo(y, v, ee),
|
|
7968
|
-
Ce.map(({ col: oe, key: ie },
|
|
7968
|
+
Ce.map(({ col: oe, key: ie }, Se) => {
|
|
7969
7969
|
var Rn;
|
|
7970
|
-
const
|
|
7971
|
-
if (
|
|
7972
|
-
const lt = E(
|
|
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;
|
|
7973
7973
|
return /* @__PURE__ */ e(
|
|
7974
|
-
|
|
7974
|
+
$e,
|
|
7975
7975
|
{
|
|
7976
7976
|
className: lt ? "sa-tl-frozen" : void 0,
|
|
7977
|
-
colSpan:
|
|
7978
|
-
rowSpan:
|
|
7977
|
+
colSpan: Ee == null ? void 0 : Ee.colSpan,
|
|
7978
|
+
rowSpan: Ee == null ? void 0 : Ee.rowSpan,
|
|
7979
7979
|
numeric: oe.numeric,
|
|
7980
7980
|
style: {
|
|
7981
7981
|
textAlign: Gt(oe.align),
|
|
7982
|
-
width: It(oe,
|
|
7982
|
+
width: It(oe, Se),
|
|
7983
7983
|
minWidth: oe.minWidth,
|
|
7984
7984
|
position: lt ? "sticky" : void 0,
|
|
7985
|
-
left: lt ?
|
|
7985
|
+
left: lt ? U(Se) : void 0,
|
|
7986
7986
|
zIndex: lt ? 1 : void 0,
|
|
7987
7987
|
boxShadow: Pt ? ci : void 0,
|
|
7988
7988
|
...rr ? { "--sa-tl-bg": rr } : {}
|
|
@@ -8003,10 +8003,10 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
8003
8003
|
`tl-cell-${v}-${ie}`
|
|
8004
8004
|
);
|
|
8005
8005
|
}),
|
|
8006
|
-
|
|
8007
|
-
|
|
8006
|
+
j && /* @__PURE__ */ e(
|
|
8007
|
+
$e,
|
|
8008
8008
|
{
|
|
8009
|
-
className:
|
|
8009
|
+
className: se ? "sa-tl-frozen" : void 0,
|
|
8010
8010
|
style: {
|
|
8011
8011
|
position: "sticky",
|
|
8012
8012
|
right: 0,
|
|
@@ -8014,7 +8014,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
8014
8014
|
padding: 0,
|
|
8015
8015
|
// Overlay perlu meluber keluar sel selebar 1px;
|
|
8016
8016
|
// kolom nyata tidak — isinya muat di dalamnya.
|
|
8017
|
-
overflow:
|
|
8017
|
+
overflow: se ? void 0 : "visible",
|
|
8018
8018
|
zIndex: 2,
|
|
8019
8019
|
border: "none"
|
|
8020
8020
|
},
|
|
@@ -8022,14 +8022,14 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
8022
8022
|
}
|
|
8023
8023
|
)
|
|
8024
8024
|
] })
|
|
8025
|
-
] },
|
|
8025
|
+
] }, ue(y, v));
|
|
8026
8026
|
}),
|
|
8027
|
-
x != null && /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e(
|
|
8027
|
+
x != null && /* @__PURE__ */ e(nt, { children: /* @__PURE__ */ e($e, { colSpan: Er, children: x }) })
|
|
8028
8028
|
] }) }),
|
|
8029
8029
|
tr && /* @__PURE__ */ e(Co, { className: L ? "sa-tl-sticky-foot" : void 0, children: tr })
|
|
8030
8030
|
]
|
|
8031
8031
|
}
|
|
8032
|
-
), Mr = ve ?
|
|
8032
|
+
), Mr = ve ? Re.findIndex((y, v) => ue(y, v) === ve.rowKey) : -1, Ar = Mr >= 0 ? Re[Mr] : null;
|
|
8033
8033
|
return /* @__PURE__ */ u(ne, { children: [
|
|
8034
8034
|
/* @__PURE__ */ e(
|
|
8035
8035
|
h,
|
|
@@ -8041,9 +8041,9 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
8041
8041
|
overflow: "auto",
|
|
8042
8042
|
height: C ?? ge
|
|
8043
8043
|
},
|
|
8044
|
-
children:
|
|
8044
|
+
children: me ? /* @__PURE__ */ u(ne, { children: [
|
|
8045
8045
|
uo,
|
|
8046
|
-
tr && !k &&
|
|
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 }) }) })
|
|
8047
8047
|
] }) : mo
|
|
8048
8048
|
}
|
|
8049
8049
|
),
|
|
@@ -8067,7 +8067,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
8067
8067
|
scopeId: c,
|
|
8068
8068
|
storage: s = Hi
|
|
8069
8069
|
} = t, { searchParams: a, setSearchParams: d, searchQueries: f } = it(), p = a.toString(), g = c ? Ut.tableSort(c) : void 0, b = le(!1);
|
|
8070
|
-
|
|
8070
|
+
Q(() => {
|
|
8071
8071
|
if (b.current || (b.current = !0, !g) || a.has(r) || a.has(n))
|
|
8072
8072
|
return;
|
|
8073
8073
|
const x = s.get(g);
|
|
@@ -8080,26 +8080,26 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
8080
8080
|
{ replace: !0 }
|
|
8081
8081
|
);
|
|
8082
8082
|
}, []);
|
|
8083
|
-
const D =
|
|
8083
|
+
const D = Fe(() => {
|
|
8084
8084
|
const x = a.get(r), S = a.get(n);
|
|
8085
8085
|
return x && Ur(S) ? { key: x, direction: S } : i;
|
|
8086
8086
|
}, [p, r, n, i]);
|
|
8087
|
-
|
|
8087
|
+
Q(() => {
|
|
8088
8088
|
if (!g) return;
|
|
8089
8089
|
const x = a.get(r), S = a.get(n);
|
|
8090
8090
|
x && Ur(S) ? s.set(g, { key: x, direction: S }) : s.remove(g);
|
|
8091
8091
|
}, [p, g, r, n, s]);
|
|
8092
|
-
const C = (l == null ? void 0 : l.sortBy) ?? "sortBy", I = (l == null ? void 0 : l.sortOrder) ?? "sortOrder",
|
|
8092
|
+
const C = (l == null ? void 0 : l.sortBy) ?? "sortBy", I = (l == null ? void 0 : l.sortOrder) ?? "sortOrder", z = Fe(() => D ? {
|
|
8093
8093
|
[C]: D.key,
|
|
8094
8094
|
[I]: D.direction
|
|
8095
|
-
} : {}, [D, C, I]),
|
|
8095
|
+
} : {}, [D, C, I]), A = P(
|
|
8096
8096
|
(x) => {
|
|
8097
8097
|
const S = { ...f };
|
|
8098
8098
|
x ? (S[r] = x.key, S[n] = x.direction) : (delete S[r], delete S[n]), delete S[o], d(S);
|
|
8099
8099
|
},
|
|
8100
8100
|
[f, r, n, o, d]
|
|
8101
8101
|
);
|
|
8102
|
-
return { sort: D, setSort:
|
|
8102
|
+
return { sort: D, setSort: A, params: z };
|
|
8103
8103
|
}, pn = ({
|
|
8104
8104
|
of: t,
|
|
8105
8105
|
render: r
|
|
@@ -8161,7 +8161,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
8161
8161
|
/* @__PURE__ */ e(we, { fontSize: t, children: i.title }),
|
|
8162
8162
|
/* @__PURE__ */ e(we, { color: "error", fontSize: t, children: n }),
|
|
8163
8163
|
/* @__PURE__ */ e(be, { condition: !!((s = i.tooltip) != null && s.label), children: /* @__PURE__ */ e(
|
|
8164
|
-
|
|
8164
|
+
Ve,
|
|
8165
8165
|
{
|
|
8166
8166
|
label: (a = i.tooltip) == null ? void 0 : a.label,
|
|
8167
8167
|
arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
|
|
@@ -8247,7 +8247,7 @@ const li = 200, or = "1px solid var(--sa-border-subtle, #0b120e24)", zc = ({
|
|
|
8247
8247
|
/* @__PURE__ */ e(we, { fontSize: t, children: i.title }),
|
|
8248
8248
|
/* @__PURE__ */ e(we, { color: "error", fontSize: t, children: n }),
|
|
8249
8249
|
/* @__PURE__ */ e(be, { condition: !!((s = i.tooltip) != null && s.label), children: /* @__PURE__ */ e(
|
|
8250
|
-
|
|
8250
|
+
Ve,
|
|
8251
8251
|
{
|
|
8252
8252
|
label: (a = i.tooltip) == null ? void 0 : a.label,
|
|
8253
8253
|
arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
|
|
@@ -8750,7 +8750,7 @@ const rs = (t) => {
|
|
|
8750
8750
|
/* @__PURE__ */ e(we, { fontSize: t, children: i.title }),
|
|
8751
8751
|
/* @__PURE__ */ e(we, { color: "error", fontSize: t, children: n }),
|
|
8752
8752
|
/* @__PURE__ */ e(be, { condition: !!((s = i.tooltip) != null && s.label), children: /* @__PURE__ */ e(
|
|
8753
|
-
|
|
8753
|
+
Ve,
|
|
8754
8754
|
{
|
|
8755
8755
|
label: (a = i.tooltip) == null ? void 0 : a.label,
|
|
8756
8756
|
arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
|
|
@@ -8833,7 +8833,7 @@ const rs = (t) => {
|
|
|
8833
8833
|
/* @__PURE__ */ e(we, { fontSize: t, children: l.title }),
|
|
8834
8834
|
/* @__PURE__ */ e(we, { color: "error", fontSize: t, children: n }),
|
|
8835
8835
|
/* @__PURE__ */ e(be, { condition: !!((a = l.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
8836
|
-
|
|
8836
|
+
Ve,
|
|
8837
8837
|
{
|
|
8838
8838
|
label: (d = l.tooltip) == null ? void 0 : d.label,
|
|
8839
8839
|
arrowPosition: (f = l.tooltip) == null ? void 0 : f.arrowPosition,
|
|
@@ -9034,7 +9034,7 @@ const rs = (t) => {
|
|
|
9034
9034
|
/* @__PURE__ */ e(we, { fontSize: t, children: i.title }),
|
|
9035
9035
|
/* @__PURE__ */ e(we, { color: "error", fontSize: t, children: n }),
|
|
9036
9036
|
/* @__PURE__ */ e(be, { condition: !!((s = i.tooltip) != null && s.label), children: /* @__PURE__ */ e(
|
|
9037
|
-
|
|
9037
|
+
Ve,
|
|
9038
9038
|
{
|
|
9039
9039
|
label: (a = i.tooltip) == null ? void 0 : a.label,
|
|
9040
9040
|
arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
|
|
@@ -9119,7 +9119,7 @@ const rs = (t) => {
|
|
|
9119
9119
|
/* @__PURE__ */ e(we, { fontSize: t, children: l.title }),
|
|
9120
9120
|
/* @__PURE__ */ e(we, { color: "error", fontSize: t, children: n }),
|
|
9121
9121
|
/* @__PURE__ */ e(be, { condition: !!((s = l.tooltip) != null && s.label), children: /* @__PURE__ */ e(
|
|
9122
|
-
|
|
9122
|
+
Ve,
|
|
9123
9123
|
{
|
|
9124
9124
|
label: (a = l.tooltip) == null ? void 0 : a.label,
|
|
9125
9125
|
arrowPosition: (d = l.tooltip) == null ? void 0 : d.arrowPosition,
|
|
@@ -9254,7 +9254,7 @@ const rs = (t) => {
|
|
|
9254
9254
|
/* @__PURE__ */ e(we, { fontSize: t, children: i.title }),
|
|
9255
9255
|
/* @__PURE__ */ e(we, { color: "error", fontSize: t, children: n }),
|
|
9256
9256
|
/* @__PURE__ */ e(be, { condition: !!((s = i.tooltip) != null && s.label), children: /* @__PURE__ */ e(
|
|
9257
|
-
|
|
9257
|
+
Ve,
|
|
9258
9258
|
{
|
|
9259
9259
|
label: (a = i.tooltip) == null ? void 0 : a.label,
|
|
9260
9260
|
arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
|
|
@@ -9353,25 +9353,26 @@ const ai = {
|
|
|
9353
9353
|
maxFileSize: a = 2,
|
|
9354
9354
|
onError: d
|
|
9355
9355
|
}, f) => {
|
|
9356
|
-
const p = Ie("md"), [g, b] = B(!1), [D, C] = B(null), [I,
|
|
9357
|
-
|
|
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(() => {
|
|
9358
9358
|
r === null && i(null);
|
|
9359
9359
|
}, [r]);
|
|
9360
|
-
const
|
|
9361
|
-
(K,
|
|
9362
|
-
k(
|
|
9360
|
+
const O = P(
|
|
9361
|
+
(K, se) => {
|
|
9362
|
+
k(se);
|
|
9363
9363
|
},
|
|
9364
9364
|
[]
|
|
9365
|
-
),
|
|
9366
|
-
var
|
|
9367
|
-
const
|
|
9368
|
-
if (
|
|
9369
|
-
const
|
|
9370
|
-
|
|
9371
|
-
C(
|
|
9372
|
-
},
|
|
9373
|
-
},
|
|
9374
|
-
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);
|
|
9375
9376
|
try {
|
|
9376
9377
|
const K = await hs(D, R);
|
|
9377
9378
|
if (a && K.size > a * 1024 * 1024) {
|
|
@@ -9379,23 +9380,26 @@ const ai = {
|
|
|
9379
9380
|
return;
|
|
9380
9381
|
}
|
|
9381
9382
|
t == null || t(K);
|
|
9382
|
-
const
|
|
9383
|
-
i(
|
|
9383
|
+
const se = URL.createObjectURL(K);
|
|
9384
|
+
i(se, K), z(!1);
|
|
9384
9385
|
} catch {
|
|
9385
9386
|
d == null || d("Gagal memproses gambar");
|
|
9387
|
+
} finally {
|
|
9388
|
+
G(!1);
|
|
9386
9389
|
}
|
|
9387
|
-
|
|
9388
|
-
|
|
9390
|
+
}
|
|
9391
|
+
}, Z = le(null), Y = () => {
|
|
9392
|
+
Z.current && Z.current.click();
|
|
9389
9393
|
};
|
|
9390
9394
|
Lo(f, () => ({
|
|
9391
9395
|
openFileDialog: () => {
|
|
9392
9396
|
var K;
|
|
9393
|
-
(K =
|
|
9397
|
+
(K = Z.current) == null || K.click();
|
|
9394
9398
|
}
|
|
9395
9399
|
}));
|
|
9396
|
-
const
|
|
9397
|
-
let
|
|
9398
|
-
return
|
|
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(
|
|
9399
9403
|
h,
|
|
9400
9404
|
{
|
|
9401
9405
|
direction: "column",
|
|
@@ -9410,9 +9414,9 @@ const ai = {
|
|
|
9410
9414
|
align: "center",
|
|
9411
9415
|
justify: "center",
|
|
9412
9416
|
style: {
|
|
9413
|
-
width: s != null && s.fullWidth ? "100%" : `${
|
|
9414
|
-
height: s != null && s.fullWidth ? "auto" : `${
|
|
9415
|
-
aspectRatio:
|
|
9417
|
+
width: s != null && s.fullWidth ? "100%" : `${me}px`,
|
|
9418
|
+
height: s != null && s.fullWidth ? "auto" : `${j}px`,
|
|
9419
|
+
aspectRatio: J,
|
|
9416
9420
|
flexShrink: 0
|
|
9417
9421
|
},
|
|
9418
9422
|
onMouseEnter: () => b(!0),
|
|
@@ -9465,15 +9469,15 @@ const ai = {
|
|
|
9465
9469
|
opacity: g ? 1 : 0,
|
|
9466
9470
|
transition: "opacity 0.3s ease-in-out"
|
|
9467
9471
|
},
|
|
9468
|
-
onClick:
|
|
9472
|
+
onClick: Y,
|
|
9469
9473
|
children: [
|
|
9470
9474
|
/* @__PURE__ */ e(
|
|
9471
9475
|
"input",
|
|
9472
9476
|
{
|
|
9473
|
-
ref:
|
|
9477
|
+
ref: Z,
|
|
9474
9478
|
type: "file",
|
|
9475
9479
|
accept: "image/*",
|
|
9476
|
-
onChange:
|
|
9480
|
+
onChange: H,
|
|
9477
9481
|
disabled: n,
|
|
9478
9482
|
style: { display: "none" }
|
|
9479
9483
|
}
|
|
@@ -9541,7 +9545,9 @@ const ai = {
|
|
|
9541
9545
|
justifyContent: "center",
|
|
9542
9546
|
backgroundColor: "rgba(0,0,0,0.6)"
|
|
9543
9547
|
},
|
|
9544
|
-
onClick: () =>
|
|
9548
|
+
onClick: () => {
|
|
9549
|
+
M || z(!1);
|
|
9550
|
+
},
|
|
9545
9551
|
children: /* @__PURE__ */ u(
|
|
9546
9552
|
"div",
|
|
9547
9553
|
{
|
|
@@ -9550,7 +9556,7 @@ const ai = {
|
|
|
9550
9556
|
borderRadius: "var(--sa-radii-md)",
|
|
9551
9557
|
boxShadow: "0 20px 60px rgba(0,0,0,0.3)",
|
|
9552
9558
|
overflow: "hidden",
|
|
9553
|
-
width: p ? c === "1:1" ? "min(90vw, 480px)" : `min(90vw, ${
|
|
9559
|
+
width: p ? c === "1:1" ? "min(90vw, 480px)" : `min(90vw, ${me * 2}px)` : "calc(100vw - 2rem)",
|
|
9554
9560
|
display: "flex",
|
|
9555
9561
|
flexDirection: "column"
|
|
9556
9562
|
},
|
|
@@ -9569,12 +9575,12 @@ const ai = {
|
|
|
9569
9575
|
Ro,
|
|
9570
9576
|
{
|
|
9571
9577
|
image: D,
|
|
9572
|
-
crop:
|
|
9578
|
+
crop: A,
|
|
9573
9579
|
zoom: S,
|
|
9574
9580
|
aspect: c ? ai[c] : void 0,
|
|
9575
9581
|
onCropChange: x,
|
|
9576
9582
|
onZoomChange: L,
|
|
9577
|
-
onCropComplete:
|
|
9583
|
+
onCropComplete: O,
|
|
9578
9584
|
objectFit: "contain",
|
|
9579
9585
|
minZoom: 0.5,
|
|
9580
9586
|
restrictPosition: !1
|
|
@@ -9593,8 +9599,26 @@ const ai = {
|
|
|
9593
9599
|
borderTop: "1px solid var(--sa-border-subtle)"
|
|
9594
9600
|
},
|
|
9595
9601
|
children: [
|
|
9596
|
-
/* @__PURE__ */ e(
|
|
9597
|
-
|
|
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
|
+
)
|
|
9598
9622
|
]
|
|
9599
9623
|
}
|
|
9600
9624
|
)
|
|
@@ -9653,7 +9677,7 @@ const ai = {
|
|
|
9653
9677
|
/* @__PURE__ */ e(we, { fontSize: t, children: l.title }),
|
|
9654
9678
|
/* @__PURE__ */ e(we, { color: "error", fontSize: t, children: n }),
|
|
9655
9679
|
/* @__PURE__ */ e(be, { condition: !!((a = l.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
9656
|
-
|
|
9680
|
+
Ve,
|
|
9657
9681
|
{
|
|
9658
9682
|
label: (d = l.tooltip) == null ? void 0 : d.label,
|
|
9659
9683
|
arrowPosition: (f = l.tooltip) == null ? void 0 : f.arrowPosition,
|
|
@@ -9729,7 +9753,7 @@ const ai = {
|
|
|
9729
9753
|
/* @__PURE__ */ e(we, { fontSize: t, children: i.title }),
|
|
9730
9754
|
/* @__PURE__ */ e(we, { color: "error", fontSize: t, children: n }),
|
|
9731
9755
|
/* @__PURE__ */ e(be, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
|
|
9732
|
-
|
|
9756
|
+
Ve,
|
|
9733
9757
|
{
|
|
9734
9758
|
label: (s = i.tooltip) == null ? void 0 : s.label,
|
|
9735
9759
|
arrowPosition: (a = i.tooltip) == null ? void 0 : a.arrowPosition,
|
|
@@ -9769,10 +9793,10 @@ const ai = {
|
|
|
9769
9793
|
}) => {
|
|
9770
9794
|
var f;
|
|
9771
9795
|
const [c, s] = B([]);
|
|
9772
|
-
|
|
9796
|
+
Q(() => {
|
|
9773
9797
|
t && s([...t.map((p) => ({ id: p.id, isActive: p.isActive }))]);
|
|
9774
9798
|
}, [t]);
|
|
9775
|
-
const a = (f = c.find((p) => p.id === r)) == null ? void 0 : f.isActive, d =
|
|
9799
|
+
const a = (f = c.find((p) => p.id === r)) == null ? void 0 : f.isActive, d = P(() => {
|
|
9776
9800
|
s(
|
|
9777
9801
|
(p) => p.map((g) => g.id === r ? { ...g, isActive: !g.isActive } : g)
|
|
9778
9802
|
), n && n(!a);
|
|
@@ -9815,7 +9839,7 @@ const ai = {
|
|
|
9815
9839
|
}, i = () => {
|
|
9816
9840
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
9817
9841
|
};
|
|
9818
|
-
return
|
|
9842
|
+
return Q(() => (window.addEventListener("scroll", o), () => {
|
|
9819
9843
|
window.removeEventListener("scroll", o);
|
|
9820
9844
|
}), []), /* @__PURE__ */ e(
|
|
9821
9845
|
h,
|
|
@@ -9932,7 +9956,7 @@ const hd = ({
|
|
|
9932
9956
|
className: f,
|
|
9933
9957
|
style: p,
|
|
9934
9958
|
"aria-label": g
|
|
9935
|
-
}) => (
|
|
9959
|
+
}) => (Q(vs, []), /* @__PURE__ */ e(
|
|
9936
9960
|
"button",
|
|
9937
9961
|
{
|
|
9938
9962
|
type: "button",
|
|
@@ -10020,19 +10044,19 @@ const hd = ({
|
|
|
10020
10044
|
bodyStyle: D,
|
|
10021
10045
|
className: C,
|
|
10022
10046
|
pageLayout: I,
|
|
10023
|
-
overlay:
|
|
10024
|
-
wrapperProps:
|
|
10047
|
+
overlay: z = "mobile",
|
|
10048
|
+
wrapperProps: A,
|
|
10025
10049
|
contentProps: x
|
|
10026
10050
|
}) => {
|
|
10027
|
-
const S = Ie("md"), L = n !== void 0, [R, k] = B(o),
|
|
10028
|
-
const
|
|
10029
|
-
L || k(
|
|
10030
|
-
}, 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" },
|
|
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 ? {
|
|
10031
10055
|
position: "absolute",
|
|
10032
10056
|
top: 0,
|
|
10033
10057
|
bottom: 0,
|
|
10034
10058
|
width: l,
|
|
10035
|
-
transform: `translateX(${
|
|
10059
|
+
transform: `translateX(${M ? O ? "-100%" : "100%" : "0"})`,
|
|
10036
10060
|
transition: `transform ${ui}`,
|
|
10037
10061
|
zIndex: 50,
|
|
10038
10062
|
...O ? { left: 0 } : { right: 0 },
|
|
@@ -10044,16 +10068,16 @@ const hd = ({
|
|
|
10044
10068
|
position: "sticky",
|
|
10045
10069
|
top: H,
|
|
10046
10070
|
alignSelf: "flex-start",
|
|
10047
|
-
width:
|
|
10071
|
+
width: M ? 0 : l,
|
|
10048
10072
|
flexShrink: 0,
|
|
10049
10073
|
height: N,
|
|
10050
10074
|
transition: `width ${ui}`,
|
|
10051
10075
|
...b
|
|
10052
|
-
},
|
|
10076
|
+
}, j = /* @__PURE__ */ u(
|
|
10053
10077
|
h,
|
|
10054
10078
|
{
|
|
10055
10079
|
className: C,
|
|
10056
|
-
style:
|
|
10080
|
+
style: me,
|
|
10057
10081
|
children: [
|
|
10058
10082
|
/* @__PURE__ */ e(
|
|
10059
10083
|
h,
|
|
@@ -10063,8 +10087,8 @@ const hd = ({
|
|
|
10063
10087
|
display: "flex",
|
|
10064
10088
|
direction: "column",
|
|
10065
10089
|
overflow: "overflow-hidden",
|
|
10066
|
-
borderStyle:
|
|
10067
|
-
borderWidth:
|
|
10090
|
+
borderStyle: M ? void 0 : O ? "border-solid-r" : "border-solid-l",
|
|
10091
|
+
borderWidth: M ? void 0 : O ? "border-r" : "border-l",
|
|
10068
10092
|
style: { backgroundColor: hi, borderColor: Ui },
|
|
10069
10093
|
children: /* @__PURE__ */ u(
|
|
10070
10094
|
h,
|
|
@@ -10099,13 +10123,13 @@ const hd = ({
|
|
|
10099
10123
|
justify: "center",
|
|
10100
10124
|
position: "absolute",
|
|
10101
10125
|
onClick: G,
|
|
10102
|
-
"aria-label":
|
|
10103
|
-
"aria-expanded": !
|
|
10104
|
-
"aria-pressed":
|
|
10126
|
+
"aria-label": M ? Z.expand : Z.collapse,
|
|
10127
|
+
"aria-expanded": !M,
|
|
10128
|
+
"aria-pressed": M,
|
|
10105
10129
|
customWidth: Qr,
|
|
10106
10130
|
customHeight: Cs,
|
|
10107
10131
|
style: {
|
|
10108
|
-
...
|
|
10132
|
+
...Y,
|
|
10109
10133
|
backgroundColor: hi,
|
|
10110
10134
|
border: ws,
|
|
10111
10135
|
zIndex: 5,
|
|
@@ -10127,19 +10151,19 @@ const hd = ({
|
|
|
10127
10151
|
]
|
|
10128
10152
|
}
|
|
10129
10153
|
);
|
|
10130
|
-
return I === void 0 ?
|
|
10154
|
+
return I === void 0 ? j : /* @__PURE__ */ u(
|
|
10131
10155
|
h,
|
|
10132
10156
|
{
|
|
10133
10157
|
direction: "row",
|
|
10134
10158
|
position: "relative",
|
|
10135
|
-
...
|
|
10159
|
+
...A,
|
|
10136
10160
|
style: {
|
|
10137
10161
|
height: `calc(100vh - ${H})`,
|
|
10138
10162
|
overflow: "hidden",
|
|
10139
|
-
...(
|
|
10163
|
+
...(A == null ? void 0 : A.style) ?? {}
|
|
10140
10164
|
},
|
|
10141
10165
|
children: [
|
|
10142
|
-
!J && O ?
|
|
10166
|
+
!J && O ? j : null,
|
|
10143
10167
|
/* @__PURE__ */ e(
|
|
10144
10168
|
h,
|
|
10145
10169
|
{
|
|
@@ -10155,9 +10179,9 @@ const hd = ({
|
|
|
10155
10179
|
children: I
|
|
10156
10180
|
}
|
|
10157
10181
|
),
|
|
10158
|
-
!J && !O ?
|
|
10182
|
+
!J && !O ? j : null,
|
|
10159
10183
|
J && /* @__PURE__ */ u(ne, { children: [
|
|
10160
|
-
!
|
|
10184
|
+
!M && /* @__PURE__ */ e(
|
|
10161
10185
|
"div",
|
|
10162
10186
|
{
|
|
10163
10187
|
onClick: G,
|
|
@@ -10170,7 +10194,7 @@ const hd = ({
|
|
|
10170
10194
|
}
|
|
10171
10195
|
}
|
|
10172
10196
|
),
|
|
10173
|
-
|
|
10197
|
+
j
|
|
10174
10198
|
] })
|
|
10175
10199
|
]
|
|
10176
10200
|
}
|
|
@@ -10286,7 +10310,7 @@ const hd = ({
|
|
|
10286
10310
|
/* @__PURE__ */ e(w, { color: "gray-500", variant: "sub-h3", children: t })
|
|
10287
10311
|
] }) : /* @__PURE__ */ e(w, { color: "gray-500", variant: "sub-h3", children: t }),
|
|
10288
10312
|
typeof r == "string" ? /* @__PURE__ */ e(w, { variant: "sub-h3", children: r }) : r
|
|
10289
|
-
] }),
|
|
10313
|
+
] }), Oe = {
|
|
10290
10314
|
silhouette: "#A7B0AC",
|
|
10291
10315
|
accent: "#78867F"
|
|
10292
10316
|
};
|
|
@@ -10304,112 +10328,112 @@ function Es({ width: t, height: r }) {
|
|
|
10304
10328
|
"path",
|
|
10305
10329
|
{
|
|
10306
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",
|
|
10307
|
-
fill:
|
|
10331
|
+
fill: Oe.silhouette
|
|
10308
10332
|
}
|
|
10309
10333
|
),
|
|
10310
10334
|
/* @__PURE__ */ e(
|
|
10311
10335
|
"path",
|
|
10312
10336
|
{
|
|
10313
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",
|
|
10314
|
-
fill:
|
|
10338
|
+
fill: Oe.silhouette
|
|
10315
10339
|
}
|
|
10316
10340
|
),
|
|
10317
10341
|
/* @__PURE__ */ e(
|
|
10318
10342
|
"path",
|
|
10319
10343
|
{
|
|
10320
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",
|
|
10321
|
-
fill:
|
|
10345
|
+
fill: Oe.silhouette
|
|
10322
10346
|
}
|
|
10323
10347
|
),
|
|
10324
10348
|
/* @__PURE__ */ e(
|
|
10325
10349
|
"path",
|
|
10326
10350
|
{
|
|
10327
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",
|
|
10328
|
-
fill:
|
|
10352
|
+
fill: Oe.silhouette
|
|
10329
10353
|
}
|
|
10330
10354
|
),
|
|
10331
10355
|
/* @__PURE__ */ e(
|
|
10332
10356
|
"path",
|
|
10333
10357
|
{
|
|
10334
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",
|
|
10335
|
-
fill:
|
|
10359
|
+
fill: Oe.silhouette
|
|
10336
10360
|
}
|
|
10337
10361
|
),
|
|
10338
10362
|
/* @__PURE__ */ e(
|
|
10339
10363
|
"path",
|
|
10340
10364
|
{
|
|
10341
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",
|
|
10342
|
-
fill:
|
|
10366
|
+
fill: Oe.silhouette
|
|
10343
10367
|
}
|
|
10344
10368
|
),
|
|
10345
10369
|
/* @__PURE__ */ e(
|
|
10346
10370
|
"path",
|
|
10347
10371
|
{
|
|
10348
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",
|
|
10349
|
-
fill:
|
|
10373
|
+
fill: Oe.silhouette
|
|
10350
10374
|
}
|
|
10351
10375
|
),
|
|
10352
10376
|
/* @__PURE__ */ e(
|
|
10353
10377
|
"path",
|
|
10354
10378
|
{
|
|
10355
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",
|
|
10356
|
-
fill:
|
|
10380
|
+
fill: Oe.silhouette
|
|
10357
10381
|
}
|
|
10358
10382
|
),
|
|
10359
10383
|
/* @__PURE__ */ e(
|
|
10360
10384
|
"path",
|
|
10361
10385
|
{
|
|
10362
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",
|
|
10363
|
-
fill:
|
|
10387
|
+
fill: Oe.silhouette
|
|
10364
10388
|
}
|
|
10365
10389
|
),
|
|
10366
10390
|
/* @__PURE__ */ e(
|
|
10367
10391
|
"path",
|
|
10368
10392
|
{
|
|
10369
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",
|
|
10370
|
-
fill:
|
|
10394
|
+
fill: Oe.silhouette
|
|
10371
10395
|
}
|
|
10372
10396
|
),
|
|
10373
10397
|
/* @__PURE__ */ e(
|
|
10374
10398
|
"path",
|
|
10375
10399
|
{
|
|
10376
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",
|
|
10377
|
-
fill:
|
|
10401
|
+
fill: Oe.silhouette
|
|
10378
10402
|
}
|
|
10379
10403
|
),
|
|
10380
10404
|
/* @__PURE__ */ e(
|
|
10381
10405
|
"path",
|
|
10382
10406
|
{
|
|
10383
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",
|
|
10384
|
-
fill:
|
|
10408
|
+
fill: Oe.silhouette
|
|
10385
10409
|
}
|
|
10386
10410
|
),
|
|
10387
10411
|
/* @__PURE__ */ e(
|
|
10388
10412
|
"path",
|
|
10389
10413
|
{
|
|
10390
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",
|
|
10391
|
-
fill:
|
|
10415
|
+
fill: Oe.silhouette
|
|
10392
10416
|
}
|
|
10393
10417
|
),
|
|
10394
10418
|
/* @__PURE__ */ e(
|
|
10395
10419
|
"path",
|
|
10396
10420
|
{
|
|
10397
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",
|
|
10398
|
-
fill:
|
|
10422
|
+
fill: Oe.silhouette
|
|
10399
10423
|
}
|
|
10400
10424
|
),
|
|
10401
10425
|
/* @__PURE__ */ e(
|
|
10402
10426
|
"path",
|
|
10403
10427
|
{
|
|
10404
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",
|
|
10405
|
-
fill:
|
|
10429
|
+
fill: Oe.silhouette
|
|
10406
10430
|
}
|
|
10407
10431
|
),
|
|
10408
10432
|
/* @__PURE__ */ e(
|
|
10409
10433
|
"path",
|
|
10410
10434
|
{
|
|
10411
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",
|
|
10412
|
-
fill:
|
|
10436
|
+
fill: Oe.accent,
|
|
10413
10437
|
fillOpacity: "0.65"
|
|
10414
10438
|
}
|
|
10415
10439
|
),
|
|
@@ -10417,7 +10441,7 @@ function Es({ width: t, height: r }) {
|
|
|
10417
10441
|
"path",
|
|
10418
10442
|
{
|
|
10419
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",
|
|
10420
|
-
fill:
|
|
10444
|
+
fill: Oe.accent,
|
|
10421
10445
|
fillOpacity: "0.65"
|
|
10422
10446
|
}
|
|
10423
10447
|
),
|
|
@@ -10425,7 +10449,7 @@ function Es({ width: t, height: r }) {
|
|
|
10425
10449
|
"path",
|
|
10426
10450
|
{
|
|
10427
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",
|
|
10428
|
-
fill:
|
|
10452
|
+
fill: Oe.accent,
|
|
10429
10453
|
fillOpacity: "0.65"
|
|
10430
10454
|
}
|
|
10431
10455
|
)
|
|
@@ -10743,7 +10767,7 @@ function bd({ onClick: t }) {
|
|
|
10743
10767
|
}
|
|
10744
10768
|
);
|
|
10745
10769
|
}
|
|
10746
|
-
const
|
|
10770
|
+
const ae = {
|
|
10747
10771
|
c46F16B: "#46F16B",
|
|
10748
10772
|
c48504C: "#48504C",
|
|
10749
10773
|
c64B5F6: "#64B5F6",
|
|
@@ -10774,14 +10798,14 @@ function Ls({ width: t, height: r }) {
|
|
|
10774
10798
|
fill: "none",
|
|
10775
10799
|
xmlns: "http://www.w3.org/2000/svg",
|
|
10776
10800
|
children: [
|
|
10777
|
-
/* @__PURE__ */ e("rect", { x: "228", y: "55.5", width: "55", height: "20", fill:
|
|
10801
|
+
/* @__PURE__ */ e("rect", { x: "228", y: "55.5", width: "55", height: "20", fill: ae.cD6EBFD }),
|
|
10778
10802
|
/* @__PURE__ */ e(
|
|
10779
10803
|
"path",
|
|
10780
10804
|
{
|
|
10781
10805
|
fillRule: "evenodd",
|
|
10782
10806
|
clipRule: "evenodd",
|
|
10783
10807
|
d: "M75 238.124V197.28L163.523 63.5H217.029V194.32H240V238.124H217.029V252.5H169.126V238.124H75ZM125.424 194.32L172.487 119.143V194.32H125.424Z",
|
|
10784
|
-
fill:
|
|
10808
|
+
fill: ae.cBBDEFB,
|
|
10785
10809
|
fillOpacity: "0.6"
|
|
10786
10810
|
}
|
|
10787
10811
|
),
|
|
@@ -10790,8 +10814,8 @@ function Ls({ width: t, height: r }) {
|
|
|
10790
10814
|
"path",
|
|
10791
10815
|
{
|
|
10792
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",
|
|
10793
|
-
fill:
|
|
10794
|
-
stroke:
|
|
10817
|
+
fill: ae.cEFF3F8,
|
|
10818
|
+
stroke: ae.c67AEE6,
|
|
10795
10819
|
strokeWidth: "5"
|
|
10796
10820
|
}
|
|
10797
10821
|
),
|
|
@@ -10799,68 +10823,68 @@ function Ls({ width: t, height: r }) {
|
|
|
10799
10823
|
"path",
|
|
10800
10824
|
{
|
|
10801
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",
|
|
10802
|
-
fill:
|
|
10826
|
+
fill: ae.cD5C7BD
|
|
10803
10827
|
}
|
|
10804
10828
|
),
|
|
10805
10829
|
/* @__PURE__ */ e(
|
|
10806
10830
|
"path",
|
|
10807
10831
|
{
|
|
10808
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",
|
|
10809
|
-
fill:
|
|
10833
|
+
fill: ae.cCABEB1
|
|
10810
10834
|
}
|
|
10811
10835
|
),
|
|
10812
10836
|
/* @__PURE__ */ e(
|
|
10813
10837
|
"path",
|
|
10814
10838
|
{
|
|
10815
10839
|
d: "M287.68 218.884L289.354 213.022H378.961L381.473 218.884H287.68Z",
|
|
10816
|
-
fill:
|
|
10840
|
+
fill: ae.cC0B2A2
|
|
10817
10841
|
}
|
|
10818
10842
|
),
|
|
10819
10843
|
/* @__PURE__ */ e(
|
|
10820
10844
|
"path",
|
|
10821
10845
|
{
|
|
10822
10846
|
d: "M381.944 218.803L381.58 212.266H386.385L386.022 218.803H381.944Z",
|
|
10823
|
-
fill:
|
|
10824
|
-
stroke:
|
|
10847
|
+
fill: ae.c956847,
|
|
10848
|
+
stroke: ae.c48504C
|
|
10825
10849
|
}
|
|
10826
10850
|
),
|
|
10827
10851
|
/* @__PURE__ */ e(
|
|
10828
10852
|
"path",
|
|
10829
10853
|
{
|
|
10830
10854
|
d: "M283.124 218.803L282.768 213.104H287.565L287.209 218.803H283.124Z",
|
|
10831
|
-
fill:
|
|
10832
|
-
stroke:
|
|
10855
|
+
fill: ae.c956847,
|
|
10856
|
+
stroke: ae.c48504C
|
|
10833
10857
|
}
|
|
10834
10858
|
),
|
|
10835
10859
|
/* @__PURE__ */ e(
|
|
10836
10860
|
"path",
|
|
10837
10861
|
{
|
|
10838
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",
|
|
10839
|
-
fill:
|
|
10840
|
-
stroke:
|
|
10863
|
+
fill: ae.cC8CEF4,
|
|
10864
|
+
stroke: ae.c48504C
|
|
10841
10865
|
}
|
|
10842
10866
|
),
|
|
10843
10867
|
/* @__PURE__ */ e(
|
|
10844
10868
|
"path",
|
|
10845
10869
|
{
|
|
10846
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",
|
|
10847
|
-
fill:
|
|
10848
|
-
stroke:
|
|
10871
|
+
fill: ae.cC8CEF4,
|
|
10872
|
+
stroke: ae.c48504C
|
|
10849
10873
|
}
|
|
10850
10874
|
),
|
|
10851
10875
|
/* @__PURE__ */ e(
|
|
10852
10876
|
"path",
|
|
10853
10877
|
{
|
|
10854
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",
|
|
10855
|
-
fill:
|
|
10856
|
-
stroke:
|
|
10879
|
+
fill: ae.cC8CEF4,
|
|
10880
|
+
stroke: ae.c48504C
|
|
10857
10881
|
}
|
|
10858
10882
|
),
|
|
10859
10883
|
/* @__PURE__ */ e(
|
|
10860
10884
|
"path",
|
|
10861
10885
|
{
|
|
10862
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",
|
|
10863
|
-
fill:
|
|
10887
|
+
fill: ae.cBBC3F5
|
|
10864
10888
|
}
|
|
10865
10889
|
),
|
|
10866
10890
|
/* @__PURE__ */ e(
|
|
@@ -10877,7 +10901,7 @@ function Ls({ width: t, height: r }) {
|
|
|
10877
10901
|
"path",
|
|
10878
10902
|
{
|
|
10879
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",
|
|
10880
|
-
fill:
|
|
10904
|
+
fill: ae.cFFFFFF
|
|
10881
10905
|
}
|
|
10882
10906
|
)
|
|
10883
10907
|
}
|
|
@@ -10887,42 +10911,42 @@ function Ls({ width: t, height: r }) {
|
|
|
10887
10911
|
"path",
|
|
10888
10912
|
{
|
|
10889
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",
|
|
10890
|
-
fill:
|
|
10914
|
+
fill: ae.cFFFFFF
|
|
10891
10915
|
}
|
|
10892
10916
|
),
|
|
10893
10917
|
/* @__PURE__ */ e(
|
|
10894
10918
|
"path",
|
|
10895
10919
|
{
|
|
10896
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",
|
|
10897
|
-
fill:
|
|
10921
|
+
fill: ae.cD6D6D6
|
|
10898
10922
|
}
|
|
10899
10923
|
),
|
|
10900
10924
|
/* @__PURE__ */ e(
|
|
10901
10925
|
"path",
|
|
10902
10926
|
{
|
|
10903
10927
|
d: "M368.673 152.523H301.336V174.5H368.673V152.523Z",
|
|
10904
|
-
fill:
|
|
10928
|
+
fill: ae.cF4F4F4
|
|
10905
10929
|
}
|
|
10906
10930
|
),
|
|
10907
10931
|
/* @__PURE__ */ e(
|
|
10908
10932
|
"path",
|
|
10909
10933
|
{
|
|
10910
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",
|
|
10911
|
-
fill:
|
|
10935
|
+
fill: ae.cEE8080
|
|
10912
10936
|
}
|
|
10913
10937
|
),
|
|
10914
10938
|
/* @__PURE__ */ e(
|
|
10915
10939
|
"path",
|
|
10916
10940
|
{
|
|
10917
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",
|
|
10918
|
-
fill:
|
|
10942
|
+
fill: ae.cE5EE80
|
|
10919
10943
|
}
|
|
10920
10944
|
),
|
|
10921
10945
|
/* @__PURE__ */ e(
|
|
10922
10946
|
"path",
|
|
10923
10947
|
{
|
|
10924
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",
|
|
10925
|
-
fill:
|
|
10949
|
+
fill: ae.c46F16B
|
|
10926
10950
|
}
|
|
10927
10951
|
)
|
|
10928
10952
|
] }),
|
|
@@ -10930,14 +10954,14 @@ function Ls({ width: t, height: r }) {
|
|
|
10930
10954
|
"path",
|
|
10931
10955
|
{
|
|
10932
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",
|
|
10933
|
-
stroke:
|
|
10957
|
+
stroke: ae.c48504C
|
|
10934
10958
|
}
|
|
10935
10959
|
),
|
|
10936
10960
|
/* @__PURE__ */ e(
|
|
10937
10961
|
"path",
|
|
10938
10962
|
{
|
|
10939
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",
|
|
10940
|
-
stroke:
|
|
10964
|
+
stroke: ae.c86512B,
|
|
10941
10965
|
strokeWidth: "2",
|
|
10942
10966
|
strokeLinecap: "round"
|
|
10943
10967
|
}
|
|
@@ -10947,21 +10971,21 @@ function Ls({ width: t, height: r }) {
|
|
|
10947
10971
|
"path",
|
|
10948
10972
|
{
|
|
10949
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",
|
|
10950
|
-
fill:
|
|
10974
|
+
fill: ae.cBBDEFB,
|
|
10951
10975
|
fillOpacity: "0.6"
|
|
10952
10976
|
}
|
|
10953
10977
|
),
|
|
10954
|
-
/* @__PURE__ */ e("rect", { x: "43", y: "87.5", width: "46", height: "20", fill:
|
|
10955
|
-
/* @__PURE__ */ e("rect", { x: "29", y: "109.5", width: "46", height: "20", fill:
|
|
10956
|
-
/* @__PURE__ */ e("rect", { x: "29", y: "65.5", width: "46", height: "20", fill:
|
|
10957
|
-
/* @__PURE__ */ e("rect", { x: "356", y: "0.5", width: "55", height: "20", fill:
|
|
10958
|
-
/* @__PURE__ */ e("rect", { x: "572", y: "142.5", width: "55", height: "20", fill:
|
|
10959
|
-
/* @__PURE__ */ e("rect", { x: "589", y: "120.5", width: "55", height: "20", fill:
|
|
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 }),
|
|
10960
10984
|
/* @__PURE__ */ e(
|
|
10961
10985
|
"path",
|
|
10962
10986
|
{
|
|
10963
10987
|
d: "M3 255.5L651 255.5",
|
|
10964
|
-
stroke:
|
|
10988
|
+
stroke: ae.c64B5F6,
|
|
10965
10989
|
strokeWidth: "5",
|
|
10966
10990
|
strokeLinecap: "round"
|
|
10967
10991
|
}
|
|
@@ -10971,7 +10995,7 @@ function Ls({ width: t, height: r }) {
|
|
|
10971
10995
|
{
|
|
10972
10996
|
width: "179",
|
|
10973
10997
|
height: "192",
|
|
10974
|
-
fill:
|
|
10998
|
+
fill: ae.cFFFFFF,
|
|
10975
10999
|
transform: "translate(246 60.5)"
|
|
10976
11000
|
}
|
|
10977
11001
|
) }) })
|
|
@@ -11810,12 +11834,12 @@ const Cd = (t) => {
|
|
|
11810
11834
|
footerProps: C = { borderTop: !0 },
|
|
11811
11835
|
variantTag: I = "info"
|
|
11812
11836
|
}) => {
|
|
11813
|
-
const
|
|
11814
|
-
|
|
11837
|
+
const z = le(null), [A, x] = B("100vh");
|
|
11838
|
+
Q(() => {
|
|
11815
11839
|
const k = () => {
|
|
11816
|
-
if (
|
|
11817
|
-
const
|
|
11818
|
-
x(`calc(100vh - ${
|
|
11840
|
+
if (z.current) {
|
|
11841
|
+
const M = z.current.getBoundingClientRect().top;
|
|
11842
|
+
x(`calc(100vh - ${M}px)`);
|
|
11819
11843
|
}
|
|
11820
11844
|
};
|
|
11821
11845
|
return k(), window.addEventListener("resize", k), () => window.removeEventListener("resize", k);
|
|
@@ -11839,7 +11863,7 @@ const Cd = (t) => {
|
|
|
11839
11863
|
return /* @__PURE__ */ u(
|
|
11840
11864
|
h,
|
|
11841
11865
|
{
|
|
11842
|
-
ref:
|
|
11866
|
+
ref: z,
|
|
11843
11867
|
height: r,
|
|
11844
11868
|
customMinHeight: n,
|
|
11845
11869
|
customHeight: o,
|
|
@@ -11851,7 +11875,7 @@ const Cd = (t) => {
|
|
|
11851
11875
|
style: {
|
|
11852
11876
|
backgroundColor: "var(--sa-background-primary, #ffffff)",
|
|
11853
11877
|
display: "flex",
|
|
11854
|
-
minHeight:
|
|
11878
|
+
minHeight: A,
|
|
11855
11879
|
...(g == null ? void 0 : g.style) ?? {}
|
|
11856
11880
|
},
|
|
11857
11881
|
children: [
|
|
@@ -11909,7 +11933,7 @@ function vn(t) {
|
|
|
11909
11933
|
return null;
|
|
11910
11934
|
}
|
|
11911
11935
|
vn.displayName = "LayoutDialog.Footer";
|
|
11912
|
-
const
|
|
11936
|
+
const Ze = {
|
|
11913
11937
|
"lyd-root": "_lyd-root_8mm4b_1",
|
|
11914
11938
|
"lyd-backdrop": "_lyd-backdrop_8mm4b_38",
|
|
11915
11939
|
"lyd-panel": "_lyd-panel_8mm4b_47",
|
|
@@ -11944,11 +11968,11 @@ const je = {
|
|
|
11944
11968
|
}
|
|
11945
11969
|
];
|
|
11946
11970
|
function Ms({ value: t, onChange: r }) {
|
|
11947
|
-
return /* @__PURE__ */ e("div", { className:
|
|
11971
|
+
return /* @__PURE__ */ e("div", { className: Ze["lyd-vm-group"], role: "group", "aria-label": "View mode", children: Rs.map((n) => /* @__PURE__ */ e(
|
|
11948
11972
|
"button",
|
|
11949
11973
|
{
|
|
11950
11974
|
type: "button",
|
|
11951
|
-
className:
|
|
11975
|
+
className: Ze["lyd-vm-btn"],
|
|
11952
11976
|
"data-active": t === n.mode,
|
|
11953
11977
|
"aria-label": `Switch to ${n.label} view`,
|
|
11954
11978
|
"aria-pressed": t === n.mode,
|
|
@@ -12009,44 +12033,44 @@ function Is(t) {
|
|
|
12009
12033
|
disableBackdropClose: p = !1,
|
|
12010
12034
|
lockBodyScroll: g = !0,
|
|
12011
12035
|
children: b
|
|
12012
|
-
} = t, [D, C] = B(i), I = o ?? D,
|
|
12036
|
+
} = t, [D, C] = B(i), I = o ?? D, A = Ie("md") ? I : "fullscreen", x = P(
|
|
12013
12037
|
(Z) => {
|
|
12014
12038
|
o === void 0 && C(Z), l == null || l(Z);
|
|
12015
12039
|
},
|
|
12016
12040
|
[o, l]
|
|
12017
12041
|
), S = le(null);
|
|
12018
|
-
|
|
12042
|
+
Q(() => {
|
|
12019
12043
|
if (!(!r || !g))
|
|
12020
12044
|
return S.current = document.body.style.overflow, document.body.style.overflow = "hidden", () => {
|
|
12021
12045
|
document.body.style.overflow = S.current ?? "";
|
|
12022
12046
|
};
|
|
12023
12047
|
}, [r, g]);
|
|
12024
12048
|
const L = le(n);
|
|
12025
|
-
L.current = n,
|
|
12049
|
+
L.current = n, Q(() => {
|
|
12026
12050
|
if (r)
|
|
12027
12051
|
return xi({
|
|
12028
12052
|
onEscape: f ? void 0 : () => L.current()
|
|
12029
12053
|
});
|
|
12030
12054
|
}, [r, f]);
|
|
12031
|
-
const R =
|
|
12055
|
+
const R = Fe(
|
|
12032
12056
|
() => dr(b, yn),
|
|
12033
12057
|
[b]
|
|
12034
|
-
), k =
|
|
12058
|
+
), k = Fe(
|
|
12035
12059
|
() => dr(b, bn),
|
|
12036
12060
|
[b]
|
|
12037
|
-
),
|
|
12061
|
+
), M = Fe(
|
|
12038
12062
|
() => dr(b, xn),
|
|
12039
12063
|
[b]
|
|
12040
|
-
), G =
|
|
12064
|
+
), G = Fe(
|
|
12041
12065
|
() => dr(b, vn),
|
|
12042
12066
|
[b]
|
|
12043
12067
|
);
|
|
12044
12068
|
if (!r) return null;
|
|
12045
12069
|
const O = [
|
|
12046
|
-
|
|
12047
|
-
|
|
12048
|
-
|
|
12049
|
-
|
|
12070
|
+
Ze["lyd-panel"],
|
|
12071
|
+
A === "modal" && Ze["lyd-modal"],
|
|
12072
|
+
A === "fullscreen" && Ze["lyd-fullscreen"],
|
|
12073
|
+
A === "sidebar" && Ze["lyd-sidebar"]
|
|
12050
12074
|
].filter(Boolean).join(" "), H = {
|
|
12051
12075
|
"--lyd-max-w": zs(a),
|
|
12052
12076
|
...d !== void 0 && { "--lyd-aside-w": d }
|
|
@@ -12057,7 +12081,7 @@ function Is(t) {
|
|
|
12057
12081
|
/* @__PURE__ */ u(
|
|
12058
12082
|
"div",
|
|
12059
12083
|
{
|
|
12060
|
-
className:
|
|
12084
|
+
className: Ze["lyd-root"],
|
|
12061
12085
|
style: H,
|
|
12062
12086
|
role: "dialog",
|
|
12063
12087
|
"aria-modal": "true",
|
|
@@ -12065,21 +12089,21 @@ function Is(t) {
|
|
|
12065
12089
|
/* @__PURE__ */ e(
|
|
12066
12090
|
"div",
|
|
12067
12091
|
{
|
|
12068
|
-
className:
|
|
12092
|
+
className: Ze["lyd-backdrop"],
|
|
12069
12093
|
onClick: N,
|
|
12070
12094
|
"aria-hidden": "true"
|
|
12071
12095
|
}
|
|
12072
12096
|
),
|
|
12073
12097
|
/* @__PURE__ */ u("div", { className: O, children: [
|
|
12074
|
-
/* @__PURE__ */ u("div", { className:
|
|
12075
|
-
/* @__PURE__ */ e("div", { className:
|
|
12076
|
-
/* @__PURE__ */ u("div", { className:
|
|
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: [
|
|
12077
12101
|
c && /* @__PURE__ */ e(Ms, { value: I, onChange: x }),
|
|
12078
12102
|
s && /* @__PURE__ */ e(
|
|
12079
12103
|
"button",
|
|
12080
12104
|
{
|
|
12081
12105
|
type: "button",
|
|
12082
|
-
className:
|
|
12106
|
+
className: Ze["lyd-close-btn"],
|
|
12083
12107
|
onClick: n,
|
|
12084
12108
|
"aria-label": "Close dialog",
|
|
12085
12109
|
children: /* @__PURE__ */ e(F, { name: "Cross", size: "md" })
|
|
@@ -12087,11 +12111,11 @@ function Is(t) {
|
|
|
12087
12111
|
)
|
|
12088
12112
|
] })
|
|
12089
12113
|
] }),
|
|
12090
|
-
/* @__PURE__ */ u("div", { className:
|
|
12091
|
-
/* @__PURE__ */ e("div", { className:
|
|
12092
|
-
|
|
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 })
|
|
12093
12117
|
] }),
|
|
12094
|
-
G && /* @__PURE__ */ e("div", { className:
|
|
12118
|
+
G && /* @__PURE__ */ e("div", { className: Ze["lyd-footer"], children: G })
|
|
12095
12119
|
] })
|
|
12096
12120
|
]
|
|
12097
12121
|
}
|
|
@@ -12106,7 +12130,7 @@ Cr.Aside = xn;
|
|
|
12106
12130
|
Cr.Footer = vn;
|
|
12107
12131
|
function kd({ url: t, filename: r, onClose: n }) {
|
|
12108
12132
|
const o = le(n);
|
|
12109
|
-
return o.current = n,
|
|
12133
|
+
return o.current = n, Q(() => xi({ onEscape: () => o.current() }), []), /* @__PURE__ */ u(
|
|
12110
12134
|
"div",
|
|
12111
12135
|
{
|
|
12112
12136
|
onClick: n,
|
|
@@ -12393,7 +12417,7 @@ function Ps({
|
|
|
12393
12417
|
r,
|
|
12394
12418
|
o && /* @__PURE__ */ u(ne, { children: [
|
|
12395
12419
|
/* @__PURE__ */ e(nn, {}),
|
|
12396
|
-
/* @__PURE__ */ e(
|
|
12420
|
+
/* @__PURE__ */ e(Ve, { label: i, position: "top", children: /* @__PURE__ */ e(
|
|
12397
12421
|
V,
|
|
12398
12422
|
{
|
|
12399
12423
|
variant: "tertiary",
|
|
@@ -12539,7 +12563,7 @@ function Fd({
|
|
|
12539
12563
|
formatTitle: n
|
|
12540
12564
|
}) {
|
|
12541
12565
|
const { useLocation: o } = wt(), i = o();
|
|
12542
|
-
|
|
12566
|
+
Q(() => {
|
|
12543
12567
|
let l = null, c = null;
|
|
12544
12568
|
for (const d of r) {
|
|
12545
12569
|
const f = d.items.find((p) => p.to ? p.to === "/" ? i.pathname === "/" : !!(p.to === i.pathname || i.pathname.startsWith(p.to + "/")) : !1);
|
|
@@ -12576,7 +12600,7 @@ const Ld = () => {
|
|
|
12576
12600
|
function Wd(t) {
|
|
12577
12601
|
var o, i;
|
|
12578
12602
|
const r = t.decodedAccessToken;
|
|
12579
|
-
return
|
|
12603
|
+
return Fe(() => {
|
|
12580
12604
|
var a, d;
|
|
12581
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(
|
|
12582
12606
|
(f, p) => {
|