@starasia/admin 6.6.4 → 6.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/BackButton/index.d.ts +2 -2
- package/dist/components/HeaderLeftSlot/index.d.ts +4 -4
- package/dist/components/ImagePreview/ImagePreview.d.ts +3 -1
- package/dist/components/Pressable/index.d.ts +1 -1
- package/dist/components/SidebarGroupSlot/index.d.ts +4 -4
- package/dist/components/index.d.ts +2 -2
- package/dist/index.cjs.js +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.es.js +815 -805
- package/dist/index.umd.js +1 -1
- package/package.json +2 -1
package/dist/index.es.js
CHANGED
|
@@ -3,39 +3,39 @@ import { Badges as Le } from "@starasia/badges";
|
|
|
3
3
|
export * from "@starasia/badges";
|
|
4
4
|
import { Box as f } from "@starasia/box";
|
|
5
5
|
export * from "@starasia/box";
|
|
6
|
-
import { Breadcrumb as lr, BreadcrumbItem as
|
|
6
|
+
import { Breadcrumb as lr, BreadcrumbItem as Mt, BreadcrumbLink as cr } from "@starasia/breadcrumb";
|
|
7
7
|
export * from "@starasia/breadcrumb";
|
|
8
8
|
import { Button as N } from "@starasia/button";
|
|
9
9
|
export * from "@starasia/button";
|
|
10
10
|
export * from "@starasia/card";
|
|
11
11
|
import { StarasiaDate as ar } from "@starasia/date";
|
|
12
12
|
export * from "@starasia/date";
|
|
13
|
-
import { Dialog as ut, DialogTitle as
|
|
13
|
+
import { Dialog as ut, DialogTitle as $t, DialogBody as ft, DialogFooter as Gt } from "@starasia/dialog";
|
|
14
14
|
export * from "@starasia/dialog";
|
|
15
15
|
import { Drawer as sr } from "@starasia/drawer";
|
|
16
16
|
export * from "@starasia/drawer";
|
|
17
17
|
import { Dropdown as gt } from "@starasia/dropdown";
|
|
18
18
|
export * from "@starasia/dropdown";
|
|
19
|
-
import { useMediaQuery as
|
|
19
|
+
import { useMediaQuery as oe } from "@starasia/hooks";
|
|
20
20
|
export * from "@starasia/hooks";
|
|
21
21
|
import { searchParamsToObject as Pe } from "@starasia/http";
|
|
22
22
|
export * from "@starasia/http";
|
|
23
23
|
import { Input as mt } from "@starasia/input";
|
|
24
24
|
export * from "@starasia/input";
|
|
25
|
-
import { Menu as
|
|
25
|
+
import { Menu as qt, MenuButton as Ge, MenuLists as Ut, MenuHeading as dr, MenuBody as Jt, MenuFooter as hr } from "@starasia/menu";
|
|
26
26
|
export * from "@starasia/menu";
|
|
27
27
|
import { Pagination as ur } from "@starasia/pagination";
|
|
28
28
|
export * from "@starasia/pagination";
|
|
29
29
|
export * from "@starasia/storage";
|
|
30
|
-
import { Tr as Ve, Td as Se, Table as
|
|
30
|
+
import { Tr as Ve, Td as Se, Table as Pt, Thead as fr, Th as Lt, Tbody as gr } from "@starasia/table";
|
|
31
31
|
export * from "@starasia/table";
|
|
32
32
|
export * from "@starasia/tabs";
|
|
33
33
|
import { Textarea as mr } from "@starasia/textarea";
|
|
34
34
|
export * from "@starasia/textarea";
|
|
35
|
-
import { useTheme as yr, ThemeProvider as
|
|
35
|
+
import { useTheme as yr, ThemeProvider as Wt, useColor as pr } from "@starasia/theme";
|
|
36
36
|
export * from "@starasia/theme";
|
|
37
37
|
export * from "@starasia/toast";
|
|
38
|
-
import { Toggle as
|
|
38
|
+
import { Toggle as Qt } from "@starasia/toggle";
|
|
39
39
|
export * from "@starasia/toggle";
|
|
40
40
|
import { Tooltip as ue } from "@starasia/tooltip";
|
|
41
41
|
export * from "@starasia/tooltip";
|
|
@@ -45,10 +45,11 @@ import { Radio as xr } from "@starasia/radio";
|
|
|
45
45
|
export * from "@starasia/radio";
|
|
46
46
|
import { Text as x } from "@starasia/text";
|
|
47
47
|
export * from "@starasia/text";
|
|
48
|
-
import { Icon as
|
|
48
|
+
import { Icon as w } from "@starasia/icon";
|
|
49
49
|
export * from "@starasia/icon";
|
|
50
50
|
import { Flex as _ } from "@starasia/flex";
|
|
51
51
|
export * from "@starasia/flex";
|
|
52
|
+
export * from "@starasia/grid";
|
|
52
53
|
export * from "@starasia/progress";
|
|
53
54
|
export * from "@starasia/stepper";
|
|
54
55
|
export * from "@starasia/accordion";
|
|
@@ -57,8 +58,8 @@ import { Skeleton as Re } from "@starasia/skeleton";
|
|
|
57
58
|
export * from "@starasia/skeleton";
|
|
58
59
|
export * from "@starasia/progress-stepper";
|
|
59
60
|
import { jsx as e, Fragment as q, jsxs as s } from "react/jsx-runtime";
|
|
60
|
-
import qe, { createContext as Qe, useState as k, useContext as We, useCallback as ve, useMemo as fe, memo as
|
|
61
|
-
import { useSearchParams as Ye, useNavigate as
|
|
61
|
+
import qe, { createContext as Qe, useState as k, useContext as We, useCallback as ve, useMemo as fe, memo as ge, useEffect as $, useRef as ne, useLayoutEffect as st, forwardRef as yt, isValidElement as dt, Children as Cr, useImperativeHandle as vr } from "react";
|
|
62
|
+
import { useSearchParams as Ye, useNavigate as pt, useLocation as Te, Outlet as Bt, Link as Ue, useParams as Yt } from "react-router";
|
|
62
63
|
import br, { createPortal as Xt } from "react-dom";
|
|
63
64
|
import Dr from "react-easy-crop";
|
|
64
65
|
const wr = {
|
|
@@ -136,10 +137,10 @@ const wr = {
|
|
|
136
137
|
setUserData: a.setUserData,
|
|
137
138
|
menuBottom: i
|
|
138
139
|
},
|
|
139
|
-
children: /* @__PURE__ */ e(Sr, { children: h ? /* @__PURE__ */ e(
|
|
140
|
+
children: /* @__PURE__ */ e(Sr, { children: h ? /* @__PURE__ */ e(Wt, { value: h, children: t }) : u ? /* @__PURE__ */ e(Wt, { value: u, children: t }) : t })
|
|
140
141
|
}
|
|
141
142
|
);
|
|
142
|
-
},
|
|
143
|
+
}, Vn = ge(Er);
|
|
143
144
|
function Mr({
|
|
144
145
|
collapsed: t = !1,
|
|
145
146
|
children: r
|
|
@@ -177,11 +178,11 @@ function Mr({
|
|
|
177
178
|
}
|
|
178
179
|
);
|
|
179
180
|
}
|
|
180
|
-
const
|
|
181
|
+
const xt = Qe(null);
|
|
181
182
|
function Lr({ children: t }) {
|
|
182
183
|
const [r, i] = k(null), [o, n] = k(null), [l, h] = k(null), [a, u] = k(0), d = ve(() => (u((g) => g + 1), () => u((g) => g - 1)), []);
|
|
183
184
|
return /* @__PURE__ */ e(
|
|
184
|
-
|
|
185
|
+
xt.Provider,
|
|
185
186
|
{
|
|
186
187
|
value: {
|
|
187
188
|
prependNode: r,
|
|
@@ -198,18 +199,18 @@ function Lr({ children: t }) {
|
|
|
198
199
|
);
|
|
199
200
|
}
|
|
200
201
|
function Wr({ children: t }) {
|
|
201
|
-
const r = We(
|
|
202
|
+
const r = We(xt);
|
|
202
203
|
return r ? /* @__PURE__ */ s(q, { children: [
|
|
203
204
|
/* @__PURE__ */ e("div", { ref: r.setPrependNode, style: { display: "contents" } }),
|
|
204
205
|
r.replaceCount > 0 ? /* @__PURE__ */ e("div", { ref: r.setReplaceNode, style: { display: "contents" } }) : t,
|
|
205
206
|
/* @__PURE__ */ e("div", { ref: r.setAppendNode, style: { display: "contents" } })
|
|
206
207
|
] }) : /* @__PURE__ */ e(q, { children: t });
|
|
207
208
|
}
|
|
208
|
-
function
|
|
209
|
+
function Tn({
|
|
209
210
|
children: t,
|
|
210
211
|
mode: r = "append"
|
|
211
212
|
}) {
|
|
212
|
-
const i = We(
|
|
213
|
+
const i = We(xt);
|
|
213
214
|
if ($(() => {
|
|
214
215
|
if (!(r !== "replace" || !i))
|
|
215
216
|
return i.registerReplace();
|
|
@@ -220,7 +221,7 @@ function Nn({
|
|
|
220
221
|
const o = r === "prepend" ? i.prependNode : r === "replace" ? i.replaceNode : i.appendNode;
|
|
221
222
|
return o ? Xt(t, o) : null;
|
|
222
223
|
}
|
|
223
|
-
const
|
|
224
|
+
const Ct = Qe(null);
|
|
224
225
|
function Br({ children: t }) {
|
|
225
226
|
const [r, i] = k({}), [o, n] = k({}), l = ve((u, d) => {
|
|
226
227
|
i((g) => g[u] === d ? g : { ...g, [u]: d });
|
|
@@ -231,10 +232,10 @@ function Br({ children: t }) {
|
|
|
231
232
|
() => ({ outletNodes: r, setOutletNode: l, slotCounts: o, registerSlot: h }),
|
|
232
233
|
[r, l, o, h]
|
|
233
234
|
);
|
|
234
|
-
return /* @__PURE__ */ e(
|
|
235
|
+
return /* @__PURE__ */ e(Ct.Provider, { value: a, children: t });
|
|
235
236
|
}
|
|
236
237
|
function Ir({ slotKey: t, fallback: r }) {
|
|
237
|
-
const i = We(
|
|
238
|
+
const i = We(Ct), o = i ? (i.slotCounts[t] ?? 0) > 0 : !1, n = ne(i == null ? void 0 : i.setOutletNode);
|
|
238
239
|
n.current = i == null ? void 0 : i.setOutletNode;
|
|
239
240
|
const l = ve(
|
|
240
241
|
(h) => {
|
|
@@ -246,8 +247,8 @@ function Ir({ slotKey: t, fallback: r }) {
|
|
|
246
247
|
);
|
|
247
248
|
return /* @__PURE__ */ e(q, { children: o ? /* @__PURE__ */ e("div", { ref: l, style: { display: "contents" } }) : r });
|
|
248
249
|
}
|
|
249
|
-
function
|
|
250
|
-
const i = We(
|
|
250
|
+
function Nn({ slotKey: t, children: r }) {
|
|
251
|
+
const i = We(Ct), o = ne(i == null ? void 0 : i.registerSlot);
|
|
251
252
|
if (o.current = i == null ? void 0 : i.registerSlot, $(() => {
|
|
252
253
|
var l;
|
|
253
254
|
return (l = o.current) == null ? void 0 : l.call(o, t);
|
|
@@ -259,7 +260,7 @@ function On({ slotKey: t, children: r }) {
|
|
|
259
260
|
return n ? Xt(r, n) : null;
|
|
260
261
|
}
|
|
261
262
|
const Je = "moduleSwitcherGroupId", ht = "sa-module-switcher-change";
|
|
262
|
-
function
|
|
263
|
+
function It() {
|
|
263
264
|
if (typeof window > "u") return null;
|
|
264
265
|
const t = window.localStorage.getItem(Je);
|
|
265
266
|
if (t === null) return null;
|
|
@@ -269,16 +270,16 @@ function Bt() {
|
|
|
269
270
|
function rr(t) {
|
|
270
271
|
typeof window > "u" || (t === null ? window.localStorage.removeItem(Je) : window.localStorage.setItem(Je, String(t)), window.dispatchEvent(new CustomEvent(ht, { detail: t })));
|
|
271
272
|
}
|
|
272
|
-
function
|
|
273
|
+
function On() {
|
|
273
274
|
rr(null);
|
|
274
275
|
}
|
|
275
276
|
function ir() {
|
|
276
277
|
const [t, r] = k(
|
|
277
|
-
() =>
|
|
278
|
+
() => It()
|
|
278
279
|
);
|
|
279
280
|
return $(() => {
|
|
280
281
|
const o = () => {
|
|
281
|
-
r(
|
|
282
|
+
r(It());
|
|
282
283
|
}, n = (l) => {
|
|
283
284
|
l.key === Je && o();
|
|
284
285
|
};
|
|
@@ -289,8 +290,8 @@ function ir() {
|
|
|
289
290
|
rr(o), r(o);
|
|
290
291
|
} };
|
|
291
292
|
}
|
|
292
|
-
let Ze = 0, ke = !1,
|
|
293
|
-
const
|
|
293
|
+
let Ze = 0, ke = !1, At = /* @__PURE__ */ new Set();
|
|
294
|
+
const Ht = () => /* @__PURE__ */ s(
|
|
294
295
|
"svg",
|
|
295
296
|
{
|
|
296
297
|
width: "100%",
|
|
@@ -307,7 +308,7 @@ const At = () => /* @__PURE__ */ s(
|
|
|
307
308
|
/* @__PURE__ */ e("line", { x1: "6", y1: "1.667", x2: "6", y2: "14.333" })
|
|
308
309
|
]
|
|
309
310
|
}
|
|
310
|
-
),
|
|
311
|
+
), zt = {
|
|
311
312
|
width: "100%",
|
|
312
313
|
display: "flex",
|
|
313
314
|
alignItems: "center",
|
|
@@ -324,7 +325,7 @@ const At = () => /* @__PURE__ */ s(
|
|
|
324
325
|
cursor: "pointer",
|
|
325
326
|
textAlign: "left"
|
|
326
327
|
};
|
|
327
|
-
function
|
|
328
|
+
function _n({
|
|
328
329
|
children: t,
|
|
329
330
|
headerLeftSlot: r,
|
|
330
331
|
profile: i,
|
|
@@ -340,56 +341,62 @@ function jn({
|
|
|
340
341
|
logoutButton: y
|
|
341
342
|
}) {
|
|
342
343
|
var Ee, je;
|
|
343
|
-
const [b] = Ye(), S = b.get("embed") === "true", C = er(), { badges: z } = Fr(), Z =
|
|
344
|
-
() => new Set(
|
|
345
|
-
), [
|
|
344
|
+
const [b] = Ye(), S = b.get("embed") === "true", C = er(), { badges: z } = Fr(), Z = pt(), T = Te(), L = !oe("md"), [ae, J] = k(!1), [H, P] = k(!1), [le, ce] = k(!1), [G, Q] = k(!1), [ee, se] = k(
|
|
345
|
+
() => new Set(At)
|
|
346
|
+
), [te, X] = k(null), { selectedGroupId: R, setSelectedGroupId: V } = ir();
|
|
346
347
|
$(() => {
|
|
347
|
-
|
|
348
|
-
}, [
|
|
349
|
-
const
|
|
348
|
+
At = ee;
|
|
349
|
+
}, [ee]);
|
|
350
|
+
const K = ne(null), me = ne(null);
|
|
350
351
|
$(() => {
|
|
351
|
-
const p =
|
|
352
|
+
const p = K.current;
|
|
352
353
|
if (!p) return;
|
|
353
|
-
const
|
|
354
|
+
const M = () => {
|
|
354
355
|
ke || (Ze = p.scrollTop);
|
|
355
356
|
};
|
|
356
|
-
return p.addEventListener("scroll",
|
|
357
|
+
return p.addEventListener("scroll", M), () => p.removeEventListener("scroll", M);
|
|
357
358
|
}, []);
|
|
358
|
-
const
|
|
359
|
-
const p =
|
|
359
|
+
const ye = () => {
|
|
360
|
+
const p = K.current;
|
|
360
361
|
p && Ze > 0 && (ke = !0, p.scrollTop = Ze, requestAnimationFrame(() => {
|
|
361
362
|
ke = !1;
|
|
362
363
|
}));
|
|
363
364
|
};
|
|
364
365
|
st(() => {
|
|
365
|
-
ke = !0,
|
|
366
|
+
ke = !0, ye();
|
|
366
367
|
const p = setTimeout(() => {
|
|
367
368
|
ke = !1;
|
|
368
369
|
}, 300);
|
|
369
370
|
return () => clearTimeout(p);
|
|
370
371
|
}, []), st(() => {
|
|
371
|
-
C.menus.length > 0 && (Ze > 0 ?
|
|
372
|
-
var
|
|
373
|
-
const p = (
|
|
372
|
+
C.menus.length > 0 && (Ze > 0 ? ye() : requestAnimationFrame(() => {
|
|
373
|
+
var M;
|
|
374
|
+
const p = (M = K.current) == null ? void 0 : M.querySelector(
|
|
374
375
|
"[data-menu-active='true']"
|
|
375
376
|
);
|
|
376
377
|
p && p.scrollIntoView({ block: "center", behavior: "instant" });
|
|
377
378
|
}));
|
|
378
379
|
}, [C.menus]), $(() => {
|
|
379
|
-
ke = !0,
|
|
380
|
-
const p = setTimeout(
|
|
380
|
+
ke = !0, ye();
|
|
381
|
+
const p = setTimeout(ye, 0), M = setTimeout(ye, 50), W = setTimeout(ye, 100), v = setTimeout(ye, 200), F = setTimeout(() => {
|
|
381
382
|
ke = !1;
|
|
382
|
-
}, 300)
|
|
383
|
+
}, 300), D = setTimeout(() => {
|
|
384
|
+
const E = K.current, I = E == null ? void 0 : E.querySelector("[data-menu-active='true']");
|
|
385
|
+
if (E && I) {
|
|
386
|
+
const re = E.getBoundingClientRect(), he = I.getBoundingClientRect();
|
|
387
|
+
he.top >= re.top && he.bottom <= re.bottom || I.scrollIntoView({ block: "center", behavior: "smooth" });
|
|
388
|
+
}
|
|
389
|
+
}, 250);
|
|
383
390
|
return () => {
|
|
384
|
-
clearTimeout(p), clearTimeout(
|
|
391
|
+
clearTimeout(p), clearTimeout(M), clearTimeout(W), clearTimeout(v), clearTimeout(F), clearTimeout(D);
|
|
385
392
|
};
|
|
386
393
|
}, [T.pathname]), $(() => {
|
|
387
|
-
|
|
394
|
+
me.current && (me.current.scrollTop = 0);
|
|
388
395
|
}, [T.pathname]), $(() => {
|
|
389
|
-
|
|
390
|
-
}, [T.pathname,
|
|
391
|
-
|
|
392
|
-
}, [
|
|
396
|
+
L && ce(!1);
|
|
397
|
+
}, [T.pathname, L]), $(() => {
|
|
398
|
+
L && P(!0);
|
|
399
|
+
}, [L]);
|
|
393
400
|
const Be = () => {
|
|
394
401
|
J(!0);
|
|
395
402
|
}, Ne = () => {
|
|
@@ -397,33 +404,33 @@ function jn({
|
|
|
397
404
|
}, et = () => {
|
|
398
405
|
J(!1), n();
|
|
399
406
|
}, Oe = (p) => {
|
|
400
|
-
const
|
|
401
|
-
return p.children &&
|
|
407
|
+
const M = [p.to];
|
|
408
|
+
return p.children && M.push(...p.children.map((W) => W.to)), M;
|
|
402
409
|
}, Ie = [
|
|
403
410
|
...C.menus.flatMap((p) => p.items.flatMap(Oe)),
|
|
404
411
|
...((Ee = C.menuBottom) == null ? void 0 : Ee.flatMap(Oe)) ?? []
|
|
405
412
|
], de = (p) => {
|
|
406
413
|
if (!T.pathname.startsWith(p)) return !1;
|
|
407
|
-
const
|
|
408
|
-
return p ===
|
|
414
|
+
const M = Ie.filter((W) => T.pathname.startsWith(W)).sort((W, v) => v.length - W.length)[0];
|
|
415
|
+
return p === M;
|
|
409
416
|
};
|
|
410
417
|
$(() => {
|
|
411
|
-
var
|
|
412
|
-
const p = (
|
|
418
|
+
var M;
|
|
419
|
+
const p = (W) => {
|
|
413
420
|
var v;
|
|
414
|
-
(v =
|
|
415
|
-
const
|
|
416
|
-
return
|
|
421
|
+
(v = W.children) != null && v.some((F) => T.pathname.startsWith(F.to)) && se((F) => {
|
|
422
|
+
const D = new Set(F);
|
|
423
|
+
return D.add(W.id), D;
|
|
417
424
|
});
|
|
418
425
|
};
|
|
419
|
-
C.menus.forEach((
|
|
420
|
-
|
|
421
|
-
}), (
|
|
426
|
+
C.menus.forEach((W) => {
|
|
427
|
+
W.items.forEach(p);
|
|
428
|
+
}), (M = C.menuBottom) == null || M.forEach(p);
|
|
422
429
|
}, [T.pathname, C.menus, C.menuBottom]);
|
|
423
430
|
const _e = (p) => {
|
|
424
|
-
se((
|
|
425
|
-
const
|
|
426
|
-
return
|
|
431
|
+
se((M) => {
|
|
432
|
+
const W = new Set(M);
|
|
433
|
+
return W.has(p) ? W.delete(p) : W.add(p), W;
|
|
427
434
|
});
|
|
428
435
|
};
|
|
429
436
|
$(() => {
|
|
@@ -432,30 +439,30 @@ function jn({
|
|
|
432
439
|
const Ae = fe(() => {
|
|
433
440
|
if (R !== null)
|
|
434
441
|
return C.menus.filter(
|
|
435
|
-
(
|
|
442
|
+
(W) => W.id === R || W.parentGroupId === R
|
|
436
443
|
);
|
|
437
|
-
const p = C.menus.filter((
|
|
438
|
-
return
|
|
444
|
+
const p = C.menus.filter((W) => W.parentGroupId === void 0), M = C.menus.filter((W) => W.parentGroupId !== void 0).flatMap((W) => W.items);
|
|
445
|
+
return M.length === 0 ? p : [
|
|
439
446
|
...p,
|
|
440
|
-
{ id: 18, name: "Pengaturan", items:
|
|
447
|
+
{ id: 18, name: "Pengaturan", items: M, parentGroupId: void 0 }
|
|
441
448
|
];
|
|
442
449
|
}, [C.menus, R]);
|
|
443
450
|
if (S)
|
|
444
|
-
return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(
|
|
451
|
+
return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(Bt, {}) });
|
|
445
452
|
const Fe = (p) => {
|
|
446
|
-
const
|
|
453
|
+
const M = p.children && p.children.length > 0, W = ee.has(p.id), v = M ? p.children.some((E) => de(E.to)) : de(p.to), F = it(p.badge, z[p.id]), D = !!F && H && !L;
|
|
447
454
|
return /* @__PURE__ */ s("div", { "data-menu-active": v || void 0, children: [
|
|
448
455
|
/* @__PURE__ */ s(
|
|
449
456
|
"button",
|
|
450
457
|
{
|
|
451
|
-
onClick: (
|
|
452
|
-
if (
|
|
453
|
-
if (
|
|
454
|
-
const
|
|
458
|
+
onClick: (E) => {
|
|
459
|
+
if (M)
|
|
460
|
+
if (H && !L) {
|
|
461
|
+
const I = E.currentTarget.getBoundingClientRect();
|
|
455
462
|
X({
|
|
456
463
|
item: p,
|
|
457
|
-
top:
|
|
458
|
-
left:
|
|
464
|
+
top: I.top,
|
|
465
|
+
left: I.right + 8
|
|
459
466
|
});
|
|
460
467
|
} else
|
|
461
468
|
_e(p.id);
|
|
@@ -466,10 +473,10 @@ function jn({
|
|
|
466
473
|
width: "100%",
|
|
467
474
|
display: "flex",
|
|
468
475
|
alignItems: "center",
|
|
469
|
-
justifyContent:
|
|
476
|
+
justifyContent: H && !L ? "center" : void 0,
|
|
470
477
|
gap: "0.5rem",
|
|
471
|
-
paddingLeft:
|
|
472
|
-
paddingRight:
|
|
478
|
+
paddingLeft: H && !L ? "0" : "0.5rem",
|
|
479
|
+
paddingRight: H && !L ? "0" : "0.5rem",
|
|
473
480
|
paddingTop: "0.25rem",
|
|
474
481
|
paddingBottom: "0.25rem",
|
|
475
482
|
height: "2rem",
|
|
@@ -480,12 +487,12 @@ function jn({
|
|
|
480
487
|
color: "var(--sa-text-primary, #292a2e)",
|
|
481
488
|
cursor: "pointer"
|
|
482
489
|
},
|
|
483
|
-
title:
|
|
484
|
-
onMouseEnter: (
|
|
485
|
-
v || (
|
|
490
|
+
title: H && !L ? p.title : void 0,
|
|
491
|
+
onMouseEnter: (E) => {
|
|
492
|
+
v || (E.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
|
|
486
493
|
},
|
|
487
|
-
onMouseLeave: (
|
|
488
|
-
v || (
|
|
494
|
+
onMouseLeave: (E) => {
|
|
495
|
+
v || (E.currentTarget.style.backgroundColor = "transparent");
|
|
489
496
|
},
|
|
490
497
|
children: [
|
|
491
498
|
/* @__PURE__ */ s(
|
|
@@ -497,8 +504,8 @@ function jn({
|
|
|
497
504
|
flexShrink: 0
|
|
498
505
|
},
|
|
499
506
|
children: [
|
|
500
|
-
/* @__PURE__ */ e(
|
|
501
|
-
|
|
507
|
+
/* @__PURE__ */ e(w, { name: p.icon, size: "sm", style: { flexShrink: 0 } }),
|
|
508
|
+
D && /* @__PURE__ */ e(
|
|
502
509
|
"span",
|
|
503
510
|
{
|
|
504
511
|
"aria-hidden": "true",
|
|
@@ -517,7 +524,7 @@ function jn({
|
|
|
517
524
|
]
|
|
518
525
|
}
|
|
519
526
|
),
|
|
520
|
-
(!
|
|
527
|
+
(!H || L) && /* @__PURE__ */ s(q, { children: [
|
|
521
528
|
/* @__PURE__ */ e(
|
|
522
529
|
"span",
|
|
523
530
|
{
|
|
@@ -543,7 +550,7 @@ function jn({
|
|
|
543
550
|
border: !0
|
|
544
551
|
}
|
|
545
552
|
),
|
|
546
|
-
|
|
553
|
+
M && /* @__PURE__ */ e(
|
|
547
554
|
"svg",
|
|
548
555
|
{
|
|
549
556
|
style: {
|
|
@@ -551,7 +558,7 @@ function jn({
|
|
|
551
558
|
height: "1rem",
|
|
552
559
|
flexShrink: 0,
|
|
553
560
|
transition: "transform 0.2s",
|
|
554
|
-
transform:
|
|
561
|
+
transform: W ? "rotate(180deg)" : "rotate(0deg)"
|
|
555
562
|
},
|
|
556
563
|
fill: "none",
|
|
557
564
|
stroke: "currentColor",
|
|
@@ -571,9 +578,9 @@ function jn({
|
|
|
571
578
|
]
|
|
572
579
|
}
|
|
573
580
|
),
|
|
574
|
-
|
|
575
|
-
const
|
|
576
|
-
(
|
|
581
|
+
M && (!H || L) && (() => {
|
|
582
|
+
const E = p.children.findIndex(
|
|
583
|
+
(I) => de(I.to)
|
|
577
584
|
);
|
|
578
585
|
return /* @__PURE__ */ s(
|
|
579
586
|
"div",
|
|
@@ -584,9 +591,9 @@ function jn({
|
|
|
584
591
|
paddingLeft: "1.125rem",
|
|
585
592
|
overflow: "hidden",
|
|
586
593
|
transition: "all 0.3s ease-in-out",
|
|
587
|
-
maxHeight:
|
|
588
|
-
opacity:
|
|
589
|
-
marginTop:
|
|
594
|
+
maxHeight: W ? `${p.children.length * 36}px` : "0px",
|
|
595
|
+
opacity: W ? 1 : 0,
|
|
596
|
+
marginTop: W ? "0.25rem" : "0px"
|
|
590
597
|
},
|
|
591
598
|
children: [
|
|
592
599
|
/* @__PURE__ */ e(
|
|
@@ -604,14 +611,14 @@ function jn({
|
|
|
604
611
|
}
|
|
605
612
|
}
|
|
606
613
|
),
|
|
607
|
-
|
|
614
|
+
E >= 0 && /* @__PURE__ */ e(
|
|
608
615
|
"span",
|
|
609
616
|
{
|
|
610
617
|
"aria-hidden": "true",
|
|
611
618
|
style: {
|
|
612
619
|
position: "absolute",
|
|
613
620
|
left: 0,
|
|
614
|
-
top: `${
|
|
621
|
+
top: `${E * 32}px`,
|
|
615
622
|
width: "1.5px",
|
|
616
623
|
height: "32px",
|
|
617
624
|
backgroundColor: "var(--sa-text-primary, #292a2e)",
|
|
@@ -621,15 +628,15 @@ function jn({
|
|
|
621
628
|
}
|
|
622
629
|
}
|
|
623
630
|
),
|
|
624
|
-
p.children.map((
|
|
625
|
-
const
|
|
626
|
-
|
|
627
|
-
z[
|
|
631
|
+
p.children.map((I) => {
|
|
632
|
+
const re = it(
|
|
633
|
+
I.badge,
|
|
634
|
+
z[I.id]
|
|
628
635
|
);
|
|
629
636
|
return /* @__PURE__ */ s(
|
|
630
637
|
"button",
|
|
631
638
|
{
|
|
632
|
-
onClick: () => Z(
|
|
639
|
+
onClick: () => Z(I.to),
|
|
633
640
|
style: {
|
|
634
641
|
width: "100%",
|
|
635
642
|
display: "flex",
|
|
@@ -640,24 +647,24 @@ function jn({
|
|
|
640
647
|
paddingTop: "0.25rem",
|
|
641
648
|
paddingBottom: "0.25rem",
|
|
642
649
|
height: "2rem",
|
|
643
|
-
borderRadius: de(
|
|
650
|
+
borderRadius: de(I.to) ? "var(--sa-radii-sm, 0.375rem)" : "var(--sa-radii-md, 0.5rem)",
|
|
644
651
|
textAlign: "left",
|
|
645
|
-
backgroundColor: de(
|
|
646
|
-
color: de(
|
|
652
|
+
backgroundColor: de(I.to) ? "var(--sa-background-primary, #ffffff)" : "transparent",
|
|
653
|
+
color: de(I.to) ? "var(--sa-text-primary, #292a2e)" : "var(--sa-text-subtle, #505258)",
|
|
647
654
|
cursor: "pointer",
|
|
648
|
-
border: de(
|
|
655
|
+
border: de(I.to) ? "1px solid var(--sa-border-subtle, #0b120e24)" : "1px solid transparent"
|
|
649
656
|
},
|
|
650
|
-
onMouseEnter: (
|
|
651
|
-
de(
|
|
657
|
+
onMouseEnter: (he) => {
|
|
658
|
+
de(I.to) || (he.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
|
|
652
659
|
},
|
|
653
|
-
onMouseLeave: (
|
|
654
|
-
de(
|
|
660
|
+
onMouseLeave: (he) => {
|
|
661
|
+
de(I.to) || (he.currentTarget.style.backgroundColor = "transparent");
|
|
655
662
|
},
|
|
656
663
|
children: [
|
|
657
664
|
/* @__PURE__ */ e(
|
|
658
|
-
|
|
665
|
+
w,
|
|
659
666
|
{
|
|
660
|
-
name:
|
|
667
|
+
name: I.icon,
|
|
661
668
|
size: "sm",
|
|
662
669
|
style: { flexShrink: 0 }
|
|
663
670
|
}
|
|
@@ -674,21 +681,21 @@ function jn({
|
|
|
674
681
|
overflow: "hidden",
|
|
675
682
|
textOverflow: "ellipsis"
|
|
676
683
|
},
|
|
677
|
-
children:
|
|
684
|
+
children: I.title
|
|
678
685
|
}
|
|
679
686
|
),
|
|
680
|
-
|
|
687
|
+
re && /* @__PURE__ */ e(
|
|
681
688
|
Le,
|
|
682
689
|
{
|
|
683
|
-
text: String(
|
|
684
|
-
variant:
|
|
690
|
+
text: String(re.value),
|
|
691
|
+
variant: re.variant ?? "info",
|
|
685
692
|
size: "xs",
|
|
686
693
|
border: !0
|
|
687
694
|
}
|
|
688
695
|
)
|
|
689
696
|
]
|
|
690
697
|
},
|
|
691
|
-
|
|
698
|
+
I.id
|
|
692
699
|
);
|
|
693
700
|
})
|
|
694
701
|
]
|
|
@@ -706,11 +713,11 @@ function jn({
|
|
|
706
713
|
height: "100vh",
|
|
707
714
|
// backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
|
|
708
715
|
position: "relative",
|
|
709
|
-
"--app-sidebar-width":
|
|
710
|
-
"--app-footer-zindex":
|
|
716
|
+
"--app-sidebar-width": L ? "0px" : H ? "4.375rem" : "16.375rem",
|
|
717
|
+
"--app-footer-zindex": L && le ? "40" : "999"
|
|
711
718
|
},
|
|
712
719
|
children: [
|
|
713
|
-
|
|
720
|
+
L && /* @__PURE__ */ e(
|
|
714
721
|
"div",
|
|
715
722
|
{
|
|
716
723
|
style: {
|
|
@@ -718,30 +725,30 @@ function jn({
|
|
|
718
725
|
inset: 0,
|
|
719
726
|
backgroundColor: "var(--sa-color-black-alpha-a50, #181a198f)",
|
|
720
727
|
zIndex: 40,
|
|
721
|
-
opacity:
|
|
722
|
-
pointerEvents:
|
|
728
|
+
opacity: le ? 0.5 : 0,
|
|
729
|
+
pointerEvents: le ? "auto" : "none",
|
|
723
730
|
transition: "opacity 0.3s"
|
|
724
731
|
},
|
|
725
|
-
onClick: () =>
|
|
732
|
+
onClick: () => ce(!1)
|
|
726
733
|
}
|
|
727
734
|
),
|
|
728
735
|
/* @__PURE__ */ s(
|
|
729
736
|
"aside",
|
|
730
737
|
{
|
|
731
738
|
style: {
|
|
732
|
-
width:
|
|
733
|
-
position:
|
|
734
|
-
...
|
|
739
|
+
width: L ? "16.375rem" : H ? "4.375rem" : "16.375rem",
|
|
740
|
+
position: L ? "fixed" : "relative",
|
|
741
|
+
...L && {
|
|
735
742
|
inset: 0,
|
|
736
743
|
zIndex: 50,
|
|
737
|
-
transform:
|
|
744
|
+
transform: le ? "translateX(0)" : "translateX(-100%)"
|
|
738
745
|
},
|
|
739
746
|
backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
|
|
740
747
|
borderRight: "1px solid var(--sa-border-subtle, #0b120e24)",
|
|
741
748
|
display: "flex",
|
|
742
749
|
flexDirection: "column",
|
|
743
750
|
transition: "all 0.3s ease-in-out",
|
|
744
|
-
flexShrink:
|
|
751
|
+
flexShrink: L ? void 0 : 0
|
|
745
752
|
},
|
|
746
753
|
children: [
|
|
747
754
|
/* @__PURE__ */ e(
|
|
@@ -760,7 +767,7 @@ function jn({
|
|
|
760
767
|
position: "relative"
|
|
761
768
|
},
|
|
762
769
|
children: (() => {
|
|
763
|
-
const p = !
|
|
770
|
+
const p = !L && H && !le, M = p && G;
|
|
764
771
|
return /* @__PURE__ */ s(q, { children: [
|
|
765
772
|
/* @__PURE__ */ s(
|
|
766
773
|
"div",
|
|
@@ -772,8 +779,8 @@ function jn({
|
|
|
772
779
|
flex: p ? 1 : void 0,
|
|
773
780
|
justifyContent: p ? "center" : void 0,
|
|
774
781
|
transition: "opacity 0.2s",
|
|
775
|
-
opacity:
|
|
776
|
-
pointerEvents:
|
|
782
|
+
opacity: M ? 0 : 1,
|
|
783
|
+
pointerEvents: M ? "none" : "auto"
|
|
777
784
|
},
|
|
778
785
|
children: [
|
|
779
786
|
/* @__PURE__ */ e(
|
|
@@ -788,7 +795,7 @@ function jn({
|
|
|
788
795
|
}
|
|
789
796
|
}
|
|
790
797
|
),
|
|
791
|
-
(!
|
|
798
|
+
(!H || le) && /* @__PURE__ */ e(
|
|
792
799
|
"span",
|
|
793
800
|
{
|
|
794
801
|
style: {
|
|
@@ -803,7 +810,7 @@ function jn({
|
|
|
803
810
|
]
|
|
804
811
|
}
|
|
805
812
|
),
|
|
806
|
-
!
|
|
813
|
+
!L && !H && /* @__PURE__ */ e(
|
|
807
814
|
"button",
|
|
808
815
|
{
|
|
809
816
|
type: "button",
|
|
@@ -822,7 +829,7 @@ function jn({
|
|
|
822
829
|
cursor: "pointer",
|
|
823
830
|
flexShrink: 0
|
|
824
831
|
},
|
|
825
|
-
children: /* @__PURE__ */ e(
|
|
832
|
+
children: /* @__PURE__ */ e(Ht, {})
|
|
826
833
|
}
|
|
827
834
|
),
|
|
828
835
|
p && /* @__PURE__ */ e(
|
|
@@ -847,8 +854,8 @@ function jn({
|
|
|
847
854
|
borderRadius: "var(--sa-radii-sm, 0.375rem)",
|
|
848
855
|
color: "var(--sa-text-primary, #292a2e)",
|
|
849
856
|
cursor: "pointer",
|
|
850
|
-
opacity:
|
|
851
|
-
pointerEvents:
|
|
857
|
+
opacity: M ? 1 : 0,
|
|
858
|
+
pointerEvents: M ? "auto" : "none",
|
|
852
859
|
transition: "opacity 0.2s"
|
|
853
860
|
},
|
|
854
861
|
children: /* @__PURE__ */ e(
|
|
@@ -859,15 +866,15 @@ function jn({
|
|
|
859
866
|
height: "1rem",
|
|
860
867
|
display: "inline-flex"
|
|
861
868
|
},
|
|
862
|
-
children: /* @__PURE__ */ e(
|
|
869
|
+
children: /* @__PURE__ */ e(Ht, {})
|
|
863
870
|
}
|
|
864
871
|
)
|
|
865
872
|
}
|
|
866
873
|
),
|
|
867
|
-
|
|
874
|
+
L && /* @__PURE__ */ e(
|
|
868
875
|
"button",
|
|
869
876
|
{
|
|
870
|
-
onClick: () =>
|
|
877
|
+
onClick: () => ce(!1),
|
|
871
878
|
"aria-label": "Close menu",
|
|
872
879
|
style: {
|
|
873
880
|
padding: "0.375rem",
|
|
@@ -904,14 +911,14 @@ function jn({
|
|
|
904
911
|
a && /* @__PURE__ */ e(
|
|
905
912
|
Mr,
|
|
906
913
|
{
|
|
907
|
-
collapsed:
|
|
914
|
+
collapsed: L ? !1 : H,
|
|
908
915
|
children: a
|
|
909
916
|
}
|
|
910
917
|
),
|
|
911
918
|
/* @__PURE__ */ e(
|
|
912
919
|
"div",
|
|
913
920
|
{
|
|
914
|
-
ref:
|
|
921
|
+
ref: K,
|
|
915
922
|
style: {
|
|
916
923
|
flex: 1,
|
|
917
924
|
overflowY: "auto",
|
|
@@ -919,7 +926,7 @@ function jn({
|
|
|
919
926
|
paddingBottom: "1rem"
|
|
920
927
|
},
|
|
921
928
|
children: Ae.map((p) => /* @__PURE__ */ s("div", { style: { marginBottom: "1rem" }, children: [
|
|
922
|
-
!
|
|
929
|
+
!H || L ? p.name && /* @__PURE__ */ e(
|
|
923
930
|
"div",
|
|
924
931
|
{
|
|
925
932
|
style: {
|
|
@@ -966,9 +973,9 @@ function jn({
|
|
|
966
973
|
Ir,
|
|
967
974
|
{
|
|
968
975
|
slotKey: p.slotKey,
|
|
969
|
-
fallback: p.items.map((
|
|
976
|
+
fallback: p.items.map((M) => Fe(M))
|
|
970
977
|
}
|
|
971
|
-
) : p.items.map((
|
|
978
|
+
) : p.items.map((M) => Fe(M)) })
|
|
972
979
|
] }, p.id))
|
|
973
980
|
}
|
|
974
981
|
),
|
|
@@ -1010,10 +1017,10 @@ function jn({
|
|
|
1010
1017
|
},
|
|
1011
1018
|
children: [
|
|
1012
1019
|
/* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
|
|
1013
|
-
|
|
1020
|
+
L && /* @__PURE__ */ e(
|
|
1014
1021
|
"button",
|
|
1015
1022
|
{
|
|
1016
|
-
onClick: () =>
|
|
1023
|
+
onClick: () => ce(!0),
|
|
1017
1024
|
style: {
|
|
1018
1025
|
padding: "0.375rem",
|
|
1019
1026
|
borderRadius: "0.5rem",
|
|
@@ -1046,7 +1053,7 @@ function jn({
|
|
|
1046
1053
|
] }),
|
|
1047
1054
|
/* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
|
|
1048
1055
|
u,
|
|
1049
|
-
/* @__PURE__ */ s(
|
|
1056
|
+
/* @__PURE__ */ s(qt, { position: "bottom-right", children: [
|
|
1050
1057
|
/* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ s(
|
|
1051
1058
|
"div",
|
|
1052
1059
|
{
|
|
@@ -1109,7 +1116,7 @@ function jn({
|
|
|
1109
1116
|
}
|
|
1110
1117
|
),
|
|
1111
1118
|
/* @__PURE__ */ e(
|
|
1112
|
-
|
|
1119
|
+
w,
|
|
1113
1120
|
{
|
|
1114
1121
|
name: "ChevronDown",
|
|
1115
1122
|
size: "sm",
|
|
@@ -1120,7 +1127,7 @@ function jn({
|
|
|
1120
1127
|
}
|
|
1121
1128
|
) }),
|
|
1122
1129
|
/* @__PURE__ */ s(
|
|
1123
|
-
|
|
1130
|
+
Ut,
|
|
1124
1131
|
{
|
|
1125
1132
|
style: {
|
|
1126
1133
|
width: "280px",
|
|
@@ -1210,25 +1217,25 @@ function jn({
|
|
|
1210
1217
|
]
|
|
1211
1218
|
}
|
|
1212
1219
|
) }),
|
|
1213
|
-
(g && g.length > 0 || m) && /* @__PURE__ */ s(
|
|
1214
|
-
g == null ? void 0 : g.map((p,
|
|
1220
|
+
(g && g.length > 0 || m) && /* @__PURE__ */ s(Jt, { children: [
|
|
1221
|
+
g == null ? void 0 : g.map((p, M) => /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ s(
|
|
1215
1222
|
"button",
|
|
1216
1223
|
{
|
|
1217
1224
|
type: "button",
|
|
1218
1225
|
onClick: p.onClick,
|
|
1219
|
-
style:
|
|
1220
|
-
onMouseEnter: (
|
|
1221
|
-
|
|
1226
|
+
style: zt,
|
|
1227
|
+
onMouseEnter: (W) => {
|
|
1228
|
+
W.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)";
|
|
1222
1229
|
},
|
|
1223
|
-
onMouseLeave: (
|
|
1224
|
-
|
|
1230
|
+
onMouseLeave: (W) => {
|
|
1231
|
+
W.currentTarget.style.backgroundColor = "transparent";
|
|
1225
1232
|
},
|
|
1226
1233
|
children: [
|
|
1227
|
-
/* @__PURE__ */ e(
|
|
1234
|
+
/* @__PURE__ */ e(w, { name: p.icon, size: "md" }),
|
|
1228
1235
|
/* @__PURE__ */ e("span", { children: p.label })
|
|
1229
1236
|
]
|
|
1230
1237
|
}
|
|
1231
|
-
) }, `${p.label}-${
|
|
1238
|
+
) }, `${p.label}-${M}`)),
|
|
1232
1239
|
m
|
|
1233
1240
|
] }),
|
|
1234
1241
|
y ?? /* @__PURE__ */ e(hr, { children: /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ s(
|
|
@@ -1237,7 +1244,7 @@ function jn({
|
|
|
1237
1244
|
type: "button",
|
|
1238
1245
|
onClick: Be,
|
|
1239
1246
|
style: {
|
|
1240
|
-
...
|
|
1247
|
+
...zt,
|
|
1241
1248
|
color: "var(--sa-background-error, #c9184a)",
|
|
1242
1249
|
fontWeight: 500
|
|
1243
1250
|
},
|
|
@@ -1249,7 +1256,7 @@ function jn({
|
|
|
1249
1256
|
},
|
|
1250
1257
|
children: [
|
|
1251
1258
|
/* @__PURE__ */ e(
|
|
1252
|
-
|
|
1259
|
+
w,
|
|
1253
1260
|
{
|
|
1254
1261
|
name: "Logout",
|
|
1255
1262
|
size: "md",
|
|
@@ -1273,12 +1280,12 @@ function jn({
|
|
|
1273
1280
|
/* @__PURE__ */ e(
|
|
1274
1281
|
"main",
|
|
1275
1282
|
{
|
|
1276
|
-
ref:
|
|
1283
|
+
ref: me,
|
|
1277
1284
|
style: {
|
|
1278
1285
|
flex: 1,
|
|
1279
1286
|
overflowY: "auto"
|
|
1280
1287
|
},
|
|
1281
|
-
children: t || /* @__PURE__ */ e(
|
|
1288
|
+
children: t || /* @__PURE__ */ e(Bt, {})
|
|
1282
1289
|
}
|
|
1283
1290
|
)
|
|
1284
1291
|
] })
|
|
@@ -1301,14 +1308,14 @@ function jn({
|
|
|
1301
1308
|
}
|
|
1302
1309
|
),
|
|
1303
1310
|
/* @__PURE__ */ s(ut, { isShow: ae, onHide: Ne, children: [
|
|
1304
|
-
/* @__PURE__ */ e(
|
|
1311
|
+
/* @__PURE__ */ e($t, { children: "Confirmation Logout" }),
|
|
1305
1312
|
/* @__PURE__ */ e(ft, { children: "Are you sure you want to end the session and exit the page?" }),
|
|
1306
|
-
/* @__PURE__ */ e(
|
|
1313
|
+
/* @__PURE__ */ e(Gt, { children: /* @__PURE__ */ e(f, { display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ s(_, { direction: "row", gap: "sm", align: "center", children: [
|
|
1307
1314
|
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(N, { secondary: !0, onClick: Ne, children: "Cancel" }) }),
|
|
1308
1315
|
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(N, { primary: !0, onClick: et, children: "Yes, Sure" }) })
|
|
1309
1316
|
] }) }) })
|
|
1310
1317
|
] }),
|
|
1311
|
-
|
|
1318
|
+
te && /* @__PURE__ */ s(q, { children: [
|
|
1312
1319
|
/* @__PURE__ */ e(
|
|
1313
1320
|
"div",
|
|
1314
1321
|
{
|
|
@@ -1325,11 +1332,11 @@ function jn({
|
|
|
1325
1332
|
"div",
|
|
1326
1333
|
{
|
|
1327
1334
|
role: "dialog",
|
|
1328
|
-
"aria-label":
|
|
1335
|
+
"aria-label": te.item.title,
|
|
1329
1336
|
style: {
|
|
1330
1337
|
position: "fixed",
|
|
1331
|
-
top:
|
|
1332
|
-
left:
|
|
1338
|
+
top: te.top,
|
|
1339
|
+
left: te.left,
|
|
1333
1340
|
zIndex: 61,
|
|
1334
1341
|
minWidth: "13rem",
|
|
1335
1342
|
maxWidth: "16rem",
|
|
@@ -1354,11 +1361,11 @@ function jn({
|
|
|
1354
1361
|
textTransform: "uppercase",
|
|
1355
1362
|
letterSpacing: "0.05em"
|
|
1356
1363
|
},
|
|
1357
|
-
children:
|
|
1364
|
+
children: te.item.title
|
|
1358
1365
|
}
|
|
1359
1366
|
),
|
|
1360
|
-
(je =
|
|
1361
|
-
const
|
|
1367
|
+
(je = te.item.children) == null ? void 0 : je.map((p) => {
|
|
1368
|
+
const M = de(p.to), W = it(
|
|
1362
1369
|
p.badge,
|
|
1363
1370
|
z[p.id]
|
|
1364
1371
|
);
|
|
@@ -1376,22 +1383,22 @@ function jn({
|
|
|
1376
1383
|
padding: "0.5rem 0.75rem",
|
|
1377
1384
|
borderRadius: "var(--sa-radii-md, 0.5rem)",
|
|
1378
1385
|
textAlign: "left",
|
|
1379
|
-
backgroundColor:
|
|
1380
|
-
color:
|
|
1386
|
+
backgroundColor: M ? "var(--sa-color-gray-100, #f8f8f8)" : "transparent",
|
|
1387
|
+
color: M ? "var(--sa-text-primary, #292a2e)" : "var(--sa-color-gray-800, #505258)",
|
|
1381
1388
|
border: "1px solid transparent",
|
|
1382
1389
|
cursor: "pointer",
|
|
1383
1390
|
fontSize: "0.875rem",
|
|
1384
1391
|
fontWeight: 500
|
|
1385
1392
|
},
|
|
1386
1393
|
onMouseEnter: (v) => {
|
|
1387
|
-
|
|
1394
|
+
M || (v.currentTarget.style.backgroundColor = "var(--sa-color-gray-100, #f8f8f8)");
|
|
1388
1395
|
},
|
|
1389
1396
|
onMouseLeave: (v) => {
|
|
1390
|
-
|
|
1397
|
+
M || (v.currentTarget.style.backgroundColor = "transparent");
|
|
1391
1398
|
},
|
|
1392
1399
|
children: [
|
|
1393
1400
|
p.icon && /* @__PURE__ */ e(
|
|
1394
|
-
|
|
1401
|
+
w,
|
|
1395
1402
|
{
|
|
1396
1403
|
name: p.icon,
|
|
1397
1404
|
size: "sm",
|
|
@@ -1399,11 +1406,11 @@ function jn({
|
|
|
1399
1406
|
}
|
|
1400
1407
|
),
|
|
1401
1408
|
/* @__PURE__ */ e("span", { style: { flex: 1, whiteSpace: "nowrap" }, children: p.title }),
|
|
1402
|
-
|
|
1409
|
+
W && /* @__PURE__ */ e(
|
|
1403
1410
|
Le,
|
|
1404
1411
|
{
|
|
1405
|
-
text: String(
|
|
1406
|
-
variant:
|
|
1412
|
+
text: String(W.value),
|
|
1413
|
+
variant: W.variant ?? "info",
|
|
1407
1414
|
size: "xs",
|
|
1408
1415
|
border: !0
|
|
1409
1416
|
}
|
|
@@ -1419,18 +1426,21 @@ function jn({
|
|
|
1419
1426
|
] })
|
|
1420
1427
|
] }) });
|
|
1421
1428
|
}
|
|
1422
|
-
const
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1431
|
-
|
|
1432
|
-
|
|
1433
|
-
|
|
1429
|
+
const Xe = yt(
|
|
1430
|
+
({ children: t, ...r }, i) => /* @__PURE__ */ e(
|
|
1431
|
+
f,
|
|
1432
|
+
{
|
|
1433
|
+
ref: i,
|
|
1434
|
+
role: "button",
|
|
1435
|
+
cursor: "pointer",
|
|
1436
|
+
"aria-pressed": "true",
|
|
1437
|
+
display: "inline-block",
|
|
1438
|
+
tabIndex: 0,
|
|
1439
|
+
...r,
|
|
1440
|
+
children: t
|
|
1441
|
+
}
|
|
1442
|
+
)
|
|
1443
|
+
), Rt = ({
|
|
1434
1444
|
title: t,
|
|
1435
1445
|
iconName: r,
|
|
1436
1446
|
textColor: i,
|
|
@@ -1450,7 +1460,7 @@ const Ar = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1450
1460
|
style: { cursor: "pointer" },
|
|
1451
1461
|
children: [
|
|
1452
1462
|
/* @__PURE__ */ e(
|
|
1453
|
-
|
|
1463
|
+
w,
|
|
1454
1464
|
{
|
|
1455
1465
|
name: r || "ChevronLeft",
|
|
1456
1466
|
size: "xs",
|
|
@@ -1474,7 +1484,7 @@ const Ar = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1474
1484
|
]
|
|
1475
1485
|
}
|
|
1476
1486
|
);
|
|
1477
|
-
},
|
|
1487
|
+
}, Ar = ({
|
|
1478
1488
|
items: t,
|
|
1479
1489
|
separator: r = "/",
|
|
1480
1490
|
iconName: i,
|
|
@@ -1482,7 +1492,7 @@ const Ar = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1482
1492
|
hoverIconColor: n
|
|
1483
1493
|
}) => {
|
|
1484
1494
|
const [l, h] = k(!1), a = o ?? "var(--sa-text-subtle, #8c8f97)", u = n ?? "var(--sa-text-subtle, #8c8f97)", d = t.length > 1 ? t[0] : void 0, g = !!(d != null && d.to || d != null && d.onClick), m = /* @__PURE__ */ e(
|
|
1485
|
-
|
|
1495
|
+
w,
|
|
1486
1496
|
{
|
|
1487
1497
|
name: i || "ChevronLeft",
|
|
1488
1498
|
size: "xs",
|
|
@@ -1499,13 +1509,13 @@ const Ar = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1499
1509
|
y,
|
|
1500
1510
|
/* @__PURE__ */ e(lr, { separator: r, size: "md", children: t.map((b, S) => {
|
|
1501
1511
|
const C = S === t.length - 1;
|
|
1502
|
-
return b.to && !C ? /* @__PURE__ */ e(
|
|
1512
|
+
return b.to && !C ? /* @__PURE__ */ e(Mt, { children: /* @__PURE__ */ e(Ue, { to: b.to, children: b.label }) }, S) : /* @__PURE__ */ e(Mt, { currentPage: C, children: /* @__PURE__ */ e(cr, { onClick: C ? void 0 : b.onClick, children: b.label }) }, S);
|
|
1503
1513
|
}) })
|
|
1504
1514
|
] });
|
|
1505
|
-
},
|
|
1515
|
+
}, jn = (t) => {
|
|
1506
1516
|
const { items: r, separator: i, onClick: o, navigateTo: n, ...l } = t;
|
|
1507
1517
|
return r && r.length > 0 ? /* @__PURE__ */ e(
|
|
1508
|
-
|
|
1518
|
+
Ar,
|
|
1509
1519
|
{
|
|
1510
1520
|
items: r,
|
|
1511
1521
|
separator: i,
|
|
@@ -1513,7 +1523,7 @@ const Ar = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1513
1523
|
iconColor: l.iconColor,
|
|
1514
1524
|
hoverIconColor: l.hoverIconColor
|
|
1515
1525
|
}
|
|
1516
|
-
) : n ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Ue, { to: n, replace: !0, style: { textDecoration: "none" }, children: /* @__PURE__ */ e(
|
|
1526
|
+
) : n ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Ue, { to: n, replace: !0, style: { textDecoration: "none" }, children: /* @__PURE__ */ e(Rt, { ...l }) }) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Xe, { onClick: o, children: /* @__PURE__ */ e(Rt, { ...l }) }) });
|
|
1517
1527
|
}, nt = [
|
|
1518
1528
|
// brand (blue)
|
|
1519
1529
|
{
|
|
@@ -1558,7 +1568,7 @@ const Ar = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1558
1568
|
activeShadow: "rgba(255, 117, 143, 0.25)"
|
|
1559
1569
|
}
|
|
1560
1570
|
];
|
|
1561
|
-
function
|
|
1571
|
+
function Vt(t, r, i) {
|
|
1562
1572
|
return {
|
|
1563
1573
|
display: "flex",
|
|
1564
1574
|
alignItems: "center",
|
|
@@ -1574,7 +1584,7 @@ function Rt(t, r, i) {
|
|
|
1574
1584
|
transition: "box-shadow 0.2s ease, transform 0.2s ease, background-color 0.15s ease, border-color 0.15s ease"
|
|
1575
1585
|
};
|
|
1576
1586
|
}
|
|
1577
|
-
const
|
|
1587
|
+
const Tt = {
|
|
1578
1588
|
fontSize: "11px",
|
|
1579
1589
|
fontWeight: 500,
|
|
1580
1590
|
textAlign: "center",
|
|
@@ -1583,7 +1593,7 @@ const Vt = {
|
|
|
1583
1593
|
color: "var(--sa-background-primary, #ffffff)",
|
|
1584
1594
|
lineHeight: "1.3",
|
|
1585
1595
|
maxWidth: "80px"
|
|
1586
|
-
},
|
|
1596
|
+
}, Nt = {
|
|
1587
1597
|
display: "flex",
|
|
1588
1598
|
flexDirection: "column",
|
|
1589
1599
|
alignItems: "center",
|
|
@@ -1593,7 +1603,7 @@ const Vt = {
|
|
|
1593
1603
|
cursor: "pointer",
|
|
1594
1604
|
padding: 0
|
|
1595
1605
|
};
|
|
1596
|
-
function
|
|
1606
|
+
function Hr({
|
|
1597
1607
|
isShow: t,
|
|
1598
1608
|
onHide: r,
|
|
1599
1609
|
menus: i,
|
|
@@ -1629,10 +1639,10 @@ function zr({
|
|
|
1629
1639
|
onClick: () => a(null),
|
|
1630
1640
|
onMouseEnter: () => h("all"),
|
|
1631
1641
|
onMouseLeave: () => h(void 0),
|
|
1632
|
-
style:
|
|
1642
|
+
style: Nt,
|
|
1633
1643
|
children: [
|
|
1634
|
-
/* @__PURE__ */ e("div", { style:
|
|
1635
|
-
/* @__PURE__ */ e("span", { style:
|
|
1644
|
+
/* @__PURE__ */ e("div", { style: Vt(o === null, l === "all", u), children: /* @__PURE__ */ e("div", { style: { color: u.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(w, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
|
|
1645
|
+
/* @__PURE__ */ e("span", { style: Tt, children: "Semua" })
|
|
1636
1646
|
]
|
|
1637
1647
|
}
|
|
1638
1648
|
),
|
|
@@ -1645,10 +1655,10 @@ function zr({
|
|
|
1645
1655
|
onClick: () => a(d.id),
|
|
1646
1656
|
onMouseEnter: () => h(d.id),
|
|
1647
1657
|
onMouseLeave: () => h(void 0),
|
|
1648
|
-
style:
|
|
1658
|
+
style: Nt,
|
|
1649
1659
|
children: [
|
|
1650
|
-
/* @__PURE__ */ e("div", { style:
|
|
1651
|
-
/* @__PURE__ */ e("span", { style:
|
|
1660
|
+
/* @__PURE__ */ e("div", { style: Vt(m, y, S), children: /* @__PURE__ */ e("div", { style: { color: S.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(w, { name: b, size: "lg", style: { width: 32, height: 32 } }) }) }),
|
|
1661
|
+
/* @__PURE__ */ e("span", { style: Tt, children: d.name })
|
|
1652
1662
|
]
|
|
1653
1663
|
},
|
|
1654
1664
|
d.id
|
|
@@ -1660,11 +1670,11 @@ function zr({
|
|
|
1660
1670
|
}
|
|
1661
1671
|
);
|
|
1662
1672
|
}
|
|
1663
|
-
function
|
|
1673
|
+
function Zn({
|
|
1664
1674
|
onSelect: t,
|
|
1665
1675
|
"aria-label": r = "Pilih module"
|
|
1666
1676
|
} = {}) {
|
|
1667
|
-
const i = er(), o =
|
|
1677
|
+
const i = er(), o = pt(), { selectedGroupId: n, setSelectedGroupId: l } = ir(), [h, a] = k(!1), u = (d) => {
|
|
1668
1678
|
var g;
|
|
1669
1679
|
if (l(d), d !== null) {
|
|
1670
1680
|
const m = i.menus.find((b) => b.id === d), y = (g = m == null ? void 0 : m.items[0]) == null ? void 0 : g.to;
|
|
@@ -1697,7 +1707,7 @@ function $n({
|
|
|
1697
1707
|
onMouseLeave: (d) => {
|
|
1698
1708
|
d.currentTarget.style.backgroundColor = "transparent";
|
|
1699
1709
|
},
|
|
1700
|
-
children: /* @__PURE__ */ e(
|
|
1710
|
+
children: /* @__PURE__ */ e(w, { name: "GridApplication", size: "sm" })
|
|
1701
1711
|
}
|
|
1702
1712
|
),
|
|
1703
1713
|
n !== null && /* @__PURE__ */ e(
|
|
@@ -1717,7 +1727,7 @@ function $n({
|
|
|
1717
1727
|
)
|
|
1718
1728
|
] }),
|
|
1719
1729
|
/* @__PURE__ */ e(
|
|
1720
|
-
|
|
1730
|
+
Hr,
|
|
1721
1731
|
{
|
|
1722
1732
|
isShow: h,
|
|
1723
1733
|
onHide: () => a(!1),
|
|
@@ -1728,7 +1738,7 @@ function $n({
|
|
|
1728
1738
|
)
|
|
1729
1739
|
] });
|
|
1730
1740
|
}
|
|
1731
|
-
const
|
|
1741
|
+
const zr = (t, r) => {
|
|
1732
1742
|
const i = [];
|
|
1733
1743
|
if (r === 0)
|
|
1734
1744
|
return i.push(t), i;
|
|
@@ -1737,7 +1747,7 @@ const Rr = (t, r) => {
|
|
|
1737
1747
|
i.push(n);
|
|
1738
1748
|
}
|
|
1739
1749
|
return i;
|
|
1740
|
-
},
|
|
1750
|
+
}, Rr = ge(
|
|
1741
1751
|
({
|
|
1742
1752
|
value: t,
|
|
1743
1753
|
label: r,
|
|
@@ -1769,8 +1779,8 @@ const Rr = (t, r) => {
|
|
|
1769
1779
|
/* @__PURE__ */ e(Se, { style: h, children: d() })
|
|
1770
1780
|
] });
|
|
1771
1781
|
}
|
|
1772
|
-
),
|
|
1773
|
-
|
|
1782
|
+
), Vr = ge(({ fields: t, separator: r, labelWidth: i }) => /* @__PURE__ */ e(Pt, { children: t.map((o, n) => /* @__PURE__ */ e(
|
|
1783
|
+
Rr,
|
|
1774
1784
|
{
|
|
1775
1785
|
separator: r,
|
|
1776
1786
|
labelWidth: i,
|
|
@@ -1778,7 +1788,7 @@ const Rr = (t, r) => {
|
|
|
1778
1788
|
...o
|
|
1779
1789
|
},
|
|
1780
1790
|
`field-group-field-${n}`
|
|
1781
|
-
)) })),
|
|
1791
|
+
)) })), $n = ge(
|
|
1782
1792
|
({
|
|
1783
1793
|
maxRow: t = 0,
|
|
1784
1794
|
maxColumn: r = 2,
|
|
@@ -1788,7 +1798,7 @@ const Rr = (t, r) => {
|
|
|
1788
1798
|
bordered: l = !1
|
|
1789
1799
|
}) => {
|
|
1790
1800
|
const h = fe(
|
|
1791
|
-
() =>
|
|
1801
|
+
() => zr(o, t),
|
|
1792
1802
|
[o, t]
|
|
1793
1803
|
), a = h.length > 2, u = () => {
|
|
1794
1804
|
switch (r) {
|
|
@@ -1824,7 +1834,7 @@ const Rr = (t, r) => {
|
|
|
1824
1834
|
width: a ? u() : void 0,
|
|
1825
1835
|
marginBottom: a ? "lg" : void 0,
|
|
1826
1836
|
children: /* @__PURE__ */ e(
|
|
1827
|
-
|
|
1837
|
+
Vr,
|
|
1828
1838
|
{
|
|
1829
1839
|
labelWidth: n,
|
|
1830
1840
|
fields: d,
|
|
@@ -1837,7 +1847,7 @@ const Rr = (t, r) => {
|
|
|
1837
1847
|
}
|
|
1838
1848
|
);
|
|
1839
1849
|
}
|
|
1840
|
-
),
|
|
1850
|
+
), Tr = ({ backButton: t }) => {
|
|
1841
1851
|
const [r, i] = k(!1), o = (t == null ? void 0 : t.iconColor) ?? "var(--sa-text-subtle, #8c8f97)", n = (t == null ? void 0 : t.textColor) ?? "var(--sa-text-subtle, #8c8f97)", l = (t == null ? void 0 : t.hoverIconColor) ?? "var(--sa-text-subtle, #8c8f97)", h = (t == null ? void 0 : t.hoverTextColor) ?? "var(--sa-text-primary, #292a2e)";
|
|
1842
1852
|
return /* @__PURE__ */ s(
|
|
1843
1853
|
f,
|
|
@@ -1850,7 +1860,7 @@ const Rr = (t, r) => {
|
|
|
1850
1860
|
style: { cursor: "pointer" },
|
|
1851
1861
|
children: [
|
|
1852
1862
|
/* @__PURE__ */ e(
|
|
1853
|
-
|
|
1863
|
+
w,
|
|
1854
1864
|
{
|
|
1855
1865
|
name: (t == null ? void 0 : t.iconName) || "ChevronLeft",
|
|
1856
1866
|
size: "xs",
|
|
@@ -1875,7 +1885,7 @@ const Rr = (t, r) => {
|
|
|
1875
1885
|
]
|
|
1876
1886
|
}
|
|
1877
1887
|
);
|
|
1878
|
-
},
|
|
1888
|
+
}, Nr = ({
|
|
1879
1889
|
backButton: t,
|
|
1880
1890
|
title: r,
|
|
1881
1891
|
titleTag: i,
|
|
@@ -1886,26 +1896,26 @@ const Rr = (t, r) => {
|
|
|
1886
1896
|
containerProps: a,
|
|
1887
1897
|
headerProps: u
|
|
1888
1898
|
}) => {
|
|
1889
|
-
const d =
|
|
1899
|
+
const d = oe("lg"), g = pt(), m = Te(), y = t == null ? void 0 : t.show, b = () => {
|
|
1890
1900
|
if (typeof (t == null ? void 0 : t.onClick) == "function") {
|
|
1891
1901
|
t.onClick();
|
|
1892
1902
|
return;
|
|
1893
1903
|
}
|
|
1894
1904
|
g(-1, { replace: !0 });
|
|
1895
1905
|
}, S = () => l ? dt(l) ? l : /* @__PURE__ */ e(f, { direction: "row", gap: "lg", children: l.map(
|
|
1896
|
-
({ title: T, icon: U, buttonProps:
|
|
1906
|
+
({ title: T, icon: U, buttonProps: L, onClick: ae }, J) => !T && !U ? null : /* @__PURE__ */ e(
|
|
1897
1907
|
N,
|
|
1898
1908
|
{
|
|
1899
1909
|
fullWidth: !d,
|
|
1900
|
-
iconLeft: U ? /* @__PURE__ */ e(
|
|
1910
|
+
iconLeft: U ? /* @__PURE__ */ e(w, { name: U, size: "md" }) : void 0,
|
|
1901
1911
|
onClick: ae,
|
|
1902
|
-
...
|
|
1912
|
+
...L,
|
|
1903
1913
|
children: T
|
|
1904
1914
|
},
|
|
1905
1915
|
`action-${J}`
|
|
1906
1916
|
)
|
|
1907
1917
|
) }) : null, C = () => {
|
|
1908
|
-
const T = /* @__PURE__ */ e(
|
|
1918
|
+
const T = /* @__PURE__ */ e(Tr, { backButton: t });
|
|
1909
1919
|
return t != null && t.navigateTo ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(
|
|
1910
1920
|
Ue,
|
|
1911
1921
|
{
|
|
@@ -1964,22 +1974,22 @@ const Rr = (t, r) => {
|
|
|
1964
1974
|
},
|
|
1965
1975
|
m.pathname
|
|
1966
1976
|
);
|
|
1967
|
-
},
|
|
1977
|
+
}, Gn = ge(Nr), Or = {
|
|
1968
1978
|
icon: "Cross",
|
|
1969
1979
|
title: ""
|
|
1970
|
-
},
|
|
1980
|
+
}, _r = "calc(100vw - 16px)", Ot = (t) => t == null ? void 0 : `min(${typeof t == "number" ? `${t}px` : t}, ${_r})`, jr = yt(
|
|
1971
1981
|
({
|
|
1972
1982
|
onHide: t,
|
|
1973
1983
|
show: r,
|
|
1974
1984
|
withBlur: i = !1,
|
|
1975
1985
|
style: o,
|
|
1976
1986
|
children: n,
|
|
1977
|
-
closeButton: l =
|
|
1987
|
+
closeButton: l = Or,
|
|
1978
1988
|
width: h,
|
|
1979
1989
|
minWidth: a = "357px",
|
|
1980
1990
|
maxWidth: u = "357px"
|
|
1981
1991
|
}, d) => {
|
|
1982
|
-
const g =
|
|
1992
|
+
const g = Ot(h ?? a), m = Ot(h ?? u);
|
|
1983
1993
|
return /* @__PURE__ */ e(
|
|
1984
1994
|
sr,
|
|
1985
1995
|
{
|
|
@@ -2005,7 +2015,7 @@ const Rr = (t, r) => {
|
|
|
2005
2015
|
cursor: "pointer",
|
|
2006
2016
|
children: [
|
|
2007
2017
|
/* @__PURE__ */ e(
|
|
2008
|
-
|
|
2018
|
+
w,
|
|
2009
2019
|
{
|
|
2010
2020
|
name: l.icon,
|
|
2011
2021
|
size: "md",
|
|
@@ -2022,9 +2032,9 @@ const Rr = (t, r) => {
|
|
|
2022
2032
|
}
|
|
2023
2033
|
);
|
|
2024
2034
|
}
|
|
2025
|
-
), nr =
|
|
2035
|
+
), nr = ge(
|
|
2026
2036
|
({ children: t, borderBottom: r = !0, padding: i = !0 }) => {
|
|
2027
|
-
const o =
|
|
2037
|
+
const o = oe("lg");
|
|
2028
2038
|
return /* @__PURE__ */ e(
|
|
2029
2039
|
f,
|
|
2030
2040
|
{
|
|
@@ -2038,9 +2048,9 @@ const Rr = (t, r) => {
|
|
|
2038
2048
|
}
|
|
2039
2049
|
);
|
|
2040
2050
|
}
|
|
2041
|
-
), or =
|
|
2051
|
+
), or = ge(
|
|
2042
2052
|
({ children: t, borderTop: r = !0, padding: i = !0 }) => {
|
|
2043
|
-
const o =
|
|
2053
|
+
const o = oe("lg");
|
|
2044
2054
|
return /* @__PURE__ */ e(
|
|
2045
2055
|
f,
|
|
2046
2056
|
{
|
|
@@ -2054,7 +2064,7 @@ const Rr = (t, r) => {
|
|
|
2054
2064
|
}
|
|
2055
2065
|
);
|
|
2056
2066
|
}
|
|
2057
|
-
),
|
|
2067
|
+
), Zr = ge(
|
|
2058
2068
|
({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
2059
2069
|
f,
|
|
2060
2070
|
{
|
|
@@ -2066,7 +2076,7 @@ const Rr = (t, r) => {
|
|
|
2066
2076
|
children: t
|
|
2067
2077
|
}
|
|
2068
2078
|
)
|
|
2069
|
-
),
|
|
2079
|
+
), qn = ge(
|
|
2070
2080
|
({
|
|
2071
2081
|
children: t,
|
|
2072
2082
|
title: r,
|
|
@@ -2081,7 +2091,7 @@ const Rr = (t, r) => {
|
|
|
2081
2091
|
footerProps: g = { borderTop: !0 },
|
|
2082
2092
|
variantTag: m = "info"
|
|
2083
2093
|
}) => {
|
|
2084
|
-
const y =
|
|
2094
|
+
const y = oe("lg"), b = () => i ? /* @__PURE__ */ s(f, { direction: "row", gap: "sm", align: "center", children: [
|
|
2085
2095
|
/* @__PURE__ */ e(x, { fontWeight: "medium", children: r }),
|
|
2086
2096
|
/* @__PURE__ */ e(Le, { border: !0, text: i, variant: m })
|
|
2087
2097
|
] }) : /* @__PURE__ */ e(x, { fontWeight: "medium", children: r }), S = () => n || /* @__PURE__ */ s(
|
|
@@ -2120,13 +2130,13 @@ const Rr = (t, r) => {
|
|
|
2120
2130
|
},
|
|
2121
2131
|
children: [
|
|
2122
2132
|
n !== null && C ? /* @__PURE__ */ e(nr, { ...d, children: S() }) : null,
|
|
2123
|
-
/* @__PURE__ */ e(
|
|
2133
|
+
/* @__PURE__ */ e(Zr, { ...u, children: t }),
|
|
2124
2134
|
l ? /* @__PURE__ */ e(or, { ...g, children: l }) : null
|
|
2125
2135
|
]
|
|
2126
2136
|
}
|
|
2127
2137
|
);
|
|
2128
2138
|
}
|
|
2129
|
-
),
|
|
2139
|
+
), $r = "var(--sa-color-secondary-50, #e6e9fb)", Gr = ({ children: t, onClick: r }) => {
|
|
2130
2140
|
const [i, o] = k("");
|
|
2131
2141
|
return /* @__PURE__ */ e(
|
|
2132
2142
|
Xe,
|
|
@@ -2141,14 +2151,14 @@ const Rr = (t, r) => {
|
|
|
2141
2151
|
gap: "spacing-1",
|
|
2142
2152
|
cursor: "pointer",
|
|
2143
2153
|
onClick: r,
|
|
2144
|
-
onMouseEnter: () => o(
|
|
2154
|
+
onMouseEnter: () => o($r),
|
|
2145
2155
|
borderRadius: "rounded-md",
|
|
2146
2156
|
onMouseLeave: () => o(""),
|
|
2147
2157
|
style: { backgroundColor: i },
|
|
2148
2158
|
children: t
|
|
2149
2159
|
}
|
|
2150
2160
|
);
|
|
2151
|
-
},
|
|
2161
|
+
}, qr = ge(Gr), Ur = ({
|
|
2152
2162
|
icon: t,
|
|
2153
2163
|
items: r = [],
|
|
2154
2164
|
style: i,
|
|
@@ -2167,9 +2177,9 @@ const Rr = (t, r) => {
|
|
|
2167
2177
|
}),
|
|
2168
2178
|
[n]
|
|
2169
2179
|
);
|
|
2170
|
-
return /* @__PURE__ */ s(
|
|
2171
|
-
/* @__PURE__ */ e(Ge, { style: o, children: /* @__PURE__ */ e(N, { size: "sm", secondary: !0, ...h, children: /* @__PURE__ */ e(
|
|
2172
|
-
/* @__PURE__ */ e(
|
|
2180
|
+
return /* @__PURE__ */ s(qt, { position: l, style: i, children: [
|
|
2181
|
+
/* @__PURE__ */ e(Ge, { style: o, children: /* @__PURE__ */ e(N, { size: "sm", secondary: !0, ...h, children: /* @__PURE__ */ e(w, { name: t, ...a }) }) }),
|
|
2182
|
+
/* @__PURE__ */ e(Ut, { style: d, children: r.map((g, m) => u === "outline-button" ? /* @__PURE__ */ e(Jt, { children: /* @__PURE__ */ s(
|
|
2173
2183
|
N,
|
|
2174
2184
|
{
|
|
2175
2185
|
size: "sm",
|
|
@@ -2178,37 +2188,37 @@ const Rr = (t, r) => {
|
|
|
2178
2188
|
onClick: g.onClick,
|
|
2179
2189
|
...g.buttonProps,
|
|
2180
2190
|
children: [
|
|
2181
|
-
/* @__PURE__ */ e(
|
|
2191
|
+
/* @__PURE__ */ e(w, { name: g.icon, size: "md", ...g.iconProps }),
|
|
2182
2192
|
/* @__PURE__ */ e(x, { fontSize: "sm", color: "text", ...g.textProps, children: g.label })
|
|
2183
2193
|
]
|
|
2184
2194
|
}
|
|
2185
2195
|
) }, g.id || m) : /* @__PURE__ */ s(
|
|
2186
|
-
|
|
2196
|
+
qr,
|
|
2187
2197
|
{
|
|
2188
2198
|
onClick: g.onClick,
|
|
2189
2199
|
...g.buttonProps,
|
|
2190
2200
|
children: [
|
|
2191
|
-
/* @__PURE__ */ e(
|
|
2201
|
+
/* @__PURE__ */ e(w, { name: g.icon, size: "md", ...g.iconProps }),
|
|
2192
2202
|
/* @__PURE__ */ e(x, { fontSize: "sm", color: "text", ...g.textProps, children: g.label })
|
|
2193
2203
|
]
|
|
2194
2204
|
},
|
|
2195
2205
|
g.id || m
|
|
2196
2206
|
)) })
|
|
2197
2207
|
] });
|
|
2198
|
-
},
|
|
2199
|
-
H1:
|
|
2200
|
-
H2:
|
|
2201
|
-
H3:
|
|
2202
|
-
H4:
|
|
2203
|
-
H5:
|
|
2204
|
-
H6:
|
|
2205
|
-
SubH1:
|
|
2206
|
-
SubH2:
|
|
2207
|
-
SubH3:
|
|
2208
|
-
Body1:
|
|
2209
|
-
Body2:
|
|
2210
|
-
Body3:
|
|
2211
|
-
},
|
|
2208
|
+
}, Un = ge(Ur), Jr = (t) => /* @__PURE__ */ e(x, { variant: "h1", children: t.children, ...t.props }), Pr = (t) => /* @__PURE__ */ e(x, { variant: "h2", children: t.children, ...t.props }), Qr = (t) => /* @__PURE__ */ e(x, { variant: "h3", children: t.children, ...t.props }), Yr = (t) => /* @__PURE__ */ e(x, { variant: "h4", children: t.children, ...t.props }), Xr = (t) => /* @__PURE__ */ e(x, { variant: "h5", children: t.children, ...t.props }), Kr = (t) => /* @__PURE__ */ e(x, { variant: "h6", children: t.children, ...t.props }), ei = (t) => /* @__PURE__ */ e(x, { variant: "sub-h1", children: t.children, ...t.props }), ti = (t) => /* @__PURE__ */ e(x, { variant: "sub-h2", children: t.children, ...t.props }), ri = (t) => /* @__PURE__ */ e(x, { variant: "sub-h3", children: t.children, ...t.props }), ii = (t) => /* @__PURE__ */ e(x, { variant: "body-1", children: t.children, ...t.props }), ni = (t) => /* @__PURE__ */ e(x, { variant: "body-2", children: t.children, ...t.props }), oi = (t) => /* @__PURE__ */ e(x, { variant: "body-3", children: t.children, ...t.props }), xe = {
|
|
2209
|
+
H1: Jr,
|
|
2210
|
+
H2: Pr,
|
|
2211
|
+
H3: Qr,
|
|
2212
|
+
H4: Yr,
|
|
2213
|
+
H5: Xr,
|
|
2214
|
+
H6: Kr,
|
|
2215
|
+
SubH1: ei,
|
|
2216
|
+
SubH2: ti,
|
|
2217
|
+
SubH3: ri,
|
|
2218
|
+
Body1: ii,
|
|
2219
|
+
Body2: ni,
|
|
2220
|
+
Body3: oi
|
|
2221
|
+
}, vt = () => {
|
|
2212
2222
|
const [t, r] = Ye(), i = Pe(t.toString()), o = Yt(), n = Te(), l = o.id;
|
|
2213
2223
|
return {
|
|
2214
2224
|
// query params
|
|
@@ -2226,7 +2236,7 @@ const Rr = (t, r) => {
|
|
|
2226
2236
|
id: l,
|
|
2227
2237
|
hasId: !!l
|
|
2228
2238
|
};
|
|
2229
|
-
},
|
|
2239
|
+
}, li = (t) => JSON.stringify(t), ci = (t) => JSON.stringify(t), ai = (t) => JSON.stringify(t), si = (t) => JSON.stringify(t), di = (t) => t, hi = (t) => JSON.stringify(t), _t = ({
|
|
2230
2240
|
value: t,
|
|
2231
2241
|
name: r,
|
|
2232
2242
|
type: i,
|
|
@@ -2241,23 +2251,23 @@ const Rr = (t, r) => {
|
|
|
2241
2251
|
let d;
|
|
2242
2252
|
switch (i) {
|
|
2243
2253
|
case "search":
|
|
2244
|
-
d =
|
|
2254
|
+
d = di(t);
|
|
2245
2255
|
break;
|
|
2246
2256
|
case "dropdown":
|
|
2247
2257
|
case "dropdown-multiple":
|
|
2248
|
-
d =
|
|
2258
|
+
d = li(t);
|
|
2249
2259
|
break;
|
|
2250
2260
|
case "radio":
|
|
2251
|
-
d =
|
|
2261
|
+
d = ci(t);
|
|
2252
2262
|
break;
|
|
2253
2263
|
case "date-range":
|
|
2254
|
-
d =
|
|
2264
|
+
d = ai(t);
|
|
2255
2265
|
break;
|
|
2256
2266
|
case "advanced-date-range":
|
|
2257
|
-
d =
|
|
2267
|
+
d = hi(t);
|
|
2258
2268
|
break;
|
|
2259
2269
|
case "date":
|
|
2260
|
-
d =
|
|
2270
|
+
d = si(t);
|
|
2261
2271
|
break;
|
|
2262
2272
|
default:
|
|
2263
2273
|
d = t;
|
|
@@ -2288,7 +2298,7 @@ const Rr = (t, r) => {
|
|
|
2288
2298
|
}) => {
|
|
2289
2299
|
const n = i.get(r) || void 0, l = n && typeof n == "string" ? JSON.parse(n) : void 0, h = l ? l[t] : void 0;
|
|
2290
2300
|
return o === "label" && h ? JSON.parse(h)[0].label : o === "value" && h ? JSON.parse(h)[0].value : h;
|
|
2291
|
-
},
|
|
2301
|
+
}, Jn = ({
|
|
2292
2302
|
name: t,
|
|
2293
2303
|
filterKey: r = "filter",
|
|
2294
2304
|
searchParams: i,
|
|
@@ -2296,7 +2306,7 @@ const Rr = (t, r) => {
|
|
|
2296
2306
|
}) => {
|
|
2297
2307
|
const n = i.get(r) || void 0, l = n && typeof n == "string" ? JSON.parse(n) : void 0, h = l ? l[t] : void 0;
|
|
2298
2308
|
return o === "label" && h ? JSON.parse(h).map((a) => a.label) : o === "value" && h ? JSON.parse(h).map((a) => a.value) : o === "array" && h ? JSON.parse(h) : h;
|
|
2299
|
-
},
|
|
2309
|
+
}, Pn = ({
|
|
2300
2310
|
name: t,
|
|
2301
2311
|
filterKey: r = "filter",
|
|
2302
2312
|
searchParams: i,
|
|
@@ -2304,10 +2314,10 @@ const Rr = (t, r) => {
|
|
|
2304
2314
|
}) => {
|
|
2305
2315
|
const n = i.get(r) || void 0, l = n && typeof n == "string" ? JSON.parse(n) : void 0, h = l ? l[t] : void 0;
|
|
2306
2316
|
return o === "id" && h ? JSON.parse(h).id : o === "label" && h ? JSON.parse(h).label : o === "value" && h ? JSON.parse(h).value : h;
|
|
2307
|
-
},
|
|
2317
|
+
}, ui = (t, r, i) => {
|
|
2308
2318
|
const o = r.get(i || "filter") || void 0, n = o && typeof o == "string" ? JSON.parse(o) : void 0;
|
|
2309
2319
|
return n ? n[t] : void 0;
|
|
2310
|
-
},
|
|
2320
|
+
}, Qn = ({
|
|
2311
2321
|
name: t,
|
|
2312
2322
|
filterKey: r = "filter",
|
|
2313
2323
|
searchParams: i
|
|
@@ -2317,28 +2327,28 @@ const Rr = (t, r) => {
|
|
|
2317
2327
|
start: l ? JSON.parse(l).from : void 0,
|
|
2318
2328
|
end: l ? JSON.parse(l).to : void 0
|
|
2319
2329
|
};
|
|
2320
|
-
},
|
|
2330
|
+
}, Yn = ({
|
|
2321
2331
|
name: t,
|
|
2322
2332
|
filterKey: r = "filter",
|
|
2323
2333
|
searchParams: i
|
|
2324
2334
|
}) => {
|
|
2325
2335
|
const o = i.get(r || "filter") || void 0, n = o && typeof o == "string" ? JSON.parse(o) : void 0, l = n ? n[t] : void 0;
|
|
2326
2336
|
return l ? JSON.parse(l) : void 0;
|
|
2327
|
-
},
|
|
2337
|
+
}, Xn = (t, {
|
|
2328
2338
|
filterKey: r = "filter",
|
|
2329
2339
|
perPageKey: i = "perPage",
|
|
2330
2340
|
pageKey: o = "page"
|
|
2331
2341
|
}) => {
|
|
2332
2342
|
const n = t.get(r) || void 0, l = t.get(i) || void 0, h = t.get(o) || void 0;
|
|
2333
2343
|
return !!n || !!l || !!h;
|
|
2334
|
-
},
|
|
2344
|
+
}, fi = ({
|
|
2335
2345
|
isOpen: t,
|
|
2336
2346
|
onClose: r,
|
|
2337
2347
|
filterKey: i,
|
|
2338
2348
|
pageKey: o,
|
|
2339
2349
|
filters: n
|
|
2340
2350
|
}) => {
|
|
2341
|
-
const { searchParams: l, setSearchParams: h, searchQueries: a } =
|
|
2351
|
+
const { searchParams: l, setSearchParams: h, searchQueries: a } = vt(), [u, d] = k({}), g = () => {
|
|
2342
2352
|
l.delete(i || "filter"), h(l);
|
|
2343
2353
|
}, m = (y, b) => {
|
|
2344
2354
|
switch (y.type) {
|
|
@@ -2362,7 +2372,7 @@ const Rr = (t, r) => {
|
|
|
2362
2372
|
return null;
|
|
2363
2373
|
}
|
|
2364
2374
|
};
|
|
2365
|
-
return /* @__PURE__ */ e(
|
|
2375
|
+
return /* @__PURE__ */ e(jr, { onHide: r, show: t || !1, children: /* @__PURE__ */ s(f, { direction: "column", gap: "md", children: [
|
|
2366
2376
|
/* @__PURE__ */ s(_, { direction: "row", justify: "space-between", align: "center", children: [
|
|
2367
2377
|
/* @__PURE__ */ e(f, { children: "Filter" }),
|
|
2368
2378
|
/* @__PURE__ */ e(
|
|
@@ -2376,7 +2386,7 @@ const Rr = (t, r) => {
|
|
|
2376
2386
|
] }),
|
|
2377
2387
|
n == null ? void 0 : n.map((y, b) => m(y, b))
|
|
2378
2388
|
] }) });
|
|
2379
|
-
},
|
|
2389
|
+
}, gi = ({
|
|
2380
2390
|
searchKey: t = "q",
|
|
2381
2391
|
statusKey: r = "status",
|
|
2382
2392
|
searchPlaceholder: i = "Search",
|
|
@@ -2394,9 +2404,9 @@ const Rr = (t, r) => {
|
|
|
2394
2404
|
titleSearchLabel: S = "Work Order",
|
|
2395
2405
|
withTitleLabels: C = !1
|
|
2396
2406
|
}) => {
|
|
2397
|
-
const Z = (y == null ? void 0 : y.isShowLabel) ?? !0, [T, U] = k(!1), [
|
|
2407
|
+
const Z = (y == null ? void 0 : y.isShowLabel) ?? !0, [T, U] = k(!1), [L, ae] = k(0), J = () => {
|
|
2398
2408
|
ae((V) => V + 1);
|
|
2399
|
-
}, { searchParams:
|
|
2409
|
+
}, { searchParams: H, setSearchParams: P, getQueryParam: le } = vt(), ce = Pe(H.toString()), G = ui(t, H, a) || "", [Q, ee] = k(G), se = le(a), X = !!(se && !(() => {
|
|
2400
2410
|
if (se)
|
|
2401
2411
|
try {
|
|
2402
2412
|
const V = JSON.parse(se);
|
|
@@ -2405,18 +2415,18 @@ const Rr = (t, r) => {
|
|
|
2405
2415
|
console.error("Filter parameter is not a valid JSON:", V);
|
|
2406
2416
|
}
|
|
2407
2417
|
return !1;
|
|
2408
|
-
})()), R =
|
|
2418
|
+
})()), R = oe("md");
|
|
2409
2419
|
return $(() => {
|
|
2410
|
-
|
|
2420
|
+
ee(G);
|
|
2411
2421
|
}, [G]), $(() => {
|
|
2412
2422
|
if (Q === G)
|
|
2413
2423
|
return;
|
|
2414
2424
|
const V = window.setTimeout(() => {
|
|
2415
|
-
|
|
2425
|
+
_t({
|
|
2416
2426
|
value: Q,
|
|
2417
2427
|
name: t,
|
|
2418
2428
|
type: "search",
|
|
2419
|
-
searchQueries:
|
|
2429
|
+
searchQueries: ce,
|
|
2420
2430
|
setSearchParams: P,
|
|
2421
2431
|
filterKey: a,
|
|
2422
2432
|
pageKey: u
|
|
@@ -2429,7 +2439,7 @@ const Rr = (t, r) => {
|
|
|
2429
2439
|
Q,
|
|
2430
2440
|
G,
|
|
2431
2441
|
t,
|
|
2432
|
-
|
|
2442
|
+
ce,
|
|
2433
2443
|
P,
|
|
2434
2444
|
a,
|
|
2435
2445
|
u
|
|
@@ -2446,28 +2456,28 @@ const Rr = (t, r) => {
|
|
|
2446
2456
|
N,
|
|
2447
2457
|
{
|
|
2448
2458
|
onClick: () => {
|
|
2449
|
-
const V = new URLSearchParams(
|
|
2450
|
-
V.delete(a), P(V),
|
|
2459
|
+
const V = new URLSearchParams(H);
|
|
2460
|
+
V.delete(a), P(V), ee(""), J(), g && g();
|
|
2451
2461
|
},
|
|
2452
2462
|
variant: "outline",
|
|
2453
2463
|
tone: "neutral",
|
|
2454
2464
|
children: /* @__PURE__ */ e(x, { color: "error", fontWeight: "semibold", children: "Reset" })
|
|
2455
2465
|
}
|
|
2456
2466
|
) }),
|
|
2457
|
-
n == null ? void 0 : n.map(({ minWidth: V, content:
|
|
2467
|
+
n == null ? void 0 : n.map(({ minWidth: V, content: K, title: me, onClickContainer: ye }, Be) => /* @__PURE__ */ s(
|
|
2458
2468
|
f,
|
|
2459
2469
|
{
|
|
2460
2470
|
gap: "sm",
|
|
2461
|
-
onClick:
|
|
2471
|
+
onClick: ye,
|
|
2462
2472
|
style: {
|
|
2463
2473
|
minWidth: V
|
|
2464
2474
|
},
|
|
2465
2475
|
children: [
|
|
2466
|
-
|
|
2467
|
-
|
|
2476
|
+
me && /* @__PURE__ */ e(xe.SubH3, { children: me }),
|
|
2477
|
+
K
|
|
2468
2478
|
]
|
|
2469
2479
|
},
|
|
2470
|
-
`extended-filter-${Be}-${
|
|
2480
|
+
`extended-filter-${Be}-${L}`
|
|
2471
2481
|
)),
|
|
2472
2482
|
!!(m != null && m.length) && /* @__PURE__ */ e(
|
|
2473
2483
|
N,
|
|
@@ -2475,7 +2485,7 @@ const Rr = (t, r) => {
|
|
|
2475
2485
|
primary: X,
|
|
2476
2486
|
secondary: !X,
|
|
2477
2487
|
iconLeft: /* @__PURE__ */ e(
|
|
2478
|
-
|
|
2488
|
+
w,
|
|
2479
2489
|
{
|
|
2480
2490
|
size: "sm",
|
|
2481
2491
|
name: (y == null ? void 0 : y.icon) || "FilterHorizontal",
|
|
@@ -2497,7 +2507,7 @@ const Rr = (t, r) => {
|
|
|
2497
2507
|
minWidth: "126px"
|
|
2498
2508
|
},
|
|
2499
2509
|
children: [
|
|
2500
|
-
C && /* @__PURE__ */ e(
|
|
2510
|
+
C && /* @__PURE__ */ e(xe.SubH3, { children: "Status" }),
|
|
2501
2511
|
/* @__PURE__ */ e(
|
|
2502
2512
|
gt,
|
|
2503
2513
|
{
|
|
@@ -2514,35 +2524,35 @@ const Rr = (t, r) => {
|
|
|
2514
2524
|
defaultValue: ot({
|
|
2515
2525
|
get: "value",
|
|
2516
2526
|
name: r,
|
|
2517
|
-
searchParams:
|
|
2527
|
+
searchParams: H,
|
|
2518
2528
|
filterKey: a
|
|
2519
2529
|
}) ? [
|
|
2520
2530
|
{
|
|
2521
2531
|
label: ot({
|
|
2522
2532
|
get: "value",
|
|
2523
2533
|
name: r,
|
|
2524
|
-
searchParams:
|
|
2534
|
+
searchParams: H,
|
|
2525
2535
|
filterKey: a
|
|
2526
2536
|
}) === "active" ? "Active" : "InActive",
|
|
2527
2537
|
value: ot({
|
|
2528
2538
|
get: "value",
|
|
2529
2539
|
name: r,
|
|
2530
|
-
searchParams:
|
|
2540
|
+
searchParams: H,
|
|
2531
2541
|
filterKey: a
|
|
2532
2542
|
})
|
|
2533
2543
|
}
|
|
2534
2544
|
] : [],
|
|
2535
|
-
onChange: (V) =>
|
|
2545
|
+
onChange: (V) => _t({
|
|
2536
2546
|
value: V,
|
|
2537
2547
|
name: r,
|
|
2538
2548
|
type: "dropdown",
|
|
2539
|
-
searchQueries:
|
|
2549
|
+
searchQueries: ce,
|
|
2540
2550
|
setSearchParams: P,
|
|
2541
2551
|
filterKey: a
|
|
2542
2552
|
}),
|
|
2543
2553
|
placeholder: C ? "All" : "All Status"
|
|
2544
2554
|
},
|
|
2545
|
-
|
|
2555
|
+
L
|
|
2546
2556
|
)
|
|
2547
2557
|
]
|
|
2548
2558
|
}
|
|
@@ -2555,7 +2565,7 @@ const Rr = (t, r) => {
|
|
|
2555
2565
|
width: d && R ? d : R ? "310px" : ""
|
|
2556
2566
|
},
|
|
2557
2567
|
children: [
|
|
2558
|
-
C && /* @__PURE__ */ s(
|
|
2568
|
+
C && /* @__PURE__ */ s(xe.SubH3, { children: [
|
|
2559
2569
|
"Search for ",
|
|
2560
2570
|
S
|
|
2561
2571
|
] }),
|
|
@@ -2563,18 +2573,18 @@ const Rr = (t, r) => {
|
|
|
2563
2573
|
mt,
|
|
2564
2574
|
{
|
|
2565
2575
|
placeholder: i,
|
|
2566
|
-
leftIcon: /* @__PURE__ */ e(
|
|
2567
|
-
onChange: (V) =>
|
|
2576
|
+
leftIcon: /* @__PURE__ */ e(w, { name: "Search", width: 20, height: 20 }),
|
|
2577
|
+
onChange: (V) => ee(V.target.value),
|
|
2568
2578
|
value: Q,
|
|
2569
2579
|
fullWidth: !0
|
|
2570
2580
|
},
|
|
2571
|
-
|
|
2581
|
+
L + 1 + a
|
|
2572
2582
|
)
|
|
2573
2583
|
]
|
|
2574
2584
|
}
|
|
2575
2585
|
),
|
|
2576
2586
|
/* @__PURE__ */ e(
|
|
2577
|
-
|
|
2587
|
+
fi,
|
|
2578
2588
|
{
|
|
2579
2589
|
isOpen: T,
|
|
2580
2590
|
onClose: () => U(!1),
|
|
@@ -2586,8 +2596,8 @@ const Rr = (t, r) => {
|
|
|
2586
2596
|
]
|
|
2587
2597
|
}
|
|
2588
2598
|
);
|
|
2589
|
-
},
|
|
2590
|
-
const o =
|
|
2599
|
+
}, mi = ({ children: t, borderRadius: r, height: i }) => {
|
|
2600
|
+
const o = ne(null), [n, l] = k("100vh");
|
|
2591
2601
|
return $(() => {
|
|
2592
2602
|
if (i) return;
|
|
2593
2603
|
const h = () => {
|
|
@@ -2614,7 +2624,7 @@ const Rr = (t, r) => {
|
|
|
2614
2624
|
children: t
|
|
2615
2625
|
}
|
|
2616
2626
|
);
|
|
2617
|
-
},
|
|
2627
|
+
}, yi = ({
|
|
2618
2628
|
action: t,
|
|
2619
2629
|
rightContent: r,
|
|
2620
2630
|
leftContent: i,
|
|
@@ -2622,7 +2632,7 @@ const Rr = (t, r) => {
|
|
|
2622
2632
|
advanceFilter: n,
|
|
2623
2633
|
showFilter: l = !0
|
|
2624
2634
|
}) => {
|
|
2625
|
-
const h =
|
|
2635
|
+
const h = oe("md"), a = l ? /* @__PURE__ */ e(gi, { ...n }) : null;
|
|
2626
2636
|
return /* @__PURE__ */ e(
|
|
2627
2637
|
f,
|
|
2628
2638
|
{
|
|
@@ -2664,7 +2674,7 @@ const Rr = (t, r) => {
|
|
|
2664
2674
|
N,
|
|
2665
2675
|
{
|
|
2666
2676
|
fullWidth: !h,
|
|
2667
|
-
iconLeft: g ? /* @__PURE__ */ e(
|
|
2677
|
+
iconLeft: g ? /* @__PURE__ */ e(w, { name: g }) : void 0,
|
|
2668
2678
|
onClick: y,
|
|
2669
2679
|
...m,
|
|
2670
2680
|
children: d
|
|
@@ -2678,7 +2688,7 @@ const Rr = (t, r) => {
|
|
|
2678
2688
|
] })
|
|
2679
2689
|
}
|
|
2680
2690
|
);
|
|
2681
|
-
},
|
|
2691
|
+
}, pi = ({
|
|
2682
2692
|
totalData: t,
|
|
2683
2693
|
withMarginBottom: r = !0,
|
|
2684
2694
|
withMarginTop: i = !0
|
|
@@ -2695,7 +2705,7 @@ const Rr = (t, r) => {
|
|
|
2695
2705
|
},
|
|
2696
2706
|
children: [
|
|
2697
2707
|
/* @__PURE__ */ s(
|
|
2698
|
-
|
|
2708
|
+
xe.Body1,
|
|
2699
2709
|
{
|
|
2700
2710
|
props: {
|
|
2701
2711
|
color: "gray-500"
|
|
@@ -2706,10 +2716,10 @@ const Rr = (t, r) => {
|
|
|
2706
2716
|
]
|
|
2707
2717
|
}
|
|
2708
2718
|
),
|
|
2709
|
-
/* @__PURE__ */ e(
|
|
2719
|
+
/* @__PURE__ */ e(xe.Body1, { children: t || 0 })
|
|
2710
2720
|
]
|
|
2711
2721
|
}
|
|
2712
|
-
),
|
|
2722
|
+
), xi = ({
|
|
2713
2723
|
pagination: t,
|
|
2714
2724
|
pageKey: r = "page",
|
|
2715
2725
|
perPageKey: i = "perPage",
|
|
@@ -2717,7 +2727,7 @@ const Rr = (t, r) => {
|
|
|
2717
2727
|
showPagination: n = !0,
|
|
2718
2728
|
totalData: l
|
|
2719
2729
|
}) => {
|
|
2720
|
-
const { searchQueries: h, setSearchParams: a, searchParams: u } =
|
|
2730
|
+
const { searchQueries: h, setSearchParams: a, searchParams: u } = vt(), d = u.get(i), g = (S) => {
|
|
2721
2731
|
a({ ...h, [r]: String(S) });
|
|
2722
2732
|
}, m = (S) => {
|
|
2723
2733
|
a({
|
|
@@ -2773,7 +2783,7 @@ const Rr = (t, r) => {
|
|
|
2773
2783
|
}
|
|
2774
2784
|
)
|
|
2775
2785
|
] }) : /* @__PURE__ */ e(
|
|
2776
|
-
|
|
2786
|
+
pi,
|
|
2777
2787
|
{
|
|
2778
2788
|
totalData: l,
|
|
2779
2789
|
withMarginBottom: !1,
|
|
@@ -2782,8 +2792,8 @@ const Rr = (t, r) => {
|
|
|
2782
2792
|
)
|
|
2783
2793
|
}
|
|
2784
2794
|
);
|
|
2785
|
-
},
|
|
2786
|
-
const [i, o] = k(!1), n =
|
|
2795
|
+
}, Ci = ({ filter: t, columnTitle: r }) => {
|
|
2796
|
+
const [i, o] = k(!1), n = ne(null), l = ne(null), h = ne(null), [a, u] = k(""), [d, g] = k({ top: 0, left: 0 }), m = t.selectedValues, y = fe(() => a ? t.options.filter(
|
|
2787
2797
|
(C) => C.label.toLowerCase().includes(a.toLowerCase())
|
|
2788
2798
|
) : t.options, [t.options, a]);
|
|
2789
2799
|
$(() => {
|
|
@@ -2824,7 +2834,7 @@ const Rr = (t, r) => {
|
|
|
2824
2834
|
C.stopPropagation(), i || (z = t.onOpen) == null || z.call(t), o((Z) => !Z);
|
|
2825
2835
|
},
|
|
2826
2836
|
children: /* @__PURE__ */ e(
|
|
2827
|
-
|
|
2837
|
+
w,
|
|
2828
2838
|
{
|
|
2829
2839
|
name: i ? "ChevronUp" : "ChevronDown",
|
|
2830
2840
|
size: "sm",
|
|
@@ -2902,7 +2912,7 @@ const Rr = (t, r) => {
|
|
|
2902
2912
|
{
|
|
2903
2913
|
ref: h,
|
|
2904
2914
|
placeholder: `Search ${r.toLowerCase()}...`,
|
|
2905
|
-
leftIcon: /* @__PURE__ */ e(
|
|
2915
|
+
leftIcon: /* @__PURE__ */ e(w, { name: "Search", size: "sm" }),
|
|
2906
2916
|
value: a,
|
|
2907
2917
|
onChange: (C) => u(C.target.value),
|
|
2908
2918
|
style: { fontSize: "14px" }
|
|
@@ -2933,7 +2943,7 @@ const Rr = (t, r) => {
|
|
|
2933
2943
|
},
|
|
2934
2944
|
children: [
|
|
2935
2945
|
/* @__PURE__ */ e(
|
|
2936
|
-
|
|
2946
|
+
w,
|
|
2937
2947
|
{
|
|
2938
2948
|
name: "Loading",
|
|
2939
2949
|
size: "lg",
|
|
@@ -3014,7 +3024,7 @@ const Rr = (t, r) => {
|
|
|
3014
3024
|
},
|
|
3015
3025
|
children: [
|
|
3016
3026
|
/* @__PURE__ */ e(
|
|
3017
|
-
|
|
3027
|
+
w,
|
|
3018
3028
|
{
|
|
3019
3029
|
name: "Search",
|
|
3020
3030
|
size: "lg",
|
|
@@ -3074,7 +3084,7 @@ const Rr = (t, r) => {
|
|
|
3074
3084
|
}
|
|
3075
3085
|
)
|
|
3076
3086
|
] });
|
|
3077
|
-
},
|
|
3087
|
+
}, vi = ({
|
|
3078
3088
|
direction: t
|
|
3079
3089
|
}) => {
|
|
3080
3090
|
const r = "var(--sa-text-primary, #292a2e)", i = "var(--sa-text-subtle, #8c8f97)";
|
|
@@ -3114,7 +3124,7 @@ const Rr = (t, r) => {
|
|
|
3114
3124
|
]
|
|
3115
3125
|
}
|
|
3116
3126
|
);
|
|
3117
|
-
},
|
|
3127
|
+
}, bi = ({ frozen: t }) => /* @__PURE__ */ s(
|
|
3118
3128
|
"svg",
|
|
3119
3129
|
{
|
|
3120
3130
|
width: "11",
|
|
@@ -3130,7 +3140,7 @@ const Rr = (t, r) => {
|
|
|
3130
3140
|
/* @__PURE__ */ e("path", { d: t ? "M7 11V7a5 5 0 0 1 10 0v4" : "M7 11V7a5 5 0 0 1 9.9-1" })
|
|
3131
3141
|
]
|
|
3132
3142
|
}
|
|
3133
|
-
), lt = "var(--sa-background-primary, #ffffff)",
|
|
3143
|
+
), lt = "var(--sa-background-primary, #ffffff)", jt = "var(--sa-background-primary-inverse, #f8f8f8)", Di = ({
|
|
3134
3144
|
columns: t,
|
|
3135
3145
|
records: r,
|
|
3136
3146
|
handleDetail: i,
|
|
@@ -3151,22 +3161,22 @@ const Rr = (t, r) => {
|
|
|
3151
3161
|
defaultColumnWidths: Z,
|
|
3152
3162
|
onColumnWidthsChange: T,
|
|
3153
3163
|
defaultMinColumnWidth: U = 60,
|
|
3154
|
-
sort:
|
|
3164
|
+
sort: L,
|
|
3155
3165
|
defaultSort: ae,
|
|
3156
3166
|
onSortChange: J,
|
|
3157
|
-
showActionDivider:
|
|
3167
|
+
showActionDivider: H = !1
|
|
3158
3168
|
}) => {
|
|
3159
|
-
const P =
|
|
3169
|
+
const P = L !== void 0, [le, ce] = k(
|
|
3160
3170
|
ae ?? null
|
|
3161
|
-
), G = P ?
|
|
3171
|
+
), G = P ? L ?? null : le, Q = (v) => {
|
|
3162
3172
|
if (v.sortKey) return v.sortKey;
|
|
3163
3173
|
if (typeof v.accessor == "string") return v.accessor;
|
|
3164
|
-
},
|
|
3174
|
+
}, ee = (v) => {
|
|
3165
3175
|
const F = Q(v);
|
|
3166
3176
|
if (!F) return;
|
|
3167
|
-
let
|
|
3168
|
-
!G || G.key !== F ?
|
|
3169
|
-
},
|
|
3177
|
+
let D;
|
|
3178
|
+
!G || G.key !== F ? D = { key: F, direction: "asc" } : G.direction === "asc" ? D = { key: F, direction: "desc" } : D = null, P || ce(D), J == null || J(D);
|
|
3179
|
+
}, te = [i, o, n].filter((v) => v !== void 0).length, X = !!b, R = !!i || !!o || !!n || X, V = "var(--sa-border-subtle, #0b120e24)", K = `1px solid ${V}`, me = `inset 1px 0 0 ${V}`, ye = `inset -1px 0 0 ${V}`, Be = te === 3 ? X ? "178px" : "140px" : te === 2 ? X ? "140px" : "102px" : te === 1 ? X ? "112px" : "74px" : X ? "74px" : "", Ne = (v, F) => {
|
|
3170
3180
|
if (!F) return v;
|
|
3171
3181
|
if (typeof F == "function") return F(v);
|
|
3172
3182
|
if (typeof F == "string") return v[F];
|
|
@@ -3176,9 +3186,9 @@ const Rr = (t, r) => {
|
|
|
3176
3186
|
const v = g.current;
|
|
3177
3187
|
Oe(v.scrollHeight > v.clientHeight);
|
|
3178
3188
|
}, [r, g]);
|
|
3179
|
-
const Ie =
|
|
3189
|
+
const Ie = ne(null), [de, _e] = k([]), [Ae, Fe] = k(
|
|
3180
3190
|
() => Z ?? {}
|
|
3181
|
-
), Ee =
|
|
3191
|
+
), Ee = ne(null);
|
|
3182
3192
|
st(() => {
|
|
3183
3193
|
if (!m || !Ie.current) {
|
|
3184
3194
|
_e([]);
|
|
@@ -3187,29 +3197,29 @@ const Rr = (t, r) => {
|
|
|
3187
3197
|
const v = Array.from(
|
|
3188
3198
|
Ie.current.querySelectorAll("thead tr th")
|
|
3189
3199
|
), F = [];
|
|
3190
|
-
let
|
|
3191
|
-
v.forEach((
|
|
3192
|
-
F[
|
|
3200
|
+
let D = 0;
|
|
3201
|
+
v.forEach((E, I) => {
|
|
3202
|
+
F[I] = D, I < m && (D += E.offsetWidth);
|
|
3193
3203
|
}), _e(F);
|
|
3194
3204
|
}, [m, t, r, Ae]);
|
|
3195
3205
|
const je = (v) => {
|
|
3196
3206
|
y && y(v < m ? v : v + 1);
|
|
3197
3207
|
}, p = (v, F) => {
|
|
3198
|
-
const
|
|
3199
|
-
if (
|
|
3200
|
-
const
|
|
3201
|
-
return { width:
|
|
3208
|
+
const D = Ae[v];
|
|
3209
|
+
if (D !== void 0) {
|
|
3210
|
+
const E = `${D}px`;
|
|
3211
|
+
return { width: E, minWidth: E, maxWidth: E };
|
|
3202
3212
|
}
|
|
3203
3213
|
return F ? { width: F } : {};
|
|
3204
|
-
},
|
|
3214
|
+
}, M = (v) => z && (v.resizable ?? !0), W = (v, F) => {
|
|
3205
3215
|
v.preventDefault(), v.stopPropagation();
|
|
3206
|
-
const
|
|
3207
|
-
if (!
|
|
3208
|
-
const
|
|
3209
|
-
Ee.current = { colIndex: F, startX: v.clientX, startWidth:
|
|
3210
|
-
const
|
|
3216
|
+
const D = v.currentTarget.closest("th");
|
|
3217
|
+
if (!D) return;
|
|
3218
|
+
const E = Math.round(D.getBoundingClientRect().width);
|
|
3219
|
+
Ee.current = { colIndex: F, startX: v.clientX, startWidth: E };
|
|
3220
|
+
const I = document.body.style.userSelect, re = document.body.style.cursor;
|
|
3211
3221
|
document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
|
|
3212
|
-
const
|
|
3222
|
+
const he = (be) => {
|
|
3213
3223
|
var ze;
|
|
3214
3224
|
const Ce = Ee.current;
|
|
3215
3225
|
if (!Ce) return;
|
|
@@ -3218,11 +3228,11 @@ const Rr = (t, r) => {
|
|
|
3218
3228
|
(Me) => Me[Ce.colIndex] === He ? Me : { ...Me, [Ce.colIndex]: He }
|
|
3219
3229
|
);
|
|
3220
3230
|
}, we = () => {
|
|
3221
|
-
document.removeEventListener("mousemove",
|
|
3231
|
+
document.removeEventListener("mousemove", he), document.removeEventListener("mouseup", we), document.body.style.userSelect = I, document.body.style.cursor = re, Ee.current = null, T && Fe((be) => (T(be), be));
|
|
3222
3232
|
};
|
|
3223
|
-
document.addEventListener("mousemove",
|
|
3233
|
+
document.addEventListener("mousemove", he), document.addEventListener("mouseup", we);
|
|
3224
3234
|
};
|
|
3225
|
-
return /* @__PURE__ */ e("div", { ref: Ie, children: /* @__PURE__ */ s(
|
|
3235
|
+
return /* @__PURE__ */ e("div", { ref: Ie, children: /* @__PURE__ */ s(Pt, { fullWidth: !0, children: [
|
|
3226
3236
|
/* @__PURE__ */ e(
|
|
3227
3237
|
fr,
|
|
3228
3238
|
{
|
|
@@ -3232,9 +3242,9 @@ const Rr = (t, r) => {
|
|
|
3232
3242
|
},
|
|
3233
3243
|
children: /* @__PURE__ */ s(Ve, { children: [
|
|
3234
3244
|
t.map((v, F) => {
|
|
3235
|
-
var
|
|
3236
|
-
const
|
|
3237
|
-
|
|
3245
|
+
var Ft, Et;
|
|
3246
|
+
const D = m > 0 && F < m, E = de[F] ?? 0, I = M(v), he = F === t.length - 1 && R && H, we = Q(v), be = !!v.sortable && !!we, Ce = be && (G == null ? void 0 : G.key) === we ? G.direction : null, tt = v.title || ((Ft = v.accessor) == null ? void 0 : Ft.toString()) || "", He = (Et = v.headerTooltip) != null && Et.showIcon ? /* @__PURE__ */ e(
|
|
3247
|
+
w,
|
|
3238
3248
|
{
|
|
3239
3249
|
name: "InfoCircle",
|
|
3240
3250
|
size: "xs",
|
|
@@ -3244,7 +3254,7 @@ const Rr = (t, r) => {
|
|
|
3244
3254
|
"button",
|
|
3245
3255
|
{
|
|
3246
3256
|
type: "button",
|
|
3247
|
-
onClick: () =>
|
|
3257
|
+
onClick: () => ee(v),
|
|
3248
3258
|
title: Ce === "asc" ? "Sorted ascending — click to sort descending" : Ce === "desc" ? "Sorted descending — click to clear" : "Click to sort ascending",
|
|
3249
3259
|
style: {
|
|
3250
3260
|
flex: 1,
|
|
@@ -3264,7 +3274,7 @@ const Rr = (t, r) => {
|
|
|
3264
3274
|
children: [
|
|
3265
3275
|
ze,
|
|
3266
3276
|
He,
|
|
3267
|
-
/* @__PURE__ */ e(
|
|
3277
|
+
/* @__PURE__ */ e(vi, { direction: Ce })
|
|
3268
3278
|
]
|
|
3269
3279
|
}
|
|
3270
3280
|
) : /* @__PURE__ */ s("span", { style: { flex: 1, minWidth: 0, display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
@@ -3272,17 +3282,17 @@ const Rr = (t, r) => {
|
|
|
3272
3282
|
He
|
|
3273
3283
|
] });
|
|
3274
3284
|
return /* @__PURE__ */ s(
|
|
3275
|
-
|
|
3285
|
+
Lt,
|
|
3276
3286
|
{
|
|
3277
3287
|
style: {
|
|
3278
3288
|
position: "sticky",
|
|
3279
3289
|
top: 0,
|
|
3280
|
-
left:
|
|
3281
|
-
zIndex:
|
|
3290
|
+
left: D ? E : void 0,
|
|
3291
|
+
zIndex: D ? 4 : 2,
|
|
3282
3292
|
paddingLeft: F === 0 ? "12px" : "",
|
|
3283
|
-
borderRight: d && !
|
|
3284
|
-
borderBottom: d ?
|
|
3285
|
-
boxShadow: d &&
|
|
3293
|
+
borderRight: d && !he && !D ? K : void 0,
|
|
3294
|
+
borderBottom: d ? K : void 0,
|
|
3295
|
+
boxShadow: d && D ? ye : void 0,
|
|
3286
3296
|
backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
|
|
3287
3297
|
textAlign: v.textAlign === "text-right" ? "right" : v.textAlign === "text-center" ? "center" : "left",
|
|
3288
3298
|
...p(F, v.width)
|
|
@@ -3301,7 +3311,7 @@ const Rr = (t, r) => {
|
|
|
3301
3311
|
children: [
|
|
3302
3312
|
v.headerTooltip ? /* @__PURE__ */ e(ue, { label: v.headerTooltip.content, position: "bottom", children: Me }) : Me,
|
|
3303
3313
|
v.filter && /* @__PURE__ */ e(
|
|
3304
|
-
|
|
3314
|
+
Ci,
|
|
3305
3315
|
{
|
|
3306
3316
|
filter: v.filter,
|
|
3307
3317
|
columnTitle: v.title
|
|
@@ -3311,7 +3321,7 @@ const Rr = (t, r) => {
|
|
|
3311
3321
|
"button",
|
|
3312
3322
|
{
|
|
3313
3323
|
onClick: () => je(F),
|
|
3314
|
-
title:
|
|
3324
|
+
title: D ? "Unfreeze column" : "Freeze column",
|
|
3315
3325
|
style: {
|
|
3316
3326
|
background: "none",
|
|
3317
3327
|
border: "none",
|
|
@@ -3320,20 +3330,20 @@ const Rr = (t, r) => {
|
|
|
3320
3330
|
display: "flex",
|
|
3321
3331
|
alignItems: "center",
|
|
3322
3332
|
flexShrink: 0,
|
|
3323
|
-
color:
|
|
3324
|
-
opacity:
|
|
3333
|
+
color: D ? "var(--sa-background-brand, #04254f)" : "var(--sa-text-subtle, #8c8f97)",
|
|
3334
|
+
opacity: D ? 1 : 0.45,
|
|
3325
3335
|
transition: "opacity 0.15s"
|
|
3326
3336
|
},
|
|
3327
|
-
children: /* @__PURE__ */ e(
|
|
3337
|
+
children: /* @__PURE__ */ e(bi, { frozen: D })
|
|
3328
3338
|
}
|
|
3329
3339
|
)
|
|
3330
3340
|
]
|
|
3331
3341
|
}
|
|
3332
3342
|
),
|
|
3333
|
-
|
|
3343
|
+
I && /* @__PURE__ */ e(
|
|
3334
3344
|
"div",
|
|
3335
3345
|
{
|
|
3336
|
-
onMouseDown: (rt) =>
|
|
3346
|
+
onMouseDown: (rt) => W(rt, F),
|
|
3337
3347
|
onClick: (rt) => rt.stopPropagation(),
|
|
3338
3348
|
role: "separator",
|
|
3339
3349
|
"aria-orientation": "vertical",
|
|
@@ -3357,7 +3367,7 @@ const Rr = (t, r) => {
|
|
|
3357
3367
|
);
|
|
3358
3368
|
}),
|
|
3359
3369
|
R ? /* @__PURE__ */ e(
|
|
3360
|
-
|
|
3370
|
+
Lt,
|
|
3361
3371
|
{
|
|
3362
3372
|
style: {
|
|
3363
3373
|
backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
|
|
@@ -3365,8 +3375,8 @@ const Rr = (t, r) => {
|
|
|
3365
3375
|
top: 0,
|
|
3366
3376
|
right: 0,
|
|
3367
3377
|
zIndex: 3,
|
|
3368
|
-
borderBottom: d ?
|
|
3369
|
-
boxShadow: d &&
|
|
3378
|
+
borderBottom: d ? K : void 0,
|
|
3379
|
+
boxShadow: d && H ? me : void 0
|
|
3370
3380
|
}
|
|
3371
3381
|
}
|
|
3372
3382
|
) : null
|
|
@@ -3387,53 +3397,53 @@ const Rr = (t, r) => {
|
|
|
3387
3397
|
padding: 0,
|
|
3388
3398
|
borderBottom: F === r.length - 1 && et ? void 0 : "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
3389
3399
|
},
|
|
3390
|
-
onMouseEnter: (
|
|
3391
|
-
const
|
|
3392
|
-
|
|
3393
|
-
|
|
3400
|
+
onMouseEnter: (D) => {
|
|
3401
|
+
const E = D.currentTarget;
|
|
3402
|
+
E.style.backgroundColor = jt, Array.from(E.querySelectorAll("td")).forEach((I) => {
|
|
3403
|
+
I.style.position === "sticky" && (I.style.backgroundColor = jt);
|
|
3394
3404
|
});
|
|
3395
3405
|
},
|
|
3396
|
-
onMouseLeave: (
|
|
3397
|
-
const
|
|
3398
|
-
|
|
3399
|
-
|
|
3406
|
+
onMouseLeave: (D) => {
|
|
3407
|
+
const E = D.currentTarget;
|
|
3408
|
+
E.style.backgroundColor = "", Array.from(E.querySelectorAll("td")).forEach((I) => {
|
|
3409
|
+
I.style.position === "sticky" && (I.style.backgroundColor = lt);
|
|
3400
3410
|
});
|
|
3401
3411
|
},
|
|
3402
3412
|
children: [
|
|
3403
|
-
t.map((
|
|
3404
|
-
const
|
|
3413
|
+
t.map((D, E) => {
|
|
3414
|
+
const I = D.render ? D.render(v, F, r) : Ne(v, D.accessor), re = m > 0 && E < m, he = de[E] ?? 0, we = Ae[E] !== void 0, be = re && E === m - 1;
|
|
3405
3415
|
return /* @__PURE__ */ e(
|
|
3406
3416
|
Se,
|
|
3407
3417
|
{
|
|
3408
3418
|
style: {
|
|
3409
|
-
position:
|
|
3410
|
-
left:
|
|
3411
|
-
zIndex:
|
|
3412
|
-
backgroundColor:
|
|
3413
|
-
transition:
|
|
3414
|
-
paddingLeft:
|
|
3419
|
+
position: re ? "sticky" : void 0,
|
|
3420
|
+
left: re ? he : void 0,
|
|
3421
|
+
zIndex: re ? 1 : void 0,
|
|
3422
|
+
backgroundColor: re ? lt : void 0,
|
|
3423
|
+
transition: re ? "background-color 0.3s ease" : void 0,
|
|
3424
|
+
paddingLeft: E === 0 ? "12px" : "",
|
|
3415
3425
|
whiteSpace: "nowrap",
|
|
3416
3426
|
overflow: we ? "hidden" : void 0,
|
|
3417
|
-
borderLeft:
|
|
3418
|
-
borderRight:
|
|
3419
|
-
boxShadow: be ?
|
|
3420
|
-
textAlign:
|
|
3421
|
-
...p(
|
|
3427
|
+
borderLeft: D.showBorderLeft ? K : void 0,
|
|
3428
|
+
borderRight: D.showBorderRight ? K : void 0,
|
|
3429
|
+
boxShadow: be ? ye : void 0,
|
|
3430
|
+
textAlign: D.textAlign === "text-right" ? "right" : D.textAlign === "text-center" ? "center" : "left",
|
|
3431
|
+
...p(E, D.width)
|
|
3422
3432
|
},
|
|
3423
|
-
children: typeof
|
|
3433
|
+
children: typeof I == "string" ? /* @__PURE__ */ e(
|
|
3424
3434
|
x,
|
|
3425
3435
|
{
|
|
3426
3436
|
style: {
|
|
3427
3437
|
whiteSpace: "nowrap",
|
|
3428
3438
|
overflow: "hidden",
|
|
3429
3439
|
textOverflow: "ellipsis",
|
|
3430
|
-
textAlign:
|
|
3440
|
+
textAlign: D.textAlign === "text-right" ? "right" : D.textAlign === "text-center" ? "center" : "left"
|
|
3431
3441
|
},
|
|
3432
|
-
children:
|
|
3442
|
+
children: I
|
|
3433
3443
|
}
|
|
3434
|
-
) :
|
|
3444
|
+
) : I
|
|
3435
3445
|
},
|
|
3436
|
-
`row-${F}-col-${
|
|
3446
|
+
`row-${F}-col-${E}`
|
|
3437
3447
|
);
|
|
3438
3448
|
}),
|
|
3439
3449
|
R ? /* @__PURE__ */ e(Se, { style: {
|
|
@@ -3442,58 +3452,58 @@ const Rr = (t, r) => {
|
|
|
3442
3452
|
right: 0,
|
|
3443
3453
|
zIndex: 1,
|
|
3444
3454
|
backgroundColor: lt,
|
|
3445
|
-
boxShadow:
|
|
3455
|
+
boxShadow: H ? me : void 0,
|
|
3446
3456
|
transition: "background-color 0.3s ease"
|
|
3447
|
-
}, children: /* @__PURE__ */ e(_, { direction: "row", align: "center", justify: "center", gap: "sm", children: S.map((
|
|
3448
|
-
const
|
|
3449
|
-
return
|
|
3457
|
+
}, children: /* @__PURE__ */ e(_, { direction: "row", align: "center", justify: "center", gap: "sm", children: S.map((D) => {
|
|
3458
|
+
const E = F === r.length - 1 ? "top" : "bottom";
|
|
3459
|
+
return D === "detail" && i && (u == null ? void 0 : u(v)) !== !1 ? /* @__PURE__ */ e(ue, { label: "Detail", position: E, children: /* @__PURE__ */ e(
|
|
3450
3460
|
N,
|
|
3451
3461
|
{
|
|
3452
3462
|
size: "xs",
|
|
3453
3463
|
variant: "outline",
|
|
3454
3464
|
tone: "neutral",
|
|
3455
3465
|
onClick: () => i(v.id, v),
|
|
3456
|
-
iconLeft: /* @__PURE__ */ e(
|
|
3466
|
+
iconLeft: /* @__PURE__ */ e(w, { name: "DocumentClean", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
3457
3467
|
}
|
|
3458
|
-
) }, "detail") :
|
|
3468
|
+
) }, "detail") : D === "update" && o && (a == null ? void 0 : a(v)) !== !1 ? /* @__PURE__ */ e(ue, { label: "Update", position: E, children: /* @__PURE__ */ e(
|
|
3459
3469
|
N,
|
|
3460
3470
|
{
|
|
3461
3471
|
size: "xs",
|
|
3462
3472
|
variant: "outline",
|
|
3463
3473
|
tone: "neutral",
|
|
3464
3474
|
onClick: () => o(v),
|
|
3465
|
-
iconLeft: /* @__PURE__ */ e(
|
|
3475
|
+
iconLeft: /* @__PURE__ */ e(w, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
3466
3476
|
}
|
|
3467
|
-
) }, "update") :
|
|
3477
|
+
) }, "update") : D === "delete" && n && (h == null ? void 0 : h(v)) !== !1 ? /* @__PURE__ */ e(ue, { label: "Delete", position: E, children: /* @__PURE__ */ e(
|
|
3468
3478
|
N,
|
|
3469
3479
|
{
|
|
3470
3480
|
size: "xs",
|
|
3471
3481
|
variant: "outline",
|
|
3472
3482
|
tone: "neutral",
|
|
3473
3483
|
onClick: () => n(v.id, v),
|
|
3474
|
-
iconLeft: /* @__PURE__ */ e(
|
|
3484
|
+
iconLeft: /* @__PURE__ */ e(w, { name: "Trash1", size: "sm", style: { color: "var(--sa-color-error-600, #c9184a)" } })
|
|
3475
3485
|
}
|
|
3476
|
-
) }, "delete") :
|
|
3486
|
+
) }, "delete") : D === "custom" ? /* @__PURE__ */ e(qe.Fragment, { children: b == null ? void 0 : b(v) }, "custom") : null;
|
|
3477
3487
|
}) }) }) : null
|
|
3478
3488
|
]
|
|
3479
3489
|
},
|
|
3480
3490
|
`${v}${F}`
|
|
3481
3491
|
)) })
|
|
3482
3492
|
] }) });
|
|
3483
|
-
},
|
|
3493
|
+
}, wi = ({
|
|
3484
3494
|
wrapperProps: t,
|
|
3485
3495
|
dataTableProps: r,
|
|
3486
3496
|
headerProps: i,
|
|
3487
3497
|
footerProps: o
|
|
3488
3498
|
}) => {
|
|
3489
3499
|
var m;
|
|
3490
|
-
const n =
|
|
3500
|
+
const n = ne(null), [l, h] = k(
|
|
3491
3501
|
(r == null ? void 0 : r.defaultFrozenCount) ?? 0
|
|
3492
|
-
), a = (i == null ? void 0 : i.show) ?? !0, u =
|
|
3502
|
+
), a = (i == null ? void 0 : i.show) ?? !0, u = ne(null), d = (m = r == null ? void 0 : r.pagination) == null ? void 0 : m.totalData;
|
|
3493
3503
|
typeof d == "number" && (u.current = d);
|
|
3494
3504
|
const g = (o == null ? void 0 : o.showFooter) ?? (d === void 0 ? u.current !== 0 : d !== 0);
|
|
3495
|
-
return /* @__PURE__ */ s(
|
|
3496
|
-
a && /* @__PURE__ */ e(
|
|
3505
|
+
return /* @__PURE__ */ s(mi, { ...t, children: [
|
|
3506
|
+
a && /* @__PURE__ */ e(yi, { ...i }),
|
|
3497
3507
|
/* @__PURE__ */ e(
|
|
3498
3508
|
f,
|
|
3499
3509
|
{
|
|
@@ -3504,7 +3514,7 @@ const Rr = (t, r) => {
|
|
|
3504
3514
|
overflowX: "auto"
|
|
3505
3515
|
},
|
|
3506
3516
|
children: r ? /* @__PURE__ */ e(
|
|
3507
|
-
|
|
3517
|
+
Di,
|
|
3508
3518
|
{
|
|
3509
3519
|
...r,
|
|
3510
3520
|
scrollParentRef: n,
|
|
@@ -3515,7 +3525,7 @@ const Rr = (t, r) => {
|
|
|
3515
3525
|
}
|
|
3516
3526
|
),
|
|
3517
3527
|
g && /* @__PURE__ */ e(
|
|
3518
|
-
|
|
3528
|
+
xi,
|
|
3519
3529
|
{
|
|
3520
3530
|
pagination: r == null ? void 0 : r.pagination,
|
|
3521
3531
|
pageKey: r == null ? void 0 : r.pageKey,
|
|
@@ -3527,12 +3537,12 @@ const Rr = (t, r) => {
|
|
|
3527
3537
|
)
|
|
3528
3538
|
] });
|
|
3529
3539
|
};
|
|
3530
|
-
function
|
|
3531
|
-
return
|
|
3540
|
+
function ki(t) {
|
|
3541
|
+
return ge(
|
|
3532
3542
|
t
|
|
3533
3543
|
);
|
|
3534
3544
|
}
|
|
3535
|
-
const
|
|
3545
|
+
const Kn = ki(wi), bt = ({
|
|
3536
3546
|
of: t,
|
|
3537
3547
|
render: r
|
|
3538
3548
|
}) => Cr.toArray(t == null ? void 0 : t.map((i, o, n) => r(i, o, n))), O = ({
|
|
@@ -3551,7 +3561,7 @@ const eo = Si(ki), vt = ({
|
|
|
3551
3561
|
color: t.color || "gray-700",
|
|
3552
3562
|
children: t.children
|
|
3553
3563
|
}
|
|
3554
|
-
), De = (t) => /* @__PURE__ */ e(x, { color: "red-600", fontSize: "sm", children: t.message }),
|
|
3564
|
+
), De = (t) => /* @__PURE__ */ e(x, { color: "red-600", fontSize: "sm", children: t.message }), Si = ({
|
|
3555
3565
|
size: t = "md",
|
|
3556
3566
|
direction: r = "vertical",
|
|
3557
3567
|
requiredTitle: i = "(Required)",
|
|
@@ -3600,7 +3610,7 @@ const eo = Si(ki), vt = ({
|
|
|
3600
3610
|
arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
|
|
3601
3611
|
...n.tooltip,
|
|
3602
3612
|
children: /* @__PURE__ */ e(
|
|
3603
|
-
|
|
3613
|
+
w,
|
|
3604
3614
|
{
|
|
3605
3615
|
name: "InfoCircle",
|
|
3606
3616
|
size: t === "lg" ? "sm" : "xs",
|
|
@@ -3636,7 +3646,7 @@ const eo = Si(ki), vt = ({
|
|
|
3636
3646
|
]
|
|
3637
3647
|
}
|
|
3638
3648
|
);
|
|
3639
|
-
},
|
|
3649
|
+
}, Fi = ({
|
|
3640
3650
|
size: t = "md",
|
|
3641
3651
|
direction: r = "vertical",
|
|
3642
3652
|
requiredTitle: i = "(Required)",
|
|
@@ -3685,7 +3695,7 @@ const eo = Si(ki), vt = ({
|
|
|
3685
3695
|
arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
|
|
3686
3696
|
...n.tooltip,
|
|
3687
3697
|
children: /* @__PURE__ */ e(
|
|
3688
|
-
|
|
3698
|
+
w,
|
|
3689
3699
|
{
|
|
3690
3700
|
name: "InfoCircle",
|
|
3691
3701
|
size: t === "lg" ? "sm" : "xs",
|
|
@@ -3727,7 +3737,7 @@ const eo = Si(ki), vt = ({
|
|
|
3727
3737
|
]
|
|
3728
3738
|
}
|
|
3729
3739
|
);
|
|
3730
|
-
},
|
|
3740
|
+
}, Ei = (t, r) => typeof t == "string" && t || r === "error" ? "var(--sa-border-danger)" : "var(--sa-border-subtle)", Mi = (t) => {
|
|
3731
3741
|
var a;
|
|
3732
3742
|
const [r, i] = k(!1), o = (u) => {
|
|
3733
3743
|
u.preventDefault(), u.stopPropagation();
|
|
@@ -3754,11 +3764,11 @@ const eo = Si(ki), vt = ({
|
|
|
3754
3764
|
paddingBlock: "md",
|
|
3755
3765
|
borderRadius: "rounded-md",
|
|
3756
3766
|
style: {
|
|
3757
|
-
border: r ? "1px solid var(--sa-border-info)" : `1px solid ${
|
|
3767
|
+
border: r ? "1px solid var(--sa-border-info)" : `1px solid ${Ei(t.errorMessage, t.status)}`
|
|
3758
3768
|
},
|
|
3759
3769
|
children: [
|
|
3760
3770
|
/* @__PURE__ */ e(
|
|
3761
|
-
|
|
3771
|
+
w,
|
|
3762
3772
|
{
|
|
3763
3773
|
name: "Upload",
|
|
3764
3774
|
size: "lg",
|
|
@@ -3796,17 +3806,17 @@ const eo = Si(ki), vt = ({
|
|
|
3796
3806
|
}
|
|
3797
3807
|
);
|
|
3798
3808
|
};
|
|
3799
|
-
function
|
|
3809
|
+
function eo(t) {
|
|
3800
3810
|
return t.split(" ").map((r) => r[0]).join("").slice(0, 2).toUpperCase();
|
|
3801
3811
|
}
|
|
3802
|
-
const
|
|
3812
|
+
const Li = (t) => {
|
|
3803
3813
|
const r = {
|
|
3804
3814
|
day: "2-digit",
|
|
3805
3815
|
month: "short",
|
|
3806
3816
|
year: "numeric"
|
|
3807
3817
|
};
|
|
3808
3818
|
return t.toLocaleDateString("id-ID", r);
|
|
3809
|
-
},
|
|
3819
|
+
}, to = (t) => {
|
|
3810
3820
|
const r = {
|
|
3811
3821
|
Jan: 0,
|
|
3812
3822
|
Feb: 1,
|
|
@@ -3826,7 +3836,7 @@ const Wi = (t) => {
|
|
|
3826
3836
|
const o = parseInt(i[0], 10), n = r[i[1]], l = parseInt(i[2], 10);
|
|
3827
3837
|
return isNaN(o) || isNaN(n) || isNaN(l) ? null : new Date(l, n, o);
|
|
3828
3838
|
};
|
|
3829
|
-
function
|
|
3839
|
+
function ro(t, r = !0) {
|
|
3830
3840
|
if (!t)
|
|
3831
3841
|
return "Rp 0";
|
|
3832
3842
|
const i = typeof t == "number" ? t.toString() : t;
|
|
@@ -3841,52 +3851,52 @@ String.prototype.toTitleCase = function() {
|
|
|
3841
3851
|
String.prototype.toNumber = function() {
|
|
3842
3852
|
return Number(this);
|
|
3843
3853
|
};
|
|
3844
|
-
const
|
|
3854
|
+
const io = (t) => {
|
|
3845
3855
|
const r = t.split(" ");
|
|
3846
3856
|
let i = r[0].charAt(0);
|
|
3847
3857
|
return r.length > 1 && (i += "" + r[1].charAt(0)), i.toUpperCase();
|
|
3848
3858
|
};
|
|
3849
|
-
function
|
|
3859
|
+
function no(t) {
|
|
3850
3860
|
const r = typeof t == "string" ? new Date(t) : t;
|
|
3851
3861
|
if (isNaN(r.getTime()))
|
|
3852
3862
|
throw new Error("Invalid date format");
|
|
3853
3863
|
const i = r.getFullYear(), o = String(r.getMonth() + 1).padStart(2, "0"), n = String(r.getDate()).padStart(2, "0");
|
|
3854
3864
|
return `${i}-${o}-${n}`;
|
|
3855
3865
|
}
|
|
3856
|
-
const
|
|
3866
|
+
const Wi = "sa-admin", pe = (t) => `var(--${Wi}-${t})`, oo = {
|
|
3857
3867
|
base: {
|
|
3858
|
-
borderColor:
|
|
3859
|
-
textColor:
|
|
3860
|
-
iconColor:
|
|
3861
|
-
placeholderColor:
|
|
3868
|
+
borderColor: pe("base-border-color"),
|
|
3869
|
+
textColor: pe("base-text-color"),
|
|
3870
|
+
iconColor: pe("base-icon-color"),
|
|
3871
|
+
placeholderColor: pe("base-placeholder-color")
|
|
3862
3872
|
},
|
|
3863
3873
|
document: {
|
|
3864
|
-
bgColor:
|
|
3874
|
+
bgColor: pe("document-bg-color")
|
|
3865
3875
|
},
|
|
3866
3876
|
sidebar: {
|
|
3867
|
-
bgColor:
|
|
3868
|
-
borderColor:
|
|
3869
|
-
maxWidth:
|
|
3870
|
-
width:
|
|
3871
|
-
collapseWidth:
|
|
3872
|
-
collapseV2Width:
|
|
3877
|
+
bgColor: pe("sidebar-bg-color"),
|
|
3878
|
+
borderColor: pe("sidebar-border-color"),
|
|
3879
|
+
maxWidth: pe("sidebar-max-width"),
|
|
3880
|
+
width: pe("sidebar-width"),
|
|
3881
|
+
collapseWidth: pe("sidebar-collapse-width"),
|
|
3882
|
+
collapseV2Width: pe("sidebar-v2-collapse-width")
|
|
3873
3883
|
}
|
|
3874
|
-
},
|
|
3884
|
+
}, lo = 24 * 60 * 60 * 1e3, co = (t) => {
|
|
3875
3885
|
const r = "14px poppins", o = document.createElement("canvas").getContext("2d");
|
|
3876
3886
|
o.font = r;
|
|
3877
3887
|
const n = o.measureText(t).width;
|
|
3878
3888
|
return Number(Math.ceil(n));
|
|
3879
|
-
},
|
|
3880
|
-
function
|
|
3889
|
+
}, Bi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, Ii = /--+/, Ai = /-$/;
|
|
3890
|
+
function ao(t, r) {
|
|
3881
3891
|
return JSON.stringify(t) !== JSON.stringify(r);
|
|
3882
3892
|
}
|
|
3883
|
-
function
|
|
3893
|
+
function so(t) {
|
|
3884
3894
|
return /^(?:\+62|62|0)8[1-9][0-9]{7,10}$/.test(t);
|
|
3885
3895
|
}
|
|
3886
|
-
function
|
|
3896
|
+
function ho(t) {
|
|
3887
3897
|
return /^[A-Za-z\s]+$/.test(t);
|
|
3888
3898
|
}
|
|
3889
|
-
const
|
|
3899
|
+
const uo = (t) => {
|
|
3890
3900
|
const r = /^[0-9]$/, i = [
|
|
3891
3901
|
"ArrowLeft",
|
|
3892
3902
|
"ArrowRight",
|
|
@@ -3898,7 +3908,7 @@ const fo = (t) => {
|
|
|
3898
3908
|
"Tab"
|
|
3899
3909
|
];
|
|
3900
3910
|
(t.ctrlKey || t.metaKey) && (t.key === "a" || t.key === "c" || t.key === "v") || !r.test(t.key) && !i.includes(t.key) && t.preventDefault();
|
|
3901
|
-
},
|
|
3911
|
+
}, fo = (t) => {
|
|
3902
3912
|
const r = /^[0-9]$/, i = [
|
|
3903
3913
|
"ArrowLeft",
|
|
3904
3914
|
"ArrowRight",
|
|
@@ -3910,7 +3920,7 @@ const fo = (t) => {
|
|
|
3910
3920
|
"Tab"
|
|
3911
3921
|
];
|
|
3912
3922
|
(t.ctrlKey || t.metaKey) && t.key === "v" || r.test(t.key) && !i.includes(t.key) && t.preventDefault();
|
|
3913
|
-
},
|
|
3923
|
+
}, go = (t) => {
|
|
3914
3924
|
const r = /^[0-9.]$/, i = [
|
|
3915
3925
|
"ArrowLeft",
|
|
3916
3926
|
"ArrowRight",
|
|
@@ -3922,11 +3932,11 @@ const fo = (t) => {
|
|
|
3922
3932
|
"Tab"
|
|
3923
3933
|
];
|
|
3924
3934
|
(t.ctrlKey || t.metaKey) && t.key === "v" || !r.test(t.key) && !i.includes(t.key) && t.preventDefault();
|
|
3925
|
-
},
|
|
3926
|
-
function
|
|
3927
|
-
return !(
|
|
3935
|
+
}, mo = (t) => Bi.test(t);
|
|
3936
|
+
function yo(t) {
|
|
3937
|
+
return !(Ii.test(t) || Ai.test(t));
|
|
3928
3938
|
}
|
|
3929
|
-
const
|
|
3939
|
+
const po = (t) => {
|
|
3930
3940
|
const r = [
|
|
3931
3941
|
"ArrowLeft",
|
|
3932
3942
|
"ArrowRight",
|
|
@@ -3943,7 +3953,7 @@ const xo = (t) => {
|
|
|
3943
3953
|
return;
|
|
3944
3954
|
const i = t.currentTarget.value;
|
|
3945
3955
|
/^[0-9]$/.test(t.key) || t.key === "." && !i.includes(".") || t.key === "-" && i.length === 0 && !i.includes("-") || r.includes(t.key) || t.preventDefault();
|
|
3946
|
-
},
|
|
3956
|
+
}, xo = (t) => {
|
|
3947
3957
|
const r = document.getElementById(t);
|
|
3948
3958
|
if (r) {
|
|
3949
3959
|
const i = r.getBoundingClientRect(), o = window.scrollY + i.top - 80;
|
|
@@ -3953,7 +3963,7 @@ const xo = (t) => {
|
|
|
3953
3963
|
});
|
|
3954
3964
|
}
|
|
3955
3965
|
};
|
|
3956
|
-
function
|
|
3966
|
+
function Hi(t) {
|
|
3957
3967
|
const r = t.toLowerCase();
|
|
3958
3968
|
if (["kb", "mb", "gb"].find((l) => r.endsWith(l)))
|
|
3959
3969
|
return t;
|
|
@@ -3962,11 +3972,11 @@ function zi(t) {
|
|
|
3962
3972
|
throw new Error("Invalid size format");
|
|
3963
3973
|
return n >= 1e6 ? `${(n / 1e6).toFixed(2)}MB` : n >= 1e3 ? `${(n / 1e3).toFixed(2)}KB` : `${n}B`;
|
|
3964
3974
|
}
|
|
3965
|
-
function
|
|
3975
|
+
function zi(t) {
|
|
3966
3976
|
const r = t.split("/");
|
|
3967
3977
|
return r[r.length - 1];
|
|
3968
3978
|
}
|
|
3969
|
-
const
|
|
3979
|
+
const Ri = (t) => {
|
|
3970
3980
|
var r, i;
|
|
3971
3981
|
return /* @__PURE__ */ s(
|
|
3972
3982
|
f,
|
|
@@ -3989,7 +3999,7 @@ const Vi = (t) => {
|
|
|
3989
3999
|
children: [
|
|
3990
4000
|
/* @__PURE__ */ s(_, { direction: "row", align: "center", gap: "sm", style: { flex: 1, minWidth: 0 }, children: [
|
|
3991
4001
|
/* @__PURE__ */ e(
|
|
3992
|
-
|
|
4002
|
+
w,
|
|
3993
4003
|
{
|
|
3994
4004
|
name: "DocumentFilled",
|
|
3995
4005
|
size: "lg",
|
|
@@ -4011,17 +4021,17 @@ const Vi = (t) => {
|
|
|
4011
4021
|
whiteSpace: "nowrap",
|
|
4012
4022
|
overflow: "hidden"
|
|
4013
4023
|
},
|
|
4014
|
-
children: t.defaultFile ?
|
|
4024
|
+
children: t.defaultFile ? zi(t.defaultFile.url) : (r = t.fileSelected) == null ? void 0 : r.name
|
|
4015
4025
|
}
|
|
4016
4026
|
),
|
|
4017
4027
|
t.defaultFile ? (t.defaultFile.size || t.defaultFile.date) && /* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4018
4028
|
t.defaultFile.size && /* @__PURE__ */ e(x, { fontSize: "sm", fontWeight: "medium", children: t.defaultFile.size }),
|
|
4019
|
-
t.defaultFile.size && t.defaultFile.date && /* @__PURE__ */ e(
|
|
4029
|
+
t.defaultFile.size && t.defaultFile.date && /* @__PURE__ */ e(w, { name: "Dot", size: "xs" }),
|
|
4020
4030
|
t.defaultFile.date && /* @__PURE__ */ e(x, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: t.defaultFile.date })
|
|
4021
4031
|
] }) : /* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4022
|
-
/* @__PURE__ */ e(x, { fontSize: "sm", fontWeight: "medium", children:
|
|
4023
|
-
/* @__PURE__ */ e(
|
|
4024
|
-
/* @__PURE__ */ e(x, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children:
|
|
4032
|
+
/* @__PURE__ */ e(x, { fontSize: "sm", fontWeight: "medium", children: Hi(((i = t.fileSelected) == null ? void 0 : i.size.toString()) || "100000") }),
|
|
4033
|
+
/* @__PURE__ */ e(w, { name: "Dot", size: "xs" }),
|
|
4034
|
+
/* @__PURE__ */ e(x, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: Li(/* @__PURE__ */ new Date()) })
|
|
4025
4035
|
] })
|
|
4026
4036
|
] })
|
|
4027
4037
|
] }),
|
|
@@ -4035,25 +4045,25 @@ const Vi = (t) => {
|
|
|
4035
4045
|
onClick: (o) => {
|
|
4036
4046
|
o.stopPropagation(), t.handleOnDeleteFile();
|
|
4037
4047
|
},
|
|
4038
|
-
iconLeft: /* @__PURE__ */ e(
|
|
4048
|
+
iconLeft: /* @__PURE__ */ e(w, { name: "Trash1" })
|
|
4039
4049
|
}
|
|
4040
4050
|
)
|
|
4041
4051
|
]
|
|
4042
4052
|
}
|
|
4043
4053
|
);
|
|
4044
|
-
},
|
|
4054
|
+
}, Vi = ({
|
|
4045
4055
|
status: t = "default",
|
|
4046
4056
|
labelPosition: r = "outside-top",
|
|
4047
4057
|
...i
|
|
4048
4058
|
}) => {
|
|
4049
4059
|
var y;
|
|
4050
|
-
const o =
|
|
4060
|
+
const o = ne(null), n = () => {
|
|
4051
4061
|
if (i.defaultFile) {
|
|
4052
4062
|
window.open(i.defaultFile.url);
|
|
4053
4063
|
return;
|
|
4054
4064
|
}
|
|
4055
4065
|
o.current && o.current.click();
|
|
4056
|
-
}, l =
|
|
4066
|
+
}, l = oe("md"), h = t === "error" || typeof i.errorMessage == "string" && !!i.errorMessage, a = i.label ? /* @__PURE__ */ s(_, { direction: "row", align: "center", gap: "xs", children: [
|
|
4057
4067
|
/* @__PURE__ */ e(x, { style: { fontSize: "14px", fontWeight: 500, color: "var(--sa-text-primary)" }, children: i.label }),
|
|
4058
4068
|
i.optional && /* @__PURE__ */ e("span", { style: {
|
|
4059
4069
|
background: "var(--sa-background-neutral)",
|
|
@@ -4099,7 +4109,7 @@ const Vi = (t) => {
|
|
|
4099
4109
|
children: [
|
|
4100
4110
|
g,
|
|
4101
4111
|
(i.fileSelected || i.defaultFile) && /* @__PURE__ */ e(
|
|
4102
|
-
|
|
4112
|
+
Ri,
|
|
4103
4113
|
{
|
|
4104
4114
|
fileSelected: i.fileSelected,
|
|
4105
4115
|
defaultFile: i.defaultFile,
|
|
@@ -4108,7 +4118,7 @@ const Vi = (t) => {
|
|
|
4108
4118
|
}
|
|
4109
4119
|
),
|
|
4110
4120
|
!i.fileSelected && !i.defaultFile && /* @__PURE__ */ e(
|
|
4111
|
-
|
|
4121
|
+
Mi,
|
|
4112
4122
|
{
|
|
4113
4123
|
fileSupports: i.fileSupportOption,
|
|
4114
4124
|
isDesktop: l,
|
|
@@ -4121,7 +4131,7 @@ const Vi = (t) => {
|
|
|
4121
4131
|
]
|
|
4122
4132
|
}
|
|
4123
4133
|
);
|
|
4124
|
-
return r === "outside-left" ? /* @__PURE__ */ s(_, { direction: "row", align: "flex-start", gap: "sm",
|
|
4134
|
+
return r === "outside-left" ? /* @__PURE__ */ s(_, { direction: "row", align: "flex-start", gap: "sm", style: { width: "100%" }, children: [
|
|
4125
4135
|
/* @__PURE__ */ s(_, { direction: "column", gap: "xs", style: { width: "40%", minWidth: "120px", paddingTop: "10px" }, children: [
|
|
4126
4136
|
a,
|
|
4127
4137
|
u
|
|
@@ -4130,13 +4140,13 @@ const Vi = (t) => {
|
|
|
4130
4140
|
m,
|
|
4131
4141
|
d
|
|
4132
4142
|
] })
|
|
4133
|
-
] }) : /* @__PURE__ */ s(_, { direction: "column", gap: "sm",
|
|
4143
|
+
] }) : /* @__PURE__ */ s(_, { direction: "column", gap: "sm", style: { width: "100%" }, children: [
|
|
4134
4144
|
a,
|
|
4135
4145
|
u,
|
|
4136
4146
|
m,
|
|
4137
4147
|
d
|
|
4138
4148
|
] });
|
|
4139
|
-
},
|
|
4149
|
+
}, Ti = ({
|
|
4140
4150
|
size: t = "md",
|
|
4141
4151
|
direction: r = "vertical",
|
|
4142
4152
|
requiredTitle: i = "(Required)",
|
|
@@ -4185,7 +4195,7 @@ const Vi = (t) => {
|
|
|
4185
4195
|
arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
|
|
4186
4196
|
...n.tooltip,
|
|
4187
4197
|
children: /* @__PURE__ */ e(
|
|
4188
|
-
|
|
4198
|
+
w,
|
|
4189
4199
|
{
|
|
4190
4200
|
name: "InfoCircle",
|
|
4191
4201
|
size: t === "lg" ? "sm" : "xs",
|
|
@@ -4206,7 +4216,7 @@ const Vi = (t) => {
|
|
|
4206
4216
|
),
|
|
4207
4217
|
/* @__PURE__ */ s(_, { direction: "column", gap: "xs", children: [
|
|
4208
4218
|
/* @__PURE__ */ e(
|
|
4209
|
-
|
|
4219
|
+
Vi,
|
|
4210
4220
|
{
|
|
4211
4221
|
...n.inputProps,
|
|
4212
4222
|
status: n.errorMessage ? "error" : "default"
|
|
@@ -4217,7 +4227,7 @@ const Vi = (t) => {
|
|
|
4217
4227
|
]
|
|
4218
4228
|
}
|
|
4219
4229
|
);
|
|
4220
|
-
},
|
|
4230
|
+
}, Ni = ({
|
|
4221
4231
|
size: t = "md",
|
|
4222
4232
|
direction: r = "vertical",
|
|
4223
4233
|
requiredTitle: i = "(Required)",
|
|
@@ -4246,7 +4256,7 @@ const Vi = (t) => {
|
|
|
4246
4256
|
fullWidth: o,
|
|
4247
4257
|
children: [
|
|
4248
4258
|
/* @__PURE__ */ e(j, { children: l.title }),
|
|
4249
|
-
/* @__PURE__ */ e(
|
|
4259
|
+
/* @__PURE__ */ e(xe.Body3, { props: { color: "gray-500" }, children: l.description })
|
|
4250
4260
|
]
|
|
4251
4261
|
}
|
|
4252
4262
|
),
|
|
@@ -4267,7 +4277,7 @@ const Vi = (t) => {
|
|
|
4267
4277
|
arrowPosition: (g = l.tooltip) == null ? void 0 : g.arrowPosition,
|
|
4268
4278
|
...l.tooltip,
|
|
4269
4279
|
children: /* @__PURE__ */ e(
|
|
4270
|
-
|
|
4280
|
+
w,
|
|
4271
4281
|
{
|
|
4272
4282
|
name: "InfoCircle",
|
|
4273
4283
|
size: t === "lg" ? "sm" : "xs",
|
|
@@ -4293,7 +4303,7 @@ const Vi = (t) => {
|
|
|
4293
4303
|
direction: r === "horizontal-inline" ? "row" : "column",
|
|
4294
4304
|
align: "flex-start",
|
|
4295
4305
|
children: /* @__PURE__ */ e(
|
|
4296
|
-
|
|
4306
|
+
bt,
|
|
4297
4307
|
{
|
|
4298
4308
|
of: (m = l.checkBoxesList) == null ? void 0 : m.map((y) => ({
|
|
4299
4309
|
...y,
|
|
@@ -4340,7 +4350,7 @@ const Vi = (t) => {
|
|
|
4340
4350
|
]
|
|
4341
4351
|
}
|
|
4342
4352
|
);
|
|
4343
|
-
},
|
|
4353
|
+
}, Oi = ({
|
|
4344
4354
|
position: t = "vertical",
|
|
4345
4355
|
size: r = "md",
|
|
4346
4356
|
fullWidth: i = !1,
|
|
@@ -4374,7 +4384,7 @@ const Vi = (t) => {
|
|
|
4374
4384
|
align: "flex-start",
|
|
4375
4385
|
flexWrap: "wrap",
|
|
4376
4386
|
children: /* @__PURE__ */ e(
|
|
4377
|
-
|
|
4387
|
+
bt,
|
|
4378
4388
|
{
|
|
4379
4389
|
of: (l = o.radioList) == null ? void 0 : l.map((h) => ({
|
|
4380
4390
|
...h,
|
|
@@ -4418,7 +4428,7 @@ const Vi = (t) => {
|
|
|
4418
4428
|
]
|
|
4419
4429
|
}
|
|
4420
4430
|
);
|
|
4421
|
-
},
|
|
4431
|
+
}, _i = ({
|
|
4422
4432
|
size: t = "md",
|
|
4423
4433
|
direction: r = "vertical",
|
|
4424
4434
|
requiredTitle: i = "(Required)",
|
|
@@ -4467,7 +4477,7 @@ const Vi = (t) => {
|
|
|
4467
4477
|
arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
|
|
4468
4478
|
...n.tooltip,
|
|
4469
4479
|
children: /* @__PURE__ */ e(
|
|
4470
|
-
|
|
4480
|
+
w,
|
|
4471
4481
|
{
|
|
4472
4482
|
name: "InfoCircle",
|
|
4473
4483
|
size: t === "lg" ? "sm" : "xs",
|
|
@@ -4501,7 +4511,7 @@ const Vi = (t) => {
|
|
|
4501
4511
|
]
|
|
4502
4512
|
}
|
|
4503
4513
|
);
|
|
4504
|
-
},
|
|
4514
|
+
}, ji = ({
|
|
4505
4515
|
size: t = "md",
|
|
4506
4516
|
direction: r = "vertical",
|
|
4507
4517
|
requiredTitle: i = "(Required)",
|
|
@@ -4551,7 +4561,7 @@ const Vi = (t) => {
|
|
|
4551
4561
|
arrowPosition: (d = l.tooltip) == null ? void 0 : d.arrowPosition,
|
|
4552
4562
|
...l.tooltip,
|
|
4553
4563
|
children: /* @__PURE__ */ e(
|
|
4554
|
-
|
|
4564
|
+
w,
|
|
4555
4565
|
{
|
|
4556
4566
|
name: "InfoCircle",
|
|
4557
4567
|
size: t === "lg" ? "sm" : "xs",
|
|
@@ -4571,7 +4581,7 @@ const Vi = (t) => {
|
|
|
4571
4581
|
}
|
|
4572
4582
|
),
|
|
4573
4583
|
/* @__PURE__ */ e(
|
|
4574
|
-
|
|
4584
|
+
Qt,
|
|
4575
4585
|
{
|
|
4576
4586
|
checked: l.checked,
|
|
4577
4587
|
onChange: l.onChange,
|
|
@@ -4583,7 +4593,7 @@ const Vi = (t) => {
|
|
|
4583
4593
|
]
|
|
4584
4594
|
}
|
|
4585
4595
|
);
|
|
4586
|
-
},
|
|
4596
|
+
}, Zi = ({
|
|
4587
4597
|
variant: t = "primary",
|
|
4588
4598
|
size: r = "md",
|
|
4589
4599
|
...i
|
|
@@ -4592,7 +4602,7 @@ const Vi = (t) => {
|
|
|
4592
4602
|
var u, d, g, m, y, b;
|
|
4593
4603
|
if (!h) return;
|
|
4594
4604
|
const a = i.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (d = (u = o == null ? void 0 : o.computed) == null ? void 0 : u.red) == null ? void 0 : d[600] : t === "secondary-primary" ? (m = (g = o == null ? void 0 : o.computed) == null ? void 0 : g.blue) == null ? void 0 : m[700] : (b = (y = o == null ? void 0 : o.computed) == null ? void 0 : y.gray) == null ? void 0 : b[50];
|
|
4595
|
-
return /* @__PURE__ */ e(
|
|
4605
|
+
return /* @__PURE__ */ e(w, { name: h, size: r, style: { color: a } });
|
|
4596
4606
|
}, l = () => {
|
|
4597
4607
|
var a, u, d, g;
|
|
4598
4608
|
if (t !== "secondary-danger" && t !== "secondary-primary")
|
|
@@ -4602,12 +4612,12 @@ const Vi = (t) => {
|
|
|
4602
4612
|
};
|
|
4603
4613
|
switch (r) {
|
|
4604
4614
|
case "xs":
|
|
4605
|
-
return /* @__PURE__ */ e(
|
|
4615
|
+
return /* @__PURE__ */ e(xe.Body2, { props: { style: h }, children: i.title });
|
|
4606
4616
|
case "sm":
|
|
4607
4617
|
case "md":
|
|
4608
|
-
return /* @__PURE__ */ e(
|
|
4618
|
+
return /* @__PURE__ */ e(xe.SubH3, { props: { style: h }, children: i.title });
|
|
4609
4619
|
case "lg":
|
|
4610
|
-
return /* @__PURE__ */ e(
|
|
4620
|
+
return /* @__PURE__ */ e(xe.SubH2, { props: { style: h }, children: i.title });
|
|
4611
4621
|
default:
|
|
4612
4622
|
return i.title;
|
|
4613
4623
|
}
|
|
@@ -4628,15 +4638,15 @@ const Vi = (t) => {
|
|
|
4628
4638
|
children: l()
|
|
4629
4639
|
}
|
|
4630
4640
|
);
|
|
4631
|
-
},
|
|
4632
|
-
|
|
4641
|
+
}, $i = (t) => /* @__PURE__ */ e(
|
|
4642
|
+
xe.H5,
|
|
4633
4643
|
{
|
|
4634
4644
|
props: {
|
|
4635
4645
|
...t
|
|
4636
4646
|
},
|
|
4637
4647
|
children: t.title
|
|
4638
4648
|
}
|
|
4639
|
-
),
|
|
4649
|
+
), Gi = ({
|
|
4640
4650
|
size: t = "md",
|
|
4641
4651
|
direction: r = "vertical",
|
|
4642
4652
|
requiredTitle: i = "(Required)",
|
|
@@ -4685,7 +4695,7 @@ const Vi = (t) => {
|
|
|
4685
4695
|
arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
|
|
4686
4696
|
...n.tooltip,
|
|
4687
4697
|
children: /* @__PURE__ */ e(
|
|
4688
|
-
|
|
4698
|
+
w,
|
|
4689
4699
|
{
|
|
4690
4700
|
name: "InfoCircle",
|
|
4691
4701
|
size: t === "lg" ? "sm" : "xs",
|
|
@@ -4727,7 +4737,7 @@ const Vi = (t) => {
|
|
|
4727
4737
|
}
|
|
4728
4738
|
);
|
|
4729
4739
|
};
|
|
4730
|
-
async function
|
|
4740
|
+
async function qi(t, r) {
|
|
4731
4741
|
const i = new Image();
|
|
4732
4742
|
i.src = t, await new Promise((l, h) => {
|
|
4733
4743
|
i.onload = l, i.onerror = h;
|
|
@@ -4754,7 +4764,7 @@ async function Ui(t, r) {
|
|
|
4754
4764
|
}, "image/png");
|
|
4755
4765
|
});
|
|
4756
4766
|
}
|
|
4757
|
-
const
|
|
4767
|
+
const Zt = {
|
|
4758
4768
|
"1:1": 1,
|
|
4759
4769
|
"4:3": 4 / 3,
|
|
4760
4770
|
"16:9": 16 / 9,
|
|
@@ -4763,7 +4773,7 @@ const jt = {
|
|
|
4763
4773
|
"2:3": 2 / 3,
|
|
4764
4774
|
"3:2": 3 / 2,
|
|
4765
4775
|
"32:9": 32 / 9
|
|
4766
|
-
},
|
|
4776
|
+
}, Ui = yt(
|
|
4767
4777
|
({
|
|
4768
4778
|
handleUpload: t,
|
|
4769
4779
|
urlImage: r,
|
|
@@ -4776,27 +4786,27 @@ const jt = {
|
|
|
4776
4786
|
maxFileSize: u = 2,
|
|
4777
4787
|
onError: d
|
|
4778
4788
|
}, g) => {
|
|
4779
|
-
const m =
|
|
4789
|
+
const m = oe("md"), [y, b] = k(!1), [S, C] = k(null), [z, Z] = k(!1), [T, U] = k({ x: 0, y: 0 }), [L, ae] = k(1), [J, H] = k(null);
|
|
4780
4790
|
$(() => {
|
|
4781
4791
|
r === null && n(null);
|
|
4782
4792
|
}, [r]);
|
|
4783
4793
|
const P = ve(
|
|
4784
4794
|
(R, V) => {
|
|
4785
|
-
|
|
4795
|
+
H(V);
|
|
4786
4796
|
},
|
|
4787
4797
|
[]
|
|
4788
|
-
),
|
|
4789
|
-
var
|
|
4790
|
-
const V = (
|
|
4798
|
+
), le = (R) => {
|
|
4799
|
+
var me;
|
|
4800
|
+
const V = (me = R.target.files) == null ? void 0 : me[0];
|
|
4791
4801
|
if (!V) return;
|
|
4792
|
-
const
|
|
4793
|
-
|
|
4794
|
-
C(
|
|
4795
|
-
},
|
|
4796
|
-
},
|
|
4802
|
+
const K = new FileReader();
|
|
4803
|
+
K.onload = () => {
|
|
4804
|
+
C(K.result), Z(!0);
|
|
4805
|
+
}, K.readAsDataURL(V);
|
|
4806
|
+
}, ce = async () => {
|
|
4797
4807
|
if (!(!S || !J))
|
|
4798
4808
|
try {
|
|
4799
|
-
const R = await
|
|
4809
|
+
const R = await qi(S, J);
|
|
4800
4810
|
if (u && R.size > u * 1024 * 1024) {
|
|
4801
4811
|
d == null || d(`Ukuran file maksimal ${u}MB`);
|
|
4802
4812
|
return;
|
|
@@ -4807,7 +4817,7 @@ const jt = {
|
|
|
4807
4817
|
} catch {
|
|
4808
4818
|
d == null || d("Gagal memproses gambar");
|
|
4809
4819
|
}
|
|
4810
|
-
}, G =
|
|
4820
|
+
}, G = ne(null), Q = () => {
|
|
4811
4821
|
G.current && G.current.click();
|
|
4812
4822
|
};
|
|
4813
4823
|
vr(g, () => ({
|
|
@@ -4816,9 +4826,9 @@ const jt = {
|
|
|
4816
4826
|
(R = G.current) == null || R.click();
|
|
4817
4827
|
}
|
|
4818
4828
|
}));
|
|
4819
|
-
const
|
|
4820
|
-
let
|
|
4821
|
-
return se >= 1 ? (X =
|
|
4829
|
+
const ee = parseInt(l, 10), se = Zt[h];
|
|
4830
|
+
let te, X;
|
|
4831
|
+
return se >= 1 ? (X = ee, te = ee * se) : (te = ee, X = ee / se), /* @__PURE__ */ s(
|
|
4822
4832
|
f,
|
|
4823
4833
|
{
|
|
4824
4834
|
display: "flex",
|
|
@@ -4832,7 +4842,7 @@ const jt = {
|
|
|
4832
4842
|
align: "center",
|
|
4833
4843
|
justify: "center",
|
|
4834
4844
|
style: {
|
|
4835
|
-
width: a != null && a.fullWidth ? "100%" : `${
|
|
4845
|
+
width: a != null && a.fullWidth ? "100%" : `${te}px`,
|
|
4836
4846
|
height: a != null && a.fullWidth ? "auto" : `${X}px`,
|
|
4837
4847
|
aspectRatio: se,
|
|
4838
4848
|
flexShrink: 0
|
|
@@ -4860,7 +4870,7 @@ const jt = {
|
|
|
4860
4870
|
justify: "center",
|
|
4861
4871
|
padding: "spacing-4",
|
|
4862
4872
|
children: /* @__PURE__ */ e(
|
|
4863
|
-
|
|
4873
|
+
w,
|
|
4864
4874
|
{
|
|
4865
4875
|
name: "Image",
|
|
4866
4876
|
style: {
|
|
@@ -4894,14 +4904,14 @@ const jt = {
|
|
|
4894
4904
|
ref: G,
|
|
4895
4905
|
type: "file",
|
|
4896
4906
|
accept: "image/*",
|
|
4897
|
-
onChange:
|
|
4907
|
+
onChange: le,
|
|
4898
4908
|
disabled: i,
|
|
4899
4909
|
style: { display: "none" }
|
|
4900
4910
|
}
|
|
4901
4911
|
),
|
|
4902
4912
|
/* @__PURE__ */ s(f, { display: "flex", align: "center", gap: "spacing-2", direction: "row", children: [
|
|
4903
4913
|
/* @__PURE__ */ e(
|
|
4904
|
-
|
|
4914
|
+
w,
|
|
4905
4915
|
{
|
|
4906
4916
|
name: "Edit3",
|
|
4907
4917
|
style: { color: "var(--sa-background-primary, #ffffff)" }
|
|
@@ -4969,7 +4979,7 @@ const jt = {
|
|
|
4969
4979
|
borderRadius: "var(--sa-radii-md)",
|
|
4970
4980
|
boxShadow: "0 20px 60px rgba(0,0,0,0.3)",
|
|
4971
4981
|
overflow: "hidden",
|
|
4972
|
-
width: m ? h === "1:1" ? "min(90vw, 480px)" : `min(90vw, ${
|
|
4982
|
+
width: m ? h === "1:1" ? "min(90vw, 480px)" : `min(90vw, ${te * 2}px)` : "calc(100vw - 2rem)",
|
|
4973
4983
|
display: "flex",
|
|
4974
4984
|
flexDirection: "column"
|
|
4975
4985
|
},
|
|
@@ -4989,8 +4999,8 @@ const jt = {
|
|
|
4989
4999
|
{
|
|
4990
5000
|
image: S,
|
|
4991
5001
|
crop: T,
|
|
4992
|
-
zoom:
|
|
4993
|
-
aspect: h ?
|
|
5002
|
+
zoom: L,
|
|
5003
|
+
aspect: h ? Zt[h] : void 0,
|
|
4994
5004
|
onCropChange: U,
|
|
4995
5005
|
onZoomChange: ae,
|
|
4996
5006
|
onCropComplete: P,
|
|
@@ -5013,7 +5023,7 @@ const jt = {
|
|
|
5013
5023
|
},
|
|
5014
5024
|
children: [
|
|
5015
5025
|
/* @__PURE__ */ e(N, { size: "sm", secondary: !0, onClick: () => Z(!1), children: "Cancel" }),
|
|
5016
|
-
/* @__PURE__ */ e(N, { size: "sm", primary: !0, onClick:
|
|
5026
|
+
/* @__PURE__ */ e(N, { size: "sm", primary: !0, onClick: ce, children: "Crop" })
|
|
5017
5027
|
]
|
|
5018
5028
|
}
|
|
5019
5029
|
)
|
|
@@ -5028,7 +5038,7 @@ const jt = {
|
|
|
5028
5038
|
}
|
|
5029
5039
|
);
|
|
5030
5040
|
}
|
|
5031
|
-
),
|
|
5041
|
+
), Ji = ({
|
|
5032
5042
|
size: t = "md",
|
|
5033
5043
|
direction: r = "vertical",
|
|
5034
5044
|
requiredTitle: i = "(Required)",
|
|
@@ -5078,7 +5088,7 @@ const jt = {
|
|
|
5078
5088
|
arrowPosition: (g = l.tooltip) == null ? void 0 : g.arrowPosition,
|
|
5079
5089
|
...l.tooltip,
|
|
5080
5090
|
children: /* @__PURE__ */ e(
|
|
5081
|
-
|
|
5091
|
+
w,
|
|
5082
5092
|
{
|
|
5083
5093
|
name: "InfoCircle",
|
|
5084
5094
|
size: t === "lg" ? "sm" : "xs",
|
|
@@ -5098,13 +5108,13 @@ const jt = {
|
|
|
5098
5108
|
}
|
|
5099
5109
|
),
|
|
5100
5110
|
/* @__PURE__ */ s(_, { direction: "column", gap: "xs", children: [
|
|
5101
|
-
/* @__PURE__ */ e(
|
|
5111
|
+
/* @__PURE__ */ e(Ui, { ...l.inputProps }),
|
|
5102
5112
|
!h && l.errorMessage && /* @__PURE__ */ e(De, { message: l.errorMessage })
|
|
5103
5113
|
] })
|
|
5104
5114
|
]
|
|
5105
5115
|
}
|
|
5106
5116
|
);
|
|
5107
|
-
},
|
|
5117
|
+
}, Pi = ({
|
|
5108
5118
|
size: t = "md",
|
|
5109
5119
|
direction: r = "vertical",
|
|
5110
5120
|
requiredTitle: i = "(Required)",
|
|
@@ -5153,7 +5163,7 @@ const jt = {
|
|
|
5153
5163
|
arrowPosition: (u = n.tooltip) == null ? void 0 : u.arrowPosition,
|
|
5154
5164
|
...n.tooltip,
|
|
5155
5165
|
children: /* @__PURE__ */ e(
|
|
5156
|
-
|
|
5166
|
+
w,
|
|
5157
5167
|
{
|
|
5158
5168
|
name: "InfoCircle",
|
|
5159
5169
|
size: t === "lg" ? "sm" : "xs",
|
|
@@ -5176,7 +5186,7 @@ const jt = {
|
|
|
5176
5186
|
]
|
|
5177
5187
|
}
|
|
5178
5188
|
);
|
|
5179
|
-
},
|
|
5189
|
+
}, Co = ({
|
|
5180
5190
|
items: t,
|
|
5181
5191
|
id: r,
|
|
5182
5192
|
handleOnUpdate: i,
|
|
@@ -5203,7 +5213,7 @@ const jt = {
|
|
|
5203
5213
|
width: o
|
|
5204
5214
|
},
|
|
5205
5215
|
children: n && /* @__PURE__ */ e(
|
|
5206
|
-
|
|
5216
|
+
Qt,
|
|
5207
5217
|
{
|
|
5208
5218
|
disabled: l,
|
|
5209
5219
|
checked: u,
|
|
@@ -5213,20 +5223,20 @@ const jt = {
|
|
|
5213
5223
|
)
|
|
5214
5224
|
}
|
|
5215
5225
|
);
|
|
5216
|
-
},
|
|
5217
|
-
InputText:
|
|
5218
|
-
InputDropdown:
|
|
5219
|
-
InputSingleFile:
|
|
5220
|
-
CheckBoxOptions:
|
|
5221
|
-
RadioOptions:
|
|
5222
|
-
InputTextArea:
|
|
5223
|
-
ToggleForm:
|
|
5224
|
-
ActionButton:
|
|
5225
|
-
FormTitle:
|
|
5226
|
-
InputDate:
|
|
5227
|
-
InputImgFile:
|
|
5228
|
-
Custom:
|
|
5229
|
-
},
|
|
5226
|
+
}, vo = {
|
|
5227
|
+
InputText: Si,
|
|
5228
|
+
InputDropdown: Fi,
|
|
5229
|
+
InputSingleFile: Ti,
|
|
5230
|
+
CheckBoxOptions: Ni,
|
|
5231
|
+
RadioOptions: Oi,
|
|
5232
|
+
InputTextArea: _i,
|
|
5233
|
+
ToggleForm: ji,
|
|
5234
|
+
ActionButton: Zi,
|
|
5235
|
+
FormTitle: $i,
|
|
5236
|
+
InputDate: Gi,
|
|
5237
|
+
InputImgFile: Ji,
|
|
5238
|
+
Custom: Pi
|
|
5239
|
+
}, Qi = ({ customBottom: t }) => {
|
|
5230
5240
|
const [r, i] = k(!1), o = () => {
|
|
5231
5241
|
window.scrollY > window.screenY ? i(!0) : i(!1);
|
|
5232
5242
|
}, n = () => {
|
|
@@ -5260,7 +5270,7 @@ const jt = {
|
|
|
5260
5270
|
onClick: n,
|
|
5261
5271
|
type: "button",
|
|
5262
5272
|
iconLeft: /* @__PURE__ */ e(
|
|
5263
|
-
|
|
5273
|
+
w,
|
|
5264
5274
|
{
|
|
5265
5275
|
width: 16,
|
|
5266
5276
|
size: "xs",
|
|
@@ -5276,8 +5286,8 @@ const jt = {
|
|
|
5276
5286
|
)
|
|
5277
5287
|
}
|
|
5278
5288
|
);
|
|
5279
|
-
},
|
|
5280
|
-
const n =
|
|
5289
|
+
}, bo = ({ pageLayout: t, children: r, wrapperProps: i, containerProps: o }) => {
|
|
5290
|
+
const n = oe("md"), l = (o == null ? void 0 : o.customWidth) ?? 264;
|
|
5281
5291
|
return /* @__PURE__ */ s(
|
|
5282
5292
|
f,
|
|
5283
5293
|
{
|
|
@@ -5315,7 +5325,7 @@ const jt = {
|
|
|
5315
5325
|
]
|
|
5316
5326
|
}
|
|
5317
5327
|
);
|
|
5318
|
-
},
|
|
5328
|
+
}, Do = ({
|
|
5319
5329
|
children: t,
|
|
5320
5330
|
withScrollToTopButton: r = !1,
|
|
5321
5331
|
scrollToTopButtonProps: i,
|
|
@@ -5342,7 +5352,7 @@ const jt = {
|
|
|
5342
5352
|
borderWidth: "border-t",
|
|
5343
5353
|
children: [
|
|
5344
5354
|
r && /* @__PURE__ */ e(
|
|
5345
|
-
|
|
5355
|
+
Qi,
|
|
5346
5356
|
{
|
|
5347
5357
|
...i,
|
|
5348
5358
|
customBottom: (i == null ? void 0 : i.customBottom) || "5.7rem"
|
|
@@ -5351,15 +5361,15 @@ const jt = {
|
|
|
5351
5361
|
t
|
|
5352
5362
|
]
|
|
5353
5363
|
}
|
|
5354
|
-
) }),
|
|
5355
|
-
|
|
5364
|
+
) }), wo = ({ fields: t }) => /* @__PURE__ */ e(f, { display: "flex", direction: "column", gap: "lg", children: /* @__PURE__ */ e(
|
|
5365
|
+
bt,
|
|
5356
5366
|
{
|
|
5357
5367
|
of: t,
|
|
5358
|
-
render: (r, i) => /* @__PURE__ */ e(
|
|
5368
|
+
render: (r, i) => /* @__PURE__ */ e(Yi, { ...r }, i)
|
|
5359
5369
|
}
|
|
5360
|
-
) }),
|
|
5370
|
+
) }), Yi = ({ title: t, value: r, icon: i }) => /* @__PURE__ */ s(f, { display: "flex", direction: "column", gap: "sm", children: [
|
|
5361
5371
|
i ? /* @__PURE__ */ s(f, { display: "flex", direction: "row", align: "center", gap: "xs", children: [
|
|
5362
|
-
/* @__PURE__ */ e(
|
|
5372
|
+
/* @__PURE__ */ e(w, { name: i, color: "subtle" }),
|
|
5363
5373
|
/* @__PURE__ */ e(x, { color: "gray-500", variant: "sub-h3", children: t })
|
|
5364
5374
|
] }) : /* @__PURE__ */ e(x, { color: "gray-500", variant: "sub-h3", children: t }),
|
|
5365
5375
|
typeof r == "string" ? /* @__PURE__ */ e(x, { variant: "sub-h3", children: r }) : r
|
|
@@ -5367,7 +5377,7 @@ const jt = {
|
|
|
5367
5377
|
silhouette: "#A7B0AC",
|
|
5368
5378
|
accent: "#78867F"
|
|
5369
5379
|
};
|
|
5370
|
-
function
|
|
5380
|
+
function Xi({ width: t, height: r }) {
|
|
5371
5381
|
return /* @__PURE__ */ e(q, { children: /* @__PURE__ */ s(
|
|
5372
5382
|
"svg",
|
|
5373
5383
|
{
|
|
@@ -5510,7 +5520,7 @@ function Ki({ width: t, height: r }) {
|
|
|
5510
5520
|
}
|
|
5511
5521
|
) });
|
|
5512
5522
|
}
|
|
5513
|
-
const
|
|
5523
|
+
const ko = ({
|
|
5514
5524
|
title: t = "create",
|
|
5515
5525
|
children: r,
|
|
5516
5526
|
onClickAction: i,
|
|
@@ -5555,9 +5565,9 @@ const So = ({
|
|
|
5555
5565
|
marginBlock: "auto",
|
|
5556
5566
|
customHeight: a,
|
|
5557
5567
|
children: [
|
|
5558
|
-
d || /* @__PURE__ */ e(
|
|
5568
|
+
d || /* @__PURE__ */ e(Xi, {}),
|
|
5559
5569
|
/* @__PURE__ */ e(f, { children: r.map((m, y) => /* @__PURE__ */ e(
|
|
5560
|
-
|
|
5570
|
+
xe.Body1,
|
|
5561
5571
|
{
|
|
5562
5572
|
props: {
|
|
5563
5573
|
align: "center",
|
|
@@ -5571,7 +5581,7 @@ const So = ({
|
|
|
5571
5581
|
]
|
|
5572
5582
|
}
|
|
5573
5583
|
);
|
|
5574
|
-
},
|
|
5584
|
+
}, B = {
|
|
5575
5585
|
c001A72: "#001A72",
|
|
5576
5586
|
c64B5F6: "#64B5F6",
|
|
5577
5587
|
c98B4CB: "#98B4CB",
|
|
@@ -5581,7 +5591,7 @@ const So = ({
|
|
|
5581
5591
|
c000000: "#000000",
|
|
5582
5592
|
cFFFFFF: "#FFFFFF"
|
|
5583
5593
|
};
|
|
5584
|
-
function
|
|
5594
|
+
function Ki({ width: t, height: r }) {
|
|
5585
5595
|
return /* @__PURE__ */ e(q, { children: /* @__PURE__ */ s(
|
|
5586
5596
|
"svg",
|
|
5587
5597
|
{
|
|
@@ -5595,23 +5605,23 @@ function en({ width: t, height: r }) {
|
|
|
5595
5605
|
"path",
|
|
5596
5606
|
{
|
|
5597
5607
|
d: "M32.4375 254.5H612.437",
|
|
5598
|
-
stroke:
|
|
5608
|
+
stroke: B.c64B5F6,
|
|
5599
5609
|
strokeWidth: "5",
|
|
5600
5610
|
strokeLinecap: "round"
|
|
5601
5611
|
}
|
|
5602
5612
|
),
|
|
5603
|
-
/* @__PURE__ */ e("rect", { x: "216.562", y: "45.5605", width: "55", height: "20", fill:
|
|
5604
|
-
/* @__PURE__ */ e("rect", { x: "14.4375", y: "89.7803", width: "46", height: "20", fill:
|
|
5605
|
-
/* @__PURE__ */ e("rect", { x: "0.4375", y: "111.78", width: "46", height: "20", fill:
|
|
5606
|
-
/* @__PURE__ */ e("rect", { x: "0.4375", y: "67.7803", width: "46", height: "20", fill:
|
|
5607
|
-
/* @__PURE__ */ e("rect", { x: "344.312", y: "0.5", width: "55", height: "20", fill:
|
|
5608
|
-
/* @__PURE__ */ e("rect", { x: "549.562", y: "86.7803", width: "55", height: "20", fill:
|
|
5609
|
-
/* @__PURE__ */ e("rect", { x: "566.562", y: "64.7803", width: "55", height: "20", fill:
|
|
5613
|
+
/* @__PURE__ */ e("rect", { x: "216.562", y: "45.5605", width: "55", height: "20", fill: B.cD6EBFD }),
|
|
5614
|
+
/* @__PURE__ */ e("rect", { x: "14.4375", y: "89.7803", width: "46", height: "20", fill: B.cD6EBFD }),
|
|
5615
|
+
/* @__PURE__ */ e("rect", { x: "0.4375", y: "111.78", width: "46", height: "20", fill: B.cD6EBFD }),
|
|
5616
|
+
/* @__PURE__ */ e("rect", { x: "0.4375", y: "67.7803", width: "46", height: "20", fill: B.cD6EBFD }),
|
|
5617
|
+
/* @__PURE__ */ e("rect", { x: "344.312", y: "0.5", width: "55", height: "20", fill: B.cD6EBFD }),
|
|
5618
|
+
/* @__PURE__ */ e("rect", { x: "549.562", y: "86.7803", width: "55", height: "20", fill: B.cD6EBFD }),
|
|
5619
|
+
/* @__PURE__ */ e("rect", { x: "566.562", y: "64.7803", width: "55", height: "20", fill: B.cD6EBFD }),
|
|
5610
5620
|
/* @__PURE__ */ e(
|
|
5611
5621
|
"path",
|
|
5612
5622
|
{
|
|
5613
5623
|
d: "M233.438 165.217C233.438 132.764 239.035 107.198 250.231 88.5189C261.596 69.8396 279.832 60.5 304.938 60.5C330.043 60.5 348.194 69.8396 359.389 88.5189C370.755 107.198 376.438 132.764 376.438 165.217C376.438 198.047 370.755 223.802 359.389 242.481C348.194 261.16 330.043 270.5 304.938 270.5C279.832 270.5 261.596 261.16 250.231 242.481C239.035 223.802 233.438 198.047 233.438 165.217ZM333.69 165.217C333.69 146.16 331.824 131.538 328.092 121.349C324.36 110.972 316.642 105.783 304.938 105.783C293.233 105.783 285.515 110.972 281.783 121.349C278.051 131.538 276.185 146.16 276.185 165.217C276.185 178.047 276.863 188.708 278.22 197.198C279.577 205.5 282.292 212.292 286.363 217.575C290.604 222.67 296.795 225.217 304.938 225.217C313.08 225.217 319.187 222.67 323.258 217.575C327.499 212.292 330.298 205.5 331.655 197.198C333.012 188.708 333.69 178.047 333.69 165.217Z",
|
|
5614
|
-
fill:
|
|
5624
|
+
fill: B.cD0E5F7
|
|
5615
5625
|
}
|
|
5616
5626
|
),
|
|
5617
5627
|
/* @__PURE__ */ e(
|
|
@@ -5620,7 +5630,7 @@ function en({ width: t, height: r }) {
|
|
|
5620
5630
|
fillRule: "evenodd",
|
|
5621
5631
|
clipRule: "evenodd",
|
|
5622
5632
|
d: "M50.4375 235.124V194.28L138.96 60.5H192.466V191.32H215.438V235.124H192.466V249.5H144.563V235.124H50.4375ZM100.862 191.32L147.925 116.143V191.32H100.862Z",
|
|
5623
|
-
fill:
|
|
5633
|
+
fill: B.cBBDEFB,
|
|
5624
5634
|
fillOpacity: "0.6"
|
|
5625
5635
|
}
|
|
5626
5636
|
),
|
|
@@ -5630,41 +5640,41 @@ function en({ width: t, height: r }) {
|
|
|
5630
5640
|
fillRule: "evenodd",
|
|
5631
5641
|
clipRule: "evenodd",
|
|
5632
5642
|
d: "M394.438 235.124V194.28L482.96 60.5H536.466V191.32H559.438V235.124H536.466V249.5H488.563V235.124H394.438ZM444.862 191.32L491.925 116.143V191.32H444.862Z",
|
|
5633
|
-
fill:
|
|
5643
|
+
fill: B.cBBDEFB,
|
|
5634
5644
|
fillOpacity: "0.6"
|
|
5635
5645
|
}
|
|
5636
5646
|
),
|
|
5637
|
-
/* @__PURE__ */ e("path", { d: "M349.472 171.5H261.64V186.396H349.472V171.5Z", fill:
|
|
5638
|
-
/* @__PURE__ */ e("path", { d: "M261.64 171.5L244.719 186.396H261.64V171.5Z", fill:
|
|
5647
|
+
/* @__PURE__ */ e("path", { d: "M349.472 171.5H261.64V186.396H349.472V171.5Z", fill: B.c98B4CB }),
|
|
5648
|
+
/* @__PURE__ */ e("path", { d: "M261.64 171.5L244.719 186.396H261.64V171.5Z", fill: B.c98B4CB }),
|
|
5639
5649
|
/* @__PURE__ */ e(
|
|
5640
5650
|
"path",
|
|
5641
5651
|
{
|
|
5642
5652
|
d: "M363.574 186.396L349.472 171.5V186.396H363.574Z",
|
|
5643
|
-
fill:
|
|
5653
|
+
fill: B.c98B4CB
|
|
5644
5654
|
}
|
|
5645
5655
|
),
|
|
5646
5656
|
/* @__PURE__ */ e(
|
|
5647
5657
|
"path",
|
|
5648
5658
|
{
|
|
5649
5659
|
d: "M244.719 200.89V264.5H363.574V200.89M244.719 200.89H233.438L244.719 186.396M244.719 200.89H363.574M363.574 200.89H372.437L363.574 186.396M244.719 186.396L261.64 171.5M244.719 186.396H261.64M363.574 186.396L349.472 171.5M363.574 186.396H349.472M261.64 171.5H349.472M261.64 171.5V186.396M349.472 171.5V186.396M349.472 186.396H261.64",
|
|
5650
|
-
stroke:
|
|
5660
|
+
stroke: B.c000000,
|
|
5651
5661
|
strokeWidth: "2"
|
|
5652
5662
|
}
|
|
5653
5663
|
),
|
|
5654
|
-
/* @__PURE__ */ e("rect", { x: "246.438", y: "202.5", width: "116", height: "60", fill:
|
|
5664
|
+
/* @__PURE__ */ e("rect", { x: "246.438", y: "202.5", width: "116", height: "60", fill: B.cFFFFFF }),
|
|
5655
5665
|
/* @__PURE__ */ e(
|
|
5656
5666
|
"path",
|
|
5657
5667
|
{
|
|
5658
5668
|
d: "M245.536 187.5H362.959L369.438 198.5H237.438L245.536 187.5Z",
|
|
5659
|
-
fill:
|
|
5669
|
+
fill: B.cFFFFFF
|
|
5660
5670
|
}
|
|
5661
5671
|
),
|
|
5662
5672
|
/* @__PURE__ */ e(
|
|
5663
5673
|
"path",
|
|
5664
5674
|
{
|
|
5665
5675
|
d: "M332.438 129.846C332.438 141.175 329.183 152.403 323.949 160.772C318.699 169.168 311.592 174.5 303.938 174.5C296.283 174.5 289.176 169.168 283.926 160.772C278.692 152.403 275.438 141.175 275.438 129.846C275.438 118.458 277.838 109.628 282.543 103.663C287.216 97.7387 294.274 94.5 303.938 94.5C313.601 94.5 320.659 97.7387 325.332 103.663C330.037 109.628 332.438 118.458 332.438 129.846Z",
|
|
5666
|
-
fill:
|
|
5667
|
-
stroke:
|
|
5676
|
+
fill: B.cFFFFFF,
|
|
5677
|
+
stroke: B.c000000,
|
|
5668
5678
|
strokeWidth: "2"
|
|
5669
5679
|
}
|
|
5670
5680
|
),
|
|
@@ -5672,7 +5682,7 @@ function en({ width: t, height: r }) {
|
|
|
5672
5682
|
"path",
|
|
5673
5683
|
{
|
|
5674
5684
|
d: "M281.438 145.5C284.032 154.136 285.762 158.682 290.951 164.591M292.681 166.409C293.624 167.647 295.708 169.591 297.438 170.5",
|
|
5675
|
-
stroke:
|
|
5685
|
+
stroke: B.c000000,
|
|
5676
5686
|
strokeWidth: "2",
|
|
5677
5687
|
strokeLinecap: "round",
|
|
5678
5688
|
strokeLinejoin: "round"
|
|
@@ -5682,7 +5692,7 @@ function en({ width: t, height: r }) {
|
|
|
5682
5692
|
"path",
|
|
5683
5693
|
{
|
|
5684
5694
|
d: "M304.438 175C299.54 176.339 297.208 177.876 293.938 182.5M304.438 175C301.183 178.041 299.537 178.883 299.438 182.5M304.438 175C308.173 177.107 309.635 178.834 311.438 182.5",
|
|
5685
|
-
stroke:
|
|
5695
|
+
stroke: B.c000000,
|
|
5686
5696
|
strokeWidth: "2",
|
|
5687
5697
|
strokeLinecap: "round",
|
|
5688
5698
|
strokeLinejoin: "round"
|
|
@@ -5692,7 +5702,7 @@ function en({ width: t, height: r }) {
|
|
|
5692
5702
|
"path",
|
|
5693
5703
|
{
|
|
5694
5704
|
d: "M304.936 175.5C303.438 180 302.529 181.628 304.936 186.5",
|
|
5695
|
-
stroke:
|
|
5705
|
+
stroke: B.c000000,
|
|
5696
5706
|
strokeWidth: "2",
|
|
5697
5707
|
strokeLinecap: "round",
|
|
5698
5708
|
strokeLinejoin: "round"
|
|
@@ -5702,30 +5712,30 @@ function en({ width: t, height: r }) {
|
|
|
5702
5712
|
"path",
|
|
5703
5713
|
{
|
|
5704
5714
|
d: "M288.178 120.981C289.969 120.93 290.921 121.313 292.167 122.754",
|
|
5705
|
-
stroke:
|
|
5715
|
+
stroke: B.c000000,
|
|
5706
5716
|
strokeWidth: "2",
|
|
5707
5717
|
strokeLinecap: "round",
|
|
5708
5718
|
strokeLinejoin: "round"
|
|
5709
5719
|
}
|
|
5710
5720
|
),
|
|
5711
|
-
/* @__PURE__ */ e("circle", { cx: "291.724", cy: "118.765", r: "3.1027", fill:
|
|
5721
|
+
/* @__PURE__ */ e("circle", { cx: "291.724", cy: "118.765", r: "3.1027", fill: B.c000000 }),
|
|
5712
5722
|
/* @__PURE__ */ e(
|
|
5713
5723
|
"path",
|
|
5714
5724
|
{
|
|
5715
5725
|
d: "M308.128 122.463C309.123 120.973 309.987 120.418 311.883 120.237",
|
|
5716
|
-
stroke:
|
|
5726
|
+
stroke: B.c000000,
|
|
5717
5727
|
strokeWidth: "2",
|
|
5718
5728
|
strokeLinecap: "round",
|
|
5719
5729
|
strokeLinejoin: "round"
|
|
5720
5730
|
}
|
|
5721
5731
|
),
|
|
5722
|
-
/* @__PURE__ */ e("circle", { cx: "307.681", cy: "118.765", r: "3.1027", fill:
|
|
5723
|
-
/* @__PURE__ */ e("ellipse", { cx: "297.938", cy: "134.5", rx: "2.5", ry: "2", fill:
|
|
5732
|
+
/* @__PURE__ */ e("circle", { cx: "307.681", cy: "118.765", r: "3.1027", fill: B.c000000 }),
|
|
5733
|
+
/* @__PURE__ */ e("ellipse", { cx: "297.938", cy: "134.5", rx: "2.5", ry: "2", fill: B.c000000 }),
|
|
5724
5734
|
/* @__PURE__ */ e(
|
|
5725
5735
|
"path",
|
|
5726
5736
|
{
|
|
5727
5737
|
d: "M340.437 97.5L333.438 104.5M333.438 97.5L340.438 104.5",
|
|
5728
|
-
stroke:
|
|
5738
|
+
stroke: B.c001A72,
|
|
5729
5739
|
strokeWidth: "2",
|
|
5730
5740
|
strokeLinecap: "round",
|
|
5731
5741
|
strokeLinejoin: "round"
|
|
@@ -5735,7 +5745,7 @@ function en({ width: t, height: r }) {
|
|
|
5735
5745
|
"path",
|
|
5736
5746
|
{
|
|
5737
5747
|
d: "M265.437 115.5L260.438 120.5M260.438 115.5L265.438 120.5",
|
|
5738
|
-
stroke:
|
|
5748
|
+
stroke: B.c001A72,
|
|
5739
5749
|
strokeWidth: "1.2",
|
|
5740
5750
|
strokeLinecap: "round",
|
|
5741
5751
|
strokeLinejoin: "round"
|
|
@@ -5745,7 +5755,7 @@ function en({ width: t, height: r }) {
|
|
|
5745
5755
|
"path",
|
|
5746
5756
|
{
|
|
5747
5757
|
d: "M288.437 87.5L283.438 92.5M283.438 87.5L288.438 92.5",
|
|
5748
|
-
stroke:
|
|
5758
|
+
stroke: B.c001A72,
|
|
5749
5759
|
strokeWidth: "1.2",
|
|
5750
5760
|
strokeLinecap: "round",
|
|
5751
5761
|
strokeLinejoin: "round"
|
|
@@ -5755,7 +5765,7 @@ function en({ width: t, height: r }) {
|
|
|
5755
5765
|
"path",
|
|
5756
5766
|
{
|
|
5757
5767
|
d: "M305.437 83.5L298.438 90.5M298.438 83.5L305.438 90.5",
|
|
5758
|
-
stroke:
|
|
5768
|
+
stroke: B.c001A72,
|
|
5759
5769
|
strokeWidth: "1.5",
|
|
5760
5770
|
strokeLinecap: "round",
|
|
5761
5771
|
strokeLinejoin: "round"
|
|
@@ -5765,27 +5775,27 @@ function en({ width: t, height: r }) {
|
|
|
5765
5775
|
"path",
|
|
5766
5776
|
{
|
|
5767
5777
|
d: "M342.437 145.5L337.438 150.5M337.438 145.5L342.438 150.5",
|
|
5768
|
-
stroke:
|
|
5778
|
+
stroke: B.c001A72,
|
|
5769
5779
|
strokeWidth: "1.2",
|
|
5770
5780
|
strokeLinecap: "round",
|
|
5771
5781
|
strokeLinejoin: "round"
|
|
5772
5782
|
}
|
|
5773
5783
|
),
|
|
5774
|
-
/* @__PURE__ */ e("circle", { cx: "339.938", cy: "111", r: "2.5", fill:
|
|
5775
|
-
/* @__PURE__ */ e("circle", { cx: "336.438", cy: "94.5", r: "1", fill:
|
|
5776
|
-
/* @__PURE__ */ e("circle", { cx: "347.438", cy: "99.5", r: "1", fill:
|
|
5777
|
-
/* @__PURE__ */ e("circle", { cx: "267.438", cy: "109.5", r: "2", fill:
|
|
5778
|
-
/* @__PURE__ */ e("circle", { cx: "293.438", cy: "85.5", r: "2", fill:
|
|
5779
|
-
/* @__PURE__ */ e("circle", { cx: "339.438", cy: "138.5", r: "2", fill:
|
|
5780
|
-
/* @__PURE__ */ e("circle", { cx: "267.438", cy: "150.5", r: "2", fill:
|
|
5781
|
-
/* @__PURE__ */ e("circle", { cx: "268.438", cy: "118.5", r: "1", fill:
|
|
5782
|
-
/* @__PURE__ */ e("circle", { cx: "260.438", cy: "124.5", r: "1", fill:
|
|
5784
|
+
/* @__PURE__ */ e("circle", { cx: "339.938", cy: "111", r: "2.5", fill: B.c001A72 }),
|
|
5785
|
+
/* @__PURE__ */ e("circle", { cx: "336.438", cy: "94.5", r: "1", fill: B.c001A72 }),
|
|
5786
|
+
/* @__PURE__ */ e("circle", { cx: "347.438", cy: "99.5", r: "1", fill: B.c001A72 }),
|
|
5787
|
+
/* @__PURE__ */ e("circle", { cx: "267.438", cy: "109.5", r: "2", fill: B.c001A72 }),
|
|
5788
|
+
/* @__PURE__ */ e("circle", { cx: "293.438", cy: "85.5", r: "2", fill: B.c001A72 }),
|
|
5789
|
+
/* @__PURE__ */ e("circle", { cx: "339.438", cy: "138.5", r: "2", fill: B.c001A72 }),
|
|
5790
|
+
/* @__PURE__ */ e("circle", { cx: "267.438", cy: "150.5", r: "2", fill: B.c001A72 }),
|
|
5791
|
+
/* @__PURE__ */ e("circle", { cx: "268.438", cy: "118.5", r: "1", fill: B.c001A72 }),
|
|
5792
|
+
/* @__PURE__ */ e("circle", { cx: "260.438", cy: "124.5", r: "1", fill: B.c001A72 })
|
|
5783
5793
|
]
|
|
5784
5794
|
}
|
|
5785
5795
|
) });
|
|
5786
5796
|
}
|
|
5787
|
-
function
|
|
5788
|
-
const r =
|
|
5797
|
+
function So({ onClick: t }) {
|
|
5798
|
+
const r = oe("md");
|
|
5789
5799
|
return /* @__PURE__ */ s(
|
|
5790
5800
|
f,
|
|
5791
5801
|
{
|
|
@@ -5796,7 +5806,7 @@ function Fo({ onClick: t }) {
|
|
|
5796
5806
|
justify: "center",
|
|
5797
5807
|
gap: "md",
|
|
5798
5808
|
children: [
|
|
5799
|
-
/* @__PURE__ */ e(
|
|
5809
|
+
/* @__PURE__ */ e(Ki, { width: r ? 600 : 300 }),
|
|
5800
5810
|
/* @__PURE__ */ e(
|
|
5801
5811
|
x,
|
|
5802
5812
|
{
|
|
@@ -5820,7 +5830,7 @@ function Fo({ onClick: t }) {
|
|
|
5820
5830
|
}
|
|
5821
5831
|
);
|
|
5822
5832
|
}
|
|
5823
|
-
const
|
|
5833
|
+
const A = {
|
|
5824
5834
|
c46F16B: "#46F16B",
|
|
5825
5835
|
c48504C: "#48504C",
|
|
5826
5836
|
c64B5F6: "#64B5F6",
|
|
@@ -5841,7 +5851,7 @@ const I = {
|
|
|
5841
5851
|
cF4F4F4: "#F4F4F4",
|
|
5842
5852
|
cFFFFFF: "#FFFFFF"
|
|
5843
5853
|
};
|
|
5844
|
-
function
|
|
5854
|
+
function en({ width: t, height: r }) {
|
|
5845
5855
|
return /* @__PURE__ */ e(q, { children: /* @__PURE__ */ s(
|
|
5846
5856
|
"svg",
|
|
5847
5857
|
{
|
|
@@ -5851,14 +5861,14 @@ function tn({ width: t, height: r }) {
|
|
|
5851
5861
|
fill: "none",
|
|
5852
5862
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5853
5863
|
children: [
|
|
5854
|
-
/* @__PURE__ */ e("rect", { x: "228", y: "55.5", width: "55", height: "20", fill:
|
|
5864
|
+
/* @__PURE__ */ e("rect", { x: "228", y: "55.5", width: "55", height: "20", fill: A.cD6EBFD }),
|
|
5855
5865
|
/* @__PURE__ */ e(
|
|
5856
5866
|
"path",
|
|
5857
5867
|
{
|
|
5858
5868
|
fillRule: "evenodd",
|
|
5859
5869
|
clipRule: "evenodd",
|
|
5860
5870
|
d: "M75 238.124V197.28L163.523 63.5H217.029V194.32H240V238.124H217.029V252.5H169.126V238.124H75ZM125.424 194.32L172.487 119.143V194.32H125.424Z",
|
|
5861
|
-
fill:
|
|
5871
|
+
fill: A.cBBDEFB,
|
|
5862
5872
|
fillOpacity: "0.6"
|
|
5863
5873
|
}
|
|
5864
5874
|
),
|
|
@@ -5867,8 +5877,8 @@ function tn({ width: t, height: r }) {
|
|
|
5867
5877
|
"path",
|
|
5868
5878
|
{
|
|
5869
5879
|
d: "M334.5 274.5C381.168 274.5 419 227.266 419 169C419 110.734 381.168 63.5 334.5 63.5C287.832 63.5 250 110.734 250 169C250 227.266 287.832 274.5 334.5 274.5Z",
|
|
5870
|
-
fill:
|
|
5871
|
-
stroke:
|
|
5880
|
+
fill: A.cEFF3F8,
|
|
5881
|
+
stroke: A.c67AEE6,
|
|
5872
5882
|
strokeWidth: "5"
|
|
5873
5883
|
}
|
|
5874
5884
|
),
|
|
@@ -5876,68 +5886,68 @@ function tn({ width: t, height: r }) {
|
|
|
5876
5886
|
"path",
|
|
5877
5887
|
{
|
|
5878
5888
|
d: "M413 197.5C411.397 211.835 402.919 230.898 389.361 246.49C375.596 262.32 356.651 274.5 334.496 274.5C311.331 274.5 292.389 261.672 278.878 245.52C265.592 229.638 257.606 210.603 256 197.5H413Z",
|
|
5879
|
-
fill:
|
|
5889
|
+
fill: A.cD5C7BD
|
|
5880
5890
|
}
|
|
5881
5891
|
),
|
|
5882
5892
|
/* @__PURE__ */ e(
|
|
5883
5893
|
"path",
|
|
5884
5894
|
{
|
|
5885
5895
|
d: "M278.887 211.766H391.104L392.583 222.856C392.687 223.635 392.08 224.328 391.294 224.328H277.961C277.14 224.328 276.525 223.577 276.686 222.773L278.887 211.766Z",
|
|
5886
|
-
fill:
|
|
5896
|
+
fill: A.cCABEB1
|
|
5887
5897
|
}
|
|
5888
5898
|
),
|
|
5889
5899
|
/* @__PURE__ */ e(
|
|
5890
5900
|
"path",
|
|
5891
5901
|
{
|
|
5892
5902
|
d: "M287.68 218.884L289.354 213.022H378.961L381.473 218.884H287.68Z",
|
|
5893
|
-
fill:
|
|
5903
|
+
fill: A.cC0B2A2
|
|
5894
5904
|
}
|
|
5895
5905
|
),
|
|
5896
5906
|
/* @__PURE__ */ e(
|
|
5897
5907
|
"path",
|
|
5898
5908
|
{
|
|
5899
5909
|
d: "M381.944 218.803L381.58 212.266H386.385L386.022 218.803H381.944Z",
|
|
5900
|
-
fill:
|
|
5901
|
-
stroke:
|
|
5910
|
+
fill: A.c956847,
|
|
5911
|
+
stroke: A.c48504C
|
|
5902
5912
|
}
|
|
5903
5913
|
),
|
|
5904
5914
|
/* @__PURE__ */ e(
|
|
5905
5915
|
"path",
|
|
5906
5916
|
{
|
|
5907
5917
|
d: "M283.124 218.803L282.768 213.104H287.565L287.209 218.803H283.124Z",
|
|
5908
|
-
fill:
|
|
5909
|
-
stroke:
|
|
5918
|
+
fill: A.c956847,
|
|
5919
|
+
stroke: A.c48504C
|
|
5910
5920
|
}
|
|
5911
5921
|
),
|
|
5912
5922
|
/* @__PURE__ */ e(
|
|
5913
5923
|
"path",
|
|
5914
5924
|
{
|
|
5915
5925
|
d: "M285.902 212.103L284.935 186.306H279.606C278.151 186.306 277.004 187.542 277.113 188.993L278.673 209.79C278.77 211.095 279.857 212.103 281.166 212.103H285.902Z",
|
|
5916
|
-
fill:
|
|
5917
|
-
stroke:
|
|
5926
|
+
fill: A.cC8CEF4,
|
|
5927
|
+
stroke: A.c48504C
|
|
5918
5928
|
}
|
|
5919
5929
|
),
|
|
5920
5930
|
/* @__PURE__ */ e(
|
|
5921
5931
|
"path",
|
|
5922
5932
|
{
|
|
5923
5933
|
d: "M383.256 212.103L384.638 186.306H389.556C391.007 186.306 392.153 187.537 392.05 188.984L390.564 209.782C390.471 211.09 389.382 212.103 388.07 212.103H383.256Z",
|
|
5924
|
-
fill:
|
|
5925
|
-
stroke:
|
|
5934
|
+
fill: A.cC8CEF4,
|
|
5935
|
+
stroke: A.c48504C
|
|
5926
5936
|
}
|
|
5927
5937
|
),
|
|
5928
5938
|
/* @__PURE__ */ e(
|
|
5929
5939
|
"path",
|
|
5930
5940
|
{
|
|
5931
5941
|
d: "M284.497 178.155C284.455 176.194 286.034 174.581 287.996 174.581H381.904C383.895 174.581 385.485 176.24 385.401 178.23L384.066 209.59C383.987 211.463 382.445 212.941 380.569 212.941H288.663C286.759 212.941 285.205 211.419 285.164 209.515L284.497 178.155Z",
|
|
5932
|
-
fill:
|
|
5933
|
-
stroke:
|
|
5942
|
+
fill: A.cC8CEF4,
|
|
5943
|
+
stroke: A.c48504C
|
|
5934
5944
|
}
|
|
5935
5945
|
),
|
|
5936
5946
|
/* @__PURE__ */ e(
|
|
5937
5947
|
"path",
|
|
5938
5948
|
{
|
|
5939
5949
|
d: "M284.845 181.524C284.792 179.279 286.598 177.431 288.844 177.431H380.687C382.948 177.431 384.76 179.304 384.684 181.565L383.774 208.737C383.701 210.893 381.933 212.603 379.776 212.603H289.48C287.307 212.603 285.532 210.869 285.481 208.697L284.845 181.524Z",
|
|
5940
|
-
fill:
|
|
5950
|
+
fill: A.cBBC3F5
|
|
5941
5951
|
}
|
|
5942
5952
|
),
|
|
5943
5953
|
/* @__PURE__ */ e(
|
|
@@ -5954,7 +5964,7 @@ function tn({ width: t, height: r }) {
|
|
|
5954
5964
|
"path",
|
|
5955
5965
|
{
|
|
5956
5966
|
d: "M301 146.5C301 145.395 301.887 144.5 302.98 144.5H367.02C368.114 144.5 369 145.395 369 146.5V160.411H301V146.5Z",
|
|
5957
|
-
fill:
|
|
5967
|
+
fill: A.cFFFFFF
|
|
5958
5968
|
}
|
|
5959
5969
|
)
|
|
5960
5970
|
}
|
|
@@ -5964,42 +5974,42 @@ function tn({ width: t, height: r }) {
|
|
|
5964
5974
|
"path",
|
|
5965
5975
|
{
|
|
5966
5976
|
d: "M301 146.191C301 145.257 301.748 144.5 302.671 144.5H356.701C357.624 144.5 358.372 145.257 358.372 146.191V157.949H301V146.191Z",
|
|
5967
|
-
fill:
|
|
5977
|
+
fill: A.cFFFFFF
|
|
5968
5978
|
}
|
|
5969
5979
|
),
|
|
5970
5980
|
/* @__PURE__ */ e(
|
|
5971
5981
|
"path",
|
|
5972
5982
|
{
|
|
5973
5983
|
d: "M301.336 146.607C301.336 145.673 302.08 144.916 302.999 144.916H367.01C367.929 144.916 368.673 145.673 368.673 146.607V152.523H301.336V146.607Z",
|
|
5974
|
-
fill:
|
|
5984
|
+
fill: A.cD6D6D6
|
|
5975
5985
|
}
|
|
5976
5986
|
),
|
|
5977
5987
|
/* @__PURE__ */ e(
|
|
5978
5988
|
"path",
|
|
5979
5989
|
{
|
|
5980
5990
|
d: "M368.673 152.523H301.336V174.5H368.673V152.523Z",
|
|
5981
|
-
fill:
|
|
5991
|
+
fill: A.cF4F4F4
|
|
5982
5992
|
}
|
|
5983
5993
|
),
|
|
5984
5994
|
/* @__PURE__ */ e(
|
|
5985
5995
|
"path",
|
|
5986
5996
|
{
|
|
5987
5997
|
d: "M307.685 150.417C308.607 150.417 309.356 149.66 309.356 148.726C309.356 147.793 308.607 147.036 307.685 147.036C306.762 147.036 306.014 147.793 306.014 148.726C306.014 149.66 306.762 150.417 307.685 150.417Z",
|
|
5988
|
-
fill:
|
|
5998
|
+
fill: A.cEE8080
|
|
5989
5999
|
}
|
|
5990
6000
|
),
|
|
5991
6001
|
/* @__PURE__ */ e(
|
|
5992
6002
|
"path",
|
|
5993
6003
|
{
|
|
5994
6004
|
d: "M313.532 150.417C314.455 150.417 315.203 149.66 315.203 148.726C315.203 147.793 314.455 147.036 313.532 147.036C312.609 147.036 311.861 147.793 311.861 148.726C311.861 149.66 312.609 150.417 313.532 150.417Z",
|
|
5995
|
-
fill:
|
|
6005
|
+
fill: A.cE5EE80
|
|
5996
6006
|
}
|
|
5997
6007
|
),
|
|
5998
6008
|
/* @__PURE__ */ e(
|
|
5999
6009
|
"path",
|
|
6000
6010
|
{
|
|
6001
6011
|
d: "M318.546 150.417C319.469 150.417 320.217 149.66 320.217 148.726C320.217 147.793 319.469 147.036 318.546 147.036C317.623 147.036 316.875 147.793 316.875 148.726C316.875 149.66 317.623 150.417 318.546 150.417Z",
|
|
6002
|
-
fill:
|
|
6012
|
+
fill: A.c46F16B
|
|
6003
6013
|
}
|
|
6004
6014
|
)
|
|
6005
6015
|
] }),
|
|
@@ -6007,14 +6017,14 @@ function tn({ width: t, height: r }) {
|
|
|
6007
6017
|
"path",
|
|
6008
6018
|
{
|
|
6009
6019
|
d: "M301.16 146C301.16 145.172 301.832 144.5 302.66 144.5H367.33C368.159 144.5 368.83 145.172 368.83 146V174.419H301.16V146Z",
|
|
6010
|
-
stroke:
|
|
6020
|
+
stroke: A.c48504C
|
|
6011
6021
|
}
|
|
6012
6022
|
),
|
|
6013
6023
|
/* @__PURE__ */ e(
|
|
6014
6024
|
"path",
|
|
6015
6025
|
{
|
|
6016
6026
|
d: "M395.29 207.579H423.344M354.255 236.889H369.329M327.038 222.234H347.556M350.905 222.234H358.024M288.097 230.19H304.846M253.344 210.091H272.605M278.467 246.938H295.216M297.309 246.938H303.59M337.088 252.801H354.255",
|
|
6017
|
-
stroke:
|
|
6027
|
+
stroke: A.c86512B,
|
|
6018
6028
|
strokeWidth: "2",
|
|
6019
6029
|
strokeLinecap: "round"
|
|
6020
6030
|
}
|
|
@@ -6024,21 +6034,21 @@ function tn({ width: t, height: r }) {
|
|
|
6024
6034
|
"path",
|
|
6025
6035
|
{
|
|
6026
6036
|
d: "M430.241 125.78C430.987 105.807 437.521 90.4065 449.841 79.5799C462.161 68.7532 478.867 63.3398 499.961 63.3398C513.961 63.3398 525.907 65.7665 535.801 70.6199C545.881 75.4732 553.441 82.0998 558.481 90.4998C563.707 98.8998 566.321 108.327 566.321 118.78C566.321 131.1 563.241 141.18 557.081 149.02C550.921 156.673 543.734 161.9 535.521 164.7V165.82C546.161 169.367 554.561 175.247 560.721 183.46C566.881 191.673 569.961 202.22 569.961 215.1C569.961 226.673 567.254 236.94 561.841 245.9C560.436 248.258 558.849 250.481 557.081 252.569L443.5 252.662C432.5 241 427.721 230.5 427.721 207.82H474.201C474.387 216.033 476.721 222.567 481.201 227.42C485.681 232.087 492.214 234.42 500.801 234.42C508.081 234.42 513.681 232.367 517.601 228.26C521.707 223.967 523.761 218.367 523.761 211.46C523.761 202.5 520.867 196.06 515.081 192.14C509.481 188.033 500.427 185.98 487.921 185.98H478.961V147.06H487.921C497.441 147.06 505.094 145.473 510.881 142.3C516.854 138.94 519.841 133.06 519.841 124.66C519.841 117.94 517.974 112.713 514.241 108.98C510.507 105.247 505.374 103.38 498.841 103.38C491.747 103.38 486.427 105.527 482.881 109.82C479.521 114.113 477.561 119.433 477.001 125.78H430.241Z",
|
|
6027
|
-
fill:
|
|
6037
|
+
fill: A.cBBDEFB,
|
|
6028
6038
|
fillOpacity: "0.6"
|
|
6029
6039
|
}
|
|
6030
6040
|
),
|
|
6031
|
-
/* @__PURE__ */ e("rect", { x: "43", y: "87.5", width: "46", height: "20", fill:
|
|
6032
|
-
/* @__PURE__ */ e("rect", { x: "29", y: "109.5", width: "46", height: "20", fill:
|
|
6033
|
-
/* @__PURE__ */ e("rect", { x: "29", y: "65.5", width: "46", height: "20", fill:
|
|
6034
|
-
/* @__PURE__ */ e("rect", { x: "356", y: "0.5", width: "55", height: "20", fill:
|
|
6035
|
-
/* @__PURE__ */ e("rect", { x: "572", y: "142.5", width: "55", height: "20", fill:
|
|
6036
|
-
/* @__PURE__ */ e("rect", { x: "589", y: "120.5", width: "55", height: "20", fill:
|
|
6041
|
+
/* @__PURE__ */ e("rect", { x: "43", y: "87.5", width: "46", height: "20", fill: A.cD6EBFD }),
|
|
6042
|
+
/* @__PURE__ */ e("rect", { x: "29", y: "109.5", width: "46", height: "20", fill: A.cD6EBFD }),
|
|
6043
|
+
/* @__PURE__ */ e("rect", { x: "29", y: "65.5", width: "46", height: "20", fill: A.cD6EBFD }),
|
|
6044
|
+
/* @__PURE__ */ e("rect", { x: "356", y: "0.5", width: "55", height: "20", fill: A.cD6EBFD }),
|
|
6045
|
+
/* @__PURE__ */ e("rect", { x: "572", y: "142.5", width: "55", height: "20", fill: A.cD6EBFD }),
|
|
6046
|
+
/* @__PURE__ */ e("rect", { x: "589", y: "120.5", width: "55", height: "20", fill: A.cD6EBFD }),
|
|
6037
6047
|
/* @__PURE__ */ e(
|
|
6038
6048
|
"path",
|
|
6039
6049
|
{
|
|
6040
6050
|
d: "M3 255.5L651 255.5",
|
|
6041
|
-
stroke:
|
|
6051
|
+
stroke: A.c64B5F6,
|
|
6042
6052
|
strokeWidth: "5",
|
|
6043
6053
|
strokeLinecap: "round"
|
|
6044
6054
|
}
|
|
@@ -6048,7 +6058,7 @@ function tn({ width: t, height: r }) {
|
|
|
6048
6058
|
{
|
|
6049
6059
|
width: "179",
|
|
6050
6060
|
height: "192",
|
|
6051
|
-
fill:
|
|
6061
|
+
fill: A.cFFFFFF,
|
|
6052
6062
|
transform: "translate(246 60.5)"
|
|
6053
6063
|
}
|
|
6054
6064
|
) }) })
|
|
@@ -6056,8 +6066,8 @@ function tn({ width: t, height: r }) {
|
|
|
6056
6066
|
}
|
|
6057
6067
|
) });
|
|
6058
6068
|
}
|
|
6059
|
-
function
|
|
6060
|
-
const r =
|
|
6069
|
+
function Fo({ onClick: t }) {
|
|
6070
|
+
const r = oe("md");
|
|
6061
6071
|
return /* @__PURE__ */ s(
|
|
6062
6072
|
f,
|
|
6063
6073
|
{
|
|
@@ -6068,7 +6078,7 @@ function Eo({ onClick: t }) {
|
|
|
6068
6078
|
justify: "center",
|
|
6069
6079
|
gap: "md",
|
|
6070
6080
|
children: [
|
|
6071
|
-
/* @__PURE__ */ e(
|
|
6081
|
+
/* @__PURE__ */ e(en, { width: r ? 600 : 300 }),
|
|
6072
6082
|
/* @__PURE__ */ e(x, { fontWeight: "bold", fontSize: r ? "3xl" : "2xl", children: "We Are Sorry ..." }),
|
|
6073
6083
|
t && /* @__PURE__ */ e(N, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
|
|
6074
6084
|
]
|
|
@@ -6092,7 +6102,7 @@ const c = {
|
|
|
6092
6102
|
cFFE18B: "#FFE18B",
|
|
6093
6103
|
cFFFFFF: "#FFFFFF"
|
|
6094
6104
|
};
|
|
6095
|
-
function
|
|
6105
|
+
function tn({ width: t, height: r }) {
|
|
6096
6106
|
return /* @__PURE__ */ e(q, { children: /* @__PURE__ */ s(
|
|
6097
6107
|
"svg",
|
|
6098
6108
|
{
|
|
@@ -6764,8 +6774,8 @@ function rn({ width: t, height: r }) {
|
|
|
6764
6774
|
}
|
|
6765
6775
|
) });
|
|
6766
6776
|
}
|
|
6767
|
-
function
|
|
6768
|
-
const r =
|
|
6777
|
+
function Eo({ onClick: t }) {
|
|
6778
|
+
const r = oe("md");
|
|
6769
6779
|
return /* @__PURE__ */ s(
|
|
6770
6780
|
f,
|
|
6771
6781
|
{
|
|
@@ -6777,7 +6787,7 @@ function Mo({ onClick: t }) {
|
|
|
6777
6787
|
gap: "md",
|
|
6778
6788
|
overflow: "overflow-hidden",
|
|
6779
6789
|
children: [
|
|
6780
|
-
/* @__PURE__ */ e(
|
|
6790
|
+
/* @__PURE__ */ e(tn, { width: r ? 600 : 300 }),
|
|
6781
6791
|
/* @__PURE__ */ e(
|
|
6782
6792
|
x,
|
|
6783
6793
|
{
|
|
@@ -6801,9 +6811,9 @@ function Mo({ onClick: t }) {
|
|
|
6801
6811
|
}
|
|
6802
6812
|
);
|
|
6803
6813
|
}
|
|
6804
|
-
const
|
|
6814
|
+
const Mo = (t) => {
|
|
6805
6815
|
var i, o, n, l, h;
|
|
6806
|
-
const r =
|
|
6816
|
+
const r = oe("md");
|
|
6807
6817
|
return /* @__PURE__ */ s(
|
|
6808
6818
|
ut,
|
|
6809
6819
|
{
|
|
@@ -6817,9 +6827,9 @@ const Lo = (t) => {
|
|
|
6817
6827
|
}
|
|
6818
6828
|
},
|
|
6819
6829
|
children: [
|
|
6820
|
-
/* @__PURE__ */ e(
|
|
6830
|
+
/* @__PURE__ */ e($t, { ...t.dialogTitleProps, children: typeof t.title == "string" ? /* @__PURE__ */ e(x, { fontSize: "lg", fontWeight: "medium", children: t.title }) : t.title }),
|
|
6821
6831
|
/* @__PURE__ */ e(ft, { children: typeof t.description == "string" ? /* @__PURE__ */ e(x, { fontSize: "md", lineHeight: "leading-6", color: "tertiary", children: t.description }) : t.description }),
|
|
6822
|
-
/* @__PURE__ */ e(
|
|
6832
|
+
/* @__PURE__ */ e(Gt, { children: /* @__PURE__ */ e(
|
|
6823
6833
|
f,
|
|
6824
6834
|
{
|
|
6825
6835
|
display: "flex",
|
|
@@ -6864,7 +6874,7 @@ const Lo = (t) => {
|
|
|
6864
6874
|
},
|
|
6865
6875
|
t.key
|
|
6866
6876
|
);
|
|
6867
|
-
},
|
|
6877
|
+
}, Lo = ge(
|
|
6868
6878
|
({
|
|
6869
6879
|
children: t,
|
|
6870
6880
|
height: r,
|
|
@@ -6884,17 +6894,17 @@ const Lo = (t) => {
|
|
|
6884
6894
|
footerProps: C = { borderTop: !0 },
|
|
6885
6895
|
variantTag: z = "info"
|
|
6886
6896
|
}) => {
|
|
6887
|
-
const Z =
|
|
6897
|
+
const Z = ne(null), [T, U] = k("100vh");
|
|
6888
6898
|
$(() => {
|
|
6889
|
-
const
|
|
6899
|
+
const H = () => {
|
|
6890
6900
|
if (Z.current) {
|
|
6891
6901
|
const P = Z.current.getBoundingClientRect().top;
|
|
6892
6902
|
U(`calc(100vh - ${P}px)`);
|
|
6893
6903
|
}
|
|
6894
6904
|
};
|
|
6895
|
-
return
|
|
6905
|
+
return H(), window.addEventListener("resize", H), () => window.removeEventListener("resize", H);
|
|
6896
6906
|
}, []);
|
|
6897
|
-
const
|
|
6907
|
+
const L = () => d ? /* @__PURE__ */ s(f, { direction: "row", gap: "sm", align: "center", children: [
|
|
6898
6908
|
/* @__PURE__ */ e(x, { fontWeight: "medium", children: u }),
|
|
6899
6909
|
/* @__PURE__ */ e(Le, { border: !0, text: d, variant: z })
|
|
6900
6910
|
] }) : /* @__PURE__ */ e(x, { fontWeight: "medium", children: u }), ae = () => h || /* @__PURE__ */ s(
|
|
@@ -6905,7 +6915,7 @@ const Lo = (t) => {
|
|
|
6905
6915
|
align: "flex-start",
|
|
6906
6916
|
gap: "md",
|
|
6907
6917
|
children: [
|
|
6908
|
-
/* @__PURE__ */ e(f, { children: u ?
|
|
6918
|
+
/* @__PURE__ */ e(f, { children: u ? L() : null }),
|
|
6909
6919
|
/* @__PURE__ */ e(f, { ...m, children: g ?? null })
|
|
6910
6920
|
]
|
|
6911
6921
|
}
|
|
@@ -6948,7 +6958,7 @@ const Lo = (t) => {
|
|
|
6948
6958
|
}
|
|
6949
6959
|
);
|
|
6950
6960
|
}
|
|
6951
|
-
),
|
|
6961
|
+
), Wo = qe.memo(
|
|
6952
6962
|
({ value: t, options: r = [], onChange: i, multiple: o }) => {
|
|
6953
6963
|
const n = (t == null ? void 0 : t.map((a) => a.value)) || [], l = (r == null ? void 0 : r.filter((a) => n.includes(a.value))) || [], h = (a) => {
|
|
6954
6964
|
const u = [...l];
|
|
@@ -6966,23 +6976,23 @@ const Lo = (t) => {
|
|
|
6966
6976
|
)) });
|
|
6967
6977
|
}
|
|
6968
6978
|
);
|
|
6969
|
-
function bt(t) {
|
|
6970
|
-
return null;
|
|
6971
|
-
}
|
|
6972
|
-
bt.displayName = "LayoutDialog.Header";
|
|
6973
6979
|
function Dt(t) {
|
|
6974
6980
|
return null;
|
|
6975
6981
|
}
|
|
6976
|
-
Dt.displayName = "LayoutDialog.
|
|
6982
|
+
Dt.displayName = "LayoutDialog.Header";
|
|
6977
6983
|
function wt(t) {
|
|
6978
6984
|
return null;
|
|
6979
6985
|
}
|
|
6980
|
-
wt.displayName = "LayoutDialog.
|
|
6986
|
+
wt.displayName = "LayoutDialog.Body";
|
|
6981
6987
|
function kt(t) {
|
|
6982
6988
|
return null;
|
|
6983
6989
|
}
|
|
6984
|
-
kt.displayName = "LayoutDialog.
|
|
6985
|
-
|
|
6990
|
+
kt.displayName = "LayoutDialog.Aside";
|
|
6991
|
+
function St(t) {
|
|
6992
|
+
return null;
|
|
6993
|
+
}
|
|
6994
|
+
St.displayName = "LayoutDialog.Footer";
|
|
6995
|
+
const ie = {
|
|
6986
6996
|
"lyd-root": "_lyd-root_1e92c_1",
|
|
6987
6997
|
"lyd-backdrop": "_lyd-backdrop_1e92c_28",
|
|
6988
6998
|
"lyd-panel": "_lyd-panel_1e92c_37",
|
|
@@ -6999,29 +7009,29 @@ const re = {
|
|
|
6999
7009
|
"lyd-vm-group": "_lyd-vm-group_1e92c_162",
|
|
7000
7010
|
"lyd-vm-btn": "_lyd-vm-btn_1e92c_170",
|
|
7001
7011
|
"lyd-close-btn": "_lyd-close-btn_1e92c_193"
|
|
7002
|
-
},
|
|
7012
|
+
}, rn = [
|
|
7003
7013
|
{
|
|
7004
7014
|
mode: "sidebar",
|
|
7005
7015
|
label: "Sidebar",
|
|
7006
|
-
icon: /* @__PURE__ */ e(
|
|
7016
|
+
icon: /* @__PURE__ */ e(on, {})
|
|
7007
7017
|
},
|
|
7008
7018
|
{
|
|
7009
7019
|
mode: "modal",
|
|
7010
7020
|
label: "Modal",
|
|
7011
|
-
icon: /* @__PURE__ */ e(
|
|
7021
|
+
icon: /* @__PURE__ */ e(w, { name: "Newscreen", size: "sm" })
|
|
7012
7022
|
},
|
|
7013
7023
|
{
|
|
7014
7024
|
mode: "fullscreen",
|
|
7015
7025
|
label: "Fullscreen",
|
|
7016
|
-
icon: /* @__PURE__ */ e(
|
|
7026
|
+
icon: /* @__PURE__ */ e(w, { name: "Fullscreen", size: "sm" })
|
|
7017
7027
|
}
|
|
7018
7028
|
];
|
|
7019
|
-
function
|
|
7020
|
-
return /* @__PURE__ */ e("div", { className:
|
|
7029
|
+
function nn({ value: t, onChange: r }) {
|
|
7030
|
+
return /* @__PURE__ */ e("div", { className: ie["lyd-vm-group"], role: "group", "aria-label": "View mode", children: rn.map((i) => /* @__PURE__ */ e(
|
|
7021
7031
|
"button",
|
|
7022
7032
|
{
|
|
7023
7033
|
type: "button",
|
|
7024
|
-
className:
|
|
7034
|
+
className: ie["lyd-vm-btn"],
|
|
7025
7035
|
"data-active": t === i.mode,
|
|
7026
7036
|
"aria-label": `Switch to ${i.label} view`,
|
|
7027
7037
|
"aria-pressed": t === i.mode,
|
|
@@ -7031,7 +7041,7 @@ function on({ value: t, onChange: r }) {
|
|
|
7031
7041
|
i.mode
|
|
7032
7042
|
)) });
|
|
7033
7043
|
}
|
|
7034
|
-
function
|
|
7044
|
+
function on() {
|
|
7035
7045
|
return /* @__PURE__ */ s(
|
|
7036
7046
|
"svg",
|
|
7037
7047
|
{
|
|
@@ -7058,7 +7068,7 @@ const ct = {
|
|
|
7058
7068
|
xl: "1200px",
|
|
7059
7069
|
"2xl": "1440px"
|
|
7060
7070
|
};
|
|
7061
|
-
function
|
|
7071
|
+
function ln(t) {
|
|
7062
7072
|
return t ? t in ct ? ct[t] : t : ct.xl;
|
|
7063
7073
|
}
|
|
7064
7074
|
function $e(t, r) {
|
|
@@ -7067,7 +7077,7 @@ function $e(t, r) {
|
|
|
7067
7077
|
qe.isValidElement(o) && o.type === r && (i = o.props.children ?? null);
|
|
7068
7078
|
}), i;
|
|
7069
7079
|
}
|
|
7070
|
-
function
|
|
7080
|
+
function cn(t) {
|
|
7071
7081
|
const {
|
|
7072
7082
|
isOpen: r,
|
|
7073
7083
|
onClose: i,
|
|
@@ -7082,45 +7092,45 @@ function an(t) {
|
|
|
7082
7092
|
disableBackdropClose: m = !1,
|
|
7083
7093
|
lockBodyScroll: y = !0,
|
|
7084
7094
|
children: b
|
|
7085
|
-
} = t, [S, C] = k(n), z = o ?? S, T =
|
|
7095
|
+
} = t, [S, C] = k(n), z = o ?? S, T = oe("md") ? z : "fullscreen", U = ve(
|
|
7086
7096
|
(Q) => {
|
|
7087
7097
|
o === void 0 && C(Q), l == null || l(Q);
|
|
7088
7098
|
},
|
|
7089
7099
|
[o, l]
|
|
7090
|
-
),
|
|
7100
|
+
), L = ne(null);
|
|
7091
7101
|
$(() => {
|
|
7092
7102
|
if (!(!r || !y))
|
|
7093
|
-
return
|
|
7094
|
-
document.body.style.overflow =
|
|
7103
|
+
return L.current = document.body.style.overflow, document.body.style.overflow = "hidden", () => {
|
|
7104
|
+
document.body.style.overflow = L.current ?? "";
|
|
7095
7105
|
};
|
|
7096
7106
|
}, [r, y]), $(() => {
|
|
7097
7107
|
if (!r || g) return;
|
|
7098
|
-
const Q = (
|
|
7099
|
-
|
|
7108
|
+
const Q = (ee) => {
|
|
7109
|
+
ee.key === "Escape" && i();
|
|
7100
7110
|
};
|
|
7101
7111
|
return window.addEventListener("keydown", Q), () => window.removeEventListener("keydown", Q);
|
|
7102
7112
|
}, [r, g, i]);
|
|
7103
7113
|
const ae = fe(
|
|
7104
|
-
() => $e(b, bt),
|
|
7105
|
-
[b]
|
|
7106
|
-
), J = fe(
|
|
7107
7114
|
() => $e(b, Dt),
|
|
7108
7115
|
[b]
|
|
7109
|
-
),
|
|
7116
|
+
), J = fe(
|
|
7110
7117
|
() => $e(b, wt),
|
|
7111
7118
|
[b]
|
|
7112
|
-
),
|
|
7119
|
+
), H = fe(
|
|
7113
7120
|
() => $e(b, kt),
|
|
7114
7121
|
[b]
|
|
7122
|
+
), P = fe(
|
|
7123
|
+
() => $e(b, St),
|
|
7124
|
+
[b]
|
|
7115
7125
|
);
|
|
7116
7126
|
if (!r) return null;
|
|
7117
|
-
const
|
|
7118
|
-
|
|
7119
|
-
T === "modal" &&
|
|
7120
|
-
T === "fullscreen" &&
|
|
7121
|
-
T === "sidebar" &&
|
|
7122
|
-
].filter(Boolean).join(" "),
|
|
7123
|
-
"--lyd-max-w":
|
|
7127
|
+
const le = [
|
|
7128
|
+
ie["lyd-panel"],
|
|
7129
|
+
T === "modal" && ie["lyd-modal"],
|
|
7130
|
+
T === "fullscreen" && ie["lyd-fullscreen"],
|
|
7131
|
+
T === "sidebar" && ie["lyd-sidebar"]
|
|
7132
|
+
].filter(Boolean).join(" "), ce = {
|
|
7133
|
+
"--lyd-max-w": ln(u),
|
|
7124
7134
|
...d !== void 0 && { "--lyd-aside-w": d }
|
|
7125
7135
|
}, G = () => {
|
|
7126
7136
|
m || i();
|
|
@@ -7128,52 +7138,52 @@ function an(t) {
|
|
|
7128
7138
|
return /* @__PURE__ */ s(
|
|
7129
7139
|
"div",
|
|
7130
7140
|
{
|
|
7131
|
-
className:
|
|
7132
|
-
style:
|
|
7141
|
+
className: ie["lyd-root"],
|
|
7142
|
+
style: ce,
|
|
7133
7143
|
role: "dialog",
|
|
7134
7144
|
"aria-modal": "true",
|
|
7135
7145
|
children: [
|
|
7136
7146
|
/* @__PURE__ */ e(
|
|
7137
7147
|
"div",
|
|
7138
7148
|
{
|
|
7139
|
-
className:
|
|
7149
|
+
className: ie["lyd-backdrop"],
|
|
7140
7150
|
onClick: G,
|
|
7141
7151
|
"aria-hidden": "true"
|
|
7142
7152
|
}
|
|
7143
7153
|
),
|
|
7144
|
-
/* @__PURE__ */ s("div", { className:
|
|
7145
|
-
/* @__PURE__ */ s("div", { className:
|
|
7146
|
-
/* @__PURE__ */ e("div", { className:
|
|
7147
|
-
/* @__PURE__ */ s("div", { className:
|
|
7148
|
-
h && /* @__PURE__ */ e(
|
|
7154
|
+
/* @__PURE__ */ s("div", { className: le, children: [
|
|
7155
|
+
/* @__PURE__ */ s("div", { className: ie["lyd-header"], children: [
|
|
7156
|
+
/* @__PURE__ */ e("div", { className: ie["lyd-header-content"], children: ae }),
|
|
7157
|
+
/* @__PURE__ */ s("div", { className: ie["lyd-header-actions"], children: [
|
|
7158
|
+
h && /* @__PURE__ */ e(nn, { value: z, onChange: U }),
|
|
7149
7159
|
a && /* @__PURE__ */ e(
|
|
7150
7160
|
"button",
|
|
7151
7161
|
{
|
|
7152
7162
|
type: "button",
|
|
7153
|
-
className:
|
|
7163
|
+
className: ie["lyd-close-btn"],
|
|
7154
7164
|
onClick: i,
|
|
7155
7165
|
"aria-label": "Close dialog",
|
|
7156
|
-
children: /* @__PURE__ */ e(
|
|
7166
|
+
children: /* @__PURE__ */ e(w, { name: "Cross", size: "md" })
|
|
7157
7167
|
}
|
|
7158
7168
|
)
|
|
7159
7169
|
] })
|
|
7160
7170
|
] }),
|
|
7161
|
-
/* @__PURE__ */ s("div", { className:
|
|
7162
|
-
/* @__PURE__ */ e("div", { className:
|
|
7163
|
-
|
|
7171
|
+
/* @__PURE__ */ s("div", { className: ie["lyd-main"], children: [
|
|
7172
|
+
/* @__PURE__ */ e("div", { className: ie["lyd-body"], children: J }),
|
|
7173
|
+
H && /* @__PURE__ */ e("aside", { className: ie["lyd-aside"], children: H })
|
|
7164
7174
|
] }),
|
|
7165
|
-
P && /* @__PURE__ */ e("div", { className:
|
|
7175
|
+
P && /* @__PURE__ */ e("div", { className: ie["lyd-footer"], children: P })
|
|
7166
7176
|
] })
|
|
7167
7177
|
]
|
|
7168
7178
|
}
|
|
7169
7179
|
);
|
|
7170
7180
|
}
|
|
7171
|
-
const Ke =
|
|
7172
|
-
Ke.Header =
|
|
7173
|
-
Ke.Body =
|
|
7174
|
-
Ke.Aside =
|
|
7175
|
-
Ke.Footer =
|
|
7176
|
-
function
|
|
7181
|
+
const Ke = cn;
|
|
7182
|
+
Ke.Header = Dt;
|
|
7183
|
+
Ke.Body = wt;
|
|
7184
|
+
Ke.Aside = kt;
|
|
7185
|
+
Ke.Footer = St;
|
|
7186
|
+
function Bo({ url: t, filename: r, onClose: i }) {
|
|
7177
7187
|
return $(() => {
|
|
7178
7188
|
const o = (n) => {
|
|
7179
7189
|
n.key === "Escape" && i();
|
|
@@ -7271,7 +7281,7 @@ function Io({ url: t, filename: r, onClose: i }) {
|
|
|
7271
7281
|
}
|
|
7272
7282
|
);
|
|
7273
7283
|
}
|
|
7274
|
-
const
|
|
7284
|
+
const Io = (t) => {
|
|
7275
7285
|
const { defaultTab: r = 0, paramKey: i = "tab" } = t || {}, [o, n] = Ye(), l = Pe(o.toString());
|
|
7276
7286
|
return {
|
|
7277
7287
|
activeTab: l[i] ? parseInt(l[i]) : r,
|
|
@@ -7284,7 +7294,7 @@ const Ao = (t) => {
|
|
|
7284
7294
|
searchQueries: l
|
|
7285
7295
|
};
|
|
7286
7296
|
};
|
|
7287
|
-
function
|
|
7297
|
+
function Ao({
|
|
7288
7298
|
appName: t,
|
|
7289
7299
|
menuConfig: r,
|
|
7290
7300
|
formatTitle: i
|
|
@@ -7305,7 +7315,7 @@ function Ho({
|
|
|
7305
7315
|
document.title = (i || a)(h, t);
|
|
7306
7316
|
}, [o.pathname]);
|
|
7307
7317
|
}
|
|
7308
|
-
const
|
|
7318
|
+
const Ho = () => {
|
|
7309
7319
|
const [t, r] = Ye(), i = Pe(t.toString()), o = Yt(), n = Te(), l = o.id;
|
|
7310
7320
|
return {
|
|
7311
7321
|
// query params
|
|
@@ -7324,7 +7334,7 @@ const zo = () => {
|
|
|
7324
7334
|
hasId: !!l
|
|
7325
7335
|
};
|
|
7326
7336
|
};
|
|
7327
|
-
function
|
|
7337
|
+
function zo(t) {
|
|
7328
7338
|
var o, n;
|
|
7329
7339
|
const r = t.decodedAccessToken;
|
|
7330
7340
|
return fe(() => {
|
|
@@ -7350,101 +7360,101 @@ function Ro(t) {
|
|
|
7350
7360
|
}, [(n = (o = r == null ? void 0 : r.access) == null ? void 0 : o.role) == null ? void 0 : n.code, t]);
|
|
7351
7361
|
}
|
|
7352
7362
|
export {
|
|
7353
|
-
|
|
7354
|
-
|
|
7355
|
-
|
|
7363
|
+
Un as ActionMenu,
|
|
7364
|
+
gi as AdvanceFilterBar,
|
|
7365
|
+
Vn as App,
|
|
7356
7366
|
Er as AppComponent,
|
|
7357
7367
|
Kt as AppContext,
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7368
|
+
_n as AppLayout,
|
|
7369
|
+
bo as AsideBar,
|
|
7370
|
+
jn as BackButton,
|
|
7371
|
+
Ci as ColumnFilterDropdown,
|
|
7372
|
+
Mo as ConfirmationDialog,
|
|
7373
|
+
Di as DataTable,
|
|
7364
7374
|
O as DecisionWrapper,
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7375
|
+
bt as EachUtils,
|
|
7376
|
+
ko as EmptyStatePage,
|
|
7377
|
+
fi as FilterDrawer,
|
|
7378
|
+
Do as FloatingFooter,
|
|
7379
|
+
Fo as ForbiddenPage,
|
|
7380
|
+
vo as Form,
|
|
7381
|
+
Lo as FullSection,
|
|
7382
|
+
Tn as HeaderLeftSlot,
|
|
7373
7383
|
Wr as HeaderLeftSlotOutlet,
|
|
7374
7384
|
Lr as HeaderLeftSlotProvider,
|
|
7375
|
-
|
|
7376
|
-
|
|
7377
|
-
|
|
7378
|
-
|
|
7385
|
+
$n as HorizontalField,
|
|
7386
|
+
Bo as ImagePreview,
|
|
7387
|
+
Vi as InputFile,
|
|
7388
|
+
Ui as InputImage,
|
|
7379
7389
|
Ke as LayoutDialog,
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
|
|
7383
|
-
|
|
7384
|
-
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7390
|
+
kt as LayoutDialogAside,
|
|
7391
|
+
wt as LayoutDialogBody,
|
|
7392
|
+
St as LayoutDialogFooter,
|
|
7393
|
+
Dt as LayoutDialogHeader,
|
|
7394
|
+
Zn as ModuleSwitcher,
|
|
7395
|
+
Hr as ModuleSwitcherModal,
|
|
7396
|
+
So as NotFoundPage,
|
|
7397
|
+
Gn as PageLayout,
|
|
7388
7398
|
Xe as Pressable,
|
|
7389
|
-
|
|
7390
|
-
|
|
7391
|
-
|
|
7399
|
+
jr as RightDrawer,
|
|
7400
|
+
Qi as ScrollToTopButton,
|
|
7401
|
+
qn as Section,
|
|
7392
7402
|
or as SectionFooter,
|
|
7393
7403
|
nr as SectionHeader,
|
|
7394
|
-
|
|
7395
|
-
|
|
7404
|
+
Wo as SelectButton,
|
|
7405
|
+
Eo as ServerErrorPage,
|
|
7396
7406
|
Sr as SidebarBadgesProvider,
|
|
7397
|
-
|
|
7407
|
+
Nn as SidebarGroupSlot,
|
|
7398
7408
|
Ir as SidebarGroupSlotOutlet,
|
|
7399
7409
|
Br as SidebarGroupSlotProvider,
|
|
7400
7410
|
Mr as SidebarHeaderSlot,
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7406
|
-
|
|
7407
|
-
|
|
7408
|
-
|
|
7409
|
-
|
|
7410
|
-
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7411
|
+
xi as TableFooter,
|
|
7412
|
+
yi as TableHeader,
|
|
7413
|
+
Kn as TableSection,
|
|
7414
|
+
mi as TableWrapper,
|
|
7415
|
+
Co as ToggleStatus,
|
|
7416
|
+
xe as Typography,
|
|
7417
|
+
wo as VerticalField,
|
|
7418
|
+
On as clearModuleSelection,
|
|
7419
|
+
eo as createInitialFromUserName,
|
|
7420
|
+
oo as cssVars,
|
|
7421
|
+
ao as formHasChanged,
|
|
7422
|
+
no as formatDate,
|
|
7423
|
+
Li as formatDateToIndonesian,
|
|
7424
|
+
ro as formatRupiah,
|
|
7425
|
+
Yn as getDateFilterValue,
|
|
7426
|
+
Qn as getDateRangeFilterValue,
|
|
7427
|
+
io as getInitials,
|
|
7428
|
+
Jn as getValueDropdownMultipleFilter,
|
|
7429
|
+
Pn as getValueRadioFilter,
|
|
7430
|
+
ui as getValueSearch,
|
|
7421
7431
|
ot as getValuesFilter,
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
|
|
7430
|
-
|
|
7431
|
-
|
|
7432
|
-
|
|
7433
|
-
|
|
7434
|
-
|
|
7435
|
-
|
|
7436
|
-
|
|
7437
|
-
|
|
7438
|
-
|
|
7432
|
+
_t as handleChangeFilter,
|
|
7433
|
+
xo as handleOnScroll,
|
|
7434
|
+
mo as isEmail,
|
|
7435
|
+
Xn as isFilterActive,
|
|
7436
|
+
ho as isOnlyLettersAndSpaces,
|
|
7437
|
+
so as isPhoneNumber,
|
|
7438
|
+
yo as isSlug,
|
|
7439
|
+
lo as oneDayInMs,
|
|
7440
|
+
to as parseIndonesianDateToDate,
|
|
7441
|
+
po as preventNonCoordinateInput,
|
|
7442
|
+
go as preventNonNumberAndDecimalInput,
|
|
7443
|
+
uo as preventNonNumberInput,
|
|
7444
|
+
fo as preventNumberInput,
|
|
7445
|
+
ai as resolveDateRangeValueToString,
|
|
7446
|
+
si as resolveDateValueToString,
|
|
7447
|
+
li as resolveDropdownValueToString,
|
|
7448
|
+
ci as resolveRadioValueToString,
|
|
7439
7449
|
it as resolveSidebarBadge,
|
|
7440
|
-
|
|
7450
|
+
co as textWidth,
|
|
7441
7451
|
er as useApp,
|
|
7442
7452
|
kr as useAppState,
|
|
7443
|
-
|
|
7444
|
-
|
|
7453
|
+
zo as useAuthRole,
|
|
7454
|
+
Ao as useDynamicTitle,
|
|
7445
7455
|
ir as useModuleSelection,
|
|
7446
|
-
|
|
7447
|
-
|
|
7456
|
+
vt as useRouteInfo,
|
|
7457
|
+
Ho as useRouteParams,
|
|
7448
7458
|
Fr as useSidebarBadges,
|
|
7449
|
-
|
|
7459
|
+
Io as useTabState
|
|
7450
7460
|
};
|