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