@starasia/admin 4.5.0 → 4.5.2
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 +1 -1
- package/dist/index.es.js +472 -470
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -16,7 +16,7 @@ import { Drawer as Xt } from "@starasia/drawer";
|
|
|
16
16
|
export * from "@starasia/drawer";
|
|
17
17
|
import { Dropdown as dt } from "@starasia/dropdown";
|
|
18
18
|
export * from "@starasia/dropdown";
|
|
19
|
-
import { useMediaQuery as
|
|
19
|
+
import { useMediaQuery as re } from "@starasia/hooks";
|
|
20
20
|
export * from "@starasia/hooks";
|
|
21
21
|
import { searchParamsToObject as Qe } from "@starasia/http";
|
|
22
22
|
export * from "@starasia/http";
|
|
@@ -56,8 +56,8 @@ export * from "@starasia/story-record";
|
|
|
56
56
|
import { Skeleton as Re } from "@starasia/skeleton";
|
|
57
57
|
export * from "@starasia/skeleton";
|
|
58
58
|
export * from "@starasia/progress-stepper";
|
|
59
|
-
import { jsx as e, Fragment as G, jsxs as
|
|
60
|
-
import Tt, { createContext as Pe, useState as S, useContext as We, useCallback as Ce, useMemo as
|
|
59
|
+
import { jsx as e, Fragment as G, jsxs as h } from "react/jsx-runtime";
|
|
60
|
+
import Tt, { createContext as Pe, useState as S, useContext as We, useCallback as Ce, useMemo as De, memo as ie, useEffect as $, useRef as ee, useLayoutEffect as lt, isValidElement as ct, forwardRef as Ot, Children as ar, useImperativeHandle as sr } from "react";
|
|
61
61
|
import { useSearchParams as Ye, useNavigate as ut, useLocation as ze, Outlet as Dt, Link as Ue, useParams as Nt } from "react-router";
|
|
62
62
|
import dr, { createPortal as Zt } from "react-dom";
|
|
63
63
|
import hr from "react-easy-crop";
|
|
@@ -89,25 +89,25 @@ const ur = {
|
|
|
89
89
|
const [r, i] = S({}), o = Ce(
|
|
90
90
|
(a) => {
|
|
91
91
|
i(
|
|
92
|
-
(
|
|
92
|
+
(u) => typeof a == "function" ? a(u) : a
|
|
93
93
|
);
|
|
94
94
|
},
|
|
95
95
|
[]
|
|
96
96
|
), n = Ce(
|
|
97
|
-
(a,
|
|
98
|
-
i((
|
|
99
|
-
const g = typeof
|
|
100
|
-
return { ...
|
|
97
|
+
(a, u) => {
|
|
98
|
+
i((d) => {
|
|
99
|
+
const g = typeof u == "function" ? u(d[a]) : u;
|
|
100
|
+
return { ...d, [a]: g };
|
|
101
101
|
});
|
|
102
102
|
},
|
|
103
103
|
[]
|
|
104
104
|
), l = Ce((a) => {
|
|
105
|
-
i((
|
|
106
|
-
if (!(a in
|
|
107
|
-
const
|
|
108
|
-
return delete
|
|
105
|
+
i((u) => {
|
|
106
|
+
if (!(a in u)) return u;
|
|
107
|
+
const d = { ...u };
|
|
108
|
+
return delete d[a], d;
|
|
109
109
|
});
|
|
110
|
-
}, []), s =
|
|
110
|
+
}, []), s = De(
|
|
111
111
|
() => ({ badges: r, setBadge: n, setBadges: o, clearBadge: l }),
|
|
112
112
|
[r, n, o, l]
|
|
113
113
|
);
|
|
@@ -124,7 +124,7 @@ const ur = {
|
|
|
124
124
|
initialUserData: l,
|
|
125
125
|
theme: s
|
|
126
126
|
}) => {
|
|
127
|
-
const a = fr({ initialUserData: l }), { theme:
|
|
127
|
+
const a = fr({ initialUserData: l }), { theme: u } = or();
|
|
128
128
|
return /* @__PURE__ */ e(
|
|
129
129
|
jt.Provider,
|
|
130
130
|
{
|
|
@@ -136,10 +136,10 @@ const ur = {
|
|
|
136
136
|
setUserData: a.setUserData,
|
|
137
137
|
menuBottom: i
|
|
138
138
|
},
|
|
139
|
-
children: /* @__PURE__ */ e(gr, { children: s ? /* @__PURE__ */ e(Ct, { value: s, children: t }) :
|
|
139
|
+
children: /* @__PURE__ */ e(gr, { children: s ? /* @__PURE__ */ e(Ct, { value: s, children: t }) : u ? /* @__PURE__ */ e(Ct, { value: u, children: t }) : t })
|
|
140
140
|
}
|
|
141
141
|
);
|
|
142
|
-
}, bn =
|
|
142
|
+
}, bn = ie(yr);
|
|
143
143
|
function pr({
|
|
144
144
|
collapsed: t = !1,
|
|
145
145
|
children: r
|
|
@@ -179,7 +179,7 @@ function pr({
|
|
|
179
179
|
}
|
|
180
180
|
const ft = Pe(null);
|
|
181
181
|
function xr({ children: t }) {
|
|
182
|
-
const [r, i] = S(null), [o, n] = S(null), [l, s] = S(null), [a,
|
|
182
|
+
const [r, i] = S(null), [o, n] = S(null), [l, s] = S(null), [a, u] = S(0), d = Ce(() => (u((g) => g + 1), () => u((g) => g - 1)), []);
|
|
183
183
|
return /* @__PURE__ */ e(
|
|
184
184
|
ft.Provider,
|
|
185
185
|
{
|
|
@@ -191,7 +191,7 @@ function xr({ children: t }) {
|
|
|
191
191
|
setAppendNode: n,
|
|
192
192
|
setReplaceNode: s,
|
|
193
193
|
replaceCount: a,
|
|
194
|
-
registerReplace:
|
|
194
|
+
registerReplace: d
|
|
195
195
|
},
|
|
196
196
|
children: t
|
|
197
197
|
}
|
|
@@ -199,7 +199,7 @@ function xr({ children: t }) {
|
|
|
199
199
|
}
|
|
200
200
|
function Cr({ children: t }) {
|
|
201
201
|
const r = We(ft);
|
|
202
|
-
return r ? /* @__PURE__ */
|
|
202
|
+
return r ? /* @__PURE__ */ h(G, { children: [
|
|
203
203
|
/* @__PURE__ */ e("div", { ref: r.setPrependNode, style: { display: "contents" } }),
|
|
204
204
|
r.replaceCount > 0 ? /* @__PURE__ */ e("div", { ref: r.setReplaceNode, style: { display: "contents" } }) : t,
|
|
205
205
|
/* @__PURE__ */ e("div", { ref: r.setAppendNode, style: { display: "contents" } })
|
|
@@ -222,39 +222,41 @@ function wn({
|
|
|
222
222
|
}
|
|
223
223
|
const gt = Pe(null);
|
|
224
224
|
function Dr({ children: t }) {
|
|
225
|
-
const [r, i] = S({}), [o, n] = S({}), l = Ce((
|
|
226
|
-
i((
|
|
227
|
-
}, []), s = Ce((
|
|
228
|
-
...
|
|
229
|
-
[
|
|
230
|
-
}))), [])
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
{
|
|
234
|
-
value: { outletNodes: r, setOutletNode: l, slotCounts: o, registerSlot: s },
|
|
235
|
-
children: t
|
|
236
|
-
}
|
|
225
|
+
const [r, i] = S({}), [o, n] = S({}), l = Ce((u, d) => {
|
|
226
|
+
i((g) => g[u] === d ? g : { ...g, [u]: d });
|
|
227
|
+
}, []), s = Ce((u) => (n((d) => ({ ...d, [u]: (d[u] ?? 0) + 1 })), () => n((d) => ({
|
|
228
|
+
...d,
|
|
229
|
+
[u]: Math.max(0, (d[u] ?? 0) - 1)
|
|
230
|
+
}))), []), a = De(
|
|
231
|
+
() => ({ outletNodes: r, setOutletNode: l, slotCounts: o, registerSlot: s }),
|
|
232
|
+
[r, l, o, s]
|
|
237
233
|
);
|
|
234
|
+
return /* @__PURE__ */ e(gt.Provider, { value: a, children: t });
|
|
238
235
|
}
|
|
239
236
|
function vr({ slotKey: t, fallback: r }) {
|
|
240
|
-
const i = We(gt), o = i ? (i.slotCounts[t] ?? 0) > 0 : !1, n =
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
237
|
+
const i = We(gt), o = i ? (i.slotCounts[t] ?? 0) > 0 : !1, n = ee(i == null ? void 0 : i.setOutletNode);
|
|
238
|
+
n.current = i == null ? void 0 : i.setOutletNode;
|
|
239
|
+
const l = Ce(
|
|
240
|
+
(s) => {
|
|
241
|
+
var a;
|
|
242
|
+
return (a = n.current) == null ? void 0 : a.call(n, t, s);
|
|
243
|
+
},
|
|
244
|
+
[t]
|
|
245
|
+
// slotKey is a stable string from group config
|
|
244
246
|
);
|
|
245
|
-
return /* @__PURE__ */ e(G, { children: o ? /* @__PURE__ */ e("div", { ref:
|
|
247
|
+
return /* @__PURE__ */ e(G, { children: o ? /* @__PURE__ */ e("div", { ref: l, style: { display: "contents" } }) : r });
|
|
246
248
|
}
|
|
247
249
|
function kn({ slotKey: t, children: r }) {
|
|
248
|
-
const i = We(gt);
|
|
249
|
-
if ($(() => {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
}, [
|
|
250
|
+
const i = We(gt), o = ee(i == null ? void 0 : i.registerSlot);
|
|
251
|
+
if (o.current = i == null ? void 0 : i.registerSlot, $(() => {
|
|
252
|
+
var l;
|
|
253
|
+
return (l = o.current) == null ? void 0 : l.call(o, t);
|
|
254
|
+
}, [t]), !i)
|
|
253
255
|
return process.env.NODE_ENV !== "production" && console.warn(
|
|
254
256
|
"[SidebarGroupSlot] used outside AppLayout — content not rendered"
|
|
255
257
|
), null;
|
|
256
|
-
const
|
|
257
|
-
return
|
|
258
|
+
const n = i.outletNodes[t];
|
|
259
|
+
return n ? Zt(r, n) : null;
|
|
258
260
|
}
|
|
259
261
|
const Ge = "moduleSwitcherGroupId", at = "sa-module-switcher-change";
|
|
260
262
|
function vt() {
|
|
@@ -288,7 +290,7 @@ function Gt() {
|
|
|
288
290
|
} };
|
|
289
291
|
}
|
|
290
292
|
let $e = 0, we = !1, bt = /* @__PURE__ */ new Set();
|
|
291
|
-
const wt = () => /* @__PURE__ */
|
|
293
|
+
const wt = () => /* @__PURE__ */ h(
|
|
292
294
|
"svg",
|
|
293
295
|
{
|
|
294
296
|
width: "100%",
|
|
@@ -331,20 +333,20 @@ function Fn({
|
|
|
331
333
|
isLoggingOut: l,
|
|
332
334
|
loadingComponent: s,
|
|
333
335
|
sidebarHeaderContent: a,
|
|
334
|
-
headerActions:
|
|
335
|
-
profileRole:
|
|
336
|
+
headerActions: u,
|
|
337
|
+
profileRole: d,
|
|
336
338
|
profileMenuButtons: g,
|
|
337
339
|
profileMenuItems: m,
|
|
338
340
|
logoutButton: p
|
|
339
341
|
}) {
|
|
340
342
|
var Fe, Ze;
|
|
341
|
-
const [v] = Ye(), L = v.get("embed") === "true", C = $t(), { badges: T } = mr(), Z = ut(), j = ze(), W = !
|
|
343
|
+
const [v] = Ye(), L = v.get("embed") === "true", C = $t(), { badges: T } = mr(), Z = ut(), j = ze(), W = !re("md"), [fe, P] = S(!1), [R, K] = S(!1), [ce, ae] = S(!1), [U, se] = S(!1), [te, ne] = S(
|
|
342
344
|
() => new Set(bt)
|
|
343
345
|
), [Y, J] = S(null), { selectedGroupId: V, setSelectedGroupId: z } = Gt();
|
|
344
346
|
$(() => {
|
|
345
|
-
bt =
|
|
346
|
-
}, [
|
|
347
|
-
const X =
|
|
347
|
+
bt = te;
|
|
348
|
+
}, [te]);
|
|
349
|
+
const X = ee(null), de = ee(null);
|
|
348
350
|
$(() => {
|
|
349
351
|
const y = X.current;
|
|
350
352
|
if (!y) return;
|
|
@@ -400,7 +402,7 @@ function Fn({
|
|
|
400
402
|
}, Ae = [
|
|
401
403
|
...C.menus.flatMap((y) => y.items.flatMap(Oe)),
|
|
402
404
|
...((Fe = C.menuBottom) == null ? void 0 : Fe.flatMap(Oe)) ?? []
|
|
403
|
-
],
|
|
405
|
+
], oe = (y) => {
|
|
404
406
|
if (!j.pathname.startsWith(y)) return !1;
|
|
405
407
|
const F = Ae.filter((E) => j.pathname.startsWith(E)).sort((E, x) => x.length - E.length)[0];
|
|
406
408
|
return y === F;
|
|
@@ -409,7 +411,7 @@ function Fn({
|
|
|
409
411
|
var F;
|
|
410
412
|
const y = (E) => {
|
|
411
413
|
var x;
|
|
412
|
-
(x = E.children) != null && x.some((k) => j.pathname.startsWith(k.to)) &&
|
|
414
|
+
(x = E.children) != null && x.some((k) => j.pathname.startsWith(k.to)) && ne((k) => {
|
|
413
415
|
const b = new Set(k);
|
|
414
416
|
return b.add(E.id), b;
|
|
415
417
|
});
|
|
@@ -419,7 +421,7 @@ function Fn({
|
|
|
419
421
|
}), (F = C.menuBottom) == null || F.forEach(y);
|
|
420
422
|
}, [j.pathname, C.menus, C.menuBottom]);
|
|
421
423
|
const Ne = (y) => {
|
|
422
|
-
|
|
424
|
+
ne((F) => {
|
|
423
425
|
const E = new Set(F);
|
|
424
426
|
return E.has(y) ? E.delete(y) : E.add(y), E;
|
|
425
427
|
});
|
|
@@ -427,7 +429,7 @@ function Fn({
|
|
|
427
429
|
$(() => {
|
|
428
430
|
C.menus.length !== 0 && V !== null && !C.menus.some((y) => y.id === V) && z(null);
|
|
429
431
|
}, [C.menus, V, z]);
|
|
430
|
-
const He =
|
|
432
|
+
const He = De(() => {
|
|
431
433
|
if (V !== null)
|
|
432
434
|
return C.menus.filter(
|
|
433
435
|
(E) => E.id === V || E.parentGroupId === V
|
|
@@ -441,9 +443,9 @@ function Fn({
|
|
|
441
443
|
if (L)
|
|
442
444
|
return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(Dt, {}) });
|
|
443
445
|
const Se = (y) => {
|
|
444
|
-
const F = y.children && y.children.length > 0, E =
|
|
445
|
-
return /* @__PURE__ */
|
|
446
|
-
/* @__PURE__ */
|
|
446
|
+
const F = y.children && y.children.length > 0, E = te.has(y.id), x = F ? y.children.some((B) => oe(B.to)) : oe(y.to), k = tt(y.badge, T[y.id]), b = !!k && R && !W;
|
|
447
|
+
return /* @__PURE__ */ h("div", { "data-menu-active": x || void 0, children: [
|
|
448
|
+
/* @__PURE__ */ h(
|
|
447
449
|
"button",
|
|
448
450
|
{
|
|
449
451
|
onClick: (B) => {
|
|
@@ -486,7 +488,7 @@ function Fn({
|
|
|
486
488
|
x || (B.currentTarget.style.backgroundColor = "transparent");
|
|
487
489
|
},
|
|
488
490
|
children: [
|
|
489
|
-
/* @__PURE__ */
|
|
491
|
+
/* @__PURE__ */ h(
|
|
490
492
|
"span",
|
|
491
493
|
{
|
|
492
494
|
style: {
|
|
@@ -515,7 +517,7 @@ function Fn({
|
|
|
515
517
|
]
|
|
516
518
|
}
|
|
517
519
|
),
|
|
518
|
-
(!R || W) && /* @__PURE__ */
|
|
520
|
+
(!R || W) && /* @__PURE__ */ h(G, { children: [
|
|
519
521
|
/* @__PURE__ */ e(
|
|
520
522
|
"span",
|
|
521
523
|
{
|
|
@@ -571,9 +573,9 @@ function Fn({
|
|
|
571
573
|
),
|
|
572
574
|
F && (!R || W) && (() => {
|
|
573
575
|
const B = y.children.findIndex(
|
|
574
|
-
(I) =>
|
|
576
|
+
(I) => oe(I.to)
|
|
575
577
|
);
|
|
576
|
-
return /* @__PURE__ */
|
|
578
|
+
return /* @__PURE__ */ h(
|
|
577
579
|
"div",
|
|
578
580
|
{
|
|
579
581
|
style: {
|
|
@@ -620,11 +622,11 @@ function Fn({
|
|
|
620
622
|
}
|
|
621
623
|
),
|
|
622
624
|
y.children.map((I) => {
|
|
623
|
-
const
|
|
625
|
+
const le = tt(
|
|
624
626
|
I.badge,
|
|
625
627
|
T[I.id]
|
|
626
628
|
);
|
|
627
|
-
return /* @__PURE__ */
|
|
629
|
+
return /* @__PURE__ */ h(
|
|
628
630
|
"button",
|
|
629
631
|
{
|
|
630
632
|
onClick: () => Z(I.to),
|
|
@@ -638,18 +640,18 @@ function Fn({
|
|
|
638
640
|
paddingTop: "0.25rem",
|
|
639
641
|
paddingBottom: "0.25rem",
|
|
640
642
|
height: "2rem",
|
|
641
|
-
borderRadius:
|
|
643
|
+
borderRadius: oe(I.to) ? "var(--sa-radii-sm, 0.375rem)" : "var(--sa-radii-md, 0.5rem)",
|
|
642
644
|
textAlign: "left",
|
|
643
|
-
backgroundColor:
|
|
644
|
-
color:
|
|
645
|
+
backgroundColor: oe(I.to) ? "var(--sa-background-primary, #ffffff)" : "transparent",
|
|
646
|
+
color: oe(I.to) ? "var(--sa-text-primary, #292a2e)" : "var(--sa-text-subtle, #505258)",
|
|
645
647
|
cursor: "pointer",
|
|
646
|
-
border:
|
|
648
|
+
border: oe(I.to) ? "1px solid var(--sa-border-subtle, #0b120e24)" : "1px solid transparent"
|
|
647
649
|
},
|
|
648
650
|
onMouseEnter: (ye) => {
|
|
649
|
-
|
|
651
|
+
oe(I.to) || (ye.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
|
|
650
652
|
},
|
|
651
653
|
onMouseLeave: (ye) => {
|
|
652
|
-
|
|
654
|
+
oe(I.to) || (ye.currentTarget.style.backgroundColor = "transparent");
|
|
653
655
|
},
|
|
654
656
|
children: [
|
|
655
657
|
/* @__PURE__ */ e(
|
|
@@ -675,11 +677,11 @@ function Fn({
|
|
|
675
677
|
children: I.title
|
|
676
678
|
}
|
|
677
679
|
),
|
|
678
|
-
|
|
680
|
+
le && /* @__PURE__ */ e(
|
|
679
681
|
Le,
|
|
680
682
|
{
|
|
681
|
-
text: String(
|
|
682
|
-
variant:
|
|
683
|
+
text: String(le.value),
|
|
684
|
+
variant: le.variant ?? "info",
|
|
683
685
|
size: "xs",
|
|
684
686
|
border: !0
|
|
685
687
|
}
|
|
@@ -695,8 +697,8 @@ function Fn({
|
|
|
695
697
|
})()
|
|
696
698
|
] }, y.id);
|
|
697
699
|
};
|
|
698
|
-
return /* @__PURE__ */ e(Dr, { children: /* @__PURE__ */
|
|
699
|
-
/* @__PURE__ */
|
|
700
|
+
return /* @__PURE__ */ e(Dr, { children: /* @__PURE__ */ h(xr, { children: [
|
|
701
|
+
/* @__PURE__ */ h(
|
|
700
702
|
"div",
|
|
701
703
|
{
|
|
702
704
|
style: {
|
|
@@ -723,7 +725,7 @@ function Fn({
|
|
|
723
725
|
onClick: () => ae(!1)
|
|
724
726
|
}
|
|
725
727
|
),
|
|
726
|
-
/* @__PURE__ */
|
|
728
|
+
/* @__PURE__ */ h(
|
|
727
729
|
"aside",
|
|
728
730
|
{
|
|
729
731
|
style: {
|
|
@@ -759,8 +761,8 @@ function Fn({
|
|
|
759
761
|
},
|
|
760
762
|
children: (() => {
|
|
761
763
|
const y = !W && R && !ce, F = y && U;
|
|
762
|
-
return /* @__PURE__ */
|
|
763
|
-
/* @__PURE__ */
|
|
764
|
+
return /* @__PURE__ */ h(G, { children: [
|
|
765
|
+
/* @__PURE__ */ h(
|
|
764
766
|
"div",
|
|
765
767
|
{
|
|
766
768
|
style: {
|
|
@@ -916,7 +918,7 @@ function Fn({
|
|
|
916
918
|
paddingTop: "1rem",
|
|
917
919
|
paddingBottom: "1rem"
|
|
918
920
|
},
|
|
919
|
-
children: He.map((y) => /* @__PURE__ */
|
|
921
|
+
children: He.map((y) => /* @__PURE__ */ h("div", { style: { marginBottom: "1rem" }, children: [
|
|
920
922
|
!R || W ? y.name && /* @__PURE__ */ e(
|
|
921
923
|
"div",
|
|
922
924
|
{
|
|
@@ -991,8 +993,8 @@ function Fn({
|
|
|
991
993
|
]
|
|
992
994
|
}
|
|
993
995
|
),
|
|
994
|
-
/* @__PURE__ */
|
|
995
|
-
/* @__PURE__ */
|
|
996
|
+
/* @__PURE__ */ h("div", { style: { flex: 1, display: "flex", flexDirection: "column", overflow: "hidden" }, children: [
|
|
997
|
+
/* @__PURE__ */ h(
|
|
996
998
|
"header",
|
|
997
999
|
{
|
|
998
1000
|
style: {
|
|
@@ -1007,7 +1009,7 @@ function Fn({
|
|
|
1007
1009
|
flexShrink: 0
|
|
1008
1010
|
},
|
|
1009
1011
|
children: [
|
|
1010
|
-
/* @__PURE__ */
|
|
1012
|
+
/* @__PURE__ */ h("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
|
|
1011
1013
|
W && /* @__PURE__ */ e(
|
|
1012
1014
|
"button",
|
|
1013
1015
|
{
|
|
@@ -1042,10 +1044,10 @@ function Fn({
|
|
|
1042
1044
|
),
|
|
1043
1045
|
/* @__PURE__ */ e(Cr, { children: r })
|
|
1044
1046
|
] }),
|
|
1045
|
-
/* @__PURE__ */
|
|
1046
|
-
|
|
1047
|
-
/* @__PURE__ */
|
|
1048
|
-
/* @__PURE__ */ e(_e, { children: /* @__PURE__ */
|
|
1047
|
+
/* @__PURE__ */ h("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
|
|
1048
|
+
u,
|
|
1049
|
+
/* @__PURE__ */ h(Ht, { position: "bottom-right", children: [
|
|
1050
|
+
/* @__PURE__ */ e(_e, { children: /* @__PURE__ */ h(
|
|
1049
1051
|
"div",
|
|
1050
1052
|
{
|
|
1051
1053
|
style: {
|
|
@@ -1055,7 +1057,7 @@ function Fn({
|
|
|
1055
1057
|
cursor: "pointer"
|
|
1056
1058
|
},
|
|
1057
1059
|
children: [
|
|
1058
|
-
/* @__PURE__ */
|
|
1060
|
+
/* @__PURE__ */ h("div", { style: { textAlign: "right", maxWidth: "12.5rem" }, children: [
|
|
1059
1061
|
/* @__PURE__ */ e(
|
|
1060
1062
|
"p",
|
|
1061
1063
|
{
|
|
@@ -1117,7 +1119,7 @@ function Fn({
|
|
|
1117
1119
|
]
|
|
1118
1120
|
}
|
|
1119
1121
|
) }),
|
|
1120
|
-
/* @__PURE__ */
|
|
1122
|
+
/* @__PURE__ */ h(
|
|
1121
1123
|
It,
|
|
1122
1124
|
{
|
|
1123
1125
|
style: {
|
|
@@ -1128,7 +1130,7 @@ function Fn({
|
|
|
1128
1130
|
marginTop: "16px"
|
|
1129
1131
|
},
|
|
1130
1132
|
children: [
|
|
1131
|
-
/* @__PURE__ */ e(Kt, { children: /* @__PURE__ */
|
|
1133
|
+
/* @__PURE__ */ e(Kt, { children: /* @__PURE__ */ h(
|
|
1132
1134
|
"div",
|
|
1133
1135
|
{
|
|
1134
1136
|
style: {
|
|
@@ -1190,7 +1192,7 @@ function Fn({
|
|
|
1190
1192
|
children: (i == null ? void 0 : i.email) || "unknown"
|
|
1191
1193
|
}
|
|
1192
1194
|
),
|
|
1193
|
-
|
|
1195
|
+
d && /* @__PURE__ */ e(
|
|
1194
1196
|
"p",
|
|
1195
1197
|
{
|
|
1196
1198
|
style: {
|
|
@@ -1202,14 +1204,14 @@ function Fn({
|
|
|
1202
1204
|
overflow: "hidden",
|
|
1203
1205
|
textOverflow: "ellipsis"
|
|
1204
1206
|
},
|
|
1205
|
-
children:
|
|
1207
|
+
children: d
|
|
1206
1208
|
}
|
|
1207
1209
|
)
|
|
1208
1210
|
]
|
|
1209
1211
|
}
|
|
1210
1212
|
) }),
|
|
1211
|
-
(g && g.length > 0 || m) && /* @__PURE__ */
|
|
1212
|
-
g == null ? void 0 : g.map((y, F) => /* @__PURE__ */ e(_e, { children: /* @__PURE__ */
|
|
1213
|
+
(g && g.length > 0 || m) && /* @__PURE__ */ h(Rt, { children: [
|
|
1214
|
+
g == null ? void 0 : g.map((y, F) => /* @__PURE__ */ e(_e, { children: /* @__PURE__ */ h(
|
|
1213
1215
|
"button",
|
|
1214
1216
|
{
|
|
1215
1217
|
type: "button",
|
|
@@ -1229,7 +1231,7 @@ function Fn({
|
|
|
1229
1231
|
) }, `${y.label}-${F}`)),
|
|
1230
1232
|
m
|
|
1231
1233
|
] }),
|
|
1232
|
-
p ?? /* @__PURE__ */ e(er, { children: /* @__PURE__ */ e(_e, { children: /* @__PURE__ */
|
|
1234
|
+
p ?? /* @__PURE__ */ e(er, { children: /* @__PURE__ */ e(_e, { children: /* @__PURE__ */ h(
|
|
1233
1235
|
"button",
|
|
1234
1236
|
{
|
|
1235
1237
|
type: "button",
|
|
@@ -1298,15 +1300,15 @@ function Fn({
|
|
|
1298
1300
|
children: s
|
|
1299
1301
|
}
|
|
1300
1302
|
),
|
|
1301
|
-
/* @__PURE__ */
|
|
1303
|
+
/* @__PURE__ */ h(qe, { isShow: fe, onHide: Te, children: [
|
|
1302
1304
|
/* @__PURE__ */ e(Me, { children: "Confirmation Logout" }),
|
|
1303
1305
|
/* @__PURE__ */ e(Je, { children: "Are you sure you want to end the session and exit the page?" }),
|
|
1304
|
-
/* @__PURE__ */ e(st, { children: /* @__PURE__ */ e(f, { display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */
|
|
1306
|
+
/* @__PURE__ */ e(st, { children: /* @__PURE__ */ e(f, { display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ h(_, { direction: "row", gap: "sm", align: "center", children: [
|
|
1305
1307
|
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(H, { secondary: !0, onClick: Te, children: "Cancel" }) }),
|
|
1306
1308
|
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(H, { primary: !0, onClick: Ke, children: "Yes, Sure" }) })
|
|
1307
1309
|
] }) }) })
|
|
1308
1310
|
] }),
|
|
1309
|
-
Y && /* @__PURE__ */
|
|
1311
|
+
Y && /* @__PURE__ */ h(G, { children: [
|
|
1310
1312
|
/* @__PURE__ */ e(
|
|
1311
1313
|
"div",
|
|
1312
1314
|
{
|
|
@@ -1319,7 +1321,7 @@ function Fn({
|
|
|
1319
1321
|
}
|
|
1320
1322
|
}
|
|
1321
1323
|
),
|
|
1322
|
-
/* @__PURE__ */
|
|
1324
|
+
/* @__PURE__ */ h(
|
|
1323
1325
|
"div",
|
|
1324
1326
|
{
|
|
1325
1327
|
role: "dialog",
|
|
@@ -1356,11 +1358,11 @@ function Fn({
|
|
|
1356
1358
|
}
|
|
1357
1359
|
),
|
|
1358
1360
|
(Ze = Y.item.children) == null ? void 0 : Ze.map((y) => {
|
|
1359
|
-
const F =
|
|
1361
|
+
const F = oe(y.to), E = tt(
|
|
1360
1362
|
y.badge,
|
|
1361
1363
|
T[y.id]
|
|
1362
1364
|
);
|
|
1363
|
-
return /* @__PURE__ */
|
|
1365
|
+
return /* @__PURE__ */ h(
|
|
1364
1366
|
"button",
|
|
1365
1367
|
{
|
|
1366
1368
|
onClick: () => {
|
|
@@ -1428,7 +1430,7 @@ const br = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1428
1430
|
...r,
|
|
1429
1431
|
children: t
|
|
1430
1432
|
}
|
|
1431
|
-
), Xe =
|
|
1433
|
+
), Xe = ie(br), St = ({
|
|
1432
1434
|
title: t,
|
|
1433
1435
|
iconName: r,
|
|
1434
1436
|
textColor: i,
|
|
@@ -1437,7 +1439,7 @@ const br = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1437
1439
|
hoverIconColor: l
|
|
1438
1440
|
}) => {
|
|
1439
1441
|
const [s, a] = S(!1);
|
|
1440
|
-
return /* @__PURE__ */
|
|
1442
|
+
return /* @__PURE__ */ h(
|
|
1441
1443
|
f,
|
|
1442
1444
|
{
|
|
1443
1445
|
direction: "row",
|
|
@@ -1479,7 +1481,7 @@ const br = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1479
1481
|
iconColor: o,
|
|
1480
1482
|
hoverIconColor: n
|
|
1481
1483
|
}) => {
|
|
1482
|
-
const [l, s] = S(!1), a = o ?? "var(--sa-text-subtle, #8c8f97)",
|
|
1484
|
+
const [l, s] = S(!1), a = o ?? "var(--sa-text-subtle, #8c8f97)", u = n ?? "var(--sa-text-subtle, #8c8f97)", d = t.length > 1 ? t[0] : void 0, g = !!(d != null && d.to || d != null && d.onClick), m = /* @__PURE__ */ e(
|
|
1483
1485
|
w,
|
|
1484
1486
|
{
|
|
1485
1487
|
name: i || "ChevronLeft",
|
|
@@ -1487,13 +1489,13 @@ const br = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1487
1489
|
onMouseEnter: g ? () => s(!0) : void 0,
|
|
1488
1490
|
onMouseLeave: g ? () => s(!1) : void 0,
|
|
1489
1491
|
style: {
|
|
1490
|
-
color: g && l ?
|
|
1492
|
+
color: g && l ? u : a,
|
|
1491
1493
|
transition: "color 0.15s ease",
|
|
1492
1494
|
cursor: g ? "pointer" : void 0
|
|
1493
1495
|
}
|
|
1494
1496
|
}
|
|
1495
|
-
), p =
|
|
1496
|
-
return /* @__PURE__ */
|
|
1497
|
+
), p = d != null && d.to ? /* @__PURE__ */ e(Ue, { to: d.to, replace: !0, style: { textDecoration: "none" }, children: m }) : d != null && d.onClick ? /* @__PURE__ */ e(Xe, { onClick: d.onClick, children: m }) : m;
|
|
1498
|
+
return /* @__PURE__ */ h(f, { direction: "row", gap: "xs", align: "center", children: [
|
|
1497
1499
|
p,
|
|
1498
1500
|
/* @__PURE__ */ e(Qt, { separator: r, size: "md", children: t.map((v, L) => {
|
|
1499
1501
|
const C = L === t.length - 1;
|
|
@@ -1598,9 +1600,9 @@ function kr({
|
|
|
1598
1600
|
selectedGroupId: o,
|
|
1599
1601
|
onSelect: n
|
|
1600
1602
|
}) {
|
|
1601
|
-
const [l, s] = S(void 0), a = (
|
|
1602
|
-
n(
|
|
1603
|
-
},
|
|
1603
|
+
const [l, s] = S(void 0), a = (d) => {
|
|
1604
|
+
n(d), r();
|
|
1605
|
+
}, u = rt[0];
|
|
1604
1606
|
return /* @__PURE__ */ e(
|
|
1605
1607
|
qe,
|
|
1606
1608
|
{
|
|
@@ -1612,7 +1614,7 @@ function kr({
|
|
|
1612
1614
|
boxShadow: "none",
|
|
1613
1615
|
border: "none"
|
|
1614
1616
|
},
|
|
1615
|
-
children: /* @__PURE__ */ e(Je, { children: /* @__PURE__ */
|
|
1617
|
+
children: /* @__PURE__ */ e(Je, { children: /* @__PURE__ */ h(
|
|
1616
1618
|
"div",
|
|
1617
1619
|
{
|
|
1618
1620
|
style: {
|
|
@@ -1621,7 +1623,7 @@ function kr({
|
|
|
1621
1623
|
gap: "16px"
|
|
1622
1624
|
},
|
|
1623
1625
|
children: [
|
|
1624
|
-
/* @__PURE__ */
|
|
1626
|
+
/* @__PURE__ */ h(
|
|
1625
1627
|
"button",
|
|
1626
1628
|
{
|
|
1627
1629
|
onClick: () => a(null),
|
|
@@ -1629,27 +1631,27 @@ function kr({
|
|
|
1629
1631
|
onMouseLeave: () => s(void 0),
|
|
1630
1632
|
style: Mt,
|
|
1631
1633
|
children: [
|
|
1632
|
-
/* @__PURE__ */ e("div", { style: Ft(o === null, l === "all",
|
|
1634
|
+
/* @__PURE__ */ e("div", { style: Ft(o === null, l === "all", u), children: /* @__PURE__ */ e("div", { style: { color: u.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(w, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
|
|
1633
1635
|
/* @__PURE__ */ e("span", { style: Et, children: "Semua" })
|
|
1634
1636
|
]
|
|
1635
1637
|
}
|
|
1636
1638
|
),
|
|
1637
|
-
i.map((
|
|
1639
|
+
i.map((d, g) => {
|
|
1638
1640
|
var C;
|
|
1639
|
-
const m = o ===
|
|
1640
|
-
return /* @__PURE__ */
|
|
1641
|
+
const m = o === d.id, p = l === d.id, v = ((C = d.items[0]) == null ? void 0 : C.icon) ?? "Grid", L = rt[(g + 1) % rt.length];
|
|
1642
|
+
return /* @__PURE__ */ h(
|
|
1641
1643
|
"button",
|
|
1642
1644
|
{
|
|
1643
|
-
onClick: () => a(
|
|
1644
|
-
onMouseEnter: () => s(
|
|
1645
|
+
onClick: () => a(d.id),
|
|
1646
|
+
onMouseEnter: () => s(d.id),
|
|
1645
1647
|
onMouseLeave: () => s(void 0),
|
|
1646
1648
|
style: Mt,
|
|
1647
1649
|
children: [
|
|
1648
1650
|
/* @__PURE__ */ e("div", { style: Ft(m, p, L), children: /* @__PURE__ */ e("div", { style: { color: L.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(w, { name: v, size: "lg", style: { width: 32, height: 32 } }) }) }),
|
|
1649
|
-
/* @__PURE__ */ e("span", { style: Et, children:
|
|
1651
|
+
/* @__PURE__ */ e("span", { style: Et, children: d.name })
|
|
1650
1652
|
]
|
|
1651
1653
|
},
|
|
1652
|
-
|
|
1654
|
+
d.id
|
|
1653
1655
|
);
|
|
1654
1656
|
})
|
|
1655
1657
|
]
|
|
@@ -1662,16 +1664,16 @@ function Mn({
|
|
|
1662
1664
|
onSelect: t,
|
|
1663
1665
|
"aria-label": r = "Pilih module"
|
|
1664
1666
|
} = {}) {
|
|
1665
|
-
const i = $t(), o = ut(), { selectedGroupId: n, setSelectedGroupId: l } = Gt(), [s, a] = S(!1),
|
|
1667
|
+
const i = $t(), o = ut(), { selectedGroupId: n, setSelectedGroupId: l } = Gt(), [s, a] = S(!1), u = (d) => {
|
|
1666
1668
|
var g;
|
|
1667
|
-
if (l(
|
|
1668
|
-
const m = i.menus.find((v) => v.id ===
|
|
1669
|
+
if (l(d), d !== null) {
|
|
1670
|
+
const m = i.menus.find((v) => v.id === d), p = (g = m == null ? void 0 : m.items[0]) == null ? void 0 : g.to;
|
|
1669
1671
|
p && o(p);
|
|
1670
1672
|
}
|
|
1671
|
-
t == null || t(
|
|
1673
|
+
t == null || t(d);
|
|
1672
1674
|
};
|
|
1673
|
-
return /* @__PURE__ */
|
|
1674
|
-
/* @__PURE__ */
|
|
1675
|
+
return /* @__PURE__ */ h(G, { children: [
|
|
1676
|
+
/* @__PURE__ */ h("div", { style: { position: "relative" }, children: [
|
|
1675
1677
|
/* @__PURE__ */ e(
|
|
1676
1678
|
"button",
|
|
1677
1679
|
{
|
|
@@ -1689,11 +1691,11 @@ function Mn({
|
|
|
1689
1691
|
cursor: "pointer"
|
|
1690
1692
|
},
|
|
1691
1693
|
"aria-label": r,
|
|
1692
|
-
onMouseEnter: (
|
|
1693
|
-
|
|
1694
|
+
onMouseEnter: (d) => {
|
|
1695
|
+
d.currentTarget.style.backgroundColor = "var(--sa-background-primary-inverse, #f8f8f8)";
|
|
1694
1696
|
},
|
|
1695
|
-
onMouseLeave: (
|
|
1696
|
-
|
|
1697
|
+
onMouseLeave: (d) => {
|
|
1698
|
+
d.currentTarget.style.backgroundColor = "transparent";
|
|
1697
1699
|
},
|
|
1698
1700
|
children: /* @__PURE__ */ e(w, { name: "GridApplication", size: "sm" })
|
|
1699
1701
|
}
|
|
@@ -1719,9 +1721,9 @@ function Mn({
|
|
|
1719
1721
|
{
|
|
1720
1722
|
isShow: s,
|
|
1721
1723
|
onHide: () => a(!1),
|
|
1722
|
-
menus: i.menus.filter((
|
|
1724
|
+
menus: i.menus.filter((d) => d.parentGroupId === void 0),
|
|
1723
1725
|
selectedGroupId: n,
|
|
1724
|
-
onSelect:
|
|
1726
|
+
onSelect: u
|
|
1725
1727
|
}
|
|
1726
1728
|
)
|
|
1727
1729
|
] });
|
|
@@ -1735,7 +1737,7 @@ const Sr = (t, r) => {
|
|
|
1735
1737
|
i.push(n);
|
|
1736
1738
|
}
|
|
1737
1739
|
return i;
|
|
1738
|
-
}, Fr =
|
|
1740
|
+
}, Fr = ie(
|
|
1739
1741
|
({
|
|
1740
1742
|
value: t,
|
|
1741
1743
|
label: r,
|
|
@@ -1744,14 +1746,14 @@ const Sr = (t, r) => {
|
|
|
1744
1746
|
lastIndex: n,
|
|
1745
1747
|
labelAlign: l = "top"
|
|
1746
1748
|
}) => {
|
|
1747
|
-
const s =
|
|
1749
|
+
const s = De(
|
|
1748
1750
|
() => ({
|
|
1749
1751
|
padding: 0,
|
|
1750
1752
|
paddingBottom: n ? 0 : 12,
|
|
1751
1753
|
verticalAlign: l
|
|
1752
1754
|
}),
|
|
1753
1755
|
[n, l]
|
|
1754
|
-
), a =
|
|
1756
|
+
), a = De(
|
|
1755
1757
|
() => ({
|
|
1756
1758
|
padding: 0,
|
|
1757
1759
|
paddingRight: 12,
|
|
@@ -1760,14 +1762,14 @@ const Sr = (t, r) => {
|
|
|
1760
1762
|
verticalAlign: l
|
|
1761
1763
|
}),
|
|
1762
1764
|
[n, l]
|
|
1763
|
-
),
|
|
1764
|
-
return /* @__PURE__ */
|
|
1765
|
-
/* @__PURE__ */ e(ke, { style: s, width: o, children:
|
|
1765
|
+
), u = () => typeof r == "string" ? /* @__PURE__ */ e(D, { fontWeight: "medium", color: "text-muted", children: r }) : r, d = () => typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ e(D, { color: "text", fontWeight: "medium", children: t }) : t, g = () => typeof i == "string" || typeof i == "number" ? /* @__PURE__ */ e(D, { fontWeight: "medium", color: "text-muted", children: i }) : i;
|
|
1766
|
+
return /* @__PURE__ */ h(Ve, { children: [
|
|
1767
|
+
/* @__PURE__ */ e(ke, { style: s, width: o, children: u() }),
|
|
1766
1768
|
i ? /* @__PURE__ */ e(ke, { style: a, width: 24, children: g() }) : null,
|
|
1767
|
-
/* @__PURE__ */ e(ke, { style: s, children:
|
|
1769
|
+
/* @__PURE__ */ e(ke, { style: s, children: d() })
|
|
1768
1770
|
] });
|
|
1769
1771
|
}
|
|
1770
|
-
), Er =
|
|
1772
|
+
), Er = ie(({ fields: t, separator: r, labelWidth: i }) => /* @__PURE__ */ e(Vt, { children: t.map((o, n) => /* @__PURE__ */ e(
|
|
1771
1773
|
Fr,
|
|
1772
1774
|
{
|
|
1773
1775
|
separator: r,
|
|
@@ -1776,7 +1778,7 @@ const Sr = (t, r) => {
|
|
|
1776
1778
|
...o
|
|
1777
1779
|
},
|
|
1778
1780
|
`field-group-field-${n}`
|
|
1779
|
-
)) })), Ln =
|
|
1781
|
+
)) })), Ln = ie(
|
|
1780
1782
|
({
|
|
1781
1783
|
maxRow: t = 0,
|
|
1782
1784
|
maxColumn: r = 2,
|
|
@@ -1785,10 +1787,10 @@ const Sr = (t, r) => {
|
|
|
1785
1787
|
labelWidth: n = 150,
|
|
1786
1788
|
bordered: l = !1
|
|
1787
1789
|
}) => {
|
|
1788
|
-
const s =
|
|
1790
|
+
const s = De(
|
|
1789
1791
|
() => Sr(o, t),
|
|
1790
1792
|
[o, t]
|
|
1791
|
-
), a = s.length > 2,
|
|
1793
|
+
), a = s.length > 2, u = () => {
|
|
1792
1794
|
switch (r) {
|
|
1793
1795
|
case 1:
|
|
1794
1796
|
return "width-full";
|
|
@@ -1815,17 +1817,17 @@ const Sr = (t, r) => {
|
|
|
1815
1817
|
borderWidth: l ? "border" : void 0,
|
|
1816
1818
|
borderStyle: l ? "border-solid" : void 0,
|
|
1817
1819
|
borderColor: l ? "border-subtle" : void 0,
|
|
1818
|
-
children: s.map((
|
|
1820
|
+
children: s.map((d, g) => /* @__PURE__ */ e(
|
|
1819
1821
|
f,
|
|
1820
1822
|
{
|
|
1821
1823
|
flex: a ? void 0 : "1",
|
|
1822
|
-
width: a ?
|
|
1824
|
+
width: a ? u() : void 0,
|
|
1823
1825
|
marginBottom: a ? "lg" : void 0,
|
|
1824
1826
|
children: /* @__PURE__ */ e(
|
|
1825
1827
|
Er,
|
|
1826
1828
|
{
|
|
1827
1829
|
labelWidth: n,
|
|
1828
|
-
fields:
|
|
1830
|
+
fields: d,
|
|
1829
1831
|
separator: i
|
|
1830
1832
|
}
|
|
1831
1833
|
)
|
|
@@ -1855,7 +1857,7 @@ const Sr = (t, r) => {
|
|
|
1855
1857
|
default:
|
|
1856
1858
|
return /* @__PURE__ */ e(Me, { success: !0, children: t });
|
|
1857
1859
|
}
|
|
1858
|
-
},
|
|
1860
|
+
}, u = () => {
|
|
1859
1861
|
switch (s) {
|
|
1860
1862
|
case "info":
|
|
1861
1863
|
return /* @__PURE__ */ e(H, { primary: !0, onClick: o, children: l });
|
|
@@ -1867,17 +1869,17 @@ const Sr = (t, r) => {
|
|
|
1867
1869
|
return /* @__PURE__ */ e(H, { primary: !0, onClick: o, children: l });
|
|
1868
1870
|
}
|
|
1869
1871
|
};
|
|
1870
|
-
return /* @__PURE__ */
|
|
1872
|
+
return /* @__PURE__ */ h(qe, { isShow: n, onHide: i, children: [
|
|
1871
1873
|
a(),
|
|
1872
1874
|
/* @__PURE__ */ e(Je, { children: /* @__PURE__ */ e(D, { children: r }) }),
|
|
1873
|
-
/* @__PURE__ */ e(st, { children: /* @__PURE__ */
|
|
1875
|
+
/* @__PURE__ */ e(st, { children: /* @__PURE__ */ h(f, { justify: "flex-end", direction: "row", gap: "sm", children: [
|
|
1874
1876
|
/* @__PURE__ */ e(H, { secondary: !0, onClick: i, children: "Cancel" }),
|
|
1875
|
-
|
|
1877
|
+
u()
|
|
1876
1878
|
] }) })
|
|
1877
1879
|
] });
|
|
1878
1880
|
}, Mr = ({ backButton: t }) => {
|
|
1879
1881
|
const [r, i] = S(!1), o = (t == null ? void 0 : t.iconColor) ?? "var(--sa-text-subtle, #8c8f97)", n = (t == null ? void 0 : t.textColor) ?? "var(--sa-text-subtle, #8c8f97)", l = (t == null ? void 0 : t.hoverIconColor) ?? "var(--sa-text-subtle, #8c8f97)", s = (t == null ? void 0 : t.hoverTextColor) ?? "var(--sa-text-primary, #292a2e)";
|
|
1880
|
-
return /* @__PURE__ */
|
|
1882
|
+
return /* @__PURE__ */ h(
|
|
1881
1883
|
f,
|
|
1882
1884
|
{
|
|
1883
1885
|
direction: "row",
|
|
@@ -1922,9 +1924,9 @@ const Sr = (t, r) => {
|
|
|
1922
1924
|
action: l,
|
|
1923
1925
|
titleTagProps: s,
|
|
1924
1926
|
containerProps: a,
|
|
1925
|
-
headerProps:
|
|
1927
|
+
headerProps: u
|
|
1926
1928
|
}) => {
|
|
1927
|
-
const
|
|
1929
|
+
const d = re("lg"), g = ut(), m = ze(), p = t == null ? void 0 : t.show, v = () => {
|
|
1928
1930
|
if (typeof (t == null ? void 0 : t.onClick) == "function") {
|
|
1929
1931
|
t.onClick();
|
|
1930
1932
|
return;
|
|
@@ -1934,7 +1936,7 @@ const Sr = (t, r) => {
|
|
|
1934
1936
|
({ title: j, icon: Q, buttonProps: W, onClick: fe }, P) => !j && !Q ? null : /* @__PURE__ */ e(
|
|
1935
1937
|
H,
|
|
1936
1938
|
{
|
|
1937
|
-
fullWidth: !
|
|
1939
|
+
fullWidth: !d,
|
|
1938
1940
|
iconLeft: Q ? /* @__PURE__ */ e(w, { name: Q, size: "md" }) : void 0,
|
|
1939
1941
|
onClick: fe,
|
|
1940
1942
|
...W,
|
|
@@ -1955,24 +1957,24 @@ const Sr = (t, r) => {
|
|
|
1955
1957
|
) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Xe, { onClick: v, children: j }) });
|
|
1956
1958
|
}, T = () => {
|
|
1957
1959
|
const j = !!r, Q = ct(l) ? !0 : Array.isArray(l) && l.length > 0;
|
|
1958
|
-
return !j && !Q && !p ? null : /* @__PURE__ */
|
|
1960
|
+
return !j && !Q && !p ? null : /* @__PURE__ */ h(
|
|
1959
1961
|
f,
|
|
1960
1962
|
{
|
|
1961
1963
|
gap: "xs",
|
|
1962
|
-
paddingTop:
|
|
1963
|
-
paddingInline:
|
|
1964
|
-
...
|
|
1964
|
+
paddingTop: u == null ? void 0 : u.paddingTop,
|
|
1965
|
+
paddingInline: u == null ? void 0 : u.paddingInline,
|
|
1966
|
+
...u,
|
|
1965
1967
|
children: [
|
|
1966
1968
|
p && C(),
|
|
1967
|
-
(j || Q) && /* @__PURE__ */
|
|
1969
|
+
(j || Q) && /* @__PURE__ */ h(
|
|
1968
1970
|
f,
|
|
1969
1971
|
{
|
|
1970
|
-
direction:
|
|
1972
|
+
direction: d ? "row" : "column",
|
|
1971
1973
|
gap: "lg",
|
|
1972
1974
|
justify: "space-between",
|
|
1973
1975
|
align: "center",
|
|
1974
1976
|
children: [
|
|
1975
|
-
j ? typeof r == "string" ? /* @__PURE__ */
|
|
1977
|
+
j ? typeof r == "string" ? /* @__PURE__ */ h(f, { direction: "row", gap: "lg", align: "center", children: [
|
|
1976
1978
|
/* @__PURE__ */ e(D, { variant: "h2", fontWeight: "semibold", fontFamily: "Poppins", children: r }),
|
|
1977
1979
|
i && /* @__PURE__ */ e(Le, { border: !0, size: "lg", text: i, ...s })
|
|
1978
1980
|
] }) : r : null,
|
|
@@ -1984,7 +1986,7 @@ const Sr = (t, r) => {
|
|
|
1984
1986
|
}
|
|
1985
1987
|
);
|
|
1986
1988
|
}, Z = () => o;
|
|
1987
|
-
return /* @__PURE__ */
|
|
1989
|
+
return /* @__PURE__ */ h(
|
|
1988
1990
|
f,
|
|
1989
1991
|
{
|
|
1990
1992
|
gap: "md",
|
|
@@ -2002,7 +2004,7 @@ const Sr = (t, r) => {
|
|
|
2002
2004
|
},
|
|
2003
2005
|
m.pathname
|
|
2004
2006
|
);
|
|
2005
|
-
}, Bn =
|
|
2007
|
+
}, Bn = ie(Lr), Wr = {
|
|
2006
2008
|
icon: "Cross",
|
|
2007
2009
|
title: ""
|
|
2008
2010
|
}, Br = "calc(100vw - 16px)", Lt = (t) => t == null ? void 0 : `min(${typeof t == "number" ? `${t}px` : t}, ${Br})`, Ar = Ot(
|
|
@@ -2015,9 +2017,9 @@ const Sr = (t, r) => {
|
|
|
2015
2017
|
closeButton: l = Wr,
|
|
2016
2018
|
width: s,
|
|
2017
2019
|
minWidth: a = "357px",
|
|
2018
|
-
maxWidth:
|
|
2019
|
-
},
|
|
2020
|
-
const g = Lt(s ?? a), m = Lt(s ??
|
|
2020
|
+
maxWidth: u = "357px"
|
|
2021
|
+
}, d) => {
|
|
2022
|
+
const g = Lt(s ?? a), m = Lt(s ?? u);
|
|
2021
2023
|
return /* @__PURE__ */ e(
|
|
2022
2024
|
Xt,
|
|
2023
2025
|
{
|
|
@@ -2025,14 +2027,14 @@ const Sr = (t, r) => {
|
|
|
2025
2027
|
isShow: r,
|
|
2026
2028
|
position: "right",
|
|
2027
2029
|
onHide: t,
|
|
2028
|
-
ref:
|
|
2030
|
+
ref: d,
|
|
2029
2031
|
style: {
|
|
2030
2032
|
minWidth: g,
|
|
2031
2033
|
maxWidth: m,
|
|
2032
2034
|
...o
|
|
2033
2035
|
},
|
|
2034
|
-
children: /* @__PURE__ */
|
|
2035
|
-
l ? /* @__PURE__ */
|
|
2036
|
+
children: /* @__PURE__ */ h(f, { padding: "lg", children: [
|
|
2037
|
+
l ? /* @__PURE__ */ h(
|
|
2036
2038
|
f,
|
|
2037
2039
|
{
|
|
2038
2040
|
direction: "row",
|
|
@@ -2060,9 +2062,9 @@ const Sr = (t, r) => {
|
|
|
2060
2062
|
}
|
|
2061
2063
|
);
|
|
2062
2064
|
}
|
|
2063
|
-
), qt =
|
|
2065
|
+
), qt = ie(
|
|
2064
2066
|
({ children: t, borderBottom: r = !0, padding: i = !0 }) => {
|
|
2065
|
-
const o =
|
|
2067
|
+
const o = re("lg");
|
|
2066
2068
|
return /* @__PURE__ */ e(
|
|
2067
2069
|
f,
|
|
2068
2070
|
{
|
|
@@ -2076,9 +2078,9 @@ const Sr = (t, r) => {
|
|
|
2076
2078
|
}
|
|
2077
2079
|
);
|
|
2078
2080
|
}
|
|
2079
|
-
), Jt =
|
|
2081
|
+
), Jt = ie(
|
|
2080
2082
|
({ children: t, borderTop: r = !0, padding: i = !0 }) => {
|
|
2081
|
-
const o =
|
|
2083
|
+
const o = re("lg");
|
|
2082
2084
|
return /* @__PURE__ */ e(
|
|
2083
2085
|
f,
|
|
2084
2086
|
{
|
|
@@ -2092,7 +2094,7 @@ const Sr = (t, r) => {
|
|
|
2092
2094
|
}
|
|
2093
2095
|
);
|
|
2094
2096
|
}
|
|
2095
|
-
), Hr =
|
|
2097
|
+
), Hr = ie(
|
|
2096
2098
|
({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
2097
2099
|
f,
|
|
2098
2100
|
{
|
|
@@ -2104,7 +2106,7 @@ const Sr = (t, r) => {
|
|
|
2104
2106
|
children: t
|
|
2105
2107
|
}
|
|
2106
2108
|
)
|
|
2107
|
-
), An =
|
|
2109
|
+
), An = ie(
|
|
2108
2110
|
({
|
|
2109
2111
|
children: t,
|
|
2110
2112
|
title: r,
|
|
@@ -2114,15 +2116,15 @@ const Sr = (t, r) => {
|
|
|
2114
2116
|
footer: l,
|
|
2115
2117
|
actionContainer: s,
|
|
2116
2118
|
containerProps: a,
|
|
2117
|
-
bodyProps:
|
|
2118
|
-
headerProps:
|
|
2119
|
+
bodyProps: u,
|
|
2120
|
+
headerProps: d = { borderBottom: !0 },
|
|
2119
2121
|
footerProps: g = { borderTop: !0 },
|
|
2120
2122
|
variantTag: m = "info"
|
|
2121
2123
|
}) => {
|
|
2122
|
-
const p =
|
|
2124
|
+
const p = re("lg"), v = () => i ? /* @__PURE__ */ h(f, { direction: "row", gap: "sm", align: "center", children: [
|
|
2123
2125
|
/* @__PURE__ */ e(D, { fontWeight: "medium", children: r }),
|
|
2124
2126
|
/* @__PURE__ */ e(Le, { border: !0, text: i, variant: m })
|
|
2125
|
-
] }) : /* @__PURE__ */ e(D, { fontWeight: "medium", children: r }), L = () => n || /* @__PURE__ */
|
|
2127
|
+
] }) : /* @__PURE__ */ e(D, { fontWeight: "medium", children: r }), L = () => n || /* @__PURE__ */ h(
|
|
2126
2128
|
f,
|
|
2127
2129
|
{
|
|
2128
2130
|
direction: "row",
|
|
@@ -2142,7 +2144,7 @@ const Sr = (t, r) => {
|
|
|
2142
2144
|
]
|
|
2143
2145
|
}
|
|
2144
2146
|
), C = !!(n || r || o);
|
|
2145
|
-
return /* @__PURE__ */
|
|
2147
|
+
return /* @__PURE__ */ h(
|
|
2146
2148
|
f,
|
|
2147
2149
|
{
|
|
2148
2150
|
bg: "white",
|
|
@@ -2157,8 +2159,8 @@ const Sr = (t, r) => {
|
|
|
2157
2159
|
...(a == null ? void 0 : a.style) ?? {}
|
|
2158
2160
|
},
|
|
2159
2161
|
children: [
|
|
2160
|
-
n !== null && C ? /* @__PURE__ */ e(qt, { ...
|
|
2161
|
-
/* @__PURE__ */ e(Hr, { ...
|
|
2162
|
+
n !== null && C ? /* @__PURE__ */ e(qt, { ...d, children: L() }) : null,
|
|
2163
|
+
/* @__PURE__ */ e(Hr, { ...u, children: t }),
|
|
2162
2164
|
l ? /* @__PURE__ */ e(Jt, { ...g, children: l }) : null
|
|
2163
2165
|
]
|
|
2164
2166
|
}
|
|
@@ -2186,7 +2188,7 @@ const Sr = (t, r) => {
|
|
|
2186
2188
|
children: t
|
|
2187
2189
|
}
|
|
2188
2190
|
);
|
|
2189
|
-
}, Vr =
|
|
2191
|
+
}, Vr = ie(Rr), zr = ({
|
|
2190
2192
|
icon: t,
|
|
2191
2193
|
items: r = [],
|
|
2192
2194
|
style: i,
|
|
@@ -2195,9 +2197,9 @@ const Sr = (t, r) => {
|
|
|
2195
2197
|
position: l = "bottom-right",
|
|
2196
2198
|
buttonProps: s,
|
|
2197
2199
|
iconProps: a,
|
|
2198
|
-
variant:
|
|
2200
|
+
variant: u = "default"
|
|
2199
2201
|
}) => {
|
|
2200
|
-
const
|
|
2202
|
+
const d = De(
|
|
2201
2203
|
() => ({
|
|
2202
2204
|
zIndex: 10,
|
|
2203
2205
|
width: "150px",
|
|
@@ -2205,9 +2207,9 @@ const Sr = (t, r) => {
|
|
|
2205
2207
|
}),
|
|
2206
2208
|
[n]
|
|
2207
2209
|
);
|
|
2208
|
-
return /* @__PURE__ */
|
|
2210
|
+
return /* @__PURE__ */ h(Ht, { position: l, style: i, children: [
|
|
2209
2211
|
/* @__PURE__ */ e(_e, { style: o, children: /* @__PURE__ */ e(H, { size: "sm", secondary: !0, ...s, children: /* @__PURE__ */ e(w, { name: t, ...a }) }) }),
|
|
2210
|
-
/* @__PURE__ */ e(It, { style:
|
|
2212
|
+
/* @__PURE__ */ e(It, { style: d, children: r.map((g, m) => u === "outline-button" ? /* @__PURE__ */ e(Rt, { children: /* @__PURE__ */ h(
|
|
2211
2213
|
H,
|
|
2212
2214
|
{
|
|
2213
2215
|
size: "sm",
|
|
@@ -2220,7 +2222,7 @@ const Sr = (t, r) => {
|
|
|
2220
2222
|
/* @__PURE__ */ e(D, { fontSize: "sm", color: "text", ...g.textProps, children: g.label })
|
|
2221
2223
|
]
|
|
2222
2224
|
}
|
|
2223
|
-
) }, g.id || m) : /* @__PURE__ */
|
|
2225
|
+
) }, g.id || m) : /* @__PURE__ */ h(
|
|
2224
2226
|
Vr,
|
|
2225
2227
|
{
|
|
2226
2228
|
onClick: g.onClick,
|
|
@@ -2233,7 +2235,7 @@ const Sr = (t, r) => {
|
|
|
2233
2235
|
g.id || m
|
|
2234
2236
|
)) })
|
|
2235
2237
|
] });
|
|
2236
|
-
}, Hn =
|
|
2238
|
+
}, Hn = ie(zr), Tr = (t) => /* @__PURE__ */ e(D, { variant: "h1", children: t.children, ...t.props }), Or = (t) => /* @__PURE__ */ e(D, { variant: "h2", children: t.children, ...t.props }), Nr = (t) => /* @__PURE__ */ e(D, { variant: "h3", children: t.children, ...t.props }), Zr = (t) => /* @__PURE__ */ e(D, { variant: "h4", children: t.children, ...t.props }), jr = (t) => /* @__PURE__ */ e(D, { variant: "h5", children: t.children, ...t.props }), $r = (t) => /* @__PURE__ */ e(D, { variant: "h6", children: t.children, ...t.props }), _r = (t) => /* @__PURE__ */ e(D, { variant: "sub-h1", children: t.children, ...t.props }), Ur = (t) => /* @__PURE__ */ e(D, { variant: "sub-h2", children: t.children, ...t.props }), Gr = (t) => /* @__PURE__ */ e(D, { variant: "sub-h3", children: t.children, ...t.props }), qr = (t) => /* @__PURE__ */ e(D, { variant: "body-1", children: t.children, ...t.props }), Jr = (t) => /* @__PURE__ */ e(D, { variant: "body-2", children: t.children, ...t.props }), Qr = (t) => /* @__PURE__ */ e(D, { variant: "body-3", children: t.children, ...t.props }), me = {
|
|
2237
2239
|
H1: Tr,
|
|
2238
2240
|
H2: Or,
|
|
2239
2241
|
H3: Nr,
|
|
@@ -2273,40 +2275,40 @@ const Sr = (t, r) => {
|
|
|
2273
2275
|
searchQueries: l,
|
|
2274
2276
|
dropdownSearchKey: s,
|
|
2275
2277
|
filterKey: a = "filter",
|
|
2276
|
-
pageKey:
|
|
2278
|
+
pageKey: u = "page"
|
|
2277
2279
|
}) => {
|
|
2278
2280
|
if (o) {
|
|
2279
|
-
let
|
|
2281
|
+
let d;
|
|
2280
2282
|
switch (i) {
|
|
2281
2283
|
case "search":
|
|
2282
|
-
|
|
2284
|
+
d = ei(t);
|
|
2283
2285
|
break;
|
|
2284
2286
|
case "dropdown":
|
|
2285
2287
|
case "dropdown-multiple":
|
|
2286
|
-
|
|
2288
|
+
d = Pr(t);
|
|
2287
2289
|
break;
|
|
2288
2290
|
case "radio":
|
|
2289
|
-
|
|
2291
|
+
d = Yr(t);
|
|
2290
2292
|
break;
|
|
2291
2293
|
case "date-range":
|
|
2292
|
-
|
|
2294
|
+
d = Xr(t);
|
|
2293
2295
|
break;
|
|
2294
2296
|
case "advanced-date-range":
|
|
2295
|
-
|
|
2297
|
+
d = ti(t);
|
|
2296
2298
|
break;
|
|
2297
2299
|
case "date":
|
|
2298
|
-
|
|
2300
|
+
d = Kr(t);
|
|
2299
2301
|
break;
|
|
2300
2302
|
default:
|
|
2301
|
-
|
|
2303
|
+
d = t;
|
|
2302
2304
|
break;
|
|
2303
2305
|
}
|
|
2304
|
-
if (typeof
|
|
2306
|
+
if (typeof d < "u") {
|
|
2305
2307
|
const m = {
|
|
2306
2308
|
...l[a] && typeof l[a] == "string" ? JSON.parse(l[a]) : void 0,
|
|
2307
|
-
[r]:
|
|
2309
|
+
[r]: d
|
|
2308
2310
|
}, p = { ...l };
|
|
2309
|
-
s && typeof s == "string" && delete p[s], delete p[
|
|
2311
|
+
s && typeof s == "string" && delete p[s], delete p[u];
|
|
2310
2312
|
const v = {
|
|
2311
2313
|
...p,
|
|
2312
2314
|
[a]: JSON.stringify(m)
|
|
@@ -2376,7 +2378,7 @@ const Sr = (t, r) => {
|
|
|
2376
2378
|
pageKey: o,
|
|
2377
2379
|
filters: n
|
|
2378
2380
|
}) => {
|
|
2379
|
-
const { searchParams: l, setSearchParams: s, searchQueries: a } = mt(), [
|
|
2381
|
+
const { searchParams: l, setSearchParams: s, searchQueries: a } = mt(), [u, d] = S({}), g = () => {
|
|
2380
2382
|
l.delete(i || "filter"), s(l);
|
|
2381
2383
|
}, m = (p, v) => {
|
|
2382
2384
|
switch (p.type) {
|
|
@@ -2400,8 +2402,8 @@ const Sr = (t, r) => {
|
|
|
2400
2402
|
return null;
|
|
2401
2403
|
}
|
|
2402
2404
|
};
|
|
2403
|
-
return /* @__PURE__ */ e(Ar, { onHide: r, show: t || !1, children: /* @__PURE__ */
|
|
2404
|
-
/* @__PURE__ */
|
|
2405
|
+
return /* @__PURE__ */ e(Ar, { onHide: r, show: t || !1, children: /* @__PURE__ */ h(f, { direction: "column", gap: "md", children: [
|
|
2406
|
+
/* @__PURE__ */ h(_, { direction: "row", justify: "space-between", align: "center", children: [
|
|
2405
2407
|
/* @__PURE__ */ e(f, { children: "Filter" }),
|
|
2406
2408
|
/* @__PURE__ */ e(
|
|
2407
2409
|
f,
|
|
@@ -2423,8 +2425,8 @@ const Sr = (t, r) => {
|
|
|
2423
2425
|
showSearchFilter: l = !0,
|
|
2424
2426
|
showStatusFilter: s = !0,
|
|
2425
2427
|
filterKey: a = "filter",
|
|
2426
|
-
pageKey:
|
|
2427
|
-
customWidthSearch:
|
|
2428
|
+
pageKey: u = "page",
|
|
2429
|
+
customWidthSearch: d,
|
|
2428
2430
|
handleOnReset: g,
|
|
2429
2431
|
filterConfigs: m,
|
|
2430
2432
|
buttonToggleProps: p,
|
|
@@ -2434,18 +2436,18 @@ const Sr = (t, r) => {
|
|
|
2434
2436
|
}) => {
|
|
2435
2437
|
const Z = (p == null ? void 0 : p.isShowLabel) ?? !0, [j, Q] = S(!1), [W, fe] = S(0), P = () => {
|
|
2436
2438
|
fe((z) => z + 1);
|
|
2437
|
-
}, { searchParams: R, setSearchParams: K, getQueryParam: ce } = mt(), ae = Qe(R.toString()), U = ri(t, R, a) || "", [se,
|
|
2438
|
-
if (
|
|
2439
|
+
}, { searchParams: R, setSearchParams: K, getQueryParam: ce } = mt(), ae = Qe(R.toString()), U = ri(t, R, a) || "", [se, te] = S(U), ne = ce(a), J = !!(ne && !(() => {
|
|
2440
|
+
if (ne)
|
|
2439
2441
|
try {
|
|
2440
|
-
const z = JSON.parse(
|
|
2442
|
+
const z = JSON.parse(ne);
|
|
2441
2443
|
return Object.keys(z).length === 1 && z[t] === "";
|
|
2442
2444
|
} catch (z) {
|
|
2443
2445
|
console.error("Filter parameter is not a valid JSON:", z);
|
|
2444
2446
|
}
|
|
2445
2447
|
return !1;
|
|
2446
|
-
})()), V =
|
|
2448
|
+
})()), V = re("md");
|
|
2447
2449
|
return $(() => {
|
|
2448
|
-
|
|
2450
|
+
te(U);
|
|
2449
2451
|
}, [U]), $(() => {
|
|
2450
2452
|
if (se === U)
|
|
2451
2453
|
return;
|
|
@@ -2457,7 +2459,7 @@ const Sr = (t, r) => {
|
|
|
2457
2459
|
searchQueries: ae,
|
|
2458
2460
|
setSearchParams: K,
|
|
2459
2461
|
filterKey: a,
|
|
2460
|
-
pageKey:
|
|
2462
|
+
pageKey: u
|
|
2461
2463
|
});
|
|
2462
2464
|
}, 350);
|
|
2463
2465
|
return () => {
|
|
@@ -2470,8 +2472,8 @@ const Sr = (t, r) => {
|
|
|
2470
2472
|
ae,
|
|
2471
2473
|
K,
|
|
2472
2474
|
a,
|
|
2473
|
-
|
|
2474
|
-
]), /* @__PURE__ */
|
|
2475
|
+
u
|
|
2476
|
+
]), /* @__PURE__ */ h(
|
|
2475
2477
|
_,
|
|
2476
2478
|
{
|
|
2477
2479
|
gap: "md",
|
|
@@ -2485,14 +2487,14 @@ const Sr = (t, r) => {
|
|
|
2485
2487
|
{
|
|
2486
2488
|
onClick: () => {
|
|
2487
2489
|
const z = new URLSearchParams(R);
|
|
2488
|
-
z.delete(a), K(z),
|
|
2490
|
+
z.delete(a), K(z), te(""), P(), g && g();
|
|
2489
2491
|
},
|
|
2490
2492
|
variant: "outline",
|
|
2491
2493
|
tone: "neutral",
|
|
2492
2494
|
children: /* @__PURE__ */ e(D, { color: "error", fontWeight: "semibold", children: "Reset" })
|
|
2493
2495
|
}
|
|
2494
2496
|
) }),
|
|
2495
|
-
n == null ? void 0 : n.map(({ minWidth: z, content: X, title: de, onClickContainer: he }, Be) => /* @__PURE__ */
|
|
2497
|
+
n == null ? void 0 : n.map(({ minWidth: z, content: X, title: de, onClickContainer: he }, Be) => /* @__PURE__ */ h(
|
|
2496
2498
|
f,
|
|
2497
2499
|
{
|
|
2498
2500
|
gap: "sm",
|
|
@@ -2518,7 +2520,7 @@ const Sr = (t, r) => {
|
|
|
2518
2520
|
size: "sm",
|
|
2519
2521
|
name: (p == null ? void 0 : p.icon) || "FilterHorizontal",
|
|
2520
2522
|
style: {
|
|
2521
|
-
color:
|
|
2523
|
+
color: ne ? "var(--sa-background-brand, #04254f)" : "var(--sa-text-primary, #292a2e)"
|
|
2522
2524
|
}
|
|
2523
2525
|
}
|
|
2524
2526
|
),
|
|
@@ -2527,7 +2529,7 @@ const Sr = (t, r) => {
|
|
|
2527
2529
|
children: Z ? "Filter" : void 0
|
|
2528
2530
|
}
|
|
2529
2531
|
),
|
|
2530
|
-
s && /* @__PURE__ */
|
|
2532
|
+
s && /* @__PURE__ */ h(
|
|
2531
2533
|
f,
|
|
2532
2534
|
{
|
|
2533
2535
|
gap: "sm",
|
|
@@ -2585,15 +2587,15 @@ const Sr = (t, r) => {
|
|
|
2585
2587
|
]
|
|
2586
2588
|
}
|
|
2587
2589
|
),
|
|
2588
|
-
l && /* @__PURE__ */
|
|
2590
|
+
l && /* @__PURE__ */ h(
|
|
2589
2591
|
f,
|
|
2590
2592
|
{
|
|
2591
2593
|
gap: "sm",
|
|
2592
2594
|
style: {
|
|
2593
|
-
width:
|
|
2595
|
+
width: d && V ? d : V ? "310px" : ""
|
|
2594
2596
|
},
|
|
2595
2597
|
children: [
|
|
2596
|
-
C && /* @__PURE__ */
|
|
2598
|
+
C && /* @__PURE__ */ h(me.SubH3, { children: [
|
|
2597
2599
|
"Search for ",
|
|
2598
2600
|
L
|
|
2599
2601
|
] }),
|
|
@@ -2602,7 +2604,7 @@ const Sr = (t, r) => {
|
|
|
2602
2604
|
{
|
|
2603
2605
|
placeholder: i,
|
|
2604
2606
|
leftIcon: /* @__PURE__ */ e(w, { name: "Search", width: 20, height: 20 }),
|
|
2605
|
-
onChange: (z) =>
|
|
2607
|
+
onChange: (z) => te(z.target.value),
|
|
2606
2608
|
value: se,
|
|
2607
2609
|
fullWidth: !0
|
|
2608
2610
|
},
|
|
@@ -2618,14 +2620,14 @@ const Sr = (t, r) => {
|
|
|
2618
2620
|
onClose: () => Q(!1),
|
|
2619
2621
|
filterKey: a,
|
|
2620
2622
|
filters: m,
|
|
2621
|
-
pageKey:
|
|
2623
|
+
pageKey: u
|
|
2622
2624
|
}
|
|
2623
2625
|
)
|
|
2624
2626
|
]
|
|
2625
2627
|
}
|
|
2626
2628
|
);
|
|
2627
2629
|
}, oi = ({ children: t, borderRadius: r, height: i }) => {
|
|
2628
|
-
const o =
|
|
2630
|
+
const o = ee(null), [n, l] = S("100vh");
|
|
2629
2631
|
return $(() => {
|
|
2630
2632
|
if (i) return;
|
|
2631
2633
|
const s = () => {
|
|
@@ -2660,7 +2662,7 @@ const Sr = (t, r) => {
|
|
|
2660
2662
|
advanceFilter: n,
|
|
2661
2663
|
showFilter: l = !0
|
|
2662
2664
|
}) => {
|
|
2663
|
-
const s =
|
|
2665
|
+
const s = re("md"), a = l ? /* @__PURE__ */ e(ni, { ...n }) : null;
|
|
2664
2666
|
return /* @__PURE__ */ e(
|
|
2665
2667
|
f,
|
|
2666
2668
|
{
|
|
@@ -2680,12 +2682,12 @@ const Sr = (t, r) => {
|
|
|
2680
2682
|
flexDirection: s ? "row" : "column-reverse",
|
|
2681
2683
|
gap: "16px"
|
|
2682
2684
|
},
|
|
2683
|
-
children: o ? o({ filter: a }) : /* @__PURE__ */
|
|
2684
|
-
/* @__PURE__ */
|
|
2685
|
+
children: o ? o({ filter: a }) : /* @__PURE__ */ h(G, { children: [
|
|
2686
|
+
/* @__PURE__ */ h(f, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flex: 1, minWidth: 0 }, children: [
|
|
2685
2687
|
a,
|
|
2686
2688
|
i
|
|
2687
2689
|
] }),
|
|
2688
|
-
/* @__PURE__ */
|
|
2690
|
+
/* @__PURE__ */ h(f, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flexShrink: 0 }, children: [
|
|
2689
2691
|
r,
|
|
2690
2692
|
t ? ct(t) ? t : /* @__PURE__ */ e(
|
|
2691
2693
|
f,
|
|
@@ -2698,14 +2700,14 @@ const Sr = (t, r) => {
|
|
|
2698
2700
|
textWrap: "nowrap"
|
|
2699
2701
|
},
|
|
2700
2702
|
children: t.map(
|
|
2701
|
-
({ title:
|
|
2703
|
+
({ title: d, icon: g, buttonProps: m, onClick: p }, v) => !d && !g ? null : /* @__PURE__ */ e(
|
|
2702
2704
|
H,
|
|
2703
2705
|
{
|
|
2704
2706
|
fullWidth: !s,
|
|
2705
2707
|
iconLeft: g ? /* @__PURE__ */ e(w, { name: g }) : void 0,
|
|
2706
2708
|
onClick: p,
|
|
2707
2709
|
...m,
|
|
2708
|
-
children:
|
|
2710
|
+
children: d
|
|
2709
2711
|
},
|
|
2710
2712
|
`action-${v}`
|
|
2711
2713
|
)
|
|
@@ -2720,7 +2722,7 @@ const Sr = (t, r) => {
|
|
|
2720
2722
|
totalData: t,
|
|
2721
2723
|
withMarginBottom: r = !0,
|
|
2722
2724
|
withMarginTop: i = !0
|
|
2723
|
-
}) => /* @__PURE__ */
|
|
2725
|
+
}) => /* @__PURE__ */ h(
|
|
2724
2726
|
f,
|
|
2725
2727
|
{
|
|
2726
2728
|
style: {
|
|
@@ -2732,7 +2734,7 @@ const Sr = (t, r) => {
|
|
|
2732
2734
|
marginTop: i ? "16px" : void 0
|
|
2733
2735
|
},
|
|
2734
2736
|
children: [
|
|
2735
|
-
/* @__PURE__ */
|
|
2737
|
+
/* @__PURE__ */ h(
|
|
2736
2738
|
me.Body1,
|
|
2737
2739
|
{
|
|
2738
2740
|
props: {
|
|
@@ -2755,7 +2757,7 @@ const Sr = (t, r) => {
|
|
|
2755
2757
|
showPagination: n = !0,
|
|
2756
2758
|
totalData: l
|
|
2757
2759
|
}) => {
|
|
2758
|
-
const { searchQueries: s, setSearchParams: a, searchParams:
|
|
2760
|
+
const { searchQueries: s, setSearchParams: a, searchParams: u } = mt(), d = u.get(i), g = (L) => {
|
|
2759
2761
|
a({ ...s, [r]: String(L) });
|
|
2760
2762
|
}, m = (L) => {
|
|
2761
2763
|
a({
|
|
@@ -2780,8 +2782,8 @@ const Sr = (t, r) => {
|
|
|
2780
2782
|
borderTop: "1px solid var(--sa-border-subtle, #0b120e24)",
|
|
2781
2783
|
flexShrink: 0
|
|
2782
2784
|
},
|
|
2783
|
-
children: n ? /* @__PURE__ */
|
|
2784
|
-
/* @__PURE__ */
|
|
2785
|
+
children: n ? /* @__PURE__ */ h(G, { children: [
|
|
2786
|
+
/* @__PURE__ */ h(f, { style: { display: "flex", flexDirection: "row", gap: "8px", alignItems: "center", textWrap: "nowrap" }, children: [
|
|
2785
2787
|
/* @__PURE__ */ e(D, { children: "Rows Per Page: " }),
|
|
2786
2788
|
/* @__PURE__ */ e(
|
|
2787
2789
|
dt,
|
|
@@ -2796,8 +2798,8 @@ const Sr = (t, r) => {
|
|
|
2796
2798
|
onChange: (L) => {
|
|
2797
2799
|
m(L[0].value);
|
|
2798
2800
|
},
|
|
2799
|
-
value:
|
|
2800
|
-
defaultValue:
|
|
2801
|
+
value: d ? [{ label: `${d} per row`, value: d }] : [{ label: `${o} per row`, value: `${o}` }],
|
|
2802
|
+
defaultValue: d ? [{ label: `${d} per row`, value: d }] : [{ label: `${o} per row`, value: `${o}` }]
|
|
2801
2803
|
}
|
|
2802
2804
|
),
|
|
2803
2805
|
/* @__PURE__ */ e(D, { children: `${p}-${v} of ${(t == null ? void 0 : t.totalData) || 0}` })
|
|
@@ -2821,7 +2823,7 @@ const Sr = (t, r) => {
|
|
|
2821
2823
|
}
|
|
2822
2824
|
);
|
|
2823
2825
|
}, si = ({ filter: t, columnTitle: r }) => {
|
|
2824
|
-
const [i, o] = S(!1), n =
|
|
2826
|
+
const [i, o] = S(!1), n = ee(null), l = ee(null), s = ee(null), [a, u] = S(""), [d, g] = S({ top: 0, left: 0 }), m = t.selectedValues, p = De(() => a ? t.options.filter(
|
|
2825
2827
|
(C) => C.label.toLowerCase().includes(a.toLowerCase())
|
|
2826
2828
|
) : t.options, [t.options, a]);
|
|
2827
2829
|
$(() => {
|
|
@@ -2835,7 +2837,7 @@ const Sr = (t, r) => {
|
|
|
2835
2837
|
i && s.current ? setTimeout(() => {
|
|
2836
2838
|
var C;
|
|
2837
2839
|
return (C = s.current) == null ? void 0 : C.focus();
|
|
2838
|
-
}, 50) :
|
|
2840
|
+
}, 50) : u("");
|
|
2839
2841
|
}, [i]), $(() => {
|
|
2840
2842
|
const C = (T) => {
|
|
2841
2843
|
n.current && !n.current.contains(T.target) && l.current && !l.current.contains(T.target) && o(!1);
|
|
@@ -2846,7 +2848,7 @@ const Sr = (t, r) => {
|
|
|
2846
2848
|
const T = m.includes(C) ? m.filter((Z) => Z !== C) : [...m, C];
|
|
2847
2849
|
t.onFilterChange(T);
|
|
2848
2850
|
}, L = () => t.onFilterChange([]);
|
|
2849
|
-
return /* @__PURE__ */
|
|
2851
|
+
return /* @__PURE__ */ h(f, { style: { position: "relative" }, children: [
|
|
2850
2852
|
/* @__PURE__ */ e(
|
|
2851
2853
|
f,
|
|
2852
2854
|
{
|
|
@@ -2873,14 +2875,14 @@ const Sr = (t, r) => {
|
|
|
2873
2875
|
)
|
|
2874
2876
|
}
|
|
2875
2877
|
),
|
|
2876
|
-
i && /* @__PURE__ */
|
|
2878
|
+
i && /* @__PURE__ */ h(
|
|
2877
2879
|
f,
|
|
2878
2880
|
{
|
|
2879
2881
|
ref: n,
|
|
2880
2882
|
style: {
|
|
2881
2883
|
position: "fixed",
|
|
2882
|
-
top: `${
|
|
2883
|
-
...
|
|
2884
|
+
top: `${d.top}px`,
|
|
2885
|
+
...d.left !== void 0 ? { left: `${d.left}px` } : { right: `${d.right}px` },
|
|
2884
2886
|
backgroundColor: "white",
|
|
2885
2887
|
borderRadius: "4px",
|
|
2886
2888
|
minWidth: "280px",
|
|
@@ -2892,7 +2894,7 @@ const Sr = (t, r) => {
|
|
|
2892
2894
|
border: "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
2893
2895
|
},
|
|
2894
2896
|
children: [
|
|
2895
|
-
/* @__PURE__ */
|
|
2897
|
+
/* @__PURE__ */ h(
|
|
2896
2898
|
f,
|
|
2897
2899
|
{
|
|
2898
2900
|
style: {
|
|
@@ -2907,7 +2909,7 @@ const Sr = (t, r) => {
|
|
|
2907
2909
|
borderBottom: "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
2908
2910
|
},
|
|
2909
2911
|
children: [
|
|
2910
|
-
/* @__PURE__ */
|
|
2912
|
+
/* @__PURE__ */ h(D, { fontSize: "sm", fontWeight: "semibold", color: "gray-700", children: [
|
|
2911
2913
|
"Filter ",
|
|
2912
2914
|
r
|
|
2913
2915
|
] }),
|
|
@@ -2942,7 +2944,7 @@ const Sr = (t, r) => {
|
|
|
2942
2944
|
placeholder: `Search ${r.toLowerCase()}...`,
|
|
2943
2945
|
leftIcon: /* @__PURE__ */ e(w, { name: "Search", size: "sm" }),
|
|
2944
2946
|
value: a,
|
|
2945
|
-
onChange: (C) =>
|
|
2947
|
+
onChange: (C) => u(C.target.value),
|
|
2946
2948
|
style: { fontSize: "14px" }
|
|
2947
2949
|
}
|
|
2948
2950
|
)
|
|
@@ -2958,7 +2960,7 @@ const Sr = (t, r) => {
|
|
|
2958
2960
|
paddingLeft: "8px",
|
|
2959
2961
|
paddingRight: "8px"
|
|
2960
2962
|
},
|
|
2961
|
-
children: t.isLoadingOptions ? /* @__PURE__ */
|
|
2963
|
+
children: t.isLoadingOptions ? /* @__PURE__ */ h(
|
|
2962
2964
|
f,
|
|
2963
2965
|
{
|
|
2964
2966
|
style: {
|
|
@@ -2992,7 +2994,7 @@ const Sr = (t, r) => {
|
|
|
2992
2994
|
)
|
|
2993
2995
|
]
|
|
2994
2996
|
}
|
|
2995
|
-
) : p.length > 0 ? /* @__PURE__ */ e(f, { style: { gap: "2px", paddingTop: "4px", paddingBottom: "4px" }, children: p.map((C) => /* @__PURE__ */
|
|
2997
|
+
) : p.length > 0 ? /* @__PURE__ */ e(f, { style: { gap: "2px", paddingTop: "4px", paddingBottom: "4px" }, children: p.map((C) => /* @__PURE__ */ h(
|
|
2996
2998
|
f,
|
|
2997
2999
|
{
|
|
2998
3000
|
style: {
|
|
@@ -3039,7 +3041,7 @@ const Sr = (t, r) => {
|
|
|
3039
3041
|
]
|
|
3040
3042
|
},
|
|
3041
3043
|
C.value
|
|
3042
|
-
)) }) : /* @__PURE__ */
|
|
3044
|
+
)) }) : /* @__PURE__ */ h(
|
|
3043
3045
|
f,
|
|
3044
3046
|
{
|
|
3045
3047
|
style: {
|
|
@@ -3085,7 +3087,7 @@ const Sr = (t, r) => {
|
|
|
3085
3087
|
backgroundColor: "var(--sa-color-brand-50, #e6edf6)",
|
|
3086
3088
|
marginTop: "auto"
|
|
3087
3089
|
},
|
|
3088
|
-
children: /* @__PURE__ */
|
|
3090
|
+
children: /* @__PURE__ */ h(f, { style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "4px" }, children: [
|
|
3089
3091
|
/* @__PURE__ */ e(
|
|
3090
3092
|
f,
|
|
3091
3093
|
{
|
|
@@ -3100,7 +3102,7 @@ const Sr = (t, r) => {
|
|
|
3100
3102
|
children: m.length
|
|
3101
3103
|
}
|
|
3102
3104
|
),
|
|
3103
|
-
/* @__PURE__ */
|
|
3105
|
+
/* @__PURE__ */ h(D, { fontSize: "xs", color: "primary", fontWeight: "medium", children: [
|
|
3104
3106
|
"item",
|
|
3105
3107
|
m.length > 1 ? "s" : "",
|
|
3106
3108
|
" selected"
|
|
@@ -3116,7 +3118,7 @@ const Sr = (t, r) => {
|
|
|
3116
3118
|
direction: t
|
|
3117
3119
|
}) => {
|
|
3118
3120
|
const r = "var(--sa-text-primary, #292a2e)", i = "var(--sa-text-subtle, #8c8f97)";
|
|
3119
|
-
return /* @__PURE__ */
|
|
3121
|
+
return /* @__PURE__ */ h(
|
|
3120
3122
|
"span",
|
|
3121
3123
|
{
|
|
3122
3124
|
style: {
|
|
@@ -3152,7 +3154,7 @@ const Sr = (t, r) => {
|
|
|
3152
3154
|
]
|
|
3153
3155
|
}
|
|
3154
3156
|
);
|
|
3155
|
-
}, hi = ({ frozen: t }) => /* @__PURE__ */
|
|
3157
|
+
}, hi = ({ frozen: t }) => /* @__PURE__ */ h(
|
|
3156
3158
|
"svg",
|
|
3157
3159
|
{
|
|
3158
3160
|
width: "11",
|
|
@@ -3177,8 +3179,8 @@ const Sr = (t, r) => {
|
|
|
3177
3179
|
isLoading: l,
|
|
3178
3180
|
visibleHandleDelete: s,
|
|
3179
3181
|
visibleHandleUpdate: a,
|
|
3180
|
-
visibleHandleDetail:
|
|
3181
|
-
showHeadBorder:
|
|
3182
|
+
visibleHandleDetail: u,
|
|
3183
|
+
showHeadBorder: d = !1,
|
|
3182
3184
|
scrollParentRef: g,
|
|
3183
3185
|
frozenCount: m = 0,
|
|
3184
3186
|
onFrozenCountChange: p,
|
|
@@ -3199,7 +3201,7 @@ const Sr = (t, r) => {
|
|
|
3199
3201
|
), U = K ? W ?? null : ce, se = (x) => {
|
|
3200
3202
|
if (x.sortKey) return x.sortKey;
|
|
3201
3203
|
if (typeof x.accessor == "string") return x.accessor;
|
|
3202
|
-
},
|
|
3204
|
+
}, te = (x) => {
|
|
3203
3205
|
const k = se(x);
|
|
3204
3206
|
if (!k) return;
|
|
3205
3207
|
let b;
|
|
@@ -3214,9 +3216,9 @@ const Sr = (t, r) => {
|
|
|
3214
3216
|
const x = g.current;
|
|
3215
3217
|
Oe(x.scrollHeight > x.clientHeight);
|
|
3216
3218
|
}, [r, g]);
|
|
3217
|
-
const Ae =
|
|
3219
|
+
const Ae = ee(null), [oe, Ne] = S([]), [He, Se] = S(
|
|
3218
3220
|
() => Z ?? {}
|
|
3219
|
-
), Fe =
|
|
3221
|
+
), Fe = ee(null);
|
|
3220
3222
|
lt(() => {
|
|
3221
3223
|
if (!m || !Ae.current) {
|
|
3222
3224
|
Ne([]);
|
|
@@ -3245,7 +3247,7 @@ const Sr = (t, r) => {
|
|
|
3245
3247
|
if (!b) return;
|
|
3246
3248
|
const B = Math.round(b.getBoundingClientRect().width);
|
|
3247
3249
|
Fe.current = { colIndex: k, startX: x.clientX, startWidth: B };
|
|
3248
|
-
const I = document.body.style.userSelect,
|
|
3250
|
+
const I = document.body.style.userSelect, le = document.body.style.cursor;
|
|
3249
3251
|
document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
|
|
3250
3252
|
const ye = (xe) => {
|
|
3251
3253
|
var Ee;
|
|
@@ -3256,11 +3258,11 @@ const Sr = (t, r) => {
|
|
|
3256
3258
|
(et) => et[pe.colIndex] === Ie ? et : { ...et, [pe.colIndex]: Ie }
|
|
3257
3259
|
);
|
|
3258
3260
|
}, be = () => {
|
|
3259
|
-
document.removeEventListener("mousemove", ye), document.removeEventListener("mouseup", be), document.body.style.userSelect = I, document.body.style.cursor =
|
|
3261
|
+
document.removeEventListener("mousemove", ye), document.removeEventListener("mouseup", be), document.body.style.userSelect = I, document.body.style.cursor = le, Fe.current = null, j && Se((xe) => (j(xe), xe));
|
|
3260
3262
|
};
|
|
3261
3263
|
document.addEventListener("mousemove", ye), document.addEventListener("mouseup", be);
|
|
3262
3264
|
};
|
|
3263
|
-
return /* @__PURE__ */ e("div", { ref: Ae, children: /* @__PURE__ */
|
|
3265
|
+
return /* @__PURE__ */ e("div", { ref: Ae, children: /* @__PURE__ */ h(Vt, { fullWidth: !0, children: [
|
|
3264
3266
|
/* @__PURE__ */ e(
|
|
3265
3267
|
rr,
|
|
3266
3268
|
{
|
|
@@ -3268,11 +3270,11 @@ const Sr = (t, r) => {
|
|
|
3268
3270
|
height: "40px",
|
|
3269
3271
|
whiteSpace: "nowrap"
|
|
3270
3272
|
},
|
|
3271
|
-
children: /* @__PURE__ */
|
|
3273
|
+
children: /* @__PURE__ */ h(Ve, { children: [
|
|
3272
3274
|
t.map((x, k) => {
|
|
3273
3275
|
var je, Ie;
|
|
3274
|
-
const b = m > 0 && k < m, B =
|
|
3275
|
-
return /* @__PURE__ */
|
|
3276
|
+
const b = m > 0 && k < m, B = oe[k] ?? 0, I = F(x), ye = k === t.length - 1 && V && R, be = se(x), xe = !!x.sortable && !!be, pe = xe && (U == null ? void 0 : U.key) === be ? U.direction : null;
|
|
3277
|
+
return /* @__PURE__ */ h(
|
|
3276
3278
|
xt,
|
|
3277
3279
|
{
|
|
3278
3280
|
style: {
|
|
@@ -3281,15 +3283,15 @@ const Sr = (t, r) => {
|
|
|
3281
3283
|
left: b ? B : void 0,
|
|
3282
3284
|
zIndex: b ? 4 : 2,
|
|
3283
3285
|
paddingLeft: k === 0 ? "12px" : "",
|
|
3284
|
-
borderRight:
|
|
3285
|
-
borderBottom:
|
|
3286
|
-
boxShadow:
|
|
3286
|
+
borderRight: d && !ye && !b ? X : void 0,
|
|
3287
|
+
borderBottom: d ? X : void 0,
|
|
3288
|
+
boxShadow: d && b ? he : void 0,
|
|
3287
3289
|
backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
|
|
3288
3290
|
textAlign: x.textAlign === "text-right" ? "right" : x.textAlign === "text-center" ? "center" : "left",
|
|
3289
3291
|
...y(k, x.width)
|
|
3290
3292
|
},
|
|
3291
3293
|
children: [
|
|
3292
|
-
/* @__PURE__ */
|
|
3294
|
+
/* @__PURE__ */ h(
|
|
3293
3295
|
"div",
|
|
3294
3296
|
{
|
|
3295
3297
|
style: {
|
|
@@ -3300,11 +3302,11 @@ const Sr = (t, r) => {
|
|
|
3300
3302
|
minWidth: 0
|
|
3301
3303
|
},
|
|
3302
3304
|
children: [
|
|
3303
|
-
xe ? /* @__PURE__ */
|
|
3305
|
+
xe ? /* @__PURE__ */ h(
|
|
3304
3306
|
"button",
|
|
3305
3307
|
{
|
|
3306
3308
|
type: "button",
|
|
3307
|
-
onClick: () =>
|
|
3309
|
+
onClick: () => te(x),
|
|
3308
3310
|
title: pe === "asc" ? "Sorted ascending — click to sort descending" : pe === "desc" ? "Sorted descending — click to clear" : "Click to sort ascending",
|
|
3309
3311
|
style: {
|
|
3310
3312
|
flex: 1,
|
|
@@ -3416,21 +3418,21 @@ const Sr = (t, r) => {
|
|
|
3416
3418
|
top: 0,
|
|
3417
3419
|
right: 0,
|
|
3418
3420
|
zIndex: 3,
|
|
3419
|
-
borderBottom:
|
|
3420
|
-
boxShadow:
|
|
3421
|
+
borderBottom: d ? X : void 0,
|
|
3422
|
+
boxShadow: d && R ? de : void 0
|
|
3421
3423
|
}
|
|
3422
3424
|
}
|
|
3423
3425
|
) : null
|
|
3424
3426
|
] })
|
|
3425
3427
|
}
|
|
3426
3428
|
),
|
|
3427
|
-
/* @__PURE__ */ e(ir, { children: l ? /* @__PURE__ */ e(Ve, { children: /* @__PURE__ */ e(ke, { colSpan: t.length + 1, children: /* @__PURE__ */
|
|
3429
|
+
/* @__PURE__ */ e(ir, { children: l ? /* @__PURE__ */ e(Ve, { children: /* @__PURE__ */ e(ke, { colSpan: t.length + 1, children: /* @__PURE__ */ h(f, { style: { gap: "16px" }, children: [
|
|
3428
3430
|
/* @__PURE__ */ e(Re, { variant: "list" }),
|
|
3429
3431
|
/* @__PURE__ */ e(Re, { variant: "list" }),
|
|
3430
3432
|
/* @__PURE__ */ e(Re, { variant: "list" }),
|
|
3431
3433
|
/* @__PURE__ */ e(Re, { variant: "list" }),
|
|
3432
3434
|
/* @__PURE__ */ e(Re, { variant: "list" })
|
|
3433
|
-
] }) }) }) : !(r != null && r.length) && C ? /* @__PURE__ */ e(Ve, { children: /* @__PURE__ */ e(ke, { colSpan: t.length + 1, children: C }) }) : r == null ? void 0 : r.map((x, k) => /* @__PURE__ */
|
|
3435
|
+
] }) }) }) : !(r != null && r.length) && C ? /* @__PURE__ */ e(Ve, { children: /* @__PURE__ */ e(ke, { colSpan: t.length + 1, children: C }) }) : r == null ? void 0 : r.map((x, k) => /* @__PURE__ */ h(
|
|
3434
3436
|
Ve,
|
|
3435
3437
|
{
|
|
3436
3438
|
style: {
|
|
@@ -3452,16 +3454,16 @@ const Sr = (t, r) => {
|
|
|
3452
3454
|
},
|
|
3453
3455
|
children: [
|
|
3454
3456
|
t.map((b, B) => {
|
|
3455
|
-
const I = b.render ? b.render(x, k, r) : Te(x, b.accessor),
|
|
3457
|
+
const I = b.render ? b.render(x, k, r) : Te(x, b.accessor), le = m > 0 && B < m, ye = oe[B] ?? 0, be = He[B] !== void 0, xe = le && B === m - 1;
|
|
3456
3458
|
return /* @__PURE__ */ e(
|
|
3457
3459
|
ke,
|
|
3458
3460
|
{
|
|
3459
3461
|
style: {
|
|
3460
|
-
position:
|
|
3461
|
-
left:
|
|
3462
|
-
zIndex:
|
|
3463
|
-
backgroundColor:
|
|
3464
|
-
transition:
|
|
3462
|
+
position: le ? "sticky" : void 0,
|
|
3463
|
+
left: le ? ye : void 0,
|
|
3464
|
+
zIndex: le ? 1 : void 0,
|
|
3465
|
+
backgroundColor: le ? nt : void 0,
|
|
3466
|
+
transition: le ? "background-color 0.3s ease" : void 0,
|
|
3465
3467
|
paddingLeft: B === 0 ? "12px" : "",
|
|
3466
3468
|
whiteSpace: "nowrap",
|
|
3467
3469
|
overflow: be ? "hidden" : void 0,
|
|
@@ -3497,7 +3499,7 @@ const Sr = (t, r) => {
|
|
|
3497
3499
|
transition: "background-color 0.3s ease"
|
|
3498
3500
|
}, children: /* @__PURE__ */ e(_, { direction: "row", align: "center", justify: "center", gap: "sm", children: L.map((b) => {
|
|
3499
3501
|
const B = k === r.length - 1 ? "top" : "bottom";
|
|
3500
|
-
return b === "detail" && i && (
|
|
3502
|
+
return b === "detail" && i && (u == null ? void 0 : u(x)) !== !1 ? /* @__PURE__ */ e(ue, { label: "Detail", position: B, children: /* @__PURE__ */ e(
|
|
3501
3503
|
H,
|
|
3502
3504
|
{
|
|
3503
3505
|
size: "xs",
|
|
@@ -3538,12 +3540,12 @@ const Sr = (t, r) => {
|
|
|
3538
3540
|
footerProps: o
|
|
3539
3541
|
}) => {
|
|
3540
3542
|
var m;
|
|
3541
|
-
const n =
|
|
3543
|
+
const n = ee(null), [l, s] = S(
|
|
3542
3544
|
(r == null ? void 0 : r.defaultFrozenCount) ?? 0
|
|
3543
|
-
), a = (i == null ? void 0 : i.show) ?? !0,
|
|
3544
|
-
typeof
|
|
3545
|
-
const g = (o == null ? void 0 : o.showFooter) ?? (
|
|
3546
|
-
return /* @__PURE__ */
|
|
3545
|
+
), a = (i == null ? void 0 : i.show) ?? !0, u = ee(null), d = (m = r == null ? void 0 : r.pagination) == null ? void 0 : m.totalData;
|
|
3546
|
+
typeof d == "number" && (u.current = d);
|
|
3547
|
+
const g = (o == null ? void 0 : o.showFooter) ?? (d === void 0 ? u.current !== 0 : d !== 0);
|
|
3548
|
+
return /* @__PURE__ */ h(oi, { ...t, children: [
|
|
3547
3549
|
a && /* @__PURE__ */ e(li, { ...i }),
|
|
3548
3550
|
/* @__PURE__ */ e(
|
|
3549
3551
|
f,
|
|
@@ -3579,7 +3581,7 @@ const Sr = (t, r) => {
|
|
|
3579
3581
|
] });
|
|
3580
3582
|
};
|
|
3581
3583
|
function gi(t) {
|
|
3582
|
-
return
|
|
3584
|
+
return ie(
|
|
3583
3585
|
t
|
|
3584
3586
|
);
|
|
3585
3587
|
}
|
|
@@ -3602,16 +3604,16 @@ const On = gi(fi), yt = ({
|
|
|
3602
3604
|
color: t.color || "gray-700",
|
|
3603
3605
|
children: t.children
|
|
3604
3606
|
}
|
|
3605
|
-
),
|
|
3607
|
+
), ve = (t) => /* @__PURE__ */ e(D, { color: "red-600", fontSize: "sm", children: t.message }), mi = ({
|
|
3606
3608
|
size: t = "md",
|
|
3607
3609
|
direction: r = "vertical",
|
|
3608
3610
|
requiredTitle: i = "(Required)",
|
|
3609
3611
|
fullWidth: o = !1,
|
|
3610
3612
|
...n
|
|
3611
3613
|
}) => {
|
|
3612
|
-
var a,
|
|
3614
|
+
var a, u, d;
|
|
3613
3615
|
const l = n.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
3614
|
-
return /* @__PURE__ */
|
|
3616
|
+
return /* @__PURE__ */ h(
|
|
3615
3617
|
f,
|
|
3616
3618
|
{
|
|
3617
3619
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -3622,7 +3624,7 @@ const On = gi(fi), yt = ({
|
|
|
3622
3624
|
O,
|
|
3623
3625
|
{
|
|
3624
3626
|
condition: !!n.inputProps.required,
|
|
3625
|
-
fallback: /* @__PURE__ */
|
|
3627
|
+
fallback: /* @__PURE__ */ h(
|
|
3626
3628
|
f,
|
|
3627
3629
|
{
|
|
3628
3630
|
direction: "column",
|
|
@@ -3634,21 +3636,21 @@ const On = gi(fi), yt = ({
|
|
|
3634
3636
|
]
|
|
3635
3637
|
}
|
|
3636
3638
|
),
|
|
3637
|
-
children: /* @__PURE__ */
|
|
3639
|
+
children: /* @__PURE__ */ h(
|
|
3638
3640
|
f,
|
|
3639
3641
|
{
|
|
3640
3642
|
direction: "column",
|
|
3641
3643
|
customMaxWidth: s,
|
|
3642
3644
|
fullWidth: o,
|
|
3643
3645
|
children: [
|
|
3644
|
-
/* @__PURE__ */
|
|
3646
|
+
/* @__PURE__ */ h(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
3645
3647
|
/* @__PURE__ */ e(N, { fontSize: t, children: n.title }),
|
|
3646
3648
|
/* @__PURE__ */ e(N, { color: "error", fontSize: t, children: i }),
|
|
3647
3649
|
/* @__PURE__ */ e(O, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
3648
3650
|
ue,
|
|
3649
3651
|
{
|
|
3650
|
-
label: (
|
|
3651
|
-
arrowPosition: (
|
|
3652
|
+
label: (u = n.tooltip) == null ? void 0 : u.label,
|
|
3653
|
+
arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
|
|
3652
3654
|
...n.tooltip,
|
|
3653
3655
|
children: /* @__PURE__ */ e(
|
|
3654
3656
|
w,
|
|
@@ -3670,7 +3672,7 @@ const On = gi(fi), yt = ({
|
|
|
3670
3672
|
)
|
|
3671
3673
|
}
|
|
3672
3674
|
),
|
|
3673
|
-
/* @__PURE__ */
|
|
3675
|
+
/* @__PURE__ */ h(f, { gap: "xs", fullWidth: n.inputProps.fullWidth || !1, children: [
|
|
3674
3676
|
/* @__PURE__ */ e(
|
|
3675
3677
|
ht,
|
|
3676
3678
|
{
|
|
@@ -3681,7 +3683,7 @@ const On = gi(fi), yt = ({
|
|
|
3681
3683
|
fullWidth: !0
|
|
3682
3684
|
}
|
|
3683
3685
|
),
|
|
3684
|
-
!l && n.errorMessage && /* @__PURE__ */ e(
|
|
3686
|
+
!l && n.errorMessage && /* @__PURE__ */ e(ve, { message: n.errorMessage }),
|
|
3685
3687
|
n.inputProps.extended && n.inputProps.extended
|
|
3686
3688
|
] })
|
|
3687
3689
|
]
|
|
@@ -3694,9 +3696,9 @@ const On = gi(fi), yt = ({
|
|
|
3694
3696
|
fullWidth: o = !1,
|
|
3695
3697
|
...n
|
|
3696
3698
|
}) => {
|
|
3697
|
-
var a,
|
|
3699
|
+
var a, u, d;
|
|
3698
3700
|
const l = n.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
3699
|
-
return /* @__PURE__ */
|
|
3701
|
+
return /* @__PURE__ */ h(
|
|
3700
3702
|
f,
|
|
3701
3703
|
{
|
|
3702
3704
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -3707,7 +3709,7 @@ const On = gi(fi), yt = ({
|
|
|
3707
3709
|
O,
|
|
3708
3710
|
{
|
|
3709
3711
|
condition: !!n.inputProps.required,
|
|
3710
|
-
fallback: /* @__PURE__ */
|
|
3712
|
+
fallback: /* @__PURE__ */ h(
|
|
3711
3713
|
f,
|
|
3712
3714
|
{
|
|
3713
3715
|
direction: "column",
|
|
@@ -3719,21 +3721,21 @@ const On = gi(fi), yt = ({
|
|
|
3719
3721
|
]
|
|
3720
3722
|
}
|
|
3721
3723
|
),
|
|
3722
|
-
children: /* @__PURE__ */
|
|
3724
|
+
children: /* @__PURE__ */ h(
|
|
3723
3725
|
f,
|
|
3724
3726
|
{
|
|
3725
3727
|
direction: "column",
|
|
3726
3728
|
customMaxWidth: s,
|
|
3727
3729
|
fullWidth: o,
|
|
3728
3730
|
children: [
|
|
3729
|
-
/* @__PURE__ */
|
|
3731
|
+
/* @__PURE__ */ h(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
3730
3732
|
/* @__PURE__ */ e(N, { fontSize: t, children: n.title }),
|
|
3731
3733
|
/* @__PURE__ */ e(N, { color: "error", fontSize: t, children: i }),
|
|
3732
3734
|
/* @__PURE__ */ e(O, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
3733
3735
|
ue,
|
|
3734
3736
|
{
|
|
3735
|
-
label: (
|
|
3736
|
-
arrowPosition: (
|
|
3737
|
+
label: (u = n.tooltip) == null ? void 0 : u.label,
|
|
3738
|
+
arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
|
|
3737
3739
|
...n.tooltip,
|
|
3738
3740
|
children: /* @__PURE__ */ e(
|
|
3739
3741
|
w,
|
|
@@ -3755,7 +3757,7 @@ const On = gi(fi), yt = ({
|
|
|
3755
3757
|
)
|
|
3756
3758
|
}
|
|
3757
3759
|
),
|
|
3758
|
-
/* @__PURE__ */
|
|
3760
|
+
/* @__PURE__ */ h(f, { gap: "xs", fullWidth: n.inputProps.fullWidth || !1, children: [
|
|
3759
3761
|
/* @__PURE__ */ e(
|
|
3760
3762
|
f,
|
|
3761
3763
|
{
|
|
@@ -3772,7 +3774,7 @@ const On = gi(fi), yt = ({
|
|
|
3772
3774
|
)
|
|
3773
3775
|
}
|
|
3774
3776
|
),
|
|
3775
|
-
!l && n.errorMessage && /* @__PURE__ */ e(
|
|
3777
|
+
!l && n.errorMessage && /* @__PURE__ */ e(ve, { message: n.errorMessage }),
|
|
3776
3778
|
n.inputProps.extended && n.inputProps.extended
|
|
3777
3779
|
] })
|
|
3778
3780
|
]
|
|
@@ -3780,16 +3782,16 @@ const On = gi(fi), yt = ({
|
|
|
3780
3782
|
);
|
|
3781
3783
|
}, pi = (t, r) => typeof t == "string" && t || r === "error" ? "var(--sa-text-error, #a4133c)" : "var(--sa-text-disable, #181a198f)", xi = (t) => {
|
|
3782
3784
|
var a;
|
|
3783
|
-
const [r, i] = S(!1), o = (
|
|
3784
|
-
|
|
3785
|
-
}, n = (
|
|
3786
|
-
|
|
3787
|
-
}, l = (
|
|
3788
|
-
|
|
3789
|
-
}, s = (
|
|
3790
|
-
|
|
3785
|
+
const [r, i] = S(!1), o = (u) => {
|
|
3786
|
+
u.preventDefault(), u.stopPropagation();
|
|
3787
|
+
}, n = (u) => {
|
|
3788
|
+
u.preventDefault(), u.stopPropagation(), u.dataTransfer && t.handleOnFileChange(u.dataTransfer.files.item(0));
|
|
3789
|
+
}, l = (u) => {
|
|
3790
|
+
u.preventDefault(), i(!0);
|
|
3791
|
+
}, s = (u) => {
|
|
3792
|
+
u.preventDefault(), i(!1);
|
|
3791
3793
|
};
|
|
3792
|
-
return /* @__PURE__ */
|
|
3794
|
+
return /* @__PURE__ */ h(
|
|
3793
3795
|
f,
|
|
3794
3796
|
{
|
|
3795
3797
|
width: "width-full",
|
|
@@ -3819,8 +3821,8 @@ const On = gi(fi), yt = ({
|
|
|
3819
3821
|
}
|
|
3820
3822
|
}
|
|
3821
3823
|
),
|
|
3822
|
-
/* @__PURE__ */
|
|
3823
|
-
/* @__PURE__ */
|
|
3824
|
+
/* @__PURE__ */ h(_, { gap: "xs", children: [
|
|
3825
|
+
/* @__PURE__ */ h(_, { direction: "row", gap: "xs", children: [
|
|
3824
3826
|
/* @__PURE__ */ e(
|
|
3825
3827
|
D,
|
|
3826
3828
|
{
|
|
@@ -3841,7 +3843,7 @@ const On = gi(fi), yt = ({
|
|
|
3841
3843
|
}
|
|
3842
3844
|
)
|
|
3843
3845
|
] }),
|
|
3844
|
-
/* @__PURE__ */ e(D, { fontSize: "sm", color: "gray-500", children: (a = t.fileSupports) == null ? void 0 : a.map((
|
|
3846
|
+
/* @__PURE__ */ e(D, { fontSize: "sm", color: "gray-500", children: (a = t.fileSupports) == null ? void 0 : a.map((u) => u.toLocaleUpperCase()).join(", ") })
|
|
3845
3847
|
] })
|
|
3846
3848
|
]
|
|
3847
3849
|
}
|
|
@@ -4019,7 +4021,7 @@ function Si(t) {
|
|
|
4019
4021
|
}
|
|
4020
4022
|
const Fi = (t) => {
|
|
4021
4023
|
var r, i;
|
|
4022
|
-
return /* @__PURE__ */
|
|
4024
|
+
return /* @__PURE__ */ h(
|
|
4023
4025
|
f,
|
|
4024
4026
|
{
|
|
4025
4027
|
width: "width-full",
|
|
@@ -4038,7 +4040,7 @@ const Fi = (t) => {
|
|
|
4038
4040
|
cursor: "pointer"
|
|
4039
4041
|
},
|
|
4040
4042
|
children: [
|
|
4041
|
-
/* @__PURE__ */
|
|
4043
|
+
/* @__PURE__ */ h(_, { direction: "row", align: "center", gap: "sm", children: [
|
|
4042
4044
|
/* @__PURE__ */ e(
|
|
4043
4045
|
w,
|
|
4044
4046
|
{
|
|
@@ -4051,7 +4053,7 @@ const Fi = (t) => {
|
|
|
4051
4053
|
}
|
|
4052
4054
|
}
|
|
4053
4055
|
),
|
|
4054
|
-
/* @__PURE__ */
|
|
4056
|
+
/* @__PURE__ */ h(_, { children: [
|
|
4055
4057
|
/* @__PURE__ */ e(
|
|
4056
4058
|
D,
|
|
4057
4059
|
{
|
|
@@ -4065,7 +4067,7 @@ const Fi = (t) => {
|
|
|
4065
4067
|
children: Si(t.defaultUrl || "") || ((r = t.fileSelected) == null ? void 0 : r.name)
|
|
4066
4068
|
}
|
|
4067
4069
|
),
|
|
4068
|
-
!t.defaultUrl && /* @__PURE__ */
|
|
4070
|
+
!t.defaultUrl && /* @__PURE__ */ h(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4069
4071
|
/* @__PURE__ */ e(D, { fontSize: "sm", fontWeight: "medium", children: `${ki(
|
|
4070
4072
|
((i = t.fileSelected) == null ? void 0 : i.size.toString()) || "100000"
|
|
4071
4073
|
)}` }),
|
|
@@ -4109,14 +4111,14 @@ const Fi = (t) => {
|
|
|
4109
4111
|
);
|
|
4110
4112
|
}, Ei = ({ status: t = "default", ...r }) => {
|
|
4111
4113
|
var l;
|
|
4112
|
-
const i =
|
|
4114
|
+
const i = ee(null), o = () => {
|
|
4113
4115
|
if (r.defaultUrl) {
|
|
4114
4116
|
window.open(r.defaultUrl);
|
|
4115
4117
|
return;
|
|
4116
4118
|
}
|
|
4117
4119
|
i.current && i.current.click();
|
|
4118
|
-
}, n =
|
|
4119
|
-
return /* @__PURE__ */
|
|
4120
|
+
}, n = re("md");
|
|
4121
|
+
return /* @__PURE__ */ h(G, { children: [
|
|
4120
4122
|
/* @__PURE__ */ e(
|
|
4121
4123
|
"input",
|
|
4122
4124
|
{
|
|
@@ -4130,7 +4132,7 @@ const Fi = (t) => {
|
|
|
4130
4132
|
accept: (l = r.fileSupportOption) == null ? void 0 : l.map((s) => "." + (s == null ? void 0 : s.toLowerCase())).join(", ")
|
|
4131
4133
|
}
|
|
4132
4134
|
),
|
|
4133
|
-
/* @__PURE__ */
|
|
4135
|
+
/* @__PURE__ */ h(
|
|
4134
4136
|
f,
|
|
4135
4137
|
{
|
|
4136
4138
|
fullWidth: !0,
|
|
@@ -4176,9 +4178,9 @@ const Fi = (t) => {
|
|
|
4176
4178
|
fullWidth: o = !1,
|
|
4177
4179
|
...n
|
|
4178
4180
|
}) => {
|
|
4179
|
-
var a,
|
|
4181
|
+
var a, u, d;
|
|
4180
4182
|
const l = n.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
4181
|
-
return /* @__PURE__ */
|
|
4183
|
+
return /* @__PURE__ */ h(
|
|
4182
4184
|
f,
|
|
4183
4185
|
{
|
|
4184
4186
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -4189,7 +4191,7 @@ const Fi = (t) => {
|
|
|
4189
4191
|
O,
|
|
4190
4192
|
{
|
|
4191
4193
|
condition: !!n.inputProps.required,
|
|
4192
|
-
fallback: /* @__PURE__ */
|
|
4194
|
+
fallback: /* @__PURE__ */ h(
|
|
4193
4195
|
f,
|
|
4194
4196
|
{
|
|
4195
4197
|
direction: "column",
|
|
@@ -4201,21 +4203,21 @@ const Fi = (t) => {
|
|
|
4201
4203
|
]
|
|
4202
4204
|
}
|
|
4203
4205
|
),
|
|
4204
|
-
children: /* @__PURE__ */
|
|
4206
|
+
children: /* @__PURE__ */ h(
|
|
4205
4207
|
f,
|
|
4206
4208
|
{
|
|
4207
4209
|
direction: "column",
|
|
4208
4210
|
customMaxWidth: s,
|
|
4209
4211
|
fullWidth: o,
|
|
4210
4212
|
children: [
|
|
4211
|
-
/* @__PURE__ */
|
|
4213
|
+
/* @__PURE__ */ h(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4212
4214
|
/* @__PURE__ */ e(N, { fontSize: t, children: n.title }),
|
|
4213
4215
|
/* @__PURE__ */ e(N, { color: "error", fontSize: t, children: i }),
|
|
4214
4216
|
/* @__PURE__ */ e(O, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
4215
4217
|
ue,
|
|
4216
4218
|
{
|
|
4217
|
-
label: (
|
|
4218
|
-
arrowPosition: (
|
|
4219
|
+
label: (u = n.tooltip) == null ? void 0 : u.label,
|
|
4220
|
+
arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
|
|
4219
4221
|
...n.tooltip,
|
|
4220
4222
|
children: /* @__PURE__ */ e(
|
|
4221
4223
|
w,
|
|
@@ -4237,7 +4239,7 @@ const Fi = (t) => {
|
|
|
4237
4239
|
)
|
|
4238
4240
|
}
|
|
4239
4241
|
),
|
|
4240
|
-
/* @__PURE__ */
|
|
4242
|
+
/* @__PURE__ */ h(_, { gap: "xs", children: [
|
|
4241
4243
|
/* @__PURE__ */ e(
|
|
4242
4244
|
Ei,
|
|
4243
4245
|
{
|
|
@@ -4245,7 +4247,7 @@ const Fi = (t) => {
|
|
|
4245
4247
|
status: n.errorMessage ? "error" : "default"
|
|
4246
4248
|
}
|
|
4247
4249
|
),
|
|
4248
|
-
!l && n.errorMessage && /* @__PURE__ */ e(
|
|
4250
|
+
!l && n.errorMessage && /* @__PURE__ */ e(ve, { message: n.errorMessage })
|
|
4249
4251
|
] })
|
|
4250
4252
|
]
|
|
4251
4253
|
}
|
|
@@ -4258,9 +4260,9 @@ const Fi = (t) => {
|
|
|
4258
4260
|
required: n = !1,
|
|
4259
4261
|
...l
|
|
4260
4262
|
}) => {
|
|
4261
|
-
var
|
|
4263
|
+
var u, d, g, m;
|
|
4262
4264
|
const s = l.hideMessageError || !1, a = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
4263
|
-
return /* @__PURE__ */
|
|
4265
|
+
return /* @__PURE__ */ h(
|
|
4264
4266
|
f,
|
|
4265
4267
|
{
|
|
4266
4268
|
gap: r === "horizontal" || r === "horizontal-inline" ? "spacing-96" : "sm",
|
|
@@ -4271,7 +4273,7 @@ const Fi = (t) => {
|
|
|
4271
4273
|
O,
|
|
4272
4274
|
{
|
|
4273
4275
|
condition: !!n,
|
|
4274
|
-
fallback: /* @__PURE__ */
|
|
4276
|
+
fallback: /* @__PURE__ */ h(
|
|
4275
4277
|
f,
|
|
4276
4278
|
{
|
|
4277
4279
|
direction: "column",
|
|
@@ -4283,20 +4285,20 @@ const Fi = (t) => {
|
|
|
4283
4285
|
]
|
|
4284
4286
|
}
|
|
4285
4287
|
),
|
|
4286
|
-
children: /* @__PURE__ */
|
|
4288
|
+
children: /* @__PURE__ */ h(
|
|
4287
4289
|
f,
|
|
4288
4290
|
{
|
|
4289
4291
|
direction: "column",
|
|
4290
4292
|
customMaxWidth: a,
|
|
4291
4293
|
fullWidth: o,
|
|
4292
4294
|
children: [
|
|
4293
|
-
/* @__PURE__ */
|
|
4295
|
+
/* @__PURE__ */ h(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4294
4296
|
/* @__PURE__ */ e(N, { fontSize: t, children: l.title }),
|
|
4295
4297
|
/* @__PURE__ */ e(N, { color: "error", fontSize: t, children: i }),
|
|
4296
|
-
/* @__PURE__ */ e(O, { condition: !!((
|
|
4298
|
+
/* @__PURE__ */ e(O, { condition: !!((u = l.tooltip) != null && u.label), children: /* @__PURE__ */ e(
|
|
4297
4299
|
ue,
|
|
4298
4300
|
{
|
|
4299
|
-
label: (
|
|
4301
|
+
label: (d = l.tooltip) == null ? void 0 : d.label,
|
|
4300
4302
|
arrowPosition: (g = l.tooltip) == null ? void 0 : g.arrowPosition,
|
|
4301
4303
|
...l.tooltip,
|
|
4302
4304
|
children: /* @__PURE__ */ e(
|
|
@@ -4332,7 +4334,7 @@ const Fi = (t) => {
|
|
|
4332
4334
|
...p,
|
|
4333
4335
|
isChecked: l.checkBoxesAreChecked.includes(p.id)
|
|
4334
4336
|
})),
|
|
4335
|
-
render: (p) => p.renderBadge ? /* @__PURE__ */
|
|
4337
|
+
render: (p) => p.renderBadge ? /* @__PURE__ */ h(
|
|
4336
4338
|
f,
|
|
4337
4339
|
{
|
|
4338
4340
|
direction: "row",
|
|
@@ -4369,7 +4371,7 @@ const Fi = (t) => {
|
|
|
4369
4371
|
)
|
|
4370
4372
|
}
|
|
4371
4373
|
),
|
|
4372
|
-
!s && l.errorMessage && /* @__PURE__ */ e(
|
|
4374
|
+
!s && l.errorMessage && /* @__PURE__ */ e(ve, { message: l.errorMessage })
|
|
4373
4375
|
]
|
|
4374
4376
|
}
|
|
4375
4377
|
);
|
|
@@ -4381,13 +4383,13 @@ const Fi = (t) => {
|
|
|
4381
4383
|
}) => {
|
|
4382
4384
|
var l;
|
|
4383
4385
|
const n = t === "horizontal-inline" || t === "horizontal-block" ? r === "sm" ? 342 : r === "lg" ? 400 : 342 : void 0;
|
|
4384
|
-
return /* @__PURE__ */
|
|
4386
|
+
return /* @__PURE__ */ h(
|
|
4385
4387
|
f,
|
|
4386
4388
|
{
|
|
4387
4389
|
gap: t === "horizontal-inline" || t === "horizontal-block" ? "spacing-96" : "sm",
|
|
4388
4390
|
direction: t === "horizontal-inline" || t === "horizontal-block" ? "row" : "column",
|
|
4389
4391
|
children: [
|
|
4390
|
-
/* @__PURE__ */ e(O, { condition: !!o.description || !!o.title, children: /* @__PURE__ */
|
|
4392
|
+
/* @__PURE__ */ e(O, { condition: !!o.description || !!o.title, children: /* @__PURE__ */ h(
|
|
4391
4393
|
f,
|
|
4392
4394
|
{
|
|
4393
4395
|
direction: "column",
|
|
@@ -4413,7 +4415,7 @@ const Fi = (t) => {
|
|
|
4413
4415
|
...s,
|
|
4414
4416
|
isChecked: o.radioIsChecked === s.id
|
|
4415
4417
|
})),
|
|
4416
|
-
render: ({ value: s, id: a, isChecked:
|
|
4418
|
+
render: ({ value: s, id: a, isChecked: u, subInput: d, label: g, description: m }) => /* @__PURE__ */ h(f, { gap: "xs", customMaxWidth: n, children: [
|
|
4417
4419
|
/* @__PURE__ */ e(
|
|
4418
4420
|
cr,
|
|
4419
4421
|
{
|
|
@@ -4421,7 +4423,7 @@ const Fi = (t) => {
|
|
|
4421
4423
|
name: o.groupName || g,
|
|
4422
4424
|
label: g,
|
|
4423
4425
|
value: s,
|
|
4424
|
-
checked:
|
|
4426
|
+
checked: u,
|
|
4425
4427
|
onChange: (p) => o.onChecked({
|
|
4426
4428
|
id: a,
|
|
4427
4429
|
label: p.target.name,
|
|
@@ -4441,13 +4443,13 @@ const Fi = (t) => {
|
|
|
4441
4443
|
children: m
|
|
4442
4444
|
}
|
|
4443
4445
|
),
|
|
4444
|
-
|
|
4446
|
+
d
|
|
4445
4447
|
] })
|
|
4446
4448
|
}
|
|
4447
4449
|
)
|
|
4448
4450
|
}
|
|
4449
4451
|
),
|
|
4450
|
-
o.errorMessage && /* @__PURE__ */ e(
|
|
4452
|
+
o.errorMessage && /* @__PURE__ */ e(ve, { message: o.errorMessage })
|
|
4451
4453
|
]
|
|
4452
4454
|
}
|
|
4453
4455
|
);
|
|
@@ -4458,9 +4460,9 @@ const Fi = (t) => {
|
|
|
4458
4460
|
fullWidth: o = !1,
|
|
4459
4461
|
...n
|
|
4460
4462
|
}) => {
|
|
4461
|
-
var a,
|
|
4463
|
+
var a, u, d;
|
|
4462
4464
|
const l = n.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
4463
|
-
return /* @__PURE__ */
|
|
4465
|
+
return /* @__PURE__ */ h(
|
|
4464
4466
|
f,
|
|
4465
4467
|
{
|
|
4466
4468
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -4471,7 +4473,7 @@ const Fi = (t) => {
|
|
|
4471
4473
|
O,
|
|
4472
4474
|
{
|
|
4473
4475
|
condition: !!n.inputProps.required,
|
|
4474
|
-
fallback: /* @__PURE__ */
|
|
4476
|
+
fallback: /* @__PURE__ */ h(
|
|
4475
4477
|
f,
|
|
4476
4478
|
{
|
|
4477
4479
|
direction: "column",
|
|
@@ -4483,21 +4485,21 @@ const Fi = (t) => {
|
|
|
4483
4485
|
]
|
|
4484
4486
|
}
|
|
4485
4487
|
),
|
|
4486
|
-
children: /* @__PURE__ */
|
|
4488
|
+
children: /* @__PURE__ */ h(
|
|
4487
4489
|
f,
|
|
4488
4490
|
{
|
|
4489
4491
|
direction: "column",
|
|
4490
4492
|
customMaxWidth: s,
|
|
4491
4493
|
fullWidth: o,
|
|
4492
4494
|
children: [
|
|
4493
|
-
/* @__PURE__ */
|
|
4495
|
+
/* @__PURE__ */ h(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4494
4496
|
/* @__PURE__ */ e(N, { fontSize: t, children: n.title }),
|
|
4495
4497
|
/* @__PURE__ */ e(N, { color: "error", fontSize: t, children: i }),
|
|
4496
4498
|
/* @__PURE__ */ e(O, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
4497
4499
|
ue,
|
|
4498
4500
|
{
|
|
4499
|
-
label: (
|
|
4500
|
-
arrowPosition: (
|
|
4501
|
+
label: (u = n.tooltip) == null ? void 0 : u.label,
|
|
4502
|
+
arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
|
|
4501
4503
|
...n.tooltip,
|
|
4502
4504
|
children: /* @__PURE__ */ e(
|
|
4503
4505
|
w,
|
|
@@ -4519,7 +4521,7 @@ const Fi = (t) => {
|
|
|
4519
4521
|
)
|
|
4520
4522
|
}
|
|
4521
4523
|
),
|
|
4522
|
-
/* @__PURE__ */
|
|
4524
|
+
/* @__PURE__ */ h(_, { gap: "xs", children: [
|
|
4523
4525
|
/* @__PURE__ */ e(
|
|
4524
4526
|
nr,
|
|
4525
4527
|
{
|
|
@@ -4529,7 +4531,7 @@ const Fi = (t) => {
|
|
|
4529
4531
|
status: n.errorMessage ? "error" : "default"
|
|
4530
4532
|
}
|
|
4531
4533
|
),
|
|
4532
|
-
!l && n.errorMessage && /* @__PURE__ */ e(
|
|
4534
|
+
!l && n.errorMessage && /* @__PURE__ */ e(ve, { message: n.errorMessage })
|
|
4533
4535
|
] })
|
|
4534
4536
|
]
|
|
4535
4537
|
}
|
|
@@ -4542,9 +4544,9 @@ const Fi = (t) => {
|
|
|
4542
4544
|
fullWidth: n = !1,
|
|
4543
4545
|
...l
|
|
4544
4546
|
}) => {
|
|
4545
|
-
var a,
|
|
4547
|
+
var a, u, d;
|
|
4546
4548
|
const s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
4547
|
-
return /* @__PURE__ */
|
|
4549
|
+
return /* @__PURE__ */ h(
|
|
4548
4550
|
f,
|
|
4549
4551
|
{
|
|
4550
4552
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -4555,7 +4557,7 @@ const Fi = (t) => {
|
|
|
4555
4557
|
O,
|
|
4556
4558
|
{
|
|
4557
4559
|
condition: o,
|
|
4558
|
-
fallback: /* @__PURE__ */
|
|
4560
|
+
fallback: /* @__PURE__ */ h(
|
|
4559
4561
|
f,
|
|
4560
4562
|
{
|
|
4561
4563
|
direction: "column",
|
|
@@ -4567,21 +4569,21 @@ const Fi = (t) => {
|
|
|
4567
4569
|
]
|
|
4568
4570
|
}
|
|
4569
4571
|
),
|
|
4570
|
-
children: /* @__PURE__ */
|
|
4572
|
+
children: /* @__PURE__ */ h(
|
|
4571
4573
|
f,
|
|
4572
4574
|
{
|
|
4573
4575
|
direction: "column",
|
|
4574
4576
|
customMaxWidth: s,
|
|
4575
4577
|
fullWidth: n,
|
|
4576
4578
|
children: [
|
|
4577
|
-
/* @__PURE__ */
|
|
4579
|
+
/* @__PURE__ */ h(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4578
4580
|
/* @__PURE__ */ e(N, { fontSize: t, children: l.title }),
|
|
4579
4581
|
/* @__PURE__ */ e(N, { color: "error", fontSize: t, children: i }),
|
|
4580
4582
|
/* @__PURE__ */ e(O, { condition: !!((a = l.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
4581
4583
|
ue,
|
|
4582
4584
|
{
|
|
4583
|
-
label: (
|
|
4584
|
-
arrowPosition: (
|
|
4585
|
+
label: (u = l.tooltip) == null ? void 0 : u.label,
|
|
4586
|
+
arrowPosition: (d = l.tooltip) == null ? void 0 : d.arrowPosition,
|
|
4585
4587
|
...l.tooltip,
|
|
4586
4588
|
children: /* @__PURE__ */ e(
|
|
4587
4589
|
w,
|
|
@@ -4612,7 +4614,7 @@ const Fi = (t) => {
|
|
|
4612
4614
|
description: l.description
|
|
4613
4615
|
}
|
|
4614
4616
|
),
|
|
4615
|
-
l.errorMessage && /* @__PURE__ */ e(
|
|
4617
|
+
l.errorMessage && /* @__PURE__ */ e(ve, { message: l.errorMessage })
|
|
4616
4618
|
]
|
|
4617
4619
|
}
|
|
4618
4620
|
);
|
|
@@ -4622,16 +4624,16 @@ const Fi = (t) => {
|
|
|
4622
4624
|
...i
|
|
4623
4625
|
}) => {
|
|
4624
4626
|
const o = lr(), n = (s) => {
|
|
4625
|
-
var
|
|
4627
|
+
var u, d, g, m, p, v;
|
|
4626
4628
|
if (!s) return;
|
|
4627
|
-
const a = i.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (
|
|
4629
|
+
const a = i.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (d = (u = o == null ? void 0 : o.computed) == null ? void 0 : u.red) == null ? void 0 : d[600] : t === "secondary-primary" ? (m = (g = o == null ? void 0 : o.computed) == null ? void 0 : g.blue) == null ? void 0 : m[700] : (v = (p = o == null ? void 0 : o.computed) == null ? void 0 : p.gray) == null ? void 0 : v[50];
|
|
4628
4630
|
return /* @__PURE__ */ e(w, { name: s, size: r, style: { color: a } });
|
|
4629
4631
|
}, l = () => {
|
|
4630
|
-
var a,
|
|
4632
|
+
var a, u, d, g;
|
|
4631
4633
|
if (t !== "secondary-danger" && t !== "secondary-primary")
|
|
4632
4634
|
return i.title;
|
|
4633
4635
|
const s = {
|
|
4634
|
-
color: i.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary-danger" ? (
|
|
4636
|
+
color: i.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary-danger" ? (u = (a = o == null ? void 0 : o.computed) == null ? void 0 : a.red) == null ? void 0 : u[600] : (g = (d = o == null ? void 0 : o.computed) == null ? void 0 : d.blue) == null ? void 0 : g[700]
|
|
4635
4637
|
};
|
|
4636
4638
|
switch (r) {
|
|
4637
4639
|
case "xs":
|
|
@@ -4676,9 +4678,9 @@ const Fi = (t) => {
|
|
|
4676
4678
|
fullWidth: o = !1,
|
|
4677
4679
|
...n
|
|
4678
4680
|
}) => {
|
|
4679
|
-
var a,
|
|
4681
|
+
var a, u, d;
|
|
4680
4682
|
const l = n.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
4681
|
-
return /* @__PURE__ */
|
|
4683
|
+
return /* @__PURE__ */ h(
|
|
4682
4684
|
f,
|
|
4683
4685
|
{
|
|
4684
4686
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -4689,7 +4691,7 @@ const Fi = (t) => {
|
|
|
4689
4691
|
O,
|
|
4690
4692
|
{
|
|
4691
4693
|
condition: !!n.inputProps.required,
|
|
4692
|
-
fallback: /* @__PURE__ */
|
|
4694
|
+
fallback: /* @__PURE__ */ h(
|
|
4693
4695
|
f,
|
|
4694
4696
|
{
|
|
4695
4697
|
direction: "column",
|
|
@@ -4701,21 +4703,21 @@ const Fi = (t) => {
|
|
|
4701
4703
|
]
|
|
4702
4704
|
}
|
|
4703
4705
|
),
|
|
4704
|
-
children: /* @__PURE__ */
|
|
4706
|
+
children: /* @__PURE__ */ h(
|
|
4705
4707
|
f,
|
|
4706
4708
|
{
|
|
4707
4709
|
direction: "column",
|
|
4708
4710
|
customMaxWidth: s,
|
|
4709
4711
|
fullWidth: o,
|
|
4710
4712
|
children: [
|
|
4711
|
-
/* @__PURE__ */
|
|
4713
|
+
/* @__PURE__ */ h(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4712
4714
|
/* @__PURE__ */ e(N, { fontSize: t, children: n.title }),
|
|
4713
4715
|
/* @__PURE__ */ e(N, { color: "error", fontSize: t, children: i }),
|
|
4714
4716
|
/* @__PURE__ */ e(O, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
4715
4717
|
ue,
|
|
4716
4718
|
{
|
|
4717
|
-
label: (
|
|
4718
|
-
arrowPosition: (
|
|
4719
|
+
label: (u = n.tooltip) == null ? void 0 : u.label,
|
|
4720
|
+
arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
|
|
4719
4721
|
...n.tooltip,
|
|
4720
4722
|
children: /* @__PURE__ */ e(
|
|
4721
4723
|
w,
|
|
@@ -4737,7 +4739,7 @@ const Fi = (t) => {
|
|
|
4737
4739
|
)
|
|
4738
4740
|
}
|
|
4739
4741
|
),
|
|
4740
|
-
/* @__PURE__ */
|
|
4742
|
+
/* @__PURE__ */ h(_, { gap: "xs", children: [
|
|
4741
4743
|
/* @__PURE__ */ e(
|
|
4742
4744
|
f,
|
|
4743
4745
|
{
|
|
@@ -4754,7 +4756,7 @@ const Fi = (t) => {
|
|
|
4754
4756
|
)
|
|
4755
4757
|
}
|
|
4756
4758
|
),
|
|
4757
|
-
!l && n.errorMessage && /* @__PURE__ */ e(
|
|
4759
|
+
!l && n.errorMessage && /* @__PURE__ */ e(ve, { message: n.errorMessage })
|
|
4758
4760
|
] })
|
|
4759
4761
|
]
|
|
4760
4762
|
}
|
|
@@ -4782,8 +4784,8 @@ async function Vi(t, r) {
|
|
|
4782
4784
|
), new Promise((l, s) => {
|
|
4783
4785
|
o.toBlob((a) => {
|
|
4784
4786
|
if (!a) return s("Canvas is empty");
|
|
4785
|
-
const
|
|
4786
|
-
l(
|
|
4787
|
+
const u = new File([a], "cropped.png", { type: "image/png" });
|
|
4788
|
+
l(u);
|
|
4787
4789
|
}, "image/png");
|
|
4788
4790
|
});
|
|
4789
4791
|
}
|
|
@@ -4806,10 +4808,10 @@ const At = {
|
|
|
4806
4808
|
size: l = "96",
|
|
4807
4809
|
aspect: s = "1:1",
|
|
4808
4810
|
containerProps: a,
|
|
4809
|
-
maxFileSize:
|
|
4810
|
-
onError:
|
|
4811
|
+
maxFileSize: u = 2,
|
|
4812
|
+
onError: d
|
|
4811
4813
|
}, g) => {
|
|
4812
|
-
const m =
|
|
4814
|
+
const m = re("md"), [p, v] = S(!1), [L, C] = S(null), [T, Z] = S(!1), [j, Q] = S({ x: 0, y: 0 }), [W, fe] = S(1), [P, R] = S(null);
|
|
4813
4815
|
$(() => {
|
|
4814
4816
|
r === null && n(null);
|
|
4815
4817
|
}, [r]);
|
|
@@ -4830,17 +4832,17 @@ const At = {
|
|
|
4830
4832
|
if (!(!L || !P))
|
|
4831
4833
|
try {
|
|
4832
4834
|
const V = await Vi(L, P);
|
|
4833
|
-
if (
|
|
4834
|
-
|
|
4835
|
+
if (u && V.size > u * 1024 * 1024) {
|
|
4836
|
+
d == null || d(`Ukuran file maksimal ${u}MB`);
|
|
4835
4837
|
return;
|
|
4836
4838
|
}
|
|
4837
4839
|
t == null || t(V);
|
|
4838
4840
|
const z = URL.createObjectURL(V);
|
|
4839
4841
|
n(z, V), Z(!1);
|
|
4840
4842
|
} catch {
|
|
4841
|
-
|
|
4843
|
+
d == null || d("Gagal memproses gambar");
|
|
4842
4844
|
}
|
|
4843
|
-
}, U =
|
|
4845
|
+
}, U = ee(null), se = () => {
|
|
4844
4846
|
U.current && U.current.click();
|
|
4845
4847
|
};
|
|
4846
4848
|
sr(g, () => ({
|
|
@@ -4849,9 +4851,9 @@ const At = {
|
|
|
4849
4851
|
(V = U.current) == null || V.click();
|
|
4850
4852
|
}
|
|
4851
4853
|
}));
|
|
4852
|
-
const
|
|
4854
|
+
const te = parseInt(l, 10), ne = At[s];
|
|
4853
4855
|
let Y, J;
|
|
4854
|
-
return
|
|
4856
|
+
return ne >= 1 ? (J = te, Y = te * ne) : (Y = te, J = te / ne), /* @__PURE__ */ h(
|
|
4855
4857
|
f,
|
|
4856
4858
|
{
|
|
4857
4859
|
display: "flex",
|
|
@@ -4867,7 +4869,7 @@ const At = {
|
|
|
4867
4869
|
style: {
|
|
4868
4870
|
width: a != null && a.fullWidth ? "100%" : `${Y}px`,
|
|
4869
4871
|
height: a != null && a.fullWidth ? "auto" : `${J}px`,
|
|
4870
|
-
aspectRatio:
|
|
4872
|
+
aspectRatio: ne,
|
|
4871
4873
|
flexShrink: 0
|
|
4872
4874
|
},
|
|
4873
4875
|
onMouseEnter: () => v(!0),
|
|
@@ -4905,7 +4907,7 @@ const At = {
|
|
|
4905
4907
|
)
|
|
4906
4908
|
}
|
|
4907
4909
|
),
|
|
4908
|
-
/* @__PURE__ */
|
|
4910
|
+
/* @__PURE__ */ h(
|
|
4909
4911
|
f,
|
|
4910
4912
|
{
|
|
4911
4913
|
position: "absolute",
|
|
@@ -4932,7 +4934,7 @@ const At = {
|
|
|
4932
4934
|
style: { display: "none" }
|
|
4933
4935
|
}
|
|
4934
4936
|
),
|
|
4935
|
-
/* @__PURE__ */
|
|
4937
|
+
/* @__PURE__ */ h(f, { display: "flex", align: "center", gap: "spacing-2", direction: "row", children: [
|
|
4936
4938
|
/* @__PURE__ */ e(
|
|
4937
4939
|
w,
|
|
4938
4940
|
{
|
|
@@ -4994,7 +4996,7 @@ const At = {
|
|
|
4994
4996
|
backgroundColor: "rgba(0,0,0,0.6)"
|
|
4995
4997
|
},
|
|
4996
4998
|
onClick: () => Z(!1),
|
|
4997
|
-
children: /* @__PURE__ */
|
|
4999
|
+
children: /* @__PURE__ */ h(
|
|
4998
5000
|
"div",
|
|
4999
5001
|
{
|
|
5000
5002
|
style: {
|
|
@@ -5034,7 +5036,7 @@ const At = {
|
|
|
5034
5036
|
)
|
|
5035
5037
|
}
|
|
5036
5038
|
),
|
|
5037
|
-
/* @__PURE__ */
|
|
5039
|
+
/* @__PURE__ */ h(
|
|
5038
5040
|
"div",
|
|
5039
5041
|
{
|
|
5040
5042
|
style: {
|
|
@@ -5069,9 +5071,9 @@ const At = {
|
|
|
5069
5071
|
required: n = !1,
|
|
5070
5072
|
...l
|
|
5071
5073
|
}) => {
|
|
5072
|
-
var
|
|
5074
|
+
var u, d, g;
|
|
5073
5075
|
const s = l.hideMessageError || !1, a = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
5074
|
-
return /* @__PURE__ */
|
|
5076
|
+
return /* @__PURE__ */ h(
|
|
5075
5077
|
f,
|
|
5076
5078
|
{
|
|
5077
5079
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -5082,7 +5084,7 @@ const At = {
|
|
|
5082
5084
|
O,
|
|
5083
5085
|
{
|
|
5084
5086
|
condition: !!n,
|
|
5085
|
-
fallback: /* @__PURE__ */
|
|
5087
|
+
fallback: /* @__PURE__ */ h(
|
|
5086
5088
|
f,
|
|
5087
5089
|
{
|
|
5088
5090
|
direction: "column",
|
|
@@ -5094,20 +5096,20 @@ const At = {
|
|
|
5094
5096
|
]
|
|
5095
5097
|
}
|
|
5096
5098
|
),
|
|
5097
|
-
children: /* @__PURE__ */
|
|
5099
|
+
children: /* @__PURE__ */ h(
|
|
5098
5100
|
f,
|
|
5099
5101
|
{
|
|
5100
5102
|
direction: "column",
|
|
5101
5103
|
customMaxWidth: a,
|
|
5102
5104
|
fullWidth: o,
|
|
5103
5105
|
children: [
|
|
5104
|
-
/* @__PURE__ */
|
|
5106
|
+
/* @__PURE__ */ h(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
5105
5107
|
/* @__PURE__ */ e(N, { fontSize: t, children: l.title }),
|
|
5106
5108
|
/* @__PURE__ */ e(N, { color: "error", fontSize: t, children: i }),
|
|
5107
|
-
/* @__PURE__ */ e(O, { condition: !!((
|
|
5109
|
+
/* @__PURE__ */ e(O, { condition: !!((u = l.tooltip) != null && u.label), children: /* @__PURE__ */ e(
|
|
5108
5110
|
ue,
|
|
5109
5111
|
{
|
|
5110
|
-
label: (
|
|
5112
|
+
label: (d = l.tooltip) == null ? void 0 : d.label,
|
|
5111
5113
|
arrowPosition: (g = l.tooltip) == null ? void 0 : g.arrowPosition,
|
|
5112
5114
|
...l.tooltip,
|
|
5113
5115
|
children: /* @__PURE__ */ e(
|
|
@@ -5130,9 +5132,9 @@ const At = {
|
|
|
5130
5132
|
)
|
|
5131
5133
|
}
|
|
5132
5134
|
),
|
|
5133
|
-
/* @__PURE__ */
|
|
5135
|
+
/* @__PURE__ */ h(_, { gap: "xs", children: [
|
|
5134
5136
|
/* @__PURE__ */ e(zi, { ...l.inputProps }),
|
|
5135
|
-
!s && l.errorMessage && /* @__PURE__ */ e(
|
|
5137
|
+
!s && l.errorMessage && /* @__PURE__ */ e(ve, { message: l.errorMessage })
|
|
5136
5138
|
] })
|
|
5137
5139
|
]
|
|
5138
5140
|
}
|
|
@@ -5144,9 +5146,9 @@ const At = {
|
|
|
5144
5146
|
fullWidth: o = !1,
|
|
5145
5147
|
...n
|
|
5146
5148
|
}) => {
|
|
5147
|
-
var s, a,
|
|
5149
|
+
var s, a, u;
|
|
5148
5150
|
const l = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
5149
|
-
return /* @__PURE__ */
|
|
5151
|
+
return /* @__PURE__ */ h(
|
|
5150
5152
|
f,
|
|
5151
5153
|
{
|
|
5152
5154
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -5157,7 +5159,7 @@ const At = {
|
|
|
5157
5159
|
O,
|
|
5158
5160
|
{
|
|
5159
5161
|
condition: !!n.inputProps.required,
|
|
5160
|
-
fallback: /* @__PURE__ */
|
|
5162
|
+
fallback: /* @__PURE__ */ h(
|
|
5161
5163
|
f,
|
|
5162
5164
|
{
|
|
5163
5165
|
direction: "column",
|
|
@@ -5169,21 +5171,21 @@ const At = {
|
|
|
5169
5171
|
]
|
|
5170
5172
|
}
|
|
5171
5173
|
),
|
|
5172
|
-
children: /* @__PURE__ */
|
|
5174
|
+
children: /* @__PURE__ */ h(
|
|
5173
5175
|
f,
|
|
5174
5176
|
{
|
|
5175
5177
|
direction: "column",
|
|
5176
5178
|
customMaxWidth: l,
|
|
5177
5179
|
fullWidth: o,
|
|
5178
5180
|
children: [
|
|
5179
|
-
/* @__PURE__ */
|
|
5181
|
+
/* @__PURE__ */ h(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
5180
5182
|
/* @__PURE__ */ e(N, { fontSize: t, children: n.title }),
|
|
5181
5183
|
/* @__PURE__ */ e(N, { color: "error", fontSize: t, children: i }),
|
|
5182
5184
|
/* @__PURE__ */ e(O, { condition: !!((s = n.tooltip) != null && s.label), children: /* @__PURE__ */ e(
|
|
5183
5185
|
ue,
|
|
5184
5186
|
{
|
|
5185
5187
|
label: (a = n.tooltip) == null ? void 0 : a.label,
|
|
5186
|
-
arrowPosition: (
|
|
5188
|
+
arrowPosition: (u = n.tooltip) == null ? void 0 : u.arrowPosition,
|
|
5187
5189
|
...n.tooltip,
|
|
5188
5190
|
children: /* @__PURE__ */ e(
|
|
5189
5191
|
w,
|
|
@@ -5222,11 +5224,11 @@ const At = {
|
|
|
5222
5224
|
$(() => {
|
|
5223
5225
|
t && a([...t.map((m) => ({ id: m.id, isActive: m.isActive }))]);
|
|
5224
5226
|
}, [t]);
|
|
5225
|
-
const
|
|
5227
|
+
const u = (g = s.find((m) => m.id === r)) == null ? void 0 : g.isActive, d = Ce(() => {
|
|
5226
5228
|
a(
|
|
5227
5229
|
(m) => m.map((p) => p.id === r ? { ...p, isActive: !p.isActive } : p)
|
|
5228
|
-
), i && i(!
|
|
5229
|
-
}, [r, i,
|
|
5230
|
+
), i && i(!u);
|
|
5231
|
+
}, [r, i, u]);
|
|
5230
5232
|
return /* @__PURE__ */ e(
|
|
5231
5233
|
f,
|
|
5232
5234
|
{
|
|
@@ -5239,9 +5241,9 @@ const At = {
|
|
|
5239
5241
|
zt,
|
|
5240
5242
|
{
|
|
5241
5243
|
disabled: l,
|
|
5242
|
-
checked:
|
|
5243
|
-
onChange:
|
|
5244
|
-
label:
|
|
5244
|
+
checked: u,
|
|
5245
|
+
onChange: d,
|
|
5246
|
+
label: u ? "Active" : "Inactive"
|
|
5245
5247
|
}
|
|
5246
5248
|
)
|
|
5247
5249
|
}
|
|
@@ -5310,8 +5312,8 @@ const At = {
|
|
|
5310
5312
|
}
|
|
5311
5313
|
);
|
|
5312
5314
|
}, lo = ({ pageLayout: t, children: r, wrapperProps: i, containerProps: o }) => {
|
|
5313
|
-
const n =
|
|
5314
|
-
return /* @__PURE__ */
|
|
5315
|
+
const n = re("md"), l = (o == null ? void 0 : o.customWidth) ?? 264;
|
|
5316
|
+
return /* @__PURE__ */ h(
|
|
5315
5317
|
f,
|
|
5316
5318
|
{
|
|
5317
5319
|
display: "block",
|
|
@@ -5353,7 +5355,7 @@ const At = {
|
|
|
5353
5355
|
withScrollToTopButton: r = !1,
|
|
5354
5356
|
scrollToTopButtonProps: i,
|
|
5355
5357
|
containerProps: o
|
|
5356
|
-
}) => /* @__PURE__ */ e(f, { position: "absolute", width: "width-full", style: { zIndex: "var(--app-footer-zindex, 999)" }, children: /* @__PURE__ */
|
|
5358
|
+
}) => /* @__PURE__ */ e(f, { position: "absolute", width: "width-full", style: { zIndex: "var(--app-footer-zindex, 999)" }, children: /* @__PURE__ */ h(
|
|
5357
5359
|
f,
|
|
5358
5360
|
{
|
|
5359
5361
|
position: "fixed",
|
|
@@ -5390,8 +5392,8 @@ const At = {
|
|
|
5390
5392
|
of: t,
|
|
5391
5393
|
render: (r, i) => /* @__PURE__ */ e(Zi, { ...r }, i)
|
|
5392
5394
|
}
|
|
5393
|
-
) }), Zi = ({ title: t, value: r, icon: i }) => /* @__PURE__ */
|
|
5394
|
-
i ? /* @__PURE__ */
|
|
5395
|
+
) }), Zi = ({ title: t, value: r, icon: i }) => /* @__PURE__ */ h(f, { display: "flex", direction: "column", gap: "sm", children: [
|
|
5396
|
+
i ? /* @__PURE__ */ h(f, { display: "flex", direction: "row", align: "center", gap: "xs", children: [
|
|
5395
5397
|
/* @__PURE__ */ e(w, { name: i, color: "subtle" }),
|
|
5396
5398
|
/* @__PURE__ */ e(D, { color: "gray-500", variant: "sub-h3", children: t })
|
|
5397
5399
|
] }) : /* @__PURE__ */ e(D, { color: "gray-500", variant: "sub-h3", children: t }),
|
|
@@ -5401,7 +5403,7 @@ const At = {
|
|
|
5401
5403
|
accent: "#78867F"
|
|
5402
5404
|
};
|
|
5403
5405
|
function ji({ width: t, height: r }) {
|
|
5404
|
-
return /* @__PURE__ */ e(G, { children: /* @__PURE__ */
|
|
5406
|
+
return /* @__PURE__ */ e(G, { children: /* @__PURE__ */ h(
|
|
5405
5407
|
"svg",
|
|
5406
5408
|
{
|
|
5407
5409
|
width: t || "100",
|
|
@@ -5552,13 +5554,13 @@ const so = ({
|
|
|
5552
5554
|
leftIcon: l,
|
|
5553
5555
|
showButton: s = !0,
|
|
5554
5556
|
customHeight: a,
|
|
5555
|
-
childrenButton:
|
|
5556
|
-
customIcon:
|
|
5557
|
+
childrenButton: u,
|
|
5558
|
+
customIcon: d
|
|
5557
5559
|
}) => {
|
|
5558
5560
|
const g = () => {
|
|
5559
5561
|
switch (o) {
|
|
5560
5562
|
case "primary":
|
|
5561
|
-
return /* @__PURE__ */ e(G, { children: l ? /* @__PURE__ */ e(H, { primary: !0, iconLeft: l, onClick: i, children:
|
|
5563
|
+
return /* @__PURE__ */ e(G, { children: l ? /* @__PURE__ */ e(H, { primary: !0, iconLeft: l, onClick: i, children: u || t }) : /* @__PURE__ */ e(H, { primary: !0, onClick: i, children: u || t }) });
|
|
5562
5564
|
case "secondary":
|
|
5563
5565
|
return /* @__PURE__ */ e(G, { children: l ? /* @__PURE__ */ e(H, { secondary: !0, iconLeft: l, onClick: i, children: n ? /* @__PURE__ */ e(
|
|
5564
5566
|
D,
|
|
@@ -5567,16 +5569,16 @@ const so = ({
|
|
|
5567
5569
|
fontSize: "md",
|
|
5568
5570
|
fontWeight: "medium",
|
|
5569
5571
|
style: { color: "var(--sa-background-success, #28ac6e)" },
|
|
5570
|
-
children:
|
|
5572
|
+
children: u || t
|
|
5571
5573
|
}
|
|
5572
|
-
) : t }) : /* @__PURE__ */ e(H, { secondary: !0, onClick: i, children:
|
|
5574
|
+
) : t }) : /* @__PURE__ */ e(H, { secondary: !0, onClick: i, children: u || t }) });
|
|
5573
5575
|
case "success":
|
|
5574
|
-
return /* @__PURE__ */ e(G, { children: l ? /* @__PURE__ */ e(H, { success: !0, iconLeft: l, onClick: i, children:
|
|
5576
|
+
return /* @__PURE__ */ e(G, { children: l ? /* @__PURE__ */ e(H, { success: !0, iconLeft: l, onClick: i, children: u || t }) : /* @__PURE__ */ e(H, { success: !0, onClick: i, children: u || t }) });
|
|
5575
5577
|
default:
|
|
5576
|
-
return /* @__PURE__ */ e(G, { children: l ? /* @__PURE__ */ e(H, { primary: !0, iconLeft: l, onClick: i, children:
|
|
5578
|
+
return /* @__PURE__ */ e(G, { children: l ? /* @__PURE__ */ e(H, { primary: !0, iconLeft: l, onClick: i, children: u || t }) : /* @__PURE__ */ e(H, { primary: !0, onClick: i, children: u || t }) });
|
|
5577
5579
|
}
|
|
5578
5580
|
};
|
|
5579
|
-
return /* @__PURE__ */
|
|
5581
|
+
return /* @__PURE__ */ h(
|
|
5580
5582
|
f,
|
|
5581
5583
|
{
|
|
5582
5584
|
height: "height-full",
|
|
@@ -5588,7 +5590,7 @@ const so = ({
|
|
|
5588
5590
|
marginBlock: "auto",
|
|
5589
5591
|
customHeight: a,
|
|
5590
5592
|
children: [
|
|
5591
|
-
|
|
5593
|
+
d || /* @__PURE__ */ e(ji, {}),
|
|
5592
5594
|
/* @__PURE__ */ e(f, { children: r.map((m, p) => /* @__PURE__ */ e(
|
|
5593
5595
|
me.Body1,
|
|
5594
5596
|
{
|
|
@@ -5615,7 +5617,7 @@ const so = ({
|
|
|
5615
5617
|
cFFFFFF: "#FFFFFF"
|
|
5616
5618
|
};
|
|
5617
5619
|
function $i({ width: t, height: r }) {
|
|
5618
|
-
return /* @__PURE__ */ e(G, { children: /* @__PURE__ */
|
|
5620
|
+
return /* @__PURE__ */ e(G, { children: /* @__PURE__ */ h(
|
|
5619
5621
|
"svg",
|
|
5620
5622
|
{
|
|
5621
5623
|
width: t,
|
|
@@ -5818,8 +5820,8 @@ function $i({ width: t, height: r }) {
|
|
|
5818
5820
|
) });
|
|
5819
5821
|
}
|
|
5820
5822
|
function ho({ onClick: t }) {
|
|
5821
|
-
const r =
|
|
5822
|
-
return /* @__PURE__ */
|
|
5823
|
+
const r = re("md");
|
|
5824
|
+
return /* @__PURE__ */ h(
|
|
5823
5825
|
f,
|
|
5824
5826
|
{
|
|
5825
5827
|
height: "height-screen",
|
|
@@ -5875,7 +5877,7 @@ const A = {
|
|
|
5875
5877
|
cFFFFFF: "#FFFFFF"
|
|
5876
5878
|
};
|
|
5877
5879
|
function _i({ width: t, height: r }) {
|
|
5878
|
-
return /* @__PURE__ */ e(G, { children: /* @__PURE__ */
|
|
5880
|
+
return /* @__PURE__ */ e(G, { children: /* @__PURE__ */ h(
|
|
5879
5881
|
"svg",
|
|
5880
5882
|
{
|
|
5881
5883
|
width: t,
|
|
@@ -5895,7 +5897,7 @@ function _i({ width: t, height: r }) {
|
|
|
5895
5897
|
fillOpacity: "0.6"
|
|
5896
5898
|
}
|
|
5897
5899
|
),
|
|
5898
|
-
/* @__PURE__ */
|
|
5900
|
+
/* @__PURE__ */ h("g", { clipPath: "url(#clip0_2949_9690)", children: [
|
|
5899
5901
|
/* @__PURE__ */ e(
|
|
5900
5902
|
"path",
|
|
5901
5903
|
{
|
|
@@ -5992,7 +5994,7 @@ function _i({ width: t, height: r }) {
|
|
|
5992
5994
|
)
|
|
5993
5995
|
}
|
|
5994
5996
|
),
|
|
5995
|
-
/* @__PURE__ */
|
|
5997
|
+
/* @__PURE__ */ h("g", { mask: "url(#mask0_2949_9690)", children: [
|
|
5996
5998
|
/* @__PURE__ */ e(
|
|
5997
5999
|
"path",
|
|
5998
6000
|
{
|
|
@@ -6090,8 +6092,8 @@ function _i({ width: t, height: r }) {
|
|
|
6090
6092
|
) });
|
|
6091
6093
|
}
|
|
6092
6094
|
function uo({ onClick: t }) {
|
|
6093
|
-
const r =
|
|
6094
|
-
return /* @__PURE__ */
|
|
6095
|
+
const r = re("md");
|
|
6096
|
+
return /* @__PURE__ */ h(
|
|
6095
6097
|
f,
|
|
6096
6098
|
{
|
|
6097
6099
|
height: "height-screen",
|
|
@@ -6126,7 +6128,7 @@ const c = {
|
|
|
6126
6128
|
cFFFFFF: "#FFFFFF"
|
|
6127
6129
|
};
|
|
6128
6130
|
function Ui({ width: t, height: r }) {
|
|
6129
|
-
return /* @__PURE__ */ e(G, { children: /* @__PURE__ */
|
|
6131
|
+
return /* @__PURE__ */ e(G, { children: /* @__PURE__ */ h(
|
|
6130
6132
|
"svg",
|
|
6131
6133
|
{
|
|
6132
6134
|
width: t,
|
|
@@ -6798,8 +6800,8 @@ function Ui({ width: t, height: r }) {
|
|
|
6798
6800
|
) });
|
|
6799
6801
|
}
|
|
6800
6802
|
function fo({ onClick: t }) {
|
|
6801
|
-
const r =
|
|
6802
|
-
return /* @__PURE__ */
|
|
6803
|
+
const r = re("md");
|
|
6804
|
+
return /* @__PURE__ */ h(
|
|
6803
6805
|
f,
|
|
6804
6806
|
{
|
|
6805
6807
|
height: "height-screen",
|
|
@@ -6836,8 +6838,8 @@ function fo({ onClick: t }) {
|
|
|
6836
6838
|
}
|
|
6837
6839
|
const go = (t) => {
|
|
6838
6840
|
var i, o, n, l, s;
|
|
6839
|
-
const r =
|
|
6840
|
-
return /* @__PURE__ */
|
|
6841
|
+
const r = re("md");
|
|
6842
|
+
return /* @__PURE__ */ h(
|
|
6841
6843
|
qe,
|
|
6842
6844
|
{
|
|
6843
6845
|
isShow: t.isShow,
|
|
@@ -6859,7 +6861,7 @@ const go = (t) => {
|
|
|
6859
6861
|
direction: ((i = t.containerConfirmBtnProps) == null ? void 0 : i.direction) || "row",
|
|
6860
6862
|
justify: ((o = t.containerConfirmBtnProps) == null ? void 0 : o.justify) || "flex-end",
|
|
6861
6863
|
...t.containerConfirmBtnProps,
|
|
6862
|
-
children: /* @__PURE__ */
|
|
6864
|
+
children: /* @__PURE__ */ h(
|
|
6863
6865
|
f,
|
|
6864
6866
|
{
|
|
6865
6867
|
display: "flex",
|
|
@@ -6897,7 +6899,7 @@ const go = (t) => {
|
|
|
6897
6899
|
},
|
|
6898
6900
|
t.key
|
|
6899
6901
|
);
|
|
6900
|
-
}, mo =
|
|
6902
|
+
}, mo = ie(
|
|
6901
6903
|
({
|
|
6902
6904
|
children: t,
|
|
6903
6905
|
height: r,
|
|
@@ -6907,8 +6909,8 @@ const go = (t) => {
|
|
|
6907
6909
|
paddingBlock: l = "spacing-0",
|
|
6908
6910
|
header: s,
|
|
6909
6911
|
footer: a,
|
|
6910
|
-
title:
|
|
6911
|
-
titleTag:
|
|
6912
|
+
title: u,
|
|
6913
|
+
titleTag: d,
|
|
6912
6914
|
action: g,
|
|
6913
6915
|
actionContainer: m,
|
|
6914
6916
|
containerProps: p,
|
|
@@ -6917,7 +6919,7 @@ const go = (t) => {
|
|
|
6917
6919
|
footerProps: C = { borderTop: !0 },
|
|
6918
6920
|
variantTag: T = "info"
|
|
6919
6921
|
}) => {
|
|
6920
|
-
const Z =
|
|
6922
|
+
const Z = ee(null), [j, Q] = S("100vh");
|
|
6921
6923
|
$(() => {
|
|
6922
6924
|
const R = () => {
|
|
6923
6925
|
if (Z.current) {
|
|
@@ -6927,10 +6929,10 @@ const go = (t) => {
|
|
|
6927
6929
|
};
|
|
6928
6930
|
return R(), window.addEventListener("resize", R), () => window.removeEventListener("resize", R);
|
|
6929
6931
|
}, []);
|
|
6930
|
-
const W = () =>
|
|
6931
|
-
/* @__PURE__ */ e(D, { fontWeight: "medium", children:
|
|
6932
|
-
/* @__PURE__ */ e(Le, { border: !0, text:
|
|
6933
|
-
] }) : /* @__PURE__ */ e(D, { fontWeight: "medium", children:
|
|
6932
|
+
const W = () => d ? /* @__PURE__ */ h(f, { direction: "row", gap: "sm", align: "center", children: [
|
|
6933
|
+
/* @__PURE__ */ e(D, { fontWeight: "medium", children: u }),
|
|
6934
|
+
/* @__PURE__ */ e(Le, { border: !0, text: d, variant: T })
|
|
6935
|
+
] }) : /* @__PURE__ */ e(D, { fontWeight: "medium", children: u }), fe = () => s || /* @__PURE__ */ h(
|
|
6934
6936
|
f,
|
|
6935
6937
|
{
|
|
6936
6938
|
direction: "row",
|
|
@@ -6938,12 +6940,12 @@ const go = (t) => {
|
|
|
6938
6940
|
align: "flex-start",
|
|
6939
6941
|
gap: "md",
|
|
6940
6942
|
children: [
|
|
6941
|
-
/* @__PURE__ */ e(f, { children:
|
|
6943
|
+
/* @__PURE__ */ e(f, { children: u ? W() : null }),
|
|
6942
6944
|
/* @__PURE__ */ e(f, { ...m, children: g ?? null })
|
|
6943
6945
|
]
|
|
6944
6946
|
}
|
|
6945
|
-
), P = !!(s ||
|
|
6946
|
-
return /* @__PURE__ */
|
|
6947
|
+
), P = !!(s || u || g);
|
|
6948
|
+
return /* @__PURE__ */ h(
|
|
6947
6949
|
f,
|
|
6948
6950
|
{
|
|
6949
6951
|
ref: Z,
|
|
@@ -6984,28 +6986,28 @@ const go = (t) => {
|
|
|
6984
6986
|
), yo = Tt.memo(
|
|
6985
6987
|
({ value: t, options: r = [], onChange: i, multiple: o }) => {
|
|
6986
6988
|
const n = (t == null ? void 0 : t.map((a) => a.value)) || [], l = (r == null ? void 0 : r.filter((a) => n.includes(a.value))) || [], s = (a) => {
|
|
6987
|
-
const
|
|
6988
|
-
let
|
|
6989
|
-
o ?
|
|
6989
|
+
const u = [...l];
|
|
6990
|
+
let d = [];
|
|
6991
|
+
o ? d = n.includes(a.value) ? u.filter((g) => g.value !== a.value) : [...u, a] : d = [a], i == null || i(d);
|
|
6990
6992
|
};
|
|
6991
|
-
return /* @__PURE__ */ e(f, { direction: "row", gap: "sm", flexWrap: "wrap", children: r == null ? void 0 : r.map((a,
|
|
6993
|
+
return /* @__PURE__ */ e(f, { direction: "row", gap: "sm", flexWrap: "wrap", children: r == null ? void 0 : r.map((a, u) => /* @__PURE__ */ e(
|
|
6992
6994
|
H,
|
|
6993
6995
|
{
|
|
6994
6996
|
...n.includes(a.value) ? { primary: !0 } : { secondary: !0 },
|
|
6995
6997
|
onClick: () => s(a),
|
|
6996
6998
|
children: a.label
|
|
6997
6999
|
},
|
|
6998
|
-
|
|
7000
|
+
u
|
|
6999
7001
|
)) });
|
|
7000
7002
|
}
|
|
7001
7003
|
), po = (t) => {
|
|
7002
7004
|
const { defaultTab: r = 0, paramKey: i = "tab" } = t || {}, [o, n] = Ye(), l = Qe(o.toString());
|
|
7003
7005
|
return {
|
|
7004
7006
|
activeTab: l[i] ? parseInt(l[i]) : r,
|
|
7005
|
-
handleTabChange: (
|
|
7007
|
+
handleTabChange: (u) => {
|
|
7006
7008
|
n({
|
|
7007
7009
|
...l,
|
|
7008
|
-
[i]:
|
|
7010
|
+
[i]: u.toString()
|
|
7009
7011
|
});
|
|
7010
7012
|
},
|
|
7011
7013
|
searchQueries: l
|
|
@@ -7019,16 +7021,16 @@ function xo({
|
|
|
7019
7021
|
const o = ze();
|
|
7020
7022
|
$(() => {
|
|
7021
7023
|
let n = null, l = null;
|
|
7022
|
-
for (const
|
|
7023
|
-
const
|
|
7024
|
-
if (
|
|
7025
|
-
n =
|
|
7024
|
+
for (const u of r) {
|
|
7025
|
+
const d = u.items.find((g) => g.to ? g.to === "/" ? o.pathname === "/" : !!(g.to === o.pathname || o.pathname.startsWith(g.to + "/")) : !1);
|
|
7026
|
+
if (d) {
|
|
7027
|
+
n = d, l = u;
|
|
7026
7028
|
break;
|
|
7027
7029
|
}
|
|
7028
7030
|
}
|
|
7029
7031
|
const s = [];
|
|
7030
7032
|
n != null && n.title && s.push(n.title), l != null && l.name && s.push(l.name.toTitleCase());
|
|
7031
|
-
const a = (
|
|
7033
|
+
const a = (u, d) => u.length > 0 ? `${u.join(" - ")} | ${d}` : d;
|
|
7032
7034
|
document.title = (i || a)(s, t);
|
|
7033
7035
|
}, [o.pathname]);
|
|
7034
7036
|
}
|
|
@@ -7054,9 +7056,9 @@ const Co = () => {
|
|
|
7054
7056
|
function Do(t) {
|
|
7055
7057
|
var o, n;
|
|
7056
7058
|
const r = t.decodedAccessToken;
|
|
7057
|
-
return
|
|
7058
|
-
var
|
|
7059
|
-
const l = ((
|
|
7059
|
+
return De(() => {
|
|
7060
|
+
var u, d;
|
|
7061
|
+
const l = ((d = (u = r == null ? void 0 : r.access) == null ? void 0 : u.role) == null ? void 0 : d.code) ?? "", s = Object.keys(t.role).reduce(
|
|
7060
7062
|
(g, m) => {
|
|
7061
7063
|
const p = `is${m.toLowerCase().replace(/(^\w|_\w)/g, (v) => v.replace("_", "").toUpperCase())}`;
|
|
7062
7064
|
return { ...g, [p]: !1 };
|