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