@starasia/admin 6.5.0 → 6.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/InputFile/index.d.ts +12 -4
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +997 -961
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5,7 +5,7 @@ import { Box as f } from "@starasia/box";
|
|
|
5
5
|
export * from "@starasia/box";
|
|
6
6
|
import { Breadcrumb as ir, BreadcrumbItem as kt, BreadcrumbLink as nr } from "@starasia/breadcrumb";
|
|
7
7
|
export * from "@starasia/breadcrumb";
|
|
8
|
-
import { Button as
|
|
8
|
+
import { Button as N } from "@starasia/button";
|
|
9
9
|
export * from "@starasia/button";
|
|
10
10
|
export * from "@starasia/card";
|
|
11
11
|
import { StarasiaDate as or } from "@starasia/date";
|
|
@@ -24,10 +24,10 @@ import { Input as gt } from "@starasia/input";
|
|
|
24
24
|
export * from "@starasia/input";
|
|
25
25
|
import { Menu as jt, MenuButton as Ge, MenuLists as Zt, MenuHeading as cr, MenuBody as $t, MenuFooter as ar } from "@starasia/menu";
|
|
26
26
|
export * from "@starasia/menu";
|
|
27
|
-
import { Pagination as
|
|
27
|
+
import { Pagination as dr } from "@starasia/pagination";
|
|
28
28
|
export * from "@starasia/pagination";
|
|
29
29
|
export * from "@starasia/storage";
|
|
30
|
-
import { Tr as Re, Td as Se, Table as Gt, Thead as
|
|
30
|
+
import { Tr as Re, Td as Se, Table as Gt, Thead as sr, Th as St, Tbody as ur } from "@starasia/table";
|
|
31
31
|
export * from "@starasia/table";
|
|
32
32
|
export * from "@starasia/tabs";
|
|
33
33
|
import { Textarea as hr } from "@starasia/textarea";
|
|
@@ -35,7 +35,7 @@ export * from "@starasia/textarea";
|
|
|
35
35
|
import { useTheme as fr, ThemeProvider as Ft, useColor as gr } from "@starasia/theme";
|
|
36
36
|
export * from "@starasia/theme";
|
|
37
37
|
export * from "@starasia/toast";
|
|
38
|
-
import { Toggle as
|
|
38
|
+
import { Toggle as qt } from "@starasia/toggle";
|
|
39
39
|
export * from "@starasia/toggle";
|
|
40
40
|
import { Tooltip as me } from "@starasia/tooltip";
|
|
41
41
|
export * from "@starasia/tooltip";
|
|
@@ -43,22 +43,22 @@ import { Checkbox as ct } from "@starasia/checkbox";
|
|
|
43
43
|
export * from "@starasia/checkbox";
|
|
44
44
|
import { Radio as mr } from "@starasia/radio";
|
|
45
45
|
export * from "@starasia/radio";
|
|
46
|
-
import { Text as
|
|
46
|
+
import { Text as x } from "@starasia/text";
|
|
47
47
|
export * from "@starasia/text";
|
|
48
|
-
import { Icon as
|
|
48
|
+
import { Icon as D } from "@starasia/icon";
|
|
49
49
|
export * from "@starasia/icon";
|
|
50
|
-
import { Flex as
|
|
50
|
+
import { Flex as _ } from "@starasia/flex";
|
|
51
51
|
export * from "@starasia/flex";
|
|
52
52
|
export * from "@starasia/progress";
|
|
53
53
|
export * from "@starasia/stepper";
|
|
54
54
|
export * from "@starasia/accordion";
|
|
55
55
|
export * from "@starasia/story-record";
|
|
56
|
-
import { Skeleton as
|
|
56
|
+
import { Skeleton as He } from "@starasia/skeleton";
|
|
57
57
|
export * from "@starasia/skeleton";
|
|
58
58
|
export * from "@starasia/progress-stepper";
|
|
59
|
-
import { jsx as e, Fragment as
|
|
60
|
-
import
|
|
61
|
-
import { useSearchParams as Ye, useNavigate as mt, useLocation as Ve, Outlet as Et, Link as
|
|
59
|
+
import { jsx as e, Fragment as q, jsxs as d } from "react/jsx-runtime";
|
|
60
|
+
import qe, { createContext as Qe, useState as k, useContext as We, useCallback as ve, useMemo as he, memo as ce, useEffect as $, useRef as ie, useLayoutEffect as at, isValidElement as dt, forwardRef as Ut, Children as yr, useImperativeHandle as pr } from "react";
|
|
61
|
+
import { useSearchParams as Ye, useNavigate as mt, useLocation as Ve, Outlet as Et, Link as Ue, useParams as Jt } from "react-router";
|
|
62
62
|
import xr, { createPortal as Pt } from "react-dom";
|
|
63
63
|
import Cr from "react-easy-crop";
|
|
64
64
|
const vr = {
|
|
@@ -69,7 +69,7 @@ const vr = {
|
|
|
69
69
|
userData: null,
|
|
70
70
|
setUserData: () => {
|
|
71
71
|
}
|
|
72
|
-
}, Qt = Qe(vr), Yt = () => We(Qt),
|
|
72
|
+
}, Qt = Qe(vr), Yt = () => We(Qt), br = (t) => {
|
|
73
73
|
const [r, i] = k(
|
|
74
74
|
(t == null ? void 0 : t.initialUserData) || null
|
|
75
75
|
);
|
|
@@ -85,7 +85,7 @@ const vr = {
|
|
|
85
85
|
},
|
|
86
86
|
clearBadge: () => {
|
|
87
87
|
}
|
|
88
|
-
}),
|
|
88
|
+
}), Dr = ({ children: t }) => {
|
|
89
89
|
const [r, i] = k({}), o = ve(
|
|
90
90
|
(a) => {
|
|
91
91
|
i(
|
|
@@ -95,17 +95,17 @@ const vr = {
|
|
|
95
95
|
[]
|
|
96
96
|
), n = ve(
|
|
97
97
|
(a, h) => {
|
|
98
|
-
i((
|
|
99
|
-
const g = typeof h == "function" ? h(
|
|
100
|
-
return { ...
|
|
98
|
+
i((u) => {
|
|
99
|
+
const g = typeof h == "function" ? h(u[a]) : h;
|
|
100
|
+
return { ...u, [a]: g };
|
|
101
101
|
});
|
|
102
102
|
},
|
|
103
103
|
[]
|
|
104
104
|
), l = ve((a) => {
|
|
105
105
|
i((h) => {
|
|
106
106
|
if (!(a in h)) return h;
|
|
107
|
-
const
|
|
108
|
-
return delete
|
|
107
|
+
const u = { ...h };
|
|
108
|
+
return delete u[a], u;
|
|
109
109
|
});
|
|
110
110
|
}, []), s = he(
|
|
111
111
|
() => ({ badges: r, setBadge: n, setBadges: o, clearBadge: l }),
|
|
@@ -124,7 +124,7 @@ const vr = {
|
|
|
124
124
|
initialUserData: l,
|
|
125
125
|
theme: s
|
|
126
126
|
}) => {
|
|
127
|
-
const a =
|
|
127
|
+
const a = br({ initialUserData: l }), { theme: h } = fr();
|
|
128
128
|
return /* @__PURE__ */ e(
|
|
129
129
|
Qt.Provider,
|
|
130
130
|
{
|
|
@@ -136,10 +136,10 @@ const vr = {
|
|
|
136
136
|
setUserData: a.setUserData,
|
|
137
137
|
menuBottom: i
|
|
138
138
|
},
|
|
139
|
-
children: /* @__PURE__ */ e(
|
|
139
|
+
children: /* @__PURE__ */ e(Dr, { children: s ? /* @__PURE__ */ e(Ft, { value: s, children: t }) : h ? /* @__PURE__ */ e(Ft, { value: h, children: t }) : t })
|
|
140
140
|
}
|
|
141
141
|
);
|
|
142
|
-
},
|
|
142
|
+
}, Hn = ce(kr);
|
|
143
143
|
function Sr({
|
|
144
144
|
collapsed: t = !1,
|
|
145
145
|
children: r
|
|
@@ -179,7 +179,7 @@ function Sr({
|
|
|
179
179
|
}
|
|
180
180
|
const yt = Qe(null);
|
|
181
181
|
function Fr({ children: t }) {
|
|
182
|
-
const [r, i] = k(null), [o, n] = k(null), [l, s] = k(null), [a, h] = k(0),
|
|
182
|
+
const [r, i] = k(null), [o, n] = k(null), [l, s] = k(null), [a, h] = k(0), u = ve(() => (h((g) => g + 1), () => h((g) => g - 1)), []);
|
|
183
183
|
return /* @__PURE__ */ e(
|
|
184
184
|
yt.Provider,
|
|
185
185
|
{
|
|
@@ -191,7 +191,7 @@ function Fr({ children: t }) {
|
|
|
191
191
|
setAppendNode: n,
|
|
192
192
|
setReplaceNode: s,
|
|
193
193
|
replaceCount: a,
|
|
194
|
-
registerReplace:
|
|
194
|
+
registerReplace: u
|
|
195
195
|
},
|
|
196
196
|
children: t
|
|
197
197
|
}
|
|
@@ -199,18 +199,18 @@ function Fr({ children: t }) {
|
|
|
199
199
|
}
|
|
200
200
|
function Er({ children: t }) {
|
|
201
201
|
const r = We(yt);
|
|
202
|
-
return r ? /* @__PURE__ */
|
|
202
|
+
return r ? /* @__PURE__ */ d(q, { children: [
|
|
203
203
|
/* @__PURE__ */ e("div", { ref: r.setPrependNode, style: { display: "contents" } }),
|
|
204
204
|
r.replaceCount > 0 ? /* @__PURE__ */ e("div", { ref: r.setReplaceNode, style: { display: "contents" } }) : t,
|
|
205
205
|
/* @__PURE__ */ e("div", { ref: r.setAppendNode, style: { display: "contents" } })
|
|
206
|
-
] }) : /* @__PURE__ */ e(
|
|
206
|
+
] }) : /* @__PURE__ */ e(q, { children: t });
|
|
207
207
|
}
|
|
208
208
|
function Rn({
|
|
209
209
|
children: t,
|
|
210
210
|
mode: r = "append"
|
|
211
211
|
}) {
|
|
212
212
|
const i = We(yt);
|
|
213
|
-
if (
|
|
213
|
+
if ($(() => {
|
|
214
214
|
if (!(r !== "replace" || !i))
|
|
215
215
|
return i.registerReplace();
|
|
216
216
|
}, [r, i]), !i)
|
|
@@ -222,11 +222,11 @@ function Rn({
|
|
|
222
222
|
}
|
|
223
223
|
const pt = Qe(null);
|
|
224
224
|
function Mr({ children: t }) {
|
|
225
|
-
const [r, i] = k({}), [o, n] = k({}), l = ve((h,
|
|
226
|
-
i((g) => g[h] ===
|
|
227
|
-
}, []), s = ve((h) => (n((
|
|
228
|
-
...
|
|
229
|
-
[h]: Math.max(0, (
|
|
225
|
+
const [r, i] = k({}), [o, n] = k({}), l = ve((h, u) => {
|
|
226
|
+
i((g) => g[h] === u ? g : { ...g, [h]: u });
|
|
227
|
+
}, []), s = ve((h) => (n((u) => ({ ...u, [h]: (u[h] ?? 0) + 1 })), () => n((u) => ({
|
|
228
|
+
...u,
|
|
229
|
+
[h]: Math.max(0, (u[h] ?? 0) - 1)
|
|
230
230
|
}))), []), a = he(
|
|
231
231
|
() => ({ outletNodes: r, setOutletNode: l, slotCounts: o, registerSlot: s }),
|
|
232
232
|
[r, l, o, s]
|
|
@@ -244,11 +244,11 @@ function Lr({ slotKey: t, fallback: r }) {
|
|
|
244
244
|
[t]
|
|
245
245
|
// slotKey is a stable string from group config
|
|
246
246
|
);
|
|
247
|
-
return /* @__PURE__ */ e(
|
|
247
|
+
return /* @__PURE__ */ e(q, { children: o ? /* @__PURE__ */ e("div", { ref: l, style: { display: "contents" } }) : r });
|
|
248
248
|
}
|
|
249
249
|
function Vn({ slotKey: t, children: r }) {
|
|
250
250
|
const i = We(pt), o = ie(i == null ? void 0 : i.registerSlot);
|
|
251
|
-
if (o.current = i == null ? void 0 : i.registerSlot,
|
|
251
|
+
if (o.current = i == null ? void 0 : i.registerSlot, $(() => {
|
|
252
252
|
var l;
|
|
253
253
|
return (l = o.current) == null ? void 0 : l.call(o, t);
|
|
254
254
|
}, [t]), !i)
|
|
@@ -258,7 +258,7 @@ function Vn({ slotKey: t, children: r }) {
|
|
|
258
258
|
const n = i.outletNodes[t];
|
|
259
259
|
return n ? Pt(r, n) : null;
|
|
260
260
|
}
|
|
261
|
-
const Je = "moduleSwitcherGroupId",
|
|
261
|
+
const Je = "moduleSwitcherGroupId", st = "sa-module-switcher-change";
|
|
262
262
|
function Mt() {
|
|
263
263
|
if (typeof window > "u") return null;
|
|
264
264
|
const t = window.localStorage.getItem(Je);
|
|
@@ -267,30 +267,30 @@ function Mt() {
|
|
|
267
267
|
return Number.isFinite(r) ? r : null;
|
|
268
268
|
}
|
|
269
269
|
function Kt(t) {
|
|
270
|
-
typeof window > "u" || (t === null ? window.localStorage.removeItem(Je) : window.localStorage.setItem(Je, String(t)), window.dispatchEvent(new CustomEvent(
|
|
270
|
+
typeof window > "u" || (t === null ? window.localStorage.removeItem(Je) : window.localStorage.setItem(Je, String(t)), window.dispatchEvent(new CustomEvent(st, { detail: t })));
|
|
271
271
|
}
|
|
272
|
-
function
|
|
272
|
+
function Tn() {
|
|
273
273
|
Kt(null);
|
|
274
274
|
}
|
|
275
275
|
function er() {
|
|
276
276
|
const [t, r] = k(
|
|
277
277
|
() => Mt()
|
|
278
278
|
);
|
|
279
|
-
return
|
|
279
|
+
return $(() => {
|
|
280
280
|
const o = () => {
|
|
281
281
|
r(Mt());
|
|
282
282
|
}, n = (l) => {
|
|
283
283
|
l.key === Je && o();
|
|
284
284
|
};
|
|
285
|
-
return window.addEventListener(
|
|
286
|
-
window.removeEventListener(
|
|
285
|
+
return window.addEventListener(st, o), window.addEventListener("storage", n), () => {
|
|
286
|
+
window.removeEventListener(st, o), window.removeEventListener("storage", n);
|
|
287
287
|
};
|
|
288
288
|
}, []), { selectedGroupId: t, setSelectedGroupId: (o) => {
|
|
289
289
|
Kt(o), r(o);
|
|
290
290
|
} };
|
|
291
291
|
}
|
|
292
292
|
let Ze = 0, ke = !1, Lt = /* @__PURE__ */ new Set();
|
|
293
|
-
const Wt = () => /* @__PURE__ */
|
|
293
|
+
const Wt = () => /* @__PURE__ */ d(
|
|
294
294
|
"svg",
|
|
295
295
|
{
|
|
296
296
|
width: "100%",
|
|
@@ -324,7 +324,7 @@ const Wt = () => /* @__PURE__ */ u(
|
|
|
324
324
|
cursor: "pointer",
|
|
325
325
|
textAlign: "left"
|
|
326
326
|
};
|
|
327
|
-
function
|
|
327
|
+
function Nn({
|
|
328
328
|
children: t,
|
|
329
329
|
headerLeftSlot: r,
|
|
330
330
|
profile: i,
|
|
@@ -334,20 +334,20 @@ function Tn({
|
|
|
334
334
|
loadingComponent: s,
|
|
335
335
|
sidebarHeaderContent: a,
|
|
336
336
|
headerActions: h,
|
|
337
|
-
profileRole:
|
|
337
|
+
profileRole: u,
|
|
338
338
|
profileMenuButtons: g,
|
|
339
339
|
profileMenuItems: m,
|
|
340
340
|
logoutButton: y
|
|
341
341
|
}) {
|
|
342
342
|
var Ee, _e;
|
|
343
|
-
const [
|
|
343
|
+
const [b] = Ye(), E = b.get("embed") === "true", C = Yt(), { badges: H } = wr(), Z = mt(), T = Ve(), M = !ne("md"), [ae, J] = k(!1), [A, P] = k(!1), [oe, le] = k(!1), [G, Q] = k(!1), [K, de] = k(
|
|
344
344
|
() => new Set(Lt)
|
|
345
345
|
), [ee, X] = k(null), { selectedGroupId: R, setSelectedGroupId: V } = er();
|
|
346
|
-
|
|
346
|
+
$(() => {
|
|
347
347
|
Lt = K;
|
|
348
348
|
}, [K]);
|
|
349
349
|
const te = ie(null), fe = ie(null);
|
|
350
|
-
|
|
350
|
+
$(() => {
|
|
351
351
|
const p = te.current;
|
|
352
352
|
if (!p) return;
|
|
353
353
|
const F = () => {
|
|
@@ -368,127 +368,127 @@ function Tn({
|
|
|
368
368
|
}, 300);
|
|
369
369
|
return () => clearTimeout(p);
|
|
370
370
|
}, []), at(() => {
|
|
371
|
-
|
|
371
|
+
C.menus.length > 0 && (Ze > 0 ? ge() : requestAnimationFrame(() => {
|
|
372
372
|
var F;
|
|
373
373
|
const p = (F = te.current) == null ? void 0 : F.querySelector(
|
|
374
374
|
"[data-menu-active='true']"
|
|
375
375
|
);
|
|
376
376
|
p && p.scrollIntoView({ block: "center", behavior: "instant" });
|
|
377
377
|
}));
|
|
378
|
-
}, [
|
|
378
|
+
}, [C.menus]), $(() => {
|
|
379
379
|
ke = !0, ge();
|
|
380
|
-
const p = setTimeout(ge, 0), F = setTimeout(ge, 50), L = setTimeout(ge, 100),
|
|
380
|
+
const p = setTimeout(ge, 0), F = setTimeout(ge, 50), L = setTimeout(ge, 100), v = setTimeout(ge, 200), S = setTimeout(() => {
|
|
381
381
|
ke = !1;
|
|
382
382
|
}, 300);
|
|
383
383
|
return () => {
|
|
384
|
-
clearTimeout(p), clearTimeout(F), clearTimeout(L), clearTimeout(
|
|
384
|
+
clearTimeout(p), clearTimeout(F), clearTimeout(L), clearTimeout(v), clearTimeout(S);
|
|
385
385
|
};
|
|
386
|
-
}, [
|
|
386
|
+
}, [T.pathname]), $(() => {
|
|
387
387
|
fe.current && (fe.current.scrollTop = 0);
|
|
388
|
-
}, [
|
|
388
|
+
}, [T.pathname]), $(() => {
|
|
389
389
|
M && le(!1);
|
|
390
|
-
}, [
|
|
390
|
+
}, [T.pathname, M]), $(() => {
|
|
391
391
|
M && P(!0);
|
|
392
392
|
}, [M]);
|
|
393
393
|
const Be = () => {
|
|
394
394
|
J(!0);
|
|
395
|
-
},
|
|
395
|
+
}, Te = () => {
|
|
396
396
|
J(!1);
|
|
397
397
|
}, et = () => {
|
|
398
398
|
J(!1), n();
|
|
399
|
-
},
|
|
399
|
+
}, Ne = (p) => {
|
|
400
400
|
const F = [p.to];
|
|
401
401
|
return p.children && F.push(...p.children.map((L) => L.to)), F;
|
|
402
|
-
},
|
|
403
|
-
...
|
|
404
|
-
...((Ee =
|
|
405
|
-
],
|
|
406
|
-
if (!
|
|
407
|
-
const F =
|
|
402
|
+
}, ze = [
|
|
403
|
+
...C.menus.flatMap((p) => p.items.flatMap(Ne)),
|
|
404
|
+
...((Ee = C.menuBottom) == null ? void 0 : Ee.flatMap(Ne)) ?? []
|
|
405
|
+
], se = (p) => {
|
|
406
|
+
if (!T.pathname.startsWith(p)) return !1;
|
|
407
|
+
const F = ze.filter((L) => T.pathname.startsWith(L)).sort((L, v) => v.length - L.length)[0];
|
|
408
408
|
return p === F;
|
|
409
409
|
};
|
|
410
|
-
|
|
410
|
+
$(() => {
|
|
411
411
|
var F;
|
|
412
412
|
const p = (L) => {
|
|
413
|
-
var
|
|
414
|
-
(
|
|
413
|
+
var v;
|
|
414
|
+
(v = L.children) != null && v.some((S) => T.pathname.startsWith(S.to)) && de((S) => {
|
|
415
415
|
const w = new Set(S);
|
|
416
416
|
return w.add(L.id), w;
|
|
417
417
|
});
|
|
418
418
|
};
|
|
419
|
-
|
|
419
|
+
C.menus.forEach((L) => {
|
|
420
420
|
L.items.forEach(p);
|
|
421
|
-
}), (F =
|
|
422
|
-
}, [
|
|
421
|
+
}), (F = C.menuBottom) == null || F.forEach(p);
|
|
422
|
+
}, [T.pathname, C.menus, C.menuBottom]);
|
|
423
423
|
const Oe = (p) => {
|
|
424
|
-
|
|
424
|
+
de((F) => {
|
|
425
425
|
const L = new Set(F);
|
|
426
426
|
return L.has(p) ? L.delete(p) : L.add(p), L;
|
|
427
427
|
});
|
|
428
428
|
};
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
}, [
|
|
432
|
-
const
|
|
429
|
+
$(() => {
|
|
430
|
+
C.menus.length !== 0 && R !== null && !C.menus.some((p) => p.id === R) && V(null);
|
|
431
|
+
}, [C.menus, R, V]);
|
|
432
|
+
const Ae = he(() => {
|
|
433
433
|
if (R !== null)
|
|
434
|
-
return
|
|
434
|
+
return C.menus.filter(
|
|
435
435
|
(L) => L.id === R || L.parentGroupId === R
|
|
436
436
|
);
|
|
437
|
-
const p =
|
|
437
|
+
const p = C.menus.filter((L) => L.parentGroupId === void 0), F = C.menus.filter((L) => L.parentGroupId !== void 0).flatMap((L) => L.items);
|
|
438
438
|
return F.length === 0 ? p : [
|
|
439
439
|
...p,
|
|
440
440
|
{ id: 18, name: "Pengaturan", items: F, parentGroupId: void 0 }
|
|
441
441
|
];
|
|
442
|
-
}, [
|
|
442
|
+
}, [C.menus, R]);
|
|
443
443
|
if (E)
|
|
444
444
|
return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(Et, {}) });
|
|
445
445
|
const Fe = (p) => {
|
|
446
|
-
const F = p.children && p.children.length > 0, L = K.has(p.id),
|
|
447
|
-
return /* @__PURE__ */
|
|
448
|
-
/* @__PURE__ */
|
|
446
|
+
const F = p.children && p.children.length > 0, L = K.has(p.id), v = F ? p.children.some((B) => se(B.to)) : se(p.to), S = rt(p.badge, H[p.id]), w = !!S && A && !M;
|
|
447
|
+
return /* @__PURE__ */ d("div", { "data-menu-active": v || void 0, children: [
|
|
448
|
+
/* @__PURE__ */ d(
|
|
449
449
|
"button",
|
|
450
450
|
{
|
|
451
451
|
onClick: (B) => {
|
|
452
452
|
if (F)
|
|
453
|
-
if (
|
|
454
|
-
const
|
|
453
|
+
if (A && !M) {
|
|
454
|
+
const I = B.currentTarget.getBoundingClientRect();
|
|
455
455
|
X({
|
|
456
456
|
item: p,
|
|
457
|
-
top:
|
|
458
|
-
left:
|
|
457
|
+
top: I.top,
|
|
458
|
+
left: I.right + 8
|
|
459
459
|
});
|
|
460
460
|
} else
|
|
461
461
|
Oe(p.id);
|
|
462
462
|
else
|
|
463
|
-
|
|
463
|
+
Z(p.to);
|
|
464
464
|
},
|
|
465
465
|
style: {
|
|
466
466
|
width: "100%",
|
|
467
467
|
display: "flex",
|
|
468
468
|
alignItems: "center",
|
|
469
|
-
justifyContent:
|
|
469
|
+
justifyContent: A && !M ? "center" : void 0,
|
|
470
470
|
gap: "0.5rem",
|
|
471
|
-
paddingLeft:
|
|
472
|
-
paddingRight:
|
|
471
|
+
paddingLeft: A && !M ? "0" : "0.5rem",
|
|
472
|
+
paddingRight: A && !M ? "0" : "0.5rem",
|
|
473
473
|
paddingTop: "0.25rem",
|
|
474
474
|
paddingBottom: "0.25rem",
|
|
475
475
|
height: "2rem",
|
|
476
|
-
borderRadius:
|
|
476
|
+
borderRadius: v ? "var(--sa-radii-sm, 0.375rem)" : "var(--sa-radii-md, 0.5rem)",
|
|
477
477
|
textAlign: "left",
|
|
478
|
-
border:
|
|
479
|
-
backgroundColor:
|
|
478
|
+
border: v ? "1px solid var(--sa-border-subtle, #0b120e24)" : "1px solid transparent",
|
|
479
|
+
backgroundColor: v ? "var(--sa-background-primary, #ffffff)" : "transparent",
|
|
480
480
|
color: "var(--sa-text-primary, #292a2e)",
|
|
481
481
|
cursor: "pointer"
|
|
482
482
|
},
|
|
483
|
-
title:
|
|
483
|
+
title: A && !M ? p.title : void 0,
|
|
484
484
|
onMouseEnter: (B) => {
|
|
485
|
-
|
|
485
|
+
v || (B.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
|
|
486
486
|
},
|
|
487
487
|
onMouseLeave: (B) => {
|
|
488
|
-
|
|
488
|
+
v || (B.currentTarget.style.backgroundColor = "transparent");
|
|
489
489
|
},
|
|
490
490
|
children: [
|
|
491
|
-
/* @__PURE__ */
|
|
491
|
+
/* @__PURE__ */ d(
|
|
492
492
|
"span",
|
|
493
493
|
{
|
|
494
494
|
style: {
|
|
@@ -497,7 +497,7 @@ function Tn({
|
|
|
497
497
|
flexShrink: 0
|
|
498
498
|
},
|
|
499
499
|
children: [
|
|
500
|
-
/* @__PURE__ */ e(
|
|
500
|
+
/* @__PURE__ */ e(D, { name: p.icon, size: "sm", style: { flexShrink: 0 } }),
|
|
501
501
|
w && /* @__PURE__ */ e(
|
|
502
502
|
"span",
|
|
503
503
|
{
|
|
@@ -517,7 +517,7 @@ function Tn({
|
|
|
517
517
|
]
|
|
518
518
|
}
|
|
519
519
|
),
|
|
520
|
-
(!
|
|
520
|
+
(!A || M) && /* @__PURE__ */ d(q, { children: [
|
|
521
521
|
/* @__PURE__ */ e(
|
|
522
522
|
"span",
|
|
523
523
|
{
|
|
@@ -571,11 +571,11 @@ function Tn({
|
|
|
571
571
|
]
|
|
572
572
|
}
|
|
573
573
|
),
|
|
574
|
-
F && (!
|
|
574
|
+
F && (!A || M) && (() => {
|
|
575
575
|
const B = p.children.findIndex(
|
|
576
|
-
(
|
|
576
|
+
(I) => se(I.to)
|
|
577
577
|
);
|
|
578
|
-
return /* @__PURE__ */
|
|
578
|
+
return /* @__PURE__ */ d(
|
|
579
579
|
"div",
|
|
580
580
|
{
|
|
581
581
|
style: {
|
|
@@ -621,15 +621,15 @@ function Tn({
|
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
),
|
|
624
|
-
p.children.map((
|
|
624
|
+
p.children.map((I) => {
|
|
625
625
|
const ue = rt(
|
|
626
|
-
|
|
627
|
-
|
|
626
|
+
I.badge,
|
|
627
|
+
H[I.id]
|
|
628
628
|
);
|
|
629
|
-
return /* @__PURE__ */
|
|
629
|
+
return /* @__PURE__ */ d(
|
|
630
630
|
"button",
|
|
631
631
|
{
|
|
632
|
-
onClick: () =>
|
|
632
|
+
onClick: () => Z(I.to),
|
|
633
633
|
style: {
|
|
634
634
|
width: "100%",
|
|
635
635
|
display: "flex",
|
|
@@ -640,24 +640,24 @@ function Tn({
|
|
|
640
640
|
paddingTop: "0.25rem",
|
|
641
641
|
paddingBottom: "0.25rem",
|
|
642
642
|
height: "2rem",
|
|
643
|
-
borderRadius:
|
|
643
|
+
borderRadius: se(I.to) ? "var(--sa-radii-sm, 0.375rem)" : "var(--sa-radii-md, 0.5rem)",
|
|
644
644
|
textAlign: "left",
|
|
645
|
-
backgroundColor:
|
|
646
|
-
color:
|
|
645
|
+
backgroundColor: se(I.to) ? "var(--sa-background-primary, #ffffff)" : "transparent",
|
|
646
|
+
color: se(I.to) ? "var(--sa-text-primary, #292a2e)" : "var(--sa-text-subtle, #505258)",
|
|
647
647
|
cursor: "pointer",
|
|
648
|
-
border:
|
|
648
|
+
border: se(I.to) ? "1px solid var(--sa-border-subtle, #0b120e24)" : "1px solid transparent"
|
|
649
649
|
},
|
|
650
650
|
onMouseEnter: (xe) => {
|
|
651
|
-
|
|
651
|
+
se(I.to) || (xe.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
|
|
652
652
|
},
|
|
653
653
|
onMouseLeave: (xe) => {
|
|
654
|
-
|
|
654
|
+
se(I.to) || (xe.currentTarget.style.backgroundColor = "transparent");
|
|
655
655
|
},
|
|
656
656
|
children: [
|
|
657
657
|
/* @__PURE__ */ e(
|
|
658
|
-
|
|
658
|
+
D,
|
|
659
659
|
{
|
|
660
|
-
name:
|
|
660
|
+
name: I.icon,
|
|
661
661
|
size: "sm",
|
|
662
662
|
style: { flexShrink: 0 }
|
|
663
663
|
}
|
|
@@ -674,7 +674,7 @@ function Tn({
|
|
|
674
674
|
overflow: "hidden",
|
|
675
675
|
textOverflow: "ellipsis"
|
|
676
676
|
},
|
|
677
|
-
children:
|
|
677
|
+
children: I.title
|
|
678
678
|
}
|
|
679
679
|
),
|
|
680
680
|
ue && /* @__PURE__ */ e(
|
|
@@ -688,7 +688,7 @@ function Tn({
|
|
|
688
688
|
)
|
|
689
689
|
]
|
|
690
690
|
},
|
|
691
|
-
|
|
691
|
+
I.id
|
|
692
692
|
);
|
|
693
693
|
})
|
|
694
694
|
]
|
|
@@ -697,8 +697,8 @@ function Tn({
|
|
|
697
697
|
})()
|
|
698
698
|
] }, p.id);
|
|
699
699
|
};
|
|
700
|
-
return /* @__PURE__ */ e(Mr, { children: /* @__PURE__ */
|
|
701
|
-
/* @__PURE__ */
|
|
700
|
+
return /* @__PURE__ */ e(Mr, { children: /* @__PURE__ */ d(Fr, { children: [
|
|
701
|
+
/* @__PURE__ */ d(
|
|
702
702
|
"div",
|
|
703
703
|
{
|
|
704
704
|
style: {
|
|
@@ -706,7 +706,7 @@ function Tn({
|
|
|
706
706
|
height: "100vh",
|
|
707
707
|
// backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
|
|
708
708
|
position: "relative",
|
|
709
|
-
"--app-sidebar-width": M ? "0px" :
|
|
709
|
+
"--app-sidebar-width": M ? "0px" : A ? "4.375rem" : "16.375rem",
|
|
710
710
|
"--app-footer-zindex": M && oe ? "40" : "999"
|
|
711
711
|
},
|
|
712
712
|
children: [
|
|
@@ -725,11 +725,11 @@ function Tn({
|
|
|
725
725
|
onClick: () => le(!1)
|
|
726
726
|
}
|
|
727
727
|
),
|
|
728
|
-
/* @__PURE__ */
|
|
728
|
+
/* @__PURE__ */ d(
|
|
729
729
|
"aside",
|
|
730
730
|
{
|
|
731
731
|
style: {
|
|
732
|
-
width: M ? "16.375rem" :
|
|
732
|
+
width: M ? "16.375rem" : A ? "4.375rem" : "16.375rem",
|
|
733
733
|
position: M ? "fixed" : "relative",
|
|
734
734
|
...M && {
|
|
735
735
|
inset: 0,
|
|
@@ -760,9 +760,9 @@ function Tn({
|
|
|
760
760
|
position: "relative"
|
|
761
761
|
},
|
|
762
762
|
children: (() => {
|
|
763
|
-
const p = !M &&
|
|
764
|
-
return /* @__PURE__ */
|
|
765
|
-
/* @__PURE__ */
|
|
763
|
+
const p = !M && A && !oe, F = p && G;
|
|
764
|
+
return /* @__PURE__ */ d(q, { children: [
|
|
765
|
+
/* @__PURE__ */ d(
|
|
766
766
|
"div",
|
|
767
767
|
{
|
|
768
768
|
style: {
|
|
@@ -779,7 +779,7 @@ function Tn({
|
|
|
779
779
|
/* @__PURE__ */ e(
|
|
780
780
|
"img",
|
|
781
781
|
{
|
|
782
|
-
src:
|
|
782
|
+
src: C.logo,
|
|
783
783
|
alt: "Logo",
|
|
784
784
|
style: {
|
|
785
785
|
width: "2rem",
|
|
@@ -788,7 +788,7 @@ function Tn({
|
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
790
|
),
|
|
791
|
-
(!
|
|
791
|
+
(!A || oe) && /* @__PURE__ */ e(
|
|
792
792
|
"span",
|
|
793
793
|
{
|
|
794
794
|
style: {
|
|
@@ -797,13 +797,13 @@ function Tn({
|
|
|
797
797
|
whiteSpace: "nowrap",
|
|
798
798
|
transition: "opacity 0.3s"
|
|
799
799
|
},
|
|
800
|
-
children:
|
|
800
|
+
children: C.appName
|
|
801
801
|
}
|
|
802
802
|
)
|
|
803
803
|
]
|
|
804
804
|
}
|
|
805
805
|
),
|
|
806
|
-
!M && !
|
|
806
|
+
!M && !A && /* @__PURE__ */ e(
|
|
807
807
|
"button",
|
|
808
808
|
{
|
|
809
809
|
type: "button",
|
|
@@ -904,7 +904,7 @@ function Tn({
|
|
|
904
904
|
a && /* @__PURE__ */ e(
|
|
905
905
|
Sr,
|
|
906
906
|
{
|
|
907
|
-
collapsed: M ? !1 :
|
|
907
|
+
collapsed: M ? !1 : A,
|
|
908
908
|
children: a
|
|
909
909
|
}
|
|
910
910
|
),
|
|
@@ -918,8 +918,8 @@ function Tn({
|
|
|
918
918
|
paddingTop: "1rem",
|
|
919
919
|
paddingBottom: "1rem"
|
|
920
920
|
},
|
|
921
|
-
children:
|
|
922
|
-
!
|
|
921
|
+
children: Ae.map((p) => /* @__PURE__ */ d("div", { style: { marginBottom: "1rem" }, children: [
|
|
922
|
+
!A || M ? p.name && /* @__PURE__ */ e(
|
|
923
923
|
"div",
|
|
924
924
|
{
|
|
925
925
|
style: {
|
|
@@ -972,7 +972,7 @@ function Tn({
|
|
|
972
972
|
] }, p.id))
|
|
973
973
|
}
|
|
974
974
|
),
|
|
975
|
-
|
|
975
|
+
C.menuBottom && C.menuBottom.length > 0 && /* @__PURE__ */ e(
|
|
976
976
|
"div",
|
|
977
977
|
{
|
|
978
978
|
style: {
|
|
@@ -987,14 +987,14 @@ function Tn({
|
|
|
987
987
|
gap: "var(--sa-spacing-xs, 0.25rem)",
|
|
988
988
|
flexShrink: 0
|
|
989
989
|
},
|
|
990
|
-
children:
|
|
990
|
+
children: C.menuBottom.map((p) => Fe(p))
|
|
991
991
|
}
|
|
992
992
|
)
|
|
993
993
|
]
|
|
994
994
|
}
|
|
995
995
|
),
|
|
996
|
-
/* @__PURE__ */
|
|
997
|
-
/* @__PURE__ */
|
|
996
|
+
/* @__PURE__ */ d("div", { style: { flex: 1, display: "flex", flexDirection: "column", overflow: "hidden" }, children: [
|
|
997
|
+
/* @__PURE__ */ d(
|
|
998
998
|
"header",
|
|
999
999
|
{
|
|
1000
1000
|
style: {
|
|
@@ -1009,7 +1009,7 @@ function Tn({
|
|
|
1009
1009
|
flexShrink: 0
|
|
1010
1010
|
},
|
|
1011
1011
|
children: [
|
|
1012
|
-
/* @__PURE__ */
|
|
1012
|
+
/* @__PURE__ */ d("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
|
|
1013
1013
|
M && /* @__PURE__ */ e(
|
|
1014
1014
|
"button",
|
|
1015
1015
|
{
|
|
@@ -1044,10 +1044,10 @@ function Tn({
|
|
|
1044
1044
|
),
|
|
1045
1045
|
/* @__PURE__ */ e(Er, { children: r })
|
|
1046
1046
|
] }),
|
|
1047
|
-
/* @__PURE__ */
|
|
1047
|
+
/* @__PURE__ */ d("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
|
|
1048
1048
|
h,
|
|
1049
|
-
/* @__PURE__ */
|
|
1050
|
-
/* @__PURE__ */ e(Ge, { children: /* @__PURE__ */
|
|
1049
|
+
/* @__PURE__ */ d(jt, { position: "bottom-right", children: [
|
|
1050
|
+
/* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ d(
|
|
1051
1051
|
"div",
|
|
1052
1052
|
{
|
|
1053
1053
|
style: {
|
|
@@ -1057,7 +1057,7 @@ function Tn({
|
|
|
1057
1057
|
cursor: "pointer"
|
|
1058
1058
|
},
|
|
1059
1059
|
children: [
|
|
1060
|
-
/* @__PURE__ */
|
|
1060
|
+
/* @__PURE__ */ d("div", { style: { textAlign: "right", maxWidth: "12.5rem" }, children: [
|
|
1061
1061
|
/* @__PURE__ */ e(
|
|
1062
1062
|
"p",
|
|
1063
1063
|
{
|
|
@@ -1109,7 +1109,7 @@ function Tn({
|
|
|
1109
1109
|
}
|
|
1110
1110
|
),
|
|
1111
1111
|
/* @__PURE__ */ e(
|
|
1112
|
-
|
|
1112
|
+
D,
|
|
1113
1113
|
{
|
|
1114
1114
|
name: "ChevronDown",
|
|
1115
1115
|
size: "sm",
|
|
@@ -1119,7 +1119,7 @@ function Tn({
|
|
|
1119
1119
|
]
|
|
1120
1120
|
}
|
|
1121
1121
|
) }),
|
|
1122
|
-
/* @__PURE__ */
|
|
1122
|
+
/* @__PURE__ */ d(
|
|
1123
1123
|
Zt,
|
|
1124
1124
|
{
|
|
1125
1125
|
style: {
|
|
@@ -1130,7 +1130,7 @@ function Tn({
|
|
|
1130
1130
|
marginTop: "16px"
|
|
1131
1131
|
},
|
|
1132
1132
|
children: [
|
|
1133
|
-
/* @__PURE__ */ e(cr, { children: /* @__PURE__ */
|
|
1133
|
+
/* @__PURE__ */ e(cr, { children: /* @__PURE__ */ d(
|
|
1134
1134
|
"div",
|
|
1135
1135
|
{
|
|
1136
1136
|
style: {
|
|
@@ -1192,7 +1192,7 @@ function Tn({
|
|
|
1192
1192
|
children: (i == null ? void 0 : i.email) || "unknown"
|
|
1193
1193
|
}
|
|
1194
1194
|
),
|
|
1195
|
-
|
|
1195
|
+
u && /* @__PURE__ */ e(
|
|
1196
1196
|
"p",
|
|
1197
1197
|
{
|
|
1198
1198
|
style: {
|
|
@@ -1204,14 +1204,14 @@ function Tn({
|
|
|
1204
1204
|
overflow: "hidden",
|
|
1205
1205
|
textOverflow: "ellipsis"
|
|
1206
1206
|
},
|
|
1207
|
-
children:
|
|
1207
|
+
children: u
|
|
1208
1208
|
}
|
|
1209
1209
|
)
|
|
1210
1210
|
]
|
|
1211
1211
|
}
|
|
1212
1212
|
) }),
|
|
1213
|
-
(g && g.length > 0 || m) && /* @__PURE__ */
|
|
1214
|
-
g == null ? void 0 : g.map((p, F) => /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */
|
|
1213
|
+
(g && g.length > 0 || m) && /* @__PURE__ */ d($t, { children: [
|
|
1214
|
+
g == null ? void 0 : g.map((p, F) => /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ d(
|
|
1215
1215
|
"button",
|
|
1216
1216
|
{
|
|
1217
1217
|
type: "button",
|
|
@@ -1224,14 +1224,14 @@ function Tn({
|
|
|
1224
1224
|
L.currentTarget.style.backgroundColor = "transparent";
|
|
1225
1225
|
},
|
|
1226
1226
|
children: [
|
|
1227
|
-
/* @__PURE__ */ e(
|
|
1227
|
+
/* @__PURE__ */ e(D, { name: p.icon, size: "md" }),
|
|
1228
1228
|
/* @__PURE__ */ e("span", { children: p.label })
|
|
1229
1229
|
]
|
|
1230
1230
|
}
|
|
1231
1231
|
) }, `${p.label}-${F}`)),
|
|
1232
1232
|
m
|
|
1233
1233
|
] }),
|
|
1234
|
-
y ?? /* @__PURE__ */ e(ar, { children: /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */
|
|
1234
|
+
y ?? /* @__PURE__ */ e(ar, { children: /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ d(
|
|
1235
1235
|
"button",
|
|
1236
1236
|
{
|
|
1237
1237
|
type: "button",
|
|
@@ -1249,7 +1249,7 @@ function Tn({
|
|
|
1249
1249
|
},
|
|
1250
1250
|
children: [
|
|
1251
1251
|
/* @__PURE__ */ e(
|
|
1252
|
-
|
|
1252
|
+
D,
|
|
1253
1253
|
{
|
|
1254
1254
|
name: "Logout",
|
|
1255
1255
|
size: "md",
|
|
@@ -1300,15 +1300,15 @@ function Tn({
|
|
|
1300
1300
|
children: s
|
|
1301
1301
|
}
|
|
1302
1302
|
),
|
|
1303
|
-
/* @__PURE__ */
|
|
1303
|
+
/* @__PURE__ */ d(ut, { isShow: ae, onHide: Te, children: [
|
|
1304
1304
|
/* @__PURE__ */ e(Ot, { children: "Confirmation Logout" }),
|
|
1305
1305
|
/* @__PURE__ */ e(ht, { children: "Are you sure you want to end the session and exit the page?" }),
|
|
1306
|
-
/* @__PURE__ */ e(_t, { children: /* @__PURE__ */ e(f, { display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */
|
|
1307
|
-
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
|
|
1308
|
-
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(
|
|
1306
|
+
/* @__PURE__ */ e(_t, { children: /* @__PURE__ */ e(f, { display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ d(_, { direction: "row", gap: "sm", align: "center", children: [
|
|
1307
|
+
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(N, { secondary: !0, onClick: Te, children: "Cancel" }) }),
|
|
1308
|
+
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(N, { primary: !0, onClick: et, children: "Yes, Sure" }) })
|
|
1309
1309
|
] }) }) })
|
|
1310
1310
|
] }),
|
|
1311
|
-
ee && /* @__PURE__ */
|
|
1311
|
+
ee && /* @__PURE__ */ d(q, { children: [
|
|
1312
1312
|
/* @__PURE__ */ e(
|
|
1313
1313
|
"div",
|
|
1314
1314
|
{
|
|
@@ -1321,7 +1321,7 @@ function Tn({
|
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
1323
1323
|
),
|
|
1324
|
-
/* @__PURE__ */
|
|
1324
|
+
/* @__PURE__ */ d(
|
|
1325
1325
|
"div",
|
|
1326
1326
|
{
|
|
1327
1327
|
role: "dialog",
|
|
@@ -1358,15 +1358,15 @@ function Tn({
|
|
|
1358
1358
|
}
|
|
1359
1359
|
),
|
|
1360
1360
|
(_e = ee.item.children) == null ? void 0 : _e.map((p) => {
|
|
1361
|
-
const F =
|
|
1361
|
+
const F = se(p.to), L = rt(
|
|
1362
1362
|
p.badge,
|
|
1363
|
-
|
|
1363
|
+
H[p.id]
|
|
1364
1364
|
);
|
|
1365
|
-
return /* @__PURE__ */
|
|
1365
|
+
return /* @__PURE__ */ d(
|
|
1366
1366
|
"button",
|
|
1367
1367
|
{
|
|
1368
1368
|
onClick: () => {
|
|
1369
|
-
|
|
1369
|
+
Z(p.to), X(null);
|
|
1370
1370
|
},
|
|
1371
1371
|
style: {
|
|
1372
1372
|
width: "100%",
|
|
@@ -1383,15 +1383,15 @@ function Tn({
|
|
|
1383
1383
|
fontSize: "0.875rem",
|
|
1384
1384
|
fontWeight: 500
|
|
1385
1385
|
},
|
|
1386
|
-
onMouseEnter: (
|
|
1387
|
-
F || (
|
|
1386
|
+
onMouseEnter: (v) => {
|
|
1387
|
+
F || (v.currentTarget.style.backgroundColor = "var(--sa-color-gray-100, #f8f8f8)");
|
|
1388
1388
|
},
|
|
1389
|
-
onMouseLeave: (
|
|
1390
|
-
F || (
|
|
1389
|
+
onMouseLeave: (v) => {
|
|
1390
|
+
F || (v.currentTarget.style.backgroundColor = "transparent");
|
|
1391
1391
|
},
|
|
1392
1392
|
children: [
|
|
1393
1393
|
p.icon && /* @__PURE__ */ e(
|
|
1394
|
-
|
|
1394
|
+
D,
|
|
1395
1395
|
{
|
|
1396
1396
|
name: p.icon,
|
|
1397
1397
|
size: "sm",
|
|
@@ -1430,7 +1430,7 @@ const Wr = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1430
1430
|
...r,
|
|
1431
1431
|
children: t
|
|
1432
1432
|
}
|
|
1433
|
-
), Xe = ce(Wr),
|
|
1433
|
+
), Xe = ce(Wr), zt = ({
|
|
1434
1434
|
title: t,
|
|
1435
1435
|
iconName: r,
|
|
1436
1436
|
textColor: i,
|
|
@@ -1439,7 +1439,7 @@ const Wr = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1439
1439
|
hoverIconColor: l
|
|
1440
1440
|
}) => {
|
|
1441
1441
|
const [s, a] = k(!1);
|
|
1442
|
-
return /* @__PURE__ */
|
|
1442
|
+
return /* @__PURE__ */ d(
|
|
1443
1443
|
f,
|
|
1444
1444
|
{
|
|
1445
1445
|
direction: "row",
|
|
@@ -1450,7 +1450,7 @@ const Wr = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1450
1450
|
style: { cursor: "pointer" },
|
|
1451
1451
|
children: [
|
|
1452
1452
|
/* @__PURE__ */ e(
|
|
1453
|
-
|
|
1453
|
+
D,
|
|
1454
1454
|
{
|
|
1455
1455
|
name: r || "ChevronLeft",
|
|
1456
1456
|
size: "xs",
|
|
@@ -1461,7 +1461,7 @@ const Wr = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1461
1461
|
}
|
|
1462
1462
|
),
|
|
1463
1463
|
/* @__PURE__ */ e(
|
|
1464
|
-
|
|
1464
|
+
x,
|
|
1465
1465
|
{
|
|
1466
1466
|
variant: "sub-h3",
|
|
1467
1467
|
style: {
|
|
@@ -1481,8 +1481,8 @@ const Wr = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1481
1481
|
iconColor: o,
|
|
1482
1482
|
hoverIconColor: n
|
|
1483
1483
|
}) => {
|
|
1484
|
-
const [l, s] = k(!1), a = o ?? "var(--sa-text-subtle, #8c8f97)", h = n ?? "var(--sa-text-subtle, #8c8f97)",
|
|
1485
|
-
|
|
1484
|
+
const [l, s] = k(!1), a = o ?? "var(--sa-text-subtle, #8c8f97)", h = n ?? "var(--sa-text-subtle, #8c8f97)", u = t.length > 1 ? t[0] : void 0, g = !!(u != null && u.to || u != null && u.onClick), m = /* @__PURE__ */ e(
|
|
1485
|
+
D,
|
|
1486
1486
|
{
|
|
1487
1487
|
name: i || "ChevronLeft",
|
|
1488
1488
|
size: "xs",
|
|
@@ -1494,12 +1494,12 @@ const Wr = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1494
1494
|
cursor: g ? "pointer" : void 0
|
|
1495
1495
|
}
|
|
1496
1496
|
}
|
|
1497
|
-
), y =
|
|
1498
|
-
return /* @__PURE__ */
|
|
1497
|
+
), y = u != null && u.to ? /* @__PURE__ */ e(Ue, { to: u.to, replace: !0, style: { textDecoration: "none" }, children: m }) : u != null && u.onClick ? /* @__PURE__ */ e(Xe, { onClick: u.onClick, children: m }) : m;
|
|
1498
|
+
return /* @__PURE__ */ d(f, { direction: "row", gap: "xs", align: "center", children: [
|
|
1499
1499
|
y,
|
|
1500
|
-
/* @__PURE__ */ e(ir, { separator: r, size: "md", children: t.map((
|
|
1501
|
-
const
|
|
1502
|
-
return
|
|
1500
|
+
/* @__PURE__ */ e(ir, { separator: r, size: "md", children: t.map((b, E) => {
|
|
1501
|
+
const C = E === t.length - 1;
|
|
1502
|
+
return b.to && !C ? /* @__PURE__ */ e(kt, { children: /* @__PURE__ */ e(Ue, { to: b.to, children: b.label }) }, E) : /* @__PURE__ */ e(kt, { currentPage: C, children: /* @__PURE__ */ e(nr, { onClick: C ? void 0 : b.onClick, children: b.label }) }, E);
|
|
1503
1503
|
}) })
|
|
1504
1504
|
] });
|
|
1505
1505
|
}, On = (t) => {
|
|
@@ -1513,7 +1513,7 @@ const Wr = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1513
1513
|
iconColor: l.iconColor,
|
|
1514
1514
|
hoverIconColor: l.hoverIconColor
|
|
1515
1515
|
}
|
|
1516
|
-
) : n ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(
|
|
1516
|
+
) : n ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Ue, { to: n, replace: !0, style: { textDecoration: "none" }, children: /* @__PURE__ */ e(zt, { ...l }) }) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Xe, { onClick: o, children: /* @__PURE__ */ e(zt, { ...l }) }) });
|
|
1517
1517
|
}, it = [
|
|
1518
1518
|
// brand (blue)
|
|
1519
1519
|
{
|
|
@@ -1558,7 +1558,7 @@ const Wr = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1558
1558
|
activeShadow: "rgba(255, 117, 143, 0.25)"
|
|
1559
1559
|
}
|
|
1560
1560
|
];
|
|
1561
|
-
function
|
|
1561
|
+
function At(t, r, i) {
|
|
1562
1562
|
return {
|
|
1563
1563
|
display: "flex",
|
|
1564
1564
|
alignItems: "center",
|
|
@@ -1574,7 +1574,7 @@ function It(t, r, i) {
|
|
|
1574
1574
|
transition: "box-shadow 0.2s ease, transform 0.2s ease, background-color 0.15s ease, border-color 0.15s ease"
|
|
1575
1575
|
};
|
|
1576
1576
|
}
|
|
1577
|
-
const
|
|
1577
|
+
const It = {
|
|
1578
1578
|
fontSize: "11px",
|
|
1579
1579
|
fontWeight: 500,
|
|
1580
1580
|
textAlign: "center",
|
|
@@ -1583,7 +1583,7 @@ const Ht = {
|
|
|
1583
1583
|
color: "var(--sa-background-primary, #ffffff)",
|
|
1584
1584
|
lineHeight: "1.3",
|
|
1585
1585
|
maxWidth: "80px"
|
|
1586
|
-
},
|
|
1586
|
+
}, Ht = {
|
|
1587
1587
|
display: "flex",
|
|
1588
1588
|
flexDirection: "column",
|
|
1589
1589
|
alignItems: "center",
|
|
@@ -1593,15 +1593,15 @@ const Ht = {
|
|
|
1593
1593
|
cursor: "pointer",
|
|
1594
1594
|
padding: 0
|
|
1595
1595
|
};
|
|
1596
|
-
function
|
|
1596
|
+
function zr({
|
|
1597
1597
|
isShow: t,
|
|
1598
1598
|
onHide: r,
|
|
1599
1599
|
menus: i,
|
|
1600
1600
|
selectedGroupId: o,
|
|
1601
1601
|
onSelect: n
|
|
1602
1602
|
}) {
|
|
1603
|
-
const [l, s] = k(void 0), a = (
|
|
1604
|
-
n(
|
|
1603
|
+
const [l, s] = k(void 0), a = (u) => {
|
|
1604
|
+
n(u), r();
|
|
1605
1605
|
}, h = it[0];
|
|
1606
1606
|
return /* @__PURE__ */ e(
|
|
1607
1607
|
ut,
|
|
@@ -1614,7 +1614,7 @@ function Ar({
|
|
|
1614
1614
|
boxShadow: "none",
|
|
1615
1615
|
border: "none"
|
|
1616
1616
|
},
|
|
1617
|
-
children: /* @__PURE__ */ e(ht, { children: /* @__PURE__ */
|
|
1617
|
+
children: /* @__PURE__ */ e(ht, { children: /* @__PURE__ */ d(
|
|
1618
1618
|
"div",
|
|
1619
1619
|
{
|
|
1620
1620
|
style: {
|
|
@@ -1623,35 +1623,35 @@ function Ar({
|
|
|
1623
1623
|
gap: "16px"
|
|
1624
1624
|
},
|
|
1625
1625
|
children: [
|
|
1626
|
-
/* @__PURE__ */
|
|
1626
|
+
/* @__PURE__ */ d(
|
|
1627
1627
|
"button",
|
|
1628
1628
|
{
|
|
1629
1629
|
onClick: () => a(null),
|
|
1630
1630
|
onMouseEnter: () => s("all"),
|
|
1631
1631
|
onMouseLeave: () => s(void 0),
|
|
1632
|
-
style:
|
|
1632
|
+
style: Ht,
|
|
1633
1633
|
children: [
|
|
1634
|
-
/* @__PURE__ */ e("div", { style:
|
|
1635
|
-
/* @__PURE__ */ e("span", { style:
|
|
1634
|
+
/* @__PURE__ */ e("div", { style: At(o === null, l === "all", h), children: /* @__PURE__ */ e("div", { style: { color: h.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(D, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
|
|
1635
|
+
/* @__PURE__ */ e("span", { style: It, children: "Semua" })
|
|
1636
1636
|
]
|
|
1637
1637
|
}
|
|
1638
1638
|
),
|
|
1639
|
-
i.map((
|
|
1640
|
-
var
|
|
1641
|
-
const m = o ===
|
|
1642
|
-
return /* @__PURE__ */
|
|
1639
|
+
i.map((u, g) => {
|
|
1640
|
+
var C;
|
|
1641
|
+
const m = o === u.id, y = l === u.id, b = ((C = u.items[0]) == null ? void 0 : C.icon) ?? "Grid", E = it[(g + 1) % it.length];
|
|
1642
|
+
return /* @__PURE__ */ d(
|
|
1643
1643
|
"button",
|
|
1644
1644
|
{
|
|
1645
|
-
onClick: () => a(
|
|
1646
|
-
onMouseEnter: () => s(
|
|
1645
|
+
onClick: () => a(u.id),
|
|
1646
|
+
onMouseEnter: () => s(u.id),
|
|
1647
1647
|
onMouseLeave: () => s(void 0),
|
|
1648
|
-
style:
|
|
1648
|
+
style: Ht,
|
|
1649
1649
|
children: [
|
|
1650
|
-
/* @__PURE__ */ e("div", { style:
|
|
1651
|
-
/* @__PURE__ */ e("span", { style:
|
|
1650
|
+
/* @__PURE__ */ e("div", { style: At(m, y, E), children: /* @__PURE__ */ e("div", { style: { color: E.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(D, { name: b, size: "lg", style: { width: 32, height: 32 } }) }) }),
|
|
1651
|
+
/* @__PURE__ */ e("span", { style: It, children: u.name })
|
|
1652
1652
|
]
|
|
1653
1653
|
},
|
|
1654
|
-
|
|
1654
|
+
u.id
|
|
1655
1655
|
);
|
|
1656
1656
|
})
|
|
1657
1657
|
]
|
|
@@ -1664,16 +1664,16 @@ function _n({
|
|
|
1664
1664
|
onSelect: t,
|
|
1665
1665
|
"aria-label": r = "Pilih module"
|
|
1666
1666
|
} = {}) {
|
|
1667
|
-
const i = Yt(), o = mt(), { selectedGroupId: n, setSelectedGroupId: l } = er(), [s, a] = k(!1), h = (
|
|
1667
|
+
const i = Yt(), o = mt(), { selectedGroupId: n, setSelectedGroupId: l } = er(), [s, a] = k(!1), h = (u) => {
|
|
1668
1668
|
var g;
|
|
1669
|
-
if (l(
|
|
1670
|
-
const m = i.menus.find((
|
|
1669
|
+
if (l(u), u !== null) {
|
|
1670
|
+
const m = i.menus.find((b) => b.id === u), y = (g = m == null ? void 0 : m.items[0]) == null ? void 0 : g.to;
|
|
1671
1671
|
y && o(y);
|
|
1672
1672
|
}
|
|
1673
|
-
t == null || t(
|
|
1673
|
+
t == null || t(u);
|
|
1674
1674
|
};
|
|
1675
|
-
return /* @__PURE__ */
|
|
1676
|
-
/* @__PURE__ */
|
|
1675
|
+
return /* @__PURE__ */ d(q, { children: [
|
|
1676
|
+
/* @__PURE__ */ d("div", { style: { position: "relative" }, children: [
|
|
1677
1677
|
/* @__PURE__ */ e(
|
|
1678
1678
|
"button",
|
|
1679
1679
|
{
|
|
@@ -1691,13 +1691,13 @@ function _n({
|
|
|
1691
1691
|
cursor: "pointer"
|
|
1692
1692
|
},
|
|
1693
1693
|
"aria-label": r,
|
|
1694
|
-
onMouseEnter: (
|
|
1695
|
-
|
|
1694
|
+
onMouseEnter: (u) => {
|
|
1695
|
+
u.currentTarget.style.backgroundColor = "var(--sa-background-primary-inverse, #f8f8f8)";
|
|
1696
1696
|
},
|
|
1697
|
-
onMouseLeave: (
|
|
1698
|
-
|
|
1697
|
+
onMouseLeave: (u) => {
|
|
1698
|
+
u.currentTarget.style.backgroundColor = "transparent";
|
|
1699
1699
|
},
|
|
1700
|
-
children: /* @__PURE__ */ e(
|
|
1700
|
+
children: /* @__PURE__ */ e(D, { name: "GridApplication", size: "sm" })
|
|
1701
1701
|
}
|
|
1702
1702
|
),
|
|
1703
1703
|
n !== null && /* @__PURE__ */ e(
|
|
@@ -1717,18 +1717,18 @@ function _n({
|
|
|
1717
1717
|
)
|
|
1718
1718
|
] }),
|
|
1719
1719
|
/* @__PURE__ */ e(
|
|
1720
|
-
|
|
1720
|
+
zr,
|
|
1721
1721
|
{
|
|
1722
1722
|
isShow: s,
|
|
1723
1723
|
onHide: () => a(!1),
|
|
1724
|
-
menus: i.menus.filter((
|
|
1724
|
+
menus: i.menus.filter((u) => u.parentGroupId === void 0),
|
|
1725
1725
|
selectedGroupId: n,
|
|
1726
1726
|
onSelect: h
|
|
1727
1727
|
}
|
|
1728
1728
|
)
|
|
1729
1729
|
] });
|
|
1730
1730
|
}
|
|
1731
|
-
const
|
|
1731
|
+
const Ar = (t, r) => {
|
|
1732
1732
|
const i = [];
|
|
1733
1733
|
if (r === 0)
|
|
1734
1734
|
return i.push(t), i;
|
|
@@ -1737,7 +1737,7 @@ const Ir = (t, r) => {
|
|
|
1737
1737
|
i.push(n);
|
|
1738
1738
|
}
|
|
1739
1739
|
return i;
|
|
1740
|
-
},
|
|
1740
|
+
}, Ir = ce(
|
|
1741
1741
|
({
|
|
1742
1742
|
value: t,
|
|
1743
1743
|
label: r,
|
|
@@ -1762,15 +1762,15 @@ const Ir = (t, r) => {
|
|
|
1762
1762
|
verticalAlign: l
|
|
1763
1763
|
}),
|
|
1764
1764
|
[n, l]
|
|
1765
|
-
), h = () => typeof r == "string" ? /* @__PURE__ */ e(
|
|
1766
|
-
return /* @__PURE__ */
|
|
1765
|
+
), h = () => typeof r == "string" ? /* @__PURE__ */ e(x, { fontWeight: "medium", color: "text-muted", children: r }) : r, u = () => typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ e(x, { color: "text", fontWeight: "medium", children: t }) : t, g = () => typeof i == "string" || typeof i == "number" ? /* @__PURE__ */ e(x, { fontWeight: "medium", color: "text-muted", children: i }) : i;
|
|
1766
|
+
return /* @__PURE__ */ d(Re, { children: [
|
|
1767
1767
|
/* @__PURE__ */ e(Se, { style: s, width: o, children: h() }),
|
|
1768
1768
|
i ? /* @__PURE__ */ e(Se, { style: a, width: 24, children: g() }) : null,
|
|
1769
|
-
/* @__PURE__ */ e(Se, { style: s, children:
|
|
1769
|
+
/* @__PURE__ */ e(Se, { style: s, children: u() })
|
|
1770
1770
|
] });
|
|
1771
1771
|
}
|
|
1772
|
-
),
|
|
1773
|
-
|
|
1772
|
+
), Hr = ce(({ fields: t, separator: r, labelWidth: i }) => /* @__PURE__ */ e(Gt, { children: t.map((o, n) => /* @__PURE__ */ e(
|
|
1773
|
+
Ir,
|
|
1774
1774
|
{
|
|
1775
1775
|
separator: r,
|
|
1776
1776
|
labelWidth: i,
|
|
@@ -1788,7 +1788,7 @@ const Ir = (t, r) => {
|
|
|
1788
1788
|
bordered: l = !1
|
|
1789
1789
|
}) => {
|
|
1790
1790
|
const s = he(
|
|
1791
|
-
() =>
|
|
1791
|
+
() => Ar(o, t),
|
|
1792
1792
|
[o, t]
|
|
1793
1793
|
), a = s.length > 2, h = () => {
|
|
1794
1794
|
switch (r) {
|
|
@@ -1817,17 +1817,17 @@ const Ir = (t, r) => {
|
|
|
1817
1817
|
borderWidth: l ? "border" : void 0,
|
|
1818
1818
|
borderStyle: l ? "border-solid" : void 0,
|
|
1819
1819
|
borderColor: l ? "border-subtle" : void 0,
|
|
1820
|
-
children: s.map((
|
|
1820
|
+
children: s.map((u, g) => /* @__PURE__ */ e(
|
|
1821
1821
|
f,
|
|
1822
1822
|
{
|
|
1823
1823
|
flex: a ? void 0 : "1",
|
|
1824
1824
|
width: a ? h() : void 0,
|
|
1825
1825
|
marginBottom: a ? "lg" : void 0,
|
|
1826
1826
|
children: /* @__PURE__ */ e(
|
|
1827
|
-
|
|
1827
|
+
Hr,
|
|
1828
1828
|
{
|
|
1829
1829
|
labelWidth: n,
|
|
1830
|
-
fields:
|
|
1830
|
+
fields: u,
|
|
1831
1831
|
separator: i
|
|
1832
1832
|
}
|
|
1833
1833
|
)
|
|
@@ -1839,7 +1839,7 @@ const Ir = (t, r) => {
|
|
|
1839
1839
|
}
|
|
1840
1840
|
), Rr = ({ backButton: t }) => {
|
|
1841
1841
|
const [r, i] = k(!1), o = (t == null ? void 0 : t.iconColor) ?? "var(--sa-text-subtle, #8c8f97)", n = (t == null ? void 0 : t.textColor) ?? "var(--sa-text-subtle, #8c8f97)", l = (t == null ? void 0 : t.hoverIconColor) ?? "var(--sa-text-subtle, #8c8f97)", s = (t == null ? void 0 : t.hoverTextColor) ?? "var(--sa-text-primary, #292a2e)";
|
|
1842
|
-
return /* @__PURE__ */
|
|
1842
|
+
return /* @__PURE__ */ d(
|
|
1843
1843
|
f,
|
|
1844
1844
|
{
|
|
1845
1845
|
direction: "row",
|
|
@@ -1850,7 +1850,7 @@ const Ir = (t, r) => {
|
|
|
1850
1850
|
style: { cursor: "pointer" },
|
|
1851
1851
|
children: [
|
|
1852
1852
|
/* @__PURE__ */ e(
|
|
1853
|
-
|
|
1853
|
+
D,
|
|
1854
1854
|
{
|
|
1855
1855
|
name: (t == null ? void 0 : t.iconName) || "ChevronLeft",
|
|
1856
1856
|
size: "xs",
|
|
@@ -1861,7 +1861,7 @@ const Ir = (t, r) => {
|
|
|
1861
1861
|
}
|
|
1862
1862
|
),
|
|
1863
1863
|
/* @__PURE__ */ e(
|
|
1864
|
-
|
|
1864
|
+
x,
|
|
1865
1865
|
{
|
|
1866
1866
|
variant: "sub-h3",
|
|
1867
1867
|
style: {
|
|
@@ -1886,38 +1886,38 @@ const Ir = (t, r) => {
|
|
|
1886
1886
|
containerProps: a,
|
|
1887
1887
|
headerProps: h
|
|
1888
1888
|
}) => {
|
|
1889
|
-
const
|
|
1889
|
+
const u = ne("lg"), g = mt(), m = Ve(), y = t == null ? void 0 : t.show, b = () => {
|
|
1890
1890
|
if (typeof (t == null ? void 0 : t.onClick) == "function") {
|
|
1891
1891
|
t.onClick();
|
|
1892
1892
|
return;
|
|
1893
1893
|
}
|
|
1894
1894
|
g(-1, { replace: !0 });
|
|
1895
|
-
}, E = () => l ?
|
|
1896
|
-
({ title:
|
|
1897
|
-
|
|
1895
|
+
}, E = () => l ? dt(l) ? l : /* @__PURE__ */ e(f, { direction: "row", gap: "lg", children: l.map(
|
|
1896
|
+
({ title: T, icon: U, buttonProps: M, onClick: ae }, J) => !T && !U ? null : /* @__PURE__ */ e(
|
|
1897
|
+
N,
|
|
1898
1898
|
{
|
|
1899
|
-
fullWidth: !
|
|
1900
|
-
iconLeft:
|
|
1899
|
+
fullWidth: !u,
|
|
1900
|
+
iconLeft: U ? /* @__PURE__ */ e(D, { name: U, size: "md" }) : void 0,
|
|
1901
1901
|
onClick: ae,
|
|
1902
1902
|
...M,
|
|
1903
|
-
children:
|
|
1903
|
+
children: T
|
|
1904
1904
|
},
|
|
1905
1905
|
`action-${J}`
|
|
1906
1906
|
)
|
|
1907
|
-
) }) : null,
|
|
1908
|
-
const
|
|
1907
|
+
) }) : null, C = () => {
|
|
1908
|
+
const T = /* @__PURE__ */ e(Rr, { backButton: t });
|
|
1909
1909
|
return t != null && t.navigateTo ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(
|
|
1910
|
-
|
|
1910
|
+
Ue,
|
|
1911
1911
|
{
|
|
1912
1912
|
to: t.navigateTo,
|
|
1913
1913
|
replace: !0,
|
|
1914
1914
|
style: { textDecoration: "none" },
|
|
1915
|
-
children:
|
|
1915
|
+
children: T
|
|
1916
1916
|
}
|
|
1917
|
-
) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Xe, { onClick:
|
|
1918
|
-
},
|
|
1919
|
-
const
|
|
1920
|
-
return !
|
|
1917
|
+
) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Xe, { onClick: b, children: T }) });
|
|
1918
|
+
}, H = () => {
|
|
1919
|
+
const T = !!r, U = dt(l) ? !0 : Array.isArray(l) && l.length > 0;
|
|
1920
|
+
return !T && !U && !y ? null : /* @__PURE__ */ d(
|
|
1921
1921
|
f,
|
|
1922
1922
|
{
|
|
1923
1923
|
gap: "xs",
|
|
@@ -1925,17 +1925,17 @@ const Ir = (t, r) => {
|
|
|
1925
1925
|
paddingInline: h == null ? void 0 : h.paddingInline,
|
|
1926
1926
|
...h,
|
|
1927
1927
|
children: [
|
|
1928
|
-
y &&
|
|
1929
|
-
(
|
|
1928
|
+
y && C(),
|
|
1929
|
+
(T || U) && /* @__PURE__ */ d(
|
|
1930
1930
|
f,
|
|
1931
1931
|
{
|
|
1932
|
-
direction:
|
|
1932
|
+
direction: u ? "row" : "column",
|
|
1933
1933
|
gap: "lg",
|
|
1934
1934
|
justify: "space-between",
|
|
1935
1935
|
align: "center",
|
|
1936
1936
|
children: [
|
|
1937
|
-
|
|
1938
|
-
/* @__PURE__ */ e(
|
|
1937
|
+
T ? typeof r == "string" ? /* @__PURE__ */ d(f, { direction: "row", gap: "lg", align: "center", children: [
|
|
1938
|
+
/* @__PURE__ */ e(x, { variant: "h2", fontWeight: "semibold", fontFamily: "Poppins", children: r }),
|
|
1939
1939
|
i && /* @__PURE__ */ e(Le, { border: !0, size: "lg", text: i, ...s })
|
|
1940
1940
|
] }) : r : null,
|
|
1941
1941
|
E()
|
|
@@ -1945,8 +1945,8 @@ const Ir = (t, r) => {
|
|
|
1945
1945
|
]
|
|
1946
1946
|
}
|
|
1947
1947
|
);
|
|
1948
|
-
},
|
|
1949
|
-
return /* @__PURE__ */
|
|
1948
|
+
}, Z = () => o;
|
|
1949
|
+
return /* @__PURE__ */ d(
|
|
1950
1950
|
f,
|
|
1951
1951
|
{
|
|
1952
1952
|
gap: "md",
|
|
@@ -1958,27 +1958,27 @@ const Ir = (t, r) => {
|
|
|
1958
1958
|
animation: "pageLayoutEnter 320ms cubic-bezier(0.16, 1, 0.3, 1) backwards"
|
|
1959
1959
|
},
|
|
1960
1960
|
children: [
|
|
1961
|
-
n &&
|
|
1962
|
-
|
|
1961
|
+
n && H(),
|
|
1962
|
+
Z()
|
|
1963
1963
|
]
|
|
1964
1964
|
},
|
|
1965
1965
|
m.pathname
|
|
1966
1966
|
);
|
|
1967
|
-
}, Zn = ce(Vr),
|
|
1967
|
+
}, Zn = ce(Vr), Tr = {
|
|
1968
1968
|
icon: "Cross",
|
|
1969
1969
|
title: ""
|
|
1970
|
-
},
|
|
1970
|
+
}, Nr = "calc(100vw - 16px)", Rt = (t) => t == null ? void 0 : `min(${typeof t == "number" ? `${t}px` : t}, ${Nr})`, Or = Ut(
|
|
1971
1971
|
({
|
|
1972
1972
|
onHide: t,
|
|
1973
1973
|
show: r,
|
|
1974
1974
|
withBlur: i = !1,
|
|
1975
1975
|
style: o,
|
|
1976
1976
|
children: n,
|
|
1977
|
-
closeButton: l =
|
|
1977
|
+
closeButton: l = Tr,
|
|
1978
1978
|
width: s,
|
|
1979
1979
|
minWidth: a = "357px",
|
|
1980
1980
|
maxWidth: h = "357px"
|
|
1981
|
-
},
|
|
1981
|
+
}, u) => {
|
|
1982
1982
|
const g = Rt(s ?? a), m = Rt(s ?? h);
|
|
1983
1983
|
return /* @__PURE__ */ e(
|
|
1984
1984
|
lr,
|
|
@@ -1987,14 +1987,14 @@ const Ir = (t, r) => {
|
|
|
1987
1987
|
isShow: r,
|
|
1988
1988
|
position: "right",
|
|
1989
1989
|
onHide: t,
|
|
1990
|
-
ref:
|
|
1990
|
+
ref: u,
|
|
1991
1991
|
style: {
|
|
1992
1992
|
minWidth: g,
|
|
1993
1993
|
maxWidth: m,
|
|
1994
1994
|
...o
|
|
1995
1995
|
},
|
|
1996
|
-
children: /* @__PURE__ */
|
|
1997
|
-
l ? /* @__PURE__ */
|
|
1996
|
+
children: /* @__PURE__ */ d(f, { padding: "lg", children: [
|
|
1997
|
+
l ? /* @__PURE__ */ d(
|
|
1998
1998
|
f,
|
|
1999
1999
|
{
|
|
2000
2000
|
direction: "row",
|
|
@@ -2005,7 +2005,7 @@ const Ir = (t, r) => {
|
|
|
2005
2005
|
cursor: "pointer",
|
|
2006
2006
|
children: [
|
|
2007
2007
|
/* @__PURE__ */ e(
|
|
2008
|
-
|
|
2008
|
+
D,
|
|
2009
2009
|
{
|
|
2010
2010
|
name: l.icon,
|
|
2011
2011
|
size: "md",
|
|
@@ -2013,7 +2013,7 @@ const Ir = (t, r) => {
|
|
|
2013
2013
|
cursor: "pointer"
|
|
2014
2014
|
}
|
|
2015
2015
|
),
|
|
2016
|
-
l.title ? /* @__PURE__ */ e(
|
|
2016
|
+
l.title ? /* @__PURE__ */ e(x, { fontFamily: "Poppins", fontSize: "md", color: "text-muted", children: l.title }) : null
|
|
2017
2017
|
]
|
|
2018
2018
|
}
|
|
2019
2019
|
) : null,
|
|
@@ -2077,14 +2077,14 @@ const Ir = (t, r) => {
|
|
|
2077
2077
|
actionContainer: s,
|
|
2078
2078
|
containerProps: a,
|
|
2079
2079
|
bodyProps: h,
|
|
2080
|
-
headerProps:
|
|
2080
|
+
headerProps: u = { borderBottom: !0 },
|
|
2081
2081
|
footerProps: g = { borderTop: !0 },
|
|
2082
2082
|
variantTag: m = "info"
|
|
2083
2083
|
}) => {
|
|
2084
|
-
const y = ne("lg"),
|
|
2085
|
-
/* @__PURE__ */ e(
|
|
2084
|
+
const y = ne("lg"), b = () => i ? /* @__PURE__ */ d(f, { direction: "row", gap: "sm", align: "center", children: [
|
|
2085
|
+
/* @__PURE__ */ e(x, { fontWeight: "medium", children: r }),
|
|
2086
2086
|
/* @__PURE__ */ e(Le, { border: !0, text: i, variant: m })
|
|
2087
|
-
] }) : /* @__PURE__ */ e(
|
|
2087
|
+
] }) : /* @__PURE__ */ e(x, { fontWeight: "medium", children: r }), E = () => n || /* @__PURE__ */ d(
|
|
2088
2088
|
f,
|
|
2089
2089
|
{
|
|
2090
2090
|
direction: "row",
|
|
@@ -2092,7 +2092,7 @@ const Ir = (t, r) => {
|
|
|
2092
2092
|
align: "flex-start",
|
|
2093
2093
|
gap: "md",
|
|
2094
2094
|
children: [
|
|
2095
|
-
/* @__PURE__ */ e(f, { children: r ?
|
|
2095
|
+
/* @__PURE__ */ e(f, { children: r ? b() : null }),
|
|
2096
2096
|
/* @__PURE__ */ e(
|
|
2097
2097
|
f,
|
|
2098
2098
|
{
|
|
@@ -2103,8 +2103,8 @@ const Ir = (t, r) => {
|
|
|
2103
2103
|
)
|
|
2104
2104
|
]
|
|
2105
2105
|
}
|
|
2106
|
-
),
|
|
2107
|
-
return /* @__PURE__ */
|
|
2106
|
+
), C = !!(n || r || o);
|
|
2107
|
+
return /* @__PURE__ */ d(
|
|
2108
2108
|
f,
|
|
2109
2109
|
{
|
|
2110
2110
|
bg: "white",
|
|
@@ -2119,7 +2119,7 @@ const Ir = (t, r) => {
|
|
|
2119
2119
|
...(a == null ? void 0 : a.style) ?? {}
|
|
2120
2120
|
},
|
|
2121
2121
|
children: [
|
|
2122
|
-
n !== null &&
|
|
2122
|
+
n !== null && C ? /* @__PURE__ */ e(tr, { ...u, children: E() }) : null,
|
|
2123
2123
|
/* @__PURE__ */ e(_r, { ...h, children: t }),
|
|
2124
2124
|
l ? /* @__PURE__ */ e(rr, { ...g, children: l }) : null
|
|
2125
2125
|
]
|
|
@@ -2159,7 +2159,7 @@ const Ir = (t, r) => {
|
|
|
2159
2159
|
iconProps: a,
|
|
2160
2160
|
variant: h = "default"
|
|
2161
2161
|
}) => {
|
|
2162
|
-
const
|
|
2162
|
+
const u = he(
|
|
2163
2163
|
() => ({
|
|
2164
2164
|
zIndex: 10,
|
|
2165
2165
|
width: "150px",
|
|
@@ -2167,10 +2167,10 @@ const Ir = (t, r) => {
|
|
|
2167
2167
|
}),
|
|
2168
2168
|
[n]
|
|
2169
2169
|
);
|
|
2170
|
-
return /* @__PURE__ */
|
|
2171
|
-
/* @__PURE__ */ e(Ge, { style: o, children: /* @__PURE__ */ e(
|
|
2172
|
-
/* @__PURE__ */ e(Zt, { style:
|
|
2173
|
-
|
|
2170
|
+
return /* @__PURE__ */ d(jt, { position: l, style: i, children: [
|
|
2171
|
+
/* @__PURE__ */ e(Ge, { style: o, children: /* @__PURE__ */ e(N, { size: "sm", secondary: !0, ...s, children: /* @__PURE__ */ e(D, { name: t, ...a }) }) }),
|
|
2172
|
+
/* @__PURE__ */ e(Zt, { style: u, children: r.map((g, m) => h === "outline-button" ? /* @__PURE__ */ e($t, { children: /* @__PURE__ */ d(
|
|
2173
|
+
N,
|
|
2174
2174
|
{
|
|
2175
2175
|
size: "sm",
|
|
2176
2176
|
secondary: !0,
|
|
@@ -2178,26 +2178,26 @@ const Ir = (t, r) => {
|
|
|
2178
2178
|
onClick: g.onClick,
|
|
2179
2179
|
...g.buttonProps,
|
|
2180
2180
|
children: [
|
|
2181
|
-
/* @__PURE__ */ e(
|
|
2182
|
-
/* @__PURE__ */ e(
|
|
2181
|
+
/* @__PURE__ */ e(D, { name: g.icon, size: "md", ...g.iconProps }),
|
|
2182
|
+
/* @__PURE__ */ e(x, { fontSize: "sm", color: "text", ...g.textProps, children: g.label })
|
|
2183
2183
|
]
|
|
2184
2184
|
}
|
|
2185
|
-
) }, g.id || m) : /* @__PURE__ */
|
|
2185
|
+
) }, g.id || m) : /* @__PURE__ */ d(
|
|
2186
2186
|
$r,
|
|
2187
2187
|
{
|
|
2188
2188
|
onClick: g.onClick,
|
|
2189
2189
|
...g.buttonProps,
|
|
2190
2190
|
children: [
|
|
2191
|
-
/* @__PURE__ */ e(
|
|
2192
|
-
/* @__PURE__ */ e(
|
|
2191
|
+
/* @__PURE__ */ e(D, { name: g.icon, size: "md", ...g.iconProps }),
|
|
2192
|
+
/* @__PURE__ */ e(x, { fontSize: "sm", color: "text", ...g.textProps, children: g.label })
|
|
2193
2193
|
]
|
|
2194
2194
|
},
|
|
2195
2195
|
g.id || m
|
|
2196
2196
|
)) })
|
|
2197
2197
|
] });
|
|
2198
|
-
}, Gn = ce(Gr),
|
|
2199
|
-
H1:
|
|
2200
|
-
H2:
|
|
2198
|
+
}, Gn = ce(Gr), qr = (t) => /* @__PURE__ */ e(x, { variant: "h1", children: t.children, ...t.props }), Ur = (t) => /* @__PURE__ */ e(x, { variant: "h2", children: t.children, ...t.props }), Jr = (t) => /* @__PURE__ */ e(x, { variant: "h3", children: t.children, ...t.props }), Pr = (t) => /* @__PURE__ */ e(x, { variant: "h4", children: t.children, ...t.props }), Qr = (t) => /* @__PURE__ */ e(x, { variant: "h5", children: t.children, ...t.props }), Yr = (t) => /* @__PURE__ */ e(x, { variant: "h6", children: t.children, ...t.props }), Xr = (t) => /* @__PURE__ */ e(x, { variant: "sub-h1", children: t.children, ...t.props }), Kr = (t) => /* @__PURE__ */ e(x, { variant: "sub-h2", children: t.children, ...t.props }), ei = (t) => /* @__PURE__ */ e(x, { variant: "sub-h3", children: t.children, ...t.props }), ti = (t) => /* @__PURE__ */ e(x, { variant: "body-1", children: t.children, ...t.props }), ri = (t) => /* @__PURE__ */ e(x, { variant: "body-2", children: t.children, ...t.props }), ii = (t) => /* @__PURE__ */ e(x, { variant: "body-3", children: t.children, ...t.props }), pe = {
|
|
2199
|
+
H1: qr,
|
|
2200
|
+
H2: Ur,
|
|
2201
2201
|
H3: Jr,
|
|
2202
2202
|
H4: Pr,
|
|
2203
2203
|
H5: Qr,
|
|
@@ -2226,7 +2226,7 @@ const Ir = (t, r) => {
|
|
|
2226
2226
|
id: l,
|
|
2227
2227
|
hasId: !!l
|
|
2228
2228
|
};
|
|
2229
|
-
}, ni = (t) => JSON.stringify(t), oi = (t) => JSON.stringify(t), li = (t) => JSON.stringify(t), ci = (t) => JSON.stringify(t), ai = (t) => t,
|
|
2229
|
+
}, ni = (t) => JSON.stringify(t), oi = (t) => JSON.stringify(t), li = (t) => JSON.stringify(t), ci = (t) => JSON.stringify(t), ai = (t) => t, di = (t) => JSON.stringify(t), Vt = ({
|
|
2230
2230
|
value: t,
|
|
2231
2231
|
name: r,
|
|
2232
2232
|
type: i,
|
|
@@ -2238,46 +2238,46 @@ const Ir = (t, r) => {
|
|
|
2238
2238
|
pageKey: h = "page"
|
|
2239
2239
|
}) => {
|
|
2240
2240
|
if (o) {
|
|
2241
|
-
let
|
|
2241
|
+
let u;
|
|
2242
2242
|
switch (i) {
|
|
2243
2243
|
case "search":
|
|
2244
|
-
|
|
2244
|
+
u = ai(t);
|
|
2245
2245
|
break;
|
|
2246
2246
|
case "dropdown":
|
|
2247
2247
|
case "dropdown-multiple":
|
|
2248
|
-
|
|
2248
|
+
u = ni(t);
|
|
2249
2249
|
break;
|
|
2250
2250
|
case "radio":
|
|
2251
|
-
|
|
2251
|
+
u = oi(t);
|
|
2252
2252
|
break;
|
|
2253
2253
|
case "date-range":
|
|
2254
|
-
|
|
2254
|
+
u = li(t);
|
|
2255
2255
|
break;
|
|
2256
2256
|
case "advanced-date-range":
|
|
2257
|
-
|
|
2257
|
+
u = di(t);
|
|
2258
2258
|
break;
|
|
2259
2259
|
case "date":
|
|
2260
|
-
|
|
2260
|
+
u = ci(t);
|
|
2261
2261
|
break;
|
|
2262
2262
|
default:
|
|
2263
|
-
|
|
2263
|
+
u = t;
|
|
2264
2264
|
break;
|
|
2265
2265
|
}
|
|
2266
|
-
if (typeof
|
|
2266
|
+
if (typeof u < "u") {
|
|
2267
2267
|
const m = {
|
|
2268
2268
|
...l[a] && typeof l[a] == "string" ? JSON.parse(l[a]) : void 0,
|
|
2269
|
-
[r]:
|
|
2269
|
+
[r]: u
|
|
2270
2270
|
}, y = { ...l };
|
|
2271
2271
|
s && typeof s == "string" && delete y[s], delete y[h];
|
|
2272
|
-
const
|
|
2272
|
+
const b = {
|
|
2273
2273
|
...y,
|
|
2274
2274
|
[a]: JSON.stringify(m)
|
|
2275
|
-
}, E = new URLSearchParams(l).toString(),
|
|
2276
|
-
|
|
2275
|
+
}, E = new URLSearchParams(l).toString(), C = new URLSearchParams(
|
|
2276
|
+
b
|
|
2277
2277
|
).toString();
|
|
2278
|
-
if (E ===
|
|
2278
|
+
if (E === C)
|
|
2279
2279
|
return;
|
|
2280
|
-
n(
|
|
2280
|
+
n(b);
|
|
2281
2281
|
}
|
|
2282
2282
|
}
|
|
2283
2283
|
}, nt = ({
|
|
@@ -2288,7 +2288,7 @@ const Ir = (t, r) => {
|
|
|
2288
2288
|
}) => {
|
|
2289
2289
|
const n = i.get(r) || void 0, l = n && typeof n == "string" ? JSON.parse(n) : void 0, s = l ? l[t] : void 0;
|
|
2290
2290
|
return o === "label" && s ? JSON.parse(s)[0].label : o === "value" && s ? JSON.parse(s)[0].value : s;
|
|
2291
|
-
},
|
|
2291
|
+
}, qn = ({
|
|
2292
2292
|
name: t,
|
|
2293
2293
|
filterKey: r = "filter",
|
|
2294
2294
|
searchParams: i,
|
|
@@ -2296,7 +2296,7 @@ const Ir = (t, r) => {
|
|
|
2296
2296
|
}) => {
|
|
2297
2297
|
const n = i.get(r) || void 0, l = n && typeof n == "string" ? JSON.parse(n) : void 0, s = l ? l[t] : void 0;
|
|
2298
2298
|
return o === "label" && s ? JSON.parse(s).map((a) => a.label) : o === "value" && s ? JSON.parse(s).map((a) => a.value) : o === "array" && s ? JSON.parse(s) : s;
|
|
2299
|
-
},
|
|
2299
|
+
}, Un = ({
|
|
2300
2300
|
name: t,
|
|
2301
2301
|
filterKey: r = "filter",
|
|
2302
2302
|
searchParams: i,
|
|
@@ -2304,7 +2304,7 @@ const Ir = (t, r) => {
|
|
|
2304
2304
|
}) => {
|
|
2305
2305
|
const n = i.get(r) || void 0, l = n && typeof n == "string" ? JSON.parse(n) : void 0, s = l ? l[t] : void 0;
|
|
2306
2306
|
return o === "id" && s ? JSON.parse(s).id : o === "label" && s ? JSON.parse(s).label : o === "value" && s ? JSON.parse(s).value : s;
|
|
2307
|
-
},
|
|
2307
|
+
}, si = (t, r, i) => {
|
|
2308
2308
|
const o = r.get(i || "filter") || void 0, n = o && typeof o == "string" ? JSON.parse(o) : void 0;
|
|
2309
2309
|
return n ? n[t] : void 0;
|
|
2310
2310
|
}, Jn = ({
|
|
@@ -2338,32 +2338,32 @@ const Ir = (t, r) => {
|
|
|
2338
2338
|
pageKey: o,
|
|
2339
2339
|
filters: n
|
|
2340
2340
|
}) => {
|
|
2341
|
-
const { searchParams: l, setSearchParams: s, searchQueries: a } = xt(), [h,
|
|
2341
|
+
const { searchParams: l, setSearchParams: s, searchQueries: a } = xt(), [h, u] = k({}), g = () => {
|
|
2342
2342
|
l.delete(i || "filter"), s(l);
|
|
2343
|
-
}, m = (y,
|
|
2343
|
+
}, m = (y, b) => {
|
|
2344
2344
|
switch (y.type) {
|
|
2345
2345
|
case "radio": {
|
|
2346
2346
|
const { show: E = !0 } = y;
|
|
2347
|
-
return E && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: y.title }) },
|
|
2347
|
+
return E && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: y.title }) }, b);
|
|
2348
2348
|
}
|
|
2349
2349
|
case "dropdown": {
|
|
2350
2350
|
const { show: E = !0 } = y;
|
|
2351
|
-
return E && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: y.title }) },
|
|
2351
|
+
return E && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: y.title }) }, b);
|
|
2352
2352
|
}
|
|
2353
2353
|
case "date-range":
|
|
2354
|
-
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: y.title }) },
|
|
2354
|
+
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: y.title }) }, b);
|
|
2355
2355
|
case "date":
|
|
2356
|
-
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: y.title }) },
|
|
2356
|
+
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: y.title }) }, b);
|
|
2357
2357
|
case "dropdown-multiple": {
|
|
2358
2358
|
const { show: E = !0 } = y;
|
|
2359
|
-
return E && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: y.title }) },
|
|
2359
|
+
return E && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: y.title }) }, b);
|
|
2360
2360
|
}
|
|
2361
2361
|
default:
|
|
2362
2362
|
return null;
|
|
2363
2363
|
}
|
|
2364
2364
|
};
|
|
2365
|
-
return /* @__PURE__ */ e(Or, { onHide: r, show: t || !1, children: /* @__PURE__ */
|
|
2366
|
-
/* @__PURE__ */
|
|
2365
|
+
return /* @__PURE__ */ e(Or, { onHide: r, show: t || !1, children: /* @__PURE__ */ d(f, { direction: "column", gap: "md", children: [
|
|
2366
|
+
/* @__PURE__ */ d(_, { direction: "row", justify: "space-between", align: "center", children: [
|
|
2367
2367
|
/* @__PURE__ */ e(f, { children: "Filter" }),
|
|
2368
2368
|
/* @__PURE__ */ e(
|
|
2369
2369
|
f,
|
|
@@ -2374,7 +2374,7 @@ const Ir = (t, r) => {
|
|
|
2374
2374
|
}
|
|
2375
2375
|
)
|
|
2376
2376
|
] }),
|
|
2377
|
-
n == null ? void 0 : n.map((y,
|
|
2377
|
+
n == null ? void 0 : n.map((y, b) => m(y, b))
|
|
2378
2378
|
] }) });
|
|
2379
2379
|
}, hi = ({
|
|
2380
2380
|
searchKey: t = "q",
|
|
@@ -2386,29 +2386,29 @@ const Ir = (t, r) => {
|
|
|
2386
2386
|
showStatusFilter: s = !0,
|
|
2387
2387
|
filterKey: a = "filter",
|
|
2388
2388
|
pageKey: h = "page",
|
|
2389
|
-
customWidthSearch:
|
|
2389
|
+
customWidthSearch: u,
|
|
2390
2390
|
handleOnReset: g,
|
|
2391
2391
|
filterConfigs: m,
|
|
2392
2392
|
buttonToggleProps: y,
|
|
2393
|
-
position:
|
|
2393
|
+
position: b = "right",
|
|
2394
2394
|
titleSearchLabel: E = "Work Order",
|
|
2395
|
-
withTitleLabels:
|
|
2395
|
+
withTitleLabels: C = !1
|
|
2396
2396
|
}) => {
|
|
2397
|
-
const
|
|
2397
|
+
const Z = (y == null ? void 0 : y.isShowLabel) ?? !0, [T, U] = k(!1), [M, ae] = k(0), J = () => {
|
|
2398
2398
|
ae((V) => V + 1);
|
|
2399
|
-
}, { searchParams:
|
|
2400
|
-
if (
|
|
2399
|
+
}, { searchParams: A, setSearchParams: P, getQueryParam: oe } = xt(), le = Pe(A.toString()), G = si(t, A, a) || "", [Q, K] = k(G), de = oe(a), X = !!(de && !(() => {
|
|
2400
|
+
if (de)
|
|
2401
2401
|
try {
|
|
2402
|
-
const V = JSON.parse(
|
|
2402
|
+
const V = JSON.parse(de);
|
|
2403
2403
|
return Object.keys(V).length === 1 && V[t] === "";
|
|
2404
2404
|
} catch (V) {
|
|
2405
2405
|
console.error("Filter parameter is not a valid JSON:", V);
|
|
2406
2406
|
}
|
|
2407
2407
|
return !1;
|
|
2408
2408
|
})()), R = ne("md");
|
|
2409
|
-
return
|
|
2409
|
+
return $(() => {
|
|
2410
2410
|
K(G);
|
|
2411
|
-
}, [G]),
|
|
2411
|
+
}, [G]), $(() => {
|
|
2412
2412
|
if (Q === G)
|
|
2413
2413
|
return;
|
|
2414
2414
|
const V = window.setTimeout(() => {
|
|
@@ -2433,28 +2433,28 @@ const Ir = (t, r) => {
|
|
|
2433
2433
|
P,
|
|
2434
2434
|
a,
|
|
2435
2435
|
h
|
|
2436
|
-
]), /* @__PURE__ */
|
|
2437
|
-
|
|
2436
|
+
]), /* @__PURE__ */ d(
|
|
2437
|
+
_,
|
|
2438
2438
|
{
|
|
2439
2439
|
gap: "md",
|
|
2440
2440
|
style: {
|
|
2441
|
-
flexDirection: R &&
|
|
2441
|
+
flexDirection: R && b === "left" ? "row" : R && b === "right" ? "row-reverse" : "column"
|
|
2442
2442
|
},
|
|
2443
2443
|
align: "flex-end",
|
|
2444
2444
|
children: [
|
|
2445
2445
|
X && /* @__PURE__ */ e(f, { justify: "flex-end", children: /* @__PURE__ */ e(
|
|
2446
|
-
|
|
2446
|
+
N,
|
|
2447
2447
|
{
|
|
2448
2448
|
onClick: () => {
|
|
2449
|
-
const V = new URLSearchParams(
|
|
2449
|
+
const V = new URLSearchParams(A);
|
|
2450
2450
|
V.delete(a), P(V), K(""), J(), g && g();
|
|
2451
2451
|
},
|
|
2452
2452
|
variant: "outline",
|
|
2453
2453
|
tone: "neutral",
|
|
2454
|
-
children: /* @__PURE__ */ e(
|
|
2454
|
+
children: /* @__PURE__ */ e(x, { color: "error", fontWeight: "semibold", children: "Reset" })
|
|
2455
2455
|
}
|
|
2456
2456
|
) }),
|
|
2457
|
-
n == null ? void 0 : n.map(({ minWidth: V, content: te, title: fe, onClickContainer: ge }, Be) => /* @__PURE__ */
|
|
2457
|
+
n == null ? void 0 : n.map(({ minWidth: V, content: te, title: fe, onClickContainer: ge }, Be) => /* @__PURE__ */ d(
|
|
2458
2458
|
f,
|
|
2459
2459
|
{
|
|
2460
2460
|
gap: "sm",
|
|
@@ -2470,26 +2470,26 @@ const Ir = (t, r) => {
|
|
|
2470
2470
|
`extended-filter-${Be}-${M}`
|
|
2471
2471
|
)),
|
|
2472
2472
|
!!(m != null && m.length) && /* @__PURE__ */ e(
|
|
2473
|
-
|
|
2473
|
+
N,
|
|
2474
2474
|
{
|
|
2475
2475
|
primary: X,
|
|
2476
2476
|
secondary: !X,
|
|
2477
2477
|
iconLeft: /* @__PURE__ */ e(
|
|
2478
|
-
|
|
2478
|
+
D,
|
|
2479
2479
|
{
|
|
2480
2480
|
size: "sm",
|
|
2481
2481
|
name: (y == null ? void 0 : y.icon) || "FilterHorizontal",
|
|
2482
2482
|
style: {
|
|
2483
|
-
color:
|
|
2483
|
+
color: de ? "var(--sa-background-brand, #04254f)" : "var(--sa-text-primary, #292a2e)"
|
|
2484
2484
|
}
|
|
2485
2485
|
}
|
|
2486
2486
|
),
|
|
2487
2487
|
fullWidth: !R,
|
|
2488
|
-
onClick: () =>
|
|
2489
|
-
children:
|
|
2488
|
+
onClick: () => U(!0),
|
|
2489
|
+
children: Z ? "Filter" : void 0
|
|
2490
2490
|
}
|
|
2491
2491
|
),
|
|
2492
|
-
s && /* @__PURE__ */
|
|
2492
|
+
s && /* @__PURE__ */ d(
|
|
2493
2493
|
f,
|
|
2494
2494
|
{
|
|
2495
2495
|
gap: "sm",
|
|
@@ -2497,7 +2497,7 @@ const Ir = (t, r) => {
|
|
|
2497
2497
|
minWidth: "126px"
|
|
2498
2498
|
},
|
|
2499
2499
|
children: [
|
|
2500
|
-
|
|
2500
|
+
C && /* @__PURE__ */ e(pe.SubH3, { children: "Status" }),
|
|
2501
2501
|
/* @__PURE__ */ e(
|
|
2502
2502
|
ft,
|
|
2503
2503
|
{
|
|
@@ -2514,20 +2514,20 @@ const Ir = (t, r) => {
|
|
|
2514
2514
|
defaultValue: nt({
|
|
2515
2515
|
get: "value",
|
|
2516
2516
|
name: r,
|
|
2517
|
-
searchParams:
|
|
2517
|
+
searchParams: A,
|
|
2518
2518
|
filterKey: a
|
|
2519
2519
|
}) ? [
|
|
2520
2520
|
{
|
|
2521
2521
|
label: nt({
|
|
2522
2522
|
get: "value",
|
|
2523
2523
|
name: r,
|
|
2524
|
-
searchParams:
|
|
2524
|
+
searchParams: A,
|
|
2525
2525
|
filterKey: a
|
|
2526
2526
|
}) === "active" ? "Active" : "InActive",
|
|
2527
2527
|
value: nt({
|
|
2528
2528
|
get: "value",
|
|
2529
2529
|
name: r,
|
|
2530
|
-
searchParams:
|
|
2530
|
+
searchParams: A,
|
|
2531
2531
|
filterKey: a
|
|
2532
2532
|
})
|
|
2533
2533
|
}
|
|
@@ -2540,22 +2540,22 @@ const Ir = (t, r) => {
|
|
|
2540
2540
|
setSearchParams: P,
|
|
2541
2541
|
filterKey: a
|
|
2542
2542
|
}),
|
|
2543
|
-
placeholder:
|
|
2543
|
+
placeholder: C ? "All" : "All Status"
|
|
2544
2544
|
},
|
|
2545
2545
|
M
|
|
2546
2546
|
)
|
|
2547
2547
|
]
|
|
2548
2548
|
}
|
|
2549
2549
|
),
|
|
2550
|
-
l && /* @__PURE__ */
|
|
2550
|
+
l && /* @__PURE__ */ d(
|
|
2551
2551
|
f,
|
|
2552
2552
|
{
|
|
2553
2553
|
gap: "sm",
|
|
2554
2554
|
style: {
|
|
2555
|
-
width:
|
|
2555
|
+
width: u && R ? u : R ? "310px" : ""
|
|
2556
2556
|
},
|
|
2557
2557
|
children: [
|
|
2558
|
-
|
|
2558
|
+
C && /* @__PURE__ */ d(pe.SubH3, { children: [
|
|
2559
2559
|
"Search for ",
|
|
2560
2560
|
E
|
|
2561
2561
|
] }),
|
|
@@ -2563,7 +2563,7 @@ const Ir = (t, r) => {
|
|
|
2563
2563
|
gt,
|
|
2564
2564
|
{
|
|
2565
2565
|
placeholder: i,
|
|
2566
|
-
leftIcon: /* @__PURE__ */ e(
|
|
2566
|
+
leftIcon: /* @__PURE__ */ e(D, { name: "Search", width: 20, height: 20 }),
|
|
2567
2567
|
onChange: (V) => K(V.target.value),
|
|
2568
2568
|
value: Q,
|
|
2569
2569
|
fullWidth: !0
|
|
@@ -2576,8 +2576,8 @@ const Ir = (t, r) => {
|
|
|
2576
2576
|
/* @__PURE__ */ e(
|
|
2577
2577
|
ui,
|
|
2578
2578
|
{
|
|
2579
|
-
isOpen:
|
|
2580
|
-
onClose: () =>
|
|
2579
|
+
isOpen: T,
|
|
2580
|
+
onClose: () => U(!1),
|
|
2581
2581
|
filterKey: a,
|
|
2582
2582
|
filters: m,
|
|
2583
2583
|
pageKey: h
|
|
@@ -2588,7 +2588,7 @@ const Ir = (t, r) => {
|
|
|
2588
2588
|
);
|
|
2589
2589
|
}, fi = ({ children: t, borderRadius: r, height: i }) => {
|
|
2590
2590
|
const o = ie(null), [n, l] = k("100vh");
|
|
2591
|
-
return
|
|
2591
|
+
return $(() => {
|
|
2592
2592
|
if (i) return;
|
|
2593
2593
|
const s = () => {
|
|
2594
2594
|
if (o.current) {
|
|
@@ -2642,14 +2642,14 @@ const Ir = (t, r) => {
|
|
|
2642
2642
|
flexDirection: s ? "row" : "column-reverse",
|
|
2643
2643
|
gap: "16px"
|
|
2644
2644
|
},
|
|
2645
|
-
children: o ? o({ filter: a }) : /* @__PURE__ */
|
|
2646
|
-
/* @__PURE__ */
|
|
2645
|
+
children: o ? o({ filter: a }) : /* @__PURE__ */ d(q, { children: [
|
|
2646
|
+
/* @__PURE__ */ d(f, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flex: 1, minWidth: 0 }, children: [
|
|
2647
2647
|
a,
|
|
2648
2648
|
i
|
|
2649
2649
|
] }),
|
|
2650
|
-
/* @__PURE__ */
|
|
2650
|
+
/* @__PURE__ */ d(f, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flexShrink: 0 }, children: [
|
|
2651
2651
|
r,
|
|
2652
|
-
t ?
|
|
2652
|
+
t ? dt(t) ? t : /* @__PURE__ */ e(
|
|
2653
2653
|
f,
|
|
2654
2654
|
{
|
|
2655
2655
|
style: {
|
|
@@ -2660,16 +2660,16 @@ const Ir = (t, r) => {
|
|
|
2660
2660
|
textWrap: "nowrap"
|
|
2661
2661
|
},
|
|
2662
2662
|
children: t.map(
|
|
2663
|
-
({ title:
|
|
2664
|
-
|
|
2663
|
+
({ title: u, icon: g, buttonProps: m, onClick: y }, b) => !u && !g ? null : /* @__PURE__ */ e(
|
|
2664
|
+
N,
|
|
2665
2665
|
{
|
|
2666
2666
|
fullWidth: !s,
|
|
2667
|
-
iconLeft: g ? /* @__PURE__ */ e(
|
|
2667
|
+
iconLeft: g ? /* @__PURE__ */ e(D, { name: g }) : void 0,
|
|
2668
2668
|
onClick: y,
|
|
2669
2669
|
...m,
|
|
2670
|
-
children:
|
|
2670
|
+
children: u
|
|
2671
2671
|
},
|
|
2672
|
-
`action-${
|
|
2672
|
+
`action-${b}`
|
|
2673
2673
|
)
|
|
2674
2674
|
)
|
|
2675
2675
|
}
|
|
@@ -2682,7 +2682,7 @@ const Ir = (t, r) => {
|
|
|
2682
2682
|
totalData: t,
|
|
2683
2683
|
withMarginBottom: r = !0,
|
|
2684
2684
|
withMarginTop: i = !0
|
|
2685
|
-
}) => /* @__PURE__ */
|
|
2685
|
+
}) => /* @__PURE__ */ d(
|
|
2686
2686
|
f,
|
|
2687
2687
|
{
|
|
2688
2688
|
style: {
|
|
@@ -2694,7 +2694,7 @@ const Ir = (t, r) => {
|
|
|
2694
2694
|
marginTop: i ? "16px" : void 0
|
|
2695
2695
|
},
|
|
2696
2696
|
children: [
|
|
2697
|
-
/* @__PURE__ */
|
|
2697
|
+
/* @__PURE__ */ d(
|
|
2698
2698
|
pe.Body1,
|
|
2699
2699
|
{
|
|
2700
2700
|
props: {
|
|
@@ -2717,7 +2717,7 @@ const Ir = (t, r) => {
|
|
|
2717
2717
|
showPagination: n = !0,
|
|
2718
2718
|
totalData: l
|
|
2719
2719
|
}) => {
|
|
2720
|
-
const { searchQueries: s, setSearchParams: a, searchParams: h } = xt(),
|
|
2720
|
+
const { searchQueries: s, setSearchParams: a, searchParams: h } = xt(), u = h.get(i), g = (E) => {
|
|
2721
2721
|
a({ ...s, [r]: String(E) });
|
|
2722
2722
|
}, m = (E) => {
|
|
2723
2723
|
a({
|
|
@@ -2725,7 +2725,7 @@ const Ir = (t, r) => {
|
|
|
2725
2725
|
[i]: E,
|
|
2726
2726
|
[r]: "1"
|
|
2727
2727
|
});
|
|
2728
|
-
}, 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),
|
|
2728
|
+
}, 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));
|
|
2729
2729
|
return /* @__PURE__ */ e(
|
|
2730
2730
|
f,
|
|
2731
2731
|
{
|
|
@@ -2742,9 +2742,9 @@ const Ir = (t, r) => {
|
|
|
2742
2742
|
borderTop: "1px solid var(--sa-border-subtle, #0b120e24)",
|
|
2743
2743
|
flexShrink: 0
|
|
2744
2744
|
},
|
|
2745
|
-
children: n ? /* @__PURE__ */
|
|
2746
|
-
/* @__PURE__ */
|
|
2747
|
-
/* @__PURE__ */ e(
|
|
2745
|
+
children: n ? /* @__PURE__ */ d(q, { children: [
|
|
2746
|
+
/* @__PURE__ */ d(f, { style: { display: "flex", flexDirection: "row", gap: "8px", alignItems: "center", textWrap: "nowrap" }, children: [
|
|
2747
|
+
/* @__PURE__ */ e(x, { children: "Rows Per Page: " }),
|
|
2748
2748
|
/* @__PURE__ */ e(
|
|
2749
2749
|
ft,
|
|
2750
2750
|
{
|
|
@@ -2758,14 +2758,14 @@ const Ir = (t, r) => {
|
|
|
2758
2758
|
onChange: (E) => {
|
|
2759
2759
|
m(E[0].value);
|
|
2760
2760
|
},
|
|
2761
|
-
value:
|
|
2762
|
-
defaultValue:
|
|
2761
|
+
value: u ? [{ label: `${u} per row`, value: u }] : [{ label: `${o} per row`, value: `${o}` }],
|
|
2762
|
+
defaultValue: u ? [{ label: `${u} per row`, value: u }] : [{ label: `${o} per row`, value: `${o}` }]
|
|
2763
2763
|
}
|
|
2764
2764
|
),
|
|
2765
|
-
/* @__PURE__ */ e(
|
|
2765
|
+
/* @__PURE__ */ e(x, { children: `${y}-${b} of ${(t == null ? void 0 : t.totalData) || 0}` })
|
|
2766
2766
|
] }),
|
|
2767
2767
|
/* @__PURE__ */ e(
|
|
2768
|
-
|
|
2768
|
+
dr,
|
|
2769
2769
|
{
|
|
2770
2770
|
currentPage: t != null && t.currentPage ? Number(t == null ? void 0 : t.currentPage) : 1,
|
|
2771
2771
|
totalCount: t != null && t.totalPage ? Number(t == null ? void 0 : t.totalPage) : 1,
|
|
@@ -2783,32 +2783,32 @@ const Ir = (t, r) => {
|
|
|
2783
2783
|
}
|
|
2784
2784
|
);
|
|
2785
2785
|
}, pi = ({ filter: t, columnTitle: r }) => {
|
|
2786
|
-
const [i, o] = k(!1), n = ie(null), l = ie(null), s = ie(null), [a, h] = k(""), [
|
|
2787
|
-
(
|
|
2786
|
+
const [i, o] = k(!1), n = ie(null), l = ie(null), s = ie(null), [a, h] = k(""), [u, g] = k({ top: 0, left: 0 }), m = t.selectedValues, y = he(() => a ? t.options.filter(
|
|
2787
|
+
(C) => C.label.toLowerCase().includes(a.toLowerCase())
|
|
2788
2788
|
) : t.options, [t.options, a]);
|
|
2789
|
-
|
|
2789
|
+
$(() => {
|
|
2790
2790
|
if (i && l.current) {
|
|
2791
|
-
const
|
|
2792
|
-
top:
|
|
2791
|
+
const C = l.current.getBoundingClientRect(), H = 280, Z = {
|
|
2792
|
+
top: C.bottom + 8
|
|
2793
2793
|
};
|
|
2794
|
-
t.position === "left" ||
|
|
2794
|
+
t.position === "left" || C.left + H > window.innerWidth ? Z.right = window.innerWidth - C.right : Z.left = C.left, g(Z);
|
|
2795
2795
|
}
|
|
2796
|
-
}, [i, t.position]),
|
|
2796
|
+
}, [i, t.position]), $(() => {
|
|
2797
2797
|
i && s.current ? setTimeout(() => {
|
|
2798
|
-
var
|
|
2799
|
-
return (
|
|
2798
|
+
var C;
|
|
2799
|
+
return (C = s.current) == null ? void 0 : C.focus();
|
|
2800
2800
|
}, 50) : h("");
|
|
2801
|
-
}, [i]),
|
|
2802
|
-
const
|
|
2803
|
-
n.current && !n.current.contains(
|
|
2801
|
+
}, [i]), $(() => {
|
|
2802
|
+
const C = (H) => {
|
|
2803
|
+
n.current && !n.current.contains(H.target) && l.current && !l.current.contains(H.target) && o(!1);
|
|
2804
2804
|
};
|
|
2805
|
-
return i && document.addEventListener("mousedown",
|
|
2805
|
+
return i && document.addEventListener("mousedown", C), () => document.removeEventListener("mousedown", C);
|
|
2806
2806
|
}, [i]);
|
|
2807
|
-
const
|
|
2808
|
-
const
|
|
2809
|
-
t.onFilterChange(
|
|
2807
|
+
const b = (C) => {
|
|
2808
|
+
const H = m.includes(C) ? m.filter((Z) => Z !== C) : [...m, C];
|
|
2809
|
+
t.onFilterChange(H);
|
|
2810
2810
|
}, E = () => t.onFilterChange([]);
|
|
2811
|
-
return /* @__PURE__ */
|
|
2811
|
+
return /* @__PURE__ */ d(f, { style: { position: "relative" }, children: [
|
|
2812
2812
|
/* @__PURE__ */ e(
|
|
2813
2813
|
f,
|
|
2814
2814
|
{
|
|
@@ -2819,12 +2819,12 @@ const Ir = (t, r) => {
|
|
|
2819
2819
|
alignItems: "center",
|
|
2820
2820
|
cursor: "pointer"
|
|
2821
2821
|
},
|
|
2822
|
-
onClick: (
|
|
2823
|
-
var
|
|
2824
|
-
|
|
2822
|
+
onClick: (C) => {
|
|
2823
|
+
var H;
|
|
2824
|
+
C.stopPropagation(), i || (H = t.onOpen) == null || H.call(t), o((Z) => !Z);
|
|
2825
2825
|
},
|
|
2826
2826
|
children: /* @__PURE__ */ e(
|
|
2827
|
-
|
|
2827
|
+
D,
|
|
2828
2828
|
{
|
|
2829
2829
|
name: i ? "ChevronUp" : "ChevronDown",
|
|
2830
2830
|
size: "sm",
|
|
@@ -2835,14 +2835,14 @@ const Ir = (t, r) => {
|
|
|
2835
2835
|
)
|
|
2836
2836
|
}
|
|
2837
2837
|
),
|
|
2838
|
-
i && /* @__PURE__ */
|
|
2838
|
+
i && /* @__PURE__ */ d(
|
|
2839
2839
|
f,
|
|
2840
2840
|
{
|
|
2841
2841
|
ref: n,
|
|
2842
2842
|
style: {
|
|
2843
2843
|
position: "fixed",
|
|
2844
|
-
top: `${
|
|
2845
|
-
...
|
|
2844
|
+
top: `${u.top}px`,
|
|
2845
|
+
...u.left !== void 0 ? { left: `${u.left}px` } : { right: `${u.right}px` },
|
|
2846
2846
|
backgroundColor: "white",
|
|
2847
2847
|
borderRadius: "4px",
|
|
2848
2848
|
minWidth: "280px",
|
|
@@ -2854,7 +2854,7 @@ const Ir = (t, r) => {
|
|
|
2854
2854
|
border: "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
2855
2855
|
},
|
|
2856
2856
|
children: [
|
|
2857
|
-
/* @__PURE__ */
|
|
2857
|
+
/* @__PURE__ */ d(
|
|
2858
2858
|
f,
|
|
2859
2859
|
{
|
|
2860
2860
|
style: {
|
|
@@ -2869,18 +2869,18 @@ const Ir = (t, r) => {
|
|
|
2869
2869
|
borderBottom: "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
2870
2870
|
},
|
|
2871
2871
|
children: [
|
|
2872
|
-
/* @__PURE__ */
|
|
2872
|
+
/* @__PURE__ */ d(x, { fontSize: "sm", fontWeight: "semibold", color: "gray-700", children: [
|
|
2873
2873
|
"Filter ",
|
|
2874
2874
|
r
|
|
2875
2875
|
] }),
|
|
2876
2876
|
m.length > 0 && /* @__PURE__ */ e(f, { style: { cursor: "pointer" }, children: /* @__PURE__ */ e(
|
|
2877
|
-
|
|
2877
|
+
x,
|
|
2878
2878
|
{
|
|
2879
2879
|
fontSize: "xs",
|
|
2880
2880
|
color: "primary",
|
|
2881
2881
|
fontWeight: "semibold",
|
|
2882
|
-
onClick: (
|
|
2883
|
-
|
|
2882
|
+
onClick: (C) => {
|
|
2883
|
+
C.stopPropagation(), E();
|
|
2884
2884
|
},
|
|
2885
2885
|
children: "CLEAR"
|
|
2886
2886
|
}
|
|
@@ -2902,9 +2902,9 @@ const Ir = (t, r) => {
|
|
|
2902
2902
|
{
|
|
2903
2903
|
ref: s,
|
|
2904
2904
|
placeholder: `Search ${r.toLowerCase()}...`,
|
|
2905
|
-
leftIcon: /* @__PURE__ */ e(
|
|
2905
|
+
leftIcon: /* @__PURE__ */ e(D, { name: "Search", size: "sm" }),
|
|
2906
2906
|
value: a,
|
|
2907
|
-
onChange: (
|
|
2907
|
+
onChange: (C) => h(C.target.value),
|
|
2908
2908
|
style: { fontSize: "14px" }
|
|
2909
2909
|
}
|
|
2910
2910
|
)
|
|
@@ -2920,7 +2920,7 @@ const Ir = (t, r) => {
|
|
|
2920
2920
|
paddingLeft: "8px",
|
|
2921
2921
|
paddingRight: "8px"
|
|
2922
2922
|
},
|
|
2923
|
-
children: t.isLoadingOptions ? /* @__PURE__ */
|
|
2923
|
+
children: t.isLoadingOptions ? /* @__PURE__ */ d(
|
|
2924
2924
|
f,
|
|
2925
2925
|
{
|
|
2926
2926
|
style: {
|
|
@@ -2933,7 +2933,7 @@ const Ir = (t, r) => {
|
|
|
2933
2933
|
},
|
|
2934
2934
|
children: [
|
|
2935
2935
|
/* @__PURE__ */ e(
|
|
2936
|
-
|
|
2936
|
+
D,
|
|
2937
2937
|
{
|
|
2938
2938
|
name: "Loading",
|
|
2939
2939
|
size: "lg",
|
|
@@ -2944,7 +2944,7 @@ const Ir = (t, r) => {
|
|
|
2944
2944
|
}
|
|
2945
2945
|
),
|
|
2946
2946
|
/* @__PURE__ */ e(
|
|
2947
|
-
|
|
2947
|
+
x,
|
|
2948
2948
|
{
|
|
2949
2949
|
fontSize: "sm",
|
|
2950
2950
|
color: "gray-500",
|
|
@@ -2954,7 +2954,7 @@ const Ir = (t, r) => {
|
|
|
2954
2954
|
)
|
|
2955
2955
|
]
|
|
2956
2956
|
}
|
|
2957
|
-
) : y.length > 0 ? /* @__PURE__ */ e(f, { style: { gap: "2px", paddingTop: "4px", paddingBottom: "4px" }, children: y.map((
|
|
2957
|
+
) : y.length > 0 ? /* @__PURE__ */ e(f, { style: { gap: "2px", paddingTop: "4px", paddingBottom: "4px" }, children: y.map((C) => /* @__PURE__ */ d(
|
|
2958
2958
|
f,
|
|
2959
2959
|
{
|
|
2960
2960
|
style: {
|
|
@@ -2969,39 +2969,39 @@ const Ir = (t, r) => {
|
|
|
2969
2969
|
cursor: "pointer",
|
|
2970
2970
|
borderRadius: "8px",
|
|
2971
2971
|
transition: "all 0.2s ease",
|
|
2972
|
-
backgroundColor: m.includes(
|
|
2972
|
+
backgroundColor: m.includes(C.value) ? "var(--sa-color-brand-50, #e6edf6)" : "transparent"
|
|
2973
2973
|
},
|
|
2974
|
-
onClick: (
|
|
2975
|
-
|
|
2974
|
+
onClick: (H) => {
|
|
2975
|
+
H.stopPropagation(), b(C.value);
|
|
2976
2976
|
},
|
|
2977
|
-
onMouseEnter: (
|
|
2978
|
-
m.includes(
|
|
2977
|
+
onMouseEnter: (H) => {
|
|
2978
|
+
m.includes(C.value) || (H.currentTarget.style.backgroundColor = "var(--sa-background-primary, #ffffff)"), H.currentTarget.style.transform = "translateX(2px)";
|
|
2979
2979
|
},
|
|
2980
|
-
onMouseLeave: (
|
|
2981
|
-
|
|
2980
|
+
onMouseLeave: (H) => {
|
|
2981
|
+
H.currentTarget.style.backgroundColor = m.includes(C.value) ? "var(--sa-color-brand-50, #e6edf6)" : "transparent", H.currentTarget.style.transform = "translateX(0)";
|
|
2982
2982
|
},
|
|
2983
2983
|
children: [
|
|
2984
2984
|
/* @__PURE__ */ e(
|
|
2985
2985
|
ct,
|
|
2986
2986
|
{
|
|
2987
|
-
checked: m.includes(
|
|
2987
|
+
checked: m.includes(C.value),
|
|
2988
2988
|
onChange: () => {
|
|
2989
2989
|
}
|
|
2990
2990
|
}
|
|
2991
2991
|
),
|
|
2992
2992
|
/* @__PURE__ */ e(
|
|
2993
|
-
|
|
2993
|
+
x,
|
|
2994
2994
|
{
|
|
2995
2995
|
fontSize: "sm",
|
|
2996
|
-
fontWeight: m.includes(
|
|
2997
|
-
color: m.includes(
|
|
2998
|
-
children:
|
|
2996
|
+
fontWeight: m.includes(C.value) ? "medium" : "normal",
|
|
2997
|
+
color: m.includes(C.value) ? "primary" : "gray-700",
|
|
2998
|
+
children: C.label
|
|
2999
2999
|
}
|
|
3000
3000
|
)
|
|
3001
3001
|
]
|
|
3002
3002
|
},
|
|
3003
|
-
|
|
3004
|
-
)) }) : /* @__PURE__ */
|
|
3003
|
+
C.value
|
|
3004
|
+
)) }) : /* @__PURE__ */ d(
|
|
3005
3005
|
f,
|
|
3006
3006
|
{
|
|
3007
3007
|
style: {
|
|
@@ -3014,7 +3014,7 @@ const Ir = (t, r) => {
|
|
|
3014
3014
|
},
|
|
3015
3015
|
children: [
|
|
3016
3016
|
/* @__PURE__ */ e(
|
|
3017
|
-
|
|
3017
|
+
D,
|
|
3018
3018
|
{
|
|
3019
3019
|
name: "Search",
|
|
3020
3020
|
size: "lg",
|
|
@@ -3022,7 +3022,7 @@ const Ir = (t, r) => {
|
|
|
3022
3022
|
}
|
|
3023
3023
|
),
|
|
3024
3024
|
/* @__PURE__ */ e(
|
|
3025
|
-
|
|
3025
|
+
x,
|
|
3026
3026
|
{
|
|
3027
3027
|
fontSize: "sm",
|
|
3028
3028
|
color: "gray-500",
|
|
@@ -3047,7 +3047,7 @@ const Ir = (t, r) => {
|
|
|
3047
3047
|
backgroundColor: "var(--sa-color-brand-50, #e6edf6)",
|
|
3048
3048
|
marginTop: "auto"
|
|
3049
3049
|
},
|
|
3050
|
-
children: /* @__PURE__ */
|
|
3050
|
+
children: /* @__PURE__ */ d(f, { style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "4px" }, children: [
|
|
3051
3051
|
/* @__PURE__ */ e(
|
|
3052
3052
|
f,
|
|
3053
3053
|
{
|
|
@@ -3062,7 +3062,7 @@ const Ir = (t, r) => {
|
|
|
3062
3062
|
children: m.length
|
|
3063
3063
|
}
|
|
3064
3064
|
),
|
|
3065
|
-
/* @__PURE__ */
|
|
3065
|
+
/* @__PURE__ */ d(x, { fontSize: "xs", color: "primary", fontWeight: "medium", children: [
|
|
3066
3066
|
"item",
|
|
3067
3067
|
m.length > 1 ? "s" : "",
|
|
3068
3068
|
" selected"
|
|
@@ -3078,7 +3078,7 @@ const Ir = (t, r) => {
|
|
|
3078
3078
|
direction: t
|
|
3079
3079
|
}) => {
|
|
3080
3080
|
const r = "var(--sa-text-primary, #292a2e)", i = "var(--sa-text-subtle, #8c8f97)";
|
|
3081
|
-
return /* @__PURE__ */
|
|
3081
|
+
return /* @__PURE__ */ d(
|
|
3082
3082
|
"span",
|
|
3083
3083
|
{
|
|
3084
3084
|
style: {
|
|
@@ -3114,7 +3114,7 @@ const Ir = (t, r) => {
|
|
|
3114
3114
|
]
|
|
3115
3115
|
}
|
|
3116
3116
|
);
|
|
3117
|
-
}, Ci = ({ frozen: t }) => /* @__PURE__ */
|
|
3117
|
+
}, Ci = ({ frozen: t }) => /* @__PURE__ */ d(
|
|
3118
3118
|
"svg",
|
|
3119
3119
|
{
|
|
3120
3120
|
width: "11",
|
|
@@ -3130,7 +3130,7 @@ const Ir = (t, r) => {
|
|
|
3130
3130
|
/* @__PURE__ */ e("path", { d: t ? "M7 11V7a5 5 0 0 1 10 0v4" : "M7 11V7a5 5 0 0 1 9.9-1" })
|
|
3131
3131
|
]
|
|
3132
3132
|
}
|
|
3133
|
-
), ot = "var(--sa-background-primary, #ffffff)",
|
|
3133
|
+
), ot = "var(--sa-background-primary, #ffffff)", Tt = "var(--sa-background-primary-inverse, #f8f8f8)", vi = ({
|
|
3134
3134
|
columns: t,
|
|
3135
3135
|
records: r,
|
|
3136
3136
|
handleDetail: i,
|
|
@@ -3140,101 +3140,101 @@ const Ir = (t, r) => {
|
|
|
3140
3140
|
visibleHandleDelete: s,
|
|
3141
3141
|
visibleHandleUpdate: a,
|
|
3142
3142
|
visibleHandleDetail: h,
|
|
3143
|
-
showHeadBorder:
|
|
3143
|
+
showHeadBorder: u = !1,
|
|
3144
3144
|
scrollParentRef: g,
|
|
3145
3145
|
frozenCount: m = 0,
|
|
3146
3146
|
onFrozenCountChange: y,
|
|
3147
|
-
customActions:
|
|
3147
|
+
customActions: b,
|
|
3148
3148
|
actionsOrder: E = ["detail", "update", "delete", "custom"],
|
|
3149
|
-
customEmptyState:
|
|
3150
|
-
enableColumnResize:
|
|
3151
|
-
defaultColumnWidths:
|
|
3152
|
-
onColumnWidthsChange:
|
|
3153
|
-
defaultMinColumnWidth:
|
|
3149
|
+
customEmptyState: C,
|
|
3150
|
+
enableColumnResize: H = !1,
|
|
3151
|
+
defaultColumnWidths: Z,
|
|
3152
|
+
onColumnWidthsChange: T,
|
|
3153
|
+
defaultMinColumnWidth: U = 60,
|
|
3154
3154
|
sort: M,
|
|
3155
3155
|
defaultSort: ae,
|
|
3156
3156
|
onSortChange: J,
|
|
3157
|
-
showActionDivider:
|
|
3157
|
+
showActionDivider: A = !1
|
|
3158
3158
|
}) => {
|
|
3159
3159
|
const P = M !== void 0, [oe, le] = k(
|
|
3160
3160
|
ae ?? null
|
|
3161
|
-
), G = P ? M ?? null : oe, Q = (
|
|
3162
|
-
if (
|
|
3163
|
-
if (typeof
|
|
3164
|
-
}, K = (
|
|
3165
|
-
const S = Q(
|
|
3161
|
+
), G = P ? M ?? null : oe, Q = (v) => {
|
|
3162
|
+
if (v.sortKey) return v.sortKey;
|
|
3163
|
+
if (typeof v.accessor == "string") return v.accessor;
|
|
3164
|
+
}, K = (v) => {
|
|
3165
|
+
const S = Q(v);
|
|
3166
3166
|
if (!S) return;
|
|
3167
3167
|
let w;
|
|
3168
3168
|
!G || G.key !== S ? w = { key: S, direction: "asc" } : G.direction === "asc" ? w = { key: S, direction: "desc" } : w = null, P || le(w), J == null || J(w);
|
|
3169
|
-
}, ee = [i, o, n].filter((
|
|
3170
|
-
if (!S) return
|
|
3171
|
-
if (typeof S == "function") return S(
|
|
3172
|
-
if (typeof S == "string") return
|
|
3173
|
-
}, [et,
|
|
3174
|
-
|
|
3169
|
+
}, ee = [i, o, n].filter((v) => v !== void 0).length, X = !!b, R = !!i || !!o || !!n || X, V = "var(--sa-border-subtle, #0b120e24)", te = `1px solid ${V}`, fe = `inset 1px 0 0 ${V}`, ge = `inset -1px 0 0 ${V}`, Be = ee === 3 ? X ? "178px" : "140px" : ee === 2 ? X ? "140px" : "102px" : ee === 1 ? X ? "112px" : "74px" : X ? "74px" : "", Te = (v, S) => {
|
|
3170
|
+
if (!S) return v;
|
|
3171
|
+
if (typeof S == "function") return S(v);
|
|
3172
|
+
if (typeof S == "string") return v[S];
|
|
3173
|
+
}, [et, Ne] = k(!1);
|
|
3174
|
+
$(() => {
|
|
3175
3175
|
if (!(g != null && g.current)) return;
|
|
3176
|
-
const
|
|
3177
|
-
|
|
3176
|
+
const v = g.current;
|
|
3177
|
+
Ne(v.scrollHeight > v.clientHeight);
|
|
3178
3178
|
}, [r, g]);
|
|
3179
|
-
const
|
|
3180
|
-
() =>
|
|
3179
|
+
const ze = ie(null), [se, Oe] = k([]), [Ae, Fe] = k(
|
|
3180
|
+
() => Z ?? {}
|
|
3181
3181
|
), Ee = ie(null);
|
|
3182
3182
|
at(() => {
|
|
3183
|
-
if (!m || !
|
|
3183
|
+
if (!m || !ze.current) {
|
|
3184
3184
|
Oe([]);
|
|
3185
3185
|
return;
|
|
3186
3186
|
}
|
|
3187
|
-
const
|
|
3188
|
-
|
|
3187
|
+
const v = Array.from(
|
|
3188
|
+
ze.current.querySelectorAll("thead tr th")
|
|
3189
3189
|
), S = [];
|
|
3190
3190
|
let w = 0;
|
|
3191
|
-
|
|
3192
|
-
S[
|
|
3191
|
+
v.forEach((B, I) => {
|
|
3192
|
+
S[I] = w, I < m && (w += B.offsetWidth);
|
|
3193
3193
|
}), Oe(S);
|
|
3194
|
-
}, [m, t, r,
|
|
3195
|
-
const _e = (
|
|
3196
|
-
y && y(
|
|
3197
|
-
}, p = (
|
|
3198
|
-
const w =
|
|
3194
|
+
}, [m, t, r, Ae]);
|
|
3195
|
+
const _e = (v) => {
|
|
3196
|
+
y && y(v < m ? v : v + 1);
|
|
3197
|
+
}, p = (v, S) => {
|
|
3198
|
+
const w = Ae[v];
|
|
3199
3199
|
if (w !== void 0) {
|
|
3200
3200
|
const B = `${w}px`;
|
|
3201
3201
|
return { width: B, minWidth: B, maxWidth: B };
|
|
3202
3202
|
}
|
|
3203
3203
|
return S ? { width: S } : {};
|
|
3204
|
-
}, F = (
|
|
3205
|
-
|
|
3206
|
-
const w =
|
|
3204
|
+
}, F = (v) => H && (v.resizable ?? !0), L = (v, S) => {
|
|
3205
|
+
v.preventDefault(), v.stopPropagation();
|
|
3206
|
+
const w = v.currentTarget.closest("th");
|
|
3207
3207
|
if (!w) return;
|
|
3208
3208
|
const B = Math.round(w.getBoundingClientRect().width);
|
|
3209
|
-
Ee.current = { colIndex: S, startX:
|
|
3210
|
-
const
|
|
3209
|
+
Ee.current = { colIndex: S, startX: v.clientX, startWidth: B };
|
|
3210
|
+
const I = document.body.style.userSelect, ue = document.body.style.cursor;
|
|
3211
3211
|
document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
|
|
3212
|
-
const xe = (
|
|
3212
|
+
const xe = (be) => {
|
|
3213
3213
|
var Me;
|
|
3214
3214
|
const Ce = Ee.current;
|
|
3215
3215
|
if (!Ce) return;
|
|
3216
|
-
const je = ((Me = t[Ce.colIndex]) == null ? void 0 : Me.minWidth) ??
|
|
3216
|
+
const je = ((Me = t[Ce.colIndex]) == null ? void 0 : Me.minWidth) ?? U, Ie = Math.max(je, Ce.startWidth + (be.clientX - Ce.startX));
|
|
3217
3217
|
Fe(
|
|
3218
|
-
(tt) => tt[Ce.colIndex] ===
|
|
3218
|
+
(tt) => tt[Ce.colIndex] === Ie ? tt : { ...tt, [Ce.colIndex]: Ie }
|
|
3219
3219
|
);
|
|
3220
3220
|
}, we = () => {
|
|
3221
|
-
document.removeEventListener("mousemove", xe), document.removeEventListener("mouseup", we), document.body.style.userSelect =
|
|
3221
|
+
document.removeEventListener("mousemove", xe), document.removeEventListener("mouseup", we), document.body.style.userSelect = I, document.body.style.cursor = ue, Ee.current = null, T && Fe((be) => (T(be), be));
|
|
3222
3222
|
};
|
|
3223
3223
|
document.addEventListener("mousemove", xe), document.addEventListener("mouseup", we);
|
|
3224
3224
|
};
|
|
3225
|
-
return /* @__PURE__ */ e("div", { ref:
|
|
3225
|
+
return /* @__PURE__ */ e("div", { ref: ze, children: /* @__PURE__ */ d(Gt, { fullWidth: !0, children: [
|
|
3226
3226
|
/* @__PURE__ */ e(
|
|
3227
|
-
|
|
3227
|
+
sr,
|
|
3228
3228
|
{
|
|
3229
3229
|
style: {
|
|
3230
3230
|
height: "40px",
|
|
3231
3231
|
whiteSpace: "nowrap"
|
|
3232
3232
|
},
|
|
3233
|
-
children: /* @__PURE__ */
|
|
3234
|
-
t.map((
|
|
3235
|
-
var je,
|
|
3236
|
-
const w = m > 0 && S < m, B =
|
|
3237
|
-
return /* @__PURE__ */
|
|
3233
|
+
children: /* @__PURE__ */ d(Re, { children: [
|
|
3234
|
+
t.map((v, S) => {
|
|
3235
|
+
var je, Ie;
|
|
3236
|
+
const w = m > 0 && S < m, B = se[S] ?? 0, I = F(v), xe = S === t.length - 1 && R && A, we = Q(v), be = !!v.sortable && !!we, Ce = be && (G == null ? void 0 : G.key) === we ? G.direction : null;
|
|
3237
|
+
return /* @__PURE__ */ d(
|
|
3238
3238
|
St,
|
|
3239
3239
|
{
|
|
3240
3240
|
style: {
|
|
@@ -3243,15 +3243,15 @@ const Ir = (t, r) => {
|
|
|
3243
3243
|
left: w ? B : void 0,
|
|
3244
3244
|
zIndex: w ? 4 : 2,
|
|
3245
3245
|
paddingLeft: S === 0 ? "12px" : "",
|
|
3246
|
-
borderRight:
|
|
3247
|
-
borderBottom:
|
|
3248
|
-
boxShadow:
|
|
3246
|
+
borderRight: u && !xe && !w ? te : void 0,
|
|
3247
|
+
borderBottom: u ? te : void 0,
|
|
3248
|
+
boxShadow: u && w ? ge : void 0,
|
|
3249
3249
|
backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
|
|
3250
|
-
textAlign:
|
|
3251
|
-
...p(S,
|
|
3250
|
+
textAlign: v.textAlign === "text-right" ? "right" : v.textAlign === "text-center" ? "center" : "left",
|
|
3251
|
+
...p(S, v.width)
|
|
3252
3252
|
},
|
|
3253
3253
|
children: [
|
|
3254
|
-
/* @__PURE__ */
|
|
3254
|
+
/* @__PURE__ */ d(
|
|
3255
3255
|
"div",
|
|
3256
3256
|
{
|
|
3257
3257
|
style: {
|
|
@@ -3262,11 +3262,11 @@ const Ir = (t, r) => {
|
|
|
3262
3262
|
minWidth: 0
|
|
3263
3263
|
},
|
|
3264
3264
|
children: [
|
|
3265
|
-
|
|
3265
|
+
be ? /* @__PURE__ */ d(
|
|
3266
3266
|
"button",
|
|
3267
3267
|
{
|
|
3268
3268
|
type: "button",
|
|
3269
|
-
onClick: () => K(
|
|
3269
|
+
onClick: () => K(v),
|
|
3270
3270
|
title: Ce === "asc" ? "Sorted ascending — click to sort descending" : Ce === "desc" ? "Sorted descending — click to clear" : "Click to sort ascending",
|
|
3271
3271
|
style: {
|
|
3272
3272
|
flex: 1,
|
|
@@ -3281,7 +3281,7 @@ const Ir = (t, r) => {
|
|
|
3281
3281
|
font: "inherit",
|
|
3282
3282
|
color: "inherit",
|
|
3283
3283
|
cursor: "pointer",
|
|
3284
|
-
textAlign:
|
|
3284
|
+
textAlign: v.textAlign === "text-right" ? "right" : v.textAlign === "text-center" ? "center" : "left"
|
|
3285
3285
|
},
|
|
3286
3286
|
children: [
|
|
3287
3287
|
/* @__PURE__ */ e(
|
|
@@ -3294,7 +3294,7 @@ const Ir = (t, r) => {
|
|
|
3294
3294
|
textOverflow: "ellipsis",
|
|
3295
3295
|
whiteSpace: "nowrap"
|
|
3296
3296
|
},
|
|
3297
|
-
children:
|
|
3297
|
+
children: v.title || ((je = v.accessor) == null ? void 0 : je.toString())
|
|
3298
3298
|
}
|
|
3299
3299
|
),
|
|
3300
3300
|
/* @__PURE__ */ e(xi, { direction: Ce })
|
|
@@ -3310,14 +3310,14 @@ const Ir = (t, r) => {
|
|
|
3310
3310
|
textOverflow: "ellipsis",
|
|
3311
3311
|
whiteSpace: "nowrap"
|
|
3312
3312
|
},
|
|
3313
|
-
children:
|
|
3313
|
+
children: v.title || ((Ie = v.accessor) == null ? void 0 : Ie.toString())
|
|
3314
3314
|
}
|
|
3315
3315
|
),
|
|
3316
|
-
|
|
3316
|
+
v.filter && /* @__PURE__ */ e(
|
|
3317
3317
|
pi,
|
|
3318
3318
|
{
|
|
3319
|
-
filter:
|
|
3320
|
-
columnTitle:
|
|
3319
|
+
filter: v.filter,
|
|
3320
|
+
columnTitle: v.title
|
|
3321
3321
|
}
|
|
3322
3322
|
),
|
|
3323
3323
|
y && /* @__PURE__ */ e(
|
|
@@ -3343,7 +3343,7 @@ const Ir = (t, r) => {
|
|
|
3343
3343
|
]
|
|
3344
3344
|
}
|
|
3345
3345
|
),
|
|
3346
|
-
|
|
3346
|
+
I && /* @__PURE__ */ e(
|
|
3347
3347
|
"div",
|
|
3348
3348
|
{
|
|
3349
3349
|
onMouseDown: (Me) => L(Me, S),
|
|
@@ -3378,21 +3378,21 @@ const Ir = (t, r) => {
|
|
|
3378
3378
|
top: 0,
|
|
3379
3379
|
right: 0,
|
|
3380
3380
|
zIndex: 3,
|
|
3381
|
-
borderBottom:
|
|
3382
|
-
boxShadow:
|
|
3381
|
+
borderBottom: u ? te : void 0,
|
|
3382
|
+
boxShadow: u && A ? fe : void 0
|
|
3383
3383
|
}
|
|
3384
3384
|
}
|
|
3385
3385
|
) : null
|
|
3386
3386
|
] })
|
|
3387
3387
|
}
|
|
3388
3388
|
),
|
|
3389
|
-
/* @__PURE__ */ e(ur, { children: l ? /* @__PURE__ */ e(Re, { children: /* @__PURE__ */ e(Se, { colSpan: t.length + 1, children: /* @__PURE__ */
|
|
3390
|
-
/* @__PURE__ */ e(
|
|
3391
|
-
/* @__PURE__ */ e(
|
|
3392
|
-
/* @__PURE__ */ e(
|
|
3393
|
-
/* @__PURE__ */ e(
|
|
3394
|
-
/* @__PURE__ */ e(
|
|
3395
|
-
] }) }) }) : !(r != null && r.length) &&
|
|
3389
|
+
/* @__PURE__ */ e(ur, { children: l ? /* @__PURE__ */ e(Re, { children: /* @__PURE__ */ e(Se, { colSpan: t.length + 1, children: /* @__PURE__ */ d(f, { style: { gap: "16px" }, children: [
|
|
3390
|
+
/* @__PURE__ */ e(He, { variant: "list" }),
|
|
3391
|
+
/* @__PURE__ */ e(He, { variant: "list" }),
|
|
3392
|
+
/* @__PURE__ */ e(He, { variant: "list" }),
|
|
3393
|
+
/* @__PURE__ */ e(He, { variant: "list" }),
|
|
3394
|
+
/* @__PURE__ */ e(He, { variant: "list" })
|
|
3395
|
+
] }) }) }) : !(r != null && r.length) && C ? /* @__PURE__ */ e(Re, { children: /* @__PURE__ */ e(Se, { colSpan: t.length + 1, children: C }) }) : r == null ? void 0 : r.map((v, S) => /* @__PURE__ */ d(
|
|
3396
3396
|
Re,
|
|
3397
3397
|
{
|
|
3398
3398
|
style: {
|
|
@@ -3402,19 +3402,19 @@ const Ir = (t, r) => {
|
|
|
3402
3402
|
},
|
|
3403
3403
|
onMouseEnter: (w) => {
|
|
3404
3404
|
const B = w.currentTarget;
|
|
3405
|
-
B.style.backgroundColor =
|
|
3406
|
-
|
|
3405
|
+
B.style.backgroundColor = Tt, Array.from(B.querySelectorAll("td")).forEach((I) => {
|
|
3406
|
+
I.style.position === "sticky" && (I.style.backgroundColor = Tt);
|
|
3407
3407
|
});
|
|
3408
3408
|
},
|
|
3409
3409
|
onMouseLeave: (w) => {
|
|
3410
3410
|
const B = w.currentTarget;
|
|
3411
|
-
B.style.backgroundColor = "", Array.from(B.querySelectorAll("td")).forEach((
|
|
3412
|
-
|
|
3411
|
+
B.style.backgroundColor = "", Array.from(B.querySelectorAll("td")).forEach((I) => {
|
|
3412
|
+
I.style.position === "sticky" && (I.style.backgroundColor = ot);
|
|
3413
3413
|
});
|
|
3414
3414
|
},
|
|
3415
3415
|
children: [
|
|
3416
3416
|
t.map((w, B) => {
|
|
3417
|
-
const
|
|
3417
|
+
const I = w.render ? w.render(v, S, r) : Te(v, w.accessor), ue = m > 0 && B < m, xe = se[B] ?? 0, we = Ae[B] !== void 0, be = ue && B === m - 1;
|
|
3418
3418
|
return /* @__PURE__ */ e(
|
|
3419
3419
|
Se,
|
|
3420
3420
|
{
|
|
@@ -3429,12 +3429,12 @@ const Ir = (t, r) => {
|
|
|
3429
3429
|
overflow: we ? "hidden" : void 0,
|
|
3430
3430
|
borderLeft: w.showBorderLeft ? te : void 0,
|
|
3431
3431
|
borderRight: w.showBorderRight ? te : void 0,
|
|
3432
|
-
boxShadow:
|
|
3432
|
+
boxShadow: be ? ge : void 0,
|
|
3433
3433
|
textAlign: w.textAlign === "text-right" ? "right" : w.textAlign === "text-center" ? "center" : "left",
|
|
3434
3434
|
...p(B, w.width)
|
|
3435
3435
|
},
|
|
3436
|
-
children: typeof
|
|
3437
|
-
|
|
3436
|
+
children: typeof I == "string" ? /* @__PURE__ */ e(
|
|
3437
|
+
x,
|
|
3438
3438
|
{
|
|
3439
3439
|
style: {
|
|
3440
3440
|
whiteSpace: "nowrap",
|
|
@@ -3442,9 +3442,9 @@ const Ir = (t, r) => {
|
|
|
3442
3442
|
textOverflow: "ellipsis",
|
|
3443
3443
|
textAlign: w.textAlign === "text-right" ? "right" : w.textAlign === "text-center" ? "center" : "left"
|
|
3444
3444
|
},
|
|
3445
|
-
children:
|
|
3445
|
+
children: I
|
|
3446
3446
|
}
|
|
3447
|
-
) :
|
|
3447
|
+
) : I
|
|
3448
3448
|
},
|
|
3449
3449
|
`row-${S}-col-${B}`
|
|
3450
3450
|
);
|
|
@@ -3455,45 +3455,45 @@ const Ir = (t, r) => {
|
|
|
3455
3455
|
right: 0,
|
|
3456
3456
|
zIndex: 1,
|
|
3457
3457
|
backgroundColor: ot,
|
|
3458
|
-
boxShadow:
|
|
3458
|
+
boxShadow: A ? fe : void 0,
|
|
3459
3459
|
transition: "background-color 0.3s ease"
|
|
3460
|
-
}, children: /* @__PURE__ */ e(
|
|
3460
|
+
}, children: /* @__PURE__ */ e(_, { direction: "row", align: "center", justify: "center", gap: "sm", children: E.map((w) => {
|
|
3461
3461
|
const B = S === r.length - 1 ? "top" : "bottom";
|
|
3462
|
-
return w === "detail" && i && (h == null ? void 0 : h(
|
|
3463
|
-
|
|
3462
|
+
return w === "detail" && i && (h == null ? void 0 : h(v)) !== !1 ? /* @__PURE__ */ e(me, { label: "Detail", position: B, children: /* @__PURE__ */ e(
|
|
3463
|
+
N,
|
|
3464
3464
|
{
|
|
3465
3465
|
size: "xs",
|
|
3466
3466
|
variant: "outline",
|
|
3467
3467
|
tone: "neutral",
|
|
3468
|
-
onClick: () => i(
|
|
3469
|
-
iconLeft: /* @__PURE__ */ e(
|
|
3468
|
+
onClick: () => i(v.id, v),
|
|
3469
|
+
iconLeft: /* @__PURE__ */ e(D, { name: "DocumentClean", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
3470
3470
|
}
|
|
3471
|
-
) }, "detail") : w === "update" && o && (a == null ? void 0 : a(
|
|
3472
|
-
|
|
3471
|
+
) }, "detail") : w === "update" && o && (a == null ? void 0 : a(v)) !== !1 ? /* @__PURE__ */ e(me, { label: "Update", position: B, children: /* @__PURE__ */ e(
|
|
3472
|
+
N,
|
|
3473
3473
|
{
|
|
3474
3474
|
size: "xs",
|
|
3475
3475
|
variant: "outline",
|
|
3476
3476
|
tone: "neutral",
|
|
3477
|
-
onClick: () => o(
|
|
3478
|
-
iconLeft: /* @__PURE__ */ e(
|
|
3477
|
+
onClick: () => o(v),
|
|
3478
|
+
iconLeft: /* @__PURE__ */ e(D, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
3479
3479
|
}
|
|
3480
|
-
) }, "update") : w === "delete" && n && (s == null ? void 0 : s(
|
|
3481
|
-
|
|
3480
|
+
) }, "update") : w === "delete" && n && (s == null ? void 0 : s(v)) !== !1 ? /* @__PURE__ */ e(me, { label: "Delete", position: B, children: /* @__PURE__ */ e(
|
|
3481
|
+
N,
|
|
3482
3482
|
{
|
|
3483
3483
|
size: "xs",
|
|
3484
3484
|
variant: "outline",
|
|
3485
3485
|
tone: "neutral",
|
|
3486
|
-
onClick: () => n(
|
|
3487
|
-
iconLeft: /* @__PURE__ */ e(
|
|
3486
|
+
onClick: () => n(v.id, v),
|
|
3487
|
+
iconLeft: /* @__PURE__ */ e(D, { name: "Trash1", size: "sm", style: { color: "var(--sa-color-error-600, #c9184a)" } })
|
|
3488
3488
|
}
|
|
3489
|
-
) }, "delete") : w === "custom" ? /* @__PURE__ */ e(
|
|
3489
|
+
) }, "delete") : w === "custom" ? /* @__PURE__ */ e(qe.Fragment, { children: b == null ? void 0 : b(v) }, "custom") : null;
|
|
3490
3490
|
}) }) }) : null
|
|
3491
3491
|
]
|
|
3492
3492
|
},
|
|
3493
|
-
`${
|
|
3493
|
+
`${v}${S}`
|
|
3494
3494
|
)) })
|
|
3495
3495
|
] }) });
|
|
3496
|
-
},
|
|
3496
|
+
}, bi = ({
|
|
3497
3497
|
wrapperProps: t,
|
|
3498
3498
|
dataTableProps: r,
|
|
3499
3499
|
headerProps: i,
|
|
@@ -3502,10 +3502,10 @@ const Ir = (t, r) => {
|
|
|
3502
3502
|
var m;
|
|
3503
3503
|
const n = ie(null), [l, s] = k(
|
|
3504
3504
|
(r == null ? void 0 : r.defaultFrozenCount) ?? 0
|
|
3505
|
-
), a = (i == null ? void 0 : i.show) ?? !0, h = ie(null),
|
|
3506
|
-
typeof
|
|
3507
|
-
const g = (o == null ? void 0 : o.showFooter) ?? (
|
|
3508
|
-
return /* @__PURE__ */
|
|
3505
|
+
), a = (i == null ? void 0 : i.show) ?? !0, h = ie(null), u = (m = r == null ? void 0 : r.pagination) == null ? void 0 : m.totalData;
|
|
3506
|
+
typeof u == "number" && (h.current = u);
|
|
3507
|
+
const g = (o == null ? void 0 : o.showFooter) ?? (u === void 0 ? h.current !== 0 : u !== 0);
|
|
3508
|
+
return /* @__PURE__ */ d(fi, { ...t, children: [
|
|
3509
3509
|
a && /* @__PURE__ */ e(gi, { ...i }),
|
|
3510
3510
|
/* @__PURE__ */ e(
|
|
3511
3511
|
f,
|
|
@@ -3540,12 +3540,12 @@ const Ir = (t, r) => {
|
|
|
3540
3540
|
)
|
|
3541
3541
|
] });
|
|
3542
3542
|
};
|
|
3543
|
-
function
|
|
3543
|
+
function Di(t) {
|
|
3544
3544
|
return ce(
|
|
3545
3545
|
t
|
|
3546
3546
|
);
|
|
3547
3547
|
}
|
|
3548
|
-
const Yn = bi
|
|
3548
|
+
const Yn = Di(bi), Ct = ({
|
|
3549
3549
|
of: t,
|
|
3550
3550
|
render: r
|
|
3551
3551
|
}) => yr.toArray(t == null ? void 0 : t.map((i, o, n) => r(i, o, n))), O = ({
|
|
@@ -3554,8 +3554,8 @@ const Yn = bi(Di), Ct = ({
|
|
|
3554
3554
|
children: i,
|
|
3555
3555
|
loading: o,
|
|
3556
3556
|
isLoading: n
|
|
3557
|
-
}) => /* @__PURE__ */ e(
|
|
3558
|
-
|
|
3557
|
+
}) => /* @__PURE__ */ e(q, { children: n ? o : t ? i : r }), j = (t) => /* @__PURE__ */ e(
|
|
3558
|
+
x,
|
|
3559
3559
|
{
|
|
3560
3560
|
...t,
|
|
3561
3561
|
fontFamily: "Poppins",
|
|
@@ -3564,16 +3564,16 @@ const Yn = bi(Di), Ct = ({
|
|
|
3564
3564
|
color: t.color || "gray-700",
|
|
3565
3565
|
children: t.children
|
|
3566
3566
|
}
|
|
3567
|
-
),
|
|
3567
|
+
), De = (t) => /* @__PURE__ */ e(x, { color: "red-600", fontSize: "sm", children: t.message }), wi = ({
|
|
3568
3568
|
size: t = "md",
|
|
3569
3569
|
direction: r = "vertical",
|
|
3570
3570
|
requiredTitle: i = "(Required)",
|
|
3571
3571
|
fullWidth: o = !1,
|
|
3572
3572
|
...n
|
|
3573
3573
|
}) => {
|
|
3574
|
-
var a, h,
|
|
3574
|
+
var a, h, u;
|
|
3575
3575
|
const l = n.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
3576
|
-
return /* @__PURE__ */
|
|
3576
|
+
return /* @__PURE__ */ d(
|
|
3577
3577
|
f,
|
|
3578
3578
|
{
|
|
3579
3579
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -3584,36 +3584,36 @@ const Yn = bi(Di), Ct = ({
|
|
|
3584
3584
|
O,
|
|
3585
3585
|
{
|
|
3586
3586
|
condition: !!n.inputProps.required,
|
|
3587
|
-
fallback: /* @__PURE__ */
|
|
3587
|
+
fallback: /* @__PURE__ */ d(
|
|
3588
3588
|
f,
|
|
3589
3589
|
{
|
|
3590
3590
|
direction: "column",
|
|
3591
3591
|
customMaxWidth: s,
|
|
3592
3592
|
fullWidth: o,
|
|
3593
3593
|
children: [
|
|
3594
|
-
/* @__PURE__ */ e(
|
|
3595
|
-
/* @__PURE__ */ e(
|
|
3594
|
+
/* @__PURE__ */ e(j, { children: n.title }),
|
|
3595
|
+
/* @__PURE__ */ e(x, { fontSize: t, color: "gray-500", children: n.description })
|
|
3596
3596
|
]
|
|
3597
3597
|
}
|
|
3598
3598
|
),
|
|
3599
|
-
children: /* @__PURE__ */
|
|
3599
|
+
children: /* @__PURE__ */ d(
|
|
3600
3600
|
f,
|
|
3601
3601
|
{
|
|
3602
3602
|
direction: "column",
|
|
3603
3603
|
customMaxWidth: s,
|
|
3604
3604
|
fullWidth: o,
|
|
3605
3605
|
children: [
|
|
3606
|
-
/* @__PURE__ */
|
|
3607
|
-
/* @__PURE__ */ e(
|
|
3608
|
-
/* @__PURE__ */ e(
|
|
3606
|
+
/* @__PURE__ */ d(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
3607
|
+
/* @__PURE__ */ e(j, { fontSize: t, children: n.title }),
|
|
3608
|
+
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
3609
3609
|
/* @__PURE__ */ e(O, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
3610
3610
|
me,
|
|
3611
3611
|
{
|
|
3612
3612
|
label: (h = n.tooltip) == null ? void 0 : h.label,
|
|
3613
|
-
arrowPosition: (
|
|
3613
|
+
arrowPosition: (u = n.tooltip) == null ? void 0 : u.arrowPosition,
|
|
3614
3614
|
...n.tooltip,
|
|
3615
3615
|
children: /* @__PURE__ */ e(
|
|
3616
|
-
|
|
3616
|
+
D,
|
|
3617
3617
|
{
|
|
3618
3618
|
name: "InfoCircle",
|
|
3619
3619
|
size: t === "lg" ? "sm" : "xs",
|
|
@@ -3626,13 +3626,13 @@ const Yn = bi(Di), Ct = ({
|
|
|
3626
3626
|
}
|
|
3627
3627
|
) })
|
|
3628
3628
|
] }),
|
|
3629
|
-
/* @__PURE__ */ e(O, { condition: !!n.description, children: /* @__PURE__ */ e(
|
|
3629
|
+
/* @__PURE__ */ e(O, { condition: !!n.description, children: /* @__PURE__ */ e(x, { fontSize: t, color: "gray-500", children: n.description }) })
|
|
3630
3630
|
]
|
|
3631
3631
|
}
|
|
3632
3632
|
)
|
|
3633
3633
|
}
|
|
3634
3634
|
),
|
|
3635
|
-
/* @__PURE__ */
|
|
3635
|
+
/* @__PURE__ */ d(f, { gap: "xs", fullWidth: n.inputProps.fullWidth || !1, children: [
|
|
3636
3636
|
/* @__PURE__ */ e(
|
|
3637
3637
|
gt,
|
|
3638
3638
|
{
|
|
@@ -3643,7 +3643,7 @@ const Yn = bi(Di), Ct = ({
|
|
|
3643
3643
|
fullWidth: !0
|
|
3644
3644
|
}
|
|
3645
3645
|
),
|
|
3646
|
-
!l && n.errorMessage && /* @__PURE__ */ e(
|
|
3646
|
+
!l && n.errorMessage && /* @__PURE__ */ e(De, { message: n.errorMessage }),
|
|
3647
3647
|
n.inputProps.extended && n.inputProps.extended
|
|
3648
3648
|
] })
|
|
3649
3649
|
]
|
|
@@ -3656,9 +3656,9 @@ const Yn = bi(Di), Ct = ({
|
|
|
3656
3656
|
fullWidth: o = !1,
|
|
3657
3657
|
...n
|
|
3658
3658
|
}) => {
|
|
3659
|
-
var a, h,
|
|
3659
|
+
var a, h, u;
|
|
3660
3660
|
const l = n.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
3661
|
-
return /* @__PURE__ */
|
|
3661
|
+
return /* @__PURE__ */ d(
|
|
3662
3662
|
f,
|
|
3663
3663
|
{
|
|
3664
3664
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -3669,36 +3669,36 @@ const Yn = bi(Di), Ct = ({
|
|
|
3669
3669
|
O,
|
|
3670
3670
|
{
|
|
3671
3671
|
condition: !!n.inputProps.required,
|
|
3672
|
-
fallback: /* @__PURE__ */
|
|
3672
|
+
fallback: /* @__PURE__ */ d(
|
|
3673
3673
|
f,
|
|
3674
3674
|
{
|
|
3675
3675
|
direction: "column",
|
|
3676
3676
|
customMaxWidth: s,
|
|
3677
3677
|
fullWidth: o,
|
|
3678
3678
|
children: [
|
|
3679
|
-
/* @__PURE__ */ e(
|
|
3680
|
-
/* @__PURE__ */ e(
|
|
3679
|
+
/* @__PURE__ */ e(j, { children: n.title }),
|
|
3680
|
+
/* @__PURE__ */ e(x, { fontSize: t, color: "gray-500", children: n.description })
|
|
3681
3681
|
]
|
|
3682
3682
|
}
|
|
3683
3683
|
),
|
|
3684
|
-
children: /* @__PURE__ */
|
|
3684
|
+
children: /* @__PURE__ */ d(
|
|
3685
3685
|
f,
|
|
3686
3686
|
{
|
|
3687
3687
|
direction: "column",
|
|
3688
3688
|
customMaxWidth: s,
|
|
3689
3689
|
fullWidth: o,
|
|
3690
3690
|
children: [
|
|
3691
|
-
/* @__PURE__ */
|
|
3692
|
-
/* @__PURE__ */ e(
|
|
3693
|
-
/* @__PURE__ */ e(
|
|
3691
|
+
/* @__PURE__ */ d(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
3692
|
+
/* @__PURE__ */ e(j, { fontSize: t, children: n.title }),
|
|
3693
|
+
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
3694
3694
|
/* @__PURE__ */ e(O, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
3695
3695
|
me,
|
|
3696
3696
|
{
|
|
3697
3697
|
label: (h = n.tooltip) == null ? void 0 : h.label,
|
|
3698
|
-
arrowPosition: (
|
|
3698
|
+
arrowPosition: (u = n.tooltip) == null ? void 0 : u.arrowPosition,
|
|
3699
3699
|
...n.tooltip,
|
|
3700
3700
|
children: /* @__PURE__ */ e(
|
|
3701
|
-
|
|
3701
|
+
D,
|
|
3702
3702
|
{
|
|
3703
3703
|
name: "InfoCircle",
|
|
3704
3704
|
size: t === "lg" ? "sm" : "xs",
|
|
@@ -3711,13 +3711,13 @@ const Yn = bi(Di), Ct = ({
|
|
|
3711
3711
|
}
|
|
3712
3712
|
) })
|
|
3713
3713
|
] }),
|
|
3714
|
-
/* @__PURE__ */ e(O, { condition: !!n.description, children: /* @__PURE__ */ e(
|
|
3714
|
+
/* @__PURE__ */ e(O, { condition: !!n.description, children: /* @__PURE__ */ e(x, { fontSize: t, color: "gray-500", children: n.description }) })
|
|
3715
3715
|
]
|
|
3716
3716
|
}
|
|
3717
3717
|
)
|
|
3718
3718
|
}
|
|
3719
3719
|
),
|
|
3720
|
-
/* @__PURE__ */
|
|
3720
|
+
/* @__PURE__ */ d(f, { gap: "xs", fullWidth: n.inputProps.fullWidth || !1, children: [
|
|
3721
3721
|
/* @__PURE__ */ e(
|
|
3722
3722
|
f,
|
|
3723
3723
|
{
|
|
@@ -3734,7 +3734,7 @@ const Yn = bi(Di), Ct = ({
|
|
|
3734
3734
|
)
|
|
3735
3735
|
}
|
|
3736
3736
|
),
|
|
3737
|
-
!l && n.errorMessage && /* @__PURE__ */ e(
|
|
3737
|
+
!l && n.errorMessage && /* @__PURE__ */ e(De, { message: n.errorMessage }),
|
|
3738
3738
|
n.inputProps.extended && n.inputProps.extended
|
|
3739
3739
|
] })
|
|
3740
3740
|
]
|
|
@@ -3751,7 +3751,7 @@ const Yn = bi(Di), Ct = ({
|
|
|
3751
3751
|
}, s = (h) => {
|
|
3752
3752
|
h.preventDefault(), i(!1);
|
|
3753
3753
|
};
|
|
3754
|
-
return /* @__PURE__ */
|
|
3754
|
+
return /* @__PURE__ */ d(
|
|
3755
3755
|
f,
|
|
3756
3756
|
{
|
|
3757
3757
|
width: "width-full",
|
|
@@ -3771,7 +3771,7 @@ const Yn = bi(Di), Ct = ({
|
|
|
3771
3771
|
},
|
|
3772
3772
|
children: [
|
|
3773
3773
|
/* @__PURE__ */ e(
|
|
3774
|
-
|
|
3774
|
+
D,
|
|
3775
3775
|
{
|
|
3776
3776
|
name: "Upload",
|
|
3777
3777
|
size: "lg",
|
|
@@ -3781,10 +3781,10 @@ const Yn = bi(Di), Ct = ({
|
|
|
3781
3781
|
}
|
|
3782
3782
|
}
|
|
3783
3783
|
),
|
|
3784
|
-
/* @__PURE__ */
|
|
3785
|
-
/* @__PURE__ */
|
|
3784
|
+
/* @__PURE__ */ d(_, { direction: "column", gap: "xs", children: [
|
|
3785
|
+
/* @__PURE__ */ d(_, { direction: "row", gap: "xs", children: [
|
|
3786
3786
|
/* @__PURE__ */ e(
|
|
3787
|
-
|
|
3787
|
+
x,
|
|
3788
3788
|
{
|
|
3789
3789
|
fontWeight: "medium",
|
|
3790
3790
|
color: "gray-500",
|
|
@@ -3794,7 +3794,7 @@ const Yn = bi(Di), Ct = ({
|
|
|
3794
3794
|
}
|
|
3795
3795
|
),
|
|
3796
3796
|
/* @__PURE__ */ e(
|
|
3797
|
-
|
|
3797
|
+
x,
|
|
3798
3798
|
{
|
|
3799
3799
|
fontWeight: "medium",
|
|
3800
3800
|
style: { textWrap: "nowrap" },
|
|
@@ -3803,7 +3803,7 @@ const Yn = bi(Di), Ct = ({
|
|
|
3803
3803
|
}
|
|
3804
3804
|
)
|
|
3805
3805
|
] }),
|
|
3806
|
-
/* @__PURE__ */ e(
|
|
3806
|
+
/* @__PURE__ */ e(x, { fontSize: "sm", color: "gray-500", children: (a = t.fileSupports) == null ? void 0 : a.map((h) => h.toLocaleUpperCase()).join(", ") })
|
|
3807
3807
|
] })
|
|
3808
3808
|
]
|
|
3809
3809
|
}
|
|
@@ -3966,7 +3966,7 @@ const mo = (t) => {
|
|
|
3966
3966
|
});
|
|
3967
3967
|
}
|
|
3968
3968
|
};
|
|
3969
|
-
function
|
|
3969
|
+
function zi(t) {
|
|
3970
3970
|
const r = t.toLowerCase();
|
|
3971
3971
|
if (["kb", "mb", "gb"].find((l) => r.endsWith(l)))
|
|
3972
3972
|
return t;
|
|
@@ -3975,13 +3975,13 @@ function Ai(t) {
|
|
|
3975
3975
|
throw new Error("Invalid size format");
|
|
3976
3976
|
return n >= 1e6 ? `${(n / 1e6).toFixed(2)}MB` : n >= 1e3 ? `${(n / 1e3).toFixed(2)}KB` : `${n}B`;
|
|
3977
3977
|
}
|
|
3978
|
-
function
|
|
3978
|
+
function Ai(t) {
|
|
3979
3979
|
const r = t.split("/");
|
|
3980
3980
|
return r[r.length - 1];
|
|
3981
3981
|
}
|
|
3982
|
-
const
|
|
3982
|
+
const Ii = (t) => {
|
|
3983
3983
|
var r, i;
|
|
3984
|
-
return /* @__PURE__ */
|
|
3984
|
+
return /* @__PURE__ */ d(
|
|
3985
3985
|
f,
|
|
3986
3986
|
{
|
|
3987
3987
|
width: "width-full",
|
|
@@ -4000,9 +4000,9 @@ const Hi = (t) => {
|
|
|
4000
4000
|
cursor: "pointer"
|
|
4001
4001
|
},
|
|
4002
4002
|
children: [
|
|
4003
|
-
/* @__PURE__ */
|
|
4003
|
+
/* @__PURE__ */ d(_, { direction: "row", align: "center", gap: "sm", children: [
|
|
4004
4004
|
/* @__PURE__ */ e(
|
|
4005
|
-
|
|
4005
|
+
D,
|
|
4006
4006
|
{
|
|
4007
4007
|
name: "DocumentFilled",
|
|
4008
4008
|
size: "lg",
|
|
@@ -4013,9 +4013,9 @@ const Hi = (t) => {
|
|
|
4013
4013
|
}
|
|
4014
4014
|
}
|
|
4015
4015
|
),
|
|
4016
|
-
/* @__PURE__ */
|
|
4016
|
+
/* @__PURE__ */ d(_, { direction: "column", children: [
|
|
4017
4017
|
/* @__PURE__ */ e(
|
|
4018
|
-
|
|
4018
|
+
x,
|
|
4019
4019
|
{
|
|
4020
4020
|
fontWeight: "bold",
|
|
4021
4021
|
style: {
|
|
@@ -4024,22 +4024,22 @@ const Hi = (t) => {
|
|
|
4024
4024
|
whiteSpace: "nowrap",
|
|
4025
4025
|
overflow: "hidden"
|
|
4026
4026
|
},
|
|
4027
|
-
children: t.defaultFile ?
|
|
4027
|
+
children: t.defaultFile ? Ai(t.defaultFile.url) : (r = t.fileSelected) == null ? void 0 : r.name
|
|
4028
4028
|
}
|
|
4029
4029
|
),
|
|
4030
|
-
t.defaultFile ? (t.defaultFile.size || t.defaultFile.date) && /* @__PURE__ */
|
|
4031
|
-
t.defaultFile.size && /* @__PURE__ */ e(
|
|
4032
|
-
t.defaultFile.size && t.defaultFile.date && /* @__PURE__ */ e(
|
|
4033
|
-
t.defaultFile.date && /* @__PURE__ */ e(
|
|
4034
|
-
] }) : /* @__PURE__ */
|
|
4035
|
-
/* @__PURE__ */ e(
|
|
4036
|
-
/* @__PURE__ */ e(
|
|
4037
|
-
/* @__PURE__ */ e(
|
|
4030
|
+
t.defaultFile ? (t.defaultFile.size || t.defaultFile.date) && /* @__PURE__ */ d(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4031
|
+
t.defaultFile.size && /* @__PURE__ */ e(x, { fontSize: "sm", fontWeight: "medium", children: t.defaultFile.size }),
|
|
4032
|
+
t.defaultFile.size && t.defaultFile.date && /* @__PURE__ */ e(D, { name: "Dot", size: "xs" }),
|
|
4033
|
+
t.defaultFile.date && /* @__PURE__ */ e(x, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: t.defaultFile.date })
|
|
4034
|
+
] }) : /* @__PURE__ */ d(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4035
|
+
/* @__PURE__ */ e(x, { fontSize: "sm", fontWeight: "medium", children: zi(((i = t.fileSelected) == null ? void 0 : i.size.toString()) || "100000") }),
|
|
4036
|
+
/* @__PURE__ */ e(D, { name: "Dot", size: "xs" }),
|
|
4037
|
+
/* @__PURE__ */ e(x, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: Ei(/* @__PURE__ */ new Date()) })
|
|
4038
4038
|
] })
|
|
4039
4039
|
] })
|
|
4040
4040
|
] }),
|
|
4041
4041
|
/* @__PURE__ */ e(
|
|
4042
|
-
|
|
4042
|
+
N,
|
|
4043
4043
|
{
|
|
4044
4044
|
size: "xs",
|
|
4045
4045
|
variant: "tertiary",
|
|
@@ -4048,72 +4048,108 @@ const Hi = (t) => {
|
|
|
4048
4048
|
onClick: (o) => {
|
|
4049
4049
|
o.stopPropagation(), t.handleOnDeleteFile();
|
|
4050
4050
|
},
|
|
4051
|
-
iconLeft: /* @__PURE__ */ e(
|
|
4051
|
+
iconLeft: /* @__PURE__ */ e(D, { name: "Trash1" })
|
|
4052
4052
|
}
|
|
4053
4053
|
)
|
|
4054
4054
|
]
|
|
4055
4055
|
}
|
|
4056
4056
|
);
|
|
4057
|
-
},
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4057
|
+
}, Hi = ({
|
|
4058
|
+
status: t = "default",
|
|
4059
|
+
labelPosition: r = "outside-top",
|
|
4060
|
+
...i
|
|
4061
|
+
}) => {
|
|
4062
|
+
var m;
|
|
4063
|
+
const o = ie(null), n = () => {
|
|
4064
|
+
if (i.defaultFile) {
|
|
4065
|
+
window.open(i.defaultFile.url);
|
|
4062
4066
|
return;
|
|
4063
4067
|
}
|
|
4064
|
-
|
|
4065
|
-
},
|
|
4066
|
-
|
|
4067
|
-
/* @__PURE__ */ e(
|
|
4068
|
-
"
|
|
4069
|
-
|
|
4070
|
-
|
|
4071
|
-
|
|
4072
|
-
|
|
4073
|
-
|
|
4074
|
-
|
|
4075
|
-
|
|
4076
|
-
|
|
4077
|
-
|
|
4078
|
-
|
|
4079
|
-
),
|
|
4080
|
-
|
|
4081
|
-
|
|
4082
|
-
|
|
4083
|
-
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4090
|
-
|
|
4091
|
-
|
|
4092
|
-
|
|
4093
|
-
|
|
4094
|
-
|
|
4095
|
-
|
|
4096
|
-
|
|
4097
|
-
|
|
4098
|
-
|
|
4099
|
-
|
|
4100
|
-
|
|
4101
|
-
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
|
|
4106
|
-
|
|
4107
|
-
|
|
4108
|
-
|
|
4109
|
-
|
|
4110
|
-
|
|
4111
|
-
|
|
4112
|
-
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4068
|
+
o.current && o.current.click();
|
|
4069
|
+
}, l = ne("md"), s = t === "error" || typeof i.errorMessage == "string" && !!i.errorMessage, a = i.label ? /* @__PURE__ */ d(_, { direction: "row", align: "center", gap: "xs", children: [
|
|
4070
|
+
/* @__PURE__ */ e(x, { fontSize: "sm", fontWeight: "medium", children: i.label }),
|
|
4071
|
+
i.optional && /* @__PURE__ */ e("span", { style: {
|
|
4072
|
+
background: "var(--sa-background-neutral)",
|
|
4073
|
+
border: "1px solid var(--sa-border-subtle)",
|
|
4074
|
+
borderRadius: "4px",
|
|
4075
|
+
padding: "0 8px",
|
|
4076
|
+
fontSize: "10px",
|
|
4077
|
+
fontWeight: 500,
|
|
4078
|
+
lineHeight: "18px",
|
|
4079
|
+
color: "var(--sa-text-primary)",
|
|
4080
|
+
display: "inline-flex",
|
|
4081
|
+
alignItems: "center"
|
|
4082
|
+
}, children: "Optional" }),
|
|
4083
|
+
i.required && /* @__PURE__ */ e(x, { fontSize: "sm", fontWeight: "medium", style: { color: "var(--sa-text-error)" }, children: "*" })
|
|
4084
|
+
] }) : null, h = /* @__PURE__ */ d(q, { children: [
|
|
4085
|
+
i.description && /* @__PURE__ */ e(x, { fontSize: "xs", color: "gray-500", children: i.description }),
|
|
4086
|
+
i.helperText && /* @__PURE__ */ e(x, { fontSize: "xs", color: "gray-500", children: i.helperText }),
|
|
4087
|
+
i.errorText && t === "error" && /* @__PURE__ */ e(x, { fontSize: "xs", color: "error", children: i.errorText }),
|
|
4088
|
+
i.errorMessage && !i.errorText && /* @__PURE__ */ e(x, { fontSize: "xs", color: "error", children: i.errorMessage })
|
|
4089
|
+
] }), u = /* @__PURE__ */ e(
|
|
4090
|
+
"input",
|
|
4091
|
+
{
|
|
4092
|
+
type: "file",
|
|
4093
|
+
style: { display: "none" },
|
|
4094
|
+
ref: o,
|
|
4095
|
+
onChange: (y) => {
|
|
4096
|
+
var b;
|
|
4097
|
+
return i.handleOnChangeFile(((b = y.target.files) == null ? void 0 : b.item(0)) || null);
|
|
4098
|
+
},
|
|
4099
|
+
accept: (m = i.fileSupportOption) == null ? void 0 : m.map((y) => "." + (y == null ? void 0 : y.toLowerCase())).join(", ")
|
|
4100
|
+
}
|
|
4101
|
+
), g = /* @__PURE__ */ d(
|
|
4102
|
+
f,
|
|
4103
|
+
{
|
|
4104
|
+
fullWidth: !0,
|
|
4105
|
+
style: { minHeight: "69px" },
|
|
4106
|
+
borderRadius: "rounded-md",
|
|
4107
|
+
display: "flex",
|
|
4108
|
+
justify: "center",
|
|
4109
|
+
align: "center",
|
|
4110
|
+
cursor: "pointer",
|
|
4111
|
+
gap: "md",
|
|
4112
|
+
...i.containerProps,
|
|
4113
|
+
children: [
|
|
4114
|
+
u,
|
|
4115
|
+
(i.fileSelected || i.defaultFile) && /* @__PURE__ */ e(
|
|
4116
|
+
Ii,
|
|
4117
|
+
{
|
|
4118
|
+
fileSelected: i.fileSelected,
|
|
4119
|
+
defaultFile: i.defaultFile,
|
|
4120
|
+
handleOnDeleteFile: i.handleOnDeleteFile,
|
|
4121
|
+
handleOnClickFile: n
|
|
4122
|
+
}
|
|
4123
|
+
),
|
|
4124
|
+
!i.fileSelected && !i.defaultFile && /* @__PURE__ */ e(
|
|
4125
|
+
Fi,
|
|
4126
|
+
{
|
|
4127
|
+
fileSupports: i.fileSupportOption,
|
|
4128
|
+
isDesktop: l,
|
|
4129
|
+
errorMessage: s ? i.errorText || i.errorMessage || " " : void 0,
|
|
4130
|
+
status: s ? "error" : "default",
|
|
4131
|
+
handleOnClick: n,
|
|
4132
|
+
handleOnFileChange: i.handleOnChangeFile
|
|
4133
|
+
}
|
|
4134
|
+
)
|
|
4135
|
+
]
|
|
4136
|
+
}
|
|
4137
|
+
);
|
|
4138
|
+
return r === "outside-left" ? /* @__PURE__ */ d(_, { direction: "row", align: "flex-start", gap: "md", fullWidth: !0, children: [
|
|
4139
|
+
/* @__PURE__ */ d(_, { direction: "column", gap: "xs", style: { width: "40%", minWidth: "120px", paddingTop: "10px" }, children: [
|
|
4140
|
+
a,
|
|
4141
|
+
i.description && /* @__PURE__ */ e(x, { fontSize: "xs", color: "gray-500", children: i.description })
|
|
4142
|
+
] }),
|
|
4143
|
+
/* @__PURE__ */ d(_, { direction: "column", gap: "xs", style: { flex: 1, minWidth: 0 }, children: [
|
|
4144
|
+
g,
|
|
4145
|
+
i.helperText && /* @__PURE__ */ e(x, { fontSize: "xs", color: "gray-500", children: i.helperText }),
|
|
4146
|
+
i.errorText && t === "error" && /* @__PURE__ */ e(x, { fontSize: "xs", color: "error", children: i.errorText }),
|
|
4147
|
+
i.errorMessage && !i.errorText && /* @__PURE__ */ e(x, { fontSize: "xs", color: "error", children: i.errorMessage })
|
|
4148
|
+
] })
|
|
4149
|
+
] }) : /* @__PURE__ */ d(_, { direction: "column", gap: "xs", fullWidth: !0, children: [
|
|
4150
|
+
a,
|
|
4151
|
+
g,
|
|
4152
|
+
h
|
|
4117
4153
|
] });
|
|
4118
4154
|
}, Ri = ({
|
|
4119
4155
|
size: t = "md",
|
|
@@ -4122,9 +4158,9 @@ const Hi = (t) => {
|
|
|
4122
4158
|
fullWidth: o = !1,
|
|
4123
4159
|
...n
|
|
4124
4160
|
}) => {
|
|
4125
|
-
var a, h,
|
|
4161
|
+
var a, h, u;
|
|
4126
4162
|
const l = n.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
4127
|
-
return /* @__PURE__ */
|
|
4163
|
+
return /* @__PURE__ */ d(
|
|
4128
4164
|
f,
|
|
4129
4165
|
{
|
|
4130
4166
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -4135,36 +4171,36 @@ const Hi = (t) => {
|
|
|
4135
4171
|
O,
|
|
4136
4172
|
{
|
|
4137
4173
|
condition: !!n.inputProps.required,
|
|
4138
|
-
fallback: /* @__PURE__ */
|
|
4174
|
+
fallback: /* @__PURE__ */ d(
|
|
4139
4175
|
f,
|
|
4140
4176
|
{
|
|
4141
4177
|
direction: "column",
|
|
4142
4178
|
customMaxWidth: s,
|
|
4143
4179
|
fullWidth: o,
|
|
4144
4180
|
children: [
|
|
4145
|
-
/* @__PURE__ */ e(
|
|
4146
|
-
/* @__PURE__ */ e(
|
|
4181
|
+
/* @__PURE__ */ e(j, { children: n.title }),
|
|
4182
|
+
/* @__PURE__ */ e(x, { fontSize: t, color: "gray-500", children: n.description })
|
|
4147
4183
|
]
|
|
4148
4184
|
}
|
|
4149
4185
|
),
|
|
4150
|
-
children: /* @__PURE__ */
|
|
4186
|
+
children: /* @__PURE__ */ d(
|
|
4151
4187
|
f,
|
|
4152
4188
|
{
|
|
4153
4189
|
direction: "column",
|
|
4154
4190
|
customMaxWidth: s,
|
|
4155
4191
|
fullWidth: o,
|
|
4156
4192
|
children: [
|
|
4157
|
-
/* @__PURE__ */
|
|
4158
|
-
/* @__PURE__ */ e(
|
|
4159
|
-
/* @__PURE__ */ e(
|
|
4193
|
+
/* @__PURE__ */ d(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4194
|
+
/* @__PURE__ */ e(j, { fontSize: t, children: n.title }),
|
|
4195
|
+
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
4160
4196
|
/* @__PURE__ */ e(O, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
4161
4197
|
me,
|
|
4162
4198
|
{
|
|
4163
4199
|
label: (h = n.tooltip) == null ? void 0 : h.label,
|
|
4164
|
-
arrowPosition: (
|
|
4200
|
+
arrowPosition: (u = n.tooltip) == null ? void 0 : u.arrowPosition,
|
|
4165
4201
|
...n.tooltip,
|
|
4166
4202
|
children: /* @__PURE__ */ e(
|
|
4167
|
-
|
|
4203
|
+
D,
|
|
4168
4204
|
{
|
|
4169
4205
|
name: "InfoCircle",
|
|
4170
4206
|
size: t === "lg" ? "sm" : "xs",
|
|
@@ -4177,21 +4213,21 @@ const Hi = (t) => {
|
|
|
4177
4213
|
}
|
|
4178
4214
|
) })
|
|
4179
4215
|
] }),
|
|
4180
|
-
/* @__PURE__ */ e(O, { condition: !!n.description, children: /* @__PURE__ */ e(
|
|
4216
|
+
/* @__PURE__ */ e(O, { condition: !!n.description, children: /* @__PURE__ */ e(x, { fontSize: t, color: "gray-500", children: n.description }) })
|
|
4181
4217
|
]
|
|
4182
4218
|
}
|
|
4183
4219
|
)
|
|
4184
4220
|
}
|
|
4185
4221
|
),
|
|
4186
|
-
/* @__PURE__ */
|
|
4222
|
+
/* @__PURE__ */ d(_, { direction: "column", gap: "xs", children: [
|
|
4187
4223
|
/* @__PURE__ */ e(
|
|
4188
|
-
|
|
4224
|
+
Hi,
|
|
4189
4225
|
{
|
|
4190
4226
|
...n.inputProps,
|
|
4191
4227
|
status: n.errorMessage ? "error" : "default"
|
|
4192
4228
|
}
|
|
4193
4229
|
),
|
|
4194
|
-
!l && n.errorMessage && /* @__PURE__ */ e(
|
|
4230
|
+
!l && n.errorMessage && /* @__PURE__ */ e(De, { message: n.errorMessage })
|
|
4195
4231
|
] })
|
|
4196
4232
|
]
|
|
4197
4233
|
}
|
|
@@ -4204,9 +4240,9 @@ const Hi = (t) => {
|
|
|
4204
4240
|
required: n = !1,
|
|
4205
4241
|
...l
|
|
4206
4242
|
}) => {
|
|
4207
|
-
var h,
|
|
4243
|
+
var h, u, g, m;
|
|
4208
4244
|
const s = l.hideMessageError || !1, a = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
4209
|
-
return /* @__PURE__ */
|
|
4245
|
+
return /* @__PURE__ */ d(
|
|
4210
4246
|
f,
|
|
4211
4247
|
{
|
|
4212
4248
|
gap: r === "horizontal" || r === "horizontal-inline" ? "spacing-96" : "sm",
|
|
@@ -4217,36 +4253,36 @@ const Hi = (t) => {
|
|
|
4217
4253
|
O,
|
|
4218
4254
|
{
|
|
4219
4255
|
condition: !!n,
|
|
4220
|
-
fallback: /* @__PURE__ */
|
|
4256
|
+
fallback: /* @__PURE__ */ d(
|
|
4221
4257
|
f,
|
|
4222
4258
|
{
|
|
4223
4259
|
direction: "column",
|
|
4224
4260
|
customMaxWidth: a,
|
|
4225
4261
|
fullWidth: o,
|
|
4226
4262
|
children: [
|
|
4227
|
-
/* @__PURE__ */ e(
|
|
4263
|
+
/* @__PURE__ */ e(j, { children: l.title }),
|
|
4228
4264
|
/* @__PURE__ */ e(pe.Body3, { props: { color: "gray-500" }, children: l.description })
|
|
4229
4265
|
]
|
|
4230
4266
|
}
|
|
4231
4267
|
),
|
|
4232
|
-
children: /* @__PURE__ */
|
|
4268
|
+
children: /* @__PURE__ */ d(
|
|
4233
4269
|
f,
|
|
4234
4270
|
{
|
|
4235
4271
|
direction: "column",
|
|
4236
4272
|
customMaxWidth: a,
|
|
4237
4273
|
fullWidth: o,
|
|
4238
4274
|
children: [
|
|
4239
|
-
/* @__PURE__ */
|
|
4240
|
-
/* @__PURE__ */ e(
|
|
4241
|
-
/* @__PURE__ */ e(
|
|
4275
|
+
/* @__PURE__ */ d(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4276
|
+
/* @__PURE__ */ e(j, { fontSize: t, children: l.title }),
|
|
4277
|
+
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
4242
4278
|
/* @__PURE__ */ e(O, { condition: !!((h = l.tooltip) != null && h.label), children: /* @__PURE__ */ e(
|
|
4243
4279
|
me,
|
|
4244
4280
|
{
|
|
4245
|
-
label: (
|
|
4281
|
+
label: (u = l.tooltip) == null ? void 0 : u.label,
|
|
4246
4282
|
arrowPosition: (g = l.tooltip) == null ? void 0 : g.arrowPosition,
|
|
4247
4283
|
...l.tooltip,
|
|
4248
4284
|
children: /* @__PURE__ */ e(
|
|
4249
|
-
|
|
4285
|
+
D,
|
|
4250
4286
|
{
|
|
4251
4287
|
name: "InfoCircle",
|
|
4252
4288
|
size: t === "lg" ? "sm" : "xs",
|
|
@@ -4259,7 +4295,7 @@ const Hi = (t) => {
|
|
|
4259
4295
|
}
|
|
4260
4296
|
) })
|
|
4261
4297
|
] }),
|
|
4262
|
-
/* @__PURE__ */ e(O, { condition: !!l.description, children: /* @__PURE__ */ e(
|
|
4298
|
+
/* @__PURE__ */ e(O, { condition: !!l.description, children: /* @__PURE__ */ e(x, { fontSize: t, color: "gray-500", children: l.description }) })
|
|
4263
4299
|
]
|
|
4264
4300
|
}
|
|
4265
4301
|
)
|
|
@@ -4278,7 +4314,7 @@ const Hi = (t) => {
|
|
|
4278
4314
|
...y,
|
|
4279
4315
|
isChecked: l.checkBoxesAreChecked.includes(y.id)
|
|
4280
4316
|
})),
|
|
4281
|
-
render: (y) => y.renderBadge ? /* @__PURE__ */
|
|
4317
|
+
render: (y) => y.renderBadge ? /* @__PURE__ */ d(
|
|
4282
4318
|
f,
|
|
4283
4319
|
{
|
|
4284
4320
|
direction: "row",
|
|
@@ -4292,7 +4328,7 @@ const Hi = (t) => {
|
|
|
4292
4328
|
name: y.name,
|
|
4293
4329
|
value: y.id,
|
|
4294
4330
|
checked: y.isChecked,
|
|
4295
|
-
onChange: (
|
|
4331
|
+
onChange: (b) => l.onChecked(b.target.value, y),
|
|
4296
4332
|
label: y.name,
|
|
4297
4333
|
description: y.description
|
|
4298
4334
|
}
|
|
@@ -4306,7 +4342,7 @@ const Hi = (t) => {
|
|
|
4306
4342
|
name: y.name,
|
|
4307
4343
|
value: y.id,
|
|
4308
4344
|
checked: y.isChecked,
|
|
4309
|
-
onChange: (
|
|
4345
|
+
onChange: (b) => l.onChecked(b.target.value, y),
|
|
4310
4346
|
label: y.name,
|
|
4311
4347
|
description: y.description
|
|
4312
4348
|
}
|
|
@@ -4315,11 +4351,11 @@ const Hi = (t) => {
|
|
|
4315
4351
|
)
|
|
4316
4352
|
}
|
|
4317
4353
|
),
|
|
4318
|
-
!s && l.errorMessage && /* @__PURE__ */ e(
|
|
4354
|
+
!s && l.errorMessage && /* @__PURE__ */ e(De, { message: l.errorMessage })
|
|
4319
4355
|
]
|
|
4320
4356
|
}
|
|
4321
4357
|
);
|
|
4322
|
-
},
|
|
4358
|
+
}, Ti = ({
|
|
4323
4359
|
position: t = "vertical",
|
|
4324
4360
|
size: r = "md",
|
|
4325
4361
|
fullWidth: i = !1,
|
|
@@ -4327,21 +4363,21 @@ const Hi = (t) => {
|
|
|
4327
4363
|
}) => {
|
|
4328
4364
|
var l;
|
|
4329
4365
|
const n = t === "horizontal-inline" || t === "horizontal-block" ? r === "sm" ? 342 : r === "lg" ? 400 : 342 : void 0;
|
|
4330
|
-
return /* @__PURE__ */
|
|
4366
|
+
return /* @__PURE__ */ d(
|
|
4331
4367
|
f,
|
|
4332
4368
|
{
|
|
4333
4369
|
gap: t === "horizontal-inline" || t === "horizontal-block" ? "spacing-96" : "sm",
|
|
4334
4370
|
direction: t === "horizontal-inline" || t === "horizontal-block" ? "row" : "column",
|
|
4335
4371
|
children: [
|
|
4336
|
-
/* @__PURE__ */ e(O, { condition: !!o.description || !!o.title, children: /* @__PURE__ */
|
|
4372
|
+
/* @__PURE__ */ e(O, { condition: !!o.description || !!o.title, children: /* @__PURE__ */ d(
|
|
4337
4373
|
f,
|
|
4338
4374
|
{
|
|
4339
4375
|
direction: "column",
|
|
4340
4376
|
customMaxWidth: n,
|
|
4341
4377
|
fullWidth: i,
|
|
4342
4378
|
children: [
|
|
4343
|
-
o.title && /* @__PURE__ */ e(
|
|
4344
|
-
/* @__PURE__ */ e(O, { condition: !!o.description, children: /* @__PURE__ */ e(
|
|
4379
|
+
o.title && /* @__PURE__ */ e(j, { children: o.title }),
|
|
4380
|
+
/* @__PURE__ */ e(O, { condition: !!o.description, children: /* @__PURE__ */ e(x, { color: "gray-500", children: o.description }) })
|
|
4345
4381
|
]
|
|
4346
4382
|
}
|
|
4347
4383
|
) }),
|
|
@@ -4359,7 +4395,7 @@ const Hi = (t) => {
|
|
|
4359
4395
|
...s,
|
|
4360
4396
|
isChecked: o.radioIsChecked === s.id
|
|
4361
4397
|
})),
|
|
4362
|
-
render: ({ value: s, id: a, isChecked: h, subInput:
|
|
4398
|
+
render: ({ value: s, id: a, isChecked: h, subInput: u, label: g, description: m }) => /* @__PURE__ */ d(f, { gap: "xs", customMaxWidth: n, children: [
|
|
4363
4399
|
/* @__PURE__ */ e(
|
|
4364
4400
|
mr,
|
|
4365
4401
|
{
|
|
@@ -4378,7 +4414,7 @@ const Hi = (t) => {
|
|
|
4378
4414
|
a
|
|
4379
4415
|
),
|
|
4380
4416
|
m && /* @__PURE__ */ e(
|
|
4381
|
-
|
|
4417
|
+
x,
|
|
4382
4418
|
{
|
|
4383
4419
|
color: "gray-500",
|
|
4384
4420
|
style: {
|
|
@@ -4387,26 +4423,26 @@ const Hi = (t) => {
|
|
|
4387
4423
|
children: m
|
|
4388
4424
|
}
|
|
4389
4425
|
),
|
|
4390
|
-
|
|
4426
|
+
u
|
|
4391
4427
|
] })
|
|
4392
4428
|
}
|
|
4393
4429
|
)
|
|
4394
4430
|
}
|
|
4395
4431
|
),
|
|
4396
|
-
o.errorMessage && /* @__PURE__ */ e(
|
|
4432
|
+
o.errorMessage && /* @__PURE__ */ e(De, { message: o.errorMessage })
|
|
4397
4433
|
]
|
|
4398
4434
|
}
|
|
4399
4435
|
);
|
|
4400
|
-
},
|
|
4436
|
+
}, Ni = ({
|
|
4401
4437
|
size: t = "md",
|
|
4402
4438
|
direction: r = "vertical",
|
|
4403
4439
|
requiredTitle: i = "(Required)",
|
|
4404
4440
|
fullWidth: o = !1,
|
|
4405
4441
|
...n
|
|
4406
4442
|
}) => {
|
|
4407
|
-
var a, h,
|
|
4443
|
+
var a, h, u;
|
|
4408
4444
|
const l = n.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
4409
|
-
return /* @__PURE__ */
|
|
4445
|
+
return /* @__PURE__ */ d(
|
|
4410
4446
|
f,
|
|
4411
4447
|
{
|
|
4412
4448
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -4417,36 +4453,36 @@ const Hi = (t) => {
|
|
|
4417
4453
|
O,
|
|
4418
4454
|
{
|
|
4419
4455
|
condition: !!n.inputProps.required,
|
|
4420
|
-
fallback: /* @__PURE__ */
|
|
4456
|
+
fallback: /* @__PURE__ */ d(
|
|
4421
4457
|
f,
|
|
4422
4458
|
{
|
|
4423
4459
|
direction: "column",
|
|
4424
4460
|
customMaxWidth: s,
|
|
4425
4461
|
fullWidth: o,
|
|
4426
4462
|
children: [
|
|
4427
|
-
/* @__PURE__ */ e(
|
|
4428
|
-
/* @__PURE__ */ e(
|
|
4463
|
+
/* @__PURE__ */ e(j, { children: n.title }),
|
|
4464
|
+
/* @__PURE__ */ e(x, { fontSize: t, color: "gray-500", children: n.description })
|
|
4429
4465
|
]
|
|
4430
4466
|
}
|
|
4431
4467
|
),
|
|
4432
|
-
children: /* @__PURE__ */
|
|
4468
|
+
children: /* @__PURE__ */ d(
|
|
4433
4469
|
f,
|
|
4434
4470
|
{
|
|
4435
4471
|
direction: "column",
|
|
4436
4472
|
customMaxWidth: s,
|
|
4437
4473
|
fullWidth: o,
|
|
4438
4474
|
children: [
|
|
4439
|
-
/* @__PURE__ */
|
|
4440
|
-
/* @__PURE__ */ e(
|
|
4441
|
-
/* @__PURE__ */ e(
|
|
4475
|
+
/* @__PURE__ */ d(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4476
|
+
/* @__PURE__ */ e(j, { fontSize: t, children: n.title }),
|
|
4477
|
+
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
4442
4478
|
/* @__PURE__ */ e(O, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
4443
4479
|
me,
|
|
4444
4480
|
{
|
|
4445
4481
|
label: (h = n.tooltip) == null ? void 0 : h.label,
|
|
4446
|
-
arrowPosition: (
|
|
4482
|
+
arrowPosition: (u = n.tooltip) == null ? void 0 : u.arrowPosition,
|
|
4447
4483
|
...n.tooltip,
|
|
4448
4484
|
children: /* @__PURE__ */ e(
|
|
4449
|
-
|
|
4485
|
+
D,
|
|
4450
4486
|
{
|
|
4451
4487
|
name: "InfoCircle",
|
|
4452
4488
|
size: t === "lg" ? "sm" : "xs",
|
|
@@ -4459,13 +4495,13 @@ const Hi = (t) => {
|
|
|
4459
4495
|
}
|
|
4460
4496
|
) })
|
|
4461
4497
|
] }),
|
|
4462
|
-
/* @__PURE__ */ e(O, { condition: !!n.description, children: /* @__PURE__ */ e(
|
|
4498
|
+
/* @__PURE__ */ e(O, { condition: !!n.description, children: /* @__PURE__ */ e(x, { fontSize: t, color: "gray-500", children: n.description }) })
|
|
4463
4499
|
]
|
|
4464
4500
|
}
|
|
4465
4501
|
)
|
|
4466
4502
|
}
|
|
4467
4503
|
),
|
|
4468
|
-
/* @__PURE__ */
|
|
4504
|
+
/* @__PURE__ */ d(_, { direction: "column", gap: "xs", children: [
|
|
4469
4505
|
/* @__PURE__ */ e(
|
|
4470
4506
|
hr,
|
|
4471
4507
|
{
|
|
@@ -4475,7 +4511,7 @@ const Hi = (t) => {
|
|
|
4475
4511
|
status: n.errorMessage ? "error" : "default"
|
|
4476
4512
|
}
|
|
4477
4513
|
),
|
|
4478
|
-
!l && n.errorMessage && /* @__PURE__ */ e(
|
|
4514
|
+
!l && n.errorMessage && /* @__PURE__ */ e(De, { message: n.errorMessage })
|
|
4479
4515
|
] })
|
|
4480
4516
|
]
|
|
4481
4517
|
}
|
|
@@ -4488,9 +4524,9 @@ const Hi = (t) => {
|
|
|
4488
4524
|
fullWidth: n = !1,
|
|
4489
4525
|
...l
|
|
4490
4526
|
}) => {
|
|
4491
|
-
var a, h,
|
|
4527
|
+
var a, h, u;
|
|
4492
4528
|
const s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
4493
|
-
return /* @__PURE__ */
|
|
4529
|
+
return /* @__PURE__ */ d(
|
|
4494
4530
|
f,
|
|
4495
4531
|
{
|
|
4496
4532
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -4501,36 +4537,36 @@ const Hi = (t) => {
|
|
|
4501
4537
|
O,
|
|
4502
4538
|
{
|
|
4503
4539
|
condition: o,
|
|
4504
|
-
fallback: /* @__PURE__ */
|
|
4540
|
+
fallback: /* @__PURE__ */ d(
|
|
4505
4541
|
f,
|
|
4506
4542
|
{
|
|
4507
4543
|
direction: "column",
|
|
4508
4544
|
customMaxWidth: s,
|
|
4509
4545
|
fullWidth: n,
|
|
4510
4546
|
children: [
|
|
4511
|
-
/* @__PURE__ */ e(
|
|
4512
|
-
/* @__PURE__ */ e(
|
|
4547
|
+
/* @__PURE__ */ e(j, { children: l.title }),
|
|
4548
|
+
/* @__PURE__ */ e(x, { fontSize: t, color: "gray-500", children: l.titleDescription })
|
|
4513
4549
|
]
|
|
4514
4550
|
}
|
|
4515
4551
|
),
|
|
4516
|
-
children: /* @__PURE__ */
|
|
4552
|
+
children: /* @__PURE__ */ d(
|
|
4517
4553
|
f,
|
|
4518
4554
|
{
|
|
4519
4555
|
direction: "column",
|
|
4520
4556
|
customMaxWidth: s,
|
|
4521
4557
|
fullWidth: n,
|
|
4522
4558
|
children: [
|
|
4523
|
-
/* @__PURE__ */
|
|
4524
|
-
/* @__PURE__ */ e(
|
|
4525
|
-
/* @__PURE__ */ e(
|
|
4559
|
+
/* @__PURE__ */ d(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4560
|
+
/* @__PURE__ */ e(j, { fontSize: t, children: l.title }),
|
|
4561
|
+
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
4526
4562
|
/* @__PURE__ */ e(O, { condition: !!((a = l.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
4527
4563
|
me,
|
|
4528
4564
|
{
|
|
4529
4565
|
label: (h = l.tooltip) == null ? void 0 : h.label,
|
|
4530
|
-
arrowPosition: (
|
|
4566
|
+
arrowPosition: (u = l.tooltip) == null ? void 0 : u.arrowPosition,
|
|
4531
4567
|
...l.tooltip,
|
|
4532
4568
|
children: /* @__PURE__ */ e(
|
|
4533
|
-
|
|
4569
|
+
D,
|
|
4534
4570
|
{
|
|
4535
4571
|
name: "InfoCircle",
|
|
4536
4572
|
size: t === "lg" ? "sm" : "xs",
|
|
@@ -4543,14 +4579,14 @@ const Hi = (t) => {
|
|
|
4543
4579
|
}
|
|
4544
4580
|
) })
|
|
4545
4581
|
] }),
|
|
4546
|
-
/* @__PURE__ */ e(O, { condition: !!l.titleDescription, children: /* @__PURE__ */ e(
|
|
4582
|
+
/* @__PURE__ */ e(O, { condition: !!l.titleDescription, children: /* @__PURE__ */ e(x, { fontSize: t, color: "gray-500", children: l.titleDescription }) })
|
|
4547
4583
|
]
|
|
4548
4584
|
}
|
|
4549
4585
|
)
|
|
4550
4586
|
}
|
|
4551
4587
|
),
|
|
4552
4588
|
/* @__PURE__ */ e(
|
|
4553
|
-
|
|
4589
|
+
qt,
|
|
4554
4590
|
{
|
|
4555
4591
|
checked: l.checked,
|
|
4556
4592
|
onChange: l.onChange,
|
|
@@ -4558,7 +4594,7 @@ const Hi = (t) => {
|
|
|
4558
4594
|
description: l.description
|
|
4559
4595
|
}
|
|
4560
4596
|
),
|
|
4561
|
-
l.errorMessage && /* @__PURE__ */ e(
|
|
4597
|
+
l.errorMessage && /* @__PURE__ */ e(De, { message: l.errorMessage })
|
|
4562
4598
|
]
|
|
4563
4599
|
}
|
|
4564
4600
|
);
|
|
@@ -4568,16 +4604,16 @@ const Hi = (t) => {
|
|
|
4568
4604
|
...i
|
|
4569
4605
|
}) => {
|
|
4570
4606
|
const o = gr(), n = (s) => {
|
|
4571
|
-
var h,
|
|
4607
|
+
var h, u, g, m, y, b;
|
|
4572
4608
|
if (!s) return;
|
|
4573
|
-
const a = i.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (
|
|
4574
|
-
return /* @__PURE__ */ e(
|
|
4609
|
+
const a = i.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (u = (h = o == null ? void 0 : o.computed) == null ? void 0 : h.red) == null ? void 0 : u[600] : t === "secondary-primary" ? (m = (g = o == null ? void 0 : o.computed) == null ? void 0 : g.blue) == null ? void 0 : m[700] : (b = (y = o == null ? void 0 : o.computed) == null ? void 0 : y.gray) == null ? void 0 : b[50];
|
|
4610
|
+
return /* @__PURE__ */ e(D, { name: s, size: r, style: { color: a } });
|
|
4575
4611
|
}, l = () => {
|
|
4576
|
-
var a, h,
|
|
4612
|
+
var a, h, u, g;
|
|
4577
4613
|
if (t !== "secondary-danger" && t !== "secondary-primary")
|
|
4578
4614
|
return i.title;
|
|
4579
4615
|
const s = {
|
|
4580
|
-
color: i.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary-danger" ? (h = (a = o == null ? void 0 : o.computed) == null ? void 0 : a.red) == null ? void 0 : h[600] : (g = (
|
|
4616
|
+
color: i.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary-danger" ? (h = (a = o == null ? void 0 : o.computed) == null ? void 0 : a.red) == null ? void 0 : h[600] : (g = (u = o == null ? void 0 : o.computed) == null ? void 0 : u.blue) == null ? void 0 : g[700]
|
|
4581
4617
|
};
|
|
4582
4618
|
switch (r) {
|
|
4583
4619
|
case "xs":
|
|
@@ -4592,7 +4628,7 @@ const Hi = (t) => {
|
|
|
4592
4628
|
}
|
|
4593
4629
|
};
|
|
4594
4630
|
return /* @__PURE__ */ e(
|
|
4595
|
-
|
|
4631
|
+
N,
|
|
4596
4632
|
{
|
|
4597
4633
|
fullWidth: !0,
|
|
4598
4634
|
disabled: i.disabled,
|
|
@@ -4622,9 +4658,9 @@ const Hi = (t) => {
|
|
|
4622
4658
|
fullWidth: o = !1,
|
|
4623
4659
|
...n
|
|
4624
4660
|
}) => {
|
|
4625
|
-
var a, h,
|
|
4661
|
+
var a, h, u;
|
|
4626
4662
|
const l = n.hideMessageError || !1, s = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
4627
|
-
return /* @__PURE__ */
|
|
4663
|
+
return /* @__PURE__ */ d(
|
|
4628
4664
|
f,
|
|
4629
4665
|
{
|
|
4630
4666
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -4635,36 +4671,36 @@ const Hi = (t) => {
|
|
|
4635
4671
|
O,
|
|
4636
4672
|
{
|
|
4637
4673
|
condition: !!n.inputProps.required,
|
|
4638
|
-
fallback: /* @__PURE__ */
|
|
4674
|
+
fallback: /* @__PURE__ */ d(
|
|
4639
4675
|
f,
|
|
4640
4676
|
{
|
|
4641
4677
|
direction: "column",
|
|
4642
4678
|
customMaxWidth: s,
|
|
4643
4679
|
fullWidth: o,
|
|
4644
4680
|
children: [
|
|
4645
|
-
/* @__PURE__ */ e(
|
|
4646
|
-
/* @__PURE__ */ e(
|
|
4681
|
+
/* @__PURE__ */ e(j, { children: n.title }),
|
|
4682
|
+
/* @__PURE__ */ e(x, { fontSize: t, color: "gray-500", children: n.description })
|
|
4647
4683
|
]
|
|
4648
4684
|
}
|
|
4649
4685
|
),
|
|
4650
|
-
children: /* @__PURE__ */
|
|
4686
|
+
children: /* @__PURE__ */ d(
|
|
4651
4687
|
f,
|
|
4652
4688
|
{
|
|
4653
4689
|
direction: "column",
|
|
4654
4690
|
customMaxWidth: s,
|
|
4655
4691
|
fullWidth: o,
|
|
4656
4692
|
children: [
|
|
4657
|
-
/* @__PURE__ */
|
|
4658
|
-
/* @__PURE__ */ e(
|
|
4659
|
-
/* @__PURE__ */ e(
|
|
4693
|
+
/* @__PURE__ */ d(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4694
|
+
/* @__PURE__ */ e(j, { fontSize: t, children: n.title }),
|
|
4695
|
+
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
4660
4696
|
/* @__PURE__ */ e(O, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
4661
4697
|
me,
|
|
4662
4698
|
{
|
|
4663
4699
|
label: (h = n.tooltip) == null ? void 0 : h.label,
|
|
4664
|
-
arrowPosition: (
|
|
4700
|
+
arrowPosition: (u = n.tooltip) == null ? void 0 : u.arrowPosition,
|
|
4665
4701
|
...n.tooltip,
|
|
4666
4702
|
children: /* @__PURE__ */ e(
|
|
4667
|
-
|
|
4703
|
+
D,
|
|
4668
4704
|
{
|
|
4669
4705
|
name: "InfoCircle",
|
|
4670
4706
|
size: t === "lg" ? "sm" : "xs",
|
|
@@ -4677,13 +4713,13 @@ const Hi = (t) => {
|
|
|
4677
4713
|
}
|
|
4678
4714
|
) })
|
|
4679
4715
|
] }),
|
|
4680
|
-
/* @__PURE__ */ e(O, { condition: !!n.description, children: /* @__PURE__ */ e(
|
|
4716
|
+
/* @__PURE__ */ e(O, { condition: !!n.description, children: /* @__PURE__ */ e(x, { fontSize: t, color: "gray-500", children: n.description }) })
|
|
4681
4717
|
]
|
|
4682
4718
|
}
|
|
4683
4719
|
)
|
|
4684
4720
|
}
|
|
4685
4721
|
),
|
|
4686
|
-
/* @__PURE__ */
|
|
4722
|
+
/* @__PURE__ */ d(_, { direction: "column", gap: "xs", children: [
|
|
4687
4723
|
/* @__PURE__ */ e(
|
|
4688
4724
|
f,
|
|
4689
4725
|
{
|
|
@@ -4700,7 +4736,7 @@ const Hi = (t) => {
|
|
|
4700
4736
|
)
|
|
4701
4737
|
}
|
|
4702
4738
|
),
|
|
4703
|
-
!l && n.errorMessage && /* @__PURE__ */ e(
|
|
4739
|
+
!l && n.errorMessage && /* @__PURE__ */ e(De, { message: n.errorMessage })
|
|
4704
4740
|
] })
|
|
4705
4741
|
]
|
|
4706
4742
|
}
|
|
@@ -4733,7 +4769,7 @@ async function $i(t, r) {
|
|
|
4733
4769
|
}, "image/png");
|
|
4734
4770
|
});
|
|
4735
4771
|
}
|
|
4736
|
-
const
|
|
4772
|
+
const Nt = {
|
|
4737
4773
|
"1:1": 1,
|
|
4738
4774
|
"4:3": 4 / 3,
|
|
4739
4775
|
"16:9": 16 / 9,
|
|
@@ -4742,7 +4778,7 @@ const Tt = {
|
|
|
4742
4778
|
"2:3": 2 / 3,
|
|
4743
4779
|
"3:2": 3 / 2,
|
|
4744
4780
|
"32:9": 32 / 9
|
|
4745
|
-
}, Gi =
|
|
4781
|
+
}, Gi = Ut(
|
|
4746
4782
|
({
|
|
4747
4783
|
handleUpload: t,
|
|
4748
4784
|
urlImage: r,
|
|
@@ -4753,15 +4789,15 @@ const Tt = {
|
|
|
4753
4789
|
aspect: s = "1:1",
|
|
4754
4790
|
containerProps: a,
|
|
4755
4791
|
maxFileSize: h = 2,
|
|
4756
|
-
onError:
|
|
4792
|
+
onError: u
|
|
4757
4793
|
}, g) => {
|
|
4758
|
-
const m = ne("md"), [y,
|
|
4759
|
-
|
|
4794
|
+
const m = ne("md"), [y, b] = k(!1), [E, C] = k(null), [H, Z] = k(!1), [T, U] = k({ x: 0, y: 0 }), [M, ae] = k(1), [J, A] = k(null);
|
|
4795
|
+
$(() => {
|
|
4760
4796
|
r === null && n(null);
|
|
4761
4797
|
}, [r]);
|
|
4762
4798
|
const P = ve(
|
|
4763
4799
|
(R, V) => {
|
|
4764
|
-
|
|
4800
|
+
A(V);
|
|
4765
4801
|
},
|
|
4766
4802
|
[]
|
|
4767
4803
|
), oe = (R) => {
|
|
@@ -4770,21 +4806,21 @@ const Tt = {
|
|
|
4770
4806
|
if (!V) return;
|
|
4771
4807
|
const te = new FileReader();
|
|
4772
4808
|
te.onload = () => {
|
|
4773
|
-
|
|
4809
|
+
C(te.result), Z(!0);
|
|
4774
4810
|
}, te.readAsDataURL(V);
|
|
4775
4811
|
}, le = async () => {
|
|
4776
4812
|
if (!(!E || !J))
|
|
4777
4813
|
try {
|
|
4778
4814
|
const R = await $i(E, J);
|
|
4779
4815
|
if (h && R.size > h * 1024 * 1024) {
|
|
4780
|
-
|
|
4816
|
+
u == null || u(`Ukuran file maksimal ${h}MB`);
|
|
4781
4817
|
return;
|
|
4782
4818
|
}
|
|
4783
4819
|
t == null || t(R);
|
|
4784
4820
|
const V = URL.createObjectURL(R);
|
|
4785
|
-
n(V, R),
|
|
4821
|
+
n(V, R), Z(!1);
|
|
4786
4822
|
} catch {
|
|
4787
|
-
|
|
4823
|
+
u == null || u("Gagal memproses gambar");
|
|
4788
4824
|
}
|
|
4789
4825
|
}, G = ie(null), Q = () => {
|
|
4790
4826
|
G.current && G.current.click();
|
|
@@ -4795,9 +4831,9 @@ const Tt = {
|
|
|
4795
4831
|
(R = G.current) == null || R.click();
|
|
4796
4832
|
}
|
|
4797
4833
|
}));
|
|
4798
|
-
const K = parseInt(l, 10),
|
|
4834
|
+
const K = parseInt(l, 10), de = Nt[s];
|
|
4799
4835
|
let ee, X;
|
|
4800
|
-
return
|
|
4836
|
+
return de >= 1 ? (X = K, ee = K * de) : (ee = K, X = K / de), /* @__PURE__ */ d(
|
|
4801
4837
|
f,
|
|
4802
4838
|
{
|
|
4803
4839
|
display: "flex",
|
|
@@ -4813,11 +4849,11 @@ const Tt = {
|
|
|
4813
4849
|
style: {
|
|
4814
4850
|
width: a != null && a.fullWidth ? "100%" : `${ee}px`,
|
|
4815
4851
|
height: a != null && a.fullWidth ? "auto" : `${X}px`,
|
|
4816
|
-
aspectRatio:
|
|
4852
|
+
aspectRatio: de,
|
|
4817
4853
|
flexShrink: 0
|
|
4818
4854
|
},
|
|
4819
|
-
onMouseEnter: () =>
|
|
4820
|
-
onMouseLeave: () =>
|
|
4855
|
+
onMouseEnter: () => b(!0),
|
|
4856
|
+
onMouseLeave: () => b(!1),
|
|
4821
4857
|
children: [
|
|
4822
4858
|
o || r ? /* @__PURE__ */ e(
|
|
4823
4859
|
"img",
|
|
@@ -4839,7 +4875,7 @@ const Tt = {
|
|
|
4839
4875
|
justify: "center",
|
|
4840
4876
|
padding: "spacing-4",
|
|
4841
4877
|
children: /* @__PURE__ */ e(
|
|
4842
|
-
|
|
4878
|
+
D,
|
|
4843
4879
|
{
|
|
4844
4880
|
name: "Image",
|
|
4845
4881
|
style: {
|
|
@@ -4851,7 +4887,7 @@ const Tt = {
|
|
|
4851
4887
|
)
|
|
4852
4888
|
}
|
|
4853
4889
|
),
|
|
4854
|
-
/* @__PURE__ */
|
|
4890
|
+
/* @__PURE__ */ d(
|
|
4855
4891
|
f,
|
|
4856
4892
|
{
|
|
4857
4893
|
position: "absolute",
|
|
@@ -4878,16 +4914,16 @@ const Tt = {
|
|
|
4878
4914
|
style: { display: "none" }
|
|
4879
4915
|
}
|
|
4880
4916
|
),
|
|
4881
|
-
/* @__PURE__ */
|
|
4917
|
+
/* @__PURE__ */ d(f, { display: "flex", align: "center", gap: "spacing-2", direction: "row", children: [
|
|
4882
4918
|
/* @__PURE__ */ e(
|
|
4883
|
-
|
|
4919
|
+
D,
|
|
4884
4920
|
{
|
|
4885
4921
|
name: "Edit3",
|
|
4886
4922
|
style: { color: "var(--sa-background-primary, #ffffff)" }
|
|
4887
4923
|
}
|
|
4888
4924
|
),
|
|
4889
4925
|
/* @__PURE__ */ e(O, { condition: l.toNumber() > 80, children: /* @__PURE__ */ e(
|
|
4890
|
-
|
|
4926
|
+
x,
|
|
4891
4927
|
{
|
|
4892
4928
|
color: "gray-50",
|
|
4893
4929
|
fontSize: l.toNumber() > 80 ? "sm" : "md",
|
|
@@ -4926,7 +4962,7 @@ const Tt = {
|
|
|
4926
4962
|
)
|
|
4927
4963
|
}
|
|
4928
4964
|
),
|
|
4929
|
-
|
|
4965
|
+
H && xr.createPortal(
|
|
4930
4966
|
/* @__PURE__ */ e(
|
|
4931
4967
|
"div",
|
|
4932
4968
|
{
|
|
@@ -4939,8 +4975,8 @@ const Tt = {
|
|
|
4939
4975
|
justifyContent: "center",
|
|
4940
4976
|
backgroundColor: "rgba(0,0,0,0.6)"
|
|
4941
4977
|
},
|
|
4942
|
-
onClick: () =>
|
|
4943
|
-
children: /* @__PURE__ */
|
|
4978
|
+
onClick: () => Z(!1),
|
|
4979
|
+
children: /* @__PURE__ */ d(
|
|
4944
4980
|
"div",
|
|
4945
4981
|
{
|
|
4946
4982
|
style: {
|
|
@@ -4967,10 +5003,10 @@ const Tt = {
|
|
|
4967
5003
|
Cr,
|
|
4968
5004
|
{
|
|
4969
5005
|
image: E,
|
|
4970
|
-
crop:
|
|
5006
|
+
crop: T,
|
|
4971
5007
|
zoom: M,
|
|
4972
|
-
aspect: s ?
|
|
4973
|
-
onCropChange:
|
|
5008
|
+
aspect: s ? Nt[s] : void 0,
|
|
5009
|
+
onCropChange: U,
|
|
4974
5010
|
onZoomChange: ae,
|
|
4975
5011
|
onCropComplete: P,
|
|
4976
5012
|
objectFit: "contain",
|
|
@@ -4980,7 +5016,7 @@ const Tt = {
|
|
|
4980
5016
|
)
|
|
4981
5017
|
}
|
|
4982
5018
|
),
|
|
4983
|
-
/* @__PURE__ */
|
|
5019
|
+
/* @__PURE__ */ d(
|
|
4984
5020
|
"div",
|
|
4985
5021
|
{
|
|
4986
5022
|
style: {
|
|
@@ -4991,8 +5027,8 @@ const Tt = {
|
|
|
4991
5027
|
borderTop: "1px solid var(--sa-border-subtle)"
|
|
4992
5028
|
},
|
|
4993
5029
|
children: [
|
|
4994
|
-
/* @__PURE__ */ e(
|
|
4995
|
-
/* @__PURE__ */ e(
|
|
5030
|
+
/* @__PURE__ */ e(N, { size: "sm", secondary: !0, onClick: () => Z(!1), children: "Cancel" }),
|
|
5031
|
+
/* @__PURE__ */ e(N, { size: "sm", primary: !0, onClick: le, children: "Crop" })
|
|
4996
5032
|
]
|
|
4997
5033
|
}
|
|
4998
5034
|
)
|
|
@@ -5007,7 +5043,7 @@ const Tt = {
|
|
|
5007
5043
|
}
|
|
5008
5044
|
);
|
|
5009
5045
|
}
|
|
5010
|
-
),
|
|
5046
|
+
), qi = ({
|
|
5011
5047
|
size: t = "md",
|
|
5012
5048
|
direction: r = "vertical",
|
|
5013
5049
|
requiredTitle: i = "(Required)",
|
|
@@ -5015,9 +5051,9 @@ const Tt = {
|
|
|
5015
5051
|
required: n = !1,
|
|
5016
5052
|
...l
|
|
5017
5053
|
}) => {
|
|
5018
|
-
var h,
|
|
5054
|
+
var h, u, g;
|
|
5019
5055
|
const s = l.hideMessageError || !1, a = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
5020
|
-
return /* @__PURE__ */
|
|
5056
|
+
return /* @__PURE__ */ d(
|
|
5021
5057
|
f,
|
|
5022
5058
|
{
|
|
5023
5059
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -5028,36 +5064,36 @@ const Tt = {
|
|
|
5028
5064
|
O,
|
|
5029
5065
|
{
|
|
5030
5066
|
condition: !!n,
|
|
5031
|
-
fallback: /* @__PURE__ */
|
|
5067
|
+
fallback: /* @__PURE__ */ d(
|
|
5032
5068
|
f,
|
|
5033
5069
|
{
|
|
5034
5070
|
direction: "column",
|
|
5035
5071
|
customMaxWidth: a,
|
|
5036
5072
|
fullWidth: o,
|
|
5037
5073
|
children: [
|
|
5038
|
-
/* @__PURE__ */ e(
|
|
5039
|
-
/* @__PURE__ */ e(
|
|
5074
|
+
/* @__PURE__ */ e(j, { children: l.title }),
|
|
5075
|
+
/* @__PURE__ */ e(x, { fontSize: t, color: "gray-500", children: l.description })
|
|
5040
5076
|
]
|
|
5041
5077
|
}
|
|
5042
5078
|
),
|
|
5043
|
-
children: /* @__PURE__ */
|
|
5079
|
+
children: /* @__PURE__ */ d(
|
|
5044
5080
|
f,
|
|
5045
5081
|
{
|
|
5046
5082
|
direction: "column",
|
|
5047
5083
|
customMaxWidth: a,
|
|
5048
5084
|
fullWidth: o,
|
|
5049
5085
|
children: [
|
|
5050
|
-
/* @__PURE__ */
|
|
5051
|
-
/* @__PURE__ */ e(
|
|
5052
|
-
/* @__PURE__ */ e(
|
|
5086
|
+
/* @__PURE__ */ d(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
5087
|
+
/* @__PURE__ */ e(j, { fontSize: t, children: l.title }),
|
|
5088
|
+
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
5053
5089
|
/* @__PURE__ */ e(O, { condition: !!((h = l.tooltip) != null && h.label), children: /* @__PURE__ */ e(
|
|
5054
5090
|
me,
|
|
5055
5091
|
{
|
|
5056
|
-
label: (
|
|
5092
|
+
label: (u = l.tooltip) == null ? void 0 : u.label,
|
|
5057
5093
|
arrowPosition: (g = l.tooltip) == null ? void 0 : g.arrowPosition,
|
|
5058
5094
|
...l.tooltip,
|
|
5059
5095
|
children: /* @__PURE__ */ e(
|
|
5060
|
-
|
|
5096
|
+
D,
|
|
5061
5097
|
{
|
|
5062
5098
|
name: "InfoCircle",
|
|
5063
5099
|
size: t === "lg" ? "sm" : "xs",
|
|
@@ -5070,20 +5106,20 @@ const Tt = {
|
|
|
5070
5106
|
}
|
|
5071
5107
|
) })
|
|
5072
5108
|
] }),
|
|
5073
|
-
/* @__PURE__ */ e(O, { condition: !!l.description, children: /* @__PURE__ */ e(
|
|
5109
|
+
/* @__PURE__ */ e(O, { condition: !!l.description, children: /* @__PURE__ */ e(x, { fontSize: t, color: "gray-500", children: l.description }) })
|
|
5074
5110
|
]
|
|
5075
5111
|
}
|
|
5076
5112
|
)
|
|
5077
5113
|
}
|
|
5078
5114
|
),
|
|
5079
|
-
/* @__PURE__ */
|
|
5115
|
+
/* @__PURE__ */ d(_, { direction: "column", gap: "xs", children: [
|
|
5080
5116
|
/* @__PURE__ */ e(Gi, { ...l.inputProps }),
|
|
5081
|
-
!s && l.errorMessage && /* @__PURE__ */ e(
|
|
5117
|
+
!s && l.errorMessage && /* @__PURE__ */ e(De, { message: l.errorMessage })
|
|
5082
5118
|
] })
|
|
5083
5119
|
]
|
|
5084
5120
|
}
|
|
5085
5121
|
);
|
|
5086
|
-
},
|
|
5122
|
+
}, Ui = ({
|
|
5087
5123
|
size: t = "md",
|
|
5088
5124
|
direction: r = "vertical",
|
|
5089
5125
|
requiredTitle: i = "(Required)",
|
|
@@ -5092,7 +5128,7 @@ const Tt = {
|
|
|
5092
5128
|
}) => {
|
|
5093
5129
|
var s, a, h;
|
|
5094
5130
|
const l = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
5095
|
-
return /* @__PURE__ */
|
|
5131
|
+
return /* @__PURE__ */ d(
|
|
5096
5132
|
f,
|
|
5097
5133
|
{
|
|
5098
5134
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -5103,28 +5139,28 @@ const Tt = {
|
|
|
5103
5139
|
O,
|
|
5104
5140
|
{
|
|
5105
5141
|
condition: !!n.inputProps.required,
|
|
5106
|
-
fallback: /* @__PURE__ */
|
|
5142
|
+
fallback: /* @__PURE__ */ d(
|
|
5107
5143
|
f,
|
|
5108
5144
|
{
|
|
5109
5145
|
direction: "column",
|
|
5110
5146
|
customMaxWidth: l,
|
|
5111
5147
|
fullWidth: o,
|
|
5112
5148
|
children: [
|
|
5113
|
-
/* @__PURE__ */ e(
|
|
5114
|
-
/* @__PURE__ */ e(
|
|
5149
|
+
/* @__PURE__ */ e(j, { children: n.title }),
|
|
5150
|
+
/* @__PURE__ */ e(x, { fontSize: t, color: "gray-500", children: n.description })
|
|
5115
5151
|
]
|
|
5116
5152
|
}
|
|
5117
5153
|
),
|
|
5118
|
-
children: /* @__PURE__ */
|
|
5154
|
+
children: /* @__PURE__ */ d(
|
|
5119
5155
|
f,
|
|
5120
5156
|
{
|
|
5121
5157
|
direction: "column",
|
|
5122
5158
|
customMaxWidth: l,
|
|
5123
5159
|
fullWidth: o,
|
|
5124
5160
|
children: [
|
|
5125
|
-
/* @__PURE__ */
|
|
5126
|
-
/* @__PURE__ */ e(
|
|
5127
|
-
/* @__PURE__ */ e(
|
|
5161
|
+
/* @__PURE__ */ d(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
5162
|
+
/* @__PURE__ */ e(j, { fontSize: t, children: n.title }),
|
|
5163
|
+
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
5128
5164
|
/* @__PURE__ */ e(O, { condition: !!((s = n.tooltip) != null && s.label), children: /* @__PURE__ */ e(
|
|
5129
5165
|
me,
|
|
5130
5166
|
{
|
|
@@ -5132,7 +5168,7 @@ const Tt = {
|
|
|
5132
5168
|
arrowPosition: (h = n.tooltip) == null ? void 0 : h.arrowPosition,
|
|
5133
5169
|
...n.tooltip,
|
|
5134
5170
|
children: /* @__PURE__ */ e(
|
|
5135
|
-
|
|
5171
|
+
D,
|
|
5136
5172
|
{
|
|
5137
5173
|
name: "InfoCircle",
|
|
5138
5174
|
size: t === "lg" ? "sm" : "xs",
|
|
@@ -5145,7 +5181,7 @@ const Tt = {
|
|
|
5145
5181
|
}
|
|
5146
5182
|
) })
|
|
5147
5183
|
] }),
|
|
5148
|
-
/* @__PURE__ */ e(O, { condition: !!n.description, children: /* @__PURE__ */ e(
|
|
5184
|
+
/* @__PURE__ */ e(O, { condition: !!n.description, children: /* @__PURE__ */ e(x, { fontSize: t, color: "gray-500", children: n.description }) })
|
|
5149
5185
|
]
|
|
5150
5186
|
}
|
|
5151
5187
|
)
|
|
@@ -5165,10 +5201,10 @@ const Tt = {
|
|
|
5165
5201
|
}) => {
|
|
5166
5202
|
var g;
|
|
5167
5203
|
const [s, a] = k([]);
|
|
5168
|
-
|
|
5204
|
+
$(() => {
|
|
5169
5205
|
t && a([...t.map((m) => ({ id: m.id, isActive: m.isActive }))]);
|
|
5170
5206
|
}, [t]);
|
|
5171
|
-
const h = (g = s.find((m) => m.id === r)) == null ? void 0 : g.isActive,
|
|
5207
|
+
const h = (g = s.find((m) => m.id === r)) == null ? void 0 : g.isActive, u = ve(() => {
|
|
5172
5208
|
a(
|
|
5173
5209
|
(m) => m.map((y) => y.id === r ? { ...y, isActive: !y.isActive } : y)
|
|
5174
5210
|
), i && i(!h);
|
|
@@ -5182,11 +5218,11 @@ const Tt = {
|
|
|
5182
5218
|
width: o
|
|
5183
5219
|
},
|
|
5184
5220
|
children: n && /* @__PURE__ */ e(
|
|
5185
|
-
|
|
5221
|
+
qt,
|
|
5186
5222
|
{
|
|
5187
5223
|
disabled: l,
|
|
5188
5224
|
checked: h,
|
|
5189
|
-
onChange:
|
|
5225
|
+
onChange: u,
|
|
5190
5226
|
label: h ? "Active" : "Inactive"
|
|
5191
5227
|
}
|
|
5192
5228
|
)
|
|
@@ -5197,21 +5233,21 @@ const Tt = {
|
|
|
5197
5233
|
InputDropdown: ki,
|
|
5198
5234
|
InputSingleFile: Ri,
|
|
5199
5235
|
CheckBoxOptions: Vi,
|
|
5200
|
-
RadioOptions:
|
|
5201
|
-
InputTextArea:
|
|
5236
|
+
RadioOptions: Ti,
|
|
5237
|
+
InputTextArea: Ni,
|
|
5202
5238
|
ToggleForm: Oi,
|
|
5203
5239
|
ActionButton: _i,
|
|
5204
5240
|
FormTitle: ji,
|
|
5205
5241
|
InputDate: Zi,
|
|
5206
|
-
InputImgFile:
|
|
5207
|
-
Custom:
|
|
5242
|
+
InputImgFile: qi,
|
|
5243
|
+
Custom: Ui
|
|
5208
5244
|
}, Ji = ({ customBottom: t }) => {
|
|
5209
5245
|
const [r, i] = k(!1), o = () => {
|
|
5210
5246
|
window.scrollY > window.screenY ? i(!0) : i(!1);
|
|
5211
5247
|
}, n = () => {
|
|
5212
5248
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
5213
5249
|
};
|
|
5214
|
-
return
|
|
5250
|
+
return $(() => (window.addEventListener("scroll", o), () => {
|
|
5215
5251
|
window.removeEventListener("scroll", o);
|
|
5216
5252
|
}), []), /* @__PURE__ */ e(
|
|
5217
5253
|
f,
|
|
@@ -5232,14 +5268,14 @@ const Tt = {
|
|
|
5232
5268
|
transition: "transform 0.2s ease-in-out"
|
|
5233
5269
|
},
|
|
5234
5270
|
children: /* @__PURE__ */ e(
|
|
5235
|
-
|
|
5271
|
+
N,
|
|
5236
5272
|
{
|
|
5237
5273
|
secondary: !0,
|
|
5238
5274
|
size: "xs",
|
|
5239
5275
|
onClick: n,
|
|
5240
5276
|
type: "button",
|
|
5241
5277
|
iconLeft: /* @__PURE__ */ e(
|
|
5242
|
-
|
|
5278
|
+
D,
|
|
5243
5279
|
{
|
|
5244
5280
|
width: 16,
|
|
5245
5281
|
size: "xs",
|
|
@@ -5257,7 +5293,7 @@ const Tt = {
|
|
|
5257
5293
|
);
|
|
5258
5294
|
}, Co = ({ pageLayout: t, children: r, wrapperProps: i, containerProps: o }) => {
|
|
5259
5295
|
const n = ne("md"), l = (o == null ? void 0 : o.customWidth) ?? 264;
|
|
5260
|
-
return /* @__PURE__ */
|
|
5296
|
+
return /* @__PURE__ */ d(
|
|
5261
5297
|
f,
|
|
5262
5298
|
{
|
|
5263
5299
|
display: "block",
|
|
@@ -5299,7 +5335,7 @@ const Tt = {
|
|
|
5299
5335
|
withScrollToTopButton: r = !1,
|
|
5300
5336
|
scrollToTopButtonProps: i,
|
|
5301
5337
|
containerProps: o
|
|
5302
|
-
}) => /* @__PURE__ */ e(f, { position: "absolute", width: "width-full", style: { zIndex: "var(--app-footer-zindex, 999)" }, children: /* @__PURE__ */
|
|
5338
|
+
}) => /* @__PURE__ */ e(f, { position: "absolute", width: "width-full", style: { zIndex: "var(--app-footer-zindex, 999)" }, children: /* @__PURE__ */ d(
|
|
5303
5339
|
f,
|
|
5304
5340
|
{
|
|
5305
5341
|
position: "fixed",
|
|
@@ -5330,24 +5366,24 @@ const Tt = {
|
|
|
5330
5366
|
t
|
|
5331
5367
|
]
|
|
5332
5368
|
}
|
|
5333
|
-
) }),
|
|
5369
|
+
) }), bo = ({ fields: t }) => /* @__PURE__ */ e(f, { display: "flex", direction: "column", gap: "lg", children: /* @__PURE__ */ e(
|
|
5334
5370
|
Ct,
|
|
5335
5371
|
{
|
|
5336
5372
|
of: t,
|
|
5337
5373
|
render: (r, i) => /* @__PURE__ */ e(Pi, { ...r }, i)
|
|
5338
5374
|
}
|
|
5339
|
-
) }), Pi = ({ title: t, value: r, icon: i }) => /* @__PURE__ */
|
|
5340
|
-
i ? /* @__PURE__ */
|
|
5341
|
-
/* @__PURE__ */ e(
|
|
5342
|
-
/* @__PURE__ */ e(
|
|
5343
|
-
] }) : /* @__PURE__ */ e(
|
|
5344
|
-
typeof r == "string" ? /* @__PURE__ */ e(
|
|
5375
|
+
) }), Pi = ({ title: t, value: r, icon: i }) => /* @__PURE__ */ d(f, { display: "flex", direction: "column", gap: "sm", children: [
|
|
5376
|
+
i ? /* @__PURE__ */ d(f, { display: "flex", direction: "row", align: "center", gap: "xs", children: [
|
|
5377
|
+
/* @__PURE__ */ e(D, { name: i, color: "subtle" }),
|
|
5378
|
+
/* @__PURE__ */ e(x, { color: "gray-500", variant: "sub-h3", children: t })
|
|
5379
|
+
] }) : /* @__PURE__ */ e(x, { color: "gray-500", variant: "sub-h3", children: t }),
|
|
5380
|
+
typeof r == "string" ? /* @__PURE__ */ e(x, { variant: "sub-h3", children: r }) : r
|
|
5345
5381
|
] }), Y = {
|
|
5346
5382
|
silhouette: "#A7B0AC",
|
|
5347
5383
|
accent: "#78867F"
|
|
5348
5384
|
};
|
|
5349
5385
|
function Qi({ width: t, height: r }) {
|
|
5350
|
-
return /* @__PURE__ */ e(
|
|
5386
|
+
return /* @__PURE__ */ e(q, { children: /* @__PURE__ */ d(
|
|
5351
5387
|
"svg",
|
|
5352
5388
|
{
|
|
5353
5389
|
width: t || "100",
|
|
@@ -5489,7 +5525,7 @@ function Qi({ width: t, height: r }) {
|
|
|
5489
5525
|
}
|
|
5490
5526
|
) });
|
|
5491
5527
|
}
|
|
5492
|
-
const
|
|
5528
|
+
const Do = ({
|
|
5493
5529
|
title: t = "create",
|
|
5494
5530
|
children: r,
|
|
5495
5531
|
onClickAction: i,
|
|
@@ -5499,15 +5535,15 @@ const bo = ({
|
|
|
5499
5535
|
showButton: s = !0,
|
|
5500
5536
|
customHeight: a,
|
|
5501
5537
|
childrenButton: h,
|
|
5502
|
-
customIcon:
|
|
5538
|
+
customIcon: u
|
|
5503
5539
|
}) => {
|
|
5504
5540
|
const g = () => {
|
|
5505
5541
|
switch (o) {
|
|
5506
5542
|
case "primary":
|
|
5507
|
-
return /* @__PURE__ */ e(
|
|
5543
|
+
return /* @__PURE__ */ e(q, { children: l ? /* @__PURE__ */ e(N, { primary: !0, iconLeft: l, onClick: i, children: h || t }) : /* @__PURE__ */ e(N, { primary: !0, onClick: i, children: h || t }) });
|
|
5508
5544
|
case "secondary":
|
|
5509
|
-
return /* @__PURE__ */ e(
|
|
5510
|
-
|
|
5545
|
+
return /* @__PURE__ */ e(q, { children: l ? /* @__PURE__ */ e(N, { secondary: !0, iconLeft: l, onClick: i, children: n ? /* @__PURE__ */ e(
|
|
5546
|
+
x,
|
|
5511
5547
|
{
|
|
5512
5548
|
fontFamily: "Poppins",
|
|
5513
5549
|
fontSize: "md",
|
|
@@ -5515,14 +5551,14 @@ const bo = ({
|
|
|
5515
5551
|
style: { color: "var(--sa-background-success, #28ac6e)" },
|
|
5516
5552
|
children: h || t
|
|
5517
5553
|
}
|
|
5518
|
-
) : t }) : /* @__PURE__ */ e(
|
|
5554
|
+
) : t }) : /* @__PURE__ */ e(N, { secondary: !0, onClick: i, children: h || t }) });
|
|
5519
5555
|
case "success":
|
|
5520
|
-
return /* @__PURE__ */ e(
|
|
5556
|
+
return /* @__PURE__ */ e(q, { children: l ? /* @__PURE__ */ e(N, { success: !0, iconLeft: l, onClick: i, children: h || t }) : /* @__PURE__ */ e(N, { success: !0, onClick: i, children: h || t }) });
|
|
5521
5557
|
default:
|
|
5522
|
-
return /* @__PURE__ */ e(
|
|
5558
|
+
return /* @__PURE__ */ e(q, { children: l ? /* @__PURE__ */ e(N, { primary: !0, iconLeft: l, onClick: i, children: h || t }) : /* @__PURE__ */ e(N, { primary: !0, onClick: i, children: h || t }) });
|
|
5523
5559
|
}
|
|
5524
5560
|
};
|
|
5525
|
-
return /* @__PURE__ */
|
|
5561
|
+
return /* @__PURE__ */ d(
|
|
5526
5562
|
f,
|
|
5527
5563
|
{
|
|
5528
5564
|
height: "height-full",
|
|
@@ -5534,7 +5570,7 @@ const bo = ({
|
|
|
5534
5570
|
marginBlock: "auto",
|
|
5535
5571
|
customHeight: a,
|
|
5536
5572
|
children: [
|
|
5537
|
-
|
|
5573
|
+
u || /* @__PURE__ */ e(Qi, {}),
|
|
5538
5574
|
/* @__PURE__ */ e(f, { children: r.map((m, y) => /* @__PURE__ */ e(
|
|
5539
5575
|
pe.Body1,
|
|
5540
5576
|
{
|
|
@@ -5561,7 +5597,7 @@ const bo = ({
|
|
|
5561
5597
|
cFFFFFF: "#FFFFFF"
|
|
5562
5598
|
};
|
|
5563
5599
|
function Yi({ width: t, height: r }) {
|
|
5564
|
-
return /* @__PURE__ */ e(
|
|
5600
|
+
return /* @__PURE__ */ e(q, { children: /* @__PURE__ */ d(
|
|
5565
5601
|
"svg",
|
|
5566
5602
|
{
|
|
5567
5603
|
width: t,
|
|
@@ -5765,7 +5801,7 @@ function Yi({ width: t, height: r }) {
|
|
|
5765
5801
|
}
|
|
5766
5802
|
function wo({ onClick: t }) {
|
|
5767
5803
|
const r = ne("md");
|
|
5768
|
-
return /* @__PURE__ */
|
|
5804
|
+
return /* @__PURE__ */ d(
|
|
5769
5805
|
f,
|
|
5770
5806
|
{
|
|
5771
5807
|
height: "height-screen",
|
|
@@ -5777,7 +5813,7 @@ function wo({ onClick: t }) {
|
|
|
5777
5813
|
children: [
|
|
5778
5814
|
/* @__PURE__ */ e(Yi, { width: r ? 600 : 300 }),
|
|
5779
5815
|
/* @__PURE__ */ e(
|
|
5780
|
-
|
|
5816
|
+
x,
|
|
5781
5817
|
{
|
|
5782
5818
|
fontWeight: "bold",
|
|
5783
5819
|
fontSize: r ? "3xl" : "2xl",
|
|
@@ -5786,7 +5822,7 @@ function wo({ onClick: t }) {
|
|
|
5786
5822
|
}
|
|
5787
5823
|
),
|
|
5788
5824
|
/* @__PURE__ */ e(
|
|
5789
|
-
|
|
5825
|
+
x,
|
|
5790
5826
|
{
|
|
5791
5827
|
fontWeight: "semibold",
|
|
5792
5828
|
fontSize: r ? "lg" : "md",
|
|
@@ -5794,12 +5830,12 @@ function wo({ onClick: t }) {
|
|
|
5794
5830
|
children: "Sorry, we couldn't find the page you are looking for"
|
|
5795
5831
|
}
|
|
5796
5832
|
),
|
|
5797
|
-
t && /* @__PURE__ */ e(
|
|
5833
|
+
t && /* @__PURE__ */ e(N, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
|
|
5798
5834
|
]
|
|
5799
5835
|
}
|
|
5800
5836
|
);
|
|
5801
5837
|
}
|
|
5802
|
-
const
|
|
5838
|
+
const z = {
|
|
5803
5839
|
c46F16B: "#46F16B",
|
|
5804
5840
|
c48504C: "#48504C",
|
|
5805
5841
|
c64B5F6: "#64B5F6",
|
|
@@ -5821,7 +5857,7 @@ const A = {
|
|
|
5821
5857
|
cFFFFFF: "#FFFFFF"
|
|
5822
5858
|
};
|
|
5823
5859
|
function Xi({ width: t, height: r }) {
|
|
5824
|
-
return /* @__PURE__ */ e(
|
|
5860
|
+
return /* @__PURE__ */ e(q, { children: /* @__PURE__ */ d(
|
|
5825
5861
|
"svg",
|
|
5826
5862
|
{
|
|
5827
5863
|
width: t,
|
|
@@ -5830,24 +5866,24 @@ function Xi({ width: t, height: r }) {
|
|
|
5830
5866
|
fill: "none",
|
|
5831
5867
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5832
5868
|
children: [
|
|
5833
|
-
/* @__PURE__ */ e("rect", { x: "228", y: "55.5", width: "55", height: "20", fill:
|
|
5869
|
+
/* @__PURE__ */ e("rect", { x: "228", y: "55.5", width: "55", height: "20", fill: z.cD6EBFD }),
|
|
5834
5870
|
/* @__PURE__ */ e(
|
|
5835
5871
|
"path",
|
|
5836
5872
|
{
|
|
5837
5873
|
fillRule: "evenodd",
|
|
5838
5874
|
clipRule: "evenodd",
|
|
5839
5875
|
d: "M75 238.124V197.28L163.523 63.5H217.029V194.32H240V238.124H217.029V252.5H169.126V238.124H75ZM125.424 194.32L172.487 119.143V194.32H125.424Z",
|
|
5840
|
-
fill:
|
|
5876
|
+
fill: z.cBBDEFB,
|
|
5841
5877
|
fillOpacity: "0.6"
|
|
5842
5878
|
}
|
|
5843
5879
|
),
|
|
5844
|
-
/* @__PURE__ */
|
|
5880
|
+
/* @__PURE__ */ d("g", { clipPath: "url(#clip0_2949_9690)", children: [
|
|
5845
5881
|
/* @__PURE__ */ e(
|
|
5846
5882
|
"path",
|
|
5847
5883
|
{
|
|
5848
5884
|
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",
|
|
5849
|
-
fill:
|
|
5850
|
-
stroke:
|
|
5885
|
+
fill: z.cEFF3F8,
|
|
5886
|
+
stroke: z.c67AEE6,
|
|
5851
5887
|
strokeWidth: "5"
|
|
5852
5888
|
}
|
|
5853
5889
|
),
|
|
@@ -5855,68 +5891,68 @@ function Xi({ width: t, height: r }) {
|
|
|
5855
5891
|
"path",
|
|
5856
5892
|
{
|
|
5857
5893
|
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",
|
|
5858
|
-
fill:
|
|
5894
|
+
fill: z.cD5C7BD
|
|
5859
5895
|
}
|
|
5860
5896
|
),
|
|
5861
5897
|
/* @__PURE__ */ e(
|
|
5862
5898
|
"path",
|
|
5863
5899
|
{
|
|
5864
5900
|
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",
|
|
5865
|
-
fill:
|
|
5901
|
+
fill: z.cCABEB1
|
|
5866
5902
|
}
|
|
5867
5903
|
),
|
|
5868
5904
|
/* @__PURE__ */ e(
|
|
5869
5905
|
"path",
|
|
5870
5906
|
{
|
|
5871
5907
|
d: "M287.68 218.884L289.354 213.022H378.961L381.473 218.884H287.68Z",
|
|
5872
|
-
fill:
|
|
5908
|
+
fill: z.cC0B2A2
|
|
5873
5909
|
}
|
|
5874
5910
|
),
|
|
5875
5911
|
/* @__PURE__ */ e(
|
|
5876
5912
|
"path",
|
|
5877
5913
|
{
|
|
5878
5914
|
d: "M381.944 218.803L381.58 212.266H386.385L386.022 218.803H381.944Z",
|
|
5879
|
-
fill:
|
|
5880
|
-
stroke:
|
|
5915
|
+
fill: z.c956847,
|
|
5916
|
+
stroke: z.c48504C
|
|
5881
5917
|
}
|
|
5882
5918
|
),
|
|
5883
5919
|
/* @__PURE__ */ e(
|
|
5884
5920
|
"path",
|
|
5885
5921
|
{
|
|
5886
5922
|
d: "M283.124 218.803L282.768 213.104H287.565L287.209 218.803H283.124Z",
|
|
5887
|
-
fill:
|
|
5888
|
-
stroke:
|
|
5923
|
+
fill: z.c956847,
|
|
5924
|
+
stroke: z.c48504C
|
|
5889
5925
|
}
|
|
5890
5926
|
),
|
|
5891
5927
|
/* @__PURE__ */ e(
|
|
5892
5928
|
"path",
|
|
5893
5929
|
{
|
|
5894
5930
|
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",
|
|
5895
|
-
fill:
|
|
5896
|
-
stroke:
|
|
5931
|
+
fill: z.cC8CEF4,
|
|
5932
|
+
stroke: z.c48504C
|
|
5897
5933
|
}
|
|
5898
5934
|
),
|
|
5899
5935
|
/* @__PURE__ */ e(
|
|
5900
5936
|
"path",
|
|
5901
5937
|
{
|
|
5902
5938
|
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",
|
|
5903
|
-
fill:
|
|
5904
|
-
stroke:
|
|
5939
|
+
fill: z.cC8CEF4,
|
|
5940
|
+
stroke: z.c48504C
|
|
5905
5941
|
}
|
|
5906
5942
|
),
|
|
5907
5943
|
/* @__PURE__ */ e(
|
|
5908
5944
|
"path",
|
|
5909
5945
|
{
|
|
5910
5946
|
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",
|
|
5911
|
-
fill:
|
|
5912
|
-
stroke:
|
|
5947
|
+
fill: z.cC8CEF4,
|
|
5948
|
+
stroke: z.c48504C
|
|
5913
5949
|
}
|
|
5914
5950
|
),
|
|
5915
5951
|
/* @__PURE__ */ e(
|
|
5916
5952
|
"path",
|
|
5917
5953
|
{
|
|
5918
5954
|
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",
|
|
5919
|
-
fill:
|
|
5955
|
+
fill: z.cBBC3F5
|
|
5920
5956
|
}
|
|
5921
5957
|
),
|
|
5922
5958
|
/* @__PURE__ */ e(
|
|
@@ -5933,52 +5969,52 @@ function Xi({ width: t, height: r }) {
|
|
|
5933
5969
|
"path",
|
|
5934
5970
|
{
|
|
5935
5971
|
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",
|
|
5936
|
-
fill:
|
|
5972
|
+
fill: z.cFFFFFF
|
|
5937
5973
|
}
|
|
5938
5974
|
)
|
|
5939
5975
|
}
|
|
5940
5976
|
),
|
|
5941
|
-
/* @__PURE__ */
|
|
5977
|
+
/* @__PURE__ */ d("g", { mask: "url(#mask0_2949_9690)", children: [
|
|
5942
5978
|
/* @__PURE__ */ e(
|
|
5943
5979
|
"path",
|
|
5944
5980
|
{
|
|
5945
5981
|
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",
|
|
5946
|
-
fill:
|
|
5982
|
+
fill: z.cFFFFFF
|
|
5947
5983
|
}
|
|
5948
5984
|
),
|
|
5949
5985
|
/* @__PURE__ */ e(
|
|
5950
5986
|
"path",
|
|
5951
5987
|
{
|
|
5952
5988
|
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",
|
|
5953
|
-
fill:
|
|
5989
|
+
fill: z.cD6D6D6
|
|
5954
5990
|
}
|
|
5955
5991
|
),
|
|
5956
5992
|
/* @__PURE__ */ e(
|
|
5957
5993
|
"path",
|
|
5958
5994
|
{
|
|
5959
5995
|
d: "M368.673 152.523H301.336V174.5H368.673V152.523Z",
|
|
5960
|
-
fill:
|
|
5996
|
+
fill: z.cF4F4F4
|
|
5961
5997
|
}
|
|
5962
5998
|
),
|
|
5963
5999
|
/* @__PURE__ */ e(
|
|
5964
6000
|
"path",
|
|
5965
6001
|
{
|
|
5966
6002
|
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",
|
|
5967
|
-
fill:
|
|
6003
|
+
fill: z.cEE8080
|
|
5968
6004
|
}
|
|
5969
6005
|
),
|
|
5970
6006
|
/* @__PURE__ */ e(
|
|
5971
6007
|
"path",
|
|
5972
6008
|
{
|
|
5973
6009
|
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",
|
|
5974
|
-
fill:
|
|
6010
|
+
fill: z.cE5EE80
|
|
5975
6011
|
}
|
|
5976
6012
|
),
|
|
5977
6013
|
/* @__PURE__ */ e(
|
|
5978
6014
|
"path",
|
|
5979
6015
|
{
|
|
5980
6016
|
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",
|
|
5981
|
-
fill:
|
|
6017
|
+
fill: z.c46F16B
|
|
5982
6018
|
}
|
|
5983
6019
|
)
|
|
5984
6020
|
] }),
|
|
@@ -5986,14 +6022,14 @@ function Xi({ width: t, height: r }) {
|
|
|
5986
6022
|
"path",
|
|
5987
6023
|
{
|
|
5988
6024
|
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",
|
|
5989
|
-
stroke:
|
|
6025
|
+
stroke: z.c48504C
|
|
5990
6026
|
}
|
|
5991
6027
|
),
|
|
5992
6028
|
/* @__PURE__ */ e(
|
|
5993
6029
|
"path",
|
|
5994
6030
|
{
|
|
5995
6031
|
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",
|
|
5996
|
-
stroke:
|
|
6032
|
+
stroke: z.c86512B,
|
|
5997
6033
|
strokeWidth: "2",
|
|
5998
6034
|
strokeLinecap: "round"
|
|
5999
6035
|
}
|
|
@@ -6003,21 +6039,21 @@ function Xi({ width: t, height: r }) {
|
|
|
6003
6039
|
"path",
|
|
6004
6040
|
{
|
|
6005
6041
|
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",
|
|
6006
|
-
fill:
|
|
6042
|
+
fill: z.cBBDEFB,
|
|
6007
6043
|
fillOpacity: "0.6"
|
|
6008
6044
|
}
|
|
6009
6045
|
),
|
|
6010
|
-
/* @__PURE__ */ e("rect", { x: "43", y: "87.5", width: "46", height: "20", fill:
|
|
6011
|
-
/* @__PURE__ */ e("rect", { x: "29", y: "109.5", width: "46", height: "20", fill:
|
|
6012
|
-
/* @__PURE__ */ e("rect", { x: "29", y: "65.5", width: "46", height: "20", fill:
|
|
6013
|
-
/* @__PURE__ */ e("rect", { x: "356", y: "0.5", width: "55", height: "20", fill:
|
|
6014
|
-
/* @__PURE__ */ e("rect", { x: "572", y: "142.5", width: "55", height: "20", fill:
|
|
6015
|
-
/* @__PURE__ */ e("rect", { x: "589", y: "120.5", width: "55", height: "20", fill:
|
|
6046
|
+
/* @__PURE__ */ e("rect", { x: "43", y: "87.5", width: "46", height: "20", fill: z.cD6EBFD }),
|
|
6047
|
+
/* @__PURE__ */ e("rect", { x: "29", y: "109.5", width: "46", height: "20", fill: z.cD6EBFD }),
|
|
6048
|
+
/* @__PURE__ */ e("rect", { x: "29", y: "65.5", width: "46", height: "20", fill: z.cD6EBFD }),
|
|
6049
|
+
/* @__PURE__ */ e("rect", { x: "356", y: "0.5", width: "55", height: "20", fill: z.cD6EBFD }),
|
|
6050
|
+
/* @__PURE__ */ e("rect", { x: "572", y: "142.5", width: "55", height: "20", fill: z.cD6EBFD }),
|
|
6051
|
+
/* @__PURE__ */ e("rect", { x: "589", y: "120.5", width: "55", height: "20", fill: z.cD6EBFD }),
|
|
6016
6052
|
/* @__PURE__ */ e(
|
|
6017
6053
|
"path",
|
|
6018
6054
|
{
|
|
6019
6055
|
d: "M3 255.5L651 255.5",
|
|
6020
|
-
stroke:
|
|
6056
|
+
stroke: z.c64B5F6,
|
|
6021
6057
|
strokeWidth: "5",
|
|
6022
6058
|
strokeLinecap: "round"
|
|
6023
6059
|
}
|
|
@@ -6027,7 +6063,7 @@ function Xi({ width: t, height: r }) {
|
|
|
6027
6063
|
{
|
|
6028
6064
|
width: "179",
|
|
6029
6065
|
height: "192",
|
|
6030
|
-
fill:
|
|
6066
|
+
fill: z.cFFFFFF,
|
|
6031
6067
|
transform: "translate(246 60.5)"
|
|
6032
6068
|
}
|
|
6033
6069
|
) }) })
|
|
@@ -6037,7 +6073,7 @@ function Xi({ width: t, height: r }) {
|
|
|
6037
6073
|
}
|
|
6038
6074
|
function ko({ onClick: t }) {
|
|
6039
6075
|
const r = ne("md");
|
|
6040
|
-
return /* @__PURE__ */
|
|
6076
|
+
return /* @__PURE__ */ d(
|
|
6041
6077
|
f,
|
|
6042
6078
|
{
|
|
6043
6079
|
height: "height-screen",
|
|
@@ -6048,8 +6084,8 @@ function ko({ onClick: t }) {
|
|
|
6048
6084
|
gap: "md",
|
|
6049
6085
|
children: [
|
|
6050
6086
|
/* @__PURE__ */ e(Xi, { width: r ? 600 : 300 }),
|
|
6051
|
-
/* @__PURE__ */ e(
|
|
6052
|
-
t && /* @__PURE__ */ e(
|
|
6087
|
+
/* @__PURE__ */ e(x, { fontWeight: "bold", fontSize: r ? "3xl" : "2xl", children: "We Are Sorry ..." }),
|
|
6088
|
+
t && /* @__PURE__ */ e(N, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
|
|
6053
6089
|
]
|
|
6054
6090
|
}
|
|
6055
6091
|
);
|
|
@@ -6072,7 +6108,7 @@ const c = {
|
|
|
6072
6108
|
cFFFFFF: "#FFFFFF"
|
|
6073
6109
|
};
|
|
6074
6110
|
function Ki({ width: t, height: r }) {
|
|
6075
|
-
return /* @__PURE__ */ e(
|
|
6111
|
+
return /* @__PURE__ */ e(q, { children: /* @__PURE__ */ d(
|
|
6076
6112
|
"svg",
|
|
6077
6113
|
{
|
|
6078
6114
|
width: t,
|
|
@@ -6745,7 +6781,7 @@ function Ki({ width: t, height: r }) {
|
|
|
6745
6781
|
}
|
|
6746
6782
|
function So({ onClick: t }) {
|
|
6747
6783
|
const r = ne("md");
|
|
6748
|
-
return /* @__PURE__ */
|
|
6784
|
+
return /* @__PURE__ */ d(
|
|
6749
6785
|
f,
|
|
6750
6786
|
{
|
|
6751
6787
|
height: "height-screen",
|
|
@@ -6758,7 +6794,7 @@ function So({ onClick: t }) {
|
|
|
6758
6794
|
children: [
|
|
6759
6795
|
/* @__PURE__ */ e(Ki, { width: r ? 600 : 300 }),
|
|
6760
6796
|
/* @__PURE__ */ e(
|
|
6761
|
-
|
|
6797
|
+
x,
|
|
6762
6798
|
{
|
|
6763
6799
|
fontWeight: "bold",
|
|
6764
6800
|
fontSize: r ? "3xl" : "2xl",
|
|
@@ -6767,7 +6803,7 @@ function So({ onClick: t }) {
|
|
|
6767
6803
|
}
|
|
6768
6804
|
),
|
|
6769
6805
|
/* @__PURE__ */ e(
|
|
6770
|
-
|
|
6806
|
+
x,
|
|
6771
6807
|
{
|
|
6772
6808
|
fontWeight: "semibold",
|
|
6773
6809
|
fontSize: r ? "lg" : "md",
|
|
@@ -6775,7 +6811,7 @@ function So({ onClick: t }) {
|
|
|
6775
6811
|
children: "we are trying to fix the problem"
|
|
6776
6812
|
}
|
|
6777
6813
|
),
|
|
6778
|
-
t && /* @__PURE__ */ e(
|
|
6814
|
+
t && /* @__PURE__ */ e(N, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
|
|
6779
6815
|
]
|
|
6780
6816
|
}
|
|
6781
6817
|
);
|
|
@@ -6783,7 +6819,7 @@ function So({ onClick: t }) {
|
|
|
6783
6819
|
const Fo = (t) => {
|
|
6784
6820
|
var i, o, n, l, s;
|
|
6785
6821
|
const r = ne("md");
|
|
6786
|
-
return /* @__PURE__ */
|
|
6822
|
+
return /* @__PURE__ */ d(
|
|
6787
6823
|
ut,
|
|
6788
6824
|
{
|
|
6789
6825
|
isShow: t.isShow,
|
|
@@ -6796,8 +6832,8 @@ const Fo = (t) => {
|
|
|
6796
6832
|
}
|
|
6797
6833
|
},
|
|
6798
6834
|
children: [
|
|
6799
|
-
/* @__PURE__ */ e(Ot, { ...t.dialogTitleProps, children: typeof t.title == "string" ? /* @__PURE__ */ e(
|
|
6800
|
-
/* @__PURE__ */ e(ht, { children: typeof t.description == "string" ? /* @__PURE__ */ e(
|
|
6835
|
+
/* @__PURE__ */ e(Ot, { ...t.dialogTitleProps, children: typeof t.title == "string" ? /* @__PURE__ */ e(x, { fontSize: "lg", fontWeight: "medium", children: t.title }) : t.title }),
|
|
6836
|
+
/* @__PURE__ */ e(ht, { children: typeof t.description == "string" ? /* @__PURE__ */ e(x, { fontSize: "md", lineHeight: "leading-6", color: "tertiary", children: t.description }) : t.description }),
|
|
6801
6837
|
/* @__PURE__ */ e(_t, { children: /* @__PURE__ */ e(
|
|
6802
6838
|
f,
|
|
6803
6839
|
{
|
|
@@ -6805,7 +6841,7 @@ const Fo = (t) => {
|
|
|
6805
6841
|
direction: ((i = t.containerConfirmBtnProps) == null ? void 0 : i.direction) || "row",
|
|
6806
6842
|
justify: ((o = t.containerConfirmBtnProps) == null ? void 0 : o.justify) || "flex-end",
|
|
6807
6843
|
...t.containerConfirmBtnProps,
|
|
6808
|
-
children: /* @__PURE__ */
|
|
6844
|
+
children: /* @__PURE__ */ d(
|
|
6809
6845
|
f,
|
|
6810
6846
|
{
|
|
6811
6847
|
display: "flex",
|
|
@@ -6814,7 +6850,7 @@ const Fo = (t) => {
|
|
|
6814
6850
|
gap: ((s = t.wrapperConfirmBtnProps) == null ? void 0 : s.gap) || "sm",
|
|
6815
6851
|
...t.wrapperConfirmBtnProps,
|
|
6816
6852
|
children: [
|
|
6817
|
-
t.onCancel && /* @__PURE__ */ e(
|
|
6853
|
+
t.onCancel && /* @__PURE__ */ e(N, { secondary: !0, onClick: t.onCancel, size: "md", fullWidth: !0, children: t.titleCancelBtn || "Cancel" }),
|
|
6818
6854
|
/* @__PURE__ */ e(
|
|
6819
6855
|
f,
|
|
6820
6856
|
{
|
|
@@ -6823,7 +6859,7 @@ const Fo = (t) => {
|
|
|
6823
6859
|
textWrap: "nowrap"
|
|
6824
6860
|
},
|
|
6825
6861
|
children: /* @__PURE__ */ e(
|
|
6826
|
-
|
|
6862
|
+
N,
|
|
6827
6863
|
{
|
|
6828
6864
|
...t.buttonConfirmProps,
|
|
6829
6865
|
onClick: t.onConfirm,
|
|
@@ -6854,29 +6890,29 @@ const Fo = (t) => {
|
|
|
6854
6890
|
header: s,
|
|
6855
6891
|
footer: a,
|
|
6856
6892
|
title: h,
|
|
6857
|
-
titleTag:
|
|
6893
|
+
titleTag: u,
|
|
6858
6894
|
action: g,
|
|
6859
6895
|
actionContainer: m,
|
|
6860
6896
|
containerProps: y,
|
|
6861
|
-
bodyProps:
|
|
6897
|
+
bodyProps: b,
|
|
6862
6898
|
headerProps: E = { borderBottom: !0 },
|
|
6863
|
-
footerProps:
|
|
6864
|
-
variantTag:
|
|
6899
|
+
footerProps: C = { borderTop: !0 },
|
|
6900
|
+
variantTag: H = "info"
|
|
6865
6901
|
}) => {
|
|
6866
|
-
const
|
|
6867
|
-
|
|
6868
|
-
const
|
|
6869
|
-
if (
|
|
6870
|
-
const P =
|
|
6871
|
-
|
|
6902
|
+
const Z = ie(null), [T, U] = k("100vh");
|
|
6903
|
+
$(() => {
|
|
6904
|
+
const A = () => {
|
|
6905
|
+
if (Z.current) {
|
|
6906
|
+
const P = Z.current.getBoundingClientRect().top;
|
|
6907
|
+
U(`calc(100vh - ${P}px)`);
|
|
6872
6908
|
}
|
|
6873
6909
|
};
|
|
6874
|
-
return
|
|
6910
|
+
return A(), window.addEventListener("resize", A), () => window.removeEventListener("resize", A);
|
|
6875
6911
|
}, []);
|
|
6876
|
-
const M = () =>
|
|
6877
|
-
/* @__PURE__ */ e(
|
|
6878
|
-
/* @__PURE__ */ e(Le, { border: !0, text:
|
|
6879
|
-
] }) : /* @__PURE__ */ e(
|
|
6912
|
+
const M = () => u ? /* @__PURE__ */ d(f, { direction: "row", gap: "sm", align: "center", children: [
|
|
6913
|
+
/* @__PURE__ */ e(x, { fontWeight: "medium", children: h }),
|
|
6914
|
+
/* @__PURE__ */ e(Le, { border: !0, text: u, variant: H })
|
|
6915
|
+
] }) : /* @__PURE__ */ e(x, { fontWeight: "medium", children: h }), ae = () => s || /* @__PURE__ */ d(
|
|
6880
6916
|
f,
|
|
6881
6917
|
{
|
|
6882
6918
|
direction: "row",
|
|
@@ -6889,10 +6925,10 @@ const Fo = (t) => {
|
|
|
6889
6925
|
]
|
|
6890
6926
|
}
|
|
6891
6927
|
), J = !!(s || h || g);
|
|
6892
|
-
return /* @__PURE__ */
|
|
6928
|
+
return /* @__PURE__ */ d(
|
|
6893
6929
|
f,
|
|
6894
6930
|
{
|
|
6895
|
-
ref:
|
|
6931
|
+
ref: Z,
|
|
6896
6932
|
height: r,
|
|
6897
6933
|
customMinHeight: i,
|
|
6898
6934
|
customHeight: o,
|
|
@@ -6904,7 +6940,7 @@ const Fo = (t) => {
|
|
|
6904
6940
|
style: {
|
|
6905
6941
|
backgroundColor: "var(--sa-background-primary, #ffffff)",
|
|
6906
6942
|
display: "flex",
|
|
6907
|
-
minHeight:
|
|
6943
|
+
minHeight: T,
|
|
6908
6944
|
...(y == null ? void 0 : y.style) ?? {}
|
|
6909
6945
|
},
|
|
6910
6946
|
children: [
|
|
@@ -6913,29 +6949,29 @@ const Fo = (t) => {
|
|
|
6913
6949
|
f,
|
|
6914
6950
|
{
|
|
6915
6951
|
padding: "spacing-0",
|
|
6916
|
-
...
|
|
6952
|
+
...b,
|
|
6917
6953
|
style: {
|
|
6918
6954
|
flex: 1,
|
|
6919
6955
|
overflow: "auto",
|
|
6920
|
-
...(
|
|
6956
|
+
...(b == null ? void 0 : b.style) ?? {}
|
|
6921
6957
|
},
|
|
6922
6958
|
children: t
|
|
6923
6959
|
}
|
|
6924
6960
|
),
|
|
6925
|
-
a ? /* @__PURE__ */ e(rr, { ...
|
|
6961
|
+
a ? /* @__PURE__ */ e(rr, { ...C, children: a }) : null
|
|
6926
6962
|
]
|
|
6927
6963
|
}
|
|
6928
6964
|
);
|
|
6929
6965
|
}
|
|
6930
|
-
), Mo =
|
|
6966
|
+
), Mo = qe.memo(
|
|
6931
6967
|
({ value: t, options: r = [], onChange: i, multiple: o }) => {
|
|
6932
6968
|
const n = (t == null ? void 0 : t.map((a) => a.value)) || [], l = (r == null ? void 0 : r.filter((a) => n.includes(a.value))) || [], s = (a) => {
|
|
6933
6969
|
const h = [...l];
|
|
6934
|
-
let
|
|
6935
|
-
o ?
|
|
6970
|
+
let u = [];
|
|
6971
|
+
o ? u = n.includes(a.value) ? h.filter((g) => g.value !== a.value) : [...h, a] : u = [a], i == null || i(u);
|
|
6936
6972
|
};
|
|
6937
6973
|
return /* @__PURE__ */ e(f, { direction: "row", gap: "sm", flexWrap: "wrap", children: r == null ? void 0 : r.map((a, h) => /* @__PURE__ */ e(
|
|
6938
|
-
|
|
6974
|
+
N,
|
|
6939
6975
|
{
|
|
6940
6976
|
...n.includes(a.value) ? { primary: !0 } : { secondary: !0 },
|
|
6941
6977
|
onClick: () => s(a),
|
|
@@ -6949,14 +6985,14 @@ function vt(t) {
|
|
|
6949
6985
|
return null;
|
|
6950
6986
|
}
|
|
6951
6987
|
vt.displayName = "LayoutDialog.Header";
|
|
6952
|
-
function
|
|
6988
|
+
function bt(t) {
|
|
6953
6989
|
return null;
|
|
6954
6990
|
}
|
|
6955
|
-
|
|
6956
|
-
function
|
|
6991
|
+
bt.displayName = "LayoutDialog.Body";
|
|
6992
|
+
function Dt(t) {
|
|
6957
6993
|
return null;
|
|
6958
6994
|
}
|
|
6959
|
-
|
|
6995
|
+
Dt.displayName = "LayoutDialog.Aside";
|
|
6960
6996
|
function wt(t) {
|
|
6961
6997
|
return null;
|
|
6962
6998
|
}
|
|
@@ -6987,12 +7023,12 @@ const re = {
|
|
|
6987
7023
|
{
|
|
6988
7024
|
mode: "modal",
|
|
6989
7025
|
label: "Modal",
|
|
6990
|
-
icon: /* @__PURE__ */ e(
|
|
7026
|
+
icon: /* @__PURE__ */ e(D, { name: "Newscreen", size: "sm" })
|
|
6991
7027
|
},
|
|
6992
7028
|
{
|
|
6993
7029
|
mode: "fullscreen",
|
|
6994
7030
|
label: "Fullscreen",
|
|
6995
|
-
icon: /* @__PURE__ */ e(
|
|
7031
|
+
icon: /* @__PURE__ */ e(D, { name: "Fullscreen", size: "sm" })
|
|
6996
7032
|
}
|
|
6997
7033
|
];
|
|
6998
7034
|
function tn({ value: t, onChange: r }) {
|
|
@@ -7011,7 +7047,7 @@ function tn({ value: t, onChange: r }) {
|
|
|
7011
7047
|
)) });
|
|
7012
7048
|
}
|
|
7013
7049
|
function rn() {
|
|
7014
|
-
return /* @__PURE__ */
|
|
7050
|
+
return /* @__PURE__ */ d(
|
|
7015
7051
|
"svg",
|
|
7016
7052
|
{
|
|
7017
7053
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7042,8 +7078,8 @@ function nn(t) {
|
|
|
7042
7078
|
}
|
|
7043
7079
|
function $e(t, r) {
|
|
7044
7080
|
let i = null;
|
|
7045
|
-
return
|
|
7046
|
-
|
|
7081
|
+
return qe.Children.forEach(t, (o) => {
|
|
7082
|
+
qe.isValidElement(o) && o.type === r && (i = o.props.children ?? null);
|
|
7047
7083
|
}), i;
|
|
7048
7084
|
}
|
|
7049
7085
|
function on(t) {
|
|
@@ -7056,23 +7092,23 @@ function on(t) {
|
|
|
7056
7092
|
showViewModeToggle: s = !0,
|
|
7057
7093
|
showCloseButton: a = !0,
|
|
7058
7094
|
size: h,
|
|
7059
|
-
asideWidth:
|
|
7095
|
+
asideWidth: u,
|
|
7060
7096
|
disableEscapeClose: g = !1,
|
|
7061
7097
|
disableBackdropClose: m = !1,
|
|
7062
7098
|
lockBodyScroll: y = !0,
|
|
7063
|
-
children:
|
|
7064
|
-
} = t, [E,
|
|
7099
|
+
children: b
|
|
7100
|
+
} = t, [E, C] = k(n), H = o ?? E, T = ne("md") ? H : "fullscreen", U = ve(
|
|
7065
7101
|
(Q) => {
|
|
7066
|
-
o === void 0 &&
|
|
7102
|
+
o === void 0 && C(Q), l == null || l(Q);
|
|
7067
7103
|
},
|
|
7068
7104
|
[o, l]
|
|
7069
7105
|
), M = ie(null);
|
|
7070
|
-
|
|
7106
|
+
$(() => {
|
|
7071
7107
|
if (!(!r || !y))
|
|
7072
7108
|
return M.current = document.body.style.overflow, document.body.style.overflow = "hidden", () => {
|
|
7073
7109
|
document.body.style.overflow = M.current ?? "";
|
|
7074
7110
|
};
|
|
7075
|
-
}, [r, y]),
|
|
7111
|
+
}, [r, y]), $(() => {
|
|
7076
7112
|
if (!r || g) return;
|
|
7077
7113
|
const Q = (K) => {
|
|
7078
7114
|
K.key === "Escape" && i();
|
|
@@ -7080,31 +7116,31 @@ function on(t) {
|
|
|
7080
7116
|
return window.addEventListener("keydown", Q), () => window.removeEventListener("keydown", Q);
|
|
7081
7117
|
}, [r, g, i]);
|
|
7082
7118
|
const ae = he(
|
|
7083
|
-
() => $e(
|
|
7084
|
-
[
|
|
7119
|
+
() => $e(b, vt),
|
|
7120
|
+
[b]
|
|
7085
7121
|
), J = he(
|
|
7086
|
-
() => $e(
|
|
7087
|
-
[
|
|
7088
|
-
),
|
|
7089
|
-
() => $e(
|
|
7090
|
-
[
|
|
7122
|
+
() => $e(b, bt),
|
|
7123
|
+
[b]
|
|
7124
|
+
), A = he(
|
|
7125
|
+
() => $e(b, Dt),
|
|
7126
|
+
[b]
|
|
7091
7127
|
), P = he(
|
|
7092
|
-
() => $e(
|
|
7093
|
-
[
|
|
7128
|
+
() => $e(b, wt),
|
|
7129
|
+
[b]
|
|
7094
7130
|
);
|
|
7095
7131
|
if (!r) return null;
|
|
7096
7132
|
const oe = [
|
|
7097
7133
|
re["lyd-panel"],
|
|
7098
|
-
|
|
7099
|
-
|
|
7100
|
-
|
|
7134
|
+
T === "modal" && re["lyd-modal"],
|
|
7135
|
+
T === "fullscreen" && re["lyd-fullscreen"],
|
|
7136
|
+
T === "sidebar" && re["lyd-sidebar"]
|
|
7101
7137
|
].filter(Boolean).join(" "), le = {
|
|
7102
7138
|
"--lyd-max-w": nn(h),
|
|
7103
|
-
...
|
|
7139
|
+
...u !== void 0 && { "--lyd-aside-w": u }
|
|
7104
7140
|
}, G = () => {
|
|
7105
7141
|
m || i();
|
|
7106
7142
|
};
|
|
7107
|
-
return /* @__PURE__ */
|
|
7143
|
+
return /* @__PURE__ */ d(
|
|
7108
7144
|
"div",
|
|
7109
7145
|
{
|
|
7110
7146
|
className: re["lyd-root"],
|
|
@@ -7120,11 +7156,11 @@ function on(t) {
|
|
|
7120
7156
|
"aria-hidden": "true"
|
|
7121
7157
|
}
|
|
7122
7158
|
),
|
|
7123
|
-
/* @__PURE__ */
|
|
7124
|
-
/* @__PURE__ */
|
|
7159
|
+
/* @__PURE__ */ d("div", { className: oe, children: [
|
|
7160
|
+
/* @__PURE__ */ d("div", { className: re["lyd-header"], children: [
|
|
7125
7161
|
/* @__PURE__ */ e("div", { className: re["lyd-header-content"], children: ae }),
|
|
7126
|
-
/* @__PURE__ */
|
|
7127
|
-
s && /* @__PURE__ */ e(tn, { value:
|
|
7162
|
+
/* @__PURE__ */ d("div", { className: re["lyd-header-actions"], children: [
|
|
7163
|
+
s && /* @__PURE__ */ e(tn, { value: H, onChange: U }),
|
|
7128
7164
|
a && /* @__PURE__ */ e(
|
|
7129
7165
|
"button",
|
|
7130
7166
|
{
|
|
@@ -7132,14 +7168,14 @@ function on(t) {
|
|
|
7132
7168
|
className: re["lyd-close-btn"],
|
|
7133
7169
|
onClick: i,
|
|
7134
7170
|
"aria-label": "Close dialog",
|
|
7135
|
-
children: /* @__PURE__ */ e(
|
|
7171
|
+
children: /* @__PURE__ */ e(D, { name: "Cross", size: "md" })
|
|
7136
7172
|
}
|
|
7137
7173
|
)
|
|
7138
7174
|
] })
|
|
7139
7175
|
] }),
|
|
7140
|
-
/* @__PURE__ */
|
|
7176
|
+
/* @__PURE__ */ d("div", { className: re["lyd-main"], children: [
|
|
7141
7177
|
/* @__PURE__ */ e("div", { className: re["lyd-body"], children: J }),
|
|
7142
|
-
|
|
7178
|
+
A && /* @__PURE__ */ e("aside", { className: re["lyd-aside"], children: A })
|
|
7143
7179
|
] }),
|
|
7144
7180
|
P && /* @__PURE__ */ e("div", { className: re["lyd-footer"], children: P })
|
|
7145
7181
|
] })
|
|
@@ -7149,16 +7185,16 @@ function on(t) {
|
|
|
7149
7185
|
}
|
|
7150
7186
|
const Ke = on;
|
|
7151
7187
|
Ke.Header = vt;
|
|
7152
|
-
Ke.Body =
|
|
7153
|
-
Ke.Aside =
|
|
7188
|
+
Ke.Body = bt;
|
|
7189
|
+
Ke.Aside = Dt;
|
|
7154
7190
|
Ke.Footer = wt;
|
|
7155
7191
|
function Lo({ url: t, filename: r, onClose: i }) {
|
|
7156
|
-
return
|
|
7192
|
+
return $(() => {
|
|
7157
7193
|
const o = (n) => {
|
|
7158
7194
|
n.key === "Escape" && i();
|
|
7159
7195
|
};
|
|
7160
7196
|
return window.addEventListener("keydown", o), () => window.removeEventListener("keydown", o);
|
|
7161
|
-
}, [i]), /* @__PURE__ */
|
|
7197
|
+
}, [i]), /* @__PURE__ */ d(
|
|
7162
7198
|
"div",
|
|
7163
7199
|
{
|
|
7164
7200
|
onClick: i,
|
|
@@ -7174,7 +7210,7 @@ function Lo({ url: t, filename: r, onClose: i }) {
|
|
|
7174
7210
|
gap: "12px"
|
|
7175
7211
|
},
|
|
7176
7212
|
children: [
|
|
7177
|
-
/* @__PURE__ */
|
|
7213
|
+
/* @__PURE__ */ d(
|
|
7178
7214
|
"div",
|
|
7179
7215
|
{
|
|
7180
7216
|
onClick: (o) => o.stopPropagation(),
|
|
@@ -7269,22 +7305,22 @@ function Bo({
|
|
|
7269
7305
|
formatTitle: i
|
|
7270
7306
|
}) {
|
|
7271
7307
|
const o = Ve();
|
|
7272
|
-
|
|
7308
|
+
$(() => {
|
|
7273
7309
|
let n = null, l = null;
|
|
7274
7310
|
for (const h of r) {
|
|
7275
|
-
const
|
|
7276
|
-
if (
|
|
7277
|
-
n =
|
|
7311
|
+
const u = h.items.find((g) => g.to ? g.to === "/" ? o.pathname === "/" : !!(g.to === o.pathname || o.pathname.startsWith(g.to + "/")) : !1);
|
|
7312
|
+
if (u) {
|
|
7313
|
+
n = u, l = h;
|
|
7278
7314
|
break;
|
|
7279
7315
|
}
|
|
7280
7316
|
}
|
|
7281
7317
|
const s = [];
|
|
7282
7318
|
n != null && n.title && s.push(n.title), l != null && l.name && s.push(l.name.toTitleCase());
|
|
7283
|
-
const a = (h,
|
|
7319
|
+
const a = (h, u) => h.length > 0 ? `${h.join(" - ")} | ${u}` : u;
|
|
7284
7320
|
document.title = (i || a)(s, t);
|
|
7285
7321
|
}, [o.pathname]);
|
|
7286
7322
|
}
|
|
7287
|
-
const
|
|
7323
|
+
const zo = () => {
|
|
7288
7324
|
const [t, r] = Ye(), i = Pe(t.toString()), o = Jt(), n = Ve(), l = o.id;
|
|
7289
7325
|
return {
|
|
7290
7326
|
// query params
|
|
@@ -7303,21 +7339,21 @@ const Ao = () => {
|
|
|
7303
7339
|
hasId: !!l
|
|
7304
7340
|
};
|
|
7305
7341
|
};
|
|
7306
|
-
function
|
|
7342
|
+
function Ao(t) {
|
|
7307
7343
|
var o, n;
|
|
7308
7344
|
const r = t.decodedAccessToken;
|
|
7309
7345
|
return he(() => {
|
|
7310
|
-
var h,
|
|
7311
|
-
const l = ((
|
|
7346
|
+
var h, u;
|
|
7347
|
+
const l = ((u = (h = r == null ? void 0 : r.access) == null ? void 0 : h.role) == null ? void 0 : u.code) ?? "", s = Object.keys(t.role).reduce(
|
|
7312
7348
|
(g, m) => {
|
|
7313
|
-
const y = `is${m.toLowerCase().replace(/(^\w|_\w)/g, (
|
|
7349
|
+
const y = `is${m.toLowerCase().replace(/(^\w|_\w)/g, (b) => b.replace("_", "").toUpperCase())}`;
|
|
7314
7350
|
return { ...g, [y]: !1 };
|
|
7315
7351
|
},
|
|
7316
7352
|
{}
|
|
7317
7353
|
);
|
|
7318
7354
|
return {
|
|
7319
7355
|
...Object.keys(t.role).reduce((g, m) => {
|
|
7320
|
-
const y = `is${m.toLowerCase().replace(/(^\w|_\w)/g, (
|
|
7356
|
+
const y = `is${m.toLowerCase().replace(/(^\w|_\w)/g, (b) => b.replace("_", "").toUpperCase())}`;
|
|
7321
7357
|
return {
|
|
7322
7358
|
...g,
|
|
7323
7359
|
[y]: l === t.role[m]
|
|
@@ -7331,10 +7367,10 @@ function Io(t) {
|
|
|
7331
7367
|
export {
|
|
7332
7368
|
Gn as ActionMenu,
|
|
7333
7369
|
hi as AdvanceFilterBar,
|
|
7334
|
-
|
|
7370
|
+
Hn as App,
|
|
7335
7371
|
kr as AppComponent,
|
|
7336
7372
|
Qt as AppContext,
|
|
7337
|
-
|
|
7373
|
+
Nn as AppLayout,
|
|
7338
7374
|
Co as AsideBar,
|
|
7339
7375
|
On as BackButton,
|
|
7340
7376
|
pi as ColumnFilterDropdown,
|
|
@@ -7342,7 +7378,7 @@ export {
|
|
|
7342
7378
|
vi as DataTable,
|
|
7343
7379
|
O as DecisionWrapper,
|
|
7344
7380
|
Ct as EachUtils,
|
|
7345
|
-
|
|
7381
|
+
Do as EmptyStatePage,
|
|
7346
7382
|
ui as FilterDrawer,
|
|
7347
7383
|
vo as FloatingFooter,
|
|
7348
7384
|
ko as ForbiddenPage,
|
|
@@ -7353,15 +7389,15 @@ export {
|
|
|
7353
7389
|
Fr as HeaderLeftSlotProvider,
|
|
7354
7390
|
jn as HorizontalField,
|
|
7355
7391
|
Lo as ImagePreview,
|
|
7356
|
-
|
|
7392
|
+
Hi as InputFile,
|
|
7357
7393
|
Gi as InputImage,
|
|
7358
7394
|
Ke as LayoutDialog,
|
|
7359
|
-
|
|
7360
|
-
|
|
7395
|
+
Dt as LayoutDialogAside,
|
|
7396
|
+
bt as LayoutDialogBody,
|
|
7361
7397
|
wt as LayoutDialogFooter,
|
|
7362
7398
|
vt as LayoutDialogHeader,
|
|
7363
7399
|
_n as ModuleSwitcher,
|
|
7364
|
-
|
|
7400
|
+
zr as ModuleSwitcherModal,
|
|
7365
7401
|
wo as NotFoundPage,
|
|
7366
7402
|
Zn as PageLayout,
|
|
7367
7403
|
Xe as Pressable,
|
|
@@ -7372,7 +7408,7 @@ export {
|
|
|
7372
7408
|
tr as SectionHeader,
|
|
7373
7409
|
Mo as SelectButton,
|
|
7374
7410
|
So as ServerErrorPage,
|
|
7375
|
-
|
|
7411
|
+
Dr as SidebarBadgesProvider,
|
|
7376
7412
|
Vn as SidebarGroupSlot,
|
|
7377
7413
|
Lr as SidebarGroupSlotOutlet,
|
|
7378
7414
|
Mr as SidebarGroupSlotProvider,
|
|
@@ -7383,8 +7419,8 @@ export {
|
|
|
7383
7419
|
fi as TableWrapper,
|
|
7384
7420
|
po as ToggleStatus,
|
|
7385
7421
|
pe as Typography,
|
|
7386
|
-
|
|
7387
|
-
|
|
7422
|
+
bo as VerticalField,
|
|
7423
|
+
Tn as clearModuleSelection,
|
|
7388
7424
|
Xn as createInitialFromUserName,
|
|
7389
7425
|
io as cssVars,
|
|
7390
7426
|
lo as formHasChanged,
|
|
@@ -7394,9 +7430,9 @@ export {
|
|
|
7394
7430
|
Pn as getDateFilterValue,
|
|
7395
7431
|
Jn as getDateRangeFilterValue,
|
|
7396
7432
|
to as getInitials,
|
|
7397
|
-
|
|
7398
|
-
|
|
7399
|
-
|
|
7433
|
+
qn as getValueDropdownMultipleFilter,
|
|
7434
|
+
Un as getValueRadioFilter,
|
|
7435
|
+
si as getValueSearch,
|
|
7400
7436
|
nt as getValuesFilter,
|
|
7401
7437
|
Vt as handleChangeFilter,
|
|
7402
7438
|
yo as handleOnScroll,
|
|
@@ -7418,12 +7454,12 @@ export {
|
|
|
7418
7454
|
rt as resolveSidebarBadge,
|
|
7419
7455
|
oo as textWidth,
|
|
7420
7456
|
Yt as useApp,
|
|
7421
|
-
|
|
7422
|
-
|
|
7457
|
+
br as useAppState,
|
|
7458
|
+
Ao as useAuthRole,
|
|
7423
7459
|
Bo as useDynamicTitle,
|
|
7424
7460
|
er as useModuleSelection,
|
|
7425
7461
|
xt as useRouteInfo,
|
|
7426
|
-
|
|
7462
|
+
zo as useRouteParams,
|
|
7427
7463
|
wr as useSidebarBadges,
|
|
7428
7464
|
Wo as useTabState
|
|
7429
7465
|
};
|