@starasia/admin 4.0.2 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/AppLayout/index.d.ts +8 -2
- package/dist/components/BackButton/index.d.ts +20 -0
- package/dist/components/HeaderLeftSlot/index.d.ts +15 -0
- package/dist/components/index.d.ts +2 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +871 -776
- package/dist/index.umd.js +1 -1
- package/package.json +5 -11
package/dist/index.es.js
CHANGED
|
@@ -6,40 +6,40 @@ export * from "@starasia/box";
|
|
|
6
6
|
import { Button as R } from "@starasia/button";
|
|
7
7
|
export * from "@starasia/button";
|
|
8
8
|
export * from "@starasia/card";
|
|
9
|
-
import { StarasiaDate as
|
|
9
|
+
import { StarasiaDate as Ut } from "@starasia/date";
|
|
10
10
|
export * from "@starasia/date";
|
|
11
|
-
import { Dialog as Ue, DialogTitle as Fe, DialogBody as qe, DialogFooter as
|
|
11
|
+
import { Dialog as Ue, DialogTitle as Fe, DialogBody as qe, DialogFooter as ot } from "@starasia/dialog";
|
|
12
12
|
export * from "@starasia/dialog";
|
|
13
|
-
import { Drawer as
|
|
13
|
+
import { Drawer as qt } from "@starasia/drawer";
|
|
14
14
|
export * from "@starasia/drawer";
|
|
15
|
-
import { Dropdown as
|
|
15
|
+
import { Dropdown as ct } from "@starasia/dropdown";
|
|
16
16
|
export * from "@starasia/dropdown";
|
|
17
17
|
import { useMediaQuery as ee } from "@starasia/hooks";
|
|
18
18
|
export * from "@starasia/hooks";
|
|
19
19
|
import { searchParamsToObject as Ge } from "@starasia/http";
|
|
20
20
|
export * from "@starasia/http";
|
|
21
|
-
import { Input as
|
|
21
|
+
import { Input as at } from "@starasia/input";
|
|
22
22
|
export * from "@starasia/input";
|
|
23
|
-
import { Menu as
|
|
23
|
+
import { Menu as Lt, MenuButton as $e, MenuLists as Wt, MenuHeading as Gt, MenuBody as Bt, MenuFooter as Jt } from "@starasia/menu";
|
|
24
24
|
export * from "@starasia/menu";
|
|
25
|
-
import { Pagination as
|
|
25
|
+
import { Pagination as Qt } from "@starasia/pagination";
|
|
26
26
|
export * from "@starasia/pagination";
|
|
27
27
|
export * from "@starasia/storage";
|
|
28
|
-
import { Tr as
|
|
28
|
+
import { Tr as Ie, Td as we, Table as At, Thead as Pt, Th as mt, Tbody as Yt } from "@starasia/table";
|
|
29
29
|
export * from "@starasia/table";
|
|
30
30
|
export * from "@starasia/tabs";
|
|
31
|
-
import { Textarea as
|
|
31
|
+
import { Textarea as Xt } from "@starasia/textarea";
|
|
32
32
|
export * from "@starasia/textarea";
|
|
33
|
-
import { useTheme as
|
|
33
|
+
import { useTheme as Kt, ThemeProvider as yt, useRadius as er, useColor as tr } from "@starasia/theme";
|
|
34
34
|
export * from "@starasia/theme";
|
|
35
35
|
export * from "@starasia/toast";
|
|
36
|
-
import { Toggle as
|
|
36
|
+
import { Toggle as Rt } from "@starasia/toggle";
|
|
37
37
|
export * from "@starasia/toggle";
|
|
38
38
|
import { Tooltip as ue } from "@starasia/tooltip";
|
|
39
39
|
export * from "@starasia/tooltip";
|
|
40
|
-
import { Checkbox as
|
|
40
|
+
import { Checkbox as rt } from "@starasia/checkbox";
|
|
41
41
|
export * from "@starasia/checkbox";
|
|
42
|
-
import { Radio as
|
|
42
|
+
import { Radio as rr } from "@starasia/radio";
|
|
43
43
|
export * from "@starasia/radio";
|
|
44
44
|
import { Text as C } from "@starasia/text";
|
|
45
45
|
export * from "@starasia/text";
|
|
@@ -51,15 +51,15 @@ export * from "@starasia/progress";
|
|
|
51
51
|
export * from "@starasia/stepper";
|
|
52
52
|
export * from "@starasia/accordion";
|
|
53
53
|
export * from "@starasia/story-record";
|
|
54
|
-
import { Skeleton as
|
|
54
|
+
import { Skeleton as He } from "@starasia/skeleton";
|
|
55
55
|
export * from "@starasia/skeleton";
|
|
56
56
|
export * from "@starasia/progress-stepper";
|
|
57
|
-
import { jsx as e,
|
|
58
|
-
import
|
|
59
|
-
import { useSearchParams as
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
const
|
|
57
|
+
import { jsx as e, Fragment as G, jsxs as d } from "react/jsx-runtime";
|
|
58
|
+
import Ht, { createContext as st, useState as M, useContext as Je, useCallback as Me, useMemo as De, memo as te, useEffect as _, useRef as le, useLayoutEffect as it, isValidElement as nt, forwardRef as It, Children as ir, useImperativeHandle as nr } from "react";
|
|
59
|
+
import { useSearchParams as Qe, useNavigate as dt, useLocation as Ve, Outlet as pt, Link as Vt, useParams as zt } from "react-router";
|
|
60
|
+
import lr, { createPortal as or } from "react-dom";
|
|
61
|
+
import cr from "react-easy-crop";
|
|
62
|
+
const ar = {
|
|
63
63
|
menus: [],
|
|
64
64
|
menuBottom: void 0,
|
|
65
65
|
logo: "",
|
|
@@ -67,15 +67,15 @@ const lr = {
|
|
|
67
67
|
userData: null,
|
|
68
68
|
setUserData: () => {
|
|
69
69
|
}
|
|
70
|
-
},
|
|
71
|
-
const [r, n] =
|
|
70
|
+
}, Tt = st(ar), Ot = () => Je(Tt), sr = (t) => {
|
|
71
|
+
const [r, n] = M(
|
|
72
72
|
(t == null ? void 0 : t.initialUserData) || null
|
|
73
73
|
);
|
|
74
74
|
return {
|
|
75
75
|
userData: r,
|
|
76
76
|
setUserData: n
|
|
77
77
|
};
|
|
78
|
-
},
|
|
78
|
+
}, Nt = st({
|
|
79
79
|
badges: {},
|
|
80
80
|
setBadge: () => {
|
|
81
81
|
},
|
|
@@ -83,15 +83,15 @@ const lr = {
|
|
|
83
83
|
},
|
|
84
84
|
clearBadge: () => {
|
|
85
85
|
}
|
|
86
|
-
}),
|
|
87
|
-
const [r, n] =
|
|
86
|
+
}), dr = ({ children: t }) => {
|
|
87
|
+
const [r, n] = M({}), l = Me(
|
|
88
88
|
(a) => {
|
|
89
89
|
n(
|
|
90
90
|
(h) => typeof a == "function" ? a(h) : a
|
|
91
91
|
);
|
|
92
92
|
},
|
|
93
93
|
[]
|
|
94
|
-
), i =
|
|
94
|
+
), i = Me(
|
|
95
95
|
(a, h) => {
|
|
96
96
|
n((u) => {
|
|
97
97
|
const g = typeof h == "function" ? h(u[a]) : h;
|
|
@@ -99,7 +99,7 @@ const lr = {
|
|
|
99
99
|
});
|
|
100
100
|
},
|
|
101
101
|
[]
|
|
102
|
-
), o =
|
|
102
|
+
), o = Me((a) => {
|
|
103
103
|
n((h) => {
|
|
104
104
|
if (!(a in h)) return h;
|
|
105
105
|
const u = { ...h };
|
|
@@ -109,11 +109,11 @@ const lr = {
|
|
|
109
109
|
() => ({ badges: r, setBadge: i, setBadges: l, clearBadge: o }),
|
|
110
110
|
[r, i, l, o]
|
|
111
111
|
);
|
|
112
|
-
return /* @__PURE__ */ e(
|
|
113
|
-
},
|
|
112
|
+
return /* @__PURE__ */ e(Nt.Provider, { value: s, children: t });
|
|
113
|
+
}, hr = () => Je(Nt), Xe = (t, r) => {
|
|
114
114
|
const n = r !== void 0 ? r : t;
|
|
115
115
|
return n == null ? null : typeof n == "string" || typeof n == "number" ? { value: n } : n;
|
|
116
|
-
},
|
|
116
|
+
}, ur = ({
|
|
117
117
|
router: t,
|
|
118
118
|
menus: r = [],
|
|
119
119
|
menuBottom: n,
|
|
@@ -122,9 +122,9 @@ const lr = {
|
|
|
122
122
|
initialUserData: o,
|
|
123
123
|
theme: s
|
|
124
124
|
}) => {
|
|
125
|
-
const a =
|
|
125
|
+
const a = sr({ initialUserData: o }), { theme: h } = Kt();
|
|
126
126
|
return /* @__PURE__ */ e(
|
|
127
|
-
|
|
127
|
+
Tt.Provider,
|
|
128
128
|
{
|
|
129
129
|
value: {
|
|
130
130
|
logo: l,
|
|
@@ -134,11 +134,11 @@ const lr = {
|
|
|
134
134
|
setUserData: a.setUserData,
|
|
135
135
|
menuBottom: n
|
|
136
136
|
},
|
|
137
|
-
children: /* @__PURE__ */ e(
|
|
137
|
+
children: /* @__PURE__ */ e(dr, { children: s ? /* @__PURE__ */ e(yt, { value: s, children: t }) : h ? /* @__PURE__ */ e(yt, { value: h, children: t }) : t })
|
|
138
138
|
}
|
|
139
139
|
);
|
|
140
|
-
},
|
|
141
|
-
function
|
|
140
|
+
}, gn = te(ur);
|
|
141
|
+
function fr({
|
|
142
142
|
collapsed: t = !1,
|
|
143
143
|
children: r
|
|
144
144
|
}) {
|
|
@@ -175,39 +175,82 @@ function dr({
|
|
|
175
175
|
}
|
|
176
176
|
);
|
|
177
177
|
}
|
|
178
|
-
const
|
|
179
|
-
function
|
|
178
|
+
const ht = st(null);
|
|
179
|
+
function gr({ children: t }) {
|
|
180
|
+
const [r, n] = M(null), [l, i] = M(null), [o, s] = M(null), [a, h] = M(0), u = Me(() => (h((g) => g + 1), () => h((g) => g - 1)), []);
|
|
181
|
+
return /* @__PURE__ */ e(
|
|
182
|
+
ht.Provider,
|
|
183
|
+
{
|
|
184
|
+
value: {
|
|
185
|
+
prependNode: r,
|
|
186
|
+
appendNode: l,
|
|
187
|
+
replaceNode: o,
|
|
188
|
+
setPrependNode: n,
|
|
189
|
+
setAppendNode: i,
|
|
190
|
+
setReplaceNode: s,
|
|
191
|
+
replaceCount: a,
|
|
192
|
+
registerReplace: u
|
|
193
|
+
},
|
|
194
|
+
children: t
|
|
195
|
+
}
|
|
196
|
+
);
|
|
197
|
+
}
|
|
198
|
+
function mr({ children: t }) {
|
|
199
|
+
const r = Je(ht);
|
|
200
|
+
return r ? /* @__PURE__ */ d(G, { children: [
|
|
201
|
+
/* @__PURE__ */ e("div", { ref: r.setPrependNode, style: { display: "contents" } }),
|
|
202
|
+
r.replaceCount > 0 ? /* @__PURE__ */ e("div", { ref: r.setReplaceNode, style: { display: "contents" } }) : t,
|
|
203
|
+
/* @__PURE__ */ e("div", { ref: r.setAppendNode, style: { display: "contents" } })
|
|
204
|
+
] }) : /* @__PURE__ */ e(G, { children: t });
|
|
205
|
+
}
|
|
206
|
+
function mn({
|
|
207
|
+
children: t,
|
|
208
|
+
mode: r = "append"
|
|
209
|
+
}) {
|
|
210
|
+
const n = Je(ht);
|
|
211
|
+
if (_(() => {
|
|
212
|
+
if (!(r !== "replace" || !n))
|
|
213
|
+
return n.registerReplace();
|
|
214
|
+
}, [r, n]), !n)
|
|
215
|
+
return process.env.NODE_ENV !== "production" && console.warn(
|
|
216
|
+
"[HeaderLeftSlot] used outside AppLayout — content not rendered"
|
|
217
|
+
), null;
|
|
218
|
+
const l = r === "prepend" ? n.prependNode : r === "replace" ? n.replaceNode : n.appendNode;
|
|
219
|
+
return l ? or(t, l) : null;
|
|
220
|
+
}
|
|
221
|
+
const _e = "moduleSwitcherGroupId", lt = "sa-module-switcher-change";
|
|
222
|
+
function xt() {
|
|
180
223
|
if (typeof window > "u") return null;
|
|
181
224
|
const t = window.localStorage.getItem(_e);
|
|
182
225
|
if (t === null) return null;
|
|
183
226
|
const r = Number(t);
|
|
184
227
|
return Number.isFinite(r) ? r : null;
|
|
185
228
|
}
|
|
186
|
-
function
|
|
187
|
-
typeof window > "u" || (t === null ? window.localStorage.removeItem(_e) : window.localStorage.setItem(_e, String(t)), window.dispatchEvent(new CustomEvent(
|
|
229
|
+
function jt(t) {
|
|
230
|
+
typeof window > "u" || (t === null ? window.localStorage.removeItem(_e) : window.localStorage.setItem(_e, String(t)), window.dispatchEvent(new CustomEvent(lt, { detail: t })));
|
|
188
231
|
}
|
|
189
|
-
function
|
|
190
|
-
|
|
232
|
+
function yn() {
|
|
233
|
+
jt(null);
|
|
191
234
|
}
|
|
192
|
-
function
|
|
193
|
-
const [t, r] =
|
|
194
|
-
() =>
|
|
235
|
+
function Zt() {
|
|
236
|
+
const [t, r] = M(
|
|
237
|
+
() => xt()
|
|
195
238
|
);
|
|
196
|
-
return
|
|
239
|
+
return _(() => {
|
|
197
240
|
const l = () => {
|
|
198
|
-
r(
|
|
241
|
+
r(xt());
|
|
199
242
|
}, i = (o) => {
|
|
200
243
|
o.key === _e && l();
|
|
201
244
|
};
|
|
202
|
-
return window.addEventListener(
|
|
203
|
-
window.removeEventListener(
|
|
245
|
+
return window.addEventListener(lt, l), window.addEventListener("storage", i), () => {
|
|
246
|
+
window.removeEventListener(lt, l), window.removeEventListener("storage", i);
|
|
204
247
|
};
|
|
205
248
|
}, []), { selectedGroupId: t, setSelectedGroupId: (l) => {
|
|
206
|
-
|
|
249
|
+
jt(l), r(l);
|
|
207
250
|
} };
|
|
208
251
|
}
|
|
209
252
|
let Ze = 0, be = !1;
|
|
210
|
-
const
|
|
253
|
+
const Ct = () => /* @__PURE__ */ d(
|
|
211
254
|
"svg",
|
|
212
255
|
{
|
|
213
256
|
width: "100%",
|
|
@@ -224,7 +267,7 @@ const mt = () => /* @__PURE__ */ d(
|
|
|
224
267
|
/* @__PURE__ */ e("line", { x1: "6", y1: "1.667", x2: "6", y2: "14.333" })
|
|
225
268
|
]
|
|
226
269
|
}
|
|
227
|
-
),
|
|
270
|
+
), Dt = {
|
|
228
271
|
width: "100%",
|
|
229
272
|
display: "flex",
|
|
230
273
|
alignItems: "center",
|
|
@@ -241,9 +284,9 @@ const mt = () => /* @__PURE__ */ d(
|
|
|
241
284
|
cursor: "pointer",
|
|
242
285
|
textAlign: "left"
|
|
243
286
|
};
|
|
244
|
-
function
|
|
287
|
+
function pn({
|
|
245
288
|
children: t,
|
|
246
|
-
|
|
289
|
+
headerLeftSlot: r,
|
|
247
290
|
profile: n,
|
|
248
291
|
isLoadingProfile: l,
|
|
249
292
|
onLogout: i,
|
|
@@ -254,11 +297,11 @@ function hn({
|
|
|
254
297
|
profileRole: u,
|
|
255
298
|
profileMenuButtons: g,
|
|
256
299
|
profileMenuItems: m,
|
|
257
|
-
logoutButton:
|
|
300
|
+
logoutButton: p
|
|
258
301
|
}) {
|
|
259
302
|
var ke, Ne;
|
|
260
|
-
const [v] =
|
|
261
|
-
|
|
303
|
+
const [v] = Qe(), A = v.get("embed") === "true", D = Ot(), { badges: T } = hr(), j = dt(), Z = Ve(), L = !ee("md"), [fe, P] = M(!1), [I, K] = M(!1), [oe, ce] = M(!1), [U, ae] = M(!1), [se, re] = M(/* @__PURE__ */ new Set()), [Y, J] = M(null), { selectedGroupId: V, setSelectedGroupId: z } = Zt(), X = le(null), de = le(null);
|
|
304
|
+
_(() => {
|
|
262
305
|
const y = X.current;
|
|
263
306
|
if (!y) return;
|
|
264
307
|
const S = () => {
|
|
@@ -272,13 +315,13 @@ function hn({
|
|
|
272
315
|
be = !1;
|
|
273
316
|
}));
|
|
274
317
|
};
|
|
275
|
-
|
|
318
|
+
it(() => {
|
|
276
319
|
be = !0, he();
|
|
277
320
|
const y = setTimeout(() => {
|
|
278
321
|
be = !1;
|
|
279
322
|
}, 300);
|
|
280
323
|
return () => clearTimeout(y);
|
|
281
|
-
}, []),
|
|
324
|
+
}, []), it(() => {
|
|
282
325
|
D.menus.length > 0 && (Ze > 0 ? he() : requestAnimationFrame(() => {
|
|
283
326
|
var S;
|
|
284
327
|
const y = (S = X.current) == null ? void 0 : S.querySelector(
|
|
@@ -286,43 +329,43 @@ function hn({
|
|
|
286
329
|
);
|
|
287
330
|
y && y.scrollIntoView({ block: "center", behavior: "instant" });
|
|
288
331
|
}));
|
|
289
|
-
}, [D.menus]),
|
|
332
|
+
}, [D.menus]), _(() => {
|
|
290
333
|
be = !0, he();
|
|
291
|
-
const y = setTimeout(he, 0), S = setTimeout(he, 50), F = setTimeout(he, 100),
|
|
334
|
+
const y = setTimeout(he, 0), S = setTimeout(he, 50), F = setTimeout(he, 100), x = setTimeout(he, 200), w = setTimeout(() => {
|
|
292
335
|
be = !1;
|
|
293
336
|
}, 300);
|
|
294
337
|
return () => {
|
|
295
|
-
clearTimeout(y), clearTimeout(S), clearTimeout(F), clearTimeout(
|
|
338
|
+
clearTimeout(y), clearTimeout(S), clearTimeout(F), clearTimeout(x), clearTimeout(w);
|
|
296
339
|
};
|
|
297
|
-
}, [Z.pathname]),
|
|
340
|
+
}, [Z.pathname]), _(() => {
|
|
298
341
|
de.current && (de.current.scrollTop = 0);
|
|
299
|
-
}, [Z.pathname]),
|
|
300
|
-
|
|
301
|
-
}, [Z.pathname,
|
|
302
|
-
|
|
303
|
-
}, [
|
|
304
|
-
const
|
|
342
|
+
}, [Z.pathname]), _(() => {
|
|
343
|
+
L && ce(!1);
|
|
344
|
+
}, [Z.pathname, L]), _(() => {
|
|
345
|
+
L && K(!0);
|
|
346
|
+
}, [L]);
|
|
347
|
+
const Le = () => {
|
|
305
348
|
P(!0);
|
|
306
|
-
},
|
|
349
|
+
}, ze = () => {
|
|
307
350
|
P(!1);
|
|
308
|
-
},
|
|
351
|
+
}, Pe = () => {
|
|
309
352
|
P(!1), i();
|
|
310
353
|
}, Te = (y) => {
|
|
311
354
|
const S = [y.to];
|
|
312
355
|
return y.children && S.push(...y.children.map((F) => F.to)), S;
|
|
313
|
-
},
|
|
356
|
+
}, We = [
|
|
314
357
|
...D.menus.flatMap((y) => y.items.flatMap(Te)),
|
|
315
358
|
...((ke = D.menuBottom) == null ? void 0 : ke.flatMap(Te)) ?? []
|
|
316
359
|
], ie = (y) => {
|
|
317
360
|
if (!Z.pathname.startsWith(y)) return !1;
|
|
318
|
-
const S =
|
|
361
|
+
const S = We.filter((F) => Z.pathname.startsWith(F)).sort((F, x) => x.length - F.length)[0];
|
|
319
362
|
return y === S;
|
|
320
363
|
};
|
|
321
|
-
|
|
364
|
+
_(() => {
|
|
322
365
|
var S;
|
|
323
366
|
const y = (F) => {
|
|
324
|
-
var
|
|
325
|
-
(
|
|
367
|
+
var x;
|
|
368
|
+
(x = F.children) != null && x.some((w) => Z.pathname.startsWith(w.to)) && re((w) => {
|
|
326
369
|
const b = new Set(w);
|
|
327
370
|
return b.add(F.id), b;
|
|
328
371
|
});
|
|
@@ -337,33 +380,33 @@ function hn({
|
|
|
337
380
|
return F.has(y) ? F.delete(y) : F.add(y), F;
|
|
338
381
|
});
|
|
339
382
|
};
|
|
340
|
-
|
|
341
|
-
D.menus.length !== 0 &&
|
|
342
|
-
}, [D.menus,
|
|
343
|
-
const
|
|
344
|
-
if (
|
|
383
|
+
_(() => {
|
|
384
|
+
D.menus.length !== 0 && V !== null && !D.menus.some((y) => y.id === V) && z(null);
|
|
385
|
+
}, [D.menus, V, z]);
|
|
386
|
+
const Be = De(() => {
|
|
387
|
+
if (V !== null)
|
|
345
388
|
return D.menus.filter(
|
|
346
|
-
(F) => F.id ===
|
|
389
|
+
(F) => F.id === V || F.parentGroupId === V
|
|
347
390
|
);
|
|
348
391
|
const y = D.menus.filter((F) => F.parentGroupId === void 0), S = D.menus.filter((F) => F.parentGroupId !== void 0).flatMap((F) => F.items);
|
|
349
392
|
return S.length === 0 ? y : [
|
|
350
393
|
...y,
|
|
351
394
|
{ id: 18, name: "Pengaturan", items: S, parentGroupId: void 0 }
|
|
352
395
|
];
|
|
353
|
-
}, [D.menus,
|
|
396
|
+
}, [D.menus, V]);
|
|
354
397
|
if (A)
|
|
355
|
-
return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(
|
|
356
|
-
const
|
|
357
|
-
const S = y.children && y.children.length > 0, F = se.has(y.id),
|
|
358
|
-
return /* @__PURE__ */ d("div", { "data-menu-active":
|
|
398
|
+
return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(pt, {}) });
|
|
399
|
+
const Ae = (y) => {
|
|
400
|
+
const S = y.children && y.children.length > 0, F = se.has(y.id), x = S ? y.children.some((W) => ie(W.to)) : ie(y.to), w = Xe(y.badge, T[y.id]), b = !!w && I && !L;
|
|
401
|
+
return /* @__PURE__ */ d("div", { "data-menu-active": x || void 0, children: [
|
|
359
402
|
/* @__PURE__ */ d(
|
|
360
403
|
"button",
|
|
361
404
|
{
|
|
362
|
-
onClick: (
|
|
405
|
+
onClick: (W) => {
|
|
363
406
|
if (S)
|
|
364
|
-
if (
|
|
365
|
-
const H =
|
|
366
|
-
|
|
407
|
+
if (I && !L) {
|
|
408
|
+
const H = W.currentTarget.getBoundingClientRect();
|
|
409
|
+
J({
|
|
367
410
|
item: y,
|
|
368
411
|
top: H.top,
|
|
369
412
|
left: H.right + 8
|
|
@@ -377,26 +420,26 @@ function hn({
|
|
|
377
420
|
width: "100%",
|
|
378
421
|
display: "flex",
|
|
379
422
|
alignItems: "center",
|
|
380
|
-
justifyContent:
|
|
423
|
+
justifyContent: I && !L ? "center" : void 0,
|
|
381
424
|
gap: "0.5rem",
|
|
382
|
-
paddingLeft:
|
|
383
|
-
paddingRight:
|
|
425
|
+
paddingLeft: I && !L ? "0" : "0.5rem",
|
|
426
|
+
paddingRight: I && !L ? "0" : "0.5rem",
|
|
384
427
|
paddingTop: "0.25rem",
|
|
385
428
|
paddingBottom: "0.25rem",
|
|
386
429
|
height: "2rem",
|
|
387
|
-
borderRadius:
|
|
430
|
+
borderRadius: x ? "var(--sa-radii-sm, 0.375rem)" : "var(--sa-radii-md, 0.5rem)",
|
|
388
431
|
textAlign: "left",
|
|
389
|
-
border:
|
|
390
|
-
backgroundColor:
|
|
432
|
+
border: x ? "1px solid var(--sa-border-subtle, #0b120e24)" : "1px solid transparent",
|
|
433
|
+
backgroundColor: x ? "var(--sa-background-primary, #ffffff)" : "transparent",
|
|
391
434
|
color: "var(--sa-text-primary, #292a2e)",
|
|
392
435
|
cursor: "pointer"
|
|
393
436
|
},
|
|
394
|
-
title:
|
|
395
|
-
onMouseEnter: (
|
|
396
|
-
|
|
437
|
+
title: I && !L ? y.title : void 0,
|
|
438
|
+
onMouseEnter: (W) => {
|
|
439
|
+
x || (W.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
|
|
397
440
|
},
|
|
398
|
-
onMouseLeave: (
|
|
399
|
-
|
|
441
|
+
onMouseLeave: (W) => {
|
|
442
|
+
x || (W.currentTarget.style.backgroundColor = "transparent");
|
|
400
443
|
},
|
|
401
444
|
children: [
|
|
402
445
|
/* @__PURE__ */ d(
|
|
@@ -428,7 +471,7 @@ function hn({
|
|
|
428
471
|
]
|
|
429
472
|
}
|
|
430
473
|
),
|
|
431
|
-
(!
|
|
474
|
+
(!I || L) && /* @__PURE__ */ d(G, { children: [
|
|
432
475
|
/* @__PURE__ */ e(
|
|
433
476
|
"span",
|
|
434
477
|
{
|
|
@@ -482,8 +525,8 @@ function hn({
|
|
|
482
525
|
]
|
|
483
526
|
}
|
|
484
527
|
),
|
|
485
|
-
S && (!
|
|
486
|
-
const
|
|
528
|
+
S && (!I || L) && (() => {
|
|
529
|
+
const W = y.children.findIndex(
|
|
487
530
|
(H) => ie(H.to)
|
|
488
531
|
);
|
|
489
532
|
return /* @__PURE__ */ d(
|
|
@@ -515,14 +558,14 @@ function hn({
|
|
|
515
558
|
}
|
|
516
559
|
}
|
|
517
560
|
),
|
|
518
|
-
|
|
561
|
+
W >= 0 && /* @__PURE__ */ e(
|
|
519
562
|
"span",
|
|
520
563
|
{
|
|
521
564
|
"aria-hidden": "true",
|
|
522
565
|
style: {
|
|
523
566
|
position: "absolute",
|
|
524
567
|
left: 0,
|
|
525
|
-
top: `${
|
|
568
|
+
top: `${W * 32}px`,
|
|
526
569
|
width: "1.5px",
|
|
527
570
|
height: "32px",
|
|
528
571
|
backgroundColor: "var(--sa-text-primary, #292a2e)",
|
|
@@ -533,7 +576,7 @@ function hn({
|
|
|
533
576
|
}
|
|
534
577
|
),
|
|
535
578
|
y.children.map((H) => {
|
|
536
|
-
const ne =
|
|
579
|
+
const ne = Xe(
|
|
537
580
|
H.badge,
|
|
538
581
|
T[H.id]
|
|
539
582
|
);
|
|
@@ -608,7 +651,7 @@ function hn({
|
|
|
608
651
|
})()
|
|
609
652
|
] }, y.id);
|
|
610
653
|
};
|
|
611
|
-
return /* @__PURE__ */ d(
|
|
654
|
+
return /* @__PURE__ */ d(gr, { children: [
|
|
612
655
|
/* @__PURE__ */ d(
|
|
613
656
|
"div",
|
|
614
657
|
{
|
|
@@ -617,11 +660,11 @@ function hn({
|
|
|
617
660
|
height: "100vh",
|
|
618
661
|
// backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
|
|
619
662
|
position: "relative",
|
|
620
|
-
"--app-sidebar-width":
|
|
621
|
-
"--app-footer-zindex":
|
|
663
|
+
"--app-sidebar-width": L ? "0px" : I ? "4.375rem" : "16.375rem",
|
|
664
|
+
"--app-footer-zindex": L && oe ? "40" : "999"
|
|
622
665
|
},
|
|
623
666
|
children: [
|
|
624
|
-
|
|
667
|
+
L && /* @__PURE__ */ e(
|
|
625
668
|
"div",
|
|
626
669
|
{
|
|
627
670
|
style: {
|
|
@@ -640,9 +683,9 @@ function hn({
|
|
|
640
683
|
"aside",
|
|
641
684
|
{
|
|
642
685
|
style: {
|
|
643
|
-
width:
|
|
644
|
-
position:
|
|
645
|
-
...
|
|
686
|
+
width: L ? "16.375rem" : I ? "4.375rem" : "16.375rem",
|
|
687
|
+
position: L ? "fixed" : "relative",
|
|
688
|
+
...L && {
|
|
646
689
|
inset: 0,
|
|
647
690
|
zIndex: 50,
|
|
648
691
|
transform: oe ? "translateX(0)" : "translateX(-100%)"
|
|
@@ -652,7 +695,7 @@ function hn({
|
|
|
652
695
|
display: "flex",
|
|
653
696
|
flexDirection: "column",
|
|
654
697
|
transition: "all 0.3s ease-in-out",
|
|
655
|
-
flexShrink:
|
|
698
|
+
flexShrink: L ? void 0 : 0
|
|
656
699
|
},
|
|
657
700
|
children: [
|
|
658
701
|
/* @__PURE__ */ e(
|
|
@@ -671,8 +714,8 @@ function hn({
|
|
|
671
714
|
position: "relative"
|
|
672
715
|
},
|
|
673
716
|
children: (() => {
|
|
674
|
-
const y = !
|
|
675
|
-
return /* @__PURE__ */ d(
|
|
717
|
+
const y = !L && I && !oe, S = y && U;
|
|
718
|
+
return /* @__PURE__ */ d(G, { children: [
|
|
676
719
|
/* @__PURE__ */ d(
|
|
677
720
|
"div",
|
|
678
721
|
{
|
|
@@ -699,7 +742,7 @@ function hn({
|
|
|
699
742
|
}
|
|
700
743
|
}
|
|
701
744
|
),
|
|
702
|
-
(!
|
|
745
|
+
(!I || oe) && /* @__PURE__ */ e(
|
|
703
746
|
"span",
|
|
704
747
|
{
|
|
705
748
|
style: {
|
|
@@ -714,7 +757,7 @@ function hn({
|
|
|
714
757
|
]
|
|
715
758
|
}
|
|
716
759
|
),
|
|
717
|
-
!
|
|
760
|
+
!L && !I && /* @__PURE__ */ e(
|
|
718
761
|
"button",
|
|
719
762
|
{
|
|
720
763
|
type: "button",
|
|
@@ -733,7 +776,7 @@ function hn({
|
|
|
733
776
|
cursor: "pointer",
|
|
734
777
|
flexShrink: 0
|
|
735
778
|
},
|
|
736
|
-
children: /* @__PURE__ */ e(
|
|
779
|
+
children: /* @__PURE__ */ e(Ct, {})
|
|
737
780
|
}
|
|
738
781
|
),
|
|
739
782
|
y && /* @__PURE__ */ e(
|
|
@@ -770,12 +813,12 @@ function hn({
|
|
|
770
813
|
height: "1rem",
|
|
771
814
|
display: "inline-flex"
|
|
772
815
|
},
|
|
773
|
-
children: /* @__PURE__ */ e(
|
|
816
|
+
children: /* @__PURE__ */ e(Ct, {})
|
|
774
817
|
}
|
|
775
818
|
)
|
|
776
819
|
}
|
|
777
820
|
),
|
|
778
|
-
|
|
821
|
+
L && /* @__PURE__ */ e(
|
|
779
822
|
"button",
|
|
780
823
|
{
|
|
781
824
|
onClick: () => ce(!1),
|
|
@@ -813,9 +856,9 @@ function hn({
|
|
|
813
856
|
}
|
|
814
857
|
),
|
|
815
858
|
a && /* @__PURE__ */ e(
|
|
816
|
-
|
|
859
|
+
fr,
|
|
817
860
|
{
|
|
818
|
-
collapsed:
|
|
861
|
+
collapsed: L ? !1 : I,
|
|
819
862
|
children: a
|
|
820
863
|
}
|
|
821
864
|
),
|
|
@@ -829,8 +872,8 @@ function hn({
|
|
|
829
872
|
paddingTop: "1rem",
|
|
830
873
|
paddingBottom: "1rem"
|
|
831
874
|
},
|
|
832
|
-
children:
|
|
833
|
-
!
|
|
875
|
+
children: Be.map((y) => /* @__PURE__ */ d("div", { style: { marginBottom: "1rem" }, children: [
|
|
876
|
+
!I || L ? y.name && /* @__PURE__ */ e(
|
|
834
877
|
"div",
|
|
835
878
|
{
|
|
836
879
|
style: {
|
|
@@ -873,7 +916,7 @@ function hn({
|
|
|
873
916
|
)
|
|
874
917
|
}
|
|
875
918
|
),
|
|
876
|
-
/* @__PURE__ */ e("div", { style: { paddingLeft: "1rem", paddingRight: "1rem", display: "flex", flexDirection: "column", gap: "var(--sa-spacing-xs, 0.25rem)" }, children: y.items.map((S) =>
|
|
919
|
+
/* @__PURE__ */ e("div", { style: { paddingLeft: "1rem", paddingRight: "1rem", display: "flex", flexDirection: "column", gap: "var(--sa-spacing-xs, 0.25rem)" }, children: y.items.map((S) => Ae(S)) })
|
|
877
920
|
] }, y.id))
|
|
878
921
|
}
|
|
879
922
|
),
|
|
@@ -892,7 +935,7 @@ function hn({
|
|
|
892
935
|
gap: "var(--sa-spacing-xs, 0.25rem)",
|
|
893
936
|
flexShrink: 0
|
|
894
937
|
},
|
|
895
|
-
children: D.menuBottom.map((y) =>
|
|
938
|
+
children: D.menuBottom.map((y) => Ae(y))
|
|
896
939
|
}
|
|
897
940
|
)
|
|
898
941
|
]
|
|
@@ -915,7 +958,7 @@ function hn({
|
|
|
915
958
|
},
|
|
916
959
|
children: [
|
|
917
960
|
/* @__PURE__ */ d("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
|
|
918
|
-
|
|
961
|
+
L && /* @__PURE__ */ e(
|
|
919
962
|
"button",
|
|
920
963
|
{
|
|
921
964
|
onClick: () => ce(!0),
|
|
@@ -947,11 +990,11 @@ function hn({
|
|
|
947
990
|
)
|
|
948
991
|
}
|
|
949
992
|
),
|
|
950
|
-
r
|
|
993
|
+
/* @__PURE__ */ e(mr, { children: r })
|
|
951
994
|
] }),
|
|
952
995
|
/* @__PURE__ */ d("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
|
|
953
996
|
h,
|
|
954
|
-
/* @__PURE__ */ d(
|
|
997
|
+
/* @__PURE__ */ d(Lt, { position: "bottom-right", children: [
|
|
955
998
|
/* @__PURE__ */ e($e, { children: /* @__PURE__ */ d(
|
|
956
999
|
"div",
|
|
957
1000
|
{
|
|
@@ -1025,7 +1068,7 @@ function hn({
|
|
|
1025
1068
|
}
|
|
1026
1069
|
) }),
|
|
1027
1070
|
/* @__PURE__ */ d(
|
|
1028
|
-
|
|
1071
|
+
Wt,
|
|
1029
1072
|
{
|
|
1030
1073
|
style: {
|
|
1031
1074
|
width: "280px",
|
|
@@ -1035,7 +1078,7 @@ function hn({
|
|
|
1035
1078
|
marginTop: "16px"
|
|
1036
1079
|
},
|
|
1037
1080
|
children: [
|
|
1038
|
-
/* @__PURE__ */ e(
|
|
1081
|
+
/* @__PURE__ */ e(Gt, { children: /* @__PURE__ */ d(
|
|
1039
1082
|
"div",
|
|
1040
1083
|
{
|
|
1041
1084
|
style: {
|
|
@@ -1115,13 +1158,13 @@ function hn({
|
|
|
1115
1158
|
]
|
|
1116
1159
|
}
|
|
1117
1160
|
) }),
|
|
1118
|
-
(g && g.length > 0 || m) && /* @__PURE__ */ d(
|
|
1161
|
+
(g && g.length > 0 || m) && /* @__PURE__ */ d(Bt, { children: [
|
|
1119
1162
|
g == null ? void 0 : g.map((y, S) => /* @__PURE__ */ e($e, { children: /* @__PURE__ */ d(
|
|
1120
1163
|
"button",
|
|
1121
1164
|
{
|
|
1122
1165
|
type: "button",
|
|
1123
1166
|
onClick: y.onClick,
|
|
1124
|
-
style:
|
|
1167
|
+
style: Dt,
|
|
1125
1168
|
onMouseEnter: (F) => {
|
|
1126
1169
|
F.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)";
|
|
1127
1170
|
},
|
|
@@ -1136,13 +1179,13 @@ function hn({
|
|
|
1136
1179
|
) }, `${y.label}-${S}`)),
|
|
1137
1180
|
m
|
|
1138
1181
|
] }),
|
|
1139
|
-
|
|
1182
|
+
p ?? /* @__PURE__ */ e(Jt, { children: /* @__PURE__ */ e($e, { children: /* @__PURE__ */ d(
|
|
1140
1183
|
"button",
|
|
1141
1184
|
{
|
|
1142
1185
|
type: "button",
|
|
1143
|
-
onClick:
|
|
1186
|
+
onClick: Le,
|
|
1144
1187
|
style: {
|
|
1145
|
-
...
|
|
1188
|
+
...Dt,
|
|
1146
1189
|
color: "var(--sa-background-error, #c9184a)",
|
|
1147
1190
|
fontWeight: 500
|
|
1148
1191
|
},
|
|
@@ -1183,7 +1226,7 @@ function hn({
|
|
|
1183
1226
|
flex: 1,
|
|
1184
1227
|
overflowY: "auto"
|
|
1185
1228
|
},
|
|
1186
|
-
children: t || /* @__PURE__ */ e(
|
|
1229
|
+
children: t || /* @__PURE__ */ e(pt, {})
|
|
1187
1230
|
}
|
|
1188
1231
|
)
|
|
1189
1232
|
] })
|
|
@@ -1205,19 +1248,19 @@ function hn({
|
|
|
1205
1248
|
children: s
|
|
1206
1249
|
}
|
|
1207
1250
|
),
|
|
1208
|
-
/* @__PURE__ */ d(Ue, { isShow: fe, onHide:
|
|
1251
|
+
/* @__PURE__ */ d(Ue, { isShow: fe, onHide: ze, children: [
|
|
1209
1252
|
/* @__PURE__ */ e(Fe, { children: "Confirmation Logout" }),
|
|
1210
1253
|
/* @__PURE__ */ e(qe, { children: "Are you sure you want to end the session and exit the page?" }),
|
|
1211
|
-
/* @__PURE__ */ e(
|
|
1212
|
-
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(R, { secondary: !0, onClick:
|
|
1213
|
-
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(R, { primary: !0, onClick:
|
|
1254
|
+
/* @__PURE__ */ e(ot, { children: /* @__PURE__ */ e(f, { display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ d($, { direction: "row", gap: "sm", align: "center", children: [
|
|
1255
|
+
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(R, { secondary: !0, onClick: ze, children: "Cancel" }) }),
|
|
1256
|
+
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(R, { primary: !0, onClick: Pe, children: "Yes, Sure" }) })
|
|
1214
1257
|
] }) }) })
|
|
1215
1258
|
] }),
|
|
1216
|
-
Y && /* @__PURE__ */ d(
|
|
1259
|
+
Y && /* @__PURE__ */ d(G, { children: [
|
|
1217
1260
|
/* @__PURE__ */ e(
|
|
1218
1261
|
"div",
|
|
1219
1262
|
{
|
|
1220
|
-
onClick: () =>
|
|
1263
|
+
onClick: () => J(null),
|
|
1221
1264
|
style: {
|
|
1222
1265
|
position: "fixed",
|
|
1223
1266
|
inset: 0,
|
|
@@ -1263,7 +1306,7 @@ function hn({
|
|
|
1263
1306
|
}
|
|
1264
1307
|
),
|
|
1265
1308
|
(Ne = Y.item.children) == null ? void 0 : Ne.map((y) => {
|
|
1266
|
-
const S = ie(y.to), F =
|
|
1309
|
+
const S = ie(y.to), F = Xe(
|
|
1267
1310
|
y.badge,
|
|
1268
1311
|
T[y.id]
|
|
1269
1312
|
);
|
|
@@ -1271,7 +1314,7 @@ function hn({
|
|
|
1271
1314
|
"button",
|
|
1272
1315
|
{
|
|
1273
1316
|
onClick: () => {
|
|
1274
|
-
j(y.to),
|
|
1317
|
+
j(y.to), J(null);
|
|
1275
1318
|
},
|
|
1276
1319
|
style: {
|
|
1277
1320
|
width: "100%",
|
|
@@ -1288,11 +1331,11 @@ function hn({
|
|
|
1288
1331
|
fontSize: "0.875rem",
|
|
1289
1332
|
fontWeight: 500
|
|
1290
1333
|
},
|
|
1291
|
-
onMouseEnter: (
|
|
1292
|
-
S || (
|
|
1334
|
+
onMouseEnter: (x) => {
|
|
1335
|
+
S || (x.currentTarget.style.backgroundColor = "var(--sa-color-gray-100, #f8f8f8)");
|
|
1293
1336
|
},
|
|
1294
|
-
onMouseLeave: (
|
|
1295
|
-
S || (
|
|
1337
|
+
onMouseLeave: (x) => {
|
|
1338
|
+
S || (x.currentTarget.style.backgroundColor = "transparent");
|
|
1296
1339
|
},
|
|
1297
1340
|
children: [
|
|
1298
1341
|
y.icon && /* @__PURE__ */ e(
|
|
@@ -1324,7 +1367,66 @@ function hn({
|
|
|
1324
1367
|
] })
|
|
1325
1368
|
] });
|
|
1326
1369
|
}
|
|
1327
|
-
const
|
|
1370
|
+
const yr = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
1371
|
+
f,
|
|
1372
|
+
{
|
|
1373
|
+
role: "button",
|
|
1374
|
+
cursor: "pointer",
|
|
1375
|
+
"aria-pressed": "true",
|
|
1376
|
+
display: "inline-block",
|
|
1377
|
+
tabIndex: 0,
|
|
1378
|
+
...r,
|
|
1379
|
+
children: t
|
|
1380
|
+
}
|
|
1381
|
+
), ut = te(yr), vt = ({
|
|
1382
|
+
title: t,
|
|
1383
|
+
iconName: r,
|
|
1384
|
+
textColor: n,
|
|
1385
|
+
iconColor: l,
|
|
1386
|
+
hoverTextColor: i,
|
|
1387
|
+
hoverIconColor: o
|
|
1388
|
+
}) => {
|
|
1389
|
+
const [s, a] = M(!1);
|
|
1390
|
+
return /* @__PURE__ */ d(
|
|
1391
|
+
f,
|
|
1392
|
+
{
|
|
1393
|
+
direction: "row",
|
|
1394
|
+
gap: "xs",
|
|
1395
|
+
align: "center",
|
|
1396
|
+
onMouseEnter: () => a(!0),
|
|
1397
|
+
onMouseLeave: () => a(!1),
|
|
1398
|
+
style: { cursor: "pointer" },
|
|
1399
|
+
children: [
|
|
1400
|
+
/* @__PURE__ */ e(
|
|
1401
|
+
k,
|
|
1402
|
+
{
|
|
1403
|
+
name: r || "ChevronLeft",
|
|
1404
|
+
size: "xs",
|
|
1405
|
+
style: {
|
|
1406
|
+
color: s ? o ?? "var(--sa-text-subtle, #8c8f97)" : l ?? "var(--sa-text-subtle, #8c8f97)",
|
|
1407
|
+
transition: "color 0.15s ease"
|
|
1408
|
+
}
|
|
1409
|
+
}
|
|
1410
|
+
),
|
|
1411
|
+
/* @__PURE__ */ e(
|
|
1412
|
+
C,
|
|
1413
|
+
{
|
|
1414
|
+
variant: "sub-h3",
|
|
1415
|
+
style: {
|
|
1416
|
+
color: s ? i ?? "var(--sa-text-primary, #292a2e)" : n ?? "var(--sa-text-subtle, #8c8f97)",
|
|
1417
|
+
textDecoration: s ? "underline" : "none",
|
|
1418
|
+
transition: "color 0.15s ease"
|
|
1419
|
+
},
|
|
1420
|
+
children: t || "Back"
|
|
1421
|
+
}
|
|
1422
|
+
)
|
|
1423
|
+
]
|
|
1424
|
+
}
|
|
1425
|
+
);
|
|
1426
|
+
}, xn = (t) => {
|
|
1427
|
+
const { onClick: r, navigateTo: n, ...l } = t;
|
|
1428
|
+
return n ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Vt, { to: n, replace: !0, style: { textDecoration: "none" }, children: /* @__PURE__ */ e(vt, { ...l }) }) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(ut, { onClick: r, children: /* @__PURE__ */ e(vt, { ...l }) }) });
|
|
1429
|
+
}, Ke = [
|
|
1328
1430
|
// brand (blue)
|
|
1329
1431
|
{
|
|
1330
1432
|
icon: "var(--sa-color-brand-400, #3366b7)",
|
|
@@ -1368,7 +1470,7 @@ const Xe = [
|
|
|
1368
1470
|
activeShadow: "rgba(255, 117, 143, 0.25)"
|
|
1369
1471
|
}
|
|
1370
1472
|
];
|
|
1371
|
-
function
|
|
1473
|
+
function bt(t, r, n) {
|
|
1372
1474
|
return {
|
|
1373
1475
|
display: "flex",
|
|
1374
1476
|
alignItems: "center",
|
|
@@ -1384,7 +1486,7 @@ function xt(t, r, n) {
|
|
|
1384
1486
|
transition: "box-shadow 0.2s ease, transform 0.2s ease, background-color 0.15s ease, border-color 0.15s ease"
|
|
1385
1487
|
};
|
|
1386
1488
|
}
|
|
1387
|
-
const
|
|
1489
|
+
const wt = {
|
|
1388
1490
|
fontSize: "11px",
|
|
1389
1491
|
fontWeight: 500,
|
|
1390
1492
|
textAlign: "center",
|
|
@@ -1393,7 +1495,7 @@ const pt = {
|
|
|
1393
1495
|
color: "var(--sa-background-primary, #ffffff)",
|
|
1394
1496
|
lineHeight: "1.3",
|
|
1395
1497
|
maxWidth: "80px"
|
|
1396
|
-
},
|
|
1498
|
+
}, kt = {
|
|
1397
1499
|
display: "flex",
|
|
1398
1500
|
flexDirection: "column",
|
|
1399
1501
|
alignItems: "center",
|
|
@@ -1403,16 +1505,16 @@ const pt = {
|
|
|
1403
1505
|
cursor: "pointer",
|
|
1404
1506
|
padding: 0
|
|
1405
1507
|
};
|
|
1406
|
-
function
|
|
1508
|
+
function pr({
|
|
1407
1509
|
isShow: t,
|
|
1408
1510
|
onHide: r,
|
|
1409
1511
|
menus: n,
|
|
1410
1512
|
selectedGroupId: l,
|
|
1411
1513
|
onSelect: i
|
|
1412
1514
|
}) {
|
|
1413
|
-
const [o, s] =
|
|
1515
|
+
const [o, s] = M(void 0), a = (u) => {
|
|
1414
1516
|
i(u), r();
|
|
1415
|
-
}, h =
|
|
1517
|
+
}, h = Ke[0];
|
|
1416
1518
|
return /* @__PURE__ */ e(
|
|
1417
1519
|
Ue,
|
|
1418
1520
|
{
|
|
@@ -1439,26 +1541,26 @@ function hr({
|
|
|
1439
1541
|
onClick: () => a(null),
|
|
1440
1542
|
onMouseEnter: () => s("all"),
|
|
1441
1543
|
onMouseLeave: () => s(void 0),
|
|
1442
|
-
style:
|
|
1544
|
+
style: kt,
|
|
1443
1545
|
children: [
|
|
1444
|
-
/* @__PURE__ */ e("div", { style:
|
|
1445
|
-
/* @__PURE__ */ e("span", { style:
|
|
1546
|
+
/* @__PURE__ */ e("div", { style: bt(l === null, o === "all", h), children: /* @__PURE__ */ e("div", { style: { color: h.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(k, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
|
|
1547
|
+
/* @__PURE__ */ e("span", { style: wt, children: "Semua" })
|
|
1446
1548
|
]
|
|
1447
1549
|
}
|
|
1448
1550
|
),
|
|
1449
1551
|
n.map((u, g) => {
|
|
1450
1552
|
var D;
|
|
1451
|
-
const m = l === u.id,
|
|
1553
|
+
const m = l === u.id, p = o === u.id, v = ((D = u.items[0]) == null ? void 0 : D.icon) ?? "Grid", A = Ke[(g + 1) % Ke.length];
|
|
1452
1554
|
return /* @__PURE__ */ d(
|
|
1453
1555
|
"button",
|
|
1454
1556
|
{
|
|
1455
1557
|
onClick: () => a(u.id),
|
|
1456
1558
|
onMouseEnter: () => s(u.id),
|
|
1457
1559
|
onMouseLeave: () => s(void 0),
|
|
1458
|
-
style:
|
|
1560
|
+
style: kt,
|
|
1459
1561
|
children: [
|
|
1460
|
-
/* @__PURE__ */ e("div", { style:
|
|
1461
|
-
/* @__PURE__ */ e("span", { style:
|
|
1562
|
+
/* @__PURE__ */ e("div", { style: bt(m, p, A), children: /* @__PURE__ */ e("div", { style: { color: A.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(k, { name: v, size: "lg", style: { width: 32, height: 32 } }) }) }),
|
|
1563
|
+
/* @__PURE__ */ e("span", { style: wt, children: u.name })
|
|
1462
1564
|
]
|
|
1463
1565
|
},
|
|
1464
1566
|
u.id
|
|
@@ -1470,19 +1572,19 @@ function hr({
|
|
|
1470
1572
|
}
|
|
1471
1573
|
);
|
|
1472
1574
|
}
|
|
1473
|
-
function
|
|
1575
|
+
function Cn({
|
|
1474
1576
|
onSelect: t,
|
|
1475
1577
|
"aria-label": r = "Pilih module"
|
|
1476
1578
|
} = {}) {
|
|
1477
|
-
const n =
|
|
1579
|
+
const n = Ot(), l = dt(), { selectedGroupId: i, setSelectedGroupId: o } = Zt(), [s, a] = M(!1), h = (u) => {
|
|
1478
1580
|
var g;
|
|
1479
1581
|
if (o(u), u !== null) {
|
|
1480
|
-
const m = n.menus.find((v) => v.id === u),
|
|
1481
|
-
|
|
1582
|
+
const m = n.menus.find((v) => v.id === u), p = (g = m == null ? void 0 : m.items[0]) == null ? void 0 : g.to;
|
|
1583
|
+
p && l(p);
|
|
1482
1584
|
}
|
|
1483
1585
|
t == null || t(u);
|
|
1484
1586
|
};
|
|
1485
|
-
return /* @__PURE__ */ d(
|
|
1587
|
+
return /* @__PURE__ */ d(G, { children: [
|
|
1486
1588
|
/* @__PURE__ */ d("div", { style: { position: "relative" }, children: [
|
|
1487
1589
|
/* @__PURE__ */ e(
|
|
1488
1590
|
"button",
|
|
@@ -1527,7 +1629,7 @@ function un({
|
|
|
1527
1629
|
)
|
|
1528
1630
|
] }),
|
|
1529
1631
|
/* @__PURE__ */ e(
|
|
1530
|
-
|
|
1632
|
+
pr,
|
|
1531
1633
|
{
|
|
1532
1634
|
isShow: s,
|
|
1533
1635
|
onHide: () => a(!1),
|
|
@@ -1538,9 +1640,9 @@ function un({
|
|
|
1538
1640
|
)
|
|
1539
1641
|
] });
|
|
1540
1642
|
}
|
|
1541
|
-
const
|
|
1643
|
+
const Dn = te(
|
|
1542
1644
|
({ children: t, coverImage: r, logo: n }) => {
|
|
1543
|
-
const l = ee("md"), i =
|
|
1645
|
+
const l = ee("md"), i = er();
|
|
1544
1646
|
return /* @__PURE__ */ d(
|
|
1545
1647
|
f,
|
|
1546
1648
|
{
|
|
@@ -1626,7 +1728,7 @@ const fn = te(
|
|
|
1626
1728
|
}
|
|
1627
1729
|
);
|
|
1628
1730
|
}
|
|
1629
|
-
),
|
|
1731
|
+
), xr = (t, r) => {
|
|
1630
1732
|
const n = [];
|
|
1631
1733
|
if (r === 0)
|
|
1632
1734
|
return n.push(t), n;
|
|
@@ -1635,7 +1737,7 @@ const fn = te(
|
|
|
1635
1737
|
n.push(i);
|
|
1636
1738
|
}
|
|
1637
1739
|
return n;
|
|
1638
|
-
},
|
|
1740
|
+
}, Cr = te(
|
|
1639
1741
|
({
|
|
1640
1742
|
value: t,
|
|
1641
1743
|
label: r,
|
|
@@ -1661,14 +1763,14 @@ const fn = te(
|
|
|
1661
1763
|
}),
|
|
1662
1764
|
[i, o]
|
|
1663
1765
|
), h = () => typeof r == "string" ? /* @__PURE__ */ e(C, { fontWeight: "medium", color: "text-muted", children: r }) : r, u = () => typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ e(C, { color: "text", fontWeight: "medium", children: t }) : t, g = () => typeof n == "string" || typeof n == "number" ? /* @__PURE__ */ e(C, { fontWeight: "medium", color: "text-muted", children: n }) : n;
|
|
1664
|
-
return /* @__PURE__ */ d(
|
|
1766
|
+
return /* @__PURE__ */ d(Ie, { children: [
|
|
1665
1767
|
/* @__PURE__ */ e(we, { style: s, width: l, children: h() }),
|
|
1666
1768
|
n ? /* @__PURE__ */ e(we, { style: a, width: 24, children: g() }) : null,
|
|
1667
1769
|
/* @__PURE__ */ e(we, { style: s, children: u() })
|
|
1668
1770
|
] });
|
|
1669
1771
|
}
|
|
1670
|
-
),
|
|
1671
|
-
|
|
1772
|
+
), Dr = te(({ fields: t, separator: r, labelWidth: n }) => /* @__PURE__ */ e(At, { children: t.map((l, i) => /* @__PURE__ */ e(
|
|
1773
|
+
Cr,
|
|
1672
1774
|
{
|
|
1673
1775
|
separator: r,
|
|
1674
1776
|
labelWidth: n,
|
|
@@ -1676,7 +1778,7 @@ const fn = te(
|
|
|
1676
1778
|
...l
|
|
1677
1779
|
},
|
|
1678
1780
|
`field-group-field-${i}`
|
|
1679
|
-
)) })),
|
|
1781
|
+
)) })), vn = te(
|
|
1680
1782
|
({
|
|
1681
1783
|
maxRow: t = 0,
|
|
1682
1784
|
maxColumn: r = 2,
|
|
@@ -1686,7 +1788,7 @@ const fn = te(
|
|
|
1686
1788
|
bordered: o = !1
|
|
1687
1789
|
}) => {
|
|
1688
1790
|
const s = De(
|
|
1689
|
-
() =>
|
|
1791
|
+
() => xr(l, t),
|
|
1690
1792
|
[l, t]
|
|
1691
1793
|
), a = s.length > 2, h = () => {
|
|
1692
1794
|
switch (r) {
|
|
@@ -1722,7 +1824,7 @@ const fn = te(
|
|
|
1722
1824
|
width: a ? h() : void 0,
|
|
1723
1825
|
marginBottom: a ? "lg" : void 0,
|
|
1724
1826
|
children: /* @__PURE__ */ e(
|
|
1725
|
-
|
|
1827
|
+
Dr,
|
|
1726
1828
|
{
|
|
1727
1829
|
labelWidth: i,
|
|
1728
1830
|
fields: u,
|
|
@@ -1735,7 +1837,7 @@ const fn = te(
|
|
|
1735
1837
|
}
|
|
1736
1838
|
);
|
|
1737
1839
|
}
|
|
1738
|
-
),
|
|
1840
|
+
), bn = ({
|
|
1739
1841
|
title: t,
|
|
1740
1842
|
content: r,
|
|
1741
1843
|
onHide: n,
|
|
@@ -1770,24 +1872,13 @@ const fn = te(
|
|
|
1770
1872
|
return /* @__PURE__ */ d(Ue, { isShow: i, onHide: n, children: [
|
|
1771
1873
|
a(),
|
|
1772
1874
|
/* @__PURE__ */ e(qe, { children: /* @__PURE__ */ e(C, { children: r }) }),
|
|
1773
|
-
/* @__PURE__ */ e(
|
|
1875
|
+
/* @__PURE__ */ e(ot, { children: /* @__PURE__ */ d(f, { justify: "flex-end", direction: "row", gap: "sm", children: [
|
|
1774
1876
|
/* @__PURE__ */ e(R, { secondary: !0, onClick: n, children: "Cancel" }),
|
|
1775
1877
|
h()
|
|
1776
1878
|
] }) })
|
|
1777
1879
|
] });
|
|
1778
|
-
},
|
|
1779
|
-
|
|
1780
|
-
{
|
|
1781
|
-
role: "button",
|
|
1782
|
-
cursor: "pointer",
|
|
1783
|
-
"aria-pressed": "true",
|
|
1784
|
-
display: "inline-block",
|
|
1785
|
-
tabIndex: 0,
|
|
1786
|
-
...r,
|
|
1787
|
-
children: t
|
|
1788
|
-
}
|
|
1789
|
-
), Ot = te(mr), yr = ({ backButton: t }) => {
|
|
1790
|
-
const [r, n] = B(!1), l = (t == null ? void 0 : t.iconColor) ?? "var(--sa-text-subtle, #8c8f97)", i = (t == null ? void 0 : t.textColor) ?? "var(--sa-text-subtle, #8c8f97)", o = (t == null ? void 0 : t.hoverIconColor) ?? "var(--sa-text-subtle, #8c8f97)", s = (t == null ? void 0 : t.hoverTextColor) ?? "var(--sa-text-primary, #292a2e)";
|
|
1880
|
+
}, vr = ({ backButton: t }) => {
|
|
1881
|
+
const [r, n] = M(!1), l = (t == null ? void 0 : t.iconColor) ?? "var(--sa-text-subtle, #8c8f97)", i = (t == null ? void 0 : t.textColor) ?? "var(--sa-text-subtle, #8c8f97)", o = (t == null ? void 0 : t.hoverIconColor) ?? "var(--sa-text-subtle, #8c8f97)", s = (t == null ? void 0 : t.hoverTextColor) ?? "var(--sa-text-primary, #292a2e)";
|
|
1791
1882
|
return /* @__PURE__ */ d(
|
|
1792
1883
|
f,
|
|
1793
1884
|
{
|
|
@@ -1824,7 +1915,7 @@ const fn = te(
|
|
|
1824
1915
|
]
|
|
1825
1916
|
}
|
|
1826
1917
|
);
|
|
1827
|
-
},
|
|
1918
|
+
}, br = ({
|
|
1828
1919
|
backButton: t,
|
|
1829
1920
|
title: r,
|
|
1830
1921
|
titleTag: n,
|
|
@@ -1835,38 +1926,38 @@ const fn = te(
|
|
|
1835
1926
|
containerProps: a,
|
|
1836
1927
|
headerProps: h
|
|
1837
1928
|
}) => {
|
|
1838
|
-
const u = ee("lg"), g =
|
|
1929
|
+
const u = ee("lg"), g = dt(), m = Ve(), p = t == null ? void 0 : t.show, v = () => {
|
|
1839
1930
|
if (typeof (t == null ? void 0 : t.onClick) == "function") {
|
|
1840
1931
|
t.onClick();
|
|
1841
1932
|
return;
|
|
1842
1933
|
}
|
|
1843
1934
|
g(-1, { replace: !0 });
|
|
1844
|
-
}, A = () => o ?
|
|
1845
|
-
({ title: Z, icon: Q, buttonProps:
|
|
1935
|
+
}, A = () => o ? nt(o) ? o : /* @__PURE__ */ e(f, { direction: "row", gap: "lg", children: o.map(
|
|
1936
|
+
({ title: Z, icon: Q, buttonProps: L, onClick: fe }, P) => !Z && !Q ? null : /* @__PURE__ */ e(
|
|
1846
1937
|
R,
|
|
1847
1938
|
{
|
|
1848
1939
|
fullWidth: !u,
|
|
1849
1940
|
iconLeft: Q ? /* @__PURE__ */ e(k, { name: Q, size: "md" }) : void 0,
|
|
1850
1941
|
onClick: fe,
|
|
1851
|
-
...
|
|
1942
|
+
...L,
|
|
1852
1943
|
children: Z
|
|
1853
1944
|
},
|
|
1854
1945
|
`action-${P}`
|
|
1855
1946
|
)
|
|
1856
1947
|
) }) : null, D = () => {
|
|
1857
|
-
const Z = /* @__PURE__ */ e(
|
|
1948
|
+
const Z = /* @__PURE__ */ e(vr, { backButton: t });
|
|
1858
1949
|
return t != null && t.navigateTo ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(
|
|
1859
|
-
|
|
1950
|
+
Vt,
|
|
1860
1951
|
{
|
|
1861
1952
|
to: t.navigateTo,
|
|
1862
1953
|
replace: !0,
|
|
1863
1954
|
style: { textDecoration: "none" },
|
|
1864
1955
|
children: Z
|
|
1865
1956
|
}
|
|
1866
|
-
) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(
|
|
1957
|
+
) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(ut, { onClick: v, children: Z }) });
|
|
1867
1958
|
}, T = () => {
|
|
1868
|
-
const Z = !!r, Q =
|
|
1869
|
-
return !Z && !Q && !
|
|
1959
|
+
const Z = !!r, Q = nt(o) ? !0 : Array.isArray(o) && o.length > 0;
|
|
1960
|
+
return !Z && !Q && !p ? null : /* @__PURE__ */ d(
|
|
1870
1961
|
f,
|
|
1871
1962
|
{
|
|
1872
1963
|
gap: "xs",
|
|
@@ -1874,7 +1965,7 @@ const fn = te(
|
|
|
1874
1965
|
paddingInline: h == null ? void 0 : h.paddingInline,
|
|
1875
1966
|
...h,
|
|
1876
1967
|
children: [
|
|
1877
|
-
|
|
1968
|
+
p && D(),
|
|
1878
1969
|
(Z || Q) && /* @__PURE__ */ d(
|
|
1879
1970
|
f,
|
|
1880
1971
|
{
|
|
@@ -1913,24 +2004,24 @@ const fn = te(
|
|
|
1913
2004
|
},
|
|
1914
2005
|
m.pathname
|
|
1915
2006
|
);
|
|
1916
|
-
},
|
|
2007
|
+
}, wn = te(br), wr = {
|
|
1917
2008
|
icon: "Cross",
|
|
1918
2009
|
title: ""
|
|
1919
|
-
},
|
|
2010
|
+
}, kr = "calc(100vw - 16px)", St = (t) => t == null ? void 0 : `min(${typeof t == "number" ? `${t}px` : t}, ${kr})`, Sr = It(
|
|
1920
2011
|
({
|
|
1921
2012
|
onHide: t,
|
|
1922
2013
|
show: r,
|
|
1923
2014
|
withBlur: n = !1,
|
|
1924
2015
|
style: l,
|
|
1925
2016
|
children: i,
|
|
1926
|
-
closeButton: o =
|
|
2017
|
+
closeButton: o = wr,
|
|
1927
2018
|
width: s,
|
|
1928
2019
|
minWidth: a = "357px",
|
|
1929
2020
|
maxWidth: h = "357px"
|
|
1930
2021
|
}, u) => {
|
|
1931
|
-
const g =
|
|
2022
|
+
const g = St(s ?? a), m = St(s ?? h);
|
|
1932
2023
|
return /* @__PURE__ */ e(
|
|
1933
|
-
|
|
2024
|
+
qt,
|
|
1934
2025
|
{
|
|
1935
2026
|
blur: n,
|
|
1936
2027
|
isShow: r,
|
|
@@ -1971,7 +2062,7 @@ const fn = te(
|
|
|
1971
2062
|
}
|
|
1972
2063
|
);
|
|
1973
2064
|
}
|
|
1974
|
-
),
|
|
2065
|
+
), $t = te(
|
|
1975
2066
|
({ children: t, borderBottom: r = !0, padding: n = !0 }) => {
|
|
1976
2067
|
const l = ee("lg");
|
|
1977
2068
|
return /* @__PURE__ */ e(
|
|
@@ -1987,7 +2078,7 @@ const fn = te(
|
|
|
1987
2078
|
}
|
|
1988
2079
|
);
|
|
1989
2080
|
}
|
|
1990
|
-
),
|
|
2081
|
+
), _t = te(
|
|
1991
2082
|
({ children: t, borderTop: r = !0, padding: n = !0 }) => {
|
|
1992
2083
|
const l = ee("lg");
|
|
1993
2084
|
return /* @__PURE__ */ e(
|
|
@@ -2003,7 +2094,7 @@ const fn = te(
|
|
|
2003
2094
|
}
|
|
2004
2095
|
);
|
|
2005
2096
|
}
|
|
2006
|
-
),
|
|
2097
|
+
), Fr = te(
|
|
2007
2098
|
({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
2008
2099
|
f,
|
|
2009
2100
|
{
|
|
@@ -2015,7 +2106,7 @@ const fn = te(
|
|
|
2015
2106
|
children: t
|
|
2016
2107
|
}
|
|
2017
2108
|
)
|
|
2018
|
-
),
|
|
2109
|
+
), kn = te(
|
|
2019
2110
|
({
|
|
2020
2111
|
children: t,
|
|
2021
2112
|
title: r,
|
|
@@ -2030,7 +2121,7 @@ const fn = te(
|
|
|
2030
2121
|
footerProps: g = { borderTop: !0 },
|
|
2031
2122
|
variantTag: m = "info"
|
|
2032
2123
|
}) => {
|
|
2033
|
-
const
|
|
2124
|
+
const p = ee("lg"), v = () => n ? /* @__PURE__ */ d(f, { direction: "row", gap: "sm", align: "center", children: [
|
|
2034
2125
|
/* @__PURE__ */ e(C, { fontWeight: "medium", children: r }),
|
|
2035
2126
|
/* @__PURE__ */ e(Ee, { border: !0, text: n, variant: m })
|
|
2036
2127
|
] }) : /* @__PURE__ */ e(C, { fontWeight: "medium", children: r }), A = () => i || /* @__PURE__ */ d(
|
|
@@ -2045,7 +2136,7 @@ const fn = te(
|
|
|
2045
2136
|
/* @__PURE__ */ e(
|
|
2046
2137
|
f,
|
|
2047
2138
|
{
|
|
2048
|
-
style:
|
|
2139
|
+
style: p ? { width: "100%", maxWidth: "19.313rem" } : { flex: 1 },
|
|
2049
2140
|
...s,
|
|
2050
2141
|
children: l ?? null
|
|
2051
2142
|
}
|
|
@@ -2068,17 +2159,17 @@ const fn = te(
|
|
|
2068
2159
|
...(a == null ? void 0 : a.style) ?? {}
|
|
2069
2160
|
},
|
|
2070
2161
|
children: [
|
|
2071
|
-
i !== null && D ? /* @__PURE__ */ e(
|
|
2072
|
-
/* @__PURE__ */ e(
|
|
2073
|
-
o ? /* @__PURE__ */ e(
|
|
2162
|
+
i !== null && D ? /* @__PURE__ */ e($t, { ...u, children: A() }) : null,
|
|
2163
|
+
/* @__PURE__ */ e(Fr, { ...h, children: t }),
|
|
2164
|
+
o ? /* @__PURE__ */ e(_t, { ...g, children: o }) : null
|
|
2074
2165
|
]
|
|
2075
2166
|
}
|
|
2076
2167
|
);
|
|
2077
2168
|
}
|
|
2078
|
-
),
|
|
2079
|
-
const [n, l] =
|
|
2169
|
+
), Er = "var(--sa-color-secondary-50, #e6e9fb)", Mr = ({ children: t, onClick: r }) => {
|
|
2170
|
+
const [n, l] = M("");
|
|
2080
2171
|
return /* @__PURE__ */ e(
|
|
2081
|
-
|
|
2172
|
+
ut,
|
|
2082
2173
|
{
|
|
2083
2174
|
fullWidth: !0,
|
|
2084
2175
|
height: "height-8",
|
|
@@ -2090,14 +2181,14 @@ const fn = te(
|
|
|
2090
2181
|
gap: "spacing-1",
|
|
2091
2182
|
cursor: "pointer",
|
|
2092
2183
|
onClick: r,
|
|
2093
|
-
onMouseEnter: () => l(
|
|
2184
|
+
onMouseEnter: () => l(Er),
|
|
2094
2185
|
borderRadius: "rounded-md",
|
|
2095
2186
|
onMouseLeave: () => l(""),
|
|
2096
2187
|
style: { backgroundColor: n },
|
|
2097
2188
|
children: t
|
|
2098
2189
|
}
|
|
2099
2190
|
);
|
|
2100
|
-
},
|
|
2191
|
+
}, Lr = te(Mr), Wr = ({
|
|
2101
2192
|
icon: t,
|
|
2102
2193
|
items: r = [],
|
|
2103
2194
|
style: n,
|
|
@@ -2116,9 +2207,9 @@ const fn = te(
|
|
|
2116
2207
|
}),
|
|
2117
2208
|
[i]
|
|
2118
2209
|
);
|
|
2119
|
-
return /* @__PURE__ */ d(
|
|
2210
|
+
return /* @__PURE__ */ d(Lt, { position: o, style: n, children: [
|
|
2120
2211
|
/* @__PURE__ */ e($e, { style: l, children: /* @__PURE__ */ e(R, { size: "sm", secondary: !0, ...s, children: /* @__PURE__ */ e(k, { name: t, ...a }) }) }),
|
|
2121
|
-
/* @__PURE__ */ e(
|
|
2212
|
+
/* @__PURE__ */ e(Wt, { style: u, children: r.map((g, m) => h === "outline-button" ? /* @__PURE__ */ e(Bt, { children: /* @__PURE__ */ d(
|
|
2122
2213
|
R,
|
|
2123
2214
|
{
|
|
2124
2215
|
size: "sm",
|
|
@@ -2132,7 +2223,7 @@ const fn = te(
|
|
|
2132
2223
|
]
|
|
2133
2224
|
}
|
|
2134
2225
|
) }, g.id || m) : /* @__PURE__ */ d(
|
|
2135
|
-
|
|
2226
|
+
Lr,
|
|
2136
2227
|
{
|
|
2137
2228
|
onClick: g.onClick,
|
|
2138
2229
|
...g.buttonProps,
|
|
@@ -2144,21 +2235,21 @@ const fn = te(
|
|
|
2144
2235
|
g.id || m
|
|
2145
2236
|
)) })
|
|
2146
2237
|
] });
|
|
2147
|
-
},
|
|
2148
|
-
H1:
|
|
2149
|
-
H2:
|
|
2150
|
-
H3:
|
|
2151
|
-
H4:
|
|
2152
|
-
H5:
|
|
2153
|
-
H6:
|
|
2154
|
-
SubH1:
|
|
2155
|
-
SubH2:
|
|
2156
|
-
SubH3:
|
|
2157
|
-
Body1:
|
|
2158
|
-
Body2:
|
|
2159
|
-
Body3:
|
|
2160
|
-
},
|
|
2161
|
-
const [t, r] =
|
|
2238
|
+
}, Sn = te(Wr), Br = (t) => /* @__PURE__ */ e(C, { variant: "h1", children: t.children, ...t.props }), Ar = (t) => /* @__PURE__ */ e(C, { variant: "h2", children: t.children, ...t.props }), Rr = (t) => /* @__PURE__ */ e(C, { variant: "h3", children: t.children, ...t.props }), Hr = (t) => /* @__PURE__ */ e(C, { variant: "h4", children: t.children, ...t.props }), Ir = (t) => /* @__PURE__ */ e(C, { variant: "h5", children: t.children, ...t.props }), Vr = (t) => /* @__PURE__ */ e(C, { variant: "h6", children: t.children, ...t.props }), zr = (t) => /* @__PURE__ */ e(C, { variant: "sub-h1", children: t.children, ...t.props }), Tr = (t) => /* @__PURE__ */ e(C, { variant: "sub-h2", children: t.children, ...t.props }), Or = (t) => /* @__PURE__ */ e(C, { variant: "sub-h3", children: t.children, ...t.props }), Nr = (t) => /* @__PURE__ */ e(C, { variant: "body-1", children: t.children, ...t.props }), jr = (t) => /* @__PURE__ */ e(C, { variant: "body-2", children: t.children, ...t.props }), Zr = (t) => /* @__PURE__ */ e(C, { variant: "body-3", children: t.children, ...t.props }), me = {
|
|
2239
|
+
H1: Br,
|
|
2240
|
+
H2: Ar,
|
|
2241
|
+
H3: Rr,
|
|
2242
|
+
H4: Hr,
|
|
2243
|
+
H5: Ir,
|
|
2244
|
+
H6: Vr,
|
|
2245
|
+
SubH1: zr,
|
|
2246
|
+
SubH2: Tr,
|
|
2247
|
+
SubH3: Or,
|
|
2248
|
+
Body1: Nr,
|
|
2249
|
+
Body2: jr,
|
|
2250
|
+
Body3: Zr
|
|
2251
|
+
}, ft = () => {
|
|
2252
|
+
const [t, r] = Qe(), n = Ge(t.toString()), l = zt(), i = Ve(), o = l.id;
|
|
2162
2253
|
return {
|
|
2163
2254
|
// query params
|
|
2164
2255
|
setSearchParams: r,
|
|
@@ -2175,7 +2266,7 @@ const fn = te(
|
|
|
2175
2266
|
id: o,
|
|
2176
2267
|
hasId: !!o
|
|
2177
2268
|
};
|
|
2178
|
-
},
|
|
2269
|
+
}, $r = (t) => JSON.stringify(t), _r = (t) => JSON.stringify(t), Ur = (t) => JSON.stringify(t), qr = (t) => JSON.stringify(t), Gr = (t) => t, Jr = (t) => JSON.stringify(t), Ft = ({
|
|
2179
2270
|
value: t,
|
|
2180
2271
|
name: r,
|
|
2181
2272
|
type: n,
|
|
@@ -2190,23 +2281,23 @@ const fn = te(
|
|
|
2190
2281
|
let u;
|
|
2191
2282
|
switch (n) {
|
|
2192
2283
|
case "search":
|
|
2193
|
-
u =
|
|
2284
|
+
u = Gr(t);
|
|
2194
2285
|
break;
|
|
2195
2286
|
case "dropdown":
|
|
2196
2287
|
case "dropdown-multiple":
|
|
2197
|
-
u =
|
|
2288
|
+
u = $r(t);
|
|
2198
2289
|
break;
|
|
2199
2290
|
case "radio":
|
|
2200
|
-
u =
|
|
2291
|
+
u = _r(t);
|
|
2201
2292
|
break;
|
|
2202
2293
|
case "date-range":
|
|
2203
|
-
u =
|
|
2294
|
+
u = Ur(t);
|
|
2204
2295
|
break;
|
|
2205
2296
|
case "advanced-date-range":
|
|
2206
|
-
u =
|
|
2297
|
+
u = Jr(t);
|
|
2207
2298
|
break;
|
|
2208
2299
|
case "date":
|
|
2209
|
-
u =
|
|
2300
|
+
u = qr(t);
|
|
2210
2301
|
break;
|
|
2211
2302
|
default:
|
|
2212
2303
|
u = t;
|
|
@@ -2216,10 +2307,10 @@ const fn = te(
|
|
|
2216
2307
|
const m = {
|
|
2217
2308
|
...o[a] && typeof o[a] == "string" ? JSON.parse(o[a]) : void 0,
|
|
2218
2309
|
[r]: u
|
|
2219
|
-
},
|
|
2220
|
-
s && typeof s == "string" && delete
|
|
2310
|
+
}, p = { ...o };
|
|
2311
|
+
s && typeof s == "string" && delete p[s], delete p[h];
|
|
2221
2312
|
const v = {
|
|
2222
|
-
...
|
|
2313
|
+
...p,
|
|
2223
2314
|
[a]: JSON.stringify(m)
|
|
2224
2315
|
}, A = new URLSearchParams(o).toString(), D = new URLSearchParams(
|
|
2225
2316
|
v
|
|
@@ -2229,7 +2320,7 @@ const fn = te(
|
|
|
2229
2320
|
i(v);
|
|
2230
2321
|
}
|
|
2231
2322
|
}
|
|
2232
|
-
},
|
|
2323
|
+
}, et = ({
|
|
2233
2324
|
name: t,
|
|
2234
2325
|
filterKey: r = "filter",
|
|
2235
2326
|
searchParams: n,
|
|
@@ -2237,7 +2328,7 @@ const fn = te(
|
|
|
2237
2328
|
}) => {
|
|
2238
2329
|
const i = n.get(r) || void 0, o = i && typeof i == "string" ? JSON.parse(i) : void 0, s = o ? o[t] : void 0;
|
|
2239
2330
|
return l === "label" && s ? JSON.parse(s)[0].label : l === "value" && s ? JSON.parse(s)[0].value : s;
|
|
2240
|
-
},
|
|
2331
|
+
}, Fn = ({
|
|
2241
2332
|
name: t,
|
|
2242
2333
|
filterKey: r = "filter",
|
|
2243
2334
|
searchParams: n,
|
|
@@ -2245,7 +2336,7 @@ const fn = te(
|
|
|
2245
2336
|
}) => {
|
|
2246
2337
|
const i = n.get(r) || void 0, o = i && typeof i == "string" ? JSON.parse(i) : void 0, s = o ? o[t] : void 0;
|
|
2247
2338
|
return l === "label" && s ? JSON.parse(s).map((a) => a.label) : l === "value" && s ? JSON.parse(s).map((a) => a.value) : l === "array" && s ? JSON.parse(s) : s;
|
|
2248
|
-
},
|
|
2339
|
+
}, En = ({
|
|
2249
2340
|
name: t,
|
|
2250
2341
|
filterKey: r = "filter",
|
|
2251
2342
|
searchParams: n,
|
|
@@ -2253,10 +2344,10 @@ const fn = te(
|
|
|
2253
2344
|
}) => {
|
|
2254
2345
|
const i = n.get(r) || void 0, o = i && typeof i == "string" ? JSON.parse(i) : void 0, s = o ? o[t] : void 0;
|
|
2255
2346
|
return l === "id" && s ? JSON.parse(s).id : l === "label" && s ? JSON.parse(s).label : l === "value" && s ? JSON.parse(s).value : s;
|
|
2256
|
-
},
|
|
2347
|
+
}, Qr = (t, r, n) => {
|
|
2257
2348
|
const l = r.get(n || "filter") || void 0, i = l && typeof l == "string" ? JSON.parse(l) : void 0;
|
|
2258
2349
|
return i ? i[t] : void 0;
|
|
2259
|
-
},
|
|
2350
|
+
}, Mn = ({
|
|
2260
2351
|
name: t,
|
|
2261
2352
|
filterKey: r = "filter",
|
|
2262
2353
|
searchParams: n
|
|
@@ -2266,52 +2357,52 @@ const fn = te(
|
|
|
2266
2357
|
start: o ? JSON.parse(o).from : void 0,
|
|
2267
2358
|
end: o ? JSON.parse(o).to : void 0
|
|
2268
2359
|
};
|
|
2269
|
-
},
|
|
2360
|
+
}, Ln = ({
|
|
2270
2361
|
name: t,
|
|
2271
2362
|
filterKey: r = "filter",
|
|
2272
2363
|
searchParams: n
|
|
2273
2364
|
}) => {
|
|
2274
2365
|
const l = n.get(r || "filter") || void 0, i = l && typeof l == "string" ? JSON.parse(l) : void 0, o = i ? i[t] : void 0;
|
|
2275
2366
|
return o ? JSON.parse(o) : void 0;
|
|
2276
|
-
},
|
|
2367
|
+
}, Wn = (t, {
|
|
2277
2368
|
filterKey: r = "filter",
|
|
2278
2369
|
perPageKey: n = "perPage",
|
|
2279
2370
|
pageKey: l = "page"
|
|
2280
2371
|
}) => {
|
|
2281
2372
|
const i = t.get(r) || void 0, o = t.get(n) || void 0, s = t.get(l) || void 0;
|
|
2282
2373
|
return !!i || !!o || !!s;
|
|
2283
|
-
},
|
|
2374
|
+
}, Pr = ({
|
|
2284
2375
|
isOpen: t,
|
|
2285
2376
|
onClose: r,
|
|
2286
2377
|
filterKey: n,
|
|
2287
2378
|
pageKey: l,
|
|
2288
2379
|
filters: i
|
|
2289
2380
|
}) => {
|
|
2290
|
-
const { searchParams: o, setSearchParams: s, searchQueries: a } =
|
|
2381
|
+
const { searchParams: o, setSearchParams: s, searchQueries: a } = ft(), [h, u] = M({}), g = () => {
|
|
2291
2382
|
o.delete(n || "filter"), s(o);
|
|
2292
|
-
}, m = (
|
|
2293
|
-
switch (
|
|
2383
|
+
}, m = (p, v) => {
|
|
2384
|
+
switch (p.type) {
|
|
2294
2385
|
case "radio": {
|
|
2295
|
-
const { show: A = !0 } =
|
|
2296
|
-
return A && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children:
|
|
2386
|
+
const { show: A = !0 } = p;
|
|
2387
|
+
return A && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: p.title }) }, v);
|
|
2297
2388
|
}
|
|
2298
2389
|
case "dropdown": {
|
|
2299
|
-
const { show: A = !0 } =
|
|
2300
|
-
return A && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children:
|
|
2390
|
+
const { show: A = !0 } = p;
|
|
2391
|
+
return A && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: p.title }) }, v);
|
|
2301
2392
|
}
|
|
2302
2393
|
case "date-range":
|
|
2303
|
-
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children:
|
|
2394
|
+
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: p.title }) }, v);
|
|
2304
2395
|
case "date":
|
|
2305
|
-
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children:
|
|
2396
|
+
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: p.title }) }, v);
|
|
2306
2397
|
case "dropdown-multiple": {
|
|
2307
|
-
const { show: A = !0 } =
|
|
2308
|
-
return A && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children:
|
|
2398
|
+
const { show: A = !0 } = p;
|
|
2399
|
+
return A && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: p.title }) }, v);
|
|
2309
2400
|
}
|
|
2310
2401
|
default:
|
|
2311
2402
|
return null;
|
|
2312
2403
|
}
|
|
2313
2404
|
};
|
|
2314
|
-
return /* @__PURE__ */ e(
|
|
2405
|
+
return /* @__PURE__ */ e(Sr, { onHide: r, show: t || !1, children: /* @__PURE__ */ d(f, { direction: "column", gap: "md", children: [
|
|
2315
2406
|
/* @__PURE__ */ d($, { direction: "row", justify: "space-between", align: "center", children: [
|
|
2316
2407
|
/* @__PURE__ */ e(f, { children: "Filter" }),
|
|
2317
2408
|
/* @__PURE__ */ e(
|
|
@@ -2323,9 +2414,9 @@ const fn = te(
|
|
|
2323
2414
|
}
|
|
2324
2415
|
)
|
|
2325
2416
|
] }),
|
|
2326
|
-
i == null ? void 0 : i.map((
|
|
2417
|
+
i == null ? void 0 : i.map((p, v) => m(p, v))
|
|
2327
2418
|
] }) });
|
|
2328
|
-
},
|
|
2419
|
+
}, Yr = ({
|
|
2329
2420
|
searchKey: t = "q",
|
|
2330
2421
|
statusKey: r = "status",
|
|
2331
2422
|
searchPlaceholder: n = "Search",
|
|
@@ -2338,30 +2429,30 @@ const fn = te(
|
|
|
2338
2429
|
customWidthSearch: u,
|
|
2339
2430
|
handleOnReset: g,
|
|
2340
2431
|
filterConfigs: m,
|
|
2341
|
-
buttonToggleProps:
|
|
2432
|
+
buttonToggleProps: p,
|
|
2342
2433
|
position: v = "right",
|
|
2343
2434
|
titleSearchLabel: A = "Work Order",
|
|
2344
2435
|
withTitleLabels: D = !1
|
|
2345
2436
|
}) => {
|
|
2346
|
-
const j = (
|
|
2347
|
-
fe((
|
|
2348
|
-
}, { searchParams:
|
|
2437
|
+
const j = (p == null ? void 0 : p.isShowLabel) ?? !0, [Z, Q] = M(!1), [L, fe] = M(0), P = () => {
|
|
2438
|
+
fe((z) => z + 1);
|
|
2439
|
+
}, { searchParams: I, setSearchParams: K, getQueryParam: oe } = ft(), ce = Ge(I.toString()), U = Qr(t, I, a) || "", [ae, se] = M(U), re = oe(a), J = !!(re && !(() => {
|
|
2349
2440
|
if (re)
|
|
2350
2441
|
try {
|
|
2351
|
-
const
|
|
2352
|
-
return Object.keys(
|
|
2353
|
-
} catch (
|
|
2354
|
-
console.error("Filter parameter is not a valid JSON:",
|
|
2442
|
+
const z = JSON.parse(re);
|
|
2443
|
+
return Object.keys(z).length === 1 && z[t] === "";
|
|
2444
|
+
} catch (z) {
|
|
2445
|
+
console.error("Filter parameter is not a valid JSON:", z);
|
|
2355
2446
|
}
|
|
2356
2447
|
return !1;
|
|
2357
|
-
})()),
|
|
2358
|
-
return
|
|
2359
|
-
se(
|
|
2360
|
-
}, [
|
|
2361
|
-
if (ae ===
|
|
2448
|
+
})()), V = ee("md");
|
|
2449
|
+
return _(() => {
|
|
2450
|
+
se(U);
|
|
2451
|
+
}, [U]), _(() => {
|
|
2452
|
+
if (ae === U)
|
|
2362
2453
|
return;
|
|
2363
|
-
const
|
|
2364
|
-
|
|
2454
|
+
const z = window.setTimeout(() => {
|
|
2455
|
+
Ft({
|
|
2365
2456
|
value: ae,
|
|
2366
2457
|
name: t,
|
|
2367
2458
|
type: "search",
|
|
@@ -2372,11 +2463,11 @@ const fn = te(
|
|
|
2372
2463
|
});
|
|
2373
2464
|
}, 350);
|
|
2374
2465
|
return () => {
|
|
2375
|
-
window.clearTimeout(
|
|
2466
|
+
window.clearTimeout(z);
|
|
2376
2467
|
};
|
|
2377
2468
|
}, [
|
|
2378
2469
|
ae,
|
|
2379
|
-
|
|
2470
|
+
U,
|
|
2380
2471
|
t,
|
|
2381
2472
|
ce,
|
|
2382
2473
|
K,
|
|
@@ -2387,53 +2478,53 @@ const fn = te(
|
|
|
2387
2478
|
{
|
|
2388
2479
|
gap: "md",
|
|
2389
2480
|
style: {
|
|
2390
|
-
flexDirection:
|
|
2481
|
+
flexDirection: V && v === "left" ? "row" : V && v === "right" ? "row-reverse" : "column"
|
|
2391
2482
|
},
|
|
2392
2483
|
align: "flex-end",
|
|
2393
2484
|
children: [
|
|
2394
|
-
|
|
2485
|
+
J && /* @__PURE__ */ e(f, { justify: "flex-end", children: /* @__PURE__ */ e(
|
|
2395
2486
|
R,
|
|
2396
2487
|
{
|
|
2397
2488
|
onClick: () => {
|
|
2398
|
-
const
|
|
2399
|
-
|
|
2489
|
+
const z = new URLSearchParams(I);
|
|
2490
|
+
z.delete(a), K(z), se(""), P(), g && g();
|
|
2400
2491
|
},
|
|
2401
2492
|
variant: "outline",
|
|
2402
2493
|
tone: "neutral",
|
|
2403
2494
|
children: /* @__PURE__ */ e(C, { color: "error", fontWeight: "semibold", children: "Reset" })
|
|
2404
2495
|
}
|
|
2405
2496
|
) }),
|
|
2406
|
-
i == null ? void 0 : i.map(({ minWidth:
|
|
2497
|
+
i == null ? void 0 : i.map(({ minWidth: z, content: X, title: de, onClickContainer: he }, Le) => /* @__PURE__ */ d(
|
|
2407
2498
|
f,
|
|
2408
2499
|
{
|
|
2409
2500
|
gap: "sm",
|
|
2410
2501
|
onClick: he,
|
|
2411
2502
|
style: {
|
|
2412
|
-
minWidth:
|
|
2503
|
+
minWidth: z
|
|
2413
2504
|
},
|
|
2414
2505
|
children: [
|
|
2415
2506
|
de && /* @__PURE__ */ e(me.SubH3, { children: de }),
|
|
2416
2507
|
X
|
|
2417
2508
|
]
|
|
2418
2509
|
},
|
|
2419
|
-
`extended-filter-${
|
|
2510
|
+
`extended-filter-${Le}-${L}`
|
|
2420
2511
|
)),
|
|
2421
2512
|
!!(m != null && m.length) && /* @__PURE__ */ e(
|
|
2422
2513
|
R,
|
|
2423
2514
|
{
|
|
2424
|
-
primary:
|
|
2425
|
-
secondary: !
|
|
2515
|
+
primary: J,
|
|
2516
|
+
secondary: !J,
|
|
2426
2517
|
iconLeft: /* @__PURE__ */ e(
|
|
2427
2518
|
k,
|
|
2428
2519
|
{
|
|
2429
2520
|
size: "sm",
|
|
2430
|
-
name: (
|
|
2521
|
+
name: (p == null ? void 0 : p.icon) || "FilterHorizontal",
|
|
2431
2522
|
style: {
|
|
2432
2523
|
color: re ? "var(--sa-background-brand, #04254f)" : "var(--sa-text-primary, #292a2e)"
|
|
2433
2524
|
}
|
|
2434
2525
|
}
|
|
2435
2526
|
),
|
|
2436
|
-
fullWidth: !
|
|
2527
|
+
fullWidth: !V,
|
|
2437
2528
|
onClick: () => Q(!0),
|
|
2438
2529
|
children: j ? "Filter" : void 0
|
|
2439
2530
|
}
|
|
@@ -2448,7 +2539,7 @@ const fn = te(
|
|
|
2448
2539
|
children: [
|
|
2449
2540
|
D && /* @__PURE__ */ e(me.SubH3, { children: "Status" }),
|
|
2450
2541
|
/* @__PURE__ */ e(
|
|
2451
|
-
|
|
2542
|
+
ct,
|
|
2452
2543
|
{
|
|
2453
2544
|
dropdownLists: [
|
|
2454
2545
|
{
|
|
@@ -2460,29 +2551,29 @@ const fn = te(
|
|
|
2460
2551
|
value: "inactive"
|
|
2461
2552
|
}
|
|
2462
2553
|
],
|
|
2463
|
-
defaultValue:
|
|
2554
|
+
defaultValue: et({
|
|
2464
2555
|
get: "value",
|
|
2465
2556
|
name: r,
|
|
2466
|
-
searchParams:
|
|
2557
|
+
searchParams: I,
|
|
2467
2558
|
filterKey: a
|
|
2468
2559
|
}) ? [
|
|
2469
2560
|
{
|
|
2470
|
-
label:
|
|
2561
|
+
label: et({
|
|
2471
2562
|
get: "value",
|
|
2472
2563
|
name: r,
|
|
2473
|
-
searchParams:
|
|
2564
|
+
searchParams: I,
|
|
2474
2565
|
filterKey: a
|
|
2475
2566
|
}) === "active" ? "Active" : "InActive",
|
|
2476
|
-
value:
|
|
2567
|
+
value: et({
|
|
2477
2568
|
get: "value",
|
|
2478
2569
|
name: r,
|
|
2479
|
-
searchParams:
|
|
2570
|
+
searchParams: I,
|
|
2480
2571
|
filterKey: a
|
|
2481
2572
|
})
|
|
2482
2573
|
}
|
|
2483
2574
|
] : [],
|
|
2484
|
-
onChange: (
|
|
2485
|
-
value:
|
|
2575
|
+
onChange: (z) => Ft({
|
|
2576
|
+
value: z,
|
|
2486
2577
|
name: r,
|
|
2487
2578
|
type: "dropdown",
|
|
2488
2579
|
searchQueries: ce,
|
|
@@ -2491,7 +2582,7 @@ const fn = te(
|
|
|
2491
2582
|
}),
|
|
2492
2583
|
placeholder: D ? "All" : "All Status"
|
|
2493
2584
|
},
|
|
2494
|
-
|
|
2585
|
+
L
|
|
2495
2586
|
)
|
|
2496
2587
|
]
|
|
2497
2588
|
}
|
|
@@ -2501,7 +2592,7 @@ const fn = te(
|
|
|
2501
2592
|
{
|
|
2502
2593
|
gap: "sm",
|
|
2503
2594
|
style: {
|
|
2504
|
-
width: u &&
|
|
2595
|
+
width: u && V ? u : V ? "310px" : ""
|
|
2505
2596
|
},
|
|
2506
2597
|
children: [
|
|
2507
2598
|
D && /* @__PURE__ */ d(me.SubH3, { children: [
|
|
@@ -2509,21 +2600,21 @@ const fn = te(
|
|
|
2509
2600
|
A
|
|
2510
2601
|
] }),
|
|
2511
2602
|
/* @__PURE__ */ e(
|
|
2512
|
-
|
|
2603
|
+
at,
|
|
2513
2604
|
{
|
|
2514
2605
|
placeholder: n,
|
|
2515
2606
|
leftIcon: /* @__PURE__ */ e(k, { name: "Search", width: 20, height: 20 }),
|
|
2516
|
-
onChange: (
|
|
2607
|
+
onChange: (z) => se(z.target.value),
|
|
2517
2608
|
value: ae,
|
|
2518
2609
|
fullWidth: !0
|
|
2519
2610
|
},
|
|
2520
|
-
|
|
2611
|
+
L + 1 + a
|
|
2521
2612
|
)
|
|
2522
2613
|
]
|
|
2523
2614
|
}
|
|
2524
2615
|
),
|
|
2525
2616
|
/* @__PURE__ */ e(
|
|
2526
|
-
|
|
2617
|
+
Pr,
|
|
2527
2618
|
{
|
|
2528
2619
|
isOpen: Z,
|
|
2529
2620
|
onClose: () => Q(!1),
|
|
@@ -2535,9 +2626,9 @@ const fn = te(
|
|
|
2535
2626
|
]
|
|
2536
2627
|
}
|
|
2537
2628
|
);
|
|
2538
|
-
},
|
|
2539
|
-
const l = le(null), [i, o] =
|
|
2540
|
-
return
|
|
2629
|
+
}, Xr = ({ children: t, borderRadius: r, height: n }) => {
|
|
2630
|
+
const l = le(null), [i, o] = M("100vh");
|
|
2631
|
+
return _(() => {
|
|
2541
2632
|
if (n) return;
|
|
2542
2633
|
const s = () => {
|
|
2543
2634
|
if (l.current) {
|
|
@@ -2563,7 +2654,7 @@ const fn = te(
|
|
|
2563
2654
|
children: t
|
|
2564
2655
|
}
|
|
2565
2656
|
);
|
|
2566
|
-
},
|
|
2657
|
+
}, Kr = ({
|
|
2567
2658
|
action: t,
|
|
2568
2659
|
rightContent: r,
|
|
2569
2660
|
leftContent: n,
|
|
@@ -2571,7 +2662,7 @@ const fn = te(
|
|
|
2571
2662
|
advanceFilter: i,
|
|
2572
2663
|
showFilter: o = !0
|
|
2573
2664
|
}) => {
|
|
2574
|
-
const s = ee("md"), a = o ? /* @__PURE__ */ e(
|
|
2665
|
+
const s = ee("md"), a = o ? /* @__PURE__ */ e(Yr, { ...i }) : null;
|
|
2575
2666
|
return /* @__PURE__ */ e(
|
|
2576
2667
|
f,
|
|
2577
2668
|
{
|
|
@@ -2591,14 +2682,14 @@ const fn = te(
|
|
|
2591
2682
|
flexDirection: s ? "row" : "column-reverse",
|
|
2592
2683
|
gap: "16px"
|
|
2593
2684
|
},
|
|
2594
|
-
children: l ? l({ filter: a }) : /* @__PURE__ */ d(
|
|
2685
|
+
children: l ? l({ filter: a }) : /* @__PURE__ */ d(G, { children: [
|
|
2595
2686
|
/* @__PURE__ */ d(f, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flex: 1, minWidth: 0 }, children: [
|
|
2596
2687
|
a,
|
|
2597
2688
|
n
|
|
2598
2689
|
] }),
|
|
2599
2690
|
/* @__PURE__ */ d(f, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flexShrink: 0 }, children: [
|
|
2600
2691
|
r,
|
|
2601
|
-
t ?
|
|
2692
|
+
t ? nt(t) ? t : /* @__PURE__ */ e(
|
|
2602
2693
|
f,
|
|
2603
2694
|
{
|
|
2604
2695
|
style: {
|
|
@@ -2609,12 +2700,12 @@ const fn = te(
|
|
|
2609
2700
|
textWrap: "nowrap"
|
|
2610
2701
|
},
|
|
2611
2702
|
children: t.map(
|
|
2612
|
-
({ title: u, icon: g, buttonProps: m, onClick:
|
|
2703
|
+
({ title: u, icon: g, buttonProps: m, onClick: p }, v) => !u && !g ? null : /* @__PURE__ */ e(
|
|
2613
2704
|
R,
|
|
2614
2705
|
{
|
|
2615
2706
|
fullWidth: !s,
|
|
2616
2707
|
iconLeft: g ? /* @__PURE__ */ e(k, { name: g }) : void 0,
|
|
2617
|
-
onClick:
|
|
2708
|
+
onClick: p,
|
|
2618
2709
|
...m,
|
|
2619
2710
|
children: u
|
|
2620
2711
|
},
|
|
@@ -2627,7 +2718,7 @@ const fn = te(
|
|
|
2627
2718
|
] })
|
|
2628
2719
|
}
|
|
2629
2720
|
);
|
|
2630
|
-
},
|
|
2721
|
+
}, ei = ({
|
|
2631
2722
|
totalData: t,
|
|
2632
2723
|
withMarginBottom: r = !0,
|
|
2633
2724
|
withMarginTop: n = !0
|
|
@@ -2658,7 +2749,7 @@ const fn = te(
|
|
|
2658
2749
|
/* @__PURE__ */ e(me.Body1, { children: t || 0 })
|
|
2659
2750
|
]
|
|
2660
2751
|
}
|
|
2661
|
-
),
|
|
2752
|
+
), ti = ({
|
|
2662
2753
|
pagination: t,
|
|
2663
2754
|
pageKey: r = "page",
|
|
2664
2755
|
perPageKey: n = "perPage",
|
|
@@ -2666,7 +2757,7 @@ const fn = te(
|
|
|
2666
2757
|
showPagination: i = !0,
|
|
2667
2758
|
totalData: o
|
|
2668
2759
|
}) => {
|
|
2669
|
-
const { searchQueries: s, setSearchParams: a, searchParams: h } =
|
|
2760
|
+
const { searchQueries: s, setSearchParams: a, searchParams: h } = ft(), u = h.get(n), g = (A) => {
|
|
2670
2761
|
a({ ...s, [r]: String(A) });
|
|
2671
2762
|
}, m = (A) => {
|
|
2672
2763
|
a({
|
|
@@ -2674,7 +2765,7 @@ const fn = te(
|
|
|
2674
2765
|
[n]: A,
|
|
2675
2766
|
[r]: "1"
|
|
2676
2767
|
});
|
|
2677
|
-
},
|
|
2768
|
+
}, p = (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), v = (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));
|
|
2678
2769
|
return /* @__PURE__ */ e(
|
|
2679
2770
|
f,
|
|
2680
2771
|
{
|
|
@@ -2691,11 +2782,11 @@ const fn = te(
|
|
|
2691
2782
|
borderTop: "1px solid var(--sa-border-subtle, #0b120e24)",
|
|
2692
2783
|
flexShrink: 0
|
|
2693
2784
|
},
|
|
2694
|
-
children: i ? /* @__PURE__ */ d(
|
|
2785
|
+
children: i ? /* @__PURE__ */ d(G, { children: [
|
|
2695
2786
|
/* @__PURE__ */ d(f, { style: { display: "flex", flexDirection: "row", gap: "8px", alignItems: "center", textWrap: "nowrap" }, children: [
|
|
2696
2787
|
/* @__PURE__ */ e(C, { children: "Rows Per Page: " }),
|
|
2697
2788
|
/* @__PURE__ */ e(
|
|
2698
|
-
|
|
2789
|
+
ct,
|
|
2699
2790
|
{
|
|
2700
2791
|
dropdownLists: [
|
|
2701
2792
|
{ label: "5", value: "5" },
|
|
@@ -2711,10 +2802,10 @@ const fn = te(
|
|
|
2711
2802
|
defaultValue: u ? [{ label: `${u} per row`, value: u }] : [{ label: `${l} per row`, value: `${l}` }]
|
|
2712
2803
|
}
|
|
2713
2804
|
),
|
|
2714
|
-
/* @__PURE__ */ e(C, { children: `${
|
|
2805
|
+
/* @__PURE__ */ e(C, { children: `${p}-${v} of ${(t == null ? void 0 : t.totalData) || 0}` })
|
|
2715
2806
|
] }),
|
|
2716
2807
|
/* @__PURE__ */ e(
|
|
2717
|
-
|
|
2808
|
+
Qt,
|
|
2718
2809
|
{
|
|
2719
2810
|
currentPage: t != null && t.currentPage ? Number(t == null ? void 0 : t.currentPage) : 1,
|
|
2720
2811
|
totalCount: t != null && t.totalPage ? Number(t == null ? void 0 : t.totalPage) : 1,
|
|
@@ -2722,7 +2813,7 @@ const fn = te(
|
|
|
2722
2813
|
}
|
|
2723
2814
|
)
|
|
2724
2815
|
] }) : /* @__PURE__ */ e(
|
|
2725
|
-
|
|
2816
|
+
ei,
|
|
2726
2817
|
{
|
|
2727
2818
|
totalData: o,
|
|
2728
2819
|
withMarginBottom: !1,
|
|
@@ -2731,23 +2822,23 @@ const fn = te(
|
|
|
2731
2822
|
)
|
|
2732
2823
|
}
|
|
2733
2824
|
);
|
|
2734
|
-
},
|
|
2735
|
-
const [n, l] =
|
|
2825
|
+
}, ri = ({ filter: t, columnTitle: r }) => {
|
|
2826
|
+
const [n, l] = M(!1), i = le(null), o = le(null), s = le(null), [a, h] = M(""), [u, g] = M({ top: 0, left: 0 }), m = t.selectedValues, p = De(() => a ? t.options.filter(
|
|
2736
2827
|
(D) => D.label.toLowerCase().includes(a.toLowerCase())
|
|
2737
2828
|
) : t.options, [t.options, a]);
|
|
2738
|
-
|
|
2829
|
+
_(() => {
|
|
2739
2830
|
if (n && o.current) {
|
|
2740
2831
|
const D = o.current.getBoundingClientRect(), T = 280, j = {
|
|
2741
2832
|
top: D.bottom + 8
|
|
2742
2833
|
};
|
|
2743
2834
|
t.position === "left" || D.left + T > window.innerWidth ? j.right = window.innerWidth - D.right : j.left = D.left, g(j);
|
|
2744
2835
|
}
|
|
2745
|
-
}, [n, t.position]),
|
|
2836
|
+
}, [n, t.position]), _(() => {
|
|
2746
2837
|
n && s.current ? setTimeout(() => {
|
|
2747
2838
|
var D;
|
|
2748
2839
|
return (D = s.current) == null ? void 0 : D.focus();
|
|
2749
2840
|
}, 50) : h("");
|
|
2750
|
-
}, [n]),
|
|
2841
|
+
}, [n]), _(() => {
|
|
2751
2842
|
const D = (T) => {
|
|
2752
2843
|
i.current && !i.current.contains(T.target) && o.current && !o.current.contains(T.target) && l(!1);
|
|
2753
2844
|
};
|
|
@@ -2847,7 +2938,7 @@ const fn = te(
|
|
|
2847
2938
|
paddingBottom: "8px"
|
|
2848
2939
|
},
|
|
2849
2940
|
children: /* @__PURE__ */ e(
|
|
2850
|
-
|
|
2941
|
+
at,
|
|
2851
2942
|
{
|
|
2852
2943
|
ref: s,
|
|
2853
2944
|
placeholder: `Search ${r.toLowerCase()}...`,
|
|
@@ -2903,7 +2994,7 @@ const fn = te(
|
|
|
2903
2994
|
)
|
|
2904
2995
|
]
|
|
2905
2996
|
}
|
|
2906
|
-
) :
|
|
2997
|
+
) : p.length > 0 ? /* @__PURE__ */ e(f, { style: { gap: "2px", paddingTop: "4px", paddingBottom: "4px" }, children: p.map((D) => /* @__PURE__ */ d(
|
|
2907
2998
|
f,
|
|
2908
2999
|
{
|
|
2909
3000
|
style: {
|
|
@@ -2931,7 +3022,7 @@ const fn = te(
|
|
|
2931
3022
|
},
|
|
2932
3023
|
children: [
|
|
2933
3024
|
/* @__PURE__ */ e(
|
|
2934
|
-
|
|
3025
|
+
rt,
|
|
2935
3026
|
{
|
|
2936
3027
|
checked: m.includes(D.value),
|
|
2937
3028
|
onChange: () => {
|
|
@@ -3023,7 +3114,7 @@ const fn = te(
|
|
|
3023
3114
|
}
|
|
3024
3115
|
)
|
|
3025
3116
|
] });
|
|
3026
|
-
},
|
|
3117
|
+
}, ii = ({
|
|
3027
3118
|
direction: t
|
|
3028
3119
|
}) => {
|
|
3029
3120
|
const r = "var(--sa-text-primary, #292a2e)", n = "var(--sa-text-subtle, #8c8f97)";
|
|
@@ -3063,7 +3154,7 @@ const fn = te(
|
|
|
3063
3154
|
]
|
|
3064
3155
|
}
|
|
3065
3156
|
);
|
|
3066
|
-
},
|
|
3157
|
+
}, ni = ({ frozen: t }) => /* @__PURE__ */ d(
|
|
3067
3158
|
"svg",
|
|
3068
3159
|
{
|
|
3069
3160
|
width: "11",
|
|
@@ -3079,7 +3170,7 @@ const fn = te(
|
|
|
3079
3170
|
/* @__PURE__ */ e("path", { d: t ? "M7 11V7a5 5 0 0 1 10 0v4" : "M7 11V7a5 5 0 0 1 9.9-1" })
|
|
3080
3171
|
]
|
|
3081
3172
|
}
|
|
3082
|
-
),
|
|
3173
|
+
), tt = "var(--sa-background-primary, #ffffff)", Et = "var(--sa-background-primary-inverse, #f8f8f8)", li = ({
|
|
3083
3174
|
columns: t,
|
|
3084
3175
|
records: r,
|
|
3085
3176
|
handleDetail: n,
|
|
@@ -3092,7 +3183,7 @@ const fn = te(
|
|
|
3092
3183
|
showHeadBorder: u = !1,
|
|
3093
3184
|
scrollParentRef: g,
|
|
3094
3185
|
frozenCount: m = 0,
|
|
3095
|
-
onFrozenCountChange:
|
|
3186
|
+
onFrozenCountChange: p,
|
|
3096
3187
|
customActions: v,
|
|
3097
3188
|
actionsOrder: A = ["detail", "update", "delete", "custom"],
|
|
3098
3189
|
customEmptyState: D,
|
|
@@ -3100,104 +3191,104 @@ const fn = te(
|
|
|
3100
3191
|
defaultColumnWidths: j,
|
|
3101
3192
|
onColumnWidthsChange: Z,
|
|
3102
3193
|
defaultMinColumnWidth: Q = 60,
|
|
3103
|
-
sort:
|
|
3194
|
+
sort: L,
|
|
3104
3195
|
defaultSort: fe,
|
|
3105
3196
|
onSortChange: P,
|
|
3106
|
-
showActionDivider:
|
|
3197
|
+
showActionDivider: I = !1
|
|
3107
3198
|
}) => {
|
|
3108
|
-
const K =
|
|
3199
|
+
const K = L !== void 0, [oe, ce] = M(
|
|
3109
3200
|
fe ?? null
|
|
3110
|
-
),
|
|
3111
|
-
if (
|
|
3112
|
-
if (typeof
|
|
3113
|
-
}, se = (
|
|
3114
|
-
const w = ae(
|
|
3201
|
+
), U = K ? L ?? null : oe, ae = (x) => {
|
|
3202
|
+
if (x.sortKey) return x.sortKey;
|
|
3203
|
+
if (typeof x.accessor == "string") return x.accessor;
|
|
3204
|
+
}, se = (x) => {
|
|
3205
|
+
const w = ae(x);
|
|
3115
3206
|
if (!w) return;
|
|
3116
3207
|
let b;
|
|
3117
|
-
!
|
|
3118
|
-
}, Y = [n, l, i].filter((
|
|
3119
|
-
if (!w) return
|
|
3120
|
-
if (typeof w == "function") return w(
|
|
3121
|
-
if (typeof w == "string") return
|
|
3122
|
-
}, [
|
|
3123
|
-
|
|
3208
|
+
!U || U.key !== w ? b = { key: w, direction: "asc" } : U.direction === "asc" ? b = { key: w, direction: "desc" } : b = null, K || ce(b), P == null || P(b);
|
|
3209
|
+
}, Y = [n, l, i].filter((x) => x !== void 0).length, J = !!v, V = !!n || !!l || !!i || J, z = "var(--sa-border-subtle, #0b120e24)", X = `1px solid ${z}`, de = `inset 1px 0 0 ${z}`, he = `inset -1px 0 0 ${z}`, Le = Y === 3 ? J ? "178px" : "140px" : Y === 2 ? J ? "140px" : "102px" : Y === 1 ? J ? "112px" : "74px" : J ? "74px" : "", ze = (x, w) => {
|
|
3210
|
+
if (!w) return x;
|
|
3211
|
+
if (typeof w == "function") return w(x);
|
|
3212
|
+
if (typeof w == "string") return x[w];
|
|
3213
|
+
}, [Pe, Te] = M(!1);
|
|
3214
|
+
_(() => {
|
|
3124
3215
|
if (!(g != null && g.current)) return;
|
|
3125
|
-
const
|
|
3126
|
-
Te(
|
|
3216
|
+
const x = g.current;
|
|
3217
|
+
Te(x.scrollHeight > x.clientHeight);
|
|
3127
3218
|
}, [r, g]);
|
|
3128
|
-
const
|
|
3219
|
+
const We = le(null), [ie, Oe] = M([]), [Be, Ae] = M(
|
|
3129
3220
|
() => j ?? {}
|
|
3130
3221
|
), ke = le(null);
|
|
3131
|
-
|
|
3132
|
-
if (!m || !
|
|
3222
|
+
it(() => {
|
|
3223
|
+
if (!m || !We.current) {
|
|
3133
3224
|
Oe([]);
|
|
3134
3225
|
return;
|
|
3135
3226
|
}
|
|
3136
|
-
const
|
|
3137
|
-
|
|
3227
|
+
const x = Array.from(
|
|
3228
|
+
We.current.querySelectorAll("thead tr th")
|
|
3138
3229
|
), w = [];
|
|
3139
3230
|
let b = 0;
|
|
3140
|
-
|
|
3141
|
-
w[H] = b, H < m && (b +=
|
|
3231
|
+
x.forEach((W, H) => {
|
|
3232
|
+
w[H] = b, H < m && (b += W.offsetWidth);
|
|
3142
3233
|
}), Oe(w);
|
|
3143
|
-
}, [m, t, r,
|
|
3144
|
-
const Ne = (
|
|
3145
|
-
|
|
3146
|
-
}, y = (
|
|
3147
|
-
const b =
|
|
3234
|
+
}, [m, t, r, Be]);
|
|
3235
|
+
const Ne = (x) => {
|
|
3236
|
+
p && p(x < m ? x : x + 1);
|
|
3237
|
+
}, y = (x, w) => {
|
|
3238
|
+
const b = Be[x];
|
|
3148
3239
|
if (b !== void 0) {
|
|
3149
|
-
const
|
|
3150
|
-
return { width:
|
|
3240
|
+
const W = `${b}px`;
|
|
3241
|
+
return { width: W, minWidth: W, maxWidth: W };
|
|
3151
3242
|
}
|
|
3152
3243
|
return w ? { width: w } : {};
|
|
3153
|
-
}, S = (
|
|
3154
|
-
|
|
3155
|
-
const b =
|
|
3244
|
+
}, S = (x) => T && (x.resizable ?? !0), F = (x, w) => {
|
|
3245
|
+
x.preventDefault(), x.stopPropagation();
|
|
3246
|
+
const b = x.currentTarget.closest("th");
|
|
3156
3247
|
if (!b) return;
|
|
3157
|
-
const
|
|
3158
|
-
ke.current = { colIndex: w, startX:
|
|
3248
|
+
const W = Math.round(b.getBoundingClientRect().width);
|
|
3249
|
+
ke.current = { colIndex: w, startX: x.clientX, startWidth: W };
|
|
3159
3250
|
const H = document.body.style.userSelect, ne = document.body.style.cursor;
|
|
3160
3251
|
document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
|
|
3161
|
-
const ye = (
|
|
3252
|
+
const ye = (xe) => {
|
|
3162
3253
|
var Se;
|
|
3163
|
-
const
|
|
3164
|
-
if (!
|
|
3165
|
-
const je = ((Se = t[
|
|
3166
|
-
|
|
3167
|
-
(
|
|
3254
|
+
const pe = ke.current;
|
|
3255
|
+
if (!pe) return;
|
|
3256
|
+
const je = ((Se = t[pe.colIndex]) == null ? void 0 : Se.minWidth) ?? Q, Re = Math.max(je, pe.startWidth + (xe.clientX - pe.startX));
|
|
3257
|
+
Ae(
|
|
3258
|
+
(Ye) => Ye[pe.colIndex] === Re ? Ye : { ...Ye, [pe.colIndex]: Re }
|
|
3168
3259
|
);
|
|
3169
3260
|
}, ve = () => {
|
|
3170
|
-
document.removeEventListener("mousemove", ye), document.removeEventListener("mouseup", ve), document.body.style.userSelect = H, document.body.style.cursor = ne, ke.current = null, Z &&
|
|
3261
|
+
document.removeEventListener("mousemove", ye), document.removeEventListener("mouseup", ve), document.body.style.userSelect = H, document.body.style.cursor = ne, ke.current = null, Z && Ae((xe) => (Z(xe), xe));
|
|
3171
3262
|
};
|
|
3172
3263
|
document.addEventListener("mousemove", ye), document.addEventListener("mouseup", ve);
|
|
3173
3264
|
};
|
|
3174
|
-
return /* @__PURE__ */ e("div", { ref:
|
|
3265
|
+
return /* @__PURE__ */ e("div", { ref: We, children: /* @__PURE__ */ d(At, { fullWidth: !0, children: [
|
|
3175
3266
|
/* @__PURE__ */ e(
|
|
3176
|
-
|
|
3267
|
+
Pt,
|
|
3177
3268
|
{
|
|
3178
3269
|
style: {
|
|
3179
3270
|
height: "40px",
|
|
3180
3271
|
whiteSpace: "nowrap"
|
|
3181
3272
|
},
|
|
3182
|
-
children: /* @__PURE__ */ d(
|
|
3183
|
-
t.map((
|
|
3184
|
-
var je,
|
|
3185
|
-
const b = m > 0 && w < m,
|
|
3273
|
+
children: /* @__PURE__ */ d(Ie, { children: [
|
|
3274
|
+
t.map((x, w) => {
|
|
3275
|
+
var je, Re;
|
|
3276
|
+
const b = m > 0 && w < m, W = ie[w] ?? 0, H = S(x), ye = w === t.length - 1 && V && I, ve = ae(x), xe = !!x.sortable && !!ve, pe = xe && (U == null ? void 0 : U.key) === ve ? U.direction : null;
|
|
3186
3277
|
return /* @__PURE__ */ d(
|
|
3187
|
-
|
|
3278
|
+
mt,
|
|
3188
3279
|
{
|
|
3189
3280
|
style: {
|
|
3190
3281
|
position: "sticky",
|
|
3191
3282
|
top: 0,
|
|
3192
|
-
left: b ?
|
|
3283
|
+
left: b ? W : void 0,
|
|
3193
3284
|
zIndex: b ? 4 : 2,
|
|
3194
3285
|
paddingLeft: w === 0 ? "12px" : "",
|
|
3195
3286
|
borderRight: u && !ye && !b ? X : void 0,
|
|
3196
3287
|
borderBottom: u ? X : void 0,
|
|
3197
3288
|
boxShadow: u && b ? he : void 0,
|
|
3198
3289
|
backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
|
|
3199
|
-
textAlign:
|
|
3200
|
-
...y(w,
|
|
3290
|
+
textAlign: x.textAlign === "text-right" ? "right" : x.textAlign === "text-center" ? "center" : "left",
|
|
3291
|
+
...y(w, x.width)
|
|
3201
3292
|
},
|
|
3202
3293
|
children: [
|
|
3203
3294
|
/* @__PURE__ */ d(
|
|
@@ -3211,12 +3302,12 @@ const fn = te(
|
|
|
3211
3302
|
minWidth: 0
|
|
3212
3303
|
},
|
|
3213
3304
|
children: [
|
|
3214
|
-
|
|
3305
|
+
xe ? /* @__PURE__ */ d(
|
|
3215
3306
|
"button",
|
|
3216
3307
|
{
|
|
3217
3308
|
type: "button",
|
|
3218
|
-
onClick: () => se(
|
|
3219
|
-
title:
|
|
3309
|
+
onClick: () => se(x),
|
|
3310
|
+
title: pe === "asc" ? "Sorted ascending — click to sort descending" : pe === "desc" ? "Sorted descending — click to clear" : "Click to sort ascending",
|
|
3220
3311
|
style: {
|
|
3221
3312
|
flex: 1,
|
|
3222
3313
|
minWidth: 0,
|
|
@@ -3230,7 +3321,7 @@ const fn = te(
|
|
|
3230
3321
|
font: "inherit",
|
|
3231
3322
|
color: "inherit",
|
|
3232
3323
|
cursor: "pointer",
|
|
3233
|
-
textAlign:
|
|
3324
|
+
textAlign: x.textAlign === "text-right" ? "right" : x.textAlign === "text-center" ? "center" : "left"
|
|
3234
3325
|
},
|
|
3235
3326
|
children: [
|
|
3236
3327
|
/* @__PURE__ */ e(
|
|
@@ -3243,10 +3334,10 @@ const fn = te(
|
|
|
3243
3334
|
textOverflow: "ellipsis",
|
|
3244
3335
|
whiteSpace: "nowrap"
|
|
3245
3336
|
},
|
|
3246
|
-
children:
|
|
3337
|
+
children: x.title || ((je = x.accessor) == null ? void 0 : je.toString())
|
|
3247
3338
|
}
|
|
3248
3339
|
),
|
|
3249
|
-
/* @__PURE__ */ e(
|
|
3340
|
+
/* @__PURE__ */ e(ii, { direction: pe })
|
|
3250
3341
|
]
|
|
3251
3342
|
}
|
|
3252
3343
|
) : /* @__PURE__ */ e(
|
|
@@ -3259,17 +3350,17 @@ const fn = te(
|
|
|
3259
3350
|
textOverflow: "ellipsis",
|
|
3260
3351
|
whiteSpace: "nowrap"
|
|
3261
3352
|
},
|
|
3262
|
-
children:
|
|
3353
|
+
children: x.title || ((Re = x.accessor) == null ? void 0 : Re.toString())
|
|
3263
3354
|
}
|
|
3264
3355
|
),
|
|
3265
|
-
|
|
3266
|
-
|
|
3356
|
+
x.filter && /* @__PURE__ */ e(
|
|
3357
|
+
ri,
|
|
3267
3358
|
{
|
|
3268
|
-
filter:
|
|
3269
|
-
columnTitle:
|
|
3359
|
+
filter: x.filter,
|
|
3360
|
+
columnTitle: x.title
|
|
3270
3361
|
}
|
|
3271
3362
|
),
|
|
3272
|
-
|
|
3363
|
+
p && /* @__PURE__ */ e(
|
|
3273
3364
|
"button",
|
|
3274
3365
|
{
|
|
3275
3366
|
onClick: () => Ne(w),
|
|
@@ -3286,7 +3377,7 @@ const fn = te(
|
|
|
3286
3377
|
opacity: b ? 1 : 0.45,
|
|
3287
3378
|
transition: "opacity 0.15s"
|
|
3288
3379
|
},
|
|
3289
|
-
children: /* @__PURE__ */ e(
|
|
3380
|
+
children: /* @__PURE__ */ e(ni, { frozen: b })
|
|
3290
3381
|
}
|
|
3291
3382
|
)
|
|
3292
3383
|
]
|
|
@@ -3318,8 +3409,8 @@ const fn = te(
|
|
|
3318
3409
|
`table-head-${w}`
|
|
3319
3410
|
);
|
|
3320
3411
|
}),
|
|
3321
|
-
|
|
3322
|
-
|
|
3412
|
+
V ? /* @__PURE__ */ e(
|
|
3413
|
+
mt,
|
|
3323
3414
|
{
|
|
3324
3415
|
style: {
|
|
3325
3416
|
backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
|
|
@@ -3328,42 +3419,42 @@ const fn = te(
|
|
|
3328
3419
|
right: 0,
|
|
3329
3420
|
zIndex: 3,
|
|
3330
3421
|
borderBottom: u ? X : void 0,
|
|
3331
|
-
boxShadow: u &&
|
|
3422
|
+
boxShadow: u && I ? de : void 0
|
|
3332
3423
|
}
|
|
3333
3424
|
}
|
|
3334
3425
|
) : null
|
|
3335
3426
|
] })
|
|
3336
3427
|
}
|
|
3337
3428
|
),
|
|
3338
|
-
/* @__PURE__ */ e(
|
|
3339
|
-
/* @__PURE__ */ e(
|
|
3340
|
-
/* @__PURE__ */ e(
|
|
3341
|
-
/* @__PURE__ */ e(
|
|
3342
|
-
/* @__PURE__ */ e(
|
|
3343
|
-
/* @__PURE__ */ e(
|
|
3344
|
-
] }) }) }) : !(r != null && r.length) && D ? /* @__PURE__ */ e(
|
|
3345
|
-
|
|
3429
|
+
/* @__PURE__ */ e(Yt, { children: o ? /* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(we, { colSpan: t.length + 1, children: /* @__PURE__ */ d(f, { style: { gap: "16px" }, children: [
|
|
3430
|
+
/* @__PURE__ */ e(He, { variant: "list" }),
|
|
3431
|
+
/* @__PURE__ */ e(He, { variant: "list" }),
|
|
3432
|
+
/* @__PURE__ */ e(He, { variant: "list" }),
|
|
3433
|
+
/* @__PURE__ */ e(He, { variant: "list" }),
|
|
3434
|
+
/* @__PURE__ */ e(He, { variant: "list" })
|
|
3435
|
+
] }) }) }) : !(r != null && r.length) && D ? /* @__PURE__ */ e(Ie, { children: /* @__PURE__ */ e(we, { colSpan: t.length + 1, children: D }) }) : r == null ? void 0 : r.map((x, w) => /* @__PURE__ */ d(
|
|
3436
|
+
Ie,
|
|
3346
3437
|
{
|
|
3347
3438
|
style: {
|
|
3348
3439
|
transition: "background-color 0.3s ease",
|
|
3349
3440
|
padding: 0,
|
|
3350
|
-
borderBottom: w === r.length - 1 &&
|
|
3441
|
+
borderBottom: w === r.length - 1 && Pe ? void 0 : "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
3351
3442
|
},
|
|
3352
3443
|
onMouseEnter: (b) => {
|
|
3353
|
-
const
|
|
3354
|
-
|
|
3355
|
-
H.style.position === "sticky" && (H.style.backgroundColor =
|
|
3444
|
+
const W = b.currentTarget;
|
|
3445
|
+
W.style.backgroundColor = Et, Array.from(W.querySelectorAll("td")).forEach((H) => {
|
|
3446
|
+
H.style.position === "sticky" && (H.style.backgroundColor = Et);
|
|
3356
3447
|
});
|
|
3357
3448
|
},
|
|
3358
3449
|
onMouseLeave: (b) => {
|
|
3359
|
-
const
|
|
3360
|
-
|
|
3361
|
-
H.style.position === "sticky" && (H.style.backgroundColor =
|
|
3450
|
+
const W = b.currentTarget;
|
|
3451
|
+
W.style.backgroundColor = "", Array.from(W.querySelectorAll("td")).forEach((H) => {
|
|
3452
|
+
H.style.position === "sticky" && (H.style.backgroundColor = tt);
|
|
3362
3453
|
});
|
|
3363
3454
|
},
|
|
3364
3455
|
children: [
|
|
3365
|
-
t.map((b,
|
|
3366
|
-
const H = b.render ? b.render(
|
|
3456
|
+
t.map((b, W) => {
|
|
3457
|
+
const H = b.render ? b.render(x, w, r) : ze(x, b.accessor), ne = m > 0 && W < m, ye = ie[W] ?? 0, ve = Be[W] !== void 0, xe = ne && W === m - 1;
|
|
3367
3458
|
return /* @__PURE__ */ e(
|
|
3368
3459
|
we,
|
|
3369
3460
|
{
|
|
@@ -3371,16 +3462,16 @@ const fn = te(
|
|
|
3371
3462
|
position: ne ? "sticky" : void 0,
|
|
3372
3463
|
left: ne ? ye : void 0,
|
|
3373
3464
|
zIndex: ne ? 1 : void 0,
|
|
3374
|
-
backgroundColor: ne ?
|
|
3465
|
+
backgroundColor: ne ? tt : void 0,
|
|
3375
3466
|
transition: ne ? "background-color 0.3s ease" : void 0,
|
|
3376
|
-
paddingLeft:
|
|
3467
|
+
paddingLeft: W === 0 ? "12px" : "",
|
|
3377
3468
|
whiteSpace: "nowrap",
|
|
3378
3469
|
overflow: ve ? "hidden" : void 0,
|
|
3379
3470
|
borderLeft: b.showBorderLeft ? X : void 0,
|
|
3380
3471
|
borderRight: b.showBorderRight ? X : void 0,
|
|
3381
|
-
boxShadow:
|
|
3472
|
+
boxShadow: xe ? he : void 0,
|
|
3382
3473
|
textAlign: b.textAlign === "text-right" ? "right" : b.textAlign === "text-center" ? "center" : "left",
|
|
3383
|
-
...y(
|
|
3474
|
+
...y(W, b.width)
|
|
3384
3475
|
},
|
|
3385
3476
|
children: typeof H == "string" ? /* @__PURE__ */ e(
|
|
3386
3477
|
C,
|
|
@@ -3395,67 +3486,67 @@ const fn = te(
|
|
|
3395
3486
|
}
|
|
3396
3487
|
) : H
|
|
3397
3488
|
},
|
|
3398
|
-
`row-${w}-col-${
|
|
3489
|
+
`row-${w}-col-${W}`
|
|
3399
3490
|
);
|
|
3400
3491
|
}),
|
|
3401
|
-
|
|
3402
|
-
width:
|
|
3492
|
+
V ? /* @__PURE__ */ e(we, { style: {
|
|
3493
|
+
width: Le,
|
|
3403
3494
|
position: "sticky",
|
|
3404
3495
|
right: 0,
|
|
3405
3496
|
zIndex: 1,
|
|
3406
|
-
backgroundColor:
|
|
3407
|
-
boxShadow:
|
|
3497
|
+
backgroundColor: tt,
|
|
3498
|
+
boxShadow: I ? de : void 0,
|
|
3408
3499
|
transition: "background-color 0.3s ease"
|
|
3409
3500
|
}, children: /* @__PURE__ */ e($, { direction: "row", align: "center", justify: "center", gap: "sm", children: A.map((b) => {
|
|
3410
|
-
const
|
|
3411
|
-
return b === "detail" && n && (h == null ? void 0 : h(
|
|
3501
|
+
const W = w === r.length - 1 ? "top" : "bottom";
|
|
3502
|
+
return b === "detail" && n && (h == null ? void 0 : h(x)) !== !1 ? /* @__PURE__ */ e(ue, { label: "Detail", position: W, children: /* @__PURE__ */ e(
|
|
3412
3503
|
R,
|
|
3413
3504
|
{
|
|
3414
3505
|
size: "xs",
|
|
3415
3506
|
variant: "outline",
|
|
3416
3507
|
tone: "neutral",
|
|
3417
|
-
onClick: () => n(
|
|
3508
|
+
onClick: () => n(x.id, x),
|
|
3418
3509
|
iconLeft: /* @__PURE__ */ e(k, { name: "DocumentClean", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
3419
3510
|
}
|
|
3420
|
-
) }, "detail") : b === "update" && l && (a == null ? void 0 : a(
|
|
3511
|
+
) }, "detail") : b === "update" && l && (a == null ? void 0 : a(x)) !== !1 ? /* @__PURE__ */ e(ue, { label: "Update", position: W, children: /* @__PURE__ */ e(
|
|
3421
3512
|
R,
|
|
3422
3513
|
{
|
|
3423
3514
|
size: "xs",
|
|
3424
3515
|
variant: "outline",
|
|
3425
3516
|
tone: "neutral",
|
|
3426
|
-
onClick: () => l(
|
|
3517
|
+
onClick: () => l(x),
|
|
3427
3518
|
iconLeft: /* @__PURE__ */ e(k, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
3428
3519
|
}
|
|
3429
|
-
) }, "update") : b === "delete" && i && (s == null ? void 0 : s(
|
|
3520
|
+
) }, "update") : b === "delete" && i && (s == null ? void 0 : s(x)) !== !1 ? /* @__PURE__ */ e(ue, { label: "Delete", position: W, children: /* @__PURE__ */ e(
|
|
3430
3521
|
R,
|
|
3431
3522
|
{
|
|
3432
3523
|
size: "xs",
|
|
3433
3524
|
variant: "outline",
|
|
3434
3525
|
tone: "neutral",
|
|
3435
|
-
onClick: () => i(
|
|
3526
|
+
onClick: () => i(x.id, x),
|
|
3436
3527
|
iconLeft: /* @__PURE__ */ e(k, { name: "Trash1", size: "sm", style: { color: "var(--sa-color-error-600, #c9184a)" } })
|
|
3437
3528
|
}
|
|
3438
|
-
) }, "delete") : b === "custom" ? /* @__PURE__ */ e(
|
|
3529
|
+
) }, "delete") : b === "custom" ? /* @__PURE__ */ e(Ht.Fragment, { children: v == null ? void 0 : v(x) }, "custom") : null;
|
|
3439
3530
|
}) }) }) : null
|
|
3440
3531
|
]
|
|
3441
3532
|
},
|
|
3442
|
-
`${
|
|
3533
|
+
`${x}${w}`
|
|
3443
3534
|
)) })
|
|
3444
3535
|
] }) });
|
|
3445
|
-
},
|
|
3536
|
+
}, oi = ({
|
|
3446
3537
|
wrapperProps: t,
|
|
3447
3538
|
dataTableProps: r,
|
|
3448
3539
|
headerProps: n,
|
|
3449
3540
|
footerProps: l
|
|
3450
3541
|
}) => {
|
|
3451
3542
|
var m;
|
|
3452
|
-
const i = le(null), [o, s] =
|
|
3543
|
+
const i = le(null), [o, s] = M(
|
|
3453
3544
|
(r == null ? void 0 : r.defaultFrozenCount) ?? 0
|
|
3454
3545
|
), a = (n == null ? void 0 : n.show) ?? !0, h = le(null), u = (m = r == null ? void 0 : r.pagination) == null ? void 0 : m.totalData;
|
|
3455
3546
|
typeof u == "number" && (h.current = u);
|
|
3456
3547
|
const g = (l == null ? void 0 : l.showFooter) ?? (u === void 0 ? h.current !== 0 : u !== 0);
|
|
3457
|
-
return /* @__PURE__ */ d(
|
|
3458
|
-
a && /* @__PURE__ */ e(
|
|
3548
|
+
return /* @__PURE__ */ d(Xr, { ...t, children: [
|
|
3549
|
+
a && /* @__PURE__ */ e(Kr, { ...n }),
|
|
3459
3550
|
/* @__PURE__ */ e(
|
|
3460
3551
|
f,
|
|
3461
3552
|
{
|
|
@@ -3466,7 +3557,7 @@ const fn = te(
|
|
|
3466
3557
|
overflowX: "auto"
|
|
3467
3558
|
},
|
|
3468
3559
|
children: r ? /* @__PURE__ */ e(
|
|
3469
|
-
|
|
3560
|
+
li,
|
|
3470
3561
|
{
|
|
3471
3562
|
...r,
|
|
3472
3563
|
scrollParentRef: i,
|
|
@@ -3477,7 +3568,7 @@ const fn = te(
|
|
|
3477
3568
|
}
|
|
3478
3569
|
),
|
|
3479
3570
|
g && /* @__PURE__ */ e(
|
|
3480
|
-
|
|
3571
|
+
ti,
|
|
3481
3572
|
{
|
|
3482
3573
|
pagination: r == null ? void 0 : r.pagination,
|
|
3483
3574
|
pageKey: r == null ? void 0 : r.pageKey,
|
|
@@ -3489,21 +3580,21 @@ const fn = te(
|
|
|
3489
3580
|
)
|
|
3490
3581
|
] });
|
|
3491
3582
|
};
|
|
3492
|
-
function
|
|
3583
|
+
function ci(t) {
|
|
3493
3584
|
return te(
|
|
3494
3585
|
t
|
|
3495
3586
|
);
|
|
3496
3587
|
}
|
|
3497
|
-
const
|
|
3588
|
+
const Bn = ci(oi), gt = ({
|
|
3498
3589
|
of: t,
|
|
3499
3590
|
render: r
|
|
3500
|
-
}) =>
|
|
3591
|
+
}) => ir.toArray(t == null ? void 0 : t.map((n, l, i) => r(n, l, i))), O = ({
|
|
3501
3592
|
condition: t,
|
|
3502
3593
|
fallback: r,
|
|
3503
3594
|
children: n,
|
|
3504
3595
|
loading: l,
|
|
3505
3596
|
isLoading: i
|
|
3506
|
-
}) => /* @__PURE__ */ e(
|
|
3597
|
+
}) => /* @__PURE__ */ e(G, { children: i ? l : t ? n : r }), N = (t) => /* @__PURE__ */ e(
|
|
3507
3598
|
C,
|
|
3508
3599
|
{
|
|
3509
3600
|
...t,
|
|
@@ -3513,7 +3604,7 @@ const kn = ri(ti), dt = ({
|
|
|
3513
3604
|
color: t.color || "gray-700",
|
|
3514
3605
|
children: t.children
|
|
3515
3606
|
}
|
|
3516
|
-
), Ce = (t) => /* @__PURE__ */ e(C, { color: "red-600", fontSize: "sm", children: t.message }),
|
|
3607
|
+
), Ce = (t) => /* @__PURE__ */ e(C, { color: "red-600", fontSize: "sm", children: t.message }), ai = ({
|
|
3517
3608
|
size: t = "md",
|
|
3518
3609
|
direction: r = "vertical",
|
|
3519
3610
|
requiredTitle: n = "(Required)",
|
|
@@ -3583,7 +3674,7 @@ const kn = ri(ti), dt = ({
|
|
|
3583
3674
|
),
|
|
3584
3675
|
/* @__PURE__ */ d(f, { gap: "xs", fullWidth: i.inputProps.fullWidth || !1, children: [
|
|
3585
3676
|
/* @__PURE__ */ e(
|
|
3586
|
-
|
|
3677
|
+
at,
|
|
3587
3678
|
{
|
|
3588
3679
|
ref: i.inputRef,
|
|
3589
3680
|
size: t,
|
|
@@ -3598,7 +3689,7 @@ const kn = ri(ti), dt = ({
|
|
|
3598
3689
|
]
|
|
3599
3690
|
}
|
|
3600
3691
|
);
|
|
3601
|
-
},
|
|
3692
|
+
}, si = ({
|
|
3602
3693
|
size: t = "md",
|
|
3603
3694
|
direction: r = "vertical",
|
|
3604
3695
|
requiredTitle: n = "(Required)",
|
|
@@ -3674,7 +3765,7 @@ const kn = ri(ti), dt = ({
|
|
|
3674
3765
|
width: i.inputProps.fullWidth ? "100%" : r === "horizontal" && i.customWidth ? i.customWidth : r === "horizontal" ? "343px" : ""
|
|
3675
3766
|
},
|
|
3676
3767
|
children: /* @__PURE__ */ e(
|
|
3677
|
-
|
|
3768
|
+
ct,
|
|
3678
3769
|
{
|
|
3679
3770
|
size: t,
|
|
3680
3771
|
...i.inputProps,
|
|
@@ -3689,9 +3780,9 @@ const kn = ri(ti), dt = ({
|
|
|
3689
3780
|
]
|
|
3690
3781
|
}
|
|
3691
3782
|
);
|
|
3692
|
-
},
|
|
3783
|
+
}, di = (t, r) => typeof t == "string" && t || r === "error" ? "var(--sa-text-error, #a4133c)" : "var(--sa-text-disable, #181a198f)", hi = (t) => {
|
|
3693
3784
|
var a;
|
|
3694
|
-
const [r, n] =
|
|
3785
|
+
const [r, n] = M(!1), l = (h) => {
|
|
3695
3786
|
h.preventDefault(), h.stopPropagation();
|
|
3696
3787
|
}, i = (h) => {
|
|
3697
3788
|
h.preventDefault(), h.stopPropagation(), h.dataTransfer && t.handleOnFileChange(h.dataTransfer.files.item(0));
|
|
@@ -3716,7 +3807,7 @@ const kn = ri(ti), dt = ({
|
|
|
3716
3807
|
paddingBlock: "md",
|
|
3717
3808
|
borderRadius: "rounded-md",
|
|
3718
3809
|
style: {
|
|
3719
|
-
border: r ? "1px solid var(--sa-text-info, #0073ab)" : `1px solid ${
|
|
3810
|
+
border: r ? "1px solid var(--sa-text-info, #0073ab)" : `1px solid ${di(t.errorMessage, t.status)}`
|
|
3720
3811
|
},
|
|
3721
3812
|
children: [
|
|
3722
3813
|
/* @__PURE__ */ e(
|
|
@@ -3758,17 +3849,17 @@ const kn = ri(ti), dt = ({
|
|
|
3758
3849
|
}
|
|
3759
3850
|
);
|
|
3760
3851
|
};
|
|
3761
|
-
function
|
|
3852
|
+
function An(t) {
|
|
3762
3853
|
return t.split(" ").map((r) => r[0]).join("").slice(0, 2).toUpperCase();
|
|
3763
3854
|
}
|
|
3764
|
-
const
|
|
3855
|
+
const ui = (t) => {
|
|
3765
3856
|
const r = {
|
|
3766
3857
|
day: "2-digit",
|
|
3767
3858
|
month: "short",
|
|
3768
3859
|
year: "numeric"
|
|
3769
3860
|
};
|
|
3770
3861
|
return t.toLocaleDateString("id-ID", r);
|
|
3771
|
-
},
|
|
3862
|
+
}, Rn = (t) => {
|
|
3772
3863
|
const r = {
|
|
3773
3864
|
Jan: 0,
|
|
3774
3865
|
Feb: 1,
|
|
@@ -3788,7 +3879,7 @@ const ci = (t) => {
|
|
|
3788
3879
|
const l = parseInt(n[0], 10), i = r[n[1]], o = parseInt(n[2], 10);
|
|
3789
3880
|
return isNaN(l) || isNaN(i) || isNaN(o) ? null : new Date(o, i, l);
|
|
3790
3881
|
};
|
|
3791
|
-
function
|
|
3882
|
+
function Hn(t, r = !0) {
|
|
3792
3883
|
if (!t)
|
|
3793
3884
|
return "Rp 0";
|
|
3794
3885
|
const n = typeof t == "number" ? t.toString() : t;
|
|
@@ -3803,19 +3894,19 @@ String.prototype.toTitleCase = function() {
|
|
|
3803
3894
|
String.prototype.toNumber = function() {
|
|
3804
3895
|
return Number(this);
|
|
3805
3896
|
};
|
|
3806
|
-
const
|
|
3897
|
+
const In = (t) => {
|
|
3807
3898
|
const r = t.split(" ");
|
|
3808
3899
|
let n = r[0].charAt(0);
|
|
3809
3900
|
return r.length > 1 && (n += "" + r[1].charAt(0)), n.toUpperCase();
|
|
3810
3901
|
};
|
|
3811
|
-
function
|
|
3902
|
+
function Vn(t) {
|
|
3812
3903
|
const r = typeof t == "string" ? new Date(t) : t;
|
|
3813
3904
|
if (isNaN(r.getTime()))
|
|
3814
3905
|
throw new Error("Invalid date format");
|
|
3815
3906
|
const n = r.getFullYear(), l = String(r.getMonth() + 1).padStart(2, "0"), i = String(r.getDate()).padStart(2, "0");
|
|
3816
3907
|
return `${n}-${l}-${i}`;
|
|
3817
3908
|
}
|
|
3818
|
-
const
|
|
3909
|
+
const fi = "sa-admin", ge = (t) => `var(--${fi}-${t})`, zn = {
|
|
3819
3910
|
base: {
|
|
3820
3911
|
borderColor: ge("base-border-color"),
|
|
3821
3912
|
textColor: ge("base-text-color"),
|
|
@@ -3833,22 +3924,22 @@ const ai = "sa-admin", ge = (t) => `var(--${ai}-${t})`, Wn = {
|
|
|
3833
3924
|
collapseWidth: ge("sidebar-collapse-width"),
|
|
3834
3925
|
collapseV2Width: ge("sidebar-v2-collapse-width")
|
|
3835
3926
|
}
|
|
3836
|
-
},
|
|
3927
|
+
}, Tn = 24 * 60 * 60 * 1e3, On = (t) => {
|
|
3837
3928
|
const r = "14px poppins", l = document.createElement("canvas").getContext("2d");
|
|
3838
3929
|
l.font = r;
|
|
3839
3930
|
const i = l.measureText(t).width;
|
|
3840
3931
|
return Number(Math.ceil(i));
|
|
3841
|
-
},
|
|
3842
|
-
function
|
|
3932
|
+
}, gi = /^[^\s@]+@[^\s@]+\.[^\s@]+$/, mi = /--+/, yi = /-$/;
|
|
3933
|
+
function Nn(t, r) {
|
|
3843
3934
|
return JSON.stringify(t) !== JSON.stringify(r);
|
|
3844
3935
|
}
|
|
3845
|
-
function
|
|
3936
|
+
function jn(t) {
|
|
3846
3937
|
return /^(?:\+62|62|0)8[1-9][0-9]{7,10}$/.test(t);
|
|
3847
3938
|
}
|
|
3848
|
-
function
|
|
3939
|
+
function Zn(t) {
|
|
3849
3940
|
return /^[A-Za-z\s]+$/.test(t);
|
|
3850
3941
|
}
|
|
3851
|
-
const
|
|
3942
|
+
const $n = (t) => {
|
|
3852
3943
|
const r = /^[0-9]$/, n = [
|
|
3853
3944
|
"ArrowLeft",
|
|
3854
3945
|
"ArrowRight",
|
|
@@ -3860,7 +3951,7 @@ const zn = (t) => {
|
|
|
3860
3951
|
"Tab"
|
|
3861
3952
|
];
|
|
3862
3953
|
(t.ctrlKey || t.metaKey) && (t.key === "a" || t.key === "c" || t.key === "v") || !r.test(t.key) && !n.includes(t.key) && t.preventDefault();
|
|
3863
|
-
},
|
|
3954
|
+
}, _n = (t) => {
|
|
3864
3955
|
const r = /^[0-9]$/, n = [
|
|
3865
3956
|
"ArrowLeft",
|
|
3866
3957
|
"ArrowRight",
|
|
@@ -3872,7 +3963,7 @@ const zn = (t) => {
|
|
|
3872
3963
|
"Tab"
|
|
3873
3964
|
];
|
|
3874
3965
|
(t.ctrlKey || t.metaKey) && t.key === "v" || r.test(t.key) && !n.includes(t.key) && t.preventDefault();
|
|
3875
|
-
},
|
|
3966
|
+
}, Un = (t) => {
|
|
3876
3967
|
const r = /^[0-9.]$/, n = [
|
|
3877
3968
|
"ArrowLeft",
|
|
3878
3969
|
"ArrowRight",
|
|
@@ -3884,11 +3975,11 @@ const zn = (t) => {
|
|
|
3884
3975
|
"Tab"
|
|
3885
3976
|
];
|
|
3886
3977
|
(t.ctrlKey || t.metaKey) && t.key === "v" || !r.test(t.key) && !n.includes(t.key) && t.preventDefault();
|
|
3887
|
-
},
|
|
3888
|
-
function
|
|
3889
|
-
return !(
|
|
3978
|
+
}, qn = (t) => gi.test(t);
|
|
3979
|
+
function Gn(t) {
|
|
3980
|
+
return !(mi.test(t) || yi.test(t));
|
|
3890
3981
|
}
|
|
3891
|
-
const
|
|
3982
|
+
const Jn = (t) => {
|
|
3892
3983
|
const r = [
|
|
3893
3984
|
"ArrowLeft",
|
|
3894
3985
|
"ArrowRight",
|
|
@@ -3905,7 +3996,7 @@ const jn = (t) => {
|
|
|
3905
3996
|
return;
|
|
3906
3997
|
const n = t.currentTarget.value;
|
|
3907
3998
|
/^[0-9]$/.test(t.key) || t.key === "." && !n.includes(".") || t.key === "-" && n.length === 0 && !n.includes("-") || r.includes(t.key) || t.preventDefault();
|
|
3908
|
-
},
|
|
3999
|
+
}, Qn = (t) => {
|
|
3909
4000
|
const r = document.getElementById(t);
|
|
3910
4001
|
if (r) {
|
|
3911
4002
|
const n = r.getBoundingClientRect(), l = window.scrollY + n.top - 80;
|
|
@@ -3915,7 +4006,7 @@ const jn = (t) => {
|
|
|
3915
4006
|
});
|
|
3916
4007
|
}
|
|
3917
4008
|
};
|
|
3918
|
-
function
|
|
4009
|
+
function pi(t) {
|
|
3919
4010
|
const r = t.toLowerCase();
|
|
3920
4011
|
if (["kb", "mb", "gb"].find((o) => r.endsWith(o)))
|
|
3921
4012
|
return t;
|
|
@@ -3924,11 +4015,11 @@ function ui(t) {
|
|
|
3924
4015
|
throw new Error("Invalid size format");
|
|
3925
4016
|
return i >= 1e6 ? `${(i / 1e6).toFixed(2)}MB` : i >= 1e3 ? `${(i / 1e3).toFixed(2)}KB` : `${i}B`;
|
|
3926
4017
|
}
|
|
3927
|
-
function
|
|
4018
|
+
function xi(t) {
|
|
3928
4019
|
const r = t.split("/");
|
|
3929
4020
|
return r[r.length - 1];
|
|
3930
4021
|
}
|
|
3931
|
-
const
|
|
4022
|
+
const Ci = (t) => {
|
|
3932
4023
|
var r, n;
|
|
3933
4024
|
return /* @__PURE__ */ d(
|
|
3934
4025
|
f,
|
|
@@ -3973,11 +4064,11 @@ const gi = (t) => {
|
|
|
3973
4064
|
whiteSpace: "nowrap",
|
|
3974
4065
|
overflow: "hidden"
|
|
3975
4066
|
},
|
|
3976
|
-
children:
|
|
4067
|
+
children: xi(t.defaultUrl || "") || ((r = t.fileSelected) == null ? void 0 : r.name)
|
|
3977
4068
|
}
|
|
3978
4069
|
),
|
|
3979
4070
|
!t.defaultUrl && /* @__PURE__ */ d($, { direction: "row", gap: "xs", align: "center", children: [
|
|
3980
|
-
/* @__PURE__ */ e(C, { fontSize: "sm", fontWeight: "medium", children: `${
|
|
4071
|
+
/* @__PURE__ */ e(C, { fontSize: "sm", fontWeight: "medium", children: `${pi(
|
|
3981
4072
|
((n = t.fileSelected) == null ? void 0 : n.size.toString()) || "100000"
|
|
3982
4073
|
)}` }),
|
|
3983
4074
|
/* @__PURE__ */ e(k, { name: "Dot", size: "xs" }),
|
|
@@ -3989,7 +4080,7 @@ const gi = (t) => {
|
|
|
3989
4080
|
style: {
|
|
3990
4081
|
textWrap: "nowrap"
|
|
3991
4082
|
},
|
|
3992
|
-
children: t.fileDate ? t.fileDate :
|
|
4083
|
+
children: t.fileDate ? t.fileDate : ui(/* @__PURE__ */ new Date())
|
|
3993
4084
|
}
|
|
3994
4085
|
)
|
|
3995
4086
|
] })
|
|
@@ -4018,7 +4109,7 @@ const gi = (t) => {
|
|
|
4018
4109
|
]
|
|
4019
4110
|
}
|
|
4020
4111
|
);
|
|
4021
|
-
},
|
|
4112
|
+
}, Di = ({ status: t = "default", ...r }) => {
|
|
4022
4113
|
var o;
|
|
4023
4114
|
const n = le(null), l = () => {
|
|
4024
4115
|
if (r.defaultUrl) {
|
|
@@ -4027,7 +4118,7 @@ const gi = (t) => {
|
|
|
4027
4118
|
}
|
|
4028
4119
|
n.current && n.current.click();
|
|
4029
4120
|
}, i = ee("md");
|
|
4030
|
-
return /* @__PURE__ */ d(
|
|
4121
|
+
return /* @__PURE__ */ d(G, { children: [
|
|
4031
4122
|
/* @__PURE__ */ e(
|
|
4032
4123
|
"input",
|
|
4033
4124
|
{
|
|
@@ -4055,7 +4146,7 @@ const gi = (t) => {
|
|
|
4055
4146
|
...r.containerProps,
|
|
4056
4147
|
children: [
|
|
4057
4148
|
(r.fileSelected || r.defaultUrl) && /* @__PURE__ */ e(
|
|
4058
|
-
|
|
4149
|
+
Ci,
|
|
4059
4150
|
{
|
|
4060
4151
|
fileSelected: r.fileSelected,
|
|
4061
4152
|
fileDate: r.fileDate,
|
|
@@ -4065,7 +4156,7 @@ const gi = (t) => {
|
|
|
4065
4156
|
}
|
|
4066
4157
|
),
|
|
4067
4158
|
!r.fileSelected && !r.defaultUrl && /* @__PURE__ */ e(
|
|
4068
|
-
|
|
4159
|
+
hi,
|
|
4069
4160
|
{
|
|
4070
4161
|
fileSupports: r.fileSupportOption,
|
|
4071
4162
|
isDesktop: i,
|
|
@@ -4080,7 +4171,7 @@ const gi = (t) => {
|
|
|
4080
4171
|
),
|
|
4081
4172
|
typeof r.errorMessage == "string" && r.errorMessage && /* @__PURE__ */ e(C, { color: "error", fontSize: "xs", children: r.errorMessage })
|
|
4082
4173
|
] });
|
|
4083
|
-
},
|
|
4174
|
+
}, vi = ({
|
|
4084
4175
|
size: t = "md",
|
|
4085
4176
|
direction: r = "vertical",
|
|
4086
4177
|
requiredTitle: n = "(Required)",
|
|
@@ -4150,7 +4241,7 @@ const gi = (t) => {
|
|
|
4150
4241
|
),
|
|
4151
4242
|
/* @__PURE__ */ d($, { gap: "xs", children: [
|
|
4152
4243
|
/* @__PURE__ */ e(
|
|
4153
|
-
|
|
4244
|
+
Di,
|
|
4154
4245
|
{
|
|
4155
4246
|
...i.inputProps,
|
|
4156
4247
|
status: i.errorMessage ? "error" : "default"
|
|
@@ -4161,7 +4252,7 @@ const gi = (t) => {
|
|
|
4161
4252
|
]
|
|
4162
4253
|
}
|
|
4163
4254
|
);
|
|
4164
|
-
},
|
|
4255
|
+
}, bi = ({
|
|
4165
4256
|
size: t = "md",
|
|
4166
4257
|
direction: r = "vertical",
|
|
4167
4258
|
requiredTitle: n = "(Required)",
|
|
@@ -4237,13 +4328,13 @@ const gi = (t) => {
|
|
|
4237
4328
|
direction: r === "horizontal-inline" ? "row" : "column",
|
|
4238
4329
|
align: "flex-start",
|
|
4239
4330
|
children: /* @__PURE__ */ e(
|
|
4240
|
-
|
|
4331
|
+
gt,
|
|
4241
4332
|
{
|
|
4242
|
-
of: (m = o.checkBoxesList) == null ? void 0 : m.map((
|
|
4243
|
-
...
|
|
4244
|
-
isChecked: o.checkBoxesAreChecked.includes(
|
|
4333
|
+
of: (m = o.checkBoxesList) == null ? void 0 : m.map((p) => ({
|
|
4334
|
+
...p,
|
|
4335
|
+
isChecked: o.checkBoxesAreChecked.includes(p.id)
|
|
4245
4336
|
})),
|
|
4246
|
-
render: (
|
|
4337
|
+
render: (p) => p.renderBadge ? /* @__PURE__ */ d(
|
|
4247
4338
|
f,
|
|
4248
4339
|
{
|
|
4249
4340
|
direction: "row",
|
|
@@ -4252,28 +4343,28 @@ const gi = (t) => {
|
|
|
4252
4343
|
...o.badgeContainerProps,
|
|
4253
4344
|
children: [
|
|
4254
4345
|
/* @__PURE__ */ e(
|
|
4255
|
-
|
|
4346
|
+
rt,
|
|
4256
4347
|
{
|
|
4257
|
-
name:
|
|
4258
|
-
value:
|
|
4259
|
-
checked:
|
|
4260
|
-
onChange: (v) => o.onChecked(v.target.value,
|
|
4261
|
-
label:
|
|
4262
|
-
description:
|
|
4348
|
+
name: p.name,
|
|
4349
|
+
value: p.id,
|
|
4350
|
+
checked: p.isChecked,
|
|
4351
|
+
onChange: (v) => o.onChecked(v.target.value, p),
|
|
4352
|
+
label: p.name,
|
|
4353
|
+
description: p.description
|
|
4263
4354
|
}
|
|
4264
4355
|
),
|
|
4265
|
-
|
|
4356
|
+
p.renderBadge
|
|
4266
4357
|
]
|
|
4267
4358
|
}
|
|
4268
4359
|
) : /* @__PURE__ */ e(
|
|
4269
|
-
|
|
4360
|
+
rt,
|
|
4270
4361
|
{
|
|
4271
|
-
name:
|
|
4272
|
-
value:
|
|
4273
|
-
checked:
|
|
4274
|
-
onChange: (v) => o.onChecked(v.target.value,
|
|
4275
|
-
label:
|
|
4276
|
-
description:
|
|
4362
|
+
name: p.name,
|
|
4363
|
+
value: p.id,
|
|
4364
|
+
checked: p.isChecked,
|
|
4365
|
+
onChange: (v) => o.onChecked(v.target.value, p),
|
|
4366
|
+
label: p.name,
|
|
4367
|
+
description: p.description
|
|
4277
4368
|
}
|
|
4278
4369
|
)
|
|
4279
4370
|
}
|
|
@@ -4284,7 +4375,7 @@ const gi = (t) => {
|
|
|
4284
4375
|
]
|
|
4285
4376
|
}
|
|
4286
4377
|
);
|
|
4287
|
-
},
|
|
4378
|
+
}, wi = ({
|
|
4288
4379
|
position: t = "vertical",
|
|
4289
4380
|
size: r = "md",
|
|
4290
4381
|
fullWidth: n = !1,
|
|
@@ -4318,7 +4409,7 @@ const gi = (t) => {
|
|
|
4318
4409
|
align: "flex-start",
|
|
4319
4410
|
flexWrap: "wrap",
|
|
4320
4411
|
children: /* @__PURE__ */ e(
|
|
4321
|
-
|
|
4412
|
+
gt,
|
|
4322
4413
|
{
|
|
4323
4414
|
of: (o = l.radioList) == null ? void 0 : o.map((s) => ({
|
|
4324
4415
|
...s,
|
|
@@ -4326,17 +4417,17 @@ const gi = (t) => {
|
|
|
4326
4417
|
})),
|
|
4327
4418
|
render: ({ value: s, id: a, isChecked: h, subInput: u, label: g, description: m }) => /* @__PURE__ */ d(f, { gap: "xs", customMaxWidth: i, children: [
|
|
4328
4419
|
/* @__PURE__ */ e(
|
|
4329
|
-
|
|
4420
|
+
rr,
|
|
4330
4421
|
{
|
|
4331
4422
|
id: `${a.toString()}-${s}`,
|
|
4332
4423
|
name: l.groupName || g,
|
|
4333
4424
|
label: g,
|
|
4334
4425
|
value: s,
|
|
4335
4426
|
checked: h,
|
|
4336
|
-
onChange: (
|
|
4427
|
+
onChange: (p) => l.onChecked({
|
|
4337
4428
|
id: a,
|
|
4338
|
-
label:
|
|
4339
|
-
value:
|
|
4429
|
+
label: p.target.name,
|
|
4430
|
+
value: p.target.value
|
|
4340
4431
|
}),
|
|
4341
4432
|
disabled: l.disableAll
|
|
4342
4433
|
},
|
|
@@ -4362,7 +4453,7 @@ const gi = (t) => {
|
|
|
4362
4453
|
]
|
|
4363
4454
|
}
|
|
4364
4455
|
);
|
|
4365
|
-
},
|
|
4456
|
+
}, ki = ({
|
|
4366
4457
|
size: t = "md",
|
|
4367
4458
|
direction: r = "vertical",
|
|
4368
4459
|
requiredTitle: n = "(Required)",
|
|
@@ -4432,7 +4523,7 @@ const gi = (t) => {
|
|
|
4432
4523
|
),
|
|
4433
4524
|
/* @__PURE__ */ d($, { gap: "xs", children: [
|
|
4434
4525
|
/* @__PURE__ */ e(
|
|
4435
|
-
|
|
4526
|
+
Xt,
|
|
4436
4527
|
{
|
|
4437
4528
|
ref: i.inputRef,
|
|
4438
4529
|
size: t,
|
|
@@ -4445,7 +4536,7 @@ const gi = (t) => {
|
|
|
4445
4536
|
]
|
|
4446
4537
|
}
|
|
4447
4538
|
);
|
|
4448
|
-
},
|
|
4539
|
+
}, Si = ({
|
|
4449
4540
|
size: t = "md",
|
|
4450
4541
|
direction: r = "vertical",
|
|
4451
4542
|
requiredTitle: n = "(Required)",
|
|
@@ -4515,7 +4606,7 @@ const gi = (t) => {
|
|
|
4515
4606
|
}
|
|
4516
4607
|
),
|
|
4517
4608
|
/* @__PURE__ */ e(
|
|
4518
|
-
|
|
4609
|
+
Rt,
|
|
4519
4610
|
{
|
|
4520
4611
|
checked: o.checked,
|
|
4521
4612
|
onChange: o.onChange,
|
|
@@ -4527,15 +4618,15 @@ const gi = (t) => {
|
|
|
4527
4618
|
]
|
|
4528
4619
|
}
|
|
4529
4620
|
);
|
|
4530
|
-
},
|
|
4621
|
+
}, Fi = ({
|
|
4531
4622
|
variant: t = "primary",
|
|
4532
4623
|
size: r = "md",
|
|
4533
4624
|
...n
|
|
4534
4625
|
}) => {
|
|
4535
|
-
const l =
|
|
4536
|
-
var h, u, g, m,
|
|
4626
|
+
const l = tr(), i = (s) => {
|
|
4627
|
+
var h, u, g, m, p, v;
|
|
4537
4628
|
if (!s) return;
|
|
4538
|
-
const a = n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (u = (h = l == null ? void 0 : l.computed) == null ? void 0 : h.red) == null ? void 0 : u[600] : t === "secondary-primary" ? (m = (g = l == null ? void 0 : l.computed) == null ? void 0 : g.blue) == null ? void 0 : m[700] : (v = (
|
|
4629
|
+
const a = n.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (u = (h = l == null ? void 0 : l.computed) == null ? void 0 : h.red) == null ? void 0 : u[600] : t === "secondary-primary" ? (m = (g = l == null ? void 0 : l.computed) == null ? void 0 : g.blue) == null ? void 0 : m[700] : (v = (p = l == null ? void 0 : l.computed) == null ? void 0 : p.gray) == null ? void 0 : v[50];
|
|
4539
4630
|
return /* @__PURE__ */ e(k, { name: s, size: r, style: { color: a } });
|
|
4540
4631
|
}, o = () => {
|
|
4541
4632
|
var a, h, u, g;
|
|
@@ -4572,7 +4663,7 @@ const gi = (t) => {
|
|
|
4572
4663
|
children: o()
|
|
4573
4664
|
}
|
|
4574
4665
|
);
|
|
4575
|
-
},
|
|
4666
|
+
}, Ei = (t) => /* @__PURE__ */ e(
|
|
4576
4667
|
me.H5,
|
|
4577
4668
|
{
|
|
4578
4669
|
props: {
|
|
@@ -4580,7 +4671,7 @@ const gi = (t) => {
|
|
|
4580
4671
|
},
|
|
4581
4672
|
children: t.title
|
|
4582
4673
|
}
|
|
4583
|
-
),
|
|
4674
|
+
), Mi = ({
|
|
4584
4675
|
size: t = "md",
|
|
4585
4676
|
direction: r = "vertical",
|
|
4586
4677
|
requiredTitle: n = "(Required)",
|
|
@@ -4656,7 +4747,7 @@ const gi = (t) => {
|
|
|
4656
4747
|
width: r === "horizontal" && i.customWidth ? i.customWidth : r === "horizontal" ? "343px" : ""
|
|
4657
4748
|
},
|
|
4658
4749
|
children: /* @__PURE__ */ e(
|
|
4659
|
-
|
|
4750
|
+
Ut,
|
|
4660
4751
|
{
|
|
4661
4752
|
size: t,
|
|
4662
4753
|
...i.inputProps,
|
|
@@ -4671,7 +4762,7 @@ const gi = (t) => {
|
|
|
4671
4762
|
}
|
|
4672
4763
|
);
|
|
4673
4764
|
};
|
|
4674
|
-
async function
|
|
4765
|
+
async function Li(t, r) {
|
|
4675
4766
|
const n = new Image();
|
|
4676
4767
|
n.src = t, await new Promise((o, s) => {
|
|
4677
4768
|
n.onload = o, n.onerror = s;
|
|
@@ -4698,7 +4789,7 @@ async function ki(t, r) {
|
|
|
4698
4789
|
}, "image/png");
|
|
4699
4790
|
});
|
|
4700
4791
|
}
|
|
4701
|
-
const
|
|
4792
|
+
const Mt = {
|
|
4702
4793
|
"1:1": 1,
|
|
4703
4794
|
"4:3": 4 / 3,
|
|
4704
4795
|
"16:9": 16 / 9,
|
|
@@ -4707,7 +4798,7 @@ const wt = {
|
|
|
4707
4798
|
"2:3": 2 / 3,
|
|
4708
4799
|
"3:2": 3 / 2,
|
|
4709
4800
|
"32:9": 32 / 9
|
|
4710
|
-
},
|
|
4801
|
+
}, Wi = It(
|
|
4711
4802
|
({
|
|
4712
4803
|
handleUpload: t,
|
|
4713
4804
|
urlImage: r,
|
|
@@ -4720,49 +4811,49 @@ const wt = {
|
|
|
4720
4811
|
maxFileSize: h = 2,
|
|
4721
4812
|
onError: u
|
|
4722
4813
|
}, g) => {
|
|
4723
|
-
const m = ee("md"), [
|
|
4724
|
-
|
|
4814
|
+
const m = ee("md"), [p, v] = M(!1), [A, D] = M(null), [T, j] = M(!1), [Z, Q] = M({ x: 0, y: 0 }), [L, fe] = M(1), [P, I] = M(null);
|
|
4815
|
+
_(() => {
|
|
4725
4816
|
r === null && i(null);
|
|
4726
4817
|
}, [r]);
|
|
4727
|
-
const K =
|
|
4728
|
-
(
|
|
4729
|
-
|
|
4818
|
+
const K = Me(
|
|
4819
|
+
(V, z) => {
|
|
4820
|
+
I(z);
|
|
4730
4821
|
},
|
|
4731
4822
|
[]
|
|
4732
|
-
), oe = (
|
|
4823
|
+
), oe = (V) => {
|
|
4733
4824
|
var de;
|
|
4734
|
-
const
|
|
4735
|
-
if (!
|
|
4825
|
+
const z = (de = V.target.files) == null ? void 0 : de[0];
|
|
4826
|
+
if (!z) return;
|
|
4736
4827
|
const X = new FileReader();
|
|
4737
4828
|
X.onload = () => {
|
|
4738
4829
|
D(X.result), j(!0);
|
|
4739
|
-
}, X.readAsDataURL(
|
|
4830
|
+
}, X.readAsDataURL(z);
|
|
4740
4831
|
}, ce = async () => {
|
|
4741
4832
|
if (!(!A || !P))
|
|
4742
4833
|
try {
|
|
4743
|
-
const
|
|
4744
|
-
if (h &&
|
|
4834
|
+
const V = await Li(A, P);
|
|
4835
|
+
if (h && V.size > h * 1024 * 1024) {
|
|
4745
4836
|
u == null || u(`Ukuran file maksimal ${h}MB`);
|
|
4746
4837
|
return;
|
|
4747
4838
|
}
|
|
4748
|
-
t == null || t(
|
|
4749
|
-
const
|
|
4750
|
-
i(
|
|
4839
|
+
t == null || t(V);
|
|
4840
|
+
const z = URL.createObjectURL(V);
|
|
4841
|
+
i(z, V), j(!1);
|
|
4751
4842
|
} catch {
|
|
4752
4843
|
u == null || u("Gagal memproses gambar");
|
|
4753
4844
|
}
|
|
4754
|
-
},
|
|
4755
|
-
|
|
4845
|
+
}, U = le(null), ae = () => {
|
|
4846
|
+
U.current && U.current.click();
|
|
4756
4847
|
};
|
|
4757
|
-
|
|
4848
|
+
nr(g, () => ({
|
|
4758
4849
|
openFileDialog: () => {
|
|
4759
|
-
var
|
|
4760
|
-
(
|
|
4850
|
+
var V;
|
|
4851
|
+
(V = U.current) == null || V.click();
|
|
4761
4852
|
}
|
|
4762
4853
|
}));
|
|
4763
|
-
const se = parseInt(o, 10), re =
|
|
4764
|
-
let Y,
|
|
4765
|
-
return re >= 1 ? (
|
|
4854
|
+
const se = parseInt(o, 10), re = Mt[s];
|
|
4855
|
+
let Y, J;
|
|
4856
|
+
return re >= 1 ? (J = se, Y = se * re) : (Y = se, J = se / re), /* @__PURE__ */ d(
|
|
4766
4857
|
f,
|
|
4767
4858
|
{
|
|
4768
4859
|
display: "flex",
|
|
@@ -4777,7 +4868,7 @@ const wt = {
|
|
|
4777
4868
|
justify: "center",
|
|
4778
4869
|
style: {
|
|
4779
4870
|
width: a != null && a.fullWidth ? "100%" : `${Y}px`,
|
|
4780
|
-
height: a != null && a.fullWidth ? "auto" : `${
|
|
4871
|
+
height: a != null && a.fullWidth ? "auto" : `${J}px`,
|
|
4781
4872
|
aspectRatio: re,
|
|
4782
4873
|
flexShrink: 0
|
|
4783
4874
|
},
|
|
@@ -4827,7 +4918,7 @@ const wt = {
|
|
|
4827
4918
|
style: {
|
|
4828
4919
|
inset: 0,
|
|
4829
4920
|
backgroundColor: "var(--sa-color-black-alpha-a30, #080f214a)",
|
|
4830
|
-
opacity:
|
|
4921
|
+
opacity: p ? 1 : 0,
|
|
4831
4922
|
transition: "opacity 0.3s ease-in-out"
|
|
4832
4923
|
},
|
|
4833
4924
|
onClick: ae,
|
|
@@ -4835,7 +4926,7 @@ const wt = {
|
|
|
4835
4926
|
/* @__PURE__ */ e(
|
|
4836
4927
|
"input",
|
|
4837
4928
|
{
|
|
4838
|
-
ref:
|
|
4929
|
+
ref: U,
|
|
4839
4930
|
type: "file",
|
|
4840
4931
|
accept: "image/*",
|
|
4841
4932
|
onChange: oe,
|
|
@@ -4891,7 +4982,7 @@ const wt = {
|
|
|
4891
4982
|
)
|
|
4892
4983
|
}
|
|
4893
4984
|
),
|
|
4894
|
-
T &&
|
|
4985
|
+
T && lr.createPortal(
|
|
4895
4986
|
/* @__PURE__ */ e(
|
|
4896
4987
|
"div",
|
|
4897
4988
|
{
|
|
@@ -4917,7 +5008,7 @@ const wt = {
|
|
|
4917
5008
|
display: "flex",
|
|
4918
5009
|
flexDirection: "column"
|
|
4919
5010
|
},
|
|
4920
|
-
onClick: (
|
|
5011
|
+
onClick: (V) => V.stopPropagation(),
|
|
4921
5012
|
children: [
|
|
4922
5013
|
/* @__PURE__ */ e(
|
|
4923
5014
|
"div",
|
|
@@ -4929,12 +5020,12 @@ const wt = {
|
|
|
4929
5020
|
backgroundColor: "var(--sa-color-gray-100)"
|
|
4930
5021
|
},
|
|
4931
5022
|
children: A && /* @__PURE__ */ e(
|
|
4932
|
-
|
|
5023
|
+
cr,
|
|
4933
5024
|
{
|
|
4934
5025
|
image: A,
|
|
4935
5026
|
crop: Z,
|
|
4936
|
-
zoom:
|
|
4937
|
-
aspect: s ?
|
|
5027
|
+
zoom: L,
|
|
5028
|
+
aspect: s ? Mt[s] : void 0,
|
|
4938
5029
|
onCropChange: Q,
|
|
4939
5030
|
onZoomChange: fe,
|
|
4940
5031
|
onCropComplete: K,
|
|
@@ -4972,7 +5063,7 @@ const wt = {
|
|
|
4972
5063
|
}
|
|
4973
5064
|
);
|
|
4974
5065
|
}
|
|
4975
|
-
),
|
|
5066
|
+
), Bi = ({
|
|
4976
5067
|
size: t = "md",
|
|
4977
5068
|
direction: r = "vertical",
|
|
4978
5069
|
requiredTitle: n = "(Required)",
|
|
@@ -5042,13 +5133,13 @@ const wt = {
|
|
|
5042
5133
|
}
|
|
5043
5134
|
),
|
|
5044
5135
|
/* @__PURE__ */ d($, { gap: "xs", children: [
|
|
5045
|
-
/* @__PURE__ */ e(
|
|
5136
|
+
/* @__PURE__ */ e(Wi, { ...o.inputProps }),
|
|
5046
5137
|
!s && o.errorMessage && /* @__PURE__ */ e(Ce, { message: o.errorMessage })
|
|
5047
5138
|
] })
|
|
5048
5139
|
]
|
|
5049
5140
|
}
|
|
5050
5141
|
);
|
|
5051
|
-
},
|
|
5142
|
+
}, Ai = ({
|
|
5052
5143
|
size: t = "md",
|
|
5053
5144
|
direction: r = "vertical",
|
|
5054
5145
|
requiredTitle: n = "(Required)",
|
|
@@ -5120,7 +5211,7 @@ const wt = {
|
|
|
5120
5211
|
]
|
|
5121
5212
|
}
|
|
5122
5213
|
);
|
|
5123
|
-
},
|
|
5214
|
+
}, Pn = ({
|
|
5124
5215
|
items: t,
|
|
5125
5216
|
id: r,
|
|
5126
5217
|
handleOnUpdate: n,
|
|
@@ -5129,13 +5220,13 @@ const wt = {
|
|
|
5129
5220
|
disabled: o = !1
|
|
5130
5221
|
}) => {
|
|
5131
5222
|
var g;
|
|
5132
|
-
const [s, a] =
|
|
5133
|
-
|
|
5223
|
+
const [s, a] = M([]);
|
|
5224
|
+
_(() => {
|
|
5134
5225
|
t && a([...t.map((m) => ({ id: m.id, isActive: m.isActive }))]);
|
|
5135
5226
|
}, [t]);
|
|
5136
|
-
const h = (g = s.find((m) => m.id === r)) == null ? void 0 : g.isActive, u =
|
|
5227
|
+
const h = (g = s.find((m) => m.id === r)) == null ? void 0 : g.isActive, u = Me(() => {
|
|
5137
5228
|
a(
|
|
5138
|
-
(m) => m.map((
|
|
5229
|
+
(m) => m.map((p) => p.id === r ? { ...p, isActive: !p.isActive } : p)
|
|
5139
5230
|
), n && n(!h);
|
|
5140
5231
|
}, [r, n, h]);
|
|
5141
5232
|
return /* @__PURE__ */ e(
|
|
@@ -5147,7 +5238,7 @@ const wt = {
|
|
|
5147
5238
|
width: l
|
|
5148
5239
|
},
|
|
5149
5240
|
children: i && /* @__PURE__ */ e(
|
|
5150
|
-
|
|
5241
|
+
Rt,
|
|
5151
5242
|
{
|
|
5152
5243
|
disabled: o,
|
|
5153
5244
|
checked: h,
|
|
@@ -5157,26 +5248,26 @@ const wt = {
|
|
|
5157
5248
|
)
|
|
5158
5249
|
}
|
|
5159
5250
|
);
|
|
5160
|
-
},
|
|
5161
|
-
InputText:
|
|
5162
|
-
InputDropdown:
|
|
5163
|
-
InputSingleFile:
|
|
5164
|
-
CheckBoxOptions:
|
|
5165
|
-
RadioOptions:
|
|
5166
|
-
InputTextArea:
|
|
5167
|
-
ToggleForm:
|
|
5168
|
-
ActionButton:
|
|
5169
|
-
FormTitle:
|
|
5170
|
-
InputDate:
|
|
5171
|
-
InputImgFile:
|
|
5172
|
-
Custom:
|
|
5173
|
-
},
|
|
5174
|
-
const [r, n] =
|
|
5251
|
+
}, Yn = {
|
|
5252
|
+
InputText: ai,
|
|
5253
|
+
InputDropdown: si,
|
|
5254
|
+
InputSingleFile: vi,
|
|
5255
|
+
CheckBoxOptions: bi,
|
|
5256
|
+
RadioOptions: wi,
|
|
5257
|
+
InputTextArea: ki,
|
|
5258
|
+
ToggleForm: Si,
|
|
5259
|
+
ActionButton: Fi,
|
|
5260
|
+
FormTitle: Ei,
|
|
5261
|
+
InputDate: Mi,
|
|
5262
|
+
InputImgFile: Bi,
|
|
5263
|
+
Custom: Ai
|
|
5264
|
+
}, Ri = ({ customBottom: t }) => {
|
|
5265
|
+
const [r, n] = M(!1), l = () => {
|
|
5175
5266
|
window.scrollY > window.screenY ? n(!0) : n(!1);
|
|
5176
5267
|
}, i = () => {
|
|
5177
5268
|
window.scrollTo({ top: 0, behavior: "smooth" });
|
|
5178
5269
|
};
|
|
5179
|
-
return
|
|
5270
|
+
return _(() => (window.addEventListener("scroll", l), () => {
|
|
5180
5271
|
window.removeEventListener("scroll", l);
|
|
5181
5272
|
}), []), /* @__PURE__ */ e(
|
|
5182
5273
|
f,
|
|
@@ -5220,7 +5311,7 @@ const wt = {
|
|
|
5220
5311
|
)
|
|
5221
5312
|
}
|
|
5222
5313
|
);
|
|
5223
|
-
},
|
|
5314
|
+
}, Xn = ({ pageLayout: t, children: r, wrapperProps: n, containerProps: l }) => {
|
|
5224
5315
|
const i = ee("md"), o = (l == null ? void 0 : l.customWidth) ?? 264;
|
|
5225
5316
|
return /* @__PURE__ */ d(
|
|
5226
5317
|
f,
|
|
@@ -5259,7 +5350,7 @@ const wt = {
|
|
|
5259
5350
|
]
|
|
5260
5351
|
}
|
|
5261
5352
|
);
|
|
5262
|
-
},
|
|
5353
|
+
}, Kn = ({
|
|
5263
5354
|
children: t,
|
|
5264
5355
|
withScrollToTopButton: r = !1,
|
|
5265
5356
|
scrollToTopButtonProps: n,
|
|
@@ -5286,7 +5377,7 @@ const wt = {
|
|
|
5286
5377
|
borderWidth: "border-t",
|
|
5287
5378
|
children: [
|
|
5288
5379
|
r && /* @__PURE__ */ e(
|
|
5289
|
-
|
|
5380
|
+
Ri,
|
|
5290
5381
|
{
|
|
5291
5382
|
...n,
|
|
5292
5383
|
customBottom: (n == null ? void 0 : n.customBottom) || "5.7rem"
|
|
@@ -5295,13 +5386,13 @@ const wt = {
|
|
|
5295
5386
|
t
|
|
5296
5387
|
]
|
|
5297
5388
|
}
|
|
5298
|
-
) }),
|
|
5299
|
-
|
|
5389
|
+
) }), el = ({ fields: t }) => /* @__PURE__ */ e(f, { display: "flex", direction: "column", gap: "lg", children: /* @__PURE__ */ e(
|
|
5390
|
+
gt,
|
|
5300
5391
|
{
|
|
5301
5392
|
of: t,
|
|
5302
|
-
render: (r, n) => /* @__PURE__ */ e(
|
|
5393
|
+
render: (r, n) => /* @__PURE__ */ e(Hi, { ...r }, n)
|
|
5303
5394
|
}
|
|
5304
|
-
) }),
|
|
5395
|
+
) }), Hi = ({ title: t, value: r, icon: n }) => /* @__PURE__ */ d(f, { display: "flex", direction: "column", gap: "sm", children: [
|
|
5305
5396
|
n ? /* @__PURE__ */ d(f, { display: "flex", direction: "row", align: "center", gap: "xs", children: [
|
|
5306
5397
|
/* @__PURE__ */ e(k, { name: n, color: "subtle" }),
|
|
5307
5398
|
/* @__PURE__ */ e(C, { color: "gray-500", variant: "sub-h3", children: t })
|
|
@@ -5311,8 +5402,8 @@ const wt = {
|
|
|
5311
5402
|
silhouette: "#A7B0AC",
|
|
5312
5403
|
accent: "#78867F"
|
|
5313
5404
|
};
|
|
5314
|
-
function
|
|
5315
|
-
return /* @__PURE__ */ e(
|
|
5405
|
+
function Ii({ width: t, height: r }) {
|
|
5406
|
+
return /* @__PURE__ */ e(G, { children: /* @__PURE__ */ d(
|
|
5316
5407
|
"svg",
|
|
5317
5408
|
{
|
|
5318
5409
|
width: t || "100",
|
|
@@ -5454,7 +5545,7 @@ function Wi({ width: t, height: r }) {
|
|
|
5454
5545
|
}
|
|
5455
5546
|
) });
|
|
5456
5547
|
}
|
|
5457
|
-
const
|
|
5548
|
+
const tl = ({
|
|
5458
5549
|
title: t = "create",
|
|
5459
5550
|
children: r,
|
|
5460
5551
|
onClickAction: n,
|
|
@@ -5469,9 +5560,9 @@ const Jn = ({
|
|
|
5469
5560
|
const g = () => {
|
|
5470
5561
|
switch (l) {
|
|
5471
5562
|
case "primary":
|
|
5472
|
-
return /* @__PURE__ */ e(
|
|
5563
|
+
return /* @__PURE__ */ e(G, { children: o ? /* @__PURE__ */ e(R, { primary: !0, iconLeft: o, onClick: n, children: h || t }) : /* @__PURE__ */ e(R, { primary: !0, onClick: n, children: h || t }) });
|
|
5473
5564
|
case "secondary":
|
|
5474
|
-
return /* @__PURE__ */ e(
|
|
5565
|
+
return /* @__PURE__ */ e(G, { children: o ? /* @__PURE__ */ e(R, { secondary: !0, iconLeft: o, onClick: n, children: i ? /* @__PURE__ */ e(
|
|
5475
5566
|
C,
|
|
5476
5567
|
{
|
|
5477
5568
|
fontFamily: "Poppins",
|
|
@@ -5482,9 +5573,9 @@ const Jn = ({
|
|
|
5482
5573
|
}
|
|
5483
5574
|
) : t }) : /* @__PURE__ */ e(R, { secondary: !0, onClick: n, children: h || t }) });
|
|
5484
5575
|
case "success":
|
|
5485
|
-
return /* @__PURE__ */ e(
|
|
5576
|
+
return /* @__PURE__ */ e(G, { children: o ? /* @__PURE__ */ e(R, { success: !0, iconLeft: o, onClick: n, children: h || t }) : /* @__PURE__ */ e(R, { success: !0, onClick: n, children: h || t }) });
|
|
5486
5577
|
default:
|
|
5487
|
-
return /* @__PURE__ */ e(
|
|
5578
|
+
return /* @__PURE__ */ e(G, { children: o ? /* @__PURE__ */ e(R, { primary: !0, iconLeft: o, onClick: n, children: h || t }) : /* @__PURE__ */ e(R, { primary: !0, onClick: n, children: h || t }) });
|
|
5488
5579
|
}
|
|
5489
5580
|
};
|
|
5490
5581
|
return /* @__PURE__ */ d(
|
|
@@ -5499,17 +5590,17 @@ const Jn = ({
|
|
|
5499
5590
|
marginBlock: "auto",
|
|
5500
5591
|
customHeight: a,
|
|
5501
5592
|
children: [
|
|
5502
|
-
u || /* @__PURE__ */ e(
|
|
5503
|
-
/* @__PURE__ */ e(f, { children: r.map((m,
|
|
5593
|
+
u || /* @__PURE__ */ e(Ii, {}),
|
|
5594
|
+
/* @__PURE__ */ e(f, { children: r.map((m, p) => /* @__PURE__ */ e(
|
|
5504
5595
|
me.Body1,
|
|
5505
5596
|
{
|
|
5506
5597
|
props: {
|
|
5507
5598
|
align: "center",
|
|
5508
5599
|
textAlign: "center"
|
|
5509
5600
|
},
|
|
5510
|
-
children:
|
|
5601
|
+
children: p > 2 ? null : m
|
|
5511
5602
|
},
|
|
5512
|
-
|
|
5603
|
+
p
|
|
5513
5604
|
)) }),
|
|
5514
5605
|
s ? g() : null
|
|
5515
5606
|
]
|
|
@@ -5525,8 +5616,8 @@ const Jn = ({
|
|
|
5525
5616
|
c000000: "#000000",
|
|
5526
5617
|
cFFFFFF: "#FFFFFF"
|
|
5527
5618
|
};
|
|
5528
|
-
function
|
|
5529
|
-
return /* @__PURE__ */ e(
|
|
5619
|
+
function Vi({ width: t, height: r }) {
|
|
5620
|
+
return /* @__PURE__ */ e(G, { children: /* @__PURE__ */ d(
|
|
5530
5621
|
"svg",
|
|
5531
5622
|
{
|
|
5532
5623
|
width: t,
|
|
@@ -5728,7 +5819,7 @@ function Bi({ width: t, height: r }) {
|
|
|
5728
5819
|
}
|
|
5729
5820
|
) });
|
|
5730
5821
|
}
|
|
5731
|
-
function
|
|
5822
|
+
function rl({ onClick: t }) {
|
|
5732
5823
|
const r = ee("md");
|
|
5733
5824
|
return /* @__PURE__ */ d(
|
|
5734
5825
|
f,
|
|
@@ -5740,7 +5831,7 @@ function Qn({ onClick: t }) {
|
|
|
5740
5831
|
justify: "center",
|
|
5741
5832
|
gap: "md",
|
|
5742
5833
|
children: [
|
|
5743
|
-
/* @__PURE__ */ e(
|
|
5834
|
+
/* @__PURE__ */ e(Vi, { width: r ? 600 : 300 }),
|
|
5744
5835
|
/* @__PURE__ */ e(
|
|
5745
5836
|
C,
|
|
5746
5837
|
{
|
|
@@ -5764,7 +5855,7 @@ function Qn({ onClick: t }) {
|
|
|
5764
5855
|
}
|
|
5765
5856
|
);
|
|
5766
5857
|
}
|
|
5767
|
-
const
|
|
5858
|
+
const B = {
|
|
5768
5859
|
c46F16B: "#46F16B",
|
|
5769
5860
|
c48504C: "#48504C",
|
|
5770
5861
|
c64B5F6: "#64B5F6",
|
|
@@ -5785,8 +5876,8 @@ const W = {
|
|
|
5785
5876
|
cF4F4F4: "#F4F4F4",
|
|
5786
5877
|
cFFFFFF: "#FFFFFF"
|
|
5787
5878
|
};
|
|
5788
|
-
function
|
|
5789
|
-
return /* @__PURE__ */ e(
|
|
5879
|
+
function zi({ width: t, height: r }) {
|
|
5880
|
+
return /* @__PURE__ */ e(G, { children: /* @__PURE__ */ d(
|
|
5790
5881
|
"svg",
|
|
5791
5882
|
{
|
|
5792
5883
|
width: t,
|
|
@@ -5795,14 +5886,14 @@ function Ai({ width: t, height: r }) {
|
|
|
5795
5886
|
fill: "none",
|
|
5796
5887
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5797
5888
|
children: [
|
|
5798
|
-
/* @__PURE__ */ e("rect", { x: "228", y: "55.5", width: "55", height: "20", fill:
|
|
5889
|
+
/* @__PURE__ */ e("rect", { x: "228", y: "55.5", width: "55", height: "20", fill: B.cD6EBFD }),
|
|
5799
5890
|
/* @__PURE__ */ e(
|
|
5800
5891
|
"path",
|
|
5801
5892
|
{
|
|
5802
5893
|
fillRule: "evenodd",
|
|
5803
5894
|
clipRule: "evenodd",
|
|
5804
5895
|
d: "M75 238.124V197.28L163.523 63.5H217.029V194.32H240V238.124H217.029V252.5H169.126V238.124H75ZM125.424 194.32L172.487 119.143V194.32H125.424Z",
|
|
5805
|
-
fill:
|
|
5896
|
+
fill: B.cBBDEFB,
|
|
5806
5897
|
fillOpacity: "0.6"
|
|
5807
5898
|
}
|
|
5808
5899
|
),
|
|
@@ -5811,8 +5902,8 @@ function Ai({ width: t, height: r }) {
|
|
|
5811
5902
|
"path",
|
|
5812
5903
|
{
|
|
5813
5904
|
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",
|
|
5814
|
-
fill:
|
|
5815
|
-
stroke:
|
|
5905
|
+
fill: B.cEFF3F8,
|
|
5906
|
+
stroke: B.c67AEE6,
|
|
5816
5907
|
strokeWidth: "5"
|
|
5817
5908
|
}
|
|
5818
5909
|
),
|
|
@@ -5820,68 +5911,68 @@ function Ai({ width: t, height: r }) {
|
|
|
5820
5911
|
"path",
|
|
5821
5912
|
{
|
|
5822
5913
|
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",
|
|
5823
|
-
fill:
|
|
5914
|
+
fill: B.cD5C7BD
|
|
5824
5915
|
}
|
|
5825
5916
|
),
|
|
5826
5917
|
/* @__PURE__ */ e(
|
|
5827
5918
|
"path",
|
|
5828
5919
|
{
|
|
5829
5920
|
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",
|
|
5830
|
-
fill:
|
|
5921
|
+
fill: B.cCABEB1
|
|
5831
5922
|
}
|
|
5832
5923
|
),
|
|
5833
5924
|
/* @__PURE__ */ e(
|
|
5834
5925
|
"path",
|
|
5835
5926
|
{
|
|
5836
5927
|
d: "M287.68 218.884L289.354 213.022H378.961L381.473 218.884H287.68Z",
|
|
5837
|
-
fill:
|
|
5928
|
+
fill: B.cC0B2A2
|
|
5838
5929
|
}
|
|
5839
5930
|
),
|
|
5840
5931
|
/* @__PURE__ */ e(
|
|
5841
5932
|
"path",
|
|
5842
5933
|
{
|
|
5843
5934
|
d: "M381.944 218.803L381.58 212.266H386.385L386.022 218.803H381.944Z",
|
|
5844
|
-
fill:
|
|
5845
|
-
stroke:
|
|
5935
|
+
fill: B.c956847,
|
|
5936
|
+
stroke: B.c48504C
|
|
5846
5937
|
}
|
|
5847
5938
|
),
|
|
5848
5939
|
/* @__PURE__ */ e(
|
|
5849
5940
|
"path",
|
|
5850
5941
|
{
|
|
5851
5942
|
d: "M283.124 218.803L282.768 213.104H287.565L287.209 218.803H283.124Z",
|
|
5852
|
-
fill:
|
|
5853
|
-
stroke:
|
|
5943
|
+
fill: B.c956847,
|
|
5944
|
+
stroke: B.c48504C
|
|
5854
5945
|
}
|
|
5855
5946
|
),
|
|
5856
5947
|
/* @__PURE__ */ e(
|
|
5857
5948
|
"path",
|
|
5858
5949
|
{
|
|
5859
5950
|
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",
|
|
5860
|
-
fill:
|
|
5861
|
-
stroke:
|
|
5951
|
+
fill: B.cC8CEF4,
|
|
5952
|
+
stroke: B.c48504C
|
|
5862
5953
|
}
|
|
5863
5954
|
),
|
|
5864
5955
|
/* @__PURE__ */ e(
|
|
5865
5956
|
"path",
|
|
5866
5957
|
{
|
|
5867
5958
|
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",
|
|
5868
|
-
fill:
|
|
5869
|
-
stroke:
|
|
5959
|
+
fill: B.cC8CEF4,
|
|
5960
|
+
stroke: B.c48504C
|
|
5870
5961
|
}
|
|
5871
5962
|
),
|
|
5872
5963
|
/* @__PURE__ */ e(
|
|
5873
5964
|
"path",
|
|
5874
5965
|
{
|
|
5875
5966
|
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",
|
|
5876
|
-
fill:
|
|
5877
|
-
stroke:
|
|
5967
|
+
fill: B.cC8CEF4,
|
|
5968
|
+
stroke: B.c48504C
|
|
5878
5969
|
}
|
|
5879
5970
|
),
|
|
5880
5971
|
/* @__PURE__ */ e(
|
|
5881
5972
|
"path",
|
|
5882
5973
|
{
|
|
5883
5974
|
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",
|
|
5884
|
-
fill:
|
|
5975
|
+
fill: B.cBBC3F5
|
|
5885
5976
|
}
|
|
5886
5977
|
),
|
|
5887
5978
|
/* @__PURE__ */ e(
|
|
@@ -5898,7 +5989,7 @@ function Ai({ width: t, height: r }) {
|
|
|
5898
5989
|
"path",
|
|
5899
5990
|
{
|
|
5900
5991
|
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",
|
|
5901
|
-
fill:
|
|
5992
|
+
fill: B.cFFFFFF
|
|
5902
5993
|
}
|
|
5903
5994
|
)
|
|
5904
5995
|
}
|
|
@@ -5908,42 +5999,42 @@ function Ai({ width: t, height: r }) {
|
|
|
5908
5999
|
"path",
|
|
5909
6000
|
{
|
|
5910
6001
|
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",
|
|
5911
|
-
fill:
|
|
6002
|
+
fill: B.cFFFFFF
|
|
5912
6003
|
}
|
|
5913
6004
|
),
|
|
5914
6005
|
/* @__PURE__ */ e(
|
|
5915
6006
|
"path",
|
|
5916
6007
|
{
|
|
5917
6008
|
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",
|
|
5918
|
-
fill:
|
|
6009
|
+
fill: B.cD6D6D6
|
|
5919
6010
|
}
|
|
5920
6011
|
),
|
|
5921
6012
|
/* @__PURE__ */ e(
|
|
5922
6013
|
"path",
|
|
5923
6014
|
{
|
|
5924
6015
|
d: "M368.673 152.523H301.336V174.5H368.673V152.523Z",
|
|
5925
|
-
fill:
|
|
6016
|
+
fill: B.cF4F4F4
|
|
5926
6017
|
}
|
|
5927
6018
|
),
|
|
5928
6019
|
/* @__PURE__ */ e(
|
|
5929
6020
|
"path",
|
|
5930
6021
|
{
|
|
5931
6022
|
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",
|
|
5932
|
-
fill:
|
|
6023
|
+
fill: B.cEE8080
|
|
5933
6024
|
}
|
|
5934
6025
|
),
|
|
5935
6026
|
/* @__PURE__ */ e(
|
|
5936
6027
|
"path",
|
|
5937
6028
|
{
|
|
5938
6029
|
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",
|
|
5939
|
-
fill:
|
|
6030
|
+
fill: B.cE5EE80
|
|
5940
6031
|
}
|
|
5941
6032
|
),
|
|
5942
6033
|
/* @__PURE__ */ e(
|
|
5943
6034
|
"path",
|
|
5944
6035
|
{
|
|
5945
6036
|
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",
|
|
5946
|
-
fill:
|
|
6037
|
+
fill: B.c46F16B
|
|
5947
6038
|
}
|
|
5948
6039
|
)
|
|
5949
6040
|
] }),
|
|
@@ -5951,14 +6042,14 @@ function Ai({ width: t, height: r }) {
|
|
|
5951
6042
|
"path",
|
|
5952
6043
|
{
|
|
5953
6044
|
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",
|
|
5954
|
-
stroke:
|
|
6045
|
+
stroke: B.c48504C
|
|
5955
6046
|
}
|
|
5956
6047
|
),
|
|
5957
6048
|
/* @__PURE__ */ e(
|
|
5958
6049
|
"path",
|
|
5959
6050
|
{
|
|
5960
6051
|
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",
|
|
5961
|
-
stroke:
|
|
6052
|
+
stroke: B.c86512B,
|
|
5962
6053
|
strokeWidth: "2",
|
|
5963
6054
|
strokeLinecap: "round"
|
|
5964
6055
|
}
|
|
@@ -5968,21 +6059,21 @@ function Ai({ width: t, height: r }) {
|
|
|
5968
6059
|
"path",
|
|
5969
6060
|
{
|
|
5970
6061
|
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",
|
|
5971
|
-
fill:
|
|
6062
|
+
fill: B.cBBDEFB,
|
|
5972
6063
|
fillOpacity: "0.6"
|
|
5973
6064
|
}
|
|
5974
6065
|
),
|
|
5975
|
-
/* @__PURE__ */ e("rect", { x: "43", y: "87.5", width: "46", height: "20", fill:
|
|
5976
|
-
/* @__PURE__ */ e("rect", { x: "29", y: "109.5", width: "46", height: "20", fill:
|
|
5977
|
-
/* @__PURE__ */ e("rect", { x: "29", y: "65.5", width: "46", height: "20", fill:
|
|
5978
|
-
/* @__PURE__ */ e("rect", { x: "356", y: "0.5", width: "55", height: "20", fill:
|
|
5979
|
-
/* @__PURE__ */ e("rect", { x: "572", y: "142.5", width: "55", height: "20", fill:
|
|
5980
|
-
/* @__PURE__ */ e("rect", { x: "589", y: "120.5", width: "55", height: "20", fill:
|
|
6066
|
+
/* @__PURE__ */ e("rect", { x: "43", y: "87.5", width: "46", height: "20", fill: B.cD6EBFD }),
|
|
6067
|
+
/* @__PURE__ */ e("rect", { x: "29", y: "109.5", width: "46", height: "20", fill: B.cD6EBFD }),
|
|
6068
|
+
/* @__PURE__ */ e("rect", { x: "29", y: "65.5", width: "46", height: "20", fill: B.cD6EBFD }),
|
|
6069
|
+
/* @__PURE__ */ e("rect", { x: "356", y: "0.5", width: "55", height: "20", fill: B.cD6EBFD }),
|
|
6070
|
+
/* @__PURE__ */ e("rect", { x: "572", y: "142.5", width: "55", height: "20", fill: B.cD6EBFD }),
|
|
6071
|
+
/* @__PURE__ */ e("rect", { x: "589", y: "120.5", width: "55", height: "20", fill: B.cD6EBFD }),
|
|
5981
6072
|
/* @__PURE__ */ e(
|
|
5982
6073
|
"path",
|
|
5983
6074
|
{
|
|
5984
6075
|
d: "M3 255.5L651 255.5",
|
|
5985
|
-
stroke:
|
|
6076
|
+
stroke: B.c64B5F6,
|
|
5986
6077
|
strokeWidth: "5",
|
|
5987
6078
|
strokeLinecap: "round"
|
|
5988
6079
|
}
|
|
@@ -5992,7 +6083,7 @@ function Ai({ width: t, height: r }) {
|
|
|
5992
6083
|
{
|
|
5993
6084
|
width: "179",
|
|
5994
6085
|
height: "192",
|
|
5995
|
-
fill:
|
|
6086
|
+
fill: B.cFFFFFF,
|
|
5996
6087
|
transform: "translate(246 60.5)"
|
|
5997
6088
|
}
|
|
5998
6089
|
) }) })
|
|
@@ -6000,7 +6091,7 @@ function Ai({ width: t, height: r }) {
|
|
|
6000
6091
|
}
|
|
6001
6092
|
) });
|
|
6002
6093
|
}
|
|
6003
|
-
function
|
|
6094
|
+
function il({ onClick: t }) {
|
|
6004
6095
|
const r = ee("md");
|
|
6005
6096
|
return /* @__PURE__ */ d(
|
|
6006
6097
|
f,
|
|
@@ -6012,7 +6103,7 @@ function Pn({ onClick: t }) {
|
|
|
6012
6103
|
justify: "center",
|
|
6013
6104
|
gap: "md",
|
|
6014
6105
|
children: [
|
|
6015
|
-
/* @__PURE__ */ e(
|
|
6106
|
+
/* @__PURE__ */ e(zi, { width: r ? 600 : 300 }),
|
|
6016
6107
|
/* @__PURE__ */ e(C, { fontWeight: "bold", fontSize: r ? "3xl" : "2xl", children: "We Are Sorry ..." }),
|
|
6017
6108
|
t && /* @__PURE__ */ e(R, { size: r ? "md" : "xs", onClick: t, children: "Go Back" })
|
|
6018
6109
|
]
|
|
@@ -6036,8 +6127,8 @@ const c = {
|
|
|
6036
6127
|
cFFE18B: "#FFE18B",
|
|
6037
6128
|
cFFFFFF: "#FFFFFF"
|
|
6038
6129
|
};
|
|
6039
|
-
function
|
|
6040
|
-
return /* @__PURE__ */ e(
|
|
6130
|
+
function Ti({ width: t, height: r }) {
|
|
6131
|
+
return /* @__PURE__ */ e(G, { children: /* @__PURE__ */ d(
|
|
6041
6132
|
"svg",
|
|
6042
6133
|
{
|
|
6043
6134
|
width: t,
|
|
@@ -6708,7 +6799,7 @@ function Ri({ width: t, height: r }) {
|
|
|
6708
6799
|
}
|
|
6709
6800
|
) });
|
|
6710
6801
|
}
|
|
6711
|
-
function
|
|
6802
|
+
function nl({ onClick: t }) {
|
|
6712
6803
|
const r = ee("md");
|
|
6713
6804
|
return /* @__PURE__ */ d(
|
|
6714
6805
|
f,
|
|
@@ -6721,7 +6812,7 @@ function Yn({ onClick: t }) {
|
|
|
6721
6812
|
gap: "md",
|
|
6722
6813
|
overflow: "overflow-hidden",
|
|
6723
6814
|
children: [
|
|
6724
|
-
/* @__PURE__ */ e(
|
|
6815
|
+
/* @__PURE__ */ e(Ti, { width: r ? 600 : 300 }),
|
|
6725
6816
|
/* @__PURE__ */ e(
|
|
6726
6817
|
C,
|
|
6727
6818
|
{
|
|
@@ -6745,7 +6836,7 @@ function Yn({ onClick: t }) {
|
|
|
6745
6836
|
}
|
|
6746
6837
|
);
|
|
6747
6838
|
}
|
|
6748
|
-
const
|
|
6839
|
+
const ll = (t) => {
|
|
6749
6840
|
var n, l, i, o, s;
|
|
6750
6841
|
const r = ee("md");
|
|
6751
6842
|
return /* @__PURE__ */ d(
|
|
@@ -6763,7 +6854,7 @@ const Xn = (t) => {
|
|
|
6763
6854
|
children: [
|
|
6764
6855
|
/* @__PURE__ */ e(Fe, { ...t.dialogTitleProps, children: typeof t.title == "string" ? /* @__PURE__ */ e(C, { fontSize: "lg", fontWeight: "medium", children: t.title }) : t.title }),
|
|
6765
6856
|
/* @__PURE__ */ e(qe, { children: typeof t.description == "string" ? /* @__PURE__ */ e(C, { fontSize: "md", lineHeight: "leading-6", color: "tertiary", children: t.description }) : t.description }),
|
|
6766
|
-
/* @__PURE__ */ e(
|
|
6857
|
+
/* @__PURE__ */ e(ot, { children: /* @__PURE__ */ e(
|
|
6767
6858
|
f,
|
|
6768
6859
|
{
|
|
6769
6860
|
display: "flex",
|
|
@@ -6808,7 +6899,7 @@ const Xn = (t) => {
|
|
|
6808
6899
|
},
|
|
6809
6900
|
t.key
|
|
6810
6901
|
);
|
|
6811
|
-
},
|
|
6902
|
+
}, ol = te(
|
|
6812
6903
|
({
|
|
6813
6904
|
children: t,
|
|
6814
6905
|
height: r,
|
|
@@ -6822,23 +6913,23 @@ const Xn = (t) => {
|
|
|
6822
6913
|
titleTag: u,
|
|
6823
6914
|
action: g,
|
|
6824
6915
|
actionContainer: m,
|
|
6825
|
-
containerProps:
|
|
6916
|
+
containerProps: p,
|
|
6826
6917
|
bodyProps: v,
|
|
6827
6918
|
headerProps: A = { borderBottom: !0 },
|
|
6828
6919
|
footerProps: D = { borderTop: !0 },
|
|
6829
6920
|
variantTag: T = "info"
|
|
6830
6921
|
}) => {
|
|
6831
|
-
const j = le(null), [Z, Q] =
|
|
6832
|
-
|
|
6833
|
-
const
|
|
6922
|
+
const j = le(null), [Z, Q] = M("100vh");
|
|
6923
|
+
_(() => {
|
|
6924
|
+
const I = () => {
|
|
6834
6925
|
if (j.current) {
|
|
6835
6926
|
const K = j.current.getBoundingClientRect().top;
|
|
6836
6927
|
Q(`calc(100vh - ${K}px)`);
|
|
6837
6928
|
}
|
|
6838
6929
|
};
|
|
6839
|
-
return
|
|
6930
|
+
return I(), window.addEventListener("resize", I), () => window.removeEventListener("resize", I);
|
|
6840
6931
|
}, []);
|
|
6841
|
-
const
|
|
6932
|
+
const L = () => u ? /* @__PURE__ */ d(f, { direction: "row", gap: "sm", align: "center", children: [
|
|
6842
6933
|
/* @__PURE__ */ e(C, { fontWeight: "medium", children: h }),
|
|
6843
6934
|
/* @__PURE__ */ e(Ee, { border: !0, text: u, variant: T })
|
|
6844
6935
|
] }) : /* @__PURE__ */ e(C, { fontWeight: "medium", children: h }), fe = () => s || /* @__PURE__ */ d(
|
|
@@ -6849,7 +6940,7 @@ const Xn = (t) => {
|
|
|
6849
6940
|
align: "flex-start",
|
|
6850
6941
|
gap: "md",
|
|
6851
6942
|
children: [
|
|
6852
|
-
/* @__PURE__ */ e(f, { children: h ?
|
|
6943
|
+
/* @__PURE__ */ e(f, { children: h ? L() : null }),
|
|
6853
6944
|
/* @__PURE__ */ e(f, { ...m, children: g ?? null })
|
|
6854
6945
|
]
|
|
6855
6946
|
}
|
|
@@ -6865,15 +6956,15 @@ const Xn = (t) => {
|
|
|
6865
6956
|
paddingInline: i,
|
|
6866
6957
|
bg: "white",
|
|
6867
6958
|
direction: "column",
|
|
6868
|
-
...
|
|
6959
|
+
...p,
|
|
6869
6960
|
style: {
|
|
6870
6961
|
backgroundColor: "var(--sa-background-primary, #ffffff)",
|
|
6871
6962
|
display: "flex",
|
|
6872
6963
|
minHeight: Z,
|
|
6873
|
-
...(
|
|
6964
|
+
...(p == null ? void 0 : p.style) ?? {}
|
|
6874
6965
|
},
|
|
6875
6966
|
children: [
|
|
6876
|
-
s !== null && P ? /* @__PURE__ */ e(
|
|
6967
|
+
s !== null && P ? /* @__PURE__ */ e($t, { ...A, children: fe() }) : null,
|
|
6877
6968
|
/* @__PURE__ */ e(
|
|
6878
6969
|
f,
|
|
6879
6970
|
{
|
|
@@ -6887,12 +6978,12 @@ const Xn = (t) => {
|
|
|
6887
6978
|
children: t
|
|
6888
6979
|
}
|
|
6889
6980
|
),
|
|
6890
|
-
a ? /* @__PURE__ */ e(
|
|
6981
|
+
a ? /* @__PURE__ */ e(_t, { ...D, children: a }) : null
|
|
6891
6982
|
]
|
|
6892
6983
|
}
|
|
6893
6984
|
);
|
|
6894
6985
|
}
|
|
6895
|
-
),
|
|
6986
|
+
), cl = Ht.memo(
|
|
6896
6987
|
({ value: t, options: r = [], onChange: n, multiple: l }) => {
|
|
6897
6988
|
const i = (t == null ? void 0 : t.map((a) => a.value)) || [], o = (r == null ? void 0 : r.filter((a) => i.includes(a.value))) || [], s = (a) => {
|
|
6898
6989
|
const h = [...o];
|
|
@@ -6909,8 +7000,8 @@ const Xn = (t) => {
|
|
|
6909
7000
|
h
|
|
6910
7001
|
)) });
|
|
6911
7002
|
}
|
|
6912
|
-
),
|
|
6913
|
-
const { defaultTab: r = 0, paramKey: n = "tab" } = t || {}, [l, i] =
|
|
7003
|
+
), al = (t) => {
|
|
7004
|
+
const { defaultTab: r = 0, paramKey: n = "tab" } = t || {}, [l, i] = Qe(), o = Ge(l.toString());
|
|
6914
7005
|
return {
|
|
6915
7006
|
activeTab: o[n] ? parseInt(o[n]) : r,
|
|
6916
7007
|
handleTabChange: (h) => {
|
|
@@ -6922,13 +7013,13 @@ const Xn = (t) => {
|
|
|
6922
7013
|
searchQueries: o
|
|
6923
7014
|
};
|
|
6924
7015
|
};
|
|
6925
|
-
function
|
|
7016
|
+
function sl({
|
|
6926
7017
|
appName: t,
|
|
6927
7018
|
menuConfig: r,
|
|
6928
7019
|
formatTitle: n
|
|
6929
7020
|
}) {
|
|
6930
|
-
const l =
|
|
6931
|
-
|
|
7021
|
+
const l = Ve();
|
|
7022
|
+
_(() => {
|
|
6932
7023
|
let i = null, o = null;
|
|
6933
7024
|
for (const h of r) {
|
|
6934
7025
|
const u = h.items.find((g) => g.to ? g.to === "/" ? l.pathname === "/" : !!(g.to === l.pathname || l.pathname.startsWith(g.to + "/")) : !1);
|
|
@@ -6943,8 +7034,8 @@ function rl({
|
|
|
6943
7034
|
document.title = (n || a)(s, t);
|
|
6944
7035
|
}, [l.pathname]);
|
|
6945
7036
|
}
|
|
6946
|
-
const
|
|
6947
|
-
const [t, r] =
|
|
7037
|
+
const dl = () => {
|
|
7038
|
+
const [t, r] = Qe(), n = Ge(t.toString()), l = zt(), i = Ve(), o = l.id;
|
|
6948
7039
|
return {
|
|
6949
7040
|
// query params
|
|
6950
7041
|
setSearchParams: r,
|
|
@@ -6962,24 +7053,24 @@ const il = () => {
|
|
|
6962
7053
|
hasId: !!o
|
|
6963
7054
|
};
|
|
6964
7055
|
};
|
|
6965
|
-
function
|
|
7056
|
+
function hl(t) {
|
|
6966
7057
|
var l, i;
|
|
6967
7058
|
const r = t.decodedAccessToken;
|
|
6968
7059
|
return De(() => {
|
|
6969
7060
|
var h, u;
|
|
6970
7061
|
const o = ((u = (h = r == null ? void 0 : r.access) == null ? void 0 : h.role) == null ? void 0 : u.code) ?? "", s = Object.keys(t.role).reduce(
|
|
6971
7062
|
(g, m) => {
|
|
6972
|
-
const
|
|
6973
|
-
return { ...g, [
|
|
7063
|
+
const p = `is${m.toLowerCase().replace(/(^\w|_\w)/g, (v) => v.replace("_", "").toUpperCase())}`;
|
|
7064
|
+
return { ...g, [p]: !1 };
|
|
6974
7065
|
},
|
|
6975
7066
|
{}
|
|
6976
7067
|
);
|
|
6977
7068
|
return {
|
|
6978
7069
|
...Object.keys(t.role).reduce((g, m) => {
|
|
6979
|
-
const
|
|
7070
|
+
const p = `is${m.toLowerCase().replace(/(^\w|_\w)/g, (v) => v.replace("_", "").toUpperCase())}`;
|
|
6980
7071
|
return {
|
|
6981
7072
|
...g,
|
|
6982
|
-
[
|
|
7073
|
+
[p]: o === t.role[m]
|
|
6983
7074
|
};
|
|
6984
7075
|
}, s),
|
|
6985
7076
|
hasRole: (g) => o === t.role[g],
|
|
@@ -6988,90 +7079,94 @@ function nl(t) {
|
|
|
6988
7079
|
}, [(i = (l = r == null ? void 0 : r.access) == null ? void 0 : l.role) == null ? void 0 : i.code, t]);
|
|
6989
7080
|
}
|
|
6990
7081
|
export {
|
|
6991
|
-
|
|
6992
|
-
|
|
6993
|
-
|
|
6994
|
-
|
|
6995
|
-
|
|
6996
|
-
|
|
6997
|
-
|
|
6998
|
-
|
|
6999
|
-
|
|
7000
|
-
|
|
7001
|
-
|
|
7082
|
+
Sn as ActionMenu,
|
|
7083
|
+
Yr as AdvanceFilterBar,
|
|
7084
|
+
gn as App,
|
|
7085
|
+
ur as AppComponent,
|
|
7086
|
+
Tt as AppContext,
|
|
7087
|
+
pn as AppLayout,
|
|
7088
|
+
Xn as AsideBar,
|
|
7089
|
+
Dn as AuthLayout,
|
|
7090
|
+
xn as BackButton,
|
|
7091
|
+
ri as ColumnFilterDropdown,
|
|
7092
|
+
ll as ConfirmationDialog,
|
|
7093
|
+
li as DataTable,
|
|
7002
7094
|
O as DecisionWrapper,
|
|
7003
|
-
|
|
7004
|
-
|
|
7005
|
-
|
|
7006
|
-
|
|
7007
|
-
|
|
7008
|
-
|
|
7009
|
-
|
|
7010
|
-
|
|
7011
|
-
|
|
7012
|
-
|
|
7013
|
-
|
|
7014
|
-
|
|
7015
|
-
|
|
7016
|
-
|
|
7017
|
-
|
|
7018
|
-
|
|
7019
|
-
|
|
7020
|
-
|
|
7021
|
-
|
|
7022
|
-
|
|
7023
|
-
|
|
7024
|
-
|
|
7025
|
-
|
|
7026
|
-
|
|
7027
|
-
|
|
7028
|
-
|
|
7029
|
-
|
|
7030
|
-
|
|
7031
|
-
|
|
7032
|
-
|
|
7095
|
+
gt as EachUtils,
|
|
7096
|
+
tl as EmptyStatePage,
|
|
7097
|
+
Pr as FilterDrawer,
|
|
7098
|
+
Kn as FloatingFooter,
|
|
7099
|
+
il as ForbiddenPage,
|
|
7100
|
+
Yn as Form,
|
|
7101
|
+
ol as FullSection,
|
|
7102
|
+
mn as HeaderLeftSlot,
|
|
7103
|
+
mr as HeaderLeftSlotOutlet,
|
|
7104
|
+
gr as HeaderLeftSlotProvider,
|
|
7105
|
+
vn as HorizontalField,
|
|
7106
|
+
Di as InputFile,
|
|
7107
|
+
Wi as InputImage,
|
|
7108
|
+
bn as ModalDialog,
|
|
7109
|
+
Cn as ModuleSwitcher,
|
|
7110
|
+
pr as ModuleSwitcherModal,
|
|
7111
|
+
rl as NotFoundPage,
|
|
7112
|
+
wn as PageLayout,
|
|
7113
|
+
ut as Pressable,
|
|
7114
|
+
Sr as RightDrawer,
|
|
7115
|
+
Ri as ScrollToTopButton,
|
|
7116
|
+
kn as Section,
|
|
7117
|
+
_t as SectionFooter,
|
|
7118
|
+
$t as SectionHeader,
|
|
7119
|
+
cl as SelectButton,
|
|
7120
|
+
nl as ServerErrorPage,
|
|
7121
|
+
dr as SidebarBadgesProvider,
|
|
7122
|
+
fr as SidebarHeaderSlot,
|
|
7123
|
+
ti as TableFooter,
|
|
7124
|
+
Kr as TableHeader,
|
|
7125
|
+
Bn as TableSection,
|
|
7126
|
+
Xr as TableWrapper,
|
|
7127
|
+
Pn as ToggleStatus,
|
|
7033
7128
|
me as Typography,
|
|
7034
|
-
|
|
7035
|
-
|
|
7036
|
-
|
|
7037
|
-
|
|
7038
|
-
|
|
7039
|
-
|
|
7040
|
-
|
|
7041
|
-
|
|
7042
|
-
|
|
7043
|
-
|
|
7044
|
-
|
|
7045
|
-
|
|
7046
|
-
|
|
7047
|
-
|
|
7048
|
-
|
|
7049
|
-
|
|
7050
|
-
|
|
7051
|
-
|
|
7052
|
-
|
|
7053
|
-
|
|
7054
|
-
|
|
7055
|
-
|
|
7056
|
-
|
|
7057
|
-
|
|
7058
|
-
|
|
7059
|
-
|
|
7060
|
-
|
|
7061
|
-
|
|
7062
|
-
|
|
7063
|
-
|
|
7064
|
-
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
|
|
7068
|
-
|
|
7069
|
-
|
|
7070
|
-
|
|
7071
|
-
|
|
7072
|
-
|
|
7073
|
-
|
|
7074
|
-
|
|
7075
|
-
|
|
7076
|
-
|
|
7129
|
+
el as VerticalField,
|
|
7130
|
+
yn as clearModuleSelection,
|
|
7131
|
+
An as createInitialFromUserName,
|
|
7132
|
+
zn as cssVars,
|
|
7133
|
+
Nn as formHasChanged,
|
|
7134
|
+
Vn as formatDate,
|
|
7135
|
+
ui as formatDateToIndonesian,
|
|
7136
|
+
Hn as formatRupiah,
|
|
7137
|
+
Ln as getDateFilterValue,
|
|
7138
|
+
Mn as getDateRangeFilterValue,
|
|
7139
|
+
In as getInitials,
|
|
7140
|
+
Fn as getValueDropdownMultipleFilter,
|
|
7141
|
+
En as getValueRadioFilter,
|
|
7142
|
+
Qr as getValueSearch,
|
|
7143
|
+
et as getValuesFilter,
|
|
7144
|
+
Ft as handleChangeFilter,
|
|
7145
|
+
Qn as handleOnScroll,
|
|
7146
|
+
qn as isEmail,
|
|
7147
|
+
Wn as isFilterActive,
|
|
7148
|
+
Zn as isOnlyLettersAndSpaces,
|
|
7149
|
+
jn as isPhoneNumber,
|
|
7150
|
+
Gn as isSlug,
|
|
7151
|
+
Tn as oneDayInMs,
|
|
7152
|
+
Rn as parseIndonesianDateToDate,
|
|
7153
|
+
Jn as preventNonCoordinateInput,
|
|
7154
|
+
Un as preventNonNumberAndDecimalInput,
|
|
7155
|
+
$n as preventNonNumberInput,
|
|
7156
|
+
_n as preventNumberInput,
|
|
7157
|
+
Ur as resolveDateRangeValueToString,
|
|
7158
|
+
qr as resolveDateValueToString,
|
|
7159
|
+
$r as resolveDropdownValueToString,
|
|
7160
|
+
_r as resolveRadioValueToString,
|
|
7161
|
+
Xe as resolveSidebarBadge,
|
|
7162
|
+
On as textWidth,
|
|
7163
|
+
Ot as useApp,
|
|
7164
|
+
sr as useAppState,
|
|
7165
|
+
hl as useAuthRole,
|
|
7166
|
+
sl as useDynamicTitle,
|
|
7167
|
+
Zt as useModuleSelection,
|
|
7168
|
+
ft as useRouteInfo,
|
|
7169
|
+
dl as useRouteParams,
|
|
7170
|
+
hr as useSidebarBadges,
|
|
7171
|
+
al as useTabState
|
|
7077
7172
|
};
|