@archbase/admin 4.0.45 → 4.0.46
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/ArchbaseAdminMainLayout.d.ts +13 -1
- package/dist/archbase-admin-4.0.46.tgz +0 -0
- package/dist/index.js +1184 -1178
- package/package.json +7 -7
- package/dist/archbase-admin-4.0.45.tgz +0 -0
package/dist/index.js
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
import { jsx as r, jsxs as R, Fragment as Pe } from "react/jsx-runtime";
|
|
2
|
-
import * as
|
|
3
|
-
import xe, { useState as ge, useRef as
|
|
4
|
-
import { useArchbaseSecurityManager as
|
|
5
|
-
import { useUncontrolled as aA, useMediaQuery as
|
|
6
|
-
import { Flex as Ye, useMantineColorScheme as de, Menu as ie, ActionIcon as De, Group as Le, Tooltip as Me, Button as
|
|
7
|
-
import { IconSun as
|
|
8
|
-
import { useArchbaseAppContext as bA, getI18nextInstance as ne, useArchbaseTranslation as mA, archbaseI18next as Re, useArchbaseValidator as
|
|
9
|
-
import { BRFlag as He, USFlag as
|
|
10
|
-
import { spotlight as
|
|
11
|
-
import { useNavigate as qe, useLocation as je, matchPath as
|
|
12
|
-
import { useLocation as Xe, useOutlet as
|
|
13
|
-
import { useMediaQuery as
|
|
14
|
-
import { useArchbaseNavigateParams as
|
|
15
|
-
import { SubMenu as
|
|
16
|
-
import { createPortal as
|
|
17
|
-
import
|
|
18
|
-
import { ArchbaseAdvancedTabs as
|
|
19
|
-
import { create as
|
|
20
|
-
import { persist as
|
|
21
|
-
import { useArchbaseStore as
|
|
22
|
-
import { ArchbaseFormModalTemplate as
|
|
23
|
-
import { createStore as
|
|
24
|
-
const rA = xe.createContext({}),
|
|
2
|
+
import * as HA from "react";
|
|
3
|
+
import xe, { useState as ge, useRef as Z, useEffect as oe, useMemo as ce, useContext as ye, useCallback as C, createContext as Ne, memo as YA, Fragment as qA, useLayoutEffect as Er, useImperativeHandle as Rr, startTransition as nA, useReducer as Pr, useSyncExternalStore as Lr } from "react";
|
|
4
|
+
import { useArchbaseSecurityManager as Mr } from "@archbase/security";
|
|
5
|
+
import { useUncontrolled as aA, useMediaQuery as DA, useHotkeys as Dr, useDisclosure as Nr, useFocusTrap as zr, useForceUpdate as Or } from "@mantine/hooks";
|
|
6
|
+
import { Flex as Ye, useMantineColorScheme as de, Menu as ie, ActionIcon as De, Group as Le, Tooltip as Me, Button as $r, ScrollArea as ze, Badge as pA, Center as Je, Image as Qr, useMantineTheme as me, px as fe, Burger as Kr, Box as H, Avatar as iA, Text as Te, Stack as _, Skeleton as pe, Paper as Fr, NavLink as NA, Kbd as jA, UnstyledButton as cA, Collapse as Vr, TextInput as XA, Indicator as Gr, Transition as Br, Divider as dA, AppShell as Be, Drawer as JA } from "@mantine/core";
|
|
7
|
+
import { IconSun as _A, IconMoonStars as WA, IconTerminal as Ur, IconSearch as _e, IconAlertCircle as Hr, IconDots as ZA, IconChevronRight as gA, IconChevronDown as Yr, IconX as er, IconChevronLeft as qr, IconHome2 as jr, IconDashboard as Xr, IconUsers as Jr, IconListSearch as Ar, IconUserPlus as _r, IconNews as Wr, IconFilePlus as Zr, IconSettings as et } from "@tabler/icons-react";
|
|
8
|
+
import { useArchbaseAppContext as bA, getI18nextInstance as ne, useArchbaseTranslation as mA, archbaseI18next as Re, useArchbaseValidator as At, ARCHBASE_IOC_API_TYPE as rt } from "@archbase/core";
|
|
9
|
+
import { BRFlag as He, USFlag as rr, ESFlag as uA, VEFlag as tt, UYFlag as ot, SVFlag as nt, PYFlag as st, PEFlag as lt, PAFlag as at, NIFlag as it, MXFlag as ct, HNFlag as dt, GTFlag as ut, ECFlag as ht, DOFlag as ft, CUFlag as pt, CRFlag as gt, COFlag as bt, CLFlag as mt, BOFlag as yt, ARFlag as vt } from "mantine-flagpack";
|
|
10
|
+
import { spotlight as Ct, Spotlight as Ue } from "@mantine/spotlight";
|
|
11
|
+
import { useNavigate as qe, useLocation as je, matchPath as zA } from "react-router";
|
|
12
|
+
import { useLocation as Xe, useOutlet as wt, matchPath as St, Route as Ke, Routes as tr, useParams as or, useNavigationType as kt, UNSAFE_LocationContext as xt, useSearchParams as nr, useNavigate as It } from "react-router-dom";
|
|
13
|
+
import { useMediaQuery as Tt } from "usehooks-ts";
|
|
14
|
+
import { useArchbaseNavigateParams as Et, useArchbaseVisible as Rt, ArchbaseNotifications as Pt, ArchbaseAvatarEdit as Lt, ArchbaseEdit as sA } from "@archbase/components";
|
|
15
|
+
import { SubMenu as Mt, MenuItem as OA, menuClasses as te, Sidebar as sr, Menu as lr, sidebarClasses as ar } from "react-pro-sidebar";
|
|
16
|
+
import { createPortal as Dt } from "react-dom";
|
|
17
|
+
import Nt from "@rehooks/component-size";
|
|
18
|
+
import { ArchbaseAdvancedTabs as zt } from "@archbase/layout";
|
|
19
|
+
import { create as ir, useStore as Ot } from "zustand";
|
|
20
|
+
import { persist as $t } from "zustand/middleware";
|
|
21
|
+
import { useArchbaseStore as Qt, useArchbaseRemoteServiceApi as Kt, useArchbaseRemoteDataSource as Ft } from "@archbase/data";
|
|
22
|
+
import { ArchbaseFormModalTemplate as Vt } from "@archbase/template";
|
|
23
|
+
import { createStore as Gt } from "zustand/vanilla";
|
|
24
|
+
const rA = xe.createContext({}), Bt = ({
|
|
25
25
|
navigationData: A,
|
|
26
26
|
user: t,
|
|
27
27
|
owner: o,
|
|
@@ -33,15 +33,15 @@ const rA = xe.createContext({}), Kt = ({
|
|
|
33
33
|
onNavigationDataChange: i,
|
|
34
34
|
initialSidebarCollapsed: h
|
|
35
35
|
}) => {
|
|
36
|
-
const [c, d] = ge(h), [u, p] = ge(!1), [
|
|
36
|
+
const [c, d] = ge(h), [u, p] = ge(!1), [v, b] = ge(() => a === !0), [m, g] = ge(null), f = Z(!1), [x, I] = aA({
|
|
37
37
|
value: i !== void 0 ? A : void 0,
|
|
38
38
|
defaultValue: a ? [] : A,
|
|
39
39
|
finalValue: [],
|
|
40
40
|
onChange: i
|
|
41
41
|
});
|
|
42
42
|
oe(() => {
|
|
43
|
-
}, [
|
|
44
|
-
const { securityManager: L } =
|
|
43
|
+
}, [x, a]);
|
|
44
|
+
const { securityManager: L } = Mr({
|
|
45
45
|
resourceName: l?.navigationResourceName ? l.navigationResourceName : "ArchbaseAdvancedSidebar",
|
|
46
46
|
resourceDescription: l?.navigationResourceDescription ? l.navigationResourceDescription : "archbase:Navegação",
|
|
47
47
|
enableSecurity: a
|
|
@@ -56,31 +56,31 @@ const rA = xe.createContext({}), Kt = ({
|
|
|
56
56
|
if (f.current)
|
|
57
57
|
return;
|
|
58
58
|
A.filter((P) => P.showInSidebar).forEach((P) => {
|
|
59
|
-
L.registerAction(P.label, P.label), P?.links?.forEach((
|
|
59
|
+
L.registerAction(P.label, P.label), P?.links?.forEach((y) => L.registerAction(`${P.label} -> ${y.label}`, `${P.label} -> ${y.label}`));
|
|
60
60
|
});
|
|
61
|
-
const
|
|
61
|
+
const V = () => {
|
|
62
62
|
f.current = !0;
|
|
63
|
-
const P = A.map((
|
|
64
|
-
...
|
|
65
|
-
disabled: !L.hasPermission(
|
|
66
|
-
links:
|
|
67
|
-
const
|
|
63
|
+
const P = A.map((y) => ({
|
|
64
|
+
...y,
|
|
65
|
+
disabled: !L.hasPermission(y.label),
|
|
66
|
+
links: y.links && y.links.map((F) => {
|
|
67
|
+
const T = L.hasPermission(`${y.label} -> ${F.label}`);
|
|
68
68
|
return {
|
|
69
|
-
...
|
|
70
|
-
disabled: !
|
|
69
|
+
...F,
|
|
70
|
+
disabled: !T
|
|
71
71
|
};
|
|
72
72
|
})
|
|
73
73
|
}));
|
|
74
|
-
|
|
75
|
-
},
|
|
74
|
+
I(P), b(!1), g(null);
|
|
75
|
+
}, Y = !L.isLoading() && !L.isError();
|
|
76
76
|
if (L.isError()) {
|
|
77
77
|
f.current = !0;
|
|
78
78
|
const P = L.getError() || "Erro ao carregar permissões de navegação";
|
|
79
|
-
g(P), b(!1),
|
|
79
|
+
g(P), b(!1), I(A);
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
|
-
if (
|
|
83
|
-
|
|
82
|
+
if (Y) {
|
|
83
|
+
V();
|
|
84
84
|
return;
|
|
85
85
|
}
|
|
86
86
|
b(!0), g(null);
|
|
@@ -89,22 +89,22 @@ const rA = xe.createContext({}), Kt = ({
|
|
|
89
89
|
if (!O && L.isError()) {
|
|
90
90
|
clearInterval(D), f.current = !0;
|
|
91
91
|
const P = L.getError() || "Erro ao carregar permissões de navegação";
|
|
92
|
-
g(P), b(!1),
|
|
92
|
+
g(P), b(!1), I(A);
|
|
93
93
|
}
|
|
94
|
-
}, 100),
|
|
95
|
-
O || (clearInterval(D), b((P) => P && (f.current = !0, console.warn("[ArchbaseAdminLayout] Timeout ao carregar permissões - carregando menu sem filtro de segurança"),
|
|
94
|
+
}, 100), K = setTimeout(() => {
|
|
95
|
+
O || (clearInterval(D), b((P) => P && (f.current = !0, console.warn("[ArchbaseAdminLayout] Timeout ao carregar permissões - carregando menu sem filtro de segurança"), I(A), !1)));
|
|
96
96
|
}, 3e3);
|
|
97
97
|
return L.apply(() => {
|
|
98
|
-
O || (clearInterval(D), clearTimeout(
|
|
98
|
+
O || (clearInterval(D), clearTimeout(K), V());
|
|
99
99
|
}), () => {
|
|
100
|
-
O = !0, clearInterval(D), clearTimeout(
|
|
100
|
+
O = !0, clearInterval(D), clearTimeout(K);
|
|
101
101
|
};
|
|
102
|
-
}, [t?.id, a, A, L,
|
|
102
|
+
}, [t?.id, a, A, L, I]), /* @__PURE__ */ r(
|
|
103
103
|
rA.Provider,
|
|
104
104
|
{
|
|
105
105
|
value: {
|
|
106
|
-
navigationData:
|
|
107
|
-
setNavigationData:
|
|
106
|
+
navigationData: x,
|
|
107
|
+
setNavigationData: I,
|
|
108
108
|
user: t,
|
|
109
109
|
owner: o,
|
|
110
110
|
company: e,
|
|
@@ -114,13 +114,13 @@ const rA = xe.createContext({}), Kt = ({
|
|
|
114
114
|
hidden: u,
|
|
115
115
|
setHidden: p,
|
|
116
116
|
onNavigationDataChange: i,
|
|
117
|
-
isLoadingPermissions:
|
|
117
|
+
isLoadingPermissions: v,
|
|
118
118
|
permissionsError: m
|
|
119
119
|
},
|
|
120
120
|
children: s
|
|
121
121
|
}
|
|
122
122
|
);
|
|
123
|
-
},
|
|
123
|
+
}, Dn = ({ children: A }) => /* @__PURE__ */ r(Ye, { align: "center", direction: "row", wrap: "wrap", h: "100%", children: A }), Ut = () => {
|
|
124
124
|
const A = bA(), { colorScheme: t } = de(), o = t === "dark", [e, n] = ge(ne().language);
|
|
125
125
|
oe(() => {
|
|
126
126
|
const i = (h) => {
|
|
@@ -134,7 +134,7 @@ const rA = xe.createContext({}), Kt = ({
|
|
|
134
134
|
if (!i)
|
|
135
135
|
return /* @__PURE__ */ r(He, { size: 24 });
|
|
136
136
|
if (i === "en" || i === "en-US")
|
|
137
|
-
return /* @__PURE__ */ r(
|
|
137
|
+
return /* @__PURE__ */ r(rr, { size: 24 });
|
|
138
138
|
if (i === "pt-BR")
|
|
139
139
|
return /* @__PURE__ */ r(He, { size: 24 });
|
|
140
140
|
if (i.includes("es"))
|
|
@@ -143,41 +143,41 @@ const rA = xe.createContext({}), Kt = ({
|
|
|
143
143
|
case "es-ES":
|
|
144
144
|
return /* @__PURE__ */ r(uA, { size: 24 });
|
|
145
145
|
case "es-AR":
|
|
146
|
-
return /* @__PURE__ */ r(
|
|
146
|
+
return /* @__PURE__ */ r(vt, { size: 24 });
|
|
147
147
|
case "es-BO":
|
|
148
|
-
return /* @__PURE__ */ r(
|
|
148
|
+
return /* @__PURE__ */ r(yt, { size: 24 });
|
|
149
149
|
case "es-CL":
|
|
150
|
-
return /* @__PURE__ */ r(
|
|
150
|
+
return /* @__PURE__ */ r(mt, { size: 24 });
|
|
151
151
|
case "es-CO":
|
|
152
|
-
return /* @__PURE__ */ r(
|
|
152
|
+
return /* @__PURE__ */ r(bt, { size: 24 });
|
|
153
153
|
case "es-CR":
|
|
154
|
-
return /* @__PURE__ */ r(
|
|
154
|
+
return /* @__PURE__ */ r(gt, { size: 24 });
|
|
155
155
|
case "es-CU":
|
|
156
|
-
return /* @__PURE__ */ r(
|
|
156
|
+
return /* @__PURE__ */ r(pt, { size: 24 });
|
|
157
157
|
case "es-DO":
|
|
158
|
-
return /* @__PURE__ */ r(
|
|
158
|
+
return /* @__PURE__ */ r(ft, { size: 24 });
|
|
159
159
|
case "es-EC":
|
|
160
|
-
return /* @__PURE__ */ r(
|
|
160
|
+
return /* @__PURE__ */ r(ht, { size: 24 });
|
|
161
161
|
case "es-GT":
|
|
162
|
-
return /* @__PURE__ */ r(
|
|
162
|
+
return /* @__PURE__ */ r(ut, { size: 24 });
|
|
163
163
|
case "es-HN":
|
|
164
|
-
return /* @__PURE__ */ r(
|
|
164
|
+
return /* @__PURE__ */ r(dt, { size: 24 });
|
|
165
165
|
case "es-MX":
|
|
166
|
-
return /* @__PURE__ */ r(
|
|
166
|
+
return /* @__PURE__ */ r(ct, { size: 24 });
|
|
167
167
|
case "es-NI":
|
|
168
|
-
return /* @__PURE__ */ r(
|
|
168
|
+
return /* @__PURE__ */ r(it, { size: 24 });
|
|
169
169
|
case "es-PA":
|
|
170
|
-
return /* @__PURE__ */ r(
|
|
170
|
+
return /* @__PURE__ */ r(at, { size: 24 });
|
|
171
171
|
case "es-PE":
|
|
172
|
-
return /* @__PURE__ */ r(
|
|
172
|
+
return /* @__PURE__ */ r(lt, { size: 24 });
|
|
173
173
|
case "es-PY":
|
|
174
|
-
return /* @__PURE__ */ r(
|
|
174
|
+
return /* @__PURE__ */ r(st, { size: 24 });
|
|
175
175
|
case "es-SV":
|
|
176
|
-
return /* @__PURE__ */ r(
|
|
176
|
+
return /* @__PURE__ */ r(nt, { size: 24 });
|
|
177
177
|
case "es-UY":
|
|
178
|
-
return /* @__PURE__ */ r(
|
|
178
|
+
return /* @__PURE__ */ r(ot, { size: 24 });
|
|
179
179
|
case "es-VE":
|
|
180
|
-
return /* @__PURE__ */ r(
|
|
180
|
+
return /* @__PURE__ */ r(tt, { size: 24 });
|
|
181
181
|
default:
|
|
182
182
|
return /* @__PURE__ */ r(uA, { size: 24 });
|
|
183
183
|
}
|
|
@@ -200,8 +200,8 @@ const rA = xe.createContext({}), Kt = ({
|
|
|
200
200
|
/* @__PURE__ */ r(ie.Target, { children: /* @__PURE__ */ r(De, { variant: "transparent", color: o ? "white" : "blue", title: ne().t("toggleLanguage"), children: s(e) }) }),
|
|
201
201
|
/* @__PURE__ */ r(ie.Dropdown, { children: a() })
|
|
202
202
|
] });
|
|
203
|
-
},
|
|
204
|
-
const A = bA(), { colorScheme: t } = de(), { t: o, i18n: e } = mA(), n = (l) => l === "en" ? /* @__PURE__ */ r(
|
|
203
|
+
}, Ht = () => {
|
|
204
|
+
const A = bA(), { colorScheme: t } = de(), { t: o, i18n: e } = mA(), n = (l) => l === "en" ? /* @__PURE__ */ r(rr, { size: 24 }) : l === "pt-BR" ? /* @__PURE__ */ r(He, { size: 24 }) : l === "es" ? /* @__PURE__ */ r(uA, { size: 24 }) : /* @__PURE__ */ r(He, { size: 24 }), s = () => {
|
|
205
205
|
if (A.languages)
|
|
206
206
|
return A.languages.filter((l) => l).map((l) => /* @__PURE__ */ r(
|
|
207
207
|
ie.Item,
|
|
@@ -235,7 +235,7 @@ const rA = xe.createContext({}), Kt = ({
|
|
|
235
235
|
) }),
|
|
236
236
|
/* @__PURE__ */ r(ie.Dropdown, { children: s() })
|
|
237
237
|
] });
|
|
238
|
-
},
|
|
238
|
+
}, Yt = ({
|
|
239
239
|
toggleColorScheme: A,
|
|
240
240
|
sunColor: t = "white",
|
|
241
241
|
moonColor: o = "blue"
|
|
@@ -250,24 +250,24 @@ const rA = xe.createContext({}), Kt = ({
|
|
|
250
250
|
color: l ? t : o,
|
|
251
251
|
onClick: () => a(),
|
|
252
252
|
title: ne().t("archbase:toggleColorScheme"),
|
|
253
|
-
children: l ? /* @__PURE__ */ r(
|
|
253
|
+
children: l ? /* @__PURE__ */ r(_A, { size: "1.5rem" }) : /* @__PURE__ */ r(WA, { size: "1.5rem" })
|
|
254
254
|
}
|
|
255
255
|
);
|
|
256
|
-
},
|
|
257
|
-
function
|
|
256
|
+
}, qt = (A) => /* @__PURE__ */ r(Le, { gap: "sm", children: A.children });
|
|
257
|
+
function jt({ category: A, label: t, color: o, description: e, image: n, onClick: s }) {
|
|
258
258
|
return /* @__PURE__ */ r(
|
|
259
259
|
Ue.Action,
|
|
260
260
|
{
|
|
261
261
|
onClick: s,
|
|
262
262
|
label: `${ne().t(t || "")}`,
|
|
263
263
|
description: e ? ne().t(e) : void 0,
|
|
264
|
-
leftSection: n ? /* @__PURE__ */ r(Je, { children: /* @__PURE__ */ r(
|
|
264
|
+
leftSection: n ? /* @__PURE__ */ r(Je, { children: /* @__PURE__ */ r(Qr, { src: n, alt: ne().t(t || ""), width: 24, height: 24 }) }) : void 0,
|
|
265
265
|
rightSection: A ? /* @__PURE__ */ r(pA, { color: o, size: "sm", children: ne().t(A) }) : void 0
|
|
266
266
|
},
|
|
267
267
|
t
|
|
268
268
|
);
|
|
269
269
|
}
|
|
270
|
-
const
|
|
270
|
+
const Xt = ({ navigationData: A, color: t }) => {
|
|
271
271
|
const [o, e] = ge(""), n = qe(), { t: s } = mA(), a = ce(() => {
|
|
272
272
|
const i = new Array();
|
|
273
273
|
return A.forEach((h) => {
|
|
@@ -296,9 +296,9 @@ const Ht = ({ navigationData: A, color: t }) => {
|
|
|
296
296
|
}, [A, n]), l = a.filter((i) => {
|
|
297
297
|
const h = `${s(i.label || "")}`;
|
|
298
298
|
return h && h.toLowerCase().includes(o.toLowerCase().trim());
|
|
299
|
-
}).map((i) => /* @__PURE__ */ r(
|
|
299
|
+
}).map((i) => /* @__PURE__ */ r(jt, { ...i }, i.id));
|
|
300
300
|
return /* @__PURE__ */ r(Pe, { children: a && a.length > 0 ? /* @__PURE__ */ R(Pe, { children: [
|
|
301
|
-
/* @__PURE__ */ r(Me, { withinPortal: !0, withArrow: !0, label: `${s("archbase:Comandos ⌘M")}`, children: /* @__PURE__ */ r(
|
|
301
|
+
/* @__PURE__ */ r(Me, { withinPortal: !0, withArrow: !0, label: `${s("archbase:Comandos ⌘M")}`, children: /* @__PURE__ */ r($r, { color: t, leftSection: /* @__PURE__ */ r(Ur, { size: "24px" }), onClick: () => Ct.open() }) }),
|
|
302
302
|
/* @__PURE__ */ R(
|
|
303
303
|
Ue.Root,
|
|
304
304
|
{
|
|
@@ -312,7 +312,7 @@ const Ht = ({ navigationData: A, color: t }) => {
|
|
|
312
312
|
}
|
|
313
313
|
)
|
|
314
314
|
] }) : null });
|
|
315
|
-
},
|
|
315
|
+
}, Jt = "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAsLCwsMCw0ODg0SExETEhoYFhYYGiccHhweHCc8JSslJSslPDVANDA0QDVfSkJCSl9tXFdcbYR2doSnnqfa2v8BCwsLCwwLDQ4ODRITERMSGhgWFhgaJxweHB4cJzwlKyUlKyU8NUA0MDRANV9KQkJKX21cV1xthHZ2hKeep9ra///CABEIA7IDsgMBIgACEQEDEQH/xAAaAAEAAwEBAQAAAAAAAAAAAAAAAwQFAgEH/9oACAEBAAAAAPoQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHMMUfPg9de9ddSd9gAAAAAAAAAAAAAAAOK9eIAAHUs08gAAAAAAAAAAAAAACCrAAAABLbsAAAAAAAAAAAAAAHNWtwAAAAE+h6AAAAAAAAAAAAAEdSsAAAAAT6IAAAAAAAAAAAAB5SqgAAAAA1JAAAAAAAAAAAAAIKPAAAAAAGjOePQAAAAAAAAAAAKdMAAAAAA96888ezXJQAAAAAAAAAAChWAAAAAAAB7ozAAAAAAAAAAAUKwAAAAAAADvU9AAAAAAAAAACpSAAAAAAAAFy4AAAAAAAAAAIswAAAAAAAAPdXoAAAAAAAAAAzIgAAAAAAAAWrwAAAAAAAAACvngAAAAAAAAe6nYAAAAAAAAAGZEAAAAAAAAAt3QAAAAAAAAAcZQAAAAAAAAB1rAAAAAAAAAAq0QAAAAAAAABozgAAAAAAAABn1wAAAAAAAABavAAAAAAAAABlcAAAAAAAAACXTAAAAAAAAAHmQAAAAAAAAAHuuAAAAAAAAAIswAAAAAAAAAGr2AAAAAAAAAQZwAAAAAAAAANKYAAAAAAAAAq0QAAAAAAAAAX7IAAAAAAAABUpAAAAAAAAAAu2wAAAAAAAACnTAAAAAAAAABavAAAAAAAAAFKoAAAAAAAAACxoAAAAAAAAAFGqAAAAAAAAACbSAAAAAAAAAKFYAAAAAAAAAEmoAAAAAAAAAUKwAAAAAAAAAOtYAAAAAAAAAoVgAAAAAAAAANgAAAAAAAAAoVgAAAAAAAAANf0AAAAAAAABRqgAAAAAAAAAa/oAAAAAAAACjVAAAAAAAAAA1ugAAAAAAAAFKoAAAAAAAAABr+gAAAAAAAAKlIAAAAAAAAADYAAAAAAAAAKtEAAAAAAAAAHuuAAAAAAAAAQZwAAAAAAAAAJNQAAAAAAAAA8yfAAAAAAAAAAn0QAAAAAAAABn1wAAAAAAAAAuXAAAAAAAAABDmgAAAAAAAABpTAAAAAAAAABmRAAAAAAAAAHWsAAAAAAAAACrRAAAAAAAAALlwAAAAAAAAAHGUAAAAAAAAA61fQAAAAAAAABHXmzQAAAAAAAAPdGYAAAAAAAAAMuMAAAAAAAAAtWpAAAAAAAAABzkgAAAAAAAAA0ZwAAAAAAAACPLAAAAAAAAABNpAAAAAAAAAEeWAAAAAAAAADvVAAAAAAAAAOMoAAAAAAAAAHWsAAAAAAAAAMcAAAAAAAAAEmoAAAAAAAAAMrgAAAAAAAAAJ9EAAAAAAAAAZ0AAAAAAAAAAW7oAAAAAAAAAp0wAAAAAAAAA0ZwAAAAAAAABDmgAAAAAAAABrdAAAAAAAAABkeAAAAAAAAAEumAAAAAAAAADPrgAAAAAAAAFy4AAAAAAAAACvngAAAAAAAAGnKAAAAAAAAADzJ8AAAAAAAAAbAAAAAAAAAADOgAAAAAAAAAk1AAAAAAAAAAFWiAAAAAAAABPogAAAAAAAAAOMoAAAAAAAAC5cAAAAAAAAAAMuMAAAAAAAAGpIAAAAAAAAAAQ1O+IAAAAAAAA9scWLQAAAAAAAAAAFWiAAAAAAADYAAAAAAAAAAAEOaAAAAAAAHWsAAAAAAAAAAAPMnwAAAAAAAS6YAAAAAAAAAAAZ9cAAAAAAAWrwAAAAAAAAAAAQ5oAAAAAAA0pgAAAAAAAAAAAZkQAAAAAACTUAAAAAAAAAAAAgzgAAAAAAF+yAAAAAAAAAAAAy4wAAAAAAd6oAAAAAAAAAAABWoAAAAAAAv2QAAAAAAAAAAABk8gAAAAADvVAAAAAAAAAAAACnTAAAAAAFu6AAAAAAAAAAAAHGUAAAAAANOUAAAAAAAAAAAAGbCAAAAAA91wAAAAAAAAAAAAKlIAAAAABLpgAAAAAAAAAAAAR5YAAAAACzfAAAAAAAAAAAAAZHgAAAAAFu6AAAAAAAAAAAAAy4wAAAAAL1oAAAAAAAAAAAABmwgAAAAAaFgAAAAAAAAAAAABmwgAAAAAaM4AAAAAAAAAAAADMiAAAAAA0pgAAAAAAAAAAAAGTyAAAAABpTAAAAAAAAAAAAAcZQAAAAADRnAAAAAAAAAAAAAr54AAAAAC/ZAAAAAAAAAAAAApVAAAAAAFy4AAAAAAAAAAAABnQAAAAAAJ9EAAAAAAAAAAAADJ5AAAAAAe63oAAAAAAAAAAAAR5YAAAAAAvWgAAAAAAAAAAAAo1QAAAAAB1p9gAAAAAAAAAAAEGcAAAAAACTR7AAAAAAAAAAAAqU/AAAAAAAOr84AAAAAAAAAAArU+AAAAAAAAnuyAAAAAAAAAABzWq8AAAAAAAAE9qcAAAAAAAAACKrX8AAAAAAAAA6sWJgAAAAAAAAEFSEAAAAAAAAADqxPOAAAAAAAAV6kQAAAAAAAAAAOrFmUAAAAAAAQU4gAAAAAAAAAAAks2egAAAAAAgpxAAAAAAAAAAAACxZnAAAAAAhpwgAAAAAAAAAAAAJLVn0AAAABBUhAAAAAAAAAAAAAB1atdAAAACvUiAAAAAAAAAAAAAAHtu36AAACrU4AAAAAAAAAAAAAAAdXLQAABFQjAAAAAAAAAAAAAAAB3csgAB5SqgAAAAAAAAAAAAAAADu5ZAARUIwAAAAAAAAAAAAAAAAJL0wAVaXgAAAAAAAAAAAAAAAAAsXugEOaAAAAAAAAAAAAAAAAABPoj//EABQBAQAAAAAAAAAAAAAAAAAAAAD/2gAIAQIQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA/8QAFAEBAAAAAAAAAAAAAAAAAAAAAP/aAAgBAxAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAD/xAA0EAACAAQEBQIEBgMAAwAAAAABAgMEEVAAITFREjJgYXFBgRMiM1IUI0BCcpEgMKEQYqD/2gAIAQEAAT8A/wDjVZ0XVgMNMwxpU4M0fRBgzMU+oHtj40X7zj4sX7zj4sT72x8WJ97Y+LF+9sfGi/ecfHi/dj8RF+7H4mL2wJp/tGBN7p/3Amk9Q2BMQj+7AiI2jDqNoiJzMBhpoftX3OGjRG1b9GGZdGIwsxFHrXzhZofuXCxYb6MOnK4eYRdM8PMRG9aDt+qSNETQ1GxxDmEbI5HphnVOYgYea+we5w7u/Mf10KOyZHNcKwYAjTpR4iJqcPMuclyGCSdbDAi8DUPKekmYKKk0xEmSckyG9lhNxQ1PbpCLHWHlq22HdnNWNmlvpL7/AOFcVG/RUaY/anubQCw0JGPiRPvb+8cb/cf7xU7n/wAgkaE4SYiL61HfEOKsQZa7dDRo5aqrpvvcQSCCNcQooiL3GvQkeNxfKvL6ne5w3KOGGAQQCOgpiLT5F97rKxP2HyOgY0QQ0r6+mNbqrFWBGowjB1DD16AixPiOT6el3lolG4N9L/MvwpQam8aZjENw6Br9HfjiHYZC8yr5lN77EbgRm7XpWKsGHocAgiovk03yqu5vcu1YQG2V8mWrFpsL3KtRmXcXxzV2Pe9wDSKt7Y0UnYXwGhBvcY0hP4vsM1hoewvUyaQj5F9lzWEt6muRRu19lT+WRsb1N6J5N9lDk473qb1T3vsofmYdr1N8yeDfZY/m+16mudfF9gGkZb1Nc6/xvsI0iJ5vU1zj+N9XJl8i9TX1B/Hrea51/jfhoLzNc6/xvy8q+BeZvmXxfl5V8C8zeqe9+XlHi8zeiX4XmaHyD+V9AqQO96mRWEe19hCsRPN6YcSkbjBBBIvksKxR2BvcynC9fRr5KLzNe46ccM7jMXyAvDCHfO+Rk4IhHocxekXjZV3OBfJpaoG2vUqmrnwL7EHEjDteUQuwUYVQqgDQXuJEWGKnH4v/ANP+4WNDcHOhpobwASaDXEGEIa58x1vkV+NyfYXqE8GHuW3phIsN9GzvbmiMdgb7Ail1odReo30n8X2A1Iq98r1G+k/i+pk6+Reogqj/AMTfU518i9HMX2EKxU83uIKRHHe+SwrFHYXuZFIvkXyUGbG9za8reRfJZaQgdze468UJu2d8UcKgbC+MvCxGxvUFeKKvbO+zK0iV3F6lV5m9r7MrWHXY3qCvDCXxfWAYEb4IIJF41wL9MLSKTvneIQrEQd7/ADS1UNsbxLCsUdhf4i8SMO14lF529ugIy8ERhd4KcCAdARoIiDYjH4eLsP7wsq/qwGI0IQwtCTW4DUYaVccpBx8CL9mIUvwkM2Z6Emh8inv1vMCsJu2dwUVZR3HQ5FQRuMEUJFvgisVPPREwlIlfRrfKrVmbYdER044Z3GdvgLwwxuc+iYycDkehzFthJxuB/fRUwnElRqLbLJReI6nouKnA5HpqLXDQu4GBl0XMpVOLa1yyUXi36MIBGHUo5Xa0ovG4XfAyHRs0nK/sbTKpzN7dHRF40ZdxaYK8MNej468MQ987OoqwG56Qml+VW2s8AVip0hFXihsO1nlh+YTsOkSKEizSgzc9IxRSK/mzSo+RvPSMf6rWaW+n7npGP9VrNLfSHk9Ixvqv5s0v9JekWNWY7mzS/wBJekHPCjHYWeW+kPJ6QmWpDpubPKn8s9m6Qmzmgs8oeceD0hMGsU9gBZ5dqRQNx0g7cTsdybOCVIO2AQQCOjorcMNj2tMtEqpQ6jTo6ZiVIQemtpVirAjCOrqCOjI0YIKDmtcOI0Nqj3GEdXFR0SSAMRJn0T+8EkmptiuyGqnEKOr5HJuhq0w8yi5L8x/5h4jufmNwhzDpkcxhIqPofY9BMyqKkgYeaGiD3OGd35jdEmIi9x3wkxDbX5TfnjImpz2GHmXPKKYJJNSa3hXZeUkYWaYcwBwseG3rTzeXmETLU9sPHiP60Gwvyu68rEYWaccwBwsxDb1p5xW5vMIuQzOHjO+poNh0GrsnKxGFmmHMK4WNDfRvY2+JMIuQzOHiu+py26ISLETRsLND9y4V0fNSDanjonc9sPGd9TQbDowEjTCTMRdfmGEmIbetD3szx0Tudhh4zv60Gw6RSI6aHCTSnmFMAhhUGosLx0T1qe2Hju/rQbDpVWZTVSRhJr0ce4wrKwqpr+teYRdPmOHjRH1NBsOmQxU1BocQ5r0ce4wGDCoNR+piTKjJczh4jvzN06rshqpphJlTk+RwCD+liRkh9zth4rxNTlt1CkR05ThJlTkwof8AmAQf0JIAqTTEWZJyTIb9SpEdOU4hzKtk2R/3xIqw9ddsPEeIc+qEivD0OW2IcZHy0O3+yLMAZJmd8Ekmp6rhzDLk2YwrqwqpqP8ATMZQj1dLk/FH+P8A/8QAFBEBAAAAAAAAAAAAAAAAAAAAsP/aAAgBAgEBPwBhD//EABQRAQAAAAAAAAAAAAAAAAAAALD/2gAIAQMBAT8AYQ//2Q==", Nn = ({
|
|
316
316
|
userMenuItems: A,
|
|
317
317
|
showUserMenuToggleColorScheme: t = !0,
|
|
318
318
|
showUserMenuOptionsLabel: o = !0,
|
|
@@ -327,31 +327,31 @@ const Ht = ({ navigationData: A, color: t }) => {
|
|
|
327
327
|
hideAutoHeaderActionsOnUserMenuBreakPoint: d,
|
|
328
328
|
withDividerAfterUserMenuToggleColorScheme: u = !0,
|
|
329
329
|
user: p,
|
|
330
|
-
navigationData:
|
|
330
|
+
navigationData: v = [],
|
|
331
331
|
logo: b,
|
|
332
332
|
headerActions: m,
|
|
333
333
|
styleLogo: g,
|
|
334
334
|
showLanguageSelector: f = !1,
|
|
335
|
-
sideBarHiddenBreakPoint:
|
|
336
|
-
headerLeftContent:
|
|
335
|
+
sideBarHiddenBreakPoint: x,
|
|
336
|
+
headerLeftContent: I,
|
|
337
337
|
toggleColorScheme: L,
|
|
338
|
-
logoLeftSection:
|
|
339
|
-
logoRightSection:
|
|
340
|
-
showBurger:
|
|
338
|
+
logoLeftSection: J,
|
|
339
|
+
logoRightSection: V,
|
|
340
|
+
showBurger: Y = !0,
|
|
341
341
|
showCommands: M = !0,
|
|
342
342
|
sunColor: O,
|
|
343
343
|
moonColor: D,
|
|
344
|
-
styles:
|
|
344
|
+
styles: K
|
|
345
345
|
}) => {
|
|
346
|
-
const P = me(), { colorScheme:
|
|
347
|
-
`(max-width: ${
|
|
348
|
-
),
|
|
346
|
+
const P = me(), { colorScheme: y, toggleColorScheme: F } = de(), T = ye(rA), ee = DA(
|
|
347
|
+
`(max-width: ${x ? fe(x) : P.breakpoints.md})`
|
|
348
|
+
), U = DA(
|
|
349
349
|
`(max-width: ${d ? fe(d) : P.breakpoints.md})`
|
|
350
350
|
);
|
|
351
|
-
let
|
|
352
|
-
return i && (h = !
|
|
351
|
+
let k = !1, G = !1;
|
|
352
|
+
return i && (h = !U, c = !U, t = U, o = U, a = U, u = U, f && (G = !U, k = U)), /* @__PURE__ */ R(Pe, { children: [
|
|
353
353
|
/* @__PURE__ */ R(Ye, { style: { width: 300, height: 50 }, align: "center", children: [
|
|
354
|
-
|
|
354
|
+
J,
|
|
355
355
|
/* @__PURE__ */ r(
|
|
356
356
|
"img",
|
|
357
357
|
{
|
|
@@ -363,26 +363,26 @@ const Ht = ({ navigationData: A, color: t }) => {
|
|
|
363
363
|
src: b
|
|
364
364
|
}
|
|
365
365
|
),
|
|
366
|
-
|
|
366
|
+
V
|
|
367
367
|
] }),
|
|
368
|
-
|
|
369
|
-
|
|
368
|
+
Y && /* @__PURE__ */ r(
|
|
369
|
+
Kr,
|
|
370
370
|
{
|
|
371
|
-
opened:
|
|
372
|
-
onClick: () =>
|
|
371
|
+
opened: T.hidden ? T.hidden : !1,
|
|
372
|
+
onClick: () => T.setHidden(!T.hidden),
|
|
373
373
|
size: "sm",
|
|
374
374
|
color: P.colors.gray[7],
|
|
375
375
|
mx: { base: "xs", xs: "lg", sm: "xl" },
|
|
376
|
-
display:
|
|
376
|
+
display: ee ? "" : "none"
|
|
377
377
|
}
|
|
378
378
|
),
|
|
379
|
-
/* @__PURE__ */ r("div", { children: M && /* @__PURE__ */ r(
|
|
380
|
-
/* @__PURE__ */ r(
|
|
381
|
-
/* @__PURE__ */ R(
|
|
379
|
+
/* @__PURE__ */ r("div", { children: M && /* @__PURE__ */ r(Xt, { navigationData: v }) }),
|
|
380
|
+
/* @__PURE__ */ r(H, { style: { flex: 1 }, children: I }),
|
|
381
|
+
/* @__PURE__ */ R(qt, { children: [
|
|
382
382
|
h && m,
|
|
383
|
-
c && /* @__PURE__ */ r(
|
|
384
|
-
|
|
385
|
-
/* @__PURE__ */ R(ie, { shadow: "md", width: 200, position: "bottom-end", styles:
|
|
383
|
+
c && /* @__PURE__ */ r(Yt, { toggleColorScheme: L, sunColor: O, moonColor: D }),
|
|
384
|
+
G && /* @__PURE__ */ r(Ut, {}),
|
|
385
|
+
/* @__PURE__ */ R(ie, { shadow: "md", width: 200, position: "bottom-end", styles: K?.menu, children: [
|
|
386
386
|
/* @__PURE__ */ r(ie.Target, { children: /* @__PURE__ */ R("div", { children: [
|
|
387
387
|
/* @__PURE__ */ r(
|
|
388
388
|
iA,
|
|
@@ -390,7 +390,7 @@ const Ht = ({ navigationData: A, color: t }) => {
|
|
|
390
390
|
style: { cursor: "pointer" },
|
|
391
391
|
radius: "xl",
|
|
392
392
|
ml: 8,
|
|
393
|
-
src: p ? p.photo :
|
|
393
|
+
src: p ? p.photo : Jt,
|
|
394
394
|
alt: p ? p.displayName : ""
|
|
395
395
|
}
|
|
396
396
|
),
|
|
@@ -422,12 +422,12 @@ const Ht = ({ navigationData: A, color: t }) => {
|
|
|
422
422
|
t && /* @__PURE__ */ r(
|
|
423
423
|
ie.Item,
|
|
424
424
|
{
|
|
425
|
-
leftSection:
|
|
426
|
-
onClick: L ||
|
|
425
|
+
leftSection: y === "dark" ? /* @__PURE__ */ r(_A, { size: e }) : /* @__PURE__ */ r(WA, { size: e }),
|
|
426
|
+
onClick: L || F,
|
|
427
427
|
children: `${ne().t("archbase:toggleColorScheme")}`
|
|
428
428
|
}
|
|
429
429
|
),
|
|
430
|
-
|
|
430
|
+
k && /* @__PURE__ */ r(Ht, {}),
|
|
431
431
|
u && /* @__PURE__ */ r(ie.Divider, {}),
|
|
432
432
|
n && s
|
|
433
433
|
] })
|
|
@@ -435,12 +435,12 @@ const Ht = ({ navigationData: A, color: t }) => {
|
|
|
435
435
|
] })
|
|
436
436
|
] });
|
|
437
437
|
};
|
|
438
|
-
function
|
|
438
|
+
function $A(A, t, o, e, n, s, a, l, i, h) {
|
|
439
439
|
const c = s ? A.colorScheme === "dark" ? A.colors[A.primaryColor][8] : A.colors[A.primaryColor][7] : void 0, d = s ? (A.colorScheme === "dark", A.colors[A.primaryColor][0]) : void 0, u = A.colorScheme === "dark" ? "#3e5e7e" : "#9fb6cf", p = "0.5";
|
|
440
440
|
if (e.links) {
|
|
441
441
|
if (!(e.disabled && e.hideDisabledItem))
|
|
442
442
|
return /* @__PURE__ */ r(Me, { disabled: !t, label: Re.t(e.label), children: /* @__PURE__ */ r(
|
|
443
|
-
|
|
443
|
+
Mt,
|
|
444
444
|
{
|
|
445
445
|
rootStyles: {
|
|
446
446
|
fontSize: "16px",
|
|
@@ -472,17 +472,17 @@ function NA(A, t, o, e, n, s, a, l, i, h) {
|
|
|
472
472
|
defaultOpen: !e.disabled,
|
|
473
473
|
label: t ? "" : Re.t(e.label),
|
|
474
474
|
disabled: e.disabled,
|
|
475
|
-
children: e.links && e.links.filter((
|
|
476
|
-
|
|
475
|
+
children: e.links && e.links.filter((v) => v.showInSidebar === !0 && (!v.disabled || !v.hideDisabledItem)).map((v, b) => /* @__PURE__ */ r(
|
|
476
|
+
OA,
|
|
477
477
|
{
|
|
478
|
-
onClick: () => o(
|
|
478
|
+
onClick: () => o(v),
|
|
479
479
|
rootStyles: {
|
|
480
480
|
[`.${te.icon}`]: {
|
|
481
481
|
background: c,
|
|
482
|
-
color: l &&
|
|
482
|
+
color: l && v.link === a ? "white" : d
|
|
483
483
|
},
|
|
484
484
|
[`.${te.label}`]: {
|
|
485
|
-
color: l &&
|
|
485
|
+
color: l && v.link === a ? "white" : i
|
|
486
486
|
},
|
|
487
487
|
[`.${te.button}`]: {
|
|
488
488
|
paddingLeft: "40px !important",
|
|
@@ -506,11 +506,11 @@ function NA(A, t, o, e, n, s, a, l, i, h) {
|
|
|
506
506
|
}
|
|
507
507
|
}
|
|
508
508
|
},
|
|
509
|
-
id:
|
|
510
|
-
icon:
|
|
511
|
-
disabled: typeof
|
|
512
|
-
active: l &&
|
|
513
|
-
children: Re.t(
|
|
509
|
+
id: v.label,
|
|
510
|
+
icon: v.icon,
|
|
511
|
+
disabled: typeof v.disabled == "function" ? v.disabled() : v.disabled,
|
|
512
|
+
active: l && v.link === a,
|
|
513
|
+
children: Re.t(v.label)
|
|
514
514
|
},
|
|
515
515
|
b
|
|
516
516
|
))
|
|
@@ -519,7 +519,7 @@ function NA(A, t, o, e, n, s, a, l, i, h) {
|
|
|
519
519
|
) });
|
|
520
520
|
} else if (e.showInSidebar && (!e.disabled || !e.hideDisabledItem))
|
|
521
521
|
return /* @__PURE__ */ r(Me, { disabled: !t, label: Re.t(e.label), children: /* @__PURE__ */ r(
|
|
522
|
-
|
|
522
|
+
OA,
|
|
523
523
|
{
|
|
524
524
|
rootStyles: {
|
|
525
525
|
fontSize: "16px",
|
|
@@ -562,7 +562,7 @@ function NA(A, t, o, e, n, s, a, l, i, h) {
|
|
|
562
562
|
) });
|
|
563
563
|
return null;
|
|
564
564
|
}
|
|
565
|
-
const
|
|
565
|
+
const _t = (A) => ({
|
|
566
566
|
light: {
|
|
567
567
|
sidebar: {
|
|
568
568
|
backgroundColor: "#ffffff",
|
|
@@ -597,8 +597,8 @@ const qt = (A) => ({
|
|
|
597
597
|
}
|
|
598
598
|
}
|
|
599
599
|
}
|
|
600
|
-
}),
|
|
601
|
-
const d =
|
|
600
|
+
}), Wt = (A, t, o, e, n, s, a, l, i, h, c) => {
|
|
601
|
+
const d = _t(), u = s ? {} : { padding: o ? `0 ${(n - e) / 2}px` : "0 20px" }, p = s ? {} : { display: "none" }, v = a ? A === "dark" ? t.colors[t.primaryColor][8] : t.colors[t.primaryColor][0] : void 0;
|
|
602
602
|
return {
|
|
603
603
|
root: {
|
|
604
604
|
fontSize: "14px",
|
|
@@ -607,7 +607,7 @@ const qt = (A) => ({
|
|
|
607
607
|
color: t.white
|
|
608
608
|
},
|
|
609
609
|
icon: {
|
|
610
|
-
background:
|
|
610
|
+
background: v,
|
|
611
611
|
color: c,
|
|
612
612
|
[`&.${te.disabled}`]: {
|
|
613
613
|
color: d[A].menu.disabled.color
|
|
@@ -643,13 +643,13 @@ const qt = (A) => ({
|
|
|
643
643
|
})
|
|
644
644
|
};
|
|
645
645
|
};
|
|
646
|
-
function
|
|
646
|
+
function Zt(A, t, o, e, n, s, a, l, i, h, c) {
|
|
647
647
|
return /* @__PURE__ */ R(
|
|
648
|
-
|
|
648
|
+
sr,
|
|
649
649
|
{
|
|
650
650
|
ref: A,
|
|
651
651
|
rootStyles: {
|
|
652
|
-
[`.${
|
|
652
|
+
[`.${ar.container}`]: {
|
|
653
653
|
position: "absolute",
|
|
654
654
|
background: c,
|
|
655
655
|
overflowX: "hidden",
|
|
@@ -664,20 +664,20 @@ function Xt(A, t, o, e, n, s, a, l, i, h, c) {
|
|
|
664
664
|
collapsedWidth: `${fe(e)}px`,
|
|
665
665
|
children: [
|
|
666
666
|
i && /* @__PURE__ */ r(Pe, { children: i }),
|
|
667
|
-
/* @__PURE__ */ r(ze, { style: { overflowY: "auto", overflowX: "hidden", height: l }, children: /* @__PURE__ */ r(
|
|
667
|
+
/* @__PURE__ */ r(ze, { style: { overflowY: "auto", overflowX: "hidden", height: l }, children: /* @__PURE__ */ r(lr, { rootStyles: { background: c }, menuItemStyles: n, closeOnClick: !0, children: s && /* @__PURE__ */ r(Pe, { children: s }) }) }),
|
|
668
668
|
h && /* @__PURE__ */ r(Pe, { children: h })
|
|
669
669
|
]
|
|
670
670
|
}
|
|
671
671
|
);
|
|
672
672
|
}
|
|
673
|
-
function
|
|
673
|
+
function QA({
|
|
674
674
|
itemCount: A = 8,
|
|
675
675
|
collapsed: t = !1,
|
|
676
676
|
backgroundColor: o
|
|
677
677
|
}) {
|
|
678
678
|
const e = me(), { colorScheme: n } = de(), s = o ?? (n === "dark" ? e.colors.dark[7] : e.white);
|
|
679
679
|
return t ? /* @__PURE__ */ r(
|
|
680
|
-
|
|
680
|
+
_,
|
|
681
681
|
{
|
|
682
682
|
gap: "sm",
|
|
683
683
|
p: "xs",
|
|
@@ -698,7 +698,7 @@ function zA({
|
|
|
698
698
|
))
|
|
699
699
|
}
|
|
700
700
|
) : /* @__PURE__ */ r(
|
|
701
|
-
|
|
701
|
+
_,
|
|
702
702
|
{
|
|
703
703
|
gap: "xs",
|
|
704
704
|
p: "md",
|
|
@@ -729,7 +729,7 @@ function zA({
|
|
|
729
729
|
}
|
|
730
730
|
);
|
|
731
731
|
}
|
|
732
|
-
function
|
|
732
|
+
function eo({
|
|
733
733
|
groupCount: A = 3,
|
|
734
734
|
width: t = "80px",
|
|
735
735
|
height: o = "100%",
|
|
@@ -737,7 +737,7 @@ function Jt({
|
|
|
737
737
|
}) {
|
|
738
738
|
const n = me(), { colorScheme: s } = de(), a = e ?? (s === "dark" ? n.colors.dark[6] : n.colors.gray[2]);
|
|
739
739
|
return /* @__PURE__ */ r(
|
|
740
|
-
|
|
740
|
+
_,
|
|
741
741
|
{
|
|
742
742
|
gap: "md",
|
|
743
743
|
p: "xs",
|
|
@@ -747,7 +747,7 @@ function Jt({
|
|
|
747
747
|
height: o,
|
|
748
748
|
backgroundColor: a
|
|
749
749
|
},
|
|
750
|
-
children: Array.from({ length: A }).map((l, i) => /* @__PURE__ */ R(
|
|
750
|
+
children: Array.from({ length: A }).map((l, i) => /* @__PURE__ */ R(_, { gap: 4, align: "center", children: [
|
|
751
751
|
/* @__PURE__ */ r(
|
|
752
752
|
pe,
|
|
753
753
|
{
|
|
@@ -769,18 +769,18 @@ function Jt({
|
|
|
769
769
|
}
|
|
770
770
|
);
|
|
771
771
|
}
|
|
772
|
-
function
|
|
772
|
+
function KA({
|
|
773
773
|
message: A,
|
|
774
774
|
backgroundColor: t,
|
|
775
775
|
children: o
|
|
776
776
|
}) {
|
|
777
777
|
const e = me(), { colorScheme: n } = de(), s = t ?? (n === "dark" ? e.colors.dark[7] : e.white), a = n === "dark" ? e.colors.red[4] : e.colors.red[6];
|
|
778
|
-
return o ? /* @__PURE__ */ r(Pe, { children: o }) : /* @__PURE__ */ r(Je, { p: "md", style: { backgroundColor: s, flex: 1, height: "100%" }, children: /* @__PURE__ */ R(
|
|
779
|
-
/* @__PURE__ */ r(
|
|
778
|
+
return o ? /* @__PURE__ */ r(Pe, { children: o }) : /* @__PURE__ */ r(Je, { p: "md", style: { backgroundColor: s, flex: 1, height: "100%" }, children: /* @__PURE__ */ R(_, { align: "center", gap: "xs", children: [
|
|
779
|
+
/* @__PURE__ */ r(Hr, { size: 32, color: a }),
|
|
780
780
|
/* @__PURE__ */ r(Te, { size: "sm", c: a, ta: "center", children: A })
|
|
781
781
|
] }) });
|
|
782
782
|
}
|
|
783
|
-
function
|
|
783
|
+
function Ao({
|
|
784
784
|
navigationData: A,
|
|
785
785
|
sidebarGroupWidth: t = "80px",
|
|
786
786
|
sidebarWidth: o = "360px",
|
|
@@ -795,56 +795,56 @@ function _t({
|
|
|
795
795
|
groupLabelDarkColor: d,
|
|
796
796
|
groupLabelLightColor: u,
|
|
797
797
|
collapsed: p,
|
|
798
|
-
onMenuItemClick:
|
|
798
|
+
onMenuItemClick: v,
|
|
799
799
|
onClickActionIcon: b,
|
|
800
800
|
withBorder: m = !1,
|
|
801
801
|
showGroupLabels: g = !0,
|
|
802
802
|
theme: f,
|
|
803
|
-
sidebarRef:
|
|
804
|
-
defaultGroupIcon:
|
|
803
|
+
sidebarRef: x,
|
|
804
|
+
defaultGroupIcon: I,
|
|
805
805
|
selectedGroupName: L,
|
|
806
|
-
sideBarHeaderContent:
|
|
807
|
-
iconsWithBackground:
|
|
808
|
-
menuItemHeight:
|
|
806
|
+
sideBarHeaderContent: J,
|
|
807
|
+
iconsWithBackground: V = !1,
|
|
808
|
+
menuItemHeight: Y = 40,
|
|
809
809
|
highlightActiveMenuItem: M = !0,
|
|
810
810
|
backgroundDarkColor: O,
|
|
811
811
|
backgroundLightColor: D,
|
|
812
|
-
textDarkColor:
|
|
812
|
+
textDarkColor: K,
|
|
813
813
|
textLightColor: P,
|
|
814
|
-
iconDarkColor:
|
|
815
|
-
iconLightColor:
|
|
816
|
-
collapsedSubmenuWidth:
|
|
817
|
-
isLoading:
|
|
818
|
-
loadingError:
|
|
819
|
-
loadingComponent:
|
|
820
|
-
errorComponent:
|
|
821
|
-
skeletonItemCount:
|
|
814
|
+
iconDarkColor: y,
|
|
815
|
+
iconLightColor: F,
|
|
816
|
+
collapsedSubmenuWidth: T,
|
|
817
|
+
isLoading: ee = !1,
|
|
818
|
+
loadingError: U,
|
|
819
|
+
loadingComponent: k,
|
|
820
|
+
errorComponent: G,
|
|
821
|
+
skeletonItemCount: Ae = 8,
|
|
822
822
|
skeletonGroupCount: Ce = 3
|
|
823
823
|
}) {
|
|
824
|
-
const [
|
|
824
|
+
const [se, be] = ge(""), we = bA(), Se = je(), { colorScheme: w } = de(), S = w === "dark" ? O ?? f.colors.dark[7] : D ?? f.white, $ = s || (w === "dark" ? f.colors[f.primaryColor][8] : f.colors[f.primaryColor][0]), N = w === "dark" ? K ?? "var(--mantine-color-text)" : P ?? "var(--mantine-color-text)", B = w === "dark" ? y ?? f.colors[f.primaryColor][0] : F ?? f.colors[f.primaryColor][7], E = ce(() => {
|
|
825
825
|
const re = /* @__PURE__ */ new Set();
|
|
826
|
-
return A.forEach((
|
|
827
|
-
if (
|
|
828
|
-
let
|
|
829
|
-
|
|
830
|
-
icon:
|
|
826
|
+
return A.forEach((X) => {
|
|
827
|
+
if (X.showInSidebar && (!X.disabled || !X.hideDisabledItem)) {
|
|
828
|
+
let ke = !1;
|
|
829
|
+
X.group || (X.group = {
|
|
830
|
+
icon: I || /* @__PURE__ */ r(ZA, { size: "2.2rem", color: "#63B1FB", stroke: 1 }),
|
|
831
831
|
label: "Default",
|
|
832
832
|
name: "Default",
|
|
833
833
|
hint: "Default",
|
|
834
834
|
indexOrder: 0
|
|
835
|
-
}), re.forEach((
|
|
836
|
-
|
|
837
|
-
}),
|
|
838
|
-
name:
|
|
839
|
-
indexOrder:
|
|
835
|
+
}), re.forEach((Q) => {
|
|
836
|
+
Q.name === X.group.name && (ke = !0);
|
|
837
|
+
}), ke || re.add({
|
|
838
|
+
name: X.group.name,
|
|
839
|
+
indexOrder: X.group.indexOrder,
|
|
840
840
|
component: /* @__PURE__ */ r(
|
|
841
841
|
Me,
|
|
842
842
|
{
|
|
843
|
-
content:
|
|
844
|
-
label:
|
|
843
|
+
content: X.group.hint,
|
|
844
|
+
label: X.group.label,
|
|
845
845
|
disabled: g,
|
|
846
846
|
children: /* @__PURE__ */ R(
|
|
847
|
-
|
|
847
|
+
_,
|
|
848
848
|
{
|
|
849
849
|
gap: "2px",
|
|
850
850
|
style: {
|
|
@@ -858,12 +858,12 @@ function _t({
|
|
|
858
858
|
De,
|
|
859
859
|
{
|
|
860
860
|
size: "48px",
|
|
861
|
-
variant:
|
|
862
|
-
color:
|
|
861
|
+
variant: X.group.name === se ? "filled" : l ? "subtle" : "light",
|
|
862
|
+
color: X.group.name === se ? $ : a,
|
|
863
863
|
onClick: () => {
|
|
864
|
-
be((
|
|
864
|
+
be((Q) => (b && b(Q, X.group.name), X.group.name === Q && !i ? "" : X.group.name));
|
|
865
865
|
},
|
|
866
|
-
children:
|
|
866
|
+
children: X.group.icon
|
|
867
867
|
}
|
|
868
868
|
),
|
|
869
869
|
g ? /* @__PURE__ */ r(
|
|
@@ -871,61 +871,61 @@ function _t({
|
|
|
871
871
|
{
|
|
872
872
|
size: "xs",
|
|
873
873
|
c: w === "dark" ? d || f.colors[f.primaryColor][2] : u || f.colors[f.primaryColor][2],
|
|
874
|
-
children:
|
|
874
|
+
children: X.group.label
|
|
875
875
|
}
|
|
876
876
|
) : !1
|
|
877
877
|
]
|
|
878
878
|
}
|
|
879
879
|
)
|
|
880
880
|
},
|
|
881
|
-
|
|
881
|
+
X.group.name
|
|
882
882
|
)
|
|
883
883
|
});
|
|
884
884
|
}
|
|
885
|
-
}), re.forEach((
|
|
886
|
-
const
|
|
887
|
-
|
|
888
|
-
}), [...re].sort((
|
|
889
|
-
}, [A,
|
|
885
|
+
}), re.forEach((X) => {
|
|
886
|
+
const ke = A.filter((Q) => Q.showInSidebar === !0 && (!Q.disabled || !Q.hideDisabledItem) && Q.group && Q.group.name === X.name);
|
|
887
|
+
X.links = ke.map((Q, le) => $A(f, p, v, Q, le, V, Se.pathname, M, N, T));
|
|
888
|
+
}), [...re].sort((X, ke) => X.indexOrder - ke.indexOrder);
|
|
889
|
+
}, [A, se, w, p, we.selectedCompany, M, Se]), z = Wt(
|
|
890
890
|
w,
|
|
891
891
|
f,
|
|
892
892
|
p,
|
|
893
893
|
35,
|
|
894
894
|
Number(fe(n)),
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
), j = p ||
|
|
902
|
-
L &&
|
|
895
|
+
E.length > 1,
|
|
896
|
+
V,
|
|
897
|
+
Y,
|
|
898
|
+
S,
|
|
899
|
+
N,
|
|
900
|
+
B
|
|
901
|
+
), j = p || se === "" ? "0px" : `calc(${o} - ${t})`, he = l || (w === "dark" ? f.colors[f.primaryColor][6] : f.colors[f.primaryColor][7]), Ie = C(() => {
|
|
902
|
+
L && E.map((re) => re.name).includes(L) ? be(L) : E.length > 1 && be("Default");
|
|
903
903
|
}, []);
|
|
904
904
|
oe(() => {
|
|
905
|
-
|
|
905
|
+
Ie();
|
|
906
906
|
}, []), oe(() => {
|
|
907
|
-
p ? be("") :
|
|
907
|
+
p ? be("") : se === "" && Ie();
|
|
908
908
|
}, [p]);
|
|
909
|
-
const
|
|
910
|
-
|
|
909
|
+
const q = () => U ? G || /* @__PURE__ */ r(
|
|
910
|
+
KA,
|
|
911
911
|
{
|
|
912
|
-
message:
|
|
913
|
-
backgroundColor:
|
|
912
|
+
message: U,
|
|
913
|
+
backgroundColor: S
|
|
914
914
|
}
|
|
915
|
-
) :
|
|
916
|
-
|
|
915
|
+
) : ee ? k || /* @__PURE__ */ r(
|
|
916
|
+
QA,
|
|
917
917
|
{
|
|
918
|
-
itemCount:
|
|
918
|
+
itemCount: Ae,
|
|
919
919
|
collapsed: p,
|
|
920
|
-
backgroundColor:
|
|
920
|
+
backgroundColor: S
|
|
921
921
|
}
|
|
922
|
-
) :
|
|
923
|
-
|
|
922
|
+
) : se !== "" ? /* @__PURE__ */ r(
|
|
923
|
+
sr,
|
|
924
924
|
{
|
|
925
|
-
ref:
|
|
925
|
+
ref: x,
|
|
926
926
|
rootStyles: {
|
|
927
|
-
[`.${
|
|
928
|
-
background:
|
|
927
|
+
[`.${ar.container}`]: {
|
|
928
|
+
background: S,
|
|
929
929
|
overflowX: "hidden",
|
|
930
930
|
overflowY: "hidden",
|
|
931
931
|
left: 0,
|
|
@@ -945,75 +945,75 @@ function _t({
|
|
|
945
945
|
height: "100%",
|
|
946
946
|
width: j
|
|
947
947
|
},
|
|
948
|
-
children: /* @__PURE__ */ r(
|
|
948
|
+
children: /* @__PURE__ */ r(lr, { rootStyles: { background: S }, menuItemStyles: z, closeOnClick: !0, children: E.find((re) => re.name === se)?.links || null })
|
|
949
949
|
}
|
|
950
950
|
)
|
|
951
951
|
}
|
|
952
|
-
) : null,
|
|
953
|
-
|
|
952
|
+
) : null, ve = () => ee && E.length === 0 ? /* @__PURE__ */ r(
|
|
953
|
+
eo,
|
|
954
954
|
{
|
|
955
955
|
groupCount: Ce,
|
|
956
956
|
width: t,
|
|
957
957
|
height: e
|
|
958
958
|
}
|
|
959
|
-
) :
|
|
960
|
-
|
|
959
|
+
) : E.length !== 0 ? /* @__PURE__ */ r(
|
|
960
|
+
_,
|
|
961
961
|
{
|
|
962
962
|
gap: "4px",
|
|
963
963
|
style: {
|
|
964
964
|
height: e,
|
|
965
965
|
width: t,
|
|
966
966
|
padding: "4px",
|
|
967
|
-
backgroundColor:
|
|
967
|
+
backgroundColor: he
|
|
968
968
|
},
|
|
969
|
-
children:
|
|
969
|
+
children: E.map((re) => /* @__PURE__ */ r(xe.Fragment, { children: re.component }, re.name))
|
|
970
970
|
}
|
|
971
|
-
) : null,
|
|
972
|
-
|
|
971
|
+
) : null, W = () => U ? G || /* @__PURE__ */ r(
|
|
972
|
+
KA,
|
|
973
973
|
{
|
|
974
|
-
message:
|
|
975
|
-
backgroundColor:
|
|
974
|
+
message: U,
|
|
975
|
+
backgroundColor: S
|
|
976
976
|
}
|
|
977
|
-
) :
|
|
978
|
-
|
|
977
|
+
) : ee ? k || /* @__PURE__ */ r(
|
|
978
|
+
QA,
|
|
979
979
|
{
|
|
980
|
-
itemCount:
|
|
980
|
+
itemCount: Ae,
|
|
981
981
|
collapsed: p,
|
|
982
|
-
backgroundColor:
|
|
982
|
+
backgroundColor: S
|
|
983
983
|
}
|
|
984
984
|
) : A.map(
|
|
985
|
-
(re, Ee) =>
|
|
985
|
+
(re, Ee) => $A(f, p, v, re, Ee, V, Se.pathname, M, N, T)
|
|
986
986
|
);
|
|
987
|
-
return /* @__PURE__ */ r(Pe, { children:
|
|
988
|
-
|
|
987
|
+
return /* @__PURE__ */ r(Pe, { children: E.length == 1 ? Zt(
|
|
988
|
+
x,
|
|
989
989
|
p,
|
|
990
990
|
o,
|
|
991
991
|
n,
|
|
992
992
|
z,
|
|
993
|
-
|
|
993
|
+
W(),
|
|
994
994
|
i,
|
|
995
995
|
e,
|
|
996
|
-
|
|
996
|
+
J,
|
|
997
997
|
c,
|
|
998
|
-
|
|
998
|
+
S
|
|
999
999
|
) : /* @__PURE__ */ R(Ye, { direction: "column", w: p ? n : o, children: [
|
|
1000
|
-
/* @__PURE__ */ r("div", { style: { height: "auto", width: "100%" }, children:
|
|
1001
|
-
/* @__PURE__ */ R(
|
|
1002
|
-
|
|
1003
|
-
|
|
1000
|
+
/* @__PURE__ */ r("div", { style: { height: "auto", width: "100%" }, children: J }),
|
|
1001
|
+
/* @__PURE__ */ R(Fr, { withBorder: m, h: e, w: "100%", display: "flex", children: [
|
|
1002
|
+
ve(),
|
|
1003
|
+
q()
|
|
1004
1004
|
] }),
|
|
1005
1005
|
/* @__PURE__ */ r("div", { style: { height: "auto", width: "100%" }, children: c })
|
|
1006
1006
|
] }) });
|
|
1007
1007
|
}
|
|
1008
1008
|
const yA = Ne(null);
|
|
1009
1009
|
function vA() {
|
|
1010
|
-
const A =
|
|
1010
|
+
const A = ye(yA);
|
|
1011
1011
|
if (!A)
|
|
1012
1012
|
throw new Error("useSidebar must be used within a SidebarProvider");
|
|
1013
1013
|
return A;
|
|
1014
1014
|
}
|
|
1015
|
-
function
|
|
1016
|
-
return
|
|
1015
|
+
function zn() {
|
|
1016
|
+
return ye(yA);
|
|
1017
1017
|
}
|
|
1018
1018
|
function CA({
|
|
1019
1019
|
children: A,
|
|
@@ -1029,7 +1029,7 @@ function CA({
|
|
|
1029
1029
|
highlightActiveItem: c = !0,
|
|
1030
1030
|
onMenuItemClick: d
|
|
1031
1031
|
}) {
|
|
1032
|
-
const u = je(), p = qe(), [
|
|
1032
|
+
const u = je(), p = qe(), [v, b] = aA({
|
|
1033
1033
|
value: n,
|
|
1034
1034
|
defaultValue: e,
|
|
1035
1035
|
finalValue: !1,
|
|
@@ -1039,60 +1039,60 @@ function CA({
|
|
|
1039
1039
|
defaultValue: a,
|
|
1040
1040
|
finalValue: "",
|
|
1041
1041
|
onChange: i
|
|
1042
|
-
}), [f,
|
|
1043
|
-
const
|
|
1044
|
-
return t.forEach((
|
|
1045
|
-
|
|
1046
|
-
}),
|
|
1047
|
-
}),
|
|
1048
|
-
b(!
|
|
1049
|
-
}, [
|
|
1050
|
-
L((
|
|
1051
|
-
const
|
|
1052
|
-
return
|
|
1042
|
+
}), [f, x] = ge(""), [I, L] = ge(() => {
|
|
1043
|
+
const y = /* @__PURE__ */ new Set();
|
|
1044
|
+
return t.forEach((F, T) => {
|
|
1045
|
+
F.initiallyOpened && F.links && F.links.length > 0 && y.add(`group-${T}`);
|
|
1046
|
+
}), y;
|
|
1047
|
+
}), J = u.pathname, V = C(() => {
|
|
1048
|
+
b(!v);
|
|
1049
|
+
}, [v, b]), Y = C((y) => {
|
|
1050
|
+
L((F) => {
|
|
1051
|
+
const T = new Set(F);
|
|
1052
|
+
return T.has(y) ? T.delete(y) : T.add(y), T;
|
|
1053
1053
|
});
|
|
1054
|
-
}, []), M =
|
|
1055
|
-
L((
|
|
1056
|
-
const
|
|
1057
|
-
return
|
|
1054
|
+
}, []), M = C((y) => {
|
|
1055
|
+
L((F) => {
|
|
1056
|
+
const T = new Set(F);
|
|
1057
|
+
return T.add(y), T;
|
|
1058
1058
|
});
|
|
1059
|
-
}, []), O =
|
|
1060
|
-
L((
|
|
1061
|
-
const
|
|
1062
|
-
return
|
|
1059
|
+
}, []), O = C((y) => {
|
|
1060
|
+
L((F) => {
|
|
1061
|
+
const T = new Set(F);
|
|
1062
|
+
return T.delete(y), T;
|
|
1063
1063
|
});
|
|
1064
1064
|
}, []), D = ce(() => {
|
|
1065
1065
|
if (!f.trim())
|
|
1066
1066
|
return t;
|
|
1067
|
-
const
|
|
1068
|
-
const
|
|
1069
|
-
return (
|
|
1070
|
-
...
|
|
1071
|
-
links:
|
|
1067
|
+
const y = f.toLowerCase().trim(), F = (T) => T.reduce((ee, U) => {
|
|
1068
|
+
const k = U.label.toLowerCase().includes(y), G = U.links ? F(U.links) : [];
|
|
1069
|
+
return (k || G.length > 0) && ee.push({
|
|
1070
|
+
...U,
|
|
1071
|
+
links: G.length > 0 ? G : U.links,
|
|
1072
1072
|
// Expandir automaticamente quando há match em subitens
|
|
1073
|
-
initiallyOpened:
|
|
1074
|
-
}),
|
|
1073
|
+
initiallyOpened: G.length > 0 || k
|
|
1074
|
+
}), ee;
|
|
1075
1075
|
}, []);
|
|
1076
|
-
return
|
|
1077
|
-
}, [t, f]),
|
|
1078
|
-
(
|
|
1079
|
-
d && d(
|
|
1076
|
+
return F(t);
|
|
1077
|
+
}, [t, f]), K = C(
|
|
1078
|
+
(y) => {
|
|
1079
|
+
d && d(y), y.link && (y.routeParams ? p(y.link, { state: y.routeParams }) : p(y.link)), y.redirect && p(y.redirect);
|
|
1080
1080
|
},
|
|
1081
1081
|
[p, d]
|
|
1082
1082
|
), P = ce(
|
|
1083
1083
|
() => ({
|
|
1084
|
-
collapsed:
|
|
1084
|
+
collapsed: v,
|
|
1085
1085
|
setCollapsed: b,
|
|
1086
|
-
toggleCollapsed:
|
|
1086
|
+
toggleCollapsed: V,
|
|
1087
1087
|
activeGroup: m,
|
|
1088
1088
|
setActiveGroup: g,
|
|
1089
|
-
activeItemPath:
|
|
1090
|
-
navigateToItem:
|
|
1089
|
+
activeItemPath: J,
|
|
1090
|
+
navigateToItem: K,
|
|
1091
1091
|
searchQuery: f,
|
|
1092
|
-
setSearchQuery:
|
|
1092
|
+
setSearchQuery: x,
|
|
1093
1093
|
filteredItems: D,
|
|
1094
|
-
expandedGroups:
|
|
1095
|
-
toggleGroup:
|
|
1094
|
+
expandedGroups: I,
|
|
1095
|
+
toggleGroup: Y,
|
|
1096
1096
|
expandGroup: M,
|
|
1097
1097
|
collapseGroup: O,
|
|
1098
1098
|
variant: o,
|
|
@@ -1100,17 +1100,17 @@ function CA({
|
|
|
1100
1100
|
highlightActiveItem: c
|
|
1101
1101
|
}),
|
|
1102
1102
|
[
|
|
1103
|
-
|
|
1103
|
+
v,
|
|
1104
1104
|
b,
|
|
1105
|
-
|
|
1105
|
+
V,
|
|
1106
1106
|
m,
|
|
1107
1107
|
g,
|
|
1108
|
-
|
|
1109
|
-
|
|
1108
|
+
J,
|
|
1109
|
+
K,
|
|
1110
1110
|
f,
|
|
1111
1111
|
D,
|
|
1112
|
-
|
|
1113
|
-
|
|
1112
|
+
I,
|
|
1113
|
+
Y,
|
|
1114
1114
|
M,
|
|
1115
1115
|
O,
|
|
1116
1116
|
o,
|
|
@@ -1124,7 +1124,7 @@ function wA({
|
|
|
1124
1124
|
navigationData: A,
|
|
1125
1125
|
onMenuItemClick: t
|
|
1126
1126
|
}) {
|
|
1127
|
-
const o = je(), e = qe(), n = o.pathname, s =
|
|
1127
|
+
const o = je(), e = qe(), n = o.pathname, s = C(
|
|
1128
1128
|
(d) => {
|
|
1129
1129
|
for (const u of d) {
|
|
1130
1130
|
if (u.link === n)
|
|
@@ -1138,16 +1138,16 @@ function wA({
|
|
|
1138
1138
|
return null;
|
|
1139
1139
|
},
|
|
1140
1140
|
[n]
|
|
1141
|
-
), a = ce(() => s(A), [s, A]), l =
|
|
1141
|
+
), a = ce(() => s(A), [s, A]), l = C(
|
|
1142
1142
|
(d) => d.link === n,
|
|
1143
1143
|
[n]
|
|
1144
|
-
), i =
|
|
1144
|
+
), i = C(
|
|
1145
1145
|
(d) => d.link === n ? !0 : d.links ? d.links.some((u) => i(u)) : !1,
|
|
1146
1146
|
[n]
|
|
1147
1147
|
), h = ce(() => {
|
|
1148
|
-
const d = [], u = (p,
|
|
1148
|
+
const d = [], u = (p, v) => {
|
|
1149
1149
|
for (const b of p) {
|
|
1150
|
-
const m = [...
|
|
1150
|
+
const m = [...v, b];
|
|
1151
1151
|
if (b.link === n)
|
|
1152
1152
|
return d.push(...m), !0;
|
|
1153
1153
|
if (b.links && u(b.links, m))
|
|
@@ -1156,7 +1156,7 @@ function wA({
|
|
|
1156
1156
|
return !1;
|
|
1157
1157
|
};
|
|
1158
1158
|
return u(A, []), d;
|
|
1159
|
-
}, [A, n]), c =
|
|
1159
|
+
}, [A, n]), c = C(
|
|
1160
1160
|
(d) => {
|
|
1161
1161
|
(typeof d.disabled == "function" ? d.disabled() : d.disabled) || (t && t(d), d.link && (d.routeParams ? e(d.link, { state: d.routeParams }) : e(d.link)), d.redirect && e(d.redirect));
|
|
1162
1162
|
},
|
|
@@ -1171,11 +1171,11 @@ function wA({
|
|
|
1171
1171
|
activeBreadcrumb: h
|
|
1172
1172
|
};
|
|
1173
1173
|
}
|
|
1174
|
-
function
|
|
1174
|
+
function ro({
|
|
1175
1175
|
navigationData: A,
|
|
1176
1176
|
onSearch: t
|
|
1177
1177
|
}) {
|
|
1178
|
-
const [o, e] = ge(""), n =
|
|
1178
|
+
const [o, e] = ge(""), n = C((h) => h.reduce((c, d) => {
|
|
1179
1179
|
let u = 1;
|
|
1180
1180
|
return d.links && (u += n(d.links)), c + u;
|
|
1181
1181
|
}, 0), []), s = ce(() => {
|
|
@@ -1184,8 +1184,8 @@ function Wt({
|
|
|
1184
1184
|
const h = o.toLowerCase().trim(), c = (d) => d.reduce((u, p) => {
|
|
1185
1185
|
if (!p.showInSidebar)
|
|
1186
1186
|
return u;
|
|
1187
|
-
const
|
|
1188
|
-
return (
|
|
1187
|
+
const v = p.label.toLowerCase().includes(h), b = p.links ? c(p.links) : [];
|
|
1188
|
+
return (v || b.length > 0) && u.push({
|
|
1189
1189
|
...p,
|
|
1190
1190
|
links: b.length > 0 ? b : p.links,
|
|
1191
1191
|
// Expandir automaticamente grupos com match
|
|
@@ -1193,20 +1193,20 @@ function Wt({
|
|
|
1193
1193
|
}), u;
|
|
1194
1194
|
}, []);
|
|
1195
1195
|
return c(A);
|
|
1196
|
-
}, [A, o]), a = ce(() => o.trim() ? n(s) : n(A), [o, A, s, n]), l =
|
|
1196
|
+
}, [A, o]), a = ce(() => o.trim() ? n(s) : n(A), [o, A, s, n]), l = C(
|
|
1197
1197
|
(h) => {
|
|
1198
1198
|
if (e(h), t) {
|
|
1199
1199
|
const c = h.toLowerCase().trim();
|
|
1200
1200
|
if (!c)
|
|
1201
1201
|
t(h, A);
|
|
1202
1202
|
else {
|
|
1203
|
-
const d = (u) => u.reduce((p,
|
|
1204
|
-
if (!
|
|
1203
|
+
const d = (u) => u.reduce((p, v) => {
|
|
1204
|
+
if (!v.showInSidebar)
|
|
1205
1205
|
return p;
|
|
1206
|
-
const b =
|
|
1206
|
+
const b = v.label.toLowerCase().includes(c), m = v.links ? d(v.links) : [];
|
|
1207
1207
|
return (b || m.length > 0) && p.push({
|
|
1208
|
-
...
|
|
1209
|
-
links: m.length > 0 ? m :
|
|
1208
|
+
...v,
|
|
1209
|
+
links: m.length > 0 ? m : v.links,
|
|
1210
1210
|
initiallyOpened: !0
|
|
1211
1211
|
}), p;
|
|
1212
1212
|
}, []);
|
|
@@ -1215,7 +1215,7 @@ function Wt({
|
|
|
1215
1215
|
}
|
|
1216
1216
|
},
|
|
1217
1217
|
[A, t]
|
|
1218
|
-
), i =
|
|
1218
|
+
), i = C(() => {
|
|
1219
1219
|
l("");
|
|
1220
1220
|
}, [l]);
|
|
1221
1221
|
return {
|
|
@@ -1228,7 +1228,7 @@ function Wt({
|
|
|
1228
1228
|
totalResults: a
|
|
1229
1229
|
};
|
|
1230
1230
|
}
|
|
1231
|
-
function
|
|
1231
|
+
function to(A) {
|
|
1232
1232
|
return A.toLowerCase().replace("ctrl+", "mod+").replace("cmd+", "mod+").replace("control+", "mod+");
|
|
1233
1233
|
}
|
|
1234
1234
|
function SA({
|
|
@@ -1245,10 +1245,10 @@ function SA({
|
|
|
1245
1245
|
});
|
|
1246
1246
|
};
|
|
1247
1247
|
return h(A), i;
|
|
1248
|
-
}, [A]), s =
|
|
1248
|
+
}, [A]), s = C(
|
|
1249
1249
|
(i) => !!i.shortcut,
|
|
1250
1250
|
[]
|
|
1251
|
-
), a =
|
|
1251
|
+
), a = C(
|
|
1252
1252
|
(i) => i.shortcut,
|
|
1253
1253
|
[]
|
|
1254
1254
|
), l = ce(() => {
|
|
@@ -1256,7 +1256,7 @@ function SA({
|
|
|
1256
1256
|
return [];
|
|
1257
1257
|
const i = [];
|
|
1258
1258
|
return o && i.push(["mod+b", o]), n.forEach((h, c) => {
|
|
1259
|
-
const d =
|
|
1259
|
+
const d = to(c);
|
|
1260
1260
|
i.push([
|
|
1261
1261
|
d,
|
|
1262
1262
|
() => {
|
|
@@ -1265,7 +1265,7 @@ function SA({
|
|
|
1265
1265
|
]);
|
|
1266
1266
|
}), i;
|
|
1267
1267
|
}, [e, n, t, o]);
|
|
1268
|
-
return
|
|
1268
|
+
return Dr(l), {
|
|
1269
1269
|
shortcuts: n,
|
|
1270
1270
|
hasShortcut: s,
|
|
1271
1271
|
getShortcut: a
|
|
@@ -1286,20 +1286,20 @@ function $e({
|
|
|
1286
1286
|
activeBackground: d,
|
|
1287
1287
|
isActive: u
|
|
1288
1288
|
}) {
|
|
1289
|
-
const p = me(), { colorScheme:
|
|
1289
|
+
const p = me(), { colorScheme: v } = de(), b = A, [m, g] = ge(!1), f = s || "var(--mantine-color-text)", x = a || p.colors[p.primaryColor][6], I = l || p.colors[p.primaryColor][6], L = l ? `color-mix(in srgb, ${l} 80%, black)` : p.colors[p.primaryColor][8], J = m ? e ? L : I : e ? I : "transparent", V = m || e ? p.white : f, Y = m || e ? p.white : x, O = e && !m && !!d ? { background: d, backgroundColor: void 0 } : { background: void 0, backgroundColor: J }, D = typeof A.disabled == "function" ? A.disabled() : A.disabled;
|
|
1290
1290
|
if (D && A.hideDisabledItem || !A.showInSidebar)
|
|
1291
1291
|
return null;
|
|
1292
|
-
const
|
|
1292
|
+
const K = C(() => {
|
|
1293
1293
|
!D && n && n(A);
|
|
1294
|
-
}, [D, n, A]), P = Re.t(A.label),
|
|
1294
|
+
}, [D, n, A]), P = Re.t(A.label), y = () => b.badge ? /* @__PURE__ */ r(pA, { size: "xs", color: b.badgeColor || "blue", variant: "filled", children: b.badge }) : null, F = () => b.shortcut ? /* @__PURE__ */ r(jA, { size: "xs", style: { marginLeft: "auto" }, children: b.shortcut }) : null;
|
|
1295
1295
|
if (A.links && A.links.length > 0) {
|
|
1296
|
-
const
|
|
1297
|
-
const
|
|
1298
|
-
return
|
|
1296
|
+
const T = A.links.filter((k) => {
|
|
1297
|
+
const G = typeof k.disabled == "function" ? k.disabled() : k.disabled;
|
|
1298
|
+
return k.showInSidebar && (!G || !k.hideDisabledItem);
|
|
1299
1299
|
});
|
|
1300
|
-
if (
|
|
1300
|
+
if (T.length === 0 && D && A.hideDisabledItem)
|
|
1301
1301
|
return null;
|
|
1302
|
-
const
|
|
1302
|
+
const ee = (k) => u ? u(k) : e, U = (k) => k.some((G) => ee(G) || (G.links ? U(G.links) : !1));
|
|
1303
1303
|
return o ? /* @__PURE__ */ R(
|
|
1304
1304
|
ie,
|
|
1305
1305
|
{
|
|
@@ -1311,7 +1311,7 @@ function $e({
|
|
|
1311
1311
|
closeDelay: 200,
|
|
1312
1312
|
children: [
|
|
1313
1313
|
/* @__PURE__ */ r(ie.Target, { children: /* @__PURE__ */ r(Je, { style: { width: "100%", padding: "2px 0" }, children: /* @__PURE__ */ r(Me, { label: P, position: "right", withArrow: !0, children: /* @__PURE__ */ R(
|
|
1314
|
-
|
|
1314
|
+
_,
|
|
1315
1315
|
{
|
|
1316
1316
|
gap: 1,
|
|
1317
1317
|
align: "center",
|
|
@@ -1320,10 +1320,10 @@ function $e({
|
|
|
1320
1320
|
},
|
|
1321
1321
|
children: [
|
|
1322
1322
|
/* @__PURE__ */ r(
|
|
1323
|
-
|
|
1323
|
+
H,
|
|
1324
1324
|
{
|
|
1325
1325
|
style: {
|
|
1326
|
-
color:
|
|
1326
|
+
color: x,
|
|
1327
1327
|
display: "flex",
|
|
1328
1328
|
alignItems: "center",
|
|
1329
1329
|
justifyContent: "center"
|
|
@@ -1337,7 +1337,7 @@ function $e({
|
|
|
1337
1337
|
size: "8px",
|
|
1338
1338
|
ta: "center",
|
|
1339
1339
|
style: {
|
|
1340
|
-
color:
|
|
1340
|
+
color: x,
|
|
1341
1341
|
lineHeight: 1,
|
|
1342
1342
|
maxWidth: 56,
|
|
1343
1343
|
overflow: "hidden",
|
|
@@ -1352,29 +1352,29 @@ function $e({
|
|
|
1352
1352
|
) }) }) }),
|
|
1353
1353
|
/* @__PURE__ */ R(ie.Dropdown, { children: [
|
|
1354
1354
|
/* @__PURE__ */ r(ie.Label, { children: P }),
|
|
1355
|
-
|
|
1356
|
-
const
|
|
1355
|
+
T.map((k, G) => {
|
|
1356
|
+
const Ae = typeof k.disabled == "function" ? k.disabled() : k.disabled;
|
|
1357
1357
|
return /* @__PURE__ */ r(
|
|
1358
1358
|
ie.Item,
|
|
1359
1359
|
{
|
|
1360
|
-
leftSection:
|
|
1361
|
-
disabled:
|
|
1362
|
-
onClick: () => n?.(
|
|
1363
|
-
children: Re.t(
|
|
1360
|
+
leftSection: k.icon,
|
|
1361
|
+
disabled: Ae,
|
|
1362
|
+
onClick: () => n?.(k),
|
|
1363
|
+
children: Re.t(k.label)
|
|
1364
1364
|
},
|
|
1365
|
-
|
|
1365
|
+
G
|
|
1366
1366
|
);
|
|
1367
1367
|
})
|
|
1368
1368
|
] })
|
|
1369
1369
|
]
|
|
1370
1370
|
}
|
|
1371
1371
|
) : /* @__PURE__ */ r(
|
|
1372
|
-
|
|
1372
|
+
NA,
|
|
1373
1373
|
{
|
|
1374
1374
|
label: P,
|
|
1375
|
-
leftSection: /* @__PURE__ */ r(
|
|
1376
|
-
rightSection: /* @__PURE__ */ R(
|
|
1377
|
-
|
|
1375
|
+
leftSection: /* @__PURE__ */ r(H, { style: { color: Y }, children: A.icon }),
|
|
1376
|
+
rightSection: /* @__PURE__ */ R(H, { style: { display: "flex", alignItems: "center", gap: 4, color: V }, children: [
|
|
1377
|
+
y(),
|
|
1378
1378
|
/* @__PURE__ */ r(
|
|
1379
1379
|
gA,
|
|
1380
1380
|
{
|
|
@@ -1386,7 +1386,7 @@ function $e({
|
|
|
1386
1386
|
)
|
|
1387
1387
|
] }),
|
|
1388
1388
|
childrenOffset: 28,
|
|
1389
|
-
defaultOpened: A.initiallyOpened || e ||
|
|
1389
|
+
defaultOpened: A.initiallyOpened || e || U(T),
|
|
1390
1390
|
disabled: D,
|
|
1391
1391
|
onMouseEnter: () => g(!0),
|
|
1392
1392
|
onMouseLeave: () => g(!1),
|
|
@@ -1402,19 +1402,19 @@ function $e({
|
|
|
1402
1402
|
borderRadius: h
|
|
1403
1403
|
},
|
|
1404
1404
|
label: {
|
|
1405
|
-
color:
|
|
1405
|
+
color: V
|
|
1406
1406
|
},
|
|
1407
1407
|
children: {
|
|
1408
1408
|
paddingLeft: 0
|
|
1409
1409
|
}
|
|
1410
1410
|
},
|
|
1411
|
-
children:
|
|
1411
|
+
children: T.map((k, G) => /* @__PURE__ */ r(
|
|
1412
1412
|
$e,
|
|
1413
1413
|
{
|
|
1414
|
-
item:
|
|
1414
|
+
item: k,
|
|
1415
1415
|
depth: t + 1,
|
|
1416
1416
|
collapsed: o,
|
|
1417
|
-
active:
|
|
1417
|
+
active: ee(k),
|
|
1418
1418
|
onClick: n,
|
|
1419
1419
|
textColor: s,
|
|
1420
1420
|
iconColor: a,
|
|
@@ -1425,7 +1425,7 @@ function $e({
|
|
|
1425
1425
|
activeBackground: d,
|
|
1426
1426
|
isActive: u
|
|
1427
1427
|
},
|
|
1428
|
-
|
|
1428
|
+
G
|
|
1429
1429
|
))
|
|
1430
1430
|
}
|
|
1431
1431
|
);
|
|
@@ -1446,30 +1446,30 @@ function $e({
|
|
|
1446
1446
|
cursor: D ? "not-allowed" : "pointer",
|
|
1447
1447
|
opacity: D ? 0.5 : 1,
|
|
1448
1448
|
// Gradiente (activeBackground) via shorthand; senão a cor sólida.
|
|
1449
|
-
...e && d ? { background: d } : { backgroundColor: e ?
|
|
1449
|
+
...e && d ? { background: d } : { backgroundColor: e ? I : "transparent" },
|
|
1450
1450
|
transition: "background 150ms ease, background-color 150ms ease",
|
|
1451
1451
|
padding: "2px 0"
|
|
1452
1452
|
},
|
|
1453
|
-
onClick:
|
|
1454
|
-
onMouseEnter: (
|
|
1453
|
+
onClick: K,
|
|
1454
|
+
onMouseEnter: (T) => {
|
|
1455
1455
|
if (!D) {
|
|
1456
1456
|
if (e && d)
|
|
1457
1457
|
return;
|
|
1458
|
-
|
|
1458
|
+
T.currentTarget.style.backgroundColor = e ? L : I;
|
|
1459
1459
|
}
|
|
1460
1460
|
},
|
|
1461
|
-
onMouseLeave: (
|
|
1462
|
-
e && d || (
|
|
1461
|
+
onMouseLeave: (T) => {
|
|
1462
|
+
e && d || (T.currentTarget.style.backgroundColor = e ? I : "transparent");
|
|
1463
1463
|
},
|
|
1464
|
-
children: /* @__PURE__ */ R(
|
|
1465
|
-
/* @__PURE__ */ r(
|
|
1464
|
+
children: /* @__PURE__ */ R(_, { gap: 1, align: "center", children: [
|
|
1465
|
+
/* @__PURE__ */ r(H, { style: { color: e ? p.white : x }, children: A.icon }),
|
|
1466
1466
|
/* @__PURE__ */ r(
|
|
1467
1467
|
Te,
|
|
1468
1468
|
{
|
|
1469
1469
|
size: "8px",
|
|
1470
1470
|
ta: "center",
|
|
1471
1471
|
style: {
|
|
1472
|
-
color: e ? p.white :
|
|
1472
|
+
color: e ? p.white : x,
|
|
1473
1473
|
lineHeight: 1,
|
|
1474
1474
|
maxWidth: 56,
|
|
1475
1475
|
overflow: "hidden",
|
|
@@ -1484,17 +1484,17 @@ function $e({
|
|
|
1484
1484
|
)
|
|
1485
1485
|
}
|
|
1486
1486
|
) : /* @__PURE__ */ r(
|
|
1487
|
-
|
|
1487
|
+
NA,
|
|
1488
1488
|
{
|
|
1489
1489
|
label: P,
|
|
1490
|
-
leftSection: /* @__PURE__ */ r(
|
|
1491
|
-
rightSection: /* @__PURE__ */ R(
|
|
1492
|
-
|
|
1493
|
-
|
|
1490
|
+
leftSection: /* @__PURE__ */ r(H, { style: { color: Y }, children: A.icon }),
|
|
1491
|
+
rightSection: /* @__PURE__ */ R(H, { style: { display: "flex", alignItems: "center", gap: 4, color: V }, children: [
|
|
1492
|
+
y(),
|
|
1493
|
+
F()
|
|
1494
1494
|
] }),
|
|
1495
1495
|
active: e,
|
|
1496
1496
|
disabled: D,
|
|
1497
|
-
onClick:
|
|
1497
|
+
onClick: K,
|
|
1498
1498
|
onMouseEnter: () => g(!0),
|
|
1499
1499
|
onMouseLeave: () => g(!1),
|
|
1500
1500
|
style: {
|
|
@@ -1510,13 +1510,13 @@ function $e({
|
|
|
1510
1510
|
borderRadius: h
|
|
1511
1511
|
},
|
|
1512
1512
|
label: {
|
|
1513
|
-
color:
|
|
1513
|
+
color: V
|
|
1514
1514
|
}
|
|
1515
1515
|
}
|
|
1516
1516
|
}
|
|
1517
1517
|
);
|
|
1518
1518
|
}
|
|
1519
|
-
function
|
|
1519
|
+
function oo({
|
|
1520
1520
|
label: A,
|
|
1521
1521
|
icon: t,
|
|
1522
1522
|
children: o,
|
|
@@ -1525,10 +1525,10 @@ function eo({
|
|
|
1525
1525
|
onExpandedChange: s,
|
|
1526
1526
|
groupId: a
|
|
1527
1527
|
}) {
|
|
1528
|
-
const l = me(), { colorScheme: i } = de(), [h, c] = ge(e), d = n !== void 0, u = d ? n : h, p =
|
|
1528
|
+
const l = me(), { colorScheme: i } = de(), [h, c] = ge(e), d = n !== void 0, u = d ? n : h, p = C(() => {
|
|
1529
1529
|
d ? s?.(!u) : c((f) => !f);
|
|
1530
|
-
}, [d, u, s]),
|
|
1531
|
-
return /* @__PURE__ */ R(
|
|
1530
|
+
}, [d, u, s]), v = i === "dark" ? l.colors.dark[6] : l.colors.gray[1], b = i === "dark" ? l.colors.dark[5] : l.colors.gray[2], m = i === "dark" ? l.colors.gray[4] : l.colors.gray[7], g = i === "dark" ? l.colors[l.primaryColor][4] : l.colors[l.primaryColor][6];
|
|
1531
|
+
return /* @__PURE__ */ R(H, { children: [
|
|
1532
1532
|
/* @__PURE__ */ r(
|
|
1533
1533
|
cA,
|
|
1534
1534
|
{
|
|
@@ -1537,7 +1537,7 @@ function eo({
|
|
|
1537
1537
|
p: "xs",
|
|
1538
1538
|
style: {
|
|
1539
1539
|
borderRadius: l.radius.sm,
|
|
1540
|
-
backgroundColor:
|
|
1540
|
+
backgroundColor: v,
|
|
1541
1541
|
transition: "background-color 150ms ease"
|
|
1542
1542
|
},
|
|
1543
1543
|
styles: {
|
|
@@ -1549,11 +1549,11 @@ function eo({
|
|
|
1549
1549
|
},
|
|
1550
1550
|
children: /* @__PURE__ */ R(Le, { justify: "space-between", wrap: "nowrap", children: [
|
|
1551
1551
|
/* @__PURE__ */ R(Le, { gap: "xs", wrap: "nowrap", children: [
|
|
1552
|
-
t && /* @__PURE__ */ r(
|
|
1552
|
+
t && /* @__PURE__ */ r(H, { style: { color: g }, children: t }),
|
|
1553
1553
|
/* @__PURE__ */ r(Te, { size: "sm", fw: 600, c: m, children: Re.t(A) })
|
|
1554
1554
|
] }),
|
|
1555
1555
|
/* @__PURE__ */ r(
|
|
1556
|
-
|
|
1556
|
+
Yr,
|
|
1557
1557
|
{
|
|
1558
1558
|
size: 16,
|
|
1559
1559
|
color: m,
|
|
@@ -1566,15 +1566,15 @@ function eo({
|
|
|
1566
1566
|
] })
|
|
1567
1567
|
}
|
|
1568
1568
|
),
|
|
1569
|
-
/* @__PURE__ */ r(
|
|
1569
|
+
/* @__PURE__ */ r(Vr, { expanded: u, children: /* @__PURE__ */ r(H, { mt: 4, children: o }) })
|
|
1570
1570
|
] });
|
|
1571
1571
|
}
|
|
1572
|
-
function
|
|
1572
|
+
function On({
|
|
1573
1573
|
label: A,
|
|
1574
1574
|
children: t
|
|
1575
1575
|
}) {
|
|
1576
1576
|
const o = me(), { colorScheme: e } = de(), n = e === "dark" ? o.colors.gray[5] : o.colors.gray[6];
|
|
1577
|
-
return /* @__PURE__ */ R(
|
|
1577
|
+
return /* @__PURE__ */ R(H, { children: [
|
|
1578
1578
|
/* @__PURE__ */ r(
|
|
1579
1579
|
Te,
|
|
1580
1580
|
{
|
|
@@ -1591,7 +1591,7 @@ function Mn({
|
|
|
1591
1591
|
t
|
|
1592
1592
|
] });
|
|
1593
1593
|
}
|
|
1594
|
-
function
|
|
1594
|
+
function no({
|
|
1595
1595
|
group: A,
|
|
1596
1596
|
active: t = !1,
|
|
1597
1597
|
onClick: o,
|
|
@@ -1600,7 +1600,7 @@ function Ao({
|
|
|
1600
1600
|
inactiveColor: s
|
|
1601
1601
|
}) {
|
|
1602
1602
|
const a = me(), { colorScheme: l } = de(), i = l === "dark" ? a.colors[a.primaryColor][8] : a.colors[a.primaryColor][0], h = l === "dark" ? a.colors[a.primaryColor][6] : a.colors[a.primaryColor][7], c = a.colors[a.primaryColor][2], p = /* @__PURE__ */ R(
|
|
1603
|
-
|
|
1603
|
+
_,
|
|
1604
1604
|
{
|
|
1605
1605
|
gap: 2,
|
|
1606
1606
|
align: "center",
|
|
@@ -1639,19 +1639,19 @@ function Ao({
|
|
|
1639
1639
|
);
|
|
1640
1640
|
return e ? p : /* @__PURE__ */ r(Me, { label: A.hint || A.label, position: "right", withArrow: !0, children: p });
|
|
1641
1641
|
}
|
|
1642
|
-
function
|
|
1642
|
+
function $n({
|
|
1643
1643
|
placeholder: A = "Buscar...",
|
|
1644
1644
|
value: t,
|
|
1645
1645
|
onChange: o,
|
|
1646
1646
|
onClear: e,
|
|
1647
1647
|
collapsed: n = !1
|
|
1648
1648
|
}) {
|
|
1649
|
-
const s = me(), { colorScheme: a } = de(), l =
|
|
1649
|
+
const s = me(), { colorScheme: a } = de(), l = C(
|
|
1650
1650
|
(c) => {
|
|
1651
1651
|
o?.(c.currentTarget.value);
|
|
1652
1652
|
},
|
|
1653
1653
|
[o]
|
|
1654
|
-
), i =
|
|
1654
|
+
), i = C(() => {
|
|
1655
1655
|
o?.(""), e?.();
|
|
1656
1656
|
}, [o, e]), h = t && t.length > 0;
|
|
1657
1657
|
return n ? /* @__PURE__ */ r(
|
|
@@ -1663,7 +1663,7 @@ function Dn({
|
|
|
1663
1663
|
children: /* @__PURE__ */ r(_e, { size: 18 })
|
|
1664
1664
|
}
|
|
1665
1665
|
) : /* @__PURE__ */ r(
|
|
1666
|
-
|
|
1666
|
+
XA,
|
|
1667
1667
|
{
|
|
1668
1668
|
placeholder: A,
|
|
1669
1669
|
leftSection: /* @__PURE__ */ r(_e, { size: 16 }),
|
|
@@ -1674,9 +1674,9 @@ function Dn({
|
|
|
1674
1674
|
size: "sm",
|
|
1675
1675
|
onClick: i,
|
|
1676
1676
|
style: { cursor: "pointer" },
|
|
1677
|
-
children: /* @__PURE__ */ r(
|
|
1677
|
+
children: /* @__PURE__ */ r(er, { size: 14 })
|
|
1678
1678
|
}
|
|
1679
|
-
) : /* @__PURE__ */ r(
|
|
1679
|
+
) : /* @__PURE__ */ r(jA, { size: "xs", style: { marginRight: 4 }, children: "/" }),
|
|
1680
1680
|
value: t,
|
|
1681
1681
|
onChange: l,
|
|
1682
1682
|
size: "sm",
|
|
@@ -1688,7 +1688,7 @@ function Dn({
|
|
|
1688
1688
|
}
|
|
1689
1689
|
);
|
|
1690
1690
|
}
|
|
1691
|
-
function
|
|
1691
|
+
function Qn({
|
|
1692
1692
|
name: A,
|
|
1693
1693
|
email: t,
|
|
1694
1694
|
avatar: o,
|
|
@@ -1743,7 +1743,7 @@ function Nn({
|
|
|
1743
1743
|
},
|
|
1744
1744
|
children: /* @__PURE__ */ R(Le, { wrap: "nowrap", children: [
|
|
1745
1745
|
i(),
|
|
1746
|
-
/* @__PURE__ */ R(
|
|
1746
|
+
/* @__PURE__ */ R(H, { style: { flex: 1, overflow: "hidden" }, children: [
|
|
1747
1747
|
A && /* @__PURE__ */ r(
|
|
1748
1748
|
Te,
|
|
1749
1749
|
{
|
|
@@ -1782,7 +1782,7 @@ function Nn({
|
|
|
1782
1782
|
}
|
|
1783
1783
|
);
|
|
1784
1784
|
}
|
|
1785
|
-
function
|
|
1785
|
+
function Kn({
|
|
1786
1786
|
value: A,
|
|
1787
1787
|
color: t = "red",
|
|
1788
1788
|
size: o = "xs"
|
|
@@ -1790,14 +1790,14 @@ function zn({
|
|
|
1790
1790
|
const e = typeof A == "number" && A > 99 ? "99+" : A;
|
|
1791
1791
|
return /* @__PURE__ */ r(pA, { size: o, color: t, variant: "filled", children: e });
|
|
1792
1792
|
}
|
|
1793
|
-
function
|
|
1793
|
+
function Fn({
|
|
1794
1794
|
children: A,
|
|
1795
1795
|
show: t = !0,
|
|
1796
1796
|
color: o = "red",
|
|
1797
1797
|
processing: e = !1
|
|
1798
1798
|
}) {
|
|
1799
1799
|
return /* @__PURE__ */ r(
|
|
1800
|
-
|
|
1800
|
+
Gr,
|
|
1801
1801
|
{
|
|
1802
1802
|
disabled: !t,
|
|
1803
1803
|
color: o,
|
|
@@ -1818,8 +1818,8 @@ function kA({
|
|
|
1818
1818
|
}) {
|
|
1819
1819
|
const a = me(), { colorScheme: l } = de(), i = o || (l === "dark" ? a.colors.dark[7] : a.white);
|
|
1820
1820
|
if (t)
|
|
1821
|
-
return /* @__PURE__ */ r(
|
|
1822
|
-
const h = (d, u = !1) => Array.from({ length: d }).map((p,
|
|
1821
|
+
return /* @__PURE__ */ r(_, { gap: "sm", p: "xs", style: { backgroundColor: i }, children: Array.from({ length: A }).map((d, u) => /* @__PURE__ */ r(pe, { circle: !0, height: 32, width: 32 }, u)) });
|
|
1822
|
+
const h = (d, u = !1) => Array.from({ length: d }).map((p, v) => {
|
|
1823
1823
|
const b = 60 + Math.random() * 30;
|
|
1824
1824
|
return /* @__PURE__ */ R(
|
|
1825
1825
|
Le,
|
|
@@ -1835,31 +1835,31 @@ function kA({
|
|
|
1835
1835
|
/* @__PURE__ */ r(pe, { height: 14, width: `${b}%`, radius: "sm" })
|
|
1836
1836
|
]
|
|
1837
1837
|
},
|
|
1838
|
-
|
|
1838
|
+
v
|
|
1839
1839
|
);
|
|
1840
1840
|
});
|
|
1841
1841
|
if (!n)
|
|
1842
|
-
return /* @__PURE__ */ r(
|
|
1842
|
+
return /* @__PURE__ */ r(_, { gap: 2, p: "xs", style: { backgroundColor: i }, children: h(A) });
|
|
1843
1843
|
const c = Math.ceil(A / s);
|
|
1844
|
-
return /* @__PURE__ */ r(
|
|
1844
|
+
return /* @__PURE__ */ r(_, { gap: "md", p: "xs", style: { backgroundColor: i }, children: Array.from({ length: s }).map((d, u) => /* @__PURE__ */ R(H, { children: [
|
|
1845
1845
|
/* @__PURE__ */ R(Le, { gap: "sm", p: "xs", children: [
|
|
1846
1846
|
/* @__PURE__ */ r(pe, { circle: !0, height: 20, width: 20 }),
|
|
1847
1847
|
/* @__PURE__ */ r(pe, { height: 12, width: 80 + Math.random() * 40, radius: "sm" })
|
|
1848
1848
|
] }),
|
|
1849
|
-
/* @__PURE__ */ r(
|
|
1849
|
+
/* @__PURE__ */ r(_, { gap: 2, mt: 4, children: h(
|
|
1850
1850
|
u === s - 1 ? A - u * c : c,
|
|
1851
1851
|
!0
|
|
1852
1852
|
) })
|
|
1853
1853
|
] }, u)) });
|
|
1854
1854
|
}
|
|
1855
|
-
function
|
|
1855
|
+
function so({
|
|
1856
1856
|
groupCount: A = 4,
|
|
1857
1857
|
width: t = 80,
|
|
1858
1858
|
backgroundColor: o
|
|
1859
1859
|
}) {
|
|
1860
1860
|
const e = me(), { colorScheme: n } = de(), s = o || (n === "dark" ? e.colors[e.primaryColor][8] : e.colors[e.primaryColor][6]);
|
|
1861
1861
|
return /* @__PURE__ */ r(
|
|
1862
|
-
|
|
1862
|
+
_,
|
|
1863
1863
|
{
|
|
1864
1864
|
gap: "sm",
|
|
1865
1865
|
p: "xs",
|
|
@@ -1869,30 +1869,30 @@ function ro({
|
|
|
1869
1869
|
backgroundColor: s,
|
|
1870
1870
|
height: "100%"
|
|
1871
1871
|
},
|
|
1872
|
-
children: Array.from({ length: A }).map((a, l) => /* @__PURE__ */ R(
|
|
1872
|
+
children: Array.from({ length: A }).map((a, l) => /* @__PURE__ */ R(_, { gap: 4, align: "center", children: [
|
|
1873
1873
|
/* @__PURE__ */ r(pe, { circle: !0, height: 48, width: 48 }),
|
|
1874
1874
|
/* @__PURE__ */ r(pe, { height: 10, width: 40, radius: "sm" })
|
|
1875
1875
|
] }, l))
|
|
1876
1876
|
}
|
|
1877
1877
|
);
|
|
1878
1878
|
}
|
|
1879
|
-
function
|
|
1879
|
+
function Vn({
|
|
1880
1880
|
collapsed: A = !1
|
|
1881
1881
|
}) {
|
|
1882
|
-
return A ? /* @__PURE__ */ r(
|
|
1882
|
+
return A ? /* @__PURE__ */ r(H, { p: "xs", style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ r(pe, { circle: !0, height: 32, width: 32 }) }) : /* @__PURE__ */ R(Le, { gap: "sm", p: "md", children: [
|
|
1883
1883
|
/* @__PURE__ */ r(pe, { circle: !0, height: 40, width: 40 }),
|
|
1884
|
-
/* @__PURE__ */ R(
|
|
1884
|
+
/* @__PURE__ */ R(_, { gap: 4, style: { flex: 1 }, children: [
|
|
1885
1885
|
/* @__PURE__ */ r(pe, { height: 14, width: "70%", radius: "sm" }),
|
|
1886
1886
|
/* @__PURE__ */ r(pe, { height: 10, width: "50%", radius: "sm" })
|
|
1887
1887
|
] })
|
|
1888
1888
|
] });
|
|
1889
1889
|
}
|
|
1890
|
-
function
|
|
1890
|
+
function Gn({
|
|
1891
1891
|
collapsed: A = !1
|
|
1892
1892
|
}) {
|
|
1893
|
-
return A ? /* @__PURE__ */ r(
|
|
1893
|
+
return A ? /* @__PURE__ */ r(H, { p: "xs", style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ r(pe, { circle: !0, height: 36, width: 36 }) }) : /* @__PURE__ */ R(Le, { gap: "sm", p: "sm", children: [
|
|
1894
1894
|
/* @__PURE__ */ r(pe, { circle: !0, height: 36, width: 36 }),
|
|
1895
|
-
/* @__PURE__ */ R(
|
|
1895
|
+
/* @__PURE__ */ R(_, { gap: 4, style: { flex: 1 }, children: [
|
|
1896
1896
|
/* @__PURE__ */ r(pe, { height: 12, width: "60%", radius: "sm" }),
|
|
1897
1897
|
/* @__PURE__ */ r(pe, { height: 10, width: "80%", radius: "sm" })
|
|
1898
1898
|
] })
|
|
@@ -1904,7 +1904,7 @@ function xA({
|
|
|
1904
1904
|
}) {
|
|
1905
1905
|
const o = me(), { colorScheme: e } = de(), n = t || (e === "dark" ? o.colors.dark[7] : o.white), s = e === "dark" ? o.colors.red[4] : o.colors.red[6];
|
|
1906
1906
|
return /* @__PURE__ */ r(
|
|
1907
|
-
|
|
1907
|
+
H,
|
|
1908
1908
|
{
|
|
1909
1909
|
p: "md",
|
|
1910
1910
|
style: {
|
|
@@ -1915,7 +1915,7 @@ function xA({
|
|
|
1915
1915
|
height: "100%"
|
|
1916
1916
|
},
|
|
1917
1917
|
children: /* @__PURE__ */ r(
|
|
1918
|
-
|
|
1918
|
+
H,
|
|
1919
1919
|
{
|
|
1920
1920
|
p: "md",
|
|
1921
1921
|
style: {
|
|
@@ -1931,7 +1931,7 @@ function xA({
|
|
|
1931
1931
|
}
|
|
1932
1932
|
);
|
|
1933
1933
|
}
|
|
1934
|
-
function
|
|
1934
|
+
function lo({
|
|
1935
1935
|
navigationData: A,
|
|
1936
1936
|
width: t = 280,
|
|
1937
1937
|
collapsedWidth: o = 60,
|
|
@@ -1946,156 +1946,156 @@ function to({
|
|
|
1946
1946
|
loadingError: d,
|
|
1947
1947
|
loadingComponent: u,
|
|
1948
1948
|
errorComponent: p,
|
|
1949
|
-
skeletonItemCount:
|
|
1949
|
+
skeletonItemCount: v = 8,
|
|
1950
1950
|
backgroundDarkColor: b,
|
|
1951
1951
|
backgroundLightColor: m,
|
|
1952
1952
|
backgroundImage: g,
|
|
1953
1953
|
textDarkColor: f,
|
|
1954
|
-
textLightColor:
|
|
1955
|
-
iconDarkColor:
|
|
1954
|
+
textLightColor: x,
|
|
1955
|
+
iconDarkColor: I,
|
|
1956
1956
|
iconLightColor: L,
|
|
1957
|
-
activeColor:
|
|
1958
|
-
withBorder:
|
|
1959
|
-
withShadow:
|
|
1957
|
+
activeColor: J,
|
|
1958
|
+
withBorder: V = !0,
|
|
1959
|
+
withShadow: Y = !1,
|
|
1960
1960
|
highlightActiveItem: M = !0,
|
|
1961
1961
|
onMenuItemClick: O,
|
|
1962
1962
|
itemBorderRadius: D,
|
|
1963
|
-
itemHorizontalGap:
|
|
1963
|
+
itemHorizontalGap: K,
|
|
1964
1964
|
itemActiveBackground: P
|
|
1965
1965
|
}) {
|
|
1966
|
-
const
|
|
1966
|
+
const y = me(), { colorScheme: F } = de(), { collapsed: T, toggleCollapsed: ee } = vA(), U = F === "dark" ? b ?? y.colors.dark[7] : m ?? y.white, k = F === "dark" ? f ?? y.colors.gray[3] : x ?? y.colors.gray[7], G = F === "dark" ? I ?? y.colors[y.primaryColor][4] : L ?? y.colors[y.primaryColor][6], Ae = J ? y.colors[J]?.[6] ?? y.colors[y.primaryColor][6] : y.colors[y.primaryColor][6], Ce = g ? { background: g } : { backgroundColor: U }, se = g ? "transparent" : U, {
|
|
1967
1967
|
query: be,
|
|
1968
1968
|
setQuery: we,
|
|
1969
1969
|
filteredItems: Se,
|
|
1970
1970
|
isSearching: w,
|
|
1971
|
-
clearSearch:
|
|
1972
|
-
} =
|
|
1971
|
+
clearSearch: S
|
|
1972
|
+
} = ro({
|
|
1973
1973
|
navigationData: A,
|
|
1974
1974
|
onSearch: a
|
|
1975
|
-
}), { navigateToItem:
|
|
1975
|
+
}), { navigateToItem: $, isItemActive: N, isItemOrChildActive: B } = wA({
|
|
1976
1976
|
navigationData: A,
|
|
1977
1977
|
onMenuItemClick: O
|
|
1978
|
-
}),
|
|
1979
|
-
(
|
|
1980
|
-
[M,
|
|
1978
|
+
}), E = C(
|
|
1979
|
+
(q) => !!M && N(q),
|
|
1980
|
+
[M, N]
|
|
1981
1981
|
), z = {
|
|
1982
1982
|
itemBorderRadius: D,
|
|
1983
|
-
itemHorizontalGap:
|
|
1983
|
+
itemHorizontalGap: K,
|
|
1984
1984
|
activeBackground: P,
|
|
1985
|
-
isActive:
|
|
1985
|
+
isActive: E
|
|
1986
1986
|
};
|
|
1987
1987
|
SA({
|
|
1988
1988
|
navigationData: A,
|
|
1989
|
-
navigateToItem:
|
|
1990
|
-
onToggleSidebar:
|
|
1989
|
+
navigateToItem: $,
|
|
1990
|
+
onToggleSidebar: ee,
|
|
1991
1991
|
enabled: !0
|
|
1992
1992
|
});
|
|
1993
|
-
const j =
|
|
1994
|
-
const
|
|
1995
|
-
return Se.forEach((
|
|
1996
|
-
if (!(!
|
|
1997
|
-
if (
|
|
1998
|
-
const Ee =
|
|
1999
|
-
Ee.push(
|
|
1993
|
+
const j = T ? o : t, he = ce(() => {
|
|
1994
|
+
const q = /* @__PURE__ */ new Map(), ve = [];
|
|
1995
|
+
return Se.forEach((W) => {
|
|
1996
|
+
if (!(!W.showInSidebar || (typeof W.disabled == "function" ? W.disabled() : W.disabled) && W.hideDisabledItem))
|
|
1997
|
+
if (W.category) {
|
|
1998
|
+
const Ee = q.get(W.category) || [];
|
|
1999
|
+
Ee.push(W), q.set(W.category, Ee);
|
|
2000
2000
|
} else
|
|
2001
|
-
|
|
2002
|
-
}), { groups:
|
|
2003
|
-
}, [Se]),
|
|
2001
|
+
ve.push(W);
|
|
2002
|
+
}), { groups: q, ungrouped: ve };
|
|
2003
|
+
}, [Se]), Ie = () => {
|
|
2004
2004
|
if (d)
|
|
2005
|
-
return p || /* @__PURE__ */ r(xA, { message: d, backgroundColor:
|
|
2005
|
+
return p || /* @__PURE__ */ r(xA, { message: d, backgroundColor: U });
|
|
2006
2006
|
if (c)
|
|
2007
2007
|
return u || /* @__PURE__ */ r(
|
|
2008
2008
|
kA,
|
|
2009
2009
|
{
|
|
2010
|
-
itemCount:
|
|
2011
|
-
collapsed:
|
|
2012
|
-
backgroundColor:
|
|
2013
|
-
showGroups: !
|
|
2010
|
+
itemCount: v,
|
|
2011
|
+
collapsed: T,
|
|
2012
|
+
backgroundColor: U,
|
|
2013
|
+
showGroups: !T
|
|
2014
2014
|
}
|
|
2015
2015
|
);
|
|
2016
|
-
const
|
|
2016
|
+
const q = () => he.ungrouped.map((W, re) => /* @__PURE__ */ r(
|
|
2017
2017
|
$e,
|
|
2018
2018
|
{
|
|
2019
|
-
item:
|
|
2020
|
-
collapsed:
|
|
2021
|
-
active: M &&
|
|
2022
|
-
onClick:
|
|
2023
|
-
textColor:
|
|
2024
|
-
iconColor:
|
|
2025
|
-
hoverColor:
|
|
2019
|
+
item: W,
|
|
2020
|
+
collapsed: T,
|
|
2021
|
+
active: M && N(W),
|
|
2022
|
+
onClick: $,
|
|
2023
|
+
textColor: k,
|
|
2024
|
+
iconColor: G,
|
|
2025
|
+
hoverColor: Ae,
|
|
2026
2026
|
...z
|
|
2027
2027
|
},
|
|
2028
2028
|
`item-${re}`
|
|
2029
|
-
)),
|
|
2030
|
-
|
|
2029
|
+
)), ve = () => Array.from(he.groups.entries()).map(([re, Ee], X) => /* @__PURE__ */ r(
|
|
2030
|
+
oo,
|
|
2031
2031
|
{
|
|
2032
2032
|
label: re,
|
|
2033
|
-
groupId: `group-${
|
|
2033
|
+
groupId: `group-${X}`,
|
|
2034
2034
|
defaultExpanded: !0,
|
|
2035
|
-
children: Ee.map((
|
|
2035
|
+
children: Ee.map((ke, Q) => /* @__PURE__ */ r(
|
|
2036
2036
|
$e,
|
|
2037
2037
|
{
|
|
2038
|
-
item:
|
|
2039
|
-
collapsed:
|
|
2040
|
-
active: M &&
|
|
2041
|
-
onClick:
|
|
2042
|
-
textColor:
|
|
2043
|
-
iconColor:
|
|
2044
|
-
hoverColor:
|
|
2038
|
+
item: ke,
|
|
2039
|
+
collapsed: T,
|
|
2040
|
+
active: M && N(ke),
|
|
2041
|
+
onClick: $,
|
|
2042
|
+
textColor: k,
|
|
2043
|
+
iconColor: G,
|
|
2044
|
+
hoverColor: Ae,
|
|
2045
2045
|
...z
|
|
2046
2046
|
},
|
|
2047
|
-
`group-${
|
|
2047
|
+
`group-${X}-item-${Q}`
|
|
2048
2048
|
))
|
|
2049
2049
|
},
|
|
2050
|
-
`group-${
|
|
2050
|
+
`group-${X}`
|
|
2051
2051
|
));
|
|
2052
|
-
return
|
|
2053
|
-
|
|
2052
|
+
return T ? /* @__PURE__ */ R(_, { gap: 4, children: [
|
|
2053
|
+
he.ungrouped.map((W, re) => /* @__PURE__ */ r(
|
|
2054
2054
|
$e,
|
|
2055
2055
|
{
|
|
2056
|
-
item:
|
|
2056
|
+
item: W,
|
|
2057
2057
|
collapsed: !0,
|
|
2058
|
-
active: M &&
|
|
2059
|
-
onClick:
|
|
2060
|
-
textColor:
|
|
2061
|
-
iconColor:
|
|
2062
|
-
hoverColor:
|
|
2058
|
+
active: M && N(W),
|
|
2059
|
+
onClick: $,
|
|
2060
|
+
textColor: k,
|
|
2061
|
+
iconColor: G,
|
|
2062
|
+
hoverColor: Ae,
|
|
2063
2063
|
...z
|
|
2064
2064
|
},
|
|
2065
2065
|
`item-${re}`
|
|
2066
2066
|
)),
|
|
2067
|
-
Array.from(
|
|
2067
|
+
Array.from(he.groups.values()).flat().map((W, re) => /* @__PURE__ */ r(
|
|
2068
2068
|
$e,
|
|
2069
2069
|
{
|
|
2070
|
-
item:
|
|
2070
|
+
item: W,
|
|
2071
2071
|
collapsed: !0,
|
|
2072
|
-
active: M &&
|
|
2073
|
-
onClick:
|
|
2074
|
-
textColor:
|
|
2075
|
-
iconColor:
|
|
2076
|
-
hoverColor:
|
|
2072
|
+
active: M && N(W),
|
|
2073
|
+
onClick: $,
|
|
2074
|
+
textColor: k,
|
|
2075
|
+
iconColor: G,
|
|
2076
|
+
hoverColor: Ae,
|
|
2077
2077
|
...z
|
|
2078
2078
|
},
|
|
2079
2079
|
`grouped-item-${re}`
|
|
2080
2080
|
))
|
|
2081
|
-
] }) : /* @__PURE__ */ R(
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2081
|
+
] }) : /* @__PURE__ */ R(_, { gap: "xs", children: [
|
|
2082
|
+
he.ungrouped.length > 0 && /* @__PURE__ */ r(_, { gap: 2, children: q() }),
|
|
2083
|
+
he.groups.size > 0 && he.ungrouped.length > 0 && /* @__PURE__ */ r(dA, { my: "xs" }),
|
|
2084
|
+
ve()
|
|
2085
2085
|
] });
|
|
2086
2086
|
};
|
|
2087
2087
|
return /* @__PURE__ */ r(
|
|
2088
|
-
|
|
2088
|
+
Br,
|
|
2089
2089
|
{
|
|
2090
2090
|
mounted: !0,
|
|
2091
2091
|
transition: "slide-right",
|
|
2092
2092
|
duration: 200,
|
|
2093
2093
|
timingFunction: "ease",
|
|
2094
|
-
children: (
|
|
2095
|
-
|
|
2094
|
+
children: (q) => /* @__PURE__ */ R(
|
|
2095
|
+
H,
|
|
2096
2096
|
{
|
|
2097
2097
|
style: {
|
|
2098
|
-
...
|
|
2098
|
+
...q,
|
|
2099
2099
|
width: fe(j),
|
|
2100
2100
|
height: typeof e == "number" ? fe(e) : e,
|
|
2101
2101
|
minHeight: typeof e == "number" ? fe(e) : e,
|
|
@@ -2104,26 +2104,26 @@ function to({
|
|
|
2104
2104
|
flexDirection: "column",
|
|
2105
2105
|
overflow: "hidden",
|
|
2106
2106
|
transition: "width 200ms ease",
|
|
2107
|
-
borderRight:
|
|
2108
|
-
boxShadow:
|
|
2107
|
+
borderRight: V ? `1px solid ${F === "dark" ? y.colors.dark[5] : y.colors.gray[2]}` : void 0,
|
|
2108
|
+
boxShadow: Y ? y.shadows.sm : void 0
|
|
2109
2109
|
},
|
|
2110
2110
|
children: [
|
|
2111
|
-
l && /* @__PURE__ */ r(
|
|
2112
|
-
n && !
|
|
2113
|
-
|
|
2111
|
+
l && /* @__PURE__ */ r(H, { style: { flexShrink: 0 }, children: l }),
|
|
2112
|
+
n && !T && /* @__PURE__ */ r(H, { p: "sm", style: { flexShrink: 0 }, children: /* @__PURE__ */ r(
|
|
2113
|
+
XA,
|
|
2114
2114
|
{
|
|
2115
2115
|
placeholder: s,
|
|
2116
2116
|
leftSection: /* @__PURE__ */ r(_e, { size: 16 }),
|
|
2117
2117
|
rightSection: w ? /* @__PURE__ */ r(
|
|
2118
|
-
|
|
2118
|
+
er,
|
|
2119
2119
|
{
|
|
2120
2120
|
size: 16,
|
|
2121
2121
|
style: { cursor: "pointer" },
|
|
2122
|
-
onClick:
|
|
2122
|
+
onClick: S
|
|
2123
2123
|
}
|
|
2124
2124
|
) : null,
|
|
2125
2125
|
value: be,
|
|
2126
|
-
onChange: (
|
|
2126
|
+
onChange: (ve) => we(ve.currentTarget.value),
|
|
2127
2127
|
size: "sm"
|
|
2128
2128
|
}
|
|
2129
2129
|
) }),
|
|
@@ -2134,17 +2134,17 @@ function to({
|
|
|
2134
2134
|
scrollbarSize: 6,
|
|
2135
2135
|
type: "hover",
|
|
2136
2136
|
offsetScrollbars: !0,
|
|
2137
|
-
children: /* @__PURE__ */ r(
|
|
2137
|
+
children: /* @__PURE__ */ r(H, { p: "xs", children: Ie() })
|
|
2138
2138
|
}
|
|
2139
2139
|
),
|
|
2140
2140
|
i && /* @__PURE__ */ r(
|
|
2141
|
-
|
|
2141
|
+
H,
|
|
2142
2142
|
{
|
|
2143
2143
|
style: {
|
|
2144
2144
|
flexShrink: 0,
|
|
2145
2145
|
height: h,
|
|
2146
|
-
backgroundColor:
|
|
2147
|
-
borderTop:
|
|
2146
|
+
backgroundColor: se,
|
|
2147
|
+
borderTop: V ? `1px solid ${F === "dark" ? y.colors.dark[5] : y.colors.gray[2]}` : void 0
|
|
2148
2148
|
},
|
|
2149
2149
|
children: i
|
|
2150
2150
|
}
|
|
@@ -2155,7 +2155,7 @@ function to({
|
|
|
2155
2155
|
}
|
|
2156
2156
|
);
|
|
2157
2157
|
}
|
|
2158
|
-
function
|
|
2158
|
+
function ao(A) {
|
|
2159
2159
|
const {
|
|
2160
2160
|
navigationData: t,
|
|
2161
2161
|
collapsed: o,
|
|
@@ -2176,11 +2176,11 @@ function oo(A) {
|
|
|
2176
2176
|
showKeyboardShortcuts: s,
|
|
2177
2177
|
highlightActiveItem: a,
|
|
2178
2178
|
onMenuItemClick: l,
|
|
2179
|
-
children: /* @__PURE__ */ r(
|
|
2179
|
+
children: /* @__PURE__ */ r(lo, { ...A })
|
|
2180
2180
|
}
|
|
2181
2181
|
);
|
|
2182
2182
|
}
|
|
2183
|
-
function
|
|
2183
|
+
function io({
|
|
2184
2184
|
item: A,
|
|
2185
2185
|
active: t,
|
|
2186
2186
|
onClick: o,
|
|
@@ -2207,7 +2207,7 @@ function no({
|
|
|
2207
2207
|
openDelay: 100,
|
|
2208
2208
|
closeDelay: 200,
|
|
2209
2209
|
children: [
|
|
2210
|
-
/* @__PURE__ */ r(ie.Target, { children: /* @__PURE__ */ r(Me, { label: l, position: "right", withArrow: !0, children: /* @__PURE__ */ R(
|
|
2210
|
+
/* @__PURE__ */ r(ie.Target, { children: /* @__PURE__ */ r(Me, { label: l, position: "right", withArrow: !0, children: /* @__PURE__ */ R(_, { gap: 1, align: "center", style: { cursor: "pointer" }, children: [
|
|
2211
2211
|
/* @__PURE__ */ r(
|
|
2212
2212
|
De,
|
|
2213
2213
|
{
|
|
@@ -2218,7 +2218,7 @@ function no({
|
|
|
2218
2218
|
style: {
|
|
2219
2219
|
opacity: a ? 0.5 : 1
|
|
2220
2220
|
},
|
|
2221
|
-
children: /* @__PURE__ */ r(
|
|
2221
|
+
children: /* @__PURE__ */ r(H, { style: { color: t ? "white" : e }, children: A.icon })
|
|
2222
2222
|
}
|
|
2223
2223
|
),
|
|
2224
2224
|
/* @__PURE__ */ r(
|
|
@@ -2258,7 +2258,7 @@ function no({
|
|
|
2258
2258
|
}
|
|
2259
2259
|
);
|
|
2260
2260
|
}
|
|
2261
|
-
return /* @__PURE__ */ r(Me, { label: l, position: "right", withArrow: !0, children: /* @__PURE__ */ R(
|
|
2261
|
+
return /* @__PURE__ */ r(Me, { label: l, position: "right", withArrow: !0, children: /* @__PURE__ */ R(_, { gap: 1, align: "center", style: { cursor: "pointer" }, children: [
|
|
2262
2262
|
/* @__PURE__ */ r(
|
|
2263
2263
|
De,
|
|
2264
2264
|
{
|
|
@@ -2270,7 +2270,7 @@ function no({
|
|
|
2270
2270
|
style: {
|
|
2271
2271
|
opacity: a ? 0.5 : 1
|
|
2272
2272
|
},
|
|
2273
|
-
children: /* @__PURE__ */ r(
|
|
2273
|
+
children: /* @__PURE__ */ r(H, { style: { color: t ? "white" : e }, children: A.icon })
|
|
2274
2274
|
}
|
|
2275
2275
|
),
|
|
2276
2276
|
/* @__PURE__ */ r(
|
|
@@ -2291,7 +2291,7 @@ function no({
|
|
|
2291
2291
|
)
|
|
2292
2292
|
] }) });
|
|
2293
2293
|
}
|
|
2294
|
-
function
|
|
2294
|
+
function co({
|
|
2295
2295
|
navigationData: A,
|
|
2296
2296
|
width: t = 60,
|
|
2297
2297
|
height: o = "100%",
|
|
@@ -2306,63 +2306,63 @@ function so({
|
|
|
2306
2306
|
backgroundDarkColor: d,
|
|
2307
2307
|
backgroundLightColor: u,
|
|
2308
2308
|
iconDarkColor: p,
|
|
2309
|
-
iconLightColor:
|
|
2309
|
+
iconLightColor: v,
|
|
2310
2310
|
activeColor: b,
|
|
2311
2311
|
withBorder: m = !0,
|
|
2312
2312
|
withShadow: g = !1,
|
|
2313
2313
|
highlightActiveItem: f = !0,
|
|
2314
|
-
onMenuItemClick:
|
|
2314
|
+
onMenuItemClick: x
|
|
2315
2315
|
}) {
|
|
2316
|
-
const
|
|
2316
|
+
const I = me(), { colorScheme: L } = de(), { toggleCollapsed: J } = vA(), V = L === "dark" ? d ?? I.colors.dark[7] : u ?? I.white, Y = L === "dark" ? p ?? I.colors[I.primaryColor][4] : v ?? I.colors[I.primaryColor][6], M = b ?? I.primaryColor, { navigateToItem: O, isItemActive: D, isItemOrChildActive: K } = wA({
|
|
2317
2317
|
navigationData: A,
|
|
2318
|
-
onMenuItemClick:
|
|
2318
|
+
onMenuItemClick: x
|
|
2319
2319
|
});
|
|
2320
2320
|
SA({
|
|
2321
2321
|
navigationData: A,
|
|
2322
2322
|
navigateToItem: O,
|
|
2323
|
-
onToggleSidebar:
|
|
2323
|
+
onToggleSidebar: J,
|
|
2324
2324
|
enabled: !0
|
|
2325
2325
|
});
|
|
2326
|
-
const P = A.filter((
|
|
2326
|
+
const P = A.filter((T) => !(!T.showInSidebar || (typeof T.disabled == "function" ? T.disabled() : T.disabled) && T.hideDisabledItem)), y = () => l ? h || /* @__PURE__ */ r(xA, { message: l, backgroundColor: V }) : a ? i || /* @__PURE__ */ r(
|
|
2327
2327
|
kA,
|
|
2328
2328
|
{
|
|
2329
2329
|
itemCount: c,
|
|
2330
2330
|
collapsed: !0,
|
|
2331
|
-
backgroundColor:
|
|
2331
|
+
backgroundColor: V
|
|
2332
2332
|
}
|
|
2333
|
-
) : /* @__PURE__ */ r(
|
|
2334
|
-
|
|
2333
|
+
) : /* @__PURE__ */ r(_, { gap: 8, align: "center", children: P.map((T, ee) => /* @__PURE__ */ r(
|
|
2334
|
+
io,
|
|
2335
2335
|
{
|
|
2336
|
-
item:
|
|
2337
|
-
active: f && (D(
|
|
2336
|
+
item: T,
|
|
2337
|
+
active: f && (D(T) || K(T)),
|
|
2338
2338
|
onClick: O,
|
|
2339
|
-
iconColor:
|
|
2339
|
+
iconColor: Y,
|
|
2340
2340
|
activeColor: M
|
|
2341
2341
|
},
|
|
2342
|
-
|
|
2343
|
-
)) }),
|
|
2342
|
+
ee
|
|
2343
|
+
)) }), F = L === "dark" ? I.colors.dark[5] : I.colors.gray[2];
|
|
2344
2344
|
return /* @__PURE__ */ R(
|
|
2345
|
-
|
|
2345
|
+
H,
|
|
2346
2346
|
{
|
|
2347
2347
|
style: {
|
|
2348
2348
|
width: fe(t),
|
|
2349
2349
|
height: fe(o),
|
|
2350
|
-
backgroundColor:
|
|
2350
|
+
backgroundColor: V,
|
|
2351
2351
|
display: "flex",
|
|
2352
2352
|
flexDirection: "column",
|
|
2353
2353
|
overflow: "hidden",
|
|
2354
|
-
boxShadow: g ?
|
|
2355
|
-
borderRight: m ? `1px solid ${
|
|
2354
|
+
boxShadow: g ? I.shadows.sm : void 0,
|
|
2355
|
+
borderRight: m ? `1px solid ${F}` : void 0
|
|
2356
2356
|
},
|
|
2357
2357
|
children: [
|
|
2358
2358
|
e && /* @__PURE__ */ r(
|
|
2359
|
-
|
|
2359
|
+
H,
|
|
2360
2360
|
{
|
|
2361
2361
|
style: {
|
|
2362
2362
|
flexShrink: 0,
|
|
2363
2363
|
display: "flex",
|
|
2364
2364
|
justifyContent: "center",
|
|
2365
|
-
padding:
|
|
2365
|
+
padding: I.spacing.xs
|
|
2366
2366
|
},
|
|
2367
2367
|
children: e
|
|
2368
2368
|
}
|
|
@@ -2374,20 +2374,20 @@ function so({
|
|
|
2374
2374
|
style: { flex: 1 },
|
|
2375
2375
|
scrollbarSize: 4,
|
|
2376
2376
|
type: "hover",
|
|
2377
|
-
children: /* @__PURE__ */ r(
|
|
2377
|
+
children: /* @__PURE__ */ r(H, { p: "xs", children: y() })
|
|
2378
2378
|
}
|
|
2379
2379
|
),
|
|
2380
2380
|
n && /* @__PURE__ */ R(Pe, { children: [
|
|
2381
2381
|
/* @__PURE__ */ r(dA, {}),
|
|
2382
2382
|
/* @__PURE__ */ r(
|
|
2383
|
-
|
|
2383
|
+
H,
|
|
2384
2384
|
{
|
|
2385
2385
|
style: {
|
|
2386
2386
|
flexShrink: 0,
|
|
2387
2387
|
height: s,
|
|
2388
2388
|
display: "flex",
|
|
2389
2389
|
justifyContent: "center",
|
|
2390
|
-
padding:
|
|
2390
|
+
padding: I.spacing.xs
|
|
2391
2391
|
},
|
|
2392
2392
|
children: n
|
|
2393
2393
|
}
|
|
@@ -2397,7 +2397,7 @@ function so({
|
|
|
2397
2397
|
}
|
|
2398
2398
|
);
|
|
2399
2399
|
}
|
|
2400
|
-
function
|
|
2400
|
+
function uo(A) {
|
|
2401
2401
|
const {
|
|
2402
2402
|
navigationData: t,
|
|
2403
2403
|
collapsed: o,
|
|
@@ -2418,11 +2418,11 @@ function lo(A) {
|
|
|
2418
2418
|
showKeyboardShortcuts: s,
|
|
2419
2419
|
highlightActiveItem: a,
|
|
2420
2420
|
onMenuItemClick: l,
|
|
2421
|
-
children: /* @__PURE__ */ r(
|
|
2421
|
+
children: /* @__PURE__ */ r(co, { ...A })
|
|
2422
2422
|
}
|
|
2423
2423
|
);
|
|
2424
2424
|
}
|
|
2425
|
-
function
|
|
2425
|
+
function ho({
|
|
2426
2426
|
navigationData: A,
|
|
2427
2427
|
width: t = 360,
|
|
2428
2428
|
collapsedWidth: o = 60,
|
|
@@ -2437,44 +2437,44 @@ function ao({
|
|
|
2437
2437
|
loadingError: d,
|
|
2438
2438
|
loadingComponent: u,
|
|
2439
2439
|
errorComponent: p,
|
|
2440
|
-
skeletonItemCount:
|
|
2440
|
+
skeletonItemCount: v = 8,
|
|
2441
2441
|
skeletonGroupCount: b = 3,
|
|
2442
2442
|
backgroundDarkColor: m,
|
|
2443
2443
|
backgroundLightColor: g,
|
|
2444
2444
|
backgroundImage: f,
|
|
2445
|
-
textDarkColor:
|
|
2446
|
-
textLightColor:
|
|
2445
|
+
textDarkColor: x,
|
|
2446
|
+
textLightColor: I,
|
|
2447
2447
|
iconDarkColor: L,
|
|
2448
|
-
iconLightColor:
|
|
2449
|
-
activeColor:
|
|
2450
|
-
groupBackgroundColor:
|
|
2448
|
+
iconLightColor: J,
|
|
2449
|
+
activeColor: V,
|
|
2450
|
+
groupBackgroundColor: Y,
|
|
2451
2451
|
selectedGroupColor: M,
|
|
2452
2452
|
groupColor: O,
|
|
2453
2453
|
groupLabelDarkColor: D,
|
|
2454
|
-
groupLabelLightColor:
|
|
2454
|
+
groupLabelLightColor: K,
|
|
2455
2455
|
withBorder: P = !1,
|
|
2456
|
-
highlightActiveItem:
|
|
2457
|
-
onMenuItemClick:
|
|
2458
|
-
itemBorderRadius:
|
|
2459
|
-
itemHorizontalGap:
|
|
2460
|
-
itemActiveBackground:
|
|
2456
|
+
highlightActiveItem: y = !0,
|
|
2457
|
+
onMenuItemClick: F,
|
|
2458
|
+
itemBorderRadius: T,
|
|
2459
|
+
itemHorizontalGap: ee,
|
|
2460
|
+
itemActiveBackground: U
|
|
2461
2461
|
}) {
|
|
2462
|
-
const
|
|
2463
|
-
collapsed:
|
|
2462
|
+
const k = me(), { colorScheme: G } = de(), {
|
|
2463
|
+
collapsed: Ae,
|
|
2464
2464
|
toggleCollapsed: Ce,
|
|
2465
|
-
activeGroup:
|
|
2465
|
+
activeGroup: se,
|
|
2466
2466
|
setActiveGroup: be
|
|
2467
|
-
} = vA(), we =
|
|
2467
|
+
} = vA(), we = G === "dark" ? m ?? k.colors.dark[7] : g ?? k.white, Se = f ? { background: f } : { backgroundColor: we }, w = f ? "transparent" : we, S = G === "dark" ? x ?? k.colors.gray[3] : I ?? k.colors.gray[7], $ = G === "dark" ? L ?? k.colors[k.primaryColor][4] : J ?? k.colors[k.primaryColor][6], N = V ? k.colors[V]?.[6] ?? k.colors[k.primaryColor][6] : k.colors[k.primaryColor][6], B = Y || (G === "dark" ? k.colors[k.primaryColor][6] : k.colors[k.primaryColor][7]), E = M || (G === "dark" ? k.colors[k.primaryColor][8] : k.colors[k.primaryColor][0]), { navigateToItem: z, isItemActive: j } = wA({
|
|
2468
2468
|
navigationData: A,
|
|
2469
|
-
onMenuItemClick:
|
|
2470
|
-
}),
|
|
2471
|
-
(
|
|
2472
|
-
[
|
|
2473
|
-
),
|
|
2474
|
-
itemBorderRadius:
|
|
2475
|
-
itemHorizontalGap:
|
|
2476
|
-
activeBackground:
|
|
2477
|
-
isActive:
|
|
2469
|
+
onMenuItemClick: F
|
|
2470
|
+
}), he = C(
|
|
2471
|
+
(Q) => !!y && j(Q),
|
|
2472
|
+
[y, j]
|
|
2473
|
+
), Ie = {
|
|
2474
|
+
itemBorderRadius: T,
|
|
2475
|
+
itemHorizontalGap: ee,
|
|
2476
|
+
activeBackground: U,
|
|
2477
|
+
isActive: he
|
|
2478
2478
|
};
|
|
2479
2479
|
SA({
|
|
2480
2480
|
navigationData: A,
|
|
@@ -2482,38 +2482,38 @@ function ao({
|
|
|
2482
2482
|
onToggleSidebar: Ce,
|
|
2483
2483
|
enabled: !0
|
|
2484
2484
|
});
|
|
2485
|
-
const
|
|
2486
|
-
const
|
|
2487
|
-
return A.forEach((
|
|
2488
|
-
if (!
|
|
2485
|
+
const q = ce(() => {
|
|
2486
|
+
const Q = /* @__PURE__ */ new Map();
|
|
2487
|
+
return A.forEach((le) => {
|
|
2488
|
+
if (!le.showInSidebar || (typeof le.disabled == "function" ? le.disabled() : le.disabled) && le.hideDisabledItem)
|
|
2489
2489
|
return;
|
|
2490
|
-
const
|
|
2491
|
-
icon: s ?? /* @__PURE__ */ r(
|
|
2490
|
+
const Ve = le.group ?? {
|
|
2491
|
+
icon: s ?? /* @__PURE__ */ r(ZA, { size: "2.2rem", stroke: 1 }),
|
|
2492
2492
|
label: "Default",
|
|
2493
2493
|
name: "Default",
|
|
2494
2494
|
hint: "Default",
|
|
2495
2495
|
indexOrder: 0
|
|
2496
|
-
},
|
|
2497
|
-
|
|
2498
|
-
group:
|
|
2499
|
-
items: [
|
|
2496
|
+
}, Qe = Q.get(Ve.name);
|
|
2497
|
+
Qe ? Qe.items.push(le) : Q.set(Ve.name, {
|
|
2498
|
+
group: Ve,
|
|
2499
|
+
items: [le]
|
|
2500
2500
|
});
|
|
2501
|
-
}), Array.from(
|
|
2501
|
+
}), Array.from(Q.values()).sort((le, Fe) => le.group.indexOrder - Fe.group.indexOrder);
|
|
2502
2502
|
}, [A, s]);
|
|
2503
2503
|
oe(() => {
|
|
2504
|
-
!
|
|
2505
|
-
}, [
|
|
2506
|
-
const
|
|
2507
|
-
|
|
2508
|
-
}, [
|
|
2509
|
-
|
|
2504
|
+
!se && q.length > 0 && be(q[0].group.name);
|
|
2505
|
+
}, [se, q, be]);
|
|
2506
|
+
const ve = ce(() => q.find((le) => le.group.name === se)?.items ?? [], [q, se]), W = C((Q) => {
|
|
2507
|
+
Ae ? (Ce(), be(Q)) : se === Q ? Ce() : be(Q);
|
|
2508
|
+
}, [Ae, se, Ce, be]), re = Ae ? 0 : Number(fe(t)) - Number(fe(n)), Ee = () => c && q.length === 0 ? /* @__PURE__ */ r(
|
|
2509
|
+
so,
|
|
2510
2510
|
{
|
|
2511
2511
|
groupCount: b,
|
|
2512
2512
|
width: n,
|
|
2513
|
-
backgroundColor:
|
|
2513
|
+
backgroundColor: B
|
|
2514
2514
|
}
|
|
2515
|
-
) :
|
|
2516
|
-
|
|
2515
|
+
) : q.length <= 1 ? null : /* @__PURE__ */ r(
|
|
2516
|
+
_,
|
|
2517
2517
|
{
|
|
2518
2518
|
gap: 4,
|
|
2519
2519
|
p: 4,
|
|
@@ -2521,48 +2521,48 @@ function ao({
|
|
|
2521
2521
|
style: {
|
|
2522
2522
|
width: n,
|
|
2523
2523
|
height: "100%",
|
|
2524
|
-
backgroundColor:
|
|
2524
|
+
backgroundColor: B,
|
|
2525
2525
|
flexShrink: 0
|
|
2526
2526
|
},
|
|
2527
|
-
children:
|
|
2528
|
-
|
|
2527
|
+
children: q.map((Q) => /* @__PURE__ */ r(
|
|
2528
|
+
no,
|
|
2529
2529
|
{
|
|
2530
|
-
group:
|
|
2531
|
-
active:
|
|
2532
|
-
onClick: () =>
|
|
2530
|
+
group: Q.group,
|
|
2531
|
+
active: Q.group.name === se,
|
|
2532
|
+
onClick: () => W(Q.group.name),
|
|
2533
2533
|
showLabel: a,
|
|
2534
|
-
activeColor:
|
|
2534
|
+
activeColor: E,
|
|
2535
2535
|
inactiveColor: O
|
|
2536
2536
|
},
|
|
2537
|
-
|
|
2537
|
+
Q.group.name
|
|
2538
2538
|
))
|
|
2539
2539
|
}
|
|
2540
|
-
),
|
|
2540
|
+
), X = () => d ? p || /* @__PURE__ */ r(xA, { message: d, backgroundColor: we }) : c ? u || /* @__PURE__ */ r(
|
|
2541
2541
|
kA,
|
|
2542
2542
|
{
|
|
2543
|
-
itemCount:
|
|
2543
|
+
itemCount: v,
|
|
2544
2544
|
collapsed: !1,
|
|
2545
2545
|
backgroundColor: we,
|
|
2546
2546
|
showGroups: !1
|
|
2547
2547
|
}
|
|
2548
|
-
) : /* @__PURE__ */ r(
|
|
2548
|
+
) : /* @__PURE__ */ r(_, { gap: 2, children: ve.map((Q, le) => /* @__PURE__ */ r(
|
|
2549
2549
|
$e,
|
|
2550
2550
|
{
|
|
2551
|
-
item:
|
|
2551
|
+
item: Q,
|
|
2552
2552
|
collapsed: !1,
|
|
2553
|
-
active:
|
|
2553
|
+
active: y && j(Q),
|
|
2554
2554
|
onClick: z,
|
|
2555
|
-
textColor:
|
|
2556
|
-
iconColor:
|
|
2557
|
-
hoverColor:
|
|
2558
|
-
...
|
|
2555
|
+
textColor: S,
|
|
2556
|
+
iconColor: $,
|
|
2557
|
+
hoverColor: N,
|
|
2558
|
+
...Ie
|
|
2559
2559
|
},
|
|
2560
|
-
|
|
2561
|
-
)) }),
|
|
2562
|
-
return
|
|
2563
|
-
l && /* @__PURE__ */ r(
|
|
2560
|
+
le
|
|
2561
|
+
)) }), ke = G === "dark" ? k.colors.dark[5] : k.colors.gray[2];
|
|
2562
|
+
return q.length <= 1 ? /* @__PURE__ */ R(Ye, { direction: "column", w: Ae ? o : t, h: "100%", style: Se, children: [
|
|
2563
|
+
l && /* @__PURE__ */ r(H, { style: { width: "100%", flexShrink: 0 }, children: l }),
|
|
2564
2564
|
/* @__PURE__ */ r(
|
|
2565
|
-
|
|
2565
|
+
H,
|
|
2566
2566
|
{
|
|
2567
2567
|
style: {
|
|
2568
2568
|
flex: 1,
|
|
@@ -2571,60 +2571,60 @@ function ao({
|
|
|
2571
2571
|
display: "flex",
|
|
2572
2572
|
flexDirection: "column",
|
|
2573
2573
|
overflow: "hidden",
|
|
2574
|
-
borderRight: P ? `1px solid ${
|
|
2574
|
+
borderRight: P ? `1px solid ${ke}` : void 0
|
|
2575
2575
|
},
|
|
2576
|
-
children: /* @__PURE__ */ r(ze, { style: { flex: 1 }, scrollbarSize: 6, type: "hover", children: /* @__PURE__ */ r(
|
|
2576
|
+
children: /* @__PURE__ */ r(ze, { style: { flex: 1 }, scrollbarSize: 6, type: "hover", children: /* @__PURE__ */ r(H, { p: "xs", children: Ae ? /* @__PURE__ */ r(_, { gap: 8, align: "center", children: A.filter((Q) => Q.showInSidebar ? !((typeof Q.disabled == "function" ? Q.disabled() : Q.disabled) && Q.hideDisabledItem) : !1).map((Q, le) => /* @__PURE__ */ r(
|
|
2577
2577
|
$e,
|
|
2578
2578
|
{
|
|
2579
|
-
item:
|
|
2579
|
+
item: Q,
|
|
2580
2580
|
collapsed: !0,
|
|
2581
|
-
active:
|
|
2581
|
+
active: y && j(Q),
|
|
2582
2582
|
onClick: z,
|
|
2583
|
-
textColor:
|
|
2584
|
-
iconColor:
|
|
2585
|
-
hoverColor:
|
|
2586
|
-
...
|
|
2583
|
+
textColor: S,
|
|
2584
|
+
iconColor: $,
|
|
2585
|
+
hoverColor: N,
|
|
2586
|
+
...Ie
|
|
2587
2587
|
},
|
|
2588
|
-
|
|
2589
|
-
)) }) :
|
|
2588
|
+
le
|
|
2589
|
+
)) }) : X() }) })
|
|
2590
2590
|
}
|
|
2591
2591
|
),
|
|
2592
|
-
i && /* @__PURE__ */ r(
|
|
2593
|
-
] }) : /* @__PURE__ */ R(Ye, { direction: "column", w:
|
|
2594
|
-
l && /* @__PURE__ */ r(
|
|
2592
|
+
i && /* @__PURE__ */ r(H, { style: { width: "100%", backgroundColor: w, flexShrink: 0 }, children: i })
|
|
2593
|
+
] }) : /* @__PURE__ */ R(Ye, { direction: "column", w: Ae ? n : t, h: "100%", style: Se, children: [
|
|
2594
|
+
l && /* @__PURE__ */ r(H, { style: { width: "100%", flexShrink: 0 }, children: l }),
|
|
2595
2595
|
/* @__PURE__ */ R(
|
|
2596
|
-
|
|
2596
|
+
H,
|
|
2597
2597
|
{
|
|
2598
2598
|
style: {
|
|
2599
2599
|
flex: 1,
|
|
2600
2600
|
width: "100%",
|
|
2601
2601
|
display: "flex",
|
|
2602
2602
|
overflow: "hidden",
|
|
2603
|
-
borderRight: P ? `1px solid ${
|
|
2603
|
+
borderRight: P ? `1px solid ${ke}` : void 0
|
|
2604
2604
|
},
|
|
2605
2605
|
children: [
|
|
2606
2606
|
Ee(),
|
|
2607
2607
|
/* @__PURE__ */ r(
|
|
2608
|
-
|
|
2608
|
+
H,
|
|
2609
2609
|
{
|
|
2610
2610
|
style: {
|
|
2611
|
-
width:
|
|
2611
|
+
width: Ae ? 0 : re,
|
|
2612
2612
|
height: "100%",
|
|
2613
2613
|
backgroundColor: w,
|
|
2614
2614
|
overflow: "hidden",
|
|
2615
2615
|
transition: "width 200ms ease",
|
|
2616
|
-
borderLeft:
|
|
2616
|
+
borderLeft: q.length > 1 ? `1px solid ${G === "dark" ? k.colors.dark[5] : k.colors.gray[2]}` : void 0
|
|
2617
2617
|
},
|
|
2618
|
-
children: !
|
|
2618
|
+
children: !Ae && se && /* @__PURE__ */ r(ze, { style: { height: "100%" }, scrollbarSize: 6, type: "hover", children: /* @__PURE__ */ r(H, { p: "xs", children: X() }) })
|
|
2619
2619
|
}
|
|
2620
2620
|
)
|
|
2621
2621
|
]
|
|
2622
2622
|
}
|
|
2623
2623
|
),
|
|
2624
|
-
i && /* @__PURE__ */ r(
|
|
2624
|
+
i && /* @__PURE__ */ r(H, { style: { width: "100%", backgroundColor: w, flexShrink: 0 }, children: i })
|
|
2625
2625
|
] });
|
|
2626
2626
|
}
|
|
2627
|
-
function
|
|
2627
|
+
function fo(A) {
|
|
2628
2628
|
const {
|
|
2629
2629
|
navigationData: t,
|
|
2630
2630
|
collapsed: o,
|
|
@@ -2651,28 +2651,28 @@ function io(A) {
|
|
|
2651
2651
|
showKeyboardShortcuts: i,
|
|
2652
2652
|
highlightActiveItem: h,
|
|
2653
2653
|
onMenuItemClick: c,
|
|
2654
|
-
children: /* @__PURE__ */ r(
|
|
2654
|
+
children: /* @__PURE__ */ r(ho, { ...A })
|
|
2655
2655
|
}
|
|
2656
2656
|
);
|
|
2657
2657
|
}
|
|
2658
|
-
function
|
|
2658
|
+
function po({
|
|
2659
2659
|
variant: A = "standard",
|
|
2660
2660
|
...t
|
|
2661
2661
|
}) {
|
|
2662
2662
|
switch (A) {
|
|
2663
2663
|
case "minimal":
|
|
2664
|
-
return /* @__PURE__ */ r(
|
|
2664
|
+
return /* @__PURE__ */ r(uo, { ...t });
|
|
2665
2665
|
case "rail":
|
|
2666
|
-
return /* @__PURE__ */ r(
|
|
2666
|
+
return /* @__PURE__ */ r(fo, { ...t });
|
|
2667
2667
|
case "standard":
|
|
2668
2668
|
default:
|
|
2669
|
-
return /* @__PURE__ */ r(
|
|
2669
|
+
return /* @__PURE__ */ r(ao, { ...t });
|
|
2670
2670
|
}
|
|
2671
2671
|
}
|
|
2672
2672
|
function IA(A) {
|
|
2673
2673
|
return A == null;
|
|
2674
2674
|
}
|
|
2675
|
-
function
|
|
2675
|
+
function cr(A) {
|
|
2676
2676
|
return Object.prototype.toString.call(A) === "[object RegExp]";
|
|
2677
2677
|
}
|
|
2678
2678
|
function hA(A) {
|
|
@@ -2681,10 +2681,10 @@ function hA(A) {
|
|
|
2681
2681
|
function We(A) {
|
|
2682
2682
|
return typeof A == "function";
|
|
2683
2683
|
}
|
|
2684
|
-
function
|
|
2685
|
-
return { set: (t, o) => (A.setAttribute(t, o),
|
|
2684
|
+
function dr(A) {
|
|
2685
|
+
return { set: (t, o) => (A.setAttribute(t, o), dr(A)) };
|
|
2686
2686
|
}
|
|
2687
|
-
function
|
|
2687
|
+
function FA(A = 100) {
|
|
2688
2688
|
let t;
|
|
2689
2689
|
return new Promise((o, e) => {
|
|
2690
2690
|
t = setTimeout(() => {
|
|
@@ -2692,47 +2692,47 @@ function $A(A = 100) {
|
|
|
2692
2692
|
}, A);
|
|
2693
2693
|
});
|
|
2694
2694
|
}
|
|
2695
|
-
function
|
|
2696
|
-
return (hA(A) ? A : IA(A) ? [] : [A]).some((o) =>
|
|
2695
|
+
function VA(A, t) {
|
|
2696
|
+
return (hA(A) ? A : IA(A) ? [] : [A]).some((o) => cr(o) ? o.test(t) : t === o);
|
|
2697
2697
|
}
|
|
2698
2698
|
function lA(A) {
|
|
2699
2699
|
setTimeout(A, 0);
|
|
2700
2700
|
}
|
|
2701
|
-
var
|
|
2702
|
-
}, destroy: () => Promise.resolve(), destroyAll: () => Promise.resolve(), destroyOther: () => Promise.resolve(), getCacheNodes: () => [] }),
|
|
2701
|
+
var ur = Ne({ active: !1, refresh: () => {
|
|
2702
|
+
}, destroy: () => Promise.resolve(), destroyAll: () => Promise.resolve(), destroyOther: () => Promise.resolve(), getCacheNodes: () => [] }), go = YA(function(A) {
|
|
2703
2703
|
let { children: t, active: o, refresh: e, destroy: n, destroyAll: s, destroyOther: a, getCacheNodes: l } = A, i = ce(() => ({ active: o, refresh: e, destroy: n, destroyAll: s, destroyOther: a, getCacheNodes: l }), [o, e, n, s, a, l]);
|
|
2704
|
-
return r(
|
|
2705
|
-
}),
|
|
2706
|
-
function
|
|
2704
|
+
return r(ur.Provider, { value: i, children: t });
|
|
2705
|
+
}), bo = go, hr = HA.Activity, mo = hr ?? HA.Fragment, yo = !!hr, fr = "keepalive-cache-div";
|
|
2706
|
+
function pr(A) {
|
|
2707
2707
|
return A ? Array.from(A.children) : [];
|
|
2708
2708
|
}
|
|
2709
2709
|
function fA(A) {
|
|
2710
2710
|
A.forEach((t) => {
|
|
2711
|
-
t.classList.contains(
|
|
2711
|
+
t.classList.contains(fr) && t.remove();
|
|
2712
2712
|
});
|
|
2713
2713
|
}
|
|
2714
|
-
function
|
|
2715
|
-
let o =
|
|
2714
|
+
function GA(A, t) {
|
|
2715
|
+
let o = pr(A);
|
|
2716
2716
|
fA(o), A.appendChild(t), t.classList.remove("inactive"), t.classList.add("active");
|
|
2717
2717
|
}
|
|
2718
|
-
function
|
|
2719
|
-
let o =
|
|
2718
|
+
function BA(A, t) {
|
|
2719
|
+
let o = pr(A).filter((e) => e.classList.contains("active") && e.getAttribute("data-cache-key") !== t);
|
|
2720
2720
|
return o.forEach((e) => {
|
|
2721
2721
|
e.classList.remove("active"), e.classList.add("inactive");
|
|
2722
2722
|
}), o;
|
|
2723
2723
|
}
|
|
2724
|
-
function
|
|
2725
|
-
return o ?
|
|
2724
|
+
function vo(A, t, o) {
|
|
2725
|
+
return o ? VA(o, A) : t ? !VA(t, A) : !0;
|
|
2726
2726
|
}
|
|
2727
|
-
var
|
|
2728
|
-
let { errorElement: t =
|
|
2727
|
+
var Co = YA(function(A) {
|
|
2728
|
+
let { errorElement: t = qA, cacheNodeClassName: o, children: e, cacheKey: n, exclude: s, include: a, enableActivity: l } = A, { active: i, renderCount: h, destroy: c, transition: d, viewTransition: u, duration: p, containerDivRef: v } = A, b = Z(!1);
|
|
2729
2729
|
b.current = b.current || i;
|
|
2730
2730
|
let m = ce(() => {
|
|
2731
2731
|
let g = document.createElement("div");
|
|
2732
|
-
return
|
|
2732
|
+
return dr(g).set("data-cache-key", n).set("style", "height: 100%").set("data-render-count", h.toString()), g.className = fr + (o ? ` ${o}` : ""), g;
|
|
2733
2733
|
}, [h, o]);
|
|
2734
2734
|
return oe(() => {
|
|
2735
|
-
let g =
|
|
2735
|
+
let g = vo(n, s, a), f = v.current;
|
|
2736
2736
|
if (!f) {
|
|
2737
2737
|
console.warn("keepalive: cache container not found");
|
|
2738
2738
|
return;
|
|
@@ -2740,90 +2740,90 @@ var bo = BA(function(A) {
|
|
|
2740
2740
|
if (d)
|
|
2741
2741
|
(async () => {
|
|
2742
2742
|
if (i) {
|
|
2743
|
-
let
|
|
2744
|
-
if (await
|
|
2743
|
+
let x = BA(f, n);
|
|
2744
|
+
if (await FA(p - 40), fA(x), f.contains(m))
|
|
2745
2745
|
return;
|
|
2746
|
-
|
|
2746
|
+
GA(f, m);
|
|
2747
2747
|
} else
|
|
2748
|
-
g || (await
|
|
2748
|
+
g || (await FA(p), c(n));
|
|
2749
2749
|
})();
|
|
2750
2750
|
else if (i) {
|
|
2751
|
-
let
|
|
2752
|
-
let
|
|
2753
|
-
fA(
|
|
2751
|
+
let x = () => {
|
|
2752
|
+
let I = BA(f, n);
|
|
2753
|
+
fA(I), !f.contains(m) && GA(f, m);
|
|
2754
2754
|
};
|
|
2755
|
-
u && document.startViewTransition ? document.startViewTransition(
|
|
2755
|
+
u && document.startViewTransition ? document.startViewTransition(x) : x();
|
|
2756
2756
|
} else
|
|
2757
2757
|
g || c(n);
|
|
2758
|
-
}, [i,
|
|
2759
|
-
}, (A, t) => A.active === t.active && A.renderCount === t.renderCount && A.children === t.children && A.exclude === t.exclude && A.include === t.include),
|
|
2758
|
+
}, [i, v, n, s, a]), b.current ? Dt(r(t, { children: yo && l ? R(mo, { mode: i ? "visible" : "hidden", children: [" ", e] }) : e }), m, n) : null;
|
|
2759
|
+
}, (A, t) => A.active === t.active && A.renderCount === t.renderCount && A.children === t.children && A.exclude === t.exclude && A.include === t.include), wo = Co, So = (A) => {
|
|
2760
2760
|
typeof nA < "u" && We(nA) ? nA(A) : A();
|
|
2761
|
-
},
|
|
2762
|
-
function
|
|
2763
|
-
return
|
|
2761
|
+
}, ko = So;
|
|
2762
|
+
function gr() {
|
|
2763
|
+
return Z(null);
|
|
2764
2764
|
}
|
|
2765
|
-
function
|
|
2766
|
-
let { activeCacheKey: t, max: o = 10, exclude: e, include: n, onBeforeActive: s, customContainerRef: a, cacheNodeClassName: l = "cache-component", containerClassName: i = "keep-alive-render", errorElement: h, transition: c = !1, viewTransition: d = !1, duration: u = 200, children: p, aliveRef:
|
|
2767
|
-
|
|
2768
|
-
IA(t) ||
|
|
2769
|
-
|
|
2765
|
+
function xo(A) {
|
|
2766
|
+
let { activeCacheKey: t, max: o = 10, exclude: e, include: n, onBeforeActive: s, customContainerRef: a, cacheNodeClassName: l = "cache-component", containerClassName: i = "keep-alive-render", errorElement: h, transition: c = !1, viewTransition: d = !1, duration: u = 200, children: p, aliveRef: v, maxAliveTime: b = 0, enableActivity: m = !1 } = A, g = a || Z(null), [f, x] = ge([]);
|
|
2767
|
+
Er(() => {
|
|
2768
|
+
IA(t) || ko(() => {
|
|
2769
|
+
x((M) => {
|
|
2770
2770
|
let O = Date.now();
|
|
2771
2771
|
if (M.find((D) => D.cacheKey === t))
|
|
2772
2772
|
return M.map((D) => {
|
|
2773
2773
|
if (D.cacheKey === t) {
|
|
2774
|
-
let
|
|
2774
|
+
let K = !1;
|
|
2775
2775
|
if (We(s) && s(t), b) {
|
|
2776
2776
|
let P = D.lastActiveTime;
|
|
2777
2777
|
if (hA(b)) {
|
|
2778
|
-
let
|
|
2779
|
-
|
|
2778
|
+
let y = b.find((F) => cr(F.match) ? F.match.test(t) : F.match === t);
|
|
2779
|
+
y && (K = y && P + y.expire * 1e3 < O);
|
|
2780
2780
|
} else
|
|
2781
|
-
|
|
2781
|
+
K = P + b * 1e3 < O;
|
|
2782
2782
|
}
|
|
2783
|
-
return { ...D, ele: p, lastActiveTime: O, renderCount:
|
|
2783
|
+
return { ...D, ele: p, lastActiveTime: O, renderCount: K ? D.renderCount + 1 : D.renderCount };
|
|
2784
2784
|
}
|
|
2785
2785
|
return D;
|
|
2786
2786
|
});
|
|
2787
2787
|
if (We(s) && s(t), M.length > o) {
|
|
2788
|
-
let D = M.reduce((
|
|
2788
|
+
let D = M.reduce((K, P) => K.lastActiveTime < P.lastActiveTime ? K : P);
|
|
2789
2789
|
M.splice(M.indexOf(D), 1);
|
|
2790
2790
|
}
|
|
2791
2791
|
return [...M, { cacheKey: t, lastActiveTime: O, ele: p, renderCount: 0 }];
|
|
2792
2792
|
});
|
|
2793
2793
|
});
|
|
2794
2794
|
}, [t, p]);
|
|
2795
|
-
let
|
|
2796
|
-
|
|
2795
|
+
let I = C((M) => {
|
|
2796
|
+
x((O) => {
|
|
2797
2797
|
let D = M || t;
|
|
2798
|
-
return O.map((
|
|
2798
|
+
return O.map((K) => K.cacheKey === D ? { ...K, renderCount: K.renderCount + 1 } : K);
|
|
2799
2799
|
});
|
|
2800
|
-
}, [
|
|
2800
|
+
}, [x, t]), L = C((M) => {
|
|
2801
2801
|
let O = M || t, D = hA(O) ? O : [O];
|
|
2802
|
-
return new Promise((
|
|
2802
|
+
return new Promise((K) => {
|
|
2803
2803
|
lA(() => {
|
|
2804
|
-
|
|
2804
|
+
x((P) => [...P.filter((y) => !D.includes(y.cacheKey))]), K();
|
|
2805
2805
|
});
|
|
2806
2806
|
});
|
|
2807
|
-
}, [
|
|
2807
|
+
}, [x, t]), J = C(() => new Promise((M) => {
|
|
2808
2808
|
lA(() => {
|
|
2809
|
-
|
|
2809
|
+
x([]), M();
|
|
2810
2810
|
});
|
|
2811
|
-
}), [
|
|
2811
|
+
}), [x]), V = C((M) => {
|
|
2812
2812
|
let O = M || t;
|
|
2813
2813
|
return new Promise((D) => {
|
|
2814
2814
|
lA(() => {
|
|
2815
|
-
|
|
2815
|
+
x((K) => [...K.filter((P) => P.cacheKey === O)]), D();
|
|
2816
2816
|
});
|
|
2817
2817
|
});
|
|
2818
|
-
}, [t,
|
|
2819
|
-
return
|
|
2820
|
-
let { cacheKey: O, ele: D, renderCount:
|
|
2821
|
-
return r(
|
|
2818
|
+
}, [t, x]), Y = C(() => f, [f]);
|
|
2819
|
+
return Rr(v, () => ({ refresh: I, destroy: L, destroyAll: J, destroyOther: V, getCacheNodes: Y })), R(qA, { children: [r("div", { ref: g, className: i, style: { height: "100%" } }), f.map((M) => {
|
|
2820
|
+
let { cacheKey: O, ele: D, renderCount: K } = M;
|
|
2821
|
+
return r(bo, { active: t === O, refresh: I, destroy: L, destroyAll: J, destroyOther: V, getCacheNodes: Y, children: r(wo, { destroy: L, include: n, exclude: e, transition: c, viewTransition: d, duration: u, renderCount: K, containerDivRef: g, errorElement: h, active: t === O, cacheNodeClassName: l, cacheKey: O, enableActivity: m, children: D }) }, `${O}-${K}`);
|
|
2822
2822
|
})] });
|
|
2823
2823
|
}
|
|
2824
|
-
var
|
|
2825
|
-
function
|
|
2826
|
-
let { active: n } =
|
|
2824
|
+
var Io = xo, To = () => ye(ur), br = To;
|
|
2825
|
+
function Eo(A, t, o = !1, e) {
|
|
2826
|
+
let { active: n } = br(), s = Z(!1);
|
|
2827
2827
|
e(() => {
|
|
2828
2828
|
if (!n)
|
|
2829
2829
|
return;
|
|
@@ -2837,23 +2837,23 @@ function ko(A, t, o = !1, e) {
|
|
|
2837
2837
|
};
|
|
2838
2838
|
}, [n, ...t]);
|
|
2839
2839
|
}
|
|
2840
|
-
var
|
|
2841
|
-
|
|
2842
|
-
},
|
|
2843
|
-
const
|
|
2840
|
+
var Ro = Eo, Po = (A, t, o = !1) => {
|
|
2841
|
+
Ro(A, t, o, oe);
|
|
2842
|
+
}, Lo = Po;
|
|
2843
|
+
const mr = Ne({
|
|
2844
2844
|
isVisible: !0,
|
|
2845
2845
|
wasRestored: !1,
|
|
2846
2846
|
restoreCount: 0
|
|
2847
|
-
}),
|
|
2848
|
-
const A =
|
|
2847
|
+
}), Bn = () => ye(mr), TA = Ne({ params: {} }), Un = () => ye(TA).params, Hn = () => {
|
|
2848
|
+
const A = or(), o = ye(TA).params;
|
|
2849
2849
|
return ce(() => {
|
|
2850
2850
|
if (!A)
|
|
2851
2851
|
return !1;
|
|
2852
2852
|
const n = Object.keys(A);
|
|
2853
2853
|
return n.length === 0 ? !1 : n.some((s) => A[s] !== void 0);
|
|
2854
2854
|
}, [A]) ? A : o;
|
|
2855
|
-
}, Ze = Ne(null),
|
|
2856
|
-
const t =
|
|
2855
|
+
}, Ze = Ne(null), Mo = () => ye(Ze), Do = ({ children: A }) => {
|
|
2856
|
+
const t = gr(), o = ce(() => ({
|
|
2857
2857
|
requestUnregister: (e) => {
|
|
2858
2858
|
t.current?.destroy(e);
|
|
2859
2859
|
},
|
|
@@ -2868,37 +2868,37 @@ const pr = Ne({
|
|
|
2868
2868
|
},
|
|
2869
2869
|
getCacheNodes: () => t.current?.getCacheNodes() || []
|
|
2870
2870
|
}), [t]);
|
|
2871
|
-
return /* @__PURE__ */ r(Ze.Provider, { value: o, children: /* @__PURE__ */ r(
|
|
2872
|
-
},
|
|
2873
|
-
const { active: t } =
|
|
2871
|
+
return /* @__PURE__ */ r(Ze.Provider, { value: o, children: /* @__PURE__ */ r(yr.Provider, { value: t, children: A }) });
|
|
2872
|
+
}, yr = Ne(null), eA = (A) => null, No = (A) => A.includes(":"), zo = (A, t) => No(A) ? t : A, Oo = ({ children: A }) => {
|
|
2873
|
+
const { active: t } = br(), o = or(), e = Xe(), n = kt(), s = Z(o), [a, l] = ge(o);
|
|
2874
2874
|
s.current = o;
|
|
2875
|
-
const i =
|
|
2875
|
+
const i = Z({ location: e, navigationType: n });
|
|
2876
2876
|
t && (i.current = { location: e, navigationType: n });
|
|
2877
2877
|
const h = ce(
|
|
2878
2878
|
() => t ? { location: e, navigationType: n } : i.current,
|
|
2879
2879
|
[t, e, n]
|
|
2880
|
-
), [c, d] = ge(0), u =
|
|
2881
|
-
|
|
2880
|
+
), [c, d] = ge(0), u = Z(t);
|
|
2881
|
+
Lo(() => {
|
|
2882
2882
|
l(s.current), requestAnimationFrame(() => {
|
|
2883
2883
|
window.dispatchEvent(new Event("resize"));
|
|
2884
2884
|
});
|
|
2885
2885
|
}, []), oe(() => {
|
|
2886
|
-
t && (l(s.current), u.current || d((
|
|
2886
|
+
t && (l(s.current), u.current || d((v) => v + 1)), u.current = t;
|
|
2887
2887
|
}, [t]);
|
|
2888
2888
|
const p = ce(
|
|
2889
2889
|
() => ({ isVisible: t, wasRestored: c > 0, restoreCount: c }),
|
|
2890
2890
|
[t, c]
|
|
2891
2891
|
);
|
|
2892
|
-
return /* @__PURE__ */ r(
|
|
2893
|
-
},
|
|
2894
|
-
const e = Xe(), n =
|
|
2892
|
+
return /* @__PURE__ */ r(xt.Provider, { value: h, children: /* @__PURE__ */ r(mr.Provider, { value: p, children: /* @__PURE__ */ r(TA.Provider, { value: { params: a }, children: A }) }) });
|
|
2893
|
+
}, $o = "__nokeep__:", vr = xe.memo(({ keepAlivePaths: A, maxKeepAliveTabs: t, aliveRef: o }) => {
|
|
2894
|
+
const e = Xe(), n = wt(), s = ce(() => {
|
|
2895
2895
|
const l = A.find(
|
|
2896
|
-
(i) =>
|
|
2896
|
+
(i) => St({ path: i, end: !0 }, e.pathname)
|
|
2897
2897
|
);
|
|
2898
|
-
return l ?
|
|
2898
|
+
return l ? zo(l, e.pathname) : $o + e.pathname;
|
|
2899
2899
|
}, [A, e.pathname]), a = ce(() => [/^__nokeep__:/], []);
|
|
2900
2900
|
return /* @__PURE__ */ r(
|
|
2901
|
-
|
|
2901
|
+
Io,
|
|
2902
2902
|
{
|
|
2903
2903
|
activeCacheKey: s,
|
|
2904
2904
|
max: t,
|
|
@@ -2908,34 +2908,34 @@ const pr = Ne({
|
|
|
2908
2908
|
}
|
|
2909
2909
|
);
|
|
2910
2910
|
});
|
|
2911
|
-
|
|
2912
|
-
const
|
|
2913
|
-
const e =
|
|
2914
|
-
const p = xe.Children.toArray(A),
|
|
2911
|
+
vr.displayName = "KeepAliveLayout";
|
|
2912
|
+
const Qo = ({ children: A, maxKeepAliveTabs: t = 10, ...o }) => {
|
|
2913
|
+
const e = gr(), s = ye(yr) || e, a = Z(null), l = Z(""), { keepAlivePaths: i, routeElements: h } = ce(() => {
|
|
2914
|
+
const p = xe.Children.toArray(A), v = p.map((f) => {
|
|
2915
2915
|
if (xe.isValidElement(f)) {
|
|
2916
|
-
const
|
|
2917
|
-
return `${
|
|
2916
|
+
const x = f.props?.path || "", I = f.type === eA;
|
|
2917
|
+
return `${x}:${I}`;
|
|
2918
2918
|
}
|
|
2919
2919
|
return "";
|
|
2920
2920
|
}).join("|");
|
|
2921
|
-
if (a.current && l.current ===
|
|
2921
|
+
if (a.current && l.current === v)
|
|
2922
2922
|
return a.current;
|
|
2923
|
-
l.current =
|
|
2923
|
+
l.current = v;
|
|
2924
2924
|
const b = [], m = [];
|
|
2925
2925
|
p.forEach((f) => {
|
|
2926
2926
|
if (xe.isValidElement(f))
|
|
2927
2927
|
if (f.type === eA) {
|
|
2928
|
-
const
|
|
2929
|
-
|
|
2930
|
-
const
|
|
2928
|
+
const x = f.props;
|
|
2929
|
+
x.path && b.push(x.path);
|
|
2930
|
+
const I = x.component, L = typeof I == "function" ? xe.createElement(I) : I;
|
|
2931
2931
|
m.push(
|
|
2932
2932
|
/* @__PURE__ */ r(
|
|
2933
2933
|
Ke,
|
|
2934
2934
|
{
|
|
2935
|
-
path:
|
|
2936
|
-
element: /* @__PURE__ */ r(
|
|
2935
|
+
path: x.path,
|
|
2936
|
+
element: /* @__PURE__ */ r(Oo, { children: L })
|
|
2937
2937
|
},
|
|
2938
|
-
|
|
2938
|
+
x.path || f.key
|
|
2939
2939
|
)
|
|
2940
2940
|
);
|
|
2941
2941
|
} else
|
|
@@ -2943,7 +2943,7 @@ const No = ({ children: A, maxKeepAliveTabs: t = 10, ...o }) => {
|
|
|
2943
2943
|
});
|
|
2944
2944
|
const g = { keepAlivePaths: b, routeElements: m };
|
|
2945
2945
|
return a.current = g, g;
|
|
2946
|
-
}, [A]), c =
|
|
2946
|
+
}, [A]), c = ye(Ze), d = ce(() => ({
|
|
2947
2947
|
requestUnregister: (p) => {
|
|
2948
2948
|
s.current?.destroy(p);
|
|
2949
2949
|
},
|
|
@@ -2957,8 +2957,8 @@ const No = ({ children: A, maxKeepAliveTabs: t = 10, ...o }) => {
|
|
|
2957
2957
|
s.current?.destroyOther(p);
|
|
2958
2958
|
},
|
|
2959
2959
|
getCacheNodes: () => s.current?.getCacheNodes() || []
|
|
2960
|
-
}), [s]), u = /* @__PURE__ */ r(
|
|
2961
|
-
|
|
2960
|
+
}), [s]), u = /* @__PURE__ */ r(tr, { ...o, children: /* @__PURE__ */ r(Ke, { element: /* @__PURE__ */ r(
|
|
2961
|
+
vr,
|
|
2962
2962
|
{
|
|
2963
2963
|
keepAlivePaths: i,
|
|
2964
2964
|
maxKeepAliveTabs: t,
|
|
@@ -2966,28 +2966,28 @@ const No = ({ children: A, maxKeepAliveTabs: t = 10, ...o }) => {
|
|
|
2966
2966
|
}
|
|
2967
2967
|
), children: h }) });
|
|
2968
2968
|
return c ? u : /* @__PURE__ */ r(Ze.Provider, { value: d, children: u });
|
|
2969
|
-
},
|
|
2969
|
+
}, Cr = Ne({
|
|
2970
2970
|
start: () => {
|
|
2971
2971
|
},
|
|
2972
2972
|
done: () => {
|
|
2973
2973
|
},
|
|
2974
2974
|
isNavigating: !1
|
|
2975
|
-
}),
|
|
2976
|
-
function
|
|
2977
|
-
const [t, o] = ge(!1), e =
|
|
2975
|
+
}), wr = () => ye(Cr), Ko = 150;
|
|
2976
|
+
function Fo({ children: A }) {
|
|
2977
|
+
const [t, o] = ge(!1), e = Z(null), n = Z(0), s = C(() => {
|
|
2978
2978
|
e.current && clearTimeout(e.current), n.current = Date.now(), o(!0);
|
|
2979
|
-
}, []), a =
|
|
2980
|
-
const l = Date.now() - n.current, i = Math.max(0,
|
|
2979
|
+
}, []), a = C(() => {
|
|
2980
|
+
const l = Date.now() - n.current, i = Math.max(0, Ko - l);
|
|
2981
2981
|
e.current = setTimeout(() => {
|
|
2982
2982
|
o(!1);
|
|
2983
2983
|
}, i);
|
|
2984
2984
|
}, []);
|
|
2985
|
-
return /* @__PURE__ */ R(
|
|
2985
|
+
return /* @__PURE__ */ R(Cr.Provider, { value: { start: s, done: a, isNavigating: t }, children: [
|
|
2986
2986
|
/* @__PURE__ */ r("div", { className: "archbase-nav-progress", "data-active": t, children: /* @__PURE__ */ r("div", { className: "archbase-nav-progress-bar" }) }),
|
|
2987
2987
|
A
|
|
2988
2988
|
] });
|
|
2989
2989
|
}
|
|
2990
|
-
function
|
|
2990
|
+
function Vo(A, t, o, e, n, s) {
|
|
2991
2991
|
return /* @__PURE__ */ r(
|
|
2992
2992
|
"div",
|
|
2993
2993
|
{
|
|
@@ -3005,13 +3005,13 @@ function $o(A, t, o, e, n, s) {
|
|
|
3005
3005
|
variant: "filled",
|
|
3006
3006
|
radius: "xl",
|
|
3007
3007
|
onClick: s,
|
|
3008
|
-
children: o.collapsed ? /* @__PURE__ */ r(gA, {}) : /* @__PURE__ */ r(
|
|
3008
|
+
children: o.collapsed ? /* @__PURE__ */ r(gA, {}) : /* @__PURE__ */ r(qr, {})
|
|
3009
3009
|
}
|
|
3010
3010
|
)
|
|
3011
3011
|
}
|
|
3012
3012
|
);
|
|
3013
3013
|
}
|
|
3014
|
-
function
|
|
3014
|
+
function Go({
|
|
3015
3015
|
children: A,
|
|
3016
3016
|
header: t,
|
|
3017
3017
|
footer: o,
|
|
@@ -3026,180 +3026,182 @@ function Qo({
|
|
|
3026
3026
|
sidebarDefaultGroupIcon: d,
|
|
3027
3027
|
sideBarHeaderHeight: u,
|
|
3028
3028
|
sideBarHeaderContent: p,
|
|
3029
|
-
selectedGroupColor:
|
|
3029
|
+
selectedGroupColor: v = "#132441",
|
|
3030
3030
|
groupColor: b = "white",
|
|
3031
3031
|
backgroundGroupColor: m = "#132441",
|
|
3032
3032
|
groupLabelDarkColor: g = "white",
|
|
3033
3033
|
groupLabelLightColor: f = "white",
|
|
3034
|
-
headerColor:
|
|
3035
|
-
footerHeight:
|
|
3034
|
+
headerColor: x,
|
|
3035
|
+
footerHeight: I,
|
|
3036
3036
|
iconsWithBackground: L,
|
|
3037
|
-
menuItemHeight:
|
|
3038
|
-
showSideBar:
|
|
3039
|
-
showHeader:
|
|
3037
|
+
menuItemHeight: J,
|
|
3038
|
+
showSideBar: V = !0,
|
|
3039
|
+
showHeader: Y = !0,
|
|
3040
3040
|
headerStyle: M = {},
|
|
3041
3041
|
highlightActiveMenuItem: O = !0,
|
|
3042
3042
|
customRenderSidebar: D,
|
|
3043
|
-
showCollapsedButton:
|
|
3043
|
+
showCollapsedButton: K = !0,
|
|
3044
3044
|
sideBarBackgroundDarkColor: P,
|
|
3045
|
-
sideBarBackgroundLightColor:
|
|
3046
|
-
sideBarTextDarkColor:
|
|
3047
|
-
sideBarTextLightColor:
|
|
3048
|
-
sideBarIconDarkColor:
|
|
3049
|
-
sideBarIconLightColor:
|
|
3050
|
-
sideBarBackgroundImage:
|
|
3051
|
-
mainBackground:
|
|
3045
|
+
sideBarBackgroundLightColor: y,
|
|
3046
|
+
sideBarTextDarkColor: F,
|
|
3047
|
+
sideBarTextLightColor: T,
|
|
3048
|
+
sideBarIconDarkColor: ee,
|
|
3049
|
+
sideBarIconLightColor: U,
|
|
3050
|
+
sideBarBackgroundImage: k,
|
|
3051
|
+
mainBackground: G,
|
|
3052
|
+
mainBorderRadius: Ae,
|
|
3053
|
+
mainBorderColor: Ce,
|
|
3052
3054
|
sideBarItemBorderRadius: se,
|
|
3053
|
-
sideBarItemHorizontalGap:
|
|
3054
|
-
sideBarItemActiveBackground:
|
|
3055
|
-
sideBarCollapsedSubmenuWidth:
|
|
3056
|
-
sidebarActiveColor:
|
|
3057
|
-
maxKeepAliveTabs:
|
|
3058
|
-
sidebarVariant:
|
|
3059
|
-
sidebarShowSearch:
|
|
3055
|
+
sideBarItemHorizontalGap: be,
|
|
3056
|
+
sideBarItemActiveBackground: we,
|
|
3057
|
+
sideBarCollapsedSubmenuWidth: Se,
|
|
3058
|
+
sidebarActiveColor: w,
|
|
3059
|
+
maxKeepAliveTabs: S = 10,
|
|
3060
|
+
sidebarVariant: $ = "legacy",
|
|
3061
|
+
sidebarShowSearch: N = !1
|
|
3060
3062
|
}) {
|
|
3061
|
-
const
|
|
3062
|
-
`(max-width: ${s ? fe(s) :
|
|
3063
|
-
),
|
|
3064
|
-
ae.link && (ae.routeParams ?
|
|
3065
|
-
},
|
|
3066
|
-
ae ==
|
|
3067
|
-
},
|
|
3068
|
-
let ae = 0,
|
|
3069
|
-
return u && (ae = Number(fe(u))), a && (
|
|
3070
|
-
},
|
|
3071
|
-
let ae = 0,
|
|
3072
|
-
return u && (ae = Number(fe(u))), a && (
|
|
3073
|
-
},
|
|
3063
|
+
const B = me(), E = ye(rA), { colorScheme: z } = de(), j = Et(), [he, Ie] = Rt(), q = Tt(
|
|
3064
|
+
`(max-width: ${s ? fe(s) : B.breakpoints.md})`
|
|
3065
|
+
), ve = (ae) => {
|
|
3066
|
+
ae.link && (ae.routeParams ? j(ae.link, {}, ae.routeParams) : j(ae.link));
|
|
3067
|
+
}, W = (ae, ue) => {
|
|
3068
|
+
ae == ue && E.collapsed && E.setCollapsed(!1), E.setCollapsed(ae == ue);
|
|
3069
|
+
}, re = () => {
|
|
3070
|
+
let ae = 0, ue = 0;
|
|
3071
|
+
return u && (ae = Number(fe(u))), a && (ue = Number(fe(a))), `calc(100vh - var(--app-shell-header-offset, 0px) - ${ae + ue}px)`;
|
|
3072
|
+
}, Ee = () => {
|
|
3073
|
+
let ae = 0, ue = 0;
|
|
3074
|
+
return u && (ae = Number(fe(u))), a && (ue = Number(fe(a))), `calc(100vh - 28px - ${ae + ue}px)`;
|
|
3075
|
+
}, X = ce(() => {
|
|
3074
3076
|
const ae = [];
|
|
3075
|
-
return
|
|
3076
|
-
|
|
3077
|
-
Oe.keepAlive === !1 ? ae.push(/* @__PURE__ */ r(Ke, { path: Oe.link, element: Oe.component }, `${Oe.link}_${
|
|
3078
|
-
/* @__PURE__ */ r(eA, { path: Oe.link, component: Oe.component }, `${Oe.link}_${
|
|
3077
|
+
return E.navigationData.forEach((ue, Ge) => {
|
|
3078
|
+
ue.links ? ue.links.forEach((Oe, MA) => {
|
|
3079
|
+
Oe.keepAlive === !1 ? ae.push(/* @__PURE__ */ r(Ke, { path: Oe.link, element: Oe.component }, `${Oe.link}_${MA}`)) : ae.push(
|
|
3080
|
+
/* @__PURE__ */ r(eA, { path: Oe.link, component: Oe.component }, `${Oe.link}_${MA}`)
|
|
3079
3081
|
);
|
|
3080
|
-
}) :
|
|
3081
|
-
/* @__PURE__ */ r(Ke, { path:
|
|
3082
|
+
}) : ue.keepAlive === !1 ? ae.push(
|
|
3083
|
+
/* @__PURE__ */ r(Ke, { path: ue.link, element: ue.component }, `${ue.link}_${Ge}`)
|
|
3082
3084
|
) : ae.push(
|
|
3083
|
-
/* @__PURE__ */ r(eA, { path:
|
|
3085
|
+
/* @__PURE__ */ r(eA, { path: ue.link, component: ue.component }, `${ue.link}_${Ge}`)
|
|
3084
3086
|
);
|
|
3085
3087
|
}), ae;
|
|
3086
|
-
}, [
|
|
3087
|
-
|
|
3088
|
-
}, [
|
|
3089
|
-
|
|
3090
|
-
}, [
|
|
3088
|
+
}, [E.navigationData, E.collapsed]), ke = C(() => {
|
|
3089
|
+
E.setCollapsed(!E.collapsed);
|
|
3090
|
+
}, [E.setCollapsed, E.collapsed]), Q = C(() => {
|
|
3091
|
+
E.setHidden(!E.hidden);
|
|
3092
|
+
}, [E.setHidden, E.hidden]);
|
|
3091
3093
|
oe(() => {
|
|
3092
|
-
h && h(
|
|
3093
|
-
}, [
|
|
3094
|
-
i && i(
|
|
3095
|
-
}, [
|
|
3096
|
-
const
|
|
3097
|
-
|
|
3094
|
+
h && h(E.hidden);
|
|
3095
|
+
}, [E.hidden, Q]), oe(() => {
|
|
3096
|
+
i && i(E.collapsed);
|
|
3097
|
+
}, [E.collapsed, i]);
|
|
3098
|
+
const le = $ === "minimal" || E.collapsed ? n : e, Fe = (ae, ue = !1) => D ? D({ width: e, height: ae, isHidden: q }) : $ === "legacy" ? /* @__PURE__ */ r(
|
|
3099
|
+
Ao,
|
|
3098
3100
|
{
|
|
3099
|
-
navigationData:
|
|
3101
|
+
navigationData: E.navigationData,
|
|
3100
3102
|
sidebarHeight: ae,
|
|
3101
3103
|
sidebarGroupWidth: n,
|
|
3102
3104
|
sidebarCollapsedWidth: n,
|
|
3103
|
-
selectedGroupColor:
|
|
3105
|
+
selectedGroupColor: v,
|
|
3104
3106
|
groupColor: b,
|
|
3105
3107
|
backgroundGroupColor: m,
|
|
3106
3108
|
groupLabelDarkColor: g,
|
|
3107
3109
|
groupLabelLightColor: f,
|
|
3108
3110
|
showGroupLabels: !1,
|
|
3109
|
-
collapsed:
|
|
3111
|
+
collapsed: ue ? !1 : E.collapsed,
|
|
3110
3112
|
sidebarWidth: e,
|
|
3111
|
-
isHidden:
|
|
3112
|
-
onMenuItemClick:
|
|
3113
|
-
onClickActionIcon:
|
|
3113
|
+
isHidden: q,
|
|
3114
|
+
onMenuItemClick: ve,
|
|
3115
|
+
onClickActionIcon: W,
|
|
3114
3116
|
sideBarFooterHeight: a,
|
|
3115
3117
|
sideBarFooterContent: l,
|
|
3116
3118
|
sideBarHeaderContent: p,
|
|
3117
|
-
theme:
|
|
3118
|
-
sidebarRef:
|
|
3119
|
+
theme: B,
|
|
3120
|
+
sidebarRef: he,
|
|
3119
3121
|
defaultGroupIcon: d,
|
|
3120
3122
|
selectedGroupName: c,
|
|
3121
3123
|
iconsWithBackground: L,
|
|
3122
|
-
menuItemHeight:
|
|
3124
|
+
menuItemHeight: J,
|
|
3123
3125
|
highlightActiveMenuItem: O,
|
|
3124
3126
|
backgroundDarkColor: P,
|
|
3125
|
-
backgroundLightColor:
|
|
3126
|
-
textDarkColor:
|
|
3127
|
-
textLightColor:
|
|
3128
|
-
iconDarkColor:
|
|
3129
|
-
iconLightColor:
|
|
3130
|
-
collapsedSubmenuWidth:
|
|
3131
|
-
isLoading:
|
|
3132
|
-
loadingError:
|
|
3127
|
+
backgroundLightColor: y,
|
|
3128
|
+
textDarkColor: F,
|
|
3129
|
+
textLightColor: T,
|
|
3130
|
+
iconDarkColor: ee,
|
|
3131
|
+
iconLightColor: U,
|
|
3132
|
+
collapsedSubmenuWidth: Se,
|
|
3133
|
+
isLoading: E.isLoadingPermissions,
|
|
3134
|
+
loadingError: E.permissionsError
|
|
3133
3135
|
}
|
|
3134
3136
|
) : /* @__PURE__ */ r(
|
|
3135
|
-
|
|
3137
|
+
po,
|
|
3136
3138
|
{
|
|
3137
|
-
navigationData:
|
|
3138
|
-
variant:
|
|
3139
|
-
width:
|
|
3139
|
+
navigationData: E.navigationData,
|
|
3140
|
+
variant: $,
|
|
3141
|
+
width: le,
|
|
3140
3142
|
collapsedWidth: n,
|
|
3141
3143
|
height: ae,
|
|
3142
3144
|
groupColumnWidth: n,
|
|
3143
|
-
collapsed:
|
|
3144
|
-
onCollapsedChange: (Ge) =>
|
|
3145
|
+
collapsed: ue ? !1 : E.collapsed,
|
|
3146
|
+
onCollapsedChange: (Ge) => E.setCollapsed(Ge),
|
|
3145
3147
|
activeGroup: c,
|
|
3146
3148
|
onActiveGroupChange: (Ge) => {
|
|
3147
3149
|
},
|
|
3148
3150
|
defaultGroupIcon: d,
|
|
3149
3151
|
showGroupLabels: !1,
|
|
3150
|
-
onMenuItemClick:
|
|
3151
|
-
showSearch:
|
|
3152
|
+
onMenuItemClick: ve,
|
|
3153
|
+
showSearch: N,
|
|
3152
3154
|
header: p,
|
|
3153
3155
|
footer: l,
|
|
3154
3156
|
footerHeight: a,
|
|
3155
|
-
isLoading:
|
|
3156
|
-
loadingError:
|
|
3157
|
-
theme:
|
|
3157
|
+
isLoading: E.isLoadingPermissions,
|
|
3158
|
+
loadingError: E.permissionsError,
|
|
3159
|
+
theme: B,
|
|
3158
3160
|
highlightActiveItem: O,
|
|
3159
3161
|
backgroundDarkColor: P,
|
|
3160
|
-
backgroundLightColor:
|
|
3161
|
-
backgroundImage:
|
|
3162
|
-
textDarkColor:
|
|
3163
|
-
textLightColor:
|
|
3164
|
-
iconDarkColor:
|
|
3165
|
-
iconLightColor:
|
|
3162
|
+
backgroundLightColor: y,
|
|
3163
|
+
backgroundImage: k,
|
|
3164
|
+
textDarkColor: F,
|
|
3165
|
+
textLightColor: T,
|
|
3166
|
+
iconDarkColor: ee,
|
|
3167
|
+
iconLightColor: U,
|
|
3166
3168
|
groupBackgroundColor: m,
|
|
3167
|
-
selectedGroupColor:
|
|
3169
|
+
selectedGroupColor: v,
|
|
3168
3170
|
groupColor: b,
|
|
3169
3171
|
groupLabelDarkColor: g,
|
|
3170
3172
|
groupLabelLightColor: f,
|
|
3171
|
-
activeColor:
|
|
3173
|
+
activeColor: w,
|
|
3172
3174
|
itemBorderRadius: se,
|
|
3173
|
-
itemHorizontalGap:
|
|
3174
|
-
itemActiveBackground:
|
|
3175
|
+
itemHorizontalGap: be,
|
|
3176
|
+
itemActiveBackground: we,
|
|
3175
3177
|
withBorder: !1,
|
|
3176
|
-
sidebarRef:
|
|
3178
|
+
sidebarRef: he
|
|
3177
3179
|
}
|
|
3178
|
-
),
|
|
3179
|
-
width: { base:
|
|
3180
|
+
), Ve = z === "dark" ? P ?? B.colors.dark[7] : y ?? B.white, Qe = $ === "legacy", xr = Qe ? void 0 : {
|
|
3181
|
+
width: { base: le },
|
|
3180
3182
|
breakpoint: "sm",
|
|
3181
|
-
collapsed: { mobile:
|
|
3182
|
-
},
|
|
3183
|
+
collapsed: { mobile: q || !V, desktop: q || !V }
|
|
3184
|
+
}, RA = G ?? (z === "dark" ? B.colors.dark[8] : B.colors.gray[0]), Ir = Qe ? {
|
|
3183
3185
|
main: {
|
|
3184
|
-
background:
|
|
3186
|
+
background: RA,
|
|
3185
3187
|
overflow: "hidden"
|
|
3186
3188
|
}
|
|
3187
3189
|
} : {
|
|
3188
3190
|
main: {
|
|
3189
|
-
background:
|
|
3191
|
+
background: RA,
|
|
3190
3192
|
overflow: "hidden"
|
|
3191
3193
|
},
|
|
3192
3194
|
navbar: {
|
|
3193
|
-
background:
|
|
3195
|
+
background: k ?? Ve,
|
|
3194
3196
|
border: "none"
|
|
3195
3197
|
}
|
|
3196
|
-
},
|
|
3198
|
+
}, PA = typeof Ae == "number" ? `${Ae}px` : Ae ?? "4px", LA = Ce ?? (z === "dark" ? B.colors.dark[4] : "#e4e9ef"), Tr = Qe ? {
|
|
3197
3199
|
height: "calc(100vh - var(--app-shell-header-offset, 0px) - var(--app-shell-footer-offset, 0px) - var(--app-shell-padding) - 1rem)",
|
|
3198
|
-
width: `calc(100vw - var(--app-shell-padding) - calc(${
|
|
3200
|
+
width: `calc(100vw - var(--app-shell-padding) - calc(${q ? "0px" : le} + 1rem))`,
|
|
3199
3201
|
marginTop: "0.5rem",
|
|
3200
|
-
marginLeft: `calc(${
|
|
3201
|
-
border: `1px solid ${
|
|
3202
|
-
borderRadius:
|
|
3202
|
+
marginLeft: `calc(${q ? "0px" : le} + 0.5rem)`,
|
|
3203
|
+
border: `1px solid ${LA}`,
|
|
3204
|
+
borderRadius: PA,
|
|
3203
3205
|
overflow: "hidden"
|
|
3204
3206
|
} : {
|
|
3205
3207
|
height: "calc(100vh - var(--app-shell-header-offset, 0px) - var(--app-shell-footer-offset, 0px) - 1rem)",
|
|
@@ -3207,23 +3209,23 @@ function Qo({
|
|
|
3207
3209
|
marginTop: "0.5rem",
|
|
3208
3210
|
marginLeft: "0.5rem",
|
|
3209
3211
|
marginRight: "0.5rem",
|
|
3210
|
-
border: `1px solid ${
|
|
3211
|
-
borderRadius:
|
|
3212
|
+
border: `1px solid ${LA}`,
|
|
3213
|
+
borderRadius: PA,
|
|
3212
3214
|
overflow: "hidden"
|
|
3213
3215
|
};
|
|
3214
|
-
return /* @__PURE__ */ r(
|
|
3216
|
+
return /* @__PURE__ */ r(Fo, { children: /* @__PURE__ */ R(
|
|
3215
3217
|
Be,
|
|
3216
3218
|
{
|
|
3217
|
-
header: { height: "60px", collapsed: !
|
|
3218
|
-
navbar:
|
|
3219
|
-
footer: { height:
|
|
3220
|
-
styles:
|
|
3219
|
+
header: { height: "60px", collapsed: !Y },
|
|
3220
|
+
navbar: xr,
|
|
3221
|
+
footer: { height: I || "0px" },
|
|
3222
|
+
styles: Ir,
|
|
3221
3223
|
children: [
|
|
3222
3224
|
/* @__PURE__ */ r(
|
|
3223
3225
|
Be.Header,
|
|
3224
3226
|
{
|
|
3225
3227
|
p: "xs",
|
|
3226
|
-
color:
|
|
3228
|
+
color: x,
|
|
3227
3229
|
display: "flex",
|
|
3228
3230
|
style: {
|
|
3229
3231
|
backgroundColor: "var(--mantine-primary-color-8)",
|
|
@@ -3234,31 +3236,31 @@ function Qo({
|
|
|
3234
3236
|
children: t
|
|
3235
3237
|
}
|
|
3236
3238
|
),
|
|
3237
|
-
!
|
|
3239
|
+
!q && V && /* @__PURE__ */ r(Be.Navbar, { children: Fe(re(), !1) }),
|
|
3238
3240
|
/* @__PURE__ */ R(Be.Main, { children: [
|
|
3239
|
-
!
|
|
3240
|
-
|
|
3241
|
-
|
|
3242
|
-
|
|
3241
|
+
!q && K && Vo(
|
|
3242
|
+
z,
|
|
3243
|
+
B,
|
|
3244
|
+
E,
|
|
3243
3245
|
e,
|
|
3244
3246
|
n,
|
|
3245
|
-
|
|
3247
|
+
ke
|
|
3246
3248
|
),
|
|
3247
|
-
/* @__PURE__ */ r(
|
|
3249
|
+
/* @__PURE__ */ r(Do, { children: /* @__PURE__ */ R("div", { style: Tr, children: [
|
|
3248
3250
|
A,
|
|
3249
|
-
/* @__PURE__ */ r(
|
|
3251
|
+
/* @__PURE__ */ r(Bo, { maxKeepAliveTabs: S, routes: X })
|
|
3250
3252
|
] }) }),
|
|
3251
|
-
|
|
3252
|
-
|
|
3253
|
+
V && /* @__PURE__ */ r(
|
|
3254
|
+
JA,
|
|
3253
3255
|
{
|
|
3254
|
-
opened:
|
|
3255
|
-
onClose:
|
|
3256
|
+
opened: E.hidden || !1,
|
|
3257
|
+
onClose: Q,
|
|
3256
3258
|
size: e,
|
|
3257
3259
|
padding: 0,
|
|
3258
3260
|
styles: {
|
|
3259
3261
|
header: { minHeight: "10px" }
|
|
3260
3262
|
},
|
|
3261
|
-
children:
|
|
3263
|
+
children: Fe(Ee(), !0)
|
|
3262
3264
|
}
|
|
3263
3265
|
)
|
|
3264
3266
|
] }),
|
|
@@ -3267,18 +3269,18 @@ function Qo({
|
|
|
3267
3269
|
}
|
|
3268
3270
|
) });
|
|
3269
3271
|
}
|
|
3270
|
-
function
|
|
3271
|
-
const { isNavigating: o } =
|
|
3272
|
+
function Bo({ maxKeepAliveTabs: A, routes: t }) {
|
|
3273
|
+
const { isNavigating: o } = wr();
|
|
3272
3274
|
return /* @__PURE__ */ r("div", { style: {
|
|
3273
3275
|
width: "100%",
|
|
3274
3276
|
height: "calc(100% - 48px)",
|
|
3275
3277
|
opacity: o ? 0.6 : 1,
|
|
3276
3278
|
transition: "opacity 0.15s ease-out"
|
|
3277
|
-
}, children: /* @__PURE__ */ R(
|
|
3279
|
+
}, children: /* @__PURE__ */ R(Qo, { maxKeepAliveTabs: A, children: [
|
|
3278
3280
|
...t
|
|
3279
3281
|
] }) });
|
|
3280
3282
|
}
|
|
3281
|
-
function
|
|
3283
|
+
function Yn({
|
|
3282
3284
|
navigationRootLink: A = "/",
|
|
3283
3285
|
navigationData: t,
|
|
3284
3286
|
user: o,
|
|
@@ -3293,61 +3295,63 @@ function Gn({
|
|
|
3293
3295
|
sideBarFooterHeight: d,
|
|
3294
3296
|
sideBarFooterContent: u,
|
|
3295
3297
|
onCollapsedSideBar: p,
|
|
3296
|
-
onHiddenSidebar:
|
|
3298
|
+
onHiddenSidebar: v,
|
|
3297
3299
|
sidebarDefaultGroupIcon: b,
|
|
3298
3300
|
sidebarSelectedGroupName: m,
|
|
3299
3301
|
sideBarHeaderHeight: g,
|
|
3300
3302
|
sideBarHeaderContent: f,
|
|
3301
|
-
selectedGroupColor:
|
|
3302
|
-
groupColor:
|
|
3303
|
+
selectedGroupColor: x = "#132441",
|
|
3304
|
+
groupColor: I = "white",
|
|
3303
3305
|
backgroundGroupColor: L = "#132441",
|
|
3304
|
-
groupLabelDarkColor:
|
|
3305
|
-
groupLabelLightColor:
|
|
3306
|
-
headerColor:
|
|
3306
|
+
groupLabelDarkColor: J = "white",
|
|
3307
|
+
groupLabelLightColor: V = "white",
|
|
3308
|
+
headerColor: Y,
|
|
3307
3309
|
footerHeight: M,
|
|
3308
3310
|
iconsWithBackground: O,
|
|
3309
3311
|
menuItemHeight: D,
|
|
3310
|
-
showSideBar:
|
|
3312
|
+
showSideBar: K,
|
|
3311
3313
|
showHeader: P,
|
|
3312
|
-
headerStyle:
|
|
3313
|
-
highlightActiveMenuItem:
|
|
3314
|
-
enableSecurity:
|
|
3315
|
-
securityOptions:
|
|
3316
|
-
customRenderSidebar:
|
|
3317
|
-
onNavigationDataChange:
|
|
3318
|
-
showCollapsedButton:
|
|
3319
|
-
initialSidebarCollapsed:
|
|
3314
|
+
headerStyle: y,
|
|
3315
|
+
highlightActiveMenuItem: F,
|
|
3316
|
+
enableSecurity: T = !1,
|
|
3317
|
+
securityOptions: ee,
|
|
3318
|
+
customRenderSidebar: U,
|
|
3319
|
+
onNavigationDataChange: k,
|
|
3320
|
+
showCollapsedButton: G,
|
|
3321
|
+
initialSidebarCollapsed: Ae = !1,
|
|
3320
3322
|
sideBarBackgroundDarkColor: Ce,
|
|
3321
|
-
sideBarBackgroundLightColor:
|
|
3323
|
+
sideBarBackgroundLightColor: se,
|
|
3322
3324
|
sideBarTextDarkColor: be,
|
|
3323
3325
|
sideBarTextLightColor: we,
|
|
3324
3326
|
sideBarIconDarkColor: Se,
|
|
3325
3327
|
sideBarIconLightColor: w,
|
|
3326
|
-
sideBarBackgroundImage:
|
|
3327
|
-
mainBackground:
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3328
|
+
sideBarBackgroundImage: S,
|
|
3329
|
+
mainBackground: $,
|
|
3330
|
+
mainBorderRadius: N,
|
|
3331
|
+
mainBorderColor: B,
|
|
3332
|
+
sideBarItemBorderRadius: E,
|
|
3333
|
+
sideBarItemHorizontalGap: z,
|
|
3334
|
+
sideBarItemActiveBackground: j,
|
|
3335
|
+
sideBarCollapsedSubmenuWidth: he,
|
|
3336
|
+
sidebarActiveColor: Ie,
|
|
3337
|
+
maxKeepAliveTabs: q = 10,
|
|
3338
|
+
sidebarVariant: ve = "legacy",
|
|
3339
|
+
sidebarShowSearch: W = !1
|
|
3336
3340
|
}) {
|
|
3337
3341
|
return /* @__PURE__ */ r(
|
|
3338
|
-
|
|
3342
|
+
Bt,
|
|
3339
3343
|
{
|
|
3340
3344
|
navigationData: t,
|
|
3341
3345
|
navigationRootLink: A,
|
|
3342
3346
|
user: o,
|
|
3343
3347
|
owner: a,
|
|
3344
3348
|
company: l,
|
|
3345
|
-
enableSecurity:
|
|
3346
|
-
securityOptions:
|
|
3347
|
-
onNavigationDataChange:
|
|
3348
|
-
initialSidebarCollapsed:
|
|
3349
|
+
enableSecurity: T,
|
|
3350
|
+
securityOptions: ee,
|
|
3351
|
+
onNavigationDataChange: k,
|
|
3352
|
+
initialSidebarCollapsed: Ae,
|
|
3349
3353
|
children: /* @__PURE__ */ r(
|
|
3350
|
-
|
|
3354
|
+
Go,
|
|
3351
3355
|
{
|
|
3352
3356
|
navigationRootLink: A,
|
|
3353
3357
|
user: o,
|
|
@@ -3362,52 +3366,54 @@ function Gn({
|
|
|
3362
3366
|
sideBarHeaderContent: f,
|
|
3363
3367
|
sideBarFooterHeight: d,
|
|
3364
3368
|
sideBarFooterContent: u,
|
|
3365
|
-
selectedGroupColor:
|
|
3366
|
-
groupColor:
|
|
3369
|
+
selectedGroupColor: x,
|
|
3370
|
+
groupColor: I,
|
|
3367
3371
|
backgroundGroupColor: L,
|
|
3368
|
-
groupLabelDarkColor:
|
|
3369
|
-
groupLabelLightColor:
|
|
3372
|
+
groupLabelDarkColor: J,
|
|
3373
|
+
groupLabelLightColor: V,
|
|
3370
3374
|
onCollapsedSideBar: p,
|
|
3371
|
-
onHiddenSidebar:
|
|
3375
|
+
onHiddenSidebar: v,
|
|
3372
3376
|
sidebarDefaultGroupIcon: b,
|
|
3373
3377
|
sidebarSelectedGroupName: m,
|
|
3374
|
-
headerColor:
|
|
3378
|
+
headerColor: Y,
|
|
3375
3379
|
footerHeight: M,
|
|
3376
3380
|
iconsWithBackground: O,
|
|
3377
3381
|
menuItemHeight: D,
|
|
3378
|
-
showSideBar:
|
|
3382
|
+
showSideBar: K,
|
|
3379
3383
|
showHeader: P,
|
|
3380
|
-
headerStyle:
|
|
3381
|
-
highlightActiveMenuItem:
|
|
3382
|
-
enableSecurity:
|
|
3383
|
-
customRenderSidebar:
|
|
3384
|
-
showCollapsedButton:
|
|
3384
|
+
headerStyle: y,
|
|
3385
|
+
highlightActiveMenuItem: F,
|
|
3386
|
+
enableSecurity: T,
|
|
3387
|
+
customRenderSidebar: U,
|
|
3388
|
+
showCollapsedButton: G,
|
|
3385
3389
|
sideBarBackgroundDarkColor: Ce,
|
|
3386
|
-
sideBarBackgroundLightColor:
|
|
3390
|
+
sideBarBackgroundLightColor: se,
|
|
3387
3391
|
sideBarTextDarkColor: be,
|
|
3388
3392
|
sideBarTextLightColor: we,
|
|
3389
3393
|
sideBarIconDarkColor: Se,
|
|
3390
3394
|
sideBarIconLightColor: w,
|
|
3391
|
-
sideBarBackgroundImage:
|
|
3392
|
-
mainBackground:
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3400
|
-
|
|
3395
|
+
sideBarBackgroundImage: S,
|
|
3396
|
+
mainBackground: $,
|
|
3397
|
+
mainBorderRadius: N,
|
|
3398
|
+
mainBorderColor: B,
|
|
3399
|
+
sideBarItemBorderRadius: E,
|
|
3400
|
+
sideBarItemHorizontalGap: z,
|
|
3401
|
+
sideBarItemActiveBackground: j,
|
|
3402
|
+
sideBarCollapsedSubmenuWidth: he,
|
|
3403
|
+
sidebarActiveColor: Ie,
|
|
3404
|
+
maxKeepAliveTabs: q,
|
|
3405
|
+
sidebarVariant: ve,
|
|
3406
|
+
sidebarShowSearch: W,
|
|
3401
3407
|
children: e
|
|
3402
3408
|
}
|
|
3403
3409
|
)
|
|
3404
3410
|
}
|
|
3405
3411
|
);
|
|
3406
3412
|
}
|
|
3407
|
-
const
|
|
3413
|
+
const Sr = Ne({
|
|
3408
3414
|
state: { userCloseLinkRequest: "", linkClosed: "", isClosing: !1 },
|
|
3409
3415
|
dispatch: (A) => null
|
|
3410
|
-
}),
|
|
3416
|
+
}), qn = ({ children: A }) => {
|
|
3411
3417
|
const t = {
|
|
3412
3418
|
userCloseLinkRequest: "",
|
|
3413
3419
|
linkClosed: "",
|
|
@@ -3426,7 +3432,7 @@ const vr = Ne({
|
|
|
3426
3432
|
default:
|
|
3427
3433
|
return s;
|
|
3428
3434
|
}
|
|
3429
|
-
}, [e, n] =
|
|
3435
|
+
}, [e, n] = Pr(o, t);
|
|
3430
3436
|
return xe.useEffect(() => {
|
|
3431
3437
|
let s = null;
|
|
3432
3438
|
return e.userCloseLinkRequest && !e.linkClosed && (s = setTimeout(() => {
|
|
@@ -3434,23 +3440,23 @@ const vr = Ne({
|
|
|
3434
3440
|
}, 0)), () => {
|
|
3435
3441
|
s && clearTimeout(s);
|
|
3436
3442
|
};
|
|
3437
|
-
}, [e.userCloseLinkRequest, e.linkClosed, n]), /* @__PURE__ */ r(
|
|
3438
|
-
},
|
|
3439
|
-
const A =
|
|
3443
|
+
}, [e.userCloseLinkRequest, e.linkClosed, n]), /* @__PURE__ */ r(Sr.Provider, { value: { state: e, dispatch: n }, children: A });
|
|
3444
|
+
}, kr = () => {
|
|
3445
|
+
const A = ye(Sr);
|
|
3440
3446
|
if (!A)
|
|
3441
3447
|
throw new Error("useArchbaseNavigationContext deve ser usado dentro de um ArchbaseNavigationProvider");
|
|
3442
3448
|
return A;
|
|
3443
|
-
},
|
|
3444
|
-
const o =
|
|
3449
|
+
}, jn = (A, t) => {
|
|
3450
|
+
const o = kr(), { state: e, dispatch: n } = o, s = C((i) => {
|
|
3445
3451
|
n({ type: "CLOSE_ALLOWED", link: A, payload: i });
|
|
3446
|
-
}, [n, A]), a =
|
|
3452
|
+
}, [n, A]), a = Z(t);
|
|
3447
3453
|
a.current = t, oe(() => {
|
|
3448
3454
|
e && e.userCloseLinkRequest && e.userCloseLinkRequest === A && a.current();
|
|
3449
3455
|
}, [e, A]);
|
|
3450
3456
|
const l = e.isClosing && e.userCloseLinkRequest === A;
|
|
3451
3457
|
return { closeAllowed: s, isClosing: l };
|
|
3452
|
-
}, AA =
|
|
3453
|
-
|
|
3458
|
+
}, AA = ir()(
|
|
3459
|
+
$t(
|
|
3454
3460
|
(A, t) => ({
|
|
3455
3461
|
openTabs: [],
|
|
3456
3462
|
activeTabId: null,
|
|
@@ -3505,7 +3511,7 @@ const vr = Ne({
|
|
|
3505
3511
|
}
|
|
3506
3512
|
)
|
|
3507
3513
|
);
|
|
3508
|
-
function
|
|
3514
|
+
function Xn({
|
|
3509
3515
|
navigationData: A,
|
|
3510
3516
|
onChangeOpenedTabs: t,
|
|
3511
3517
|
onChangeActiveTabId: o,
|
|
@@ -3513,101 +3519,101 @@ function Hn({
|
|
|
3513
3519
|
openedTabs: n = [],
|
|
3514
3520
|
colors: s
|
|
3515
3521
|
}) {
|
|
3516
|
-
const [a, l] = xe.useTransition(), i = qe(), { colorScheme: h } = de(), [c, d] = ge(n), [u, p] = ge(e),
|
|
3517
|
-
|
|
3518
|
-
const g =
|
|
3522
|
+
const [a, l] = xe.useTransition(), i = qe(), { colorScheme: h } = de(), [c, d] = ge(n), [u, p] = ge(e), v = Z(void 0), b = je(), m = Z([]);
|
|
3523
|
+
Nt(m);
|
|
3524
|
+
const g = kr(), { state: f, dispatch: x } = g, I = ye(rA), L = Mo(), { start: J, done: V } = wr(), Y = AA((w) => w.clearSnapshot), M = AA((w) => w.removeTab), O = Z(t), D = Z(o);
|
|
3519
3525
|
oe(() => {
|
|
3520
3526
|
O.current = t, D.current = o;
|
|
3521
3527
|
});
|
|
3522
|
-
const
|
|
3528
|
+
const K = Z(u);
|
|
3523
3529
|
oe(() => {
|
|
3524
|
-
|
|
3530
|
+
v.current = K.current, K.current = u;
|
|
3525
3531
|
}, [u]);
|
|
3526
|
-
const P =
|
|
3527
|
-
|
|
3528
|
-
const
|
|
3529
|
-
let
|
|
3530
|
-
!
|
|
3531
|
-
const
|
|
3532
|
-
let
|
|
3533
|
-
if (
|
|
3534
|
-
const j =
|
|
3535
|
-
j && (
|
|
3532
|
+
const P = Z(!1), y = C((w, S) => {
|
|
3533
|
+
J(), L ? L.destroy(w) : console.error("[ArchbaseAdminTabContainer] keepAliveCache context not available. Tab cache cleanup will not occur. This may cause memory leaks."), Y(w), M(w);
|
|
3534
|
+
const $ = c.findIndex((j) => j.path === w);
|
|
3535
|
+
let N = S?.redirectUrl;
|
|
3536
|
+
!N && $ >= 0 && (N = c[$].redirect);
|
|
3537
|
+
const B = c.filter((j) => j.id !== w);
|
|
3538
|
+
let E = null;
|
|
3539
|
+
if (v.current && v.current !== w) {
|
|
3540
|
+
const j = B.find((he) => he.id === v.current);
|
|
3541
|
+
j && (E = j.id);
|
|
3536
3542
|
}
|
|
3537
|
-
if (!
|
|
3543
|
+
if (!E) {
|
|
3538
3544
|
let j = -1;
|
|
3539
|
-
|
|
3545
|
+
B.forEach((he, Ie) => he.id === u && (j = Ie)), B.length > 0 && B[j] ? E = B[j].id : B.length > 0 && (E = B[B.length - 1].id);
|
|
3540
3546
|
}
|
|
3541
|
-
const z =
|
|
3547
|
+
const z = B.map((j) => ({
|
|
3542
3548
|
...j,
|
|
3543
|
-
active:
|
|
3549
|
+
active: E === j.id
|
|
3544
3550
|
}));
|
|
3545
|
-
if (d(z),
|
|
3546
|
-
p(
|
|
3551
|
+
if (d(z), E && E != null)
|
|
3552
|
+
p(E), i(N || E);
|
|
3547
3553
|
else {
|
|
3548
|
-
if (p(void 0), !
|
|
3554
|
+
if (p(void 0), !I.navigationRootLink) {
|
|
3549
3555
|
console.error("[ArchbaseAdminTabContainer] navigationRootLink is not configured. Cannot navigate to root.");
|
|
3550
3556
|
return;
|
|
3551
3557
|
}
|
|
3552
|
-
i(
|
|
3558
|
+
i(I.navigationRootLink);
|
|
3553
3559
|
}
|
|
3554
|
-
|
|
3555
|
-
}, [c, u, i,
|
|
3560
|
+
x({ type: "DONE", link: "" }), V();
|
|
3561
|
+
}, [c, u, i, I.navigationRootLink, x, L, J, V, Y, M]);
|
|
3556
3562
|
oe(() => {
|
|
3557
|
-
f?.linkClosed &&
|
|
3558
|
-
}, [f?.linkClosed, f?.payload,
|
|
3559
|
-
const
|
|
3560
|
-
const
|
|
3563
|
+
f?.linkClosed && y(f?.linkClosed, f?.payload);
|
|
3564
|
+
}, [f?.linkClosed, f?.payload, y]);
|
|
3565
|
+
const F = (w) => {
|
|
3566
|
+
const S = {
|
|
3561
3567
|
item: void 0,
|
|
3562
3568
|
title: void 0,
|
|
3563
3569
|
link: w,
|
|
3564
3570
|
redirect: void 0,
|
|
3565
3571
|
customTitle: void 0
|
|
3566
3572
|
};
|
|
3567
|
-
return A.forEach((
|
|
3568
|
-
if (
|
|
3569
|
-
|
|
3570
|
-
|
|
3573
|
+
return A.forEach(($) => {
|
|
3574
|
+
if ($.links)
|
|
3575
|
+
$.links.forEach((N) => {
|
|
3576
|
+
zA({ path: N.link || "" }, location.pathname) && (S.item = N, S.title = `${ne().t(N.label)}`, S.redirect = N.redirect, S.customTitle = N.customTitle);
|
|
3571
3577
|
});
|
|
3572
|
-
else if (
|
|
3573
|
-
const
|
|
3574
|
-
|
|
3578
|
+
else if ($.link && !S.item) {
|
|
3579
|
+
const N = zA({ path: $.link }, location.pathname);
|
|
3580
|
+
N && (N.params && Object.keys(N.params).length > 0 ? S.title = `${N.params[Object.keys(N.params)[0]]}` : S.title = `${ne().t($.label)}`, S.item = $, S.redirect = $.redirect, S.customTitle = $.customTitle);
|
|
3575
3581
|
}
|
|
3576
|
-
}),
|
|
3582
|
+
}), S.customTitle && (S.customTitle = S.customTitle.replace("$title", S.title)), S;
|
|
3577
3583
|
};
|
|
3578
3584
|
oe(() => {
|
|
3579
3585
|
d(n), P.current = !0;
|
|
3580
3586
|
}, [JSON.stringify(n)]);
|
|
3581
|
-
const
|
|
3587
|
+
const T = Z(c), ee = Z(u);
|
|
3582
3588
|
oe(() => {
|
|
3583
3589
|
if (P.current) {
|
|
3584
|
-
P.current = !1,
|
|
3590
|
+
P.current = !1, T.current = c, ee.current = u;
|
|
3585
3591
|
return;
|
|
3586
3592
|
}
|
|
3587
|
-
const w = JSON.stringify(
|
|
3588
|
-
if (w ||
|
|
3589
|
-
const
|
|
3593
|
+
const w = JSON.stringify(T.current) !== JSON.stringify(c), S = ee.current !== u;
|
|
3594
|
+
if (w || S) {
|
|
3595
|
+
const $ = setTimeout(() => {
|
|
3590
3596
|
O.current?.(c), D.current?.(u);
|
|
3591
3597
|
}, 0);
|
|
3592
|
-
return
|
|
3598
|
+
return T.current = c, ee.current = u, () => clearTimeout($);
|
|
3593
3599
|
}
|
|
3594
3600
|
}, [c, u]);
|
|
3595
|
-
const
|
|
3601
|
+
const U = Z("");
|
|
3596
3602
|
oe(() => {
|
|
3597
|
-
if (
|
|
3603
|
+
if (U.current === b.pathname)
|
|
3598
3604
|
return;
|
|
3599
|
-
|
|
3600
|
-
const w =
|
|
3605
|
+
U.current = b.pathname;
|
|
3606
|
+
const w = F(b.pathname);
|
|
3601
3607
|
if (w && w.item) {
|
|
3602
|
-
const
|
|
3603
|
-
if (
|
|
3604
|
-
if (c[
|
|
3605
|
-
const
|
|
3606
|
-
|
|
3608
|
+
const S = c.findIndex(($) => $.path === w.link);
|
|
3609
|
+
if (S !== -1) {
|
|
3610
|
+
if (c[S].title !== w.title) {
|
|
3611
|
+
const $ = [...c];
|
|
3612
|
+
$[S] = { ...$[S], title: w.title }, d($);
|
|
3607
3613
|
}
|
|
3608
|
-
p(c[
|
|
3614
|
+
p(c[S].id);
|
|
3609
3615
|
} else {
|
|
3610
|
-
const
|
|
3616
|
+
const $ = {
|
|
3611
3617
|
id: `${w.link}`,
|
|
3612
3618
|
title: `${w.title}`,
|
|
3613
3619
|
path: `${w.link}`,
|
|
@@ -3617,89 +3623,89 @@ function Hn({
|
|
|
3617
3623
|
closeButton: !0,
|
|
3618
3624
|
redirect: w.redirect,
|
|
3619
3625
|
customTitle: w.customTitle
|
|
3620
|
-
},
|
|
3621
|
-
d(
|
|
3626
|
+
}, N = [...c.map((B) => ({ ...B, active: !1 })), $];
|
|
3627
|
+
d(N), p($.id);
|
|
3622
3628
|
}
|
|
3623
3629
|
}
|
|
3624
3630
|
}, [b.pathname]);
|
|
3625
|
-
const
|
|
3626
|
-
const
|
|
3627
|
-
|
|
3628
|
-
p(w),
|
|
3631
|
+
const k = (w) => {
|
|
3632
|
+
const S = c.filter(($) => $.id === w);
|
|
3633
|
+
S && S.length > 0 && b.pathname !== S[0].path && (J(), i(S[0].path)), l(() => {
|
|
3634
|
+
p(w), V();
|
|
3629
3635
|
});
|
|
3630
|
-
},
|
|
3636
|
+
}, G = (w) => {
|
|
3631
3637
|
try {
|
|
3632
|
-
|
|
3633
|
-
} catch (
|
|
3634
|
-
console.error("[TabContainer] Dispatch failed:",
|
|
3638
|
+
J(), x({ type: "USER_CLOSE_REQUEST", link: w });
|
|
3639
|
+
} catch (S) {
|
|
3640
|
+
console.error("[TabContainer] Dispatch failed:", S), V();
|
|
3635
3641
|
}
|
|
3636
|
-
},
|
|
3642
|
+
}, Ae = C(() => {
|
|
3637
3643
|
if (L?.destroyAll(), c.forEach((w) => {
|
|
3638
|
-
|
|
3639
|
-
}), d([]), p(void 0), !
|
|
3644
|
+
Y(w.id), M(w.id);
|
|
3645
|
+
}), d([]), p(void 0), !I.navigationRootLink) {
|
|
3640
3646
|
console.error("[ArchbaseAdminTabContainer] navigationRootLink is not configured. Cannot navigate to root.");
|
|
3641
3647
|
return;
|
|
3642
3648
|
}
|
|
3643
|
-
i(
|
|
3644
|
-
}, [i,
|
|
3645
|
-
const
|
|
3646
|
-
if (
|
|
3649
|
+
i(I.navigationRootLink);
|
|
3650
|
+
}, [i, I.navigationRootLink, L, c, Y, M]), Ce = C((w) => {
|
|
3651
|
+
const S = c.findIndex((z) => z.id === w);
|
|
3652
|
+
if (S <= 0)
|
|
3647
3653
|
return;
|
|
3648
|
-
c.slice(0,
|
|
3649
|
-
L?.destroy(z.path),
|
|
3654
|
+
c.slice(0, S).forEach((z) => {
|
|
3655
|
+
L?.destroy(z.path), Y(z.id), M(z.id);
|
|
3650
3656
|
});
|
|
3651
|
-
const
|
|
3657
|
+
const N = c.slice(S), B = N.find((z) => z.id === u)?.id || N[0]?.id, E = N.map((z) => ({
|
|
3652
3658
|
...z,
|
|
3653
|
-
active: z.id ===
|
|
3659
|
+
active: z.id === B
|
|
3654
3660
|
}));
|
|
3655
|
-
if (d(
|
|
3656
|
-
p(
|
|
3657
|
-
const z =
|
|
3661
|
+
if (d(E), B) {
|
|
3662
|
+
p(B);
|
|
3663
|
+
const z = E.find((j) => j.id === B);
|
|
3658
3664
|
z && b.pathname !== z.path && i(z.path);
|
|
3659
3665
|
}
|
|
3660
|
-
}, [c, u, i, b.pathname, L,
|
|
3661
|
-
const
|
|
3662
|
-
if (
|
|
3666
|
+
}, [c, u, i, b.pathname, L, Y, M]), se = C((w) => {
|
|
3667
|
+
const S = c.findIndex((z) => z.id === w);
|
|
3668
|
+
if (S === -1 || S >= c.length - 1)
|
|
3663
3669
|
return;
|
|
3664
|
-
c.slice(
|
|
3665
|
-
L?.destroy(z.path),
|
|
3670
|
+
c.slice(S + 1).forEach((z) => {
|
|
3671
|
+
L?.destroy(z.path), Y(z.id), M(z.id);
|
|
3666
3672
|
});
|
|
3667
|
-
const
|
|
3673
|
+
const N = c.slice(0, S + 1), B = N.find((z) => z.id === u)?.id || N[N.length - 1]?.id, E = N.map((z) => ({
|
|
3668
3674
|
...z,
|
|
3669
|
-
active: z.id ===
|
|
3675
|
+
active: z.id === B
|
|
3670
3676
|
}));
|
|
3671
|
-
if (d(
|
|
3672
|
-
p(
|
|
3673
|
-
const z =
|
|
3677
|
+
if (d(E), B) {
|
|
3678
|
+
p(B);
|
|
3679
|
+
const z = E.find((j) => j.id === B);
|
|
3674
3680
|
z && b.pathname !== z.path && i(z.path);
|
|
3675
3681
|
}
|
|
3676
|
-
}, [c, u, i, b.pathname, L,
|
|
3677
|
-
const
|
|
3678
|
-
if (!
|
|
3682
|
+
}, [c, u, i, b.pathname, L, Y, M]), be = C((w) => {
|
|
3683
|
+
const S = c.find((N) => N.id === w);
|
|
3684
|
+
if (!S)
|
|
3679
3685
|
return;
|
|
3680
|
-
L?.destroyOther(
|
|
3681
|
-
|
|
3686
|
+
L?.destroyOther(S.path), c.forEach((N) => {
|
|
3687
|
+
N.id !== w && (Y(N.id), M(N.id));
|
|
3682
3688
|
});
|
|
3683
|
-
const
|
|
3684
|
-
d(
|
|
3685
|
-
}, [c, i, b.pathname, L,
|
|
3689
|
+
const $ = [{ ...S, active: !0 }];
|
|
3690
|
+
d($), p(w), b.pathname !== S.path && i(S.path);
|
|
3691
|
+
}, [c, i, b.pathname, L, Y, M]), we = f?.isClosing ? f?.userCloseLinkRequest : void 0;
|
|
3686
3692
|
return /* @__PURE__ */ r("div", { ref: m, children: /* @__PURE__ */ r(
|
|
3687
|
-
|
|
3693
|
+
zt,
|
|
3688
3694
|
{
|
|
3689
3695
|
buttonCloseOnlyActiveTab: !0,
|
|
3690
|
-
onClick: (w) =>
|
|
3691
|
-
onTabClose: (w) =>
|
|
3696
|
+
onClick: (w) => k(w),
|
|
3697
|
+
onTabClose: (w) => G(w),
|
|
3692
3698
|
onTabChange: (w) => null,
|
|
3693
|
-
onCloseAllTabs:
|
|
3699
|
+
onCloseAllTabs: Ae,
|
|
3694
3700
|
onCloseLeftTabs: Ce,
|
|
3695
|
-
onCloseRightTabs:
|
|
3701
|
+
onCloseRightTabs: se,
|
|
3696
3702
|
onCloseOtherTabs: be,
|
|
3697
|
-
currentTabs: ((w) => w.map((
|
|
3698
|
-
key:
|
|
3699
|
-
favicon:
|
|
3700
|
-
title:
|
|
3701
|
-
customTitle:
|
|
3702
|
-
closing: we ===
|
|
3703
|
+
currentTabs: ((w) => w.map((S) => ({
|
|
3704
|
+
key: S.id,
|
|
3705
|
+
favicon: S.iconClass,
|
|
3706
|
+
title: S.title,
|
|
3707
|
+
customTitle: S.customTitle,
|
|
3708
|
+
closing: we === S.id
|
|
3703
3709
|
})))(c),
|
|
3704
3710
|
activeTab: u,
|
|
3705
3711
|
colors: s,
|
|
@@ -3707,94 +3713,94 @@ function Hn({
|
|
|
3707
3713
|
}
|
|
3708
3714
|
) });
|
|
3709
3715
|
}
|
|
3710
|
-
const
|
|
3716
|
+
const Uo = () => xe.createElement("div", null, "Home View"), Ho = () => xe.createElement("div", null, "Pedido Form"), Yo = () => xe.createElement("div", null, "Pedido View"), qo = () => xe.createElement("div", null, "Pessoa Form"), jo = () => xe.createElement("div", null, "Pessoa View"), Xo = {
|
|
3711
3717
|
label: "Dashboard",
|
|
3712
|
-
icon: /* @__PURE__ */ r(
|
|
3718
|
+
icon: /* @__PURE__ */ r(Xr, {}),
|
|
3713
3719
|
link: "/dashboard",
|
|
3714
3720
|
category: "DASHBOARD",
|
|
3715
3721
|
color: "teal",
|
|
3716
3722
|
component: /* @__PURE__ */ r("div", {}),
|
|
3717
3723
|
showInSidebar: !0
|
|
3718
|
-
},
|
|
3724
|
+
}, Jo = {
|
|
3719
3725
|
label: "Home",
|
|
3720
|
-
icon: /* @__PURE__ */ r(
|
|
3726
|
+
icon: /* @__PURE__ */ r(jr, {}),
|
|
3721
3727
|
link: "/home",
|
|
3722
3728
|
category: "HOME",
|
|
3723
3729
|
color: "teal",
|
|
3724
|
-
component: /* @__PURE__ */ r(
|
|
3730
|
+
component: /* @__PURE__ */ r(Uo, {}),
|
|
3725
3731
|
showInSidebar: !0,
|
|
3726
3732
|
keepAlive: !0
|
|
3727
|
-
},
|
|
3733
|
+
}, _o = {
|
|
3728
3734
|
label: "Consulta lista pessoas",
|
|
3729
3735
|
link: "/pessoa/consulta",
|
|
3730
|
-
icon: /* @__PURE__ */ r(
|
|
3736
|
+
icon: /* @__PURE__ */ r(Ar, {}),
|
|
3731
3737
|
category: "PESSOAS",
|
|
3732
3738
|
color: "pink",
|
|
3733
|
-
component: /* @__PURE__ */ r(
|
|
3739
|
+
component: /* @__PURE__ */ r(jo, {}),
|
|
3734
3740
|
showInSidebar: !0,
|
|
3735
3741
|
keepAlive: !0
|
|
3736
|
-
},
|
|
3742
|
+
}, Wo = {
|
|
3737
3743
|
label: "Nova pessoa",
|
|
3738
3744
|
link: "/pessoa/nova",
|
|
3739
|
-
icon: /* @__PURE__ */ r(
|
|
3745
|
+
icon: /* @__PURE__ */ r(_r, {}),
|
|
3740
3746
|
category: "PESSOAS",
|
|
3741
3747
|
color: "pink",
|
|
3742
|
-
component: /* @__PURE__ */ r(
|
|
3748
|
+
component: /* @__PURE__ */ r(qo, {}),
|
|
3743
3749
|
showInSidebar: !0,
|
|
3744
3750
|
keepAlive: !0
|
|
3745
|
-
},
|
|
3751
|
+
}, Zo = {
|
|
3746
3752
|
label: "Pessoas",
|
|
3747
|
-
icon: /* @__PURE__ */ r(
|
|
3748
|
-
links: [
|
|
3753
|
+
icon: /* @__PURE__ */ r(Jr, {}),
|
|
3754
|
+
links: [_o, Wo],
|
|
3749
3755
|
category: "PESSOAS",
|
|
3750
3756
|
color: "pink",
|
|
3751
3757
|
showInSidebar: !0
|
|
3752
|
-
},
|
|
3758
|
+
}, en = {
|
|
3753
3759
|
label: "Consulta lista pedidos",
|
|
3754
3760
|
link: "/pedido/consulta",
|
|
3755
|
-
icon: /* @__PURE__ */ r(
|
|
3761
|
+
icon: /* @__PURE__ */ r(Ar, {}),
|
|
3756
3762
|
category: "PEDIDOS",
|
|
3757
3763
|
color: "yellow",
|
|
3758
|
-
component: /* @__PURE__ */ r(
|
|
3764
|
+
component: /* @__PURE__ */ r(Yo, {}),
|
|
3759
3765
|
showInSidebar: !0,
|
|
3760
3766
|
keepAlive: !0
|
|
3761
|
-
},
|
|
3767
|
+
}, An = {
|
|
3762
3768
|
label: "Novo pedido",
|
|
3763
3769
|
link: "/pedido/novo",
|
|
3764
|
-
icon: /* @__PURE__ */ r(
|
|
3770
|
+
icon: /* @__PURE__ */ r(Zr, {}),
|
|
3765
3771
|
category: "PEDIDOS",
|
|
3766
3772
|
color: "yellow",
|
|
3767
|
-
component: /* @__PURE__ */ r(
|
|
3773
|
+
component: /* @__PURE__ */ r(Ho, {}),
|
|
3768
3774
|
showInSidebar: !0,
|
|
3769
3775
|
keepAlive: !0
|
|
3770
|
-
},
|
|
3776
|
+
}, rn = {
|
|
3771
3777
|
label: "Pedidos",
|
|
3772
|
-
icon: /* @__PURE__ */ r(
|
|
3773
|
-
links: [
|
|
3778
|
+
icon: /* @__PURE__ */ r(Wr, {}),
|
|
3779
|
+
links: [en, An],
|
|
3774
3780
|
category: "PEDIDOS",
|
|
3775
3781
|
color: "yellow",
|
|
3776
3782
|
showInSidebar: !0
|
|
3777
|
-
},
|
|
3783
|
+
}, tn = {
|
|
3778
3784
|
label: "Configurações",
|
|
3779
3785
|
link: "/config",
|
|
3780
|
-
icon: /* @__PURE__ */ r(
|
|
3786
|
+
icon: /* @__PURE__ */ r(et, {}),
|
|
3781
3787
|
category: "CONFIGURAÇÕES",
|
|
3782
3788
|
color: "lime",
|
|
3783
3789
|
component: /* @__PURE__ */ r("div", {}),
|
|
3784
3790
|
showInSidebar: !0
|
|
3785
|
-
},
|
|
3786
|
-
|
|
3787
|
-
Ho,
|
|
3791
|
+
}, Jn = [
|
|
3792
|
+
Jo,
|
|
3788
3793
|
Xo,
|
|
3789
|
-
|
|
3790
|
-
|
|
3794
|
+
Zo,
|
|
3795
|
+
rn,
|
|
3796
|
+
tn
|
|
3791
3797
|
];
|
|
3792
|
-
function
|
|
3793
|
-
const [s, { open: a, close: l }] =
|
|
3798
|
+
function _n({ children: A, title: t = "", size: o = "440px", drawerKey: e, styles: n }) {
|
|
3799
|
+
const [s, { open: a, close: l }] = Nr(!1), [i] = nr(), h = It(), c = Xe();
|
|
3794
3800
|
return oe(() => {
|
|
3795
3801
|
i.get("drawer") === e && a();
|
|
3796
3802
|
}, [i]), /* @__PURE__ */ r(
|
|
3797
|
-
|
|
3803
|
+
JA,
|
|
3798
3804
|
{
|
|
3799
3805
|
position: "right",
|
|
3800
3806
|
opened: s,
|
|
@@ -3813,8 +3819,8 @@ function qn({ children: A, title: t = "", size: o = "440px", drawerKey: e, style
|
|
|
3813
3819
|
}
|
|
3814
3820
|
);
|
|
3815
3821
|
}
|
|
3816
|
-
function
|
|
3817
|
-
const t = qe(), o = je(), [e] =
|
|
3822
|
+
function on(A) {
|
|
3823
|
+
const t = qe(), o = je(), [e] = nr();
|
|
3818
3824
|
return { openDrawer: () => {
|
|
3819
3825
|
const s = new URLSearchParams(e);
|
|
3820
3826
|
s.set("drawer", A), t({
|
|
@@ -3823,13 +3829,13 @@ function en(A) {
|
|
|
3823
3829
|
});
|
|
3824
3830
|
} };
|
|
3825
3831
|
}
|
|
3826
|
-
function
|
|
3827
|
-
const { openDrawer: t } =
|
|
3832
|
+
function Wn({ drawerKey: A }) {
|
|
3833
|
+
const { openDrawer: t } = on(A);
|
|
3828
3834
|
return oe(() => {
|
|
3829
3835
|
t();
|
|
3830
3836
|
}, []), null;
|
|
3831
3837
|
}
|
|
3832
|
-
const
|
|
3838
|
+
const nn = {
|
|
3833
3839
|
// Campos de identificação
|
|
3834
3840
|
showNickname: !0,
|
|
3835
3841
|
// Configurações de campos obrigatórios
|
|
@@ -3838,8 +3844,8 @@ const An = {
|
|
|
3838
3844
|
avatarImageQuality: 1,
|
|
3839
3845
|
avatarMaxOutputSizePx: 512
|
|
3840
3846
|
};
|
|
3841
|
-
function
|
|
3842
|
-
const s =
|
|
3847
|
+
function Zn({ opened: A, handleClose: t, userId: o, updateUser: e, options: n }) {
|
|
3848
|
+
const s = zr(), a = Or(), l = At(), i = Qt(`myProfile${o}Store`), h = Kt(rt.User), c = { ...nn, ...n ?? {} }, { dataSource: d, isLoading: u, error: p, isError: v, clearError: b } = Ft({
|
|
3843
3849
|
name: `dsUser${o}`,
|
|
3844
3850
|
label: `${ne().t("archbase:My Profile")}`,
|
|
3845
3851
|
service: h,
|
|
@@ -3854,8 +3860,8 @@ function Xn({ opened: A, handleClose: t, userId: o, updateUser: e, options: n })
|
|
|
3854
3860
|
onDestroy: (g) => {
|
|
3855
3861
|
},
|
|
3856
3862
|
onError: (g, f) => {
|
|
3857
|
-
const
|
|
3858
|
-
|
|
3863
|
+
const x = g instanceof Error ? g.message : typeof g == "string" ? g : JSON.stringify(g);
|
|
3864
|
+
Pt.showError(ne().t("archbase:WARNING"), x, f);
|
|
3859
3865
|
}
|
|
3860
3866
|
});
|
|
3861
3867
|
oe(() => {
|
|
@@ -3865,7 +3871,7 @@ function Xn({ opened: A, handleClose: t, userId: o, updateUser: e, options: n })
|
|
|
3865
3871
|
g && (console.log(g), e(g.name, g.avatar));
|
|
3866
3872
|
};
|
|
3867
3873
|
return /* @__PURE__ */ r(
|
|
3868
|
-
|
|
3874
|
+
Vt,
|
|
3869
3875
|
{
|
|
3870
3876
|
title: ne().t("archbase:My Profile"),
|
|
3871
3877
|
size: 800,
|
|
@@ -3875,9 +3881,9 @@ function Xn({ opened: A, handleClose: t, userId: o, updateUser: e, options: n })
|
|
|
3875
3881
|
onClickOk: t,
|
|
3876
3882
|
onClickCancel: t,
|
|
3877
3883
|
onAfterSave: m,
|
|
3878
|
-
children: /* @__PURE__ */ r(ze, { style: { height: "440px" }, ref: s, children: /* @__PURE__ */ R(
|
|
3879
|
-
/* @__PURE__ */ r(
|
|
3880
|
-
|
|
3884
|
+
children: /* @__PURE__ */ r(ze, { style: { height: "440px" }, ref: s, children: /* @__PURE__ */ R(_, { children: [
|
|
3885
|
+
/* @__PURE__ */ r(_, { align: "center", children: /* @__PURE__ */ r(
|
|
3886
|
+
Lt,
|
|
3881
3887
|
{
|
|
3882
3888
|
dataSource: d,
|
|
3883
3889
|
dataField: "avatar",
|
|
@@ -3922,7 +3928,7 @@ function Xn({ opened: A, handleClose: t, userId: o, updateUser: e, options: n })
|
|
|
3922
3928
|
}
|
|
3923
3929
|
);
|
|
3924
3930
|
}
|
|
3925
|
-
const
|
|
3931
|
+
const es = ir((A) => ({
|
|
3926
3932
|
nameStore: "ADMIN_STORE",
|
|
3927
3933
|
openedTabs: [],
|
|
3928
3934
|
activeTabId: void 0,
|
|
@@ -3930,7 +3936,7 @@ const Jn = sr((A) => ({
|
|
|
3930
3936
|
setOpenedTabs: (t) => A({ openedTabs: t }),
|
|
3931
3937
|
setActiveTabId: (t) => A({ activeTabId: t }),
|
|
3932
3938
|
setCollapsed: (t) => A({ collapsed: t })
|
|
3933
|
-
})),
|
|
3939
|
+
})), sn = (A) => Gt((t, o) => ({
|
|
3934
3940
|
// Initial state values
|
|
3935
3941
|
scrollY: A?.scrollY ?? 0,
|
|
3936
3942
|
expandedPanels: A?.expandedPanels ?? [],
|
|
@@ -4020,14 +4026,14 @@ const Jn = sr((A) => ({
|
|
|
4020
4026
|
filters: e.filters
|
|
4021
4027
|
};
|
|
4022
4028
|
}
|
|
4023
|
-
})), tA = Ne(null),
|
|
4029
|
+
})), tA = Ne(null), ln = ({
|
|
4024
4030
|
tabId: A,
|
|
4025
4031
|
children: t
|
|
4026
4032
|
}) => {
|
|
4027
|
-
const { getSnapshot: o, saveSnapshot: e } = AA(), n =
|
|
4033
|
+
const { getSnapshot: o, saveSnapshot: e } = AA(), n = Z(void 0);
|
|
4028
4034
|
if (!n.current) {
|
|
4029
4035
|
const s = o(A);
|
|
4030
|
-
n.current =
|
|
4036
|
+
n.current = sn(s);
|
|
4031
4037
|
}
|
|
4032
4038
|
return oe(() => () => {
|
|
4033
4039
|
if (n.current) {
|
|
@@ -4036,28 +4042,28 @@ const Jn = sr((A) => ({
|
|
|
4036
4042
|
}
|
|
4037
4043
|
}, [A, e]), /* @__PURE__ */ r(tA.Provider, { value: n.current ?? null, children: t });
|
|
4038
4044
|
};
|
|
4039
|
-
function
|
|
4040
|
-
const t =
|
|
4045
|
+
function As(A) {
|
|
4046
|
+
const t = ye(tA);
|
|
4041
4047
|
if (!t)
|
|
4042
4048
|
throw new Error("useTabStore must be used within TabStoreProvider");
|
|
4043
|
-
return
|
|
4049
|
+
return Ot(t, A);
|
|
4044
4050
|
}
|
|
4045
|
-
function
|
|
4046
|
-
const A =
|
|
4051
|
+
function rs() {
|
|
4052
|
+
const A = ye(tA);
|
|
4047
4053
|
if (!A)
|
|
4048
4054
|
throw new Error("useTabStoreApi must be used within TabStoreProvider");
|
|
4049
4055
|
return A;
|
|
4050
4056
|
}
|
|
4051
4057
|
function EA() {
|
|
4052
|
-
return
|
|
4058
|
+
return ye(tA);
|
|
4053
4059
|
}
|
|
4054
4060
|
function oA(A, t) {
|
|
4055
|
-
const o = EA(), e =
|
|
4061
|
+
const o = EA(), e = Z({ resolved: !1, value: void 0 });
|
|
4056
4062
|
e.current.resolved || (e.current = {
|
|
4057
4063
|
resolved: !0,
|
|
4058
4064
|
value: typeof t == "function" ? t() : t
|
|
4059
4065
|
});
|
|
4060
|
-
const n = e.current.value, [s, a] = ge(n), l =
|
|
4066
|
+
const n = e.current.value, [s, a] = ge(n), l = Lr(
|
|
4061
4067
|
// subscribe
|
|
4062
4068
|
(c) => o ? o.subscribe(c) : () => {
|
|
4063
4069
|
},
|
|
@@ -4069,7 +4075,7 @@ function oA(A, t) {
|
|
|
4069
4075
|
// getServerSnapshot
|
|
4070
4076
|
() => {
|
|
4071
4077
|
}
|
|
4072
|
-
), i = o ? l !== void 0 ? l : n : s, h =
|
|
4078
|
+
), i = o ? l !== void 0 ? l : n : s, h = C((c) => {
|
|
4073
4079
|
if (!o) {
|
|
4074
4080
|
a(c);
|
|
4075
4081
|
return;
|
|
@@ -4079,10 +4085,10 @@ function oA(A, t) {
|
|
|
4079
4085
|
}, [o, A, n]);
|
|
4080
4086
|
return [i, h];
|
|
4081
4087
|
}
|
|
4082
|
-
function
|
|
4088
|
+
function ts(A, t) {
|
|
4083
4089
|
return oA(A, t);
|
|
4084
4090
|
}
|
|
4085
|
-
const
|
|
4091
|
+
const an = {
|
|
4086
4092
|
page: 0,
|
|
4087
4093
|
pageSize: 25,
|
|
4088
4094
|
sortModel: [],
|
|
@@ -4094,23 +4100,23 @@ const on = {
|
|
|
4094
4100
|
expandedRowIds: [],
|
|
4095
4101
|
scrollPosition: { top: 0, left: 0 }
|
|
4096
4102
|
};
|
|
4097
|
-
function
|
|
4098
|
-
const o = { ...
|
|
4103
|
+
function os(A, t) {
|
|
4104
|
+
const o = { ...an, ...t }, [e, n] = oA(
|
|
4099
4105
|
`grid_${A}`,
|
|
4100
4106
|
o
|
|
4101
|
-
), s =
|
|
4102
|
-
n((
|
|
4103
|
-
}, [n]), a =
|
|
4104
|
-
n((
|
|
4105
|
-
...
|
|
4106
|
-
selectedRowIds:
|
|
4107
|
+
), s = C((f) => {
|
|
4108
|
+
n((x) => ({ ...x, ...f }));
|
|
4109
|
+
}, [n]), a = C((f) => s({ page: f }), [s]), l = C((f) => s({ pageSize: f, page: 0 }), [s]), i = C((f) => s({ sortModel: f }), [s]), h = C((f) => s({ filterModel: f, page: 0 }), [s]), c = C((f) => s({ selectedRowIds: f }), [s]), d = C((f) => {
|
|
4110
|
+
n((x) => ({
|
|
4111
|
+
...x,
|
|
4112
|
+
selectedRowIds: x.selectedRowIds.includes(f) ? x.selectedRowIds.filter((I) => I !== f) : [...x.selectedRowIds, f]
|
|
4107
4113
|
}));
|
|
4108
|
-
}, [n]), u =
|
|
4109
|
-
n((
|
|
4110
|
-
...
|
|
4111
|
-
expandedRowIds:
|
|
4114
|
+
}, [n]), u = C((f) => s({ selectedRowIds: f }), [s]), p = C(() => s({ selectedRowIds: [] }), [s]), v = C((f) => {
|
|
4115
|
+
n((x) => ({
|
|
4116
|
+
...x,
|
|
4117
|
+
expandedRowIds: x.expandedRowIds.includes(f) ? x.expandedRowIds.filter((I) => I !== f) : [...x.expandedRowIds, f]
|
|
4112
4118
|
}));
|
|
4113
|
-
}, [n]), b =
|
|
4119
|
+
}, [n]), b = C(() => n(o), [n, o]), m = C((f) => e.selectedRowIds.includes(f), [e.selectedRowIds]), g = C((f) => e.expandedRowIds.includes(f), [e.expandedRowIds]);
|
|
4114
4120
|
return {
|
|
4115
4121
|
/** Estado completo do grid */
|
|
4116
4122
|
state: e,
|
|
@@ -4135,51 +4141,51 @@ function es(A, t) {
|
|
|
4135
4141
|
/** Se tem alguma linha selecionada */
|
|
4136
4142
|
hasSelection: e.selectedRowIds.length > 0,
|
|
4137
4143
|
// Expansao (master-detail)
|
|
4138
|
-
toggleRowExpansion:
|
|
4144
|
+
toggleRowExpansion: v,
|
|
4139
4145
|
isRowExpanded: g
|
|
4140
4146
|
};
|
|
4141
4147
|
}
|
|
4142
|
-
const
|
|
4148
|
+
const UA = {
|
|
4143
4149
|
expandedNodeIds: [],
|
|
4144
4150
|
selectedNodeIds: [],
|
|
4145
4151
|
focusedNodeId: null
|
|
4146
4152
|
};
|
|
4147
|
-
function
|
|
4153
|
+
function ns(A, t = []) {
|
|
4148
4154
|
const [o, e] = oA(
|
|
4149
4155
|
`tree_${A}`,
|
|
4150
|
-
{ ...
|
|
4151
|
-
), n =
|
|
4156
|
+
{ ...UA, expandedNodeIds: t }
|
|
4157
|
+
), n = C((m) => {
|
|
4152
4158
|
e((g) => ({
|
|
4153
4159
|
...g,
|
|
4154
4160
|
expandedNodeIds: g.expandedNodeIds.includes(m) ? g.expandedNodeIds.filter((f) => f !== m) : [...g.expandedNodeIds, m]
|
|
4155
4161
|
}));
|
|
4156
|
-
}, [e]), s =
|
|
4162
|
+
}, [e]), s = C((m) => {
|
|
4157
4163
|
e((g) => ({
|
|
4158
4164
|
...g,
|
|
4159
4165
|
expandedNodeIds: g.expandedNodeIds.includes(m) ? g.expandedNodeIds : [...g.expandedNodeIds, m]
|
|
4160
4166
|
}));
|
|
4161
|
-
}, [e]), a =
|
|
4167
|
+
}, [e]), a = C((m) => {
|
|
4162
4168
|
e((g) => ({
|
|
4163
4169
|
...g,
|
|
4164
4170
|
expandedNodeIds: g.expandedNodeIds.filter((f) => f !== m)
|
|
4165
4171
|
}));
|
|
4166
|
-
}, [e]), l =
|
|
4172
|
+
}, [e]), l = C((m) => {
|
|
4167
4173
|
e((g) => ({ ...g, expandedNodeIds: m }));
|
|
4168
|
-
}, [e]), i =
|
|
4174
|
+
}, [e]), i = C(() => {
|
|
4169
4175
|
e((m) => ({ ...m, expandedNodeIds: [] }));
|
|
4170
|
-
}, [e]), h =
|
|
4176
|
+
}, [e]), h = C((m) => {
|
|
4171
4177
|
e((g) => ({ ...g, selectedNodeIds: m }));
|
|
4172
|
-
}, [e]), c =
|
|
4178
|
+
}, [e]), c = C((m) => {
|
|
4173
4179
|
e((g) => ({
|
|
4174
4180
|
...g,
|
|
4175
4181
|
selectedNodeIds: g.selectedNodeIds.includes(m) ? g.selectedNodeIds.filter((f) => f !== m) : [...g.selectedNodeIds, m]
|
|
4176
4182
|
}));
|
|
4177
|
-
}, [e]), d =
|
|
4183
|
+
}, [e]), d = C(() => {
|
|
4178
4184
|
e((m) => ({ ...m, selectedNodeIds: [] }));
|
|
4179
|
-
}, [e]), u =
|
|
4185
|
+
}, [e]), u = C((m) => {
|
|
4180
4186
|
e((g) => ({ ...g, focusedNodeId: m }));
|
|
4181
|
-
}, [e]), p =
|
|
4182
|
-
e({ ...
|
|
4187
|
+
}, [e]), p = C((m) => o.expandedNodeIds.includes(m), [o.expandedNodeIds]), v = C((m) => o.selectedNodeIds.includes(m), [o.selectedNodeIds]), b = C(() => {
|
|
4188
|
+
e({ ...UA, expandedNodeIds: t });
|
|
4183
4189
|
}, [e, t]);
|
|
4184
4190
|
return {
|
|
4185
4191
|
state: o,
|
|
@@ -4195,7 +4201,7 @@ function As(A, t = []) {
|
|
|
4195
4201
|
setSelected: h,
|
|
4196
4202
|
toggleSelected: c,
|
|
4197
4203
|
clearSelection: d,
|
|
4198
|
-
isSelected:
|
|
4204
|
+
isSelected: v,
|
|
4199
4205
|
selectedCount: o.selectedNodeIds.length,
|
|
4200
4206
|
hasSelection: o.selectedNodeIds.length > 0,
|
|
4201
4207
|
// Foco
|
|
@@ -4203,17 +4209,17 @@ function As(A, t = []) {
|
|
|
4203
4209
|
focusedNodeId: o.focusedNodeId
|
|
4204
4210
|
};
|
|
4205
4211
|
}
|
|
4206
|
-
function
|
|
4212
|
+
function ss(A, t = [], o = !0) {
|
|
4207
4213
|
const [e, n] = oA(
|
|
4208
4214
|
`accordion_${A}`,
|
|
4209
4215
|
t
|
|
4210
|
-
), s =
|
|
4216
|
+
), s = C((d) => {
|
|
4211
4217
|
n((u) => u.includes(d) ? u.filter((p) => p !== d) : o ? [...u, d] : [d]);
|
|
4212
|
-
}, [n, o]), a =
|
|
4218
|
+
}, [n, o]), a = C((d) => {
|
|
4213
4219
|
n((u) => u.includes(d) ? u : o ? [...u, d] : [d]);
|
|
4214
|
-
}, [n, o]), l =
|
|
4220
|
+
}, [n, o]), l = C((d) => {
|
|
4215
4221
|
n((u) => u.filter((p) => p !== d));
|
|
4216
|
-
}, [n]), i =
|
|
4222
|
+
}, [n]), i = C(() => n([]), [n]), h = C((d) => e.includes(d), [e]), c = C((d) => {
|
|
4217
4223
|
n(d === null ? [] : typeof d == "string" ? [d] : d);
|
|
4218
4224
|
}, [n]);
|
|
4219
4225
|
return {
|
|
@@ -4230,7 +4236,7 @@ function rs(A, t = [], o = !0) {
|
|
|
4230
4236
|
isExpanded: h
|
|
4231
4237
|
};
|
|
4232
4238
|
}
|
|
4233
|
-
function
|
|
4239
|
+
function ls(A, t = {}) {
|
|
4234
4240
|
const { debounceMs: o = 100 } = t, e = EA();
|
|
4235
4241
|
oe(() => {
|
|
4236
4242
|
if (!e || !A.current)
|
|
@@ -4254,8 +4260,8 @@ function ts(A, t = {}) {
|
|
|
4254
4260
|
};
|
|
4255
4261
|
}, [e, A, o]);
|
|
4256
4262
|
}
|
|
4257
|
-
function
|
|
4258
|
-
const t = Xe(), o = AA((l) => l.activeTabId), e = t.pathname + t.search, n = o === e, s =
|
|
4263
|
+
function as(A) {
|
|
4264
|
+
const t = Xe(), o = AA((l) => l.activeTabId), e = t.pathname + t.search, n = o === e, s = Z(n), a = Z(!0);
|
|
4259
4265
|
return oe(() => {
|
|
4260
4266
|
if (a.current) {
|
|
4261
4267
|
a.current = !1, s.current = n;
|
|
@@ -4264,12 +4270,12 @@ function os(A) {
|
|
|
4264
4270
|
n && !s.current && A && A(), s.current = n;
|
|
4265
4271
|
}, [n, A]), n;
|
|
4266
4272
|
}
|
|
4267
|
-
function
|
|
4268
|
-
const t = EA(), o = `drawer_${A}_open`, e = `drawer_${A}_data`, n =
|
|
4273
|
+
function is(A) {
|
|
4274
|
+
const t = EA(), o = `drawer_${A}_open`, e = `drawer_${A}_data`, n = Z(!1), s = Z(null), a = t ? t.getState().customState[o] ?? !1 : n.current, l = t ? t.getState().customState[e] ?? null : s.current, i = C((d) => {
|
|
4269
4275
|
t ? (d !== void 0 && t.getState().setCustomState(e, d), t.getState().setCustomState(o, !0)) : (d !== void 0 && (s.current = d), n.current = !0);
|
|
4270
|
-
}, [t, o, e]), h =
|
|
4276
|
+
}, [t, o, e]), h = C(() => {
|
|
4271
4277
|
t ? t.getState().setCustomState(o, !1) : n.current = !1;
|
|
4272
|
-
}, [t, o]), c =
|
|
4278
|
+
}, [t, o]), c = C(() => {
|
|
4273
4279
|
t ? (t.getState().setCustomState(o, !1), t.getState().clearCustomState(e)) : (n.current = !1, s.current = null);
|
|
4274
4280
|
}, [t, o, e]);
|
|
4275
4281
|
return {
|
|
@@ -4280,89 +4286,89 @@ function ns(A) {
|
|
|
4280
4286
|
closeAndClear: c
|
|
4281
4287
|
};
|
|
4282
4288
|
}
|
|
4283
|
-
const
|
|
4289
|
+
const cs = ({
|
|
4284
4290
|
routes: A,
|
|
4285
4291
|
fallback: t,
|
|
4286
4292
|
getTabId: o = (e, n) => e + n
|
|
4287
4293
|
}) => {
|
|
4288
4294
|
const e = Xe(), n = o(e.pathname, e.search);
|
|
4289
|
-
return /* @__PURE__ */ r(
|
|
4295
|
+
return /* @__PURE__ */ r(ln, { tabId: n, children: /* @__PURE__ */ R(tr, { children: [
|
|
4290
4296
|
A.map(({ path: s, element: a }) => /* @__PURE__ */ r(Ke, { path: s, element: a }, s)),
|
|
4291
4297
|
t && /* @__PURE__ */ r(Ke, { path: "*", element: /* @__PURE__ */ r(Pe, { children: t }) })
|
|
4292
4298
|
] }) }, n);
|
|
4293
4299
|
};
|
|
4294
4300
|
export {
|
|
4295
4301
|
rA as ArchbaseAdminLayoutContext,
|
|
4296
|
-
|
|
4297
|
-
|
|
4298
|
-
|
|
4299
|
-
|
|
4300
|
-
|
|
4301
|
-
|
|
4302
|
-
|
|
4303
|
-
|
|
4304
|
-
|
|
4305
|
-
|
|
4306
|
-
|
|
4307
|
-
|
|
4302
|
+
Dn as ArchbaseAdminLayoutFooter,
|
|
4303
|
+
Nn as ArchbaseAdminLayoutHeader,
|
|
4304
|
+
Bt as ArchbaseAdminLayoutProvider,
|
|
4305
|
+
Yn as ArchbaseAdminMainLayout,
|
|
4306
|
+
Xn as ArchbaseAdminTabContainer,
|
|
4307
|
+
Ao as ArchbaseAdvancedSidebar,
|
|
4308
|
+
Qo as ArchbaseAliveAbleRoutes,
|
|
4309
|
+
Ut as ArchbaseChangeLanguageAction,
|
|
4310
|
+
Yt as ArchbaseColorSchemeAction,
|
|
4311
|
+
_n as ArchbaseDrawerContent,
|
|
4312
|
+
Wn as ArchbaseDrawerTrigger,
|
|
4313
|
+
qt as ArchbaseHeaderNavAction,
|
|
4308
4314
|
eA as ArchbaseKeepAliveRoute,
|
|
4309
|
-
|
|
4310
|
-
|
|
4311
|
-
|
|
4312
|
-
|
|
4313
|
-
|
|
4314
|
-
|
|
4315
|
-
|
|
4315
|
+
po as ArchbaseMantineSidebar,
|
|
4316
|
+
Zn as ArchbaseMyProfileModal,
|
|
4317
|
+
Sr as ArchbaseNavigationContext,
|
|
4318
|
+
qn as ArchbaseNavigationProvider,
|
|
4319
|
+
cs as ArchbaseStatefulRoutes,
|
|
4320
|
+
Xt as CommandPaletteButton,
|
|
4321
|
+
Do as KeepAliveCacheProvider,
|
|
4316
4322
|
xA as MantineSidebarErrorMessage,
|
|
4317
|
-
|
|
4323
|
+
so as MantineSidebarGroupsSkeleton,
|
|
4318
4324
|
kA as MantineSidebarMenuSkeleton,
|
|
4319
|
-
|
|
4320
|
-
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4325
|
+
uo as MinimalSidebar,
|
|
4326
|
+
Fo as NavigationProgressProvider,
|
|
4327
|
+
fo as RailSidebar,
|
|
4328
|
+
Kn as SidebarBadge,
|
|
4329
|
+
KA as SidebarErrorMessage,
|
|
4330
|
+
oo as SidebarGroup,
|
|
4331
|
+
no as SidebarGroupIcon,
|
|
4332
|
+
eo as SidebarGroupsSkeleton,
|
|
4333
|
+
Vn as SidebarHeaderSkeleton,
|
|
4334
|
+
Fn as SidebarIndicator,
|
|
4329
4335
|
$e as SidebarItem,
|
|
4330
|
-
|
|
4336
|
+
QA as SidebarMenuSkeleton,
|
|
4331
4337
|
CA as SidebarProvider,
|
|
4332
|
-
|
|
4333
|
-
|
|
4334
|
-
|
|
4335
|
-
|
|
4336
|
-
|
|
4337
|
-
|
|
4338
|
-
|
|
4339
|
-
|
|
4340
|
-
|
|
4341
|
-
|
|
4342
|
-
|
|
4343
|
-
|
|
4344
|
-
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
|
|
4348
|
-
|
|
4349
|
-
|
|
4350
|
-
|
|
4338
|
+
$n as SidebarSearch,
|
|
4339
|
+
On as SidebarSection,
|
|
4340
|
+
Qn as SidebarUserProfile,
|
|
4341
|
+
Gn as SidebarUserProfileSkeleton,
|
|
4342
|
+
ao as StandardSidebar,
|
|
4343
|
+
ln as TabStoreProvider,
|
|
4344
|
+
sn as createTabStore,
|
|
4345
|
+
Jt as defaultAvatar,
|
|
4346
|
+
nn as defaultMyProfileModalOptions,
|
|
4347
|
+
Jn as navigationDataSample,
|
|
4348
|
+
ss as useArchbaseAccordionState,
|
|
4349
|
+
es as useArchbaseAdminStore,
|
|
4350
|
+
on as useArchbaseDrawer,
|
|
4351
|
+
is as useArchbaseDrawerState,
|
|
4352
|
+
os as useArchbaseGridState,
|
|
4353
|
+
kr as useArchbaseNavigationContext,
|
|
4354
|
+
jn as useArchbaseNavigationListener,
|
|
4355
|
+
Un as useArchbaseRouteParams,
|
|
4356
|
+
ls as useArchbaseScrollRestore,
|
|
4351
4357
|
oA as useArchbaseState,
|
|
4352
|
-
|
|
4353
|
-
|
|
4354
|
-
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4358
|
+
ts as useArchbaseStateNamed,
|
|
4359
|
+
as as useArchbaseTabActive,
|
|
4360
|
+
ns as useArchbaseTreeState,
|
|
4361
|
+
Mo as useKeepAliveCache,
|
|
4362
|
+
Bn as useKeepAliveVisibility,
|
|
4363
|
+
wr as useNavigationProgress,
|
|
4364
|
+
Hn as useParams,
|
|
4359
4365
|
vA as useSidebar,
|
|
4360
4366
|
SA as useSidebarKeyboard,
|
|
4361
4367
|
wA as useSidebarNavigation,
|
|
4362
|
-
|
|
4363
|
-
|
|
4368
|
+
zn as useSidebarOptional,
|
|
4369
|
+
ro as useSidebarSearch,
|
|
4364
4370
|
AA as useTabRegistryStore,
|
|
4365
|
-
|
|
4366
|
-
|
|
4371
|
+
As as useTabStore,
|
|
4372
|
+
rs as useTabStoreApi,
|
|
4367
4373
|
EA as useTabStoreOptional
|
|
4368
4374
|
};
|