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