@starasia/admin 5.3.0 → 5.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/index.d.ts +0 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +483 -524
- package/dist/index.umd.js +1 -1
- package/package.json +3 -3
- package/dist/components/ModalDialog/index.d.ts +0 -12
package/dist/index.es.js
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
export * from "@starasia/alert";
|
|
2
|
-
import { Badges as
|
|
2
|
+
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 nr, BreadcrumbItem as
|
|
6
|
+
import { Breadcrumb as nr, BreadcrumbItem as kt, BreadcrumbLink as ir } from "@starasia/breadcrumb";
|
|
7
7
|
export * from "@starasia/breadcrumb";
|
|
8
|
-
import { Button as
|
|
8
|
+
import { Button as T } from "@starasia/button";
|
|
9
9
|
export * from "@starasia/button";
|
|
10
10
|
export * from "@starasia/card";
|
|
11
11
|
import { StarasiaDate as or } from "@starasia/date";
|
|
12
12
|
export * from "@starasia/date";
|
|
13
|
-
import { Dialog as
|
|
13
|
+
import { Dialog as ut, DialogTitle as Ot, DialogBody as ht, DialogFooter as _t } from "@starasia/dialog";
|
|
14
14
|
export * from "@starasia/dialog";
|
|
15
15
|
import { Drawer as lr } from "@starasia/drawer";
|
|
16
16
|
export * from "@starasia/drawer";
|
|
17
|
-
import { Dropdown as
|
|
17
|
+
import { Dropdown as ft } from "@starasia/dropdown";
|
|
18
18
|
export * from "@starasia/dropdown";
|
|
19
19
|
import { useMediaQuery as re } from "@starasia/hooks";
|
|
20
20
|
export * from "@starasia/hooks";
|
|
21
|
-
import { searchParamsToObject as
|
|
21
|
+
import { searchParamsToObject as Pe } from "@starasia/http";
|
|
22
22
|
export * from "@starasia/http";
|
|
23
|
-
import { Input as
|
|
23
|
+
import { Input as gt } from "@starasia/input";
|
|
24
24
|
export * from "@starasia/input";
|
|
25
|
-
import { Menu as Zt, MenuButton as
|
|
25
|
+
import { Menu as Zt, MenuButton as Ue, MenuLists as jt, MenuHeading as cr, MenuBody as $t, MenuFooter as ar } from "@starasia/menu";
|
|
26
26
|
export * from "@starasia/menu";
|
|
27
27
|
import { Pagination as sr } from "@starasia/pagination";
|
|
28
28
|
export * from "@starasia/pagination";
|
|
29
29
|
export * from "@starasia/storage";
|
|
30
|
-
import { Tr as
|
|
30
|
+
import { Tr as Re, Td as Se, Table as Ut, Thead as dr, Th as St, Tbody as ur } from "@starasia/table";
|
|
31
31
|
export * from "@starasia/table";
|
|
32
32
|
export * from "@starasia/tabs";
|
|
33
33
|
import { Textarea as hr } from "@starasia/textarea";
|
|
34
34
|
export * from "@starasia/textarea";
|
|
35
|
-
import { useTheme as fr, ThemeProvider as
|
|
35
|
+
import { useTheme as fr, ThemeProvider as Ft, useColor as gr } from "@starasia/theme";
|
|
36
36
|
export * from "@starasia/theme";
|
|
37
37
|
export * from "@starasia/toast";
|
|
38
38
|
import { Toggle as Gt } from "@starasia/toggle";
|
|
39
39
|
export * from "@starasia/toggle";
|
|
40
40
|
import { Tooltip as me } from "@starasia/tooltip";
|
|
41
41
|
export * from "@starasia/tooltip";
|
|
42
|
-
import { Checkbox as
|
|
42
|
+
import { Checkbox as ct } from "@starasia/checkbox";
|
|
43
43
|
export * from "@starasia/checkbox";
|
|
44
44
|
import { Radio as mr } from "@starasia/radio";
|
|
45
45
|
export * from "@starasia/radio";
|
|
@@ -53,12 +53,12 @@ export * from "@starasia/progress";
|
|
|
53
53
|
export * from "@starasia/stepper";
|
|
54
54
|
export * from "@starasia/accordion";
|
|
55
55
|
export * from "@starasia/story-record";
|
|
56
|
-
import { Skeleton as
|
|
56
|
+
import { Skeleton as Ve } from "@starasia/skeleton";
|
|
57
57
|
export * from "@starasia/skeleton";
|
|
58
58
|
export * from "@starasia/progress-stepper";
|
|
59
59
|
import { jsx as e, Fragment as J, jsxs as u } from "react/jsx-runtime";
|
|
60
|
-
import
|
|
61
|
-
import { useSearchParams as
|
|
60
|
+
import Ge, { createContext as Qe, useState as k, useContext as Be, useCallback as De, useMemo as he, memo as ce, useEffect as $, useRef as te, useLayoutEffect as at, isValidElement as st, forwardRef as qt, Children as yr, useImperativeHandle as pr } from "react";
|
|
61
|
+
import { useSearchParams as Ye, useNavigate as mt, useLocation as ze, Outlet as Et, Link as qe, useParams as Jt } from "react-router";
|
|
62
62
|
import xr, { createPortal as Pt } from "react-dom";
|
|
63
63
|
import Cr from "react-easy-crop";
|
|
64
64
|
const Dr = {
|
|
@@ -69,7 +69,7 @@ const Dr = {
|
|
|
69
69
|
userData: null,
|
|
70
70
|
setUserData: () => {
|
|
71
71
|
}
|
|
72
|
-
}, Qt =
|
|
72
|
+
}, Qt = Qe(Dr), Yt = () => Be(Qt), vr = (t) => {
|
|
73
73
|
const [r, n] = k(
|
|
74
74
|
(t == null ? void 0 : t.initialUserData) || null
|
|
75
75
|
);
|
|
@@ -77,7 +77,7 @@ const Dr = {
|
|
|
77
77
|
userData: r,
|
|
78
78
|
setUserData: n
|
|
79
79
|
};
|
|
80
|
-
}, Xt =
|
|
80
|
+
}, Xt = Qe({
|
|
81
81
|
badges: {},
|
|
82
82
|
setBadge: () => {
|
|
83
83
|
},
|
|
@@ -112,7 +112,7 @@ const Dr = {
|
|
|
112
112
|
[r, i, o, l]
|
|
113
113
|
);
|
|
114
114
|
return /* @__PURE__ */ e(Xt.Provider, { value: s, children: t });
|
|
115
|
-
}, wr = () =>
|
|
115
|
+
}, wr = () => Be(Xt), rt = (t, r) => {
|
|
116
116
|
const n = r !== void 0 ? r : t;
|
|
117
117
|
return n == null ? null : typeof n == "string" || typeof n == "number" ? { value: n } : n;
|
|
118
118
|
}, kr = ({
|
|
@@ -136,7 +136,7 @@ const Dr = {
|
|
|
136
136
|
setUserData: a.setUserData,
|
|
137
137
|
menuBottom: n
|
|
138
138
|
},
|
|
139
|
-
children: /* @__PURE__ */ e(br, { children: s ? /* @__PURE__ */ e(
|
|
139
|
+
children: /* @__PURE__ */ e(br, { children: s ? /* @__PURE__ */ e(Ft, { value: s, children: t }) : h ? /* @__PURE__ */ e(Ft, { value: h, children: t }) : t })
|
|
140
140
|
}
|
|
141
141
|
);
|
|
142
142
|
}, Vi = ce(kr);
|
|
@@ -177,11 +177,11 @@ function Sr({
|
|
|
177
177
|
}
|
|
178
178
|
);
|
|
179
179
|
}
|
|
180
|
-
const
|
|
180
|
+
const yt = Qe(null);
|
|
181
181
|
function Fr({ children: t }) {
|
|
182
182
|
const [r, n] = k(null), [o, i] = k(null), [l, s] = k(null), [a, h] = k(0), d = De(() => (h((g) => g + 1), () => h((g) => g - 1)), []);
|
|
183
183
|
return /* @__PURE__ */ e(
|
|
184
|
-
|
|
184
|
+
yt.Provider,
|
|
185
185
|
{
|
|
186
186
|
value: {
|
|
187
187
|
prependNode: r,
|
|
@@ -198,7 +198,7 @@ function Fr({ children: t }) {
|
|
|
198
198
|
);
|
|
199
199
|
}
|
|
200
200
|
function Er({ children: t }) {
|
|
201
|
-
const r =
|
|
201
|
+
const r = Be(yt);
|
|
202
202
|
return r ? /* @__PURE__ */ u(J, { 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,
|
|
@@ -209,7 +209,7 @@ function Ri({
|
|
|
209
209
|
children: t,
|
|
210
210
|
mode: r = "append"
|
|
211
211
|
}) {
|
|
212
|
-
const n =
|
|
212
|
+
const n = Be(yt);
|
|
213
213
|
if ($(() => {
|
|
214
214
|
if (!(r !== "replace" || !n))
|
|
215
215
|
return n.registerReplace();
|
|
@@ -220,7 +220,7 @@ function Ri({
|
|
|
220
220
|
const o = r === "prepend" ? n.prependNode : r === "replace" ? n.replaceNode : n.appendNode;
|
|
221
221
|
return o ? Pt(t, o) : null;
|
|
222
222
|
}
|
|
223
|
-
const
|
|
223
|
+
const pt = Qe(null);
|
|
224
224
|
function Mr({ children: t }) {
|
|
225
225
|
const [r, n] = k({}), [o, i] = k({}), l = De((h, d) => {
|
|
226
226
|
n((g) => g[h] === d ? g : { ...g, [h]: d });
|
|
@@ -231,10 +231,10 @@ function Mr({ children: t }) {
|
|
|
231
231
|
() => ({ outletNodes: r, setOutletNode: l, slotCounts: o, registerSlot: s }),
|
|
232
232
|
[r, l, o, s]
|
|
233
233
|
);
|
|
234
|
-
return /* @__PURE__ */ e(
|
|
234
|
+
return /* @__PURE__ */ e(pt.Provider, { value: a, children: t });
|
|
235
235
|
}
|
|
236
236
|
function Lr({ slotKey: t, fallback: r }) {
|
|
237
|
-
const n =
|
|
237
|
+
const n = Be(pt), o = n ? (n.slotCounts[t] ?? 0) > 0 : !1, i = te(n == null ? void 0 : n.setOutletNode);
|
|
238
238
|
i.current = n == null ? void 0 : n.setOutletNode;
|
|
239
239
|
const l = De(
|
|
240
240
|
(s) => {
|
|
@@ -247,7 +247,7 @@ function Lr({ slotKey: t, fallback: r }) {
|
|
|
247
247
|
return /* @__PURE__ */ e(J, { children: o ? /* @__PURE__ */ e("div", { ref: l, style: { display: "contents" } }) : r });
|
|
248
248
|
}
|
|
249
249
|
function zi({ slotKey: t, children: r }) {
|
|
250
|
-
const n =
|
|
250
|
+
const n = Be(pt), o = te(n == null ? void 0 : n.registerSlot);
|
|
251
251
|
if (o.current = n == null ? void 0 : n.registerSlot, $(() => {
|
|
252
252
|
var l;
|
|
253
253
|
return (l = o.current) == null ? void 0 : l.call(o, t);
|
|
@@ -258,39 +258,39 @@ function zi({ slotKey: t, children: r }) {
|
|
|
258
258
|
const i = n.outletNodes[t];
|
|
259
259
|
return i ? Pt(r, i) : null;
|
|
260
260
|
}
|
|
261
|
-
const
|
|
262
|
-
function
|
|
261
|
+
const Je = "moduleSwitcherGroupId", dt = "sa-module-switcher-change";
|
|
262
|
+
function Mt() {
|
|
263
263
|
if (typeof window > "u") return null;
|
|
264
|
-
const t = window.localStorage.getItem(
|
|
264
|
+
const t = window.localStorage.getItem(Je);
|
|
265
265
|
if (t === null) return null;
|
|
266
266
|
const r = Number(t);
|
|
267
267
|
return Number.isFinite(r) ? r : null;
|
|
268
268
|
}
|
|
269
269
|
function Kt(t) {
|
|
270
|
-
typeof window > "u" || (t === null ? window.localStorage.removeItem(
|
|
270
|
+
typeof window > "u" || (t === null ? window.localStorage.removeItem(Je) : window.localStorage.setItem(Je, String(t)), window.dispatchEvent(new CustomEvent(dt, { detail: t })));
|
|
271
271
|
}
|
|
272
272
|
function Ni() {
|
|
273
273
|
Kt(null);
|
|
274
274
|
}
|
|
275
275
|
function er() {
|
|
276
276
|
const [t, r] = k(
|
|
277
|
-
() =>
|
|
277
|
+
() => Mt()
|
|
278
278
|
);
|
|
279
279
|
return $(() => {
|
|
280
280
|
const o = () => {
|
|
281
|
-
r(
|
|
281
|
+
r(Mt());
|
|
282
282
|
}, i = (l) => {
|
|
283
|
-
l.key ===
|
|
283
|
+
l.key === Je && o();
|
|
284
284
|
};
|
|
285
|
-
return window.addEventListener(
|
|
286
|
-
window.removeEventListener(
|
|
285
|
+
return window.addEventListener(dt, o), window.addEventListener("storage", i), () => {
|
|
286
|
+
window.removeEventListener(dt, o), window.removeEventListener("storage", i);
|
|
287
287
|
};
|
|
288
288
|
}, []), { selectedGroupId: t, setSelectedGroupId: (o) => {
|
|
289
289
|
Kt(o), r(o);
|
|
290
290
|
} };
|
|
291
291
|
}
|
|
292
|
-
let
|
|
293
|
-
const
|
|
292
|
+
let je = 0, ke = !1, Lt = /* @__PURE__ */ new Set();
|
|
293
|
+
const Bt = () => /* @__PURE__ */ u(
|
|
294
294
|
"svg",
|
|
295
295
|
{
|
|
296
296
|
width: "100%",
|
|
@@ -307,7 +307,7 @@ const At = () => /* @__PURE__ */ u(
|
|
|
307
307
|
/* @__PURE__ */ e("line", { x1: "6", y1: "1.667", x2: "6", y2: "14.333" })
|
|
308
308
|
]
|
|
309
309
|
}
|
|
310
|
-
),
|
|
310
|
+
), Wt = {
|
|
311
311
|
width: "100%",
|
|
312
312
|
display: "flex",
|
|
313
313
|
alignItems: "center",
|
|
@@ -324,7 +324,7 @@ const At = () => /* @__PURE__ */ u(
|
|
|
324
324
|
cursor: "pointer",
|
|
325
325
|
textAlign: "left"
|
|
326
326
|
};
|
|
327
|
-
function
|
|
327
|
+
function Ti({
|
|
328
328
|
children: t,
|
|
329
329
|
headerLeftSlot: r,
|
|
330
330
|
profile: n,
|
|
@@ -339,36 +339,36 @@ function Oi({
|
|
|
339
339
|
profileMenuItems: y,
|
|
340
340
|
logoutButton: m
|
|
341
341
|
}) {
|
|
342
|
-
var Ee,
|
|
343
|
-
const [v] =
|
|
344
|
-
() => new Set(
|
|
345
|
-
), [X, Y] = k(null), { selectedGroupId:
|
|
342
|
+
var Ee, _e;
|
|
343
|
+
const [v] = Ye(), E = v.get("embed") === "true", x = Yt(), { badges: V } = wr(), N = mt(), _ = ze(), B = !re("md"), [ae, q] = k(!1), [H, Q] = k(!1), [ne, ie] = k(!1), [j, oe] = k(!1), [le, se] = k(
|
|
344
|
+
() => new Set(Lt)
|
|
345
|
+
), [X, Y] = k(null), { selectedGroupId: R, setSelectedGroupId: z } = er();
|
|
346
346
|
$(() => {
|
|
347
|
-
|
|
347
|
+
Lt = le;
|
|
348
348
|
}, [le]);
|
|
349
349
|
const K = te(null), fe = te(null);
|
|
350
350
|
$(() => {
|
|
351
351
|
const p = K.current;
|
|
352
352
|
if (!p) return;
|
|
353
353
|
const F = () => {
|
|
354
|
-
ke || (
|
|
354
|
+
ke || (je = p.scrollTop);
|
|
355
355
|
};
|
|
356
356
|
return p.addEventListener("scroll", F), () => p.removeEventListener("scroll", F);
|
|
357
357
|
}, []);
|
|
358
358
|
const ge = () => {
|
|
359
359
|
const p = K.current;
|
|
360
|
-
p &&
|
|
360
|
+
p && je > 0 && (ke = !0, p.scrollTop = je, requestAnimationFrame(() => {
|
|
361
361
|
ke = !1;
|
|
362
362
|
}));
|
|
363
363
|
};
|
|
364
|
-
|
|
364
|
+
at(() => {
|
|
365
365
|
ke = !0, ge();
|
|
366
366
|
const p = setTimeout(() => {
|
|
367
367
|
ke = !1;
|
|
368
368
|
}, 300);
|
|
369
369
|
return () => clearTimeout(p);
|
|
370
|
-
}, []),
|
|
371
|
-
x.menus.length > 0 && (
|
|
370
|
+
}, []), at(() => {
|
|
371
|
+
x.menus.length > 0 && (je > 0 ? ge() : requestAnimationFrame(() => {
|
|
372
372
|
var F;
|
|
373
373
|
const p = (F = K.current) == null ? void 0 : F.querySelector(
|
|
374
374
|
"[data-menu-active='true']"
|
|
@@ -390,21 +390,21 @@ function Oi({
|
|
|
390
390
|
}, [_.pathname, B]), $(() => {
|
|
391
391
|
B && Q(!0);
|
|
392
392
|
}, [B]);
|
|
393
|
-
const
|
|
393
|
+
const We = () => {
|
|
394
394
|
q(!0);
|
|
395
|
-
},
|
|
395
|
+
}, Ne = () => {
|
|
396
396
|
q(!1);
|
|
397
|
-
},
|
|
397
|
+
}, et = () => {
|
|
398
398
|
q(!1), i();
|
|
399
399
|
}, Te = (p) => {
|
|
400
400
|
const F = [p.to];
|
|
401
401
|
return p.children && F.push(...p.children.map((M) => M.to)), F;
|
|
402
|
-
},
|
|
402
|
+
}, Ae = [
|
|
403
403
|
...x.menus.flatMap((p) => p.items.flatMap(Te)),
|
|
404
404
|
...((Ee = x.menuBottom) == null ? void 0 : Ee.flatMap(Te)) ?? []
|
|
405
405
|
], de = (p) => {
|
|
406
406
|
if (!_.pathname.startsWith(p)) return !1;
|
|
407
|
-
const F =
|
|
407
|
+
const F = Ae.filter((M) => _.pathname.startsWith(M)).sort((M, C) => C.length - M.length)[0];
|
|
408
408
|
return p === F;
|
|
409
409
|
};
|
|
410
410
|
$(() => {
|
|
@@ -420,30 +420,30 @@ function Oi({
|
|
|
420
420
|
M.items.forEach(p);
|
|
421
421
|
}), (F = x.menuBottom) == null || F.forEach(p);
|
|
422
422
|
}, [_.pathname, x.menus, x.menuBottom]);
|
|
423
|
-
const
|
|
423
|
+
const Oe = (p) => {
|
|
424
424
|
se((F) => {
|
|
425
425
|
const M = new Set(F);
|
|
426
426
|
return M.has(p) ? M.delete(p) : M.add(p), M;
|
|
427
427
|
});
|
|
428
428
|
};
|
|
429
429
|
$(() => {
|
|
430
|
-
x.menus.length !== 0 &&
|
|
431
|
-
}, [x.menus,
|
|
432
|
-
const
|
|
433
|
-
if (
|
|
430
|
+
x.menus.length !== 0 && R !== null && !x.menus.some((p) => p.id === R) && z(null);
|
|
431
|
+
}, [x.menus, R, z]);
|
|
432
|
+
const He = he(() => {
|
|
433
|
+
if (R !== null)
|
|
434
434
|
return x.menus.filter(
|
|
435
|
-
(M) => M.id ===
|
|
435
|
+
(M) => M.id === R || M.parentGroupId === R
|
|
436
436
|
);
|
|
437
437
|
const p = x.menus.filter((M) => M.parentGroupId === void 0), F = x.menus.filter((M) => M.parentGroupId !== void 0).flatMap((M) => M.items);
|
|
438
438
|
return F.length === 0 ? p : [
|
|
439
439
|
...p,
|
|
440
440
|
{ id: 18, name: "Pengaturan", items: F, parentGroupId: void 0 }
|
|
441
441
|
];
|
|
442
|
-
}, [x.menus,
|
|
442
|
+
}, [x.menus, R]);
|
|
443
443
|
if (E)
|
|
444
|
-
return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(
|
|
444
|
+
return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(Et, {}) });
|
|
445
445
|
const Fe = (p) => {
|
|
446
|
-
const F = p.children && p.children.length > 0, M = le.has(p.id), C = F ? p.children.some((W) => de(W.to)) : de(p.to), S =
|
|
446
|
+
const F = p.children && p.children.length > 0, M = le.has(p.id), C = F ? p.children.some((W) => de(W.to)) : de(p.to), S = rt(p.badge, V[p.id]), b = !!S && H && !B;
|
|
447
447
|
return /* @__PURE__ */ u("div", { "data-menu-active": C || void 0, children: [
|
|
448
448
|
/* @__PURE__ */ u(
|
|
449
449
|
"button",
|
|
@@ -451,16 +451,16 @@ function Oi({
|
|
|
451
451
|
onClick: (W) => {
|
|
452
452
|
if (F)
|
|
453
453
|
if (H && !B) {
|
|
454
|
-
const
|
|
454
|
+
const I = W.currentTarget.getBoundingClientRect();
|
|
455
455
|
Y({
|
|
456
456
|
item: p,
|
|
457
|
-
top:
|
|
458
|
-
left:
|
|
457
|
+
top: I.top,
|
|
458
|
+
left: I.right + 8
|
|
459
459
|
});
|
|
460
460
|
} else
|
|
461
|
-
|
|
461
|
+
Oe(p.id);
|
|
462
462
|
else
|
|
463
|
-
|
|
463
|
+
N(p.to);
|
|
464
464
|
},
|
|
465
465
|
style: {
|
|
466
466
|
width: "100%",
|
|
@@ -535,7 +535,7 @@ function Oi({
|
|
|
535
535
|
}
|
|
536
536
|
),
|
|
537
537
|
S && /* @__PURE__ */ e(
|
|
538
|
-
|
|
538
|
+
Le,
|
|
539
539
|
{
|
|
540
540
|
text: String(S.value),
|
|
541
541
|
variant: S.variant ?? "info",
|
|
@@ -573,7 +573,7 @@ function Oi({
|
|
|
573
573
|
),
|
|
574
574
|
F && (!H || B) && (() => {
|
|
575
575
|
const W = p.children.findIndex(
|
|
576
|
-
(
|
|
576
|
+
(I) => de(I.to)
|
|
577
577
|
);
|
|
578
578
|
return /* @__PURE__ */ u(
|
|
579
579
|
"div",
|
|
@@ -621,15 +621,15 @@ function Oi({
|
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
),
|
|
624
|
-
p.children.map((
|
|
625
|
-
const ue =
|
|
626
|
-
|
|
627
|
-
|
|
624
|
+
p.children.map((I) => {
|
|
625
|
+
const ue = rt(
|
|
626
|
+
I.badge,
|
|
627
|
+
V[I.id]
|
|
628
628
|
);
|
|
629
629
|
return /* @__PURE__ */ u(
|
|
630
630
|
"button",
|
|
631
631
|
{
|
|
632
|
-
onClick: () =>
|
|
632
|
+
onClick: () => N(I.to),
|
|
633
633
|
style: {
|
|
634
634
|
width: "100%",
|
|
635
635
|
display: "flex",
|
|
@@ -640,24 +640,24 @@ function Oi({
|
|
|
640
640
|
paddingTop: "0.25rem",
|
|
641
641
|
paddingBottom: "0.25rem",
|
|
642
642
|
height: "2rem",
|
|
643
|
-
borderRadius: de(
|
|
643
|
+
borderRadius: de(I.to) ? "var(--sa-radii-sm, 0.375rem)" : "var(--sa-radii-md, 0.5rem)",
|
|
644
644
|
textAlign: "left",
|
|
645
|
-
backgroundColor: de(
|
|
646
|
-
color: de(
|
|
645
|
+
backgroundColor: de(I.to) ? "var(--sa-background-primary, #ffffff)" : "transparent",
|
|
646
|
+
color: de(I.to) ? "var(--sa-text-primary, #292a2e)" : "var(--sa-text-subtle, #505258)",
|
|
647
647
|
cursor: "pointer",
|
|
648
|
-
border: de(
|
|
648
|
+
border: de(I.to) ? "1px solid var(--sa-border-subtle, #0b120e24)" : "1px solid transparent"
|
|
649
649
|
},
|
|
650
650
|
onMouseEnter: (xe) => {
|
|
651
|
-
de(
|
|
651
|
+
de(I.to) || (xe.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
|
|
652
652
|
},
|
|
653
653
|
onMouseLeave: (xe) => {
|
|
654
|
-
de(
|
|
654
|
+
de(I.to) || (xe.currentTarget.style.backgroundColor = "transparent");
|
|
655
655
|
},
|
|
656
656
|
children: [
|
|
657
657
|
/* @__PURE__ */ e(
|
|
658
658
|
w,
|
|
659
659
|
{
|
|
660
|
-
name:
|
|
660
|
+
name: I.icon,
|
|
661
661
|
size: "sm",
|
|
662
662
|
style: { flexShrink: 0 }
|
|
663
663
|
}
|
|
@@ -674,11 +674,11 @@ function Oi({
|
|
|
674
674
|
overflow: "hidden",
|
|
675
675
|
textOverflow: "ellipsis"
|
|
676
676
|
},
|
|
677
|
-
children:
|
|
677
|
+
children: I.title
|
|
678
678
|
}
|
|
679
679
|
),
|
|
680
680
|
ue && /* @__PURE__ */ e(
|
|
681
|
-
|
|
681
|
+
Le,
|
|
682
682
|
{
|
|
683
683
|
text: String(ue.value),
|
|
684
684
|
variant: ue.variant ?? "info",
|
|
@@ -688,7 +688,7 @@ function Oi({
|
|
|
688
688
|
)
|
|
689
689
|
]
|
|
690
690
|
},
|
|
691
|
-
|
|
691
|
+
I.id
|
|
692
692
|
);
|
|
693
693
|
})
|
|
694
694
|
]
|
|
@@ -822,7 +822,7 @@ function Oi({
|
|
|
822
822
|
cursor: "pointer",
|
|
823
823
|
flexShrink: 0
|
|
824
824
|
},
|
|
825
|
-
children: /* @__PURE__ */ e(
|
|
825
|
+
children: /* @__PURE__ */ e(Bt, {})
|
|
826
826
|
}
|
|
827
827
|
),
|
|
828
828
|
p && /* @__PURE__ */ e(
|
|
@@ -859,7 +859,7 @@ function Oi({
|
|
|
859
859
|
height: "1rem",
|
|
860
860
|
display: "inline-flex"
|
|
861
861
|
},
|
|
862
|
-
children: /* @__PURE__ */ e(
|
|
862
|
+
children: /* @__PURE__ */ e(Bt, {})
|
|
863
863
|
}
|
|
864
864
|
)
|
|
865
865
|
}
|
|
@@ -918,7 +918,7 @@ function Oi({
|
|
|
918
918
|
paddingTop: "1rem",
|
|
919
919
|
paddingBottom: "1rem"
|
|
920
920
|
},
|
|
921
|
-
children:
|
|
921
|
+
children: He.map((p) => /* @__PURE__ */ u("div", { style: { marginBottom: "1rem" }, children: [
|
|
922
922
|
!H || B ? p.name && /* @__PURE__ */ e(
|
|
923
923
|
"div",
|
|
924
924
|
{
|
|
@@ -1047,7 +1047,7 @@ function Oi({
|
|
|
1047
1047
|
/* @__PURE__ */ u("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
|
|
1048
1048
|
h,
|
|
1049
1049
|
/* @__PURE__ */ u(Zt, { position: "bottom-right", children: [
|
|
1050
|
-
/* @__PURE__ */ e(
|
|
1050
|
+
/* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ u(
|
|
1051
1051
|
"div",
|
|
1052
1052
|
{
|
|
1053
1053
|
style: {
|
|
@@ -1211,12 +1211,12 @@ function Oi({
|
|
|
1211
1211
|
}
|
|
1212
1212
|
) }),
|
|
1213
1213
|
(g && g.length > 0 || y) && /* @__PURE__ */ u($t, { children: [
|
|
1214
|
-
g == null ? void 0 : g.map((p, F) => /* @__PURE__ */ e(
|
|
1214
|
+
g == null ? void 0 : g.map((p, F) => /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ u(
|
|
1215
1215
|
"button",
|
|
1216
1216
|
{
|
|
1217
1217
|
type: "button",
|
|
1218
1218
|
onClick: p.onClick,
|
|
1219
|
-
style:
|
|
1219
|
+
style: Wt,
|
|
1220
1220
|
onMouseEnter: (M) => {
|
|
1221
1221
|
M.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)";
|
|
1222
1222
|
},
|
|
@@ -1231,13 +1231,13 @@ function Oi({
|
|
|
1231
1231
|
) }, `${p.label}-${F}`)),
|
|
1232
1232
|
y
|
|
1233
1233
|
] }),
|
|
1234
|
-
m ?? /* @__PURE__ */ e(ar, { children: /* @__PURE__ */ e(
|
|
1234
|
+
m ?? /* @__PURE__ */ e(ar, { children: /* @__PURE__ */ e(Ue, { children: /* @__PURE__ */ u(
|
|
1235
1235
|
"button",
|
|
1236
1236
|
{
|
|
1237
1237
|
type: "button",
|
|
1238
|
-
onClick:
|
|
1238
|
+
onClick: We,
|
|
1239
1239
|
style: {
|
|
1240
|
-
...
|
|
1240
|
+
...Wt,
|
|
1241
1241
|
color: "var(--sa-background-error, #c9184a)",
|
|
1242
1242
|
fontWeight: 500
|
|
1243
1243
|
},
|
|
@@ -1278,7 +1278,7 @@ function Oi({
|
|
|
1278
1278
|
flex: 1,
|
|
1279
1279
|
overflowY: "auto"
|
|
1280
1280
|
},
|
|
1281
|
-
children: t || /* @__PURE__ */ e(
|
|
1281
|
+
children: t || /* @__PURE__ */ e(Et, {})
|
|
1282
1282
|
}
|
|
1283
1283
|
)
|
|
1284
1284
|
] })
|
|
@@ -1300,12 +1300,12 @@ function Oi({
|
|
|
1300
1300
|
children: s
|
|
1301
1301
|
}
|
|
1302
1302
|
),
|
|
1303
|
-
/* @__PURE__ */ u(
|
|
1304
|
-
/* @__PURE__ */ e(
|
|
1305
|
-
/* @__PURE__ */ e(
|
|
1306
|
-
/* @__PURE__ */ e(
|
|
1307
|
-
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
|
|
1308
|
-
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
|
|
1303
|
+
/* @__PURE__ */ u(ut, { isShow: ae, onHide: Ne, children: [
|
|
1304
|
+
/* @__PURE__ */ e(Ot, { children: "Confirmation Logout" }),
|
|
1305
|
+
/* @__PURE__ */ e(ht, { children: "Are you sure you want to end the session and exit the page?" }),
|
|
1306
|
+
/* @__PURE__ */ e(_t, { children: /* @__PURE__ */ e(f, { display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ u(U, { direction: "row", gap: "sm", align: "center", children: [
|
|
1307
|
+
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(T, { secondary: !0, onClick: Ne, children: "Cancel" }) }),
|
|
1308
|
+
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(T, { primary: !0, onClick: et, children: "Yes, Sure" }) })
|
|
1309
1309
|
] }) }) })
|
|
1310
1310
|
] }),
|
|
1311
1311
|
X && /* @__PURE__ */ u(J, { children: [
|
|
@@ -1357,16 +1357,16 @@ function Oi({
|
|
|
1357
1357
|
children: X.item.title
|
|
1358
1358
|
}
|
|
1359
1359
|
),
|
|
1360
|
-
(
|
|
1361
|
-
const F = de(p.to), M =
|
|
1360
|
+
(_e = X.item.children) == null ? void 0 : _e.map((p) => {
|
|
1361
|
+
const F = de(p.to), M = rt(
|
|
1362
1362
|
p.badge,
|
|
1363
|
-
|
|
1363
|
+
V[p.id]
|
|
1364
1364
|
);
|
|
1365
1365
|
return /* @__PURE__ */ u(
|
|
1366
1366
|
"button",
|
|
1367
1367
|
{
|
|
1368
1368
|
onClick: () => {
|
|
1369
|
-
|
|
1369
|
+
N(p.to), Y(null);
|
|
1370
1370
|
},
|
|
1371
1371
|
style: {
|
|
1372
1372
|
width: "100%",
|
|
@@ -1400,7 +1400,7 @@ function Oi({
|
|
|
1400
1400
|
),
|
|
1401
1401
|
/* @__PURE__ */ e("span", { style: { flex: 1, whiteSpace: "nowrap" }, children: p.title }),
|
|
1402
1402
|
M && /* @__PURE__ */ e(
|
|
1403
|
-
|
|
1403
|
+
Le,
|
|
1404
1404
|
{
|
|
1405
1405
|
text: String(M.value),
|
|
1406
1406
|
variant: M.variant ?? "info",
|
|
@@ -1430,7 +1430,7 @@ const Br = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1430
1430
|
...r,
|
|
1431
1431
|
children: t
|
|
1432
1432
|
}
|
|
1433
|
-
),
|
|
1433
|
+
), Xe = ce(Br), At = ({
|
|
1434
1434
|
title: t,
|
|
1435
1435
|
iconName: r,
|
|
1436
1436
|
textColor: n,
|
|
@@ -1494,15 +1494,15 @@ const Br = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1494
1494
|
cursor: g ? "pointer" : void 0
|
|
1495
1495
|
}
|
|
1496
1496
|
}
|
|
1497
|
-
), m = d != null && d.to ? /* @__PURE__ */ e(
|
|
1497
|
+
), m = d != null && d.to ? /* @__PURE__ */ e(qe, { to: d.to, replace: !0, style: { textDecoration: "none" }, children: y }) : d != null && d.onClick ? /* @__PURE__ */ e(Xe, { onClick: d.onClick, children: y }) : y;
|
|
1498
1498
|
return /* @__PURE__ */ u(f, { direction: "row", gap: "xs", align: "center", children: [
|
|
1499
1499
|
m,
|
|
1500
1500
|
/* @__PURE__ */ e(nr, { separator: r, size: "md", children: t.map((v, E) => {
|
|
1501
1501
|
const x = E === t.length - 1;
|
|
1502
|
-
return v.to && !x ? /* @__PURE__ */ e(
|
|
1502
|
+
return v.to && !x ? /* @__PURE__ */ e(kt, { children: /* @__PURE__ */ e(qe, { to: v.to, children: v.label }) }, E) : /* @__PURE__ */ e(kt, { currentPage: x, children: /* @__PURE__ */ e(ir, { onClick: x ? void 0 : v.onClick, children: v.label }) }, E);
|
|
1503
1503
|
}) })
|
|
1504
1504
|
] });
|
|
1505
|
-
},
|
|
1505
|
+
}, Oi = (t) => {
|
|
1506
1506
|
const { items: r, separator: n, onClick: o, navigateTo: i, ...l } = t;
|
|
1507
1507
|
return r && r.length > 0 ? /* @__PURE__ */ e(
|
|
1508
1508
|
Wr,
|
|
@@ -1513,8 +1513,8 @@ const Br = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1513
1513
|
iconColor: l.iconColor,
|
|
1514
1514
|
hoverIconColor: l.hoverIconColor
|
|
1515
1515
|
}
|
|
1516
|
-
) : i ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(
|
|
1517
|
-
},
|
|
1516
|
+
) : i ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(qe, { to: i, replace: !0, style: { textDecoration: "none" }, children: /* @__PURE__ */ e(At, { ...l }) }) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Xe, { onClick: o, children: /* @__PURE__ */ e(At, { ...l }) }) });
|
|
1517
|
+
}, nt = [
|
|
1518
1518
|
// brand (blue)
|
|
1519
1519
|
{
|
|
1520
1520
|
icon: "var(--sa-color-brand-400, #3366b7)",
|
|
@@ -1558,7 +1558,7 @@ const Br = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1558
1558
|
activeShadow: "rgba(255, 117, 143, 0.25)"
|
|
1559
1559
|
}
|
|
1560
1560
|
];
|
|
1561
|
-
function
|
|
1561
|
+
function Ht(t, r, n) {
|
|
1562
1562
|
return {
|
|
1563
1563
|
display: "flex",
|
|
1564
1564
|
alignItems: "center",
|
|
@@ -1574,7 +1574,7 @@ function Vt(t, r, n) {
|
|
|
1574
1574
|
transition: "box-shadow 0.2s ease, transform 0.2s ease, background-color 0.15s ease, border-color 0.15s ease"
|
|
1575
1575
|
};
|
|
1576
1576
|
}
|
|
1577
|
-
const
|
|
1577
|
+
const It = {
|
|
1578
1578
|
fontSize: "11px",
|
|
1579
1579
|
fontWeight: 500,
|
|
1580
1580
|
textAlign: "center",
|
|
@@ -1583,7 +1583,7 @@ const Rt = {
|
|
|
1583
1583
|
color: "var(--sa-background-primary, #ffffff)",
|
|
1584
1584
|
lineHeight: "1.3",
|
|
1585
1585
|
maxWidth: "80px"
|
|
1586
|
-
},
|
|
1586
|
+
}, Vt = {
|
|
1587
1587
|
display: "flex",
|
|
1588
1588
|
flexDirection: "column",
|
|
1589
1589
|
alignItems: "center",
|
|
@@ -1602,9 +1602,9 @@ function Ar({
|
|
|
1602
1602
|
}) {
|
|
1603
1603
|
const [l, s] = k(void 0), a = (d) => {
|
|
1604
1604
|
i(d), r();
|
|
1605
|
-
}, h =
|
|
1605
|
+
}, h = nt[0];
|
|
1606
1606
|
return /* @__PURE__ */ e(
|
|
1607
|
-
|
|
1607
|
+
ut,
|
|
1608
1608
|
{
|
|
1609
1609
|
isShow: t,
|
|
1610
1610
|
onHide: r,
|
|
@@ -1614,7 +1614,7 @@ function Ar({
|
|
|
1614
1614
|
boxShadow: "none",
|
|
1615
1615
|
border: "none"
|
|
1616
1616
|
},
|
|
1617
|
-
children: /* @__PURE__ */ e(
|
|
1617
|
+
children: /* @__PURE__ */ e(ht, { children: /* @__PURE__ */ u(
|
|
1618
1618
|
"div",
|
|
1619
1619
|
{
|
|
1620
1620
|
style: {
|
|
@@ -1629,26 +1629,26 @@ function Ar({
|
|
|
1629
1629
|
onClick: () => a(null),
|
|
1630
1630
|
onMouseEnter: () => s("all"),
|
|
1631
1631
|
onMouseLeave: () => s(void 0),
|
|
1632
|
-
style:
|
|
1632
|
+
style: Vt,
|
|
1633
1633
|
children: [
|
|
1634
|
-
/* @__PURE__ */ e("div", { style:
|
|
1635
|
-
/* @__PURE__ */ e("span", { style:
|
|
1634
|
+
/* @__PURE__ */ e("div", { style: Ht(o === null, l === "all", h), children: /* @__PURE__ */ e("div", { style: { color: h.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(w, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
|
|
1635
|
+
/* @__PURE__ */ e("span", { style: It, children: "Semua" })
|
|
1636
1636
|
]
|
|
1637
1637
|
}
|
|
1638
1638
|
),
|
|
1639
1639
|
n.map((d, g) => {
|
|
1640
1640
|
var x;
|
|
1641
|
-
const y = o === d.id, m = l === d.id, v = ((x = d.items[0]) == null ? void 0 : x.icon) ?? "Grid", E =
|
|
1641
|
+
const y = o === d.id, m = l === d.id, v = ((x = d.items[0]) == null ? void 0 : x.icon) ?? "Grid", E = nt[(g + 1) % nt.length];
|
|
1642
1642
|
return /* @__PURE__ */ u(
|
|
1643
1643
|
"button",
|
|
1644
1644
|
{
|
|
1645
1645
|
onClick: () => a(d.id),
|
|
1646
1646
|
onMouseEnter: () => s(d.id),
|
|
1647
1647
|
onMouseLeave: () => s(void 0),
|
|
1648
|
-
style:
|
|
1648
|
+
style: Vt,
|
|
1649
1649
|
children: [
|
|
1650
|
-
/* @__PURE__ */ e("div", { style:
|
|
1651
|
-
/* @__PURE__ */ e("span", { style:
|
|
1650
|
+
/* @__PURE__ */ e("div", { style: Ht(y, m, E), children: /* @__PURE__ */ e("div", { style: { color: E.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(w, { name: v, size: "lg", style: { width: 32, height: 32 } }) }) }),
|
|
1651
|
+
/* @__PURE__ */ e("span", { style: It, children: d.name })
|
|
1652
1652
|
]
|
|
1653
1653
|
},
|
|
1654
1654
|
d.id
|
|
@@ -1664,7 +1664,7 @@ function _i({
|
|
|
1664
1664
|
onSelect: t,
|
|
1665
1665
|
"aria-label": r = "Pilih module"
|
|
1666
1666
|
} = {}) {
|
|
1667
|
-
const n = Yt(), o =
|
|
1667
|
+
const n = Yt(), o = mt(), { selectedGroupId: i, setSelectedGroupId: l } = er(), [s, a] = k(!1), h = (d) => {
|
|
1668
1668
|
var g;
|
|
1669
1669
|
if (l(d), d !== null) {
|
|
1670
1670
|
const y = n.menus.find((v) => v.id === d), m = (g = y == null ? void 0 : y.items[0]) == null ? void 0 : g.to;
|
|
@@ -1763,7 +1763,7 @@ const Hr = (t, r) => {
|
|
|
1763
1763
|
}),
|
|
1764
1764
|
[i, l]
|
|
1765
1765
|
), h = () => typeof r == "string" ? /* @__PURE__ */ e(D, { fontWeight: "medium", color: "text-muted", children: r }) : r, d = () => typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ e(D, { color: "text", fontWeight: "medium", children: t }) : t, g = () => typeof n == "string" || typeof n == "number" ? /* @__PURE__ */ e(D, { fontWeight: "medium", color: "text-muted", children: n }) : n;
|
|
1766
|
-
return /* @__PURE__ */ u(
|
|
1766
|
+
return /* @__PURE__ */ u(Re, { children: [
|
|
1767
1767
|
/* @__PURE__ */ e(Se, { style: s, width: o, children: h() }),
|
|
1768
1768
|
n ? /* @__PURE__ */ e(Se, { style: a, width: 24, children: g() }) : null,
|
|
1769
1769
|
/* @__PURE__ */ e(Se, { style: s, children: d() })
|
|
@@ -1837,47 +1837,7 @@ const Hr = (t, r) => {
|
|
|
1837
1837
|
}
|
|
1838
1838
|
);
|
|
1839
1839
|
}
|
|
1840
|
-
),
|
|
1841
|
-
title: t,
|
|
1842
|
-
content: r,
|
|
1843
|
-
onHide: n,
|
|
1844
|
-
onSuccess: o,
|
|
1845
|
-
isShow: i,
|
|
1846
|
-
successButtonTitle: l = "Konfirmasi",
|
|
1847
|
-
theme: s
|
|
1848
|
-
}) => {
|
|
1849
|
-
const a = () => {
|
|
1850
|
-
switch (s) {
|
|
1851
|
-
case "info":
|
|
1852
|
-
return /* @__PURE__ */ e(Le, { info: !0, children: t });
|
|
1853
|
-
case "danger":
|
|
1854
|
-
return /* @__PURE__ */ e(Le, { danger: !0, children: t });
|
|
1855
|
-
case "success":
|
|
1856
|
-
return /* @__PURE__ */ e(Le, { success: !0, children: t });
|
|
1857
|
-
default:
|
|
1858
|
-
return /* @__PURE__ */ e(Le, { success: !0, children: t });
|
|
1859
|
-
}
|
|
1860
|
-
}, h = () => {
|
|
1861
|
-
switch (s) {
|
|
1862
|
-
case "info":
|
|
1863
|
-
return /* @__PURE__ */ e(I, { primary: !0, onClick: o, children: l });
|
|
1864
|
-
case "danger":
|
|
1865
|
-
return /* @__PURE__ */ e(I, { danger: !0, onClick: o, children: l });
|
|
1866
|
-
case "success":
|
|
1867
|
-
return /* @__PURE__ */ e(I, { success: !0, onClick: o, children: l });
|
|
1868
|
-
default:
|
|
1869
|
-
return /* @__PURE__ */ e(I, { primary: !0, onClick: o, children: l });
|
|
1870
|
-
}
|
|
1871
|
-
};
|
|
1872
|
-
return /* @__PURE__ */ u(Qe, { isShow: i, onHide: n, children: [
|
|
1873
|
-
a(),
|
|
1874
|
-
/* @__PURE__ */ e(Ye, { children: /* @__PURE__ */ e(D, { children: r }) }),
|
|
1875
|
-
/* @__PURE__ */ e(gt, { children: /* @__PURE__ */ u(f, { justify: "flex-end", direction: "row", gap: "sm", children: [
|
|
1876
|
-
/* @__PURE__ */ e(I, { secondary: !0, onClick: n, children: "Cancel" }),
|
|
1877
|
-
h()
|
|
1878
|
-
] }) })
|
|
1879
|
-
] });
|
|
1880
|
-
}, Rr = ({ backButton: t }) => {
|
|
1840
|
+
), Rr = ({ backButton: t }) => {
|
|
1881
1841
|
const [r, n] = k(!1), o = (t == null ? void 0 : t.iconColor) ?? "var(--sa-text-subtle, #8c8f97)", i = (t == null ? void 0 : t.textColor) ?? "var(--sa-text-subtle, #8c8f97)", l = (t == null ? void 0 : t.hoverIconColor) ?? "var(--sa-text-subtle, #8c8f97)", s = (t == null ? void 0 : t.hoverTextColor) ?? "var(--sa-text-primary, #292a2e)";
|
|
1882
1842
|
return /* @__PURE__ */ u(
|
|
1883
1843
|
f,
|
|
@@ -1926,15 +1886,15 @@ const Hr = (t, r) => {
|
|
|
1926
1886
|
containerProps: a,
|
|
1927
1887
|
headerProps: h
|
|
1928
1888
|
}) => {
|
|
1929
|
-
const d = re("lg"), g =
|
|
1889
|
+
const d = re("lg"), g = mt(), y = ze(), m = t == null ? void 0 : t.show, v = () => {
|
|
1930
1890
|
if (typeof (t == null ? void 0 : t.onClick) == "function") {
|
|
1931
1891
|
t.onClick();
|
|
1932
1892
|
return;
|
|
1933
1893
|
}
|
|
1934
1894
|
g(-1, { replace: !0 });
|
|
1935
|
-
}, E = () => l ?
|
|
1895
|
+
}, E = () => l ? st(l) ? l : /* @__PURE__ */ e(f, { direction: "row", gap: "lg", children: l.map(
|
|
1936
1896
|
({ title: _, icon: G, buttonProps: B, onClick: ae }, q) => !_ && !G ? null : /* @__PURE__ */ e(
|
|
1937
|
-
|
|
1897
|
+
T,
|
|
1938
1898
|
{
|
|
1939
1899
|
fullWidth: !d,
|
|
1940
1900
|
iconLeft: G ? /* @__PURE__ */ e(w, { name: G, size: "md" }) : void 0,
|
|
@@ -1947,16 +1907,16 @@ const Hr = (t, r) => {
|
|
|
1947
1907
|
) }) : null, x = () => {
|
|
1948
1908
|
const _ = /* @__PURE__ */ e(Rr, { backButton: t });
|
|
1949
1909
|
return t != null && t.navigateTo ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(
|
|
1950
|
-
|
|
1910
|
+
qe,
|
|
1951
1911
|
{
|
|
1952
1912
|
to: t.navigateTo,
|
|
1953
1913
|
replace: !0,
|
|
1954
1914
|
style: { textDecoration: "none" },
|
|
1955
1915
|
children: _
|
|
1956
1916
|
}
|
|
1957
|
-
) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(
|
|
1958
|
-
},
|
|
1959
|
-
const _ = !!r, G =
|
|
1917
|
+
) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Xe, { onClick: v, children: _ }) });
|
|
1918
|
+
}, V = () => {
|
|
1919
|
+
const _ = !!r, G = st(l) ? !0 : Array.isArray(l) && l.length > 0;
|
|
1960
1920
|
return !_ && !G && !m ? null : /* @__PURE__ */ u(
|
|
1961
1921
|
f,
|
|
1962
1922
|
{
|
|
@@ -1976,7 +1936,7 @@ const Hr = (t, r) => {
|
|
|
1976
1936
|
children: [
|
|
1977
1937
|
_ ? typeof r == "string" ? /* @__PURE__ */ u(f, { direction: "row", gap: "lg", align: "center", children: [
|
|
1978
1938
|
/* @__PURE__ */ e(D, { variant: "h2", fontWeight: "semibold", fontFamily: "Poppins", children: r }),
|
|
1979
|
-
n && /* @__PURE__ */ e(
|
|
1939
|
+
n && /* @__PURE__ */ e(Le, { border: !0, size: "lg", text: n, ...s })
|
|
1980
1940
|
] }) : r : null,
|
|
1981
1941
|
E()
|
|
1982
1942
|
]
|
|
@@ -1985,7 +1945,7 @@ const Hr = (t, r) => {
|
|
|
1985
1945
|
]
|
|
1986
1946
|
}
|
|
1987
1947
|
);
|
|
1988
|
-
},
|
|
1948
|
+
}, N = () => o;
|
|
1989
1949
|
return /* @__PURE__ */ u(
|
|
1990
1950
|
f,
|
|
1991
1951
|
{
|
|
@@ -1998,16 +1958,16 @@ const Hr = (t, r) => {
|
|
|
1998
1958
|
animation: "pageLayoutEnter 320ms cubic-bezier(0.16, 1, 0.3, 1) backwards"
|
|
1999
1959
|
},
|
|
2000
1960
|
children: [
|
|
2001
|
-
i &&
|
|
2002
|
-
|
|
1961
|
+
i && V(),
|
|
1962
|
+
N()
|
|
2003
1963
|
]
|
|
2004
1964
|
},
|
|
2005
1965
|
y.pathname
|
|
2006
1966
|
);
|
|
2007
|
-
},
|
|
1967
|
+
}, ji = ce(zr), Nr = {
|
|
2008
1968
|
icon: "Cross",
|
|
2009
1969
|
title: ""
|
|
2010
|
-
},
|
|
1970
|
+
}, Tr = "calc(100vw - 16px)", Rt = (t) => t == null ? void 0 : `min(${typeof t == "number" ? `${t}px` : t}, ${Tr})`, Or = qt(
|
|
2011
1971
|
({
|
|
2012
1972
|
onHide: t,
|
|
2013
1973
|
show: r,
|
|
@@ -2019,7 +1979,7 @@ const Hr = (t, r) => {
|
|
|
2019
1979
|
minWidth: a = "357px",
|
|
2020
1980
|
maxWidth: h = "357px"
|
|
2021
1981
|
}, d) => {
|
|
2022
|
-
const g =
|
|
1982
|
+
const g = Rt(s ?? a), y = Rt(s ?? h);
|
|
2023
1983
|
return /* @__PURE__ */ e(
|
|
2024
1984
|
lr,
|
|
2025
1985
|
{
|
|
@@ -2106,7 +2066,7 @@ const Hr = (t, r) => {
|
|
|
2106
2066
|
children: t
|
|
2107
2067
|
}
|
|
2108
2068
|
)
|
|
2109
|
-
),
|
|
2069
|
+
), $i = ce(
|
|
2110
2070
|
({
|
|
2111
2071
|
children: t,
|
|
2112
2072
|
title: r,
|
|
@@ -2123,7 +2083,7 @@ const Hr = (t, r) => {
|
|
|
2123
2083
|
}) => {
|
|
2124
2084
|
const m = re("lg"), v = () => n ? /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
|
|
2125
2085
|
/* @__PURE__ */ e(D, { fontWeight: "medium", children: r }),
|
|
2126
|
-
/* @__PURE__ */ e(
|
|
2086
|
+
/* @__PURE__ */ e(Le, { border: !0, text: n, variant: y })
|
|
2127
2087
|
] }) : /* @__PURE__ */ e(D, { fontWeight: "medium", children: r }), E = () => i || /* @__PURE__ */ u(
|
|
2128
2088
|
f,
|
|
2129
2089
|
{
|
|
@@ -2169,7 +2129,7 @@ const Hr = (t, r) => {
|
|
|
2169
2129
|
), Zr = "var(--sa-color-secondary-50, #e6e9fb)", jr = ({ children: t, onClick: r }) => {
|
|
2170
2130
|
const [n, o] = k("");
|
|
2171
2131
|
return /* @__PURE__ */ e(
|
|
2172
|
-
|
|
2132
|
+
Xe,
|
|
2173
2133
|
{
|
|
2174
2134
|
fullWidth: !0,
|
|
2175
2135
|
height: "height-8",
|
|
@@ -2208,9 +2168,9 @@ const Hr = (t, r) => {
|
|
|
2208
2168
|
[i]
|
|
2209
2169
|
);
|
|
2210
2170
|
return /* @__PURE__ */ u(Zt, { position: l, style: n, children: [
|
|
2211
|
-
/* @__PURE__ */ e(
|
|
2171
|
+
/* @__PURE__ */ e(Ue, { style: o, children: /* @__PURE__ */ e(T, { size: "sm", secondary: !0, ...s, children: /* @__PURE__ */ e(w, { name: t, ...a }) }) }),
|
|
2212
2172
|
/* @__PURE__ */ e(jt, { style: d, children: r.map((g, y) => h === "outline-button" ? /* @__PURE__ */ e($t, { children: /* @__PURE__ */ u(
|
|
2213
|
-
|
|
2173
|
+
T,
|
|
2214
2174
|
{
|
|
2215
2175
|
size: "sm",
|
|
2216
2176
|
secondary: !0,
|
|
@@ -2235,7 +2195,7 @@ const Hr = (t, r) => {
|
|
|
2235
2195
|
g.id || y
|
|
2236
2196
|
)) })
|
|
2237
2197
|
] });
|
|
2238
|
-
},
|
|
2198
|
+
}, Ui = ce(Ur), Gr = (t) => /* @__PURE__ */ e(D, { variant: "h1", children: t.children, ...t.props }), qr = (t) => /* @__PURE__ */ e(D, { variant: "h2", children: t.children, ...t.props }), Jr = (t) => /* @__PURE__ */ e(D, { variant: "h3", children: t.children, ...t.props }), Pr = (t) => /* @__PURE__ */ e(D, { variant: "h4", children: t.children, ...t.props }), Qr = (t) => /* @__PURE__ */ e(D, { variant: "h5", children: t.children, ...t.props }), Yr = (t) => /* @__PURE__ */ e(D, { variant: "h6", children: t.children, ...t.props }), Xr = (t) => /* @__PURE__ */ e(D, { variant: "sub-h1", children: t.children, ...t.props }), Kr = (t) => /* @__PURE__ */ e(D, { variant: "sub-h2", children: t.children, ...t.props }), en = (t) => /* @__PURE__ */ e(D, { variant: "sub-h3", children: t.children, ...t.props }), tn = (t) => /* @__PURE__ */ e(D, { variant: "body-1", children: t.children, ...t.props }), rn = (t) => /* @__PURE__ */ e(D, { variant: "body-2", children: t.children, ...t.props }), nn = (t) => /* @__PURE__ */ e(D, { variant: "body-3", children: t.children, ...t.props }), pe = {
|
|
2239
2199
|
H1: Gr,
|
|
2240
2200
|
H2: qr,
|
|
2241
2201
|
H3: Jr,
|
|
@@ -2248,8 +2208,8 @@ const Hr = (t, r) => {
|
|
|
2248
2208
|
Body1: tn,
|
|
2249
2209
|
Body2: rn,
|
|
2250
2210
|
Body3: nn
|
|
2251
|
-
},
|
|
2252
|
-
const [t, r] =
|
|
2211
|
+
}, xt = () => {
|
|
2212
|
+
const [t, r] = Ye(), n = Pe(t.toString()), o = Jt(), i = ze(), l = o.id;
|
|
2253
2213
|
return {
|
|
2254
2214
|
// query params
|
|
2255
2215
|
setSearchParams: r,
|
|
@@ -2266,7 +2226,7 @@ const Hr = (t, r) => {
|
|
|
2266
2226
|
id: l,
|
|
2267
2227
|
hasId: !!l
|
|
2268
2228
|
};
|
|
2269
|
-
}, on = (t) => JSON.stringify(t), ln = (t) => JSON.stringify(t), cn = (t) => JSON.stringify(t), an = (t) => JSON.stringify(t), sn = (t) => t, dn = (t) => JSON.stringify(t),
|
|
2229
|
+
}, on = (t) => JSON.stringify(t), ln = (t) => JSON.stringify(t), cn = (t) => JSON.stringify(t), an = (t) => JSON.stringify(t), sn = (t) => t, dn = (t) => JSON.stringify(t), zt = ({
|
|
2270
2230
|
value: t,
|
|
2271
2231
|
name: r,
|
|
2272
2232
|
type: n,
|
|
@@ -2320,7 +2280,7 @@ const Hr = (t, r) => {
|
|
|
2320
2280
|
i(v);
|
|
2321
2281
|
}
|
|
2322
2282
|
}
|
|
2323
|
-
},
|
|
2283
|
+
}, it = ({
|
|
2324
2284
|
name: t,
|
|
2325
2285
|
filterKey: r = "filter",
|
|
2326
2286
|
searchParams: n,
|
|
@@ -2328,7 +2288,7 @@ const Hr = (t, r) => {
|
|
|
2328
2288
|
}) => {
|
|
2329
2289
|
const i = n.get(r) || void 0, l = i && typeof i == "string" ? JSON.parse(i) : void 0, s = l ? l[t] : void 0;
|
|
2330
2290
|
return o === "label" && s ? JSON.parse(s)[0].label : o === "value" && s ? JSON.parse(s)[0].value : s;
|
|
2331
|
-
},
|
|
2291
|
+
}, Gi = ({
|
|
2332
2292
|
name: t,
|
|
2333
2293
|
filterKey: r = "filter",
|
|
2334
2294
|
searchParams: n,
|
|
@@ -2336,7 +2296,7 @@ const Hr = (t, r) => {
|
|
|
2336
2296
|
}) => {
|
|
2337
2297
|
const i = n.get(r) || void 0, l = i && typeof i == "string" ? JSON.parse(i) : void 0, s = l ? l[t] : void 0;
|
|
2338
2298
|
return o === "label" && s ? JSON.parse(s).map((a) => a.label) : o === "value" && s ? JSON.parse(s).map((a) => a.value) : o === "array" && s ? JSON.parse(s) : s;
|
|
2339
|
-
},
|
|
2299
|
+
}, qi = ({
|
|
2340
2300
|
name: t,
|
|
2341
2301
|
filterKey: r = "filter",
|
|
2342
2302
|
searchParams: n,
|
|
@@ -2347,7 +2307,7 @@ const Hr = (t, r) => {
|
|
|
2347
2307
|
}, un = (t, r, n) => {
|
|
2348
2308
|
const o = r.get(n || "filter") || void 0, i = o && typeof o == "string" ? JSON.parse(o) : void 0;
|
|
2349
2309
|
return i ? i[t] : void 0;
|
|
2350
|
-
},
|
|
2310
|
+
}, Ji = ({
|
|
2351
2311
|
name: t,
|
|
2352
2312
|
filterKey: r = "filter",
|
|
2353
2313
|
searchParams: n
|
|
@@ -2357,14 +2317,14 @@ const Hr = (t, r) => {
|
|
|
2357
2317
|
start: l ? JSON.parse(l).from : void 0,
|
|
2358
2318
|
end: l ? JSON.parse(l).to : void 0
|
|
2359
2319
|
};
|
|
2360
|
-
},
|
|
2320
|
+
}, Pi = ({
|
|
2361
2321
|
name: t,
|
|
2362
2322
|
filterKey: r = "filter",
|
|
2363
2323
|
searchParams: n
|
|
2364
2324
|
}) => {
|
|
2365
2325
|
const o = n.get(r || "filter") || void 0, i = o && typeof o == "string" ? JSON.parse(o) : void 0, l = i ? i[t] : void 0;
|
|
2366
2326
|
return l ? JSON.parse(l) : void 0;
|
|
2367
|
-
},
|
|
2327
|
+
}, Qi = (t, {
|
|
2368
2328
|
filterKey: r = "filter",
|
|
2369
2329
|
perPageKey: n = "perPage",
|
|
2370
2330
|
pageKey: o = "page"
|
|
@@ -2378,7 +2338,7 @@ const Hr = (t, r) => {
|
|
|
2378
2338
|
pageKey: o,
|
|
2379
2339
|
filters: i
|
|
2380
2340
|
}) => {
|
|
2381
|
-
const { searchParams: l, setSearchParams: s, searchQueries: a } =
|
|
2341
|
+
const { searchParams: l, setSearchParams: s, searchQueries: a } = xt(), [h, d] = k({}), g = () => {
|
|
2382
2342
|
l.delete(n || "filter"), s(l);
|
|
2383
2343
|
}, y = (m, v) => {
|
|
2384
2344
|
switch (m.type) {
|
|
@@ -2402,7 +2362,7 @@ const Hr = (t, r) => {
|
|
|
2402
2362
|
return null;
|
|
2403
2363
|
}
|
|
2404
2364
|
};
|
|
2405
|
-
return /* @__PURE__ */ e(
|
|
2365
|
+
return /* @__PURE__ */ e(Or, { onHide: r, show: t || !1, children: /* @__PURE__ */ u(f, { direction: "column", gap: "md", children: [
|
|
2406
2366
|
/* @__PURE__ */ u(U, { direction: "row", justify: "space-between", align: "center", children: [
|
|
2407
2367
|
/* @__PURE__ */ e(f, { children: "Filter" }),
|
|
2408
2368
|
/* @__PURE__ */ e(
|
|
@@ -2434,25 +2394,25 @@ const Hr = (t, r) => {
|
|
|
2434
2394
|
titleSearchLabel: E = "Work Order",
|
|
2435
2395
|
withTitleLabels: x = !1
|
|
2436
2396
|
}) => {
|
|
2437
|
-
const
|
|
2438
|
-
ae((
|
|
2439
|
-
}, { searchParams: H, setSearchParams: Q, getQueryParam: ne } =
|
|
2397
|
+
const N = (m == null ? void 0 : m.isShowLabel) ?? !0, [_, G] = k(!1), [B, ae] = k(0), q = () => {
|
|
2398
|
+
ae((z) => z + 1);
|
|
2399
|
+
}, { searchParams: H, setSearchParams: Q, getQueryParam: ne } = xt(), ie = Pe(H.toString()), j = un(t, H, a) || "", [oe, le] = k(j), se = ne(a), Y = !!(se && !(() => {
|
|
2440
2400
|
if (se)
|
|
2441
2401
|
try {
|
|
2442
|
-
const
|
|
2443
|
-
return Object.keys(
|
|
2444
|
-
} catch (
|
|
2445
|
-
console.error("Filter parameter is not a valid JSON:",
|
|
2402
|
+
const z = JSON.parse(se);
|
|
2403
|
+
return Object.keys(z).length === 1 && z[t] === "";
|
|
2404
|
+
} catch (z) {
|
|
2405
|
+
console.error("Filter parameter is not a valid JSON:", z);
|
|
2446
2406
|
}
|
|
2447
2407
|
return !1;
|
|
2448
|
-
})()),
|
|
2408
|
+
})()), R = re("md");
|
|
2449
2409
|
return $(() => {
|
|
2450
2410
|
le(j);
|
|
2451
2411
|
}, [j]), $(() => {
|
|
2452
2412
|
if (oe === j)
|
|
2453
2413
|
return;
|
|
2454
|
-
const
|
|
2455
|
-
|
|
2414
|
+
const z = window.setTimeout(() => {
|
|
2415
|
+
zt({
|
|
2456
2416
|
value: oe,
|
|
2457
2417
|
name: t,
|
|
2458
2418
|
type: "search",
|
|
@@ -2463,7 +2423,7 @@ const Hr = (t, r) => {
|
|
|
2463
2423
|
});
|
|
2464
2424
|
}, 350);
|
|
2465
2425
|
return () => {
|
|
2466
|
-
window.clearTimeout(
|
|
2426
|
+
window.clearTimeout(z);
|
|
2467
2427
|
};
|
|
2468
2428
|
}, [
|
|
2469
2429
|
oe,
|
|
@@ -2478,39 +2438,39 @@ const Hr = (t, r) => {
|
|
|
2478
2438
|
{
|
|
2479
2439
|
gap: "md",
|
|
2480
2440
|
style: {
|
|
2481
|
-
flexDirection:
|
|
2441
|
+
flexDirection: R && v === "left" ? "row" : R && v === "right" ? "row-reverse" : "column"
|
|
2482
2442
|
},
|
|
2483
2443
|
align: "flex-end",
|
|
2484
2444
|
children: [
|
|
2485
2445
|
Y && /* @__PURE__ */ e(f, { justify: "flex-end", children: /* @__PURE__ */ e(
|
|
2486
|
-
|
|
2446
|
+
T,
|
|
2487
2447
|
{
|
|
2488
2448
|
onClick: () => {
|
|
2489
|
-
const
|
|
2490
|
-
|
|
2449
|
+
const z = new URLSearchParams(H);
|
|
2450
|
+
z.delete(a), Q(z), le(""), q(), g && g();
|
|
2491
2451
|
},
|
|
2492
2452
|
variant: "outline",
|
|
2493
2453
|
tone: "neutral",
|
|
2494
2454
|
children: /* @__PURE__ */ e(D, { color: "error", fontWeight: "semibold", children: "Reset" })
|
|
2495
2455
|
}
|
|
2496
2456
|
) }),
|
|
2497
|
-
i == null ? void 0 : i.map(({ minWidth:
|
|
2457
|
+
i == null ? void 0 : i.map(({ minWidth: z, content: K, title: fe, onClickContainer: ge }, We) => /* @__PURE__ */ u(
|
|
2498
2458
|
f,
|
|
2499
2459
|
{
|
|
2500
2460
|
gap: "sm",
|
|
2501
2461
|
onClick: ge,
|
|
2502
2462
|
style: {
|
|
2503
|
-
minWidth:
|
|
2463
|
+
minWidth: z
|
|
2504
2464
|
},
|
|
2505
2465
|
children: [
|
|
2506
2466
|
fe && /* @__PURE__ */ e(pe.SubH3, { children: fe }),
|
|
2507
2467
|
K
|
|
2508
2468
|
]
|
|
2509
2469
|
},
|
|
2510
|
-
`extended-filter-${
|
|
2470
|
+
`extended-filter-${We}-${B}`
|
|
2511
2471
|
)),
|
|
2512
2472
|
!!(y != null && y.length) && /* @__PURE__ */ e(
|
|
2513
|
-
|
|
2473
|
+
T,
|
|
2514
2474
|
{
|
|
2515
2475
|
primary: Y,
|
|
2516
2476
|
secondary: !Y,
|
|
@@ -2524,9 +2484,9 @@ const Hr = (t, r) => {
|
|
|
2524
2484
|
}
|
|
2525
2485
|
}
|
|
2526
2486
|
),
|
|
2527
|
-
fullWidth: !
|
|
2487
|
+
fullWidth: !R,
|
|
2528
2488
|
onClick: () => G(!0),
|
|
2529
|
-
children:
|
|
2489
|
+
children: N ? "Filter" : void 0
|
|
2530
2490
|
}
|
|
2531
2491
|
),
|
|
2532
2492
|
s && /* @__PURE__ */ u(
|
|
@@ -2539,7 +2499,7 @@ const Hr = (t, r) => {
|
|
|
2539
2499
|
children: [
|
|
2540
2500
|
x && /* @__PURE__ */ e(pe.SubH3, { children: "Status" }),
|
|
2541
2501
|
/* @__PURE__ */ e(
|
|
2542
|
-
|
|
2502
|
+
ft,
|
|
2543
2503
|
{
|
|
2544
2504
|
dropdownLists: [
|
|
2545
2505
|
{
|
|
@@ -2551,20 +2511,20 @@ const Hr = (t, r) => {
|
|
|
2551
2511
|
value: "inactive"
|
|
2552
2512
|
}
|
|
2553
2513
|
],
|
|
2554
|
-
defaultValue:
|
|
2514
|
+
defaultValue: it({
|
|
2555
2515
|
get: "value",
|
|
2556
2516
|
name: r,
|
|
2557
2517
|
searchParams: H,
|
|
2558
2518
|
filterKey: a
|
|
2559
2519
|
}) ? [
|
|
2560
2520
|
{
|
|
2561
|
-
label:
|
|
2521
|
+
label: it({
|
|
2562
2522
|
get: "value",
|
|
2563
2523
|
name: r,
|
|
2564
2524
|
searchParams: H,
|
|
2565
2525
|
filterKey: a
|
|
2566
2526
|
}) === "active" ? "Active" : "InActive",
|
|
2567
|
-
value:
|
|
2527
|
+
value: it({
|
|
2568
2528
|
get: "value",
|
|
2569
2529
|
name: r,
|
|
2570
2530
|
searchParams: H,
|
|
@@ -2572,8 +2532,8 @@ const Hr = (t, r) => {
|
|
|
2572
2532
|
})
|
|
2573
2533
|
}
|
|
2574
2534
|
] : [],
|
|
2575
|
-
onChange: (
|
|
2576
|
-
value:
|
|
2535
|
+
onChange: (z) => zt({
|
|
2536
|
+
value: z,
|
|
2577
2537
|
name: r,
|
|
2578
2538
|
type: "dropdown",
|
|
2579
2539
|
searchQueries: ie,
|
|
@@ -2592,7 +2552,7 @@ const Hr = (t, r) => {
|
|
|
2592
2552
|
{
|
|
2593
2553
|
gap: "sm",
|
|
2594
2554
|
style: {
|
|
2595
|
-
width: d &&
|
|
2555
|
+
width: d && R ? d : R ? "310px" : ""
|
|
2596
2556
|
},
|
|
2597
2557
|
children: [
|
|
2598
2558
|
x && /* @__PURE__ */ u(pe.SubH3, { children: [
|
|
@@ -2600,11 +2560,11 @@ const Hr = (t, r) => {
|
|
|
2600
2560
|
E
|
|
2601
2561
|
] }),
|
|
2602
2562
|
/* @__PURE__ */ e(
|
|
2603
|
-
|
|
2563
|
+
gt,
|
|
2604
2564
|
{
|
|
2605
2565
|
placeholder: n,
|
|
2606
2566
|
leftIcon: /* @__PURE__ */ e(w, { name: "Search", width: 20, height: 20 }),
|
|
2607
|
-
onChange: (
|
|
2567
|
+
onChange: (z) => le(z.target.value),
|
|
2608
2568
|
value: oe,
|
|
2609
2569
|
fullWidth: !0
|
|
2610
2570
|
},
|
|
@@ -2689,7 +2649,7 @@ const Hr = (t, r) => {
|
|
|
2689
2649
|
] }),
|
|
2690
2650
|
/* @__PURE__ */ u(f, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flexShrink: 0 }, children: [
|
|
2691
2651
|
r,
|
|
2692
|
-
t ?
|
|
2652
|
+
t ? st(t) ? t : /* @__PURE__ */ e(
|
|
2693
2653
|
f,
|
|
2694
2654
|
{
|
|
2695
2655
|
style: {
|
|
@@ -2701,7 +2661,7 @@ const Hr = (t, r) => {
|
|
|
2701
2661
|
},
|
|
2702
2662
|
children: t.map(
|
|
2703
2663
|
({ title: d, icon: g, buttonProps: y, onClick: m }, v) => !d && !g ? null : /* @__PURE__ */ e(
|
|
2704
|
-
|
|
2664
|
+
T,
|
|
2705
2665
|
{
|
|
2706
2666
|
fullWidth: !s,
|
|
2707
2667
|
iconLeft: g ? /* @__PURE__ */ e(w, { name: g }) : void 0,
|
|
@@ -2757,7 +2717,7 @@ const Hr = (t, r) => {
|
|
|
2757
2717
|
showPagination: i = !0,
|
|
2758
2718
|
totalData: l
|
|
2759
2719
|
}) => {
|
|
2760
|
-
const { searchQueries: s, setSearchParams: a, searchParams: h } =
|
|
2720
|
+
const { searchQueries: s, setSearchParams: a, searchParams: h } = xt(), d = h.get(n), g = (E) => {
|
|
2761
2721
|
a({ ...s, [r]: String(E) });
|
|
2762
2722
|
}, y = (E) => {
|
|
2763
2723
|
a({
|
|
@@ -2786,7 +2746,7 @@ const Hr = (t, r) => {
|
|
|
2786
2746
|
/* @__PURE__ */ u(f, { style: { display: "flex", flexDirection: "row", gap: "8px", alignItems: "center", textWrap: "nowrap" }, children: [
|
|
2787
2747
|
/* @__PURE__ */ e(D, { children: "Rows Per Page: " }),
|
|
2788
2748
|
/* @__PURE__ */ e(
|
|
2789
|
-
|
|
2749
|
+
ft,
|
|
2790
2750
|
{
|
|
2791
2751
|
dropdownLists: [
|
|
2792
2752
|
{ label: "5", value: "5" },
|
|
@@ -2828,10 +2788,10 @@ const Hr = (t, r) => {
|
|
|
2828
2788
|
) : t.options, [t.options, a]);
|
|
2829
2789
|
$(() => {
|
|
2830
2790
|
if (n && l.current) {
|
|
2831
|
-
const x = l.current.getBoundingClientRect(),
|
|
2791
|
+
const x = l.current.getBoundingClientRect(), V = 280, N = {
|
|
2832
2792
|
top: x.bottom + 8
|
|
2833
2793
|
};
|
|
2834
|
-
t.position === "left" || x.left +
|
|
2794
|
+
t.position === "left" || x.left + V > window.innerWidth ? N.right = window.innerWidth - x.right : N.left = x.left, g(N);
|
|
2835
2795
|
}
|
|
2836
2796
|
}, [n, t.position]), $(() => {
|
|
2837
2797
|
n && s.current ? setTimeout(() => {
|
|
@@ -2839,14 +2799,14 @@ const Hr = (t, r) => {
|
|
|
2839
2799
|
return (x = s.current) == null ? void 0 : x.focus();
|
|
2840
2800
|
}, 50) : h("");
|
|
2841
2801
|
}, [n]), $(() => {
|
|
2842
|
-
const x = (
|
|
2843
|
-
i.current && !i.current.contains(
|
|
2802
|
+
const x = (V) => {
|
|
2803
|
+
i.current && !i.current.contains(V.target) && l.current && !l.current.contains(V.target) && o(!1);
|
|
2844
2804
|
};
|
|
2845
2805
|
return n && document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
|
|
2846
2806
|
}, [n]);
|
|
2847
2807
|
const v = (x) => {
|
|
2848
|
-
const
|
|
2849
|
-
t.onFilterChange(
|
|
2808
|
+
const V = y.includes(x) ? y.filter((N) => N !== x) : [...y, x];
|
|
2809
|
+
t.onFilterChange(V);
|
|
2850
2810
|
}, E = () => t.onFilterChange([]);
|
|
2851
2811
|
return /* @__PURE__ */ u(f, { style: { position: "relative" }, children: [
|
|
2852
2812
|
/* @__PURE__ */ e(
|
|
@@ -2860,8 +2820,8 @@ const Hr = (t, r) => {
|
|
|
2860
2820
|
cursor: "pointer"
|
|
2861
2821
|
},
|
|
2862
2822
|
onClick: (x) => {
|
|
2863
|
-
var
|
|
2864
|
-
x.stopPropagation(), n || (
|
|
2823
|
+
var V;
|
|
2824
|
+
x.stopPropagation(), n || (V = t.onOpen) == null || V.call(t), o((N) => !N);
|
|
2865
2825
|
},
|
|
2866
2826
|
children: /* @__PURE__ */ e(
|
|
2867
2827
|
w,
|
|
@@ -2938,7 +2898,7 @@ const Hr = (t, r) => {
|
|
|
2938
2898
|
paddingBottom: "8px"
|
|
2939
2899
|
},
|
|
2940
2900
|
children: /* @__PURE__ */ e(
|
|
2941
|
-
|
|
2901
|
+
gt,
|
|
2942
2902
|
{
|
|
2943
2903
|
ref: s,
|
|
2944
2904
|
placeholder: `Search ${r.toLowerCase()}...`,
|
|
@@ -3011,18 +2971,18 @@ const Hr = (t, r) => {
|
|
|
3011
2971
|
transition: "all 0.2s ease",
|
|
3012
2972
|
backgroundColor: y.includes(x.value) ? "var(--sa-color-brand-50, #e6edf6)" : "transparent"
|
|
3013
2973
|
},
|
|
3014
|
-
onClick: (
|
|
3015
|
-
|
|
2974
|
+
onClick: (V) => {
|
|
2975
|
+
V.stopPropagation(), v(x.value);
|
|
3016
2976
|
},
|
|
3017
|
-
onMouseEnter: (
|
|
3018
|
-
y.includes(x.value) || (
|
|
2977
|
+
onMouseEnter: (V) => {
|
|
2978
|
+
y.includes(x.value) || (V.currentTarget.style.backgroundColor = "var(--sa-background-primary, #ffffff)"), V.currentTarget.style.transform = "translateX(2px)";
|
|
3019
2979
|
},
|
|
3020
|
-
onMouseLeave: (
|
|
3021
|
-
|
|
2980
|
+
onMouseLeave: (V) => {
|
|
2981
|
+
V.currentTarget.style.backgroundColor = y.includes(x.value) ? "var(--sa-color-brand-50, #e6edf6)" : "transparent", V.currentTarget.style.transform = "translateX(0)";
|
|
3022
2982
|
},
|
|
3023
2983
|
children: [
|
|
3024
2984
|
/* @__PURE__ */ e(
|
|
3025
|
-
|
|
2985
|
+
ct,
|
|
3026
2986
|
{
|
|
3027
2987
|
checked: y.includes(x.value),
|
|
3028
2988
|
onChange: () => {
|
|
@@ -3170,7 +3130,7 @@ const Hr = (t, r) => {
|
|
|
3170
3130
|
/* @__PURE__ */ e("path", { d: t ? "M7 11V7a5 5 0 0 1 10 0v4" : "M7 11V7a5 5 0 0 1 9.9-1" })
|
|
3171
3131
|
]
|
|
3172
3132
|
}
|
|
3173
|
-
),
|
|
3133
|
+
), ot = "var(--sa-background-primary, #ffffff)", Nt = "var(--sa-background-primary-inverse, #f8f8f8)", vn = ({
|
|
3174
3134
|
columns: t,
|
|
3175
3135
|
records: r,
|
|
3176
3136
|
handleDetail: n,
|
|
@@ -3187,8 +3147,8 @@ const Hr = (t, r) => {
|
|
|
3187
3147
|
customActions: v,
|
|
3188
3148
|
actionsOrder: E = ["detail", "update", "delete", "custom"],
|
|
3189
3149
|
customEmptyState: x,
|
|
3190
|
-
enableColumnResize:
|
|
3191
|
-
defaultColumnWidths:
|
|
3150
|
+
enableColumnResize: V = !1,
|
|
3151
|
+
defaultColumnWidths: N,
|
|
3192
3152
|
onColumnWidthsChange: _,
|
|
3193
3153
|
defaultMinColumnWidth: G = 60,
|
|
3194
3154
|
sort: B,
|
|
@@ -3206,63 +3166,63 @@ const Hr = (t, r) => {
|
|
|
3206
3166
|
if (!S) return;
|
|
3207
3167
|
let b;
|
|
3208
3168
|
!j || j.key !== S ? b = { key: S, direction: "asc" } : j.direction === "asc" ? b = { key: S, direction: "desc" } : b = null, Q || ie(b), q == null || q(b);
|
|
3209
|
-
}, X = [n, o, i].filter((C) => C !== void 0).length, Y = !!v,
|
|
3169
|
+
}, X = [n, o, i].filter((C) => C !== void 0).length, Y = !!v, R = !!n || !!o || !!i || Y, z = "var(--sa-border-subtle, #0b120e24)", K = `1px solid ${z}`, fe = `inset 1px 0 0 ${z}`, ge = `inset -1px 0 0 ${z}`, We = X === 3 ? Y ? "178px" : "140px" : X === 2 ? Y ? "140px" : "102px" : X === 1 ? Y ? "112px" : "74px" : Y ? "74px" : "", Ne = (C, S) => {
|
|
3210
3170
|
if (!S) return C;
|
|
3211
3171
|
if (typeof S == "function") return S(C);
|
|
3212
3172
|
if (typeof S == "string") return C[S];
|
|
3213
|
-
}, [
|
|
3173
|
+
}, [et, Te] = k(!1);
|
|
3214
3174
|
$(() => {
|
|
3215
3175
|
if (!(g != null && g.current)) return;
|
|
3216
3176
|
const C = g.current;
|
|
3217
3177
|
Te(C.scrollHeight > C.clientHeight);
|
|
3218
3178
|
}, [r, g]);
|
|
3219
|
-
const
|
|
3220
|
-
() =>
|
|
3179
|
+
const Ae = te(null), [de, Oe] = k([]), [He, Fe] = k(
|
|
3180
|
+
() => N ?? {}
|
|
3221
3181
|
), Ee = te(null);
|
|
3222
|
-
|
|
3223
|
-
if (!y || !
|
|
3224
|
-
|
|
3182
|
+
at(() => {
|
|
3183
|
+
if (!y || !Ae.current) {
|
|
3184
|
+
Oe([]);
|
|
3225
3185
|
return;
|
|
3226
3186
|
}
|
|
3227
3187
|
const C = Array.from(
|
|
3228
|
-
|
|
3188
|
+
Ae.current.querySelectorAll("thead tr th")
|
|
3229
3189
|
), S = [];
|
|
3230
3190
|
let b = 0;
|
|
3231
|
-
C.forEach((W,
|
|
3232
|
-
S[
|
|
3233
|
-
}),
|
|
3234
|
-
}, [y, t, r,
|
|
3235
|
-
const
|
|
3191
|
+
C.forEach((W, I) => {
|
|
3192
|
+
S[I] = b, I < y && (b += W.offsetWidth);
|
|
3193
|
+
}), Oe(S);
|
|
3194
|
+
}, [y, t, r, He]);
|
|
3195
|
+
const _e = (C) => {
|
|
3236
3196
|
m && m(C < y ? C : C + 1);
|
|
3237
3197
|
}, p = (C, S) => {
|
|
3238
|
-
const b =
|
|
3198
|
+
const b = He[C];
|
|
3239
3199
|
if (b !== void 0) {
|
|
3240
3200
|
const W = `${b}px`;
|
|
3241
3201
|
return { width: W, minWidth: W, maxWidth: W };
|
|
3242
3202
|
}
|
|
3243
3203
|
return S ? { width: S } : {};
|
|
3244
|
-
}, F = (C) =>
|
|
3204
|
+
}, F = (C) => V && (C.resizable ?? !0), M = (C, S) => {
|
|
3245
3205
|
C.preventDefault(), C.stopPropagation();
|
|
3246
3206
|
const b = C.currentTarget.closest("th");
|
|
3247
3207
|
if (!b) return;
|
|
3248
3208
|
const W = Math.round(b.getBoundingClientRect().width);
|
|
3249
3209
|
Ee.current = { colIndex: S, startX: C.clientX, startWidth: W };
|
|
3250
|
-
const
|
|
3210
|
+
const I = document.body.style.userSelect, ue = document.body.style.cursor;
|
|
3251
3211
|
document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
|
|
3252
3212
|
const xe = (ve) => {
|
|
3253
3213
|
var Me;
|
|
3254
3214
|
const Ce = Ee.current;
|
|
3255
3215
|
if (!Ce) return;
|
|
3256
|
-
const
|
|
3216
|
+
const Ze = ((Me = t[Ce.colIndex]) == null ? void 0 : Me.minWidth) ?? G, Ie = Math.max(Ze, Ce.startWidth + (ve.clientX - Ce.startX));
|
|
3257
3217
|
Fe(
|
|
3258
|
-
(
|
|
3218
|
+
(tt) => tt[Ce.colIndex] === Ie ? tt : { ...tt, [Ce.colIndex]: Ie }
|
|
3259
3219
|
);
|
|
3260
3220
|
}, we = () => {
|
|
3261
|
-
document.removeEventListener("mousemove", xe), document.removeEventListener("mouseup", we), document.body.style.userSelect =
|
|
3221
|
+
document.removeEventListener("mousemove", xe), document.removeEventListener("mouseup", we), document.body.style.userSelect = I, document.body.style.cursor = ue, Ee.current = null, _ && Fe((ve) => (_(ve), ve));
|
|
3262
3222
|
};
|
|
3263
3223
|
document.addEventListener("mousemove", xe), document.addEventListener("mouseup", we);
|
|
3264
3224
|
};
|
|
3265
|
-
return /* @__PURE__ */ e("div", { ref:
|
|
3225
|
+
return /* @__PURE__ */ e("div", { ref: Ae, children: /* @__PURE__ */ u(Ut, { fullWidth: !0, children: [
|
|
3266
3226
|
/* @__PURE__ */ e(
|
|
3267
3227
|
dr,
|
|
3268
3228
|
{
|
|
@@ -3270,12 +3230,12 @@ const Hr = (t, r) => {
|
|
|
3270
3230
|
height: "40px",
|
|
3271
3231
|
whiteSpace: "nowrap"
|
|
3272
3232
|
},
|
|
3273
|
-
children: /* @__PURE__ */ u(
|
|
3233
|
+
children: /* @__PURE__ */ u(Re, { children: [
|
|
3274
3234
|
t.map((C, S) => {
|
|
3275
|
-
var
|
|
3276
|
-
const b = y > 0 && S < y, W = de[S] ?? 0,
|
|
3235
|
+
var Ze, Ie;
|
|
3236
|
+
const b = y > 0 && S < y, W = de[S] ?? 0, I = F(C), xe = S === t.length - 1 && R && H, we = oe(C), ve = !!C.sortable && !!we, Ce = ve && (j == null ? void 0 : j.key) === we ? j.direction : null;
|
|
3277
3237
|
return /* @__PURE__ */ u(
|
|
3278
|
-
|
|
3238
|
+
St,
|
|
3279
3239
|
{
|
|
3280
3240
|
style: {
|
|
3281
3241
|
position: "sticky",
|
|
@@ -3334,7 +3294,7 @@ const Hr = (t, r) => {
|
|
|
3334
3294
|
textOverflow: "ellipsis",
|
|
3335
3295
|
whiteSpace: "nowrap"
|
|
3336
3296
|
},
|
|
3337
|
-
children: C.title || ((
|
|
3297
|
+
children: C.title || ((Ze = C.accessor) == null ? void 0 : Ze.toString())
|
|
3338
3298
|
}
|
|
3339
3299
|
),
|
|
3340
3300
|
/* @__PURE__ */ e(Cn, { direction: Ce })
|
|
@@ -3350,7 +3310,7 @@ const Hr = (t, r) => {
|
|
|
3350
3310
|
textOverflow: "ellipsis",
|
|
3351
3311
|
whiteSpace: "nowrap"
|
|
3352
3312
|
},
|
|
3353
|
-
children: C.title || ((
|
|
3313
|
+
children: C.title || ((Ie = C.accessor) == null ? void 0 : Ie.toString())
|
|
3354
3314
|
}
|
|
3355
3315
|
),
|
|
3356
3316
|
C.filter && /* @__PURE__ */ e(
|
|
@@ -3363,7 +3323,7 @@ const Hr = (t, r) => {
|
|
|
3363
3323
|
m && /* @__PURE__ */ e(
|
|
3364
3324
|
"button",
|
|
3365
3325
|
{
|
|
3366
|
-
onClick: () =>
|
|
3326
|
+
onClick: () => _e(S),
|
|
3367
3327
|
title: b ? "Unfreeze column" : "Freeze column",
|
|
3368
3328
|
style: {
|
|
3369
3329
|
background: "none",
|
|
@@ -3383,7 +3343,7 @@ const Hr = (t, r) => {
|
|
|
3383
3343
|
]
|
|
3384
3344
|
}
|
|
3385
3345
|
),
|
|
3386
|
-
|
|
3346
|
+
I && /* @__PURE__ */ e(
|
|
3387
3347
|
"div",
|
|
3388
3348
|
{
|
|
3389
3349
|
onMouseDown: (Me) => M(Me, S),
|
|
@@ -3409,8 +3369,8 @@ const Hr = (t, r) => {
|
|
|
3409
3369
|
`table-head-${S}`
|
|
3410
3370
|
);
|
|
3411
3371
|
}),
|
|
3412
|
-
|
|
3413
|
-
|
|
3372
|
+
R ? /* @__PURE__ */ e(
|
|
3373
|
+
St,
|
|
3414
3374
|
{
|
|
3415
3375
|
style: {
|
|
3416
3376
|
backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
|
|
@@ -3426,35 +3386,35 @@ const Hr = (t, r) => {
|
|
|
3426
3386
|
] })
|
|
3427
3387
|
}
|
|
3428
3388
|
),
|
|
3429
|
-
/* @__PURE__ */ e(ur, { children: l ? /* @__PURE__ */ e(
|
|
3430
|
-
/* @__PURE__ */ e(
|
|
3431
|
-
/* @__PURE__ */ e(
|
|
3432
|
-
/* @__PURE__ */ e(
|
|
3433
|
-
/* @__PURE__ */ e(
|
|
3434
|
-
/* @__PURE__ */ e(
|
|
3435
|
-
] }) }) }) : !(r != null && r.length) && x ? /* @__PURE__ */ e(
|
|
3436
|
-
|
|
3389
|
+
/* @__PURE__ */ e(ur, { children: l ? /* @__PURE__ */ e(Re, { children: /* @__PURE__ */ e(Se, { colSpan: t.length + 1, children: /* @__PURE__ */ u(f, { style: { gap: "16px" }, children: [
|
|
3390
|
+
/* @__PURE__ */ e(Ve, { variant: "list" }),
|
|
3391
|
+
/* @__PURE__ */ e(Ve, { variant: "list" }),
|
|
3392
|
+
/* @__PURE__ */ e(Ve, { variant: "list" }),
|
|
3393
|
+
/* @__PURE__ */ e(Ve, { variant: "list" }),
|
|
3394
|
+
/* @__PURE__ */ e(Ve, { variant: "list" })
|
|
3395
|
+
] }) }) }) : !(r != null && r.length) && x ? /* @__PURE__ */ e(Re, { children: /* @__PURE__ */ e(Se, { colSpan: t.length + 1, children: x }) }) : r == null ? void 0 : r.map((C, S) => /* @__PURE__ */ u(
|
|
3396
|
+
Re,
|
|
3437
3397
|
{
|
|
3438
3398
|
style: {
|
|
3439
3399
|
transition: "background-color 0.3s ease",
|
|
3440
3400
|
padding: 0,
|
|
3441
|
-
borderBottom: S === r.length - 1 &&
|
|
3401
|
+
borderBottom: S === r.length - 1 && et ? void 0 : "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
3442
3402
|
},
|
|
3443
3403
|
onMouseEnter: (b) => {
|
|
3444
3404
|
const W = b.currentTarget;
|
|
3445
|
-
W.style.backgroundColor =
|
|
3446
|
-
|
|
3405
|
+
W.style.backgroundColor = Nt, Array.from(W.querySelectorAll("td")).forEach((I) => {
|
|
3406
|
+
I.style.position === "sticky" && (I.style.backgroundColor = Nt);
|
|
3447
3407
|
});
|
|
3448
3408
|
},
|
|
3449
3409
|
onMouseLeave: (b) => {
|
|
3450
3410
|
const W = b.currentTarget;
|
|
3451
|
-
W.style.backgroundColor = "", Array.from(W.querySelectorAll("td")).forEach((
|
|
3452
|
-
|
|
3411
|
+
W.style.backgroundColor = "", Array.from(W.querySelectorAll("td")).forEach((I) => {
|
|
3412
|
+
I.style.position === "sticky" && (I.style.backgroundColor = ot);
|
|
3453
3413
|
});
|
|
3454
3414
|
},
|
|
3455
3415
|
children: [
|
|
3456
3416
|
t.map((b, W) => {
|
|
3457
|
-
const
|
|
3417
|
+
const I = b.render ? b.render(C, S, r) : Ne(C, b.accessor), ue = y > 0 && W < y, xe = de[W] ?? 0, we = He[W] !== void 0, ve = ue && W === y - 1;
|
|
3458
3418
|
return /* @__PURE__ */ e(
|
|
3459
3419
|
Se,
|
|
3460
3420
|
{
|
|
@@ -3462,7 +3422,7 @@ const Hr = (t, r) => {
|
|
|
3462
3422
|
position: ue ? "sticky" : void 0,
|
|
3463
3423
|
left: ue ? xe : void 0,
|
|
3464
3424
|
zIndex: ue ? 1 : void 0,
|
|
3465
|
-
backgroundColor: ue ?
|
|
3425
|
+
backgroundColor: ue ? ot : void 0,
|
|
3466
3426
|
transition: ue ? "background-color 0.3s ease" : void 0,
|
|
3467
3427
|
paddingLeft: W === 0 ? "12px" : "",
|
|
3468
3428
|
whiteSpace: "nowrap",
|
|
@@ -3473,7 +3433,7 @@ const Hr = (t, r) => {
|
|
|
3473
3433
|
textAlign: b.textAlign === "text-right" ? "right" : b.textAlign === "text-center" ? "center" : "left",
|
|
3474
3434
|
...p(W, b.width)
|
|
3475
3435
|
},
|
|
3476
|
-
children: typeof
|
|
3436
|
+
children: typeof I == "string" ? /* @__PURE__ */ e(
|
|
3477
3437
|
D,
|
|
3478
3438
|
{
|
|
3479
3439
|
style: {
|
|
@@ -3482,25 +3442,25 @@ const Hr = (t, r) => {
|
|
|
3482
3442
|
textOverflow: "ellipsis",
|
|
3483
3443
|
textAlign: b.textAlign === "text-right" ? "right" : b.textAlign === "text-center" ? "center" : "left"
|
|
3484
3444
|
},
|
|
3485
|
-
children:
|
|
3445
|
+
children: I
|
|
3486
3446
|
}
|
|
3487
|
-
) :
|
|
3447
|
+
) : I
|
|
3488
3448
|
},
|
|
3489
3449
|
`row-${S}-col-${W}`
|
|
3490
3450
|
);
|
|
3491
3451
|
}),
|
|
3492
|
-
|
|
3493
|
-
width:
|
|
3452
|
+
R ? /* @__PURE__ */ e(Se, { style: {
|
|
3453
|
+
width: We,
|
|
3494
3454
|
position: "sticky",
|
|
3495
3455
|
right: 0,
|
|
3496
3456
|
zIndex: 1,
|
|
3497
|
-
backgroundColor:
|
|
3457
|
+
backgroundColor: ot,
|
|
3498
3458
|
boxShadow: H ? fe : void 0,
|
|
3499
3459
|
transition: "background-color 0.3s ease"
|
|
3500
3460
|
}, children: /* @__PURE__ */ e(U, { direction: "row", align: "center", justify: "center", gap: "sm", children: E.map((b) => {
|
|
3501
3461
|
const W = S === r.length - 1 ? "top" : "bottom";
|
|
3502
3462
|
return b === "detail" && n && (h == null ? void 0 : h(C)) !== !1 ? /* @__PURE__ */ e(me, { label: "Detail", position: W, children: /* @__PURE__ */ e(
|
|
3503
|
-
|
|
3463
|
+
T,
|
|
3504
3464
|
{
|
|
3505
3465
|
size: "xs",
|
|
3506
3466
|
variant: "outline",
|
|
@@ -3509,7 +3469,7 @@ const Hr = (t, r) => {
|
|
|
3509
3469
|
iconLeft: /* @__PURE__ */ e(w, { name: "DocumentClean", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
3510
3470
|
}
|
|
3511
3471
|
) }, "detail") : b === "update" && o && (a == null ? void 0 : a(C)) !== !1 ? /* @__PURE__ */ e(me, { label: "Update", position: W, children: /* @__PURE__ */ e(
|
|
3512
|
-
|
|
3472
|
+
T,
|
|
3513
3473
|
{
|
|
3514
3474
|
size: "xs",
|
|
3515
3475
|
variant: "outline",
|
|
@@ -3518,7 +3478,7 @@ const Hr = (t, r) => {
|
|
|
3518
3478
|
iconLeft: /* @__PURE__ */ e(w, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
3519
3479
|
}
|
|
3520
3480
|
) }, "update") : b === "delete" && i && (s == null ? void 0 : s(C)) !== !1 ? /* @__PURE__ */ e(me, { label: "Delete", position: W, children: /* @__PURE__ */ e(
|
|
3521
|
-
|
|
3481
|
+
T,
|
|
3522
3482
|
{
|
|
3523
3483
|
size: "xs",
|
|
3524
3484
|
variant: "outline",
|
|
@@ -3526,7 +3486,7 @@ const Hr = (t, r) => {
|
|
|
3526
3486
|
onClick: () => i(C.id, C),
|
|
3527
3487
|
iconLeft: /* @__PURE__ */ e(w, { name: "Trash1", size: "sm", style: { color: "var(--sa-color-error-600, #c9184a)" } })
|
|
3528
3488
|
}
|
|
3529
|
-
) }, "delete") : b === "custom" ? /* @__PURE__ */ e(
|
|
3489
|
+
) }, "delete") : b === "custom" ? /* @__PURE__ */ e(Ge.Fragment, { children: v == null ? void 0 : v(C) }, "custom") : null;
|
|
3530
3490
|
}) }) }) : null
|
|
3531
3491
|
]
|
|
3532
3492
|
},
|
|
@@ -3585,10 +3545,10 @@ function wn(t) {
|
|
|
3585
3545
|
t
|
|
3586
3546
|
);
|
|
3587
3547
|
}
|
|
3588
|
-
const
|
|
3548
|
+
const Yi = wn(bn), Ct = ({
|
|
3589
3549
|
of: t,
|
|
3590
3550
|
render: r
|
|
3591
|
-
}) => yr.toArray(t == null ? void 0 : t.map((n, o, i) => r(n, o, i))),
|
|
3551
|
+
}) => yr.toArray(t == null ? void 0 : t.map((n, o, i) => r(n, o, i))), O = ({
|
|
3592
3552
|
condition: t,
|
|
3593
3553
|
fallback: r,
|
|
3594
3554
|
children: n,
|
|
@@ -3621,7 +3581,7 @@ const Xi = wn(bn), vt = ({
|
|
|
3621
3581
|
...i.containerProps,
|
|
3622
3582
|
children: [
|
|
3623
3583
|
i.title && /* @__PURE__ */ e(
|
|
3624
|
-
|
|
3584
|
+
O,
|
|
3625
3585
|
{
|
|
3626
3586
|
condition: !!i.inputProps.required,
|
|
3627
3587
|
fallback: /* @__PURE__ */ u(
|
|
@@ -3646,7 +3606,7 @@ const Xi = wn(bn), vt = ({
|
|
|
3646
3606
|
/* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
|
|
3647
3607
|
/* @__PURE__ */ e(Z, { fontSize: t, children: i.title }),
|
|
3648
3608
|
/* @__PURE__ */ e(Z, { color: "error", fontSize: t, children: n }),
|
|
3649
|
-
/* @__PURE__ */ e(
|
|
3609
|
+
/* @__PURE__ */ e(O, { condition: !!((a = i.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
3650
3610
|
me,
|
|
3651
3611
|
{
|
|
3652
3612
|
label: (h = i.tooltip) == null ? void 0 : h.label,
|
|
@@ -3666,7 +3626,7 @@ const Xi = wn(bn), vt = ({
|
|
|
3666
3626
|
}
|
|
3667
3627
|
) })
|
|
3668
3628
|
] }),
|
|
3669
|
-
/* @__PURE__ */ e(
|
|
3629
|
+
/* @__PURE__ */ e(O, { condition: !!i.description, children: /* @__PURE__ */ e(D, { fontSize: t, color: "gray-500", children: i.description }) })
|
|
3670
3630
|
]
|
|
3671
3631
|
}
|
|
3672
3632
|
)
|
|
@@ -3674,7 +3634,7 @@ const Xi = wn(bn), vt = ({
|
|
|
3674
3634
|
),
|
|
3675
3635
|
/* @__PURE__ */ u(f, { gap: "xs", fullWidth: i.inputProps.fullWidth || !1, children: [
|
|
3676
3636
|
/* @__PURE__ */ e(
|
|
3677
|
-
|
|
3637
|
+
gt,
|
|
3678
3638
|
{
|
|
3679
3639
|
ref: i.inputRef,
|
|
3680
3640
|
size: t,
|
|
@@ -3706,7 +3666,7 @@ const Xi = wn(bn), vt = ({
|
|
|
3706
3666
|
onClick: i.onClickContainer,
|
|
3707
3667
|
children: [
|
|
3708
3668
|
i.title && /* @__PURE__ */ e(
|
|
3709
|
-
|
|
3669
|
+
O,
|
|
3710
3670
|
{
|
|
3711
3671
|
condition: !!i.inputProps.required,
|
|
3712
3672
|
fallback: /* @__PURE__ */ u(
|
|
@@ -3731,7 +3691,7 @@ const Xi = wn(bn), vt = ({
|
|
|
3731
3691
|
/* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
|
|
3732
3692
|
/* @__PURE__ */ e(Z, { fontSize: t, children: i.title }),
|
|
3733
3693
|
/* @__PURE__ */ e(Z, { color: "error", fontSize: t, children: n }),
|
|
3734
|
-
/* @__PURE__ */ e(
|
|
3694
|
+
/* @__PURE__ */ e(O, { condition: !!((a = i.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
3735
3695
|
me,
|
|
3736
3696
|
{
|
|
3737
3697
|
label: (h = i.tooltip) == null ? void 0 : h.label,
|
|
@@ -3751,7 +3711,7 @@ const Xi = wn(bn), vt = ({
|
|
|
3751
3711
|
}
|
|
3752
3712
|
) })
|
|
3753
3713
|
] }),
|
|
3754
|
-
/* @__PURE__ */ e(
|
|
3714
|
+
/* @__PURE__ */ e(O, { condition: !!i.description, children: /* @__PURE__ */ e(D, { fontSize: t, color: "gray-500", children: i.description }) })
|
|
3755
3715
|
]
|
|
3756
3716
|
}
|
|
3757
3717
|
)
|
|
@@ -3765,7 +3725,7 @@ const Xi = wn(bn), vt = ({
|
|
|
3765
3725
|
width: i.inputProps.fullWidth ? "100%" : r === "horizontal" && i.customWidth ? i.customWidth : r === "horizontal" ? "343px" : ""
|
|
3766
3726
|
},
|
|
3767
3727
|
children: /* @__PURE__ */ e(
|
|
3768
|
-
|
|
3728
|
+
ft,
|
|
3769
3729
|
{
|
|
3770
3730
|
size: t,
|
|
3771
3731
|
...i.inputProps,
|
|
@@ -3821,7 +3781,7 @@ const Xi = wn(bn), vt = ({
|
|
|
3821
3781
|
}
|
|
3822
3782
|
}
|
|
3823
3783
|
),
|
|
3824
|
-
/* @__PURE__ */ u(U, { gap: "xs", children: [
|
|
3784
|
+
/* @__PURE__ */ u(U, { direction: "column", gap: "xs", children: [
|
|
3825
3785
|
/* @__PURE__ */ u(U, { direction: "row", gap: "xs", children: [
|
|
3826
3786
|
/* @__PURE__ */ e(
|
|
3827
3787
|
D,
|
|
@@ -3849,7 +3809,7 @@ const Xi = wn(bn), vt = ({
|
|
|
3849
3809
|
}
|
|
3850
3810
|
);
|
|
3851
3811
|
};
|
|
3852
|
-
function
|
|
3812
|
+
function Xi(t) {
|
|
3853
3813
|
return t.split(" ").map((r) => r[0]).join("").slice(0, 2).toUpperCase();
|
|
3854
3814
|
}
|
|
3855
3815
|
const Mn = (t) => {
|
|
@@ -3859,7 +3819,7 @@ const Mn = (t) => {
|
|
|
3859
3819
|
year: "numeric"
|
|
3860
3820
|
};
|
|
3861
3821
|
return t.toLocaleDateString("id-ID", r);
|
|
3862
|
-
},
|
|
3822
|
+
}, Ki = (t) => {
|
|
3863
3823
|
const r = {
|
|
3864
3824
|
Jan: 0,
|
|
3865
3825
|
Feb: 1,
|
|
@@ -3879,7 +3839,7 @@ const Mn = (t) => {
|
|
|
3879
3839
|
const o = parseInt(n[0], 10), i = r[n[1]], l = parseInt(n[2], 10);
|
|
3880
3840
|
return isNaN(o) || isNaN(i) || isNaN(l) ? null : new Date(l, i, o);
|
|
3881
3841
|
};
|
|
3882
|
-
function
|
|
3842
|
+
function eo(t, r = !0) {
|
|
3883
3843
|
if (!t)
|
|
3884
3844
|
return "Rp 0";
|
|
3885
3845
|
const n = typeof t == "number" ? t.toString() : t;
|
|
@@ -3894,19 +3854,19 @@ String.prototype.toTitleCase = function() {
|
|
|
3894
3854
|
String.prototype.toNumber = function() {
|
|
3895
3855
|
return Number(this);
|
|
3896
3856
|
};
|
|
3897
|
-
const
|
|
3857
|
+
const to = (t) => {
|
|
3898
3858
|
const r = t.split(" ");
|
|
3899
3859
|
let n = r[0].charAt(0);
|
|
3900
3860
|
return r.length > 1 && (n += "" + r[1].charAt(0)), n.toUpperCase();
|
|
3901
3861
|
};
|
|
3902
|
-
function
|
|
3862
|
+
function ro(t) {
|
|
3903
3863
|
const r = typeof t == "string" ? new Date(t) : t;
|
|
3904
3864
|
if (isNaN(r.getTime()))
|
|
3905
3865
|
throw new Error("Invalid date format");
|
|
3906
3866
|
const n = r.getFullYear(), o = String(r.getMonth() + 1).padStart(2, "0"), i = String(r.getDate()).padStart(2, "0");
|
|
3907
3867
|
return `${n}-${o}-${i}`;
|
|
3908
3868
|
}
|
|
3909
|
-
const Ln = "sa-admin", ye = (t) => `var(--${Ln}-${t})`,
|
|
3869
|
+
const Ln = "sa-admin", ye = (t) => `var(--${Ln}-${t})`, no = {
|
|
3910
3870
|
base: {
|
|
3911
3871
|
borderColor: ye("base-border-color"),
|
|
3912
3872
|
textColor: ye("base-text-color"),
|
|
@@ -3924,22 +3884,22 @@ const Ln = "sa-admin", ye = (t) => `var(--${Ln}-${t})`, io = {
|
|
|
3924
3884
|
collapseWidth: ye("sidebar-collapse-width"),
|
|
3925
3885
|
collapseV2Width: ye("sidebar-v2-collapse-width")
|
|
3926
3886
|
}
|
|
3927
|
-
},
|
|
3887
|
+
}, io = 24 * 60 * 60 * 1e3, oo = (t) => {
|
|
3928
3888
|
const r = "14px poppins", o = document.createElement("canvas").getContext("2d");
|
|
3929
3889
|
o.font = r;
|
|
3930
3890
|
const i = o.measureText(t).width;
|
|
3931
3891
|
return Number(Math.ceil(i));
|
|
3932
3892
|
}, Bn = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, Wn = /--+/, An = /-$/;
|
|
3933
|
-
function
|
|
3893
|
+
function lo(t, r) {
|
|
3934
3894
|
return JSON.stringify(t) !== JSON.stringify(r);
|
|
3935
3895
|
}
|
|
3936
|
-
function
|
|
3896
|
+
function co(t) {
|
|
3937
3897
|
return /^(?:\+62|62|0)8[1-9][0-9]{7,10}$/.test(t);
|
|
3938
3898
|
}
|
|
3939
|
-
function
|
|
3899
|
+
function ao(t) {
|
|
3940
3900
|
return /^[A-Za-z\s]+$/.test(t);
|
|
3941
3901
|
}
|
|
3942
|
-
const
|
|
3902
|
+
const so = (t) => {
|
|
3943
3903
|
const r = /^[0-9]$/, n = [
|
|
3944
3904
|
"ArrowLeft",
|
|
3945
3905
|
"ArrowRight",
|
|
@@ -3951,7 +3911,7 @@ const uo = (t) => {
|
|
|
3951
3911
|
"Tab"
|
|
3952
3912
|
];
|
|
3953
3913
|
(t.ctrlKey || t.metaKey) && (t.key === "a" || t.key === "c" || t.key === "v") || !r.test(t.key) && !n.includes(t.key) && t.preventDefault();
|
|
3954
|
-
},
|
|
3914
|
+
}, uo = (t) => {
|
|
3955
3915
|
const r = /^[0-9]$/, n = [
|
|
3956
3916
|
"ArrowLeft",
|
|
3957
3917
|
"ArrowRight",
|
|
@@ -3963,7 +3923,7 @@ const uo = (t) => {
|
|
|
3963
3923
|
"Tab"
|
|
3964
3924
|
];
|
|
3965
3925
|
(t.ctrlKey || t.metaKey) && t.key === "v" || r.test(t.key) && !n.includes(t.key) && t.preventDefault();
|
|
3966
|
-
},
|
|
3926
|
+
}, ho = (t) => {
|
|
3967
3927
|
const r = /^[0-9.]$/, n = [
|
|
3968
3928
|
"ArrowLeft",
|
|
3969
3929
|
"ArrowRight",
|
|
@@ -3975,11 +3935,11 @@ const uo = (t) => {
|
|
|
3975
3935
|
"Tab"
|
|
3976
3936
|
];
|
|
3977
3937
|
(t.ctrlKey || t.metaKey) && t.key === "v" || !r.test(t.key) && !n.includes(t.key) && t.preventDefault();
|
|
3978
|
-
},
|
|
3979
|
-
function
|
|
3938
|
+
}, fo = (t) => Bn.test(t);
|
|
3939
|
+
function go(t) {
|
|
3980
3940
|
return !(Wn.test(t) || An.test(t));
|
|
3981
3941
|
}
|
|
3982
|
-
const
|
|
3942
|
+
const mo = (t) => {
|
|
3983
3943
|
const r = [
|
|
3984
3944
|
"ArrowLeft",
|
|
3985
3945
|
"ArrowRight",
|
|
@@ -3996,7 +3956,7 @@ const yo = (t) => {
|
|
|
3996
3956
|
return;
|
|
3997
3957
|
const n = t.currentTarget.value;
|
|
3998
3958
|
/^[0-9]$/.test(t.key) || t.key === "." && !n.includes(".") || t.key === "-" && n.length === 0 && !n.includes("-") || r.includes(t.key) || t.preventDefault();
|
|
3999
|
-
},
|
|
3959
|
+
}, yo = (t) => {
|
|
4000
3960
|
const r = document.getElementById(t);
|
|
4001
3961
|
if (r) {
|
|
4002
3962
|
const n = r.getBoundingClientRect(), o = window.scrollY + n.top - 80;
|
|
@@ -4053,7 +4013,7 @@ const Vn = (t) => {
|
|
|
4053
4013
|
}
|
|
4054
4014
|
}
|
|
4055
4015
|
),
|
|
4056
|
-
/* @__PURE__ */ u(U, { children: [
|
|
4016
|
+
/* @__PURE__ */ u(U, { direction: "column", children: [
|
|
4057
4017
|
/* @__PURE__ */ e(
|
|
4058
4018
|
D,
|
|
4059
4019
|
{
|
|
@@ -4087,7 +4047,7 @@ const Vn = (t) => {
|
|
|
4087
4047
|
] })
|
|
4088
4048
|
] }),
|
|
4089
4049
|
/* @__PURE__ */ e(
|
|
4090
|
-
|
|
4050
|
+
T,
|
|
4091
4051
|
{
|
|
4092
4052
|
size: "xs",
|
|
4093
4053
|
secondary: !0,
|
|
@@ -4188,7 +4148,7 @@ const Vn = (t) => {
|
|
|
4188
4148
|
...i.containerProps,
|
|
4189
4149
|
children: [
|
|
4190
4150
|
i.title && /* @__PURE__ */ e(
|
|
4191
|
-
|
|
4151
|
+
O,
|
|
4192
4152
|
{
|
|
4193
4153
|
condition: !!i.inputProps.required,
|
|
4194
4154
|
fallback: /* @__PURE__ */ u(
|
|
@@ -4213,7 +4173,7 @@ const Vn = (t) => {
|
|
|
4213
4173
|
/* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
|
|
4214
4174
|
/* @__PURE__ */ e(Z, { fontSize: t, children: i.title }),
|
|
4215
4175
|
/* @__PURE__ */ e(Z, { color: "error", fontSize: t, children: n }),
|
|
4216
|
-
/* @__PURE__ */ e(
|
|
4176
|
+
/* @__PURE__ */ e(O, { condition: !!((a = i.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
4217
4177
|
me,
|
|
4218
4178
|
{
|
|
4219
4179
|
label: (h = i.tooltip) == null ? void 0 : h.label,
|
|
@@ -4233,13 +4193,13 @@ const Vn = (t) => {
|
|
|
4233
4193
|
}
|
|
4234
4194
|
) })
|
|
4235
4195
|
] }),
|
|
4236
|
-
/* @__PURE__ */ e(
|
|
4196
|
+
/* @__PURE__ */ e(O, { condition: !!i.description, children: /* @__PURE__ */ e(D, { fontSize: t, color: "gray-500", children: i.description }) })
|
|
4237
4197
|
]
|
|
4238
4198
|
}
|
|
4239
4199
|
)
|
|
4240
4200
|
}
|
|
4241
4201
|
),
|
|
4242
|
-
/* @__PURE__ */ u(U, { gap: "xs", children: [
|
|
4202
|
+
/* @__PURE__ */ u(U, { direction: "column", gap: "xs", children: [
|
|
4243
4203
|
/* @__PURE__ */ e(
|
|
4244
4204
|
Rn,
|
|
4245
4205
|
{
|
|
@@ -4270,7 +4230,7 @@ const Vn = (t) => {
|
|
|
4270
4230
|
...l.containerProps,
|
|
4271
4231
|
children: [
|
|
4272
4232
|
l.title && /* @__PURE__ */ e(
|
|
4273
|
-
|
|
4233
|
+
O,
|
|
4274
4234
|
{
|
|
4275
4235
|
condition: !!i,
|
|
4276
4236
|
fallback: /* @__PURE__ */ u(
|
|
@@ -4295,7 +4255,7 @@ const Vn = (t) => {
|
|
|
4295
4255
|
/* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
|
|
4296
4256
|
/* @__PURE__ */ e(Z, { fontSize: t, children: l.title }),
|
|
4297
4257
|
/* @__PURE__ */ e(Z, { color: "error", fontSize: t, children: n }),
|
|
4298
|
-
/* @__PURE__ */ e(
|
|
4258
|
+
/* @__PURE__ */ e(O, { condition: !!((h = l.tooltip) != null && h.label), children: /* @__PURE__ */ e(
|
|
4299
4259
|
me,
|
|
4300
4260
|
{
|
|
4301
4261
|
label: (d = l.tooltip) == null ? void 0 : d.label,
|
|
@@ -4315,7 +4275,7 @@ const Vn = (t) => {
|
|
|
4315
4275
|
}
|
|
4316
4276
|
) })
|
|
4317
4277
|
] }),
|
|
4318
|
-
/* @__PURE__ */ e(
|
|
4278
|
+
/* @__PURE__ */ e(O, { condition: !!l.description, children: /* @__PURE__ */ e(D, { fontSize: t, color: "gray-500", children: l.description }) })
|
|
4319
4279
|
]
|
|
4320
4280
|
}
|
|
4321
4281
|
)
|
|
@@ -4328,7 +4288,7 @@ const Vn = (t) => {
|
|
|
4328
4288
|
direction: r === "horizontal-inline" ? "row" : "column",
|
|
4329
4289
|
align: "flex-start",
|
|
4330
4290
|
children: /* @__PURE__ */ e(
|
|
4331
|
-
|
|
4291
|
+
Ct,
|
|
4332
4292
|
{
|
|
4333
4293
|
of: (y = l.checkBoxesList) == null ? void 0 : y.map((m) => ({
|
|
4334
4294
|
...m,
|
|
@@ -4343,7 +4303,7 @@ const Vn = (t) => {
|
|
|
4343
4303
|
...l.badgeContainerProps,
|
|
4344
4304
|
children: [
|
|
4345
4305
|
/* @__PURE__ */ e(
|
|
4346
|
-
|
|
4306
|
+
ct,
|
|
4347
4307
|
{
|
|
4348
4308
|
name: m.name,
|
|
4349
4309
|
value: m.id,
|
|
@@ -4357,7 +4317,7 @@ const Vn = (t) => {
|
|
|
4357
4317
|
]
|
|
4358
4318
|
}
|
|
4359
4319
|
) : /* @__PURE__ */ e(
|
|
4360
|
-
|
|
4320
|
+
ct,
|
|
4361
4321
|
{
|
|
4362
4322
|
name: m.name,
|
|
4363
4323
|
value: m.id,
|
|
@@ -4375,7 +4335,7 @@ const Vn = (t) => {
|
|
|
4375
4335
|
]
|
|
4376
4336
|
}
|
|
4377
4337
|
);
|
|
4378
|
-
},
|
|
4338
|
+
}, Tn = ({
|
|
4379
4339
|
position: t = "vertical",
|
|
4380
4340
|
size: r = "md",
|
|
4381
4341
|
fullWidth: n = !1,
|
|
@@ -4389,7 +4349,7 @@ const Vn = (t) => {
|
|
|
4389
4349
|
gap: t === "horizontal-inline" || t === "horizontal-block" ? "spacing-96" : "sm",
|
|
4390
4350
|
direction: t === "horizontal-inline" || t === "horizontal-block" ? "row" : "column",
|
|
4391
4351
|
children: [
|
|
4392
|
-
/* @__PURE__ */ e(
|
|
4352
|
+
/* @__PURE__ */ e(O, { condition: !!o.description || !!o.title, children: /* @__PURE__ */ u(
|
|
4393
4353
|
f,
|
|
4394
4354
|
{
|
|
4395
4355
|
direction: "column",
|
|
@@ -4397,7 +4357,7 @@ const Vn = (t) => {
|
|
|
4397
4357
|
fullWidth: n,
|
|
4398
4358
|
children: [
|
|
4399
4359
|
o.title && /* @__PURE__ */ e(Z, { children: o.title }),
|
|
4400
|
-
/* @__PURE__ */ e(
|
|
4360
|
+
/* @__PURE__ */ e(O, { condition: !!o.description, children: /* @__PURE__ */ e(D, { color: "gray-500", children: o.description }) })
|
|
4401
4361
|
]
|
|
4402
4362
|
}
|
|
4403
4363
|
) }),
|
|
@@ -4409,7 +4369,7 @@ const Vn = (t) => {
|
|
|
4409
4369
|
align: "flex-start",
|
|
4410
4370
|
flexWrap: "wrap",
|
|
4411
4371
|
children: /* @__PURE__ */ e(
|
|
4412
|
-
|
|
4372
|
+
Ct,
|
|
4413
4373
|
{
|
|
4414
4374
|
of: (l = o.radioList) == null ? void 0 : l.map((s) => ({
|
|
4415
4375
|
...s,
|
|
@@ -4453,7 +4413,7 @@ const Vn = (t) => {
|
|
|
4453
4413
|
]
|
|
4454
4414
|
}
|
|
4455
4415
|
);
|
|
4456
|
-
},
|
|
4416
|
+
}, On = ({
|
|
4457
4417
|
size: t = "md",
|
|
4458
4418
|
direction: r = "vertical",
|
|
4459
4419
|
requiredTitle: n = "(Required)",
|
|
@@ -4470,7 +4430,7 @@ const Vn = (t) => {
|
|
|
4470
4430
|
...i.containerProps,
|
|
4471
4431
|
children: [
|
|
4472
4432
|
i.title && /* @__PURE__ */ e(
|
|
4473
|
-
|
|
4433
|
+
O,
|
|
4474
4434
|
{
|
|
4475
4435
|
condition: !!i.inputProps.required,
|
|
4476
4436
|
fallback: /* @__PURE__ */ u(
|
|
@@ -4495,7 +4455,7 @@ const Vn = (t) => {
|
|
|
4495
4455
|
/* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
|
|
4496
4456
|
/* @__PURE__ */ e(Z, { fontSize: t, children: i.title }),
|
|
4497
4457
|
/* @__PURE__ */ e(Z, { color: "error", fontSize: t, children: n }),
|
|
4498
|
-
/* @__PURE__ */ e(
|
|
4458
|
+
/* @__PURE__ */ e(O, { condition: !!((a = i.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
4499
4459
|
me,
|
|
4500
4460
|
{
|
|
4501
4461
|
label: (h = i.tooltip) == null ? void 0 : h.label,
|
|
@@ -4515,13 +4475,13 @@ const Vn = (t) => {
|
|
|
4515
4475
|
}
|
|
4516
4476
|
) })
|
|
4517
4477
|
] }),
|
|
4518
|
-
/* @__PURE__ */ e(
|
|
4478
|
+
/* @__PURE__ */ e(O, { condition: !!i.description, children: /* @__PURE__ */ e(D, { fontSize: t, color: "gray-500", children: i.description }) })
|
|
4519
4479
|
]
|
|
4520
4480
|
}
|
|
4521
4481
|
)
|
|
4522
4482
|
}
|
|
4523
4483
|
),
|
|
4524
|
-
/* @__PURE__ */ u(U, { gap: "xs", children: [
|
|
4484
|
+
/* @__PURE__ */ u(U, { direction: "column", gap: "xs", children: [
|
|
4525
4485
|
/* @__PURE__ */ e(
|
|
4526
4486
|
hr,
|
|
4527
4487
|
{
|
|
@@ -4554,7 +4514,7 @@ const Vn = (t) => {
|
|
|
4554
4514
|
...l.containerProps,
|
|
4555
4515
|
children: [
|
|
4556
4516
|
l.title && /* @__PURE__ */ e(
|
|
4557
|
-
|
|
4517
|
+
O,
|
|
4558
4518
|
{
|
|
4559
4519
|
condition: o,
|
|
4560
4520
|
fallback: /* @__PURE__ */ u(
|
|
@@ -4579,7 +4539,7 @@ const Vn = (t) => {
|
|
|
4579
4539
|
/* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
|
|
4580
4540
|
/* @__PURE__ */ e(Z, { fontSize: t, children: l.title }),
|
|
4581
4541
|
/* @__PURE__ */ e(Z, { color: "error", fontSize: t, children: n }),
|
|
4582
|
-
/* @__PURE__ */ e(
|
|
4542
|
+
/* @__PURE__ */ e(O, { condition: !!((a = l.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
4583
4543
|
me,
|
|
4584
4544
|
{
|
|
4585
4545
|
label: (h = l.tooltip) == null ? void 0 : h.label,
|
|
@@ -4599,7 +4559,7 @@ const Vn = (t) => {
|
|
|
4599
4559
|
}
|
|
4600
4560
|
) })
|
|
4601
4561
|
] }),
|
|
4602
|
-
/* @__PURE__ */ e(
|
|
4562
|
+
/* @__PURE__ */ e(O, { condition: !!l.titleDescription, children: /* @__PURE__ */ e(D, { fontSize: t, color: "gray-500", children: l.titleDescription }) })
|
|
4603
4563
|
]
|
|
4604
4564
|
}
|
|
4605
4565
|
)
|
|
@@ -4648,7 +4608,7 @@ const Vn = (t) => {
|
|
|
4648
4608
|
}
|
|
4649
4609
|
};
|
|
4650
4610
|
return /* @__PURE__ */ e(
|
|
4651
|
-
|
|
4611
|
+
T,
|
|
4652
4612
|
{
|
|
4653
4613
|
fullWidth: !0,
|
|
4654
4614
|
disabled: n.disabled,
|
|
@@ -4688,7 +4648,7 @@ const Vn = (t) => {
|
|
|
4688
4648
|
onClick: i.onClickContainer,
|
|
4689
4649
|
children: [
|
|
4690
4650
|
i.title && /* @__PURE__ */ e(
|
|
4691
|
-
|
|
4651
|
+
O,
|
|
4692
4652
|
{
|
|
4693
4653
|
condition: !!i.inputProps.required,
|
|
4694
4654
|
fallback: /* @__PURE__ */ u(
|
|
@@ -4713,7 +4673,7 @@ const Vn = (t) => {
|
|
|
4713
4673
|
/* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
|
|
4714
4674
|
/* @__PURE__ */ e(Z, { fontSize: t, children: i.title }),
|
|
4715
4675
|
/* @__PURE__ */ e(Z, { color: "error", fontSize: t, children: n }),
|
|
4716
|
-
/* @__PURE__ */ e(
|
|
4676
|
+
/* @__PURE__ */ e(O, { condition: !!((a = i.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
4717
4677
|
me,
|
|
4718
4678
|
{
|
|
4719
4679
|
label: (h = i.tooltip) == null ? void 0 : h.label,
|
|
@@ -4733,13 +4693,13 @@ const Vn = (t) => {
|
|
|
4733
4693
|
}
|
|
4734
4694
|
) })
|
|
4735
4695
|
] }),
|
|
4736
|
-
/* @__PURE__ */ e(
|
|
4696
|
+
/* @__PURE__ */ e(O, { condition: !!i.description, children: /* @__PURE__ */ e(D, { fontSize: t, color: "gray-500", children: i.description }) })
|
|
4737
4697
|
]
|
|
4738
4698
|
}
|
|
4739
4699
|
)
|
|
4740
4700
|
}
|
|
4741
4701
|
),
|
|
4742
|
-
/* @__PURE__ */ u(U, { gap: "xs", children: [
|
|
4702
|
+
/* @__PURE__ */ u(U, { direction: "column", gap: "xs", children: [
|
|
4743
4703
|
/* @__PURE__ */ e(
|
|
4744
4704
|
f,
|
|
4745
4705
|
{
|
|
@@ -4789,7 +4749,7 @@ async function Un(t, r) {
|
|
|
4789
4749
|
}, "image/png");
|
|
4790
4750
|
});
|
|
4791
4751
|
}
|
|
4792
|
-
const
|
|
4752
|
+
const Tt = {
|
|
4793
4753
|
"1:1": 1,
|
|
4794
4754
|
"4:3": 4 / 3,
|
|
4795
4755
|
"16:9": 16 / 9,
|
|
@@ -4811,34 +4771,34 @@ const _t = {
|
|
|
4811
4771
|
maxFileSize: h = 2,
|
|
4812
4772
|
onError: d
|
|
4813
4773
|
}, g) => {
|
|
4814
|
-
const y = re("md"), [m, v] = k(!1), [E, x] = k(null), [
|
|
4774
|
+
const y = re("md"), [m, v] = k(!1), [E, x] = k(null), [V, N] = k(!1), [_, G] = k({ x: 0, y: 0 }), [B, ae] = k(1), [q, H] = k(null);
|
|
4815
4775
|
$(() => {
|
|
4816
4776
|
r === null && i(null);
|
|
4817
4777
|
}, [r]);
|
|
4818
4778
|
const Q = De(
|
|
4819
|
-
(
|
|
4820
|
-
H(
|
|
4779
|
+
(R, z) => {
|
|
4780
|
+
H(z);
|
|
4821
4781
|
},
|
|
4822
4782
|
[]
|
|
4823
|
-
), ne = (
|
|
4783
|
+
), ne = (R) => {
|
|
4824
4784
|
var fe;
|
|
4825
|
-
const
|
|
4826
|
-
if (!
|
|
4785
|
+
const z = (fe = R.target.files) == null ? void 0 : fe[0];
|
|
4786
|
+
if (!z) return;
|
|
4827
4787
|
const K = new FileReader();
|
|
4828
4788
|
K.onload = () => {
|
|
4829
|
-
x(K.result),
|
|
4830
|
-
}, K.readAsDataURL(
|
|
4789
|
+
x(K.result), N(!0);
|
|
4790
|
+
}, K.readAsDataURL(z);
|
|
4831
4791
|
}, ie = async () => {
|
|
4832
4792
|
if (!(!E || !q))
|
|
4833
4793
|
try {
|
|
4834
|
-
const
|
|
4835
|
-
if (h &&
|
|
4794
|
+
const R = await Un(E, q);
|
|
4795
|
+
if (h && R.size > h * 1024 * 1024) {
|
|
4836
4796
|
d == null || d(`Ukuran file maksimal ${h}MB`);
|
|
4837
4797
|
return;
|
|
4838
4798
|
}
|
|
4839
|
-
t == null || t(
|
|
4840
|
-
const
|
|
4841
|
-
i(
|
|
4799
|
+
t == null || t(R);
|
|
4800
|
+
const z = URL.createObjectURL(R);
|
|
4801
|
+
i(z, R), N(!1);
|
|
4842
4802
|
} catch {
|
|
4843
4803
|
d == null || d("Gagal memproses gambar");
|
|
4844
4804
|
}
|
|
@@ -4847,11 +4807,11 @@ const _t = {
|
|
|
4847
4807
|
};
|
|
4848
4808
|
pr(g, () => ({
|
|
4849
4809
|
openFileDialog: () => {
|
|
4850
|
-
var
|
|
4851
|
-
(
|
|
4810
|
+
var R;
|
|
4811
|
+
(R = j.current) == null || R.click();
|
|
4852
4812
|
}
|
|
4853
4813
|
}));
|
|
4854
|
-
const le = parseInt(l, 10), se =
|
|
4814
|
+
const le = parseInt(l, 10), se = Tt[s];
|
|
4855
4815
|
let X, Y;
|
|
4856
4816
|
return se >= 1 ? (Y = le, X = le * se) : (X = le, Y = le / se), /* @__PURE__ */ u(
|
|
4857
4817
|
f,
|
|
@@ -4942,7 +4902,7 @@ const _t = {
|
|
|
4942
4902
|
style: { color: "var(--sa-background-primary, #ffffff)" }
|
|
4943
4903
|
}
|
|
4944
4904
|
),
|
|
4945
|
-
/* @__PURE__ */ e(
|
|
4905
|
+
/* @__PURE__ */ e(O, { condition: l.toNumber() > 80, children: /* @__PURE__ */ e(
|
|
4946
4906
|
D,
|
|
4947
4907
|
{
|
|
4948
4908
|
color: "gray-50",
|
|
@@ -4982,7 +4942,7 @@ const _t = {
|
|
|
4982
4942
|
)
|
|
4983
4943
|
}
|
|
4984
4944
|
),
|
|
4985
|
-
|
|
4945
|
+
V && xr.createPortal(
|
|
4986
4946
|
/* @__PURE__ */ e(
|
|
4987
4947
|
"div",
|
|
4988
4948
|
{
|
|
@@ -4995,7 +4955,7 @@ const _t = {
|
|
|
4995
4955
|
justifyContent: "center",
|
|
4996
4956
|
backgroundColor: "rgba(0,0,0,0.6)"
|
|
4997
4957
|
},
|
|
4998
|
-
onClick: () =>
|
|
4958
|
+
onClick: () => N(!1),
|
|
4999
4959
|
children: /* @__PURE__ */ u(
|
|
5000
4960
|
"div",
|
|
5001
4961
|
{
|
|
@@ -5008,7 +4968,7 @@ const _t = {
|
|
|
5008
4968
|
display: "flex",
|
|
5009
4969
|
flexDirection: "column"
|
|
5010
4970
|
},
|
|
5011
|
-
onClick: (
|
|
4971
|
+
onClick: (R) => R.stopPropagation(),
|
|
5012
4972
|
children: [
|
|
5013
4973
|
/* @__PURE__ */ e(
|
|
5014
4974
|
"div",
|
|
@@ -5025,7 +4985,7 @@ const _t = {
|
|
|
5025
4985
|
image: E,
|
|
5026
4986
|
crop: _,
|
|
5027
4987
|
zoom: B,
|
|
5028
|
-
aspect: s ?
|
|
4988
|
+
aspect: s ? Tt[s] : void 0,
|
|
5029
4989
|
onCropChange: G,
|
|
5030
4990
|
onZoomChange: ae,
|
|
5031
4991
|
onCropComplete: Q,
|
|
@@ -5047,8 +5007,8 @@ const _t = {
|
|
|
5047
5007
|
borderTop: "1px solid var(--sa-border-subtle)"
|
|
5048
5008
|
},
|
|
5049
5009
|
children: [
|
|
5050
|
-
/* @__PURE__ */ e(
|
|
5051
|
-
/* @__PURE__ */ e(
|
|
5010
|
+
/* @__PURE__ */ e(T, { size: "sm", secondary: !0, onClick: () => N(!1), children: "Cancel" }),
|
|
5011
|
+
/* @__PURE__ */ e(T, { size: "sm", primary: !0, onClick: ie, children: "Crop" })
|
|
5052
5012
|
]
|
|
5053
5013
|
}
|
|
5054
5014
|
)
|
|
@@ -5081,7 +5041,7 @@ const _t = {
|
|
|
5081
5041
|
...l.containerProps,
|
|
5082
5042
|
children: [
|
|
5083
5043
|
l.title && /* @__PURE__ */ e(
|
|
5084
|
-
|
|
5044
|
+
O,
|
|
5085
5045
|
{
|
|
5086
5046
|
condition: !!i,
|
|
5087
5047
|
fallback: /* @__PURE__ */ u(
|
|
@@ -5106,7 +5066,7 @@ const _t = {
|
|
|
5106
5066
|
/* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
|
|
5107
5067
|
/* @__PURE__ */ e(Z, { fontSize: t, children: l.title }),
|
|
5108
5068
|
/* @__PURE__ */ e(Z, { color: "error", fontSize: t, children: n }),
|
|
5109
|
-
/* @__PURE__ */ e(
|
|
5069
|
+
/* @__PURE__ */ e(O, { condition: !!((h = l.tooltip) != null && h.label), children: /* @__PURE__ */ e(
|
|
5110
5070
|
me,
|
|
5111
5071
|
{
|
|
5112
5072
|
label: (d = l.tooltip) == null ? void 0 : d.label,
|
|
@@ -5126,13 +5086,13 @@ const _t = {
|
|
|
5126
5086
|
}
|
|
5127
5087
|
) })
|
|
5128
5088
|
] }),
|
|
5129
|
-
/* @__PURE__ */ e(
|
|
5089
|
+
/* @__PURE__ */ e(O, { condition: !!l.description, children: /* @__PURE__ */ e(D, { fontSize: t, color: "gray-500", children: l.description }) })
|
|
5130
5090
|
]
|
|
5131
5091
|
}
|
|
5132
5092
|
)
|
|
5133
5093
|
}
|
|
5134
5094
|
),
|
|
5135
|
-
/* @__PURE__ */ u(U, { gap: "xs", children: [
|
|
5095
|
+
/* @__PURE__ */ u(U, { direction: "column", gap: "xs", children: [
|
|
5136
5096
|
/* @__PURE__ */ e(Gn, { ...l.inputProps }),
|
|
5137
5097
|
!s && l.errorMessage && /* @__PURE__ */ e(be, { message: l.errorMessage })
|
|
5138
5098
|
] })
|
|
@@ -5156,7 +5116,7 @@ const _t = {
|
|
|
5156
5116
|
...i.containerProps,
|
|
5157
5117
|
children: [
|
|
5158
5118
|
i.title && /* @__PURE__ */ e(
|
|
5159
|
-
|
|
5119
|
+
O,
|
|
5160
5120
|
{
|
|
5161
5121
|
condition: !!i.inputProps.required,
|
|
5162
5122
|
fallback: /* @__PURE__ */ u(
|
|
@@ -5181,7 +5141,7 @@ const _t = {
|
|
|
5181
5141
|
/* @__PURE__ */ u(U, { direction: "row", gap: "xs", align: "center", children: [
|
|
5182
5142
|
/* @__PURE__ */ e(Z, { fontSize: t, children: i.title }),
|
|
5183
5143
|
/* @__PURE__ */ e(Z, { color: "error", fontSize: t, children: n }),
|
|
5184
|
-
/* @__PURE__ */ e(
|
|
5144
|
+
/* @__PURE__ */ e(O, { condition: !!((s = i.tooltip) != null && s.label), children: /* @__PURE__ */ e(
|
|
5185
5145
|
me,
|
|
5186
5146
|
{
|
|
5187
5147
|
label: (a = i.tooltip) == null ? void 0 : a.label,
|
|
@@ -5201,7 +5161,7 @@ const _t = {
|
|
|
5201
5161
|
}
|
|
5202
5162
|
) })
|
|
5203
5163
|
] }),
|
|
5204
|
-
/* @__PURE__ */ e(
|
|
5164
|
+
/* @__PURE__ */ e(O, { condition: !!i.description, children: /* @__PURE__ */ e(D, { fontSize: t, color: "gray-500", children: i.description }) })
|
|
5205
5165
|
]
|
|
5206
5166
|
}
|
|
5207
5167
|
)
|
|
@@ -5211,7 +5171,7 @@ const _t = {
|
|
|
5211
5171
|
]
|
|
5212
5172
|
}
|
|
5213
5173
|
);
|
|
5214
|
-
},
|
|
5174
|
+
}, po = ({
|
|
5215
5175
|
items: t,
|
|
5216
5176
|
id: r,
|
|
5217
5177
|
handleOnUpdate: n,
|
|
@@ -5248,13 +5208,13 @@ const _t = {
|
|
|
5248
5208
|
)
|
|
5249
5209
|
}
|
|
5250
5210
|
);
|
|
5251
|
-
},
|
|
5211
|
+
}, xo = {
|
|
5252
5212
|
InputText: kn,
|
|
5253
5213
|
InputDropdown: Sn,
|
|
5254
5214
|
InputSingleFile: zn,
|
|
5255
5215
|
CheckBoxOptions: Nn,
|
|
5256
|
-
RadioOptions:
|
|
5257
|
-
InputTextArea:
|
|
5216
|
+
RadioOptions: Tn,
|
|
5217
|
+
InputTextArea: On,
|
|
5258
5218
|
ToggleForm: _n,
|
|
5259
5219
|
ActionButton: Zn,
|
|
5260
5220
|
FormTitle: jn,
|
|
@@ -5288,7 +5248,7 @@ const _t = {
|
|
|
5288
5248
|
transition: "transform 0.2s ease-in-out"
|
|
5289
5249
|
},
|
|
5290
5250
|
children: /* @__PURE__ */ e(
|
|
5291
|
-
|
|
5251
|
+
T,
|
|
5292
5252
|
{
|
|
5293
5253
|
secondary: !0,
|
|
5294
5254
|
size: "xs",
|
|
@@ -5311,7 +5271,7 @@ const _t = {
|
|
|
5311
5271
|
)
|
|
5312
5272
|
}
|
|
5313
5273
|
);
|
|
5314
|
-
},
|
|
5274
|
+
}, Co = ({ pageLayout: t, children: r, wrapperProps: n, containerProps: o }) => {
|
|
5315
5275
|
const i = re("md"), l = (o == null ? void 0 : o.customWidth) ?? 264;
|
|
5316
5276
|
return /* @__PURE__ */ u(
|
|
5317
5277
|
f,
|
|
@@ -5350,7 +5310,7 @@ const _t = {
|
|
|
5350
5310
|
]
|
|
5351
5311
|
}
|
|
5352
5312
|
);
|
|
5353
|
-
},
|
|
5313
|
+
}, Do = ({
|
|
5354
5314
|
children: t,
|
|
5355
5315
|
withScrollToTopButton: r = !1,
|
|
5356
5316
|
scrollToTopButtonProps: n,
|
|
@@ -5386,8 +5346,8 @@ const _t = {
|
|
|
5386
5346
|
t
|
|
5387
5347
|
]
|
|
5388
5348
|
}
|
|
5389
|
-
) }),
|
|
5390
|
-
|
|
5349
|
+
) }), vo = ({ fields: t }) => /* @__PURE__ */ e(f, { display: "flex", direction: "column", gap: "lg", children: /* @__PURE__ */ e(
|
|
5350
|
+
Ct,
|
|
5391
5351
|
{
|
|
5392
5352
|
of: t,
|
|
5393
5353
|
render: (r, n) => /* @__PURE__ */ e(Qn, { ...r }, n)
|
|
@@ -5545,7 +5505,7 @@ function Yn({ width: t, height: r }) {
|
|
|
5545
5505
|
}
|
|
5546
5506
|
) });
|
|
5547
5507
|
}
|
|
5548
|
-
const
|
|
5508
|
+
const bo = ({
|
|
5549
5509
|
title: t = "create",
|
|
5550
5510
|
children: r,
|
|
5551
5511
|
onClickAction: n,
|
|
@@ -5560,9 +5520,9 @@ const wo = ({
|
|
|
5560
5520
|
const g = () => {
|
|
5561
5521
|
switch (o) {
|
|
5562
5522
|
case "primary":
|
|
5563
|
-
return /* @__PURE__ */ e(J, { children: l ? /* @__PURE__ */ e(
|
|
5523
|
+
return /* @__PURE__ */ e(J, { children: l ? /* @__PURE__ */ e(T, { primary: !0, iconLeft: l, onClick: n, children: h || t }) : /* @__PURE__ */ e(T, { primary: !0, onClick: n, children: h || t }) });
|
|
5564
5524
|
case "secondary":
|
|
5565
|
-
return /* @__PURE__ */ e(J, { children: l ? /* @__PURE__ */ e(
|
|
5525
|
+
return /* @__PURE__ */ e(J, { children: l ? /* @__PURE__ */ e(T, { secondary: !0, iconLeft: l, onClick: n, children: i ? /* @__PURE__ */ e(
|
|
5566
5526
|
D,
|
|
5567
5527
|
{
|
|
5568
5528
|
fontFamily: "Poppins",
|
|
@@ -5571,11 +5531,11 @@ const wo = ({
|
|
|
5571
5531
|
style: { color: "var(--sa-background-success, #28ac6e)" },
|
|
5572
5532
|
children: h || t
|
|
5573
5533
|
}
|
|
5574
|
-
) : t }) : /* @__PURE__ */ e(
|
|
5534
|
+
) : t }) : /* @__PURE__ */ e(T, { secondary: !0, onClick: n, children: h || t }) });
|
|
5575
5535
|
case "success":
|
|
5576
|
-
return /* @__PURE__ */ e(J, { children: l ? /* @__PURE__ */ e(
|
|
5536
|
+
return /* @__PURE__ */ e(J, { children: l ? /* @__PURE__ */ e(T, { success: !0, iconLeft: l, onClick: n, children: h || t }) : /* @__PURE__ */ e(T, { success: !0, onClick: n, children: h || t }) });
|
|
5577
5537
|
default:
|
|
5578
|
-
return /* @__PURE__ */ e(J, { children: l ? /* @__PURE__ */ e(
|
|
5538
|
+
return /* @__PURE__ */ e(J, { children: l ? /* @__PURE__ */ e(T, { primary: !0, iconLeft: l, onClick: n, children: h || t }) : /* @__PURE__ */ e(T, { primary: !0, onClick: n, children: h || t }) });
|
|
5579
5539
|
}
|
|
5580
5540
|
};
|
|
5581
5541
|
return /* @__PURE__ */ u(
|
|
@@ -5819,7 +5779,7 @@ function Xn({ width: t, height: r }) {
|
|
|
5819
5779
|
}
|
|
5820
5780
|
) });
|
|
5821
5781
|
}
|
|
5822
|
-
function
|
|
5782
|
+
function wo({ onClick: t }) {
|
|
5823
5783
|
const r = re("md");
|
|
5824
5784
|
return /* @__PURE__ */ u(
|
|
5825
5785
|
f,
|
|
@@ -5850,7 +5810,7 @@ function ko({ onClick: t }) {
|
|
|
5850
5810
|
children: "Sorry, we couldn't find the page you are looking for"
|
|
5851
5811
|
}
|
|
5852
5812
|
),
|
|
5853
|
-
t && /* @__PURE__ */ e(
|
|
5813
|
+
t && /* @__PURE__ */ e(T, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
|
|
5854
5814
|
]
|
|
5855
5815
|
}
|
|
5856
5816
|
);
|
|
@@ -6091,7 +6051,7 @@ function Kn({ width: t, height: r }) {
|
|
|
6091
6051
|
}
|
|
6092
6052
|
) });
|
|
6093
6053
|
}
|
|
6094
|
-
function
|
|
6054
|
+
function ko({ onClick: t }) {
|
|
6095
6055
|
const r = re("md");
|
|
6096
6056
|
return /* @__PURE__ */ u(
|
|
6097
6057
|
f,
|
|
@@ -6105,7 +6065,7 @@ function So({ onClick: t }) {
|
|
|
6105
6065
|
children: [
|
|
6106
6066
|
/* @__PURE__ */ e(Kn, { width: r ? 600 : 300 }),
|
|
6107
6067
|
/* @__PURE__ */ e(D, { fontWeight: "bold", fontSize: r ? "3xl" : "2xl", children: "We Are Sorry ..." }),
|
|
6108
|
-
t && /* @__PURE__ */ e(
|
|
6068
|
+
t && /* @__PURE__ */ e(T, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
|
|
6109
6069
|
]
|
|
6110
6070
|
}
|
|
6111
6071
|
);
|
|
@@ -6799,7 +6759,7 @@ function ei({ width: t, height: r }) {
|
|
|
6799
6759
|
}
|
|
6800
6760
|
) });
|
|
6801
6761
|
}
|
|
6802
|
-
function
|
|
6762
|
+
function So({ onClick: t }) {
|
|
6803
6763
|
const r = re("md");
|
|
6804
6764
|
return /* @__PURE__ */ u(
|
|
6805
6765
|
f,
|
|
@@ -6831,16 +6791,16 @@ function Fo({ onClick: t }) {
|
|
|
6831
6791
|
children: "we are trying to fix the problem"
|
|
6832
6792
|
}
|
|
6833
6793
|
),
|
|
6834
|
-
t && /* @__PURE__ */ e(
|
|
6794
|
+
t && /* @__PURE__ */ e(T, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
|
|
6835
6795
|
]
|
|
6836
6796
|
}
|
|
6837
6797
|
);
|
|
6838
6798
|
}
|
|
6839
|
-
const
|
|
6799
|
+
const Fo = (t) => {
|
|
6840
6800
|
var n, o, i, l, s;
|
|
6841
6801
|
const r = re("md");
|
|
6842
6802
|
return /* @__PURE__ */ u(
|
|
6843
|
-
|
|
6803
|
+
ut,
|
|
6844
6804
|
{
|
|
6845
6805
|
isShow: t.isShow,
|
|
6846
6806
|
onHide: t.onHide,
|
|
@@ -6852,9 +6812,9 @@ const Eo = (t) => {
|
|
|
6852
6812
|
}
|
|
6853
6813
|
},
|
|
6854
6814
|
children: [
|
|
6855
|
-
/* @__PURE__ */ e(
|
|
6856
|
-
/* @__PURE__ */ e(
|
|
6857
|
-
/* @__PURE__ */ e(
|
|
6815
|
+
/* @__PURE__ */ e(Ot, { ...t.dialogTitleProps, children: typeof t.title == "string" ? /* @__PURE__ */ e(D, { fontSize: "lg", fontWeight: "medium", children: t.title }) : t.title }),
|
|
6816
|
+
/* @__PURE__ */ e(ht, { children: typeof t.description == "string" ? /* @__PURE__ */ e(D, { fontSize: "md", lineHeight: "leading-6", color: "tertiary", children: t.description }) : t.description }),
|
|
6817
|
+
/* @__PURE__ */ e(_t, { children: /* @__PURE__ */ e(
|
|
6858
6818
|
f,
|
|
6859
6819
|
{
|
|
6860
6820
|
display: "flex",
|
|
@@ -6870,7 +6830,7 @@ const Eo = (t) => {
|
|
|
6870
6830
|
gap: ((s = t.wrapperConfirmBtnProps) == null ? void 0 : s.gap) || "sm",
|
|
6871
6831
|
...t.wrapperConfirmBtnProps,
|
|
6872
6832
|
children: [
|
|
6873
|
-
t.onCancel && /* @__PURE__ */ e(
|
|
6833
|
+
t.onCancel && /* @__PURE__ */ e(T, { secondary: !0, onClick: t.onCancel, size: "md", fullWidth: !0, children: t.titleCancelBtn || "Cancel" }),
|
|
6874
6834
|
/* @__PURE__ */ e(
|
|
6875
6835
|
f,
|
|
6876
6836
|
{
|
|
@@ -6879,7 +6839,7 @@ const Eo = (t) => {
|
|
|
6879
6839
|
textWrap: "nowrap"
|
|
6880
6840
|
},
|
|
6881
6841
|
children: /* @__PURE__ */ e(
|
|
6882
|
-
|
|
6842
|
+
T,
|
|
6883
6843
|
{
|
|
6884
6844
|
...t.buttonConfirmProps,
|
|
6885
6845
|
onClick: t.onConfirm,
|
|
@@ -6899,7 +6859,7 @@ const Eo = (t) => {
|
|
|
6899
6859
|
},
|
|
6900
6860
|
t.key
|
|
6901
6861
|
);
|
|
6902
|
-
},
|
|
6862
|
+
}, Eo = ce(
|
|
6903
6863
|
({
|
|
6904
6864
|
children: t,
|
|
6905
6865
|
height: r,
|
|
@@ -6917,13 +6877,13 @@ const Eo = (t) => {
|
|
|
6917
6877
|
bodyProps: v,
|
|
6918
6878
|
headerProps: E = { borderBottom: !0 },
|
|
6919
6879
|
footerProps: x = { borderTop: !0 },
|
|
6920
|
-
variantTag:
|
|
6880
|
+
variantTag: V = "info"
|
|
6921
6881
|
}) => {
|
|
6922
|
-
const
|
|
6882
|
+
const N = te(null), [_, G] = k("100vh");
|
|
6923
6883
|
$(() => {
|
|
6924
6884
|
const H = () => {
|
|
6925
|
-
if (
|
|
6926
|
-
const Q =
|
|
6885
|
+
if (N.current) {
|
|
6886
|
+
const Q = N.current.getBoundingClientRect().top;
|
|
6927
6887
|
G(`calc(100vh - ${Q}px)`);
|
|
6928
6888
|
}
|
|
6929
6889
|
};
|
|
@@ -6931,7 +6891,7 @@ const Eo = (t) => {
|
|
|
6931
6891
|
}, []);
|
|
6932
6892
|
const B = () => d ? /* @__PURE__ */ u(f, { direction: "row", gap: "sm", align: "center", children: [
|
|
6933
6893
|
/* @__PURE__ */ e(D, { fontWeight: "medium", children: h }),
|
|
6934
|
-
/* @__PURE__ */ e(
|
|
6894
|
+
/* @__PURE__ */ e(Le, { border: !0, text: d, variant: V })
|
|
6935
6895
|
] }) : /* @__PURE__ */ e(D, { fontWeight: "medium", children: h }), ae = () => s || /* @__PURE__ */ u(
|
|
6936
6896
|
f,
|
|
6937
6897
|
{
|
|
@@ -6948,7 +6908,7 @@ const Eo = (t) => {
|
|
|
6948
6908
|
return /* @__PURE__ */ u(
|
|
6949
6909
|
f,
|
|
6950
6910
|
{
|
|
6951
|
-
ref:
|
|
6911
|
+
ref: N,
|
|
6952
6912
|
height: r,
|
|
6953
6913
|
customMinHeight: n,
|
|
6954
6914
|
customHeight: o,
|
|
@@ -6983,7 +6943,7 @@ const Eo = (t) => {
|
|
|
6983
6943
|
}
|
|
6984
6944
|
);
|
|
6985
6945
|
}
|
|
6986
|
-
),
|
|
6946
|
+
), Mo = Ge.memo(
|
|
6987
6947
|
({ value: t, options: r = [], onChange: n, multiple: o }) => {
|
|
6988
6948
|
const i = (t == null ? void 0 : t.map((a) => a.value)) || [], l = (r == null ? void 0 : r.filter((a) => i.includes(a.value))) || [], s = (a) => {
|
|
6989
6949
|
const h = [...l];
|
|
@@ -6991,7 +6951,7 @@ const Eo = (t) => {
|
|
|
6991
6951
|
o ? d = i.includes(a.value) ? h.filter((g) => g.value !== a.value) : [...h, a] : d = [a], n == null || n(d);
|
|
6992
6952
|
};
|
|
6993
6953
|
return /* @__PURE__ */ e(f, { direction: "row", gap: "sm", flexWrap: "wrap", children: r == null ? void 0 : r.map((a, h) => /* @__PURE__ */ e(
|
|
6994
|
-
|
|
6954
|
+
T,
|
|
6995
6955
|
{
|
|
6996
6956
|
...i.includes(a.value) ? { primary: !0 } : { secondary: !0 },
|
|
6997
6957
|
onClick: () => s(a),
|
|
@@ -7001,22 +6961,22 @@ const Eo = (t) => {
|
|
|
7001
6961
|
)) });
|
|
7002
6962
|
}
|
|
7003
6963
|
);
|
|
7004
|
-
function
|
|
6964
|
+
function Dt(t) {
|
|
7005
6965
|
return null;
|
|
7006
6966
|
}
|
|
7007
|
-
|
|
7008
|
-
function
|
|
6967
|
+
Dt.displayName = "LayoutDialog.Header";
|
|
6968
|
+
function vt(t) {
|
|
7009
6969
|
return null;
|
|
7010
6970
|
}
|
|
7011
|
-
|
|
7012
|
-
function
|
|
6971
|
+
vt.displayName = "LayoutDialog.Body";
|
|
6972
|
+
function bt(t) {
|
|
7013
6973
|
return null;
|
|
7014
6974
|
}
|
|
7015
|
-
|
|
7016
|
-
function
|
|
6975
|
+
bt.displayName = "LayoutDialog.Aside";
|
|
6976
|
+
function wt(t) {
|
|
7017
6977
|
return null;
|
|
7018
6978
|
}
|
|
7019
|
-
|
|
6979
|
+
wt.displayName = "LayoutDialog.Footer";
|
|
7020
6980
|
const ee = {
|
|
7021
6981
|
"lyd-root": "_lyd-root_gd49l_1",
|
|
7022
6982
|
"lyd-backdrop": "_lyd-backdrop_gd49l_28",
|
|
@@ -7087,19 +7047,19 @@ function ni() {
|
|
|
7087
7047
|
}
|
|
7088
7048
|
);
|
|
7089
7049
|
}
|
|
7090
|
-
const
|
|
7050
|
+
const lt = {
|
|
7091
7051
|
md: "768px",
|
|
7092
7052
|
lg: "1024px",
|
|
7093
7053
|
xl: "1200px",
|
|
7094
7054
|
"2xl": "1440px"
|
|
7095
7055
|
};
|
|
7096
7056
|
function ii(t) {
|
|
7097
|
-
return t ? t in
|
|
7057
|
+
return t ? t in lt ? lt[t] : t : lt.xl;
|
|
7098
7058
|
}
|
|
7099
|
-
function
|
|
7059
|
+
function $e(t, r) {
|
|
7100
7060
|
let n = null;
|
|
7101
|
-
return
|
|
7102
|
-
|
|
7061
|
+
return Ge.Children.forEach(t, (o) => {
|
|
7062
|
+
Ge.isValidElement(o) && o.type === r && (n = o.props.children ?? null);
|
|
7103
7063
|
}), n;
|
|
7104
7064
|
}
|
|
7105
7065
|
function oi(t) {
|
|
@@ -7116,7 +7076,7 @@ function oi(t) {
|
|
|
7116
7076
|
disableBackdropClose: g = !1,
|
|
7117
7077
|
lockBodyScroll: y = !0,
|
|
7118
7078
|
children: m
|
|
7119
|
-
} = t, [v, E] = k(i), x = o ?? v,
|
|
7079
|
+
} = t, [v, E] = k(i), x = o ?? v, N = re("md") ? x : "fullscreen", _ = De(
|
|
7120
7080
|
(j) => {
|
|
7121
7081
|
o === void 0 && E(j), l == null || l(j);
|
|
7122
7082
|
},
|
|
@@ -7135,24 +7095,24 @@ function oi(t) {
|
|
|
7135
7095
|
return window.addEventListener("keydown", j), () => window.removeEventListener("keydown", j);
|
|
7136
7096
|
}, [r, d, n]);
|
|
7137
7097
|
const B = he(
|
|
7138
|
-
() =>
|
|
7098
|
+
() => $e(m, Dt),
|
|
7139
7099
|
[m]
|
|
7140
7100
|
), ae = he(
|
|
7141
|
-
() =>
|
|
7101
|
+
() => $e(m, vt),
|
|
7142
7102
|
[m]
|
|
7143
7103
|
), q = he(
|
|
7144
|
-
() =>
|
|
7104
|
+
() => $e(m, bt),
|
|
7145
7105
|
[m]
|
|
7146
7106
|
), H = he(
|
|
7147
|
-
() =>
|
|
7107
|
+
() => $e(m, wt),
|
|
7148
7108
|
[m]
|
|
7149
7109
|
);
|
|
7150
7110
|
if (!r) return null;
|
|
7151
7111
|
const Q = [
|
|
7152
7112
|
ee["lyd-panel"],
|
|
7153
|
-
|
|
7154
|
-
|
|
7155
|
-
|
|
7113
|
+
N === "modal" && ee["lyd-modal"],
|
|
7114
|
+
N === "fullscreen" && ee["lyd-fullscreen"],
|
|
7115
|
+
N === "sidebar" && ee["lyd-sidebar"]
|
|
7156
7116
|
].filter(Boolean).join(" "), ne = {
|
|
7157
7117
|
"--lyd-max-w": ii(h)
|
|
7158
7118
|
}, ie = () => {
|
|
@@ -7201,13 +7161,13 @@ function oi(t) {
|
|
|
7201
7161
|
}
|
|
7202
7162
|
);
|
|
7203
7163
|
}
|
|
7204
|
-
const
|
|
7205
|
-
|
|
7206
|
-
|
|
7207
|
-
|
|
7208
|
-
|
|
7209
|
-
const
|
|
7210
|
-
const { defaultTab: r = 0, paramKey: n = "tab" } = t || {}, [o, i] =
|
|
7164
|
+
const Ke = oi;
|
|
7165
|
+
Ke.Header = Dt;
|
|
7166
|
+
Ke.Body = vt;
|
|
7167
|
+
Ke.Aside = bt;
|
|
7168
|
+
Ke.Footer = wt;
|
|
7169
|
+
const Lo = (t) => {
|
|
7170
|
+
const { defaultTab: r = 0, paramKey: n = "tab" } = t || {}, [o, i] = Ye(), l = Pe(o.toString());
|
|
7211
7171
|
return {
|
|
7212
7172
|
activeTab: l[n] ? parseInt(l[n]) : r,
|
|
7213
7173
|
handleTabChange: (h) => {
|
|
@@ -7219,12 +7179,12 @@ const Bo = (t) => {
|
|
|
7219
7179
|
searchQueries: l
|
|
7220
7180
|
};
|
|
7221
7181
|
};
|
|
7222
|
-
function
|
|
7182
|
+
function Bo({
|
|
7223
7183
|
appName: t,
|
|
7224
7184
|
menuConfig: r,
|
|
7225
7185
|
formatTitle: n
|
|
7226
7186
|
}) {
|
|
7227
|
-
const o =
|
|
7187
|
+
const o = ze();
|
|
7228
7188
|
$(() => {
|
|
7229
7189
|
let i = null, l = null;
|
|
7230
7190
|
for (const h of r) {
|
|
@@ -7240,8 +7200,8 @@ function Wo({
|
|
|
7240
7200
|
document.title = (n || a)(s, t);
|
|
7241
7201
|
}, [o.pathname]);
|
|
7242
7202
|
}
|
|
7243
|
-
const
|
|
7244
|
-
const [t, r] =
|
|
7203
|
+
const Wo = () => {
|
|
7204
|
+
const [t, r] = Ye(), n = Pe(t.toString()), o = Jt(), i = ze(), l = o.id;
|
|
7245
7205
|
return {
|
|
7246
7206
|
// query params
|
|
7247
7207
|
setSearchParams: r,
|
|
@@ -7259,7 +7219,7 @@ const Ao = () => {
|
|
|
7259
7219
|
hasId: !!l
|
|
7260
7220
|
};
|
|
7261
7221
|
};
|
|
7262
|
-
function
|
|
7222
|
+
function Ao(t) {
|
|
7263
7223
|
var o, i;
|
|
7264
7224
|
const r = t.decodedAccessToken;
|
|
7265
7225
|
return he(() => {
|
|
@@ -7285,49 +7245,48 @@ function Ho(t) {
|
|
|
7285
7245
|
}, [(i = (o = r == null ? void 0 : r.access) == null ? void 0 : o.role) == null ? void 0 : i.code, t]);
|
|
7286
7246
|
}
|
|
7287
7247
|
export {
|
|
7288
|
-
|
|
7248
|
+
Ui as ActionMenu,
|
|
7289
7249
|
fn as AdvanceFilterBar,
|
|
7290
7250
|
Vi as App,
|
|
7291
7251
|
kr as AppComponent,
|
|
7292
7252
|
Qt as AppContext,
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7253
|
+
Ti as AppLayout,
|
|
7254
|
+
Co as AsideBar,
|
|
7255
|
+
Oi as BackButton,
|
|
7296
7256
|
xn as ColumnFilterDropdown,
|
|
7297
|
-
|
|
7257
|
+
Fo as ConfirmationDialog,
|
|
7298
7258
|
vn as DataTable,
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7259
|
+
O as DecisionWrapper,
|
|
7260
|
+
Ct as EachUtils,
|
|
7261
|
+
bo as EmptyStatePage,
|
|
7302
7262
|
hn as FilterDrawer,
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
|
|
7263
|
+
Do as FloatingFooter,
|
|
7264
|
+
ko as ForbiddenPage,
|
|
7265
|
+
xo as Form,
|
|
7266
|
+
Eo as FullSection,
|
|
7307
7267
|
Ri as HeaderLeftSlot,
|
|
7308
7268
|
Er as HeaderLeftSlotOutlet,
|
|
7309
7269
|
Fr as HeaderLeftSlotProvider,
|
|
7310
7270
|
Zi as HorizontalField,
|
|
7311
7271
|
Rn as InputFile,
|
|
7312
7272
|
Gn as InputImage,
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
ji as ModalDialog,
|
|
7273
|
+
Ke as LayoutDialog,
|
|
7274
|
+
bt as LayoutDialogAside,
|
|
7275
|
+
vt as LayoutDialogBody,
|
|
7276
|
+
wt as LayoutDialogFooter,
|
|
7277
|
+
Dt as LayoutDialogHeader,
|
|
7319
7278
|
_i as ModuleSwitcher,
|
|
7320
7279
|
Ar as ModuleSwitcherModal,
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
|
|
7324
|
-
|
|
7280
|
+
wo as NotFoundPage,
|
|
7281
|
+
ji as PageLayout,
|
|
7282
|
+
Xe as Pressable,
|
|
7283
|
+
Or as RightDrawer,
|
|
7325
7284
|
Pn as ScrollToTopButton,
|
|
7326
|
-
|
|
7285
|
+
$i as Section,
|
|
7327
7286
|
rr as SectionFooter,
|
|
7328
7287
|
tr as SectionHeader,
|
|
7329
|
-
|
|
7330
|
-
|
|
7288
|
+
Mo as SelectButton,
|
|
7289
|
+
So as ServerErrorPage,
|
|
7331
7290
|
br as SidebarBadgesProvider,
|
|
7332
7291
|
zi as SidebarGroupSlot,
|
|
7333
7292
|
Lr as SidebarGroupSlotOutlet,
|
|
@@ -7335,51 +7294,51 @@ export {
|
|
|
7335
7294
|
Sr as SidebarHeaderSlot,
|
|
7336
7295
|
pn as TableFooter,
|
|
7337
7296
|
mn as TableHeader,
|
|
7338
|
-
|
|
7297
|
+
Yi as TableSection,
|
|
7339
7298
|
gn as TableWrapper,
|
|
7340
|
-
|
|
7299
|
+
po as ToggleStatus,
|
|
7341
7300
|
pe as Typography,
|
|
7342
|
-
|
|
7301
|
+
vo as VerticalField,
|
|
7343
7302
|
Ni as clearModuleSelection,
|
|
7344
|
-
|
|
7345
|
-
|
|
7346
|
-
|
|
7347
|
-
|
|
7303
|
+
Xi as createInitialFromUserName,
|
|
7304
|
+
no as cssVars,
|
|
7305
|
+
lo as formHasChanged,
|
|
7306
|
+
ro as formatDate,
|
|
7348
7307
|
Mn as formatDateToIndonesian,
|
|
7349
|
-
|
|
7350
|
-
|
|
7351
|
-
|
|
7352
|
-
|
|
7353
|
-
|
|
7354
|
-
|
|
7308
|
+
eo as formatRupiah,
|
|
7309
|
+
Pi as getDateFilterValue,
|
|
7310
|
+
Ji as getDateRangeFilterValue,
|
|
7311
|
+
to as getInitials,
|
|
7312
|
+
Gi as getValueDropdownMultipleFilter,
|
|
7313
|
+
qi as getValueRadioFilter,
|
|
7355
7314
|
un as getValueSearch,
|
|
7356
|
-
|
|
7357
|
-
|
|
7358
|
-
|
|
7359
|
-
|
|
7360
|
-
|
|
7361
|
-
|
|
7362
|
-
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
|
|
7366
|
-
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7315
|
+
it as getValuesFilter,
|
|
7316
|
+
zt as handleChangeFilter,
|
|
7317
|
+
yo as handleOnScroll,
|
|
7318
|
+
fo as isEmail,
|
|
7319
|
+
Qi as isFilterActive,
|
|
7320
|
+
ao as isOnlyLettersAndSpaces,
|
|
7321
|
+
co as isPhoneNumber,
|
|
7322
|
+
go as isSlug,
|
|
7323
|
+
io as oneDayInMs,
|
|
7324
|
+
Ki as parseIndonesianDateToDate,
|
|
7325
|
+
mo as preventNonCoordinateInput,
|
|
7326
|
+
ho as preventNonNumberAndDecimalInput,
|
|
7327
|
+
so as preventNonNumberInput,
|
|
7328
|
+
uo as preventNumberInput,
|
|
7370
7329
|
cn as resolveDateRangeValueToString,
|
|
7371
7330
|
an as resolveDateValueToString,
|
|
7372
7331
|
on as resolveDropdownValueToString,
|
|
7373
7332
|
ln as resolveRadioValueToString,
|
|
7374
|
-
|
|
7375
|
-
|
|
7333
|
+
rt as resolveSidebarBadge,
|
|
7334
|
+
oo as textWidth,
|
|
7376
7335
|
Yt as useApp,
|
|
7377
7336
|
vr as useAppState,
|
|
7378
|
-
|
|
7379
|
-
|
|
7337
|
+
Ao as useAuthRole,
|
|
7338
|
+
Bo as useDynamicTitle,
|
|
7380
7339
|
er as useModuleSelection,
|
|
7381
|
-
|
|
7382
|
-
|
|
7340
|
+
xt as useRouteInfo,
|
|
7341
|
+
Wo as useRouteParams,
|
|
7383
7342
|
wr as useSidebarBadges,
|
|
7384
|
-
|
|
7343
|
+
Lo as useTabState
|
|
7385
7344
|
};
|