@starasia/admin 7.0.2 → 7.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.es.js
CHANGED
|
@@ -3,31 +3,31 @@ 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
|
|
6
|
+
import { Breadcrumb as ir, BreadcrumbItem as Mt, BreadcrumbLink as nr } from "@starasia/breadcrumb";
|
|
7
7
|
export * from "@starasia/breadcrumb";
|
|
8
|
-
import { Button as
|
|
8
|
+
import { Button as O } from "@starasia/button";
|
|
9
9
|
export * from "@starasia/button";
|
|
10
10
|
export * from "@starasia/card";
|
|
11
|
-
import { StarasiaDate as
|
|
11
|
+
import { StarasiaDate as or } from "@starasia/date";
|
|
12
12
|
export * from "@starasia/date";
|
|
13
|
-
import { Dialog as
|
|
13
|
+
import { Dialog as ht, DialogTitle as $t, DialogBody as ut, DialogFooter as Gt } from "@starasia/dialog";
|
|
14
14
|
export * from "@starasia/dialog";
|
|
15
|
-
import { Drawer as
|
|
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 oe } from "@starasia/hooks";
|
|
20
20
|
export * from "@starasia/hooks";
|
|
21
|
-
import { searchParamsToObject as
|
|
21
|
+
import { searchParamsToObject as Je } 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
|
|
25
|
+
import { Menu as cr, MenuButton as tt, MenuLists as ar, MenuHeading as sr, MenuBody as dr, MenuFooter as hr } from "@starasia/menu";
|
|
26
26
|
export * from "@starasia/menu";
|
|
27
27
|
import { Pagination as ur } from "@starasia/pagination";
|
|
28
28
|
export * from "@starasia/pagination";
|
|
29
29
|
export * from "@starasia/storage";
|
|
30
|
-
import { Tr as
|
|
30
|
+
import { Tr as ze, Td as Se, Table as qt, Thead as fr, Th as Lt, Tbody as gr } from "@starasia/table";
|
|
31
31
|
export * from "@starasia/table";
|
|
32
32
|
export * from "@starasia/tabs";
|
|
33
33
|
import { Textarea as mr } from "@starasia/textarea";
|
|
@@ -35,15 +35,15 @@ export * from "@starasia/textarea";
|
|
|
35
35
|
import { useTheme as yr, ThemeProvider as Wt, useColor as pr } from "@starasia/theme";
|
|
36
36
|
export * from "@starasia/theme";
|
|
37
37
|
export * from "@starasia/toast";
|
|
38
|
-
import { Toggle as
|
|
38
|
+
import { Toggle as Ut } from "@starasia/toggle";
|
|
39
39
|
export * from "@starasia/toggle";
|
|
40
40
|
import { Tooltip as ue } 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 xr } from "@starasia/radio";
|
|
45
45
|
export * from "@starasia/radio";
|
|
46
|
-
import { Text as
|
|
46
|
+
import { Text as v } from "@starasia/text";
|
|
47
47
|
export * from "@starasia/text";
|
|
48
48
|
import { Icon as w } from "@starasia/icon";
|
|
49
49
|
export * from "@starasia/icon";
|
|
@@ -54,13 +54,13 @@ export * from "@starasia/progress";
|
|
|
54
54
|
export * from "@starasia/stepper";
|
|
55
55
|
export * from "@starasia/accordion";
|
|
56
56
|
export * from "@starasia/story-record";
|
|
57
|
-
import { Skeleton as
|
|
57
|
+
import { Skeleton as Ve } from "@starasia/skeleton";
|
|
58
58
|
export * from "@starasia/skeleton";
|
|
59
59
|
export * from "@starasia/progress-stepper";
|
|
60
60
|
import { jsx as e, Fragment as q, jsxs as s } from "react/jsx-runtime";
|
|
61
|
-
import
|
|
62
|
-
import { useSearchParams as
|
|
63
|
-
import br, { createPortal as
|
|
61
|
+
import Ge, { createContext as Qe, useState as E, useContext as We, useCallback as ve, useMemo as me, memo as xe, useEffect as $, useRef as ne, useLayoutEffect as at, forwardRef as mt, isValidElement as st, Children as Cr, useImperativeHandle as vr } from "react";
|
|
62
|
+
import { useSearchParams as Pe, useNavigate as yt, useLocation as Te, Outlet as Bt, Link as qe, useParams as Jt } from "react-router";
|
|
63
|
+
import br, { createPortal as Qt } from "react-dom";
|
|
64
64
|
import Dr from "react-easy-crop";
|
|
65
65
|
const wr = {
|
|
66
66
|
menus: [],
|
|
@@ -70,15 +70,15 @@ const wr = {
|
|
|
70
70
|
userData: null,
|
|
71
71
|
setUserData: () => {
|
|
72
72
|
}
|
|
73
|
-
},
|
|
74
|
-
const [r, i] =
|
|
73
|
+
}, Pt = Qe(wr), Yt = () => We(Pt), kr = (t) => {
|
|
74
|
+
const [r, i] = E(
|
|
75
75
|
(t == null ? void 0 : t.initialUserData) || null
|
|
76
76
|
);
|
|
77
77
|
return {
|
|
78
78
|
userData: r,
|
|
79
79
|
setUserData: i
|
|
80
80
|
};
|
|
81
|
-
},
|
|
81
|
+
}, Xt = Qe({
|
|
82
82
|
badges: {},
|
|
83
83
|
setBadge: () => {
|
|
84
84
|
},
|
|
@@ -87,7 +87,7 @@ const wr = {
|
|
|
87
87
|
clearBadge: () => {
|
|
88
88
|
}
|
|
89
89
|
}), Sr = ({ children: t }) => {
|
|
90
|
-
const [r, i] =
|
|
90
|
+
const [r, i] = E({}), o = ve(
|
|
91
91
|
(a) => {
|
|
92
92
|
i(
|
|
93
93
|
(u) => typeof a == "function" ? a(u) : a
|
|
@@ -108,12 +108,12 @@ const wr = {
|
|
|
108
108
|
const d = { ...u };
|
|
109
109
|
return delete d[a], d;
|
|
110
110
|
});
|
|
111
|
-
}, []), h =
|
|
111
|
+
}, []), h = me(
|
|
112
112
|
() => ({ badges: r, setBadge: n, setBadges: o, clearBadge: l }),
|
|
113
113
|
[r, n, o, l]
|
|
114
114
|
);
|
|
115
|
-
return /* @__PURE__ */ e(
|
|
116
|
-
}, Fr = () => We(
|
|
115
|
+
return /* @__PURE__ */ e(Xt.Provider, { value: h, children: t });
|
|
116
|
+
}, Fr = () => We(Xt), rt = (t, r) => {
|
|
117
117
|
const i = r !== void 0 ? r : t;
|
|
118
118
|
return i == null ? null : typeof i == "string" || typeof i == "number" ? { value: i } : i;
|
|
119
119
|
}, Er = ({
|
|
@@ -127,7 +127,7 @@ const wr = {
|
|
|
127
127
|
}) => {
|
|
128
128
|
const a = kr({ initialUserData: l }), { theme: u } = yr();
|
|
129
129
|
return /* @__PURE__ */ e(
|
|
130
|
-
|
|
130
|
+
Pt.Provider,
|
|
131
131
|
{
|
|
132
132
|
value: {
|
|
133
133
|
logo: o,
|
|
@@ -140,7 +140,7 @@ const wr = {
|
|
|
140
140
|
children: /* @__PURE__ */ e(Sr, { children: h ? /* @__PURE__ */ e(Wt, { value: h, children: t }) : u ? /* @__PURE__ */ e(Wt, { value: u, children: t }) : t })
|
|
141
141
|
}
|
|
142
142
|
);
|
|
143
|
-
},
|
|
143
|
+
}, Hn = xe(Er);
|
|
144
144
|
function Mr({
|
|
145
145
|
collapsed: t = !1,
|
|
146
146
|
children: r
|
|
@@ -178,11 +178,11 @@ function Mr({
|
|
|
178
178
|
}
|
|
179
179
|
);
|
|
180
180
|
}
|
|
181
|
-
const
|
|
181
|
+
const pt = Qe(null);
|
|
182
182
|
function Lr({ children: t }) {
|
|
183
|
-
const [r, i] =
|
|
183
|
+
const [r, i] = E(null), [o, n] = E(null), [l, h] = E(null), [a, u] = E(0), d = ve(() => (u((g) => g + 1), () => u((g) => g - 1)), []);
|
|
184
184
|
return /* @__PURE__ */ e(
|
|
185
|
-
|
|
185
|
+
pt.Provider,
|
|
186
186
|
{
|
|
187
187
|
value: {
|
|
188
188
|
prependNode: r,
|
|
@@ -199,18 +199,18 @@ function Lr({ children: t }) {
|
|
|
199
199
|
);
|
|
200
200
|
}
|
|
201
201
|
function Wr({ children: t }) {
|
|
202
|
-
const r = We(
|
|
202
|
+
const r = We(pt);
|
|
203
203
|
return r ? /* @__PURE__ */ s(q, { children: [
|
|
204
204
|
/* @__PURE__ */ e("div", { ref: r.setPrependNode, style: { display: "contents" } }),
|
|
205
205
|
r.replaceCount > 0 ? /* @__PURE__ */ e("div", { ref: r.setReplaceNode, style: { display: "contents" } }) : t,
|
|
206
206
|
/* @__PURE__ */ e("div", { ref: r.setAppendNode, style: { display: "contents" } })
|
|
207
207
|
] }) : /* @__PURE__ */ e(q, { children: t });
|
|
208
208
|
}
|
|
209
|
-
function
|
|
209
|
+
function An({
|
|
210
210
|
children: t,
|
|
211
211
|
mode: r = "append"
|
|
212
212
|
}) {
|
|
213
|
-
const i = We(
|
|
213
|
+
const i = We(pt);
|
|
214
214
|
if ($(() => {
|
|
215
215
|
if (!(r !== "replace" || !i))
|
|
216
216
|
return i.registerReplace();
|
|
@@ -219,23 +219,23 @@ function Tn({
|
|
|
219
219
|
"[HeaderLeftSlot] used outside AppLayout — content not rendered"
|
|
220
220
|
), null;
|
|
221
221
|
const o = r === "prepend" ? i.prependNode : r === "replace" ? i.replaceNode : i.appendNode;
|
|
222
|
-
return o ?
|
|
222
|
+
return o ? Qt(t, o) : null;
|
|
223
223
|
}
|
|
224
|
-
const
|
|
224
|
+
const xt = Qe(null);
|
|
225
225
|
function Br({ children: t }) {
|
|
226
|
-
const [r, i] =
|
|
226
|
+
const [r, i] = E({}), [o, n] = E({}), l = ve((u, d) => {
|
|
227
227
|
i((g) => g[u] === d ? g : { ...g, [u]: d });
|
|
228
228
|
}, []), h = ve((u) => (n((d) => ({ ...d, [u]: (d[u] ?? 0) + 1 })), () => n((d) => ({
|
|
229
229
|
...d,
|
|
230
230
|
[u]: Math.max(0, (d[u] ?? 0) - 1)
|
|
231
|
-
}))), []), a =
|
|
231
|
+
}))), []), a = me(
|
|
232
232
|
() => ({ outletNodes: r, setOutletNode: l, slotCounts: o, registerSlot: h }),
|
|
233
233
|
[r, l, o, h]
|
|
234
234
|
);
|
|
235
|
-
return /* @__PURE__ */ e(
|
|
235
|
+
return /* @__PURE__ */ e(xt.Provider, { value: a, children: t });
|
|
236
236
|
}
|
|
237
237
|
function Ir({ slotKey: t, fallback: r }) {
|
|
238
|
-
const i = We(
|
|
238
|
+
const i = We(xt), o = i ? (i.slotCounts[t] ?? 0) > 0 : !1, n = ne(i == null ? void 0 : i.setOutletNode);
|
|
239
239
|
n.current = i == null ? void 0 : i.setOutletNode;
|
|
240
240
|
const l = ve(
|
|
241
241
|
(h) => {
|
|
@@ -247,8 +247,8 @@ function Ir({ slotKey: t, fallback: r }) {
|
|
|
247
247
|
);
|
|
248
248
|
return /* @__PURE__ */ e(q, { children: o ? /* @__PURE__ */ e("div", { ref: l, style: { display: "contents" } }) : r });
|
|
249
249
|
}
|
|
250
|
-
function
|
|
251
|
-
const i = We(
|
|
250
|
+
function Rn({ slotKey: t, children: r }) {
|
|
251
|
+
const i = We(xt), o = ne(i == null ? void 0 : i.registerSlot);
|
|
252
252
|
if (o.current = i == null ? void 0 : i.registerSlot, $(() => {
|
|
253
253
|
var l;
|
|
254
254
|
return (l = o.current) == null ? void 0 : l.call(o, t);
|
|
@@ -257,41 +257,41 @@ function Nn({ slotKey: t, children: r }) {
|
|
|
257
257
|
"[SidebarGroupSlot] used outside AppLayout — content not rendered"
|
|
258
258
|
), null;
|
|
259
259
|
const n = i.outletNodes[t];
|
|
260
|
-
return n ?
|
|
260
|
+
return n ? Qt(r, n) : null;
|
|
261
261
|
}
|
|
262
|
-
const
|
|
262
|
+
const Ue = "moduleSwitcherGroupId", dt = "sa-module-switcher-change";
|
|
263
263
|
function It() {
|
|
264
264
|
if (typeof window > "u") return null;
|
|
265
|
-
const t = window.localStorage.getItem(
|
|
265
|
+
const t = window.localStorage.getItem(Ue);
|
|
266
266
|
if (t === null) return null;
|
|
267
267
|
const r = Number(t);
|
|
268
268
|
return Number.isFinite(r) ? r : null;
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
typeof window > "u" || (t === null ? window.localStorage.removeItem(
|
|
270
|
+
function Kt(t) {
|
|
271
|
+
typeof window > "u" || (t === null ? window.localStorage.removeItem(Ue) : window.localStorage.setItem(Ue, String(t)), window.dispatchEvent(new CustomEvent(dt, { detail: t })));
|
|
272
272
|
}
|
|
273
|
-
function
|
|
274
|
-
|
|
273
|
+
function Vn() {
|
|
274
|
+
Kt(null);
|
|
275
275
|
}
|
|
276
|
-
function
|
|
277
|
-
const [t, r] =
|
|
276
|
+
function er() {
|
|
277
|
+
const [t, r] = E(
|
|
278
278
|
() => It()
|
|
279
279
|
);
|
|
280
280
|
return $(() => {
|
|
281
281
|
const o = () => {
|
|
282
282
|
r(It());
|
|
283
283
|
}, n = (l) => {
|
|
284
|
-
l.key ===
|
|
284
|
+
l.key === Ue && o();
|
|
285
285
|
};
|
|
286
|
-
return window.addEventListener(
|
|
287
|
-
window.removeEventListener(
|
|
286
|
+
return window.addEventListener(dt, o), window.addEventListener("storage", n), () => {
|
|
287
|
+
window.removeEventListener(dt, o), window.removeEventListener("storage", n);
|
|
288
288
|
};
|
|
289
289
|
}, []), { selectedGroupId: t, setSelectedGroupId: (o) => {
|
|
290
|
-
|
|
290
|
+
Kt(o), r(o);
|
|
291
291
|
} };
|
|
292
292
|
}
|
|
293
|
-
let Ze = 0, ke = !1,
|
|
294
|
-
const
|
|
293
|
+
let Ze = 0, ke = !1, Ht = /* @__PURE__ */ new Set();
|
|
294
|
+
const At = () => /* @__PURE__ */ s(
|
|
295
295
|
"svg",
|
|
296
296
|
{
|
|
297
297
|
width: "100%",
|
|
@@ -308,7 +308,7 @@ const Ht = () => /* @__PURE__ */ s(
|
|
|
308
308
|
/* @__PURE__ */ e("line", { x1: "6", y1: "1.667", x2: "6", y2: "14.333" })
|
|
309
309
|
]
|
|
310
310
|
}
|
|
311
|
-
),
|
|
311
|
+
), Rt = {
|
|
312
312
|
width: "100%",
|
|
313
313
|
display: "flex",
|
|
314
314
|
alignItems: "center",
|
|
@@ -325,7 +325,7 @@ const Ht = () => /* @__PURE__ */ s(
|
|
|
325
325
|
cursor: "pointer",
|
|
326
326
|
textAlign: "left"
|
|
327
327
|
};
|
|
328
|
-
function
|
|
328
|
+
function zn({
|
|
329
329
|
children: t,
|
|
330
330
|
headerLeftSlot: r,
|
|
331
331
|
profile: i,
|
|
@@ -341,13 +341,13 @@ function _n({
|
|
|
341
341
|
logoutButton: y
|
|
342
342
|
}) {
|
|
343
343
|
var Ee, je;
|
|
344
|
-
const [b] =
|
|
345
|
-
() => new Set(
|
|
346
|
-
), [te, X] =
|
|
344
|
+
const [b] = Pe(), k = b.get("embed") === "true", x = Yt(), { badges: R } = Fr(), Z = yt(), T = Te(), L = !oe("md"), [ae, J] = E(!1), [A, Q] = E(!1), [le, ce] = E(!1), [G, P] = E(!1), [ee, se] = E(
|
|
345
|
+
() => new Set(Ht)
|
|
346
|
+
), [te, X] = E(null), { selectedGroupId: V, setSelectedGroupId: z } = er();
|
|
347
347
|
$(() => {
|
|
348
|
-
|
|
348
|
+
Ht = ee;
|
|
349
349
|
}, [ee]);
|
|
350
|
-
const K = ne(null),
|
|
350
|
+
const K = ne(null), fe = ne(null);
|
|
351
351
|
$(() => {
|
|
352
352
|
const p = K.current;
|
|
353
353
|
if (!p) return;
|
|
@@ -356,77 +356,77 @@ function _n({
|
|
|
356
356
|
};
|
|
357
357
|
return p.addEventListener("scroll", M), () => p.removeEventListener("scroll", M);
|
|
358
358
|
}, []);
|
|
359
|
-
const
|
|
359
|
+
const ge = () => {
|
|
360
360
|
const p = K.current;
|
|
361
361
|
p && Ze > 0 && (ke = !0, p.scrollTop = Ze, requestAnimationFrame(() => {
|
|
362
362
|
ke = !1;
|
|
363
363
|
}));
|
|
364
364
|
};
|
|
365
|
-
|
|
366
|
-
ke = !0,
|
|
365
|
+
at(() => {
|
|
366
|
+
ke = !0, ge();
|
|
367
367
|
const p = setTimeout(() => {
|
|
368
368
|
ke = !1;
|
|
369
369
|
}, 300);
|
|
370
370
|
return () => clearTimeout(p);
|
|
371
|
-
}, []),
|
|
372
|
-
|
|
371
|
+
}, []), at(() => {
|
|
372
|
+
x.menus.length > 0 && (Ze > 0 ? ge() : requestAnimationFrame(() => {
|
|
373
373
|
var M;
|
|
374
374
|
const p = (M = K.current) == null ? void 0 : M.querySelector(
|
|
375
375
|
"[data-menu-active='true']"
|
|
376
376
|
);
|
|
377
377
|
p && p.scrollIntoView({ block: "center", behavior: "instant" });
|
|
378
378
|
}));
|
|
379
|
-
}, [
|
|
380
|
-
ke = !0,
|
|
381
|
-
const p = setTimeout(
|
|
379
|
+
}, [x.menus]), $(() => {
|
|
380
|
+
ke = !0, ge();
|
|
381
|
+
const p = setTimeout(ge, 0), M = setTimeout(ge, 50), W = setTimeout(ge, 100), C = setTimeout(ge, 200), S = setTimeout(() => {
|
|
382
382
|
ke = !1;
|
|
383
383
|
}, 300), D = setTimeout(() => {
|
|
384
|
-
const
|
|
385
|
-
if (
|
|
386
|
-
const re =
|
|
384
|
+
const F = K.current, I = F == null ? void 0 : F.querySelector("[data-menu-active='true']");
|
|
385
|
+
if (F && I) {
|
|
386
|
+
const re = F.getBoundingClientRect(), he = I.getBoundingClientRect();
|
|
387
387
|
he.top >= re.top && he.bottom <= re.bottom || I.scrollIntoView({ block: "center", behavior: "smooth" });
|
|
388
388
|
}
|
|
389
389
|
}, 250);
|
|
390
390
|
return () => {
|
|
391
|
-
clearTimeout(p), clearTimeout(M), clearTimeout(W), clearTimeout(
|
|
391
|
+
clearTimeout(p), clearTimeout(M), clearTimeout(W), clearTimeout(C), clearTimeout(S), clearTimeout(D);
|
|
392
392
|
};
|
|
393
393
|
}, [T.pathname]), $(() => {
|
|
394
|
-
|
|
394
|
+
fe.current && (fe.current.scrollTop = 0);
|
|
395
395
|
}, [T.pathname]), $(() => {
|
|
396
396
|
L && ce(!1);
|
|
397
397
|
}, [T.pathname, L]), $(() => {
|
|
398
|
-
L &&
|
|
398
|
+
L && Q(!0);
|
|
399
399
|
}, [L]);
|
|
400
400
|
const Be = () => {
|
|
401
401
|
J(!0);
|
|
402
402
|
}, Ne = () => {
|
|
403
403
|
J(!1);
|
|
404
|
-
},
|
|
404
|
+
}, Xe = () => {
|
|
405
405
|
J(!1), n();
|
|
406
406
|
}, Oe = (p) => {
|
|
407
407
|
const M = [p.to];
|
|
408
408
|
return p.children && M.push(...p.children.map((W) => W.to)), M;
|
|
409
409
|
}, Ie = [
|
|
410
|
-
...
|
|
411
|
-
...((Ee =
|
|
410
|
+
...x.menus.flatMap((p) => p.items.flatMap(Oe)),
|
|
411
|
+
...((Ee = x.menuBottom) == null ? void 0 : Ee.flatMap(Oe)) ?? []
|
|
412
412
|
], de = (p) => {
|
|
413
413
|
if (!T.pathname.startsWith(p)) return !1;
|
|
414
|
-
const M = Ie.filter((W) => T.pathname.startsWith(W)).sort((W,
|
|
414
|
+
const M = Ie.filter((W) => T.pathname.startsWith(W)).sort((W, C) => C.length - W.length)[0];
|
|
415
415
|
return p === M;
|
|
416
416
|
};
|
|
417
417
|
$(() => {
|
|
418
418
|
var M;
|
|
419
419
|
const p = (W) => {
|
|
420
|
-
var
|
|
421
|
-
(
|
|
422
|
-
const D = new Set(
|
|
420
|
+
var C;
|
|
421
|
+
(C = W.children) != null && C.some((S) => T.pathname.startsWith(S.to)) && se((S) => {
|
|
422
|
+
const D = new Set(S);
|
|
423
423
|
return D.add(W.id), D;
|
|
424
424
|
});
|
|
425
425
|
};
|
|
426
|
-
|
|
426
|
+
x.menus.forEach((W) => {
|
|
427
427
|
W.items.forEach(p);
|
|
428
|
-
}), (M =
|
|
429
|
-
}, [T.pathname,
|
|
428
|
+
}), (M = x.menuBottom) == null || M.forEach(p);
|
|
429
|
+
}, [T.pathname, x.menus, x.menuBottom]);
|
|
430
430
|
const _e = (p) => {
|
|
431
431
|
se((M) => {
|
|
432
432
|
const W = new Set(M);
|
|
@@ -434,31 +434,31 @@ function _n({
|
|
|
434
434
|
});
|
|
435
435
|
};
|
|
436
436
|
$(() => {
|
|
437
|
-
|
|
438
|
-
}, [
|
|
439
|
-
const
|
|
440
|
-
if (
|
|
441
|
-
return
|
|
442
|
-
(W) => W.id ===
|
|
437
|
+
x.menus.length !== 0 && V !== null && !x.menus.some((p) => p.id === V) && z(null);
|
|
438
|
+
}, [x.menus, V, z]);
|
|
439
|
+
const He = me(() => {
|
|
440
|
+
if (V !== null)
|
|
441
|
+
return x.menus.filter(
|
|
442
|
+
(W) => W.id === V || W.parentGroupId === V
|
|
443
443
|
);
|
|
444
|
-
const p =
|
|
444
|
+
const p = x.menus.filter((W) => W.parentGroupId === void 0), M = x.menus.filter((W) => W.parentGroupId !== void 0).flatMap((W) => W.items);
|
|
445
445
|
return M.length === 0 ? p : [
|
|
446
446
|
...p,
|
|
447
447
|
{ id: 18, name: "Pengaturan", items: M, parentGroupId: void 0 }
|
|
448
448
|
];
|
|
449
|
-
}, [
|
|
450
|
-
if (
|
|
449
|
+
}, [x.menus, V]);
|
|
450
|
+
if (k)
|
|
451
451
|
return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(Bt, {}) });
|
|
452
452
|
const Fe = (p) => {
|
|
453
|
-
const M = p.children && p.children.length > 0, W = ee.has(p.id),
|
|
454
|
-
return /* @__PURE__ */ s("div", { "data-menu-active":
|
|
453
|
+
const M = p.children && p.children.length > 0, W = ee.has(p.id), C = M ? p.children.some((F) => de(F.to)) : de(p.to), S = rt(p.badge, R[p.id]), D = !!S && A && !L;
|
|
454
|
+
return /* @__PURE__ */ s("div", { "data-menu-active": C || void 0, children: [
|
|
455
455
|
/* @__PURE__ */ s(
|
|
456
456
|
"button",
|
|
457
457
|
{
|
|
458
|
-
onClick: (
|
|
458
|
+
onClick: (F) => {
|
|
459
459
|
if (M)
|
|
460
|
-
if (
|
|
461
|
-
const I =
|
|
460
|
+
if (A && !L) {
|
|
461
|
+
const I = F.currentTarget.getBoundingClientRect();
|
|
462
462
|
X({
|
|
463
463
|
item: p,
|
|
464
464
|
top: I.top,
|
|
@@ -473,26 +473,26 @@ function _n({
|
|
|
473
473
|
width: "100%",
|
|
474
474
|
display: "flex",
|
|
475
475
|
alignItems: "center",
|
|
476
|
-
justifyContent:
|
|
476
|
+
justifyContent: A && !L ? "center" : void 0,
|
|
477
477
|
gap: "0.5rem",
|
|
478
|
-
paddingLeft:
|
|
479
|
-
paddingRight:
|
|
478
|
+
paddingLeft: A && !L ? "0" : "0.5rem",
|
|
479
|
+
paddingRight: A && !L ? "0" : "0.5rem",
|
|
480
480
|
paddingTop: "0.25rem",
|
|
481
481
|
paddingBottom: "0.25rem",
|
|
482
482
|
height: "2rem",
|
|
483
|
-
borderRadius:
|
|
483
|
+
borderRadius: C ? "var(--sa-radii-sm, 0.375rem)" : "var(--sa-radii-md, 0.5rem)",
|
|
484
484
|
textAlign: "left",
|
|
485
|
-
border:
|
|
486
|
-
backgroundColor:
|
|
485
|
+
border: C ? "1px solid var(--sa-border-subtle, #0b120e24)" : "1px solid transparent",
|
|
486
|
+
backgroundColor: C ? "var(--sa-background-primary, #ffffff)" : "transparent",
|
|
487
487
|
color: "var(--sa-text-primary, #292a2e)",
|
|
488
488
|
cursor: "pointer"
|
|
489
489
|
},
|
|
490
|
-
title:
|
|
491
|
-
onMouseEnter: (
|
|
492
|
-
|
|
490
|
+
title: A && !L ? p.title : void 0,
|
|
491
|
+
onMouseEnter: (F) => {
|
|
492
|
+
C || (F.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
|
|
493
493
|
},
|
|
494
|
-
onMouseLeave: (
|
|
495
|
-
|
|
494
|
+
onMouseLeave: (F) => {
|
|
495
|
+
C || (F.currentTarget.style.backgroundColor = "transparent");
|
|
496
496
|
},
|
|
497
497
|
children: [
|
|
498
498
|
/* @__PURE__ */ s(
|
|
@@ -524,7 +524,7 @@ function _n({
|
|
|
524
524
|
]
|
|
525
525
|
}
|
|
526
526
|
),
|
|
527
|
-
(!
|
|
527
|
+
(!A || L) && /* @__PURE__ */ s(q, { children: [
|
|
528
528
|
/* @__PURE__ */ e(
|
|
529
529
|
"span",
|
|
530
530
|
{
|
|
@@ -541,11 +541,11 @@ function _n({
|
|
|
541
541
|
children: p.title
|
|
542
542
|
}
|
|
543
543
|
),
|
|
544
|
-
|
|
544
|
+
S && /* @__PURE__ */ e(
|
|
545
545
|
Le,
|
|
546
546
|
{
|
|
547
|
-
text: String(
|
|
548
|
-
variant:
|
|
547
|
+
text: String(S.value),
|
|
548
|
+
variant: S.variant ?? "info",
|
|
549
549
|
size: "xs",
|
|
550
550
|
border: !0
|
|
551
551
|
}
|
|
@@ -578,8 +578,8 @@ function _n({
|
|
|
578
578
|
]
|
|
579
579
|
}
|
|
580
580
|
),
|
|
581
|
-
M && (!
|
|
582
|
-
const
|
|
581
|
+
M && (!A || L) && (() => {
|
|
582
|
+
const F = p.children.findIndex(
|
|
583
583
|
(I) => de(I.to)
|
|
584
584
|
);
|
|
585
585
|
return /* @__PURE__ */ s(
|
|
@@ -611,14 +611,14 @@ function _n({
|
|
|
611
611
|
}
|
|
612
612
|
}
|
|
613
613
|
),
|
|
614
|
-
|
|
614
|
+
F >= 0 && /* @__PURE__ */ e(
|
|
615
615
|
"span",
|
|
616
616
|
{
|
|
617
617
|
"aria-hidden": "true",
|
|
618
618
|
style: {
|
|
619
619
|
position: "absolute",
|
|
620
620
|
left: 0,
|
|
621
|
-
top: `${
|
|
621
|
+
top: `${F * 32}px`,
|
|
622
622
|
width: "1.5px",
|
|
623
623
|
height: "32px",
|
|
624
624
|
backgroundColor: "var(--sa-text-primary, #292a2e)",
|
|
@@ -629,9 +629,9 @@ function _n({
|
|
|
629
629
|
}
|
|
630
630
|
),
|
|
631
631
|
p.children.map((I) => {
|
|
632
|
-
const re =
|
|
632
|
+
const re = rt(
|
|
633
633
|
I.badge,
|
|
634
|
-
|
|
634
|
+
R[I.id]
|
|
635
635
|
);
|
|
636
636
|
return /* @__PURE__ */ s(
|
|
637
637
|
"button",
|
|
@@ -713,7 +713,7 @@ function _n({
|
|
|
713
713
|
height: "100vh",
|
|
714
714
|
// backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
|
|
715
715
|
position: "relative",
|
|
716
|
-
"--app-sidebar-width": L ? "0px" :
|
|
716
|
+
"--app-sidebar-width": L ? "0px" : A ? "4.375rem" : "16.375rem",
|
|
717
717
|
"--app-footer-zindex": L && le ? "40" : "999"
|
|
718
718
|
},
|
|
719
719
|
children: [
|
|
@@ -736,7 +736,7 @@ function _n({
|
|
|
736
736
|
"aside",
|
|
737
737
|
{
|
|
738
738
|
style: {
|
|
739
|
-
width: L ? "16.375rem" :
|
|
739
|
+
width: L ? "16.375rem" : A ? "4.375rem" : "16.375rem",
|
|
740
740
|
position: L ? "fixed" : "relative",
|
|
741
741
|
...L && {
|
|
742
742
|
inset: 0,
|
|
@@ -754,8 +754,8 @@ function _n({
|
|
|
754
754
|
/* @__PURE__ */ e(
|
|
755
755
|
"div",
|
|
756
756
|
{
|
|
757
|
-
onMouseEnter: () =>
|
|
758
|
-
onMouseLeave: () =>
|
|
757
|
+
onMouseEnter: () => P(!0),
|
|
758
|
+
onMouseLeave: () => P(!1),
|
|
759
759
|
style: {
|
|
760
760
|
height: "4rem",
|
|
761
761
|
display: "flex",
|
|
@@ -767,7 +767,7 @@ function _n({
|
|
|
767
767
|
position: "relative"
|
|
768
768
|
},
|
|
769
769
|
children: (() => {
|
|
770
|
-
const p = !L &&
|
|
770
|
+
const p = !L && A && !le, M = p && G;
|
|
771
771
|
return /* @__PURE__ */ s(q, { children: [
|
|
772
772
|
/* @__PURE__ */ s(
|
|
773
773
|
"div",
|
|
@@ -786,7 +786,7 @@ function _n({
|
|
|
786
786
|
/* @__PURE__ */ e(
|
|
787
787
|
"img",
|
|
788
788
|
{
|
|
789
|
-
src:
|
|
789
|
+
src: x.logo,
|
|
790
790
|
alt: "Logo",
|
|
791
791
|
style: {
|
|
792
792
|
width: "2rem",
|
|
@@ -795,7 +795,7 @@ function _n({
|
|
|
795
795
|
}
|
|
796
796
|
}
|
|
797
797
|
),
|
|
798
|
-
(!
|
|
798
|
+
(!A || le) && /* @__PURE__ */ e(
|
|
799
799
|
"span",
|
|
800
800
|
{
|
|
801
801
|
style: {
|
|
@@ -804,17 +804,17 @@ function _n({
|
|
|
804
804
|
whiteSpace: "nowrap",
|
|
805
805
|
transition: "opacity 0.3s"
|
|
806
806
|
},
|
|
807
|
-
children:
|
|
807
|
+
children: x.appName
|
|
808
808
|
}
|
|
809
809
|
)
|
|
810
810
|
]
|
|
811
811
|
}
|
|
812
812
|
),
|
|
813
|
-
!L && !
|
|
813
|
+
!L && !A && /* @__PURE__ */ e(
|
|
814
814
|
"button",
|
|
815
815
|
{
|
|
816
816
|
type: "button",
|
|
817
|
-
onClick: () =>
|
|
817
|
+
onClick: () => Q(!0),
|
|
818
818
|
"aria-label": "Collapse sidebar",
|
|
819
819
|
style: {
|
|
820
820
|
display: "inline-flex",
|
|
@@ -829,14 +829,14 @@ function _n({
|
|
|
829
829
|
cursor: "pointer",
|
|
830
830
|
flexShrink: 0
|
|
831
831
|
},
|
|
832
|
-
children: /* @__PURE__ */ e(
|
|
832
|
+
children: /* @__PURE__ */ e(At, {})
|
|
833
833
|
}
|
|
834
834
|
),
|
|
835
835
|
p && /* @__PURE__ */ e(
|
|
836
836
|
"button",
|
|
837
837
|
{
|
|
838
838
|
type: "button",
|
|
839
|
-
onClick: () =>
|
|
839
|
+
onClick: () => Q(!1),
|
|
840
840
|
"aria-label": "Expand sidebar",
|
|
841
841
|
style: {
|
|
842
842
|
position: "absolute",
|
|
@@ -866,7 +866,7 @@ function _n({
|
|
|
866
866
|
height: "1rem",
|
|
867
867
|
display: "inline-flex"
|
|
868
868
|
},
|
|
869
|
-
children: /* @__PURE__ */ e(
|
|
869
|
+
children: /* @__PURE__ */ e(At, {})
|
|
870
870
|
}
|
|
871
871
|
)
|
|
872
872
|
}
|
|
@@ -911,7 +911,7 @@ function _n({
|
|
|
911
911
|
a && /* @__PURE__ */ e(
|
|
912
912
|
Mr,
|
|
913
913
|
{
|
|
914
|
-
collapsed: L ? !1 :
|
|
914
|
+
collapsed: L ? !1 : A,
|
|
915
915
|
children: a
|
|
916
916
|
}
|
|
917
917
|
),
|
|
@@ -925,8 +925,8 @@ function _n({
|
|
|
925
925
|
paddingTop: "1rem",
|
|
926
926
|
paddingBottom: "1rem"
|
|
927
927
|
},
|
|
928
|
-
children:
|
|
929
|
-
!
|
|
928
|
+
children: He.map((p) => /* @__PURE__ */ s("div", { style: { marginBottom: "1rem" }, children: [
|
|
929
|
+
!A || L ? p.name && /* @__PURE__ */ e(
|
|
930
930
|
"div",
|
|
931
931
|
{
|
|
932
932
|
style: {
|
|
@@ -979,7 +979,7 @@ function _n({
|
|
|
979
979
|
] }, p.id))
|
|
980
980
|
}
|
|
981
981
|
),
|
|
982
|
-
|
|
982
|
+
x.menuBottom && x.menuBottom.length > 0 && /* @__PURE__ */ e(
|
|
983
983
|
"div",
|
|
984
984
|
{
|
|
985
985
|
style: {
|
|
@@ -994,7 +994,7 @@ function _n({
|
|
|
994
994
|
gap: "var(--sa-spacing-xs, 0.25rem)",
|
|
995
995
|
flexShrink: 0
|
|
996
996
|
},
|
|
997
|
-
children:
|
|
997
|
+
children: x.menuBottom.map((p) => Fe(p))
|
|
998
998
|
}
|
|
999
999
|
)
|
|
1000
1000
|
]
|
|
@@ -1053,8 +1053,8 @@ function _n({
|
|
|
1053
1053
|
] }),
|
|
1054
1054
|
/* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
|
|
1055
1055
|
u,
|
|
1056
|
-
/* @__PURE__ */ s(
|
|
1057
|
-
/* @__PURE__ */ e(
|
|
1056
|
+
/* @__PURE__ */ s(cr, { position: "bottom-right", children: [
|
|
1057
|
+
/* @__PURE__ */ e(tt, { children: /* @__PURE__ */ s(
|
|
1058
1058
|
"div",
|
|
1059
1059
|
{
|
|
1060
1060
|
style: {
|
|
@@ -1127,7 +1127,7 @@ function _n({
|
|
|
1127
1127
|
}
|
|
1128
1128
|
) }),
|
|
1129
1129
|
/* @__PURE__ */ s(
|
|
1130
|
-
|
|
1130
|
+
ar,
|
|
1131
1131
|
{
|
|
1132
1132
|
style: {
|
|
1133
1133
|
width: "280px",
|
|
@@ -1137,7 +1137,7 @@ function _n({
|
|
|
1137
1137
|
marginTop: "16px"
|
|
1138
1138
|
},
|
|
1139
1139
|
children: [
|
|
1140
|
-
/* @__PURE__ */ e(
|
|
1140
|
+
/* @__PURE__ */ e(sr, { children: /* @__PURE__ */ s(
|
|
1141
1141
|
"div",
|
|
1142
1142
|
{
|
|
1143
1143
|
style: {
|
|
@@ -1217,13 +1217,13 @@ function _n({
|
|
|
1217
1217
|
]
|
|
1218
1218
|
}
|
|
1219
1219
|
) }),
|
|
1220
|
-
(g && g.length > 0 || m) && /* @__PURE__ */ s(
|
|
1221
|
-
g == null ? void 0 : g.map((p, M) => /* @__PURE__ */ e(
|
|
1220
|
+
(g && g.length > 0 || m) && /* @__PURE__ */ s(dr, { children: [
|
|
1221
|
+
g == null ? void 0 : g.map((p, M) => /* @__PURE__ */ e(tt, { children: /* @__PURE__ */ s(
|
|
1222
1222
|
"button",
|
|
1223
1223
|
{
|
|
1224
1224
|
type: "button",
|
|
1225
1225
|
onClick: p.onClick,
|
|
1226
|
-
style:
|
|
1226
|
+
style: Rt,
|
|
1227
1227
|
onMouseEnter: (W) => {
|
|
1228
1228
|
W.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)";
|
|
1229
1229
|
},
|
|
@@ -1238,13 +1238,13 @@ function _n({
|
|
|
1238
1238
|
) }, `${p.label}-${M}`)),
|
|
1239
1239
|
m
|
|
1240
1240
|
] }),
|
|
1241
|
-
y ?? /* @__PURE__ */ e(hr, { children: /* @__PURE__ */ e(
|
|
1241
|
+
y ?? /* @__PURE__ */ e(hr, { children: /* @__PURE__ */ e(tt, { children: /* @__PURE__ */ s(
|
|
1242
1242
|
"button",
|
|
1243
1243
|
{
|
|
1244
1244
|
type: "button",
|
|
1245
1245
|
onClick: Be,
|
|
1246
1246
|
style: {
|
|
1247
|
-
...
|
|
1247
|
+
...Rt,
|
|
1248
1248
|
color: "var(--sa-background-error, #c9184a)",
|
|
1249
1249
|
fontWeight: 500
|
|
1250
1250
|
},
|
|
@@ -1280,7 +1280,7 @@ function _n({
|
|
|
1280
1280
|
/* @__PURE__ */ e(
|
|
1281
1281
|
"main",
|
|
1282
1282
|
{
|
|
1283
|
-
ref:
|
|
1283
|
+
ref: fe,
|
|
1284
1284
|
style: {
|
|
1285
1285
|
flex: 1,
|
|
1286
1286
|
overflowY: "auto"
|
|
@@ -1307,12 +1307,12 @@ function _n({
|
|
|
1307
1307
|
children: h
|
|
1308
1308
|
}
|
|
1309
1309
|
),
|
|
1310
|
-
/* @__PURE__ */ s(
|
|
1310
|
+
/* @__PURE__ */ s(ht, { isShow: ae, onHide: Ne, children: [
|
|
1311
1311
|
/* @__PURE__ */ e($t, { children: "Confirmation Logout" }),
|
|
1312
|
-
/* @__PURE__ */ e(
|
|
1312
|
+
/* @__PURE__ */ e(ut, { children: "Are you sure you want to end the session and exit the page?" }),
|
|
1313
1313
|
/* @__PURE__ */ e(Gt, { children: /* @__PURE__ */ e(f, { display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ s(_, { direction: "row", gap: "sm", align: "center", children: [
|
|
1314
|
-
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
|
|
1315
|
-
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
|
|
1314
|
+
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(O, { secondary: !0, onClick: Ne, children: "Cancel" }) }),
|
|
1315
|
+
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(O, { primary: !0, onClick: Xe, children: "Yes, Sure" }) })
|
|
1316
1316
|
] }) }) })
|
|
1317
1317
|
] }),
|
|
1318
1318
|
te && /* @__PURE__ */ s(q, { children: [
|
|
@@ -1365,9 +1365,9 @@ function _n({
|
|
|
1365
1365
|
}
|
|
1366
1366
|
),
|
|
1367
1367
|
(je = te.item.children) == null ? void 0 : je.map((p) => {
|
|
1368
|
-
const M = de(p.to), W =
|
|
1368
|
+
const M = de(p.to), W = rt(
|
|
1369
1369
|
p.badge,
|
|
1370
|
-
|
|
1370
|
+
R[p.id]
|
|
1371
1371
|
);
|
|
1372
1372
|
return /* @__PURE__ */ s(
|
|
1373
1373
|
"button",
|
|
@@ -1390,11 +1390,11 @@ function _n({
|
|
|
1390
1390
|
fontSize: "0.875rem",
|
|
1391
1391
|
fontWeight: 500
|
|
1392
1392
|
},
|
|
1393
|
-
onMouseEnter: (
|
|
1394
|
-
M || (
|
|
1393
|
+
onMouseEnter: (C) => {
|
|
1394
|
+
M || (C.currentTarget.style.backgroundColor = "var(--sa-color-gray-100, #f8f8f8)");
|
|
1395
1395
|
},
|
|
1396
|
-
onMouseLeave: (
|
|
1397
|
-
M || (
|
|
1396
|
+
onMouseLeave: (C) => {
|
|
1397
|
+
M || (C.currentTarget.style.backgroundColor = "transparent");
|
|
1398
1398
|
},
|
|
1399
1399
|
children: [
|
|
1400
1400
|
p.icon && /* @__PURE__ */ e(
|
|
@@ -1426,7 +1426,7 @@ function _n({
|
|
|
1426
1426
|
] })
|
|
1427
1427
|
] }) });
|
|
1428
1428
|
}
|
|
1429
|
-
const
|
|
1429
|
+
const Ct = mt(
|
|
1430
1430
|
({ children: t, ...r }, i) => /* @__PURE__ */ e(
|
|
1431
1431
|
f,
|
|
1432
1432
|
{
|
|
@@ -1440,7 +1440,7 @@ const Xe = yt(
|
|
|
1440
1440
|
children: t
|
|
1441
1441
|
}
|
|
1442
1442
|
)
|
|
1443
|
-
),
|
|
1443
|
+
), Vt = ({
|
|
1444
1444
|
title: t,
|
|
1445
1445
|
iconName: r,
|
|
1446
1446
|
textColor: i,
|
|
@@ -1448,7 +1448,7 @@ const Xe = yt(
|
|
|
1448
1448
|
hoverTextColor: n,
|
|
1449
1449
|
hoverIconColor: l
|
|
1450
1450
|
}) => {
|
|
1451
|
-
const [h, a] =
|
|
1451
|
+
const [h, a] = E(!1);
|
|
1452
1452
|
return /* @__PURE__ */ s(
|
|
1453
1453
|
f,
|
|
1454
1454
|
{
|
|
@@ -1471,7 +1471,7 @@ const Xe = yt(
|
|
|
1471
1471
|
}
|
|
1472
1472
|
),
|
|
1473
1473
|
/* @__PURE__ */ e(
|
|
1474
|
-
|
|
1474
|
+
v,
|
|
1475
1475
|
{
|
|
1476
1476
|
variant: "sub-h3",
|
|
1477
1477
|
style: {
|
|
@@ -1484,14 +1484,14 @@ const Xe = yt(
|
|
|
1484
1484
|
]
|
|
1485
1485
|
}
|
|
1486
1486
|
);
|
|
1487
|
-
},
|
|
1487
|
+
}, Hr = ({
|
|
1488
1488
|
items: t,
|
|
1489
1489
|
separator: r = "/",
|
|
1490
1490
|
iconName: i,
|
|
1491
1491
|
iconColor: o,
|
|
1492
1492
|
hoverIconColor: n
|
|
1493
1493
|
}) => {
|
|
1494
|
-
const [l, h] =
|
|
1494
|
+
const [l, h] = E(!1), a = o ?? "var(--sa-text-subtle, #8c8f97)", u = n ?? "var(--sa-text-subtle, #8c8f97)", d = t.length > 1 ? t[0] : void 0, g = !!(d != null && d.to || d != null && d.onClick), m = /* @__PURE__ */ e(
|
|
1495
1495
|
w,
|
|
1496
1496
|
{
|
|
1497
1497
|
name: i || "ChevronLeft",
|
|
@@ -1504,18 +1504,18 @@ const Xe = yt(
|
|
|
1504
1504
|
cursor: g ? "pointer" : void 0
|
|
1505
1505
|
}
|
|
1506
1506
|
}
|
|
1507
|
-
), y = d != null && d.to ? /* @__PURE__ */ e(
|
|
1507
|
+
), y = d != null && d.to ? /* @__PURE__ */ e(qe, { to: d.to, replace: !0, style: { textDecoration: "none" }, children: m }) : d != null && d.onClick ? /* @__PURE__ */ e(Ct, { onClick: d.onClick, children: m }) : m;
|
|
1508
1508
|
return /* @__PURE__ */ s(f, { direction: "row", gap: "xs", align: "center", children: [
|
|
1509
1509
|
y,
|
|
1510
|
-
/* @__PURE__ */ e(
|
|
1511
|
-
const
|
|
1512
|
-
return b.to && !
|
|
1510
|
+
/* @__PURE__ */ e(ir, { separator: r, size: "md", children: t.map((b, k) => {
|
|
1511
|
+
const x = k === t.length - 1;
|
|
1512
|
+
return b.to && !x ? /* @__PURE__ */ e(Mt, { children: /* @__PURE__ */ e(qe, { to: b.to, children: b.label }) }, k) : /* @__PURE__ */ e(Mt, { currentPage: x, children: /* @__PURE__ */ e(nr, { onClick: x ? void 0 : b.onClick, children: b.label }) }, k);
|
|
1513
1513
|
}) })
|
|
1514
1514
|
] });
|
|
1515
|
-
},
|
|
1515
|
+
}, Tn = (t) => {
|
|
1516
1516
|
const { items: r, separator: i, onClick: o, navigateTo: n, ...l } = t;
|
|
1517
1517
|
return r && r.length > 0 ? /* @__PURE__ */ e(
|
|
1518
|
-
|
|
1518
|
+
Hr,
|
|
1519
1519
|
{
|
|
1520
1520
|
items: r,
|
|
1521
1521
|
separator: i,
|
|
@@ -1523,8 +1523,8 @@ const Xe = yt(
|
|
|
1523
1523
|
iconColor: l.iconColor,
|
|
1524
1524
|
hoverIconColor: l.hoverIconColor
|
|
1525
1525
|
}
|
|
1526
|
-
) : n ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(
|
|
1527
|
-
},
|
|
1526
|
+
) : n ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(qe, { to: n, replace: !0, style: { textDecoration: "none" }, children: /* @__PURE__ */ e(Vt, { ...l }) }) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Ct, { onClick: o, children: /* @__PURE__ */ e(Vt, { ...l }) }) });
|
|
1527
|
+
}, it = [
|
|
1528
1528
|
// brand (blue)
|
|
1529
1529
|
{
|
|
1530
1530
|
icon: "var(--sa-color-brand-400, #3366b7)",
|
|
@@ -1568,7 +1568,7 @@ const Xe = yt(
|
|
|
1568
1568
|
activeShadow: "rgba(255, 117, 143, 0.25)"
|
|
1569
1569
|
}
|
|
1570
1570
|
];
|
|
1571
|
-
function
|
|
1571
|
+
function zt(t, r, i) {
|
|
1572
1572
|
return {
|
|
1573
1573
|
display: "flex",
|
|
1574
1574
|
alignItems: "center",
|
|
@@ -1603,18 +1603,18 @@ const Tt = {
|
|
|
1603
1603
|
cursor: "pointer",
|
|
1604
1604
|
padding: 0
|
|
1605
1605
|
};
|
|
1606
|
-
function
|
|
1606
|
+
function Ar({
|
|
1607
1607
|
isShow: t,
|
|
1608
1608
|
onHide: r,
|
|
1609
1609
|
menus: i,
|
|
1610
1610
|
selectedGroupId: o,
|
|
1611
1611
|
onSelect: n
|
|
1612
1612
|
}) {
|
|
1613
|
-
const [l, h] =
|
|
1613
|
+
const [l, h] = E(void 0), a = (d) => {
|
|
1614
1614
|
n(d), r();
|
|
1615
|
-
}, u =
|
|
1615
|
+
}, u = it[0];
|
|
1616
1616
|
return /* @__PURE__ */ e(
|
|
1617
|
-
|
|
1617
|
+
ht,
|
|
1618
1618
|
{
|
|
1619
1619
|
isShow: t,
|
|
1620
1620
|
onHide: r,
|
|
@@ -1624,7 +1624,7 @@ function Hr({
|
|
|
1624
1624
|
boxShadow: "none",
|
|
1625
1625
|
border: "none"
|
|
1626
1626
|
},
|
|
1627
|
-
children: /* @__PURE__ */ e(
|
|
1627
|
+
children: /* @__PURE__ */ e(ut, { children: /* @__PURE__ */ s(
|
|
1628
1628
|
"div",
|
|
1629
1629
|
{
|
|
1630
1630
|
style: {
|
|
@@ -1641,14 +1641,14 @@ function Hr({
|
|
|
1641
1641
|
onMouseLeave: () => h(void 0),
|
|
1642
1642
|
style: Nt,
|
|
1643
1643
|
children: [
|
|
1644
|
-
/* @__PURE__ */ e("div", { style:
|
|
1644
|
+
/* @__PURE__ */ e("div", { style: zt(o === null, l === "all", u), children: /* @__PURE__ */ e("div", { style: { color: u.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(w, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
|
|
1645
1645
|
/* @__PURE__ */ e("span", { style: Tt, children: "Semua" })
|
|
1646
1646
|
]
|
|
1647
1647
|
}
|
|
1648
1648
|
),
|
|
1649
1649
|
i.map((d, g) => {
|
|
1650
|
-
var
|
|
1651
|
-
const m = o === d.id, y = l === d.id, b = ((
|
|
1650
|
+
var x;
|
|
1651
|
+
const m = o === d.id, y = l === d.id, b = ((x = d.items[0]) == null ? void 0 : x.icon) ?? "Grid", k = it[(g + 1) % it.length];
|
|
1652
1652
|
return /* @__PURE__ */ s(
|
|
1653
1653
|
"button",
|
|
1654
1654
|
{
|
|
@@ -1657,7 +1657,7 @@ function Hr({
|
|
|
1657
1657
|
onMouseLeave: () => h(void 0),
|
|
1658
1658
|
style: Nt,
|
|
1659
1659
|
children: [
|
|
1660
|
-
/* @__PURE__ */ e("div", { style:
|
|
1660
|
+
/* @__PURE__ */ e("div", { style: zt(m, y, k), children: /* @__PURE__ */ e("div", { style: { color: k.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(w, { name: b, size: "lg", style: { width: 32, height: 32 } }) }) }),
|
|
1661
1661
|
/* @__PURE__ */ e("span", { style: Tt, children: d.name })
|
|
1662
1662
|
]
|
|
1663
1663
|
},
|
|
@@ -1670,11 +1670,11 @@ function Hr({
|
|
|
1670
1670
|
}
|
|
1671
1671
|
);
|
|
1672
1672
|
}
|
|
1673
|
-
function
|
|
1673
|
+
function Nn({
|
|
1674
1674
|
onSelect: t,
|
|
1675
1675
|
"aria-label": r = "Pilih module"
|
|
1676
1676
|
} = {}) {
|
|
1677
|
-
const i =
|
|
1677
|
+
const i = Yt(), o = yt(), { selectedGroupId: n, setSelectedGroupId: l } = er(), [h, a] = E(!1), u = (d) => {
|
|
1678
1678
|
var g;
|
|
1679
1679
|
if (l(d), d !== null) {
|
|
1680
1680
|
const m = i.menus.find((b) => b.id === d), y = (g = m == null ? void 0 : m.items[0]) == null ? void 0 : g.to;
|
|
@@ -1727,7 +1727,7 @@ function Zn({
|
|
|
1727
1727
|
)
|
|
1728
1728
|
] }),
|
|
1729
1729
|
/* @__PURE__ */ e(
|
|
1730
|
-
|
|
1730
|
+
Ar,
|
|
1731
1731
|
{
|
|
1732
1732
|
isShow: h,
|
|
1733
1733
|
onHide: () => a(!1),
|
|
@@ -1738,7 +1738,7 @@ function Zn({
|
|
|
1738
1738
|
)
|
|
1739
1739
|
] });
|
|
1740
1740
|
}
|
|
1741
|
-
const
|
|
1741
|
+
const Rr = (t, r) => {
|
|
1742
1742
|
const i = [];
|
|
1743
1743
|
if (r === 0)
|
|
1744
1744
|
return i.push(t), i;
|
|
@@ -1747,7 +1747,7 @@ const zr = (t, r) => {
|
|
|
1747
1747
|
i.push(n);
|
|
1748
1748
|
}
|
|
1749
1749
|
return i;
|
|
1750
|
-
},
|
|
1750
|
+
}, Vr = xe(
|
|
1751
1751
|
({
|
|
1752
1752
|
value: t,
|
|
1753
1753
|
label: r,
|
|
@@ -1756,14 +1756,14 @@ const zr = (t, r) => {
|
|
|
1756
1756
|
lastIndex: n,
|
|
1757
1757
|
labelAlign: l = "top"
|
|
1758
1758
|
}) => {
|
|
1759
|
-
const h =
|
|
1759
|
+
const h = me(
|
|
1760
1760
|
() => ({
|
|
1761
1761
|
padding: 0,
|
|
1762
1762
|
paddingBottom: n ? 0 : 12,
|
|
1763
1763
|
verticalAlign: l
|
|
1764
1764
|
}),
|
|
1765
1765
|
[n, l]
|
|
1766
|
-
), a =
|
|
1766
|
+
), a = me(
|
|
1767
1767
|
() => ({
|
|
1768
1768
|
padding: 0,
|
|
1769
1769
|
paddingRight: 12,
|
|
@@ -1772,15 +1772,15 @@ const zr = (t, r) => {
|
|
|
1772
1772
|
verticalAlign: l
|
|
1773
1773
|
}),
|
|
1774
1774
|
[n, l]
|
|
1775
|
-
), u = () => typeof r == "string" ? /* @__PURE__ */ e(
|
|
1776
|
-
return /* @__PURE__ */ s(
|
|
1775
|
+
), u = () => typeof r == "string" ? /* @__PURE__ */ e(v, { fontWeight: "medium", color: "subtlest", children: r }) : r, d = () => typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ e(v, { color: "primary", fontWeight: "medium", children: t }) : t, g = () => typeof i == "string" || typeof i == "number" ? /* @__PURE__ */ e(v, { fontWeight: "medium", color: "subtlest", children: i }) : i;
|
|
1776
|
+
return /* @__PURE__ */ s(ze, { children: [
|
|
1777
1777
|
/* @__PURE__ */ e(Se, { style: h, width: o, children: u() }),
|
|
1778
1778
|
i ? /* @__PURE__ */ e(Se, { style: a, width: 24, children: g() }) : null,
|
|
1779
1779
|
/* @__PURE__ */ e(Se, { style: h, children: d() })
|
|
1780
1780
|
] });
|
|
1781
1781
|
}
|
|
1782
|
-
),
|
|
1783
|
-
|
|
1782
|
+
), zr = xe(({ fields: t, separator: r, labelWidth: i }) => /* @__PURE__ */ e(qt, { children: t.map((o, n) => /* @__PURE__ */ e(
|
|
1783
|
+
Vr,
|
|
1784
1784
|
{
|
|
1785
1785
|
separator: r,
|
|
1786
1786
|
labelWidth: i,
|
|
@@ -1788,7 +1788,7 @@ const zr = (t, r) => {
|
|
|
1788
1788
|
...o
|
|
1789
1789
|
},
|
|
1790
1790
|
`field-group-field-${n}`
|
|
1791
|
-
)) })),
|
|
1791
|
+
)) })), On = xe(
|
|
1792
1792
|
({
|
|
1793
1793
|
maxRow: t = 0,
|
|
1794
1794
|
maxColumn: r = 2,
|
|
@@ -1797,8 +1797,8 @@ const zr = (t, r) => {
|
|
|
1797
1797
|
labelWidth: n = 150,
|
|
1798
1798
|
bordered: l = !1
|
|
1799
1799
|
}) => {
|
|
1800
|
-
const h =
|
|
1801
|
-
() =>
|
|
1800
|
+
const h = me(
|
|
1801
|
+
() => Rr(o, t),
|
|
1802
1802
|
[o, t]
|
|
1803
1803
|
), a = h.length > 2, u = () => {
|
|
1804
1804
|
switch (r) {
|
|
@@ -1834,7 +1834,7 @@ const zr = (t, r) => {
|
|
|
1834
1834
|
width: a ? u() : void 0,
|
|
1835
1835
|
marginBottom: a ? "lg" : void 0,
|
|
1836
1836
|
children: /* @__PURE__ */ e(
|
|
1837
|
-
|
|
1837
|
+
zr,
|
|
1838
1838
|
{
|
|
1839
1839
|
labelWidth: n,
|
|
1840
1840
|
fields: d,
|
|
@@ -1848,7 +1848,7 @@ const zr = (t, r) => {
|
|
|
1848
1848
|
);
|
|
1849
1849
|
}
|
|
1850
1850
|
), Tr = ({ backButton: t }) => {
|
|
1851
|
-
const [r, i] =
|
|
1851
|
+
const [r, i] = E(!1), o = (t == null ? void 0 : t.iconColor) ?? "var(--sa-text-subtle, #8c8f97)", n = (t == null ? void 0 : t.textColor) ?? "var(--sa-text-subtle, #8c8f97)", l = (t == null ? void 0 : t.hoverIconColor) ?? "var(--sa-text-subtle, #8c8f97)", h = (t == null ? void 0 : t.hoverTextColor) ?? "var(--sa-text-primary, #292a2e)";
|
|
1852
1852
|
return /* @__PURE__ */ s(
|
|
1853
1853
|
f,
|
|
1854
1854
|
{
|
|
@@ -1871,7 +1871,7 @@ const zr = (t, r) => {
|
|
|
1871
1871
|
}
|
|
1872
1872
|
),
|
|
1873
1873
|
/* @__PURE__ */ e(
|
|
1874
|
-
|
|
1874
|
+
v,
|
|
1875
1875
|
{
|
|
1876
1876
|
variant: "sub-h3",
|
|
1877
1877
|
style: {
|
|
@@ -1896,15 +1896,15 @@ const zr = (t, r) => {
|
|
|
1896
1896
|
containerProps: a,
|
|
1897
1897
|
headerProps: u
|
|
1898
1898
|
}) => {
|
|
1899
|
-
const d = oe("lg"), g =
|
|
1899
|
+
const d = oe("lg"), g = yt(), m = Te(), y = t == null ? void 0 : t.show, b = () => {
|
|
1900
1900
|
if (typeof (t == null ? void 0 : t.onClick) == "function") {
|
|
1901
1901
|
t.onClick();
|
|
1902
1902
|
return;
|
|
1903
1903
|
}
|
|
1904
1904
|
g(-1, { replace: !0 });
|
|
1905
|
-
},
|
|
1905
|
+
}, k = () => l ? st(l) ? l : /* @__PURE__ */ e(f, { direction: "row", gap: "lg", children: l.map(
|
|
1906
1906
|
({ title: T, icon: U, buttonProps: L, onClick: ae }, J) => !T && !U ? null : /* @__PURE__ */ e(
|
|
1907
|
-
|
|
1907
|
+
O,
|
|
1908
1908
|
{
|
|
1909
1909
|
fullWidth: !d,
|
|
1910
1910
|
iconLeft: U ? /* @__PURE__ */ e(w, { name: U, size: "md" }) : void 0,
|
|
@@ -1914,19 +1914,19 @@ const zr = (t, r) => {
|
|
|
1914
1914
|
},
|
|
1915
1915
|
`action-${J}`
|
|
1916
1916
|
)
|
|
1917
|
-
) }) : null,
|
|
1917
|
+
) }) : null, x = () => {
|
|
1918
1918
|
const T = /* @__PURE__ */ e(Tr, { backButton: t });
|
|
1919
1919
|
return t != null && t.navigateTo ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(
|
|
1920
|
-
|
|
1920
|
+
qe,
|
|
1921
1921
|
{
|
|
1922
1922
|
to: t.navigateTo,
|
|
1923
1923
|
replace: !0,
|
|
1924
1924
|
style: { textDecoration: "none" },
|
|
1925
1925
|
children: T
|
|
1926
1926
|
}
|
|
1927
|
-
) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(
|
|
1928
|
-
},
|
|
1929
|
-
const T = !!r, U =
|
|
1927
|
+
) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Ct, { onClick: b, children: T }) });
|
|
1928
|
+
}, R = () => {
|
|
1929
|
+
const T = !!r, U = st(l) ? !0 : Array.isArray(l) && l.length > 0;
|
|
1930
1930
|
return !T && !U && !y ? null : /* @__PURE__ */ s(
|
|
1931
1931
|
f,
|
|
1932
1932
|
{
|
|
@@ -1935,7 +1935,7 @@ const zr = (t, r) => {
|
|
|
1935
1935
|
paddingInline: u == null ? void 0 : u.paddingInline,
|
|
1936
1936
|
...u,
|
|
1937
1937
|
children: [
|
|
1938
|
-
y &&
|
|
1938
|
+
y && x(),
|
|
1939
1939
|
(T || U) && /* @__PURE__ */ s(
|
|
1940
1940
|
f,
|
|
1941
1941
|
{
|
|
@@ -1945,10 +1945,10 @@ const zr = (t, r) => {
|
|
|
1945
1945
|
align: "center",
|
|
1946
1946
|
children: [
|
|
1947
1947
|
T ? typeof r == "string" ? /* @__PURE__ */ s(f, { direction: "row", gap: "lg", align: "center", children: [
|
|
1948
|
-
/* @__PURE__ */ e(
|
|
1948
|
+
/* @__PURE__ */ e(v, { variant: "h2", fontWeight: "semibold", fontFamily: "Poppins", children: r }),
|
|
1949
1949
|
i && /* @__PURE__ */ e(Le, { border: !0, size: "lg", text: i, ...h })
|
|
1950
1950
|
] }) : r : null,
|
|
1951
|
-
|
|
1951
|
+
k()
|
|
1952
1952
|
]
|
|
1953
1953
|
}
|
|
1954
1954
|
)
|
|
@@ -1968,16 +1968,16 @@ const zr = (t, r) => {
|
|
|
1968
1968
|
animation: "pageLayoutEnter 320ms cubic-bezier(0.16, 1, 0.3, 1) backwards"
|
|
1969
1969
|
},
|
|
1970
1970
|
children: [
|
|
1971
|
-
n &&
|
|
1971
|
+
n && R(),
|
|
1972
1972
|
Z()
|
|
1973
1973
|
]
|
|
1974
1974
|
},
|
|
1975
1975
|
m.pathname
|
|
1976
1976
|
);
|
|
1977
|
-
},
|
|
1977
|
+
}, _n = xe(Nr), Or = {
|
|
1978
1978
|
icon: "Cross",
|
|
1979
1979
|
title: ""
|
|
1980
|
-
}, _r = "calc(100vw - 16px)", Ot = (t) => t == null ? void 0 : `min(${typeof t == "number" ? `${t}px` : t}, ${_r})`, jr =
|
|
1980
|
+
}, _r = "calc(100vw - 16px)", Ot = (t) => t == null ? void 0 : `min(${typeof t == "number" ? `${t}px` : t}, ${_r})`, jr = mt(
|
|
1981
1981
|
({
|
|
1982
1982
|
onHide: t,
|
|
1983
1983
|
show: r,
|
|
@@ -1991,7 +1991,7 @@ const zr = (t, r) => {
|
|
|
1991
1991
|
}, d) => {
|
|
1992
1992
|
const g = Ot(h ?? a), m = Ot(h ?? u);
|
|
1993
1993
|
return /* @__PURE__ */ e(
|
|
1994
|
-
|
|
1994
|
+
lr,
|
|
1995
1995
|
{
|
|
1996
1996
|
blur: i,
|
|
1997
1997
|
isShow: r,
|
|
@@ -2023,7 +2023,7 @@ const zr = (t, r) => {
|
|
|
2023
2023
|
cursor: "pointer"
|
|
2024
2024
|
}
|
|
2025
2025
|
),
|
|
2026
|
-
l.title ? /* @__PURE__ */ e(
|
|
2026
|
+
l.title ? /* @__PURE__ */ e(v, { fontFamily: "Poppins", fontSize: "md", color: "subtlest", children: l.title }) : null
|
|
2027
2027
|
]
|
|
2028
2028
|
}
|
|
2029
2029
|
) : null,
|
|
@@ -2032,7 +2032,7 @@ const zr = (t, r) => {
|
|
|
2032
2032
|
}
|
|
2033
2033
|
);
|
|
2034
2034
|
}
|
|
2035
|
-
),
|
|
2035
|
+
), tr = xe(
|
|
2036
2036
|
({ children: t, borderBottom: r = !0, padding: i = !0 }) => {
|
|
2037
2037
|
const o = oe("lg");
|
|
2038
2038
|
return /* @__PURE__ */ e(
|
|
@@ -2048,7 +2048,7 @@ const zr = (t, r) => {
|
|
|
2048
2048
|
}
|
|
2049
2049
|
);
|
|
2050
2050
|
}
|
|
2051
|
-
),
|
|
2051
|
+
), rr = xe(
|
|
2052
2052
|
({ children: t, borderTop: r = !0, padding: i = !0 }) => {
|
|
2053
2053
|
const o = oe("lg");
|
|
2054
2054
|
return /* @__PURE__ */ e(
|
|
@@ -2064,7 +2064,7 @@ const zr = (t, r) => {
|
|
|
2064
2064
|
}
|
|
2065
2065
|
);
|
|
2066
2066
|
}
|
|
2067
|
-
), Zr =
|
|
2067
|
+
), Zr = xe(
|
|
2068
2068
|
({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
2069
2069
|
f,
|
|
2070
2070
|
{
|
|
@@ -2076,7 +2076,7 @@ const zr = (t, r) => {
|
|
|
2076
2076
|
children: t
|
|
2077
2077
|
}
|
|
2078
2078
|
)
|
|
2079
|
-
),
|
|
2079
|
+
), jn = xe(
|
|
2080
2080
|
({
|
|
2081
2081
|
children: t,
|
|
2082
2082
|
title: r,
|
|
@@ -2092,9 +2092,9 @@ const zr = (t, r) => {
|
|
|
2092
2092
|
variantTag: m = "info"
|
|
2093
2093
|
}) => {
|
|
2094
2094
|
const y = oe("lg"), b = () => i ? /* @__PURE__ */ s(f, { direction: "row", gap: "sm", align: "center", children: [
|
|
2095
|
-
/* @__PURE__ */ e(
|
|
2095
|
+
/* @__PURE__ */ e(v, { fontWeight: "medium", children: r }),
|
|
2096
2096
|
/* @__PURE__ */ e(Le, { border: !0, text: i, variant: m })
|
|
2097
|
-
] }) : /* @__PURE__ */ e(
|
|
2097
|
+
] }) : /* @__PURE__ */ e(v, { fontWeight: "medium", children: r }), k = () => n || /* @__PURE__ */ s(
|
|
2098
2098
|
f,
|
|
2099
2099
|
{
|
|
2100
2100
|
direction: "row",
|
|
@@ -2113,7 +2113,7 @@ const zr = (t, r) => {
|
|
|
2113
2113
|
)
|
|
2114
2114
|
]
|
|
2115
2115
|
}
|
|
2116
|
-
),
|
|
2116
|
+
), x = !!(n || r || o);
|
|
2117
2117
|
return /* @__PURE__ */ s(
|
|
2118
2118
|
f,
|
|
2119
2119
|
{
|
|
@@ -2129,97 +2129,28 @@ const zr = (t, r) => {
|
|
|
2129
2129
|
...(a == null ? void 0 : a.style) ?? {}
|
|
2130
2130
|
},
|
|
2131
2131
|
children: [
|
|
2132
|
-
n !== null &&
|
|
2132
|
+
n !== null && x ? /* @__PURE__ */ e(tr, { ...d, children: k() }) : null,
|
|
2133
2133
|
/* @__PURE__ */ e(Zr, { ...u, children: t }),
|
|
2134
|
-
l ? /* @__PURE__ */ e(
|
|
2134
|
+
l ? /* @__PURE__ */ e(rr, { ...g, children: l }) : null
|
|
2135
2135
|
]
|
|
2136
2136
|
}
|
|
2137
2137
|
);
|
|
2138
2138
|
}
|
|
2139
|
-
), $r = "
|
|
2140
|
-
|
|
2141
|
-
|
|
2142
|
-
|
|
2143
|
-
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2147
|
-
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
cursor: "pointer",
|
|
2153
|
-
onClick: r,
|
|
2154
|
-
onMouseEnter: () => o($r),
|
|
2155
|
-
borderRadius: "rounded-md",
|
|
2156
|
-
onMouseLeave: () => o(""),
|
|
2157
|
-
style: { backgroundColor: i },
|
|
2158
|
-
children: t
|
|
2159
|
-
}
|
|
2160
|
-
);
|
|
2161
|
-
}, qr = ge(Gr), Ur = ({
|
|
2162
|
-
icon: t,
|
|
2163
|
-
items: r = [],
|
|
2164
|
-
style: i,
|
|
2165
|
-
triggerStyle: o,
|
|
2166
|
-
containerStyle: n,
|
|
2167
|
-
position: l = "bottom-right",
|
|
2168
|
-
buttonProps: h,
|
|
2169
|
-
iconProps: a,
|
|
2170
|
-
variant: u = "default"
|
|
2171
|
-
}) => {
|
|
2172
|
-
const d = fe(
|
|
2173
|
-
() => ({
|
|
2174
|
-
zIndex: 10,
|
|
2175
|
-
width: "150px",
|
|
2176
|
-
...n
|
|
2177
|
-
}),
|
|
2178
|
-
[n]
|
|
2179
|
-
);
|
|
2180
|
-
return /* @__PURE__ */ s(qt, { position: l, style: i, children: [
|
|
2181
|
-
/* @__PURE__ */ e(Ge, { style: o, children: /* @__PURE__ */ e(N, { size: "sm", secondary: !0, ...h, children: /* @__PURE__ */ e(w, { name: t, ...a }) }) }),
|
|
2182
|
-
/* @__PURE__ */ e(Ut, { style: d, children: r.map((g, m) => u === "outline-button" ? /* @__PURE__ */ e(Jt, { children: /* @__PURE__ */ s(
|
|
2183
|
-
N,
|
|
2184
|
-
{
|
|
2185
|
-
size: "sm",
|
|
2186
|
-
secondary: !0,
|
|
2187
|
-
fullWidth: !0,
|
|
2188
|
-
onClick: g.onClick,
|
|
2189
|
-
...g.buttonProps,
|
|
2190
|
-
children: [
|
|
2191
|
-
/* @__PURE__ */ e(w, { name: g.icon, size: "md", ...g.iconProps }),
|
|
2192
|
-
/* @__PURE__ */ e(x, { fontSize: "sm", color: "primary", ...g.textProps, children: g.label })
|
|
2193
|
-
]
|
|
2194
|
-
}
|
|
2195
|
-
) }, g.id || m) : /* @__PURE__ */ s(
|
|
2196
|
-
qr,
|
|
2197
|
-
{
|
|
2198
|
-
onClick: g.onClick,
|
|
2199
|
-
...g.buttonProps,
|
|
2200
|
-
children: [
|
|
2201
|
-
/* @__PURE__ */ e(w, { name: g.icon, size: "md", ...g.iconProps }),
|
|
2202
|
-
/* @__PURE__ */ e(x, { fontSize: "sm", color: "primary", ...g.textProps, children: g.label })
|
|
2203
|
-
]
|
|
2204
|
-
},
|
|
2205
|
-
g.id || m
|
|
2206
|
-
)) })
|
|
2207
|
-
] });
|
|
2208
|
-
}, Un = ge(Ur), Jr = (t) => /* @__PURE__ */ e(x, { variant: "h1", children: t.children, ...t.props }), Pr = (t) => /* @__PURE__ */ e(x, { variant: "h2", children: t.children, ...t.props }), Qr = (t) => /* @__PURE__ */ e(x, { variant: "h3", children: t.children, ...t.props }), Yr = (t) => /* @__PURE__ */ e(x, { variant: "h4", children: t.children, ...t.props }), Xr = (t) => /* @__PURE__ */ e(x, { variant: "h5", children: t.children, ...t.props }), Kr = (t) => /* @__PURE__ */ e(x, { variant: "h6", children: t.children, ...t.props }), ei = (t) => /* @__PURE__ */ e(x, { variant: "sub-h1", children: t.children, ...t.props }), ti = (t) => /* @__PURE__ */ e(x, { variant: "sub-h2", children: t.children, ...t.props }), ri = (t) => /* @__PURE__ */ e(x, { variant: "sub-h3", children: t.children, ...t.props }), ii = (t) => /* @__PURE__ */ e(x, { variant: "body-1", children: t.children, ...t.props }), ni = (t) => /* @__PURE__ */ e(x, { variant: "body-2", children: t.children, ...t.props }), oi = (t) => /* @__PURE__ */ e(x, { variant: "body-3", children: t.children, ...t.props }), xe = {
|
|
2209
|
-
H1: Jr,
|
|
2210
|
-
H2: Pr,
|
|
2211
|
-
H3: Qr,
|
|
2212
|
-
H4: Yr,
|
|
2213
|
-
H5: Xr,
|
|
2214
|
-
H6: Kr,
|
|
2215
|
-
SubH1: ei,
|
|
2216
|
-
SubH2: ti,
|
|
2217
|
-
SubH3: ri,
|
|
2218
|
-
Body1: ii,
|
|
2219
|
-
Body2: ni,
|
|
2220
|
-
Body3: oi
|
|
2139
|
+
), $r = (t) => /* @__PURE__ */ e(v, { variant: "h1", children: t.children, ...t.props }), Gr = (t) => /* @__PURE__ */ e(v, { variant: "h2", children: t.children, ...t.props }), qr = (t) => /* @__PURE__ */ e(v, { variant: "h3", children: t.children, ...t.props }), Ur = (t) => /* @__PURE__ */ e(v, { variant: "h4", children: t.children, ...t.props }), Jr = (t) => /* @__PURE__ */ e(v, { variant: "h5", children: t.children, ...t.props }), Qr = (t) => /* @__PURE__ */ e(v, { variant: "h6", children: t.children, ...t.props }), Pr = (t) => /* @__PURE__ */ e(v, { variant: "sub-h1", children: t.children, ...t.props }), Yr = (t) => /* @__PURE__ */ e(v, { variant: "sub-h2", children: t.children, ...t.props }), Xr = (t) => /* @__PURE__ */ e(v, { variant: "sub-h3", children: t.children, ...t.props }), Kr = (t) => /* @__PURE__ */ e(v, { variant: "body-1", children: t.children, ...t.props }), ei = (t) => /* @__PURE__ */ e(v, { variant: "body-2", children: t.children, ...t.props }), ti = (t) => /* @__PURE__ */ e(v, { variant: "body-3", children: t.children, ...t.props }), pe = {
|
|
2140
|
+
H1: $r,
|
|
2141
|
+
H2: Gr,
|
|
2142
|
+
H3: qr,
|
|
2143
|
+
H4: Ur,
|
|
2144
|
+
H5: Jr,
|
|
2145
|
+
H6: Qr,
|
|
2146
|
+
SubH1: Pr,
|
|
2147
|
+
SubH2: Yr,
|
|
2148
|
+
SubH3: Xr,
|
|
2149
|
+
Body1: Kr,
|
|
2150
|
+
Body2: ei,
|
|
2151
|
+
Body3: ti
|
|
2221
2152
|
}, vt = () => {
|
|
2222
|
-
const [t, r] =
|
|
2153
|
+
const [t, r] = Pe(), i = Je(t.toString()), o = Jt(), n = Te(), l = o.id;
|
|
2223
2154
|
return {
|
|
2224
2155
|
// query params
|
|
2225
2156
|
setSearchParams: r,
|
|
@@ -2236,7 +2167,7 @@ const zr = (t, r) => {
|
|
|
2236
2167
|
id: l,
|
|
2237
2168
|
hasId: !!l
|
|
2238
2169
|
};
|
|
2239
|
-
},
|
|
2170
|
+
}, ri = (t) => JSON.stringify(t), ii = (t) => JSON.stringify(t), ni = (t) => JSON.stringify(t), oi = (t) => JSON.stringify(t), li = (t) => t, ci = (t) => JSON.stringify(t), _t = ({
|
|
2240
2171
|
value: t,
|
|
2241
2172
|
name: r,
|
|
2242
2173
|
type: i,
|
|
@@ -2251,23 +2182,23 @@ const zr = (t, r) => {
|
|
|
2251
2182
|
let d;
|
|
2252
2183
|
switch (i) {
|
|
2253
2184
|
case "search":
|
|
2254
|
-
d =
|
|
2185
|
+
d = li(t);
|
|
2255
2186
|
break;
|
|
2256
2187
|
case "dropdown":
|
|
2257
2188
|
case "dropdown-multiple":
|
|
2258
|
-
d =
|
|
2189
|
+
d = ri(t);
|
|
2259
2190
|
break;
|
|
2260
2191
|
case "radio":
|
|
2261
|
-
d =
|
|
2192
|
+
d = ii(t);
|
|
2262
2193
|
break;
|
|
2263
2194
|
case "date-range":
|
|
2264
|
-
d =
|
|
2195
|
+
d = ni(t);
|
|
2265
2196
|
break;
|
|
2266
2197
|
case "advanced-date-range":
|
|
2267
|
-
d =
|
|
2198
|
+
d = ci(t);
|
|
2268
2199
|
break;
|
|
2269
2200
|
case "date":
|
|
2270
|
-
d =
|
|
2201
|
+
d = oi(t);
|
|
2271
2202
|
break;
|
|
2272
2203
|
default:
|
|
2273
2204
|
d = t;
|
|
@@ -2282,15 +2213,15 @@ const zr = (t, r) => {
|
|
|
2282
2213
|
const b = {
|
|
2283
2214
|
...y,
|
|
2284
2215
|
[a]: JSON.stringify(m)
|
|
2285
|
-
},
|
|
2216
|
+
}, k = new URLSearchParams(l).toString(), x = new URLSearchParams(
|
|
2286
2217
|
b
|
|
2287
2218
|
).toString();
|
|
2288
|
-
if (
|
|
2219
|
+
if (k === x)
|
|
2289
2220
|
return;
|
|
2290
2221
|
n(b);
|
|
2291
2222
|
}
|
|
2292
2223
|
}
|
|
2293
|
-
},
|
|
2224
|
+
}, nt = ({
|
|
2294
2225
|
name: t,
|
|
2295
2226
|
filterKey: r = "filter",
|
|
2296
2227
|
searchParams: i,
|
|
@@ -2298,7 +2229,7 @@ const zr = (t, r) => {
|
|
|
2298
2229
|
}) => {
|
|
2299
2230
|
const n = i.get(r) || void 0, l = n && typeof n == "string" ? JSON.parse(n) : void 0, h = l ? l[t] : void 0;
|
|
2300
2231
|
return o === "label" && h ? JSON.parse(h)[0].label : o === "value" && h ? JSON.parse(h)[0].value : h;
|
|
2301
|
-
},
|
|
2232
|
+
}, Zn = ({
|
|
2302
2233
|
name: t,
|
|
2303
2234
|
filterKey: r = "filter",
|
|
2304
2235
|
searchParams: i,
|
|
@@ -2306,7 +2237,7 @@ const zr = (t, r) => {
|
|
|
2306
2237
|
}) => {
|
|
2307
2238
|
const n = i.get(r) || void 0, l = n && typeof n == "string" ? JSON.parse(n) : void 0, h = l ? l[t] : void 0;
|
|
2308
2239
|
return o === "label" && h ? JSON.parse(h).map((a) => a.label) : o === "value" && h ? JSON.parse(h).map((a) => a.value) : o === "array" && h ? JSON.parse(h) : h;
|
|
2309
|
-
},
|
|
2240
|
+
}, $n = ({
|
|
2310
2241
|
name: t,
|
|
2311
2242
|
filterKey: r = "filter",
|
|
2312
2243
|
searchParams: i,
|
|
@@ -2314,10 +2245,10 @@ const zr = (t, r) => {
|
|
|
2314
2245
|
}) => {
|
|
2315
2246
|
const n = i.get(r) || void 0, l = n && typeof n == "string" ? JSON.parse(n) : void 0, h = l ? l[t] : void 0;
|
|
2316
2247
|
return o === "id" && h ? JSON.parse(h).id : o === "label" && h ? JSON.parse(h).label : o === "value" && h ? JSON.parse(h).value : h;
|
|
2317
|
-
},
|
|
2248
|
+
}, ai = (t, r, i) => {
|
|
2318
2249
|
const o = r.get(i || "filter") || void 0, n = o && typeof o == "string" ? JSON.parse(o) : void 0;
|
|
2319
2250
|
return n ? n[t] : void 0;
|
|
2320
|
-
},
|
|
2251
|
+
}, Gn = ({
|
|
2321
2252
|
name: t,
|
|
2322
2253
|
filterKey: r = "filter",
|
|
2323
2254
|
searchParams: i
|
|
@@ -2327,46 +2258,46 @@ const zr = (t, r) => {
|
|
|
2327
2258
|
start: l ? JSON.parse(l).from : void 0,
|
|
2328
2259
|
end: l ? JSON.parse(l).to : void 0
|
|
2329
2260
|
};
|
|
2330
|
-
},
|
|
2261
|
+
}, qn = ({
|
|
2331
2262
|
name: t,
|
|
2332
2263
|
filterKey: r = "filter",
|
|
2333
2264
|
searchParams: i
|
|
2334
2265
|
}) => {
|
|
2335
2266
|
const o = i.get(r || "filter") || void 0, n = o && typeof o == "string" ? JSON.parse(o) : void 0, l = n ? n[t] : void 0;
|
|
2336
2267
|
return l ? JSON.parse(l) : void 0;
|
|
2337
|
-
},
|
|
2268
|
+
}, Un = (t, {
|
|
2338
2269
|
filterKey: r = "filter",
|
|
2339
2270
|
perPageKey: i = "perPage",
|
|
2340
2271
|
pageKey: o = "page"
|
|
2341
2272
|
}) => {
|
|
2342
2273
|
const n = t.get(r) || void 0, l = t.get(i) || void 0, h = t.get(o) || void 0;
|
|
2343
2274
|
return !!n || !!l || !!h;
|
|
2344
|
-
},
|
|
2275
|
+
}, si = ({
|
|
2345
2276
|
isOpen: t,
|
|
2346
2277
|
onClose: r,
|
|
2347
2278
|
filterKey: i,
|
|
2348
2279
|
pageKey: o,
|
|
2349
2280
|
filters: n
|
|
2350
2281
|
}) => {
|
|
2351
|
-
const { searchParams: l, setSearchParams: h, searchQueries: a } = vt(), [u, d] =
|
|
2282
|
+
const { searchParams: l, setSearchParams: h, searchQueries: a } = vt(), [u, d] = E({}), g = () => {
|
|
2352
2283
|
l.delete(i || "filter"), h(l);
|
|
2353
2284
|
}, m = (y, b) => {
|
|
2354
2285
|
switch (y.type) {
|
|
2355
2286
|
case "radio": {
|
|
2356
|
-
const { show:
|
|
2357
|
-
return
|
|
2287
|
+
const { show: k = !0 } = y;
|
|
2288
|
+
return k && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: y.title }) }, b);
|
|
2358
2289
|
}
|
|
2359
2290
|
case "dropdown": {
|
|
2360
|
-
const { show:
|
|
2361
|
-
return
|
|
2291
|
+
const { show: k = !0 } = y;
|
|
2292
|
+
return k && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: y.title }) }, b);
|
|
2362
2293
|
}
|
|
2363
2294
|
case "date-range":
|
|
2364
2295
|
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: y.title }) }, b);
|
|
2365
2296
|
case "date":
|
|
2366
2297
|
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: y.title }) }, b);
|
|
2367
2298
|
case "dropdown-multiple": {
|
|
2368
|
-
const { show:
|
|
2369
|
-
return
|
|
2299
|
+
const { show: k = !0 } = y;
|
|
2300
|
+
return k && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: y.title }) }, b);
|
|
2370
2301
|
}
|
|
2371
2302
|
default:
|
|
2372
2303
|
return null;
|
|
@@ -2386,7 +2317,7 @@ const zr = (t, r) => {
|
|
|
2386
2317
|
] }),
|
|
2387
2318
|
n == null ? void 0 : n.map((y, b) => m(y, b))
|
|
2388
2319
|
] }) });
|
|
2389
|
-
},
|
|
2320
|
+
}, di = ({
|
|
2390
2321
|
searchKey: t = "q",
|
|
2391
2322
|
statusKey: r = "status",
|
|
2392
2323
|
searchPlaceholder: i = "Search",
|
|
@@ -2401,46 +2332,46 @@ const zr = (t, r) => {
|
|
|
2401
2332
|
filterConfigs: m,
|
|
2402
2333
|
buttonToggleProps: y,
|
|
2403
2334
|
position: b = "right",
|
|
2404
|
-
titleSearchLabel:
|
|
2405
|
-
withTitleLabels:
|
|
2335
|
+
titleSearchLabel: k = "Work Order",
|
|
2336
|
+
withTitleLabels: x = !1
|
|
2406
2337
|
}) => {
|
|
2407
|
-
const Z = (y == null ? void 0 : y.isShowLabel) ?? !0, [T, U] =
|
|
2408
|
-
ae((
|
|
2409
|
-
}, { searchParams:
|
|
2338
|
+
const Z = (y == null ? void 0 : y.isShowLabel) ?? !0, [T, U] = E(!1), [L, ae] = E(0), J = () => {
|
|
2339
|
+
ae((z) => z + 1);
|
|
2340
|
+
}, { searchParams: A, setSearchParams: Q, getQueryParam: le } = vt(), ce = Je(A.toString()), G = ai(t, A, a) || "", [P, ee] = E(G), se = le(a), X = !!(se && !(() => {
|
|
2410
2341
|
if (se)
|
|
2411
2342
|
try {
|
|
2412
|
-
const
|
|
2413
|
-
return Object.keys(
|
|
2414
|
-
} catch (
|
|
2415
|
-
console.error("Filter parameter is not a valid JSON:",
|
|
2343
|
+
const z = JSON.parse(se);
|
|
2344
|
+
return Object.keys(z).length === 1 && z[t] === "";
|
|
2345
|
+
} catch (z) {
|
|
2346
|
+
console.error("Filter parameter is not a valid JSON:", z);
|
|
2416
2347
|
}
|
|
2417
2348
|
return !1;
|
|
2418
|
-
})()),
|
|
2349
|
+
})()), V = oe("md");
|
|
2419
2350
|
return $(() => {
|
|
2420
2351
|
ee(G);
|
|
2421
2352
|
}, [G]), $(() => {
|
|
2422
|
-
if (
|
|
2353
|
+
if (P === G)
|
|
2423
2354
|
return;
|
|
2424
|
-
const
|
|
2355
|
+
const z = window.setTimeout(() => {
|
|
2425
2356
|
_t({
|
|
2426
|
-
value:
|
|
2357
|
+
value: P,
|
|
2427
2358
|
name: t,
|
|
2428
2359
|
type: "search",
|
|
2429
2360
|
searchQueries: ce,
|
|
2430
|
-
setSearchParams:
|
|
2361
|
+
setSearchParams: Q,
|
|
2431
2362
|
filterKey: a,
|
|
2432
2363
|
pageKey: u
|
|
2433
2364
|
});
|
|
2434
2365
|
}, 350);
|
|
2435
2366
|
return () => {
|
|
2436
|
-
window.clearTimeout(
|
|
2367
|
+
window.clearTimeout(z);
|
|
2437
2368
|
};
|
|
2438
2369
|
}, [
|
|
2439
|
-
|
|
2370
|
+
P,
|
|
2440
2371
|
G,
|
|
2441
2372
|
t,
|
|
2442
2373
|
ce,
|
|
2443
|
-
|
|
2374
|
+
Q,
|
|
2444
2375
|
a,
|
|
2445
2376
|
u
|
|
2446
2377
|
]), /* @__PURE__ */ s(
|
|
@@ -2448,39 +2379,39 @@ const zr = (t, r) => {
|
|
|
2448
2379
|
{
|
|
2449
2380
|
gap: "md",
|
|
2450
2381
|
style: {
|
|
2451
|
-
flexDirection:
|
|
2382
|
+
flexDirection: V && b === "left" ? "row" : V && b === "right" ? "row-reverse" : "column"
|
|
2452
2383
|
},
|
|
2453
2384
|
align: "flex-end",
|
|
2454
2385
|
children: [
|
|
2455
2386
|
X && /* @__PURE__ */ e(f, { justify: "flex-end", children: /* @__PURE__ */ e(
|
|
2456
|
-
|
|
2387
|
+
O,
|
|
2457
2388
|
{
|
|
2458
2389
|
onClick: () => {
|
|
2459
|
-
const
|
|
2460
|
-
|
|
2390
|
+
const z = new URLSearchParams(A);
|
|
2391
|
+
z.delete(a), Q(z), ee(""), J(), g && g();
|
|
2461
2392
|
},
|
|
2462
2393
|
variant: "outline",
|
|
2463
2394
|
tone: "neutral",
|
|
2464
|
-
children: /* @__PURE__ */ e(
|
|
2395
|
+
children: /* @__PURE__ */ e(v, { color: "error", fontWeight: "semibold", children: "Reset" })
|
|
2465
2396
|
}
|
|
2466
2397
|
) }),
|
|
2467
|
-
n == null ? void 0 : n.map(({ minWidth:
|
|
2398
|
+
n == null ? void 0 : n.map(({ minWidth: z, content: K, title: fe, onClickContainer: ge }, Be) => /* @__PURE__ */ s(
|
|
2468
2399
|
f,
|
|
2469
2400
|
{
|
|
2470
2401
|
gap: "sm",
|
|
2471
|
-
onClick:
|
|
2402
|
+
onClick: ge,
|
|
2472
2403
|
style: {
|
|
2473
|
-
minWidth:
|
|
2404
|
+
minWidth: z
|
|
2474
2405
|
},
|
|
2475
2406
|
children: [
|
|
2476
|
-
|
|
2407
|
+
fe && /* @__PURE__ */ e(pe.SubH3, { children: fe }),
|
|
2477
2408
|
K
|
|
2478
2409
|
]
|
|
2479
2410
|
},
|
|
2480
2411
|
`extended-filter-${Be}-${L}`
|
|
2481
2412
|
)),
|
|
2482
2413
|
!!(m != null && m.length) && /* @__PURE__ */ e(
|
|
2483
|
-
|
|
2414
|
+
O,
|
|
2484
2415
|
{
|
|
2485
2416
|
primary: X,
|
|
2486
2417
|
secondary: !X,
|
|
@@ -2494,7 +2425,7 @@ const zr = (t, r) => {
|
|
|
2494
2425
|
}
|
|
2495
2426
|
}
|
|
2496
2427
|
),
|
|
2497
|
-
fullWidth: !
|
|
2428
|
+
fullWidth: !V,
|
|
2498
2429
|
onClick: () => U(!0),
|
|
2499
2430
|
children: Z ? "Filter" : void 0
|
|
2500
2431
|
}
|
|
@@ -2507,9 +2438,9 @@ const zr = (t, r) => {
|
|
|
2507
2438
|
minWidth: "126px"
|
|
2508
2439
|
},
|
|
2509
2440
|
children: [
|
|
2510
|
-
|
|
2441
|
+
x && /* @__PURE__ */ e(pe.SubH3, { children: "Status" }),
|
|
2511
2442
|
/* @__PURE__ */ e(
|
|
2512
|
-
|
|
2443
|
+
ft,
|
|
2513
2444
|
{
|
|
2514
2445
|
dropdownLists: [
|
|
2515
2446
|
{
|
|
@@ -2521,36 +2452,36 @@ const zr = (t, r) => {
|
|
|
2521
2452
|
value: "inactive"
|
|
2522
2453
|
}
|
|
2523
2454
|
],
|
|
2524
|
-
defaultValue:
|
|
2455
|
+
defaultValue: nt({
|
|
2525
2456
|
get: "value",
|
|
2526
2457
|
name: r,
|
|
2527
|
-
searchParams:
|
|
2458
|
+
searchParams: A,
|
|
2528
2459
|
filterKey: a
|
|
2529
2460
|
}) ? [
|
|
2530
2461
|
{
|
|
2531
|
-
label:
|
|
2462
|
+
label: nt({
|
|
2532
2463
|
get: "value",
|
|
2533
2464
|
name: r,
|
|
2534
|
-
searchParams:
|
|
2465
|
+
searchParams: A,
|
|
2535
2466
|
filterKey: a
|
|
2536
2467
|
}) === "active" ? "Active" : "InActive",
|
|
2537
|
-
value:
|
|
2468
|
+
value: nt({
|
|
2538
2469
|
get: "value",
|
|
2539
2470
|
name: r,
|
|
2540
|
-
searchParams:
|
|
2471
|
+
searchParams: A,
|
|
2541
2472
|
filterKey: a
|
|
2542
2473
|
})
|
|
2543
2474
|
}
|
|
2544
2475
|
] : [],
|
|
2545
|
-
onChange: (
|
|
2546
|
-
value:
|
|
2476
|
+
onChange: (z) => _t({
|
|
2477
|
+
value: z,
|
|
2547
2478
|
name: r,
|
|
2548
2479
|
type: "dropdown",
|
|
2549
2480
|
searchQueries: ce,
|
|
2550
|
-
setSearchParams:
|
|
2481
|
+
setSearchParams: Q,
|
|
2551
2482
|
filterKey: a
|
|
2552
2483
|
}),
|
|
2553
|
-
placeholder:
|
|
2484
|
+
placeholder: x ? "All" : "All Status"
|
|
2554
2485
|
},
|
|
2555
2486
|
L
|
|
2556
2487
|
)
|
|
@@ -2562,20 +2493,20 @@ const zr = (t, r) => {
|
|
|
2562
2493
|
{
|
|
2563
2494
|
gap: "sm",
|
|
2564
2495
|
style: {
|
|
2565
|
-
width: d &&
|
|
2496
|
+
width: d && V ? d : V ? "310px" : ""
|
|
2566
2497
|
},
|
|
2567
2498
|
children: [
|
|
2568
|
-
|
|
2499
|
+
x && /* @__PURE__ */ s(pe.SubH3, { children: [
|
|
2569
2500
|
"Search for ",
|
|
2570
|
-
|
|
2501
|
+
k
|
|
2571
2502
|
] }),
|
|
2572
2503
|
/* @__PURE__ */ e(
|
|
2573
|
-
|
|
2504
|
+
gt,
|
|
2574
2505
|
{
|
|
2575
2506
|
placeholder: i,
|
|
2576
2507
|
leftIcon: /* @__PURE__ */ e(w, { name: "Search", width: 20, height: 20 }),
|
|
2577
|
-
onChange: (
|
|
2578
|
-
value:
|
|
2508
|
+
onChange: (z) => ee(z.target.value),
|
|
2509
|
+
value: P,
|
|
2579
2510
|
fullWidth: !0
|
|
2580
2511
|
},
|
|
2581
2512
|
L + 1 + a
|
|
@@ -2584,7 +2515,7 @@ const zr = (t, r) => {
|
|
|
2584
2515
|
}
|
|
2585
2516
|
),
|
|
2586
2517
|
/* @__PURE__ */ e(
|
|
2587
|
-
|
|
2518
|
+
si,
|
|
2588
2519
|
{
|
|
2589
2520
|
isOpen: T,
|
|
2590
2521
|
onClose: () => U(!1),
|
|
@@ -2596,8 +2527,8 @@ const zr = (t, r) => {
|
|
|
2596
2527
|
]
|
|
2597
2528
|
}
|
|
2598
2529
|
);
|
|
2599
|
-
},
|
|
2600
|
-
const o = ne(null), [n, l] =
|
|
2530
|
+
}, hi = ({ children: t, borderRadius: r, height: i }) => {
|
|
2531
|
+
const o = ne(null), [n, l] = E("100vh");
|
|
2601
2532
|
return $(() => {
|
|
2602
2533
|
if (i) return;
|
|
2603
2534
|
const h = () => {
|
|
@@ -2624,7 +2555,7 @@ const zr = (t, r) => {
|
|
|
2624
2555
|
children: t
|
|
2625
2556
|
}
|
|
2626
2557
|
);
|
|
2627
|
-
},
|
|
2558
|
+
}, ui = ({
|
|
2628
2559
|
action: t,
|
|
2629
2560
|
rightContent: r,
|
|
2630
2561
|
leftContent: i,
|
|
@@ -2632,7 +2563,7 @@ const zr = (t, r) => {
|
|
|
2632
2563
|
advanceFilter: n,
|
|
2633
2564
|
showFilter: l = !0
|
|
2634
2565
|
}) => {
|
|
2635
|
-
const h = oe("md"), a = l ? /* @__PURE__ */ e(
|
|
2566
|
+
const h = oe("md"), a = l ? /* @__PURE__ */ e(di, { ...n }) : null;
|
|
2636
2567
|
return /* @__PURE__ */ e(
|
|
2637
2568
|
f,
|
|
2638
2569
|
{
|
|
@@ -2659,7 +2590,7 @@ const zr = (t, r) => {
|
|
|
2659
2590
|
] }),
|
|
2660
2591
|
/* @__PURE__ */ s(f, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flexShrink: 0 }, children: [
|
|
2661
2592
|
r,
|
|
2662
|
-
t ?
|
|
2593
|
+
t ? st(t) ? t : /* @__PURE__ */ e(
|
|
2663
2594
|
f,
|
|
2664
2595
|
{
|
|
2665
2596
|
style: {
|
|
@@ -2671,7 +2602,7 @@ const zr = (t, r) => {
|
|
|
2671
2602
|
},
|
|
2672
2603
|
children: t.map(
|
|
2673
2604
|
({ title: d, icon: g, buttonProps: m, onClick: y }, b) => !d && !g ? null : /* @__PURE__ */ e(
|
|
2674
|
-
|
|
2605
|
+
O,
|
|
2675
2606
|
{
|
|
2676
2607
|
fullWidth: !h,
|
|
2677
2608
|
iconLeft: g ? /* @__PURE__ */ e(w, { name: g }) : void 0,
|
|
@@ -2688,7 +2619,7 @@ const zr = (t, r) => {
|
|
|
2688
2619
|
] })
|
|
2689
2620
|
}
|
|
2690
2621
|
);
|
|
2691
|
-
},
|
|
2622
|
+
}, fi = ({
|
|
2692
2623
|
totalData: t,
|
|
2693
2624
|
withMarginBottom: r = !0,
|
|
2694
2625
|
withMarginTop: i = !0
|
|
@@ -2705,7 +2636,7 @@ const zr = (t, r) => {
|
|
|
2705
2636
|
},
|
|
2706
2637
|
children: [
|
|
2707
2638
|
/* @__PURE__ */ s(
|
|
2708
|
-
|
|
2639
|
+
pe.Body1,
|
|
2709
2640
|
{
|
|
2710
2641
|
props: {
|
|
2711
2642
|
color: "gray-500"
|
|
@@ -2716,10 +2647,10 @@ const zr = (t, r) => {
|
|
|
2716
2647
|
]
|
|
2717
2648
|
}
|
|
2718
2649
|
),
|
|
2719
|
-
/* @__PURE__ */ e(
|
|
2650
|
+
/* @__PURE__ */ e(pe.Body1, { children: t || 0 })
|
|
2720
2651
|
]
|
|
2721
2652
|
}
|
|
2722
|
-
),
|
|
2653
|
+
), gi = ({
|
|
2723
2654
|
pagination: t,
|
|
2724
2655
|
pageKey: r = "page",
|
|
2725
2656
|
perPageKey: i = "perPage",
|
|
@@ -2727,12 +2658,12 @@ const zr = (t, r) => {
|
|
|
2727
2658
|
showPagination: n = !0,
|
|
2728
2659
|
totalData: l
|
|
2729
2660
|
}) => {
|
|
2730
|
-
const { searchQueries: h, setSearchParams: a, searchParams: u } = vt(), d = u.get(i), g = (
|
|
2731
|
-
a({ ...h, [r]: String(
|
|
2732
|
-
}, m = (
|
|
2661
|
+
const { searchQueries: h, setSearchParams: a, searchParams: u } = vt(), d = u.get(i), g = (k) => {
|
|
2662
|
+
a({ ...h, [r]: String(k) });
|
|
2663
|
+
}, m = (k) => {
|
|
2733
2664
|
a({
|
|
2734
2665
|
...h,
|
|
2735
|
-
[i]:
|
|
2666
|
+
[i]: k,
|
|
2736
2667
|
[r]: "1"
|
|
2737
2668
|
});
|
|
2738
2669
|
}, y = (t == null ? void 0 : t.rangeStart) ?? (((t == null ? void 0 : t.currentPage) || 0) > 1 ? (((t == null ? void 0 : t.currentPage) || 0) - 1) * ((t == null ? void 0 : t.perPage) || 0) + 1 : 1), b = (t == null ? void 0 : t.rangeEnd) ?? ((t == null ? void 0 : t.totalCurrentPage) !== (t == null ? void 0 : t.perPage) ? t == null ? void 0 : t.totalData : ((t == null ? void 0 : t.currentPage) || 1) * ((t == null ? void 0 : t.totalCurrentPage) || 0));
|
|
@@ -2754,9 +2685,9 @@ const zr = (t, r) => {
|
|
|
2754
2685
|
},
|
|
2755
2686
|
children: n ? /* @__PURE__ */ s(q, { children: [
|
|
2756
2687
|
/* @__PURE__ */ s(f, { style: { display: "flex", flexDirection: "row", gap: "8px", alignItems: "center", textWrap: "nowrap" }, children: [
|
|
2757
|
-
/* @__PURE__ */ e(
|
|
2688
|
+
/* @__PURE__ */ e(v, { children: "Rows Per Page: " }),
|
|
2758
2689
|
/* @__PURE__ */ e(
|
|
2759
|
-
|
|
2690
|
+
ft,
|
|
2760
2691
|
{
|
|
2761
2692
|
dropdownLists: [
|
|
2762
2693
|
{ label: "5", value: "5" },
|
|
@@ -2765,14 +2696,14 @@ const zr = (t, r) => {
|
|
|
2765
2696
|
{ label: "50", value: "50" },
|
|
2766
2697
|
{ label: "100", value: "100" }
|
|
2767
2698
|
],
|
|
2768
|
-
onChange: (
|
|
2769
|
-
m(
|
|
2699
|
+
onChange: (k) => {
|
|
2700
|
+
m(k[0].value);
|
|
2770
2701
|
},
|
|
2771
2702
|
value: d ? [{ label: `${d} per row`, value: d }] : [{ label: `${o} per row`, value: `${o}` }],
|
|
2772
2703
|
defaultValue: d ? [{ label: `${d} per row`, value: d }] : [{ label: `${o} per row`, value: `${o}` }]
|
|
2773
2704
|
}
|
|
2774
2705
|
),
|
|
2775
|
-
/* @__PURE__ */ e(
|
|
2706
|
+
/* @__PURE__ */ e(v, { children: `${y}-${b} of ${(t == null ? void 0 : t.totalData) || 0}` })
|
|
2776
2707
|
] }),
|
|
2777
2708
|
/* @__PURE__ */ e(
|
|
2778
2709
|
ur,
|
|
@@ -2783,7 +2714,7 @@ const zr = (t, r) => {
|
|
|
2783
2714
|
}
|
|
2784
2715
|
)
|
|
2785
2716
|
] }) : /* @__PURE__ */ e(
|
|
2786
|
-
|
|
2717
|
+
fi,
|
|
2787
2718
|
{
|
|
2788
2719
|
totalData: l,
|
|
2789
2720
|
withMarginBottom: !1,
|
|
@@ -2792,32 +2723,32 @@ const zr = (t, r) => {
|
|
|
2792
2723
|
)
|
|
2793
2724
|
}
|
|
2794
2725
|
);
|
|
2795
|
-
},
|
|
2796
|
-
const [i, o] =
|
|
2797
|
-
(
|
|
2726
|
+
}, mi = ({ filter: t, columnTitle: r }) => {
|
|
2727
|
+
const [i, o] = E(!1), n = ne(null), l = ne(null), h = ne(null), [a, u] = E(""), [d, g] = E({ top: 0, left: 0 }), m = t.selectedValues, y = me(() => a ? t.options.filter(
|
|
2728
|
+
(x) => x.label.toLowerCase().includes(a.toLowerCase())
|
|
2798
2729
|
) : t.options, [t.options, a]);
|
|
2799
2730
|
$(() => {
|
|
2800
2731
|
if (i && l.current) {
|
|
2801
|
-
const
|
|
2802
|
-
top:
|
|
2732
|
+
const x = l.current.getBoundingClientRect(), R = 280, Z = {
|
|
2733
|
+
top: x.bottom + 8
|
|
2803
2734
|
};
|
|
2804
|
-
t.position === "left" ||
|
|
2735
|
+
t.position === "left" || x.left + R > window.innerWidth ? Z.right = window.innerWidth - x.right : Z.left = x.left, g(Z);
|
|
2805
2736
|
}
|
|
2806
2737
|
}, [i, t.position]), $(() => {
|
|
2807
2738
|
i && h.current ? setTimeout(() => {
|
|
2808
|
-
var
|
|
2809
|
-
return (
|
|
2739
|
+
var x;
|
|
2740
|
+
return (x = h.current) == null ? void 0 : x.focus();
|
|
2810
2741
|
}, 50) : u("");
|
|
2811
2742
|
}, [i]), $(() => {
|
|
2812
|
-
const
|
|
2813
|
-
n.current && !n.current.contains(
|
|
2743
|
+
const x = (R) => {
|
|
2744
|
+
n.current && !n.current.contains(R.target) && l.current && !l.current.contains(R.target) && o(!1);
|
|
2814
2745
|
};
|
|
2815
|
-
return i && document.addEventListener("mousedown",
|
|
2746
|
+
return i && document.addEventListener("mousedown", x), () => document.removeEventListener("mousedown", x);
|
|
2816
2747
|
}, [i]);
|
|
2817
|
-
const b = (
|
|
2818
|
-
const
|
|
2819
|
-
t.onFilterChange(
|
|
2820
|
-
},
|
|
2748
|
+
const b = (x) => {
|
|
2749
|
+
const R = m.includes(x) ? m.filter((Z) => Z !== x) : [...m, x];
|
|
2750
|
+
t.onFilterChange(R);
|
|
2751
|
+
}, k = () => t.onFilterChange([]);
|
|
2821
2752
|
return /* @__PURE__ */ s(f, { style: { position: "relative" }, children: [
|
|
2822
2753
|
/* @__PURE__ */ e(
|
|
2823
2754
|
f,
|
|
@@ -2829,9 +2760,9 @@ const zr = (t, r) => {
|
|
|
2829
2760
|
alignItems: "center",
|
|
2830
2761
|
cursor: "pointer"
|
|
2831
2762
|
},
|
|
2832
|
-
onClick: (
|
|
2833
|
-
var
|
|
2834
|
-
|
|
2763
|
+
onClick: (x) => {
|
|
2764
|
+
var R;
|
|
2765
|
+
x.stopPropagation(), i || (R = t.onOpen) == null || R.call(t), o((Z) => !Z);
|
|
2835
2766
|
},
|
|
2836
2767
|
children: /* @__PURE__ */ e(
|
|
2837
2768
|
w,
|
|
@@ -2879,18 +2810,18 @@ const zr = (t, r) => {
|
|
|
2879
2810
|
borderBottom: "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
2880
2811
|
},
|
|
2881
2812
|
children: [
|
|
2882
|
-
/* @__PURE__ */ s(
|
|
2813
|
+
/* @__PURE__ */ s(v, { fontSize: "sm", fontWeight: "semibold", color: "gray-700", children: [
|
|
2883
2814
|
"Filter ",
|
|
2884
2815
|
r
|
|
2885
2816
|
] }),
|
|
2886
2817
|
m.length > 0 && /* @__PURE__ */ e(f, { style: { cursor: "pointer" }, children: /* @__PURE__ */ e(
|
|
2887
|
-
|
|
2818
|
+
v,
|
|
2888
2819
|
{
|
|
2889
2820
|
fontSize: "xs",
|
|
2890
2821
|
color: "primary",
|
|
2891
2822
|
fontWeight: "semibold",
|
|
2892
|
-
onClick: (
|
|
2893
|
-
|
|
2823
|
+
onClick: (x) => {
|
|
2824
|
+
x.stopPropagation(), k();
|
|
2894
2825
|
},
|
|
2895
2826
|
children: "CLEAR"
|
|
2896
2827
|
}
|
|
@@ -2908,13 +2839,13 @@ const zr = (t, r) => {
|
|
|
2908
2839
|
paddingBottom: "8px"
|
|
2909
2840
|
},
|
|
2910
2841
|
children: /* @__PURE__ */ e(
|
|
2911
|
-
|
|
2842
|
+
gt,
|
|
2912
2843
|
{
|
|
2913
2844
|
ref: h,
|
|
2914
2845
|
placeholder: `Search ${r.toLowerCase()}...`,
|
|
2915
2846
|
leftIcon: /* @__PURE__ */ e(w, { name: "Search", size: "sm" }),
|
|
2916
2847
|
value: a,
|
|
2917
|
-
onChange: (
|
|
2848
|
+
onChange: (x) => u(x.target.value),
|
|
2918
2849
|
style: { fontSize: "14px" }
|
|
2919
2850
|
}
|
|
2920
2851
|
)
|
|
@@ -2954,7 +2885,7 @@ const zr = (t, r) => {
|
|
|
2954
2885
|
}
|
|
2955
2886
|
),
|
|
2956
2887
|
/* @__PURE__ */ e(
|
|
2957
|
-
|
|
2888
|
+
v,
|
|
2958
2889
|
{
|
|
2959
2890
|
fontSize: "sm",
|
|
2960
2891
|
color: "gray-500",
|
|
@@ -2964,7 +2895,7 @@ const zr = (t, r) => {
|
|
|
2964
2895
|
)
|
|
2965
2896
|
]
|
|
2966
2897
|
}
|
|
2967
|
-
) : y.length > 0 ? /* @__PURE__ */ e(f, { style: { gap: "2px", paddingTop: "4px", paddingBottom: "4px" }, children: y.map((
|
|
2898
|
+
) : y.length > 0 ? /* @__PURE__ */ e(f, { style: { gap: "2px", paddingTop: "4px", paddingBottom: "4px" }, children: y.map((x) => /* @__PURE__ */ s(
|
|
2968
2899
|
f,
|
|
2969
2900
|
{
|
|
2970
2901
|
style: {
|
|
@@ -2979,38 +2910,38 @@ const zr = (t, r) => {
|
|
|
2979
2910
|
cursor: "pointer",
|
|
2980
2911
|
borderRadius: "8px",
|
|
2981
2912
|
transition: "all 0.2s ease",
|
|
2982
|
-
backgroundColor: m.includes(
|
|
2913
|
+
backgroundColor: m.includes(x.value) ? "var(--sa-color-brand-50, #e6edf6)" : "transparent"
|
|
2983
2914
|
},
|
|
2984
|
-
onClick: (
|
|
2985
|
-
|
|
2915
|
+
onClick: (R) => {
|
|
2916
|
+
R.stopPropagation(), b(x.value);
|
|
2986
2917
|
},
|
|
2987
|
-
onMouseEnter: (
|
|
2988
|
-
m.includes(
|
|
2918
|
+
onMouseEnter: (R) => {
|
|
2919
|
+
m.includes(x.value) || (R.currentTarget.style.backgroundColor = "var(--sa-background-primary, #ffffff)"), R.currentTarget.style.transform = "translateX(2px)";
|
|
2989
2920
|
},
|
|
2990
|
-
onMouseLeave: (
|
|
2991
|
-
|
|
2921
|
+
onMouseLeave: (R) => {
|
|
2922
|
+
R.currentTarget.style.backgroundColor = m.includes(x.value) ? "var(--sa-color-brand-50, #e6edf6)" : "transparent", R.currentTarget.style.transform = "translateX(0)";
|
|
2992
2923
|
},
|
|
2993
2924
|
children: [
|
|
2994
2925
|
/* @__PURE__ */ e(
|
|
2995
|
-
|
|
2926
|
+
ct,
|
|
2996
2927
|
{
|
|
2997
|
-
checked: m.includes(
|
|
2928
|
+
checked: m.includes(x.value),
|
|
2998
2929
|
onChange: () => {
|
|
2999
2930
|
}
|
|
3000
2931
|
}
|
|
3001
2932
|
),
|
|
3002
2933
|
/* @__PURE__ */ e(
|
|
3003
|
-
|
|
2934
|
+
v,
|
|
3004
2935
|
{
|
|
3005
2936
|
fontSize: "sm",
|
|
3006
|
-
fontWeight: m.includes(
|
|
3007
|
-
color: m.includes(
|
|
3008
|
-
children:
|
|
2937
|
+
fontWeight: m.includes(x.value) ? "medium" : "normal",
|
|
2938
|
+
color: m.includes(x.value) ? "primary" : "gray-700",
|
|
2939
|
+
children: x.label
|
|
3009
2940
|
}
|
|
3010
2941
|
)
|
|
3011
2942
|
]
|
|
3012
2943
|
},
|
|
3013
|
-
|
|
2944
|
+
x.value
|
|
3014
2945
|
)) }) : /* @__PURE__ */ s(
|
|
3015
2946
|
f,
|
|
3016
2947
|
{
|
|
@@ -3032,7 +2963,7 @@ const zr = (t, r) => {
|
|
|
3032
2963
|
}
|
|
3033
2964
|
),
|
|
3034
2965
|
/* @__PURE__ */ e(
|
|
3035
|
-
|
|
2966
|
+
v,
|
|
3036
2967
|
{
|
|
3037
2968
|
fontSize: "sm",
|
|
3038
2969
|
color: "gray-500",
|
|
@@ -3072,7 +3003,7 @@ const zr = (t, r) => {
|
|
|
3072
3003
|
children: m.length
|
|
3073
3004
|
}
|
|
3074
3005
|
),
|
|
3075
|
-
/* @__PURE__ */ s(
|
|
3006
|
+
/* @__PURE__ */ s(v, { fontSize: "xs", color: "primary", fontWeight: "medium", children: [
|
|
3076
3007
|
"item",
|
|
3077
3008
|
m.length > 1 ? "s" : "",
|
|
3078
3009
|
" selected"
|
|
@@ -3084,7 +3015,7 @@ const zr = (t, r) => {
|
|
|
3084
3015
|
}
|
|
3085
3016
|
)
|
|
3086
3017
|
] });
|
|
3087
|
-
},
|
|
3018
|
+
}, yi = ({
|
|
3088
3019
|
direction: t
|
|
3089
3020
|
}) => {
|
|
3090
3021
|
const r = "var(--sa-text-primary, #292a2e)", i = "var(--sa-text-subtle, #8c8f97)";
|
|
@@ -3124,7 +3055,7 @@ const zr = (t, r) => {
|
|
|
3124
3055
|
]
|
|
3125
3056
|
}
|
|
3126
3057
|
);
|
|
3127
|
-
},
|
|
3058
|
+
}, pi = ({ frozen: t }) => /* @__PURE__ */ s(
|
|
3128
3059
|
"svg",
|
|
3129
3060
|
{
|
|
3130
3061
|
width: "11",
|
|
@@ -3140,7 +3071,7 @@ const zr = (t, r) => {
|
|
|
3140
3071
|
/* @__PURE__ */ e("path", { d: t ? "M7 11V7a5 5 0 0 1 10 0v4" : "M7 11V7a5 5 0 0 1 9.9-1" })
|
|
3141
3072
|
]
|
|
3142
3073
|
}
|
|
3143
|
-
),
|
|
3074
|
+
), ot = "var(--sa-background-primary, #ffffff)", jt = "var(--sa-background-primary-inverse, #f8f8f8)", xi = ({
|
|
3144
3075
|
columns: t,
|
|
3145
3076
|
records: r,
|
|
3146
3077
|
handleDetail: i,
|
|
@@ -3155,84 +3086,84 @@ const zr = (t, r) => {
|
|
|
3155
3086
|
frozenCount: m = 0,
|
|
3156
3087
|
onFrozenCountChange: y,
|
|
3157
3088
|
customActions: b,
|
|
3158
|
-
actionsOrder:
|
|
3159
|
-
customEmptyState:
|
|
3160
|
-
enableColumnResize:
|
|
3089
|
+
actionsOrder: k = ["detail", "update", "delete", "custom"],
|
|
3090
|
+
customEmptyState: x,
|
|
3091
|
+
enableColumnResize: R = !1,
|
|
3161
3092
|
defaultColumnWidths: Z,
|
|
3162
3093
|
onColumnWidthsChange: T,
|
|
3163
3094
|
defaultMinColumnWidth: U = 60,
|
|
3164
3095
|
sort: L,
|
|
3165
3096
|
defaultSort: ae,
|
|
3166
3097
|
onSortChange: J,
|
|
3167
|
-
showActionDivider:
|
|
3098
|
+
showActionDivider: A = !1
|
|
3168
3099
|
}) => {
|
|
3169
|
-
const
|
|
3100
|
+
const Q = L !== void 0, [le, ce] = E(
|
|
3170
3101
|
ae ?? null
|
|
3171
|
-
), G =
|
|
3172
|
-
if (
|
|
3173
|
-
if (typeof
|
|
3174
|
-
}, ee = (
|
|
3175
|
-
const
|
|
3176
|
-
if (!
|
|
3102
|
+
), G = Q ? L ?? null : le, P = (C) => {
|
|
3103
|
+
if (C.sortKey) return C.sortKey;
|
|
3104
|
+
if (typeof C.accessor == "string") return C.accessor;
|
|
3105
|
+
}, ee = (C) => {
|
|
3106
|
+
const S = P(C);
|
|
3107
|
+
if (!S) return;
|
|
3177
3108
|
let D;
|
|
3178
|
-
!G || G.key !==
|
|
3179
|
-
}, te = [i, o, n].filter((
|
|
3180
|
-
if (!
|
|
3181
|
-
if (typeof
|
|
3182
|
-
if (typeof
|
|
3183
|
-
}, [
|
|
3109
|
+
!G || G.key !== S ? D = { key: S, direction: "asc" } : G.direction === "asc" ? D = { key: S, direction: "desc" } : D = null, Q || ce(D), J == null || J(D);
|
|
3110
|
+
}, te = [i, o, n].filter((C) => C !== void 0).length, X = !!b, V = !!i || !!o || !!n || X, z = "var(--sa-border-subtle, #0b120e24)", K = `1px solid ${z}`, fe = `inset 1px 0 0 ${z}`, ge = `inset -1px 0 0 ${z}`, Be = te === 3 ? X ? "178px" : "140px" : te === 2 ? X ? "140px" : "102px" : te === 1 ? X ? "112px" : "74px" : X ? "74px" : "", Ne = (C, S) => {
|
|
3111
|
+
if (!S) return C;
|
|
3112
|
+
if (typeof S == "function") return S(C);
|
|
3113
|
+
if (typeof S == "string") return C[S];
|
|
3114
|
+
}, [Xe, Oe] = E(!1);
|
|
3184
3115
|
$(() => {
|
|
3185
3116
|
if (!(g != null && g.current)) return;
|
|
3186
|
-
const
|
|
3187
|
-
Oe(
|
|
3117
|
+
const C = g.current;
|
|
3118
|
+
Oe(C.scrollHeight > C.clientHeight);
|
|
3188
3119
|
}, [r, g]);
|
|
3189
|
-
const Ie = ne(null), [de, _e] =
|
|
3120
|
+
const Ie = ne(null), [de, _e] = E([]), [He, Fe] = E(
|
|
3190
3121
|
() => Z ?? {}
|
|
3191
3122
|
), Ee = ne(null);
|
|
3192
|
-
|
|
3123
|
+
at(() => {
|
|
3193
3124
|
if (!m || !Ie.current) {
|
|
3194
3125
|
_e([]);
|
|
3195
3126
|
return;
|
|
3196
3127
|
}
|
|
3197
|
-
const
|
|
3128
|
+
const C = Array.from(
|
|
3198
3129
|
Ie.current.querySelectorAll("thead tr th")
|
|
3199
|
-
),
|
|
3130
|
+
), S = [];
|
|
3200
3131
|
let D = 0;
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
}), _e(
|
|
3204
|
-
}, [m, t, r,
|
|
3205
|
-
const je = (
|
|
3206
|
-
y && y(
|
|
3207
|
-
}, p = (
|
|
3208
|
-
const D =
|
|
3132
|
+
C.forEach((F, I) => {
|
|
3133
|
+
S[I] = D, I < m && (D += F.offsetWidth);
|
|
3134
|
+
}), _e(S);
|
|
3135
|
+
}, [m, t, r, He]);
|
|
3136
|
+
const je = (C) => {
|
|
3137
|
+
y && y(C < m ? C : C + 1);
|
|
3138
|
+
}, p = (C, S) => {
|
|
3139
|
+
const D = He[C];
|
|
3209
3140
|
if (D !== void 0) {
|
|
3210
|
-
const
|
|
3211
|
-
return { width:
|
|
3141
|
+
const F = `${D}px`;
|
|
3142
|
+
return { width: F, minWidth: F, maxWidth: F };
|
|
3212
3143
|
}
|
|
3213
|
-
return
|
|
3214
|
-
}, M = (
|
|
3215
|
-
|
|
3216
|
-
const D =
|
|
3144
|
+
return S ? { width: S } : {};
|
|
3145
|
+
}, M = (C) => R && (C.resizable ?? !0), W = (C, S) => {
|
|
3146
|
+
C.preventDefault(), C.stopPropagation();
|
|
3147
|
+
const D = C.currentTarget.closest("th");
|
|
3217
3148
|
if (!D) return;
|
|
3218
|
-
const
|
|
3219
|
-
Ee.current = { colIndex:
|
|
3149
|
+
const F = Math.round(D.getBoundingClientRect().width);
|
|
3150
|
+
Ee.current = { colIndex: S, startX: C.clientX, startWidth: F };
|
|
3220
3151
|
const I = document.body.style.userSelect, re = document.body.style.cursor;
|
|
3221
3152
|
document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
|
|
3222
3153
|
const he = (be) => {
|
|
3223
|
-
var
|
|
3154
|
+
var Re;
|
|
3224
3155
|
const Ce = Ee.current;
|
|
3225
3156
|
if (!Ce) return;
|
|
3226
|
-
const
|
|
3157
|
+
const Ke = ((Re = t[Ce.colIndex]) == null ? void 0 : Re.minWidth) ?? U, Ae = Math.max(Ke, Ce.startWidth + (be.clientX - Ce.startX));
|
|
3227
3158
|
Fe(
|
|
3228
|
-
(Me) => Me[Ce.colIndex] ===
|
|
3159
|
+
(Me) => Me[Ce.colIndex] === Ae ? Me : { ...Me, [Ce.colIndex]: Ae }
|
|
3229
3160
|
);
|
|
3230
3161
|
}, we = () => {
|
|
3231
3162
|
document.removeEventListener("mousemove", he), document.removeEventListener("mouseup", we), document.body.style.userSelect = I, document.body.style.cursor = re, Ee.current = null, T && Fe((be) => (T(be), be));
|
|
3232
3163
|
};
|
|
3233
3164
|
document.addEventListener("mousemove", he), document.addEventListener("mouseup", we);
|
|
3234
3165
|
};
|
|
3235
|
-
return /* @__PURE__ */ e("div", { ref: Ie, children: /* @__PURE__ */ s(
|
|
3166
|
+
return /* @__PURE__ */ e("div", { ref: Ie, children: /* @__PURE__ */ s(qt, { fullWidth: !0, children: [
|
|
3236
3167
|
/* @__PURE__ */ e(
|
|
3237
3168
|
fr,
|
|
3238
3169
|
{
|
|
@@ -3240,21 +3171,21 @@ const zr = (t, r) => {
|
|
|
3240
3171
|
height: "40px",
|
|
3241
3172
|
whiteSpace: "nowrap"
|
|
3242
3173
|
},
|
|
3243
|
-
children: /* @__PURE__ */ s(
|
|
3244
|
-
t.map((
|
|
3174
|
+
children: /* @__PURE__ */ s(ze, { children: [
|
|
3175
|
+
t.map((C, S) => {
|
|
3245
3176
|
var Ft, Et;
|
|
3246
|
-
const D = m > 0 &&
|
|
3177
|
+
const D = m > 0 && S < m, F = de[S] ?? 0, I = M(C), he = S === t.length - 1 && V && A, we = P(C), be = !!C.sortable && !!we, Ce = be && (G == null ? void 0 : G.key) === we ? G.direction : null, Ke = C.title || ((Ft = C.accessor) == null ? void 0 : Ft.toString()) || "", Ae = (Et = C.headerTooltip) != null && Et.showIcon ? /* @__PURE__ */ e(
|
|
3247
3178
|
w,
|
|
3248
3179
|
{
|
|
3249
3180
|
name: "InfoCircle",
|
|
3250
3181
|
size: "xs",
|
|
3251
3182
|
style: { flexShrink: 0, color: "var(--sa-icon-subtle, #8c8f97)", opacity: 0.75 }
|
|
3252
3183
|
}
|
|
3253
|
-
) : null,
|
|
3184
|
+
) : null, Re = /* @__PURE__ */ e("span", { style: { flex: 1, minWidth: 0, overflow: "hidden", textOverflow: "ellipsis", whiteSpace: "nowrap" }, children: Ke }), Me = be ? /* @__PURE__ */ s(
|
|
3254
3185
|
"button",
|
|
3255
3186
|
{
|
|
3256
3187
|
type: "button",
|
|
3257
|
-
onClick: () => ee(
|
|
3188
|
+
onClick: () => ee(C),
|
|
3258
3189
|
title: Ce === "asc" ? "Sorted ascending — click to sort descending" : Ce === "desc" ? "Sorted descending — click to clear" : "Click to sort ascending",
|
|
3259
3190
|
style: {
|
|
3260
3191
|
flex: 1,
|
|
@@ -3269,17 +3200,17 @@ const zr = (t, r) => {
|
|
|
3269
3200
|
font: "inherit",
|
|
3270
3201
|
color: "inherit",
|
|
3271
3202
|
cursor: "pointer",
|
|
3272
|
-
textAlign:
|
|
3203
|
+
textAlign: C.textAlign === "text-right" ? "right" : C.textAlign === "text-center" ? "center" : "left"
|
|
3273
3204
|
},
|
|
3274
3205
|
children: [
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
/* @__PURE__ */ e(
|
|
3206
|
+
Re,
|
|
3207
|
+
Ae,
|
|
3208
|
+
/* @__PURE__ */ e(yi, { direction: Ce })
|
|
3278
3209
|
]
|
|
3279
3210
|
}
|
|
3280
3211
|
) : /* @__PURE__ */ s("span", { style: { flex: 1, minWidth: 0, display: "flex", alignItems: "center", gap: 4 }, children: [
|
|
3281
|
-
|
|
3282
|
-
|
|
3212
|
+
Re,
|
|
3213
|
+
Ae
|
|
3283
3214
|
] });
|
|
3284
3215
|
return /* @__PURE__ */ s(
|
|
3285
3216
|
Lt,
|
|
@@ -3287,15 +3218,15 @@ const zr = (t, r) => {
|
|
|
3287
3218
|
style: {
|
|
3288
3219
|
position: "sticky",
|
|
3289
3220
|
top: 0,
|
|
3290
|
-
left: D ?
|
|
3221
|
+
left: D ? F : void 0,
|
|
3291
3222
|
zIndex: D ? 4 : 2,
|
|
3292
|
-
paddingLeft:
|
|
3223
|
+
paddingLeft: S === 0 ? "12px" : "",
|
|
3293
3224
|
borderRight: d && !he && !D ? K : void 0,
|
|
3294
3225
|
borderBottom: d ? K : void 0,
|
|
3295
|
-
boxShadow: d && D ?
|
|
3226
|
+
boxShadow: d && D ? ge : void 0,
|
|
3296
3227
|
backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
|
|
3297
|
-
textAlign:
|
|
3298
|
-
...p(
|
|
3228
|
+
textAlign: C.textAlign === "text-right" ? "right" : C.textAlign === "text-center" ? "center" : "left",
|
|
3229
|
+
...p(S, C.width)
|
|
3299
3230
|
},
|
|
3300
3231
|
children: [
|
|
3301
3232
|
/* @__PURE__ */ s(
|
|
@@ -3309,18 +3240,18 @@ const zr = (t, r) => {
|
|
|
3309
3240
|
minWidth: 0
|
|
3310
3241
|
},
|
|
3311
3242
|
children: [
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3243
|
+
C.headerTooltip ? /* @__PURE__ */ e(ue, { label: C.headerTooltip.content, position: "bottom", children: Me }) : Me,
|
|
3244
|
+
C.filter && /* @__PURE__ */ e(
|
|
3245
|
+
mi,
|
|
3315
3246
|
{
|
|
3316
|
-
filter:
|
|
3317
|
-
columnTitle:
|
|
3247
|
+
filter: C.filter,
|
|
3248
|
+
columnTitle: C.title
|
|
3318
3249
|
}
|
|
3319
3250
|
),
|
|
3320
3251
|
y && /* @__PURE__ */ e(
|
|
3321
3252
|
"button",
|
|
3322
3253
|
{
|
|
3323
|
-
onClick: () => je(
|
|
3254
|
+
onClick: () => je(S),
|
|
3324
3255
|
title: D ? "Unfreeze column" : "Freeze column",
|
|
3325
3256
|
style: {
|
|
3326
3257
|
background: "none",
|
|
@@ -3334,7 +3265,7 @@ const zr = (t, r) => {
|
|
|
3334
3265
|
opacity: D ? 1 : 0.45,
|
|
3335
3266
|
transition: "opacity 0.15s"
|
|
3336
3267
|
},
|
|
3337
|
-
children: /* @__PURE__ */ e(
|
|
3268
|
+
children: /* @__PURE__ */ e(pi, { frozen: D })
|
|
3338
3269
|
}
|
|
3339
3270
|
)
|
|
3340
3271
|
]
|
|
@@ -3343,8 +3274,8 @@ const zr = (t, r) => {
|
|
|
3343
3274
|
I && /* @__PURE__ */ e(
|
|
3344
3275
|
"div",
|
|
3345
3276
|
{
|
|
3346
|
-
onMouseDown: (
|
|
3347
|
-
onClick: (
|
|
3277
|
+
onMouseDown: (et) => W(et, S),
|
|
3278
|
+
onClick: (et) => et.stopPropagation(),
|
|
3348
3279
|
role: "separator",
|
|
3349
3280
|
"aria-orientation": "vertical",
|
|
3350
3281
|
title: "Drag to resize",
|
|
@@ -3363,10 +3294,10 @@ const zr = (t, r) => {
|
|
|
3363
3294
|
)
|
|
3364
3295
|
]
|
|
3365
3296
|
},
|
|
3366
|
-
`table-head-${
|
|
3297
|
+
`table-head-${S}`
|
|
3367
3298
|
);
|
|
3368
3299
|
}),
|
|
3369
|
-
|
|
3300
|
+
V ? /* @__PURE__ */ e(
|
|
3370
3301
|
Lt,
|
|
3371
3302
|
{
|
|
3372
3303
|
style: {
|
|
@@ -3376,42 +3307,42 @@ const zr = (t, r) => {
|
|
|
3376
3307
|
right: 0,
|
|
3377
3308
|
zIndex: 3,
|
|
3378
3309
|
borderBottom: d ? K : void 0,
|
|
3379
|
-
boxShadow: d &&
|
|
3310
|
+
boxShadow: d && A ? fe : void 0
|
|
3380
3311
|
}
|
|
3381
3312
|
}
|
|
3382
3313
|
) : null
|
|
3383
3314
|
] })
|
|
3384
3315
|
}
|
|
3385
3316
|
),
|
|
3386
|
-
/* @__PURE__ */ e(gr, { children: l ? /* @__PURE__ */ e(
|
|
3387
|
-
/* @__PURE__ */ e(
|
|
3388
|
-
/* @__PURE__ */ e(
|
|
3389
|
-
/* @__PURE__ */ e(
|
|
3390
|
-
/* @__PURE__ */ e(
|
|
3391
|
-
/* @__PURE__ */ e(
|
|
3392
|
-
] }) }) }) : !(r != null && r.length) &&
|
|
3393
|
-
|
|
3317
|
+
/* @__PURE__ */ e(gr, { children: l ? /* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(Se, { colSpan: t.length + 1, children: /* @__PURE__ */ s(f, { style: { gap: "16px" }, children: [
|
|
3318
|
+
/* @__PURE__ */ e(Ve, { variant: "list" }),
|
|
3319
|
+
/* @__PURE__ */ e(Ve, { variant: "list" }),
|
|
3320
|
+
/* @__PURE__ */ e(Ve, { variant: "list" }),
|
|
3321
|
+
/* @__PURE__ */ e(Ve, { variant: "list" }),
|
|
3322
|
+
/* @__PURE__ */ e(Ve, { variant: "list" })
|
|
3323
|
+
] }) }) }) : !(r != null && r.length) && x ? /* @__PURE__ */ e(ze, { children: /* @__PURE__ */ e(Se, { colSpan: t.length + 1, children: x }) }) : r == null ? void 0 : r.map((C, S) => /* @__PURE__ */ s(
|
|
3324
|
+
ze,
|
|
3394
3325
|
{
|
|
3395
3326
|
style: {
|
|
3396
3327
|
transition: "background-color 0.3s ease",
|
|
3397
3328
|
padding: 0,
|
|
3398
|
-
borderBottom:
|
|
3329
|
+
borderBottom: S === r.length - 1 && Xe ? void 0 : "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
3399
3330
|
},
|
|
3400
3331
|
onMouseEnter: (D) => {
|
|
3401
|
-
const
|
|
3402
|
-
|
|
3332
|
+
const F = D.currentTarget;
|
|
3333
|
+
F.style.backgroundColor = jt, Array.from(F.querySelectorAll("td")).forEach((I) => {
|
|
3403
3334
|
I.style.position === "sticky" && (I.style.backgroundColor = jt);
|
|
3404
3335
|
});
|
|
3405
3336
|
},
|
|
3406
3337
|
onMouseLeave: (D) => {
|
|
3407
|
-
const
|
|
3408
|
-
|
|
3409
|
-
I.style.position === "sticky" && (I.style.backgroundColor =
|
|
3338
|
+
const F = D.currentTarget;
|
|
3339
|
+
F.style.backgroundColor = "", Array.from(F.querySelectorAll("td")).forEach((I) => {
|
|
3340
|
+
I.style.position === "sticky" && (I.style.backgroundColor = ot);
|
|
3410
3341
|
});
|
|
3411
3342
|
},
|
|
3412
3343
|
children: [
|
|
3413
|
-
t.map((D,
|
|
3414
|
-
const I = D.render ? D.render(
|
|
3344
|
+
t.map((D, F) => {
|
|
3345
|
+
const I = D.render ? D.render(C, S, r) : Ne(C, D.accessor), re = m > 0 && F < m, he = de[F] ?? 0, we = He[F] !== void 0, be = re && F === m - 1;
|
|
3415
3346
|
return /* @__PURE__ */ e(
|
|
3416
3347
|
Se,
|
|
3417
3348
|
{
|
|
@@ -3419,19 +3350,19 @@ const zr = (t, r) => {
|
|
|
3419
3350
|
position: re ? "sticky" : void 0,
|
|
3420
3351
|
left: re ? he : void 0,
|
|
3421
3352
|
zIndex: re ? 1 : void 0,
|
|
3422
|
-
backgroundColor: re ?
|
|
3353
|
+
backgroundColor: re ? ot : void 0,
|
|
3423
3354
|
transition: re ? "background-color 0.3s ease" : void 0,
|
|
3424
|
-
paddingLeft:
|
|
3355
|
+
paddingLeft: F === 0 ? "12px" : "",
|
|
3425
3356
|
whiteSpace: "nowrap",
|
|
3426
3357
|
overflow: we ? "hidden" : void 0,
|
|
3427
3358
|
borderLeft: D.showBorderLeft ? K : void 0,
|
|
3428
3359
|
borderRight: D.showBorderRight ? K : void 0,
|
|
3429
|
-
boxShadow: be ?
|
|
3360
|
+
boxShadow: be ? ge : void 0,
|
|
3430
3361
|
textAlign: D.textAlign === "text-right" ? "right" : D.textAlign === "text-center" ? "center" : "left",
|
|
3431
|
-
...p(
|
|
3362
|
+
...p(F, D.width)
|
|
3432
3363
|
},
|
|
3433
3364
|
children: typeof I == "string" ? /* @__PURE__ */ e(
|
|
3434
|
-
|
|
3365
|
+
v,
|
|
3435
3366
|
{
|
|
3436
3367
|
style: {
|
|
3437
3368
|
whiteSpace: "nowrap",
|
|
@@ -3443,67 +3374,67 @@ const zr = (t, r) => {
|
|
|
3443
3374
|
}
|
|
3444
3375
|
) : I
|
|
3445
3376
|
},
|
|
3446
|
-
`row-${
|
|
3377
|
+
`row-${S}-col-${F}`
|
|
3447
3378
|
);
|
|
3448
3379
|
}),
|
|
3449
|
-
|
|
3380
|
+
V ? /* @__PURE__ */ e(Se, { style: {
|
|
3450
3381
|
width: Be,
|
|
3451
3382
|
position: "sticky",
|
|
3452
3383
|
right: 0,
|
|
3453
3384
|
zIndex: 1,
|
|
3454
|
-
backgroundColor:
|
|
3455
|
-
boxShadow:
|
|
3385
|
+
backgroundColor: ot,
|
|
3386
|
+
boxShadow: A ? fe : void 0,
|
|
3456
3387
|
transition: "background-color 0.3s ease"
|
|
3457
|
-
}, children: /* @__PURE__ */ e(_, { direction: "row", align: "center", justify: "center", gap: "sm", children:
|
|
3458
|
-
const
|
|
3459
|
-
return D === "detail" && i && (u == null ? void 0 : u(
|
|
3460
|
-
|
|
3388
|
+
}, children: /* @__PURE__ */ e(_, { direction: "row", align: "center", justify: "center", gap: "sm", children: k.map((D) => {
|
|
3389
|
+
const F = S === r.length - 1 ? "top" : "bottom";
|
|
3390
|
+
return D === "detail" && i && (u == null ? void 0 : u(C)) !== !1 ? /* @__PURE__ */ e(ue, { label: "Detail", position: F, children: /* @__PURE__ */ e(
|
|
3391
|
+
O,
|
|
3461
3392
|
{
|
|
3462
3393
|
size: "xs",
|
|
3463
3394
|
variant: "outline",
|
|
3464
3395
|
tone: "neutral",
|
|
3465
|
-
onClick: () => i(
|
|
3396
|
+
onClick: () => i(C.id, C),
|
|
3466
3397
|
iconLeft: /* @__PURE__ */ e(w, { name: "DocumentClean", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
3467
3398
|
}
|
|
3468
|
-
) }, "detail") : D === "update" && o && (a == null ? void 0 : a(
|
|
3469
|
-
|
|
3399
|
+
) }, "detail") : D === "update" && o && (a == null ? void 0 : a(C)) !== !1 ? /* @__PURE__ */ e(ue, { label: "Update", position: F, children: /* @__PURE__ */ e(
|
|
3400
|
+
O,
|
|
3470
3401
|
{
|
|
3471
3402
|
size: "xs",
|
|
3472
3403
|
variant: "outline",
|
|
3473
3404
|
tone: "neutral",
|
|
3474
|
-
onClick: () => o(
|
|
3405
|
+
onClick: () => o(C),
|
|
3475
3406
|
iconLeft: /* @__PURE__ */ e(w, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
3476
3407
|
}
|
|
3477
|
-
) }, "update") : D === "delete" && n && (h == null ? void 0 : h(
|
|
3478
|
-
|
|
3408
|
+
) }, "update") : D === "delete" && n && (h == null ? void 0 : h(C)) !== !1 ? /* @__PURE__ */ e(ue, { label: "Delete", position: F, children: /* @__PURE__ */ e(
|
|
3409
|
+
O,
|
|
3479
3410
|
{
|
|
3480
3411
|
size: "xs",
|
|
3481
3412
|
variant: "outline",
|
|
3482
3413
|
tone: "neutral",
|
|
3483
|
-
onClick: () => n(
|
|
3414
|
+
onClick: () => n(C.id, C),
|
|
3484
3415
|
iconLeft: /* @__PURE__ */ e(w, { name: "Trash1", size: "sm", style: { color: "var(--sa-color-error-600, #c9184a)" } })
|
|
3485
3416
|
}
|
|
3486
|
-
) }, "delete") : D === "custom" ? /* @__PURE__ */ e(
|
|
3417
|
+
) }, "delete") : D === "custom" ? /* @__PURE__ */ e(Ge.Fragment, { children: b == null ? void 0 : b(C) }, "custom") : null;
|
|
3487
3418
|
}) }) }) : null
|
|
3488
3419
|
]
|
|
3489
3420
|
},
|
|
3490
|
-
`${
|
|
3421
|
+
`${C}${S}`
|
|
3491
3422
|
)) })
|
|
3492
3423
|
] }) });
|
|
3493
|
-
},
|
|
3424
|
+
}, Ci = ({
|
|
3494
3425
|
wrapperProps: t,
|
|
3495
3426
|
dataTableProps: r,
|
|
3496
3427
|
headerProps: i,
|
|
3497
3428
|
footerProps: o
|
|
3498
3429
|
}) => {
|
|
3499
3430
|
var m;
|
|
3500
|
-
const n = ne(null), [l, h] =
|
|
3431
|
+
const n = ne(null), [l, h] = E(
|
|
3501
3432
|
(r == null ? void 0 : r.defaultFrozenCount) ?? 0
|
|
3502
3433
|
), a = (i == null ? void 0 : i.show) ?? !0, u = ne(null), d = (m = r == null ? void 0 : r.pagination) == null ? void 0 : m.totalData;
|
|
3503
3434
|
typeof d == "number" && (u.current = d);
|
|
3504
3435
|
const g = (o == null ? void 0 : o.showFooter) ?? (d === void 0 ? u.current !== 0 : d !== 0);
|
|
3505
|
-
return /* @__PURE__ */ s(
|
|
3506
|
-
a && /* @__PURE__ */ e(
|
|
3436
|
+
return /* @__PURE__ */ s(hi, { ...t, children: [
|
|
3437
|
+
a && /* @__PURE__ */ e(ui, { ...i }),
|
|
3507
3438
|
/* @__PURE__ */ e(
|
|
3508
3439
|
f,
|
|
3509
3440
|
{
|
|
@@ -3514,7 +3445,7 @@ const zr = (t, r) => {
|
|
|
3514
3445
|
overflowX: "auto"
|
|
3515
3446
|
},
|
|
3516
3447
|
children: r ? /* @__PURE__ */ e(
|
|
3517
|
-
|
|
3448
|
+
xi,
|
|
3518
3449
|
{
|
|
3519
3450
|
...r,
|
|
3520
3451
|
scrollParentRef: n,
|
|
@@ -3525,7 +3456,7 @@ const zr = (t, r) => {
|
|
|
3525
3456
|
}
|
|
3526
3457
|
),
|
|
3527
3458
|
g && /* @__PURE__ */ e(
|
|
3528
|
-
|
|
3459
|
+
gi,
|
|
3529
3460
|
{
|
|
3530
3461
|
pagination: r == null ? void 0 : r.pagination,
|
|
3531
3462
|
pageKey: r == null ? void 0 : r.pageKey,
|
|
@@ -3537,22 +3468,22 @@ const zr = (t, r) => {
|
|
|
3537
3468
|
)
|
|
3538
3469
|
] });
|
|
3539
3470
|
};
|
|
3540
|
-
function
|
|
3541
|
-
return
|
|
3471
|
+
function vi(t) {
|
|
3472
|
+
return xe(
|
|
3542
3473
|
t
|
|
3543
3474
|
);
|
|
3544
3475
|
}
|
|
3545
|
-
const
|
|
3476
|
+
const Jn = vi(Ci), bt = ({
|
|
3546
3477
|
of: t,
|
|
3547
3478
|
render: r
|
|
3548
|
-
}) => Cr.toArray(t == null ? void 0 : t.map((i, o, n) => r(i, o, n))),
|
|
3479
|
+
}) => Cr.toArray(t == null ? void 0 : t.map((i, o, n) => r(i, o, n))), N = ({
|
|
3549
3480
|
condition: t,
|
|
3550
3481
|
fallback: r,
|
|
3551
3482
|
children: i,
|
|
3552
3483
|
loading: o,
|
|
3553
3484
|
isLoading: n
|
|
3554
3485
|
}) => /* @__PURE__ */ e(q, { children: n ? o : t ? i : r }), j = (t) => /* @__PURE__ */ e(
|
|
3555
|
-
|
|
3486
|
+
v,
|
|
3556
3487
|
{
|
|
3557
3488
|
...t,
|
|
3558
3489
|
fontFamily: "Poppins",
|
|
@@ -3561,7 +3492,7 @@ const Kn = ki(wi), bt = ({
|
|
|
3561
3492
|
color: t.color || "gray-700",
|
|
3562
3493
|
children: t.children
|
|
3563
3494
|
}
|
|
3564
|
-
), De = (t) => /* @__PURE__ */ e(
|
|
3495
|
+
), De = (t) => /* @__PURE__ */ e(v, { color: "red-600", fontSize: "sm", children: t.message }), bi = ({
|
|
3565
3496
|
size: t = "md",
|
|
3566
3497
|
direction: r = "vertical",
|
|
3567
3498
|
requiredTitle: i = "(Required)",
|
|
@@ -3578,7 +3509,7 @@ const Kn = ki(wi), bt = ({
|
|
|
3578
3509
|
...n.containerProps,
|
|
3579
3510
|
children: [
|
|
3580
3511
|
n.title && /* @__PURE__ */ e(
|
|
3581
|
-
|
|
3512
|
+
N,
|
|
3582
3513
|
{
|
|
3583
3514
|
condition: !!n.inputProps.required,
|
|
3584
3515
|
fallback: /* @__PURE__ */ s(
|
|
@@ -3589,7 +3520,7 @@ const Kn = ki(wi), bt = ({
|
|
|
3589
3520
|
fullWidth: o,
|
|
3590
3521
|
children: [
|
|
3591
3522
|
/* @__PURE__ */ e(j, { children: n.title }),
|
|
3592
|
-
/* @__PURE__ */ e(
|
|
3523
|
+
/* @__PURE__ */ e(v, { fontSize: t, color: "gray-500", children: n.description })
|
|
3593
3524
|
]
|
|
3594
3525
|
}
|
|
3595
3526
|
),
|
|
@@ -3603,7 +3534,7 @@ const Kn = ki(wi), bt = ({
|
|
|
3603
3534
|
/* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
3604
3535
|
/* @__PURE__ */ e(j, { fontSize: t, children: n.title }),
|
|
3605
3536
|
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
3606
|
-
/* @__PURE__ */ e(
|
|
3537
|
+
/* @__PURE__ */ e(N, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
3607
3538
|
ue,
|
|
3608
3539
|
{
|
|
3609
3540
|
label: (u = n.tooltip) == null ? void 0 : u.label,
|
|
@@ -3623,7 +3554,7 @@ const Kn = ki(wi), bt = ({
|
|
|
3623
3554
|
}
|
|
3624
3555
|
) })
|
|
3625
3556
|
] }),
|
|
3626
|
-
/* @__PURE__ */ e(
|
|
3557
|
+
/* @__PURE__ */ e(N, { condition: !!n.description, children: /* @__PURE__ */ e(v, { fontSize: t, color: "gray-500", children: n.description }) })
|
|
3627
3558
|
]
|
|
3628
3559
|
}
|
|
3629
3560
|
)
|
|
@@ -3631,7 +3562,7 @@ const Kn = ki(wi), bt = ({
|
|
|
3631
3562
|
),
|
|
3632
3563
|
/* @__PURE__ */ s(f, { gap: "xs", fullWidth: n.inputProps.fullWidth || !1, children: [
|
|
3633
3564
|
/* @__PURE__ */ e(
|
|
3634
|
-
|
|
3565
|
+
gt,
|
|
3635
3566
|
{
|
|
3636
3567
|
ref: n.inputRef,
|
|
3637
3568
|
size: t,
|
|
@@ -3646,7 +3577,7 @@ const Kn = ki(wi), bt = ({
|
|
|
3646
3577
|
]
|
|
3647
3578
|
}
|
|
3648
3579
|
);
|
|
3649
|
-
},
|
|
3580
|
+
}, Di = ({
|
|
3650
3581
|
size: t = "md",
|
|
3651
3582
|
direction: r = "vertical",
|
|
3652
3583
|
requiredTitle: i = "(Required)",
|
|
@@ -3663,7 +3594,7 @@ const Kn = ki(wi), bt = ({
|
|
|
3663
3594
|
onClick: n.onClickContainer,
|
|
3664
3595
|
children: [
|
|
3665
3596
|
n.title && /* @__PURE__ */ e(
|
|
3666
|
-
|
|
3597
|
+
N,
|
|
3667
3598
|
{
|
|
3668
3599
|
condition: !!n.inputProps.required,
|
|
3669
3600
|
fallback: /* @__PURE__ */ s(
|
|
@@ -3674,7 +3605,7 @@ const Kn = ki(wi), bt = ({
|
|
|
3674
3605
|
fullWidth: o,
|
|
3675
3606
|
children: [
|
|
3676
3607
|
/* @__PURE__ */ e(j, { children: n.title }),
|
|
3677
|
-
/* @__PURE__ */ e(
|
|
3608
|
+
/* @__PURE__ */ e(v, { fontSize: t, color: "gray-500", children: n.description })
|
|
3678
3609
|
]
|
|
3679
3610
|
}
|
|
3680
3611
|
),
|
|
@@ -3688,7 +3619,7 @@ const Kn = ki(wi), bt = ({
|
|
|
3688
3619
|
/* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
3689
3620
|
/* @__PURE__ */ e(j, { fontSize: t, children: n.title }),
|
|
3690
3621
|
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
3691
|
-
/* @__PURE__ */ e(
|
|
3622
|
+
/* @__PURE__ */ e(N, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
3692
3623
|
ue,
|
|
3693
3624
|
{
|
|
3694
3625
|
label: (u = n.tooltip) == null ? void 0 : u.label,
|
|
@@ -3708,7 +3639,7 @@ const Kn = ki(wi), bt = ({
|
|
|
3708
3639
|
}
|
|
3709
3640
|
) })
|
|
3710
3641
|
] }),
|
|
3711
|
-
/* @__PURE__ */ e(
|
|
3642
|
+
/* @__PURE__ */ e(N, { condition: !!n.description, children: /* @__PURE__ */ e(v, { fontSize: t, color: "gray-500", children: n.description }) })
|
|
3712
3643
|
]
|
|
3713
3644
|
}
|
|
3714
3645
|
)
|
|
@@ -3722,7 +3653,7 @@ const Kn = ki(wi), bt = ({
|
|
|
3722
3653
|
width: n.inputProps.fullWidth ? "100%" : r === "horizontal" && n.customWidth ? n.customWidth : r === "horizontal" ? "343px" : ""
|
|
3723
3654
|
},
|
|
3724
3655
|
children: /* @__PURE__ */ e(
|
|
3725
|
-
|
|
3656
|
+
ft,
|
|
3726
3657
|
{
|
|
3727
3658
|
size: t,
|
|
3728
3659
|
...n.inputProps,
|
|
@@ -3737,9 +3668,9 @@ const Kn = ki(wi), bt = ({
|
|
|
3737
3668
|
]
|
|
3738
3669
|
}
|
|
3739
3670
|
);
|
|
3740
|
-
},
|
|
3671
|
+
}, wi = (t, r) => typeof t == "string" && t || r === "error" ? "var(--sa-border-danger)" : "var(--sa-border-subtle)", ki = (t) => {
|
|
3741
3672
|
var a;
|
|
3742
|
-
const [r, i] =
|
|
3673
|
+
const [r, i] = E(!1), o = (u) => {
|
|
3743
3674
|
u.preventDefault(), u.stopPropagation();
|
|
3744
3675
|
}, n = (u) => {
|
|
3745
3676
|
u.preventDefault(), u.stopPropagation(), u.dataTransfer && t.handleOnFileChange(u.dataTransfer.files.item(0));
|
|
@@ -3764,7 +3695,7 @@ const Kn = ki(wi), bt = ({
|
|
|
3764
3695
|
paddingBlock: "md",
|
|
3765
3696
|
borderRadius: "rounded-md",
|
|
3766
3697
|
style: {
|
|
3767
|
-
border: r ? "1px solid var(--sa-border-info)" : `1px solid ${
|
|
3698
|
+
border: r ? "1px solid var(--sa-border-info)" : `1px solid ${wi(t.errorMessage, t.status)}`
|
|
3768
3699
|
},
|
|
3769
3700
|
children: [
|
|
3770
3701
|
/* @__PURE__ */ e(
|
|
@@ -3781,7 +3712,7 @@ const Kn = ki(wi), bt = ({
|
|
|
3781
3712
|
/* @__PURE__ */ s(_, { direction: "column", gap: "xs", children: [
|
|
3782
3713
|
/* @__PURE__ */ s(_, { direction: "row", gap: "xs", children: [
|
|
3783
3714
|
/* @__PURE__ */ e(
|
|
3784
|
-
|
|
3715
|
+
v,
|
|
3785
3716
|
{
|
|
3786
3717
|
fontWeight: "medium",
|
|
3787
3718
|
color: "gray-500",
|
|
@@ -3791,7 +3722,7 @@ const Kn = ki(wi), bt = ({
|
|
|
3791
3722
|
}
|
|
3792
3723
|
),
|
|
3793
3724
|
/* @__PURE__ */ e(
|
|
3794
|
-
|
|
3725
|
+
v,
|
|
3795
3726
|
{
|
|
3796
3727
|
fontWeight: "medium",
|
|
3797
3728
|
style: { textWrap: "nowrap" },
|
|
@@ -3800,23 +3731,23 @@ const Kn = ki(wi), bt = ({
|
|
|
3800
3731
|
}
|
|
3801
3732
|
)
|
|
3802
3733
|
] }),
|
|
3803
|
-
/* @__PURE__ */ e(
|
|
3734
|
+
/* @__PURE__ */ e(v, { fontSize: "sm", color: "gray-500", children: (a = t.fileSupports) == null ? void 0 : a.map((u) => u.toLocaleUpperCase()).join(", ") })
|
|
3804
3735
|
] })
|
|
3805
3736
|
]
|
|
3806
3737
|
}
|
|
3807
3738
|
);
|
|
3808
3739
|
};
|
|
3809
|
-
function
|
|
3740
|
+
function Qn(t) {
|
|
3810
3741
|
return t.split(" ").map((r) => r[0]).join("").slice(0, 2).toUpperCase();
|
|
3811
3742
|
}
|
|
3812
|
-
const
|
|
3743
|
+
const Si = (t) => {
|
|
3813
3744
|
const r = {
|
|
3814
3745
|
day: "2-digit",
|
|
3815
3746
|
month: "short",
|
|
3816
3747
|
year: "numeric"
|
|
3817
3748
|
};
|
|
3818
3749
|
return t.toLocaleDateString("id-ID", r);
|
|
3819
|
-
},
|
|
3750
|
+
}, Pn = (t) => {
|
|
3820
3751
|
const r = {
|
|
3821
3752
|
Jan: 0,
|
|
3822
3753
|
Feb: 1,
|
|
@@ -3836,7 +3767,7 @@ const Li = (t) => {
|
|
|
3836
3767
|
const o = parseInt(i[0], 10), n = r[i[1]], l = parseInt(i[2], 10);
|
|
3837
3768
|
return isNaN(o) || isNaN(n) || isNaN(l) ? null : new Date(l, n, o);
|
|
3838
3769
|
};
|
|
3839
|
-
function
|
|
3770
|
+
function Yn(t, r = !0) {
|
|
3840
3771
|
if (!t)
|
|
3841
3772
|
return "Rp 0";
|
|
3842
3773
|
const i = typeof t == "number" ? t.toString() : t;
|
|
@@ -3851,52 +3782,52 @@ String.prototype.toTitleCase = function() {
|
|
|
3851
3782
|
String.prototype.toNumber = function() {
|
|
3852
3783
|
return Number(this);
|
|
3853
3784
|
};
|
|
3854
|
-
const
|
|
3785
|
+
const Xn = (t) => {
|
|
3855
3786
|
const r = t.split(" ");
|
|
3856
3787
|
let i = r[0].charAt(0);
|
|
3857
3788
|
return r.length > 1 && (i += "" + r[1].charAt(0)), i.toUpperCase();
|
|
3858
3789
|
};
|
|
3859
|
-
function
|
|
3790
|
+
function Kn(t) {
|
|
3860
3791
|
const r = typeof t == "string" ? new Date(t) : t;
|
|
3861
3792
|
if (isNaN(r.getTime()))
|
|
3862
3793
|
throw new Error("Invalid date format");
|
|
3863
3794
|
const i = r.getFullYear(), o = String(r.getMonth() + 1).padStart(2, "0"), n = String(r.getDate()).padStart(2, "0");
|
|
3864
3795
|
return `${i}-${o}-${n}`;
|
|
3865
3796
|
}
|
|
3866
|
-
const
|
|
3797
|
+
const Fi = "sa-admin", ye = (t) => `var(--${Fi}-${t})`, eo = {
|
|
3867
3798
|
base: {
|
|
3868
|
-
borderColor:
|
|
3869
|
-
textColor:
|
|
3870
|
-
iconColor:
|
|
3871
|
-
placeholderColor:
|
|
3799
|
+
borderColor: ye("base-border-color"),
|
|
3800
|
+
textColor: ye("base-text-color"),
|
|
3801
|
+
iconColor: ye("base-icon-color"),
|
|
3802
|
+
placeholderColor: ye("base-placeholder-color")
|
|
3872
3803
|
},
|
|
3873
3804
|
document: {
|
|
3874
|
-
bgColor:
|
|
3805
|
+
bgColor: ye("document-bg-color")
|
|
3875
3806
|
},
|
|
3876
3807
|
sidebar: {
|
|
3877
|
-
bgColor:
|
|
3878
|
-
borderColor:
|
|
3879
|
-
maxWidth:
|
|
3880
|
-
width:
|
|
3881
|
-
collapseWidth:
|
|
3882
|
-
collapseV2Width:
|
|
3808
|
+
bgColor: ye("sidebar-bg-color"),
|
|
3809
|
+
borderColor: ye("sidebar-border-color"),
|
|
3810
|
+
maxWidth: ye("sidebar-max-width"),
|
|
3811
|
+
width: ye("sidebar-width"),
|
|
3812
|
+
collapseWidth: ye("sidebar-collapse-width"),
|
|
3813
|
+
collapseV2Width: ye("sidebar-v2-collapse-width")
|
|
3883
3814
|
}
|
|
3884
|
-
},
|
|
3815
|
+
}, to = 24 * 60 * 60 * 1e3, ro = (t) => {
|
|
3885
3816
|
const r = "14px poppins", o = document.createElement("canvas").getContext("2d");
|
|
3886
3817
|
o.font = r;
|
|
3887
3818
|
const n = o.measureText(t).width;
|
|
3888
3819
|
return Number(Math.ceil(n));
|
|
3889
|
-
},
|
|
3890
|
-
function
|
|
3820
|
+
}, Ei = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, Mi = /--+/, Li = /-$/;
|
|
3821
|
+
function io(t, r) {
|
|
3891
3822
|
return JSON.stringify(t) !== JSON.stringify(r);
|
|
3892
3823
|
}
|
|
3893
|
-
function
|
|
3824
|
+
function no(t) {
|
|
3894
3825
|
return /^(?:\+62|62|0)8[1-9][0-9]{7,10}$/.test(t);
|
|
3895
3826
|
}
|
|
3896
|
-
function
|
|
3827
|
+
function oo(t) {
|
|
3897
3828
|
return /^[A-Za-z\s]+$/.test(t);
|
|
3898
3829
|
}
|
|
3899
|
-
const
|
|
3830
|
+
const lo = (t) => {
|
|
3900
3831
|
const r = /^[0-9]$/, i = [
|
|
3901
3832
|
"ArrowLeft",
|
|
3902
3833
|
"ArrowRight",
|
|
@@ -3908,7 +3839,7 @@ const uo = (t) => {
|
|
|
3908
3839
|
"Tab"
|
|
3909
3840
|
];
|
|
3910
3841
|
(t.ctrlKey || t.metaKey) && (t.key === "a" || t.key === "c" || t.key === "v") || !r.test(t.key) && !i.includes(t.key) && t.preventDefault();
|
|
3911
|
-
},
|
|
3842
|
+
}, co = (t) => {
|
|
3912
3843
|
const r = /^[0-9]$/, i = [
|
|
3913
3844
|
"ArrowLeft",
|
|
3914
3845
|
"ArrowRight",
|
|
@@ -3920,7 +3851,7 @@ const uo = (t) => {
|
|
|
3920
3851
|
"Tab"
|
|
3921
3852
|
];
|
|
3922
3853
|
(t.ctrlKey || t.metaKey) && t.key === "v" || r.test(t.key) && !i.includes(t.key) && t.preventDefault();
|
|
3923
|
-
},
|
|
3854
|
+
}, ao = (t) => {
|
|
3924
3855
|
const r = /^[0-9.]$/, i = [
|
|
3925
3856
|
"ArrowLeft",
|
|
3926
3857
|
"ArrowRight",
|
|
@@ -3932,11 +3863,11 @@ const uo = (t) => {
|
|
|
3932
3863
|
"Tab"
|
|
3933
3864
|
];
|
|
3934
3865
|
(t.ctrlKey || t.metaKey) && t.key === "v" || !r.test(t.key) && !i.includes(t.key) && t.preventDefault();
|
|
3935
|
-
},
|
|
3936
|
-
function
|
|
3937
|
-
return !(
|
|
3866
|
+
}, so = (t) => Ei.test(t);
|
|
3867
|
+
function ho(t) {
|
|
3868
|
+
return !(Mi.test(t) || Li.test(t));
|
|
3938
3869
|
}
|
|
3939
|
-
const
|
|
3870
|
+
const uo = (t) => {
|
|
3940
3871
|
const r = [
|
|
3941
3872
|
"ArrowLeft",
|
|
3942
3873
|
"ArrowRight",
|
|
@@ -3953,7 +3884,7 @@ const po = (t) => {
|
|
|
3953
3884
|
return;
|
|
3954
3885
|
const i = t.currentTarget.value;
|
|
3955
3886
|
/^[0-9]$/.test(t.key) || t.key === "." && !i.includes(".") || t.key === "-" && i.length === 0 && !i.includes("-") || r.includes(t.key) || t.preventDefault();
|
|
3956
|
-
},
|
|
3887
|
+
}, fo = (t) => {
|
|
3957
3888
|
const r = document.getElementById(t);
|
|
3958
3889
|
if (r) {
|
|
3959
3890
|
const i = r.getBoundingClientRect(), o = window.scrollY + i.top - 80;
|
|
@@ -3963,7 +3894,7 @@ const po = (t) => {
|
|
|
3963
3894
|
});
|
|
3964
3895
|
}
|
|
3965
3896
|
};
|
|
3966
|
-
function
|
|
3897
|
+
function Wi(t) {
|
|
3967
3898
|
const r = t.toLowerCase();
|
|
3968
3899
|
if (["kb", "mb", "gb"].find((l) => r.endsWith(l)))
|
|
3969
3900
|
return t;
|
|
@@ -3972,11 +3903,11 @@ function Hi(t) {
|
|
|
3972
3903
|
throw new Error("Invalid size format");
|
|
3973
3904
|
return n >= 1e6 ? `${(n / 1e6).toFixed(2)}MB` : n >= 1e3 ? `${(n / 1e3).toFixed(2)}KB` : `${n}B`;
|
|
3974
3905
|
}
|
|
3975
|
-
function
|
|
3906
|
+
function Bi(t) {
|
|
3976
3907
|
const r = t.split("/");
|
|
3977
3908
|
return r[r.length - 1];
|
|
3978
3909
|
}
|
|
3979
|
-
const
|
|
3910
|
+
const Ii = (t) => {
|
|
3980
3911
|
var r, i;
|
|
3981
3912
|
return /* @__PURE__ */ s(
|
|
3982
3913
|
f,
|
|
@@ -4013,7 +3944,7 @@ const Ri = (t) => {
|
|
|
4013
3944
|
),
|
|
4014
3945
|
/* @__PURE__ */ s(_, { direction: "column", style: { minWidth: 0, flex: 1 }, children: [
|
|
4015
3946
|
/* @__PURE__ */ e(
|
|
4016
|
-
|
|
3947
|
+
v,
|
|
4017
3948
|
{
|
|
4018
3949
|
fontWeight: "bold",
|
|
4019
3950
|
style: {
|
|
@@ -4021,22 +3952,22 @@ const Ri = (t) => {
|
|
|
4021
3952
|
whiteSpace: "nowrap",
|
|
4022
3953
|
overflow: "hidden"
|
|
4023
3954
|
},
|
|
4024
|
-
children: t.defaultFile ?
|
|
3955
|
+
children: t.defaultFile ? Bi(t.defaultFile.url) : (r = t.fileSelected) == null ? void 0 : r.name
|
|
4025
3956
|
}
|
|
4026
3957
|
),
|
|
4027
3958
|
t.defaultFile ? (t.defaultFile.size || t.defaultFile.date) && /* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4028
|
-
t.defaultFile.size && /* @__PURE__ */ e(
|
|
3959
|
+
t.defaultFile.size && /* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", children: t.defaultFile.size }),
|
|
4029
3960
|
t.defaultFile.size && t.defaultFile.date && /* @__PURE__ */ e(w, { name: "Dot", size: "xs" }),
|
|
4030
|
-
t.defaultFile.date && /* @__PURE__ */ e(
|
|
3961
|
+
t.defaultFile.date && /* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: t.defaultFile.date })
|
|
4031
3962
|
] }) : /* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4032
|
-
/* @__PURE__ */ e(
|
|
3963
|
+
/* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", children: Wi(((i = t.fileSelected) == null ? void 0 : i.size.toString()) || "100000") }),
|
|
4033
3964
|
/* @__PURE__ */ e(w, { name: "Dot", size: "xs" }),
|
|
4034
|
-
/* @__PURE__ */ e(
|
|
3965
|
+
/* @__PURE__ */ e(v, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: Si(/* @__PURE__ */ new Date()) })
|
|
4035
3966
|
] })
|
|
4036
3967
|
] })
|
|
4037
3968
|
] }),
|
|
4038
3969
|
/* @__PURE__ */ e(
|
|
4039
|
-
|
|
3970
|
+
O,
|
|
4040
3971
|
{
|
|
4041
3972
|
size: "xs",
|
|
4042
3973
|
variant: "tertiary",
|
|
@@ -4051,7 +3982,7 @@ const Ri = (t) => {
|
|
|
4051
3982
|
]
|
|
4052
3983
|
}
|
|
4053
3984
|
);
|
|
4054
|
-
},
|
|
3985
|
+
}, Hi = ({
|
|
4055
3986
|
status: t = "default",
|
|
4056
3987
|
labelPosition: r = "outside-top",
|
|
4057
3988
|
...i
|
|
@@ -4064,7 +3995,7 @@ const Ri = (t) => {
|
|
|
4064
3995
|
}
|
|
4065
3996
|
o.current && o.current.click();
|
|
4066
3997
|
}, l = oe("md"), h = t === "error" || typeof i.errorMessage == "string" && !!i.errorMessage, a = i.label ? /* @__PURE__ */ s(_, { direction: "row", align: "center", gap: "xs", children: [
|
|
4067
|
-
/* @__PURE__ */ e(
|
|
3998
|
+
/* @__PURE__ */ e(v, { style: { fontSize: "14px", fontWeight: 500, color: "var(--sa-text-primary)" }, children: i.label }),
|
|
4068
3999
|
i.optional && /* @__PURE__ */ e("span", { style: {
|
|
4069
4000
|
background: "var(--sa-background-neutral)",
|
|
4070
4001
|
border: "1px solid var(--sa-border-subtle)",
|
|
@@ -4078,10 +4009,10 @@ const Ri = (t) => {
|
|
|
4078
4009
|
alignItems: "center"
|
|
4079
4010
|
}, children: "Optional" }),
|
|
4080
4011
|
i.required && /* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 500, color: "var(--sa-text-error)" }, children: "*" })
|
|
4081
|
-
] }) : null, u = i.description ? /* @__PURE__ */ e(
|
|
4082
|
-
i.helperText && /* @__PURE__ */ e(
|
|
4083
|
-
i.errorText && t === "error" && /* @__PURE__ */ e(
|
|
4084
|
-
i.errorMessage && !i.errorText && /* @__PURE__ */ e(
|
|
4012
|
+
] }) : null, u = i.description ? /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: i.description }) : null, d = /* @__PURE__ */ s(q, { children: [
|
|
4013
|
+
i.helperText && /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: i.helperText }),
|
|
4014
|
+
i.errorText && t === "error" && /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-error, #a4133c)", lineHeight: "18px" }, children: i.errorText }),
|
|
4015
|
+
i.errorMessage && !i.errorText && /* @__PURE__ */ e(v, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-error, #a4133c)", lineHeight: "18px" }, children: i.errorMessage })
|
|
4085
4016
|
] }), g = /* @__PURE__ */ e(
|
|
4086
4017
|
"input",
|
|
4087
4018
|
{
|
|
@@ -4089,8 +4020,8 @@ const Ri = (t) => {
|
|
|
4089
4020
|
style: { display: "none" },
|
|
4090
4021
|
ref: o,
|
|
4091
4022
|
onChange: (b) => {
|
|
4092
|
-
var
|
|
4093
|
-
return i.handleOnChangeFile(((
|
|
4023
|
+
var k;
|
|
4024
|
+
return i.handleOnChangeFile(((k = b.target.files) == null ? void 0 : k.item(0)) || null);
|
|
4094
4025
|
},
|
|
4095
4026
|
accept: (y = i.fileSupportOption) == null ? void 0 : y.map((b) => "." + (b == null ? void 0 : b.toLowerCase())).join(", ")
|
|
4096
4027
|
}
|
|
@@ -4109,7 +4040,7 @@ const Ri = (t) => {
|
|
|
4109
4040
|
children: [
|
|
4110
4041
|
g,
|
|
4111
4042
|
(i.fileSelected || i.defaultFile) && /* @__PURE__ */ e(
|
|
4112
|
-
|
|
4043
|
+
Ii,
|
|
4113
4044
|
{
|
|
4114
4045
|
fileSelected: i.fileSelected,
|
|
4115
4046
|
defaultFile: i.defaultFile,
|
|
@@ -4118,7 +4049,7 @@ const Ri = (t) => {
|
|
|
4118
4049
|
}
|
|
4119
4050
|
),
|
|
4120
4051
|
!i.fileSelected && !i.defaultFile && /* @__PURE__ */ e(
|
|
4121
|
-
|
|
4052
|
+
ki,
|
|
4122
4053
|
{
|
|
4123
4054
|
fileSupports: i.fileSupportOption,
|
|
4124
4055
|
isDesktop: l,
|
|
@@ -4146,7 +4077,7 @@ const Ri = (t) => {
|
|
|
4146
4077
|
m,
|
|
4147
4078
|
d
|
|
4148
4079
|
] });
|
|
4149
|
-
},
|
|
4080
|
+
}, Ai = ({
|
|
4150
4081
|
size: t = "md",
|
|
4151
4082
|
direction: r = "vertical",
|
|
4152
4083
|
requiredTitle: i = "(Required)",
|
|
@@ -4163,7 +4094,7 @@ const Ri = (t) => {
|
|
|
4163
4094
|
...n.containerProps,
|
|
4164
4095
|
children: [
|
|
4165
4096
|
n.title && /* @__PURE__ */ e(
|
|
4166
|
-
|
|
4097
|
+
N,
|
|
4167
4098
|
{
|
|
4168
4099
|
condition: !!n.inputProps.required,
|
|
4169
4100
|
fallback: /* @__PURE__ */ s(
|
|
@@ -4174,7 +4105,7 @@ const Ri = (t) => {
|
|
|
4174
4105
|
fullWidth: o,
|
|
4175
4106
|
children: [
|
|
4176
4107
|
/* @__PURE__ */ e(j, { children: n.title }),
|
|
4177
|
-
/* @__PURE__ */ e(
|
|
4108
|
+
/* @__PURE__ */ e(v, { fontSize: t, color: "gray-500", children: n.description })
|
|
4178
4109
|
]
|
|
4179
4110
|
}
|
|
4180
4111
|
),
|
|
@@ -4188,7 +4119,7 @@ const Ri = (t) => {
|
|
|
4188
4119
|
/* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4189
4120
|
/* @__PURE__ */ e(j, { fontSize: t, children: n.title }),
|
|
4190
4121
|
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
4191
|
-
/* @__PURE__ */ e(
|
|
4122
|
+
/* @__PURE__ */ e(N, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
4192
4123
|
ue,
|
|
4193
4124
|
{
|
|
4194
4125
|
label: (u = n.tooltip) == null ? void 0 : u.label,
|
|
@@ -4208,7 +4139,7 @@ const Ri = (t) => {
|
|
|
4208
4139
|
}
|
|
4209
4140
|
) })
|
|
4210
4141
|
] }),
|
|
4211
|
-
/* @__PURE__ */ e(
|
|
4142
|
+
/* @__PURE__ */ e(N, { condition: !!n.description, children: /* @__PURE__ */ e(v, { fontSize: t, color: "gray-500", children: n.description }) })
|
|
4212
4143
|
]
|
|
4213
4144
|
}
|
|
4214
4145
|
)
|
|
@@ -4216,7 +4147,7 @@ const Ri = (t) => {
|
|
|
4216
4147
|
),
|
|
4217
4148
|
/* @__PURE__ */ s(_, { direction: "column", gap: "xs", children: [
|
|
4218
4149
|
/* @__PURE__ */ e(
|
|
4219
|
-
|
|
4150
|
+
Hi,
|
|
4220
4151
|
{
|
|
4221
4152
|
...n.inputProps,
|
|
4222
4153
|
status: n.errorMessage ? "error" : "default"
|
|
@@ -4227,7 +4158,7 @@ const Ri = (t) => {
|
|
|
4227
4158
|
]
|
|
4228
4159
|
}
|
|
4229
4160
|
);
|
|
4230
|
-
},
|
|
4161
|
+
}, Ri = ({
|
|
4231
4162
|
size: t = "md",
|
|
4232
4163
|
direction: r = "vertical",
|
|
4233
4164
|
requiredTitle: i = "(Required)",
|
|
@@ -4245,7 +4176,7 @@ const Ri = (t) => {
|
|
|
4245
4176
|
...l.containerProps,
|
|
4246
4177
|
children: [
|
|
4247
4178
|
l.title && /* @__PURE__ */ e(
|
|
4248
|
-
|
|
4179
|
+
N,
|
|
4249
4180
|
{
|
|
4250
4181
|
condition: !!n,
|
|
4251
4182
|
fallback: /* @__PURE__ */ s(
|
|
@@ -4256,7 +4187,7 @@ const Ri = (t) => {
|
|
|
4256
4187
|
fullWidth: o,
|
|
4257
4188
|
children: [
|
|
4258
4189
|
/* @__PURE__ */ e(j, { children: l.title }),
|
|
4259
|
-
/* @__PURE__ */ e(
|
|
4190
|
+
/* @__PURE__ */ e(pe.Body3, { props: { color: "gray-500" }, children: l.description })
|
|
4260
4191
|
]
|
|
4261
4192
|
}
|
|
4262
4193
|
),
|
|
@@ -4270,7 +4201,7 @@ const Ri = (t) => {
|
|
|
4270
4201
|
/* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4271
4202
|
/* @__PURE__ */ e(j, { fontSize: t, children: l.title }),
|
|
4272
4203
|
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
4273
|
-
/* @__PURE__ */ e(
|
|
4204
|
+
/* @__PURE__ */ e(N, { condition: !!((u = l.tooltip) != null && u.label), children: /* @__PURE__ */ e(
|
|
4274
4205
|
ue,
|
|
4275
4206
|
{
|
|
4276
4207
|
label: (d = l.tooltip) == null ? void 0 : d.label,
|
|
@@ -4290,7 +4221,7 @@ const Ri = (t) => {
|
|
|
4290
4221
|
}
|
|
4291
4222
|
) })
|
|
4292
4223
|
] }),
|
|
4293
|
-
/* @__PURE__ */ e(
|
|
4224
|
+
/* @__PURE__ */ e(N, { condition: !!l.description, children: /* @__PURE__ */ e(v, { fontSize: t, color: "gray-500", children: l.description }) })
|
|
4294
4225
|
]
|
|
4295
4226
|
}
|
|
4296
4227
|
)
|
|
@@ -4318,7 +4249,7 @@ const Ri = (t) => {
|
|
|
4318
4249
|
...l.badgeContainerProps,
|
|
4319
4250
|
children: [
|
|
4320
4251
|
/* @__PURE__ */ e(
|
|
4321
|
-
|
|
4252
|
+
ct,
|
|
4322
4253
|
{
|
|
4323
4254
|
name: y.name,
|
|
4324
4255
|
value: y.id,
|
|
@@ -4332,7 +4263,7 @@ const Ri = (t) => {
|
|
|
4332
4263
|
]
|
|
4333
4264
|
}
|
|
4334
4265
|
) : /* @__PURE__ */ e(
|
|
4335
|
-
|
|
4266
|
+
ct,
|
|
4336
4267
|
{
|
|
4337
4268
|
name: y.name,
|
|
4338
4269
|
value: y.id,
|
|
@@ -4350,7 +4281,7 @@ const Ri = (t) => {
|
|
|
4350
4281
|
]
|
|
4351
4282
|
}
|
|
4352
4283
|
);
|
|
4353
|
-
},
|
|
4284
|
+
}, Vi = ({
|
|
4354
4285
|
position: t = "vertical",
|
|
4355
4286
|
size: r = "md",
|
|
4356
4287
|
fullWidth: i = !1,
|
|
@@ -4364,7 +4295,7 @@ const Ri = (t) => {
|
|
|
4364
4295
|
gap: t === "horizontal-inline" || t === "horizontal-block" ? "spacing-96" : "sm",
|
|
4365
4296
|
direction: t === "horizontal-inline" || t === "horizontal-block" ? "row" : "column",
|
|
4366
4297
|
children: [
|
|
4367
|
-
/* @__PURE__ */ e(
|
|
4298
|
+
/* @__PURE__ */ e(N, { condition: !!o.description || !!o.title, children: /* @__PURE__ */ s(
|
|
4368
4299
|
f,
|
|
4369
4300
|
{
|
|
4370
4301
|
direction: "column",
|
|
@@ -4372,7 +4303,7 @@ const Ri = (t) => {
|
|
|
4372
4303
|
fullWidth: i,
|
|
4373
4304
|
children: [
|
|
4374
4305
|
o.title && /* @__PURE__ */ e(j, { children: o.title }),
|
|
4375
|
-
/* @__PURE__ */ e(
|
|
4306
|
+
/* @__PURE__ */ e(N, { condition: !!o.description, children: /* @__PURE__ */ e(v, { color: "gray-500", children: o.description }) })
|
|
4376
4307
|
]
|
|
4377
4308
|
}
|
|
4378
4309
|
) }),
|
|
@@ -4409,7 +4340,7 @@ const Ri = (t) => {
|
|
|
4409
4340
|
a
|
|
4410
4341
|
),
|
|
4411
4342
|
m && /* @__PURE__ */ e(
|
|
4412
|
-
|
|
4343
|
+
v,
|
|
4413
4344
|
{
|
|
4414
4345
|
color: "gray-500",
|
|
4415
4346
|
style: {
|
|
@@ -4428,7 +4359,7 @@ const Ri = (t) => {
|
|
|
4428
4359
|
]
|
|
4429
4360
|
}
|
|
4430
4361
|
);
|
|
4431
|
-
},
|
|
4362
|
+
}, zi = ({
|
|
4432
4363
|
size: t = "md",
|
|
4433
4364
|
direction: r = "vertical",
|
|
4434
4365
|
requiredTitle: i = "(Required)",
|
|
@@ -4445,7 +4376,7 @@ const Ri = (t) => {
|
|
|
4445
4376
|
...n.containerProps,
|
|
4446
4377
|
children: [
|
|
4447
4378
|
n.title && /* @__PURE__ */ e(
|
|
4448
|
-
|
|
4379
|
+
N,
|
|
4449
4380
|
{
|
|
4450
4381
|
condition: !!n.inputProps.required,
|
|
4451
4382
|
fallback: /* @__PURE__ */ s(
|
|
@@ -4456,7 +4387,7 @@ const Ri = (t) => {
|
|
|
4456
4387
|
fullWidth: o,
|
|
4457
4388
|
children: [
|
|
4458
4389
|
/* @__PURE__ */ e(j, { children: n.title }),
|
|
4459
|
-
/* @__PURE__ */ e(
|
|
4390
|
+
/* @__PURE__ */ e(v, { fontSize: t, color: "gray-500", children: n.description })
|
|
4460
4391
|
]
|
|
4461
4392
|
}
|
|
4462
4393
|
),
|
|
@@ -4470,7 +4401,7 @@ const Ri = (t) => {
|
|
|
4470
4401
|
/* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4471
4402
|
/* @__PURE__ */ e(j, { fontSize: t, children: n.title }),
|
|
4472
4403
|
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
4473
|
-
/* @__PURE__ */ e(
|
|
4404
|
+
/* @__PURE__ */ e(N, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
4474
4405
|
ue,
|
|
4475
4406
|
{
|
|
4476
4407
|
label: (u = n.tooltip) == null ? void 0 : u.label,
|
|
@@ -4490,7 +4421,7 @@ const Ri = (t) => {
|
|
|
4490
4421
|
}
|
|
4491
4422
|
) })
|
|
4492
4423
|
] }),
|
|
4493
|
-
/* @__PURE__ */ e(
|
|
4424
|
+
/* @__PURE__ */ e(N, { condition: !!n.description, children: /* @__PURE__ */ e(v, { fontSize: t, color: "gray-500", children: n.description }) })
|
|
4494
4425
|
]
|
|
4495
4426
|
}
|
|
4496
4427
|
)
|
|
@@ -4511,7 +4442,7 @@ const Ri = (t) => {
|
|
|
4511
4442
|
]
|
|
4512
4443
|
}
|
|
4513
4444
|
);
|
|
4514
|
-
},
|
|
4445
|
+
}, Ti = ({
|
|
4515
4446
|
size: t = "md",
|
|
4516
4447
|
direction: r = "vertical",
|
|
4517
4448
|
requiredTitle: i = "(Required)",
|
|
@@ -4529,7 +4460,7 @@ const Ri = (t) => {
|
|
|
4529
4460
|
...l.containerProps,
|
|
4530
4461
|
children: [
|
|
4531
4462
|
l.title && /* @__PURE__ */ e(
|
|
4532
|
-
|
|
4463
|
+
N,
|
|
4533
4464
|
{
|
|
4534
4465
|
condition: o,
|
|
4535
4466
|
fallback: /* @__PURE__ */ s(
|
|
@@ -4540,7 +4471,7 @@ const Ri = (t) => {
|
|
|
4540
4471
|
fullWidth: n,
|
|
4541
4472
|
children: [
|
|
4542
4473
|
/* @__PURE__ */ e(j, { children: l.title }),
|
|
4543
|
-
/* @__PURE__ */ e(
|
|
4474
|
+
/* @__PURE__ */ e(v, { fontSize: t, color: "gray-500", children: l.titleDescription })
|
|
4544
4475
|
]
|
|
4545
4476
|
}
|
|
4546
4477
|
),
|
|
@@ -4554,7 +4485,7 @@ const Ri = (t) => {
|
|
|
4554
4485
|
/* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4555
4486
|
/* @__PURE__ */ e(j, { fontSize: t, children: l.title }),
|
|
4556
4487
|
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
4557
|
-
/* @__PURE__ */ e(
|
|
4488
|
+
/* @__PURE__ */ e(N, { condition: !!((a = l.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
4558
4489
|
ue,
|
|
4559
4490
|
{
|
|
4560
4491
|
label: (u = l.tooltip) == null ? void 0 : u.label,
|
|
@@ -4574,14 +4505,14 @@ const Ri = (t) => {
|
|
|
4574
4505
|
}
|
|
4575
4506
|
) })
|
|
4576
4507
|
] }),
|
|
4577
|
-
/* @__PURE__ */ e(
|
|
4508
|
+
/* @__PURE__ */ e(N, { condition: !!l.titleDescription, children: /* @__PURE__ */ e(v, { fontSize: t, color: "gray-500", children: l.titleDescription }) })
|
|
4578
4509
|
]
|
|
4579
4510
|
}
|
|
4580
4511
|
)
|
|
4581
4512
|
}
|
|
4582
4513
|
),
|
|
4583
4514
|
/* @__PURE__ */ e(
|
|
4584
|
-
|
|
4515
|
+
Ut,
|
|
4585
4516
|
{
|
|
4586
4517
|
checked: l.checked,
|
|
4587
4518
|
onChange: l.onChange,
|
|
@@ -4593,7 +4524,7 @@ const Ri = (t) => {
|
|
|
4593
4524
|
]
|
|
4594
4525
|
}
|
|
4595
4526
|
);
|
|
4596
|
-
},
|
|
4527
|
+
}, Ni = ({
|
|
4597
4528
|
variant: t = "primary",
|
|
4598
4529
|
size: r = "md",
|
|
4599
4530
|
...i
|
|
@@ -4612,18 +4543,18 @@ const Ri = (t) => {
|
|
|
4612
4543
|
};
|
|
4613
4544
|
switch (r) {
|
|
4614
4545
|
case "xs":
|
|
4615
|
-
return /* @__PURE__ */ e(
|
|
4546
|
+
return /* @__PURE__ */ e(pe.Body2, { props: { style: h }, children: i.title });
|
|
4616
4547
|
case "sm":
|
|
4617
4548
|
case "md":
|
|
4618
|
-
return /* @__PURE__ */ e(
|
|
4549
|
+
return /* @__PURE__ */ e(pe.SubH3, { props: { style: h }, children: i.title });
|
|
4619
4550
|
case "lg":
|
|
4620
|
-
return /* @__PURE__ */ e(
|
|
4551
|
+
return /* @__PURE__ */ e(pe.SubH2, { props: { style: h }, children: i.title });
|
|
4621
4552
|
default:
|
|
4622
4553
|
return i.title;
|
|
4623
4554
|
}
|
|
4624
4555
|
};
|
|
4625
4556
|
return /* @__PURE__ */ e(
|
|
4626
|
-
|
|
4557
|
+
O,
|
|
4627
4558
|
{
|
|
4628
4559
|
fullWidth: !0,
|
|
4629
4560
|
disabled: i.disabled,
|
|
@@ -4638,15 +4569,15 @@ const Ri = (t) => {
|
|
|
4638
4569
|
children: l()
|
|
4639
4570
|
}
|
|
4640
4571
|
);
|
|
4641
|
-
},
|
|
4642
|
-
|
|
4572
|
+
}, Oi = (t) => /* @__PURE__ */ e(
|
|
4573
|
+
pe.H5,
|
|
4643
4574
|
{
|
|
4644
4575
|
props: {
|
|
4645
4576
|
...t
|
|
4646
4577
|
},
|
|
4647
4578
|
children: t.title
|
|
4648
4579
|
}
|
|
4649
|
-
),
|
|
4580
|
+
), _i = ({
|
|
4650
4581
|
size: t = "md",
|
|
4651
4582
|
direction: r = "vertical",
|
|
4652
4583
|
requiredTitle: i = "(Required)",
|
|
@@ -4663,7 +4594,7 @@ const Ri = (t) => {
|
|
|
4663
4594
|
onClick: n.onClickContainer,
|
|
4664
4595
|
children: [
|
|
4665
4596
|
n.title && /* @__PURE__ */ e(
|
|
4666
|
-
|
|
4597
|
+
N,
|
|
4667
4598
|
{
|
|
4668
4599
|
condition: !!n.inputProps.required,
|
|
4669
4600
|
fallback: /* @__PURE__ */ s(
|
|
@@ -4674,7 +4605,7 @@ const Ri = (t) => {
|
|
|
4674
4605
|
fullWidth: o,
|
|
4675
4606
|
children: [
|
|
4676
4607
|
/* @__PURE__ */ e(j, { children: n.title }),
|
|
4677
|
-
/* @__PURE__ */ e(
|
|
4608
|
+
/* @__PURE__ */ e(v, { fontSize: t, color: "gray-500", children: n.description })
|
|
4678
4609
|
]
|
|
4679
4610
|
}
|
|
4680
4611
|
),
|
|
@@ -4688,7 +4619,7 @@ const Ri = (t) => {
|
|
|
4688
4619
|
/* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4689
4620
|
/* @__PURE__ */ e(j, { fontSize: t, children: n.title }),
|
|
4690
4621
|
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
4691
|
-
/* @__PURE__ */ e(
|
|
4622
|
+
/* @__PURE__ */ e(N, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
4692
4623
|
ue,
|
|
4693
4624
|
{
|
|
4694
4625
|
label: (u = n.tooltip) == null ? void 0 : u.label,
|
|
@@ -4708,7 +4639,7 @@ const Ri = (t) => {
|
|
|
4708
4639
|
}
|
|
4709
4640
|
) })
|
|
4710
4641
|
] }),
|
|
4711
|
-
/* @__PURE__ */ e(
|
|
4642
|
+
/* @__PURE__ */ e(N, { condition: !!n.description, children: /* @__PURE__ */ e(v, { fontSize: t, color: "gray-500", children: n.description }) })
|
|
4712
4643
|
]
|
|
4713
4644
|
}
|
|
4714
4645
|
)
|
|
@@ -4722,7 +4653,7 @@ const Ri = (t) => {
|
|
|
4722
4653
|
width: r === "horizontal" && n.customWidth ? n.customWidth : r === "horizontal" ? "343px" : ""
|
|
4723
4654
|
},
|
|
4724
4655
|
children: /* @__PURE__ */ e(
|
|
4725
|
-
|
|
4656
|
+
or,
|
|
4726
4657
|
{
|
|
4727
4658
|
size: t,
|
|
4728
4659
|
...n.inputProps,
|
|
@@ -4737,7 +4668,7 @@ const Ri = (t) => {
|
|
|
4737
4668
|
}
|
|
4738
4669
|
);
|
|
4739
4670
|
};
|
|
4740
|
-
async function
|
|
4671
|
+
async function ji(t, r) {
|
|
4741
4672
|
const i = new Image();
|
|
4742
4673
|
i.src = t, await new Promise((l, h) => {
|
|
4743
4674
|
i.onload = l, i.onerror = h;
|
|
@@ -4773,7 +4704,7 @@ const Zt = {
|
|
|
4773
4704
|
"2:3": 2 / 3,
|
|
4774
4705
|
"3:2": 3 / 2,
|
|
4775
4706
|
"32:9": 32 / 9
|
|
4776
|
-
},
|
|
4707
|
+
}, Zi = mt(
|
|
4777
4708
|
({
|
|
4778
4709
|
handleUpload: t,
|
|
4779
4710
|
urlImage: r,
|
|
@@ -4786,44 +4717,44 @@ const Zt = {
|
|
|
4786
4717
|
maxFileSize: u = 2,
|
|
4787
4718
|
onError: d
|
|
4788
4719
|
}, g) => {
|
|
4789
|
-
const m = oe("md"), [y, b] =
|
|
4720
|
+
const m = oe("md"), [y, b] = E(!1), [k, x] = E(null), [R, Z] = E(!1), [T, U] = E({ x: 0, y: 0 }), [L, ae] = E(1), [J, A] = E(null);
|
|
4790
4721
|
$(() => {
|
|
4791
4722
|
r === null && n(null);
|
|
4792
4723
|
}, [r]);
|
|
4793
|
-
const
|
|
4794
|
-
(
|
|
4795
|
-
|
|
4724
|
+
const Q = ve(
|
|
4725
|
+
(V, z) => {
|
|
4726
|
+
A(z);
|
|
4796
4727
|
},
|
|
4797
4728
|
[]
|
|
4798
|
-
), le = (
|
|
4799
|
-
var
|
|
4800
|
-
const
|
|
4801
|
-
if (!
|
|
4729
|
+
), le = (V) => {
|
|
4730
|
+
var fe;
|
|
4731
|
+
const z = (fe = V.target.files) == null ? void 0 : fe[0];
|
|
4732
|
+
if (!z) return;
|
|
4802
4733
|
const K = new FileReader();
|
|
4803
4734
|
K.onload = () => {
|
|
4804
|
-
|
|
4805
|
-
}, K.readAsDataURL(
|
|
4735
|
+
x(K.result), Z(!0);
|
|
4736
|
+
}, K.readAsDataURL(z);
|
|
4806
4737
|
}, ce = async () => {
|
|
4807
|
-
if (!(!
|
|
4738
|
+
if (!(!k || !J))
|
|
4808
4739
|
try {
|
|
4809
|
-
const
|
|
4810
|
-
if (u &&
|
|
4740
|
+
const V = await ji(k, J);
|
|
4741
|
+
if (u && V.size > u * 1024 * 1024) {
|
|
4811
4742
|
d == null || d(`Ukuran file maksimal ${u}MB`);
|
|
4812
4743
|
return;
|
|
4813
4744
|
}
|
|
4814
|
-
t == null || t(
|
|
4815
|
-
const
|
|
4816
|
-
n(
|
|
4745
|
+
t == null || t(V);
|
|
4746
|
+
const z = URL.createObjectURL(V);
|
|
4747
|
+
n(z, V), Z(!1);
|
|
4817
4748
|
} catch {
|
|
4818
4749
|
d == null || d("Gagal memproses gambar");
|
|
4819
4750
|
}
|
|
4820
|
-
}, G = ne(null),
|
|
4751
|
+
}, G = ne(null), P = () => {
|
|
4821
4752
|
G.current && G.current.click();
|
|
4822
4753
|
};
|
|
4823
4754
|
vr(g, () => ({
|
|
4824
4755
|
openFileDialog: () => {
|
|
4825
|
-
var
|
|
4826
|
-
(
|
|
4756
|
+
var V;
|
|
4757
|
+
(V = G.current) == null || V.click();
|
|
4827
4758
|
}
|
|
4828
4759
|
}));
|
|
4829
4760
|
const ee = parseInt(l, 10), se = Zt[h];
|
|
@@ -4896,7 +4827,7 @@ const Zt = {
|
|
|
4896
4827
|
opacity: y ? 1 : 0,
|
|
4897
4828
|
transition: "opacity 0.3s ease-in-out"
|
|
4898
4829
|
},
|
|
4899
|
-
onClick:
|
|
4830
|
+
onClick: P,
|
|
4900
4831
|
children: [
|
|
4901
4832
|
/* @__PURE__ */ e(
|
|
4902
4833
|
"input",
|
|
@@ -4917,8 +4848,8 @@ const Zt = {
|
|
|
4917
4848
|
style: { color: "var(--sa-background-primary, #ffffff)" }
|
|
4918
4849
|
}
|
|
4919
4850
|
),
|
|
4920
|
-
/* @__PURE__ */ e(
|
|
4921
|
-
|
|
4851
|
+
/* @__PURE__ */ e(N, { condition: l.toNumber() > 80, children: /* @__PURE__ */ e(
|
|
4852
|
+
v,
|
|
4922
4853
|
{
|
|
4923
4854
|
color: "gray-50",
|
|
4924
4855
|
fontSize: l.toNumber() > 80 ? "sm" : "md",
|
|
@@ -4957,7 +4888,7 @@ const Zt = {
|
|
|
4957
4888
|
)
|
|
4958
4889
|
}
|
|
4959
4890
|
),
|
|
4960
|
-
|
|
4891
|
+
R && br.createPortal(
|
|
4961
4892
|
/* @__PURE__ */ e(
|
|
4962
4893
|
"div",
|
|
4963
4894
|
{
|
|
@@ -4983,7 +4914,7 @@ const Zt = {
|
|
|
4983
4914
|
display: "flex",
|
|
4984
4915
|
flexDirection: "column"
|
|
4985
4916
|
},
|
|
4986
|
-
onClick: (
|
|
4917
|
+
onClick: (V) => V.stopPropagation(),
|
|
4987
4918
|
children: [
|
|
4988
4919
|
/* @__PURE__ */ e(
|
|
4989
4920
|
"div",
|
|
@@ -4994,16 +4925,16 @@ const Zt = {
|
|
|
4994
4925
|
height: "20rem",
|
|
4995
4926
|
backgroundColor: "var(--sa-color-gray-100)"
|
|
4996
4927
|
},
|
|
4997
|
-
children:
|
|
4928
|
+
children: k && /* @__PURE__ */ e(
|
|
4998
4929
|
Dr,
|
|
4999
4930
|
{
|
|
5000
|
-
image:
|
|
4931
|
+
image: k,
|
|
5001
4932
|
crop: T,
|
|
5002
4933
|
zoom: L,
|
|
5003
4934
|
aspect: h ? Zt[h] : void 0,
|
|
5004
4935
|
onCropChange: U,
|
|
5005
4936
|
onZoomChange: ae,
|
|
5006
|
-
onCropComplete:
|
|
4937
|
+
onCropComplete: Q,
|
|
5007
4938
|
objectFit: "contain",
|
|
5008
4939
|
minZoom: 0.5,
|
|
5009
4940
|
restrictPosition: !1
|
|
@@ -5022,8 +4953,8 @@ const Zt = {
|
|
|
5022
4953
|
borderTop: "1px solid var(--sa-border-subtle)"
|
|
5023
4954
|
},
|
|
5024
4955
|
children: [
|
|
5025
|
-
/* @__PURE__ */ e(
|
|
5026
|
-
/* @__PURE__ */ e(
|
|
4956
|
+
/* @__PURE__ */ e(O, { size: "sm", secondary: !0, onClick: () => Z(!1), children: "Cancel" }),
|
|
4957
|
+
/* @__PURE__ */ e(O, { size: "sm", primary: !0, onClick: ce, children: "Crop" })
|
|
5027
4958
|
]
|
|
5028
4959
|
}
|
|
5029
4960
|
)
|
|
@@ -5038,7 +4969,7 @@ const Zt = {
|
|
|
5038
4969
|
}
|
|
5039
4970
|
);
|
|
5040
4971
|
}
|
|
5041
|
-
),
|
|
4972
|
+
), $i = ({
|
|
5042
4973
|
size: t = "md",
|
|
5043
4974
|
direction: r = "vertical",
|
|
5044
4975
|
requiredTitle: i = "(Required)",
|
|
@@ -5056,7 +4987,7 @@ const Zt = {
|
|
|
5056
4987
|
...l.containerProps,
|
|
5057
4988
|
children: [
|
|
5058
4989
|
l.title && /* @__PURE__ */ e(
|
|
5059
|
-
|
|
4990
|
+
N,
|
|
5060
4991
|
{
|
|
5061
4992
|
condition: !!n,
|
|
5062
4993
|
fallback: /* @__PURE__ */ s(
|
|
@@ -5067,7 +4998,7 @@ const Zt = {
|
|
|
5067
4998
|
fullWidth: o,
|
|
5068
4999
|
children: [
|
|
5069
5000
|
/* @__PURE__ */ e(j, { children: l.title }),
|
|
5070
|
-
/* @__PURE__ */ e(
|
|
5001
|
+
/* @__PURE__ */ e(v, { fontSize: t, color: "gray-500", children: l.description })
|
|
5071
5002
|
]
|
|
5072
5003
|
}
|
|
5073
5004
|
),
|
|
@@ -5081,7 +5012,7 @@ const Zt = {
|
|
|
5081
5012
|
/* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
5082
5013
|
/* @__PURE__ */ e(j, { fontSize: t, children: l.title }),
|
|
5083
5014
|
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
5084
|
-
/* @__PURE__ */ e(
|
|
5015
|
+
/* @__PURE__ */ e(N, { condition: !!((u = l.tooltip) != null && u.label), children: /* @__PURE__ */ e(
|
|
5085
5016
|
ue,
|
|
5086
5017
|
{
|
|
5087
5018
|
label: (d = l.tooltip) == null ? void 0 : d.label,
|
|
@@ -5101,20 +5032,20 @@ const Zt = {
|
|
|
5101
5032
|
}
|
|
5102
5033
|
) })
|
|
5103
5034
|
] }),
|
|
5104
|
-
/* @__PURE__ */ e(
|
|
5035
|
+
/* @__PURE__ */ e(N, { condition: !!l.description, children: /* @__PURE__ */ e(v, { fontSize: t, color: "gray-500", children: l.description }) })
|
|
5105
5036
|
]
|
|
5106
5037
|
}
|
|
5107
5038
|
)
|
|
5108
5039
|
}
|
|
5109
5040
|
),
|
|
5110
5041
|
/* @__PURE__ */ s(_, { direction: "column", gap: "xs", children: [
|
|
5111
|
-
/* @__PURE__ */ e(
|
|
5042
|
+
/* @__PURE__ */ e(Zi, { ...l.inputProps }),
|
|
5112
5043
|
!h && l.errorMessage && /* @__PURE__ */ e(De, { message: l.errorMessage })
|
|
5113
5044
|
] })
|
|
5114
5045
|
]
|
|
5115
5046
|
}
|
|
5116
5047
|
);
|
|
5117
|
-
},
|
|
5048
|
+
}, Gi = ({
|
|
5118
5049
|
size: t = "md",
|
|
5119
5050
|
direction: r = "vertical",
|
|
5120
5051
|
requiredTitle: i = "(Required)",
|
|
@@ -5131,7 +5062,7 @@ const Zt = {
|
|
|
5131
5062
|
...n.containerProps,
|
|
5132
5063
|
children: [
|
|
5133
5064
|
n.title && /* @__PURE__ */ e(
|
|
5134
|
-
|
|
5065
|
+
N,
|
|
5135
5066
|
{
|
|
5136
5067
|
condition: !!n.inputProps.required,
|
|
5137
5068
|
fallback: /* @__PURE__ */ s(
|
|
@@ -5142,7 +5073,7 @@ const Zt = {
|
|
|
5142
5073
|
fullWidth: o,
|
|
5143
5074
|
children: [
|
|
5144
5075
|
/* @__PURE__ */ e(j, { children: n.title }),
|
|
5145
|
-
/* @__PURE__ */ e(
|
|
5076
|
+
/* @__PURE__ */ e(v, { fontSize: t, color: "gray-500", children: n.description })
|
|
5146
5077
|
]
|
|
5147
5078
|
}
|
|
5148
5079
|
),
|
|
@@ -5156,7 +5087,7 @@ const Zt = {
|
|
|
5156
5087
|
/* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
5157
5088
|
/* @__PURE__ */ e(j, { fontSize: t, children: n.title }),
|
|
5158
5089
|
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
5159
|
-
/* @__PURE__ */ e(
|
|
5090
|
+
/* @__PURE__ */ e(N, { condition: !!((h = n.tooltip) != null && h.label), children: /* @__PURE__ */ e(
|
|
5160
5091
|
ue,
|
|
5161
5092
|
{
|
|
5162
5093
|
label: (a = n.tooltip) == null ? void 0 : a.label,
|
|
@@ -5176,7 +5107,7 @@ const Zt = {
|
|
|
5176
5107
|
}
|
|
5177
5108
|
) })
|
|
5178
5109
|
] }),
|
|
5179
|
-
/* @__PURE__ */ e(
|
|
5110
|
+
/* @__PURE__ */ e(N, { condition: !!n.description, children: /* @__PURE__ */ e(v, { fontSize: t, color: "gray-500", children: n.description }) })
|
|
5180
5111
|
]
|
|
5181
5112
|
}
|
|
5182
5113
|
)
|
|
@@ -5186,7 +5117,7 @@ const Zt = {
|
|
|
5186
5117
|
]
|
|
5187
5118
|
}
|
|
5188
5119
|
);
|
|
5189
|
-
},
|
|
5120
|
+
}, go = ({
|
|
5190
5121
|
items: t,
|
|
5191
5122
|
id: r,
|
|
5192
5123
|
handleOnUpdate: i,
|
|
@@ -5195,7 +5126,7 @@ const Zt = {
|
|
|
5195
5126
|
disabled: l = !1
|
|
5196
5127
|
}) => {
|
|
5197
5128
|
var g;
|
|
5198
|
-
const [h, a] =
|
|
5129
|
+
const [h, a] = E([]);
|
|
5199
5130
|
$(() => {
|
|
5200
5131
|
t && a([...t.map((m) => ({ id: m.id, isActive: m.isActive }))]);
|
|
5201
5132
|
}, [t]);
|
|
@@ -5213,7 +5144,7 @@ const Zt = {
|
|
|
5213
5144
|
width: o
|
|
5214
5145
|
},
|
|
5215
5146
|
children: n && /* @__PURE__ */ e(
|
|
5216
|
-
|
|
5147
|
+
Ut,
|
|
5217
5148
|
{
|
|
5218
5149
|
disabled: l,
|
|
5219
5150
|
checked: u,
|
|
@@ -5223,21 +5154,21 @@ const Zt = {
|
|
|
5223
5154
|
)
|
|
5224
5155
|
}
|
|
5225
5156
|
);
|
|
5226
|
-
},
|
|
5227
|
-
InputText:
|
|
5228
|
-
InputDropdown:
|
|
5229
|
-
InputSingleFile:
|
|
5230
|
-
CheckBoxOptions:
|
|
5231
|
-
RadioOptions:
|
|
5232
|
-
InputTextArea:
|
|
5233
|
-
ToggleForm:
|
|
5234
|
-
ActionButton:
|
|
5235
|
-
FormTitle:
|
|
5236
|
-
InputDate:
|
|
5237
|
-
InputImgFile:
|
|
5238
|
-
Custom:
|
|
5239
|
-
},
|
|
5240
|
-
const [r, i] =
|
|
5157
|
+
}, mo = {
|
|
5158
|
+
InputText: bi,
|
|
5159
|
+
InputDropdown: Di,
|
|
5160
|
+
InputSingleFile: Ai,
|
|
5161
|
+
CheckBoxOptions: Ri,
|
|
5162
|
+
RadioOptions: Vi,
|
|
5163
|
+
InputTextArea: zi,
|
|
5164
|
+
ToggleForm: Ti,
|
|
5165
|
+
ActionButton: Ni,
|
|
5166
|
+
FormTitle: Oi,
|
|
5167
|
+
InputDate: _i,
|
|
5168
|
+
InputImgFile: $i,
|
|
5169
|
+
Custom: Gi
|
|
5170
|
+
}, qi = ({ customBottom: t }) => {
|
|
5171
|
+
const [r, i] = E(!1), o = () => {
|
|
5241
5172
|
window.scrollY > window.screenY ? i(!0) : i(!1);
|
|
5242
5173
|
}, n = () => {
|
|
5243
5174
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
@@ -5263,7 +5194,7 @@ const Zt = {
|
|
|
5263
5194
|
transition: "transform 0.2s ease-in-out"
|
|
5264
5195
|
},
|
|
5265
5196
|
children: /* @__PURE__ */ e(
|
|
5266
|
-
|
|
5197
|
+
O,
|
|
5267
5198
|
{
|
|
5268
5199
|
secondary: !0,
|
|
5269
5200
|
size: "xs",
|
|
@@ -5286,7 +5217,7 @@ const Zt = {
|
|
|
5286
5217
|
)
|
|
5287
5218
|
}
|
|
5288
5219
|
);
|
|
5289
|
-
},
|
|
5220
|
+
}, yo = ({ pageLayout: t, children: r, wrapperProps: i, containerProps: o }) => {
|
|
5290
5221
|
const n = oe("md"), l = (o == null ? void 0 : o.customWidth) ?? 264;
|
|
5291
5222
|
return /* @__PURE__ */ s(
|
|
5292
5223
|
f,
|
|
@@ -5325,7 +5256,7 @@ const Zt = {
|
|
|
5325
5256
|
]
|
|
5326
5257
|
}
|
|
5327
5258
|
);
|
|
5328
|
-
},
|
|
5259
|
+
}, po = ({
|
|
5329
5260
|
children: t,
|
|
5330
5261
|
withScrollToTopButton: r = !1,
|
|
5331
5262
|
scrollToTopButtonProps: i,
|
|
@@ -5352,7 +5283,7 @@ const Zt = {
|
|
|
5352
5283
|
borderWidth: "border-t",
|
|
5353
5284
|
children: [
|
|
5354
5285
|
r && /* @__PURE__ */ e(
|
|
5355
|
-
|
|
5286
|
+
qi,
|
|
5356
5287
|
{
|
|
5357
5288
|
...i,
|
|
5358
5289
|
customBottom: (i == null ? void 0 : i.customBottom) || "5.7rem"
|
|
@@ -5361,23 +5292,23 @@ const Zt = {
|
|
|
5361
5292
|
t
|
|
5362
5293
|
]
|
|
5363
5294
|
}
|
|
5364
|
-
) }),
|
|
5295
|
+
) }), xo = ({ fields: t }) => /* @__PURE__ */ e(f, { display: "flex", direction: "column", gap: "lg", children: /* @__PURE__ */ e(
|
|
5365
5296
|
bt,
|
|
5366
5297
|
{
|
|
5367
5298
|
of: t,
|
|
5368
|
-
render: (r, i) => /* @__PURE__ */ e(
|
|
5299
|
+
render: (r, i) => /* @__PURE__ */ e(Ui, { ...r }, i)
|
|
5369
5300
|
}
|
|
5370
|
-
) }),
|
|
5301
|
+
) }), Ui = ({ title: t, value: r, icon: i }) => /* @__PURE__ */ s(f, { display: "flex", direction: "column", gap: "sm", children: [
|
|
5371
5302
|
i ? /* @__PURE__ */ s(f, { display: "flex", direction: "row", align: "center", gap: "xs", children: [
|
|
5372
5303
|
/* @__PURE__ */ e(w, { name: i, color: "subtle" }),
|
|
5373
|
-
/* @__PURE__ */ e(
|
|
5374
|
-
] }) : /* @__PURE__ */ e(
|
|
5375
|
-
typeof r == "string" ? /* @__PURE__ */ e(
|
|
5304
|
+
/* @__PURE__ */ e(v, { color: "gray-500", variant: "sub-h3", children: t })
|
|
5305
|
+
] }) : /* @__PURE__ */ e(v, { color: "gray-500", variant: "sub-h3", children: t }),
|
|
5306
|
+
typeof r == "string" ? /* @__PURE__ */ e(v, { variant: "sub-h3", children: r }) : r
|
|
5376
5307
|
] }), Y = {
|
|
5377
5308
|
silhouette: "#A7B0AC",
|
|
5378
5309
|
accent: "#78867F"
|
|
5379
5310
|
};
|
|
5380
|
-
function
|
|
5311
|
+
function Ji({ width: t, height: r }) {
|
|
5381
5312
|
return /* @__PURE__ */ e(q, { children: /* @__PURE__ */ s(
|
|
5382
5313
|
"svg",
|
|
5383
5314
|
{
|
|
@@ -5520,7 +5451,7 @@ function Xi({ width: t, height: r }) {
|
|
|
5520
5451
|
}
|
|
5521
5452
|
) });
|
|
5522
5453
|
}
|
|
5523
|
-
const
|
|
5454
|
+
const Co = ({
|
|
5524
5455
|
title: t = "create",
|
|
5525
5456
|
children: r,
|
|
5526
5457
|
onClickAction: i,
|
|
@@ -5535,10 +5466,10 @@ const ko = ({
|
|
|
5535
5466
|
const g = () => {
|
|
5536
5467
|
switch (o) {
|
|
5537
5468
|
case "primary":
|
|
5538
|
-
return /* @__PURE__ */ e(q, { children: l ? /* @__PURE__ */ e(
|
|
5469
|
+
return /* @__PURE__ */ e(q, { children: l ? /* @__PURE__ */ e(O, { primary: !0, iconLeft: l, onClick: i, children: u || t }) : /* @__PURE__ */ e(O, { primary: !0, onClick: i, children: u || t }) });
|
|
5539
5470
|
case "secondary":
|
|
5540
|
-
return /* @__PURE__ */ e(q, { children: l ? /* @__PURE__ */ e(
|
|
5541
|
-
|
|
5471
|
+
return /* @__PURE__ */ e(q, { children: l ? /* @__PURE__ */ e(O, { secondary: !0, iconLeft: l, onClick: i, children: n ? /* @__PURE__ */ e(
|
|
5472
|
+
v,
|
|
5542
5473
|
{
|
|
5543
5474
|
fontFamily: "Poppins",
|
|
5544
5475
|
fontSize: "md",
|
|
@@ -5546,11 +5477,11 @@ const ko = ({
|
|
|
5546
5477
|
style: { color: "var(--sa-background-success, #28ac6e)" },
|
|
5547
5478
|
children: u || t
|
|
5548
5479
|
}
|
|
5549
|
-
) : t }) : /* @__PURE__ */ e(
|
|
5480
|
+
) : t }) : /* @__PURE__ */ e(O, { secondary: !0, onClick: i, children: u || t }) });
|
|
5550
5481
|
case "success":
|
|
5551
|
-
return /* @__PURE__ */ e(q, { children: l ? /* @__PURE__ */ e(
|
|
5482
|
+
return /* @__PURE__ */ e(q, { children: l ? /* @__PURE__ */ e(O, { success: !0, iconLeft: l, onClick: i, children: u || t }) : /* @__PURE__ */ e(O, { success: !0, onClick: i, children: u || t }) });
|
|
5552
5483
|
default:
|
|
5553
|
-
return /* @__PURE__ */ e(q, { children: l ? /* @__PURE__ */ e(
|
|
5484
|
+
return /* @__PURE__ */ e(q, { children: l ? /* @__PURE__ */ e(O, { primary: !0, iconLeft: l, onClick: i, children: u || t }) : /* @__PURE__ */ e(O, { primary: !0, onClick: i, children: u || t }) });
|
|
5554
5485
|
}
|
|
5555
5486
|
};
|
|
5556
5487
|
return /* @__PURE__ */ s(
|
|
@@ -5565,9 +5496,9 @@ const ko = ({
|
|
|
5565
5496
|
marginBlock: "auto",
|
|
5566
5497
|
customHeight: a,
|
|
5567
5498
|
children: [
|
|
5568
|
-
d || /* @__PURE__ */ e(
|
|
5499
|
+
d || /* @__PURE__ */ e(Ji, {}),
|
|
5569
5500
|
/* @__PURE__ */ e(f, { children: r.map((m, y) => /* @__PURE__ */ e(
|
|
5570
|
-
|
|
5501
|
+
pe.Body1,
|
|
5571
5502
|
{
|
|
5572
5503
|
props: {
|
|
5573
5504
|
align: "center",
|
|
@@ -5591,7 +5522,7 @@ const ko = ({
|
|
|
5591
5522
|
c000000: "#000000",
|
|
5592
5523
|
cFFFFFF: "#FFFFFF"
|
|
5593
5524
|
};
|
|
5594
|
-
function
|
|
5525
|
+
function Qi({ width: t, height: r }) {
|
|
5595
5526
|
return /* @__PURE__ */ e(q, { children: /* @__PURE__ */ s(
|
|
5596
5527
|
"svg",
|
|
5597
5528
|
{
|
|
@@ -5794,7 +5725,7 @@ function Ki({ width: t, height: r }) {
|
|
|
5794
5725
|
}
|
|
5795
5726
|
) });
|
|
5796
5727
|
}
|
|
5797
|
-
function
|
|
5728
|
+
function vo({ onClick: t }) {
|
|
5798
5729
|
const r = oe("md");
|
|
5799
5730
|
return /* @__PURE__ */ s(
|
|
5800
5731
|
f,
|
|
@@ -5806,9 +5737,9 @@ function So({ onClick: t }) {
|
|
|
5806
5737
|
justify: "center",
|
|
5807
5738
|
gap: "md",
|
|
5808
5739
|
children: [
|
|
5809
|
-
/* @__PURE__ */ e(
|
|
5740
|
+
/* @__PURE__ */ e(Qi, { width: r ? 600 : 300 }),
|
|
5810
5741
|
/* @__PURE__ */ e(
|
|
5811
|
-
|
|
5742
|
+
v,
|
|
5812
5743
|
{
|
|
5813
5744
|
fontWeight: "bold",
|
|
5814
5745
|
fontSize: r ? "3xl" : "2xl",
|
|
@@ -5817,7 +5748,7 @@ function So({ onClick: t }) {
|
|
|
5817
5748
|
}
|
|
5818
5749
|
),
|
|
5819
5750
|
/* @__PURE__ */ e(
|
|
5820
|
-
|
|
5751
|
+
v,
|
|
5821
5752
|
{
|
|
5822
5753
|
fontWeight: "semibold",
|
|
5823
5754
|
fontSize: r ? "lg" : "md",
|
|
@@ -5825,12 +5756,12 @@ function So({ onClick: t }) {
|
|
|
5825
5756
|
children: "Sorry, we couldn't find the page you are looking for"
|
|
5826
5757
|
}
|
|
5827
5758
|
),
|
|
5828
|
-
t && /* @__PURE__ */ e(
|
|
5759
|
+
t && /* @__PURE__ */ e(O, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
|
|
5829
5760
|
]
|
|
5830
5761
|
}
|
|
5831
5762
|
);
|
|
5832
5763
|
}
|
|
5833
|
-
const
|
|
5764
|
+
const H = {
|
|
5834
5765
|
c46F16B: "#46F16B",
|
|
5835
5766
|
c48504C: "#48504C",
|
|
5836
5767
|
c64B5F6: "#64B5F6",
|
|
@@ -5851,7 +5782,7 @@ const A = {
|
|
|
5851
5782
|
cF4F4F4: "#F4F4F4",
|
|
5852
5783
|
cFFFFFF: "#FFFFFF"
|
|
5853
5784
|
};
|
|
5854
|
-
function
|
|
5785
|
+
function Pi({ width: t, height: r }) {
|
|
5855
5786
|
return /* @__PURE__ */ e(q, { children: /* @__PURE__ */ s(
|
|
5856
5787
|
"svg",
|
|
5857
5788
|
{
|
|
@@ -5861,14 +5792,14 @@ function en({ width: t, height: r }) {
|
|
|
5861
5792
|
fill: "none",
|
|
5862
5793
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5863
5794
|
children: [
|
|
5864
|
-
/* @__PURE__ */ e("rect", { x: "228", y: "55.5", width: "55", height: "20", fill:
|
|
5795
|
+
/* @__PURE__ */ e("rect", { x: "228", y: "55.5", width: "55", height: "20", fill: H.cD6EBFD }),
|
|
5865
5796
|
/* @__PURE__ */ e(
|
|
5866
5797
|
"path",
|
|
5867
5798
|
{
|
|
5868
5799
|
fillRule: "evenodd",
|
|
5869
5800
|
clipRule: "evenodd",
|
|
5870
5801
|
d: "M75 238.124V197.28L163.523 63.5H217.029V194.32H240V238.124H217.029V252.5H169.126V238.124H75ZM125.424 194.32L172.487 119.143V194.32H125.424Z",
|
|
5871
|
-
fill:
|
|
5802
|
+
fill: H.cBBDEFB,
|
|
5872
5803
|
fillOpacity: "0.6"
|
|
5873
5804
|
}
|
|
5874
5805
|
),
|
|
@@ -5877,8 +5808,8 @@ function en({ width: t, height: r }) {
|
|
|
5877
5808
|
"path",
|
|
5878
5809
|
{
|
|
5879
5810
|
d: "M334.5 274.5C381.168 274.5 419 227.266 419 169C419 110.734 381.168 63.5 334.5 63.5C287.832 63.5 250 110.734 250 169C250 227.266 287.832 274.5 334.5 274.5Z",
|
|
5880
|
-
fill:
|
|
5881
|
-
stroke:
|
|
5811
|
+
fill: H.cEFF3F8,
|
|
5812
|
+
stroke: H.c67AEE6,
|
|
5882
5813
|
strokeWidth: "5"
|
|
5883
5814
|
}
|
|
5884
5815
|
),
|
|
@@ -5886,68 +5817,68 @@ function en({ width: t, height: r }) {
|
|
|
5886
5817
|
"path",
|
|
5887
5818
|
{
|
|
5888
5819
|
d: "M413 197.5C411.397 211.835 402.919 230.898 389.361 246.49C375.596 262.32 356.651 274.5 334.496 274.5C311.331 274.5 292.389 261.672 278.878 245.52C265.592 229.638 257.606 210.603 256 197.5H413Z",
|
|
5889
|
-
fill:
|
|
5820
|
+
fill: H.cD5C7BD
|
|
5890
5821
|
}
|
|
5891
5822
|
),
|
|
5892
5823
|
/* @__PURE__ */ e(
|
|
5893
5824
|
"path",
|
|
5894
5825
|
{
|
|
5895
5826
|
d: "M278.887 211.766H391.104L392.583 222.856C392.687 223.635 392.08 224.328 391.294 224.328H277.961C277.14 224.328 276.525 223.577 276.686 222.773L278.887 211.766Z",
|
|
5896
|
-
fill:
|
|
5827
|
+
fill: H.cCABEB1
|
|
5897
5828
|
}
|
|
5898
5829
|
),
|
|
5899
5830
|
/* @__PURE__ */ e(
|
|
5900
5831
|
"path",
|
|
5901
5832
|
{
|
|
5902
5833
|
d: "M287.68 218.884L289.354 213.022H378.961L381.473 218.884H287.68Z",
|
|
5903
|
-
fill:
|
|
5834
|
+
fill: H.cC0B2A2
|
|
5904
5835
|
}
|
|
5905
5836
|
),
|
|
5906
5837
|
/* @__PURE__ */ e(
|
|
5907
5838
|
"path",
|
|
5908
5839
|
{
|
|
5909
5840
|
d: "M381.944 218.803L381.58 212.266H386.385L386.022 218.803H381.944Z",
|
|
5910
|
-
fill:
|
|
5911
|
-
stroke:
|
|
5841
|
+
fill: H.c956847,
|
|
5842
|
+
stroke: H.c48504C
|
|
5912
5843
|
}
|
|
5913
5844
|
),
|
|
5914
5845
|
/* @__PURE__ */ e(
|
|
5915
5846
|
"path",
|
|
5916
5847
|
{
|
|
5917
5848
|
d: "M283.124 218.803L282.768 213.104H287.565L287.209 218.803H283.124Z",
|
|
5918
|
-
fill:
|
|
5919
|
-
stroke:
|
|
5849
|
+
fill: H.c956847,
|
|
5850
|
+
stroke: H.c48504C
|
|
5920
5851
|
}
|
|
5921
5852
|
),
|
|
5922
5853
|
/* @__PURE__ */ e(
|
|
5923
5854
|
"path",
|
|
5924
5855
|
{
|
|
5925
5856
|
d: "M285.902 212.103L284.935 186.306H279.606C278.151 186.306 277.004 187.542 277.113 188.993L278.673 209.79C278.77 211.095 279.857 212.103 281.166 212.103H285.902Z",
|
|
5926
|
-
fill:
|
|
5927
|
-
stroke:
|
|
5857
|
+
fill: H.cC8CEF4,
|
|
5858
|
+
stroke: H.c48504C
|
|
5928
5859
|
}
|
|
5929
5860
|
),
|
|
5930
5861
|
/* @__PURE__ */ e(
|
|
5931
5862
|
"path",
|
|
5932
5863
|
{
|
|
5933
5864
|
d: "M383.256 212.103L384.638 186.306H389.556C391.007 186.306 392.153 187.537 392.05 188.984L390.564 209.782C390.471 211.09 389.382 212.103 388.07 212.103H383.256Z",
|
|
5934
|
-
fill:
|
|
5935
|
-
stroke:
|
|
5865
|
+
fill: H.cC8CEF4,
|
|
5866
|
+
stroke: H.c48504C
|
|
5936
5867
|
}
|
|
5937
5868
|
),
|
|
5938
5869
|
/* @__PURE__ */ e(
|
|
5939
5870
|
"path",
|
|
5940
5871
|
{
|
|
5941
5872
|
d: "M284.497 178.155C284.455 176.194 286.034 174.581 287.996 174.581H381.904C383.895 174.581 385.485 176.24 385.401 178.23L384.066 209.59C383.987 211.463 382.445 212.941 380.569 212.941H288.663C286.759 212.941 285.205 211.419 285.164 209.515L284.497 178.155Z",
|
|
5942
|
-
fill:
|
|
5943
|
-
stroke:
|
|
5873
|
+
fill: H.cC8CEF4,
|
|
5874
|
+
stroke: H.c48504C
|
|
5944
5875
|
}
|
|
5945
5876
|
),
|
|
5946
5877
|
/* @__PURE__ */ e(
|
|
5947
5878
|
"path",
|
|
5948
5879
|
{
|
|
5949
5880
|
d: "M284.845 181.524C284.792 179.279 286.598 177.431 288.844 177.431H380.687C382.948 177.431 384.76 179.304 384.684 181.565L383.774 208.737C383.701 210.893 381.933 212.603 379.776 212.603H289.48C287.307 212.603 285.532 210.869 285.481 208.697L284.845 181.524Z",
|
|
5950
|
-
fill:
|
|
5881
|
+
fill: H.cBBC3F5
|
|
5951
5882
|
}
|
|
5952
5883
|
),
|
|
5953
5884
|
/* @__PURE__ */ e(
|
|
@@ -5964,7 +5895,7 @@ function en({ width: t, height: r }) {
|
|
|
5964
5895
|
"path",
|
|
5965
5896
|
{
|
|
5966
5897
|
d: "M301 146.5C301 145.395 301.887 144.5 302.98 144.5H367.02C368.114 144.5 369 145.395 369 146.5V160.411H301V146.5Z",
|
|
5967
|
-
fill:
|
|
5898
|
+
fill: H.cFFFFFF
|
|
5968
5899
|
}
|
|
5969
5900
|
)
|
|
5970
5901
|
}
|
|
@@ -5974,42 +5905,42 @@ function en({ width: t, height: r }) {
|
|
|
5974
5905
|
"path",
|
|
5975
5906
|
{
|
|
5976
5907
|
d: "M301 146.191C301 145.257 301.748 144.5 302.671 144.5H356.701C357.624 144.5 358.372 145.257 358.372 146.191V157.949H301V146.191Z",
|
|
5977
|
-
fill:
|
|
5908
|
+
fill: H.cFFFFFF
|
|
5978
5909
|
}
|
|
5979
5910
|
),
|
|
5980
5911
|
/* @__PURE__ */ e(
|
|
5981
5912
|
"path",
|
|
5982
5913
|
{
|
|
5983
5914
|
d: "M301.336 146.607C301.336 145.673 302.08 144.916 302.999 144.916H367.01C367.929 144.916 368.673 145.673 368.673 146.607V152.523H301.336V146.607Z",
|
|
5984
|
-
fill:
|
|
5915
|
+
fill: H.cD6D6D6
|
|
5985
5916
|
}
|
|
5986
5917
|
),
|
|
5987
5918
|
/* @__PURE__ */ e(
|
|
5988
5919
|
"path",
|
|
5989
5920
|
{
|
|
5990
5921
|
d: "M368.673 152.523H301.336V174.5H368.673V152.523Z",
|
|
5991
|
-
fill:
|
|
5922
|
+
fill: H.cF4F4F4
|
|
5992
5923
|
}
|
|
5993
5924
|
),
|
|
5994
5925
|
/* @__PURE__ */ e(
|
|
5995
5926
|
"path",
|
|
5996
5927
|
{
|
|
5997
5928
|
d: "M307.685 150.417C308.607 150.417 309.356 149.66 309.356 148.726C309.356 147.793 308.607 147.036 307.685 147.036C306.762 147.036 306.014 147.793 306.014 148.726C306.014 149.66 306.762 150.417 307.685 150.417Z",
|
|
5998
|
-
fill:
|
|
5929
|
+
fill: H.cEE8080
|
|
5999
5930
|
}
|
|
6000
5931
|
),
|
|
6001
5932
|
/* @__PURE__ */ e(
|
|
6002
5933
|
"path",
|
|
6003
5934
|
{
|
|
6004
5935
|
d: "M313.532 150.417C314.455 150.417 315.203 149.66 315.203 148.726C315.203 147.793 314.455 147.036 313.532 147.036C312.609 147.036 311.861 147.793 311.861 148.726C311.861 149.66 312.609 150.417 313.532 150.417Z",
|
|
6005
|
-
fill:
|
|
5936
|
+
fill: H.cE5EE80
|
|
6006
5937
|
}
|
|
6007
5938
|
),
|
|
6008
5939
|
/* @__PURE__ */ e(
|
|
6009
5940
|
"path",
|
|
6010
5941
|
{
|
|
6011
5942
|
d: "M318.546 150.417C319.469 150.417 320.217 149.66 320.217 148.726C320.217 147.793 319.469 147.036 318.546 147.036C317.623 147.036 316.875 147.793 316.875 148.726C316.875 149.66 317.623 150.417 318.546 150.417Z",
|
|
6012
|
-
fill:
|
|
5943
|
+
fill: H.c46F16B
|
|
6013
5944
|
}
|
|
6014
5945
|
)
|
|
6015
5946
|
] }),
|
|
@@ -6017,14 +5948,14 @@ function en({ width: t, height: r }) {
|
|
|
6017
5948
|
"path",
|
|
6018
5949
|
{
|
|
6019
5950
|
d: "M301.16 146C301.16 145.172 301.832 144.5 302.66 144.5H367.33C368.159 144.5 368.83 145.172 368.83 146V174.419H301.16V146Z",
|
|
6020
|
-
stroke:
|
|
5951
|
+
stroke: H.c48504C
|
|
6021
5952
|
}
|
|
6022
5953
|
),
|
|
6023
5954
|
/* @__PURE__ */ e(
|
|
6024
5955
|
"path",
|
|
6025
5956
|
{
|
|
6026
5957
|
d: "M395.29 207.579H423.344M354.255 236.889H369.329M327.038 222.234H347.556M350.905 222.234H358.024M288.097 230.19H304.846M253.344 210.091H272.605M278.467 246.938H295.216M297.309 246.938H303.59M337.088 252.801H354.255",
|
|
6027
|
-
stroke:
|
|
5958
|
+
stroke: H.c86512B,
|
|
6028
5959
|
strokeWidth: "2",
|
|
6029
5960
|
strokeLinecap: "round"
|
|
6030
5961
|
}
|
|
@@ -6034,21 +5965,21 @@ function en({ width: t, height: r }) {
|
|
|
6034
5965
|
"path",
|
|
6035
5966
|
{
|
|
6036
5967
|
d: "M430.241 125.78C430.987 105.807 437.521 90.4065 449.841 79.5799C462.161 68.7532 478.867 63.3398 499.961 63.3398C513.961 63.3398 525.907 65.7665 535.801 70.6199C545.881 75.4732 553.441 82.0998 558.481 90.4998C563.707 98.8998 566.321 108.327 566.321 118.78C566.321 131.1 563.241 141.18 557.081 149.02C550.921 156.673 543.734 161.9 535.521 164.7V165.82C546.161 169.367 554.561 175.247 560.721 183.46C566.881 191.673 569.961 202.22 569.961 215.1C569.961 226.673 567.254 236.94 561.841 245.9C560.436 248.258 558.849 250.481 557.081 252.569L443.5 252.662C432.5 241 427.721 230.5 427.721 207.82H474.201C474.387 216.033 476.721 222.567 481.201 227.42C485.681 232.087 492.214 234.42 500.801 234.42C508.081 234.42 513.681 232.367 517.601 228.26C521.707 223.967 523.761 218.367 523.761 211.46C523.761 202.5 520.867 196.06 515.081 192.14C509.481 188.033 500.427 185.98 487.921 185.98H478.961V147.06H487.921C497.441 147.06 505.094 145.473 510.881 142.3C516.854 138.94 519.841 133.06 519.841 124.66C519.841 117.94 517.974 112.713 514.241 108.98C510.507 105.247 505.374 103.38 498.841 103.38C491.747 103.38 486.427 105.527 482.881 109.82C479.521 114.113 477.561 119.433 477.001 125.78H430.241Z",
|
|
6037
|
-
fill:
|
|
5968
|
+
fill: H.cBBDEFB,
|
|
6038
5969
|
fillOpacity: "0.6"
|
|
6039
5970
|
}
|
|
6040
5971
|
),
|
|
6041
|
-
/* @__PURE__ */ e("rect", { x: "43", y: "87.5", width: "46", height: "20", fill:
|
|
6042
|
-
/* @__PURE__ */ e("rect", { x: "29", y: "109.5", width: "46", height: "20", fill:
|
|
6043
|
-
/* @__PURE__ */ e("rect", { x: "29", y: "65.5", width: "46", height: "20", fill:
|
|
6044
|
-
/* @__PURE__ */ e("rect", { x: "356", y: "0.5", width: "55", height: "20", fill:
|
|
6045
|
-
/* @__PURE__ */ e("rect", { x: "572", y: "142.5", width: "55", height: "20", fill:
|
|
6046
|
-
/* @__PURE__ */ e("rect", { x: "589", y: "120.5", width: "55", height: "20", fill:
|
|
5972
|
+
/* @__PURE__ */ e("rect", { x: "43", y: "87.5", width: "46", height: "20", fill: H.cD6EBFD }),
|
|
5973
|
+
/* @__PURE__ */ e("rect", { x: "29", y: "109.5", width: "46", height: "20", fill: H.cD6EBFD }),
|
|
5974
|
+
/* @__PURE__ */ e("rect", { x: "29", y: "65.5", width: "46", height: "20", fill: H.cD6EBFD }),
|
|
5975
|
+
/* @__PURE__ */ e("rect", { x: "356", y: "0.5", width: "55", height: "20", fill: H.cD6EBFD }),
|
|
5976
|
+
/* @__PURE__ */ e("rect", { x: "572", y: "142.5", width: "55", height: "20", fill: H.cD6EBFD }),
|
|
5977
|
+
/* @__PURE__ */ e("rect", { x: "589", y: "120.5", width: "55", height: "20", fill: H.cD6EBFD }),
|
|
6047
5978
|
/* @__PURE__ */ e(
|
|
6048
5979
|
"path",
|
|
6049
5980
|
{
|
|
6050
5981
|
d: "M3 255.5L651 255.5",
|
|
6051
|
-
stroke:
|
|
5982
|
+
stroke: H.c64B5F6,
|
|
6052
5983
|
strokeWidth: "5",
|
|
6053
5984
|
strokeLinecap: "round"
|
|
6054
5985
|
}
|
|
@@ -6058,7 +5989,7 @@ function en({ width: t, height: r }) {
|
|
|
6058
5989
|
{
|
|
6059
5990
|
width: "179",
|
|
6060
5991
|
height: "192",
|
|
6061
|
-
fill:
|
|
5992
|
+
fill: H.cFFFFFF,
|
|
6062
5993
|
transform: "translate(246 60.5)"
|
|
6063
5994
|
}
|
|
6064
5995
|
) }) })
|
|
@@ -6066,7 +5997,7 @@ function en({ width: t, height: r }) {
|
|
|
6066
5997
|
}
|
|
6067
5998
|
) });
|
|
6068
5999
|
}
|
|
6069
|
-
function
|
|
6000
|
+
function bo({ onClick: t }) {
|
|
6070
6001
|
const r = oe("md");
|
|
6071
6002
|
return /* @__PURE__ */ s(
|
|
6072
6003
|
f,
|
|
@@ -6078,9 +6009,9 @@ function Fo({ onClick: t }) {
|
|
|
6078
6009
|
justify: "center",
|
|
6079
6010
|
gap: "md",
|
|
6080
6011
|
children: [
|
|
6081
|
-
/* @__PURE__ */ e(
|
|
6082
|
-
/* @__PURE__ */ e(
|
|
6083
|
-
t && /* @__PURE__ */ e(
|
|
6012
|
+
/* @__PURE__ */ e(Pi, { width: r ? 600 : 300 }),
|
|
6013
|
+
/* @__PURE__ */ e(v, { fontWeight: "bold", fontSize: r ? "3xl" : "2xl", children: "We Are Sorry ..." }),
|
|
6014
|
+
t && /* @__PURE__ */ e(O, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
|
|
6084
6015
|
]
|
|
6085
6016
|
}
|
|
6086
6017
|
);
|
|
@@ -6102,7 +6033,7 @@ const c = {
|
|
|
6102
6033
|
cFFE18B: "#FFE18B",
|
|
6103
6034
|
cFFFFFF: "#FFFFFF"
|
|
6104
6035
|
};
|
|
6105
|
-
function
|
|
6036
|
+
function Yi({ width: t, height: r }) {
|
|
6106
6037
|
return /* @__PURE__ */ e(q, { children: /* @__PURE__ */ s(
|
|
6107
6038
|
"svg",
|
|
6108
6039
|
{
|
|
@@ -6774,7 +6705,7 @@ function tn({ width: t, height: r }) {
|
|
|
6774
6705
|
}
|
|
6775
6706
|
) });
|
|
6776
6707
|
}
|
|
6777
|
-
function
|
|
6708
|
+
function Do({ onClick: t }) {
|
|
6778
6709
|
const r = oe("md");
|
|
6779
6710
|
return /* @__PURE__ */ s(
|
|
6780
6711
|
f,
|
|
@@ -6787,9 +6718,9 @@ function Eo({ onClick: t }) {
|
|
|
6787
6718
|
gap: "md",
|
|
6788
6719
|
overflow: "overflow-hidden",
|
|
6789
6720
|
children: [
|
|
6790
|
-
/* @__PURE__ */ e(
|
|
6721
|
+
/* @__PURE__ */ e(Yi, { width: r ? 600 : 300 }),
|
|
6791
6722
|
/* @__PURE__ */ e(
|
|
6792
|
-
|
|
6723
|
+
v,
|
|
6793
6724
|
{
|
|
6794
6725
|
fontWeight: "bold",
|
|
6795
6726
|
fontSize: r ? "3xl" : "2xl",
|
|
@@ -6798,7 +6729,7 @@ function Eo({ onClick: t }) {
|
|
|
6798
6729
|
}
|
|
6799
6730
|
),
|
|
6800
6731
|
/* @__PURE__ */ e(
|
|
6801
|
-
|
|
6732
|
+
v,
|
|
6802
6733
|
{
|
|
6803
6734
|
fontWeight: "semibold",
|
|
6804
6735
|
fontSize: r ? "lg" : "md",
|
|
@@ -6806,16 +6737,16 @@ function Eo({ onClick: t }) {
|
|
|
6806
6737
|
children: "we are trying to fix the problem"
|
|
6807
6738
|
}
|
|
6808
6739
|
),
|
|
6809
|
-
t && /* @__PURE__ */ e(
|
|
6740
|
+
t && /* @__PURE__ */ e(O, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
|
|
6810
6741
|
]
|
|
6811
6742
|
}
|
|
6812
6743
|
);
|
|
6813
6744
|
}
|
|
6814
|
-
const
|
|
6745
|
+
const wo = (t) => {
|
|
6815
6746
|
var i, o, n, l, h;
|
|
6816
6747
|
const r = oe("md");
|
|
6817
6748
|
return /* @__PURE__ */ s(
|
|
6818
|
-
|
|
6749
|
+
ht,
|
|
6819
6750
|
{
|
|
6820
6751
|
isShow: t.isShow,
|
|
6821
6752
|
onHide: t.onHide,
|
|
@@ -6827,8 +6758,8 @@ const Mo = (t) => {
|
|
|
6827
6758
|
}
|
|
6828
6759
|
},
|
|
6829
6760
|
children: [
|
|
6830
|
-
/* @__PURE__ */ e($t, { ...t.dialogTitleProps, children: typeof t.title == "string" ? /* @__PURE__ */ e(
|
|
6831
|
-
/* @__PURE__ */ e(
|
|
6761
|
+
/* @__PURE__ */ e($t, { ...t.dialogTitleProps, children: typeof t.title == "string" ? /* @__PURE__ */ e(v, { fontSize: "lg", fontWeight: "medium", children: t.title }) : t.title }),
|
|
6762
|
+
/* @__PURE__ */ e(ut, { children: typeof t.description == "string" ? /* @__PURE__ */ e(v, { fontSize: "md", lineHeight: "leading-6", color: "brand", children: t.description }) : t.description }),
|
|
6832
6763
|
/* @__PURE__ */ e(Gt, { children: /* @__PURE__ */ e(
|
|
6833
6764
|
f,
|
|
6834
6765
|
{
|
|
@@ -6845,7 +6776,7 @@ const Mo = (t) => {
|
|
|
6845
6776
|
gap: ((h = t.wrapperConfirmBtnProps) == null ? void 0 : h.gap) || "sm",
|
|
6846
6777
|
...t.wrapperConfirmBtnProps,
|
|
6847
6778
|
children: [
|
|
6848
|
-
t.onCancel && /* @__PURE__ */ e(
|
|
6779
|
+
t.onCancel && /* @__PURE__ */ e(O, { secondary: !0, onClick: t.onCancel, size: "md", fullWidth: !0, children: t.titleCancelBtn || "Cancel" }),
|
|
6849
6780
|
/* @__PURE__ */ e(
|
|
6850
6781
|
f,
|
|
6851
6782
|
{
|
|
@@ -6854,7 +6785,7 @@ const Mo = (t) => {
|
|
|
6854
6785
|
textWrap: "nowrap"
|
|
6855
6786
|
},
|
|
6856
6787
|
children: /* @__PURE__ */ e(
|
|
6857
|
-
|
|
6788
|
+
O,
|
|
6858
6789
|
{
|
|
6859
6790
|
...t.buttonConfirmProps,
|
|
6860
6791
|
onClick: t.onConfirm,
|
|
@@ -6874,7 +6805,7 @@ const Mo = (t) => {
|
|
|
6874
6805
|
},
|
|
6875
6806
|
t.key
|
|
6876
6807
|
);
|
|
6877
|
-
},
|
|
6808
|
+
}, ko = xe(
|
|
6878
6809
|
({
|
|
6879
6810
|
children: t,
|
|
6880
6811
|
height: r,
|
|
@@ -6890,24 +6821,24 @@ const Mo = (t) => {
|
|
|
6890
6821
|
actionContainer: m,
|
|
6891
6822
|
containerProps: y,
|
|
6892
6823
|
bodyProps: b,
|
|
6893
|
-
headerProps:
|
|
6894
|
-
footerProps:
|
|
6895
|
-
variantTag:
|
|
6824
|
+
headerProps: k = { borderBottom: !0 },
|
|
6825
|
+
footerProps: x = { borderTop: !0 },
|
|
6826
|
+
variantTag: R = "info"
|
|
6896
6827
|
}) => {
|
|
6897
|
-
const Z = ne(null), [T, U] =
|
|
6828
|
+
const Z = ne(null), [T, U] = E("100vh");
|
|
6898
6829
|
$(() => {
|
|
6899
|
-
const
|
|
6830
|
+
const A = () => {
|
|
6900
6831
|
if (Z.current) {
|
|
6901
|
-
const
|
|
6902
|
-
U(`calc(100vh - ${
|
|
6832
|
+
const Q = Z.current.getBoundingClientRect().top;
|
|
6833
|
+
U(`calc(100vh - ${Q}px)`);
|
|
6903
6834
|
}
|
|
6904
6835
|
};
|
|
6905
|
-
return
|
|
6836
|
+
return A(), window.addEventListener("resize", A), () => window.removeEventListener("resize", A);
|
|
6906
6837
|
}, []);
|
|
6907
6838
|
const L = () => d ? /* @__PURE__ */ s(f, { direction: "row", gap: "sm", align: "center", children: [
|
|
6908
|
-
/* @__PURE__ */ e(
|
|
6909
|
-
/* @__PURE__ */ e(Le, { border: !0, text: d, variant:
|
|
6910
|
-
] }) : /* @__PURE__ */ e(
|
|
6839
|
+
/* @__PURE__ */ e(v, { fontWeight: "medium", children: u }),
|
|
6840
|
+
/* @__PURE__ */ e(Le, { border: !0, text: d, variant: R })
|
|
6841
|
+
] }) : /* @__PURE__ */ e(v, { fontWeight: "medium", children: u }), ae = () => h || /* @__PURE__ */ s(
|
|
6911
6842
|
f,
|
|
6912
6843
|
{
|
|
6913
6844
|
direction: "row",
|
|
@@ -6939,7 +6870,7 @@ const Mo = (t) => {
|
|
|
6939
6870
|
...(y == null ? void 0 : y.style) ?? {}
|
|
6940
6871
|
},
|
|
6941
6872
|
children: [
|
|
6942
|
-
h !== null && J ? /* @__PURE__ */ e(
|
|
6873
|
+
h !== null && J ? /* @__PURE__ */ e(tr, { ...k, children: ae() }) : null,
|
|
6943
6874
|
/* @__PURE__ */ e(
|
|
6944
6875
|
f,
|
|
6945
6876
|
{
|
|
@@ -6953,12 +6884,12 @@ const Mo = (t) => {
|
|
|
6953
6884
|
children: t
|
|
6954
6885
|
}
|
|
6955
6886
|
),
|
|
6956
|
-
a ? /* @__PURE__ */ e(
|
|
6887
|
+
a ? /* @__PURE__ */ e(rr, { ...x, children: a }) : null
|
|
6957
6888
|
]
|
|
6958
6889
|
}
|
|
6959
6890
|
);
|
|
6960
6891
|
}
|
|
6961
|
-
),
|
|
6892
|
+
), So = Ge.memo(
|
|
6962
6893
|
({ value: t, options: r = [], onChange: i, multiple: o }) => {
|
|
6963
6894
|
const n = (t == null ? void 0 : t.map((a) => a.value)) || [], l = (r == null ? void 0 : r.filter((a) => n.includes(a.value))) || [], h = (a) => {
|
|
6964
6895
|
const u = [...l];
|
|
@@ -6966,7 +6897,7 @@ const Mo = (t) => {
|
|
|
6966
6897
|
o ? d = n.includes(a.value) ? u.filter((g) => g.value !== a.value) : [...u, a] : d = [a], i == null || i(d);
|
|
6967
6898
|
};
|
|
6968
6899
|
return /* @__PURE__ */ e(f, { direction: "row", gap: "sm", flexWrap: "wrap", children: r == null ? void 0 : r.map((a, u) => /* @__PURE__ */ e(
|
|
6969
|
-
|
|
6900
|
+
O,
|
|
6970
6901
|
{
|
|
6971
6902
|
...n.includes(a.value) ? { primary: !0 } : { secondary: !0 },
|
|
6972
6903
|
onClick: () => h(a),
|
|
@@ -7009,11 +6940,11 @@ const ie = {
|
|
|
7009
6940
|
"lyd-vm-group": "_lyd-vm-group_1e92c_162",
|
|
7010
6941
|
"lyd-vm-btn": "_lyd-vm-btn_1e92c_170",
|
|
7011
6942
|
"lyd-close-btn": "_lyd-close-btn_1e92c_193"
|
|
7012
|
-
},
|
|
6943
|
+
}, Xi = [
|
|
7013
6944
|
{
|
|
7014
6945
|
mode: "sidebar",
|
|
7015
6946
|
label: "Sidebar",
|
|
7016
|
-
icon: /* @__PURE__ */ e(
|
|
6947
|
+
icon: /* @__PURE__ */ e(en, {})
|
|
7017
6948
|
},
|
|
7018
6949
|
{
|
|
7019
6950
|
mode: "modal",
|
|
@@ -7026,8 +6957,8 @@ const ie = {
|
|
|
7026
6957
|
icon: /* @__PURE__ */ e(w, { name: "Fullscreen", size: "sm" })
|
|
7027
6958
|
}
|
|
7028
6959
|
];
|
|
7029
|
-
function
|
|
7030
|
-
return /* @__PURE__ */ e("div", { className: ie["lyd-vm-group"], role: "group", "aria-label": "View mode", children:
|
|
6960
|
+
function Ki({ value: t, onChange: r }) {
|
|
6961
|
+
return /* @__PURE__ */ e("div", { className: ie["lyd-vm-group"], role: "group", "aria-label": "View mode", children: Xi.map((i) => /* @__PURE__ */ e(
|
|
7031
6962
|
"button",
|
|
7032
6963
|
{
|
|
7033
6964
|
type: "button",
|
|
@@ -7041,7 +6972,7 @@ function nn({ value: t, onChange: r }) {
|
|
|
7041
6972
|
i.mode
|
|
7042
6973
|
)) });
|
|
7043
6974
|
}
|
|
7044
|
-
function
|
|
6975
|
+
function en() {
|
|
7045
6976
|
return /* @__PURE__ */ s(
|
|
7046
6977
|
"svg",
|
|
7047
6978
|
{
|
|
@@ -7062,22 +6993,22 @@ function on() {
|
|
|
7062
6993
|
}
|
|
7063
6994
|
);
|
|
7064
6995
|
}
|
|
7065
|
-
const
|
|
6996
|
+
const lt = {
|
|
7066
6997
|
md: "768px",
|
|
7067
6998
|
lg: "1024px",
|
|
7068
6999
|
xl: "1200px",
|
|
7069
7000
|
"2xl": "1440px"
|
|
7070
7001
|
};
|
|
7071
|
-
function
|
|
7072
|
-
return t ? t in
|
|
7002
|
+
function tn(t) {
|
|
7003
|
+
return t ? t in lt ? lt[t] : t : lt.xl;
|
|
7073
7004
|
}
|
|
7074
7005
|
function $e(t, r) {
|
|
7075
7006
|
let i = null;
|
|
7076
|
-
return
|
|
7077
|
-
|
|
7007
|
+
return Ge.Children.forEach(t, (o) => {
|
|
7008
|
+
Ge.isValidElement(o) && o.type === r && (i = o.props.children ?? null);
|
|
7078
7009
|
}), i;
|
|
7079
7010
|
}
|
|
7080
|
-
function
|
|
7011
|
+
function rn(t) {
|
|
7081
7012
|
const {
|
|
7082
7013
|
isOpen: r,
|
|
7083
7014
|
onClose: i,
|
|
@@ -7092,9 +7023,9 @@ function cn(t) {
|
|
|
7092
7023
|
disableBackdropClose: m = !1,
|
|
7093
7024
|
lockBodyScroll: y = !0,
|
|
7094
7025
|
children: b
|
|
7095
|
-
} = t, [
|
|
7096
|
-
(
|
|
7097
|
-
o === void 0 &&
|
|
7026
|
+
} = t, [k, x] = E(n), R = o ?? k, T = oe("md") ? R : "fullscreen", U = ve(
|
|
7027
|
+
(P) => {
|
|
7028
|
+
o === void 0 && x(P), l == null || l(P);
|
|
7098
7029
|
},
|
|
7099
7030
|
[o, l]
|
|
7100
7031
|
), L = ne(null);
|
|
@@ -7105,21 +7036,21 @@ function cn(t) {
|
|
|
7105
7036
|
};
|
|
7106
7037
|
}, [r, y]), $(() => {
|
|
7107
7038
|
if (!r || g) return;
|
|
7108
|
-
const
|
|
7039
|
+
const P = (ee) => {
|
|
7109
7040
|
ee.key === "Escape" && i();
|
|
7110
7041
|
};
|
|
7111
|
-
return window.addEventListener("keydown",
|
|
7042
|
+
return window.addEventListener("keydown", P), () => window.removeEventListener("keydown", P);
|
|
7112
7043
|
}, [r, g, i]);
|
|
7113
|
-
const ae =
|
|
7044
|
+
const ae = me(
|
|
7114
7045
|
() => $e(b, Dt),
|
|
7115
7046
|
[b]
|
|
7116
|
-
), J =
|
|
7047
|
+
), J = me(
|
|
7117
7048
|
() => $e(b, wt),
|
|
7118
7049
|
[b]
|
|
7119
|
-
),
|
|
7050
|
+
), A = me(
|
|
7120
7051
|
() => $e(b, kt),
|
|
7121
7052
|
[b]
|
|
7122
|
-
),
|
|
7053
|
+
), Q = me(
|
|
7123
7054
|
() => $e(b, St),
|
|
7124
7055
|
[b]
|
|
7125
7056
|
);
|
|
@@ -7130,7 +7061,7 @@ function cn(t) {
|
|
|
7130
7061
|
T === "fullscreen" && ie["lyd-fullscreen"],
|
|
7131
7062
|
T === "sidebar" && ie["lyd-sidebar"]
|
|
7132
7063
|
].filter(Boolean).join(" "), ce = {
|
|
7133
|
-
"--lyd-max-w":
|
|
7064
|
+
"--lyd-max-w": tn(u),
|
|
7134
7065
|
...d !== void 0 && { "--lyd-aside-w": d }
|
|
7135
7066
|
}, G = () => {
|
|
7136
7067
|
m || i();
|
|
@@ -7155,7 +7086,7 @@ function cn(t) {
|
|
|
7155
7086
|
/* @__PURE__ */ s("div", { className: ie["lyd-header"], children: [
|
|
7156
7087
|
/* @__PURE__ */ e("div", { className: ie["lyd-header-content"], children: ae }),
|
|
7157
7088
|
/* @__PURE__ */ s("div", { className: ie["lyd-header-actions"], children: [
|
|
7158
|
-
h && /* @__PURE__ */ e(
|
|
7089
|
+
h && /* @__PURE__ */ e(Ki, { value: R, onChange: U }),
|
|
7159
7090
|
a && /* @__PURE__ */ e(
|
|
7160
7091
|
"button",
|
|
7161
7092
|
{
|
|
@@ -7170,20 +7101,20 @@ function cn(t) {
|
|
|
7170
7101
|
] }),
|
|
7171
7102
|
/* @__PURE__ */ s("div", { className: ie["lyd-main"], children: [
|
|
7172
7103
|
/* @__PURE__ */ e("div", { className: ie["lyd-body"], children: J }),
|
|
7173
|
-
|
|
7104
|
+
A && /* @__PURE__ */ e("aside", { className: ie["lyd-aside"], children: A })
|
|
7174
7105
|
] }),
|
|
7175
|
-
|
|
7106
|
+
Q && /* @__PURE__ */ e("div", { className: ie["lyd-footer"], children: Q })
|
|
7176
7107
|
] })
|
|
7177
7108
|
]
|
|
7178
7109
|
}
|
|
7179
7110
|
);
|
|
7180
7111
|
}
|
|
7181
|
-
const
|
|
7182
|
-
|
|
7183
|
-
|
|
7184
|
-
|
|
7185
|
-
|
|
7186
|
-
function
|
|
7112
|
+
const Ye = rn;
|
|
7113
|
+
Ye.Header = Dt;
|
|
7114
|
+
Ye.Body = wt;
|
|
7115
|
+
Ye.Aside = kt;
|
|
7116
|
+
Ye.Footer = St;
|
|
7117
|
+
function Fo({ url: t, filename: r, onClose: i }) {
|
|
7187
7118
|
return $(() => {
|
|
7188
7119
|
const o = (n) => {
|
|
7189
7120
|
n.key === "Escape" && i();
|
|
@@ -7281,8 +7212,8 @@ function Bo({ url: t, filename: r, onClose: i }) {
|
|
|
7281
7212
|
}
|
|
7282
7213
|
);
|
|
7283
7214
|
}
|
|
7284
|
-
const
|
|
7285
|
-
const { defaultTab: r = 0, paramKey: i = "tab" } = t || {}, [o, n] =
|
|
7215
|
+
const Eo = (t) => {
|
|
7216
|
+
const { defaultTab: r = 0, paramKey: i = "tab" } = t || {}, [o, n] = Pe(), l = Je(o.toString());
|
|
7286
7217
|
return {
|
|
7287
7218
|
activeTab: l[i] ? parseInt(l[i]) : r,
|
|
7288
7219
|
handleTabChange: (u) => {
|
|
@@ -7294,7 +7225,7 @@ const Io = (t) => {
|
|
|
7294
7225
|
searchQueries: l
|
|
7295
7226
|
};
|
|
7296
7227
|
};
|
|
7297
|
-
function
|
|
7228
|
+
function Mo({
|
|
7298
7229
|
appName: t,
|
|
7299
7230
|
menuConfig: r,
|
|
7300
7231
|
formatTitle: i
|
|
@@ -7315,8 +7246,8 @@ function Ao({
|
|
|
7315
7246
|
document.title = (i || a)(h, t);
|
|
7316
7247
|
}, [o.pathname]);
|
|
7317
7248
|
}
|
|
7318
|
-
const
|
|
7319
|
-
const [t, r] =
|
|
7249
|
+
const Lo = () => {
|
|
7250
|
+
const [t, r] = Pe(), i = Je(t.toString()), o = Jt(), n = Te(), l = o.id;
|
|
7320
7251
|
return {
|
|
7321
7252
|
// query params
|
|
7322
7253
|
setSearchParams: r,
|
|
@@ -7334,10 +7265,10 @@ const Ho = () => {
|
|
|
7334
7265
|
hasId: !!l
|
|
7335
7266
|
};
|
|
7336
7267
|
};
|
|
7337
|
-
function
|
|
7268
|
+
function Wo(t) {
|
|
7338
7269
|
var o, n;
|
|
7339
7270
|
const r = t.decodedAccessToken;
|
|
7340
|
-
return
|
|
7271
|
+
return me(() => {
|
|
7341
7272
|
var u, d;
|
|
7342
7273
|
const l = ((d = (u = r == null ? void 0 : r.access) == null ? void 0 : u.role) == null ? void 0 : d.code) ?? "", h = Object.keys(t.role).reduce(
|
|
7343
7274
|
(g, m) => {
|
|
@@ -7360,101 +7291,100 @@ function zo(t) {
|
|
|
7360
7291
|
}, [(n = (o = r == null ? void 0 : r.access) == null ? void 0 : o.role) == null ? void 0 : n.code, t]);
|
|
7361
7292
|
}
|
|
7362
7293
|
export {
|
|
7363
|
-
|
|
7364
|
-
|
|
7365
|
-
Vn as App,
|
|
7294
|
+
di as AdvanceFilterBar,
|
|
7295
|
+
Hn as App,
|
|
7366
7296
|
Er as AppComponent,
|
|
7367
|
-
|
|
7368
|
-
|
|
7369
|
-
|
|
7370
|
-
|
|
7371
|
-
|
|
7372
|
-
|
|
7373
|
-
|
|
7374
|
-
|
|
7297
|
+
Pt as AppContext,
|
|
7298
|
+
zn as AppLayout,
|
|
7299
|
+
yo as AsideBar,
|
|
7300
|
+
Tn as BackButton,
|
|
7301
|
+
mi as ColumnFilterDropdown,
|
|
7302
|
+
wo as ConfirmationDialog,
|
|
7303
|
+
xi as DataTable,
|
|
7304
|
+
N as DecisionWrapper,
|
|
7375
7305
|
bt as EachUtils,
|
|
7376
|
-
|
|
7377
|
-
|
|
7378
|
-
|
|
7379
|
-
|
|
7380
|
-
|
|
7381
|
-
|
|
7382
|
-
|
|
7306
|
+
Co as EmptyStatePage,
|
|
7307
|
+
si as FilterDrawer,
|
|
7308
|
+
po as FloatingFooter,
|
|
7309
|
+
bo as ForbiddenPage,
|
|
7310
|
+
mo as Form,
|
|
7311
|
+
ko as FullSection,
|
|
7312
|
+
An as HeaderLeftSlot,
|
|
7383
7313
|
Wr as HeaderLeftSlotOutlet,
|
|
7384
7314
|
Lr as HeaderLeftSlotProvider,
|
|
7385
|
-
|
|
7386
|
-
|
|
7387
|
-
|
|
7388
|
-
|
|
7389
|
-
|
|
7315
|
+
On as HorizontalField,
|
|
7316
|
+
Fo as ImagePreview,
|
|
7317
|
+
Hi as InputFile,
|
|
7318
|
+
Zi as InputImage,
|
|
7319
|
+
Ye as LayoutDialog,
|
|
7390
7320
|
kt as LayoutDialogAside,
|
|
7391
7321
|
wt as LayoutDialogBody,
|
|
7392
7322
|
St as LayoutDialogFooter,
|
|
7393
7323
|
Dt as LayoutDialogHeader,
|
|
7394
|
-
|
|
7395
|
-
|
|
7396
|
-
|
|
7397
|
-
|
|
7398
|
-
|
|
7324
|
+
Nn as ModuleSwitcher,
|
|
7325
|
+
Ar as ModuleSwitcherModal,
|
|
7326
|
+
vo as NotFoundPage,
|
|
7327
|
+
_n as PageLayout,
|
|
7328
|
+
Ct as Pressable,
|
|
7399
7329
|
jr as RightDrawer,
|
|
7400
|
-
|
|
7401
|
-
|
|
7402
|
-
|
|
7403
|
-
|
|
7404
|
-
|
|
7405
|
-
|
|
7330
|
+
qi as ScrollToTopButton,
|
|
7331
|
+
jn as Section,
|
|
7332
|
+
rr as SectionFooter,
|
|
7333
|
+
tr as SectionHeader,
|
|
7334
|
+
So as SelectButton,
|
|
7335
|
+
Do as ServerErrorPage,
|
|
7406
7336
|
Sr as SidebarBadgesProvider,
|
|
7407
|
-
|
|
7337
|
+
Rn as SidebarGroupSlot,
|
|
7408
7338
|
Ir as SidebarGroupSlotOutlet,
|
|
7409
7339
|
Br as SidebarGroupSlotProvider,
|
|
7410
7340
|
Mr as SidebarHeaderSlot,
|
|
7411
|
-
|
|
7412
|
-
|
|
7413
|
-
|
|
7414
|
-
|
|
7415
|
-
|
|
7416
|
-
|
|
7417
|
-
|
|
7418
|
-
|
|
7419
|
-
|
|
7420
|
-
|
|
7421
|
-
|
|
7422
|
-
|
|
7423
|
-
|
|
7424
|
-
|
|
7425
|
-
|
|
7426
|
-
|
|
7427
|
-
|
|
7428
|
-
|
|
7429
|
-
|
|
7430
|
-
|
|
7431
|
-
|
|
7341
|
+
gi as TableFooter,
|
|
7342
|
+
ui as TableHeader,
|
|
7343
|
+
Jn as TableSection,
|
|
7344
|
+
hi as TableWrapper,
|
|
7345
|
+
go as ToggleStatus,
|
|
7346
|
+
pe as Typography,
|
|
7347
|
+
xo as VerticalField,
|
|
7348
|
+
Vn as clearModuleSelection,
|
|
7349
|
+
Qn as createInitialFromUserName,
|
|
7350
|
+
eo as cssVars,
|
|
7351
|
+
io as formHasChanged,
|
|
7352
|
+
Kn as formatDate,
|
|
7353
|
+
Si as formatDateToIndonesian,
|
|
7354
|
+
Yn as formatRupiah,
|
|
7355
|
+
qn as getDateFilterValue,
|
|
7356
|
+
Gn as getDateRangeFilterValue,
|
|
7357
|
+
Xn as getInitials,
|
|
7358
|
+
Zn as getValueDropdownMultipleFilter,
|
|
7359
|
+
$n as getValueRadioFilter,
|
|
7360
|
+
ai as getValueSearch,
|
|
7361
|
+
nt as getValuesFilter,
|
|
7432
7362
|
_t as handleChangeFilter,
|
|
7433
|
-
|
|
7434
|
-
|
|
7435
|
-
|
|
7436
|
-
|
|
7437
|
-
|
|
7438
|
-
|
|
7439
|
-
|
|
7440
|
-
|
|
7441
|
-
|
|
7442
|
-
|
|
7443
|
-
|
|
7444
|
-
|
|
7445
|
-
|
|
7446
|
-
|
|
7447
|
-
|
|
7448
|
-
|
|
7449
|
-
|
|
7450
|
-
|
|
7451
|
-
|
|
7363
|
+
fo as handleOnScroll,
|
|
7364
|
+
so as isEmail,
|
|
7365
|
+
Un as isFilterActive,
|
|
7366
|
+
oo as isOnlyLettersAndSpaces,
|
|
7367
|
+
no as isPhoneNumber,
|
|
7368
|
+
ho as isSlug,
|
|
7369
|
+
to as oneDayInMs,
|
|
7370
|
+
Pn as parseIndonesianDateToDate,
|
|
7371
|
+
uo as preventNonCoordinateInput,
|
|
7372
|
+
ao as preventNonNumberAndDecimalInput,
|
|
7373
|
+
lo as preventNonNumberInput,
|
|
7374
|
+
co as preventNumberInput,
|
|
7375
|
+
ni as resolveDateRangeValueToString,
|
|
7376
|
+
oi as resolveDateValueToString,
|
|
7377
|
+
ri as resolveDropdownValueToString,
|
|
7378
|
+
ii as resolveRadioValueToString,
|
|
7379
|
+
rt as resolveSidebarBadge,
|
|
7380
|
+
ro as textWidth,
|
|
7381
|
+
Yt as useApp,
|
|
7452
7382
|
kr as useAppState,
|
|
7453
|
-
|
|
7454
|
-
|
|
7455
|
-
|
|
7383
|
+
Wo as useAuthRole,
|
|
7384
|
+
Mo as useDynamicTitle,
|
|
7385
|
+
er as useModuleSelection,
|
|
7456
7386
|
vt as useRouteInfo,
|
|
7457
|
-
|
|
7387
|
+
Lo as useRouteParams,
|
|
7458
7388
|
Fr as useSidebarBadges,
|
|
7459
|
-
|
|
7389
|
+
Eo as useTabState
|
|
7460
7390
|
};
|