@starasia/admin 8.5.0 → 8.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/FilterBar/components/MobileFilterBar.d.ts +1 -0
- package/dist/components/FilterBar/components/SearchBox.d.ts +5 -0
- package/dist/components/FilterBar/types.d.ts +6 -0
- package/dist/index.cjs.js +2 -2
- package/dist/index.es.js +1027 -1021
- package/dist/index.umd.js +2 -2
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -22,13 +22,13 @@ import { searchParamsToObject as Rt } from "@starasia/http";
|
|
|
22
22
|
export * from "@starasia/http";
|
|
23
23
|
import { Input as ht } from "@starasia/input";
|
|
24
24
|
export * from "@starasia/input";
|
|
25
|
-
import { Menu as
|
|
25
|
+
import { Menu as Be, MenuButton as De, MenuLists as ze, MenuHeading as On, MenuBody as Ae, MenuFooter as ar, MenuItem as Ne } from "@starasia/menu";
|
|
26
26
|
export * from "@starasia/menu";
|
|
27
27
|
import { Pagination as dr } from "@starasia/pagination";
|
|
28
28
|
export * from "@starasia/pagination";
|
|
29
29
|
import { storage as qt } from "@starasia/storage";
|
|
30
30
|
export * from "@starasia/storage";
|
|
31
|
-
import { Tr as
|
|
31
|
+
import { Tr as Te, Td as Re, Table as ur, Thead as tn, Th as ut, Tbody as rn, useColumnWidths as Hn } from "@starasia/table";
|
|
32
32
|
export * from "@starasia/table";
|
|
33
33
|
export * from "@starasia/tabs";
|
|
34
34
|
import { Textarea as Tn } from "@starasia/textarea";
|
|
@@ -38,13 +38,13 @@ export * from "@starasia/theme";
|
|
|
38
38
|
export * from "@starasia/toast";
|
|
39
39
|
import { Toggle as Vt } from "@starasia/toggle";
|
|
40
40
|
export * from "@starasia/toggle";
|
|
41
|
-
import { Tooltip as
|
|
41
|
+
import { Tooltip as We } from "@starasia/tooltip";
|
|
42
42
|
export * from "@starasia/tooltip";
|
|
43
43
|
import { Checkbox as Mt } from "@starasia/checkbox";
|
|
44
44
|
export * from "@starasia/checkbox";
|
|
45
45
|
import { Radio as jn } from "@starasia/radio";
|
|
46
46
|
export * from "@starasia/radio";
|
|
47
|
-
import { Text as
|
|
47
|
+
import { Text as w } from "@starasia/text";
|
|
48
48
|
export * from "@starasia/text";
|
|
49
49
|
import { Icon as E } from "@starasia/icon";
|
|
50
50
|
export * from "@starasia/icon";
|
|
@@ -58,8 +58,8 @@ export * from "@starasia/story-record";
|
|
|
58
58
|
import { Skeleton as Ye } from "@starasia/skeleton";
|
|
59
59
|
export * from "@starasia/skeleton";
|
|
60
60
|
export * from "@starasia/progress-stepper";
|
|
61
|
-
import { jsx as e, Fragment as
|
|
62
|
-
import Ke, { createContext as Ot, useState as
|
|
61
|
+
import { jsx as e, Fragment as ie, jsxs as u } from "react/jsx-runtime";
|
|
62
|
+
import Ke, { createContext as Ot, useState as R, useContext as ft, useCallback as Q, useMemo as ge, memo as Je, useEffect as U, useRef as se, useLayoutEffect as lt, forwardRef as hr, isValidElement as ir, Children as _n, useImperativeHandle as Pn } from "react";
|
|
63
63
|
import { useSearchParams as Ht, useNavigate as fr, useLocation as yt, Outlet as Wr, Link as Wt, useParams as nn } from "react-router";
|
|
64
64
|
import Zn, { createPortal as on } from "react-dom";
|
|
65
65
|
import Gn from "react-easy-crop";
|
|
@@ -72,7 +72,7 @@ const qn = {
|
|
|
72
72
|
setUserData: () => {
|
|
73
73
|
}
|
|
74
74
|
}, ln = Ot(qn), cn = () => ft(ln), Un = (t) => {
|
|
75
|
-
const [r, n] =
|
|
75
|
+
const [r, n] = R(
|
|
76
76
|
(t == null ? void 0 : t.initialUserData) || null
|
|
77
77
|
);
|
|
78
78
|
return {
|
|
@@ -88,7 +88,7 @@ const qn = {
|
|
|
88
88
|
clearBadge: () => {
|
|
89
89
|
}
|
|
90
90
|
}), Jn = ({ children: t }) => {
|
|
91
|
-
const [r, n] =
|
|
91
|
+
const [r, n] = R({}), o = Q(
|
|
92
92
|
(c) => {
|
|
93
93
|
n(
|
|
94
94
|
(d) => typeof c == "function" ? c(d) : c
|
|
@@ -141,7 +141,7 @@ const qn = {
|
|
|
141
141
|
children: /* @__PURE__ */ e(Jn, { children: s ? /* @__PURE__ */ e(Mr, { value: s, children: t }) : d ? /* @__PURE__ */ e(Mr, { value: d, children: t }) : t })
|
|
142
142
|
}
|
|
143
143
|
);
|
|
144
|
-
}, Gl =
|
|
144
|
+
}, Gl = Je(Yn);
|
|
145
145
|
function Xn({
|
|
146
146
|
collapsed: t = !1,
|
|
147
147
|
children: r
|
|
@@ -181,7 +181,7 @@ function Xn({
|
|
|
181
181
|
}
|
|
182
182
|
const mr = Ot(null);
|
|
183
183
|
function Kn({ children: t }) {
|
|
184
|
-
const [r, n] =
|
|
184
|
+
const [r, n] = R(null), [o, i] = R(null), [l, s] = R(null), [c, d] = R(0), a = Q(() => (d((m) => m + 1), () => d((m) => m - 1)), []);
|
|
185
185
|
return /* @__PURE__ */ e(
|
|
186
186
|
mr.Provider,
|
|
187
187
|
{
|
|
@@ -201,11 +201,11 @@ function Kn({ children: t }) {
|
|
|
201
201
|
}
|
|
202
202
|
function ei({ children: t }) {
|
|
203
203
|
const r = ft(mr);
|
|
204
|
-
return r ? /* @__PURE__ */ u(
|
|
204
|
+
return r ? /* @__PURE__ */ u(ie, { children: [
|
|
205
205
|
/* @__PURE__ */ e("div", { ref: r.setPrependNode, style: { display: "contents" } }),
|
|
206
206
|
r.replaceCount > 0 ? /* @__PURE__ */ e("div", { ref: r.setReplaceNode, style: { display: "contents" } }) : t,
|
|
207
207
|
/* @__PURE__ */ e("div", { ref: r.setAppendNode, style: { display: "contents" } })
|
|
208
|
-
] }) : /* @__PURE__ */ e(
|
|
208
|
+
] }) : /* @__PURE__ */ e(ie, { children: t });
|
|
209
209
|
}
|
|
210
210
|
function ql({
|
|
211
211
|
children: t,
|
|
@@ -224,7 +224,7 @@ function ql({
|
|
|
224
224
|
}
|
|
225
225
|
const gr = Ot(null);
|
|
226
226
|
function ti({ children: t }) {
|
|
227
|
-
const [r, n] =
|
|
227
|
+
const [r, n] = R({}), [o, i] = R({}), l = Q((d, a) => {
|
|
228
228
|
n((m) => m[d] === a ? m : { ...m, [d]: a });
|
|
229
229
|
}, []), s = Q((d) => (i((a) => ({ ...a, [d]: (a[d] ?? 0) + 1 })), () => i((a) => ({
|
|
230
230
|
...a,
|
|
@@ -246,7 +246,7 @@ function ri({ slotKey: t, fallback: r }) {
|
|
|
246
246
|
[t]
|
|
247
247
|
// slotKey is a stable string from group config
|
|
248
248
|
);
|
|
249
|
-
return /* @__PURE__ */ e(
|
|
249
|
+
return /* @__PURE__ */ e(ie, { children: o ? /* @__PURE__ */ e("div", { ref: l, style: { display: "contents" } }) : r });
|
|
250
250
|
}
|
|
251
251
|
function Ul({ slotKey: t, children: r }) {
|
|
252
252
|
const n = ft(gr), o = se(n == null ? void 0 : n.registerSlot);
|
|
@@ -275,7 +275,7 @@ function Jl() {
|
|
|
275
275
|
an(null);
|
|
276
276
|
}
|
|
277
277
|
function dn() {
|
|
278
|
-
const [t, r] =
|
|
278
|
+
const [t, r] = R(
|
|
279
279
|
() => Br()
|
|
280
280
|
);
|
|
281
281
|
return U(() => {
|
|
@@ -341,132 +341,132 @@ function Ql({
|
|
|
341
341
|
profileMenuItems: p,
|
|
342
342
|
logoutButton: g
|
|
343
343
|
}) {
|
|
344
|
-
var
|
|
345
|
-
const [b] = Ht(), B = b.get("embed") === "true", y = cn(), { badges: k } = Qn(), L = fr(),
|
|
344
|
+
var Ie, et;
|
|
345
|
+
const [b] = Ht(), B = b.get("embed") === "true", y = cn(), { badges: k } = Qn(), L = fr(), z = yt(), C = !ke("md"), [V, I] = R(!1), [v, M] = R(!1), [N, $] = R(!1), [j, X] = R(!1), [le, pe] = R(
|
|
346
346
|
() => new Set(zr)
|
|
347
|
-
), [
|
|
347
|
+
), [ne, he] = R(null), { selectedGroupId: Y, setSelectedGroupId: K } = dn();
|
|
348
348
|
U(() => {
|
|
349
|
-
zr =
|
|
350
|
-
}, [
|
|
351
|
-
const
|
|
349
|
+
zr = le;
|
|
350
|
+
}, [le]);
|
|
351
|
+
const me = se(null), te = se(null);
|
|
352
352
|
U(() => {
|
|
353
|
-
const S =
|
|
353
|
+
const S = me.current;
|
|
354
354
|
if (!S) return;
|
|
355
355
|
const Z = () => {
|
|
356
356
|
ot || (Ct = S.scrollTop);
|
|
357
357
|
};
|
|
358
358
|
return S.addEventListener("scroll", Z), () => S.removeEventListener("scroll", Z);
|
|
359
359
|
}, []);
|
|
360
|
-
const
|
|
361
|
-
const S =
|
|
360
|
+
const de = () => {
|
|
361
|
+
const S = me.current;
|
|
362
362
|
S && Ct > 0 && (ot = !0, S.scrollTop = Ct, requestAnimationFrame(() => {
|
|
363
363
|
ot = !1;
|
|
364
364
|
}));
|
|
365
365
|
};
|
|
366
366
|
lt(() => {
|
|
367
|
-
ot = !0,
|
|
367
|
+
ot = !0, de();
|
|
368
368
|
const S = setTimeout(() => {
|
|
369
369
|
ot = !1;
|
|
370
370
|
}, 300);
|
|
371
371
|
return () => clearTimeout(S);
|
|
372
372
|
}, []), lt(() => {
|
|
373
|
-
y.menus.length > 0 && (Ct > 0 ?
|
|
373
|
+
y.menus.length > 0 && (Ct > 0 ? de() : requestAnimationFrame(() => {
|
|
374
374
|
var Z;
|
|
375
|
-
const S = (Z =
|
|
375
|
+
const S = (Z = me.current) == null ? void 0 : Z.querySelector(
|
|
376
376
|
"[data-menu-active='true']"
|
|
377
377
|
);
|
|
378
378
|
S && S.scrollIntoView({ block: "center", behavior: "instant" });
|
|
379
379
|
}));
|
|
380
380
|
}, [y.menus]), U(() => {
|
|
381
|
-
ot = !0,
|
|
382
|
-
const S = setTimeout(
|
|
381
|
+
ot = !0, de();
|
|
382
|
+
const S = setTimeout(de, 0), Z = setTimeout(de, 50), _ = setTimeout(de, 100), W = setTimeout(de, 200), O = setTimeout(() => {
|
|
383
383
|
ot = !1;
|
|
384
384
|
}, 300), T = setTimeout(() => {
|
|
385
|
-
const
|
|
386
|
-
if (
|
|
387
|
-
const Ce =
|
|
388
|
-
|
|
385
|
+
const P = me.current, J = P == null ? void 0 : P.querySelector("[data-menu-active='true']");
|
|
386
|
+
if (P && J) {
|
|
387
|
+
const Ce = P.getBoundingClientRect(), Le = J.getBoundingClientRect();
|
|
388
|
+
Le.top >= Ce.top && Le.bottom <= Ce.bottom || J.scrollIntoView({ block: "center", behavior: "smooth" });
|
|
389
389
|
}
|
|
390
390
|
}, 250);
|
|
391
391
|
return () => {
|
|
392
|
-
clearTimeout(S), clearTimeout(Z), clearTimeout(
|
|
392
|
+
clearTimeout(S), clearTimeout(Z), clearTimeout(_), clearTimeout(W), clearTimeout(O), clearTimeout(T);
|
|
393
393
|
};
|
|
394
|
-
}, [
|
|
395
|
-
|
|
396
|
-
}, [
|
|
394
|
+
}, [z.pathname]), U(() => {
|
|
395
|
+
te.current && (te.current.scrollTop = 0);
|
|
396
|
+
}, [z.pathname]), U(() => {
|
|
397
397
|
C && $(!1);
|
|
398
|
-
}, [
|
|
398
|
+
}, [z.pathname, C]), U(() => {
|
|
399
399
|
C && M(!0);
|
|
400
400
|
}, [C]);
|
|
401
|
-
const
|
|
401
|
+
const Fe = () => {
|
|
402
402
|
I(!0);
|
|
403
|
-
},
|
|
403
|
+
}, Ze = () => {
|
|
404
404
|
I(!1);
|
|
405
|
-
},
|
|
405
|
+
}, ye = () => {
|
|
406
406
|
I(!1), i();
|
|
407
|
-
},
|
|
407
|
+
}, Ee = (S) => {
|
|
408
408
|
const Z = [S.to];
|
|
409
|
-
return S.children && Z.push(...S.children.map((
|
|
410
|
-
},
|
|
411
|
-
...y.menus.flatMap((S) => S.items.flatMap(
|
|
412
|
-
...((
|
|
413
|
-
],
|
|
414
|
-
if (!
|
|
415
|
-
const Z =
|
|
409
|
+
return S.children && Z.push(...S.children.map((_) => _.to)), Z;
|
|
410
|
+
}, Oe = [
|
|
411
|
+
...y.menus.flatMap((S) => S.items.flatMap(Ee)),
|
|
412
|
+
...((Ie = y.menuBottom) == null ? void 0 : Ie.flatMap(Ee)) ?? []
|
|
413
|
+
], xe = (S) => {
|
|
414
|
+
if (!z.pathname.startsWith(S)) return !1;
|
|
415
|
+
const Z = Oe.filter((_) => z.pathname.startsWith(_)).sort((_, W) => W.length - _.length)[0];
|
|
416
416
|
return S === Z;
|
|
417
417
|
};
|
|
418
418
|
U(() => {
|
|
419
419
|
var Z;
|
|
420
|
-
const S = (
|
|
420
|
+
const S = (_) => {
|
|
421
421
|
var W;
|
|
422
|
-
(W =
|
|
422
|
+
(W = _.children) != null && W.some((O) => z.pathname.startsWith(O.to)) && pe((O) => {
|
|
423
423
|
const T = new Set(O);
|
|
424
|
-
return T.add(
|
|
424
|
+
return T.add(_.id), T;
|
|
425
425
|
});
|
|
426
426
|
};
|
|
427
|
-
y.menus.forEach((
|
|
428
|
-
|
|
427
|
+
y.menus.forEach((_) => {
|
|
428
|
+
_.items.forEach(S);
|
|
429
429
|
}), (Z = y.menuBottom) == null || Z.forEach(S);
|
|
430
|
-
}, [
|
|
431
|
-
const
|
|
432
|
-
|
|
433
|
-
const
|
|
434
|
-
return
|
|
430
|
+
}, [z.pathname, y.menus, y.menuBottom]);
|
|
431
|
+
const $e = (S) => {
|
|
432
|
+
pe((Z) => {
|
|
433
|
+
const _ = new Set(Z);
|
|
434
|
+
return _.has(S) ? _.delete(S) : _.add(S), _;
|
|
435
435
|
});
|
|
436
436
|
};
|
|
437
437
|
U(() => {
|
|
438
|
-
y.menus.length !== 0 &&
|
|
439
|
-
}, [y.menus,
|
|
440
|
-
const
|
|
441
|
-
if (
|
|
438
|
+
y.menus.length !== 0 && Y !== null && !y.menus.some((S) => S.id === Y) && K(null);
|
|
439
|
+
}, [y.menus, Y, K]);
|
|
440
|
+
const Qe = ge(() => {
|
|
441
|
+
if (Y !== null)
|
|
442
442
|
return y.menus.filter(
|
|
443
|
-
(
|
|
443
|
+
(_) => _.id === Y || _.parentGroupId === Y
|
|
444
444
|
);
|
|
445
|
-
const S = y.menus.filter((
|
|
445
|
+
const S = y.menus.filter((_) => _.parentGroupId === void 0), Z = y.menus.filter((_) => _.parentGroupId !== void 0).flatMap((_) => _.items);
|
|
446
446
|
return Z.length === 0 ? S : [
|
|
447
447
|
...S,
|
|
448
448
|
{ id: 18, name: "Pengaturan", items: Z, parentGroupId: void 0 }
|
|
449
449
|
];
|
|
450
|
-
}, [y.menus,
|
|
450
|
+
}, [y.menus, Y]);
|
|
451
451
|
if (B)
|
|
452
452
|
return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(Wr, {}) });
|
|
453
|
-
const
|
|
454
|
-
const Z = S.children && S.children.length > 0,
|
|
453
|
+
const be = (S) => {
|
|
454
|
+
const Z = S.children && S.children.length > 0, _ = le.has(S.id), W = Z ? S.children.some((P) => xe(P.to)) : xe(S.to), O = Ut(S.badge, k[S.id]), T = !!O && v && !C;
|
|
455
455
|
return /* @__PURE__ */ u("div", { "data-menu-active": W || void 0, children: [
|
|
456
456
|
/* @__PURE__ */ u(
|
|
457
457
|
"button",
|
|
458
458
|
{
|
|
459
|
-
onClick: (
|
|
459
|
+
onClick: (P) => {
|
|
460
460
|
if (Z)
|
|
461
461
|
if (v && !C) {
|
|
462
|
-
const J =
|
|
462
|
+
const J = P.currentTarget.getBoundingClientRect();
|
|
463
463
|
he({
|
|
464
464
|
item: S,
|
|
465
465
|
top: J.top,
|
|
466
466
|
left: J.right + 8
|
|
467
467
|
});
|
|
468
468
|
} else
|
|
469
|
-
|
|
469
|
+
$e(S.id);
|
|
470
470
|
else
|
|
471
471
|
L(S.to);
|
|
472
472
|
},
|
|
@@ -489,11 +489,11 @@ function Ql({
|
|
|
489
489
|
cursor: "pointer"
|
|
490
490
|
},
|
|
491
491
|
title: v && !C ? S.title : void 0,
|
|
492
|
-
onMouseEnter: (
|
|
493
|
-
W || (
|
|
492
|
+
onMouseEnter: (P) => {
|
|
493
|
+
W || (P.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
|
|
494
494
|
},
|
|
495
|
-
onMouseLeave: (
|
|
496
|
-
W || (
|
|
495
|
+
onMouseLeave: (P) => {
|
|
496
|
+
W || (P.currentTarget.style.backgroundColor = "transparent");
|
|
497
497
|
},
|
|
498
498
|
children: [
|
|
499
499
|
/* @__PURE__ */ u(
|
|
@@ -525,7 +525,7 @@ function Ql({
|
|
|
525
525
|
]
|
|
526
526
|
}
|
|
527
527
|
),
|
|
528
|
-
(!v || C) && /* @__PURE__ */ u(
|
|
528
|
+
(!v || C) && /* @__PURE__ */ u(ie, { children: [
|
|
529
529
|
/* @__PURE__ */ e(
|
|
530
530
|
"span",
|
|
531
531
|
{
|
|
@@ -559,7 +559,7 @@ function Ql({
|
|
|
559
559
|
height: "1rem",
|
|
560
560
|
flexShrink: 0,
|
|
561
561
|
transition: "transform 0.2s",
|
|
562
|
-
transform:
|
|
562
|
+
transform: _ ? "rotate(180deg)" : "rotate(0deg)"
|
|
563
563
|
},
|
|
564
564
|
fill: "none",
|
|
565
565
|
stroke: "currentColor",
|
|
@@ -580,8 +580,8 @@ function Ql({
|
|
|
580
580
|
}
|
|
581
581
|
),
|
|
582
582
|
Z && (!v || C) && (() => {
|
|
583
|
-
const
|
|
584
|
-
(J) =>
|
|
583
|
+
const P = S.children.findIndex(
|
|
584
|
+
(J) => xe(J.to)
|
|
585
585
|
);
|
|
586
586
|
return /* @__PURE__ */ u(
|
|
587
587
|
"div",
|
|
@@ -592,9 +592,9 @@ function Ql({
|
|
|
592
592
|
paddingLeft: "1.125rem",
|
|
593
593
|
overflow: "hidden",
|
|
594
594
|
transition: "all 0.3s ease-in-out",
|
|
595
|
-
maxHeight:
|
|
596
|
-
opacity:
|
|
597
|
-
marginTop:
|
|
595
|
+
maxHeight: _ ? `${S.children.length * 36}px` : "0px",
|
|
596
|
+
opacity: _ ? 1 : 0,
|
|
597
|
+
marginTop: _ ? "0.25rem" : "0px"
|
|
598
598
|
},
|
|
599
599
|
children: [
|
|
600
600
|
/* @__PURE__ */ e(
|
|
@@ -612,14 +612,14 @@ function Ql({
|
|
|
612
612
|
}
|
|
613
613
|
}
|
|
614
614
|
),
|
|
615
|
-
|
|
615
|
+
P >= 0 && /* @__PURE__ */ e(
|
|
616
616
|
"span",
|
|
617
617
|
{
|
|
618
618
|
"aria-hidden": "true",
|
|
619
619
|
style: {
|
|
620
620
|
position: "absolute",
|
|
621
621
|
left: 0,
|
|
622
|
-
top: `${
|
|
622
|
+
top: `${P * 32}px`,
|
|
623
623
|
width: "1.5px",
|
|
624
624
|
height: "32px",
|
|
625
625
|
backgroundColor: "var(--sa-text-primary, #292a2e)",
|
|
@@ -648,18 +648,18 @@ function Ql({
|
|
|
648
648
|
paddingTop: "0.25rem",
|
|
649
649
|
paddingBottom: "0.25rem",
|
|
650
650
|
height: "2rem",
|
|
651
|
-
borderRadius:
|
|
651
|
+
borderRadius: xe(J.to) ? "var(--sa-radii-sm, 0.375rem)" : "var(--sa-radii-md, 0.5rem)",
|
|
652
652
|
textAlign: "left",
|
|
653
|
-
backgroundColor:
|
|
654
|
-
color:
|
|
653
|
+
backgroundColor: xe(J.to) ? "var(--sa-background-primary, #ffffff)" : "transparent",
|
|
654
|
+
color: xe(J.to) ? "var(--sa-text-primary, #292a2e)" : "var(--sa-text-subtle, #505258)",
|
|
655
655
|
cursor: "pointer",
|
|
656
|
-
border:
|
|
656
|
+
border: xe(J.to) ? "1px solid var(--sa-border-subtle, #0b120e24)" : "1px solid transparent"
|
|
657
657
|
},
|
|
658
|
-
onMouseEnter: (
|
|
659
|
-
|
|
658
|
+
onMouseEnter: (Le) => {
|
|
659
|
+
xe(J.to) || (Le.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
|
|
660
660
|
},
|
|
661
|
-
onMouseLeave: (
|
|
662
|
-
|
|
661
|
+
onMouseLeave: (Le) => {
|
|
662
|
+
xe(J.to) || (Le.currentTarget.style.backgroundColor = "transparent");
|
|
663
663
|
},
|
|
664
664
|
children: [
|
|
665
665
|
/* @__PURE__ */ e(
|
|
@@ -755,8 +755,8 @@ function Ql({
|
|
|
755
755
|
/* @__PURE__ */ e(
|
|
756
756
|
"div",
|
|
757
757
|
{
|
|
758
|
-
onMouseEnter: () =>
|
|
759
|
-
onMouseLeave: () =>
|
|
758
|
+
onMouseEnter: () => X(!0),
|
|
759
|
+
onMouseLeave: () => X(!1),
|
|
760
760
|
style: {
|
|
761
761
|
height: "4rem",
|
|
762
762
|
display: "flex",
|
|
@@ -768,8 +768,8 @@ function Ql({
|
|
|
768
768
|
position: "relative"
|
|
769
769
|
},
|
|
770
770
|
children: (() => {
|
|
771
|
-
const S = !C && v && !N, Z = S &&
|
|
772
|
-
return /* @__PURE__ */ u(
|
|
771
|
+
const S = !C && v && !N, Z = S && j;
|
|
772
|
+
return /* @__PURE__ */ u(ie, { children: [
|
|
773
773
|
/* @__PURE__ */ u(
|
|
774
774
|
"div",
|
|
775
775
|
{
|
|
@@ -919,14 +919,14 @@ function Ql({
|
|
|
919
919
|
/* @__PURE__ */ e(
|
|
920
920
|
"div",
|
|
921
921
|
{
|
|
922
|
-
ref:
|
|
922
|
+
ref: me,
|
|
923
923
|
style: {
|
|
924
924
|
flex: 1,
|
|
925
925
|
overflowY: "auto",
|
|
926
926
|
paddingTop: "1rem",
|
|
927
927
|
paddingBottom: "1rem"
|
|
928
928
|
},
|
|
929
|
-
children:
|
|
929
|
+
children: Qe.map((S) => /* @__PURE__ */ u("div", { style: { marginBottom: "1rem" }, children: [
|
|
930
930
|
!v || C ? S.name && /* @__PURE__ */ e(
|
|
931
931
|
"div",
|
|
932
932
|
{
|
|
@@ -974,9 +974,9 @@ function Ql({
|
|
|
974
974
|
ri,
|
|
975
975
|
{
|
|
976
976
|
slotKey: S.slotKey,
|
|
977
|
-
fallback: S.items.map((Z) =>
|
|
977
|
+
fallback: S.items.map((Z) => be(Z))
|
|
978
978
|
}
|
|
979
|
-
) : S.items.map((Z) =>
|
|
979
|
+
) : S.items.map((Z) => be(Z)) })
|
|
980
980
|
] }, S.id))
|
|
981
981
|
}
|
|
982
982
|
),
|
|
@@ -995,7 +995,7 @@ function Ql({
|
|
|
995
995
|
gap: "var(--sa-spacing-xs, 0.25rem)",
|
|
996
996
|
flexShrink: 0
|
|
997
997
|
},
|
|
998
|
-
children: y.menuBottom.map((S) =>
|
|
998
|
+
children: y.menuBottom.map((S) => be(S))
|
|
999
999
|
}
|
|
1000
1000
|
)
|
|
1001
1001
|
]
|
|
@@ -1054,7 +1054,7 @@ function Ql({
|
|
|
1054
1054
|
] }),
|
|
1055
1055
|
/* @__PURE__ */ u("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
|
|
1056
1056
|
d,
|
|
1057
|
-
/* @__PURE__ */ u(
|
|
1057
|
+
/* @__PURE__ */ u(Be, { position: "bottom-right", children: [
|
|
1058
1058
|
/* @__PURE__ */ e(De, { children: /* @__PURE__ */ u(
|
|
1059
1059
|
"div",
|
|
1060
1060
|
{
|
|
@@ -1128,7 +1128,7 @@ function Ql({
|
|
|
1128
1128
|
}
|
|
1129
1129
|
) }),
|
|
1130
1130
|
/* @__PURE__ */ u(
|
|
1131
|
-
|
|
1131
|
+
ze,
|
|
1132
1132
|
{
|
|
1133
1133
|
style: {
|
|
1134
1134
|
width: "280px",
|
|
@@ -1218,18 +1218,18 @@ function Ql({
|
|
|
1218
1218
|
]
|
|
1219
1219
|
}
|
|
1220
1220
|
) }),
|
|
1221
|
-
(m && m.length > 0 || p) && /* @__PURE__ */ u(
|
|
1221
|
+
(m && m.length > 0 || p) && /* @__PURE__ */ u(Ae, { children: [
|
|
1222
1222
|
m == null ? void 0 : m.map((S, Z) => /* @__PURE__ */ e(De, { children: /* @__PURE__ */ u(
|
|
1223
1223
|
"button",
|
|
1224
1224
|
{
|
|
1225
1225
|
type: "button",
|
|
1226
1226
|
onClick: S.onClick,
|
|
1227
1227
|
style: Ir,
|
|
1228
|
-
onMouseEnter: (
|
|
1229
|
-
|
|
1228
|
+
onMouseEnter: (_) => {
|
|
1229
|
+
_.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)";
|
|
1230
1230
|
},
|
|
1231
|
-
onMouseLeave: (
|
|
1232
|
-
|
|
1231
|
+
onMouseLeave: (_) => {
|
|
1232
|
+
_.currentTarget.style.backgroundColor = "transparent";
|
|
1233
1233
|
},
|
|
1234
1234
|
children: [
|
|
1235
1235
|
/* @__PURE__ */ e(E, { name: S.icon, size: "md" }),
|
|
@@ -1243,7 +1243,7 @@ function Ql({
|
|
|
1243
1243
|
"button",
|
|
1244
1244
|
{
|
|
1245
1245
|
type: "button",
|
|
1246
|
-
onClick:
|
|
1246
|
+
onClick: Fe,
|
|
1247
1247
|
style: {
|
|
1248
1248
|
...Ir,
|
|
1249
1249
|
color: "var(--sa-background-error, #c9184a)",
|
|
@@ -1281,7 +1281,7 @@ function Ql({
|
|
|
1281
1281
|
/* @__PURE__ */ e(
|
|
1282
1282
|
"main",
|
|
1283
1283
|
{
|
|
1284
|
-
ref:
|
|
1284
|
+
ref: te,
|
|
1285
1285
|
style: {
|
|
1286
1286
|
flex: 1,
|
|
1287
1287
|
overflowY: "auto"
|
|
@@ -1308,15 +1308,15 @@ function Ql({
|
|
|
1308
1308
|
children: s
|
|
1309
1309
|
}
|
|
1310
1310
|
),
|
|
1311
|
-
/* @__PURE__ */ u(cr, { isShow:
|
|
1311
|
+
/* @__PURE__ */ u(cr, { isShow: V, onHide: Ze, children: [
|
|
1312
1312
|
/* @__PURE__ */ e(Xr, { children: "Confirmation Logout" }),
|
|
1313
1313
|
/* @__PURE__ */ e(sr, { children: "Are you sure you want to end the session and exit the page?" }),
|
|
1314
1314
|
/* @__PURE__ */ e(Kr, { children: /* @__PURE__ */ e(f, { direction: "column", display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ u(ce, { direction: "row", gap: "sm", align: "center", children: [
|
|
1315
|
-
/* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(H, { secondary: !0, onClick:
|
|
1316
|
-
/* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(H, { primary: !0, onClick:
|
|
1315
|
+
/* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(H, { secondary: !0, onClick: Ze, children: "Cancel" }) }),
|
|
1316
|
+
/* @__PURE__ */ e(f, { direction: "column", children: /* @__PURE__ */ e(H, { primary: !0, onClick: ye, children: "Yes, Sure" }) })
|
|
1317
1317
|
] }) }) })
|
|
1318
1318
|
] }),
|
|
1319
|
-
|
|
1319
|
+
ne && /* @__PURE__ */ u(ie, { children: [
|
|
1320
1320
|
/* @__PURE__ */ e(
|
|
1321
1321
|
"div",
|
|
1322
1322
|
{
|
|
@@ -1333,11 +1333,11 @@ function Ql({
|
|
|
1333
1333
|
"div",
|
|
1334
1334
|
{
|
|
1335
1335
|
role: "dialog",
|
|
1336
|
-
"aria-label":
|
|
1336
|
+
"aria-label": ne.item.title,
|
|
1337
1337
|
style: {
|
|
1338
1338
|
position: "fixed",
|
|
1339
|
-
top:
|
|
1340
|
-
left:
|
|
1339
|
+
top: ne.top,
|
|
1340
|
+
left: ne.left,
|
|
1341
1341
|
zIndex: 61,
|
|
1342
1342
|
minWidth: "13rem",
|
|
1343
1343
|
maxWidth: "16rem",
|
|
@@ -1362,11 +1362,11 @@ function Ql({
|
|
|
1362
1362
|
textTransform: "uppercase",
|
|
1363
1363
|
letterSpacing: "0.05em"
|
|
1364
1364
|
},
|
|
1365
|
-
children:
|
|
1365
|
+
children: ne.item.title
|
|
1366
1366
|
}
|
|
1367
1367
|
),
|
|
1368
|
-
(et =
|
|
1369
|
-
const Z =
|
|
1368
|
+
(et = ne.item.children) == null ? void 0 : et.map((S) => {
|
|
1369
|
+
const Z = xe(S.to), _ = Ut(
|
|
1370
1370
|
S.badge,
|
|
1371
1371
|
k[S.id]
|
|
1372
1372
|
);
|
|
@@ -1407,11 +1407,11 @@ function Ql({
|
|
|
1407
1407
|
}
|
|
1408
1408
|
),
|
|
1409
1409
|
/* @__PURE__ */ e("span", { style: { flex: 1, whiteSpace: "nowrap" }, children: S.title }),
|
|
1410
|
-
|
|
1410
|
+
_ && /* @__PURE__ */ e(
|
|
1411
1411
|
gt,
|
|
1412
1412
|
{
|
|
1413
|
-
text: String(
|
|
1414
|
-
variant:
|
|
1413
|
+
text: String(_.value),
|
|
1414
|
+
variant: _.variant ?? "info",
|
|
1415
1415
|
size: "xs",
|
|
1416
1416
|
border: !0
|
|
1417
1417
|
}
|
|
@@ -1449,7 +1449,7 @@ const pr = hr(
|
|
|
1449
1449
|
hoverTextColor: i,
|
|
1450
1450
|
hoverIconColor: l
|
|
1451
1451
|
}) => {
|
|
1452
|
-
const [s, c] =
|
|
1452
|
+
const [s, c] = R(!1);
|
|
1453
1453
|
return /* @__PURE__ */ u(
|
|
1454
1454
|
f,
|
|
1455
1455
|
{
|
|
@@ -1472,7 +1472,7 @@ const pr = hr(
|
|
|
1472
1472
|
}
|
|
1473
1473
|
),
|
|
1474
1474
|
/* @__PURE__ */ e(
|
|
1475
|
-
|
|
1475
|
+
w,
|
|
1476
1476
|
{
|
|
1477
1477
|
variant: "sub-h3",
|
|
1478
1478
|
style: {
|
|
@@ -1492,7 +1492,7 @@ const pr = hr(
|
|
|
1492
1492
|
iconColor: o,
|
|
1493
1493
|
hoverIconColor: i
|
|
1494
1494
|
}) => {
|
|
1495
|
-
const [l, s] =
|
|
1495
|
+
const [l, s] = R(!1), c = o ?? "var(--sa-text-subtle, #8c8f97)", d = i ?? "var(--sa-text-subtle, #8c8f97)", a = t.length > 1 ? t[0] : void 0, m = !!(a != null && a.to || a != null && a.onClick), p = /* @__PURE__ */ e(
|
|
1496
1496
|
E,
|
|
1497
1497
|
{
|
|
1498
1498
|
name: n || "ChevronLeft",
|
|
@@ -1611,7 +1611,7 @@ function ii({
|
|
|
1611
1611
|
selectedGroupId: o,
|
|
1612
1612
|
onSelect: i
|
|
1613
1613
|
}) {
|
|
1614
|
-
const [l, s] =
|
|
1614
|
+
const [l, s] = R(void 0), c = (a) => {
|
|
1615
1615
|
i(a), r();
|
|
1616
1616
|
}, d = Jt[0];
|
|
1617
1617
|
return /* @__PURE__ */ e(
|
|
@@ -1675,7 +1675,7 @@ function Xl({
|
|
|
1675
1675
|
onSelect: t,
|
|
1676
1676
|
"aria-label": r = "Pilih module"
|
|
1677
1677
|
} = {}) {
|
|
1678
|
-
const n = cn(), o = fr(), { selectedGroupId: i, setSelectedGroupId: l } = dn(), [s, c] =
|
|
1678
|
+
const n = cn(), o = fr(), { selectedGroupId: i, setSelectedGroupId: l } = dn(), [s, c] = R(!1), d = (a) => {
|
|
1679
1679
|
var m;
|
|
1680
1680
|
if (l(a), a !== null) {
|
|
1681
1681
|
const p = n.menus.find((b) => b.id === a), g = (m = p == null ? void 0 : p.items[0]) == null ? void 0 : m.to;
|
|
@@ -1683,7 +1683,7 @@ function Xl({
|
|
|
1683
1683
|
}
|
|
1684
1684
|
t == null || t(a);
|
|
1685
1685
|
};
|
|
1686
|
-
return /* @__PURE__ */ u(
|
|
1686
|
+
return /* @__PURE__ */ u(ie, { children: [
|
|
1687
1687
|
/* @__PURE__ */ u("div", { style: { position: "relative" }, children: [
|
|
1688
1688
|
/* @__PURE__ */ e(
|
|
1689
1689
|
"button",
|
|
@@ -1748,7 +1748,7 @@ const oi = (t, r) => {
|
|
|
1748
1748
|
n.push(i);
|
|
1749
1749
|
}
|
|
1750
1750
|
return n;
|
|
1751
|
-
}, li =
|
|
1751
|
+
}, li = Je(
|
|
1752
1752
|
({
|
|
1753
1753
|
value: t,
|
|
1754
1754
|
label: r,
|
|
@@ -1773,14 +1773,14 @@ const oi = (t, r) => {
|
|
|
1773
1773
|
verticalAlign: l
|
|
1774
1774
|
}),
|
|
1775
1775
|
[i, l]
|
|
1776
|
-
), d = () => typeof r == "string" ? /* @__PURE__ */ e(
|
|
1777
|
-
return /* @__PURE__ */ u(
|
|
1778
|
-
/* @__PURE__ */ e(
|
|
1779
|
-
n ? /* @__PURE__ */ e(
|
|
1780
|
-
/* @__PURE__ */ e(
|
|
1776
|
+
), d = () => typeof r == "string" ? /* @__PURE__ */ e(w, { fontWeight: "medium", color: "subtlest", children: r }) : r, a = () => typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ e(w, { color: "primary", fontWeight: "medium", children: t }) : t, m = () => typeof n == "string" || typeof n == "number" ? /* @__PURE__ */ e(w, { fontWeight: "medium", color: "subtlest", children: n }) : n;
|
|
1777
|
+
return /* @__PURE__ */ u(Te, { children: [
|
|
1778
|
+
/* @__PURE__ */ e(Re, { style: s, width: o, children: d() }),
|
|
1779
|
+
n ? /* @__PURE__ */ e(Re, { style: c, width: 24, children: m() }) : null,
|
|
1780
|
+
/* @__PURE__ */ e(Re, { style: s, children: a() })
|
|
1781
1781
|
] });
|
|
1782
1782
|
}
|
|
1783
|
-
), ci =
|
|
1783
|
+
), ci = Je(({ fields: t, separator: r, labelWidth: n }) => /* @__PURE__ */ e(ur, { children: t.map((o, i) => /* @__PURE__ */ e(
|
|
1784
1784
|
li,
|
|
1785
1785
|
{
|
|
1786
1786
|
separator: r,
|
|
@@ -1789,7 +1789,7 @@ const oi = (t, r) => {
|
|
|
1789
1789
|
...o
|
|
1790
1790
|
},
|
|
1791
1791
|
`field-group-field-${i}`
|
|
1792
|
-
)) })), Kl =
|
|
1792
|
+
)) })), Kl = Je(
|
|
1793
1793
|
({
|
|
1794
1794
|
maxRow: t = 0,
|
|
1795
1795
|
maxColumn: r = 2,
|
|
@@ -1850,7 +1850,7 @@ const oi = (t, r) => {
|
|
|
1850
1850
|
);
|
|
1851
1851
|
}
|
|
1852
1852
|
), si = ({ backButton: t }) => {
|
|
1853
|
-
const [r, n] =
|
|
1853
|
+
const [r, n] = R(!1), o = (t == null ? void 0 : t.iconColor) ?? "var(--sa-text-subtle, #8c8f97)", i = (t == null ? void 0 : t.textColor) ?? "var(--sa-text-subtle, #8c8f97)", l = (t == null ? void 0 : t.hoverIconColor) ?? "var(--sa-text-subtle, #8c8f97)", s = (t == null ? void 0 : t.hoverTextColor) ?? "var(--sa-text-primary, #292a2e)";
|
|
1854
1854
|
return /* @__PURE__ */ u(
|
|
1855
1855
|
f,
|
|
1856
1856
|
{
|
|
@@ -1873,7 +1873,7 @@ const oi = (t, r) => {
|
|
|
1873
1873
|
}
|
|
1874
1874
|
),
|
|
1875
1875
|
/* @__PURE__ */ e(
|
|
1876
|
-
|
|
1876
|
+
w,
|
|
1877
1877
|
{
|
|
1878
1878
|
variant: "sub-h3",
|
|
1879
1879
|
style: {
|
|
@@ -1913,16 +1913,16 @@ const oi = (t, r) => {
|
|
|
1913
1913
|
const v = d.filter(
|
|
1914
1914
|
(M) => M && (M.title || M.icon)
|
|
1915
1915
|
);
|
|
1916
|
-
return v.length === 0 ? null : g ? /* @__PURE__ */ e(f, { direction: "row", gap: "md", children: v.map(({ title: M, icon: N, buttonProps: $, onClick:
|
|
1916
|
+
return v.length === 0 ? null : g ? /* @__PURE__ */ e(f, { direction: "row", gap: "md", children: v.map(({ title: M, icon: N, buttonProps: $, onClick: j }, X) => /* @__PURE__ */ e(
|
|
1917
1917
|
H,
|
|
1918
1918
|
{
|
|
1919
1919
|
iconLeft: N ? /* @__PURE__ */ e(E, { name: N, size: "md" }) : void 0,
|
|
1920
|
-
onClick:
|
|
1920
|
+
onClick: j,
|
|
1921
1921
|
...$,
|
|
1922
1922
|
children: M
|
|
1923
1923
|
},
|
|
1924
|
-
`action-${
|
|
1925
|
-
)) }) : /* @__PURE__ */ u(
|
|
1924
|
+
`action-${X}`
|
|
1925
|
+
)) }) : /* @__PURE__ */ u(Be, { position: "bottom-right", children: [
|
|
1926
1926
|
/* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
|
|
1927
1927
|
H,
|
|
1928
1928
|
{
|
|
@@ -1937,22 +1937,22 @@ const oi = (t, r) => {
|
|
|
1937
1937
|
"aria-label": "Actions"
|
|
1938
1938
|
}
|
|
1939
1939
|
) }),
|
|
1940
|
-
/* @__PURE__ */ e(
|
|
1941
|
-
const
|
|
1940
|
+
/* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(Ae, { style: { minWidth: 200 }, children: v.map(({ title: M, icon: N, buttonProps: $, onClick: j }, X) => {
|
|
1941
|
+
const le = ($ == null ? void 0 : $.tone) === "error" || ($ == null ? void 0 : $.danger) === !0;
|
|
1942
1942
|
return /* @__PURE__ */ e(
|
|
1943
|
-
|
|
1943
|
+
Ne,
|
|
1944
1944
|
{
|
|
1945
|
-
intent:
|
|
1945
|
+
intent: le ? "danger" : void 0,
|
|
1946
1946
|
disabled: $ == null ? void 0 : $.disabled,
|
|
1947
1947
|
startIcon: N ? /* @__PURE__ */ e(E, { name: N }) : void 0,
|
|
1948
|
-
onClick:
|
|
1948
|
+
onClick: j,
|
|
1949
1949
|
children: M
|
|
1950
1950
|
},
|
|
1951
|
-
`action-${
|
|
1951
|
+
`action-${X}`
|
|
1952
1952
|
);
|
|
1953
1953
|
}) }) })
|
|
1954
1954
|
] });
|
|
1955
|
-
},
|
|
1955
|
+
}, z = () => {
|
|
1956
1956
|
const v = /* @__PURE__ */ e(si, { backButton: t });
|
|
1957
1957
|
return t != null && t.navigateTo ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(
|
|
1958
1958
|
Wt,
|
|
@@ -1963,10 +1963,10 @@ const oi = (t, r) => {
|
|
|
1963
1963
|
children: v
|
|
1964
1964
|
}
|
|
1965
1965
|
) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(pr, { onClick: k, children: v }) });
|
|
1966
|
-
},
|
|
1966
|
+
}, D = () => {
|
|
1967
1967
|
const v = !!r, M = Array.isArray(d) && d.length > 0, N = ir(d) ? !0 : M;
|
|
1968
1968
|
if (!v && !N && !y) return null;
|
|
1969
|
-
const
|
|
1969
|
+
const j = g || !g && M;
|
|
1970
1970
|
return /* @__PURE__ */ u(
|
|
1971
1971
|
f,
|
|
1972
1972
|
{
|
|
@@ -1980,20 +1980,20 @@ const oi = (t, r) => {
|
|
|
1980
1980
|
...p == null ? void 0 : p.style
|
|
1981
1981
|
},
|
|
1982
1982
|
children: [
|
|
1983
|
-
y &&
|
|
1983
|
+
y && z(),
|
|
1984
1984
|
(v || N) && /* @__PURE__ */ u(
|
|
1985
1985
|
f,
|
|
1986
1986
|
{
|
|
1987
|
-
direction:
|
|
1987
|
+
direction: j ? "row" : "column",
|
|
1988
1988
|
gap: "sm",
|
|
1989
1989
|
justify: "space-between",
|
|
1990
|
-
align:
|
|
1990
|
+
align: j ? "center" : "flex-start",
|
|
1991
1991
|
children: [
|
|
1992
1992
|
v ? typeof r == "string" ? /* @__PURE__ */ u(f, { direction: "row", gap: "lg", align: "center", children: [
|
|
1993
1993
|
/* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
|
|
1994
1994
|
n && /* @__PURE__ */ e(E, { name: n, size: "md", color: "primary" }),
|
|
1995
1995
|
/* @__PURE__ */ e(
|
|
1996
|
-
|
|
1996
|
+
w,
|
|
1997
1997
|
{
|
|
1998
1998
|
variant: "h3",
|
|
1999
1999
|
fontWeight: "semibold",
|
|
@@ -2015,27 +2015,27 @@ const oi = (t, r) => {
|
|
|
2015
2015
|
if (!c || c.length === 0) return null;
|
|
2016
2016
|
let v = 0, M = -1 / 0;
|
|
2017
2017
|
return c.forEach((N, $) => {
|
|
2018
|
-
const
|
|
2019
|
-
|
|
2020
|
-
}), c.map(({ content: N, order: $, borderBottom:
|
|
2018
|
+
const j = N.order ?? 0;
|
|
2019
|
+
j >= M && (M = j, v = $);
|
|
2020
|
+
}), c.map(({ content: N, order: $, borderBottom: j = !0 }, X) => /* @__PURE__ */ e(
|
|
2021
2021
|
f,
|
|
2022
2022
|
{
|
|
2023
2023
|
direction: "column",
|
|
2024
2024
|
paddingTop: "sm",
|
|
2025
|
-
paddingBottom:
|
|
2025
|
+
paddingBottom: j || X === v ? "sm" : "spacing-0",
|
|
2026
2026
|
paddingInline: "md",
|
|
2027
2027
|
style: {
|
|
2028
|
-
...
|
|
2028
|
+
...j ? {
|
|
2029
2029
|
borderBottom: "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
2030
2030
|
} : {},
|
|
2031
2031
|
...$ !== void 0 ? { order: $ } : {}
|
|
2032
2032
|
},
|
|
2033
2033
|
children: N
|
|
2034
2034
|
},
|
|
2035
|
-
`sub-header-${
|
|
2035
|
+
`sub-header-${X}`
|
|
2036
2036
|
));
|
|
2037
|
-
},
|
|
2038
|
-
const v = l ?
|
|
2037
|
+
}, V = () => {
|
|
2038
|
+
const v = l ? D() : null, M = C();
|
|
2039
2039
|
return !v && !M ? null : /* @__PURE__ */ u(
|
|
2040
2040
|
f,
|
|
2041
2041
|
{
|
|
@@ -2065,13 +2065,13 @@ const oi = (t, r) => {
|
|
|
2065
2065
|
animation: "pageLayoutEnter 320ms cubic-bezier(0.16, 1, 0.3, 1) backwards"
|
|
2066
2066
|
},
|
|
2067
2067
|
children: [
|
|
2068
|
-
|
|
2068
|
+
V(),
|
|
2069
2069
|
I()
|
|
2070
2070
|
]
|
|
2071
2071
|
},
|
|
2072
2072
|
B.pathname
|
|
2073
2073
|
);
|
|
2074
|
-
}, ec =
|
|
2074
|
+
}, ec = Je(ai), di = {
|
|
2075
2075
|
icon: "Cross",
|
|
2076
2076
|
title: ""
|
|
2077
2077
|
}, ui = "calc(100vw - 16px)", Tr = (t) => t == null ? void 0 : `min(${typeof t == "number" ? `${t}px` : t}, ${ui})`, hi = hr(
|
|
@@ -2120,7 +2120,7 @@ const oi = (t, r) => {
|
|
|
2120
2120
|
cursor: "pointer"
|
|
2121
2121
|
}
|
|
2122
2122
|
),
|
|
2123
|
-
l.title ? /* @__PURE__ */ e(
|
|
2123
|
+
l.title ? /* @__PURE__ */ e(w, { fontFamily: "Poppins", fontSize: "md", color: "subtlest", children: l.title }) : null
|
|
2124
2124
|
]
|
|
2125
2125
|
}
|
|
2126
2126
|
) : null,
|
|
@@ -2129,7 +2129,7 @@ const oi = (t, r) => {
|
|
|
2129
2129
|
}
|
|
2130
2130
|
);
|
|
2131
2131
|
}
|
|
2132
|
-
), un =
|
|
2132
|
+
), un = Je(
|
|
2133
2133
|
({ children: t, borderBottom: r = !0, padding: n = !0 }) => {
|
|
2134
2134
|
const o = ke("lg");
|
|
2135
2135
|
return /* @__PURE__ */ e(
|
|
@@ -2146,7 +2146,7 @@ const oi = (t, r) => {
|
|
|
2146
2146
|
}
|
|
2147
2147
|
);
|
|
2148
2148
|
}
|
|
2149
|
-
), hn =
|
|
2149
|
+
), hn = Je(
|
|
2150
2150
|
({ children: t, borderTop: r = !0, padding: n = !0 }) => {
|
|
2151
2151
|
const o = ke("lg");
|
|
2152
2152
|
return /* @__PURE__ */ e(
|
|
@@ -2163,7 +2163,7 @@ const oi = (t, r) => {
|
|
|
2163
2163
|
}
|
|
2164
2164
|
);
|
|
2165
2165
|
}
|
|
2166
|
-
), fi =
|
|
2166
|
+
), fi = Je(
|
|
2167
2167
|
({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
2168
2168
|
f,
|
|
2169
2169
|
{
|
|
@@ -2176,7 +2176,7 @@ const oi = (t, r) => {
|
|
|
2176
2176
|
children: t
|
|
2177
2177
|
}
|
|
2178
2178
|
)
|
|
2179
|
-
), tc =
|
|
2179
|
+
), tc = Je(
|
|
2180
2180
|
({
|
|
2181
2181
|
children: t,
|
|
2182
2182
|
title: r,
|
|
@@ -2192,9 +2192,9 @@ const oi = (t, r) => {
|
|
|
2192
2192
|
variantTag: p = "info"
|
|
2193
2193
|
}) => {
|
|
2194
2194
|
const g = ke("lg"), b = () => n ? /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
|
|
2195
|
-
/* @__PURE__ */ e(
|
|
2195
|
+
/* @__PURE__ */ e(w, { fontWeight: "medium", children: r }),
|
|
2196
2196
|
/* @__PURE__ */ e(gt, { border: !0, text: n, variant: p })
|
|
2197
|
-
] }) : /* @__PURE__ */ e(
|
|
2197
|
+
] }) : /* @__PURE__ */ e(w, { fontWeight: "medium", children: r }), B = () => i || /* @__PURE__ */ u(
|
|
2198
2198
|
f,
|
|
2199
2199
|
{
|
|
2200
2200
|
direction: "row",
|
|
@@ -2238,7 +2238,7 @@ const oi = (t, r) => {
|
|
|
2238
2238
|
}
|
|
2239
2239
|
);
|
|
2240
2240
|
}
|
|
2241
|
-
), mi = (t) => /* @__PURE__ */ e(
|
|
2241
|
+
), mi = (t) => /* @__PURE__ */ e(w, { variant: "h1", children: t.children, ...t.props }), gi = (t) => /* @__PURE__ */ e(w, { variant: "h2", children: t.children, ...t.props }), pi = (t) => /* @__PURE__ */ e(w, { variant: "h3", children: t.children, ...t.props }), yi = (t) => /* @__PURE__ */ e(w, { variant: "h4", children: t.children, ...t.props }), xi = (t) => /* @__PURE__ */ e(w, { variant: "h5", children: t.children, ...t.props }), bi = (t) => /* @__PURE__ */ e(w, { variant: "h6", children: t.children, ...t.props }), vi = (t) => /* @__PURE__ */ e(w, { variant: "sub-h1", children: t.children, ...t.props }), Ci = (t) => /* @__PURE__ */ e(w, { variant: "sub-h2", children: t.children, ...t.props }), wi = (t) => /* @__PURE__ */ e(w, { variant: "sub-h3", children: t.children, ...t.props }), Di = (t) => /* @__PURE__ */ e(w, { variant: "body-1", children: t.children, ...t.props }), ki = (t) => /* @__PURE__ */ e(w, { variant: "body-2", children: t.children, ...t.props }), Si = (t) => /* @__PURE__ */ e(w, { variant: "body-3", children: t.children, ...t.props }), Ue = {
|
|
2242
2242
|
H1: mi,
|
|
2243
2243
|
H2: gi,
|
|
2244
2244
|
H3: pi,
|
|
@@ -2251,7 +2251,7 @@ const oi = (t, r) => {
|
|
|
2251
2251
|
Body1: Di,
|
|
2252
2252
|
Body2: ki,
|
|
2253
2253
|
Body3: Si
|
|
2254
|
-
},
|
|
2254
|
+
}, Ve = () => {
|
|
2255
2255
|
const [t, r] = Ht(), n = Rt(t.toString()), o = nn(), i = yt(), l = o.id;
|
|
2256
2256
|
return {
|
|
2257
2257
|
// query params
|
|
@@ -2381,7 +2381,7 @@ const oi = (t, r) => {
|
|
|
2381
2381
|
pageKey: o,
|
|
2382
2382
|
filters: i
|
|
2383
2383
|
}) => {
|
|
2384
|
-
const { searchParams: l, setSearchParams: s, searchQueries: c } =
|
|
2384
|
+
const { searchParams: l, setSearchParams: s, searchQueries: c } = Ve(), [d, a] = R({}), m = () => {
|
|
2385
2385
|
l.delete(n || "filter"), s(l);
|
|
2386
2386
|
}, p = (g, b) => {
|
|
2387
2387
|
switch (g.type) {
|
|
@@ -2438,26 +2438,26 @@ const oi = (t, r) => {
|
|
|
2438
2438
|
titleSearchLabel: B = "Work Order",
|
|
2439
2439
|
withTitleLabels: y = !1
|
|
2440
2440
|
}) => {
|
|
2441
|
-
const L = (g == null ? void 0 : g.isShowLabel) ?? !0, [
|
|
2442
|
-
|
|
2443
|
-
}, { searchParams: v, setSearchParams: M, getQueryParam: N } =
|
|
2444
|
-
if (
|
|
2441
|
+
const L = (g == null ? void 0 : g.isShowLabel) ?? !0, [z, D] = R(!1), [C, V] = R(0), I = () => {
|
|
2442
|
+
V((K) => K + 1);
|
|
2443
|
+
}, { searchParams: v, setSearchParams: M, getQueryParam: N } = Ve(), $ = Rt(v.toString()), j = yr(t, v, c) || "", [X, le] = R(j), pe = N(c), he = !!(pe && !(() => {
|
|
2444
|
+
if (pe)
|
|
2445
2445
|
try {
|
|
2446
|
-
const
|
|
2447
|
-
return Object.keys(
|
|
2448
|
-
} catch (
|
|
2449
|
-
console.error("Filter parameter is not a valid JSON:",
|
|
2446
|
+
const K = JSON.parse(pe);
|
|
2447
|
+
return Object.keys(K).length === 1 && K[t] === "";
|
|
2448
|
+
} catch (K) {
|
|
2449
|
+
console.error("Filter parameter is not a valid JSON:", K);
|
|
2450
2450
|
}
|
|
2451
2451
|
return !1;
|
|
2452
|
-
})()),
|
|
2452
|
+
})()), Y = ke("md");
|
|
2453
2453
|
return U(() => {
|
|
2454
|
-
|
|
2455
|
-
}, [
|
|
2456
|
-
if (
|
|
2454
|
+
le(j);
|
|
2455
|
+
}, [j]), U(() => {
|
|
2456
|
+
if (X === j)
|
|
2457
2457
|
return;
|
|
2458
|
-
const
|
|
2458
|
+
const K = window.setTimeout(() => {
|
|
2459
2459
|
zt({
|
|
2460
|
-
value:
|
|
2460
|
+
value: X,
|
|
2461
2461
|
name: t,
|
|
2462
2462
|
type: "search",
|
|
2463
2463
|
searchQueries: $,
|
|
@@ -2467,11 +2467,11 @@ const oi = (t, r) => {
|
|
|
2467
2467
|
});
|
|
2468
2468
|
}, 350);
|
|
2469
2469
|
return () => {
|
|
2470
|
-
window.clearTimeout(
|
|
2470
|
+
window.clearTimeout(K);
|
|
2471
2471
|
};
|
|
2472
2472
|
}, [
|
|
2473
|
-
|
|
2474
|
-
|
|
2473
|
+
X,
|
|
2474
|
+
j,
|
|
2475
2475
|
t,
|
|
2476
2476
|
$,
|
|
2477
2477
|
M,
|
|
@@ -2482,7 +2482,7 @@ const oi = (t, r) => {
|
|
|
2482
2482
|
{
|
|
2483
2483
|
gap: "md",
|
|
2484
2484
|
style: {
|
|
2485
|
-
flexDirection:
|
|
2485
|
+
flexDirection: Y && b === "left" ? "row" : Y && b === "right" ? "row-reverse" : "column"
|
|
2486
2486
|
},
|
|
2487
2487
|
align: "flex-end",
|
|
2488
2488
|
children: [
|
|
@@ -2490,29 +2490,29 @@ const oi = (t, r) => {
|
|
|
2490
2490
|
H,
|
|
2491
2491
|
{
|
|
2492
2492
|
onClick: () => {
|
|
2493
|
-
const
|
|
2494
|
-
|
|
2493
|
+
const K = new URLSearchParams(v);
|
|
2494
|
+
K.delete(c), M(K), le(""), I(), m && m();
|
|
2495
2495
|
},
|
|
2496
2496
|
variant: "outline",
|
|
2497
2497
|
tone: "neutral",
|
|
2498
|
-
children: /* @__PURE__ */ e(
|
|
2498
|
+
children: /* @__PURE__ */ e(w, { color: "error", fontWeight: "semibold", children: "Reset" })
|
|
2499
2499
|
}
|
|
2500
2500
|
) }),
|
|
2501
|
-
i == null ? void 0 : i.map(({ minWidth:
|
|
2501
|
+
i == null ? void 0 : i.map(({ minWidth: K, content: me, title: te, onClickContainer: de }, Fe) => /* @__PURE__ */ u(
|
|
2502
2502
|
f,
|
|
2503
2503
|
{
|
|
2504
2504
|
direction: "column",
|
|
2505
2505
|
gap: "sm",
|
|
2506
|
-
onClick:
|
|
2506
|
+
onClick: de,
|
|
2507
2507
|
style: {
|
|
2508
|
-
minWidth:
|
|
2508
|
+
minWidth: K
|
|
2509
2509
|
},
|
|
2510
2510
|
children: [
|
|
2511
|
-
|
|
2512
|
-
|
|
2511
|
+
te && /* @__PURE__ */ e(Ue.SubH3, { children: te }),
|
|
2512
|
+
me
|
|
2513
2513
|
]
|
|
2514
2514
|
},
|
|
2515
|
-
`extended-filter-${
|
|
2515
|
+
`extended-filter-${Fe}-${C}`
|
|
2516
2516
|
)),
|
|
2517
2517
|
!!(p != null && p.length) && /* @__PURE__ */ e(
|
|
2518
2518
|
H,
|
|
@@ -2525,12 +2525,12 @@ const oi = (t, r) => {
|
|
|
2525
2525
|
size: "sm",
|
|
2526
2526
|
name: (g == null ? void 0 : g.icon) || "FilterHorizontal",
|
|
2527
2527
|
style: {
|
|
2528
|
-
color:
|
|
2528
|
+
color: pe ? "var(--sa-background-brand, #04254f)" : "var(--sa-text-primary, #292a2e)"
|
|
2529
2529
|
}
|
|
2530
2530
|
}
|
|
2531
2531
|
),
|
|
2532
|
-
fullWidth: !
|
|
2533
|
-
onClick: () =>
|
|
2532
|
+
fullWidth: !Y,
|
|
2533
|
+
onClick: () => D(!0),
|
|
2534
2534
|
children: L ? "Filter" : void 0
|
|
2535
2535
|
}
|
|
2536
2536
|
),
|
|
@@ -2543,7 +2543,7 @@ const oi = (t, r) => {
|
|
|
2543
2543
|
minWidth: "126px"
|
|
2544
2544
|
},
|
|
2545
2545
|
children: [
|
|
2546
|
-
y && /* @__PURE__ */ e(
|
|
2546
|
+
y && /* @__PURE__ */ e(Ue.SubH3, { children: "Status" }),
|
|
2547
2547
|
/* @__PURE__ */ e(
|
|
2548
2548
|
It,
|
|
2549
2549
|
{
|
|
@@ -2578,8 +2578,8 @@ const oi = (t, r) => {
|
|
|
2578
2578
|
})
|
|
2579
2579
|
}
|
|
2580
2580
|
] : [],
|
|
2581
|
-
onChange: (
|
|
2582
|
-
value:
|
|
2581
|
+
onChange: (K) => zt({
|
|
2582
|
+
value: K,
|
|
2583
2583
|
name: r,
|
|
2584
2584
|
type: "dropdown",
|
|
2585
2585
|
searchQueries: $,
|
|
@@ -2599,10 +2599,10 @@ const oi = (t, r) => {
|
|
|
2599
2599
|
direction: "column",
|
|
2600
2600
|
gap: "sm",
|
|
2601
2601
|
style: {
|
|
2602
|
-
width: a &&
|
|
2602
|
+
width: a && Y ? a : Y ? "310px" : ""
|
|
2603
2603
|
},
|
|
2604
2604
|
children: [
|
|
2605
|
-
y && /* @__PURE__ */ u(
|
|
2605
|
+
y && /* @__PURE__ */ u(Ue.SubH3, { children: [
|
|
2606
2606
|
"Search for ",
|
|
2607
2607
|
B
|
|
2608
2608
|
] }),
|
|
@@ -2611,8 +2611,8 @@ const oi = (t, r) => {
|
|
|
2611
2611
|
{
|
|
2612
2612
|
placeholder: n,
|
|
2613
2613
|
leftIcon: /* @__PURE__ */ e(E, { name: "Search", width: 20, height: 20 }),
|
|
2614
|
-
onChange: (
|
|
2615
|
-
value:
|
|
2614
|
+
onChange: (K) => le(K.target.value),
|
|
2615
|
+
value: X,
|
|
2616
2616
|
fullWidth: !0
|
|
2617
2617
|
},
|
|
2618
2618
|
C + 1 + c
|
|
@@ -2623,8 +2623,8 @@ const oi = (t, r) => {
|
|
|
2623
2623
|
/* @__PURE__ */ e(
|
|
2624
2624
|
Ii,
|
|
2625
2625
|
{
|
|
2626
|
-
isOpen:
|
|
2627
|
-
onClose: () =>
|
|
2626
|
+
isOpen: z,
|
|
2627
|
+
onClose: () => D(!1),
|
|
2628
2628
|
filterKey: c,
|
|
2629
2629
|
filters: p,
|
|
2630
2630
|
pageKey: d
|
|
@@ -2641,20 +2641,20 @@ function xr({
|
|
|
2641
2641
|
pageKey: o = "page",
|
|
2642
2642
|
searchKey: i = "q"
|
|
2643
2643
|
}) {
|
|
2644
|
-
const { searchParams: l, setSearchParams: s, searchQueries: c } =
|
|
2644
|
+
const { searchParams: l, setSearchParams: s, searchQueries: c } = Ve(), d = ge(
|
|
2645
2645
|
() => Object.fromEntries(t.map((C) => [C.key, C])),
|
|
2646
2646
|
[t]
|
|
2647
2647
|
), a = ge(() => {
|
|
2648
2648
|
const C = (l.get(n) || "").split(",").map((I) => I.trim()).filter(Boolean);
|
|
2649
|
-
let
|
|
2649
|
+
let V = [];
|
|
2650
2650
|
try {
|
|
2651
2651
|
const I = l.get(r);
|
|
2652
|
-
I && (
|
|
2652
|
+
I && (V = Object.keys(JSON.parse(I)).filter((v) => v !== i));
|
|
2653
2653
|
} catch {
|
|
2654
2654
|
}
|
|
2655
2655
|
return t.map((I) => I.key).filter((I) => {
|
|
2656
2656
|
const v = d[I];
|
|
2657
|
-
return (v == null ? void 0 : v.locked) || C.includes(I) ||
|
|
2657
|
+
return (v == null ? void 0 : v.locked) || C.includes(I) || V.includes(I);
|
|
2658
2658
|
});
|
|
2659
2659
|
}, [l, n, r, i, t, d]), m = Q(
|
|
2660
2660
|
(C) => {
|
|
@@ -2667,8 +2667,8 @@ function xr({
|
|
|
2667
2667
|
[r]
|
|
2668
2668
|
), p = Q(
|
|
2669
2669
|
(C) => {
|
|
2670
|
-
const
|
|
2671
|
-
C.length ?
|
|
2670
|
+
const V = { ...c };
|
|
2671
|
+
C.length ? V[n] = C.join(",") : delete V[n], s(V);
|
|
2672
2672
|
},
|
|
2673
2673
|
[c, n, s]
|
|
2674
2674
|
), g = Q(
|
|
@@ -2680,10 +2680,10 @@ function xr({
|
|
|
2680
2680
|
(C) => {
|
|
2681
2681
|
var M;
|
|
2682
2682
|
if ((M = d[C]) != null && M.locked) return;
|
|
2683
|
-
const
|
|
2684
|
-
I.length ?
|
|
2685
|
-
const v = m(
|
|
2686
|
-
C in v && (delete v[C], Object.keys(v).length ?
|
|
2683
|
+
const V = { ...c }, I = a.filter((N) => N !== C);
|
|
2684
|
+
I.length ? V[n] = I.join(",") : delete V[n];
|
|
2685
|
+
const v = m(V);
|
|
2686
|
+
C in v && (delete v[C], Object.keys(v).length ? V[r] = JSON.stringify(v) : delete V[r]), delete V[o], s(V);
|
|
2687
2687
|
},
|
|
2688
2688
|
[
|
|
2689
2689
|
c,
|
|
@@ -2712,12 +2712,12 @@ function xr({
|
|
|
2712
2712
|
filterKey: r
|
|
2713
2713
|
}) || [];
|
|
2714
2714
|
case "date": {
|
|
2715
|
-
const
|
|
2715
|
+
const V = Ai({
|
|
2716
2716
|
name: C.key,
|
|
2717
2717
|
searchParams: l,
|
|
2718
2718
|
filterKey: r
|
|
2719
2719
|
});
|
|
2720
|
-
return
|
|
2720
|
+
return V ? new Date(V) : void 0;
|
|
2721
2721
|
}
|
|
2722
2722
|
case "date-compact": {
|
|
2723
2723
|
const I = m(Object.fromEntries(l.entries()))[C.key];
|
|
@@ -2729,14 +2729,14 @@ function xr({
|
|
|
2729
2729
|
},
|
|
2730
2730
|
[l, r, m]
|
|
2731
2731
|
), k = Q(
|
|
2732
|
-
(C,
|
|
2732
|
+
(C, V) => {
|
|
2733
2733
|
if (C.type === "date-compact") {
|
|
2734
2734
|
const I = { ...c }, v = m(I);
|
|
2735
|
-
|
|
2735
|
+
V == null ? delete v[C.key] : v[C.key] = V, Object.keys(v).length ? I[r] = JSON.stringify(v) : delete I[r], delete I[o], s(I);
|
|
2736
2736
|
return;
|
|
2737
2737
|
}
|
|
2738
2738
|
zt({
|
|
2739
|
-
value:
|
|
2739
|
+
value: V,
|
|
2740
2740
|
name: C.key,
|
|
2741
2741
|
type: Vi(C.type),
|
|
2742
2742
|
searchQueries: c,
|
|
@@ -2748,25 +2748,25 @@ function xr({
|
|
|
2748
2748
|
[c, s, r, o, m]
|
|
2749
2749
|
), L = Q(
|
|
2750
2750
|
(C) => {
|
|
2751
|
-
const
|
|
2752
|
-
C in I && (delete I[C], Object.keys(I).length ?
|
|
2751
|
+
const V = { ...c }, I = m(V);
|
|
2752
|
+
C in I && (delete I[C], Object.keys(I).length ? V[r] = JSON.stringify(I) : delete V[r]), delete V[o], s(V);
|
|
2753
2753
|
},
|
|
2754
2754
|
[c, r, o, m, s]
|
|
2755
|
-
),
|
|
2755
|
+
), z = Q(() => {
|
|
2756
2756
|
const C = { ...c };
|
|
2757
2757
|
delete C[r], delete C[n], delete C[o], s(C);
|
|
2758
|
-
}, [c, r, n, o, s]),
|
|
2758
|
+
}, [c, r, n, o, s]), D = a.length > 0;
|
|
2759
2759
|
return {
|
|
2760
2760
|
activeKeys: a,
|
|
2761
2761
|
configByKey: d,
|
|
2762
|
-
hasActiveFilter:
|
|
2762
|
+
hasActiveFilter: D,
|
|
2763
2763
|
addFilter: g,
|
|
2764
2764
|
removeFilter: b,
|
|
2765
2765
|
toggleFilter: B,
|
|
2766
2766
|
getValue: y,
|
|
2767
2767
|
setValue: k,
|
|
2768
2768
|
clearValue: L,
|
|
2769
|
-
clearAll:
|
|
2769
|
+
clearAll: z
|
|
2770
2770
|
};
|
|
2771
2771
|
}
|
|
2772
2772
|
const fn = {
|
|
@@ -2801,7 +2801,7 @@ function Oi({
|
|
|
2801
2801
|
const l = ge(
|
|
2802
2802
|
() => ({ order: t.map((v) => v.key), hidden: [] }),
|
|
2803
2803
|
[t]
|
|
2804
|
-
), s = r ? xt.columns(r) : void 0, c = (v, M) => wt({ order: v.order ?? M, hidden: v.hidden ?? [] }, t), [d, a] =
|
|
2804
|
+
), s = r ? xt.columns(r) : void 0, c = (v, M) => wt({ order: v.order ?? M, hidden: v.hidden ?? [] }, t), [d, a] = R(() => {
|
|
2805
2805
|
if (i && (i.order || i.hidden))
|
|
2806
2806
|
return c(i, t.map((v) => v.key));
|
|
2807
2807
|
if (s) {
|
|
@@ -2838,14 +2838,14 @@ function Oi({
|
|
|
2838
2838
|
y({ ...d, hidden: M });
|
|
2839
2839
|
},
|
|
2840
2840
|
[d, y]
|
|
2841
|
-
),
|
|
2841
|
+
), z = Q(
|
|
2842
2842
|
(v, M) => {
|
|
2843
2843
|
if (v === M) return;
|
|
2844
2844
|
const N = [...d.order], [$] = N.splice(v, 1);
|
|
2845
2845
|
N.splice(M, 0, $), y({ ...d, order: N });
|
|
2846
2846
|
},
|
|
2847
2847
|
[d, y]
|
|
2848
|
-
),
|
|
2848
|
+
), D = Q(
|
|
2849
2849
|
(v) => {
|
|
2850
2850
|
y({
|
|
2851
2851
|
...d,
|
|
@@ -2853,7 +2853,7 @@ function Oi({
|
|
|
2853
2853
|
});
|
|
2854
2854
|
},
|
|
2855
2855
|
[d, t, y]
|
|
2856
|
-
), C = Q(() => y(l), [y, l]),
|
|
2856
|
+
), C = Q(() => y(l), [y, l]), V = Q(
|
|
2857
2857
|
(v) => y(wt(v, t)),
|
|
2858
2858
|
[y, t]
|
|
2859
2859
|
), I = d.hidden.length === 0;
|
|
@@ -2862,10 +2862,10 @@ function Oi({
|
|
|
2862
2862
|
orderedColumns: k,
|
|
2863
2863
|
allVisible: I,
|
|
2864
2864
|
toggleVisibility: L,
|
|
2865
|
-
reorder:
|
|
2866
|
-
setAllHidden:
|
|
2865
|
+
reorder: z,
|
|
2866
|
+
setAllHidden: D,
|
|
2867
2867
|
reset: C,
|
|
2868
|
-
applyState:
|
|
2868
|
+
applyState: V
|
|
2869
2869
|
};
|
|
2870
2870
|
}
|
|
2871
2871
|
function Hi({
|
|
@@ -2876,7 +2876,7 @@ function Hi({
|
|
|
2876
2876
|
getColumns: i,
|
|
2877
2877
|
applyColumns: l
|
|
2878
2878
|
}) {
|
|
2879
|
-
const { searchParams: s, setSearchParams: c } =
|
|
2879
|
+
const { searchParams: s, setSearchParams: c } = Ve(), d = t ? xt.savedViews(t) : void 0, [a, m] = R(
|
|
2880
2880
|
() => d ? r.get(d) || [] : []
|
|
2881
2881
|
), p = Q(
|
|
2882
2882
|
(y) => {
|
|
@@ -2889,18 +2889,18 @@ function Hi({
|
|
|
2889
2889
|
const k = y.trim();
|
|
2890
2890
|
if (!k) return;
|
|
2891
2891
|
const L = {};
|
|
2892
|
-
n.forEach((
|
|
2893
|
-
const C = s.get(
|
|
2894
|
-
C != null && (L[
|
|
2892
|
+
n.forEach((D) => {
|
|
2893
|
+
const C = s.get(D);
|
|
2894
|
+
C != null && (L[D] = C);
|
|
2895
2895
|
});
|
|
2896
|
-
const
|
|
2896
|
+
const z = {
|
|
2897
2897
|
id: `${Date.now()}`,
|
|
2898
2898
|
name: k,
|
|
2899
2899
|
query: L,
|
|
2900
2900
|
columns: i == null ? void 0 : i(),
|
|
2901
2901
|
createdAt: Date.now()
|
|
2902
2902
|
};
|
|
2903
|
-
p([...a,
|
|
2903
|
+
p([...a, z]);
|
|
2904
2904
|
},
|
|
2905
2905
|
[n, s, i, p, a]
|
|
2906
2906
|
), b = Q(
|
|
@@ -2927,7 +2927,7 @@ function Ti({
|
|
|
2927
2927
|
snapshotKeys: n,
|
|
2928
2928
|
enabled: o = !0
|
|
2929
2929
|
}) {
|
|
2930
|
-
const { searchParams: i } =
|
|
2930
|
+
const { searchParams: i } = Ve(), l = t && o ? xt.lastState(t) : void 0, s = se(l);
|
|
2931
2931
|
U(() => {
|
|
2932
2932
|
if (!l) {
|
|
2933
2933
|
s.current = l;
|
|
@@ -2963,7 +2963,7 @@ function Ni({
|
|
|
2963
2963
|
pageSizeOptions: o,
|
|
2964
2964
|
enabled: i = !0
|
|
2965
2965
|
}) {
|
|
2966
|
-
const { searchParams: l } =
|
|
2966
|
+
const { searchParams: l } = Ve(), s = t && i ? xt.perPage(t) : void 0, c = l.toString(), d = se(s);
|
|
2967
2967
|
U(() => {
|
|
2968
2968
|
if (!s) {
|
|
2969
2969
|
d.current = s;
|
|
@@ -3010,7 +3010,7 @@ function ji({
|
|
|
3010
3010
|
readSnapshot: o,
|
|
3011
3011
|
readPerPage: i
|
|
3012
3012
|
}) {
|
|
3013
|
-
const { searchParams: l, setSearchParams: s, location: c } =
|
|
3013
|
+
const { searchParams: l, setSearchParams: s, location: c } = Ve(), d = se(null);
|
|
3014
3014
|
U(() => {
|
|
3015
3015
|
if (!t || d.current === c.pathname) return;
|
|
3016
3016
|
d.current = c.pathname;
|
|
@@ -3032,7 +3032,7 @@ const _i = ({
|
|
|
3032
3032
|
onToggle: n,
|
|
3033
3033
|
hasActiveFilter: o,
|
|
3034
3034
|
onReset: i
|
|
3035
|
-
}) => t.length ? /* @__PURE__ */ u(
|
|
3035
|
+
}) => t.length ? /* @__PURE__ */ u(Be, { position: "bottom-left", children: [
|
|
3036
3036
|
/* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
|
|
3037
3037
|
H,
|
|
3038
3038
|
{
|
|
@@ -3043,8 +3043,8 @@ const _i = ({
|
|
|
3043
3043
|
"aria-label": "Add filter"
|
|
3044
3044
|
}
|
|
3045
3045
|
) }),
|
|
3046
|
-
/* @__PURE__ */ e(
|
|
3047
|
-
|
|
3046
|
+
/* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(
|
|
3047
|
+
Ae,
|
|
3048
3048
|
{
|
|
3049
3049
|
style: { minWidth: 260 },
|
|
3050
3050
|
title: /* @__PURE__ */ u(
|
|
@@ -3056,7 +3056,7 @@ const _i = ({
|
|
|
3056
3056
|
justify: "space-between",
|
|
3057
3057
|
fullWidth: !0,
|
|
3058
3058
|
children: [
|
|
3059
|
-
/* @__PURE__ */ e(
|
|
3059
|
+
/* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", color: "subtlest", children: "Add Filter" }),
|
|
3060
3060
|
o && i && /* @__PURE__ */ e(
|
|
3061
3061
|
H,
|
|
3062
3062
|
{
|
|
@@ -3071,7 +3071,7 @@ const _i = ({
|
|
|
3071
3071
|
}
|
|
3072
3072
|
),
|
|
3073
3073
|
children: t.map((l) => /* @__PURE__ */ e(
|
|
3074
|
-
|
|
3074
|
+
Ne,
|
|
3075
3075
|
{
|
|
3076
3076
|
selected: l.locked || r.includes(l.key),
|
|
3077
3077
|
disabled: l.locked,
|
|
@@ -3089,7 +3089,7 @@ const _i = ({
|
|
|
3089
3089
|
] }) : null, Tt = ({
|
|
3090
3090
|
onClear: t,
|
|
3091
3091
|
onRemove: r
|
|
3092
|
-
}) => /* @__PURE__ */ u(
|
|
3092
|
+
}) => /* @__PURE__ */ u(Be, { position: "bottom-right", children: [
|
|
3093
3093
|
/* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
|
|
3094
3094
|
H,
|
|
3095
3095
|
{
|
|
@@ -3100,9 +3100,9 @@ const _i = ({
|
|
|
3100
3100
|
"aria-label": "Filter actions"
|
|
3101
3101
|
}
|
|
3102
3102
|
) }),
|
|
3103
|
-
/* @__PURE__ */ e(
|
|
3103
|
+
/* @__PURE__ */ e(ze, { children: /* @__PURE__ */ u(Ae, { style: { width: 180 }, children: [
|
|
3104
3104
|
/* @__PURE__ */ e(
|
|
3105
|
-
|
|
3105
|
+
Ne,
|
|
3106
3106
|
{
|
|
3107
3107
|
startIcon: /* @__PURE__ */ e(E, { name: "CrossCircle" }),
|
|
3108
3108
|
onClick: t,
|
|
@@ -3110,7 +3110,7 @@ const _i = ({
|
|
|
3110
3110
|
}
|
|
3111
3111
|
),
|
|
3112
3112
|
r && /* @__PURE__ */ e(
|
|
3113
|
-
|
|
3113
|
+
Ne,
|
|
3114
3114
|
{
|
|
3115
3115
|
intent: "danger",
|
|
3116
3116
|
startIcon: /* @__PURE__ */ e(E, { name: "Trash1" }),
|
|
@@ -3186,7 +3186,7 @@ const _i = ({
|
|
|
3186
3186
|
onClear: o,
|
|
3187
3187
|
onRemove: i
|
|
3188
3188
|
}) => {
|
|
3189
|
-
const l = r ? Lt(new Date(r)) : null, s = !!l, c = s ? /* @__PURE__ */ u(
|
|
3189
|
+
const l = r ? Lt(new Date(r)) : null, s = !!l, c = s ? /* @__PURE__ */ u(ie, { children: [
|
|
3190
3190
|
/* @__PURE__ */ u("span", { style: { fontWeight: 500 }, children: [
|
|
3191
3191
|
t.label,
|
|
3192
3192
|
":"
|
|
@@ -3194,7 +3194,7 @@ const _i = ({
|
|
|
3194
3194
|
" ",
|
|
3195
3195
|
/* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children: gn(l) })
|
|
3196
3196
|
] }) : t.label;
|
|
3197
|
-
return /* @__PURE__ */ u(
|
|
3197
|
+
return /* @__PURE__ */ u(Be, { position: "bottom-left", children: [
|
|
3198
3198
|
/* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
|
|
3199
3199
|
H,
|
|
3200
3200
|
{
|
|
@@ -3206,8 +3206,8 @@ const _i = ({
|
|
|
3206
3206
|
children: c
|
|
3207
3207
|
}
|
|
3208
3208
|
) }),
|
|
3209
|
-
/* @__PURE__ */ e(
|
|
3210
|
-
|
|
3209
|
+
/* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(
|
|
3210
|
+
Ae,
|
|
3211
3211
|
{
|
|
3212
3212
|
style: { width: 260 },
|
|
3213
3213
|
title: /* @__PURE__ */ u(
|
|
@@ -3219,7 +3219,7 @@ const _i = ({
|
|
|
3219
3219
|
justify: "space-between",
|
|
3220
3220
|
fullWidth: !0,
|
|
3221
3221
|
children: [
|
|
3222
|
-
/* @__PURE__ */ e(
|
|
3222
|
+
/* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", color: "subtlest", children: t.label }),
|
|
3223
3223
|
/* @__PURE__ */ e(Tt, { onClear: o, onRemove: i })
|
|
3224
3224
|
]
|
|
3225
3225
|
}
|
|
@@ -3269,7 +3269,7 @@ const _i = ({
|
|
|
3269
3269
|
onClear: o,
|
|
3270
3270
|
onRemove: i
|
|
3271
3271
|
}) => {
|
|
3272
|
-
const l = (r == null ? void 0 : r.op) ?? "is", s = r ? Qi(r) : null, c = !!s, d = c ? /* @__PURE__ */ u(
|
|
3272
|
+
const l = (r == null ? void 0 : r.op) ?? "is", s = r ? Qi(r) : null, c = !!s, d = c ? /* @__PURE__ */ u(ie, { children: [
|
|
3273
3273
|
/* @__PURE__ */ u("span", { style: { fontWeight: 500 }, children: [
|
|
3274
3274
|
t.label,
|
|
3275
3275
|
":"
|
|
@@ -3300,7 +3300,7 @@ const _i = ({
|
|
|
3300
3300
|
n({ op: m, date: r == null ? void 0 : r.date });
|
|
3301
3301
|
}
|
|
3302
3302
|
};
|
|
3303
|
-
return /* @__PURE__ */ u(
|
|
3303
|
+
return /* @__PURE__ */ u(Be, { position: "bottom-left", children: [
|
|
3304
3304
|
/* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
|
|
3305
3305
|
H,
|
|
3306
3306
|
{
|
|
@@ -3312,9 +3312,9 @@ const _i = ({
|
|
|
3312
3312
|
children: d
|
|
3313
3313
|
}
|
|
3314
3314
|
) }),
|
|
3315
|
-
/* @__PURE__ */ u(
|
|
3315
|
+
/* @__PURE__ */ u(ze, { children: [
|
|
3316
3316
|
/* @__PURE__ */ e(
|
|
3317
|
-
|
|
3317
|
+
Ae,
|
|
3318
3318
|
{
|
|
3319
3319
|
style: { width: 320 },
|
|
3320
3320
|
title: /* @__PURE__ */ u(
|
|
@@ -3336,7 +3336,7 @@ const _i = ({
|
|
|
3336
3336
|
gap: "xs",
|
|
3337
3337
|
style: { minWidth: 0 },
|
|
3338
3338
|
children: [
|
|
3339
|
-
/* @__PURE__ */ e(
|
|
3339
|
+
/* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", color: "subtlest", children: t.label }),
|
|
3340
3340
|
/* @__PURE__ */ e(Xi, { op: l, onChange: a })
|
|
3341
3341
|
]
|
|
3342
3342
|
}
|
|
@@ -3348,10 +3348,10 @@ const _i = ({
|
|
|
3348
3348
|
children: /* @__PURE__ */ e(Ki, { value: r, op: l, onChange: n })
|
|
3349
3349
|
}
|
|
3350
3350
|
),
|
|
3351
|
-
l === "is-relative-to-today" && /* @__PURE__ */ e(ar, { children: /* @__PURE__ */ e(
|
|
3351
|
+
l === "is-relative-to-today" && /* @__PURE__ */ e(ar, { children: /* @__PURE__ */ e(w, { fontSize: "xs", color: "subtlest", children: "Filter will update with the current date" }) })
|
|
3352
3352
|
] })
|
|
3353
3353
|
] });
|
|
3354
|
-
}, Xi = ({ op: t, onChange: r }) => /* @__PURE__ */ u(
|
|
3354
|
+
}, Xi = ({ op: t, onChange: r }) => /* @__PURE__ */ u(Be, { position: "bottom-left", children: [
|
|
3355
3355
|
/* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
|
|
3356
3356
|
H,
|
|
3357
3357
|
{
|
|
@@ -3362,8 +3362,8 @@ const _i = ({
|
|
|
3362
3362
|
children: At[t]
|
|
3363
3363
|
}
|
|
3364
3364
|
) }),
|
|
3365
|
-
/* @__PURE__ */ e(
|
|
3366
|
-
|
|
3365
|
+
/* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(Ae, { style: { width: 200 }, children: Zi.map((n) => /* @__PURE__ */ e(
|
|
3366
|
+
Ne,
|
|
3367
3367
|
{
|
|
3368
3368
|
selected: t === n,
|
|
3369
3369
|
onClick: () => r(n),
|
|
@@ -3374,7 +3374,7 @@ const _i = ({
|
|
|
3374
3374
|
)) }) })
|
|
3375
3375
|
] }), Ki = ({ value: t, op: r, onChange: n }) => {
|
|
3376
3376
|
if (r === "is-empty" || r === "is-not-empty")
|
|
3377
|
-
return /* @__PURE__ */ e(f, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(
|
|
3377
|
+
return /* @__PURE__ */ e(f, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(w, { fontSize: "xs", color: "subtlest", children: "No further input required." }) });
|
|
3378
3378
|
if (r === "is-between") {
|
|
3379
3379
|
const o = t != null && t.from || t != null && t.to ? {
|
|
3380
3380
|
from: t != null && t.from ? new Date(t.from) : null,
|
|
@@ -3444,7 +3444,7 @@ const _i = ({
|
|
|
3444
3444
|
const n = (t == null ? void 0 : t.direction) ?? "past", o = (t == null ? void 0 : t.count) ?? 1, i = (t == null ? void 0 : t.period) ?? "week", l = n !== "this", s = mn({ direction: n, count: o, period: i });
|
|
3445
3445
|
return /* @__PURE__ */ u(f, { direction: "column", display: "flex", gap: "sm", children: [
|
|
3446
3446
|
/* @__PURE__ */ u(f, { direction: "row", display: "flex", align: "center", gap: "xs", children: [
|
|
3447
|
-
/* @__PURE__ */ u(
|
|
3447
|
+
/* @__PURE__ */ u(Be, { position: "bottom-left", children: [
|
|
3448
3448
|
/* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
|
|
3449
3449
|
H,
|
|
3450
3450
|
{
|
|
@@ -3455,8 +3455,8 @@ const _i = ({
|
|
|
3455
3455
|
children: lr[n]
|
|
3456
3456
|
}
|
|
3457
3457
|
) }),
|
|
3458
|
-
/* @__PURE__ */ e(
|
|
3459
|
-
|
|
3458
|
+
/* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(Ae, { style: { width: 140 }, children: qi.map((c) => /* @__PURE__ */ e(
|
|
3459
|
+
Ne,
|
|
3460
3460
|
{
|
|
3461
3461
|
selected: n === c,
|
|
3462
3462
|
endIcon: n === c ? /* @__PURE__ */ e(E, { name: "Check" }) : void 0,
|
|
@@ -3487,7 +3487,7 @@ const _i = ({
|
|
|
3487
3487
|
style: { width: 72 }
|
|
3488
3488
|
}
|
|
3489
3489
|
),
|
|
3490
|
-
/* @__PURE__ */ u(
|
|
3490
|
+
/* @__PURE__ */ u(Be, { position: "bottom-left", children: [
|
|
3491
3491
|
/* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
|
|
3492
3492
|
H,
|
|
3493
3493
|
{
|
|
@@ -3498,8 +3498,8 @@ const _i = ({
|
|
|
3498
3498
|
children: i
|
|
3499
3499
|
}
|
|
3500
3500
|
) }),
|
|
3501
|
-
/* @__PURE__ */ e(
|
|
3502
|
-
|
|
3501
|
+
/* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(Ae, { style: { width: 140 }, children: Gi.map((c) => /* @__PURE__ */ e(
|
|
3502
|
+
Ne,
|
|
3503
3503
|
{
|
|
3504
3504
|
selected: i === c,
|
|
3505
3505
|
endIcon: i === c ? /* @__PURE__ */ e(E, { name: "Check" }) : void 0,
|
|
@@ -3534,7 +3534,7 @@ const _i = ({
|
|
|
3534
3534
|
onClear: o,
|
|
3535
3535
|
onRemove: i
|
|
3536
3536
|
}) => {
|
|
3537
|
-
const l = t.type === "dropdown-multiple", s = r.length, [c, d] =
|
|
3537
|
+
const l = t.type === "dropdown-multiple", s = r.length, [c, d] = R(""), a = t.options, m = typeof t.onSearch == "function", p = (() => {
|
|
3538
3538
|
if (m) return a;
|
|
3539
3539
|
const k = c.trim().toLowerCase();
|
|
3540
3540
|
return k ? a.filter((L) => L.label.toLowerCase().includes(k)) : a;
|
|
@@ -3549,7 +3549,7 @@ const _i = ({
|
|
|
3549
3549
|
}, B = (k) => {
|
|
3550
3550
|
var L;
|
|
3551
3551
|
d(k), (L = t.onSearch) == null || L.call(t, k);
|
|
3552
|
-
}, y = s === 0 ? t.label : /* @__PURE__ */ u(
|
|
3552
|
+
}, y = s === 0 ? t.label : /* @__PURE__ */ u(ie, { children: [
|
|
3553
3553
|
/* @__PURE__ */ u("span", { style: { fontWeight: 500 }, children: [
|
|
3554
3554
|
t.label,
|
|
3555
3555
|
":"
|
|
@@ -3557,7 +3557,7 @@ const _i = ({
|
|
|
3557
3557
|
" ",
|
|
3558
3558
|
/* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children: s === 1 ? to(r[0].label) : `${s} Selected` })
|
|
3559
3559
|
] });
|
|
3560
|
-
return /* @__PURE__ */ u(
|
|
3560
|
+
return /* @__PURE__ */ u(Be, { position: "bottom-left", children: [
|
|
3561
3561
|
/* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
|
|
3562
3562
|
H,
|
|
3563
3563
|
{
|
|
@@ -3569,8 +3569,8 @@ const _i = ({
|
|
|
3569
3569
|
children: y
|
|
3570
3570
|
}
|
|
3571
3571
|
) }),
|
|
3572
|
-
/* @__PURE__ */ e(
|
|
3573
|
-
|
|
3572
|
+
/* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(
|
|
3573
|
+
Ae,
|
|
3574
3574
|
{
|
|
3575
3575
|
style: { width: 260 },
|
|
3576
3576
|
title: /* @__PURE__ */ u(
|
|
@@ -3582,7 +3582,7 @@ const _i = ({
|
|
|
3582
3582
|
justify: "space-between",
|
|
3583
3583
|
fullWidth: !0,
|
|
3584
3584
|
children: [
|
|
3585
|
-
/* @__PURE__ */ e(
|
|
3585
|
+
/* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", color: "subtlest", children: t.label }),
|
|
3586
3586
|
/* @__PURE__ */ e(Tt, { onClear: o, onRemove: i })
|
|
3587
3587
|
]
|
|
3588
3588
|
}
|
|
@@ -3611,8 +3611,8 @@ const _i = ({
|
|
|
3611
3611
|
direction: "column",
|
|
3612
3612
|
overflow: "overflow-y-auto",
|
|
3613
3613
|
customMaxHeight: "240px",
|
|
3614
|
-
children: t.isLoading ? /* @__PURE__ */ e(f, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(
|
|
3615
|
-
|
|
3614
|
+
children: t.isLoading ? /* @__PURE__ */ e(f, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(w, { fontSize: "xs", color: "subtlest", children: "Loading…" }) }) : p.length === 0 ? /* @__PURE__ */ e(f, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(w, { fontSize: "xs", color: "subtlest", children: "No results" }) }) : p.map((k) => /* @__PURE__ */ e(
|
|
3615
|
+
Ne,
|
|
3616
3616
|
{
|
|
3617
3617
|
closeOnSelect: !l,
|
|
3618
3618
|
selected: g(k),
|
|
@@ -3655,15 +3655,15 @@ const _i = ({
|
|
|
3655
3655
|
n(
|
|
3656
3656
|
c ? [] : t.options.map((g) => ({ label: g.label, value: g.value }))
|
|
3657
3657
|
);
|
|
3658
|
-
}, p = s === 0 ? t.label : /* @__PURE__ */ u(
|
|
3659
|
-
/* @__PURE__ */ u(
|
|
3658
|
+
}, p = s === 0 ? t.label : /* @__PURE__ */ u(ie, { children: [
|
|
3659
|
+
/* @__PURE__ */ u(w, { as: "span", fontWeight: "semibold", children: [
|
|
3660
3660
|
t.label,
|
|
3661
3661
|
":"
|
|
3662
3662
|
] }),
|
|
3663
3663
|
" ",
|
|
3664
|
-
/* @__PURE__ */ e(
|
|
3664
|
+
/* @__PURE__ */ e(w, { as: "span", children: s === 1 ? no(r[0].label) : `${s} Selected` })
|
|
3665
3665
|
] });
|
|
3666
|
-
return /* @__PURE__ */ u(
|
|
3666
|
+
return /* @__PURE__ */ u(Be, { position: "bottom-left", children: [
|
|
3667
3667
|
/* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
|
|
3668
3668
|
H,
|
|
3669
3669
|
{
|
|
@@ -3675,8 +3675,8 @@ const _i = ({
|
|
|
3675
3675
|
children: p
|
|
3676
3676
|
}
|
|
3677
3677
|
) }),
|
|
3678
|
-
/* @__PURE__ */ e(
|
|
3679
|
-
|
|
3678
|
+
/* @__PURE__ */ e(ze, { children: /* @__PURE__ */ u(
|
|
3679
|
+
Ae,
|
|
3680
3680
|
{
|
|
3681
3681
|
style: { width: 240 },
|
|
3682
3682
|
title: /* @__PURE__ */ u(
|
|
@@ -3688,14 +3688,14 @@ const _i = ({
|
|
|
3688
3688
|
justify: "space-between",
|
|
3689
3689
|
fullWidth: !0,
|
|
3690
3690
|
children: [
|
|
3691
|
-
/* @__PURE__ */ e(
|
|
3691
|
+
/* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", color: "subtlest", children: t.label }),
|
|
3692
3692
|
/* @__PURE__ */ e(Tt, { onClear: o, onRemove: i })
|
|
3693
3693
|
]
|
|
3694
3694
|
}
|
|
3695
3695
|
),
|
|
3696
3696
|
children: [
|
|
3697
3697
|
/* @__PURE__ */ e(
|
|
3698
|
-
|
|
3698
|
+
Ne,
|
|
3699
3699
|
{
|
|
3700
3700
|
closeOnSelect: !1,
|
|
3701
3701
|
selected: c,
|
|
@@ -3711,7 +3711,7 @@ const _i = ({
|
|
|
3711
3711
|
}
|
|
3712
3712
|
),
|
|
3713
3713
|
t.options.map((g) => /* @__PURE__ */ e(
|
|
3714
|
-
|
|
3714
|
+
Ne,
|
|
3715
3715
|
{
|
|
3716
3716
|
closeOnSelect: !1,
|
|
3717
3717
|
selected: l.has(g.value),
|
|
@@ -3732,7 +3732,7 @@ const _i = ({
|
|
|
3732
3732
|
setValue: o,
|
|
3733
3733
|
clearValue: i,
|
|
3734
3734
|
removeFilter: l
|
|
3735
|
-
}) => /* @__PURE__ */ e(
|
|
3735
|
+
}) => /* @__PURE__ */ e(ie, { children: t.map((s) => {
|
|
3736
3736
|
const c = r[s];
|
|
3737
3737
|
if (!c) return null;
|
|
3738
3738
|
const d = n(c), a = c.locked ? void 0 : () => l(s);
|
|
@@ -3778,38 +3778,38 @@ const _i = ({
|
|
|
3778
3778
|
showPagination: c = !0
|
|
3779
3779
|
}) => {
|
|
3780
3780
|
var L;
|
|
3781
|
-
const { searchQueries: d, setSearchParams: a, searchParams: m } =
|
|
3782
|
-
a({ ...d, [r]: String(
|
|
3783
|
-
}, B = (
|
|
3781
|
+
const { searchQueries: d, setSearchParams: a, searchParams: m } = Ve(), p = m.get(n), g = p ? Number(p) : i, b = (z) => {
|
|
3782
|
+
a({ ...d, [r]: String(z) });
|
|
3783
|
+
}, B = (z) => {
|
|
3784
3784
|
a({
|
|
3785
3785
|
...d,
|
|
3786
|
-
[n]:
|
|
3786
|
+
[n]: z,
|
|
3787
3787
|
[r]: "1"
|
|
3788
3788
|
// reset to first page when page size changes
|
|
3789
3789
|
});
|
|
3790
3790
|
}, y = (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 : 0), k = (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));
|
|
3791
|
-
return /* @__PURE__ */ u(
|
|
3792
|
-
l && /* @__PURE__ */ e(
|
|
3793
|
-
s && /* @__PURE__ */ u(
|
|
3791
|
+
return /* @__PURE__ */ u(ie, { children: [
|
|
3792
|
+
l && /* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${y}-${k} of ${((L = t == null ? void 0 : t.totalData) == null ? void 0 : L.toLocaleString()) || 0}` }),
|
|
3793
|
+
s && /* @__PURE__ */ u(Be, { position: "bottom-left", children: [
|
|
3794
3794
|
/* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
|
|
3795
3795
|
H,
|
|
3796
3796
|
{
|
|
3797
3797
|
variant: "outline",
|
|
3798
3798
|
tone: "neutral",
|
|
3799
|
-
size: "
|
|
3799
|
+
size: "sm",
|
|
3800
3800
|
iconRight: /* @__PURE__ */ e(E, { name: "ChevronSmallDown" }),
|
|
3801
3801
|
"aria-label": "Rows per page",
|
|
3802
3802
|
children: Zr(g)
|
|
3803
3803
|
}
|
|
3804
3804
|
) }),
|
|
3805
|
-
/* @__PURE__ */ e(
|
|
3806
|
-
|
|
3805
|
+
/* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(Ae, { children: o.map((z) => /* @__PURE__ */ e(
|
|
3806
|
+
Ne,
|
|
3807
3807
|
{
|
|
3808
|
-
selected:
|
|
3809
|
-
onClick: () => B(String(
|
|
3810
|
-
children: Zr(
|
|
3808
|
+
selected: z === g,
|
|
3809
|
+
onClick: () => B(String(z)),
|
|
3810
|
+
children: Zr(z)
|
|
3811
3811
|
},
|
|
3812
|
-
|
|
3812
|
+
z
|
|
3813
3813
|
)) }) })
|
|
3814
3814
|
] }),
|
|
3815
3815
|
c && ((t == null ? void 0 : t.totalPage) ?? 0) > 1 && /* @__PURE__ */ e(
|
|
@@ -3819,7 +3819,7 @@ const _i = ({
|
|
|
3819
3819
|
display: "flex",
|
|
3820
3820
|
align: "center",
|
|
3821
3821
|
gap: "sm",
|
|
3822
|
-
paddingRight: "
|
|
3822
|
+
paddingRight: "sm",
|
|
3823
3823
|
style: {
|
|
3824
3824
|
borderRight: "1px solid var(--sa-border-subtle, rgba(11, 18, 14, 0.14))"
|
|
3825
3825
|
},
|
|
@@ -3855,34 +3855,35 @@ const co = 240, yn = ({
|
|
|
3855
3855
|
filterKey: r = "filter",
|
|
3856
3856
|
pageKey: n = "page",
|
|
3857
3857
|
placeholder: o = "Search",
|
|
3858
|
-
shortcut: i = "/"
|
|
3858
|
+
shortcut: i = "/",
|
|
3859
|
+
collapsible: l = !0
|
|
3859
3860
|
}) => {
|
|
3860
|
-
const { searchParams:
|
|
3861
|
+
const { searchParams: s, setSearchParams: c, searchQueries: d } = Ve(), a = yr(t, s, r) || "", [m, p] = R(!l || !!a), [g, b] = R(l && !a), [B, y] = R(a), k = Vn(B, 350), L = se(null);
|
|
3861
3862
|
U(() => {
|
|
3862
|
-
|
|
3863
|
-
}, [d]), U(() => {
|
|
3864
|
-
a && g(!1);
|
|
3863
|
+
y(a), a && p(!0);
|
|
3865
3864
|
}, [a]), U(() => {
|
|
3866
|
-
|
|
3867
|
-
|
|
3865
|
+
m && b(!1);
|
|
3866
|
+
}, [m]), U(() => {
|
|
3867
|
+
k !== a && zt({
|
|
3868
|
+
value: k,
|
|
3868
3869
|
name: t,
|
|
3869
3870
|
type: "search",
|
|
3870
|
-
searchQueries:
|
|
3871
|
-
setSearchParams:
|
|
3871
|
+
searchQueries: d,
|
|
3872
|
+
setSearchParams: c,
|
|
3872
3873
|
filterKey: r,
|
|
3873
3874
|
pageKey: n
|
|
3874
3875
|
});
|
|
3875
|
-
}, [
|
|
3876
|
-
const
|
|
3877
|
-
|
|
3878
|
-
var
|
|
3879
|
-
return (
|
|
3876
|
+
}, [k]);
|
|
3877
|
+
const z = Q(() => {
|
|
3878
|
+
p(!0), requestAnimationFrame(() => {
|
|
3879
|
+
var I;
|
|
3880
|
+
return (I = L.current) == null ? void 0 : I.focus();
|
|
3880
3881
|
});
|
|
3881
3882
|
}, []);
|
|
3882
|
-
return lo(i,
|
|
3883
|
+
return lo(i, z), // No internal gap: the trigger and the animated input are never visible at
|
|
3883
3884
|
// the same time, so spacing to neighbours is handled by the parent cluster.
|
|
3884
3885
|
/* @__PURE__ */ u(f, { display: "flex", direction: "row", align: "center", gap: "spacing-0", children: [
|
|
3885
|
-
|
|
3886
|
+
g && /* @__PURE__ */ e(
|
|
3886
3887
|
H,
|
|
3887
3888
|
{
|
|
3888
3889
|
variant: "outline",
|
|
@@ -3891,18 +3892,18 @@ const co = 240, yn = ({
|
|
|
3891
3892
|
iconLeft: /* @__PURE__ */ e(E, { name: "Search", size: "sm" }),
|
|
3892
3893
|
"aria-label": "Search",
|
|
3893
3894
|
"aria-expanded": !1,
|
|
3894
|
-
onClick:
|
|
3895
|
+
onClick: z
|
|
3895
3896
|
}
|
|
3896
3897
|
),
|
|
3897
3898
|
/* @__PURE__ */ u(
|
|
3898
3899
|
f,
|
|
3899
3900
|
{
|
|
3900
3901
|
onTransitionEnd: () => {
|
|
3901
|
-
|
|
3902
|
+
m || b(!0);
|
|
3902
3903
|
},
|
|
3903
3904
|
style: {
|
|
3904
3905
|
position: "relative",
|
|
3905
|
-
width:
|
|
3906
|
+
width: m ? co : 0,
|
|
3906
3907
|
overflow: "hidden",
|
|
3907
3908
|
transition: "width 220ms ease"
|
|
3908
3909
|
},
|
|
@@ -3910,24 +3911,24 @@ const co = 240, yn = ({
|
|
|
3910
3911
|
/* @__PURE__ */ e(
|
|
3911
3912
|
ht,
|
|
3912
3913
|
{
|
|
3913
|
-
ref:
|
|
3914
|
+
ref: L,
|
|
3914
3915
|
size: "sm",
|
|
3915
3916
|
fullWidth: !0,
|
|
3916
|
-
value:
|
|
3917
|
+
value: B,
|
|
3917
3918
|
placeholder: o,
|
|
3918
3919
|
leftIcon: /* @__PURE__ */ e(E, { name: "Search", width: 16, height: 16 }),
|
|
3919
|
-
onChange: (
|
|
3920
|
-
onKeyDown: (
|
|
3921
|
-
var
|
|
3922
|
-
|
|
3920
|
+
onChange: (I) => y(I.target.value),
|
|
3921
|
+
onKeyDown: (I) => {
|
|
3922
|
+
var v;
|
|
3923
|
+
l && I.key === "Escape" && !B && (p(!1), (v = L.current) == null || v.blur());
|
|
3923
3924
|
},
|
|
3924
3925
|
onBlur: () => {
|
|
3925
|
-
|
|
3926
|
+
l && !B && p(!1);
|
|
3926
3927
|
},
|
|
3927
|
-
tabIndex:
|
|
3928
|
+
tabIndex: m ? 0 : -1
|
|
3928
3929
|
}
|
|
3929
3930
|
),
|
|
3930
|
-
|
|
3931
|
+
m && !B && /* @__PURE__ */ e(
|
|
3931
3932
|
f,
|
|
3932
3933
|
{
|
|
3933
3934
|
align: "center",
|
|
@@ -3948,7 +3949,7 @@ const co = 240, yn = ({
|
|
|
3948
3949
|
height: 18,
|
|
3949
3950
|
display: "inline-flex"
|
|
3950
3951
|
},
|
|
3951
|
-
children: /* @__PURE__ */ e(
|
|
3952
|
+
children: /* @__PURE__ */ e(w, { fontSize: "xs", color: "subtle", children: i })
|
|
3952
3953
|
}
|
|
3953
3954
|
)
|
|
3954
3955
|
]
|
|
@@ -3962,13 +3963,13 @@ const co = 240, yn = ({
|
|
|
3962
3963
|
onReorder: o,
|
|
3963
3964
|
onSetAllHidden: i
|
|
3964
3965
|
}) => {
|
|
3965
|
-
const [l, s] =
|
|
3966
|
+
const [l, s] = R(null), [c, d] = R(null), a = () => {
|
|
3966
3967
|
l !== null && c !== null && l !== c && o(l, c), s(null), d(null);
|
|
3967
3968
|
}, m = (p, g) => {
|
|
3968
3969
|
const b = p + g;
|
|
3969
3970
|
b < 0 || b >= t.length || o(p, b);
|
|
3970
3971
|
};
|
|
3971
|
-
return /* @__PURE__ */ u(
|
|
3972
|
+
return /* @__PURE__ */ u(Be, { position: "bottom-right", children: [
|
|
3972
3973
|
/* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
|
|
3973
3974
|
H,
|
|
3974
3975
|
{
|
|
@@ -3979,7 +3980,7 @@ const co = 240, yn = ({
|
|
|
3979
3980
|
"aria-label": "Customize columns"
|
|
3980
3981
|
}
|
|
3981
3982
|
) }),
|
|
3982
|
-
/* @__PURE__ */ e(
|
|
3983
|
+
/* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(Ae, { children: /* @__PURE__ */ u(
|
|
3983
3984
|
f,
|
|
3984
3985
|
{
|
|
3985
3986
|
padding: "sm",
|
|
@@ -3988,7 +3989,7 @@ const co = 240, yn = ({
|
|
|
3988
3989
|
customMaxHeight: "60vh",
|
|
3989
3990
|
overflow: "overflow-hidden",
|
|
3990
3991
|
children: [
|
|
3991
|
-
/* @__PURE__ */ e(
|
|
3992
|
+
/* @__PURE__ */ e(w, { fontWeight: "semibold", color: "primary", children: "Customize Column Table" }),
|
|
3992
3993
|
/* @__PURE__ */ u(
|
|
3993
3994
|
f,
|
|
3994
3995
|
{
|
|
@@ -3998,7 +3999,7 @@ const co = 240, yn = ({
|
|
|
3998
3999
|
justify: "space-between",
|
|
3999
4000
|
paddingBlock: "md",
|
|
4000
4001
|
children: [
|
|
4001
|
-
/* @__PURE__ */ e(
|
|
4002
|
+
/* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", color: "subtle", children: "Show in table" }),
|
|
4002
4003
|
/* @__PURE__ */ e(
|
|
4003
4004
|
H,
|
|
4004
4005
|
{
|
|
@@ -4059,7 +4060,7 @@ const co = 240, yn = ({
|
|
|
4059
4060
|
),
|
|
4060
4061
|
p.icon && /* @__PURE__ */ e(f, { direction: "column", align: "center", color: "icon-subtle", style: { display: "inline-flex" }, children: p.icon }),
|
|
4061
4062
|
/* @__PURE__ */ e(
|
|
4062
|
-
|
|
4063
|
+
w,
|
|
4063
4064
|
{
|
|
4064
4065
|
fontSize: "sm",
|
|
4065
4066
|
fontWeight: "medium",
|
|
@@ -4093,11 +4094,11 @@ const co = 240, yn = ({
|
|
|
4093
4094
|
onDelete: n,
|
|
4094
4095
|
onSave: o
|
|
4095
4096
|
}) => {
|
|
4096
|
-
const [i, l] =
|
|
4097
|
+
const [i, l] = R(""), s = () => {
|
|
4097
4098
|
const c = i.trim();
|
|
4098
4099
|
c && (o(c), l(""));
|
|
4099
4100
|
};
|
|
4100
|
-
return /* @__PURE__ */ u(
|
|
4101
|
+
return /* @__PURE__ */ u(Be, { position: "bottom-right", children: [
|
|
4101
4102
|
/* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
|
|
4102
4103
|
H,
|
|
4103
4104
|
{
|
|
@@ -4109,21 +4110,21 @@ const co = 240, yn = ({
|
|
|
4109
4110
|
}
|
|
4110
4111
|
) }),
|
|
4111
4112
|
/* @__PURE__ */ u(
|
|
4112
|
-
|
|
4113
|
+
ze,
|
|
4113
4114
|
{
|
|
4114
4115
|
style: {
|
|
4115
4116
|
width: "260px"
|
|
4116
4117
|
},
|
|
4117
4118
|
children: [
|
|
4118
|
-
/* @__PURE__ */ e(
|
|
4119
|
-
/* @__PURE__ */ e(
|
|
4119
|
+
/* @__PURE__ */ e(Ae, { children: /* @__PURE__ */ u(f, { direction: "column", padding: "xs", gap: "sm", children: [
|
|
4120
|
+
/* @__PURE__ */ e(w, { fontWeight: "semibold", color: "primary", children: "Saved Views" }),
|
|
4120
4121
|
/* @__PURE__ */ e(
|
|
4121
4122
|
f,
|
|
4122
4123
|
{
|
|
4123
4124
|
direction: "column",
|
|
4124
4125
|
overflow: "overflow-y-auto",
|
|
4125
|
-
children: t.length === 0 ? /* @__PURE__ */ e(f, { direction: "column", paddingBlock: "sm", children: /* @__PURE__ */ e(
|
|
4126
|
-
|
|
4126
|
+
children: t.length === 0 ? /* @__PURE__ */ e(f, { direction: "column", paddingBlock: "sm", children: /* @__PURE__ */ e(w, { fontSize: "sm", color: "subtlest", children: "No saved views yet" }) }) : t.map((c) => /* @__PURE__ */ e(
|
|
4127
|
+
Ne,
|
|
4127
4128
|
{
|
|
4128
4129
|
startIcon: /* @__PURE__ */ e(E, { name: "Bookmark" }),
|
|
4129
4130
|
onClick: () => r(c),
|
|
@@ -4218,8 +4219,8 @@ const co = 240, yn = ({
|
|
|
4218
4219
|
},
|
|
4219
4220
|
children: [
|
|
4220
4221
|
/* @__PURE__ */ u(f, { direction: "row", display: "flex", align: "center", gap: "xs", children: [
|
|
4221
|
-
/* @__PURE__ */ e(
|
|
4222
|
-
g > 0 && /* @__PURE__ */ u(
|
|
4222
|
+
/* @__PURE__ */ e(w, { fontWeight: "semibold", color: "primary", children: "Filter" }),
|
|
4223
|
+
g > 0 && /* @__PURE__ */ u(w, { fontSize: "sm", color: "subtle", children: [
|
|
4223
4224
|
"(",
|
|
4224
4225
|
g,
|
|
4225
4226
|
")"
|
|
@@ -4249,7 +4250,7 @@ const co = 240, yn = ({
|
|
|
4249
4250
|
style: { flex: "1 1 auto", minHeight: 0 },
|
|
4250
4251
|
children: [
|
|
4251
4252
|
g > 0 && /* @__PURE__ */ u(f, { direction: "column", gap: "sm", children: [
|
|
4252
|
-
/* @__PURE__ */ e(
|
|
4253
|
+
/* @__PURE__ */ e(w, { fontSize: "xs", fontWeight: "medium", color: "subtlest", children: "Filter aktif" }),
|
|
4253
4254
|
/* @__PURE__ */ e(
|
|
4254
4255
|
f,
|
|
4255
4256
|
{
|
|
@@ -4273,7 +4274,7 @@ const co = 240, yn = ({
|
|
|
4273
4274
|
)
|
|
4274
4275
|
] }),
|
|
4275
4276
|
n.length > 0 && /* @__PURE__ */ u(f, { direction: "column", gap: "sm", children: [
|
|
4276
|
-
/* @__PURE__ */ e(
|
|
4277
|
+
/* @__PURE__ */ e(w, { fontSize: "xs", fontWeight: "medium", color: "subtlest", children: "Tambah filter" }),
|
|
4277
4278
|
/* @__PURE__ */ e(f, { direction: "column", children: n.map((b) => {
|
|
4278
4279
|
const B = o.includes(b.key), y = !!b.locked;
|
|
4279
4280
|
return /* @__PURE__ */ u(
|
|
@@ -4309,7 +4310,7 @@ const co = 240, yn = ({
|
|
|
4309
4310
|
children: b.icon
|
|
4310
4311
|
}
|
|
4311
4312
|
),
|
|
4312
|
-
/* @__PURE__ */ e(
|
|
4313
|
+
/* @__PURE__ */ e(w, { fontSize: "sm", color: "primary", truncate: !0, children: b.label })
|
|
4313
4314
|
]
|
|
4314
4315
|
}
|
|
4315
4316
|
),
|
|
@@ -4380,14 +4381,14 @@ const co = 240, yn = ({
|
|
|
4380
4381
|
defaultPerPage: o = 10,
|
|
4381
4382
|
showPageSize: i
|
|
4382
4383
|
}) => {
|
|
4383
|
-
const { searchQueries: l, setSearchParams: s, searchParams: c } =
|
|
4384
|
+
const { searchQueries: l, setSearchParams: s, searchParams: c } = Ve(), d = c.get(t), a = d ? Number(d) : o, m = (p) => {
|
|
4384
4385
|
s({
|
|
4385
4386
|
...l,
|
|
4386
4387
|
[t]: p,
|
|
4387
4388
|
[r]: "1"
|
|
4388
4389
|
});
|
|
4389
4390
|
};
|
|
4390
|
-
return i ? /* @__PURE__ */ u(
|
|
4391
|
+
return i ? /* @__PURE__ */ u(Be, { position: "bottom-right", children: [
|
|
4391
4392
|
/* @__PURE__ */ e(De, { children: /* @__PURE__ */ e(
|
|
4392
4393
|
H,
|
|
4393
4394
|
{
|
|
@@ -4398,10 +4399,10 @@ const co = 240, yn = ({
|
|
|
4398
4399
|
"aria-label": "More options"
|
|
4399
4400
|
}
|
|
4400
4401
|
) }),
|
|
4401
|
-
/* @__PURE__ */ e(
|
|
4402
|
-
/* @__PURE__ */ e(f, { paddingInline: "sm", paddingBlock: "xs", children: /* @__PURE__ */ e(
|
|
4402
|
+
/* @__PURE__ */ e(ze, { children: /* @__PURE__ */ u(Ae, { style: { minWidth: 200 }, children: [
|
|
4403
|
+
/* @__PURE__ */ e(f, { paddingInline: "sm", paddingBlock: "xs", children: /* @__PURE__ */ e(w, { fontSize: "xs", fontWeight: "medium", color: "subtlest", children: "Rows per page" }) }),
|
|
4403
4404
|
n.map((p) => /* @__PURE__ */ e(
|
|
4404
|
-
|
|
4405
|
+
Ne,
|
|
4405
4406
|
{
|
|
4406
4407
|
selected: p === a,
|
|
4407
4408
|
endIcon: p === a ? /* @__PURE__ */ e(E, { name: "Check" }) : void 0,
|
|
@@ -4413,7 +4414,7 @@ const co = 240, yn = ({
|
|
|
4413
4414
|
] }) })
|
|
4414
4415
|
] }) : null;
|
|
4415
4416
|
}, ho = (t) => {
|
|
4416
|
-
var
|
|
4417
|
+
var be;
|
|
4417
4418
|
const {
|
|
4418
4419
|
withPadding: r,
|
|
4419
4420
|
configs: n,
|
|
@@ -4432,28 +4433,29 @@ const co = 240, yn = ({
|
|
|
4432
4433
|
pageKey: y,
|
|
4433
4434
|
searchPlaceholder: k,
|
|
4434
4435
|
searchShortcut: L,
|
|
4435
|
-
|
|
4436
|
-
|
|
4437
|
-
|
|
4438
|
-
|
|
4439
|
-
|
|
4440
|
-
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
|
|
4444
|
-
|
|
4445
|
-
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4436
|
+
searchCollapsible: z,
|
|
4437
|
+
pagination: D,
|
|
4438
|
+
perPageKey: C,
|
|
4439
|
+
pageSizeOptions: V,
|
|
4440
|
+
defaultPerPage: I,
|
|
4441
|
+
showPagination: v,
|
|
4442
|
+
showResultCount: M,
|
|
4443
|
+
showPageSize: N,
|
|
4444
|
+
hasColumns: $,
|
|
4445
|
+
orderedColumns: j,
|
|
4446
|
+
allVisible: X,
|
|
4447
|
+
onToggleVisibility: le,
|
|
4448
|
+
onReorder: pe,
|
|
4449
|
+
onSetAllHidden: ne,
|
|
4450
|
+
showSavedViews: he,
|
|
4451
|
+
savedViews: Y,
|
|
4452
|
+
onApplyView: K,
|
|
4453
|
+
onDeleteView: me,
|
|
4454
|
+
onSaveView: te
|
|
4455
|
+
} = t, [de, Fe] = R(!1), { searchQueries: Ze, setSearchParams: ye } = Ve(), Ee = (D == null ? void 0 : D.rangeStart) ?? (((D == null ? void 0 : D.currentPage) || 0) > 1 ? (((D == null ? void 0 : D.currentPage) || 0) - 1) * ((D == null ? void 0 : D.perPage) || 0) + 1 : 1), Oe = (D == null ? void 0 : D.rangeEnd) ?? ((D == null ? void 0 : D.totalCurrentPage) !== (D == null ? void 0 : D.perPage) ? D == null ? void 0 : D.totalData : ((D == null ? void 0 : D.currentPage) || 1) * ((D == null ? void 0 : D.totalCurrentPage) || 0)), xe = (Ie) => {
|
|
4456
|
+
ye({ ...Ze, [y]: String(Ie) });
|
|
4457
|
+
}, $e = M || v && !!(D != null && D.totalPage), Qe = () => {
|
|
4458
|
+
p(), Fe(!1);
|
|
4457
4459
|
};
|
|
4458
4460
|
return /* @__PURE__ */ u(
|
|
4459
4461
|
f,
|
|
@@ -4486,7 +4488,8 @@ const co = 240, yn = ({
|
|
|
4486
4488
|
filterKey: B,
|
|
4487
4489
|
pageKey: y,
|
|
4488
4490
|
placeholder: k,
|
|
4489
|
-
shortcut: L
|
|
4491
|
+
shortcut: L,
|
|
4492
|
+
collapsible: z
|
|
4490
4493
|
}
|
|
4491
4494
|
),
|
|
4492
4495
|
/* @__PURE__ */ e(
|
|
@@ -4496,7 +4499,7 @@ const co = 240, yn = ({
|
|
|
4496
4499
|
tone: "neutral",
|
|
4497
4500
|
size: "sm",
|
|
4498
4501
|
iconLeft: /* @__PURE__ */ e(E, { name: "FilterHorizontal" }),
|
|
4499
|
-
onClick: () =>
|
|
4502
|
+
onClick: () => Fe(!0),
|
|
4500
4503
|
"aria-label": "Open filters",
|
|
4501
4504
|
children: l ? `Filter: ${o.length}` : null
|
|
4502
4505
|
}
|
|
@@ -4510,33 +4513,33 @@ const co = 240, yn = ({
|
|
|
4510
4513
|
gap: "sm",
|
|
4511
4514
|
style: { marginLeft: "auto" },
|
|
4512
4515
|
children: [
|
|
4513
|
-
|
|
4516
|
+
he && /* @__PURE__ */ e(
|
|
4514
4517
|
bn,
|
|
4515
4518
|
{
|
|
4516
|
-
views:
|
|
4517
|
-
onApply:
|
|
4518
|
-
onDelete:
|
|
4519
|
-
onSave:
|
|
4519
|
+
views: Y,
|
|
4520
|
+
onApply: K,
|
|
4521
|
+
onDelete: me,
|
|
4522
|
+
onSave: te
|
|
4520
4523
|
}
|
|
4521
4524
|
),
|
|
4522
|
-
|
|
4525
|
+
$ && /* @__PURE__ */ e(
|
|
4523
4526
|
xn,
|
|
4524
4527
|
{
|
|
4525
|
-
columns:
|
|
4526
|
-
allVisible:
|
|
4527
|
-
onToggle:
|
|
4528
|
-
onReorder:
|
|
4529
|
-
onSetAllHidden:
|
|
4528
|
+
columns: j,
|
|
4529
|
+
allVisible: X,
|
|
4530
|
+
onToggle: le,
|
|
4531
|
+
onReorder: pe,
|
|
4532
|
+
onSetAllHidden: ne
|
|
4530
4533
|
}
|
|
4531
4534
|
),
|
|
4532
4535
|
/* @__PURE__ */ e(
|
|
4533
4536
|
uo,
|
|
4534
4537
|
{
|
|
4535
|
-
perPageKey:
|
|
4538
|
+
perPageKey: C,
|
|
4536
4539
|
pageKey: y,
|
|
4537
|
-
pageSizeOptions:
|
|
4538
|
-
defaultPerPage:
|
|
4539
|
-
showPageSize:
|
|
4540
|
+
pageSizeOptions: V,
|
|
4541
|
+
defaultPerPage: I,
|
|
4542
|
+
showPageSize: N
|
|
4540
4543
|
}
|
|
4541
4544
|
)
|
|
4542
4545
|
]
|
|
@@ -4545,7 +4548,7 @@ const co = 240, yn = ({
|
|
|
4545
4548
|
]
|
|
4546
4549
|
}
|
|
4547
4550
|
),
|
|
4548
|
-
|
|
4551
|
+
$e && /* @__PURE__ */ u(
|
|
4549
4552
|
f,
|
|
4550
4553
|
{
|
|
4551
4554
|
direction: "row",
|
|
@@ -4555,16 +4558,16 @@ const co = 240, yn = ({
|
|
|
4555
4558
|
gap: "sm",
|
|
4556
4559
|
fullWidth: !0,
|
|
4557
4560
|
children: [
|
|
4558
|
-
|
|
4559
|
-
|
|
4561
|
+
M ? /* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${Ee}-${Oe} of ${((be = D == null ? void 0 : D.totalData) == null ? void 0 : be.toLocaleString()) || 0}` }) : /* @__PURE__ */ e(f, { direction: "column" }),
|
|
4562
|
+
v && !!(D != null && D.totalPage) && /* @__PURE__ */ e(
|
|
4560
4563
|
dr,
|
|
4561
4564
|
{
|
|
4562
4565
|
size: "xs",
|
|
4563
4566
|
variant: "neutral",
|
|
4564
4567
|
siblingCount: 0,
|
|
4565
|
-
currentPage:
|
|
4566
|
-
totalPages: Number(
|
|
4567
|
-
onPageChange:
|
|
4568
|
+
currentPage: D != null && D.currentPage ? Number(D.currentPage) : 1,
|
|
4569
|
+
totalPages: Number(D.totalPage),
|
|
4570
|
+
onPageChange: xe
|
|
4568
4571
|
}
|
|
4569
4572
|
)
|
|
4570
4573
|
]
|
|
@@ -4573,8 +4576,8 @@ const co = 240, yn = ({
|
|
|
4573
4576
|
/* @__PURE__ */ e(
|
|
4574
4577
|
so,
|
|
4575
4578
|
{
|
|
4576
|
-
isOpen:
|
|
4577
|
-
onClose: () =>
|
|
4579
|
+
isOpen: de,
|
|
4580
|
+
onClose: () => Fe(!1),
|
|
4578
4581
|
configs: n,
|
|
4579
4582
|
activeKeys: o,
|
|
4580
4583
|
configByKey: i,
|
|
@@ -4607,77 +4610,79 @@ const co = 240, yn = ({
|
|
|
4607
4610
|
searchPlaceholder: b = "Search",
|
|
4608
4611
|
searchShortcut: B = "/",
|
|
4609
4612
|
searchPosition: y = "right",
|
|
4610
|
-
|
|
4611
|
-
|
|
4612
|
-
|
|
4613
|
-
|
|
4614
|
-
|
|
4615
|
-
|
|
4616
|
-
|
|
4617
|
-
|
|
4618
|
-
|
|
4613
|
+
searchCollapsible: k = !0,
|
|
4614
|
+
pagination: L,
|
|
4615
|
+
columns: z = [],
|
|
4616
|
+
onColumnsChange: D,
|
|
4617
|
+
columnsState: C,
|
|
4618
|
+
scopeId: V,
|
|
4619
|
+
savedViews: I,
|
|
4620
|
+
persistLastState: v = !0,
|
|
4621
|
+
storage: M = fn,
|
|
4622
|
+
onReset: N
|
|
4619
4623
|
}) => {
|
|
4620
|
-
const
|
|
4621
|
-
activeKeys:
|
|
4622
|
-
configByKey:
|
|
4623
|
-
hasActiveFilter:
|
|
4624
|
-
toggleFilter:
|
|
4625
|
-
removeFilter:
|
|
4626
|
-
getValue:
|
|
4627
|
-
setValue:
|
|
4628
|
-
clearValue:
|
|
4629
|
-
clearAll:
|
|
4624
|
+
const $ = V ?? (I == null ? void 0 : I.scopeId), {
|
|
4625
|
+
activeKeys: j,
|
|
4626
|
+
configByKey: X,
|
|
4627
|
+
hasActiveFilter: le,
|
|
4628
|
+
toggleFilter: pe,
|
|
4629
|
+
removeFilter: ne,
|
|
4630
|
+
getValue: he,
|
|
4631
|
+
setValue: Y,
|
|
4632
|
+
clearValue: K,
|
|
4633
|
+
clearAll: me
|
|
4630
4634
|
} = xr({
|
|
4631
4635
|
configs: r,
|
|
4632
4636
|
filterKey: n,
|
|
4633
4637
|
activeFilterKey: o,
|
|
4634
4638
|
pageKey: i,
|
|
4635
4639
|
searchKey: g
|
|
4636
|
-
}),
|
|
4637
|
-
columns:
|
|
4638
|
-
scopeId:
|
|
4639
|
-
storage:
|
|
4640
|
-
onColumnsChange:
|
|
4641
|
-
value:
|
|
4642
|
-
}),
|
|
4643
|
-
scopeId:
|
|
4644
|
-
storage:
|
|
4640
|
+
}), te = Oi({
|
|
4641
|
+
columns: z,
|
|
4642
|
+
scopeId: $,
|
|
4643
|
+
storage: M,
|
|
4644
|
+
onColumnsChange: D,
|
|
4645
|
+
value: C
|
|
4646
|
+
}), de = Hi({
|
|
4647
|
+
scopeId: $,
|
|
4648
|
+
storage: M,
|
|
4645
4649
|
snapshotKeys: [o, n, l],
|
|
4646
4650
|
pageKey: i,
|
|
4647
|
-
getColumns: () =>
|
|
4648
|
-
applyColumns:
|
|
4649
|
-
}),
|
|
4650
|
-
scopeId:
|
|
4651
|
-
storage:
|
|
4651
|
+
getColumns: () => te.state,
|
|
4652
|
+
applyColumns: te.applyState
|
|
4653
|
+
}), Fe = Ti({
|
|
4654
|
+
scopeId: $,
|
|
4655
|
+
storage: M,
|
|
4652
4656
|
snapshotKeys: [o, n, i],
|
|
4653
|
-
enabled:
|
|
4654
|
-
}),
|
|
4655
|
-
scopeId:
|
|
4656
|
-
storage:
|
|
4657
|
+
enabled: v
|
|
4658
|
+
}), Ze = Ni({
|
|
4659
|
+
scopeId: $,
|
|
4660
|
+
storage: M,
|
|
4657
4661
|
perPageKey: l,
|
|
4658
4662
|
pageSizeOptions: s,
|
|
4659
|
-
enabled:
|
|
4663
|
+
enabled: v
|
|
4660
4664
|
});
|
|
4661
4665
|
ji({
|
|
4662
|
-
enabled:
|
|
4666
|
+
enabled: v && !!$,
|
|
4663
4667
|
snapshotKeys: [o, n, i],
|
|
4664
4668
|
perPageKey: l,
|
|
4665
|
-
readSnapshot:
|
|
4666
|
-
readPerPage:
|
|
4669
|
+
readSnapshot: Fe.read,
|
|
4670
|
+
readPerPage: Ze.read
|
|
4667
4671
|
});
|
|
4668
|
-
const
|
|
4669
|
-
|
|
4670
|
-
},
|
|
4672
|
+
const ye = c ?? s[0] ?? 25, Ee = !!(I != null && I.enabled) && de.enabled, Oe = () => {
|
|
4673
|
+
me(), Fe.clear(), N == null || N();
|
|
4674
|
+
}, xe = ke("md"), $e = p ? /* @__PURE__ */ e(
|
|
4671
4675
|
yn,
|
|
4672
4676
|
{
|
|
4673
4677
|
searchKey: g,
|
|
4674
4678
|
filterKey: n,
|
|
4675
4679
|
pageKey: i,
|
|
4676
4680
|
placeholder: b,
|
|
4677
|
-
shortcut: B
|
|
4681
|
+
shortcut: B,
|
|
4682
|
+
collapsible: k
|
|
4678
4683
|
}
|
|
4679
4684
|
) : null;
|
|
4680
|
-
return
|
|
4685
|
+
return xe ? /* @__PURE__ */ u(
|
|
4681
4686
|
f,
|
|
4682
4687
|
{
|
|
4683
4688
|
display: "flex",
|
|
@@ -4706,13 +4711,13 @@ const co = 240, yn = ({
|
|
|
4706
4711
|
_i,
|
|
4707
4712
|
{
|
|
4708
4713
|
configs: r,
|
|
4709
|
-
activeKeys:
|
|
4710
|
-
onToggle:
|
|
4711
|
-
hasActiveFilter:
|
|
4712
|
-
onReset:
|
|
4714
|
+
activeKeys: j,
|
|
4715
|
+
onToggle: pe,
|
|
4716
|
+
hasActiveFilter: le,
|
|
4717
|
+
onReset: Oe
|
|
4713
4718
|
}
|
|
4714
4719
|
),
|
|
4715
|
-
y === "left" &&
|
|
4720
|
+
y === "left" && $e,
|
|
4716
4721
|
/* @__PURE__ */ u(
|
|
4717
4722
|
f,
|
|
4718
4723
|
{
|
|
@@ -4726,21 +4731,21 @@ const co = 240, yn = ({
|
|
|
4726
4731
|
/* @__PURE__ */ e(
|
|
4727
4732
|
pn,
|
|
4728
4733
|
{
|
|
4729
|
-
activeKeys:
|
|
4730
|
-
configByKey:
|
|
4731
|
-
getValue:
|
|
4732
|
-
setValue:
|
|
4733
|
-
clearValue:
|
|
4734
|
-
removeFilter:
|
|
4734
|
+
activeKeys: j,
|
|
4735
|
+
configByKey: X,
|
|
4736
|
+
getValue: he,
|
|
4737
|
+
setValue: Y,
|
|
4738
|
+
clearValue: K,
|
|
4739
|
+
removeFilter: ne
|
|
4735
4740
|
}
|
|
4736
4741
|
),
|
|
4737
|
-
|
|
4742
|
+
le && /* @__PURE__ */ e(
|
|
4738
4743
|
H,
|
|
4739
4744
|
{
|
|
4740
4745
|
variant: "link",
|
|
4741
4746
|
tone: "brand",
|
|
4742
4747
|
size: "sm",
|
|
4743
|
-
onClick:
|
|
4748
|
+
onClick: Oe,
|
|
4744
4749
|
children: "Reset"
|
|
4745
4750
|
}
|
|
4746
4751
|
)
|
|
@@ -4754,34 +4759,34 @@ const co = 240, yn = ({
|
|
|
4754
4759
|
/* @__PURE__ */ e(
|
|
4755
4760
|
oo,
|
|
4756
4761
|
{
|
|
4757
|
-
pagination:
|
|
4762
|
+
pagination: L,
|
|
4758
4763
|
pageKey: i,
|
|
4759
4764
|
perPageKey: l,
|
|
4760
4765
|
pageSizeOptions: s,
|
|
4761
|
-
defaultPerPage:
|
|
4766
|
+
defaultPerPage: ye,
|
|
4762
4767
|
showPagination: d,
|
|
4763
4768
|
showResultCount: a,
|
|
4764
4769
|
showPageSize: m
|
|
4765
4770
|
}
|
|
4766
4771
|
),
|
|
4767
|
-
y === "right" &&
|
|
4768
|
-
|
|
4772
|
+
y === "right" && $e,
|
|
4773
|
+
Ee && /* @__PURE__ */ e(
|
|
4769
4774
|
bn,
|
|
4770
4775
|
{
|
|
4771
|
-
views:
|
|
4772
|
-
onApply:
|
|
4773
|
-
onDelete:
|
|
4774
|
-
onSave:
|
|
4776
|
+
views: de.views,
|
|
4777
|
+
onApply: de.applyView,
|
|
4778
|
+
onDelete: de.deleteView,
|
|
4779
|
+
onSave: de.saveView
|
|
4775
4780
|
}
|
|
4776
4781
|
),
|
|
4777
|
-
|
|
4782
|
+
z.length > 0 && /* @__PURE__ */ e(
|
|
4778
4783
|
xn,
|
|
4779
4784
|
{
|
|
4780
|
-
columns:
|
|
4781
|
-
allVisible:
|
|
4782
|
-
onToggle:
|
|
4783
|
-
onReorder:
|
|
4784
|
-
onSetAllHidden:
|
|
4785
|
+
columns: te.orderedColumns,
|
|
4786
|
+
allVisible: te.allVisible,
|
|
4787
|
+
onToggle: te.toggleVisibility,
|
|
4788
|
+
onReorder: te.reorder,
|
|
4789
|
+
onSetAllHidden: te.setAllHidden
|
|
4785
4790
|
}
|
|
4786
4791
|
)
|
|
4787
4792
|
] })
|
|
@@ -4792,39 +4797,40 @@ const co = 240, yn = ({
|
|
|
4792
4797
|
{
|
|
4793
4798
|
withPadding: t,
|
|
4794
4799
|
configs: r,
|
|
4795
|
-
activeKeys:
|
|
4796
|
-
configByKey:
|
|
4797
|
-
hasActiveFilter:
|
|
4798
|
-
toggleFilter:
|
|
4799
|
-
removeFilter:
|
|
4800
|
-
getValue:
|
|
4801
|
-
setValue:
|
|
4802
|
-
clearValue:
|
|
4803
|
-
onReset:
|
|
4800
|
+
activeKeys: j,
|
|
4801
|
+
configByKey: X,
|
|
4802
|
+
hasActiveFilter: le,
|
|
4803
|
+
toggleFilter: pe,
|
|
4804
|
+
removeFilter: ne,
|
|
4805
|
+
getValue: he,
|
|
4806
|
+
setValue: Y,
|
|
4807
|
+
clearValue: K,
|
|
4808
|
+
onReset: Oe,
|
|
4804
4809
|
searchable: p,
|
|
4805
4810
|
searchKey: g,
|
|
4806
4811
|
filterKey: n,
|
|
4807
4812
|
pageKey: i,
|
|
4808
4813
|
searchPlaceholder: b,
|
|
4809
4814
|
searchShortcut: B,
|
|
4810
|
-
|
|
4815
|
+
searchCollapsible: k,
|
|
4816
|
+
pagination: L,
|
|
4811
4817
|
perPageKey: l,
|
|
4812
4818
|
pageSizeOptions: s,
|
|
4813
|
-
defaultPerPage:
|
|
4819
|
+
defaultPerPage: ye,
|
|
4814
4820
|
showPagination: d,
|
|
4815
4821
|
showResultCount: a,
|
|
4816
4822
|
showPageSize: m,
|
|
4817
|
-
hasColumns:
|
|
4818
|
-
orderedColumns:
|
|
4819
|
-
allVisible:
|
|
4820
|
-
onToggleVisibility:
|
|
4821
|
-
onReorder:
|
|
4822
|
-
onSetAllHidden:
|
|
4823
|
-
showSavedViews:
|
|
4824
|
-
savedViews:
|
|
4825
|
-
onApplyView:
|
|
4826
|
-
onDeleteView:
|
|
4827
|
-
onSaveView:
|
|
4823
|
+
hasColumns: z.length > 0,
|
|
4824
|
+
orderedColumns: te.orderedColumns,
|
|
4825
|
+
allVisible: te.allVisible,
|
|
4826
|
+
onToggleVisibility: te.toggleVisibility,
|
|
4827
|
+
onReorder: te.reorder,
|
|
4828
|
+
onSetAllHidden: te.setAllHidden,
|
|
4829
|
+
showSavedViews: Ee,
|
|
4830
|
+
savedViews: de.views,
|
|
4831
|
+
onApplyView: de.applyView,
|
|
4832
|
+
onDeleteView: de.deleteView,
|
|
4833
|
+
onSaveView: de.saveView
|
|
4828
4834
|
}
|
|
4829
4835
|
);
|
|
4830
4836
|
}, fo = (t) => {
|
|
@@ -4872,27 +4878,27 @@ const co = 240, yn = ({
|
|
|
4872
4878
|
activeFilterKey: o,
|
|
4873
4879
|
pageKey: i,
|
|
4874
4880
|
searchKey: s
|
|
4875
|
-
}), { searchParams: y } =
|
|
4881
|
+
}), { searchParams: y } = Ve(), k = y.toString();
|
|
4876
4882
|
return ge(() => {
|
|
4877
|
-
const
|
|
4878
|
-
|
|
4883
|
+
const z = {}, D = {}, C = Gr(y.get(i), c), V = Gr(y.get(l), d);
|
|
4884
|
+
z[(a == null ? void 0 : a.page) ?? "page"] = C, z[(a == null ? void 0 : a.perPage) ?? "perPage"] = V;
|
|
4879
4885
|
const I = yr(s, y, n) || "";
|
|
4880
|
-
I && (
|
|
4886
|
+
I && (z[(a == null ? void 0 : a.search) ?? "search"] = I);
|
|
4881
4887
|
let v = !1;
|
|
4882
4888
|
for (const M of p) {
|
|
4883
4889
|
const N = g[M];
|
|
4884
4890
|
if (!N) continue;
|
|
4885
4891
|
const $ = B(N);
|
|
4886
|
-
|
|
4887
|
-
const
|
|
4888
|
-
if (
|
|
4892
|
+
D[M] = $;
|
|
4893
|
+
const j = m == null ? void 0 : m[M], X = j ? j($) : go(N, $);
|
|
4894
|
+
if (X == null || Array.isArray(X) && X.length === 0)
|
|
4889
4895
|
continue;
|
|
4890
|
-
const
|
|
4891
|
-
|
|
4896
|
+
const le = (a == null ? void 0 : a[M]) ?? M;
|
|
4897
|
+
z[le] = X, v = !0;
|
|
4892
4898
|
}
|
|
4893
4899
|
return {
|
|
4894
|
-
params:
|
|
4895
|
-
raw:
|
|
4900
|
+
params: z,
|
|
4901
|
+
raw: D,
|
|
4896
4902
|
hasActiveFilter: b || !!I || v
|
|
4897
4903
|
};
|
|
4898
4904
|
}, [
|
|
@@ -4927,41 +4933,41 @@ const co = 240, yn = ({
|
|
|
4927
4933
|
activeFilterKey: n,
|
|
4928
4934
|
pageKey: o,
|
|
4929
4935
|
searchKey: i
|
|
4930
|
-
}), p = (L,
|
|
4936
|
+
}), p = (L, z) => {
|
|
4931
4937
|
var C;
|
|
4932
|
-
const
|
|
4933
|
-
return ((C =
|
|
4938
|
+
const D = L.options;
|
|
4939
|
+
return ((C = D == null ? void 0 : D.find((V) => V.value === z)) == null ? void 0 : C.label) ?? z;
|
|
4934
4940
|
}, g = Q(
|
|
4935
4941
|
(L) => {
|
|
4936
|
-
const
|
|
4937
|
-
if (!
|
|
4938
|
-
const
|
|
4939
|
-
return Array.isArray(
|
|
4942
|
+
const z = l[L];
|
|
4943
|
+
if (!z) return [];
|
|
4944
|
+
const D = s(z);
|
|
4945
|
+
return Array.isArray(D) ? D.map((C) => String(C.value)) : [];
|
|
4940
4946
|
},
|
|
4941
4947
|
[l, s]
|
|
4942
4948
|
), b = Q(
|
|
4943
|
-
(L,
|
|
4944
|
-
const
|
|
4945
|
-
if (!
|
|
4946
|
-
const C = Array.isArray(
|
|
4949
|
+
(L, z) => {
|
|
4950
|
+
const D = l[L];
|
|
4951
|
+
if (!D || !po.includes(D.type)) return;
|
|
4952
|
+
const C = Array.isArray(z) ? z : [z];
|
|
4947
4953
|
if (C.length === 0) {
|
|
4948
4954
|
d(L);
|
|
4949
4955
|
return;
|
|
4950
4956
|
}
|
|
4951
4957
|
c(
|
|
4952
|
-
|
|
4953
|
-
C.map((
|
|
4958
|
+
D,
|
|
4959
|
+
C.map((V) => ({ label: p(D, V), value: V }))
|
|
4954
4960
|
);
|
|
4955
4961
|
},
|
|
4956
4962
|
[l, c, d]
|
|
4957
4963
|
), B = Q(
|
|
4958
|
-
(L,
|
|
4959
|
-
const
|
|
4960
|
-
b(L,
|
|
4964
|
+
(L, z) => {
|
|
4965
|
+
const D = g(L);
|
|
4966
|
+
b(L, D.includes(z) ? D.filter((C) => C !== z) : [...D, z]);
|
|
4961
4967
|
},
|
|
4962
4968
|
[g, b]
|
|
4963
4969
|
), y = Q(
|
|
4964
|
-
(L,
|
|
4970
|
+
(L, z) => g(L).includes(z),
|
|
4965
4971
|
[g]
|
|
4966
4972
|
), k = Q((L) => d(L), [d]);
|
|
4967
4973
|
return { set: b, toggle: B, clear: k, clearAll: a, isActive: y, values: g, hasActiveFilter: m };
|
|
@@ -4989,7 +4995,7 @@ const co = 240, yn = ({
|
|
|
4989
4995
|
return l;
|
|
4990
4996
|
}
|
|
4991
4997
|
}, yo = ({ children: t, borderRadius: r, height: n }) => {
|
|
4992
|
-
const o = se(null), [i, l] =
|
|
4998
|
+
const o = se(null), [i, l] = R("100vh");
|
|
4993
4999
|
return U(() => {
|
|
4994
5000
|
if (n) return;
|
|
4995
5001
|
const s = () => {
|
|
@@ -5044,7 +5050,7 @@ const co = 240, yn = ({
|
|
|
5044
5050
|
flexDirection: s ? "row" : "column-reverse",
|
|
5045
5051
|
gap: "16px"
|
|
5046
5052
|
},
|
|
5047
|
-
children: o ? o({ filter: c }) : /* @__PURE__ */ u(
|
|
5053
|
+
children: o ? o({ filter: c }) : /* @__PURE__ */ u(ie, { children: [
|
|
5048
5054
|
/* @__PURE__ */ u(f, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flex: 1, minWidth: 0 }, children: [
|
|
5049
5055
|
c,
|
|
5050
5056
|
n
|
|
@@ -5097,7 +5103,7 @@ const co = 240, yn = ({
|
|
|
5097
5103
|
},
|
|
5098
5104
|
children: [
|
|
5099
5105
|
/* @__PURE__ */ u(
|
|
5100
|
-
|
|
5106
|
+
Ue.Body1,
|
|
5101
5107
|
{
|
|
5102
5108
|
props: {
|
|
5103
5109
|
color: "gray-500"
|
|
@@ -5108,7 +5114,7 @@ const co = 240, yn = ({
|
|
|
5108
5114
|
]
|
|
5109
5115
|
}
|
|
5110
5116
|
),
|
|
5111
|
-
/* @__PURE__ */ e(
|
|
5117
|
+
/* @__PURE__ */ e(Ue.Body1, { children: t || 0 })
|
|
5112
5118
|
]
|
|
5113
5119
|
}
|
|
5114
5120
|
), vo = ({
|
|
@@ -5119,7 +5125,7 @@ const co = 240, yn = ({
|
|
|
5119
5125
|
showPagination: i = !0,
|
|
5120
5126
|
totalData: l
|
|
5121
5127
|
}) => {
|
|
5122
|
-
const { searchQueries: s, setSearchParams: c, searchParams: d } =
|
|
5128
|
+
const { searchQueries: s, setSearchParams: c, searchParams: d } = Ve(), a = d.get(n), m = (B) => {
|
|
5123
5129
|
c({ ...s, [r]: String(B) });
|
|
5124
5130
|
}, p = (B) => {
|
|
5125
5131
|
c({
|
|
@@ -5144,9 +5150,9 @@ const co = 240, yn = ({
|
|
|
5144
5150
|
borderTop: "1px solid var(--sa-border-subtle, #0b120e24)",
|
|
5145
5151
|
flexShrink: 0
|
|
5146
5152
|
},
|
|
5147
|
-
children: i ? /* @__PURE__ */ u(
|
|
5153
|
+
children: i ? /* @__PURE__ */ u(ie, { children: [
|
|
5148
5154
|
/* @__PURE__ */ u(f, { style: { display: "flex", flexDirection: "row", gap: "8px", alignItems: "center", textWrap: "nowrap" }, children: [
|
|
5149
|
-
/* @__PURE__ */ e(
|
|
5155
|
+
/* @__PURE__ */ e(w, { children: "Rows Per Page: " }),
|
|
5150
5156
|
/* @__PURE__ */ e(
|
|
5151
5157
|
It,
|
|
5152
5158
|
{
|
|
@@ -5164,7 +5170,7 @@ const co = 240, yn = ({
|
|
|
5164
5170
|
defaultValue: a ? [{ label: `${a} per row`, value: a }] : [{ label: `${o} per row`, value: `${o}` }]
|
|
5165
5171
|
}
|
|
5166
5172
|
),
|
|
5167
|
-
/* @__PURE__ */ e(
|
|
5173
|
+
/* @__PURE__ */ e(w, { children: `${g}-${b} of ${(t == null ? void 0 : t.totalData) || 0}` })
|
|
5168
5174
|
] }),
|
|
5169
5175
|
/* @__PURE__ */ e(
|
|
5170
5176
|
dr,
|
|
@@ -5185,7 +5191,7 @@ const co = 240, yn = ({
|
|
|
5185
5191
|
}
|
|
5186
5192
|
);
|
|
5187
5193
|
}, Co = ({ filter: t, columnTitle: r }) => {
|
|
5188
|
-
const [n, o] =
|
|
5194
|
+
const [n, o] = R(!1), i = se(null), l = se(null), s = se(null), [c, d] = R(""), [a, m] = R({ top: 0, left: 0 }), p = t.selectedValues, g = ge(() => c ? t.options.filter(
|
|
5189
5195
|
(y) => y.label.toLowerCase().includes(c.toLowerCase())
|
|
5190
5196
|
) : t.options, [t.options, c]);
|
|
5191
5197
|
U(() => {
|
|
@@ -5271,12 +5277,12 @@ const co = 240, yn = ({
|
|
|
5271
5277
|
borderBottom: "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
5272
5278
|
},
|
|
5273
5279
|
children: [
|
|
5274
|
-
/* @__PURE__ */ u(
|
|
5280
|
+
/* @__PURE__ */ u(w, { fontSize: "sm", fontWeight: "semibold", color: "gray-700", children: [
|
|
5275
5281
|
"Filter ",
|
|
5276
5282
|
r
|
|
5277
5283
|
] }),
|
|
5278
5284
|
p.length > 0 && /* @__PURE__ */ e(f, { direction: "column", style: { cursor: "pointer" }, children: /* @__PURE__ */ e(
|
|
5279
|
-
|
|
5285
|
+
w,
|
|
5280
5286
|
{
|
|
5281
5287
|
fontSize: "xs",
|
|
5282
5288
|
color: "primary",
|
|
@@ -5348,7 +5354,7 @@ const co = 240, yn = ({
|
|
|
5348
5354
|
}
|
|
5349
5355
|
),
|
|
5350
5356
|
/* @__PURE__ */ e(
|
|
5351
|
-
|
|
5357
|
+
w,
|
|
5352
5358
|
{
|
|
5353
5359
|
fontSize: "sm",
|
|
5354
5360
|
color: "gray-500",
|
|
@@ -5394,7 +5400,7 @@ const co = 240, yn = ({
|
|
|
5394
5400
|
}
|
|
5395
5401
|
),
|
|
5396
5402
|
/* @__PURE__ */ e(
|
|
5397
|
-
|
|
5403
|
+
w,
|
|
5398
5404
|
{
|
|
5399
5405
|
fontSize: "sm",
|
|
5400
5406
|
fontWeight: p.includes(y.value) ? "medium" : "normal",
|
|
@@ -5426,7 +5432,7 @@ const co = 240, yn = ({
|
|
|
5426
5432
|
}
|
|
5427
5433
|
),
|
|
5428
5434
|
/* @__PURE__ */ e(
|
|
5429
|
-
|
|
5435
|
+
w,
|
|
5430
5436
|
{
|
|
5431
5437
|
fontSize: "sm",
|
|
5432
5438
|
color: "gray-500",
|
|
@@ -5468,7 +5474,7 @@ const co = 240, yn = ({
|
|
|
5468
5474
|
children: p.length
|
|
5469
5475
|
}
|
|
5470
5476
|
),
|
|
5471
|
-
/* @__PURE__ */ u(
|
|
5477
|
+
/* @__PURE__ */ u(w, { fontSize: "xs", color: "primary", fontWeight: "medium", children: [
|
|
5472
5478
|
"item",
|
|
5473
5479
|
p.length > 1 ? "s" : "",
|
|
5474
5480
|
" selected"
|
|
@@ -5555,80 +5561,80 @@ const co = 240, yn = ({
|
|
|
5555
5561
|
customEmptyState: y,
|
|
5556
5562
|
enableColumnResize: k = !1,
|
|
5557
5563
|
defaultColumnWidths: L,
|
|
5558
|
-
onColumnWidthsChange:
|
|
5559
|
-
defaultMinColumnWidth:
|
|
5564
|
+
onColumnWidthsChange: z,
|
|
5565
|
+
defaultMinColumnWidth: D = 60,
|
|
5560
5566
|
sort: C,
|
|
5561
|
-
defaultSort:
|
|
5567
|
+
defaultSort: V,
|
|
5562
5568
|
onSortChange: I,
|
|
5563
5569
|
showActionDivider: v = !1
|
|
5564
5570
|
}) => {
|
|
5565
|
-
const M = C !== void 0, [N, $] =
|
|
5566
|
-
|
|
5567
|
-
),
|
|
5571
|
+
const M = C !== void 0, [N, $] = R(
|
|
5572
|
+
V ?? null
|
|
5573
|
+
), j = M ? C ?? null : N, X = (W) => {
|
|
5568
5574
|
if (W.sortKey) return W.sortKey;
|
|
5569
5575
|
if (typeof W.accessor == "string") return W.accessor;
|
|
5570
|
-
},
|
|
5571
|
-
const O =
|
|
5576
|
+
}, le = (W) => {
|
|
5577
|
+
const O = X(W);
|
|
5572
5578
|
if (!O) return;
|
|
5573
5579
|
let T;
|
|
5574
|
-
!
|
|
5575
|
-
},
|
|
5580
|
+
!j || j.key !== O ? T = { key: O, direction: "asc" } : j.direction === "asc" ? T = { key: O, direction: "desc" } : T = null, M || $(T), I == null || I(T);
|
|
5581
|
+
}, ne = [n, o, i].filter((W) => W !== void 0).length, he = !!b, Y = !!n || !!o || !!i || he, K = "var(--sa-border-subtle, #0b120e24)", me = `1px solid ${K}`, te = `inset 1px 0 0 ${K}`, de = `inset -1px 0 0 ${K}`, Fe = ne === 3 ? he ? "178px" : "140px" : ne === 2 ? he ? "140px" : "102px" : ne === 1 ? he ? "112px" : "74px" : he ? "74px" : "", Ze = (W, O) => {
|
|
5576
5582
|
if (!O) return W;
|
|
5577
5583
|
if (typeof O == "function") return O(W);
|
|
5578
5584
|
if (typeof O == "string") return W[O];
|
|
5579
|
-
}, [
|
|
5585
|
+
}, [ye, Ee] = R(!1);
|
|
5580
5586
|
U(() => {
|
|
5581
5587
|
if (!(m != null && m.current)) return;
|
|
5582
5588
|
const W = m.current;
|
|
5583
|
-
|
|
5589
|
+
Ee(W.scrollHeight > W.clientHeight);
|
|
5584
5590
|
}, [r, m]);
|
|
5585
|
-
const
|
|
5591
|
+
const Oe = se(null), [xe, $e] = R([]), [Qe, be] = R(
|
|
5586
5592
|
() => L ?? {}
|
|
5587
|
-
),
|
|
5593
|
+
), Ie = se(null);
|
|
5588
5594
|
lt(() => {
|
|
5589
|
-
if (!p || !
|
|
5590
|
-
|
|
5595
|
+
if (!p || !Oe.current) {
|
|
5596
|
+
$e([]);
|
|
5591
5597
|
return;
|
|
5592
5598
|
}
|
|
5593
5599
|
const W = Array.from(
|
|
5594
|
-
|
|
5600
|
+
Oe.current.querySelectorAll("thead tr th")
|
|
5595
5601
|
), O = [];
|
|
5596
5602
|
let T = 0;
|
|
5597
|
-
W.forEach((
|
|
5598
|
-
O[J] = T, J < p && (T +=
|
|
5599
|
-
}),
|
|
5600
|
-
}, [p, t, r,
|
|
5603
|
+
W.forEach((P, J) => {
|
|
5604
|
+
O[J] = T, J < p && (T += P.offsetWidth);
|
|
5605
|
+
}), $e(O);
|
|
5606
|
+
}, [p, t, r, Qe]);
|
|
5601
5607
|
const et = (W) => {
|
|
5602
5608
|
g && g(W < p ? W : W + 1);
|
|
5603
5609
|
}, S = (W, O) => {
|
|
5604
|
-
const T =
|
|
5610
|
+
const T = Qe[W];
|
|
5605
5611
|
if (T !== void 0) {
|
|
5606
|
-
const
|
|
5607
|
-
return { width:
|
|
5612
|
+
const P = `${T}px`;
|
|
5613
|
+
return { width: P, minWidth: P, maxWidth: P };
|
|
5608
5614
|
}
|
|
5609
5615
|
return O ? { width: O } : {};
|
|
5610
|
-
}, Z = (W) => k && (W.resizable ?? !0),
|
|
5616
|
+
}, Z = (W) => k && (W.resizable ?? !0), _ = (W, O) => {
|
|
5611
5617
|
W.preventDefault(), W.stopPropagation();
|
|
5612
5618
|
const T = W.currentTarget.closest("th");
|
|
5613
5619
|
if (!T) return;
|
|
5614
|
-
const
|
|
5615
|
-
|
|
5620
|
+
const P = Math.round(T.getBoundingClientRect().width);
|
|
5621
|
+
Ie.current = { colIndex: O, startX: W.clientX, startWidth: P };
|
|
5616
5622
|
const J = document.body.style.userSelect, Ce = document.body.style.cursor;
|
|
5617
5623
|
document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
|
|
5618
|
-
const
|
|
5624
|
+
const Le = (_e) => {
|
|
5619
5625
|
var nt;
|
|
5620
|
-
const
|
|
5621
|
-
if (!
|
|
5622
|
-
const tt = ((nt = t[
|
|
5623
|
-
|
|
5624
|
-
(
|
|
5626
|
+
const He = Ie.current;
|
|
5627
|
+
if (!He) return;
|
|
5628
|
+
const tt = ((nt = t[He.colIndex]) == null ? void 0 : nt.minWidth) ?? D, rt = Math.max(tt, He.startWidth + (_e.clientX - He.startX));
|
|
5629
|
+
be(
|
|
5630
|
+
(Pe) => Pe[He.colIndex] === rt ? Pe : { ...Pe, [He.colIndex]: rt }
|
|
5625
5631
|
);
|
|
5626
|
-
},
|
|
5627
|
-
document.removeEventListener("mousemove",
|
|
5632
|
+
}, je = () => {
|
|
5633
|
+
document.removeEventListener("mousemove", Le), document.removeEventListener("mouseup", je), document.body.style.userSelect = J, document.body.style.cursor = Ce, Ie.current = null, z && be((_e) => (z(_e), _e));
|
|
5628
5634
|
};
|
|
5629
|
-
document.addEventListener("mousemove",
|
|
5635
|
+
document.addEventListener("mousemove", Le), document.addEventListener("mouseup", je);
|
|
5630
5636
|
};
|
|
5631
|
-
return /* @__PURE__ */ e("div", { ref:
|
|
5637
|
+
return /* @__PURE__ */ e("div", { ref: Oe, children: /* @__PURE__ */ u(ur, { fullWidth: !0, children: [
|
|
5632
5638
|
/* @__PURE__ */ e(
|
|
5633
5639
|
tn,
|
|
5634
5640
|
{
|
|
@@ -5636,22 +5642,22 @@ const co = 240, yn = ({
|
|
|
5636
5642
|
height: "40px",
|
|
5637
5643
|
whiteSpace: "nowrap"
|
|
5638
5644
|
},
|
|
5639
|
-
children: /* @__PURE__ */ u(
|
|
5645
|
+
children: /* @__PURE__ */ u(Te, { children: [
|
|
5640
5646
|
t.map((W, O) => {
|
|
5641
5647
|
var ct, st;
|
|
5642
|
-
const T = p > 0 && O < p,
|
|
5648
|
+
const T = p > 0 && O < p, P = xe[O] ?? 0, J = Z(W), Le = O === t.length - 1 && Y && v, je = X(W), _e = !!W.sortable && !!je, He = _e && (j == null ? void 0 : j.key) === je ? j.direction : null, tt = W.title || ((ct = W.accessor) == null ? void 0 : ct.toString()) || "", rt = (st = W.headerTooltip) != null && st.showIcon ? /* @__PURE__ */ e(
|
|
5643
5649
|
E,
|
|
5644
5650
|
{
|
|
5645
5651
|
name: "InfoCircle",
|
|
5646
5652
|
size: "xs",
|
|
5647
5653
|
style: { flexShrink: 0, color: "var(--sa-icon-subtle, #8c8f97)", opacity: 0.75 }
|
|
5648
5654
|
}
|
|
5649
|
-
) : null, nt = /* @__PURE__ */ e("span", { style: { flex: 1, minWidth: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: tt }),
|
|
5655
|
+
) : null, nt = /* @__PURE__ */ e("span", { style: { flex: 1, minWidth: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: tt }), Pe = _e ? /* @__PURE__ */ u(
|
|
5650
5656
|
"button",
|
|
5651
5657
|
{
|
|
5652
5658
|
type: "button",
|
|
5653
|
-
onClick: () =>
|
|
5654
|
-
title:
|
|
5659
|
+
onClick: () => le(W),
|
|
5660
|
+
title: He === "asc" ? "Sorted ascending — click to sort descending" : He === "desc" ? "Sorted descending — click to clear" : "Click to sort ascending",
|
|
5655
5661
|
style: {
|
|
5656
5662
|
flex: 1,
|
|
5657
5663
|
minWidth: 0,
|
|
@@ -5670,7 +5676,7 @@ const co = 240, yn = ({
|
|
|
5670
5676
|
children: [
|
|
5671
5677
|
nt,
|
|
5672
5678
|
rt,
|
|
5673
|
-
/* @__PURE__ */ e(wo, { direction:
|
|
5679
|
+
/* @__PURE__ */ e(wo, { direction: He })
|
|
5674
5680
|
]
|
|
5675
5681
|
}
|
|
5676
5682
|
) : /* @__PURE__ */ u("span", { style: { flex: 1, minWidth: 0, display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
@@ -5683,12 +5689,12 @@ const co = 240, yn = ({
|
|
|
5683
5689
|
style: {
|
|
5684
5690
|
position: "sticky",
|
|
5685
5691
|
top: 0,
|
|
5686
|
-
left: T ?
|
|
5692
|
+
left: T ? P : void 0,
|
|
5687
5693
|
zIndex: T ? 4 : 2,
|
|
5688
5694
|
paddingLeft: O === 0 ? "12px" : "",
|
|
5689
|
-
borderRight: a && !
|
|
5690
|
-
borderBottom: a ?
|
|
5691
|
-
boxShadow: a && T ?
|
|
5695
|
+
borderRight: a && !Le && !T ? me : void 0,
|
|
5696
|
+
borderBottom: a ? me : void 0,
|
|
5697
|
+
boxShadow: a && T ? de : void 0,
|
|
5692
5698
|
backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
|
|
5693
5699
|
textAlign: W.textAlign === "text-right" ? "right" : W.textAlign === "text-center" ? "center" : "left",
|
|
5694
5700
|
...S(O, W.width)
|
|
@@ -5705,7 +5711,7 @@ const co = 240, yn = ({
|
|
|
5705
5711
|
minWidth: 0
|
|
5706
5712
|
},
|
|
5707
5713
|
children: [
|
|
5708
|
-
W.headerTooltip ? /* @__PURE__ */ e(
|
|
5714
|
+
W.headerTooltip ? /* @__PURE__ */ e(We, { label: W.headerTooltip.content, position: "bottom", children: Pe }) : Pe,
|
|
5709
5715
|
W.filter && /* @__PURE__ */ e(
|
|
5710
5716
|
Co,
|
|
5711
5717
|
{
|
|
@@ -5739,7 +5745,7 @@ const co = 240, yn = ({
|
|
|
5739
5745
|
J && /* @__PURE__ */ e(
|
|
5740
5746
|
"div",
|
|
5741
5747
|
{
|
|
5742
|
-
onMouseDown: (at) =>
|
|
5748
|
+
onMouseDown: (at) => _(at, O),
|
|
5743
5749
|
onClick: (at) => at.stopPropagation(),
|
|
5744
5750
|
role: "separator",
|
|
5745
5751
|
"aria-orientation": "vertical",
|
|
@@ -5762,7 +5768,7 @@ const co = 240, yn = ({
|
|
|
5762
5768
|
`table-head-${O}`
|
|
5763
5769
|
);
|
|
5764
5770
|
}),
|
|
5765
|
-
|
|
5771
|
+
Y ? /* @__PURE__ */ e(
|
|
5766
5772
|
ut,
|
|
5767
5773
|
{
|
|
5768
5774
|
style: {
|
|
@@ -5771,63 +5777,63 @@ const co = 240, yn = ({
|
|
|
5771
5777
|
top: 0,
|
|
5772
5778
|
right: 0,
|
|
5773
5779
|
zIndex: 3,
|
|
5774
|
-
borderBottom: a ?
|
|
5775
|
-
boxShadow: a && v ?
|
|
5780
|
+
borderBottom: a ? me : void 0,
|
|
5781
|
+
boxShadow: a && v ? te : void 0
|
|
5776
5782
|
}
|
|
5777
5783
|
}
|
|
5778
5784
|
) : null
|
|
5779
5785
|
] })
|
|
5780
5786
|
}
|
|
5781
5787
|
),
|
|
5782
|
-
/* @__PURE__ */ e(rn, { children: l ? /* @__PURE__ */ e(
|
|
5788
|
+
/* @__PURE__ */ e(rn, { children: l ? /* @__PURE__ */ e(Te, { children: /* @__PURE__ */ e(Re, { colSpan: t.length + 1, children: /* @__PURE__ */ u(f, { direction: "column", style: { gap: "16px" }, children: [
|
|
5783
5789
|
/* @__PURE__ */ e(Ye, { variant: "list" }),
|
|
5784
5790
|
/* @__PURE__ */ e(Ye, { variant: "list" }),
|
|
5785
5791
|
/* @__PURE__ */ e(Ye, { variant: "list" }),
|
|
5786
5792
|
/* @__PURE__ */ e(Ye, { variant: "list" }),
|
|
5787
5793
|
/* @__PURE__ */ e(Ye, { variant: "list" })
|
|
5788
|
-
] }) }) }) : !(r != null && r.length) && y ? /* @__PURE__ */ e(
|
|
5789
|
-
|
|
5794
|
+
] }) }) }) : !(r != null && r.length) && y ? /* @__PURE__ */ e(Te, { children: /* @__PURE__ */ e(Re, { colSpan: t.length + 1, children: y }) }) : r == null ? void 0 : r.map((W, O) => /* @__PURE__ */ u(
|
|
5795
|
+
Te,
|
|
5790
5796
|
{
|
|
5791
5797
|
style: {
|
|
5792
5798
|
transition: "background-color 0.3s ease",
|
|
5793
5799
|
padding: 0,
|
|
5794
|
-
borderBottom: O === r.length - 1 &&
|
|
5800
|
+
borderBottom: O === r.length - 1 && ye ? void 0 : "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
5795
5801
|
},
|
|
5796
5802
|
onMouseEnter: (T) => {
|
|
5797
|
-
const
|
|
5798
|
-
|
|
5803
|
+
const P = T.currentTarget;
|
|
5804
|
+
P.style.backgroundColor = qr, Array.from(P.querySelectorAll("td")).forEach((J) => {
|
|
5799
5805
|
J.style.position === "sticky" && (J.style.backgroundColor = qr);
|
|
5800
5806
|
});
|
|
5801
5807
|
},
|
|
5802
5808
|
onMouseLeave: (T) => {
|
|
5803
|
-
const
|
|
5804
|
-
|
|
5809
|
+
const P = T.currentTarget;
|
|
5810
|
+
P.style.backgroundColor = "", Array.from(P.querySelectorAll("td")).forEach((J) => {
|
|
5805
5811
|
J.style.position === "sticky" && (J.style.backgroundColor = er);
|
|
5806
5812
|
});
|
|
5807
5813
|
},
|
|
5808
5814
|
children: [
|
|
5809
|
-
t.map((T,
|
|
5810
|
-
const J = T.render ? T.render(W, O, r) :
|
|
5815
|
+
t.map((T, P) => {
|
|
5816
|
+
const J = T.render ? T.render(W, O, r) : Ze(W, T.accessor), Ce = p > 0 && P < p, Le = xe[P] ?? 0, je = Qe[P] !== void 0, _e = Ce && P === p - 1;
|
|
5811
5817
|
return /* @__PURE__ */ e(
|
|
5812
|
-
|
|
5818
|
+
Re,
|
|
5813
5819
|
{
|
|
5814
5820
|
style: {
|
|
5815
5821
|
position: Ce ? "sticky" : void 0,
|
|
5816
|
-
left: Ce ?
|
|
5822
|
+
left: Ce ? Le : void 0,
|
|
5817
5823
|
zIndex: Ce ? 1 : void 0,
|
|
5818
5824
|
backgroundColor: Ce ? er : void 0,
|
|
5819
5825
|
transition: Ce ? "background-color 0.3s ease" : void 0,
|
|
5820
|
-
paddingLeft:
|
|
5826
|
+
paddingLeft: P === 0 ? "12px" : "",
|
|
5821
5827
|
whiteSpace: "nowrap",
|
|
5822
|
-
overflow:
|
|
5823
|
-
borderLeft: T.showBorderLeft ?
|
|
5824
|
-
borderRight: T.showBorderRight ?
|
|
5825
|
-
boxShadow:
|
|
5828
|
+
overflow: je ? "hidden" : void 0,
|
|
5829
|
+
borderLeft: T.showBorderLeft ? me : void 0,
|
|
5830
|
+
borderRight: T.showBorderRight ? me : void 0,
|
|
5831
|
+
boxShadow: _e ? de : void 0,
|
|
5826
5832
|
textAlign: T.textAlign === "text-right" ? "right" : T.textAlign === "text-center" ? "center" : "left",
|
|
5827
|
-
...S(
|
|
5833
|
+
...S(P, T.width)
|
|
5828
5834
|
},
|
|
5829
5835
|
children: typeof J == "string" ? /* @__PURE__ */ e(
|
|
5830
|
-
|
|
5836
|
+
w,
|
|
5831
5837
|
{
|
|
5832
5838
|
style: {
|
|
5833
5839
|
whiteSpace: "nowrap",
|
|
@@ -5839,20 +5845,20 @@ const co = 240, yn = ({
|
|
|
5839
5845
|
}
|
|
5840
5846
|
) : J
|
|
5841
5847
|
},
|
|
5842
|
-
`row-${O}-col-${
|
|
5848
|
+
`row-${O}-col-${P}`
|
|
5843
5849
|
);
|
|
5844
5850
|
}),
|
|
5845
|
-
|
|
5846
|
-
width:
|
|
5851
|
+
Y ? /* @__PURE__ */ e(Re, { style: {
|
|
5852
|
+
width: Fe,
|
|
5847
5853
|
position: "sticky",
|
|
5848
5854
|
right: 0,
|
|
5849
5855
|
zIndex: 1,
|
|
5850
5856
|
backgroundColor: er,
|
|
5851
|
-
boxShadow: v ?
|
|
5857
|
+
boxShadow: v ? te : void 0,
|
|
5852
5858
|
transition: "background-color 0.3s ease"
|
|
5853
5859
|
}, children: /* @__PURE__ */ e(ce, { direction: "row", align: "center", justify: "center", gap: "sm", children: B.map((T) => {
|
|
5854
|
-
const
|
|
5855
|
-
return T === "detail" && n && (d == null ? void 0 : d(W)) !== !1 ? /* @__PURE__ */ e(
|
|
5860
|
+
const P = O === r.length - 1 ? "top" : "bottom";
|
|
5861
|
+
return T === "detail" && n && (d == null ? void 0 : d(W)) !== !1 ? /* @__PURE__ */ e(We, { label: "Detail", position: P, children: /* @__PURE__ */ e(
|
|
5856
5862
|
H,
|
|
5857
5863
|
{
|
|
5858
5864
|
size: "xs",
|
|
@@ -5861,7 +5867,7 @@ const co = 240, yn = ({
|
|
|
5861
5867
|
onClick: () => n(W.id, W),
|
|
5862
5868
|
iconLeft: /* @__PURE__ */ e(E, { name: "DocumentClean", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
5863
5869
|
}
|
|
5864
|
-
) }, "detail") : T === "update" && o && (c == null ? void 0 : c(W)) !== !1 ? /* @__PURE__ */ e(
|
|
5870
|
+
) }, "detail") : T === "update" && o && (c == null ? void 0 : c(W)) !== !1 ? /* @__PURE__ */ e(We, { label: "Update", position: P, children: /* @__PURE__ */ e(
|
|
5865
5871
|
H,
|
|
5866
5872
|
{
|
|
5867
5873
|
size: "xs",
|
|
@@ -5870,7 +5876,7 @@ const co = 240, yn = ({
|
|
|
5870
5876
|
onClick: () => o(W),
|
|
5871
5877
|
iconLeft: /* @__PURE__ */ e(E, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
5872
5878
|
}
|
|
5873
|
-
) }, "update") : T === "delete" && i && (s == null ? void 0 : s(W)) !== !1 ? /* @__PURE__ */ e(
|
|
5879
|
+
) }, "update") : T === "delete" && i && (s == null ? void 0 : s(W)) !== !1 ? /* @__PURE__ */ e(We, { label: "Delete", position: P, children: /* @__PURE__ */ e(
|
|
5874
5880
|
H,
|
|
5875
5881
|
{
|
|
5876
5882
|
size: "xs",
|
|
@@ -5893,7 +5899,7 @@ const co = 240, yn = ({
|
|
|
5893
5899
|
footerProps: o
|
|
5894
5900
|
}) => {
|
|
5895
5901
|
var p;
|
|
5896
|
-
const i = se(null), [l, s] =
|
|
5902
|
+
const i = se(null), [l, s] = R(
|
|
5897
5903
|
(r == null ? void 0 : r.defaultFrozenCount) ?? 0
|
|
5898
5904
|
), c = (n == null ? void 0 : n.show) ?? !0, d = se(null), a = (p = r == null ? void 0 : r.pagination) == null ? void 0 : p.totalData;
|
|
5899
5905
|
typeof a == "number" && (d.current = a);
|
|
@@ -5935,7 +5941,7 @@ const co = 240, yn = ({
|
|
|
5935
5941
|
] });
|
|
5936
5942
|
};
|
|
5937
5943
|
function Fo(t) {
|
|
5938
|
-
return
|
|
5944
|
+
return Je(
|
|
5939
5945
|
t
|
|
5940
5946
|
);
|
|
5941
5947
|
}
|
|
@@ -5970,7 +5976,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
5970
5976
|
},
|
|
5971
5977
|
children: [
|
|
5972
5978
|
/* @__PURE__ */ e(E, { name: t, size: "sm", style: { color: l, flexShrink: 0 } }),
|
|
5973
|
-
/* @__PURE__ */ e(
|
|
5979
|
+
/* @__PURE__ */ e(w, { as: "span", style: { color: l }, children: r })
|
|
5974
5980
|
]
|
|
5975
5981
|
}
|
|
5976
5982
|
);
|
|
@@ -5985,7 +5991,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
5985
5991
|
onToggleFreeze: c,
|
|
5986
5992
|
onHide: d
|
|
5987
5993
|
}) => {
|
|
5988
|
-
const [a, m] =
|
|
5994
|
+
const [a, m] = R(!1), p = se(null), g = se(null), [b, B] = R(
|
|
5989
5995
|
{ top: 0, left: 0 }
|
|
5990
5996
|
);
|
|
5991
5997
|
U(() => {
|
|
@@ -6006,7 +6012,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6006
6012
|
const y = (k) => {
|
|
6007
6013
|
k(), m(!1);
|
|
6008
6014
|
};
|
|
6009
|
-
return /* @__PURE__ */ u(
|
|
6015
|
+
return /* @__PURE__ */ u(ie, { children: [
|
|
6010
6016
|
/* @__PURE__ */ e(
|
|
6011
6017
|
"button",
|
|
6012
6018
|
{
|
|
@@ -6054,7 +6060,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6054
6060
|
flexDirection: "column"
|
|
6055
6061
|
},
|
|
6056
6062
|
children: [
|
|
6057
|
-
r && /* @__PURE__ */ u(
|
|
6063
|
+
r && /* @__PURE__ */ u(ie, { children: [
|
|
6058
6064
|
/* @__PURE__ */ e(
|
|
6059
6065
|
Dt,
|
|
6060
6066
|
{
|
|
@@ -6170,12 +6176,12 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6170
6176
|
groupSeparator: y,
|
|
6171
6177
|
summary: k,
|
|
6172
6178
|
emptyState: L,
|
|
6173
|
-
loading:
|
|
6174
|
-
loadingRows:
|
|
6179
|
+
loading: z = !1,
|
|
6180
|
+
loadingRows: D = 8,
|
|
6175
6181
|
rowActions: C
|
|
6176
6182
|
}) => {
|
|
6177
6183
|
Wo();
|
|
6178
|
-
const I = !ke(B) && b !== "scroll", v = !!(C != null && C.length), [M, N] =
|
|
6184
|
+
const I = !ke(B) && b !== "scroll", v = !!(C != null && C.length), [M, N] = R(null);
|
|
6179
6185
|
U(() => {
|
|
6180
6186
|
if (!M) return;
|
|
6181
6187
|
const x = () => N(null), F = setTimeout(() => document.addEventListener("click", x), 0);
|
|
@@ -6183,76 +6189,76 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6183
6189
|
clearTimeout(F), document.removeEventListener("click", x);
|
|
6184
6190
|
};
|
|
6185
6191
|
}, [M]);
|
|
6186
|
-
const [$,
|
|
6192
|
+
const [$, j] = R(
|
|
6187
6193
|
() => /* @__PURE__ */ new Set()
|
|
6188
|
-
),
|
|
6189
|
-
c == null || c(x),
|
|
6190
|
-
},
|
|
6194
|
+
), X = s !== void 0, [le, pe] = R({}), ne = s ?? le, he = (x) => {
|
|
6195
|
+
c == null || c(x), X || pe(x);
|
|
6196
|
+
}, Y = a !== void 0, [K, me] = R(
|
|
6191
6197
|
m ?? null
|
|
6192
|
-
),
|
|
6193
|
-
p == null || p(x),
|
|
6194
|
-
}, { headerGroups:
|
|
6195
|
-
var
|
|
6196
|
-
const x = new Set(
|
|
6197
|
-
var
|
|
6198
|
-
if ((
|
|
6199
|
-
const dt =
|
|
6200
|
-
return { col:
|
|
6198
|
+
), te = Y ? a ?? null : K, de = !p, Fe = (x) => {
|
|
6199
|
+
p == null || p(x), Y || me(x);
|
|
6200
|
+
}, { headerGroups: Ze, leafColumns: ye, hasGroups: Ee } = ge(() => {
|
|
6201
|
+
var ve;
|
|
6202
|
+
const x = new Set(ne.hidden ?? []), F = (ee, fe) => ee.key ?? (typeof ee.accessor == "string" ? ee.accessor : `col-${fe}`), A = t.map((ee, fe) => {
|
|
6203
|
+
var Ge;
|
|
6204
|
+
if ((Ge = ee.children) != null && Ge.length) {
|
|
6205
|
+
const dt = ee.children.map((it, Gt) => ({ col: it, key: F(it, `${fe}-${Gt}`) })).filter((it) => !x.has(it.key));
|
|
6206
|
+
return { col: ee, key: ee.key ?? `group-${fe}`, isGroup: !0, leaves: dt };
|
|
6201
6207
|
}
|
|
6202
|
-
const
|
|
6208
|
+
const Me = { col: ee, key: F(ee, `${fe}`) };
|
|
6203
6209
|
return {
|
|
6204
|
-
col:
|
|
6205
|
-
key:
|
|
6210
|
+
col: ee,
|
|
6211
|
+
key: Me.key,
|
|
6206
6212
|
isGroup: !1,
|
|
6207
|
-
leaves: x.has(
|
|
6213
|
+
leaves: x.has(Me.key) ? [] : [Me]
|
|
6208
6214
|
};
|
|
6209
|
-
}).filter((
|
|
6210
|
-
let ue =
|
|
6211
|
-
if (!G && ((
|
|
6212
|
-
const
|
|
6215
|
+
}).filter((ee) => ee.leaves.length > 0), G = A.some((ee) => ee.isGroup);
|
|
6216
|
+
let ue = A.flatMap((ee) => ee.leaves);
|
|
6217
|
+
if (!G && ((ve = ne.order) != null && ve.length)) {
|
|
6218
|
+
const ee = new Map(ne.order.map((fe, Me) => [fe, Me]));
|
|
6213
6219
|
ue = [...ue].sort(
|
|
6214
|
-
(fe,
|
|
6220
|
+
(fe, Me) => (ee.get(fe.key) ?? 1 / 0) - (ee.get(Me.key) ?? 1 / 0)
|
|
6215
6221
|
);
|
|
6216
6222
|
}
|
|
6217
|
-
return { headerGroups:
|
|
6218
|
-
}, [t,
|
|
6219
|
-
() => new Map(
|
|
6220
|
-
[
|
|
6221
|
-
),
|
|
6222
|
-
const
|
|
6223
|
-
return
|
|
6224
|
-
},
|
|
6225
|
-
if (!
|
|
6226
|
-
const x =
|
|
6223
|
+
return { headerGroups: A, leafColumns: ue, hasGroups: G };
|
|
6224
|
+
}, [t, ne]), Oe = ge(
|
|
6225
|
+
() => new Map(ye.map((x, F) => [x.key, F])),
|
|
6226
|
+
[ye]
|
|
6227
|
+
), xe = ye.map((x) => x.key).join("|"), $e = (x, F) => {
|
|
6228
|
+
const A = x.sortKey ?? (typeof x.accessor == "string" ? x.accessor : void 0);
|
|
6229
|
+
return A ? F[A] : void 0;
|
|
6230
|
+
}, Qe = (x) => x.sortable ?? (!!x.sortKey || typeof x.accessor == "string"), be = ge(() => {
|
|
6231
|
+
if (!de || !te) return r;
|
|
6232
|
+
const x = ye.find((A) => A.key === te.key);
|
|
6227
6233
|
if (!x) return r;
|
|
6228
|
-
const F =
|
|
6234
|
+
const F = te.direction === "asc" ? 1 : -1;
|
|
6229
6235
|
return [...r].sort(
|
|
6230
|
-
(
|
|
6236
|
+
(A, G) => zo($e(x.col, A), $e(x.col, G)) * F
|
|
6231
6237
|
);
|
|
6232
|
-
}, [r,
|
|
6238
|
+
}, [r, de, te, ye]), Ie = !Ee, et = !!l && Ie, [S, Z] = Hn(l ?? ""), _ = et ? S : void 0, W = se(null), [O, T] = R();
|
|
6233
6239
|
lt(() => {
|
|
6234
6240
|
T(void 0);
|
|
6235
|
-
}, [
|
|
6236
|
-
if (!
|
|
6241
|
+
}, [xe]), lt(() => {
|
|
6242
|
+
if (!Ie || O || !W.current) return;
|
|
6237
6243
|
const x = W.current.querySelectorAll("th.sa-tl-leaf");
|
|
6238
6244
|
T(Array.from(x).map((F) => F.offsetWidth));
|
|
6239
|
-
}, [O,
|
|
6240
|
-
const [
|
|
6245
|
+
}, [O, Ie]);
|
|
6246
|
+
const [P, J] = R(0);
|
|
6241
6247
|
lt(() => {
|
|
6242
|
-
if (!
|
|
6248
|
+
if (!Ee || !W.current) return;
|
|
6243
6249
|
const x = W.current.querySelector(":scope > tr");
|
|
6244
6250
|
x && J(x.offsetHeight);
|
|
6245
|
-
}, [
|
|
6251
|
+
}, [Ee, xe]);
|
|
6246
6252
|
const Ce = (x, F) => {
|
|
6247
|
-
if ((
|
|
6253
|
+
if ((_ == null ? void 0 : _[F]) != null) return _[F];
|
|
6248
6254
|
if (x.width != null) return x.width;
|
|
6249
6255
|
if ((O == null ? void 0 : O[F]) != null) return O[F];
|
|
6250
|
-
},
|
|
6256
|
+
}, Le = (x, F) => typeof x.width == "number" ? x.width : O == null ? void 0 : O[F], je = ne.frozenKey && !Ee ? ye.findIndex((x) => x.key === ne.frozenKey) : -1, _e = (x) => x <= je, He = (x) => {
|
|
6251
6257
|
if (!O) return 0;
|
|
6252
6258
|
let F = 0;
|
|
6253
|
-
for (let
|
|
6259
|
+
for (let A = 0; A < x; A++) F += O[A] ?? 0;
|
|
6254
6260
|
return F;
|
|
6255
|
-
}, tt = se(null), [rt, nt] =
|
|
6261
|
+
}, tt = se(null), [rt, nt] = R("100vh");
|
|
6256
6262
|
lt(() => {
|
|
6257
6263
|
if (g !== void 0) return;
|
|
6258
6264
|
const x = () => {
|
|
@@ -6263,27 +6269,27 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6263
6269
|
};
|
|
6264
6270
|
return x(), window.addEventListener("resize", x), () => window.removeEventListener("resize", x);
|
|
6265
6271
|
}, [g]);
|
|
6266
|
-
const
|
|
6267
|
-
|
|
6268
|
-
|
|
6272
|
+
const Pe = (x, F) => n ? n(x, F) : F, ct = (x, F, A) => x.render ? x.render(F, A, be) : Bo(F, x.accessor), st = ye.length + (v ? 1 : 0), at = ["80%", "55%", "70%", "45%", "90%", "60%"], vn = (x, F) => at[(x * 7 + F * 3) % at.length], Cn = (x, F) => /* @__PURE__ */ e(Ye, { height: 14, width: vn(x, F), borderRadius: "rounded-sm" }), wn = Array.from({ length: D }, (x, F) => /* @__PURE__ */ u(Te, { children: [
|
|
6273
|
+
ye.map(({ col: A, key: G }, ue) => /* @__PURE__ */ e(
|
|
6274
|
+
Re,
|
|
6269
6275
|
{
|
|
6270
|
-
style: { textAlign: Ft(
|
|
6276
|
+
style: { textAlign: Ft(A.align) },
|
|
6271
6277
|
children: Cn(F, ue)
|
|
6272
6278
|
},
|
|
6273
6279
|
`sa-tl-sk-${F}-${G}`
|
|
6274
6280
|
)),
|
|
6275
|
-
v && /* @__PURE__ */ e(
|
|
6281
|
+
v && /* @__PURE__ */ e(Re, { style: { width: 1, padding: 0, border: "none" } })
|
|
6276
6282
|
] }, `sa-tl-sk-${F}`)), Dn = (x, F) => {
|
|
6277
6283
|
F || he({
|
|
6278
|
-
...
|
|
6279
|
-
hidden: [...
|
|
6284
|
+
...ne,
|
|
6285
|
+
hidden: [...ne.hidden ?? [], x]
|
|
6280
6286
|
});
|
|
6281
6287
|
}, kn = (x) => he({
|
|
6282
|
-
...
|
|
6283
|
-
frozenKey:
|
|
6288
|
+
...ne,
|
|
6289
|
+
frozenKey: ne.frozenKey === x ? void 0 : x
|
|
6284
6290
|
}), bt = (x) => (C ?? []).filter((F) => {
|
|
6285
|
-
var
|
|
6286
|
-
return !((
|
|
6291
|
+
var A;
|
|
6292
|
+
return !((A = F.hidden) != null && A.call(F, x));
|
|
6287
6293
|
}), kr = {
|
|
6288
6294
|
position: "absolute",
|
|
6289
6295
|
right: 0,
|
|
@@ -6295,40 +6301,40 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6295
6301
|
paddingRight: 16,
|
|
6296
6302
|
paddingLeft: 40,
|
|
6297
6303
|
background: "linear-gradient(to right, transparent, var(--sa-background-primary-inverse, #f8f8f8) 40px)"
|
|
6298
|
-
}, vt = (x, F,
|
|
6299
|
-
var
|
|
6300
|
-
const ue = (
|
|
6304
|
+
}, vt = (x, F, A, G) => {
|
|
6305
|
+
var Ge;
|
|
6306
|
+
const ue = (Ge = x.disabled) == null ? void 0 : Ge.call(x, F), ve = (G == null ? void 0 : G.showLabel) ?? x.showLabel, ee = (G == null ? void 0 : G.size) ?? "xs", fe = /* @__PURE__ */ e(
|
|
6301
6307
|
H,
|
|
6302
6308
|
{
|
|
6303
|
-
size:
|
|
6309
|
+
size: ee,
|
|
6304
6310
|
variant: x.variant ?? "tertiary",
|
|
6305
6311
|
tone: x.tone ?? "neutral",
|
|
6306
6312
|
disabled: ue,
|
|
6307
|
-
onClick: () => x.onClick(F,
|
|
6313
|
+
onClick: () => x.onClick(F, A),
|
|
6308
6314
|
iconLeft: x.icon ? /* @__PURE__ */ e(E, { name: x.icon, size: "sm" }) : void 0,
|
|
6309
|
-
children:
|
|
6315
|
+
children: ve && x.label
|
|
6310
6316
|
}
|
|
6311
|
-
),
|
|
6312
|
-
return
|
|
6317
|
+
), Me = x.tooltip;
|
|
6318
|
+
return Me ? /* @__PURE__ */ e(We, { label: Me, position: "top-end", children: fe }) : fe;
|
|
6313
6319
|
}, Sn = (x, F) => {
|
|
6314
|
-
const
|
|
6315
|
-
if (!
|
|
6316
|
-
if (
|
|
6317
|
-
const ue =
|
|
6320
|
+
const A = bt(x);
|
|
6321
|
+
if (!A.length) return null;
|
|
6322
|
+
if (A.length > 5) {
|
|
6323
|
+
const ue = Pe(x, F), ve = (M == null ? void 0 : M.rowKey) === ue;
|
|
6318
6324
|
return /* @__PURE__ */ e(
|
|
6319
6325
|
"div",
|
|
6320
6326
|
{
|
|
6321
6327
|
className: "sa-tl-row-actions",
|
|
6322
6328
|
style: kr,
|
|
6323
|
-
onClick: (
|
|
6324
|
-
children: /* @__PURE__ */ e(
|
|
6329
|
+
onClick: (ee) => ee.stopPropagation(),
|
|
6330
|
+
children: /* @__PURE__ */ e(We, { label: "Aksi lainnya", position: "top", children: /* @__PURE__ */ e(
|
|
6325
6331
|
H,
|
|
6326
6332
|
{
|
|
6327
6333
|
size: "xs",
|
|
6328
6334
|
variant: "tertiary",
|
|
6329
|
-
onClick: (
|
|
6330
|
-
const fe =
|
|
6331
|
-
N(
|
|
6335
|
+
onClick: (ee) => {
|
|
6336
|
+
const fe = ee.currentTarget.getBoundingClientRect();
|
|
6337
|
+
N(ve ? null : {
|
|
6332
6338
|
rowKey: ue,
|
|
6333
6339
|
top: fe.bottom + 4,
|
|
6334
6340
|
right: window.innerWidth - fe.right
|
|
@@ -6340,28 +6346,28 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6340
6346
|
}
|
|
6341
6347
|
);
|
|
6342
6348
|
}
|
|
6343
|
-
return /* @__PURE__ */ e("div", { className: "sa-tl-row-actions", style: kr, children:
|
|
6349
|
+
return /* @__PURE__ */ e("div", { className: "sa-tl-row-actions", style: kr, children: A.map((ue) => /* @__PURE__ */ e(Ke.Fragment, { children: vt(ue, x, F) }, ue.key)) });
|
|
6344
6350
|
}, Fn = (x, F) => {
|
|
6345
|
-
const
|
|
6346
|
-
return
|
|
6351
|
+
const A = bt(x);
|
|
6352
|
+
return A.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 6, flexWrap: "wrap", paddingTop: 8, marginTop: 8, borderTop: kt }, children: A.map((G) => /* @__PURE__ */ e(Ke.Fragment, { children: vt(G, x, F, { showLabel: !0, size: "sm" }) }, G.key)) }) : null;
|
|
6347
6353
|
}, En = (x, F) => {
|
|
6348
|
-
const
|
|
6349
|
-
return
|
|
6354
|
+
const A = bt(x);
|
|
6355
|
+
return A.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4, paddingRight: 8, flexShrink: 0 }, children: A.map((G) => /* @__PURE__ */ e(Ke.Fragment, { children: vt(G, x, F, { showLabel: !1 }) }, G.key)) }) : null;
|
|
6350
6356
|
}, $t = (x, F) => {
|
|
6351
|
-
const { col:
|
|
6357
|
+
const { col: A, key: G } = x, ue = Oe.get(G) ?? 0, ve = _e(ue), ee = ve && ue === je, fe = (te == null ? void 0 : te.key) === G ? te.direction : null, Me = d && !A.disableMenu ? /* @__PURE__ */ e(
|
|
6352
6358
|
Lo,
|
|
6353
6359
|
{
|
|
6354
|
-
active: !!fe ||
|
|
6355
|
-
canSort:
|
|
6356
|
-
canHide: !
|
|
6360
|
+
active: !!fe || ve,
|
|
6361
|
+
canSort: Qe(A),
|
|
6362
|
+
canHide: !A.locked,
|
|
6357
6363
|
sortDir: fe,
|
|
6358
|
-
frozen:
|
|
6359
|
-
onSort: (Gt) =>
|
|
6360
|
-
onClearSort: () =>
|
|
6364
|
+
frozen: ve,
|
|
6365
|
+
onSort: (Gt) => Fe({ key: G, direction: Gt }),
|
|
6366
|
+
onClearSort: () => Fe(null),
|
|
6361
6367
|
onToggleFreeze: () => kn(G),
|
|
6362
|
-
onHide: () => Dn(G,
|
|
6368
|
+
onHide: () => Dn(G, A.locked)
|
|
6363
6369
|
}
|
|
6364
|
-
) : null,
|
|
6370
|
+
) : null, Ge = A.align === "right", dt = A.align === "right" ? "flex-end" : A.align === "center" ? "center" : "flex-start", it = /* @__PURE__ */ u(
|
|
6365
6371
|
"span",
|
|
6366
6372
|
{
|
|
6367
6373
|
style: {
|
|
@@ -6374,28 +6380,28 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6374
6380
|
overflow: "hidden"
|
|
6375
6381
|
},
|
|
6376
6382
|
children: [
|
|
6377
|
-
|
|
6378
|
-
/* @__PURE__ */ e("span", { style: St, children:
|
|
6383
|
+
A.icon && /* @__PURE__ */ e(E, { name: A.icon, size: "sm", style: { flexShrink: 0 } }),
|
|
6384
|
+
/* @__PURE__ */ e("span", { style: St, children: A.title })
|
|
6379
6385
|
]
|
|
6380
6386
|
}
|
|
6381
6387
|
);
|
|
6382
6388
|
return /* @__PURE__ */ e(
|
|
6383
6389
|
ut,
|
|
6384
6390
|
{
|
|
6385
|
-
className: `sa-tl-leaf${
|
|
6391
|
+
className: `sa-tl-leaf${ve ? " sa-tl-frozen" : ""}`,
|
|
6386
6392
|
rowSpan: F == null ? void 0 : F.rowSpan,
|
|
6387
|
-
minWidth:
|
|
6388
|
-
resizable:
|
|
6389
|
-
defaultWidth:
|
|
6393
|
+
minWidth: A.minWidth,
|
|
6394
|
+
resizable: Ie ? A.resizable : !1,
|
|
6395
|
+
defaultWidth: Le(A, ue),
|
|
6390
6396
|
style: {
|
|
6391
|
-
textAlign: Ft(
|
|
6392
|
-
width: Ce(
|
|
6397
|
+
textAlign: Ft(A.align),
|
|
6398
|
+
width: Ce(A, ue),
|
|
6393
6399
|
position: "sticky",
|
|
6394
6400
|
top: (F == null ? void 0 : F.top) ?? 0,
|
|
6395
|
-
left:
|
|
6396
|
-
zIndex:
|
|
6401
|
+
left: ve ? He(ue) : void 0,
|
|
6402
|
+
zIndex: ve ? 3 : 2,
|
|
6397
6403
|
backgroundColor: mt,
|
|
6398
|
-
boxShadow:
|
|
6404
|
+
boxShadow: ee ? Jr : void 0
|
|
6399
6405
|
},
|
|
6400
6406
|
children: /* @__PURE__ */ e(
|
|
6401
6407
|
"div",
|
|
@@ -6406,24 +6412,24 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6406
6412
|
gap: 6,
|
|
6407
6413
|
width: "100%"
|
|
6408
6414
|
},
|
|
6409
|
-
children:
|
|
6410
|
-
|
|
6415
|
+
children: Ge ? /* @__PURE__ */ u(ie, { children: [
|
|
6416
|
+
Me,
|
|
6411
6417
|
it
|
|
6412
|
-
] }) : /* @__PURE__ */ u(
|
|
6418
|
+
] }) : /* @__PURE__ */ u(ie, { children: [
|
|
6413
6419
|
it,
|
|
6414
|
-
|
|
6420
|
+
Me
|
|
6415
6421
|
] })
|
|
6416
6422
|
}
|
|
6417
6423
|
)
|
|
6418
6424
|
},
|
|
6419
6425
|
`th-${G}`
|
|
6420
6426
|
);
|
|
6421
|
-
}, jt =
|
|
6422
|
-
const
|
|
6423
|
-
return
|
|
6424
|
-
}), Sr = (x, F) => Ln.map(({ col:
|
|
6425
|
-
const ue = ct(
|
|
6426
|
-
|
|
6427
|
+
}, jt = ye.filter((x) => !x.col.hideOnMobile), _t = jt.find((x) => x.col.primary) ?? jt[0], Ln = jt.filter((x) => x !== _t), Mn = (x) => j((F) => {
|
|
6428
|
+
const A = new Set(F);
|
|
6429
|
+
return A.has(x) ? A.delete(x) : A.add(x), A;
|
|
6430
|
+
}), Sr = (x, F) => Ln.map(({ col: A, key: G }) => {
|
|
6431
|
+
const ue = ct(A, x, F), ve = typeof ue == "string" || typeof ue == "number" ? /* @__PURE__ */ e(
|
|
6432
|
+
w,
|
|
6427
6433
|
{
|
|
6428
6434
|
style: {
|
|
6429
6435
|
minWidth: 0,
|
|
@@ -6455,28 +6461,28 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6455
6461
|
alignItems: "baseline"
|
|
6456
6462
|
},
|
|
6457
6463
|
children: [
|
|
6458
|
-
typeof
|
|
6459
|
-
|
|
6464
|
+
typeof A.title == "string" ? /* @__PURE__ */ e(
|
|
6465
|
+
w,
|
|
6460
6466
|
{
|
|
6461
6467
|
color: "subtle",
|
|
6462
6468
|
fontWeight: "medium",
|
|
6463
6469
|
style: { color: Mo, flexShrink: 0 },
|
|
6464
|
-
children:
|
|
6470
|
+
children: A.title
|
|
6465
6471
|
}
|
|
6466
|
-
) : /* @__PURE__ */ e("div", { style: { flexShrink: 0 }, children:
|
|
6467
|
-
|
|
6472
|
+
) : /* @__PURE__ */ e("div", { style: { flexShrink: 0 }, children: A.title }),
|
|
6473
|
+
ve
|
|
6468
6474
|
]
|
|
6469
6475
|
},
|
|
6470
6476
|
G
|
|
6471
6477
|
);
|
|
6472
6478
|
}), Fr = (x, F) => {
|
|
6473
|
-
const
|
|
6474
|
-
return typeof
|
|
6479
|
+
const A = _t ? ct(_t.col, x, F) : null;
|
|
6480
|
+
return typeof A == "string" || typeof A == "number" ? /* @__PURE__ */ e(w, { as: "span", style: St, children: A }) : /* @__PURE__ */ e("span", { style: St, children: A });
|
|
6475
6481
|
}, Wn = /* @__PURE__ */ e(
|
|
6476
6482
|
f,
|
|
6477
6483
|
{
|
|
6478
6484
|
style: { display: "flex", flexDirection: "column", gap: 8, padding: 8 },
|
|
6479
|
-
children: Array.from({ length:
|
|
6485
|
+
children: Array.from({ length: D }, (x, F) => /* @__PURE__ */ u(
|
|
6480
6486
|
f,
|
|
6481
6487
|
{
|
|
6482
6488
|
style: {
|
|
@@ -6509,15 +6515,15 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6509
6515
|
},
|
|
6510
6516
|
children: L == null ? void 0 : L.content
|
|
6511
6517
|
}
|
|
6512
|
-
), Bn =
|
|
6513
|
-
const
|
|
6518
|
+
), Bn = z ? Wn : be.length === 0 ? Er : b === "expand" ? /* @__PURE__ */ e(f, { style: { display: "flex", flexDirection: "column" }, children: be.map((x, F) => {
|
|
6519
|
+
const A = Pe(x, F), G = $.has(A);
|
|
6514
6520
|
return /* @__PURE__ */ u("div", { style: { borderBottom: kt }, children: [
|
|
6515
6521
|
/* @__PURE__ */ u("div", { style: { display: "flex", alignItems: "center" }, children: [
|
|
6516
6522
|
/* @__PURE__ */ u(
|
|
6517
6523
|
"button",
|
|
6518
6524
|
{
|
|
6519
6525
|
type: "button",
|
|
6520
|
-
onClick: () => Mn(
|
|
6526
|
+
onClick: () => Mn(A),
|
|
6521
6527
|
style: {
|
|
6522
6528
|
flex: 1,
|
|
6523
6529
|
minWidth: 0,
|
|
@@ -6560,12 +6566,12 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6560
6566
|
children: Sr(x, F)
|
|
6561
6567
|
}
|
|
6562
6568
|
)
|
|
6563
|
-
] },
|
|
6569
|
+
] }, A);
|
|
6564
6570
|
}) }) : /* @__PURE__ */ e(
|
|
6565
6571
|
f,
|
|
6566
6572
|
{
|
|
6567
6573
|
style: { display: "flex", flexDirection: "column", gap: 8, padding: 8 },
|
|
6568
|
-
children:
|
|
6574
|
+
children: be.map((x, F) => /* @__PURE__ */ u(
|
|
6569
6575
|
f,
|
|
6570
6576
|
{
|
|
6571
6577
|
style: {
|
|
@@ -6582,7 +6588,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6582
6588
|
v && Fn(x, F)
|
|
6583
6589
|
]
|
|
6584
6590
|
},
|
|
6585
|
-
|
|
6591
|
+
Pe(x, F)
|
|
6586
6592
|
))
|
|
6587
6593
|
}
|
|
6588
6594
|
), zn = /* @__PURE__ */ u(
|
|
@@ -6591,12 +6597,12 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6591
6597
|
className: "sa-table-layout",
|
|
6592
6598
|
fullWidth: !0,
|
|
6593
6599
|
size: o,
|
|
6594
|
-
resizable: i &&
|
|
6600
|
+
resizable: i && Ie && O !== void 0,
|
|
6595
6601
|
onWidthsChange: et ? Z : void 0,
|
|
6596
6602
|
children: [
|
|
6597
|
-
/* @__PURE__ */ e(tn, { ref: W, children:
|
|
6598
|
-
/* @__PURE__ */ u(
|
|
6599
|
-
|
|
6603
|
+
/* @__PURE__ */ e(tn, { ref: W, children: Ee ? /* @__PURE__ */ u(ie, { children: [
|
|
6604
|
+
/* @__PURE__ */ u(Te, { children: [
|
|
6605
|
+
Ze.map(
|
|
6600
6606
|
(x) => x.isGroup ? /* @__PURE__ */ e(
|
|
6601
6607
|
ut,
|
|
6602
6608
|
{
|
|
@@ -6630,11 +6636,11 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6630
6636
|
}
|
|
6631
6637
|
)
|
|
6632
6638
|
] }),
|
|
6633
|
-
/* @__PURE__ */ e(
|
|
6634
|
-
(x) => x.isGroup ? x.leaves.map((F) => $t(F, { top:
|
|
6639
|
+
/* @__PURE__ */ e(Te, { children: Ze.flatMap(
|
|
6640
|
+
(x) => x.isGroup ? x.leaves.map((F) => $t(F, { top: P })) : []
|
|
6635
6641
|
) })
|
|
6636
|
-
] }) : /* @__PURE__ */ u(
|
|
6637
|
-
|
|
6642
|
+
] }) : /* @__PURE__ */ u(Te, { children: [
|
|
6643
|
+
ye.map((x) => $t(x)),
|
|
6638
6644
|
v && /* @__PURE__ */ e(
|
|
6639
6645
|
ut,
|
|
6640
6646
|
{
|
|
@@ -6651,38 +6657,38 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6651
6657
|
}
|
|
6652
6658
|
)
|
|
6653
6659
|
] }) }),
|
|
6654
|
-
/* @__PURE__ */ e(rn, { children:
|
|
6655
|
-
|
|
6656
|
-
const
|
|
6660
|
+
/* @__PURE__ */ e(rn, { children: z ? wn : be.length === 0 ? /* @__PURE__ */ e(Te, { children: /* @__PURE__ */ e(Re, { colSpan: st, children: Er }) }) : /* @__PURE__ */ u(ie, { children: [
|
|
6661
|
+
be.map((x, F) => {
|
|
6662
|
+
const A = y == null ? void 0 : y(
|
|
6657
6663
|
x,
|
|
6658
6664
|
F,
|
|
6659
|
-
F > 0 ?
|
|
6665
|
+
F > 0 ? be[F - 1] : void 0
|
|
6660
6666
|
);
|
|
6661
6667
|
return /* @__PURE__ */ u(Ke.Fragment, { children: [
|
|
6662
|
-
|
|
6663
|
-
/* @__PURE__ */ u(
|
|
6664
|
-
|
|
6668
|
+
A != null && A !== !1 && /* @__PURE__ */ e(Te, { children: /* @__PURE__ */ e(Re, { colSpan: st, style: { backgroundColor: mt }, children: A }) }),
|
|
6669
|
+
/* @__PURE__ */ u(Te, { children: [
|
|
6670
|
+
ye.map(({ col: G, key: ue }, ve) => {
|
|
6665
6671
|
var dt;
|
|
6666
|
-
const
|
|
6667
|
-
if (
|
|
6668
|
-
const fe =
|
|
6672
|
+
const ee = (dt = G.cellProps) == null ? void 0 : dt.call(G, x, F, be);
|
|
6673
|
+
if (ee != null && ee.hidden) return null;
|
|
6674
|
+
const fe = _e(ve), Me = fe && ve === je, Ge = ct(G, x, F);
|
|
6669
6675
|
return /* @__PURE__ */ e(
|
|
6670
|
-
|
|
6676
|
+
Re,
|
|
6671
6677
|
{
|
|
6672
6678
|
className: fe ? "sa-tl-frozen" : void 0,
|
|
6673
|
-
colSpan:
|
|
6674
|
-
rowSpan:
|
|
6679
|
+
colSpan: ee == null ? void 0 : ee.colSpan,
|
|
6680
|
+
rowSpan: ee == null ? void 0 : ee.rowSpan,
|
|
6675
6681
|
style: {
|
|
6676
6682
|
textAlign: Ft(G.align),
|
|
6677
|
-
width: Ce(G,
|
|
6683
|
+
width: Ce(G, ve),
|
|
6678
6684
|
minWidth: G.minWidth,
|
|
6679
6685
|
position: fe ? "sticky" : void 0,
|
|
6680
|
-
left: fe ?
|
|
6686
|
+
left: fe ? He(ve) : void 0,
|
|
6681
6687
|
zIndex: fe ? 1 : void 0,
|
|
6682
|
-
boxShadow:
|
|
6688
|
+
boxShadow: Me ? Jr : void 0
|
|
6683
6689
|
},
|
|
6684
|
-
children: typeof
|
|
6685
|
-
|
|
6690
|
+
children: typeof Ge == "string" ? /* @__PURE__ */ e(
|
|
6691
|
+
w,
|
|
6686
6692
|
{
|
|
6687
6693
|
style: {
|
|
6688
6694
|
whiteSpace: "nowrap",
|
|
@@ -6690,15 +6696,15 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6690
6696
|
textOverflow: "ellipsis",
|
|
6691
6697
|
textAlign: Ft(G.align)
|
|
6692
6698
|
},
|
|
6693
|
-
children:
|
|
6699
|
+
children: Ge
|
|
6694
6700
|
}
|
|
6695
|
-
) :
|
|
6701
|
+
) : Ge
|
|
6696
6702
|
},
|
|
6697
6703
|
`tl-cell-${F}-${ue}`
|
|
6698
6704
|
);
|
|
6699
6705
|
}),
|
|
6700
6706
|
v && /* @__PURE__ */ e(
|
|
6701
|
-
|
|
6707
|
+
Re,
|
|
6702
6708
|
{
|
|
6703
6709
|
style: {
|
|
6704
6710
|
position: "sticky",
|
|
@@ -6713,14 +6719,14 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6713
6719
|
}
|
|
6714
6720
|
)
|
|
6715
6721
|
] })
|
|
6716
|
-
] },
|
|
6722
|
+
] }, Pe(x, F));
|
|
6717
6723
|
}),
|
|
6718
|
-
k != null && /* @__PURE__ */ e(
|
|
6724
|
+
k != null && /* @__PURE__ */ e(Te, { children: /* @__PURE__ */ e(Re, { colSpan: st, children: k }) })
|
|
6719
6725
|
] }) })
|
|
6720
6726
|
]
|
|
6721
6727
|
}
|
|
6722
|
-
), Pt = M ?
|
|
6723
|
-
return /* @__PURE__ */ u(
|
|
6728
|
+
), Pt = M ? be.findIndex((x, F) => Pe(x, F) === M.rowKey) : -1, Zt = Pt >= 0 ? be[Pt] : null;
|
|
6729
|
+
return /* @__PURE__ */ u(ie, { children: [
|
|
6724
6730
|
/* @__PURE__ */ e(
|
|
6725
6731
|
f,
|
|
6726
6732
|
{
|
|
@@ -6752,48 +6758,48 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6752
6758
|
paramKeys: l,
|
|
6753
6759
|
scopeId: s,
|
|
6754
6760
|
storage: c = fn
|
|
6755
|
-
} = t, { searchParams: d, setSearchParams: a, searchQueries: m } =
|
|
6761
|
+
} = t, { searchParams: d, setSearchParams: a, searchQueries: m } = Ve(), p = d.toString(), g = s ? xt.tableSort(s) : void 0, b = se(!1);
|
|
6756
6762
|
U(() => {
|
|
6757
6763
|
if (b.current || (b.current = !0, !g) || d.has(r) || d.has(n))
|
|
6758
6764
|
return;
|
|
6759
|
-
const
|
|
6760
|
-
!(
|
|
6765
|
+
const D = c.get(g);
|
|
6766
|
+
!(D != null && D.key) || !rr(D.direction) || a({
|
|
6761
6767
|
...Object.fromEntries(d.entries()),
|
|
6762
|
-
[r]:
|
|
6763
|
-
[n]:
|
|
6768
|
+
[r]: D.key,
|
|
6769
|
+
[n]: D.direction
|
|
6764
6770
|
});
|
|
6765
6771
|
}, []);
|
|
6766
6772
|
const B = ge(() => {
|
|
6767
|
-
const
|
|
6768
|
-
return
|
|
6773
|
+
const D = d.get(r), C = d.get(n);
|
|
6774
|
+
return D && rr(C) ? { key: D, direction: C } : i;
|
|
6769
6775
|
}, [p, r, n, i]);
|
|
6770
6776
|
U(() => {
|
|
6771
6777
|
if (!g) return;
|
|
6772
|
-
const
|
|
6773
|
-
|
|
6778
|
+
const D = d.get(r), C = d.get(n);
|
|
6779
|
+
D && rr(C) ? c.set(g, { key: D, direction: C }) : c.remove(g);
|
|
6774
6780
|
}, [p, g, r, n, c]);
|
|
6775
6781
|
const y = (l == null ? void 0 : l.sortBy) ?? "sortBy", k = (l == null ? void 0 : l.sortOrder) ?? "sortOrder", L = ge(() => B ? {
|
|
6776
6782
|
[y]: B.key,
|
|
6777
6783
|
[k]: B.direction
|
|
6778
|
-
} : {}, [B, y, k]),
|
|
6779
|
-
(
|
|
6784
|
+
} : {}, [B, y, k]), z = Q(
|
|
6785
|
+
(D) => {
|
|
6780
6786
|
const C = { ...m };
|
|
6781
|
-
|
|
6787
|
+
D ? (C[r] = D.key, C[n] = D.direction) : (delete C[r], delete C[n]), delete C[o], a(C);
|
|
6782
6788
|
},
|
|
6783
6789
|
[m, r, n, o, a]
|
|
6784
6790
|
);
|
|
6785
|
-
return { sort: B, setSort:
|
|
6791
|
+
return { sort: B, setSort: z, params: L };
|
|
6786
6792
|
}, br = ({
|
|
6787
6793
|
of: t,
|
|
6788
6794
|
render: r
|
|
6789
|
-
}) => _n.toArray(t == null ? void 0 : t.map((n, o, i) => r(n, o, i))),
|
|
6795
|
+
}) => _n.toArray(t == null ? void 0 : t.map((n, o, i) => r(n, o, i))), oe = ({
|
|
6790
6796
|
condition: t,
|
|
6791
6797
|
fallback: r,
|
|
6792
6798
|
children: n,
|
|
6793
6799
|
loading: o,
|
|
6794
6800
|
isLoading: i
|
|
6795
|
-
}) => /* @__PURE__ */ e(
|
|
6796
|
-
|
|
6801
|
+
}) => /* @__PURE__ */ e(ie, { children: i ? o : t ? n : r }), ae = (t) => /* @__PURE__ */ e(
|
|
6802
|
+
w,
|
|
6797
6803
|
{
|
|
6798
6804
|
...t,
|
|
6799
6805
|
fontFamily: "Poppins",
|
|
@@ -6802,7 +6808,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6802
6808
|
color: t.color || "gray-700",
|
|
6803
6809
|
children: t.children
|
|
6804
6810
|
}
|
|
6805
|
-
), Xe = (t) => /* @__PURE__ */ e(
|
|
6811
|
+
), Xe = (t) => /* @__PURE__ */ e(w, { color: "red-600", fontSize: "sm", children: t.message }), Ao = ({
|
|
6806
6812
|
size: t = "md",
|
|
6807
6813
|
direction: r = "vertical",
|
|
6808
6814
|
requiredTitle: n = "(Required)",
|
|
@@ -6819,7 +6825,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6819
6825
|
...i.containerProps,
|
|
6820
6826
|
children: [
|
|
6821
6827
|
i.title && /* @__PURE__ */ e(
|
|
6822
|
-
|
|
6828
|
+
oe,
|
|
6823
6829
|
{
|
|
6824
6830
|
condition: !!i.inputProps.required,
|
|
6825
6831
|
fallback: /* @__PURE__ */ u(
|
|
@@ -6830,7 +6836,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6830
6836
|
fullWidth: o,
|
|
6831
6837
|
children: [
|
|
6832
6838
|
/* @__PURE__ */ e(ae, { children: i.title }),
|
|
6833
|
-
/* @__PURE__ */ e(
|
|
6839
|
+
/* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description })
|
|
6834
6840
|
]
|
|
6835
6841
|
}
|
|
6836
6842
|
),
|
|
@@ -6844,8 +6850,8 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6844
6850
|
/* @__PURE__ */ u(ce, { direction: "row", gap: "xs", align: "center", children: [
|
|
6845
6851
|
/* @__PURE__ */ e(ae, { fontSize: t, children: i.title }),
|
|
6846
6852
|
/* @__PURE__ */ e(ae, { color: "error", fontSize: t, children: n }),
|
|
6847
|
-
/* @__PURE__ */ e(
|
|
6848
|
-
|
|
6853
|
+
/* @__PURE__ */ e(oe, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
|
|
6854
|
+
We,
|
|
6849
6855
|
{
|
|
6850
6856
|
label: (d = i.tooltip) == null ? void 0 : d.label,
|
|
6851
6857
|
arrowPosition: (a = i.tooltip) == null ? void 0 : a.arrowPosition,
|
|
@@ -6864,7 +6870,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6864
6870
|
}
|
|
6865
6871
|
) })
|
|
6866
6872
|
] }),
|
|
6867
|
-
/* @__PURE__ */ e(
|
|
6873
|
+
/* @__PURE__ */ e(oe, { condition: !!i.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description }) })
|
|
6868
6874
|
]
|
|
6869
6875
|
}
|
|
6870
6876
|
)
|
|
@@ -6904,7 +6910,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6904
6910
|
onClick: i.onClickContainer,
|
|
6905
6911
|
children: [
|
|
6906
6912
|
i.title && /* @__PURE__ */ e(
|
|
6907
|
-
|
|
6913
|
+
oe,
|
|
6908
6914
|
{
|
|
6909
6915
|
condition: !!i.inputProps.required,
|
|
6910
6916
|
fallback: /* @__PURE__ */ u(
|
|
@@ -6915,7 +6921,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6915
6921
|
fullWidth: o,
|
|
6916
6922
|
children: [
|
|
6917
6923
|
/* @__PURE__ */ e(ae, { children: i.title }),
|
|
6918
|
-
/* @__PURE__ */ e(
|
|
6924
|
+
/* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description })
|
|
6919
6925
|
]
|
|
6920
6926
|
}
|
|
6921
6927
|
),
|
|
@@ -6929,8 +6935,8 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6929
6935
|
/* @__PURE__ */ u(ce, { direction: "row", gap: "xs", align: "center", children: [
|
|
6930
6936
|
/* @__PURE__ */ e(ae, { fontSize: t, children: i.title }),
|
|
6931
6937
|
/* @__PURE__ */ e(ae, { color: "error", fontSize: t, children: n }),
|
|
6932
|
-
/* @__PURE__ */ e(
|
|
6933
|
-
|
|
6938
|
+
/* @__PURE__ */ e(oe, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
|
|
6939
|
+
We,
|
|
6934
6940
|
{
|
|
6935
6941
|
label: (d = i.tooltip) == null ? void 0 : d.label,
|
|
6936
6942
|
arrowPosition: (a = i.tooltip) == null ? void 0 : a.arrowPosition,
|
|
@@ -6949,7 +6955,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6949
6955
|
}
|
|
6950
6956
|
) })
|
|
6951
6957
|
] }),
|
|
6952
|
-
/* @__PURE__ */ e(
|
|
6958
|
+
/* @__PURE__ */ e(oe, { condition: !!i.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description }) })
|
|
6953
6959
|
]
|
|
6954
6960
|
}
|
|
6955
6961
|
)
|
|
@@ -6981,7 +6987,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6981
6987
|
);
|
|
6982
6988
|
}, Ro = (t, r) => typeof t == "string" && t || r === "error" ? "var(--sa-border-danger)" : "var(--sa-border-subtle)", Vo = (t) => {
|
|
6983
6989
|
var c;
|
|
6984
|
-
const [r, n] =
|
|
6990
|
+
const [r, n] = R(!1), o = (d) => {
|
|
6985
6991
|
d.preventDefault(), d.stopPropagation();
|
|
6986
6992
|
}, i = (d) => {
|
|
6987
6993
|
d.preventDefault(), d.stopPropagation(), d.dataTransfer && t.handleOnFileChange(d.dataTransfer.files.item(0));
|
|
@@ -7023,7 +7029,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7023
7029
|
/* @__PURE__ */ u(ce, { direction: "column", gap: "xs", children: [
|
|
7024
7030
|
/* @__PURE__ */ u(ce, { direction: "row", gap: "xs", children: [
|
|
7025
7031
|
/* @__PURE__ */ e(
|
|
7026
|
-
|
|
7032
|
+
w,
|
|
7027
7033
|
{
|
|
7028
7034
|
fontWeight: "medium",
|
|
7029
7035
|
color: "gray-500",
|
|
@@ -7033,7 +7039,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7033
7039
|
}
|
|
7034
7040
|
),
|
|
7035
7041
|
/* @__PURE__ */ e(
|
|
7036
|
-
|
|
7042
|
+
w,
|
|
7037
7043
|
{
|
|
7038
7044
|
fontWeight: "medium",
|
|
7039
7045
|
style: { textWrap: "nowrap" },
|
|
@@ -7042,7 +7048,7 @@ const ac = Fo(So), Ur = 200, tr = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7042
7048
|
}
|
|
7043
7049
|
)
|
|
7044
7050
|
] }),
|
|
7045
|
-
/* @__PURE__ */ e(
|
|
7051
|
+
/* @__PURE__ */ e(w, { fontSize: "sm", color: "gray-500", children: (c = t.fileSupports) == null ? void 0 : c.map((d) => d.toLocaleUpperCase()).join(", ") })
|
|
7046
7052
|
] })
|
|
7047
7053
|
]
|
|
7048
7054
|
}
|
|
@@ -7105,23 +7111,23 @@ function pc(t) {
|
|
|
7105
7111
|
const n = r.getFullYear(), o = String(r.getMonth() + 1).padStart(2, "0"), i = String(r.getDate()).padStart(2, "0");
|
|
7106
7112
|
return `${n}-${o}-${i}`;
|
|
7107
7113
|
}
|
|
7108
|
-
const Ho = "sa-admin",
|
|
7114
|
+
const Ho = "sa-admin", qe = (t) => `var(--${Ho}-${t})`, yc = {
|
|
7109
7115
|
base: {
|
|
7110
|
-
borderColor:
|
|
7111
|
-
textColor:
|
|
7112
|
-
iconColor:
|
|
7113
|
-
placeholderColor:
|
|
7116
|
+
borderColor: qe("base-border-color"),
|
|
7117
|
+
textColor: qe("base-text-color"),
|
|
7118
|
+
iconColor: qe("base-icon-color"),
|
|
7119
|
+
placeholderColor: qe("base-placeholder-color")
|
|
7114
7120
|
},
|
|
7115
7121
|
document: {
|
|
7116
|
-
bgColor:
|
|
7122
|
+
bgColor: qe("document-bg-color")
|
|
7117
7123
|
},
|
|
7118
7124
|
sidebar: {
|
|
7119
|
-
bgColor:
|
|
7120
|
-
borderColor:
|
|
7121
|
-
maxWidth:
|
|
7122
|
-
width:
|
|
7123
|
-
collapseWidth:
|
|
7124
|
-
collapseV2Width:
|
|
7125
|
+
bgColor: qe("sidebar-bg-color"),
|
|
7126
|
+
borderColor: qe("sidebar-border-color"),
|
|
7127
|
+
maxWidth: qe("sidebar-max-width"),
|
|
7128
|
+
width: qe("sidebar-width"),
|
|
7129
|
+
collapseWidth: qe("sidebar-collapse-width"),
|
|
7130
|
+
collapseV2Width: qe("sidebar-v2-collapse-width")
|
|
7125
7131
|
}
|
|
7126
7132
|
}, xc = 24 * 60 * 60 * 1e3, bc = (t) => {
|
|
7127
7133
|
const r = "14px poppins", o = document.createElement("canvas").getContext("2d");
|
|
@@ -7255,7 +7261,7 @@ const Po = (t) => {
|
|
|
7255
7261
|
),
|
|
7256
7262
|
/* @__PURE__ */ u(ce, { direction: "column", style: { minWidth: 0, flex: 1 }, children: [
|
|
7257
7263
|
/* @__PURE__ */ e(
|
|
7258
|
-
|
|
7264
|
+
w,
|
|
7259
7265
|
{
|
|
7260
7266
|
fontWeight: "bold",
|
|
7261
7267
|
style: {
|
|
@@ -7267,13 +7273,13 @@ const Po = (t) => {
|
|
|
7267
7273
|
}
|
|
7268
7274
|
),
|
|
7269
7275
|
t.defaultFile ? (t.defaultFile.size || t.defaultFile.date) && /* @__PURE__ */ u(ce, { direction: "row", gap: "xs", align: "center", children: [
|
|
7270
|
-
t.defaultFile.size && /* @__PURE__ */ e(
|
|
7276
|
+
t.defaultFile.size && /* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", children: t.defaultFile.size }),
|
|
7271
7277
|
t.defaultFile.size && t.defaultFile.date && /* @__PURE__ */ e(E, { name: "Dot", size: "xs" }),
|
|
7272
|
-
t.defaultFile.date && /* @__PURE__ */ e(
|
|
7278
|
+
t.defaultFile.date && /* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: t.defaultFile.date })
|
|
7273
7279
|
] }) : /* @__PURE__ */ u(ce, { direction: "row", gap: "xs", align: "center", children: [
|
|
7274
|
-
/* @__PURE__ */ e(
|
|
7280
|
+
/* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", children: jo(((n = t.fileSelected) == null ? void 0 : n.size.toString()) || "100000") }),
|
|
7275
7281
|
/* @__PURE__ */ e(E, { name: "Dot", size: "xs" }),
|
|
7276
|
-
/* @__PURE__ */ e(
|
|
7282
|
+
/* @__PURE__ */ e(w, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: Oo(/* @__PURE__ */ new Date()) })
|
|
7277
7283
|
] })
|
|
7278
7284
|
] })
|
|
7279
7285
|
] }),
|
|
@@ -7306,7 +7312,7 @@ const Po = (t) => {
|
|
|
7306
7312
|
}
|
|
7307
7313
|
o.current && o.current.click();
|
|
7308
7314
|
}, l = ke("md"), s = t === "error" || typeof n.errorMessage == "string" && !!n.errorMessage, c = n.label ? /* @__PURE__ */ u(ce, { direction: "row", align: "center", gap: "xs", children: [
|
|
7309
|
-
/* @__PURE__ */ e(
|
|
7315
|
+
/* @__PURE__ */ e(w, { style: { fontSize: "14px", fontWeight: 500, color: "var(--sa-text-primary)" }, children: n.label }),
|
|
7310
7316
|
n.optional && /* @__PURE__ */ e("span", { style: {
|
|
7311
7317
|
background: "var(--sa-background-neutral)",
|
|
7312
7318
|
border: "1px solid var(--sa-border-subtle)",
|
|
@@ -7320,10 +7326,10 @@ const Po = (t) => {
|
|
|
7320
7326
|
alignItems: "center"
|
|
7321
7327
|
}, children: "Optional" }),
|
|
7322
7328
|
n.required && /* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 500, color: "var(--sa-text-error)" }, children: "*" })
|
|
7323
|
-
] }) : null, d = n.description ? /* @__PURE__ */ e(
|
|
7324
|
-
n.helperText && /* @__PURE__ */ e(
|
|
7325
|
-
n.errorText && t === "error" && /* @__PURE__ */ e(
|
|
7326
|
-
n.errorMessage && !n.errorText && /* @__PURE__ */ e(
|
|
7329
|
+
] }) : null, d = n.description ? /* @__PURE__ */ e(w, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: n.description }) : null, a = /* @__PURE__ */ u(ie, { children: [
|
|
7330
|
+
n.helperText && /* @__PURE__ */ e(w, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: n.helperText }),
|
|
7331
|
+
n.errorText && t === "error" && /* @__PURE__ */ e(w, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-error, #a4133c)", lineHeight: "18px" }, children: n.errorText }),
|
|
7332
|
+
n.errorMessage && !n.errorText && /* @__PURE__ */ e(w, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-error, #a4133c)", lineHeight: "18px" }, children: n.errorMessage })
|
|
7327
7333
|
] }), m = /* @__PURE__ */ e(
|
|
7328
7334
|
"input",
|
|
7329
7335
|
{
|
|
@@ -7406,7 +7412,7 @@ const Po = (t) => {
|
|
|
7406
7412
|
...i.containerProps,
|
|
7407
7413
|
children: [
|
|
7408
7414
|
i.title && /* @__PURE__ */ e(
|
|
7409
|
-
|
|
7415
|
+
oe,
|
|
7410
7416
|
{
|
|
7411
7417
|
condition: !!i.inputProps.required,
|
|
7412
7418
|
fallback: /* @__PURE__ */ u(
|
|
@@ -7417,7 +7423,7 @@ const Po = (t) => {
|
|
|
7417
7423
|
fullWidth: o,
|
|
7418
7424
|
children: [
|
|
7419
7425
|
/* @__PURE__ */ e(ae, { children: i.title }),
|
|
7420
|
-
/* @__PURE__ */ e(
|
|
7426
|
+
/* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description })
|
|
7421
7427
|
]
|
|
7422
7428
|
}
|
|
7423
7429
|
),
|
|
@@ -7431,8 +7437,8 @@ const Po = (t) => {
|
|
|
7431
7437
|
/* @__PURE__ */ u(ce, { direction: "row", gap: "xs", align: "center", children: [
|
|
7432
7438
|
/* @__PURE__ */ e(ae, { fontSize: t, children: i.title }),
|
|
7433
7439
|
/* @__PURE__ */ e(ae, { color: "error", fontSize: t, children: n }),
|
|
7434
|
-
/* @__PURE__ */ e(
|
|
7435
|
-
|
|
7440
|
+
/* @__PURE__ */ e(oe, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
|
|
7441
|
+
We,
|
|
7436
7442
|
{
|
|
7437
7443
|
label: (d = i.tooltip) == null ? void 0 : d.label,
|
|
7438
7444
|
arrowPosition: (a = i.tooltip) == null ? void 0 : a.arrowPosition,
|
|
@@ -7451,7 +7457,7 @@ const Po = (t) => {
|
|
|
7451
7457
|
}
|
|
7452
7458
|
) })
|
|
7453
7459
|
] }),
|
|
7454
|
-
/* @__PURE__ */ e(
|
|
7460
|
+
/* @__PURE__ */ e(oe, { condition: !!i.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description }) })
|
|
7455
7461
|
]
|
|
7456
7462
|
}
|
|
7457
7463
|
)
|
|
@@ -7488,7 +7494,7 @@ const Po = (t) => {
|
|
|
7488
7494
|
...l.containerProps,
|
|
7489
7495
|
children: [
|
|
7490
7496
|
l.title && /* @__PURE__ */ e(
|
|
7491
|
-
|
|
7497
|
+
oe,
|
|
7492
7498
|
{
|
|
7493
7499
|
condition: !!i,
|
|
7494
7500
|
fallback: /* @__PURE__ */ u(
|
|
@@ -7499,7 +7505,7 @@ const Po = (t) => {
|
|
|
7499
7505
|
fullWidth: o,
|
|
7500
7506
|
children: [
|
|
7501
7507
|
/* @__PURE__ */ e(ae, { children: l.title }),
|
|
7502
|
-
/* @__PURE__ */ e(
|
|
7508
|
+
/* @__PURE__ */ e(Ue.Body3, { props: { color: "gray-500" }, children: l.description })
|
|
7503
7509
|
]
|
|
7504
7510
|
}
|
|
7505
7511
|
),
|
|
@@ -7513,8 +7519,8 @@ const Po = (t) => {
|
|
|
7513
7519
|
/* @__PURE__ */ u(ce, { direction: "row", gap: "xs", align: "center", children: [
|
|
7514
7520
|
/* @__PURE__ */ e(ae, { fontSize: t, children: l.title }),
|
|
7515
7521
|
/* @__PURE__ */ e(ae, { color: "error", fontSize: t, children: n }),
|
|
7516
|
-
/* @__PURE__ */ e(
|
|
7517
|
-
|
|
7522
|
+
/* @__PURE__ */ e(oe, { condition: !!((d = l.tooltip) != null && d.label), children: /* @__PURE__ */ e(
|
|
7523
|
+
We,
|
|
7518
7524
|
{
|
|
7519
7525
|
label: (a = l.tooltip) == null ? void 0 : a.label,
|
|
7520
7526
|
arrowPosition: (m = l.tooltip) == null ? void 0 : m.arrowPosition,
|
|
@@ -7533,7 +7539,7 @@ const Po = (t) => {
|
|
|
7533
7539
|
}
|
|
7534
7540
|
) })
|
|
7535
7541
|
] }),
|
|
7536
|
-
/* @__PURE__ */ e(
|
|
7542
|
+
/* @__PURE__ */ e(oe, { condition: !!l.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: l.description }) })
|
|
7537
7543
|
]
|
|
7538
7544
|
}
|
|
7539
7545
|
)
|
|
@@ -7607,7 +7613,7 @@ const Po = (t) => {
|
|
|
7607
7613
|
gap: t === "horizontal-inline" || t === "horizontal-block" ? "spacing-96" : "sm",
|
|
7608
7614
|
direction: t === "horizontal-inline" || t === "horizontal-block" ? "row" : "column",
|
|
7609
7615
|
children: [
|
|
7610
|
-
/* @__PURE__ */ e(
|
|
7616
|
+
/* @__PURE__ */ e(oe, { condition: !!o.description || !!o.title, children: /* @__PURE__ */ u(
|
|
7611
7617
|
f,
|
|
7612
7618
|
{
|
|
7613
7619
|
direction: "column",
|
|
@@ -7615,7 +7621,7 @@ const Po = (t) => {
|
|
|
7615
7621
|
fullWidth: n,
|
|
7616
7622
|
children: [
|
|
7617
7623
|
o.title && /* @__PURE__ */ e(ae, { children: o.title }),
|
|
7618
|
-
/* @__PURE__ */ e(
|
|
7624
|
+
/* @__PURE__ */ e(oe, { condition: !!o.description, children: /* @__PURE__ */ e(w, { color: "gray-500", children: o.description }) })
|
|
7619
7625
|
]
|
|
7620
7626
|
}
|
|
7621
7627
|
) }),
|
|
@@ -7652,7 +7658,7 @@ const Po = (t) => {
|
|
|
7652
7658
|
c
|
|
7653
7659
|
),
|
|
7654
7660
|
p && /* @__PURE__ */ e(
|
|
7655
|
-
|
|
7661
|
+
w,
|
|
7656
7662
|
{
|
|
7657
7663
|
color: "gray-500",
|
|
7658
7664
|
style: {
|
|
@@ -7688,7 +7694,7 @@ const Po = (t) => {
|
|
|
7688
7694
|
...i.containerProps,
|
|
7689
7695
|
children: [
|
|
7690
7696
|
i.title && /* @__PURE__ */ e(
|
|
7691
|
-
|
|
7697
|
+
oe,
|
|
7692
7698
|
{
|
|
7693
7699
|
condition: !!i.inputProps.required,
|
|
7694
7700
|
fallback: /* @__PURE__ */ u(
|
|
@@ -7699,7 +7705,7 @@ const Po = (t) => {
|
|
|
7699
7705
|
fullWidth: o,
|
|
7700
7706
|
children: [
|
|
7701
7707
|
/* @__PURE__ */ e(ae, { children: i.title }),
|
|
7702
|
-
/* @__PURE__ */ e(
|
|
7708
|
+
/* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description })
|
|
7703
7709
|
]
|
|
7704
7710
|
}
|
|
7705
7711
|
),
|
|
@@ -7713,8 +7719,8 @@ const Po = (t) => {
|
|
|
7713
7719
|
/* @__PURE__ */ u(ce, { direction: "row", gap: "xs", align: "center", children: [
|
|
7714
7720
|
/* @__PURE__ */ e(ae, { fontSize: t, children: i.title }),
|
|
7715
7721
|
/* @__PURE__ */ e(ae, { color: "error", fontSize: t, children: n }),
|
|
7716
|
-
/* @__PURE__ */ e(
|
|
7717
|
-
|
|
7722
|
+
/* @__PURE__ */ e(oe, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
|
|
7723
|
+
We,
|
|
7718
7724
|
{
|
|
7719
7725
|
label: (d = i.tooltip) == null ? void 0 : d.label,
|
|
7720
7726
|
arrowPosition: (a = i.tooltip) == null ? void 0 : a.arrowPosition,
|
|
@@ -7733,7 +7739,7 @@ const Po = (t) => {
|
|
|
7733
7739
|
}
|
|
7734
7740
|
) })
|
|
7735
7741
|
] }),
|
|
7736
|
-
/* @__PURE__ */ e(
|
|
7742
|
+
/* @__PURE__ */ e(oe, { condition: !!i.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description }) })
|
|
7737
7743
|
]
|
|
7738
7744
|
}
|
|
7739
7745
|
)
|
|
@@ -7772,7 +7778,7 @@ const Po = (t) => {
|
|
|
7772
7778
|
...l.containerProps,
|
|
7773
7779
|
children: [
|
|
7774
7780
|
l.title && /* @__PURE__ */ e(
|
|
7775
|
-
|
|
7781
|
+
oe,
|
|
7776
7782
|
{
|
|
7777
7783
|
condition: o,
|
|
7778
7784
|
fallback: /* @__PURE__ */ u(
|
|
@@ -7783,7 +7789,7 @@ const Po = (t) => {
|
|
|
7783
7789
|
fullWidth: i,
|
|
7784
7790
|
children: [
|
|
7785
7791
|
/* @__PURE__ */ e(ae, { children: l.title }),
|
|
7786
|
-
/* @__PURE__ */ e(
|
|
7792
|
+
/* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: l.titleDescription })
|
|
7787
7793
|
]
|
|
7788
7794
|
}
|
|
7789
7795
|
),
|
|
@@ -7797,8 +7803,8 @@ const Po = (t) => {
|
|
|
7797
7803
|
/* @__PURE__ */ u(ce, { direction: "row", gap: "xs", align: "center", children: [
|
|
7798
7804
|
/* @__PURE__ */ e(ae, { fontSize: t, children: l.title }),
|
|
7799
7805
|
/* @__PURE__ */ e(ae, { color: "error", fontSize: t, children: n }),
|
|
7800
|
-
/* @__PURE__ */ e(
|
|
7801
|
-
|
|
7806
|
+
/* @__PURE__ */ e(oe, { condition: !!((c = l.tooltip) != null && c.label), children: /* @__PURE__ */ e(
|
|
7807
|
+
We,
|
|
7802
7808
|
{
|
|
7803
7809
|
label: (d = l.tooltip) == null ? void 0 : d.label,
|
|
7804
7810
|
arrowPosition: (a = l.tooltip) == null ? void 0 : a.arrowPosition,
|
|
@@ -7817,7 +7823,7 @@ const Po = (t) => {
|
|
|
7817
7823
|
}
|
|
7818
7824
|
) })
|
|
7819
7825
|
] }),
|
|
7820
|
-
/* @__PURE__ */ e(
|
|
7826
|
+
/* @__PURE__ */ e(oe, { condition: !!l.titleDescription, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: l.titleDescription }) })
|
|
7821
7827
|
]
|
|
7822
7828
|
}
|
|
7823
7829
|
)
|
|
@@ -7855,12 +7861,12 @@ const Po = (t) => {
|
|
|
7855
7861
|
};
|
|
7856
7862
|
switch (r) {
|
|
7857
7863
|
case "xs":
|
|
7858
|
-
return /* @__PURE__ */ e(
|
|
7864
|
+
return /* @__PURE__ */ e(Ue.Body2, { props: { style: s }, children: n.title });
|
|
7859
7865
|
case "sm":
|
|
7860
7866
|
case "md":
|
|
7861
|
-
return /* @__PURE__ */ e(
|
|
7867
|
+
return /* @__PURE__ */ e(Ue.SubH3, { props: { style: s }, children: n.title });
|
|
7862
7868
|
case "lg":
|
|
7863
|
-
return /* @__PURE__ */ e(
|
|
7869
|
+
return /* @__PURE__ */ e(Ue.SubH2, { props: { style: s }, children: n.title });
|
|
7864
7870
|
default:
|
|
7865
7871
|
return n.title;
|
|
7866
7872
|
}
|
|
@@ -7882,7 +7888,7 @@ const Po = (t) => {
|
|
|
7882
7888
|
}
|
|
7883
7889
|
);
|
|
7884
7890
|
}, Xo = (t) => /* @__PURE__ */ e(
|
|
7885
|
-
|
|
7891
|
+
Ue.H5,
|
|
7886
7892
|
{
|
|
7887
7893
|
props: {
|
|
7888
7894
|
...t
|
|
@@ -7906,7 +7912,7 @@ const Po = (t) => {
|
|
|
7906
7912
|
onClick: i.onClickContainer,
|
|
7907
7913
|
children: [
|
|
7908
7914
|
i.title && /* @__PURE__ */ e(
|
|
7909
|
-
|
|
7915
|
+
oe,
|
|
7910
7916
|
{
|
|
7911
7917
|
condition: !!i.inputProps.required,
|
|
7912
7918
|
fallback: /* @__PURE__ */ u(
|
|
@@ -7917,7 +7923,7 @@ const Po = (t) => {
|
|
|
7917
7923
|
fullWidth: o,
|
|
7918
7924
|
children: [
|
|
7919
7925
|
/* @__PURE__ */ e(ae, { children: i.title }),
|
|
7920
|
-
/* @__PURE__ */ e(
|
|
7926
|
+
/* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description })
|
|
7921
7927
|
]
|
|
7922
7928
|
}
|
|
7923
7929
|
),
|
|
@@ -7931,8 +7937,8 @@ const Po = (t) => {
|
|
|
7931
7937
|
/* @__PURE__ */ u(ce, { direction: "row", gap: "xs", align: "center", children: [
|
|
7932
7938
|
/* @__PURE__ */ e(ae, { fontSize: t, children: i.title }),
|
|
7933
7939
|
/* @__PURE__ */ e(ae, { color: "error", fontSize: t, children: n }),
|
|
7934
|
-
/* @__PURE__ */ e(
|
|
7935
|
-
|
|
7940
|
+
/* @__PURE__ */ e(oe, { condition: !!((c = i.tooltip) != null && c.label), children: /* @__PURE__ */ e(
|
|
7941
|
+
We,
|
|
7936
7942
|
{
|
|
7937
7943
|
label: (d = i.tooltip) == null ? void 0 : d.label,
|
|
7938
7944
|
arrowPosition: (a = i.tooltip) == null ? void 0 : a.arrowPosition,
|
|
@@ -7951,7 +7957,7 @@ const Po = (t) => {
|
|
|
7951
7957
|
}
|
|
7952
7958
|
) })
|
|
7953
7959
|
] }),
|
|
7954
|
-
/* @__PURE__ */ e(
|
|
7960
|
+
/* @__PURE__ */ e(oe, { condition: !!i.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description }) })
|
|
7955
7961
|
]
|
|
7956
7962
|
}
|
|
7957
7963
|
)
|
|
@@ -8030,49 +8036,49 @@ const Yr = {
|
|
|
8030
8036
|
maxFileSize: d = 2,
|
|
8031
8037
|
onError: a
|
|
8032
8038
|
}, m) => {
|
|
8033
|
-
const p = ke("md"), [g, b] =
|
|
8039
|
+
const p = ke("md"), [g, b] = R(!1), [B, y] = R(null), [k, L] = R(!1), [z, D] = R({ x: 0, y: 0 }), [C, V] = R(1), [I, v] = R(null);
|
|
8034
8040
|
U(() => {
|
|
8035
8041
|
r === null && i(null);
|
|
8036
8042
|
}, [r]);
|
|
8037
8043
|
const M = Q(
|
|
8038
|
-
(
|
|
8039
|
-
v(
|
|
8044
|
+
(Y, K) => {
|
|
8045
|
+
v(K);
|
|
8040
8046
|
},
|
|
8041
8047
|
[]
|
|
8042
|
-
), N = (
|
|
8043
|
-
var
|
|
8044
|
-
const
|
|
8045
|
-
if (!
|
|
8046
|
-
const
|
|
8047
|
-
|
|
8048
|
-
y(
|
|
8049
|
-
},
|
|
8048
|
+
), N = (Y) => {
|
|
8049
|
+
var te;
|
|
8050
|
+
const K = (te = Y.target.files) == null ? void 0 : te[0];
|
|
8051
|
+
if (!K) return;
|
|
8052
|
+
const me = new FileReader();
|
|
8053
|
+
me.onload = () => {
|
|
8054
|
+
y(me.result), L(!0);
|
|
8055
|
+
}, me.readAsDataURL(K);
|
|
8050
8056
|
}, $ = async () => {
|
|
8051
8057
|
if (!(!B || !I))
|
|
8052
8058
|
try {
|
|
8053
|
-
const
|
|
8054
|
-
if (d &&
|
|
8059
|
+
const Y = await el(B, I);
|
|
8060
|
+
if (d && Y.size > d * 1024 * 1024) {
|
|
8055
8061
|
a == null || a(`Ukuran file maksimal ${d}MB`);
|
|
8056
8062
|
return;
|
|
8057
8063
|
}
|
|
8058
|
-
t == null || t(
|
|
8059
|
-
const
|
|
8060
|
-
i(
|
|
8064
|
+
t == null || t(Y);
|
|
8065
|
+
const K = URL.createObjectURL(Y);
|
|
8066
|
+
i(K, Y), L(!1);
|
|
8061
8067
|
} catch {
|
|
8062
8068
|
a == null || a("Gagal memproses gambar");
|
|
8063
8069
|
}
|
|
8064
|
-
},
|
|
8065
|
-
|
|
8070
|
+
}, j = se(null), X = () => {
|
|
8071
|
+
j.current && j.current.click();
|
|
8066
8072
|
};
|
|
8067
8073
|
Pn(m, () => ({
|
|
8068
8074
|
openFileDialog: () => {
|
|
8069
|
-
var
|
|
8070
|
-
(
|
|
8075
|
+
var Y;
|
|
8076
|
+
(Y = j.current) == null || Y.click();
|
|
8071
8077
|
}
|
|
8072
8078
|
}));
|
|
8073
|
-
const
|
|
8074
|
-
let
|
|
8075
|
-
return
|
|
8079
|
+
const le = parseInt(l, 10), pe = Yr[s];
|
|
8080
|
+
let ne, he;
|
|
8081
|
+
return pe >= 1 ? (he = le, ne = le * pe) : (ne = le, he = le / pe), /* @__PURE__ */ u(
|
|
8076
8082
|
f,
|
|
8077
8083
|
{
|
|
8078
8084
|
direction: "column",
|
|
@@ -8087,9 +8093,9 @@ const Yr = {
|
|
|
8087
8093
|
align: "center",
|
|
8088
8094
|
justify: "center",
|
|
8089
8095
|
style: {
|
|
8090
|
-
width: c != null && c.fullWidth ? "100%" : `${
|
|
8096
|
+
width: c != null && c.fullWidth ? "100%" : `${ne}px`,
|
|
8091
8097
|
height: c != null && c.fullWidth ? "auto" : `${he}px`,
|
|
8092
|
-
aspectRatio:
|
|
8098
|
+
aspectRatio: pe,
|
|
8093
8099
|
flexShrink: 0
|
|
8094
8100
|
},
|
|
8095
8101
|
onMouseEnter: () => b(!0),
|
|
@@ -8142,12 +8148,12 @@ const Yr = {
|
|
|
8142
8148
|
opacity: g ? 1 : 0,
|
|
8143
8149
|
transition: "opacity 0.3s ease-in-out"
|
|
8144
8150
|
},
|
|
8145
|
-
onClick:
|
|
8151
|
+
onClick: X,
|
|
8146
8152
|
children: [
|
|
8147
8153
|
/* @__PURE__ */ e(
|
|
8148
8154
|
"input",
|
|
8149
8155
|
{
|
|
8150
|
-
ref:
|
|
8156
|
+
ref: j,
|
|
8151
8157
|
type: "file",
|
|
8152
8158
|
accept: "image/*",
|
|
8153
8159
|
onChange: N,
|
|
@@ -8163,8 +8169,8 @@ const Yr = {
|
|
|
8163
8169
|
style: { color: "var(--sa-background-primary, #ffffff)" }
|
|
8164
8170
|
}
|
|
8165
8171
|
),
|
|
8166
|
-
/* @__PURE__ */ e(
|
|
8167
|
-
|
|
8172
|
+
/* @__PURE__ */ e(oe, { condition: l.toNumber() > 80, children: /* @__PURE__ */ e(
|
|
8173
|
+
w,
|
|
8168
8174
|
{
|
|
8169
8175
|
color: "gray-50",
|
|
8170
8176
|
fontSize: l.toNumber() > 80 ? "sm" : "md",
|
|
@@ -8227,11 +8233,11 @@ const Yr = {
|
|
|
8227
8233
|
borderRadius: "var(--sa-radii-md)",
|
|
8228
8234
|
boxShadow: "0 20px 60px rgba(0,0,0,0.3)",
|
|
8229
8235
|
overflow: "hidden",
|
|
8230
|
-
width: p ? s === "1:1" ? "min(90vw, 480px)" : `min(90vw, ${
|
|
8236
|
+
width: p ? s === "1:1" ? "min(90vw, 480px)" : `min(90vw, ${ne * 2}px)` : "calc(100vw - 2rem)",
|
|
8231
8237
|
display: "flex",
|
|
8232
8238
|
flexDirection: "column"
|
|
8233
8239
|
},
|
|
8234
|
-
onClick: (
|
|
8240
|
+
onClick: (Y) => Y.stopPropagation(),
|
|
8235
8241
|
children: [
|
|
8236
8242
|
/* @__PURE__ */ e(
|
|
8237
8243
|
"div",
|
|
@@ -8246,11 +8252,11 @@ const Yr = {
|
|
|
8246
8252
|
Gn,
|
|
8247
8253
|
{
|
|
8248
8254
|
image: B,
|
|
8249
|
-
crop:
|
|
8255
|
+
crop: z,
|
|
8250
8256
|
zoom: C,
|
|
8251
8257
|
aspect: s ? Yr[s] : void 0,
|
|
8252
|
-
onCropChange:
|
|
8253
|
-
onZoomChange:
|
|
8258
|
+
onCropChange: D,
|
|
8259
|
+
onZoomChange: V,
|
|
8254
8260
|
onCropComplete: M,
|
|
8255
8261
|
objectFit: "contain",
|
|
8256
8262
|
minZoom: 0.5,
|
|
@@ -8304,7 +8310,7 @@ const Yr = {
|
|
|
8304
8310
|
...l.containerProps,
|
|
8305
8311
|
children: [
|
|
8306
8312
|
l.title && /* @__PURE__ */ e(
|
|
8307
|
-
|
|
8313
|
+
oe,
|
|
8308
8314
|
{
|
|
8309
8315
|
condition: !!i,
|
|
8310
8316
|
fallback: /* @__PURE__ */ u(
|
|
@@ -8315,7 +8321,7 @@ const Yr = {
|
|
|
8315
8321
|
fullWidth: o,
|
|
8316
8322
|
children: [
|
|
8317
8323
|
/* @__PURE__ */ e(ae, { children: l.title }),
|
|
8318
|
-
/* @__PURE__ */ e(
|
|
8324
|
+
/* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: l.description })
|
|
8319
8325
|
]
|
|
8320
8326
|
}
|
|
8321
8327
|
),
|
|
@@ -8329,8 +8335,8 @@ const Yr = {
|
|
|
8329
8335
|
/* @__PURE__ */ u(ce, { direction: "row", gap: "xs", align: "center", children: [
|
|
8330
8336
|
/* @__PURE__ */ e(ae, { fontSize: t, children: l.title }),
|
|
8331
8337
|
/* @__PURE__ */ e(ae, { color: "error", fontSize: t, children: n }),
|
|
8332
|
-
/* @__PURE__ */ e(
|
|
8333
|
-
|
|
8338
|
+
/* @__PURE__ */ e(oe, { condition: !!((d = l.tooltip) != null && d.label), children: /* @__PURE__ */ e(
|
|
8339
|
+
We,
|
|
8334
8340
|
{
|
|
8335
8341
|
label: (a = l.tooltip) == null ? void 0 : a.label,
|
|
8336
8342
|
arrowPosition: (m = l.tooltip) == null ? void 0 : m.arrowPosition,
|
|
@@ -8349,7 +8355,7 @@ const Yr = {
|
|
|
8349
8355
|
}
|
|
8350
8356
|
) })
|
|
8351
8357
|
] }),
|
|
8352
|
-
/* @__PURE__ */ e(
|
|
8358
|
+
/* @__PURE__ */ e(oe, { condition: !!l.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: l.description }) })
|
|
8353
8359
|
]
|
|
8354
8360
|
}
|
|
8355
8361
|
)
|
|
@@ -8379,7 +8385,7 @@ const Yr = {
|
|
|
8379
8385
|
...i.containerProps,
|
|
8380
8386
|
children: [
|
|
8381
8387
|
i.title && /* @__PURE__ */ e(
|
|
8382
|
-
|
|
8388
|
+
oe,
|
|
8383
8389
|
{
|
|
8384
8390
|
condition: !!i.inputProps.required,
|
|
8385
8391
|
fallback: /* @__PURE__ */ u(
|
|
@@ -8390,7 +8396,7 @@ const Yr = {
|
|
|
8390
8396
|
fullWidth: o,
|
|
8391
8397
|
children: [
|
|
8392
8398
|
/* @__PURE__ */ e(ae, { children: i.title }),
|
|
8393
|
-
/* @__PURE__ */ e(
|
|
8399
|
+
/* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description })
|
|
8394
8400
|
]
|
|
8395
8401
|
}
|
|
8396
8402
|
),
|
|
@@ -8404,8 +8410,8 @@ const Yr = {
|
|
|
8404
8410
|
/* @__PURE__ */ u(ce, { direction: "row", gap: "xs", align: "center", children: [
|
|
8405
8411
|
/* @__PURE__ */ e(ae, { fontSize: t, children: i.title }),
|
|
8406
8412
|
/* @__PURE__ */ e(ae, { color: "error", fontSize: t, children: n }),
|
|
8407
|
-
/* @__PURE__ */ e(
|
|
8408
|
-
|
|
8413
|
+
/* @__PURE__ */ e(oe, { condition: !!((s = i.tooltip) != null && s.label), children: /* @__PURE__ */ e(
|
|
8414
|
+
We,
|
|
8409
8415
|
{
|
|
8410
8416
|
label: (c = i.tooltip) == null ? void 0 : c.label,
|
|
8411
8417
|
arrowPosition: (d = i.tooltip) == null ? void 0 : d.arrowPosition,
|
|
@@ -8424,7 +8430,7 @@ const Yr = {
|
|
|
8424
8430
|
}
|
|
8425
8431
|
) })
|
|
8426
8432
|
] }),
|
|
8427
|
-
/* @__PURE__ */ e(
|
|
8433
|
+
/* @__PURE__ */ e(oe, { condition: !!i.description, children: /* @__PURE__ */ e(w, { fontSize: t, color: "gray-500", children: i.description }) })
|
|
8428
8434
|
]
|
|
8429
8435
|
}
|
|
8430
8436
|
)
|
|
@@ -8443,7 +8449,7 @@ const Yr = {
|
|
|
8443
8449
|
disabled: l = !1
|
|
8444
8450
|
}) => {
|
|
8445
8451
|
var m;
|
|
8446
|
-
const [s, c] =
|
|
8452
|
+
const [s, c] = R([]);
|
|
8447
8453
|
U(() => {
|
|
8448
8454
|
t && c([...t.map((p) => ({ id: p.id, isActive: p.isActive }))]);
|
|
8449
8455
|
}, [t]);
|
|
@@ -8485,7 +8491,7 @@ const Yr = {
|
|
|
8485
8491
|
InputImgFile: rl,
|
|
8486
8492
|
Custom: nl
|
|
8487
8493
|
}, il = ({ customBottom: t }) => {
|
|
8488
|
-
const [r, n] =
|
|
8494
|
+
const [r, n] = R(!1), o = () => {
|
|
8489
8495
|
window.scrollY > window.screenY ? n(!0) : n(!1);
|
|
8490
8496
|
}, i = () => {
|
|
8491
8497
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
@@ -8621,15 +8627,15 @@ const Yr = {
|
|
|
8621
8627
|
) }), ol = ({ title: t, value: r, icon: n }) => /* @__PURE__ */ u(f, { display: "flex", direction: "column", gap: "sm", children: [
|
|
8622
8628
|
n ? /* @__PURE__ */ u(f, { display: "flex", direction: "row", align: "center", gap: "xs", children: [
|
|
8623
8629
|
/* @__PURE__ */ e(E, { name: n, color: "subtle" }),
|
|
8624
|
-
/* @__PURE__ */ e(
|
|
8625
|
-
] }) : /* @__PURE__ */ e(
|
|
8626
|
-
typeof r == "string" ? /* @__PURE__ */ e(
|
|
8630
|
+
/* @__PURE__ */ e(w, { color: "gray-500", variant: "sub-h3", children: t })
|
|
8631
|
+
] }) : /* @__PURE__ */ e(w, { color: "gray-500", variant: "sub-h3", children: t }),
|
|
8632
|
+
typeof r == "string" ? /* @__PURE__ */ e(w, { variant: "sub-h3", children: r }) : r
|
|
8627
8633
|
] }), we = {
|
|
8628
8634
|
silhouette: "#A7B0AC",
|
|
8629
8635
|
accent: "#78867F"
|
|
8630
8636
|
};
|
|
8631
8637
|
function ll({ width: t, height: r }) {
|
|
8632
|
-
return /* @__PURE__ */ e(
|
|
8638
|
+
return /* @__PURE__ */ e(ie, { children: /* @__PURE__ */ u(
|
|
8633
8639
|
"svg",
|
|
8634
8640
|
{
|
|
8635
8641
|
width: t || "100",
|
|
@@ -8786,10 +8792,10 @@ const Rc = ({
|
|
|
8786
8792
|
const m = () => {
|
|
8787
8793
|
switch (o) {
|
|
8788
8794
|
case "primary":
|
|
8789
|
-
return /* @__PURE__ */ e(
|
|
8795
|
+
return /* @__PURE__ */ e(ie, { children: l ? /* @__PURE__ */ e(H, { primary: !0, iconLeft: l, onClick: n, children: d || t }) : /* @__PURE__ */ e(H, { primary: !0, onClick: n, children: d || t }) });
|
|
8790
8796
|
case "secondary":
|
|
8791
|
-
return /* @__PURE__ */ e(
|
|
8792
|
-
|
|
8797
|
+
return /* @__PURE__ */ e(ie, { children: l ? /* @__PURE__ */ e(H, { secondary: !0, iconLeft: l, onClick: n, children: i ? /* @__PURE__ */ e(
|
|
8798
|
+
w,
|
|
8793
8799
|
{
|
|
8794
8800
|
fontFamily: "Poppins",
|
|
8795
8801
|
fontSize: "md",
|
|
@@ -8799,9 +8805,9 @@ const Rc = ({
|
|
|
8799
8805
|
}
|
|
8800
8806
|
) : t }) : /* @__PURE__ */ e(H, { secondary: !0, onClick: n, children: d || t }) });
|
|
8801
8807
|
case "success":
|
|
8802
|
-
return /* @__PURE__ */ e(
|
|
8808
|
+
return /* @__PURE__ */ e(ie, { children: l ? /* @__PURE__ */ e(H, { success: !0, iconLeft: l, onClick: n, children: d || t }) : /* @__PURE__ */ e(H, { success: !0, onClick: n, children: d || t }) });
|
|
8803
8809
|
default:
|
|
8804
|
-
return /* @__PURE__ */ e(
|
|
8810
|
+
return /* @__PURE__ */ e(ie, { children: l ? /* @__PURE__ */ e(H, { primary: !0, iconLeft: l, onClick: n, children: d || t }) : /* @__PURE__ */ e(H, { primary: !0, onClick: n, children: d || t }) });
|
|
8805
8811
|
}
|
|
8806
8812
|
};
|
|
8807
8813
|
return /* @__PURE__ */ u(
|
|
@@ -8818,7 +8824,7 @@ const Rc = ({
|
|
|
8818
8824
|
children: [
|
|
8819
8825
|
a || /* @__PURE__ */ e(ll, {}),
|
|
8820
8826
|
/* @__PURE__ */ e(f, { direction: "column", children: r.map((p, g) => /* @__PURE__ */ e(
|
|
8821
|
-
|
|
8827
|
+
Ue.Body1,
|
|
8822
8828
|
{
|
|
8823
8829
|
props: {
|
|
8824
8830
|
align: "center",
|
|
@@ -8843,7 +8849,7 @@ const Rc = ({
|
|
|
8843
8849
|
cFFFFFF: "#FFFFFF"
|
|
8844
8850
|
};
|
|
8845
8851
|
function cl({ width: t, height: r }) {
|
|
8846
|
-
return /* @__PURE__ */ e(
|
|
8852
|
+
return /* @__PURE__ */ e(ie, { children: /* @__PURE__ */ u(
|
|
8847
8853
|
"svg",
|
|
8848
8854
|
{
|
|
8849
8855
|
width: t,
|
|
@@ -9060,7 +9066,7 @@ function Vc({ onClick: t }) {
|
|
|
9060
9066
|
children: [
|
|
9061
9067
|
/* @__PURE__ */ e(cl, { width: r ? 600 : 300 }),
|
|
9062
9068
|
/* @__PURE__ */ e(
|
|
9063
|
-
|
|
9069
|
+
w,
|
|
9064
9070
|
{
|
|
9065
9071
|
fontWeight: "bold",
|
|
9066
9072
|
fontSize: r ? "3xl" : "2xl",
|
|
@@ -9069,7 +9075,7 @@ function Vc({ onClick: t }) {
|
|
|
9069
9075
|
}
|
|
9070
9076
|
),
|
|
9071
9077
|
/* @__PURE__ */ e(
|
|
9072
|
-
|
|
9078
|
+
w,
|
|
9073
9079
|
{
|
|
9074
9080
|
fontWeight: "semibold",
|
|
9075
9081
|
fontSize: r ? "lg" : "md",
|
|
@@ -9082,7 +9088,7 @@ function Vc({ onClick: t }) {
|
|
|
9082
9088
|
}
|
|
9083
9089
|
);
|
|
9084
9090
|
}
|
|
9085
|
-
const
|
|
9091
|
+
const re = {
|
|
9086
9092
|
c46F16B: "#46F16B",
|
|
9087
9093
|
c48504C: "#48504C",
|
|
9088
9094
|
c64B5F6: "#64B5F6",
|
|
@@ -9104,7 +9110,7 @@ const te = {
|
|
|
9104
9110
|
cFFFFFF: "#FFFFFF"
|
|
9105
9111
|
};
|
|
9106
9112
|
function sl({ width: t, height: r }) {
|
|
9107
|
-
return /* @__PURE__ */ e(
|
|
9113
|
+
return /* @__PURE__ */ e(ie, { children: /* @__PURE__ */ u(
|
|
9108
9114
|
"svg",
|
|
9109
9115
|
{
|
|
9110
9116
|
width: t,
|
|
@@ -9113,14 +9119,14 @@ function sl({ width: t, height: r }) {
|
|
|
9113
9119
|
fill: "none",
|
|
9114
9120
|
xmlns: "http://www.w3.org/2000/svg",
|
|
9115
9121
|
children: [
|
|
9116
|
-
/* @__PURE__ */ e("rect", { x: "228", y: "55.5", width: "55", height: "20", fill:
|
|
9122
|
+
/* @__PURE__ */ e("rect", { x: "228", y: "55.5", width: "55", height: "20", fill: re.cD6EBFD }),
|
|
9117
9123
|
/* @__PURE__ */ e(
|
|
9118
9124
|
"path",
|
|
9119
9125
|
{
|
|
9120
9126
|
fillRule: "evenodd",
|
|
9121
9127
|
clipRule: "evenodd",
|
|
9122
9128
|
d: "M75 238.124V197.28L163.523 63.5H217.029V194.32H240V238.124H217.029V252.5H169.126V238.124H75ZM125.424 194.32L172.487 119.143V194.32H125.424Z",
|
|
9123
|
-
fill:
|
|
9129
|
+
fill: re.cBBDEFB,
|
|
9124
9130
|
fillOpacity: "0.6"
|
|
9125
9131
|
}
|
|
9126
9132
|
),
|
|
@@ -9129,8 +9135,8 @@ function sl({ width: t, height: r }) {
|
|
|
9129
9135
|
"path",
|
|
9130
9136
|
{
|
|
9131
9137
|
d: "M334.5 274.5C381.168 274.5 419 227.266 419 169C419 110.734 381.168 63.5 334.5 63.5C287.832 63.5 250 110.734 250 169C250 227.266 287.832 274.5 334.5 274.5Z",
|
|
9132
|
-
fill:
|
|
9133
|
-
stroke:
|
|
9138
|
+
fill: re.cEFF3F8,
|
|
9139
|
+
stroke: re.c67AEE6,
|
|
9134
9140
|
strokeWidth: "5"
|
|
9135
9141
|
}
|
|
9136
9142
|
),
|
|
@@ -9138,68 +9144,68 @@ function sl({ width: t, height: r }) {
|
|
|
9138
9144
|
"path",
|
|
9139
9145
|
{
|
|
9140
9146
|
d: "M413 197.5C411.397 211.835 402.919 230.898 389.361 246.49C375.596 262.32 356.651 274.5 334.496 274.5C311.331 274.5 292.389 261.672 278.878 245.52C265.592 229.638 257.606 210.603 256 197.5H413Z",
|
|
9141
|
-
fill:
|
|
9147
|
+
fill: re.cD5C7BD
|
|
9142
9148
|
}
|
|
9143
9149
|
),
|
|
9144
9150
|
/* @__PURE__ */ e(
|
|
9145
9151
|
"path",
|
|
9146
9152
|
{
|
|
9147
9153
|
d: "M278.887 211.766H391.104L392.583 222.856C392.687 223.635 392.08 224.328 391.294 224.328H277.961C277.14 224.328 276.525 223.577 276.686 222.773L278.887 211.766Z",
|
|
9148
|
-
fill:
|
|
9154
|
+
fill: re.cCABEB1
|
|
9149
9155
|
}
|
|
9150
9156
|
),
|
|
9151
9157
|
/* @__PURE__ */ e(
|
|
9152
9158
|
"path",
|
|
9153
9159
|
{
|
|
9154
9160
|
d: "M287.68 218.884L289.354 213.022H378.961L381.473 218.884H287.68Z",
|
|
9155
|
-
fill:
|
|
9161
|
+
fill: re.cC0B2A2
|
|
9156
9162
|
}
|
|
9157
9163
|
),
|
|
9158
9164
|
/* @__PURE__ */ e(
|
|
9159
9165
|
"path",
|
|
9160
9166
|
{
|
|
9161
9167
|
d: "M381.944 218.803L381.58 212.266H386.385L386.022 218.803H381.944Z",
|
|
9162
|
-
fill:
|
|
9163
|
-
stroke:
|
|
9168
|
+
fill: re.c956847,
|
|
9169
|
+
stroke: re.c48504C
|
|
9164
9170
|
}
|
|
9165
9171
|
),
|
|
9166
9172
|
/* @__PURE__ */ e(
|
|
9167
9173
|
"path",
|
|
9168
9174
|
{
|
|
9169
9175
|
d: "M283.124 218.803L282.768 213.104H287.565L287.209 218.803H283.124Z",
|
|
9170
|
-
fill:
|
|
9171
|
-
stroke:
|
|
9176
|
+
fill: re.c956847,
|
|
9177
|
+
stroke: re.c48504C
|
|
9172
9178
|
}
|
|
9173
9179
|
),
|
|
9174
9180
|
/* @__PURE__ */ e(
|
|
9175
9181
|
"path",
|
|
9176
9182
|
{
|
|
9177
9183
|
d: "M285.902 212.103L284.935 186.306H279.606C278.151 186.306 277.004 187.542 277.113 188.993L278.673 209.79C278.77 211.095 279.857 212.103 281.166 212.103H285.902Z",
|
|
9178
|
-
fill:
|
|
9179
|
-
stroke:
|
|
9184
|
+
fill: re.cC8CEF4,
|
|
9185
|
+
stroke: re.c48504C
|
|
9180
9186
|
}
|
|
9181
9187
|
),
|
|
9182
9188
|
/* @__PURE__ */ e(
|
|
9183
9189
|
"path",
|
|
9184
9190
|
{
|
|
9185
9191
|
d: "M383.256 212.103L384.638 186.306H389.556C391.007 186.306 392.153 187.537 392.05 188.984L390.564 209.782C390.471 211.09 389.382 212.103 388.07 212.103H383.256Z",
|
|
9186
|
-
fill:
|
|
9187
|
-
stroke:
|
|
9192
|
+
fill: re.cC8CEF4,
|
|
9193
|
+
stroke: re.c48504C
|
|
9188
9194
|
}
|
|
9189
9195
|
),
|
|
9190
9196
|
/* @__PURE__ */ e(
|
|
9191
9197
|
"path",
|
|
9192
9198
|
{
|
|
9193
9199
|
d: "M284.497 178.155C284.455 176.194 286.034 174.581 287.996 174.581H381.904C383.895 174.581 385.485 176.24 385.401 178.23L384.066 209.59C383.987 211.463 382.445 212.941 380.569 212.941H288.663C286.759 212.941 285.205 211.419 285.164 209.515L284.497 178.155Z",
|
|
9194
|
-
fill:
|
|
9195
|
-
stroke:
|
|
9200
|
+
fill: re.cC8CEF4,
|
|
9201
|
+
stroke: re.c48504C
|
|
9196
9202
|
}
|
|
9197
9203
|
),
|
|
9198
9204
|
/* @__PURE__ */ e(
|
|
9199
9205
|
"path",
|
|
9200
9206
|
{
|
|
9201
9207
|
d: "M284.845 181.524C284.792 179.279 286.598 177.431 288.844 177.431H380.687C382.948 177.431 384.76 179.304 384.684 181.565L383.774 208.737C383.701 210.893 381.933 212.603 379.776 212.603H289.48C287.307 212.603 285.532 210.869 285.481 208.697L284.845 181.524Z",
|
|
9202
|
-
fill:
|
|
9208
|
+
fill: re.cBBC3F5
|
|
9203
9209
|
}
|
|
9204
9210
|
),
|
|
9205
9211
|
/* @__PURE__ */ e(
|
|
@@ -9216,7 +9222,7 @@ function sl({ width: t, height: r }) {
|
|
|
9216
9222
|
"path",
|
|
9217
9223
|
{
|
|
9218
9224
|
d: "M301 146.5C301 145.395 301.887 144.5 302.98 144.5H367.02C368.114 144.5 369 145.395 369 146.5V160.411H301V146.5Z",
|
|
9219
|
-
fill:
|
|
9225
|
+
fill: re.cFFFFFF
|
|
9220
9226
|
}
|
|
9221
9227
|
)
|
|
9222
9228
|
}
|
|
@@ -9226,42 +9232,42 @@ function sl({ width: t, height: r }) {
|
|
|
9226
9232
|
"path",
|
|
9227
9233
|
{
|
|
9228
9234
|
d: "M301 146.191C301 145.257 301.748 144.5 302.671 144.5H356.701C357.624 144.5 358.372 145.257 358.372 146.191V157.949H301V146.191Z",
|
|
9229
|
-
fill:
|
|
9235
|
+
fill: re.cFFFFFF
|
|
9230
9236
|
}
|
|
9231
9237
|
),
|
|
9232
9238
|
/* @__PURE__ */ e(
|
|
9233
9239
|
"path",
|
|
9234
9240
|
{
|
|
9235
9241
|
d: "M301.336 146.607C301.336 145.673 302.08 144.916 302.999 144.916H367.01C367.929 144.916 368.673 145.673 368.673 146.607V152.523H301.336V146.607Z",
|
|
9236
|
-
fill:
|
|
9242
|
+
fill: re.cD6D6D6
|
|
9237
9243
|
}
|
|
9238
9244
|
),
|
|
9239
9245
|
/* @__PURE__ */ e(
|
|
9240
9246
|
"path",
|
|
9241
9247
|
{
|
|
9242
9248
|
d: "M368.673 152.523H301.336V174.5H368.673V152.523Z",
|
|
9243
|
-
fill:
|
|
9249
|
+
fill: re.cF4F4F4
|
|
9244
9250
|
}
|
|
9245
9251
|
),
|
|
9246
9252
|
/* @__PURE__ */ e(
|
|
9247
9253
|
"path",
|
|
9248
9254
|
{
|
|
9249
9255
|
d: "M307.685 150.417C308.607 150.417 309.356 149.66 309.356 148.726C309.356 147.793 308.607 147.036 307.685 147.036C306.762 147.036 306.014 147.793 306.014 148.726C306.014 149.66 306.762 150.417 307.685 150.417Z",
|
|
9250
|
-
fill:
|
|
9256
|
+
fill: re.cEE8080
|
|
9251
9257
|
}
|
|
9252
9258
|
),
|
|
9253
9259
|
/* @__PURE__ */ e(
|
|
9254
9260
|
"path",
|
|
9255
9261
|
{
|
|
9256
9262
|
d: "M313.532 150.417C314.455 150.417 315.203 149.66 315.203 148.726C315.203 147.793 314.455 147.036 313.532 147.036C312.609 147.036 311.861 147.793 311.861 148.726C311.861 149.66 312.609 150.417 313.532 150.417Z",
|
|
9257
|
-
fill:
|
|
9263
|
+
fill: re.cE5EE80
|
|
9258
9264
|
}
|
|
9259
9265
|
),
|
|
9260
9266
|
/* @__PURE__ */ e(
|
|
9261
9267
|
"path",
|
|
9262
9268
|
{
|
|
9263
9269
|
d: "M318.546 150.417C319.469 150.417 320.217 149.66 320.217 148.726C320.217 147.793 319.469 147.036 318.546 147.036C317.623 147.036 316.875 147.793 316.875 148.726C316.875 149.66 317.623 150.417 318.546 150.417Z",
|
|
9264
|
-
fill:
|
|
9270
|
+
fill: re.c46F16B
|
|
9265
9271
|
}
|
|
9266
9272
|
)
|
|
9267
9273
|
] }),
|
|
@@ -9269,14 +9275,14 @@ function sl({ width: t, height: r }) {
|
|
|
9269
9275
|
"path",
|
|
9270
9276
|
{
|
|
9271
9277
|
d: "M301.16 146C301.16 145.172 301.832 144.5 302.66 144.5H367.33C368.159 144.5 368.83 145.172 368.83 146V174.419H301.16V146Z",
|
|
9272
|
-
stroke:
|
|
9278
|
+
stroke: re.c48504C
|
|
9273
9279
|
}
|
|
9274
9280
|
),
|
|
9275
9281
|
/* @__PURE__ */ e(
|
|
9276
9282
|
"path",
|
|
9277
9283
|
{
|
|
9278
9284
|
d: "M395.29 207.579H423.344M354.255 236.889H369.329M327.038 222.234H347.556M350.905 222.234H358.024M288.097 230.19H304.846M253.344 210.091H272.605M278.467 246.938H295.216M297.309 246.938H303.59M337.088 252.801H354.255",
|
|
9279
|
-
stroke:
|
|
9285
|
+
stroke: re.c86512B,
|
|
9280
9286
|
strokeWidth: "2",
|
|
9281
9287
|
strokeLinecap: "round"
|
|
9282
9288
|
}
|
|
@@ -9286,21 +9292,21 @@ function sl({ width: t, height: r }) {
|
|
|
9286
9292
|
"path",
|
|
9287
9293
|
{
|
|
9288
9294
|
d: "M430.241 125.78C430.987 105.807 437.521 90.4065 449.841 79.5799C462.161 68.7532 478.867 63.3398 499.961 63.3398C513.961 63.3398 525.907 65.7665 535.801 70.6199C545.881 75.4732 553.441 82.0998 558.481 90.4998C563.707 98.8998 566.321 108.327 566.321 118.78C566.321 131.1 563.241 141.18 557.081 149.02C550.921 156.673 543.734 161.9 535.521 164.7V165.82C546.161 169.367 554.561 175.247 560.721 183.46C566.881 191.673 569.961 202.22 569.961 215.1C569.961 226.673 567.254 236.94 561.841 245.9C560.436 248.258 558.849 250.481 557.081 252.569L443.5 252.662C432.5 241 427.721 230.5 427.721 207.82H474.201C474.387 216.033 476.721 222.567 481.201 227.42C485.681 232.087 492.214 234.42 500.801 234.42C508.081 234.42 513.681 232.367 517.601 228.26C521.707 223.967 523.761 218.367 523.761 211.46C523.761 202.5 520.867 196.06 515.081 192.14C509.481 188.033 500.427 185.98 487.921 185.98H478.961V147.06H487.921C497.441 147.06 505.094 145.473 510.881 142.3C516.854 138.94 519.841 133.06 519.841 124.66C519.841 117.94 517.974 112.713 514.241 108.98C510.507 105.247 505.374 103.38 498.841 103.38C491.747 103.38 486.427 105.527 482.881 109.82C479.521 114.113 477.561 119.433 477.001 125.78H430.241Z",
|
|
9289
|
-
fill:
|
|
9295
|
+
fill: re.cBBDEFB,
|
|
9290
9296
|
fillOpacity: "0.6"
|
|
9291
9297
|
}
|
|
9292
9298
|
),
|
|
9293
|
-
/* @__PURE__ */ e("rect", { x: "43", y: "87.5", width: "46", height: "20", fill:
|
|
9294
|
-
/* @__PURE__ */ e("rect", { x: "29", y: "109.5", width: "46", height: "20", fill:
|
|
9295
|
-
/* @__PURE__ */ e("rect", { x: "29", y: "65.5", width: "46", height: "20", fill:
|
|
9296
|
-
/* @__PURE__ */ e("rect", { x: "356", y: "0.5", width: "55", height: "20", fill:
|
|
9297
|
-
/* @__PURE__ */ e("rect", { x: "572", y: "142.5", width: "55", height: "20", fill:
|
|
9298
|
-
/* @__PURE__ */ e("rect", { x: "589", y: "120.5", width: "55", height: "20", fill:
|
|
9299
|
+
/* @__PURE__ */ e("rect", { x: "43", y: "87.5", width: "46", height: "20", fill: re.cD6EBFD }),
|
|
9300
|
+
/* @__PURE__ */ e("rect", { x: "29", y: "109.5", width: "46", height: "20", fill: re.cD6EBFD }),
|
|
9301
|
+
/* @__PURE__ */ e("rect", { x: "29", y: "65.5", width: "46", height: "20", fill: re.cD6EBFD }),
|
|
9302
|
+
/* @__PURE__ */ e("rect", { x: "356", y: "0.5", width: "55", height: "20", fill: re.cD6EBFD }),
|
|
9303
|
+
/* @__PURE__ */ e("rect", { x: "572", y: "142.5", width: "55", height: "20", fill: re.cD6EBFD }),
|
|
9304
|
+
/* @__PURE__ */ e("rect", { x: "589", y: "120.5", width: "55", height: "20", fill: re.cD6EBFD }),
|
|
9299
9305
|
/* @__PURE__ */ e(
|
|
9300
9306
|
"path",
|
|
9301
9307
|
{
|
|
9302
9308
|
d: "M3 255.5L651 255.5",
|
|
9303
|
-
stroke:
|
|
9309
|
+
stroke: re.c64B5F6,
|
|
9304
9310
|
strokeWidth: "5",
|
|
9305
9311
|
strokeLinecap: "round"
|
|
9306
9312
|
}
|
|
@@ -9310,7 +9316,7 @@ function sl({ width: t, height: r }) {
|
|
|
9310
9316
|
{
|
|
9311
9317
|
width: "179",
|
|
9312
9318
|
height: "192",
|
|
9313
|
-
fill:
|
|
9319
|
+
fill: re.cFFFFFF,
|
|
9314
9320
|
transform: "translate(246 60.5)"
|
|
9315
9321
|
}
|
|
9316
9322
|
) }) })
|
|
@@ -9332,7 +9338,7 @@ function Oc({ onClick: t }) {
|
|
|
9332
9338
|
gap: "md",
|
|
9333
9339
|
children: [
|
|
9334
9340
|
/* @__PURE__ */ e(sl, { width: r ? 600 : 300 }),
|
|
9335
|
-
/* @__PURE__ */ e(
|
|
9341
|
+
/* @__PURE__ */ e(w, { fontWeight: "bold", fontSize: r ? "3xl" : "2xl", children: "We Are Sorry ..." }),
|
|
9336
9342
|
t && /* @__PURE__ */ e(H, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
|
|
9337
9343
|
]
|
|
9338
9344
|
}
|
|
@@ -9356,7 +9362,7 @@ const h = {
|
|
|
9356
9362
|
cFFFFFF: "#FFFFFF"
|
|
9357
9363
|
};
|
|
9358
9364
|
function al({ width: t, height: r }) {
|
|
9359
|
-
return /* @__PURE__ */ e(
|
|
9365
|
+
return /* @__PURE__ */ e(ie, { children: /* @__PURE__ */ u(
|
|
9360
9366
|
"svg",
|
|
9361
9367
|
{
|
|
9362
9368
|
width: t,
|
|
@@ -10043,7 +10049,7 @@ function Hc({ onClick: t }) {
|
|
|
10043
10049
|
children: [
|
|
10044
10050
|
/* @__PURE__ */ e(al, { width: r ? 600 : 300 }),
|
|
10045
10051
|
/* @__PURE__ */ e(
|
|
10046
|
-
|
|
10052
|
+
w,
|
|
10047
10053
|
{
|
|
10048
10054
|
fontWeight: "bold",
|
|
10049
10055
|
fontSize: r ? "3xl" : "2xl",
|
|
@@ -10052,7 +10058,7 @@ function Hc({ onClick: t }) {
|
|
|
10052
10058
|
}
|
|
10053
10059
|
),
|
|
10054
10060
|
/* @__PURE__ */ e(
|
|
10055
|
-
|
|
10061
|
+
w,
|
|
10056
10062
|
{
|
|
10057
10063
|
fontWeight: "semibold",
|
|
10058
10064
|
fontSize: r ? "lg" : "md",
|
|
@@ -10081,8 +10087,8 @@ const Tc = (t) => {
|
|
|
10081
10087
|
}
|
|
10082
10088
|
},
|
|
10083
10089
|
children: [
|
|
10084
|
-
/* @__PURE__ */ e(Xr, { ...t.dialogTitleProps, children: typeof t.title == "string" ? /* @__PURE__ */ e(
|
|
10085
|
-
/* @__PURE__ */ e(sr, { children: typeof t.description == "string" ? /* @__PURE__ */ e(
|
|
10090
|
+
/* @__PURE__ */ e(Xr, { ...t.dialogTitleProps, children: typeof t.title == "string" ? /* @__PURE__ */ e(w, { fontSize: "lg", fontWeight: "medium", children: t.title }) : t.title }),
|
|
10091
|
+
/* @__PURE__ */ e(sr, { children: typeof t.description == "string" ? /* @__PURE__ */ e(w, { fontSize: "md", lineHeight: "leading-6", color: "brand", children: t.description }) : t.description }),
|
|
10086
10092
|
/* @__PURE__ */ e(Kr, { children: /* @__PURE__ */ e(
|
|
10087
10093
|
f,
|
|
10088
10094
|
{
|
|
@@ -10129,7 +10135,7 @@ const Tc = (t) => {
|
|
|
10129
10135
|
},
|
|
10130
10136
|
t.key
|
|
10131
10137
|
);
|
|
10132
|
-
}, Nc =
|
|
10138
|
+
}, Nc = Je(
|
|
10133
10139
|
({
|
|
10134
10140
|
children: t,
|
|
10135
10141
|
height: r,
|
|
@@ -10149,20 +10155,20 @@ const Tc = (t) => {
|
|
|
10149
10155
|
footerProps: y = { borderTop: !0 },
|
|
10150
10156
|
variantTag: k = "info"
|
|
10151
10157
|
}) => {
|
|
10152
|
-
const L = se(null), [
|
|
10158
|
+
const L = se(null), [z, D] = R("100vh");
|
|
10153
10159
|
U(() => {
|
|
10154
10160
|
const v = () => {
|
|
10155
10161
|
if (L.current) {
|
|
10156
10162
|
const M = L.current.getBoundingClientRect().top;
|
|
10157
|
-
|
|
10163
|
+
D(`calc(100vh - ${M}px)`);
|
|
10158
10164
|
}
|
|
10159
10165
|
};
|
|
10160
10166
|
return v(), window.addEventListener("resize", v), () => window.removeEventListener("resize", v);
|
|
10161
10167
|
}, []);
|
|
10162
10168
|
const C = () => a ? /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
|
|
10163
|
-
/* @__PURE__ */ e(
|
|
10169
|
+
/* @__PURE__ */ e(w, { fontWeight: "medium", children: d }),
|
|
10164
10170
|
/* @__PURE__ */ e(gt, { border: !0, text: a, variant: k })
|
|
10165
|
-
] }) : /* @__PURE__ */ e(
|
|
10171
|
+
] }) : /* @__PURE__ */ e(w, { fontWeight: "medium", children: d }), V = () => s || /* @__PURE__ */ u(
|
|
10166
10172
|
f,
|
|
10167
10173
|
{
|
|
10168
10174
|
direction: "row",
|
|
@@ -10190,11 +10196,11 @@ const Tc = (t) => {
|
|
|
10190
10196
|
style: {
|
|
10191
10197
|
backgroundColor: "var(--sa-background-primary, #ffffff)",
|
|
10192
10198
|
display: "flex",
|
|
10193
|
-
minHeight:
|
|
10199
|
+
minHeight: z,
|
|
10194
10200
|
...(g == null ? void 0 : g.style) ?? {}
|
|
10195
10201
|
},
|
|
10196
10202
|
children: [
|
|
10197
|
-
s !== null && I ? /* @__PURE__ */ e(un, { ...B, children:
|
|
10203
|
+
s !== null && I ? /* @__PURE__ */ e(un, { ...B, children: V() }) : null,
|
|
10198
10204
|
/* @__PURE__ */ e(
|
|
10199
10205
|
f,
|
|
10200
10206
|
{
|
|
@@ -10248,7 +10254,7 @@ function Dr(t) {
|
|
|
10248
10254
|
return null;
|
|
10249
10255
|
}
|
|
10250
10256
|
Dr.displayName = "LayoutDialog.Footer";
|
|
10251
|
-
const
|
|
10257
|
+
const Se = {
|
|
10252
10258
|
"lyd-root": "_lyd-root_1e92c_1",
|
|
10253
10259
|
"lyd-backdrop": "_lyd-backdrop_1e92c_28",
|
|
10254
10260
|
"lyd-panel": "_lyd-panel_1e92c_37",
|
|
@@ -10283,11 +10289,11 @@ const Fe = {
|
|
|
10283
10289
|
}
|
|
10284
10290
|
];
|
|
10285
10291
|
function ul({ value: t, onChange: r }) {
|
|
10286
|
-
return /* @__PURE__ */ e("div", { className:
|
|
10292
|
+
return /* @__PURE__ */ e("div", { className: Se["lyd-vm-group"], role: "group", "aria-label": "View mode", children: dl.map((n) => /* @__PURE__ */ e(
|
|
10287
10293
|
"button",
|
|
10288
10294
|
{
|
|
10289
10295
|
type: "button",
|
|
10290
|
-
className:
|
|
10296
|
+
className: Se["lyd-vm-btn"],
|
|
10291
10297
|
"data-active": t === n.mode,
|
|
10292
10298
|
"aria-label": `Switch to ${n.label} view`,
|
|
10293
10299
|
"aria-pressed": t === n.mode,
|
|
@@ -10348,9 +10354,9 @@ function ml(t) {
|
|
|
10348
10354
|
disableBackdropClose: p = !1,
|
|
10349
10355
|
lockBodyScroll: g = !0,
|
|
10350
10356
|
children: b
|
|
10351
|
-
} = t, [B, y] =
|
|
10352
|
-
(
|
|
10353
|
-
o === void 0 && y(
|
|
10357
|
+
} = t, [B, y] = R(i), k = o ?? B, z = ke("md") ? k : "fullscreen", D = Q(
|
|
10358
|
+
(X) => {
|
|
10359
|
+
o === void 0 && y(X), l == null || l(X);
|
|
10354
10360
|
},
|
|
10355
10361
|
[o, l]
|
|
10356
10362
|
), C = se(null);
|
|
@@ -10361,12 +10367,12 @@ function ml(t) {
|
|
|
10361
10367
|
};
|
|
10362
10368
|
}, [r, g]), U(() => {
|
|
10363
10369
|
if (!r || m) return;
|
|
10364
|
-
const
|
|
10365
|
-
|
|
10370
|
+
const X = (le) => {
|
|
10371
|
+
le.key === "Escape" && n();
|
|
10366
10372
|
};
|
|
10367
|
-
return window.addEventListener("keydown",
|
|
10373
|
+
return window.addEventListener("keydown", X), () => window.removeEventListener("keydown", X);
|
|
10368
10374
|
}, [r, m, n]);
|
|
10369
|
-
const
|
|
10375
|
+
const V = ge(
|
|
10370
10376
|
() => Et(b, vr),
|
|
10371
10377
|
[b]
|
|
10372
10378
|
), I = ge(
|
|
@@ -10381,20 +10387,20 @@ function ml(t) {
|
|
|
10381
10387
|
);
|
|
10382
10388
|
if (!r) return null;
|
|
10383
10389
|
const N = [
|
|
10384
|
-
|
|
10385
|
-
|
|
10386
|
-
|
|
10387
|
-
|
|
10390
|
+
Se["lyd-panel"],
|
|
10391
|
+
z === "modal" && Se["lyd-modal"],
|
|
10392
|
+
z === "fullscreen" && Se["lyd-fullscreen"],
|
|
10393
|
+
z === "sidebar" && Se["lyd-sidebar"]
|
|
10388
10394
|
].filter(Boolean).join(" "), $ = {
|
|
10389
10395
|
"--lyd-max-w": fl(d),
|
|
10390
10396
|
...a !== void 0 && { "--lyd-aside-w": a }
|
|
10391
|
-
},
|
|
10397
|
+
}, j = () => {
|
|
10392
10398
|
p || n();
|
|
10393
10399
|
};
|
|
10394
10400
|
return /* @__PURE__ */ u(
|
|
10395
10401
|
"div",
|
|
10396
10402
|
{
|
|
10397
|
-
className:
|
|
10403
|
+
className: Se["lyd-root"],
|
|
10398
10404
|
style: $,
|
|
10399
10405
|
role: "dialog",
|
|
10400
10406
|
"aria-modal": "true",
|
|
@@ -10402,21 +10408,21 @@ function ml(t) {
|
|
|
10402
10408
|
/* @__PURE__ */ e(
|
|
10403
10409
|
"div",
|
|
10404
10410
|
{
|
|
10405
|
-
className:
|
|
10406
|
-
onClick:
|
|
10411
|
+
className: Se["lyd-backdrop"],
|
|
10412
|
+
onClick: j,
|
|
10407
10413
|
"aria-hidden": "true"
|
|
10408
10414
|
}
|
|
10409
10415
|
),
|
|
10410
10416
|
/* @__PURE__ */ u("div", { className: N, children: [
|
|
10411
|
-
/* @__PURE__ */ u("div", { className:
|
|
10412
|
-
/* @__PURE__ */ e("div", { className:
|
|
10413
|
-
/* @__PURE__ */ u("div", { className:
|
|
10414
|
-
s && /* @__PURE__ */ e(ul, { value: k, onChange:
|
|
10417
|
+
/* @__PURE__ */ u("div", { className: Se["lyd-header"], children: [
|
|
10418
|
+
/* @__PURE__ */ e("div", { className: Se["lyd-header-content"], children: V }),
|
|
10419
|
+
/* @__PURE__ */ u("div", { className: Se["lyd-header-actions"], children: [
|
|
10420
|
+
s && /* @__PURE__ */ e(ul, { value: k, onChange: D }),
|
|
10415
10421
|
c && /* @__PURE__ */ e(
|
|
10416
10422
|
"button",
|
|
10417
10423
|
{
|
|
10418
10424
|
type: "button",
|
|
10419
|
-
className:
|
|
10425
|
+
className: Se["lyd-close-btn"],
|
|
10420
10426
|
onClick: n,
|
|
10421
10427
|
"aria-label": "Close dialog",
|
|
10422
10428
|
children: /* @__PURE__ */ e(E, { name: "Cross", size: "md" })
|
|
@@ -10424,11 +10430,11 @@ function ml(t) {
|
|
|
10424
10430
|
)
|
|
10425
10431
|
] })
|
|
10426
10432
|
] }),
|
|
10427
|
-
/* @__PURE__ */ u("div", { className:
|
|
10428
|
-
/* @__PURE__ */ e("div", { className:
|
|
10429
|
-
v && /* @__PURE__ */ e("aside", { className:
|
|
10433
|
+
/* @__PURE__ */ u("div", { className: Se["lyd-main"], children: [
|
|
10434
|
+
/* @__PURE__ */ e("div", { className: Se["lyd-body"], children: I }),
|
|
10435
|
+
v && /* @__PURE__ */ e("aside", { className: Se["lyd-aside"], children: v })
|
|
10430
10436
|
] }),
|
|
10431
|
-
M && /* @__PURE__ */ e("div", { className:
|
|
10437
|
+
M && /* @__PURE__ */ e("div", { className: Se["lyd-footer"], children: M })
|
|
10432
10438
|
] })
|
|
10433
10439
|
]
|
|
10434
10440
|
}
|
|
@@ -10627,7 +10633,7 @@ export {
|
|
|
10627
10633
|
Lo as ColumnMenu,
|
|
10628
10634
|
Tc as ConfirmationDialog,
|
|
10629
10635
|
ko as DataTable,
|
|
10630
|
-
|
|
10636
|
+
oe as DecisionWrapper,
|
|
10631
10637
|
br as EachUtils,
|
|
10632
10638
|
Rc as EmptyStatePage,
|
|
10633
10639
|
oc as FilterBar,
|
|
@@ -10671,7 +10677,7 @@ export {
|
|
|
10671
10677
|
ac as TableSection,
|
|
10672
10678
|
yo as TableWrapper,
|
|
10673
10679
|
Wc as ToggleStatus,
|
|
10674
|
-
|
|
10680
|
+
Ue as Typography,
|
|
10675
10681
|
Ic as VerticalField,
|
|
10676
10682
|
Jl as clearModuleSelection,
|
|
10677
10683
|
hc as createInitialFromUserName,
|
|
@@ -10716,7 +10722,7 @@ export {
|
|
|
10716
10722
|
lc as useFilterBarApiParams,
|
|
10717
10723
|
cc as useFilterBarControls,
|
|
10718
10724
|
dn as useModuleSelection,
|
|
10719
|
-
|
|
10725
|
+
Ve as useRouteInfo,
|
|
10720
10726
|
Zc as useRouteParams,
|
|
10721
10727
|
Qn as useSidebarBadges,
|
|
10722
10728
|
_c as useTabState,
|