@starasia/admin 4.0.1 → 4.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AsideBar/index.d.ts +4 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +337 -337
- package/dist/index.umd.js +1 -1
- package/package.json +11 -5
package/dist/index.es.js
CHANGED
|
@@ -8,7 +8,7 @@ export * from "@starasia/button";
|
|
|
8
8
|
export * from "@starasia/card";
|
|
9
9
|
import { StarasiaDate as Zt } from "@starasia/date";
|
|
10
10
|
export * from "@starasia/date";
|
|
11
|
-
import { Dialog as Ue, DialogTitle as Fe, DialogBody as
|
|
11
|
+
import { Dialog as Ue, DialogTitle as Fe, DialogBody as qe, DialogFooter as lt } from "@starasia/dialog";
|
|
12
12
|
export * from "@starasia/dialog";
|
|
13
13
|
import { Drawer as $t } from "@starasia/drawer";
|
|
14
14
|
export * from "@starasia/drawer";
|
|
@@ -16,21 +16,21 @@ import { Dropdown as ot } from "@starasia/dropdown";
|
|
|
16
16
|
export * from "@starasia/dropdown";
|
|
17
17
|
import { useMediaQuery as ee } from "@starasia/hooks";
|
|
18
18
|
export * from "@starasia/hooks";
|
|
19
|
-
import { searchParamsToObject as
|
|
19
|
+
import { searchParamsToObject as Ge } from "@starasia/http";
|
|
20
20
|
export * from "@starasia/http";
|
|
21
21
|
import { Input as ct } from "@starasia/input";
|
|
22
22
|
export * from "@starasia/input";
|
|
23
23
|
import { Menu as kt, MenuButton as $e, MenuLists as St, MenuHeading as _t, MenuBody as Ft, MenuFooter as Ut } from "@starasia/menu";
|
|
24
24
|
export * from "@starasia/menu";
|
|
25
|
-
import { Pagination as
|
|
25
|
+
import { Pagination as qt } from "@starasia/pagination";
|
|
26
26
|
export * from "@starasia/pagination";
|
|
27
27
|
export * from "@starasia/storage";
|
|
28
|
-
import { Tr as He, Td as we, Table as Et, Thead as
|
|
28
|
+
import { Tr as He, Td as we, Table as Et, Thead as Gt, Th as ht, Tbody as Jt } from "@starasia/table";
|
|
29
29
|
export * from "@starasia/table";
|
|
30
30
|
export * from "@starasia/tabs";
|
|
31
|
-
import { Textarea as
|
|
31
|
+
import { Textarea as Qt } from "@starasia/textarea";
|
|
32
32
|
export * from "@starasia/textarea";
|
|
33
|
-
import { useTheme as
|
|
33
|
+
import { useTheme as Pt, ThemeProvider as ut, useRadius as Yt, useColor as Xt } from "@starasia/theme";
|
|
34
34
|
export * from "@starasia/theme";
|
|
35
35
|
export * from "@starasia/toast";
|
|
36
36
|
import { Toggle as Mt } from "@starasia/toggle";
|
|
@@ -54,9 +54,9 @@ export * from "@starasia/story-record";
|
|
|
54
54
|
import { Skeleton as Re } from "@starasia/skeleton";
|
|
55
55
|
export * from "@starasia/skeleton";
|
|
56
56
|
export * from "@starasia/progress-stepper";
|
|
57
|
-
import { jsx as e, jsxs as d, Fragment as
|
|
57
|
+
import { jsx as e, jsxs as d, Fragment as J } from "react/jsx-runtime";
|
|
58
58
|
import Lt, { createContext as Wt, useState as B, useContext as Bt, useCallback as Ve, useMemo as De, memo as te, useEffect as U, useRef as le, useLayoutEffect as rt, isValidElement as it, forwardRef as At, Children as er, useImperativeHandle as tr } from "react";
|
|
59
|
-
import { useSearchParams as
|
|
59
|
+
import { useSearchParams as Je, useNavigate as at, useLocation as ze, Outlet as ft, Link as rr, useParams as Rt } from "react-router";
|
|
60
60
|
import ir from "react-dom";
|
|
61
61
|
import nr from "react-easy-crop";
|
|
62
62
|
const lr = {
|
|
@@ -75,7 +75,7 @@ const lr = {
|
|
|
75
75
|
userData: r,
|
|
76
76
|
setUserData: n
|
|
77
77
|
};
|
|
78
|
-
},
|
|
78
|
+
}, zt = Wt({
|
|
79
79
|
badges: {},
|
|
80
80
|
setBadge: () => {
|
|
81
81
|
},
|
|
@@ -109,8 +109,8 @@ const lr = {
|
|
|
109
109
|
() => ({ badges: r, setBadge: i, setBadges: l, clearBadge: o }),
|
|
110
110
|
[r, i, l, o]
|
|
111
111
|
);
|
|
112
|
-
return /* @__PURE__ */ e(
|
|
113
|
-
}, ar = () => Bt(
|
|
112
|
+
return /* @__PURE__ */ e(zt.Provider, { value: s, children: t });
|
|
113
|
+
}, ar = () => Bt(zt), Ye = (t, r) => {
|
|
114
114
|
const n = r !== void 0 ? r : t;
|
|
115
115
|
return n == null ? null : typeof n == "string" || typeof n == "number" ? { value: n } : n;
|
|
116
116
|
}, sr = ({
|
|
@@ -122,7 +122,7 @@ const lr = {
|
|
|
122
122
|
initialUserData: o,
|
|
123
123
|
theme: s
|
|
124
124
|
}) => {
|
|
125
|
-
const a = or({ initialUserData: o }), { theme: h } =
|
|
125
|
+
const a = or({ initialUserData: o }), { theme: h } = Pt();
|
|
126
126
|
return /* @__PURE__ */ e(
|
|
127
127
|
Ht.Provider,
|
|
128
128
|
{
|
|
@@ -183,11 +183,11 @@ function gt() {
|
|
|
183
183
|
const r = Number(t);
|
|
184
184
|
return Number.isFinite(r) ? r : null;
|
|
185
185
|
}
|
|
186
|
-
function
|
|
186
|
+
function It(t) {
|
|
187
187
|
typeof window > "u" || (t === null ? window.localStorage.removeItem(_e) : window.localStorage.setItem(_e, String(t)), window.dispatchEvent(new CustomEvent(nt, { detail: t })));
|
|
188
188
|
}
|
|
189
189
|
function dn() {
|
|
190
|
-
|
|
190
|
+
It(null);
|
|
191
191
|
}
|
|
192
192
|
function Tt() {
|
|
193
193
|
const [t, r] = B(
|
|
@@ -203,7 +203,7 @@ function Tt() {
|
|
|
203
203
|
window.removeEventListener(nt, l), window.removeEventListener("storage", i);
|
|
204
204
|
};
|
|
205
205
|
}, []), { selectedGroupId: t, setSelectedGroupId: (l) => {
|
|
206
|
-
|
|
206
|
+
It(l), r(l);
|
|
207
207
|
} };
|
|
208
208
|
}
|
|
209
209
|
let Ze = 0, be = !1;
|
|
@@ -254,10 +254,10 @@ function hn({
|
|
|
254
254
|
profileRole: u,
|
|
255
255
|
profileMenuButtons: g,
|
|
256
256
|
profileMenuItems: m,
|
|
257
|
-
logoutButton:
|
|
257
|
+
logoutButton: x
|
|
258
258
|
}) {
|
|
259
259
|
var ke, Ne;
|
|
260
|
-
const [v] =
|
|
260
|
+
const [v] = Je(), A = v.get("embed") === "true", D = Vt(), { badges: T } = ar(), j = at(), Z = ze(), M = !ee("md"), [fe, P] = B(!1), [V, K] = B(!1), [oe, ce] = B(!1), [_, ae] = B(!1), [se, re] = B(/* @__PURE__ */ new Set()), [Y, G] = B(null), { selectedGroupId: z, setSelectedGroupId: I } = Tt(), X = le(null), de = le(null);
|
|
261
261
|
U(() => {
|
|
262
262
|
const y = X.current;
|
|
263
263
|
if (!y) return;
|
|
@@ -288,11 +288,11 @@ function hn({
|
|
|
288
288
|
}));
|
|
289
289
|
}, [D.menus]), U(() => {
|
|
290
290
|
be = !0, he();
|
|
291
|
-
const y = setTimeout(he, 0), S = setTimeout(he, 50), F = setTimeout(he, 100),
|
|
291
|
+
const y = setTimeout(he, 0), S = setTimeout(he, 50), F = setTimeout(he, 100), p = setTimeout(he, 200), w = setTimeout(() => {
|
|
292
292
|
be = !1;
|
|
293
293
|
}, 300);
|
|
294
294
|
return () => {
|
|
295
|
-
clearTimeout(y), clearTimeout(S), clearTimeout(F), clearTimeout(
|
|
295
|
+
clearTimeout(y), clearTimeout(S), clearTimeout(F), clearTimeout(p), clearTimeout(w);
|
|
296
296
|
};
|
|
297
297
|
}, [Z.pathname]), U(() => {
|
|
298
298
|
de.current && (de.current.scrollTop = 0);
|
|
@@ -302,11 +302,11 @@ function hn({
|
|
|
302
302
|
M && K(!0);
|
|
303
303
|
}, [M]);
|
|
304
304
|
const Me = () => {
|
|
305
|
-
|
|
306
|
-
},
|
|
307
|
-
|
|
308
|
-
},
|
|
309
|
-
|
|
305
|
+
P(!0);
|
|
306
|
+
}, Ie = () => {
|
|
307
|
+
P(!1);
|
|
308
|
+
}, Qe = () => {
|
|
309
|
+
P(!1), i();
|
|
310
310
|
}, Te = (y) => {
|
|
311
311
|
const S = [y.to];
|
|
312
312
|
return y.children && S.push(...y.children.map((F) => F.to)), S;
|
|
@@ -315,14 +315,14 @@ function hn({
|
|
|
315
315
|
...((ke = D.menuBottom) == null ? void 0 : ke.flatMap(Te)) ?? []
|
|
316
316
|
], ie = (y) => {
|
|
317
317
|
if (!Z.pathname.startsWith(y)) return !1;
|
|
318
|
-
const S = Le.filter((F) => Z.pathname.startsWith(F)).sort((F,
|
|
318
|
+
const S = Le.filter((F) => Z.pathname.startsWith(F)).sort((F, p) => p.length - F.length)[0];
|
|
319
319
|
return y === S;
|
|
320
320
|
};
|
|
321
321
|
U(() => {
|
|
322
322
|
var S;
|
|
323
323
|
const y = (F) => {
|
|
324
|
-
var
|
|
325
|
-
(
|
|
324
|
+
var p;
|
|
325
|
+
(p = F.children) != null && p.some((w) => Z.pathname.startsWith(w.to)) && re((w) => {
|
|
326
326
|
const b = new Set(w);
|
|
327
327
|
return b.add(F.id), b;
|
|
328
328
|
});
|
|
@@ -338,24 +338,24 @@ function hn({
|
|
|
338
338
|
});
|
|
339
339
|
};
|
|
340
340
|
U(() => {
|
|
341
|
-
D.menus.length !== 0 &&
|
|
342
|
-
}, [D.menus,
|
|
341
|
+
D.menus.length !== 0 && z !== null && !D.menus.some((y) => y.id === z) && I(null);
|
|
342
|
+
}, [D.menus, z, I]);
|
|
343
343
|
const We = De(() => {
|
|
344
|
-
if (
|
|
344
|
+
if (z !== null)
|
|
345
345
|
return D.menus.filter(
|
|
346
|
-
(F) => F.id ===
|
|
346
|
+
(F) => F.id === z || F.parentGroupId === z
|
|
347
347
|
);
|
|
348
348
|
const y = D.menus.filter((F) => F.parentGroupId === void 0), S = D.menus.filter((F) => F.parentGroupId !== void 0).flatMap((F) => F.items);
|
|
349
349
|
return S.length === 0 ? y : [
|
|
350
350
|
...y,
|
|
351
351
|
{ id: 18, name: "Pengaturan", items: S, parentGroupId: void 0 }
|
|
352
352
|
];
|
|
353
|
-
}, [D.menus,
|
|
353
|
+
}, [D.menus, z]);
|
|
354
354
|
if (A)
|
|
355
355
|
return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(ft, {}) });
|
|
356
356
|
const Be = (y) => {
|
|
357
|
-
const S = y.children && y.children.length > 0, F = se.has(y.id),
|
|
358
|
-
return /* @__PURE__ */ d("div", { "data-menu-active":
|
|
357
|
+
const S = y.children && y.children.length > 0, F = se.has(y.id), p = S ? y.children.some((L) => ie(L.to)) : ie(y.to), w = Ye(y.badge, T[y.id]), b = !!w && V && !M;
|
|
358
|
+
return /* @__PURE__ */ d("div", { "data-menu-active": p || void 0, children: [
|
|
359
359
|
/* @__PURE__ */ d(
|
|
360
360
|
"button",
|
|
361
361
|
{
|
|
@@ -363,7 +363,7 @@ function hn({
|
|
|
363
363
|
if (S)
|
|
364
364
|
if (V && !M) {
|
|
365
365
|
const H = L.currentTarget.getBoundingClientRect();
|
|
366
|
-
|
|
366
|
+
G({
|
|
367
367
|
item: y,
|
|
368
368
|
top: H.top,
|
|
369
369
|
left: H.right + 8
|
|
@@ -384,19 +384,19 @@ function hn({
|
|
|
384
384
|
paddingTop: "0.25rem",
|
|
385
385
|
paddingBottom: "0.25rem",
|
|
386
386
|
height: "2rem",
|
|
387
|
-
borderRadius:
|
|
387
|
+
borderRadius: p ? "var(--sa-radii-sm, 0.375rem)" : "var(--sa-radii-md, 0.5rem)",
|
|
388
388
|
textAlign: "left",
|
|
389
|
-
border:
|
|
390
|
-
backgroundColor:
|
|
389
|
+
border: p ? "1px solid var(--sa-border-subtle, #0b120e24)" : "1px solid transparent",
|
|
390
|
+
backgroundColor: p ? "var(--sa-background-primary, #ffffff)" : "transparent",
|
|
391
391
|
color: "var(--sa-text-primary, #292a2e)",
|
|
392
392
|
cursor: "pointer"
|
|
393
393
|
},
|
|
394
394
|
title: V && !M ? y.title : void 0,
|
|
395
395
|
onMouseEnter: (L) => {
|
|
396
|
-
|
|
396
|
+
p || (L.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
|
|
397
397
|
},
|
|
398
398
|
onMouseLeave: (L) => {
|
|
399
|
-
|
|
399
|
+
p || (L.currentTarget.style.backgroundColor = "transparent");
|
|
400
400
|
},
|
|
401
401
|
children: [
|
|
402
402
|
/* @__PURE__ */ d(
|
|
@@ -428,7 +428,7 @@ function hn({
|
|
|
428
428
|
]
|
|
429
429
|
}
|
|
430
430
|
),
|
|
431
|
-
(!V || M) && /* @__PURE__ */ d(
|
|
431
|
+
(!V || M) && /* @__PURE__ */ d(J, { children: [
|
|
432
432
|
/* @__PURE__ */ e(
|
|
433
433
|
"span",
|
|
434
434
|
{
|
|
@@ -608,7 +608,7 @@ function hn({
|
|
|
608
608
|
})()
|
|
609
609
|
] }, y.id);
|
|
610
610
|
};
|
|
611
|
-
return /* @__PURE__ */ d(
|
|
611
|
+
return /* @__PURE__ */ d(J, { children: [
|
|
612
612
|
/* @__PURE__ */ d(
|
|
613
613
|
"div",
|
|
614
614
|
{
|
|
@@ -672,7 +672,7 @@ function hn({
|
|
|
672
672
|
},
|
|
673
673
|
children: (() => {
|
|
674
674
|
const y = !M && V && !oe, S = y && _;
|
|
675
|
-
return /* @__PURE__ */ d(
|
|
675
|
+
return /* @__PURE__ */ d(J, { children: [
|
|
676
676
|
/* @__PURE__ */ d(
|
|
677
677
|
"div",
|
|
678
678
|
{
|
|
@@ -1136,7 +1136,7 @@ function hn({
|
|
|
1136
1136
|
) }, `${y.label}-${S}`)),
|
|
1137
1137
|
m
|
|
1138
1138
|
] }),
|
|
1139
|
-
|
|
1139
|
+
x ?? /* @__PURE__ */ e(Ut, { children: /* @__PURE__ */ e($e, { children: /* @__PURE__ */ d(
|
|
1140
1140
|
"button",
|
|
1141
1141
|
{
|
|
1142
1142
|
type: "button",
|
|
@@ -1205,19 +1205,19 @@ function hn({
|
|
|
1205
1205
|
children: s
|
|
1206
1206
|
}
|
|
1207
1207
|
),
|
|
1208
|
-
/* @__PURE__ */ d(Ue, { isShow: fe, onHide:
|
|
1208
|
+
/* @__PURE__ */ d(Ue, { isShow: fe, onHide: Ie, children: [
|
|
1209
1209
|
/* @__PURE__ */ e(Fe, { children: "Confirmation Logout" }),
|
|
1210
|
-
/* @__PURE__ */ e(
|
|
1210
|
+
/* @__PURE__ */ e(qe, { children: "Are you sure you want to end the session and exit the page?" }),
|
|
1211
1211
|
/* @__PURE__ */ e(lt, { children: /* @__PURE__ */ e(f, { display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ d($, { direction: "row", gap: "sm", align: "center", children: [
|
|
1212
|
-
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(R, { secondary: !0, onClick:
|
|
1213
|
-
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(R, { primary: !0, onClick:
|
|
1212
|
+
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(R, { secondary: !0, onClick: Ie, children: "Cancel" }) }),
|
|
1213
|
+
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(R, { primary: !0, onClick: Qe, children: "Yes, Sure" }) })
|
|
1214
1214
|
] }) }) })
|
|
1215
1215
|
] }),
|
|
1216
|
-
Y && /* @__PURE__ */ d(
|
|
1216
|
+
Y && /* @__PURE__ */ d(J, { children: [
|
|
1217
1217
|
/* @__PURE__ */ e(
|
|
1218
1218
|
"div",
|
|
1219
1219
|
{
|
|
1220
|
-
onClick: () =>
|
|
1220
|
+
onClick: () => G(null),
|
|
1221
1221
|
style: {
|
|
1222
1222
|
position: "fixed",
|
|
1223
1223
|
inset: 0,
|
|
@@ -1271,7 +1271,7 @@ function hn({
|
|
|
1271
1271
|
"button",
|
|
1272
1272
|
{
|
|
1273
1273
|
onClick: () => {
|
|
1274
|
-
j(y.to),
|
|
1274
|
+
j(y.to), G(null);
|
|
1275
1275
|
},
|
|
1276
1276
|
style: {
|
|
1277
1277
|
width: "100%",
|
|
@@ -1288,11 +1288,11 @@ function hn({
|
|
|
1288
1288
|
fontSize: "0.875rem",
|
|
1289
1289
|
fontWeight: 500
|
|
1290
1290
|
},
|
|
1291
|
-
onMouseEnter: (
|
|
1292
|
-
S || (
|
|
1291
|
+
onMouseEnter: (p) => {
|
|
1292
|
+
S || (p.currentTarget.style.backgroundColor = "var(--sa-color-gray-100, #f8f8f8)");
|
|
1293
1293
|
},
|
|
1294
|
-
onMouseLeave: (
|
|
1295
|
-
S || (
|
|
1294
|
+
onMouseLeave: (p) => {
|
|
1295
|
+
S || (p.currentTarget.style.backgroundColor = "transparent");
|
|
1296
1296
|
},
|
|
1297
1297
|
children: [
|
|
1298
1298
|
y.icon && /* @__PURE__ */ e(
|
|
@@ -1368,7 +1368,7 @@ const Xe = [
|
|
|
1368
1368
|
activeShadow: "rgba(255, 117, 143, 0.25)"
|
|
1369
1369
|
}
|
|
1370
1370
|
];
|
|
1371
|
-
function
|
|
1371
|
+
function xt(t, r, n) {
|
|
1372
1372
|
return {
|
|
1373
1373
|
display: "flex",
|
|
1374
1374
|
alignItems: "center",
|
|
@@ -1384,7 +1384,7 @@ function pt(t, r, n) {
|
|
|
1384
1384
|
transition: "box-shadow 0.2s ease, transform 0.2s ease, background-color 0.15s ease, border-color 0.15s ease"
|
|
1385
1385
|
};
|
|
1386
1386
|
}
|
|
1387
|
-
const
|
|
1387
|
+
const pt = {
|
|
1388
1388
|
fontSize: "11px",
|
|
1389
1389
|
fontWeight: 500,
|
|
1390
1390
|
textAlign: "center",
|
|
@@ -1424,7 +1424,7 @@ function hr({
|
|
|
1424
1424
|
boxShadow: "none",
|
|
1425
1425
|
border: "none"
|
|
1426
1426
|
},
|
|
1427
|
-
children: /* @__PURE__ */ e(
|
|
1427
|
+
children: /* @__PURE__ */ e(qe, { children: /* @__PURE__ */ d(
|
|
1428
1428
|
"div",
|
|
1429
1429
|
{
|
|
1430
1430
|
style: {
|
|
@@ -1441,14 +1441,14 @@ function hr({
|
|
|
1441
1441
|
onMouseLeave: () => s(void 0),
|
|
1442
1442
|
style: Ct,
|
|
1443
1443
|
children: [
|
|
1444
|
-
/* @__PURE__ */ e("div", { style:
|
|
1445
|
-
/* @__PURE__ */ e("span", { style:
|
|
1444
|
+
/* @__PURE__ */ e("div", { style: xt(l === null, o === "all", h), children: /* @__PURE__ */ e("div", { style: { color: h.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(k, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
|
|
1445
|
+
/* @__PURE__ */ e("span", { style: pt, children: "Semua" })
|
|
1446
1446
|
]
|
|
1447
1447
|
}
|
|
1448
1448
|
),
|
|
1449
1449
|
n.map((u, g) => {
|
|
1450
1450
|
var D;
|
|
1451
|
-
const m = l === u.id,
|
|
1451
|
+
const m = l === u.id, x = o === u.id, v = ((D = u.items[0]) == null ? void 0 : D.icon) ?? "Grid", A = Xe[(g + 1) % Xe.length];
|
|
1452
1452
|
return /* @__PURE__ */ d(
|
|
1453
1453
|
"button",
|
|
1454
1454
|
{
|
|
@@ -1457,8 +1457,8 @@ function hr({
|
|
|
1457
1457
|
onMouseLeave: () => s(void 0),
|
|
1458
1458
|
style: Ct,
|
|
1459
1459
|
children: [
|
|
1460
|
-
/* @__PURE__ */ e("div", { style:
|
|
1461
|
-
/* @__PURE__ */ e("span", { style:
|
|
1460
|
+
/* @__PURE__ */ e("div", { style: xt(m, x, A), children: /* @__PURE__ */ e("div", { style: { color: A.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(k, { name: v, size: "lg", style: { width: 32, height: 32 } }) }) }),
|
|
1461
|
+
/* @__PURE__ */ e("span", { style: pt, children: u.name })
|
|
1462
1462
|
]
|
|
1463
1463
|
},
|
|
1464
1464
|
u.id
|
|
@@ -1477,12 +1477,12 @@ function un({
|
|
|
1477
1477
|
const n = Vt(), l = at(), { selectedGroupId: i, setSelectedGroupId: o } = Tt(), [s, a] = B(!1), h = (u) => {
|
|
1478
1478
|
var g;
|
|
1479
1479
|
if (o(u), u !== null) {
|
|
1480
|
-
const m = n.menus.find((v) => v.id === u),
|
|
1481
|
-
|
|
1480
|
+
const m = n.menus.find((v) => v.id === u), x = (g = m == null ? void 0 : m.items[0]) == null ? void 0 : g.to;
|
|
1481
|
+
x && l(x);
|
|
1482
1482
|
}
|
|
1483
1483
|
t == null || t(u);
|
|
1484
1484
|
};
|
|
1485
|
-
return /* @__PURE__ */ d(
|
|
1485
|
+
return /* @__PURE__ */ d(J, { children: [
|
|
1486
1486
|
/* @__PURE__ */ d("div", { style: { position: "relative" }, children: [
|
|
1487
1487
|
/* @__PURE__ */ e(
|
|
1488
1488
|
"button",
|
|
@@ -1769,7 +1769,7 @@ const fn = te(
|
|
|
1769
1769
|
};
|
|
1770
1770
|
return /* @__PURE__ */ d(Ue, { isShow: i, onHide: n, children: [
|
|
1771
1771
|
a(),
|
|
1772
|
-
/* @__PURE__ */ e(
|
|
1772
|
+
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(C, { children: r }) }),
|
|
1773
1773
|
/* @__PURE__ */ e(lt, { children: /* @__PURE__ */ d(f, { justify: "flex-end", direction: "row", gap: "sm", children: [
|
|
1774
1774
|
/* @__PURE__ */ e(R, { secondary: !0, onClick: n, children: "Cancel" }),
|
|
1775
1775
|
h()
|
|
@@ -1824,7 +1824,7 @@ const fn = te(
|
|
|
1824
1824
|
]
|
|
1825
1825
|
}
|
|
1826
1826
|
);
|
|
1827
|
-
},
|
|
1827
|
+
}, xr = ({
|
|
1828
1828
|
backButton: t,
|
|
1829
1829
|
title: r,
|
|
1830
1830
|
titleTag: n,
|
|
@@ -1835,23 +1835,23 @@ const fn = te(
|
|
|
1835
1835
|
containerProps: a,
|
|
1836
1836
|
headerProps: h
|
|
1837
1837
|
}) => {
|
|
1838
|
-
const u = ee("lg"), g = at(), m =
|
|
1838
|
+
const u = ee("lg"), g = at(), m = ze(), x = t == null ? void 0 : t.show, v = () => {
|
|
1839
1839
|
if (typeof (t == null ? void 0 : t.onClick) == "function") {
|
|
1840
1840
|
t.onClick();
|
|
1841
1841
|
return;
|
|
1842
1842
|
}
|
|
1843
1843
|
g(-1, { replace: !0 });
|
|
1844
1844
|
}, A = () => o ? it(o) ? o : /* @__PURE__ */ e(f, { direction: "row", gap: "lg", children: o.map(
|
|
1845
|
-
({ title: Z, icon:
|
|
1845
|
+
({ title: Z, icon: Q, buttonProps: M, onClick: fe }, P) => !Z && !Q ? null : /* @__PURE__ */ e(
|
|
1846
1846
|
R,
|
|
1847
1847
|
{
|
|
1848
1848
|
fullWidth: !u,
|
|
1849
|
-
iconLeft:
|
|
1849
|
+
iconLeft: Q ? /* @__PURE__ */ e(k, { name: Q, size: "md" }) : void 0,
|
|
1850
1850
|
onClick: fe,
|
|
1851
1851
|
...M,
|
|
1852
1852
|
children: Z
|
|
1853
1853
|
},
|
|
1854
|
-
`action-${
|
|
1854
|
+
`action-${P}`
|
|
1855
1855
|
)
|
|
1856
1856
|
) }) : null, D = () => {
|
|
1857
1857
|
const Z = /* @__PURE__ */ e(yr, { backButton: t });
|
|
@@ -1865,8 +1865,8 @@ const fn = te(
|
|
|
1865
1865
|
}
|
|
1866
1866
|
) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Ot, { onClick: v, children: Z }) });
|
|
1867
1867
|
}, T = () => {
|
|
1868
|
-
const Z = !!r,
|
|
1869
|
-
return !Z && !
|
|
1868
|
+
const Z = !!r, Q = it(o) ? !0 : Array.isArray(o) && o.length > 0;
|
|
1869
|
+
return !Z && !Q && !x ? null : /* @__PURE__ */ d(
|
|
1870
1870
|
f,
|
|
1871
1871
|
{
|
|
1872
1872
|
gap: "xs",
|
|
@@ -1874,8 +1874,8 @@ const fn = te(
|
|
|
1874
1874
|
paddingInline: h == null ? void 0 : h.paddingInline,
|
|
1875
1875
|
...h,
|
|
1876
1876
|
children: [
|
|
1877
|
-
|
|
1878
|
-
(Z ||
|
|
1877
|
+
x && D(),
|
|
1878
|
+
(Z || Q) && /* @__PURE__ */ d(
|
|
1879
1879
|
f,
|
|
1880
1880
|
{
|
|
1881
1881
|
direction: u ? "row" : "column",
|
|
@@ -1913,7 +1913,7 @@ const fn = te(
|
|
|
1913
1913
|
},
|
|
1914
1914
|
m.pathname
|
|
1915
1915
|
);
|
|
1916
|
-
}, yn = te(
|
|
1916
|
+
}, yn = te(xr), pr = {
|
|
1917
1917
|
icon: "Cross",
|
|
1918
1918
|
title: ""
|
|
1919
1919
|
}, Cr = "calc(100vw - 16px)", Dt = (t) => t == null ? void 0 : `min(${typeof t == "number" ? `${t}px` : t}, ${Cr})`, Dr = At(
|
|
@@ -1923,7 +1923,7 @@ const fn = te(
|
|
|
1923
1923
|
withBlur: n = !1,
|
|
1924
1924
|
style: l,
|
|
1925
1925
|
children: i,
|
|
1926
|
-
closeButton: o =
|
|
1926
|
+
closeButton: o = pr,
|
|
1927
1927
|
width: s,
|
|
1928
1928
|
minWidth: a = "357px",
|
|
1929
1929
|
maxWidth: h = "357px"
|
|
@@ -2015,7 +2015,7 @@ const fn = te(
|
|
|
2015
2015
|
children: t
|
|
2016
2016
|
}
|
|
2017
2017
|
)
|
|
2018
|
-
),
|
|
2018
|
+
), xn = te(
|
|
2019
2019
|
({
|
|
2020
2020
|
children: t,
|
|
2021
2021
|
title: r,
|
|
@@ -2030,7 +2030,7 @@ const fn = te(
|
|
|
2030
2030
|
footerProps: g = { borderTop: !0 },
|
|
2031
2031
|
variantTag: m = "info"
|
|
2032
2032
|
}) => {
|
|
2033
|
-
const
|
|
2033
|
+
const x = ee("lg"), v = () => n ? /* @__PURE__ */ d(f, { direction: "row", gap: "sm", align: "center", children: [
|
|
2034
2034
|
/* @__PURE__ */ e(C, { fontWeight: "medium", children: r }),
|
|
2035
2035
|
/* @__PURE__ */ e(Ee, { border: !0, text: n, variant: m })
|
|
2036
2036
|
] }) : /* @__PURE__ */ e(C, { fontWeight: "medium", children: r }), A = () => i || /* @__PURE__ */ d(
|
|
@@ -2045,7 +2045,7 @@ const fn = te(
|
|
|
2045
2045
|
/* @__PURE__ */ e(
|
|
2046
2046
|
f,
|
|
2047
2047
|
{
|
|
2048
|
-
style:
|
|
2048
|
+
style: x ? { width: "100%", maxWidth: "19.313rem" } : { flex: 1 },
|
|
2049
2049
|
...s,
|
|
2050
2050
|
children: l ?? null
|
|
2051
2051
|
}
|
|
@@ -2144,7 +2144,7 @@ const fn = te(
|
|
|
2144
2144
|
g.id || m
|
|
2145
2145
|
)) })
|
|
2146
2146
|
] });
|
|
2147
|
-
},
|
|
2147
|
+
}, pn = te(Sr), Fr = (t) => /* @__PURE__ */ e(C, { variant: "h1", children: t.children, ...t.props }), Er = (t) => /* @__PURE__ */ e(C, { variant: "h2", children: t.children, ...t.props }), Mr = (t) => /* @__PURE__ */ e(C, { variant: "h3", children: t.children, ...t.props }), Lr = (t) => /* @__PURE__ */ e(C, { variant: "h4", children: t.children, ...t.props }), Wr = (t) => /* @__PURE__ */ e(C, { variant: "h5", children: t.children, ...t.props }), Br = (t) => /* @__PURE__ */ e(C, { variant: "h6", children: t.children, ...t.props }), Ar = (t) => /* @__PURE__ */ e(C, { variant: "sub-h1", children: t.children, ...t.props }), Rr = (t) => /* @__PURE__ */ e(C, { variant: "sub-h2", children: t.children, ...t.props }), Hr = (t) => /* @__PURE__ */ e(C, { variant: "sub-h3", children: t.children, ...t.props }), Vr = (t) => /* @__PURE__ */ e(C, { variant: "body-1", children: t.children, ...t.props }), zr = (t) => /* @__PURE__ */ e(C, { variant: "body-2", children: t.children, ...t.props }), Ir = (t) => /* @__PURE__ */ e(C, { variant: "body-3", children: t.children, ...t.props }), me = {
|
|
2148
2148
|
H1: Fr,
|
|
2149
2149
|
H2: Er,
|
|
2150
2150
|
H3: Mr,
|
|
@@ -2155,10 +2155,10 @@ const fn = te(
|
|
|
2155
2155
|
SubH2: Rr,
|
|
2156
2156
|
SubH3: Hr,
|
|
2157
2157
|
Body1: Vr,
|
|
2158
|
-
Body2:
|
|
2159
|
-
Body3:
|
|
2158
|
+
Body2: zr,
|
|
2159
|
+
Body3: Ir
|
|
2160
2160
|
}, st = () => {
|
|
2161
|
-
const [t, r] =
|
|
2161
|
+
const [t, r] = Je(), n = Ge(t.toString()), l = Rt(), i = ze(), o = l.id;
|
|
2162
2162
|
return {
|
|
2163
2163
|
// query params
|
|
2164
2164
|
setSearchParams: r,
|
|
@@ -2216,10 +2216,10 @@ const fn = te(
|
|
|
2216
2216
|
const m = {
|
|
2217
2217
|
...o[a] && typeof o[a] == "string" ? JSON.parse(o[a]) : void 0,
|
|
2218
2218
|
[r]: u
|
|
2219
|
-
},
|
|
2220
|
-
s && typeof s == "string" && delete
|
|
2219
|
+
}, x = { ...o };
|
|
2220
|
+
s && typeof s == "string" && delete x[s], delete x[h];
|
|
2221
2221
|
const v = {
|
|
2222
|
-
...
|
|
2222
|
+
...x,
|
|
2223
2223
|
[a]: JSON.stringify(m)
|
|
2224
2224
|
}, A = new URLSearchParams(o).toString(), D = new URLSearchParams(
|
|
2225
2225
|
v
|
|
@@ -2289,23 +2289,23 @@ const fn = te(
|
|
|
2289
2289
|
}) => {
|
|
2290
2290
|
const { searchParams: o, setSearchParams: s, searchQueries: a } = st(), [h, u] = B({}), g = () => {
|
|
2291
2291
|
o.delete(n || "filter"), s(o);
|
|
2292
|
-
}, m = (
|
|
2293
|
-
switch (
|
|
2292
|
+
}, m = (x, v) => {
|
|
2293
|
+
switch (x.type) {
|
|
2294
2294
|
case "radio": {
|
|
2295
|
-
const { show: A = !0 } =
|
|
2296
|
-
return A && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children:
|
|
2295
|
+
const { show: A = !0 } = x;
|
|
2296
|
+
return A && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: x.title }) }, v);
|
|
2297
2297
|
}
|
|
2298
2298
|
case "dropdown": {
|
|
2299
|
-
const { show: A = !0 } =
|
|
2300
|
-
return A && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children:
|
|
2299
|
+
const { show: A = !0 } = x;
|
|
2300
|
+
return A && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: x.title }) }, v);
|
|
2301
2301
|
}
|
|
2302
2302
|
case "date-range":
|
|
2303
|
-
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children:
|
|
2303
|
+
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: x.title }) }, v);
|
|
2304
2304
|
case "date":
|
|
2305
|
-
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children:
|
|
2305
|
+
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: x.title }) }, v);
|
|
2306
2306
|
case "dropdown-multiple": {
|
|
2307
|
-
const { show: A = !0 } =
|
|
2308
|
-
return A && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children:
|
|
2307
|
+
const { show: A = !0 } = x;
|
|
2308
|
+
return A && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: x.title }) }, v);
|
|
2309
2309
|
}
|
|
2310
2310
|
default:
|
|
2311
2311
|
return null;
|
|
@@ -2323,9 +2323,9 @@ const fn = te(
|
|
|
2323
2323
|
}
|
|
2324
2324
|
)
|
|
2325
2325
|
] }),
|
|
2326
|
-
i == null ? void 0 : i.map((
|
|
2326
|
+
i == null ? void 0 : i.map((x, v) => m(x, v))
|
|
2327
2327
|
] }) });
|
|
2328
|
-
},
|
|
2328
|
+
}, qr = ({
|
|
2329
2329
|
searchKey: t = "q",
|
|
2330
2330
|
statusKey: r = "status",
|
|
2331
2331
|
searchPlaceholder: n = "Search",
|
|
@@ -2338,29 +2338,29 @@ const fn = te(
|
|
|
2338
2338
|
customWidthSearch: u,
|
|
2339
2339
|
handleOnReset: g,
|
|
2340
2340
|
filterConfigs: m,
|
|
2341
|
-
buttonToggleProps:
|
|
2341
|
+
buttonToggleProps: x,
|
|
2342
2342
|
position: v = "right",
|
|
2343
2343
|
titleSearchLabel: A = "Work Order",
|
|
2344
2344
|
withTitleLabels: D = !1
|
|
2345
2345
|
}) => {
|
|
2346
|
-
const j = (
|
|
2347
|
-
fe((
|
|
2348
|
-
}, { searchParams: V, setSearchParams: K, getQueryParam: oe } = st(), ce =
|
|
2346
|
+
const j = (x == null ? void 0 : x.isShowLabel) ?? !0, [Z, Q] = B(!1), [M, fe] = B(0), P = () => {
|
|
2347
|
+
fe((I) => I + 1);
|
|
2348
|
+
}, { searchParams: V, setSearchParams: K, getQueryParam: oe } = st(), ce = Ge(V.toString()), _ = _r(t, V, a) || "", [ae, se] = B(_), re = oe(a), G = !!(re && !(() => {
|
|
2349
2349
|
if (re)
|
|
2350
2350
|
try {
|
|
2351
|
-
const
|
|
2352
|
-
return Object.keys(
|
|
2353
|
-
} catch (
|
|
2354
|
-
console.error("Filter parameter is not a valid JSON:",
|
|
2351
|
+
const I = JSON.parse(re);
|
|
2352
|
+
return Object.keys(I).length === 1 && I[t] === "";
|
|
2353
|
+
} catch (I) {
|
|
2354
|
+
console.error("Filter parameter is not a valid JSON:", I);
|
|
2355
2355
|
}
|
|
2356
2356
|
return !1;
|
|
2357
|
-
})()),
|
|
2357
|
+
})()), z = ee("md");
|
|
2358
2358
|
return U(() => {
|
|
2359
2359
|
se(_);
|
|
2360
2360
|
}, [_]), U(() => {
|
|
2361
2361
|
if (ae === _)
|
|
2362
2362
|
return;
|
|
2363
|
-
const
|
|
2363
|
+
const I = window.setTimeout(() => {
|
|
2364
2364
|
vt({
|
|
2365
2365
|
value: ae,
|
|
2366
2366
|
name: t,
|
|
@@ -2372,7 +2372,7 @@ const fn = te(
|
|
|
2372
2372
|
});
|
|
2373
2373
|
}, 350);
|
|
2374
2374
|
return () => {
|
|
2375
|
-
window.clearTimeout(
|
|
2375
|
+
window.clearTimeout(I);
|
|
2376
2376
|
};
|
|
2377
2377
|
}, [
|
|
2378
2378
|
ae,
|
|
@@ -2387,29 +2387,29 @@ const fn = te(
|
|
|
2387
2387
|
{
|
|
2388
2388
|
gap: "md",
|
|
2389
2389
|
style: {
|
|
2390
|
-
flexDirection:
|
|
2390
|
+
flexDirection: z && v === "left" ? "row" : z && v === "right" ? "row-reverse" : "column"
|
|
2391
2391
|
},
|
|
2392
2392
|
align: "flex-end",
|
|
2393
2393
|
children: [
|
|
2394
|
-
|
|
2394
|
+
G && /* @__PURE__ */ e(f, { justify: "flex-end", children: /* @__PURE__ */ e(
|
|
2395
2395
|
R,
|
|
2396
2396
|
{
|
|
2397
2397
|
onClick: () => {
|
|
2398
|
-
const
|
|
2399
|
-
|
|
2398
|
+
const I = new URLSearchParams(V);
|
|
2399
|
+
I.delete(a), K(I), se(""), P(), g && g();
|
|
2400
2400
|
},
|
|
2401
2401
|
variant: "outline",
|
|
2402
2402
|
tone: "neutral",
|
|
2403
2403
|
children: /* @__PURE__ */ e(C, { color: "error", fontWeight: "semibold", children: "Reset" })
|
|
2404
2404
|
}
|
|
2405
2405
|
) }),
|
|
2406
|
-
i == null ? void 0 : i.map(({ minWidth:
|
|
2406
|
+
i == null ? void 0 : i.map(({ minWidth: I, content: X, title: de, onClickContainer: he }, Me) => /* @__PURE__ */ d(
|
|
2407
2407
|
f,
|
|
2408
2408
|
{
|
|
2409
2409
|
gap: "sm",
|
|
2410
2410
|
onClick: he,
|
|
2411
2411
|
style: {
|
|
2412
|
-
minWidth:
|
|
2412
|
+
minWidth: I
|
|
2413
2413
|
},
|
|
2414
2414
|
children: [
|
|
2415
2415
|
de && /* @__PURE__ */ e(me.SubH3, { children: de }),
|
|
@@ -2421,20 +2421,20 @@ const fn = te(
|
|
|
2421
2421
|
!!(m != null && m.length) && /* @__PURE__ */ e(
|
|
2422
2422
|
R,
|
|
2423
2423
|
{
|
|
2424
|
-
primary:
|
|
2425
|
-
secondary: !
|
|
2424
|
+
primary: G,
|
|
2425
|
+
secondary: !G,
|
|
2426
2426
|
iconLeft: /* @__PURE__ */ e(
|
|
2427
2427
|
k,
|
|
2428
2428
|
{
|
|
2429
2429
|
size: "sm",
|
|
2430
|
-
name: (
|
|
2430
|
+
name: (x == null ? void 0 : x.icon) || "FilterHorizontal",
|
|
2431
2431
|
style: {
|
|
2432
2432
|
color: re ? "var(--sa-background-brand, #04254f)" : "var(--sa-text-primary, #292a2e)"
|
|
2433
2433
|
}
|
|
2434
2434
|
}
|
|
2435
2435
|
),
|
|
2436
|
-
fullWidth: !
|
|
2437
|
-
onClick: () =>
|
|
2436
|
+
fullWidth: !z,
|
|
2437
|
+
onClick: () => Q(!0),
|
|
2438
2438
|
children: j ? "Filter" : void 0
|
|
2439
2439
|
}
|
|
2440
2440
|
),
|
|
@@ -2481,8 +2481,8 @@ const fn = te(
|
|
|
2481
2481
|
})
|
|
2482
2482
|
}
|
|
2483
2483
|
] : [],
|
|
2484
|
-
onChange: (
|
|
2485
|
-
value:
|
|
2484
|
+
onChange: (I) => vt({
|
|
2485
|
+
value: I,
|
|
2486
2486
|
name: r,
|
|
2487
2487
|
type: "dropdown",
|
|
2488
2488
|
searchQueries: ce,
|
|
@@ -2501,7 +2501,7 @@ const fn = te(
|
|
|
2501
2501
|
{
|
|
2502
2502
|
gap: "sm",
|
|
2503
2503
|
style: {
|
|
2504
|
-
width: u &&
|
|
2504
|
+
width: u && z ? u : z ? "310px" : ""
|
|
2505
2505
|
},
|
|
2506
2506
|
children: [
|
|
2507
2507
|
D && /* @__PURE__ */ d(me.SubH3, { children: [
|
|
@@ -2513,7 +2513,7 @@ const fn = te(
|
|
|
2513
2513
|
{
|
|
2514
2514
|
placeholder: n,
|
|
2515
2515
|
leftIcon: /* @__PURE__ */ e(k, { name: "Search", width: 20, height: 20 }),
|
|
2516
|
-
onChange: (
|
|
2516
|
+
onChange: (I) => se(I.target.value),
|
|
2517
2517
|
value: ae,
|
|
2518
2518
|
fullWidth: !0
|
|
2519
2519
|
},
|
|
@@ -2526,7 +2526,7 @@ const fn = te(
|
|
|
2526
2526
|
Ur,
|
|
2527
2527
|
{
|
|
2528
2528
|
isOpen: Z,
|
|
2529
|
-
onClose: () =>
|
|
2529
|
+
onClose: () => Q(!1),
|
|
2530
2530
|
filterKey: a,
|
|
2531
2531
|
filters: m,
|
|
2532
2532
|
pageKey: h
|
|
@@ -2535,7 +2535,7 @@ const fn = te(
|
|
|
2535
2535
|
]
|
|
2536
2536
|
}
|
|
2537
2537
|
);
|
|
2538
|
-
},
|
|
2538
|
+
}, Gr = ({ children: t, borderRadius: r, height: n }) => {
|
|
2539
2539
|
const l = le(null), [i, o] = B("100vh");
|
|
2540
2540
|
return U(() => {
|
|
2541
2541
|
if (n) return;
|
|
@@ -2563,7 +2563,7 @@ const fn = te(
|
|
|
2563
2563
|
children: t
|
|
2564
2564
|
}
|
|
2565
2565
|
);
|
|
2566
|
-
},
|
|
2566
|
+
}, Jr = ({
|
|
2567
2567
|
action: t,
|
|
2568
2568
|
rightContent: r,
|
|
2569
2569
|
leftContent: n,
|
|
@@ -2571,7 +2571,7 @@ const fn = te(
|
|
|
2571
2571
|
advanceFilter: i,
|
|
2572
2572
|
showFilter: o = !0
|
|
2573
2573
|
}) => {
|
|
2574
|
-
const s = ee("md"), a = o ? /* @__PURE__ */ e(
|
|
2574
|
+
const s = ee("md"), a = o ? /* @__PURE__ */ e(qr, { ...i }) : null;
|
|
2575
2575
|
return /* @__PURE__ */ e(
|
|
2576
2576
|
f,
|
|
2577
2577
|
{
|
|
@@ -2591,7 +2591,7 @@ const fn = te(
|
|
|
2591
2591
|
flexDirection: s ? "row" : "column-reverse",
|
|
2592
2592
|
gap: "16px"
|
|
2593
2593
|
},
|
|
2594
|
-
children: l ? l({ filter: a }) : /* @__PURE__ */ d(
|
|
2594
|
+
children: l ? l({ filter: a }) : /* @__PURE__ */ d(J, { children: [
|
|
2595
2595
|
/* @__PURE__ */ d(f, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flex: 1, minWidth: 0 }, children: [
|
|
2596
2596
|
a,
|
|
2597
2597
|
n
|
|
@@ -2609,12 +2609,12 @@ const fn = te(
|
|
|
2609
2609
|
textWrap: "nowrap"
|
|
2610
2610
|
},
|
|
2611
2611
|
children: t.map(
|
|
2612
|
-
({ title: u, icon: g, buttonProps: m, onClick:
|
|
2612
|
+
({ title: u, icon: g, buttonProps: m, onClick: x }, v) => !u && !g ? null : /* @__PURE__ */ e(
|
|
2613
2613
|
R,
|
|
2614
2614
|
{
|
|
2615
2615
|
fullWidth: !s,
|
|
2616
2616
|
iconLeft: g ? /* @__PURE__ */ e(k, { name: g }) : void 0,
|
|
2617
|
-
onClick:
|
|
2617
|
+
onClick: x,
|
|
2618
2618
|
...m,
|
|
2619
2619
|
children: u
|
|
2620
2620
|
},
|
|
@@ -2627,7 +2627,7 @@ const fn = te(
|
|
|
2627
2627
|
] })
|
|
2628
2628
|
}
|
|
2629
2629
|
);
|
|
2630
|
-
},
|
|
2630
|
+
}, Qr = ({
|
|
2631
2631
|
totalData: t,
|
|
2632
2632
|
withMarginBottom: r = !0,
|
|
2633
2633
|
withMarginTop: n = !0
|
|
@@ -2658,7 +2658,7 @@ const fn = te(
|
|
|
2658
2658
|
/* @__PURE__ */ e(me.Body1, { children: t || 0 })
|
|
2659
2659
|
]
|
|
2660
2660
|
}
|
|
2661
|
-
),
|
|
2661
|
+
), Pr = ({
|
|
2662
2662
|
pagination: t,
|
|
2663
2663
|
pageKey: r = "page",
|
|
2664
2664
|
perPageKey: n = "perPage",
|
|
@@ -2674,7 +2674,7 @@ const fn = te(
|
|
|
2674
2674
|
[n]: A,
|
|
2675
2675
|
[r]: "1"
|
|
2676
2676
|
});
|
|
2677
|
-
},
|
|
2677
|
+
}, x = (t == null ? void 0 : t.rangeStart) ?? (((t == null ? void 0 : t.currentPage) || 0) > 1 ? (((t == null ? void 0 : t.currentPage) || 0) - 1) * ((t == null ? void 0 : t.perPage) || 0) + 1 : 1), v = (t == null ? void 0 : t.rangeEnd) ?? ((t == null ? void 0 : t.totalCurrentPage) !== (t == null ? void 0 : t.perPage) ? t == null ? void 0 : t.totalData : ((t == null ? void 0 : t.currentPage) || 1) * ((t == null ? void 0 : t.totalCurrentPage) || 0));
|
|
2678
2678
|
return /* @__PURE__ */ e(
|
|
2679
2679
|
f,
|
|
2680
2680
|
{
|
|
@@ -2691,7 +2691,7 @@ const fn = te(
|
|
|
2691
2691
|
borderTop: "1px solid var(--sa-border-subtle, #0b120e24)",
|
|
2692
2692
|
flexShrink: 0
|
|
2693
2693
|
},
|
|
2694
|
-
children: i ? /* @__PURE__ */ d(
|
|
2694
|
+
children: i ? /* @__PURE__ */ d(J, { children: [
|
|
2695
2695
|
/* @__PURE__ */ d(f, { style: { display: "flex", flexDirection: "row", gap: "8px", alignItems: "center", textWrap: "nowrap" }, children: [
|
|
2696
2696
|
/* @__PURE__ */ e(C, { children: "Rows Per Page: " }),
|
|
2697
2697
|
/* @__PURE__ */ e(
|
|
@@ -2711,10 +2711,10 @@ const fn = te(
|
|
|
2711
2711
|
defaultValue: u ? [{ label: `${u} per row`, value: u }] : [{ label: `${l} per row`, value: `${l}` }]
|
|
2712
2712
|
}
|
|
2713
2713
|
),
|
|
2714
|
-
/* @__PURE__ */ e(C, { children: `${
|
|
2714
|
+
/* @__PURE__ */ e(C, { children: `${x}-${v} of ${(t == null ? void 0 : t.totalData) || 0}` })
|
|
2715
2715
|
] }),
|
|
2716
2716
|
/* @__PURE__ */ e(
|
|
2717
|
-
|
|
2717
|
+
qt,
|
|
2718
2718
|
{
|
|
2719
2719
|
currentPage: t != null && t.currentPage ? Number(t == null ? void 0 : t.currentPage) : 1,
|
|
2720
2720
|
totalCount: t != null && t.totalPage ? Number(t == null ? void 0 : t.totalPage) : 1,
|
|
@@ -2722,7 +2722,7 @@ const fn = te(
|
|
|
2722
2722
|
}
|
|
2723
2723
|
)
|
|
2724
2724
|
] }) : /* @__PURE__ */ e(
|
|
2725
|
-
|
|
2725
|
+
Qr,
|
|
2726
2726
|
{
|
|
2727
2727
|
totalData: o,
|
|
2728
2728
|
withMarginBottom: !1,
|
|
@@ -2732,7 +2732,7 @@ const fn = te(
|
|
|
2732
2732
|
}
|
|
2733
2733
|
);
|
|
2734
2734
|
}, Yr = ({ filter: t, columnTitle: r }) => {
|
|
2735
|
-
const [n, l] = B(!1), i = le(null), o = le(null), s = le(null), [a, h] = B(""), [u, g] = B({ top: 0, left: 0 }), m = t.selectedValues,
|
|
2735
|
+
const [n, l] = B(!1), i = le(null), o = le(null), s = le(null), [a, h] = B(""), [u, g] = B({ top: 0, left: 0 }), m = t.selectedValues, x = De(() => a ? t.options.filter(
|
|
2736
2736
|
(D) => D.label.toLowerCase().includes(a.toLowerCase())
|
|
2737
2737
|
) : t.options, [t.options, a]);
|
|
2738
2738
|
U(() => {
|
|
@@ -2903,7 +2903,7 @@ const fn = te(
|
|
|
2903
2903
|
)
|
|
2904
2904
|
]
|
|
2905
2905
|
}
|
|
2906
|
-
) :
|
|
2906
|
+
) : x.length > 0 ? /* @__PURE__ */ e(f, { style: { gap: "2px", paddingTop: "4px", paddingBottom: "4px" }, children: x.map((D) => /* @__PURE__ */ d(
|
|
2907
2907
|
f,
|
|
2908
2908
|
{
|
|
2909
2909
|
style: {
|
|
@@ -3092,38 +3092,38 @@ const fn = te(
|
|
|
3092
3092
|
showHeadBorder: u = !1,
|
|
3093
3093
|
scrollParentRef: g,
|
|
3094
3094
|
frozenCount: m = 0,
|
|
3095
|
-
onFrozenCountChange:
|
|
3095
|
+
onFrozenCountChange: x,
|
|
3096
3096
|
customActions: v,
|
|
3097
3097
|
actionsOrder: A = ["detail", "update", "delete", "custom"],
|
|
3098
3098
|
customEmptyState: D,
|
|
3099
3099
|
enableColumnResize: T = !1,
|
|
3100
3100
|
defaultColumnWidths: j,
|
|
3101
3101
|
onColumnWidthsChange: Z,
|
|
3102
|
-
defaultMinColumnWidth:
|
|
3102
|
+
defaultMinColumnWidth: Q = 60,
|
|
3103
3103
|
sort: M,
|
|
3104
3104
|
defaultSort: fe,
|
|
3105
|
-
onSortChange:
|
|
3105
|
+
onSortChange: P,
|
|
3106
3106
|
showActionDivider: V = !1
|
|
3107
3107
|
}) => {
|
|
3108
3108
|
const K = M !== void 0, [oe, ce] = B(
|
|
3109
3109
|
fe ?? null
|
|
3110
|
-
), _ = K ? M ?? null : oe, ae = (
|
|
3111
|
-
if (
|
|
3112
|
-
if (typeof
|
|
3113
|
-
}, se = (
|
|
3114
|
-
const w = ae(
|
|
3110
|
+
), _ = K ? M ?? null : oe, ae = (p) => {
|
|
3111
|
+
if (p.sortKey) return p.sortKey;
|
|
3112
|
+
if (typeof p.accessor == "string") return p.accessor;
|
|
3113
|
+
}, se = (p) => {
|
|
3114
|
+
const w = ae(p);
|
|
3115
3115
|
if (!w) return;
|
|
3116
3116
|
let b;
|
|
3117
|
-
!_ || _.key !== w ? b = { key: w, direction: "asc" } : _.direction === "asc" ? b = { key: w, direction: "desc" } : b = null, K || ce(b),
|
|
3118
|
-
}, Y = [n, l, i].filter((
|
|
3119
|
-
if (!w) return
|
|
3120
|
-
if (typeof w == "function") return w(
|
|
3121
|
-
if (typeof w == "string") return
|
|
3122
|
-
}, [
|
|
3117
|
+
!_ || _.key !== w ? b = { key: w, direction: "asc" } : _.direction === "asc" ? b = { key: w, direction: "desc" } : b = null, K || ce(b), P == null || P(b);
|
|
3118
|
+
}, Y = [n, l, i].filter((p) => p !== void 0).length, G = !!v, z = !!n || !!l || !!i || G, I = "var(--sa-border-subtle, #0b120e24)", X = `1px solid ${I}`, de = `inset 1px 0 0 ${I}`, he = `inset -1px 0 0 ${I}`, Me = Y === 3 ? G ? "178px" : "140px" : Y === 2 ? G ? "140px" : "102px" : Y === 1 ? G ? "112px" : "74px" : G ? "74px" : "", Ie = (p, w) => {
|
|
3119
|
+
if (!w) return p;
|
|
3120
|
+
if (typeof w == "function") return w(p);
|
|
3121
|
+
if (typeof w == "string") return p[w];
|
|
3122
|
+
}, [Qe, Te] = B(!1);
|
|
3123
3123
|
U(() => {
|
|
3124
3124
|
if (!(g != null && g.current)) return;
|
|
3125
|
-
const
|
|
3126
|
-
Te(
|
|
3125
|
+
const p = g.current;
|
|
3126
|
+
Te(p.scrollHeight > p.clientHeight);
|
|
3127
3127
|
}, [r, g]);
|
|
3128
3128
|
const Le = le(null), [ie, Oe] = B([]), [We, Be] = B(
|
|
3129
3129
|
() => j ?? {}
|
|
@@ -3133,56 +3133,56 @@ const fn = te(
|
|
|
3133
3133
|
Oe([]);
|
|
3134
3134
|
return;
|
|
3135
3135
|
}
|
|
3136
|
-
const
|
|
3136
|
+
const p = Array.from(
|
|
3137
3137
|
Le.current.querySelectorAll("thead tr th")
|
|
3138
3138
|
), w = [];
|
|
3139
3139
|
let b = 0;
|
|
3140
|
-
|
|
3140
|
+
p.forEach((L, H) => {
|
|
3141
3141
|
w[H] = b, H < m && (b += L.offsetWidth);
|
|
3142
3142
|
}), Oe(w);
|
|
3143
3143
|
}, [m, t, r, We]);
|
|
3144
|
-
const Ne = (
|
|
3145
|
-
|
|
3146
|
-
}, y = (
|
|
3147
|
-
const b = We[
|
|
3144
|
+
const Ne = (p) => {
|
|
3145
|
+
x && x(p < m ? p : p + 1);
|
|
3146
|
+
}, y = (p, w) => {
|
|
3147
|
+
const b = We[p];
|
|
3148
3148
|
if (b !== void 0) {
|
|
3149
3149
|
const L = `${b}px`;
|
|
3150
3150
|
return { width: L, minWidth: L, maxWidth: L };
|
|
3151
3151
|
}
|
|
3152
3152
|
return w ? { width: w } : {};
|
|
3153
|
-
}, S = (
|
|
3154
|
-
|
|
3155
|
-
const b =
|
|
3153
|
+
}, S = (p) => T && (p.resizable ?? !0), F = (p, w) => {
|
|
3154
|
+
p.preventDefault(), p.stopPropagation();
|
|
3155
|
+
const b = p.currentTarget.closest("th");
|
|
3156
3156
|
if (!b) return;
|
|
3157
3157
|
const L = Math.round(b.getBoundingClientRect().width);
|
|
3158
|
-
ke.current = { colIndex: w, startX:
|
|
3158
|
+
ke.current = { colIndex: w, startX: p.clientX, startWidth: L };
|
|
3159
3159
|
const H = document.body.style.userSelect, ne = document.body.style.cursor;
|
|
3160
3160
|
document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
|
|
3161
|
-
const ye = (
|
|
3161
|
+
const ye = (pe) => {
|
|
3162
3162
|
var Se;
|
|
3163
|
-
const
|
|
3164
|
-
if (!
|
|
3165
|
-
const je = ((Se = t[
|
|
3163
|
+
const xe = ke.current;
|
|
3164
|
+
if (!xe) return;
|
|
3165
|
+
const je = ((Se = t[xe.colIndex]) == null ? void 0 : Se.minWidth) ?? Q, Ae = Math.max(je, xe.startWidth + (pe.clientX - xe.startX));
|
|
3166
3166
|
Be(
|
|
3167
|
-
(
|
|
3167
|
+
(Pe) => Pe[xe.colIndex] === Ae ? Pe : { ...Pe, [xe.colIndex]: Ae }
|
|
3168
3168
|
);
|
|
3169
3169
|
}, ve = () => {
|
|
3170
|
-
document.removeEventListener("mousemove", ye), document.removeEventListener("mouseup", ve), document.body.style.userSelect = H, document.body.style.cursor = ne, ke.current = null, Z && Be((
|
|
3170
|
+
document.removeEventListener("mousemove", ye), document.removeEventListener("mouseup", ve), document.body.style.userSelect = H, document.body.style.cursor = ne, ke.current = null, Z && Be((pe) => (Z(pe), pe));
|
|
3171
3171
|
};
|
|
3172
3172
|
document.addEventListener("mousemove", ye), document.addEventListener("mouseup", ve);
|
|
3173
3173
|
};
|
|
3174
3174
|
return /* @__PURE__ */ e("div", { ref: Le, children: /* @__PURE__ */ d(Et, { fullWidth: !0, children: [
|
|
3175
3175
|
/* @__PURE__ */ e(
|
|
3176
|
-
|
|
3176
|
+
Gt,
|
|
3177
3177
|
{
|
|
3178
3178
|
style: {
|
|
3179
3179
|
height: "40px",
|
|
3180
3180
|
whiteSpace: "nowrap"
|
|
3181
3181
|
},
|
|
3182
3182
|
children: /* @__PURE__ */ d(He, { children: [
|
|
3183
|
-
t.map((
|
|
3183
|
+
t.map((p, w) => {
|
|
3184
3184
|
var je, Ae;
|
|
3185
|
-
const b = m > 0 && w < m, L = ie[w] ?? 0, H = S(
|
|
3185
|
+
const b = m > 0 && w < m, L = ie[w] ?? 0, H = S(p), ye = w === t.length - 1 && z && V, ve = ae(p), pe = !!p.sortable && !!ve, xe = pe && (_ == null ? void 0 : _.key) === ve ? _.direction : null;
|
|
3186
3186
|
return /* @__PURE__ */ d(
|
|
3187
3187
|
ht,
|
|
3188
3188
|
{
|
|
@@ -3196,8 +3196,8 @@ const fn = te(
|
|
|
3196
3196
|
borderBottom: u ? X : void 0,
|
|
3197
3197
|
boxShadow: u && b ? he : void 0,
|
|
3198
3198
|
backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
|
|
3199
|
-
textAlign:
|
|
3200
|
-
...y(w,
|
|
3199
|
+
textAlign: p.textAlign === "text-right" ? "right" : p.textAlign === "text-center" ? "center" : "left",
|
|
3200
|
+
...y(w, p.width)
|
|
3201
3201
|
},
|
|
3202
3202
|
children: [
|
|
3203
3203
|
/* @__PURE__ */ d(
|
|
@@ -3211,12 +3211,12 @@ const fn = te(
|
|
|
3211
3211
|
minWidth: 0
|
|
3212
3212
|
},
|
|
3213
3213
|
children: [
|
|
3214
|
-
|
|
3214
|
+
pe ? /* @__PURE__ */ d(
|
|
3215
3215
|
"button",
|
|
3216
3216
|
{
|
|
3217
3217
|
type: "button",
|
|
3218
|
-
onClick: () => se(
|
|
3219
|
-
title:
|
|
3218
|
+
onClick: () => se(p),
|
|
3219
|
+
title: xe === "asc" ? "Sorted ascending — click to sort descending" : xe === "desc" ? "Sorted descending — click to clear" : "Click to sort ascending",
|
|
3220
3220
|
style: {
|
|
3221
3221
|
flex: 1,
|
|
3222
3222
|
minWidth: 0,
|
|
@@ -3230,7 +3230,7 @@ const fn = te(
|
|
|
3230
3230
|
font: "inherit",
|
|
3231
3231
|
color: "inherit",
|
|
3232
3232
|
cursor: "pointer",
|
|
3233
|
-
textAlign:
|
|
3233
|
+
textAlign: p.textAlign === "text-right" ? "right" : p.textAlign === "text-center" ? "center" : "left"
|
|
3234
3234
|
},
|
|
3235
3235
|
children: [
|
|
3236
3236
|
/* @__PURE__ */ e(
|
|
@@ -3243,10 +3243,10 @@ const fn = te(
|
|
|
3243
3243
|
textOverflow: "ellipsis",
|
|
3244
3244
|
whiteSpace: "nowrap"
|
|
3245
3245
|
},
|
|
3246
|
-
children:
|
|
3246
|
+
children: p.title || ((je = p.accessor) == null ? void 0 : je.toString())
|
|
3247
3247
|
}
|
|
3248
3248
|
),
|
|
3249
|
-
/* @__PURE__ */ e(Xr, { direction:
|
|
3249
|
+
/* @__PURE__ */ e(Xr, { direction: xe })
|
|
3250
3250
|
]
|
|
3251
3251
|
}
|
|
3252
3252
|
) : /* @__PURE__ */ e(
|
|
@@ -3259,17 +3259,17 @@ const fn = te(
|
|
|
3259
3259
|
textOverflow: "ellipsis",
|
|
3260
3260
|
whiteSpace: "nowrap"
|
|
3261
3261
|
},
|
|
3262
|
-
children:
|
|
3262
|
+
children: p.title || ((Ae = p.accessor) == null ? void 0 : Ae.toString())
|
|
3263
3263
|
}
|
|
3264
3264
|
),
|
|
3265
|
-
|
|
3265
|
+
p.filter && /* @__PURE__ */ e(
|
|
3266
3266
|
Yr,
|
|
3267
3267
|
{
|
|
3268
|
-
filter:
|
|
3269
|
-
columnTitle:
|
|
3268
|
+
filter: p.filter,
|
|
3269
|
+
columnTitle: p.title
|
|
3270
3270
|
}
|
|
3271
3271
|
),
|
|
3272
|
-
|
|
3272
|
+
x && /* @__PURE__ */ e(
|
|
3273
3273
|
"button",
|
|
3274
3274
|
{
|
|
3275
3275
|
onClick: () => Ne(w),
|
|
@@ -3318,7 +3318,7 @@ const fn = te(
|
|
|
3318
3318
|
`table-head-${w}`
|
|
3319
3319
|
);
|
|
3320
3320
|
}),
|
|
3321
|
-
|
|
3321
|
+
z ? /* @__PURE__ */ e(
|
|
3322
3322
|
ht,
|
|
3323
3323
|
{
|
|
3324
3324
|
style: {
|
|
@@ -3335,19 +3335,19 @@ const fn = te(
|
|
|
3335
3335
|
] })
|
|
3336
3336
|
}
|
|
3337
3337
|
),
|
|
3338
|
-
/* @__PURE__ */ e(
|
|
3338
|
+
/* @__PURE__ */ e(Jt, { children: o ? /* @__PURE__ */ e(He, { children: /* @__PURE__ */ e(we, { colSpan: t.length + 1, children: /* @__PURE__ */ d(f, { style: { gap: "16px" }, children: [
|
|
3339
3339
|
/* @__PURE__ */ e(Re, { variant: "list" }),
|
|
3340
3340
|
/* @__PURE__ */ e(Re, { variant: "list" }),
|
|
3341
3341
|
/* @__PURE__ */ e(Re, { variant: "list" }),
|
|
3342
3342
|
/* @__PURE__ */ e(Re, { variant: "list" }),
|
|
3343
3343
|
/* @__PURE__ */ e(Re, { variant: "list" })
|
|
3344
|
-
] }) }) }) : !(r != null && r.length) && D ? /* @__PURE__ */ e(He, { children: /* @__PURE__ */ e(we, { colSpan: t.length + 1, children: D }) }) : r == null ? void 0 : r.map((
|
|
3344
|
+
] }) }) }) : !(r != null && r.length) && D ? /* @__PURE__ */ e(He, { children: /* @__PURE__ */ e(we, { colSpan: t.length + 1, children: D }) }) : r == null ? void 0 : r.map((p, w) => /* @__PURE__ */ d(
|
|
3345
3345
|
He,
|
|
3346
3346
|
{
|
|
3347
3347
|
style: {
|
|
3348
3348
|
transition: "background-color 0.3s ease",
|
|
3349
3349
|
padding: 0,
|
|
3350
|
-
borderBottom: w === r.length - 1 &&
|
|
3350
|
+
borderBottom: w === r.length - 1 && Qe ? void 0 : "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
3351
3351
|
},
|
|
3352
3352
|
onMouseEnter: (b) => {
|
|
3353
3353
|
const L = b.currentTarget;
|
|
@@ -3363,7 +3363,7 @@ const fn = te(
|
|
|
3363
3363
|
},
|
|
3364
3364
|
children: [
|
|
3365
3365
|
t.map((b, L) => {
|
|
3366
|
-
const H = b.render ? b.render(
|
|
3366
|
+
const H = b.render ? b.render(p, w, r) : Ie(p, b.accessor), ne = m > 0 && L < m, ye = ie[L] ?? 0, ve = We[L] !== void 0, pe = ne && L === m - 1;
|
|
3367
3367
|
return /* @__PURE__ */ e(
|
|
3368
3368
|
we,
|
|
3369
3369
|
{
|
|
@@ -3378,7 +3378,7 @@ const fn = te(
|
|
|
3378
3378
|
overflow: ve ? "hidden" : void 0,
|
|
3379
3379
|
borderLeft: b.showBorderLeft ? X : void 0,
|
|
3380
3380
|
borderRight: b.showBorderRight ? X : void 0,
|
|
3381
|
-
boxShadow:
|
|
3381
|
+
boxShadow: pe ? he : void 0,
|
|
3382
3382
|
textAlign: b.textAlign === "text-right" ? "right" : b.textAlign === "text-center" ? "center" : "left",
|
|
3383
3383
|
...y(L, b.width)
|
|
3384
3384
|
},
|
|
@@ -3398,7 +3398,7 @@ const fn = te(
|
|
|
3398
3398
|
`row-${w}-col-${L}`
|
|
3399
3399
|
);
|
|
3400
3400
|
}),
|
|
3401
|
-
|
|
3401
|
+
z ? /* @__PURE__ */ e(we, { style: {
|
|
3402
3402
|
width: Me,
|
|
3403
3403
|
position: "sticky",
|
|
3404
3404
|
right: 0,
|
|
@@ -3408,38 +3408,38 @@ const fn = te(
|
|
|
3408
3408
|
transition: "background-color 0.3s ease"
|
|
3409
3409
|
}, children: /* @__PURE__ */ e($, { direction: "row", align: "center", justify: "center", gap: "sm", children: A.map((b) => {
|
|
3410
3410
|
const L = w === r.length - 1 ? "top" : "bottom";
|
|
3411
|
-
return b === "detail" && n && (h == null ? void 0 : h(
|
|
3411
|
+
return b === "detail" && n && (h == null ? void 0 : h(p)) !== !1 ? /* @__PURE__ */ e(ue, { label: "Detail", position: L, children: /* @__PURE__ */ e(
|
|
3412
3412
|
R,
|
|
3413
3413
|
{
|
|
3414
3414
|
size: "xs",
|
|
3415
3415
|
variant: "outline",
|
|
3416
3416
|
tone: "neutral",
|
|
3417
|
-
onClick: () => n(
|
|
3417
|
+
onClick: () => n(p.id, p),
|
|
3418
3418
|
iconLeft: /* @__PURE__ */ e(k, { name: "DocumentClean", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
3419
3419
|
}
|
|
3420
|
-
) }, "detail") : b === "update" && l && (a == null ? void 0 : a(
|
|
3420
|
+
) }, "detail") : b === "update" && l && (a == null ? void 0 : a(p)) !== !1 ? /* @__PURE__ */ e(ue, { label: "Update", position: L, children: /* @__PURE__ */ e(
|
|
3421
3421
|
R,
|
|
3422
3422
|
{
|
|
3423
3423
|
size: "xs",
|
|
3424
3424
|
variant: "outline",
|
|
3425
3425
|
tone: "neutral",
|
|
3426
|
-
onClick: () => l(
|
|
3426
|
+
onClick: () => l(p),
|
|
3427
3427
|
iconLeft: /* @__PURE__ */ e(k, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
3428
3428
|
}
|
|
3429
|
-
) }, "update") : b === "delete" && i && (s == null ? void 0 : s(
|
|
3429
|
+
) }, "update") : b === "delete" && i && (s == null ? void 0 : s(p)) !== !1 ? /* @__PURE__ */ e(ue, { label: "Delete", position: L, children: /* @__PURE__ */ e(
|
|
3430
3430
|
R,
|
|
3431
3431
|
{
|
|
3432
3432
|
size: "xs",
|
|
3433
3433
|
variant: "outline",
|
|
3434
3434
|
tone: "neutral",
|
|
3435
|
-
onClick: () => i(
|
|
3435
|
+
onClick: () => i(p.id, p),
|
|
3436
3436
|
iconLeft: /* @__PURE__ */ e(k, { name: "Trash1", size: "sm", style: { color: "var(--sa-color-error-600, #c9184a)" } })
|
|
3437
3437
|
}
|
|
3438
|
-
) }, "delete") : b === "custom" ? /* @__PURE__ */ e(Lt.Fragment, { children: v == null ? void 0 : v(
|
|
3438
|
+
) }, "delete") : b === "custom" ? /* @__PURE__ */ e(Lt.Fragment, { children: v == null ? void 0 : v(p) }, "custom") : null;
|
|
3439
3439
|
}) }) }) : null
|
|
3440
3440
|
]
|
|
3441
3441
|
},
|
|
3442
|
-
`${
|
|
3442
|
+
`${p}${w}`
|
|
3443
3443
|
)) })
|
|
3444
3444
|
] }) });
|
|
3445
3445
|
}, ti = ({
|
|
@@ -3454,8 +3454,8 @@ const fn = te(
|
|
|
3454
3454
|
), a = (n == null ? void 0 : n.show) ?? !0, h = le(null), u = (m = r == null ? void 0 : r.pagination) == null ? void 0 : m.totalData;
|
|
3455
3455
|
typeof u == "number" && (h.current = u);
|
|
3456
3456
|
const g = (l == null ? void 0 : l.showFooter) ?? (u === void 0 ? h.current !== 0 : u !== 0);
|
|
3457
|
-
return /* @__PURE__ */ d(
|
|
3458
|
-
a && /* @__PURE__ */ e(
|
|
3457
|
+
return /* @__PURE__ */ d(Gr, { ...t, children: [
|
|
3458
|
+
a && /* @__PURE__ */ e(Jr, { ...n }),
|
|
3459
3459
|
/* @__PURE__ */ e(
|
|
3460
3460
|
f,
|
|
3461
3461
|
{
|
|
@@ -3477,7 +3477,7 @@ const fn = te(
|
|
|
3477
3477
|
}
|
|
3478
3478
|
),
|
|
3479
3479
|
g && /* @__PURE__ */ e(
|
|
3480
|
-
|
|
3480
|
+
Pr,
|
|
3481
3481
|
{
|
|
3482
3482
|
pagination: r == null ? void 0 : r.pagination,
|
|
3483
3483
|
pageKey: r == null ? void 0 : r.pageKey,
|
|
@@ -3503,7 +3503,7 @@ const kn = ri(ti), dt = ({
|
|
|
3503
3503
|
children: n,
|
|
3504
3504
|
loading: l,
|
|
3505
3505
|
isLoading: i
|
|
3506
|
-
}) => /* @__PURE__ */ e(
|
|
3506
|
+
}) => /* @__PURE__ */ e(J, { children: i ? l : t ? n : r }), N = (t) => /* @__PURE__ */ e(
|
|
3507
3507
|
C,
|
|
3508
3508
|
{
|
|
3509
3509
|
...t,
|
|
@@ -3848,7 +3848,7 @@ function Hn(t) {
|
|
|
3848
3848
|
function Vn(t) {
|
|
3849
3849
|
return /^[A-Za-z\s]+$/.test(t);
|
|
3850
3850
|
}
|
|
3851
|
-
const
|
|
3851
|
+
const zn = (t) => {
|
|
3852
3852
|
const r = /^[0-9]$/, n = [
|
|
3853
3853
|
"ArrowLeft",
|
|
3854
3854
|
"ArrowRight",
|
|
@@ -3860,7 +3860,7 @@ const In = (t) => {
|
|
|
3860
3860
|
"Tab"
|
|
3861
3861
|
];
|
|
3862
3862
|
(t.ctrlKey || t.metaKey) && (t.key === "a" || t.key === "c" || t.key === "v") || !r.test(t.key) && !n.includes(t.key) && t.preventDefault();
|
|
3863
|
-
},
|
|
3863
|
+
}, In = (t) => {
|
|
3864
3864
|
const r = /^[0-9]$/, n = [
|
|
3865
3865
|
"ArrowLeft",
|
|
3866
3866
|
"ArrowRight",
|
|
@@ -4027,7 +4027,7 @@ const gi = (t) => {
|
|
|
4027
4027
|
}
|
|
4028
4028
|
n.current && n.current.click();
|
|
4029
4029
|
}, i = ee("md");
|
|
4030
|
-
return /* @__PURE__ */ d(
|
|
4030
|
+
return /* @__PURE__ */ d(J, { children: [
|
|
4031
4031
|
/* @__PURE__ */ e(
|
|
4032
4032
|
"input",
|
|
4033
4033
|
{
|
|
@@ -4161,7 +4161,7 @@ const gi = (t) => {
|
|
|
4161
4161
|
]
|
|
4162
4162
|
}
|
|
4163
4163
|
);
|
|
4164
|
-
},
|
|
4164
|
+
}, xi = ({
|
|
4165
4165
|
size: t = "md",
|
|
4166
4166
|
direction: r = "vertical",
|
|
4167
4167
|
requiredTitle: n = "(Required)",
|
|
@@ -4239,11 +4239,11 @@ const gi = (t) => {
|
|
|
4239
4239
|
children: /* @__PURE__ */ e(
|
|
4240
4240
|
dt,
|
|
4241
4241
|
{
|
|
4242
|
-
of: (m = o.checkBoxesList) == null ? void 0 : m.map((
|
|
4243
|
-
...
|
|
4244
|
-
isChecked: o.checkBoxesAreChecked.includes(
|
|
4242
|
+
of: (m = o.checkBoxesList) == null ? void 0 : m.map((x) => ({
|
|
4243
|
+
...x,
|
|
4244
|
+
isChecked: o.checkBoxesAreChecked.includes(x.id)
|
|
4245
4245
|
})),
|
|
4246
|
-
render: (
|
|
4246
|
+
render: (x) => x.renderBadge ? /* @__PURE__ */ d(
|
|
4247
4247
|
f,
|
|
4248
4248
|
{
|
|
4249
4249
|
direction: "row",
|
|
@@ -4254,26 +4254,26 @@ const gi = (t) => {
|
|
|
4254
4254
|
/* @__PURE__ */ e(
|
|
4255
4255
|
tt,
|
|
4256
4256
|
{
|
|
4257
|
-
name:
|
|
4258
|
-
value:
|
|
4259
|
-
checked:
|
|
4260
|
-
onChange: (v) => o.onChecked(v.target.value,
|
|
4261
|
-
label:
|
|
4262
|
-
description:
|
|
4257
|
+
name: x.name,
|
|
4258
|
+
value: x.id,
|
|
4259
|
+
checked: x.isChecked,
|
|
4260
|
+
onChange: (v) => o.onChecked(v.target.value, x),
|
|
4261
|
+
label: x.name,
|
|
4262
|
+
description: x.description
|
|
4263
4263
|
}
|
|
4264
4264
|
),
|
|
4265
|
-
|
|
4265
|
+
x.renderBadge
|
|
4266
4266
|
]
|
|
4267
4267
|
}
|
|
4268
4268
|
) : /* @__PURE__ */ e(
|
|
4269
4269
|
tt,
|
|
4270
4270
|
{
|
|
4271
|
-
name:
|
|
4272
|
-
value:
|
|
4273
|
-
checked:
|
|
4274
|
-
onChange: (v) => o.onChecked(v.target.value,
|
|
4275
|
-
label:
|
|
4276
|
-
description:
|
|
4271
|
+
name: x.name,
|
|
4272
|
+
value: x.id,
|
|
4273
|
+
checked: x.isChecked,
|
|
4274
|
+
onChange: (v) => o.onChecked(v.target.value, x),
|
|
4275
|
+
label: x.name,
|
|
4276
|
+
description: x.description
|
|
4277
4277
|
}
|
|
4278
4278
|
)
|
|
4279
4279
|
}
|
|
@@ -4284,7 +4284,7 @@ const gi = (t) => {
|
|
|
4284
4284
|
]
|
|
4285
4285
|
}
|
|
4286
4286
|
);
|
|
4287
|
-
},
|
|
4287
|
+
}, pi = ({
|
|
4288
4288
|
position: t = "vertical",
|
|
4289
4289
|
size: r = "md",
|
|
4290
4290
|
fullWidth: n = !1,
|
|
@@ -4333,10 +4333,10 @@ const gi = (t) => {
|
|
|
4333
4333
|
label: g,
|
|
4334
4334
|
value: s,
|
|
4335
4335
|
checked: h,
|
|
4336
|
-
onChange: (
|
|
4336
|
+
onChange: (x) => l.onChecked({
|
|
4337
4337
|
id: a,
|
|
4338
|
-
label:
|
|
4339
|
-
value:
|
|
4338
|
+
label: x.target.name,
|
|
4339
|
+
value: x.target.value
|
|
4340
4340
|
}),
|
|
4341
4341
|
disabled: l.disableAll
|
|
4342
4342
|
},
|
|
@@ -4432,7 +4432,7 @@ const gi = (t) => {
|
|
|
4432
4432
|
),
|
|
4433
4433
|
/* @__PURE__ */ d($, { gap: "xs", children: [
|
|
4434
4434
|
/* @__PURE__ */ e(
|
|
4435
|
-
|
|
4435
|
+
Qt,
|
|
4436
4436
|
{
|
|
4437
4437
|
ref: i.inputRef,
|
|
4438
4438
|
size: t,
|
|
@@ -4533,9 +4533,9 @@ const gi = (t) => {
|
|
|
4533
4533
|
...n
|
|
4534
4534
|
}) => {
|
|
4535
4535
|
const l = Xt(), i = (s) => {
|
|
4536
|
-
var h, u, g, m,
|
|
4536
|
+
var h, u, g, m, x, v;
|
|
4537
4537
|
if (!s) return;
|
|
4538
|
-
const a = n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (u = (h = l == null ? void 0 : l.computed) == null ? void 0 : h.red) == null ? void 0 : u[600] : t === "secondary-primary" ? (m = (g = l == null ? void 0 : l.computed) == null ? void 0 : g.blue) == null ? void 0 : m[700] : (v = (
|
|
4538
|
+
const a = n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (u = (h = l == null ? void 0 : l.computed) == null ? void 0 : h.red) == null ? void 0 : u[600] : t === "secondary-primary" ? (m = (g = l == null ? void 0 : l.computed) == null ? void 0 : g.blue) == null ? void 0 : m[700] : (v = (x = l == null ? void 0 : l.computed) == null ? void 0 : x.gray) == null ? void 0 : v[50];
|
|
4539
4539
|
return /* @__PURE__ */ e(k, { name: s, size: r, style: { color: a } });
|
|
4540
4540
|
}, o = () => {
|
|
4541
4541
|
var a, h, u, g;
|
|
@@ -4720,34 +4720,34 @@ const wt = {
|
|
|
4720
4720
|
maxFileSize: h = 2,
|
|
4721
4721
|
onError: u
|
|
4722
4722
|
}, g) => {
|
|
4723
|
-
const m = ee("md"), [
|
|
4723
|
+
const m = ee("md"), [x, v] = B(!1), [A, D] = B(null), [T, j] = B(!1), [Z, Q] = B({ x: 0, y: 0 }), [M, fe] = B(1), [P, V] = B(null);
|
|
4724
4724
|
U(() => {
|
|
4725
4725
|
r === null && i(null);
|
|
4726
4726
|
}, [r]);
|
|
4727
4727
|
const K = Ve(
|
|
4728
|
-
(
|
|
4729
|
-
V(
|
|
4728
|
+
(z, I) => {
|
|
4729
|
+
V(I);
|
|
4730
4730
|
},
|
|
4731
4731
|
[]
|
|
4732
|
-
), oe = (
|
|
4732
|
+
), oe = (z) => {
|
|
4733
4733
|
var de;
|
|
4734
|
-
const
|
|
4735
|
-
if (!
|
|
4734
|
+
const I = (de = z.target.files) == null ? void 0 : de[0];
|
|
4735
|
+
if (!I) return;
|
|
4736
4736
|
const X = new FileReader();
|
|
4737
4737
|
X.onload = () => {
|
|
4738
4738
|
D(X.result), j(!0);
|
|
4739
|
-
}, X.readAsDataURL(
|
|
4739
|
+
}, X.readAsDataURL(I);
|
|
4740
4740
|
}, ce = async () => {
|
|
4741
|
-
if (!(!A || !
|
|
4741
|
+
if (!(!A || !P))
|
|
4742
4742
|
try {
|
|
4743
|
-
const
|
|
4744
|
-
if (h &&
|
|
4743
|
+
const z = await ki(A, P);
|
|
4744
|
+
if (h && z.size > h * 1024 * 1024) {
|
|
4745
4745
|
u == null || u(`Ukuran file maksimal ${h}MB`);
|
|
4746
4746
|
return;
|
|
4747
4747
|
}
|
|
4748
|
-
t == null || t(
|
|
4749
|
-
const
|
|
4750
|
-
i(
|
|
4748
|
+
t == null || t(z);
|
|
4749
|
+
const I = URL.createObjectURL(z);
|
|
4750
|
+
i(I, z), j(!1);
|
|
4751
4751
|
} catch {
|
|
4752
4752
|
u == null || u("Gagal memproses gambar");
|
|
4753
4753
|
}
|
|
@@ -4756,13 +4756,13 @@ const wt = {
|
|
|
4756
4756
|
};
|
|
4757
4757
|
tr(g, () => ({
|
|
4758
4758
|
openFileDialog: () => {
|
|
4759
|
-
var
|
|
4760
|
-
(
|
|
4759
|
+
var z;
|
|
4760
|
+
(z = _.current) == null || z.click();
|
|
4761
4761
|
}
|
|
4762
4762
|
}));
|
|
4763
4763
|
const se = parseInt(o, 10), re = wt[s];
|
|
4764
|
-
let Y,
|
|
4765
|
-
return re >= 1 ? (
|
|
4764
|
+
let Y, G;
|
|
4765
|
+
return re >= 1 ? (G = se, Y = se * re) : (Y = se, G = se / re), /* @__PURE__ */ d(
|
|
4766
4766
|
f,
|
|
4767
4767
|
{
|
|
4768
4768
|
display: "flex",
|
|
@@ -4777,7 +4777,7 @@ const wt = {
|
|
|
4777
4777
|
justify: "center",
|
|
4778
4778
|
style: {
|
|
4779
4779
|
width: a != null && a.fullWidth ? "100%" : `${Y}px`,
|
|
4780
|
-
height: a != null && a.fullWidth ? "auto" : `${
|
|
4780
|
+
height: a != null && a.fullWidth ? "auto" : `${G}px`,
|
|
4781
4781
|
aspectRatio: re,
|
|
4782
4782
|
flexShrink: 0
|
|
4783
4783
|
},
|
|
@@ -4827,7 +4827,7 @@ const wt = {
|
|
|
4827
4827
|
style: {
|
|
4828
4828
|
inset: 0,
|
|
4829
4829
|
backgroundColor: "var(--sa-color-black-alpha-a30, #080f214a)",
|
|
4830
|
-
opacity:
|
|
4830
|
+
opacity: x ? 1 : 0,
|
|
4831
4831
|
transition: "opacity 0.3s ease-in-out"
|
|
4832
4832
|
},
|
|
4833
4833
|
onClick: ae,
|
|
@@ -4917,7 +4917,7 @@ const wt = {
|
|
|
4917
4917
|
display: "flex",
|
|
4918
4918
|
flexDirection: "column"
|
|
4919
4919
|
},
|
|
4920
|
-
onClick: (
|
|
4920
|
+
onClick: (z) => z.stopPropagation(),
|
|
4921
4921
|
children: [
|
|
4922
4922
|
/* @__PURE__ */ e(
|
|
4923
4923
|
"div",
|
|
@@ -4935,7 +4935,7 @@ const wt = {
|
|
|
4935
4935
|
crop: Z,
|
|
4936
4936
|
zoom: M,
|
|
4937
4937
|
aspect: s ? wt[s] : void 0,
|
|
4938
|
-
onCropChange:
|
|
4938
|
+
onCropChange: Q,
|
|
4939
4939
|
onZoomChange: fe,
|
|
4940
4940
|
onCropComplete: K,
|
|
4941
4941
|
objectFit: "contain",
|
|
@@ -5135,7 +5135,7 @@ const wt = {
|
|
|
5135
5135
|
}, [t]);
|
|
5136
5136
|
const h = (g = s.find((m) => m.id === r)) == null ? void 0 : g.isActive, u = Ve(() => {
|
|
5137
5137
|
a(
|
|
5138
|
-
(m) => m.map((
|
|
5138
|
+
(m) => m.map((x) => x.id === r ? { ...x, isActive: !x.isActive } : x)
|
|
5139
5139
|
), n && n(!h);
|
|
5140
5140
|
}, [r, n, h]);
|
|
5141
5141
|
return /* @__PURE__ */ e(
|
|
@@ -5161,8 +5161,8 @@ const wt = {
|
|
|
5161
5161
|
InputText: ii,
|
|
5162
5162
|
InputDropdown: ni,
|
|
5163
5163
|
InputSingleFile: yi,
|
|
5164
|
-
CheckBoxOptions:
|
|
5165
|
-
RadioOptions:
|
|
5164
|
+
CheckBoxOptions: xi,
|
|
5165
|
+
RadioOptions: pi,
|
|
5166
5166
|
InputTextArea: Ci,
|
|
5167
5167
|
ToggleForm: Di,
|
|
5168
5168
|
ActionButton: vi,
|
|
@@ -5220,17 +5220,17 @@ const wt = {
|
|
|
5220
5220
|
)
|
|
5221
5221
|
}
|
|
5222
5222
|
);
|
|
5223
|
-
}, Un = ({ pageLayout: t, children: r }) => {
|
|
5224
|
-
const
|
|
5223
|
+
}, Un = ({ pageLayout: t, children: r, wrapperProps: n, containerProps: l }) => {
|
|
5224
|
+
const i = ee("md"), o = (l == null ? void 0 : l.customWidth) ?? 264;
|
|
5225
5225
|
return /* @__PURE__ */ d(
|
|
5226
5226
|
f,
|
|
5227
5227
|
{
|
|
5228
5228
|
display: "block",
|
|
5229
5229
|
direction: "row",
|
|
5230
|
-
|
|
5231
|
-
marginTop: "lg",
|
|
5230
|
+
...n,
|
|
5232
5231
|
style: {
|
|
5233
|
-
marginRight:
|
|
5232
|
+
marginRight: i ? o : 24,
|
|
5233
|
+
...(n == null ? void 0 : n.style) ?? {}
|
|
5234
5234
|
},
|
|
5235
5235
|
children: [
|
|
5236
5236
|
t,
|
|
@@ -5243,23 +5243,23 @@ const wt = {
|
|
|
5243
5243
|
top: "top-0",
|
|
5244
5244
|
bottom: "bottom-0",
|
|
5245
5245
|
right: "right-0",
|
|
5246
|
-
customWidth:
|
|
5247
|
-
style: {
|
|
5248
|
-
marginTop: 57,
|
|
5249
|
-
backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
|
|
5250
|
-
borderColor: "var(--sa-border-subtle, #0b120e24)"
|
|
5251
|
-
},
|
|
5246
|
+
customWidth: 264,
|
|
5252
5247
|
borderStyle: "border-solid-l",
|
|
5253
5248
|
borderWidth: "border-l",
|
|
5254
|
-
|
|
5255
|
-
|
|
5249
|
+
...l,
|
|
5250
|
+
style: {
|
|
5251
|
+
marginTop: "4rem",
|
|
5252
|
+
backgroundColor: "var(--sa-background-white, #ffffff)",
|
|
5253
|
+
borderColor: "var(--sa-border-subtle, #0b120e24)",
|
|
5254
|
+
...(l == null ? void 0 : l.style) ?? {}
|
|
5255
|
+
},
|
|
5256
5256
|
children: r
|
|
5257
5257
|
}
|
|
5258
5258
|
)
|
|
5259
5259
|
]
|
|
5260
5260
|
}
|
|
5261
5261
|
);
|
|
5262
|
-
},
|
|
5262
|
+
}, qn = ({
|
|
5263
5263
|
children: t,
|
|
5264
5264
|
withScrollToTopButton: r = !1,
|
|
5265
5265
|
scrollToTopButtonProps: n,
|
|
@@ -5295,7 +5295,7 @@ const wt = {
|
|
|
5295
5295
|
t
|
|
5296
5296
|
]
|
|
5297
5297
|
}
|
|
5298
|
-
) }),
|
|
5298
|
+
) }), Gn = ({ fields: t }) => /* @__PURE__ */ e(f, { display: "flex", direction: "column", gap: "lg", children: /* @__PURE__ */ e(
|
|
5299
5299
|
dt,
|
|
5300
5300
|
{
|
|
5301
5301
|
of: t,
|
|
@@ -5307,12 +5307,12 @@ const wt = {
|
|
|
5307
5307
|
/* @__PURE__ */ e(C, { color: "gray-500", variant: "sub-h3", children: t })
|
|
5308
5308
|
] }) : /* @__PURE__ */ e(C, { color: "gray-500", variant: "sub-h3", children: t }),
|
|
5309
5309
|
typeof r == "string" ? /* @__PURE__ */ e(C, { variant: "sub-h3", children: r }) : r
|
|
5310
|
-
] }),
|
|
5310
|
+
] }), q = {
|
|
5311
5311
|
silhouette: "#A7B0AC",
|
|
5312
5312
|
accent: "#78867F"
|
|
5313
5313
|
};
|
|
5314
5314
|
function Wi({ width: t, height: r }) {
|
|
5315
|
-
return /* @__PURE__ */ e(
|
|
5315
|
+
return /* @__PURE__ */ e(J, { children: /* @__PURE__ */ d(
|
|
5316
5316
|
"svg",
|
|
5317
5317
|
{
|
|
5318
5318
|
width: t || "100",
|
|
@@ -5325,112 +5325,112 @@ function Wi({ width: t, height: r }) {
|
|
|
5325
5325
|
"path",
|
|
5326
5326
|
{
|
|
5327
5327
|
d: "M51.0002 16.8145C36.0811 16.8145 24.8296 21.3801 24.8296 27.4328V76.5344C24.8296 82.573 36.0799 87.127 51.0002 87.127C65.9204 87.127 77.1707 82.573 77.1707 76.5344V27.4328C77.1707 21.3801 65.9204 16.8145 51.0002 16.8145ZM51.0002 19.1582C65.0602 19.1582 74.8582 23.5187 74.8582 27.4328C74.8582 30.1363 70.1615 32.9664 63.1708 34.4746C55.861 36.0543 46.1416 36.0543 38.8318 34.4746C31.8399 32.9664 27.1432 30.1363 27.1432 27.4328C27.1432 23.5187 36.9402 19.1582 51.0002 19.1582ZM74.8582 31.9199V43.784C74.8582 46.532 70.3142 49.2941 63.2737 50.8328C63.2391 50.8375 63.2032 50.8434 63.1697 50.8504C57.6867 52.0352 50.8498 52.3305 44.6893 51.7387C42.6358 51.5418 40.6575 51.2453 38.8306 50.8504C38.8029 50.8445 38.7682 50.8387 38.7347 50.8352C32.5707 49.4898 28.318 47.2047 27.3514 44.8141C27.2138 44.4719 27.1421 44.1285 27.1421 43.7852V31.9199C27.1999 31.9715 27.2693 32.0207 27.3294 32.0723C27.5052 32.2246 27.6902 32.3758 27.8844 32.5234C27.9954 32.609 28.1064 32.6934 28.2232 32.7766C28.4371 32.9301 28.6637 33.0801 28.8973 33.2289C29.0083 33.2992 29.1135 33.3719 29.2291 33.441C29.5702 33.6473 29.9275 33.8488 30.3044 34.0434C30.3195 34.0516 30.3333 34.0598 30.3484 34.068C30.7427 34.2707 31.1601 34.4652 31.5925 34.6551C31.7301 34.716 31.8758 34.7734 32.0168 34.832C32.3221 34.9598 32.6331 35.0852 32.9557 35.207C33.1303 35.2727 33.3095 35.3359 33.4887 35.4004C33.8032 35.5117 34.1247 35.6207 34.4542 35.7273C34.6404 35.7871 34.8254 35.8469 35.015 35.9043C35.3734 36.0133 35.7434 36.1164 36.1181 36.2184C36.2915 36.2652 36.4603 36.3145 36.6361 36.3602C37.1911 36.5031 37.7588 36.6402 38.3485 36.7668C42.1595 37.5906 46.5336 38.0254 50.999 38.0254C55.4644 38.0254 59.8397 37.5906 63.6495 36.768C64.2404 36.6402 64.8092 36.5031 65.3666 36.3602C65.5377 36.3156 65.7007 36.2688 65.8684 36.223C66.2499 36.1199 66.6246 36.0145 66.9888 35.9031C67.1749 35.8469 67.3553 35.7883 67.5368 35.7309C67.8745 35.623 68.2028 35.5105 68.5243 35.3969C68.6966 35.3359 68.8677 35.275 69.0353 35.2117C69.3672 35.0863 69.6852 34.9574 69.9985 34.8262C70.1326 34.7699 70.2725 34.7148 70.4032 34.6574C70.8379 34.4664 71.2576 34.2707 71.6542 34.0668C71.66 34.0633 71.6658 34.0609 71.6716 34.0574C72.0589 33.8582 72.4243 33.6508 72.7735 33.441C72.8868 33.3719 72.9909 33.3016 73.1007 33.2313C73.3354 33.0813 73.5632 32.9312 73.7794 32.7766C73.8951 32.6934 74.0049 32.609 74.1159 32.5258C74.3102 32.377 74.4963 32.2258 74.6732 32.0723C74.7322 32.0207 74.8027 31.9727 74.8594 31.9211L74.8582 31.9199ZM74.8582 48.2887V60.1598C74.8582 62.8773 70.3396 65.6359 63.335 67.2004C63.2737 67.2051 63.2136 67.2156 63.1547 67.2285C59.5021 68.016 55.2482 68.4109 50.9955 68.4098C48.8692 68.4098 46.7428 68.3113 44.6917 68.1145C42.6405 67.9176 40.6656 67.6211 38.8399 67.2273C38.7832 67.2133 38.7266 67.2051 38.6699 67.2004C31.663 65.6359 27.1432 62.8785 27.1432 60.1598V48.2887C27.2022 48.3426 27.2739 48.393 27.3352 48.4457C27.5075 48.5945 27.6878 48.7422 27.8763 48.8875C27.9908 48.9754 28.1052 49.0633 28.2255 49.15C28.4348 49.3 28.6568 49.4477 28.8834 49.593C28.999 49.6668 29.1089 49.7418 29.228 49.8145C29.5633 50.0172 29.9136 50.2152 30.2825 50.4074C30.3114 50.4227 30.338 50.4379 30.3669 50.452C30.7507 50.6488 31.1566 50.8398 31.5775 51.0262C31.722 51.0895 31.8746 51.1504 32.0226 51.2125C32.3198 51.3379 32.6227 51.4609 32.9372 51.5793C33.1164 51.6473 33.2991 51.7129 33.4841 51.7785C33.7917 51.8887 34.1073 51.9953 34.4299 52.0996C34.6196 52.1605 34.8092 52.2227 35.0046 52.2812C35.3584 52.3891 35.7238 52.4922 36.0938 52.593C36.2684 52.641 36.4395 52.6902 36.6176 52.7359C37.1714 52.8789 37.738 53.016 38.3253 53.1426C38.3554 53.1496 38.3889 53.1555 38.4236 53.159C42.2161 53.9723 46.5636 54.4023 51.0013 54.4023C55.439 54.4023 59.7784 53.9734 63.5697 53.1613C63.6056 53.1566 63.6414 53.1508 63.6773 53.1426C64.2647 53.0148 64.8312 52.8789 65.3851 52.7359C65.5643 52.6902 65.7342 52.6398 65.9088 52.593C66.2788 52.4922 66.6442 52.3891 66.998 52.2812C67.1934 52.2215 67.3831 52.1605 67.5727 52.0996C67.8953 51.9953 68.2109 51.8887 68.5185 51.7785C68.7023 51.7129 68.8862 51.6473 69.0654 51.5793C69.3799 51.4598 69.6817 51.3367 69.98 51.2125C70.128 51.1504 70.2806 51.0895 70.4252 51.0262C70.846 50.841 71.2507 50.65 71.6357 50.452C71.6646 50.4367 71.6912 50.4215 71.7201 50.4074C72.0901 50.2152 72.4405 50.0172 72.7747 49.8145C72.8949 49.7418 73.0036 49.6668 73.1192 49.593C73.347 49.4477 73.5678 49.3 73.7771 49.15C73.8974 49.0633 74.0118 48.9766 74.1263 48.8875C74.3148 48.7422 74.4952 48.5945 74.6674 48.4457C74.7287 48.393 74.7992 48.3426 74.8582 48.2887ZM74.8582 76.5355C74.8582 80.4367 65.0602 84.7844 51.0002 84.7844C36.9402 84.7844 27.1421 80.4367 27.1421 76.5355V64.6469C27.1987 64.6984 27.2693 64.7477 27.3282 64.7992C27.5028 64.9504 27.6844 65.0992 27.8763 65.2469C27.9873 65.3324 28.0995 65.418 28.2162 65.5023C28.4302 65.6559 28.6568 65.807 28.8892 65.9559C28.9979 66.0262 29.1019 66.0977 29.2152 66.1656C29.5691 66.3801 29.9367 66.591 30.3299 66.7937C30.331 66.7937 30.3322 66.7938 30.3333 66.7961C30.7253 66.9988 31.1404 67.1945 31.5694 67.3855C31.7058 67.4465 31.8515 67.5039 31.9914 67.5637C32.2955 67.6926 32.6054 67.8191 32.928 67.9422C33.1002 68.0078 33.2772 68.0711 33.4541 68.1355C33.7674 68.248 34.0888 68.3582 34.4184 68.466C34.6034 68.5258 34.7872 68.5867 34.9768 68.6453C35.3341 68.7555 35.703 68.8609 36.0764 68.9641C36.2476 69.0109 36.4141 69.0602 36.5887 69.1059C37.1413 69.2512 37.7079 69.3895 38.2941 69.5195C38.3462 69.5312 38.3993 69.5383 38.4514 69.543C42.2369 70.3516 46.5717 70.7793 50.999 70.7793C55.4263 70.7793 59.7599 70.3527 63.5478 69.543C63.5998 69.5383 63.653 69.5312 63.705 69.5195C64.2912 69.3906 64.8578 69.2512 65.4105 69.1059C65.5839 69.0602 65.7493 69.0121 65.9192 68.9652C66.295 68.8621 66.665 68.7555 67.0246 68.6453C67.2131 68.5879 67.3958 68.5281 67.5785 68.4684C67.9092 68.3605 68.2329 68.2492 68.5486 68.1355C68.7231 68.0723 68.8977 68.009 69.0689 67.9445C69.3938 67.8203 69.7071 67.6926 70.0135 67.5625C70.1511 67.5039 70.2933 67.4477 70.4275 67.3879C71.29 67.0047 72.0774 66.5969 72.7851 66.1668C72.8972 66.0988 73.0001 66.0273 73.1088 65.9582C73.3424 65.8082 73.5702 65.657 73.7852 65.5023C73.9008 65.4191 74.0118 65.3336 74.1217 65.2492C74.3148 65.1016 74.4975 64.9516 74.6732 64.7992C74.7322 64.7488 74.8016 64.6996 74.8582 64.648V76.5355Z",
|
|
5328
|
-
fill:
|
|
5328
|
+
fill: q.silhouette
|
|
5329
5329
|
}
|
|
5330
5330
|
),
|
|
5331
5331
|
/* @__PURE__ */ e(
|
|
5332
5332
|
"path",
|
|
5333
5333
|
{
|
|
5334
5334
|
d: "M33.2089 38.8535C31.3993 38.8535 29.9263 40.3453 29.9263 42.1805C29.9263 44.0156 31.3982 45.5062 33.2089 45.5062C35.0196 45.5062 36.4903 44.0145 36.4903 42.1805C36.4903 40.3465 35.0184 38.8535 33.2089 38.8535ZM33.2089 43.1625C32.6735 43.1625 32.2388 42.7219 32.2388 42.1805C32.2388 41.6391 32.6735 41.1973 33.2089 41.1973C33.7442 41.1973 34.1778 41.6379 34.1778 42.1805C34.1778 42.723 33.7431 43.1625 33.2089 43.1625Z",
|
|
5335
|
-
fill:
|
|
5335
|
+
fill: q.silhouette
|
|
5336
5336
|
}
|
|
5337
5337
|
),
|
|
5338
5338
|
/* @__PURE__ */ e(
|
|
5339
5339
|
"path",
|
|
5340
5340
|
{
|
|
5341
5341
|
d: "M33.2089 54.6777C31.3993 54.6777 29.9263 56.1695 29.9263 58.0047C29.9263 59.8398 31.3982 61.3316 33.2089 61.3316C35.0196 61.3316 36.4903 59.8398 36.4903 58.0047C36.4903 56.1695 35.0184 54.6777 33.2089 54.6777ZM33.2089 58.9879C32.6735 58.9879 32.2388 58.5473 32.2388 58.0047C32.2388 57.4621 32.6735 57.0215 33.2089 57.0215C33.7442 57.0215 34.1778 57.4621 34.1778 58.0047C34.1778 58.5473 33.7431 58.9879 33.2089 58.9879Z",
|
|
5342
|
-
fill:
|
|
5342
|
+
fill: q.silhouette
|
|
5343
5343
|
}
|
|
5344
5344
|
),
|
|
5345
5345
|
/* @__PURE__ */ e(
|
|
5346
5346
|
"path",
|
|
5347
5347
|
{
|
|
5348
5348
|
d: "M33.2089 70.5C31.3993 70.5 29.9263 71.9918 29.9263 73.827C29.9263 75.6621 31.3982 77.1539 33.2089 77.1539C35.0196 77.1539 36.4903 75.6621 36.4903 73.827C36.4903 71.9918 35.0184 70.5 33.2089 70.5ZM33.2089 74.8102C32.6735 74.8102 32.2388 74.3695 32.2388 73.827C32.2388 73.2844 32.6735 72.8438 33.2089 72.8438C33.7442 72.8438 34.1778 73.2844 34.1778 73.827C34.1778 74.3695 33.7431 74.8102 33.2089 74.8102Z",
|
|
5349
|
-
fill:
|
|
5349
|
+
fill: q.silhouette
|
|
5350
5350
|
}
|
|
5351
5351
|
),
|
|
5352
5352
|
/* @__PURE__ */ e(
|
|
5353
5353
|
"path",
|
|
5354
5354
|
{
|
|
5355
5355
|
d: "M70.0215 38.2852C69.3821 38.2852 68.8652 38.809 68.8652 39.457V44.3332C68.8652 44.9812 69.3821 45.5051 70.0215 45.5051C70.6609 45.5051 71.1777 44.9812 71.1777 44.3332V39.457C71.1777 38.809 70.6609 38.2852 70.0215 38.2852Z",
|
|
5356
|
-
fill:
|
|
5356
|
+
fill: q.silhouette
|
|
5357
5357
|
}
|
|
5358
5358
|
),
|
|
5359
5359
|
/* @__PURE__ */ e(
|
|
5360
5360
|
"path",
|
|
5361
5361
|
{
|
|
5362
5362
|
d: "M70.0215 54.3926C69.3821 54.3926 68.8652 54.9164 68.8652 55.5645V60.4406C68.8652 61.0887 69.3821 61.6125 70.0215 61.6125C70.6609 61.6125 71.1777 61.0887 71.1777 60.4406V55.5645C71.1777 54.9164 70.6609 54.3926 70.0215 54.3926Z",
|
|
5363
|
-
fill:
|
|
5363
|
+
fill: q.silhouette
|
|
5364
5364
|
}
|
|
5365
5365
|
),
|
|
5366
5366
|
/* @__PURE__ */ e(
|
|
5367
5367
|
"path",
|
|
5368
5368
|
{
|
|
5369
5369
|
d: "M70.0215 70.5C69.3821 70.5 68.8652 71.0238 68.8652 71.6719V76.5492C68.8652 77.1973 69.3821 77.7211 70.0215 77.7211C70.6609 77.7211 71.1777 77.1973 71.1777 76.5492V71.6719C71.1777 71.0238 70.6609 70.5 70.0215 70.5Z",
|
|
5370
|
-
fill:
|
|
5370
|
+
fill: q.silhouette
|
|
5371
5371
|
}
|
|
5372
5372
|
),
|
|
5373
5373
|
/* @__PURE__ */ e(
|
|
5374
5374
|
"path",
|
|
5375
5375
|
{
|
|
5376
5376
|
d: "M65.77 39.7617C65.1306 39.7617 64.6138 40.2855 64.6138 40.9336V45.8098C64.6138 46.4578 65.1306 46.9816 65.77 46.9816C66.4094 46.9816 66.9263 46.4578 66.9263 45.8098V40.9336C66.9263 40.2855 66.4094 39.7617 65.77 39.7617Z",
|
|
5377
|
-
fill:
|
|
5377
|
+
fill: q.silhouette
|
|
5378
5378
|
}
|
|
5379
5379
|
),
|
|
5380
5380
|
/* @__PURE__ */ e(
|
|
5381
5381
|
"path",
|
|
5382
5382
|
{
|
|
5383
5383
|
d: "M65.77 55.8691C65.1306 55.8691 64.6138 56.393 64.6138 57.041V61.9172C64.6138 62.5652 65.1306 63.0891 65.77 63.0891C66.4094 63.0891 66.9263 62.5652 66.9263 61.9172V57.041C66.9263 56.393 66.4094 55.8691 65.77 55.8691Z",
|
|
5384
|
-
fill:
|
|
5384
|
+
fill: q.silhouette
|
|
5385
5385
|
}
|
|
5386
5386
|
),
|
|
5387
5387
|
/* @__PURE__ */ e(
|
|
5388
5388
|
"path",
|
|
5389
5389
|
{
|
|
5390
5390
|
d: "M65.77 71.9766C65.1306 71.9766 64.6138 72.5004 64.6138 73.1484V78.0246C64.6138 78.6727 65.1306 79.1965 65.77 79.1965C66.4094 79.1965 66.9263 78.6727 66.9263 78.0246V73.1484C66.9263 72.5004 66.4094 71.9766 65.77 71.9766Z",
|
|
5391
|
-
fill:
|
|
5391
|
+
fill: q.silhouette
|
|
5392
5392
|
}
|
|
5393
5393
|
),
|
|
5394
5394
|
/* @__PURE__ */ e(
|
|
5395
5395
|
"path",
|
|
5396
5396
|
{
|
|
5397
5397
|
d: "M61.2939 40.7246C60.6545 40.7246 60.1377 41.2484 60.1377 41.8965V46.7727C60.1377 47.4207 60.6545 47.9445 61.2939 47.9445C61.9334 47.9445 62.4502 47.4207 62.4502 46.7727V41.8965C62.4502 41.2484 61.9334 40.7246 61.2939 40.7246Z",
|
|
5398
|
-
fill:
|
|
5398
|
+
fill: q.silhouette
|
|
5399
5399
|
}
|
|
5400
5400
|
),
|
|
5401
5401
|
/* @__PURE__ */ e(
|
|
5402
5402
|
"path",
|
|
5403
5403
|
{
|
|
5404
5404
|
d: "M61.2939 56.832C60.6545 56.832 60.1377 57.3559 60.1377 58.0039V62.8801C60.1377 63.5281 60.6545 64.052 61.2939 64.052C61.9334 64.052 62.4502 63.5281 62.4502 62.8801V58.0039C62.4502 57.3559 61.9334 56.832 61.2939 56.832Z",
|
|
5405
|
-
fill:
|
|
5405
|
+
fill: q.silhouette
|
|
5406
5406
|
}
|
|
5407
5407
|
),
|
|
5408
5408
|
/* @__PURE__ */ e(
|
|
5409
5409
|
"path",
|
|
5410
5410
|
{
|
|
5411
5411
|
d: "M61.2939 72.9395C60.6545 72.9395 60.1377 73.4633 60.1377 74.1113V78.9875C60.1377 79.6355 60.6545 80.1594 61.2939 80.1594C61.9334 80.1594 62.4502 79.6355 62.4502 78.9875V74.1113C62.4502 73.4633 61.9334 72.9395 61.2939 72.9395Z",
|
|
5412
|
-
fill:
|
|
5412
|
+
fill: q.silhouette
|
|
5413
5413
|
}
|
|
5414
5414
|
),
|
|
5415
5415
|
/* @__PURE__ */ e(
|
|
5416
5416
|
"path",
|
|
5417
5417
|
{
|
|
5418
5418
|
d: "M39.0489 24.4037C39.131 24.4037 39.2154 24.3944 39.2986 24.3768C42.7316 23.6127 46.6755 23.185 51.0207 23.11C51.659 23.0983 52.1677 22.5651 52.1561 21.917C52.1446 21.2701 51.652 20.7451 50.9791 20.7662C46.4813 20.8448 42.3835 21.2889 38.8015 22.0881C38.1782 22.2264 37.7828 22.8522 37.9204 23.4838C38.0395 24.0311 38.5182 24.4037 39.0489 24.4037Z",
|
|
5419
|
-
fill:
|
|
5419
|
+
fill: q.silhouette
|
|
5420
5420
|
}
|
|
5421
5421
|
),
|
|
5422
5422
|
/* @__PURE__ */ e(
|
|
5423
5423
|
"path",
|
|
5424
5424
|
{
|
|
5425
5425
|
d: "M32.5406 26.6215C32.7407 26.6215 32.9442 26.57 33.128 26.4586C33.1315 26.4563 33.5096 26.2336 34.2889 25.9055C34.8786 25.6582 35.1584 24.9727 34.9144 24.3739C34.6704 23.775 33.9917 23.4926 33.4032 23.7399C32.4632 24.1348 31.9926 24.4149 31.9417 24.4465C31.396 24.7782 31.219 25.4942 31.544 26.0485C31.7613 26.4164 32.1452 26.6204 32.5395 26.6204L32.5406 26.6215Z",
|
|
5426
|
-
fill:
|
|
5426
|
+
fill: q.silhouette
|
|
5427
5427
|
}
|
|
5428
5428
|
),
|
|
5429
5429
|
/* @__PURE__ */ e(
|
|
5430
5430
|
"path",
|
|
5431
5431
|
{
|
|
5432
5432
|
d: "M92.7251 26.7272L82.3845 29.3124C81.6929 29.4856 80.9911 29.0642 80.8179 28.3727C80.6447 27.6799 81.066 26.978 81.7576 26.8048L92.0982 24.2196C92.791 24.0464 93.4929 24.4678 93.6661 25.1593C93.8393 25.8521 93.4179 26.554 92.7251 26.7272Z",
|
|
5433
|
-
fill:
|
|
5433
|
+
fill: q.accent,
|
|
5434
5434
|
fillOpacity: "0.65"
|
|
5435
5435
|
}
|
|
5436
5436
|
),
|
|
@@ -5438,7 +5438,7 @@ function Wi({ width: t, height: r }) {
|
|
|
5438
5438
|
"path",
|
|
5439
5439
|
{
|
|
5440
5440
|
d: "M94.4649 11.0082L80.2465 21.3488C79.6701 21.7676 78.8609 21.6409 78.4408 21.0632C78.022 20.4867 78.1487 19.6775 78.7265 19.2574L92.9448 8.91682C93.5213 8.49803 94.3305 8.6247 94.7505 9.20248C95.1693 9.77897 95.0414 10.5881 94.4649 11.0082Z",
|
|
5441
|
-
fill:
|
|
5441
|
+
fill: q.accent,
|
|
5442
5442
|
fillOpacity: "0.65"
|
|
5443
5443
|
}
|
|
5444
5444
|
),
|
|
@@ -5446,7 +5446,7 @@ function Wi({ width: t, height: r }) {
|
|
|
5446
5446
|
"path",
|
|
5447
5447
|
{
|
|
5448
5448
|
d: "M78.0091 10.6269L74.1314 17.0898C73.7643 17.7025 72.9706 17.9002 72.358 17.5331C71.7466 17.1673 71.5475 16.3724 71.9146 15.7597L75.7923 9.29684C76.1594 8.68545 76.9544 8.48769 77.5657 8.85349C78.1784 9.22058 78.3762 10.0155 78.0091 10.6269Z",
|
|
5449
|
-
fill:
|
|
5449
|
+
fill: q.accent,
|
|
5450
5450
|
fillOpacity: "0.65"
|
|
5451
5451
|
}
|
|
5452
5452
|
)
|
|
@@ -5454,7 +5454,7 @@ function Wi({ width: t, height: r }) {
|
|
|
5454
5454
|
}
|
|
5455
5455
|
) });
|
|
5456
5456
|
}
|
|
5457
|
-
const
|
|
5457
|
+
const Jn = ({
|
|
5458
5458
|
title: t = "create",
|
|
5459
5459
|
children: r,
|
|
5460
5460
|
onClickAction: n,
|
|
@@ -5469,9 +5469,9 @@ const Gn = ({
|
|
|
5469
5469
|
const g = () => {
|
|
5470
5470
|
switch (l) {
|
|
5471
5471
|
case "primary":
|
|
5472
|
-
return /* @__PURE__ */ e(
|
|
5472
|
+
return /* @__PURE__ */ e(J, { children: o ? /* @__PURE__ */ e(R, { primary: !0, iconLeft: o, onClick: n, children: h || t }) : /* @__PURE__ */ e(R, { primary: !0, onClick: n, children: h || t }) });
|
|
5473
5473
|
case "secondary":
|
|
5474
|
-
return /* @__PURE__ */ e(
|
|
5474
|
+
return /* @__PURE__ */ e(J, { children: o ? /* @__PURE__ */ e(R, { secondary: !0, iconLeft: o, onClick: n, children: i ? /* @__PURE__ */ e(
|
|
5475
5475
|
C,
|
|
5476
5476
|
{
|
|
5477
5477
|
fontFamily: "Poppins",
|
|
@@ -5482,9 +5482,9 @@ const Gn = ({
|
|
|
5482
5482
|
}
|
|
5483
5483
|
) : t }) : /* @__PURE__ */ e(R, { secondary: !0, onClick: n, children: h || t }) });
|
|
5484
5484
|
case "success":
|
|
5485
|
-
return /* @__PURE__ */ e(
|
|
5485
|
+
return /* @__PURE__ */ e(J, { children: o ? /* @__PURE__ */ e(R, { success: !0, iconLeft: o, onClick: n, children: h || t }) : /* @__PURE__ */ e(R, { success: !0, onClick: n, children: h || t }) });
|
|
5486
5486
|
default:
|
|
5487
|
-
return /* @__PURE__ */ e(
|
|
5487
|
+
return /* @__PURE__ */ e(J, { children: o ? /* @__PURE__ */ e(R, { primary: !0, iconLeft: o, onClick: n, children: h || t }) : /* @__PURE__ */ e(R, { primary: !0, onClick: n, children: h || t }) });
|
|
5488
5488
|
}
|
|
5489
5489
|
};
|
|
5490
5490
|
return /* @__PURE__ */ d(
|
|
@@ -5500,16 +5500,16 @@ const Gn = ({
|
|
|
5500
5500
|
customHeight: a,
|
|
5501
5501
|
children: [
|
|
5502
5502
|
u || /* @__PURE__ */ e(Wi, {}),
|
|
5503
|
-
/* @__PURE__ */ e(f, { children: r.map((m,
|
|
5503
|
+
/* @__PURE__ */ e(f, { children: r.map((m, x) => /* @__PURE__ */ e(
|
|
5504
5504
|
me.Body1,
|
|
5505
5505
|
{
|
|
5506
5506
|
props: {
|
|
5507
5507
|
align: "center",
|
|
5508
5508
|
textAlign: "center"
|
|
5509
5509
|
},
|
|
5510
|
-
children:
|
|
5510
|
+
children: x > 2 ? null : m
|
|
5511
5511
|
},
|
|
5512
|
-
|
|
5512
|
+
x
|
|
5513
5513
|
)) }),
|
|
5514
5514
|
s ? g() : null
|
|
5515
5515
|
]
|
|
@@ -5526,7 +5526,7 @@ const Gn = ({
|
|
|
5526
5526
|
cFFFFFF: "#FFFFFF"
|
|
5527
5527
|
};
|
|
5528
5528
|
function Bi({ width: t, height: r }) {
|
|
5529
|
-
return /* @__PURE__ */ e(
|
|
5529
|
+
return /* @__PURE__ */ e(J, { children: /* @__PURE__ */ d(
|
|
5530
5530
|
"svg",
|
|
5531
5531
|
{
|
|
5532
5532
|
width: t,
|
|
@@ -5728,7 +5728,7 @@ function Bi({ width: t, height: r }) {
|
|
|
5728
5728
|
}
|
|
5729
5729
|
) });
|
|
5730
5730
|
}
|
|
5731
|
-
function
|
|
5731
|
+
function Qn({ onClick: t }) {
|
|
5732
5732
|
const r = ee("md");
|
|
5733
5733
|
return /* @__PURE__ */ d(
|
|
5734
5734
|
f,
|
|
@@ -5786,7 +5786,7 @@ const W = {
|
|
|
5786
5786
|
cFFFFFF: "#FFFFFF"
|
|
5787
5787
|
};
|
|
5788
5788
|
function Ai({ width: t, height: r }) {
|
|
5789
|
-
return /* @__PURE__ */ e(
|
|
5789
|
+
return /* @__PURE__ */ e(J, { children: /* @__PURE__ */ d(
|
|
5790
5790
|
"svg",
|
|
5791
5791
|
{
|
|
5792
5792
|
width: t,
|
|
@@ -6000,7 +6000,7 @@ function Ai({ width: t, height: r }) {
|
|
|
6000
6000
|
}
|
|
6001
6001
|
) });
|
|
6002
6002
|
}
|
|
6003
|
-
function
|
|
6003
|
+
function Pn({ onClick: t }) {
|
|
6004
6004
|
const r = ee("md");
|
|
6005
6005
|
return /* @__PURE__ */ d(
|
|
6006
6006
|
f,
|
|
@@ -6037,7 +6037,7 @@ const c = {
|
|
|
6037
6037
|
cFFFFFF: "#FFFFFF"
|
|
6038
6038
|
};
|
|
6039
6039
|
function Ri({ width: t, height: r }) {
|
|
6040
|
-
return /* @__PURE__ */ e(
|
|
6040
|
+
return /* @__PURE__ */ e(J, { children: /* @__PURE__ */ d(
|
|
6041
6041
|
"svg",
|
|
6042
6042
|
{
|
|
6043
6043
|
width: t,
|
|
@@ -6762,7 +6762,7 @@ const Xn = (t) => {
|
|
|
6762
6762
|
},
|
|
6763
6763
|
children: [
|
|
6764
6764
|
/* @__PURE__ */ e(Fe, { ...t.dialogTitleProps, children: typeof t.title == "string" ? /* @__PURE__ */ e(C, { fontSize: "lg", fontWeight: "medium", children: t.title }) : t.title }),
|
|
6765
|
-
/* @__PURE__ */ e(
|
|
6765
|
+
/* @__PURE__ */ e(qe, { children: typeof t.description == "string" ? /* @__PURE__ */ e(C, { fontSize: "md", lineHeight: "leading-6", color: "tertiary", children: t.description }) : t.description }),
|
|
6766
6766
|
/* @__PURE__ */ e(lt, { children: /* @__PURE__ */ e(
|
|
6767
6767
|
f,
|
|
6768
6768
|
{
|
|
@@ -6822,18 +6822,18 @@ const Xn = (t) => {
|
|
|
6822
6822
|
titleTag: u,
|
|
6823
6823
|
action: g,
|
|
6824
6824
|
actionContainer: m,
|
|
6825
|
-
containerProps:
|
|
6825
|
+
containerProps: x,
|
|
6826
6826
|
bodyProps: v,
|
|
6827
6827
|
headerProps: A = { borderBottom: !0 },
|
|
6828
6828
|
footerProps: D = { borderTop: !0 },
|
|
6829
6829
|
variantTag: T = "info"
|
|
6830
6830
|
}) => {
|
|
6831
|
-
const j = le(null), [Z,
|
|
6831
|
+
const j = le(null), [Z, Q] = B("100vh");
|
|
6832
6832
|
U(() => {
|
|
6833
6833
|
const V = () => {
|
|
6834
6834
|
if (j.current) {
|
|
6835
6835
|
const K = j.current.getBoundingClientRect().top;
|
|
6836
|
-
|
|
6836
|
+
Q(`calc(100vh - ${K}px)`);
|
|
6837
6837
|
}
|
|
6838
6838
|
};
|
|
6839
6839
|
return V(), window.addEventListener("resize", V), () => window.removeEventListener("resize", V);
|
|
@@ -6853,7 +6853,7 @@ const Xn = (t) => {
|
|
|
6853
6853
|
/* @__PURE__ */ e(f, { ...m, children: g ?? null })
|
|
6854
6854
|
]
|
|
6855
6855
|
}
|
|
6856
|
-
),
|
|
6856
|
+
), P = !!(s || h || g);
|
|
6857
6857
|
return /* @__PURE__ */ d(
|
|
6858
6858
|
f,
|
|
6859
6859
|
{
|
|
@@ -6865,15 +6865,15 @@ const Xn = (t) => {
|
|
|
6865
6865
|
paddingInline: i,
|
|
6866
6866
|
bg: "white",
|
|
6867
6867
|
direction: "column",
|
|
6868
|
-
...
|
|
6868
|
+
...x,
|
|
6869
6869
|
style: {
|
|
6870
6870
|
backgroundColor: "var(--sa-background-primary, #ffffff)",
|
|
6871
6871
|
display: "flex",
|
|
6872
6872
|
minHeight: Z,
|
|
6873
|
-
...(
|
|
6873
|
+
...(x == null ? void 0 : x.style) ?? {}
|
|
6874
6874
|
},
|
|
6875
6875
|
children: [
|
|
6876
|
-
s !== null &&
|
|
6876
|
+
s !== null && P ? /* @__PURE__ */ e(Nt, { ...A, children: fe() }) : null,
|
|
6877
6877
|
/* @__PURE__ */ e(
|
|
6878
6878
|
f,
|
|
6879
6879
|
{
|
|
@@ -6910,7 +6910,7 @@ const Xn = (t) => {
|
|
|
6910
6910
|
)) });
|
|
6911
6911
|
}
|
|
6912
6912
|
), tl = (t) => {
|
|
6913
|
-
const { defaultTab: r = 0, paramKey: n = "tab" } = t || {}, [l, i] =
|
|
6913
|
+
const { defaultTab: r = 0, paramKey: n = "tab" } = t || {}, [l, i] = Je(), o = Ge(l.toString());
|
|
6914
6914
|
return {
|
|
6915
6915
|
activeTab: o[n] ? parseInt(o[n]) : r,
|
|
6916
6916
|
handleTabChange: (h) => {
|
|
@@ -6927,7 +6927,7 @@ function rl({
|
|
|
6927
6927
|
menuConfig: r,
|
|
6928
6928
|
formatTitle: n
|
|
6929
6929
|
}) {
|
|
6930
|
-
const l =
|
|
6930
|
+
const l = ze();
|
|
6931
6931
|
U(() => {
|
|
6932
6932
|
let i = null, o = null;
|
|
6933
6933
|
for (const h of r) {
|
|
@@ -6944,7 +6944,7 @@ function rl({
|
|
|
6944
6944
|
}, [l.pathname]);
|
|
6945
6945
|
}
|
|
6946
6946
|
const il = () => {
|
|
6947
|
-
const [t, r] =
|
|
6947
|
+
const [t, r] = Je(), n = Ge(t.toString()), l = Rt(), i = ze(), o = l.id;
|
|
6948
6948
|
return {
|
|
6949
6949
|
// query params
|
|
6950
6950
|
setSearchParams: r,
|
|
@@ -6969,17 +6969,17 @@ function nl(t) {
|
|
|
6969
6969
|
var h, u;
|
|
6970
6970
|
const o = ((u = (h = r == null ? void 0 : r.access) == null ? void 0 : h.role) == null ? void 0 : u.code) ?? "", s = Object.keys(t.role).reduce(
|
|
6971
6971
|
(g, m) => {
|
|
6972
|
-
const
|
|
6973
|
-
return { ...g, [
|
|
6972
|
+
const x = `is${m.toLowerCase().replace(/(^\w|_\w)/g, (v) => v.replace("_", "").toUpperCase())}`;
|
|
6973
|
+
return { ...g, [x]: !1 };
|
|
6974
6974
|
},
|
|
6975
6975
|
{}
|
|
6976
6976
|
);
|
|
6977
6977
|
return {
|
|
6978
6978
|
...Object.keys(t.role).reduce((g, m) => {
|
|
6979
|
-
const
|
|
6979
|
+
const x = `is${m.toLowerCase().replace(/(^\w|_\w)/g, (v) => v.replace("_", "").toUpperCase())}`;
|
|
6980
6980
|
return {
|
|
6981
6981
|
...g,
|
|
6982
|
-
[
|
|
6982
|
+
[x]: o === t.role[m]
|
|
6983
6983
|
};
|
|
6984
6984
|
}, s),
|
|
6985
6985
|
hasRole: (g) => o === t.role[g],
|
|
@@ -6988,8 +6988,8 @@ function nl(t) {
|
|
|
6988
6988
|
}, [(i = (l = r == null ? void 0 : r.access) == null ? void 0 : l.role) == null ? void 0 : i.code, t]);
|
|
6989
6989
|
}
|
|
6990
6990
|
export {
|
|
6991
|
-
|
|
6992
|
-
|
|
6991
|
+
pn as ActionMenu,
|
|
6992
|
+
qr as AdvanceFilterBar,
|
|
6993
6993
|
sn as App,
|
|
6994
6994
|
sr as AppComponent,
|
|
6995
6995
|
Ht as AppContext,
|
|
@@ -7001,10 +7001,10 @@ export {
|
|
|
7001
7001
|
ei as DataTable,
|
|
7002
7002
|
O as DecisionWrapper,
|
|
7003
7003
|
dt as EachUtils,
|
|
7004
|
-
|
|
7004
|
+
Jn as EmptyStatePage,
|
|
7005
7005
|
Ur as FilterDrawer,
|
|
7006
|
-
|
|
7007
|
-
|
|
7006
|
+
qn as FloatingFooter,
|
|
7007
|
+
Pn as ForbiddenPage,
|
|
7008
7008
|
_n as Form,
|
|
7009
7009
|
Kn as FullSection,
|
|
7010
7010
|
gn as HorizontalField,
|
|
@@ -7013,25 +7013,25 @@ export {
|
|
|
7013
7013
|
mn as ModalDialog,
|
|
7014
7014
|
un as ModuleSwitcher,
|
|
7015
7015
|
hr as ModuleSwitcherModal,
|
|
7016
|
-
|
|
7016
|
+
Qn as NotFoundPage,
|
|
7017
7017
|
yn as PageLayout,
|
|
7018
7018
|
Ot as Pressable,
|
|
7019
7019
|
Dr as RightDrawer,
|
|
7020
7020
|
Mi as ScrollToTopButton,
|
|
7021
|
-
|
|
7021
|
+
xn as Section,
|
|
7022
7022
|
jt as SectionFooter,
|
|
7023
7023
|
Nt as SectionHeader,
|
|
7024
7024
|
el as SelectButton,
|
|
7025
7025
|
Yn as ServerErrorPage,
|
|
7026
7026
|
cr as SidebarBadgesProvider,
|
|
7027
7027
|
dr as SidebarHeaderSlot,
|
|
7028
|
-
|
|
7029
|
-
|
|
7028
|
+
Pr as TableFooter,
|
|
7029
|
+
Jr as TableHeader,
|
|
7030
7030
|
kn as TableSection,
|
|
7031
|
-
|
|
7031
|
+
Gr as TableWrapper,
|
|
7032
7032
|
$n as ToggleStatus,
|
|
7033
7033
|
me as Typography,
|
|
7034
|
-
|
|
7034
|
+
Gn as VerticalField,
|
|
7035
7035
|
dn as clearModuleSelection,
|
|
7036
7036
|
Sn as createInitialFromUserName,
|
|
7037
7037
|
Wn as cssVars,
|
|
@@ -7057,8 +7057,8 @@ export {
|
|
|
7057
7057
|
Fn as parseIndonesianDateToDate,
|
|
7058
7058
|
jn as preventNonCoordinateInput,
|
|
7059
7059
|
Tn as preventNonNumberAndDecimalInput,
|
|
7060
|
-
|
|
7061
|
-
|
|
7060
|
+
zn as preventNonNumberInput,
|
|
7061
|
+
In as preventNumberInput,
|
|
7062
7062
|
Nr as resolveDateRangeValueToString,
|
|
7063
7063
|
jr as resolveDateValueToString,
|
|
7064
7064
|
Tr as resolveDropdownValueToString,
|