@starasia/admin 8.1.1 → 8.1.3
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
|
@@ -5,7 +5,7 @@ import { Box as f } from "@starasia/box";
|
|
|
5
5
|
export * from "@starasia/box";
|
|
6
6
|
import { Breadcrumb as Dr, BreadcrumbItem as Vt, BreadcrumbLink as wr } from "@starasia/breadcrumb";
|
|
7
7
|
export * from "@starasia/breadcrumb";
|
|
8
|
-
import { Button as
|
|
8
|
+
import { Button as R } from "@starasia/button";
|
|
9
9
|
export * from "@starasia/button";
|
|
10
10
|
export * from "@starasia/card";
|
|
11
11
|
import { StarasiaDate as ir } from "@starasia/date";
|
|
@@ -44,7 +44,7 @@ import { Checkbox as Xe } from "@starasia/checkbox";
|
|
|
44
44
|
export * from "@starasia/checkbox";
|
|
45
45
|
import { Radio as zr } from "@starasia/radio";
|
|
46
46
|
export * from "@starasia/radio";
|
|
47
|
-
import { Text as
|
|
47
|
+
import { Text as b } from "@starasia/text";
|
|
48
48
|
export * from "@starasia/text";
|
|
49
49
|
import { Icon as S } from "@starasia/icon";
|
|
50
50
|
export * from "@starasia/icon";
|
|
@@ -59,7 +59,7 @@ import { Skeleton as _e } from "@starasia/skeleton";
|
|
|
59
59
|
export * from "@starasia/skeleton";
|
|
60
60
|
export * from "@starasia/progress-stepper";
|
|
61
61
|
import { jsx as e, Fragment as X, jsxs as u } from "react/jsx-runtime";
|
|
62
|
-
import Ke, { createContext as lt, useState as M, useContext as Re, useCallback as G, useMemo as ue, memo as
|
|
62
|
+
import Ke, { createContext as lt, useState as M, useContext as Re, useCallback as G, useMemo as ue, memo as be, useEffect as Z, useRef as oe, useLayoutEffect as bt, forwardRef as St, isValidElement as Ct, Children as Ar, useImperativeHandle as Ir } from "react";
|
|
63
63
|
import { useSearchParams as ot, useNavigate as Ft, useLocation as Pe, Outlet as Nt, Link as et, useParams as dr } from "react-router";
|
|
64
64
|
import Rr, { createPortal as ur } from "react-dom";
|
|
65
65
|
import Hr from "react-easy-crop";
|
|
@@ -141,7 +141,7 @@ const Vr = {
|
|
|
141
141
|
children: /* @__PURE__ */ e(Or, { children: a ? /* @__PURE__ */ e(Ot, { value: a, children: t }) : h ? /* @__PURE__ */ e(Ot, { value: h, children: t }) : t })
|
|
142
142
|
}
|
|
143
143
|
);
|
|
144
|
-
}, gl =
|
|
144
|
+
}, gl = be(_r);
|
|
145
145
|
function jr({
|
|
146
146
|
collapsed: t = !1,
|
|
147
147
|
children: r
|
|
@@ -326,7 +326,7 @@ const $t = () => /* @__PURE__ */ u(
|
|
|
326
326
|
cursor: "pointer",
|
|
327
327
|
textAlign: "left"
|
|
328
328
|
};
|
|
329
|
-
function
|
|
329
|
+
function bl({
|
|
330
330
|
children: t,
|
|
331
331
|
headerLeftSlot: r,
|
|
332
332
|
profile: n,
|
|
@@ -342,44 +342,44 @@ function Cl({
|
|
|
342
342
|
logoutButton: y
|
|
343
343
|
}) {
|
|
344
344
|
var ze, Ue;
|
|
345
|
-
const [x] = ot(), D = x.get("embed") === "true", p = fr(), { badges: E } = Nr(), W = Ft(), k = Pe(), C = !he("md"), [L, z] = M(!1), [F, j] = M(!1), [te, K] = M(!1), [$, ee] = M(!1), [Y,
|
|
345
|
+
const [x] = ot(), D = x.get("embed") === "true", p = fr(), { badges: E } = Nr(), W = Ft(), k = Pe(), C = !he("md"), [L, z] = M(!1), [F, j] = M(!1), [te, K] = M(!1), [$, ee] = M(!1), [Y, ne] = M(
|
|
346
346
|
() => new Set(jt)
|
|
347
|
-
), [
|
|
347
|
+
), [ie, re] = M(null), { selectedGroupId: P, setSelectedGroupId: q } = yr();
|
|
348
348
|
Z(() => {
|
|
349
349
|
jt = Y;
|
|
350
350
|
}, [Y]);
|
|
351
351
|
const ce = oe(null), ge = oe(null);
|
|
352
352
|
Z(() => {
|
|
353
|
-
const
|
|
354
|
-
if (!
|
|
355
|
-
const
|
|
356
|
-
Le || (Qe =
|
|
353
|
+
const v = ce.current;
|
|
354
|
+
if (!v) return;
|
|
355
|
+
const H = () => {
|
|
356
|
+
Le || (Qe = v.scrollTop);
|
|
357
357
|
};
|
|
358
|
-
return
|
|
358
|
+
return v.addEventListener("scroll", H), () => v.removeEventListener("scroll", H);
|
|
359
359
|
}, []);
|
|
360
360
|
const ye = () => {
|
|
361
|
-
const
|
|
362
|
-
|
|
361
|
+
const v = ce.current;
|
|
362
|
+
v && Qe > 0 && (Le = !0, v.scrollTop = Qe, requestAnimationFrame(() => {
|
|
363
363
|
Le = !1;
|
|
364
364
|
}));
|
|
365
365
|
};
|
|
366
|
-
|
|
366
|
+
bt(() => {
|
|
367
367
|
Le = !0, ye();
|
|
368
|
-
const
|
|
368
|
+
const v = setTimeout(() => {
|
|
369
369
|
Le = !1;
|
|
370
370
|
}, 300);
|
|
371
|
-
return () => clearTimeout(
|
|
372
|
-
}, []),
|
|
371
|
+
return () => clearTimeout(v);
|
|
372
|
+
}, []), bt(() => {
|
|
373
373
|
p.menus.length > 0 && (Qe > 0 ? ye() : requestAnimationFrame(() => {
|
|
374
|
-
var
|
|
375
|
-
const
|
|
374
|
+
var H;
|
|
375
|
+
const v = (H = ce.current) == null ? void 0 : H.querySelector(
|
|
376
376
|
"[data-menu-active='true']"
|
|
377
377
|
);
|
|
378
|
-
|
|
378
|
+
v && v.scrollIntoView({ block: "center", behavior: "instant" });
|
|
379
379
|
}));
|
|
380
380
|
}, [p.menus]), Z(() => {
|
|
381
381
|
Le = !0, ye();
|
|
382
|
-
const
|
|
382
|
+
const v = setTimeout(ye, 0), H = setTimeout(ye, 50), V = setTimeout(ye, 100), w = setTimeout(ye, 200), A = setTimeout(() => {
|
|
383
383
|
Le = !1;
|
|
384
384
|
}, 300), B = setTimeout(() => {
|
|
385
385
|
const I = ce.current, N = I == null ? void 0 : I.querySelector("[data-menu-active='true']");
|
|
@@ -389,7 +389,7 @@ function Cl({
|
|
|
389
389
|
}
|
|
390
390
|
}, 250);
|
|
391
391
|
return () => {
|
|
392
|
-
clearTimeout(
|
|
392
|
+
clearTimeout(v), clearTimeout(H), clearTimeout(V), clearTimeout(w), clearTimeout(A), clearTimeout(B);
|
|
393
393
|
};
|
|
394
394
|
}, [k.pathname]), Z(() => {
|
|
395
395
|
ge.current && (ge.current.scrollTop = 0);
|
|
@@ -404,71 +404,71 @@ function Cl({
|
|
|
404
404
|
z(!1);
|
|
405
405
|
}, at = () => {
|
|
406
406
|
z(!1), i();
|
|
407
|
-
}, Ge = (
|
|
408
|
-
const
|
|
409
|
-
return
|
|
407
|
+
}, Ge = (v) => {
|
|
408
|
+
const H = [v.to];
|
|
409
|
+
return v.children && H.push(...v.children.map((V) => V.to)), H;
|
|
410
410
|
}, Ve = [
|
|
411
|
-
...p.menus.flatMap((
|
|
411
|
+
...p.menus.flatMap((v) => v.items.flatMap(Ge)),
|
|
412
412
|
...((ze = p.menuBottom) == null ? void 0 : ze.flatMap(Ge)) ?? []
|
|
413
|
-
], fe = (
|
|
414
|
-
if (!k.pathname.startsWith(
|
|
415
|
-
const
|
|
416
|
-
return
|
|
413
|
+
], fe = (v) => {
|
|
414
|
+
if (!k.pathname.startsWith(v)) return !1;
|
|
415
|
+
const H = Ve.filter((V) => k.pathname.startsWith(V)).sort((V, w) => w.length - V.length)[0];
|
|
416
|
+
return v === H;
|
|
417
417
|
};
|
|
418
418
|
Z(() => {
|
|
419
|
-
var
|
|
420
|
-
const
|
|
419
|
+
var H;
|
|
420
|
+
const v = (V) => {
|
|
421
421
|
var w;
|
|
422
|
-
(w = V.children) != null && w.some((A) => k.pathname.startsWith(A.to)) &&
|
|
422
|
+
(w = V.children) != null && w.some((A) => k.pathname.startsWith(A.to)) && ne((A) => {
|
|
423
423
|
const B = new Set(A);
|
|
424
424
|
return B.add(V.id), B;
|
|
425
425
|
});
|
|
426
426
|
};
|
|
427
427
|
p.menus.forEach((V) => {
|
|
428
|
-
V.items.forEach(
|
|
429
|
-
}), (
|
|
428
|
+
V.items.forEach(v);
|
|
429
|
+
}), (H = p.menuBottom) == null || H.forEach(v);
|
|
430
430
|
}, [k.pathname, p.menus, p.menuBottom]);
|
|
431
|
-
const Je = (
|
|
432
|
-
|
|
433
|
-
const V = new Set(
|
|
434
|
-
return V.has(
|
|
431
|
+
const Je = (v) => {
|
|
432
|
+
ne((H) => {
|
|
433
|
+
const V = new Set(H);
|
|
434
|
+
return V.has(v) ? V.delete(v) : V.add(v), V;
|
|
435
435
|
});
|
|
436
436
|
};
|
|
437
437
|
Z(() => {
|
|
438
|
-
p.menus.length !== 0 && P !== null && !p.menus.some((
|
|
438
|
+
p.menus.length !== 0 && P !== null && !p.menus.some((v) => v.id === P) && q(null);
|
|
439
439
|
}, [p.menus, P, q]);
|
|
440
440
|
const Te = ue(() => {
|
|
441
441
|
if (P !== null)
|
|
442
442
|
return p.menus.filter(
|
|
443
443
|
(V) => V.id === P || V.parentGroupId === P
|
|
444
444
|
);
|
|
445
|
-
const
|
|
446
|
-
return
|
|
447
|
-
...
|
|
448
|
-
{ id: 18, name: "Pengaturan", items:
|
|
445
|
+
const v = p.menus.filter((V) => V.parentGroupId === void 0), H = p.menus.filter((V) => V.parentGroupId !== void 0).flatMap((V) => V.items);
|
|
446
|
+
return H.length === 0 ? v : [
|
|
447
|
+
...v,
|
|
448
|
+
{ id: 18, name: "Pengaturan", items: H, parentGroupId: void 0 }
|
|
449
449
|
];
|
|
450
450
|
}, [p.menus, P]);
|
|
451
451
|
if (D)
|
|
452
452
|
return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(Nt, {}) });
|
|
453
|
-
const Be = (
|
|
454
|
-
const
|
|
453
|
+
const Be = (v) => {
|
|
454
|
+
const H = v.children && v.children.length > 0, V = Y.has(v.id), w = H ? v.children.some((I) => fe(I.to)) : fe(v.to), A = ht(v.badge, E[v.id]), B = !!A && F && !C;
|
|
455
455
|
return /* @__PURE__ */ u("div", { "data-menu-active": w || void 0, children: [
|
|
456
456
|
/* @__PURE__ */ u(
|
|
457
457
|
"button",
|
|
458
458
|
{
|
|
459
459
|
onClick: (I) => {
|
|
460
|
-
if (
|
|
460
|
+
if (H)
|
|
461
461
|
if (F && !C) {
|
|
462
462
|
const N = I.currentTarget.getBoundingClientRect();
|
|
463
|
-
|
|
464
|
-
item:
|
|
463
|
+
re({
|
|
464
|
+
item: v,
|
|
465
465
|
top: N.top,
|
|
466
466
|
left: N.right + 8
|
|
467
467
|
});
|
|
468
468
|
} else
|
|
469
|
-
Je(
|
|
469
|
+
Je(v.id);
|
|
470
470
|
else
|
|
471
|
-
W(
|
|
471
|
+
W(v.to);
|
|
472
472
|
},
|
|
473
473
|
style: {
|
|
474
474
|
width: "100%",
|
|
@@ -488,7 +488,7 @@ function Cl({
|
|
|
488
488
|
color: "var(--sa-text-primary, #292a2e)",
|
|
489
489
|
cursor: "pointer"
|
|
490
490
|
},
|
|
491
|
-
title: F && !C ?
|
|
491
|
+
title: F && !C ? v.title : void 0,
|
|
492
492
|
onMouseEnter: (I) => {
|
|
493
493
|
w || (I.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
|
|
494
494
|
},
|
|
@@ -505,7 +505,7 @@ function Cl({
|
|
|
505
505
|
flexShrink: 0
|
|
506
506
|
},
|
|
507
507
|
children: [
|
|
508
|
-
/* @__PURE__ */ e(S, { name:
|
|
508
|
+
/* @__PURE__ */ e(S, { name: v.icon, size: "sm", style: { flexShrink: 0 } }),
|
|
509
509
|
B && /* @__PURE__ */ e(
|
|
510
510
|
"span",
|
|
511
511
|
{
|
|
@@ -539,7 +539,7 @@ function Cl({
|
|
|
539
539
|
overflow: "hidden",
|
|
540
540
|
textOverflow: "ellipsis"
|
|
541
541
|
},
|
|
542
|
-
children:
|
|
542
|
+
children: v.title
|
|
543
543
|
}
|
|
544
544
|
),
|
|
545
545
|
A && /* @__PURE__ */ e(
|
|
@@ -551,7 +551,7 @@ function Cl({
|
|
|
551
551
|
border: !0
|
|
552
552
|
}
|
|
553
553
|
),
|
|
554
|
-
|
|
554
|
+
H && /* @__PURE__ */ e(
|
|
555
555
|
"svg",
|
|
556
556
|
{
|
|
557
557
|
style: {
|
|
@@ -579,8 +579,8 @@ function Cl({
|
|
|
579
579
|
]
|
|
580
580
|
}
|
|
581
581
|
),
|
|
582
|
-
|
|
583
|
-
const I =
|
|
582
|
+
H && (!F || C) && (() => {
|
|
583
|
+
const I = v.children.findIndex(
|
|
584
584
|
(N) => fe(N.to)
|
|
585
585
|
);
|
|
586
586
|
return /* @__PURE__ */ u(
|
|
@@ -592,7 +592,7 @@ function Cl({
|
|
|
592
592
|
paddingLeft: "1.125rem",
|
|
593
593
|
overflow: "hidden",
|
|
594
594
|
transition: "all 0.3s ease-in-out",
|
|
595
|
-
maxHeight: V ? `${
|
|
595
|
+
maxHeight: V ? `${v.children.length * 36}px` : "0px",
|
|
596
596
|
opacity: V ? 1 : 0,
|
|
597
597
|
marginTop: V ? "0.25rem" : "0px"
|
|
598
598
|
},
|
|
@@ -629,7 +629,7 @@ function Cl({
|
|
|
629
629
|
}
|
|
630
630
|
}
|
|
631
631
|
),
|
|
632
|
-
|
|
632
|
+
v.children.map((N) => {
|
|
633
633
|
const ae = ht(
|
|
634
634
|
N.badge,
|
|
635
635
|
E[N.id]
|
|
@@ -703,7 +703,7 @@ function Cl({
|
|
|
703
703
|
}
|
|
704
704
|
);
|
|
705
705
|
})()
|
|
706
|
-
] },
|
|
706
|
+
] }, v.id);
|
|
707
707
|
};
|
|
708
708
|
return /* @__PURE__ */ e(Pr, { children: /* @__PURE__ */ u($r, { children: [
|
|
709
709
|
/* @__PURE__ */ u(
|
|
@@ -768,7 +768,7 @@ function Cl({
|
|
|
768
768
|
position: "relative"
|
|
769
769
|
},
|
|
770
770
|
children: (() => {
|
|
771
|
-
const
|
|
771
|
+
const v = !C && F && !te, H = v && $;
|
|
772
772
|
return /* @__PURE__ */ u(X, { children: [
|
|
773
773
|
/* @__PURE__ */ u(
|
|
774
774
|
"div",
|
|
@@ -777,11 +777,11 @@ function Cl({
|
|
|
777
777
|
display: "flex",
|
|
778
778
|
alignItems: "center",
|
|
779
779
|
gap: "0.5rem",
|
|
780
|
-
flex:
|
|
781
|
-
justifyContent:
|
|
780
|
+
flex: v ? 1 : void 0,
|
|
781
|
+
justifyContent: v ? "center" : void 0,
|
|
782
782
|
transition: "opacity 0.2s",
|
|
783
|
-
opacity:
|
|
784
|
-
pointerEvents:
|
|
783
|
+
opacity: H ? 0 : 1,
|
|
784
|
+
pointerEvents: H ? "none" : "auto"
|
|
785
785
|
},
|
|
786
786
|
children: [
|
|
787
787
|
/* @__PURE__ */ e(
|
|
@@ -833,7 +833,7 @@ function Cl({
|
|
|
833
833
|
children: /* @__PURE__ */ e($t, {})
|
|
834
834
|
}
|
|
835
835
|
),
|
|
836
|
-
|
|
836
|
+
v && /* @__PURE__ */ e(
|
|
837
837
|
"button",
|
|
838
838
|
{
|
|
839
839
|
type: "button",
|
|
@@ -855,8 +855,8 @@ function Cl({
|
|
|
855
855
|
borderRadius: "var(--sa-radii-sm, 0.375rem)",
|
|
856
856
|
color: "var(--sa-text-primary, #292a2e)",
|
|
857
857
|
cursor: "pointer",
|
|
858
|
-
opacity:
|
|
859
|
-
pointerEvents:
|
|
858
|
+
opacity: H ? 1 : 0,
|
|
859
|
+
pointerEvents: H ? "auto" : "none",
|
|
860
860
|
transition: "opacity 0.2s"
|
|
861
861
|
},
|
|
862
862
|
children: /* @__PURE__ */ e(
|
|
@@ -926,8 +926,8 @@ function Cl({
|
|
|
926
926
|
paddingTop: "1rem",
|
|
927
927
|
paddingBottom: "1rem"
|
|
928
928
|
},
|
|
929
|
-
children: Te.map((
|
|
930
|
-
!F || C ?
|
|
929
|
+
children: Te.map((v) => /* @__PURE__ */ u("div", { style: { marginBottom: "1rem" }, children: [
|
|
930
|
+
!F || C ? v.name && /* @__PURE__ */ e(
|
|
931
931
|
"div",
|
|
932
932
|
{
|
|
933
933
|
style: {
|
|
@@ -943,12 +943,12 @@ function Cl({
|
|
|
943
943
|
overflow: "hidden",
|
|
944
944
|
textOverflow: "ellipsis"
|
|
945
945
|
},
|
|
946
|
-
children:
|
|
946
|
+
children: v.name
|
|
947
947
|
}
|
|
948
|
-
) :
|
|
948
|
+
) : v.name && /* @__PURE__ */ e(
|
|
949
949
|
"div",
|
|
950
950
|
{
|
|
951
|
-
"aria-label":
|
|
951
|
+
"aria-label": v.name,
|
|
952
952
|
style: {
|
|
953
953
|
display: "flex",
|
|
954
954
|
alignItems: "center",
|
|
@@ -964,20 +964,20 @@ function Cl({
|
|
|
964
964
|
width: "1rem",
|
|
965
965
|
height: "2px",
|
|
966
966
|
borderRadius: "1px",
|
|
967
|
-
backgroundColor:
|
|
967
|
+
backgroundColor: v.color ?? "var(--sa-background-brand, #04254f)"
|
|
968
968
|
}
|
|
969
969
|
}
|
|
970
970
|
)
|
|
971
971
|
}
|
|
972
972
|
),
|
|
973
|
-
/* @__PURE__ */ e("div", { style: { paddingLeft: "1rem", paddingRight: "1rem", display: "flex", flexDirection: "column", gap: "var(--sa-spacing-xs, 0.25rem)" }, children:
|
|
973
|
+
/* @__PURE__ */ e("div", { style: { paddingLeft: "1rem", paddingRight: "1rem", display: "flex", flexDirection: "column", gap: "var(--sa-spacing-xs, 0.25rem)" }, children: v.slotKey ? /* @__PURE__ */ e(
|
|
974
974
|
qr,
|
|
975
975
|
{
|
|
976
|
-
slotKey:
|
|
977
|
-
fallback:
|
|
976
|
+
slotKey: v.slotKey,
|
|
977
|
+
fallback: v.items.map((H) => Be(H))
|
|
978
978
|
}
|
|
979
|
-
) :
|
|
980
|
-
] },
|
|
979
|
+
) : v.items.map((H) => Be(H)) })
|
|
980
|
+
] }, v.id))
|
|
981
981
|
}
|
|
982
982
|
),
|
|
983
983
|
p.menuBottom && p.menuBottom.length > 0 && /* @__PURE__ */ e(
|
|
@@ -995,7 +995,7 @@ function Cl({
|
|
|
995
995
|
gap: "var(--sa-spacing-xs, 0.25rem)",
|
|
996
996
|
flexShrink: 0
|
|
997
997
|
},
|
|
998
|
-
children: p.menuBottom.map((
|
|
998
|
+
children: p.menuBottom.map((v) => Be(v))
|
|
999
999
|
}
|
|
1000
1000
|
)
|
|
1001
1001
|
]
|
|
@@ -1219,11 +1219,11 @@ function Cl({
|
|
|
1219
1219
|
}
|
|
1220
1220
|
) }),
|
|
1221
1221
|
(g && g.length > 0 || m) && /* @__PURE__ */ u(Ee, { children: [
|
|
1222
|
-
g == null ? void 0 : g.map((
|
|
1222
|
+
g == null ? void 0 : g.map((v, H) => /* @__PURE__ */ e(ve, { children: /* @__PURE__ */ u(
|
|
1223
1223
|
"button",
|
|
1224
1224
|
{
|
|
1225
1225
|
type: "button",
|
|
1226
|
-
onClick:
|
|
1226
|
+
onClick: v.onClick,
|
|
1227
1227
|
style: Zt,
|
|
1228
1228
|
onMouseEnter: (V) => {
|
|
1229
1229
|
V.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)";
|
|
@@ -1232,11 +1232,11 @@ function Cl({
|
|
|
1232
1232
|
V.currentTarget.style.backgroundColor = "transparent";
|
|
1233
1233
|
},
|
|
1234
1234
|
children: [
|
|
1235
|
-
/* @__PURE__ */ e(S, { name:
|
|
1236
|
-
/* @__PURE__ */ e("span", { children:
|
|
1235
|
+
/* @__PURE__ */ e(S, { name: v.icon, size: "md" }),
|
|
1236
|
+
/* @__PURE__ */ e("span", { children: v.label })
|
|
1237
1237
|
]
|
|
1238
1238
|
}
|
|
1239
|
-
) }, `${
|
|
1239
|
+
) }, `${v.label}-${H}`)),
|
|
1240
1240
|
m
|
|
1241
1241
|
] }),
|
|
1242
1242
|
y ?? /* @__PURE__ */ e(cr, { children: /* @__PURE__ */ e(ve, { children: /* @__PURE__ */ u(
|
|
@@ -1249,11 +1249,11 @@ function Cl({
|
|
|
1249
1249
|
color: "var(--sa-background-error, #c9184a)",
|
|
1250
1250
|
fontWeight: 500
|
|
1251
1251
|
},
|
|
1252
|
-
onMouseEnter: (
|
|
1253
|
-
|
|
1252
|
+
onMouseEnter: (v) => {
|
|
1253
|
+
v.currentTarget.style.backgroundColor = "var(--sa-color-error-50, #fff0f3)";
|
|
1254
1254
|
},
|
|
1255
|
-
onMouseLeave: (
|
|
1256
|
-
|
|
1255
|
+
onMouseLeave: (v) => {
|
|
1256
|
+
v.currentTarget.style.backgroundColor = "transparent";
|
|
1257
1257
|
},
|
|
1258
1258
|
children: [
|
|
1259
1259
|
/* @__PURE__ */ e(
|
|
@@ -1312,15 +1312,15 @@ function Cl({
|
|
|
1312
1312
|
/* @__PURE__ */ e(lr, { children: "Confirmation Logout" }),
|
|
1313
1313
|
/* @__PURE__ */ e(wt, { children: "Are you sure you want to end the session and exit the page?" }),
|
|
1314
1314
|
/* @__PURE__ */ e(or, { children: /* @__PURE__ */ e(f, { direction: "column", display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ u(U, { direction: "row", gap: "sm", align: "center", children: [
|
|
1315
|
-
/* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(
|
|
1316
|
-
/* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(
|
|
1315
|
+
/* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(R, { secondary: !0, onClick: qe, children: "Cancel" }) }),
|
|
1316
|
+
/* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(R, { primary: !0, onClick: at, children: "Yes, Sure" }) })
|
|
1317
1317
|
] }) }) })
|
|
1318
1318
|
] }),
|
|
1319
|
-
|
|
1319
|
+
ie && /* @__PURE__ */ u(X, { children: [
|
|
1320
1320
|
/* @__PURE__ */ e(
|
|
1321
1321
|
"div",
|
|
1322
1322
|
{
|
|
1323
|
-
onClick: () =>
|
|
1323
|
+
onClick: () => re(null),
|
|
1324
1324
|
style: {
|
|
1325
1325
|
position: "fixed",
|
|
1326
1326
|
inset: 0,
|
|
@@ -1333,11 +1333,11 @@ function Cl({
|
|
|
1333
1333
|
"div",
|
|
1334
1334
|
{
|
|
1335
1335
|
role: "dialog",
|
|
1336
|
-
"aria-label":
|
|
1336
|
+
"aria-label": ie.item.title,
|
|
1337
1337
|
style: {
|
|
1338
1338
|
position: "fixed",
|
|
1339
|
-
top:
|
|
1340
|
-
left:
|
|
1339
|
+
top: ie.top,
|
|
1340
|
+
left: ie.left,
|
|
1341
1341
|
zIndex: 61,
|
|
1342
1342
|
minWidth: "13rem",
|
|
1343
1343
|
maxWidth: "16rem",
|
|
@@ -1362,19 +1362,19 @@ function Cl({
|
|
|
1362
1362
|
textTransform: "uppercase",
|
|
1363
1363
|
letterSpacing: "0.05em"
|
|
1364
1364
|
},
|
|
1365
|
-
children:
|
|
1365
|
+
children: ie.item.title
|
|
1366
1366
|
}
|
|
1367
1367
|
),
|
|
1368
|
-
(Ue =
|
|
1369
|
-
const
|
|
1370
|
-
|
|
1371
|
-
E[
|
|
1368
|
+
(Ue = ie.item.children) == null ? void 0 : Ue.map((v) => {
|
|
1369
|
+
const H = fe(v.to), V = ht(
|
|
1370
|
+
v.badge,
|
|
1371
|
+
E[v.id]
|
|
1372
1372
|
);
|
|
1373
1373
|
return /* @__PURE__ */ u(
|
|
1374
1374
|
"button",
|
|
1375
1375
|
{
|
|
1376
1376
|
onClick: () => {
|
|
1377
|
-
W(
|
|
1377
|
+
W(v.to), re(null);
|
|
1378
1378
|
},
|
|
1379
1379
|
style: {
|
|
1380
1380
|
width: "100%",
|
|
@@ -1384,29 +1384,29 @@ function Cl({
|
|
|
1384
1384
|
padding: "0.5rem 0.75rem",
|
|
1385
1385
|
borderRadius: "var(--sa-radii-md, 0.5rem)",
|
|
1386
1386
|
textAlign: "left",
|
|
1387
|
-
backgroundColor:
|
|
1388
|
-
color:
|
|
1387
|
+
backgroundColor: H ? "var(--sa-color-gray-100, #f8f8f8)" : "transparent",
|
|
1388
|
+
color: H ? "var(--sa-text-primary, #292a2e)" : "var(--sa-color-gray-800, #505258)",
|
|
1389
1389
|
border: "1px solid transparent",
|
|
1390
1390
|
cursor: "pointer",
|
|
1391
1391
|
fontSize: "0.875rem",
|
|
1392
1392
|
fontWeight: 500
|
|
1393
1393
|
},
|
|
1394
1394
|
onMouseEnter: (w) => {
|
|
1395
|
-
|
|
1395
|
+
H || (w.currentTarget.style.backgroundColor = "var(--sa-color-gray-100, #f8f8f8)");
|
|
1396
1396
|
},
|
|
1397
1397
|
onMouseLeave: (w) => {
|
|
1398
|
-
|
|
1398
|
+
H || (w.currentTarget.style.backgroundColor = "transparent");
|
|
1399
1399
|
},
|
|
1400
1400
|
children: [
|
|
1401
|
-
|
|
1401
|
+
v.icon && /* @__PURE__ */ e(
|
|
1402
1402
|
S,
|
|
1403
1403
|
{
|
|
1404
|
-
name:
|
|
1404
|
+
name: v.icon,
|
|
1405
1405
|
size: "sm",
|
|
1406
1406
|
style: { flexShrink: 0 }
|
|
1407
1407
|
}
|
|
1408
1408
|
),
|
|
1409
|
-
/* @__PURE__ */ e("span", { style: { flex: 1, whiteSpace: "nowrap" }, children:
|
|
1409
|
+
/* @__PURE__ */ e("span", { style: { flex: 1, whiteSpace: "nowrap" }, children: v.title }),
|
|
1410
1410
|
V && /* @__PURE__ */ e(
|
|
1411
1411
|
$e,
|
|
1412
1412
|
{
|
|
@@ -1418,7 +1418,7 @@ function Cl({
|
|
|
1418
1418
|
)
|
|
1419
1419
|
]
|
|
1420
1420
|
},
|
|
1421
|
-
|
|
1421
|
+
v.id
|
|
1422
1422
|
);
|
|
1423
1423
|
})
|
|
1424
1424
|
]
|
|
@@ -1472,7 +1472,7 @@ const Mt = St(
|
|
|
1472
1472
|
}
|
|
1473
1473
|
),
|
|
1474
1474
|
/* @__PURE__ */ e(
|
|
1475
|
-
|
|
1475
|
+
b,
|
|
1476
1476
|
{
|
|
1477
1477
|
variant: "sub-h3",
|
|
1478
1478
|
style: {
|
|
@@ -1513,7 +1513,7 @@ const Mt = St(
|
|
|
1513
1513
|
return x.to && !p ? /* @__PURE__ */ e(Vt, { children: /* @__PURE__ */ e(et, { to: x.to, children: x.label }) }, D) : /* @__PURE__ */ e(Vt, { currentPage: p, children: /* @__PURE__ */ e(wr, { onClick: p ? void 0 : x.onClick, children: x.label }) }, D);
|
|
1514
1514
|
}) })
|
|
1515
1515
|
] });
|
|
1516
|
-
},
|
|
1516
|
+
}, Cl = (t) => {
|
|
1517
1517
|
const { items: r, separator: n, onClick: l, navigateTo: i, ...o } = t;
|
|
1518
1518
|
return r && r.length > 0 ? /* @__PURE__ */ e(
|
|
1519
1519
|
Gr,
|
|
@@ -1748,7 +1748,7 @@ const Ur = (t, r) => {
|
|
|
1748
1748
|
n.push(i);
|
|
1749
1749
|
}
|
|
1750
1750
|
return n;
|
|
1751
|
-
}, Qr =
|
|
1751
|
+
}, Qr = be(
|
|
1752
1752
|
({
|
|
1753
1753
|
value: t,
|
|
1754
1754
|
label: r,
|
|
@@ -1773,14 +1773,14 @@ const Ur = (t, r) => {
|
|
|
1773
1773
|
verticalAlign: o
|
|
1774
1774
|
}),
|
|
1775
1775
|
[i, o]
|
|
1776
|
-
), h = () => typeof r == "string" ? /* @__PURE__ */ e(
|
|
1776
|
+
), h = () => typeof r == "string" ? /* @__PURE__ */ e(b, { fontWeight: "medium", color: "subtlest", children: r }) : r, d = () => typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ e(b, { color: "primary", fontWeight: "medium", children: t }) : t, g = () => typeof n == "string" || typeof n == "number" ? /* @__PURE__ */ e(b, { fontWeight: "medium", color: "subtlest", children: n }) : n;
|
|
1777
1777
|
return /* @__PURE__ */ u(je, { children: [
|
|
1778
1778
|
/* @__PURE__ */ e(Me, { style: a, width: l, children: h() }),
|
|
1779
1779
|
n ? /* @__PURE__ */ e(Me, { style: c, width: 24, children: g() }) : null,
|
|
1780
1780
|
/* @__PURE__ */ e(Me, { style: a, children: d() })
|
|
1781
1781
|
] });
|
|
1782
1782
|
}
|
|
1783
|
-
), Yr =
|
|
1783
|
+
), Yr = be(({ fields: t, separator: r, labelWidth: n }) => /* @__PURE__ */ e(sr, { children: t.map((l, i) => /* @__PURE__ */ e(
|
|
1784
1784
|
Qr,
|
|
1785
1785
|
{
|
|
1786
1786
|
separator: r,
|
|
@@ -1789,7 +1789,7 @@ const Ur = (t, r) => {
|
|
|
1789
1789
|
...l
|
|
1790
1790
|
},
|
|
1791
1791
|
`field-group-field-${i}`
|
|
1792
|
-
)) })), Dl =
|
|
1792
|
+
)) })), Dl = be(
|
|
1793
1793
|
({
|
|
1794
1794
|
maxRow: t = 0,
|
|
1795
1795
|
maxColumn: r = 2,
|
|
@@ -1873,7 +1873,7 @@ const Ur = (t, r) => {
|
|
|
1873
1873
|
}
|
|
1874
1874
|
),
|
|
1875
1875
|
/* @__PURE__ */ e(
|
|
1876
|
-
|
|
1876
|
+
b,
|
|
1877
1877
|
{
|
|
1878
1878
|
variant: "sub-h3",
|
|
1879
1879
|
style: {
|
|
@@ -1907,9 +1907,9 @@ const Ur = (t, r) => {
|
|
|
1907
1907
|
return;
|
|
1908
1908
|
}
|
|
1909
1909
|
x(-1, { replace: !0 });
|
|
1910
|
-
}, W = () => h ?
|
|
1910
|
+
}, W = () => h ? Ct(h) ? h : /* @__PURE__ */ e(f, { direction: "row", gap: "lg", children: h.map(
|
|
1911
1911
|
({ title: F, icon: j, buttonProps: te, onClick: K }, $) => !F && !j ? null : /* @__PURE__ */ e(
|
|
1912
|
-
|
|
1912
|
+
R,
|
|
1913
1913
|
{
|
|
1914
1914
|
fullWidth: !y,
|
|
1915
1915
|
iconLeft: j ? /* @__PURE__ */ e(S, { name: j, size: "md" }) : void 0,
|
|
@@ -1931,7 +1931,7 @@ const Ur = (t, r) => {
|
|
|
1931
1931
|
}
|
|
1932
1932
|
) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Mt, { onClick: E, children: F }) });
|
|
1933
1933
|
}, O = () => {
|
|
1934
|
-
const F = !!r, j =
|
|
1934
|
+
const F = !!r, j = Ct(h) ? !0 : Array.isArray(h) && h.length > 0;
|
|
1935
1935
|
return !F && !j && !p ? null : /* @__PURE__ */ u(
|
|
1936
1936
|
f,
|
|
1937
1937
|
{
|
|
@@ -1958,7 +1958,7 @@ const Ur = (t, r) => {
|
|
|
1958
1958
|
/* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
|
|
1959
1959
|
n && /* @__PURE__ */ e(S, { name: n, size: "md", color: "primary" }),
|
|
1960
1960
|
/* @__PURE__ */ e(
|
|
1961
|
-
|
|
1961
|
+
b,
|
|
1962
1962
|
{
|
|
1963
1963
|
variant: "h3",
|
|
1964
1964
|
fontWeight: "semibold",
|
|
@@ -2036,7 +2036,7 @@ const Ur = (t, r) => {
|
|
|
2036
2036
|
},
|
|
2037
2037
|
D.pathname
|
|
2038
2038
|
);
|
|
2039
|
-
}, wl =
|
|
2039
|
+
}, wl = be(Kr), en = {
|
|
2040
2040
|
icon: "Cross",
|
|
2041
2041
|
title: ""
|
|
2042
2042
|
}, tn = "calc(100vw - 16px)", Ut = (t) => t == null ? void 0 : `min(${typeof t == "number" ? `${t}px` : t}, ${tn})`, rn = St(
|
|
@@ -2085,7 +2085,7 @@ const Ur = (t, r) => {
|
|
|
2085
2085
|
cursor: "pointer"
|
|
2086
2086
|
}
|
|
2087
2087
|
),
|
|
2088
|
-
o.title ? /* @__PURE__ */ e(
|
|
2088
|
+
o.title ? /* @__PURE__ */ e(b, { fontFamily: "Poppins", fontSize: "md", color: "subtlest", children: o.title }) : null
|
|
2089
2089
|
]
|
|
2090
2090
|
}
|
|
2091
2091
|
) : null,
|
|
@@ -2094,7 +2094,7 @@ const Ur = (t, r) => {
|
|
|
2094
2094
|
}
|
|
2095
2095
|
);
|
|
2096
2096
|
}
|
|
2097
|
-
), pr =
|
|
2097
|
+
), pr = be(
|
|
2098
2098
|
({ children: t, borderBottom: r = !0, padding: n = !0 }) => {
|
|
2099
2099
|
const l = he("lg");
|
|
2100
2100
|
return /* @__PURE__ */ e(
|
|
@@ -2111,7 +2111,7 @@ const Ur = (t, r) => {
|
|
|
2111
2111
|
}
|
|
2112
2112
|
);
|
|
2113
2113
|
}
|
|
2114
|
-
), xr =
|
|
2114
|
+
), xr = be(
|
|
2115
2115
|
({ children: t, borderTop: r = !0, padding: n = !0 }) => {
|
|
2116
2116
|
const l = he("lg");
|
|
2117
2117
|
return /* @__PURE__ */ e(
|
|
@@ -2128,7 +2128,7 @@ const Ur = (t, r) => {
|
|
|
2128
2128
|
}
|
|
2129
2129
|
);
|
|
2130
2130
|
}
|
|
2131
|
-
), nn =
|
|
2131
|
+
), nn = be(
|
|
2132
2132
|
({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
2133
2133
|
f,
|
|
2134
2134
|
{
|
|
@@ -2141,7 +2141,7 @@ const Ur = (t, r) => {
|
|
|
2141
2141
|
children: t
|
|
2142
2142
|
}
|
|
2143
2143
|
)
|
|
2144
|
-
), kl =
|
|
2144
|
+
), kl = be(
|
|
2145
2145
|
({
|
|
2146
2146
|
children: t,
|
|
2147
2147
|
title: r,
|
|
@@ -2157,9 +2157,9 @@ const Ur = (t, r) => {
|
|
|
2157
2157
|
variantTag: m = "info"
|
|
2158
2158
|
}) => {
|
|
2159
2159
|
const y = he("lg"), x = () => n ? /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
|
|
2160
|
-
/* @__PURE__ */ e(
|
|
2160
|
+
/* @__PURE__ */ e(b, { fontWeight: "medium", children: r }),
|
|
2161
2161
|
/* @__PURE__ */ e($e, { border: !0, text: n, variant: m })
|
|
2162
|
-
] }) : /* @__PURE__ */ e(
|
|
2162
|
+
] }) : /* @__PURE__ */ e(b, { fontWeight: "medium", children: r }), D = () => i || /* @__PURE__ */ u(
|
|
2163
2163
|
f,
|
|
2164
2164
|
{
|
|
2165
2165
|
direction: "row",
|
|
@@ -2203,7 +2203,7 @@ const Ur = (t, r) => {
|
|
|
2203
2203
|
}
|
|
2204
2204
|
);
|
|
2205
2205
|
}
|
|
2206
|
-
), ln = (t) => /* @__PURE__ */ e(
|
|
2206
|
+
), ln = (t) => /* @__PURE__ */ e(b, { variant: "h1", children: t.children, ...t.props }), on = (t) => /* @__PURE__ */ e(b, { variant: "h2", children: t.children, ...t.props }), cn = (t) => /* @__PURE__ */ e(b, { variant: "h3", children: t.children, ...t.props }), an = (t) => /* @__PURE__ */ e(b, { variant: "h4", children: t.children, ...t.props }), sn = (t) => /* @__PURE__ */ e(b, { variant: "h5", children: t.children, ...t.props }), dn = (t) => /* @__PURE__ */ e(b, { variant: "h6", children: t.children, ...t.props }), un = (t) => /* @__PURE__ */ e(b, { variant: "sub-h1", children: t.children, ...t.props }), hn = (t) => /* @__PURE__ */ e(b, { variant: "sub-h2", children: t.children, ...t.props }), fn = (t) => /* @__PURE__ */ e(b, { variant: "sub-h3", children: t.children, ...t.props }), mn = (t) => /* @__PURE__ */ e(b, { variant: "body-1", children: t.children, ...t.props }), gn = (t) => /* @__PURE__ */ e(b, { variant: "body-2", children: t.children, ...t.props }), yn = (t) => /* @__PURE__ */ e(b, { variant: "body-3", children: t.children, ...t.props }), xe = {
|
|
2207
2207
|
H1: ln,
|
|
2208
2208
|
H2: on,
|
|
2209
2209
|
H3: cn,
|
|
@@ -2234,7 +2234,7 @@ const Ur = (t, r) => {
|
|
|
2234
2234
|
id: o,
|
|
2235
2235
|
hasId: !!o
|
|
2236
2236
|
};
|
|
2237
|
-
}, pn = (t) => JSON.stringify(t), xn = (t) => JSON.stringify(t),
|
|
2237
|
+
}, pn = (t) => JSON.stringify(t), xn = (t) => JSON.stringify(t), bn = (t) => JSON.stringify(t), Cn = (t) => JSON.stringify(t), vn = (t) => t, Dn = (t) => JSON.stringify(t), rt = ({
|
|
2238
2238
|
value: t,
|
|
2239
2239
|
name: r,
|
|
2240
2240
|
type: n,
|
|
@@ -2259,13 +2259,13 @@ const Ur = (t, r) => {
|
|
|
2259
2259
|
d = xn(t);
|
|
2260
2260
|
break;
|
|
2261
2261
|
case "date-range":
|
|
2262
|
-
d =
|
|
2262
|
+
d = bn(t);
|
|
2263
2263
|
break;
|
|
2264
2264
|
case "advanced-date-range":
|
|
2265
2265
|
d = Dn(t);
|
|
2266
2266
|
break;
|
|
2267
2267
|
case "date":
|
|
2268
|
-
d =
|
|
2268
|
+
d = Cn(t);
|
|
2269
2269
|
break;
|
|
2270
2270
|
default:
|
|
2271
2271
|
d = t;
|
|
@@ -2312,7 +2312,7 @@ const Ur = (t, r) => {
|
|
|
2312
2312
|
}) => {
|
|
2313
2313
|
const i = n.get(r) || void 0, o = i && typeof i == "string" ? JSON.parse(i) : void 0, a = o ? o[t] : void 0;
|
|
2314
2314
|
return l === "id" && a ? JSON.parse(a).id : l === "label" && a ? JSON.parse(a).label : l === "value" && a ? JSON.parse(a).value : a;
|
|
2315
|
-
},
|
|
2315
|
+
}, br = (t, r, n) => {
|
|
2316
2316
|
const l = r.get(n || "filter") || void 0, i = l && typeof l == "string" ? JSON.parse(l) : void 0;
|
|
2317
2317
|
return i ? i[t] : void 0;
|
|
2318
2318
|
}, kn = ({
|
|
@@ -2405,10 +2405,10 @@ const Ur = (t, r) => {
|
|
|
2405
2405
|
}) => {
|
|
2406
2406
|
const W = (y == null ? void 0 : y.isShowLabel) ?? !0, [k, O] = M(!1), [C, L] = M(0), z = () => {
|
|
2407
2407
|
L((q) => q + 1);
|
|
2408
|
-
}, { searchParams: F, setSearchParams: j, getQueryParam: te } = We(), K = it(F.toString()), $ =
|
|
2409
|
-
if (
|
|
2408
|
+
}, { searchParams: F, setSearchParams: j, getQueryParam: te } = We(), K = it(F.toString()), $ = br(t, F, c) || "", [ee, Y] = M($), ne = te(c), re = !!(ne && !(() => {
|
|
2409
|
+
if (ne)
|
|
2410
2410
|
try {
|
|
2411
|
-
const q = JSON.parse(
|
|
2411
|
+
const q = JSON.parse(ne);
|
|
2412
2412
|
return Object.keys(q).length === 1 && q[t] === "";
|
|
2413
2413
|
} catch (q) {
|
|
2414
2414
|
console.error("Filter parameter is not a valid JSON:", q);
|
|
@@ -2451,8 +2451,8 @@ const Ur = (t, r) => {
|
|
|
2451
2451
|
},
|
|
2452
2452
|
align: "flex-end",
|
|
2453
2453
|
children: [
|
|
2454
|
-
|
|
2455
|
-
|
|
2454
|
+
re && /* @__PURE__ */ e(f, { direction: "column", justify: "flex-end", children: /* @__PURE__ */ e(
|
|
2455
|
+
R,
|
|
2456
2456
|
{
|
|
2457
2457
|
onClick: () => {
|
|
2458
2458
|
const q = new URLSearchParams(F);
|
|
@@ -2460,7 +2460,7 @@ const Ur = (t, r) => {
|
|
|
2460
2460
|
},
|
|
2461
2461
|
variant: "outline",
|
|
2462
2462
|
tone: "neutral",
|
|
2463
|
-
children: /* @__PURE__ */ e(
|
|
2463
|
+
children: /* @__PURE__ */ e(b, { color: "error", fontWeight: "semibold", children: "Reset" })
|
|
2464
2464
|
}
|
|
2465
2465
|
) }),
|
|
2466
2466
|
i == null ? void 0 : i.map(({ minWidth: q, content: ce, title: ge, onClickContainer: ye }, He) => /* @__PURE__ */ u(
|
|
@@ -2480,17 +2480,17 @@ const Ur = (t, r) => {
|
|
|
2480
2480
|
`extended-filter-${He}-${C}`
|
|
2481
2481
|
)),
|
|
2482
2482
|
!!(m != null && m.length) && /* @__PURE__ */ e(
|
|
2483
|
-
|
|
2483
|
+
R,
|
|
2484
2484
|
{
|
|
2485
|
-
primary:
|
|
2486
|
-
secondary: !
|
|
2485
|
+
primary: re,
|
|
2486
|
+
secondary: !re,
|
|
2487
2487
|
iconLeft: /* @__PURE__ */ e(
|
|
2488
2488
|
S,
|
|
2489
2489
|
{
|
|
2490
2490
|
size: "sm",
|
|
2491
2491
|
name: (y == null ? void 0 : y.icon) || "FilterHorizontal",
|
|
2492
2492
|
style: {
|
|
2493
|
-
color:
|
|
2493
|
+
color: ne ? "var(--sa-background-brand, #04254f)" : "var(--sa-text-primary, #292a2e)"
|
|
2494
2494
|
}
|
|
2495
2495
|
}
|
|
2496
2496
|
),
|
|
@@ -2737,7 +2737,7 @@ const Wn = {
|
|
|
2737
2737
|
remove(t) {
|
|
2738
2738
|
ut.delete(t);
|
|
2739
2739
|
}
|
|
2740
|
-
},
|
|
2740
|
+
}, Cr = {
|
|
2741
2741
|
columns: (t) => `filterbar:colprefs:${t}`,
|
|
2742
2742
|
savedViews: (t) => `filterbar:views:${t}`
|
|
2743
2743
|
}, gt = (t, r) => {
|
|
@@ -2755,7 +2755,7 @@ function Bn({
|
|
|
2755
2755
|
const i = ue(
|
|
2756
2756
|
() => ({ order: t.map((k) => k.key), hidden: [] }),
|
|
2757
2757
|
[t]
|
|
2758
|
-
), o = r ?
|
|
2758
|
+
), o = r ? Cr.columns(r) : void 0, [a, c] = M(() => {
|
|
2759
2759
|
if (o) {
|
|
2760
2760
|
const k = n.get(o);
|
|
2761
2761
|
if (k && Array.isArray(k.order)) return gt(k, t);
|
|
@@ -2819,7 +2819,7 @@ function zn({
|
|
|
2819
2819
|
getColumns: i,
|
|
2820
2820
|
applyColumns: o
|
|
2821
2821
|
}) {
|
|
2822
|
-
const { searchParams: a, setSearchParams: c } = We(), h = t ?
|
|
2822
|
+
const { searchParams: a, setSearchParams: c } = We(), h = t ? Cr.savedViews(t) : void 0, [d, g] = M(
|
|
2823
2823
|
() => h ? r.get(h) || [] : []
|
|
2824
2824
|
), m = G(
|
|
2825
2825
|
(p) => {
|
|
@@ -2868,10 +2868,11 @@ const An = ({
|
|
|
2868
2868
|
configs: t,
|
|
2869
2869
|
activeKeys: r,
|
|
2870
2870
|
onToggle: n,
|
|
2871
|
-
hasActiveFilter: l
|
|
2871
|
+
hasActiveFilter: l,
|
|
2872
|
+
onReset: i
|
|
2872
2873
|
}) => t.length ? /* @__PURE__ */ u(Se, { position: "bottom-left", children: [
|
|
2873
2874
|
/* @__PURE__ */ e(ve, { children: /* @__PURE__ */ e(
|
|
2874
|
-
|
|
2875
|
+
R,
|
|
2875
2876
|
{
|
|
2876
2877
|
variant: l ? "secondary" : "outline",
|
|
2877
2878
|
tone: "neutral",
|
|
@@ -2880,17 +2881,46 @@ const An = ({
|
|
|
2880
2881
|
"aria-label": "Add filter"
|
|
2881
2882
|
}
|
|
2882
2883
|
) }),
|
|
2883
|
-
/* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ e(
|
|
2884
|
-
|
|
2884
|
+
/* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ e(
|
|
2885
|
+
Ee,
|
|
2885
2886
|
{
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2893
|
-
|
|
2887
|
+
style: { minWidth: 260 },
|
|
2888
|
+
title: /* @__PURE__ */ u(
|
|
2889
|
+
f,
|
|
2890
|
+
{
|
|
2891
|
+
display: "flex",
|
|
2892
|
+
direction: "row",
|
|
2893
|
+
align: "center",
|
|
2894
|
+
justify: "space-between",
|
|
2895
|
+
fullWidth: !0,
|
|
2896
|
+
children: [
|
|
2897
|
+
/* @__PURE__ */ e(b, { fontSize: "sm", fontWeight: "medium", color: "subtlest", children: "Add Filter" }),
|
|
2898
|
+
l && i && /* @__PURE__ */ e(
|
|
2899
|
+
R,
|
|
2900
|
+
{
|
|
2901
|
+
variant: "link",
|
|
2902
|
+
tone: "brand",
|
|
2903
|
+
size: "xs",
|
|
2904
|
+
onClick: i,
|
|
2905
|
+
children: "Reset"
|
|
2906
|
+
}
|
|
2907
|
+
)
|
|
2908
|
+
]
|
|
2909
|
+
}
|
|
2910
|
+
),
|
|
2911
|
+
children: t.map((o) => /* @__PURE__ */ e(
|
|
2912
|
+
Ie,
|
|
2913
|
+
{
|
|
2914
|
+
selected: r.includes(o.key),
|
|
2915
|
+
closeOnSelect: !1,
|
|
2916
|
+
startIcon: o.icon ?? void 0,
|
|
2917
|
+
onClick: () => n(o.key),
|
|
2918
|
+
children: o.label
|
|
2919
|
+
},
|
|
2920
|
+
o.key
|
|
2921
|
+
))
|
|
2922
|
+
}
|
|
2923
|
+
) })
|
|
2894
2924
|
] }) : null, Qt = 24, In = (t) => t.length > Qt ? `${t.slice(0, Qt)}...` : t, yt = (t) => t.toLocaleDateString(void 0, {
|
|
2895
2925
|
day: "2-digit",
|
|
2896
2926
|
month: "short",
|
|
@@ -2917,7 +2947,7 @@ const An = ({
|
|
|
2917
2947
|
] }) : t.label;
|
|
2918
2948
|
return /* @__PURE__ */ u(Se, { position: "bottom-left", children: [
|
|
2919
2949
|
/* @__PURE__ */ e(ve, { children: /* @__PURE__ */ e(
|
|
2920
|
-
|
|
2950
|
+
R,
|
|
2921
2951
|
{
|
|
2922
2952
|
variant: c ? "secondary" : "outline",
|
|
2923
2953
|
tone: "neutral",
|
|
@@ -2930,6 +2960,7 @@ const An = ({
|
|
|
2930
2960
|
/* @__PURE__ */ e(Fe, { children: /* @__PURE__ */ e(
|
|
2931
2961
|
Ee,
|
|
2932
2962
|
{
|
|
2963
|
+
style: { width: 260 },
|
|
2933
2964
|
title: /* @__PURE__ */ u(
|
|
2934
2965
|
f,
|
|
2935
2966
|
{
|
|
@@ -2939,9 +2970,9 @@ const An = ({
|
|
|
2939
2970
|
justify: "space-between",
|
|
2940
2971
|
fullWidth: !0,
|
|
2941
2972
|
children: [
|
|
2942
|
-
/* @__PURE__ */ e(
|
|
2973
|
+
/* @__PURE__ */ e(b, { fontSize: "sm", fontWeight: "medium", color: "subtlest", children: t.label }),
|
|
2943
2974
|
/* @__PURE__ */ e(de, { label: "Remove filter", position: "right", children: /* @__PURE__ */ e(
|
|
2944
|
-
|
|
2975
|
+
R,
|
|
2945
2976
|
{
|
|
2946
2977
|
variant: "link",
|
|
2947
2978
|
tone: "error",
|
|
@@ -2999,7 +3030,7 @@ const An = ({
|
|
|
2999
3030
|
] });
|
|
3000
3031
|
return /* @__PURE__ */ u(Se, { position: "bottom-left", children: [
|
|
3001
3032
|
/* @__PURE__ */ e(ve, { children: /* @__PURE__ */ e(
|
|
3002
|
-
|
|
3033
|
+
R,
|
|
3003
3034
|
{
|
|
3004
3035
|
variant: o > 0 ? "secondary" : "outline",
|
|
3005
3036
|
tone: "neutral",
|
|
@@ -3022,9 +3053,9 @@ const An = ({
|
|
|
3022
3053
|
justify: "space-between",
|
|
3023
3054
|
fullWidth: !0,
|
|
3024
3055
|
children: [
|
|
3025
|
-
/* @__PURE__ */ e(
|
|
3056
|
+
/* @__PURE__ */ e(b, { fontSize: "sm", fontWeight: "medium", color: "subtlest", children: t.label }),
|
|
3026
3057
|
/* @__PURE__ */ e(de, { label: "Remove filter", position: "right", children: /* @__PURE__ */ e(
|
|
3027
|
-
|
|
3058
|
+
R,
|
|
3028
3059
|
{
|
|
3029
3060
|
variant: "link",
|
|
3030
3061
|
tone: "error",
|
|
@@ -3061,7 +3092,7 @@ const An = ({
|
|
|
3061
3092
|
direction: "column",
|
|
3062
3093
|
overflow: "overflow-y-auto",
|
|
3063
3094
|
customMaxHeight: "240px",
|
|
3064
|
-
children: d.length === 0 ? /* @__PURE__ */ e(f, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(
|
|
3095
|
+
children: d.length === 0 ? /* @__PURE__ */ e(f, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(b, { fontSize: "xs", color: "subtlest", children: "No results" }) }) : d.map((D) => /* @__PURE__ */ e(
|
|
3065
3096
|
Ie,
|
|
3066
3097
|
{
|
|
3067
3098
|
closeOnSelect: !i,
|
|
@@ -3105,16 +3136,16 @@ const An = ({
|
|
|
3105
3136
|
a ? [] : t.options.map((m) => ({ label: m.label, value: m.value }))
|
|
3106
3137
|
);
|
|
3107
3138
|
}, g = o === 0 ? t.label : /* @__PURE__ */ u(X, { children: [
|
|
3108
|
-
/* @__PURE__ */ u(
|
|
3139
|
+
/* @__PURE__ */ u(b, { as: "span", fontWeight: "semibold", children: [
|
|
3109
3140
|
t.label,
|
|
3110
3141
|
":"
|
|
3111
3142
|
] }),
|
|
3112
3143
|
" ",
|
|
3113
|
-
/* @__PURE__ */ e(
|
|
3144
|
+
/* @__PURE__ */ e(b, { as: "span", children: o === 1 ? Tn(r[0].label) : `${o} Selected` })
|
|
3114
3145
|
] });
|
|
3115
3146
|
return /* @__PURE__ */ u(Se, { position: "bottom-left", children: [
|
|
3116
3147
|
/* @__PURE__ */ e(ve, { children: /* @__PURE__ */ e(
|
|
3117
|
-
|
|
3148
|
+
R,
|
|
3118
3149
|
{
|
|
3119
3150
|
variant: o > 0 ? "secondary" : "outline",
|
|
3120
3151
|
tone: "neutral",
|
|
@@ -3137,9 +3168,9 @@ const An = ({
|
|
|
3137
3168
|
justify: "space-between",
|
|
3138
3169
|
fullWidth: !0,
|
|
3139
3170
|
children: [
|
|
3140
|
-
/* @__PURE__ */ e(
|
|
3171
|
+
/* @__PURE__ */ e(b, { fontSize: "sm", fontWeight: "medium", color: "subtlest", children: t.label }),
|
|
3141
3172
|
/* @__PURE__ */ e(de, { label: "Remove filter", position: "right", children: /* @__PURE__ */ e(
|
|
3142
|
-
|
|
3173
|
+
R,
|
|
3143
3174
|
{
|
|
3144
3175
|
variant: "link",
|
|
3145
3176
|
tone: "error",
|
|
@@ -3246,10 +3277,10 @@ const An = ({
|
|
|
3246
3277
|
});
|
|
3247
3278
|
}, p = (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), E = (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));
|
|
3248
3279
|
return /* @__PURE__ */ u(X, { children: [
|
|
3249
|
-
o && /* @__PURE__ */ e(
|
|
3280
|
+
o && /* @__PURE__ */ e(b, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${p}-${E} of ${((W = t == null ? void 0 : t.totalData) == null ? void 0 : W.toLocaleString()) || 0}` }),
|
|
3250
3281
|
a && /* @__PURE__ */ u(Se, { position: "bottom-left", children: [
|
|
3251
3282
|
/* @__PURE__ */ e(ve, { children: /* @__PURE__ */ e(
|
|
3252
|
-
|
|
3283
|
+
R,
|
|
3253
3284
|
{
|
|
3254
3285
|
variant: "outline",
|
|
3255
3286
|
tone: "neutral",
|
|
@@ -3314,7 +3345,7 @@ const $n = 240, Zn = ({
|
|
|
3314
3345
|
placeholder: l = "Search",
|
|
3315
3346
|
shortcut: i = "/"
|
|
3316
3347
|
}) => {
|
|
3317
|
-
const { searchParams: o, setSearchParams: a, searchQueries: c } = We(), h =
|
|
3348
|
+
const { searchParams: o, setSearchParams: a, searchQueries: c } = We(), h = br(t, o, r) || "", [d, g] = M(!!h), [m, y] = M(!h), [x, D] = M(h), p = Sr(x, 350), E = oe(null);
|
|
3318
3349
|
Z(() => {
|
|
3319
3350
|
D(h), h && g(!0);
|
|
3320
3351
|
}, [h]), Z(() => {
|
|
@@ -3340,7 +3371,7 @@ const $n = 240, Zn = ({
|
|
|
3340
3371
|
// the same time, so spacing to neighbours is handled by the parent cluster.
|
|
3341
3372
|
/* @__PURE__ */ u(f, { display: "flex", direction: "row", align: "center", gap: "spacing-0", children: [
|
|
3342
3373
|
m && /* @__PURE__ */ e(
|
|
3343
|
-
|
|
3374
|
+
R,
|
|
3344
3375
|
{
|
|
3345
3376
|
variant: "outline",
|
|
3346
3377
|
tone: "neutral",
|
|
@@ -3405,7 +3436,7 @@ const $n = 240, Zn = ({
|
|
|
3405
3436
|
height: 18,
|
|
3406
3437
|
display: "inline-flex"
|
|
3407
3438
|
},
|
|
3408
|
-
children: /* @__PURE__ */ e(
|
|
3439
|
+
children: /* @__PURE__ */ e(b, { fontSize: "xs", color: "subtle", children: i })
|
|
3409
3440
|
}
|
|
3410
3441
|
)
|
|
3411
3442
|
]
|
|
@@ -3427,7 +3458,7 @@ const $n = 240, Zn = ({
|
|
|
3427
3458
|
};
|
|
3428
3459
|
return /* @__PURE__ */ u(Se, { position: "bottom-right", children: [
|
|
3429
3460
|
/* @__PURE__ */ e(ve, { children: /* @__PURE__ */ e(
|
|
3430
|
-
|
|
3461
|
+
R,
|
|
3431
3462
|
{
|
|
3432
3463
|
variant: r ? "outline" : "secondary",
|
|
3433
3464
|
tone: "neutral",
|
|
@@ -3445,7 +3476,7 @@ const $n = 240, Zn = ({
|
|
|
3445
3476
|
customMaxHeight: "60vh",
|
|
3446
3477
|
overflow: "overflow-hidden",
|
|
3447
3478
|
children: [
|
|
3448
|
-
/* @__PURE__ */ e(
|
|
3479
|
+
/* @__PURE__ */ e(b, { fontWeight: "semibold", color: "primary", children: "Customize Column Table" }),
|
|
3449
3480
|
/* @__PURE__ */ u(
|
|
3450
3481
|
f,
|
|
3451
3482
|
{
|
|
@@ -3455,9 +3486,9 @@ const $n = 240, Zn = ({
|
|
|
3455
3486
|
justify: "space-between",
|
|
3456
3487
|
paddingBlock: "md",
|
|
3457
3488
|
children: [
|
|
3458
|
-
/* @__PURE__ */ e(
|
|
3489
|
+
/* @__PURE__ */ e(b, { fontSize: "sm", fontWeight: "medium", color: "subtle", children: "Show in table" }),
|
|
3459
3490
|
/* @__PURE__ */ e(
|
|
3460
|
-
|
|
3491
|
+
R,
|
|
3461
3492
|
{
|
|
3462
3493
|
variant: "link",
|
|
3463
3494
|
tone: "info",
|
|
@@ -3516,7 +3547,7 @@ const $n = 240, Zn = ({
|
|
|
3516
3547
|
),
|
|
3517
3548
|
m.icon && /* @__PURE__ */ e(f, { direction: "column", align: "center", color: "icon-subtle", style: { display: "inline-flex" }, children: m.icon }),
|
|
3518
3549
|
/* @__PURE__ */ e(
|
|
3519
|
-
|
|
3550
|
+
b,
|
|
3520
3551
|
{
|
|
3521
3552
|
fontSize: "sm",
|
|
3522
3553
|
fontWeight: "medium",
|
|
@@ -3556,7 +3587,7 @@ const $n = 240, Zn = ({
|
|
|
3556
3587
|
};
|
|
3557
3588
|
return /* @__PURE__ */ u(Se, { position: "bottom-right", children: [
|
|
3558
3589
|
/* @__PURE__ */ e(ve, { children: /* @__PURE__ */ e(
|
|
3559
|
-
|
|
3590
|
+
R,
|
|
3560
3591
|
{
|
|
3561
3592
|
variant: t.length > 0 ? "secondary" : "outline",
|
|
3562
3593
|
tone: (t.length > 0, "neutral"),
|
|
@@ -3573,19 +3604,19 @@ const $n = 240, Zn = ({
|
|
|
3573
3604
|
},
|
|
3574
3605
|
children: [
|
|
3575
3606
|
/* @__PURE__ */ e(Ee, { children: /* @__PURE__ */ u(f, { direction: "column", padding: "xs", gap: "sm", children: [
|
|
3576
|
-
/* @__PURE__ */ e(
|
|
3607
|
+
/* @__PURE__ */ e(b, { fontWeight: "semibold", color: "primary", children: "Saved Views" }),
|
|
3577
3608
|
/* @__PURE__ */ e(
|
|
3578
3609
|
f,
|
|
3579
3610
|
{
|
|
3580
3611
|
direction: "column",
|
|
3581
3612
|
overflow: "overflow-y-auto",
|
|
3582
|
-
children: t.length === 0 ? /* @__PURE__ */ e(f, { direction: "column", paddingBlock: "sm", children: /* @__PURE__ */ e(
|
|
3613
|
+
children: t.length === 0 ? /* @__PURE__ */ e(f, { direction: "column", paddingBlock: "sm", children: /* @__PURE__ */ e(b, { fontSize: "sm", color: "subtlest", children: "No saved views yet" }) }) : t.map((c) => /* @__PURE__ */ e(
|
|
3583
3614
|
Ie,
|
|
3584
3615
|
{
|
|
3585
3616
|
startIcon: /* @__PURE__ */ e(S, { name: "Bookmark" }),
|
|
3586
3617
|
onClick: () => r(c),
|
|
3587
3618
|
endIcon: /* @__PURE__ */ e(
|
|
3588
|
-
|
|
3619
|
+
R,
|
|
3589
3620
|
{
|
|
3590
3621
|
variant: "link",
|
|
3591
3622
|
tone: "error",
|
|
@@ -3622,7 +3653,7 @@ const $n = 240, Zn = ({
|
|
|
3622
3653
|
}
|
|
3623
3654
|
) }),
|
|
3624
3655
|
/* @__PURE__ */ e(
|
|
3625
|
-
|
|
3656
|
+
R,
|
|
3626
3657
|
{
|
|
3627
3658
|
variant: "primary",
|
|
3628
3659
|
tone: "brand",
|
|
@@ -3682,14 +3713,16 @@ const $n = 240, Zn = ({
|
|
|
3682
3713
|
scopeId: W == null ? void 0 : W.scopeId,
|
|
3683
3714
|
storage: k,
|
|
3684
3715
|
onColumnsChange: E
|
|
3685
|
-
}),
|
|
3716
|
+
}), ne = zn({
|
|
3686
3717
|
scopeId: W == null ? void 0 : W.scopeId,
|
|
3687
3718
|
storage: k,
|
|
3688
3719
|
snapshotKeys: [l, n, o],
|
|
3689
3720
|
pageKey: i,
|
|
3690
3721
|
getColumns: () => Y.state,
|
|
3691
3722
|
applyColumns: Y.applyState
|
|
3692
|
-
}),
|
|
3723
|
+
}), ie = !!(W != null && W.enabled) && ne.enabled, re = () => {
|
|
3724
|
+
ee(), O == null || O();
|
|
3725
|
+
};
|
|
3693
3726
|
return /* @__PURE__ */ u(
|
|
3694
3727
|
f,
|
|
3695
3728
|
{
|
|
@@ -3713,8 +3746,7 @@ const $n = 240, Zn = ({
|
|
|
3713
3746
|
display: "flex",
|
|
3714
3747
|
align: "center",
|
|
3715
3748
|
gap: "sm",
|
|
3716
|
-
|
|
3717
|
-
style: { flex: "1 0 0", minWidth: 0 },
|
|
3749
|
+
style: { flex: "1 1 0", minWidth: 0 },
|
|
3718
3750
|
children: [
|
|
3719
3751
|
/* @__PURE__ */ e(
|
|
3720
3752
|
An,
|
|
@@ -3722,23 +3754,44 @@ const $n = 240, Zn = ({
|
|
|
3722
3754
|
configs: r,
|
|
3723
3755
|
activeKeys: C,
|
|
3724
3756
|
onToggle: F,
|
|
3725
|
-
hasActiveFilter: z
|
|
3757
|
+
hasActiveFilter: z,
|
|
3758
|
+
onReset: re
|
|
3726
3759
|
}
|
|
3727
3760
|
),
|
|
3728
|
-
/* @__PURE__ */
|
|
3729
|
-
|
|
3761
|
+
/* @__PURE__ */ u(
|
|
3762
|
+
f,
|
|
3730
3763
|
{
|
|
3731
|
-
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
|
|
3736
|
-
|
|
3764
|
+
direction: "row",
|
|
3765
|
+
display: "flex",
|
|
3766
|
+
align: "center",
|
|
3767
|
+
gap: "sm",
|
|
3768
|
+
overflow: "overflow-x-auto",
|
|
3769
|
+
style: { flex: "1 1 0", minWidth: 0 },
|
|
3770
|
+
children: [
|
|
3771
|
+
/* @__PURE__ */ e(
|
|
3772
|
+
Nn,
|
|
3773
|
+
{
|
|
3774
|
+
activeKeys: C,
|
|
3775
|
+
configByKey: L,
|
|
3776
|
+
getValue: te,
|
|
3777
|
+
setValue: K,
|
|
3778
|
+
clearValue: $,
|
|
3779
|
+
removeFilter: j
|
|
3780
|
+
}
|
|
3781
|
+
),
|
|
3782
|
+
z && /* @__PURE__ */ e(
|
|
3783
|
+
R,
|
|
3784
|
+
{
|
|
3785
|
+
variant: "link",
|
|
3786
|
+
tone: "brand",
|
|
3787
|
+
size: "sm",
|
|
3788
|
+
onClick: re,
|
|
3789
|
+
children: "Reset"
|
|
3790
|
+
}
|
|
3791
|
+
)
|
|
3792
|
+
]
|
|
3737
3793
|
}
|
|
3738
|
-
)
|
|
3739
|
-
z && /* @__PURE__ */ e(H, { variant: "link", tone: "error", size: "sm", onClick: () => {
|
|
3740
|
-
ee(), O == null || O();
|
|
3741
|
-
}, children: "Reset" })
|
|
3794
|
+
)
|
|
3742
3795
|
]
|
|
3743
3796
|
}
|
|
3744
3797
|
),
|
|
@@ -3765,13 +3818,13 @@ const $n = 240, Zn = ({
|
|
|
3765
3818
|
shortcut: x
|
|
3766
3819
|
}
|
|
3767
3820
|
),
|
|
3768
|
-
|
|
3821
|
+
ie && /* @__PURE__ */ e(
|
|
3769
3822
|
qn,
|
|
3770
3823
|
{
|
|
3771
|
-
views:
|
|
3772
|
-
onApply:
|
|
3773
|
-
onDelete:
|
|
3774
|
-
onSave:
|
|
3824
|
+
views: ne.views,
|
|
3825
|
+
onApply: ne.applyView,
|
|
3826
|
+
onDelete: ne.deleteView,
|
|
3827
|
+
onSave: ne.saveView
|
|
3775
3828
|
}
|
|
3776
3829
|
),
|
|
3777
3830
|
p.length > 0 && /* @__PURE__ */ e(
|
|
@@ -3851,7 +3904,7 @@ const $n = 240, Zn = ({
|
|
|
3851
3904
|
] }),
|
|
3852
3905
|
/* @__PURE__ */ u(f, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flexShrink: 0 }, children: [
|
|
3853
3906
|
r,
|
|
3854
|
-
t ?
|
|
3907
|
+
t ? Ct(t) ? t : /* @__PURE__ */ e(
|
|
3855
3908
|
f,
|
|
3856
3909
|
{
|
|
3857
3910
|
style: {
|
|
@@ -3863,7 +3916,7 @@ const $n = 240, Zn = ({
|
|
|
3863
3916
|
},
|
|
3864
3917
|
children: t.map(
|
|
3865
3918
|
({ title: d, icon: g, buttonProps: m, onClick: y }, x) => !d && !g ? null : /* @__PURE__ */ e(
|
|
3866
|
-
|
|
3919
|
+
R,
|
|
3867
3920
|
{
|
|
3868
3921
|
fullWidth: !a,
|
|
3869
3922
|
iconLeft: g ? /* @__PURE__ */ e(S, { name: g }) : void 0,
|
|
@@ -3946,7 +3999,7 @@ const $n = 240, Zn = ({
|
|
|
3946
3999
|
},
|
|
3947
4000
|
children: i ? /* @__PURE__ */ u(X, { children: [
|
|
3948
4001
|
/* @__PURE__ */ u(f, { style: { display: "flex", flexDirection: "row", gap: "8px", alignItems: "center", textWrap: "nowrap" }, children: [
|
|
3949
|
-
/* @__PURE__ */ e(
|
|
4002
|
+
/* @__PURE__ */ e(b, { children: "Rows Per Page: " }),
|
|
3950
4003
|
/* @__PURE__ */ e(
|
|
3951
4004
|
nt,
|
|
3952
4005
|
{
|
|
@@ -3964,7 +4017,7 @@ const $n = 240, Zn = ({
|
|
|
3964
4017
|
defaultValue: d ? [{ label: `${d} per row`, value: d }] : [{ label: `${l} per row`, value: `${l}` }]
|
|
3965
4018
|
}
|
|
3966
4019
|
),
|
|
3967
|
-
/* @__PURE__ */ e(
|
|
4020
|
+
/* @__PURE__ */ e(b, { children: `${y}-${x} of ${(t == null ? void 0 : t.totalData) || 0}` })
|
|
3968
4021
|
] }),
|
|
3969
4022
|
/* @__PURE__ */ e(
|
|
3970
4023
|
ar,
|
|
@@ -4071,12 +4124,12 @@ const $n = 240, Zn = ({
|
|
|
4071
4124
|
borderBottom: "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
4072
4125
|
},
|
|
4073
4126
|
children: [
|
|
4074
|
-
/* @__PURE__ */ u(
|
|
4127
|
+
/* @__PURE__ */ u(b, { fontSize: "sm", fontWeight: "semibold", color: "gray-700", children: [
|
|
4075
4128
|
"Filter ",
|
|
4076
4129
|
r
|
|
4077
4130
|
] }),
|
|
4078
4131
|
m.length > 0 && /* @__PURE__ */ e(f, { direction: "column", style: { cursor: "pointer" }, children: /* @__PURE__ */ e(
|
|
4079
|
-
|
|
4132
|
+
b,
|
|
4080
4133
|
{
|
|
4081
4134
|
fontSize: "xs",
|
|
4082
4135
|
color: "primary",
|
|
@@ -4148,7 +4201,7 @@ const $n = 240, Zn = ({
|
|
|
4148
4201
|
}
|
|
4149
4202
|
),
|
|
4150
4203
|
/* @__PURE__ */ e(
|
|
4151
|
-
|
|
4204
|
+
b,
|
|
4152
4205
|
{
|
|
4153
4206
|
fontSize: "sm",
|
|
4154
4207
|
color: "gray-500",
|
|
@@ -4194,7 +4247,7 @@ const $n = 240, Zn = ({
|
|
|
4194
4247
|
}
|
|
4195
4248
|
),
|
|
4196
4249
|
/* @__PURE__ */ e(
|
|
4197
|
-
|
|
4250
|
+
b,
|
|
4198
4251
|
{
|
|
4199
4252
|
fontSize: "sm",
|
|
4200
4253
|
fontWeight: m.includes(p.value) ? "medium" : "normal",
|
|
@@ -4226,7 +4279,7 @@ const $n = 240, Zn = ({
|
|
|
4226
4279
|
}
|
|
4227
4280
|
),
|
|
4228
4281
|
/* @__PURE__ */ e(
|
|
4229
|
-
|
|
4282
|
+
b,
|
|
4230
4283
|
{
|
|
4231
4284
|
fontSize: "sm",
|
|
4232
4285
|
color: "gray-500",
|
|
@@ -4268,7 +4321,7 @@ const $n = 240, Zn = ({
|
|
|
4268
4321
|
children: m.length
|
|
4269
4322
|
}
|
|
4270
4323
|
),
|
|
4271
|
-
/* @__PURE__ */ u(
|
|
4324
|
+
/* @__PURE__ */ u(b, { fontSize: "xs", color: "primary", fontWeight: "medium", children: [
|
|
4272
4325
|
"item",
|
|
4273
4326
|
m.length > 1 ? "s" : "",
|
|
4274
4327
|
" selected"
|
|
@@ -4372,7 +4425,7 @@ const $n = 240, Zn = ({
|
|
|
4372
4425
|
if (!A) return;
|
|
4373
4426
|
let B;
|
|
4374
4427
|
!$ || $.key !== A ? B = { key: A, direction: "asc" } : $.direction === "asc" ? B = { key: A, direction: "desc" } : B = null, j || K(B), z == null || z(B);
|
|
4375
|
-
},
|
|
4428
|
+
}, ie = [n, l, i].filter((w) => w !== void 0).length, re = !!x, P = !!n || !!l || !!i || re, q = "var(--sa-border-subtle, #0b120e24)", ce = `1px solid ${q}`, ge = `inset 1px 0 0 ${q}`, ye = `inset -1px 0 0 ${q}`, He = ie === 3 ? re ? "178px" : "140px" : ie === 2 ? re ? "140px" : "102px" : ie === 1 ? re ? "112px" : "74px" : re ? "74px" : "", qe = (w, A) => {
|
|
4376
4429
|
if (!A) return w;
|
|
4377
4430
|
if (typeof A == "function") return A(w);
|
|
4378
4431
|
if (typeof A == "string") return w[A];
|
|
@@ -4385,7 +4438,7 @@ const $n = 240, Zn = ({
|
|
|
4385
4438
|
const Ve = oe(null), [fe, Je] = M([]), [Te, Be] = M(
|
|
4386
4439
|
() => W ?? {}
|
|
4387
4440
|
), ze = oe(null);
|
|
4388
|
-
|
|
4441
|
+
bt(() => {
|
|
4389
4442
|
if (!m || !Ve.current) {
|
|
4390
4443
|
Je([]);
|
|
4391
4444
|
return;
|
|
@@ -4400,14 +4453,14 @@ const $n = 240, Zn = ({
|
|
|
4400
4453
|
}, [m, t, r, Te]);
|
|
4401
4454
|
const Ue = (w) => {
|
|
4402
4455
|
y && y(w < m ? w : w + 1);
|
|
4403
|
-
},
|
|
4456
|
+
}, v = (w, A) => {
|
|
4404
4457
|
const B = Te[w];
|
|
4405
4458
|
if (B !== void 0) {
|
|
4406
4459
|
const I = `${B}px`;
|
|
4407
4460
|
return { width: I, minWidth: I, maxWidth: I };
|
|
4408
4461
|
}
|
|
4409
4462
|
return A ? { width: A } : {};
|
|
4410
|
-
},
|
|
4463
|
+
}, H = (w) => E && (w.resizable ?? !0), V = (w, A) => {
|
|
4411
4464
|
w.preventDefault(), w.stopPropagation();
|
|
4412
4465
|
const B = w.currentTarget.closest("th");
|
|
4413
4466
|
if (!B) return;
|
|
@@ -4417,11 +4470,11 @@ const $n = 240, Zn = ({
|
|
|
4417
4470
|
document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
|
|
4418
4471
|
const me = (De) => {
|
|
4419
4472
|
var Ne;
|
|
4420
|
-
const
|
|
4421
|
-
if (!
|
|
4422
|
-
const st = ((Ne = t[
|
|
4473
|
+
const Ce = ze.current;
|
|
4474
|
+
if (!Ce) return;
|
|
4475
|
+
const st = ((Ne = t[Ce.colIndex]) == null ? void 0 : Ne.minWidth) ?? O, Oe = Math.max(st, Ce.startWidth + (De.clientX - Ce.startX));
|
|
4423
4476
|
Be(
|
|
4424
|
-
(Ae) => Ae[
|
|
4477
|
+
(Ae) => Ae[Ce.colIndex] === Oe ? Ae : { ...Ae, [Ce.colIndex]: Oe }
|
|
4425
4478
|
);
|
|
4426
4479
|
}, ke = () => {
|
|
4427
4480
|
document.removeEventListener("mousemove", me), document.removeEventListener("mouseup", ke), document.body.style.userSelect = N, document.body.style.cursor = ae, ze.current = null, k && Be((De) => (k(De), De));
|
|
@@ -4439,7 +4492,7 @@ const $n = 240, Zn = ({
|
|
|
4439
4492
|
children: /* @__PURE__ */ u(je, { children: [
|
|
4440
4493
|
t.map((w, A) => {
|
|
4441
4494
|
var Rt, Ht;
|
|
4442
|
-
const B = m > 0 && A < m, I = fe[A] ?? 0, N =
|
|
4495
|
+
const B = m > 0 && A < m, I = fe[A] ?? 0, N = H(w), me = A === t.length - 1 && P && F, ke = ee(w), De = !!w.sortable && !!ke, Ce = De && ($ == null ? void 0 : $.key) === ke ? $.direction : null, st = w.title || ((Rt = w.accessor) == null ? void 0 : Rt.toString()) || "", Oe = (Ht = w.headerTooltip) != null && Ht.showIcon ? /* @__PURE__ */ e(
|
|
4443
4496
|
S,
|
|
4444
4497
|
{
|
|
4445
4498
|
name: "InfoCircle",
|
|
@@ -4451,7 +4504,7 @@ const $n = 240, Zn = ({
|
|
|
4451
4504
|
{
|
|
4452
4505
|
type: "button",
|
|
4453
4506
|
onClick: () => Y(w),
|
|
4454
|
-
title:
|
|
4507
|
+
title: Ce === "asc" ? "Sorted ascending — click to sort descending" : Ce === "desc" ? "Sorted descending — click to clear" : "Click to sort ascending",
|
|
4455
4508
|
style: {
|
|
4456
4509
|
flex: 1,
|
|
4457
4510
|
minWidth: 0,
|
|
@@ -4470,7 +4523,7 @@ const $n = 240, Zn = ({
|
|
|
4470
4523
|
children: [
|
|
4471
4524
|
Ne,
|
|
4472
4525
|
Oe,
|
|
4473
|
-
/* @__PURE__ */ e(Xn, { direction:
|
|
4526
|
+
/* @__PURE__ */ e(Xn, { direction: Ce })
|
|
4474
4527
|
]
|
|
4475
4528
|
}
|
|
4476
4529
|
) : /* @__PURE__ */ u("span", { style: { flex: 1, minWidth: 0, display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
@@ -4491,7 +4544,7 @@ const $n = 240, Zn = ({
|
|
|
4491
4544
|
boxShadow: d && B ? ye : void 0,
|
|
4492
4545
|
backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
|
|
4493
4546
|
textAlign: w.textAlign === "text-right" ? "right" : w.textAlign === "text-center" ? "center" : "left",
|
|
4494
|
-
...
|
|
4547
|
+
...v(A, w.width)
|
|
4495
4548
|
},
|
|
4496
4549
|
children: [
|
|
4497
4550
|
/* @__PURE__ */ u(
|
|
@@ -4624,10 +4677,10 @@ const $n = 240, Zn = ({
|
|
|
4624
4677
|
borderRight: B.showBorderRight ? ce : void 0,
|
|
4625
4678
|
boxShadow: De ? ye : void 0,
|
|
4626
4679
|
textAlign: B.textAlign === "text-right" ? "right" : B.textAlign === "text-center" ? "center" : "left",
|
|
4627
|
-
...
|
|
4680
|
+
...v(I, B.width)
|
|
4628
4681
|
},
|
|
4629
4682
|
children: typeof N == "string" ? /* @__PURE__ */ e(
|
|
4630
|
-
|
|
4683
|
+
b,
|
|
4631
4684
|
{
|
|
4632
4685
|
style: {
|
|
4633
4686
|
whiteSpace: "nowrap",
|
|
@@ -4653,7 +4706,7 @@ const $n = 240, Zn = ({
|
|
|
4653
4706
|
}, children: /* @__PURE__ */ e(U, { direction: "row", align: "center", justify: "center", gap: "sm", children: D.map((B) => {
|
|
4654
4707
|
const I = A === r.length - 1 ? "top" : "bottom";
|
|
4655
4708
|
return B === "detail" && n && (h == null ? void 0 : h(w)) !== !1 ? /* @__PURE__ */ e(de, { label: "Detail", position: I, children: /* @__PURE__ */ e(
|
|
4656
|
-
|
|
4709
|
+
R,
|
|
4657
4710
|
{
|
|
4658
4711
|
size: "xs",
|
|
4659
4712
|
variant: "outline",
|
|
@@ -4662,7 +4715,7 @@ const $n = 240, Zn = ({
|
|
|
4662
4715
|
iconLeft: /* @__PURE__ */ e(S, { name: "DocumentClean", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
4663
4716
|
}
|
|
4664
4717
|
) }, "detail") : B === "update" && l && (c == null ? void 0 : c(w)) !== !1 ? /* @__PURE__ */ e(de, { label: "Update", position: I, children: /* @__PURE__ */ e(
|
|
4665
|
-
|
|
4718
|
+
R,
|
|
4666
4719
|
{
|
|
4667
4720
|
size: "xs",
|
|
4668
4721
|
variant: "outline",
|
|
@@ -4671,7 +4724,7 @@ const $n = 240, Zn = ({
|
|
|
4671
4724
|
iconLeft: /* @__PURE__ */ e(S, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
4672
4725
|
}
|
|
4673
4726
|
) }, "update") : B === "delete" && i && (a == null ? void 0 : a(w)) !== !1 ? /* @__PURE__ */ e(de, { label: "Delete", position: I, children: /* @__PURE__ */ e(
|
|
4674
|
-
|
|
4727
|
+
R,
|
|
4675
4728
|
{
|
|
4676
4729
|
size: "xs",
|
|
4677
4730
|
variant: "outline",
|
|
@@ -4735,7 +4788,7 @@ const $n = 240, Zn = ({
|
|
|
4735
4788
|
] });
|
|
4736
4789
|
};
|
|
4737
4790
|
function ri(t) {
|
|
4738
|
-
return
|
|
4791
|
+
return be(
|
|
4739
4792
|
t
|
|
4740
4793
|
);
|
|
4741
4794
|
}
|
|
@@ -4749,7 +4802,7 @@ const Ll = ri(ti), Wt = ({
|
|
|
4749
4802
|
loading: l,
|
|
4750
4803
|
isLoading: i
|
|
4751
4804
|
}) => /* @__PURE__ */ e(X, { children: i ? l : t ? n : r }), Q = (t) => /* @__PURE__ */ e(
|
|
4752
|
-
|
|
4805
|
+
b,
|
|
4753
4806
|
{
|
|
4754
4807
|
...t,
|
|
4755
4808
|
fontFamily: "Poppins",
|
|
@@ -4758,7 +4811,7 @@ const Ll = ri(ti), Wt = ({
|
|
|
4758
4811
|
color: t.color || "gray-700",
|
|
4759
4812
|
children: t.children
|
|
4760
4813
|
}
|
|
4761
|
-
), we = (t) => /* @__PURE__ */ e(
|
|
4814
|
+
), we = (t) => /* @__PURE__ */ e(b, { color: "red-600", fontSize: "sm", children: t.message }), ni = ({
|
|
4762
4815
|
size: t = "md",
|
|
4763
4816
|
direction: r = "vertical",
|
|
4764
4817
|
requiredTitle: n = "(Required)",
|
|
@@ -4786,7 +4839,7 @@ const Ll = ri(ti), Wt = ({
|
|
|
4786
4839
|
fullWidth: l,
|
|
4787
4840
|
children: [
|
|
4788
4841
|
/* @__PURE__ */ e(Q, { children: i.title }),
|
|
4789
|
-
/* @__PURE__ */ e(
|
|
4842
|
+
/* @__PURE__ */ e(b, { fontSize: t, color: "gray-500", children: i.description })
|
|
4790
4843
|
]
|
|
4791
4844
|
}
|
|
4792
4845
|
),
|
|
@@ -4820,7 +4873,7 @@ const Ll = ri(ti), Wt = ({
|
|
|
4820
4873
|
}
|
|
4821
4874
|
) })
|
|
4822
4875
|
] }),
|
|
4823
|
-
/* @__PURE__ */ e(J, { condition: !!i.description, children: /* @__PURE__ */ e(
|
|
4876
|
+
/* @__PURE__ */ e(J, { condition: !!i.description, children: /* @__PURE__ */ e(b, { fontSize: t, color: "gray-500", children: i.description }) })
|
|
4824
4877
|
]
|
|
4825
4878
|
}
|
|
4826
4879
|
)
|
|
@@ -4871,7 +4924,7 @@ const Ll = ri(ti), Wt = ({
|
|
|
4871
4924
|
fullWidth: l,
|
|
4872
4925
|
children: [
|
|
4873
4926
|
/* @__PURE__ */ e(Q, { children: i.title }),
|
|
4874
|
-
/* @__PURE__ */ e(
|
|
4927
|
+
/* @__PURE__ */ e(b, { fontSize: t, color: "gray-500", children: i.description })
|
|
4875
4928
|
]
|
|
4876
4929
|
}
|
|
4877
4930
|
),
|
|
@@ -4905,7 +4958,7 @@ const Ll = ri(ti), Wt = ({
|
|
|
4905
4958
|
}
|
|
4906
4959
|
) })
|
|
4907
4960
|
] }),
|
|
4908
|
-
/* @__PURE__ */ e(J, { condition: !!i.description, children: /* @__PURE__ */ e(
|
|
4961
|
+
/* @__PURE__ */ e(J, { condition: !!i.description, children: /* @__PURE__ */ e(b, { fontSize: t, color: "gray-500", children: i.description }) })
|
|
4909
4962
|
]
|
|
4910
4963
|
}
|
|
4911
4964
|
)
|
|
@@ -4979,7 +5032,7 @@ const Ll = ri(ti), Wt = ({
|
|
|
4979
5032
|
/* @__PURE__ */ u(U, { direction: "column", gap: "xs", children: [
|
|
4980
5033
|
/* @__PURE__ */ u(U, { direction: "row", gap: "xs", children: [
|
|
4981
5034
|
/* @__PURE__ */ e(
|
|
4982
|
-
|
|
5035
|
+
b,
|
|
4983
5036
|
{
|
|
4984
5037
|
fontWeight: "medium",
|
|
4985
5038
|
color: "gray-500",
|
|
@@ -4989,7 +5042,7 @@ const Ll = ri(ti), Wt = ({
|
|
|
4989
5042
|
}
|
|
4990
5043
|
),
|
|
4991
5044
|
/* @__PURE__ */ e(
|
|
4992
|
-
|
|
5045
|
+
b,
|
|
4993
5046
|
{
|
|
4994
5047
|
fontWeight: "medium",
|
|
4995
5048
|
style: { textWrap: "nowrap" },
|
|
@@ -4998,7 +5051,7 @@ const Ll = ri(ti), Wt = ({
|
|
|
4998
5051
|
}
|
|
4999
5052
|
)
|
|
5000
5053
|
] }),
|
|
5001
|
-
/* @__PURE__ */ e(
|
|
5054
|
+
/* @__PURE__ */ e(b, { fontSize: "sm", color: "gray-500", children: (c = t.fileSupports) == null ? void 0 : c.map((h) => h.toLocaleUpperCase()).join(", ") })
|
|
5002
5055
|
] })
|
|
5003
5056
|
]
|
|
5004
5057
|
}
|
|
@@ -5211,7 +5264,7 @@ const mi = (t) => {
|
|
|
5211
5264
|
),
|
|
5212
5265
|
/* @__PURE__ */ u(U, { direction: "column", style: { minWidth: 0, flex: 1 }, children: [
|
|
5213
5266
|
/* @__PURE__ */ e(
|
|
5214
|
-
|
|
5267
|
+
b,
|
|
5215
5268
|
{
|
|
5216
5269
|
fontWeight: "bold",
|
|
5217
5270
|
style: {
|
|
@@ -5223,18 +5276,18 @@ const mi = (t) => {
|
|
|
5223
5276
|
}
|
|
5224
5277
|
),
|
|
5225
5278
|
t.defaultFile ? (t.defaultFile.size || t.defaultFile.date) && /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
|
|
5226
|
-
t.defaultFile.size && /* @__PURE__ */ e(
|
|
5279
|
+
t.defaultFile.size && /* @__PURE__ */ e(b, { fontSize: "sm", fontWeight: "medium", children: t.defaultFile.size }),
|
|
5227
5280
|
t.defaultFile.size && t.defaultFile.date && /* @__PURE__ */ e(S, { name: "Dot", size: "xs" }),
|
|
5228
|
-
t.defaultFile.date && /* @__PURE__ */ e(
|
|
5281
|
+
t.defaultFile.date && /* @__PURE__ */ e(b, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: t.defaultFile.date })
|
|
5229
5282
|
] }) : /* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
|
|
5230
|
-
/* @__PURE__ */ e(
|
|
5283
|
+
/* @__PURE__ */ e(b, { fontSize: "sm", fontWeight: "medium", children: hi(((n = t.fileSelected) == null ? void 0 : n.size.toString()) || "100000") }),
|
|
5231
5284
|
/* @__PURE__ */ e(S, { name: "Dot", size: "xs" }),
|
|
5232
|
-
/* @__PURE__ */ e(
|
|
5285
|
+
/* @__PURE__ */ e(b, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: ci(/* @__PURE__ */ new Date()) })
|
|
5233
5286
|
] })
|
|
5234
5287
|
] })
|
|
5235
5288
|
] }),
|
|
5236
5289
|
/* @__PURE__ */ e(
|
|
5237
|
-
|
|
5290
|
+
R,
|
|
5238
5291
|
{
|
|
5239
5292
|
size: "xs",
|
|
5240
5293
|
variant: "tertiary",
|
|
@@ -5262,7 +5315,7 @@ const mi = (t) => {
|
|
|
5262
5315
|
}
|
|
5263
5316
|
l.current && l.current.click();
|
|
5264
5317
|
}, o = he("md"), a = t === "error" || typeof n.errorMessage == "string" && !!n.errorMessage, c = n.label ? /* @__PURE__ */ u(U, { direction: "row", align: "center", gap: "xs", children: [
|
|
5265
|
-
/* @__PURE__ */ e(
|
|
5318
|
+
/* @__PURE__ */ e(b, { style: { fontSize: "14px", fontWeight: 500, color: "var(--sa-text-primary)" }, children: n.label }),
|
|
5266
5319
|
n.optional && /* @__PURE__ */ e("span", { style: {
|
|
5267
5320
|
background: "var(--sa-background-neutral)",
|
|
5268
5321
|
border: "1px solid var(--sa-border-subtle)",
|
|
@@ -5276,10 +5329,10 @@ const mi = (t) => {
|
|
|
5276
5329
|
alignItems: "center"
|
|
5277
5330
|
}, children: "Optional" }),
|
|
5278
5331
|
n.required && /* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 500, color: "var(--sa-text-error)" }, children: "*" })
|
|
5279
|
-
] }) : null, h = n.description ? /* @__PURE__ */ e(
|
|
5280
|
-
n.helperText && /* @__PURE__ */ e(
|
|
5281
|
-
n.errorText && t === "error" && /* @__PURE__ */ e(
|
|
5282
|
-
n.errorMessage && !n.errorText && /* @__PURE__ */ e(
|
|
5332
|
+
] }) : null, h = n.description ? /* @__PURE__ */ e(b, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: n.description }) : null, d = /* @__PURE__ */ u(X, { children: [
|
|
5333
|
+
n.helperText && /* @__PURE__ */ e(b, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: n.helperText }),
|
|
5334
|
+
n.errorText && t === "error" && /* @__PURE__ */ e(b, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-error, #a4133c)", lineHeight: "18px" }, children: n.errorText }),
|
|
5335
|
+
n.errorMessage && !n.errorText && /* @__PURE__ */ e(b, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-error, #a4133c)", lineHeight: "18px" }, children: n.errorMessage })
|
|
5283
5336
|
] }), g = /* @__PURE__ */ e(
|
|
5284
5337
|
"input",
|
|
5285
5338
|
{
|
|
@@ -5373,7 +5426,7 @@ const mi = (t) => {
|
|
|
5373
5426
|
fullWidth: l,
|
|
5374
5427
|
children: [
|
|
5375
5428
|
/* @__PURE__ */ e(Q, { children: i.title }),
|
|
5376
|
-
/* @__PURE__ */ e(
|
|
5429
|
+
/* @__PURE__ */ e(b, { fontSize: t, color: "gray-500", children: i.description })
|
|
5377
5430
|
]
|
|
5378
5431
|
}
|
|
5379
5432
|
),
|
|
@@ -5407,7 +5460,7 @@ const mi = (t) => {
|
|
|
5407
5460
|
}
|
|
5408
5461
|
) })
|
|
5409
5462
|
] }),
|
|
5410
|
-
/* @__PURE__ */ e(J, { condition: !!i.description, children: /* @__PURE__ */ e(
|
|
5463
|
+
/* @__PURE__ */ e(J, { condition: !!i.description, children: /* @__PURE__ */ e(b, { fontSize: t, color: "gray-500", children: i.description }) })
|
|
5411
5464
|
]
|
|
5412
5465
|
}
|
|
5413
5466
|
)
|
|
@@ -5489,7 +5542,7 @@ const mi = (t) => {
|
|
|
5489
5542
|
}
|
|
5490
5543
|
) })
|
|
5491
5544
|
] }),
|
|
5492
|
-
/* @__PURE__ */ e(J, { condition: !!o.description, children: /* @__PURE__ */ e(
|
|
5545
|
+
/* @__PURE__ */ e(J, { condition: !!o.description, children: /* @__PURE__ */ e(b, { fontSize: t, color: "gray-500", children: o.description }) })
|
|
5493
5546
|
]
|
|
5494
5547
|
}
|
|
5495
5548
|
)
|
|
@@ -5571,7 +5624,7 @@ const mi = (t) => {
|
|
|
5571
5624
|
fullWidth: n,
|
|
5572
5625
|
children: [
|
|
5573
5626
|
l.title && /* @__PURE__ */ e(Q, { children: l.title }),
|
|
5574
|
-
/* @__PURE__ */ e(J, { condition: !!l.description, children: /* @__PURE__ */ e(
|
|
5627
|
+
/* @__PURE__ */ e(J, { condition: !!l.description, children: /* @__PURE__ */ e(b, { color: "gray-500", children: l.description }) })
|
|
5575
5628
|
]
|
|
5576
5629
|
}
|
|
5577
5630
|
) }),
|
|
@@ -5608,7 +5661,7 @@ const mi = (t) => {
|
|
|
5608
5661
|
c
|
|
5609
5662
|
),
|
|
5610
5663
|
m && /* @__PURE__ */ e(
|
|
5611
|
-
|
|
5664
|
+
b,
|
|
5612
5665
|
{
|
|
5613
5666
|
color: "gray-500",
|
|
5614
5667
|
style: {
|
|
@@ -5627,7 +5680,7 @@ const mi = (t) => {
|
|
|
5627
5680
|
]
|
|
5628
5681
|
}
|
|
5629
5682
|
);
|
|
5630
|
-
},
|
|
5683
|
+
}, bi = ({
|
|
5631
5684
|
size: t = "md",
|
|
5632
5685
|
direction: r = "vertical",
|
|
5633
5686
|
requiredTitle: n = "(Required)",
|
|
@@ -5655,7 +5708,7 @@ const mi = (t) => {
|
|
|
5655
5708
|
fullWidth: l,
|
|
5656
5709
|
children: [
|
|
5657
5710
|
/* @__PURE__ */ e(Q, { children: i.title }),
|
|
5658
|
-
/* @__PURE__ */ e(
|
|
5711
|
+
/* @__PURE__ */ e(b, { fontSize: t, color: "gray-500", children: i.description })
|
|
5659
5712
|
]
|
|
5660
5713
|
}
|
|
5661
5714
|
),
|
|
@@ -5689,7 +5742,7 @@ const mi = (t) => {
|
|
|
5689
5742
|
}
|
|
5690
5743
|
) })
|
|
5691
5744
|
] }),
|
|
5692
|
-
/* @__PURE__ */ e(J, { condition: !!i.description, children: /* @__PURE__ */ e(
|
|
5745
|
+
/* @__PURE__ */ e(J, { condition: !!i.description, children: /* @__PURE__ */ e(b, { fontSize: t, color: "gray-500", children: i.description }) })
|
|
5693
5746
|
]
|
|
5694
5747
|
}
|
|
5695
5748
|
)
|
|
@@ -5710,7 +5763,7 @@ const mi = (t) => {
|
|
|
5710
5763
|
]
|
|
5711
5764
|
}
|
|
5712
5765
|
);
|
|
5713
|
-
},
|
|
5766
|
+
}, Ci = ({
|
|
5714
5767
|
size: t = "md",
|
|
5715
5768
|
direction: r = "vertical",
|
|
5716
5769
|
requiredTitle: n = "(Required)",
|
|
@@ -5739,7 +5792,7 @@ const mi = (t) => {
|
|
|
5739
5792
|
fullWidth: i,
|
|
5740
5793
|
children: [
|
|
5741
5794
|
/* @__PURE__ */ e(Q, { children: o.title }),
|
|
5742
|
-
/* @__PURE__ */ e(
|
|
5795
|
+
/* @__PURE__ */ e(b, { fontSize: t, color: "gray-500", children: o.titleDescription })
|
|
5743
5796
|
]
|
|
5744
5797
|
}
|
|
5745
5798
|
),
|
|
@@ -5773,7 +5826,7 @@ const mi = (t) => {
|
|
|
5773
5826
|
}
|
|
5774
5827
|
) })
|
|
5775
5828
|
] }),
|
|
5776
|
-
/* @__PURE__ */ e(J, { condition: !!o.titleDescription, children: /* @__PURE__ */ e(
|
|
5829
|
+
/* @__PURE__ */ e(J, { condition: !!o.titleDescription, children: /* @__PURE__ */ e(b, { fontSize: t, color: "gray-500", children: o.titleDescription }) })
|
|
5777
5830
|
]
|
|
5778
5831
|
}
|
|
5779
5832
|
)
|
|
@@ -5822,7 +5875,7 @@ const mi = (t) => {
|
|
|
5822
5875
|
}
|
|
5823
5876
|
};
|
|
5824
5877
|
return /* @__PURE__ */ e(
|
|
5825
|
-
|
|
5878
|
+
R,
|
|
5826
5879
|
{
|
|
5827
5880
|
fullWidth: !0,
|
|
5828
5881
|
disabled: n.disabled,
|
|
@@ -5873,7 +5926,7 @@ const mi = (t) => {
|
|
|
5873
5926
|
fullWidth: l,
|
|
5874
5927
|
children: [
|
|
5875
5928
|
/* @__PURE__ */ e(Q, { children: i.title }),
|
|
5876
|
-
/* @__PURE__ */ e(
|
|
5929
|
+
/* @__PURE__ */ e(b, { fontSize: t, color: "gray-500", children: i.description })
|
|
5877
5930
|
]
|
|
5878
5931
|
}
|
|
5879
5932
|
),
|
|
@@ -5907,7 +5960,7 @@ const mi = (t) => {
|
|
|
5907
5960
|
}
|
|
5908
5961
|
) })
|
|
5909
5962
|
] }),
|
|
5910
|
-
/* @__PURE__ */ e(J, { condition: !!i.description, children: /* @__PURE__ */ e(
|
|
5963
|
+
/* @__PURE__ */ e(J, { condition: !!i.description, children: /* @__PURE__ */ e(b, { fontSize: t, color: "gray-500", children: i.description }) })
|
|
5911
5964
|
]
|
|
5912
5965
|
}
|
|
5913
5966
|
)
|
|
@@ -6026,9 +6079,9 @@ const nr = {
|
|
|
6026
6079
|
(P = $.current) == null || P.click();
|
|
6027
6080
|
}
|
|
6028
6081
|
}));
|
|
6029
|
-
const Y = parseInt(o, 10),
|
|
6030
|
-
let
|
|
6031
|
-
return
|
|
6082
|
+
const Y = parseInt(o, 10), ne = nr[a];
|
|
6083
|
+
let ie, re;
|
|
6084
|
+
return ne >= 1 ? (re = Y, ie = Y * ne) : (ie = Y, re = Y / ne), /* @__PURE__ */ u(
|
|
6032
6085
|
f,
|
|
6033
6086
|
{
|
|
6034
6087
|
direction: "column",
|
|
@@ -6043,9 +6096,9 @@ const nr = {
|
|
|
6043
6096
|
align: "center",
|
|
6044
6097
|
justify: "center",
|
|
6045
6098
|
style: {
|
|
6046
|
-
width: c != null && c.fullWidth ? "100%" : `${
|
|
6047
|
-
height: c != null && c.fullWidth ? "auto" : `${
|
|
6048
|
-
aspectRatio:
|
|
6099
|
+
width: c != null && c.fullWidth ? "100%" : `${ie}px`,
|
|
6100
|
+
height: c != null && c.fullWidth ? "auto" : `${re}px`,
|
|
6101
|
+
aspectRatio: ne,
|
|
6049
6102
|
flexShrink: 0
|
|
6050
6103
|
},
|
|
6051
6104
|
onMouseEnter: () => x(!0),
|
|
@@ -6120,7 +6173,7 @@ const nr = {
|
|
|
6120
6173
|
}
|
|
6121
6174
|
),
|
|
6122
6175
|
/* @__PURE__ */ e(J, { condition: o.toNumber() > 80, children: /* @__PURE__ */ e(
|
|
6123
|
-
|
|
6176
|
+
b,
|
|
6124
6177
|
{
|
|
6125
6178
|
color: "gray-50",
|
|
6126
6179
|
fontSize: o.toNumber() > 80 ? "sm" : "md",
|
|
@@ -6183,7 +6236,7 @@ const nr = {
|
|
|
6183
6236
|
borderRadius: "var(--sa-radii-md)",
|
|
6184
6237
|
boxShadow: "0 20px 60px rgba(0,0,0,0.3)",
|
|
6185
6238
|
overflow: "hidden",
|
|
6186
|
-
width: m ? a === "1:1" ? "min(90vw, 480px)" : `min(90vw, ${
|
|
6239
|
+
width: m ? a === "1:1" ? "min(90vw, 480px)" : `min(90vw, ${ie * 2}px)` : "calc(100vw - 2rem)",
|
|
6187
6240
|
display: "flex",
|
|
6188
6241
|
flexDirection: "column"
|
|
6189
6242
|
},
|
|
@@ -6226,8 +6279,8 @@ const nr = {
|
|
|
6226
6279
|
borderTop: "1px solid var(--sa-border-subtle)"
|
|
6227
6280
|
},
|
|
6228
6281
|
children: [
|
|
6229
|
-
/* @__PURE__ */ e(
|
|
6230
|
-
/* @__PURE__ */ e(
|
|
6282
|
+
/* @__PURE__ */ e(R, { size: "sm", secondary: !0, onClick: () => W(!1), children: "Cancel" }),
|
|
6283
|
+
/* @__PURE__ */ e(R, { size: "sm", primary: !0, onClick: K, children: "Crop" })
|
|
6231
6284
|
]
|
|
6232
6285
|
}
|
|
6233
6286
|
)
|
|
@@ -6271,7 +6324,7 @@ const nr = {
|
|
|
6271
6324
|
fullWidth: l,
|
|
6272
6325
|
children: [
|
|
6273
6326
|
/* @__PURE__ */ e(Q, { children: o.title }),
|
|
6274
|
-
/* @__PURE__ */ e(
|
|
6327
|
+
/* @__PURE__ */ e(b, { fontSize: t, color: "gray-500", children: o.description })
|
|
6275
6328
|
]
|
|
6276
6329
|
}
|
|
6277
6330
|
),
|
|
@@ -6305,7 +6358,7 @@ const nr = {
|
|
|
6305
6358
|
}
|
|
6306
6359
|
) })
|
|
6307
6360
|
] }),
|
|
6308
|
-
/* @__PURE__ */ e(J, { condition: !!o.description, children: /* @__PURE__ */ e(
|
|
6361
|
+
/* @__PURE__ */ e(J, { condition: !!o.description, children: /* @__PURE__ */ e(b, { fontSize: t, color: "gray-500", children: o.description }) })
|
|
6309
6362
|
]
|
|
6310
6363
|
}
|
|
6311
6364
|
)
|
|
@@ -6346,7 +6399,7 @@ const nr = {
|
|
|
6346
6399
|
fullWidth: l,
|
|
6347
6400
|
children: [
|
|
6348
6401
|
/* @__PURE__ */ e(Q, { children: i.title }),
|
|
6349
|
-
/* @__PURE__ */ e(
|
|
6402
|
+
/* @__PURE__ */ e(b, { fontSize: t, color: "gray-500", children: i.description })
|
|
6350
6403
|
]
|
|
6351
6404
|
}
|
|
6352
6405
|
),
|
|
@@ -6380,7 +6433,7 @@ const nr = {
|
|
|
6380
6433
|
}
|
|
6381
6434
|
) })
|
|
6382
6435
|
] }),
|
|
6383
|
-
/* @__PURE__ */ e(J, { condition: !!i.description, children: /* @__PURE__ */ e(
|
|
6436
|
+
/* @__PURE__ */ e(J, { condition: !!i.description, children: /* @__PURE__ */ e(b, { fontSize: t, color: "gray-500", children: i.description }) })
|
|
6384
6437
|
]
|
|
6385
6438
|
}
|
|
6386
6439
|
)
|
|
@@ -6433,8 +6486,8 @@ const nr = {
|
|
|
6433
6486
|
InputSingleFile: yi,
|
|
6434
6487
|
CheckBoxOptions: pi,
|
|
6435
6488
|
RadioOptions: xi,
|
|
6436
|
-
InputTextArea:
|
|
6437
|
-
ToggleForm:
|
|
6489
|
+
InputTextArea: bi,
|
|
6490
|
+
ToggleForm: Ci,
|
|
6438
6491
|
ActionButton: vi,
|
|
6439
6492
|
FormTitle: Di,
|
|
6440
6493
|
InputDate: wi,
|
|
@@ -6469,7 +6522,7 @@ const nr = {
|
|
|
6469
6522
|
transition: "transform 0.2s ease-in-out"
|
|
6470
6523
|
},
|
|
6471
6524
|
children: /* @__PURE__ */ e(
|
|
6472
|
-
|
|
6525
|
+
R,
|
|
6473
6526
|
{
|
|
6474
6527
|
secondary: !0,
|
|
6475
6528
|
size: "xs",
|
|
@@ -6577,9 +6630,9 @@ const nr = {
|
|
|
6577
6630
|
) }), Mi = ({ title: t, value: r, icon: n }) => /* @__PURE__ */ u(f, { display: "flex", direction: "column", gap: "sm", children: [
|
|
6578
6631
|
n ? /* @__PURE__ */ u(f, { display: "flex", direction: "row", align: "center", gap: "xs", children: [
|
|
6579
6632
|
/* @__PURE__ */ e(S, { name: n, color: "subtle" }),
|
|
6580
|
-
/* @__PURE__ */ e(
|
|
6581
|
-
] }) : /* @__PURE__ */ e(
|
|
6582
|
-
typeof r == "string" ? /* @__PURE__ */ e(
|
|
6633
|
+
/* @__PURE__ */ e(b, { color: "gray-500", variant: "sub-h3", children: t })
|
|
6634
|
+
] }) : /* @__PURE__ */ e(b, { color: "gray-500", variant: "sub-h3", children: t }),
|
|
6635
|
+
typeof r == "string" ? /* @__PURE__ */ e(b, { variant: "sub-h3", children: r }) : r
|
|
6583
6636
|
] }), le = {
|
|
6584
6637
|
silhouette: "#A7B0AC",
|
|
6585
6638
|
accent: "#78867F"
|
|
@@ -6742,10 +6795,10 @@ const Xl = ({
|
|
|
6742
6795
|
const g = () => {
|
|
6743
6796
|
switch (l) {
|
|
6744
6797
|
case "primary":
|
|
6745
|
-
return /* @__PURE__ */ e(X, { children: o ? /* @__PURE__ */ e(
|
|
6798
|
+
return /* @__PURE__ */ e(X, { children: o ? /* @__PURE__ */ e(R, { primary: !0, iconLeft: o, onClick: n, children: h || t }) : /* @__PURE__ */ e(R, { primary: !0, onClick: n, children: h || t }) });
|
|
6746
6799
|
case "secondary":
|
|
6747
|
-
return /* @__PURE__ */ e(X, { children: o ? /* @__PURE__ */ e(
|
|
6748
|
-
|
|
6800
|
+
return /* @__PURE__ */ e(X, { children: o ? /* @__PURE__ */ e(R, { secondary: !0, iconLeft: o, onClick: n, children: i ? /* @__PURE__ */ e(
|
|
6801
|
+
b,
|
|
6749
6802
|
{
|
|
6750
6803
|
fontFamily: "Poppins",
|
|
6751
6804
|
fontSize: "md",
|
|
@@ -6753,11 +6806,11 @@ const Xl = ({
|
|
|
6753
6806
|
style: { color: "var(--sa-background-success, #28ac6e)" },
|
|
6754
6807
|
children: h || t
|
|
6755
6808
|
}
|
|
6756
|
-
) : t }) : /* @__PURE__ */ e(
|
|
6809
|
+
) : t }) : /* @__PURE__ */ e(R, { secondary: !0, onClick: n, children: h || t }) });
|
|
6757
6810
|
case "success":
|
|
6758
|
-
return /* @__PURE__ */ e(X, { children: o ? /* @__PURE__ */ e(
|
|
6811
|
+
return /* @__PURE__ */ e(X, { children: o ? /* @__PURE__ */ e(R, { success: !0, iconLeft: o, onClick: n, children: h || t }) : /* @__PURE__ */ e(R, { success: !0, onClick: n, children: h || t }) });
|
|
6759
6812
|
default:
|
|
6760
|
-
return /* @__PURE__ */ e(X, { children: o ? /* @__PURE__ */ e(
|
|
6813
|
+
return /* @__PURE__ */ e(X, { children: o ? /* @__PURE__ */ e(R, { primary: !0, iconLeft: o, onClick: n, children: h || t }) : /* @__PURE__ */ e(R, { primary: !0, onClick: n, children: h || t }) });
|
|
6761
6814
|
}
|
|
6762
6815
|
};
|
|
6763
6816
|
return /* @__PURE__ */ u(
|
|
@@ -7016,7 +7069,7 @@ function Kl({ onClick: t }) {
|
|
|
7016
7069
|
children: [
|
|
7017
7070
|
/* @__PURE__ */ e(Bi, { width: r ? 600 : 300 }),
|
|
7018
7071
|
/* @__PURE__ */ e(
|
|
7019
|
-
|
|
7072
|
+
b,
|
|
7020
7073
|
{
|
|
7021
7074
|
fontWeight: "bold",
|
|
7022
7075
|
fontSize: r ? "3xl" : "2xl",
|
|
@@ -7025,7 +7078,7 @@ function Kl({ onClick: t }) {
|
|
|
7025
7078
|
}
|
|
7026
7079
|
),
|
|
7027
7080
|
/* @__PURE__ */ e(
|
|
7028
|
-
|
|
7081
|
+
b,
|
|
7029
7082
|
{
|
|
7030
7083
|
fontWeight: "semibold",
|
|
7031
7084
|
fontSize: r ? "lg" : "md",
|
|
@@ -7033,7 +7086,7 @@ function Kl({ onClick: t }) {
|
|
|
7033
7086
|
children: "Sorry, we couldn't find the page you are looking for"
|
|
7034
7087
|
}
|
|
7035
7088
|
),
|
|
7036
|
-
t && /* @__PURE__ */ e(
|
|
7089
|
+
t && /* @__PURE__ */ e(R, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
|
|
7037
7090
|
]
|
|
7038
7091
|
}
|
|
7039
7092
|
);
|
|
@@ -7288,8 +7341,8 @@ function eo({ onClick: t }) {
|
|
|
7288
7341
|
gap: "md",
|
|
7289
7342
|
children: [
|
|
7290
7343
|
/* @__PURE__ */ e(zi, { width: r ? 600 : 300 }),
|
|
7291
|
-
/* @__PURE__ */ e(
|
|
7292
|
-
t && /* @__PURE__ */ e(
|
|
7344
|
+
/* @__PURE__ */ e(b, { fontWeight: "bold", fontSize: r ? "3xl" : "2xl", children: "We Are Sorry ..." }),
|
|
7345
|
+
t && /* @__PURE__ */ e(R, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
|
|
7293
7346
|
]
|
|
7294
7347
|
}
|
|
7295
7348
|
);
|
|
@@ -7999,7 +8052,7 @@ function to({ onClick: t }) {
|
|
|
7999
8052
|
children: [
|
|
8000
8053
|
/* @__PURE__ */ e(Ai, { width: r ? 600 : 300 }),
|
|
8001
8054
|
/* @__PURE__ */ e(
|
|
8002
|
-
|
|
8055
|
+
b,
|
|
8003
8056
|
{
|
|
8004
8057
|
fontWeight: "bold",
|
|
8005
8058
|
fontSize: r ? "3xl" : "2xl",
|
|
@@ -8008,7 +8061,7 @@ function to({ onClick: t }) {
|
|
|
8008
8061
|
}
|
|
8009
8062
|
),
|
|
8010
8063
|
/* @__PURE__ */ e(
|
|
8011
|
-
|
|
8064
|
+
b,
|
|
8012
8065
|
{
|
|
8013
8066
|
fontWeight: "semibold",
|
|
8014
8067
|
fontSize: r ? "lg" : "md",
|
|
@@ -8016,7 +8069,7 @@ function to({ onClick: t }) {
|
|
|
8016
8069
|
children: "we are trying to fix the problem"
|
|
8017
8070
|
}
|
|
8018
8071
|
),
|
|
8019
|
-
t && /* @__PURE__ */ e(
|
|
8072
|
+
t && /* @__PURE__ */ e(R, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
|
|
8020
8073
|
]
|
|
8021
8074
|
}
|
|
8022
8075
|
);
|
|
@@ -8037,8 +8090,8 @@ const ro = (t) => {
|
|
|
8037
8090
|
}
|
|
8038
8091
|
},
|
|
8039
8092
|
children: [
|
|
8040
|
-
/* @__PURE__ */ e(lr, { ...t.dialogTitleProps, children: typeof t.title == "string" ? /* @__PURE__ */ e(
|
|
8041
|
-
/* @__PURE__ */ e(wt, { children: typeof t.description == "string" ? /* @__PURE__ */ e(
|
|
8093
|
+
/* @__PURE__ */ e(lr, { ...t.dialogTitleProps, children: typeof t.title == "string" ? /* @__PURE__ */ e(b, { fontSize: "lg", fontWeight: "medium", children: t.title }) : t.title }),
|
|
8094
|
+
/* @__PURE__ */ e(wt, { children: typeof t.description == "string" ? /* @__PURE__ */ e(b, { fontSize: "md", lineHeight: "leading-6", color: "brand", children: t.description }) : t.description }),
|
|
8042
8095
|
/* @__PURE__ */ e(or, { children: /* @__PURE__ */ e(
|
|
8043
8096
|
f,
|
|
8044
8097
|
{
|
|
@@ -8055,7 +8108,7 @@ const ro = (t) => {
|
|
|
8055
8108
|
gap: ((a = t.wrapperConfirmBtnProps) == null ? void 0 : a.gap) || "sm",
|
|
8056
8109
|
...t.wrapperConfirmBtnProps,
|
|
8057
8110
|
children: [
|
|
8058
|
-
t.onCancel && /* @__PURE__ */ e(
|
|
8111
|
+
t.onCancel && /* @__PURE__ */ e(R, { secondary: !0, onClick: t.onCancel, size: "md", fullWidth: !0, children: t.titleCancelBtn || "Cancel" }),
|
|
8059
8112
|
/* @__PURE__ */ e(
|
|
8060
8113
|
f,
|
|
8061
8114
|
{
|
|
@@ -8065,7 +8118,7 @@ const ro = (t) => {
|
|
|
8065
8118
|
textWrap: "nowrap"
|
|
8066
8119
|
},
|
|
8067
8120
|
children: /* @__PURE__ */ e(
|
|
8068
|
-
|
|
8121
|
+
R,
|
|
8069
8122
|
{
|
|
8070
8123
|
...t.buttonConfirmProps,
|
|
8071
8124
|
onClick: t.onConfirm,
|
|
@@ -8085,7 +8138,7 @@ const ro = (t) => {
|
|
|
8085
8138
|
},
|
|
8086
8139
|
t.key
|
|
8087
8140
|
);
|
|
8088
|
-
}, no =
|
|
8141
|
+
}, no = be(
|
|
8089
8142
|
({
|
|
8090
8143
|
children: t,
|
|
8091
8144
|
height: r,
|
|
@@ -8116,9 +8169,9 @@ const ro = (t) => {
|
|
|
8116
8169
|
return F(), window.addEventListener("resize", F), () => window.removeEventListener("resize", F);
|
|
8117
8170
|
}, []);
|
|
8118
8171
|
const C = () => d ? /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
|
|
8119
|
-
/* @__PURE__ */ e(
|
|
8172
|
+
/* @__PURE__ */ e(b, { fontWeight: "medium", children: h }),
|
|
8120
8173
|
/* @__PURE__ */ e($e, { border: !0, text: d, variant: E })
|
|
8121
|
-
] }) : /* @__PURE__ */ e(
|
|
8174
|
+
] }) : /* @__PURE__ */ e(b, { fontWeight: "medium", children: h }), L = () => a || /* @__PURE__ */ u(
|
|
8122
8175
|
f,
|
|
8123
8176
|
{
|
|
8124
8177
|
direction: "row",
|
|
@@ -8178,7 +8231,7 @@ const ro = (t) => {
|
|
|
8178
8231
|
l ? d = i.includes(c.value) ? h.filter((g) => g.value !== c.value) : [...h, c] : d = [c], n == null || n(d);
|
|
8179
8232
|
};
|
|
8180
8233
|
return /* @__PURE__ */ e(f, { direction: "row", gap: "sm", flexWrap: "wrap", children: r == null ? void 0 : r.map((c, h) => /* @__PURE__ */ e(
|
|
8181
|
-
|
|
8234
|
+
R,
|
|
8182
8235
|
{
|
|
8183
8236
|
...i.includes(c.value) ? { primary: !0 } : { secondary: !0 },
|
|
8184
8237
|
onClick: () => a(c),
|
|
@@ -8576,9 +8629,9 @@ export {
|
|
|
8576
8629
|
gl as App,
|
|
8577
8630
|
_r as AppComponent,
|
|
8578
8631
|
hr as AppContext,
|
|
8579
|
-
|
|
8632
|
+
bl as AppLayout,
|
|
8580
8633
|
Ul as AsideBar,
|
|
8581
|
-
|
|
8634
|
+
Cl as BackButton,
|
|
8582
8635
|
Yn as ColumnFilterDropdown,
|
|
8583
8636
|
ro as ConfirmationDialog,
|
|
8584
8637
|
ei as DataTable,
|
|
@@ -8639,7 +8692,7 @@ export {
|
|
|
8639
8692
|
zl as getInitials,
|
|
8640
8693
|
wn as getValueDropdownMultipleFilter,
|
|
8641
8694
|
Sl as getValueRadioFilter,
|
|
8642
|
-
|
|
8695
|
+
br as getValueSearch,
|
|
8643
8696
|
mt as getValuesFilter,
|
|
8644
8697
|
rt as handleChangeFilter,
|
|
8645
8698
|
ql as handleOnScroll,
|
|
@@ -8655,12 +8708,12 @@ export {
|
|
|
8655
8708
|
jl as preventNonNumberAndDecimalInput,
|
|
8656
8709
|
Nl as preventNonNumberInput,
|
|
8657
8710
|
_l as preventNumberInput,
|
|
8658
|
-
|
|
8659
|
-
|
|
8711
|
+
bn as resolveDateRangeValueToString,
|
|
8712
|
+
Cn as resolveDateValueToString,
|
|
8660
8713
|
pn as resolveDropdownValueToString,
|
|
8661
8714
|
xn as resolveRadioValueToString,
|
|
8662
8715
|
ht as resolveSidebarBadge,
|
|
8663
|
-
|
|
8716
|
+
Cr as storageKeys,
|
|
8664
8717
|
Hl as textWidth,
|
|
8665
8718
|
fr as useApp,
|
|
8666
8719
|
Tr as useAppState,
|