@starasia/admin 8.14.0 → 8.15.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +5 -5
- package/dist/index.es.js +692 -688
- package/dist/index.umd.js +3 -3
- package/package.json +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
1
|
export * from "@starasia/alert";
|
|
2
|
-
import { Badges as gt, Badge as
|
|
2
|
+
import { Badges as gt, Badge as Pn } from "@starasia/badges";
|
|
3
3
|
export * from "@starasia/badges";
|
|
4
4
|
import { Box as m } from "@starasia/box";
|
|
5
5
|
export * from "@starasia/box";
|
|
6
|
-
import { Breadcrumb as
|
|
6
|
+
import { Breadcrumb as Zn, BreadcrumbItem as Ar, BreadcrumbLink as Gn } from "@starasia/breadcrumb";
|
|
7
7
|
export * from "@starasia/breadcrumb";
|
|
8
8
|
import { Button as $ } from "@starasia/button";
|
|
9
9
|
export * from "@starasia/button";
|
|
10
10
|
export * from "@starasia/card";
|
|
11
11
|
import { StarasiaDate as pt } from "@starasia/date";
|
|
12
12
|
export * from "@starasia/date";
|
|
13
|
-
import { Dialog as ur, DialogTitle as
|
|
13
|
+
import { Dialog as ur, DialogTitle as cn, DialogBody as hr, DialogFooter as sn } from "@starasia/dialog";
|
|
14
14
|
export * from "@starasia/dialog";
|
|
15
|
-
import { Drawer as
|
|
15
|
+
import { Drawer as an } from "@starasia/drawer";
|
|
16
16
|
export * from "@starasia/drawer";
|
|
17
17
|
import { Dropdown as It } from "@starasia/dropdown";
|
|
18
18
|
export * from "@starasia/dropdown";
|
|
19
|
-
import { useMediaQuery as De, useDebounce as
|
|
19
|
+
import { useMediaQuery as De, useDebounce as qn } from "@starasia/hooks";
|
|
20
20
|
export * from "@starasia/hooks";
|
|
21
21
|
import { searchParamsToObject as Ht } 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 Be, MenuButton as ke, MenuLists as ze, MenuHeading as
|
|
25
|
+
import { Menu as Be, MenuButton as ke, MenuLists as ze, MenuHeading as Un, MenuBody as Ae, MenuFooter as fr, MenuItem as Te } from "@starasia/menu";
|
|
26
26
|
export * from "@starasia/menu";
|
|
27
27
|
import { Pagination as mr } 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 Ve, Td as He, Table as gr, Thead as
|
|
31
|
+
import { Tr as Ve, Td as He, Table as gr, Thead as dn, Th as ut, Tbody as un, useColumnWidths as Jn } from "@starasia/table";
|
|
32
32
|
export * from "@starasia/table";
|
|
33
33
|
export * from "@starasia/tabs";
|
|
34
|
-
import { Textarea as
|
|
34
|
+
import { Textarea as Qn } from "@starasia/textarea";
|
|
35
35
|
export * from "@starasia/textarea";
|
|
36
|
-
import { useTheme as
|
|
36
|
+
import { useTheme as Yn, ThemeProvider as Rr, useColor as Xn } from "@starasia/theme";
|
|
37
37
|
export * from "@starasia/theme";
|
|
38
38
|
export * from "@starasia/toast";
|
|
39
39
|
import { Toggle as Ot } from "@starasia/toggle";
|
|
@@ -42,7 +42,7 @@ import { Tooltip as We } from "@starasia/tooltip";
|
|
|
42
42
|
export * from "@starasia/tooltip";
|
|
43
43
|
import { Checkbox as Wt } from "@starasia/checkbox";
|
|
44
44
|
export * from "@starasia/checkbox";
|
|
45
|
-
import { Radio as
|
|
45
|
+
import { Radio as Kn } from "@starasia/radio";
|
|
46
46
|
export * from "@starasia/radio";
|
|
47
47
|
import { Text as D } from "@starasia/text";
|
|
48
48
|
export * from "@starasia/text";
|
|
@@ -59,11 +59,11 @@ import { Skeleton as Ke } from "@starasia/skeleton";
|
|
|
59
59
|
export * from "@starasia/skeleton";
|
|
60
60
|
export * from "@starasia/progress-stepper";
|
|
61
61
|
import { jsx as e, Fragment as oe, jsxs as u } from "react/jsx-runtime";
|
|
62
|
-
import it, { createContext as Vt, useState as H, useContext as ft, useCallback as K, useMemo as ye, memo as Je, useEffect as J, useRef as de, useLayoutEffect as st, forwardRef as pr, isValidElement as sr, Children as
|
|
63
|
-
import { useSearchParams as Tt, useNavigate as yr, useLocation as yt, Outlet as
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
const
|
|
62
|
+
import it, { createContext as Vt, useState as H, useContext as ft, useCallback as K, useMemo as ye, memo as Je, useEffect as J, useRef as de, useLayoutEffect as st, forwardRef as pr, isValidElement as sr, Children as ei, useImperativeHandle as ti } from "react";
|
|
63
|
+
import { useSearchParams as Tt, useNavigate as yr, useLocation as yt, Outlet as Ir, Link as Bt, useParams as hn } from "react-router";
|
|
64
|
+
import ri, { createPortal as fn } from "react-dom";
|
|
65
|
+
import ni from "react-easy-crop";
|
|
66
|
+
const ii = {
|
|
67
67
|
menus: [],
|
|
68
68
|
menuBottom: void 0,
|
|
69
69
|
logo: "",
|
|
@@ -71,7 +71,7 @@ const ri = {
|
|
|
71
71
|
userData: null,
|
|
72
72
|
setUserData: () => {
|
|
73
73
|
}
|
|
74
|
-
},
|
|
74
|
+
}, mn = Vt(ii), gn = () => ft(mn), oi = (t) => {
|
|
75
75
|
const [r, n] = H(
|
|
76
76
|
(t == null ? void 0 : t.initialUserData) || null
|
|
77
77
|
);
|
|
@@ -79,7 +79,7 @@ const ri = {
|
|
|
79
79
|
userData: r,
|
|
80
80
|
setUserData: n
|
|
81
81
|
};
|
|
82
|
-
},
|
|
82
|
+
}, pn = Vt({
|
|
83
83
|
badges: {},
|
|
84
84
|
setBadge: () => {
|
|
85
85
|
},
|
|
@@ -87,7 +87,7 @@ const ri = {
|
|
|
87
87
|
},
|
|
88
88
|
clearBadge: () => {
|
|
89
89
|
}
|
|
90
|
-
}),
|
|
90
|
+
}), li = ({ children: t }) => {
|
|
91
91
|
const [r, n] = H({}), o = K(
|
|
92
92
|
(c) => {
|
|
93
93
|
n(
|
|
@@ -113,11 +113,11 @@ const ri = {
|
|
|
113
113
|
() => ({ badges: r, setBadge: i, setBadges: o, clearBadge: l }),
|
|
114
114
|
[r, i, o, l]
|
|
115
115
|
);
|
|
116
|
-
return /* @__PURE__ */ e(
|
|
117
|
-
},
|
|
116
|
+
return /* @__PURE__ */ e(pn.Provider, { value: s, children: t });
|
|
117
|
+
}, ci = () => ft(pn), Yt = (t, r) => {
|
|
118
118
|
const n = r !== void 0 ? r : t;
|
|
119
119
|
return n == null ? null : typeof n == "string" || typeof n == "number" ? { value: n } : n;
|
|
120
|
-
},
|
|
120
|
+
}, si = ({
|
|
121
121
|
router: t,
|
|
122
122
|
menus: r = [],
|
|
123
123
|
menuBottom: n,
|
|
@@ -126,9 +126,9 @@ const ri = {
|
|
|
126
126
|
initialUserData: l,
|
|
127
127
|
theme: s
|
|
128
128
|
}) => {
|
|
129
|
-
const c =
|
|
129
|
+
const c = oi({ initialUserData: l }), { theme: a } = Yn();
|
|
130
130
|
return /* @__PURE__ */ e(
|
|
131
|
-
|
|
131
|
+
mn.Provider,
|
|
132
132
|
{
|
|
133
133
|
value: {
|
|
134
134
|
logo: o,
|
|
@@ -138,11 +138,11 @@ const ri = {
|
|
|
138
138
|
setUserData: c.setUserData,
|
|
139
139
|
menuBottom: n
|
|
140
140
|
},
|
|
141
|
-
children: /* @__PURE__ */ e(
|
|
141
|
+
children: /* @__PURE__ */ e(li, { children: s ? /* @__PURE__ */ e(Rr, { value: s, children: t }) : a ? /* @__PURE__ */ e(Rr, { value: a, children: t }) : t })
|
|
142
142
|
}
|
|
143
143
|
);
|
|
144
|
-
},
|
|
145
|
-
function
|
|
144
|
+
}, ac = Je(si);
|
|
145
|
+
function ai({
|
|
146
146
|
collapsed: t = !1,
|
|
147
147
|
children: r
|
|
148
148
|
}) {
|
|
@@ -180,7 +180,7 @@ function ci({
|
|
|
180
180
|
);
|
|
181
181
|
}
|
|
182
182
|
const br = Vt(null);
|
|
183
|
-
function
|
|
183
|
+
function di({ children: t }) {
|
|
184
184
|
const [r, n] = H(null), [o, i] = H(null), [l, s] = H(null), [c, a] = H(0), d = K(() => (a((f) => f + 1), () => a((f) => f - 1)), []);
|
|
185
185
|
return /* @__PURE__ */ e(
|
|
186
186
|
br.Provider,
|
|
@@ -199,7 +199,7 @@ function si({ children: t }) {
|
|
|
199
199
|
}
|
|
200
200
|
);
|
|
201
201
|
}
|
|
202
|
-
function
|
|
202
|
+
function ui({ children: t }) {
|
|
203
203
|
const r = ft(br);
|
|
204
204
|
return r ? /* @__PURE__ */ u(oe, { children: [
|
|
205
205
|
/* @__PURE__ */ e("div", { ref: r.setPrependNode, style: { display: "contents" } }),
|
|
@@ -207,7 +207,7 @@ function ai({ children: t }) {
|
|
|
207
207
|
/* @__PURE__ */ e("div", { ref: r.setAppendNode, style: { display: "contents" } })
|
|
208
208
|
] }) : /* @__PURE__ */ e(oe, { children: t });
|
|
209
209
|
}
|
|
210
|
-
function
|
|
210
|
+
function dc({
|
|
211
211
|
children: t,
|
|
212
212
|
mode: r = "append"
|
|
213
213
|
}) {
|
|
@@ -220,10 +220,10 @@ function ac({
|
|
|
220
220
|
"[HeaderLeftSlot] used outside AppLayout — content not rendered"
|
|
221
221
|
), null;
|
|
222
222
|
const o = r === "prepend" ? n.prependNode : r === "replace" ? n.replaceNode : n.appendNode;
|
|
223
|
-
return o ?
|
|
223
|
+
return o ? fn(t, o) : null;
|
|
224
224
|
}
|
|
225
225
|
const xr = Vt(null);
|
|
226
|
-
function
|
|
226
|
+
function hi({ children: t }) {
|
|
227
227
|
const [r, n] = H({}), [o, i] = H({}), l = K((a, d) => {
|
|
228
228
|
n((f) => f[a] === d ? f : { ...f, [a]: d });
|
|
229
229
|
}, []), s = K((a) => (i((d) => ({ ...d, [a]: (d[a] ?? 0) + 1 })), () => i((d) => ({
|
|
@@ -235,7 +235,7 @@ function di({ children: t }) {
|
|
|
235
235
|
);
|
|
236
236
|
return /* @__PURE__ */ e(xr.Provider, { value: c, children: t });
|
|
237
237
|
}
|
|
238
|
-
function
|
|
238
|
+
function fi({ slotKey: t, fallback: r }) {
|
|
239
239
|
const n = ft(xr), o = n ? (n.slotCounts[t] ?? 0) > 0 : !1, i = de(n == null ? void 0 : n.setOutletNode);
|
|
240
240
|
i.current = n == null ? void 0 : n.setOutletNode;
|
|
241
241
|
const l = K(
|
|
@@ -248,7 +248,7 @@ function ui({ slotKey: t, fallback: r }) {
|
|
|
248
248
|
);
|
|
249
249
|
return /* @__PURE__ */ e(oe, { children: o ? /* @__PURE__ */ e("div", { ref: l, style: { display: "contents" } }) : r });
|
|
250
250
|
}
|
|
251
|
-
function
|
|
251
|
+
function uc({ slotKey: t, children: r }) {
|
|
252
252
|
const n = ft(xr), o = de(n == null ? void 0 : n.registerSlot);
|
|
253
253
|
if (o.current = n == null ? void 0 : n.registerSlot, J(() => {
|
|
254
254
|
var l;
|
|
@@ -258,29 +258,29 @@ function dc({ slotKey: t, children: r }) {
|
|
|
258
258
|
"[SidebarGroupSlot] used outside AppLayout — content not rendered"
|
|
259
259
|
), null;
|
|
260
260
|
const i = n.outletNodes[t];
|
|
261
|
-
return i ?
|
|
261
|
+
return i ? fn(r, i) : null;
|
|
262
262
|
}
|
|
263
263
|
const zt = "moduleSwitcherGroupId", ar = "sa-module-switcher-change";
|
|
264
|
-
function
|
|
264
|
+
function Hr() {
|
|
265
265
|
if (typeof window > "u") return null;
|
|
266
266
|
const t = window.localStorage.getItem(zt);
|
|
267
267
|
if (t === null) return null;
|
|
268
268
|
const r = Number(t);
|
|
269
269
|
return Number.isFinite(r) ? r : null;
|
|
270
270
|
}
|
|
271
|
-
function
|
|
271
|
+
function yn(t) {
|
|
272
272
|
typeof window > "u" || (t === null ? window.localStorage.removeItem(zt) : window.localStorage.setItem(zt, String(t)), window.dispatchEvent(new CustomEvent(ar, { detail: t })));
|
|
273
273
|
}
|
|
274
|
-
function
|
|
275
|
-
|
|
274
|
+
function hc() {
|
|
275
|
+
yn(null);
|
|
276
276
|
}
|
|
277
|
-
function
|
|
277
|
+
function bn() {
|
|
278
278
|
const [t, r] = H(
|
|
279
|
-
() =>
|
|
279
|
+
() => Hr()
|
|
280
280
|
);
|
|
281
281
|
return J(() => {
|
|
282
282
|
const o = () => {
|
|
283
|
-
r(
|
|
283
|
+
r(Hr());
|
|
284
284
|
}, i = (l) => {
|
|
285
285
|
l.key === zt && o();
|
|
286
286
|
};
|
|
@@ -288,11 +288,11 @@ function yn() {
|
|
|
288
288
|
window.removeEventListener(ar, o), window.removeEventListener("storage", i);
|
|
289
289
|
};
|
|
290
290
|
}, []), { selectedGroupId: t, setSelectedGroupId: (o) => {
|
|
291
|
-
|
|
291
|
+
yn(o), r(o);
|
|
292
292
|
} };
|
|
293
293
|
}
|
|
294
|
-
let wt = 0, ct = !1,
|
|
295
|
-
const
|
|
294
|
+
let wt = 0, ct = !1, Or = /* @__PURE__ */ new Set();
|
|
295
|
+
const Vr = () => /* @__PURE__ */ u(
|
|
296
296
|
"svg",
|
|
297
297
|
{
|
|
298
298
|
width: "100%",
|
|
@@ -309,7 +309,7 @@ const Or = () => /* @__PURE__ */ u(
|
|
|
309
309
|
/* @__PURE__ */ e("line", { x1: "6", y1: "1.667", x2: "6", y2: "14.333" })
|
|
310
310
|
]
|
|
311
311
|
}
|
|
312
|
-
),
|
|
312
|
+
), Tr = {
|
|
313
313
|
width: "100%",
|
|
314
314
|
display: "flex",
|
|
315
315
|
alignItems: "center",
|
|
@@ -326,7 +326,7 @@ const Or = () => /* @__PURE__ */ u(
|
|
|
326
326
|
cursor: "pointer",
|
|
327
327
|
textAlign: "left"
|
|
328
328
|
};
|
|
329
|
-
function
|
|
329
|
+
function fc({
|
|
330
330
|
children: t,
|
|
331
331
|
headerLeftSlot: r,
|
|
332
332
|
profile: n,
|
|
@@ -342,11 +342,11 @@ function hc({
|
|
|
342
342
|
logoutButton: g
|
|
343
343
|
}) {
|
|
344
344
|
var Ye, Ee;
|
|
345
|
-
const [x] = Tt(), B = x.get("embed") === "true", y =
|
|
346
|
-
() => new Set(
|
|
347
|
-
), [me, ee] = H(null), { selectedGroupId: Q, setSelectedGroupId: Z } =
|
|
345
|
+
const [x] = Tt(), B = x.get("embed") === "true", y = gn(), { badges: W } = ci(), S = yr(), L = yt(), v = !De("md"), [I, R] = H(!1), [C, E] = H(!1), [V, O] = H(!1), [j, G] = H(!1), [ne, fe] = H(
|
|
346
|
+
() => new Set(Or)
|
|
347
|
+
), [me, ee] = H(null), { selectedGroupId: Q, setSelectedGroupId: Z } = bn();
|
|
348
348
|
J(() => {
|
|
349
|
-
|
|
349
|
+
Or = ne;
|
|
350
350
|
}, [ne]);
|
|
351
351
|
const he = de(null), se = de(null);
|
|
352
352
|
J(() => {
|
|
@@ -400,9 +400,9 @@ function hc({
|
|
|
400
400
|
}, [v]);
|
|
401
401
|
const Fe = () => {
|
|
402
402
|
R(!0);
|
|
403
|
-
}, je = () => {
|
|
404
|
-
R(!1);
|
|
405
403
|
}, _e = () => {
|
|
404
|
+
R(!1);
|
|
405
|
+
}, Pe = () => {
|
|
406
406
|
R(!1), i();
|
|
407
407
|
}, ge = (F) => {
|
|
408
408
|
const P = [F.to];
|
|
@@ -449,7 +449,7 @@ function hc({
|
|
|
449
449
|
];
|
|
450
450
|
}, [y.menus, Q]);
|
|
451
451
|
if (B)
|
|
452
|
-
return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(
|
|
452
|
+
return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(Ir, {}) });
|
|
453
453
|
const $e = (F) => {
|
|
454
454
|
const P = F.children && F.children.length > 0, q = ne.has(F.id), z = P ? F.children.some((T) => xe(T.to)) : xe(F.to), _ = Yt(F.badge, W[F.id]), N = !!_ && C && !v;
|
|
455
455
|
return /* @__PURE__ */ u("div", { "data-menu-active": z || void 0, children: [
|
|
@@ -468,7 +468,7 @@ function hc({
|
|
|
468
468
|
} else
|
|
469
469
|
Ne(F.id);
|
|
470
470
|
else
|
|
471
|
-
|
|
471
|
+
S(F.to);
|
|
472
472
|
},
|
|
473
473
|
style: {
|
|
474
474
|
width: "100%",
|
|
@@ -637,7 +637,7 @@ function hc({
|
|
|
637
637
|
return /* @__PURE__ */ u(
|
|
638
638
|
"button",
|
|
639
639
|
{
|
|
640
|
-
onClick: () =>
|
|
640
|
+
onClick: () => S(Y.to),
|
|
641
641
|
style: {
|
|
642
642
|
width: "100%",
|
|
643
643
|
display: "flex",
|
|
@@ -705,7 +705,7 @@ function hc({
|
|
|
705
705
|
})()
|
|
706
706
|
] }, F.id);
|
|
707
707
|
};
|
|
708
|
-
return /* @__PURE__ */ e(
|
|
708
|
+
return /* @__PURE__ */ e(hi, { children: /* @__PURE__ */ u(di, { children: [
|
|
709
709
|
/* @__PURE__ */ u(
|
|
710
710
|
"div",
|
|
711
711
|
{
|
|
@@ -830,7 +830,7 @@ function hc({
|
|
|
830
830
|
cursor: "pointer",
|
|
831
831
|
flexShrink: 0
|
|
832
832
|
},
|
|
833
|
-
children: /* @__PURE__ */ e(
|
|
833
|
+
children: /* @__PURE__ */ e(Vr, {})
|
|
834
834
|
}
|
|
835
835
|
),
|
|
836
836
|
F && /* @__PURE__ */ e(
|
|
@@ -867,7 +867,7 @@ function hc({
|
|
|
867
867
|
height: "1rem",
|
|
868
868
|
display: "inline-flex"
|
|
869
869
|
},
|
|
870
|
-
children: /* @__PURE__ */ e(
|
|
870
|
+
children: /* @__PURE__ */ e(Vr, {})
|
|
871
871
|
}
|
|
872
872
|
)
|
|
873
873
|
}
|
|
@@ -910,7 +910,7 @@ function hc({
|
|
|
910
910
|
}
|
|
911
911
|
),
|
|
912
912
|
c && /* @__PURE__ */ e(
|
|
913
|
-
|
|
913
|
+
ai,
|
|
914
914
|
{
|
|
915
915
|
collapsed: v ? !1 : C,
|
|
916
916
|
children: c
|
|
@@ -971,7 +971,7 @@ function hc({
|
|
|
971
971
|
}
|
|
972
972
|
),
|
|
973
973
|
/* @__PURE__ */ e("div", { style: { paddingLeft: "1rem", paddingRight: "1rem", display: "flex", flexDirection: "column", gap: "var(--sa-spacing-xs, 0.25rem)" }, children: F.slotKey ? /* @__PURE__ */ e(
|
|
974
|
-
|
|
974
|
+
fi,
|
|
975
975
|
{
|
|
976
976
|
slotKey: F.slotKey,
|
|
977
977
|
fallback: F.items.map((P) => $e(P))
|
|
@@ -1050,7 +1050,7 @@ function hc({
|
|
|
1050
1050
|
)
|
|
1051
1051
|
}
|
|
1052
1052
|
),
|
|
1053
|
-
/* @__PURE__ */ e(
|
|
1053
|
+
/* @__PURE__ */ e(ui, { children: r })
|
|
1054
1054
|
] }),
|
|
1055
1055
|
/* @__PURE__ */ u("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
|
|
1056
1056
|
a,
|
|
@@ -1138,7 +1138,7 @@ function hc({
|
|
|
1138
1138
|
marginTop: "16px"
|
|
1139
1139
|
},
|
|
1140
1140
|
children: [
|
|
1141
|
-
/* @__PURE__ */ e(
|
|
1141
|
+
/* @__PURE__ */ e(Un, { children: /* @__PURE__ */ u(
|
|
1142
1142
|
"div",
|
|
1143
1143
|
{
|
|
1144
1144
|
style: {
|
|
@@ -1224,7 +1224,7 @@ function hc({
|
|
|
1224
1224
|
{
|
|
1225
1225
|
type: "button",
|
|
1226
1226
|
onClick: F.onClick,
|
|
1227
|
-
style:
|
|
1227
|
+
style: Tr,
|
|
1228
1228
|
onMouseEnter: (q) => {
|
|
1229
1229
|
q.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)";
|
|
1230
1230
|
},
|
|
@@ -1245,7 +1245,7 @@ function hc({
|
|
|
1245
1245
|
type: "button",
|
|
1246
1246
|
onClick: Fe,
|
|
1247
1247
|
style: {
|
|
1248
|
-
...
|
|
1248
|
+
...Tr,
|
|
1249
1249
|
color: "var(--sa-background-error, #c9184a)",
|
|
1250
1250
|
fontWeight: 500
|
|
1251
1251
|
},
|
|
@@ -1286,7 +1286,7 @@ function hc({
|
|
|
1286
1286
|
flex: 1,
|
|
1287
1287
|
overflowY: "auto"
|
|
1288
1288
|
},
|
|
1289
|
-
children: t || /* @__PURE__ */ e(
|
|
1289
|
+
children: t || /* @__PURE__ */ e(Ir, {})
|
|
1290
1290
|
}
|
|
1291
1291
|
)
|
|
1292
1292
|
] })
|
|
@@ -1308,12 +1308,12 @@ function hc({
|
|
|
1308
1308
|
children: s
|
|
1309
1309
|
}
|
|
1310
1310
|
),
|
|
1311
|
-
/* @__PURE__ */ u(ur, { isShow: I, onHide:
|
|
1312
|
-
/* @__PURE__ */ e(
|
|
1311
|
+
/* @__PURE__ */ u(ur, { isShow: I, onHide: _e, children: [
|
|
1312
|
+
/* @__PURE__ */ e(cn, { children: "Confirmation Logout" }),
|
|
1313
1313
|
/* @__PURE__ */ e(hr, { children: "Are you sure you want to end the session and exit the page?" }),
|
|
1314
|
-
/* @__PURE__ */ e(
|
|
1315
|
-
/* @__PURE__ */ e(m, { direction: "column", children: /* @__PURE__ */ e($, { secondary: !0, onClick:
|
|
1316
|
-
/* @__PURE__ */ e(m, { direction: "column", children: /* @__PURE__ */ e($, { primary: !0, onClick:
|
|
1314
|
+
/* @__PURE__ */ e(sn, { children: /* @__PURE__ */ e(m, { direction: "column", display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ u(ae, { direction: "row", gap: "sm", align: "center", children: [
|
|
1315
|
+
/* @__PURE__ */ e(m, { direction: "column", children: /* @__PURE__ */ e($, { secondary: !0, onClick: _e, children: "Cancel" }) }),
|
|
1316
|
+
/* @__PURE__ */ e(m, { direction: "column", children: /* @__PURE__ */ e($, { primary: !0, onClick: Pe, children: "Yes, Sure" }) })
|
|
1317
1317
|
] }) }) })
|
|
1318
1318
|
] }),
|
|
1319
1319
|
me && /* @__PURE__ */ u(oe, { children: [
|
|
@@ -1374,7 +1374,7 @@ function hc({
|
|
|
1374
1374
|
"button",
|
|
1375
1375
|
{
|
|
1376
1376
|
onClick: () => {
|
|
1377
|
-
|
|
1377
|
+
S(F.to), ee(null);
|
|
1378
1378
|
},
|
|
1379
1379
|
style: {
|
|
1380
1380
|
width: "100%",
|
|
@@ -1441,7 +1441,7 @@ const Nt = pr(
|
|
|
1441
1441
|
children: t
|
|
1442
1442
|
}
|
|
1443
1443
|
)
|
|
1444
|
-
),
|
|
1444
|
+
), Nr = ({
|
|
1445
1445
|
title: t,
|
|
1446
1446
|
iconName: r,
|
|
1447
1447
|
textColor: n,
|
|
@@ -1485,7 +1485,7 @@ const Nt = pr(
|
|
|
1485
1485
|
]
|
|
1486
1486
|
}
|
|
1487
1487
|
);
|
|
1488
|
-
},
|
|
1488
|
+
}, mi = ({
|
|
1489
1489
|
items: t,
|
|
1490
1490
|
separator: r = "/",
|
|
1491
1491
|
iconName: n,
|
|
@@ -1508,15 +1508,15 @@ const Nt = pr(
|
|
|
1508
1508
|
), g = d != null && d.to ? /* @__PURE__ */ e(Bt, { to: d.to, replace: !0, style: { textDecoration: "none" }, children: p }) : d != null && d.onClick ? /* @__PURE__ */ e(Nt, { onClick: d.onClick, children: p }) : p;
|
|
1509
1509
|
return /* @__PURE__ */ u(m, { direction: "row", gap: "xs", align: "center", children: [
|
|
1510
1510
|
g,
|
|
1511
|
-
/* @__PURE__ */ e(
|
|
1511
|
+
/* @__PURE__ */ e(Zn, { separator: r, size: "md", children: t.map((x, B) => {
|
|
1512
1512
|
const y = B === t.length - 1;
|
|
1513
|
-
return x.to && !y ? /* @__PURE__ */ e(
|
|
1513
|
+
return x.to && !y ? /* @__PURE__ */ e(Ar, { children: /* @__PURE__ */ e(Bt, { to: x.to, children: x.label }) }, B) : /* @__PURE__ */ e(Ar, { currentPage: y, children: /* @__PURE__ */ e(Gn, { onClick: y ? void 0 : x.onClick, children: x.label }) }, B);
|
|
1514
1514
|
}) })
|
|
1515
1515
|
] });
|
|
1516
|
-
},
|
|
1516
|
+
}, mc = (t) => {
|
|
1517
1517
|
const { items: r, separator: n, onClick: o, navigateTo: i, ...l } = t;
|
|
1518
1518
|
return r && r.length > 0 ? /* @__PURE__ */ e(
|
|
1519
|
-
|
|
1519
|
+
mi,
|
|
1520
1520
|
{
|
|
1521
1521
|
items: r,
|
|
1522
1522
|
separator: n,
|
|
@@ -1524,7 +1524,7 @@ const Nt = pr(
|
|
|
1524
1524
|
iconColor: l.iconColor,
|
|
1525
1525
|
hoverIconColor: l.hoverIconColor
|
|
1526
1526
|
}
|
|
1527
|
-
) : i ? /* @__PURE__ */ e(m, { direction: "row", children: /* @__PURE__ */ e(Bt, { to: i, replace: !0, style: { textDecoration: "none" }, children: /* @__PURE__ */ e(
|
|
1527
|
+
) : i ? /* @__PURE__ */ e(m, { direction: "row", children: /* @__PURE__ */ e(Bt, { to: i, replace: !0, style: { textDecoration: "none" }, children: /* @__PURE__ */ e(Nr, { ...l }) }) }) : /* @__PURE__ */ e(m, { direction: "row", children: /* @__PURE__ */ e(Nt, { onClick: o, children: /* @__PURE__ */ e(Nr, { ...l }) }) });
|
|
1528
1528
|
}, Xt = [
|
|
1529
1529
|
// brand (blue)
|
|
1530
1530
|
{
|
|
@@ -1569,7 +1569,7 @@ const Nt = pr(
|
|
|
1569
1569
|
activeShadow: "rgba(255, 117, 143, 0.25)"
|
|
1570
1570
|
}
|
|
1571
1571
|
];
|
|
1572
|
-
function
|
|
1572
|
+
function $r(t, r, n) {
|
|
1573
1573
|
return {
|
|
1574
1574
|
display: "flex",
|
|
1575
1575
|
alignItems: "center",
|
|
@@ -1585,7 +1585,7 @@ function Nr(t, r, n) {
|
|
|
1585
1585
|
transition: "box-shadow 0.2s ease, transform 0.2s ease, background-color 0.15s ease, border-color 0.15s ease"
|
|
1586
1586
|
};
|
|
1587
1587
|
}
|
|
1588
|
-
const
|
|
1588
|
+
const jr = {
|
|
1589
1589
|
fontSize: "11px",
|
|
1590
1590
|
fontWeight: 500,
|
|
1591
1591
|
textAlign: "center",
|
|
@@ -1594,7 +1594,7 @@ const $r = {
|
|
|
1594
1594
|
color: "var(--sa-background-primary, #ffffff)",
|
|
1595
1595
|
lineHeight: "1.3",
|
|
1596
1596
|
maxWidth: "80px"
|
|
1597
|
-
},
|
|
1597
|
+
}, _r = {
|
|
1598
1598
|
display: "flex",
|
|
1599
1599
|
flexDirection: "column",
|
|
1600
1600
|
alignItems: "center",
|
|
@@ -1604,7 +1604,7 @@ const $r = {
|
|
|
1604
1604
|
cursor: "pointer",
|
|
1605
1605
|
padding: 0
|
|
1606
1606
|
};
|
|
1607
|
-
function
|
|
1607
|
+
function gi({
|
|
1608
1608
|
isShow: t,
|
|
1609
1609
|
onHide: r,
|
|
1610
1610
|
menus: n,
|
|
@@ -1640,10 +1640,10 @@ function fi({
|
|
|
1640
1640
|
onClick: () => c(null),
|
|
1641
1641
|
onMouseEnter: () => s("all"),
|
|
1642
1642
|
onMouseLeave: () => s(void 0),
|
|
1643
|
-
style:
|
|
1643
|
+
style: _r,
|
|
1644
1644
|
children: [
|
|
1645
|
-
/* @__PURE__ */ e("div", { style:
|
|
1646
|
-
/* @__PURE__ */ e("span", { style:
|
|
1645
|
+
/* @__PURE__ */ e("div", { style: $r(o === null, l === "all", a), children: /* @__PURE__ */ e("div", { style: { color: a.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(M, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
|
|
1646
|
+
/* @__PURE__ */ e("span", { style: jr, children: "Semua" })
|
|
1647
1647
|
]
|
|
1648
1648
|
}
|
|
1649
1649
|
),
|
|
@@ -1656,10 +1656,10 @@ function fi({
|
|
|
1656
1656
|
onClick: () => c(d.id),
|
|
1657
1657
|
onMouseEnter: () => s(d.id),
|
|
1658
1658
|
onMouseLeave: () => s(void 0),
|
|
1659
|
-
style:
|
|
1659
|
+
style: _r,
|
|
1660
1660
|
children: [
|
|
1661
|
-
/* @__PURE__ */ e("div", { style:
|
|
1662
|
-
/* @__PURE__ */ e("span", { style:
|
|
1661
|
+
/* @__PURE__ */ e("div", { style: $r(p, g, B), children: /* @__PURE__ */ e("div", { style: { color: B.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(M, { name: x, size: "lg", style: { width: 32, height: 32 } }) }) }),
|
|
1662
|
+
/* @__PURE__ */ e("span", { style: jr, children: d.name })
|
|
1663
1663
|
]
|
|
1664
1664
|
},
|
|
1665
1665
|
d.id
|
|
@@ -1671,11 +1671,11 @@ function fi({
|
|
|
1671
1671
|
}
|
|
1672
1672
|
);
|
|
1673
1673
|
}
|
|
1674
|
-
function
|
|
1674
|
+
function gc({
|
|
1675
1675
|
onSelect: t,
|
|
1676
1676
|
"aria-label": r = "Pilih module"
|
|
1677
1677
|
} = {}) {
|
|
1678
|
-
const n =
|
|
1678
|
+
const n = gn(), o = yr(), { selectedGroupId: i, setSelectedGroupId: l } = bn(), [s, c] = H(!1), a = (d) => {
|
|
1679
1679
|
var f;
|
|
1680
1680
|
if (l(d), d !== null) {
|
|
1681
1681
|
const p = n.menus.find((x) => x.id === d), g = (f = p == null ? void 0 : p.items[0]) == null ? void 0 : f.to;
|
|
@@ -1728,7 +1728,7 @@ function mc({
|
|
|
1728
1728
|
)
|
|
1729
1729
|
] }),
|
|
1730
1730
|
/* @__PURE__ */ e(
|
|
1731
|
-
|
|
1731
|
+
gi,
|
|
1732
1732
|
{
|
|
1733
1733
|
isShow: s,
|
|
1734
1734
|
onHide: () => c(!1),
|
|
@@ -1739,7 +1739,7 @@ function mc({
|
|
|
1739
1739
|
)
|
|
1740
1740
|
] });
|
|
1741
1741
|
}
|
|
1742
|
-
const
|
|
1742
|
+
const pi = (t, r) => {
|
|
1743
1743
|
const n = [];
|
|
1744
1744
|
if (r === 0)
|
|
1745
1745
|
return n.push(t), n;
|
|
@@ -1748,7 +1748,7 @@ const mi = (t, r) => {
|
|
|
1748
1748
|
n.push(i);
|
|
1749
1749
|
}
|
|
1750
1750
|
return n;
|
|
1751
|
-
},
|
|
1751
|
+
}, yi = Je(
|
|
1752
1752
|
({
|
|
1753
1753
|
value: t,
|
|
1754
1754
|
label: r,
|
|
@@ -1780,8 +1780,8 @@ const mi = (t, r) => {
|
|
|
1780
1780
|
/* @__PURE__ */ e(He, { style: s, children: d() })
|
|
1781
1781
|
] });
|
|
1782
1782
|
}
|
|
1783
|
-
),
|
|
1784
|
-
|
|
1783
|
+
), bi = Je(({ fields: t, separator: r, labelWidth: n }) => /* @__PURE__ */ e(gr, { withColumnBorder: !1, withRowBorder: !1, children: t.map((o, i) => /* @__PURE__ */ e(
|
|
1784
|
+
yi,
|
|
1785
1785
|
{
|
|
1786
1786
|
separator: r,
|
|
1787
1787
|
labelWidth: n,
|
|
@@ -1789,7 +1789,7 @@ const mi = (t, r) => {
|
|
|
1789
1789
|
...o
|
|
1790
1790
|
},
|
|
1791
1791
|
`field-group-field-${i}`
|
|
1792
|
-
)) })),
|
|
1792
|
+
)) })), pc = Je(
|
|
1793
1793
|
({
|
|
1794
1794
|
maxRow: t = 0,
|
|
1795
1795
|
maxColumn: r = 2,
|
|
@@ -1799,7 +1799,7 @@ const mi = (t, r) => {
|
|
|
1799
1799
|
bordered: l = !1
|
|
1800
1800
|
}) => {
|
|
1801
1801
|
const s = ye(
|
|
1802
|
-
() =>
|
|
1802
|
+
() => pi(o, t),
|
|
1803
1803
|
[o, t]
|
|
1804
1804
|
), c = s.length > 2, a = () => {
|
|
1805
1805
|
switch (r) {
|
|
@@ -1836,7 +1836,7 @@ const mi = (t, r) => {
|
|
|
1836
1836
|
width: c ? a() : void 0,
|
|
1837
1837
|
marginBottom: c ? "lg" : void 0,
|
|
1838
1838
|
children: /* @__PURE__ */ e(
|
|
1839
|
-
|
|
1839
|
+
bi,
|
|
1840
1840
|
{
|
|
1841
1841
|
labelWidth: i,
|
|
1842
1842
|
fields: d,
|
|
@@ -1849,7 +1849,7 @@ const mi = (t, r) => {
|
|
|
1849
1849
|
}
|
|
1850
1850
|
);
|
|
1851
1851
|
}
|
|
1852
|
-
),
|
|
1852
|
+
), xi = ({ backButton: t }) => {
|
|
1853
1853
|
const [r, n] = H(!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
|
m,
|
|
@@ -1887,7 +1887,7 @@ const mi = (t, r) => {
|
|
|
1887
1887
|
]
|
|
1888
1888
|
}
|
|
1889
1889
|
);
|
|
1890
|
-
},
|
|
1890
|
+
}, vi = ({
|
|
1891
1891
|
backButton: t,
|
|
1892
1892
|
title: r,
|
|
1893
1893
|
titleIcon: n,
|
|
@@ -1907,7 +1907,7 @@ const mi = (t, r) => {
|
|
|
1907
1907
|
return;
|
|
1908
1908
|
}
|
|
1909
1909
|
x(-1, { replace: !0 });
|
|
1910
|
-
},
|
|
1910
|
+
}, S = () => {
|
|
1911
1911
|
if (!a) return null;
|
|
1912
1912
|
if (sr(a)) return a;
|
|
1913
1913
|
const C = a.filter(
|
|
@@ -1953,7 +1953,7 @@ const mi = (t, r) => {
|
|
|
1953
1953
|
}) }) })
|
|
1954
1954
|
] });
|
|
1955
1955
|
}, L = () => {
|
|
1956
|
-
const C = /* @__PURE__ */ e(
|
|
1956
|
+
const C = /* @__PURE__ */ e(xi, { backButton: t });
|
|
1957
1957
|
return t != null && t.navigateTo ? /* @__PURE__ */ e(m, { direction: "row", children: /* @__PURE__ */ e(
|
|
1958
1958
|
Bt,
|
|
1959
1959
|
{
|
|
@@ -2009,9 +2009,9 @@ const mi = (t, r) => {
|
|
|
2009
2009
|
}
|
|
2010
2010
|
)
|
|
2011
2011
|
] }),
|
|
2012
|
-
o && /* @__PURE__ */ e(
|
|
2012
|
+
o && /* @__PURE__ */ e(Pn, { border: !0, size: "lg", text: o, ...d })
|
|
2013
2013
|
] }) : r : null,
|
|
2014
|
-
|
|
2014
|
+
S()
|
|
2015
2015
|
]
|
|
2016
2016
|
}
|
|
2017
2017
|
)
|
|
@@ -2083,24 +2083,24 @@ const mi = (t, r) => {
|
|
|
2083
2083
|
},
|
|
2084
2084
|
B.pathname
|
|
2085
2085
|
);
|
|
2086
|
-
},
|
|
2086
|
+
}, yc = Je(vi), Ci = {
|
|
2087
2087
|
icon: "Cross",
|
|
2088
2088
|
title: ""
|
|
2089
|
-
},
|
|
2089
|
+
}, wi = "calc(100vw - 16px)", Pr = (t) => t == null ? void 0 : `min(${typeof t == "number" ? `${t}px` : t}, ${wi})`, Di = pr(
|
|
2090
2090
|
({
|
|
2091
2091
|
onHide: t,
|
|
2092
2092
|
show: r,
|
|
2093
2093
|
withBlur: n = !1,
|
|
2094
2094
|
style: o,
|
|
2095
2095
|
children: i,
|
|
2096
|
-
closeButton: l =
|
|
2096
|
+
closeButton: l = Ci,
|
|
2097
2097
|
width: s,
|
|
2098
2098
|
minWidth: c = "357px",
|
|
2099
2099
|
maxWidth: a = "357px"
|
|
2100
2100
|
}, d) => {
|
|
2101
|
-
const f =
|
|
2101
|
+
const f = Pr(s ?? c), p = Pr(s ?? a);
|
|
2102
2102
|
return /* @__PURE__ */ e(
|
|
2103
|
-
|
|
2103
|
+
an,
|
|
2104
2104
|
{
|
|
2105
2105
|
blur: n,
|
|
2106
2106
|
isShow: r,
|
|
@@ -2141,7 +2141,7 @@ const mi = (t, r) => {
|
|
|
2141
2141
|
}
|
|
2142
2142
|
);
|
|
2143
2143
|
}
|
|
2144
|
-
),
|
|
2144
|
+
), xn = Je(
|
|
2145
2145
|
({ children: t, borderBottom: r = !0, padding: n = !0 }) => {
|
|
2146
2146
|
const o = De("lg");
|
|
2147
2147
|
return /* @__PURE__ */ e(
|
|
@@ -2158,7 +2158,7 @@ const mi = (t, r) => {
|
|
|
2158
2158
|
}
|
|
2159
2159
|
);
|
|
2160
2160
|
}
|
|
2161
|
-
),
|
|
2161
|
+
), vn = Je(
|
|
2162
2162
|
({ children: t, borderTop: r = !0, padding: n = !0 }) => {
|
|
2163
2163
|
const o = De("lg");
|
|
2164
2164
|
return /* @__PURE__ */ e(
|
|
@@ -2175,7 +2175,7 @@ const mi = (t, r) => {
|
|
|
2175
2175
|
}
|
|
2176
2176
|
);
|
|
2177
2177
|
}
|
|
2178
|
-
),
|
|
2178
|
+
), ki = Je(
|
|
2179
2179
|
({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
2180
2180
|
m,
|
|
2181
2181
|
{
|
|
@@ -2188,7 +2188,7 @@ const mi = (t, r) => {
|
|
|
2188
2188
|
children: t
|
|
2189
2189
|
}
|
|
2190
2190
|
)
|
|
2191
|
-
),
|
|
2191
|
+
), bc = Je(
|
|
2192
2192
|
({
|
|
2193
2193
|
children: t,
|
|
2194
2194
|
title: r,
|
|
@@ -2243,28 +2243,28 @@ const mi = (t, r) => {
|
|
|
2243
2243
|
...(c == null ? void 0 : c.style) ?? {}
|
|
2244
2244
|
},
|
|
2245
2245
|
children: [
|
|
2246
|
-
i !== null && y ? /* @__PURE__ */ e(
|
|
2247
|
-
/* @__PURE__ */ e(
|
|
2248
|
-
l ? /* @__PURE__ */ e(
|
|
2246
|
+
i !== null && y ? /* @__PURE__ */ e(xn, { ...d, children: B() }) : null,
|
|
2247
|
+
/* @__PURE__ */ e(ki, { ...a, children: t }),
|
|
2248
|
+
l ? /* @__PURE__ */ e(vn, { ...f, children: l }) : null
|
|
2249
2249
|
]
|
|
2250
2250
|
}
|
|
2251
2251
|
);
|
|
2252
2252
|
}
|
|
2253
|
-
),
|
|
2254
|
-
H1:
|
|
2255
|
-
H2:
|
|
2256
|
-
H3:
|
|
2257
|
-
H4:
|
|
2258
|
-
H5:
|
|
2259
|
-
H6:
|
|
2260
|
-
SubH1:
|
|
2261
|
-
SubH2:
|
|
2262
|
-
SubH3:
|
|
2263
|
-
Body1:
|
|
2264
|
-
Body2:
|
|
2265
|
-
Body3:
|
|
2253
|
+
), Si = (t) => /* @__PURE__ */ e(D, { variant: "h1", children: t.children, ...t.props }), Fi = (t) => /* @__PURE__ */ e(D, { variant: "h2", children: t.children, ...t.props }), Ei = (t) => /* @__PURE__ */ e(D, { variant: "h3", children: t.children, ...t.props }), Li = (t) => /* @__PURE__ */ e(D, { variant: "h4", children: t.children, ...t.props }), Mi = (t) => /* @__PURE__ */ e(D, { variant: "h5", children: t.children, ...t.props }), Wi = (t) => /* @__PURE__ */ e(D, { variant: "h6", children: t.children, ...t.props }), Bi = (t) => /* @__PURE__ */ e(D, { variant: "sub-h1", children: t.children, ...t.props }), zi = (t) => /* @__PURE__ */ e(D, { variant: "sub-h2", children: t.children, ...t.props }), Ai = (t) => /* @__PURE__ */ e(D, { variant: "sub-h3", children: t.children, ...t.props }), Ri = (t) => /* @__PURE__ */ e(D, { variant: "body-1", children: t.children, ...t.props }), Ii = (t) => /* @__PURE__ */ e(D, { variant: "body-2", children: t.children, ...t.props }), Hi = (t) => /* @__PURE__ */ e(D, { variant: "body-3", children: t.children, ...t.props }), Ue = {
|
|
2254
|
+
H1: Si,
|
|
2255
|
+
H2: Fi,
|
|
2256
|
+
H3: Ei,
|
|
2257
|
+
H4: Li,
|
|
2258
|
+
H5: Mi,
|
|
2259
|
+
H6: Wi,
|
|
2260
|
+
SubH1: Bi,
|
|
2261
|
+
SubH2: zi,
|
|
2262
|
+
SubH3: Ai,
|
|
2263
|
+
Body1: Ri,
|
|
2264
|
+
Body2: Ii,
|
|
2265
|
+
Body3: Hi
|
|
2266
2266
|
}, Oe = () => {
|
|
2267
|
-
const [t, r] = Tt(), n = Ht(t.toString()), o =
|
|
2267
|
+
const [t, r] = Tt(), n = Ht(t.toString()), o = hn(), i = yt(), l = o.id;
|
|
2268
2268
|
return {
|
|
2269
2269
|
// query params
|
|
2270
2270
|
setSearchParams: r,
|
|
@@ -2281,7 +2281,7 @@ const mi = (t, r) => {
|
|
|
2281
2281
|
id: l,
|
|
2282
2282
|
hasId: !!l
|
|
2283
2283
|
};
|
|
2284
|
-
},
|
|
2284
|
+
}, Oi = (t) => JSON.stringify(t), Vi = (t) => JSON.stringify(t), Ti = (t) => JSON.stringify(t), Ni = (t) => JSON.stringify(t), $i = (t) => t, ji = (t) => JSON.stringify(t), At = ({
|
|
2285
2285
|
value: t,
|
|
2286
2286
|
name: r,
|
|
2287
2287
|
type: n,
|
|
@@ -2296,23 +2296,23 @@ const mi = (t, r) => {
|
|
|
2296
2296
|
let d;
|
|
2297
2297
|
switch (n) {
|
|
2298
2298
|
case "search":
|
|
2299
|
-
d =
|
|
2299
|
+
d = $i(t);
|
|
2300
2300
|
break;
|
|
2301
2301
|
case "dropdown":
|
|
2302
2302
|
case "dropdown-multiple":
|
|
2303
|
-
d =
|
|
2303
|
+
d = Oi(t);
|
|
2304
2304
|
break;
|
|
2305
2305
|
case "radio":
|
|
2306
|
-
d =
|
|
2306
|
+
d = Vi(t);
|
|
2307
2307
|
break;
|
|
2308
2308
|
case "date-range":
|
|
2309
|
-
d =
|
|
2309
|
+
d = Ti(t);
|
|
2310
2310
|
break;
|
|
2311
2311
|
case "advanced-date-range":
|
|
2312
|
-
d =
|
|
2312
|
+
d = ji(t);
|
|
2313
2313
|
break;
|
|
2314
2314
|
case "date":
|
|
2315
|
-
d =
|
|
2315
|
+
d = Ni(t);
|
|
2316
2316
|
break;
|
|
2317
2317
|
default:
|
|
2318
2318
|
d = t;
|
|
@@ -2343,7 +2343,7 @@ const mi = (t, r) => {
|
|
|
2343
2343
|
}) => {
|
|
2344
2344
|
const i = n.get(r) || void 0, l = i && typeof i == "string" ? JSON.parse(i) : void 0, s = l ? l[t] : void 0;
|
|
2345
2345
|
return o === "label" && s ? JSON.parse(s)[0].label : o === "value" && s ? JSON.parse(s)[0].value : s;
|
|
2346
|
-
},
|
|
2346
|
+
}, _i = ({
|
|
2347
2347
|
name: t,
|
|
2348
2348
|
filterKey: r = "filter",
|
|
2349
2349
|
searchParams: n,
|
|
@@ -2351,7 +2351,7 @@ const mi = (t, r) => {
|
|
|
2351
2351
|
}) => {
|
|
2352
2352
|
const i = n.get(r) || void 0, l = i && typeof i == "string" ? JSON.parse(i) : void 0, s = l ? l[t] : void 0;
|
|
2353
2353
|
return o === "label" && s ? JSON.parse(s).map((c) => c.label) : o === "value" && s ? JSON.parse(s).map((c) => c.value) : o === "array" && s ? JSON.parse(s) : s;
|
|
2354
|
-
},
|
|
2354
|
+
}, xc = ({
|
|
2355
2355
|
name: t,
|
|
2356
2356
|
filterKey: r = "filter",
|
|
2357
2357
|
searchParams: n,
|
|
@@ -2362,7 +2362,7 @@ const mi = (t, r) => {
|
|
|
2362
2362
|
}, vr = (t, r, n) => {
|
|
2363
2363
|
const o = r.get(n || "filter") || void 0, i = o && typeof o == "string" ? JSON.parse(o) : void 0;
|
|
2364
2364
|
return i ? i[t] : void 0;
|
|
2365
|
-
},
|
|
2365
|
+
}, vc = ({
|
|
2366
2366
|
name: t,
|
|
2367
2367
|
filterKey: r = "filter",
|
|
2368
2368
|
searchParams: n
|
|
@@ -2372,21 +2372,21 @@ const mi = (t, r) => {
|
|
|
2372
2372
|
start: l ? JSON.parse(l).from : void 0,
|
|
2373
2373
|
end: l ? JSON.parse(l).to : void 0
|
|
2374
2374
|
};
|
|
2375
|
-
},
|
|
2375
|
+
}, Pi = ({
|
|
2376
2376
|
name: t,
|
|
2377
2377
|
filterKey: r = "filter",
|
|
2378
2378
|
searchParams: n
|
|
2379
2379
|
}) => {
|
|
2380
2380
|
const o = n.get(r || "filter") || void 0, i = o && typeof o == "string" ? JSON.parse(o) : void 0, l = i ? i[t] : void 0;
|
|
2381
2381
|
return l ? JSON.parse(l) : void 0;
|
|
2382
|
-
},
|
|
2382
|
+
}, Cc = (t, {
|
|
2383
2383
|
filterKey: r = "filter",
|
|
2384
2384
|
perPageKey: n = "perPage",
|
|
2385
2385
|
pageKey: o = "page"
|
|
2386
2386
|
}) => {
|
|
2387
2387
|
const i = t.get(r) || void 0, l = t.get(n) || void 0, s = t.get(o) || void 0;
|
|
2388
2388
|
return !!i || !!l || !!s;
|
|
2389
|
-
},
|
|
2389
|
+
}, Zi = ({
|
|
2390
2390
|
isOpen: t,
|
|
2391
2391
|
onClose: r,
|
|
2392
2392
|
filterKey: n,
|
|
@@ -2417,7 +2417,7 @@ const mi = (t, r) => {
|
|
|
2417
2417
|
return null;
|
|
2418
2418
|
}
|
|
2419
2419
|
};
|
|
2420
|
-
return /* @__PURE__ */ e(
|
|
2420
|
+
return /* @__PURE__ */ e(Di, { onHide: r, show: t || !1, children: /* @__PURE__ */ u(m, { direction: "column", gap: "md", children: [
|
|
2421
2421
|
/* @__PURE__ */ u(ae, { direction: "row", justify: "space-between", align: "center", children: [
|
|
2422
2422
|
/* @__PURE__ */ e(m, { direction: "column", children: "Filter" }),
|
|
2423
2423
|
/* @__PURE__ */ e(
|
|
@@ -2432,7 +2432,7 @@ const mi = (t, r) => {
|
|
|
2432
2432
|
] }),
|
|
2433
2433
|
i == null ? void 0 : i.map((g, x) => p(g, x))
|
|
2434
2434
|
] }) });
|
|
2435
|
-
},
|
|
2435
|
+
}, Gi = ({
|
|
2436
2436
|
searchKey: t = "q",
|
|
2437
2437
|
statusKey: r = "status",
|
|
2438
2438
|
searchPlaceholder: n = "Search",
|
|
@@ -2450,7 +2450,7 @@ const mi = (t, r) => {
|
|
|
2450
2450
|
titleSearchLabel: B = "Work Order",
|
|
2451
2451
|
withTitleLabels: y = !1
|
|
2452
2452
|
}) => {
|
|
2453
|
-
const
|
|
2453
|
+
const S = (g == null ? void 0 : g.isShowLabel) ?? !0, [L, w] = H(!1), [v, I] = H(0), R = () => {
|
|
2454
2454
|
I((Z) => Z + 1);
|
|
2455
2455
|
}, { searchParams: C, setSearchParams: E, getQueryParam: V } = Oe(), O = Ht(C.toString()), j = vr(t, C, c) || "", [G, ne] = H(j), fe = V(c), ee = !!(fe && !(() => {
|
|
2456
2456
|
if (fe)
|
|
@@ -2543,7 +2543,7 @@ const mi = (t, r) => {
|
|
|
2543
2543
|
),
|
|
2544
2544
|
fullWidth: !Q,
|
|
2545
2545
|
onClick: () => w(!0),
|
|
2546
|
-
children:
|
|
2546
|
+
children: S ? "Filter" : void 0
|
|
2547
2547
|
}
|
|
2548
2548
|
),
|
|
2549
2549
|
s && /* @__PURE__ */ u(
|
|
@@ -2633,7 +2633,7 @@ const mi = (t, r) => {
|
|
|
2633
2633
|
}
|
|
2634
2634
|
),
|
|
2635
2635
|
/* @__PURE__ */ e(
|
|
2636
|
-
|
|
2636
|
+
Zi,
|
|
2637
2637
|
{
|
|
2638
2638
|
isOpen: L,
|
|
2639
2639
|
onClose: () => w(!1),
|
|
@@ -2645,7 +2645,7 @@ const mi = (t, r) => {
|
|
|
2645
2645
|
]
|
|
2646
2646
|
}
|
|
2647
2647
|
);
|
|
2648
|
-
},
|
|
2648
|
+
}, qi = (t) => t === "checkbox-multiple" ? "dropdown-multiple" : t === "radio" ? "dropdown" : t === "date-compact" ? "date" : t;
|
|
2649
2649
|
function Cr({
|
|
2650
2650
|
configs: t,
|
|
2651
2651
|
filterKey: r = "filter",
|
|
@@ -2717,14 +2717,14 @@ function Cr({
|
|
|
2717
2717
|
case "dropdown-multiple":
|
|
2718
2718
|
case "checkbox-multiple":
|
|
2719
2719
|
case "radio":
|
|
2720
|
-
return
|
|
2720
|
+
return _i({
|
|
2721
2721
|
name: v.key,
|
|
2722
2722
|
get: "array",
|
|
2723
2723
|
searchParams: l,
|
|
2724
2724
|
filterKey: r
|
|
2725
2725
|
}) || [];
|
|
2726
2726
|
case "date": {
|
|
2727
|
-
const I =
|
|
2727
|
+
const I = Pi({
|
|
2728
2728
|
name: v.key,
|
|
2729
2729
|
searchParams: l,
|
|
2730
2730
|
filterKey: r
|
|
@@ -2750,7 +2750,7 @@ function Cr({
|
|
|
2750
2750
|
At({
|
|
2751
2751
|
value: I,
|
|
2752
2752
|
name: v.key,
|
|
2753
|
-
type:
|
|
2753
|
+
type: qi(v.type),
|
|
2754
2754
|
searchQueries: c,
|
|
2755
2755
|
setSearchParams: s,
|
|
2756
2756
|
filterKey: r,
|
|
@@ -2758,7 +2758,7 @@ function Cr({
|
|
|
2758
2758
|
});
|
|
2759
2759
|
},
|
|
2760
2760
|
[c, s, r, o, f]
|
|
2761
|
-
),
|
|
2761
|
+
), S = K(
|
|
2762
2762
|
(v) => {
|
|
2763
2763
|
const I = { ...c }, R = f(I);
|
|
2764
2764
|
v in R && (delete R[v], Object.keys(R).length ? I[r] = JSON.stringify(R) : delete I[r]), delete I[o], s(I);
|
|
@@ -2777,11 +2777,11 @@ function Cr({
|
|
|
2777
2777
|
toggleFilter: B,
|
|
2778
2778
|
getValue: y,
|
|
2779
2779
|
setValue: W,
|
|
2780
|
-
clearValue:
|
|
2780
|
+
clearValue: S,
|
|
2781
2781
|
clearAll: L
|
|
2782
2782
|
};
|
|
2783
2783
|
}
|
|
2784
|
-
const
|
|
2784
|
+
const Cn = {
|
|
2785
2785
|
get(t) {
|
|
2786
2786
|
return Qt.get(t) ?? null;
|
|
2787
2787
|
},
|
|
@@ -2803,7 +2803,7 @@ const vn = {
|
|
|
2803
2803
|
const i = t.hidden.filter((l) => n.has(l));
|
|
2804
2804
|
return { order: o, hidden: i };
|
|
2805
2805
|
};
|
|
2806
|
-
function
|
|
2806
|
+
function Ui({
|
|
2807
2807
|
columns: t,
|
|
2808
2808
|
scopeId: r,
|
|
2809
2809
|
storage: n,
|
|
@@ -2844,7 +2844,7 @@ function Gi({
|
|
|
2844
2844
|
), W = ye(() => {
|
|
2845
2845
|
const C = new Map(t.map((E) => [E.key, E]));
|
|
2846
2846
|
return a.order.filter((E) => C.has(E)).map((E) => ({ ...C.get(E), visible: !a.hidden.includes(E) }));
|
|
2847
|
-
}, [a, t]),
|
|
2847
|
+
}, [a, t]), S = K(
|
|
2848
2848
|
(C) => {
|
|
2849
2849
|
const E = a.hidden.includes(C) ? a.hidden.filter((V) => V !== C) : [...a.hidden, C];
|
|
2850
2850
|
y({ ...a, hidden: E });
|
|
@@ -2873,14 +2873,14 @@ function Gi({
|
|
|
2873
2873
|
state: a,
|
|
2874
2874
|
orderedColumns: W,
|
|
2875
2875
|
allVisible: R,
|
|
2876
|
-
toggleVisibility:
|
|
2876
|
+
toggleVisibility: S,
|
|
2877
2877
|
reorder: L,
|
|
2878
2878
|
setAllHidden: w,
|
|
2879
2879
|
reset: v,
|
|
2880
2880
|
applyState: I
|
|
2881
2881
|
};
|
|
2882
2882
|
}
|
|
2883
|
-
function
|
|
2883
|
+
function Ji({
|
|
2884
2884
|
scopeId: t,
|
|
2885
2885
|
storage: r,
|
|
2886
2886
|
snapshotKeys: n,
|
|
@@ -2900,15 +2900,15 @@ function qi({
|
|
|
2900
2900
|
(y) => {
|
|
2901
2901
|
const W = y.trim();
|
|
2902
2902
|
if (!W) return;
|
|
2903
|
-
const
|
|
2903
|
+
const S = {};
|
|
2904
2904
|
n.forEach((w) => {
|
|
2905
2905
|
const v = s.get(w);
|
|
2906
|
-
v != null && (
|
|
2906
|
+
v != null && (S[w] = v);
|
|
2907
2907
|
});
|
|
2908
2908
|
const L = {
|
|
2909
2909
|
id: `${Date.now()}`,
|
|
2910
2910
|
name: W,
|
|
2911
|
-
query:
|
|
2911
|
+
query: S,
|
|
2912
2912
|
columns: i == null ? void 0 : i(),
|
|
2913
2913
|
createdAt: Date.now()
|
|
2914
2914
|
};
|
|
@@ -2921,7 +2921,7 @@ function qi({
|
|
|
2921
2921
|
), B = K(
|
|
2922
2922
|
(y) => {
|
|
2923
2923
|
const W = Object.fromEntries(s.entries());
|
|
2924
|
-
n.forEach((
|
|
2924
|
+
n.forEach((S) => delete W[S]), Object.assign(W, y.query), delete W[o], c(W), y.columns && (l == null || l(y.columns));
|
|
2925
2925
|
},
|
|
2926
2926
|
[s, n, o, c, l]
|
|
2927
2927
|
);
|
|
@@ -2933,7 +2933,7 @@ function qi({
|
|
|
2933
2933
|
applyView: B
|
|
2934
2934
|
};
|
|
2935
2935
|
}
|
|
2936
|
-
function
|
|
2936
|
+
function Qi({
|
|
2937
2937
|
scopeId: t,
|
|
2938
2938
|
storage: r,
|
|
2939
2939
|
snapshotKeys: n,
|
|
@@ -2972,7 +2972,7 @@ function Ui({
|
|
|
2972
2972
|
clear: d
|
|
2973
2973
|
};
|
|
2974
2974
|
}
|
|
2975
|
-
function
|
|
2975
|
+
function Yi({
|
|
2976
2976
|
scopeId: t,
|
|
2977
2977
|
storage: r,
|
|
2978
2978
|
perPageKey: n,
|
|
@@ -3010,7 +3010,7 @@ function Ji({
|
|
|
3010
3010
|
};
|
|
3011
3011
|
}
|
|
3012
3012
|
let er = {}, tr = !1, rr = null;
|
|
3013
|
-
const
|
|
3013
|
+
const Xi = (t, r) => {
|
|
3014
3014
|
Object.assign(er, t), rr = r, !tr && (tr = !0, queueMicrotask(() => {
|
|
3015
3015
|
const n = er, o = rr;
|
|
3016
3016
|
er = {}, tr = !1, rr = null, !(!o || Object.keys(n).length === 0) && o((i) => {
|
|
@@ -3019,7 +3019,7 @@ const Qi = (t, r) => {
|
|
|
3019
3019
|
});
|
|
3020
3020
|
}));
|
|
3021
3021
|
};
|
|
3022
|
-
function
|
|
3022
|
+
function Ki({
|
|
3023
3023
|
enabled: t,
|
|
3024
3024
|
snapshotKeys: r,
|
|
3025
3025
|
perPageKey: n,
|
|
@@ -3039,10 +3039,10 @@ function Yi({
|
|
|
3039
3039
|
const f = o();
|
|
3040
3040
|
f && Object.assign(d, f);
|
|
3041
3041
|
}
|
|
3042
|
-
Object.keys(d).length !== 0 &&
|
|
3042
|
+
Object.keys(d).length !== 0 && Xi(d, s);
|
|
3043
3043
|
}, [c.pathname, t]);
|
|
3044
3044
|
}
|
|
3045
|
-
const
|
|
3045
|
+
const eo = ({
|
|
3046
3046
|
configs: t,
|
|
3047
3047
|
activeKeys: r,
|
|
3048
3048
|
onToggle: n,
|
|
@@ -3135,21 +3135,21 @@ const Xi = ({
|
|
|
3135
3135
|
}
|
|
3136
3136
|
)
|
|
3137
3137
|
] }) })
|
|
3138
|
-
] }),
|
|
3138
|
+
] }), to = (t) => {
|
|
3139
3139
|
const r = new Date(t);
|
|
3140
3140
|
return r.setHours(0, 0, 0, 0), r;
|
|
3141
|
-
},
|
|
3141
|
+
}, Zr = (t, r, n) => {
|
|
3142
3142
|
const o = new Date(t);
|
|
3143
3143
|
return n === "day" ? o.setDate(o.getDate() + r) : n === "week" ? o.setDate(o.getDate() + r * 7) : n === "month" ? o.setMonth(o.getMonth() + r) : o.setFullYear(o.getFullYear() + r), o;
|
|
3144
|
-
},
|
|
3145
|
-
const r =
|
|
3144
|
+
}, wn = (t) => {
|
|
3145
|
+
const r = to(/* @__PURE__ */ new Date());
|
|
3146
3146
|
if (t.direction === "this") {
|
|
3147
3147
|
const o = new Date(r), i = new Date(r);
|
|
3148
3148
|
return t.period === "week" ? (o.setDate(r.getDate() - r.getDay()), i.setDate(o.getDate() + 6)) : t.period === "month" ? (o.setDate(1), i.setMonth(i.getMonth() + 1, 0)) : t.period === "year" && (o.setMonth(0, 1), i.setMonth(11, 31)), { from: o, to: i };
|
|
3149
3149
|
}
|
|
3150
3150
|
const n = t.count ?? 1;
|
|
3151
|
-
return t.direction === "past" ? { from:
|
|
3152
|
-
},
|
|
3151
|
+
return t.direction === "past" ? { from: Zr(r, -n, t.period), to: r } : { from: r, to: Zr(r, n, t.period) };
|
|
3152
|
+
}, Gr = 24, Dn = (t) => t.length > Gr ? `${t.slice(0, Gr)}...` : t, Mt = (t) => t.toLocaleDateString(void 0, {
|
|
3153
3153
|
day: "2-digit",
|
|
3154
3154
|
month: "short",
|
|
3155
3155
|
year: "numeric"
|
|
@@ -3163,7 +3163,7 @@ const Xi = ({
|
|
|
3163
3163
|
"is-relative-to-today": "Is relative to today",
|
|
3164
3164
|
"is-empty": "Is empty",
|
|
3165
3165
|
"is-not-empty": "Is not empty"
|
|
3166
|
-
},
|
|
3166
|
+
}, ro = [
|
|
3167
3167
|
"is",
|
|
3168
3168
|
"is-before",
|
|
3169
3169
|
"is-after",
|
|
@@ -3177,8 +3177,8 @@ const Xi = ({
|
|
|
3177
3177
|
past: "Past",
|
|
3178
3178
|
next: "Next",
|
|
3179
3179
|
this: "This"
|
|
3180
|
-
},
|
|
3181
|
-
|
|
3180
|
+
}, no = ["day", "week", "month", "year"], io = ["past", "next", "this"], oo = (t) => t.field.type === "date-compact" ? /* @__PURE__ */ e(
|
|
3181
|
+
so,
|
|
3182
3182
|
{
|
|
3183
3183
|
field: t.field,
|
|
3184
3184
|
value: t.value,
|
|
@@ -3187,7 +3187,7 @@ const Xi = ({
|
|
|
3187
3187
|
onRemove: t.onRemove
|
|
3188
3188
|
}
|
|
3189
3189
|
) : /* @__PURE__ */ e(
|
|
3190
|
-
|
|
3190
|
+
lo,
|
|
3191
3191
|
{
|
|
3192
3192
|
field: t.field,
|
|
3193
3193
|
value: t.value,
|
|
@@ -3195,7 +3195,7 @@ const Xi = ({
|
|
|
3195
3195
|
onClear: t.onClear,
|
|
3196
3196
|
onRemove: t.onRemove
|
|
3197
3197
|
}
|
|
3198
|
-
),
|
|
3198
|
+
), lo = ({
|
|
3199
3199
|
field: t,
|
|
3200
3200
|
value: r,
|
|
3201
3201
|
onChange: n,
|
|
@@ -3208,7 +3208,7 @@ const Xi = ({
|
|
|
3208
3208
|
":"
|
|
3209
3209
|
] }),
|
|
3210
3210
|
" ",
|
|
3211
|
-
/* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children:
|
|
3211
|
+
/* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children: Dn(l) })
|
|
3212
3212
|
] }) : t.label;
|
|
3213
3213
|
return /* @__PURE__ */ u(Be, { position: "bottom-left", children: [
|
|
3214
3214
|
/* @__PURE__ */ e(ke, { children: /* @__PURE__ */ e(
|
|
@@ -3255,7 +3255,7 @@ const Xi = ({
|
|
|
3255
3255
|
}
|
|
3256
3256
|
) })
|
|
3257
3257
|
] });
|
|
3258
|
-
},
|
|
3258
|
+
}, co = (t) => {
|
|
3259
3259
|
switch (t.op) {
|
|
3260
3260
|
case "is":
|
|
3261
3261
|
case "is-before":
|
|
@@ -3278,20 +3278,20 @@ const Xi = ({
|
|
|
3278
3278
|
default:
|
|
3279
3279
|
return null;
|
|
3280
3280
|
}
|
|
3281
|
-
},
|
|
3281
|
+
}, so = ({
|
|
3282
3282
|
field: t,
|
|
3283
3283
|
value: r,
|
|
3284
3284
|
onChange: n,
|
|
3285
3285
|
onClear: o,
|
|
3286
3286
|
onRemove: i
|
|
3287
3287
|
}) => {
|
|
3288
|
-
const l = (r == null ? void 0 : r.op) ?? "is", s = r ?
|
|
3288
|
+
const l = (r == null ? void 0 : r.op) ?? "is", s = r ? co(r) : null, c = !!s, a = c ? /* @__PURE__ */ u(oe, { children: [
|
|
3289
3289
|
/* @__PURE__ */ u("span", { style: { fontWeight: 500 }, children: [
|
|
3290
3290
|
t.label,
|
|
3291
3291
|
":"
|
|
3292
3292
|
] }),
|
|
3293
3293
|
" ",
|
|
3294
|
-
/* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children:
|
|
3294
|
+
/* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children: Dn(s) })
|
|
3295
3295
|
] }) : t.label, d = (f) => {
|
|
3296
3296
|
if (f !== l) {
|
|
3297
3297
|
if (f === "is-empty" || f === "is-not-empty") {
|
|
@@ -3353,7 +3353,7 @@ const Xi = ({
|
|
|
3353
3353
|
style: { minWidth: 0 },
|
|
3354
3354
|
children: [
|
|
3355
3355
|
/* @__PURE__ */ e(D, { fontSize: "sm", fontWeight: "medium", color: "subtlest", children: t.label }),
|
|
3356
|
-
/* @__PURE__ */ e(
|
|
3356
|
+
/* @__PURE__ */ e(ao, { op: l, onChange: d })
|
|
3357
3357
|
]
|
|
3358
3358
|
}
|
|
3359
3359
|
),
|
|
@@ -3361,13 +3361,13 @@ const Xi = ({
|
|
|
3361
3361
|
]
|
|
3362
3362
|
}
|
|
3363
3363
|
),
|
|
3364
|
-
children: /* @__PURE__ */ e(
|
|
3364
|
+
children: /* @__PURE__ */ e(uo, { value: r, op: l, onChange: n })
|
|
3365
3365
|
}
|
|
3366
3366
|
),
|
|
3367
3367
|
l === "is-relative-to-today" && /* @__PURE__ */ e(fr, { children: /* @__PURE__ */ e(D, { fontSize: "xs", color: "subtlest", children: "Filter will update with the current date" }) })
|
|
3368
3368
|
] })
|
|
3369
3369
|
] });
|
|
3370
|
-
},
|
|
3370
|
+
}, ao = ({ op: t, onChange: r }) => /* @__PURE__ */ u(Be, { position: "bottom-left", children: [
|
|
3371
3371
|
/* @__PURE__ */ e(ke, { children: /* @__PURE__ */ e(
|
|
3372
3372
|
$,
|
|
3373
3373
|
{
|
|
@@ -3378,7 +3378,7 @@ const Xi = ({
|
|
|
3378
3378
|
children: Rt[t]
|
|
3379
3379
|
}
|
|
3380
3380
|
) }),
|
|
3381
|
-
/* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(Ae, { style: { width: 200 }, children:
|
|
3381
|
+
/* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(Ae, { style: { width: 200 }, children: ro.map((n) => /* @__PURE__ */ e(
|
|
3382
3382
|
Te,
|
|
3383
3383
|
{
|
|
3384
3384
|
selected: t === n,
|
|
@@ -3388,7 +3388,7 @@ const Xi = ({
|
|
|
3388
3388
|
},
|
|
3389
3389
|
n
|
|
3390
3390
|
)) }) })
|
|
3391
|
-
] }),
|
|
3391
|
+
] }), uo = ({ value: t, op: r, onChange: n }) => {
|
|
3392
3392
|
if (r === "is-empty" || r === "is-not-empty")
|
|
3393
3393
|
return /* @__PURE__ */ e(m, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(D, { fontSize: "xs", color: "subtlest", children: "No further input required." }) });
|
|
3394
3394
|
if (r === "is-between") {
|
|
@@ -3433,7 +3433,7 @@ const Xi = ({
|
|
|
3433
3433
|
);
|
|
3434
3434
|
}
|
|
3435
3435
|
return r === "is-relative-to-today" ? /* @__PURE__ */ e(
|
|
3436
|
-
|
|
3436
|
+
ho,
|
|
3437
3437
|
{
|
|
3438
3438
|
value: t == null ? void 0 : t.relative,
|
|
3439
3439
|
onChange: (o) => n({ op: r, relative: o })
|
|
@@ -3456,8 +3456,8 @@ const Xi = ({
|
|
|
3456
3456
|
},
|
|
3457
3457
|
"single"
|
|
3458
3458
|
);
|
|
3459
|
-
},
|
|
3460
|
-
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 =
|
|
3459
|
+
}, ho = ({ value: t, onChange: r }) => {
|
|
3460
|
+
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 = wn({ direction: n, count: o, period: i });
|
|
3461
3461
|
return /* @__PURE__ */ u(m, { direction: "column", display: "flex", gap: "sm", children: [
|
|
3462
3462
|
/* @__PURE__ */ u(m, { direction: "row", display: "flex", align: "center", gap: "xs", children: [
|
|
3463
3463
|
/* @__PURE__ */ u(Be, { position: "bottom-left", children: [
|
|
@@ -3471,7 +3471,7 @@ const Xi = ({
|
|
|
3471
3471
|
children: dr[n]
|
|
3472
3472
|
}
|
|
3473
3473
|
) }),
|
|
3474
|
-
/* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(Ae, { style: { width: 140 }, children:
|
|
3474
|
+
/* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(Ae, { style: { width: 140 }, children: io.map((c) => /* @__PURE__ */ e(
|
|
3475
3475
|
Te,
|
|
3476
3476
|
{
|
|
3477
3477
|
selected: n === c,
|
|
@@ -3514,7 +3514,7 @@ const Xi = ({
|
|
|
3514
3514
|
children: i
|
|
3515
3515
|
}
|
|
3516
3516
|
) }),
|
|
3517
|
-
/* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(Ae, { style: { width: 140 }, children:
|
|
3517
|
+
/* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(Ae, { style: { width: 140 }, children: no.map((c) => /* @__PURE__ */ e(
|
|
3518
3518
|
Te,
|
|
3519
3519
|
{
|
|
3520
3520
|
selected: i === c,
|
|
@@ -3543,7 +3543,7 @@ const Xi = ({
|
|
|
3543
3543
|
"relative-preview"
|
|
3544
3544
|
)
|
|
3545
3545
|
] });
|
|
3546
|
-
},
|
|
3546
|
+
}, qr = 18, fo = (t) => t.length > qr ? `${t.slice(0, qr)}...` : t, mo = ({
|
|
3547
3547
|
field: t,
|
|
3548
3548
|
value: r,
|
|
3549
3549
|
onChange: n,
|
|
@@ -3552,26 +3552,26 @@ const Xi = ({
|
|
|
3552
3552
|
}) => {
|
|
3553
3553
|
const l = t.type === "dropdown-multiple", s = r.length, c = t.searchable !== !1, [a, d] = H(""), f = t.options, p = typeof t.onSearch == "function", g = (() => {
|
|
3554
3554
|
if (p) return f;
|
|
3555
|
-
const
|
|
3556
|
-
return
|
|
3557
|
-
})(), x = (
|
|
3555
|
+
const S = a.trim().toLowerCase();
|
|
3556
|
+
return S ? f.filter((L) => L.label.toLowerCase().includes(S)) : f;
|
|
3557
|
+
})(), x = (S) => r.some((L) => L.value === S.value), B = (S) => {
|
|
3558
3558
|
if (!l) {
|
|
3559
|
-
n([{ label:
|
|
3559
|
+
n([{ label: S.label, value: S.value }]), d("");
|
|
3560
3560
|
return;
|
|
3561
3561
|
}
|
|
3562
3562
|
n(
|
|
3563
|
-
x(
|
|
3563
|
+
x(S) ? r.filter((L) => L.value !== S.value) : [...r, { label: S.label, value: S.value }]
|
|
3564
3564
|
);
|
|
3565
|
-
}, y = (
|
|
3565
|
+
}, y = (S) => {
|
|
3566
3566
|
var L;
|
|
3567
|
-
d(
|
|
3567
|
+
d(S), (L = t.onSearch) == null || L.call(t, S);
|
|
3568
3568
|
}, W = s === 0 ? t.label : /* @__PURE__ */ u(oe, { children: [
|
|
3569
3569
|
/* @__PURE__ */ u("span", { style: { fontWeight: 500 }, children: [
|
|
3570
3570
|
t.label,
|
|
3571
3571
|
":"
|
|
3572
3572
|
] }),
|
|
3573
3573
|
" ",
|
|
3574
|
-
/* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children: s === 1 ?
|
|
3574
|
+
/* @__PURE__ */ e("span", { style: { fontWeight: 400 }, children: s === 1 ? fo(r[0].label) : `${s} Selected` })
|
|
3575
3575
|
] });
|
|
3576
3576
|
return /* @__PURE__ */ u(Be, { position: "bottom-left", children: [
|
|
3577
3577
|
/* @__PURE__ */ e(ke, { children: /* @__PURE__ */ e(
|
|
@@ -3627,18 +3627,18 @@ const Xi = ({
|
|
|
3627
3627
|
direction: "column",
|
|
3628
3628
|
overflow: "overflow-y-auto",
|
|
3629
3629
|
customMaxHeight: "240px",
|
|
3630
|
-
children: t.isLoading ? /* @__PURE__ */ e(m, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(D, { fontSize: "xs", color: "subtlest", children: "Loading…" }) }) : g.length === 0 ? /* @__PURE__ */ e(m, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(D, { fontSize: "xs", color: "subtlest", children: "No results" }) }) : g.map((
|
|
3630
|
+
children: t.isLoading ? /* @__PURE__ */ e(m, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(D, { fontSize: "xs", color: "subtlest", children: "Loading…" }) }) : g.length === 0 ? /* @__PURE__ */ e(m, { paddingBlock: "sm", paddingInline: "sm", children: /* @__PURE__ */ e(D, { fontSize: "xs", color: "subtlest", children: "No results" }) }) : g.map((S) => /* @__PURE__ */ e(
|
|
3631
3631
|
Te,
|
|
3632
3632
|
{
|
|
3633
3633
|
closeOnSelect: !l,
|
|
3634
|
-
selected: x(
|
|
3635
|
-
startIcon:
|
|
3636
|
-
endIcon: x(
|
|
3637
|
-
description:
|
|
3638
|
-
onClick: () => B(
|
|
3639
|
-
children:
|
|
3634
|
+
selected: x(S),
|
|
3635
|
+
startIcon: S.avatar,
|
|
3636
|
+
endIcon: x(S) ? /* @__PURE__ */ e(M, { name: "Check" }) : void 0,
|
|
3637
|
+
description: S.description,
|
|
3638
|
+
onClick: () => B(S),
|
|
3639
|
+
children: S.label
|
|
3640
3640
|
},
|
|
3641
|
-
|
|
3641
|
+
S.value
|
|
3642
3642
|
))
|
|
3643
3643
|
}
|
|
3644
3644
|
)
|
|
@@ -3646,7 +3646,7 @@ const Xi = ({
|
|
|
3646
3646
|
}
|
|
3647
3647
|
) })
|
|
3648
3648
|
] });
|
|
3649
|
-
},
|
|
3649
|
+
}, Ur = 18, go = (t) => t.length > Ur ? `${t.slice(0, Ur)}...` : t, Jr = ({ checked: t, indeterminate: r }) => /* @__PURE__ */ e("span", { style: { pointerEvents: "none", display: "inline-flex" }, children: /* @__PURE__ */ e(
|
|
3650
3650
|
Wt,
|
|
3651
3651
|
{
|
|
3652
3652
|
size: "sm",
|
|
@@ -3656,7 +3656,7 @@ const Xi = ({
|
|
|
3656
3656
|
},
|
|
3657
3657
|
variant: r ? "indeterminate" : "select"
|
|
3658
3658
|
}
|
|
3659
|
-
) }),
|
|
3659
|
+
) }), po = ({
|
|
3660
3660
|
field: t,
|
|
3661
3661
|
value: r,
|
|
3662
3662
|
onChange: n,
|
|
@@ -3677,7 +3677,7 @@ const Xi = ({
|
|
|
3677
3677
|
":"
|
|
3678
3678
|
] }),
|
|
3679
3679
|
" ",
|
|
3680
|
-
/* @__PURE__ */ e(D, { as: "span", children: s === 1 ?
|
|
3680
|
+
/* @__PURE__ */ e(D, { as: "span", children: s === 1 ? go(r[0].label) : `${s} Selected` })
|
|
3681
3681
|
] });
|
|
3682
3682
|
return /* @__PURE__ */ u(Be, { position: "bottom-left", children: [
|
|
3683
3683
|
/* @__PURE__ */ e(ke, { children: /* @__PURE__ */ e(
|
|
@@ -3717,7 +3717,7 @@ const Xi = ({
|
|
|
3717
3717
|
selected: c,
|
|
3718
3718
|
onClick: f,
|
|
3719
3719
|
startIcon: /* @__PURE__ */ e(
|
|
3720
|
-
|
|
3720
|
+
Jr,
|
|
3721
3721
|
{
|
|
3722
3722
|
checked: c || a,
|
|
3723
3723
|
indeterminate: a
|
|
@@ -3732,7 +3732,7 @@ const Xi = ({
|
|
|
3732
3732
|
closeOnSelect: !1,
|
|
3733
3733
|
selected: l.has(g.value),
|
|
3734
3734
|
onClick: () => d(g),
|
|
3735
|
-
startIcon: /* @__PURE__ */ e(
|
|
3735
|
+
startIcon: /* @__PURE__ */ e(Jr, { checked: l.has(g.value) }),
|
|
3736
3736
|
children: g.label
|
|
3737
3737
|
},
|
|
3738
3738
|
g.value
|
|
@@ -3741,7 +3741,7 @@ const Xi = ({
|
|
|
3741
3741
|
}
|
|
3742
3742
|
) })
|
|
3743
3743
|
] });
|
|
3744
|
-
},
|
|
3744
|
+
}, kn = ({
|
|
3745
3745
|
activeKeys: t,
|
|
3746
3746
|
configByKey: r,
|
|
3747
3747
|
getValue: n,
|
|
@@ -3753,7 +3753,7 @@ const Xi = ({
|
|
|
3753
3753
|
if (!c) return null;
|
|
3754
3754
|
const a = n(c), d = c.locked ? void 0 : () => l(s);
|
|
3755
3755
|
return c.type === "date" || c.type === "date-compact" ? /* @__PURE__ */ e(
|
|
3756
|
-
|
|
3756
|
+
oo,
|
|
3757
3757
|
{
|
|
3758
3758
|
field: c,
|
|
3759
3759
|
value: a,
|
|
@@ -3763,7 +3763,7 @@ const Xi = ({
|
|
|
3763
3763
|
},
|
|
3764
3764
|
s
|
|
3765
3765
|
) : c.type === "checkbox-multiple" ? /* @__PURE__ */ e(
|
|
3766
|
-
|
|
3766
|
+
po,
|
|
3767
3767
|
{
|
|
3768
3768
|
field: c,
|
|
3769
3769
|
value: a || [],
|
|
@@ -3773,7 +3773,7 @@ const Xi = ({
|
|
|
3773
3773
|
},
|
|
3774
3774
|
s
|
|
3775
3775
|
) : /* @__PURE__ */ e(
|
|
3776
|
-
|
|
3776
|
+
mo,
|
|
3777
3777
|
{
|
|
3778
3778
|
field: c,
|
|
3779
3779
|
value: a || [],
|
|
@@ -3783,7 +3783,7 @@ const Xi = ({
|
|
|
3783
3783
|
},
|
|
3784
3784
|
s
|
|
3785
3785
|
);
|
|
3786
|
-
}) }),
|
|
3786
|
+
}) }), Qr = (t) => `${t} Rows`, yo = ({
|
|
3787
3787
|
pagination: t,
|
|
3788
3788
|
pageKey: r = "page",
|
|
3789
3789
|
perPageKey: n = "perPage",
|
|
@@ -3793,7 +3793,7 @@ const Xi = ({
|
|
|
3793
3793
|
showPageSize: s = !0,
|
|
3794
3794
|
showPagination: c = !0
|
|
3795
3795
|
}) => {
|
|
3796
|
-
var
|
|
3796
|
+
var S;
|
|
3797
3797
|
const { searchQueries: a, setSearchParams: d, searchParams: f } = Oe(), p = f.get(n), g = p ? Number(p) : i, x = (L) => {
|
|
3798
3798
|
d({ ...a, [r]: String(L) });
|
|
3799
3799
|
}, B = (L) => {
|
|
@@ -3805,7 +3805,7 @@ const Xi = ({
|
|
|
3805
3805
|
});
|
|
3806
3806
|
}, 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), W = (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));
|
|
3807
3807
|
return /* @__PURE__ */ u(oe, { children: [
|
|
3808
|
-
l && /* @__PURE__ */ e(D, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${y}-${W} of ${((
|
|
3808
|
+
l && /* @__PURE__ */ e(D, { fontSize: "sm", fontWeight: "medium", color: "primary", truncate: !0, children: `${y}-${W} of ${((S = t == null ? void 0 : t.totalData) == null ? void 0 : S.toLocaleString()) || 0}` }),
|
|
3809
3809
|
s && /* @__PURE__ */ u(Be, { position: "bottom-left", children: [
|
|
3810
3810
|
/* @__PURE__ */ e(ke, { children: /* @__PURE__ */ e(
|
|
3811
3811
|
$,
|
|
@@ -3815,7 +3815,7 @@ const Xi = ({
|
|
|
3815
3815
|
size: "sm",
|
|
3816
3816
|
iconRight: /* @__PURE__ */ e(M, { name: "ChevronSmallDown" }),
|
|
3817
3817
|
"aria-label": "Rows per page",
|
|
3818
|
-
children:
|
|
3818
|
+
children: Qr(g)
|
|
3819
3819
|
}
|
|
3820
3820
|
) }),
|
|
3821
3821
|
/* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(Ae, { children: o.map((L) => /* @__PURE__ */ e(
|
|
@@ -3823,7 +3823,7 @@ const Xi = ({
|
|
|
3823
3823
|
{
|
|
3824
3824
|
selected: L === g,
|
|
3825
3825
|
onClick: () => B(String(L)),
|
|
3826
|
-
children:
|
|
3826
|
+
children: Qr(L)
|
|
3827
3827
|
},
|
|
3828
3828
|
L
|
|
3829
3829
|
)) }) })
|
|
@@ -3854,7 +3854,7 @@ const Xi = ({
|
|
|
3854
3854
|
)
|
|
3855
3855
|
] });
|
|
3856
3856
|
};
|
|
3857
|
-
function
|
|
3857
|
+
function bo(t, r, n = !0) {
|
|
3858
3858
|
J(() => {
|
|
3859
3859
|
if (!n) return;
|
|
3860
3860
|
const o = (i) => {
|
|
@@ -3866,7 +3866,7 @@ function po(t, r, n = !0) {
|
|
|
3866
3866
|
return window.addEventListener("keydown", o), () => window.removeEventListener("keydown", o);
|
|
3867
3867
|
}, [t, r, n]);
|
|
3868
3868
|
}
|
|
3869
|
-
const
|
|
3869
|
+
const xo = 240, Sn = ({
|
|
3870
3870
|
searchKey: t = "q",
|
|
3871
3871
|
filterKey: r = "filter",
|
|
3872
3872
|
pageKey: n = "page",
|
|
@@ -3874,7 +3874,7 @@ const yo = 240, kn = ({
|
|
|
3874
3874
|
shortcut: i = "/",
|
|
3875
3875
|
collapsible: l = !0
|
|
3876
3876
|
}) => {
|
|
3877
|
-
const { searchParams: s, setSearchParams: c, searchQueries: a } = Oe(), d = vr(t, s, r) || "", [f, p] = H(!l || !!d), [g, x] = H(l && !d), [B, y] = H(d), W =
|
|
3877
|
+
const { searchParams: s, setSearchParams: c, searchQueries: a } = Oe(), d = vr(t, s, r) || "", [f, p] = H(!l || !!d), [g, x] = H(l && !d), [B, y] = H(d), W = qn(B, 350), S = de(null);
|
|
3878
3878
|
J(() => {
|
|
3879
3879
|
y(d), d && p(!0);
|
|
3880
3880
|
}, [d]), J(() => {
|
|
@@ -3893,10 +3893,10 @@ const yo = 240, kn = ({
|
|
|
3893
3893
|
const L = K(() => {
|
|
3894
3894
|
p(!0), requestAnimationFrame(() => {
|
|
3895
3895
|
var R;
|
|
3896
|
-
return (R =
|
|
3896
|
+
return (R = S.current) == null ? void 0 : R.focus();
|
|
3897
3897
|
});
|
|
3898
3898
|
}, []);
|
|
3899
|
-
return
|
|
3899
|
+
return bo(i, L), // No internal gap: the trigger and the animated input are never visible at
|
|
3900
3900
|
// the same time, so spacing to neighbours is handled by the parent cluster.
|
|
3901
3901
|
/* @__PURE__ */ u(m, { display: "flex", direction: "row", align: "center", gap: "spacing-0", children: [
|
|
3902
3902
|
g && /* @__PURE__ */ e(
|
|
@@ -3919,7 +3919,7 @@ const yo = 240, kn = ({
|
|
|
3919
3919
|
},
|
|
3920
3920
|
style: {
|
|
3921
3921
|
position: "relative",
|
|
3922
|
-
width: f ?
|
|
3922
|
+
width: f ? xo : 0,
|
|
3923
3923
|
overflow: "hidden",
|
|
3924
3924
|
transition: "width 220ms ease"
|
|
3925
3925
|
},
|
|
@@ -3927,7 +3927,7 @@ const yo = 240, kn = ({
|
|
|
3927
3927
|
/* @__PURE__ */ e(
|
|
3928
3928
|
ht,
|
|
3929
3929
|
{
|
|
3930
|
-
ref:
|
|
3930
|
+
ref: S,
|
|
3931
3931
|
size: "sm",
|
|
3932
3932
|
fullWidth: !0,
|
|
3933
3933
|
value: B,
|
|
@@ -3936,7 +3936,7 @@ const yo = 240, kn = ({
|
|
|
3936
3936
|
onChange: (R) => y(R.target.value),
|
|
3937
3937
|
onKeyDown: (R) => {
|
|
3938
3938
|
var C;
|
|
3939
|
-
l && R.key === "Escape" && !B && (p(!1), (C =
|
|
3939
|
+
l && R.key === "Escape" && !B && (p(!1), (C = S.current) == null || C.blur());
|
|
3940
3940
|
},
|
|
3941
3941
|
onBlur: () => {
|
|
3942
3942
|
l && !B && p(!1);
|
|
@@ -3972,7 +3972,7 @@ const yo = 240, kn = ({
|
|
|
3972
3972
|
}
|
|
3973
3973
|
)
|
|
3974
3974
|
] });
|
|
3975
|
-
},
|
|
3975
|
+
}, Fn = ({
|
|
3976
3976
|
columns: t,
|
|
3977
3977
|
allVisible: r,
|
|
3978
3978
|
onToggle: n,
|
|
@@ -4104,7 +4104,7 @@ const yo = 240, kn = ({
|
|
|
4104
4104
|
}
|
|
4105
4105
|
) }) })
|
|
4106
4106
|
] });
|
|
4107
|
-
},
|
|
4107
|
+
}, En = ({
|
|
4108
4108
|
views: t,
|
|
4109
4109
|
onApply: r,
|
|
4110
4110
|
onDelete: n,
|
|
@@ -4199,7 +4199,7 @@ const yo = 240, kn = ({
|
|
|
4199
4199
|
}
|
|
4200
4200
|
)
|
|
4201
4201
|
] });
|
|
4202
|
-
},
|
|
4202
|
+
}, vo = ({
|
|
4203
4203
|
isOpen: t,
|
|
4204
4204
|
onClose: r,
|
|
4205
4205
|
configs: n,
|
|
@@ -4214,7 +4214,7 @@ const yo = 240, kn = ({
|
|
|
4214
4214
|
removeFilter: p
|
|
4215
4215
|
}) => {
|
|
4216
4216
|
const g = o.length;
|
|
4217
|
-
return /* @__PURE__ */ e(
|
|
4217
|
+
return /* @__PURE__ */ e(an, { position: "bottom", isShow: t, onHide: r, children: /* @__PURE__ */ u(
|
|
4218
4218
|
m,
|
|
4219
4219
|
{
|
|
4220
4220
|
direction: "column",
|
|
@@ -4276,7 +4276,7 @@ const yo = 240, kn = ({
|
|
|
4276
4276
|
gap: "sm",
|
|
4277
4277
|
align: "center",
|
|
4278
4278
|
children: /* @__PURE__ */ e(
|
|
4279
|
-
|
|
4279
|
+
kn,
|
|
4280
4280
|
{
|
|
4281
4281
|
activeKeys: o,
|
|
4282
4282
|
configByKey: i,
|
|
@@ -4390,7 +4390,7 @@ const yo = 240, kn = ({
|
|
|
4390
4390
|
]
|
|
4391
4391
|
}
|
|
4392
4392
|
) });
|
|
4393
|
-
},
|
|
4393
|
+
}, Co = (t) => `${t} Rows`, wo = ({
|
|
4394
4394
|
perPageKey: t,
|
|
4395
4395
|
pageKey: r,
|
|
4396
4396
|
pageSizeOptions: n,
|
|
@@ -4423,13 +4423,13 @@ const yo = 240, kn = ({
|
|
|
4423
4423
|
selected: p === d,
|
|
4424
4424
|
endIcon: p === d ? /* @__PURE__ */ e(M, { name: "Check" }) : void 0,
|
|
4425
4425
|
onClick: () => f(String(p)),
|
|
4426
|
-
children:
|
|
4426
|
+
children: Co(p)
|
|
4427
4427
|
},
|
|
4428
4428
|
p
|
|
4429
4429
|
))
|
|
4430
4430
|
] }) })
|
|
4431
4431
|
] }) : null;
|
|
4432
|
-
},
|
|
4432
|
+
}, Do = (t) => {
|
|
4433
4433
|
var $e;
|
|
4434
4434
|
const {
|
|
4435
4435
|
withPadding: r,
|
|
@@ -4448,7 +4448,7 @@ const yo = 240, kn = ({
|
|
|
4448
4448
|
filterKey: B,
|
|
4449
4449
|
pageKey: y,
|
|
4450
4450
|
searchPlaceholder: W,
|
|
4451
|
-
searchShortcut:
|
|
4451
|
+
searchShortcut: S,
|
|
4452
4452
|
searchCollapsible: L,
|
|
4453
4453
|
pagination: w,
|
|
4454
4454
|
perPageKey: v,
|
|
@@ -4468,8 +4468,8 @@ const yo = 240, kn = ({
|
|
|
4468
4468
|
onApplyView: Z,
|
|
4469
4469
|
onDeleteView: he,
|
|
4470
4470
|
onSaveView: se
|
|
4471
|
-
} = t, [ie, Fe] = H(!1), { searchQueries:
|
|
4472
|
-
|
|
4471
|
+
} = t, [ie, Fe] = H(!1), { searchQueries: _e, setSearchParams: Pe } = Oe(), ge = (w == null ? void 0 : w.rangeStart) ?? (((w == null ? void 0 : w.currentPage) || 0) > 1 ? (((w == null ? void 0 : w.currentPage) || 0) - 1) * ((w == null ? void 0 : w.perPage) || 0) + 1 : 1), ve = (w == null ? void 0 : w.rangeEnd) ?? ((w == null ? void 0 : w.totalCurrentPage) !== (w == null ? void 0 : w.perPage) ? w == null ? void 0 : w.totalData : ((w == null ? void 0 : w.currentPage) || 1) * ((w == null ? void 0 : w.totalCurrentPage) || 0)), xe = (Ye) => {
|
|
4472
|
+
Pe({ ..._e, [y]: String(Ye) });
|
|
4473
4473
|
}, Ne = E || C && !!(w != null && w.totalPage), Qe = () => {
|
|
4474
4474
|
p(), Fe(!1);
|
|
4475
4475
|
};
|
|
@@ -4498,13 +4498,13 @@ const yo = 240, kn = ({
|
|
|
4498
4498
|
overflow: "overflow-auto",
|
|
4499
4499
|
children: [
|
|
4500
4500
|
g && /* @__PURE__ */ e(
|
|
4501
|
-
|
|
4501
|
+
Sn,
|
|
4502
4502
|
{
|
|
4503
4503
|
searchKey: x,
|
|
4504
4504
|
filterKey: B,
|
|
4505
4505
|
pageKey: y,
|
|
4506
4506
|
placeholder: W,
|
|
4507
|
-
shortcut:
|
|
4507
|
+
shortcut: S,
|
|
4508
4508
|
collapsible: L
|
|
4509
4509
|
}
|
|
4510
4510
|
),
|
|
@@ -4530,7 +4530,7 @@ const yo = 240, kn = ({
|
|
|
4530
4530
|
style: { marginLeft: "auto" },
|
|
4531
4531
|
children: [
|
|
4532
4532
|
ee && /* @__PURE__ */ e(
|
|
4533
|
-
|
|
4533
|
+
En,
|
|
4534
4534
|
{
|
|
4535
4535
|
views: Q,
|
|
4536
4536
|
onApply: Z,
|
|
@@ -4539,7 +4539,7 @@ const yo = 240, kn = ({
|
|
|
4539
4539
|
}
|
|
4540
4540
|
),
|
|
4541
4541
|
O && /* @__PURE__ */ e(
|
|
4542
|
-
|
|
4542
|
+
Fn,
|
|
4543
4543
|
{
|
|
4544
4544
|
columns: j,
|
|
4545
4545
|
allVisible: G,
|
|
@@ -4549,7 +4549,7 @@ const yo = 240, kn = ({
|
|
|
4549
4549
|
}
|
|
4550
4550
|
),
|
|
4551
4551
|
/* @__PURE__ */ e(
|
|
4552
|
-
|
|
4552
|
+
wo,
|
|
4553
4553
|
{
|
|
4554
4554
|
perPageKey: v,
|
|
4555
4555
|
pageKey: y,
|
|
@@ -4590,7 +4590,7 @@ const yo = 240, kn = ({
|
|
|
4590
4590
|
}
|
|
4591
4591
|
),
|
|
4592
4592
|
/* @__PURE__ */ e(
|
|
4593
|
-
|
|
4593
|
+
vo,
|
|
4594
4594
|
{
|
|
4595
4595
|
isOpen: ie,
|
|
4596
4596
|
onClose: () => Fe(!1),
|
|
@@ -4609,7 +4609,7 @@ const yo = 240, kn = ({
|
|
|
4609
4609
|
]
|
|
4610
4610
|
}
|
|
4611
4611
|
);
|
|
4612
|
-
},
|
|
4612
|
+
}, wc = ({
|
|
4613
4613
|
withPadding: t = !1,
|
|
4614
4614
|
filterConfigs: r = [],
|
|
4615
4615
|
filterKey: n = "filter",
|
|
@@ -4627,14 +4627,14 @@ const yo = 240, kn = ({
|
|
|
4627
4627
|
searchShortcut: B = "/",
|
|
4628
4628
|
searchPosition: y = "right",
|
|
4629
4629
|
searchCollapsible: W = !0,
|
|
4630
|
-
pagination:
|
|
4630
|
+
pagination: S,
|
|
4631
4631
|
columns: L = [],
|
|
4632
4632
|
onColumnsChange: w,
|
|
4633
4633
|
columnsState: v,
|
|
4634
4634
|
scopeId: I,
|
|
4635
4635
|
savedViews: R,
|
|
4636
4636
|
persistLastState: C = !0,
|
|
4637
|
-
storage: E =
|
|
4637
|
+
storage: E = Cn,
|
|
4638
4638
|
onReset: V
|
|
4639
4639
|
}) => {
|
|
4640
4640
|
const O = I ?? (R == null ? void 0 : R.scopeId), {
|
|
@@ -4653,42 +4653,42 @@ const yo = 240, kn = ({
|
|
|
4653
4653
|
activeFilterKey: o,
|
|
4654
4654
|
pageKey: i,
|
|
4655
4655
|
searchKey: g
|
|
4656
|
-
}), se =
|
|
4656
|
+
}), se = Ui({
|
|
4657
4657
|
columns: L,
|
|
4658
4658
|
scopeId: O,
|
|
4659
4659
|
storage: E,
|
|
4660
4660
|
onColumnsChange: w,
|
|
4661
4661
|
value: v
|
|
4662
|
-
}), ie =
|
|
4662
|
+
}), ie = Ji({
|
|
4663
4663
|
scopeId: O,
|
|
4664
4664
|
storage: E,
|
|
4665
4665
|
snapshotKeys: [o, n, l],
|
|
4666
4666
|
pageKey: i,
|
|
4667
4667
|
getColumns: () => se.state,
|
|
4668
4668
|
applyColumns: se.applyState
|
|
4669
|
-
}), Fe =
|
|
4669
|
+
}), Fe = Qi({
|
|
4670
4670
|
scopeId: O,
|
|
4671
4671
|
storage: E,
|
|
4672
4672
|
snapshotKeys: [o, n, i],
|
|
4673
4673
|
enabled: C
|
|
4674
|
-
}),
|
|
4674
|
+
}), _e = Yi({
|
|
4675
4675
|
scopeId: O,
|
|
4676
4676
|
storage: E,
|
|
4677
4677
|
perPageKey: l,
|
|
4678
4678
|
pageSizeOptions: s,
|
|
4679
4679
|
enabled: C
|
|
4680
4680
|
});
|
|
4681
|
-
|
|
4681
|
+
Ki({
|
|
4682
4682
|
enabled: C && !!O,
|
|
4683
4683
|
snapshotKeys: [o, n, i],
|
|
4684
4684
|
perPageKey: l,
|
|
4685
4685
|
readSnapshot: Fe.read,
|
|
4686
|
-
readPerPage:
|
|
4686
|
+
readPerPage: _e.read
|
|
4687
4687
|
});
|
|
4688
|
-
const
|
|
4688
|
+
const Pe = c ?? s[0] ?? 25, ge = !!(R != null && R.enabled) && ie.enabled, ve = () => {
|
|
4689
4689
|
he(), Fe.clear(), V == null || V();
|
|
4690
4690
|
}, xe = De("md"), Ne = p ? /* @__PURE__ */ e(
|
|
4691
|
-
|
|
4691
|
+
Sn,
|
|
4692
4692
|
{
|
|
4693
4693
|
searchKey: g,
|
|
4694
4694
|
filterKey: n,
|
|
@@ -4724,7 +4724,7 @@ const yo = 240, kn = ({
|
|
|
4724
4724
|
style: { flex: "1 1 0", minWidth: 0 },
|
|
4725
4725
|
children: [
|
|
4726
4726
|
/* @__PURE__ */ e(
|
|
4727
|
-
|
|
4727
|
+
eo,
|
|
4728
4728
|
{
|
|
4729
4729
|
configs: r,
|
|
4730
4730
|
activeKeys: j,
|
|
@@ -4745,7 +4745,7 @@ const yo = 240, kn = ({
|
|
|
4745
4745
|
style: { flex: "1 1 0", minWidth: 0 },
|
|
4746
4746
|
children: [
|
|
4747
4747
|
/* @__PURE__ */ e(
|
|
4748
|
-
|
|
4748
|
+
kn,
|
|
4749
4749
|
{
|
|
4750
4750
|
activeKeys: j,
|
|
4751
4751
|
configByKey: G,
|
|
@@ -4773,13 +4773,13 @@ const yo = 240, kn = ({
|
|
|
4773
4773
|
),
|
|
4774
4774
|
/* @__PURE__ */ u(m, { direction: "row", display: "flex", align: "center", gap: "sm", children: [
|
|
4775
4775
|
/* @__PURE__ */ e(
|
|
4776
|
-
|
|
4776
|
+
yo,
|
|
4777
4777
|
{
|
|
4778
|
-
pagination:
|
|
4778
|
+
pagination: S,
|
|
4779
4779
|
pageKey: i,
|
|
4780
4780
|
perPageKey: l,
|
|
4781
4781
|
pageSizeOptions: s,
|
|
4782
|
-
defaultPerPage:
|
|
4782
|
+
defaultPerPage: Pe,
|
|
4783
4783
|
showPagination: a,
|
|
4784
4784
|
showResultCount: d,
|
|
4785
4785
|
showPageSize: f
|
|
@@ -4787,7 +4787,7 @@ const yo = 240, kn = ({
|
|
|
4787
4787
|
),
|
|
4788
4788
|
y === "right" && Ne,
|
|
4789
4789
|
ge && /* @__PURE__ */ e(
|
|
4790
|
-
|
|
4790
|
+
En,
|
|
4791
4791
|
{
|
|
4792
4792
|
views: ie.views,
|
|
4793
4793
|
onApply: ie.applyView,
|
|
@@ -4796,7 +4796,7 @@ const yo = 240, kn = ({
|
|
|
4796
4796
|
}
|
|
4797
4797
|
),
|
|
4798
4798
|
L.length > 0 && /* @__PURE__ */ e(
|
|
4799
|
-
|
|
4799
|
+
Fn,
|
|
4800
4800
|
{
|
|
4801
4801
|
columns: se.orderedColumns,
|
|
4802
4802
|
allVisible: se.allVisible,
|
|
@@ -4809,7 +4809,7 @@ const yo = 240, kn = ({
|
|
|
4809
4809
|
]
|
|
4810
4810
|
}
|
|
4811
4811
|
) : /* @__PURE__ */ e(
|
|
4812
|
-
|
|
4812
|
+
Do,
|
|
4813
4813
|
{
|
|
4814
4814
|
withPadding: t,
|
|
4815
4815
|
configs: r,
|
|
@@ -4829,10 +4829,10 @@ const yo = 240, kn = ({
|
|
|
4829
4829
|
searchPlaceholder: x,
|
|
4830
4830
|
searchShortcut: B,
|
|
4831
4831
|
searchCollapsible: W,
|
|
4832
|
-
pagination:
|
|
4832
|
+
pagination: S,
|
|
4833
4833
|
perPageKey: l,
|
|
4834
4834
|
pageSizeOptions: s,
|
|
4835
|
-
defaultPerPage:
|
|
4835
|
+
defaultPerPage: Pe,
|
|
4836
4836
|
showPagination: a,
|
|
4837
4837
|
showResultCount: d,
|
|
4838
4838
|
showPageSize: f,
|
|
@@ -4849,22 +4849,22 @@ const yo = 240, kn = ({
|
|
|
4849
4849
|
onSaveView: ie.saveView
|
|
4850
4850
|
}
|
|
4851
4851
|
);
|
|
4852
|
-
},
|
|
4852
|
+
}, ko = (t) => {
|
|
4853
4853
|
if (!Array.isArray(t) || t.length === 0) return;
|
|
4854
4854
|
const r = t[0];
|
|
4855
4855
|
return (r == null ? void 0 : r.value) != null ? String(r.value) : void 0;
|
|
4856
|
-
},
|
|
4856
|
+
}, So = (t) => {
|
|
4857
4857
|
if (!Array.isArray(t) || t.length === 0) return;
|
|
4858
4858
|
const r = t.map((n) => (n == null ? void 0 : n.value) != null ? String(n.value) : null).filter((n) => n != null);
|
|
4859
4859
|
return r.length ? r : void 0;
|
|
4860
|
-
},
|
|
4860
|
+
}, Fo = (t, r) => {
|
|
4861
4861
|
switch (t.type) {
|
|
4862
4862
|
case "dropdown":
|
|
4863
4863
|
case "radio":
|
|
4864
|
-
return
|
|
4864
|
+
return ko(r);
|
|
4865
4865
|
case "dropdown-multiple":
|
|
4866
4866
|
case "checkbox-multiple":
|
|
4867
|
-
return
|
|
4867
|
+
return So(r);
|
|
4868
4868
|
case "date":
|
|
4869
4869
|
return r instanceof Date ? r.toISOString() : void 0;
|
|
4870
4870
|
case "date-compact":
|
|
@@ -4872,11 +4872,11 @@ const yo = 240, kn = ({
|
|
|
4872
4872
|
default:
|
|
4873
4873
|
return;
|
|
4874
4874
|
}
|
|
4875
|
-
},
|
|
4875
|
+
}, Yr = (t, r) => {
|
|
4876
4876
|
if (t == null || t === "") return r;
|
|
4877
4877
|
const n = Number(t);
|
|
4878
4878
|
return Number.isFinite(n) && n > 0 ? n : r;
|
|
4879
|
-
},
|
|
4879
|
+
}, Dc = (t) => {
|
|
4880
4880
|
const {
|
|
4881
4881
|
filterConfigs: r,
|
|
4882
4882
|
filterKey: n = "filter",
|
|
@@ -4896,7 +4896,7 @@ const yo = 240, kn = ({
|
|
|
4896
4896
|
searchKey: s
|
|
4897
4897
|
}), { searchParams: y } = Oe(), W = y.toString();
|
|
4898
4898
|
return ye(() => {
|
|
4899
|
-
const L = {}, w = {}, v =
|
|
4899
|
+
const L = {}, w = {}, v = Yr(y.get(i), c), I = Yr(y.get(l), a);
|
|
4900
4900
|
L[(d == null ? void 0 : d.page) ?? "page"] = v, L[(d == null ? void 0 : d.perPage) ?? "perPage"] = I;
|
|
4901
4901
|
const R = vr(s, y, n) || "";
|
|
4902
4902
|
R && (L[(d == null ? void 0 : d.search) ?? "search"] = R);
|
|
@@ -4906,7 +4906,7 @@ const yo = 240, kn = ({
|
|
|
4906
4906
|
if (!V) continue;
|
|
4907
4907
|
const O = B(V);
|
|
4908
4908
|
w[E] = O;
|
|
4909
|
-
const j = f == null ? void 0 : f[E], G = j ? j(O) :
|
|
4909
|
+
const j = f == null ? void 0 : f[E], G = j ? j(O) : Fo(V, O);
|
|
4910
4910
|
if (G == null || Array.isArray(G) && G.length === 0)
|
|
4911
4911
|
continue;
|
|
4912
4912
|
const ne = (d == null ? void 0 : d[E]) ?? E;
|
|
@@ -4931,12 +4931,12 @@ const yo = 240, kn = ({
|
|
|
4931
4931
|
f,
|
|
4932
4932
|
g
|
|
4933
4933
|
]);
|
|
4934
|
-
},
|
|
4934
|
+
}, Eo = [
|
|
4935
4935
|
"dropdown",
|
|
4936
4936
|
"dropdown-multiple",
|
|
4937
4937
|
"checkbox-multiple",
|
|
4938
4938
|
"radio"
|
|
4939
|
-
],
|
|
4939
|
+
], kc = ({
|
|
4940
4940
|
filterConfigs: t,
|
|
4941
4941
|
filterKey: r,
|
|
4942
4942
|
activeFilterKey: n,
|
|
@@ -4949,25 +4949,25 @@ const yo = 240, kn = ({
|
|
|
4949
4949
|
activeFilterKey: n,
|
|
4950
4950
|
pageKey: o,
|
|
4951
4951
|
searchKey: i
|
|
4952
|
-
}), p = (
|
|
4952
|
+
}), p = (S, L) => {
|
|
4953
4953
|
var v;
|
|
4954
|
-
const w =
|
|
4954
|
+
const w = S.options;
|
|
4955
4955
|
return ((v = w == null ? void 0 : w.find((I) => I.value === L)) == null ? void 0 : v.label) ?? L;
|
|
4956
4956
|
}, g = K(
|
|
4957
|
-
(
|
|
4958
|
-
const L = l[
|
|
4957
|
+
(S) => {
|
|
4958
|
+
const L = l[S];
|
|
4959
4959
|
if (!L) return [];
|
|
4960
4960
|
const w = s(L);
|
|
4961
4961
|
return Array.isArray(w) ? w.map((v) => String(v.value)) : [];
|
|
4962
4962
|
},
|
|
4963
4963
|
[l, s]
|
|
4964
4964
|
), x = K(
|
|
4965
|
-
(
|
|
4966
|
-
const w = l[
|
|
4967
|
-
if (!w || !
|
|
4965
|
+
(S, L) => {
|
|
4966
|
+
const w = l[S];
|
|
4967
|
+
if (!w || !Eo.includes(w.type)) return;
|
|
4968
4968
|
const v = Array.isArray(L) ? L : [L];
|
|
4969
4969
|
if (v.length === 0) {
|
|
4970
|
-
a(
|
|
4970
|
+
a(S);
|
|
4971
4971
|
return;
|
|
4972
4972
|
}
|
|
4973
4973
|
c(
|
|
@@ -4977,17 +4977,17 @@ const yo = 240, kn = ({
|
|
|
4977
4977
|
},
|
|
4978
4978
|
[l, c, a]
|
|
4979
4979
|
), B = K(
|
|
4980
|
-
(
|
|
4981
|
-
const w = g(
|
|
4982
|
-
x(
|
|
4980
|
+
(S, L) => {
|
|
4981
|
+
const w = g(S);
|
|
4982
|
+
x(S, w.includes(L) ? w.filter((v) => v !== L) : [...w, L]);
|
|
4983
4983
|
},
|
|
4984
4984
|
[g, x]
|
|
4985
4985
|
), y = K(
|
|
4986
|
-
(
|
|
4986
|
+
(S, L) => g(S).includes(L),
|
|
4987
4987
|
[g]
|
|
4988
|
-
), W = K((
|
|
4988
|
+
), W = K((S) => a(S), [a]);
|
|
4989
4989
|
return { set: x, toggle: B, clear: W, clearAll: d, isActive: y, values: g, hasActiveFilter: f };
|
|
4990
|
-
},
|
|
4990
|
+
}, Sc = (t, r) => {
|
|
4991
4991
|
if (!t) return {};
|
|
4992
4992
|
const { fromKey: n, toKey: o, opKey: i } = r, l = {};
|
|
4993
4993
|
switch (t.op) {
|
|
@@ -5001,7 +5001,7 @@ const yo = 240, kn = ({
|
|
|
5001
5001
|
return t.from && (l[n] = new Date(t.from).toISOString()), t.to && (l[o] = new Date(t.to).toISOString()), l;
|
|
5002
5002
|
case "is-relative-to-today": {
|
|
5003
5003
|
if (!t.relative) return l;
|
|
5004
|
-
const { from: s, to: c } =
|
|
5004
|
+
const { from: s, to: c } = wn(t.relative);
|
|
5005
5005
|
return l[n] = s.toISOString(), l[o] = c.toISOString(), l;
|
|
5006
5006
|
}
|
|
5007
5007
|
case "is-empty":
|
|
@@ -5010,7 +5010,7 @@ const yo = 240, kn = ({
|
|
|
5010
5010
|
default:
|
|
5011
5011
|
return l;
|
|
5012
5012
|
}
|
|
5013
|
-
},
|
|
5013
|
+
}, Lo = ({ children: t, borderRadius: r, height: n }) => {
|
|
5014
5014
|
const o = de(null), [i, l] = H("100vh");
|
|
5015
5015
|
return J(() => {
|
|
5016
5016
|
if (n) return;
|
|
@@ -5038,7 +5038,7 @@ const yo = 240, kn = ({
|
|
|
5038
5038
|
children: t
|
|
5039
5039
|
}
|
|
5040
5040
|
);
|
|
5041
|
-
},
|
|
5041
|
+
}, Mo = ({
|
|
5042
5042
|
action: t,
|
|
5043
5043
|
rightContent: r,
|
|
5044
5044
|
leftContent: n,
|
|
@@ -5046,7 +5046,7 @@ const yo = 240, kn = ({
|
|
|
5046
5046
|
advanceFilter: i,
|
|
5047
5047
|
showFilter: l = !0
|
|
5048
5048
|
}) => {
|
|
5049
|
-
const s = De("md"), c = l ? /* @__PURE__ */ e(
|
|
5049
|
+
const s = De("md"), c = l ? /* @__PURE__ */ e(Gi, { ...i }) : null;
|
|
5050
5050
|
return /* @__PURE__ */ e(
|
|
5051
5051
|
m,
|
|
5052
5052
|
{
|
|
@@ -5102,7 +5102,7 @@ const yo = 240, kn = ({
|
|
|
5102
5102
|
] })
|
|
5103
5103
|
}
|
|
5104
5104
|
);
|
|
5105
|
-
},
|
|
5105
|
+
}, Wo = ({
|
|
5106
5106
|
totalData: t,
|
|
5107
5107
|
withMarginBottom: r = !0,
|
|
5108
5108
|
withMarginTop: n = !0
|
|
@@ -5133,7 +5133,7 @@ const yo = 240, kn = ({
|
|
|
5133
5133
|
/* @__PURE__ */ e(Ue.Body1, { children: t || 0 })
|
|
5134
5134
|
]
|
|
5135
5135
|
}
|
|
5136
|
-
),
|
|
5136
|
+
), Bo = ({
|
|
5137
5137
|
pagination: t,
|
|
5138
5138
|
pageKey: r = "page",
|
|
5139
5139
|
perPageKey: n = "perPage",
|
|
@@ -5197,7 +5197,7 @@ const yo = 240, kn = ({
|
|
|
5197
5197
|
}
|
|
5198
5198
|
)
|
|
5199
5199
|
] }) : /* @__PURE__ */ e(
|
|
5200
|
-
|
|
5200
|
+
Wo,
|
|
5201
5201
|
{
|
|
5202
5202
|
totalData: l,
|
|
5203
5203
|
withMarginBottom: !1,
|
|
@@ -5206,16 +5206,16 @@ const yo = 240, kn = ({
|
|
|
5206
5206
|
)
|
|
5207
5207
|
}
|
|
5208
5208
|
);
|
|
5209
|
-
},
|
|
5209
|
+
}, zo = ({ filter: t, columnTitle: r }) => {
|
|
5210
5210
|
const [n, o] = H(!1), i = de(null), l = de(null), s = de(null), [c, a] = H(""), [d, f] = H({ top: 0, left: 0 }), p = t.selectedValues, g = ye(() => c ? t.options.filter(
|
|
5211
5211
|
(y) => y.label.toLowerCase().includes(c.toLowerCase())
|
|
5212
5212
|
) : t.options, [t.options, c]);
|
|
5213
5213
|
J(() => {
|
|
5214
5214
|
if (n && l.current) {
|
|
5215
|
-
const y = l.current.getBoundingClientRect(), W = 280,
|
|
5215
|
+
const y = l.current.getBoundingClientRect(), W = 280, S = {
|
|
5216
5216
|
top: y.bottom + 8
|
|
5217
5217
|
};
|
|
5218
|
-
t.position === "left" || y.left + W > window.innerWidth ?
|
|
5218
|
+
t.position === "left" || y.left + W > window.innerWidth ? S.right = window.innerWidth - y.right : S.left = y.left, f(S);
|
|
5219
5219
|
}
|
|
5220
5220
|
}, [n, t.position]), J(() => {
|
|
5221
5221
|
n && s.current ? setTimeout(() => {
|
|
@@ -5229,7 +5229,7 @@ const yo = 240, kn = ({
|
|
|
5229
5229
|
return n && document.addEventListener("mousedown", y), () => document.removeEventListener("mousedown", y);
|
|
5230
5230
|
}, [n]);
|
|
5231
5231
|
const x = (y) => {
|
|
5232
|
-
const W = p.includes(y) ? p.filter((
|
|
5232
|
+
const W = p.includes(y) ? p.filter((S) => S !== y) : [...p, y];
|
|
5233
5233
|
t.onFilterChange(W);
|
|
5234
5234
|
}, B = () => t.onFilterChange([]);
|
|
5235
5235
|
return /* @__PURE__ */ u(m, { direction: "column", style: { position: "relative" }, children: [
|
|
@@ -5245,7 +5245,7 @@ const yo = 240, kn = ({
|
|
|
5245
5245
|
},
|
|
5246
5246
|
onClick: (y) => {
|
|
5247
5247
|
var W;
|
|
5248
|
-
y.stopPropagation(), n || (W = t.onOpen) == null || W.call(t), o((
|
|
5248
|
+
y.stopPropagation(), n || (W = t.onOpen) == null || W.call(t), o((S) => !S);
|
|
5249
5249
|
},
|
|
5250
5250
|
children: /* @__PURE__ */ e(
|
|
5251
5251
|
M,
|
|
@@ -5502,7 +5502,7 @@ const yo = 240, kn = ({
|
|
|
5502
5502
|
}
|
|
5503
5503
|
)
|
|
5504
5504
|
] });
|
|
5505
|
-
},
|
|
5505
|
+
}, Ao = ({
|
|
5506
5506
|
direction: t
|
|
5507
5507
|
}) => {
|
|
5508
5508
|
const r = "var(--sa-text-primary, #292a2e)", n = "var(--sa-text-subtle, #8c8f97)";
|
|
@@ -5542,7 +5542,7 @@ const yo = 240, kn = ({
|
|
|
5542
5542
|
]
|
|
5543
5543
|
}
|
|
5544
5544
|
);
|
|
5545
|
-
},
|
|
5545
|
+
}, Ro = ({ frozen: t }) => /* @__PURE__ */ u(
|
|
5546
5546
|
"svg",
|
|
5547
5547
|
{
|
|
5548
5548
|
width: "11",
|
|
@@ -5558,7 +5558,7 @@ const yo = 240, kn = ({
|
|
|
5558
5558
|
/* @__PURE__ */ e("path", { d: t ? "M7 11V7a5 5 0 0 1 10 0v4" : "M7 11V7a5 5 0 0 1 9.9-1" })
|
|
5559
5559
|
]
|
|
5560
5560
|
}
|
|
5561
|
-
), nr = "var(--sa-background-primary, #ffffff)",
|
|
5561
|
+
), nr = "var(--sa-background-primary, #ffffff)", Xr = "var(--sa-background-primary-inverse, #f8f8f8)", Io = ({
|
|
5562
5562
|
columns: t,
|
|
5563
5563
|
records: r,
|
|
5564
5564
|
handleDetail: n,
|
|
@@ -5576,7 +5576,7 @@ const yo = 240, kn = ({
|
|
|
5576
5576
|
actionsOrder: B = ["detail", "update", "delete", "custom"],
|
|
5577
5577
|
customEmptyState: y,
|
|
5578
5578
|
enableColumnResize: W = !1,
|
|
5579
|
-
defaultColumnWidths:
|
|
5579
|
+
defaultColumnWidths: S,
|
|
5580
5580
|
onColumnWidthsChange: L,
|
|
5581
5581
|
defaultMinColumnWidth: w = 60,
|
|
5582
5582
|
sort: v,
|
|
@@ -5594,18 +5594,18 @@ const yo = 240, kn = ({
|
|
|
5594
5594
|
if (!_) return;
|
|
5595
5595
|
let N;
|
|
5596
5596
|
!j || j.key !== _ ? N = { key: _, direction: "asc" } : j.direction === "asc" ? N = { key: _, direction: "desc" } : N = null, E || O(N), R == null || R(N);
|
|
5597
|
-
}, me = [n, o, i].filter((z) => z !== void 0).length, ee = !!x, Q = !!n || !!o || !!i || ee, Z = "var(--sa-border-subtle, #0b120e24)", he = `1px solid ${Z}`, se = `inset 1px 0 0 ${Z}`, ie = `inset -1px 0 0 ${Z}`, Fe = me === 3 ? ee ? "178px" : "140px" : me === 2 ? ee ? "140px" : "102px" : me === 1 ? ee ? "112px" : "74px" : ee ? "74px" : "",
|
|
5597
|
+
}, me = [n, o, i].filter((z) => z !== void 0).length, ee = !!x, Q = !!n || !!o || !!i || ee, Z = "var(--sa-border-subtle, #0b120e24)", he = `1px solid ${Z}`, se = `inset 1px 0 0 ${Z}`, ie = `inset -1px 0 0 ${Z}`, Fe = me === 3 ? ee ? "178px" : "140px" : me === 2 ? ee ? "140px" : "102px" : me === 1 ? ee ? "112px" : "74px" : ee ? "74px" : "", _e = (z, _) => {
|
|
5598
5598
|
if (!_) return z;
|
|
5599
5599
|
if (typeof _ == "function") return _(z);
|
|
5600
5600
|
if (typeof _ == "string") return z[_];
|
|
5601
|
-
}, [
|
|
5601
|
+
}, [Pe, ge] = H(!1);
|
|
5602
5602
|
J(() => {
|
|
5603
5603
|
if (!(f != null && f.current)) return;
|
|
5604
5604
|
const z = f.current;
|
|
5605
5605
|
ge(z.scrollHeight > z.clientHeight);
|
|
5606
5606
|
}, [r, f]);
|
|
5607
5607
|
const ve = de(null), [xe, Ne] = H([]), [Qe, $e] = H(
|
|
5608
|
-
() =>
|
|
5608
|
+
() => S ?? {}
|
|
5609
5609
|
), Ye = de(null);
|
|
5610
5610
|
st(() => {
|
|
5611
5611
|
if (!p || !ve.current) {
|
|
@@ -5645,14 +5645,14 @@ const yo = 240, kn = ({
|
|
|
5645
5645
|
$e(
|
|
5646
5646
|
(rt) => rt[Re.colIndex] === tt ? rt : { ...rt, [Re.colIndex]: tt }
|
|
5647
5647
|
);
|
|
5648
|
-
},
|
|
5649
|
-
document.removeEventListener("mousemove", Le), document.removeEventListener("mouseup",
|
|
5648
|
+
}, je = () => {
|
|
5649
|
+
document.removeEventListener("mousemove", Le), document.removeEventListener("mouseup", je), document.body.style.userSelect = Y, document.body.style.cursor = Ce, Ye.current = null, L && $e((Ze) => (L(Ze), Ze));
|
|
5650
5650
|
};
|
|
5651
|
-
document.addEventListener("mousemove", Le), document.addEventListener("mouseup",
|
|
5651
|
+
document.addEventListener("mousemove", Le), document.addEventListener("mouseup", je);
|
|
5652
5652
|
};
|
|
5653
5653
|
return /* @__PURE__ */ e("div", { ref: ve, children: /* @__PURE__ */ u(gr, { fullWidth: !0, children: [
|
|
5654
5654
|
/* @__PURE__ */ e(
|
|
5655
|
-
|
|
5655
|
+
dn,
|
|
5656
5656
|
{
|
|
5657
5657
|
style: {
|
|
5658
5658
|
height: "40px",
|
|
@@ -5661,7 +5661,7 @@ const yo = 240, kn = ({
|
|
|
5661
5661
|
children: /* @__PURE__ */ u(Ve, { children: [
|
|
5662
5662
|
t.map((z, _) => {
|
|
5663
5663
|
var xt, nt;
|
|
5664
|
-
const N = p > 0 && _ < p, T = xe[_] ?? 0, Y = P(z), Le = _ === t.length - 1 && Q && C,
|
|
5664
|
+
const N = p > 0 && _ < p, T = xe[_] ?? 0, Y = P(z), Le = _ === t.length - 1 && Q && C, je = G(z), Ze = !!z.sortable && !!je, Re = Ze && (j == null ? void 0 : j.key) === je ? j.direction : null, at = z.title || ((xt = z.accessor) == null ? void 0 : xt.toString()) || "", tt = (nt = z.headerTooltip) != null && nt.showIcon ? /* @__PURE__ */ e(
|
|
5665
5665
|
M,
|
|
5666
5666
|
{
|
|
5667
5667
|
name: "InfoCircle",
|
|
@@ -5692,7 +5692,7 @@ const yo = 240, kn = ({
|
|
|
5692
5692
|
children: [
|
|
5693
5693
|
Xe,
|
|
5694
5694
|
tt,
|
|
5695
|
-
/* @__PURE__ */ e(
|
|
5695
|
+
/* @__PURE__ */ e(Ao, { direction: Re })
|
|
5696
5696
|
]
|
|
5697
5697
|
}
|
|
5698
5698
|
) : /* @__PURE__ */ u("span", { style: { flex: 1, minWidth: 0, display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
@@ -5729,7 +5729,7 @@ const yo = 240, kn = ({
|
|
|
5729
5729
|
children: [
|
|
5730
5730
|
z.headerTooltip ? /* @__PURE__ */ e(We, { label: z.headerTooltip.content, position: "bottom", children: rt }) : rt,
|
|
5731
5731
|
z.filter && /* @__PURE__ */ e(
|
|
5732
|
-
|
|
5732
|
+
zo,
|
|
5733
5733
|
{
|
|
5734
5734
|
filter: z.filter,
|
|
5735
5735
|
columnTitle: z.title
|
|
@@ -5752,7 +5752,7 @@ const yo = 240, kn = ({
|
|
|
5752
5752
|
opacity: N ? 1 : 0.45,
|
|
5753
5753
|
transition: "opacity 0.15s"
|
|
5754
5754
|
},
|
|
5755
|
-
children: /* @__PURE__ */ e(
|
|
5755
|
+
children: /* @__PURE__ */ e(Ro, { frozen: N })
|
|
5756
5756
|
}
|
|
5757
5757
|
)
|
|
5758
5758
|
]
|
|
@@ -5801,7 +5801,7 @@ const yo = 240, kn = ({
|
|
|
5801
5801
|
] })
|
|
5802
5802
|
}
|
|
5803
5803
|
),
|
|
5804
|
-
/* @__PURE__ */ e(
|
|
5804
|
+
/* @__PURE__ */ e(un, { children: l ? /* @__PURE__ */ e(Ve, { children: /* @__PURE__ */ e(He, { colSpan: t.length + 1, children: /* @__PURE__ */ u(m, { direction: "column", style: { gap: "16px" }, children: [
|
|
5805
5805
|
/* @__PURE__ */ e(Ke, { variant: "list" }),
|
|
5806
5806
|
/* @__PURE__ */ e(Ke, { variant: "list" }),
|
|
5807
5807
|
/* @__PURE__ */ e(Ke, { variant: "list" }),
|
|
@@ -5813,12 +5813,12 @@ const yo = 240, kn = ({
|
|
|
5813
5813
|
style: {
|
|
5814
5814
|
transition: "background-color 0.3s ease",
|
|
5815
5815
|
padding: 0,
|
|
5816
|
-
borderBottom: _ === r.length - 1 &&
|
|
5816
|
+
borderBottom: _ === r.length - 1 && Pe ? void 0 : "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
5817
5817
|
},
|
|
5818
5818
|
onMouseEnter: (N) => {
|
|
5819
5819
|
const T = N.currentTarget;
|
|
5820
|
-
T.style.backgroundColor =
|
|
5821
|
-
Y.style.position === "sticky" && (Y.style.backgroundColor =
|
|
5820
|
+
T.style.backgroundColor = Xr, Array.from(T.querySelectorAll("td")).forEach((Y) => {
|
|
5821
|
+
Y.style.position === "sticky" && (Y.style.backgroundColor = Xr);
|
|
5822
5822
|
});
|
|
5823
5823
|
},
|
|
5824
5824
|
onMouseLeave: (N) => {
|
|
@@ -5829,7 +5829,7 @@ const yo = 240, kn = ({
|
|
|
5829
5829
|
},
|
|
5830
5830
|
children: [
|
|
5831
5831
|
t.map((N, T) => {
|
|
5832
|
-
const Y = N.render ? N.render(z, _, r) :
|
|
5832
|
+
const Y = N.render ? N.render(z, _, r) : _e(z, N.accessor), Ce = p > 0 && T < p, Le = xe[T] ?? 0, je = Qe[T] !== void 0, Ze = Ce && T === p - 1;
|
|
5833
5833
|
return /* @__PURE__ */ e(
|
|
5834
5834
|
He,
|
|
5835
5835
|
{
|
|
@@ -5841,7 +5841,7 @@ const yo = 240, kn = ({
|
|
|
5841
5841
|
transition: Ce ? "background-color 0.3s ease" : void 0,
|
|
5842
5842
|
paddingLeft: T === 0 ? "12px" : "",
|
|
5843
5843
|
whiteSpace: "nowrap",
|
|
5844
|
-
overflow:
|
|
5844
|
+
overflow: je ? "hidden" : void 0,
|
|
5845
5845
|
borderLeft: N.showBorderLeft ? he : void 0,
|
|
5846
5846
|
borderRight: N.showBorderRight ? he : void 0,
|
|
5847
5847
|
boxShadow: Ze ? ie : void 0,
|
|
@@ -5908,7 +5908,7 @@ const yo = 240, kn = ({
|
|
|
5908
5908
|
`${z}${_}`
|
|
5909
5909
|
)) })
|
|
5910
5910
|
] }) });
|
|
5911
|
-
},
|
|
5911
|
+
}, Ho = ({
|
|
5912
5912
|
wrapperProps: t,
|
|
5913
5913
|
dataTableProps: r,
|
|
5914
5914
|
headerProps: n,
|
|
@@ -5920,8 +5920,8 @@ const yo = 240, kn = ({
|
|
|
5920
5920
|
), c = (n == null ? void 0 : n.show) ?? !0, a = de(null), d = (p = r == null ? void 0 : r.pagination) == null ? void 0 : p.totalData;
|
|
5921
5921
|
typeof d == "number" && (a.current = d);
|
|
5922
5922
|
const f = (o == null ? void 0 : o.showFooter) ?? (d === void 0 ? a.current !== 0 : d !== 0);
|
|
5923
|
-
return /* @__PURE__ */ u(
|
|
5924
|
-
c && /* @__PURE__ */ e(
|
|
5923
|
+
return /* @__PURE__ */ u(Lo, { ...t, children: [
|
|
5924
|
+
c && /* @__PURE__ */ e(Mo, { ...n }),
|
|
5925
5925
|
/* @__PURE__ */ e(
|
|
5926
5926
|
m,
|
|
5927
5927
|
{
|
|
@@ -5933,7 +5933,7 @@ const yo = 240, kn = ({
|
|
|
5933
5933
|
overflowX: "auto"
|
|
5934
5934
|
},
|
|
5935
5935
|
children: r ? /* @__PURE__ */ e(
|
|
5936
|
-
|
|
5936
|
+
Io,
|
|
5937
5937
|
{
|
|
5938
5938
|
...r,
|
|
5939
5939
|
scrollParentRef: i,
|
|
@@ -5944,7 +5944,7 @@ const yo = 240, kn = ({
|
|
|
5944
5944
|
}
|
|
5945
5945
|
),
|
|
5946
5946
|
f && /* @__PURE__ */ e(
|
|
5947
|
-
|
|
5947
|
+
Bo,
|
|
5948
5948
|
{
|
|
5949
5949
|
pagination: r == null ? void 0 : r.pagination,
|
|
5950
5950
|
pageKey: r == null ? void 0 : r.pageKey,
|
|
@@ -5956,12 +5956,12 @@ const yo = 240, kn = ({
|
|
|
5956
5956
|
)
|
|
5957
5957
|
] });
|
|
5958
5958
|
};
|
|
5959
|
-
function
|
|
5959
|
+
function Oo(t) {
|
|
5960
5960
|
return Je(
|
|
5961
5961
|
t
|
|
5962
5962
|
);
|
|
5963
5963
|
}
|
|
5964
|
-
const
|
|
5964
|
+
const Fc = Oo(Ho), Kr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)", Vo = ({
|
|
5965
5965
|
sortDir: t,
|
|
5966
5966
|
frozen: r
|
|
5967
5967
|
}) => t === "asc" ? /* @__PURE__ */ e(M, { name: "ChevronSmallUp" }) : t === "desc" ? /* @__PURE__ */ e(M, { name: "ChevronSmallDown" }) : r ? /* @__PURE__ */ e(M, { name: "LockOn", size: "xs" }) : /* @__PURE__ */ e(M, { name: "Filter", size: "xs" }), kt = ({ icon: t, label: r, active: n, danger: o, onClick: i }) => {
|
|
@@ -5996,7 +5996,7 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
5996
5996
|
]
|
|
5997
5997
|
}
|
|
5998
5998
|
);
|
|
5999
|
-
},
|
|
5999
|
+
}, To = ({
|
|
6000
6000
|
active: t,
|
|
6001
6001
|
canSort: r,
|
|
6002
6002
|
canHide: n,
|
|
@@ -6012,16 +6012,16 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6012
6012
|
);
|
|
6013
6013
|
J(() => {
|
|
6014
6014
|
if (d && p.current) {
|
|
6015
|
-
const W = p.current.getBoundingClientRect(),
|
|
6015
|
+
const W = p.current.getBoundingClientRect(), S = W.left + Kr > window.innerWidth;
|
|
6016
6016
|
B({
|
|
6017
6017
|
top: W.bottom + 6,
|
|
6018
|
-
...
|
|
6018
|
+
...S ? { right: window.innerWidth - W.right } : { left: W.left }
|
|
6019
6019
|
});
|
|
6020
6020
|
}
|
|
6021
6021
|
}, [d]), J(() => {
|
|
6022
6022
|
if (!d) return;
|
|
6023
|
-
const W = (
|
|
6024
|
-
g.current && !g.current.contains(
|
|
6023
|
+
const W = (S) => {
|
|
6024
|
+
g.current && !g.current.contains(S.target) && p.current && !p.current.contains(S.target) && f(!1);
|
|
6025
6025
|
};
|
|
6026
6026
|
return document.addEventListener("mousedown", W), () => document.removeEventListener("mousedown", W);
|
|
6027
6027
|
}, [d]);
|
|
@@ -6037,7 +6037,7 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6037
6037
|
className: "sa-tl-menu-trigger",
|
|
6038
6038
|
"data-active": t || d ? "true" : "false",
|
|
6039
6039
|
onClick: (W) => {
|
|
6040
|
-
W.stopPropagation(), f((
|
|
6040
|
+
W.stopPropagation(), f((S) => !S);
|
|
6041
6041
|
},
|
|
6042
6042
|
title: "Column options",
|
|
6043
6043
|
style: {
|
|
@@ -6053,7 +6053,7 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6053
6053
|
color: "var(--sa-text-subtle, #8c8f97)",
|
|
6054
6054
|
flexShrink: 0
|
|
6055
6055
|
},
|
|
6056
|
-
children: /* @__PURE__ */ e(
|
|
6056
|
+
children: /* @__PURE__ */ e(Vo, { sortDir: o, frozen: i })
|
|
6057
6057
|
}
|
|
6058
6058
|
),
|
|
6059
6059
|
d && /* @__PURE__ */ u(
|
|
@@ -6065,7 +6065,7 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6065
6065
|
position: "fixed",
|
|
6066
6066
|
top: `${x.top}px`,
|
|
6067
6067
|
...x.left !== void 0 ? { left: `${x.left}px` } : { right: `${x.right}px` },
|
|
6068
|
-
minWidth:
|
|
6068
|
+
minWidth: Kr,
|
|
6069
6069
|
backgroundColor: "var(--sa-background-primary, #ffffff)",
|
|
6070
6070
|
border: ir,
|
|
6071
6071
|
borderRadius: "var(--sa-radii-sm, 6px)",
|
|
@@ -6119,15 +6119,15 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6119
6119
|
}
|
|
6120
6120
|
)
|
|
6121
6121
|
] });
|
|
6122
|
-
}, St = "1px solid var(--sa-border-subtle, #0b120e24)",
|
|
6122
|
+
}, St = "1px solid var(--sa-border-subtle, #0b120e24)", No = "var(--sa-text-subtle, #8c8f97)", mt = "var(--sa-background-neutral, #f0f1f2)", en = "2px 0 4px -2px rgba(0,0,0,0.15)", Ft = {
|
|
6123
6123
|
display: "block",
|
|
6124
6124
|
overflow: "hidden",
|
|
6125
6125
|
textOverflow: "ellipsis",
|
|
6126
6126
|
whiteSpace: "nowrap"
|
|
6127
|
-
},
|
|
6128
|
-
if (typeof document > "u" || document.getElementById(
|
|
6127
|
+
}, tn = "sa-table-layout-styles", $o = () => {
|
|
6128
|
+
if (typeof document > "u" || document.getElementById(tn)) return;
|
|
6129
6129
|
const t = document.createElement("style");
|
|
6130
|
-
t.id =
|
|
6130
|
+
t.id = tn, t.textContent = `
|
|
6131
6131
|
.sa-table-layout tbody td { transition: background-color 0.15s ease; }
|
|
6132
6132
|
.sa-table-layout tbody tr:hover td {
|
|
6133
6133
|
background-color: var(--sa-background-primary-inverse, #f8f8f8);
|
|
@@ -6170,10 +6170,10 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6170
6170
|
padding: 4px 0;
|
|
6171
6171
|
}
|
|
6172
6172
|
`, document.head.appendChild(t);
|
|
6173
|
-
}, Et = (t) => t === "right" ? "right" : t === "center" ? "center" : "left",
|
|
6173
|
+
}, Et = (t) => t === "right" ? "right" : t === "center" ? "center" : "left", jo = (t, r) => {
|
|
6174
6174
|
if (r)
|
|
6175
6175
|
return t[r];
|
|
6176
|
-
},
|
|
6176
|
+
}, _o = (t, r) => t == null && r == null ? 0 : t == null ? -1 : r == null ? 1 : typeof t == "number" && typeof r == "number" ? t - r : String(t).localeCompare(String(r)), Ec = ({
|
|
6177
6177
|
columns: t,
|
|
6178
6178
|
data: r,
|
|
6179
6179
|
getRowKey: n,
|
|
@@ -6191,19 +6191,19 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6191
6191
|
mobileLayout: B = "cards",
|
|
6192
6192
|
mobileBreakpoint: y = "md",
|
|
6193
6193
|
groupSeparator: W,
|
|
6194
|
-
summary:
|
|
6194
|
+
summary: S,
|
|
6195
6195
|
emptyState: L,
|
|
6196
6196
|
loading: w = !1,
|
|
6197
6197
|
loadingRows: v = 8,
|
|
6198
6198
|
rowActions: I
|
|
6199
6199
|
}) => {
|
|
6200
|
-
|
|
6200
|
+
$o();
|
|
6201
6201
|
const C = !De(y) && B !== "scroll", E = !!(I != null && I.length), [V, O] = H(null);
|
|
6202
6202
|
J(() => {
|
|
6203
6203
|
if (!V) return;
|
|
6204
|
-
const b = () => O(null),
|
|
6204
|
+
const b = () => O(null), k = setTimeout(() => document.addEventListener("click", b), 0);
|
|
6205
6205
|
return () => {
|
|
6206
|
-
clearTimeout(
|
|
6206
|
+
clearTimeout(k), document.removeEventListener("click", b);
|
|
6207
6207
|
};
|
|
6208
6208
|
}, [V]);
|
|
6209
6209
|
const [j, G] = H(
|
|
@@ -6212,17 +6212,17 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6212
6212
|
a == null || a(b), ne || me(b);
|
|
6213
6213
|
}, Z = f !== void 0, [he, se] = H(
|
|
6214
6214
|
p ?? null
|
|
6215
|
-
), ie = Z ? f ?? null : he, Fe = !g,
|
|
6215
|
+
), ie = Z ? f ?? null : he, Fe = !g, _e = (b) => {
|
|
6216
6216
|
g == null || g(b), Z || se(b);
|
|
6217
|
-
}, { headerGroups:
|
|
6217
|
+
}, { headerGroups: Pe, leafColumns: ge, hasGroups: ve } = ye(() => {
|
|
6218
6218
|
var be;
|
|
6219
|
-
const b = new Set(ee.hidden ?? []),
|
|
6219
|
+
const b = new Set(ee.hidden ?? []), k = (te, pe) => te.key ?? (typeof te.accessor == "string" ? te.accessor : `col-${pe}`), A = t.map((te, pe) => {
|
|
6220
6220
|
var Ge;
|
|
6221
6221
|
if ((Ge = te.children) != null && Ge.length) {
|
|
6222
|
-
const dt = te.children.map((lt, Jt) => ({ col: lt, key:
|
|
6222
|
+
const dt = te.children.map((lt, Jt) => ({ col: lt, key: k(lt, `${pe}-${Jt}`) })).filter((lt) => !b.has(lt.key));
|
|
6223
6223
|
return { col: te, key: te.key ?? `group-${pe}`, isGroup: !0, leaves: dt };
|
|
6224
6224
|
}
|
|
6225
|
-
const Me = { col: te, key:
|
|
6225
|
+
const Me = { col: te, key: k(te, `${pe}`) };
|
|
6226
6226
|
return {
|
|
6227
6227
|
col: te,
|
|
6228
6228
|
key: Me.key,
|
|
@@ -6239,26 +6239,26 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6239
6239
|
}
|
|
6240
6240
|
return { headerGroups: A, leafColumns: le, hasGroups: U };
|
|
6241
6241
|
}, [t, ee]), xe = ye(
|
|
6242
|
-
() => new Map(ge.map((b,
|
|
6242
|
+
() => new Map(ge.map((b, k) => [b.key, k])),
|
|
6243
6243
|
[ge]
|
|
6244
|
-
), Ne = !ve && ge.some((b) => (b.col.headerColSpan ?? 1) > 1), Qe = ge.map((b) => b.key).join("|"), $e = (b,
|
|
6244
|
+
), Ne = !ve && ge.some((b) => (b.col.headerColSpan ?? 1) > 1), Qe = ge.map((b) => b.key).join("|"), $e = (b, k) => {
|
|
6245
6245
|
const A = b.sortKey ?? (typeof b.accessor == "string" ? b.accessor : void 0);
|
|
6246
|
-
return A ?
|
|
6246
|
+
return A ? k[A] : void 0;
|
|
6247
6247
|
}, Ye = (b) => b.sortable ?? (!!b.sortKey || typeof b.accessor == "string"), Ee = ye(() => {
|
|
6248
6248
|
if (!Fe || !ie) return r;
|
|
6249
6249
|
const b = ge.find((A) => A.key === ie.key);
|
|
6250
6250
|
if (!b) return r;
|
|
6251
|
-
const
|
|
6251
|
+
const k = ie.direction === "asc" ? 1 : -1;
|
|
6252
6252
|
return [...r].sort(
|
|
6253
|
-
(A, U) =>
|
|
6253
|
+
(A, U) => _o($e(b.col, A), $e(b.col, U)) * k
|
|
6254
6254
|
);
|
|
6255
|
-
}, [r, Fe, ie, ge]), F = !ve && !Ne, P = !!s && F, [q, z] =
|
|
6255
|
+
}, [r, Fe, ie, ge]), F = !ve && !Ne, P = !!s && F, [q, z] = Jn(s ?? ""), _ = P ? q : void 0, N = de(null), [T, Y] = H();
|
|
6256
6256
|
st(() => {
|
|
6257
6257
|
Y(void 0);
|
|
6258
6258
|
}, [Qe]), st(() => {
|
|
6259
6259
|
if (!F || T || !N.current) return;
|
|
6260
6260
|
const b = N.current.querySelectorAll("th.sa-tl-leaf");
|
|
6261
|
-
Y(Array.from(b).map((
|
|
6261
|
+
Y(Array.from(b).map((k) => k.offsetWidth));
|
|
6262
6262
|
}, [T, F]);
|
|
6263
6263
|
const [Ce, Le] = H(0);
|
|
6264
6264
|
st(() => {
|
|
@@ -6266,47 +6266,47 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6266
6266
|
const b = N.current.querySelector(":scope > tr");
|
|
6267
6267
|
b && Le(b.offsetHeight);
|
|
6268
6268
|
}, [ve, Qe]);
|
|
6269
|
-
const
|
|
6270
|
-
if ((_ == null ? void 0 : _[
|
|
6269
|
+
const je = (b, k) => {
|
|
6270
|
+
if ((_ == null ? void 0 : _[k]) != null) return _[k];
|
|
6271
6271
|
if (b.width != null) return b.width;
|
|
6272
|
-
if ((T == null ? void 0 : T[
|
|
6273
|
-
}, Ze = (b,
|
|
6272
|
+
if ((T == null ? void 0 : T[k]) != null) return T[k];
|
|
6273
|
+
}, Ze = (b, k) => typeof b.width == "number" ? b.width : T == null ? void 0 : T[k], Re = ee.frozenKey && !ve && !Ne ? ge.findIndex((b) => b.key === ee.frozenKey) : -1, at = (b) => b <= Re, tt = (b) => {
|
|
6274
6274
|
if (!T) return 0;
|
|
6275
|
-
let
|
|
6276
|
-
for (let A = 0; A < b; A++)
|
|
6277
|
-
return
|
|
6275
|
+
let k = 0;
|
|
6276
|
+
for (let A = 0; A < b; A++) k += T[A] ?? 0;
|
|
6277
|
+
return k;
|
|
6278
6278
|
}, Xe = de(null), [rt, xt] = H("100vh");
|
|
6279
6279
|
st(() => {
|
|
6280
6280
|
if (x !== void 0) return;
|
|
6281
6281
|
const b = () => {
|
|
6282
6282
|
if (Xe.current) {
|
|
6283
|
-
const
|
|
6284
|
-
xt(`calc(100vh - ${
|
|
6283
|
+
const k = Xe.current.getBoundingClientRect().top;
|
|
6284
|
+
xt(`calc(100vh - ${k}px)`);
|
|
6285
6285
|
}
|
|
6286
6286
|
};
|
|
6287
6287
|
return b(), window.addEventListener("resize", b), () => window.removeEventListener("resize", b);
|
|
6288
6288
|
}, [x]);
|
|
6289
|
-
const nt = (b,
|
|
6289
|
+
const nt = (b, k) => n ? n(b, k) : k, ot = (b, k, A) => b.render ? b.render(k, A, Ee) : jo(k, b.accessor), _t = ge.length + (E ? 1 : 0), Er = ["80%", "55%", "70%", "45%", "90%", "60%"], Mn = (b, k) => Er[(b * 7 + k * 3) % Er.length], Wn = (b, k) => /* @__PURE__ */ e(Ke, { height: 14, width: Mn(b, k), borderRadius: "rounded-sm" }), Bn = Array.from({ length: v }, (b, k) => /* @__PURE__ */ u(Ve, { children: [
|
|
6290
6290
|
ge.map(({ col: A, key: U }, le) => /* @__PURE__ */ e(
|
|
6291
6291
|
He,
|
|
6292
6292
|
{
|
|
6293
6293
|
style: { textAlign: Et(A.align) },
|
|
6294
|
-
children:
|
|
6294
|
+
children: Wn(k, le)
|
|
6295
6295
|
},
|
|
6296
|
-
`sa-tl-sk-${
|
|
6296
|
+
`sa-tl-sk-${k}-${U}`
|
|
6297
6297
|
)),
|
|
6298
6298
|
E && /* @__PURE__ */ e(He, { style: { width: 1, padding: 0, border: "none" } })
|
|
6299
|
-
] }, `sa-tl-sk-${
|
|
6300
|
-
|
|
6299
|
+
] }, `sa-tl-sk-${k}`)), zn = (b, k) => {
|
|
6300
|
+
k || Q({
|
|
6301
6301
|
...ee,
|
|
6302
6302
|
hidden: [...ee.hidden ?? [], b]
|
|
6303
6303
|
});
|
|
6304
|
-
},
|
|
6304
|
+
}, An = (b) => Q({
|
|
6305
6305
|
...ee,
|
|
6306
6306
|
frozenKey: ee.frozenKey === b ? void 0 : b
|
|
6307
|
-
}), vt = (b) => (I ?? []).filter((
|
|
6307
|
+
}), vt = (b) => (I ?? []).filter((k) => {
|
|
6308
6308
|
var A;
|
|
6309
|
-
return !((A =
|
|
6309
|
+
return !((A = k.hidden) != null && A.call(k, b));
|
|
6310
6310
|
}), Lr = {
|
|
6311
6311
|
position: "absolute",
|
|
6312
6312
|
right: 0,
|
|
@@ -6318,26 +6318,26 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6318
6318
|
paddingRight: 16,
|
|
6319
6319
|
paddingLeft: 40,
|
|
6320
6320
|
background: "linear-gradient(to right, transparent, var(--sa-background-primary-inverse, #f8f8f8) 40px)"
|
|
6321
|
-
}, Ct = (b,
|
|
6321
|
+
}, Ct = (b, k, A, U) => {
|
|
6322
6322
|
var Ge;
|
|
6323
|
-
const le = (Ge = b.disabled) == null ? void 0 : Ge.call(b,
|
|
6323
|
+
const le = (Ge = b.disabled) == null ? void 0 : Ge.call(b, k), be = (U == null ? void 0 : U.showLabel) ?? b.showLabel, te = (U == null ? void 0 : U.size) ?? "xs", pe = /* @__PURE__ */ e(
|
|
6324
6324
|
$,
|
|
6325
6325
|
{
|
|
6326
6326
|
size: te,
|
|
6327
6327
|
variant: b.variant ?? "tertiary",
|
|
6328
6328
|
tone: b.tone ?? "neutral",
|
|
6329
6329
|
disabled: le,
|
|
6330
|
-
onClick: () => b.onClick(
|
|
6330
|
+
onClick: () => b.onClick(k, A),
|
|
6331
6331
|
iconLeft: b.icon ? /* @__PURE__ */ e(M, { name: b.icon, size: "sm" }) : void 0,
|
|
6332
6332
|
children: be && b.label
|
|
6333
6333
|
}
|
|
6334
6334
|
), Me = b.tooltip;
|
|
6335
6335
|
return Me ? /* @__PURE__ */ e(We, { label: Me, position: "top-end", children: pe }) : pe;
|
|
6336
|
-
},
|
|
6336
|
+
}, Rn = (b, k) => {
|
|
6337
6337
|
const A = vt(b);
|
|
6338
6338
|
if (!A.length) return null;
|
|
6339
6339
|
if (A.length > 5) {
|
|
6340
|
-
const le = nt(b,
|
|
6340
|
+
const le = nt(b, k), be = (V == null ? void 0 : V.rowKey) === le;
|
|
6341
6341
|
return /* @__PURE__ */ e(
|
|
6342
6342
|
"div",
|
|
6343
6343
|
{
|
|
@@ -6363,26 +6363,26 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6363
6363
|
}
|
|
6364
6364
|
);
|
|
6365
6365
|
}
|
|
6366
|
-
return /* @__PURE__ */ e("div", { className: "sa-tl-row-actions", style: Lr, children: A.map((le) => /* @__PURE__ */ e(it.Fragment, { children: Ct(le, b,
|
|
6367
|
-
},
|
|
6366
|
+
return /* @__PURE__ */ e("div", { className: "sa-tl-row-actions", style: Lr, children: A.map((le) => /* @__PURE__ */ e(it.Fragment, { children: Ct(le, b, k) }, le.key)) });
|
|
6367
|
+
}, In = (b, k) => {
|
|
6368
6368
|
const A = vt(b);
|
|
6369
|
-
return A.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 6, flexWrap: "wrap", paddingTop: 8, marginTop: 8, borderTop: St }, children: A.map((U) => /* @__PURE__ */ e(it.Fragment, { children: Ct(U, b,
|
|
6370
|
-
},
|
|
6369
|
+
return A.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 6, flexWrap: "wrap", paddingTop: 8, marginTop: 8, borderTop: St }, children: A.map((U) => /* @__PURE__ */ e(it.Fragment, { children: Ct(U, b, k, { showLabel: !0, size: "sm" }) }, U.key)) }) : null;
|
|
6370
|
+
}, Hn = (b, k) => {
|
|
6371
6371
|
const A = vt(b);
|
|
6372
|
-
return A.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4, paddingRight: 8, flexShrink: 0 }, children: A.map((U) => /* @__PURE__ */ e(it.Fragment, { children: Ct(U, b,
|
|
6373
|
-
}, Pt = (b,
|
|
6372
|
+
return A.length ? /* @__PURE__ */ e("div", { style: { display: "flex", gap: 4, paddingRight: 8, flexShrink: 0 }, children: A.map((U) => /* @__PURE__ */ e(it.Fragment, { children: Ct(U, b, k, { showLabel: !1 }) }, U.key)) }) : null;
|
|
6373
|
+
}, Pt = (b, k) => {
|
|
6374
6374
|
const { col: A, key: U } = b, le = xe.get(U) ?? 0, be = at(le), te = be && le === Re, pe = (ie == null ? void 0 : ie.key) === U ? ie.direction : null, Me = d && !A.disableMenu ? /* @__PURE__ */ e(
|
|
6375
|
-
|
|
6375
|
+
To,
|
|
6376
6376
|
{
|
|
6377
6377
|
active: !!pe || be,
|
|
6378
6378
|
canSort: Ye(A),
|
|
6379
6379
|
canHide: !A.locked,
|
|
6380
6380
|
sortDir: pe,
|
|
6381
6381
|
frozen: be,
|
|
6382
|
-
onSort: (Jt) =>
|
|
6383
|
-
onClearSort: () =>
|
|
6384
|
-
onToggleFreeze: () =>
|
|
6385
|
-
onHide: () =>
|
|
6382
|
+
onSort: (Jt) => _e({ key: U, direction: Jt }),
|
|
6383
|
+
onClearSort: () => _e(null),
|
|
6384
|
+
onToggleFreeze: () => An(U),
|
|
6385
|
+
onHide: () => zn(U, A.locked)
|
|
6386
6386
|
}
|
|
6387
6387
|
) : null, Ge = A.align === "right", dt = A.align === "right" ? "flex-end" : A.align === "center" ? "center" : "flex-start", lt = /* @__PURE__ */ u(
|
|
6388
6388
|
"span",
|
|
@@ -6406,20 +6406,20 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6406
6406
|
ut,
|
|
6407
6407
|
{
|
|
6408
6408
|
className: `sa-tl-leaf${be ? " sa-tl-frozen" : ""}`,
|
|
6409
|
-
rowSpan:
|
|
6410
|
-
colSpan:
|
|
6409
|
+
rowSpan: k == null ? void 0 : k.rowSpan,
|
|
6410
|
+
colSpan: k == null ? void 0 : k.colSpan,
|
|
6411
6411
|
minWidth: A.minWidth,
|
|
6412
6412
|
resizable: F ? A.resizable : !1,
|
|
6413
6413
|
defaultWidth: Ze(A, le),
|
|
6414
6414
|
style: {
|
|
6415
6415
|
textAlign: Et(A.align),
|
|
6416
|
-
width:
|
|
6416
|
+
width: je(A, le),
|
|
6417
6417
|
position: "sticky",
|
|
6418
|
-
top: (
|
|
6418
|
+
top: (k == null ? void 0 : k.top) ?? 0,
|
|
6419
6419
|
left: be ? tt(le) : void 0,
|
|
6420
6420
|
zIndex: be ? 3 : 2,
|
|
6421
6421
|
backgroundColor: mt,
|
|
6422
|
-
boxShadow: te ?
|
|
6422
|
+
boxShadow: te ? en : void 0
|
|
6423
6423
|
},
|
|
6424
6424
|
children: /* @__PURE__ */ e(
|
|
6425
6425
|
"div",
|
|
@@ -6442,18 +6442,18 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6442
6442
|
},
|
|
6443
6443
|
`th-${U}`
|
|
6444
6444
|
);
|
|
6445
|
-
},
|
|
6445
|
+
}, On = () => {
|
|
6446
6446
|
const b = [];
|
|
6447
|
-
for (let
|
|
6448
|
-
const A = ge[
|
|
6449
|
-
b.push(Pt(A, le > 1 ? { colSpan: le } : void 0)),
|
|
6447
|
+
for (let k = 0; k < ge.length; ) {
|
|
6448
|
+
const A = ge[k], U = A.col.headerColSpan ?? 1, le = Math.max(1, Math.min(U, ge.length - k));
|
|
6449
|
+
b.push(Pt(A, le > 1 ? { colSpan: le } : void 0)), k += le;
|
|
6450
6450
|
}
|
|
6451
6451
|
return b;
|
|
6452
|
-
}, Zt = ge.filter((b) => !b.col.hideOnMobile), Gt = Zt.find((b) => b.col.primary) ?? Zt[0],
|
|
6453
|
-
const A = new Set(
|
|
6452
|
+
}, Zt = ge.filter((b) => !b.col.hideOnMobile), Gt = Zt.find((b) => b.col.primary) ?? Zt[0], Vn = Zt.filter((b) => b !== Gt), Tn = (b) => G((k) => {
|
|
6453
|
+
const A = new Set(k);
|
|
6454
6454
|
return A.has(b) ? A.delete(b) : A.add(b), A;
|
|
6455
|
-
}), Mr = (b,
|
|
6456
|
-
const le = ot(A, b,
|
|
6455
|
+
}), Mr = (b, k) => Vn.map(({ col: A, key: U }) => {
|
|
6456
|
+
const le = ot(A, b, k), be = typeof le == "string" || typeof le == "number" ? /* @__PURE__ */ e(
|
|
6457
6457
|
D,
|
|
6458
6458
|
{
|
|
6459
6459
|
style: {
|
|
@@ -6491,7 +6491,7 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6491
6491
|
{
|
|
6492
6492
|
color: "subtle",
|
|
6493
6493
|
fontWeight: "medium",
|
|
6494
|
-
style: { color:
|
|
6494
|
+
style: { color: No, flexShrink: 0 },
|
|
6495
6495
|
children: A.title
|
|
6496
6496
|
}
|
|
6497
6497
|
) : /* @__PURE__ */ e("div", { style: { flexShrink: 0 }, children: A.title }),
|
|
@@ -6500,14 +6500,14 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6500
6500
|
},
|
|
6501
6501
|
U
|
|
6502
6502
|
);
|
|
6503
|
-
}), Wr = (b,
|
|
6504
|
-
const A = Gt ? ot(Gt.col, b,
|
|
6503
|
+
}), Wr = (b, k) => {
|
|
6504
|
+
const A = Gt ? ot(Gt.col, b, k) : null;
|
|
6505
6505
|
return typeof A == "string" || typeof A == "number" ? /* @__PURE__ */ e(D, { as: "span", style: Ft, children: A }) : /* @__PURE__ */ e("span", { style: Ft, children: A });
|
|
6506
|
-
},
|
|
6506
|
+
}, Nn = /* @__PURE__ */ e(
|
|
6507
6507
|
m,
|
|
6508
6508
|
{
|
|
6509
6509
|
style: { display: "flex", flexDirection: "column", gap: 8, padding: 8 },
|
|
6510
|
-
children: Array.from({ length: v }, (b,
|
|
6510
|
+
children: Array.from({ length: v }, (b, k) => /* @__PURE__ */ u(
|
|
6511
6511
|
m,
|
|
6512
6512
|
{
|
|
6513
6513
|
style: {
|
|
@@ -6524,7 +6524,7 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6524
6524
|
/* @__PURE__ */ e(Ke, { height: 12, width: "70%", borderRadius: "rounded-sm" })
|
|
6525
6525
|
]
|
|
6526
6526
|
},
|
|
6527
|
-
`sa-tl-sk-card-${
|
|
6527
|
+
`sa-tl-sk-card-${k}`
|
|
6528
6528
|
))
|
|
6529
6529
|
}
|
|
6530
6530
|
), Br = /* @__PURE__ */ e(
|
|
@@ -6540,15 +6540,15 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6540
6540
|
},
|
|
6541
6541
|
children: L == null ? void 0 : L.content
|
|
6542
6542
|
}
|
|
6543
|
-
),
|
|
6544
|
-
const A = nt(b,
|
|
6543
|
+
), $n = w ? Nn : Ee.length === 0 ? Br : B === "expand" ? /* @__PURE__ */ e(m, { style: { display: "flex", flexDirection: "column" }, children: Ee.map((b, k) => {
|
|
6544
|
+
const A = nt(b, k), U = j.has(A);
|
|
6545
6545
|
return /* @__PURE__ */ u("div", { style: { borderBottom: St }, children: [
|
|
6546
6546
|
/* @__PURE__ */ u("div", { style: { display: "flex", alignItems: "center" }, children: [
|
|
6547
6547
|
/* @__PURE__ */ u(
|
|
6548
6548
|
"button",
|
|
6549
6549
|
{
|
|
6550
6550
|
type: "button",
|
|
6551
|
-
onClick: () =>
|
|
6551
|
+
onClick: () => Tn(A),
|
|
6552
6552
|
style: {
|
|
6553
6553
|
flex: 1,
|
|
6554
6554
|
minWidth: 0,
|
|
@@ -6565,7 +6565,7 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6565
6565
|
textAlign: "left"
|
|
6566
6566
|
},
|
|
6567
6567
|
children: [
|
|
6568
|
-
Wr(b,
|
|
6568
|
+
Wr(b, k),
|
|
6569
6569
|
/* @__PURE__ */ e(
|
|
6570
6570
|
M,
|
|
6571
6571
|
{
|
|
@@ -6577,7 +6577,7 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6577
6577
|
]
|
|
6578
6578
|
}
|
|
6579
6579
|
),
|
|
6580
|
-
E &&
|
|
6580
|
+
E && Hn(b, k)
|
|
6581
6581
|
] }),
|
|
6582
6582
|
U && /* @__PURE__ */ e(
|
|
6583
6583
|
"div",
|
|
@@ -6588,7 +6588,7 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6588
6588
|
flexDirection: "column",
|
|
6589
6589
|
gap: 6
|
|
6590
6590
|
},
|
|
6591
|
-
children: Mr(b,
|
|
6591
|
+
children: Mr(b, k)
|
|
6592
6592
|
}
|
|
6593
6593
|
)
|
|
6594
6594
|
] }, A);
|
|
@@ -6596,7 +6596,7 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6596
6596
|
m,
|
|
6597
6597
|
{
|
|
6598
6598
|
style: { display: "flex", flexDirection: "column", gap: 8, padding: 8 },
|
|
6599
|
-
children: Ee.map((b,
|
|
6599
|
+
children: Ee.map((b, k) => /* @__PURE__ */ u(
|
|
6600
6600
|
m,
|
|
6601
6601
|
{
|
|
6602
6602
|
style: {
|
|
@@ -6608,27 +6608,31 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6608
6608
|
gap: 6
|
|
6609
6609
|
},
|
|
6610
6610
|
children: [
|
|
6611
|
-
Wr(b,
|
|
6612
|
-
Mr(b,
|
|
6613
|
-
E &&
|
|
6611
|
+
Wr(b, k),
|
|
6612
|
+
Mr(b, k),
|
|
6613
|
+
E && In(b, k)
|
|
6614
6614
|
]
|
|
6615
6615
|
},
|
|
6616
|
-
nt(b,
|
|
6616
|
+
nt(b, k)
|
|
6617
6617
|
))
|
|
6618
6618
|
}
|
|
6619
|
-
),
|
|
6619
|
+
), jn = i && F && T !== void 0, zr = l === "fixed" && !i && (F ? T !== void 0 : !0), _n = /* @__PURE__ */ u(
|
|
6620
6620
|
gr,
|
|
6621
6621
|
{
|
|
6622
6622
|
className: "sa-table-layout",
|
|
6623
6623
|
fullWidth: !0,
|
|
6624
6624
|
size: o,
|
|
6625
|
-
resizable:
|
|
6626
|
-
style:
|
|
6625
|
+
resizable: jn,
|
|
6626
|
+
style: zr ? { tableLayout: "fixed" } : void 0,
|
|
6627
6627
|
onWidthsChange: P ? z : void 0,
|
|
6628
6628
|
children: [
|
|
6629
|
-
|
|
6629
|
+
zr && !F && /* @__PURE__ */ u("colgroup", { children: [
|
|
6630
|
+
ge.map(({ col: b, key: k }, A) => /* @__PURE__ */ e("col", { style: { width: je(b, A) } }, `col-${k}`)),
|
|
6631
|
+
E && /* @__PURE__ */ e("col", { style: { width: 1 } })
|
|
6632
|
+
] }),
|
|
6633
|
+
/* @__PURE__ */ e(dn, { ref: N, children: ve ? /* @__PURE__ */ u(oe, { children: [
|
|
6630
6634
|
/* @__PURE__ */ u(Ve, { children: [
|
|
6631
|
-
|
|
6635
|
+
Pe.map(
|
|
6632
6636
|
(b) => b.isGroup ? /* @__PURE__ */ e(
|
|
6633
6637
|
ut,
|
|
6634
6638
|
{
|
|
@@ -6662,11 +6666,11 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6662
6666
|
}
|
|
6663
6667
|
)
|
|
6664
6668
|
] }),
|
|
6665
|
-
/* @__PURE__ */ e(Ve, { children:
|
|
6666
|
-
(b) => b.isGroup ? b.leaves.map((
|
|
6669
|
+
/* @__PURE__ */ e(Ve, { children: Pe.flatMap(
|
|
6670
|
+
(b) => b.isGroup ? b.leaves.map((k) => Pt(k, { top: Ce })) : []
|
|
6667
6671
|
) })
|
|
6668
6672
|
] }) : /* @__PURE__ */ u(Ve, { children: [
|
|
6669
|
-
|
|
6673
|
+
On(),
|
|
6670
6674
|
E && /* @__PURE__ */ e(
|
|
6671
6675
|
ut,
|
|
6672
6676
|
{
|
|
@@ -6683,21 +6687,21 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6683
6687
|
}
|
|
6684
6688
|
)
|
|
6685
6689
|
] }) }),
|
|
6686
|
-
/* @__PURE__ */ e(
|
|
6687
|
-
Ee.map((b,
|
|
6690
|
+
/* @__PURE__ */ e(un, { children: w ? Bn : Ee.length === 0 ? /* @__PURE__ */ e(Ve, { children: /* @__PURE__ */ e(He, { colSpan: _t, children: Br }) }) : /* @__PURE__ */ u(oe, { children: [
|
|
6691
|
+
Ee.map((b, k) => {
|
|
6688
6692
|
const A = W == null ? void 0 : W(
|
|
6689
6693
|
b,
|
|
6690
|
-
|
|
6691
|
-
|
|
6694
|
+
k,
|
|
6695
|
+
k > 0 ? Ee[k - 1] : void 0
|
|
6692
6696
|
);
|
|
6693
6697
|
return /* @__PURE__ */ u(it.Fragment, { children: [
|
|
6694
6698
|
A != null && A !== !1 && /* @__PURE__ */ e(Ve, { children: /* @__PURE__ */ e(He, { colSpan: _t, style: { backgroundColor: mt }, children: A }) }),
|
|
6695
6699
|
/* @__PURE__ */ u(Ve, { children: [
|
|
6696
6700
|
ge.map(({ col: U, key: le }, be) => {
|
|
6697
6701
|
var dt;
|
|
6698
|
-
const te = (dt = U.cellProps) == null ? void 0 : dt.call(U, b,
|
|
6702
|
+
const te = (dt = U.cellProps) == null ? void 0 : dt.call(U, b, k, Ee);
|
|
6699
6703
|
if (te != null && te.hidden) return null;
|
|
6700
|
-
const pe = at(be), Me = pe && be === Re, Ge = ot(U, b,
|
|
6704
|
+
const pe = at(be), Me = pe && be === Re, Ge = ot(U, b, k);
|
|
6701
6705
|
return /* @__PURE__ */ e(
|
|
6702
6706
|
He,
|
|
6703
6707
|
{
|
|
@@ -6706,12 +6710,12 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6706
6710
|
rowSpan: te == null ? void 0 : te.rowSpan,
|
|
6707
6711
|
style: {
|
|
6708
6712
|
textAlign: Et(U.align),
|
|
6709
|
-
width:
|
|
6713
|
+
width: je(U, be),
|
|
6710
6714
|
minWidth: U.minWidth,
|
|
6711
6715
|
position: pe ? "sticky" : void 0,
|
|
6712
6716
|
left: pe ? tt(be) : void 0,
|
|
6713
6717
|
zIndex: pe ? 1 : void 0,
|
|
6714
|
-
boxShadow: Me ?
|
|
6718
|
+
boxShadow: Me ? en : void 0
|
|
6715
6719
|
},
|
|
6716
6720
|
children: typeof Ge == "string" ? /* @__PURE__ */ e(
|
|
6717
6721
|
D,
|
|
@@ -6726,7 +6730,7 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6726
6730
|
}
|
|
6727
6731
|
) : Ge
|
|
6728
6732
|
},
|
|
6729
|
-
`tl-cell-${
|
|
6733
|
+
`tl-cell-${k}-${le}`
|
|
6730
6734
|
);
|
|
6731
6735
|
}),
|
|
6732
6736
|
E && /* @__PURE__ */ e(
|
|
@@ -6741,17 +6745,17 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6741
6745
|
zIndex: 2,
|
|
6742
6746
|
border: "none"
|
|
6743
6747
|
},
|
|
6744
|
-
children:
|
|
6748
|
+
children: Rn(b, k)
|
|
6745
6749
|
}
|
|
6746
6750
|
)
|
|
6747
6751
|
] })
|
|
6748
|
-
] }, nt(b,
|
|
6752
|
+
] }, nt(b, k));
|
|
6749
6753
|
}),
|
|
6750
|
-
|
|
6754
|
+
S != null && /* @__PURE__ */ e(Ve, { children: /* @__PURE__ */ e(He, { colSpan: _t, children: S }) })
|
|
6751
6755
|
] }) })
|
|
6752
6756
|
]
|
|
6753
6757
|
}
|
|
6754
|
-
), qt = V ? Ee.findIndex((b,
|
|
6758
|
+
), qt = V ? Ee.findIndex((b, k) => nt(b, k) === V.rowKey) : -1, Ut = qt >= 0 ? Ee[qt] : null;
|
|
6755
6759
|
return /* @__PURE__ */ u(oe, { children: [
|
|
6756
6760
|
/* @__PURE__ */ e(
|
|
6757
6761
|
m,
|
|
@@ -6762,7 +6766,7 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6762
6766
|
overflow: "auto",
|
|
6763
6767
|
height: x ?? rt
|
|
6764
6768
|
},
|
|
6765
|
-
children: C ?
|
|
6769
|
+
children: C ? $n : _n
|
|
6766
6770
|
}
|
|
6767
6771
|
),
|
|
6768
6772
|
V && Ut && /* @__PURE__ */ e(
|
|
@@ -6775,7 +6779,7 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6775
6779
|
}
|
|
6776
6780
|
)
|
|
6777
6781
|
] });
|
|
6778
|
-
}, or = (t) => t === "asc" || t === "desc",
|
|
6782
|
+
}, or = (t) => t === "asc" || t === "desc", Lc = (t = {}) => {
|
|
6779
6783
|
const {
|
|
6780
6784
|
sortKeyParam: r = "sortBy",
|
|
6781
6785
|
sortOrderParam: n = "sortOrder",
|
|
@@ -6783,7 +6787,7 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6783
6787
|
defaultSort: i = null,
|
|
6784
6788
|
paramKeys: l,
|
|
6785
6789
|
scopeId: s,
|
|
6786
|
-
storage: c =
|
|
6790
|
+
storage: c = Cn
|
|
6787
6791
|
} = t, { searchParams: a, setSearchParams: d, searchQueries: f } = Oe(), p = a.toString(), g = s ? bt.tableSort(s) : void 0, x = de(!1);
|
|
6788
6792
|
J(() => {
|
|
6789
6793
|
if (x.current || (x.current = !0, !g) || a.has(r) || a.has(n))
|
|
@@ -6804,7 +6808,7 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6804
6808
|
const w = a.get(r), v = a.get(n);
|
|
6805
6809
|
w && or(v) ? c.set(g, { key: w, direction: v }) : c.remove(g);
|
|
6806
6810
|
}, [p, g, r, n, c]);
|
|
6807
|
-
const y = (l == null ? void 0 : l.sortBy) ?? "sortBy", W = (l == null ? void 0 : l.sortOrder) ?? "sortOrder",
|
|
6811
|
+
const y = (l == null ? void 0 : l.sortBy) ?? "sortBy", W = (l == null ? void 0 : l.sortOrder) ?? "sortOrder", S = ye(() => B ? {
|
|
6808
6812
|
[y]: B.key,
|
|
6809
6813
|
[W]: B.direction
|
|
6810
6814
|
} : {}, [B, y, W]), L = K(
|
|
@@ -6814,11 +6818,11 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6814
6818
|
},
|
|
6815
6819
|
[f, r, n, o, d]
|
|
6816
6820
|
);
|
|
6817
|
-
return { sort: B, setSort: L, params:
|
|
6821
|
+
return { sort: B, setSort: L, params: S };
|
|
6818
6822
|
}, wr = ({
|
|
6819
6823
|
of: t,
|
|
6820
6824
|
render: r
|
|
6821
|
-
}) =>
|
|
6825
|
+
}) => ei.toArray(t == null ? void 0 : t.map((n, o, i) => r(n, o, i))), ce = ({
|
|
6822
6826
|
condition: t,
|
|
6823
6827
|
fallback: r,
|
|
6824
6828
|
children: n,
|
|
@@ -6834,7 +6838,7 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6834
6838
|
color: t.color || "gray-700",
|
|
6835
6839
|
children: t.children
|
|
6836
6840
|
}
|
|
6837
|
-
), et = (t) => /* @__PURE__ */ e(D, { color: "red-600", fontSize: "sm", children: t.message }),
|
|
6841
|
+
), et = (t) => /* @__PURE__ */ e(D, { color: "red-600", fontSize: "sm", children: t.message }), Po = ({
|
|
6838
6842
|
size: t = "md",
|
|
6839
6843
|
direction: r = "vertical",
|
|
6840
6844
|
requiredTitle: n = "(Required)",
|
|
@@ -6919,7 +6923,7 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
6919
6923
|
]
|
|
6920
6924
|
}
|
|
6921
6925
|
);
|
|
6922
|
-
},
|
|
6926
|
+
}, Zo = ({
|
|
6923
6927
|
size: t = "md",
|
|
6924
6928
|
direction: r = "vertical",
|
|
6925
6929
|
requiredTitle: n = "(Required)",
|
|
@@ -7011,7 +7015,7 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7011
7015
|
]
|
|
7012
7016
|
}
|
|
7013
7017
|
);
|
|
7014
|
-
},
|
|
7018
|
+
}, Go = (t, r) => typeof t == "string" && t || r === "error" ? "var(--sa-border-danger)" : "var(--sa-border-subtle)", qo = (t) => {
|
|
7015
7019
|
var c;
|
|
7016
7020
|
const [r, n] = H(!1), o = (a) => {
|
|
7017
7021
|
a.preventDefault(), a.stopPropagation();
|
|
@@ -7038,7 +7042,7 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7038
7042
|
paddingBlock: "md",
|
|
7039
7043
|
borderRadius: "rounded-md",
|
|
7040
7044
|
style: {
|
|
7041
|
-
border: r ? "1px solid var(--sa-border-info)" : `1px solid ${
|
|
7045
|
+
border: r ? "1px solid var(--sa-border-info)" : `1px solid ${Go(t.errorMessage, t.status)}`
|
|
7042
7046
|
},
|
|
7043
7047
|
children: [
|
|
7044
7048
|
/* @__PURE__ */ e(
|
|
@@ -7080,17 +7084,17 @@ const Sc = Io(Ro), Xr = 200, ir = "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
|
7080
7084
|
}
|
|
7081
7085
|
);
|
|
7082
7086
|
};
|
|
7083
|
-
function
|
|
7087
|
+
function Mc(t) {
|
|
7084
7088
|
return t.split(" ").map((r) => r[0]).join("").slice(0, 2).toUpperCase();
|
|
7085
7089
|
}
|
|
7086
|
-
const
|
|
7090
|
+
const Uo = (t) => {
|
|
7087
7091
|
const r = {
|
|
7088
7092
|
day: "2-digit",
|
|
7089
7093
|
month: "short",
|
|
7090
7094
|
year: "numeric"
|
|
7091
7095
|
};
|
|
7092
7096
|
return t.toLocaleDateString("id-ID", r);
|
|
7093
|
-
},
|
|
7097
|
+
}, Wc = (t) => {
|
|
7094
7098
|
const r = {
|
|
7095
7099
|
Jan: 0,
|
|
7096
7100
|
Feb: 1,
|
|
@@ -7110,7 +7114,7 @@ const Go = (t) => {
|
|
|
7110
7114
|
const o = parseInt(n[0], 10), i = r[n[1]], l = parseInt(n[2], 10);
|
|
7111
7115
|
return isNaN(o) || isNaN(i) || isNaN(l) ? null : new Date(l, i, o);
|
|
7112
7116
|
};
|
|
7113
|
-
function
|
|
7117
|
+
function Bc(t, r = !0) {
|
|
7114
7118
|
if (!t)
|
|
7115
7119
|
return "Rp 0";
|
|
7116
7120
|
const n = typeof t == "number" ? t.toString() : t;
|
|
@@ -7125,19 +7129,19 @@ String.prototype.toTitleCase = function() {
|
|
|
7125
7129
|
String.prototype.toNumber = function() {
|
|
7126
7130
|
return Number(this);
|
|
7127
7131
|
};
|
|
7128
|
-
const
|
|
7132
|
+
const zc = (t) => {
|
|
7129
7133
|
const r = t.split(" ");
|
|
7130
7134
|
let n = r[0].charAt(0);
|
|
7131
7135
|
return r.length > 1 && (n += "" + r[1].charAt(0)), n.toUpperCase();
|
|
7132
7136
|
};
|
|
7133
|
-
function
|
|
7137
|
+
function Ac(t) {
|
|
7134
7138
|
const r = typeof t == "string" ? new Date(t) : t;
|
|
7135
7139
|
if (isNaN(r.getTime()))
|
|
7136
7140
|
throw new Error("Invalid date format");
|
|
7137
7141
|
const n = r.getFullYear(), o = String(r.getMonth() + 1).padStart(2, "0"), i = String(r.getDate()).padStart(2, "0");
|
|
7138
7142
|
return `${n}-${o}-${i}`;
|
|
7139
7143
|
}
|
|
7140
|
-
const
|
|
7144
|
+
const Jo = "sa-admin", qe = (t) => `var(--${Jo}-${t})`, Rc = {
|
|
7141
7145
|
base: {
|
|
7142
7146
|
borderColor: qe("base-border-color"),
|
|
7143
7147
|
textColor: qe("base-text-color"),
|
|
@@ -7155,22 +7159,22 @@ const qo = "sa-admin", qe = (t) => `var(--${qo}-${t})`, Ac = {
|
|
|
7155
7159
|
collapseWidth: qe("sidebar-collapse-width"),
|
|
7156
7160
|
collapseV2Width: qe("sidebar-v2-collapse-width")
|
|
7157
7161
|
}
|
|
7158
|
-
},
|
|
7162
|
+
}, Ic = 24 * 60 * 60 * 1e3, Hc = (t) => {
|
|
7159
7163
|
const r = "14px poppins", o = document.createElement("canvas").getContext("2d");
|
|
7160
7164
|
o.font = r;
|
|
7161
7165
|
const i = o.measureText(t).width;
|
|
7162
7166
|
return Number(Math.ceil(i));
|
|
7163
|
-
},
|
|
7164
|
-
function
|
|
7167
|
+
}, Qo = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, Yo = /--+/, Xo = /-$/;
|
|
7168
|
+
function Oc(t, r) {
|
|
7165
7169
|
return JSON.stringify(t) !== JSON.stringify(r);
|
|
7166
7170
|
}
|
|
7167
|
-
function
|
|
7171
|
+
function Vc(t) {
|
|
7168
7172
|
return /^(?:\+62|62|0)8[1-9][0-9]{7,10}$/.test(t);
|
|
7169
7173
|
}
|
|
7170
|
-
function
|
|
7174
|
+
function Tc(t) {
|
|
7171
7175
|
return /^[A-Za-z\s]+$/.test(t);
|
|
7172
7176
|
}
|
|
7173
|
-
const
|
|
7177
|
+
const Nc = (t) => {
|
|
7174
7178
|
const r = /^[0-9]$/, n = [
|
|
7175
7179
|
"ArrowLeft",
|
|
7176
7180
|
"ArrowRight",
|
|
@@ -7182,7 +7186,7 @@ const Tc = (t) => {
|
|
|
7182
7186
|
"Tab"
|
|
7183
7187
|
];
|
|
7184
7188
|
(t.ctrlKey || t.metaKey) && (t.key === "a" || t.key === "c" || t.key === "v") || !r.test(t.key) && !n.includes(t.key) && t.preventDefault();
|
|
7185
|
-
},
|
|
7189
|
+
}, $c = (t) => {
|
|
7186
7190
|
const r = /^[0-9]$/, n = [
|
|
7187
7191
|
"ArrowLeft",
|
|
7188
7192
|
"ArrowRight",
|
|
@@ -7194,7 +7198,7 @@ const Tc = (t) => {
|
|
|
7194
7198
|
"Tab"
|
|
7195
7199
|
];
|
|
7196
7200
|
(t.ctrlKey || t.metaKey) && t.key === "v" || r.test(t.key) && !n.includes(t.key) && t.preventDefault();
|
|
7197
|
-
},
|
|
7201
|
+
}, jc = (t) => {
|
|
7198
7202
|
const r = /^[0-9.]$/, n = [
|
|
7199
7203
|
"ArrowLeft",
|
|
7200
7204
|
"ArrowRight",
|
|
@@ -7206,11 +7210,11 @@ const Tc = (t) => {
|
|
|
7206
7210
|
"Tab"
|
|
7207
7211
|
];
|
|
7208
7212
|
(t.ctrlKey || t.metaKey) && t.key === "v" || !r.test(t.key) && !n.includes(t.key) && t.preventDefault();
|
|
7209
|
-
},
|
|
7210
|
-
function
|
|
7211
|
-
return !(
|
|
7213
|
+
}, _c = (t) => Qo.test(t);
|
|
7214
|
+
function Pc(t) {
|
|
7215
|
+
return !(Yo.test(t) || Xo.test(t));
|
|
7212
7216
|
}
|
|
7213
|
-
const
|
|
7217
|
+
const Zc = (t) => {
|
|
7214
7218
|
const r = [
|
|
7215
7219
|
"ArrowLeft",
|
|
7216
7220
|
"ArrowRight",
|
|
@@ -7227,7 +7231,7 @@ const Pc = (t) => {
|
|
|
7227
7231
|
return;
|
|
7228
7232
|
const n = t.currentTarget.value;
|
|
7229
7233
|
/^[0-9]$/.test(t.key) || t.key === "." && !n.includes(".") || t.key === "-" && n.length === 0 && !n.includes("-") || r.includes(t.key) || t.preventDefault();
|
|
7230
|
-
},
|
|
7234
|
+
}, Gc = (t) => {
|
|
7231
7235
|
const r = document.getElementById(t);
|
|
7232
7236
|
if (r) {
|
|
7233
7237
|
const n = r.getBoundingClientRect(), o = window.scrollY + n.top - 80;
|
|
@@ -7237,7 +7241,7 @@ const Pc = (t) => {
|
|
|
7237
7241
|
});
|
|
7238
7242
|
}
|
|
7239
7243
|
};
|
|
7240
|
-
function
|
|
7244
|
+
function Ko(t) {
|
|
7241
7245
|
const r = t.toLowerCase();
|
|
7242
7246
|
if (["kb", "mb", "gb"].find((l) => r.endsWith(l)))
|
|
7243
7247
|
return t;
|
|
@@ -7246,11 +7250,11 @@ function Yo(t) {
|
|
|
7246
7250
|
throw new Error("Invalid size format");
|
|
7247
7251
|
return i >= 1e6 ? `${(i / 1e6).toFixed(2)}MB` : i >= 1e3 ? `${(i / 1e3).toFixed(2)}KB` : `${i}B`;
|
|
7248
7252
|
}
|
|
7249
|
-
function
|
|
7253
|
+
function el(t) {
|
|
7250
7254
|
const r = t.split("/");
|
|
7251
7255
|
return r[r.length - 1];
|
|
7252
7256
|
}
|
|
7253
|
-
const
|
|
7257
|
+
const tl = (t) => {
|
|
7254
7258
|
var r, n;
|
|
7255
7259
|
return /* @__PURE__ */ u(
|
|
7256
7260
|
m,
|
|
@@ -7295,7 +7299,7 @@ const Ko = (t) => {
|
|
|
7295
7299
|
whiteSpace: "nowrap",
|
|
7296
7300
|
overflow: "hidden"
|
|
7297
7301
|
},
|
|
7298
|
-
children: t.defaultFile ?
|
|
7302
|
+
children: t.defaultFile ? el(t.defaultFile.url) : (r = t.fileSelected) == null ? void 0 : r.name
|
|
7299
7303
|
}
|
|
7300
7304
|
),
|
|
7301
7305
|
t.defaultFile ? (t.defaultFile.size || t.defaultFile.date) && /* @__PURE__ */ u(ae, { direction: "row", gap: "xs", align: "center", children: [
|
|
@@ -7303,9 +7307,9 @@ const Ko = (t) => {
|
|
|
7303
7307
|
t.defaultFile.size && t.defaultFile.date && /* @__PURE__ */ e(M, { name: "Dot", size: "xs" }),
|
|
7304
7308
|
t.defaultFile.date && /* @__PURE__ */ e(D, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: t.defaultFile.date })
|
|
7305
7309
|
] }) : /* @__PURE__ */ u(ae, { direction: "row", gap: "xs", align: "center", children: [
|
|
7306
|
-
/* @__PURE__ */ e(D, { fontSize: "sm", fontWeight: "medium", children:
|
|
7310
|
+
/* @__PURE__ */ e(D, { fontSize: "sm", fontWeight: "medium", children: Ko(((n = t.fileSelected) == null ? void 0 : n.size.toString()) || "100000") }),
|
|
7307
7311
|
/* @__PURE__ */ e(M, { name: "Dot", size: "xs" }),
|
|
7308
|
-
/* @__PURE__ */ e(D, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children:
|
|
7312
|
+
/* @__PURE__ */ e(D, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: Uo(/* @__PURE__ */ new Date()) })
|
|
7309
7313
|
] })
|
|
7310
7314
|
] })
|
|
7311
7315
|
] }),
|
|
@@ -7325,7 +7329,7 @@ const Ko = (t) => {
|
|
|
7325
7329
|
]
|
|
7326
7330
|
}
|
|
7327
7331
|
);
|
|
7328
|
-
},
|
|
7332
|
+
}, rl = ({
|
|
7329
7333
|
status: t = "default",
|
|
7330
7334
|
labelPosition: r = "outside-top",
|
|
7331
7335
|
...n
|
|
@@ -7384,7 +7388,7 @@ const Ko = (t) => {
|
|
|
7384
7388
|
children: [
|
|
7385
7389
|
f,
|
|
7386
7390
|
(n.fileSelected || n.defaultFile) && /* @__PURE__ */ e(
|
|
7387
|
-
|
|
7391
|
+
tl,
|
|
7388
7392
|
{
|
|
7389
7393
|
fileSelected: n.fileSelected,
|
|
7390
7394
|
defaultFile: n.defaultFile,
|
|
@@ -7393,7 +7397,7 @@ const Ko = (t) => {
|
|
|
7393
7397
|
}
|
|
7394
7398
|
),
|
|
7395
7399
|
!n.fileSelected && !n.defaultFile && /* @__PURE__ */ e(
|
|
7396
|
-
|
|
7400
|
+
qo,
|
|
7397
7401
|
{
|
|
7398
7402
|
fileSupports: n.fileSupportOption,
|
|
7399
7403
|
isDesktop: l,
|
|
@@ -7421,7 +7425,7 @@ const Ko = (t) => {
|
|
|
7421
7425
|
p,
|
|
7422
7426
|
d
|
|
7423
7427
|
] });
|
|
7424
|
-
},
|
|
7428
|
+
}, nl = ({
|
|
7425
7429
|
size: t = "md",
|
|
7426
7430
|
direction: r = "vertical",
|
|
7427
7431
|
requiredTitle: n = "(Required)",
|
|
@@ -7491,7 +7495,7 @@ const Ko = (t) => {
|
|
|
7491
7495
|
),
|
|
7492
7496
|
/* @__PURE__ */ u(ae, { direction: "column", gap: "xs", children: [
|
|
7493
7497
|
/* @__PURE__ */ e(
|
|
7494
|
-
|
|
7498
|
+
rl,
|
|
7495
7499
|
{
|
|
7496
7500
|
...i.inputProps,
|
|
7497
7501
|
status: i.errorMessage ? "error" : "default"
|
|
@@ -7502,7 +7506,7 @@ const Ko = (t) => {
|
|
|
7502
7506
|
]
|
|
7503
7507
|
}
|
|
7504
7508
|
);
|
|
7505
|
-
},
|
|
7509
|
+
}, il = ({
|
|
7506
7510
|
size: t = "md",
|
|
7507
7511
|
direction: r = "vertical",
|
|
7508
7512
|
requiredTitle: n = "(Required)",
|
|
@@ -7625,7 +7629,7 @@ const Ko = (t) => {
|
|
|
7625
7629
|
]
|
|
7626
7630
|
}
|
|
7627
7631
|
);
|
|
7628
|
-
},
|
|
7632
|
+
}, ol = ({
|
|
7629
7633
|
position: t = "vertical",
|
|
7630
7634
|
size: r = "md",
|
|
7631
7635
|
fullWidth: n = !1,
|
|
@@ -7667,7 +7671,7 @@ const Ko = (t) => {
|
|
|
7667
7671
|
})),
|
|
7668
7672
|
render: ({ value: s, id: c, isChecked: a, subInput: d, label: f, description: p }) => /* @__PURE__ */ u(m, { direction: "column", gap: "xs", customMaxWidth: i, children: [
|
|
7669
7673
|
/* @__PURE__ */ e(
|
|
7670
|
-
|
|
7674
|
+
Kn,
|
|
7671
7675
|
{
|
|
7672
7676
|
id: `${c.toString()}-${s}`,
|
|
7673
7677
|
name: o.groupName || f,
|
|
@@ -7703,7 +7707,7 @@ const Ko = (t) => {
|
|
|
7703
7707
|
]
|
|
7704
7708
|
}
|
|
7705
7709
|
);
|
|
7706
|
-
},
|
|
7710
|
+
}, ll = ({
|
|
7707
7711
|
size: t = "md",
|
|
7708
7712
|
direction: r = "vertical",
|
|
7709
7713
|
requiredTitle: n = "(Required)",
|
|
@@ -7773,7 +7777,7 @@ const Ko = (t) => {
|
|
|
7773
7777
|
),
|
|
7774
7778
|
/* @__PURE__ */ u(ae, { direction: "column", gap: "xs", children: [
|
|
7775
7779
|
/* @__PURE__ */ e(
|
|
7776
|
-
|
|
7780
|
+
Qn,
|
|
7777
7781
|
{
|
|
7778
7782
|
ref: i.inputRef,
|
|
7779
7783
|
size: t,
|
|
@@ -7786,7 +7790,7 @@ const Ko = (t) => {
|
|
|
7786
7790
|
]
|
|
7787
7791
|
}
|
|
7788
7792
|
);
|
|
7789
|
-
},
|
|
7793
|
+
}, cl = ({
|
|
7790
7794
|
size: t = "md",
|
|
7791
7795
|
direction: r = "vertical",
|
|
7792
7796
|
requiredTitle: n = "(Required)",
|
|
@@ -7868,12 +7872,12 @@ const Ko = (t) => {
|
|
|
7868
7872
|
]
|
|
7869
7873
|
}
|
|
7870
7874
|
);
|
|
7871
|
-
},
|
|
7875
|
+
}, sl = ({
|
|
7872
7876
|
variant: t = "primary",
|
|
7873
7877
|
size: r = "md",
|
|
7874
7878
|
...n
|
|
7875
7879
|
}) => {
|
|
7876
|
-
const o =
|
|
7880
|
+
const o = Xn(), i = (s) => {
|
|
7877
7881
|
var a, d, f, p, g, x;
|
|
7878
7882
|
if (!s) return;
|
|
7879
7883
|
const c = n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (d = (a = o == null ? void 0 : o.computed) == null ? void 0 : a.red) == null ? void 0 : d[600] : t === "secondary-primary" ? (p = (f = o == null ? void 0 : o.computed) == null ? void 0 : f.blue) == null ? void 0 : p[700] : (x = (g = o == null ? void 0 : o.computed) == null ? void 0 : g.gray) == null ? void 0 : x[50];
|
|
@@ -7913,7 +7917,7 @@ const Ko = (t) => {
|
|
|
7913
7917
|
children: l()
|
|
7914
7918
|
}
|
|
7915
7919
|
);
|
|
7916
|
-
},
|
|
7920
|
+
}, al = (t) => /* @__PURE__ */ e(
|
|
7917
7921
|
Ue.H5,
|
|
7918
7922
|
{
|
|
7919
7923
|
props: {
|
|
@@ -7921,7 +7925,7 @@ const Ko = (t) => {
|
|
|
7921
7925
|
},
|
|
7922
7926
|
children: t.title
|
|
7923
7927
|
}
|
|
7924
|
-
),
|
|
7928
|
+
), dl = ({
|
|
7925
7929
|
size: t = "md",
|
|
7926
7930
|
direction: r = "vertical",
|
|
7927
7931
|
requiredTitle: n = "(Required)",
|
|
@@ -8013,7 +8017,7 @@ const Ko = (t) => {
|
|
|
8013
8017
|
}
|
|
8014
8018
|
);
|
|
8015
8019
|
};
|
|
8016
|
-
async function
|
|
8020
|
+
async function ul(t, r) {
|
|
8017
8021
|
const n = new Image();
|
|
8018
8022
|
n.src = t, await new Promise((l, s) => {
|
|
8019
8023
|
n.onload = l, n.onerror = s;
|
|
@@ -8040,7 +8044,7 @@ async function al(t, r) {
|
|
|
8040
8044
|
}, "image/png");
|
|
8041
8045
|
});
|
|
8042
8046
|
}
|
|
8043
|
-
const
|
|
8047
|
+
const rn = {
|
|
8044
8048
|
"1:1": 1,
|
|
8045
8049
|
"4:3": 4 / 3,
|
|
8046
8050
|
"16:9": 16 / 9,
|
|
@@ -8049,7 +8053,7 @@ const tn = {
|
|
|
8049
8053
|
"2:3": 2 / 3,
|
|
8050
8054
|
"3:2": 3 / 2,
|
|
8051
8055
|
"32:9": 32 / 9
|
|
8052
|
-
},
|
|
8056
|
+
}, hl = pr(
|
|
8053
8057
|
({
|
|
8054
8058
|
handleUpload: t,
|
|
8055
8059
|
urlImage: r,
|
|
@@ -8062,7 +8066,7 @@ const tn = {
|
|
|
8062
8066
|
maxFileSize: a = 2,
|
|
8063
8067
|
onError: d
|
|
8064
8068
|
}, f) => {
|
|
8065
|
-
const p = De("md"), [g, x] = H(!1), [B, y] = H(null), [W,
|
|
8069
|
+
const p = De("md"), [g, x] = H(!1), [B, y] = H(null), [W, S] = H(!1), [L, w] = H({ x: 0, y: 0 }), [v, I] = H(1), [R, C] = H(null);
|
|
8066
8070
|
J(() => {
|
|
8067
8071
|
r === null && i(null);
|
|
8068
8072
|
}, [r]);
|
|
@@ -8077,32 +8081,32 @@ const tn = {
|
|
|
8077
8081
|
if (!Z) return;
|
|
8078
8082
|
const he = new FileReader();
|
|
8079
8083
|
he.onload = () => {
|
|
8080
|
-
y(he.result),
|
|
8084
|
+
y(he.result), S(!0);
|
|
8081
8085
|
}, he.readAsDataURL(Z);
|
|
8082
8086
|
}, O = async () => {
|
|
8083
8087
|
if (!(!B || !R))
|
|
8084
8088
|
try {
|
|
8085
|
-
const Q = await
|
|
8089
|
+
const Q = await ul(B, R);
|
|
8086
8090
|
if (a && Q.size > a * 1024 * 1024) {
|
|
8087
8091
|
d == null || d(`Ukuran file maksimal ${a}MB`);
|
|
8088
8092
|
return;
|
|
8089
8093
|
}
|
|
8090
8094
|
t == null || t(Q);
|
|
8091
8095
|
const Z = URL.createObjectURL(Q);
|
|
8092
|
-
i(Z, Q),
|
|
8096
|
+
i(Z, Q), S(!1);
|
|
8093
8097
|
} catch {
|
|
8094
8098
|
d == null || d("Gagal memproses gambar");
|
|
8095
8099
|
}
|
|
8096
8100
|
}, j = de(null), G = () => {
|
|
8097
8101
|
j.current && j.current.click();
|
|
8098
8102
|
};
|
|
8099
|
-
|
|
8103
|
+
ti(f, () => ({
|
|
8100
8104
|
openFileDialog: () => {
|
|
8101
8105
|
var Q;
|
|
8102
8106
|
(Q = j.current) == null || Q.click();
|
|
8103
8107
|
}
|
|
8104
8108
|
}));
|
|
8105
|
-
const ne = parseInt(l, 10), fe =
|
|
8109
|
+
const ne = parseInt(l, 10), fe = rn[s];
|
|
8106
8110
|
let me, ee;
|
|
8107
8111
|
return fe >= 1 ? (ee = ne, me = ne * fe) : (me = ne, ee = ne / fe), /* @__PURE__ */ u(
|
|
8108
8112
|
m,
|
|
@@ -8237,7 +8241,7 @@ const tn = {
|
|
|
8237
8241
|
)
|
|
8238
8242
|
}
|
|
8239
8243
|
),
|
|
8240
|
-
W &&
|
|
8244
|
+
W && ri.createPortal(
|
|
8241
8245
|
/* @__PURE__ */ e(
|
|
8242
8246
|
"div",
|
|
8243
8247
|
{
|
|
@@ -8250,7 +8254,7 @@ const tn = {
|
|
|
8250
8254
|
justifyContent: "center",
|
|
8251
8255
|
backgroundColor: "rgba(0,0,0,0.6)"
|
|
8252
8256
|
},
|
|
8253
|
-
onClick: () =>
|
|
8257
|
+
onClick: () => S(!1),
|
|
8254
8258
|
children: /* @__PURE__ */ u(
|
|
8255
8259
|
"div",
|
|
8256
8260
|
{
|
|
@@ -8275,12 +8279,12 @@ const tn = {
|
|
|
8275
8279
|
backgroundColor: "var(--sa-color-gray-100)"
|
|
8276
8280
|
},
|
|
8277
8281
|
children: B && /* @__PURE__ */ e(
|
|
8278
|
-
|
|
8282
|
+
ni,
|
|
8279
8283
|
{
|
|
8280
8284
|
image: B,
|
|
8281
8285
|
crop: L,
|
|
8282
8286
|
zoom: v,
|
|
8283
|
-
aspect: s ?
|
|
8287
|
+
aspect: s ? rn[s] : void 0,
|
|
8284
8288
|
onCropChange: w,
|
|
8285
8289
|
onZoomChange: I,
|
|
8286
8290
|
onCropComplete: E,
|
|
@@ -8302,7 +8306,7 @@ const tn = {
|
|
|
8302
8306
|
borderTop: "1px solid var(--sa-border-subtle)"
|
|
8303
8307
|
},
|
|
8304
8308
|
children: [
|
|
8305
|
-
/* @__PURE__ */ e($, { size: "sm", secondary: !0, onClick: () =>
|
|
8309
|
+
/* @__PURE__ */ e($, { size: "sm", secondary: !0, onClick: () => S(!1), children: "Cancel" }),
|
|
8306
8310
|
/* @__PURE__ */ e($, { size: "sm", primary: !0, onClick: O, children: "Crop" })
|
|
8307
8311
|
]
|
|
8308
8312
|
}
|
|
@@ -8318,7 +8322,7 @@ const tn = {
|
|
|
8318
8322
|
}
|
|
8319
8323
|
);
|
|
8320
8324
|
}
|
|
8321
|
-
),
|
|
8325
|
+
), fl = ({
|
|
8322
8326
|
size: t = "md",
|
|
8323
8327
|
direction: r = "vertical",
|
|
8324
8328
|
requiredTitle: n = "(Required)",
|
|
@@ -8388,13 +8392,13 @@ const tn = {
|
|
|
8388
8392
|
}
|
|
8389
8393
|
),
|
|
8390
8394
|
/* @__PURE__ */ u(ae, { direction: "column", gap: "xs", children: [
|
|
8391
|
-
/* @__PURE__ */ e(
|
|
8395
|
+
/* @__PURE__ */ e(hl, { ...l.inputProps }),
|
|
8392
8396
|
!s && l.errorMessage && /* @__PURE__ */ e(et, { message: l.errorMessage })
|
|
8393
8397
|
] })
|
|
8394
8398
|
]
|
|
8395
8399
|
}
|
|
8396
8400
|
);
|
|
8397
|
-
},
|
|
8401
|
+
}, ml = ({
|
|
8398
8402
|
size: t = "md",
|
|
8399
8403
|
direction: r = "vertical",
|
|
8400
8404
|
requiredTitle: n = "(Required)",
|
|
@@ -8466,7 +8470,7 @@ const tn = {
|
|
|
8466
8470
|
]
|
|
8467
8471
|
}
|
|
8468
8472
|
);
|
|
8469
|
-
},
|
|
8473
|
+
}, qc = ({
|
|
8470
8474
|
items: t,
|
|
8471
8475
|
id: r,
|
|
8472
8476
|
handleOnUpdate: n,
|
|
@@ -8503,20 +8507,20 @@ const tn = {
|
|
|
8503
8507
|
)
|
|
8504
8508
|
}
|
|
8505
8509
|
);
|
|
8506
|
-
},
|
|
8507
|
-
InputText:
|
|
8508
|
-
InputDropdown:
|
|
8509
|
-
InputSingleFile:
|
|
8510
|
-
CheckBoxOptions:
|
|
8511
|
-
RadioOptions:
|
|
8512
|
-
InputTextArea:
|
|
8513
|
-
ToggleForm:
|
|
8514
|
-
ActionButton:
|
|
8515
|
-
FormTitle:
|
|
8516
|
-
InputDate:
|
|
8517
|
-
InputImgFile:
|
|
8518
|
-
Custom:
|
|
8519
|
-
},
|
|
8510
|
+
}, Uc = {
|
|
8511
|
+
InputText: Po,
|
|
8512
|
+
InputDropdown: Zo,
|
|
8513
|
+
InputSingleFile: nl,
|
|
8514
|
+
CheckBoxOptions: il,
|
|
8515
|
+
RadioOptions: ol,
|
|
8516
|
+
InputTextArea: ll,
|
|
8517
|
+
ToggleForm: cl,
|
|
8518
|
+
ActionButton: sl,
|
|
8519
|
+
FormTitle: al,
|
|
8520
|
+
InputDate: dl,
|
|
8521
|
+
InputImgFile: fl,
|
|
8522
|
+
Custom: ml
|
|
8523
|
+
}, gl = ({ customBottom: t }) => {
|
|
8520
8524
|
const [r, n] = H(!1), o = () => {
|
|
8521
8525
|
window.scrollY > window.screenY ? n(!0) : n(!1);
|
|
8522
8526
|
}, i = () => {
|
|
@@ -8568,7 +8572,7 @@ const tn = {
|
|
|
8568
8572
|
)
|
|
8569
8573
|
}
|
|
8570
8574
|
);
|
|
8571
|
-
}, Ie = "sa-sidepanel-item",
|
|
8575
|
+
}, Ie = "sa-sidepanel-item", nn = "sa-sidepanel-item-styles", pl = "inset 3.5px 0 0 0 var(--sa-border-focused, #1a4fa0)", yl = "inset -3.5px 0 0 0 var(--sa-border-focused, #1a4fa0)", bl = `
|
|
8572
8576
|
.${Ie} {
|
|
8573
8577
|
display: block;
|
|
8574
8578
|
box-sizing: border-box;
|
|
@@ -8606,11 +8610,11 @@ const tn = {
|
|
|
8606
8610
|
/* Accent bar — sign of the offset picks the edge it hugs. */
|
|
8607
8611
|
.${Ie}[data-accent="left"]:focus-visible,
|
|
8608
8612
|
.${Ie}[data-accent="left"][data-active="true"] {
|
|
8609
|
-
box-shadow: ${
|
|
8613
|
+
box-shadow: ${pl};
|
|
8610
8614
|
}
|
|
8611
8615
|
.${Ie}[data-accent="right"]:focus-visible,
|
|
8612
8616
|
.${Ie}[data-accent="right"][data-active="true"] {
|
|
8613
|
-
box-shadow: ${
|
|
8617
|
+
box-shadow: ${yl};
|
|
8614
8618
|
}
|
|
8615
8619
|
.${Ie}[data-active="true"]:hover {
|
|
8616
8620
|
background: var(--sa-background-brand-subtlest, #e6edf6);
|
|
@@ -8620,12 +8624,12 @@ const tn = {
|
|
|
8620
8624
|
opacity: 0.55;
|
|
8621
8625
|
}
|
|
8622
8626
|
`;
|
|
8623
|
-
function
|
|
8624
|
-
if (typeof document > "u" || document.getElementById(
|
|
8627
|
+
function xl() {
|
|
8628
|
+
if (typeof document > "u" || document.getElementById(nn)) return;
|
|
8625
8629
|
const t = document.createElement("style");
|
|
8626
|
-
t.id =
|
|
8630
|
+
t.id = nn, t.textContent = bl, document.head.appendChild(t);
|
|
8627
8631
|
}
|
|
8628
|
-
const
|
|
8632
|
+
const Jc = ({
|
|
8629
8633
|
active: t = !1,
|
|
8630
8634
|
accentSide: r = "left",
|
|
8631
8635
|
onClick: n,
|
|
@@ -8639,7 +8643,7 @@ const Uc = ({
|
|
|
8639
8643
|
className: f,
|
|
8640
8644
|
style: p,
|
|
8641
8645
|
"aria-label": g
|
|
8642
|
-
}) => (J(
|
|
8646
|
+
}) => (J(xl, []), /* @__PURE__ */ e(
|
|
8643
8647
|
"button",
|
|
8644
8648
|
{
|
|
8645
8649
|
type: "button",
|
|
@@ -8709,7 +8713,7 @@ const Uc = ({
|
|
|
8709
8713
|
}
|
|
8710
8714
|
)
|
|
8711
8715
|
}
|
|
8712
|
-
)), lr = 18,
|
|
8716
|
+
)), lr = 18, vl = 40, on = "280ms cubic-bezier(0.4, 0, 0.2, 1)", Ln = "var(--sa-border-subtle, #0b120e24)", Cl = `1px solid ${Ln}`, ln = "var(--sa-background-white, #ffffff)", Qc = ({
|
|
8713
8717
|
children: t,
|
|
8714
8718
|
header: r,
|
|
8715
8719
|
collapsed: n,
|
|
@@ -8727,20 +8731,20 @@ const Uc = ({
|
|
|
8727
8731
|
bodyStyle: B,
|
|
8728
8732
|
className: y,
|
|
8729
8733
|
pageLayout: W,
|
|
8730
|
-
overlay:
|
|
8734
|
+
overlay: S = "mobile",
|
|
8731
8735
|
wrapperProps: L,
|
|
8732
8736
|
contentProps: w
|
|
8733
8737
|
}) => {
|
|
8734
8738
|
const v = De("md"), I = n !== void 0, [R, C] = H(o), E = I ? n : R, V = () => {
|
|
8735
8739
|
const he = !E;
|
|
8736
8740
|
I || C(he), i == null || i(he);
|
|
8737
|
-
}, O = s === "left", j = typeof c == "number" ? `${c}px` : c, G = a !== void 0 ? typeof a == "number" ? `${a}px` : a : `calc(100vh - ${j})`, ne = g ?? { collapse: "Collapse panel", expand: "Expand panel" }, fe = f === "center" ? { top: "50%", transform: "translateY(-50%)" } : f === "bottom" ? { bottom: p } : { top: p }, me = E ? O ? "ChevronRight" : "ChevronLeft" : O ? "ChevronLeft" : "ChevronRight", ee = W !== void 0 && (
|
|
8741
|
+
}, O = s === "left", j = typeof c == "number" ? `${c}px` : c, G = a !== void 0 ? typeof a == "number" ? `${a}px` : a : `calc(100vh - ${j})`, ne = g ?? { collapse: "Collapse panel", expand: "Expand panel" }, fe = f === "center" ? { top: "50%", transform: "translateY(-50%)" } : f === "bottom" ? { bottom: p } : { top: p }, me = E ? O ? "ChevronRight" : "ChevronLeft" : O ? "ChevronLeft" : "ChevronRight", ee = W !== void 0 && (S === "mobile" ? !v : S), Q = ee ? {
|
|
8738
8742
|
position: "absolute",
|
|
8739
8743
|
top: 0,
|
|
8740
8744
|
bottom: 0,
|
|
8741
8745
|
width: l,
|
|
8742
8746
|
transform: `translateX(${E ? O ? "-100%" : "100%" : "0"})`,
|
|
8743
|
-
transition: `transform ${
|
|
8747
|
+
transition: `transform ${on}`,
|
|
8744
8748
|
zIndex: 50,
|
|
8745
8749
|
...O ? { left: 0 } : { right: 0 },
|
|
8746
8750
|
// boxShadow: isLeft
|
|
@@ -8754,7 +8758,7 @@ const Uc = ({
|
|
|
8754
8758
|
width: E ? 0 : l,
|
|
8755
8759
|
flexShrink: 0,
|
|
8756
8760
|
height: G,
|
|
8757
|
-
transition: `width ${
|
|
8761
|
+
transition: `width ${on}`,
|
|
8758
8762
|
...x
|
|
8759
8763
|
}, Z = /* @__PURE__ */ u(
|
|
8760
8764
|
m,
|
|
@@ -8772,7 +8776,7 @@ const Uc = ({
|
|
|
8772
8776
|
overflow: "overflow-hidden",
|
|
8773
8777
|
borderStyle: E ? void 0 : O ? "border-solid-r" : "border-solid-l",
|
|
8774
8778
|
borderWidth: E ? void 0 : O ? "border-r" : "border-l",
|
|
8775
|
-
style: { backgroundColor:
|
|
8779
|
+
style: { backgroundColor: ln, borderColor: Ln },
|
|
8776
8780
|
children: /* @__PURE__ */ u(
|
|
8777
8781
|
m,
|
|
8778
8782
|
{
|
|
@@ -8810,11 +8814,11 @@ const Uc = ({
|
|
|
8810
8814
|
"aria-expanded": !E,
|
|
8811
8815
|
"aria-pressed": E,
|
|
8812
8816
|
customWidth: lr,
|
|
8813
|
-
customHeight:
|
|
8817
|
+
customHeight: vl,
|
|
8814
8818
|
style: {
|
|
8815
8819
|
...fe,
|
|
8816
|
-
backgroundColor:
|
|
8817
|
-
border:
|
|
8820
|
+
backgroundColor: ln,
|
|
8821
|
+
border: Cl,
|
|
8818
8822
|
zIndex: 5,
|
|
8819
8823
|
...O ? {
|
|
8820
8824
|
right: -lr,
|
|
@@ -8882,7 +8886,7 @@ const Uc = ({
|
|
|
8882
8886
|
]
|
|
8883
8887
|
}
|
|
8884
8888
|
);
|
|
8885
|
-
},
|
|
8889
|
+
}, Yc = ({ pageLayout: t, children: r, wrapperProps: n, containerProps: o }) => {
|
|
8886
8890
|
const i = De("md"), l = (o == null ? void 0 : o.customWidth) ?? 264;
|
|
8887
8891
|
return /* @__PURE__ */ u(
|
|
8888
8892
|
m,
|
|
@@ -8922,7 +8926,7 @@ const Uc = ({
|
|
|
8922
8926
|
]
|
|
8923
8927
|
}
|
|
8924
8928
|
);
|
|
8925
|
-
},
|
|
8929
|
+
}, Xc = ({
|
|
8926
8930
|
children: t,
|
|
8927
8931
|
withScrollToTopButton: r = !1,
|
|
8928
8932
|
scrollToTopButtonProps: n,
|
|
@@ -8949,7 +8953,7 @@ const Uc = ({
|
|
|
8949
8953
|
borderWidth: "border-t",
|
|
8950
8954
|
children: [
|
|
8951
8955
|
r && /* @__PURE__ */ e(
|
|
8952
|
-
|
|
8956
|
+
gl,
|
|
8953
8957
|
{
|
|
8954
8958
|
...n,
|
|
8955
8959
|
customBottom: (n == null ? void 0 : n.customBottom) || "5.7rem"
|
|
@@ -8958,13 +8962,13 @@ const Uc = ({
|
|
|
8958
8962
|
t
|
|
8959
8963
|
]
|
|
8960
8964
|
}
|
|
8961
|
-
) }),
|
|
8965
|
+
) }), Kc = ({ fields: t }) => /* @__PURE__ */ e(m, { display: "flex", direction: "column", gap: "lg", children: /* @__PURE__ */ e(
|
|
8962
8966
|
wr,
|
|
8963
8967
|
{
|
|
8964
8968
|
of: t,
|
|
8965
|
-
render: (r, n) => /* @__PURE__ */ e(
|
|
8969
|
+
render: (r, n) => /* @__PURE__ */ e(wl, { ...r }, n)
|
|
8966
8970
|
}
|
|
8967
|
-
) }),
|
|
8971
|
+
) }), wl = ({ title: t, value: r, icon: n }) => /* @__PURE__ */ u(m, { display: "flex", direction: "column", gap: "sm", children: [
|
|
8968
8972
|
n ? /* @__PURE__ */ u(m, { display: "flex", direction: "row", align: "center", gap: "xs", children: [
|
|
8969
8973
|
/* @__PURE__ */ e(M, { name: n, color: "subtle" }),
|
|
8970
8974
|
/* @__PURE__ */ e(D, { color: "gray-500", variant: "sub-h3", children: t })
|
|
@@ -8974,7 +8978,7 @@ const Uc = ({
|
|
|
8974
8978
|
silhouette: "#A7B0AC",
|
|
8975
8979
|
accent: "#78867F"
|
|
8976
8980
|
};
|
|
8977
|
-
function
|
|
8981
|
+
function Dl({ width: t, height: r }) {
|
|
8978
8982
|
return /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ u(
|
|
8979
8983
|
"svg",
|
|
8980
8984
|
{
|
|
@@ -9117,7 +9121,7 @@ function Cl({ width: t, height: r }) {
|
|
|
9117
9121
|
}
|
|
9118
9122
|
) });
|
|
9119
9123
|
}
|
|
9120
|
-
const
|
|
9124
|
+
const es = ({
|
|
9121
9125
|
title: t = "create",
|
|
9122
9126
|
children: r,
|
|
9123
9127
|
onClickAction: n,
|
|
@@ -9162,7 +9166,7 @@ const Kc = ({
|
|
|
9162
9166
|
marginBlock: "auto",
|
|
9163
9167
|
customHeight: c,
|
|
9164
9168
|
children: [
|
|
9165
|
-
d || /* @__PURE__ */ e(
|
|
9169
|
+
d || /* @__PURE__ */ e(Dl, {}),
|
|
9166
9170
|
/* @__PURE__ */ e(m, { direction: "column", children: r.map((p, g) => /* @__PURE__ */ e(
|
|
9167
9171
|
Ue.Body1,
|
|
9168
9172
|
{
|
|
@@ -9188,7 +9192,7 @@ const Kc = ({
|
|
|
9188
9192
|
c000000: "#000000",
|
|
9189
9193
|
cFFFFFF: "#FFFFFF"
|
|
9190
9194
|
};
|
|
9191
|
-
function
|
|
9195
|
+
function kl({ width: t, height: r }) {
|
|
9192
9196
|
return /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ u(
|
|
9193
9197
|
"svg",
|
|
9194
9198
|
{
|
|
@@ -9391,7 +9395,7 @@ function wl({ width: t, height: r }) {
|
|
|
9391
9395
|
}
|
|
9392
9396
|
) });
|
|
9393
9397
|
}
|
|
9394
|
-
function
|
|
9398
|
+
function ts({ onClick: t }) {
|
|
9395
9399
|
const r = De("md");
|
|
9396
9400
|
return /* @__PURE__ */ u(
|
|
9397
9401
|
m,
|
|
@@ -9404,7 +9408,7 @@ function es({ onClick: t }) {
|
|
|
9404
9408
|
justify: "center",
|
|
9405
9409
|
gap: "md",
|
|
9406
9410
|
children: [
|
|
9407
|
-
/* @__PURE__ */ e(
|
|
9411
|
+
/* @__PURE__ */ e(kl, { width: r ? 600 : 300 }),
|
|
9408
9412
|
/* @__PURE__ */ e(
|
|
9409
9413
|
D,
|
|
9410
9414
|
{
|
|
@@ -9449,7 +9453,7 @@ const re = {
|
|
|
9449
9453
|
cF4F4F4: "#F4F4F4",
|
|
9450
9454
|
cFFFFFF: "#FFFFFF"
|
|
9451
9455
|
};
|
|
9452
|
-
function
|
|
9456
|
+
function Sl({ width: t, height: r }) {
|
|
9453
9457
|
return /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ u(
|
|
9454
9458
|
"svg",
|
|
9455
9459
|
{
|
|
@@ -9664,7 +9668,7 @@ function Dl({ width: t, height: r }) {
|
|
|
9664
9668
|
}
|
|
9665
9669
|
) });
|
|
9666
9670
|
}
|
|
9667
|
-
function
|
|
9671
|
+
function rs({ onClick: t }) {
|
|
9668
9672
|
const r = De("md");
|
|
9669
9673
|
return /* @__PURE__ */ u(
|
|
9670
9674
|
m,
|
|
@@ -9677,7 +9681,7 @@ function ts({ onClick: t }) {
|
|
|
9677
9681
|
justify: "center",
|
|
9678
9682
|
gap: "md",
|
|
9679
9683
|
children: [
|
|
9680
|
-
/* @__PURE__ */ e(
|
|
9684
|
+
/* @__PURE__ */ e(Sl, { width: r ? 600 : 300 }),
|
|
9681
9685
|
/* @__PURE__ */ e(D, { fontWeight: "bold", fontSize: r ? "3xl" : "2xl", children: "We Are Sorry ..." }),
|
|
9682
9686
|
t && /* @__PURE__ */ e($, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
|
|
9683
9687
|
]
|
|
@@ -9701,7 +9705,7 @@ const h = {
|
|
|
9701
9705
|
cFFE18B: "#FFE18B",
|
|
9702
9706
|
cFFFFFF: "#FFFFFF"
|
|
9703
9707
|
};
|
|
9704
|
-
function
|
|
9708
|
+
function Fl({ width: t, height: r }) {
|
|
9705
9709
|
return /* @__PURE__ */ e(oe, { children: /* @__PURE__ */ u(
|
|
9706
9710
|
"svg",
|
|
9707
9711
|
{
|
|
@@ -10373,7 +10377,7 @@ function kl({ width: t, height: r }) {
|
|
|
10373
10377
|
}
|
|
10374
10378
|
) });
|
|
10375
10379
|
}
|
|
10376
|
-
function
|
|
10380
|
+
function ns({ onClick: t }) {
|
|
10377
10381
|
const r = De("md");
|
|
10378
10382
|
return /* @__PURE__ */ u(
|
|
10379
10383
|
m,
|
|
@@ -10387,7 +10391,7 @@ function rs({ onClick: t }) {
|
|
|
10387
10391
|
gap: "md",
|
|
10388
10392
|
overflow: "overflow-hidden",
|
|
10389
10393
|
children: [
|
|
10390
|
-
/* @__PURE__ */ e(
|
|
10394
|
+
/* @__PURE__ */ e(Fl, { width: r ? 600 : 300 }),
|
|
10391
10395
|
/* @__PURE__ */ e(
|
|
10392
10396
|
D,
|
|
10393
10397
|
{
|
|
@@ -10411,7 +10415,7 @@ function rs({ onClick: t }) {
|
|
|
10411
10415
|
}
|
|
10412
10416
|
);
|
|
10413
10417
|
}
|
|
10414
|
-
const
|
|
10418
|
+
const is = (t) => {
|
|
10415
10419
|
var n, o, i, l, s;
|
|
10416
10420
|
const r = De("md");
|
|
10417
10421
|
return /* @__PURE__ */ u(
|
|
@@ -10427,9 +10431,9 @@ const ns = (t) => {
|
|
|
10427
10431
|
}
|
|
10428
10432
|
},
|
|
10429
10433
|
children: [
|
|
10430
|
-
/* @__PURE__ */ e(
|
|
10434
|
+
/* @__PURE__ */ e(cn, { ...t.dialogTitleProps, children: typeof t.title == "string" ? /* @__PURE__ */ e(D, { fontSize: "lg", fontWeight: "medium", children: t.title }) : t.title }),
|
|
10431
10435
|
/* @__PURE__ */ e(hr, { children: typeof t.description == "string" ? /* @__PURE__ */ e(D, { fontSize: "md", lineHeight: "leading-6", color: "brand", children: t.description }) : t.description }),
|
|
10432
|
-
/* @__PURE__ */ e(
|
|
10436
|
+
/* @__PURE__ */ e(sn, { children: /* @__PURE__ */ e(
|
|
10433
10437
|
m,
|
|
10434
10438
|
{
|
|
10435
10439
|
display: "flex",
|
|
@@ -10475,7 +10479,7 @@ const ns = (t) => {
|
|
|
10475
10479
|
},
|
|
10476
10480
|
t.key
|
|
10477
10481
|
);
|
|
10478
|
-
},
|
|
10482
|
+
}, os = Je(
|
|
10479
10483
|
({
|
|
10480
10484
|
children: t,
|
|
10481
10485
|
height: r,
|
|
@@ -10495,11 +10499,11 @@ const ns = (t) => {
|
|
|
10495
10499
|
footerProps: y = { borderTop: !0 },
|
|
10496
10500
|
variantTag: W = "info"
|
|
10497
10501
|
}) => {
|
|
10498
|
-
const
|
|
10502
|
+
const S = de(null), [L, w] = H("100vh");
|
|
10499
10503
|
J(() => {
|
|
10500
10504
|
const C = () => {
|
|
10501
|
-
if (
|
|
10502
|
-
const E =
|
|
10505
|
+
if (S.current) {
|
|
10506
|
+
const E = S.current.getBoundingClientRect().top;
|
|
10503
10507
|
w(`calc(100vh - ${E}px)`);
|
|
10504
10508
|
}
|
|
10505
10509
|
};
|
|
@@ -10524,7 +10528,7 @@ const ns = (t) => {
|
|
|
10524
10528
|
return /* @__PURE__ */ u(
|
|
10525
10529
|
m,
|
|
10526
10530
|
{
|
|
10527
|
-
ref:
|
|
10531
|
+
ref: S,
|
|
10528
10532
|
height: r,
|
|
10529
10533
|
customMinHeight: n,
|
|
10530
10534
|
customHeight: o,
|
|
@@ -10540,7 +10544,7 @@ const ns = (t) => {
|
|
|
10540
10544
|
...(g == null ? void 0 : g.style) ?? {}
|
|
10541
10545
|
},
|
|
10542
10546
|
children: [
|
|
10543
|
-
s !== null && R ? /* @__PURE__ */ e(
|
|
10547
|
+
s !== null && R ? /* @__PURE__ */ e(xn, { ...B, children: I() }) : null,
|
|
10544
10548
|
/* @__PURE__ */ e(
|
|
10545
10549
|
m,
|
|
10546
10550
|
{
|
|
@@ -10555,12 +10559,12 @@ const ns = (t) => {
|
|
|
10555
10559
|
children: t
|
|
10556
10560
|
}
|
|
10557
10561
|
),
|
|
10558
|
-
c ? /* @__PURE__ */ e(
|
|
10562
|
+
c ? /* @__PURE__ */ e(vn, { ...y, children: c }) : null
|
|
10559
10563
|
]
|
|
10560
10564
|
}
|
|
10561
10565
|
);
|
|
10562
10566
|
}
|
|
10563
|
-
),
|
|
10567
|
+
), ls = it.memo(
|
|
10564
10568
|
({ value: t, options: r = [], onChange: n, multiple: o }) => {
|
|
10565
10569
|
const i = (t == null ? void 0 : t.map((c) => c.value)) || [], l = (r == null ? void 0 : r.filter((c) => i.includes(c.value))) || [], s = (c) => {
|
|
10566
10570
|
const a = [...l];
|
|
@@ -10611,11 +10615,11 @@ const Se = {
|
|
|
10611
10615
|
"lyd-vm-group": "_lyd-vm-group_14rlp_168",
|
|
10612
10616
|
"lyd-vm-btn": "_lyd-vm-btn_14rlp_176",
|
|
10613
10617
|
"lyd-close-btn": "_lyd-close-btn_14rlp_199"
|
|
10614
|
-
},
|
|
10618
|
+
}, El = [
|
|
10615
10619
|
{
|
|
10616
10620
|
mode: "sidebar",
|
|
10617
10621
|
label: "Sidebar",
|
|
10618
|
-
icon: /* @__PURE__ */ e(
|
|
10622
|
+
icon: /* @__PURE__ */ e(Ml, {})
|
|
10619
10623
|
},
|
|
10620
10624
|
{
|
|
10621
10625
|
mode: "modal",
|
|
@@ -10628,8 +10632,8 @@ const Se = {
|
|
|
10628
10632
|
icon: /* @__PURE__ */ e(M, { name: "Fullscreen", size: "sm" })
|
|
10629
10633
|
}
|
|
10630
10634
|
];
|
|
10631
|
-
function
|
|
10632
|
-
return /* @__PURE__ */ e("div", { className: Se["lyd-vm-group"], role: "group", "aria-label": "View mode", children:
|
|
10635
|
+
function Ll({ value: t, onChange: r }) {
|
|
10636
|
+
return /* @__PURE__ */ e("div", { className: Se["lyd-vm-group"], role: "group", "aria-label": "View mode", children: El.map((n) => /* @__PURE__ */ e(
|
|
10633
10637
|
"button",
|
|
10634
10638
|
{
|
|
10635
10639
|
type: "button",
|
|
@@ -10643,7 +10647,7 @@ function Fl({ value: t, onChange: r }) {
|
|
|
10643
10647
|
n.mode
|
|
10644
10648
|
)) });
|
|
10645
10649
|
}
|
|
10646
|
-
function
|
|
10650
|
+
function Ml() {
|
|
10647
10651
|
return /* @__PURE__ */ u(
|
|
10648
10652
|
"svg",
|
|
10649
10653
|
{
|
|
@@ -10670,7 +10674,7 @@ const cr = {
|
|
|
10670
10674
|
xl: "1200px",
|
|
10671
10675
|
"2xl": "1440px"
|
|
10672
10676
|
};
|
|
10673
|
-
function
|
|
10677
|
+
function Wl(t) {
|
|
10674
10678
|
return t ? t in cr ? cr[t] : t : cr.xl;
|
|
10675
10679
|
}
|
|
10676
10680
|
function Lt(t, r) {
|
|
@@ -10679,7 +10683,7 @@ function Lt(t, r) {
|
|
|
10679
10683
|
it.isValidElement(o) && o.type === r && (n = o.props.children ?? null);
|
|
10680
10684
|
}), n;
|
|
10681
10685
|
}
|
|
10682
|
-
function
|
|
10686
|
+
function Bl(t) {
|
|
10683
10687
|
const {
|
|
10684
10688
|
isOpen: r,
|
|
10685
10689
|
onClose: n,
|
|
@@ -10732,7 +10736,7 @@ function Ml(t) {
|
|
|
10732
10736
|
L === "fullscreen" && Se["lyd-fullscreen"],
|
|
10733
10737
|
L === "sidebar" && Se["lyd-sidebar"]
|
|
10734
10738
|
].filter(Boolean).join(" "), O = {
|
|
10735
|
-
"--lyd-max-w":
|
|
10739
|
+
"--lyd-max-w": Wl(a),
|
|
10736
10740
|
...d !== void 0 && { "--lyd-aside-w": d }
|
|
10737
10741
|
}, j = () => {
|
|
10738
10742
|
p || n();
|
|
@@ -10757,7 +10761,7 @@ function Ml(t) {
|
|
|
10757
10761
|
/* @__PURE__ */ u("div", { className: Se["lyd-header"], children: [
|
|
10758
10762
|
/* @__PURE__ */ e("div", { className: Se["lyd-header-content"], children: I }),
|
|
10759
10763
|
/* @__PURE__ */ u("div", { className: Se["lyd-header-actions"], children: [
|
|
10760
|
-
s && /* @__PURE__ */ e(
|
|
10764
|
+
s && /* @__PURE__ */ e(Ll, { value: W, onChange: w }),
|
|
10761
10765
|
c && /* @__PURE__ */ e(
|
|
10762
10766
|
"button",
|
|
10763
10767
|
{
|
|
@@ -10780,12 +10784,12 @@ function Ml(t) {
|
|
|
10780
10784
|
}
|
|
10781
10785
|
);
|
|
10782
10786
|
}
|
|
10783
|
-
const jt =
|
|
10787
|
+
const jt = Bl;
|
|
10784
10788
|
jt.Header = Dr;
|
|
10785
10789
|
jt.Body = kr;
|
|
10786
10790
|
jt.Aside = Sr;
|
|
10787
10791
|
jt.Footer = Fr;
|
|
10788
|
-
function
|
|
10792
|
+
function cs({ url: t, filename: r, onClose: n }) {
|
|
10789
10793
|
return J(() => {
|
|
10790
10794
|
const o = (i) => {
|
|
10791
10795
|
i.key === "Escape" && n();
|
|
@@ -10883,7 +10887,7 @@ function ls({ url: t, filename: r, onClose: n }) {
|
|
|
10883
10887
|
}
|
|
10884
10888
|
);
|
|
10885
10889
|
}
|
|
10886
|
-
const
|
|
10890
|
+
const ss = (t) => {
|
|
10887
10891
|
const { defaultTab: r = 0, paramKey: n = "tab" } = t || {}, [o, i] = Tt(), l = Ht(o.toString());
|
|
10888
10892
|
return {
|
|
10889
10893
|
activeTab: l[n] ? parseInt(l[n]) : r,
|
|
@@ -10896,7 +10900,7 @@ const cs = (t) => {
|
|
|
10896
10900
|
searchQueries: l
|
|
10897
10901
|
};
|
|
10898
10902
|
};
|
|
10899
|
-
function
|
|
10903
|
+
function as({
|
|
10900
10904
|
appName: t,
|
|
10901
10905
|
menuConfig: r,
|
|
10902
10906
|
formatTitle: n
|
|
@@ -10917,8 +10921,8 @@ function ss({
|
|
|
10917
10921
|
document.title = (n || c)(s, t);
|
|
10918
10922
|
}, [o.pathname]);
|
|
10919
10923
|
}
|
|
10920
|
-
const
|
|
10921
|
-
const [t, r] = Tt(), n = Ht(t.toString()), o =
|
|
10924
|
+
const ds = () => {
|
|
10925
|
+
const [t, r] = Tt(), n = Ht(t.toString()), o = hn(), i = yt(), l = o.id;
|
|
10922
10926
|
return {
|
|
10923
10927
|
// query params
|
|
10924
10928
|
setSearchParams: r,
|
|
@@ -10936,7 +10940,7 @@ const as = () => {
|
|
|
10936
10940
|
hasId: !!l
|
|
10937
10941
|
};
|
|
10938
10942
|
};
|
|
10939
|
-
function
|
|
10943
|
+
function us(t) {
|
|
10940
10944
|
var o, i;
|
|
10941
10945
|
const r = t.decodedAccessToken;
|
|
10942
10946
|
return ye(() => {
|
|
@@ -10962,111 +10966,111 @@ function ds(t) {
|
|
|
10962
10966
|
}, [(i = (o = r == null ? void 0 : r.access) == null ? void 0 : o.role) == null ? void 0 : i.code, t]);
|
|
10963
10967
|
}
|
|
10964
10968
|
export {
|
|
10965
|
-
|
|
10966
|
-
|
|
10967
|
-
|
|
10968
|
-
|
|
10969
|
-
|
|
10970
|
-
|
|
10971
|
-
|
|
10972
|
-
|
|
10973
|
-
|
|
10974
|
-
|
|
10975
|
-
|
|
10969
|
+
Gi as AdvanceFilterBar,
|
|
10970
|
+
ac as App,
|
|
10971
|
+
si as AppComponent,
|
|
10972
|
+
mn as AppContext,
|
|
10973
|
+
fc as AppLayout,
|
|
10974
|
+
Yc as AsideBar,
|
|
10975
|
+
mc as BackButton,
|
|
10976
|
+
zo as ColumnFilterDropdown,
|
|
10977
|
+
To as ColumnMenu,
|
|
10978
|
+
is as ConfirmationDialog,
|
|
10979
|
+
Io as DataTable,
|
|
10976
10980
|
ce as DecisionWrapper,
|
|
10977
10981
|
wr as EachUtils,
|
|
10978
|
-
|
|
10979
|
-
|
|
10980
|
-
|
|
10981
|
-
|
|
10982
|
-
|
|
10983
|
-
|
|
10984
|
-
|
|
10985
|
-
|
|
10986
|
-
|
|
10987
|
-
|
|
10988
|
-
|
|
10989
|
-
|
|
10990
|
-
|
|
10991
|
-
|
|
10982
|
+
es as EmptyStatePage,
|
|
10983
|
+
wc as FilterBar,
|
|
10984
|
+
Zi as FilterDrawer,
|
|
10985
|
+
Xc as FloatingFooter,
|
|
10986
|
+
rs as ForbiddenPage,
|
|
10987
|
+
Uc as Form,
|
|
10988
|
+
os as FullSection,
|
|
10989
|
+
dc as HeaderLeftSlot,
|
|
10990
|
+
ui as HeaderLeftSlotOutlet,
|
|
10991
|
+
di as HeaderLeftSlotProvider,
|
|
10992
|
+
pc as HorizontalField,
|
|
10993
|
+
cs as ImagePreview,
|
|
10994
|
+
rl as InputFile,
|
|
10995
|
+
hl as InputImage,
|
|
10992
10996
|
jt as LayoutDialog,
|
|
10993
10997
|
Sr as LayoutDialogAside,
|
|
10994
10998
|
kr as LayoutDialogBody,
|
|
10995
10999
|
Fr as LayoutDialogFooter,
|
|
10996
11000
|
Dr as LayoutDialogHeader,
|
|
10997
|
-
|
|
10998
|
-
|
|
10999
|
-
|
|
11000
|
-
|
|
11001
|
+
gc as ModuleSwitcher,
|
|
11002
|
+
gi as ModuleSwitcherModal,
|
|
11003
|
+
ts as NotFoundPage,
|
|
11004
|
+
yc as PageLayout,
|
|
11001
11005
|
Nt as Pressable,
|
|
11002
|
-
|
|
11003
|
-
|
|
11004
|
-
|
|
11005
|
-
|
|
11006
|
-
|
|
11007
|
-
|
|
11008
|
-
|
|
11009
|
-
|
|
11010
|
-
|
|
11011
|
-
|
|
11012
|
-
|
|
11013
|
-
|
|
11014
|
-
|
|
11015
|
-
|
|
11016
|
-
|
|
11017
|
-
|
|
11018
|
-
|
|
11019
|
-
|
|
11020
|
-
|
|
11021
|
-
|
|
11006
|
+
Di as RightDrawer,
|
|
11007
|
+
gl as ScrollToTopButton,
|
|
11008
|
+
bc as Section,
|
|
11009
|
+
vn as SectionFooter,
|
|
11010
|
+
xn as SectionHeader,
|
|
11011
|
+
ls as SelectButton,
|
|
11012
|
+
ns as ServerErrorPage,
|
|
11013
|
+
Qc as SidePanel,
|
|
11014
|
+
Jc as SidePanelItem,
|
|
11015
|
+
li as SidebarBadgesProvider,
|
|
11016
|
+
uc as SidebarGroupSlot,
|
|
11017
|
+
fi as SidebarGroupSlotOutlet,
|
|
11018
|
+
hi as SidebarGroupSlotProvider,
|
|
11019
|
+
ai as SidebarHeaderSlot,
|
|
11020
|
+
Bo as TableFooter,
|
|
11021
|
+
Mo as TableHeader,
|
|
11022
|
+
Ec as TableLayout,
|
|
11023
|
+
Fc as TableSection,
|
|
11024
|
+
Lo as TableWrapper,
|
|
11025
|
+
qc as ToggleStatus,
|
|
11022
11026
|
Ue as Typography,
|
|
11023
|
-
|
|
11024
|
-
|
|
11025
|
-
|
|
11026
|
-
|
|
11027
|
-
|
|
11028
|
-
|
|
11029
|
-
|
|
11030
|
-
|
|
11031
|
-
|
|
11032
|
-
|
|
11033
|
-
|
|
11034
|
-
|
|
11035
|
-
|
|
11036
|
-
|
|
11027
|
+
Kc as VerticalField,
|
|
11028
|
+
hc as clearModuleSelection,
|
|
11029
|
+
Mc as createInitialFromUserName,
|
|
11030
|
+
Rc as cssVars,
|
|
11031
|
+
Sc as expandDateCompact,
|
|
11032
|
+
Oc as formHasChanged,
|
|
11033
|
+
Ac as formatDate,
|
|
11034
|
+
Uo as formatDateToIndonesian,
|
|
11035
|
+
Bc as formatRupiah,
|
|
11036
|
+
Pi as getDateFilterValue,
|
|
11037
|
+
vc as getDateRangeFilterValue,
|
|
11038
|
+
zc as getInitials,
|
|
11039
|
+
_i as getValueDropdownMultipleFilter,
|
|
11040
|
+
xc as getValueRadioFilter,
|
|
11037
11041
|
vr as getValueSearch,
|
|
11038
11042
|
Kt as getValuesFilter,
|
|
11039
11043
|
At as handleChangeFilter,
|
|
11040
|
-
|
|
11041
|
-
|
|
11042
|
-
|
|
11043
|
-
|
|
11044
|
-
|
|
11045
|
-
|
|
11046
|
-
|
|
11047
|
-
|
|
11048
|
-
|
|
11049
|
-
|
|
11050
|
-
|
|
11051
|
-
|
|
11052
|
-
|
|
11053
|
-
|
|
11054
|
-
|
|
11055
|
-
|
|
11056
|
-
|
|
11044
|
+
Gc as handleOnScroll,
|
|
11045
|
+
_c as isEmail,
|
|
11046
|
+
Cc as isFilterActive,
|
|
11047
|
+
Tc as isOnlyLettersAndSpaces,
|
|
11048
|
+
Vc as isPhoneNumber,
|
|
11049
|
+
Pc as isSlug,
|
|
11050
|
+
Cn as localStorageAdapter,
|
|
11051
|
+
Ic as oneDayInMs,
|
|
11052
|
+
Wc as parseIndonesianDateToDate,
|
|
11053
|
+
Zc as preventNonCoordinateInput,
|
|
11054
|
+
jc as preventNonNumberAndDecimalInput,
|
|
11055
|
+
Nc as preventNonNumberInput,
|
|
11056
|
+
$c as preventNumberInput,
|
|
11057
|
+
Ti as resolveDateRangeValueToString,
|
|
11058
|
+
Ni as resolveDateValueToString,
|
|
11059
|
+
Oi as resolveDropdownValueToString,
|
|
11060
|
+
Vi as resolveRadioValueToString,
|
|
11057
11061
|
Yt as resolveSidebarBadge,
|
|
11058
11062
|
bt as storageKeys,
|
|
11059
|
-
|
|
11060
|
-
|
|
11061
|
-
|
|
11062
|
-
|
|
11063
|
-
|
|
11064
|
-
|
|
11065
|
-
|
|
11066
|
-
|
|
11063
|
+
Hc as textWidth,
|
|
11064
|
+
gn as useApp,
|
|
11065
|
+
oi as useAppState,
|
|
11066
|
+
us as useAuthRole,
|
|
11067
|
+
as as useDynamicTitle,
|
|
11068
|
+
Dc as useFilterBarApiParams,
|
|
11069
|
+
kc as useFilterBarControls,
|
|
11070
|
+
bn as useModuleSelection,
|
|
11067
11071
|
Oe as useRouteInfo,
|
|
11068
|
-
|
|
11069
|
-
|
|
11070
|
-
|
|
11071
|
-
|
|
11072
|
+
ds as useRouteParams,
|
|
11073
|
+
ci as useSidebarBadges,
|
|
11074
|
+
ss as useTabState,
|
|
11075
|
+
Lc as useTableSortApiParams
|
|
11072
11076
|
};
|