wcz-test 6.22.1 → 6.22.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ApprovalStatus-BtAVFn5p.js +8 -0
- package/dist/{ApprovalStatus-C9HPyMiS.js.map → ApprovalStatus-BtAVFn5p.js.map} +1 -1
- package/dist/DialogsContext-DMZRefiY.js.map +1 -1
- package/dist/DialogsHooks-BEZgPVSk.js +277 -0
- package/dist/DialogsHooks-BEZgPVSk.js.map +1 -0
- package/dist/FileHooks-BJdvBvBr.js +465 -0
- package/dist/FileHooks-BJdvBvBr.js.map +1 -0
- package/dist/FileMeta-G1oT3mYK.js.map +1 -1
- package/dist/RouterListItemButton-CagMd8F_.js +35 -0
- package/dist/RouterListItemButton-CagMd8F_.js.map +1 -0
- package/dist/{UseHook-DB7btKDE.js → UseHook-CGSDGsbk.js} +4 -2
- package/dist/{UseHook-DB7btKDE.js.map → UseHook-CGSDGsbk.js.map} +1 -1
- package/dist/client.js +1 -1
- package/dist/compiler-runtime-BGHur82y.js +46 -0
- package/dist/compiler-runtime-BGHur82y.js.map +1 -0
- package/dist/components.js +1362 -305
- package/dist/components.js.map +1 -1
- package/dist/hooks.js +937 -281
- package/dist/hooks.js.map +1 -1
- package/dist/index.js +1717 -505
- package/dist/index.js.map +1 -1
- package/dist/models.js +27 -50
- package/dist/models.js.map +1 -1
- package/dist/queries.js +755 -206
- package/dist/queries.js.map +1 -1
- package/dist/{utils-CKW5pi6k.js → utils-CCjnelFb.js} +47 -18
- package/dist/{utils-CKW5pi6k.js.map → utils-CCjnelFb.js.map} +1 -1
- package/dist/utils.js +1 -1
- package/dist/vite.js +9 -3
- package/dist/vite.js.map +1 -1
- package/package.json +1 -1
- package/dist/ApprovalStatus-C9HPyMiS.js +0 -24
- package/dist/DialogsHooks-DBK6rBoU.js +0 -37
- package/dist/DialogsHooks-DBK6rBoU.js.map +0 -1
- package/dist/FileHooks-BM2Oyvh6.js +0 -194
- package/dist/FileHooks-BM2Oyvh6.js.map +0 -1
- package/dist/RouterListItemButton-Vj6OoqkV.js +0 -15
- package/dist/RouterListItemButton-Vj6OoqkV.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports, D as DialogsContext } from "./DialogsContext-DMZRefiY.js";
|
|
2
|
+
import { c as compilerRuntimeExports } from "./compiler-runtime-BGHur82y.js";
|
|
2
3
|
import { useMsalAuthentication, useMsal, AuthenticatedTemplate, MsalProvider } from "@azure/msal-react";
|
|
3
|
-
import { Stack, Typography, Collapse, useMediaQuery, useColorScheme,
|
|
4
|
+
import { Stack, Typography, Collapse, useMediaQuery, useColorScheme, ListItemButton as ListItemButton$1, ListItemText as ListItemText$1, ListItemIcon as ListItemIcon$1, Avatar as Avatar$1, ListItem as ListItem$1, ListSubheader as ListSubheader$1, List as List$1, IconButton, Box as Box$1, Menu, InitColorSchemeScript, CssBaseline, AppBar, Toolbar, LinearProgress, ThemeProvider } from "@mui/material";
|
|
4
5
|
import { LocalizationProvider } from "@mui/x-date-pickers";
|
|
5
6
|
import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
|
|
6
7
|
import { createIsomorphicFn, createServerFn } from "@tanstack/react-start";
|
|
@@ -14,11 +15,11 @@ import { resources } from "virtual:wcz-layout";
|
|
|
14
15
|
import z__default from "zod";
|
|
15
16
|
import useEventCallback from "@mui/utils/useEventCallback";
|
|
16
17
|
import { PublicClientApplication, EventType, InteractionType } from "@azure/msal-browser";
|
|
17
|
-
import { U as UserContext, u as useUser } from "./UseHook-
|
|
18
|
+
import { U as UserContext, u as useUser } from "./UseHook-CGSDGsbk.js";
|
|
18
19
|
import { useQuery, useIsFetching, useIsMutating } from "@tanstack/react-query";
|
|
19
20
|
import axios from "axios";
|
|
20
|
-
import { c as clientEnv } from "./utils-
|
|
21
|
-
import { r } from "./utils-
|
|
21
|
+
import { c as clientEnv } from "./utils-CCjnelFb.js";
|
|
22
|
+
import { r } from "./utils-CCjnelFb.js";
|
|
22
23
|
import Menu$1 from "@mui/icons-material/Menu";
|
|
23
24
|
import MenuOpen from "@mui/icons-material/MenuOpen";
|
|
24
25
|
import { styled, useTheme } from "@mui/material/styles";
|
|
@@ -37,7 +38,7 @@ import ListItemText from "@mui/material/ListItemText";
|
|
|
37
38
|
import Paper from "@mui/material/Paper";
|
|
38
39
|
import Popper from "@mui/material/Popper";
|
|
39
40
|
import Typography$1 from "@mui/material/Typography";
|
|
40
|
-
import { R as RouterListItemButton } from "./RouterListItemButton-
|
|
41
|
+
import { R as RouterListItemButton } from "./RouterListItemButton-CagMd8F_.js";
|
|
41
42
|
import AccountCircle from "@mui/icons-material/AccountCircle";
|
|
42
43
|
import ArrowBack from "@mui/icons-material/ArrowBack";
|
|
43
44
|
import Brightness4 from "@mui/icons-material/Brightness4";
|
|
@@ -48,14 +49,18 @@ import LightMode from "@mui/icons-material/LightMode";
|
|
|
48
49
|
import Logout from "@mui/icons-material/Logout";
|
|
49
50
|
import SettingsBrightness from "@mui/icons-material/SettingsBrightness";
|
|
50
51
|
import Translate from "@mui/icons-material/Translate";
|
|
51
|
-
function DialogsProvider({
|
|
52
|
+
function DialogsProvider({
|
|
53
|
+
children
|
|
54
|
+
}) {
|
|
52
55
|
const [stack, setStack] = useState([]);
|
|
53
56
|
const keyPrefix = useId();
|
|
54
57
|
const nextId = useRef(0);
|
|
55
58
|
const dialogMetadata = useRef(/* @__PURE__ */ new WeakMap());
|
|
56
59
|
const requestDialog = useEventCallback(function open(Component, payload, options = {}) {
|
|
57
|
-
const {
|
|
58
|
-
|
|
60
|
+
const {
|
|
61
|
+
onClose = async () => {
|
|
62
|
+
}
|
|
63
|
+
} = options;
|
|
59
64
|
let resolve;
|
|
60
65
|
const promise = new Promise((resolveImpl) => {
|
|
61
66
|
resolve = resolveImpl;
|
|
@@ -76,17 +81,18 @@ function DialogsProvider({ children }) {
|
|
|
76
81
|
return promise;
|
|
77
82
|
});
|
|
78
83
|
const removeDialogFromStack = (dialog) => {
|
|
79
|
-
setStack((
|
|
84
|
+
setStack((previousStack_0) => previousStack_0.filter((entry) => entry.promise !== dialog));
|
|
80
85
|
dialogMetadata.current.delete(dialog);
|
|
81
86
|
};
|
|
82
|
-
const closeDialogUi = useEventCallback(function closeDialogUi2(
|
|
83
|
-
setStack(
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
+
const closeDialogUi = useEventCallback(function closeDialogUi2(dialog_0) {
|
|
88
|
+
setStack((previousStack_1) => previousStack_1.map((entry_0) => entry_0.promise === dialog_0 ? {
|
|
89
|
+
...entry_0,
|
|
90
|
+
open: false
|
|
91
|
+
} : entry_0));
|
|
92
|
+
setTimeout(() => removeDialogFromStack(dialog_0), 1e3);
|
|
87
93
|
});
|
|
88
|
-
const closeDialog = useEventCallback(async function closeDialog2(
|
|
89
|
-
const entryToClose = dialogMetadata.current.get(
|
|
94
|
+
const closeDialog = useEventCallback(async function closeDialog2(dialog_1, result) {
|
|
95
|
+
const entryToClose = dialogMetadata.current.get(dialog_1);
|
|
90
96
|
if (!entryToClose) {
|
|
91
97
|
throw new Error("Dialog not found in stack");
|
|
92
98
|
}
|
|
@@ -94,23 +100,24 @@ function DialogsProvider({ children }) {
|
|
|
94
100
|
await entryToClose.onClose(result);
|
|
95
101
|
} finally {
|
|
96
102
|
entryToClose.resolve(result);
|
|
97
|
-
closeDialogUi(
|
|
103
|
+
closeDialogUi(dialog_1);
|
|
98
104
|
}
|
|
99
|
-
return
|
|
105
|
+
return dialog_1;
|
|
100
106
|
});
|
|
101
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(DialogsContext.Provider, { value: {
|
|
107
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(DialogsContext.Provider, { value: {
|
|
108
|
+
open: requestDialog,
|
|
109
|
+
close: closeDialog
|
|
110
|
+
}, children: [
|
|
102
111
|
children,
|
|
103
|
-
stack.map(({
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
key
|
|
113
|
-
))
|
|
112
|
+
stack.map(({
|
|
113
|
+
key: key_0,
|
|
114
|
+
open,
|
|
115
|
+
Component: Component_0,
|
|
116
|
+
payload: payload_0,
|
|
117
|
+
promise: promise_0
|
|
118
|
+
}) => /* @__PURE__ */ jsxRuntimeExports.jsx(Component_0, { payload: payload_0, open, onClose: async (result_0) => {
|
|
119
|
+
await closeDialog(promise_0, result_0);
|
|
120
|
+
} }, key_0))
|
|
114
121
|
] });
|
|
115
122
|
}
|
|
116
123
|
const msalConfig = {
|
|
@@ -153,85 +160,235 @@ api.interceptors.request.use(async (config) => {
|
|
|
153
160
|
config.headers.Authorization = `Bearer ${await acquireAccessToken()}`;
|
|
154
161
|
return config;
|
|
155
162
|
});
|
|
156
|
-
const useGetUser = (
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
163
|
+
const useGetUser = (t0) => {
|
|
164
|
+
const $ = compilerRuntimeExports.c(3);
|
|
165
|
+
const enabled = t0 === void 0 ? true : t0;
|
|
166
|
+
let t1;
|
|
167
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
168
|
+
t1 = [QUERY_KEY, "me"];
|
|
169
|
+
$[0] = t1;
|
|
170
|
+
} else {
|
|
171
|
+
t1 = $[0];
|
|
172
|
+
}
|
|
173
|
+
let t2;
|
|
174
|
+
if ($[1] !== enabled) {
|
|
175
|
+
t2 = {
|
|
176
|
+
queryKey: t1,
|
|
177
|
+
queryFn: _temp$4,
|
|
178
|
+
select: _temp2,
|
|
179
|
+
staleTime: DAY,
|
|
180
|
+
gcTime: DAY,
|
|
181
|
+
refetchOnWindowFocus: false,
|
|
182
|
+
enabled
|
|
183
|
+
};
|
|
184
|
+
$[1] = enabled;
|
|
185
|
+
$[2] = t2;
|
|
186
|
+
} else {
|
|
187
|
+
t2 = $[2];
|
|
188
|
+
}
|
|
189
|
+
return useQuery(t2);
|
|
178
190
|
};
|
|
179
|
-
const useGetUserPhoto = (
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
191
|
+
const useGetUserPhoto = (t0) => {
|
|
192
|
+
const $ = compilerRuntimeExports.c(3);
|
|
193
|
+
const enabled = t0 === void 0 ? true : t0;
|
|
194
|
+
let t1;
|
|
195
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
196
|
+
t1 = [QUERY_KEY, "me", "photo"];
|
|
197
|
+
$[0] = t1;
|
|
198
|
+
} else {
|
|
199
|
+
t1 = $[0];
|
|
200
|
+
}
|
|
201
|
+
let t2;
|
|
202
|
+
if ($[1] !== enabled) {
|
|
203
|
+
t2 = {
|
|
204
|
+
queryKey: t1,
|
|
205
|
+
queryFn: _temp3,
|
|
206
|
+
select: _temp4,
|
|
207
|
+
staleTime: DAY,
|
|
208
|
+
gcTime: DAY,
|
|
209
|
+
refetchOnWindowFocus: false,
|
|
210
|
+
enabled
|
|
211
|
+
};
|
|
212
|
+
$[1] = enabled;
|
|
213
|
+
$[2] = t2;
|
|
214
|
+
} else {
|
|
215
|
+
t2 = $[2];
|
|
216
|
+
}
|
|
217
|
+
return useQuery(t2);
|
|
194
218
|
};
|
|
195
|
-
const useGetUserGroups = (
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
219
|
+
const useGetUserGroups = (t0) => {
|
|
220
|
+
const $ = compilerRuntimeExports.c(3);
|
|
221
|
+
const enabled = t0 === void 0 ? true : t0;
|
|
222
|
+
let t1;
|
|
223
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
224
|
+
t1 = [QUERY_KEY, "me", "memberOf"];
|
|
225
|
+
$[0] = t1;
|
|
226
|
+
} else {
|
|
227
|
+
t1 = $[0];
|
|
228
|
+
}
|
|
229
|
+
let t2;
|
|
230
|
+
if ($[1] !== enabled) {
|
|
231
|
+
t2 = {
|
|
232
|
+
queryKey: t1,
|
|
233
|
+
queryFn: _temp5,
|
|
234
|
+
select: _temp7,
|
|
235
|
+
staleTime: DAY,
|
|
236
|
+
gcTime: DAY,
|
|
237
|
+
refetchOnWindowFocus: false,
|
|
238
|
+
enabled
|
|
239
|
+
};
|
|
240
|
+
$[1] = enabled;
|
|
241
|
+
$[2] = t2;
|
|
242
|
+
} else {
|
|
243
|
+
t2 = $[2];
|
|
244
|
+
}
|
|
245
|
+
return useQuery(t2);
|
|
209
246
|
};
|
|
210
|
-
function
|
|
211
|
-
const {
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
247
|
+
function _temp$4(t0) {
|
|
248
|
+
const {
|
|
249
|
+
signal
|
|
250
|
+
} = t0;
|
|
251
|
+
return api.request({
|
|
252
|
+
method: "GET",
|
|
253
|
+
url: "me?$select=id,displayName,jobTitle,mail,mobilePhone",
|
|
254
|
+
signal
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
function _temp2(response) {
|
|
258
|
+
return {
|
|
259
|
+
id: response.data.id,
|
|
260
|
+
name: response.data.displayName.split("/")[0],
|
|
261
|
+
jobTitle: response.data.jobTitle,
|
|
262
|
+
email: response.data.mail,
|
|
263
|
+
mobilePhone: response.data.mobilePhone,
|
|
264
|
+
photo: null,
|
|
265
|
+
groups: []
|
|
266
|
+
};
|
|
267
|
+
}
|
|
268
|
+
function _temp3(t0) {
|
|
269
|
+
const {
|
|
270
|
+
signal
|
|
271
|
+
} = t0;
|
|
272
|
+
return api.request({
|
|
273
|
+
method: "GET",
|
|
274
|
+
url: "me/photo/$value",
|
|
275
|
+
signal,
|
|
276
|
+
responseType: "blob"
|
|
277
|
+
});
|
|
278
|
+
}
|
|
279
|
+
function _temp4(response) {
|
|
280
|
+
return URL.createObjectURL(response.data);
|
|
281
|
+
}
|
|
282
|
+
function _temp5(t0) {
|
|
283
|
+
const {
|
|
284
|
+
signal
|
|
285
|
+
} = t0;
|
|
286
|
+
return api.request({
|
|
287
|
+
method: "GET",
|
|
288
|
+
url: "me/memberOf?$select=displayName",
|
|
289
|
+
signal
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
function _temp6(group) {
|
|
293
|
+
return group.displayName;
|
|
294
|
+
}
|
|
295
|
+
function _temp7(response) {
|
|
296
|
+
return response.data.value.map(_temp6);
|
|
297
|
+
}
|
|
298
|
+
function UserProvider(t0) {
|
|
299
|
+
const $ = compilerRuntimeExports.c(11);
|
|
300
|
+
const {
|
|
301
|
+
children
|
|
302
|
+
} = t0;
|
|
303
|
+
const {
|
|
304
|
+
result
|
|
305
|
+
} = useMsalAuthentication(InteractionType.Redirect);
|
|
306
|
+
let t1;
|
|
307
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
308
|
+
t1 = {};
|
|
309
|
+
$[0] = t1;
|
|
310
|
+
} else {
|
|
311
|
+
t1 = $[0];
|
|
312
|
+
}
|
|
313
|
+
const [user, setUser] = useState(t1);
|
|
314
|
+
const {
|
|
315
|
+
data
|
|
316
|
+
} = useGetUser(!!result);
|
|
317
|
+
const {
|
|
318
|
+
data: photo
|
|
319
|
+
} = useGetUserPhoto(!!result);
|
|
320
|
+
const {
|
|
321
|
+
data: groups
|
|
322
|
+
} = useGetUserGroups(!!result);
|
|
323
|
+
let t2;
|
|
324
|
+
let t3;
|
|
325
|
+
if ($[1] !== data || $[2] !== groups || $[3] !== photo) {
|
|
326
|
+
t2 = () => {
|
|
327
|
+
if (!data) {
|
|
328
|
+
return;
|
|
329
|
+
}
|
|
330
|
+
setUser({
|
|
331
|
+
...data,
|
|
332
|
+
...photo && {
|
|
333
|
+
photo
|
|
334
|
+
},
|
|
335
|
+
...groups && {
|
|
336
|
+
groups
|
|
337
|
+
}
|
|
338
|
+
});
|
|
339
|
+
};
|
|
340
|
+
t3 = [data, photo, groups];
|
|
341
|
+
$[1] = data;
|
|
342
|
+
$[2] = groups;
|
|
343
|
+
$[3] = photo;
|
|
344
|
+
$[4] = t2;
|
|
345
|
+
$[5] = t3;
|
|
346
|
+
} else {
|
|
347
|
+
t2 = $[4];
|
|
348
|
+
t3 = $[5];
|
|
349
|
+
}
|
|
350
|
+
useEffect(t2, t3);
|
|
351
|
+
let t4;
|
|
352
|
+
if ($[6] !== user) {
|
|
353
|
+
t4 = {
|
|
354
|
+
user,
|
|
355
|
+
setUser
|
|
356
|
+
};
|
|
357
|
+
$[6] = user;
|
|
358
|
+
$[7] = t4;
|
|
359
|
+
} else {
|
|
360
|
+
t4 = $[7];
|
|
361
|
+
}
|
|
362
|
+
let t5;
|
|
363
|
+
if ($[8] !== children || $[9] !== t4) {
|
|
364
|
+
t5 = /* @__PURE__ */ jsxRuntimeExports.jsx(UserContext.Provider, { value: t4, children });
|
|
365
|
+
$[8] = children;
|
|
366
|
+
$[9] = t4;
|
|
367
|
+
$[10] = t5;
|
|
368
|
+
} else {
|
|
369
|
+
t5 = $[10];
|
|
370
|
+
}
|
|
371
|
+
return t5;
|
|
225
372
|
}
|
|
226
373
|
const AppTitle = () => {
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
374
|
+
const $ = compilerRuntimeExports.c(1);
|
|
375
|
+
let t0;
|
|
376
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
377
|
+
t0 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Stack, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
|
|
378
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
|
|
379
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "h6", children: clientEnv.VITE_APP_TITLE }),
|
|
380
|
+
false
|
|
381
|
+
] });
|
|
382
|
+
$[0] = t0;
|
|
383
|
+
} else {
|
|
384
|
+
t0 = $[0];
|
|
385
|
+
}
|
|
386
|
+
return t0;
|
|
232
387
|
};
|
|
233
388
|
const ICON_SIZE = 34;
|
|
234
|
-
const StyledNavButton = styled(ListItemButton)(({
|
|
389
|
+
const StyledNavButton = styled(ListItemButton)(({
|
|
390
|
+
theme
|
|
391
|
+
}) => ({
|
|
235
392
|
borderRadius: 8,
|
|
236
393
|
"&.Mui-selected": {
|
|
237
394
|
"& .MuiListItemIcon-root, & .MuiTypography-root, & .MuiSvgIcon-root": {
|
|
@@ -251,7 +408,9 @@ const StyledNavButton = styled(ListItemButton)(({ theme }) => ({
|
|
|
251
408
|
backgroundColor: (theme.vars ?? theme).palette.action.active
|
|
252
409
|
}
|
|
253
410
|
}));
|
|
254
|
-
const StyledRouterButton = styled(RouterListItemButton)(({
|
|
411
|
+
const StyledRouterButton = styled(RouterListItemButton)(({
|
|
412
|
+
theme
|
|
413
|
+
}) => ({
|
|
255
414
|
borderRadius: 8,
|
|
256
415
|
"&.Mui-selected": {
|
|
257
416
|
"& .MuiListItemIcon-root, & .MuiTypography-root, & .MuiSvgIcon-root": {
|
|
@@ -271,379 +430,1265 @@ const StyledRouterButton = styled(RouterListItemButton)(({ theme }) => ({
|
|
|
271
430
|
backgroundColor: (theme.vars ?? theme).palette.action.active
|
|
272
431
|
}
|
|
273
432
|
}));
|
|
274
|
-
const IconOrAvatar = (
|
|
433
|
+
const IconOrAvatar = (t0) => {
|
|
434
|
+
const $ = compilerRuntimeExports.c(17);
|
|
435
|
+
const {
|
|
436
|
+
item,
|
|
437
|
+
collapsed
|
|
438
|
+
} = t0;
|
|
275
439
|
if (item.icon || collapsed) {
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
440
|
+
let t1;
|
|
441
|
+
if ($[0] !== collapsed) {
|
|
442
|
+
t1 = collapsed ? {
|
|
443
|
+
position: "absolute",
|
|
444
|
+
left: "50%",
|
|
445
|
+
top: "calc(50% - 6px)",
|
|
446
|
+
transform: "translate(-50%, -50%)"
|
|
447
|
+
} : {};
|
|
448
|
+
$[0] = collapsed;
|
|
449
|
+
$[1] = t1;
|
|
450
|
+
} else {
|
|
451
|
+
t1 = $[1];
|
|
452
|
+
}
|
|
453
|
+
let t2;
|
|
454
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
455
|
+
t2 = {
|
|
456
|
+
display: "flex",
|
|
457
|
+
alignItems: "center",
|
|
458
|
+
justifyContent: "center",
|
|
459
|
+
minWidth: ICON_SIZE
|
|
460
|
+
};
|
|
461
|
+
$[2] = t2;
|
|
462
|
+
} else {
|
|
463
|
+
t2 = $[2];
|
|
464
|
+
}
|
|
465
|
+
const t3 = item.icon ?? null;
|
|
466
|
+
let t4;
|
|
467
|
+
if ($[3] !== collapsed || $[4] !== item.icon || $[5] !== item.title) {
|
|
468
|
+
t4 = !item.icon && collapsed ? /* @__PURE__ */ jsxRuntimeExports.jsx(Avatar, { sx: {
|
|
469
|
+
width: ICON_SIZE - 7,
|
|
470
|
+
height: ICON_SIZE - 7,
|
|
471
|
+
fontSize: 12
|
|
472
|
+
}, children: item.title }) : null;
|
|
473
|
+
$[3] = collapsed;
|
|
474
|
+
$[4] = item.icon;
|
|
475
|
+
$[5] = item.title;
|
|
476
|
+
$[6] = t4;
|
|
477
|
+
} else {
|
|
478
|
+
t4 = $[6];
|
|
479
|
+
}
|
|
480
|
+
let t5;
|
|
481
|
+
if ($[7] !== t3 || $[8] !== t4) {
|
|
482
|
+
t5 = /* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemIcon, { sx: t2, children: [
|
|
483
|
+
t3,
|
|
484
|
+
t4
|
|
485
|
+
] });
|
|
486
|
+
$[7] = t3;
|
|
487
|
+
$[8] = t4;
|
|
488
|
+
$[9] = t5;
|
|
489
|
+
} else {
|
|
490
|
+
t5 = $[9];
|
|
491
|
+
}
|
|
492
|
+
let t6;
|
|
493
|
+
if ($[10] !== collapsed || $[11] !== item.title) {
|
|
494
|
+
t6 = collapsed ? /* @__PURE__ */ jsxRuntimeExports.jsx(Typography$1, { variant: "caption", sx: {
|
|
495
|
+
position: "absolute",
|
|
496
|
+
bottom: -18,
|
|
497
|
+
left: "50%",
|
|
498
|
+
transform: "translateX(-50%)",
|
|
499
|
+
fontSize: 10,
|
|
500
|
+
fontWeight: 500,
|
|
501
|
+
textAlign: "center",
|
|
502
|
+
whiteSpace: "nowrap",
|
|
503
|
+
overflow: "hidden",
|
|
504
|
+
textOverflow: "ellipsis",
|
|
505
|
+
maxWidth: MINI_WIDTH - 28
|
|
506
|
+
}, children: item.title }) : null;
|
|
507
|
+
$[10] = collapsed;
|
|
508
|
+
$[11] = item.title;
|
|
509
|
+
$[12] = t6;
|
|
510
|
+
} else {
|
|
511
|
+
t6 = $[12];
|
|
512
|
+
}
|
|
513
|
+
let t7;
|
|
514
|
+
if ($[13] !== t1 || $[14] !== t5 || $[15] !== t6) {
|
|
515
|
+
t7 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { sx: t1, children: [
|
|
516
|
+
t5,
|
|
517
|
+
t6
|
|
518
|
+
] });
|
|
519
|
+
$[13] = t1;
|
|
520
|
+
$[14] = t5;
|
|
521
|
+
$[15] = t6;
|
|
522
|
+
$[16] = t7;
|
|
523
|
+
} else {
|
|
524
|
+
t7 = $[16];
|
|
525
|
+
}
|
|
526
|
+
return t7;
|
|
302
527
|
}
|
|
303
528
|
return null;
|
|
304
529
|
};
|
|
305
|
-
const MiniPopover = (
|
|
306
|
-
|
|
307
|
-
{
|
|
530
|
+
const MiniPopover = (t0) => {
|
|
531
|
+
const $ = compilerRuntimeExports.c(10);
|
|
532
|
+
const {
|
|
308
533
|
open,
|
|
309
534
|
anchorEl,
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
{
|
|
319
|
-
sx: {
|
|
320
|
-
pt: 0.5,
|
|
321
|
-
pb: 0.5,
|
|
322
|
-
maxHeight: "min(calc(100vh - 100px), 560px)",
|
|
323
|
-
overflowY: "auto",
|
|
324
|
-
overscrollBehavior: "contain"
|
|
325
|
-
},
|
|
326
|
-
children
|
|
535
|
+
children
|
|
536
|
+
} = t0;
|
|
537
|
+
let t1;
|
|
538
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
539
|
+
t1 = {
|
|
540
|
+
name: "offset",
|
|
541
|
+
options: {
|
|
542
|
+
offset: [6, 0]
|
|
327
543
|
}
|
|
328
|
-
|
|
544
|
+
};
|
|
545
|
+
$[0] = t1;
|
|
546
|
+
} else {
|
|
547
|
+
t1 = $[0];
|
|
548
|
+
}
|
|
549
|
+
let t2;
|
|
550
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
551
|
+
t2 = {
|
|
552
|
+
name: "preventOverflow",
|
|
553
|
+
options: {
|
|
554
|
+
padding: 8
|
|
555
|
+
}
|
|
556
|
+
};
|
|
557
|
+
$[1] = t2;
|
|
558
|
+
} else {
|
|
559
|
+
t2 = $[1];
|
|
560
|
+
}
|
|
561
|
+
let t3;
|
|
562
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
563
|
+
t3 = [t1, t2, {
|
|
564
|
+
name: "flip",
|
|
565
|
+
options: {
|
|
566
|
+
fallbackPlacements: ["right-end", "left-start"]
|
|
567
|
+
}
|
|
568
|
+
}];
|
|
569
|
+
$[2] = t3;
|
|
570
|
+
} else {
|
|
571
|
+
t3 = $[2];
|
|
572
|
+
}
|
|
573
|
+
let t4;
|
|
574
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
575
|
+
t4 = {
|
|
576
|
+
pt: 0.5,
|
|
577
|
+
pb: 0.5,
|
|
578
|
+
maxHeight: "min(calc(100vh - 100px), 560px)",
|
|
579
|
+
overflowY: "auto",
|
|
580
|
+
overscrollBehavior: "contain"
|
|
581
|
+
};
|
|
582
|
+
$[3] = t4;
|
|
583
|
+
} else {
|
|
584
|
+
t4 = $[3];
|
|
585
|
+
}
|
|
586
|
+
let t5;
|
|
587
|
+
if ($[4] !== children) {
|
|
588
|
+
t5 = /* @__PURE__ */ jsxRuntimeExports.jsx(Paper, { sx: t4, children });
|
|
589
|
+
$[4] = children;
|
|
590
|
+
$[5] = t5;
|
|
591
|
+
} else {
|
|
592
|
+
t5 = $[5];
|
|
329
593
|
}
|
|
330
|
-
|
|
331
|
-
|
|
594
|
+
let t6;
|
|
595
|
+
if ($[6] !== anchorEl || $[7] !== open || $[8] !== t5) {
|
|
596
|
+
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(Popper, { open, anchorEl, placement: "right-start", modifiers: t3, children: t5 });
|
|
597
|
+
$[6] = anchorEl;
|
|
598
|
+
$[7] = open;
|
|
599
|
+
$[8] = t5;
|
|
600
|
+
$[9] = t6;
|
|
601
|
+
} else {
|
|
602
|
+
t6 = $[9];
|
|
603
|
+
}
|
|
604
|
+
return t6;
|
|
605
|
+
};
|
|
606
|
+
const NavigationListItem = (t0) => {
|
|
607
|
+
const $ = compilerRuntimeExports.c(57);
|
|
608
|
+
const {
|
|
609
|
+
item,
|
|
610
|
+
isOpen,
|
|
611
|
+
selected,
|
|
612
|
+
disabled,
|
|
613
|
+
collapsed,
|
|
614
|
+
isSidebarFullyExpanded: t1,
|
|
615
|
+
isSidebarFullyCollapsed,
|
|
616
|
+
onClick,
|
|
617
|
+
renderNested,
|
|
618
|
+
onClose
|
|
619
|
+
} = t0;
|
|
620
|
+
const isSidebarFullyExpanded = t1 === void 0 ? true : t1;
|
|
332
621
|
const [hoveredPopoverItem, setHoveredPopoverItem] = useState(null);
|
|
333
622
|
const [anchorElement, setAnchorElement] = useState(null);
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
623
|
+
let t2;
|
|
624
|
+
if ($[0] !== collapsed || $[1] !== isOpen || $[2] !== isSidebarFullyCollapsed || $[3] !== isSidebarFullyExpanded || $[4] !== item.children) {
|
|
625
|
+
t2 = () => {
|
|
626
|
+
if (collapsed && isSidebarFullyCollapsed && item.children) {
|
|
627
|
+
return {
|
|
628
|
+
fontSize: 18,
|
|
629
|
+
position: "absolute",
|
|
630
|
+
top: "41.5%",
|
|
631
|
+
right: "2px",
|
|
632
|
+
transform: "translateY(-50%) rotate(-90deg)"
|
|
633
|
+
};
|
|
634
|
+
}
|
|
635
|
+
if (!collapsed && isSidebarFullyExpanded && item.children) {
|
|
636
|
+
return {
|
|
637
|
+
ml: 0.5,
|
|
638
|
+
transform: `rotate(${isOpen ? 0 : -90}deg)`
|
|
639
|
+
};
|
|
640
|
+
}
|
|
345
641
|
return {
|
|
346
|
-
|
|
347
|
-
transform: `rotate(${isOpen ? 0 : -90}deg)`
|
|
642
|
+
display: "none"
|
|
348
643
|
};
|
|
349
|
-
}
|
|
350
|
-
|
|
351
|
-
|
|
644
|
+
};
|
|
645
|
+
$[0] = collapsed;
|
|
646
|
+
$[1] = isOpen;
|
|
647
|
+
$[2] = isSidebarFullyCollapsed;
|
|
648
|
+
$[3] = isSidebarFullyExpanded;
|
|
649
|
+
$[4] = item.children;
|
|
650
|
+
$[5] = t2;
|
|
651
|
+
} else {
|
|
652
|
+
t2 = $[5];
|
|
653
|
+
}
|
|
654
|
+
const chevronSx = t2;
|
|
352
655
|
const shouldJustExpand = item.children && !collapsed;
|
|
353
|
-
const
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
656
|
+
const t3 = collapsed ? 60 : 48;
|
|
657
|
+
let t4;
|
|
658
|
+
if ($[6] !== t3) {
|
|
659
|
+
t4 = {
|
|
660
|
+
px: 1.4,
|
|
661
|
+
height: t3
|
|
662
|
+
};
|
|
663
|
+
$[6] = t3;
|
|
664
|
+
$[7] = t4;
|
|
665
|
+
} else {
|
|
666
|
+
t4 = $[7];
|
|
667
|
+
}
|
|
668
|
+
let t5;
|
|
669
|
+
if ($[8] !== disabled || $[9] !== selected || $[10] !== t4) {
|
|
670
|
+
t5 = {
|
|
671
|
+
selected,
|
|
672
|
+
disabled,
|
|
673
|
+
sx: t4
|
|
674
|
+
};
|
|
675
|
+
$[8] = disabled;
|
|
676
|
+
$[9] = selected;
|
|
677
|
+
$[10] = t4;
|
|
678
|
+
$[11] = t5;
|
|
679
|
+
} else {
|
|
680
|
+
t5 = $[11];
|
|
681
|
+
}
|
|
682
|
+
const buttonProps = t5;
|
|
683
|
+
let t6;
|
|
684
|
+
if ($[12] !== collapsed || $[13] !== item) {
|
|
685
|
+
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(IconOrAvatar, { item, collapsed });
|
|
686
|
+
$[12] = collapsed;
|
|
687
|
+
$[13] = item;
|
|
688
|
+
$[14] = t6;
|
|
689
|
+
} else {
|
|
690
|
+
t6 = $[14];
|
|
691
|
+
}
|
|
692
|
+
let t7;
|
|
693
|
+
if ($[15] !== collapsed || $[16] !== item.title) {
|
|
694
|
+
t7 = !collapsed && /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText, { primary: item.title, slotProps: {
|
|
695
|
+
primary: {
|
|
696
|
+
noWrap: true,
|
|
697
|
+
title: item.title
|
|
366
698
|
}
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
}
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
699
|
+
}, sx: {
|
|
700
|
+
ml: 1.2,
|
|
701
|
+
flex: 1,
|
|
702
|
+
minWidth: 0,
|
|
703
|
+
"& .MuiTypography-root": {
|
|
704
|
+
whiteSpace: "nowrap",
|
|
705
|
+
overflow: "hidden",
|
|
706
|
+
textOverflow: "ellipsis"
|
|
707
|
+
}
|
|
708
|
+
} });
|
|
709
|
+
$[15] = collapsed;
|
|
710
|
+
$[16] = item.title;
|
|
711
|
+
$[17] = t7;
|
|
712
|
+
} else {
|
|
713
|
+
t7 = $[17];
|
|
714
|
+
}
|
|
715
|
+
let t8;
|
|
716
|
+
if ($[18] !== chevronSx || $[19] !== item.children) {
|
|
717
|
+
t8 = item.children ? /* @__PURE__ */ jsxRuntimeExports.jsx(ExpandMoreIcon, { sx: chevronSx }) : null;
|
|
718
|
+
$[18] = chevronSx;
|
|
719
|
+
$[19] = item.children;
|
|
720
|
+
$[20] = t8;
|
|
721
|
+
} else {
|
|
722
|
+
t8 = $[20];
|
|
723
|
+
}
|
|
724
|
+
let t9;
|
|
725
|
+
if ($[21] !== t6 || $[22] !== t7 || $[23] !== t8) {
|
|
726
|
+
t9 = /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
|
|
727
|
+
t6,
|
|
728
|
+
t7,
|
|
729
|
+
t8
|
|
730
|
+
] });
|
|
731
|
+
$[21] = t6;
|
|
732
|
+
$[22] = t7;
|
|
733
|
+
$[23] = t8;
|
|
734
|
+
$[24] = t9;
|
|
735
|
+
} else {
|
|
736
|
+
t9 = $[24];
|
|
737
|
+
}
|
|
738
|
+
const buttonContent = t9;
|
|
739
|
+
let t10;
|
|
740
|
+
if ($[25] !== collapsed || $[26] !== item.children || $[27] !== item.title) {
|
|
741
|
+
t10 = item.children && collapsed ? {
|
|
742
|
+
onMouseEnter: (event) => {
|
|
743
|
+
setAnchorElement(event.currentTarget);
|
|
744
|
+
setHoveredPopoverItem(item.title);
|
|
745
|
+
},
|
|
746
|
+
onMouseLeave: () => {
|
|
747
|
+
setHoveredPopoverItem(null);
|
|
748
|
+
}
|
|
749
|
+
} : {};
|
|
750
|
+
$[25] = collapsed;
|
|
751
|
+
$[26] = item.children;
|
|
752
|
+
$[27] = item.title;
|
|
753
|
+
$[28] = t10;
|
|
754
|
+
} else {
|
|
755
|
+
t10 = $[28];
|
|
756
|
+
}
|
|
757
|
+
let t11;
|
|
758
|
+
if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
|
|
759
|
+
t11 = {
|
|
760
|
+
py: 0,
|
|
761
|
+
px: 1,
|
|
762
|
+
overflowX: "hidden"
|
|
763
|
+
};
|
|
764
|
+
$[29] = t11;
|
|
765
|
+
} else {
|
|
766
|
+
t11 = $[29];
|
|
767
|
+
}
|
|
768
|
+
let t12;
|
|
769
|
+
if ($[30] !== buttonContent || $[31] !== buttonProps || $[32] !== item || $[33] !== onClick || $[34] !== onClose || $[35] !== shouldJustExpand) {
|
|
770
|
+
t12 = shouldJustExpand ? /* @__PURE__ */ jsxRuntimeExports.jsx(StyledNavButton, { ...buttonProps, onClick: () => onClick?.(item), children: buttonContent }) : /* @__PURE__ */ jsxRuntimeExports.jsx(StyledRouterButton, { ...buttonProps, to: item.to, href: item.href, params: item.params, search: item.search, onClick: onClose, children: buttonContent });
|
|
771
|
+
$[30] = buttonContent;
|
|
772
|
+
$[31] = buttonProps;
|
|
773
|
+
$[32] = item;
|
|
774
|
+
$[33] = onClick;
|
|
775
|
+
$[34] = onClose;
|
|
776
|
+
$[35] = shouldJustExpand;
|
|
777
|
+
$[36] = t12;
|
|
778
|
+
} else {
|
|
779
|
+
t12 = $[36];
|
|
780
|
+
}
|
|
781
|
+
let t13;
|
|
782
|
+
if ($[37] !== anchorElement || $[38] !== collapsed || $[39] !== hoveredPopoverItem || $[40] !== item.children || $[41] !== item.title || $[42] !== renderNested) {
|
|
783
|
+
t13 = item.children && collapsed ? /* @__PURE__ */ jsxRuntimeExports.jsx(MiniPopover, { open: item.title === hoveredPopoverItem, anchorEl: anchorElement, children: renderNested?.(item.children) }) : null;
|
|
784
|
+
$[37] = anchorElement;
|
|
785
|
+
$[38] = collapsed;
|
|
786
|
+
$[39] = hoveredPopoverItem;
|
|
787
|
+
$[40] = item.children;
|
|
788
|
+
$[41] = item.title;
|
|
789
|
+
$[42] = renderNested;
|
|
790
|
+
$[43] = t13;
|
|
791
|
+
} else {
|
|
792
|
+
t13 = $[43];
|
|
793
|
+
}
|
|
794
|
+
let t14;
|
|
795
|
+
if ($[44] !== t10 || $[45] !== t12 || $[46] !== t13) {
|
|
796
|
+
t14 = /* @__PURE__ */ jsxRuntimeExports.jsxs(ListItem, { ...t10, sx: t11, children: [
|
|
797
|
+
t12,
|
|
798
|
+
t13
|
|
799
|
+
] });
|
|
800
|
+
$[44] = t10;
|
|
801
|
+
$[45] = t12;
|
|
802
|
+
$[46] = t13;
|
|
803
|
+
$[47] = t14;
|
|
804
|
+
} else {
|
|
805
|
+
t14 = $[47];
|
|
806
|
+
}
|
|
807
|
+
const listItem = t14;
|
|
808
|
+
let t15;
|
|
809
|
+
if ($[48] !== collapsed || $[49] !== isOpen || $[50] !== item.children || $[51] !== renderNested) {
|
|
810
|
+
t15 = item.children && !collapsed ? /* @__PURE__ */ jsxRuntimeExports.jsx(Collapse, { in: isOpen, timeout: "auto", unmountOnExit: true, children: renderNested?.(item.children) }) : null;
|
|
811
|
+
$[48] = collapsed;
|
|
812
|
+
$[49] = isOpen;
|
|
813
|
+
$[50] = item.children;
|
|
814
|
+
$[51] = renderNested;
|
|
815
|
+
$[52] = t15;
|
|
816
|
+
} else {
|
|
817
|
+
t15 = $[52];
|
|
818
|
+
}
|
|
819
|
+
let t16;
|
|
820
|
+
if ($[53] !== item.to || $[54] !== listItem || $[55] !== t15) {
|
|
821
|
+
t16 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
|
|
822
|
+
listItem,
|
|
823
|
+
t15
|
|
824
|
+
] }, item.to);
|
|
825
|
+
$[53] = item.to;
|
|
826
|
+
$[54] = listItem;
|
|
827
|
+
$[55] = t15;
|
|
828
|
+
$[56] = t16;
|
|
829
|
+
} else {
|
|
830
|
+
t16 = $[56];
|
|
831
|
+
}
|
|
832
|
+
return t16;
|
|
404
833
|
};
|
|
405
834
|
const isPageItem = (item) => !("kind" in item);
|
|
406
835
|
const isDivider = (item) => "kind" in item && item.kind === "divider";
|
|
407
836
|
const isHeader = (item) => "kind" in item && item.kind === "header";
|
|
408
|
-
const NavigationList = (
|
|
409
|
-
const
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
837
|
+
const NavigationList = (t0) => {
|
|
838
|
+
const $ = compilerRuntimeExports.c(31);
|
|
839
|
+
const {
|
|
840
|
+
subNavigation,
|
|
841
|
+
depth: t1,
|
|
842
|
+
collapsed,
|
|
843
|
+
isPopover,
|
|
844
|
+
isSidebarFullyExpanded: t2,
|
|
845
|
+
isSidebarFullyCollapsed,
|
|
846
|
+
expandedWidth,
|
|
847
|
+
renderItem,
|
|
848
|
+
activePath,
|
|
849
|
+
onNavigate,
|
|
850
|
+
onClose
|
|
851
|
+
} = t0;
|
|
852
|
+
const depth = t1 === void 0 ? 0 : t1;
|
|
853
|
+
const isSidebarFullyExpanded = t2 === void 0 ? true : t2;
|
|
854
|
+
let t3;
|
|
855
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
856
|
+
t3 = [];
|
|
857
|
+
$[0] = t3;
|
|
858
|
+
} else {
|
|
859
|
+
t3 = $[0];
|
|
860
|
+
}
|
|
861
|
+
const [openKeys, setOpenKeys] = useState(t3);
|
|
862
|
+
let t4;
|
|
863
|
+
let t5;
|
|
864
|
+
if ($[1] !== collapsed) {
|
|
865
|
+
t4 = () => {
|
|
866
|
+
if (collapsed) {
|
|
867
|
+
setOpenKeys([]);
|
|
868
|
+
}
|
|
869
|
+
};
|
|
870
|
+
t5 = [collapsed];
|
|
871
|
+
$[1] = collapsed;
|
|
872
|
+
$[2] = t4;
|
|
873
|
+
$[3] = t5;
|
|
874
|
+
} else {
|
|
875
|
+
t4 = $[2];
|
|
876
|
+
t5 = $[3];
|
|
877
|
+
}
|
|
878
|
+
useEffect(t4, t5);
|
|
879
|
+
let t6;
|
|
880
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
881
|
+
t6 = (key) => setOpenKeys((previous) => previous.includes(key) ? previous.filter((k) => k !== key) : [...previous, key]);
|
|
882
|
+
$[4] = t6;
|
|
883
|
+
} else {
|
|
884
|
+
t6 = $[4];
|
|
885
|
+
}
|
|
886
|
+
const toggleKey = t6;
|
|
887
|
+
let t7;
|
|
888
|
+
if ($[5] !== activePath || $[6] !== collapsed || $[7] !== depth || $[8] !== expandedWidth || $[9] !== onClose || $[10] !== onNavigate) {
|
|
889
|
+
t7 = (children) => /* @__PURE__ */ jsxRuntimeExports.jsx(NavigationList, { subNavigation: children, depth: depth + 1, isPopover: collapsed, expandedWidth, activePath, onNavigate, onClose });
|
|
890
|
+
$[5] = activePath;
|
|
891
|
+
$[6] = collapsed;
|
|
892
|
+
$[7] = depth;
|
|
893
|
+
$[8] = expandedWidth;
|
|
894
|
+
$[9] = onClose;
|
|
895
|
+
$[10] = onNavigate;
|
|
896
|
+
$[11] = t7;
|
|
897
|
+
} else {
|
|
898
|
+
t7 = $[11];
|
|
899
|
+
}
|
|
900
|
+
const renderNested = t7;
|
|
901
|
+
let t8;
|
|
902
|
+
if ($[12] !== activePath || $[13] !== collapsed || $[14] !== depth || $[15] !== expandedWidth || $[16] !== isPopover || $[17] !== isSidebarFullyCollapsed || $[18] !== isSidebarFullyExpanded || $[19] !== onClose || $[20] !== openKeys || $[21] !== renderItem || $[22] !== renderNested || $[23] !== subNavigation) {
|
|
903
|
+
const filteredNavigation = subNavigation.filter(_temp$3);
|
|
904
|
+
const t9 = isPopover && depth === 1 ? 0.5 : 0;
|
|
905
|
+
const t10 = depth === 0 && !isPopover ? 4 : 0.5;
|
|
906
|
+
const t11 = (isPopover ? 1 : 2) * (isPopover ? depth - 1 : depth);
|
|
907
|
+
const t12 = isPopover && depth === 1 ? EXPANDED_WIDTH : "auto";
|
|
908
|
+
const t13 = collapsed ? MINI_WIDTH : "auto";
|
|
909
|
+
let t14;
|
|
910
|
+
if ($[25] !== t10 || $[26] !== t11 || $[27] !== t12 || $[28] !== t13 || $[29] !== t9) {
|
|
911
|
+
t14 = {
|
|
431
912
|
padding: 0,
|
|
432
|
-
mt:
|
|
433
|
-
mb:
|
|
434
|
-
pl:
|
|
435
|
-
minWidth:
|
|
436
|
-
width:
|
|
437
|
-
}
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
913
|
+
mt: t9,
|
|
914
|
+
mb: t10,
|
|
915
|
+
pl: t11,
|
|
916
|
+
minWidth: t12,
|
|
917
|
+
width: t13
|
|
918
|
+
};
|
|
919
|
+
$[25] = t10;
|
|
920
|
+
$[26] = t11;
|
|
921
|
+
$[27] = t12;
|
|
922
|
+
$[28] = t13;
|
|
923
|
+
$[29] = t9;
|
|
924
|
+
$[30] = t14;
|
|
925
|
+
} else {
|
|
926
|
+
t14 = $[30];
|
|
927
|
+
}
|
|
928
|
+
t8 = /* @__PURE__ */ jsxRuntimeExports.jsx(List, { sx: t14, children: filteredNavigation.map((navItem, index) => {
|
|
929
|
+
if (isHeader(navItem)) {
|
|
930
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ListSubheader, { sx: {
|
|
931
|
+
fontSize: 12,
|
|
932
|
+
fontWeight: "700",
|
|
933
|
+
height: collapsed ? 0 : 40,
|
|
934
|
+
px: 2,
|
|
935
|
+
minWidth: expandedWidth,
|
|
936
|
+
overflow: "hidden",
|
|
937
|
+
textOverflow: "ellipsis",
|
|
938
|
+
whiteSpace: "nowrap",
|
|
939
|
+
zIndex: 2,
|
|
940
|
+
bgcolor: "transparent",
|
|
941
|
+
position: "static"
|
|
942
|
+
}, children: navItem.title }, `subheader-${depth}-${index}`);
|
|
943
|
+
}
|
|
944
|
+
if (isDivider(navItem)) {
|
|
945
|
+
const nextItem = filteredNavigation[index + 1];
|
|
946
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx("li", { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Divider, { sx: {
|
|
947
|
+
mx: 1,
|
|
948
|
+
mt: 1,
|
|
949
|
+
mb: isHeader(nextItem) && !collapsed ? 0 : 1
|
|
950
|
+
} }) }, `divider-${depth}-${index}`);
|
|
951
|
+
}
|
|
952
|
+
if (!isPageItem(navItem)) {
|
|
953
|
+
return null;
|
|
954
|
+
}
|
|
955
|
+
const key_0 = `item-${depth}-${index}`;
|
|
956
|
+
const uniqueItemKey = `${depth}-${index}-${navItem.title}`;
|
|
957
|
+
if (renderItem) {
|
|
958
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Fragment, { children: renderItem(navItem, {
|
|
959
|
+
collapsed: !!collapsed
|
|
960
|
+
}) }, key_0);
|
|
961
|
+
}
|
|
962
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(NavigationListItem, { item: navItem, isOpen: openKeys.includes(uniqueItemKey), selected: activePath === navItem.to, collapsed, isSidebarFullyExpanded, isSidebarFullyCollapsed, onClick: navItem.children && !collapsed ? () => toggleKey(uniqueItemKey) : void 0, renderNested, onClose }, key_0);
|
|
963
|
+
}) });
|
|
964
|
+
$[12] = activePath;
|
|
965
|
+
$[13] = collapsed;
|
|
966
|
+
$[14] = depth;
|
|
967
|
+
$[15] = expandedWidth;
|
|
968
|
+
$[16] = isPopover;
|
|
969
|
+
$[17] = isSidebarFullyCollapsed;
|
|
970
|
+
$[18] = isSidebarFullyExpanded;
|
|
971
|
+
$[19] = onClose;
|
|
972
|
+
$[20] = openKeys;
|
|
973
|
+
$[21] = renderItem;
|
|
974
|
+
$[22] = renderNested;
|
|
975
|
+
$[23] = subNavigation;
|
|
976
|
+
$[24] = t8;
|
|
977
|
+
} else {
|
|
978
|
+
t8 = $[24];
|
|
979
|
+
}
|
|
980
|
+
return t8;
|
|
487
981
|
};
|
|
982
|
+
function _temp$3(nav) {
|
|
983
|
+
return !nav.hidden;
|
|
984
|
+
}
|
|
488
985
|
const MINI_WIDTH = 84;
|
|
489
986
|
const EXPANDED_WIDTH = 320;
|
|
490
987
|
const TOOLBAR_HEIGHT = 64;
|
|
491
|
-
const NavigationRail = (
|
|
988
|
+
const NavigationRail = (t0) => {
|
|
989
|
+
const $ = compilerRuntimeExports.c(29);
|
|
990
|
+
const {
|
|
991
|
+
navigation,
|
|
992
|
+
expanded,
|
|
993
|
+
setExpanded
|
|
994
|
+
} = t0;
|
|
492
995
|
const navigate = useNavigate();
|
|
493
996
|
const routerState = useRouterState();
|
|
494
997
|
const theme = useTheme();
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
998
|
+
let t1;
|
|
999
|
+
if ($[0] !== theme.breakpoints) {
|
|
1000
|
+
t1 = theme.breakpoints.up("sm");
|
|
1001
|
+
$[0] = theme.breakpoints;
|
|
1002
|
+
$[1] = t1;
|
|
1003
|
+
} else {
|
|
1004
|
+
t1 = $[1];
|
|
1005
|
+
}
|
|
1006
|
+
const showPermanent = useMediaQuery(t1);
|
|
1007
|
+
let t2;
|
|
1008
|
+
if ($[2] !== expanded || $[3] !== navigate || $[4] !== navigation || $[5] !== routerState.location.pathname || $[6] !== setExpanded || $[7] !== showPermanent) {
|
|
1009
|
+
t2 = (collapsed) => /* @__PURE__ */ jsxRuntimeExports.jsx(Box, { component: "nav", sx: {
|
|
1010
|
+
height: "100%",
|
|
1011
|
+
display: "flex",
|
|
1012
|
+
flexDirection: "column",
|
|
1013
|
+
justifyContent: "space-between",
|
|
1014
|
+
overflow: "auto",
|
|
1015
|
+
scrollbarGutter: collapsed ? "stable" : "auto",
|
|
1016
|
+
overflowX: "hidden",
|
|
1017
|
+
pt: navigation[0] && isHeader(navigation[0]) && !collapsed ? 0 : 2
|
|
1018
|
+
}, children: /* @__PURE__ */ jsxRuntimeExports.jsx(NavigationList, { subNavigation: navigation, collapsed, isSidebarFullyExpanded: expanded, isSidebarFullyCollapsed: !expanded, expandedWidth: EXPANDED_WIDTH, activePath: routerState.location.pathname, onNavigate: navigate, onClose: !showPermanent ? () => setExpanded(false) : void 0 }) });
|
|
1019
|
+
$[2] = expanded;
|
|
1020
|
+
$[3] = navigate;
|
|
1021
|
+
$[4] = navigation;
|
|
1022
|
+
$[5] = routerState.location.pathname;
|
|
1023
|
+
$[6] = setExpanded;
|
|
1024
|
+
$[7] = showPermanent;
|
|
1025
|
+
$[8] = t2;
|
|
1026
|
+
} else {
|
|
1027
|
+
t2 = $[8];
|
|
1028
|
+
}
|
|
1029
|
+
const drawerContent = t2;
|
|
1030
|
+
if (showPermanent) {
|
|
1031
|
+
const t32 = expanded ? EXPANDED_WIDTH : MINI_WIDTH;
|
|
1032
|
+
const t42 = expanded ? EXPANDED_WIDTH : MINI_WIDTH;
|
|
1033
|
+
let t52;
|
|
1034
|
+
if ($[9] !== t42) {
|
|
1035
|
+
t52 = {
|
|
1036
|
+
position: "absolute",
|
|
1037
|
+
top: `${TOOLBAR_HEIGHT}px`,
|
|
1038
|
+
height: `calc(100% - ${TOOLBAR_HEIGHT}px)`,
|
|
1039
|
+
width: t42,
|
|
1040
|
+
borderTop: "1px solid",
|
|
1041
|
+
borderColor: "var(--mui-palette-divider)"
|
|
1042
|
+
};
|
|
1043
|
+
$[9] = t42;
|
|
1044
|
+
$[10] = t52;
|
|
1045
|
+
} else {
|
|
1046
|
+
t52 = $[10];
|
|
1047
|
+
}
|
|
1048
|
+
let t62;
|
|
1049
|
+
if ($[11] !== t32 || $[12] !== t52) {
|
|
1050
|
+
t62 = {
|
|
1051
|
+
width: t32,
|
|
1052
|
+
"& .MuiDrawer-paper": t52
|
|
1053
|
+
};
|
|
1054
|
+
$[11] = t32;
|
|
1055
|
+
$[12] = t52;
|
|
1056
|
+
$[13] = t62;
|
|
1057
|
+
} else {
|
|
1058
|
+
t62 = $[13];
|
|
1059
|
+
}
|
|
1060
|
+
const t7 = !expanded;
|
|
1061
|
+
let t8;
|
|
1062
|
+
if ($[14] !== drawerContent || $[15] !== t7) {
|
|
1063
|
+
t8 = drawerContent(t7);
|
|
1064
|
+
$[14] = drawerContent;
|
|
1065
|
+
$[15] = t7;
|
|
1066
|
+
$[16] = t8;
|
|
1067
|
+
} else {
|
|
1068
|
+
t8 = $[16];
|
|
1069
|
+
}
|
|
1070
|
+
let t9;
|
|
1071
|
+
if ($[17] !== t62 || $[18] !== t8) {
|
|
1072
|
+
t9 = /* @__PURE__ */ jsxRuntimeExports.jsx(Drawer, { variant: "permanent", sx: t62, children: t8 });
|
|
1073
|
+
$[17] = t62;
|
|
1074
|
+
$[18] = t8;
|
|
1075
|
+
$[19] = t9;
|
|
1076
|
+
} else {
|
|
1077
|
+
t9 = $[19];
|
|
1078
|
+
}
|
|
1079
|
+
return t9;
|
|
1080
|
+
}
|
|
1081
|
+
let t3;
|
|
1082
|
+
if ($[20] !== setExpanded) {
|
|
1083
|
+
t3 = () => setExpanded(false);
|
|
1084
|
+
$[20] = setExpanded;
|
|
1085
|
+
$[21] = t3;
|
|
1086
|
+
} else {
|
|
1087
|
+
t3 = $[21];
|
|
1088
|
+
}
|
|
1089
|
+
const t4 = !expanded;
|
|
1090
|
+
let t5;
|
|
1091
|
+
if ($[22] !== drawerContent || $[23] !== t4) {
|
|
1092
|
+
t5 = drawerContent(t4);
|
|
1093
|
+
$[22] = drawerContent;
|
|
1094
|
+
$[23] = t4;
|
|
1095
|
+
$[24] = t5;
|
|
1096
|
+
} else {
|
|
1097
|
+
t5 = $[24];
|
|
1098
|
+
}
|
|
1099
|
+
let t6;
|
|
1100
|
+
if ($[25] !== expanded || $[26] !== t3 || $[27] !== t5) {
|
|
1101
|
+
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(Drawer, { open: expanded, onClose: t3, children: t5 });
|
|
1102
|
+
$[25] = expanded;
|
|
1103
|
+
$[26] = t3;
|
|
1104
|
+
$[27] = t5;
|
|
1105
|
+
$[28] = t6;
|
|
1106
|
+
} else {
|
|
1107
|
+
t6 = $[28];
|
|
1108
|
+
}
|
|
1109
|
+
return t6;
|
|
545
1110
|
};
|
|
546
1111
|
const capitalize = (value) => value && value.charAt(0).toUpperCase() + value.slice(1);
|
|
547
1112
|
const ToolbarAccount = () => {
|
|
1113
|
+
const $ = compilerRuntimeExports.c(116);
|
|
548
1114
|
const [anchorElement, setAnchorElement] = useState();
|
|
549
1115
|
const [tab, setTab] = useState("settings");
|
|
550
1116
|
const open = Boolean(anchorElement);
|
|
551
|
-
const {
|
|
552
|
-
|
|
553
|
-
|
|
1117
|
+
const {
|
|
1118
|
+
t,
|
|
1119
|
+
i18n: i18n2
|
|
1120
|
+
} = useTranslation();
|
|
1121
|
+
const {
|
|
1122
|
+
mode,
|
|
1123
|
+
setMode
|
|
1124
|
+
} = useColorScheme();
|
|
1125
|
+
const {
|
|
1126
|
+
instance
|
|
1127
|
+
} = useMsal();
|
|
554
1128
|
const user = useUser();
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
1129
|
+
let T0;
|
|
1130
|
+
let closeMenu;
|
|
1131
|
+
let openMenu;
|
|
1132
|
+
let settings;
|
|
1133
|
+
let t0;
|
|
1134
|
+
let t1;
|
|
1135
|
+
let theme;
|
|
1136
|
+
if ($[0] !== i18n2 || $[1] !== mode || $[2] !== setMode || $[3] !== t) {
|
|
1137
|
+
const supportedLanguages = (Array.isArray(i18n2.options.supportedLngs) ? i18n2.options.supportedLngs : []).filter(_temp$2);
|
|
1138
|
+
const languageDisplayNames = new Intl.DisplayNames([i18n2.language], {
|
|
1139
|
+
type: "language"
|
|
1140
|
+
});
|
|
1141
|
+
let t22;
|
|
1142
|
+
if ($[11] !== t) {
|
|
1143
|
+
t22 = t("Layout.Light");
|
|
1144
|
+
$[11] = t;
|
|
1145
|
+
$[12] = t22;
|
|
1146
|
+
} else {
|
|
1147
|
+
t22 = $[12];
|
|
1148
|
+
}
|
|
1149
|
+
let t32;
|
|
1150
|
+
if ($[13] !== t22) {
|
|
1151
|
+
t32 = {
|
|
1152
|
+
mode: "light",
|
|
1153
|
+
icon: LightMode,
|
|
1154
|
+
label: t22
|
|
1155
|
+
};
|
|
1156
|
+
$[13] = t22;
|
|
1157
|
+
$[14] = t32;
|
|
1158
|
+
} else {
|
|
1159
|
+
t32 = $[14];
|
|
1160
|
+
}
|
|
1161
|
+
let t42;
|
|
1162
|
+
if ($[15] !== t) {
|
|
1163
|
+
t42 = t("Layout.Dark");
|
|
1164
|
+
$[15] = t;
|
|
1165
|
+
$[16] = t42;
|
|
1166
|
+
} else {
|
|
1167
|
+
t42 = $[16];
|
|
1168
|
+
}
|
|
1169
|
+
let t52;
|
|
1170
|
+
if ($[17] !== t42) {
|
|
1171
|
+
t52 = {
|
|
1172
|
+
mode: "dark",
|
|
1173
|
+
icon: DarkMode,
|
|
1174
|
+
label: t42
|
|
1175
|
+
};
|
|
1176
|
+
$[17] = t42;
|
|
1177
|
+
$[18] = t52;
|
|
1178
|
+
} else {
|
|
1179
|
+
t52 = $[18];
|
|
1180
|
+
}
|
|
1181
|
+
let t62;
|
|
1182
|
+
if ($[19] !== t) {
|
|
1183
|
+
t62 = t("Layout.System");
|
|
1184
|
+
$[19] = t;
|
|
1185
|
+
$[20] = t62;
|
|
1186
|
+
} else {
|
|
1187
|
+
t62 = $[20];
|
|
1188
|
+
}
|
|
1189
|
+
let t72;
|
|
1190
|
+
if ($[21] !== t62) {
|
|
1191
|
+
t72 = {
|
|
1192
|
+
mode: "system",
|
|
1193
|
+
icon: SettingsBrightness,
|
|
1194
|
+
label: t62
|
|
1195
|
+
};
|
|
1196
|
+
$[21] = t62;
|
|
1197
|
+
$[22] = t72;
|
|
1198
|
+
} else {
|
|
1199
|
+
t72 = $[22];
|
|
1200
|
+
}
|
|
1201
|
+
let t82;
|
|
1202
|
+
if ($[23] !== t32 || $[24] !== t52 || $[25] !== t72) {
|
|
1203
|
+
t82 = [t32, t52, t72];
|
|
1204
|
+
$[23] = t32;
|
|
1205
|
+
$[24] = t52;
|
|
1206
|
+
$[25] = t72;
|
|
1207
|
+
$[26] = t82;
|
|
1208
|
+
} else {
|
|
1209
|
+
t82 = $[26];
|
|
1210
|
+
}
|
|
1211
|
+
const colorModes = t82;
|
|
1212
|
+
let t92;
|
|
1213
|
+
if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1214
|
+
t92 = (event) => setAnchorElement(event.currentTarget);
|
|
1215
|
+
$[27] = t92;
|
|
1216
|
+
} else {
|
|
1217
|
+
t92 = $[27];
|
|
1218
|
+
}
|
|
1219
|
+
openMenu = t92;
|
|
1220
|
+
let t102;
|
|
1221
|
+
if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1222
|
+
t102 = () => {
|
|
1223
|
+
setAnchorElement(void 0);
|
|
1224
|
+
setTimeout(() => setTab("settings"), 300);
|
|
1225
|
+
};
|
|
1226
|
+
$[28] = t102;
|
|
1227
|
+
} else {
|
|
1228
|
+
t102 = $[28];
|
|
1229
|
+
}
|
|
1230
|
+
closeMenu = t102;
|
|
1231
|
+
let t112;
|
|
1232
|
+
if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1233
|
+
t112 = (newTab) => () => setTab(newTab);
|
|
1234
|
+
$[29] = t112;
|
|
1235
|
+
} else {
|
|
1236
|
+
t112 = $[29];
|
|
1237
|
+
}
|
|
1238
|
+
const changeTab = t112;
|
|
1239
|
+
let t122;
|
|
1240
|
+
if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1241
|
+
t122 = {
|
|
1242
|
+
backgroundColor: "transparent"
|
|
1243
|
+
};
|
|
1244
|
+
$[30] = t122;
|
|
1245
|
+
} else {
|
|
1246
|
+
t122 = $[30];
|
|
1247
|
+
}
|
|
1248
|
+
let t132;
|
|
1249
|
+
if ($[31] !== t) {
|
|
1250
|
+
t132 = t("Layout.Settings");
|
|
1251
|
+
$[31] = t;
|
|
1252
|
+
$[32] = t132;
|
|
1253
|
+
} else {
|
|
1254
|
+
t132 = $[32];
|
|
1255
|
+
}
|
|
1256
|
+
let t142;
|
|
1257
|
+
if ($[33] !== t132) {
|
|
1258
|
+
t142 = /* @__PURE__ */ jsxRuntimeExports.jsx(ListSubheader$1, { sx: t122, children: t132 });
|
|
1259
|
+
$[33] = t132;
|
|
1260
|
+
$[34] = t142;
|
|
1261
|
+
} else {
|
|
1262
|
+
t142 = $[34];
|
|
1263
|
+
}
|
|
1264
|
+
let t152;
|
|
1265
|
+
let t162;
|
|
1266
|
+
if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1267
|
+
t152 = changeTab("theme");
|
|
1268
|
+
t162 = {
|
|
1269
|
+
py: 0.3
|
|
1270
|
+
};
|
|
1271
|
+
$[35] = t152;
|
|
1272
|
+
$[36] = t162;
|
|
1273
|
+
} else {
|
|
1274
|
+
t152 = $[35];
|
|
1275
|
+
t162 = $[36];
|
|
1276
|
+
}
|
|
1277
|
+
let t172;
|
|
1278
|
+
if ($[37] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1279
|
+
t172 = /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Brightness4, {}) });
|
|
1280
|
+
$[37] = t172;
|
|
1281
|
+
} else {
|
|
1282
|
+
t172 = $[37];
|
|
1283
|
+
}
|
|
1284
|
+
let t182;
|
|
1285
|
+
if ($[38] !== t) {
|
|
1286
|
+
t182 = t("Layout.Appearance");
|
|
1287
|
+
$[38] = t;
|
|
1288
|
+
$[39] = t182;
|
|
1289
|
+
} else {
|
|
1290
|
+
t182 = $[39];
|
|
1291
|
+
}
|
|
1292
|
+
const t19 = colorModes.find((m) => m.mode === mode)?.label;
|
|
1293
|
+
let t20;
|
|
1294
|
+
if ($[40] !== t182 || $[41] !== t19) {
|
|
1295
|
+
t20 = /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText$1, { primary: t182, secondary: t19 });
|
|
1296
|
+
$[40] = t182;
|
|
1297
|
+
$[41] = t19;
|
|
1298
|
+
$[42] = t20;
|
|
1299
|
+
} else {
|
|
1300
|
+
t20 = $[42];
|
|
1301
|
+
}
|
|
1302
|
+
let t21;
|
|
1303
|
+
if ($[43] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1304
|
+
t21 = /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronRight, {});
|
|
1305
|
+
$[43] = t21;
|
|
1306
|
+
} else {
|
|
1307
|
+
t21 = $[43];
|
|
1308
|
+
}
|
|
1309
|
+
let t222;
|
|
1310
|
+
if ($[44] !== t20) {
|
|
1311
|
+
t222 = /* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton$1, { onClick: t152, sx: t162, children: [
|
|
1312
|
+
t172,
|
|
1313
|
+
t20,
|
|
1314
|
+
t21
|
|
1315
|
+
] });
|
|
1316
|
+
$[44] = t20;
|
|
1317
|
+
$[45] = t222;
|
|
1318
|
+
} else {
|
|
1319
|
+
t222 = $[45];
|
|
1320
|
+
}
|
|
1321
|
+
let t23;
|
|
1322
|
+
let t24;
|
|
1323
|
+
if ($[46] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1324
|
+
t23 = changeTab("language");
|
|
1325
|
+
t24 = {
|
|
1326
|
+
py: 0.3
|
|
1327
|
+
};
|
|
1328
|
+
$[46] = t23;
|
|
1329
|
+
$[47] = t24;
|
|
1330
|
+
} else {
|
|
1331
|
+
t23 = $[46];
|
|
1332
|
+
t24 = $[47];
|
|
1333
|
+
}
|
|
1334
|
+
let t25;
|
|
1335
|
+
if ($[48] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1336
|
+
t25 = /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Translate, {}) });
|
|
1337
|
+
$[48] = t25;
|
|
1338
|
+
} else {
|
|
1339
|
+
t25 = $[48];
|
|
1340
|
+
}
|
|
1341
|
+
let t26;
|
|
1342
|
+
if ($[49] !== t) {
|
|
1343
|
+
t26 = t("Layout.Language");
|
|
1344
|
+
$[49] = t;
|
|
1345
|
+
$[50] = t26;
|
|
1346
|
+
} else {
|
|
1347
|
+
t26 = $[50];
|
|
1348
|
+
}
|
|
1349
|
+
let t27;
|
|
1350
|
+
if ($[51] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1351
|
+
t27 = /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronRight, {});
|
|
1352
|
+
$[51] = t27;
|
|
1353
|
+
} else {
|
|
1354
|
+
t27 = $[51];
|
|
1355
|
+
}
|
|
1356
|
+
const t28 = /* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton$1, { onClick: t23, sx: t24, children: [
|
|
1357
|
+
t25,
|
|
1358
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText$1, { primary: t26, secondary: capitalize(languageDisplayNames.of(i18n2.language)) }),
|
|
1359
|
+
t27
|
|
1360
|
+
] });
|
|
1361
|
+
let t29;
|
|
1362
|
+
if ($[52] !== t142 || $[53] !== t222 || $[54] !== t28) {
|
|
1363
|
+
t29 = /* @__PURE__ */ jsxRuntimeExports.jsxs(List$1, { component: "nav", subheader: t142, children: [
|
|
1364
|
+
t222,
|
|
1365
|
+
t28
|
|
1366
|
+
] });
|
|
1367
|
+
$[52] = t142;
|
|
1368
|
+
$[53] = t222;
|
|
1369
|
+
$[54] = t28;
|
|
1370
|
+
$[55] = t29;
|
|
1371
|
+
} else {
|
|
1372
|
+
t29 = $[55];
|
|
1373
|
+
}
|
|
1374
|
+
settings = t29;
|
|
1375
|
+
let t30;
|
|
1376
|
+
let t31;
|
|
1377
|
+
if ($[56] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1378
|
+
t30 = changeTab("settings");
|
|
1379
|
+
t31 = {
|
|
1380
|
+
backgroundColor: "transparent",
|
|
1381
|
+
display: "flex",
|
|
1382
|
+
alignItems: "center",
|
|
1383
|
+
px: 1,
|
|
1384
|
+
cursor: "pointer"
|
|
1385
|
+
};
|
|
1386
|
+
$[56] = t30;
|
|
1387
|
+
$[57] = t31;
|
|
1388
|
+
} else {
|
|
1389
|
+
t30 = $[56];
|
|
1390
|
+
t31 = $[57];
|
|
1391
|
+
}
|
|
1392
|
+
let t322;
|
|
1393
|
+
if ($[58] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1394
|
+
t322 = /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { size: "small", sx: {
|
|
1395
|
+
mr: 0.5
|
|
1396
|
+
}, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ArrowBack, { fontSize: "small" }) });
|
|
1397
|
+
$[58] = t322;
|
|
1398
|
+
} else {
|
|
1399
|
+
t322 = $[58];
|
|
1400
|
+
}
|
|
1401
|
+
let t33;
|
|
1402
|
+
if ($[59] !== t) {
|
|
1403
|
+
t33 = t("Layout.Appearance");
|
|
1404
|
+
$[59] = t;
|
|
1405
|
+
$[60] = t33;
|
|
1406
|
+
} else {
|
|
1407
|
+
t33 = $[60];
|
|
1408
|
+
}
|
|
1409
|
+
let t34;
|
|
1410
|
+
if ($[61] !== t33) {
|
|
1411
|
+
t34 = /* @__PURE__ */ jsxRuntimeExports.jsxs(ListSubheader$1, { onClick: t30, sx: t31, children: [
|
|
1412
|
+
t322,
|
|
1413
|
+
" ",
|
|
1414
|
+
t33
|
|
1415
|
+
] });
|
|
1416
|
+
$[61] = t33;
|
|
1417
|
+
$[62] = t34;
|
|
1418
|
+
} else {
|
|
1419
|
+
t34 = $[62];
|
|
1420
|
+
}
|
|
1421
|
+
let t35;
|
|
1422
|
+
if ($[63] !== colorModes || $[64] !== mode || $[65] !== setMode) {
|
|
1423
|
+
t35 = colorModes.map((t362) => {
|
|
1424
|
+
const {
|
|
1425
|
+
mode: modeValue,
|
|
1426
|
+
icon: Icon,
|
|
1427
|
+
label
|
|
1428
|
+
} = t362;
|
|
1429
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton$1, { onClick: () => {
|
|
1430
|
+
setMode(modeValue);
|
|
1431
|
+
closeMenu();
|
|
1432
|
+
}, selected: mode === modeValue, children: [
|
|
1433
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Icon, {}) }),
|
|
1434
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText$1, { primary: label })
|
|
1435
|
+
] }, modeValue);
|
|
1436
|
+
});
|
|
1437
|
+
$[63] = colorModes;
|
|
1438
|
+
$[64] = mode;
|
|
1439
|
+
$[65] = setMode;
|
|
1440
|
+
$[66] = t35;
|
|
1441
|
+
} else {
|
|
1442
|
+
t35 = $[66];
|
|
1443
|
+
}
|
|
1444
|
+
let t36;
|
|
1445
|
+
if ($[67] !== t34 || $[68] !== t35) {
|
|
1446
|
+
t36 = /* @__PURE__ */ jsxRuntimeExports.jsx(List$1, { subheader: t34, children: t35 });
|
|
1447
|
+
$[67] = t34;
|
|
1448
|
+
$[68] = t35;
|
|
1449
|
+
$[69] = t36;
|
|
1450
|
+
} else {
|
|
1451
|
+
t36 = $[69];
|
|
1452
|
+
}
|
|
1453
|
+
theme = t36;
|
|
1454
|
+
T0 = List$1;
|
|
1455
|
+
let t37;
|
|
1456
|
+
let t38;
|
|
1457
|
+
if ($[70] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1458
|
+
t37 = changeTab("settings");
|
|
1459
|
+
t38 = {
|
|
1460
|
+
backgroundColor: "transparent",
|
|
1461
|
+
display: "flex",
|
|
1462
|
+
alignItems: "center",
|
|
1463
|
+
px: 1,
|
|
1464
|
+
cursor: "pointer"
|
|
1465
|
+
};
|
|
1466
|
+
$[70] = t37;
|
|
1467
|
+
$[71] = t38;
|
|
1468
|
+
} else {
|
|
1469
|
+
t37 = $[70];
|
|
1470
|
+
t38 = $[71];
|
|
1471
|
+
}
|
|
1472
|
+
let t39;
|
|
1473
|
+
if ($[72] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1474
|
+
t39 = /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { size: "small", sx: {
|
|
1475
|
+
mr: 0.5
|
|
1476
|
+
}, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ArrowBack, { fontSize: "small" }) });
|
|
1477
|
+
$[72] = t39;
|
|
1478
|
+
} else {
|
|
1479
|
+
t39 = $[72];
|
|
1480
|
+
}
|
|
1481
|
+
let t40;
|
|
1482
|
+
if ($[73] !== t) {
|
|
1483
|
+
t40 = t("Layout.Language");
|
|
1484
|
+
$[73] = t;
|
|
1485
|
+
$[74] = t40;
|
|
1486
|
+
} else {
|
|
1487
|
+
t40 = $[74];
|
|
1488
|
+
}
|
|
1489
|
+
if ($[75] !== t40) {
|
|
1490
|
+
t0 = /* @__PURE__ */ jsxRuntimeExports.jsxs(ListSubheader$1, { onClick: t37, sx: t38, children: [
|
|
1491
|
+
t39,
|
|
1492
|
+
" ",
|
|
1493
|
+
t40
|
|
1494
|
+
] });
|
|
1495
|
+
$[75] = t40;
|
|
1496
|
+
$[76] = t0;
|
|
1497
|
+
} else {
|
|
1498
|
+
t0 = $[76];
|
|
1499
|
+
}
|
|
1500
|
+
t1 = supportedLanguages.map((languageCode) => /* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton$1, { onClick: () => i18n2.changeLanguage(languageCode).finally(() => closeMenu()), selected: i18n2.resolvedLanguage === languageCode, children: [
|
|
1501
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon$1, { children: i18n2.resolvedLanguage === languageCode && /* @__PURE__ */ jsxRuntimeExports.jsx(Done, {}) }),
|
|
1502
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText$1, { primary: capitalize(languageDisplayNames.of(languageCode)) })
|
|
1503
|
+
] }, languageCode));
|
|
1504
|
+
$[0] = i18n2;
|
|
1505
|
+
$[1] = mode;
|
|
1506
|
+
$[2] = setMode;
|
|
1507
|
+
$[3] = t;
|
|
1508
|
+
$[4] = T0;
|
|
1509
|
+
$[5] = closeMenu;
|
|
1510
|
+
$[6] = openMenu;
|
|
1511
|
+
$[7] = settings;
|
|
1512
|
+
$[8] = t0;
|
|
1513
|
+
$[9] = t1;
|
|
1514
|
+
$[10] = theme;
|
|
1515
|
+
} else {
|
|
1516
|
+
T0 = $[4];
|
|
1517
|
+
closeMenu = $[5];
|
|
1518
|
+
openMenu = $[6];
|
|
1519
|
+
settings = $[7];
|
|
1520
|
+
t0 = $[8];
|
|
1521
|
+
t1 = $[9];
|
|
1522
|
+
theme = $[10];
|
|
1523
|
+
}
|
|
1524
|
+
let t2;
|
|
1525
|
+
if ($[77] !== T0 || $[78] !== t0 || $[79] !== t1) {
|
|
1526
|
+
t2 = /* @__PURE__ */ jsxRuntimeExports.jsx(T0, { subheader: t0, children: t1 });
|
|
1527
|
+
$[77] = T0;
|
|
1528
|
+
$[78] = t0;
|
|
1529
|
+
$[79] = t1;
|
|
1530
|
+
$[80] = t2;
|
|
1531
|
+
} else {
|
|
1532
|
+
t2 = $[80];
|
|
1533
|
+
}
|
|
1534
|
+
const language = t2;
|
|
1535
|
+
let t3;
|
|
1536
|
+
if ($[81] !== user.photo) {
|
|
1537
|
+
t3 = user.photo ? /* @__PURE__ */ jsxRuntimeExports.jsx(Avatar$1, { src: user.photo, sx: {
|
|
1538
|
+
width: {
|
|
1539
|
+
xs: 32,
|
|
1540
|
+
sm: 40
|
|
590
1541
|
},
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
const language = /* @__PURE__ */ jsxRuntimeExports.jsx(List$1, { subheader: /* @__PURE__ */ jsxRuntimeExports.jsxs(ListSubheader$1, { onClick: changeTab("settings"), sx: { backgroundColor: "transparent", display: "flex", alignItems: "center", px: 1, cursor: "pointer" }, children: [
|
|
600
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { size: "small", sx: { mr: 0.5 }, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ArrowBack, { fontSize: "small" }) }),
|
|
601
|
-
" ",
|
|
602
|
-
t("Layout.Language")
|
|
603
|
-
] }), children: supportedLanguages.map(
|
|
604
|
-
(languageCode) => /* @__PURE__ */ jsxRuntimeExports.jsxs(
|
|
605
|
-
ListItemButton$1,
|
|
606
|
-
{
|
|
607
|
-
onClick: () => i18n2.changeLanguage(languageCode).finally(() => closeMenu()),
|
|
608
|
-
selected: i18n2.resolvedLanguage === languageCode,
|
|
609
|
-
children: [
|
|
610
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon$1, { children: i18n2.resolvedLanguage === languageCode && /* @__PURE__ */ jsxRuntimeExports.jsx(Done, {}) }),
|
|
611
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText$1, { primary: capitalize(languageDisplayNames.of(languageCode)) })
|
|
612
|
-
]
|
|
1542
|
+
height: {
|
|
1543
|
+
xs: 32,
|
|
1544
|
+
sm: 40
|
|
1545
|
+
}
|
|
1546
|
+
} }) : /* @__PURE__ */ jsxRuntimeExports.jsx(AccountCircle, { sx: {
|
|
1547
|
+
width: {
|
|
1548
|
+
xs: 32,
|
|
1549
|
+
sm: 40
|
|
613
1550
|
},
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
return /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
|
|
618
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { size: "small", edge: "end", onClick: openMenu, children: user.photo ? /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
619
|
-
Avatar$1,
|
|
620
|
-
{
|
|
621
|
-
src: user.photo,
|
|
622
|
-
sx: { width: { xs: 32, sm: 40 }, height: { xs: 32, sm: 40 } }
|
|
1551
|
+
height: {
|
|
1552
|
+
xs: 32,
|
|
1553
|
+
sm: 40
|
|
623
1554
|
}
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
]
|
|
645
|
-
|
|
1555
|
+
} });
|
|
1556
|
+
$[81] = user.photo;
|
|
1557
|
+
$[82] = t3;
|
|
1558
|
+
} else {
|
|
1559
|
+
t3 = $[82];
|
|
1560
|
+
}
|
|
1561
|
+
let t4;
|
|
1562
|
+
if ($[83] !== openMenu || $[84] !== t3) {
|
|
1563
|
+
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { size: "small", edge: "end", onClick: openMenu, children: t3 });
|
|
1564
|
+
$[83] = openMenu;
|
|
1565
|
+
$[84] = t3;
|
|
1566
|
+
$[85] = t4;
|
|
1567
|
+
} else {
|
|
1568
|
+
t4 = $[85];
|
|
1569
|
+
}
|
|
1570
|
+
let t5;
|
|
1571
|
+
if ($[86] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1572
|
+
t5 = {
|
|
1573
|
+
width: 240
|
|
1574
|
+
};
|
|
1575
|
+
$[86] = t5;
|
|
1576
|
+
} else {
|
|
1577
|
+
t5 = $[86];
|
|
1578
|
+
}
|
|
1579
|
+
let t6;
|
|
1580
|
+
if ($[87] !== user.jobTitle || $[88] !== user.name) {
|
|
1581
|
+
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(ListItem$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText$1, { primary: user.name, secondary: user.jobTitle }) });
|
|
1582
|
+
$[87] = user.jobTitle;
|
|
1583
|
+
$[88] = user.name;
|
|
1584
|
+
$[89] = t6;
|
|
1585
|
+
} else {
|
|
1586
|
+
t6 = $[89];
|
|
1587
|
+
}
|
|
1588
|
+
let t7;
|
|
1589
|
+
if ($[90] !== instance) {
|
|
1590
|
+
t7 = () => instance.logoutRedirect({
|
|
1591
|
+
postLogoutRedirectUri: "/"
|
|
1592
|
+
});
|
|
1593
|
+
$[90] = instance;
|
|
1594
|
+
$[91] = t7;
|
|
1595
|
+
} else {
|
|
1596
|
+
t7 = $[91];
|
|
1597
|
+
}
|
|
1598
|
+
let t8;
|
|
1599
|
+
if ($[92] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1600
|
+
t8 = /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon$1, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Logout, { color: "error" }) });
|
|
1601
|
+
$[92] = t8;
|
|
1602
|
+
} else {
|
|
1603
|
+
t8 = $[92];
|
|
1604
|
+
}
|
|
1605
|
+
let t9;
|
|
1606
|
+
if ($[93] !== t) {
|
|
1607
|
+
t9 = t("Layout.Logout");
|
|
1608
|
+
$[93] = t;
|
|
1609
|
+
$[94] = t9;
|
|
1610
|
+
} else {
|
|
1611
|
+
t9 = $[94];
|
|
1612
|
+
}
|
|
1613
|
+
let t10;
|
|
1614
|
+
if ($[95] !== t9) {
|
|
1615
|
+
t10 = /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText$1, { primary: t9 });
|
|
1616
|
+
$[95] = t9;
|
|
1617
|
+
$[96] = t10;
|
|
1618
|
+
} else {
|
|
1619
|
+
t10 = $[96];
|
|
1620
|
+
}
|
|
1621
|
+
let t11;
|
|
1622
|
+
if ($[97] !== t10 || $[98] !== t7) {
|
|
1623
|
+
t11 = /* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton$1, { onClick: t7, children: [
|
|
1624
|
+
t8,
|
|
1625
|
+
t10
|
|
1626
|
+
] });
|
|
1627
|
+
$[97] = t10;
|
|
1628
|
+
$[98] = t7;
|
|
1629
|
+
$[99] = t11;
|
|
1630
|
+
} else {
|
|
1631
|
+
t11 = $[99];
|
|
1632
|
+
}
|
|
1633
|
+
let t12;
|
|
1634
|
+
if ($[100] !== t11 || $[101] !== t6) {
|
|
1635
|
+
t12 = /* @__PURE__ */ jsxRuntimeExports.jsxs(List$1, { disablePadding: true, children: [
|
|
1636
|
+
t6,
|
|
1637
|
+
t11
|
|
1638
|
+
] });
|
|
1639
|
+
$[100] = t11;
|
|
1640
|
+
$[101] = t6;
|
|
1641
|
+
$[102] = t12;
|
|
1642
|
+
} else {
|
|
1643
|
+
t12 = $[102];
|
|
1644
|
+
}
|
|
1645
|
+
const t13 = tab === "settings" && settings;
|
|
1646
|
+
const t14 = tab === "theme" && theme;
|
|
1647
|
+
const t15 = tab === "language" && language;
|
|
1648
|
+
let t16;
|
|
1649
|
+
if ($[103] !== t12 || $[104] !== t13 || $[105] !== t14 || $[106] !== t15) {
|
|
1650
|
+
t16 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Box$1, { sx: t5, children: [
|
|
1651
|
+
t12,
|
|
1652
|
+
t13,
|
|
1653
|
+
t14,
|
|
1654
|
+
t15
|
|
1655
|
+
] });
|
|
1656
|
+
$[103] = t12;
|
|
1657
|
+
$[104] = t13;
|
|
1658
|
+
$[105] = t14;
|
|
1659
|
+
$[106] = t15;
|
|
1660
|
+
$[107] = t16;
|
|
1661
|
+
} else {
|
|
1662
|
+
t16 = $[107];
|
|
1663
|
+
}
|
|
1664
|
+
let t17;
|
|
1665
|
+
if ($[108] !== anchorElement || $[109] !== closeMenu || $[110] !== open || $[111] !== t16) {
|
|
1666
|
+
t17 = /* @__PURE__ */ jsxRuntimeExports.jsx(Menu, { anchorEl: anchorElement, open, onClose: closeMenu, children: t16 });
|
|
1667
|
+
$[108] = anchorElement;
|
|
1668
|
+
$[109] = closeMenu;
|
|
1669
|
+
$[110] = open;
|
|
1670
|
+
$[111] = t16;
|
|
1671
|
+
$[112] = t17;
|
|
1672
|
+
} else {
|
|
1673
|
+
t17 = $[112];
|
|
1674
|
+
}
|
|
1675
|
+
let t18;
|
|
1676
|
+
if ($[113] !== t17 || $[114] !== t4) {
|
|
1677
|
+
t18 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
|
|
1678
|
+
t4,
|
|
1679
|
+
t17
|
|
1680
|
+
] });
|
|
1681
|
+
$[113] = t17;
|
|
1682
|
+
$[114] = t4;
|
|
1683
|
+
$[115] = t18;
|
|
1684
|
+
} else {
|
|
1685
|
+
t18 = $[115];
|
|
1686
|
+
}
|
|
1687
|
+
return t18;
|
|
646
1688
|
};
|
|
1689
|
+
function _temp$2(lng) {
|
|
1690
|
+
return lng !== "cimode";
|
|
1691
|
+
}
|
|
647
1692
|
const YEAR_IN_SECONDS = 60 * 60 * 24 * 365;
|
|
648
1693
|
const getNavigationOpenStatus = createIsomorphicFn().server(() => {
|
|
649
1694
|
const cookie = getCookie("navigationOpen");
|
|
@@ -652,7 +1697,9 @@ const getNavigationOpenStatus = createIsomorphicFn().server(() => {
|
|
|
652
1697
|
const cookie = document.cookie.split("; ").find((row) => row.startsWith("navigationOpen="));
|
|
653
1698
|
return cookie ? cookie.split("=")[1] === "true" : false;
|
|
654
1699
|
});
|
|
655
|
-
const DrawerHeader = styled("div")(({
|
|
1700
|
+
const DrawerHeader = styled("div")(({
|
|
1701
|
+
theme
|
|
1702
|
+
}) => ({
|
|
656
1703
|
display: "flex",
|
|
657
1704
|
alignItems: "center",
|
|
658
1705
|
justifyContent: "flex-end",
|
|
@@ -660,62 +1707,185 @@ const DrawerHeader = styled("div")(({ theme }) => ({
|
|
|
660
1707
|
...theme.mixins.toolbar
|
|
661
1708
|
}));
|
|
662
1709
|
const Layout = (props) => {
|
|
1710
|
+
const $ = compilerRuntimeExports.c(29);
|
|
663
1711
|
const [navigationOpen, setNavigationOpen] = useState(getNavigationOpenStatus);
|
|
664
1712
|
const isFetching = !!useIsFetching();
|
|
665
1713
|
const isMutating = !!useIsMutating();
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
/* @__PURE__ */ jsxRuntimeExports.
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
1714
|
+
let t0;
|
|
1715
|
+
let t1;
|
|
1716
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1717
|
+
t0 = /* @__PURE__ */ jsxRuntimeExports.jsx(InitColorSchemeScript, {});
|
|
1718
|
+
t1 = /* @__PURE__ */ jsxRuntimeExports.jsx(CssBaseline, {});
|
|
1719
|
+
$[0] = t0;
|
|
1720
|
+
$[1] = t1;
|
|
1721
|
+
} else {
|
|
1722
|
+
t0 = $[0];
|
|
1723
|
+
t1 = $[1];
|
|
1724
|
+
}
|
|
1725
|
+
let t2;
|
|
1726
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1727
|
+
t2 = {
|
|
1728
|
+
display: "flex",
|
|
1729
|
+
height: "100dvh",
|
|
1730
|
+
maxHeight: "100dvh",
|
|
1731
|
+
overflow: "hidden",
|
|
1732
|
+
width: "100%"
|
|
1733
|
+
};
|
|
1734
|
+
$[2] = t2;
|
|
1735
|
+
} else {
|
|
1736
|
+
t2 = $[2];
|
|
1737
|
+
}
|
|
1738
|
+
let t3;
|
|
1739
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1740
|
+
t3 = {
|
|
1741
|
+
borderBottom: "1px solid",
|
|
1742
|
+
borderColor: "var(--mui-palette-divider)",
|
|
1743
|
+
boxShadow: "none"
|
|
1744
|
+
};
|
|
1745
|
+
$[3] = t3;
|
|
1746
|
+
} else {
|
|
1747
|
+
t3 = $[3];
|
|
1748
|
+
}
|
|
1749
|
+
let t4;
|
|
1750
|
+
if ($[4] !== navigationOpen || $[5] !== props.navigation) {
|
|
1751
|
+
t4 = props.navigation && /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { onClick: () => {
|
|
1752
|
+
setNavigationOpen(_temp$1);
|
|
1753
|
+
}, sx: {
|
|
1754
|
+
marginRight: 2
|
|
1755
|
+
}, children: navigationOpen ? /* @__PURE__ */ jsxRuntimeExports.jsx(MenuOpen, {}) : /* @__PURE__ */ jsxRuntimeExports.jsx(Menu$1, {}) });
|
|
1756
|
+
$[4] = navigationOpen;
|
|
1757
|
+
$[5] = props.navigation;
|
|
1758
|
+
$[6] = t4;
|
|
1759
|
+
} else {
|
|
1760
|
+
t4 = $[6];
|
|
1761
|
+
}
|
|
1762
|
+
let t5;
|
|
1763
|
+
let t6;
|
|
1764
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1765
|
+
t5 = /* @__PURE__ */ jsxRuntimeExports.jsx(AppTitle, {});
|
|
1766
|
+
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(ToolbarAccount, {});
|
|
1767
|
+
$[7] = t5;
|
|
1768
|
+
$[8] = t6;
|
|
1769
|
+
} else {
|
|
1770
|
+
t5 = $[7];
|
|
1771
|
+
t6 = $[8];
|
|
1772
|
+
}
|
|
1773
|
+
let t7;
|
|
1774
|
+
if ($[9] !== t4) {
|
|
1775
|
+
t7 = /* @__PURE__ */ jsxRuntimeExports.jsx(AppBar, { color: "transparent", position: "fixed", sx: t3, children: /* @__PURE__ */ jsxRuntimeExports.jsxs(Toolbar, { children: [
|
|
1776
|
+
t4,
|
|
1777
|
+
t5,
|
|
1778
|
+
t6
|
|
1779
|
+
] }) });
|
|
1780
|
+
$[9] = t4;
|
|
1781
|
+
$[10] = t7;
|
|
1782
|
+
} else {
|
|
1783
|
+
t7 = $[10];
|
|
1784
|
+
}
|
|
1785
|
+
let t8;
|
|
1786
|
+
if ($[11] !== navigationOpen || $[12] !== props.navigation) {
|
|
1787
|
+
t8 = props.navigation && /* @__PURE__ */ jsxRuntimeExports.jsx(NavigationRail, { navigation: props.navigation, expanded: navigationOpen, setExpanded: (newValue_0) => {
|
|
1788
|
+
setNavigationOpen(newValue_0);
|
|
1789
|
+
document.cookie = `navigationOpen=${newValue_0}; max-age=${YEAR_IN_SECONDS}; path=/`;
|
|
1790
|
+
} });
|
|
1791
|
+
$[11] = navigationOpen;
|
|
1792
|
+
$[12] = props.navigation;
|
|
1793
|
+
$[13] = t8;
|
|
1794
|
+
} else {
|
|
1795
|
+
t8 = $[13];
|
|
1796
|
+
}
|
|
1797
|
+
let t10;
|
|
1798
|
+
let t9;
|
|
1799
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1800
|
+
t9 = {
|
|
1801
|
+
flexGrow: 1,
|
|
1802
|
+
display: "flex",
|
|
1803
|
+
flexDirection: "column",
|
|
1804
|
+
minWidth: 0,
|
|
1805
|
+
height: "100%",
|
|
1806
|
+
overflow: "hidden"
|
|
1807
|
+
};
|
|
1808
|
+
t10 = /* @__PURE__ */ jsxRuntimeExports.jsx(DrawerHeader, {});
|
|
1809
|
+
$[14] = t10;
|
|
1810
|
+
$[15] = t9;
|
|
1811
|
+
} else {
|
|
1812
|
+
t10 = $[14];
|
|
1813
|
+
t9 = $[15];
|
|
1814
|
+
}
|
|
1815
|
+
let t11;
|
|
1816
|
+
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1817
|
+
t11 = {
|
|
1818
|
+
flex: 1,
|
|
1819
|
+
overflow: "auto",
|
|
1820
|
+
position: "relative"
|
|
1821
|
+
};
|
|
1822
|
+
$[16] = t11;
|
|
1823
|
+
} else {
|
|
1824
|
+
t11 = $[16];
|
|
1825
|
+
}
|
|
1826
|
+
let t12;
|
|
1827
|
+
if ($[17] !== props.children) {
|
|
1828
|
+
t12 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Box$1, { component: "main", sx: t9, children: [
|
|
1829
|
+
t10,
|
|
1830
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Box$1, { sx: t11, children: /* @__PURE__ */ jsxRuntimeExports.jsx(AuthenticatedTemplate, { children: props.children }) })
|
|
1831
|
+
] });
|
|
1832
|
+
$[17] = props.children;
|
|
1833
|
+
$[18] = t12;
|
|
1834
|
+
} else {
|
|
1835
|
+
t12 = $[18];
|
|
1836
|
+
}
|
|
1837
|
+
let t13;
|
|
1838
|
+
if ($[19] !== t12 || $[20] !== t7 || $[21] !== t8) {
|
|
1839
|
+
t13 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Box$1, { sx: t2, children: [
|
|
1840
|
+
t7,
|
|
1841
|
+
t8,
|
|
1842
|
+
t12
|
|
1843
|
+
] });
|
|
1844
|
+
$[19] = t12;
|
|
1845
|
+
$[20] = t7;
|
|
1846
|
+
$[21] = t8;
|
|
1847
|
+
$[22] = t13;
|
|
1848
|
+
} else {
|
|
1849
|
+
t13 = $[22];
|
|
1850
|
+
}
|
|
1851
|
+
let t14;
|
|
1852
|
+
if ($[23] !== isFetching || $[24] !== isMutating) {
|
|
1853
|
+
t14 = (isFetching || isMutating) && /* @__PURE__ */ jsxRuntimeExports.jsx(LinearProgress, { sx: {
|
|
1854
|
+
position: "fixed",
|
|
1855
|
+
top: {
|
|
1856
|
+
xs: 56,
|
|
1857
|
+
sm: 64
|
|
1858
|
+
},
|
|
1859
|
+
left: 0,
|
|
1860
|
+
right: 0
|
|
1861
|
+
} });
|
|
1862
|
+
$[23] = isFetching;
|
|
1863
|
+
$[24] = isMutating;
|
|
1864
|
+
$[25] = t14;
|
|
1865
|
+
} else {
|
|
1866
|
+
t14 = $[25];
|
|
1867
|
+
}
|
|
1868
|
+
let t15;
|
|
1869
|
+
if ($[26] !== t13 || $[27] !== t14) {
|
|
1870
|
+
t15 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
|
|
1871
|
+
t0,
|
|
1872
|
+
t1,
|
|
1873
|
+
t13,
|
|
1874
|
+
t14
|
|
1875
|
+
] });
|
|
1876
|
+
$[26] = t13;
|
|
1877
|
+
$[27] = t14;
|
|
1878
|
+
$[28] = t15;
|
|
1879
|
+
} else {
|
|
1880
|
+
t15 = $[28];
|
|
1881
|
+
}
|
|
1882
|
+
return t15;
|
|
718
1883
|
};
|
|
1884
|
+
function _temp$1(previous) {
|
|
1885
|
+
const newValue = !previous;
|
|
1886
|
+
document.cookie = `navigationOpen=${newValue}; max-age=${YEAR_IN_SECONDS}; path=/`;
|
|
1887
|
+
return newValue;
|
|
1888
|
+
}
|
|
719
1889
|
const YEAR_IN_MINUTES = 60 * 24 * 365;
|
|
720
1890
|
i18n.use(LanguageDetector).use(initReactI18next).init({
|
|
721
1891
|
resources,
|
|
@@ -725,21 +1895,59 @@ i18n.use(LanguageDetector).use(initReactI18next).init({
|
|
|
725
1895
|
caches: ["cookie"],
|
|
726
1896
|
cookieMinutes: YEAR_IN_MINUTES
|
|
727
1897
|
},
|
|
728
|
-
interpolation: {
|
|
1898
|
+
interpolation: {
|
|
1899
|
+
escapeValue: false
|
|
1900
|
+
}
|
|
729
1901
|
});
|
|
730
|
-
const LayoutProvider = (
|
|
731
|
-
const
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
1902
|
+
const LayoutProvider = (t0) => {
|
|
1903
|
+
const $ = compilerRuntimeExports.c(9);
|
|
1904
|
+
const {
|
|
1905
|
+
navigation,
|
|
1906
|
+
theme,
|
|
1907
|
+
children
|
|
1908
|
+
} = t0;
|
|
1909
|
+
const languageChangedHandler = useEffectEvent(_temp);
|
|
1910
|
+
let t1;
|
|
1911
|
+
if ($[0] !== languageChangedHandler) {
|
|
1912
|
+
t1 = () => {
|
|
1913
|
+
languageChangedHandler();
|
|
1914
|
+
i18n.on("languageChanged", languageChangedHandler);
|
|
1915
|
+
return () => {
|
|
1916
|
+
i18n.off("languageChanged", languageChangedHandler);
|
|
1917
|
+
};
|
|
740
1918
|
};
|
|
741
|
-
|
|
742
|
-
|
|
1919
|
+
$[0] = languageChangedHandler;
|
|
1920
|
+
$[1] = t1;
|
|
1921
|
+
} else {
|
|
1922
|
+
t1 = $[1];
|
|
1923
|
+
}
|
|
1924
|
+
let t2;
|
|
1925
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1926
|
+
t2 = [];
|
|
1927
|
+
$[2] = t2;
|
|
1928
|
+
} else {
|
|
1929
|
+
t2 = $[2];
|
|
1930
|
+
}
|
|
1931
|
+
useEffect(t1, t2);
|
|
1932
|
+
let t3;
|
|
1933
|
+
if ($[3] !== children || $[4] !== navigation) {
|
|
1934
|
+
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx(LocalizationProvider, { dateAdapter: AdapterDayjs, adapterLocale: i18n.language, children: /* @__PURE__ */ jsxRuntimeExports.jsx(DialogsProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Layout, { navigation, children }) }) }, i18n.language);
|
|
1935
|
+
$[3] = children;
|
|
1936
|
+
$[4] = navigation;
|
|
1937
|
+
$[5] = t3;
|
|
1938
|
+
} else {
|
|
1939
|
+
t3 = $[5];
|
|
1940
|
+
}
|
|
1941
|
+
let t4;
|
|
1942
|
+
if ($[6] !== t3 || $[7] !== theme) {
|
|
1943
|
+
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx(MsalProvider, { instance: msalInstance, children: /* @__PURE__ */ jsxRuntimeExports.jsx(UserProvider, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(ThemeProvider, { theme, children: t3 }) }) });
|
|
1944
|
+
$[6] = t3;
|
|
1945
|
+
$[7] = theme;
|
|
1946
|
+
$[8] = t4;
|
|
1947
|
+
} else {
|
|
1948
|
+
t4 = $[8];
|
|
1949
|
+
}
|
|
1950
|
+
return t4;
|
|
743
1951
|
};
|
|
744
1952
|
const setSSRLanguage = createServerFn().handler(async () => {
|
|
745
1953
|
const language = getCookie(i18n.services.languageDetector.options.lookupCookie) || "en";
|
|
@@ -747,6 +1955,10 @@ const setSSRLanguage = createServerFn().handler(async () => {
|
|
|
747
1955
|
dayjs.locale(language);
|
|
748
1956
|
await i18n.changeLanguage(language);
|
|
749
1957
|
});
|
|
1958
|
+
function _temp() {
|
|
1959
|
+
z__default.config(z__default.core.locales[i18n.language]());
|
|
1960
|
+
dayjs.locale(i18n.language);
|
|
1961
|
+
}
|
|
750
1962
|
export {
|
|
751
1963
|
LayoutProvider,
|
|
752
1964
|
r as rootRouteHead,
|