@starasia/admin 6.6.2 → 6.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +1 -1
- package/dist/index.es.js +715 -717
- package/dist/index.umd.js +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -24,10 +24,10 @@ import { Input as gt } from "@starasia/input";
|
|
|
24
24
|
export * from "@starasia/input";
|
|
25
25
|
import { Menu as jt, MenuButton as Ge, MenuLists as Zt, MenuHeading as cr, MenuBody as $t, MenuFooter as ar } from "@starasia/menu";
|
|
26
26
|
export * from "@starasia/menu";
|
|
27
|
-
import { Pagination as
|
|
27
|
+
import { Pagination as sr } from "@starasia/pagination";
|
|
28
28
|
export * from "@starasia/pagination";
|
|
29
29
|
export * from "@starasia/storage";
|
|
30
|
-
import { Tr as Re, Td as Se, Table as Gt, Thead as
|
|
30
|
+
import { Tr as Re, Td as Se, Table as Gt, Thead as dr, Th as St, Tbody as ur } from "@starasia/table";
|
|
31
31
|
export * from "@starasia/table";
|
|
32
32
|
export * from "@starasia/tabs";
|
|
33
33
|
import { Textarea as hr } from "@starasia/textarea";
|
|
@@ -53,11 +53,11 @@ export * from "@starasia/progress";
|
|
|
53
53
|
export * from "@starasia/stepper";
|
|
54
54
|
export * from "@starasia/accordion";
|
|
55
55
|
export * from "@starasia/story-record";
|
|
56
|
-
import { Skeleton as
|
|
56
|
+
import { Skeleton as Ie } from "@starasia/skeleton";
|
|
57
57
|
export * from "@starasia/skeleton";
|
|
58
58
|
export * from "@starasia/progress-stepper";
|
|
59
|
-
import { jsx as e, Fragment as q, jsxs as
|
|
60
|
-
import qe, { createContext as Qe, useState as k, useContext as We, useCallback as ve, useMemo as he, memo as ce, useEffect as $, useRef as ie, useLayoutEffect as at, isValidElement as
|
|
59
|
+
import { jsx as e, Fragment as q, jsxs as s } from "react/jsx-runtime";
|
|
60
|
+
import qe, { createContext as Qe, useState as k, useContext as We, useCallback as ve, useMemo as he, memo as ce, useEffect as $, useRef as ie, useLayoutEffect as at, isValidElement as st, forwardRef as Ut, Children as yr, useImperativeHandle as pr } from "react";
|
|
61
61
|
import { useSearchParams as Ye, useNavigate as mt, useLocation as Ve, Outlet as Et, Link as Ue, useParams as Jt } from "react-router";
|
|
62
62
|
import xr, { createPortal as Pt } from "react-dom";
|
|
63
63
|
import Cr from "react-easy-crop";
|
|
@@ -95,23 +95,23 @@ const vr = {
|
|
|
95
95
|
[]
|
|
96
96
|
), n = ve(
|
|
97
97
|
(a, h) => {
|
|
98
|
-
i((
|
|
99
|
-
const g = typeof h == "function" ? h(
|
|
100
|
-
return { ...
|
|
98
|
+
i((d) => {
|
|
99
|
+
const g = typeof h == "function" ? h(d[a]) : h;
|
|
100
|
+
return { ...d, [a]: g };
|
|
101
101
|
});
|
|
102
102
|
},
|
|
103
103
|
[]
|
|
104
104
|
), l = ve((a) => {
|
|
105
105
|
i((h) => {
|
|
106
106
|
if (!(a in h)) return h;
|
|
107
|
-
const
|
|
108
|
-
return delete
|
|
107
|
+
const d = { ...h };
|
|
108
|
+
return delete d[a], d;
|
|
109
109
|
});
|
|
110
|
-
}, []),
|
|
110
|
+
}, []), u = he(
|
|
111
111
|
() => ({ badges: r, setBadge: n, setBadges: o, clearBadge: l }),
|
|
112
112
|
[r, n, o, l]
|
|
113
113
|
);
|
|
114
|
-
return /* @__PURE__ */ e(Xt.Provider, { value:
|
|
114
|
+
return /* @__PURE__ */ e(Xt.Provider, { value: u, children: t });
|
|
115
115
|
}, wr = () => We(Xt), rt = (t, r) => {
|
|
116
116
|
const i = r !== void 0 ? r : t;
|
|
117
117
|
return i == null ? null : typeof i == "string" || typeof i == "number" ? { value: i } : i;
|
|
@@ -122,7 +122,7 @@ const vr = {
|
|
|
122
122
|
logo: o,
|
|
123
123
|
appName: n = "Workspace",
|
|
124
124
|
initialUserData: l,
|
|
125
|
-
theme:
|
|
125
|
+
theme: u
|
|
126
126
|
}) => {
|
|
127
127
|
const a = br({ initialUserData: l }), { theme: h } = fr();
|
|
128
128
|
return /* @__PURE__ */ e(
|
|
@@ -136,10 +136,10 @@ const vr = {
|
|
|
136
136
|
setUserData: a.setUserData,
|
|
137
137
|
menuBottom: i
|
|
138
138
|
},
|
|
139
|
-
children: /* @__PURE__ */ e(Dr, { children:
|
|
139
|
+
children: /* @__PURE__ */ e(Dr, { children: u ? /* @__PURE__ */ e(Ft, { value: u, children: t }) : h ? /* @__PURE__ */ e(Ft, { value: h, children: t }) : t })
|
|
140
140
|
}
|
|
141
141
|
);
|
|
142
|
-
},
|
|
142
|
+
}, In = ce(kr);
|
|
143
143
|
function Sr({
|
|
144
144
|
collapsed: t = !1,
|
|
145
145
|
children: r
|
|
@@ -179,7 +179,7 @@ function Sr({
|
|
|
179
179
|
}
|
|
180
180
|
const yt = Qe(null);
|
|
181
181
|
function Fr({ children: t }) {
|
|
182
|
-
const [r, i] = k(null), [o, n] = k(null), [l,
|
|
182
|
+
const [r, i] = k(null), [o, n] = k(null), [l, u] = k(null), [a, h] = k(0), d = ve(() => (h((g) => g + 1), () => h((g) => g - 1)), []);
|
|
183
183
|
return /* @__PURE__ */ e(
|
|
184
184
|
yt.Provider,
|
|
185
185
|
{
|
|
@@ -189,9 +189,9 @@ function Fr({ children: t }) {
|
|
|
189
189
|
replaceNode: l,
|
|
190
190
|
setPrependNode: i,
|
|
191
191
|
setAppendNode: n,
|
|
192
|
-
setReplaceNode:
|
|
192
|
+
setReplaceNode: u,
|
|
193
193
|
replaceCount: a,
|
|
194
|
-
registerReplace:
|
|
194
|
+
registerReplace: d
|
|
195
195
|
},
|
|
196
196
|
children: t
|
|
197
197
|
}
|
|
@@ -199,7 +199,7 @@ function Fr({ children: t }) {
|
|
|
199
199
|
}
|
|
200
200
|
function Er({ children: t }) {
|
|
201
201
|
const r = We(yt);
|
|
202
|
-
return r ? /* @__PURE__ */
|
|
202
|
+
return r ? /* @__PURE__ */ s(q, { children: [
|
|
203
203
|
/* @__PURE__ */ e("div", { ref: r.setPrependNode, style: { display: "contents" } }),
|
|
204
204
|
r.replaceCount > 0 ? /* @__PURE__ */ e("div", { ref: r.setReplaceNode, style: { display: "contents" } }) : t,
|
|
205
205
|
/* @__PURE__ */ e("div", { ref: r.setAppendNode, style: { display: "contents" } })
|
|
@@ -222,14 +222,14 @@ function Rn({
|
|
|
222
222
|
}
|
|
223
223
|
const pt = Qe(null);
|
|
224
224
|
function Mr({ children: t }) {
|
|
225
|
-
const [r, i] = k({}), [o, n] = k({}), l = ve((h,
|
|
226
|
-
i((g) => g[h] ===
|
|
227
|
-
}, []),
|
|
228
|
-
...
|
|
229
|
-
[h]: Math.max(0, (
|
|
225
|
+
const [r, i] = k({}), [o, n] = k({}), l = ve((h, d) => {
|
|
226
|
+
i((g) => g[h] === d ? g : { ...g, [h]: d });
|
|
227
|
+
}, []), u = ve((h) => (n((d) => ({ ...d, [h]: (d[h] ?? 0) + 1 })), () => n((d) => ({
|
|
228
|
+
...d,
|
|
229
|
+
[h]: Math.max(0, (d[h] ?? 0) - 1)
|
|
230
230
|
}))), []), a = he(
|
|
231
|
-
() => ({ outletNodes: r, setOutletNode: l, slotCounts: o, registerSlot:
|
|
232
|
-
[r, l, o,
|
|
231
|
+
() => ({ outletNodes: r, setOutletNode: l, slotCounts: o, registerSlot: u }),
|
|
232
|
+
[r, l, o, u]
|
|
233
233
|
);
|
|
234
234
|
return /* @__PURE__ */ e(pt.Provider, { value: a, children: t });
|
|
235
235
|
}
|
|
@@ -237,9 +237,9 @@ function Lr({ slotKey: t, fallback: r }) {
|
|
|
237
237
|
const i = We(pt), o = i ? (i.slotCounts[t] ?? 0) > 0 : !1, n = ie(i == null ? void 0 : i.setOutletNode);
|
|
238
238
|
n.current = i == null ? void 0 : i.setOutletNode;
|
|
239
239
|
const l = ve(
|
|
240
|
-
(
|
|
240
|
+
(u) => {
|
|
241
241
|
var a;
|
|
242
|
-
return (a = n.current) == null ? void 0 : a.call(n, t,
|
|
242
|
+
return (a = n.current) == null ? void 0 : a.call(n, t, u);
|
|
243
243
|
},
|
|
244
244
|
[t]
|
|
245
245
|
// slotKey is a stable string from group config
|
|
@@ -258,7 +258,7 @@ function Vn({ slotKey: t, children: r }) {
|
|
|
258
258
|
const n = i.outletNodes[t];
|
|
259
259
|
return n ? Pt(r, n) : null;
|
|
260
260
|
}
|
|
261
|
-
const Je = "moduleSwitcherGroupId",
|
|
261
|
+
const Je = "moduleSwitcherGroupId", dt = "sa-module-switcher-change";
|
|
262
262
|
function Mt() {
|
|
263
263
|
if (typeof window > "u") return null;
|
|
264
264
|
const t = window.localStorage.getItem(Je);
|
|
@@ -267,7 +267,7 @@ function Mt() {
|
|
|
267
267
|
return Number.isFinite(r) ? r : null;
|
|
268
268
|
}
|
|
269
269
|
function Kt(t) {
|
|
270
|
-
typeof window > "u" || (t === null ? window.localStorage.removeItem(Je) : window.localStorage.setItem(Je, String(t)), window.dispatchEvent(new CustomEvent(
|
|
270
|
+
typeof window > "u" || (t === null ? window.localStorage.removeItem(Je) : window.localStorage.setItem(Je, String(t)), window.dispatchEvent(new CustomEvent(dt, { detail: t })));
|
|
271
271
|
}
|
|
272
272
|
function Tn() {
|
|
273
273
|
Kt(null);
|
|
@@ -282,15 +282,15 @@ function er() {
|
|
|
282
282
|
}, n = (l) => {
|
|
283
283
|
l.key === Je && o();
|
|
284
284
|
};
|
|
285
|
-
return window.addEventListener(
|
|
286
|
-
window.removeEventListener(
|
|
285
|
+
return window.addEventListener(dt, o), window.addEventListener("storage", n), () => {
|
|
286
|
+
window.removeEventListener(dt, o), window.removeEventListener("storage", n);
|
|
287
287
|
};
|
|
288
288
|
}, []), { selectedGroupId: t, setSelectedGroupId: (o) => {
|
|
289
289
|
Kt(o), r(o);
|
|
290
290
|
} };
|
|
291
291
|
}
|
|
292
292
|
let Ze = 0, ke = !1, Lt = /* @__PURE__ */ new Set();
|
|
293
|
-
const Wt = () => /* @__PURE__ */
|
|
293
|
+
const Wt = () => /* @__PURE__ */ s(
|
|
294
294
|
"svg",
|
|
295
295
|
{
|
|
296
296
|
width: "100%",
|
|
@@ -331,16 +331,16 @@ function Nn({
|
|
|
331
331
|
isLoadingProfile: o,
|
|
332
332
|
onLogout: n,
|
|
333
333
|
isLoggingOut: l,
|
|
334
|
-
loadingComponent:
|
|
334
|
+
loadingComponent: u,
|
|
335
335
|
sidebarHeaderContent: a,
|
|
336
336
|
headerActions: h,
|
|
337
|
-
profileRole:
|
|
337
|
+
profileRole: d,
|
|
338
338
|
profileMenuButtons: g,
|
|
339
339
|
profileMenuItems: m,
|
|
340
340
|
logoutButton: y
|
|
341
341
|
}) {
|
|
342
342
|
var Ee, _e;
|
|
343
|
-
const [b] = Ye(),
|
|
343
|
+
const [b] = Ye(), S = b.get("embed") === "true", C = Yt(), { badges: I } = wr(), Z = mt(), T = Ve(), M = !ne("md"), [ae, J] = k(!1), [H, P] = k(!1), [oe, le] = k(!1), [G, Q] = k(!1), [K, se] = k(
|
|
344
344
|
() => new Set(Lt)
|
|
345
345
|
), [ee, X] = k(null), { selectedGroupId: R, setSelectedGroupId: V } = er();
|
|
346
346
|
$(() => {
|
|
@@ -350,10 +350,10 @@ function Nn({
|
|
|
350
350
|
$(() => {
|
|
351
351
|
const p = te.current;
|
|
352
352
|
if (!p) return;
|
|
353
|
-
const
|
|
353
|
+
const E = () => {
|
|
354
354
|
ke || (Ze = p.scrollTop);
|
|
355
355
|
};
|
|
356
|
-
return p.addEventListener("scroll",
|
|
356
|
+
return p.addEventListener("scroll", E), () => p.removeEventListener("scroll", E);
|
|
357
357
|
}, []);
|
|
358
358
|
const ge = () => {
|
|
359
359
|
const p = te.current;
|
|
@@ -369,19 +369,19 @@ function Nn({
|
|
|
369
369
|
return () => clearTimeout(p);
|
|
370
370
|
}, []), at(() => {
|
|
371
371
|
C.menus.length > 0 && (Ze > 0 ? ge() : requestAnimationFrame(() => {
|
|
372
|
-
var
|
|
373
|
-
const p = (
|
|
372
|
+
var E;
|
|
373
|
+
const p = (E = te.current) == null ? void 0 : E.querySelector(
|
|
374
374
|
"[data-menu-active='true']"
|
|
375
375
|
);
|
|
376
376
|
p && p.scrollIntoView({ block: "center", behavior: "instant" });
|
|
377
377
|
}));
|
|
378
378
|
}, [C.menus]), $(() => {
|
|
379
379
|
ke = !0, ge();
|
|
380
|
-
const p = setTimeout(ge, 0),
|
|
380
|
+
const p = setTimeout(ge, 0), E = setTimeout(ge, 50), L = setTimeout(ge, 100), v = setTimeout(ge, 200), F = setTimeout(() => {
|
|
381
381
|
ke = !1;
|
|
382
382
|
}, 300);
|
|
383
383
|
return () => {
|
|
384
|
-
clearTimeout(p), clearTimeout(
|
|
384
|
+
clearTimeout(p), clearTimeout(E), clearTimeout(L), clearTimeout(v), clearTimeout(F);
|
|
385
385
|
};
|
|
386
386
|
}, [T.pathname]), $(() => {
|
|
387
387
|
fe.current && (fe.current.scrollTop = 0);
|
|
@@ -397,65 +397,65 @@ function Nn({
|
|
|
397
397
|
}, et = () => {
|
|
398
398
|
J(!1), n();
|
|
399
399
|
}, Ne = (p) => {
|
|
400
|
-
const
|
|
401
|
-
return p.children &&
|
|
402
|
-
},
|
|
400
|
+
const E = [p.to];
|
|
401
|
+
return p.children && E.push(...p.children.map((L) => L.to)), E;
|
|
402
|
+
}, Ae = [
|
|
403
403
|
...C.menus.flatMap((p) => p.items.flatMap(Ne)),
|
|
404
404
|
...((Ee = C.menuBottom) == null ? void 0 : Ee.flatMap(Ne)) ?? []
|
|
405
|
-
],
|
|
405
|
+
], de = (p) => {
|
|
406
406
|
if (!T.pathname.startsWith(p)) return !1;
|
|
407
|
-
const
|
|
408
|
-
return p ===
|
|
407
|
+
const E = Ae.filter((L) => T.pathname.startsWith(L)).sort((L, v) => v.length - L.length)[0];
|
|
408
|
+
return p === E;
|
|
409
409
|
};
|
|
410
410
|
$(() => {
|
|
411
|
-
var
|
|
411
|
+
var E;
|
|
412
412
|
const p = (L) => {
|
|
413
413
|
var v;
|
|
414
|
-
(v = L.children) != null && v.some((
|
|
415
|
-
const w = new Set(
|
|
414
|
+
(v = L.children) != null && v.some((F) => T.pathname.startsWith(F.to)) && se((F) => {
|
|
415
|
+
const w = new Set(F);
|
|
416
416
|
return w.add(L.id), w;
|
|
417
417
|
});
|
|
418
418
|
};
|
|
419
419
|
C.menus.forEach((L) => {
|
|
420
420
|
L.items.forEach(p);
|
|
421
|
-
}), (
|
|
421
|
+
}), (E = C.menuBottom) == null || E.forEach(p);
|
|
422
422
|
}, [T.pathname, C.menus, C.menuBottom]);
|
|
423
423
|
const Oe = (p) => {
|
|
424
|
-
|
|
425
|
-
const L = new Set(
|
|
424
|
+
se((E) => {
|
|
425
|
+
const L = new Set(E);
|
|
426
426
|
return L.has(p) ? L.delete(p) : L.add(p), L;
|
|
427
427
|
});
|
|
428
428
|
};
|
|
429
429
|
$(() => {
|
|
430
430
|
C.menus.length !== 0 && R !== null && !C.menus.some((p) => p.id === R) && V(null);
|
|
431
431
|
}, [C.menus, R, V]);
|
|
432
|
-
const
|
|
432
|
+
const He = he(() => {
|
|
433
433
|
if (R !== null)
|
|
434
434
|
return C.menus.filter(
|
|
435
435
|
(L) => L.id === R || L.parentGroupId === R
|
|
436
436
|
);
|
|
437
|
-
const p = C.menus.filter((L) => L.parentGroupId === void 0),
|
|
438
|
-
return
|
|
437
|
+
const p = C.menus.filter((L) => L.parentGroupId === void 0), E = C.menus.filter((L) => L.parentGroupId !== void 0).flatMap((L) => L.items);
|
|
438
|
+
return E.length === 0 ? p : [
|
|
439
439
|
...p,
|
|
440
|
-
{ id: 18, name: "Pengaturan", items:
|
|
440
|
+
{ id: 18, name: "Pengaturan", items: E, parentGroupId: void 0 }
|
|
441
441
|
];
|
|
442
442
|
}, [C.menus, R]);
|
|
443
|
-
if (
|
|
443
|
+
if (S)
|
|
444
444
|
return /* @__PURE__ */ e("main", { style: { height: "100vh", overflowY: "auto", backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)" }, children: t || /* @__PURE__ */ e(Et, {}) });
|
|
445
445
|
const Fe = (p) => {
|
|
446
|
-
const
|
|
447
|
-
return /* @__PURE__ */
|
|
448
|
-
/* @__PURE__ */
|
|
446
|
+
const E = p.children && p.children.length > 0, L = K.has(p.id), v = E ? p.children.some((B) => de(B.to)) : de(p.to), F = rt(p.badge, I[p.id]), w = !!F && H && !M;
|
|
447
|
+
return /* @__PURE__ */ s("div", { "data-menu-active": v || void 0, children: [
|
|
448
|
+
/* @__PURE__ */ s(
|
|
449
449
|
"button",
|
|
450
450
|
{
|
|
451
451
|
onClick: (B) => {
|
|
452
|
-
if (
|
|
453
|
-
if (
|
|
454
|
-
const
|
|
452
|
+
if (E)
|
|
453
|
+
if (H && !M) {
|
|
454
|
+
const z = B.currentTarget.getBoundingClientRect();
|
|
455
455
|
X({
|
|
456
456
|
item: p,
|
|
457
|
-
top:
|
|
458
|
-
left:
|
|
457
|
+
top: z.top,
|
|
458
|
+
left: z.right + 8
|
|
459
459
|
});
|
|
460
460
|
} else
|
|
461
461
|
Oe(p.id);
|
|
@@ -466,10 +466,10 @@ function Nn({
|
|
|
466
466
|
width: "100%",
|
|
467
467
|
display: "flex",
|
|
468
468
|
alignItems: "center",
|
|
469
|
-
justifyContent:
|
|
469
|
+
justifyContent: H && !M ? "center" : void 0,
|
|
470
470
|
gap: "0.5rem",
|
|
471
|
-
paddingLeft:
|
|
472
|
-
paddingRight:
|
|
471
|
+
paddingLeft: H && !M ? "0" : "0.5rem",
|
|
472
|
+
paddingRight: H && !M ? "0" : "0.5rem",
|
|
473
473
|
paddingTop: "0.25rem",
|
|
474
474
|
paddingBottom: "0.25rem",
|
|
475
475
|
height: "2rem",
|
|
@@ -480,7 +480,7 @@ function Nn({
|
|
|
480
480
|
color: "var(--sa-text-primary, #292a2e)",
|
|
481
481
|
cursor: "pointer"
|
|
482
482
|
},
|
|
483
|
-
title:
|
|
483
|
+
title: H && !M ? p.title : void 0,
|
|
484
484
|
onMouseEnter: (B) => {
|
|
485
485
|
v || (B.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
|
|
486
486
|
},
|
|
@@ -488,7 +488,7 @@ function Nn({
|
|
|
488
488
|
v || (B.currentTarget.style.backgroundColor = "transparent");
|
|
489
489
|
},
|
|
490
490
|
children: [
|
|
491
|
-
/* @__PURE__ */
|
|
491
|
+
/* @__PURE__ */ s(
|
|
492
492
|
"span",
|
|
493
493
|
{
|
|
494
494
|
style: {
|
|
@@ -517,7 +517,7 @@ function Nn({
|
|
|
517
517
|
]
|
|
518
518
|
}
|
|
519
519
|
),
|
|
520
|
-
(!
|
|
520
|
+
(!H || M) && /* @__PURE__ */ s(q, { children: [
|
|
521
521
|
/* @__PURE__ */ e(
|
|
522
522
|
"span",
|
|
523
523
|
{
|
|
@@ -534,16 +534,16 @@ function Nn({
|
|
|
534
534
|
children: p.title
|
|
535
535
|
}
|
|
536
536
|
),
|
|
537
|
-
|
|
537
|
+
F && /* @__PURE__ */ e(
|
|
538
538
|
Le,
|
|
539
539
|
{
|
|
540
|
-
text: String(
|
|
541
|
-
variant:
|
|
540
|
+
text: String(F.value),
|
|
541
|
+
variant: F.variant ?? "info",
|
|
542
542
|
size: "xs",
|
|
543
543
|
border: !0
|
|
544
544
|
}
|
|
545
545
|
),
|
|
546
|
-
|
|
546
|
+
E && /* @__PURE__ */ e(
|
|
547
547
|
"svg",
|
|
548
548
|
{
|
|
549
549
|
style: {
|
|
@@ -571,11 +571,11 @@ function Nn({
|
|
|
571
571
|
]
|
|
572
572
|
}
|
|
573
573
|
),
|
|
574
|
-
|
|
574
|
+
E && (!H || M) && (() => {
|
|
575
575
|
const B = p.children.findIndex(
|
|
576
|
-
(
|
|
576
|
+
(z) => de(z.to)
|
|
577
577
|
);
|
|
578
|
-
return /* @__PURE__ */
|
|
578
|
+
return /* @__PURE__ */ s(
|
|
579
579
|
"div",
|
|
580
580
|
{
|
|
581
581
|
style: {
|
|
@@ -621,15 +621,15 @@ function Nn({
|
|
|
621
621
|
}
|
|
622
622
|
}
|
|
623
623
|
),
|
|
624
|
-
p.children.map((
|
|
624
|
+
p.children.map((z) => {
|
|
625
625
|
const ue = rt(
|
|
626
|
-
|
|
627
|
-
|
|
626
|
+
z.badge,
|
|
627
|
+
I[z.id]
|
|
628
628
|
);
|
|
629
|
-
return /* @__PURE__ */
|
|
629
|
+
return /* @__PURE__ */ s(
|
|
630
630
|
"button",
|
|
631
631
|
{
|
|
632
|
-
onClick: () => Z(
|
|
632
|
+
onClick: () => Z(z.to),
|
|
633
633
|
style: {
|
|
634
634
|
width: "100%",
|
|
635
635
|
display: "flex",
|
|
@@ -640,24 +640,24 @@ function Nn({
|
|
|
640
640
|
paddingTop: "0.25rem",
|
|
641
641
|
paddingBottom: "0.25rem",
|
|
642
642
|
height: "2rem",
|
|
643
|
-
borderRadius:
|
|
643
|
+
borderRadius: de(z.to) ? "var(--sa-radii-sm, 0.375rem)" : "var(--sa-radii-md, 0.5rem)",
|
|
644
644
|
textAlign: "left",
|
|
645
|
-
backgroundColor:
|
|
646
|
-
color:
|
|
645
|
+
backgroundColor: de(z.to) ? "var(--sa-background-primary, #ffffff)" : "transparent",
|
|
646
|
+
color: de(z.to) ? "var(--sa-text-primary, #292a2e)" : "var(--sa-text-subtle, #505258)",
|
|
647
647
|
cursor: "pointer",
|
|
648
|
-
border:
|
|
648
|
+
border: de(z.to) ? "1px solid var(--sa-border-subtle, #0b120e24)" : "1px solid transparent"
|
|
649
649
|
},
|
|
650
650
|
onMouseEnter: (xe) => {
|
|
651
|
-
|
|
651
|
+
de(z.to) || (xe.currentTarget.style.backgroundColor = "var(--sa-background-neutral, #f0f1f2)");
|
|
652
652
|
},
|
|
653
653
|
onMouseLeave: (xe) => {
|
|
654
|
-
|
|
654
|
+
de(z.to) || (xe.currentTarget.style.backgroundColor = "transparent");
|
|
655
655
|
},
|
|
656
656
|
children: [
|
|
657
657
|
/* @__PURE__ */ e(
|
|
658
658
|
D,
|
|
659
659
|
{
|
|
660
|
-
name:
|
|
660
|
+
name: z.icon,
|
|
661
661
|
size: "sm",
|
|
662
662
|
style: { flexShrink: 0 }
|
|
663
663
|
}
|
|
@@ -674,7 +674,7 @@ function Nn({
|
|
|
674
674
|
overflow: "hidden",
|
|
675
675
|
textOverflow: "ellipsis"
|
|
676
676
|
},
|
|
677
|
-
children:
|
|
677
|
+
children: z.title
|
|
678
678
|
}
|
|
679
679
|
),
|
|
680
680
|
ue && /* @__PURE__ */ e(
|
|
@@ -688,7 +688,7 @@ function Nn({
|
|
|
688
688
|
)
|
|
689
689
|
]
|
|
690
690
|
},
|
|
691
|
-
|
|
691
|
+
z.id
|
|
692
692
|
);
|
|
693
693
|
})
|
|
694
694
|
]
|
|
@@ -697,8 +697,8 @@ function Nn({
|
|
|
697
697
|
})()
|
|
698
698
|
] }, p.id);
|
|
699
699
|
};
|
|
700
|
-
return /* @__PURE__ */ e(Mr, { children: /* @__PURE__ */
|
|
701
|
-
/* @__PURE__ */
|
|
700
|
+
return /* @__PURE__ */ e(Mr, { children: /* @__PURE__ */ s(Fr, { children: [
|
|
701
|
+
/* @__PURE__ */ s(
|
|
702
702
|
"div",
|
|
703
703
|
{
|
|
704
704
|
style: {
|
|
@@ -706,7 +706,7 @@ function Nn({
|
|
|
706
706
|
height: "100vh",
|
|
707
707
|
// backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
|
|
708
708
|
position: "relative",
|
|
709
|
-
"--app-sidebar-width": M ? "0px" :
|
|
709
|
+
"--app-sidebar-width": M ? "0px" : H ? "4.375rem" : "16.375rem",
|
|
710
710
|
"--app-footer-zindex": M && oe ? "40" : "999"
|
|
711
711
|
},
|
|
712
712
|
children: [
|
|
@@ -725,11 +725,11 @@ function Nn({
|
|
|
725
725
|
onClick: () => le(!1)
|
|
726
726
|
}
|
|
727
727
|
),
|
|
728
|
-
/* @__PURE__ */
|
|
728
|
+
/* @__PURE__ */ s(
|
|
729
729
|
"aside",
|
|
730
730
|
{
|
|
731
731
|
style: {
|
|
732
|
-
width: M ? "16.375rem" :
|
|
732
|
+
width: M ? "16.375rem" : H ? "4.375rem" : "16.375rem",
|
|
733
733
|
position: M ? "fixed" : "relative",
|
|
734
734
|
...M && {
|
|
735
735
|
inset: 0,
|
|
@@ -760,9 +760,9 @@ function Nn({
|
|
|
760
760
|
position: "relative"
|
|
761
761
|
},
|
|
762
762
|
children: (() => {
|
|
763
|
-
const p = !M &&
|
|
764
|
-
return /* @__PURE__ */
|
|
765
|
-
/* @__PURE__ */
|
|
763
|
+
const p = !M && H && !oe, E = p && G;
|
|
764
|
+
return /* @__PURE__ */ s(q, { children: [
|
|
765
|
+
/* @__PURE__ */ s(
|
|
766
766
|
"div",
|
|
767
767
|
{
|
|
768
768
|
style: {
|
|
@@ -772,8 +772,8 @@ function Nn({
|
|
|
772
772
|
flex: p ? 1 : void 0,
|
|
773
773
|
justifyContent: p ? "center" : void 0,
|
|
774
774
|
transition: "opacity 0.2s",
|
|
775
|
-
opacity:
|
|
776
|
-
pointerEvents:
|
|
775
|
+
opacity: E ? 0 : 1,
|
|
776
|
+
pointerEvents: E ? "none" : "auto"
|
|
777
777
|
},
|
|
778
778
|
children: [
|
|
779
779
|
/* @__PURE__ */ e(
|
|
@@ -788,7 +788,7 @@ function Nn({
|
|
|
788
788
|
}
|
|
789
789
|
}
|
|
790
790
|
),
|
|
791
|
-
(!
|
|
791
|
+
(!H || oe) && /* @__PURE__ */ e(
|
|
792
792
|
"span",
|
|
793
793
|
{
|
|
794
794
|
style: {
|
|
@@ -803,7 +803,7 @@ function Nn({
|
|
|
803
803
|
]
|
|
804
804
|
}
|
|
805
805
|
),
|
|
806
|
-
!M && !
|
|
806
|
+
!M && !H && /* @__PURE__ */ e(
|
|
807
807
|
"button",
|
|
808
808
|
{
|
|
809
809
|
type: "button",
|
|
@@ -847,8 +847,8 @@ function Nn({
|
|
|
847
847
|
borderRadius: "var(--sa-radii-sm, 0.375rem)",
|
|
848
848
|
color: "var(--sa-text-primary, #292a2e)",
|
|
849
849
|
cursor: "pointer",
|
|
850
|
-
opacity:
|
|
851
|
-
pointerEvents:
|
|
850
|
+
opacity: E ? 1 : 0,
|
|
851
|
+
pointerEvents: E ? "auto" : "none",
|
|
852
852
|
transition: "opacity 0.2s"
|
|
853
853
|
},
|
|
854
854
|
children: /* @__PURE__ */ e(
|
|
@@ -904,7 +904,7 @@ function Nn({
|
|
|
904
904
|
a && /* @__PURE__ */ e(
|
|
905
905
|
Sr,
|
|
906
906
|
{
|
|
907
|
-
collapsed: M ? !1 :
|
|
907
|
+
collapsed: M ? !1 : H,
|
|
908
908
|
children: a
|
|
909
909
|
}
|
|
910
910
|
),
|
|
@@ -918,8 +918,8 @@ function Nn({
|
|
|
918
918
|
paddingTop: "1rem",
|
|
919
919
|
paddingBottom: "1rem"
|
|
920
920
|
},
|
|
921
|
-
children:
|
|
922
|
-
!
|
|
921
|
+
children: He.map((p) => /* @__PURE__ */ s("div", { style: { marginBottom: "1rem" }, children: [
|
|
922
|
+
!H || M ? p.name && /* @__PURE__ */ e(
|
|
923
923
|
"div",
|
|
924
924
|
{
|
|
925
925
|
style: {
|
|
@@ -966,9 +966,9 @@ function Nn({
|
|
|
966
966
|
Lr,
|
|
967
967
|
{
|
|
968
968
|
slotKey: p.slotKey,
|
|
969
|
-
fallback: p.items.map((
|
|
969
|
+
fallback: p.items.map((E) => Fe(E))
|
|
970
970
|
}
|
|
971
|
-
) : p.items.map((
|
|
971
|
+
) : p.items.map((E) => Fe(E)) })
|
|
972
972
|
] }, p.id))
|
|
973
973
|
}
|
|
974
974
|
),
|
|
@@ -993,8 +993,8 @@ function Nn({
|
|
|
993
993
|
]
|
|
994
994
|
}
|
|
995
995
|
),
|
|
996
|
-
/* @__PURE__ */
|
|
997
|
-
/* @__PURE__ */
|
|
996
|
+
/* @__PURE__ */ s("div", { style: { flex: 1, display: "flex", flexDirection: "column", overflow: "hidden" }, children: [
|
|
997
|
+
/* @__PURE__ */ s(
|
|
998
998
|
"header",
|
|
999
999
|
{
|
|
1000
1000
|
style: {
|
|
@@ -1009,7 +1009,7 @@ function Nn({
|
|
|
1009
1009
|
flexShrink: 0
|
|
1010
1010
|
},
|
|
1011
1011
|
children: [
|
|
1012
|
-
/* @__PURE__ */
|
|
1012
|
+
/* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", gap: "1rem" }, children: [
|
|
1013
1013
|
M && /* @__PURE__ */ e(
|
|
1014
1014
|
"button",
|
|
1015
1015
|
{
|
|
@@ -1044,10 +1044,10 @@ function Nn({
|
|
|
1044
1044
|
),
|
|
1045
1045
|
/* @__PURE__ */ e(Er, { children: r })
|
|
1046
1046
|
] }),
|
|
1047
|
-
/* @__PURE__ */
|
|
1047
|
+
/* @__PURE__ */ s("div", { style: { display: "flex", alignItems: "center", gap: "0.75rem" }, children: [
|
|
1048
1048
|
h,
|
|
1049
|
-
/* @__PURE__ */
|
|
1050
|
-
/* @__PURE__ */ e(Ge, { children: /* @__PURE__ */
|
|
1049
|
+
/* @__PURE__ */ s(jt, { position: "bottom-right", children: [
|
|
1050
|
+
/* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ s(
|
|
1051
1051
|
"div",
|
|
1052
1052
|
{
|
|
1053
1053
|
style: {
|
|
@@ -1057,7 +1057,7 @@ function Nn({
|
|
|
1057
1057
|
cursor: "pointer"
|
|
1058
1058
|
},
|
|
1059
1059
|
children: [
|
|
1060
|
-
/* @__PURE__ */
|
|
1060
|
+
/* @__PURE__ */ s("div", { style: { textAlign: "right", maxWidth: "12.5rem" }, children: [
|
|
1061
1061
|
/* @__PURE__ */ e(
|
|
1062
1062
|
"p",
|
|
1063
1063
|
{
|
|
@@ -1119,7 +1119,7 @@ function Nn({
|
|
|
1119
1119
|
]
|
|
1120
1120
|
}
|
|
1121
1121
|
) }),
|
|
1122
|
-
/* @__PURE__ */
|
|
1122
|
+
/* @__PURE__ */ s(
|
|
1123
1123
|
Zt,
|
|
1124
1124
|
{
|
|
1125
1125
|
style: {
|
|
@@ -1130,7 +1130,7 @@ function Nn({
|
|
|
1130
1130
|
marginTop: "16px"
|
|
1131
1131
|
},
|
|
1132
1132
|
children: [
|
|
1133
|
-
/* @__PURE__ */ e(cr, { children: /* @__PURE__ */
|
|
1133
|
+
/* @__PURE__ */ e(cr, { children: /* @__PURE__ */ s(
|
|
1134
1134
|
"div",
|
|
1135
1135
|
{
|
|
1136
1136
|
style: {
|
|
@@ -1192,7 +1192,7 @@ function Nn({
|
|
|
1192
1192
|
children: (i == null ? void 0 : i.email) || "unknown"
|
|
1193
1193
|
}
|
|
1194
1194
|
),
|
|
1195
|
-
|
|
1195
|
+
d && /* @__PURE__ */ e(
|
|
1196
1196
|
"p",
|
|
1197
1197
|
{
|
|
1198
1198
|
style: {
|
|
@@ -1204,14 +1204,14 @@ function Nn({
|
|
|
1204
1204
|
overflow: "hidden",
|
|
1205
1205
|
textOverflow: "ellipsis"
|
|
1206
1206
|
},
|
|
1207
|
-
children:
|
|
1207
|
+
children: d
|
|
1208
1208
|
}
|
|
1209
1209
|
)
|
|
1210
1210
|
]
|
|
1211
1211
|
}
|
|
1212
1212
|
) }),
|
|
1213
|
-
(g && g.length > 0 || m) && /* @__PURE__ */
|
|
1214
|
-
g == null ? void 0 : g.map((p,
|
|
1213
|
+
(g && g.length > 0 || m) && /* @__PURE__ */ s($t, { children: [
|
|
1214
|
+
g == null ? void 0 : g.map((p, E) => /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ s(
|
|
1215
1215
|
"button",
|
|
1216
1216
|
{
|
|
1217
1217
|
type: "button",
|
|
@@ -1228,10 +1228,10 @@ function Nn({
|
|
|
1228
1228
|
/* @__PURE__ */ e("span", { children: p.label })
|
|
1229
1229
|
]
|
|
1230
1230
|
}
|
|
1231
|
-
) }, `${p.label}-${
|
|
1231
|
+
) }, `${p.label}-${E}`)),
|
|
1232
1232
|
m
|
|
1233
1233
|
] }),
|
|
1234
|
-
y ?? /* @__PURE__ */ e(ar, { children: /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */
|
|
1234
|
+
y ?? /* @__PURE__ */ e(ar, { children: /* @__PURE__ */ e(Ge, { children: /* @__PURE__ */ s(
|
|
1235
1235
|
"button",
|
|
1236
1236
|
{
|
|
1237
1237
|
type: "button",
|
|
@@ -1285,7 +1285,7 @@ function Nn({
|
|
|
1285
1285
|
]
|
|
1286
1286
|
}
|
|
1287
1287
|
),
|
|
1288
|
-
l &&
|
|
1288
|
+
l && u && /* @__PURE__ */ e(
|
|
1289
1289
|
"div",
|
|
1290
1290
|
{
|
|
1291
1291
|
style: {
|
|
@@ -1297,18 +1297,18 @@ function Nn({
|
|
|
1297
1297
|
justifyContent: "center",
|
|
1298
1298
|
zIndex: 9999
|
|
1299
1299
|
},
|
|
1300
|
-
children:
|
|
1300
|
+
children: u
|
|
1301
1301
|
}
|
|
1302
1302
|
),
|
|
1303
|
-
/* @__PURE__ */
|
|
1303
|
+
/* @__PURE__ */ s(ut, { isShow: ae, onHide: Te, children: [
|
|
1304
1304
|
/* @__PURE__ */ e(Ot, { children: "Confirmation Logout" }),
|
|
1305
1305
|
/* @__PURE__ */ e(ht, { children: "Are you sure you want to end the session and exit the page?" }),
|
|
1306
|
-
/* @__PURE__ */ e(_t, { children: /* @__PURE__ */ e(f, { display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */
|
|
1306
|
+
/* @__PURE__ */ e(_t, { children: /* @__PURE__ */ e(f, { display: "flex", align: "flex-end", justify: "center", children: /* @__PURE__ */ s(_, { direction: "row", gap: "sm", align: "center", children: [
|
|
1307
1307
|
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(N, { secondary: !0, onClick: Te, children: "Cancel" }) }),
|
|
1308
1308
|
/* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(N, { primary: !0, onClick: et, children: "Yes, Sure" }) })
|
|
1309
1309
|
] }) }) })
|
|
1310
1310
|
] }),
|
|
1311
|
-
ee && /* @__PURE__ */
|
|
1311
|
+
ee && /* @__PURE__ */ s(q, { children: [
|
|
1312
1312
|
/* @__PURE__ */ e(
|
|
1313
1313
|
"div",
|
|
1314
1314
|
{
|
|
@@ -1321,7 +1321,7 @@ function Nn({
|
|
|
1321
1321
|
}
|
|
1322
1322
|
}
|
|
1323
1323
|
),
|
|
1324
|
-
/* @__PURE__ */
|
|
1324
|
+
/* @__PURE__ */ s(
|
|
1325
1325
|
"div",
|
|
1326
1326
|
{
|
|
1327
1327
|
role: "dialog",
|
|
@@ -1358,11 +1358,11 @@ function Nn({
|
|
|
1358
1358
|
}
|
|
1359
1359
|
),
|
|
1360
1360
|
(_e = ee.item.children) == null ? void 0 : _e.map((p) => {
|
|
1361
|
-
const
|
|
1361
|
+
const E = de(p.to), L = rt(
|
|
1362
1362
|
p.badge,
|
|
1363
|
-
|
|
1363
|
+
I[p.id]
|
|
1364
1364
|
);
|
|
1365
|
-
return /* @__PURE__ */
|
|
1365
|
+
return /* @__PURE__ */ s(
|
|
1366
1366
|
"button",
|
|
1367
1367
|
{
|
|
1368
1368
|
onClick: () => {
|
|
@@ -1376,18 +1376,18 @@ function Nn({
|
|
|
1376
1376
|
padding: "0.5rem 0.75rem",
|
|
1377
1377
|
borderRadius: "var(--sa-radii-md, 0.5rem)",
|
|
1378
1378
|
textAlign: "left",
|
|
1379
|
-
backgroundColor:
|
|
1380
|
-
color:
|
|
1379
|
+
backgroundColor: E ? "var(--sa-color-gray-100, #f8f8f8)" : "transparent",
|
|
1380
|
+
color: E ? "var(--sa-text-primary, #292a2e)" : "var(--sa-color-gray-800, #505258)",
|
|
1381
1381
|
border: "1px solid transparent",
|
|
1382
1382
|
cursor: "pointer",
|
|
1383
1383
|
fontSize: "0.875rem",
|
|
1384
1384
|
fontWeight: 500
|
|
1385
1385
|
},
|
|
1386
1386
|
onMouseEnter: (v) => {
|
|
1387
|
-
|
|
1387
|
+
E || (v.currentTarget.style.backgroundColor = "var(--sa-color-gray-100, #f8f8f8)");
|
|
1388
1388
|
},
|
|
1389
1389
|
onMouseLeave: (v) => {
|
|
1390
|
-
|
|
1390
|
+
E || (v.currentTarget.style.backgroundColor = "transparent");
|
|
1391
1391
|
},
|
|
1392
1392
|
children: [
|
|
1393
1393
|
p.icon && /* @__PURE__ */ e(
|
|
@@ -1430,7 +1430,7 @@ const Wr = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1430
1430
|
...r,
|
|
1431
1431
|
children: t
|
|
1432
1432
|
}
|
|
1433
|
-
), Xe = ce(Wr),
|
|
1433
|
+
), Xe = ce(Wr), At = ({
|
|
1434
1434
|
title: t,
|
|
1435
1435
|
iconName: r,
|
|
1436
1436
|
textColor: i,
|
|
@@ -1438,8 +1438,8 @@ const Wr = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1438
1438
|
hoverTextColor: n,
|
|
1439
1439
|
hoverIconColor: l
|
|
1440
1440
|
}) => {
|
|
1441
|
-
const [
|
|
1442
|
-
return /* @__PURE__ */
|
|
1441
|
+
const [u, a] = k(!1);
|
|
1442
|
+
return /* @__PURE__ */ s(
|
|
1443
1443
|
f,
|
|
1444
1444
|
{
|
|
1445
1445
|
direction: "row",
|
|
@@ -1455,7 +1455,7 @@ const Wr = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1455
1455
|
name: r || "ChevronLeft",
|
|
1456
1456
|
size: "xs",
|
|
1457
1457
|
style: {
|
|
1458
|
-
color:
|
|
1458
|
+
color: u ? l ?? "var(--sa-text-subtle, #8c8f97)" : o ?? "var(--sa-text-subtle, #8c8f97)",
|
|
1459
1459
|
transition: "color 0.15s ease"
|
|
1460
1460
|
}
|
|
1461
1461
|
}
|
|
@@ -1465,7 +1465,7 @@ const Wr = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1465
1465
|
{
|
|
1466
1466
|
variant: "sub-h3",
|
|
1467
1467
|
style: {
|
|
1468
|
-
color:
|
|
1468
|
+
color: u ? n ?? "var(--sa-text-primary, #292a2e)" : i ?? "var(--sa-text-subtle, #8c8f97)",
|
|
1469
1469
|
transition: "color 0.15s ease"
|
|
1470
1470
|
},
|
|
1471
1471
|
children: t || "Back"
|
|
@@ -1481,25 +1481,25 @@ const Wr = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1481
1481
|
iconColor: o,
|
|
1482
1482
|
hoverIconColor: n
|
|
1483
1483
|
}) => {
|
|
1484
|
-
const [l,
|
|
1484
|
+
const [l, u] = k(!1), a = o ?? "var(--sa-text-subtle, #8c8f97)", h = n ?? "var(--sa-text-subtle, #8c8f97)", d = t.length > 1 ? t[0] : void 0, g = !!(d != null && d.to || d != null && d.onClick), m = /* @__PURE__ */ e(
|
|
1485
1485
|
D,
|
|
1486
1486
|
{
|
|
1487
1487
|
name: i || "ChevronLeft",
|
|
1488
1488
|
size: "xs",
|
|
1489
|
-
onMouseEnter: g ? () =>
|
|
1490
|
-
onMouseLeave: g ? () =>
|
|
1489
|
+
onMouseEnter: g ? () => u(!0) : void 0,
|
|
1490
|
+
onMouseLeave: g ? () => u(!1) : void 0,
|
|
1491
1491
|
style: {
|
|
1492
1492
|
color: g && l ? h : a,
|
|
1493
1493
|
transition: "color 0.15s ease",
|
|
1494
1494
|
cursor: g ? "pointer" : void 0
|
|
1495
1495
|
}
|
|
1496
1496
|
}
|
|
1497
|
-
), y =
|
|
1498
|
-
return /* @__PURE__ */
|
|
1497
|
+
), y = d != null && d.to ? /* @__PURE__ */ e(Ue, { to: d.to, replace: !0, style: { textDecoration: "none" }, children: m }) : d != null && d.onClick ? /* @__PURE__ */ e(Xe, { onClick: d.onClick, children: m }) : m;
|
|
1498
|
+
return /* @__PURE__ */ s(f, { direction: "row", gap: "xs", align: "center", children: [
|
|
1499
1499
|
y,
|
|
1500
|
-
/* @__PURE__ */ e(ir, { separator: r, size: "md", children: t.map((b,
|
|
1501
|
-
const C =
|
|
1502
|
-
return b.to && !C ? /* @__PURE__ */ e(kt, { children: /* @__PURE__ */ e(Ue, { to: b.to, children: b.label }) },
|
|
1500
|
+
/* @__PURE__ */ e(ir, { separator: r, size: "md", children: t.map((b, S) => {
|
|
1501
|
+
const C = S === t.length - 1;
|
|
1502
|
+
return b.to && !C ? /* @__PURE__ */ e(kt, { children: /* @__PURE__ */ e(Ue, { to: b.to, children: b.label }) }, S) : /* @__PURE__ */ e(kt, { currentPage: C, children: /* @__PURE__ */ e(nr, { onClick: C ? void 0 : b.onClick, children: b.label }) }, S);
|
|
1503
1503
|
}) })
|
|
1504
1504
|
] });
|
|
1505
1505
|
}, On = (t) => {
|
|
@@ -1513,7 +1513,7 @@ const Wr = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1513
1513
|
iconColor: l.iconColor,
|
|
1514
1514
|
hoverIconColor: l.hoverIconColor
|
|
1515
1515
|
}
|
|
1516
|
-
) : n ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Ue, { to: n, replace: !0, style: { textDecoration: "none" }, children: /* @__PURE__ */ e(
|
|
1516
|
+
) : n ? /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Ue, { to: n, replace: !0, style: { textDecoration: "none" }, children: /* @__PURE__ */ e(At, { ...l }) }) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Xe, { onClick: o, children: /* @__PURE__ */ e(At, { ...l }) }) });
|
|
1517
1517
|
}, it = [
|
|
1518
1518
|
// brand (blue)
|
|
1519
1519
|
{
|
|
@@ -1558,7 +1558,7 @@ const Wr = ({ children: t, ...r }) => /* @__PURE__ */ e(
|
|
|
1558
1558
|
activeShadow: "rgba(255, 117, 143, 0.25)"
|
|
1559
1559
|
}
|
|
1560
1560
|
];
|
|
1561
|
-
function
|
|
1561
|
+
function Ht(t, r, i) {
|
|
1562
1562
|
return {
|
|
1563
1563
|
display: "flex",
|
|
1564
1564
|
alignItems: "center",
|
|
@@ -1574,7 +1574,7 @@ function At(t, r, i) {
|
|
|
1574
1574
|
transition: "box-shadow 0.2s ease, transform 0.2s ease, background-color 0.15s ease, border-color 0.15s ease"
|
|
1575
1575
|
};
|
|
1576
1576
|
}
|
|
1577
|
-
const
|
|
1577
|
+
const zt = {
|
|
1578
1578
|
fontSize: "11px",
|
|
1579
1579
|
fontWeight: 500,
|
|
1580
1580
|
textAlign: "center",
|
|
@@ -1583,7 +1583,7 @@ const It = {
|
|
|
1583
1583
|
color: "var(--sa-background-primary, #ffffff)",
|
|
1584
1584
|
lineHeight: "1.3",
|
|
1585
1585
|
maxWidth: "80px"
|
|
1586
|
-
},
|
|
1586
|
+
}, It = {
|
|
1587
1587
|
display: "flex",
|
|
1588
1588
|
flexDirection: "column",
|
|
1589
1589
|
alignItems: "center",
|
|
@@ -1593,15 +1593,15 @@ const It = {
|
|
|
1593
1593
|
cursor: "pointer",
|
|
1594
1594
|
padding: 0
|
|
1595
1595
|
};
|
|
1596
|
-
function
|
|
1596
|
+
function Ar({
|
|
1597
1597
|
isShow: t,
|
|
1598
1598
|
onHide: r,
|
|
1599
1599
|
menus: i,
|
|
1600
1600
|
selectedGroupId: o,
|
|
1601
1601
|
onSelect: n
|
|
1602
1602
|
}) {
|
|
1603
|
-
const [l,
|
|
1604
|
-
n(
|
|
1603
|
+
const [l, u] = k(void 0), a = (d) => {
|
|
1604
|
+
n(d), r();
|
|
1605
1605
|
}, h = it[0];
|
|
1606
1606
|
return /* @__PURE__ */ e(
|
|
1607
1607
|
ut,
|
|
@@ -1614,7 +1614,7 @@ function zr({
|
|
|
1614
1614
|
boxShadow: "none",
|
|
1615
1615
|
border: "none"
|
|
1616
1616
|
},
|
|
1617
|
-
children: /* @__PURE__ */ e(ht, { children: /* @__PURE__ */
|
|
1617
|
+
children: /* @__PURE__ */ e(ht, { children: /* @__PURE__ */ s(
|
|
1618
1618
|
"div",
|
|
1619
1619
|
{
|
|
1620
1620
|
style: {
|
|
@@ -1623,35 +1623,35 @@ function zr({
|
|
|
1623
1623
|
gap: "16px"
|
|
1624
1624
|
},
|
|
1625
1625
|
children: [
|
|
1626
|
-
/* @__PURE__ */
|
|
1626
|
+
/* @__PURE__ */ s(
|
|
1627
1627
|
"button",
|
|
1628
1628
|
{
|
|
1629
1629
|
onClick: () => a(null),
|
|
1630
|
-
onMouseEnter: () =>
|
|
1631
|
-
onMouseLeave: () =>
|
|
1632
|
-
style:
|
|
1630
|
+
onMouseEnter: () => u("all"),
|
|
1631
|
+
onMouseLeave: () => u(void 0),
|
|
1632
|
+
style: It,
|
|
1633
1633
|
children: [
|
|
1634
|
-
/* @__PURE__ */ e("div", { style:
|
|
1635
|
-
/* @__PURE__ */ e("span", { style:
|
|
1634
|
+
/* @__PURE__ */ e("div", { style: Ht(o === null, l === "all", h), children: /* @__PURE__ */ e("div", { style: { color: h.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(D, { name: "Grid", size: "lg", style: { width: 32, height: 32 } }) }) }),
|
|
1635
|
+
/* @__PURE__ */ e("span", { style: zt, children: "Semua" })
|
|
1636
1636
|
]
|
|
1637
1637
|
}
|
|
1638
1638
|
),
|
|
1639
|
-
i.map((
|
|
1639
|
+
i.map((d, g) => {
|
|
1640
1640
|
var C;
|
|
1641
|
-
const m = o ===
|
|
1642
|
-
return /* @__PURE__ */
|
|
1641
|
+
const m = o === d.id, y = l === d.id, b = ((C = d.items[0]) == null ? void 0 : C.icon) ?? "Grid", S = it[(g + 1) % it.length];
|
|
1642
|
+
return /* @__PURE__ */ s(
|
|
1643
1643
|
"button",
|
|
1644
1644
|
{
|
|
1645
|
-
onClick: () => a(
|
|
1646
|
-
onMouseEnter: () =>
|
|
1647
|
-
onMouseLeave: () =>
|
|
1648
|
-
style:
|
|
1645
|
+
onClick: () => a(d.id),
|
|
1646
|
+
onMouseEnter: () => u(d.id),
|
|
1647
|
+
onMouseLeave: () => u(void 0),
|
|
1648
|
+
style: It,
|
|
1649
1649
|
children: [
|
|
1650
|
-
/* @__PURE__ */ e("div", { style:
|
|
1651
|
-
/* @__PURE__ */ e("span", { style:
|
|
1650
|
+
/* @__PURE__ */ e("div", { style: Ht(m, y, S), children: /* @__PURE__ */ e("div", { style: { color: S.icon, display: "flex", alignItems: "center", justifyContent: "center" }, children: /* @__PURE__ */ e(D, { name: b, size: "lg", style: { width: 32, height: 32 } }) }) }),
|
|
1651
|
+
/* @__PURE__ */ e("span", { style: zt, children: d.name })
|
|
1652
1652
|
]
|
|
1653
1653
|
},
|
|
1654
|
-
|
|
1654
|
+
d.id
|
|
1655
1655
|
);
|
|
1656
1656
|
})
|
|
1657
1657
|
]
|
|
@@ -1664,16 +1664,16 @@ function _n({
|
|
|
1664
1664
|
onSelect: t,
|
|
1665
1665
|
"aria-label": r = "Pilih module"
|
|
1666
1666
|
} = {}) {
|
|
1667
|
-
const i = Yt(), o = mt(), { selectedGroupId: n, setSelectedGroupId: l } = er(), [
|
|
1667
|
+
const i = Yt(), o = mt(), { selectedGroupId: n, setSelectedGroupId: l } = er(), [u, a] = k(!1), h = (d) => {
|
|
1668
1668
|
var g;
|
|
1669
|
-
if (l(
|
|
1670
|
-
const m = i.menus.find((b) => b.id ===
|
|
1669
|
+
if (l(d), d !== null) {
|
|
1670
|
+
const m = i.menus.find((b) => b.id === d), y = (g = m == null ? void 0 : m.items[0]) == null ? void 0 : g.to;
|
|
1671
1671
|
y && o(y);
|
|
1672
1672
|
}
|
|
1673
|
-
t == null || t(
|
|
1673
|
+
t == null || t(d);
|
|
1674
1674
|
};
|
|
1675
|
-
return /* @__PURE__ */
|
|
1676
|
-
/* @__PURE__ */
|
|
1675
|
+
return /* @__PURE__ */ s(q, { children: [
|
|
1676
|
+
/* @__PURE__ */ s("div", { style: { position: "relative" }, children: [
|
|
1677
1677
|
/* @__PURE__ */ e(
|
|
1678
1678
|
"button",
|
|
1679
1679
|
{
|
|
@@ -1691,11 +1691,11 @@ function _n({
|
|
|
1691
1691
|
cursor: "pointer"
|
|
1692
1692
|
},
|
|
1693
1693
|
"aria-label": r,
|
|
1694
|
-
onMouseEnter: (
|
|
1695
|
-
|
|
1694
|
+
onMouseEnter: (d) => {
|
|
1695
|
+
d.currentTarget.style.backgroundColor = "var(--sa-background-primary-inverse, #f8f8f8)";
|
|
1696
1696
|
},
|
|
1697
|
-
onMouseLeave: (
|
|
1698
|
-
|
|
1697
|
+
onMouseLeave: (d) => {
|
|
1698
|
+
d.currentTarget.style.backgroundColor = "transparent";
|
|
1699
1699
|
},
|
|
1700
1700
|
children: /* @__PURE__ */ e(D, { name: "GridApplication", size: "sm" })
|
|
1701
1701
|
}
|
|
@@ -1717,18 +1717,18 @@ function _n({
|
|
|
1717
1717
|
)
|
|
1718
1718
|
] }),
|
|
1719
1719
|
/* @__PURE__ */ e(
|
|
1720
|
-
|
|
1720
|
+
Ar,
|
|
1721
1721
|
{
|
|
1722
|
-
isShow:
|
|
1722
|
+
isShow: u,
|
|
1723
1723
|
onHide: () => a(!1),
|
|
1724
|
-
menus: i.menus.filter((
|
|
1724
|
+
menus: i.menus.filter((d) => d.parentGroupId === void 0),
|
|
1725
1725
|
selectedGroupId: n,
|
|
1726
1726
|
onSelect: h
|
|
1727
1727
|
}
|
|
1728
1728
|
)
|
|
1729
1729
|
] });
|
|
1730
1730
|
}
|
|
1731
|
-
const
|
|
1731
|
+
const Hr = (t, r) => {
|
|
1732
1732
|
const i = [];
|
|
1733
1733
|
if (r === 0)
|
|
1734
1734
|
return i.push(t), i;
|
|
@@ -1737,7 +1737,7 @@ const Ar = (t, r) => {
|
|
|
1737
1737
|
i.push(n);
|
|
1738
1738
|
}
|
|
1739
1739
|
return i;
|
|
1740
|
-
},
|
|
1740
|
+
}, zr = ce(
|
|
1741
1741
|
({
|
|
1742
1742
|
value: t,
|
|
1743
1743
|
label: r,
|
|
@@ -1746,7 +1746,7 @@ const Ar = (t, r) => {
|
|
|
1746
1746
|
lastIndex: n,
|
|
1747
1747
|
labelAlign: l = "top"
|
|
1748
1748
|
}) => {
|
|
1749
|
-
const
|
|
1749
|
+
const u = he(
|
|
1750
1750
|
() => ({
|
|
1751
1751
|
padding: 0,
|
|
1752
1752
|
paddingBottom: n ? 0 : 12,
|
|
@@ -1762,15 +1762,15 @@ const Ar = (t, r) => {
|
|
|
1762
1762
|
verticalAlign: l
|
|
1763
1763
|
}),
|
|
1764
1764
|
[n, l]
|
|
1765
|
-
), h = () => typeof r == "string" ? /* @__PURE__ */ e(x, { fontWeight: "medium", color: "text-muted", children: r }) : r,
|
|
1766
|
-
return /* @__PURE__ */
|
|
1767
|
-
/* @__PURE__ */ e(Se, { style:
|
|
1765
|
+
), h = () => typeof r == "string" ? /* @__PURE__ */ e(x, { fontWeight: "medium", color: "text-muted", children: r }) : r, d = () => typeof t == "string" || typeof t == "number" ? /* @__PURE__ */ e(x, { color: "text", fontWeight: "medium", children: t }) : t, g = () => typeof i == "string" || typeof i == "number" ? /* @__PURE__ */ e(x, { fontWeight: "medium", color: "text-muted", children: i }) : i;
|
|
1766
|
+
return /* @__PURE__ */ s(Re, { children: [
|
|
1767
|
+
/* @__PURE__ */ e(Se, { style: u, width: o, children: h() }),
|
|
1768
1768
|
i ? /* @__PURE__ */ e(Se, { style: a, width: 24, children: g() }) : null,
|
|
1769
|
-
/* @__PURE__ */ e(Se, { style:
|
|
1769
|
+
/* @__PURE__ */ e(Se, { style: u, children: d() })
|
|
1770
1770
|
] });
|
|
1771
1771
|
}
|
|
1772
|
-
),
|
|
1773
|
-
|
|
1772
|
+
), Ir = ce(({ fields: t, separator: r, labelWidth: i }) => /* @__PURE__ */ e(Gt, { children: t.map((o, n) => /* @__PURE__ */ e(
|
|
1773
|
+
zr,
|
|
1774
1774
|
{
|
|
1775
1775
|
separator: r,
|
|
1776
1776
|
labelWidth: i,
|
|
@@ -1787,10 +1787,10 @@ const Ar = (t, r) => {
|
|
|
1787
1787
|
labelWidth: n = 150,
|
|
1788
1788
|
bordered: l = !1
|
|
1789
1789
|
}) => {
|
|
1790
|
-
const
|
|
1791
|
-
() =>
|
|
1790
|
+
const u = he(
|
|
1791
|
+
() => Hr(o, t),
|
|
1792
1792
|
[o, t]
|
|
1793
|
-
), a =
|
|
1793
|
+
), a = u.length > 2, h = () => {
|
|
1794
1794
|
switch (r) {
|
|
1795
1795
|
case 1:
|
|
1796
1796
|
return "width-full";
|
|
@@ -1817,17 +1817,17 @@ const Ar = (t, r) => {
|
|
|
1817
1817
|
borderWidth: l ? "border" : void 0,
|
|
1818
1818
|
borderStyle: l ? "border-solid" : void 0,
|
|
1819
1819
|
borderColor: l ? "border-subtle" : void 0,
|
|
1820
|
-
children:
|
|
1820
|
+
children: u.map((d, g) => /* @__PURE__ */ e(
|
|
1821
1821
|
f,
|
|
1822
1822
|
{
|
|
1823
1823
|
flex: a ? void 0 : "1",
|
|
1824
1824
|
width: a ? h() : void 0,
|
|
1825
1825
|
marginBottom: a ? "lg" : void 0,
|
|
1826
1826
|
children: /* @__PURE__ */ e(
|
|
1827
|
-
|
|
1827
|
+
Ir,
|
|
1828
1828
|
{
|
|
1829
1829
|
labelWidth: n,
|
|
1830
|
-
fields:
|
|
1830
|
+
fields: d,
|
|
1831
1831
|
separator: i
|
|
1832
1832
|
}
|
|
1833
1833
|
)
|
|
@@ -1838,8 +1838,8 @@ const Ar = (t, r) => {
|
|
|
1838
1838
|
);
|
|
1839
1839
|
}
|
|
1840
1840
|
), Rr = ({ backButton: t }) => {
|
|
1841
|
-
const [r, i] = k(!1), o = (t == null ? void 0 : t.iconColor) ?? "var(--sa-text-subtle, #8c8f97)", n = (t == null ? void 0 : t.textColor) ?? "var(--sa-text-subtle, #8c8f97)", l = (t == null ? void 0 : t.hoverIconColor) ?? "var(--sa-text-subtle, #8c8f97)",
|
|
1842
|
-
return /* @__PURE__ */
|
|
1841
|
+
const [r, i] = k(!1), o = (t == null ? void 0 : t.iconColor) ?? "var(--sa-text-subtle, #8c8f97)", n = (t == null ? void 0 : t.textColor) ?? "var(--sa-text-subtle, #8c8f97)", l = (t == null ? void 0 : t.hoverIconColor) ?? "var(--sa-text-subtle, #8c8f97)", u = (t == null ? void 0 : t.hoverTextColor) ?? "var(--sa-text-primary, #292a2e)";
|
|
1842
|
+
return /* @__PURE__ */ s(
|
|
1843
1843
|
f,
|
|
1844
1844
|
{
|
|
1845
1845
|
direction: "row",
|
|
@@ -1865,7 +1865,7 @@ const Ar = (t, r) => {
|
|
|
1865
1865
|
{
|
|
1866
1866
|
variant: "sub-h3",
|
|
1867
1867
|
style: {
|
|
1868
|
-
color: r ?
|
|
1868
|
+
color: r ? u : n,
|
|
1869
1869
|
textDecoration: r ? "underline" : "none",
|
|
1870
1870
|
transition: "color 0.15s ease"
|
|
1871
1871
|
},
|
|
@@ -1882,21 +1882,21 @@ const Ar = (t, r) => {
|
|
|
1882
1882
|
children: o,
|
|
1883
1883
|
header: n = !0,
|
|
1884
1884
|
action: l,
|
|
1885
|
-
titleTagProps:
|
|
1885
|
+
titleTagProps: u,
|
|
1886
1886
|
containerProps: a,
|
|
1887
1887
|
headerProps: h
|
|
1888
1888
|
}) => {
|
|
1889
|
-
const
|
|
1889
|
+
const d = ne("lg"), g = mt(), m = Ve(), y = t == null ? void 0 : t.show, b = () => {
|
|
1890
1890
|
if (typeof (t == null ? void 0 : t.onClick) == "function") {
|
|
1891
1891
|
t.onClick();
|
|
1892
1892
|
return;
|
|
1893
1893
|
}
|
|
1894
1894
|
g(-1, { replace: !0 });
|
|
1895
|
-
},
|
|
1895
|
+
}, S = () => l ? st(l) ? l : /* @__PURE__ */ e(f, { direction: "row", gap: "lg", children: l.map(
|
|
1896
1896
|
({ title: T, icon: U, buttonProps: M, onClick: ae }, J) => !T && !U ? null : /* @__PURE__ */ e(
|
|
1897
1897
|
N,
|
|
1898
1898
|
{
|
|
1899
|
-
fullWidth: !
|
|
1899
|
+
fullWidth: !d,
|
|
1900
1900
|
iconLeft: U ? /* @__PURE__ */ e(D, { name: U, size: "md" }) : void 0,
|
|
1901
1901
|
onClick: ae,
|
|
1902
1902
|
...M,
|
|
@@ -1915,9 +1915,9 @@ const Ar = (t, r) => {
|
|
|
1915
1915
|
children: T
|
|
1916
1916
|
}
|
|
1917
1917
|
) }) : /* @__PURE__ */ e(f, { direction: "row", children: /* @__PURE__ */ e(Xe, { onClick: b, children: T }) });
|
|
1918
|
-
},
|
|
1919
|
-
const T = !!r, U =
|
|
1920
|
-
return !T && !U && !y ? null : /* @__PURE__ */
|
|
1918
|
+
}, I = () => {
|
|
1919
|
+
const T = !!r, U = st(l) ? !0 : Array.isArray(l) && l.length > 0;
|
|
1920
|
+
return !T && !U && !y ? null : /* @__PURE__ */ s(
|
|
1921
1921
|
f,
|
|
1922
1922
|
{
|
|
1923
1923
|
gap: "xs",
|
|
@@ -1926,19 +1926,19 @@ const Ar = (t, r) => {
|
|
|
1926
1926
|
...h,
|
|
1927
1927
|
children: [
|
|
1928
1928
|
y && C(),
|
|
1929
|
-
(T || U) && /* @__PURE__ */
|
|
1929
|
+
(T || U) && /* @__PURE__ */ s(
|
|
1930
1930
|
f,
|
|
1931
1931
|
{
|
|
1932
|
-
direction:
|
|
1932
|
+
direction: d ? "row" : "column",
|
|
1933
1933
|
gap: "lg",
|
|
1934
1934
|
justify: "space-between",
|
|
1935
1935
|
align: "center",
|
|
1936
1936
|
children: [
|
|
1937
|
-
T ? typeof r == "string" ? /* @__PURE__ */
|
|
1937
|
+
T ? typeof r == "string" ? /* @__PURE__ */ s(f, { direction: "row", gap: "lg", align: "center", children: [
|
|
1938
1938
|
/* @__PURE__ */ e(x, { variant: "h2", fontWeight: "semibold", fontFamily: "Poppins", children: r }),
|
|
1939
|
-
i && /* @__PURE__ */ e(Le, { border: !0, size: "lg", text: i, ...
|
|
1939
|
+
i && /* @__PURE__ */ e(Le, { border: !0, size: "lg", text: i, ...u })
|
|
1940
1940
|
] }) : r : null,
|
|
1941
|
-
|
|
1941
|
+
S()
|
|
1942
1942
|
]
|
|
1943
1943
|
}
|
|
1944
1944
|
)
|
|
@@ -1946,7 +1946,7 @@ const Ar = (t, r) => {
|
|
|
1946
1946
|
}
|
|
1947
1947
|
);
|
|
1948
1948
|
}, Z = () => o;
|
|
1949
|
-
return /* @__PURE__ */
|
|
1949
|
+
return /* @__PURE__ */ s(
|
|
1950
1950
|
f,
|
|
1951
1951
|
{
|
|
1952
1952
|
gap: "md",
|
|
@@ -1958,7 +1958,7 @@ const Ar = (t, r) => {
|
|
|
1958
1958
|
animation: "pageLayoutEnter 320ms cubic-bezier(0.16, 1, 0.3, 1) backwards"
|
|
1959
1959
|
},
|
|
1960
1960
|
children: [
|
|
1961
|
-
n &&
|
|
1961
|
+
n && I(),
|
|
1962
1962
|
Z()
|
|
1963
1963
|
]
|
|
1964
1964
|
},
|
|
@@ -1975,11 +1975,11 @@ const Ar = (t, r) => {
|
|
|
1975
1975
|
style: o,
|
|
1976
1976
|
children: n,
|
|
1977
1977
|
closeButton: l = Tr,
|
|
1978
|
-
width:
|
|
1978
|
+
width: u,
|
|
1979
1979
|
minWidth: a = "357px",
|
|
1980
1980
|
maxWidth: h = "357px"
|
|
1981
|
-
},
|
|
1982
|
-
const g = Rt(
|
|
1981
|
+
}, d) => {
|
|
1982
|
+
const g = Rt(u ?? a), m = Rt(u ?? h);
|
|
1983
1983
|
return /* @__PURE__ */ e(
|
|
1984
1984
|
lr,
|
|
1985
1985
|
{
|
|
@@ -1987,14 +1987,14 @@ const Ar = (t, r) => {
|
|
|
1987
1987
|
isShow: r,
|
|
1988
1988
|
position: "right",
|
|
1989
1989
|
onHide: t,
|
|
1990
|
-
ref:
|
|
1990
|
+
ref: d,
|
|
1991
1991
|
style: {
|
|
1992
1992
|
minWidth: g,
|
|
1993
1993
|
maxWidth: m,
|
|
1994
1994
|
...o
|
|
1995
1995
|
},
|
|
1996
|
-
children: /* @__PURE__ */
|
|
1997
|
-
l ? /* @__PURE__ */
|
|
1996
|
+
children: /* @__PURE__ */ s(f, { padding: "lg", children: [
|
|
1997
|
+
l ? /* @__PURE__ */ s(
|
|
1998
1998
|
f,
|
|
1999
1999
|
{
|
|
2000
2000
|
direction: "row",
|
|
@@ -2074,17 +2074,17 @@ const Ar = (t, r) => {
|
|
|
2074
2074
|
action: o,
|
|
2075
2075
|
header: n,
|
|
2076
2076
|
footer: l,
|
|
2077
|
-
actionContainer:
|
|
2077
|
+
actionContainer: u,
|
|
2078
2078
|
containerProps: a,
|
|
2079
2079
|
bodyProps: h,
|
|
2080
|
-
headerProps:
|
|
2080
|
+
headerProps: d = { borderBottom: !0 },
|
|
2081
2081
|
footerProps: g = { borderTop: !0 },
|
|
2082
2082
|
variantTag: m = "info"
|
|
2083
2083
|
}) => {
|
|
2084
|
-
const y = ne("lg"), b = () => i ? /* @__PURE__ */
|
|
2084
|
+
const y = ne("lg"), b = () => i ? /* @__PURE__ */ s(f, { direction: "row", gap: "sm", align: "center", children: [
|
|
2085
2085
|
/* @__PURE__ */ e(x, { fontWeight: "medium", children: r }),
|
|
2086
2086
|
/* @__PURE__ */ e(Le, { border: !0, text: i, variant: m })
|
|
2087
|
-
] }) : /* @__PURE__ */ e(x, { fontWeight: "medium", children: r }),
|
|
2087
|
+
] }) : /* @__PURE__ */ e(x, { fontWeight: "medium", children: r }), S = () => n || /* @__PURE__ */ s(
|
|
2088
2088
|
f,
|
|
2089
2089
|
{
|
|
2090
2090
|
direction: "row",
|
|
@@ -2097,14 +2097,14 @@ const Ar = (t, r) => {
|
|
|
2097
2097
|
f,
|
|
2098
2098
|
{
|
|
2099
2099
|
style: y ? { width: "100%", maxWidth: "19.313rem" } : { flex: 1 },
|
|
2100
|
-
...
|
|
2100
|
+
...u,
|
|
2101
2101
|
children: o ?? null
|
|
2102
2102
|
}
|
|
2103
2103
|
)
|
|
2104
2104
|
]
|
|
2105
2105
|
}
|
|
2106
2106
|
), C = !!(n || r || o);
|
|
2107
|
-
return /* @__PURE__ */
|
|
2107
|
+
return /* @__PURE__ */ s(
|
|
2108
2108
|
f,
|
|
2109
2109
|
{
|
|
2110
2110
|
bg: "white",
|
|
@@ -2119,7 +2119,7 @@ const Ar = (t, r) => {
|
|
|
2119
2119
|
...(a == null ? void 0 : a.style) ?? {}
|
|
2120
2120
|
},
|
|
2121
2121
|
children: [
|
|
2122
|
-
n !== null && C ? /* @__PURE__ */ e(tr, { ...
|
|
2122
|
+
n !== null && C ? /* @__PURE__ */ e(tr, { ...d, children: S() }) : null,
|
|
2123
2123
|
/* @__PURE__ */ e(_r, { ...h, children: t }),
|
|
2124
2124
|
l ? /* @__PURE__ */ e(rr, { ...g, children: l }) : null
|
|
2125
2125
|
]
|
|
@@ -2155,11 +2155,11 @@ const Ar = (t, r) => {
|
|
|
2155
2155
|
triggerStyle: o,
|
|
2156
2156
|
containerStyle: n,
|
|
2157
2157
|
position: l = "bottom-right",
|
|
2158
|
-
buttonProps:
|
|
2158
|
+
buttonProps: u,
|
|
2159
2159
|
iconProps: a,
|
|
2160
2160
|
variant: h = "default"
|
|
2161
2161
|
}) => {
|
|
2162
|
-
const
|
|
2162
|
+
const d = he(
|
|
2163
2163
|
() => ({
|
|
2164
2164
|
zIndex: 10,
|
|
2165
2165
|
width: "150px",
|
|
@@ -2167,9 +2167,9 @@ const Ar = (t, r) => {
|
|
|
2167
2167
|
}),
|
|
2168
2168
|
[n]
|
|
2169
2169
|
);
|
|
2170
|
-
return /* @__PURE__ */
|
|
2171
|
-
/* @__PURE__ */ e(Ge, { style: o, children: /* @__PURE__ */ e(N, { size: "sm", secondary: !0, ...
|
|
2172
|
-
/* @__PURE__ */ e(Zt, { style:
|
|
2170
|
+
return /* @__PURE__ */ s(jt, { position: l, style: i, children: [
|
|
2171
|
+
/* @__PURE__ */ e(Ge, { style: o, children: /* @__PURE__ */ e(N, { size: "sm", secondary: !0, ...u, children: /* @__PURE__ */ e(D, { name: t, ...a }) }) }),
|
|
2172
|
+
/* @__PURE__ */ e(Zt, { style: d, children: r.map((g, m) => h === "outline-button" ? /* @__PURE__ */ e($t, { children: /* @__PURE__ */ s(
|
|
2173
2173
|
N,
|
|
2174
2174
|
{
|
|
2175
2175
|
size: "sm",
|
|
@@ -2182,7 +2182,7 @@ const Ar = (t, r) => {
|
|
|
2182
2182
|
/* @__PURE__ */ e(x, { fontSize: "sm", color: "text", ...g.textProps, children: g.label })
|
|
2183
2183
|
]
|
|
2184
2184
|
}
|
|
2185
|
-
) }, g.id || m) : /* @__PURE__ */
|
|
2185
|
+
) }, g.id || m) : /* @__PURE__ */ s(
|
|
2186
2186
|
$r,
|
|
2187
2187
|
{
|
|
2188
2188
|
onClick: g.onClick,
|
|
@@ -2226,56 +2226,56 @@ const Ar = (t, r) => {
|
|
|
2226
2226
|
id: l,
|
|
2227
2227
|
hasId: !!l
|
|
2228
2228
|
};
|
|
2229
|
-
}, ni = (t) => JSON.stringify(t), oi = (t) => JSON.stringify(t), li = (t) => JSON.stringify(t), ci = (t) => JSON.stringify(t), ai = (t) => t,
|
|
2229
|
+
}, ni = (t) => JSON.stringify(t), oi = (t) => JSON.stringify(t), li = (t) => JSON.stringify(t), ci = (t) => JSON.stringify(t), ai = (t) => t, si = (t) => JSON.stringify(t), Vt = ({
|
|
2230
2230
|
value: t,
|
|
2231
2231
|
name: r,
|
|
2232
2232
|
type: i,
|
|
2233
2233
|
withSearchParam: o = !0,
|
|
2234
2234
|
setSearchParams: n,
|
|
2235
2235
|
searchQueries: l,
|
|
2236
|
-
dropdownSearchKey:
|
|
2236
|
+
dropdownSearchKey: u,
|
|
2237
2237
|
filterKey: a = "filter",
|
|
2238
2238
|
pageKey: h = "page"
|
|
2239
2239
|
}) => {
|
|
2240
2240
|
if (o) {
|
|
2241
|
-
let
|
|
2241
|
+
let d;
|
|
2242
2242
|
switch (i) {
|
|
2243
2243
|
case "search":
|
|
2244
|
-
|
|
2244
|
+
d = ai(t);
|
|
2245
2245
|
break;
|
|
2246
2246
|
case "dropdown":
|
|
2247
2247
|
case "dropdown-multiple":
|
|
2248
|
-
|
|
2248
|
+
d = ni(t);
|
|
2249
2249
|
break;
|
|
2250
2250
|
case "radio":
|
|
2251
|
-
|
|
2251
|
+
d = oi(t);
|
|
2252
2252
|
break;
|
|
2253
2253
|
case "date-range":
|
|
2254
|
-
|
|
2254
|
+
d = li(t);
|
|
2255
2255
|
break;
|
|
2256
2256
|
case "advanced-date-range":
|
|
2257
|
-
|
|
2257
|
+
d = si(t);
|
|
2258
2258
|
break;
|
|
2259
2259
|
case "date":
|
|
2260
|
-
|
|
2260
|
+
d = ci(t);
|
|
2261
2261
|
break;
|
|
2262
2262
|
default:
|
|
2263
|
-
|
|
2263
|
+
d = t;
|
|
2264
2264
|
break;
|
|
2265
2265
|
}
|
|
2266
|
-
if (typeof
|
|
2266
|
+
if (typeof d < "u") {
|
|
2267
2267
|
const m = {
|
|
2268
2268
|
...l[a] && typeof l[a] == "string" ? JSON.parse(l[a]) : void 0,
|
|
2269
|
-
[r]:
|
|
2269
|
+
[r]: d
|
|
2270
2270
|
}, y = { ...l };
|
|
2271
|
-
|
|
2271
|
+
u && typeof u == "string" && delete y[u], delete y[h];
|
|
2272
2272
|
const b = {
|
|
2273
2273
|
...y,
|
|
2274
2274
|
[a]: JSON.stringify(m)
|
|
2275
|
-
},
|
|
2275
|
+
}, S = new URLSearchParams(l).toString(), C = new URLSearchParams(
|
|
2276
2276
|
b
|
|
2277
2277
|
).toString();
|
|
2278
|
-
if (
|
|
2278
|
+
if (S === C)
|
|
2279
2279
|
return;
|
|
2280
2280
|
n(b);
|
|
2281
2281
|
}
|
|
@@ -2286,25 +2286,25 @@ const Ar = (t, r) => {
|
|
|
2286
2286
|
searchParams: i,
|
|
2287
2287
|
get: o
|
|
2288
2288
|
}) => {
|
|
2289
|
-
const n = i.get(r) || void 0, l = n && typeof n == "string" ? JSON.parse(n) : void 0,
|
|
2290
|
-
return o === "label" &&
|
|
2289
|
+
const n = i.get(r) || void 0, l = n && typeof n == "string" ? JSON.parse(n) : void 0, u = l ? l[t] : void 0;
|
|
2290
|
+
return o === "label" && u ? JSON.parse(u)[0].label : o === "value" && u ? JSON.parse(u)[0].value : u;
|
|
2291
2291
|
}, qn = ({
|
|
2292
2292
|
name: t,
|
|
2293
2293
|
filterKey: r = "filter",
|
|
2294
2294
|
searchParams: i,
|
|
2295
2295
|
get: o
|
|
2296
2296
|
}) => {
|
|
2297
|
-
const n = i.get(r) || void 0, l = n && typeof n == "string" ? JSON.parse(n) : void 0,
|
|
2298
|
-
return o === "label" &&
|
|
2297
|
+
const n = i.get(r) || void 0, l = n && typeof n == "string" ? JSON.parse(n) : void 0, u = l ? l[t] : void 0;
|
|
2298
|
+
return o === "label" && u ? JSON.parse(u).map((a) => a.label) : o === "value" && u ? JSON.parse(u).map((a) => a.value) : o === "array" && u ? JSON.parse(u) : u;
|
|
2299
2299
|
}, Un = ({
|
|
2300
2300
|
name: t,
|
|
2301
2301
|
filterKey: r = "filter",
|
|
2302
2302
|
searchParams: i,
|
|
2303
2303
|
get: o
|
|
2304
2304
|
}) => {
|
|
2305
|
-
const n = i.get(r) || void 0, l = n && typeof n == "string" ? JSON.parse(n) : void 0,
|
|
2306
|
-
return o === "id" &&
|
|
2307
|
-
},
|
|
2305
|
+
const n = i.get(r) || void 0, l = n && typeof n == "string" ? JSON.parse(n) : void 0, u = l ? l[t] : void 0;
|
|
2306
|
+
return o === "id" && u ? JSON.parse(u).id : o === "label" && u ? JSON.parse(u).label : o === "value" && u ? JSON.parse(u).value : u;
|
|
2307
|
+
}, di = (t, r, i) => {
|
|
2308
2308
|
const o = r.get(i || "filter") || void 0, n = o && typeof o == "string" ? JSON.parse(o) : void 0;
|
|
2309
2309
|
return n ? n[t] : void 0;
|
|
2310
2310
|
}, Jn = ({
|
|
@@ -2329,8 +2329,8 @@ const Ar = (t, r) => {
|
|
|
2329
2329
|
perPageKey: i = "perPage",
|
|
2330
2330
|
pageKey: o = "page"
|
|
2331
2331
|
}) => {
|
|
2332
|
-
const n = t.get(r) || void 0, l = t.get(i) || void 0,
|
|
2333
|
-
return !!n || !!l || !!
|
|
2332
|
+
const n = t.get(r) || void 0, l = t.get(i) || void 0, u = t.get(o) || void 0;
|
|
2333
|
+
return !!n || !!l || !!u;
|
|
2334
2334
|
}, ui = ({
|
|
2335
2335
|
isOpen: t,
|
|
2336
2336
|
onClose: r,
|
|
@@ -2338,32 +2338,32 @@ const Ar = (t, r) => {
|
|
|
2338
2338
|
pageKey: o,
|
|
2339
2339
|
filters: n
|
|
2340
2340
|
}) => {
|
|
2341
|
-
const { searchParams: l, setSearchParams:
|
|
2342
|
-
l.delete(i || "filter"),
|
|
2341
|
+
const { searchParams: l, setSearchParams: u, searchQueries: a } = xt(), [h, d] = k({}), g = () => {
|
|
2342
|
+
l.delete(i || "filter"), u(l);
|
|
2343
2343
|
}, m = (y, b) => {
|
|
2344
2344
|
switch (y.type) {
|
|
2345
2345
|
case "radio": {
|
|
2346
|
-
const { show:
|
|
2347
|
-
return
|
|
2346
|
+
const { show: S = !0 } = y;
|
|
2347
|
+
return S && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: y.title }) }, b);
|
|
2348
2348
|
}
|
|
2349
2349
|
case "dropdown": {
|
|
2350
|
-
const { show:
|
|
2351
|
-
return
|
|
2350
|
+
const { show: S = !0 } = y;
|
|
2351
|
+
return S && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: y.title }) }, b);
|
|
2352
2352
|
}
|
|
2353
2353
|
case "date-range":
|
|
2354
2354
|
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: y.title }) }, b);
|
|
2355
2355
|
case "date":
|
|
2356
2356
|
return /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: y.title }) }, b);
|
|
2357
2357
|
case "dropdown-multiple": {
|
|
2358
|
-
const { show:
|
|
2359
|
-
return
|
|
2358
|
+
const { show: S = !0 } = y;
|
|
2359
|
+
return S && /* @__PURE__ */ e(f, { children: /* @__PURE__ */ e(f, { children: y.title }) }, b);
|
|
2360
2360
|
}
|
|
2361
2361
|
default:
|
|
2362
2362
|
return null;
|
|
2363
2363
|
}
|
|
2364
2364
|
};
|
|
2365
|
-
return /* @__PURE__ */ e(Or, { onHide: r, show: t || !1, children: /* @__PURE__ */
|
|
2366
|
-
/* @__PURE__ */
|
|
2365
|
+
return /* @__PURE__ */ e(Or, { onHide: r, show: t || !1, children: /* @__PURE__ */ s(f, { direction: "column", gap: "md", children: [
|
|
2366
|
+
/* @__PURE__ */ s(_, { direction: "row", justify: "space-between", align: "center", children: [
|
|
2367
2367
|
/* @__PURE__ */ e(f, { children: "Filter" }),
|
|
2368
2368
|
/* @__PURE__ */ e(
|
|
2369
2369
|
f,
|
|
@@ -2383,23 +2383,23 @@ const Ar = (t, r) => {
|
|
|
2383
2383
|
searchHighlightPlaceholder: o,
|
|
2384
2384
|
extendedFilter: n,
|
|
2385
2385
|
showSearchFilter: l = !0,
|
|
2386
|
-
showStatusFilter:
|
|
2386
|
+
showStatusFilter: u = !0,
|
|
2387
2387
|
filterKey: a = "filter",
|
|
2388
2388
|
pageKey: h = "page",
|
|
2389
|
-
customWidthSearch:
|
|
2389
|
+
customWidthSearch: d,
|
|
2390
2390
|
handleOnReset: g,
|
|
2391
2391
|
filterConfigs: m,
|
|
2392
2392
|
buttonToggleProps: y,
|
|
2393
2393
|
position: b = "right",
|
|
2394
|
-
titleSearchLabel:
|
|
2394
|
+
titleSearchLabel: S = "Work Order",
|
|
2395
2395
|
withTitleLabels: C = !1
|
|
2396
2396
|
}) => {
|
|
2397
2397
|
const Z = (y == null ? void 0 : y.isShowLabel) ?? !0, [T, U] = k(!1), [M, ae] = k(0), J = () => {
|
|
2398
2398
|
ae((V) => V + 1);
|
|
2399
|
-
}, { searchParams:
|
|
2400
|
-
if (
|
|
2399
|
+
}, { searchParams: H, setSearchParams: P, getQueryParam: oe } = xt(), le = Pe(H.toString()), G = di(t, H, a) || "", [Q, K] = k(G), se = oe(a), X = !!(se && !(() => {
|
|
2400
|
+
if (se)
|
|
2401
2401
|
try {
|
|
2402
|
-
const V = JSON.parse(
|
|
2402
|
+
const V = JSON.parse(se);
|
|
2403
2403
|
return Object.keys(V).length === 1 && V[t] === "";
|
|
2404
2404
|
} catch (V) {
|
|
2405
2405
|
console.error("Filter parameter is not a valid JSON:", V);
|
|
@@ -2433,7 +2433,7 @@ const Ar = (t, r) => {
|
|
|
2433
2433
|
P,
|
|
2434
2434
|
a,
|
|
2435
2435
|
h
|
|
2436
|
-
]), /* @__PURE__ */
|
|
2436
|
+
]), /* @__PURE__ */ s(
|
|
2437
2437
|
_,
|
|
2438
2438
|
{
|
|
2439
2439
|
gap: "md",
|
|
@@ -2446,7 +2446,7 @@ const Ar = (t, r) => {
|
|
|
2446
2446
|
N,
|
|
2447
2447
|
{
|
|
2448
2448
|
onClick: () => {
|
|
2449
|
-
const V = new URLSearchParams(
|
|
2449
|
+
const V = new URLSearchParams(H);
|
|
2450
2450
|
V.delete(a), P(V), K(""), J(), g && g();
|
|
2451
2451
|
},
|
|
2452
2452
|
variant: "outline",
|
|
@@ -2454,7 +2454,7 @@ const Ar = (t, r) => {
|
|
|
2454
2454
|
children: /* @__PURE__ */ e(x, { color: "error", fontWeight: "semibold", children: "Reset" })
|
|
2455
2455
|
}
|
|
2456
2456
|
) }),
|
|
2457
|
-
n == null ? void 0 : n.map(({ minWidth: V, content: te, title: fe, onClickContainer: ge }, Be) => /* @__PURE__ */
|
|
2457
|
+
n == null ? void 0 : n.map(({ minWidth: V, content: te, title: fe, onClickContainer: ge }, Be) => /* @__PURE__ */ s(
|
|
2458
2458
|
f,
|
|
2459
2459
|
{
|
|
2460
2460
|
gap: "sm",
|
|
@@ -2480,7 +2480,7 @@ const Ar = (t, r) => {
|
|
|
2480
2480
|
size: "sm",
|
|
2481
2481
|
name: (y == null ? void 0 : y.icon) || "FilterHorizontal",
|
|
2482
2482
|
style: {
|
|
2483
|
-
color:
|
|
2483
|
+
color: se ? "var(--sa-background-brand, #04254f)" : "var(--sa-text-primary, #292a2e)"
|
|
2484
2484
|
}
|
|
2485
2485
|
}
|
|
2486
2486
|
),
|
|
@@ -2489,7 +2489,7 @@ const Ar = (t, r) => {
|
|
|
2489
2489
|
children: Z ? "Filter" : void 0
|
|
2490
2490
|
}
|
|
2491
2491
|
),
|
|
2492
|
-
|
|
2492
|
+
u && /* @__PURE__ */ s(
|
|
2493
2493
|
f,
|
|
2494
2494
|
{
|
|
2495
2495
|
gap: "sm",
|
|
@@ -2514,20 +2514,20 @@ const Ar = (t, r) => {
|
|
|
2514
2514
|
defaultValue: nt({
|
|
2515
2515
|
get: "value",
|
|
2516
2516
|
name: r,
|
|
2517
|
-
searchParams:
|
|
2517
|
+
searchParams: H,
|
|
2518
2518
|
filterKey: a
|
|
2519
2519
|
}) ? [
|
|
2520
2520
|
{
|
|
2521
2521
|
label: nt({
|
|
2522
2522
|
get: "value",
|
|
2523
2523
|
name: r,
|
|
2524
|
-
searchParams:
|
|
2524
|
+
searchParams: H,
|
|
2525
2525
|
filterKey: a
|
|
2526
2526
|
}) === "active" ? "Active" : "InActive",
|
|
2527
2527
|
value: nt({
|
|
2528
2528
|
get: "value",
|
|
2529
2529
|
name: r,
|
|
2530
|
-
searchParams:
|
|
2530
|
+
searchParams: H,
|
|
2531
2531
|
filterKey: a
|
|
2532
2532
|
})
|
|
2533
2533
|
}
|
|
@@ -2547,17 +2547,17 @@ const Ar = (t, r) => {
|
|
|
2547
2547
|
]
|
|
2548
2548
|
}
|
|
2549
2549
|
),
|
|
2550
|
-
l && /* @__PURE__ */
|
|
2550
|
+
l && /* @__PURE__ */ s(
|
|
2551
2551
|
f,
|
|
2552
2552
|
{
|
|
2553
2553
|
gap: "sm",
|
|
2554
2554
|
style: {
|
|
2555
|
-
width:
|
|
2555
|
+
width: d && R ? d : R ? "310px" : ""
|
|
2556
2556
|
},
|
|
2557
2557
|
children: [
|
|
2558
|
-
C && /* @__PURE__ */
|
|
2558
|
+
C && /* @__PURE__ */ s(pe.SubH3, { children: [
|
|
2559
2559
|
"Search for ",
|
|
2560
|
-
|
|
2560
|
+
S
|
|
2561
2561
|
] }),
|
|
2562
2562
|
/* @__PURE__ */ e(
|
|
2563
2563
|
gt,
|
|
@@ -2590,13 +2590,13 @@ const Ar = (t, r) => {
|
|
|
2590
2590
|
const o = ie(null), [n, l] = k("100vh");
|
|
2591
2591
|
return $(() => {
|
|
2592
2592
|
if (i) return;
|
|
2593
|
-
const
|
|
2593
|
+
const u = () => {
|
|
2594
2594
|
if (o.current) {
|
|
2595
2595
|
const a = o.current.getBoundingClientRect().top;
|
|
2596
2596
|
l(`calc(100vh - ${a}px)`);
|
|
2597
2597
|
}
|
|
2598
2598
|
};
|
|
2599
|
-
return
|
|
2599
|
+
return u(), window.addEventListener("resize", u), () => window.removeEventListener("resize", u);
|
|
2600
2600
|
}, [i]), /* @__PURE__ */ e(
|
|
2601
2601
|
f,
|
|
2602
2602
|
{
|
|
@@ -2622,7 +2622,7 @@ const Ar = (t, r) => {
|
|
|
2622
2622
|
advanceFilter: n,
|
|
2623
2623
|
showFilter: l = !0
|
|
2624
2624
|
}) => {
|
|
2625
|
-
const
|
|
2625
|
+
const u = ne("md"), a = l ? /* @__PURE__ */ e(hi, { ...n }) : null;
|
|
2626
2626
|
return /* @__PURE__ */ e(
|
|
2627
2627
|
f,
|
|
2628
2628
|
{
|
|
@@ -2639,35 +2639,35 @@ const Ar = (t, r) => {
|
|
|
2639
2639
|
flexShrink: 0,
|
|
2640
2640
|
position: "relative",
|
|
2641
2641
|
zIndex: 10,
|
|
2642
|
-
flexDirection:
|
|
2642
|
+
flexDirection: u ? "row" : "column-reverse",
|
|
2643
2643
|
gap: "16px"
|
|
2644
2644
|
},
|
|
2645
|
-
children: o ? o({ filter: a }) : /* @__PURE__ */
|
|
2646
|
-
/* @__PURE__ */
|
|
2645
|
+
children: o ? o({ filter: a }) : /* @__PURE__ */ s(q, { children: [
|
|
2646
|
+
/* @__PURE__ */ s(f, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flex: 1, minWidth: 0 }, children: [
|
|
2647
2647
|
a,
|
|
2648
2648
|
i
|
|
2649
2649
|
] }),
|
|
2650
|
-
/* @__PURE__ */
|
|
2650
|
+
/* @__PURE__ */ s(f, { style: { display: "flex", gap: "8px", flexDirection: "row", alignItems: "center", flexShrink: 0 }, children: [
|
|
2651
2651
|
r,
|
|
2652
|
-
t ?
|
|
2652
|
+
t ? st(t) ? t : /* @__PURE__ */ e(
|
|
2653
2653
|
f,
|
|
2654
2654
|
{
|
|
2655
2655
|
style: {
|
|
2656
2656
|
display: "flex",
|
|
2657
|
-
flexDirection:
|
|
2657
|
+
flexDirection: u ? "row" : "column",
|
|
2658
2658
|
gap: "8px",
|
|
2659
|
-
width:
|
|
2659
|
+
width: u ? "auto" : "100%",
|
|
2660
2660
|
textWrap: "nowrap"
|
|
2661
2661
|
},
|
|
2662
2662
|
children: t.map(
|
|
2663
|
-
({ title:
|
|
2663
|
+
({ title: d, icon: g, buttonProps: m, onClick: y }, b) => !d && !g ? null : /* @__PURE__ */ e(
|
|
2664
2664
|
N,
|
|
2665
2665
|
{
|
|
2666
|
-
fullWidth: !
|
|
2666
|
+
fullWidth: !u,
|
|
2667
2667
|
iconLeft: g ? /* @__PURE__ */ e(D, { name: g }) : void 0,
|
|
2668
2668
|
onClick: y,
|
|
2669
2669
|
...m,
|
|
2670
|
-
children:
|
|
2670
|
+
children: d
|
|
2671
2671
|
},
|
|
2672
2672
|
`action-${b}`
|
|
2673
2673
|
)
|
|
@@ -2682,7 +2682,7 @@ const Ar = (t, r) => {
|
|
|
2682
2682
|
totalData: t,
|
|
2683
2683
|
withMarginBottom: r = !0,
|
|
2684
2684
|
withMarginTop: i = !0
|
|
2685
|
-
}) => /* @__PURE__ */
|
|
2685
|
+
}) => /* @__PURE__ */ s(
|
|
2686
2686
|
f,
|
|
2687
2687
|
{
|
|
2688
2688
|
style: {
|
|
@@ -2694,7 +2694,7 @@ const Ar = (t, r) => {
|
|
|
2694
2694
|
marginTop: i ? "16px" : void 0
|
|
2695
2695
|
},
|
|
2696
2696
|
children: [
|
|
2697
|
-
/* @__PURE__ */
|
|
2697
|
+
/* @__PURE__ */ s(
|
|
2698
2698
|
pe.Body1,
|
|
2699
2699
|
{
|
|
2700
2700
|
props: {
|
|
@@ -2717,12 +2717,12 @@ const Ar = (t, r) => {
|
|
|
2717
2717
|
showPagination: n = !0,
|
|
2718
2718
|
totalData: l
|
|
2719
2719
|
}) => {
|
|
2720
|
-
const { searchQueries:
|
|
2721
|
-
a({ ...
|
|
2722
|
-
}, m = (
|
|
2720
|
+
const { searchQueries: u, setSearchParams: a, searchParams: h } = xt(), d = h.get(i), g = (S) => {
|
|
2721
|
+
a({ ...u, [r]: String(S) });
|
|
2722
|
+
}, m = (S) => {
|
|
2723
2723
|
a({
|
|
2724
|
-
...
|
|
2725
|
-
[i]:
|
|
2724
|
+
...u,
|
|
2725
|
+
[i]: S,
|
|
2726
2726
|
[r]: "1"
|
|
2727
2727
|
});
|
|
2728
2728
|
}, y = (t == null ? void 0 : t.rangeStart) ?? (((t == null ? void 0 : t.currentPage) || 0) > 1 ? (((t == null ? void 0 : t.currentPage) || 0) - 1) * ((t == null ? void 0 : t.perPage) || 0) + 1 : 1), b = (t == null ? void 0 : t.rangeEnd) ?? ((t == null ? void 0 : t.totalCurrentPage) !== (t == null ? void 0 : t.perPage) ? t == null ? void 0 : t.totalData : ((t == null ? void 0 : t.currentPage) || 1) * ((t == null ? void 0 : t.totalCurrentPage) || 0));
|
|
@@ -2742,8 +2742,8 @@ const Ar = (t, r) => {
|
|
|
2742
2742
|
borderTop: "1px solid var(--sa-border-subtle, #0b120e24)",
|
|
2743
2743
|
flexShrink: 0
|
|
2744
2744
|
},
|
|
2745
|
-
children: n ? /* @__PURE__ */
|
|
2746
|
-
/* @__PURE__ */
|
|
2745
|
+
children: n ? /* @__PURE__ */ s(q, { children: [
|
|
2746
|
+
/* @__PURE__ */ s(f, { style: { display: "flex", flexDirection: "row", gap: "8px", alignItems: "center", textWrap: "nowrap" }, children: [
|
|
2747
2747
|
/* @__PURE__ */ e(x, { children: "Rows Per Page: " }),
|
|
2748
2748
|
/* @__PURE__ */ e(
|
|
2749
2749
|
ft,
|
|
@@ -2755,17 +2755,17 @@ const Ar = (t, r) => {
|
|
|
2755
2755
|
{ label: "50", value: "50" },
|
|
2756
2756
|
{ label: "100", value: "100" }
|
|
2757
2757
|
],
|
|
2758
|
-
onChange: (
|
|
2759
|
-
m(
|
|
2758
|
+
onChange: (S) => {
|
|
2759
|
+
m(S[0].value);
|
|
2760
2760
|
},
|
|
2761
|
-
value:
|
|
2762
|
-
defaultValue:
|
|
2761
|
+
value: d ? [{ label: `${d} per row`, value: d }] : [{ label: `${o} per row`, value: `${o}` }],
|
|
2762
|
+
defaultValue: d ? [{ label: `${d} per row`, value: d }] : [{ label: `${o} per row`, value: `${o}` }]
|
|
2763
2763
|
}
|
|
2764
2764
|
),
|
|
2765
2765
|
/* @__PURE__ */ e(x, { children: `${y}-${b} of ${(t == null ? void 0 : t.totalData) || 0}` })
|
|
2766
2766
|
] }),
|
|
2767
2767
|
/* @__PURE__ */ e(
|
|
2768
|
-
|
|
2768
|
+
sr,
|
|
2769
2769
|
{
|
|
2770
2770
|
currentPage: t != null && t.currentPage ? Number(t == null ? void 0 : t.currentPage) : 1,
|
|
2771
2771
|
totalCount: t != null && t.totalPage ? Number(t == null ? void 0 : t.totalPage) : 1,
|
|
@@ -2783,32 +2783,32 @@ const Ar = (t, r) => {
|
|
|
2783
2783
|
}
|
|
2784
2784
|
);
|
|
2785
2785
|
}, pi = ({ filter: t, columnTitle: r }) => {
|
|
2786
|
-
const [i, o] = k(!1), n = ie(null), l = ie(null),
|
|
2786
|
+
const [i, o] = k(!1), n = ie(null), l = ie(null), u = ie(null), [a, h] = k(""), [d, g] = k({ top: 0, left: 0 }), m = t.selectedValues, y = he(() => a ? t.options.filter(
|
|
2787
2787
|
(C) => C.label.toLowerCase().includes(a.toLowerCase())
|
|
2788
2788
|
) : t.options, [t.options, a]);
|
|
2789
2789
|
$(() => {
|
|
2790
2790
|
if (i && l.current) {
|
|
2791
|
-
const C = l.current.getBoundingClientRect(),
|
|
2791
|
+
const C = l.current.getBoundingClientRect(), I = 280, Z = {
|
|
2792
2792
|
top: C.bottom + 8
|
|
2793
2793
|
};
|
|
2794
|
-
t.position === "left" || C.left +
|
|
2794
|
+
t.position === "left" || C.left + I > window.innerWidth ? Z.right = window.innerWidth - C.right : Z.left = C.left, g(Z);
|
|
2795
2795
|
}
|
|
2796
2796
|
}, [i, t.position]), $(() => {
|
|
2797
|
-
i &&
|
|
2797
|
+
i && u.current ? setTimeout(() => {
|
|
2798
2798
|
var C;
|
|
2799
|
-
return (C =
|
|
2799
|
+
return (C = u.current) == null ? void 0 : C.focus();
|
|
2800
2800
|
}, 50) : h("");
|
|
2801
2801
|
}, [i]), $(() => {
|
|
2802
|
-
const C = (
|
|
2803
|
-
n.current && !n.current.contains(
|
|
2802
|
+
const C = (I) => {
|
|
2803
|
+
n.current && !n.current.contains(I.target) && l.current && !l.current.contains(I.target) && o(!1);
|
|
2804
2804
|
};
|
|
2805
2805
|
return i && document.addEventListener("mousedown", C), () => document.removeEventListener("mousedown", C);
|
|
2806
2806
|
}, [i]);
|
|
2807
2807
|
const b = (C) => {
|
|
2808
|
-
const
|
|
2809
|
-
t.onFilterChange(
|
|
2810
|
-
},
|
|
2811
|
-
return /* @__PURE__ */
|
|
2808
|
+
const I = m.includes(C) ? m.filter((Z) => Z !== C) : [...m, C];
|
|
2809
|
+
t.onFilterChange(I);
|
|
2810
|
+
}, S = () => t.onFilterChange([]);
|
|
2811
|
+
return /* @__PURE__ */ s(f, { style: { position: "relative" }, children: [
|
|
2812
2812
|
/* @__PURE__ */ e(
|
|
2813
2813
|
f,
|
|
2814
2814
|
{
|
|
@@ -2820,8 +2820,8 @@ const Ar = (t, r) => {
|
|
|
2820
2820
|
cursor: "pointer"
|
|
2821
2821
|
},
|
|
2822
2822
|
onClick: (C) => {
|
|
2823
|
-
var
|
|
2824
|
-
C.stopPropagation(), i || (
|
|
2823
|
+
var I;
|
|
2824
|
+
C.stopPropagation(), i || (I = t.onOpen) == null || I.call(t), o((Z) => !Z);
|
|
2825
2825
|
},
|
|
2826
2826
|
children: /* @__PURE__ */ e(
|
|
2827
2827
|
D,
|
|
@@ -2835,14 +2835,14 @@ const Ar = (t, r) => {
|
|
|
2835
2835
|
)
|
|
2836
2836
|
}
|
|
2837
2837
|
),
|
|
2838
|
-
i && /* @__PURE__ */
|
|
2838
|
+
i && /* @__PURE__ */ s(
|
|
2839
2839
|
f,
|
|
2840
2840
|
{
|
|
2841
2841
|
ref: n,
|
|
2842
2842
|
style: {
|
|
2843
2843
|
position: "fixed",
|
|
2844
|
-
top: `${
|
|
2845
|
-
...
|
|
2844
|
+
top: `${d.top}px`,
|
|
2845
|
+
...d.left !== void 0 ? { left: `${d.left}px` } : { right: `${d.right}px` },
|
|
2846
2846
|
backgroundColor: "white",
|
|
2847
2847
|
borderRadius: "4px",
|
|
2848
2848
|
minWidth: "280px",
|
|
@@ -2854,7 +2854,7 @@ const Ar = (t, r) => {
|
|
|
2854
2854
|
border: "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
2855
2855
|
},
|
|
2856
2856
|
children: [
|
|
2857
|
-
/* @__PURE__ */
|
|
2857
|
+
/* @__PURE__ */ s(
|
|
2858
2858
|
f,
|
|
2859
2859
|
{
|
|
2860
2860
|
style: {
|
|
@@ -2869,7 +2869,7 @@ const Ar = (t, r) => {
|
|
|
2869
2869
|
borderBottom: "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
2870
2870
|
},
|
|
2871
2871
|
children: [
|
|
2872
|
-
/* @__PURE__ */
|
|
2872
|
+
/* @__PURE__ */ s(x, { fontSize: "sm", fontWeight: "semibold", color: "gray-700", children: [
|
|
2873
2873
|
"Filter ",
|
|
2874
2874
|
r
|
|
2875
2875
|
] }),
|
|
@@ -2880,7 +2880,7 @@ const Ar = (t, r) => {
|
|
|
2880
2880
|
color: "primary",
|
|
2881
2881
|
fontWeight: "semibold",
|
|
2882
2882
|
onClick: (C) => {
|
|
2883
|
-
C.stopPropagation(),
|
|
2883
|
+
C.stopPropagation(), S();
|
|
2884
2884
|
},
|
|
2885
2885
|
children: "CLEAR"
|
|
2886
2886
|
}
|
|
@@ -2900,7 +2900,7 @@ const Ar = (t, r) => {
|
|
|
2900
2900
|
children: /* @__PURE__ */ e(
|
|
2901
2901
|
gt,
|
|
2902
2902
|
{
|
|
2903
|
-
ref:
|
|
2903
|
+
ref: u,
|
|
2904
2904
|
placeholder: `Search ${r.toLowerCase()}...`,
|
|
2905
2905
|
leftIcon: /* @__PURE__ */ e(D, { name: "Search", size: "sm" }),
|
|
2906
2906
|
value: a,
|
|
@@ -2920,7 +2920,7 @@ const Ar = (t, r) => {
|
|
|
2920
2920
|
paddingLeft: "8px",
|
|
2921
2921
|
paddingRight: "8px"
|
|
2922
2922
|
},
|
|
2923
|
-
children: t.isLoadingOptions ? /* @__PURE__ */
|
|
2923
|
+
children: t.isLoadingOptions ? /* @__PURE__ */ s(
|
|
2924
2924
|
f,
|
|
2925
2925
|
{
|
|
2926
2926
|
style: {
|
|
@@ -2954,7 +2954,7 @@ const Ar = (t, r) => {
|
|
|
2954
2954
|
)
|
|
2955
2955
|
]
|
|
2956
2956
|
}
|
|
2957
|
-
) : y.length > 0 ? /* @__PURE__ */ e(f, { style: { gap: "2px", paddingTop: "4px", paddingBottom: "4px" }, children: y.map((C) => /* @__PURE__ */
|
|
2957
|
+
) : y.length > 0 ? /* @__PURE__ */ e(f, { style: { gap: "2px", paddingTop: "4px", paddingBottom: "4px" }, children: y.map((C) => /* @__PURE__ */ s(
|
|
2958
2958
|
f,
|
|
2959
2959
|
{
|
|
2960
2960
|
style: {
|
|
@@ -2971,14 +2971,14 @@ const Ar = (t, r) => {
|
|
|
2971
2971
|
transition: "all 0.2s ease",
|
|
2972
2972
|
backgroundColor: m.includes(C.value) ? "var(--sa-color-brand-50, #e6edf6)" : "transparent"
|
|
2973
2973
|
},
|
|
2974
|
-
onClick: (
|
|
2975
|
-
|
|
2974
|
+
onClick: (I) => {
|
|
2975
|
+
I.stopPropagation(), b(C.value);
|
|
2976
2976
|
},
|
|
2977
|
-
onMouseEnter: (
|
|
2978
|
-
m.includes(C.value) || (
|
|
2977
|
+
onMouseEnter: (I) => {
|
|
2978
|
+
m.includes(C.value) || (I.currentTarget.style.backgroundColor = "var(--sa-background-primary, #ffffff)"), I.currentTarget.style.transform = "translateX(2px)";
|
|
2979
2979
|
},
|
|
2980
|
-
onMouseLeave: (
|
|
2981
|
-
|
|
2980
|
+
onMouseLeave: (I) => {
|
|
2981
|
+
I.currentTarget.style.backgroundColor = m.includes(C.value) ? "var(--sa-color-brand-50, #e6edf6)" : "transparent", I.currentTarget.style.transform = "translateX(0)";
|
|
2982
2982
|
},
|
|
2983
2983
|
children: [
|
|
2984
2984
|
/* @__PURE__ */ e(
|
|
@@ -3001,7 +3001,7 @@ const Ar = (t, r) => {
|
|
|
3001
3001
|
]
|
|
3002
3002
|
},
|
|
3003
3003
|
C.value
|
|
3004
|
-
)) }) : /* @__PURE__ */
|
|
3004
|
+
)) }) : /* @__PURE__ */ s(
|
|
3005
3005
|
f,
|
|
3006
3006
|
{
|
|
3007
3007
|
style: {
|
|
@@ -3047,7 +3047,7 @@ const Ar = (t, r) => {
|
|
|
3047
3047
|
backgroundColor: "var(--sa-color-brand-50, #e6edf6)",
|
|
3048
3048
|
marginTop: "auto"
|
|
3049
3049
|
},
|
|
3050
|
-
children: /* @__PURE__ */
|
|
3050
|
+
children: /* @__PURE__ */ s(f, { style: { display: "flex", flexDirection: "row", alignItems: "center", gap: "4px" }, children: [
|
|
3051
3051
|
/* @__PURE__ */ e(
|
|
3052
3052
|
f,
|
|
3053
3053
|
{
|
|
@@ -3062,7 +3062,7 @@ const Ar = (t, r) => {
|
|
|
3062
3062
|
children: m.length
|
|
3063
3063
|
}
|
|
3064
3064
|
),
|
|
3065
|
-
/* @__PURE__ */
|
|
3065
|
+
/* @__PURE__ */ s(x, { fontSize: "xs", color: "primary", fontWeight: "medium", children: [
|
|
3066
3066
|
"item",
|
|
3067
3067
|
m.length > 1 ? "s" : "",
|
|
3068
3068
|
" selected"
|
|
@@ -3078,7 +3078,7 @@ const Ar = (t, r) => {
|
|
|
3078
3078
|
direction: t
|
|
3079
3079
|
}) => {
|
|
3080
3080
|
const r = "var(--sa-text-primary, #292a2e)", i = "var(--sa-text-subtle, #8c8f97)";
|
|
3081
|
-
return /* @__PURE__ */
|
|
3081
|
+
return /* @__PURE__ */ s(
|
|
3082
3082
|
"span",
|
|
3083
3083
|
{
|
|
3084
3084
|
style: {
|
|
@@ -3114,7 +3114,7 @@ const Ar = (t, r) => {
|
|
|
3114
3114
|
]
|
|
3115
3115
|
}
|
|
3116
3116
|
);
|
|
3117
|
-
}, Ci = ({ frozen: t }) => /* @__PURE__ */
|
|
3117
|
+
}, Ci = ({ frozen: t }) => /* @__PURE__ */ s(
|
|
3118
3118
|
"svg",
|
|
3119
3119
|
{
|
|
3120
3120
|
width: "11",
|
|
@@ -3137,24 +3137,24 @@ const Ar = (t, r) => {
|
|
|
3137
3137
|
handleUpdate: o,
|
|
3138
3138
|
handleDelete: n,
|
|
3139
3139
|
isLoading: l,
|
|
3140
|
-
visibleHandleDelete:
|
|
3140
|
+
visibleHandleDelete: u,
|
|
3141
3141
|
visibleHandleUpdate: a,
|
|
3142
3142
|
visibleHandleDetail: h,
|
|
3143
|
-
showHeadBorder:
|
|
3143
|
+
showHeadBorder: d = !1,
|
|
3144
3144
|
scrollParentRef: g,
|
|
3145
3145
|
frozenCount: m = 0,
|
|
3146
3146
|
onFrozenCountChange: y,
|
|
3147
3147
|
customActions: b,
|
|
3148
|
-
actionsOrder:
|
|
3148
|
+
actionsOrder: S = ["detail", "update", "delete", "custom"],
|
|
3149
3149
|
customEmptyState: C,
|
|
3150
|
-
enableColumnResize:
|
|
3150
|
+
enableColumnResize: I = !1,
|
|
3151
3151
|
defaultColumnWidths: Z,
|
|
3152
3152
|
onColumnWidthsChange: T,
|
|
3153
3153
|
defaultMinColumnWidth: U = 60,
|
|
3154
3154
|
sort: M,
|
|
3155
3155
|
defaultSort: ae,
|
|
3156
3156
|
onSortChange: J,
|
|
3157
|
-
showActionDivider:
|
|
3157
|
+
showActionDivider: H = !1
|
|
3158
3158
|
}) => {
|
|
3159
3159
|
const P = M !== void 0, [oe, le] = k(
|
|
3160
3160
|
ae ?? null
|
|
@@ -3162,79 +3162,79 @@ const Ar = (t, r) => {
|
|
|
3162
3162
|
if (v.sortKey) return v.sortKey;
|
|
3163
3163
|
if (typeof v.accessor == "string") return v.accessor;
|
|
3164
3164
|
}, K = (v) => {
|
|
3165
|
-
const
|
|
3166
|
-
if (!
|
|
3165
|
+
const F = Q(v);
|
|
3166
|
+
if (!F) return;
|
|
3167
3167
|
let w;
|
|
3168
|
-
!G || G.key !==
|
|
3169
|
-
}, ee = [i, o, n].filter((v) => v !== void 0).length, X = !!b, R = !!i || !!o || !!n || X, V = "var(--sa-border-subtle, #0b120e24)", te = `1px solid ${V}`, fe = `inset 1px 0 0 ${V}`, ge = `inset -1px 0 0 ${V}`, Be = ee === 3 ? X ? "178px" : "140px" : ee === 2 ? X ? "140px" : "102px" : ee === 1 ? X ? "112px" : "74px" : X ? "74px" : "", Te = (v,
|
|
3170
|
-
if (!
|
|
3171
|
-
if (typeof
|
|
3172
|
-
if (typeof
|
|
3168
|
+
!G || G.key !== F ? w = { key: F, direction: "asc" } : G.direction === "asc" ? w = { key: F, direction: "desc" } : w = null, P || le(w), J == null || J(w);
|
|
3169
|
+
}, ee = [i, o, n].filter((v) => v !== void 0).length, X = !!b, R = !!i || !!o || !!n || X, V = "var(--sa-border-subtle, #0b120e24)", te = `1px solid ${V}`, fe = `inset 1px 0 0 ${V}`, ge = `inset -1px 0 0 ${V}`, Be = ee === 3 ? X ? "178px" : "140px" : ee === 2 ? X ? "140px" : "102px" : ee === 1 ? X ? "112px" : "74px" : X ? "74px" : "", Te = (v, F) => {
|
|
3170
|
+
if (!F) return v;
|
|
3171
|
+
if (typeof F == "function") return F(v);
|
|
3172
|
+
if (typeof F == "string") return v[F];
|
|
3173
3173
|
}, [et, Ne] = k(!1);
|
|
3174
3174
|
$(() => {
|
|
3175
3175
|
if (!(g != null && g.current)) return;
|
|
3176
3176
|
const v = g.current;
|
|
3177
3177
|
Ne(v.scrollHeight > v.clientHeight);
|
|
3178
3178
|
}, [r, g]);
|
|
3179
|
-
const
|
|
3179
|
+
const Ae = ie(null), [de, Oe] = k([]), [He, Fe] = k(
|
|
3180
3180
|
() => Z ?? {}
|
|
3181
3181
|
), Ee = ie(null);
|
|
3182
3182
|
at(() => {
|
|
3183
|
-
if (!m || !
|
|
3183
|
+
if (!m || !Ae.current) {
|
|
3184
3184
|
Oe([]);
|
|
3185
3185
|
return;
|
|
3186
3186
|
}
|
|
3187
3187
|
const v = Array.from(
|
|
3188
|
-
|
|
3189
|
-
),
|
|
3188
|
+
Ae.current.querySelectorAll("thead tr th")
|
|
3189
|
+
), F = [];
|
|
3190
3190
|
let w = 0;
|
|
3191
|
-
v.forEach((B,
|
|
3192
|
-
|
|
3193
|
-
}), Oe(
|
|
3194
|
-
}, [m, t, r,
|
|
3191
|
+
v.forEach((B, z) => {
|
|
3192
|
+
F[z] = w, z < m && (w += B.offsetWidth);
|
|
3193
|
+
}), Oe(F);
|
|
3194
|
+
}, [m, t, r, He]);
|
|
3195
3195
|
const _e = (v) => {
|
|
3196
3196
|
y && y(v < m ? v : v + 1);
|
|
3197
|
-
}, p = (v,
|
|
3198
|
-
const w =
|
|
3197
|
+
}, p = (v, F) => {
|
|
3198
|
+
const w = He[v];
|
|
3199
3199
|
if (w !== void 0) {
|
|
3200
3200
|
const B = `${w}px`;
|
|
3201
3201
|
return { width: B, minWidth: B, maxWidth: B };
|
|
3202
3202
|
}
|
|
3203
|
-
return
|
|
3204
|
-
},
|
|
3203
|
+
return F ? { width: F } : {};
|
|
3204
|
+
}, E = (v) => I && (v.resizable ?? !0), L = (v, F) => {
|
|
3205
3205
|
v.preventDefault(), v.stopPropagation();
|
|
3206
3206
|
const w = v.currentTarget.closest("th");
|
|
3207
3207
|
if (!w) return;
|
|
3208
3208
|
const B = Math.round(w.getBoundingClientRect().width);
|
|
3209
|
-
Ee.current = { colIndex:
|
|
3210
|
-
const
|
|
3209
|
+
Ee.current = { colIndex: F, startX: v.clientX, startWidth: B };
|
|
3210
|
+
const z = document.body.style.userSelect, ue = document.body.style.cursor;
|
|
3211
3211
|
document.body.style.userSelect = "none", document.body.style.cursor = "col-resize";
|
|
3212
3212
|
const xe = (be) => {
|
|
3213
3213
|
var Me;
|
|
3214
3214
|
const Ce = Ee.current;
|
|
3215
3215
|
if (!Ce) return;
|
|
3216
|
-
const je = ((Me = t[Ce.colIndex]) == null ? void 0 : Me.minWidth) ?? U,
|
|
3216
|
+
const je = ((Me = t[Ce.colIndex]) == null ? void 0 : Me.minWidth) ?? U, ze = Math.max(je, Ce.startWidth + (be.clientX - Ce.startX));
|
|
3217
3217
|
Fe(
|
|
3218
|
-
(tt) => tt[Ce.colIndex] ===
|
|
3218
|
+
(tt) => tt[Ce.colIndex] === ze ? tt : { ...tt, [Ce.colIndex]: ze }
|
|
3219
3219
|
);
|
|
3220
3220
|
}, we = () => {
|
|
3221
|
-
document.removeEventListener("mousemove", xe), document.removeEventListener("mouseup", we), document.body.style.userSelect =
|
|
3221
|
+
document.removeEventListener("mousemove", xe), document.removeEventListener("mouseup", we), document.body.style.userSelect = z, document.body.style.cursor = ue, Ee.current = null, T && Fe((be) => (T(be), be));
|
|
3222
3222
|
};
|
|
3223
3223
|
document.addEventListener("mousemove", xe), document.addEventListener("mouseup", we);
|
|
3224
3224
|
};
|
|
3225
|
-
return /* @__PURE__ */ e("div", { ref:
|
|
3225
|
+
return /* @__PURE__ */ e("div", { ref: Ae, children: /* @__PURE__ */ s(Gt, { fullWidth: !0, children: [
|
|
3226
3226
|
/* @__PURE__ */ e(
|
|
3227
|
-
|
|
3227
|
+
dr,
|
|
3228
3228
|
{
|
|
3229
3229
|
style: {
|
|
3230
3230
|
height: "40px",
|
|
3231
3231
|
whiteSpace: "nowrap"
|
|
3232
3232
|
},
|
|
3233
|
-
children: /* @__PURE__ */
|
|
3234
|
-
t.map((v,
|
|
3235
|
-
var je,
|
|
3236
|
-
const w = m > 0 &&
|
|
3237
|
-
return /* @__PURE__ */
|
|
3233
|
+
children: /* @__PURE__ */ s(Re, { children: [
|
|
3234
|
+
t.map((v, F) => {
|
|
3235
|
+
var je, ze;
|
|
3236
|
+
const w = m > 0 && F < m, B = de[F] ?? 0, z = E(v), xe = F === t.length - 1 && R && H, we = Q(v), be = !!v.sortable && !!we, Ce = be && (G == null ? void 0 : G.key) === we ? G.direction : null;
|
|
3237
|
+
return /* @__PURE__ */ s(
|
|
3238
3238
|
St,
|
|
3239
3239
|
{
|
|
3240
3240
|
style: {
|
|
@@ -3242,16 +3242,16 @@ const Ar = (t, r) => {
|
|
|
3242
3242
|
top: 0,
|
|
3243
3243
|
left: w ? B : void 0,
|
|
3244
3244
|
zIndex: w ? 4 : 2,
|
|
3245
|
-
paddingLeft:
|
|
3246
|
-
borderRight:
|
|
3247
|
-
borderBottom:
|
|
3248
|
-
boxShadow:
|
|
3245
|
+
paddingLeft: F === 0 ? "12px" : "",
|
|
3246
|
+
borderRight: d && !xe && !w ? te : void 0,
|
|
3247
|
+
borderBottom: d ? te : void 0,
|
|
3248
|
+
boxShadow: d && w ? ge : void 0,
|
|
3249
3249
|
backgroundColor: "var(--sa-background-primary-inverse, #f8f8f8)",
|
|
3250
3250
|
textAlign: v.textAlign === "text-right" ? "right" : v.textAlign === "text-center" ? "center" : "left",
|
|
3251
|
-
...p(
|
|
3251
|
+
...p(F, v.width)
|
|
3252
3252
|
},
|
|
3253
3253
|
children: [
|
|
3254
|
-
/* @__PURE__ */
|
|
3254
|
+
/* @__PURE__ */ s(
|
|
3255
3255
|
"div",
|
|
3256
3256
|
{
|
|
3257
3257
|
style: {
|
|
@@ -3262,7 +3262,7 @@ const Ar = (t, r) => {
|
|
|
3262
3262
|
minWidth: 0
|
|
3263
3263
|
},
|
|
3264
3264
|
children: [
|
|
3265
|
-
be ? /* @__PURE__ */
|
|
3265
|
+
be ? /* @__PURE__ */ s(
|
|
3266
3266
|
"button",
|
|
3267
3267
|
{
|
|
3268
3268
|
type: "button",
|
|
@@ -3310,7 +3310,7 @@ const Ar = (t, r) => {
|
|
|
3310
3310
|
textOverflow: "ellipsis",
|
|
3311
3311
|
whiteSpace: "nowrap"
|
|
3312
3312
|
},
|
|
3313
|
-
children: v.title || ((
|
|
3313
|
+
children: v.title || ((ze = v.accessor) == null ? void 0 : ze.toString())
|
|
3314
3314
|
}
|
|
3315
3315
|
),
|
|
3316
3316
|
v.filter && /* @__PURE__ */ e(
|
|
@@ -3323,7 +3323,7 @@ const Ar = (t, r) => {
|
|
|
3323
3323
|
y && /* @__PURE__ */ e(
|
|
3324
3324
|
"button",
|
|
3325
3325
|
{
|
|
3326
|
-
onClick: () => _e(
|
|
3326
|
+
onClick: () => _e(F),
|
|
3327
3327
|
title: w ? "Unfreeze column" : "Freeze column",
|
|
3328
3328
|
style: {
|
|
3329
3329
|
background: "none",
|
|
@@ -3343,10 +3343,10 @@ const Ar = (t, r) => {
|
|
|
3343
3343
|
]
|
|
3344
3344
|
}
|
|
3345
3345
|
),
|
|
3346
|
-
|
|
3346
|
+
z && /* @__PURE__ */ e(
|
|
3347
3347
|
"div",
|
|
3348
3348
|
{
|
|
3349
|
-
onMouseDown: (Me) => L(Me,
|
|
3349
|
+
onMouseDown: (Me) => L(Me, F),
|
|
3350
3350
|
onClick: (Me) => Me.stopPropagation(),
|
|
3351
3351
|
role: "separator",
|
|
3352
3352
|
"aria-orientation": "vertical",
|
|
@@ -3366,7 +3366,7 @@ const Ar = (t, r) => {
|
|
|
3366
3366
|
)
|
|
3367
3367
|
]
|
|
3368
3368
|
},
|
|
3369
|
-
`table-head-${
|
|
3369
|
+
`table-head-${F}`
|
|
3370
3370
|
);
|
|
3371
3371
|
}),
|
|
3372
3372
|
R ? /* @__PURE__ */ e(
|
|
@@ -3378,43 +3378,43 @@ const Ar = (t, r) => {
|
|
|
3378
3378
|
top: 0,
|
|
3379
3379
|
right: 0,
|
|
3380
3380
|
zIndex: 3,
|
|
3381
|
-
borderBottom:
|
|
3382
|
-
boxShadow:
|
|
3381
|
+
borderBottom: d ? te : void 0,
|
|
3382
|
+
boxShadow: d && H ? fe : void 0
|
|
3383
3383
|
}
|
|
3384
3384
|
}
|
|
3385
3385
|
) : null
|
|
3386
3386
|
] })
|
|
3387
3387
|
}
|
|
3388
3388
|
),
|
|
3389
|
-
/* @__PURE__ */ e(ur, { children: l ? /* @__PURE__ */ e(Re, { children: /* @__PURE__ */ e(Se, { colSpan: t.length + 1, children: /* @__PURE__ */
|
|
3390
|
-
/* @__PURE__ */ e(
|
|
3391
|
-
/* @__PURE__ */ e(
|
|
3392
|
-
/* @__PURE__ */ e(
|
|
3393
|
-
/* @__PURE__ */ e(
|
|
3394
|
-
/* @__PURE__ */ e(
|
|
3395
|
-
] }) }) }) : !(r != null && r.length) && C ? /* @__PURE__ */ e(Re, { children: /* @__PURE__ */ e(Se, { colSpan: t.length + 1, children: C }) }) : r == null ? void 0 : r.map((v,
|
|
3389
|
+
/* @__PURE__ */ e(ur, { children: l ? /* @__PURE__ */ e(Re, { children: /* @__PURE__ */ e(Se, { colSpan: t.length + 1, children: /* @__PURE__ */ s(f, { style: { gap: "16px" }, children: [
|
|
3390
|
+
/* @__PURE__ */ e(Ie, { variant: "list" }),
|
|
3391
|
+
/* @__PURE__ */ e(Ie, { variant: "list" }),
|
|
3392
|
+
/* @__PURE__ */ e(Ie, { variant: "list" }),
|
|
3393
|
+
/* @__PURE__ */ e(Ie, { variant: "list" }),
|
|
3394
|
+
/* @__PURE__ */ e(Ie, { variant: "list" })
|
|
3395
|
+
] }) }) }) : !(r != null && r.length) && C ? /* @__PURE__ */ e(Re, { children: /* @__PURE__ */ e(Se, { colSpan: t.length + 1, children: C }) }) : r == null ? void 0 : r.map((v, F) => /* @__PURE__ */ s(
|
|
3396
3396
|
Re,
|
|
3397
3397
|
{
|
|
3398
3398
|
style: {
|
|
3399
3399
|
transition: "background-color 0.3s ease",
|
|
3400
3400
|
padding: 0,
|
|
3401
|
-
borderBottom:
|
|
3401
|
+
borderBottom: F === r.length - 1 && et ? void 0 : "1px solid var(--sa-border-subtle, #0b120e24)"
|
|
3402
3402
|
},
|
|
3403
3403
|
onMouseEnter: (w) => {
|
|
3404
3404
|
const B = w.currentTarget;
|
|
3405
|
-
B.style.backgroundColor = Tt, Array.from(B.querySelectorAll("td")).forEach((
|
|
3406
|
-
|
|
3405
|
+
B.style.backgroundColor = Tt, Array.from(B.querySelectorAll("td")).forEach((z) => {
|
|
3406
|
+
z.style.position === "sticky" && (z.style.backgroundColor = Tt);
|
|
3407
3407
|
});
|
|
3408
3408
|
},
|
|
3409
3409
|
onMouseLeave: (w) => {
|
|
3410
3410
|
const B = w.currentTarget;
|
|
3411
|
-
B.style.backgroundColor = "", Array.from(B.querySelectorAll("td")).forEach((
|
|
3412
|
-
|
|
3411
|
+
B.style.backgroundColor = "", Array.from(B.querySelectorAll("td")).forEach((z) => {
|
|
3412
|
+
z.style.position === "sticky" && (z.style.backgroundColor = ot);
|
|
3413
3413
|
});
|
|
3414
3414
|
},
|
|
3415
3415
|
children: [
|
|
3416
3416
|
t.map((w, B) => {
|
|
3417
|
-
const
|
|
3417
|
+
const z = w.render ? w.render(v, F, r) : Te(v, w.accessor), ue = m > 0 && B < m, xe = de[B] ?? 0, we = He[B] !== void 0, be = ue && B === m - 1;
|
|
3418
3418
|
return /* @__PURE__ */ e(
|
|
3419
3419
|
Se,
|
|
3420
3420
|
{
|
|
@@ -3433,7 +3433,7 @@ const Ar = (t, r) => {
|
|
|
3433
3433
|
textAlign: w.textAlign === "text-right" ? "right" : w.textAlign === "text-center" ? "center" : "left",
|
|
3434
3434
|
...p(B, w.width)
|
|
3435
3435
|
},
|
|
3436
|
-
children: typeof
|
|
3436
|
+
children: typeof z == "string" ? /* @__PURE__ */ e(
|
|
3437
3437
|
x,
|
|
3438
3438
|
{
|
|
3439
3439
|
style: {
|
|
@@ -3442,11 +3442,11 @@ const Ar = (t, r) => {
|
|
|
3442
3442
|
textOverflow: "ellipsis",
|
|
3443
3443
|
textAlign: w.textAlign === "text-right" ? "right" : w.textAlign === "text-center" ? "center" : "left"
|
|
3444
3444
|
},
|
|
3445
|
-
children:
|
|
3445
|
+
children: z
|
|
3446
3446
|
}
|
|
3447
|
-
) :
|
|
3447
|
+
) : z
|
|
3448
3448
|
},
|
|
3449
|
-
`row-${
|
|
3449
|
+
`row-${F}-col-${B}`
|
|
3450
3450
|
);
|
|
3451
3451
|
}),
|
|
3452
3452
|
R ? /* @__PURE__ */ e(Se, { style: {
|
|
@@ -3455,10 +3455,10 @@ const Ar = (t, r) => {
|
|
|
3455
3455
|
right: 0,
|
|
3456
3456
|
zIndex: 1,
|
|
3457
3457
|
backgroundColor: ot,
|
|
3458
|
-
boxShadow:
|
|
3458
|
+
boxShadow: H ? fe : void 0,
|
|
3459
3459
|
transition: "background-color 0.3s ease"
|
|
3460
|
-
}, children: /* @__PURE__ */ e(_, { direction: "row", align: "center", justify: "center", gap: "sm", children:
|
|
3461
|
-
const B =
|
|
3460
|
+
}, children: /* @__PURE__ */ e(_, { direction: "row", align: "center", justify: "center", gap: "sm", children: S.map((w) => {
|
|
3461
|
+
const B = F === r.length - 1 ? "top" : "bottom";
|
|
3462
3462
|
return w === "detail" && i && (h == null ? void 0 : h(v)) !== !1 ? /* @__PURE__ */ e(me, { label: "Detail", position: B, children: /* @__PURE__ */ e(
|
|
3463
3463
|
N,
|
|
3464
3464
|
{
|
|
@@ -3477,7 +3477,7 @@ const Ar = (t, r) => {
|
|
|
3477
3477
|
onClick: () => o(v),
|
|
3478
3478
|
iconLeft: /* @__PURE__ */ e(D, { name: "Edit1", size: "sm", style: { color: "var(--sa-text-subtle, #8c8f97)" } })
|
|
3479
3479
|
}
|
|
3480
|
-
) }, "update") : w === "delete" && n && (
|
|
3480
|
+
) }, "update") : w === "delete" && n && (u == null ? void 0 : u(v)) !== !1 ? /* @__PURE__ */ e(me, { label: "Delete", position: B, children: /* @__PURE__ */ e(
|
|
3481
3481
|
N,
|
|
3482
3482
|
{
|
|
3483
3483
|
size: "xs",
|
|
@@ -3490,7 +3490,7 @@ const Ar = (t, r) => {
|
|
|
3490
3490
|
}) }) }) : null
|
|
3491
3491
|
]
|
|
3492
3492
|
},
|
|
3493
|
-
`${v}${
|
|
3493
|
+
`${v}${F}`
|
|
3494
3494
|
)) })
|
|
3495
3495
|
] }) });
|
|
3496
3496
|
}, bi = ({
|
|
@@ -3500,12 +3500,12 @@ const Ar = (t, r) => {
|
|
|
3500
3500
|
footerProps: o
|
|
3501
3501
|
}) => {
|
|
3502
3502
|
var m;
|
|
3503
|
-
const n = ie(null), [l,
|
|
3503
|
+
const n = ie(null), [l, u] = k(
|
|
3504
3504
|
(r == null ? void 0 : r.defaultFrozenCount) ?? 0
|
|
3505
|
-
), a = (i == null ? void 0 : i.show) ?? !0, h = ie(null),
|
|
3506
|
-
typeof
|
|
3507
|
-
const g = (o == null ? void 0 : o.showFooter) ?? (
|
|
3508
|
-
return /* @__PURE__ */
|
|
3505
|
+
), a = (i == null ? void 0 : i.show) ?? !0, h = ie(null), d = (m = r == null ? void 0 : r.pagination) == null ? void 0 : m.totalData;
|
|
3506
|
+
typeof d == "number" && (h.current = d);
|
|
3507
|
+
const g = (o == null ? void 0 : o.showFooter) ?? (d === void 0 ? h.current !== 0 : d !== 0);
|
|
3508
|
+
return /* @__PURE__ */ s(fi, { ...t, children: [
|
|
3509
3509
|
a && /* @__PURE__ */ e(gi, { ...i }),
|
|
3510
3510
|
/* @__PURE__ */ e(
|
|
3511
3511
|
f,
|
|
@@ -3522,7 +3522,7 @@ const Ar = (t, r) => {
|
|
|
3522
3522
|
...r,
|
|
3523
3523
|
scrollParentRef: n,
|
|
3524
3524
|
frozenCount: r != null && r.enableFreezeColumns ? l : 0,
|
|
3525
|
-
onFrozenCountChange: r != null && r.enableFreezeColumns ?
|
|
3525
|
+
onFrozenCountChange: r != null && r.enableFreezeColumns ? u : void 0
|
|
3526
3526
|
}
|
|
3527
3527
|
) : null
|
|
3528
3528
|
}
|
|
@@ -3571,9 +3571,9 @@ const Yn = Di(bi), Ct = ({
|
|
|
3571
3571
|
fullWidth: o = !1,
|
|
3572
3572
|
...n
|
|
3573
3573
|
}) => {
|
|
3574
|
-
var a, h,
|
|
3575
|
-
const l = n.hideMessageError || !1,
|
|
3576
|
-
return /* @__PURE__ */
|
|
3574
|
+
var a, h, d;
|
|
3575
|
+
const l = n.hideMessageError || !1, u = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
3576
|
+
return /* @__PURE__ */ s(
|
|
3577
3577
|
f,
|
|
3578
3578
|
{
|
|
3579
3579
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -3584,11 +3584,11 @@ const Yn = Di(bi), Ct = ({
|
|
|
3584
3584
|
O,
|
|
3585
3585
|
{
|
|
3586
3586
|
condition: !!n.inputProps.required,
|
|
3587
|
-
fallback: /* @__PURE__ */
|
|
3587
|
+
fallback: /* @__PURE__ */ s(
|
|
3588
3588
|
f,
|
|
3589
3589
|
{
|
|
3590
3590
|
direction: "column",
|
|
3591
|
-
customMaxWidth:
|
|
3591
|
+
customMaxWidth: u,
|
|
3592
3592
|
fullWidth: o,
|
|
3593
3593
|
children: [
|
|
3594
3594
|
/* @__PURE__ */ e(j, { children: n.title }),
|
|
@@ -3596,21 +3596,21 @@ const Yn = Di(bi), Ct = ({
|
|
|
3596
3596
|
]
|
|
3597
3597
|
}
|
|
3598
3598
|
),
|
|
3599
|
-
children: /* @__PURE__ */
|
|
3599
|
+
children: /* @__PURE__ */ s(
|
|
3600
3600
|
f,
|
|
3601
3601
|
{
|
|
3602
3602
|
direction: "column",
|
|
3603
|
-
customMaxWidth:
|
|
3603
|
+
customMaxWidth: u,
|
|
3604
3604
|
fullWidth: o,
|
|
3605
3605
|
children: [
|
|
3606
|
-
/* @__PURE__ */
|
|
3606
|
+
/* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
3607
3607
|
/* @__PURE__ */ e(j, { fontSize: t, children: n.title }),
|
|
3608
3608
|
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
3609
3609
|
/* @__PURE__ */ e(O, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
3610
3610
|
me,
|
|
3611
3611
|
{
|
|
3612
3612
|
label: (h = n.tooltip) == null ? void 0 : h.label,
|
|
3613
|
-
arrowPosition: (
|
|
3613
|
+
arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
|
|
3614
3614
|
...n.tooltip,
|
|
3615
3615
|
children: /* @__PURE__ */ e(
|
|
3616
3616
|
D,
|
|
@@ -3632,7 +3632,7 @@ const Yn = Di(bi), Ct = ({
|
|
|
3632
3632
|
)
|
|
3633
3633
|
}
|
|
3634
3634
|
),
|
|
3635
|
-
/* @__PURE__ */
|
|
3635
|
+
/* @__PURE__ */ s(f, { gap: "xs", fullWidth: n.inputProps.fullWidth || !1, children: [
|
|
3636
3636
|
/* @__PURE__ */ e(
|
|
3637
3637
|
gt,
|
|
3638
3638
|
{
|
|
@@ -3656,9 +3656,9 @@ const Yn = Di(bi), Ct = ({
|
|
|
3656
3656
|
fullWidth: o = !1,
|
|
3657
3657
|
...n
|
|
3658
3658
|
}) => {
|
|
3659
|
-
var a, h,
|
|
3660
|
-
const l = n.hideMessageError || !1,
|
|
3661
|
-
return /* @__PURE__ */
|
|
3659
|
+
var a, h, d;
|
|
3660
|
+
const l = n.hideMessageError || !1, u = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
3661
|
+
return /* @__PURE__ */ s(
|
|
3662
3662
|
f,
|
|
3663
3663
|
{
|
|
3664
3664
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -3669,11 +3669,11 @@ const Yn = Di(bi), Ct = ({
|
|
|
3669
3669
|
O,
|
|
3670
3670
|
{
|
|
3671
3671
|
condition: !!n.inputProps.required,
|
|
3672
|
-
fallback: /* @__PURE__ */
|
|
3672
|
+
fallback: /* @__PURE__ */ s(
|
|
3673
3673
|
f,
|
|
3674
3674
|
{
|
|
3675
3675
|
direction: "column",
|
|
3676
|
-
customMaxWidth:
|
|
3676
|
+
customMaxWidth: u,
|
|
3677
3677
|
fullWidth: o,
|
|
3678
3678
|
children: [
|
|
3679
3679
|
/* @__PURE__ */ e(j, { children: n.title }),
|
|
@@ -3681,21 +3681,21 @@ const Yn = Di(bi), Ct = ({
|
|
|
3681
3681
|
]
|
|
3682
3682
|
}
|
|
3683
3683
|
),
|
|
3684
|
-
children: /* @__PURE__ */
|
|
3684
|
+
children: /* @__PURE__ */ s(
|
|
3685
3685
|
f,
|
|
3686
3686
|
{
|
|
3687
3687
|
direction: "column",
|
|
3688
|
-
customMaxWidth:
|
|
3688
|
+
customMaxWidth: u,
|
|
3689
3689
|
fullWidth: o,
|
|
3690
3690
|
children: [
|
|
3691
|
-
/* @__PURE__ */
|
|
3691
|
+
/* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
3692
3692
|
/* @__PURE__ */ e(j, { fontSize: t, children: n.title }),
|
|
3693
3693
|
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
3694
3694
|
/* @__PURE__ */ e(O, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
3695
3695
|
me,
|
|
3696
3696
|
{
|
|
3697
3697
|
label: (h = n.tooltip) == null ? void 0 : h.label,
|
|
3698
|
-
arrowPosition: (
|
|
3698
|
+
arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
|
|
3699
3699
|
...n.tooltip,
|
|
3700
3700
|
children: /* @__PURE__ */ e(
|
|
3701
3701
|
D,
|
|
@@ -3717,7 +3717,7 @@ const Yn = Di(bi), Ct = ({
|
|
|
3717
3717
|
)
|
|
3718
3718
|
}
|
|
3719
3719
|
),
|
|
3720
|
-
/* @__PURE__ */
|
|
3720
|
+
/* @__PURE__ */ s(f, { gap: "xs", fullWidth: n.inputProps.fullWidth || !1, children: [
|
|
3721
3721
|
/* @__PURE__ */ e(
|
|
3722
3722
|
f,
|
|
3723
3723
|
{
|
|
@@ -3748,10 +3748,10 @@ const Yn = Di(bi), Ct = ({
|
|
|
3748
3748
|
h.preventDefault(), h.stopPropagation(), h.dataTransfer && t.handleOnFileChange(h.dataTransfer.files.item(0));
|
|
3749
3749
|
}, l = (h) => {
|
|
3750
3750
|
h.preventDefault(), i(!0);
|
|
3751
|
-
},
|
|
3751
|
+
}, u = (h) => {
|
|
3752
3752
|
h.preventDefault(), i(!1);
|
|
3753
3753
|
};
|
|
3754
|
-
return /* @__PURE__ */
|
|
3754
|
+
return /* @__PURE__ */ s(
|
|
3755
3755
|
f,
|
|
3756
3756
|
{
|
|
3757
3757
|
width: "width-full",
|
|
@@ -3763,7 +3763,7 @@ const Yn = Di(bi), Ct = ({
|
|
|
3763
3763
|
onDragOver: o,
|
|
3764
3764
|
onDrop: n,
|
|
3765
3765
|
onDragEnter: l,
|
|
3766
|
-
onDragLeave:
|
|
3766
|
+
onDragLeave: u,
|
|
3767
3767
|
paddingBlock: "md",
|
|
3768
3768
|
borderRadius: "rounded-md",
|
|
3769
3769
|
style: {
|
|
@@ -3781,8 +3781,8 @@ const Yn = Di(bi), Ct = ({
|
|
|
3781
3781
|
}
|
|
3782
3782
|
}
|
|
3783
3783
|
),
|
|
3784
|
-
/* @__PURE__ */
|
|
3785
|
-
/* @__PURE__ */
|
|
3784
|
+
/* @__PURE__ */ s(_, { direction: "column", gap: "xs", children: [
|
|
3785
|
+
/* @__PURE__ */ s(_, { direction: "row", gap: "xs", children: [
|
|
3786
3786
|
/* @__PURE__ */ e(
|
|
3787
3787
|
x,
|
|
3788
3788
|
{
|
|
@@ -3966,7 +3966,7 @@ const mo = (t) => {
|
|
|
3966
3966
|
});
|
|
3967
3967
|
}
|
|
3968
3968
|
};
|
|
3969
|
-
function
|
|
3969
|
+
function Ai(t) {
|
|
3970
3970
|
const r = t.toLowerCase();
|
|
3971
3971
|
if (["kb", "mb", "gb"].find((l) => r.endsWith(l)))
|
|
3972
3972
|
return t;
|
|
@@ -3975,13 +3975,13 @@ function zi(t) {
|
|
|
3975
3975
|
throw new Error("Invalid size format");
|
|
3976
3976
|
return n >= 1e6 ? `${(n / 1e6).toFixed(2)}MB` : n >= 1e3 ? `${(n / 1e3).toFixed(2)}KB` : `${n}B`;
|
|
3977
3977
|
}
|
|
3978
|
-
function
|
|
3978
|
+
function Hi(t) {
|
|
3979
3979
|
const r = t.split("/");
|
|
3980
3980
|
return r[r.length - 1];
|
|
3981
3981
|
}
|
|
3982
|
-
const
|
|
3982
|
+
const zi = (t) => {
|
|
3983
3983
|
var r, i;
|
|
3984
|
-
return /* @__PURE__ */
|
|
3984
|
+
return /* @__PURE__ */ s(
|
|
3985
3985
|
f,
|
|
3986
3986
|
{
|
|
3987
3987
|
width: "width-full",
|
|
@@ -4000,7 +4000,7 @@ const Ii = (t) => {
|
|
|
4000
4000
|
cursor: "pointer"
|
|
4001
4001
|
},
|
|
4002
4002
|
children: [
|
|
4003
|
-
/* @__PURE__ */
|
|
4003
|
+
/* @__PURE__ */ s(_, { direction: "row", align: "center", gap: "sm", style: { flex: 1, minWidth: 0 }, children: [
|
|
4004
4004
|
/* @__PURE__ */ e(
|
|
4005
4005
|
D,
|
|
4006
4006
|
{
|
|
@@ -4014,7 +4014,7 @@ const Ii = (t) => {
|
|
|
4014
4014
|
}
|
|
4015
4015
|
}
|
|
4016
4016
|
),
|
|
4017
|
-
/* @__PURE__ */
|
|
4017
|
+
/* @__PURE__ */ s(_, { direction: "column", style: { minWidth: 0, flex: 1 }, children: [
|
|
4018
4018
|
/* @__PURE__ */ e(
|
|
4019
4019
|
x,
|
|
4020
4020
|
{
|
|
@@ -4024,15 +4024,15 @@ const Ii = (t) => {
|
|
|
4024
4024
|
whiteSpace: "nowrap",
|
|
4025
4025
|
overflow: "hidden"
|
|
4026
4026
|
},
|
|
4027
|
-
children: t.defaultFile ?
|
|
4027
|
+
children: t.defaultFile ? Hi(t.defaultFile.url) : (r = t.fileSelected) == null ? void 0 : r.name
|
|
4028
4028
|
}
|
|
4029
4029
|
),
|
|
4030
|
-
t.defaultFile ? (t.defaultFile.size || t.defaultFile.date) && /* @__PURE__ */
|
|
4030
|
+
t.defaultFile ? (t.defaultFile.size || t.defaultFile.date) && /* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4031
4031
|
t.defaultFile.size && /* @__PURE__ */ e(x, { fontSize: "sm", fontWeight: "medium", children: t.defaultFile.size }),
|
|
4032
4032
|
t.defaultFile.size && t.defaultFile.date && /* @__PURE__ */ e(D, { name: "Dot", size: "xs" }),
|
|
4033
4033
|
t.defaultFile.date && /* @__PURE__ */ e(x, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: t.defaultFile.date })
|
|
4034
|
-
] }) : /* @__PURE__ */
|
|
4035
|
-
/* @__PURE__ */ e(x, { fontSize: "sm", fontWeight: "medium", children:
|
|
4034
|
+
] }) : /* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4035
|
+
/* @__PURE__ */ e(x, { fontSize: "sm", fontWeight: "medium", children: Ai(((i = t.fileSelected) == null ? void 0 : i.size.toString()) || "100000") }),
|
|
4036
4036
|
/* @__PURE__ */ e(D, { name: "Dot", size: "xs" }),
|
|
4037
4037
|
/* @__PURE__ */ e(x, { fontSize: "sm", fontWeight: "medium", style: { textWrap: "nowrap" }, children: Ei(/* @__PURE__ */ new Date()) })
|
|
4038
4038
|
] })
|
|
@@ -4054,20 +4054,20 @@ const Ii = (t) => {
|
|
|
4054
4054
|
]
|
|
4055
4055
|
}
|
|
4056
4056
|
);
|
|
4057
|
-
},
|
|
4057
|
+
}, Ii = ({
|
|
4058
4058
|
status: t = "default",
|
|
4059
4059
|
labelPosition: r = "outside-top",
|
|
4060
4060
|
...i
|
|
4061
4061
|
}) => {
|
|
4062
|
-
var
|
|
4062
|
+
var y;
|
|
4063
4063
|
const o = ie(null), n = () => {
|
|
4064
4064
|
if (i.defaultFile) {
|
|
4065
4065
|
window.open(i.defaultFile.url);
|
|
4066
4066
|
return;
|
|
4067
4067
|
}
|
|
4068
4068
|
o.current && o.current.click();
|
|
4069
|
-
}, l = ne("md"),
|
|
4070
|
-
/* @__PURE__ */ e(x, { fontSize: "
|
|
4069
|
+
}, l = ne("md"), u = t === "error" || typeof i.errorMessage == "string" && !!i.errorMessage, a = i.label ? /* @__PURE__ */ s(_, { direction: "row", align: "center", gap: "xs", children: [
|
|
4070
|
+
/* @__PURE__ */ e(x, { style: { fontSize: "14px", fontWeight: 500, color: "var(--sa-text-primary)" }, children: i.label }),
|
|
4071
4071
|
i.optional && /* @__PURE__ */ e("span", { style: {
|
|
4072
4072
|
background: "var(--sa-background-neutral)",
|
|
4073
4073
|
border: "1px solid var(--sa-border-subtle)",
|
|
@@ -4080,25 +4080,24 @@ const Ii = (t) => {
|
|
|
4080
4080
|
display: "inline-flex",
|
|
4081
4081
|
alignItems: "center"
|
|
4082
4082
|
}, children: "Optional" }),
|
|
4083
|
-
i.required && /* @__PURE__ */ e(
|
|
4084
|
-
] }) : null, h = /* @__PURE__ */ d(q, { children: [
|
|
4085
|
-
i.
|
|
4086
|
-
i.
|
|
4087
|
-
i.
|
|
4088
|
-
|
|
4089
|
-
] }), u = /* @__PURE__ */ e(
|
|
4083
|
+
i.required && /* @__PURE__ */ e("span", { style: { fontSize: "14px", fontWeight: 500, color: "var(--sa-text-error)" }, children: "*" })
|
|
4084
|
+
] }) : null, h = i.description ? /* @__PURE__ */ e(x, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: i.description }) : null, d = /* @__PURE__ */ s(q, { children: [
|
|
4085
|
+
i.helperText && /* @__PURE__ */ e(x, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-subtlest, #6b6e76)", lineHeight: "18px" }, children: i.helperText }),
|
|
4086
|
+
i.errorText && t === "error" && /* @__PURE__ */ e(x, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-error, #a4133c)", lineHeight: "18px" }, children: i.errorText }),
|
|
4087
|
+
i.errorMessage && !i.errorText && /* @__PURE__ */ e(x, { style: { fontSize: "12px", fontWeight: 400, color: "var(--sa-text-error, #a4133c)", lineHeight: "18px" }, children: i.errorMessage })
|
|
4088
|
+
] }), g = /* @__PURE__ */ e(
|
|
4090
4089
|
"input",
|
|
4091
4090
|
{
|
|
4092
4091
|
type: "file",
|
|
4093
4092
|
style: { display: "none" },
|
|
4094
4093
|
ref: o,
|
|
4095
|
-
onChange: (
|
|
4096
|
-
var
|
|
4097
|
-
return i.handleOnChangeFile(((
|
|
4094
|
+
onChange: (b) => {
|
|
4095
|
+
var S;
|
|
4096
|
+
return i.handleOnChangeFile(((S = b.target.files) == null ? void 0 : S.item(0)) || null);
|
|
4098
4097
|
},
|
|
4099
|
-
accept: (
|
|
4098
|
+
accept: (y = i.fileSupportOption) == null ? void 0 : y.map((b) => "." + (b == null ? void 0 : b.toLowerCase())).join(", ")
|
|
4100
4099
|
}
|
|
4101
|
-
),
|
|
4100
|
+
), m = /* @__PURE__ */ s(
|
|
4102
4101
|
f,
|
|
4103
4102
|
{
|
|
4104
4103
|
fullWidth: !0,
|
|
@@ -4111,9 +4110,9 @@ const Ii = (t) => {
|
|
|
4111
4110
|
gap: "md",
|
|
4112
4111
|
...i.containerProps,
|
|
4113
4112
|
children: [
|
|
4114
|
-
|
|
4113
|
+
g,
|
|
4115
4114
|
(i.fileSelected || i.defaultFile) && /* @__PURE__ */ e(
|
|
4116
|
-
|
|
4115
|
+
zi,
|
|
4117
4116
|
{
|
|
4118
4117
|
fileSelected: i.fileSelected,
|
|
4119
4118
|
defaultFile: i.defaultFile,
|
|
@@ -4126,8 +4125,8 @@ const Ii = (t) => {
|
|
|
4126
4125
|
{
|
|
4127
4126
|
fileSupports: i.fileSupportOption,
|
|
4128
4127
|
isDesktop: l,
|
|
4129
|
-
errorMessage:
|
|
4130
|
-
status:
|
|
4128
|
+
errorMessage: u ? i.errorText || i.errorMessage || " " : void 0,
|
|
4129
|
+
status: u ? "error" : "default",
|
|
4131
4130
|
handleOnClick: n,
|
|
4132
4131
|
handleOnFileChange: i.handleOnChangeFile
|
|
4133
4132
|
}
|
|
@@ -4135,21 +4134,20 @@ const Ii = (t) => {
|
|
|
4135
4134
|
]
|
|
4136
4135
|
}
|
|
4137
4136
|
);
|
|
4138
|
-
return r === "outside-left" ? /* @__PURE__ */
|
|
4139
|
-
/* @__PURE__ */
|
|
4137
|
+
return r === "outside-left" ? /* @__PURE__ */ s(_, { direction: "row", align: "flex-start", gap: "sm", fullWidth: !0, children: [
|
|
4138
|
+
/* @__PURE__ */ s(_, { direction: "column", gap: "xs", style: { width: "40%", minWidth: "120px", paddingTop: "10px" }, children: [
|
|
4140
4139
|
a,
|
|
4141
|
-
|
|
4140
|
+
h
|
|
4142
4141
|
] }),
|
|
4143
|
-
/* @__PURE__ */
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
i.errorText && t === "error" && /* @__PURE__ */ e(x, { fontSize: "xs", color: "error", children: i.errorText }),
|
|
4147
|
-
i.errorMessage && !i.errorText && /* @__PURE__ */ e(x, { fontSize: "xs", color: "error", children: i.errorMessage })
|
|
4142
|
+
/* @__PURE__ */ s(_, { direction: "column", gap: "sm", style: { flex: 1, minWidth: 0 }, children: [
|
|
4143
|
+
m,
|
|
4144
|
+
d
|
|
4148
4145
|
] })
|
|
4149
|
-
] }) : /* @__PURE__ */
|
|
4146
|
+
] }) : /* @__PURE__ */ s(_, { direction: "column", gap: "sm", fullWidth: !0, children: [
|
|
4150
4147
|
a,
|
|
4151
|
-
|
|
4152
|
-
|
|
4148
|
+
h,
|
|
4149
|
+
m,
|
|
4150
|
+
d
|
|
4153
4151
|
] });
|
|
4154
4152
|
}, Ri = ({
|
|
4155
4153
|
size: t = "md",
|
|
@@ -4158,9 +4156,9 @@ const Ii = (t) => {
|
|
|
4158
4156
|
fullWidth: o = !1,
|
|
4159
4157
|
...n
|
|
4160
4158
|
}) => {
|
|
4161
|
-
var a, h,
|
|
4162
|
-
const l = n.hideMessageError || !1,
|
|
4163
|
-
return /* @__PURE__ */
|
|
4159
|
+
var a, h, d;
|
|
4160
|
+
const l = n.hideMessageError || !1, u = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
4161
|
+
return /* @__PURE__ */ s(
|
|
4164
4162
|
f,
|
|
4165
4163
|
{
|
|
4166
4164
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -4171,11 +4169,11 @@ const Ii = (t) => {
|
|
|
4171
4169
|
O,
|
|
4172
4170
|
{
|
|
4173
4171
|
condition: !!n.inputProps.required,
|
|
4174
|
-
fallback: /* @__PURE__ */
|
|
4172
|
+
fallback: /* @__PURE__ */ s(
|
|
4175
4173
|
f,
|
|
4176
4174
|
{
|
|
4177
4175
|
direction: "column",
|
|
4178
|
-
customMaxWidth:
|
|
4176
|
+
customMaxWidth: u,
|
|
4179
4177
|
fullWidth: o,
|
|
4180
4178
|
children: [
|
|
4181
4179
|
/* @__PURE__ */ e(j, { children: n.title }),
|
|
@@ -4183,21 +4181,21 @@ const Ii = (t) => {
|
|
|
4183
4181
|
]
|
|
4184
4182
|
}
|
|
4185
4183
|
),
|
|
4186
|
-
children: /* @__PURE__ */
|
|
4184
|
+
children: /* @__PURE__ */ s(
|
|
4187
4185
|
f,
|
|
4188
4186
|
{
|
|
4189
4187
|
direction: "column",
|
|
4190
|
-
customMaxWidth:
|
|
4188
|
+
customMaxWidth: u,
|
|
4191
4189
|
fullWidth: o,
|
|
4192
4190
|
children: [
|
|
4193
|
-
/* @__PURE__ */
|
|
4191
|
+
/* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4194
4192
|
/* @__PURE__ */ e(j, { fontSize: t, children: n.title }),
|
|
4195
4193
|
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
4196
4194
|
/* @__PURE__ */ e(O, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
4197
4195
|
me,
|
|
4198
4196
|
{
|
|
4199
4197
|
label: (h = n.tooltip) == null ? void 0 : h.label,
|
|
4200
|
-
arrowPosition: (
|
|
4198
|
+
arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
|
|
4201
4199
|
...n.tooltip,
|
|
4202
4200
|
children: /* @__PURE__ */ e(
|
|
4203
4201
|
D,
|
|
@@ -4219,9 +4217,9 @@ const Ii = (t) => {
|
|
|
4219
4217
|
)
|
|
4220
4218
|
}
|
|
4221
4219
|
),
|
|
4222
|
-
/* @__PURE__ */
|
|
4220
|
+
/* @__PURE__ */ s(_, { direction: "column", gap: "xs", children: [
|
|
4223
4221
|
/* @__PURE__ */ e(
|
|
4224
|
-
|
|
4222
|
+
Ii,
|
|
4225
4223
|
{
|
|
4226
4224
|
...n.inputProps,
|
|
4227
4225
|
status: n.errorMessage ? "error" : "default"
|
|
@@ -4240,9 +4238,9 @@ const Ii = (t) => {
|
|
|
4240
4238
|
required: n = !1,
|
|
4241
4239
|
...l
|
|
4242
4240
|
}) => {
|
|
4243
|
-
var h,
|
|
4244
|
-
const
|
|
4245
|
-
return /* @__PURE__ */
|
|
4241
|
+
var h, d, g, m;
|
|
4242
|
+
const u = l.hideMessageError || !1, a = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
4243
|
+
return /* @__PURE__ */ s(
|
|
4246
4244
|
f,
|
|
4247
4245
|
{
|
|
4248
4246
|
gap: r === "horizontal" || r === "horizontal-inline" ? "spacing-96" : "sm",
|
|
@@ -4253,7 +4251,7 @@ const Ii = (t) => {
|
|
|
4253
4251
|
O,
|
|
4254
4252
|
{
|
|
4255
4253
|
condition: !!n,
|
|
4256
|
-
fallback: /* @__PURE__ */
|
|
4254
|
+
fallback: /* @__PURE__ */ s(
|
|
4257
4255
|
f,
|
|
4258
4256
|
{
|
|
4259
4257
|
direction: "column",
|
|
@@ -4265,20 +4263,20 @@ const Ii = (t) => {
|
|
|
4265
4263
|
]
|
|
4266
4264
|
}
|
|
4267
4265
|
),
|
|
4268
|
-
children: /* @__PURE__ */
|
|
4266
|
+
children: /* @__PURE__ */ s(
|
|
4269
4267
|
f,
|
|
4270
4268
|
{
|
|
4271
4269
|
direction: "column",
|
|
4272
4270
|
customMaxWidth: a,
|
|
4273
4271
|
fullWidth: o,
|
|
4274
4272
|
children: [
|
|
4275
|
-
/* @__PURE__ */
|
|
4273
|
+
/* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4276
4274
|
/* @__PURE__ */ e(j, { fontSize: t, children: l.title }),
|
|
4277
4275
|
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
4278
4276
|
/* @__PURE__ */ e(O, { condition: !!((h = l.tooltip) != null && h.label), children: /* @__PURE__ */ e(
|
|
4279
4277
|
me,
|
|
4280
4278
|
{
|
|
4281
|
-
label: (
|
|
4279
|
+
label: (d = l.tooltip) == null ? void 0 : d.label,
|
|
4282
4280
|
arrowPosition: (g = l.tooltip) == null ? void 0 : g.arrowPosition,
|
|
4283
4281
|
...l.tooltip,
|
|
4284
4282
|
children: /* @__PURE__ */ e(
|
|
@@ -4314,7 +4312,7 @@ const Ii = (t) => {
|
|
|
4314
4312
|
...y,
|
|
4315
4313
|
isChecked: l.checkBoxesAreChecked.includes(y.id)
|
|
4316
4314
|
})),
|
|
4317
|
-
render: (y) => y.renderBadge ? /* @__PURE__ */
|
|
4315
|
+
render: (y) => y.renderBadge ? /* @__PURE__ */ s(
|
|
4318
4316
|
f,
|
|
4319
4317
|
{
|
|
4320
4318
|
direction: "row",
|
|
@@ -4351,7 +4349,7 @@ const Ii = (t) => {
|
|
|
4351
4349
|
)
|
|
4352
4350
|
}
|
|
4353
4351
|
),
|
|
4354
|
-
!
|
|
4352
|
+
!u && l.errorMessage && /* @__PURE__ */ e(De, { message: l.errorMessage })
|
|
4355
4353
|
]
|
|
4356
4354
|
}
|
|
4357
4355
|
);
|
|
@@ -4363,13 +4361,13 @@ const Ii = (t) => {
|
|
|
4363
4361
|
}) => {
|
|
4364
4362
|
var l;
|
|
4365
4363
|
const n = t === "horizontal-inline" || t === "horizontal-block" ? r === "sm" ? 342 : r === "lg" ? 400 : 342 : void 0;
|
|
4366
|
-
return /* @__PURE__ */
|
|
4364
|
+
return /* @__PURE__ */ s(
|
|
4367
4365
|
f,
|
|
4368
4366
|
{
|
|
4369
4367
|
gap: t === "horizontal-inline" || t === "horizontal-block" ? "spacing-96" : "sm",
|
|
4370
4368
|
direction: t === "horizontal-inline" || t === "horizontal-block" ? "row" : "column",
|
|
4371
4369
|
children: [
|
|
4372
|
-
/* @__PURE__ */ e(O, { condition: !!o.description || !!o.title, children: /* @__PURE__ */
|
|
4370
|
+
/* @__PURE__ */ e(O, { condition: !!o.description || !!o.title, children: /* @__PURE__ */ s(
|
|
4373
4371
|
f,
|
|
4374
4372
|
{
|
|
4375
4373
|
direction: "column",
|
|
@@ -4391,18 +4389,18 @@ const Ii = (t) => {
|
|
|
4391
4389
|
children: /* @__PURE__ */ e(
|
|
4392
4390
|
Ct,
|
|
4393
4391
|
{
|
|
4394
|
-
of: (l = o.radioList) == null ? void 0 : l.map((
|
|
4395
|
-
...
|
|
4396
|
-
isChecked: o.radioIsChecked ===
|
|
4392
|
+
of: (l = o.radioList) == null ? void 0 : l.map((u) => ({
|
|
4393
|
+
...u,
|
|
4394
|
+
isChecked: o.radioIsChecked === u.id
|
|
4397
4395
|
})),
|
|
4398
|
-
render: ({ value:
|
|
4396
|
+
render: ({ value: u, id: a, isChecked: h, subInput: d, label: g, description: m }) => /* @__PURE__ */ s(f, { gap: "xs", customMaxWidth: n, children: [
|
|
4399
4397
|
/* @__PURE__ */ e(
|
|
4400
4398
|
mr,
|
|
4401
4399
|
{
|
|
4402
|
-
id: `${a.toString()}-${
|
|
4400
|
+
id: `${a.toString()}-${u}`,
|
|
4403
4401
|
name: o.groupName || g,
|
|
4404
4402
|
label: g,
|
|
4405
|
-
value:
|
|
4403
|
+
value: u,
|
|
4406
4404
|
checked: h,
|
|
4407
4405
|
onChange: (y) => o.onChecked({
|
|
4408
4406
|
id: a,
|
|
@@ -4423,7 +4421,7 @@ const Ii = (t) => {
|
|
|
4423
4421
|
children: m
|
|
4424
4422
|
}
|
|
4425
4423
|
),
|
|
4426
|
-
|
|
4424
|
+
d
|
|
4427
4425
|
] })
|
|
4428
4426
|
}
|
|
4429
4427
|
)
|
|
@@ -4440,9 +4438,9 @@ const Ii = (t) => {
|
|
|
4440
4438
|
fullWidth: o = !1,
|
|
4441
4439
|
...n
|
|
4442
4440
|
}) => {
|
|
4443
|
-
var a, h,
|
|
4444
|
-
const l = n.hideMessageError || !1,
|
|
4445
|
-
return /* @__PURE__ */
|
|
4441
|
+
var a, h, d;
|
|
4442
|
+
const l = n.hideMessageError || !1, u = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
4443
|
+
return /* @__PURE__ */ s(
|
|
4446
4444
|
f,
|
|
4447
4445
|
{
|
|
4448
4446
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -4453,11 +4451,11 @@ const Ii = (t) => {
|
|
|
4453
4451
|
O,
|
|
4454
4452
|
{
|
|
4455
4453
|
condition: !!n.inputProps.required,
|
|
4456
|
-
fallback: /* @__PURE__ */
|
|
4454
|
+
fallback: /* @__PURE__ */ s(
|
|
4457
4455
|
f,
|
|
4458
4456
|
{
|
|
4459
4457
|
direction: "column",
|
|
4460
|
-
customMaxWidth:
|
|
4458
|
+
customMaxWidth: u,
|
|
4461
4459
|
fullWidth: o,
|
|
4462
4460
|
children: [
|
|
4463
4461
|
/* @__PURE__ */ e(j, { children: n.title }),
|
|
@@ -4465,21 +4463,21 @@ const Ii = (t) => {
|
|
|
4465
4463
|
]
|
|
4466
4464
|
}
|
|
4467
4465
|
),
|
|
4468
|
-
children: /* @__PURE__ */
|
|
4466
|
+
children: /* @__PURE__ */ s(
|
|
4469
4467
|
f,
|
|
4470
4468
|
{
|
|
4471
4469
|
direction: "column",
|
|
4472
|
-
customMaxWidth:
|
|
4470
|
+
customMaxWidth: u,
|
|
4473
4471
|
fullWidth: o,
|
|
4474
4472
|
children: [
|
|
4475
|
-
/* @__PURE__ */
|
|
4473
|
+
/* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4476
4474
|
/* @__PURE__ */ e(j, { fontSize: t, children: n.title }),
|
|
4477
4475
|
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
4478
4476
|
/* @__PURE__ */ e(O, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
4479
4477
|
me,
|
|
4480
4478
|
{
|
|
4481
4479
|
label: (h = n.tooltip) == null ? void 0 : h.label,
|
|
4482
|
-
arrowPosition: (
|
|
4480
|
+
arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
|
|
4483
4481
|
...n.tooltip,
|
|
4484
4482
|
children: /* @__PURE__ */ e(
|
|
4485
4483
|
D,
|
|
@@ -4501,7 +4499,7 @@ const Ii = (t) => {
|
|
|
4501
4499
|
)
|
|
4502
4500
|
}
|
|
4503
4501
|
),
|
|
4504
|
-
/* @__PURE__ */
|
|
4502
|
+
/* @__PURE__ */ s(_, { direction: "column", gap: "xs", children: [
|
|
4505
4503
|
/* @__PURE__ */ e(
|
|
4506
4504
|
hr,
|
|
4507
4505
|
{
|
|
@@ -4524,9 +4522,9 @@ const Ii = (t) => {
|
|
|
4524
4522
|
fullWidth: n = !1,
|
|
4525
4523
|
...l
|
|
4526
4524
|
}) => {
|
|
4527
|
-
var a, h,
|
|
4528
|
-
const
|
|
4529
|
-
return /* @__PURE__ */
|
|
4525
|
+
var a, h, d;
|
|
4526
|
+
const u = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
4527
|
+
return /* @__PURE__ */ s(
|
|
4530
4528
|
f,
|
|
4531
4529
|
{
|
|
4532
4530
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -4537,11 +4535,11 @@ const Ii = (t) => {
|
|
|
4537
4535
|
O,
|
|
4538
4536
|
{
|
|
4539
4537
|
condition: o,
|
|
4540
|
-
fallback: /* @__PURE__ */
|
|
4538
|
+
fallback: /* @__PURE__ */ s(
|
|
4541
4539
|
f,
|
|
4542
4540
|
{
|
|
4543
4541
|
direction: "column",
|
|
4544
|
-
customMaxWidth:
|
|
4542
|
+
customMaxWidth: u,
|
|
4545
4543
|
fullWidth: n,
|
|
4546
4544
|
children: [
|
|
4547
4545
|
/* @__PURE__ */ e(j, { children: l.title }),
|
|
@@ -4549,21 +4547,21 @@ const Ii = (t) => {
|
|
|
4549
4547
|
]
|
|
4550
4548
|
}
|
|
4551
4549
|
),
|
|
4552
|
-
children: /* @__PURE__ */
|
|
4550
|
+
children: /* @__PURE__ */ s(
|
|
4553
4551
|
f,
|
|
4554
4552
|
{
|
|
4555
4553
|
direction: "column",
|
|
4556
|
-
customMaxWidth:
|
|
4554
|
+
customMaxWidth: u,
|
|
4557
4555
|
fullWidth: n,
|
|
4558
4556
|
children: [
|
|
4559
|
-
/* @__PURE__ */
|
|
4557
|
+
/* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4560
4558
|
/* @__PURE__ */ e(j, { fontSize: t, children: l.title }),
|
|
4561
4559
|
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
4562
4560
|
/* @__PURE__ */ e(O, { condition: !!((a = l.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
4563
4561
|
me,
|
|
4564
4562
|
{
|
|
4565
4563
|
label: (h = l.tooltip) == null ? void 0 : h.label,
|
|
4566
|
-
arrowPosition: (
|
|
4564
|
+
arrowPosition: (d = l.tooltip) == null ? void 0 : d.arrowPosition,
|
|
4567
4565
|
...l.tooltip,
|
|
4568
4566
|
children: /* @__PURE__ */ e(
|
|
4569
4567
|
D,
|
|
@@ -4603,26 +4601,26 @@ const Ii = (t) => {
|
|
|
4603
4601
|
size: r = "md",
|
|
4604
4602
|
...i
|
|
4605
4603
|
}) => {
|
|
4606
|
-
const o = gr(), n = (
|
|
4607
|
-
var h,
|
|
4608
|
-
if (!
|
|
4609
|
-
const a = i.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (
|
|
4610
|
-
return /* @__PURE__ */ e(D, { name:
|
|
4604
|
+
const o = gr(), n = (u) => {
|
|
4605
|
+
var h, d, g, m, y, b;
|
|
4606
|
+
if (!u) return;
|
|
4607
|
+
const a = i.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary" ? "var(--sa-text-subtle, #8c8f97)" : t === "secondary-danger" ? (d = (h = o == null ? void 0 : o.computed) == null ? void 0 : h.red) == null ? void 0 : d[600] : t === "secondary-primary" ? (m = (g = o == null ? void 0 : o.computed) == null ? void 0 : g.blue) == null ? void 0 : m[700] : (b = (y = o == null ? void 0 : o.computed) == null ? void 0 : y.gray) == null ? void 0 : b[50];
|
|
4608
|
+
return /* @__PURE__ */ e(D, { name: u, size: r, style: { color: a } });
|
|
4611
4609
|
}, l = () => {
|
|
4612
|
-
var a, h,
|
|
4610
|
+
var a, h, d, g;
|
|
4613
4611
|
if (t !== "secondary-danger" && t !== "secondary-primary")
|
|
4614
4612
|
return i.title;
|
|
4615
|
-
const
|
|
4616
|
-
color: i.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary-danger" ? (h = (a = o == null ? void 0 : o.computed) == null ? void 0 : a.red) == null ? void 0 : h[600] : (g = (
|
|
4613
|
+
const u = {
|
|
4614
|
+
color: i.disabled ? "var(--sa-text-disable, #181a198f)" : t === "secondary-danger" ? (h = (a = o == null ? void 0 : o.computed) == null ? void 0 : a.red) == null ? void 0 : h[600] : (g = (d = o == null ? void 0 : o.computed) == null ? void 0 : d.blue) == null ? void 0 : g[700]
|
|
4617
4615
|
};
|
|
4618
4616
|
switch (r) {
|
|
4619
4617
|
case "xs":
|
|
4620
|
-
return /* @__PURE__ */ e(pe.Body2, { props: { style:
|
|
4618
|
+
return /* @__PURE__ */ e(pe.Body2, { props: { style: u }, children: i.title });
|
|
4621
4619
|
case "sm":
|
|
4622
4620
|
case "md":
|
|
4623
|
-
return /* @__PURE__ */ e(pe.SubH3, { props: { style:
|
|
4621
|
+
return /* @__PURE__ */ e(pe.SubH3, { props: { style: u }, children: i.title });
|
|
4624
4622
|
case "lg":
|
|
4625
|
-
return /* @__PURE__ */ e(pe.SubH2, { props: { style:
|
|
4623
|
+
return /* @__PURE__ */ e(pe.SubH2, { props: { style: u }, children: i.title });
|
|
4626
4624
|
default:
|
|
4627
4625
|
return i.title;
|
|
4628
4626
|
}
|
|
@@ -4658,9 +4656,9 @@ const Ii = (t) => {
|
|
|
4658
4656
|
fullWidth: o = !1,
|
|
4659
4657
|
...n
|
|
4660
4658
|
}) => {
|
|
4661
|
-
var a, h,
|
|
4662
|
-
const l = n.hideMessageError || !1,
|
|
4663
|
-
return /* @__PURE__ */
|
|
4659
|
+
var a, h, d;
|
|
4660
|
+
const l = n.hideMessageError || !1, u = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
4661
|
+
return /* @__PURE__ */ s(
|
|
4664
4662
|
f,
|
|
4665
4663
|
{
|
|
4666
4664
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -4671,11 +4669,11 @@ const Ii = (t) => {
|
|
|
4671
4669
|
O,
|
|
4672
4670
|
{
|
|
4673
4671
|
condition: !!n.inputProps.required,
|
|
4674
|
-
fallback: /* @__PURE__ */
|
|
4672
|
+
fallback: /* @__PURE__ */ s(
|
|
4675
4673
|
f,
|
|
4676
4674
|
{
|
|
4677
4675
|
direction: "column",
|
|
4678
|
-
customMaxWidth:
|
|
4676
|
+
customMaxWidth: u,
|
|
4679
4677
|
fullWidth: o,
|
|
4680
4678
|
children: [
|
|
4681
4679
|
/* @__PURE__ */ e(j, { children: n.title }),
|
|
@@ -4683,21 +4681,21 @@ const Ii = (t) => {
|
|
|
4683
4681
|
]
|
|
4684
4682
|
}
|
|
4685
4683
|
),
|
|
4686
|
-
children: /* @__PURE__ */
|
|
4684
|
+
children: /* @__PURE__ */ s(
|
|
4687
4685
|
f,
|
|
4688
4686
|
{
|
|
4689
4687
|
direction: "column",
|
|
4690
|
-
customMaxWidth:
|
|
4688
|
+
customMaxWidth: u,
|
|
4691
4689
|
fullWidth: o,
|
|
4692
4690
|
children: [
|
|
4693
|
-
/* @__PURE__ */
|
|
4691
|
+
/* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
4694
4692
|
/* @__PURE__ */ e(j, { fontSize: t, children: n.title }),
|
|
4695
4693
|
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
4696
4694
|
/* @__PURE__ */ e(O, { condition: !!((a = n.tooltip) != null && a.label), children: /* @__PURE__ */ e(
|
|
4697
4695
|
me,
|
|
4698
4696
|
{
|
|
4699
4697
|
label: (h = n.tooltip) == null ? void 0 : h.label,
|
|
4700
|
-
arrowPosition: (
|
|
4698
|
+
arrowPosition: (d = n.tooltip) == null ? void 0 : d.arrowPosition,
|
|
4701
4699
|
...n.tooltip,
|
|
4702
4700
|
children: /* @__PURE__ */ e(
|
|
4703
4701
|
D,
|
|
@@ -4719,7 +4717,7 @@ const Ii = (t) => {
|
|
|
4719
4717
|
)
|
|
4720
4718
|
}
|
|
4721
4719
|
),
|
|
4722
|
-
/* @__PURE__ */
|
|
4720
|
+
/* @__PURE__ */ s(_, { direction: "column", gap: "xs", children: [
|
|
4723
4721
|
/* @__PURE__ */ e(
|
|
4724
4722
|
f,
|
|
4725
4723
|
{
|
|
@@ -4744,8 +4742,8 @@ const Ii = (t) => {
|
|
|
4744
4742
|
};
|
|
4745
4743
|
async function $i(t, r) {
|
|
4746
4744
|
const i = new Image();
|
|
4747
|
-
i.src = t, await new Promise((l,
|
|
4748
|
-
i.onload = l, i.onerror =
|
|
4745
|
+
i.src = t, await new Promise((l, u) => {
|
|
4746
|
+
i.onload = l, i.onerror = u;
|
|
4749
4747
|
});
|
|
4750
4748
|
const o = document.createElement("canvas");
|
|
4751
4749
|
o.width = r.width, o.height = r.height;
|
|
@@ -4761,9 +4759,9 @@ async function $i(t, r) {
|
|
|
4761
4759
|
0,
|
|
4762
4760
|
r.width,
|
|
4763
4761
|
r.height
|
|
4764
|
-
), new Promise((l,
|
|
4762
|
+
), new Promise((l, u) => {
|
|
4765
4763
|
o.toBlob((a) => {
|
|
4766
|
-
if (!a) return
|
|
4764
|
+
if (!a) return u("Canvas is empty");
|
|
4767
4765
|
const h = new File([a], "cropped.png", { type: "image/png" });
|
|
4768
4766
|
l(h);
|
|
4769
4767
|
}, "image/png");
|
|
@@ -4786,18 +4784,18 @@ const Nt = {
|
|
|
4786
4784
|
croppedImage: o,
|
|
4787
4785
|
setCroppedImage: n,
|
|
4788
4786
|
size: l = "96",
|
|
4789
|
-
aspect:
|
|
4787
|
+
aspect: u = "1:1",
|
|
4790
4788
|
containerProps: a,
|
|
4791
4789
|
maxFileSize: h = 2,
|
|
4792
|
-
onError:
|
|
4790
|
+
onError: d
|
|
4793
4791
|
}, g) => {
|
|
4794
|
-
const m = ne("md"), [y, b] = k(!1), [
|
|
4792
|
+
const m = ne("md"), [y, b] = k(!1), [S, C] = k(null), [I, Z] = k(!1), [T, U] = k({ x: 0, y: 0 }), [M, ae] = k(1), [J, H] = k(null);
|
|
4795
4793
|
$(() => {
|
|
4796
4794
|
r === null && n(null);
|
|
4797
4795
|
}, [r]);
|
|
4798
4796
|
const P = ve(
|
|
4799
4797
|
(R, V) => {
|
|
4800
|
-
|
|
4798
|
+
H(V);
|
|
4801
4799
|
},
|
|
4802
4800
|
[]
|
|
4803
4801
|
), oe = (R) => {
|
|
@@ -4809,18 +4807,18 @@ const Nt = {
|
|
|
4809
4807
|
C(te.result), Z(!0);
|
|
4810
4808
|
}, te.readAsDataURL(V);
|
|
4811
4809
|
}, le = async () => {
|
|
4812
|
-
if (!(!
|
|
4810
|
+
if (!(!S || !J))
|
|
4813
4811
|
try {
|
|
4814
|
-
const R = await $i(
|
|
4812
|
+
const R = await $i(S, J);
|
|
4815
4813
|
if (h && R.size > h * 1024 * 1024) {
|
|
4816
|
-
|
|
4814
|
+
d == null || d(`Ukuran file maksimal ${h}MB`);
|
|
4817
4815
|
return;
|
|
4818
4816
|
}
|
|
4819
4817
|
t == null || t(R);
|
|
4820
4818
|
const V = URL.createObjectURL(R);
|
|
4821
4819
|
n(V, R), Z(!1);
|
|
4822
4820
|
} catch {
|
|
4823
|
-
|
|
4821
|
+
d == null || d("Gagal memproses gambar");
|
|
4824
4822
|
}
|
|
4825
4823
|
}, G = ie(null), Q = () => {
|
|
4826
4824
|
G.current && G.current.click();
|
|
@@ -4831,9 +4829,9 @@ const Nt = {
|
|
|
4831
4829
|
(R = G.current) == null || R.click();
|
|
4832
4830
|
}
|
|
4833
4831
|
}));
|
|
4834
|
-
const K = parseInt(l, 10),
|
|
4832
|
+
const K = parseInt(l, 10), se = Nt[u];
|
|
4835
4833
|
let ee, X;
|
|
4836
|
-
return
|
|
4834
|
+
return se >= 1 ? (X = K, ee = K * se) : (ee = K, X = K / se), /* @__PURE__ */ s(
|
|
4837
4835
|
f,
|
|
4838
4836
|
{
|
|
4839
4837
|
display: "flex",
|
|
@@ -4849,7 +4847,7 @@ const Nt = {
|
|
|
4849
4847
|
style: {
|
|
4850
4848
|
width: a != null && a.fullWidth ? "100%" : `${ee}px`,
|
|
4851
4849
|
height: a != null && a.fullWidth ? "auto" : `${X}px`,
|
|
4852
|
-
aspectRatio:
|
|
4850
|
+
aspectRatio: se,
|
|
4853
4851
|
flexShrink: 0
|
|
4854
4852
|
},
|
|
4855
4853
|
onMouseEnter: () => b(!0),
|
|
@@ -4887,7 +4885,7 @@ const Nt = {
|
|
|
4887
4885
|
)
|
|
4888
4886
|
}
|
|
4889
4887
|
),
|
|
4890
|
-
/* @__PURE__ */
|
|
4888
|
+
/* @__PURE__ */ s(
|
|
4891
4889
|
f,
|
|
4892
4890
|
{
|
|
4893
4891
|
position: "absolute",
|
|
@@ -4914,7 +4912,7 @@ const Nt = {
|
|
|
4914
4912
|
style: { display: "none" }
|
|
4915
4913
|
}
|
|
4916
4914
|
),
|
|
4917
|
-
/* @__PURE__ */
|
|
4915
|
+
/* @__PURE__ */ s(f, { display: "flex", align: "center", gap: "spacing-2", direction: "row", children: [
|
|
4918
4916
|
/* @__PURE__ */ e(
|
|
4919
4917
|
D,
|
|
4920
4918
|
{
|
|
@@ -4962,7 +4960,7 @@ const Nt = {
|
|
|
4962
4960
|
)
|
|
4963
4961
|
}
|
|
4964
4962
|
),
|
|
4965
|
-
|
|
4963
|
+
I && xr.createPortal(
|
|
4966
4964
|
/* @__PURE__ */ e(
|
|
4967
4965
|
"div",
|
|
4968
4966
|
{
|
|
@@ -4976,7 +4974,7 @@ const Nt = {
|
|
|
4976
4974
|
backgroundColor: "rgba(0,0,0,0.6)"
|
|
4977
4975
|
},
|
|
4978
4976
|
onClick: () => Z(!1),
|
|
4979
|
-
children: /* @__PURE__ */
|
|
4977
|
+
children: /* @__PURE__ */ s(
|
|
4980
4978
|
"div",
|
|
4981
4979
|
{
|
|
4982
4980
|
style: {
|
|
@@ -4984,7 +4982,7 @@ const Nt = {
|
|
|
4984
4982
|
borderRadius: "var(--sa-radii-md)",
|
|
4985
4983
|
boxShadow: "0 20px 60px rgba(0,0,0,0.3)",
|
|
4986
4984
|
overflow: "hidden",
|
|
4987
|
-
width: m ?
|
|
4985
|
+
width: m ? u === "1:1" ? "min(90vw, 480px)" : `min(90vw, ${ee * 2}px)` : "calc(100vw - 2rem)",
|
|
4988
4986
|
display: "flex",
|
|
4989
4987
|
flexDirection: "column"
|
|
4990
4988
|
},
|
|
@@ -4999,13 +4997,13 @@ const Nt = {
|
|
|
4999
4997
|
height: "20rem",
|
|
5000
4998
|
backgroundColor: "var(--sa-color-gray-100)"
|
|
5001
4999
|
},
|
|
5002
|
-
children:
|
|
5000
|
+
children: S && /* @__PURE__ */ e(
|
|
5003
5001
|
Cr,
|
|
5004
5002
|
{
|
|
5005
|
-
image:
|
|
5003
|
+
image: S,
|
|
5006
5004
|
crop: T,
|
|
5007
5005
|
zoom: M,
|
|
5008
|
-
aspect:
|
|
5006
|
+
aspect: u ? Nt[u] : void 0,
|
|
5009
5007
|
onCropChange: U,
|
|
5010
5008
|
onZoomChange: ae,
|
|
5011
5009
|
onCropComplete: P,
|
|
@@ -5016,7 +5014,7 @@ const Nt = {
|
|
|
5016
5014
|
)
|
|
5017
5015
|
}
|
|
5018
5016
|
),
|
|
5019
|
-
/* @__PURE__ */
|
|
5017
|
+
/* @__PURE__ */ s(
|
|
5020
5018
|
"div",
|
|
5021
5019
|
{
|
|
5022
5020
|
style: {
|
|
@@ -5051,9 +5049,9 @@ const Nt = {
|
|
|
5051
5049
|
required: n = !1,
|
|
5052
5050
|
...l
|
|
5053
5051
|
}) => {
|
|
5054
|
-
var h,
|
|
5055
|
-
const
|
|
5056
|
-
return /* @__PURE__ */
|
|
5052
|
+
var h, d, g;
|
|
5053
|
+
const u = l.hideMessageError || !1, a = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
5054
|
+
return /* @__PURE__ */ s(
|
|
5057
5055
|
f,
|
|
5058
5056
|
{
|
|
5059
5057
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -5064,7 +5062,7 @@ const Nt = {
|
|
|
5064
5062
|
O,
|
|
5065
5063
|
{
|
|
5066
5064
|
condition: !!n,
|
|
5067
|
-
fallback: /* @__PURE__ */
|
|
5065
|
+
fallback: /* @__PURE__ */ s(
|
|
5068
5066
|
f,
|
|
5069
5067
|
{
|
|
5070
5068
|
direction: "column",
|
|
@@ -5076,20 +5074,20 @@ const Nt = {
|
|
|
5076
5074
|
]
|
|
5077
5075
|
}
|
|
5078
5076
|
),
|
|
5079
|
-
children: /* @__PURE__ */
|
|
5077
|
+
children: /* @__PURE__ */ s(
|
|
5080
5078
|
f,
|
|
5081
5079
|
{
|
|
5082
5080
|
direction: "column",
|
|
5083
5081
|
customMaxWidth: a,
|
|
5084
5082
|
fullWidth: o,
|
|
5085
5083
|
children: [
|
|
5086
|
-
/* @__PURE__ */
|
|
5084
|
+
/* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
5087
5085
|
/* @__PURE__ */ e(j, { fontSize: t, children: l.title }),
|
|
5088
5086
|
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
5089
5087
|
/* @__PURE__ */ e(O, { condition: !!((h = l.tooltip) != null && h.label), children: /* @__PURE__ */ e(
|
|
5090
5088
|
me,
|
|
5091
5089
|
{
|
|
5092
|
-
label: (
|
|
5090
|
+
label: (d = l.tooltip) == null ? void 0 : d.label,
|
|
5093
5091
|
arrowPosition: (g = l.tooltip) == null ? void 0 : g.arrowPosition,
|
|
5094
5092
|
...l.tooltip,
|
|
5095
5093
|
children: /* @__PURE__ */ e(
|
|
@@ -5112,9 +5110,9 @@ const Nt = {
|
|
|
5112
5110
|
)
|
|
5113
5111
|
}
|
|
5114
5112
|
),
|
|
5115
|
-
/* @__PURE__ */
|
|
5113
|
+
/* @__PURE__ */ s(_, { direction: "column", gap: "xs", children: [
|
|
5116
5114
|
/* @__PURE__ */ e(Gi, { ...l.inputProps }),
|
|
5117
|
-
!
|
|
5115
|
+
!u && l.errorMessage && /* @__PURE__ */ e(De, { message: l.errorMessage })
|
|
5118
5116
|
] })
|
|
5119
5117
|
]
|
|
5120
5118
|
}
|
|
@@ -5126,9 +5124,9 @@ const Nt = {
|
|
|
5126
5124
|
fullWidth: o = !1,
|
|
5127
5125
|
...n
|
|
5128
5126
|
}) => {
|
|
5129
|
-
var
|
|
5127
|
+
var u, a, h;
|
|
5130
5128
|
const l = r === "horizontal" ? t === "sm" ? 342 : t === "lg" ? 400 : 342 : void 0;
|
|
5131
|
-
return /* @__PURE__ */
|
|
5129
|
+
return /* @__PURE__ */ s(
|
|
5132
5130
|
f,
|
|
5133
5131
|
{
|
|
5134
5132
|
gap: r === "horizontal" ? "spacing-96" : "sm",
|
|
@@ -5139,7 +5137,7 @@ const Nt = {
|
|
|
5139
5137
|
O,
|
|
5140
5138
|
{
|
|
5141
5139
|
condition: !!n.inputProps.required,
|
|
5142
|
-
fallback: /* @__PURE__ */
|
|
5140
|
+
fallback: /* @__PURE__ */ s(
|
|
5143
5141
|
f,
|
|
5144
5142
|
{
|
|
5145
5143
|
direction: "column",
|
|
@@ -5151,17 +5149,17 @@ const Nt = {
|
|
|
5151
5149
|
]
|
|
5152
5150
|
}
|
|
5153
5151
|
),
|
|
5154
|
-
children: /* @__PURE__ */
|
|
5152
|
+
children: /* @__PURE__ */ s(
|
|
5155
5153
|
f,
|
|
5156
5154
|
{
|
|
5157
5155
|
direction: "column",
|
|
5158
5156
|
customMaxWidth: l,
|
|
5159
5157
|
fullWidth: o,
|
|
5160
5158
|
children: [
|
|
5161
|
-
/* @__PURE__ */
|
|
5159
|
+
/* @__PURE__ */ s(_, { direction: "row", gap: "xs", align: "center", children: [
|
|
5162
5160
|
/* @__PURE__ */ e(j, { fontSize: t, children: n.title }),
|
|
5163
5161
|
/* @__PURE__ */ e(j, { color: "error", fontSize: t, children: i }),
|
|
5164
|
-
/* @__PURE__ */ e(O, { condition: !!((
|
|
5162
|
+
/* @__PURE__ */ e(O, { condition: !!((u = n.tooltip) != null && u.label), children: /* @__PURE__ */ e(
|
|
5165
5163
|
me,
|
|
5166
5164
|
{
|
|
5167
5165
|
label: (a = n.tooltip) == null ? void 0 : a.label,
|
|
@@ -5200,11 +5198,11 @@ const Nt = {
|
|
|
5200
5198
|
disabled: l = !1
|
|
5201
5199
|
}) => {
|
|
5202
5200
|
var g;
|
|
5203
|
-
const [
|
|
5201
|
+
const [u, a] = k([]);
|
|
5204
5202
|
$(() => {
|
|
5205
5203
|
t && a([...t.map((m) => ({ id: m.id, isActive: m.isActive }))]);
|
|
5206
5204
|
}, [t]);
|
|
5207
|
-
const h = (g =
|
|
5205
|
+
const h = (g = u.find((m) => m.id === r)) == null ? void 0 : g.isActive, d = ve(() => {
|
|
5208
5206
|
a(
|
|
5209
5207
|
(m) => m.map((y) => y.id === r ? { ...y, isActive: !y.isActive } : y)
|
|
5210
5208
|
), i && i(!h);
|
|
@@ -5222,7 +5220,7 @@ const Nt = {
|
|
|
5222
5220
|
{
|
|
5223
5221
|
disabled: l,
|
|
5224
5222
|
checked: h,
|
|
5225
|
-
onChange:
|
|
5223
|
+
onChange: d,
|
|
5226
5224
|
label: h ? "Active" : "Inactive"
|
|
5227
5225
|
}
|
|
5228
5226
|
)
|
|
@@ -5293,7 +5291,7 @@ const Nt = {
|
|
|
5293
5291
|
);
|
|
5294
5292
|
}, Co = ({ pageLayout: t, children: r, wrapperProps: i, containerProps: o }) => {
|
|
5295
5293
|
const n = ne("md"), l = (o == null ? void 0 : o.customWidth) ?? 264;
|
|
5296
|
-
return /* @__PURE__ */
|
|
5294
|
+
return /* @__PURE__ */ s(
|
|
5297
5295
|
f,
|
|
5298
5296
|
{
|
|
5299
5297
|
display: "block",
|
|
@@ -5335,7 +5333,7 @@ const Nt = {
|
|
|
5335
5333
|
withScrollToTopButton: r = !1,
|
|
5336
5334
|
scrollToTopButtonProps: i,
|
|
5337
5335
|
containerProps: o
|
|
5338
|
-
}) => /* @__PURE__ */ e(f, { position: "absolute", width: "width-full", style: { zIndex: "var(--app-footer-zindex, 999)" }, children: /* @__PURE__ */
|
|
5336
|
+
}) => /* @__PURE__ */ e(f, { position: "absolute", width: "width-full", style: { zIndex: "var(--app-footer-zindex, 999)" }, children: /* @__PURE__ */ s(
|
|
5339
5337
|
f,
|
|
5340
5338
|
{
|
|
5341
5339
|
position: "fixed",
|
|
@@ -5372,8 +5370,8 @@ const Nt = {
|
|
|
5372
5370
|
of: t,
|
|
5373
5371
|
render: (r, i) => /* @__PURE__ */ e(Pi, { ...r }, i)
|
|
5374
5372
|
}
|
|
5375
|
-
) }), Pi = ({ title: t, value: r, icon: i }) => /* @__PURE__ */
|
|
5376
|
-
i ? /* @__PURE__ */
|
|
5373
|
+
) }), Pi = ({ title: t, value: r, icon: i }) => /* @__PURE__ */ s(f, { display: "flex", direction: "column", gap: "sm", children: [
|
|
5374
|
+
i ? /* @__PURE__ */ s(f, { display: "flex", direction: "row", align: "center", gap: "xs", children: [
|
|
5377
5375
|
/* @__PURE__ */ e(D, { name: i, color: "subtle" }),
|
|
5378
5376
|
/* @__PURE__ */ e(x, { color: "gray-500", variant: "sub-h3", children: t })
|
|
5379
5377
|
] }) : /* @__PURE__ */ e(x, { color: "gray-500", variant: "sub-h3", children: t }),
|
|
@@ -5383,7 +5381,7 @@ const Nt = {
|
|
|
5383
5381
|
accent: "#78867F"
|
|
5384
5382
|
};
|
|
5385
5383
|
function Qi({ width: t, height: r }) {
|
|
5386
|
-
return /* @__PURE__ */ e(q, { children: /* @__PURE__ */
|
|
5384
|
+
return /* @__PURE__ */ e(q, { children: /* @__PURE__ */ s(
|
|
5387
5385
|
"svg",
|
|
5388
5386
|
{
|
|
5389
5387
|
width: t || "100",
|
|
@@ -5532,10 +5530,10 @@ const Do = ({
|
|
|
5532
5530
|
variant: o = "primary",
|
|
5533
5531
|
variantTitle: n,
|
|
5534
5532
|
leftIcon: l,
|
|
5535
|
-
showButton:
|
|
5533
|
+
showButton: u = !0,
|
|
5536
5534
|
customHeight: a,
|
|
5537
5535
|
childrenButton: h,
|
|
5538
|
-
customIcon:
|
|
5536
|
+
customIcon: d
|
|
5539
5537
|
}) => {
|
|
5540
5538
|
const g = () => {
|
|
5541
5539
|
switch (o) {
|
|
@@ -5558,7 +5556,7 @@ const Do = ({
|
|
|
5558
5556
|
return /* @__PURE__ */ e(q, { children: l ? /* @__PURE__ */ e(N, { primary: !0, iconLeft: l, onClick: i, children: h || t }) : /* @__PURE__ */ e(N, { primary: !0, onClick: i, children: h || t }) });
|
|
5559
5557
|
}
|
|
5560
5558
|
};
|
|
5561
|
-
return /* @__PURE__ */
|
|
5559
|
+
return /* @__PURE__ */ s(
|
|
5562
5560
|
f,
|
|
5563
5561
|
{
|
|
5564
5562
|
height: "height-full",
|
|
@@ -5570,7 +5568,7 @@ const Do = ({
|
|
|
5570
5568
|
marginBlock: "auto",
|
|
5571
5569
|
customHeight: a,
|
|
5572
5570
|
children: [
|
|
5573
|
-
|
|
5571
|
+
d || /* @__PURE__ */ e(Qi, {}),
|
|
5574
5572
|
/* @__PURE__ */ e(f, { children: r.map((m, y) => /* @__PURE__ */ e(
|
|
5575
5573
|
pe.Body1,
|
|
5576
5574
|
{
|
|
@@ -5582,7 +5580,7 @@ const Do = ({
|
|
|
5582
5580
|
},
|
|
5583
5581
|
y
|
|
5584
5582
|
)) }),
|
|
5585
|
-
|
|
5583
|
+
u ? g() : null
|
|
5586
5584
|
]
|
|
5587
5585
|
}
|
|
5588
5586
|
);
|
|
@@ -5597,7 +5595,7 @@ const Do = ({
|
|
|
5597
5595
|
cFFFFFF: "#FFFFFF"
|
|
5598
5596
|
};
|
|
5599
5597
|
function Yi({ width: t, height: r }) {
|
|
5600
|
-
return /* @__PURE__ */ e(q, { children: /* @__PURE__ */
|
|
5598
|
+
return /* @__PURE__ */ e(q, { children: /* @__PURE__ */ s(
|
|
5601
5599
|
"svg",
|
|
5602
5600
|
{
|
|
5603
5601
|
width: t,
|
|
@@ -5801,7 +5799,7 @@ function Yi({ width: t, height: r }) {
|
|
|
5801
5799
|
}
|
|
5802
5800
|
function wo({ onClick: t }) {
|
|
5803
5801
|
const r = ne("md");
|
|
5804
|
-
return /* @__PURE__ */
|
|
5802
|
+
return /* @__PURE__ */ s(
|
|
5805
5803
|
f,
|
|
5806
5804
|
{
|
|
5807
5805
|
height: "height-screen",
|
|
@@ -5835,7 +5833,7 @@ function wo({ onClick: t }) {
|
|
|
5835
5833
|
}
|
|
5836
5834
|
);
|
|
5837
5835
|
}
|
|
5838
|
-
const
|
|
5836
|
+
const A = {
|
|
5839
5837
|
c46F16B: "#46F16B",
|
|
5840
5838
|
c48504C: "#48504C",
|
|
5841
5839
|
c64B5F6: "#64B5F6",
|
|
@@ -5857,7 +5855,7 @@ const z = {
|
|
|
5857
5855
|
cFFFFFF: "#FFFFFF"
|
|
5858
5856
|
};
|
|
5859
5857
|
function Xi({ width: t, height: r }) {
|
|
5860
|
-
return /* @__PURE__ */ e(q, { children: /* @__PURE__ */
|
|
5858
|
+
return /* @__PURE__ */ e(q, { children: /* @__PURE__ */ s(
|
|
5861
5859
|
"svg",
|
|
5862
5860
|
{
|
|
5863
5861
|
width: t,
|
|
@@ -5866,24 +5864,24 @@ function Xi({ width: t, height: r }) {
|
|
|
5866
5864
|
fill: "none",
|
|
5867
5865
|
xmlns: "http://www.w3.org/2000/svg",
|
|
5868
5866
|
children: [
|
|
5869
|
-
/* @__PURE__ */ e("rect", { x: "228", y: "55.5", width: "55", height: "20", fill:
|
|
5867
|
+
/* @__PURE__ */ e("rect", { x: "228", y: "55.5", width: "55", height: "20", fill: A.cD6EBFD }),
|
|
5870
5868
|
/* @__PURE__ */ e(
|
|
5871
5869
|
"path",
|
|
5872
5870
|
{
|
|
5873
5871
|
fillRule: "evenodd",
|
|
5874
5872
|
clipRule: "evenodd",
|
|
5875
5873
|
d: "M75 238.124V197.28L163.523 63.5H217.029V194.32H240V238.124H217.029V252.5H169.126V238.124H75ZM125.424 194.32L172.487 119.143V194.32H125.424Z",
|
|
5876
|
-
fill:
|
|
5874
|
+
fill: A.cBBDEFB,
|
|
5877
5875
|
fillOpacity: "0.6"
|
|
5878
5876
|
}
|
|
5879
5877
|
),
|
|
5880
|
-
/* @__PURE__ */
|
|
5878
|
+
/* @__PURE__ */ s("g", { clipPath: "url(#clip0_2949_9690)", children: [
|
|
5881
5879
|
/* @__PURE__ */ e(
|
|
5882
5880
|
"path",
|
|
5883
5881
|
{
|
|
5884
5882
|
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",
|
|
5885
|
-
fill:
|
|
5886
|
-
stroke:
|
|
5883
|
+
fill: A.cEFF3F8,
|
|
5884
|
+
stroke: A.c67AEE6,
|
|
5887
5885
|
strokeWidth: "5"
|
|
5888
5886
|
}
|
|
5889
5887
|
),
|
|
@@ -5891,68 +5889,68 @@ function Xi({ width: t, height: r }) {
|
|
|
5891
5889
|
"path",
|
|
5892
5890
|
{
|
|
5893
5891
|
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",
|
|
5894
|
-
fill:
|
|
5892
|
+
fill: A.cD5C7BD
|
|
5895
5893
|
}
|
|
5896
5894
|
),
|
|
5897
5895
|
/* @__PURE__ */ e(
|
|
5898
5896
|
"path",
|
|
5899
5897
|
{
|
|
5900
5898
|
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",
|
|
5901
|
-
fill:
|
|
5899
|
+
fill: A.cCABEB1
|
|
5902
5900
|
}
|
|
5903
5901
|
),
|
|
5904
5902
|
/* @__PURE__ */ e(
|
|
5905
5903
|
"path",
|
|
5906
5904
|
{
|
|
5907
5905
|
d: "M287.68 218.884L289.354 213.022H378.961L381.473 218.884H287.68Z",
|
|
5908
|
-
fill:
|
|
5906
|
+
fill: A.cC0B2A2
|
|
5909
5907
|
}
|
|
5910
5908
|
),
|
|
5911
5909
|
/* @__PURE__ */ e(
|
|
5912
5910
|
"path",
|
|
5913
5911
|
{
|
|
5914
5912
|
d: "M381.944 218.803L381.58 212.266H386.385L386.022 218.803H381.944Z",
|
|
5915
|
-
fill:
|
|
5916
|
-
stroke:
|
|
5913
|
+
fill: A.c956847,
|
|
5914
|
+
stroke: A.c48504C
|
|
5917
5915
|
}
|
|
5918
5916
|
),
|
|
5919
5917
|
/* @__PURE__ */ e(
|
|
5920
5918
|
"path",
|
|
5921
5919
|
{
|
|
5922
5920
|
d: "M283.124 218.803L282.768 213.104H287.565L287.209 218.803H283.124Z",
|
|
5923
|
-
fill:
|
|
5924
|
-
stroke:
|
|
5921
|
+
fill: A.c956847,
|
|
5922
|
+
stroke: A.c48504C
|
|
5925
5923
|
}
|
|
5926
5924
|
),
|
|
5927
5925
|
/* @__PURE__ */ e(
|
|
5928
5926
|
"path",
|
|
5929
5927
|
{
|
|
5930
5928
|
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",
|
|
5931
|
-
fill:
|
|
5932
|
-
stroke:
|
|
5929
|
+
fill: A.cC8CEF4,
|
|
5930
|
+
stroke: A.c48504C
|
|
5933
5931
|
}
|
|
5934
5932
|
),
|
|
5935
5933
|
/* @__PURE__ */ e(
|
|
5936
5934
|
"path",
|
|
5937
5935
|
{
|
|
5938
5936
|
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",
|
|
5939
|
-
fill:
|
|
5940
|
-
stroke:
|
|
5937
|
+
fill: A.cC8CEF4,
|
|
5938
|
+
stroke: A.c48504C
|
|
5941
5939
|
}
|
|
5942
5940
|
),
|
|
5943
5941
|
/* @__PURE__ */ e(
|
|
5944
5942
|
"path",
|
|
5945
5943
|
{
|
|
5946
5944
|
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",
|
|
5947
|
-
fill:
|
|
5948
|
-
stroke:
|
|
5945
|
+
fill: A.cC8CEF4,
|
|
5946
|
+
stroke: A.c48504C
|
|
5949
5947
|
}
|
|
5950
5948
|
),
|
|
5951
5949
|
/* @__PURE__ */ e(
|
|
5952
5950
|
"path",
|
|
5953
5951
|
{
|
|
5954
5952
|
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",
|
|
5955
|
-
fill:
|
|
5953
|
+
fill: A.cBBC3F5
|
|
5956
5954
|
}
|
|
5957
5955
|
),
|
|
5958
5956
|
/* @__PURE__ */ e(
|
|
@@ -5969,52 +5967,52 @@ function Xi({ width: t, height: r }) {
|
|
|
5969
5967
|
"path",
|
|
5970
5968
|
{
|
|
5971
5969
|
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",
|
|
5972
|
-
fill:
|
|
5970
|
+
fill: A.cFFFFFF
|
|
5973
5971
|
}
|
|
5974
5972
|
)
|
|
5975
5973
|
}
|
|
5976
5974
|
),
|
|
5977
|
-
/* @__PURE__ */
|
|
5975
|
+
/* @__PURE__ */ s("g", { mask: "url(#mask0_2949_9690)", children: [
|
|
5978
5976
|
/* @__PURE__ */ e(
|
|
5979
5977
|
"path",
|
|
5980
5978
|
{
|
|
5981
5979
|
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",
|
|
5982
|
-
fill:
|
|
5980
|
+
fill: A.cFFFFFF
|
|
5983
5981
|
}
|
|
5984
5982
|
),
|
|
5985
5983
|
/* @__PURE__ */ e(
|
|
5986
5984
|
"path",
|
|
5987
5985
|
{
|
|
5988
5986
|
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",
|
|
5989
|
-
fill:
|
|
5987
|
+
fill: A.cD6D6D6
|
|
5990
5988
|
}
|
|
5991
5989
|
),
|
|
5992
5990
|
/* @__PURE__ */ e(
|
|
5993
5991
|
"path",
|
|
5994
5992
|
{
|
|
5995
5993
|
d: "M368.673 152.523H301.336V174.5H368.673V152.523Z",
|
|
5996
|
-
fill:
|
|
5994
|
+
fill: A.cF4F4F4
|
|
5997
5995
|
}
|
|
5998
5996
|
),
|
|
5999
5997
|
/* @__PURE__ */ e(
|
|
6000
5998
|
"path",
|
|
6001
5999
|
{
|
|
6002
6000
|
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",
|
|
6003
|
-
fill:
|
|
6001
|
+
fill: A.cEE8080
|
|
6004
6002
|
}
|
|
6005
6003
|
),
|
|
6006
6004
|
/* @__PURE__ */ e(
|
|
6007
6005
|
"path",
|
|
6008
6006
|
{
|
|
6009
6007
|
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",
|
|
6010
|
-
fill:
|
|
6008
|
+
fill: A.cE5EE80
|
|
6011
6009
|
}
|
|
6012
6010
|
),
|
|
6013
6011
|
/* @__PURE__ */ e(
|
|
6014
6012
|
"path",
|
|
6015
6013
|
{
|
|
6016
6014
|
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",
|
|
6017
|
-
fill:
|
|
6015
|
+
fill: A.c46F16B
|
|
6018
6016
|
}
|
|
6019
6017
|
)
|
|
6020
6018
|
] }),
|
|
@@ -6022,14 +6020,14 @@ function Xi({ width: t, height: r }) {
|
|
|
6022
6020
|
"path",
|
|
6023
6021
|
{
|
|
6024
6022
|
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",
|
|
6025
|
-
stroke:
|
|
6023
|
+
stroke: A.c48504C
|
|
6026
6024
|
}
|
|
6027
6025
|
),
|
|
6028
6026
|
/* @__PURE__ */ e(
|
|
6029
6027
|
"path",
|
|
6030
6028
|
{
|
|
6031
6029
|
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",
|
|
6032
|
-
stroke:
|
|
6030
|
+
stroke: A.c86512B,
|
|
6033
6031
|
strokeWidth: "2",
|
|
6034
6032
|
strokeLinecap: "round"
|
|
6035
6033
|
}
|
|
@@ -6039,21 +6037,21 @@ function Xi({ width: t, height: r }) {
|
|
|
6039
6037
|
"path",
|
|
6040
6038
|
{
|
|
6041
6039
|
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",
|
|
6042
|
-
fill:
|
|
6040
|
+
fill: A.cBBDEFB,
|
|
6043
6041
|
fillOpacity: "0.6"
|
|
6044
6042
|
}
|
|
6045
6043
|
),
|
|
6046
|
-
/* @__PURE__ */ e("rect", { x: "43", y: "87.5", width: "46", height: "20", fill:
|
|
6047
|
-
/* @__PURE__ */ e("rect", { x: "29", y: "109.5", width: "46", height: "20", fill:
|
|
6048
|
-
/* @__PURE__ */ e("rect", { x: "29", y: "65.5", width: "46", height: "20", fill:
|
|
6049
|
-
/* @__PURE__ */ e("rect", { x: "356", y: "0.5", width: "55", height: "20", fill:
|
|
6050
|
-
/* @__PURE__ */ e("rect", { x: "572", y: "142.5", width: "55", height: "20", fill:
|
|
6051
|
-
/* @__PURE__ */ e("rect", { x: "589", y: "120.5", width: "55", height: "20", fill:
|
|
6044
|
+
/* @__PURE__ */ e("rect", { x: "43", y: "87.5", width: "46", height: "20", fill: A.cD6EBFD }),
|
|
6045
|
+
/* @__PURE__ */ e("rect", { x: "29", y: "109.5", width: "46", height: "20", fill: A.cD6EBFD }),
|
|
6046
|
+
/* @__PURE__ */ e("rect", { x: "29", y: "65.5", width: "46", height: "20", fill: A.cD6EBFD }),
|
|
6047
|
+
/* @__PURE__ */ e("rect", { x: "356", y: "0.5", width: "55", height: "20", fill: A.cD6EBFD }),
|
|
6048
|
+
/* @__PURE__ */ e("rect", { x: "572", y: "142.5", width: "55", height: "20", fill: A.cD6EBFD }),
|
|
6049
|
+
/* @__PURE__ */ e("rect", { x: "589", y: "120.5", width: "55", height: "20", fill: A.cD6EBFD }),
|
|
6052
6050
|
/* @__PURE__ */ e(
|
|
6053
6051
|
"path",
|
|
6054
6052
|
{
|
|
6055
6053
|
d: "M3 255.5L651 255.5",
|
|
6056
|
-
stroke:
|
|
6054
|
+
stroke: A.c64B5F6,
|
|
6057
6055
|
strokeWidth: "5",
|
|
6058
6056
|
strokeLinecap: "round"
|
|
6059
6057
|
}
|
|
@@ -6063,7 +6061,7 @@ function Xi({ width: t, height: r }) {
|
|
|
6063
6061
|
{
|
|
6064
6062
|
width: "179",
|
|
6065
6063
|
height: "192",
|
|
6066
|
-
fill:
|
|
6064
|
+
fill: A.cFFFFFF,
|
|
6067
6065
|
transform: "translate(246 60.5)"
|
|
6068
6066
|
}
|
|
6069
6067
|
) }) })
|
|
@@ -6073,7 +6071,7 @@ function Xi({ width: t, height: r }) {
|
|
|
6073
6071
|
}
|
|
6074
6072
|
function ko({ onClick: t }) {
|
|
6075
6073
|
const r = ne("md");
|
|
6076
|
-
return /* @__PURE__ */
|
|
6074
|
+
return /* @__PURE__ */ s(
|
|
6077
6075
|
f,
|
|
6078
6076
|
{
|
|
6079
6077
|
height: "height-screen",
|
|
@@ -6108,7 +6106,7 @@ const c = {
|
|
|
6108
6106
|
cFFFFFF: "#FFFFFF"
|
|
6109
6107
|
};
|
|
6110
6108
|
function Ki({ width: t, height: r }) {
|
|
6111
|
-
return /* @__PURE__ */ e(q, { children: /* @__PURE__ */
|
|
6109
|
+
return /* @__PURE__ */ e(q, { children: /* @__PURE__ */ s(
|
|
6112
6110
|
"svg",
|
|
6113
6111
|
{
|
|
6114
6112
|
width: t,
|
|
@@ -6781,7 +6779,7 @@ function Ki({ width: t, height: r }) {
|
|
|
6781
6779
|
}
|
|
6782
6780
|
function So({ onClick: t }) {
|
|
6783
6781
|
const r = ne("md");
|
|
6784
|
-
return /* @__PURE__ */
|
|
6782
|
+
return /* @__PURE__ */ s(
|
|
6785
6783
|
f,
|
|
6786
6784
|
{
|
|
6787
6785
|
height: "height-screen",
|
|
@@ -6817,9 +6815,9 @@ function So({ onClick: t }) {
|
|
|
6817
6815
|
);
|
|
6818
6816
|
}
|
|
6819
6817
|
const Fo = (t) => {
|
|
6820
|
-
var i, o, n, l,
|
|
6818
|
+
var i, o, n, l, u;
|
|
6821
6819
|
const r = ne("md");
|
|
6822
|
-
return /* @__PURE__ */
|
|
6820
|
+
return /* @__PURE__ */ s(
|
|
6823
6821
|
ut,
|
|
6824
6822
|
{
|
|
6825
6823
|
isShow: t.isShow,
|
|
@@ -6841,13 +6839,13 @@ const Fo = (t) => {
|
|
|
6841
6839
|
direction: ((i = t.containerConfirmBtnProps) == null ? void 0 : i.direction) || "row",
|
|
6842
6840
|
justify: ((o = t.containerConfirmBtnProps) == null ? void 0 : o.justify) || "flex-end",
|
|
6843
6841
|
...t.containerConfirmBtnProps,
|
|
6844
|
-
children: /* @__PURE__ */
|
|
6842
|
+
children: /* @__PURE__ */ s(
|
|
6845
6843
|
f,
|
|
6846
6844
|
{
|
|
6847
6845
|
display: "flex",
|
|
6848
6846
|
direction: ((n = t.wrapperConfirmBtnProps) == null ? void 0 : n.direction) || "row",
|
|
6849
6847
|
justify: ((l = t.wrapperConfirmBtnProps) == null ? void 0 : l.justify) || "flex-end",
|
|
6850
|
-
gap: ((
|
|
6848
|
+
gap: ((u = t.wrapperConfirmBtnProps) == null ? void 0 : u.gap) || "sm",
|
|
6851
6849
|
...t.wrapperConfirmBtnProps,
|
|
6852
6850
|
children: [
|
|
6853
6851
|
t.onCancel && /* @__PURE__ */ e(N, { secondary: !0, onClick: t.onCancel, size: "md", fullWidth: !0, children: t.titleCancelBtn || "Cancel" }),
|
|
@@ -6887,32 +6885,32 @@ const Fo = (t) => {
|
|
|
6887
6885
|
customHeight: o,
|
|
6888
6886
|
paddingInline: n = "spacing-0",
|
|
6889
6887
|
paddingBlock: l = "spacing-0",
|
|
6890
|
-
header:
|
|
6888
|
+
header: u,
|
|
6891
6889
|
footer: a,
|
|
6892
6890
|
title: h,
|
|
6893
|
-
titleTag:
|
|
6891
|
+
titleTag: d,
|
|
6894
6892
|
action: g,
|
|
6895
6893
|
actionContainer: m,
|
|
6896
6894
|
containerProps: y,
|
|
6897
6895
|
bodyProps: b,
|
|
6898
|
-
headerProps:
|
|
6896
|
+
headerProps: S = { borderBottom: !0 },
|
|
6899
6897
|
footerProps: C = { borderTop: !0 },
|
|
6900
|
-
variantTag:
|
|
6898
|
+
variantTag: I = "info"
|
|
6901
6899
|
}) => {
|
|
6902
6900
|
const Z = ie(null), [T, U] = k("100vh");
|
|
6903
6901
|
$(() => {
|
|
6904
|
-
const
|
|
6902
|
+
const H = () => {
|
|
6905
6903
|
if (Z.current) {
|
|
6906
6904
|
const P = Z.current.getBoundingClientRect().top;
|
|
6907
6905
|
U(`calc(100vh - ${P}px)`);
|
|
6908
6906
|
}
|
|
6909
6907
|
};
|
|
6910
|
-
return
|
|
6908
|
+
return H(), window.addEventListener("resize", H), () => window.removeEventListener("resize", H);
|
|
6911
6909
|
}, []);
|
|
6912
|
-
const M = () =>
|
|
6910
|
+
const M = () => d ? /* @__PURE__ */ s(f, { direction: "row", gap: "sm", align: "center", children: [
|
|
6913
6911
|
/* @__PURE__ */ e(x, { fontWeight: "medium", children: h }),
|
|
6914
|
-
/* @__PURE__ */ e(Le, { border: !0, text:
|
|
6915
|
-
] }) : /* @__PURE__ */ e(x, { fontWeight: "medium", children: h }), ae = () =>
|
|
6912
|
+
/* @__PURE__ */ e(Le, { border: !0, text: d, variant: I })
|
|
6913
|
+
] }) : /* @__PURE__ */ e(x, { fontWeight: "medium", children: h }), ae = () => u || /* @__PURE__ */ s(
|
|
6916
6914
|
f,
|
|
6917
6915
|
{
|
|
6918
6916
|
direction: "row",
|
|
@@ -6924,8 +6922,8 @@ const Fo = (t) => {
|
|
|
6924
6922
|
/* @__PURE__ */ e(f, { ...m, children: g ?? null })
|
|
6925
6923
|
]
|
|
6926
6924
|
}
|
|
6927
|
-
), J = !!(
|
|
6928
|
-
return /* @__PURE__ */
|
|
6925
|
+
), J = !!(u || h || g);
|
|
6926
|
+
return /* @__PURE__ */ s(
|
|
6929
6927
|
f,
|
|
6930
6928
|
{
|
|
6931
6929
|
ref: Z,
|
|
@@ -6944,7 +6942,7 @@ const Fo = (t) => {
|
|
|
6944
6942
|
...(y == null ? void 0 : y.style) ?? {}
|
|
6945
6943
|
},
|
|
6946
6944
|
children: [
|
|
6947
|
-
|
|
6945
|
+
u !== null && J ? /* @__PURE__ */ e(tr, { ...S, children: ae() }) : null,
|
|
6948
6946
|
/* @__PURE__ */ e(
|
|
6949
6947
|
f,
|
|
6950
6948
|
{
|
|
@@ -6965,16 +6963,16 @@ const Fo = (t) => {
|
|
|
6965
6963
|
}
|
|
6966
6964
|
), Mo = qe.memo(
|
|
6967
6965
|
({ value: t, options: r = [], onChange: i, multiple: o }) => {
|
|
6968
|
-
const n = (t == null ? void 0 : t.map((a) => a.value)) || [], l = (r == null ? void 0 : r.filter((a) => n.includes(a.value))) || [],
|
|
6966
|
+
const n = (t == null ? void 0 : t.map((a) => a.value)) || [], l = (r == null ? void 0 : r.filter((a) => n.includes(a.value))) || [], u = (a) => {
|
|
6969
6967
|
const h = [...l];
|
|
6970
|
-
let
|
|
6971
|
-
o ?
|
|
6968
|
+
let d = [];
|
|
6969
|
+
o ? d = n.includes(a.value) ? h.filter((g) => g.value !== a.value) : [...h, a] : d = [a], i == null || i(d);
|
|
6972
6970
|
};
|
|
6973
6971
|
return /* @__PURE__ */ e(f, { direction: "row", gap: "sm", flexWrap: "wrap", children: r == null ? void 0 : r.map((a, h) => /* @__PURE__ */ e(
|
|
6974
6972
|
N,
|
|
6975
6973
|
{
|
|
6976
6974
|
...n.includes(a.value) ? { primary: !0 } : { secondary: !0 },
|
|
6977
|
-
onClick: () =>
|
|
6975
|
+
onClick: () => u(a),
|
|
6978
6976
|
children: a.label
|
|
6979
6977
|
},
|
|
6980
6978
|
h
|
|
@@ -7047,7 +7045,7 @@ function tn({ value: t, onChange: r }) {
|
|
|
7047
7045
|
)) });
|
|
7048
7046
|
}
|
|
7049
7047
|
function rn() {
|
|
7050
|
-
return /* @__PURE__ */
|
|
7048
|
+
return /* @__PURE__ */ s(
|
|
7051
7049
|
"svg",
|
|
7052
7050
|
{
|
|
7053
7051
|
xmlns: "http://www.w3.org/2000/svg",
|
|
@@ -7089,15 +7087,15 @@ function on(t) {
|
|
|
7089
7087
|
viewMode: o,
|
|
7090
7088
|
defaultViewMode: n = "modal",
|
|
7091
7089
|
onViewModeChange: l,
|
|
7092
|
-
showViewModeToggle:
|
|
7090
|
+
showViewModeToggle: u = !0,
|
|
7093
7091
|
showCloseButton: a = !0,
|
|
7094
7092
|
size: h,
|
|
7095
|
-
asideWidth:
|
|
7093
|
+
asideWidth: d,
|
|
7096
7094
|
disableEscapeClose: g = !1,
|
|
7097
7095
|
disableBackdropClose: m = !1,
|
|
7098
7096
|
lockBodyScroll: y = !0,
|
|
7099
7097
|
children: b
|
|
7100
|
-
} = t, [
|
|
7098
|
+
} = t, [S, C] = k(n), I = o ?? S, T = ne("md") ? I : "fullscreen", U = ve(
|
|
7101
7099
|
(Q) => {
|
|
7102
7100
|
o === void 0 && C(Q), l == null || l(Q);
|
|
7103
7101
|
},
|
|
@@ -7121,7 +7119,7 @@ function on(t) {
|
|
|
7121
7119
|
), J = he(
|
|
7122
7120
|
() => $e(b, bt),
|
|
7123
7121
|
[b]
|
|
7124
|
-
),
|
|
7122
|
+
), H = he(
|
|
7125
7123
|
() => $e(b, Dt),
|
|
7126
7124
|
[b]
|
|
7127
7125
|
), P = he(
|
|
@@ -7136,11 +7134,11 @@ function on(t) {
|
|
|
7136
7134
|
T === "sidebar" && re["lyd-sidebar"]
|
|
7137
7135
|
].filter(Boolean).join(" "), le = {
|
|
7138
7136
|
"--lyd-max-w": nn(h),
|
|
7139
|
-
...
|
|
7137
|
+
...d !== void 0 && { "--lyd-aside-w": d }
|
|
7140
7138
|
}, G = () => {
|
|
7141
7139
|
m || i();
|
|
7142
7140
|
};
|
|
7143
|
-
return /* @__PURE__ */
|
|
7141
|
+
return /* @__PURE__ */ s(
|
|
7144
7142
|
"div",
|
|
7145
7143
|
{
|
|
7146
7144
|
className: re["lyd-root"],
|
|
@@ -7156,11 +7154,11 @@ function on(t) {
|
|
|
7156
7154
|
"aria-hidden": "true"
|
|
7157
7155
|
}
|
|
7158
7156
|
),
|
|
7159
|
-
/* @__PURE__ */
|
|
7160
|
-
/* @__PURE__ */
|
|
7157
|
+
/* @__PURE__ */ s("div", { className: oe, children: [
|
|
7158
|
+
/* @__PURE__ */ s("div", { className: re["lyd-header"], children: [
|
|
7161
7159
|
/* @__PURE__ */ e("div", { className: re["lyd-header-content"], children: ae }),
|
|
7162
|
-
/* @__PURE__ */
|
|
7163
|
-
|
|
7160
|
+
/* @__PURE__ */ s("div", { className: re["lyd-header-actions"], children: [
|
|
7161
|
+
u && /* @__PURE__ */ e(tn, { value: I, onChange: U }),
|
|
7164
7162
|
a && /* @__PURE__ */ e(
|
|
7165
7163
|
"button",
|
|
7166
7164
|
{
|
|
@@ -7173,9 +7171,9 @@ function on(t) {
|
|
|
7173
7171
|
)
|
|
7174
7172
|
] })
|
|
7175
7173
|
] }),
|
|
7176
|
-
/* @__PURE__ */
|
|
7174
|
+
/* @__PURE__ */ s("div", { className: re["lyd-main"], children: [
|
|
7177
7175
|
/* @__PURE__ */ e("div", { className: re["lyd-body"], children: J }),
|
|
7178
|
-
|
|
7176
|
+
H && /* @__PURE__ */ e("aside", { className: re["lyd-aside"], children: H })
|
|
7179
7177
|
] }),
|
|
7180
7178
|
P && /* @__PURE__ */ e("div", { className: re["lyd-footer"], children: P })
|
|
7181
7179
|
] })
|
|
@@ -7194,7 +7192,7 @@ function Lo({ url: t, filename: r, onClose: i }) {
|
|
|
7194
7192
|
n.key === "Escape" && i();
|
|
7195
7193
|
};
|
|
7196
7194
|
return window.addEventListener("keydown", o), () => window.removeEventListener("keydown", o);
|
|
7197
|
-
}, [i]), /* @__PURE__ */
|
|
7195
|
+
}, [i]), /* @__PURE__ */ s(
|
|
7198
7196
|
"div",
|
|
7199
7197
|
{
|
|
7200
7198
|
onClick: i,
|
|
@@ -7210,7 +7208,7 @@ function Lo({ url: t, filename: r, onClose: i }) {
|
|
|
7210
7208
|
gap: "12px"
|
|
7211
7209
|
},
|
|
7212
7210
|
children: [
|
|
7213
|
-
/* @__PURE__ */
|
|
7211
|
+
/* @__PURE__ */ s(
|
|
7214
7212
|
"div",
|
|
7215
7213
|
{
|
|
7216
7214
|
onClick: (o) => o.stopPropagation(),
|
|
@@ -7308,19 +7306,19 @@ function Bo({
|
|
|
7308
7306
|
$(() => {
|
|
7309
7307
|
let n = null, l = null;
|
|
7310
7308
|
for (const h of r) {
|
|
7311
|
-
const
|
|
7312
|
-
if (
|
|
7313
|
-
n =
|
|
7309
|
+
const d = h.items.find((g) => g.to ? g.to === "/" ? o.pathname === "/" : !!(g.to === o.pathname || o.pathname.startsWith(g.to + "/")) : !1);
|
|
7310
|
+
if (d) {
|
|
7311
|
+
n = d, l = h;
|
|
7314
7312
|
break;
|
|
7315
7313
|
}
|
|
7316
7314
|
}
|
|
7317
|
-
const
|
|
7318
|
-
n != null && n.title &&
|
|
7319
|
-
const a = (h,
|
|
7320
|
-
document.title = (i || a)(
|
|
7315
|
+
const u = [];
|
|
7316
|
+
n != null && n.title && u.push(n.title), l != null && l.name && u.push(l.name.toTitleCase());
|
|
7317
|
+
const a = (h, d) => h.length > 0 ? `${h.join(" - ")} | ${d}` : d;
|
|
7318
|
+
document.title = (i || a)(u, t);
|
|
7321
7319
|
}, [o.pathname]);
|
|
7322
7320
|
}
|
|
7323
|
-
const
|
|
7321
|
+
const Ao = () => {
|
|
7324
7322
|
const [t, r] = Ye(), i = Pe(t.toString()), o = Jt(), n = Ve(), l = o.id;
|
|
7325
7323
|
return {
|
|
7326
7324
|
// query params
|
|
@@ -7339,12 +7337,12 @@ const zo = () => {
|
|
|
7339
7337
|
hasId: !!l
|
|
7340
7338
|
};
|
|
7341
7339
|
};
|
|
7342
|
-
function
|
|
7340
|
+
function Ho(t) {
|
|
7343
7341
|
var o, n;
|
|
7344
7342
|
const r = t.decodedAccessToken;
|
|
7345
7343
|
return he(() => {
|
|
7346
|
-
var h,
|
|
7347
|
-
const l = ((
|
|
7344
|
+
var h, d;
|
|
7345
|
+
const l = ((d = (h = r == null ? void 0 : r.access) == null ? void 0 : h.role) == null ? void 0 : d.code) ?? "", u = Object.keys(t.role).reduce(
|
|
7348
7346
|
(g, m) => {
|
|
7349
7347
|
const y = `is${m.toLowerCase().replace(/(^\w|_\w)/g, (b) => b.replace("_", "").toUpperCase())}`;
|
|
7350
7348
|
return { ...g, [y]: !1 };
|
|
@@ -7358,7 +7356,7 @@ function Ao(t) {
|
|
|
7358
7356
|
...g,
|
|
7359
7357
|
[y]: l === t.role[m]
|
|
7360
7358
|
};
|
|
7361
|
-
},
|
|
7359
|
+
}, u),
|
|
7362
7360
|
hasRole: (g) => l === t.role[g],
|
|
7363
7361
|
getRoleKey: () => l
|
|
7364
7362
|
};
|
|
@@ -7367,7 +7365,7 @@ function Ao(t) {
|
|
|
7367
7365
|
export {
|
|
7368
7366
|
Gn as ActionMenu,
|
|
7369
7367
|
hi as AdvanceFilterBar,
|
|
7370
|
-
|
|
7368
|
+
In as App,
|
|
7371
7369
|
kr as AppComponent,
|
|
7372
7370
|
Qt as AppContext,
|
|
7373
7371
|
Nn as AppLayout,
|
|
@@ -7389,7 +7387,7 @@ export {
|
|
|
7389
7387
|
Fr as HeaderLeftSlotProvider,
|
|
7390
7388
|
jn as HorizontalField,
|
|
7391
7389
|
Lo as ImagePreview,
|
|
7392
|
-
|
|
7390
|
+
Ii as InputFile,
|
|
7393
7391
|
Gi as InputImage,
|
|
7394
7392
|
Ke as LayoutDialog,
|
|
7395
7393
|
Dt as LayoutDialogAside,
|
|
@@ -7397,7 +7395,7 @@ export {
|
|
|
7397
7395
|
wt as LayoutDialogFooter,
|
|
7398
7396
|
vt as LayoutDialogHeader,
|
|
7399
7397
|
_n as ModuleSwitcher,
|
|
7400
|
-
|
|
7398
|
+
Ar as ModuleSwitcherModal,
|
|
7401
7399
|
wo as NotFoundPage,
|
|
7402
7400
|
Zn as PageLayout,
|
|
7403
7401
|
Xe as Pressable,
|
|
@@ -7432,7 +7430,7 @@ export {
|
|
|
7432
7430
|
to as getInitials,
|
|
7433
7431
|
qn as getValueDropdownMultipleFilter,
|
|
7434
7432
|
Un as getValueRadioFilter,
|
|
7435
|
-
|
|
7433
|
+
di as getValueSearch,
|
|
7436
7434
|
nt as getValuesFilter,
|
|
7437
7435
|
Vt as handleChangeFilter,
|
|
7438
7436
|
yo as handleOnScroll,
|
|
@@ -7455,11 +7453,11 @@ export {
|
|
|
7455
7453
|
oo as textWidth,
|
|
7456
7454
|
Yt as useApp,
|
|
7457
7455
|
br as useAppState,
|
|
7458
|
-
|
|
7456
|
+
Ho as useAuthRole,
|
|
7459
7457
|
Bo as useDynamicTitle,
|
|
7460
7458
|
er as useModuleSelection,
|
|
7461
7459
|
xt as useRouteInfo,
|
|
7462
|
-
|
|
7460
|
+
Ao as useRouteParams,
|
|
7463
7461
|
wr as useSidebarBadges,
|
|
7464
7462
|
Wo as useTabState
|
|
7465
7463
|
};
|