@archbase/admin 3.0.0 → 3.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +42 -0
- package/dist/ArchbaseAdminLayout.context.d.ts +36 -0
- package/dist/ArchbaseAdminLayoutFooter.d.ts +5 -0
- package/dist/ArchbaseAdminLayoutHeader.d.ts +44 -0
- package/dist/ArchbaseAdminMainLayout.d.ts +64 -0
- package/dist/ArchbaseAdminTabContainer.d.ts +9 -0
- package/dist/ArchbaseAdvancedSidebar.d.ts +39 -0
- package/dist/ArchbaseAliveAbleRoutes.d.ts +16 -0
- package/dist/ArchbaseChangeLanguageAction.d.ts +1 -0
- package/dist/ArchbaseChangeLanguageMenuItem.d.ts +1 -0
- package/dist/ArchbaseColorSchemeAction.d.ts +6 -0
- package/dist/ArchbaseHeaderNavAction.d.ts +5 -0
- package/dist/ArchbaseMyProfileModal.d.ts +17 -0
- package/dist/ArchbaseNavigation.context.d.ts +31 -0
- package/dist/CommandPaletteButton.d.ts +13 -0
- package/dist/buildMenuItem.d.ts +1 -0
- package/dist/buildMenuItemStyles.d.ts +3 -0
- package/dist/buildNavbar.d.ts +3 -0
- package/dist/buildSetCollapsedButton.d.ts +3 -0
- package/dist/createThemedStyles.d.ts +2 -0
- package/dist/drawer/DrawerContent.d.ts +10 -0
- package/dist/drawer/DrawerTrigger.d.ts +3 -0
- package/dist/drawer/useArchbaseDrawer.d.ts +3 -0
- package/dist/hooks/index.d.ts +1 -0
- package/dist/hooks/useArchbaseAdminStore.d.ts +11 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +1117 -967
- package/dist/navigationData.d.ts +2 -0
- package/dist/navigationDataWithGroup.d.ts +2 -0
- package/dist/types.d.ts +65 -0
- package/package.json +27 -26
- package/dist/archbase-admin-3.0.0.tgz +0 -0
package/dist/index.js
CHANGED
|
@@ -1,181 +1,181 @@
|
|
|
1
|
-
import { jsx as A, jsxs as
|
|
2
|
-
import j, { useState as
|
|
3
|
-
import { useArchbaseSecurityManager as
|
|
4
|
-
import { useUncontrolled as
|
|
5
|
-
import { Flex as
|
|
6
|
-
import { IconSun as
|
|
7
|
-
import { useArchbaseAppContext as
|
|
8
|
-
import { BRFlag as pA, USFlag as
|
|
9
|
-
import { spotlight as
|
|
10
|
-
import { useNavigate as QA, useLocation 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
|
|
21
|
-
navigationData:
|
|
22
|
-
user:
|
|
23
|
-
owner:
|
|
24
|
-
company:
|
|
25
|
-
navigationRootLink:
|
|
26
|
-
children:
|
|
27
|
-
enableSecurity:
|
|
28
|
-
securityOptions:
|
|
29
|
-
onNavigationDataChange:
|
|
30
|
-
initialSidebarCollapsed:
|
|
1
|
+
import { jsx as A, jsxs as I, Fragment as sA } from "react/jsx-runtime";
|
|
2
|
+
import j, { useState as eA, useEffect as U, useMemo as RA, useContext as gA, useCallback as aA, createContext as qA, useRef as AA, useLayoutEffect as xA, useReducer as te } from "react";
|
|
3
|
+
import { useArchbaseSecurityManager as ae } from "@archbase/security";
|
|
4
|
+
import { useUncontrolled as se, useMediaQuery as zA, useDisclosure as le, useFocusTrap as ie, useForceUpdate as ce } from "@mantine/hooks";
|
|
5
|
+
import { Flex as LA, useMantineColorScheme as iA, Menu as H, ActionIcon as mA, Group as BA, Tooltip as CA, Button as de, Badge as ue, Center as he, Image as pe, useMantineTheme as HA, px as X, Burger as ge, Box as fe, Avatar as be, Text as KA, ScrollArea as TA, Stack as vA, Paper as Ce, AppShell as dA, Drawer as GA } from "@mantine/core";
|
|
6
|
+
import { IconSun as VA, IconMoonStars as YA, IconTerminal as ve, IconSearch as ke, IconDots as me, IconChevronRight as we, IconChevronLeft as ye, IconHome2 as xe, IconDashboard as Se, IconUsers as Ee, IconListSearch as XA, IconUserPlus as Re, IconNews as Le, IconFilePlus as Te, IconSettings as De } from "@tabler/icons-react";
|
|
7
|
+
import { useArchbaseAppContext as DA, getI18nextInstance as L, useArchbaseTranslation as IA, archbaseI18next as uA, useArchbaseValidator as Ie, ARCHBASE_IOC_API_TYPE as Qe } from "@archbase/core";
|
|
8
|
+
import { BRFlag as pA, USFlag as jA, ESFlag as SA, VEFlag as Oe, UYFlag as Ne, SVFlag as Pe, PYFlag as ze, PEFlag as $e, PAFlag as Me, NIFlag as Ue, MXFlag as Fe, HNFlag as qe, GTFlag as Be, ECFlag as He, DOFlag as Ke, CUFlag as Ge, CRFlag as Ve, COFlag as Ye, CLFlag as Xe, BOFlag as je, ARFlag as Je } from "mantine-flagpack";
|
|
9
|
+
import { spotlight as We, Spotlight as hA } from "@mantine/spotlight";
|
|
10
|
+
import { useNavigate as QA, useLocation as OA, matchPath as $A } from "react-router";
|
|
11
|
+
import { Routes as JA, Route as EA, useSearchParams as WA, useNavigate as Ze, useLocation as _e } from "react-router-dom";
|
|
12
|
+
import { useMediaQuery as Ao } from "usehooks-ts";
|
|
13
|
+
import { useArchbaseNavigateParams as eo, useArchbaseVisible as oo, ArchbaseNotifications as no, ArchbaseAvatarEdit as ro, ArchbaseEdit as yA } from "@archbase/components";
|
|
14
|
+
import { SubMenu as to, MenuItem as MA, menuClasses as E, Sidebar as ZA, Menu as _A, sidebarClasses as Ae } from "react-pro-sidebar";
|
|
15
|
+
import ao from "@rehooks/component-size";
|
|
16
|
+
import { ArchbaseAdvancedTabs as so } from "@archbase/layout";
|
|
17
|
+
import { useArchbaseStore as lo, useArchbaseRemoteServiceApi as io, useArchbaseRemoteDataSource as co } from "@archbase/data";
|
|
18
|
+
import { ArchbaseFormModalTemplate as uo } from "@archbase/template";
|
|
19
|
+
import { create as ho } from "zustand";
|
|
20
|
+
const wA = j.createContext({}), po = ({
|
|
21
|
+
navigationData: e,
|
|
22
|
+
user: n,
|
|
23
|
+
owner: d,
|
|
24
|
+
company: o,
|
|
25
|
+
navigationRootLink: h,
|
|
26
|
+
children: u,
|
|
27
|
+
enableSecurity: c,
|
|
28
|
+
securityOptions: r,
|
|
29
|
+
onNavigationDataChange: l,
|
|
30
|
+
initialSidebarCollapsed: a
|
|
31
31
|
}) => {
|
|
32
|
-
const [
|
|
33
|
-
value:
|
|
34
|
-
defaultValue:
|
|
32
|
+
const [p, f] = eA(a), [v, s] = eA(!1), [C, w] = se({
|
|
33
|
+
value: l !== void 0 ? e : void 0,
|
|
34
|
+
defaultValue: c ? [] : e,
|
|
35
35
|
finalValue: [],
|
|
36
|
-
onChange:
|
|
36
|
+
onChange: l
|
|
37
37
|
});
|
|
38
38
|
U(() => {
|
|
39
|
-
}, [
|
|
40
|
-
const { securityManager:
|
|
41
|
-
resourceName:
|
|
42
|
-
resourceDescription:
|
|
43
|
-
enableSecurity:
|
|
39
|
+
}, [C, c]);
|
|
40
|
+
const { securityManager: x } = ae({
|
|
41
|
+
resourceName: r?.navigationResourceName ? r.navigationResourceName : "ArchbaseAdvancedSidebar",
|
|
42
|
+
resourceDescription: r?.navigationResourceDescription ? r.navigationResourceDescription : "archbase:Navegação",
|
|
43
|
+
enableSecurity: c
|
|
44
44
|
});
|
|
45
45
|
return U(() => {
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}),
|
|
49
|
-
const
|
|
50
|
-
...
|
|
51
|
-
disabled: !
|
|
52
|
-
links:
|
|
53
|
-
const
|
|
46
|
+
c && (e.filter((b) => b.showInSidebar).forEach((b) => {
|
|
47
|
+
x.registerAction(b.label, b.label), b?.links?.forEach((D) => x.registerAction(`${b.label} -> ${D.label}`, `${b.label} -> ${D.label}`));
|
|
48
|
+
}), x.apply(() => {
|
|
49
|
+
const b = e.map((D) => ({
|
|
50
|
+
...D,
|
|
51
|
+
disabled: !x.hasPermission(D.label),
|
|
52
|
+
links: D.links && D.links.map((F) => {
|
|
53
|
+
const P = x.hasPermission(`${D.label} -> ${F.label}`);
|
|
54
54
|
return {
|
|
55
|
-
...
|
|
56
|
-
disabled:
|
|
55
|
+
...F,
|
|
56
|
+
disabled: !P
|
|
57
57
|
};
|
|
58
58
|
})
|
|
59
59
|
}));
|
|
60
|
-
|
|
60
|
+
w(b);
|
|
61
61
|
}));
|
|
62
|
-
}, [
|
|
63
|
-
|
|
62
|
+
}, [n?.id, c, e, x, w]), /* @__PURE__ */ A(
|
|
63
|
+
wA.Provider,
|
|
64
64
|
{
|
|
65
65
|
value: {
|
|
66
|
-
navigationData:
|
|
67
|
-
setNavigationData:
|
|
68
|
-
user:
|
|
69
|
-
owner:
|
|
70
|
-
company:
|
|
71
|
-
navigationRootLink:
|
|
72
|
-
collapsed:
|
|
73
|
-
setCollapsed:
|
|
74
|
-
hidden:
|
|
75
|
-
setHidden:
|
|
76
|
-
onNavigationDataChange:
|
|
66
|
+
navigationData: C,
|
|
67
|
+
setNavigationData: w,
|
|
68
|
+
user: n,
|
|
69
|
+
owner: d,
|
|
70
|
+
company: o,
|
|
71
|
+
navigationRootLink: h,
|
|
72
|
+
collapsed: p,
|
|
73
|
+
setCollapsed: f,
|
|
74
|
+
hidden: v,
|
|
75
|
+
setHidden: s,
|
|
76
|
+
onNavigationDataChange: l
|
|
77
77
|
},
|
|
78
|
-
children:
|
|
78
|
+
children: u
|
|
79
79
|
}
|
|
80
80
|
);
|
|
81
|
-
},
|
|
82
|
-
const
|
|
81
|
+
}, un = ({ children: e }) => /* @__PURE__ */ A(LA, { align: "center", direction: "row", wrap: "wrap", h: "100%", children: e }), go = () => {
|
|
82
|
+
const e = DA(), { colorScheme: n } = iA(), d = n === "dark", [o, h] = eA(L().language);
|
|
83
83
|
U(() => {
|
|
84
|
-
const
|
|
85
|
-
|
|
84
|
+
const l = (a) => {
|
|
85
|
+
h(a);
|
|
86
86
|
};
|
|
87
|
-
return
|
|
88
|
-
|
|
87
|
+
return L().on("languageChanged", l), () => {
|
|
88
|
+
L().off("languageChanged", l);
|
|
89
89
|
};
|
|
90
90
|
}, []);
|
|
91
|
-
const
|
|
92
|
-
if (!
|
|
91
|
+
const u = (l) => {
|
|
92
|
+
if (!l)
|
|
93
93
|
return /* @__PURE__ */ A(pA, { size: 24 });
|
|
94
|
-
if (
|
|
95
|
-
return /* @__PURE__ */ A(
|
|
96
|
-
if (
|
|
94
|
+
if (l === "en" || l === "en-US")
|
|
95
|
+
return /* @__PURE__ */ A(jA, { size: 24 });
|
|
96
|
+
if (l === "pt-BR")
|
|
97
97
|
return /* @__PURE__ */ A(pA, { size: 24 });
|
|
98
|
-
if (
|
|
98
|
+
if (l.includes("es"))
|
|
99
99
|
switch (navigator.language || navigator.languages[0]) {
|
|
100
100
|
case "es":
|
|
101
101
|
case "es-ES":
|
|
102
|
-
return /* @__PURE__ */ A(
|
|
102
|
+
return /* @__PURE__ */ A(SA, { size: 24 });
|
|
103
103
|
case "es-AR":
|
|
104
|
-
return /* @__PURE__ */ A(
|
|
104
|
+
return /* @__PURE__ */ A(Je, { size: 24 });
|
|
105
105
|
case "es-BO":
|
|
106
|
-
return /* @__PURE__ */ A(
|
|
106
|
+
return /* @__PURE__ */ A(je, { size: 24 });
|
|
107
107
|
case "es-CL":
|
|
108
|
-
return /* @__PURE__ */ A(
|
|
108
|
+
return /* @__PURE__ */ A(Xe, { size: 24 });
|
|
109
109
|
case "es-CO":
|
|
110
110
|
return /* @__PURE__ */ A(Ye, { size: 24 });
|
|
111
111
|
case "es-CR":
|
|
112
|
-
return /* @__PURE__ */ A(
|
|
112
|
+
return /* @__PURE__ */ A(Ve, { size: 24 });
|
|
113
113
|
case "es-CU":
|
|
114
114
|
return /* @__PURE__ */ A(Ge, { size: 24 });
|
|
115
115
|
case "es-DO":
|
|
116
|
-
return /* @__PURE__ */ A(
|
|
116
|
+
return /* @__PURE__ */ A(Ke, { size: 24 });
|
|
117
117
|
case "es-EC":
|
|
118
|
-
return /* @__PURE__ */ A(
|
|
118
|
+
return /* @__PURE__ */ A(He, { size: 24 });
|
|
119
119
|
case "es-GT":
|
|
120
|
-
return /* @__PURE__ */ A(
|
|
120
|
+
return /* @__PURE__ */ A(Be, { size: 24 });
|
|
121
121
|
case "es-HN":
|
|
122
|
-
return /* @__PURE__ */ A(
|
|
122
|
+
return /* @__PURE__ */ A(qe, { size: 24 });
|
|
123
123
|
case "es-MX":
|
|
124
|
-
return /* @__PURE__ */ A(
|
|
124
|
+
return /* @__PURE__ */ A(Fe, { size: 24 });
|
|
125
125
|
case "es-NI":
|
|
126
|
-
return /* @__PURE__ */ A(
|
|
126
|
+
return /* @__PURE__ */ A(Ue, { size: 24 });
|
|
127
127
|
case "es-PA":
|
|
128
|
-
return /* @__PURE__ */ A(
|
|
128
|
+
return /* @__PURE__ */ A(Me, { size: 24 });
|
|
129
129
|
case "es-PE":
|
|
130
|
-
return /* @__PURE__ */ A(
|
|
130
|
+
return /* @__PURE__ */ A($e, { size: 24 });
|
|
131
131
|
case "es-PY":
|
|
132
|
-
return /* @__PURE__ */ A(
|
|
132
|
+
return /* @__PURE__ */ A(ze, { size: 24 });
|
|
133
133
|
case "es-SV":
|
|
134
134
|
return /* @__PURE__ */ A(Pe, { size: 24 });
|
|
135
135
|
case "es-UY":
|
|
136
|
-
return /* @__PURE__ */ A(
|
|
136
|
+
return /* @__PURE__ */ A(Ne, { size: 24 });
|
|
137
137
|
case "es-VE":
|
|
138
|
-
return /* @__PURE__ */ A(
|
|
138
|
+
return /* @__PURE__ */ A(Oe, { size: 24 });
|
|
139
139
|
default:
|
|
140
|
-
return /* @__PURE__ */ A(
|
|
140
|
+
return /* @__PURE__ */ A(SA, { size: 24 });
|
|
141
141
|
}
|
|
142
142
|
return /* @__PURE__ */ A(pA, { size: 24 });
|
|
143
|
-
},
|
|
144
|
-
if (
|
|
145
|
-
return
|
|
146
|
-
|
|
143
|
+
}, c = () => {
|
|
144
|
+
if (e.languages)
|
|
145
|
+
return e.languages.filter((l) => l).map((l) => /* @__PURE__ */ A(
|
|
146
|
+
H.Item,
|
|
147
147
|
{
|
|
148
|
-
onClick: () =>
|
|
149
|
-
leftSection:
|
|
150
|
-
children:
|
|
148
|
+
onClick: () => r(l.lang),
|
|
149
|
+
leftSection: u(l.lang),
|
|
150
|
+
children: l.name
|
|
151
151
|
},
|
|
152
|
-
|
|
152
|
+
l.name
|
|
153
153
|
));
|
|
154
|
-
},
|
|
155
|
-
|
|
154
|
+
}, r = (l) => {
|
|
155
|
+
L().changeLanguage(l);
|
|
156
156
|
};
|
|
157
|
-
return /* @__PURE__ */
|
|
158
|
-
/* @__PURE__ */ A(
|
|
159
|
-
/* @__PURE__ */ A(
|
|
157
|
+
return /* @__PURE__ */ I(H, { shadow: "md", width: 200, position: "bottom-end", children: [
|
|
158
|
+
/* @__PURE__ */ A(H.Target, { children: /* @__PURE__ */ A(mA, { variant: "transparent", color: d ? "white" : "blue", title: L().t("toggleLanguage"), children: u(o) }) }),
|
|
159
|
+
/* @__PURE__ */ A(H.Dropdown, { children: c() })
|
|
160
160
|
] });
|
|
161
|
-
},
|
|
162
|
-
const
|
|
163
|
-
if (
|
|
164
|
-
return
|
|
165
|
-
|
|
161
|
+
}, fo = () => {
|
|
162
|
+
const e = DA(), { colorScheme: n } = iA(), { t: d, i18n: o } = IA(), h = (r) => r === "en" ? /* @__PURE__ */ A(jA, { size: 24 }) : r === "pt-BR" ? /* @__PURE__ */ A(pA, { size: 24 }) : r === "es" ? /* @__PURE__ */ A(SA, { size: 24 }) : /* @__PURE__ */ A(pA, { size: 24 }), u = () => {
|
|
163
|
+
if (e.languages)
|
|
164
|
+
return e.languages.filter((r) => r).map((r) => /* @__PURE__ */ A(
|
|
165
|
+
H.Item,
|
|
166
166
|
{
|
|
167
|
-
onClick: () =>
|
|
168
|
-
leftSection:
|
|
169
|
-
children:
|
|
167
|
+
onClick: () => c(r.lang),
|
|
168
|
+
leftSection: h(r.lang),
|
|
169
|
+
children: r.name
|
|
170
170
|
},
|
|
171
|
-
|
|
171
|
+
r.name
|
|
172
172
|
));
|
|
173
|
-
},
|
|
174
|
-
|
|
173
|
+
}, c = (r) => {
|
|
174
|
+
o.changeLanguage(r);
|
|
175
175
|
};
|
|
176
|
-
return /* @__PURE__ */
|
|
177
|
-
/* @__PURE__ */ A(
|
|
178
|
-
|
|
176
|
+
return /* @__PURE__ */ I(H, { children: [
|
|
177
|
+
/* @__PURE__ */ A(H.Target, { children: /* @__PURE__ */ I(
|
|
178
|
+
BA,
|
|
179
179
|
{
|
|
180
180
|
w: "100%",
|
|
181
181
|
justify: "flex-start",
|
|
@@ -184,175 +184,175 @@ const vA = j.createContext({}), uo = ({
|
|
|
184
184
|
variant: "transparent",
|
|
185
185
|
fw: 400,
|
|
186
186
|
gap: 4,
|
|
187
|
-
title:
|
|
187
|
+
title: L().t("archbase:toggleLanguage"),
|
|
188
188
|
children: [
|
|
189
|
-
|
|
190
|
-
`${
|
|
189
|
+
h(o.language),
|
|
190
|
+
`${e.languages.find((r) => r.lang === o.language)?.name ?? "Português"}`
|
|
191
191
|
]
|
|
192
192
|
}
|
|
193
193
|
) }),
|
|
194
|
-
/* @__PURE__ */ A(
|
|
194
|
+
/* @__PURE__ */ A(H.Dropdown, { children: u() })
|
|
195
195
|
] });
|
|
196
|
-
},
|
|
197
|
-
toggleColorScheme:
|
|
198
|
-
sunColor:
|
|
199
|
-
moonColor:
|
|
196
|
+
}, bo = ({
|
|
197
|
+
toggleColorScheme: e,
|
|
198
|
+
sunColor: n = "white",
|
|
199
|
+
moonColor: d = "blue"
|
|
200
200
|
}) => {
|
|
201
|
-
const { t:
|
|
202
|
-
|
|
203
|
-
},
|
|
201
|
+
const { t: o } = IA(), { colorScheme: h, toggleColorScheme: u } = iA(), c = () => {
|
|
202
|
+
e ? e() : u();
|
|
203
|
+
}, r = h === "dark";
|
|
204
204
|
return /* @__PURE__ */ A(
|
|
205
|
-
|
|
205
|
+
mA,
|
|
206
206
|
{
|
|
207
207
|
variant: "transparent",
|
|
208
|
-
color:
|
|
209
|
-
onClick: () =>
|
|
210
|
-
title:
|
|
211
|
-
children:
|
|
208
|
+
color: r ? n : d,
|
|
209
|
+
onClick: () => c(),
|
|
210
|
+
title: L().t("archbase:toggleColorScheme"),
|
|
211
|
+
children: r ? /* @__PURE__ */ A(VA, { size: "1.5rem" }) : /* @__PURE__ */ A(YA, { size: "1.5rem" })
|
|
212
212
|
}
|
|
213
213
|
);
|
|
214
|
-
},
|
|
215
|
-
function
|
|
214
|
+
}, Co = (e) => /* @__PURE__ */ A(BA, { gap: "sm", children: e.children });
|
|
215
|
+
function vo({ category: e, label: n, color: d, description: o, image: h, onClick: u }) {
|
|
216
216
|
return /* @__PURE__ */ A(
|
|
217
|
-
|
|
217
|
+
hA.Action,
|
|
218
218
|
{
|
|
219
|
-
onClick:
|
|
220
|
-
label: `${
|
|
221
|
-
description:
|
|
222
|
-
leftSection:
|
|
223
|
-
rightSection:
|
|
219
|
+
onClick: u,
|
|
220
|
+
label: `${L().t(n || "")}`,
|
|
221
|
+
description: o ? L().t(o) : void 0,
|
|
222
|
+
leftSection: h ? /* @__PURE__ */ A(he, { children: /* @__PURE__ */ A(pe, { src: h, alt: L().t(n || ""), width: 24, height: 24 }) }) : void 0,
|
|
223
|
+
rightSection: e ? /* @__PURE__ */ A(ue, { color: d, size: "sm", children: L().t(e) }) : void 0
|
|
224
224
|
},
|
|
225
|
-
|
|
225
|
+
n
|
|
226
226
|
);
|
|
227
227
|
}
|
|
228
|
-
const
|
|
229
|
-
const [
|
|
230
|
-
const
|
|
231
|
-
return
|
|
232
|
-
|
|
233
|
-
!
|
|
234
|
-
id:
|
|
235
|
-
category:
|
|
236
|
-
color:
|
|
237
|
-
label:
|
|
238
|
-
link:
|
|
228
|
+
const ko = ({ navigationData: e, color: n }) => {
|
|
229
|
+
const [d, o] = eA(""), h = QA(), { t: u } = IA(), c = RA(() => {
|
|
230
|
+
const l = new Array();
|
|
231
|
+
return e.forEach((a) => {
|
|
232
|
+
a.links ? a.links.forEach((p) => {
|
|
233
|
+
!p.disabled && p.showInSidebar && l.push({
|
|
234
|
+
id: p.label,
|
|
235
|
+
category: p.category ? p.category.toUpperCase() : "",
|
|
236
|
+
color: p.color,
|
|
237
|
+
label: p.label,
|
|
238
|
+
link: p.link,
|
|
239
239
|
onClick: () => {
|
|
240
|
-
|
|
240
|
+
p.link && h(p.link);
|
|
241
241
|
}
|
|
242
242
|
});
|
|
243
|
-
}) : !
|
|
244
|
-
id:
|
|
243
|
+
}) : !a.disabled && a.showInSidebar && l.push({
|
|
244
|
+
id: a.label,
|
|
245
245
|
onClick: () => {
|
|
246
|
-
|
|
246
|
+
a.link && h(a.link);
|
|
247
247
|
},
|
|
248
|
-
category:
|
|
249
|
-
color:
|
|
250
|
-
label:
|
|
251
|
-
link:
|
|
248
|
+
category: a.category ? a.category.toUpperCase() : "",
|
|
249
|
+
color: a.color,
|
|
250
|
+
label: a.label,
|
|
251
|
+
link: a.link
|
|
252
252
|
});
|
|
253
|
-
}),
|
|
254
|
-
}, [
|
|
255
|
-
const
|
|
256
|
-
return
|
|
257
|
-
}).map((
|
|
258
|
-
return /* @__PURE__ */ A(
|
|
259
|
-
/* @__PURE__ */ A(
|
|
260
|
-
/* @__PURE__ */
|
|
261
|
-
|
|
253
|
+
}), l;
|
|
254
|
+
}, [e, h]), r = c.filter((l) => {
|
|
255
|
+
const a = `${u(l.label || "")}`;
|
|
256
|
+
return a && a.toLowerCase().includes(d.toLowerCase().trim());
|
|
257
|
+
}).map((l) => /* @__PURE__ */ A(vo, { ...l }, l.id));
|
|
258
|
+
return /* @__PURE__ */ A(sA, { children: c && c.length > 0 ? /* @__PURE__ */ I(sA, { children: [
|
|
259
|
+
/* @__PURE__ */ A(CA, { withinPortal: !0, withArrow: !0, label: `${u("archbase:Comandos ⌘M")}`, children: /* @__PURE__ */ A(de, { color: n, leftSection: /* @__PURE__ */ A(ve, { size: "24px" }), onClick: () => We.open() }) }),
|
|
260
|
+
/* @__PURE__ */ I(
|
|
261
|
+
hA.Root,
|
|
262
262
|
{
|
|
263
263
|
shortcut: ["mod + M", "/"],
|
|
264
|
-
onQueryChange: (
|
|
265
|
-
query:
|
|
264
|
+
onQueryChange: (l) => o(l),
|
|
265
|
+
query: d,
|
|
266
266
|
children: [
|
|
267
|
-
/* @__PURE__ */ A(
|
|
268
|
-
/* @__PURE__ */ A(
|
|
267
|
+
/* @__PURE__ */ A(hA.Search, { placeholder: `${u("archbase:Localizar...")}`, leftSection: /* @__PURE__ */ A(ke, { size: "1.2rem" }) }),
|
|
268
|
+
/* @__PURE__ */ A(hA.ActionsList, { children: r.length > 0 ? r : /* @__PURE__ */ A(hA.Empty, { children: L().t("archbase:Nenhum resultado...") }) })
|
|
269
269
|
]
|
|
270
270
|
}
|
|
271
271
|
)
|
|
272
272
|
] }) : null });
|
|
273
|
-
}, mo = "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAsLCwsMCw0ODg0SExETEhoYFhYYGiccHhweHCc8JSslJSslPDVANDA0QDVfSkJCSl9tXFdcbYR2doSnnqfa2v8BCwsLCwwLDQ4ODRITERMSGhgWFhgaJxweHB4cJzwlKyUlKyU8NUA0MDRANV9KQkJKX21cV1xthHZ2hKeep9ra///CABEIA7IDsgMBIgACEQEDEQH/xAAaAAEAAwEBAQAAAAAAAAAAAAAAAwQFAgEH/9oACAEBAAAAAPoQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHMMUfPg9de9ddSd9gAAAAAAAAAAAAAAAOK9eIAAHUs08gAAAAAAAAAAAAAACCrAAAABLbsAAAAAAAAAAAAAAHNWtwAAAAE+h6AAAAAAAAAAAAA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QMBAT8AYQ//2Q==",
|
|
274
|
-
userMenuItems:
|
|
275
|
-
showUserMenuToggleColorScheme:
|
|
276
|
-
showUserMenuOptionsLabel:
|
|
277
|
-
userMenuToggleColorSchemeIconSize:
|
|
278
|
-
showMenuItemsAfterToggleColorScheme:
|
|
279
|
-
userMenuItemsAfterToggleColorScheme:
|
|
280
|
-
showMenuItemsBeforeToggleColorScheme:
|
|
281
|
-
userMenuItemsBeforeToggleColorScheme:
|
|
282
|
-
hideAutoHeaderActionsOnUserMenu:
|
|
283
|
-
showHeaderActions:
|
|
284
|
-
showHeaderToggleColorScheme:
|
|
285
|
-
hideAutoHeaderActionsOnUserMenuBreakPoint:
|
|
286
|
-
withDividerAfterUserMenuToggleColorScheme:
|
|
287
|
-
user:
|
|
288
|
-
navigationData:
|
|
289
|
-
logo:
|
|
290
|
-
headerActions:
|
|
291
|
-
styleLogo:
|
|
292
|
-
showLanguageSelector:
|
|
293
|
-
sideBarHiddenBreakPoint:
|
|
294
|
-
headerLeftContent:
|
|
295
|
-
toggleColorScheme:
|
|
296
|
-
logoLeftSection:
|
|
273
|
+
}, mo = "/9j/4AAQSkZJRgABAQAAAQABAAD/2wCEAAsLCwsMCw0ODg0SExETEhoYFhYYGiccHhweHCc8JSslJSslPDVANDA0QDVfSkJCSl9tXFdcbYR2doSnnqfa2v8BCwsLCwwLDQ4ODRITERMSGhgWFhgaJxweHB4cJzwlKyUlKyU8NUA0MDRANV9KQkJKX21cV1xthHZ2hKeep9ra///CABEIA7IDsgMBIgACEQEDEQH/xAAaAAEAAwEBAQAAAAAAAAAAAAAAAwQFAgEH/9oACAEBAAAAAPoQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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+yLMAZJmd8Ekmp6rhzDLk2YwrqwqpqP8ATMZQj1dLk/FH+P8A/8QAFBEBAAAAAAAAAAAAAAAAAAAAsP/aAAgBAgEBPwBhD//EABQRAQAAAAAAAAAAAAAAAAAAALD/2gAIAQMBAT8AYQ//2Q==", hn = ({
|
|
274
|
+
userMenuItems: e,
|
|
275
|
+
showUserMenuToggleColorScheme: n = !0,
|
|
276
|
+
showUserMenuOptionsLabel: d = !0,
|
|
277
|
+
userMenuToggleColorSchemeIconSize: o = 14,
|
|
278
|
+
showMenuItemsAfterToggleColorScheme: h = !0,
|
|
279
|
+
userMenuItemsAfterToggleColorScheme: u,
|
|
280
|
+
showMenuItemsBeforeToggleColorScheme: c = !0,
|
|
281
|
+
userMenuItemsBeforeToggleColorScheme: r,
|
|
282
|
+
hideAutoHeaderActionsOnUserMenu: l = !0,
|
|
283
|
+
showHeaderActions: a = !0,
|
|
284
|
+
showHeaderToggleColorScheme: p = !0,
|
|
285
|
+
hideAutoHeaderActionsOnUserMenuBreakPoint: f,
|
|
286
|
+
withDividerAfterUserMenuToggleColorScheme: v = !0,
|
|
287
|
+
user: s,
|
|
288
|
+
navigationData: C = [],
|
|
289
|
+
logo: w,
|
|
290
|
+
headerActions: x,
|
|
291
|
+
styleLogo: R,
|
|
292
|
+
showLanguageSelector: b = !1,
|
|
293
|
+
sideBarHiddenBreakPoint: D,
|
|
294
|
+
headerLeftContent: F,
|
|
295
|
+
toggleColorScheme: P,
|
|
296
|
+
logoLeftSection: K,
|
|
297
297
|
logoRightSection: G,
|
|
298
|
-
showBurger:
|
|
298
|
+
showBurger: oA = !0,
|
|
299
299
|
showCommands: V = !0,
|
|
300
300
|
sunColor: J,
|
|
301
|
-
moonColor:
|
|
302
|
-
styles:
|
|
301
|
+
moonColor: Y,
|
|
302
|
+
styles: nA
|
|
303
303
|
}) => {
|
|
304
|
-
const
|
|
305
|
-
`(max-width: ${
|
|
306
|
-
),
|
|
307
|
-
`(max-width: ${
|
|
304
|
+
const W = HA(), { colorScheme: Z, toggleColorScheme: _ } = iA(), q = gA(wA), $ = zA(
|
|
305
|
+
`(max-width: ${D ? X(D) : W.breakpoints.md})`
|
|
306
|
+
), N = zA(
|
|
307
|
+
`(max-width: ${f ? X(f) : W.breakpoints.md})`
|
|
308
308
|
);
|
|
309
|
-
let
|
|
310
|
-
return
|
|
311
|
-
/* @__PURE__ */
|
|
312
|
-
|
|
309
|
+
let g = !1, i = !1;
|
|
310
|
+
return l && (a = !N, p = !N, n = N, d = N, c = N, v = N, b && (i = !N, g = N)), /* @__PURE__ */ I(sA, { children: [
|
|
311
|
+
/* @__PURE__ */ I(LA, { style: { width: 300, height: 50 }, align: "center", children: [
|
|
312
|
+
K,
|
|
313
313
|
/* @__PURE__ */ A(
|
|
314
314
|
"img",
|
|
315
315
|
{
|
|
316
316
|
style: {
|
|
317
317
|
height: 50,
|
|
318
|
-
...
|
|
318
|
+
...R
|
|
319
319
|
},
|
|
320
320
|
alt: "logo",
|
|
321
|
-
src:
|
|
321
|
+
src: w
|
|
322
322
|
}
|
|
323
323
|
),
|
|
324
324
|
G
|
|
325
325
|
] }),
|
|
326
|
-
|
|
327
|
-
|
|
326
|
+
oA && /* @__PURE__ */ A(
|
|
327
|
+
ge,
|
|
328
328
|
{
|
|
329
|
-
opened:
|
|
330
|
-
onClick: () =>
|
|
329
|
+
opened: q.hidden ? q.hidden : !1,
|
|
330
|
+
onClick: () => q.setHidden(!q.hidden),
|
|
331
331
|
size: "sm",
|
|
332
|
-
color:
|
|
332
|
+
color: W.colors.gray[7],
|
|
333
333
|
mx: { base: "xs", xs: "lg", sm: "xl" },
|
|
334
|
-
display:
|
|
334
|
+
display: $ ? "" : "none"
|
|
335
335
|
}
|
|
336
336
|
),
|
|
337
|
-
/* @__PURE__ */ A("div", { children: V && /* @__PURE__ */ A(
|
|
338
|
-
/* @__PURE__ */ A(
|
|
339
|
-
/* @__PURE__ */
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
/* @__PURE__ */
|
|
344
|
-
/* @__PURE__ */ A(
|
|
337
|
+
/* @__PURE__ */ A("div", { children: V && /* @__PURE__ */ A(ko, { navigationData: C }) }),
|
|
338
|
+
/* @__PURE__ */ A(fe, { style: { flex: 1 }, children: F }),
|
|
339
|
+
/* @__PURE__ */ I(Co, { children: [
|
|
340
|
+
a && x,
|
|
341
|
+
p && /* @__PURE__ */ A(bo, { toggleColorScheme: P, sunColor: J, moonColor: Y }),
|
|
342
|
+
i && /* @__PURE__ */ A(go, {}),
|
|
343
|
+
/* @__PURE__ */ I(H, { shadow: "md", width: 200, position: "bottom-end", styles: nA?.menu, children: [
|
|
344
|
+
/* @__PURE__ */ A(H.Target, { children: /* @__PURE__ */ I("div", { children: [
|
|
345
345
|
/* @__PURE__ */ A(
|
|
346
|
-
|
|
346
|
+
be,
|
|
347
347
|
{
|
|
348
348
|
style: { cursor: "pointer" },
|
|
349
349
|
radius: "xl",
|
|
350
350
|
ml: 8,
|
|
351
|
-
src:
|
|
352
|
-
alt:
|
|
351
|
+
src: s ? s.photo : mo,
|
|
352
|
+
alt: s ? s.displayName : ""
|
|
353
353
|
}
|
|
354
354
|
),
|
|
355
|
-
|
|
355
|
+
s && s.isAdmin ? /* @__PURE__ */ A(
|
|
356
356
|
"div",
|
|
357
357
|
{
|
|
358
358
|
style: {
|
|
@@ -369,129 +369,158 @@ const wo = ({ navigationData: o, color: e }) => {
|
|
|
369
369
|
borderRadius: 50,
|
|
370
370
|
backgroundColor: "green"
|
|
371
371
|
},
|
|
372
|
-
children: /* @__PURE__ */ A(
|
|
372
|
+
children: /* @__PURE__ */ A(KA, { size: "xs", c: "white", children: "A" })
|
|
373
373
|
}
|
|
374
374
|
) : null
|
|
375
375
|
] }) }),
|
|
376
|
-
/* @__PURE__ */
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
376
|
+
/* @__PURE__ */ I(H.Dropdown, { children: [
|
|
377
|
+
e,
|
|
378
|
+
d && /* @__PURE__ */ A(H.Label, { children: `${L().t("archbase:Opções")}` }),
|
|
379
|
+
c && r,
|
|
380
|
+
n && /* @__PURE__ */ A(
|
|
381
|
+
H.Item,
|
|
382
382
|
{
|
|
383
|
-
leftSection:
|
|
384
|
-
onClick:
|
|
385
|
-
children: `${
|
|
383
|
+
leftSection: Z === "dark" ? /* @__PURE__ */ A(VA, { size: o }) : /* @__PURE__ */ A(YA, { size: o }),
|
|
384
|
+
onClick: P || _,
|
|
385
|
+
children: `${L().t("archbase:toggleColorScheme")}`
|
|
386
386
|
}
|
|
387
387
|
),
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
388
|
+
g && /* @__PURE__ */ A(fo, {}),
|
|
389
|
+
v && /* @__PURE__ */ A(H.Divider, {}),
|
|
390
|
+
h && u
|
|
391
391
|
] })
|
|
392
392
|
] })
|
|
393
393
|
] })
|
|
394
394
|
] });
|
|
395
395
|
};
|
|
396
|
-
function
|
|
397
|
-
const
|
|
398
|
-
if (
|
|
399
|
-
if (!(
|
|
400
|
-
return /* @__PURE__ */ A(
|
|
401
|
-
|
|
396
|
+
function UA(e, n, d, o, h, u, c, r, l, a) {
|
|
397
|
+
const p = u ? e.colorScheme === "dark" ? e.colors[e.primaryColor][8] : e.colors[e.primaryColor][7] : void 0, f = u ? (e.colorScheme === "dark", e.colors[e.primaryColor][0]) : void 0, v = e.colorScheme === "dark" ? "#3e5e7e" : "#9fb6cf", s = "0.5";
|
|
398
|
+
if (o.links) {
|
|
399
|
+
if (!(o.disabled && o.hideDisabledItem))
|
|
400
|
+
return /* @__PURE__ */ A(CA, { disabled: !n, label: uA.t(o.label), children: /* @__PURE__ */ A(
|
|
401
|
+
to,
|
|
402
402
|
{
|
|
403
403
|
rootStyles: {
|
|
404
404
|
fontSize: "16px",
|
|
405
|
-
[`.${
|
|
405
|
+
[`.${E.button}`]: {
|
|
406
406
|
"&:hover": {
|
|
407
|
-
[`.${
|
|
407
|
+
[`.${E.icon}`]: {
|
|
408
408
|
color: "white"
|
|
409
409
|
},
|
|
410
|
-
[`.${
|
|
410
|
+
[`.${E.label}`]: {
|
|
411
411
|
color: "white"
|
|
412
412
|
}
|
|
413
413
|
}
|
|
414
414
|
},
|
|
415
|
-
[`.${
|
|
416
|
-
width:
|
|
415
|
+
[`.${E.subMenuContent}`]: {
|
|
416
|
+
width: n && a
|
|
417
|
+
},
|
|
418
|
+
[`.${E.disabled}`]: {
|
|
419
|
+
opacity: s,
|
|
420
|
+
[`.${E.icon}`]: {
|
|
421
|
+
color: v + " !important"
|
|
422
|
+
},
|
|
423
|
+
[`.${E.label}`]: {
|
|
424
|
+
color: v + " !important"
|
|
425
|
+
}
|
|
417
426
|
}
|
|
418
427
|
},
|
|
419
|
-
id:
|
|
420
|
-
icon:
|
|
421
|
-
defaultOpen: !
|
|
422
|
-
label:
|
|
423
|
-
disabled:
|
|
424
|
-
children:
|
|
425
|
-
|
|
428
|
+
id: o.label,
|
|
429
|
+
icon: o.icon,
|
|
430
|
+
defaultOpen: !o.disabled,
|
|
431
|
+
label: n ? "" : uA.t(o.label),
|
|
432
|
+
disabled: o.disabled,
|
|
433
|
+
children: o.links && o.links.filter((C) => C.showInSidebar === !0 && (!C.disabled || !C.hideDisabledItem)).map((C, w) => /* @__PURE__ */ A(
|
|
434
|
+
MA,
|
|
426
435
|
{
|
|
427
|
-
onClick: () =>
|
|
436
|
+
onClick: () => d(C),
|
|
428
437
|
rootStyles: {
|
|
429
|
-
[`.${
|
|
430
|
-
background:
|
|
431
|
-
color:
|
|
438
|
+
[`.${E.icon}`]: {
|
|
439
|
+
background: p,
|
|
440
|
+
color: r && C.link === c ? "white" : f
|
|
432
441
|
},
|
|
433
|
-
[`.${
|
|
434
|
-
color:
|
|
442
|
+
[`.${E.label}`]: {
|
|
443
|
+
color: r && C.link === c ? "white" : l
|
|
435
444
|
},
|
|
436
|
-
[`.${
|
|
445
|
+
[`.${E.button}`]: {
|
|
437
446
|
paddingLeft: "40px !important",
|
|
438
447
|
"&:hover": {
|
|
439
|
-
[`.${
|
|
448
|
+
[`.${E.icon}`]: {
|
|
440
449
|
color: "white"
|
|
441
450
|
},
|
|
442
|
-
[`.${
|
|
451
|
+
[`.${E.label}`]: {
|
|
443
452
|
color: "white"
|
|
444
453
|
}
|
|
445
454
|
}
|
|
455
|
+
},
|
|
456
|
+
[`.${E.disabled}`]: {
|
|
457
|
+
opacity: s,
|
|
458
|
+
[`.${E.icon}`]: {
|
|
459
|
+
background: (p || "") + " !important",
|
|
460
|
+
color: v + " !important"
|
|
461
|
+
},
|
|
462
|
+
[`.${E.label}`]: {
|
|
463
|
+
color: v + " !important"
|
|
464
|
+
}
|
|
446
465
|
}
|
|
447
466
|
},
|
|
448
|
-
id:
|
|
449
|
-
icon:
|
|
450
|
-
disabled: typeof
|
|
451
|
-
active:
|
|
452
|
-
children:
|
|
467
|
+
id: C.label,
|
|
468
|
+
icon: C.icon,
|
|
469
|
+
disabled: typeof C.disabled == "function" ? C.disabled() : C.disabled,
|
|
470
|
+
active: r && C.link === c,
|
|
471
|
+
children: uA.t(C.label)
|
|
453
472
|
},
|
|
454
473
|
w
|
|
455
474
|
))
|
|
456
475
|
},
|
|
457
|
-
|
|
476
|
+
h
|
|
458
477
|
) });
|
|
459
|
-
} else if (
|
|
460
|
-
return /* @__PURE__ */ A(
|
|
461
|
-
|
|
478
|
+
} else if (o.showInSidebar && (!o.disabled || !o.hideDisabledItem))
|
|
479
|
+
return /* @__PURE__ */ A(CA, { disabled: !n, label: uA.t(o.label), children: /* @__PURE__ */ A(
|
|
480
|
+
MA,
|
|
462
481
|
{
|
|
463
482
|
rootStyles: {
|
|
464
483
|
fontSize: "16px",
|
|
465
|
-
[`.${
|
|
484
|
+
[`.${E.button}`]: {
|
|
466
485
|
"&:hover": {
|
|
467
|
-
[`.${
|
|
486
|
+
[`.${E.icon}`]: {
|
|
468
487
|
color: "white"
|
|
469
488
|
},
|
|
470
|
-
[`.${
|
|
489
|
+
[`.${E.label}`]: {
|
|
471
490
|
color: "white"
|
|
472
491
|
}
|
|
473
492
|
}
|
|
474
493
|
},
|
|
475
|
-
[`.${
|
|
476
|
-
background:
|
|
477
|
-
color:
|
|
494
|
+
[`.${E.icon}`]: {
|
|
495
|
+
background: p,
|
|
496
|
+
color: r && o.link === c ? "white" : f
|
|
497
|
+
},
|
|
498
|
+
[`.${E.label}`]: {
|
|
499
|
+
color: r && o.link === c ? "white" : l
|
|
478
500
|
},
|
|
479
|
-
[`.${
|
|
480
|
-
|
|
501
|
+
[`.${E.disabled}`]: {
|
|
502
|
+
opacity: s,
|
|
503
|
+
[`.${E.icon}`]: {
|
|
504
|
+
background: (p || "") + " !important",
|
|
505
|
+
color: v + " !important"
|
|
506
|
+
},
|
|
507
|
+
[`.${E.label}`]: {
|
|
508
|
+
color: v + " !important"
|
|
509
|
+
}
|
|
481
510
|
}
|
|
482
511
|
},
|
|
483
|
-
id:
|
|
484
|
-
disabled: typeof
|
|
485
|
-
onClick: () =>
|
|
486
|
-
icon:
|
|
487
|
-
active:
|
|
488
|
-
children:
|
|
512
|
+
id: o.label,
|
|
513
|
+
disabled: typeof o.disabled == "function" ? o.disabled() : o.disabled,
|
|
514
|
+
onClick: () => d(o),
|
|
515
|
+
icon: o.icon,
|
|
516
|
+
active: r && o.link === c,
|
|
517
|
+
children: n ? "" : uA.t(o.label)
|
|
489
518
|
},
|
|
490
|
-
|
|
519
|
+
h
|
|
491
520
|
) });
|
|
492
521
|
return null;
|
|
493
522
|
}
|
|
494
|
-
const
|
|
523
|
+
const wo = (e) => ({
|
|
495
524
|
light: {
|
|
496
525
|
sidebar: {
|
|
497
526
|
backgroundColor: "#ffffff",
|
|
@@ -526,138 +555,138 @@ const ko = (o) => ({
|
|
|
526
555
|
}
|
|
527
556
|
}
|
|
528
557
|
}
|
|
529
|
-
}),
|
|
530
|
-
const
|
|
558
|
+
}), yo = (e, n, d, o, h, u, c, r, l, a, p) => {
|
|
559
|
+
const f = wo(), v = u ? {} : { padding: d ? `0 ${(h - o) / 2}px` : "0 20px" }, s = u ? {} : { display: "none" }, C = c ? e === "dark" ? n.colors[n.primaryColor][8] : n.colors[n.primaryColor][0] : void 0;
|
|
531
560
|
return {
|
|
532
561
|
root: {
|
|
533
562
|
fontSize: "14px",
|
|
534
563
|
fontWeight: 400,
|
|
535
|
-
backgroundColor:
|
|
536
|
-
color:
|
|
564
|
+
backgroundColor: l,
|
|
565
|
+
color: n.white
|
|
537
566
|
},
|
|
538
567
|
icon: {
|
|
539
|
-
background:
|
|
540
|
-
color:
|
|
541
|
-
[`&.${
|
|
542
|
-
color:
|
|
568
|
+
background: C,
|
|
569
|
+
color: p,
|
|
570
|
+
[`&.${E.disabled}`]: {
|
|
571
|
+
color: f[e].menu.disabled.color
|
|
543
572
|
}
|
|
544
573
|
},
|
|
545
574
|
SubMenuExpandIcon: {
|
|
546
575
|
color: "#b6b7b9",
|
|
547
|
-
...
|
|
576
|
+
...s
|
|
548
577
|
},
|
|
549
578
|
subMenuContent: () => ({
|
|
550
|
-
backgroundColor:
|
|
579
|
+
backgroundColor: e === "dark" ? n.colors.dark[8] : n.colors[n.primaryColor][0]
|
|
551
580
|
}),
|
|
552
581
|
button: {
|
|
553
|
-
[`&.${
|
|
554
|
-
color:
|
|
582
|
+
[`&.${E.disabled}`]: {
|
|
583
|
+
color: f[e].menu.disabled.color
|
|
555
584
|
},
|
|
556
585
|
"&:hover": {
|
|
557
|
-
backgroundColor:
|
|
558
|
-
color:
|
|
586
|
+
backgroundColor: n.colors[n.primaryColor][6],
|
|
587
|
+
color: n.white
|
|
559
588
|
},
|
|
560
|
-
[`&.${
|
|
561
|
-
backgroundColor:
|
|
589
|
+
[`&.${E.active}`]: {
|
|
590
|
+
backgroundColor: n.colors[n.primaryColor][6]
|
|
562
591
|
},
|
|
563
|
-
height:
|
|
564
|
-
...
|
|
592
|
+
height: r,
|
|
593
|
+
...v
|
|
565
594
|
},
|
|
566
|
-
label: ({ open:
|
|
567
|
-
fontWeight:
|
|
568
|
-
color:
|
|
595
|
+
label: ({ open: w }) => ({
|
|
596
|
+
fontWeight: w ? 600 : void 0,
|
|
597
|
+
color: a,
|
|
569
598
|
"&:hover": {
|
|
570
|
-
color:
|
|
599
|
+
color: n.white
|
|
571
600
|
}
|
|
572
601
|
})
|
|
573
602
|
};
|
|
574
603
|
};
|
|
575
|
-
function
|
|
576
|
-
return /* @__PURE__ */
|
|
577
|
-
|
|
604
|
+
function xo(e, n, d, o, h, u, c, r, l, a, p) {
|
|
605
|
+
return /* @__PURE__ */ I(
|
|
606
|
+
ZA,
|
|
578
607
|
{
|
|
579
|
-
ref:
|
|
608
|
+
ref: e,
|
|
580
609
|
rootStyles: {
|
|
581
|
-
[`.${
|
|
610
|
+
[`.${Ae.container}`]: {
|
|
582
611
|
position: "absolute",
|
|
583
|
-
background:
|
|
612
|
+
background: p,
|
|
584
613
|
overflowX: "hidden",
|
|
585
614
|
overflowY: "hidden",
|
|
586
615
|
left: 0,
|
|
587
616
|
right: 0,
|
|
588
|
-
height:
|
|
617
|
+
height: c ? "calc(100vh - 28px)" : `${X(r)}px`
|
|
589
618
|
}
|
|
590
619
|
},
|
|
591
|
-
collapsed:
|
|
592
|
-
width: `${
|
|
593
|
-
collapsedWidth: `${
|
|
620
|
+
collapsed: n,
|
|
621
|
+
width: `${X(d)}px`,
|
|
622
|
+
collapsedWidth: `${X(o)}px`,
|
|
594
623
|
children: [
|
|
595
|
-
|
|
596
|
-
/* @__PURE__ */ A(
|
|
597
|
-
|
|
624
|
+
l && /* @__PURE__ */ A(sA, { children: l }),
|
|
625
|
+
/* @__PURE__ */ A(TA, { style: { overflowY: "auto", overflowX: "hidden", height: r }, children: /* @__PURE__ */ A(_A, { rootStyles: { background: p }, menuItemStyles: h, closeOnClick: !0, children: u && /* @__PURE__ */ A(sA, { children: u }) }) }),
|
|
626
|
+
a && /* @__PURE__ */ A(sA, { children: a })
|
|
598
627
|
]
|
|
599
628
|
}
|
|
600
629
|
);
|
|
601
630
|
}
|
|
602
|
-
function
|
|
603
|
-
navigationData:
|
|
604
|
-
sidebarGroupWidth:
|
|
605
|
-
sidebarWidth:
|
|
606
|
-
sidebarHeight:
|
|
607
|
-
sidebarCollapsedWidth:
|
|
608
|
-
selectedGroupColor:
|
|
609
|
-
groupColor:
|
|
610
|
-
backgroundGroupColor:
|
|
611
|
-
isHidden:
|
|
612
|
-
sideBarFooterHeight:
|
|
613
|
-
sideBarFooterContent:
|
|
614
|
-
groupLabelDarkColor:
|
|
615
|
-
groupLabelLightColor:
|
|
616
|
-
collapsed:
|
|
617
|
-
onMenuItemClick:
|
|
618
|
-
onClickActionIcon:
|
|
619
|
-
withBorder:
|
|
620
|
-
showGroupLabels:
|
|
621
|
-
theme:
|
|
622
|
-
sidebarRef:
|
|
623
|
-
defaultGroupIcon:
|
|
624
|
-
selectedGroupName:
|
|
625
|
-
sideBarHeaderContent:
|
|
631
|
+
function FA({
|
|
632
|
+
navigationData: e,
|
|
633
|
+
sidebarGroupWidth: n = "80px",
|
|
634
|
+
sidebarWidth: d = "360px",
|
|
635
|
+
sidebarHeight: o = "calc(100vh - var(--app-shell-header-offset, 0px))",
|
|
636
|
+
sidebarCollapsedWidth: h = "60px",
|
|
637
|
+
selectedGroupColor: u,
|
|
638
|
+
groupColor: c,
|
|
639
|
+
backgroundGroupColor: r,
|
|
640
|
+
isHidden: l = !1,
|
|
641
|
+
sideBarFooterHeight: a,
|
|
642
|
+
sideBarFooterContent: p,
|
|
643
|
+
groupLabelDarkColor: f,
|
|
644
|
+
groupLabelLightColor: v,
|
|
645
|
+
collapsed: s,
|
|
646
|
+
onMenuItemClick: C,
|
|
647
|
+
onClickActionIcon: w,
|
|
648
|
+
withBorder: x = !1,
|
|
649
|
+
showGroupLabels: R = !0,
|
|
650
|
+
theme: b,
|
|
651
|
+
sidebarRef: D,
|
|
652
|
+
defaultGroupIcon: F,
|
|
653
|
+
selectedGroupName: P,
|
|
654
|
+
sideBarHeaderContent: K,
|
|
626
655
|
iconsWithBackground: G = !1,
|
|
627
|
-
menuItemHeight:
|
|
656
|
+
menuItemHeight: oA = 40,
|
|
628
657
|
highlightActiveMenuItem: V = !0,
|
|
629
658
|
backgroundDarkColor: J,
|
|
630
|
-
backgroundLightColor:
|
|
631
|
-
textDarkColor:
|
|
632
|
-
textLightColor:
|
|
633
|
-
iconDarkColor:
|
|
634
|
-
iconLightColor:
|
|
635
|
-
collapsedSubmenuWidth:
|
|
659
|
+
backgroundLightColor: Y,
|
|
660
|
+
textDarkColor: nA,
|
|
661
|
+
textLightColor: W,
|
|
662
|
+
iconDarkColor: Z,
|
|
663
|
+
iconLightColor: _,
|
|
664
|
+
collapsedSubmenuWidth: q
|
|
636
665
|
}) {
|
|
637
|
-
const [
|
|
666
|
+
const [$, N] = eA(""), g = DA(), i = OA(), { colorScheme: t } = iA(), k = t === "dark" ? J ?? b.colors.dark[7] : Y ?? b.white, T = u || (t === "dark" ? b.colors[b.primaryColor][8] : b.colors[b.primaryColor][0]), m = t === "dark" ? nA ?? "var(--mantine-color-text)" : W ?? "var(--mantine-color-text)", z = t === "dark" ? Z ?? b.colors[b.primaryColor][0] : _ ?? b.colors[b.primaryColor][7], Q = RA(() => {
|
|
638
667
|
const B = /* @__PURE__ */ new Set();
|
|
639
|
-
return
|
|
640
|
-
if (
|
|
641
|
-
let
|
|
642
|
-
|
|
643
|
-
icon:
|
|
668
|
+
return e.forEach((S) => {
|
|
669
|
+
if (S.showInSidebar && (!S.disabled || !S.hideDisabledItem)) {
|
|
670
|
+
let tA = !1;
|
|
671
|
+
S.group || (S.group = {
|
|
672
|
+
icon: F || /* @__PURE__ */ A(me, { size: "2.2rem", color: "#63B1FB", stroke: 1 }),
|
|
644
673
|
label: "Default",
|
|
645
674
|
name: "Default",
|
|
646
675
|
hint: "Default",
|
|
647
676
|
indexOrder: 0
|
|
648
|
-
}), B.forEach((
|
|
649
|
-
|
|
650
|
-
}),
|
|
651
|
-
name:
|
|
652
|
-
indexOrder:
|
|
677
|
+
}), B.forEach((y) => {
|
|
678
|
+
y.name === S.group.name && (tA = !0);
|
|
679
|
+
}), tA || B.add({
|
|
680
|
+
name: S.group.name,
|
|
681
|
+
indexOrder: S.group.indexOrder,
|
|
653
682
|
component: /* @__PURE__ */ A(
|
|
654
|
-
|
|
683
|
+
CA,
|
|
655
684
|
{
|
|
656
|
-
content:
|
|
657
|
-
label:
|
|
658
|
-
disabled:
|
|
659
|
-
children: /* @__PURE__ */
|
|
660
|
-
|
|
685
|
+
content: S.group.hint,
|
|
686
|
+
label: S.group.label,
|
|
687
|
+
disabled: R,
|
|
688
|
+
children: /* @__PURE__ */ I(
|
|
689
|
+
vA,
|
|
661
690
|
{
|
|
662
691
|
gap: "2px",
|
|
663
692
|
style: {
|
|
@@ -668,249 +697,311 @@ function BA({
|
|
|
668
697
|
},
|
|
669
698
|
children: [
|
|
670
699
|
/* @__PURE__ */ A(
|
|
671
|
-
|
|
700
|
+
mA,
|
|
672
701
|
{
|
|
673
702
|
size: "48px",
|
|
674
|
-
variant:
|
|
675
|
-
color:
|
|
703
|
+
variant: S.group.name === $ ? "filled" : r ? "subtle" : "light",
|
|
704
|
+
color: S.group.name === $ ? T : c,
|
|
676
705
|
onClick: () => {
|
|
677
|
-
|
|
706
|
+
N((y) => (w && w(y, S.group.name), S.group.name === y && !l ? "" : S.group.name));
|
|
678
707
|
},
|
|
679
|
-
children:
|
|
708
|
+
children: S.group.icon
|
|
680
709
|
}
|
|
681
710
|
),
|
|
682
|
-
|
|
683
|
-
|
|
711
|
+
R ? /* @__PURE__ */ A(
|
|
712
|
+
KA,
|
|
684
713
|
{
|
|
685
714
|
size: "xs",
|
|
686
|
-
c:
|
|
687
|
-
children:
|
|
715
|
+
c: t === "dark" ? f || b.colors[b.primaryColor][2] : v || b.colors[b.primaryColor][2],
|
|
716
|
+
children: S.group.label
|
|
688
717
|
}
|
|
689
718
|
) : !1
|
|
690
719
|
]
|
|
691
720
|
}
|
|
692
721
|
)
|
|
693
722
|
},
|
|
694
|
-
|
|
723
|
+
S.group.name
|
|
695
724
|
)
|
|
696
725
|
});
|
|
697
726
|
}
|
|
698
|
-
}), B.forEach((
|
|
699
|
-
const
|
|
700
|
-
|
|
701
|
-
}), [...B].sort((
|
|
702
|
-
}, [
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
727
|
+
}), B.forEach((S) => {
|
|
728
|
+
const tA = e.filter((y) => y.showInSidebar === !0 && (!y.disabled || !y.hideDisabledItem) && y.group && y.group.name === S.name);
|
|
729
|
+
S.links = tA.map((y, O) => UA(b, s, C, y, O, G, i.pathname, V, m, q));
|
|
730
|
+
}), [...B].sort((S, tA) => S.indexOrder - tA.indexOrder);
|
|
731
|
+
}, [e, $, t, s, g.selectedCompany, V, i]), M = yo(
|
|
732
|
+
t,
|
|
733
|
+
b,
|
|
734
|
+
s,
|
|
706
735
|
35,
|
|
707
|
-
Number(
|
|
708
|
-
|
|
736
|
+
Number(X(h)),
|
|
737
|
+
Q.length > 1,
|
|
709
738
|
G,
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
),
|
|
715
|
-
|
|
739
|
+
oA,
|
|
740
|
+
k,
|
|
741
|
+
m,
|
|
742
|
+
z
|
|
743
|
+
), rA = s || $ === "" ? "0px" : `calc(${d} - ${n})`, fA = r || (t === "dark" ? b.colors[b.primaryColor][6] : b.colors[b.primaryColor][7]), cA = aA(() => {
|
|
744
|
+
P && Q.map((B) => B.name).includes(P) ? N(P) : Q.length > 1 && N("Default");
|
|
716
745
|
}, []);
|
|
717
746
|
return U(() => {
|
|
718
|
-
|
|
747
|
+
cA();
|
|
719
748
|
}, []), U(() => {
|
|
720
|
-
|
|
721
|
-
}, [
|
|
722
|
-
|
|
723
|
-
w,
|
|
724
|
-
t,
|
|
725
|
-
i,
|
|
726
|
-
rA,
|
|
727
|
-
o.map((B, sA) => $A(f, w, P, B, sA, G, S.pathname, V, eA, x)),
|
|
749
|
+
s ? N("") : $ === "" && cA();
|
|
750
|
+
}, [s]), /* @__PURE__ */ A(sA, { children: Q.length == 1 ? xo(
|
|
751
|
+
D,
|
|
728
752
|
s,
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
753
|
+
d,
|
|
754
|
+
h,
|
|
755
|
+
M,
|
|
756
|
+
e.map((B, bA) => UA(b, s, C, B, bA, G, i.pathname, V, m, q)),
|
|
757
|
+
l,
|
|
758
|
+
o,
|
|
759
|
+
K,
|
|
760
|
+
p,
|
|
761
|
+
k
|
|
762
|
+
) : /* @__PURE__ */ I(LA, { direction: "column", w: s ? h : d, children: [
|
|
763
|
+
/* @__PURE__ */ A("div", { style: { height: "auto", width: "100%" }, children: K }),
|
|
764
|
+
/* @__PURE__ */ I(Ce, { withBorder: x, h: o, w: "100%", display: "flex", children: [
|
|
765
|
+
Q.length !== 0 && /* @__PURE__ */ A(
|
|
766
|
+
vA,
|
|
738
767
|
{
|
|
739
768
|
gap: "4px",
|
|
740
769
|
style: {
|
|
741
|
-
height:
|
|
742
|
-
width:
|
|
770
|
+
height: o,
|
|
771
|
+
width: n,
|
|
743
772
|
padding: "4px",
|
|
744
773
|
backgroundColor: fA
|
|
745
774
|
},
|
|
746
|
-
children:
|
|
775
|
+
children: Q.map((B) => /* @__PURE__ */ A(j.Fragment, { children: B.component }, B.name))
|
|
747
776
|
}
|
|
748
777
|
),
|
|
749
|
-
|
|
750
|
-
|
|
778
|
+
$ !== "" && /* @__PURE__ */ A(
|
|
779
|
+
ZA,
|
|
751
780
|
{
|
|
752
|
-
ref:
|
|
781
|
+
ref: D,
|
|
753
782
|
rootStyles: {
|
|
754
|
-
[`.${
|
|
755
|
-
background:
|
|
783
|
+
[`.${Ae.container}`]: {
|
|
784
|
+
background: k,
|
|
756
785
|
overflowX: "hidden",
|
|
757
786
|
overflowY: "hidden",
|
|
758
787
|
left: 0,
|
|
759
|
-
height: `${
|
|
788
|
+
height: `${X(o)}px`
|
|
760
789
|
}
|
|
761
790
|
},
|
|
762
|
-
style: { borderColor:
|
|
763
|
-
collapsed:
|
|
764
|
-
width: `${
|
|
791
|
+
style: { borderColor: t === "dark" ? "#000" : "#efefef" },
|
|
792
|
+
collapsed: s,
|
|
793
|
+
width: `${X(rA)}`,
|
|
765
794
|
collapsedWidth: "0px",
|
|
766
795
|
children: /* @__PURE__ */ A(
|
|
767
|
-
|
|
796
|
+
TA,
|
|
768
797
|
{
|
|
769
798
|
style: {
|
|
770
799
|
overflowY: "auto",
|
|
771
800
|
overflowX: "hidden",
|
|
772
801
|
height: "100%",
|
|
773
|
-
width:
|
|
802
|
+
width: rA
|
|
774
803
|
},
|
|
775
|
-
children: /* @__PURE__ */ A(
|
|
804
|
+
children: /* @__PURE__ */ A(_A, { rootStyles: { background: k }, menuItemStyles: M, closeOnClick: !0, children: Q.find((B) => B.name === $)?.links || null })
|
|
776
805
|
}
|
|
777
806
|
)
|
|
778
807
|
}
|
|
779
808
|
)
|
|
780
809
|
] }),
|
|
781
|
-
/* @__PURE__ */ A("div", { style: { height: "auto", width: "100%" }, children:
|
|
810
|
+
/* @__PURE__ */ A("div", { style: { height: "auto", width: "100%" }, children: p })
|
|
782
811
|
] }) });
|
|
783
812
|
}
|
|
784
|
-
const
|
|
785
|
-
const
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
813
|
+
const ee = qA(null), oe = () => gA(ee), kA = (e) => null, So = ({ children: e, ...n }) => {
|
|
814
|
+
const [d, o] = eA(/* @__PURE__ */ new Map()), [h, u] = eA(/* @__PURE__ */ new Set()), c = (s, C) => {
|
|
815
|
+
if (!s || typeof s != "string") {
|
|
816
|
+
console.error("[ArchbaseAliveAbleRoutes] Invalid path for component registration:", s);
|
|
817
|
+
return;
|
|
818
|
+
}
|
|
819
|
+
if (C === void 0) {
|
|
820
|
+
console.warn("[ArchbaseAliveAbleRoutes] Attempting to register undefined component for path:", s);
|
|
821
|
+
return;
|
|
822
|
+
}
|
|
823
|
+
o((w) => {
|
|
824
|
+
if (w.has(s))
|
|
825
|
+
return w;
|
|
826
|
+
const x = new Map(w);
|
|
827
|
+
return x.set(s, C), x;
|
|
828
|
+
});
|
|
829
|
+
}, r = (s) => {
|
|
830
|
+
if (!s) {
|
|
831
|
+
console.error("[ArchbaseAliveAbleRoutes] Cannot unregister: invalid path");
|
|
832
|
+
return;
|
|
833
|
+
}
|
|
834
|
+
o((C) => {
|
|
835
|
+
C.has(s) || console.warn("[ArchbaseAliveAbleRoutes] Attempting to unregister non-existent path:", s);
|
|
836
|
+
const w = new Map(C);
|
|
837
|
+
return w.delete(s), w;
|
|
838
|
+
}), u((C) => {
|
|
839
|
+
const w = new Set(C);
|
|
840
|
+
return w.delete(s), w;
|
|
841
|
+
});
|
|
842
|
+
}, l = (s) => {
|
|
843
|
+
u((C) => {
|
|
844
|
+
const w = new Set(C);
|
|
845
|
+
return w.add(s), w;
|
|
846
|
+
});
|
|
847
|
+
}, a = j.Children.toArray(e), p = a.filter((s) => j.isValidElement(s) ? s.type === kA : !1), f = a.filter((s) => j.isValidElement(s) ? s.type !== kA : !1), v = {
|
|
848
|
+
cache: d,
|
|
849
|
+
requestedUnregister: h,
|
|
850
|
+
register: c,
|
|
851
|
+
unregister: r,
|
|
852
|
+
requestUnregister: l
|
|
853
|
+
};
|
|
854
|
+
return /* @__PURE__ */ I(ee.Provider, { value: v, children: [
|
|
855
|
+
p.map((s) => /* @__PURE__ */ A(Eo, { ...s.props, routesProps: n }, s.key)),
|
|
856
|
+
/* @__PURE__ */ A(JA, { ...n, children: f })
|
|
789
857
|
] });
|
|
790
|
-
},
|
|
791
|
-
const
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
858
|
+
}, Eo = ({ component: e, routesProps: n, ...d }) => {
|
|
859
|
+
const o = oe();
|
|
860
|
+
if (!o)
|
|
861
|
+
throw new Error("DisplayRoute must be used within ArchbaseAliveAbleRoutes provider");
|
|
862
|
+
const { cache: h, requestedUnregister: u, register: c, unregister: r } = o, [l, a] = eA(!1), p = AA(null), f = AA(!1);
|
|
863
|
+
xA(() => {
|
|
864
|
+
if (l && e && d.path && !f.current) {
|
|
865
|
+
const s = typeof e == "function" ? j.createElement(e) : e;
|
|
866
|
+
c(d.path, s), f.current = !0;
|
|
867
|
+
}
|
|
868
|
+
}, [l, e, d.path, c]), xA(() => {
|
|
869
|
+
d.path && u.has(d.path) && (r(d.path), f.current = !1);
|
|
870
|
+
}, [d.path, u, r]);
|
|
871
|
+
const v = d.path ? h.get(d.path) : null;
|
|
872
|
+
return /* @__PURE__ */ I(sA, { children: [
|
|
873
|
+
v && /* @__PURE__ */ A(
|
|
874
|
+
"div",
|
|
875
|
+
{
|
|
876
|
+
ref: p,
|
|
877
|
+
style: {
|
|
878
|
+
display: l ? "block" : "none",
|
|
879
|
+
height: l ? "100%" : "0",
|
|
880
|
+
overflow: l ? "auto" : "hidden"
|
|
881
|
+
},
|
|
882
|
+
children: v
|
|
883
|
+
}
|
|
884
|
+
),
|
|
885
|
+
/* @__PURE__ */ A(JA, { ...n, children: /* @__PURE__ */ A(EA, { ...d, element: /* @__PURE__ */ A(Ro, { onRouteMatchChange: a }) }) })
|
|
795
886
|
] });
|
|
796
|
-
},
|
|
797
|
-
|
|
798
|
-
}), [
|
|
799
|
-
function
|
|
887
|
+
}, Ro = ({ onRouteMatchChange: e }) => (xA(() => (e(!0), () => {
|
|
888
|
+
e(!1);
|
|
889
|
+
}), [e]), null);
|
|
890
|
+
function Lo(e, n, d, o, h, u) {
|
|
800
891
|
return /* @__PURE__ */ A(
|
|
801
892
|
"div",
|
|
802
893
|
{
|
|
803
894
|
style: {
|
|
804
895
|
position: "absolute",
|
|
805
|
-
left:
|
|
896
|
+
left: d.collapsed ? `calc(${h} - 14px)` : `calc(${o} - 14px)`,
|
|
806
897
|
top: "calc(100vh / 2)",
|
|
807
898
|
zIndex: "101"
|
|
808
899
|
},
|
|
809
900
|
children: /* @__PURE__ */ A(
|
|
810
|
-
|
|
901
|
+
mA,
|
|
811
902
|
{
|
|
812
|
-
bg:
|
|
813
|
-
color:
|
|
903
|
+
bg: n.colors[n.primaryColor][4],
|
|
904
|
+
color: n.colors[n.primaryColor][6],
|
|
814
905
|
variant: "filled",
|
|
815
906
|
radius: "xl",
|
|
816
|
-
onClick:
|
|
817
|
-
children:
|
|
907
|
+
onClick: u,
|
|
908
|
+
children: d.collapsed ? /* @__PURE__ */ A(we, {}) : /* @__PURE__ */ A(ye, {})
|
|
818
909
|
}
|
|
819
910
|
)
|
|
820
911
|
}
|
|
821
912
|
);
|
|
822
913
|
}
|
|
823
|
-
function
|
|
824
|
-
children:
|
|
825
|
-
header:
|
|
826
|
-
footer:
|
|
827
|
-
sideBarWidth:
|
|
828
|
-
sideBarCollapsedWidth:
|
|
829
|
-
sideBarHiddenBreakPoint:
|
|
830
|
-
sideBarFooterHeight:
|
|
831
|
-
sideBarFooterContent:
|
|
832
|
-
onCollapsedSideBar:
|
|
833
|
-
onHiddenSidebar:
|
|
834
|
-
sidebarSelectedGroupName:
|
|
835
|
-
sidebarDefaultGroupIcon:
|
|
836
|
-
sideBarHeaderHeight:
|
|
837
|
-
sideBarHeaderContent:
|
|
838
|
-
selectedGroupColor:
|
|
839
|
-
groupColor:
|
|
840
|
-
backgroundGroupColor:
|
|
841
|
-
groupLabelDarkColor:
|
|
842
|
-
groupLabelLightColor:
|
|
843
|
-
headerColor:
|
|
844
|
-
footerHeight:
|
|
845
|
-
iconsWithBackground:
|
|
846
|
-
menuItemHeight:
|
|
914
|
+
function To({
|
|
915
|
+
children: e,
|
|
916
|
+
header: n,
|
|
917
|
+
footer: d,
|
|
918
|
+
sideBarWidth: o = "360px",
|
|
919
|
+
sideBarCollapsedWidth: h = "74px",
|
|
920
|
+
sideBarHiddenBreakPoint: u,
|
|
921
|
+
sideBarFooterHeight: c,
|
|
922
|
+
sideBarFooterContent: r,
|
|
923
|
+
onCollapsedSideBar: l,
|
|
924
|
+
onHiddenSidebar: a,
|
|
925
|
+
sidebarSelectedGroupName: p,
|
|
926
|
+
sidebarDefaultGroupIcon: f,
|
|
927
|
+
sideBarHeaderHeight: v,
|
|
928
|
+
sideBarHeaderContent: s,
|
|
929
|
+
selectedGroupColor: C = "#132441",
|
|
930
|
+
groupColor: w = "white",
|
|
931
|
+
backgroundGroupColor: x = "#132441",
|
|
932
|
+
groupLabelDarkColor: R = "white",
|
|
933
|
+
groupLabelLightColor: b = "white",
|
|
934
|
+
headerColor: D,
|
|
935
|
+
footerHeight: F,
|
|
936
|
+
iconsWithBackground: P,
|
|
937
|
+
menuItemHeight: K,
|
|
847
938
|
showSideBar: G = !0,
|
|
848
|
-
showHeader:
|
|
939
|
+
showHeader: oA = !0,
|
|
849
940
|
headerStyle: V = {},
|
|
850
941
|
highlightActiveMenuItem: J = !0,
|
|
851
|
-
customRenderSidebar:
|
|
852
|
-
showCollapsedButton:
|
|
853
|
-
sideBarBackgroundDarkColor:
|
|
854
|
-
sideBarBackgroundLightColor:
|
|
855
|
-
sideBarTextDarkColor:
|
|
856
|
-
sideBarTextLightColor:
|
|
857
|
-
sideBarIconDarkColor:
|
|
858
|
-
sideBarIconLightColor:
|
|
859
|
-
sideBarCollapsedSubmenuWidth:
|
|
942
|
+
customRenderSidebar: Y,
|
|
943
|
+
showCollapsedButton: nA = !0,
|
|
944
|
+
sideBarBackgroundDarkColor: W,
|
|
945
|
+
sideBarBackgroundLightColor: Z,
|
|
946
|
+
sideBarTextDarkColor: _,
|
|
947
|
+
sideBarTextLightColor: q,
|
|
948
|
+
sideBarIconDarkColor: $,
|
|
949
|
+
sideBarIconLightColor: N,
|
|
950
|
+
sideBarCollapsedSubmenuWidth: g
|
|
860
951
|
}) {
|
|
861
|
-
const
|
|
862
|
-
`(max-width: ${
|
|
863
|
-
),
|
|
864
|
-
|
|
865
|
-
},
|
|
866
|
-
|
|
952
|
+
const i = HA(), t = gA(wA), { colorScheme: k } = iA(), T = eo(), [m, z] = oo(), Q = Ao(
|
|
953
|
+
`(max-width: ${u ? X(u) : i.breakpoints.md})`
|
|
954
|
+
), M = (y) => {
|
|
955
|
+
y.link && (y.routeParams ? T(y.link, {}, y.routeParams) : T(y.link));
|
|
956
|
+
}, rA = (y, O) => {
|
|
957
|
+
y == O && t.collapsed && t.setCollapsed(!1), t.setCollapsed(y == O);
|
|
867
958
|
}, fA = () => {
|
|
868
|
-
let
|
|
869
|
-
return
|
|
870
|
-
},
|
|
871
|
-
let
|
|
872
|
-
return
|
|
873
|
-
}, B =
|
|
874
|
-
const
|
|
875
|
-
return
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
/* @__PURE__ */ A(
|
|
879
|
-
) :
|
|
880
|
-
}) :
|
|
881
|
-
/* @__PURE__ */ A(
|
|
882
|
-
) :
|
|
883
|
-
/* @__PURE__ */ A(
|
|
959
|
+
let y = 0, O = 0;
|
|
960
|
+
return v && (y = Number(X(v))), c && (O = Number(X(c))), `calc(100vh - var(--app-shell-header-offset, 0px) - ${y + O}px)`;
|
|
961
|
+
}, cA = () => {
|
|
962
|
+
let y = 0, O = 0;
|
|
963
|
+
return v && (y = Number(X(v))), c && (O = Number(X(c))), `calc(100vh - 28px - ${y + O}px)`;
|
|
964
|
+
}, B = RA(() => {
|
|
965
|
+
const y = [];
|
|
966
|
+
return t.navigationData.forEach((O, NA) => {
|
|
967
|
+
O.links ? O.links.forEach((lA, PA) => {
|
|
968
|
+
lA.keepAlive ? y.push(
|
|
969
|
+
/* @__PURE__ */ A(kA, { path: lA.link, component: lA.component }, `${lA.link}_${PA}`)
|
|
970
|
+
) : y.push(/* @__PURE__ */ A(EA, { path: lA.link, element: lA.component }, `${lA.link}_${PA}`));
|
|
971
|
+
}) : O.keepAlive ? y.push(
|
|
972
|
+
/* @__PURE__ */ A(kA, { path: O.link, component: O.component }, `${O.link}_${NA}`)
|
|
973
|
+
) : y.push(
|
|
974
|
+
/* @__PURE__ */ A(EA, { path: O.link, element: O.component }, `${O.link}_${NA}`)
|
|
884
975
|
);
|
|
885
|
-
}),
|
|
886
|
-
}, [
|
|
887
|
-
|
|
888
|
-
}, [
|
|
889
|
-
|
|
890
|
-
}, [
|
|
976
|
+
}), y;
|
|
977
|
+
}, [t.navigationData, t.collapsed]), bA = aA(() => {
|
|
978
|
+
t.setCollapsed(!t.collapsed);
|
|
979
|
+
}, [t.setCollapsed, t.collapsed]), S = aA(() => {
|
|
980
|
+
t.setHidden(!t.hidden);
|
|
981
|
+
}, [t.setHidden, t.hidden]);
|
|
891
982
|
U(() => {
|
|
892
|
-
|
|
893
|
-
}, [
|
|
894
|
-
|
|
895
|
-
}, [
|
|
896
|
-
const
|
|
897
|
-
return /* @__PURE__ */
|
|
898
|
-
|
|
983
|
+
a && a(t.hidden);
|
|
984
|
+
}, [t.hidden, S]), U(() => {
|
|
985
|
+
l && l(t.collapsed);
|
|
986
|
+
}, [t.collapsed, l]);
|
|
987
|
+
const tA = t.collapsed ? h : o;
|
|
988
|
+
return /* @__PURE__ */ I(
|
|
989
|
+
dA,
|
|
899
990
|
{
|
|
900
|
-
header: { height: "60px", collapsed: !
|
|
901
|
-
footer: { height:
|
|
991
|
+
header: { height: "60px", collapsed: !oA },
|
|
992
|
+
footer: { height: F || "0px" },
|
|
902
993
|
styles: {
|
|
903
994
|
main: {
|
|
904
|
-
background:
|
|
995
|
+
background: k === "dark" ? i.colors.dark[8] : i.colors.gray[0],
|
|
905
996
|
overflow: "hidden"
|
|
906
997
|
}
|
|
907
998
|
},
|
|
908
999
|
children: [
|
|
909
1000
|
/* @__PURE__ */ A(
|
|
910
|
-
|
|
1001
|
+
dA.Header,
|
|
911
1002
|
{
|
|
912
1003
|
p: "xs",
|
|
913
|
-
color:
|
|
1004
|
+
color: D,
|
|
914
1005
|
display: "flex",
|
|
915
1006
|
style: {
|
|
916
1007
|
backgroundColor: "var(--mantine-primary-color-8)",
|
|
@@ -918,524 +1009,583 @@ function Do({
|
|
|
918
1009
|
borderBottom: "none",
|
|
919
1010
|
...V
|
|
920
1011
|
},
|
|
921
|
-
children:
|
|
1012
|
+
children: n
|
|
922
1013
|
}
|
|
923
1014
|
),
|
|
924
|
-
/* @__PURE__ */ A(
|
|
925
|
-
|
|
1015
|
+
/* @__PURE__ */ A(dA.Navbar, { children: !Q && G ? Y ? Y({ width: o, height: fA(), isHidden: Q }) : /* @__PURE__ */ A(
|
|
1016
|
+
FA,
|
|
926
1017
|
{
|
|
927
|
-
navigationData:
|
|
1018
|
+
navigationData: t.navigationData,
|
|
928
1019
|
sidebarHeight: fA(),
|
|
929
|
-
sidebarGroupWidth:
|
|
930
|
-
sidebarCollapsedWidth:
|
|
931
|
-
selectedGroupColor:
|
|
932
|
-
groupColor:
|
|
933
|
-
backgroundGroupColor:
|
|
934
|
-
groupLabelDarkColor:
|
|
935
|
-
groupLabelLightColor:
|
|
1020
|
+
sidebarGroupWidth: h,
|
|
1021
|
+
sidebarCollapsedWidth: h,
|
|
1022
|
+
selectedGroupColor: C,
|
|
1023
|
+
groupColor: w,
|
|
1024
|
+
backgroundGroupColor: x,
|
|
1025
|
+
groupLabelDarkColor: R,
|
|
1026
|
+
groupLabelLightColor: b,
|
|
936
1027
|
showGroupLabels: !1,
|
|
937
|
-
collapsed:
|
|
938
|
-
sidebarWidth:
|
|
939
|
-
isHidden:
|
|
940
|
-
onMenuItemClick:
|
|
941
|
-
onClickActionIcon:
|
|
942
|
-
sideBarFooterHeight:
|
|
943
|
-
sideBarFooterContent:
|
|
944
|
-
sideBarHeaderContent:
|
|
945
|
-
theme:
|
|
946
|
-
sidebarRef:
|
|
947
|
-
defaultGroupIcon:
|
|
948
|
-
selectedGroupName:
|
|
949
|
-
iconsWithBackground:
|
|
950
|
-
menuItemHeight:
|
|
1028
|
+
collapsed: t.collapsed,
|
|
1029
|
+
sidebarWidth: o,
|
|
1030
|
+
isHidden: Q,
|
|
1031
|
+
onMenuItemClick: M,
|
|
1032
|
+
onClickActionIcon: rA,
|
|
1033
|
+
sideBarFooterHeight: c,
|
|
1034
|
+
sideBarFooterContent: r,
|
|
1035
|
+
sideBarHeaderContent: s,
|
|
1036
|
+
theme: i,
|
|
1037
|
+
sidebarRef: m,
|
|
1038
|
+
defaultGroupIcon: f,
|
|
1039
|
+
selectedGroupName: p,
|
|
1040
|
+
iconsWithBackground: P,
|
|
1041
|
+
menuItemHeight: K,
|
|
951
1042
|
highlightActiveMenuItem: J,
|
|
952
|
-
backgroundDarkColor:
|
|
953
|
-
backgroundLightColor:
|
|
954
|
-
textDarkColor:
|
|
955
|
-
textLightColor:
|
|
956
|
-
iconDarkColor:
|
|
957
|
-
iconLightColor:
|
|
958
|
-
collapsedSubmenuWidth:
|
|
1043
|
+
backgroundDarkColor: W,
|
|
1044
|
+
backgroundLightColor: Z,
|
|
1045
|
+
textDarkColor: _,
|
|
1046
|
+
textLightColor: q,
|
|
1047
|
+
iconDarkColor: $,
|
|
1048
|
+
iconLightColor: N,
|
|
1049
|
+
collapsedSubmenuWidth: g
|
|
959
1050
|
}
|
|
960
1051
|
) : void 0 }),
|
|
961
|
-
/* @__PURE__ */
|
|
962
|
-
!
|
|
963
|
-
X,
|
|
964
|
-
S,
|
|
1052
|
+
/* @__PURE__ */ I(dA.Main, { bg: k === "dark" ? i.colors.dark[8] : i.colors.gray[0], children: [
|
|
1053
|
+
!Q && nA && Lo(
|
|
965
1054
|
k,
|
|
966
|
-
r,
|
|
967
1055
|
i,
|
|
968
|
-
|
|
1056
|
+
t,
|
|
1057
|
+
o,
|
|
1058
|
+
h,
|
|
1059
|
+
bA
|
|
969
1060
|
),
|
|
970
|
-
/* @__PURE__ */
|
|
1061
|
+
/* @__PURE__ */ I(
|
|
971
1062
|
"div",
|
|
972
1063
|
{
|
|
973
1064
|
style: {
|
|
974
1065
|
height: "calc(100vh - var(--app-shell-header-offset, 0px) - var(--app-shell-footer-offset, 0px) - var(--app-shell-padding) - 1rem)",
|
|
975
|
-
width: `calc(100vw - var(--app-shell-padding) - calc(${
|
|
1066
|
+
width: `calc(100vw - var(--app-shell-padding) - calc(${Q ? "0px" : tA} + 1rem))`,
|
|
976
1067
|
marginTop: "0.5rem",
|
|
977
|
-
marginLeft: `calc(${
|
|
978
|
-
border: `1px solid ${
|
|
1068
|
+
marginLeft: `calc(${Q ? "0px" : tA} + 0.5rem)`,
|
|
1069
|
+
border: `1px solid ${k === "dark" ? i.colors.dark[4] : "#e4e9ef"}`,
|
|
979
1070
|
borderRadius: "4px",
|
|
980
1071
|
overflow: "none"
|
|
981
1072
|
},
|
|
982
1073
|
children: [
|
|
983
|
-
|
|
984
|
-
/* @__PURE__ */ A("div", { style: { width: "100%", height: "calc(100% - 48px)" }, children: /* @__PURE__ */
|
|
1074
|
+
e,
|
|
1075
|
+
/* @__PURE__ */ A("div", { style: { width: "100%", height: "calc(100% - 48px)" }, children: /* @__PURE__ */ I(So, { children: [
|
|
985
1076
|
...B
|
|
986
1077
|
] }) })
|
|
987
1078
|
]
|
|
988
1079
|
}
|
|
989
1080
|
),
|
|
990
1081
|
G && /* @__PURE__ */ A(
|
|
991
|
-
|
|
1082
|
+
GA,
|
|
992
1083
|
{
|
|
993
|
-
opened:
|
|
994
|
-
onClose:
|
|
995
|
-
size:
|
|
1084
|
+
opened: t.hidden || !1,
|
|
1085
|
+
onClose: S,
|
|
1086
|
+
size: o,
|
|
996
1087
|
padding: 0,
|
|
997
1088
|
styles: {
|
|
998
1089
|
header: { minHeight: "10px" }
|
|
999
1090
|
},
|
|
1000
|
-
children:
|
|
1001
|
-
|
|
1091
|
+
children: Y ? Y({ width: o, height: cA(), isHidden: Q }) : /* @__PURE__ */ A(
|
|
1092
|
+
FA,
|
|
1002
1093
|
{
|
|
1003
|
-
navigationData:
|
|
1004
|
-
sidebarWidth:
|
|
1005
|
-
sidebarHeight:
|
|
1006
|
-
sidebarCollapsedWidth:
|
|
1007
|
-
sidebarGroupWidth:
|
|
1008
|
-
selectedGroupColor:
|
|
1009
|
-
groupColor:
|
|
1010
|
-
backgroundGroupColor:
|
|
1011
|
-
groupLabelDarkColor:
|
|
1012
|
-
groupLabelLightColor:
|
|
1094
|
+
navigationData: t.navigationData,
|
|
1095
|
+
sidebarWidth: o,
|
|
1096
|
+
sidebarHeight: cA(),
|
|
1097
|
+
sidebarCollapsedWidth: h,
|
|
1098
|
+
sidebarGroupWidth: h,
|
|
1099
|
+
selectedGroupColor: C,
|
|
1100
|
+
groupColor: w,
|
|
1101
|
+
backgroundGroupColor: x,
|
|
1102
|
+
groupLabelDarkColor: R,
|
|
1103
|
+
groupLabelLightColor: b,
|
|
1013
1104
|
showGroupLabels: !1,
|
|
1014
|
-
isHidden:
|
|
1015
|
-
onMenuItemClick:
|
|
1016
|
-
onClickActionIcon:
|
|
1017
|
-
theme:
|
|
1018
|
-
sidebarRef:
|
|
1019
|
-
defaultGroupIcon:
|
|
1020
|
-
selectedGroupName:
|
|
1021
|
-
iconsWithBackground:
|
|
1022
|
-
menuItemHeight:
|
|
1023
|
-
sideBarHeaderContent:
|
|
1024
|
-
sideBarFooterContent:
|
|
1025
|
-
sideBarFooterHeight:
|
|
1105
|
+
isHidden: Q,
|
|
1106
|
+
onMenuItemClick: M,
|
|
1107
|
+
onClickActionIcon: rA,
|
|
1108
|
+
theme: i,
|
|
1109
|
+
sidebarRef: m,
|
|
1110
|
+
defaultGroupIcon: f,
|
|
1111
|
+
selectedGroupName: p,
|
|
1112
|
+
iconsWithBackground: P,
|
|
1113
|
+
menuItemHeight: K,
|
|
1114
|
+
sideBarHeaderContent: s,
|
|
1115
|
+
sideBarFooterContent: r,
|
|
1116
|
+
sideBarFooterHeight: c,
|
|
1026
1117
|
highlightActiveMenuItem: J,
|
|
1027
|
-
backgroundDarkColor:
|
|
1028
|
-
backgroundLightColor:
|
|
1029
|
-
textDarkColor:
|
|
1030
|
-
textLightColor:
|
|
1031
|
-
iconDarkColor:
|
|
1032
|
-
iconLightColor:
|
|
1033
|
-
collapsedSubmenuWidth:
|
|
1118
|
+
backgroundDarkColor: W,
|
|
1119
|
+
backgroundLightColor: Z,
|
|
1120
|
+
textDarkColor: _,
|
|
1121
|
+
textLightColor: q,
|
|
1122
|
+
iconDarkColor: $,
|
|
1123
|
+
iconLightColor: N,
|
|
1124
|
+
collapsedSubmenuWidth: g
|
|
1034
1125
|
}
|
|
1035
1126
|
)
|
|
1036
1127
|
}
|
|
1037
1128
|
)
|
|
1038
1129
|
] }),
|
|
1039
|
-
/* @__PURE__ */ A(
|
|
1130
|
+
/* @__PURE__ */ A(dA.Footer, { children: d })
|
|
1040
1131
|
]
|
|
1041
1132
|
}
|
|
1042
1133
|
);
|
|
1043
1134
|
}
|
|
1044
|
-
function
|
|
1045
|
-
navigationRootLink:
|
|
1046
|
-
navigationData:
|
|
1047
|
-
user:
|
|
1048
|
-
children:
|
|
1049
|
-
header:
|
|
1050
|
-
footer:
|
|
1051
|
-
owner:
|
|
1052
|
-
company:
|
|
1053
|
-
sideBarWidth:
|
|
1054
|
-
sideBarCollapsedWidth:
|
|
1055
|
-
sideBarHiddenBreakPoint:
|
|
1056
|
-
sideBarFooterHeight:
|
|
1057
|
-
sideBarFooterContent:
|
|
1058
|
-
onCollapsedSideBar:
|
|
1059
|
-
onHiddenSidebar:
|
|
1060
|
-
sidebarDefaultGroupIcon:
|
|
1061
|
-
sidebarSelectedGroupName:
|
|
1062
|
-
sideBarHeaderHeight:
|
|
1063
|
-
sideBarHeaderContent:
|
|
1064
|
-
selectedGroupColor:
|
|
1065
|
-
groupColor:
|
|
1066
|
-
backgroundGroupColor:
|
|
1067
|
-
groupLabelDarkColor:
|
|
1135
|
+
function pn({
|
|
1136
|
+
navigationRootLink: e = "/",
|
|
1137
|
+
navigationData: n,
|
|
1138
|
+
user: d,
|
|
1139
|
+
children: o,
|
|
1140
|
+
header: h,
|
|
1141
|
+
footer: u,
|
|
1142
|
+
owner: c,
|
|
1143
|
+
company: r,
|
|
1144
|
+
sideBarWidth: l,
|
|
1145
|
+
sideBarCollapsedWidth: a,
|
|
1146
|
+
sideBarHiddenBreakPoint: p,
|
|
1147
|
+
sideBarFooterHeight: f,
|
|
1148
|
+
sideBarFooterContent: v,
|
|
1149
|
+
onCollapsedSideBar: s,
|
|
1150
|
+
onHiddenSidebar: C,
|
|
1151
|
+
sidebarDefaultGroupIcon: w,
|
|
1152
|
+
sidebarSelectedGroupName: x,
|
|
1153
|
+
sideBarHeaderHeight: R,
|
|
1154
|
+
sideBarHeaderContent: b,
|
|
1155
|
+
selectedGroupColor: D = "#132441",
|
|
1156
|
+
groupColor: F = "white",
|
|
1157
|
+
backgroundGroupColor: P = "#132441",
|
|
1158
|
+
groupLabelDarkColor: K = "white",
|
|
1068
1159
|
groupLabelLightColor: G = "white",
|
|
1069
|
-
headerColor:
|
|
1160
|
+
headerColor: oA,
|
|
1070
1161
|
footerHeight: V,
|
|
1071
1162
|
iconsWithBackground: J,
|
|
1072
|
-
menuItemHeight:
|
|
1073
|
-
showSideBar:
|
|
1074
|
-
showHeader:
|
|
1075
|
-
headerStyle:
|
|
1076
|
-
highlightActiveMenuItem:
|
|
1077
|
-
enableSecurity:
|
|
1078
|
-
securityOptions:
|
|
1079
|
-
customRenderSidebar:
|
|
1080
|
-
onNavigationDataChange:
|
|
1081
|
-
showCollapsedButton:
|
|
1082
|
-
initialSidebarCollapsed:
|
|
1083
|
-
sideBarBackgroundDarkColor:
|
|
1084
|
-
sideBarBackgroundLightColor:
|
|
1085
|
-
sideBarTextDarkColor:
|
|
1086
|
-
sideBarTextLightColor:
|
|
1087
|
-
sideBarIconDarkColor:
|
|
1088
|
-
sideBarIconLightColor:
|
|
1089
|
-
sideBarCollapsedSubmenuWidth:
|
|
1163
|
+
menuItemHeight: Y,
|
|
1164
|
+
showSideBar: nA,
|
|
1165
|
+
showHeader: W,
|
|
1166
|
+
headerStyle: Z,
|
|
1167
|
+
highlightActiveMenuItem: _,
|
|
1168
|
+
enableSecurity: q = !1,
|
|
1169
|
+
securityOptions: $,
|
|
1170
|
+
customRenderSidebar: N,
|
|
1171
|
+
onNavigationDataChange: g,
|
|
1172
|
+
showCollapsedButton: i,
|
|
1173
|
+
initialSidebarCollapsed: t = !1,
|
|
1174
|
+
sideBarBackgroundDarkColor: k,
|
|
1175
|
+
sideBarBackgroundLightColor: T,
|
|
1176
|
+
sideBarTextDarkColor: m,
|
|
1177
|
+
sideBarTextLightColor: z,
|
|
1178
|
+
sideBarIconDarkColor: Q,
|
|
1179
|
+
sideBarIconLightColor: M,
|
|
1180
|
+
sideBarCollapsedSubmenuWidth: rA
|
|
1090
1181
|
}) {
|
|
1091
1182
|
return /* @__PURE__ */ A(
|
|
1092
|
-
|
|
1183
|
+
po,
|
|
1093
1184
|
{
|
|
1094
|
-
navigationData:
|
|
1095
|
-
navigationRootLink:
|
|
1096
|
-
user:
|
|
1097
|
-
owner:
|
|
1098
|
-
company:
|
|
1099
|
-
enableSecurity:
|
|
1100
|
-
securityOptions:
|
|
1101
|
-
onNavigationDataChange:
|
|
1102
|
-
initialSidebarCollapsed:
|
|
1185
|
+
navigationData: n,
|
|
1186
|
+
navigationRootLink: e,
|
|
1187
|
+
user: d,
|
|
1188
|
+
owner: c,
|
|
1189
|
+
company: r,
|
|
1190
|
+
enableSecurity: q,
|
|
1191
|
+
securityOptions: $,
|
|
1192
|
+
onNavigationDataChange: g,
|
|
1193
|
+
initialSidebarCollapsed: t,
|
|
1103
1194
|
children: /* @__PURE__ */ A(
|
|
1104
|
-
|
|
1195
|
+
To,
|
|
1105
1196
|
{
|
|
1106
|
-
navigationRootLink:
|
|
1107
|
-
user:
|
|
1108
|
-
header:
|
|
1109
|
-
footer:
|
|
1110
|
-
owner:
|
|
1111
|
-
company:
|
|
1112
|
-
sideBarWidth:
|
|
1113
|
-
sideBarCollapsedWidth:
|
|
1114
|
-
sideBarHiddenBreakPoint:
|
|
1115
|
-
sideBarHeaderHeight:
|
|
1116
|
-
sideBarHeaderContent:
|
|
1117
|
-
sideBarFooterHeight:
|
|
1118
|
-
sideBarFooterContent:
|
|
1119
|
-
selectedGroupColor:
|
|
1120
|
-
groupColor:
|
|
1121
|
-
backgroundGroupColor:
|
|
1122
|
-
groupLabelDarkColor:
|
|
1197
|
+
navigationRootLink: e,
|
|
1198
|
+
user: d,
|
|
1199
|
+
header: h,
|
|
1200
|
+
footer: u,
|
|
1201
|
+
owner: c,
|
|
1202
|
+
company: r,
|
|
1203
|
+
sideBarWidth: l,
|
|
1204
|
+
sideBarCollapsedWidth: a,
|
|
1205
|
+
sideBarHiddenBreakPoint: p,
|
|
1206
|
+
sideBarHeaderHeight: R,
|
|
1207
|
+
sideBarHeaderContent: b,
|
|
1208
|
+
sideBarFooterHeight: f,
|
|
1209
|
+
sideBarFooterContent: v,
|
|
1210
|
+
selectedGroupColor: D,
|
|
1211
|
+
groupColor: F,
|
|
1212
|
+
backgroundGroupColor: P,
|
|
1213
|
+
groupLabelDarkColor: K,
|
|
1123
1214
|
groupLabelLightColor: G,
|
|
1124
|
-
onCollapsedSideBar:
|
|
1125
|
-
onHiddenSidebar:
|
|
1126
|
-
sidebarDefaultGroupIcon:
|
|
1127
|
-
sidebarSelectedGroupName:
|
|
1128
|
-
headerColor:
|
|
1215
|
+
onCollapsedSideBar: s,
|
|
1216
|
+
onHiddenSidebar: C,
|
|
1217
|
+
sidebarDefaultGroupIcon: w,
|
|
1218
|
+
sidebarSelectedGroupName: x,
|
|
1219
|
+
headerColor: oA,
|
|
1129
1220
|
footerHeight: V,
|
|
1130
1221
|
iconsWithBackground: J,
|
|
1131
|
-
menuItemHeight:
|
|
1132
|
-
showSideBar:
|
|
1133
|
-
showHeader:
|
|
1134
|
-
headerStyle:
|
|
1135
|
-
highlightActiveMenuItem:
|
|
1136
|
-
enableSecurity:
|
|
1137
|
-
customRenderSidebar:
|
|
1138
|
-
showCollapsedButton:
|
|
1139
|
-
sideBarBackgroundDarkColor:
|
|
1140
|
-
sideBarBackgroundLightColor:
|
|
1141
|
-
sideBarTextDarkColor:
|
|
1142
|
-
sideBarTextLightColor:
|
|
1143
|
-
sideBarIconDarkColor:
|
|
1144
|
-
sideBarIconLightColor:
|
|
1145
|
-
sideBarCollapsedSubmenuWidth:
|
|
1146
|
-
children:
|
|
1222
|
+
menuItemHeight: Y,
|
|
1223
|
+
showSideBar: nA,
|
|
1224
|
+
showHeader: W,
|
|
1225
|
+
headerStyle: Z,
|
|
1226
|
+
highlightActiveMenuItem: _,
|
|
1227
|
+
enableSecurity: q,
|
|
1228
|
+
customRenderSidebar: N,
|
|
1229
|
+
showCollapsedButton: i,
|
|
1230
|
+
sideBarBackgroundDarkColor: k,
|
|
1231
|
+
sideBarBackgroundLightColor: T,
|
|
1232
|
+
sideBarTextDarkColor: m,
|
|
1233
|
+
sideBarTextLightColor: z,
|
|
1234
|
+
sideBarIconDarkColor: Q,
|
|
1235
|
+
sideBarIconLightColor: M,
|
|
1236
|
+
sideBarCollapsedSubmenuWidth: rA,
|
|
1237
|
+
children: o
|
|
1147
1238
|
}
|
|
1148
1239
|
)
|
|
1149
1240
|
}
|
|
1150
1241
|
);
|
|
1151
1242
|
}
|
|
1152
|
-
const
|
|
1243
|
+
const ne = qA({
|
|
1153
1244
|
state: { userCloseLinkRequest: "", linkClosed: "", isClosing: !1 },
|
|
1154
|
-
dispatch: (
|
|
1155
|
-
}),
|
|
1156
|
-
const
|
|
1245
|
+
dispatch: (e) => null
|
|
1246
|
+
}), gn = ({ children: e }) => {
|
|
1247
|
+
const n = {
|
|
1157
1248
|
userCloseLinkRequest: "",
|
|
1158
1249
|
linkClosed: "",
|
|
1159
1250
|
isClosing: !1
|
|
1160
|
-
},
|
|
1161
|
-
switch (
|
|
1251
|
+
}, d = (u, c) => {
|
|
1252
|
+
switch (c.type) {
|
|
1162
1253
|
case "USER_CLOSE_REQUEST":
|
|
1163
|
-
return { ...
|
|
1254
|
+
return console.log(`[Navigation Reducer] USER_CLOSE_REQUEST link: ${c.link}`), { ...u, userCloseLinkRequest: c.link, isClosing: !0 };
|
|
1164
1255
|
case "CLOSE_ALLOWED":
|
|
1165
|
-
return { ...
|
|
1256
|
+
return console.log(`[Navigation Reducer] CLOSE_ALLOWED link: ${c.link}`), { ...u, linkClosed: c.link, userCloseLinkRequest: "", isClosing: !1, payload: c.payload };
|
|
1166
1257
|
case "DONE":
|
|
1167
|
-
return { ...
|
|
1258
|
+
return console.log(`[Navigation Reducer] DONE link: ${c.link}`), { ...u, linkClosed: c.link, isClosing: !1 };
|
|
1168
1259
|
case "CLEAR_PAYLOAD":
|
|
1169
|
-
const
|
|
1170
|
-
return delete
|
|
1260
|
+
const r = { ...u };
|
|
1261
|
+
return delete r.payload, r;
|
|
1171
1262
|
default:
|
|
1172
|
-
return
|
|
1263
|
+
return u;
|
|
1173
1264
|
}
|
|
1174
|
-
}, [
|
|
1175
|
-
return
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1265
|
+
}, [o, h] = te(d, n);
|
|
1266
|
+
return j.useEffect(() => {
|
|
1267
|
+
let u = null;
|
|
1268
|
+
return o.userCloseLinkRequest && !o.linkClosed && (console.log(`[NavigationProvider] Waiting for close response for: ${o.userCloseLinkRequest}`), u = setTimeout(() => {
|
|
1269
|
+
console.log(`[NavigationProvider] No response received, auto-closing: ${o.userCloseLinkRequest}`), h({ type: "CLOSE_ALLOWED", link: o.userCloseLinkRequest });
|
|
1270
|
+
}, 100)), () => {
|
|
1271
|
+
u && clearTimeout(u);
|
|
1272
|
+
};
|
|
1273
|
+
}, [o.userCloseLinkRequest, o.linkClosed, h]), /* @__PURE__ */ A(ne.Provider, { value: { state: o, dispatch: h }, children: e });
|
|
1274
|
+
}, re = () => {
|
|
1275
|
+
const e = gA(ne);
|
|
1276
|
+
if (!e)
|
|
1179
1277
|
throw new Error("useArchbaseNavigationContext deve ser usado dentro de um ArchbaseNavigationProvider");
|
|
1180
|
-
return
|
|
1181
|
-
},
|
|
1182
|
-
const
|
|
1183
|
-
|
|
1184
|
-
}, [
|
|
1185
|
-
U(() => {
|
|
1186
|
-
|
|
1187
|
-
}, [
|
|
1188
|
-
const
|
|
1189
|
-
return { closeAllowed:
|
|
1278
|
+
return e;
|
|
1279
|
+
}, fn = (e, n) => {
|
|
1280
|
+
const d = re(), { state: o, dispatch: h } = d, u = aA((l) => {
|
|
1281
|
+
console.log(`[useArchbaseNavigationListener] closeAllowed called for: ${e}`), h({ type: "CLOSE_ALLOWED", link: e, payload: l });
|
|
1282
|
+
}, [h, e]), c = AA(n);
|
|
1283
|
+
c.current = n, U(() => {
|
|
1284
|
+
console.log(`[useArchbaseNavigationListener] Effect check - userCloseLinkRequest: ${o?.userCloseLinkRequest}, id: ${e}`), o && o.userCloseLinkRequest && o.userCloseLinkRequest === e && (console.log(`[useArchbaseNavigationListener] Calling onUserCloseRequest for: ${e}`), c.current());
|
|
1285
|
+
}, [o, e]);
|
|
1286
|
+
const r = o.isClosing && o.userCloseLinkRequest === e;
|
|
1287
|
+
return { closeAllowed: u, isClosing: r };
|
|
1190
1288
|
};
|
|
1191
|
-
function
|
|
1192
|
-
navigationData:
|
|
1193
|
-
onChangeOpenedTabs:
|
|
1194
|
-
onChangeActiveTabId:
|
|
1195
|
-
activeTabId:
|
|
1196
|
-
openedTabs:
|
|
1289
|
+
function bn({
|
|
1290
|
+
navigationData: e,
|
|
1291
|
+
onChangeOpenedTabs: n,
|
|
1292
|
+
onChangeActiveTabId: d,
|
|
1293
|
+
activeTabId: o,
|
|
1294
|
+
openedTabs: h = []
|
|
1197
1295
|
}) {
|
|
1198
|
-
const [
|
|
1199
|
-
|
|
1200
|
-
const
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
let
|
|
1208
|
-
|
|
1209
|
-
const
|
|
1210
|
-
|
|
1211
|
-
|
|
1296
|
+
const [u, c] = j.useTransition(), r = QA(), { colorScheme: l } = iA(), [a, p] = eA(h), [f, v] = eA(o), s = OA(), C = AA([]);
|
|
1297
|
+
ao(C);
|
|
1298
|
+
const w = re(), { state: x, dispatch: R } = w, b = gA(wA), D = oe(), F = AA(n), P = AA(d);
|
|
1299
|
+
U(() => {
|
|
1300
|
+
F.current = n, P.current = d;
|
|
1301
|
+
});
|
|
1302
|
+
const K = AA(!1), G = aA((g, i) => {
|
|
1303
|
+
console.log(`[TabContainer] handleOnClose called for: ${g}`), D ? D.requestUnregister(g) : console.error("[ArchbaseAdminTabContainer] keepAliveCache context not available. Tab cache cleanup will not occur. This may cause memory leaks.");
|
|
1304
|
+
const t = a.findIndex((M) => M.path === g);
|
|
1305
|
+
let k = i?.redirectUrl;
|
|
1306
|
+
!k && t >= 0 && (k = a[t].redirect);
|
|
1307
|
+
const T = a.filter((M) => M.id !== g);
|
|
1308
|
+
let m = -1;
|
|
1309
|
+
T.forEach((M, rA) => M.id === f && (m = rA));
|
|
1310
|
+
let z = null;
|
|
1311
|
+
T.length > 0 && T[m] ? z = T[m].id : T.length > 0 ? z = T[T.length - 1].id : z = null;
|
|
1312
|
+
const Q = T.map((M) => ({
|
|
1313
|
+
...M,
|
|
1314
|
+
active: z === M.id
|
|
1212
1315
|
}));
|
|
1213
|
-
|
|
1214
|
-
|
|
1316
|
+
if (p(Q), z && z != null)
|
|
1317
|
+
v(z), r(k || z);
|
|
1318
|
+
else {
|
|
1319
|
+
if (v(void 0), !b.navigationRootLink) {
|
|
1320
|
+
console.error("[ArchbaseAdminTabContainer] navigationRootLink is not configured. Cannot navigate to root.");
|
|
1321
|
+
return;
|
|
1322
|
+
}
|
|
1323
|
+
r(b.navigationRootLink);
|
|
1324
|
+
}
|
|
1325
|
+
R({ type: "DONE", link: "" });
|
|
1326
|
+
}, [a, f, r, b.navigationRootLink, R, D]);
|
|
1215
1327
|
U(() => {
|
|
1216
|
-
|
|
1217
|
-
}, [
|
|
1218
|
-
const
|
|
1219
|
-
const
|
|
1328
|
+
x?.linkClosed && (console.log(`[TabContainer] useEffect - linkClosed: ${x?.linkClosed}`), G(x?.linkClosed, x?.payload));
|
|
1329
|
+
}, [x?.linkClosed, x?.payload, G]);
|
|
1330
|
+
const oA = (g) => {
|
|
1331
|
+
const i = {
|
|
1220
1332
|
item: void 0,
|
|
1221
1333
|
title: void 0,
|
|
1222
|
-
link:
|
|
1334
|
+
link: g,
|
|
1223
1335
|
redirect: void 0,
|
|
1224
1336
|
customTitle: void 0
|
|
1225
1337
|
};
|
|
1226
|
-
return
|
|
1227
|
-
if (
|
|
1228
|
-
|
|
1229
|
-
|
|
1338
|
+
return e.forEach((t) => {
|
|
1339
|
+
if (t.links)
|
|
1340
|
+
t.links.forEach((k) => {
|
|
1341
|
+
$A({ path: k.link || "" }, location.pathname) && (i.item = k, i.title = `${L().t(k.label)}`, i.redirect = k.redirect, i.customTitle = k.customTitle);
|
|
1230
1342
|
});
|
|
1231
|
-
else if (
|
|
1232
|
-
const
|
|
1233
|
-
|
|
1343
|
+
else if (t.link && !i.item) {
|
|
1344
|
+
const k = $A({ path: t.link }, location.pathname);
|
|
1345
|
+
k && (k.params && Object.keys(k.params).length > 0 ? i.title = `${k.params[Object.keys(k.params)[0]]}` : i.title = `${L().t(t.label)}`, i.item = t, i.redirect = t.redirect, i.customTitle = t.customTitle);
|
|
1234
1346
|
}
|
|
1235
|
-
}),
|
|
1347
|
+
}), i.customTitle && (i.customTitle = i.customTitle.replace("$title", i.title)), i;
|
|
1236
1348
|
};
|
|
1237
1349
|
U(() => {
|
|
1238
|
-
|
|
1239
|
-
}, [JSON.stringify(
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1350
|
+
p(h), K.current = !0;
|
|
1351
|
+
}, [JSON.stringify(h)]);
|
|
1352
|
+
const V = AA(a), J = AA(f);
|
|
1353
|
+
U(() => {
|
|
1354
|
+
if (K.current) {
|
|
1355
|
+
K.current = !1, V.current = a, J.current = f;
|
|
1356
|
+
return;
|
|
1357
|
+
}
|
|
1358
|
+
const g = JSON.stringify(V.current) !== JSON.stringify(a), i = J.current !== f;
|
|
1359
|
+
if (g || i) {
|
|
1360
|
+
const t = setTimeout(() => {
|
|
1361
|
+
F.current?.(a), P.current?.(f);
|
|
1362
|
+
}, 0);
|
|
1363
|
+
return V.current = a, J.current = f, () => clearTimeout(t);
|
|
1364
|
+
}
|
|
1365
|
+
}, [a, f]);
|
|
1366
|
+
const Y = AA(s.pathname);
|
|
1367
|
+
U(() => {
|
|
1368
|
+
if (Y.current === s.pathname)
|
|
1369
|
+
return;
|
|
1370
|
+
Y.current = s.pathname;
|
|
1371
|
+
const g = oA(s.pathname);
|
|
1372
|
+
if (g && g.item) {
|
|
1373
|
+
const i = a.findIndex((t) => t.path === g.link);
|
|
1374
|
+
if (i !== -1) {
|
|
1375
|
+
if (a[i].title !== g.title) {
|
|
1376
|
+
const t = [...a];
|
|
1377
|
+
t[i] = { ...t[i], title: g.title }, p(t);
|
|
1378
|
+
}
|
|
1379
|
+
v(a[i].id);
|
|
1380
|
+
} else {
|
|
1381
|
+
const t = {
|
|
1382
|
+
id: `${g.link}`,
|
|
1383
|
+
title: `${g.title}`,
|
|
1384
|
+
path: `${g.link}`,
|
|
1385
|
+
active: !0,
|
|
1386
|
+
content: g.item.component,
|
|
1387
|
+
iconClass: g.item.icon,
|
|
1388
|
+
closeButton: !0,
|
|
1389
|
+
redirect: g.redirect,
|
|
1390
|
+
customTitle: g.customTitle
|
|
1391
|
+
}, k = [...a.map((T) => ({ ...T, active: !1 })), t];
|
|
1392
|
+
p(k), v(t.id);
|
|
1393
|
+
}
|
|
1254
1394
|
}
|
|
1255
|
-
}, [
|
|
1256
|
-
const
|
|
1257
|
-
const
|
|
1258
|
-
|
|
1259
|
-
|
|
1395
|
+
}, [s.pathname]);
|
|
1396
|
+
const nA = (g) => {
|
|
1397
|
+
const i = a.filter((t) => t.id === g);
|
|
1398
|
+
i && i.length > 0 && s.pathname !== i[0].path && r(i[0].path), c(() => {
|
|
1399
|
+
v(g);
|
|
1260
1400
|
});
|
|
1261
|
-
},
|
|
1401
|
+
}, W = (g) => {
|
|
1402
|
+
console.log(`[TabContainer] handleOnCloseRequest - User clicked close on tab: ${g}`);
|
|
1262
1403
|
try {
|
|
1263
|
-
|
|
1264
|
-
} catch (
|
|
1265
|
-
console.error("[TabContainer] Dispatch failed:",
|
|
1404
|
+
R({ type: "USER_CLOSE_REQUEST", link: g });
|
|
1405
|
+
} catch (i) {
|
|
1406
|
+
console.error("[TabContainer] Dispatch failed:", i);
|
|
1266
1407
|
}
|
|
1267
|
-
},
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
const c = l.findIndex((b) => b.id === p);
|
|
1271
|
-
if (c <= 0)
|
|
1408
|
+
}, Z = aA(() => {
|
|
1409
|
+
if (p([]), v(void 0), !b.navigationRootLink) {
|
|
1410
|
+
console.error("[ArchbaseAdminTabContainer] navigationRootLink is not configured. Cannot navigate to root.");
|
|
1272
1411
|
return;
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1412
|
+
}
|
|
1413
|
+
r(b.navigationRootLink);
|
|
1414
|
+
}, [r, b.navigationRootLink]), _ = aA((g) => {
|
|
1415
|
+
const i = a.findIndex((m) => m.id === g);
|
|
1416
|
+
if (i <= 0)
|
|
1417
|
+
return;
|
|
1418
|
+
const t = a.slice(i), k = t.find((m) => m.id === f)?.id || t[0]?.id, T = t.map((m) => ({
|
|
1419
|
+
...m,
|
|
1420
|
+
active: m.id === k
|
|
1276
1421
|
}));
|
|
1277
|
-
if (
|
|
1278
|
-
|
|
1279
|
-
const
|
|
1280
|
-
|
|
1422
|
+
if (p(T), k) {
|
|
1423
|
+
v(k);
|
|
1424
|
+
const m = T.find((z) => z.id === k);
|
|
1425
|
+
m && s.pathname !== m.path && r(m.path);
|
|
1281
1426
|
}
|
|
1282
|
-
}, [
|
|
1283
|
-
const
|
|
1284
|
-
if (
|
|
1427
|
+
}, [a, f, r, s.pathname]), q = aA((g) => {
|
|
1428
|
+
const i = a.findIndex((m) => m.id === g);
|
|
1429
|
+
if (i === -1 || i >= a.length - 1)
|
|
1285
1430
|
return;
|
|
1286
|
-
const
|
|
1287
|
-
...
|
|
1288
|
-
active:
|
|
1431
|
+
const t = a.slice(0, i + 1), k = t.find((m) => m.id === f)?.id || t[t.length - 1]?.id, T = t.map((m) => ({
|
|
1432
|
+
...m,
|
|
1433
|
+
active: m.id === k
|
|
1289
1434
|
}));
|
|
1290
|
-
if (
|
|
1291
|
-
|
|
1292
|
-
const
|
|
1293
|
-
|
|
1435
|
+
if (p(T), k) {
|
|
1436
|
+
v(k);
|
|
1437
|
+
const m = T.find((z) => z.id === k);
|
|
1438
|
+
m && s.pathname !== m.path && r(m.path);
|
|
1294
1439
|
}
|
|
1295
|
-
}, [
|
|
1296
|
-
const
|
|
1297
|
-
if (!
|
|
1440
|
+
}, [a, f, r, s.pathname]), $ = aA((g) => {
|
|
1441
|
+
const i = a.find((k) => k.id === g);
|
|
1442
|
+
if (!i)
|
|
1298
1443
|
return;
|
|
1299
|
-
const
|
|
1300
|
-
|
|
1301
|
-
}, [
|
|
1302
|
-
return /* @__PURE__ */ A("div", { ref:
|
|
1303
|
-
|
|
1444
|
+
const t = [{ ...i, active: !0 }];
|
|
1445
|
+
p(t), v(g), s.pathname !== i.path && r(i.path);
|
|
1446
|
+
}, [a, r, s.pathname]);
|
|
1447
|
+
return /* @__PURE__ */ A("div", { ref: C, children: /* @__PURE__ */ A(
|
|
1448
|
+
so,
|
|
1304
1449
|
{
|
|
1305
1450
|
buttonCloseOnlyActiveTab: !0,
|
|
1306
|
-
onClick: (
|
|
1307
|
-
onTabClose: (
|
|
1308
|
-
onTabChange: (
|
|
1309
|
-
onCloseAllTabs:
|
|
1310
|
-
onCloseLeftTabs:
|
|
1311
|
-
onCloseRightTabs:
|
|
1312
|
-
onCloseOtherTabs:
|
|
1313
|
-
currentTabs: ((
|
|
1314
|
-
key:
|
|
1315
|
-
favicon:
|
|
1316
|
-
title:
|
|
1317
|
-
customTitle:
|
|
1318
|
-
})))(
|
|
1319
|
-
activeTab:
|
|
1320
|
-
dark:
|
|
1451
|
+
onClick: (g) => nA(g),
|
|
1452
|
+
onTabClose: (g) => W(g),
|
|
1453
|
+
onTabChange: (g) => null,
|
|
1454
|
+
onCloseAllTabs: Z,
|
|
1455
|
+
onCloseLeftTabs: _,
|
|
1456
|
+
onCloseRightTabs: q,
|
|
1457
|
+
onCloseOtherTabs: $,
|
|
1458
|
+
currentTabs: ((g) => g.map((i) => ({
|
|
1459
|
+
key: i.id,
|
|
1460
|
+
favicon: i.iconClass,
|
|
1461
|
+
title: i.title,
|
|
1462
|
+
customTitle: i.customTitle
|
|
1463
|
+
})))(a),
|
|
1464
|
+
activeTab: f,
|
|
1465
|
+
dark: l === "dark"
|
|
1321
1466
|
}
|
|
1322
1467
|
) });
|
|
1323
1468
|
}
|
|
1324
|
-
const
|
|
1469
|
+
const Do = () => j.createElement("div", null, "Home View"), Io = () => j.createElement("div", null, "Pedido Form"), Qo = () => j.createElement("div", null, "Pedido View"), Oo = () => j.createElement("div", null, "Pessoa Form"), No = () => j.createElement("div", null, "Pessoa View"), Po = {
|
|
1325
1470
|
label: "Dashboard",
|
|
1326
|
-
icon: /* @__PURE__ */ A(
|
|
1471
|
+
icon: /* @__PURE__ */ A(Se, {}),
|
|
1327
1472
|
link: "/dashboard",
|
|
1328
1473
|
category: "DASHBOARD",
|
|
1329
1474
|
color: "teal",
|
|
1330
1475
|
component: /* @__PURE__ */ A("div", {}),
|
|
1331
1476
|
showInSidebar: !0
|
|
1332
|
-
},
|
|
1477
|
+
}, zo = {
|
|
1333
1478
|
label: "Home",
|
|
1334
|
-
icon: /* @__PURE__ */ A(
|
|
1479
|
+
icon: /* @__PURE__ */ A(xe, {}),
|
|
1335
1480
|
link: "/home",
|
|
1336
1481
|
category: "HOME",
|
|
1337
1482
|
color: "teal",
|
|
1338
|
-
component: /* @__PURE__ */ A(
|
|
1339
|
-
showInSidebar: !0
|
|
1340
|
-
|
|
1483
|
+
component: /* @__PURE__ */ A(Do, {}),
|
|
1484
|
+
showInSidebar: !0,
|
|
1485
|
+
keepAlive: !0
|
|
1486
|
+
}, $o = {
|
|
1341
1487
|
label: "Consulta lista pessoas",
|
|
1342
1488
|
link: "/pessoa/consulta",
|
|
1343
|
-
icon: /* @__PURE__ */ A(
|
|
1489
|
+
icon: /* @__PURE__ */ A(XA, {}),
|
|
1344
1490
|
category: "PESSOAS",
|
|
1345
1491
|
color: "pink",
|
|
1346
|
-
component: /* @__PURE__ */ A(
|
|
1347
|
-
showInSidebar: !0
|
|
1348
|
-
|
|
1492
|
+
component: /* @__PURE__ */ A(No, {}),
|
|
1493
|
+
showInSidebar: !0,
|
|
1494
|
+
keepAlive: !0
|
|
1495
|
+
}, Mo = {
|
|
1349
1496
|
label: "Nova pessoa",
|
|
1350
1497
|
link: "/pessoa/nova",
|
|
1351
|
-
icon: /* @__PURE__ */ A(
|
|
1498
|
+
icon: /* @__PURE__ */ A(Re, {}),
|
|
1352
1499
|
category: "PESSOAS",
|
|
1353
1500
|
color: "pink",
|
|
1354
|
-
component: /* @__PURE__ */ A(
|
|
1355
|
-
showInSidebar: !0
|
|
1356
|
-
|
|
1501
|
+
component: /* @__PURE__ */ A(Oo, {}),
|
|
1502
|
+
showInSidebar: !0,
|
|
1503
|
+
keepAlive: !0
|
|
1504
|
+
}, Uo = {
|
|
1357
1505
|
label: "Pessoas",
|
|
1358
|
-
icon: /* @__PURE__ */ A(
|
|
1359
|
-
links: [
|
|
1506
|
+
icon: /* @__PURE__ */ A(Ee, {}),
|
|
1507
|
+
links: [$o, Mo],
|
|
1360
1508
|
category: "PESSOAS",
|
|
1361
1509
|
color: "pink",
|
|
1362
1510
|
showInSidebar: !0
|
|
1363
|
-
},
|
|
1511
|
+
}, Fo = {
|
|
1364
1512
|
label: "Consulta lista pedidos",
|
|
1365
1513
|
link: "/pedido/consulta",
|
|
1366
|
-
icon: /* @__PURE__ */ A(
|
|
1514
|
+
icon: /* @__PURE__ */ A(XA, {}),
|
|
1367
1515
|
category: "PEDIDOS",
|
|
1368
1516
|
color: "yellow",
|
|
1369
1517
|
component: /* @__PURE__ */ A(Qo, {}),
|
|
1370
|
-
showInSidebar: !0
|
|
1371
|
-
|
|
1518
|
+
showInSidebar: !0,
|
|
1519
|
+
keepAlive: !0
|
|
1520
|
+
}, qo = {
|
|
1372
1521
|
label: "Novo pedido",
|
|
1373
1522
|
link: "/pedido/novo",
|
|
1374
|
-
icon: /* @__PURE__ */ A(
|
|
1523
|
+
icon: /* @__PURE__ */ A(Te, {}),
|
|
1375
1524
|
category: "PEDIDOS",
|
|
1376
1525
|
color: "yellow",
|
|
1377
|
-
component: /* @__PURE__ */ A(
|
|
1378
|
-
showInSidebar: !0
|
|
1379
|
-
|
|
1526
|
+
component: /* @__PURE__ */ A(Io, {}),
|
|
1527
|
+
showInSidebar: !0,
|
|
1528
|
+
keepAlive: !0
|
|
1529
|
+
}, Bo = {
|
|
1380
1530
|
label: "Pedidos",
|
|
1381
|
-
icon: /* @__PURE__ */ A(
|
|
1382
|
-
links: [
|
|
1531
|
+
icon: /* @__PURE__ */ A(Le, {}),
|
|
1532
|
+
links: [Fo, qo],
|
|
1383
1533
|
category: "PEDIDOS",
|
|
1384
1534
|
color: "yellow",
|
|
1385
1535
|
showInSidebar: !0
|
|
1386
|
-
},
|
|
1536
|
+
}, Ho = {
|
|
1387
1537
|
label: "Configurações",
|
|
1388
1538
|
link: "/config",
|
|
1389
|
-
icon: /* @__PURE__ */ A(
|
|
1539
|
+
icon: /* @__PURE__ */ A(De, {}),
|
|
1390
1540
|
category: "CONFIGURAÇÕES",
|
|
1391
1541
|
color: "lime",
|
|
1392
1542
|
component: /* @__PURE__ */ A("div", {}),
|
|
1393
1543
|
showInSidebar: !0
|
|
1394
|
-
},
|
|
1395
|
-
|
|
1544
|
+
}, Cn = [
|
|
1545
|
+
zo,
|
|
1396
1546
|
Po,
|
|
1397
|
-
|
|
1398
|
-
|
|
1399
|
-
|
|
1547
|
+
Uo,
|
|
1548
|
+
Bo,
|
|
1549
|
+
Ho
|
|
1400
1550
|
];
|
|
1401
|
-
function
|
|
1402
|
-
const [
|
|
1551
|
+
function vn({ children: e, title: n = "", size: d = "440px", drawerKey: o, styles: h }) {
|
|
1552
|
+
const [u, { open: c, close: r }] = le(!1), [l] = WA(), a = Ze(), p = _e();
|
|
1403
1553
|
return U(() => {
|
|
1404
|
-
|
|
1405
|
-
}, [
|
|
1406
|
-
|
|
1554
|
+
l.get("drawer") === o && c();
|
|
1555
|
+
}, [l]), /* @__PURE__ */ A(
|
|
1556
|
+
GA,
|
|
1407
1557
|
{
|
|
1408
1558
|
position: "right",
|
|
1409
|
-
opened:
|
|
1559
|
+
opened: u,
|
|
1410
1560
|
onClose: () => {
|
|
1411
|
-
|
|
1412
|
-
const
|
|
1413
|
-
|
|
1414
|
-
pathname:
|
|
1415
|
-
search:
|
|
1561
|
+
r();
|
|
1562
|
+
const v = new URLSearchParams(l);
|
|
1563
|
+
v.delete("drawer"), a({
|
|
1564
|
+
pathname: p.pathname,
|
|
1565
|
+
search: v.toString()
|
|
1416
1566
|
});
|
|
1417
1567
|
},
|
|
1418
|
-
title:
|
|
1419
|
-
size:
|
|
1420
|
-
styles:
|
|
1421
|
-
children:
|
|
1568
|
+
title: n,
|
|
1569
|
+
size: d,
|
|
1570
|
+
styles: h,
|
|
1571
|
+
children: e
|
|
1422
1572
|
}
|
|
1423
1573
|
);
|
|
1424
1574
|
}
|
|
1425
|
-
function
|
|
1426
|
-
const
|
|
1575
|
+
function Ko(e) {
|
|
1576
|
+
const n = QA(), d = OA(), [o] = WA();
|
|
1427
1577
|
return { openDrawer: () => {
|
|
1428
|
-
const
|
|
1429
|
-
|
|
1430
|
-
pathname:
|
|
1431
|
-
search:
|
|
1578
|
+
const u = new URLSearchParams(o);
|
|
1579
|
+
u.set("drawer", e), n({
|
|
1580
|
+
pathname: d.pathname,
|
|
1581
|
+
search: u.toString()
|
|
1432
1582
|
});
|
|
1433
1583
|
} };
|
|
1434
1584
|
}
|
|
1435
|
-
function
|
|
1436
|
-
const { openDrawer:
|
|
1585
|
+
function kn({ drawerKey: e }) {
|
|
1586
|
+
const { openDrawer: n } = Ko(e);
|
|
1437
1587
|
return U(() => {
|
|
1438
|
-
|
|
1588
|
+
n();
|
|
1439
1589
|
}, []), null;
|
|
1440
1590
|
}
|
|
1441
1591
|
const Go = {
|
|
@@ -1446,80 +1596,80 @@ const Go = {
|
|
|
1446
1596
|
avatarMaxSizeKB: 2e3,
|
|
1447
1597
|
avatarImageQuality: 1
|
|
1448
1598
|
};
|
|
1449
|
-
function
|
|
1450
|
-
const
|
|
1451
|
-
name: `dsUser${
|
|
1452
|
-
label: `${
|
|
1453
|
-
service:
|
|
1454
|
-
store:
|
|
1599
|
+
function mn({ opened: e, handleClose: n, userId: d, updateUser: o, options: h }) {
|
|
1600
|
+
const u = ie(), c = ce(), r = Ie(), l = lo(`myProfile${d}Store`), a = io(Qe.User), p = { ...Go, ...h ?? {} }, { dataSource: f, isLoading: v, error: s, isError: C, clearError: w } = co({
|
|
1601
|
+
name: `dsUser${d}`,
|
|
1602
|
+
label: `${L().t("archbase:My Profile")}`,
|
|
1603
|
+
service: a,
|
|
1604
|
+
store: l,
|
|
1455
1605
|
pageSize: 50,
|
|
1456
1606
|
loadOnStart: !0,
|
|
1457
|
-
validator:
|
|
1458
|
-
id:
|
|
1459
|
-
onLoadComplete: (
|
|
1460
|
-
|
|
1607
|
+
validator: r,
|
|
1608
|
+
id: d,
|
|
1609
|
+
onLoadComplete: (R) => {
|
|
1610
|
+
R.isBrowsing() && R.edit(), c();
|
|
1461
1611
|
},
|
|
1462
|
-
onDestroy: (
|
|
1612
|
+
onDestroy: (R) => {
|
|
1463
1613
|
},
|
|
1464
|
-
onError: (
|
|
1465
|
-
|
|
1614
|
+
onError: (R, b) => {
|
|
1615
|
+
no.showError(L().t("archbase:WARNING"), R, b);
|
|
1466
1616
|
}
|
|
1467
1617
|
});
|
|
1468
1618
|
U(() => {
|
|
1469
|
-
|
|
1470
|
-
}, [
|
|
1471
|
-
const
|
|
1472
|
-
|
|
1619
|
+
e && f && f.isBrowsing() && f.edit();
|
|
1620
|
+
}, [f, e]);
|
|
1621
|
+
const x = (R) => {
|
|
1622
|
+
R && (console.log(R), o(R.name, R.avatar));
|
|
1473
1623
|
};
|
|
1474
1624
|
return /* @__PURE__ */ A(
|
|
1475
|
-
|
|
1625
|
+
uo,
|
|
1476
1626
|
{
|
|
1477
|
-
title:
|
|
1627
|
+
title: L().t("archbase:My Profile"),
|
|
1478
1628
|
size: 800,
|
|
1479
1629
|
height: "500px",
|
|
1480
|
-
opened:
|
|
1481
|
-
dataSource:
|
|
1482
|
-
onClickOk:
|
|
1483
|
-
onClickCancel:
|
|
1484
|
-
onAfterSave:
|
|
1485
|
-
children: /* @__PURE__ */ A(
|
|
1486
|
-
/* @__PURE__ */ A(
|
|
1487
|
-
|
|
1630
|
+
opened: e,
|
|
1631
|
+
dataSource: f,
|
|
1632
|
+
onClickOk: n,
|
|
1633
|
+
onClickCancel: n,
|
|
1634
|
+
onAfterSave: x,
|
|
1635
|
+
children: /* @__PURE__ */ A(TA, { style: { height: "440px" }, ref: u, children: /* @__PURE__ */ I(vA, { children: [
|
|
1636
|
+
/* @__PURE__ */ A(vA, { align: "center", children: /* @__PURE__ */ A(
|
|
1637
|
+
ro,
|
|
1488
1638
|
{
|
|
1489
|
-
dataSource:
|
|
1639
|
+
dataSource: f,
|
|
1490
1640
|
dataField: "avatar",
|
|
1491
1641
|
width: 200,
|
|
1492
1642
|
height: 200,
|
|
1493
|
-
maxSizeKB:
|
|
1494
|
-
imageQuality:
|
|
1643
|
+
maxSizeKB: p.avatarMaxSizeKB,
|
|
1644
|
+
imageQuality: p.avatarImageQuality
|
|
1495
1645
|
}
|
|
1496
1646
|
) }),
|
|
1497
1647
|
/* @__PURE__ */ A(
|
|
1498
|
-
|
|
1648
|
+
yA,
|
|
1499
1649
|
{
|
|
1500
|
-
label: `${
|
|
1501
|
-
placeholder: `${
|
|
1502
|
-
dataSource:
|
|
1650
|
+
label: `${L().t("archbase:Nome completo")}`,
|
|
1651
|
+
placeholder: `${L().t("archbase:Informe o nome completo do usuário")}`,
|
|
1652
|
+
dataSource: f,
|
|
1503
1653
|
dataField: "name",
|
|
1504
1654
|
required: !0
|
|
1505
1655
|
}
|
|
1506
1656
|
),
|
|
1507
|
-
|
|
1508
|
-
|
|
1657
|
+
p.showNickname && /* @__PURE__ */ A(
|
|
1658
|
+
yA,
|
|
1509
1659
|
{
|
|
1510
|
-
label: `${
|
|
1511
|
-
placeholder: `${
|
|
1512
|
-
dataSource:
|
|
1660
|
+
label: `${L().t("archbase:Apelido")}`,
|
|
1661
|
+
placeholder: `${L().t("archbase:Apelido")}`,
|
|
1662
|
+
dataSource: f,
|
|
1513
1663
|
dataField: "nickname",
|
|
1514
|
-
required:
|
|
1664
|
+
required: p.requiredNickname
|
|
1515
1665
|
}
|
|
1516
1666
|
),
|
|
1517
1667
|
/* @__PURE__ */ A(
|
|
1518
|
-
|
|
1668
|
+
yA,
|
|
1519
1669
|
{
|
|
1520
|
-
label: `${
|
|
1521
|
-
placeholder: `${
|
|
1522
|
-
dataSource:
|
|
1670
|
+
label: `${L().t("archbase:Descrição do usuário")}`,
|
|
1671
|
+
placeholder: `${L().t("archbase:Informe a descrição do usuário")}`,
|
|
1672
|
+
dataSource: f,
|
|
1523
1673
|
dataField: "description",
|
|
1524
1674
|
required: !0
|
|
1525
1675
|
}
|
|
@@ -1528,39 +1678,39 @@ function wr({ opened: o, handleClose: e, userId: t, updateUser: r, options: i })
|
|
|
1528
1678
|
}
|
|
1529
1679
|
);
|
|
1530
1680
|
}
|
|
1531
|
-
const
|
|
1681
|
+
const wn = ho((e) => ({
|
|
1532
1682
|
nameStore: "ADMIN_STORE",
|
|
1533
1683
|
openedTabs: [],
|
|
1534
1684
|
activeTabId: void 0,
|
|
1535
1685
|
collapsed: !1,
|
|
1536
|
-
setOpenedTabs: (
|
|
1537
|
-
setActiveTabId: (
|
|
1538
|
-
setCollapsed: (
|
|
1686
|
+
setOpenedTabs: (n) => e({ openedTabs: n }),
|
|
1687
|
+
setActiveTabId: (n) => e({ activeTabId: n }),
|
|
1688
|
+
setCollapsed: (n) => e({ collapsed: n })
|
|
1539
1689
|
}));
|
|
1540
1690
|
export {
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1551
|
-
|
|
1552
|
-
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
|
|
1691
|
+
wA as ArchbaseAdminLayoutContext,
|
|
1692
|
+
un as ArchbaseAdminLayoutFooter,
|
|
1693
|
+
hn as ArchbaseAdminLayoutHeader,
|
|
1694
|
+
po as ArchbaseAdminLayoutProvider,
|
|
1695
|
+
pn as ArchbaseAdminMainLayout,
|
|
1696
|
+
bn as ArchbaseAdminTabContainer,
|
|
1697
|
+
FA as ArchbaseAdvancedSidebar,
|
|
1698
|
+
So as ArchbaseAliveAbleRoutes,
|
|
1699
|
+
go as ArchbaseChangeLanguageAction,
|
|
1700
|
+
bo as ArchbaseColorSchemeAction,
|
|
1701
|
+
vn as ArchbaseDrawerContent,
|
|
1702
|
+
kn as ArchbaseDrawerTrigger,
|
|
1703
|
+
Co as ArchbaseHeaderNavAction,
|
|
1704
|
+
kA as ArchbaseKeepAliveRoute,
|
|
1705
|
+
mn as ArchbaseMyProfileModal,
|
|
1706
|
+
ne as ArchbaseNavigationContext,
|
|
1707
|
+
gn as ArchbaseNavigationProvider,
|
|
1708
|
+
ko as CommandPaletteButton,
|
|
1559
1709
|
mo as defaultAvatar,
|
|
1560
1710
|
Go as defaultMyProfileModalOptions,
|
|
1561
|
-
|
|
1562
|
-
|
|
1563
|
-
|
|
1564
|
-
|
|
1565
|
-
|
|
1711
|
+
Cn as navigationDataSample,
|
|
1712
|
+
wn as useArchbaseAdminStore,
|
|
1713
|
+
Ko as useArchbaseDrawer,
|
|
1714
|
+
re as useArchbaseNavigationContext,
|
|
1715
|
+
fn as useArchbaseNavigationListener
|
|
1566
1716
|
};
|