wcz-layout 10.1.9 → 10.2.0
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/{Approval-DoD-GRRH.mjs → Approval-D1TfISUL.mjs} +11 -21
- package/dist/Approval-D1TfISUL.mjs.map +1 -0
- package/dist/{LayoutTable-CRo43iWr.d.mts → ChatLayout-BmLySLXy.d.mts} +11 -18
- package/dist/ChatLayout-Tpuwo8-b.mjs +1622 -0
- package/dist/ChatLayout-Tpuwo8-b.mjs.map +1 -0
- package/dist/{DialogsContext-DLqA8RJ_.mjs → DialogsContext-D23fJjYR.mjs} +2 -3
- package/dist/DialogsContext-D23fJjYR.mjs.map +1 -0
- package/dist/{Email-CKUxOURX.d.mts → Email-Dz5k0UWE.d.mts} +1 -3
- package/dist/{Email-BzQQkbe9.mjs → Email-rnz3H0x3.mjs} +3 -5
- package/dist/Email-rnz3H0x3.mjs.map +1 -0
- package/dist/{Employee-agVPiGrJ.d.mts → Employee-C8xIlBxY.d.mts} +1 -7
- package/dist/{FileMeta-Be9viU7D.d.mts → FileMeta-B39e2FLC.d.mts} +1 -3
- package/dist/{FileMeta-DDqUju1Y.mjs → FileMeta-CPBWI_jA.mjs} +2 -3
- package/dist/FileMeta-CPBWI_jA.mjs.map +1 -0
- package/dist/{QueryClientParam-JcH0mJWl.d.mts → QueryClientParam-CTV1vj76.d.mts} +1 -3
- package/dist/RouterListItemButton-CF-8w-08.mjs +62 -0
- package/dist/RouterListItemButton-CF-8w-08.mjs.map +1 -0
- package/dist/{User-D4__w1I1.d.mts → User-aJksXItw.d.mts} +1 -3
- package/dist/{approval-L09uPzTU.mjs → approval-HB2w5jzc.mjs} +4 -5
- package/dist/approval-HB2w5jzc.mjs.map +1 -0
- package/dist/auth.d.mts +0 -4
- package/dist/auth.mjs +5 -6
- package/dist/auth.mjs.map +1 -1
- package/dist/components.d.mts +63 -33
- package/dist/components.mjs +658 -748
- package/dist/components.mjs.map +1 -1
- package/dist/{createApi-BhNkG4jz.mjs → createApi-CKgFi53y.mjs} +4 -6
- package/dist/createApi-CKgFi53y.mjs.map +1 -0
- package/dist/data/client.d.mts +2 -8
- package/dist/data/client.mjs +6 -9
- package/dist/data/client.mjs.map +1 -1
- package/dist/data/server.d.mts +2 -4
- package/dist/data/server.mjs +6 -7
- package/dist/data/server.mjs.map +1 -1
- package/dist/env-BwFl7nWc.mjs +48 -0
- package/dist/env-BwFl7nWc.mjs.map +1 -0
- package/dist/{file-Chlljz3o.mjs → file-X1sK4ok6.mjs} +7 -8
- package/dist/file-X1sK4ok6.mjs.map +1 -0
- package/dist/{file-Dl8JCcqy.mjs → file-tkfsnk5F.mjs} +8 -8
- package/dist/file-tkfsnk5F.mjs.map +1 -0
- package/dist/generatedChart-k7NEdi5Z.mjs +211 -0
- package/dist/generatedChart-k7NEdi5Z.mjs.map +1 -0
- package/dist/hooks.d.mts +30 -30
- package/dist/hooks.mjs +1828 -1304
- package/dist/hooks.mjs.map +1 -1
- package/dist/index.d.mts +11 -14
- package/dist/index.mjs +1273 -1051
- package/dist/index.mjs.map +1 -1
- package/dist/middleware.d.mts +1 -7
- package/dist/middleware.mjs +5 -8
- package/dist/middleware.mjs.map +1 -1
- package/dist/models.d.mts +4 -32
- package/dist/models.mjs +7 -11
- package/dist/models.mjs.map +1 -1
- package/dist/{peoplesoft-D6q3cYsH.d.mts → peoplesoft-C-zPdRVj.d.mts} +3 -9
- package/dist/{peoplesoft-BhintHQz.mjs → peoplesoft-RnvfLbWH.mjs} +5 -25
- package/dist/peoplesoft-RnvfLbWH.mjs.map +1 -0
- package/dist/{providers-BvuZWkpD.mjs → providers-BfFg_3eo.mjs} +5 -23
- package/dist/providers-BfFg_3eo.mjs.map +1 -0
- package/dist/{tokens-XuFhVbh5.mjs → tokens-C4SErO-K.mjs} +12 -8
- package/dist/tokens-C4SErO-K.mjs.map +1 -0
- package/dist/{utils-CaeVFWF-.mjs → utils-C2MZoH9U.mjs} +8 -39
- package/dist/utils-C2MZoH9U.mjs.map +1 -0
- package/dist/{utils-Bhi0KiBx.d.mts → utils-CNYCSgip.d.mts} +3 -5
- package/dist/utils-DnMFybj3.mjs +27 -0
- package/dist/utils-DnMFybj3.mjs.map +1 -0
- package/dist/utils.d.mts +11 -2
- package/dist/utils.mjs +3 -5
- package/dist/vite.d.mts +0 -2
- package/dist/vite.mjs +2 -4
- package/dist/vite.mjs.map +1 -1
- package/package.json +131 -131
- package/skills/ai/SKILL.md +136 -39
- package/skills/client-db/SKILL.md +104 -90
- package/skills/db-schema/SKILL.md +28 -20
- package/skills/dialogs/SKILL.md +26 -38
- package/skills/forms/SKILL.md +133 -73
- package/skills/general/SKILL.md +99 -105
- package/skills/general/references/auth.md +70 -0
- package/skills/migrations/versions/migrate-v10-to-v11.md +30 -4
- package/skills/routing/SKILL.md +60 -58
- package/skills/scanning/SKILL.md +67 -0
- package/skills/server-functions/SKILL.md +71 -26
- package/skills/services/SKILL.md +4 -4
- package/skills/services/docs/approval.md +70 -24
- package/skills/services/docs/email.md +24 -3
- package/skills/services/docs/file.md +69 -27
- package/skills/services/docs/peoplesoft.md +55 -39
- package/skills/start/steps/03-apm-setup.md +9 -9
- package/skills/table/SKILL.md +250 -267
- package/dist/AggregatedCell-oGcwbetF.mjs +0 -559
- package/dist/AggregatedCell-oGcwbetF.mjs.map +0 -1
- package/dist/Approval-DoD-GRRH.mjs.map +0 -1
- package/dist/DialogsContext-DLqA8RJ_.mjs.map +0 -1
- package/dist/Email-BzQQkbe9.mjs.map +0 -1
- package/dist/FileMeta-DDqUju1Y.mjs.map +0 -1
- package/dist/RouterListItemButton-ULMlaQh6.mjs +0 -80
- package/dist/RouterListItemButton-ULMlaQh6.mjs.map +0 -1
- package/dist/approval-L09uPzTU.mjs.map +0 -1
- package/dist/createApi-BhNkG4jz.mjs.map +0 -1
- package/dist/file-Chlljz3o.mjs.map +0 -1
- package/dist/file-Dl8JCcqy.mjs.map +0 -1
- package/dist/peoplesoft-BhintHQz.mjs.map +0 -1
- package/dist/providers-BvuZWkpD.mjs.map +0 -1
- package/dist/tokens-XuFhVbh5.mjs.map +0 -1
- package/dist/utils-CaeVFWF-.mjs.map +0 -1
- package/skills/general/references/exports.md +0 -114
package/dist/index.mjs
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { t as getAccessToken } from "./tokens-
|
|
3
|
-
import { n as RouterIconButton, t as RouterListItemButton } from "./RouterListItemButton-
|
|
4
|
-
import { t as DialogsContext } from "./DialogsContext-
|
|
1
|
+
import { _ as OFFLINE_PHOTO_KEY, c as isTestEnv, h as userQueryOptions, m as loginProvidersQueryOptions, n as WISTRON_PRIMARY_COLOR, p as getUser, r as WISTRON_SECONDARY_COLOR, t as Platform, u as rootRouteHead, v as clearSessionSnapshot, y as withOfflineFallback } from "./utils-C2MZoH9U.mjs";
|
|
2
|
+
import { t as getAccessToken } from "./tokens-C4SErO-K.mjs";
|
|
3
|
+
import { n as RouterIconButton, t as RouterListItemButton } from "./RouterListItemButton-CF-8w-08.mjs";
|
|
4
|
+
import { t as DialogsContext } from "./DialogsContext-D23fJjYR.mjs";
|
|
5
5
|
import { c } from "react/compiler-runtime";
|
|
6
6
|
import createCache from "@emotion/cache";
|
|
7
7
|
import { CacheProvider } from "@emotion/react";
|
|
8
|
-
import { AppBar, Avatar, Box, Collapse, CssBaseline, Grow, IconButton, InitColorSchemeScript, List, ListItem, ListItemButton, ListItemIcon, ListItemText, ListSubheader, Popover, Stack, ThemeProvider, Toolbar, Typography, useColorScheme } from "@mui/material";
|
|
8
|
+
import { AppBar, Avatar, Box, Collapse, CssBaseline, Grow, IconButton, InitColorSchemeScript, List, ListItem, ListItemButton, ListItemIcon, ListItemText, ListSubheader, Popover, Stack, ThemeProvider, Toolbar, Tooltip, Typography, useColorScheme, useMediaQuery } from "@mui/material";
|
|
9
9
|
import { useQuery } from "@tanstack/react-query";
|
|
10
10
|
import { LocalizationProvider } from "@mui/x-date-pickers";
|
|
11
11
|
import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
|
|
@@ -16,11 +16,13 @@ import { Fragment, useEffect, useId, useRef, useState } from "react";
|
|
|
16
16
|
import { I18nextProvider, Trans, initReactI18next, useTranslation } from "react-i18next";
|
|
17
17
|
import { manifest, resources } from "virtual:wcz-layout";
|
|
18
18
|
import z from "zod";
|
|
19
|
+
import AutoAwesome from "@mui/icons-material/AutoAwesome";
|
|
19
20
|
import Menu$1 from "@mui/icons-material/Menu";
|
|
20
21
|
import MenuOpen from "@mui/icons-material/MenuOpen";
|
|
21
22
|
import { styled } from "@mui/material/styles";
|
|
22
|
-
import { rootRouteId, useLocation, useMatch, useRouter } from "@tanstack/react-router";
|
|
23
|
-
import {
|
|
23
|
+
import { rootRouteId, useLocation, useMatch, useMatchRoute, useRouter } from "@tanstack/react-router";
|
|
24
|
+
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
25
|
+
import { createIsomorphicFn, createServerFn } from "@tanstack/react-start";
|
|
24
26
|
import AccountCircle from "@mui/icons-material/AccountCircle";
|
|
25
27
|
import ArrowBack from "@mui/icons-material/ArrowBack";
|
|
26
28
|
import Brightness4 from "@mui/icons-material/Brightness4";
|
|
@@ -33,8 +35,8 @@ import Logout from "@mui/icons-material/Logout";
|
|
|
33
35
|
import SettingsBrightness from "@mui/icons-material/SettingsBrightness";
|
|
34
36
|
import Translate from "@mui/icons-material/Translate";
|
|
35
37
|
import axios from "axios";
|
|
36
|
-
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
37
38
|
import Drawer from "@mui/material/Drawer";
|
|
39
|
+
import useMediaQuery$1 from "@mui/material/useMediaQuery";
|
|
38
40
|
import Box$1 from "@mui/material/Box";
|
|
39
41
|
import Divider$1 from "@mui/material/Divider";
|
|
40
42
|
import List$1 from "@mui/material/List";
|
|
@@ -49,7 +51,193 @@ import Paper$1 from "@mui/material/Paper";
|
|
|
49
51
|
import Typography$1 from "@mui/material/Typography";
|
|
50
52
|
import Close from "@mui/icons-material/Close";
|
|
51
53
|
import useEventCallback$1 from "@mui/utils/useEventCallback";
|
|
52
|
-
|
|
54
|
+
// src/components/chat/ChatPanel.tsx
|
|
55
|
+
const WIDTH_STORAGE_KEY = "chat-width";
|
|
56
|
+
const MIN_WIDTH = 320;
|
|
57
|
+
const MAX_WIDTH = 800;
|
|
58
|
+
const KEYBOARD_STEP = 16;
|
|
59
|
+
/** The width a resize lands on: 320 to 800px, and never more than half the window. */
|
|
60
|
+
const clampChatWidth = (width, viewport) => Math.round(Math.max(MIN_WIDTH, Math.min(width, MAX_WIDTH, viewport / 2)));
|
|
61
|
+
/** The chat right of the page, or over all of it on smaller screens, below the app bar. */
|
|
62
|
+
function ChatPanel(t0) {
|
|
63
|
+
const $ = c(28);
|
|
64
|
+
const { id, open, docked, rail, children } = t0;
|
|
65
|
+
const { t } = useTranslation();
|
|
66
|
+
const [width, setWidth] = useState(420);
|
|
67
|
+
const [opened, setOpened] = useState(open);
|
|
68
|
+
if (open && !opened) setOpened(true);
|
|
69
|
+
let t1;
|
|
70
|
+
let t2;
|
|
71
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
72
|
+
t1 = () => {
|
|
73
|
+
const stored = Number(localStorage.getItem(WIDTH_STORAGE_KEY));
|
|
74
|
+
if (stored) setWidth(clampChatWidth(stored, window.innerWidth));
|
|
75
|
+
};
|
|
76
|
+
t2 = [];
|
|
77
|
+
$[0] = t1;
|
|
78
|
+
$[1] = t2;
|
|
79
|
+
} else {
|
|
80
|
+
t1 = $[0];
|
|
81
|
+
t2 = $[1];
|
|
82
|
+
}
|
|
83
|
+
useEffect(t1, t2);
|
|
84
|
+
let t3;
|
|
85
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
86
|
+
t3 = (requested, t4) => {
|
|
87
|
+
const save = t4 === void 0 ? false : t4;
|
|
88
|
+
const next = clampChatWidth(requested, window.innerWidth);
|
|
89
|
+
setWidth(next);
|
|
90
|
+
if (save) localStorage.setItem(WIDTH_STORAGE_KEY, String(next));
|
|
91
|
+
};
|
|
92
|
+
$[2] = t3;
|
|
93
|
+
} else t3 = $[2];
|
|
94
|
+
const resize = t3;
|
|
95
|
+
let t4;
|
|
96
|
+
if ($[3] !== t) {
|
|
97
|
+
t4 = t("Layout.Chat.Assistant");
|
|
98
|
+
$[3] = t;
|
|
99
|
+
$[4] = t4;
|
|
100
|
+
} else t4 = $[4];
|
|
101
|
+
const t5 = open ? "flex" : "none";
|
|
102
|
+
let t6;
|
|
103
|
+
if ($[5] !== docked || $[6] !== rail || $[7] !== width) {
|
|
104
|
+
t6 = docked ? {
|
|
105
|
+
flexShrink: 0,
|
|
106
|
+
width,
|
|
107
|
+
maxWidth: "50vw"
|
|
108
|
+
} : {
|
|
109
|
+
position: "fixed",
|
|
110
|
+
inset: 0,
|
|
111
|
+
left: {
|
|
112
|
+
xs: 0,
|
|
113
|
+
sm: rail
|
|
114
|
+
},
|
|
115
|
+
zIndex: _temp$8,
|
|
116
|
+
bgcolor: "background.default"
|
|
117
|
+
};
|
|
118
|
+
$[5] = docked;
|
|
119
|
+
$[6] = rail;
|
|
120
|
+
$[7] = width;
|
|
121
|
+
$[8] = t6;
|
|
122
|
+
} else t6 = $[8];
|
|
123
|
+
let t7;
|
|
124
|
+
if ($[9] !== t5 || $[10] !== t6) {
|
|
125
|
+
t7 = {
|
|
126
|
+
display: t5,
|
|
127
|
+
flexDirection: "column",
|
|
128
|
+
height: "100%",
|
|
129
|
+
...t6
|
|
130
|
+
};
|
|
131
|
+
$[9] = t5;
|
|
132
|
+
$[10] = t6;
|
|
133
|
+
$[11] = t7;
|
|
134
|
+
} else t7 = $[11];
|
|
135
|
+
let t8;
|
|
136
|
+
if ($[12] === Symbol.for("react.memo_cache_sentinel")) {
|
|
137
|
+
t8 = /* @__PURE__ */ jsx(Toolbar, {});
|
|
138
|
+
$[12] = t8;
|
|
139
|
+
} else t8 = $[12];
|
|
140
|
+
const t9 = docked ? 1 : 0;
|
|
141
|
+
let t10;
|
|
142
|
+
if ($[13] !== t9) {
|
|
143
|
+
t10 = {
|
|
144
|
+
position: "relative",
|
|
145
|
+
display: "flex",
|
|
146
|
+
flexDirection: "column",
|
|
147
|
+
flex: 1,
|
|
148
|
+
minHeight: 0,
|
|
149
|
+
borderLeft: t9,
|
|
150
|
+
borderColor: "divider"
|
|
151
|
+
};
|
|
152
|
+
$[13] = t9;
|
|
153
|
+
$[14] = t10;
|
|
154
|
+
} else t10 = $[14];
|
|
155
|
+
let t11;
|
|
156
|
+
if ($[15] !== docked || $[16] !== t || $[17] !== width) {
|
|
157
|
+
t11 = docked && /* @__PURE__ */ jsx(Box, {
|
|
158
|
+
role: "separator",
|
|
159
|
+
tabIndex: 0,
|
|
160
|
+
"aria-orientation": "vertical",
|
|
161
|
+
"aria-label": t("Layout.Chat.Resize"),
|
|
162
|
+
"aria-valuemin": MIN_WIDTH,
|
|
163
|
+
"aria-valuemax": MAX_WIDTH,
|
|
164
|
+
"aria-valuenow": width,
|
|
165
|
+
onPointerDown: _temp2$5,
|
|
166
|
+
onPointerMove: (event_0) => {
|
|
167
|
+
if (event_0.currentTarget.hasPointerCapture(event_0.pointerId)) resize(window.innerWidth - event_0.clientX);
|
|
168
|
+
},
|
|
169
|
+
onPointerUp: (event_1) => {
|
|
170
|
+
if (event_1.currentTarget.hasPointerCapture(event_1.pointerId)) resize(window.innerWidth - event_1.clientX, true);
|
|
171
|
+
},
|
|
172
|
+
onKeyDown: (event_2) => {
|
|
173
|
+
if (event_2.key !== "ArrowLeft" && event_2.key !== "ArrowRight") return;
|
|
174
|
+
event_2.preventDefault();
|
|
175
|
+
resize(width + (event_2.key === "ArrowLeft" ? KEYBOARD_STEP : -16), true);
|
|
176
|
+
},
|
|
177
|
+
sx: {
|
|
178
|
+
position: "absolute",
|
|
179
|
+
top: 0,
|
|
180
|
+
bottom: 0,
|
|
181
|
+
left: -4,
|
|
182
|
+
width: 8,
|
|
183
|
+
zIndex: 1,
|
|
184
|
+
cursor: "col-resize",
|
|
185
|
+
touchAction: "none",
|
|
186
|
+
outline: "none",
|
|
187
|
+
"&::after": {
|
|
188
|
+
content: "\"\"",
|
|
189
|
+
position: "absolute",
|
|
190
|
+
top: 0,
|
|
191
|
+
bottom: 0,
|
|
192
|
+
left: 3,
|
|
193
|
+
width: 2,
|
|
194
|
+
transition: "background-color 150ms"
|
|
195
|
+
},
|
|
196
|
+
"&:hover::after, &:focus-visible::after": { bgcolor: "primary.main" }
|
|
197
|
+
}
|
|
198
|
+
});
|
|
199
|
+
$[15] = docked;
|
|
200
|
+
$[16] = t;
|
|
201
|
+
$[17] = width;
|
|
202
|
+
$[18] = t11;
|
|
203
|
+
} else t11 = $[18];
|
|
204
|
+
const t12 = opened && children;
|
|
205
|
+
let t13;
|
|
206
|
+
if ($[19] !== t10 || $[20] !== t11 || $[21] !== t12) {
|
|
207
|
+
t13 = /* @__PURE__ */ jsxs(Box, {
|
|
208
|
+
sx: t10,
|
|
209
|
+
children: [t11, t12]
|
|
210
|
+
});
|
|
211
|
+
$[19] = t10;
|
|
212
|
+
$[20] = t11;
|
|
213
|
+
$[21] = t12;
|
|
214
|
+
$[22] = t13;
|
|
215
|
+
} else t13 = $[22];
|
|
216
|
+
let t14;
|
|
217
|
+
if ($[23] !== id || $[24] !== t13 || $[25] !== t4 || $[26] !== t7) {
|
|
218
|
+
t14 = /* @__PURE__ */ jsxs(Box, {
|
|
219
|
+
component: "aside",
|
|
220
|
+
id,
|
|
221
|
+
"aria-label": t4,
|
|
222
|
+
sx: t7,
|
|
223
|
+
children: [t8, t13]
|
|
224
|
+
});
|
|
225
|
+
$[23] = id;
|
|
226
|
+
$[24] = t13;
|
|
227
|
+
$[25] = t4;
|
|
228
|
+
$[26] = t7;
|
|
229
|
+
$[27] = t14;
|
|
230
|
+
} else t14 = $[27];
|
|
231
|
+
return t14;
|
|
232
|
+
}
|
|
233
|
+
function _temp2$5(event) {
|
|
234
|
+
event.preventDefault();
|
|
235
|
+
event.currentTarget.setPointerCapture(event.pointerId);
|
|
236
|
+
}
|
|
237
|
+
function _temp$8(theme) {
|
|
238
|
+
return theme.zIndex.appBar - 1;
|
|
239
|
+
}
|
|
240
|
+
// src/components/core/account/UserAvatar.tsx
|
|
53
241
|
const getProfilePhoto = createServerFn({ method: "GET" }).handler(async () => {
|
|
54
242
|
const accessToken = await getAccessToken("graph");
|
|
55
243
|
try {
|
|
@@ -69,24 +257,20 @@ const initials = (name) => {
|
|
|
69
257
|
return `${words[0]?.[0] ?? ""}${last[0] ?? ""}`.toUpperCase();
|
|
70
258
|
};
|
|
71
259
|
const UserAvatar = (t0) => {
|
|
72
|
-
const $ = c(
|
|
73
|
-
if ($[0] !== "a3c35311052264d80f09c9f7325c63fdc7f22b064802a470759fdbf3b24f1f87") {
|
|
74
|
-
for (let $i = 0; $i < 11; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
75
|
-
$[0] = "a3c35311052264d80f09c9f7325c63fdc7f22b064802a470759fdbf3b24f1f87";
|
|
76
|
-
}
|
|
260
|
+
const $ = c(10);
|
|
77
261
|
const { user } = t0;
|
|
78
262
|
let t1;
|
|
79
|
-
if ($[
|
|
263
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
80
264
|
t1 = [
|
|
81
265
|
"graph",
|
|
82
266
|
"me",
|
|
83
267
|
"photo"
|
|
84
268
|
];
|
|
85
|
-
$[
|
|
86
|
-
} else t1 = $[
|
|
269
|
+
$[0] = t1;
|
|
270
|
+
} else t1 = $[0];
|
|
87
271
|
const t2 = user.provider === "entra";
|
|
88
272
|
let t3;
|
|
89
|
-
if ($[
|
|
273
|
+
if ($[1] !== t2) {
|
|
90
274
|
t3 = {
|
|
91
275
|
queryKey: t1,
|
|
92
276
|
queryFn: _temp2$4,
|
|
@@ -95,14 +279,14 @@ const UserAvatar = (t0) => {
|
|
|
95
279
|
gcTime: Infinity,
|
|
96
280
|
networkMode: "offlineFirst"
|
|
97
281
|
};
|
|
98
|
-
$[
|
|
99
|
-
$[
|
|
100
|
-
} else t3 = $[
|
|
282
|
+
$[1] = t2;
|
|
283
|
+
$[2] = t3;
|
|
284
|
+
} else t3 = $[2];
|
|
101
285
|
const { data: photoUrl } = useQuery(t3);
|
|
102
286
|
const t4 = user.name;
|
|
103
287
|
const t5 = photoUrl || void 0;
|
|
104
288
|
let t6;
|
|
105
|
-
if ($[
|
|
289
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
106
290
|
t6 = {
|
|
107
291
|
width: {
|
|
108
292
|
xs: 32,
|
|
@@ -120,44 +304,39 @@ const UserAvatar = (t0) => {
|
|
|
120
304
|
backgroundColor: "primary.main",
|
|
121
305
|
color: "primary.contrastText"
|
|
122
306
|
};
|
|
123
|
-
$[
|
|
124
|
-
} else t6 = $[
|
|
307
|
+
$[3] = t6;
|
|
308
|
+
} else t6 = $[3];
|
|
125
309
|
let t7;
|
|
126
|
-
if ($[
|
|
310
|
+
if ($[4] !== user.name) {
|
|
127
311
|
t7 = initials(user.name);
|
|
128
|
-
$[
|
|
129
|
-
$[
|
|
130
|
-
} else t7 = $[
|
|
312
|
+
$[4] = user.name;
|
|
313
|
+
$[5] = t7;
|
|
314
|
+
} else t7 = $[5];
|
|
131
315
|
let t8;
|
|
132
|
-
if ($[
|
|
316
|
+
if ($[6] !== t5 || $[7] !== t7 || $[8] !== user.name) {
|
|
133
317
|
t8 = /* @__PURE__ */ jsx(Avatar, {
|
|
134
318
|
alt: t4,
|
|
135
319
|
src: t5,
|
|
136
320
|
sx: t6,
|
|
137
321
|
children: t7
|
|
138
322
|
});
|
|
139
|
-
$[
|
|
140
|
-
$[
|
|
141
|
-
$[
|
|
142
|
-
$[
|
|
143
|
-
} else t8 = $[
|
|
323
|
+
$[6] = t5;
|
|
324
|
+
$[7] = t7;
|
|
325
|
+
$[8] = user.name;
|
|
326
|
+
$[9] = t8;
|
|
327
|
+
} else t8 = $[9];
|
|
144
328
|
return t8;
|
|
145
329
|
};
|
|
146
|
-
function _temp$
|
|
330
|
+
function _temp$7() {
|
|
147
331
|
return getProfilePhoto();
|
|
148
332
|
}
|
|
149
333
|
function _temp2$4() {
|
|
150
|
-
return withOfflineFallback(OFFLINE_PHOTO_KEY, _temp$
|
|
334
|
+
return withOfflineFallback(OFFLINE_PHOTO_KEY, _temp$7);
|
|
151
335
|
}
|
|
152
|
-
|
|
153
|
-
//#region src/components/core/account/UserMenu.tsx
|
|
336
|
+
// src/components/core/account/UserMenu.tsx
|
|
154
337
|
const capitalize = (value) => value && value.charAt(0).toUpperCase() + value.slice(1);
|
|
155
338
|
const ToolbarAccount = () => {
|
|
156
|
-
const $ = c(
|
|
157
|
-
if ($[0] !== "c487944ca26c93020a0a472b2bcd0cd7558127bf9f91a91583402c31cc1714ef") {
|
|
158
|
-
for (let $i = 0; $i < 114; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
159
|
-
$[0] = "c487944ca26c93020a0a472b2bcd0cd7558127bf9f91a91583402c31cc1714ef";
|
|
160
|
-
}
|
|
339
|
+
const $ = c(116);
|
|
161
340
|
const [anchorElement, setAnchorElement] = useState();
|
|
162
341
|
const [tab, setTab] = useState("settings");
|
|
163
342
|
const [previousTab, setPreviousTab] = useState();
|
|
@@ -165,107 +344,113 @@ const ToolbarAccount = () => {
|
|
|
165
344
|
const { t, i18n } = useTranslation();
|
|
166
345
|
const { mode, setMode } = useColorScheme();
|
|
167
346
|
let t0;
|
|
168
|
-
if ($[
|
|
347
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
169
348
|
t0 = { from: rootRouteId };
|
|
170
|
-
$[
|
|
171
|
-
} else t0 = $[
|
|
349
|
+
$[0] = t0;
|
|
350
|
+
} else t0 = $[0];
|
|
172
351
|
const user = useMatch(t0).context.user;
|
|
352
|
+
let t1;
|
|
353
|
+
if ($[1] !== i18n.options.supportedLngs) {
|
|
354
|
+
t1 = Array.isArray(i18n.options.supportedLngs) ? i18n.options.supportedLngs : [];
|
|
355
|
+
$[1] = i18n.options.supportedLngs;
|
|
356
|
+
$[2] = t1;
|
|
357
|
+
} else t1 = $[2];
|
|
173
358
|
let T0;
|
|
174
359
|
let closeMenu;
|
|
175
360
|
let openMenu;
|
|
176
361
|
let settings;
|
|
177
|
-
let t1;
|
|
178
362
|
let t2;
|
|
363
|
+
let t3;
|
|
179
364
|
let theme;
|
|
180
|
-
if ($[
|
|
181
|
-
const supportedLanguages =
|
|
365
|
+
if ($[3] !== i18n || $[4] !== mode || $[5] !== previousTab || $[6] !== setMode || $[7] !== t || $[8] !== t1 || $[9] !== tab) {
|
|
366
|
+
const supportedLanguages = t1.filter(_temp$6);
|
|
182
367
|
const languageDisplayNames = new Intl.DisplayNames([i18n.language], { type: "language" });
|
|
183
|
-
let t3;
|
|
184
|
-
if ($[15] !== t) {
|
|
185
|
-
t3 = t("Layout.Light");
|
|
186
|
-
$[15] = t;
|
|
187
|
-
$[16] = t3;
|
|
188
|
-
} else t3 = $[16];
|
|
189
368
|
let t4;
|
|
190
|
-
if ($[17] !==
|
|
191
|
-
t4 =
|
|
192
|
-
|
|
193
|
-
icon: LightMode,
|
|
194
|
-
label: t3
|
|
195
|
-
};
|
|
196
|
-
$[17] = t3;
|
|
369
|
+
if ($[17] !== t) {
|
|
370
|
+
t4 = t("Layout.Light");
|
|
371
|
+
$[17] = t;
|
|
197
372
|
$[18] = t4;
|
|
198
373
|
} else t4 = $[18];
|
|
199
374
|
let t5;
|
|
200
|
-
if ($[19] !==
|
|
201
|
-
t5 =
|
|
202
|
-
|
|
375
|
+
if ($[19] !== t4) {
|
|
376
|
+
t5 = {
|
|
377
|
+
mode: "light",
|
|
378
|
+
icon: LightMode,
|
|
379
|
+
label: t4
|
|
380
|
+
};
|
|
381
|
+
$[19] = t4;
|
|
203
382
|
$[20] = t5;
|
|
204
383
|
} else t5 = $[20];
|
|
205
384
|
let t6;
|
|
206
|
-
if ($[21] !==
|
|
207
|
-
t6 =
|
|
208
|
-
|
|
209
|
-
icon: DarkMode,
|
|
210
|
-
label: t5
|
|
211
|
-
};
|
|
212
|
-
$[21] = t5;
|
|
385
|
+
if ($[21] !== t) {
|
|
386
|
+
t6 = t("Layout.Dark");
|
|
387
|
+
$[21] = t;
|
|
213
388
|
$[22] = t6;
|
|
214
389
|
} else t6 = $[22];
|
|
215
390
|
let t7;
|
|
216
|
-
if ($[23] !==
|
|
217
|
-
t7 =
|
|
218
|
-
|
|
391
|
+
if ($[23] !== t6) {
|
|
392
|
+
t7 = {
|
|
393
|
+
mode: "dark",
|
|
394
|
+
icon: DarkMode,
|
|
395
|
+
label: t6
|
|
396
|
+
};
|
|
397
|
+
$[23] = t6;
|
|
219
398
|
$[24] = t7;
|
|
220
399
|
} else t7 = $[24];
|
|
221
400
|
let t8;
|
|
222
|
-
if ($[25] !==
|
|
223
|
-
t8 =
|
|
224
|
-
|
|
225
|
-
icon: SettingsBrightness,
|
|
226
|
-
label: t7
|
|
227
|
-
};
|
|
228
|
-
$[25] = t7;
|
|
401
|
+
if ($[25] !== t) {
|
|
402
|
+
t8 = t("Layout.System");
|
|
403
|
+
$[25] = t;
|
|
229
404
|
$[26] = t8;
|
|
230
405
|
} else t8 = $[26];
|
|
231
406
|
let t9;
|
|
232
|
-
if ($[27] !==
|
|
233
|
-
t9 =
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
t8
|
|
237
|
-
|
|
238
|
-
$[27] =
|
|
239
|
-
$[28] =
|
|
240
|
-
|
|
241
|
-
$[30] = t9;
|
|
242
|
-
} else t9 = $[30];
|
|
243
|
-
const colorModes = t9;
|
|
407
|
+
if ($[27] !== t8) {
|
|
408
|
+
t9 = {
|
|
409
|
+
mode: "system",
|
|
410
|
+
icon: SettingsBrightness,
|
|
411
|
+
label: t8
|
|
412
|
+
};
|
|
413
|
+
$[27] = t8;
|
|
414
|
+
$[28] = t9;
|
|
415
|
+
} else t9 = $[28];
|
|
244
416
|
let t10;
|
|
245
|
-
if ($[31]
|
|
246
|
-
t10 =
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
417
|
+
if ($[29] !== t5 || $[30] !== t7 || $[31] !== t9) {
|
|
418
|
+
t10 = [
|
|
419
|
+
t5,
|
|
420
|
+
t7,
|
|
421
|
+
t9
|
|
422
|
+
];
|
|
423
|
+
$[29] = t5;
|
|
424
|
+
$[30] = t7;
|
|
425
|
+
$[31] = t9;
|
|
426
|
+
$[32] = t10;
|
|
427
|
+
} else t10 = $[32];
|
|
428
|
+
const colorModes = t10;
|
|
250
429
|
let t11;
|
|
251
|
-
if ($[
|
|
252
|
-
t11 = () => setAnchorElement(
|
|
253
|
-
$[
|
|
254
|
-
} else t11 = $[
|
|
255
|
-
|
|
430
|
+
if ($[33] === Symbol.for("react.memo_cache_sentinel")) {
|
|
431
|
+
t11 = (event) => setAnchorElement(event.currentTarget);
|
|
432
|
+
$[33] = t11;
|
|
433
|
+
} else t11 = $[33];
|
|
434
|
+
openMenu = t11;
|
|
256
435
|
let t12;
|
|
257
|
-
if ($[
|
|
258
|
-
t12 = (
|
|
259
|
-
setPreviousTab(tab);
|
|
260
|
-
setTab(newTab);
|
|
261
|
-
};
|
|
262
|
-
$[33] = tab;
|
|
436
|
+
if ($[34] === Symbol.for("react.memo_cache_sentinel")) {
|
|
437
|
+
t12 = () => setAnchorElement(void 0);
|
|
263
438
|
$[34] = t12;
|
|
264
439
|
} else t12 = $[34];
|
|
265
|
-
|
|
440
|
+
closeMenu = t12;
|
|
266
441
|
let t13;
|
|
267
|
-
if ($[35] !==
|
|
268
|
-
t13 = (
|
|
442
|
+
if ($[35] !== tab) {
|
|
443
|
+
t13 = (newTab) => () => {
|
|
444
|
+
setPreviousTab(tab);
|
|
445
|
+
setTab(newTab);
|
|
446
|
+
};
|
|
447
|
+
$[35] = tab;
|
|
448
|
+
$[36] = t13;
|
|
449
|
+
} else t13 = $[36];
|
|
450
|
+
const changeTab = t13;
|
|
451
|
+
let t14;
|
|
452
|
+
if ($[37] !== changeTab) {
|
|
453
|
+
t14 = (title) => /* @__PURE__ */ jsxs(ListSubheader, {
|
|
269
454
|
onClick: changeTab("settings"),
|
|
270
455
|
sx: {
|
|
271
456
|
backgroundColor: "transparent",
|
|
@@ -286,156 +471,156 @@ const ToolbarAccount = () => {
|
|
|
286
471
|
title
|
|
287
472
|
]
|
|
288
473
|
});
|
|
289
|
-
$[
|
|
290
|
-
$[
|
|
291
|
-
} else
|
|
292
|
-
const backHeader =
|
|
293
|
-
let t14;
|
|
294
|
-
if ($[37] === Symbol.for("react.memo_cache_sentinel")) {
|
|
295
|
-
t14 = { backgroundColor: "transparent" };
|
|
296
|
-
$[37] = t14;
|
|
297
|
-
} else t14 = $[37];
|
|
474
|
+
$[37] = changeTab;
|
|
475
|
+
$[38] = t14;
|
|
476
|
+
} else t14 = $[38];
|
|
477
|
+
const backHeader = t14;
|
|
298
478
|
let t15;
|
|
299
|
-
if ($[
|
|
300
|
-
t15 =
|
|
301
|
-
$[38] = t;
|
|
479
|
+
if ($[39] === Symbol.for("react.memo_cache_sentinel")) {
|
|
480
|
+
t15 = { backgroundColor: "transparent" };
|
|
302
481
|
$[39] = t15;
|
|
303
482
|
} else t15 = $[39];
|
|
304
483
|
let t16;
|
|
305
|
-
if ($[40] !==
|
|
306
|
-
t16 =
|
|
307
|
-
|
|
308
|
-
children: t15
|
|
309
|
-
});
|
|
310
|
-
$[40] = t15;
|
|
484
|
+
if ($[40] !== t) {
|
|
485
|
+
t16 = t("Layout.Settings");
|
|
486
|
+
$[40] = t;
|
|
311
487
|
$[41] = t16;
|
|
312
488
|
} else t16 = $[41];
|
|
313
489
|
let t17;
|
|
314
|
-
if ($[42] !==
|
|
315
|
-
t17 =
|
|
316
|
-
|
|
490
|
+
if ($[42] !== t16) {
|
|
491
|
+
t17 = /* @__PURE__ */ jsx(ListSubheader, {
|
|
492
|
+
sx: t15,
|
|
493
|
+
children: t16
|
|
494
|
+
});
|
|
495
|
+
$[42] = t16;
|
|
317
496
|
$[43] = t17;
|
|
318
497
|
} else t17 = $[43];
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
$[
|
|
324
|
-
} else
|
|
498
|
+
let t18;
|
|
499
|
+
if ($[44] !== changeTab) {
|
|
500
|
+
t18 = changeTab("theme");
|
|
501
|
+
$[44] = changeTab;
|
|
502
|
+
$[45] = t18;
|
|
503
|
+
} else t18 = $[45];
|
|
504
|
+
const t19 = previousTab === "theme";
|
|
325
505
|
let t20;
|
|
326
|
-
if ($[
|
|
327
|
-
t20 =
|
|
328
|
-
$[
|
|
329
|
-
} else t20 = $[
|
|
506
|
+
if ($[46] === Symbol.for("react.memo_cache_sentinel")) {
|
|
507
|
+
t20 = { py: .3 };
|
|
508
|
+
$[46] = t20;
|
|
509
|
+
} else t20 = $[46];
|
|
330
510
|
let t21;
|
|
331
|
-
if ($[
|
|
332
|
-
t21 =
|
|
333
|
-
$[46] = t;
|
|
511
|
+
if ($[47] === Symbol.for("react.memo_cache_sentinel")) {
|
|
512
|
+
t21 = /* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx(Brightness4, {}) });
|
|
334
513
|
$[47] = t21;
|
|
335
514
|
} else t21 = $[47];
|
|
336
515
|
let t22;
|
|
337
|
-
if ($[48] !==
|
|
338
|
-
t22 =
|
|
339
|
-
$[48] =
|
|
340
|
-
$[49] =
|
|
341
|
-
|
|
342
|
-
$[51] = t22;
|
|
343
|
-
} else t22 = $[51];
|
|
516
|
+
if ($[48] !== t) {
|
|
517
|
+
t22 = t("Layout.Appearance");
|
|
518
|
+
$[48] = t;
|
|
519
|
+
$[49] = t22;
|
|
520
|
+
} else t22 = $[49];
|
|
344
521
|
let t23;
|
|
345
|
-
if ($[
|
|
346
|
-
t23 =
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
$[
|
|
351
|
-
|
|
352
|
-
$[54] = t23;
|
|
353
|
-
} else t23 = $[54];
|
|
522
|
+
if ($[50] !== colorModes || $[51] !== mode || $[52] !== t) {
|
|
523
|
+
t23 = colorModes.find((m) => m.mode === mode)?.label ?? t("Layout.System");
|
|
524
|
+
$[50] = colorModes;
|
|
525
|
+
$[51] = mode;
|
|
526
|
+
$[52] = t;
|
|
527
|
+
$[53] = t23;
|
|
528
|
+
} else t23 = $[53];
|
|
354
529
|
let t24;
|
|
355
|
-
if ($[55]
|
|
356
|
-
t24 = /* @__PURE__ */ jsx(
|
|
357
|
-
|
|
358
|
-
|
|
530
|
+
if ($[54] !== t22 || $[55] !== t23) {
|
|
531
|
+
t24 = /* @__PURE__ */ jsx(ListItemText, {
|
|
532
|
+
primary: t22,
|
|
533
|
+
secondary: t23
|
|
534
|
+
});
|
|
535
|
+
$[54] = t22;
|
|
536
|
+
$[55] = t23;
|
|
537
|
+
$[56] = t24;
|
|
538
|
+
} else t24 = $[56];
|
|
359
539
|
let t25;
|
|
360
|
-
if ($[
|
|
361
|
-
t25 = /* @__PURE__ */
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
540
|
+
if ($[57] === Symbol.for("react.memo_cache_sentinel")) {
|
|
541
|
+
t25 = /* @__PURE__ */ jsx(ChevronRight, {});
|
|
542
|
+
$[57] = t25;
|
|
543
|
+
} else t25 = $[57];
|
|
544
|
+
let t26;
|
|
545
|
+
if ($[58] !== t18 || $[59] !== t19 || $[60] !== t24) {
|
|
546
|
+
t26 = /* @__PURE__ */ jsxs(ListItemButton, {
|
|
547
|
+
onClick: t18,
|
|
548
|
+
autoFocus: t19,
|
|
549
|
+
sx: t20,
|
|
365
550
|
children: [
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
551
|
+
t21,
|
|
552
|
+
t24,
|
|
553
|
+
t25
|
|
369
554
|
]
|
|
370
555
|
});
|
|
371
|
-
$[
|
|
372
|
-
$[
|
|
373
|
-
$[
|
|
374
|
-
$[59] = t25;
|
|
375
|
-
} else t25 = $[59];
|
|
376
|
-
let t26;
|
|
377
|
-
if ($[60] !== changeTab) {
|
|
378
|
-
t26 = changeTab("language");
|
|
379
|
-
$[60] = changeTab;
|
|
556
|
+
$[58] = t18;
|
|
557
|
+
$[59] = t19;
|
|
558
|
+
$[60] = t24;
|
|
380
559
|
$[61] = t26;
|
|
381
560
|
} else t26 = $[61];
|
|
382
561
|
let t27;
|
|
383
|
-
if ($[62]
|
|
384
|
-
t27 =
|
|
385
|
-
$[62] =
|
|
386
|
-
|
|
562
|
+
if ($[62] !== changeTab) {
|
|
563
|
+
t27 = changeTab("language");
|
|
564
|
+
$[62] = changeTab;
|
|
565
|
+
$[63] = t27;
|
|
566
|
+
} else t27 = $[63];
|
|
387
567
|
let t28;
|
|
388
|
-
if ($[
|
|
389
|
-
t28 =
|
|
390
|
-
$[
|
|
391
|
-
} else t28 = $[
|
|
568
|
+
if ($[64] === Symbol.for("react.memo_cache_sentinel")) {
|
|
569
|
+
t28 = { py: .3 };
|
|
570
|
+
$[64] = t28;
|
|
571
|
+
} else t28 = $[64];
|
|
392
572
|
let t29;
|
|
393
|
-
if ($[
|
|
394
|
-
t29 =
|
|
395
|
-
$[64] = t;
|
|
573
|
+
if ($[65] === Symbol.for("react.memo_cache_sentinel")) {
|
|
574
|
+
t29 = /* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx(Translate, {}) });
|
|
396
575
|
$[65] = t29;
|
|
397
576
|
} else t29 = $[65];
|
|
398
577
|
let t30;
|
|
399
|
-
if ($[66]
|
|
400
|
-
t30 =
|
|
401
|
-
$[66] =
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
578
|
+
if ($[66] !== t) {
|
|
579
|
+
t30 = t("Layout.Language");
|
|
580
|
+
$[66] = t;
|
|
581
|
+
$[67] = t30;
|
|
582
|
+
} else t30 = $[67];
|
|
583
|
+
let t31;
|
|
584
|
+
if ($[68] === Symbol.for("react.memo_cache_sentinel")) {
|
|
585
|
+
t31 = /* @__PURE__ */ jsx(ChevronRight, {});
|
|
586
|
+
$[68] = t31;
|
|
587
|
+
} else t31 = $[68];
|
|
588
|
+
const t32 = /* @__PURE__ */ jsxs(ListItemButton, {
|
|
589
|
+
onClick: t27,
|
|
405
590
|
autoFocus: previousTab === "language",
|
|
406
|
-
sx:
|
|
591
|
+
sx: t28,
|
|
407
592
|
children: [
|
|
408
|
-
|
|
593
|
+
t29,
|
|
409
594
|
/* @__PURE__ */ jsx(ListItemText, {
|
|
410
|
-
primary:
|
|
595
|
+
primary: t30,
|
|
411
596
|
secondary: capitalize(languageDisplayNames.of(i18n.language))
|
|
412
597
|
}),
|
|
413
|
-
|
|
598
|
+
t31
|
|
414
599
|
]
|
|
415
600
|
});
|
|
416
|
-
let t32;
|
|
417
|
-
if ($[67] !== t16 || $[68] !== t25 || $[69] !== t31) {
|
|
418
|
-
t32 = /* @__PURE__ */ jsxs(List, {
|
|
419
|
-
subheader: t16,
|
|
420
|
-
children: [t25, t31]
|
|
421
|
-
});
|
|
422
|
-
$[67] = t16;
|
|
423
|
-
$[68] = t25;
|
|
424
|
-
$[69] = t31;
|
|
425
|
-
$[70] = t32;
|
|
426
|
-
} else t32 = $[70];
|
|
427
|
-
settings = t32;
|
|
428
601
|
let t33;
|
|
429
|
-
if ($[
|
|
430
|
-
t33 =
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
602
|
+
if ($[69] !== t17 || $[70] !== t26 || $[71] !== t32) {
|
|
603
|
+
t33 = /* @__PURE__ */ jsxs(List, {
|
|
604
|
+
subheader: t17,
|
|
605
|
+
children: [t26, t32]
|
|
606
|
+
});
|
|
607
|
+
$[69] = t17;
|
|
608
|
+
$[70] = t26;
|
|
609
|
+
$[71] = t32;
|
|
610
|
+
$[72] = t33;
|
|
611
|
+
} else t33 = $[72];
|
|
612
|
+
settings = t33;
|
|
435
613
|
let t34;
|
|
436
|
-
if ($[
|
|
437
|
-
t34 =
|
|
438
|
-
|
|
614
|
+
if ($[73] !== backHeader || $[74] !== t) {
|
|
615
|
+
t34 = backHeader(t("Layout.Appearance"));
|
|
616
|
+
$[73] = backHeader;
|
|
617
|
+
$[74] = t;
|
|
618
|
+
$[75] = t34;
|
|
619
|
+
} else t34 = $[75];
|
|
620
|
+
let t35;
|
|
621
|
+
if ($[76] !== colorModes || $[77] !== mode || $[78] !== setMode) {
|
|
622
|
+
t35 = colorModes.map((t36) => {
|
|
623
|
+
const { mode: modeValue, icon: Icon, label } = t36;
|
|
439
624
|
return /* @__PURE__ */ jsxs(ListItemButton, {
|
|
440
625
|
onClick: () => {
|
|
441
626
|
setMode(modeValue);
|
|
@@ -450,72 +635,73 @@ const ToolbarAccount = () => {
|
|
|
450
635
|
]
|
|
451
636
|
}, modeValue);
|
|
452
637
|
});
|
|
453
|
-
$[
|
|
454
|
-
$[
|
|
455
|
-
$[
|
|
456
|
-
$[
|
|
457
|
-
} else
|
|
458
|
-
let
|
|
459
|
-
if ($[
|
|
460
|
-
|
|
461
|
-
subheader:
|
|
462
|
-
children:
|
|
638
|
+
$[76] = colorModes;
|
|
639
|
+
$[77] = mode;
|
|
640
|
+
$[78] = setMode;
|
|
641
|
+
$[79] = t35;
|
|
642
|
+
} else t35 = $[79];
|
|
643
|
+
let t36;
|
|
644
|
+
if ($[80] !== t34 || $[81] !== t35) {
|
|
645
|
+
t36 = /* @__PURE__ */ jsx(List, {
|
|
646
|
+
subheader: t34,
|
|
647
|
+
children: t35
|
|
463
648
|
});
|
|
464
|
-
$[
|
|
465
|
-
$[
|
|
466
|
-
$[
|
|
467
|
-
} else
|
|
468
|
-
theme =
|
|
649
|
+
$[80] = t34;
|
|
650
|
+
$[81] = t35;
|
|
651
|
+
$[82] = t36;
|
|
652
|
+
} else t36 = $[82];
|
|
653
|
+
theme = t36;
|
|
469
654
|
T0 = List;
|
|
470
|
-
if ($[
|
|
471
|
-
|
|
472
|
-
$[
|
|
473
|
-
$[
|
|
474
|
-
$[
|
|
475
|
-
} else
|
|
476
|
-
|
|
655
|
+
if ($[83] !== backHeader || $[84] !== t) {
|
|
656
|
+
t2 = backHeader(t("Layout.Language"));
|
|
657
|
+
$[83] = backHeader;
|
|
658
|
+
$[84] = t;
|
|
659
|
+
$[85] = t2;
|
|
660
|
+
} else t2 = $[85];
|
|
661
|
+
t3 = supportedLanguages.map((languageCode) => /* @__PURE__ */ jsxs(ListItemButton, {
|
|
477
662
|
onClick: () => i18n.changeLanguage(languageCode).finally(() => closeMenu()),
|
|
478
663
|
selected: i18n.resolvedLanguage === languageCode,
|
|
479
664
|
"aria-current": i18n.resolvedLanguage === languageCode || void 0,
|
|
480
665
|
children: [/* @__PURE__ */ jsx(ListItemIcon, { children: i18n.resolvedLanguage === languageCode && /* @__PURE__ */ jsx(Done, {}) }), /* @__PURE__ */ jsx(ListItemText, { primary: capitalize(languageDisplayNames.of(languageCode)) })]
|
|
481
666
|
}, languageCode));
|
|
482
|
-
$[
|
|
483
|
-
$[
|
|
484
|
-
$[
|
|
485
|
-
$[
|
|
486
|
-
$[
|
|
487
|
-
$[
|
|
488
|
-
$[
|
|
489
|
-
$[
|
|
490
|
-
$[
|
|
491
|
-
$[
|
|
492
|
-
$[
|
|
493
|
-
$[
|
|
494
|
-
$[
|
|
667
|
+
$[3] = i18n;
|
|
668
|
+
$[4] = mode;
|
|
669
|
+
$[5] = previousTab;
|
|
670
|
+
$[6] = setMode;
|
|
671
|
+
$[7] = t;
|
|
672
|
+
$[8] = t1;
|
|
673
|
+
$[9] = tab;
|
|
674
|
+
$[10] = T0;
|
|
675
|
+
$[11] = closeMenu;
|
|
676
|
+
$[12] = openMenu;
|
|
677
|
+
$[13] = settings;
|
|
678
|
+
$[14] = t2;
|
|
679
|
+
$[15] = t3;
|
|
680
|
+
$[16] = theme;
|
|
495
681
|
} else {
|
|
496
|
-
T0 = $[
|
|
497
|
-
closeMenu = $[
|
|
498
|
-
openMenu = $[
|
|
499
|
-
settings = $[
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
theme = $[
|
|
682
|
+
T0 = $[10];
|
|
683
|
+
closeMenu = $[11];
|
|
684
|
+
openMenu = $[12];
|
|
685
|
+
settings = $[13];
|
|
686
|
+
t2 = $[14];
|
|
687
|
+
t3 = $[15];
|
|
688
|
+
theme = $[16];
|
|
503
689
|
}
|
|
504
|
-
let t3;
|
|
505
|
-
if ($[84] !== T0 || $[85] !== t1 || $[86] !== t2) {
|
|
506
|
-
t3 = /* @__PURE__ */ jsx(T0, {
|
|
507
|
-
subheader: t1,
|
|
508
|
-
children: t2
|
|
509
|
-
});
|
|
510
|
-
$[84] = T0;
|
|
511
|
-
$[85] = t1;
|
|
512
|
-
$[86] = t2;
|
|
513
|
-
$[87] = t3;
|
|
514
|
-
} else t3 = $[87];
|
|
515
|
-
const language = t3;
|
|
516
690
|
let t4;
|
|
517
|
-
if ($[88] !==
|
|
518
|
-
t4 =
|
|
691
|
+
if ($[86] !== T0 || $[87] !== t2 || $[88] !== t3) {
|
|
692
|
+
t4 = /* @__PURE__ */ jsx(T0, {
|
|
693
|
+
subheader: t2,
|
|
694
|
+
children: t3
|
|
695
|
+
});
|
|
696
|
+
$[86] = T0;
|
|
697
|
+
$[87] = t2;
|
|
698
|
+
$[88] = t3;
|
|
699
|
+
$[89] = t4;
|
|
700
|
+
} else t4 = $[89];
|
|
701
|
+
const language = t4;
|
|
702
|
+
let t5;
|
|
703
|
+
if ($[90] !== user) {
|
|
704
|
+
t5 = user ? /* @__PURE__ */ jsx(UserAvatar, { user }) : /* @__PURE__ */ jsx(AccountCircle, { sx: {
|
|
519
705
|
width: {
|
|
520
706
|
xs: 32,
|
|
521
707
|
sm: 40
|
|
@@ -525,56 +711,56 @@ const ToolbarAccount = () => {
|
|
|
525
711
|
sm: 40
|
|
526
712
|
}
|
|
527
713
|
} });
|
|
528
|
-
$[
|
|
529
|
-
$[
|
|
530
|
-
} else
|
|
531
|
-
let
|
|
532
|
-
if ($[
|
|
533
|
-
|
|
714
|
+
$[90] = user;
|
|
715
|
+
$[91] = t5;
|
|
716
|
+
} else t5 = $[91];
|
|
717
|
+
let t6;
|
|
718
|
+
if ($[92] !== open || $[93] !== openMenu || $[94] !== t5) {
|
|
719
|
+
t6 = /* @__PURE__ */ jsx(IconButton, {
|
|
534
720
|
size: "small",
|
|
535
721
|
edge: "end",
|
|
536
722
|
onClick: openMenu,
|
|
537
723
|
"aria-label": "Account",
|
|
538
724
|
"aria-expanded": open,
|
|
539
|
-
children:
|
|
725
|
+
children: t5
|
|
540
726
|
});
|
|
541
|
-
$[
|
|
542
|
-
$[
|
|
543
|
-
$[
|
|
544
|
-
$[
|
|
545
|
-
} else
|
|
546
|
-
let t6;
|
|
727
|
+
$[92] = open;
|
|
728
|
+
$[93] = openMenu;
|
|
729
|
+
$[94] = t5;
|
|
730
|
+
$[95] = t6;
|
|
731
|
+
} else t6 = $[95];
|
|
547
732
|
let t7;
|
|
548
733
|
let t8;
|
|
549
|
-
|
|
550
|
-
|
|
734
|
+
let t9;
|
|
735
|
+
if ($[96] === Symbol.for("react.memo_cache_sentinel")) {
|
|
736
|
+
t7 = {
|
|
551
737
|
vertical: "bottom",
|
|
552
738
|
horizontal: "right"
|
|
553
739
|
};
|
|
554
|
-
|
|
740
|
+
t8 = {
|
|
555
741
|
vertical: "top",
|
|
556
742
|
horizontal: "right"
|
|
557
743
|
};
|
|
558
|
-
|
|
744
|
+
t9 = { transition: { onExited: () => {
|
|
559
745
|
setTab("settings");
|
|
560
746
|
setPreviousTab(void 0);
|
|
561
747
|
} } };
|
|
562
|
-
$[
|
|
563
|
-
$[
|
|
564
|
-
$[
|
|
748
|
+
$[96] = t7;
|
|
749
|
+
$[97] = t8;
|
|
750
|
+
$[98] = t9;
|
|
565
751
|
} else {
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
752
|
+
t7 = $[96];
|
|
753
|
+
t8 = $[97];
|
|
754
|
+
t9 = $[98];
|
|
569
755
|
}
|
|
570
|
-
let t9;
|
|
571
|
-
if ($[97] === Symbol.for("react.memo_cache_sentinel")) {
|
|
572
|
-
t9 = { width: 240 };
|
|
573
|
-
$[97] = t9;
|
|
574
|
-
} else t9 = $[97];
|
|
575
756
|
let t10;
|
|
576
|
-
if ($[
|
|
577
|
-
t10 =
|
|
757
|
+
if ($[99] === Symbol.for("react.memo_cache_sentinel")) {
|
|
758
|
+
t10 = { width: 240 };
|
|
759
|
+
$[99] = t10;
|
|
760
|
+
} else t10 = $[99];
|
|
761
|
+
let t11;
|
|
762
|
+
if ($[100] !== t || $[101] !== user) {
|
|
763
|
+
t11 = /* @__PURE__ */ jsx(List, {
|
|
578
764
|
disablePadding: true,
|
|
579
765
|
children: user ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ListItem, { children: /* @__PURE__ */ jsx(ListItemText, {
|
|
580
766
|
primary: user.name,
|
|
@@ -591,57 +777,57 @@ const ToolbarAccount = () => {
|
|
|
591
777
|
children: [/* @__PURE__ */ jsx(ListItemIcon, { children: /* @__PURE__ */ jsx(Login, { color: "success" }) }), /* @__PURE__ */ jsx(ListItemText, { primary: t("Layout.LogIn") })]
|
|
592
778
|
})
|
|
593
779
|
});
|
|
594
|
-
$[
|
|
595
|
-
$[
|
|
596
|
-
$[
|
|
597
|
-
} else
|
|
598
|
-
const
|
|
599
|
-
const
|
|
600
|
-
const
|
|
601
|
-
let
|
|
602
|
-
if ($[
|
|
603
|
-
|
|
604
|
-
sx:
|
|
780
|
+
$[100] = t;
|
|
781
|
+
$[101] = user;
|
|
782
|
+
$[102] = t11;
|
|
783
|
+
} else t11 = $[102];
|
|
784
|
+
const t12 = tab === "settings" && settings;
|
|
785
|
+
const t13 = tab === "theme" && theme;
|
|
786
|
+
const t14 = tab === "language" && language;
|
|
787
|
+
let t15;
|
|
788
|
+
if ($[103] !== t11 || $[104] !== t12 || $[105] !== t13 || $[106] !== t14) {
|
|
789
|
+
t15 = /* @__PURE__ */ jsxs(Box, {
|
|
790
|
+
sx: t10,
|
|
605
791
|
children: [
|
|
606
|
-
t10,
|
|
607
792
|
t11,
|
|
608
793
|
t12,
|
|
609
|
-
t13
|
|
794
|
+
t13,
|
|
795
|
+
t14
|
|
610
796
|
]
|
|
611
797
|
});
|
|
612
|
-
$[
|
|
613
|
-
$[
|
|
614
|
-
$[
|
|
615
|
-
$[
|
|
616
|
-
$[
|
|
617
|
-
} else
|
|
618
|
-
let
|
|
619
|
-
if ($[
|
|
620
|
-
|
|
798
|
+
$[103] = t11;
|
|
799
|
+
$[104] = t12;
|
|
800
|
+
$[105] = t13;
|
|
801
|
+
$[106] = t14;
|
|
802
|
+
$[107] = t15;
|
|
803
|
+
} else t15 = $[107];
|
|
804
|
+
let t16;
|
|
805
|
+
if ($[108] !== anchorElement || $[109] !== closeMenu || $[110] !== open || $[111] !== t15) {
|
|
806
|
+
t16 = /* @__PURE__ */ jsx(Popover, {
|
|
621
807
|
anchorEl: anchorElement,
|
|
622
808
|
open,
|
|
623
809
|
onClose: closeMenu,
|
|
624
|
-
anchorOrigin:
|
|
625
|
-
transformOrigin:
|
|
626
|
-
slotProps:
|
|
627
|
-
children:
|
|
810
|
+
anchorOrigin: t7,
|
|
811
|
+
transformOrigin: t8,
|
|
812
|
+
slotProps: t9,
|
|
813
|
+
children: t15
|
|
628
814
|
});
|
|
629
|
-
$[
|
|
630
|
-
$[
|
|
631
|
-
$[
|
|
632
|
-
$[109] = t14;
|
|
633
|
-
$[110] = t15;
|
|
634
|
-
} else t15 = $[110];
|
|
635
|
-
let t16;
|
|
636
|
-
if ($[111] !== t15 || $[112] !== t5) {
|
|
637
|
-
t16 = /* @__PURE__ */ jsxs(Fragment, { children: [t5, t15] });
|
|
815
|
+
$[108] = anchorElement;
|
|
816
|
+
$[109] = closeMenu;
|
|
817
|
+
$[110] = open;
|
|
638
818
|
$[111] = t15;
|
|
639
|
-
$[112] =
|
|
819
|
+
$[112] = t16;
|
|
820
|
+
} else t16 = $[112];
|
|
821
|
+
let t17;
|
|
822
|
+
if ($[113] !== t16 || $[114] !== t6) {
|
|
823
|
+
t17 = /* @__PURE__ */ jsxs(Fragment, { children: [t6, t16] });
|
|
640
824
|
$[113] = t16;
|
|
641
|
-
|
|
642
|
-
|
|
825
|
+
$[114] = t6;
|
|
826
|
+
$[115] = t17;
|
|
827
|
+
} else t17 = $[115];
|
|
828
|
+
return t17;
|
|
643
829
|
};
|
|
644
|
-
function _temp$
|
|
830
|
+
function _temp$6(lng) {
|
|
645
831
|
return lng !== "cimode";
|
|
646
832
|
}
|
|
647
833
|
function _temp2$3() {
|
|
@@ -652,24 +838,20 @@ function _temp3$2() {
|
|
|
652
838
|
const returnTo = location.pathname + location.search;
|
|
653
839
|
location.href = `/auth/login?returnTo=${encodeURIComponent(returnTo)}`;
|
|
654
840
|
}
|
|
655
|
-
|
|
656
|
-
//#region src/components/core/AppTitle.tsx
|
|
841
|
+
// src/components/core/AppTitle.tsx
|
|
657
842
|
const AppTitle = () => {
|
|
658
|
-
const $ = c(
|
|
659
|
-
if ($[0] !== "0a90b98e48e219c432d1e242bac23d81d00604e034394a7615457ff1b26b4680") {
|
|
660
|
-
for (let $i = 0; $i < 6; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
661
|
-
$[0] = "0a90b98e48e219c432d1e242bac23d81d00604e034394a7615457ff1b26b4680";
|
|
662
|
-
}
|
|
843
|
+
const $ = c(5);
|
|
663
844
|
let t0;
|
|
664
|
-
if ($[
|
|
845
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
665
846
|
t0 = {
|
|
666
847
|
alignItems: "center",
|
|
667
|
-
flexGrow: 1
|
|
848
|
+
flexGrow: 1,
|
|
849
|
+
minWidth: 0
|
|
668
850
|
};
|
|
669
|
-
$[
|
|
670
|
-
} else t0 = $[
|
|
851
|
+
$[0] = t0;
|
|
852
|
+
} else t0 = $[0];
|
|
671
853
|
let t1;
|
|
672
|
-
if ($[
|
|
854
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
673
855
|
t1 = /* @__PURE__ */ jsx(RouterIconButton, {
|
|
674
856
|
to: "/",
|
|
675
857
|
size: "small",
|
|
@@ -681,27 +863,27 @@ const AppTitle = () => {
|
|
|
681
863
|
height: 32
|
|
682
864
|
})
|
|
683
865
|
});
|
|
684
|
-
$[
|
|
685
|
-
} else t1 = $[
|
|
866
|
+
$[1] = t1;
|
|
867
|
+
} else t1 = $[1];
|
|
686
868
|
let t2;
|
|
687
|
-
if ($[
|
|
869
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
688
870
|
t2 = { display: {
|
|
689
871
|
xs: "inline",
|
|
690
872
|
sm: "none"
|
|
691
873
|
} };
|
|
692
|
-
$[
|
|
693
|
-
} else t2 = $[
|
|
874
|
+
$[2] = t2;
|
|
875
|
+
} else t2 = $[2];
|
|
694
876
|
let t3;
|
|
695
|
-
if ($[
|
|
877
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
696
878
|
t3 = /* @__PURE__ */ jsx(Box, {
|
|
697
879
|
component: "span",
|
|
698
880
|
sx: t2,
|
|
699
881
|
children: manifest.short_name ?? manifest.name
|
|
700
882
|
});
|
|
701
|
-
$[
|
|
702
|
-
} else t3 = $[
|
|
883
|
+
$[3] = t3;
|
|
884
|
+
} else t3 = $[3];
|
|
703
885
|
let t4;
|
|
704
|
-
if ($[
|
|
886
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
705
887
|
t4 = /* @__PURE__ */ jsxs(Stack, {
|
|
706
888
|
direction: "row",
|
|
707
889
|
spacing: 1,
|
|
@@ -709,6 +891,7 @@ const AppTitle = () => {
|
|
|
709
891
|
children: [t1, /* @__PURE__ */ jsxs(Typography, {
|
|
710
892
|
variant: "h6",
|
|
711
893
|
component: "div",
|
|
894
|
+
noWrap: true,
|
|
712
895
|
children: [t3, /* @__PURE__ */ jsx(Box, {
|
|
713
896
|
component: "span",
|
|
714
897
|
sx: { display: {
|
|
@@ -719,18 +902,16 @@ const AppTitle = () => {
|
|
|
719
902
|
})]
|
|
720
903
|
})]
|
|
721
904
|
});
|
|
722
|
-
$[
|
|
723
|
-
} else t4 = $[
|
|
905
|
+
$[4] = t4;
|
|
906
|
+
} else t4 = $[4];
|
|
724
907
|
return t4;
|
|
725
908
|
};
|
|
726
|
-
|
|
727
|
-
//#region src/models/Navigation.ts
|
|
909
|
+
// src/models/Navigation.ts
|
|
728
910
|
const isPageItem = (item) => item.kind === "item";
|
|
729
911
|
const isPageGroup = (item) => item.kind === "group";
|
|
730
912
|
const isDivider = (item) => item.kind === "divider";
|
|
731
913
|
const isHeader = (item) => item.kind === "header";
|
|
732
|
-
|
|
733
|
-
//#region src/components/core/navigation/NavigationListItem.tsx
|
|
914
|
+
// src/components/core/navigation/NavigationListItem.tsx
|
|
734
915
|
const ICON_SIZE = 34;
|
|
735
916
|
const getSelectedColor = (theme) => theme.vars?.palette.primary.dark ?? theme.palette.primary.dark;
|
|
736
917
|
const getActionActiveColor = (theme) => theme.vars?.palette.action.active ?? theme.palette.action.active;
|
|
@@ -755,129 +936,112 @@ const routerButtonSx = (theme) => ({
|
|
|
755
936
|
"& .MuiAvatar-root": { backgroundColor: getActionActiveColor(theme) }
|
|
756
937
|
});
|
|
757
938
|
const IconOrAvatar = (t0) => {
|
|
758
|
-
const $ = c(
|
|
759
|
-
if ($[0] !== "72ab89b7ac49be296ae7b245115fd280a8d018beaf52f8d1a6f040d09fea6afa") {
|
|
760
|
-
for (let $i = 0; $i < 18; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
761
|
-
$[0] = "72ab89b7ac49be296ae7b245115fd280a8d018beaf52f8d1a6f040d09fea6afa";
|
|
762
|
-
}
|
|
939
|
+
const $ = c(17);
|
|
763
940
|
const { item, collapsed } = t0;
|
|
764
941
|
if (item.icon || collapsed) {
|
|
765
942
|
let t1;
|
|
766
|
-
if ($[
|
|
943
|
+
if ($[0] !== collapsed) {
|
|
767
944
|
t1 = collapsed ? {
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
945
|
+
width: "100%",
|
|
946
|
+
display: "flex",
|
|
947
|
+
flexDirection: "column",
|
|
948
|
+
alignItems: "center"
|
|
772
949
|
} : {};
|
|
773
|
-
$[
|
|
774
|
-
$[
|
|
775
|
-
} else t1 = $[
|
|
950
|
+
$[0] = collapsed;
|
|
951
|
+
$[1] = t1;
|
|
952
|
+
} else t1 = $[1];
|
|
776
953
|
let t2;
|
|
777
|
-
if ($[
|
|
954
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
778
955
|
t2 = {
|
|
779
956
|
display: "flex",
|
|
780
957
|
alignItems: "center",
|
|
781
958
|
justifyContent: "center",
|
|
782
959
|
minWidth: ICON_SIZE
|
|
783
960
|
};
|
|
784
|
-
$[
|
|
785
|
-
} else t2 = $[
|
|
961
|
+
$[2] = t2;
|
|
962
|
+
} else t2 = $[2];
|
|
786
963
|
const t3 = item.icon ?? null;
|
|
787
964
|
let t4;
|
|
788
|
-
if ($[
|
|
965
|
+
if ($[3] !== collapsed || $[4] !== item.icon || $[5] !== item.title) {
|
|
789
966
|
t4 = !item.icon && collapsed ? /* @__PURE__ */ jsx(Avatar$1, {
|
|
790
967
|
sx: {
|
|
791
968
|
width: 27,
|
|
792
969
|
height: 27,
|
|
793
970
|
fontSize: 12
|
|
794
971
|
},
|
|
795
|
-
children: item.title.split(" ").slice(0, 2).map(_temp$
|
|
972
|
+
children: item.title.split(" ").slice(0, 2).map(_temp$5).join("")
|
|
796
973
|
}) : null;
|
|
797
|
-
$[
|
|
798
|
-
$[
|
|
799
|
-
$[
|
|
800
|
-
$[
|
|
801
|
-
} else t4 = $[
|
|
974
|
+
$[3] = collapsed;
|
|
975
|
+
$[4] = item.icon;
|
|
976
|
+
$[5] = item.title;
|
|
977
|
+
$[6] = t4;
|
|
978
|
+
} else t4 = $[6];
|
|
802
979
|
let t5;
|
|
803
|
-
if ($[
|
|
980
|
+
if ($[7] !== t3 || $[8] !== t4) {
|
|
804
981
|
t5 = /* @__PURE__ */ jsxs(ListItemIcon$1, {
|
|
805
982
|
sx: t2,
|
|
806
983
|
children: [t3, t4]
|
|
807
984
|
});
|
|
808
|
-
$[
|
|
809
|
-
$[
|
|
810
|
-
$[
|
|
811
|
-
} else t5 = $[
|
|
985
|
+
$[7] = t3;
|
|
986
|
+
$[8] = t4;
|
|
987
|
+
$[9] = t5;
|
|
988
|
+
} else t5 = $[9];
|
|
812
989
|
let t6;
|
|
813
|
-
if ($[
|
|
990
|
+
if ($[10] !== collapsed || $[11] !== item.title) {
|
|
814
991
|
t6 = collapsed ? /* @__PURE__ */ jsx(Typography$1, {
|
|
815
992
|
variant: "caption",
|
|
816
993
|
sx: {
|
|
817
|
-
position: "absolute",
|
|
818
|
-
bottom: -18,
|
|
819
|
-
left: "50%",
|
|
820
|
-
transform: "translateX(-50%)",
|
|
821
994
|
fontSize: 10,
|
|
822
995
|
fontWeight: 500,
|
|
823
|
-
textAlign: "center"
|
|
824
|
-
whiteSpace: "nowrap",
|
|
825
|
-
overflow: "hidden",
|
|
826
|
-
textOverflow: "ellipsis",
|
|
827
|
-
maxWidth: 56
|
|
996
|
+
textAlign: "center"
|
|
828
997
|
},
|
|
829
998
|
children: item.title
|
|
830
999
|
}) : null;
|
|
831
|
-
$[
|
|
832
|
-
$[
|
|
833
|
-
$[
|
|
834
|
-
} else t6 = $[
|
|
1000
|
+
$[10] = collapsed;
|
|
1001
|
+
$[11] = item.title;
|
|
1002
|
+
$[12] = t6;
|
|
1003
|
+
} else t6 = $[12];
|
|
835
1004
|
let t7;
|
|
836
|
-
if ($[
|
|
1005
|
+
if ($[13] !== t1 || $[14] !== t5 || $[15] !== t6) {
|
|
837
1006
|
t7 = /* @__PURE__ */ jsxs(Box$1, {
|
|
838
1007
|
sx: t1,
|
|
839
1008
|
children: [t5, t6]
|
|
840
1009
|
});
|
|
841
|
-
$[
|
|
842
|
-
$[
|
|
843
|
-
$[
|
|
844
|
-
$[
|
|
845
|
-
} else t7 = $[
|
|
1010
|
+
$[13] = t1;
|
|
1011
|
+
$[14] = t5;
|
|
1012
|
+
$[15] = t6;
|
|
1013
|
+
$[16] = t7;
|
|
1014
|
+
} else t7 = $[16];
|
|
846
1015
|
return t7;
|
|
847
1016
|
}
|
|
848
1017
|
return null;
|
|
849
1018
|
};
|
|
850
1019
|
const MiniPopover = (t0) => {
|
|
851
|
-
const $ = c(
|
|
852
|
-
if ($[0] !== "72ab89b7ac49be296ae7b245115fd280a8d018beaf52f8d1a6f040d09fea6afa") {
|
|
853
|
-
for (let $i = 0; $i < 8; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
854
|
-
$[0] = "72ab89b7ac49be296ae7b245115fd280a8d018beaf52f8d1a6f040d09fea6afa";
|
|
855
|
-
}
|
|
1020
|
+
const $ = c(7);
|
|
856
1021
|
const { open, children } = t0;
|
|
857
1022
|
let t1;
|
|
858
|
-
if ($[
|
|
1023
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
859
1024
|
t1 = {
|
|
860
1025
|
position: "fixed",
|
|
861
1026
|
left: 84,
|
|
862
1027
|
pl: "2px",
|
|
863
1028
|
pb: "10px"
|
|
864
1029
|
};
|
|
865
|
-
$[
|
|
866
|
-
} else t1 = $[
|
|
1030
|
+
$[0] = t1;
|
|
1031
|
+
} else t1 = $[0];
|
|
867
1032
|
let t2;
|
|
868
|
-
if ($[
|
|
1033
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
869
1034
|
t2 = {
|
|
870
1035
|
pt: .5,
|
|
871
1036
|
pb: .5,
|
|
872
|
-
transform: "translateY(calc(50% - 30px))",
|
|
873
1037
|
maxHeight: "min(calc(100vh - 100px), 560px)",
|
|
874
1038
|
overflowY: "auto",
|
|
875
1039
|
overscrollBehavior: "contain"
|
|
876
1040
|
};
|
|
877
|
-
$[
|
|
878
|
-
} else t2 = $[
|
|
1041
|
+
$[1] = t2;
|
|
1042
|
+
} else t2 = $[1];
|
|
879
1043
|
let t3;
|
|
880
|
-
if ($[
|
|
1044
|
+
if ($[2] !== children) {
|
|
881
1045
|
t3 = /* @__PURE__ */ jsx(Box$1, {
|
|
882
1046
|
sx: t1,
|
|
883
1047
|
children: /* @__PURE__ */ jsx(Paper$1, {
|
|
@@ -885,177 +1049,176 @@ const MiniPopover = (t0) => {
|
|
|
885
1049
|
children
|
|
886
1050
|
})
|
|
887
1051
|
});
|
|
888
|
-
$[
|
|
889
|
-
$[
|
|
890
|
-
} else t3 = $[
|
|
1052
|
+
$[2] = children;
|
|
1053
|
+
$[3] = t3;
|
|
1054
|
+
} else t3 = $[3];
|
|
891
1055
|
let t4;
|
|
892
|
-
if ($[
|
|
1056
|
+
if ($[4] !== open || $[5] !== t3) {
|
|
893
1057
|
t4 = /* @__PURE__ */ jsx(Grow, {
|
|
894
1058
|
in: open,
|
|
1059
|
+
unmountOnExit: true,
|
|
895
1060
|
children: t3
|
|
896
1061
|
});
|
|
897
|
-
$[
|
|
898
|
-
$[
|
|
899
|
-
$[
|
|
900
|
-
} else t4 = $[
|
|
1062
|
+
$[4] = open;
|
|
1063
|
+
$[5] = t3;
|
|
1064
|
+
$[6] = t4;
|
|
1065
|
+
} else t4 = $[6];
|
|
901
1066
|
return t4;
|
|
902
1067
|
};
|
|
903
1068
|
const NavigationListItem = (t0) => {
|
|
904
|
-
const $ = c(
|
|
905
|
-
|
|
906
|
-
for (let $i = 0; $i < 64; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
907
|
-
$[0] = "72ab89b7ac49be296ae7b245115fd280a8d018beaf52f8d1a6f040d09fea6afa";
|
|
908
|
-
}
|
|
909
|
-
const { item, isOpen, selected, disabled, collapsed, isSidebarFullyExpanded: t1, isSidebarFullyCollapsed, onClick, renderNested, onClose } = t0;
|
|
1069
|
+
const $ = c(72);
|
|
1070
|
+
const { item, isOpen, disabled, collapsed, isSidebarFullyExpanded: t1, isSidebarFullyCollapsed, onClick, renderNested, onClose } = t0;
|
|
910
1071
|
const isSidebarFullyExpanded = t1 === void 0 ? true : t1;
|
|
911
1072
|
const [miniOpen, setMiniOpen] = useState(false);
|
|
912
1073
|
const groupButtonRef = useRef(null);
|
|
1074
|
+
const matchRoute = useMatchRoute();
|
|
913
1075
|
let t2;
|
|
914
|
-
if ($[
|
|
1076
|
+
if ($[0] !== item) {
|
|
915
1077
|
t2 = isPageGroup(item);
|
|
916
|
-
$[
|
|
917
|
-
$[
|
|
918
|
-
} else t2 = $[
|
|
1078
|
+
$[0] = item;
|
|
1079
|
+
$[1] = t2;
|
|
1080
|
+
} else t2 = $[1];
|
|
919
1081
|
const groupItem = t2;
|
|
920
|
-
|
|
1082
|
+
let T0;
|
|
1083
|
+
let itemId;
|
|
921
1084
|
let t3;
|
|
922
|
-
|
|
923
|
-
t3 = (theme) => {
|
|
924
|
-
if (collapsed && isSidebarFullyCollapsed && groupItem) return {
|
|
925
|
-
fontSize: 18,
|
|
926
|
-
position: "absolute",
|
|
927
|
-
top: "41.5%",
|
|
928
|
-
right: "2px",
|
|
929
|
-
transform: "translateY(-50%) rotate(-90deg)"
|
|
930
|
-
};
|
|
931
|
-
if (!collapsed && isSidebarFullyExpanded && groupItem) return {
|
|
932
|
-
ml: .5,
|
|
933
|
-
transform: `rotate(${isOpen ? 0 : -90}deg)`,
|
|
934
|
-
transition: theme.transitions.create("transform", {
|
|
935
|
-
easing: theme.transitions.easing.sharp,
|
|
936
|
-
duration: 100
|
|
937
|
-
})
|
|
938
|
-
};
|
|
939
|
-
return { display: "none" };
|
|
940
|
-
};
|
|
941
|
-
$[3] = collapsed;
|
|
942
|
-
$[4] = groupItem;
|
|
943
|
-
$[5] = isOpen;
|
|
944
|
-
$[6] = isSidebarFullyCollapsed;
|
|
945
|
-
$[7] = isSidebarFullyExpanded;
|
|
946
|
-
$[8] = t3;
|
|
947
|
-
} else t3 = $[8];
|
|
948
|
-
const chevronSx = t3;
|
|
949
|
-
const shouldJustExpand = groupItem && !collapsed;
|
|
950
|
-
const t4 = collapsed ? 60 : 48;
|
|
1085
|
+
let t4;
|
|
951
1086
|
let t5;
|
|
952
|
-
if ($[9] !== t4) {
|
|
953
|
-
t5 = {
|
|
954
|
-
px: 1.4,
|
|
955
|
-
height: t4
|
|
956
|
-
};
|
|
957
|
-
$[9] = t4;
|
|
958
|
-
$[10] = t5;
|
|
959
|
-
} else t5 = $[10];
|
|
960
1087
|
let t6;
|
|
961
|
-
if ($[
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
sx: t5
|
|
966
|
-
};
|
|
967
|
-
$[11] = disabled;
|
|
968
|
-
$[12] = selected;
|
|
969
|
-
$[13] = t5;
|
|
970
|
-
$[14] = t6;
|
|
971
|
-
} else t6 = $[14];
|
|
972
|
-
const buttonProps = t6;
|
|
973
|
-
let t7;
|
|
974
|
-
if ($[15] !== collapsed || $[16] !== item) {
|
|
975
|
-
t7 = /* @__PURE__ */ jsx(IconOrAvatar, {
|
|
976
|
-
item,
|
|
977
|
-
collapsed
|
|
1088
|
+
if ($[2] !== collapsed || $[3] !== disabled || $[4] !== groupItem || $[5] !== isOpen || $[6] !== isSidebarFullyCollapsed || $[7] !== isSidebarFullyExpanded || $[8] !== item || $[9] !== matchRoute || $[10] !== miniOpen || $[11] !== onClick || $[12] !== onClose) {
|
|
1089
|
+
const containsActive = (navItem) => isPageGroup(navItem) ? navItem.children.some(containsActive) : isPageItem(navItem) && !!navItem.to && !!matchRoute({
|
|
1090
|
+
to: navItem.to,
|
|
1091
|
+
params: navItem.params
|
|
978
1092
|
});
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
$[
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
1093
|
+
itemId = groupItem ? `group-${item.title}` : `item-${item.to ?? item.href ?? item.title}`;
|
|
1094
|
+
let t7;
|
|
1095
|
+
if ($[19] !== collapsed || $[20] !== groupItem || $[21] !== isOpen || $[22] !== isSidebarFullyCollapsed || $[23] !== isSidebarFullyExpanded) {
|
|
1096
|
+
t7 = (theme) => {
|
|
1097
|
+
if (collapsed && isSidebarFullyCollapsed && groupItem) return {
|
|
1098
|
+
fontSize: 18,
|
|
1099
|
+
position: "absolute",
|
|
1100
|
+
top: 21,
|
|
1101
|
+
right: "2px",
|
|
1102
|
+
transform: "translateY(-50%) rotate(-90deg)"
|
|
1103
|
+
};
|
|
1104
|
+
if (!collapsed && isSidebarFullyExpanded && groupItem) return {
|
|
1105
|
+
ml: .5,
|
|
1106
|
+
transform: `rotate(${isOpen ? 0 : -90}deg)`,
|
|
1107
|
+
transition: theme.transitions.create("transform", {
|
|
1108
|
+
easing: theme.transitions.easing.sharp,
|
|
1109
|
+
duration: 100
|
|
1110
|
+
})
|
|
1111
|
+
};
|
|
1112
|
+
return { display: "none" };
|
|
1113
|
+
};
|
|
1114
|
+
$[19] = collapsed;
|
|
1115
|
+
$[20] = groupItem;
|
|
1116
|
+
$[21] = isOpen;
|
|
1117
|
+
$[22] = isSidebarFullyCollapsed;
|
|
1118
|
+
$[23] = isSidebarFullyExpanded;
|
|
1119
|
+
$[24] = t7;
|
|
1120
|
+
} else t7 = $[24];
|
|
1121
|
+
const chevronSx = t7;
|
|
1122
|
+
const shouldJustExpand = groupItem && !collapsed;
|
|
1123
|
+
const t8 = collapsed ? 0 : 1.4;
|
|
1124
|
+
const t9 = collapsed ? 60 : 48;
|
|
1125
|
+
let t10;
|
|
1126
|
+
if ($[25] !== t8 || $[26] !== t9) {
|
|
1127
|
+
t10 = {
|
|
1128
|
+
px: t8,
|
|
1129
|
+
minHeight: t9
|
|
1130
|
+
};
|
|
1131
|
+
$[25] = t8;
|
|
1132
|
+
$[26] = t9;
|
|
1133
|
+
$[27] = t10;
|
|
1134
|
+
} else t10 = $[27];
|
|
1135
|
+
let t11;
|
|
1136
|
+
if ($[28] !== disabled || $[29] !== t10) {
|
|
1137
|
+
t11 = {
|
|
1138
|
+
disabled,
|
|
1139
|
+
sx: t10
|
|
1140
|
+
};
|
|
1141
|
+
$[28] = disabled;
|
|
1142
|
+
$[29] = t10;
|
|
1143
|
+
$[30] = t11;
|
|
1144
|
+
} else t11 = $[30];
|
|
1145
|
+
const buttonProps = t11;
|
|
1146
|
+
let t12;
|
|
1147
|
+
if ($[31] !== collapsed || $[32] !== item) {
|
|
1148
|
+
t12 = /* @__PURE__ */ jsx(IconOrAvatar, {
|
|
1149
|
+
item,
|
|
1150
|
+
collapsed
|
|
1151
|
+
});
|
|
1152
|
+
$[31] = collapsed;
|
|
1153
|
+
$[32] = item;
|
|
1154
|
+
$[33] = t12;
|
|
1155
|
+
} else t12 = $[33];
|
|
1156
|
+
let t13;
|
|
1157
|
+
if ($[34] !== collapsed || $[35] !== item.title) {
|
|
1158
|
+
t13 = !collapsed && /* @__PURE__ */ jsx(ListItemText$1, {
|
|
1159
|
+
primary: item.title,
|
|
1160
|
+
sx: {
|
|
1161
|
+
ml: 1.2,
|
|
1162
|
+
flex: 1,
|
|
1163
|
+
minWidth: 0
|
|
999
1164
|
}
|
|
1000
|
-
}
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
$[
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
$[
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
$[
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
}
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
$[
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
$[
|
|
1053
|
-
|
|
1054
|
-
let t13;
|
|
1055
|
-
if ($[33] !== buttonContent || $[34] !== buttonProps || $[35] !== collapsed || $[36] !== groupItem || $[37] !== isOpen || $[38] !== item || $[39] !== miniOpen || $[40] !== onClick || $[41] !== onClose || $[42] !== shouldJustExpand) {
|
|
1056
|
-
t13 = groupItem ? /* @__PURE__ */ jsx(StyledNavButton, {
|
|
1165
|
+
});
|
|
1166
|
+
$[34] = collapsed;
|
|
1167
|
+
$[35] = item.title;
|
|
1168
|
+
$[36] = t13;
|
|
1169
|
+
} else t13 = $[36];
|
|
1170
|
+
let t14;
|
|
1171
|
+
if ($[37] !== chevronSx || $[38] !== groupItem) {
|
|
1172
|
+
t14 = groupItem ? /* @__PURE__ */ jsx(ExpandMoreIcon, { sx: chevronSx }) : null;
|
|
1173
|
+
$[37] = chevronSx;
|
|
1174
|
+
$[38] = groupItem;
|
|
1175
|
+
$[39] = t14;
|
|
1176
|
+
} else t14 = $[39];
|
|
1177
|
+
let t15;
|
|
1178
|
+
if ($[40] !== t12 || $[41] !== t13 || $[42] !== t14) {
|
|
1179
|
+
t15 = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
1180
|
+
t12,
|
|
1181
|
+
t13,
|
|
1182
|
+
t14
|
|
1183
|
+
] });
|
|
1184
|
+
$[40] = t12;
|
|
1185
|
+
$[41] = t13;
|
|
1186
|
+
$[42] = t14;
|
|
1187
|
+
$[43] = t15;
|
|
1188
|
+
} else t15 = $[43];
|
|
1189
|
+
const buttonContent = t15;
|
|
1190
|
+
T0 = ListItem$1;
|
|
1191
|
+
if ($[44] !== collapsed || $[45] !== groupItem || $[46] !== miniOpen) {
|
|
1192
|
+
t3 = groupItem && collapsed ? {
|
|
1193
|
+
onMouseEnter: () => setMiniOpen(true),
|
|
1194
|
+
onMouseLeave: () => setMiniOpen(false),
|
|
1195
|
+
onBlur: (event) => {
|
|
1196
|
+
if (!event.currentTarget.contains(event.relatedTarget)) setMiniOpen(false);
|
|
1197
|
+
},
|
|
1198
|
+
onKeyDown: (event_0) => {
|
|
1199
|
+
if (event_0.key !== "Escape" || !miniOpen) return;
|
|
1200
|
+
setMiniOpen(false);
|
|
1201
|
+
groupButtonRef.current?.focus();
|
|
1202
|
+
}
|
|
1203
|
+
} : {};
|
|
1204
|
+
$[44] = collapsed;
|
|
1205
|
+
$[45] = groupItem;
|
|
1206
|
+
$[46] = miniOpen;
|
|
1207
|
+
$[47] = t3;
|
|
1208
|
+
} else t3 = $[47];
|
|
1209
|
+
t4 = "flex-start";
|
|
1210
|
+
if ($[48] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1211
|
+
t5 = {
|
|
1212
|
+
py: 0,
|
|
1213
|
+
px: 1,
|
|
1214
|
+
overflowX: "hidden"
|
|
1215
|
+
};
|
|
1216
|
+
$[48] = t5;
|
|
1217
|
+
} else t5 = $[48];
|
|
1218
|
+
t6 = groupItem ? /* @__PURE__ */ jsx(StyledNavButton, {
|
|
1057
1219
|
...buttonProps,
|
|
1058
1220
|
ref: groupButtonRef,
|
|
1221
|
+
selected: (collapsed || !isOpen) && containsActive(item),
|
|
1059
1222
|
"aria-expanded": collapsed ? miniOpen : !!isOpen,
|
|
1060
1223
|
onClick: shouldJustExpand ? () => onClick?.(item) : () => setMiniOpen(true),
|
|
1061
1224
|
children: buttonContent
|
|
@@ -1065,140 +1228,155 @@ const NavigationListItem = (t0) => {
|
|
|
1065
1228
|
href: item.href,
|
|
1066
1229
|
params: item.params,
|
|
1067
1230
|
search: item.search,
|
|
1231
|
+
activeOptions: {
|
|
1232
|
+
exact: true,
|
|
1233
|
+
includeSearch: false
|
|
1234
|
+
},
|
|
1235
|
+
activeProps: { selected: true },
|
|
1068
1236
|
onClick: onClose,
|
|
1069
1237
|
sx: [buttonProps.sx, routerButtonSx],
|
|
1070
1238
|
children: buttonContent
|
|
1071
1239
|
});
|
|
1072
|
-
$[
|
|
1073
|
-
$[
|
|
1074
|
-
$[
|
|
1075
|
-
$[
|
|
1076
|
-
$[
|
|
1077
|
-
$[
|
|
1078
|
-
$[
|
|
1079
|
-
$[
|
|
1080
|
-
$[
|
|
1081
|
-
$[
|
|
1082
|
-
$[
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1240
|
+
$[2] = collapsed;
|
|
1241
|
+
$[3] = disabled;
|
|
1242
|
+
$[4] = groupItem;
|
|
1243
|
+
$[5] = isOpen;
|
|
1244
|
+
$[6] = isSidebarFullyCollapsed;
|
|
1245
|
+
$[7] = isSidebarFullyExpanded;
|
|
1246
|
+
$[8] = item;
|
|
1247
|
+
$[9] = matchRoute;
|
|
1248
|
+
$[10] = miniOpen;
|
|
1249
|
+
$[11] = onClick;
|
|
1250
|
+
$[12] = onClose;
|
|
1251
|
+
$[13] = T0;
|
|
1252
|
+
$[14] = itemId;
|
|
1253
|
+
$[15] = t3;
|
|
1254
|
+
$[16] = t4;
|
|
1255
|
+
$[17] = t5;
|
|
1256
|
+
$[18] = t6;
|
|
1257
|
+
} else {
|
|
1258
|
+
T0 = $[13];
|
|
1259
|
+
itemId = $[14];
|
|
1260
|
+
t3 = $[15];
|
|
1261
|
+
t4 = $[16];
|
|
1262
|
+
t5 = $[17];
|
|
1263
|
+
t6 = $[18];
|
|
1264
|
+
}
|
|
1265
|
+
let t7;
|
|
1266
|
+
if ($[49] !== collapsed || $[50] !== groupItem || $[51] !== item.children || $[52] !== miniOpen || $[53] !== renderNested) {
|
|
1267
|
+
t7 = groupItem && collapsed ? /* @__PURE__ */ jsx(MiniPopover, {
|
|
1087
1268
|
open: miniOpen,
|
|
1088
1269
|
children: renderNested?.(item.children)
|
|
1089
1270
|
}) : null;
|
|
1090
|
-
$[
|
|
1091
|
-
$[
|
|
1092
|
-
$[
|
|
1093
|
-
$[
|
|
1094
|
-
$[
|
|
1095
|
-
$[
|
|
1096
|
-
} else
|
|
1097
|
-
let
|
|
1098
|
-
if ($[
|
|
1099
|
-
|
|
1100
|
-
...
|
|
1101
|
-
|
|
1102
|
-
|
|
1271
|
+
$[49] = collapsed;
|
|
1272
|
+
$[50] = groupItem;
|
|
1273
|
+
$[51] = item.children;
|
|
1274
|
+
$[52] = miniOpen;
|
|
1275
|
+
$[53] = renderNested;
|
|
1276
|
+
$[54] = t7;
|
|
1277
|
+
} else t7 = $[54];
|
|
1278
|
+
let t8;
|
|
1279
|
+
if ($[55] !== T0 || $[56] !== t3 || $[57] !== t4 || $[58] !== t5 || $[59] !== t6 || $[60] !== t7) {
|
|
1280
|
+
t8 = /* @__PURE__ */ jsxs(T0, {
|
|
1281
|
+
...t3,
|
|
1282
|
+
alignItems: t4,
|
|
1283
|
+
sx: t5,
|
|
1284
|
+
children: [t6, t7]
|
|
1103
1285
|
});
|
|
1104
|
-
$[
|
|
1105
|
-
$[
|
|
1106
|
-
$[
|
|
1107
|
-
$[
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1286
|
+
$[55] = T0;
|
|
1287
|
+
$[56] = t3;
|
|
1288
|
+
$[57] = t4;
|
|
1289
|
+
$[58] = t5;
|
|
1290
|
+
$[59] = t6;
|
|
1291
|
+
$[60] = t7;
|
|
1292
|
+
$[61] = t8;
|
|
1293
|
+
} else t8 = $[61];
|
|
1294
|
+
const listItem = t8;
|
|
1295
|
+
let t9;
|
|
1296
|
+
if ($[62] !== collapsed || $[63] !== groupItem || $[64] !== isOpen || $[65] !== item.children || $[66] !== renderNested) {
|
|
1297
|
+
t9 = groupItem && !collapsed ? /* @__PURE__ */ jsx(Collapse, {
|
|
1113
1298
|
in: isOpen,
|
|
1114
1299
|
timeout: "auto",
|
|
1115
1300
|
unmountOnExit: true,
|
|
1116
1301
|
children: renderNested?.(item.children)
|
|
1117
1302
|
}) : null;
|
|
1118
|
-
$[
|
|
1119
|
-
$[
|
|
1120
|
-
$[
|
|
1121
|
-
$[
|
|
1122
|
-
$[
|
|
1123
|
-
$[
|
|
1124
|
-
} else
|
|
1125
|
-
let
|
|
1126
|
-
if ($[
|
|
1127
|
-
|
|
1128
|
-
$[
|
|
1129
|
-
$[
|
|
1130
|
-
$[
|
|
1131
|
-
$[
|
|
1132
|
-
} else
|
|
1133
|
-
return
|
|
1303
|
+
$[62] = collapsed;
|
|
1304
|
+
$[63] = groupItem;
|
|
1305
|
+
$[64] = isOpen;
|
|
1306
|
+
$[65] = item.children;
|
|
1307
|
+
$[66] = renderNested;
|
|
1308
|
+
$[67] = t9;
|
|
1309
|
+
} else t9 = $[67];
|
|
1310
|
+
let t10;
|
|
1311
|
+
if ($[68] !== itemId || $[69] !== listItem || $[70] !== t9) {
|
|
1312
|
+
t10 = /* @__PURE__ */ jsxs(Fragment, { children: [listItem, t9] }, itemId);
|
|
1313
|
+
$[68] = itemId;
|
|
1314
|
+
$[69] = listItem;
|
|
1315
|
+
$[70] = t9;
|
|
1316
|
+
$[71] = t10;
|
|
1317
|
+
} else t10 = $[71];
|
|
1318
|
+
return t10;
|
|
1134
1319
|
};
|
|
1135
|
-
function _temp$
|
|
1320
|
+
function _temp$5(word) {
|
|
1136
1321
|
return word.charAt(0).toUpperCase();
|
|
1137
1322
|
}
|
|
1138
|
-
|
|
1139
|
-
//#region src/components/core/navigation/NavigationList.tsx
|
|
1323
|
+
// src/components/core/navigation/NavigationList.tsx
|
|
1140
1324
|
const NavigationList = (t0) => {
|
|
1141
|
-
const $ = c(
|
|
1142
|
-
|
|
1143
|
-
for (let $i = 0; $i < 29; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1144
|
-
$[0] = "4dbd114545118530db002b7c781f97683277f7b721a30074e8778a8e4ea56119";
|
|
1145
|
-
}
|
|
1146
|
-
const { subNavigation, depth: t1, collapsed, isPopover, isSidebarFullyExpanded: t2, isSidebarFullyCollapsed, renderItem, activePath, onClose } = t0;
|
|
1325
|
+
const $ = c(26);
|
|
1326
|
+
const { subNavigation, depth: t1, collapsed, isPopover, isSidebarFullyExpanded: t2, isSidebarFullyCollapsed, renderItem, onClose } = t0;
|
|
1147
1327
|
const depth = t1 === void 0 ? 0 : t1;
|
|
1148
1328
|
const isSidebarFullyExpanded = t2 === void 0 ? true : t2;
|
|
1149
1329
|
let t3;
|
|
1150
|
-
if ($[
|
|
1330
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1151
1331
|
t3 = [];
|
|
1152
|
-
$[
|
|
1153
|
-
} else t3 = $[
|
|
1332
|
+
$[0] = t3;
|
|
1333
|
+
} else t3 = $[0];
|
|
1154
1334
|
const [openKeys, setOpenKeys] = useState(t3);
|
|
1155
1335
|
let t4;
|
|
1156
1336
|
let t5;
|
|
1157
|
-
if ($[
|
|
1337
|
+
if ($[1] !== collapsed) {
|
|
1158
1338
|
t4 = () => {
|
|
1159
1339
|
if (collapsed) setOpenKeys([]);
|
|
1160
1340
|
};
|
|
1161
1341
|
t5 = [collapsed];
|
|
1162
|
-
$[
|
|
1163
|
-
$[
|
|
1164
|
-
$[
|
|
1342
|
+
$[1] = collapsed;
|
|
1343
|
+
$[2] = t4;
|
|
1344
|
+
$[3] = t5;
|
|
1165
1345
|
} else {
|
|
1166
|
-
t4 = $[
|
|
1167
|
-
t5 = $[
|
|
1346
|
+
t4 = $[2];
|
|
1347
|
+
t5 = $[3];
|
|
1168
1348
|
}
|
|
1169
1349
|
useEffect(t4, t5);
|
|
1170
1350
|
let t6;
|
|
1171
|
-
if ($[
|
|
1351
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1172
1352
|
t6 = (key) => setOpenKeys((previous) => previous.includes(key) ? previous.filter((k) => k !== key) : [...previous, key]);
|
|
1173
|
-
$[
|
|
1174
|
-
} else t6 = $[
|
|
1353
|
+
$[4] = t6;
|
|
1354
|
+
} else t6 = $[4];
|
|
1175
1355
|
const toggleKey = t6;
|
|
1176
1356
|
let t7;
|
|
1177
|
-
if ($[
|
|
1357
|
+
if ($[5] !== collapsed || $[6] !== depth || $[7] !== onClose) {
|
|
1178
1358
|
t7 = (children) => /* @__PURE__ */ jsx(NavigationList, {
|
|
1179
1359
|
subNavigation: children,
|
|
1180
1360
|
depth: depth + 1,
|
|
1181
1361
|
isPopover: collapsed,
|
|
1182
|
-
activePath,
|
|
1183
1362
|
onClose
|
|
1184
1363
|
});
|
|
1185
|
-
$[
|
|
1186
|
-
$[
|
|
1187
|
-
$[
|
|
1188
|
-
$[
|
|
1189
|
-
|
|
1190
|
-
} else t7 = $[10];
|
|
1364
|
+
$[5] = collapsed;
|
|
1365
|
+
$[6] = depth;
|
|
1366
|
+
$[7] = onClose;
|
|
1367
|
+
$[8] = t7;
|
|
1368
|
+
} else t7 = $[8];
|
|
1191
1369
|
const renderNested = t7;
|
|
1192
1370
|
let t8;
|
|
1193
|
-
if ($[
|
|
1194
|
-
const filteredNavigation = subNavigation.filter(_temp$
|
|
1371
|
+
if ($[9] !== collapsed || $[10] !== depth || $[11] !== isPopover || $[12] !== isSidebarFullyCollapsed || $[13] !== isSidebarFullyExpanded || $[14] !== onClose || $[15] !== openKeys || $[16] !== renderItem || $[17] !== renderNested || $[18] !== subNavigation) {
|
|
1372
|
+
const filteredNavigation = subNavigation.filter(_temp$4);
|
|
1195
1373
|
const t9 = isPopover && depth === 1 ? .5 : 0;
|
|
1196
1374
|
const t10 = depth === 0 && !isPopover ? 4 : .5;
|
|
1197
1375
|
const t11 = (isPopover ? 1 : 2) * (isPopover ? depth - 1 : depth);
|
|
1198
1376
|
const t12 = isPopover && depth === 1 ? 240 : "auto";
|
|
1199
1377
|
const t13 = collapsed ? 84 : "auto";
|
|
1200
1378
|
let t14;
|
|
1201
|
-
if ($[
|
|
1379
|
+
if ($[20] !== t10 || $[21] !== t11 || $[22] !== t12 || $[23] !== t13 || $[24] !== t9) {
|
|
1202
1380
|
t14 = {
|
|
1203
1381
|
padding: 0,
|
|
1204
1382
|
mt: t9,
|
|
@@ -1207,13 +1385,13 @@ const NavigationList = (t0) => {
|
|
|
1207
1385
|
minWidth: t12,
|
|
1208
1386
|
width: t13
|
|
1209
1387
|
};
|
|
1210
|
-
$[
|
|
1211
|
-
$[
|
|
1212
|
-
$[
|
|
1213
|
-
$[
|
|
1214
|
-
$[
|
|
1215
|
-
$[
|
|
1216
|
-
} else t14 = $[
|
|
1388
|
+
$[20] = t10;
|
|
1389
|
+
$[21] = t11;
|
|
1390
|
+
$[22] = t12;
|
|
1391
|
+
$[23] = t13;
|
|
1392
|
+
$[24] = t9;
|
|
1393
|
+
$[25] = t14;
|
|
1394
|
+
} else t14 = $[25];
|
|
1217
1395
|
t8 = /* @__PURE__ */ jsx(List$1, {
|
|
1218
1396
|
sx: t14,
|
|
1219
1397
|
children: filteredNavigation.map((navItem, index) => {
|
|
@@ -1243,12 +1421,10 @@ const NavigationList = (t0) => {
|
|
|
1243
1421
|
if (!isPageItem(navItem) && !isPageGroup(navItem)) return null;
|
|
1244
1422
|
const key_0 = `item-${depth}-${index}`;
|
|
1245
1423
|
const uniqueItemKey = `${depth}-${index}-${navItem.title}`;
|
|
1246
|
-
const selected = isPageItem(navItem) && navItem.to === activePath;
|
|
1247
1424
|
if (renderItem) return /* @__PURE__ */ jsx(Fragment, { children: renderItem(navItem, { collapsed: !!collapsed }) }, key_0);
|
|
1248
1425
|
return /* @__PURE__ */ jsx(NavigationListItem, {
|
|
1249
1426
|
item: navItem,
|
|
1250
1427
|
isOpen: openKeys.includes(uniqueItemKey),
|
|
1251
|
-
selected,
|
|
1252
1428
|
collapsed,
|
|
1253
1429
|
isSidebarFullyExpanded,
|
|
1254
1430
|
isSidebarFullyCollapsed,
|
|
@@ -1258,38 +1434,31 @@ const NavigationList = (t0) => {
|
|
|
1258
1434
|
}, key_0);
|
|
1259
1435
|
})
|
|
1260
1436
|
});
|
|
1261
|
-
$[
|
|
1262
|
-
$[
|
|
1263
|
-
$[
|
|
1264
|
-
$[
|
|
1265
|
-
$[
|
|
1266
|
-
$[
|
|
1267
|
-
$[
|
|
1268
|
-
$[
|
|
1269
|
-
$[
|
|
1270
|
-
$[
|
|
1271
|
-
$[
|
|
1272
|
-
|
|
1273
|
-
} else t8 = $[22];
|
|
1437
|
+
$[9] = collapsed;
|
|
1438
|
+
$[10] = depth;
|
|
1439
|
+
$[11] = isPopover;
|
|
1440
|
+
$[12] = isSidebarFullyCollapsed;
|
|
1441
|
+
$[13] = isSidebarFullyExpanded;
|
|
1442
|
+
$[14] = onClose;
|
|
1443
|
+
$[15] = openKeys;
|
|
1444
|
+
$[16] = renderItem;
|
|
1445
|
+
$[17] = renderNested;
|
|
1446
|
+
$[18] = subNavigation;
|
|
1447
|
+
$[19] = t8;
|
|
1448
|
+
} else t8 = $[19];
|
|
1274
1449
|
return t8;
|
|
1275
1450
|
};
|
|
1276
|
-
function _temp$
|
|
1451
|
+
function _temp$4(nav) {
|
|
1277
1452
|
return !nav.hidden;
|
|
1278
1453
|
}
|
|
1279
|
-
|
|
1280
|
-
//#region src/components/core/navigation/NavigationContent.tsx
|
|
1454
|
+
// src/components/core/navigation/NavigationContent.tsx
|
|
1281
1455
|
const NavigationContent = (t0) => {
|
|
1282
|
-
const $ = c(
|
|
1283
|
-
if ($[0] !== "8e18ca51999228f0bb12ab188e0dd8177eed75d44b84d25a0355fb537f5fdbd1") {
|
|
1284
|
-
for (let $i = 0; $i < 17; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1285
|
-
$[0] = "8e18ca51999228f0bb12ab188e0dd8177eed75d44b84d25a0355fb537f5fdbd1";
|
|
1286
|
-
}
|
|
1456
|
+
const $ = c(15);
|
|
1287
1457
|
const { navigation, collapsed, expanded, setExpanded, showPermanent } = t0;
|
|
1288
|
-
const location = useLocation();
|
|
1289
1458
|
const t1 = collapsed ? "stable" : "auto";
|
|
1290
1459
|
const t2 = navigation[0] && isHeader(navigation[0]) && !collapsed ? 0 : 2;
|
|
1291
1460
|
let t3;
|
|
1292
|
-
if ($[
|
|
1461
|
+
if ($[0] !== t1 || $[1] !== t2) {
|
|
1293
1462
|
t3 = {
|
|
1294
1463
|
height: "100%",
|
|
1295
1464
|
display: "flex",
|
|
@@ -1298,96 +1467,92 @@ const NavigationContent = (t0) => {
|
|
|
1298
1467
|
overflow: "auto",
|
|
1299
1468
|
scrollbarGutter: t1,
|
|
1300
1469
|
overflowX: "hidden",
|
|
1470
|
+
overflowWrap: "anywhere",
|
|
1301
1471
|
pt: t2
|
|
1302
1472
|
};
|
|
1303
|
-
$[
|
|
1304
|
-
$[
|
|
1305
|
-
$[
|
|
1306
|
-
} else t3 = $[
|
|
1473
|
+
$[0] = t1;
|
|
1474
|
+
$[1] = t2;
|
|
1475
|
+
$[2] = t3;
|
|
1476
|
+
} else t3 = $[2];
|
|
1307
1477
|
const t4 = !expanded;
|
|
1308
1478
|
let t5;
|
|
1309
|
-
if ($[
|
|
1479
|
+
if ($[3] !== setExpanded || $[4] !== showPermanent) {
|
|
1310
1480
|
t5 = showPermanent ? void 0 : () => setExpanded(false);
|
|
1311
|
-
$[
|
|
1312
|
-
$[
|
|
1313
|
-
$[
|
|
1314
|
-
} else t5 = $[
|
|
1481
|
+
$[3] = setExpanded;
|
|
1482
|
+
$[4] = showPermanent;
|
|
1483
|
+
$[5] = t5;
|
|
1484
|
+
} else t5 = $[5];
|
|
1315
1485
|
let t6;
|
|
1316
|
-
if ($[
|
|
1486
|
+
if ($[6] !== collapsed || $[7] !== expanded || $[8] !== navigation || $[9] !== t4 || $[10] !== t5) {
|
|
1317
1487
|
t6 = /* @__PURE__ */ jsx(NavigationList, {
|
|
1318
1488
|
subNavigation: navigation,
|
|
1319
1489
|
collapsed,
|
|
1320
1490
|
isSidebarFullyExpanded: expanded,
|
|
1321
1491
|
isSidebarFullyCollapsed: t4,
|
|
1322
|
-
activePath: location.pathname,
|
|
1323
1492
|
onClose: t5
|
|
1324
1493
|
});
|
|
1325
|
-
$[
|
|
1326
|
-
$[
|
|
1327
|
-
$[
|
|
1328
|
-
$[
|
|
1329
|
-
$[
|
|
1330
|
-
$[
|
|
1331
|
-
|
|
1332
|
-
} else t6 = $[13];
|
|
1494
|
+
$[6] = collapsed;
|
|
1495
|
+
$[7] = expanded;
|
|
1496
|
+
$[8] = navigation;
|
|
1497
|
+
$[9] = t4;
|
|
1498
|
+
$[10] = t5;
|
|
1499
|
+
$[11] = t6;
|
|
1500
|
+
} else t6 = $[11];
|
|
1333
1501
|
let t7;
|
|
1334
|
-
if ($[
|
|
1502
|
+
if ($[12] !== t3 || $[13] !== t6) {
|
|
1335
1503
|
t7 = /* @__PURE__ */ jsx(Box$1, {
|
|
1336
1504
|
component: "nav",
|
|
1337
1505
|
sx: t3,
|
|
1338
1506
|
children: t6
|
|
1339
1507
|
});
|
|
1340
|
-
$[
|
|
1341
|
-
$[
|
|
1342
|
-
$[
|
|
1343
|
-
} else t7 = $[
|
|
1508
|
+
$[12] = t3;
|
|
1509
|
+
$[13] = t6;
|
|
1510
|
+
$[14] = t7;
|
|
1511
|
+
} else t7 = $[14];
|
|
1344
1512
|
return t7;
|
|
1345
1513
|
};
|
|
1346
1514
|
const NavigationRail = (t0) => {
|
|
1347
|
-
const $ = c(
|
|
1348
|
-
if ($[0] !== "49d079c05318eb36fa341a571be66f2c7d983f06018386e081b42f162f58e4e6") {
|
|
1349
|
-
for (let $i = 0; $i < 29; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1350
|
-
$[0] = "49d079c05318eb36fa341a571be66f2c7d983f06018386e081b42f162f58e4e6";
|
|
1351
|
-
}
|
|
1515
|
+
const $ = c(28);
|
|
1352
1516
|
const { navigation, expanded, setExpanded } = t0;
|
|
1517
|
+
const isMobile = useMediaQuery$1(_temp$3);
|
|
1353
1518
|
let t1;
|
|
1354
|
-
if ($[
|
|
1519
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1355
1520
|
t1 = {
|
|
1356
1521
|
xs: "none",
|
|
1357
1522
|
sm: "block"
|
|
1358
1523
|
};
|
|
1359
|
-
$[
|
|
1360
|
-
} else t1 = $[
|
|
1524
|
+
$[0] = t1;
|
|
1525
|
+
} else t1 = $[0];
|
|
1361
1526
|
const t2 = expanded ? 320 : 84;
|
|
1362
1527
|
let t3;
|
|
1363
|
-
if ($[
|
|
1364
|
-
t3 = (
|
|
1528
|
+
if ($[1] !== expanded) {
|
|
1529
|
+
t3 = (theme_0) => ({
|
|
1365
1530
|
position: "absolute",
|
|
1366
1531
|
top: `64px`,
|
|
1367
1532
|
height: `calc(100% - 64px)`,
|
|
1368
1533
|
width: expanded ? 320 : 84,
|
|
1369
1534
|
background: "transparent",
|
|
1370
1535
|
borderTop: "1px solid",
|
|
1371
|
-
borderColor:
|
|
1536
|
+
borderColor: theme_0.vars?.palette.divider ?? theme_0.palette.divider,
|
|
1372
1537
|
boxShadow: "none"
|
|
1373
1538
|
});
|
|
1374
|
-
$[
|
|
1375
|
-
$[
|
|
1376
|
-
} else t3 = $[
|
|
1539
|
+
$[1] = expanded;
|
|
1540
|
+
$[2] = t3;
|
|
1541
|
+
} else t3 = $[2];
|
|
1377
1542
|
let t4;
|
|
1378
|
-
if ($[
|
|
1543
|
+
if ($[3] !== t2 || $[4] !== t3) {
|
|
1379
1544
|
t4 = {
|
|
1380
1545
|
display: t1,
|
|
1381
1546
|
width: t2,
|
|
1382
1547
|
"& .MuiDrawer-paper": t3
|
|
1383
1548
|
};
|
|
1384
|
-
$[
|
|
1385
|
-
$[
|
|
1386
|
-
$[
|
|
1387
|
-
} else t4 = $[
|
|
1549
|
+
$[3] = t2;
|
|
1550
|
+
$[4] = t3;
|
|
1551
|
+
$[5] = t4;
|
|
1552
|
+
} else t4 = $[5];
|
|
1388
1553
|
const t5 = !expanded;
|
|
1389
1554
|
let t6;
|
|
1390
|
-
if ($[
|
|
1555
|
+
if ($[6] !== expanded || $[7] !== navigation || $[8] !== setExpanded || $[9] !== t5) {
|
|
1391
1556
|
t6 = /* @__PURE__ */ jsx(NavigationContent, {
|
|
1392
1557
|
navigation,
|
|
1393
1558
|
collapsed: t5,
|
|
@@ -1395,78 +1560,81 @@ const NavigationRail = (t0) => {
|
|
|
1395
1560
|
setExpanded,
|
|
1396
1561
|
showPermanent: true
|
|
1397
1562
|
});
|
|
1398
|
-
$[
|
|
1399
|
-
$[
|
|
1400
|
-
$[
|
|
1401
|
-
$[
|
|
1402
|
-
$[
|
|
1403
|
-
} else t6 = $[
|
|
1563
|
+
$[6] = expanded;
|
|
1564
|
+
$[7] = navigation;
|
|
1565
|
+
$[8] = setExpanded;
|
|
1566
|
+
$[9] = t5;
|
|
1567
|
+
$[10] = t6;
|
|
1568
|
+
} else t6 = $[10];
|
|
1404
1569
|
let t7;
|
|
1405
|
-
if ($[
|
|
1570
|
+
if ($[11] !== t4 || $[12] !== t6) {
|
|
1406
1571
|
t7 = /* @__PURE__ */ jsx(Drawer, {
|
|
1407
1572
|
variant: "permanent",
|
|
1408
1573
|
sx: t4,
|
|
1409
1574
|
children: t6
|
|
1410
1575
|
});
|
|
1411
|
-
$[
|
|
1412
|
-
$[
|
|
1413
|
-
$[
|
|
1414
|
-
} else t7 = $[
|
|
1415
|
-
|
|
1416
|
-
if ($[15] !== setExpanded) {
|
|
1417
|
-
t8 = () => setExpanded(false);
|
|
1418
|
-
$[15] = setExpanded;
|
|
1419
|
-
$[16] = t8;
|
|
1420
|
-
} else t8 = $[16];
|
|
1576
|
+
$[11] = t4;
|
|
1577
|
+
$[12] = t6;
|
|
1578
|
+
$[13] = t7;
|
|
1579
|
+
} else t7 = $[13];
|
|
1580
|
+
const t8 = expanded && isMobile;
|
|
1421
1581
|
let t9;
|
|
1422
|
-
if ($[
|
|
1423
|
-
t9 =
|
|
1582
|
+
if ($[14] !== setExpanded) {
|
|
1583
|
+
t9 = () => setExpanded(false);
|
|
1584
|
+
$[14] = setExpanded;
|
|
1585
|
+
$[15] = t9;
|
|
1586
|
+
} else t9 = $[15];
|
|
1587
|
+
let t10;
|
|
1588
|
+
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1589
|
+
t10 = {
|
|
1424
1590
|
display: {
|
|
1425
1591
|
xs: "block",
|
|
1426
1592
|
sm: "none"
|
|
1427
1593
|
},
|
|
1428
1594
|
"& .MuiDrawer-paper": { width: "min(280px, calc(100vw - 56px))" }
|
|
1429
1595
|
};
|
|
1430
|
-
$[
|
|
1431
|
-
} else
|
|
1432
|
-
let
|
|
1433
|
-
if ($[
|
|
1434
|
-
|
|
1596
|
+
$[16] = t10;
|
|
1597
|
+
} else t10 = $[16];
|
|
1598
|
+
let t11;
|
|
1599
|
+
if ($[17] !== expanded || $[18] !== navigation || $[19] !== setExpanded) {
|
|
1600
|
+
t11 = /* @__PURE__ */ jsx(NavigationContent, {
|
|
1435
1601
|
navigation,
|
|
1436
1602
|
collapsed: false,
|
|
1437
1603
|
expanded,
|
|
1438
1604
|
setExpanded,
|
|
1439
1605
|
showPermanent: false
|
|
1440
1606
|
});
|
|
1441
|
-
$[
|
|
1442
|
-
$[
|
|
1443
|
-
$[
|
|
1444
|
-
$[
|
|
1445
|
-
} else
|
|
1446
|
-
let t11;
|
|
1447
|
-
if ($[22] !== expanded || $[23] !== t10 || $[24] !== t8) {
|
|
1448
|
-
t11 = /* @__PURE__ */ jsx(Drawer, {
|
|
1449
|
-
open: expanded,
|
|
1450
|
-
onClose: t8,
|
|
1451
|
-
sx: t9,
|
|
1452
|
-
children: t10
|
|
1453
|
-
});
|
|
1454
|
-
$[22] = expanded;
|
|
1455
|
-
$[23] = t10;
|
|
1456
|
-
$[24] = t8;
|
|
1457
|
-
$[25] = t11;
|
|
1458
|
-
} else t11 = $[25];
|
|
1607
|
+
$[17] = expanded;
|
|
1608
|
+
$[18] = navigation;
|
|
1609
|
+
$[19] = setExpanded;
|
|
1610
|
+
$[20] = t11;
|
|
1611
|
+
} else t11 = $[20];
|
|
1459
1612
|
let t12;
|
|
1460
|
-
if ($[
|
|
1461
|
-
t12 = /* @__PURE__ */
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1613
|
+
if ($[21] !== t11 || $[22] !== t8 || $[23] !== t9) {
|
|
1614
|
+
t12 = /* @__PURE__ */ jsx(Drawer, {
|
|
1615
|
+
open: t8,
|
|
1616
|
+
onClose: t9,
|
|
1617
|
+
sx: t10,
|
|
1618
|
+
children: t11
|
|
1619
|
+
});
|
|
1620
|
+
$[21] = t11;
|
|
1621
|
+
$[22] = t8;
|
|
1622
|
+
$[23] = t9;
|
|
1623
|
+
$[24] = t12;
|
|
1624
|
+
} else t12 = $[24];
|
|
1625
|
+
let t13;
|
|
1626
|
+
if ($[25] !== t12 || $[26] !== t7) {
|
|
1627
|
+
t13 = /* @__PURE__ */ jsxs(Fragment, { children: [t7, t12] });
|
|
1628
|
+
$[25] = t12;
|
|
1629
|
+
$[26] = t7;
|
|
1630
|
+
$[27] = t13;
|
|
1631
|
+
} else t13 = $[27];
|
|
1632
|
+
return t13;
|
|
1467
1633
|
};
|
|
1468
|
-
|
|
1469
|
-
|
|
1634
|
+
function _temp$3(theme) {
|
|
1635
|
+
return theme.breakpoints.down("sm");
|
|
1636
|
+
}
|
|
1637
|
+
// src/components/core/TestMascot.tsx
|
|
1470
1638
|
const TEAL = "#1ec8d3";
|
|
1471
1639
|
const SKIN = "#fbe3d1";
|
|
1472
1640
|
const INK = "#17171a";
|
|
@@ -1481,25 +1649,21 @@ const EDGE = "#d3dde2";
|
|
|
1481
1649
|
* so an unstroked white suit disappears in light mode.
|
|
1482
1650
|
*/
|
|
1483
1651
|
const Wisby = () => {
|
|
1484
|
-
const $ = c(
|
|
1485
|
-
if ($[0] !== "6245d64909aef2e92bd98c2a90a8ce80bdafee6344a795e1f1a52633a617fcfe") {
|
|
1486
|
-
for (let $i = 0; $i < 24; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1487
|
-
$[0] = "6245d64909aef2e92bd98c2a90a8ce80bdafee6344a795e1f1a52633a617fcfe";
|
|
1488
|
-
}
|
|
1652
|
+
const $ = c(23);
|
|
1489
1653
|
let t0;
|
|
1490
|
-
if ($[
|
|
1654
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1491
1655
|
t0 = {
|
|
1492
1656
|
xs: 96,
|
|
1493
1657
|
sm: 140
|
|
1494
1658
|
};
|
|
1495
|
-
$[
|
|
1496
|
-
} else t0 = $[
|
|
1659
|
+
$[0] = t0;
|
|
1660
|
+
} else t0 = $[0];
|
|
1497
1661
|
let t1;
|
|
1498
1662
|
let t2;
|
|
1499
1663
|
let t3;
|
|
1500
1664
|
let t4;
|
|
1501
1665
|
let t5;
|
|
1502
|
-
if ($[
|
|
1666
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1503
1667
|
t1 = {
|
|
1504
1668
|
"0%, 100%": { transform: "translateY(0)" },
|
|
1505
1669
|
"50%": { transform: "translateY(-2.5px)" }
|
|
@@ -1522,17 +1686,17 @@ const Wisby = () => {
|
|
|
1522
1686
|
transformOrigin: "50% 50%",
|
|
1523
1687
|
animation: "wisbyBlink 5.5s ease-in-out infinite"
|
|
1524
1688
|
};
|
|
1525
|
-
$[
|
|
1526
|
-
$[
|
|
1527
|
-
$[
|
|
1528
|
-
$[
|
|
1529
|
-
$[
|
|
1689
|
+
$[1] = t1;
|
|
1690
|
+
$[2] = t2;
|
|
1691
|
+
$[3] = t3;
|
|
1692
|
+
$[4] = t4;
|
|
1693
|
+
$[5] = t5;
|
|
1530
1694
|
} else {
|
|
1531
|
-
t1 = $[
|
|
1532
|
-
t2 = $[
|
|
1533
|
-
t3 = $[
|
|
1534
|
-
t4 = $[
|
|
1535
|
-
t5 = $[
|
|
1695
|
+
t1 = $[1];
|
|
1696
|
+
t2 = $[2];
|
|
1697
|
+
t3 = $[3];
|
|
1698
|
+
t4 = $[4];
|
|
1699
|
+
t5 = $[5];
|
|
1536
1700
|
}
|
|
1537
1701
|
let t10;
|
|
1538
1702
|
let t11;
|
|
@@ -1548,7 +1712,7 @@ const Wisby = () => {
|
|
|
1548
1712
|
let t7;
|
|
1549
1713
|
let t8;
|
|
1550
1714
|
let t9;
|
|
1551
|
-
if ($[
|
|
1715
|
+
if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1552
1716
|
t6 = {
|
|
1553
1717
|
height: t0,
|
|
1554
1718
|
width: "auto",
|
|
@@ -1661,39 +1825,39 @@ const Wisby = () => {
|
|
|
1661
1825
|
rx: "1.9",
|
|
1662
1826
|
fill: TEAL
|
|
1663
1827
|
});
|
|
1664
|
-
$[
|
|
1665
|
-
$[
|
|
1666
|
-
$[
|
|
1667
|
-
$[
|
|
1668
|
-
$[
|
|
1669
|
-
$[
|
|
1670
|
-
$[
|
|
1671
|
-
$[
|
|
1672
|
-
$[
|
|
1673
|
-
$[
|
|
1674
|
-
$[
|
|
1675
|
-
$[
|
|
1676
|
-
$[
|
|
1677
|
-
$[
|
|
1828
|
+
$[6] = t10;
|
|
1829
|
+
$[7] = t11;
|
|
1830
|
+
$[8] = t12;
|
|
1831
|
+
$[9] = t13;
|
|
1832
|
+
$[10] = t14;
|
|
1833
|
+
$[11] = t15;
|
|
1834
|
+
$[12] = t16;
|
|
1835
|
+
$[13] = t17;
|
|
1836
|
+
$[14] = t18;
|
|
1837
|
+
$[15] = t19;
|
|
1838
|
+
$[16] = t6;
|
|
1839
|
+
$[17] = t7;
|
|
1840
|
+
$[18] = t8;
|
|
1841
|
+
$[19] = t9;
|
|
1678
1842
|
} else {
|
|
1679
|
-
t10 = $[
|
|
1680
|
-
t11 = $[
|
|
1681
|
-
t12 = $[
|
|
1682
|
-
t13 = $[
|
|
1683
|
-
t14 = $[
|
|
1684
|
-
t15 = $[
|
|
1685
|
-
t16 = $[
|
|
1686
|
-
t17 = $[
|
|
1687
|
-
t18 = $[
|
|
1688
|
-
t19 = $[
|
|
1689
|
-
t6 = $[
|
|
1690
|
-
t7 = $[
|
|
1691
|
-
t8 = $[
|
|
1692
|
-
t9 = $[
|
|
1843
|
+
t10 = $[6];
|
|
1844
|
+
t11 = $[7];
|
|
1845
|
+
t12 = $[8];
|
|
1846
|
+
t13 = $[9];
|
|
1847
|
+
t14 = $[10];
|
|
1848
|
+
t15 = $[11];
|
|
1849
|
+
t16 = $[12];
|
|
1850
|
+
t17 = $[13];
|
|
1851
|
+
t18 = $[14];
|
|
1852
|
+
t19 = $[15];
|
|
1853
|
+
t6 = $[16];
|
|
1854
|
+
t7 = $[17];
|
|
1855
|
+
t8 = $[18];
|
|
1856
|
+
t9 = $[19];
|
|
1693
1857
|
}
|
|
1694
1858
|
let t20;
|
|
1695
1859
|
let t21;
|
|
1696
|
-
if ($[
|
|
1860
|
+
if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1697
1861
|
t20 = /* @__PURE__ */ jsx("path", {
|
|
1698
1862
|
d: "M42.5 78c-5 1-10-1-17-5",
|
|
1699
1863
|
stroke: EDGE,
|
|
@@ -1708,14 +1872,14 @@ const Wisby = () => {
|
|
|
1708
1872
|
strokeLinecap: "round",
|
|
1709
1873
|
fill: "none"
|
|
1710
1874
|
});
|
|
1711
|
-
$[
|
|
1712
|
-
$[
|
|
1875
|
+
$[20] = t20;
|
|
1876
|
+
$[21] = t21;
|
|
1713
1877
|
} else {
|
|
1714
|
-
t20 = $[
|
|
1715
|
-
t21 = $[
|
|
1878
|
+
t20 = $[20];
|
|
1879
|
+
t21 = $[21];
|
|
1716
1880
|
}
|
|
1717
1881
|
let t22;
|
|
1718
|
-
if ($[
|
|
1882
|
+
if ($[22] === Symbol.for("react.memo_cache_sentinel")) {
|
|
1719
1883
|
t22 = /* @__PURE__ */ jsxs(Box, {
|
|
1720
1884
|
component: "svg",
|
|
1721
1885
|
viewBox: "0 0 100 116",
|
|
@@ -1978,8 +2142,8 @@ const Wisby = () => {
|
|
|
1978
2142
|
})
|
|
1979
2143
|
]
|
|
1980
2144
|
});
|
|
1981
|
-
$[
|
|
1982
|
-
} else t22 = $[
|
|
2145
|
+
$[22] = t22;
|
|
2146
|
+
} else t22 = $[22];
|
|
1983
2147
|
return t22;
|
|
1984
2148
|
};
|
|
1985
2149
|
/**
|
|
@@ -1988,17 +2152,13 @@ const Wisby = () => {
|
|
|
1988
2152
|
* fact that they are not on production.
|
|
1989
2153
|
*/
|
|
1990
2154
|
const TestMascot = () => {
|
|
1991
|
-
const $ = c(
|
|
1992
|
-
if ($[0] !== "6245d64909aef2e92bd98c2a90a8ce80bdafee6344a795e1f1a52633a617fcfe") {
|
|
1993
|
-
for (let $i = 0; $i < 11; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
1994
|
-
$[0] = "6245d64909aef2e92bd98c2a90a8ce80bdafee6344a795e1f1a52633a617fcfe";
|
|
1995
|
-
}
|
|
2155
|
+
const $ = c(10);
|
|
1996
2156
|
const router = useRouter();
|
|
1997
2157
|
const { t } = useTranslation();
|
|
1998
2158
|
const [dismissed, setDismissed] = useState(false);
|
|
1999
2159
|
if (dismissed || !isTestEnv(router.origin)) return null;
|
|
2000
2160
|
let t0;
|
|
2001
|
-
if ($[
|
|
2161
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2002
2162
|
t0 = { env: /* @__PURE__ */ jsx(Box, {
|
|
2003
2163
|
component: "span",
|
|
2004
2164
|
sx: {
|
|
@@ -2006,25 +2166,25 @@ const TestMascot = () => {
|
|
|
2006
2166
|
fontWeight: 700
|
|
2007
2167
|
}
|
|
2008
2168
|
}) };
|
|
2009
|
-
$[
|
|
2010
|
-
} else t0 = $[
|
|
2169
|
+
$[0] = t0;
|
|
2170
|
+
} else t0 = $[0];
|
|
2011
2171
|
let t1;
|
|
2012
|
-
if ($[
|
|
2172
|
+
if ($[1] !== t) {
|
|
2013
2173
|
t1 = /* @__PURE__ */ jsx(Trans, {
|
|
2014
2174
|
t,
|
|
2015
2175
|
i18nKey: "Layout.TestEnvironment",
|
|
2016
2176
|
components: t0
|
|
2017
2177
|
});
|
|
2018
|
-
$[
|
|
2019
|
-
$[
|
|
2020
|
-
} else t1 = $[
|
|
2178
|
+
$[1] = t;
|
|
2179
|
+
$[2] = t1;
|
|
2180
|
+
} else t1 = $[2];
|
|
2021
2181
|
let t2;
|
|
2022
|
-
if ($[
|
|
2182
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2023
2183
|
t2 = () => setDismissed(true);
|
|
2024
|
-
$[
|
|
2025
|
-
} else t2 = $[
|
|
2184
|
+
$[3] = t2;
|
|
2185
|
+
} else t2 = $[3];
|
|
2026
2186
|
let t3;
|
|
2027
|
-
if ($[
|
|
2187
|
+
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2028
2188
|
t3 = /* @__PURE__ */ jsx(IconButton, {
|
|
2029
2189
|
size: "small",
|
|
2030
2190
|
"aria-label": "Close",
|
|
@@ -2032,31 +2192,31 @@ const TestMascot = () => {
|
|
|
2032
2192
|
sx: _temp3$1,
|
|
2033
2193
|
children: /* @__PURE__ */ jsx(Close, { sx: { fontSize: 14 } })
|
|
2034
2194
|
});
|
|
2035
|
-
$[
|
|
2036
|
-
} else t3 = $[
|
|
2195
|
+
$[4] = t3;
|
|
2196
|
+
} else t3 = $[4];
|
|
2037
2197
|
let t4;
|
|
2038
|
-
if ($[
|
|
2198
|
+
if ($[5] !== t1) {
|
|
2039
2199
|
t4 = /* @__PURE__ */ jsxs(Box, {
|
|
2040
2200
|
sx: _temp2$2,
|
|
2041
2201
|
children: [t1, t3]
|
|
2042
2202
|
});
|
|
2043
|
-
$[
|
|
2044
|
-
$[
|
|
2045
|
-
} else t4 = $[
|
|
2203
|
+
$[5] = t1;
|
|
2204
|
+
$[6] = t4;
|
|
2205
|
+
} else t4 = $[6];
|
|
2046
2206
|
let t5;
|
|
2047
|
-
if ($[
|
|
2207
|
+
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2048
2208
|
t5 = /* @__PURE__ */ jsx(Wisby, {});
|
|
2049
|
-
$[
|
|
2050
|
-
} else t5 = $[
|
|
2209
|
+
$[7] = t5;
|
|
2210
|
+
} else t5 = $[7];
|
|
2051
2211
|
let t6;
|
|
2052
|
-
if ($[
|
|
2212
|
+
if ($[8] !== t4) {
|
|
2053
2213
|
t6 = /* @__PURE__ */ jsxs(Box, {
|
|
2054
2214
|
sx: _temp$2,
|
|
2055
2215
|
children: [t4, t5]
|
|
2056
2216
|
});
|
|
2057
|
-
$[
|
|
2058
|
-
$[
|
|
2059
|
-
} else t6 = $[
|
|
2217
|
+
$[8] = t4;
|
|
2218
|
+
$[9] = t6;
|
|
2219
|
+
} else t6 = $[9];
|
|
2060
2220
|
return t6;
|
|
2061
2221
|
};
|
|
2062
2222
|
function _temp$2(theme) {
|
|
@@ -2135,9 +2295,9 @@ function _temp3$1(theme_1) {
|
|
|
2135
2295
|
})
|
|
2136
2296
|
};
|
|
2137
2297
|
}
|
|
2138
|
-
|
|
2139
|
-
//#region src/components/core/Layout.tsx
|
|
2298
|
+
// src/components/core/Layout.tsx
|
|
2140
2299
|
const NAVIGATION_STORAGE_KEY = "navigation-open";
|
|
2300
|
+
const CHAT_STORAGE_KEY = "chat-open";
|
|
2141
2301
|
const getInitialNavigationOpen = () => {
|
|
2142
2302
|
if (Platform.isWindows || Platform.isMacOS) return localStorage.getItem(NAVIGATION_STORAGE_KEY) === "true";
|
|
2143
2303
|
return false;
|
|
@@ -2153,70 +2313,103 @@ const DrawerHeader = styled("div")(({ theme }) => ({
|
|
|
2153
2313
|
...theme.mixins.toolbar
|
|
2154
2314
|
}));
|
|
2155
2315
|
const Layout = (t0) => {
|
|
2156
|
-
const $ = c(
|
|
2157
|
-
if ($[0] !== "99d10680cda7f82c54bbbedbb138f24dbcba6bce1cb8fa1b9933d69c1ad6512e") {
|
|
2158
|
-
for (let $i = 0; $i < 33; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2159
|
-
$[0] = "99d10680cda7f82c54bbbedbb138f24dbcba6bce1cb8fa1b9933d69c1ad6512e";
|
|
2160
|
-
}
|
|
2316
|
+
const $ = c(53);
|
|
2161
2317
|
const { navigation, options, children } = t0;
|
|
2318
|
+
const { t } = useTranslation();
|
|
2162
2319
|
const [navigationOpen, setNavigationOpen] = useState(false);
|
|
2320
|
+
const [chatOpen, setChatOpen] = useState(false);
|
|
2163
2321
|
let t1;
|
|
2164
|
-
if ($[
|
|
2322
|
+
if ($[0] !== navigation) {
|
|
2165
2323
|
t1 = navigation?.some(_temp$1);
|
|
2166
|
-
$[
|
|
2167
|
-
$[
|
|
2168
|
-
} else t1 = $[
|
|
2324
|
+
$[0] = navigation;
|
|
2325
|
+
$[1] = t1;
|
|
2326
|
+
} else t1 = $[1];
|
|
2169
2327
|
const showNavigation = t1;
|
|
2170
2328
|
let t2;
|
|
2171
|
-
if ($[
|
|
2329
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2172
2330
|
t2 = { select: _temp2$1 };
|
|
2173
|
-
$[
|
|
2174
|
-
} else t2 = $[
|
|
2331
|
+
$[2] = t2;
|
|
2332
|
+
} else t2 = $[2];
|
|
2175
2333
|
const pathname = useLocation(t2);
|
|
2176
2334
|
const showShell = options?.showShell ?? pathname !== "/login";
|
|
2177
2335
|
let t3;
|
|
2336
|
+
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2337
|
+
t3 = { from: rootRouteId };
|
|
2338
|
+
$[3] = t3;
|
|
2339
|
+
} else t3 = $[3];
|
|
2340
|
+
const { user } = useMatch(t3).context;
|
|
2341
|
+
const docked = useMediaQuery(_temp3);
|
|
2342
|
+
const showChat = Boolean(options?.chat) && showShell && Boolean(user);
|
|
2178
2343
|
let t4;
|
|
2344
|
+
let t5;
|
|
2179
2345
|
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2180
|
-
|
|
2346
|
+
t4 = () => {
|
|
2181
2347
|
if (getInitialNavigationOpen()) setNavigationOpen(true);
|
|
2182
2348
|
};
|
|
2183
|
-
|
|
2184
|
-
$[4] =
|
|
2185
|
-
$[5] =
|
|
2349
|
+
t5 = [];
|
|
2350
|
+
$[4] = t4;
|
|
2351
|
+
$[5] = t5;
|
|
2186
2352
|
} else {
|
|
2187
|
-
|
|
2188
|
-
|
|
2353
|
+
t4 = $[4];
|
|
2354
|
+
t5 = $[5];
|
|
2189
2355
|
}
|
|
2190
|
-
useEffect(
|
|
2191
|
-
let t5;
|
|
2356
|
+
useEffect(t4, t5);
|
|
2192
2357
|
let t6;
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
$[6] = t5;
|
|
2358
|
+
if ($[6] !== docked) {
|
|
2359
|
+
t6 = () => {
|
|
2360
|
+
setChatOpen(docked && localStorage.getItem(CHAT_STORAGE_KEY) !== "false");
|
|
2361
|
+
};
|
|
2362
|
+
$[6] = docked;
|
|
2199
2363
|
$[7] = t6;
|
|
2200
|
-
|
|
2364
|
+
} else t6 = $[7];
|
|
2365
|
+
let t7;
|
|
2366
|
+
if ($[8] !== docked || $[9] !== pathname) {
|
|
2367
|
+
t7 = [docked, pathname];
|
|
2368
|
+
$[8] = docked;
|
|
2369
|
+
$[9] = pathname;
|
|
2370
|
+
$[10] = t7;
|
|
2371
|
+
} else t7 = $[10];
|
|
2372
|
+
useEffect(t6, t7);
|
|
2373
|
+
let t8;
|
|
2374
|
+
if ($[11] !== chatOpen || $[12] !== docked) {
|
|
2375
|
+
t8 = () => {
|
|
2376
|
+
setChatOpen(!chatOpen);
|
|
2377
|
+
if (docked) localStorage.setItem(CHAT_STORAGE_KEY, String(!chatOpen));
|
|
2378
|
+
};
|
|
2379
|
+
$[11] = chatOpen;
|
|
2380
|
+
$[12] = docked;
|
|
2381
|
+
$[13] = t8;
|
|
2382
|
+
} else t8 = $[13];
|
|
2383
|
+
const toggleChat = t8;
|
|
2384
|
+
let t10;
|
|
2385
|
+
let t11;
|
|
2386
|
+
let t9;
|
|
2387
|
+
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2388
|
+
t9 = /* @__PURE__ */ jsx(InitColorSchemeScript, {});
|
|
2389
|
+
t10 = /* @__PURE__ */ jsx(CssBaseline, {});
|
|
2390
|
+
t11 = /* @__PURE__ */ jsx(TestMascot, {});
|
|
2391
|
+
$[14] = t10;
|
|
2392
|
+
$[15] = t11;
|
|
2393
|
+
$[16] = t9;
|
|
2201
2394
|
} else {
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2395
|
+
t10 = $[14];
|
|
2396
|
+
t11 = $[15];
|
|
2397
|
+
t9 = $[16];
|
|
2205
2398
|
}
|
|
2206
|
-
let
|
|
2207
|
-
if ($[
|
|
2208
|
-
|
|
2399
|
+
let t12;
|
|
2400
|
+
if ($[17] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2401
|
+
t12 = {
|
|
2209
2402
|
display: "flex",
|
|
2210
2403
|
height: "100dvh",
|
|
2211
2404
|
maxHeight: "100dvh",
|
|
2212
2405
|
overflow: "hidden",
|
|
2213
2406
|
width: "100%"
|
|
2214
2407
|
};
|
|
2215
|
-
$[
|
|
2216
|
-
} else
|
|
2217
|
-
let
|
|
2218
|
-
if ($[
|
|
2219
|
-
|
|
2408
|
+
$[17] = t12;
|
|
2409
|
+
} else t12 = $[17];
|
|
2410
|
+
let t13;
|
|
2411
|
+
if ($[18] !== chatOpen || $[19] !== navigationOpen || $[20] !== options || $[21] !== showChat || $[22] !== showNavigation || $[23] !== showShell || $[24] !== t || $[25] !== toggleChat) {
|
|
2412
|
+
t13 = showShell && /* @__PURE__ */ jsx(AppBar, {
|
|
2220
2413
|
color: "transparent",
|
|
2221
2414
|
position: "fixed",
|
|
2222
2415
|
sx: {
|
|
@@ -2229,7 +2422,7 @@ const Layout = (t0) => {
|
|
|
2229
2422
|
"aria-label": "Navigation",
|
|
2230
2423
|
"aria-expanded": navigationOpen,
|
|
2231
2424
|
onClick: () => {
|
|
2232
|
-
setNavigationOpen(
|
|
2425
|
+
setNavigationOpen(_temp4);
|
|
2233
2426
|
},
|
|
2234
2427
|
sx: { marginRight: 2 },
|
|
2235
2428
|
children: navigationOpen ? /* @__PURE__ */ jsx(MenuOpen, {}) : /* @__PURE__ */ jsx(Menu$1, {})
|
|
@@ -2244,18 +2437,34 @@ const Layout = (t0) => {
|
|
|
2244
2437
|
},
|
|
2245
2438
|
children: options.appBarActions
|
|
2246
2439
|
}),
|
|
2440
|
+
showChat && /* @__PURE__ */ jsx(Tooltip, {
|
|
2441
|
+
title: t("Layout.Chat.Assistant"),
|
|
2442
|
+
children: /* @__PURE__ */ jsx(IconButton, {
|
|
2443
|
+
"aria-label": t("Layout.Chat.Assistant"),
|
|
2444
|
+
"aria-expanded": chatOpen,
|
|
2445
|
+
"aria-controls": "layout-chat",
|
|
2446
|
+
color: chatOpen ? "primary" : "default",
|
|
2447
|
+
onClick: toggleChat,
|
|
2448
|
+
sx: { mr: 1 },
|
|
2449
|
+
children: /* @__PURE__ */ jsx(AutoAwesome, {})
|
|
2450
|
+
})
|
|
2451
|
+
}),
|
|
2247
2452
|
/* @__PURE__ */ jsx(ToolbarAccount, {})
|
|
2248
2453
|
] })
|
|
2249
2454
|
});
|
|
2250
|
-
$[
|
|
2251
|
-
$[
|
|
2252
|
-
$[
|
|
2253
|
-
$[
|
|
2254
|
-
$[
|
|
2255
|
-
|
|
2256
|
-
|
|
2257
|
-
|
|
2258
|
-
|
|
2455
|
+
$[18] = chatOpen;
|
|
2456
|
+
$[19] = navigationOpen;
|
|
2457
|
+
$[20] = options;
|
|
2458
|
+
$[21] = showChat;
|
|
2459
|
+
$[22] = showNavigation;
|
|
2460
|
+
$[23] = showShell;
|
|
2461
|
+
$[24] = t;
|
|
2462
|
+
$[25] = toggleChat;
|
|
2463
|
+
$[26] = t13;
|
|
2464
|
+
} else t13 = $[26];
|
|
2465
|
+
let t14;
|
|
2466
|
+
if ($[27] !== navigation || $[28] !== navigationOpen || $[29] !== showNavigation || $[30] !== showShell) {
|
|
2467
|
+
t14 = showNavigation && showShell && /* @__PURE__ */ jsx(NavigationRail, {
|
|
2259
2468
|
navigation,
|
|
2260
2469
|
expanded: navigationOpen,
|
|
2261
2470
|
setExpanded: (newValue_0) => {
|
|
@@ -2263,15 +2472,15 @@ const Layout = (t0) => {
|
|
|
2263
2472
|
saveNavigationState(newValue_0);
|
|
2264
2473
|
}
|
|
2265
2474
|
});
|
|
2266
|
-
$[
|
|
2267
|
-
$[
|
|
2268
|
-
$[
|
|
2269
|
-
$[
|
|
2270
|
-
$[
|
|
2271
|
-
} else
|
|
2272
|
-
let
|
|
2273
|
-
if ($[
|
|
2274
|
-
|
|
2475
|
+
$[27] = navigation;
|
|
2476
|
+
$[28] = navigationOpen;
|
|
2477
|
+
$[29] = showNavigation;
|
|
2478
|
+
$[30] = showShell;
|
|
2479
|
+
$[31] = t14;
|
|
2480
|
+
} else t14 = $[31];
|
|
2481
|
+
let t15;
|
|
2482
|
+
if ($[32] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2483
|
+
t15 = {
|
|
2275
2484
|
flexGrow: 1,
|
|
2276
2485
|
display: "flex",
|
|
2277
2486
|
flexDirection: "column",
|
|
@@ -2279,64 +2488,83 @@ const Layout = (t0) => {
|
|
|
2279
2488
|
height: "100%",
|
|
2280
2489
|
overflow: "hidden"
|
|
2281
2490
|
};
|
|
2282
|
-
$[
|
|
2283
|
-
} else
|
|
2284
|
-
let
|
|
2285
|
-
if ($[
|
|
2286
|
-
|
|
2287
|
-
$[
|
|
2288
|
-
$[
|
|
2289
|
-
} else
|
|
2290
|
-
let
|
|
2291
|
-
if ($[
|
|
2292
|
-
|
|
2491
|
+
$[32] = t15;
|
|
2492
|
+
} else t15 = $[32];
|
|
2493
|
+
let t16;
|
|
2494
|
+
if ($[33] !== showShell) {
|
|
2495
|
+
t16 = showShell && /* @__PURE__ */ jsx(DrawerHeader, {});
|
|
2496
|
+
$[33] = showShell;
|
|
2497
|
+
$[34] = t16;
|
|
2498
|
+
} else t16 = $[34];
|
|
2499
|
+
let t17;
|
|
2500
|
+
if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2501
|
+
t17 = {
|
|
2293
2502
|
flex: 1,
|
|
2294
2503
|
overflow: "auto",
|
|
2295
2504
|
position: "relative"
|
|
2296
2505
|
};
|
|
2297
|
-
$[
|
|
2298
|
-
} else
|
|
2299
|
-
let
|
|
2300
|
-
if ($[
|
|
2301
|
-
|
|
2302
|
-
sx:
|
|
2506
|
+
$[35] = t17;
|
|
2507
|
+
} else t17 = $[35];
|
|
2508
|
+
let t18;
|
|
2509
|
+
if ($[36] !== children) {
|
|
2510
|
+
t18 = /* @__PURE__ */ jsx(Box, {
|
|
2511
|
+
sx: t17,
|
|
2303
2512
|
children
|
|
2304
2513
|
});
|
|
2305
|
-
$[
|
|
2306
|
-
$[
|
|
2307
|
-
} else
|
|
2308
|
-
let
|
|
2309
|
-
if ($[
|
|
2310
|
-
|
|
2514
|
+
$[36] = children;
|
|
2515
|
+
$[37] = t18;
|
|
2516
|
+
} else t18 = $[37];
|
|
2517
|
+
let t19;
|
|
2518
|
+
if ($[38] !== t16 || $[39] !== t18) {
|
|
2519
|
+
t19 = /* @__PURE__ */ jsxs(Box, {
|
|
2311
2520
|
component: "main",
|
|
2312
|
-
sx:
|
|
2313
|
-
children: [
|
|
2521
|
+
sx: t15,
|
|
2522
|
+
children: [t16, t18]
|
|
2314
2523
|
});
|
|
2315
|
-
$[
|
|
2316
|
-
$[
|
|
2317
|
-
$[
|
|
2318
|
-
} else
|
|
2319
|
-
let
|
|
2320
|
-
if ($[
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2524
|
+
$[38] = t16;
|
|
2525
|
+
$[39] = t18;
|
|
2526
|
+
$[40] = t19;
|
|
2527
|
+
} else t19 = $[40];
|
|
2528
|
+
let t20;
|
|
2529
|
+
if ($[41] !== chatOpen || $[42] !== docked || $[43] !== navigationOpen || $[44] !== options?.chat || $[45] !== showChat || $[46] !== showNavigation) {
|
|
2530
|
+
t20 = showChat && /* @__PURE__ */ jsx(ChatPanel, {
|
|
2531
|
+
id: "layout-chat",
|
|
2532
|
+
open: chatOpen,
|
|
2533
|
+
docked,
|
|
2534
|
+
rail: showNavigation ? navigationOpen ? 320 : 84 : 0,
|
|
2535
|
+
children: options?.chat
|
|
2536
|
+
});
|
|
2537
|
+
$[41] = chatOpen;
|
|
2538
|
+
$[42] = docked;
|
|
2539
|
+
$[43] = navigationOpen;
|
|
2540
|
+
$[44] = options?.chat;
|
|
2541
|
+
$[45] = showChat;
|
|
2542
|
+
$[46] = showNavigation;
|
|
2543
|
+
$[47] = t20;
|
|
2544
|
+
} else t20 = $[47];
|
|
2545
|
+
let t21;
|
|
2546
|
+
if ($[48] !== t13 || $[49] !== t14 || $[50] !== t19 || $[51] !== t20) {
|
|
2547
|
+
t21 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2548
|
+
t9,
|
|
2549
|
+
t10,
|
|
2550
|
+
t11,
|
|
2325
2551
|
/* @__PURE__ */ jsxs(Box, {
|
|
2326
|
-
sx:
|
|
2552
|
+
sx: t12,
|
|
2327
2553
|
children: [
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2554
|
+
t13,
|
|
2555
|
+
t14,
|
|
2556
|
+
t19,
|
|
2557
|
+
t20
|
|
2331
2558
|
]
|
|
2332
2559
|
})
|
|
2333
2560
|
] });
|
|
2334
|
-
$[
|
|
2335
|
-
$[
|
|
2336
|
-
$[
|
|
2337
|
-
$[
|
|
2338
|
-
|
|
2339
|
-
|
|
2561
|
+
$[48] = t13;
|
|
2562
|
+
$[49] = t14;
|
|
2563
|
+
$[50] = t19;
|
|
2564
|
+
$[51] = t20;
|
|
2565
|
+
$[52] = t21;
|
|
2566
|
+
} else t21 = $[52];
|
|
2567
|
+
return t21;
|
|
2340
2568
|
};
|
|
2341
2569
|
function _temp$1(item) {
|
|
2342
2570
|
return item.hidden !== true;
|
|
@@ -2344,13 +2572,15 @@ function _temp$1(item) {
|
|
|
2344
2572
|
function _temp2$1(location) {
|
|
2345
2573
|
return location.pathname;
|
|
2346
2574
|
}
|
|
2347
|
-
function _temp3(
|
|
2575
|
+
function _temp3(theme) {
|
|
2576
|
+
return theme.breakpoints.up("lg");
|
|
2577
|
+
}
|
|
2578
|
+
function _temp4(previous) {
|
|
2348
2579
|
const newValue = !previous;
|
|
2349
2580
|
saveNavigationState(newValue);
|
|
2350
2581
|
return newValue;
|
|
2351
2582
|
}
|
|
2352
|
-
|
|
2353
|
-
//#region src/providers/DialogsProvider.tsx
|
|
2583
|
+
// src/providers/DialogsProvider.tsx
|
|
2354
2584
|
function DialogsProvider({ children }) {
|
|
2355
2585
|
const [stack, setStack] = useState([]);
|
|
2356
2586
|
const keyPrefix = useId();
|
|
@@ -2378,43 +2608,42 @@ function DialogsProvider({ children }) {
|
|
|
2378
2608
|
return promise;
|
|
2379
2609
|
});
|
|
2380
2610
|
const removeDialogFromStack = (dialog) => {
|
|
2381
|
-
setStack((
|
|
2611
|
+
setStack((previousStack) => previousStack.filter((entry) => entry.promise !== dialog));
|
|
2382
2612
|
dialogMetadata.current.delete(dialog);
|
|
2383
2613
|
};
|
|
2384
|
-
const closeDialogUi = useEventCallback$1(function closeDialogUi(
|
|
2385
|
-
setStack((
|
|
2386
|
-
...
|
|
2614
|
+
const closeDialogUi = useEventCallback$1(function closeDialogUi(dialog) {
|
|
2615
|
+
setStack((previousStack) => previousStack.map((entry) => entry.promise === dialog ? {
|
|
2616
|
+
...entry,
|
|
2387
2617
|
open: false
|
|
2388
|
-
} :
|
|
2389
|
-
setTimeout(() => removeDialogFromStack(
|
|
2618
|
+
} : entry));
|
|
2619
|
+
setTimeout(() => removeDialogFromStack(dialog), 1e3);
|
|
2390
2620
|
});
|
|
2391
|
-
const closeDialog = useEventCallback$1(async function closeDialog(
|
|
2392
|
-
const entryToClose = dialogMetadata.current.get(
|
|
2621
|
+
const closeDialog = useEventCallback$1(async function closeDialog(dialog, result) {
|
|
2622
|
+
const entryToClose = dialogMetadata.current.get(dialog);
|
|
2393
2623
|
if (!entryToClose) throw new Error("Dialog not found in stack");
|
|
2394
2624
|
try {
|
|
2395
2625
|
await entryToClose.onClose(result);
|
|
2396
2626
|
} finally {
|
|
2397
2627
|
entryToClose.resolve(result);
|
|
2398
|
-
closeDialogUi(
|
|
2628
|
+
closeDialogUi(dialog);
|
|
2399
2629
|
}
|
|
2400
|
-
return
|
|
2630
|
+
return dialog;
|
|
2401
2631
|
});
|
|
2402
2632
|
return /* @__PURE__ */ jsxs(DialogsContext.Provider, {
|
|
2403
2633
|
value: {
|
|
2404
2634
|
open: requestDialog,
|
|
2405
2635
|
close: closeDialog
|
|
2406
2636
|
},
|
|
2407
|
-
children: [children, stack.map(({ key
|
|
2408
|
-
payload
|
|
2637
|
+
children: [children, stack.map(({ key, open, Component, payload, promise }) => /* @__PURE__ */ jsx(Component, {
|
|
2638
|
+
payload,
|
|
2409
2639
|
open,
|
|
2410
|
-
onClose: async (
|
|
2411
|
-
await closeDialog(
|
|
2640
|
+
onClose: async (result) => {
|
|
2641
|
+
await closeDialog(promise, result);
|
|
2412
2642
|
}
|
|
2413
|
-
},
|
|
2643
|
+
}, key))]
|
|
2414
2644
|
});
|
|
2415
2645
|
}
|
|
2416
|
-
|
|
2417
|
-
//#region src/providers/LayoutProvider.tsx
|
|
2646
|
+
// src/providers/LayoutProvider.tsx
|
|
2418
2647
|
const YEAR_IN_SECONDS = 31536e3;
|
|
2419
2648
|
const LANGUAGE_COOKIE = "i18next";
|
|
2420
2649
|
const normalizeLocale = (locale) => locale.replace(/[^a-z]/gi, "").toLowerCase();
|
|
@@ -2439,64 +2668,60 @@ i18n.on("languageChanged", (language) => {
|
|
|
2439
2668
|
if (typeof document !== "undefined") document.cookie = `${LANGUAGE_COOKIE}=${language};path=/;max-age=${YEAR_IN_SECONDS};SameSite=Lax`;
|
|
2440
2669
|
});
|
|
2441
2670
|
const LayoutProvider = (t0) => {
|
|
2442
|
-
const $ = c(
|
|
2443
|
-
if ($[0] !== "ddcc42db67b5eb0437402fd846c71b645be4441044d88bc8b97debf5bd36c0c6") {
|
|
2444
|
-
for (let $i = 0; $i < 17; $i += 1) $[$i] = Symbol.for("react.memo_cache_sentinel");
|
|
2445
|
-
$[0] = "ddcc42db67b5eb0437402fd846c71b645be4441044d88bc8b97debf5bd36c0c6";
|
|
2446
|
-
}
|
|
2671
|
+
const $ = c(16);
|
|
2447
2672
|
const { options, navigation, theme, children } = t0;
|
|
2448
2673
|
let t1;
|
|
2449
|
-
if ($[
|
|
2674
|
+
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2450
2675
|
t1 = createCache({ key: "css" });
|
|
2451
|
-
$[
|
|
2452
|
-
} else t1 = $[
|
|
2676
|
+
$[0] = t1;
|
|
2677
|
+
} else t1 = $[0];
|
|
2453
2678
|
const emotionCache = t1;
|
|
2454
2679
|
const { i18n: activeI18n } = useTranslation();
|
|
2455
2680
|
useQuery(userQueryOptions);
|
|
2456
2681
|
let t2;
|
|
2457
|
-
if ($[
|
|
2682
|
+
if ($[1] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2458
2683
|
t2 = [];
|
|
2459
|
-
$[
|
|
2460
|
-
} else t2 = $[
|
|
2684
|
+
$[1] = t2;
|
|
2685
|
+
} else t2 = $[1];
|
|
2461
2686
|
useEffect(_temp, t2);
|
|
2462
2687
|
let t3;
|
|
2463
|
-
if ($[
|
|
2688
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
2464
2689
|
t3 = [];
|
|
2465
|
-
$[
|
|
2466
|
-
} else t3 = $[
|
|
2690
|
+
$[2] = t3;
|
|
2691
|
+
} else t3 = $[2];
|
|
2467
2692
|
useEffect(_temp2, t3);
|
|
2468
2693
|
let t4;
|
|
2469
|
-
if ($[
|
|
2694
|
+
if ($[3] !== activeI18n.language || $[4] !== children) {
|
|
2470
2695
|
t4 = /* @__PURE__ */ jsx(Fragment, { children }, activeI18n.language);
|
|
2471
|
-
$[
|
|
2472
|
-
$[
|
|
2473
|
-
$[
|
|
2474
|
-
} else t4 = $[
|
|
2696
|
+
$[3] = activeI18n.language;
|
|
2697
|
+
$[4] = children;
|
|
2698
|
+
$[5] = t4;
|
|
2699
|
+
} else t4 = $[5];
|
|
2475
2700
|
let t5;
|
|
2476
|
-
if ($[
|
|
2701
|
+
if ($[6] !== navigation || $[7] !== options || $[8] !== t4) {
|
|
2477
2702
|
t5 = /* @__PURE__ */ jsx(DialogsProvider, { children: /* @__PURE__ */ jsx(Layout, {
|
|
2478
2703
|
navigation,
|
|
2479
2704
|
options,
|
|
2480
2705
|
children: t4
|
|
2481
2706
|
}) });
|
|
2482
|
-
$[
|
|
2483
|
-
$[
|
|
2484
|
-
$[
|
|
2485
|
-
$[
|
|
2486
|
-
} else t5 = $[
|
|
2707
|
+
$[6] = navigation;
|
|
2708
|
+
$[7] = options;
|
|
2709
|
+
$[8] = t4;
|
|
2710
|
+
$[9] = t5;
|
|
2711
|
+
} else t5 = $[9];
|
|
2487
2712
|
let t6;
|
|
2488
|
-
if ($[
|
|
2713
|
+
if ($[10] !== activeI18n.language || $[11] !== t5) {
|
|
2489
2714
|
t6 = /* @__PURE__ */ jsx(LocalizationProvider, {
|
|
2490
2715
|
dateAdapter: AdapterDayjs,
|
|
2491
2716
|
adapterLocale: activeI18n.language,
|
|
2492
2717
|
children: t5
|
|
2493
2718
|
});
|
|
2494
|
-
$[
|
|
2495
|
-
$[
|
|
2496
|
-
$[
|
|
2497
|
-
} else t6 = $[
|
|
2719
|
+
$[10] = activeI18n.language;
|
|
2720
|
+
$[11] = t5;
|
|
2721
|
+
$[12] = t6;
|
|
2722
|
+
} else t6 = $[12];
|
|
2498
2723
|
let t7;
|
|
2499
|
-
if ($[
|
|
2724
|
+
if ($[13] !== t6 || $[14] !== theme) {
|
|
2500
2725
|
t7 = /* @__PURE__ */ jsx(CacheProvider, {
|
|
2501
2726
|
value: emotionCache,
|
|
2502
2727
|
children: /* @__PURE__ */ jsx(I18nextProvider, {
|
|
@@ -2507,10 +2732,10 @@ const LayoutProvider = (t0) => {
|
|
|
2507
2732
|
})
|
|
2508
2733
|
})
|
|
2509
2734
|
});
|
|
2510
|
-
$[
|
|
2511
|
-
$[
|
|
2512
|
-
$[
|
|
2513
|
-
} else t7 = $[
|
|
2735
|
+
$[13] = t6;
|
|
2736
|
+
$[14] = theme;
|
|
2737
|
+
$[15] = t7;
|
|
2738
|
+
} else t7 = $[15];
|
|
2514
2739
|
return t7;
|
|
2515
2740
|
};
|
|
2516
2741
|
function _temp() {
|
|
@@ -2519,23 +2744,20 @@ function _temp() {
|
|
|
2519
2744
|
function _temp2() {
|
|
2520
2745
|
if ("serviceWorker" in navigator) navigator.serviceWorker.register("/sw.js");
|
|
2521
2746
|
}
|
|
2522
|
-
|
|
2523
|
-
//#region src/lib/language.ts
|
|
2747
|
+
// src/lib/language.ts
|
|
2524
2748
|
/**
|
|
2525
2749
|
* Server-renders the request's language — the `i18next` cookie the browser writes on every
|
|
2526
2750
|
* switch, then `Accept-Language` — so `LayoutProvider`'s language-keyed page hydrates instead
|
|
2527
2751
|
* of being rebuilt when the browser detects a language other than English. No-op in the browser,
|
|
2528
2752
|
* where i18next detects the language itself.
|
|
2529
2753
|
*/
|
|
2530
|
-
const setLanguageFromRequest = async () => {
|
|
2531
|
-
if (!import.meta.env.SSR) return;
|
|
2754
|
+
const setLanguageFromRequest = createIsomorphicFn().server(async () => {
|
|
2532
2755
|
const { getCookie, getRequestHeader } = await import("@tanstack/react-start/server");
|
|
2533
2756
|
const accepted = (getRequestHeader("accept-language") ?? "").split(",").map((part) => part.split(";")[0].trim());
|
|
2534
2757
|
const codes = [getCookie("i18next"), ...accepted].filter((code) => !!code);
|
|
2535
2758
|
const language = i18n.services.languageUtils.getBestMatchFromCodes(codes) ?? "en";
|
|
2536
2759
|
if (i18n.language !== language) await i18n.changeLanguage(language);
|
|
2537
|
-
};
|
|
2538
|
-
//#endregion
|
|
2760
|
+
}).client(async () => {});
|
|
2539
2761
|
export { LayoutProvider, WISTRON_PRIMARY_COLOR, WISTRON_SECONDARY_COLOR, getUser, loginProvidersQueryOptions, rootRouteHead, setLanguageFromRequest };
|
|
2540
2762
|
|
|
2541
2763
|
//# sourceMappingURL=index.mjs.map
|