@archbase/admin 3.0.10 → 3.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +1439 -1427
- package/package.json +11 -11
- package/dist/archbase-admin-3.0.10.tgz +0 -0
package/dist/index.js
CHANGED
|
@@ -1,62 +1,62 @@
|
|
|
1
|
-
import { jsx as A, jsxs as
|
|
2
|
-
import
|
|
3
|
-
import { useArchbaseSecurityManager as
|
|
4
|
-
import { useUncontrolled as
|
|
5
|
-
import { Flex as
|
|
6
|
-
import { IconSun as
|
|
7
|
-
import { useArchbaseAppContext as
|
|
8
|
-
import { BRFlag as
|
|
9
|
-
import { spotlight as
|
|
10
|
-
import { useNavigate as
|
|
11
|
-
import { Routes as
|
|
12
|
-
import { useMediaQuery as
|
|
13
|
-
import { useArchbaseNavigateParams as
|
|
14
|
-
import { SubMenu as
|
|
15
|
-
import
|
|
16
|
-
import { ArchbaseAdvancedTabs as
|
|
17
|
-
import { useArchbaseStore as
|
|
18
|
-
import { ArchbaseFormModalTemplate as
|
|
19
|
-
import { create as
|
|
20
|
-
const
|
|
1
|
+
import { jsx as A, jsxs as L, Fragment as wA } from "react/jsx-runtime";
|
|
2
|
+
import bA, { useState as fA, useRef as mA, useEffect as iA, useMemo as uA, useContext as SA, useCallback as F, createContext as FA, useLayoutEffect as GA, useReducer as Fe } from "react";
|
|
3
|
+
import { useArchbaseSecurityManager as qe } from "@archbase/security";
|
|
4
|
+
import { useUncontrolled as JA, useMediaQuery as ge, useHotkeys as He, useDisclosure as Ve, useFocusTrap as Ye, useForceUpdate as Ke } from "@mantine/hooks";
|
|
5
|
+
import { Flex as BA, useMantineColorScheme as oA, Menu as AA, ActionIcon as RA, Group as vA, Tooltip as xA, Button as je, ScrollArea as TA, Badge as re, Center as VA, Image as Xe, useMantineTheme as pA, px as aA, Burger as Je, Box as G, Avatar as WA, Text as zA, Stack as _, Skeleton as cA, Paper as We, NavLink as be, Kbd as ve, UnstyledButton as ZA, Collapse as Ze, TextInput as xe, Indicator as _e, Transition as Ar, Divider as _A, AppShell as QA, Drawer as Se } from "@mantine/core";
|
|
6
|
+
import { IconSun as Ie, IconMoonStars as Ee, IconTerminal as er, IconSearch as YA, IconAlertCircle as rr, IconDots as Re, IconChevronRight as oe, IconChevronDown as or, IconX as Le, IconChevronLeft as nr, IconHome2 as tr, IconDashboard as sr, IconUsers as lr, IconListSearch as De, IconUserPlus as ir, IconNews as ar, IconFilePlus as cr, IconSettings as dr } from "@tabler/icons-react";
|
|
7
|
+
import { useArchbaseAppContext as ne, getI18nextInstance as Z, useArchbaseTranslation as te, archbaseI18next as yA, useArchbaseValidator as ur, ARCHBASE_IOC_API_TYPE as hr } from "@archbase/core";
|
|
8
|
+
import { BRFlag as UA, USFlag as Te, ESFlag as Ae, VEFlag as fr, UYFlag as pr, SVFlag as gr, PYFlag as br, PEFlag as mr, PAFlag as Cr, NIFlag as kr, MXFlag as yr, HNFlag as wr, GTFlag as vr, ECFlag as xr, DOFlag as Sr, CUFlag as Ir, CRFlag as Er, COFlag as Rr, CLFlag as Lr, BOFlag as Dr, ARFlag as Tr } from "mantine-flagpack";
|
|
9
|
+
import { spotlight as zr, Spotlight as NA } from "@mantine/spotlight";
|
|
10
|
+
import { useNavigate as qA, useLocation as HA, matchPath as me } from "react-router";
|
|
11
|
+
import { Routes as ze, useParams as Pr, useLocation as se, matchPath as Mr, Route as ee, useSearchParams as Pe, useNavigate as Or } from "react-router-dom";
|
|
12
|
+
import { useMediaQuery as $r } from "usehooks-ts";
|
|
13
|
+
import { useArchbaseNavigateParams as Qr, useArchbaseVisible as Nr, ArchbaseNotifications as Gr, ArchbaseAvatarEdit as Ur, ArchbaseEdit as XA } from "@archbase/components";
|
|
14
|
+
import { SubMenu as Br, MenuItem as Ce, menuClasses as X, Sidebar as Me, Menu as Oe, sidebarClasses as $e } from "react-pro-sidebar";
|
|
15
|
+
import Fr from "@rehooks/component-size";
|
|
16
|
+
import { ArchbaseAdvancedTabs as qr } from "@archbase/layout";
|
|
17
|
+
import { useArchbaseStore as Hr, useArchbaseRemoteServiceApi as Vr, useArchbaseRemoteDataSource as Yr } from "@archbase/data";
|
|
18
|
+
import { ArchbaseFormModalTemplate as Kr } from "@archbase/template";
|
|
19
|
+
import { create as jr } from "zustand";
|
|
20
|
+
const jA = bA.createContext({}), Xr = ({
|
|
21
21
|
navigationData: e,
|
|
22
|
-
user:
|
|
23
|
-
owner:
|
|
24
|
-
company:
|
|
25
|
-
navigationRootLink:
|
|
26
|
-
children:
|
|
27
|
-
enableSecurity:
|
|
22
|
+
user: o,
|
|
23
|
+
owner: s,
|
|
24
|
+
company: r,
|
|
25
|
+
navigationRootLink: t,
|
|
26
|
+
children: a,
|
|
27
|
+
enableSecurity: i,
|
|
28
28
|
securityOptions: n,
|
|
29
29
|
onNavigationDataChange: c,
|
|
30
30
|
initialSidebarCollapsed: l
|
|
31
31
|
}) => {
|
|
32
|
-
const [u, d] =
|
|
32
|
+
const [u, d] = fA(l), [h, f] = fA(!1), [y, w] = fA(() => i === !0), [m, p] = fA(null), g = mA(!1), [S, v] = JA({
|
|
33
33
|
value: c !== void 0 ? e : void 0,
|
|
34
|
-
defaultValue:
|
|
34
|
+
defaultValue: i ? [] : e,
|
|
35
35
|
finalValue: [],
|
|
36
36
|
onChange: c
|
|
37
37
|
});
|
|
38
38
|
iA(() => {
|
|
39
|
-
}, [S,
|
|
40
|
-
const { securityManager: C } =
|
|
39
|
+
}, [S, i]);
|
|
40
|
+
const { securityManager: C } = qe({
|
|
41
41
|
resourceName: n?.navigationResourceName ? n.navigationResourceName : "ArchbaseAdvancedSidebar",
|
|
42
42
|
resourceDescription: n?.navigationResourceDescription ? n.navigationResourceDescription : "archbase:Navegação",
|
|
43
|
-
enableSecurity:
|
|
43
|
+
enableSecurity: i
|
|
44
44
|
});
|
|
45
45
|
return iA(() => {
|
|
46
46
|
g.current = !1;
|
|
47
|
-
}, [
|
|
48
|
-
if (!
|
|
47
|
+
}, [o?.id]), iA(() => {
|
|
48
|
+
if (!i) {
|
|
49
49
|
w(!1);
|
|
50
50
|
return;
|
|
51
51
|
}
|
|
52
52
|
if (g.current)
|
|
53
53
|
return;
|
|
54
|
-
e.filter((
|
|
55
|
-
C.registerAction(
|
|
54
|
+
e.filter(($) => $.showInSidebar).forEach(($) => {
|
|
55
|
+
C.registerAction($.label, $.label), $?.links?.forEach((T) => C.registerAction(`${$.label} -> ${T.label}`, `${$.label} -> ${T.label}`));
|
|
56
56
|
});
|
|
57
|
-
const
|
|
57
|
+
const Q = () => {
|
|
58
58
|
g.current = !0;
|
|
59
|
-
const
|
|
59
|
+
const $ = e.map((T) => ({
|
|
60
60
|
...T,
|
|
61
61
|
disabled: !C.hasPermission(T.label),
|
|
62
62
|
links: T.links && T.links.map((x) => {
|
|
@@ -67,44 +67,44 @@ const VA = gA.createContext({}), Vr = ({
|
|
|
67
67
|
};
|
|
68
68
|
})
|
|
69
69
|
}));
|
|
70
|
-
v(
|
|
71
|
-
},
|
|
70
|
+
v($), w(!1), p(null);
|
|
71
|
+
}, K = !C.isLoading() && !C.isError();
|
|
72
72
|
if (C.isError()) {
|
|
73
73
|
g.current = !0;
|
|
74
|
-
const
|
|
75
|
-
p(
|
|
74
|
+
const $ = C.getError() || "Erro ao carregar permissões de navegação";
|
|
75
|
+
p($), w(!1), v(e);
|
|
76
76
|
return;
|
|
77
77
|
}
|
|
78
|
-
if (
|
|
79
|
-
|
|
78
|
+
if (K) {
|
|
79
|
+
Q();
|
|
80
80
|
return;
|
|
81
81
|
}
|
|
82
82
|
w(!0), p(null);
|
|
83
83
|
let D = !1;
|
|
84
|
-
const
|
|
84
|
+
const O = setInterval(() => {
|
|
85
85
|
if (!D && C.isError()) {
|
|
86
|
-
clearInterval(
|
|
87
|
-
const
|
|
88
|
-
p(
|
|
86
|
+
clearInterval(O), g.current = !0;
|
|
87
|
+
const $ = C.getError() || "Erro ao carregar permissões de navegação";
|
|
88
|
+
p($), w(!1), v(e);
|
|
89
89
|
}
|
|
90
|
-
}, 100),
|
|
91
|
-
D || (clearInterval(
|
|
90
|
+
}, 100), B = setTimeout(() => {
|
|
91
|
+
D || (clearInterval(O), w(($) => $ && (g.current = !0, console.warn("[ArchbaseAdminLayout] Timeout ao carregar permissões - carregando menu sem filtro de segurança"), v(e), !1)));
|
|
92
92
|
}, 3e3);
|
|
93
93
|
return C.apply(() => {
|
|
94
|
-
D || (clearInterval(
|
|
94
|
+
D || (clearInterval(O), clearTimeout(B), Q());
|
|
95
95
|
}), () => {
|
|
96
|
-
D = !0, clearInterval(
|
|
96
|
+
D = !0, clearInterval(O), clearTimeout(B);
|
|
97
97
|
};
|
|
98
|
-
}, [
|
|
99
|
-
|
|
98
|
+
}, [o?.id, i, e, C, v]), /* @__PURE__ */ A(
|
|
99
|
+
jA.Provider,
|
|
100
100
|
{
|
|
101
101
|
value: {
|
|
102
102
|
navigationData: S,
|
|
103
103
|
setNavigationData: v,
|
|
104
|
-
user:
|
|
105
|
-
owner:
|
|
106
|
-
company:
|
|
107
|
-
navigationRootLink:
|
|
104
|
+
user: o,
|
|
105
|
+
owner: s,
|
|
106
|
+
company: r,
|
|
107
|
+
navigationRootLink: t,
|
|
108
108
|
collapsed: u,
|
|
109
109
|
setCollapsed: d,
|
|
110
110
|
hidden: h,
|
|
@@ -113,107 +113,107 @@ const VA = gA.createContext({}), Vr = ({
|
|
|
113
113
|
isLoadingPermissions: y,
|
|
114
114
|
permissionsError: m
|
|
115
115
|
},
|
|
116
|
-
children:
|
|
116
|
+
children: a
|
|
117
117
|
}
|
|
118
118
|
);
|
|
119
|
-
},
|
|
120
|
-
const e =
|
|
119
|
+
}, dn = ({ children: e }) => /* @__PURE__ */ A(BA, { align: "center", direction: "row", wrap: "wrap", h: "100%", children: e }), Jr = () => {
|
|
120
|
+
const e = ne(), { colorScheme: o } = oA(), s = o === "dark", [r, t] = fA(Z().language);
|
|
121
121
|
iA(() => {
|
|
122
122
|
const c = (l) => {
|
|
123
|
-
|
|
123
|
+
t(l);
|
|
124
124
|
};
|
|
125
|
-
return
|
|
126
|
-
|
|
125
|
+
return Z().on("languageChanged", c), () => {
|
|
126
|
+
Z().off("languageChanged", c);
|
|
127
127
|
};
|
|
128
128
|
}, []);
|
|
129
|
-
const
|
|
129
|
+
const a = (c) => {
|
|
130
130
|
if (!c)
|
|
131
|
-
return /* @__PURE__ */ A(
|
|
131
|
+
return /* @__PURE__ */ A(UA, { size: 24 });
|
|
132
132
|
if (c === "en" || c === "en-US")
|
|
133
|
-
return /* @__PURE__ */ A(
|
|
133
|
+
return /* @__PURE__ */ A(Te, { size: 24 });
|
|
134
134
|
if (c === "pt-BR")
|
|
135
|
-
return /* @__PURE__ */ A(
|
|
135
|
+
return /* @__PURE__ */ A(UA, { size: 24 });
|
|
136
136
|
if (c.includes("es"))
|
|
137
137
|
switch (navigator.language || navigator.languages[0]) {
|
|
138
138
|
case "es":
|
|
139
139
|
case "es-ES":
|
|
140
|
-
return /* @__PURE__ */ A(
|
|
140
|
+
return /* @__PURE__ */ A(Ae, { size: 24 });
|
|
141
141
|
case "es-AR":
|
|
142
|
-
return /* @__PURE__ */ A(
|
|
142
|
+
return /* @__PURE__ */ A(Tr, { size: 24 });
|
|
143
143
|
case "es-BO":
|
|
144
|
-
return /* @__PURE__ */ A(
|
|
144
|
+
return /* @__PURE__ */ A(Dr, { size: 24 });
|
|
145
145
|
case "es-CL":
|
|
146
|
-
return /* @__PURE__ */ A(
|
|
146
|
+
return /* @__PURE__ */ A(Lr, { size: 24 });
|
|
147
147
|
case "es-CO":
|
|
148
|
-
return /* @__PURE__ */ A(
|
|
148
|
+
return /* @__PURE__ */ A(Rr, { size: 24 });
|
|
149
149
|
case "es-CR":
|
|
150
|
-
return /* @__PURE__ */ A(
|
|
150
|
+
return /* @__PURE__ */ A(Er, { size: 24 });
|
|
151
151
|
case "es-CU":
|
|
152
|
-
return /* @__PURE__ */ A(
|
|
152
|
+
return /* @__PURE__ */ A(Ir, { size: 24 });
|
|
153
153
|
case "es-DO":
|
|
154
|
-
return /* @__PURE__ */ A(
|
|
154
|
+
return /* @__PURE__ */ A(Sr, { size: 24 });
|
|
155
155
|
case "es-EC":
|
|
156
|
-
return /* @__PURE__ */ A(
|
|
156
|
+
return /* @__PURE__ */ A(xr, { size: 24 });
|
|
157
157
|
case "es-GT":
|
|
158
|
-
return /* @__PURE__ */ A(
|
|
158
|
+
return /* @__PURE__ */ A(vr, { size: 24 });
|
|
159
159
|
case "es-HN":
|
|
160
|
-
return /* @__PURE__ */ A(
|
|
160
|
+
return /* @__PURE__ */ A(wr, { size: 24 });
|
|
161
161
|
case "es-MX":
|
|
162
|
-
return /* @__PURE__ */ A(
|
|
162
|
+
return /* @__PURE__ */ A(yr, { size: 24 });
|
|
163
163
|
case "es-NI":
|
|
164
|
-
return /* @__PURE__ */ A(
|
|
164
|
+
return /* @__PURE__ */ A(kr, { size: 24 });
|
|
165
165
|
case "es-PA":
|
|
166
|
-
return /* @__PURE__ */ A(
|
|
166
|
+
return /* @__PURE__ */ A(Cr, { size: 24 });
|
|
167
167
|
case "es-PE":
|
|
168
|
-
return /* @__PURE__ */ A(
|
|
168
|
+
return /* @__PURE__ */ A(mr, { size: 24 });
|
|
169
169
|
case "es-PY":
|
|
170
|
-
return /* @__PURE__ */ A(
|
|
170
|
+
return /* @__PURE__ */ A(br, { size: 24 });
|
|
171
171
|
case "es-SV":
|
|
172
|
-
return /* @__PURE__ */ A(
|
|
172
|
+
return /* @__PURE__ */ A(gr, { size: 24 });
|
|
173
173
|
case "es-UY":
|
|
174
|
-
return /* @__PURE__ */ A(
|
|
174
|
+
return /* @__PURE__ */ A(pr, { size: 24 });
|
|
175
175
|
case "es-VE":
|
|
176
|
-
return /* @__PURE__ */ A(
|
|
176
|
+
return /* @__PURE__ */ A(fr, { size: 24 });
|
|
177
177
|
default:
|
|
178
|
-
return /* @__PURE__ */ A(
|
|
178
|
+
return /* @__PURE__ */ A(Ae, { size: 24 });
|
|
179
179
|
}
|
|
180
|
-
return /* @__PURE__ */ A(
|
|
181
|
-
},
|
|
180
|
+
return /* @__PURE__ */ A(UA, { size: 24 });
|
|
181
|
+
}, i = () => {
|
|
182
182
|
if (e.languages)
|
|
183
183
|
return e.languages.filter((c) => c).map((c) => /* @__PURE__ */ A(
|
|
184
184
|
AA.Item,
|
|
185
185
|
{
|
|
186
186
|
onClick: () => n(c.lang),
|
|
187
|
-
leftSection:
|
|
187
|
+
leftSection: a(c.lang),
|
|
188
188
|
children: c.name
|
|
189
189
|
},
|
|
190
190
|
c.name
|
|
191
191
|
));
|
|
192
192
|
}, n = (c) => {
|
|
193
|
-
|
|
193
|
+
Z().changeLanguage(c);
|
|
194
194
|
};
|
|
195
|
-
return /* @__PURE__ */
|
|
196
|
-
/* @__PURE__ */ A(AA.Target, { children: /* @__PURE__ */ A(
|
|
197
|
-
/* @__PURE__ */ A(AA.Dropdown, { children:
|
|
195
|
+
return /* @__PURE__ */ L(AA, { shadow: "md", width: 200, position: "bottom-end", children: [
|
|
196
|
+
/* @__PURE__ */ A(AA.Target, { children: /* @__PURE__ */ A(RA, { variant: "transparent", color: s ? "white" : "blue", title: Z().t("toggleLanguage"), children: a(r) }) }),
|
|
197
|
+
/* @__PURE__ */ A(AA.Dropdown, { children: i() })
|
|
198
198
|
] });
|
|
199
|
-
},
|
|
200
|
-
const e =
|
|
199
|
+
}, Wr = () => {
|
|
200
|
+
const e = ne(), { colorScheme: o } = oA(), { t: s, i18n: r } = te(), t = (n) => n === "en" ? /* @__PURE__ */ A(Te, { size: 24 }) : n === "pt-BR" ? /* @__PURE__ */ A(UA, { size: 24 }) : n === "es" ? /* @__PURE__ */ A(Ae, { size: 24 }) : /* @__PURE__ */ A(UA, { size: 24 }), a = () => {
|
|
201
201
|
if (e.languages)
|
|
202
202
|
return e.languages.filter((n) => n).map((n) => /* @__PURE__ */ A(
|
|
203
203
|
AA.Item,
|
|
204
204
|
{
|
|
205
|
-
onClick: () =>
|
|
206
|
-
leftSection:
|
|
205
|
+
onClick: () => i(n.lang),
|
|
206
|
+
leftSection: t(n.lang),
|
|
207
207
|
children: n.name
|
|
208
208
|
},
|
|
209
209
|
n.name
|
|
210
210
|
));
|
|
211
|
-
},
|
|
212
|
-
|
|
211
|
+
}, i = (n) => {
|
|
212
|
+
r.changeLanguage(n);
|
|
213
213
|
};
|
|
214
|
-
return /* @__PURE__ */
|
|
215
|
-
/* @__PURE__ */ A(AA.Target, { children: /* @__PURE__ */
|
|
216
|
-
|
|
214
|
+
return /* @__PURE__ */ L(AA, { children: [
|
|
215
|
+
/* @__PURE__ */ A(AA.Target, { children: /* @__PURE__ */ L(
|
|
216
|
+
vA,
|
|
217
217
|
{
|
|
218
218
|
w: "100%",
|
|
219
219
|
justify: "flex-start",
|
|
@@ -222,49 +222,49 @@ const VA = gA.createContext({}), Vr = ({
|
|
|
222
222
|
variant: "transparent",
|
|
223
223
|
fw: 400,
|
|
224
224
|
gap: 4,
|
|
225
|
-
title:
|
|
225
|
+
title: Z().t("archbase:toggleLanguage"),
|
|
226
226
|
children: [
|
|
227
|
-
|
|
228
|
-
`${e.languages.find((n) => n.lang ===
|
|
227
|
+
t(r.language),
|
|
228
|
+
`${e.languages.find((n) => n.lang === r.language)?.name ?? "Português"}`
|
|
229
229
|
]
|
|
230
230
|
}
|
|
231
231
|
) }),
|
|
232
|
-
/* @__PURE__ */ A(AA.Dropdown, { children:
|
|
232
|
+
/* @__PURE__ */ A(AA.Dropdown, { children: a() })
|
|
233
233
|
] });
|
|
234
|
-
},
|
|
234
|
+
}, Zr = ({
|
|
235
235
|
toggleColorScheme: e,
|
|
236
|
-
sunColor:
|
|
237
|
-
moonColor:
|
|
236
|
+
sunColor: o = "white",
|
|
237
|
+
moonColor: s = "blue"
|
|
238
238
|
}) => {
|
|
239
|
-
const { t:
|
|
240
|
-
e ? e() :
|
|
241
|
-
}, n =
|
|
239
|
+
const { t: r } = te(), { colorScheme: t, toggleColorScheme: a } = oA(), i = () => {
|
|
240
|
+
e ? e() : a();
|
|
241
|
+
}, n = t === "dark";
|
|
242
242
|
return /* @__PURE__ */ A(
|
|
243
|
-
|
|
243
|
+
RA,
|
|
244
244
|
{
|
|
245
245
|
variant: "transparent",
|
|
246
|
-
color: n ?
|
|
247
|
-
onClick: () =>
|
|
248
|
-
title:
|
|
249
|
-
children: n ? /* @__PURE__ */ A(
|
|
246
|
+
color: n ? o : s,
|
|
247
|
+
onClick: () => i(),
|
|
248
|
+
title: Z().t("archbase:toggleColorScheme"),
|
|
249
|
+
children: n ? /* @__PURE__ */ A(Ie, { size: "1.5rem" }) : /* @__PURE__ */ A(Ee, { size: "1.5rem" })
|
|
250
250
|
}
|
|
251
251
|
);
|
|
252
|
-
},
|
|
253
|
-
function
|
|
252
|
+
}, _r = (e) => /* @__PURE__ */ A(vA, { gap: "sm", children: e.children });
|
|
253
|
+
function Ao({ category: e, label: o, color: s, description: r, image: t, onClick: a }) {
|
|
254
254
|
return /* @__PURE__ */ A(
|
|
255
|
-
|
|
255
|
+
NA.Action,
|
|
256
256
|
{
|
|
257
|
-
onClick:
|
|
258
|
-
label: `${
|
|
259
|
-
description:
|
|
260
|
-
leftSection:
|
|
261
|
-
rightSection: e ? /* @__PURE__ */ A(
|
|
257
|
+
onClick: a,
|
|
258
|
+
label: `${Z().t(o || "")}`,
|
|
259
|
+
description: r ? Z().t(r) : void 0,
|
|
260
|
+
leftSection: t ? /* @__PURE__ */ A(VA, { children: /* @__PURE__ */ A(Xe, { src: t, alt: Z().t(o || ""), width: 24, height: 24 }) }) : void 0,
|
|
261
|
+
rightSection: e ? /* @__PURE__ */ A(re, { color: s, size: "sm", children: Z().t(e) }) : void 0
|
|
262
262
|
},
|
|
263
|
-
|
|
263
|
+
o
|
|
264
264
|
);
|
|
265
265
|
}
|
|
266
|
-
const
|
|
267
|
-
const [
|
|
266
|
+
const eo = ({ navigationData: e, color: o }) => {
|
|
267
|
+
const [s, r] = fA(""), t = qA(), { t: a } = te(), i = uA(() => {
|
|
268
268
|
const c = new Array();
|
|
269
269
|
return e.forEach((l) => {
|
|
270
270
|
l.links ? l.links.forEach((u) => {
|
|
@@ -275,13 +275,13 @@ const Wr = ({ navigationData: e, color: r }) => {
|
|
|
275
275
|
label: u.label,
|
|
276
276
|
link: u.link,
|
|
277
277
|
onClick: () => {
|
|
278
|
-
u.link &&
|
|
278
|
+
u.link && t(u.link);
|
|
279
279
|
}
|
|
280
280
|
});
|
|
281
281
|
}) : !l.disabled && l.showInSidebar && c.push({
|
|
282
282
|
id: l.label,
|
|
283
283
|
onClick: () => {
|
|
284
|
-
l.link &&
|
|
284
|
+
l.link && t(l.link);
|
|
285
285
|
},
|
|
286
286
|
category: l.category ? l.category.toUpperCase() : "",
|
|
287
287
|
color: l.color,
|
|
@@ -289,33 +289,33 @@ const Wr = ({ navigationData: e, color: r }) => {
|
|
|
289
289
|
link: l.link
|
|
290
290
|
});
|
|
291
291
|
}), c;
|
|
292
|
-
}, [e,
|
|
293
|
-
const l = `${
|
|
294
|
-
return l && l.toLowerCase().includes(
|
|
295
|
-
}).map((c) => /* @__PURE__ */ A(
|
|
296
|
-
return /* @__PURE__ */ A(
|
|
297
|
-
/* @__PURE__ */ A(
|
|
298
|
-
/* @__PURE__ */
|
|
299
|
-
|
|
292
|
+
}, [e, t]), n = i.filter((c) => {
|
|
293
|
+
const l = `${a(c.label || "")}`;
|
|
294
|
+
return l && l.toLowerCase().includes(s.toLowerCase().trim());
|
|
295
|
+
}).map((c) => /* @__PURE__ */ A(Ao, { ...c }, c.id));
|
|
296
|
+
return /* @__PURE__ */ A(wA, { children: i && i.length > 0 ? /* @__PURE__ */ L(wA, { children: [
|
|
297
|
+
/* @__PURE__ */ A(xA, { withinPortal: !0, withArrow: !0, label: `${a("archbase:Comandos ⌘M")}`, children: /* @__PURE__ */ A(je, { color: o, leftSection: /* @__PURE__ */ A(er, { size: "24px" }), onClick: () => zr.open() }) }),
|
|
298
|
+
/* @__PURE__ */ L(
|
|
299
|
+
NA.Root,
|
|
300
300
|
{
|
|
301
301
|
shortcut: ["mod + M", "/"],
|
|
302
|
-
onQueryChange: (c) =>
|
|
303
|
-
query:
|
|
302
|
+
onQueryChange: (c) => r(c),
|
|
303
|
+
query: s,
|
|
304
304
|
children: [
|
|
305
|
-
/* @__PURE__ */ A(
|
|
306
|
-
/* @__PURE__ */ A(
|
|
305
|
+
/* @__PURE__ */ A(NA.Search, { placeholder: `${a("archbase:Localizar...")}`, leftSection: /* @__PURE__ */ A(YA, { size: "1.2rem" }) }),
|
|
306
|
+
/* @__PURE__ */ A(TA.Autosize, { mah: "calc(100vh - 200px)", type: "scroll", scrollbarSize: 8, children: /* @__PURE__ */ A(NA.ActionsList, { children: n.length > 0 ? n : /* @__PURE__ */ A(NA.Empty, { children: Z().t("archbase:Nenhum resultado...") }) }) })
|
|
307
307
|
]
|
|
308
308
|
}
|
|
309
309
|
)
|
|
310
310
|
] }) : null });
|
|
311
|
-
},
|
|
311
|
+
}, ro = "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", un = ({
|
|
312
312
|
userMenuItems: e,
|
|
313
|
-
showUserMenuToggleColorScheme:
|
|
314
|
-
showUserMenuOptionsLabel:
|
|
315
|
-
userMenuToggleColorSchemeIconSize:
|
|
316
|
-
showMenuItemsAfterToggleColorScheme:
|
|
317
|
-
userMenuItemsAfterToggleColorScheme:
|
|
318
|
-
showMenuItemsBeforeToggleColorScheme:
|
|
313
|
+
showUserMenuToggleColorScheme: o = !0,
|
|
314
|
+
showUserMenuOptionsLabel: s = !0,
|
|
315
|
+
userMenuToggleColorSchemeIconSize: r = 14,
|
|
316
|
+
showMenuItemsAfterToggleColorScheme: t = !0,
|
|
317
|
+
userMenuItemsAfterToggleColorScheme: a,
|
|
318
|
+
showMenuItemsBeforeToggleColorScheme: i = !0,
|
|
319
319
|
userMenuItemsBeforeToggleColorScheme: n,
|
|
320
320
|
hideAutoHeaderActionsOnUserMenu: c = !0,
|
|
321
321
|
showHeaderActions: l = !0,
|
|
@@ -332,21 +332,21 @@ const Wr = ({ navigationData: e, color: r }) => {
|
|
|
332
332
|
headerLeftContent: v,
|
|
333
333
|
toggleColorScheme: C,
|
|
334
334
|
logoLeftSection: P,
|
|
335
|
-
logoRightSection:
|
|
336
|
-
showBurger:
|
|
335
|
+
logoRightSection: Q,
|
|
336
|
+
showBurger: K = !0,
|
|
337
337
|
showCommands: J = !0,
|
|
338
338
|
sunColor: D,
|
|
339
|
-
moonColor:
|
|
340
|
-
styles:
|
|
339
|
+
moonColor: O,
|
|
340
|
+
styles: B
|
|
341
341
|
}) => {
|
|
342
|
-
const
|
|
343
|
-
`(max-width: ${S ?
|
|
344
|
-
), q =
|
|
345
|
-
`(max-width: ${d ?
|
|
342
|
+
const $ = pA(), { colorScheme: T, toggleColorScheme: x } = oA(), I = SA(jA), V = ge(
|
|
343
|
+
`(max-width: ${S ? aA(S) : $.breakpoints.md})`
|
|
344
|
+
), q = ge(
|
|
345
|
+
`(max-width: ${d ? aA(d) : $.breakpoints.md})`
|
|
346
346
|
);
|
|
347
347
|
let k = !1, b = !1;
|
|
348
|
-
return c && (l = !q, u = !q,
|
|
349
|
-
/* @__PURE__ */
|
|
348
|
+
return c && (l = !q, u = !q, o = q, s = q, i = q, h = q, g && (b = !q, k = q)), /* @__PURE__ */ L(wA, { children: [
|
|
349
|
+
/* @__PURE__ */ L(BA, { style: { width: 300, height: 50 }, align: "center", children: [
|
|
350
350
|
P,
|
|
351
351
|
/* @__PURE__ */ A(
|
|
352
352
|
"img",
|
|
@@ -359,34 +359,34 @@ const Wr = ({ navigationData: e, color: r }) => {
|
|
|
359
359
|
src: w
|
|
360
360
|
}
|
|
361
361
|
),
|
|
362
|
-
|
|
362
|
+
Q
|
|
363
363
|
] }),
|
|
364
|
-
|
|
365
|
-
|
|
364
|
+
K && /* @__PURE__ */ A(
|
|
365
|
+
Je,
|
|
366
366
|
{
|
|
367
367
|
opened: I.hidden ? I.hidden : !1,
|
|
368
368
|
onClick: () => I.setHidden(!I.hidden),
|
|
369
369
|
size: "sm",
|
|
370
|
-
color:
|
|
370
|
+
color: $.colors.gray[7],
|
|
371
371
|
mx: { base: "xs", xs: "lg", sm: "xl" },
|
|
372
|
-
display:
|
|
372
|
+
display: V ? "" : "none"
|
|
373
373
|
}
|
|
374
374
|
),
|
|
375
|
-
/* @__PURE__ */ A("div", { children: J && /* @__PURE__ */ A(
|
|
376
|
-
/* @__PURE__ */ A(
|
|
377
|
-
/* @__PURE__ */
|
|
375
|
+
/* @__PURE__ */ A("div", { children: J && /* @__PURE__ */ A(eo, { navigationData: y }) }),
|
|
376
|
+
/* @__PURE__ */ A(G, { style: { flex: 1 }, children: v }),
|
|
377
|
+
/* @__PURE__ */ L(_r, { children: [
|
|
378
378
|
l && m,
|
|
379
|
-
u && /* @__PURE__ */ A(
|
|
380
|
-
b && /* @__PURE__ */ A(
|
|
381
|
-
/* @__PURE__ */
|
|
382
|
-
/* @__PURE__ */ A(AA.Target, { children: /* @__PURE__ */
|
|
379
|
+
u && /* @__PURE__ */ A(Zr, { toggleColorScheme: C, sunColor: D, moonColor: O }),
|
|
380
|
+
b && /* @__PURE__ */ A(Jr, {}),
|
|
381
|
+
/* @__PURE__ */ L(AA, { shadow: "md", width: 200, position: "bottom-end", styles: B?.menu, children: [
|
|
382
|
+
/* @__PURE__ */ A(AA.Target, { children: /* @__PURE__ */ L("div", { children: [
|
|
383
383
|
/* @__PURE__ */ A(
|
|
384
|
-
|
|
384
|
+
WA,
|
|
385
385
|
{
|
|
386
386
|
style: { cursor: "pointer" },
|
|
387
387
|
radius: "xl",
|
|
388
388
|
ml: 8,
|
|
389
|
-
src: f ? f.photo :
|
|
389
|
+
src: f ? f.photo : ro,
|
|
390
390
|
alt: f ? f.displayName : ""
|
|
391
391
|
}
|
|
392
392
|
),
|
|
@@ -407,36 +407,36 @@ const Wr = ({ navigationData: e, color: r }) => {
|
|
|
407
407
|
borderRadius: 50,
|
|
408
408
|
backgroundColor: "green"
|
|
409
409
|
},
|
|
410
|
-
children: /* @__PURE__ */ A(
|
|
410
|
+
children: /* @__PURE__ */ A(zA, { size: "xs", c: "white", children: "A" })
|
|
411
411
|
}
|
|
412
412
|
) : null
|
|
413
413
|
] }) }),
|
|
414
|
-
/* @__PURE__ */
|
|
414
|
+
/* @__PURE__ */ L(AA.Dropdown, { children: [
|
|
415
415
|
e,
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
416
|
+
s && /* @__PURE__ */ A(AA.Label, { children: `${Z().t("archbase:Opções")}` }),
|
|
417
|
+
i && n,
|
|
418
|
+
o && /* @__PURE__ */ A(
|
|
419
419
|
AA.Item,
|
|
420
420
|
{
|
|
421
|
-
leftSection: T === "dark" ? /* @__PURE__ */ A(
|
|
421
|
+
leftSection: T === "dark" ? /* @__PURE__ */ A(Ie, { size: r }) : /* @__PURE__ */ A(Ee, { size: r }),
|
|
422
422
|
onClick: C || x,
|
|
423
|
-
children: `${
|
|
423
|
+
children: `${Z().t("archbase:toggleColorScheme")}`
|
|
424
424
|
}
|
|
425
425
|
),
|
|
426
|
-
k && /* @__PURE__ */ A(
|
|
426
|
+
k && /* @__PURE__ */ A(Wr, {}),
|
|
427
427
|
h && /* @__PURE__ */ A(AA.Divider, {}),
|
|
428
|
-
|
|
428
|
+
t && a
|
|
429
429
|
] })
|
|
430
430
|
] })
|
|
431
431
|
] })
|
|
432
432
|
] });
|
|
433
433
|
};
|
|
434
|
-
function
|
|
435
|
-
const u =
|
|
436
|
-
if (
|
|
437
|
-
if (!(
|
|
438
|
-
return /* @__PURE__ */ A(
|
|
439
|
-
|
|
434
|
+
function ke(e, o, s, r, t, a, i, n, c, l) {
|
|
435
|
+
const u = a ? e.colorScheme === "dark" ? e.colors[e.primaryColor][8] : e.colors[e.primaryColor][7] : void 0, d = a ? (e.colorScheme === "dark", e.colors[e.primaryColor][0]) : void 0, h = e.colorScheme === "dark" ? "#3e5e7e" : "#9fb6cf", f = "0.5";
|
|
436
|
+
if (r.links) {
|
|
437
|
+
if (!(r.disabled && r.hideDisabledItem))
|
|
438
|
+
return /* @__PURE__ */ A(xA, { disabled: !o, label: yA.t(r.label), children: /* @__PURE__ */ A(
|
|
439
|
+
Br,
|
|
440
440
|
{
|
|
441
441
|
rootStyles: {
|
|
442
442
|
fontSize: "16px",
|
|
@@ -451,7 +451,7 @@ function ge(e, r, t, o, s, i, a, n, c, l) {
|
|
|
451
451
|
}
|
|
452
452
|
},
|
|
453
453
|
[`.${X.subMenuContent}`]: {
|
|
454
|
-
width:
|
|
454
|
+
width: o && l
|
|
455
455
|
},
|
|
456
456
|
[`.${X.disabled}`]: {
|
|
457
457
|
opacity: f,
|
|
@@ -463,22 +463,22 @@ function ge(e, r, t, o, s, i, a, n, c, l) {
|
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
},
|
|
466
|
-
id:
|
|
467
|
-
icon:
|
|
468
|
-
defaultOpen: !
|
|
469
|
-
label:
|
|
470
|
-
disabled:
|
|
471
|
-
children:
|
|
472
|
-
|
|
466
|
+
id: r.label,
|
|
467
|
+
icon: r.icon,
|
|
468
|
+
defaultOpen: !r.disabled,
|
|
469
|
+
label: o ? "" : yA.t(r.label),
|
|
470
|
+
disabled: r.disabled,
|
|
471
|
+
children: r.links && r.links.filter((y) => y.showInSidebar === !0 && (!y.disabled || !y.hideDisabledItem)).map((y, w) => /* @__PURE__ */ A(
|
|
472
|
+
Ce,
|
|
473
473
|
{
|
|
474
|
-
onClick: () =>
|
|
474
|
+
onClick: () => s(y),
|
|
475
475
|
rootStyles: {
|
|
476
476
|
[`.${X.icon}`]: {
|
|
477
477
|
background: u,
|
|
478
|
-
color: n && y.link ===
|
|
478
|
+
color: n && y.link === i ? "white" : d
|
|
479
479
|
},
|
|
480
480
|
[`.${X.label}`]: {
|
|
481
|
-
color: n && y.link ===
|
|
481
|
+
color: n && y.link === i ? "white" : c
|
|
482
482
|
},
|
|
483
483
|
[`.${X.button}`]: {
|
|
484
484
|
paddingLeft: "40px !important",
|
|
@@ -505,17 +505,17 @@ function ge(e, r, t, o, s, i, a, n, c, l) {
|
|
|
505
505
|
id: y.label,
|
|
506
506
|
icon: y.icon,
|
|
507
507
|
disabled: typeof y.disabled == "function" ? y.disabled() : y.disabled,
|
|
508
|
-
active: n && y.link ===
|
|
509
|
-
children:
|
|
508
|
+
active: n && y.link === i,
|
|
509
|
+
children: yA.t(y.label)
|
|
510
510
|
},
|
|
511
511
|
w
|
|
512
512
|
))
|
|
513
513
|
},
|
|
514
|
-
|
|
514
|
+
t
|
|
515
515
|
) });
|
|
516
|
-
} else if (
|
|
517
|
-
return /* @__PURE__ */ A(
|
|
518
|
-
|
|
516
|
+
} else if (r.showInSidebar && (!r.disabled || !r.hideDisabledItem))
|
|
517
|
+
return /* @__PURE__ */ A(xA, { disabled: !o, label: yA.t(r.label), children: /* @__PURE__ */ A(
|
|
518
|
+
Ce,
|
|
519
519
|
{
|
|
520
520
|
rootStyles: {
|
|
521
521
|
fontSize: "16px",
|
|
@@ -531,10 +531,10 @@ function ge(e, r, t, o, s, i, a, n, c, l) {
|
|
|
531
531
|
},
|
|
532
532
|
[`.${X.icon}`]: {
|
|
533
533
|
background: u,
|
|
534
|
-
color: n &&
|
|
534
|
+
color: n && r.link === i ? "white" : d
|
|
535
535
|
},
|
|
536
536
|
[`.${X.label}`]: {
|
|
537
|
-
color: n &&
|
|
537
|
+
color: n && r.link === i ? "white" : c
|
|
538
538
|
},
|
|
539
539
|
[`.${X.disabled}`]: {
|
|
540
540
|
opacity: f,
|
|
@@ -547,18 +547,18 @@ function ge(e, r, t, o, s, i, a, n, c, l) {
|
|
|
547
547
|
}
|
|
548
548
|
}
|
|
549
549
|
},
|
|
550
|
-
id:
|
|
551
|
-
disabled: typeof
|
|
552
|
-
onClick: () =>
|
|
553
|
-
icon:
|
|
554
|
-
active: n &&
|
|
555
|
-
children:
|
|
550
|
+
id: r.label,
|
|
551
|
+
disabled: typeof r.disabled == "function" ? r.disabled() : r.disabled,
|
|
552
|
+
onClick: () => s(r),
|
|
553
|
+
icon: r.icon,
|
|
554
|
+
active: n && r.link === i,
|
|
555
|
+
children: o ? "" : yA.t(r.label)
|
|
556
556
|
},
|
|
557
|
-
|
|
557
|
+
t
|
|
558
558
|
) });
|
|
559
559
|
return null;
|
|
560
560
|
}
|
|
561
|
-
const
|
|
561
|
+
const oo = (e) => ({
|
|
562
562
|
light: {
|
|
563
563
|
sidebar: {
|
|
564
564
|
backgroundColor: "#ffffff",
|
|
@@ -593,14 +593,14 @@ const _r = (e) => ({
|
|
|
593
593
|
}
|
|
594
594
|
}
|
|
595
595
|
}
|
|
596
|
-
}),
|
|
597
|
-
const d =
|
|
596
|
+
}), no = (e, o, s, r, t, a, i, n, c, l, u) => {
|
|
597
|
+
const d = oo(), h = a ? {} : { padding: s ? `0 ${(t - r) / 2}px` : "0 20px" }, f = a ? {} : { display: "none" }, y = i ? e === "dark" ? o.colors[o.primaryColor][8] : o.colors[o.primaryColor][0] : void 0;
|
|
598
598
|
return {
|
|
599
599
|
root: {
|
|
600
600
|
fontSize: "14px",
|
|
601
601
|
fontWeight: 400,
|
|
602
602
|
backgroundColor: c,
|
|
603
|
-
color:
|
|
603
|
+
color: o.white
|
|
604
604
|
},
|
|
605
605
|
icon: {
|
|
606
606
|
background: y,
|
|
@@ -614,18 +614,18 @@ const _r = (e) => ({
|
|
|
614
614
|
...f
|
|
615
615
|
},
|
|
616
616
|
subMenuContent: () => ({
|
|
617
|
-
backgroundColor: e === "dark" ?
|
|
617
|
+
backgroundColor: e === "dark" ? o.colors.dark[8] : o.colors[o.primaryColor][0]
|
|
618
618
|
}),
|
|
619
619
|
button: {
|
|
620
620
|
[`&.${X.disabled}`]: {
|
|
621
621
|
color: d[e].menu.disabled.color
|
|
622
622
|
},
|
|
623
623
|
"&:hover": {
|
|
624
|
-
backgroundColor:
|
|
625
|
-
color:
|
|
624
|
+
backgroundColor: o.colors[o.primaryColor][6],
|
|
625
|
+
color: o.white
|
|
626
626
|
},
|
|
627
627
|
[`&.${X.active}`]: {
|
|
628
|
-
backgroundColor:
|
|
628
|
+
backgroundColor: o.colors[o.primaryColor][6]
|
|
629
629
|
},
|
|
630
630
|
height: n,
|
|
631
631
|
...h
|
|
@@ -634,57 +634,57 @@ const _r = (e) => ({
|
|
|
634
634
|
fontWeight: w ? 600 : void 0,
|
|
635
635
|
color: l,
|
|
636
636
|
"&:hover": {
|
|
637
|
-
color:
|
|
637
|
+
color: o.white
|
|
638
638
|
}
|
|
639
639
|
})
|
|
640
640
|
};
|
|
641
641
|
};
|
|
642
|
-
function
|
|
643
|
-
return /* @__PURE__ */
|
|
644
|
-
|
|
642
|
+
function to(e, o, s, r, t, a, i, n, c, l, u) {
|
|
643
|
+
return /* @__PURE__ */ L(
|
|
644
|
+
Me,
|
|
645
645
|
{
|
|
646
646
|
ref: e,
|
|
647
647
|
rootStyles: {
|
|
648
|
-
[`.${
|
|
648
|
+
[`.${$e.container}`]: {
|
|
649
649
|
position: "absolute",
|
|
650
650
|
background: u,
|
|
651
651
|
overflowX: "hidden",
|
|
652
652
|
overflowY: "hidden",
|
|
653
653
|
left: 0,
|
|
654
654
|
right: 0,
|
|
655
|
-
height:
|
|
655
|
+
height: i ? "calc(100vh - 28px)" : `${aA(n)}px`
|
|
656
656
|
}
|
|
657
657
|
},
|
|
658
|
-
collapsed:
|
|
659
|
-
width: `${
|
|
660
|
-
collapsedWidth: `${
|
|
658
|
+
collapsed: o,
|
|
659
|
+
width: `${aA(s)}px`,
|
|
660
|
+
collapsedWidth: `${aA(r)}px`,
|
|
661
661
|
children: [
|
|
662
|
-
c && /* @__PURE__ */ A(
|
|
663
|
-
/* @__PURE__ */ A(TA, { style: { overflowY: "auto", overflowX: "hidden", height: n }, children: /* @__PURE__ */ A(
|
|
664
|
-
l && /* @__PURE__ */ A(
|
|
662
|
+
c && /* @__PURE__ */ A(wA, { children: c }),
|
|
663
|
+
/* @__PURE__ */ A(TA, { style: { overflowY: "auto", overflowX: "hidden", height: n }, children: /* @__PURE__ */ A(Oe, { rootStyles: { background: u }, menuItemStyles: t, closeOnClick: !0, children: a && /* @__PURE__ */ A(wA, { children: a }) }) }),
|
|
664
|
+
l && /* @__PURE__ */ A(wA, { children: l })
|
|
665
665
|
]
|
|
666
666
|
}
|
|
667
667
|
);
|
|
668
668
|
}
|
|
669
|
-
function
|
|
669
|
+
function ye({
|
|
670
670
|
itemCount: e = 8,
|
|
671
|
-
collapsed:
|
|
672
|
-
backgroundColor:
|
|
671
|
+
collapsed: o = !1,
|
|
672
|
+
backgroundColor: s
|
|
673
673
|
}) {
|
|
674
|
-
const
|
|
675
|
-
return
|
|
676
|
-
|
|
674
|
+
const r = pA(), { colorScheme: t } = oA(), a = s ?? (t === "dark" ? r.colors.dark[7] : r.white);
|
|
675
|
+
return o ? /* @__PURE__ */ A(
|
|
676
|
+
_,
|
|
677
677
|
{
|
|
678
678
|
gap: "sm",
|
|
679
679
|
p: "xs",
|
|
680
680
|
align: "center",
|
|
681
681
|
style: {
|
|
682
|
-
backgroundColor:
|
|
682
|
+
backgroundColor: a,
|
|
683
683
|
width: "100%",
|
|
684
684
|
height: "100%"
|
|
685
685
|
},
|
|
686
|
-
children: Array.from({ length: e }).map((
|
|
687
|
-
|
|
686
|
+
children: Array.from({ length: e }).map((i, n) => /* @__PURE__ */ A(
|
|
687
|
+
cA,
|
|
688
688
|
{
|
|
689
689
|
height: 32,
|
|
690
690
|
width: 32,
|
|
@@ -694,19 +694,19 @@ function be({
|
|
|
694
694
|
))
|
|
695
695
|
}
|
|
696
696
|
) : /* @__PURE__ */ A(
|
|
697
|
-
|
|
697
|
+
_,
|
|
698
698
|
{
|
|
699
699
|
gap: "xs",
|
|
700
700
|
p: "md",
|
|
701
701
|
style: {
|
|
702
|
-
backgroundColor:
|
|
702
|
+
backgroundColor: a,
|
|
703
703
|
flex: 1,
|
|
704
704
|
width: "100%",
|
|
705
705
|
height: "100%"
|
|
706
706
|
},
|
|
707
|
-
children: Array.from({ length: e }).map((
|
|
707
|
+
children: Array.from({ length: e }).map((i, n) => /* @__PURE__ */ L(vA, { gap: "sm", wrap: "nowrap", children: [
|
|
708
708
|
/* @__PURE__ */ A(
|
|
709
|
-
|
|
709
|
+
cA,
|
|
710
710
|
{
|
|
711
711
|
height: 24,
|
|
712
712
|
width: 24,
|
|
@@ -714,7 +714,7 @@ function be({
|
|
|
714
714
|
}
|
|
715
715
|
),
|
|
716
716
|
/* @__PURE__ */ A(
|
|
717
|
-
|
|
717
|
+
cA,
|
|
718
718
|
{
|
|
719
719
|
height: 18,
|
|
720
720
|
radius: "xl",
|
|
@@ -725,27 +725,27 @@ function be({
|
|
|
725
725
|
}
|
|
726
726
|
);
|
|
727
727
|
}
|
|
728
|
-
function
|
|
728
|
+
function so({
|
|
729
729
|
groupCount: e = 3,
|
|
730
|
-
width:
|
|
731
|
-
height:
|
|
732
|
-
backgroundColor:
|
|
730
|
+
width: o = "80px",
|
|
731
|
+
height: s = "100%",
|
|
732
|
+
backgroundColor: r
|
|
733
733
|
}) {
|
|
734
|
-
const
|
|
734
|
+
const t = pA(), { colorScheme: a } = oA(), i = r ?? (a === "dark" ? t.colors.dark[6] : t.colors.gray[2]);
|
|
735
735
|
return /* @__PURE__ */ A(
|
|
736
|
-
|
|
736
|
+
_,
|
|
737
737
|
{
|
|
738
738
|
gap: "md",
|
|
739
739
|
p: "xs",
|
|
740
740
|
align: "center",
|
|
741
741
|
style: {
|
|
742
|
-
width:
|
|
743
|
-
height:
|
|
744
|
-
backgroundColor:
|
|
742
|
+
width: o,
|
|
743
|
+
height: s,
|
|
744
|
+
backgroundColor: i
|
|
745
745
|
},
|
|
746
|
-
children: Array.from({ length: e }).map((n, c) => /* @__PURE__ */
|
|
746
|
+
children: Array.from({ length: e }).map((n, c) => /* @__PURE__ */ L(_, { gap: 4, align: "center", children: [
|
|
747
747
|
/* @__PURE__ */ A(
|
|
748
|
-
|
|
748
|
+
cA,
|
|
749
749
|
{
|
|
750
750
|
height: 48,
|
|
751
751
|
width: 48,
|
|
@@ -754,7 +754,7 @@ function ro({
|
|
|
754
754
|
}
|
|
755
755
|
),
|
|
756
756
|
/* @__PURE__ */ A(
|
|
757
|
-
|
|
757
|
+
cA,
|
|
758
758
|
{
|
|
759
759
|
height: 10,
|
|
760
760
|
width: 40,
|
|
@@ -765,25 +765,25 @@ function ro({
|
|
|
765
765
|
}
|
|
766
766
|
);
|
|
767
767
|
}
|
|
768
|
-
function
|
|
768
|
+
function we({
|
|
769
769
|
message: e,
|
|
770
|
-
backgroundColor:
|
|
771
|
-
children:
|
|
770
|
+
backgroundColor: o,
|
|
771
|
+
children: s
|
|
772
772
|
}) {
|
|
773
|
-
const
|
|
774
|
-
return
|
|
775
|
-
/* @__PURE__ */ A(
|
|
776
|
-
/* @__PURE__ */ A(
|
|
773
|
+
const r = pA(), { colorScheme: t } = oA(), a = o ?? (t === "dark" ? r.colors.dark[7] : r.white), i = t === "dark" ? r.colors.red[4] : r.colors.red[6];
|
|
774
|
+
return s ? /* @__PURE__ */ A(wA, { children: s }) : /* @__PURE__ */ A(VA, { p: "md", style: { backgroundColor: a, flex: 1, height: "100%" }, children: /* @__PURE__ */ L(_, { align: "center", gap: "xs", children: [
|
|
775
|
+
/* @__PURE__ */ A(rr, { size: 32, color: i }),
|
|
776
|
+
/* @__PURE__ */ A(zA, { size: "sm", c: i, ta: "center", children: e })
|
|
777
777
|
] }) });
|
|
778
778
|
}
|
|
779
|
-
function
|
|
779
|
+
function lo({
|
|
780
780
|
navigationData: e,
|
|
781
|
-
sidebarGroupWidth:
|
|
782
|
-
sidebarWidth:
|
|
783
|
-
sidebarHeight:
|
|
784
|
-
sidebarCollapsedWidth:
|
|
785
|
-
selectedGroupColor:
|
|
786
|
-
groupColor:
|
|
781
|
+
sidebarGroupWidth: o = "80px",
|
|
782
|
+
sidebarWidth: s = "360px",
|
|
783
|
+
sidebarHeight: r = "calc(100vh - var(--app-shell-header-offset, 0px))",
|
|
784
|
+
sidebarCollapsedWidth: t = "60px",
|
|
785
|
+
selectedGroupColor: a,
|
|
786
|
+
groupColor: i,
|
|
787
787
|
backgroundGroupColor: n,
|
|
788
788
|
isHidden: c = !1,
|
|
789
789
|
sideBarFooterHeight: l,
|
|
@@ -800,47 +800,47 @@ function oo({
|
|
|
800
800
|
defaultGroupIcon: v,
|
|
801
801
|
selectedGroupName: C,
|
|
802
802
|
sideBarHeaderContent: P,
|
|
803
|
-
iconsWithBackground:
|
|
804
|
-
menuItemHeight:
|
|
803
|
+
iconsWithBackground: Q = !1,
|
|
804
|
+
menuItemHeight: K = 40,
|
|
805
805
|
highlightActiveMenuItem: J = !0,
|
|
806
806
|
backgroundDarkColor: D,
|
|
807
|
-
backgroundLightColor:
|
|
808
|
-
textDarkColor:
|
|
809
|
-
textLightColor:
|
|
807
|
+
backgroundLightColor: O,
|
|
808
|
+
textDarkColor: B,
|
|
809
|
+
textLightColor: $,
|
|
810
810
|
iconDarkColor: T,
|
|
811
811
|
iconLightColor: x,
|
|
812
812
|
collapsedSubmenuWidth: I,
|
|
813
|
-
isLoading:
|
|
813
|
+
isLoading: V = !1,
|
|
814
814
|
loadingError: q,
|
|
815
815
|
loadingComponent: k,
|
|
816
816
|
errorComponent: b,
|
|
817
|
-
skeletonItemCount:
|
|
818
|
-
skeletonGroupCount:
|
|
817
|
+
skeletonItemCount: R = 8,
|
|
818
|
+
skeletonGroupCount: M = 3
|
|
819
819
|
}) {
|
|
820
|
-
const [
|
|
821
|
-
const
|
|
822
|
-
return e.forEach((
|
|
823
|
-
if (
|
|
824
|
-
let
|
|
825
|
-
|
|
826
|
-
icon: v || /* @__PURE__ */ A(
|
|
820
|
+
const [N, E] = fA(""), z = ne(), dA = HA(), { colorScheme: U } = oA(), lA = U === "dark" ? D ?? g.colors.dark[7] : O ?? g.white, eA = a || (U === "dark" ? g.colors[g.primaryColor][8] : g.colors[g.primaryColor][0]), nA = U === "dark" ? B ?? "var(--mantine-color-text)" : $ ?? "var(--mantine-color-text)", Y = U === "dark" ? T ?? g.colors[g.primaryColor][0] : x ?? g.colors[g.primaryColor][7], rA = uA(() => {
|
|
821
|
+
const hA = /* @__PURE__ */ new Set();
|
|
822
|
+
return e.forEach((W) => {
|
|
823
|
+
if (W.showInSidebar && (!W.disabled || !W.hideDisabledItem)) {
|
|
824
|
+
let DA = !1;
|
|
825
|
+
W.group || (W.group = {
|
|
826
|
+
icon: v || /* @__PURE__ */ A(Re, { size: "2.2rem", color: "#63B1FB", stroke: 1 }),
|
|
827
827
|
label: "Default",
|
|
828
828
|
name: "Default",
|
|
829
829
|
hint: "Default",
|
|
830
830
|
indexOrder: 0
|
|
831
|
-
}),
|
|
832
|
-
|
|
833
|
-
}),
|
|
834
|
-
name:
|
|
835
|
-
indexOrder:
|
|
831
|
+
}), hA.forEach((gA) => {
|
|
832
|
+
gA.name === W.group.name && (DA = !0);
|
|
833
|
+
}), DA || hA.add({
|
|
834
|
+
name: W.group.name,
|
|
835
|
+
indexOrder: W.group.indexOrder,
|
|
836
836
|
component: /* @__PURE__ */ A(
|
|
837
|
-
|
|
837
|
+
xA,
|
|
838
838
|
{
|
|
839
|
-
content:
|
|
840
|
-
label:
|
|
839
|
+
content: W.group.hint,
|
|
840
|
+
label: W.group.label,
|
|
841
841
|
disabled: p,
|
|
842
|
-
children: /* @__PURE__ */
|
|
843
|
-
|
|
842
|
+
children: /* @__PURE__ */ L(
|
|
843
|
+
_,
|
|
844
844
|
{
|
|
845
845
|
gap: "2px",
|
|
846
846
|
style: {
|
|
@@ -851,86 +851,86 @@ function oo({
|
|
|
851
851
|
},
|
|
852
852
|
children: [
|
|
853
853
|
/* @__PURE__ */ A(
|
|
854
|
-
|
|
854
|
+
RA,
|
|
855
855
|
{
|
|
856
856
|
size: "48px",
|
|
857
|
-
variant:
|
|
858
|
-
color:
|
|
857
|
+
variant: W.group.name === N ? "filled" : n ? "subtle" : "light",
|
|
858
|
+
color: W.group.name === N ? eA : i,
|
|
859
859
|
onClick: () => {
|
|
860
|
-
|
|
860
|
+
E((gA) => (w && w(gA, W.group.name), W.group.name === gA && !c ? "" : W.group.name));
|
|
861
861
|
},
|
|
862
|
-
children:
|
|
862
|
+
children: W.group.icon
|
|
863
863
|
}
|
|
864
864
|
),
|
|
865
865
|
p ? /* @__PURE__ */ A(
|
|
866
|
-
|
|
866
|
+
zA,
|
|
867
867
|
{
|
|
868
868
|
size: "xs",
|
|
869
|
-
c:
|
|
870
|
-
children:
|
|
869
|
+
c: U === "dark" ? d || g.colors[g.primaryColor][2] : h || g.colors[g.primaryColor][2],
|
|
870
|
+
children: W.group.label
|
|
871
871
|
}
|
|
872
872
|
) : !1
|
|
873
873
|
]
|
|
874
874
|
}
|
|
875
875
|
)
|
|
876
876
|
},
|
|
877
|
-
|
|
877
|
+
W.group.name
|
|
878
878
|
)
|
|
879
879
|
});
|
|
880
880
|
}
|
|
881
|
-
}),
|
|
882
|
-
const
|
|
883
|
-
|
|
884
|
-
}), [...
|
|
885
|
-
}, [e,
|
|
886
|
-
|
|
881
|
+
}), hA.forEach((W) => {
|
|
882
|
+
const DA = e.filter((gA) => gA.showInSidebar === !0 && (!gA.disabled || !gA.hideDisabledItem) && gA.group && gA.group.name === W.name);
|
|
883
|
+
W.links = DA.map((gA, j) => ke(g, f, y, gA, j, Q, dA.pathname, J, nA, I));
|
|
884
|
+
}), [...hA].sort((W, DA) => W.indexOrder - DA.indexOrder);
|
|
885
|
+
}, [e, N, U, f, z.selectedCompany, J, dA]), CA = no(
|
|
886
|
+
U,
|
|
887
887
|
g,
|
|
888
888
|
f,
|
|
889
889
|
35,
|
|
890
|
-
Number(
|
|
890
|
+
Number(aA(t)),
|
|
891
891
|
rA.length > 1,
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
), kA = f ||
|
|
898
|
-
C && rA.map((
|
|
892
|
+
Q,
|
|
893
|
+
K,
|
|
894
|
+
lA,
|
|
895
|
+
nA,
|
|
896
|
+
Y
|
|
897
|
+
), kA = f || N === "" ? "0px" : `calc(${s} - ${o})`, IA = n || (U === "dark" ? g.colors[g.primaryColor][6] : g.colors[g.primaryColor][7]), H = F(() => {
|
|
898
|
+
C && rA.map((hA) => hA.name).includes(C) ? E(C) : rA.length > 1 && E("Default");
|
|
899
899
|
}, []);
|
|
900
900
|
iA(() => {
|
|
901
|
-
|
|
901
|
+
H();
|
|
902
902
|
}, []), iA(() => {
|
|
903
|
-
f ?
|
|
903
|
+
f ? E("") : N === "" && H();
|
|
904
904
|
}, [f]);
|
|
905
|
-
const
|
|
906
|
-
|
|
905
|
+
const tA = () => q ? b || /* @__PURE__ */ A(
|
|
906
|
+
we,
|
|
907
907
|
{
|
|
908
908
|
message: q,
|
|
909
|
-
backgroundColor:
|
|
909
|
+
backgroundColor: lA
|
|
910
910
|
}
|
|
911
|
-
) :
|
|
912
|
-
|
|
911
|
+
) : V ? k || /* @__PURE__ */ A(
|
|
912
|
+
ye,
|
|
913
913
|
{
|
|
914
|
-
itemCount:
|
|
914
|
+
itemCount: R,
|
|
915
915
|
collapsed: f,
|
|
916
|
-
backgroundColor:
|
|
916
|
+
backgroundColor: lA
|
|
917
917
|
}
|
|
918
|
-
) :
|
|
919
|
-
|
|
918
|
+
) : N !== "" ? /* @__PURE__ */ A(
|
|
919
|
+
Me,
|
|
920
920
|
{
|
|
921
921
|
ref: S,
|
|
922
922
|
rootStyles: {
|
|
923
|
-
[`.${
|
|
924
|
-
background:
|
|
923
|
+
[`.${$e.container}`]: {
|
|
924
|
+
background: lA,
|
|
925
925
|
overflowX: "hidden",
|
|
926
926
|
overflowY: "hidden",
|
|
927
927
|
left: 0,
|
|
928
|
-
height: `${
|
|
928
|
+
height: `${aA(r)}px`
|
|
929
929
|
}
|
|
930
930
|
},
|
|
931
|
-
style: { borderColor:
|
|
931
|
+
style: { borderColor: U === "dark" ? "#000" : "#efefef" },
|
|
932
932
|
collapsed: f,
|
|
933
|
-
width: `${
|
|
933
|
+
width: `${aA(kA)}`,
|
|
934
934
|
collapsedWidth: "0px",
|
|
935
935
|
children: /* @__PURE__ */ A(
|
|
936
936
|
TA,
|
|
@@ -941,210 +941,210 @@ function oo({
|
|
|
941
941
|
height: "100%",
|
|
942
942
|
width: kA
|
|
943
943
|
},
|
|
944
|
-
children: /* @__PURE__ */ A(
|
|
944
|
+
children: /* @__PURE__ */ A(Oe, { rootStyles: { background: lA }, menuItemStyles: CA, closeOnClick: !0, children: rA.find((hA) => hA.name === N)?.links || null })
|
|
945
945
|
}
|
|
946
946
|
)
|
|
947
947
|
}
|
|
948
|
-
) : null,
|
|
949
|
-
|
|
948
|
+
) : null, EA = () => V && rA.length === 0 ? /* @__PURE__ */ A(
|
|
949
|
+
so,
|
|
950
950
|
{
|
|
951
|
-
groupCount:
|
|
952
|
-
width:
|
|
953
|
-
height:
|
|
951
|
+
groupCount: M,
|
|
952
|
+
width: o,
|
|
953
|
+
height: r
|
|
954
954
|
}
|
|
955
955
|
) : rA.length !== 0 ? /* @__PURE__ */ A(
|
|
956
|
-
|
|
956
|
+
_,
|
|
957
957
|
{
|
|
958
958
|
gap: "4px",
|
|
959
959
|
style: {
|
|
960
|
-
height:
|
|
961
|
-
width:
|
|
960
|
+
height: r,
|
|
961
|
+
width: o,
|
|
962
962
|
padding: "4px",
|
|
963
|
-
backgroundColor:
|
|
963
|
+
backgroundColor: IA
|
|
964
964
|
},
|
|
965
|
-
children: rA.map((
|
|
965
|
+
children: rA.map((hA) => /* @__PURE__ */ A(bA.Fragment, { children: hA.component }, hA.name))
|
|
966
966
|
}
|
|
967
|
-
) : null,
|
|
968
|
-
|
|
967
|
+
) : null, LA = () => q ? b || /* @__PURE__ */ A(
|
|
968
|
+
we,
|
|
969
969
|
{
|
|
970
970
|
message: q,
|
|
971
|
-
backgroundColor:
|
|
971
|
+
backgroundColor: lA
|
|
972
972
|
}
|
|
973
|
-
) :
|
|
974
|
-
|
|
973
|
+
) : V ? k || /* @__PURE__ */ A(
|
|
974
|
+
ye,
|
|
975
975
|
{
|
|
976
|
-
itemCount:
|
|
976
|
+
itemCount: R,
|
|
977
977
|
collapsed: f,
|
|
978
|
-
backgroundColor:
|
|
978
|
+
backgroundColor: lA
|
|
979
979
|
}
|
|
980
980
|
) : e.map(
|
|
981
|
-
(
|
|
981
|
+
(hA, OA) => ke(g, f, y, hA, OA, Q, dA.pathname, J, nA, I)
|
|
982
982
|
);
|
|
983
|
-
return /* @__PURE__ */ A(
|
|
983
|
+
return /* @__PURE__ */ A(wA, { children: rA.length == 1 ? to(
|
|
984
984
|
S,
|
|
985
985
|
f,
|
|
986
|
-
t,
|
|
987
986
|
s,
|
|
987
|
+
t,
|
|
988
988
|
CA,
|
|
989
|
-
|
|
989
|
+
LA(),
|
|
990
990
|
c,
|
|
991
|
-
|
|
991
|
+
r,
|
|
992
992
|
P,
|
|
993
993
|
u,
|
|
994
|
-
|
|
995
|
-
) : /* @__PURE__ */
|
|
994
|
+
lA
|
|
995
|
+
) : /* @__PURE__ */ L(BA, { direction: "column", w: f ? t : s, children: [
|
|
996
996
|
/* @__PURE__ */ A("div", { style: { height: "auto", width: "100%" }, children: P }),
|
|
997
|
-
/* @__PURE__ */
|
|
998
|
-
|
|
999
|
-
|
|
997
|
+
/* @__PURE__ */ L(We, { withBorder: m, h: r, w: "100%", display: "flex", children: [
|
|
998
|
+
EA(),
|
|
999
|
+
tA()
|
|
1000
1000
|
] }),
|
|
1001
1001
|
/* @__PURE__ */ A("div", { style: { height: "auto", width: "100%" }, children: u })
|
|
1002
1002
|
] }) });
|
|
1003
1003
|
}
|
|
1004
|
-
const
|
|
1005
|
-
function
|
|
1006
|
-
const e =
|
|
1004
|
+
const le = FA(null);
|
|
1005
|
+
function ie() {
|
|
1006
|
+
const e = SA(le);
|
|
1007
1007
|
if (!e)
|
|
1008
1008
|
throw new Error("useSidebar must be used within a SidebarProvider");
|
|
1009
1009
|
return e;
|
|
1010
1010
|
}
|
|
1011
|
-
function
|
|
1012
|
-
return
|
|
1011
|
+
function hn() {
|
|
1012
|
+
return SA(le);
|
|
1013
1013
|
}
|
|
1014
|
-
function
|
|
1014
|
+
function ae({
|
|
1015
1015
|
children: e,
|
|
1016
|
-
navigationData:
|
|
1017
|
-
variant:
|
|
1018
|
-
defaultCollapsed:
|
|
1019
|
-
collapsed:
|
|
1020
|
-
onCollapsedChange:
|
|
1021
|
-
defaultActiveGroup:
|
|
1016
|
+
navigationData: o,
|
|
1017
|
+
variant: s = "standard",
|
|
1018
|
+
defaultCollapsed: r = !1,
|
|
1019
|
+
collapsed: t,
|
|
1020
|
+
onCollapsedChange: a,
|
|
1021
|
+
defaultActiveGroup: i = "",
|
|
1022
1022
|
activeGroup: n,
|
|
1023
1023
|
onActiveGroupChange: c,
|
|
1024
1024
|
showKeyboardShortcuts: l = !1,
|
|
1025
1025
|
highlightActiveItem: u = !0,
|
|
1026
1026
|
onMenuItemClick: d
|
|
1027
1027
|
}) {
|
|
1028
|
-
const h =
|
|
1029
|
-
value:
|
|
1030
|
-
defaultValue:
|
|
1028
|
+
const h = HA(), f = qA(), [y, w] = JA({
|
|
1029
|
+
value: t,
|
|
1030
|
+
defaultValue: r,
|
|
1031
1031
|
finalValue: !1,
|
|
1032
|
-
onChange:
|
|
1033
|
-
}), [m, p] =
|
|
1032
|
+
onChange: a
|
|
1033
|
+
}), [m, p] = JA({
|
|
1034
1034
|
value: n,
|
|
1035
|
-
defaultValue:
|
|
1035
|
+
defaultValue: i,
|
|
1036
1036
|
finalValue: "",
|
|
1037
1037
|
onChange: c
|
|
1038
|
-
}), [g, S] =
|
|
1038
|
+
}), [g, S] = fA(""), [v, C] = fA(() => {
|
|
1039
1039
|
const T = /* @__PURE__ */ new Set();
|
|
1040
|
-
return
|
|
1040
|
+
return o.forEach((x, I) => {
|
|
1041
1041
|
x.initiallyOpened && x.links && x.links.length > 0 && T.add(`group-${I}`);
|
|
1042
1042
|
}), T;
|
|
1043
|
-
}), P = h.pathname,
|
|
1043
|
+
}), P = h.pathname, Q = F(() => {
|
|
1044
1044
|
w(!y);
|
|
1045
|
-
}, [y, w]),
|
|
1045
|
+
}, [y, w]), K = F((T) => {
|
|
1046
1046
|
C((x) => {
|
|
1047
1047
|
const I = new Set(x);
|
|
1048
1048
|
return I.has(T) ? I.delete(T) : I.add(T), I;
|
|
1049
1049
|
});
|
|
1050
|
-
}, []), J =
|
|
1050
|
+
}, []), J = F((T) => {
|
|
1051
1051
|
C((x) => {
|
|
1052
1052
|
const I = new Set(x);
|
|
1053
1053
|
return I.add(T), I;
|
|
1054
1054
|
});
|
|
1055
|
-
}, []), D =
|
|
1055
|
+
}, []), D = F((T) => {
|
|
1056
1056
|
C((x) => {
|
|
1057
1057
|
const I = new Set(x);
|
|
1058
1058
|
return I.delete(T), I;
|
|
1059
1059
|
});
|
|
1060
|
-
}, []),
|
|
1060
|
+
}, []), O = uA(() => {
|
|
1061
1061
|
if (!g.trim())
|
|
1062
|
-
return
|
|
1063
|
-
const T = g.toLowerCase().trim(), x = (I) => I.reduce((
|
|
1062
|
+
return o;
|
|
1063
|
+
const T = g.toLowerCase().trim(), x = (I) => I.reduce((V, q) => {
|
|
1064
1064
|
const k = q.label.toLowerCase().includes(T), b = q.links ? x(q.links) : [];
|
|
1065
|
-
return (k || b.length > 0) &&
|
|
1065
|
+
return (k || b.length > 0) && V.push({
|
|
1066
1066
|
...q,
|
|
1067
1067
|
links: b.length > 0 ? b : q.links,
|
|
1068
1068
|
// Expandir automaticamente quando há match em subitens
|
|
1069
1069
|
initiallyOpened: b.length > 0 || k
|
|
1070
|
-
}),
|
|
1070
|
+
}), V;
|
|
1071
1071
|
}, []);
|
|
1072
|
-
return x(
|
|
1073
|
-
}, [
|
|
1072
|
+
return x(o);
|
|
1073
|
+
}, [o, g]), B = F(
|
|
1074
1074
|
(T) => {
|
|
1075
1075
|
d && d(T), T.link && (T.routeParams ? f(T.link, { state: T.routeParams }) : f(T.link)), T.redirect && f(T.redirect);
|
|
1076
1076
|
},
|
|
1077
1077
|
[f, d]
|
|
1078
|
-
),
|
|
1078
|
+
), $ = uA(
|
|
1079
1079
|
() => ({
|
|
1080
1080
|
collapsed: y,
|
|
1081
1081
|
setCollapsed: w,
|
|
1082
|
-
toggleCollapsed:
|
|
1082
|
+
toggleCollapsed: Q,
|
|
1083
1083
|
activeGroup: m,
|
|
1084
1084
|
setActiveGroup: p,
|
|
1085
1085
|
activeItemPath: P,
|
|
1086
|
-
navigateToItem:
|
|
1086
|
+
navigateToItem: B,
|
|
1087
1087
|
searchQuery: g,
|
|
1088
1088
|
setSearchQuery: S,
|
|
1089
|
-
filteredItems:
|
|
1089
|
+
filteredItems: O,
|
|
1090
1090
|
expandedGroups: v,
|
|
1091
|
-
toggleGroup:
|
|
1091
|
+
toggleGroup: K,
|
|
1092
1092
|
expandGroup: J,
|
|
1093
1093
|
collapseGroup: D,
|
|
1094
|
-
variant:
|
|
1094
|
+
variant: s,
|
|
1095
1095
|
showKeyboardShortcuts: l,
|
|
1096
1096
|
highlightActiveItem: u
|
|
1097
1097
|
}),
|
|
1098
1098
|
[
|
|
1099
1099
|
y,
|
|
1100
1100
|
w,
|
|
1101
|
-
|
|
1101
|
+
Q,
|
|
1102
1102
|
m,
|
|
1103
1103
|
p,
|
|
1104
1104
|
P,
|
|
1105
|
-
|
|
1105
|
+
B,
|
|
1106
1106
|
g,
|
|
1107
|
-
|
|
1107
|
+
O,
|
|
1108
1108
|
v,
|
|
1109
|
-
|
|
1109
|
+
K,
|
|
1110
1110
|
J,
|
|
1111
1111
|
D,
|
|
1112
|
-
|
|
1112
|
+
s,
|
|
1113
1113
|
l,
|
|
1114
1114
|
u
|
|
1115
1115
|
]
|
|
1116
1116
|
);
|
|
1117
|
-
return /* @__PURE__ */ A(
|
|
1117
|
+
return /* @__PURE__ */ A(le.Provider, { value: $, children: e });
|
|
1118
1118
|
}
|
|
1119
|
-
function
|
|
1119
|
+
function ce({
|
|
1120
1120
|
navigationData: e,
|
|
1121
|
-
onMenuItemClick:
|
|
1121
|
+
onMenuItemClick: o
|
|
1122
1122
|
}) {
|
|
1123
|
-
const
|
|
1123
|
+
const s = HA(), r = qA(), t = s.pathname, a = F(
|
|
1124
1124
|
(d) => {
|
|
1125
1125
|
for (const h of d) {
|
|
1126
|
-
if (h.link ===
|
|
1126
|
+
if (h.link === t)
|
|
1127
1127
|
return h;
|
|
1128
1128
|
if (h.links) {
|
|
1129
|
-
const f =
|
|
1129
|
+
const f = a(h.links);
|
|
1130
1130
|
if (f)
|
|
1131
1131
|
return f;
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
1134
|
return null;
|
|
1135
1135
|
},
|
|
1136
|
-
[
|
|
1137
|
-
),
|
|
1138
|
-
(d) => d.link ===
|
|
1139
|
-
[
|
|
1140
|
-
), c =
|
|
1141
|
-
(d) => d.link ===
|
|
1142
|
-
[
|
|
1143
|
-
), l =
|
|
1136
|
+
[t]
|
|
1137
|
+
), i = uA(() => a(e), [a, e]), n = F(
|
|
1138
|
+
(d) => d.link === t,
|
|
1139
|
+
[t]
|
|
1140
|
+
), c = F(
|
|
1141
|
+
(d) => d.link === t ? !0 : d.links ? d.links.some((h) => c(h)) : !1,
|
|
1142
|
+
[t]
|
|
1143
|
+
), l = uA(() => {
|
|
1144
1144
|
const d = [], h = (f, y) => {
|
|
1145
1145
|
for (const w of f) {
|
|
1146
1146
|
const m = [...y, w];
|
|
1147
|
-
if (w.link ===
|
|
1147
|
+
if (w.link === t)
|
|
1148
1148
|
return d.push(...m), !0;
|
|
1149
1149
|
if (w.links && h(w.links, m))
|
|
1150
1150
|
return !0;
|
|
@@ -1152,32 +1152,32 @@ function le({
|
|
|
1152
1152
|
return !1;
|
|
1153
1153
|
};
|
|
1154
1154
|
return h(e, []), d;
|
|
1155
|
-
}, [e,
|
|
1155
|
+
}, [e, t]), u = F(
|
|
1156
1156
|
(d) => {
|
|
1157
|
-
(typeof d.disabled == "function" ? d.disabled() : d.disabled) || (
|
|
1157
|
+
(typeof d.disabled == "function" ? d.disabled() : d.disabled) || (o && o(d), d.link && (d.routeParams ? r(d.link, { state: d.routeParams }) : r(d.link)), d.redirect && r(d.redirect));
|
|
1158
1158
|
},
|
|
1159
|
-
[
|
|
1159
|
+
[r, o]
|
|
1160
1160
|
);
|
|
1161
1161
|
return {
|
|
1162
|
-
activeItem:
|
|
1163
|
-
currentPath:
|
|
1162
|
+
activeItem: i,
|
|
1163
|
+
currentPath: t,
|
|
1164
1164
|
navigateToItem: u,
|
|
1165
1165
|
isItemActive: n,
|
|
1166
1166
|
isItemOrChildActive: c,
|
|
1167
1167
|
activeBreadcrumb: l
|
|
1168
1168
|
};
|
|
1169
1169
|
}
|
|
1170
|
-
function
|
|
1170
|
+
function io({
|
|
1171
1171
|
navigationData: e,
|
|
1172
|
-
onSearch:
|
|
1172
|
+
onSearch: o
|
|
1173
1173
|
}) {
|
|
1174
|
-
const [
|
|
1174
|
+
const [s, r] = fA(""), t = F((l) => l.reduce((u, d) => {
|
|
1175
1175
|
let h = 1;
|
|
1176
|
-
return d.links && (h +=
|
|
1177
|
-
}, 0), []),
|
|
1178
|
-
if (!
|
|
1176
|
+
return d.links && (h += t(d.links)), u + h;
|
|
1177
|
+
}, 0), []), a = uA(() => {
|
|
1178
|
+
if (!s.trim())
|
|
1179
1179
|
return e;
|
|
1180
|
-
const l =
|
|
1180
|
+
const l = s.toLowerCase().trim(), u = (d) => d.reduce((h, f) => {
|
|
1181
1181
|
if (!f.showInSidebar)
|
|
1182
1182
|
return h;
|
|
1183
1183
|
const y = f.label.toLowerCase().includes(l), w = f.links ? u(f.links) : [];
|
|
@@ -1189,12 +1189,12 @@ function no({
|
|
|
1189
1189
|
}), h;
|
|
1190
1190
|
}, []);
|
|
1191
1191
|
return u(e);
|
|
1192
|
-
}, [e,
|
|
1192
|
+
}, [e, s]), i = uA(() => s.trim() ? t(a) : t(e), [s, e, a, t]), n = F(
|
|
1193
1193
|
(l) => {
|
|
1194
|
-
if (
|
|
1194
|
+
if (r(l), o) {
|
|
1195
1195
|
const u = l.toLowerCase().trim();
|
|
1196
1196
|
if (!u)
|
|
1197
|
-
|
|
1197
|
+
o(l, e);
|
|
1198
1198
|
else {
|
|
1199
1199
|
const d = (h) => h.reduce((f, y) => {
|
|
1200
1200
|
if (!y.showInSidebar)
|
|
@@ -1206,34 +1206,34 @@ function no({
|
|
|
1206
1206
|
initiallyOpened: !0
|
|
1207
1207
|
}), f;
|
|
1208
1208
|
}, []);
|
|
1209
|
-
|
|
1209
|
+
o(l, d(e));
|
|
1210
1210
|
}
|
|
1211
1211
|
}
|
|
1212
1212
|
},
|
|
1213
|
-
[e,
|
|
1214
|
-
), c =
|
|
1213
|
+
[e, o]
|
|
1214
|
+
), c = F(() => {
|
|
1215
1215
|
n("");
|
|
1216
1216
|
}, [n]);
|
|
1217
1217
|
return {
|
|
1218
|
-
query:
|
|
1218
|
+
query: s,
|
|
1219
1219
|
setQuery: n,
|
|
1220
1220
|
clearSearch: c,
|
|
1221
|
-
filteredItems:
|
|
1222
|
-
hasResults:
|
|
1223
|
-
isSearching:
|
|
1224
|
-
totalResults:
|
|
1221
|
+
filteredItems: a,
|
|
1222
|
+
hasResults: a.length > 0,
|
|
1223
|
+
isSearching: s.trim().length > 0,
|
|
1224
|
+
totalResults: i
|
|
1225
1225
|
};
|
|
1226
1226
|
}
|
|
1227
|
-
function
|
|
1227
|
+
function ao(e) {
|
|
1228
1228
|
return e.toLowerCase().replace("ctrl+", "mod+").replace("cmd+", "mod+").replace("control+", "mod+");
|
|
1229
1229
|
}
|
|
1230
|
-
function
|
|
1230
|
+
function de({
|
|
1231
1231
|
navigationData: e,
|
|
1232
|
-
navigateToItem:
|
|
1233
|
-
onToggleSidebar:
|
|
1234
|
-
enabled:
|
|
1232
|
+
navigateToItem: o,
|
|
1233
|
+
onToggleSidebar: s,
|
|
1234
|
+
enabled: r = !0
|
|
1235
1235
|
}) {
|
|
1236
|
-
const
|
|
1236
|
+
const t = uA(() => {
|
|
1237
1237
|
const c = /* @__PURE__ */ new Map(), l = (u) => {
|
|
1238
1238
|
u.forEach((d) => {
|
|
1239
1239
|
const h = d;
|
|
@@ -1241,55 +1241,55 @@ function ie({
|
|
|
1241
1241
|
});
|
|
1242
1242
|
};
|
|
1243
1243
|
return l(e), c;
|
|
1244
|
-
}, [e]),
|
|
1244
|
+
}, [e]), a = F(
|
|
1245
1245
|
(c) => !!c.shortcut,
|
|
1246
1246
|
[]
|
|
1247
|
-
),
|
|
1247
|
+
), i = F(
|
|
1248
1248
|
(c) => c.shortcut,
|
|
1249
1249
|
[]
|
|
1250
|
-
), n =
|
|
1251
|
-
if (!
|
|
1250
|
+
), n = uA(() => {
|
|
1251
|
+
if (!r)
|
|
1252
1252
|
return [];
|
|
1253
1253
|
const c = [];
|
|
1254
|
-
return
|
|
1255
|
-
const d =
|
|
1254
|
+
return s && c.push(["mod+b", s]), t.forEach((l, u) => {
|
|
1255
|
+
const d = ao(u);
|
|
1256
1256
|
c.push([
|
|
1257
1257
|
d,
|
|
1258
1258
|
() => {
|
|
1259
|
-
(typeof l.disabled == "function" ? l.disabled() : l.disabled) ||
|
|
1259
|
+
(typeof l.disabled == "function" ? l.disabled() : l.disabled) || o(l);
|
|
1260
1260
|
}
|
|
1261
1261
|
]);
|
|
1262
1262
|
}), c;
|
|
1263
|
-
}, [
|
|
1264
|
-
return
|
|
1265
|
-
shortcuts:
|
|
1266
|
-
hasShortcut:
|
|
1267
|
-
getShortcut:
|
|
1263
|
+
}, [r, t, o, s]);
|
|
1264
|
+
return He(n), {
|
|
1265
|
+
shortcuts: t,
|
|
1266
|
+
hasShortcut: a,
|
|
1267
|
+
getShortcut: i
|
|
1268
1268
|
};
|
|
1269
1269
|
}
|
|
1270
|
-
function
|
|
1270
|
+
function MA({
|
|
1271
1271
|
item: e,
|
|
1272
|
-
depth:
|
|
1273
|
-
collapsed:
|
|
1274
|
-
active:
|
|
1275
|
-
onClick:
|
|
1276
|
-
textColor:
|
|
1277
|
-
iconColor:
|
|
1272
|
+
depth: o = 0,
|
|
1273
|
+
collapsed: s = !1,
|
|
1274
|
+
active: r = !1,
|
|
1275
|
+
onClick: t,
|
|
1276
|
+
textColor: a,
|
|
1277
|
+
iconColor: i,
|
|
1278
1278
|
hoverColor: n,
|
|
1279
1279
|
itemHeight: c = 40
|
|
1280
1280
|
}) {
|
|
1281
|
-
const l =
|
|
1281
|
+
const l = pA(), { colorScheme: u } = oA(), d = e, [h, f] = fA(!1), y = a || "var(--mantine-color-text)", w = i || l.colors[l.primaryColor][6], m = n || l.colors[l.primaryColor][6], p = n ? `color-mix(in srgb, ${n} 80%, black)` : l.colors[l.primaryColor][8], g = h ? r ? p : m : r ? m : "transparent", S = h || r ? l.white : y, v = h || r ? l.white : w, C = typeof e.disabled == "function" ? e.disabled() : e.disabled;
|
|
1282
1282
|
if (C && e.hideDisabledItem || !e.showInSidebar)
|
|
1283
1283
|
return null;
|
|
1284
|
-
const P =
|
|
1285
|
-
!C &&
|
|
1286
|
-
}, [C,
|
|
1284
|
+
const P = F(() => {
|
|
1285
|
+
!C && t && t(e);
|
|
1286
|
+
}, [C, t, e]), Q = yA.t(e.label), K = () => d.badge ? /* @__PURE__ */ A(re, { size: "xs", color: d.badgeColor || "blue", variant: "filled", children: d.badge }) : null, J = () => d.shortcut ? /* @__PURE__ */ A(ve, { size: "xs", style: { marginLeft: "auto" }, children: d.shortcut }) : null;
|
|
1287
1287
|
if (e.links && e.links.length > 0) {
|
|
1288
|
-
const D = e.links.filter((
|
|
1289
|
-
const
|
|
1290
|
-
return
|
|
1288
|
+
const D = e.links.filter((O) => {
|
|
1289
|
+
const B = typeof O.disabled == "function" ? O.disabled() : O.disabled;
|
|
1290
|
+
return O.showInSidebar && (!B || !O.hideDisabledItem);
|
|
1291
1291
|
});
|
|
1292
|
-
return D.length === 0 && C && e.hideDisabledItem ? null :
|
|
1292
|
+
return D.length === 0 && C && e.hideDisabledItem ? null : s ? /* @__PURE__ */ L(
|
|
1293
1293
|
AA,
|
|
1294
1294
|
{
|
|
1295
1295
|
position: "right-start",
|
|
@@ -1299,8 +1299,8 @@ function DA({
|
|
|
1299
1299
|
openDelay: 100,
|
|
1300
1300
|
closeDelay: 200,
|
|
1301
1301
|
children: [
|
|
1302
|
-
/* @__PURE__ */ A(AA.Target, { children: /* @__PURE__ */ A(
|
|
1303
|
-
|
|
1302
|
+
/* @__PURE__ */ A(AA.Target, { children: /* @__PURE__ */ A(VA, { style: { width: "100%", padding: "8px 0" }, children: /* @__PURE__ */ A(xA, { label: Q, position: "right", withArrow: !0, children: /* @__PURE__ */ A(
|
|
1303
|
+
G,
|
|
1304
1304
|
{
|
|
1305
1305
|
style: {
|
|
1306
1306
|
color: w,
|
|
@@ -1312,33 +1312,33 @@ function DA({
|
|
|
1312
1312
|
children: e.icon
|
|
1313
1313
|
}
|
|
1314
1314
|
) }) }) }),
|
|
1315
|
-
/* @__PURE__ */
|
|
1316
|
-
/* @__PURE__ */ A(AA.Label, { children:
|
|
1317
|
-
D.map((
|
|
1318
|
-
const
|
|
1315
|
+
/* @__PURE__ */ L(AA.Dropdown, { children: [
|
|
1316
|
+
/* @__PURE__ */ A(AA.Label, { children: Q }),
|
|
1317
|
+
D.map((O, B) => {
|
|
1318
|
+
const $ = typeof O.disabled == "function" ? O.disabled() : O.disabled;
|
|
1319
1319
|
return /* @__PURE__ */ A(
|
|
1320
1320
|
AA.Item,
|
|
1321
1321
|
{
|
|
1322
|
-
leftSection:
|
|
1323
|
-
disabled:
|
|
1324
|
-
onClick: () =>
|
|
1325
|
-
children:
|
|
1322
|
+
leftSection: O.icon,
|
|
1323
|
+
disabled: $,
|
|
1324
|
+
onClick: () => t?.(O),
|
|
1325
|
+
children: yA.t(O.label)
|
|
1326
1326
|
},
|
|
1327
|
-
|
|
1327
|
+
B
|
|
1328
1328
|
);
|
|
1329
1329
|
})
|
|
1330
1330
|
] })
|
|
1331
1331
|
]
|
|
1332
1332
|
}
|
|
1333
1333
|
) : /* @__PURE__ */ A(
|
|
1334
|
-
|
|
1334
|
+
be,
|
|
1335
1335
|
{
|
|
1336
|
-
label:
|
|
1337
|
-
leftSection: /* @__PURE__ */ A(
|
|
1338
|
-
rightSection: /* @__PURE__ */
|
|
1339
|
-
|
|
1336
|
+
label: Q,
|
|
1337
|
+
leftSection: /* @__PURE__ */ A(G, { style: { color: v }, children: e.icon }),
|
|
1338
|
+
rightSection: /* @__PURE__ */ L(G, { style: { display: "flex", alignItems: "center", gap: 4, color: S }, children: [
|
|
1339
|
+
K(),
|
|
1340
1340
|
/* @__PURE__ */ A(
|
|
1341
|
-
|
|
1341
|
+
oe,
|
|
1342
1342
|
{
|
|
1343
1343
|
size: 14,
|
|
1344
1344
|
style: {
|
|
@@ -1348,7 +1348,7 @@ function DA({
|
|
|
1348
1348
|
)
|
|
1349
1349
|
] }),
|
|
1350
1350
|
childrenOffset: 28,
|
|
1351
|
-
defaultOpened: e.initiallyOpened ||
|
|
1351
|
+
defaultOpened: e.initiallyOpened || r,
|
|
1352
1352
|
disabled: C,
|
|
1353
1353
|
onMouseEnter: () => f(!0),
|
|
1354
1354
|
onMouseLeave: () => f(!1),
|
|
@@ -1368,69 +1368,69 @@ function DA({
|
|
|
1368
1368
|
paddingLeft: 0
|
|
1369
1369
|
}
|
|
1370
1370
|
},
|
|
1371
|
-
children: D.map((
|
|
1372
|
-
|
|
1371
|
+
children: D.map((O, B) => /* @__PURE__ */ A(
|
|
1372
|
+
MA,
|
|
1373
1373
|
{
|
|
1374
|
-
item:
|
|
1375
|
-
depth:
|
|
1376
|
-
collapsed:
|
|
1377
|
-
active:
|
|
1378
|
-
onClick:
|
|
1379
|
-
textColor:
|
|
1380
|
-
iconColor:
|
|
1374
|
+
item: O,
|
|
1375
|
+
depth: o + 1,
|
|
1376
|
+
collapsed: s,
|
|
1377
|
+
active: r,
|
|
1378
|
+
onClick: t,
|
|
1379
|
+
textColor: a,
|
|
1380
|
+
iconColor: i,
|
|
1381
1381
|
hoverColor: n,
|
|
1382
1382
|
itemHeight: c
|
|
1383
1383
|
},
|
|
1384
|
-
|
|
1384
|
+
B
|
|
1385
1385
|
))
|
|
1386
1386
|
}
|
|
1387
1387
|
);
|
|
1388
1388
|
}
|
|
1389
|
-
return
|
|
1390
|
-
|
|
1389
|
+
return s ? /* @__PURE__ */ A(
|
|
1390
|
+
xA,
|
|
1391
1391
|
{
|
|
1392
|
-
label: d.tooltip ||
|
|
1392
|
+
label: d.tooltip || Q,
|
|
1393
1393
|
position: "right",
|
|
1394
1394
|
withArrow: !0,
|
|
1395
1395
|
children: /* @__PURE__ */ A(
|
|
1396
|
-
|
|
1396
|
+
VA,
|
|
1397
1397
|
{
|
|
1398
1398
|
style: {
|
|
1399
1399
|
width: "100%",
|
|
1400
1400
|
height: c,
|
|
1401
1401
|
cursor: C ? "not-allowed" : "pointer",
|
|
1402
1402
|
opacity: C ? 0.5 : 1,
|
|
1403
|
-
backgroundColor:
|
|
1403
|
+
backgroundColor: r ? m : "transparent",
|
|
1404
1404
|
transition: "background-color 150ms ease"
|
|
1405
1405
|
},
|
|
1406
1406
|
onClick: P,
|
|
1407
1407
|
onMouseEnter: (D) => {
|
|
1408
|
-
C || (D.currentTarget.style.backgroundColor =
|
|
1408
|
+
C || (D.currentTarget.style.backgroundColor = r ? p : m);
|
|
1409
1409
|
},
|
|
1410
1410
|
onMouseLeave: (D) => {
|
|
1411
|
-
D.currentTarget.style.backgroundColor =
|
|
1411
|
+
D.currentTarget.style.backgroundColor = r ? m : "transparent";
|
|
1412
1412
|
},
|
|
1413
|
-
children: /* @__PURE__ */ A(
|
|
1413
|
+
children: /* @__PURE__ */ A(G, { style: { color: r ? l.white : w }, children: e.icon })
|
|
1414
1414
|
}
|
|
1415
1415
|
)
|
|
1416
1416
|
}
|
|
1417
1417
|
) : /* @__PURE__ */ A(
|
|
1418
|
-
|
|
1418
|
+
be,
|
|
1419
1419
|
{
|
|
1420
|
-
label:
|
|
1421
|
-
leftSection: /* @__PURE__ */ A(
|
|
1422
|
-
rightSection: /* @__PURE__ */
|
|
1423
|
-
|
|
1420
|
+
label: Q,
|
|
1421
|
+
leftSection: /* @__PURE__ */ A(G, { style: { color: v }, children: e.icon }),
|
|
1422
|
+
rightSection: /* @__PURE__ */ L(G, { style: { display: "flex", alignItems: "center", gap: 4, color: S }, children: [
|
|
1423
|
+
K(),
|
|
1424
1424
|
J()
|
|
1425
1425
|
] }),
|
|
1426
|
-
active:
|
|
1426
|
+
active: r,
|
|
1427
1427
|
disabled: C,
|
|
1428
1428
|
onClick: P,
|
|
1429
1429
|
onMouseEnter: () => f(!0),
|
|
1430
1430
|
onMouseLeave: () => f(!1),
|
|
1431
1431
|
style: {
|
|
1432
1432
|
height: c,
|
|
1433
|
-
paddingLeft:
|
|
1433
|
+
paddingLeft: o > 0 ? o * 16 + 12 : void 0,
|
|
1434
1434
|
backgroundColor: g,
|
|
1435
1435
|
transition: "background-color 150ms ease"
|
|
1436
1436
|
},
|
|
@@ -1445,21 +1445,21 @@ function DA({
|
|
|
1445
1445
|
}
|
|
1446
1446
|
);
|
|
1447
1447
|
}
|
|
1448
|
-
function
|
|
1448
|
+
function co({
|
|
1449
1449
|
label: e,
|
|
1450
|
-
icon:
|
|
1451
|
-
children:
|
|
1452
|
-
defaultExpanded:
|
|
1453
|
-
expanded:
|
|
1454
|
-
onExpandedChange:
|
|
1455
|
-
groupId:
|
|
1450
|
+
icon: o,
|
|
1451
|
+
children: s,
|
|
1452
|
+
defaultExpanded: r = !0,
|
|
1453
|
+
expanded: t,
|
|
1454
|
+
onExpandedChange: a,
|
|
1455
|
+
groupId: i
|
|
1456
1456
|
}) {
|
|
1457
|
-
const n =
|
|
1458
|
-
d ?
|
|
1459
|
-
}, [d, h,
|
|
1460
|
-
return /* @__PURE__ */
|
|
1457
|
+
const n = pA(), { colorScheme: c } = oA(), [l, u] = fA(r), d = t !== void 0, h = d ? t : l, f = F(() => {
|
|
1458
|
+
d ? a?.(!h) : u((g) => !g);
|
|
1459
|
+
}, [d, h, a]), y = c === "dark" ? n.colors.dark[6] : n.colors.gray[1], w = c === "dark" ? n.colors.dark[5] : n.colors.gray[2], m = c === "dark" ? n.colors.gray[4] : n.colors.gray[7], p = c === "dark" ? n.colors[n.primaryColor][4] : n.colors[n.primaryColor][6];
|
|
1460
|
+
return /* @__PURE__ */ L(G, { children: [
|
|
1461
1461
|
/* @__PURE__ */ A(
|
|
1462
|
-
|
|
1462
|
+
ZA,
|
|
1463
1463
|
{
|
|
1464
1464
|
onClick: f,
|
|
1465
1465
|
w: "100%",
|
|
@@ -1476,13 +1476,13 @@ function so({
|
|
|
1476
1476
|
}
|
|
1477
1477
|
}
|
|
1478
1478
|
},
|
|
1479
|
-
children: /* @__PURE__ */
|
|
1480
|
-
/* @__PURE__ */
|
|
1481
|
-
|
|
1482
|
-
/* @__PURE__ */ A(
|
|
1479
|
+
children: /* @__PURE__ */ L(vA, { justify: "space-between", wrap: "nowrap", children: [
|
|
1480
|
+
/* @__PURE__ */ L(vA, { gap: "xs", wrap: "nowrap", children: [
|
|
1481
|
+
o && /* @__PURE__ */ A(G, { style: { color: p }, children: o }),
|
|
1482
|
+
/* @__PURE__ */ A(zA, { size: "sm", fw: 600, c: m, children: yA.t(e) })
|
|
1483
1483
|
] }),
|
|
1484
1484
|
/* @__PURE__ */ A(
|
|
1485
|
-
|
|
1485
|
+
or,
|
|
1486
1486
|
{
|
|
1487
1487
|
size: 16,
|
|
1488
1488
|
color: m,
|
|
@@ -1495,41 +1495,41 @@ function so({
|
|
|
1495
1495
|
] })
|
|
1496
1496
|
}
|
|
1497
1497
|
),
|
|
1498
|
-
/* @__PURE__ */ A(
|
|
1498
|
+
/* @__PURE__ */ A(Ze, { in: h, children: /* @__PURE__ */ A(G, { mt: 4, children: s }) })
|
|
1499
1499
|
] });
|
|
1500
1500
|
}
|
|
1501
|
-
function
|
|
1501
|
+
function fn({
|
|
1502
1502
|
label: e,
|
|
1503
|
-
children:
|
|
1503
|
+
children: o
|
|
1504
1504
|
}) {
|
|
1505
|
-
const
|
|
1506
|
-
return /* @__PURE__ */
|
|
1505
|
+
const s = pA(), { colorScheme: r } = oA(), t = r === "dark" ? s.colors.gray[5] : s.colors.gray[6];
|
|
1506
|
+
return /* @__PURE__ */ L(G, { children: [
|
|
1507
1507
|
/* @__PURE__ */ A(
|
|
1508
|
-
|
|
1508
|
+
zA,
|
|
1509
1509
|
{
|
|
1510
1510
|
size: "xs",
|
|
1511
1511
|
fw: 700,
|
|
1512
|
-
c:
|
|
1512
|
+
c: t,
|
|
1513
1513
|
tt: "uppercase",
|
|
1514
1514
|
px: "sm",
|
|
1515
1515
|
py: "xs",
|
|
1516
1516
|
style: { letterSpacing: "0.5px" },
|
|
1517
|
-
children: e
|
|
1517
|
+
children: yA.t(e)
|
|
1518
1518
|
}
|
|
1519
1519
|
),
|
|
1520
|
-
|
|
1520
|
+
o
|
|
1521
1521
|
] });
|
|
1522
1522
|
}
|
|
1523
|
-
function
|
|
1523
|
+
function uo({
|
|
1524
1524
|
group: e,
|
|
1525
|
-
active:
|
|
1526
|
-
onClick:
|
|
1527
|
-
showLabel:
|
|
1528
|
-
activeColor:
|
|
1529
|
-
inactiveColor:
|
|
1525
|
+
active: o = !1,
|
|
1526
|
+
onClick: s,
|
|
1527
|
+
showLabel: r = !0,
|
|
1528
|
+
activeColor: t,
|
|
1529
|
+
inactiveColor: a
|
|
1530
1530
|
}) {
|
|
1531
|
-
const
|
|
1532
|
-
|
|
1531
|
+
const i = pA(), { colorScheme: n } = oA(), c = n === "dark" ? i.colors[i.primaryColor][8] : i.colors[i.primaryColor][0], l = n === "dark" ? i.colors[i.primaryColor][6] : i.colors[i.primaryColor][7], u = i.colors[i.primaryColor][2], f = /* @__PURE__ */ L(
|
|
1532
|
+
_,
|
|
1533
1533
|
{
|
|
1534
1534
|
gap: 2,
|
|
1535
1535
|
align: "center",
|
|
@@ -1537,20 +1537,20 @@ function lo({
|
|
|
1537
1537
|
style: { textAlign: "center" },
|
|
1538
1538
|
children: [
|
|
1539
1539
|
/* @__PURE__ */ A(
|
|
1540
|
-
|
|
1540
|
+
RA,
|
|
1541
1541
|
{
|
|
1542
1542
|
size: 48,
|
|
1543
|
-
variant:
|
|
1544
|
-
color:
|
|
1545
|
-
onClick:
|
|
1543
|
+
variant: o ? "filled" : "subtle",
|
|
1544
|
+
color: o ? t ?? c : a ?? l,
|
|
1545
|
+
onClick: s,
|
|
1546
1546
|
style: {
|
|
1547
1547
|
transition: "all 150ms ease"
|
|
1548
1548
|
},
|
|
1549
1549
|
children: e.icon
|
|
1550
1550
|
}
|
|
1551
1551
|
),
|
|
1552
|
-
|
|
1553
|
-
|
|
1552
|
+
r && /* @__PURE__ */ A(
|
|
1553
|
+
zA,
|
|
1554
1554
|
{
|
|
1555
1555
|
size: "xs",
|
|
1556
1556
|
c: u,
|
|
@@ -1566,79 +1566,79 @@ function lo({
|
|
|
1566
1566
|
]
|
|
1567
1567
|
}
|
|
1568
1568
|
);
|
|
1569
|
-
return
|
|
1569
|
+
return r ? f : /* @__PURE__ */ A(xA, { label: e.hint || e.label, position: "right", withArrow: !0, children: f });
|
|
1570
1570
|
}
|
|
1571
|
-
function
|
|
1571
|
+
function pn({
|
|
1572
1572
|
placeholder: e = "Buscar...",
|
|
1573
|
-
value:
|
|
1574
|
-
onChange:
|
|
1575
|
-
onClear:
|
|
1576
|
-
collapsed:
|
|
1573
|
+
value: o,
|
|
1574
|
+
onChange: s,
|
|
1575
|
+
onClear: r,
|
|
1576
|
+
collapsed: t = !1
|
|
1577
1577
|
}) {
|
|
1578
|
-
const
|
|
1578
|
+
const a = pA(), { colorScheme: i } = oA(), n = F(
|
|
1579
1579
|
(u) => {
|
|
1580
|
-
|
|
1580
|
+
s?.(u.currentTarget.value);
|
|
1581
1581
|
},
|
|
1582
|
-
[
|
|
1583
|
-
), c =
|
|
1584
|
-
|
|
1585
|
-
}, [
|
|
1586
|
-
return
|
|
1587
|
-
|
|
1582
|
+
[s]
|
|
1583
|
+
), c = F(() => {
|
|
1584
|
+
s?.(""), r?.();
|
|
1585
|
+
}, [s, r]), l = o && o.length > 0;
|
|
1586
|
+
return t ? /* @__PURE__ */ A(
|
|
1587
|
+
RA,
|
|
1588
1588
|
{
|
|
1589
1589
|
variant: "subtle",
|
|
1590
1590
|
size: "lg",
|
|
1591
|
-
color:
|
|
1592
|
-
children: /* @__PURE__ */ A(
|
|
1591
|
+
color: i === "dark" ? "gray" : "dark",
|
|
1592
|
+
children: /* @__PURE__ */ A(YA, { size: 18 })
|
|
1593
1593
|
}
|
|
1594
1594
|
) : /* @__PURE__ */ A(
|
|
1595
|
-
|
|
1595
|
+
xe,
|
|
1596
1596
|
{
|
|
1597
1597
|
placeholder: e,
|
|
1598
|
-
leftSection: /* @__PURE__ */ A(
|
|
1598
|
+
leftSection: /* @__PURE__ */ A(YA, { size: 16 }),
|
|
1599
1599
|
rightSection: l ? /* @__PURE__ */ A(
|
|
1600
|
-
|
|
1600
|
+
RA,
|
|
1601
1601
|
{
|
|
1602
1602
|
variant: "subtle",
|
|
1603
1603
|
size: "sm",
|
|
1604
1604
|
onClick: c,
|
|
1605
1605
|
style: { cursor: "pointer" },
|
|
1606
|
-
children: /* @__PURE__ */ A(
|
|
1606
|
+
children: /* @__PURE__ */ A(Le, { size: 14 })
|
|
1607
1607
|
}
|
|
1608
|
-
) : /* @__PURE__ */ A(
|
|
1609
|
-
value:
|
|
1608
|
+
) : /* @__PURE__ */ A(ve, { size: "xs", style: { marginRight: 4 }, children: "/" }),
|
|
1609
|
+
value: o,
|
|
1610
1610
|
onChange: n,
|
|
1611
1611
|
size: "sm",
|
|
1612
1612
|
styles: {
|
|
1613
1613
|
input: {
|
|
1614
|
-
backgroundColor:
|
|
1614
|
+
backgroundColor: i === "dark" ? a.colors.dark[6] : a.colors.gray[0]
|
|
1615
1615
|
}
|
|
1616
1616
|
}
|
|
1617
1617
|
}
|
|
1618
1618
|
);
|
|
1619
1619
|
}
|
|
1620
|
-
function
|
|
1620
|
+
function gn({
|
|
1621
1621
|
name: e,
|
|
1622
|
-
email:
|
|
1623
|
-
avatar:
|
|
1624
|
-
onClick:
|
|
1625
|
-
collapsed:
|
|
1622
|
+
email: o,
|
|
1623
|
+
avatar: s,
|
|
1624
|
+
onClick: r,
|
|
1625
|
+
collapsed: t = !1
|
|
1626
1626
|
}) {
|
|
1627
|
-
const
|
|
1628
|
-
if (typeof
|
|
1629
|
-
return /* @__PURE__ */ A(
|
|
1630
|
-
if (
|
|
1631
|
-
return
|
|
1627
|
+
const a = pA(), { colorScheme: i } = oA(), n = i === "dark" ? a.colors.dark[5] : a.colors.gray[1], c = () => {
|
|
1628
|
+
if (typeof s == "string")
|
|
1629
|
+
return /* @__PURE__ */ A(WA, { src: s, radius: "xl", size: t ? "sm" : "md" });
|
|
1630
|
+
if (s)
|
|
1631
|
+
return s;
|
|
1632
1632
|
const l = e ? e.split(" ").map((u) => u[0]).slice(0, 2).join("").toUpperCase() : "?";
|
|
1633
|
-
return /* @__PURE__ */ A(
|
|
1633
|
+
return /* @__PURE__ */ A(WA, { radius: "xl", size: t ? "sm" : "md", color: a.primaryColor, children: l });
|
|
1634
1634
|
};
|
|
1635
|
-
return
|
|
1636
|
-
|
|
1635
|
+
return t ? /* @__PURE__ */ A(xA, { label: e || "Perfil", position: "right", withArrow: !0, children: /* @__PURE__ */ A(
|
|
1636
|
+
ZA,
|
|
1637
1637
|
{
|
|
1638
|
-
onClick:
|
|
1638
|
+
onClick: r,
|
|
1639
1639
|
p: "xs",
|
|
1640
1640
|
style: {
|
|
1641
|
-
borderRadius:
|
|
1641
|
+
borderRadius: a.radius.sm,
|
|
1642
1642
|
display: "flex",
|
|
1643
1643
|
justifyContent: "center",
|
|
1644
1644
|
width: "100%",
|
|
@@ -1654,12 +1654,12 @@ function un({
|
|
|
1654
1654
|
children: c()
|
|
1655
1655
|
}
|
|
1656
1656
|
) }) : /* @__PURE__ */ A(
|
|
1657
|
-
|
|
1657
|
+
ZA,
|
|
1658
1658
|
{
|
|
1659
|
-
onClick:
|
|
1659
|
+
onClick: r,
|
|
1660
1660
|
p: "sm",
|
|
1661
1661
|
style: {
|
|
1662
|
-
borderRadius:
|
|
1662
|
+
borderRadius: a.radius.sm,
|
|
1663
1663
|
width: "100%",
|
|
1664
1664
|
transition: "background-color 150ms ease"
|
|
1665
1665
|
},
|
|
@@ -1670,11 +1670,11 @@ function un({
|
|
|
1670
1670
|
}
|
|
1671
1671
|
}
|
|
1672
1672
|
},
|
|
1673
|
-
children: /* @__PURE__ */
|
|
1673
|
+
children: /* @__PURE__ */ L(vA, { wrap: "nowrap", children: [
|
|
1674
1674
|
c(),
|
|
1675
|
-
/* @__PURE__ */
|
|
1675
|
+
/* @__PURE__ */ L(G, { style: { flex: 1, overflow: "hidden" }, children: [
|
|
1676
1676
|
e && /* @__PURE__ */ A(
|
|
1677
|
-
|
|
1677
|
+
zA,
|
|
1678
1678
|
{
|
|
1679
1679
|
size: "sm",
|
|
1680
1680
|
fw: 500,
|
|
@@ -1686,8 +1686,8 @@ function un({
|
|
|
1686
1686
|
children: e
|
|
1687
1687
|
}
|
|
1688
1688
|
),
|
|
1689
|
-
|
|
1690
|
-
|
|
1689
|
+
o && /* @__PURE__ */ A(
|
|
1690
|
+
zA,
|
|
1691
1691
|
{
|
|
1692
1692
|
size: "xs",
|
|
1693
1693
|
c: "dimmed",
|
|
@@ -1696,163 +1696,163 @@ function un({
|
|
|
1696
1696
|
textOverflow: "ellipsis",
|
|
1697
1697
|
whiteSpace: "nowrap"
|
|
1698
1698
|
},
|
|
1699
|
-
children:
|
|
1699
|
+
children: o
|
|
1700
1700
|
}
|
|
1701
1701
|
)
|
|
1702
1702
|
] }),
|
|
1703
|
-
|
|
1704
|
-
|
|
1703
|
+
r && /* @__PURE__ */ A(
|
|
1704
|
+
oe,
|
|
1705
1705
|
{
|
|
1706
1706
|
size: 16,
|
|
1707
|
-
color:
|
|
1707
|
+
color: i === "dark" ? a.colors.gray[5] : a.colors.gray[6]
|
|
1708
1708
|
}
|
|
1709
1709
|
)
|
|
1710
1710
|
] })
|
|
1711
1711
|
}
|
|
1712
1712
|
);
|
|
1713
1713
|
}
|
|
1714
|
-
function
|
|
1714
|
+
function bn({
|
|
1715
1715
|
value: e,
|
|
1716
|
-
color:
|
|
1717
|
-
size:
|
|
1716
|
+
color: o = "red",
|
|
1717
|
+
size: s = "xs"
|
|
1718
1718
|
}) {
|
|
1719
|
-
const
|
|
1720
|
-
return /* @__PURE__ */ A(
|
|
1719
|
+
const r = typeof e == "number" && e > 99 ? "99+" : e;
|
|
1720
|
+
return /* @__PURE__ */ A(re, { size: s, color: o, variant: "filled", children: r });
|
|
1721
1721
|
}
|
|
1722
|
-
function
|
|
1722
|
+
function mn({
|
|
1723
1723
|
children: e,
|
|
1724
|
-
show:
|
|
1725
|
-
color:
|
|
1726
|
-
processing:
|
|
1724
|
+
show: o = !0,
|
|
1725
|
+
color: s = "red",
|
|
1726
|
+
processing: r = !1
|
|
1727
1727
|
}) {
|
|
1728
1728
|
return /* @__PURE__ */ A(
|
|
1729
|
-
|
|
1729
|
+
_e,
|
|
1730
1730
|
{
|
|
1731
|
-
disabled: !
|
|
1732
|
-
color:
|
|
1733
|
-
processing:
|
|
1731
|
+
disabled: !o,
|
|
1732
|
+
color: s,
|
|
1733
|
+
processing: r,
|
|
1734
1734
|
size: 8,
|
|
1735
1735
|
offset: 4,
|
|
1736
1736
|
children: e
|
|
1737
1737
|
}
|
|
1738
1738
|
);
|
|
1739
1739
|
}
|
|
1740
|
-
function
|
|
1740
|
+
function ue({
|
|
1741
1741
|
itemCount: e = 8,
|
|
1742
|
-
collapsed:
|
|
1743
|
-
backgroundColor:
|
|
1744
|
-
itemHeight:
|
|
1745
|
-
showGroups:
|
|
1746
|
-
groupCount:
|
|
1742
|
+
collapsed: o = !1,
|
|
1743
|
+
backgroundColor: s,
|
|
1744
|
+
itemHeight: r = 40,
|
|
1745
|
+
showGroups: t = !0,
|
|
1746
|
+
groupCount: a = 2
|
|
1747
1747
|
}) {
|
|
1748
|
-
const
|
|
1749
|
-
if (
|
|
1750
|
-
return /* @__PURE__ */ A(
|
|
1748
|
+
const i = pA(), { colorScheme: n } = oA(), c = s || (n === "dark" ? i.colors.dark[7] : i.white);
|
|
1749
|
+
if (o)
|
|
1750
|
+
return /* @__PURE__ */ A(_, { gap: "sm", p: "xs", style: { backgroundColor: c }, children: Array.from({ length: e }).map((d, h) => /* @__PURE__ */ A(cA, { circle: !0, height: 32, width: 32 }, h)) });
|
|
1751
1751
|
const l = (d, h = !1) => Array.from({ length: d }).map((f, y) => {
|
|
1752
1752
|
const w = 60 + Math.random() * 30;
|
|
1753
|
-
return /* @__PURE__ */
|
|
1754
|
-
|
|
1753
|
+
return /* @__PURE__ */ L(
|
|
1754
|
+
vA,
|
|
1755
1755
|
{
|
|
1756
1756
|
gap: "sm",
|
|
1757
1757
|
p: "xs",
|
|
1758
1758
|
style: {
|
|
1759
1759
|
paddingLeft: h ? 24 : void 0,
|
|
1760
|
-
height:
|
|
1760
|
+
height: r
|
|
1761
1761
|
},
|
|
1762
1762
|
children: [
|
|
1763
|
-
/* @__PURE__ */ A(
|
|
1764
|
-
/* @__PURE__ */ A(
|
|
1763
|
+
/* @__PURE__ */ A(cA, { circle: !0, height: 24, width: 24 }),
|
|
1764
|
+
/* @__PURE__ */ A(cA, { height: 14, width: `${w}%`, radius: "sm" })
|
|
1765
1765
|
]
|
|
1766
1766
|
},
|
|
1767
1767
|
y
|
|
1768
1768
|
);
|
|
1769
1769
|
});
|
|
1770
|
-
if (!
|
|
1771
|
-
return /* @__PURE__ */ A(
|
|
1772
|
-
const u = Math.ceil(e /
|
|
1773
|
-
return /* @__PURE__ */ A(
|
|
1774
|
-
/* @__PURE__ */
|
|
1775
|
-
/* @__PURE__ */ A(
|
|
1776
|
-
/* @__PURE__ */ A(
|
|
1770
|
+
if (!t)
|
|
1771
|
+
return /* @__PURE__ */ A(_, { gap: 2, p: "xs", style: { backgroundColor: c }, children: l(e) });
|
|
1772
|
+
const u = Math.ceil(e / a);
|
|
1773
|
+
return /* @__PURE__ */ A(_, { gap: "md", p: "xs", style: { backgroundColor: c }, children: Array.from({ length: a }).map((d, h) => /* @__PURE__ */ L(G, { children: [
|
|
1774
|
+
/* @__PURE__ */ L(vA, { gap: "sm", p: "xs", children: [
|
|
1775
|
+
/* @__PURE__ */ A(cA, { circle: !0, height: 20, width: 20 }),
|
|
1776
|
+
/* @__PURE__ */ A(cA, { height: 12, width: 80 + Math.random() * 40, radius: "sm" })
|
|
1777
1777
|
] }),
|
|
1778
|
-
/* @__PURE__ */ A(
|
|
1779
|
-
h ===
|
|
1778
|
+
/* @__PURE__ */ A(_, { gap: 2, mt: 4, children: l(
|
|
1779
|
+
h === a - 1 ? e - h * u : u,
|
|
1780
1780
|
!0
|
|
1781
1781
|
) })
|
|
1782
1782
|
] }, h)) });
|
|
1783
1783
|
}
|
|
1784
|
-
function
|
|
1784
|
+
function ho({
|
|
1785
1785
|
groupCount: e = 4,
|
|
1786
|
-
width:
|
|
1787
|
-
backgroundColor:
|
|
1786
|
+
width: o = 80,
|
|
1787
|
+
backgroundColor: s
|
|
1788
1788
|
}) {
|
|
1789
|
-
const
|
|
1789
|
+
const r = pA(), { colorScheme: t } = oA(), a = s || (t === "dark" ? r.colors[r.primaryColor][8] : r.colors[r.primaryColor][6]);
|
|
1790
1790
|
return /* @__PURE__ */ A(
|
|
1791
|
-
|
|
1791
|
+
_,
|
|
1792
1792
|
{
|
|
1793
1793
|
gap: "sm",
|
|
1794
1794
|
p: "xs",
|
|
1795
1795
|
align: "center",
|
|
1796
1796
|
style: {
|
|
1797
|
-
width:
|
|
1798
|
-
backgroundColor:
|
|
1797
|
+
width: o,
|
|
1798
|
+
backgroundColor: a,
|
|
1799
1799
|
height: "100%"
|
|
1800
1800
|
},
|
|
1801
|
-
children: Array.from({ length: e }).map((
|
|
1802
|
-
/* @__PURE__ */ A(
|
|
1803
|
-
/* @__PURE__ */ A(
|
|
1801
|
+
children: Array.from({ length: e }).map((i, n) => /* @__PURE__ */ L(_, { gap: 4, align: "center", children: [
|
|
1802
|
+
/* @__PURE__ */ A(cA, { circle: !0, height: 48, width: 48 }),
|
|
1803
|
+
/* @__PURE__ */ A(cA, { height: 10, width: 40, radius: "sm" })
|
|
1804
1804
|
] }, n))
|
|
1805
1805
|
}
|
|
1806
1806
|
);
|
|
1807
1807
|
}
|
|
1808
|
-
function
|
|
1808
|
+
function Cn({
|
|
1809
1809
|
collapsed: e = !1
|
|
1810
1810
|
}) {
|
|
1811
|
-
return e ? /* @__PURE__ */ A(
|
|
1812
|
-
/* @__PURE__ */ A(
|
|
1813
|
-
/* @__PURE__ */
|
|
1814
|
-
/* @__PURE__ */ A(
|
|
1815
|
-
/* @__PURE__ */ A(
|
|
1811
|
+
return e ? /* @__PURE__ */ A(G, { p: "xs", style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ A(cA, { circle: !0, height: 32, width: 32 }) }) : /* @__PURE__ */ L(vA, { gap: "sm", p: "md", children: [
|
|
1812
|
+
/* @__PURE__ */ A(cA, { circle: !0, height: 40, width: 40 }),
|
|
1813
|
+
/* @__PURE__ */ L(_, { gap: 4, style: { flex: 1 }, children: [
|
|
1814
|
+
/* @__PURE__ */ A(cA, { height: 14, width: "70%", radius: "sm" }),
|
|
1815
|
+
/* @__PURE__ */ A(cA, { height: 10, width: "50%", radius: "sm" })
|
|
1816
1816
|
] })
|
|
1817
1817
|
] });
|
|
1818
1818
|
}
|
|
1819
|
-
function
|
|
1819
|
+
function kn({
|
|
1820
1820
|
collapsed: e = !1
|
|
1821
1821
|
}) {
|
|
1822
|
-
return e ? /* @__PURE__ */ A(
|
|
1823
|
-
/* @__PURE__ */ A(
|
|
1824
|
-
/* @__PURE__ */
|
|
1825
|
-
/* @__PURE__ */ A(
|
|
1826
|
-
/* @__PURE__ */ A(
|
|
1822
|
+
return e ? /* @__PURE__ */ A(G, { p: "xs", style: { display: "flex", justifyContent: "center" }, children: /* @__PURE__ */ A(cA, { circle: !0, height: 36, width: 36 }) }) : /* @__PURE__ */ L(vA, { gap: "sm", p: "sm", children: [
|
|
1823
|
+
/* @__PURE__ */ A(cA, { circle: !0, height: 36, width: 36 }),
|
|
1824
|
+
/* @__PURE__ */ L(_, { gap: 4, style: { flex: 1 }, children: [
|
|
1825
|
+
/* @__PURE__ */ A(cA, { height: 12, width: "60%", radius: "sm" }),
|
|
1826
|
+
/* @__PURE__ */ A(cA, { height: 10, width: "80%", radius: "sm" })
|
|
1827
1827
|
] })
|
|
1828
1828
|
] });
|
|
1829
1829
|
}
|
|
1830
|
-
function
|
|
1830
|
+
function he({
|
|
1831
1831
|
message: e,
|
|
1832
|
-
backgroundColor:
|
|
1832
|
+
backgroundColor: o
|
|
1833
1833
|
}) {
|
|
1834
|
-
const
|
|
1834
|
+
const s = pA(), { colorScheme: r } = oA(), t = o || (r === "dark" ? s.colors.dark[7] : s.white), a = r === "dark" ? s.colors.red[4] : s.colors.red[6];
|
|
1835
1835
|
return /* @__PURE__ */ A(
|
|
1836
|
-
|
|
1836
|
+
G,
|
|
1837
1837
|
{
|
|
1838
1838
|
p: "md",
|
|
1839
1839
|
style: {
|
|
1840
|
-
backgroundColor:
|
|
1840
|
+
backgroundColor: t,
|
|
1841
1841
|
display: "flex",
|
|
1842
1842
|
alignItems: "center",
|
|
1843
1843
|
justifyContent: "center",
|
|
1844
1844
|
height: "100%"
|
|
1845
1845
|
},
|
|
1846
1846
|
children: /* @__PURE__ */ A(
|
|
1847
|
-
|
|
1847
|
+
G,
|
|
1848
1848
|
{
|
|
1849
1849
|
p: "md",
|
|
1850
1850
|
style: {
|
|
1851
|
-
backgroundColor:
|
|
1852
|
-
borderRadius:
|
|
1851
|
+
backgroundColor: r === "dark" ? s.colors.dark[6] : s.colors.red[0],
|
|
1852
|
+
borderRadius: s.radius.md,
|
|
1853
1853
|
textAlign: "center",
|
|
1854
|
-
color:
|
|
1855
|
-
fontSize:
|
|
1854
|
+
color: a,
|
|
1855
|
+
fontSize: s.fontSizes.sm
|
|
1856
1856
|
},
|
|
1857
1857
|
children: e
|
|
1858
1858
|
}
|
|
@@ -1860,14 +1860,14 @@ function ce({
|
|
|
1860
1860
|
}
|
|
1861
1861
|
);
|
|
1862
1862
|
}
|
|
1863
|
-
function
|
|
1863
|
+
function fo({
|
|
1864
1864
|
navigationData: e,
|
|
1865
|
-
width:
|
|
1866
|
-
collapsedWidth:
|
|
1867
|
-
height:
|
|
1868
|
-
showSearch:
|
|
1869
|
-
searchPlaceholder:
|
|
1870
|
-
onSearch:
|
|
1865
|
+
width: o = 280,
|
|
1866
|
+
collapsedWidth: s = 60,
|
|
1867
|
+
height: r = "100%",
|
|
1868
|
+
showSearch: t = !1,
|
|
1869
|
+
searchPlaceholder: a = "Buscar...",
|
|
1870
|
+
onSearch: i,
|
|
1871
1871
|
header: n,
|
|
1872
1872
|
footer: c,
|
|
1873
1873
|
footerHeight: l,
|
|
@@ -1884,155 +1884,156 @@ function ao({
|
|
|
1884
1884
|
iconLightColor: v,
|
|
1885
1885
|
activeColor: C,
|
|
1886
1886
|
withBorder: P = !0,
|
|
1887
|
-
withShadow:
|
|
1888
|
-
highlightActiveItem:
|
|
1887
|
+
withShadow: Q = !1,
|
|
1888
|
+
highlightActiveItem: K = !0,
|
|
1889
1889
|
onMenuItemClick: J
|
|
1890
1890
|
}) {
|
|
1891
|
-
const D =
|
|
1891
|
+
const D = pA(), { colorScheme: O } = oA(), { collapsed: B, toggleCollapsed: $ } = ie(), T = O === "dark" ? w ?? D.colors.dark[7] : m ?? D.white, x = O === "dark" ? p ?? D.colors.gray[3] : g ?? D.colors.gray[7], I = O === "dark" ? S ?? D.colors[D.primaryColor][4] : v ?? D.colors[D.primaryColor][6], V = C ? D.colors[C]?.[6] ?? D.colors[D.primaryColor][6] : D.colors[D.primaryColor][6], {
|
|
1892
1892
|
query: q,
|
|
1893
1893
|
setQuery: k,
|
|
1894
1894
|
filteredItems: b,
|
|
1895
|
-
isSearching:
|
|
1896
|
-
clearSearch:
|
|
1897
|
-
} =
|
|
1895
|
+
isSearching: R,
|
|
1896
|
+
clearSearch: M
|
|
1897
|
+
} = io({
|
|
1898
1898
|
navigationData: e,
|
|
1899
|
-
onSearch:
|
|
1900
|
-
}), { navigateToItem:
|
|
1899
|
+
onSearch: i
|
|
1900
|
+
}), { navigateToItem: N, isItemActive: E, isItemOrChildActive: z } = ce({
|
|
1901
1901
|
navigationData: e,
|
|
1902
1902
|
onMenuItemClick: J
|
|
1903
1903
|
});
|
|
1904
|
-
|
|
1904
|
+
de({
|
|
1905
1905
|
navigationData: e,
|
|
1906
|
-
navigateToItem:
|
|
1907
|
-
onToggleSidebar:
|
|
1906
|
+
navigateToItem: N,
|
|
1907
|
+
onToggleSidebar: $,
|
|
1908
1908
|
enabled: !0
|
|
1909
1909
|
});
|
|
1910
|
-
const
|
|
1911
|
-
const eA = /* @__PURE__ */ new Map(),
|
|
1912
|
-
return b.forEach((
|
|
1913
|
-
if (!(!
|
|
1914
|
-
if (
|
|
1915
|
-
const CA = eA.get(
|
|
1916
|
-
CA.push(
|
|
1910
|
+
const dA = B ? s : o, U = uA(() => {
|
|
1911
|
+
const eA = /* @__PURE__ */ new Map(), nA = [];
|
|
1912
|
+
return b.forEach((Y) => {
|
|
1913
|
+
if (!(!Y.showInSidebar || (typeof Y.disabled == "function" ? Y.disabled() : Y.disabled) && Y.hideDisabledItem))
|
|
1914
|
+
if (Y.category) {
|
|
1915
|
+
const CA = eA.get(Y.category) || [];
|
|
1916
|
+
CA.push(Y), eA.set(Y.category, CA);
|
|
1917
1917
|
} else
|
|
1918
|
-
|
|
1919
|
-
}), { groups: eA, ungrouped:
|
|
1920
|
-
}, [b]),
|
|
1918
|
+
nA.push(Y);
|
|
1919
|
+
}), { groups: eA, ungrouped: nA };
|
|
1920
|
+
}, [b]), lA = () => {
|
|
1921
1921
|
if (d)
|
|
1922
|
-
return f || /* @__PURE__ */ A(
|
|
1922
|
+
return f || /* @__PURE__ */ A(he, { message: d, backgroundColor: T });
|
|
1923
1923
|
if (u)
|
|
1924
1924
|
return h || /* @__PURE__ */ A(
|
|
1925
|
-
|
|
1925
|
+
ue,
|
|
1926
1926
|
{
|
|
1927
1927
|
itemCount: y,
|
|
1928
|
-
collapsed:
|
|
1928
|
+
collapsed: B,
|
|
1929
1929
|
backgroundColor: T,
|
|
1930
|
-
showGroups: !
|
|
1930
|
+
showGroups: !B
|
|
1931
1931
|
}
|
|
1932
1932
|
);
|
|
1933
|
-
const eA = () =>
|
|
1934
|
-
|
|
1933
|
+
const eA = () => U.ungrouped.map((Y, rA) => /* @__PURE__ */ A(
|
|
1934
|
+
MA,
|
|
1935
1935
|
{
|
|
1936
|
-
item:
|
|
1937
|
-
collapsed:
|
|
1938
|
-
active:
|
|
1939
|
-
onClick:
|
|
1936
|
+
item: Y,
|
|
1937
|
+
collapsed: B,
|
|
1938
|
+
active: K && E(Y),
|
|
1939
|
+
onClick: N,
|
|
1940
1940
|
textColor: x,
|
|
1941
1941
|
iconColor: I,
|
|
1942
|
-
hoverColor:
|
|
1942
|
+
hoverColor: V
|
|
1943
1943
|
},
|
|
1944
1944
|
`item-${rA}`
|
|
1945
|
-
)),
|
|
1946
|
-
|
|
1945
|
+
)), nA = () => Array.from(U.groups.entries()).map(([rA, CA], kA) => /* @__PURE__ */ A(
|
|
1946
|
+
co,
|
|
1947
1947
|
{
|
|
1948
1948
|
label: rA,
|
|
1949
1949
|
groupId: `group-${kA}`,
|
|
1950
1950
|
defaultExpanded: !0,
|
|
1951
|
-
children: CA.map((
|
|
1952
|
-
|
|
1951
|
+
children: CA.map((IA, H) => /* @__PURE__ */ A(
|
|
1952
|
+
MA,
|
|
1953
1953
|
{
|
|
1954
|
-
item:
|
|
1955
|
-
collapsed:
|
|
1956
|
-
active:
|
|
1957
|
-
onClick:
|
|
1954
|
+
item: IA,
|
|
1955
|
+
collapsed: B,
|
|
1956
|
+
active: K && E(IA),
|
|
1957
|
+
onClick: N,
|
|
1958
1958
|
textColor: x,
|
|
1959
1959
|
iconColor: I
|
|
1960
1960
|
},
|
|
1961
|
-
`group-${kA}-item-${
|
|
1961
|
+
`group-${kA}-item-${H}`
|
|
1962
1962
|
))
|
|
1963
1963
|
},
|
|
1964
1964
|
`group-${kA}`
|
|
1965
1965
|
));
|
|
1966
|
-
return
|
|
1967
|
-
|
|
1968
|
-
|
|
1966
|
+
return B ? /* @__PURE__ */ L(_, { gap: 2, children: [
|
|
1967
|
+
U.ungrouped.map((Y, rA) => /* @__PURE__ */ A(
|
|
1968
|
+
MA,
|
|
1969
1969
|
{
|
|
1970
|
-
item:
|
|
1970
|
+
item: Y,
|
|
1971
1971
|
collapsed: !0,
|
|
1972
|
-
active:
|
|
1973
|
-
onClick:
|
|
1972
|
+
active: K && E(Y),
|
|
1973
|
+
onClick: N,
|
|
1974
1974
|
textColor: x,
|
|
1975
1975
|
iconColor: I
|
|
1976
1976
|
},
|
|
1977
1977
|
`item-${rA}`
|
|
1978
1978
|
)),
|
|
1979
|
-
Array.from(
|
|
1980
|
-
|
|
1979
|
+
Array.from(U.groups.values()).flat().map((Y, rA) => /* @__PURE__ */ A(
|
|
1980
|
+
MA,
|
|
1981
1981
|
{
|
|
1982
|
-
item:
|
|
1982
|
+
item: Y,
|
|
1983
1983
|
collapsed: !0,
|
|
1984
|
-
active:
|
|
1985
|
-
onClick:
|
|
1984
|
+
active: K && E(Y),
|
|
1985
|
+
onClick: N,
|
|
1986
1986
|
textColor: x,
|
|
1987
1987
|
iconColor: I
|
|
1988
1988
|
},
|
|
1989
1989
|
`grouped-item-${rA}`
|
|
1990
1990
|
))
|
|
1991
|
-
] }) : /* @__PURE__ */
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1991
|
+
] }) : /* @__PURE__ */ L(_, { gap: "xs", children: [
|
|
1992
|
+
U.ungrouped.length > 0 && /* @__PURE__ */ A(_, { gap: 2, children: eA() }),
|
|
1993
|
+
U.groups.size > 0 && U.ungrouped.length > 0 && /* @__PURE__ */ A(_A, { my: "xs" }),
|
|
1994
|
+
nA()
|
|
1995
1995
|
] });
|
|
1996
1996
|
};
|
|
1997
1997
|
return /* @__PURE__ */ A(
|
|
1998
|
-
|
|
1998
|
+
Ar,
|
|
1999
1999
|
{
|
|
2000
2000
|
mounted: !0,
|
|
2001
2001
|
transition: "slide-right",
|
|
2002
2002
|
duration: 200,
|
|
2003
2003
|
timingFunction: "ease",
|
|
2004
|
-
children: (eA) => /* @__PURE__ */
|
|
2005
|
-
|
|
2004
|
+
children: (eA) => /* @__PURE__ */ L(
|
|
2005
|
+
G,
|
|
2006
2006
|
{
|
|
2007
2007
|
style: {
|
|
2008
2008
|
...eA,
|
|
2009
|
-
width:
|
|
2010
|
-
height:
|
|
2009
|
+
width: aA(dA),
|
|
2010
|
+
height: typeof r == "number" ? aA(r) : r,
|
|
2011
|
+
minHeight: typeof r == "number" ? aA(r) : r,
|
|
2011
2012
|
backgroundColor: T,
|
|
2012
2013
|
display: "flex",
|
|
2013
2014
|
flexDirection: "column",
|
|
2014
2015
|
overflow: "hidden",
|
|
2015
2016
|
transition: "width 200ms ease",
|
|
2016
|
-
borderRight: P ? `1px solid ${
|
|
2017
|
-
boxShadow:
|
|
2017
|
+
borderRight: P ? `1px solid ${O === "dark" ? D.colors.dark[5] : D.colors.gray[2]}` : void 0,
|
|
2018
|
+
boxShadow: Q ? D.shadows.sm : void 0
|
|
2018
2019
|
},
|
|
2019
2020
|
children: [
|
|
2020
|
-
n && /* @__PURE__ */ A(
|
|
2021
|
-
|
|
2022
|
-
|
|
2021
|
+
n && /* @__PURE__ */ A(G, { style: { flexShrink: 0 }, children: n }),
|
|
2022
|
+
t && !B && /* @__PURE__ */ A(G, { p: "sm", style: { flexShrink: 0 }, children: /* @__PURE__ */ A(
|
|
2023
|
+
xe,
|
|
2023
2024
|
{
|
|
2024
|
-
placeholder:
|
|
2025
|
-
leftSection: /* @__PURE__ */ A(
|
|
2026
|
-
rightSection:
|
|
2027
|
-
|
|
2025
|
+
placeholder: a,
|
|
2026
|
+
leftSection: /* @__PURE__ */ A(YA, { size: 16 }),
|
|
2027
|
+
rightSection: R ? /* @__PURE__ */ A(
|
|
2028
|
+
Le,
|
|
2028
2029
|
{
|
|
2029
2030
|
size: 16,
|
|
2030
2031
|
style: { cursor: "pointer" },
|
|
2031
|
-
onClick:
|
|
2032
|
+
onClick: M
|
|
2032
2033
|
}
|
|
2033
2034
|
) : null,
|
|
2034
2035
|
value: q,
|
|
2035
|
-
onChange: (
|
|
2036
|
+
onChange: (nA) => k(nA.currentTarget.value),
|
|
2036
2037
|
size: "sm"
|
|
2037
2038
|
}
|
|
2038
2039
|
) }),
|
|
@@ -2042,17 +2043,18 @@ function ao({
|
|
|
2042
2043
|
style: { flex: 1 },
|
|
2043
2044
|
scrollbarSize: 6,
|
|
2044
2045
|
type: "hover",
|
|
2045
|
-
|
|
2046
|
+
offsetScrollbars: !0,
|
|
2047
|
+
children: /* @__PURE__ */ A(G, { p: "xs", children: lA() })
|
|
2046
2048
|
}
|
|
2047
2049
|
),
|
|
2048
2050
|
c && /* @__PURE__ */ A(
|
|
2049
|
-
|
|
2051
|
+
G,
|
|
2050
2052
|
{
|
|
2051
2053
|
style: {
|
|
2052
2054
|
flexShrink: 0,
|
|
2053
2055
|
height: l,
|
|
2054
2056
|
backgroundColor: T,
|
|
2055
|
-
borderTop: P ? `1px solid ${
|
|
2057
|
+
borderTop: P ? `1px solid ${O === "dark" ? D.colors.dark[5] : D.colors.gray[2]}` : void 0
|
|
2056
2058
|
},
|
|
2057
2059
|
children: c
|
|
2058
2060
|
}
|
|
@@ -2063,49 +2065,49 @@ function ao({
|
|
|
2063
2065
|
}
|
|
2064
2066
|
);
|
|
2065
2067
|
}
|
|
2066
|
-
function
|
|
2068
|
+
function po(e) {
|
|
2067
2069
|
const {
|
|
2068
|
-
navigationData:
|
|
2069
|
-
collapsed:
|
|
2070
|
-
defaultCollapsed:
|
|
2071
|
-
onCollapsedChange:
|
|
2072
|
-
showKeyboardShortcuts:
|
|
2073
|
-
highlightActiveItem:
|
|
2070
|
+
navigationData: o,
|
|
2071
|
+
collapsed: s,
|
|
2072
|
+
defaultCollapsed: r,
|
|
2073
|
+
onCollapsedChange: t,
|
|
2074
|
+
showKeyboardShortcuts: a,
|
|
2075
|
+
highlightActiveItem: i,
|
|
2074
2076
|
onMenuItemClick: n
|
|
2075
2077
|
} = e;
|
|
2076
2078
|
return /* @__PURE__ */ A(
|
|
2077
|
-
|
|
2079
|
+
ae,
|
|
2078
2080
|
{
|
|
2079
|
-
navigationData:
|
|
2081
|
+
navigationData: o,
|
|
2080
2082
|
variant: "standard",
|
|
2081
|
-
collapsed:
|
|
2082
|
-
defaultCollapsed:
|
|
2083
|
-
onCollapsedChange:
|
|
2084
|
-
showKeyboardShortcuts:
|
|
2085
|
-
highlightActiveItem:
|
|
2083
|
+
collapsed: s,
|
|
2084
|
+
defaultCollapsed: r,
|
|
2085
|
+
onCollapsedChange: t,
|
|
2086
|
+
showKeyboardShortcuts: a,
|
|
2087
|
+
highlightActiveItem: i,
|
|
2086
2088
|
onMenuItemClick: n,
|
|
2087
|
-
children: /* @__PURE__ */ A(
|
|
2089
|
+
children: /* @__PURE__ */ A(fo, { ...e })
|
|
2088
2090
|
}
|
|
2089
2091
|
);
|
|
2090
2092
|
}
|
|
2091
|
-
function
|
|
2093
|
+
function go({
|
|
2092
2094
|
item: e,
|
|
2093
|
-
active:
|
|
2094
|
-
onClick:
|
|
2095
|
-
iconColor:
|
|
2096
|
-
activeColor:
|
|
2095
|
+
active: o,
|
|
2096
|
+
onClick: s,
|
|
2097
|
+
iconColor: r,
|
|
2098
|
+
activeColor: t
|
|
2097
2099
|
}) {
|
|
2098
|
-
|
|
2099
|
-
const { colorScheme:
|
|
2100
|
-
if (
|
|
2100
|
+
pA();
|
|
2101
|
+
const { colorScheme: a } = oA(), i = typeof e.disabled == "function" ? e.disabled() : e.disabled;
|
|
2102
|
+
if (i && e.hideDisabledItem || !e.showInSidebar)
|
|
2101
2103
|
return null;
|
|
2102
|
-
const n =
|
|
2104
|
+
const n = yA.t(e.label);
|
|
2103
2105
|
if (e.links && e.links.length > 0) {
|
|
2104
2106
|
const c = e.links.filter((l) => {
|
|
2105
2107
|
const u = typeof l.disabled == "function" ? l.disabled() : l.disabled;
|
|
2106
2108
|
return l.showInSidebar && (!u || !l.hideDisabledItem);
|
|
2107
2109
|
});
|
|
2108
|
-
return c.length === 0 ? null : /* @__PURE__ */
|
|
2110
|
+
return c.length === 0 ? null : /* @__PURE__ */ L(
|
|
2109
2111
|
AA,
|
|
2110
2112
|
{
|
|
2111
2113
|
position: "right-start",
|
|
@@ -2115,20 +2117,20 @@ function uo({
|
|
|
2115
2117
|
openDelay: 100,
|
|
2116
2118
|
closeDelay: 200,
|
|
2117
2119
|
children: [
|
|
2118
|
-
/* @__PURE__ */ A(AA.Target, { children: /* @__PURE__ */ A(
|
|
2119
|
-
|
|
2120
|
+
/* @__PURE__ */ A(AA.Target, { children: /* @__PURE__ */ A(xA, { label: n, position: "right", withArrow: !0, children: /* @__PURE__ */ A(
|
|
2121
|
+
RA,
|
|
2120
2122
|
{
|
|
2121
2123
|
size: "xl",
|
|
2122
|
-
variant:
|
|
2123
|
-
color:
|
|
2124
|
-
disabled:
|
|
2124
|
+
variant: o ? "filled" : "subtle",
|
|
2125
|
+
color: o ? t : void 0,
|
|
2126
|
+
disabled: i,
|
|
2125
2127
|
style: {
|
|
2126
|
-
opacity:
|
|
2128
|
+
opacity: i ? 0.5 : 1
|
|
2127
2129
|
},
|
|
2128
|
-
children: /* @__PURE__ */ A(
|
|
2130
|
+
children: /* @__PURE__ */ A(G, { style: { color: o ? "white" : r }, children: e.icon })
|
|
2129
2131
|
}
|
|
2130
2132
|
) }) }),
|
|
2131
|
-
/* @__PURE__ */
|
|
2133
|
+
/* @__PURE__ */ L(AA.Dropdown, { children: [
|
|
2132
2134
|
/* @__PURE__ */ A(AA.Label, { children: n }),
|
|
2133
2135
|
c.map((l, u) => {
|
|
2134
2136
|
const d = typeof l.disabled == "function" ? l.disabled() : l.disabled;
|
|
@@ -2137,8 +2139,8 @@ function uo({
|
|
|
2137
2139
|
{
|
|
2138
2140
|
leftSection: l.icon,
|
|
2139
2141
|
disabled: d,
|
|
2140
|
-
onClick: () =>
|
|
2141
|
-
children:
|
|
2142
|
+
onClick: () => s(l),
|
|
2143
|
+
children: yA.t(l.label)
|
|
2142
2144
|
},
|
|
2143
2145
|
u
|
|
2144
2146
|
);
|
|
@@ -2148,29 +2150,29 @@ function uo({
|
|
|
2148
2150
|
}
|
|
2149
2151
|
);
|
|
2150
2152
|
}
|
|
2151
|
-
return /* @__PURE__ */ A(
|
|
2152
|
-
|
|
2153
|
+
return /* @__PURE__ */ A(xA, { label: n, position: "right", withArrow: !0, children: /* @__PURE__ */ A(
|
|
2154
|
+
RA,
|
|
2153
2155
|
{
|
|
2154
2156
|
size: "xl",
|
|
2155
|
-
variant:
|
|
2156
|
-
color:
|
|
2157
|
-
disabled:
|
|
2158
|
-
onClick: () =>
|
|
2157
|
+
variant: o ? "filled" : "subtle",
|
|
2158
|
+
color: o ? t : void 0,
|
|
2159
|
+
disabled: i,
|
|
2160
|
+
onClick: () => s(e),
|
|
2159
2161
|
style: {
|
|
2160
|
-
opacity:
|
|
2162
|
+
opacity: i ? 0.5 : 1
|
|
2161
2163
|
},
|
|
2162
|
-
children: /* @__PURE__ */ A(
|
|
2164
|
+
children: /* @__PURE__ */ A(G, { style: { color: o ? "white" : r }, children: e.icon })
|
|
2163
2165
|
}
|
|
2164
2166
|
) });
|
|
2165
2167
|
}
|
|
2166
|
-
function
|
|
2168
|
+
function bo({
|
|
2167
2169
|
navigationData: e,
|
|
2168
|
-
width:
|
|
2169
|
-
height:
|
|
2170
|
-
header:
|
|
2171
|
-
footer:
|
|
2172
|
-
footerHeight:
|
|
2173
|
-
isLoading:
|
|
2170
|
+
width: o = 60,
|
|
2171
|
+
height: s = "100%",
|
|
2172
|
+
header: r,
|
|
2173
|
+
footer: t,
|
|
2174
|
+
footerHeight: a,
|
|
2175
|
+
isLoading: i = !1,
|
|
2174
2176
|
loadingError: n,
|
|
2175
2177
|
loadingComponent: c,
|
|
2176
2178
|
errorComponent: l,
|
|
@@ -2185,41 +2187,41 @@ function ho({
|
|
|
2185
2187
|
highlightActiveItem: g = !0,
|
|
2186
2188
|
onMenuItemClick: S
|
|
2187
2189
|
}) {
|
|
2188
|
-
const v =
|
|
2190
|
+
const v = pA(), { colorScheme: C } = oA(), { toggleCollapsed: P } = ie(), Q = C === "dark" ? d ?? v.colors.dark[7] : h ?? v.white, K = C === "dark" ? f ?? v.colors[v.primaryColor][4] : y ?? v.colors[v.primaryColor][6], J = w ?? v.primaryColor, { navigateToItem: D, isItemActive: O, isItemOrChildActive: B } = ce({
|
|
2189
2191
|
navigationData: e,
|
|
2190
2192
|
onMenuItemClick: S
|
|
2191
2193
|
});
|
|
2192
|
-
|
|
2194
|
+
de({
|
|
2193
2195
|
navigationData: e,
|
|
2194
2196
|
navigateToItem: D,
|
|
2195
2197
|
onToggleSidebar: P,
|
|
2196
2198
|
enabled: !0
|
|
2197
2199
|
});
|
|
2198
|
-
const
|
|
2199
|
-
|
|
2200
|
+
const $ = e.filter((I) => !(!I.showInSidebar || (typeof I.disabled == "function" ? I.disabled() : I.disabled) && I.hideDisabledItem)), T = () => n ? l || /* @__PURE__ */ A(he, { message: n, backgroundColor: Q }) : i ? c || /* @__PURE__ */ A(
|
|
2201
|
+
ue,
|
|
2200
2202
|
{
|
|
2201
2203
|
itemCount: u,
|
|
2202
2204
|
collapsed: !0,
|
|
2203
|
-
backgroundColor:
|
|
2205
|
+
backgroundColor: Q
|
|
2204
2206
|
}
|
|
2205
|
-
) : /* @__PURE__ */ A(
|
|
2206
|
-
|
|
2207
|
+
) : /* @__PURE__ */ A(_, { gap: "xs", align: "center", children: $.map((I, V) => /* @__PURE__ */ A(
|
|
2208
|
+
go,
|
|
2207
2209
|
{
|
|
2208
2210
|
item: I,
|
|
2209
|
-
active: g && (
|
|
2211
|
+
active: g && (O(I) || B(I)),
|
|
2210
2212
|
onClick: D,
|
|
2211
|
-
iconColor:
|
|
2213
|
+
iconColor: K,
|
|
2212
2214
|
activeColor: J
|
|
2213
2215
|
},
|
|
2214
|
-
|
|
2216
|
+
V
|
|
2215
2217
|
)) }), x = C === "dark" ? v.colors.dark[5] : v.colors.gray[2];
|
|
2216
|
-
return /* @__PURE__ */
|
|
2217
|
-
|
|
2218
|
+
return /* @__PURE__ */ L(
|
|
2219
|
+
G,
|
|
2218
2220
|
{
|
|
2219
2221
|
style: {
|
|
2220
|
-
width:
|
|
2221
|
-
height:
|
|
2222
|
-
backgroundColor:
|
|
2222
|
+
width: aA(o),
|
|
2223
|
+
height: aA(s),
|
|
2224
|
+
backgroundColor: Q,
|
|
2223
2225
|
display: "flex",
|
|
2224
2226
|
flexDirection: "column",
|
|
2225
2227
|
overflow: "hidden",
|
|
@@ -2227,8 +2229,8 @@ function ho({
|
|
|
2227
2229
|
borderRight: m ? `1px solid ${x}` : void 0
|
|
2228
2230
|
},
|
|
2229
2231
|
children: [
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
+
r && /* @__PURE__ */ A(
|
|
2233
|
+
G,
|
|
2232
2234
|
{
|
|
2233
2235
|
style: {
|
|
2234
2236
|
flexShrink: 0,
|
|
@@ -2236,32 +2238,32 @@ function ho({
|
|
|
2236
2238
|
justifyContent: "center",
|
|
2237
2239
|
padding: v.spacing.xs
|
|
2238
2240
|
},
|
|
2239
|
-
children:
|
|
2241
|
+
children: r
|
|
2240
2242
|
}
|
|
2241
2243
|
),
|
|
2242
|
-
|
|
2244
|
+
r && /* @__PURE__ */ A(_A, {}),
|
|
2243
2245
|
/* @__PURE__ */ A(
|
|
2244
2246
|
TA,
|
|
2245
2247
|
{
|
|
2246
2248
|
style: { flex: 1 },
|
|
2247
2249
|
scrollbarSize: 4,
|
|
2248
2250
|
type: "hover",
|
|
2249
|
-
children: /* @__PURE__ */ A(
|
|
2251
|
+
children: /* @__PURE__ */ A(G, { p: "xs", children: T() })
|
|
2250
2252
|
}
|
|
2251
2253
|
),
|
|
2252
|
-
|
|
2253
|
-
/* @__PURE__ */ A(
|
|
2254
|
+
t && /* @__PURE__ */ L(wA, { children: [
|
|
2255
|
+
/* @__PURE__ */ A(_A, {}),
|
|
2254
2256
|
/* @__PURE__ */ A(
|
|
2255
|
-
|
|
2257
|
+
G,
|
|
2256
2258
|
{
|
|
2257
2259
|
style: {
|
|
2258
2260
|
flexShrink: 0,
|
|
2259
|
-
height:
|
|
2261
|
+
height: a,
|
|
2260
2262
|
display: "flex",
|
|
2261
2263
|
justifyContent: "center",
|
|
2262
2264
|
padding: v.spacing.xs
|
|
2263
2265
|
},
|
|
2264
|
-
children:
|
|
2266
|
+
children: t
|
|
2265
2267
|
}
|
|
2266
2268
|
)
|
|
2267
2269
|
] })
|
|
@@ -2269,39 +2271,39 @@ function ho({
|
|
|
2269
2271
|
}
|
|
2270
2272
|
);
|
|
2271
2273
|
}
|
|
2272
|
-
function
|
|
2274
|
+
function mo(e) {
|
|
2273
2275
|
const {
|
|
2274
|
-
navigationData:
|
|
2275
|
-
collapsed:
|
|
2276
|
-
defaultCollapsed:
|
|
2277
|
-
onCollapsedChange:
|
|
2278
|
-
showKeyboardShortcuts:
|
|
2279
|
-
highlightActiveItem:
|
|
2276
|
+
navigationData: o,
|
|
2277
|
+
collapsed: s,
|
|
2278
|
+
defaultCollapsed: r,
|
|
2279
|
+
onCollapsedChange: t,
|
|
2280
|
+
showKeyboardShortcuts: a,
|
|
2281
|
+
highlightActiveItem: i,
|
|
2280
2282
|
onMenuItemClick: n
|
|
2281
2283
|
} = e;
|
|
2282
2284
|
return /* @__PURE__ */ A(
|
|
2283
|
-
|
|
2285
|
+
ae,
|
|
2284
2286
|
{
|
|
2285
|
-
navigationData:
|
|
2287
|
+
navigationData: o,
|
|
2286
2288
|
variant: "minimal",
|
|
2287
|
-
collapsed:
|
|
2288
|
-
defaultCollapsed:
|
|
2289
|
-
onCollapsedChange:
|
|
2290
|
-
showKeyboardShortcuts:
|
|
2291
|
-
highlightActiveItem:
|
|
2289
|
+
collapsed: s,
|
|
2290
|
+
defaultCollapsed: r,
|
|
2291
|
+
onCollapsedChange: t,
|
|
2292
|
+
showKeyboardShortcuts: a,
|
|
2293
|
+
highlightActiveItem: i,
|
|
2292
2294
|
onMenuItemClick: n,
|
|
2293
|
-
children: /* @__PURE__ */ A(
|
|
2295
|
+
children: /* @__PURE__ */ A(bo, { ...e })
|
|
2294
2296
|
}
|
|
2295
2297
|
);
|
|
2296
2298
|
}
|
|
2297
|
-
function
|
|
2299
|
+
function Co({
|
|
2298
2300
|
navigationData: e,
|
|
2299
|
-
width:
|
|
2300
|
-
collapsedWidth:
|
|
2301
|
-
height:
|
|
2302
|
-
groupColumnWidth:
|
|
2303
|
-
defaultGroupIcon:
|
|
2304
|
-
showGroupLabels:
|
|
2301
|
+
width: o = 360,
|
|
2302
|
+
collapsedWidth: s = 60,
|
|
2303
|
+
height: r = "100%",
|
|
2304
|
+
groupColumnWidth: t = 80,
|
|
2305
|
+
defaultGroupIcon: a,
|
|
2306
|
+
showGroupLabels: i = !0,
|
|
2305
2307
|
header: n,
|
|
2306
2308
|
footer: c,
|
|
2307
2309
|
footerHeight: l,
|
|
@@ -2318,232 +2320,232 @@ function po({
|
|
|
2318
2320
|
iconDarkColor: v,
|
|
2319
2321
|
iconLightColor: C,
|
|
2320
2322
|
activeColor: P,
|
|
2321
|
-
groupBackgroundColor:
|
|
2322
|
-
selectedGroupColor:
|
|
2323
|
+
groupBackgroundColor: Q,
|
|
2324
|
+
selectedGroupColor: K,
|
|
2323
2325
|
groupColor: J,
|
|
2324
2326
|
groupLabelDarkColor: D,
|
|
2325
|
-
groupLabelLightColor:
|
|
2326
|
-
withBorder:
|
|
2327
|
-
highlightActiveItem:
|
|
2327
|
+
groupLabelLightColor: O,
|
|
2328
|
+
withBorder: B = !1,
|
|
2329
|
+
highlightActiveItem: $ = !0,
|
|
2328
2330
|
onMenuItemClick: T
|
|
2329
2331
|
}) {
|
|
2330
|
-
const x =
|
|
2331
|
-
collapsed:
|
|
2332
|
+
const x = pA(), { colorScheme: I } = oA(), {
|
|
2333
|
+
collapsed: V,
|
|
2332
2334
|
toggleCollapsed: q,
|
|
2333
2335
|
activeGroup: k,
|
|
2334
2336
|
setActiveGroup: b
|
|
2335
|
-
} =
|
|
2337
|
+
} = ie(), R = I === "dark" ? m ?? x.colors.dark[7] : p ?? x.white, M = I === "dark" ? g ?? x.colors.gray[3] : S ?? x.colors.gray[7], N = I === "dark" ? v ?? x.colors[x.primaryColor][4] : C ?? x.colors[x.primaryColor][6], E = P ? x.colors[P]?.[6] ?? x.colors[x.primaryColor][6] : x.colors[x.primaryColor][6], z = Q || (I === "dark" ? x.colors[x.primaryColor][6] : x.colors[x.primaryColor][7]), dA = K || (I === "dark" ? x.colors[x.primaryColor][8] : x.colors[x.primaryColor][0]), { navigateToItem: U, isItemActive: lA } = ce({
|
|
2336
2338
|
navigationData: e,
|
|
2337
2339
|
onMenuItemClick: T
|
|
2338
2340
|
});
|
|
2339
|
-
|
|
2341
|
+
de({
|
|
2340
2342
|
navigationData: e,
|
|
2341
|
-
navigateToItem:
|
|
2343
|
+
navigateToItem: U,
|
|
2342
2344
|
onToggleSidebar: q,
|
|
2343
2345
|
enabled: !0
|
|
2344
2346
|
});
|
|
2345
|
-
const eA =
|
|
2346
|
-
const
|
|
2347
|
-
return e.forEach((
|
|
2348
|
-
if (!
|
|
2347
|
+
const eA = uA(() => {
|
|
2348
|
+
const H = /* @__PURE__ */ new Map();
|
|
2349
|
+
return e.forEach((tA) => {
|
|
2350
|
+
if (!tA.showInSidebar || (typeof tA.disabled == "function" ? tA.disabled() : tA.disabled) && tA.hideDisabledItem)
|
|
2349
2351
|
return;
|
|
2350
|
-
const
|
|
2351
|
-
icon:
|
|
2352
|
+
const LA = tA.group ?? {
|
|
2353
|
+
icon: a ?? /* @__PURE__ */ A(Re, { size: "2.2rem", stroke: 1 }),
|
|
2352
2354
|
label: "Default",
|
|
2353
2355
|
name: "Default",
|
|
2354
2356
|
hint: "Default",
|
|
2355
2357
|
indexOrder: 0
|
|
2356
|
-
},
|
|
2357
|
-
|
|
2358
|
-
group:
|
|
2359
|
-
items: [
|
|
2358
|
+
}, hA = H.get(LA.name);
|
|
2359
|
+
hA ? hA.items.push(tA) : H.set(LA.name, {
|
|
2360
|
+
group: LA,
|
|
2361
|
+
items: [tA]
|
|
2360
2362
|
});
|
|
2361
|
-
}), Array.from(
|
|
2362
|
-
}, [e,
|
|
2363
|
+
}), Array.from(H.values()).sort((tA, EA) => tA.group.indexOrder - EA.group.indexOrder);
|
|
2364
|
+
}, [e, a]);
|
|
2363
2365
|
iA(() => {
|
|
2364
2366
|
!k && eA.length > 0 && b(eA[0].group.name);
|
|
2365
2367
|
}, [k, eA, b]);
|
|
2366
|
-
const
|
|
2367
|
-
|
|
2368
|
-
}, [
|
|
2369
|
-
|
|
2368
|
+
const nA = uA(() => eA.find((tA) => tA.group.name === k)?.items ?? [], [eA, k]), Y = F((H) => {
|
|
2369
|
+
V ? (q(), b(H)) : k === H ? q() : b(H);
|
|
2370
|
+
}, [V, k, q, b]), rA = V ? 0 : Number(aA(o)) - Number(aA(t)), CA = () => u && eA.length === 0 ? /* @__PURE__ */ A(
|
|
2371
|
+
ho,
|
|
2370
2372
|
{
|
|
2371
2373
|
groupCount: w,
|
|
2372
|
-
width:
|
|
2374
|
+
width: t,
|
|
2373
2375
|
backgroundColor: z
|
|
2374
2376
|
}
|
|
2375
2377
|
) : eA.length <= 1 ? null : /* @__PURE__ */ A(
|
|
2376
|
-
|
|
2378
|
+
_,
|
|
2377
2379
|
{
|
|
2378
2380
|
gap: 4,
|
|
2379
2381
|
p: 4,
|
|
2380
2382
|
align: "center",
|
|
2381
2383
|
style: {
|
|
2382
|
-
width:
|
|
2384
|
+
width: t,
|
|
2383
2385
|
height: "100%",
|
|
2384
2386
|
backgroundColor: z,
|
|
2385
2387
|
flexShrink: 0
|
|
2386
2388
|
},
|
|
2387
|
-
children: eA.map((
|
|
2388
|
-
|
|
2389
|
+
children: eA.map((H) => /* @__PURE__ */ A(
|
|
2390
|
+
uo,
|
|
2389
2391
|
{
|
|
2390
|
-
group:
|
|
2391
|
-
active:
|
|
2392
|
-
onClick: () =>
|
|
2393
|
-
showLabel:
|
|
2394
|
-
activeColor:
|
|
2392
|
+
group: H.group,
|
|
2393
|
+
active: H.group.name === k,
|
|
2394
|
+
onClick: () => Y(H.group.name),
|
|
2395
|
+
showLabel: i,
|
|
2396
|
+
activeColor: dA,
|
|
2395
2397
|
inactiveColor: J
|
|
2396
2398
|
},
|
|
2397
|
-
|
|
2399
|
+
H.group.name
|
|
2398
2400
|
))
|
|
2399
2401
|
}
|
|
2400
|
-
), kA = () => d ? f || /* @__PURE__ */ A(
|
|
2401
|
-
|
|
2402
|
+
), kA = () => d ? f || /* @__PURE__ */ A(he, { message: d, backgroundColor: R }) : u ? h || /* @__PURE__ */ A(
|
|
2403
|
+
ue,
|
|
2402
2404
|
{
|
|
2403
2405
|
itemCount: y,
|
|
2404
2406
|
collapsed: !1,
|
|
2405
|
-
backgroundColor:
|
|
2407
|
+
backgroundColor: R,
|
|
2406
2408
|
showGroups: !1
|
|
2407
2409
|
}
|
|
2408
|
-
) : /* @__PURE__ */ A(
|
|
2409
|
-
|
|
2410
|
+
) : /* @__PURE__ */ A(_, { gap: 2, children: nA.map((H, tA) => /* @__PURE__ */ A(
|
|
2411
|
+
MA,
|
|
2410
2412
|
{
|
|
2411
|
-
item:
|
|
2413
|
+
item: H,
|
|
2412
2414
|
collapsed: !1,
|
|
2413
|
-
active:
|
|
2414
|
-
onClick:
|
|
2415
|
-
textColor:
|
|
2416
|
-
iconColor:
|
|
2417
|
-
hoverColor:
|
|
2415
|
+
active: $ && lA(H),
|
|
2416
|
+
onClick: U,
|
|
2417
|
+
textColor: M,
|
|
2418
|
+
iconColor: N,
|
|
2419
|
+
hoverColor: E
|
|
2418
2420
|
},
|
|
2419
|
-
|
|
2420
|
-
)) }),
|
|
2421
|
-
return eA.length <= 1 ? /* @__PURE__ */
|
|
2422
|
-
n && /* @__PURE__ */ A(
|
|
2421
|
+
tA
|
|
2422
|
+
)) }), IA = I === "dark" ? x.colors.dark[5] : x.colors.gray[2];
|
|
2423
|
+
return eA.length <= 1 ? /* @__PURE__ */ L(BA, { direction: "column", w: V ? s : o, h: "100%", style: { backgroundColor: R }, children: [
|
|
2424
|
+
n && /* @__PURE__ */ A(G, { style: { width: "100%", flexShrink: 0 }, children: n }),
|
|
2423
2425
|
/* @__PURE__ */ A(
|
|
2424
|
-
|
|
2426
|
+
G,
|
|
2425
2427
|
{
|
|
2426
2428
|
style: {
|
|
2427
2429
|
flex: 1,
|
|
2428
2430
|
width: "100%",
|
|
2429
|
-
backgroundColor:
|
|
2431
|
+
backgroundColor: R,
|
|
2430
2432
|
display: "flex",
|
|
2431
2433
|
flexDirection: "column",
|
|
2432
2434
|
overflow: "hidden",
|
|
2433
|
-
borderRight:
|
|
2435
|
+
borderRight: B ? `1px solid ${IA}` : void 0
|
|
2434
2436
|
},
|
|
2435
|
-
children: /* @__PURE__ */ A(TA, { style: { flex: 1 }, scrollbarSize: 6, type: "hover", children: /* @__PURE__ */ A(
|
|
2436
|
-
|
|
2437
|
+
children: /* @__PURE__ */ A(TA, { style: { flex: 1 }, scrollbarSize: 6, type: "hover", children: /* @__PURE__ */ A(G, { p: "xs", children: V ? /* @__PURE__ */ A(_, { gap: "xs", align: "center", children: e.filter((H) => H.showInSidebar ? !((typeof H.disabled == "function" ? H.disabled() : H.disabled) && H.hideDisabledItem) : !1).map((H, tA) => /* @__PURE__ */ A(
|
|
2438
|
+
MA,
|
|
2437
2439
|
{
|
|
2438
|
-
item:
|
|
2440
|
+
item: H,
|
|
2439
2441
|
collapsed: !0,
|
|
2440
|
-
active:
|
|
2441
|
-
onClick:
|
|
2442
|
-
textColor:
|
|
2443
|
-
iconColor:
|
|
2444
|
-
hoverColor:
|
|
2442
|
+
active: $ && lA(H),
|
|
2443
|
+
onClick: U,
|
|
2444
|
+
textColor: M,
|
|
2445
|
+
iconColor: N,
|
|
2446
|
+
hoverColor: E
|
|
2445
2447
|
},
|
|
2446
|
-
|
|
2448
|
+
tA
|
|
2447
2449
|
)) }) : kA() }) })
|
|
2448
2450
|
}
|
|
2449
2451
|
),
|
|
2450
|
-
c && /* @__PURE__ */ A(
|
|
2451
|
-
] }) : /* @__PURE__ */
|
|
2452
|
-
n && /* @__PURE__ */ A(
|
|
2453
|
-
/* @__PURE__ */
|
|
2454
|
-
|
|
2452
|
+
c && /* @__PURE__ */ A(G, { style: { width: "100%", backgroundColor: R, flexShrink: 0 }, children: c })
|
|
2453
|
+
] }) : /* @__PURE__ */ L(BA, { direction: "column", w: V ? t : o, h: "100%", style: { backgroundColor: R }, children: [
|
|
2454
|
+
n && /* @__PURE__ */ A(G, { style: { width: "100%", flexShrink: 0 }, children: n }),
|
|
2455
|
+
/* @__PURE__ */ L(
|
|
2456
|
+
G,
|
|
2455
2457
|
{
|
|
2456
2458
|
style: {
|
|
2457
2459
|
flex: 1,
|
|
2458
2460
|
width: "100%",
|
|
2459
2461
|
display: "flex",
|
|
2460
2462
|
overflow: "hidden",
|
|
2461
|
-
borderRight:
|
|
2463
|
+
borderRight: B ? `1px solid ${IA}` : void 0
|
|
2462
2464
|
},
|
|
2463
2465
|
children: [
|
|
2464
2466
|
CA(),
|
|
2465
2467
|
/* @__PURE__ */ A(
|
|
2466
|
-
|
|
2468
|
+
G,
|
|
2467
2469
|
{
|
|
2468
2470
|
style: {
|
|
2469
|
-
width:
|
|
2471
|
+
width: V ? 0 : rA,
|
|
2470
2472
|
height: "100%",
|
|
2471
|
-
backgroundColor:
|
|
2473
|
+
backgroundColor: R,
|
|
2472
2474
|
overflow: "hidden",
|
|
2473
2475
|
transition: "width 200ms ease",
|
|
2474
2476
|
borderLeft: eA.length > 1 ? `1px solid ${I === "dark" ? x.colors.dark[5] : x.colors.gray[2]}` : void 0
|
|
2475
2477
|
},
|
|
2476
|
-
children: !
|
|
2478
|
+
children: !V && k && /* @__PURE__ */ A(TA, { style: { height: "100%" }, scrollbarSize: 6, type: "hover", children: /* @__PURE__ */ A(G, { p: "xs", children: kA() }) })
|
|
2477
2479
|
}
|
|
2478
2480
|
)
|
|
2479
2481
|
]
|
|
2480
2482
|
}
|
|
2481
2483
|
),
|
|
2482
|
-
c && /* @__PURE__ */ A(
|
|
2484
|
+
c && /* @__PURE__ */ A(G, { style: { width: "100%", backgroundColor: R, flexShrink: 0 }, children: c })
|
|
2483
2485
|
] });
|
|
2484
2486
|
}
|
|
2485
|
-
function
|
|
2487
|
+
function ko(e) {
|
|
2486
2488
|
const {
|
|
2487
|
-
navigationData:
|
|
2488
|
-
collapsed:
|
|
2489
|
-
defaultCollapsed:
|
|
2490
|
-
onCollapsedChange:
|
|
2491
|
-
activeGroup:
|
|
2492
|
-
defaultActiveGroup:
|
|
2489
|
+
navigationData: o,
|
|
2490
|
+
collapsed: s,
|
|
2491
|
+
defaultCollapsed: r,
|
|
2492
|
+
onCollapsedChange: t,
|
|
2493
|
+
activeGroup: a,
|
|
2494
|
+
defaultActiveGroup: i,
|
|
2493
2495
|
onActiveGroupChange: n,
|
|
2494
2496
|
showKeyboardShortcuts: c,
|
|
2495
2497
|
highlightActiveItem: l,
|
|
2496
2498
|
onMenuItemClick: u
|
|
2497
2499
|
} = e;
|
|
2498
2500
|
return /* @__PURE__ */ A(
|
|
2499
|
-
|
|
2501
|
+
ae,
|
|
2500
2502
|
{
|
|
2501
|
-
navigationData:
|
|
2503
|
+
navigationData: o,
|
|
2502
2504
|
variant: "rail",
|
|
2503
|
-
collapsed:
|
|
2504
|
-
defaultCollapsed:
|
|
2505
|
-
onCollapsedChange:
|
|
2506
|
-
activeGroup:
|
|
2507
|
-
defaultActiveGroup:
|
|
2505
|
+
collapsed: s,
|
|
2506
|
+
defaultCollapsed: r,
|
|
2507
|
+
onCollapsedChange: t,
|
|
2508
|
+
activeGroup: a,
|
|
2509
|
+
defaultActiveGroup: i,
|
|
2508
2510
|
onActiveGroupChange: n,
|
|
2509
2511
|
showKeyboardShortcuts: c,
|
|
2510
2512
|
highlightActiveItem: l,
|
|
2511
2513
|
onMenuItemClick: u,
|
|
2512
|
-
children: /* @__PURE__ */ A(
|
|
2514
|
+
children: /* @__PURE__ */ A(Co, { ...e })
|
|
2513
2515
|
}
|
|
2514
2516
|
);
|
|
2515
2517
|
}
|
|
2516
|
-
function
|
|
2518
|
+
function yo({
|
|
2517
2519
|
variant: e = "standard",
|
|
2518
|
-
...
|
|
2520
|
+
...o
|
|
2519
2521
|
}) {
|
|
2520
2522
|
switch (e) {
|
|
2521
2523
|
case "minimal":
|
|
2522
|
-
return /* @__PURE__ */ A(
|
|
2524
|
+
return /* @__PURE__ */ A(mo, { ...o });
|
|
2523
2525
|
case "rail":
|
|
2524
|
-
return /* @__PURE__ */ A(
|
|
2526
|
+
return /* @__PURE__ */ A(ko, { ...o });
|
|
2525
2527
|
case "standard":
|
|
2526
2528
|
default:
|
|
2527
|
-
return /* @__PURE__ */ A(
|
|
2529
|
+
return /* @__PURE__ */ A(po, { ...o });
|
|
2528
2530
|
}
|
|
2529
2531
|
}
|
|
2530
|
-
const
|
|
2532
|
+
const Qe = FA({
|
|
2531
2533
|
isVisible: !0
|
|
2532
|
-
}),
|
|
2533
|
-
const e =
|
|
2534
|
-
return
|
|
2534
|
+
}), yn = () => SA(Qe), fe = FA({ params: {} }), wn = () => SA(fe).params, vn = () => {
|
|
2535
|
+
const e = Pr(), s = SA(fe).params;
|
|
2536
|
+
return uA(() => {
|
|
2535
2537
|
if (!e)
|
|
2536
2538
|
return !1;
|
|
2537
|
-
const
|
|
2538
|
-
return
|
|
2539
|
-
}, [e]) ? e :
|
|
2540
|
-
},
|
|
2541
|
-
const [
|
|
2539
|
+
const t = Object.keys(e);
|
|
2540
|
+
return t.length === 0 ? !1 : t.some((a) => e[a] !== void 0);
|
|
2541
|
+
}, [e]) ? e : s;
|
|
2542
|
+
}, Ne = FA(null), Ge = () => SA(Ne), KA = (e) => null, wo = (e) => e.includes(":"), vo = (e, o) => wo(e) ? o : e, xo = ({ children: e, maxKeepAliveTabs: o = 10, ...s }) => {
|
|
2543
|
+
const [r, t] = fA(/* @__PURE__ */ new Map()), [a, i] = fA(/* @__PURE__ */ new Set()), n = F((p, g) => {
|
|
2542
2544
|
let S = null, v = 1 / 0;
|
|
2543
2545
|
return p.forEach((C, P) => {
|
|
2544
2546
|
P !== g && C.lastAccessedAt < v && (v = C.lastAccessedAt, S = P);
|
|
2545
2547
|
}), S;
|
|
2546
|
-
}, []), c =
|
|
2548
|
+
}, []), c = F((p, g, S) => {
|
|
2547
2549
|
if (!p || typeof p != "string") {
|
|
2548
2550
|
console.error("[ArchbaseAliveAbleRoutes] Invalid cacheKey for component registration:", p);
|
|
2549
2551
|
return;
|
|
@@ -2552,15 +2554,15 @@ const Pe = NA({
|
|
|
2552
2554
|
console.warn("[ArchbaseAliveAbleRoutes] Attempting to register undefined component for cacheKey:", p);
|
|
2553
2555
|
return;
|
|
2554
2556
|
}
|
|
2555
|
-
|
|
2557
|
+
t((v) => {
|
|
2556
2558
|
if (v.has(p)) {
|
|
2557
|
-
const P = new Map(v),
|
|
2558
|
-
return P.set(p, { ...
|
|
2559
|
+
const P = new Map(v), Q = v.get(p);
|
|
2560
|
+
return P.set(p, { ...Q, lastAccessedAt: Date.now() }), P;
|
|
2559
2561
|
}
|
|
2560
2562
|
const C = new Map(v);
|
|
2561
|
-
if (C.size >=
|
|
2563
|
+
if (C.size >= o) {
|
|
2562
2564
|
const P = n(C, p);
|
|
2563
|
-
P && (C.delete(P), console.log(`[ArchbaseAliveAbleRoutes] LRU eviction: removed "${P}" (cache size: ${C.size}/${
|
|
2565
|
+
P && (C.delete(P), console.log(`[ArchbaseAliveAbleRoutes] LRU eviction: removed "${P}" (cache size: ${C.size}/${o})`));
|
|
2564
2566
|
}
|
|
2565
2567
|
return C.set(p, {
|
|
2566
2568
|
element: g,
|
|
@@ -2568,8 +2570,8 @@ const Pe = NA({
|
|
|
2568
2570
|
lastAccessedAt: Date.now()
|
|
2569
2571
|
}), C;
|
|
2570
2572
|
});
|
|
2571
|
-
}, [
|
|
2572
|
-
|
|
2573
|
+
}, [o, n]), l = F((p) => {
|
|
2574
|
+
t((g) => {
|
|
2573
2575
|
const S = g.get(p);
|
|
2574
2576
|
if (!S)
|
|
2575
2577
|
return g;
|
|
@@ -2579,76 +2581,76 @@ const Pe = NA({
|
|
|
2579
2581
|
const C = new Map(g);
|
|
2580
2582
|
return C.set(p, { ...S, lastAccessedAt: v }), C;
|
|
2581
2583
|
});
|
|
2582
|
-
}, []), u =
|
|
2583
|
-
|
|
2584
|
+
}, []), u = F((p, g) => {
|
|
2585
|
+
t((S) => {
|
|
2584
2586
|
const v = S.get(p);
|
|
2585
2587
|
if (!v || !(JSON.stringify(v.params) !== JSON.stringify(g)))
|
|
2586
2588
|
return S;
|
|
2587
2589
|
const P = new Map(S);
|
|
2588
2590
|
return P.set(p, { ...v, params: g, lastAccessedAt: Date.now() }), P;
|
|
2589
2591
|
});
|
|
2590
|
-
}, []), d =
|
|
2592
|
+
}, []), d = F((p) => {
|
|
2591
2593
|
if (!p) {
|
|
2592
2594
|
console.error("[ArchbaseAliveAbleRoutes] Cannot unregister: invalid cacheKey");
|
|
2593
2595
|
return;
|
|
2594
2596
|
}
|
|
2595
|
-
|
|
2597
|
+
t((g) => {
|
|
2596
2598
|
g.has(p) || console.warn("[ArchbaseAliveAbleRoutes] Attempting to unregister non-existent cacheKey:", p);
|
|
2597
2599
|
const S = new Map(g);
|
|
2598
2600
|
return S.delete(p), S;
|
|
2599
|
-
}),
|
|
2601
|
+
}), i((g) => {
|
|
2600
2602
|
const S = new Set(g);
|
|
2601
2603
|
return S.delete(p), S;
|
|
2602
2604
|
});
|
|
2603
|
-
}, []), h =
|
|
2604
|
-
|
|
2605
|
+
}, []), h = F((p) => {
|
|
2606
|
+
i((g) => {
|
|
2605
2607
|
const S = new Set(g);
|
|
2606
2608
|
return S.add(p), S;
|
|
2607
2609
|
});
|
|
2608
|
-
}, []), f =
|
|
2609
|
-
cache:
|
|
2610
|
-
requestedUnregister:
|
|
2610
|
+
}, []), f = bA.Children.toArray(e), y = f.filter((p) => bA.isValidElement(p) ? p.type === KA : !1), w = f.filter((p) => bA.isValidElement(p) ? p.type !== KA : !1), m = uA(() => ({
|
|
2611
|
+
cache: r,
|
|
2612
|
+
requestedUnregister: a,
|
|
2611
2613
|
register: c,
|
|
2612
2614
|
unregister: d,
|
|
2613
2615
|
updateParams: u,
|
|
2614
2616
|
requestUnregister: h,
|
|
2615
2617
|
touchAccess: l,
|
|
2616
|
-
maxKeepAliveTabs:
|
|
2617
|
-
}), [
|
|
2618
|
-
return /* @__PURE__ */
|
|
2619
|
-
y.map((p) => /* @__PURE__ */ A(
|
|
2620
|
-
/* @__PURE__ */ A(
|
|
2618
|
+
maxKeepAliveTabs: o
|
|
2619
|
+
}), [r, a, c, d, u, h, l, o]);
|
|
2620
|
+
return /* @__PURE__ */ L(Ne.Provider, { value: m, children: [
|
|
2621
|
+
y.map((p) => /* @__PURE__ */ A(So, { ...p.props, routesProps: s }, p.key)),
|
|
2622
|
+
/* @__PURE__ */ A(ze, { ...s, children: w })
|
|
2621
2623
|
] });
|
|
2622
|
-
},
|
|
2623
|
-
const
|
|
2624
|
-
if (!
|
|
2624
|
+
}, So = ({ component: e, routesProps: o, ...s }) => {
|
|
2625
|
+
const r = Ge();
|
|
2626
|
+
if (!r)
|
|
2625
2627
|
throw new Error("DisplayRoute must be used within ArchbaseAliveAbleRoutes provider");
|
|
2626
|
-
const { cache:
|
|
2627
|
-
|
|
2628
|
+
const { cache: t, requestedUnregister: a, register: i, unregister: n, updateParams: c, touchAccess: l } = r, [u, d] = fA(!1), [h, f] = fA({}), y = mA(null), w = se(), m = uA(() => s.path ? vo(s.path, w.pathname) : null, [s.path, w.pathname]), p = uA(() => s.path ? Mr({ path: s.path, end: !0 }, w.pathname)?.params || {} : {}, [s.path, w.pathname]), g = mA(/* @__PURE__ */ new Set());
|
|
2629
|
+
GA(() => {
|
|
2628
2630
|
if (u && e && m && !g.current.has(m)) {
|
|
2629
|
-
const P = typeof e == "function" ?
|
|
2630
|
-
|
|
2631
|
+
const P = typeof e == "function" ? bA.createElement(e) : e;
|
|
2632
|
+
i(m, P, p), g.current.add(m);
|
|
2631
2633
|
}
|
|
2632
|
-
}, [u, e, m,
|
|
2634
|
+
}, [u, e, m, i, p]), GA(() => {
|
|
2633
2635
|
u && m && g.current.has(m) && (c(m, p), f(p));
|
|
2634
2636
|
}, [u, m, p, c]), iA(() => {
|
|
2635
|
-
u && m &&
|
|
2636
|
-
}, [u, m, l,
|
|
2637
|
-
m &&
|
|
2638
|
-
}, [m,
|
|
2639
|
-
const S = m ?
|
|
2637
|
+
u && m && t.has(m) && l(m);
|
|
2638
|
+
}, [u, m, l, t]), GA(() => {
|
|
2639
|
+
m && a.has(m) && (n(m), g.current.delete(m));
|
|
2640
|
+
}, [m, a, n]);
|
|
2641
|
+
const S = m ? t.get(m) : null, v = uA(() => u ? p : S ? S.params : h, [u, p, S, h]), C = mA(u);
|
|
2640
2642
|
return iA(() => {
|
|
2641
2643
|
const P = C.current;
|
|
2642
2644
|
if (C.current = u, u && !P && y.current) {
|
|
2643
|
-
const
|
|
2645
|
+
const Q = setTimeout(() => {
|
|
2644
2646
|
window.dispatchEvent(new Event("resize")), y.current?.dispatchEvent(
|
|
2645
2647
|
new CustomEvent("keepalive:visible", { bubbles: !0 })
|
|
2646
2648
|
);
|
|
2647
2649
|
}, 50);
|
|
2648
|
-
return () => clearTimeout(
|
|
2650
|
+
return () => clearTimeout(Q);
|
|
2649
2651
|
}
|
|
2650
|
-
}, [u]), /* @__PURE__ */
|
|
2651
|
-
S && /* @__PURE__ */ A(
|
|
2652
|
+
}, [u]), /* @__PURE__ */ L(wA, { children: [
|
|
2653
|
+
S && /* @__PURE__ */ A(Qe.Provider, { value: { isVisible: u }, children: /* @__PURE__ */ A(fe.Provider, { value: { params: v }, children: /* @__PURE__ */ A(
|
|
2652
2654
|
"div",
|
|
2653
2655
|
{
|
|
2654
2656
|
ref: y,
|
|
@@ -2668,12 +2670,12 @@ const Pe = NA({
|
|
|
2668
2670
|
children: S.element
|
|
2669
2671
|
}
|
|
2670
2672
|
) }) }),
|
|
2671
|
-
/* @__PURE__ */ A(
|
|
2672
|
-
|
|
2673
|
+
/* @__PURE__ */ A(ze, { ...o, children: /* @__PURE__ */ A(
|
|
2674
|
+
ee,
|
|
2673
2675
|
{
|
|
2674
|
-
...
|
|
2676
|
+
...s,
|
|
2675
2677
|
element: /* @__PURE__ */ A(
|
|
2676
|
-
|
|
2678
|
+
Io,
|
|
2677
2679
|
{
|
|
2678
2680
|
onRouteMatchChange: d,
|
|
2679
2681
|
onParamsChange: f
|
|
@@ -2682,45 +2684,45 @@ const Pe = NA({
|
|
|
2682
2684
|
}
|
|
2683
2685
|
) })
|
|
2684
2686
|
] });
|
|
2685
|
-
},
|
|
2686
|
-
const
|
|
2687
|
-
return
|
|
2687
|
+
}, Io = ({ onRouteMatchChange: e, onParamsChange: o }) => {
|
|
2688
|
+
const s = se();
|
|
2689
|
+
return GA(() => (e(!0), () => {
|
|
2688
2690
|
e(!1);
|
|
2689
|
-
}), [e]),
|
|
2690
|
-
}, [
|
|
2691
|
+
}), [e]), GA(() => {
|
|
2692
|
+
}, [s.pathname, o]), null;
|
|
2691
2693
|
};
|
|
2692
|
-
function
|
|
2694
|
+
function Eo(e, o, s, r, t, a) {
|
|
2693
2695
|
return /* @__PURE__ */ A(
|
|
2694
2696
|
"div",
|
|
2695
2697
|
{
|
|
2696
2698
|
style: {
|
|
2697
2699
|
position: "absolute",
|
|
2698
|
-
left:
|
|
2700
|
+
left: s.collapsed ? `calc(${t} - 14px)` : `calc(${r} - 14px)`,
|
|
2699
2701
|
top: "calc(100vh / 2)",
|
|
2700
2702
|
zIndex: "101"
|
|
2701
2703
|
},
|
|
2702
2704
|
children: /* @__PURE__ */ A(
|
|
2703
|
-
|
|
2705
|
+
RA,
|
|
2704
2706
|
{
|
|
2705
|
-
bg:
|
|
2706
|
-
color:
|
|
2707
|
+
bg: o.colors[o.primaryColor][4],
|
|
2708
|
+
color: o.colors[o.primaryColor][6],
|
|
2707
2709
|
variant: "filled",
|
|
2708
2710
|
radius: "xl",
|
|
2709
|
-
onClick:
|
|
2710
|
-
children:
|
|
2711
|
+
onClick: a,
|
|
2712
|
+
children: s.collapsed ? /* @__PURE__ */ A(oe, {}) : /* @__PURE__ */ A(nr, {})
|
|
2711
2713
|
}
|
|
2712
2714
|
)
|
|
2713
2715
|
}
|
|
2714
2716
|
);
|
|
2715
2717
|
}
|
|
2716
|
-
function
|
|
2718
|
+
function Ro({
|
|
2717
2719
|
children: e,
|
|
2718
|
-
header:
|
|
2719
|
-
footer:
|
|
2720
|
-
sideBarWidth:
|
|
2721
|
-
sideBarCollapsedWidth:
|
|
2722
|
-
sideBarHiddenBreakPoint:
|
|
2723
|
-
sideBarFooterHeight:
|
|
2720
|
+
header: o,
|
|
2721
|
+
footer: s,
|
|
2722
|
+
sideBarWidth: r = "360px",
|
|
2723
|
+
sideBarCollapsedWidth: t = "74px",
|
|
2724
|
+
sideBarHiddenBreakPoint: a,
|
|
2725
|
+
sideBarFooterHeight: i,
|
|
2724
2726
|
sideBarFooterContent: n,
|
|
2725
2727
|
onCollapsedSideBar: c,
|
|
2726
2728
|
onHiddenSidebar: l,
|
|
@@ -2737,124 +2739,127 @@ function xo({
|
|
|
2737
2739
|
footerHeight: v,
|
|
2738
2740
|
iconsWithBackground: C,
|
|
2739
2741
|
menuItemHeight: P,
|
|
2740
|
-
showSideBar:
|
|
2741
|
-
showHeader:
|
|
2742
|
+
showSideBar: Q = !0,
|
|
2743
|
+
showHeader: K = !0,
|
|
2742
2744
|
headerStyle: J = {},
|
|
2743
2745
|
highlightActiveMenuItem: D = !0,
|
|
2744
|
-
customRenderSidebar:
|
|
2745
|
-
showCollapsedButton:
|
|
2746
|
-
sideBarBackgroundDarkColor:
|
|
2746
|
+
customRenderSidebar: O,
|
|
2747
|
+
showCollapsedButton: B = !0,
|
|
2748
|
+
sideBarBackgroundDarkColor: $,
|
|
2747
2749
|
sideBarBackgroundLightColor: T,
|
|
2748
2750
|
sideBarTextDarkColor: x,
|
|
2749
2751
|
sideBarTextLightColor: I,
|
|
2750
|
-
sideBarIconDarkColor:
|
|
2752
|
+
sideBarIconDarkColor: V,
|
|
2751
2753
|
sideBarIconLightColor: q,
|
|
2752
2754
|
sideBarCollapsedSubmenuWidth: k,
|
|
2753
2755
|
sidebarActiveColor: b,
|
|
2754
|
-
maxKeepAliveTabs:
|
|
2755
|
-
sidebarVariant:
|
|
2756
|
-
sidebarShowSearch:
|
|
2756
|
+
maxKeepAliveTabs: R = 10,
|
|
2757
|
+
sidebarVariant: M = "legacy",
|
|
2758
|
+
sidebarShowSearch: N = !1
|
|
2757
2759
|
}) {
|
|
2758
|
-
const
|
|
2759
|
-
`(max-width: ${
|
|
2760
|
-
),
|
|
2761
|
-
|
|
2762
|
-
}, rA = (
|
|
2763
|
-
|
|
2764
|
-
}, CA = () =>
|
|
2765
|
-
let
|
|
2766
|
-
return h && (
|
|
2767
|
-
},
|
|
2768
|
-
|
|
2769
|
-
return
|
|
2770
|
-
|
|
2771
|
-
|
|
2772
|
-
|
|
2773
|
-
|
|
2774
|
-
|
|
2775
|
-
|
|
2776
|
-
|
|
2777
|
-
|
|
2760
|
+
const E = pA(), z = SA(jA), { colorScheme: dA } = oA(), U = Qr(), [lA, eA] = Nr(), nA = $r(
|
|
2761
|
+
`(max-width: ${a ? aA(a) : E.breakpoints.md})`
|
|
2762
|
+
), Y = (j) => {
|
|
2763
|
+
j.link && (j.routeParams ? U(j.link, {}, j.routeParams) : U(j.link));
|
|
2764
|
+
}, rA = (j, sA) => {
|
|
2765
|
+
j == sA && z.collapsed && z.setCollapsed(!1), z.setCollapsed(j == sA);
|
|
2766
|
+
}, CA = () => {
|
|
2767
|
+
let j = 0, sA = 0;
|
|
2768
|
+
return h && (j = Number(aA(h))), i && (sA = Number(aA(i))), `calc(100vh - var(--app-shell-header-offset, 0px) - ${j + sA}px)`;
|
|
2769
|
+
}, kA = () => {
|
|
2770
|
+
let j = 0, sA = 0;
|
|
2771
|
+
return h && (j = Number(aA(h))), i && (sA = Number(aA(i))), `calc(100vh - 28px - ${j + sA}px)`;
|
|
2772
|
+
}, IA = uA(() => {
|
|
2773
|
+
const j = [];
|
|
2774
|
+
return z.navigationData.forEach((sA, $A) => {
|
|
2775
|
+
sA.links ? sA.links.forEach((PA, pe) => {
|
|
2776
|
+
PA.keepAlive ? j.push(
|
|
2777
|
+
/* @__PURE__ */ A(KA, { path: PA.link, component: PA.component }, `${PA.link}_${pe}`)
|
|
2778
|
+
) : j.push(/* @__PURE__ */ A(ee, { path: PA.link, element: PA.component }, `${PA.link}_${pe}`));
|
|
2779
|
+
}) : sA.keepAlive ? j.push(
|
|
2780
|
+
/* @__PURE__ */ A(KA, { path: sA.link, component: sA.component }, `${sA.link}_${$A}`)
|
|
2781
|
+
) : j.push(
|
|
2782
|
+
/* @__PURE__ */ A(ee, { path: sA.link, element: sA.component }, `${sA.link}_${$A}`)
|
|
2778
2783
|
);
|
|
2779
|
-
}),
|
|
2780
|
-
}, [z.navigationData, z.collapsed]),
|
|
2784
|
+
}), j;
|
|
2785
|
+
}, [z.navigationData, z.collapsed]), H = F(() => {
|
|
2781
2786
|
z.setCollapsed(!z.collapsed);
|
|
2782
|
-
}, [z.setCollapsed, z.collapsed]),
|
|
2787
|
+
}, [z.setCollapsed, z.collapsed]), tA = F(() => {
|
|
2783
2788
|
z.setHidden(!z.hidden);
|
|
2784
2789
|
}, [z.setHidden, z.hidden]);
|
|
2785
2790
|
iA(() => {
|
|
2786
2791
|
l && l(z.hidden);
|
|
2787
|
-
}, [z.hidden,
|
|
2792
|
+
}, [z.hidden, tA]), iA(() => {
|
|
2788
2793
|
c && c(z.collapsed);
|
|
2789
2794
|
}, [z.collapsed, c]);
|
|
2790
|
-
const
|
|
2791
|
-
|
|
2795
|
+
const EA = M === "minimal" || z.collapsed ? t : r, LA = (j, sA = !1) => O ? O({ width: r, height: j, isHidden: nA }) : M === "legacy" ? /* @__PURE__ */ A(
|
|
2796
|
+
lo,
|
|
2792
2797
|
{
|
|
2793
2798
|
navigationData: z.navigationData,
|
|
2794
|
-
sidebarHeight:
|
|
2795
|
-
sidebarGroupWidth:
|
|
2796
|
-
sidebarCollapsedWidth:
|
|
2799
|
+
sidebarHeight: j,
|
|
2800
|
+
sidebarGroupWidth: t,
|
|
2801
|
+
sidebarCollapsedWidth: t,
|
|
2797
2802
|
selectedGroupColor: y,
|
|
2798
2803
|
groupColor: w,
|
|
2799
2804
|
backgroundGroupColor: m,
|
|
2800
2805
|
groupLabelDarkColor: p,
|
|
2801
2806
|
groupLabelLightColor: g,
|
|
2802
2807
|
showGroupLabels: !1,
|
|
2803
|
-
collapsed:
|
|
2804
|
-
sidebarWidth:
|
|
2805
|
-
isHidden:
|
|
2806
|
-
onMenuItemClick:
|
|
2808
|
+
collapsed: sA ? !1 : z.collapsed,
|
|
2809
|
+
sidebarWidth: r,
|
|
2810
|
+
isHidden: nA,
|
|
2811
|
+
onMenuItemClick: Y,
|
|
2807
2812
|
onClickActionIcon: rA,
|
|
2808
|
-
sideBarFooterHeight:
|
|
2813
|
+
sideBarFooterHeight: i,
|
|
2809
2814
|
sideBarFooterContent: n,
|
|
2810
2815
|
sideBarHeaderContent: f,
|
|
2811
|
-
theme:
|
|
2812
|
-
sidebarRef:
|
|
2816
|
+
theme: E,
|
|
2817
|
+
sidebarRef: lA,
|
|
2813
2818
|
defaultGroupIcon: d,
|
|
2814
2819
|
selectedGroupName: u,
|
|
2815
2820
|
iconsWithBackground: C,
|
|
2816
2821
|
menuItemHeight: P,
|
|
2817
2822
|
highlightActiveMenuItem: D,
|
|
2818
|
-
backgroundDarkColor:
|
|
2823
|
+
backgroundDarkColor: $,
|
|
2819
2824
|
backgroundLightColor: T,
|
|
2820
2825
|
textDarkColor: x,
|
|
2821
2826
|
textLightColor: I,
|
|
2822
|
-
iconDarkColor:
|
|
2827
|
+
iconDarkColor: V,
|
|
2823
2828
|
iconLightColor: q,
|
|
2824
2829
|
collapsedSubmenuWidth: k,
|
|
2825
2830
|
isLoading: z.isLoadingPermissions,
|
|
2826
2831
|
loadingError: z.permissionsError
|
|
2827
2832
|
}
|
|
2828
2833
|
) : /* @__PURE__ */ A(
|
|
2829
|
-
|
|
2834
|
+
yo,
|
|
2830
2835
|
{
|
|
2831
2836
|
navigationData: z.navigationData,
|
|
2832
|
-
variant:
|
|
2833
|
-
width:
|
|
2834
|
-
collapsedWidth:
|
|
2835
|
-
height:
|
|
2836
|
-
groupColumnWidth:
|
|
2837
|
-
collapsed:
|
|
2838
|
-
onCollapsedChange: (
|
|
2837
|
+
variant: M,
|
|
2838
|
+
width: EA,
|
|
2839
|
+
collapsedWidth: t,
|
|
2840
|
+
height: j,
|
|
2841
|
+
groupColumnWidth: t,
|
|
2842
|
+
collapsed: sA ? !1 : z.collapsed,
|
|
2843
|
+
onCollapsedChange: ($A) => z.setCollapsed($A),
|
|
2839
2844
|
activeGroup: u,
|
|
2840
|
-
onActiveGroupChange: (
|
|
2845
|
+
onActiveGroupChange: ($A) => {
|
|
2841
2846
|
},
|
|
2842
2847
|
defaultGroupIcon: d,
|
|
2843
2848
|
showGroupLabels: !1,
|
|
2844
|
-
onMenuItemClick:
|
|
2845
|
-
showSearch:
|
|
2849
|
+
onMenuItemClick: Y,
|
|
2850
|
+
showSearch: N,
|
|
2846
2851
|
header: f,
|
|
2847
2852
|
footer: n,
|
|
2848
|
-
footerHeight:
|
|
2853
|
+
footerHeight: i,
|
|
2849
2854
|
isLoading: z.isLoadingPermissions,
|
|
2850
2855
|
loadingError: z.permissionsError,
|
|
2851
|
-
theme:
|
|
2856
|
+
theme: E,
|
|
2852
2857
|
highlightActiveItem: D,
|
|
2853
|
-
backgroundDarkColor:
|
|
2858
|
+
backgroundDarkColor: $,
|
|
2854
2859
|
backgroundLightColor: T,
|
|
2855
2860
|
textDarkColor: x,
|
|
2856
2861
|
textLightColor: I,
|
|
2857
|
-
iconDarkColor:
|
|
2862
|
+
iconDarkColor: V,
|
|
2858
2863
|
iconLightColor: q,
|
|
2859
2864
|
groupBackgroundColor: m,
|
|
2860
2865
|
selectedGroupColor: y,
|
|
@@ -2863,33 +2868,52 @@ function xo({
|
|
|
2863
2868
|
groupLabelLightColor: g,
|
|
2864
2869
|
activeColor: b,
|
|
2865
2870
|
withBorder: !1,
|
|
2866
|
-
sidebarRef:
|
|
2871
|
+
sidebarRef: lA
|
|
2872
|
+
}
|
|
2873
|
+
), hA = dA === "dark" ? $ ?? E.colors.dark[7] : T ?? E.white, OA = M === "legacy", W = OA ? void 0 : {
|
|
2874
|
+
width: { base: EA },
|
|
2875
|
+
breakpoint: "sm",
|
|
2876
|
+
collapsed: { mobile: nA || !Q, desktop: !Q }
|
|
2877
|
+
}, DA = OA ? {
|
|
2878
|
+
main: {
|
|
2879
|
+
background: dA === "dark" ? E.colors.dark[8] : E.colors.gray[0],
|
|
2880
|
+
overflow: "hidden"
|
|
2881
|
+
}
|
|
2882
|
+
} : {
|
|
2883
|
+
main: {
|
|
2884
|
+
background: dA === "dark" ? E.colors.dark[8] : E.colors.gray[0],
|
|
2885
|
+
overflow: "hidden"
|
|
2886
|
+
},
|
|
2887
|
+
navbar: {
|
|
2888
|
+
background: hA,
|
|
2889
|
+
border: "none"
|
|
2867
2890
|
}
|
|
2868
|
-
|
|
2869
|
-
|
|
2870
|
-
|
|
2891
|
+
}, gA = OA ? {
|
|
2892
|
+
height: "calc(100vh - var(--app-shell-header-offset, 0px) - var(--app-shell-footer-offset, 0px) - var(--app-shell-padding) - 1rem)",
|
|
2893
|
+
width: `calc(100vw - var(--app-shell-padding) - calc(${nA ? "0px" : EA} + 1rem))`,
|
|
2894
|
+
marginTop: "0.5rem",
|
|
2895
|
+
marginLeft: `calc(${nA ? "0px" : EA} + 0.5rem)`,
|
|
2896
|
+
border: `1px solid ${dA === "dark" ? E.colors.dark[4] : "#e4e9ef"}`,
|
|
2897
|
+
borderRadius: "4px",
|
|
2898
|
+
overflow: "hidden"
|
|
2899
|
+
} : {
|
|
2900
|
+
height: "calc(100vh - var(--app-shell-header-offset, 0px) - var(--app-shell-footer-offset, 0px) - 1rem)",
|
|
2901
|
+
width: "100%",
|
|
2902
|
+
marginTop: "0.5rem",
|
|
2903
|
+
border: `1px solid ${dA === "dark" ? E.colors.dark[4] : "#e4e9ef"}`,
|
|
2904
|
+
borderRadius: "4px",
|
|
2905
|
+
overflow: "hidden"
|
|
2906
|
+
};
|
|
2907
|
+
return /* @__PURE__ */ L(
|
|
2908
|
+
QA,
|
|
2871
2909
|
{
|
|
2872
|
-
header: { height: "60px", collapsed: !
|
|
2873
|
-
navbar:
|
|
2874
|
-
width: zA,
|
|
2875
|
-
breakpoint: 0,
|
|
2876
|
-
// nunca colapsar automaticamente
|
|
2877
|
-
collapsed: { mobile: sA, desktop: !N }
|
|
2878
|
-
},
|
|
2910
|
+
header: { height: "60px", collapsed: !K },
|
|
2911
|
+
navbar: W,
|
|
2879
2912
|
footer: { height: v || "0px" },
|
|
2880
|
-
styles:
|
|
2881
|
-
main: {
|
|
2882
|
-
background: fA === "dark" ? L.colors.dark[8] : L.colors.gray[0],
|
|
2883
|
-
overflow: "hidden"
|
|
2884
|
-
},
|
|
2885
|
-
navbar: {
|
|
2886
|
-
background: dA,
|
|
2887
|
-
borderRight: "none"
|
|
2888
|
-
}
|
|
2889
|
-
},
|
|
2913
|
+
styles: DA,
|
|
2890
2914
|
children: [
|
|
2891
2915
|
/* @__PURE__ */ A(
|
|
2892
|
-
|
|
2916
|
+
QA.Header,
|
|
2893
2917
|
{
|
|
2894
2918
|
p: "xs",
|
|
2895
2919
|
color: S,
|
|
@@ -2900,64 +2924,52 @@ function xo({
|
|
|
2900
2924
|
borderBottom: "none",
|
|
2901
2925
|
...J
|
|
2902
2926
|
},
|
|
2903
|
-
children:
|
|
2927
|
+
children: o
|
|
2904
2928
|
}
|
|
2905
2929
|
),
|
|
2906
|
-
/* @__PURE__ */ A(
|
|
2907
|
-
/* @__PURE__ */
|
|
2908
|
-
!
|
|
2909
|
-
|
|
2910
|
-
|
|
2930
|
+
/* @__PURE__ */ A(QA.Navbar, { children: !nA && Q ? LA(CA(), !1) : void 0 }),
|
|
2931
|
+
/* @__PURE__ */ L(QA.Main, { bg: dA === "dark" ? E.colors.dark[8] : E.colors.gray[0], children: [
|
|
2932
|
+
!nA && B && Eo(
|
|
2933
|
+
dA,
|
|
2934
|
+
E,
|
|
2911
2935
|
z,
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
),
|
|
2916
|
-
/* @__PURE__ */ R(
|
|
2917
|
-
"div",
|
|
2918
|
-
{
|
|
2919
|
-
style: {
|
|
2920
|
-
height: "calc(100vh - var(--app-shell-header-offset, 0px) - var(--app-shell-footer-offset, 0px) - 1rem)",
|
|
2921
|
-
margin: "0.5rem",
|
|
2922
|
-
border: `1px solid ${fA === "dark" ? L.colors.dark[4] : "#e4e9ef"}`,
|
|
2923
|
-
borderRadius: "4px",
|
|
2924
|
-
overflow: "hidden"
|
|
2925
|
-
},
|
|
2926
|
-
children: [
|
|
2927
|
-
e,
|
|
2928
|
-
/* @__PURE__ */ A("div", { style: { width: "100%", height: "calc(100% - 48px)" }, children: /* @__PURE__ */ R(ko, { maxKeepAliveTabs: E, children: [
|
|
2929
|
-
...SA
|
|
2930
|
-
] }) })
|
|
2931
|
-
]
|
|
2932
|
-
}
|
|
2936
|
+
r,
|
|
2937
|
+
t,
|
|
2938
|
+
H
|
|
2933
2939
|
),
|
|
2934
|
-
|
|
2935
|
-
|
|
2940
|
+
/* @__PURE__ */ L("div", { style: gA, children: [
|
|
2941
|
+
e,
|
|
2942
|
+
/* @__PURE__ */ A("div", { style: { width: "100%", height: "calc(100% - 48px)" }, children: /* @__PURE__ */ L(xo, { maxKeepAliveTabs: R, children: [
|
|
2943
|
+
...IA
|
|
2944
|
+
] }) })
|
|
2945
|
+
] }),
|
|
2946
|
+
Q && /* @__PURE__ */ A(
|
|
2947
|
+
Se,
|
|
2936
2948
|
{
|
|
2937
2949
|
opened: z.hidden || !1,
|
|
2938
|
-
onClose:
|
|
2939
|
-
size:
|
|
2950
|
+
onClose: tA,
|
|
2951
|
+
size: r,
|
|
2940
2952
|
padding: 0,
|
|
2941
2953
|
styles: {
|
|
2942
2954
|
header: { minHeight: "10px" }
|
|
2943
2955
|
},
|
|
2944
|
-
children:
|
|
2956
|
+
children: LA(kA(), !0)
|
|
2945
2957
|
}
|
|
2946
2958
|
)
|
|
2947
2959
|
] }),
|
|
2948
|
-
/* @__PURE__ */ A(
|
|
2960
|
+
/* @__PURE__ */ A(QA.Footer, { children: s })
|
|
2949
2961
|
]
|
|
2950
2962
|
}
|
|
2951
2963
|
);
|
|
2952
2964
|
}
|
|
2953
|
-
function
|
|
2965
|
+
function xn({
|
|
2954
2966
|
navigationRootLink: e = "/",
|
|
2955
|
-
navigationData:
|
|
2956
|
-
user:
|
|
2957
|
-
children:
|
|
2958
|
-
header:
|
|
2959
|
-
footer:
|
|
2960
|
-
owner:
|
|
2967
|
+
navigationData: o,
|
|
2968
|
+
user: s,
|
|
2969
|
+
children: r,
|
|
2970
|
+
header: t,
|
|
2971
|
+
footer: a,
|
|
2972
|
+
owner: i,
|
|
2961
2973
|
company: n,
|
|
2962
2974
|
sideBarWidth: c,
|
|
2963
2975
|
sideBarCollapsedWidth: l,
|
|
@@ -2974,53 +2986,53 @@ function kn({
|
|
|
2974
2986
|
groupColor: v = "white",
|
|
2975
2987
|
backgroundGroupColor: C = "#132441",
|
|
2976
2988
|
groupLabelDarkColor: P = "white",
|
|
2977
|
-
groupLabelLightColor:
|
|
2978
|
-
headerColor:
|
|
2989
|
+
groupLabelLightColor: Q = "white",
|
|
2990
|
+
headerColor: K,
|
|
2979
2991
|
footerHeight: J,
|
|
2980
2992
|
iconsWithBackground: D,
|
|
2981
|
-
menuItemHeight:
|
|
2982
|
-
showSideBar:
|
|
2983
|
-
showHeader:
|
|
2993
|
+
menuItemHeight: O,
|
|
2994
|
+
showSideBar: B,
|
|
2995
|
+
showHeader: $,
|
|
2984
2996
|
headerStyle: T,
|
|
2985
2997
|
highlightActiveMenuItem: x,
|
|
2986
2998
|
enableSecurity: I = !1,
|
|
2987
|
-
securityOptions:
|
|
2999
|
+
securityOptions: V,
|
|
2988
3000
|
customRenderSidebar: q,
|
|
2989
3001
|
onNavigationDataChange: k,
|
|
2990
3002
|
showCollapsedButton: b,
|
|
2991
|
-
initialSidebarCollapsed:
|
|
2992
|
-
sideBarBackgroundDarkColor:
|
|
2993
|
-
sideBarBackgroundLightColor:
|
|
2994
|
-
sideBarTextDarkColor:
|
|
3003
|
+
initialSidebarCollapsed: R = !1,
|
|
3004
|
+
sideBarBackgroundDarkColor: M,
|
|
3005
|
+
sideBarBackgroundLightColor: N,
|
|
3006
|
+
sideBarTextDarkColor: E,
|
|
2995
3007
|
sideBarTextLightColor: z,
|
|
2996
|
-
sideBarIconDarkColor:
|
|
2997
|
-
sideBarIconLightColor:
|
|
2998
|
-
sideBarCollapsedSubmenuWidth:
|
|
3008
|
+
sideBarIconDarkColor: dA,
|
|
3009
|
+
sideBarIconLightColor: U,
|
|
3010
|
+
sideBarCollapsedSubmenuWidth: lA,
|
|
2999
3011
|
sidebarActiveColor: eA,
|
|
3000
|
-
maxKeepAliveTabs:
|
|
3001
|
-
sidebarVariant:
|
|
3012
|
+
maxKeepAliveTabs: nA = 10,
|
|
3013
|
+
sidebarVariant: Y = "legacy",
|
|
3002
3014
|
sidebarShowSearch: rA = !1
|
|
3003
3015
|
}) {
|
|
3004
3016
|
return /* @__PURE__ */ A(
|
|
3005
|
-
|
|
3017
|
+
Xr,
|
|
3006
3018
|
{
|
|
3007
|
-
navigationData:
|
|
3019
|
+
navigationData: o,
|
|
3008
3020
|
navigationRootLink: e,
|
|
3009
|
-
user:
|
|
3010
|
-
owner:
|
|
3021
|
+
user: s,
|
|
3022
|
+
owner: i,
|
|
3011
3023
|
company: n,
|
|
3012
3024
|
enableSecurity: I,
|
|
3013
|
-
securityOptions:
|
|
3025
|
+
securityOptions: V,
|
|
3014
3026
|
onNavigationDataChange: k,
|
|
3015
|
-
initialSidebarCollapsed:
|
|
3027
|
+
initialSidebarCollapsed: R,
|
|
3016
3028
|
children: /* @__PURE__ */ A(
|
|
3017
|
-
|
|
3029
|
+
Ro,
|
|
3018
3030
|
{
|
|
3019
3031
|
navigationRootLink: e,
|
|
3020
|
-
user:
|
|
3021
|
-
header:
|
|
3022
|
-
footer:
|
|
3023
|
-
owner:
|
|
3032
|
+
user: s,
|
|
3033
|
+
header: t,
|
|
3034
|
+
footer: a,
|
|
3035
|
+
owner: i,
|
|
3024
3036
|
company: n,
|
|
3025
3037
|
sideBarWidth: c,
|
|
3026
3038
|
sideBarCollapsedWidth: l,
|
|
@@ -3033,114 +3045,114 @@ function kn({
|
|
|
3033
3045
|
groupColor: v,
|
|
3034
3046
|
backgroundGroupColor: C,
|
|
3035
3047
|
groupLabelDarkColor: P,
|
|
3036
|
-
groupLabelLightColor:
|
|
3048
|
+
groupLabelLightColor: Q,
|
|
3037
3049
|
onCollapsedSideBar: f,
|
|
3038
3050
|
onHiddenSidebar: y,
|
|
3039
3051
|
sidebarDefaultGroupIcon: w,
|
|
3040
3052
|
sidebarSelectedGroupName: m,
|
|
3041
|
-
headerColor:
|
|
3053
|
+
headerColor: K,
|
|
3042
3054
|
footerHeight: J,
|
|
3043
3055
|
iconsWithBackground: D,
|
|
3044
|
-
menuItemHeight:
|
|
3045
|
-
showSideBar:
|
|
3046
|
-
showHeader:
|
|
3056
|
+
menuItemHeight: O,
|
|
3057
|
+
showSideBar: B,
|
|
3058
|
+
showHeader: $,
|
|
3047
3059
|
headerStyle: T,
|
|
3048
3060
|
highlightActiveMenuItem: x,
|
|
3049
3061
|
enableSecurity: I,
|
|
3050
3062
|
customRenderSidebar: q,
|
|
3051
3063
|
showCollapsedButton: b,
|
|
3052
|
-
sideBarBackgroundDarkColor:
|
|
3053
|
-
sideBarBackgroundLightColor:
|
|
3054
|
-
sideBarTextDarkColor:
|
|
3064
|
+
sideBarBackgroundDarkColor: M,
|
|
3065
|
+
sideBarBackgroundLightColor: N,
|
|
3066
|
+
sideBarTextDarkColor: E,
|
|
3055
3067
|
sideBarTextLightColor: z,
|
|
3056
|
-
sideBarIconDarkColor:
|
|
3057
|
-
sideBarIconLightColor:
|
|
3058
|
-
sideBarCollapsedSubmenuWidth:
|
|
3068
|
+
sideBarIconDarkColor: dA,
|
|
3069
|
+
sideBarIconLightColor: U,
|
|
3070
|
+
sideBarCollapsedSubmenuWidth: lA,
|
|
3059
3071
|
sidebarActiveColor: eA,
|
|
3060
|
-
maxKeepAliveTabs:
|
|
3061
|
-
sidebarVariant:
|
|
3072
|
+
maxKeepAliveTabs: nA,
|
|
3073
|
+
sidebarVariant: Y,
|
|
3062
3074
|
sidebarShowSearch: rA,
|
|
3063
|
-
children:
|
|
3075
|
+
children: r
|
|
3064
3076
|
}
|
|
3065
3077
|
)
|
|
3066
3078
|
}
|
|
3067
3079
|
);
|
|
3068
3080
|
}
|
|
3069
|
-
const
|
|
3081
|
+
const Ue = FA({
|
|
3070
3082
|
state: { userCloseLinkRequest: "", linkClosed: "", isClosing: !1 },
|
|
3071
3083
|
dispatch: (e) => null
|
|
3072
|
-
}),
|
|
3073
|
-
const
|
|
3084
|
+
}), Sn = ({ children: e }) => {
|
|
3085
|
+
const o = {
|
|
3074
3086
|
userCloseLinkRequest: "",
|
|
3075
3087
|
linkClosed: "",
|
|
3076
3088
|
isClosing: !1
|
|
3077
|
-
},
|
|
3078
|
-
switch (
|
|
3089
|
+
}, s = (a, i) => {
|
|
3090
|
+
switch (i.type) {
|
|
3079
3091
|
case "USER_CLOSE_REQUEST":
|
|
3080
|
-
return console.log(`[Navigation Reducer] USER_CLOSE_REQUEST link: ${
|
|
3092
|
+
return console.log(`[Navigation Reducer] USER_CLOSE_REQUEST link: ${i.link}`), { ...a, userCloseLinkRequest: i.link, isClosing: !0 };
|
|
3081
3093
|
case "CLOSE_ALLOWED":
|
|
3082
|
-
return console.log(`[Navigation Reducer] CLOSE_ALLOWED link: ${
|
|
3094
|
+
return console.log(`[Navigation Reducer] CLOSE_ALLOWED link: ${i.link}`), { ...a, linkClosed: i.link, userCloseLinkRequest: "", isClosing: !1, payload: i.payload };
|
|
3083
3095
|
case "DONE":
|
|
3084
|
-
return console.log(`[Navigation Reducer] DONE link: ${
|
|
3096
|
+
return console.log(`[Navigation Reducer] DONE link: ${i.link}`), { ...a, linkClosed: i.link, isClosing: !1 };
|
|
3085
3097
|
case "CLEAR_PAYLOAD":
|
|
3086
|
-
const n = { ...
|
|
3098
|
+
const n = { ...a };
|
|
3087
3099
|
return delete n.payload, n;
|
|
3088
3100
|
default:
|
|
3089
|
-
return
|
|
3101
|
+
return a;
|
|
3090
3102
|
}
|
|
3091
|
-
}, [
|
|
3092
|
-
return
|
|
3093
|
-
let
|
|
3094
|
-
return
|
|
3095
|
-
console.log(`[NavigationProvider] No response received, auto-closing: ${
|
|
3103
|
+
}, [r, t] = Fe(s, o);
|
|
3104
|
+
return bA.useEffect(() => {
|
|
3105
|
+
let a = null;
|
|
3106
|
+
return r.userCloseLinkRequest && !r.linkClosed && (console.log(`[NavigationProvider] Waiting for close response for: ${r.userCloseLinkRequest}`), a = setTimeout(() => {
|
|
3107
|
+
console.log(`[NavigationProvider] No response received, auto-closing: ${r.userCloseLinkRequest}`), t({ type: "CLOSE_ALLOWED", link: r.userCloseLinkRequest });
|
|
3096
3108
|
}, 100)), () => {
|
|
3097
|
-
|
|
3109
|
+
a && clearTimeout(a);
|
|
3098
3110
|
};
|
|
3099
|
-
}, [
|
|
3100
|
-
},
|
|
3101
|
-
const e =
|
|
3111
|
+
}, [r.userCloseLinkRequest, r.linkClosed, t]), /* @__PURE__ */ A(Ue.Provider, { value: { state: r, dispatch: t }, children: e });
|
|
3112
|
+
}, Be = () => {
|
|
3113
|
+
const e = SA(Ue);
|
|
3102
3114
|
if (!e)
|
|
3103
3115
|
throw new Error("useArchbaseNavigationContext deve ser usado dentro de um ArchbaseNavigationProvider");
|
|
3104
3116
|
return e;
|
|
3105
|
-
},
|
|
3106
|
-
const
|
|
3107
|
-
console.log(`[useArchbaseNavigationListener] closeAllowed called for: ${e}`),
|
|
3108
|
-
}, [
|
|
3109
|
-
|
|
3110
|
-
console.log(`[useArchbaseNavigationListener] Effect check - userCloseLinkRequest: ${
|
|
3111
|
-
}, [
|
|
3112
|
-
const n =
|
|
3113
|
-
return { closeAllowed:
|
|
3117
|
+
}, In = (e, o) => {
|
|
3118
|
+
const s = Be(), { state: r, dispatch: t } = s, a = F((c) => {
|
|
3119
|
+
console.log(`[useArchbaseNavigationListener] closeAllowed called for: ${e}`), t({ type: "CLOSE_ALLOWED", link: e, payload: c });
|
|
3120
|
+
}, [t, e]), i = mA(o);
|
|
3121
|
+
i.current = o, iA(() => {
|
|
3122
|
+
console.log(`[useArchbaseNavigationListener] Effect check - userCloseLinkRequest: ${r?.userCloseLinkRequest}, id: ${e}`), r && r.userCloseLinkRequest && r.userCloseLinkRequest === e && (console.log(`[useArchbaseNavigationListener] Calling onUserCloseRequest for: ${e}`), i.current());
|
|
3123
|
+
}, [r, e]);
|
|
3124
|
+
const n = r.isClosing && r.userCloseLinkRequest === e;
|
|
3125
|
+
return { closeAllowed: a, isClosing: n };
|
|
3114
3126
|
};
|
|
3115
|
-
function
|
|
3127
|
+
function En({
|
|
3116
3128
|
navigationData: e,
|
|
3117
|
-
onChangeOpenedTabs:
|
|
3118
|
-
onChangeActiveTabId:
|
|
3119
|
-
activeTabId:
|
|
3120
|
-
openedTabs:
|
|
3129
|
+
onChangeOpenedTabs: o,
|
|
3130
|
+
onChangeActiveTabId: s,
|
|
3131
|
+
activeTabId: r,
|
|
3132
|
+
openedTabs: t = []
|
|
3121
3133
|
}) {
|
|
3122
|
-
const [
|
|
3123
|
-
|
|
3124
|
-
const w =
|
|
3134
|
+
const [a, i] = bA.useTransition(), n = qA(), { colorScheme: c } = oA(), [l, u] = fA(t), [d, h] = fA(r), f = HA(), y = mA([]);
|
|
3135
|
+
Fr(y);
|
|
3136
|
+
const w = Be(), { state: m, dispatch: p } = w, g = SA(jA), S = Ge(), v = mA(o), C = mA(s);
|
|
3125
3137
|
iA(() => {
|
|
3126
|
-
v.current =
|
|
3138
|
+
v.current = o, C.current = s;
|
|
3127
3139
|
});
|
|
3128
|
-
const P = mA(!1),
|
|
3140
|
+
const P = mA(!1), Q = F((k, b) => {
|
|
3129
3141
|
console.log(`[TabContainer] handleOnClose called for: ${k}`), S ? S.requestUnregister(k) : console.error("[ArchbaseAdminTabContainer] keepAliveCache context not available. Tab cache cleanup will not occur. This may cause memory leaks.");
|
|
3130
|
-
const
|
|
3131
|
-
let
|
|
3132
|
-
!
|
|
3133
|
-
const
|
|
3134
|
-
let
|
|
3135
|
-
|
|
3142
|
+
const R = l.findIndex((U) => U.path === k);
|
|
3143
|
+
let M = b?.redirectUrl;
|
|
3144
|
+
!M && R >= 0 && (M = l[R].redirect);
|
|
3145
|
+
const N = l.filter((U) => U.id !== k);
|
|
3146
|
+
let E = -1;
|
|
3147
|
+
N.forEach((U, lA) => U.id === d && (E = lA));
|
|
3136
3148
|
let z = null;
|
|
3137
|
-
|
|
3138
|
-
const
|
|
3139
|
-
...
|
|
3140
|
-
active: z ===
|
|
3149
|
+
N.length > 0 && N[E] ? z = N[E].id : N.length > 0 ? z = N[N.length - 1].id : z = null;
|
|
3150
|
+
const dA = N.map((U) => ({
|
|
3151
|
+
...U,
|
|
3152
|
+
active: z === U.id
|
|
3141
3153
|
}));
|
|
3142
|
-
if (u(
|
|
3143
|
-
h(z), n(
|
|
3154
|
+
if (u(dA), z && z != null)
|
|
3155
|
+
h(z), n(M || z);
|
|
3144
3156
|
else {
|
|
3145
3157
|
if (h(void 0), !g.navigationRootLink) {
|
|
3146
3158
|
console.error("[ArchbaseAdminTabContainer] navigationRootLink is not configured. Cannot navigate to root.");
|
|
@@ -3151,9 +3163,9 @@ function vn({
|
|
|
3151
3163
|
p({ type: "DONE", link: "" });
|
|
3152
3164
|
}, [l, d, n, g.navigationRootLink, p, S]);
|
|
3153
3165
|
iA(() => {
|
|
3154
|
-
m?.linkClosed && (console.log(`[TabContainer] useEffect - linkClosed: ${m?.linkClosed}`),
|
|
3155
|
-
}, [m?.linkClosed, m?.payload,
|
|
3156
|
-
const
|
|
3166
|
+
m?.linkClosed && (console.log(`[TabContainer] useEffect - linkClosed: ${m?.linkClosed}`), Q(m?.linkClosed, m?.payload));
|
|
3167
|
+
}, [m?.linkClosed, m?.payload, Q]);
|
|
3168
|
+
const K = (k) => {
|
|
3157
3169
|
const b = {
|
|
3158
3170
|
item: void 0,
|
|
3159
3171
|
title: void 0,
|
|
@@ -3161,20 +3173,20 @@ function vn({
|
|
|
3161
3173
|
redirect: void 0,
|
|
3162
3174
|
customTitle: void 0
|
|
3163
3175
|
};
|
|
3164
|
-
return e.forEach((
|
|
3165
|
-
if (
|
|
3166
|
-
|
|
3167
|
-
|
|
3176
|
+
return e.forEach((R) => {
|
|
3177
|
+
if (R.links)
|
|
3178
|
+
R.links.forEach((M) => {
|
|
3179
|
+
me({ path: M.link || "" }, location.pathname) && (b.item = M, b.title = `${Z().t(M.label)}`, b.redirect = M.redirect, b.customTitle = M.customTitle);
|
|
3168
3180
|
});
|
|
3169
|
-
else if (
|
|
3170
|
-
const
|
|
3171
|
-
|
|
3181
|
+
else if (R.link && !b.item) {
|
|
3182
|
+
const M = me({ path: R.link }, location.pathname);
|
|
3183
|
+
M && (M.params && Object.keys(M.params).length > 0 ? b.title = `${M.params[Object.keys(M.params)[0]]}` : b.title = `${Z().t(R.label)}`, b.item = R, b.redirect = R.redirect, b.customTitle = R.customTitle);
|
|
3172
3184
|
}
|
|
3173
3185
|
}), b.customTitle && (b.customTitle = b.customTitle.replace("$title", b.title)), b;
|
|
3174
3186
|
};
|
|
3175
3187
|
iA(() => {
|
|
3176
|
-
u(
|
|
3177
|
-
}, [JSON.stringify(
|
|
3188
|
+
u(t), P.current = !0;
|
|
3189
|
+
}, [JSON.stringify(t)]);
|
|
3178
3190
|
const J = mA(l), D = mA(d);
|
|
3179
3191
|
iA(() => {
|
|
3180
3192
|
if (P.current) {
|
|
@@ -3183,28 +3195,28 @@ function vn({
|
|
|
3183
3195
|
}
|
|
3184
3196
|
const k = JSON.stringify(J.current) !== JSON.stringify(l), b = D.current !== d;
|
|
3185
3197
|
if (k || b) {
|
|
3186
|
-
const
|
|
3198
|
+
const R = setTimeout(() => {
|
|
3187
3199
|
v.current?.(l), C.current?.(d);
|
|
3188
3200
|
}, 0);
|
|
3189
|
-
return J.current = l, D.current = d, () => clearTimeout(
|
|
3201
|
+
return J.current = l, D.current = d, () => clearTimeout(R);
|
|
3190
3202
|
}
|
|
3191
3203
|
}, [l, d]);
|
|
3192
|
-
const
|
|
3204
|
+
const O = mA("");
|
|
3193
3205
|
iA(() => {
|
|
3194
|
-
if (
|
|
3206
|
+
if (O.current === f.pathname)
|
|
3195
3207
|
return;
|
|
3196
|
-
|
|
3197
|
-
const k =
|
|
3208
|
+
O.current = f.pathname;
|
|
3209
|
+
const k = K(f.pathname);
|
|
3198
3210
|
if (k && k.item) {
|
|
3199
|
-
const b = l.findIndex((
|
|
3211
|
+
const b = l.findIndex((R) => R.path === k.link);
|
|
3200
3212
|
if (b !== -1) {
|
|
3201
3213
|
if (l[b].title !== k.title) {
|
|
3202
|
-
const
|
|
3203
|
-
|
|
3214
|
+
const R = [...l];
|
|
3215
|
+
R[b] = { ...R[b], title: k.title }, u(R);
|
|
3204
3216
|
}
|
|
3205
3217
|
h(l[b].id);
|
|
3206
3218
|
} else {
|
|
3207
|
-
const
|
|
3219
|
+
const R = {
|
|
3208
3220
|
id: `${k.link}`,
|
|
3209
3221
|
title: `${k.title}`,
|
|
3210
3222
|
path: `${k.link}`,
|
|
@@ -3214,73 +3226,73 @@ function vn({
|
|
|
3214
3226
|
closeButton: !0,
|
|
3215
3227
|
redirect: k.redirect,
|
|
3216
3228
|
customTitle: k.customTitle
|
|
3217
|
-
},
|
|
3218
|
-
u(
|
|
3229
|
+
}, M = [...l.map((N) => ({ ...N, active: !1 })), R];
|
|
3230
|
+
u(M), h(R.id);
|
|
3219
3231
|
}
|
|
3220
3232
|
}
|
|
3221
3233
|
}, [f.pathname]);
|
|
3222
|
-
const
|
|
3223
|
-
const b = l.filter((
|
|
3224
|
-
b && b.length > 0 && f.pathname !== b[0].path && n(b[0].path),
|
|
3234
|
+
const B = (k) => {
|
|
3235
|
+
const b = l.filter((R) => R.id === k);
|
|
3236
|
+
b && b.length > 0 && f.pathname !== b[0].path && n(b[0].path), i(() => {
|
|
3225
3237
|
h(k);
|
|
3226
3238
|
});
|
|
3227
|
-
},
|
|
3239
|
+
}, $ = (k) => {
|
|
3228
3240
|
console.log(`[TabContainer] handleOnCloseRequest - User clicked close on tab: ${k}`);
|
|
3229
3241
|
try {
|
|
3230
3242
|
p({ type: "USER_CLOSE_REQUEST", link: k });
|
|
3231
3243
|
} catch (b) {
|
|
3232
3244
|
console.error("[TabContainer] Dispatch failed:", b);
|
|
3233
3245
|
}
|
|
3234
|
-
}, T =
|
|
3246
|
+
}, T = F(() => {
|
|
3235
3247
|
if (u([]), h(void 0), !g.navigationRootLink) {
|
|
3236
3248
|
console.error("[ArchbaseAdminTabContainer] navigationRootLink is not configured. Cannot navigate to root.");
|
|
3237
3249
|
return;
|
|
3238
3250
|
}
|
|
3239
3251
|
n(g.navigationRootLink);
|
|
3240
|
-
}, [n, g.navigationRootLink]), x =
|
|
3241
|
-
const b = l.findIndex((
|
|
3252
|
+
}, [n, g.navigationRootLink]), x = F((k) => {
|
|
3253
|
+
const b = l.findIndex((E) => E.id === k);
|
|
3242
3254
|
if (b <= 0)
|
|
3243
3255
|
return;
|
|
3244
|
-
const
|
|
3245
|
-
...
|
|
3246
|
-
active:
|
|
3256
|
+
const R = l.slice(b), M = R.find((E) => E.id === d)?.id || R[0]?.id, N = R.map((E) => ({
|
|
3257
|
+
...E,
|
|
3258
|
+
active: E.id === M
|
|
3247
3259
|
}));
|
|
3248
|
-
if (u(
|
|
3249
|
-
h(
|
|
3250
|
-
const
|
|
3251
|
-
|
|
3260
|
+
if (u(N), M) {
|
|
3261
|
+
h(M);
|
|
3262
|
+
const E = N.find((z) => z.id === M);
|
|
3263
|
+
E && f.pathname !== E.path && n(E.path);
|
|
3252
3264
|
}
|
|
3253
|
-
}, [l, d, n, f.pathname]), I =
|
|
3254
|
-
const b = l.findIndex((
|
|
3265
|
+
}, [l, d, n, f.pathname]), I = F((k) => {
|
|
3266
|
+
const b = l.findIndex((E) => E.id === k);
|
|
3255
3267
|
if (b === -1 || b >= l.length - 1)
|
|
3256
3268
|
return;
|
|
3257
|
-
const
|
|
3258
|
-
...
|
|
3259
|
-
active:
|
|
3269
|
+
const R = l.slice(0, b + 1), M = R.find((E) => E.id === d)?.id || R[R.length - 1]?.id, N = R.map((E) => ({
|
|
3270
|
+
...E,
|
|
3271
|
+
active: E.id === M
|
|
3260
3272
|
}));
|
|
3261
|
-
if (u(
|
|
3262
|
-
h(
|
|
3263
|
-
const
|
|
3264
|
-
|
|
3273
|
+
if (u(N), M) {
|
|
3274
|
+
h(M);
|
|
3275
|
+
const E = N.find((z) => z.id === M);
|
|
3276
|
+
E && f.pathname !== E.path && n(E.path);
|
|
3265
3277
|
}
|
|
3266
|
-
}, [l, d, n, f.pathname]),
|
|
3267
|
-
const b = l.find((
|
|
3278
|
+
}, [l, d, n, f.pathname]), V = F((k) => {
|
|
3279
|
+
const b = l.find((M) => M.id === k);
|
|
3268
3280
|
if (!b)
|
|
3269
3281
|
return;
|
|
3270
|
-
const
|
|
3271
|
-
u(
|
|
3282
|
+
const R = [{ ...b, active: !0 }];
|
|
3283
|
+
u(R), h(k), f.pathname !== b.path && n(b.path);
|
|
3272
3284
|
}, [l, n, f.pathname]);
|
|
3273
3285
|
return /* @__PURE__ */ A("div", { ref: y, children: /* @__PURE__ */ A(
|
|
3274
|
-
|
|
3286
|
+
qr,
|
|
3275
3287
|
{
|
|
3276
3288
|
buttonCloseOnlyActiveTab: !0,
|
|
3277
|
-
onClick: (k) =>
|
|
3278
|
-
onTabClose: (k) =>
|
|
3289
|
+
onClick: (k) => B(k),
|
|
3290
|
+
onTabClose: (k) => $(k),
|
|
3279
3291
|
onTabChange: (k) => null,
|
|
3280
3292
|
onCloseAllTabs: T,
|
|
3281
3293
|
onCloseLeftTabs: x,
|
|
3282
3294
|
onCloseRightTabs: I,
|
|
3283
|
-
onCloseOtherTabs:
|
|
3295
|
+
onCloseOtherTabs: V,
|
|
3284
3296
|
currentTabs: ((k) => k.map((b) => ({
|
|
3285
3297
|
key: b.id,
|
|
3286
3298
|
favicon: b.iconClass,
|
|
@@ -3292,97 +3304,97 @@ function vn({
|
|
|
3292
3304
|
}
|
|
3293
3305
|
) });
|
|
3294
3306
|
}
|
|
3295
|
-
const
|
|
3307
|
+
const Lo = () => bA.createElement("div", null, "Home View"), Do = () => bA.createElement("div", null, "Pedido Form"), To = () => bA.createElement("div", null, "Pedido View"), zo = () => bA.createElement("div", null, "Pessoa Form"), Po = () => bA.createElement("div", null, "Pessoa View"), Mo = {
|
|
3296
3308
|
label: "Dashboard",
|
|
3297
|
-
icon: /* @__PURE__ */ A(
|
|
3309
|
+
icon: /* @__PURE__ */ A(sr, {}),
|
|
3298
3310
|
link: "/dashboard",
|
|
3299
3311
|
category: "DASHBOARD",
|
|
3300
3312
|
color: "teal",
|
|
3301
3313
|
component: /* @__PURE__ */ A("div", {}),
|
|
3302
3314
|
showInSidebar: !0
|
|
3303
|
-
},
|
|
3315
|
+
}, Oo = {
|
|
3304
3316
|
label: "Home",
|
|
3305
|
-
icon: /* @__PURE__ */ A(
|
|
3317
|
+
icon: /* @__PURE__ */ A(tr, {}),
|
|
3306
3318
|
link: "/home",
|
|
3307
3319
|
category: "HOME",
|
|
3308
3320
|
color: "teal",
|
|
3309
|
-
component: /* @__PURE__ */ A(
|
|
3321
|
+
component: /* @__PURE__ */ A(Lo, {}),
|
|
3310
3322
|
showInSidebar: !0,
|
|
3311
3323
|
keepAlive: !0
|
|
3312
|
-
},
|
|
3324
|
+
}, $o = {
|
|
3313
3325
|
label: "Consulta lista pessoas",
|
|
3314
3326
|
link: "/pessoa/consulta",
|
|
3315
|
-
icon: /* @__PURE__ */ A(
|
|
3327
|
+
icon: /* @__PURE__ */ A(De, {}),
|
|
3316
3328
|
category: "PESSOAS",
|
|
3317
3329
|
color: "pink",
|
|
3318
|
-
component: /* @__PURE__ */ A(
|
|
3330
|
+
component: /* @__PURE__ */ A(Po, {}),
|
|
3319
3331
|
showInSidebar: !0,
|
|
3320
3332
|
keepAlive: !0
|
|
3321
|
-
},
|
|
3333
|
+
}, Qo = {
|
|
3322
3334
|
label: "Nova pessoa",
|
|
3323
3335
|
link: "/pessoa/nova",
|
|
3324
|
-
icon: /* @__PURE__ */ A(
|
|
3336
|
+
icon: /* @__PURE__ */ A(ir, {}),
|
|
3325
3337
|
category: "PESSOAS",
|
|
3326
3338
|
color: "pink",
|
|
3327
|
-
component: /* @__PURE__ */ A(
|
|
3339
|
+
component: /* @__PURE__ */ A(zo, {}),
|
|
3328
3340
|
showInSidebar: !0,
|
|
3329
3341
|
keepAlive: !0
|
|
3330
|
-
},
|
|
3342
|
+
}, No = {
|
|
3331
3343
|
label: "Pessoas",
|
|
3332
|
-
icon: /* @__PURE__ */ A(
|
|
3333
|
-
links: [
|
|
3344
|
+
icon: /* @__PURE__ */ A(lr, {}),
|
|
3345
|
+
links: [$o, Qo],
|
|
3334
3346
|
category: "PESSOAS",
|
|
3335
3347
|
color: "pink",
|
|
3336
3348
|
showInSidebar: !0
|
|
3337
|
-
},
|
|
3349
|
+
}, Go = {
|
|
3338
3350
|
label: "Consulta lista pedidos",
|
|
3339
3351
|
link: "/pedido/consulta",
|
|
3340
|
-
icon: /* @__PURE__ */ A(
|
|
3352
|
+
icon: /* @__PURE__ */ A(De, {}),
|
|
3341
3353
|
category: "PEDIDOS",
|
|
3342
3354
|
color: "yellow",
|
|
3343
|
-
component: /* @__PURE__ */ A(
|
|
3355
|
+
component: /* @__PURE__ */ A(To, {}),
|
|
3344
3356
|
showInSidebar: !0,
|
|
3345
3357
|
keepAlive: !0
|
|
3346
|
-
},
|
|
3358
|
+
}, Uo = {
|
|
3347
3359
|
label: "Novo pedido",
|
|
3348
3360
|
link: "/pedido/novo",
|
|
3349
|
-
icon: /* @__PURE__ */ A(
|
|
3361
|
+
icon: /* @__PURE__ */ A(cr, {}),
|
|
3350
3362
|
category: "PEDIDOS",
|
|
3351
3363
|
color: "yellow",
|
|
3352
|
-
component: /* @__PURE__ */ A(
|
|
3364
|
+
component: /* @__PURE__ */ A(Do, {}),
|
|
3353
3365
|
showInSidebar: !0,
|
|
3354
3366
|
keepAlive: !0
|
|
3355
|
-
},
|
|
3367
|
+
}, Bo = {
|
|
3356
3368
|
label: "Pedidos",
|
|
3357
|
-
icon: /* @__PURE__ */ A(
|
|
3358
|
-
links: [
|
|
3369
|
+
icon: /* @__PURE__ */ A(ar, {}),
|
|
3370
|
+
links: [Go, Uo],
|
|
3359
3371
|
category: "PEDIDOS",
|
|
3360
3372
|
color: "yellow",
|
|
3361
3373
|
showInSidebar: !0
|
|
3362
|
-
},
|
|
3374
|
+
}, Fo = {
|
|
3363
3375
|
label: "Configurações",
|
|
3364
3376
|
link: "/config",
|
|
3365
|
-
icon: /* @__PURE__ */ A(
|
|
3377
|
+
icon: /* @__PURE__ */ A(dr, {}),
|
|
3366
3378
|
category: "CONFIGURAÇÕES",
|
|
3367
3379
|
color: "lime",
|
|
3368
3380
|
component: /* @__PURE__ */ A("div", {}),
|
|
3369
3381
|
showInSidebar: !0
|
|
3370
|
-
},
|
|
3371
|
-
|
|
3372
|
-
Do,
|
|
3382
|
+
}, Rn = [
|
|
3383
|
+
Oo,
|
|
3373
3384
|
Mo,
|
|
3374
|
-
|
|
3375
|
-
|
|
3385
|
+
No,
|
|
3386
|
+
Bo,
|
|
3387
|
+
Fo
|
|
3376
3388
|
];
|
|
3377
|
-
function
|
|
3378
|
-
const [
|
|
3389
|
+
function Ln({ children: e, title: o = "", size: s = "440px", drawerKey: r, styles: t }) {
|
|
3390
|
+
const [a, { open: i, close: n }] = Ve(!1), [c] = Pe(), l = Or(), u = se();
|
|
3379
3391
|
return iA(() => {
|
|
3380
|
-
c.get("drawer") ===
|
|
3392
|
+
c.get("drawer") === r && i();
|
|
3381
3393
|
}, [c]), /* @__PURE__ */ A(
|
|
3382
|
-
|
|
3394
|
+
Se,
|
|
3383
3395
|
{
|
|
3384
3396
|
position: "right",
|
|
3385
|
-
opened:
|
|
3397
|
+
opened: a,
|
|
3386
3398
|
onClose: () => {
|
|
3387
3399
|
n();
|
|
3388
3400
|
const h = new URLSearchParams(c);
|
|
@@ -3391,30 +3403,30 @@ function Sn({ children: e, title: r = "", size: t = "440px", drawerKey: o, style
|
|
|
3391
3403
|
search: h.toString()
|
|
3392
3404
|
});
|
|
3393
3405
|
},
|
|
3394
|
-
title:
|
|
3395
|
-
size:
|
|
3396
|
-
styles:
|
|
3406
|
+
title: o,
|
|
3407
|
+
size: s,
|
|
3408
|
+
styles: t,
|
|
3397
3409
|
children: e
|
|
3398
3410
|
}
|
|
3399
3411
|
);
|
|
3400
3412
|
}
|
|
3401
|
-
function
|
|
3402
|
-
const
|
|
3413
|
+
function qo(e) {
|
|
3414
|
+
const o = qA(), s = HA(), [r] = Pe();
|
|
3403
3415
|
return { openDrawer: () => {
|
|
3404
|
-
const
|
|
3405
|
-
|
|
3406
|
-
pathname:
|
|
3407
|
-
search:
|
|
3416
|
+
const a = new URLSearchParams(r);
|
|
3417
|
+
a.set("drawer", e), o({
|
|
3418
|
+
pathname: s.pathname,
|
|
3419
|
+
search: a.toString()
|
|
3408
3420
|
});
|
|
3409
3421
|
} };
|
|
3410
3422
|
}
|
|
3411
|
-
function
|
|
3412
|
-
const { openDrawer:
|
|
3423
|
+
function Dn({ drawerKey: e }) {
|
|
3424
|
+
const { openDrawer: o } = qo(e);
|
|
3413
3425
|
return iA(() => {
|
|
3414
|
-
|
|
3426
|
+
o();
|
|
3415
3427
|
}, []), null;
|
|
3416
3428
|
}
|
|
3417
|
-
const
|
|
3429
|
+
const Ho = {
|
|
3418
3430
|
// Campos de identificação
|
|
3419
3431
|
showNickname: !0,
|
|
3420
3432
|
// Configurações de campos obrigatórios
|
|
@@ -3422,45 +3434,45 @@ const Uo = {
|
|
|
3422
3434
|
avatarMaxSizeKB: 2e3,
|
|
3423
3435
|
avatarImageQuality: 1
|
|
3424
3436
|
};
|
|
3425
|
-
function
|
|
3426
|
-
const
|
|
3427
|
-
name: `dsUser${
|
|
3428
|
-
label: `${
|
|
3437
|
+
function Tn({ opened: e, handleClose: o, userId: s, updateUser: r, options: t }) {
|
|
3438
|
+
const a = Ye(), i = Ke(), n = ur(), c = Hr(`myProfile${s}Store`), l = Vr(hr.User), u = { ...Ho, ...t ?? {} }, { dataSource: d, isLoading: h, error: f, isError: y, clearError: w } = Yr({
|
|
3439
|
+
name: `dsUser${s}`,
|
|
3440
|
+
label: `${Z().t("archbase:My Profile")}`,
|
|
3429
3441
|
service: l,
|
|
3430
3442
|
store: c,
|
|
3431
3443
|
pageSize: 50,
|
|
3432
3444
|
loadOnStart: !0,
|
|
3433
3445
|
validator: n,
|
|
3434
|
-
id:
|
|
3446
|
+
id: s,
|
|
3435
3447
|
onLoadComplete: (p) => {
|
|
3436
|
-
p.isBrowsing() && p.edit(),
|
|
3448
|
+
p.isBrowsing() && p.edit(), i();
|
|
3437
3449
|
},
|
|
3438
3450
|
onDestroy: (p) => {
|
|
3439
3451
|
},
|
|
3440
3452
|
onError: (p, g) => {
|
|
3441
|
-
|
|
3453
|
+
Gr.showError(Z().t("archbase:WARNING"), p, g);
|
|
3442
3454
|
}
|
|
3443
3455
|
});
|
|
3444
3456
|
iA(() => {
|
|
3445
3457
|
e && d && d.isBrowsing() && d.edit();
|
|
3446
3458
|
}, [d, e]);
|
|
3447
3459
|
const m = (p) => {
|
|
3448
|
-
p && (console.log(p),
|
|
3460
|
+
p && (console.log(p), r(p.name, p.avatar));
|
|
3449
3461
|
};
|
|
3450
3462
|
return /* @__PURE__ */ A(
|
|
3451
|
-
|
|
3463
|
+
Kr,
|
|
3452
3464
|
{
|
|
3453
|
-
title:
|
|
3465
|
+
title: Z().t("archbase:My Profile"),
|
|
3454
3466
|
size: 800,
|
|
3455
3467
|
height: "500px",
|
|
3456
3468
|
opened: e,
|
|
3457
3469
|
dataSource: d,
|
|
3458
|
-
onClickOk:
|
|
3459
|
-
onClickCancel:
|
|
3470
|
+
onClickOk: o,
|
|
3471
|
+
onClickCancel: o,
|
|
3460
3472
|
onAfterSave: m,
|
|
3461
|
-
children: /* @__PURE__ */ A(TA, { style: { height: "440px" }, ref:
|
|
3462
|
-
/* @__PURE__ */ A(
|
|
3463
|
-
|
|
3473
|
+
children: /* @__PURE__ */ A(TA, { style: { height: "440px" }, ref: a, children: /* @__PURE__ */ L(_, { children: [
|
|
3474
|
+
/* @__PURE__ */ A(_, { align: "center", children: /* @__PURE__ */ A(
|
|
3475
|
+
Ur,
|
|
3464
3476
|
{
|
|
3465
3477
|
dataSource: d,
|
|
3466
3478
|
dataField: "avatar",
|
|
@@ -3471,30 +3483,30 @@ function En({ opened: e, handleClose: r, userId: t, updateUser: o, options: s })
|
|
|
3471
3483
|
}
|
|
3472
3484
|
) }),
|
|
3473
3485
|
/* @__PURE__ */ A(
|
|
3474
|
-
|
|
3486
|
+
XA,
|
|
3475
3487
|
{
|
|
3476
|
-
label: `${
|
|
3477
|
-
placeholder: `${
|
|
3488
|
+
label: `${Z().t("archbase:Nome completo")}`,
|
|
3489
|
+
placeholder: `${Z().t("archbase:Informe o nome completo do usuário")}`,
|
|
3478
3490
|
dataSource: d,
|
|
3479
3491
|
dataField: "name",
|
|
3480
3492
|
required: !0
|
|
3481
3493
|
}
|
|
3482
3494
|
),
|
|
3483
3495
|
u.showNickname && /* @__PURE__ */ A(
|
|
3484
|
-
|
|
3496
|
+
XA,
|
|
3485
3497
|
{
|
|
3486
|
-
label: `${
|
|
3487
|
-
placeholder: `${
|
|
3498
|
+
label: `${Z().t("archbase:Apelido")}`,
|
|
3499
|
+
placeholder: `${Z().t("archbase:Apelido")}`,
|
|
3488
3500
|
dataSource: d,
|
|
3489
3501
|
dataField: "nickname",
|
|
3490
3502
|
required: u.requiredNickname
|
|
3491
3503
|
}
|
|
3492
3504
|
),
|
|
3493
3505
|
/* @__PURE__ */ A(
|
|
3494
|
-
|
|
3506
|
+
XA,
|
|
3495
3507
|
{
|
|
3496
|
-
label: `${
|
|
3497
|
-
placeholder: `${
|
|
3508
|
+
label: `${Z().t("archbase:Descrição do usuário")}`,
|
|
3509
|
+
placeholder: `${Z().t("archbase:Informe a descrição do usuário")}`,
|
|
3498
3510
|
dataSource: d,
|
|
3499
3511
|
dataField: "description",
|
|
3500
3512
|
required: !0
|
|
@@ -3504,69 +3516,69 @@ function En({ opened: e, handleClose: r, userId: t, updateUser: o, options: s })
|
|
|
3504
3516
|
}
|
|
3505
3517
|
);
|
|
3506
3518
|
}
|
|
3507
|
-
const
|
|
3519
|
+
const zn = jr((e) => ({
|
|
3508
3520
|
nameStore: "ADMIN_STORE",
|
|
3509
3521
|
openedTabs: [],
|
|
3510
3522
|
activeTabId: void 0,
|
|
3511
3523
|
collapsed: !1,
|
|
3512
|
-
setOpenedTabs: (
|
|
3513
|
-
setActiveTabId: (
|
|
3514
|
-
setCollapsed: (
|
|
3524
|
+
setOpenedTabs: (o) => e({ openedTabs: o }),
|
|
3525
|
+
setActiveTabId: (o) => e({ activeTabId: o }),
|
|
3526
|
+
setCollapsed: (o) => e({ collapsed: o })
|
|
3515
3527
|
}));
|
|
3516
3528
|
export {
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3553
|
-
|
|
3554
|
-
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3558
|
-
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3529
|
+
jA as ArchbaseAdminLayoutContext,
|
|
3530
|
+
dn as ArchbaseAdminLayoutFooter,
|
|
3531
|
+
un as ArchbaseAdminLayoutHeader,
|
|
3532
|
+
Xr as ArchbaseAdminLayoutProvider,
|
|
3533
|
+
xn as ArchbaseAdminMainLayout,
|
|
3534
|
+
En as ArchbaseAdminTabContainer,
|
|
3535
|
+
lo as ArchbaseAdvancedSidebar,
|
|
3536
|
+
xo as ArchbaseAliveAbleRoutes,
|
|
3537
|
+
Jr as ArchbaseChangeLanguageAction,
|
|
3538
|
+
Zr as ArchbaseColorSchemeAction,
|
|
3539
|
+
Ln as ArchbaseDrawerContent,
|
|
3540
|
+
Dn as ArchbaseDrawerTrigger,
|
|
3541
|
+
_r as ArchbaseHeaderNavAction,
|
|
3542
|
+
KA as ArchbaseKeepAliveRoute,
|
|
3543
|
+
yo as ArchbaseMantineSidebar,
|
|
3544
|
+
Tn as ArchbaseMyProfileModal,
|
|
3545
|
+
Ue as ArchbaseNavigationContext,
|
|
3546
|
+
Sn as ArchbaseNavigationProvider,
|
|
3547
|
+
eo as CommandPaletteButton,
|
|
3548
|
+
he as MantineSidebarErrorMessage,
|
|
3549
|
+
ho as MantineSidebarGroupsSkeleton,
|
|
3550
|
+
ue as MantineSidebarMenuSkeleton,
|
|
3551
|
+
mo as MinimalSidebar,
|
|
3552
|
+
ko as RailSidebar,
|
|
3553
|
+
bn as SidebarBadge,
|
|
3554
|
+
we as SidebarErrorMessage,
|
|
3555
|
+
co as SidebarGroup,
|
|
3556
|
+
uo as SidebarGroupIcon,
|
|
3557
|
+
so as SidebarGroupsSkeleton,
|
|
3558
|
+
Cn as SidebarHeaderSkeleton,
|
|
3559
|
+
mn as SidebarIndicator,
|
|
3560
|
+
MA as SidebarItem,
|
|
3561
|
+
ye as SidebarMenuSkeleton,
|
|
3562
|
+
ae as SidebarProvider,
|
|
3563
|
+
pn as SidebarSearch,
|
|
3564
|
+
fn as SidebarSection,
|
|
3565
|
+
gn as SidebarUserProfile,
|
|
3566
|
+
kn as SidebarUserProfileSkeleton,
|
|
3567
|
+
po as StandardSidebar,
|
|
3568
|
+
ro as defaultAvatar,
|
|
3569
|
+
Ho as defaultMyProfileModalOptions,
|
|
3570
|
+
Rn as navigationDataSample,
|
|
3571
|
+
zn as useArchbaseAdminStore,
|
|
3572
|
+
qo as useArchbaseDrawer,
|
|
3573
|
+
Be as useArchbaseNavigationContext,
|
|
3574
|
+
In as useArchbaseNavigationListener,
|
|
3575
|
+
wn as useArchbaseRouteParams,
|
|
3576
|
+
Ge as useKeepAliveCache,
|
|
3577
|
+
yn as useKeepAliveVisibility,
|
|
3578
|
+
vn as useParams,
|
|
3579
|
+
ie as useSidebar,
|
|
3580
|
+
de as useSidebarKeyboard,
|
|
3581
|
+
ce as useSidebarNavigation,
|
|
3582
|
+
hn as useSidebarOptional,
|
|
3583
|
+
io as useSidebarSearch
|
|
3572
3584
|
};
|