wcz-layout 7.0.1 → 7.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of wcz-layout might be problematic. Click here for more details.
- package/dist/UseUser-Cgnr4DWh.js.map +1 -1
- package/dist/components/core/Layout.d.ts +1 -1
- package/dist/components/core/navigation/NavigationContent.d.ts +11 -0
- package/dist/index.js +490 -466
- package/dist/index.js.map +1 -1
- package/dist/middleware.js.map +1 -1
- package/dist/models/LayoutOptions.d.ts +1 -1
- package/dist/utils-CWgky1iM.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,178 +1,178 @@
|
|
|
1
|
-
import { j as o, D as
|
|
1
|
+
import { j as o, D as Rt } from "./DialogsContext-DK_2txyr.js";
|
|
2
2
|
import { c as B } from "./compiler-runtime-BNHg76kC.js";
|
|
3
|
-
import { useMsal as
|
|
4
|
-
import { Typography as
|
|
3
|
+
import { useMsal as St, useIsAuthenticated as _t, AuthenticatedTemplate as lt, UnauthenticatedTemplate as ut, MsalProvider as At } from "@azure/msal-react";
|
|
4
|
+
import { Typography as $t, Chip as Et, Stack as Pt, Collapse as Nt, Grow as Ot, useColorScheme as Dt, ListItemButton as xe, ListItemText as z, ListItemIcon as ge, ListSubheader as ot, List as qe, IconButton as Ge, Avatar as Bt, ListItem as Wt, Box as Ke, Menu as zt, InitColorSchemeScript as Ut, CssBaseline as Ht, AppBar as Ft, Toolbar as Yt, ThemeProvider as qt } from "@mui/material";
|
|
5
5
|
import { LocalizationProvider as Gt } from "@mui/x-date-pickers";
|
|
6
6
|
import { AdapterDayjs as Kt } from "@mui/x-date-pickers/AdapterDayjs";
|
|
7
7
|
import Vt from "dayjs";
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import { useTranslation as
|
|
8
|
+
import Ve from "i18next";
|
|
9
|
+
import Xt from "i18next-browser-languagedetector";
|
|
10
|
+
import { useTranslation as Qt, initReactI18next as Jt } from "react-i18next";
|
|
11
11
|
import { resources as ht } from "virtual:wcz-layout";
|
|
12
|
-
import
|
|
12
|
+
import nt from "zod";
|
|
13
13
|
import st from "@mui/utils/useEventCallback";
|
|
14
|
-
import { useState as W, useId as Zt, useRef as
|
|
14
|
+
import { useState as W, useId as Zt, useRef as rt, useEffect as mt, Fragment as be } from "react";
|
|
15
15
|
import eo from "@mui/material/Alert";
|
|
16
16
|
import to from "@mui/material/Snackbar";
|
|
17
17
|
import { N as oo, u as so } from "./UseUser-Cgnr4DWh.js";
|
|
18
|
-
import { c as io, g as
|
|
19
|
-
import { W as
|
|
18
|
+
import { c as io, g as lo, P as Xe, p as no } from "./utils-CWgky1iM.js";
|
|
19
|
+
import { W as ci, a as mi, r as di } from "./utils-CWgky1iM.js";
|
|
20
20
|
import { InteractionStatus as ro } from "@azure/msal-browser";
|
|
21
21
|
import ao from "@mui/icons-material/Menu";
|
|
22
22
|
import co from "@mui/icons-material/MenuOpen";
|
|
23
|
-
import { styled as dt
|
|
24
|
-
import { useRouter as
|
|
25
|
-
import ft from "@mui/material/Box";
|
|
23
|
+
import { styled as dt } from "@mui/material/styles";
|
|
24
|
+
import { useRouter as mo, useNavigate as fo, useRouterState as po, useMatches as uo } from "@tanstack/react-router";
|
|
26
25
|
import xt from "@mui/material/Drawer";
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
26
|
+
import ft from "@mui/material/Box";
|
|
27
|
+
import ho from "@mui/material/Divider";
|
|
28
|
+
import xo from "@mui/material/List";
|
|
29
|
+
import go from "@mui/material/ListSubheader";
|
|
30
|
+
import yo from "@mui/icons-material/ExpandMore";
|
|
31
|
+
import bo from "@mui/material/Avatar";
|
|
32
|
+
import jo from "@mui/material/ListItem";
|
|
33
|
+
import vo from "@mui/material/ListItemButton";
|
|
34
|
+
import So from "@mui/material/ListItemIcon";
|
|
35
|
+
import _o from "@mui/material/ListItemText";
|
|
36
|
+
import Io from "@mui/material/Paper";
|
|
37
|
+
import Lo from "@mui/material/Typography";
|
|
38
|
+
import { R as Co } from "./RouterListItemButton-CpvZ1eL8.js";
|
|
39
|
+
import ko from "@mui/icons-material/AccountCircle";
|
|
40
40
|
import gt from "@mui/icons-material/ArrowBack";
|
|
41
|
-
import
|
|
41
|
+
import wo from "@mui/icons-material/Brightness4";
|
|
42
42
|
import yt from "@mui/icons-material/ChevronRight";
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import { queryOptions as No, useQuery as
|
|
51
|
-
import
|
|
52
|
-
function
|
|
43
|
+
import To from "@mui/icons-material/DarkMode";
|
|
44
|
+
import Mo from "@mui/icons-material/Done";
|
|
45
|
+
import Ro from "@mui/icons-material/LightMode";
|
|
46
|
+
import Ao from "@mui/icons-material/Login";
|
|
47
|
+
import $o from "@mui/icons-material/Logout";
|
|
48
|
+
import Eo from "@mui/icons-material/SettingsBrightness";
|
|
49
|
+
import Po from "@mui/icons-material/Translate";
|
|
50
|
+
import { queryOptions as No, useQuery as Oo } from "@tanstack/react-query";
|
|
51
|
+
import Do from "axios";
|
|
52
|
+
function Bo({
|
|
53
53
|
children: t
|
|
54
54
|
}) {
|
|
55
|
-
const [e, s] = W([]), r = Zt(), l =
|
|
55
|
+
const [e, s] = W([]), r = Zt(), l = rt(0), c = rt(/* @__PURE__ */ new WeakMap()), i = st(function(u, f, a = {}) {
|
|
56
56
|
const {
|
|
57
|
-
onClose:
|
|
57
|
+
onClose: x = async () => {
|
|
58
58
|
}
|
|
59
|
-
} =
|
|
59
|
+
} = a;
|
|
60
60
|
let h;
|
|
61
|
-
const g = new Promise((
|
|
62
|
-
h =
|
|
63
|
-
}),
|
|
61
|
+
const g = new Promise((_) => {
|
|
62
|
+
h = _;
|
|
63
|
+
}), y = `${r}-${l.current}`;
|
|
64
64
|
l.current += 1;
|
|
65
|
-
const
|
|
66
|
-
key:
|
|
65
|
+
const S = {
|
|
66
|
+
key: y,
|
|
67
67
|
open: !0,
|
|
68
68
|
promise: g,
|
|
69
69
|
Component: u,
|
|
70
|
-
payload:
|
|
71
|
-
onClose:
|
|
70
|
+
payload: f,
|
|
71
|
+
onClose: x,
|
|
72
72
|
resolve: h
|
|
73
73
|
};
|
|
74
|
-
return
|
|
74
|
+
return c.current.set(g, S), s((_) => [..._, S]), g;
|
|
75
75
|
}), n = (p) => {
|
|
76
|
-
s((u) => u.filter((
|
|
76
|
+
s((u) => u.filter((f) => f.promise !== p)), c.current.delete(p);
|
|
77
77
|
}, m = st(function(u) {
|
|
78
|
-
s((
|
|
79
|
-
...
|
|
78
|
+
s((f) => f.map((a) => a.promise === u ? {
|
|
79
|
+
...a,
|
|
80
80
|
open: !1
|
|
81
|
-
} :
|
|
82
|
-
}),
|
|
83
|
-
const
|
|
84
|
-
if (!
|
|
81
|
+
} : a)), setTimeout(() => n(u), 1e3);
|
|
82
|
+
}), d = st(async function(u, f) {
|
|
83
|
+
const a = c.current.get(u);
|
|
84
|
+
if (!a)
|
|
85
85
|
throw new Error("Dialog not found in stack");
|
|
86
86
|
try {
|
|
87
|
-
await
|
|
87
|
+
await a.onClose(f);
|
|
88
88
|
} finally {
|
|
89
|
-
|
|
89
|
+
a.resolve(f), m(u);
|
|
90
90
|
}
|
|
91
91
|
return u;
|
|
92
92
|
});
|
|
93
|
-
return /* @__PURE__ */ o.jsxs(
|
|
93
|
+
return /* @__PURE__ */ o.jsxs(Rt.Provider, { value: {
|
|
94
94
|
open: i,
|
|
95
|
-
close:
|
|
95
|
+
close: d
|
|
96
96
|
}, children: [
|
|
97
97
|
t,
|
|
98
98
|
e.map(({
|
|
99
99
|
key: p,
|
|
100
100
|
open: u,
|
|
101
|
-
Component:
|
|
102
|
-
payload:
|
|
103
|
-
promise:
|
|
104
|
-
}) => /* @__PURE__ */ o.jsx(
|
|
105
|
-
await
|
|
101
|
+
Component: f,
|
|
102
|
+
payload: a,
|
|
103
|
+
promise: x
|
|
104
|
+
}) => /* @__PURE__ */ o.jsx(f, { payload: a, open: u, onClose: async (h) => {
|
|
105
|
+
await d(x, h);
|
|
106
106
|
} }, p))
|
|
107
107
|
] });
|
|
108
108
|
}
|
|
109
|
-
const
|
|
109
|
+
const Wo = 1e3, zo = (t) => {
|
|
110
110
|
const e = B.c(21), {
|
|
111
111
|
children: s,
|
|
112
112
|
snackbarOrigin: r
|
|
113
113
|
} = t;
|
|
114
114
|
let l;
|
|
115
115
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [], e[0] = l) : l = e[0];
|
|
116
|
-
const [
|
|
116
|
+
const [c, i] = W(l), [n, m] = W(null), d = !!n, p = rt(null);
|
|
117
117
|
let u;
|
|
118
118
|
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = () => {
|
|
119
|
-
i((
|
|
120
|
-
if (
|
|
121
|
-
return
|
|
122
|
-
const [
|
|
123
|
-
return m(
|
|
119
|
+
i((L) => {
|
|
120
|
+
if (L.length === 0)
|
|
121
|
+
return L;
|
|
122
|
+
const [b, ...v] = L;
|
|
123
|
+
return m(b), v;
|
|
124
124
|
});
|
|
125
125
|
}, e[1] = u) : u = e[1];
|
|
126
|
-
const
|
|
127
|
-
let
|
|
128
|
-
e[2] !== n || e[3] !==
|
|
126
|
+
const f = u;
|
|
127
|
+
let a, x;
|
|
128
|
+
e[2] !== n || e[3] !== d || e[4] !== c.length ? (a = () => (!d && c.length > 0 && (p.current = setTimeout(f, n ? Wo : 0)), () => {
|
|
129
129
|
p.current && clearTimeout(p.current);
|
|
130
|
-
}),
|
|
130
|
+
}), x = [d, c.length, n], e[2] = n, e[3] = d, e[4] = c.length, e[5] = a, e[6] = x) : (a = e[5], x = e[6]), mt(a, x);
|
|
131
131
|
let h;
|
|
132
|
-
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = (
|
|
133
|
-
const
|
|
134
|
-
message:
|
|
135
|
-
severity:
|
|
136
|
-
autoHideDuration:
|
|
132
|
+
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = (L, b) => {
|
|
133
|
+
const v = {
|
|
134
|
+
message: L,
|
|
135
|
+
severity: b?.severity,
|
|
136
|
+
autoHideDuration: b?.autoHideDuration ?? 5e3
|
|
137
137
|
};
|
|
138
|
-
i((M) => [...M,
|
|
138
|
+
i((M) => [...M, v]);
|
|
139
139
|
}, e[7] = h) : h = e[7];
|
|
140
140
|
const g = h;
|
|
141
|
-
let
|
|
142
|
-
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
141
|
+
let y;
|
|
142
|
+
e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = {
|
|
143
143
|
notify: g
|
|
144
|
-
}, e[8] =
|
|
145
|
-
const
|
|
146
|
-
let
|
|
147
|
-
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
148
|
-
|
|
149
|
-
}, e[9] =
|
|
150
|
-
const
|
|
151
|
-
let
|
|
152
|
-
e[10] !== n ? (
|
|
153
|
-
let I;
|
|
154
|
-
e[12] !== f || e[13] !== r || e[14] !== v || e[15] !== y || e[16] !== x ? (I = /* @__PURE__ */ o.jsx(to, { open: f, autoHideDuration: y, onClose: b, anchorOrigin: r, message: x, children: v }), e[12] = f, e[13] = r, e[14] = v, e[15] = y, e[16] = x, e[17] = I) : I = e[17];
|
|
144
|
+
}, e[8] = y) : y = e[8];
|
|
145
|
+
const S = n?.autoHideDuration;
|
|
146
|
+
let _;
|
|
147
|
+
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (L, b) => {
|
|
148
|
+
b !== "clickaway" && m(null);
|
|
149
|
+
}, e[9] = _) : _ = e[9];
|
|
150
|
+
const j = n?.message;
|
|
151
|
+
let k;
|
|
152
|
+
e[10] !== n ? (k = n?.severity ? /* @__PURE__ */ o.jsx(eo, { onClose: () => m(null), severity: n.severity, variant: "filled", children: n.message }) : void 0, e[10] = n, e[11] = k) : k = e[11];
|
|
155
153
|
let C;
|
|
156
|
-
|
|
154
|
+
e[12] !== d || e[13] !== r || e[14] !== k || e[15] !== S || e[16] !== j ? (C = /* @__PURE__ */ o.jsx(to, { open: d, autoHideDuration: S, onClose: _, anchorOrigin: r, message: j, children: k }), e[12] = d, e[13] = r, e[14] = k, e[15] = S, e[16] = j, e[17] = C) : C = e[17];
|
|
155
|
+
let I;
|
|
156
|
+
return e[18] !== s || e[19] !== C ? (I = /* @__PURE__ */ o.jsxs(oo, { value: y, children: [
|
|
157
157
|
s,
|
|
158
|
-
|
|
159
|
-
] }), e[18] = s, e[19] =
|
|
160
|
-
},
|
|
161
|
-
const t = B.c(9), e =
|
|
158
|
+
C
|
|
159
|
+
] }), e[18] = s, e[19] = C, e[20] = I) : I = e[20], I;
|
|
160
|
+
}, Uo = "PRD", Ho = (t) => nt.string().refine((e) => e.split("-").length > 2).transform((e) => e.split("-")[2].toUpperCase()).catch("LOCALHOST").parse(t), Fo = () => {
|
|
161
|
+
const t = B.c(9), e = mo();
|
|
162
162
|
let s;
|
|
163
|
-
t[0] !== e.origin ? (s =
|
|
164
|
-
const r = s, l = r ===
|
|
165
|
-
let
|
|
166
|
-
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
163
|
+
t[0] !== e.origin ? (s = Ho(e.origin), t[0] = e.origin, t[1] = s) : s = t[1];
|
|
164
|
+
const r = s, l = r === Uo;
|
|
165
|
+
let c, i;
|
|
166
|
+
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ o.jsx("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }), i = /* @__PURE__ */ o.jsx($t, { variant: "h6", children: io.VITE_APP_TITLE }), t[2] = c, t[3] = i) : (c = t[2], i = t[3]);
|
|
167
167
|
let n;
|
|
168
|
-
t[4] !== r || t[5] !== l ? (n = !l && /* @__PURE__ */ o.jsx(
|
|
168
|
+
t[4] !== r || t[5] !== l ? (n = !l && /* @__PURE__ */ o.jsx(Et, { size: "small", label: r, color: "primary" }), t[4] = r, t[5] = l, t[6] = n) : n = t[6];
|
|
169
169
|
let m;
|
|
170
|
-
return t[7] !== n ? (m = /* @__PURE__ */ o.jsxs(
|
|
171
|
-
|
|
170
|
+
return t[7] !== n ? (m = /* @__PURE__ */ o.jsxs(Pt, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
|
|
171
|
+
c,
|
|
172
172
|
i,
|
|
173
173
|
n
|
|
174
174
|
] }), t[7] = n, t[8] = m) : m = t[8], m;
|
|
175
|
-
}, it = 34,
|
|
175
|
+
}, it = 34, Yo = dt(vo)(({
|
|
176
176
|
theme: t
|
|
177
177
|
}) => ({
|
|
178
178
|
borderRadius: 8,
|
|
@@ -193,7 +193,7 @@ const zo = 1e3, Uo = (t) => {
|
|
|
193
193
|
"& .MuiAvatar-root": {
|
|
194
194
|
backgroundColor: (t.vars ?? t).palette.action.active
|
|
195
195
|
}
|
|
196
|
-
})),
|
|
196
|
+
})), qo = dt(Co)(({
|
|
197
197
|
theme: t
|
|
198
198
|
}) => ({
|
|
199
199
|
borderRadius: 8,
|
|
@@ -214,7 +214,7 @@ const zo = 1e3, Uo = (t) => {
|
|
|
214
214
|
"& .MuiAvatar-root": {
|
|
215
215
|
backgroundColor: (t.vars ?? t).palette.action.active
|
|
216
216
|
}
|
|
217
|
-
})),
|
|
217
|
+
})), Go = (t) => {
|
|
218
218
|
const e = B.c(17), {
|
|
219
219
|
item: s,
|
|
220
220
|
collapsed: r
|
|
@@ -227,27 +227,27 @@ const zo = 1e3, Uo = (t) => {
|
|
|
227
227
|
top: "calc(50% - 6px)",
|
|
228
228
|
transform: "translate(-50%, -50%)"
|
|
229
229
|
} : {}, e[0] = r, e[1] = l) : l = e[1];
|
|
230
|
-
let
|
|
231
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
230
|
+
let c;
|
|
231
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
|
|
232
232
|
display: "flex",
|
|
233
233
|
alignItems: "center",
|
|
234
234
|
justifyContent: "center",
|
|
235
235
|
minWidth: it
|
|
236
|
-
}, e[2] =
|
|
236
|
+
}, e[2] = c) : c = e[2];
|
|
237
237
|
const i = s.icon ?? null;
|
|
238
238
|
let n;
|
|
239
|
-
e[3] !== r || e[4] !== s.icon || e[5] !== s.title ? (n = !s.icon && r ? /* @__PURE__ */ o.jsx(
|
|
239
|
+
e[3] !== r || e[4] !== s.icon || e[5] !== s.title ? (n = !s.icon && r ? /* @__PURE__ */ o.jsx(bo, { sx: {
|
|
240
240
|
width: it - 7,
|
|
241
241
|
height: it - 7,
|
|
242
242
|
fontSize: 12
|
|
243
243
|
}, children: s.title.split(" ").slice(0, 2).map(Xo) }) : null, e[3] = r, e[4] = s.icon, e[5] = s.title, e[6] = n) : n = e[6];
|
|
244
244
|
let m;
|
|
245
|
-
e[7] !== i || e[8] !== n ? (m = /* @__PURE__ */ o.jsxs(
|
|
245
|
+
e[7] !== i || e[8] !== n ? (m = /* @__PURE__ */ o.jsxs(So, { sx: c, children: [
|
|
246
246
|
i,
|
|
247
247
|
n
|
|
248
248
|
] }), e[7] = i, e[8] = n, e[9] = m) : m = e[9];
|
|
249
|
-
let
|
|
250
|
-
e[10] !== r || e[11] !== s.title ? (
|
|
249
|
+
let d;
|
|
250
|
+
e[10] !== r || e[11] !== s.title ? (d = r ? /* @__PURE__ */ o.jsx(Lo, { variant: "caption", sx: {
|
|
251
251
|
position: "absolute",
|
|
252
252
|
bottom: -18,
|
|
253
253
|
left: "50%",
|
|
@@ -259,15 +259,15 @@ const zo = 1e3, Uo = (t) => {
|
|
|
259
259
|
overflow: "hidden",
|
|
260
260
|
textOverflow: "ellipsis",
|
|
261
261
|
maxWidth: ye - 28
|
|
262
|
-
}, children: s.title }) : null, e[10] = r, e[11] = s.title, e[12] =
|
|
262
|
+
}, children: s.title }) : null, e[10] = r, e[11] = s.title, e[12] = d) : d = e[12];
|
|
263
263
|
let p;
|
|
264
|
-
return e[13] !== l || e[14] !== m || e[15] !==
|
|
264
|
+
return e[13] !== l || e[14] !== m || e[15] !== d ? (p = /* @__PURE__ */ o.jsxs(ft, { sx: l, children: [
|
|
265
265
|
m,
|
|
266
|
-
|
|
267
|
-
] }), e[13] = l, e[14] = m, e[15] =
|
|
266
|
+
d
|
|
267
|
+
] }), e[13] = l, e[14] = m, e[15] = d, e[16] = p) : p = e[16], p;
|
|
268
268
|
}
|
|
269
269
|
return null;
|
|
270
|
-
},
|
|
270
|
+
}, Ko = (t) => {
|
|
271
271
|
const e = B.c(7), {
|
|
272
272
|
open: s,
|
|
273
273
|
children: r
|
|
@@ -279,66 +279,66 @@ const zo = 1e3, Uo = (t) => {
|
|
|
279
279
|
pl: "2px",
|
|
280
280
|
pb: "10px"
|
|
281
281
|
}, e[0] = l) : l = e[0];
|
|
282
|
-
let
|
|
283
|
-
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
282
|
+
let c;
|
|
283
|
+
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
|
|
284
284
|
pt: 0.5,
|
|
285
285
|
pb: 0.5,
|
|
286
286
|
transform: "translateY(calc(50% - 30px))",
|
|
287
287
|
maxHeight: "min(calc(100vh - 100px), 560px)",
|
|
288
288
|
overflowY: "auto",
|
|
289
289
|
overscrollBehavior: "contain"
|
|
290
|
-
}, e[1] =
|
|
290
|
+
}, e[1] = c) : c = e[1];
|
|
291
291
|
let i;
|
|
292
|
-
e[2] !== r ? (i = /* @__PURE__ */ o.jsx(ft, { sx: l, children: /* @__PURE__ */ o.jsx(
|
|
292
|
+
e[2] !== r ? (i = /* @__PURE__ */ o.jsx(ft, { sx: l, children: /* @__PURE__ */ o.jsx(Io, { sx: c, children: r }) }), e[2] = r, e[3] = i) : i = e[3];
|
|
293
293
|
let n;
|
|
294
|
-
return e[4] !== s || e[5] !== i ? (n = /* @__PURE__ */ o.jsx(
|
|
295
|
-
},
|
|
294
|
+
return e[4] !== s || e[5] !== i ? (n = /* @__PURE__ */ o.jsx(Ot, { in: s, children: i }), e[4] = s, e[5] = i, e[6] = n) : n = e[6], n;
|
|
295
|
+
}, Vo = (t) => {
|
|
296
296
|
const e = B.c(56), {
|
|
297
297
|
item: s,
|
|
298
298
|
isOpen: r,
|
|
299
299
|
selected: l,
|
|
300
|
-
disabled:
|
|
300
|
+
disabled: c,
|
|
301
301
|
collapsed: i,
|
|
302
302
|
isSidebarFullyExpanded: n,
|
|
303
303
|
isSidebarFullyCollapsed: m,
|
|
304
|
-
onClick:
|
|
304
|
+
onClick: d,
|
|
305
305
|
renderNested: p,
|
|
306
306
|
onClose: u
|
|
307
|
-
} = t,
|
|
307
|
+
} = t, f = n === void 0 ? !0 : n, [a, x] = W(null), h = `${s.to ?? s.title}`;
|
|
308
308
|
let g;
|
|
309
|
-
e[0] !== i || e[1] !== r || e[2] !== m || e[3] !==
|
|
309
|
+
e[0] !== i || e[1] !== r || e[2] !== m || e[3] !== f || e[4] !== s.children ? (g = (D) => i && m && s.children ? {
|
|
310
310
|
fontSize: 18,
|
|
311
311
|
position: "absolute",
|
|
312
312
|
top: "41.5%",
|
|
313
313
|
right: "2px",
|
|
314
314
|
transform: "translateY(-50%) rotate(-90deg)"
|
|
315
|
-
} : !i &&
|
|
315
|
+
} : !i && f && s.children ? {
|
|
316
316
|
ml: 0.5,
|
|
317
317
|
transform: `rotate(${r ? 0 : -90}deg)`,
|
|
318
|
-
transition:
|
|
319
|
-
easing:
|
|
318
|
+
transition: D.transitions.create("transform", {
|
|
319
|
+
easing: D.transitions.easing.sharp,
|
|
320
320
|
duration: 100
|
|
321
321
|
})
|
|
322
322
|
} : {
|
|
323
323
|
display: "none"
|
|
324
|
-
}, e[0] = i, e[1] = r, e[2] = m, e[3] =
|
|
325
|
-
const
|
|
326
|
-
let
|
|
327
|
-
e[6] !==
|
|
324
|
+
}, e[0] = i, e[1] = r, e[2] = m, e[3] = f, e[4] = s.children, e[5] = g) : g = e[5];
|
|
325
|
+
const y = g, S = s.children && !i, _ = i ? 60 : 48;
|
|
326
|
+
let j;
|
|
327
|
+
e[6] !== _ ? (j = {
|
|
328
328
|
px: 1.4,
|
|
329
|
-
height:
|
|
330
|
-
}, e[6] =
|
|
331
|
-
let v;
|
|
332
|
-
e[8] !== a || e[9] !== l || e[10] !== x ? (v = {
|
|
333
|
-
selected: l,
|
|
334
|
-
disabled: a,
|
|
335
|
-
sx: x
|
|
336
|
-
}, e[8] = a, e[9] = l, e[10] = x, e[11] = v) : v = e[11];
|
|
337
|
-
const I = v;
|
|
338
|
-
let C;
|
|
339
|
-
e[12] !== i || e[13] !== s ? (C = /* @__PURE__ */ o.jsx(Ko, { item: s, collapsed: i }), e[12] = i, e[13] = s, e[14] = C) : C = e[14];
|
|
329
|
+
height: _
|
|
330
|
+
}, e[6] = _, e[7] = j) : j = e[7];
|
|
340
331
|
let k;
|
|
341
|
-
e[
|
|
332
|
+
e[8] !== c || e[9] !== l || e[10] !== j ? (k = {
|
|
333
|
+
selected: l,
|
|
334
|
+
disabled: c,
|
|
335
|
+
sx: j
|
|
336
|
+
}, e[8] = c, e[9] = l, e[10] = j, e[11] = k) : k = e[11];
|
|
337
|
+
const C = k;
|
|
338
|
+
let I;
|
|
339
|
+
e[12] !== i || e[13] !== s ? (I = /* @__PURE__ */ o.jsx(Go, { item: s, collapsed: i }), e[12] = i, e[13] = s, e[14] = I) : I = e[14];
|
|
340
|
+
let L;
|
|
341
|
+
e[15] !== i || e[16] !== s.title ? (L = !i && /* @__PURE__ */ o.jsx(_o, { primary: s.title, slotProps: {
|
|
342
342
|
primary: {
|
|
343
343
|
noWrap: !0,
|
|
344
344
|
title: s.title
|
|
@@ -352,23 +352,23 @@ const zo = 1e3, Uo = (t) => {
|
|
|
352
352
|
overflow: "hidden",
|
|
353
353
|
textOverflow: "ellipsis"
|
|
354
354
|
}
|
|
355
|
-
} }), e[15] = i, e[16] = s.title, e[17] =
|
|
356
|
-
let
|
|
357
|
-
e[18] !==
|
|
358
|
-
let
|
|
359
|
-
e[21] !==
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
] }), e[21] =
|
|
364
|
-
const M =
|
|
355
|
+
} }), e[15] = i, e[16] = s.title, e[17] = L) : L = e[17];
|
|
356
|
+
let b;
|
|
357
|
+
e[18] !== y || e[19] !== s.children ? (b = s.children ? /* @__PURE__ */ o.jsx(yo, { sx: y }) : null, e[18] = y, e[19] = s.children, e[20] = b) : b = e[20];
|
|
358
|
+
let v;
|
|
359
|
+
e[21] !== I || e[22] !== L || e[23] !== b ? (v = /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
|
|
360
|
+
I,
|
|
361
|
+
L,
|
|
362
|
+
b
|
|
363
|
+
] }), e[21] = I, e[22] = L, e[23] = b, e[24] = v) : v = e[24];
|
|
364
|
+
const M = v;
|
|
365
365
|
let w;
|
|
366
366
|
e[25] !== i || e[26] !== s.children || e[27] !== h ? (w = s.children && i ? {
|
|
367
367
|
onMouseEnter: () => {
|
|
368
|
-
|
|
368
|
+
x(h);
|
|
369
369
|
},
|
|
370
370
|
onMouseLeave: () => {
|
|
371
|
-
|
|
371
|
+
x(null);
|
|
372
372
|
}
|
|
373
373
|
} : {}, e[25] = i, e[26] = s.children, e[27] = h, e[28] = w) : w = e[28];
|
|
374
374
|
let A;
|
|
@@ -378,67 +378,67 @@ const zo = 1e3, Uo = (t) => {
|
|
|
378
378
|
overflowX: "hidden"
|
|
379
379
|
}, e[29] = A) : A = e[29];
|
|
380
380
|
let $;
|
|
381
|
-
e[30] !== M || e[31] !==
|
|
381
|
+
e[30] !== M || e[31] !== C || e[32] !== s || e[33] !== d || e[34] !== u || e[35] !== S ? ($ = S ? /* @__PURE__ */ o.jsx(Yo, { ...C, onClick: () => d?.(s), children: M }) : /* @__PURE__ */ o.jsx(qo, { ...C, to: s.to, href: s.href, params: s.params, search: s.search, onClick: u, children: M }), e[30] = M, e[31] = C, e[32] = s, e[33] = d, e[34] = u, e[35] = S, e[36] = $) : $ = e[36];
|
|
382
382
|
let T;
|
|
383
|
-
e[37] !== i || e[38] !==
|
|
383
|
+
e[37] !== i || e[38] !== a || e[39] !== s.children || e[40] !== h || e[41] !== p ? (T = s.children && i ? /* @__PURE__ */ o.jsx(Ko, { open: h === a, children: p?.(s.children) }) : null, e[37] = i, e[38] = a, e[39] = s.children, e[40] = h, e[41] = p, e[42] = T) : T = e[42];
|
|
384
384
|
let R;
|
|
385
|
-
e[43] !== w || e[44] !== $ || e[45] !== T ? (R = /* @__PURE__ */ o.jsxs(
|
|
385
|
+
e[43] !== w || e[44] !== $ || e[45] !== T ? (R = /* @__PURE__ */ o.jsxs(jo, { ...w, sx: A, children: [
|
|
386
386
|
$,
|
|
387
387
|
T
|
|
388
388
|
] }), e[43] = w, e[44] = $, e[45] = T, e[46] = R) : R = e[46];
|
|
389
389
|
const E = R;
|
|
390
|
-
let
|
|
391
|
-
e[47] !== i || e[48] !== r || e[49] !== s.children || e[50] !== p ? (
|
|
392
|
-
let
|
|
393
|
-
return e[52] !== s.to || e[53] !== E || e[54] !==
|
|
390
|
+
let P;
|
|
391
|
+
e[47] !== i || e[48] !== r || e[49] !== s.children || e[50] !== p ? (P = s.children && !i ? /* @__PURE__ */ o.jsx(Nt, { in: r, timeout: "auto", unmountOnExit: !0, children: p?.(s.children) }) : null, e[47] = i, e[48] = r, e[49] = s.children, e[50] = p, e[51] = P) : P = e[51];
|
|
392
|
+
let N;
|
|
393
|
+
return e[52] !== s.to || e[53] !== E || e[54] !== P ? (N = /* @__PURE__ */ o.jsxs(be, { children: [
|
|
394
394
|
E,
|
|
395
|
-
|
|
396
|
-
] }, s.to), e[52] = s.to, e[53] = E, e[54] =
|
|
395
|
+
P
|
|
396
|
+
] }, s.to), e[52] = s.to, e[53] = E, e[54] = P, e[55] = N) : N = e[55], N;
|
|
397
397
|
};
|
|
398
398
|
function Xo(t) {
|
|
399
399
|
return t.charAt(0).toUpperCase();
|
|
400
400
|
}
|
|
401
|
-
const
|
|
401
|
+
const Qo = (t) => !("kind" in t), Jo = (t) => "kind" in t && t.kind === "divider", at = (t) => "kind" in t && t.kind === "header", It = (t) => {
|
|
402
402
|
const e = B.c(30), {
|
|
403
403
|
subNavigation: s,
|
|
404
404
|
depth: r,
|
|
405
405
|
collapsed: l,
|
|
406
|
-
isPopover:
|
|
406
|
+
isPopover: c,
|
|
407
407
|
isSidebarFullyExpanded: i,
|
|
408
408
|
isSidebarFullyCollapsed: n,
|
|
409
409
|
expandedWidth: m,
|
|
410
|
-
renderItem:
|
|
410
|
+
renderItem: d,
|
|
411
411
|
activePath: p,
|
|
412
412
|
onNavigate: u,
|
|
413
|
-
onClose:
|
|
414
|
-
} = t,
|
|
413
|
+
onClose: f
|
|
414
|
+
} = t, a = r === void 0 ? 0 : r, x = i === void 0 ? !0 : i;
|
|
415
415
|
let h;
|
|
416
416
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = [], e[0] = h) : h = e[0];
|
|
417
|
-
const [g,
|
|
418
|
-
let
|
|
419
|
-
e[1] !== l ? (
|
|
420
|
-
l &&
|
|
421
|
-
},
|
|
422
|
-
let
|
|
423
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
424
|
-
const
|
|
425
|
-
let
|
|
426
|
-
e[5] !== p || e[6] !== l || e[7] !==
|
|
427
|
-
const
|
|
428
|
-
let
|
|
429
|
-
if (e[12] !== p || e[13] !== l || e[14] !==
|
|
430
|
-
const
|
|
417
|
+
const [g, y] = W(h);
|
|
418
|
+
let S, _;
|
|
419
|
+
e[1] !== l ? (S = () => {
|
|
420
|
+
l && y([]);
|
|
421
|
+
}, _ = [l], e[1] = l, e[2] = S, e[3] = _) : (S = e[2], _ = e[3]), mt(S, _);
|
|
422
|
+
let j;
|
|
423
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = (b) => y((v) => v.includes(b) ? v.filter((M) => M !== b) : [...v, b]), e[4] = j) : j = e[4];
|
|
424
|
+
const k = j;
|
|
425
|
+
let C;
|
|
426
|
+
e[5] !== p || e[6] !== l || e[7] !== a || e[8] !== m || e[9] !== f || e[10] !== u ? (C = (b) => /* @__PURE__ */ o.jsx(It, { subNavigation: b, depth: a + 1, isPopover: l, expandedWidth: m, activePath: p, onNavigate: u, onClose: f }), e[5] = p, e[6] = l, e[7] = a, e[8] = m, e[9] = f, e[10] = u, e[11] = C) : C = e[11];
|
|
427
|
+
const I = C;
|
|
428
|
+
let L;
|
|
429
|
+
if (e[12] !== p || e[13] !== l || e[14] !== a || e[15] !== c || e[16] !== n || e[17] !== x || e[18] !== f || e[19] !== g || e[20] !== d || e[21] !== I || e[22] !== s) {
|
|
430
|
+
const b = s.filter(Zo), v = c && a === 1 ? 0.5 : 0, M = a === 0 && !c ? 4 : 0.5, w = (c ? 1 : 2) * (c ? a - 1 : a), A = c && a === 1 ? 240 : "auto", $ = l ? ye : "auto";
|
|
431
431
|
let T;
|
|
432
|
-
e[24] !== M || e[25] !== w || e[26] !== A || e[27] !== $ || e[28] !==
|
|
432
|
+
e[24] !== M || e[25] !== w || e[26] !== A || e[27] !== $ || e[28] !== v ? (T = {
|
|
433
433
|
padding: 0,
|
|
434
|
-
mt:
|
|
434
|
+
mt: v,
|
|
435
435
|
mb: M,
|
|
436
436
|
pl: w,
|
|
437
437
|
minWidth: A,
|
|
438
438
|
width: $
|
|
439
|
-
}, e[24] = M, e[25] = w, e[26] = A, e[27] = $, e[28] =
|
|
440
|
-
if (
|
|
441
|
-
return /* @__PURE__ */ o.jsx(
|
|
439
|
+
}, e[24] = M, e[25] = w, e[26] = A, e[27] = $, e[28] = v, e[29] = T) : T = e[29], L = /* @__PURE__ */ o.jsx(xo, { sx: T, children: b.map((R, E) => {
|
|
440
|
+
if (at(R))
|
|
441
|
+
return /* @__PURE__ */ o.jsx(go, { sx: {
|
|
442
442
|
fontSize: 12,
|
|
443
443
|
fontWeight: "700",
|
|
444
444
|
height: l ? 0 : 40,
|
|
@@ -449,97 +449,121 @@ const Jo = (t) => !("kind" in t), Zo = (t) => "kind" in t && t.kind === "divider
|
|
|
449
449
|
zIndex: 2,
|
|
450
450
|
bgcolor: "transparent",
|
|
451
451
|
position: "static"
|
|
452
|
-
}, children: R.title }, `subheader-${
|
|
453
|
-
if (
|
|
454
|
-
const
|
|
455
|
-
return /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(
|
|
452
|
+
}, children: R.title }, `subheader-${a}-${E}`);
|
|
453
|
+
if (Jo(R)) {
|
|
454
|
+
const D = b[E + 1];
|
|
455
|
+
return /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(ho, { sx: {
|
|
456
456
|
mx: 1,
|
|
457
457
|
mt: 1,
|
|
458
|
-
mb:
|
|
459
|
-
} }) }, `divider-${
|
|
458
|
+
mb: at(D) && !l ? 0 : 1
|
|
459
|
+
} }) }, `divider-${a}-${E}`);
|
|
460
460
|
}
|
|
461
|
-
if (!
|
|
461
|
+
if (!Qo(R))
|
|
462
462
|
return null;
|
|
463
|
-
const
|
|
464
|
-
return
|
|
463
|
+
const P = `item-${a}-${E}`, N = `${a}-${E}-${R.title}`;
|
|
464
|
+
return d ? /* @__PURE__ */ o.jsx(be, { children: d(R, {
|
|
465
465
|
collapsed: !!l
|
|
466
|
-
}) },
|
|
467
|
-
}) }), e[12] = p, e[13] = l, e[14] =
|
|
466
|
+
}) }, P) : /* @__PURE__ */ o.jsx(Vo, { item: R, isOpen: g.includes(N), selected: p === R.to, collapsed: l, isSidebarFullyExpanded: x, isSidebarFullyCollapsed: n, onClick: R.children && !l ? () => k(N) : void 0, renderNested: I, onClose: f }, P);
|
|
467
|
+
}) }), e[12] = p, e[13] = l, e[14] = a, e[15] = c, e[16] = n, e[17] = x, e[18] = f, e[19] = g, e[20] = d, e[21] = I, e[22] = s, e[23] = L;
|
|
468
468
|
} else
|
|
469
|
-
|
|
470
|
-
return
|
|
469
|
+
L = e[23];
|
|
470
|
+
return L;
|
|
471
471
|
};
|
|
472
|
-
function
|
|
472
|
+
function Zo(t) {
|
|
473
473
|
return !t.hidden;
|
|
474
474
|
}
|
|
475
|
-
const
|
|
476
|
-
const e = B.c(
|
|
475
|
+
const bt = (t) => {
|
|
476
|
+
const e = B.c(17), {
|
|
477
477
|
navigation: s,
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
e[2] !== r || e[3] !== a || e[4] !== s || e[5] !== i.location.pathname || e[6] !== l || e[7] !== f ? (p = (g) => /* @__PURE__ */ o.jsx(ft, { component: "nav", sx: {
|
|
478
|
+
collapsed: r,
|
|
479
|
+
expanded: l,
|
|
480
|
+
setExpanded: c,
|
|
481
|
+
showPermanent: i
|
|
482
|
+
} = t, n = fo(), m = po(), d = r ? "stable" : "auto", p = s[0] && at(s[0]) && !r ? 0 : 2;
|
|
483
|
+
let u;
|
|
484
|
+
e[0] !== d || e[1] !== p ? (u = {
|
|
486
485
|
height: "100%",
|
|
487
486
|
display: "flex",
|
|
488
487
|
flexDirection: "column",
|
|
489
488
|
justifyContent: "space-between",
|
|
490
489
|
overflow: "auto",
|
|
491
|
-
scrollbarGutter:
|
|
490
|
+
scrollbarGutter: d,
|
|
492
491
|
overflowX: "hidden",
|
|
493
|
-
pt:
|
|
494
|
-
},
|
|
495
|
-
const
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
}, e[9] = _, e[10] = y) : y = e[10];
|
|
509
|
-
let b;
|
|
510
|
-
e[11] !== g || e[12] !== y ? (b = {
|
|
511
|
-
width: g,
|
|
512
|
-
"& .MuiDrawer-paper": y
|
|
513
|
-
}, e[11] = g, e[12] = y, e[13] = b) : b = e[13];
|
|
514
|
-
const x = !r;
|
|
515
|
-
let v;
|
|
516
|
-
e[14] !== u || e[15] !== x ? (v = u(x), e[14] = u, e[15] = x, e[16] = v) : v = e[16];
|
|
517
|
-
let I;
|
|
518
|
-
return e[17] !== b || e[18] !== v ? (I = /* @__PURE__ */ o.jsx(xt, { variant: "permanent", sx: b, children: v }), e[17] = b, e[18] = v, e[19] = I) : I = e[19], I;
|
|
519
|
-
}
|
|
520
|
-
let d;
|
|
521
|
-
e[20] !== l ? (d = () => l(!1), e[20] = l, e[21] = d) : d = e[21];
|
|
492
|
+
pt: p
|
|
493
|
+
}, e[0] = d, e[1] = p, e[2] = u) : u = e[2];
|
|
494
|
+
const f = !l;
|
|
495
|
+
let a;
|
|
496
|
+
e[3] !== c || e[4] !== i ? (a = i ? void 0 : () => c(!1), e[3] = c, e[4] = i, e[5] = a) : a = e[5];
|
|
497
|
+
let x;
|
|
498
|
+
e[6] !== r || e[7] !== l || e[8] !== n || e[9] !== s || e[10] !== m.location.pathname || e[11] !== f || e[12] !== a ? (x = /* @__PURE__ */ o.jsx(It, { subNavigation: s, collapsed: r, isSidebarFullyExpanded: l, isSidebarFullyCollapsed: f, expandedWidth: ct, activePath: m.location.pathname, onNavigate: n, onClose: a }), e[6] = r, e[7] = l, e[8] = n, e[9] = s, e[10] = m.location.pathname, e[11] = f, e[12] = a, e[13] = x) : x = e[13];
|
|
499
|
+
let h;
|
|
500
|
+
return e[14] !== u || e[15] !== x ? (h = /* @__PURE__ */ o.jsx(ft, { component: "nav", sx: u, children: x }), e[14] = u, e[15] = x, e[16] = h) : h = e[16], h;
|
|
501
|
+
}, ye = 84, ct = 320, jt = 64, es = (t) => {
|
|
502
|
+
const e = B.c(28), {
|
|
503
|
+
navigation: s,
|
|
504
|
+
expanded: r,
|
|
505
|
+
setExpanded: l
|
|
506
|
+
} = t;
|
|
522
507
|
let c;
|
|
523
|
-
e[
|
|
508
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
|
|
509
|
+
xs: "none",
|
|
510
|
+
sm: "block"
|
|
511
|
+
}, e[0] = c) : c = e[0];
|
|
512
|
+
const i = r ? ct : ye, n = r ? ct : ye;
|
|
513
|
+
let m;
|
|
514
|
+
e[1] !== n ? (m = {
|
|
515
|
+
position: "absolute",
|
|
516
|
+
top: `${jt}px`,
|
|
517
|
+
height: `calc(100% - ${jt}px)`,
|
|
518
|
+
width: n,
|
|
519
|
+
background: "transparent",
|
|
520
|
+
borderTop: "1px solid",
|
|
521
|
+
borderColor: "var(--mui-palette-divider)",
|
|
522
|
+
boxShadow: "none"
|
|
523
|
+
}, e[1] = n, e[2] = m) : m = e[2];
|
|
524
|
+
let d;
|
|
525
|
+
e[3] !== i || e[4] !== m ? (d = {
|
|
526
|
+
display: c,
|
|
527
|
+
width: i,
|
|
528
|
+
"& .MuiDrawer-paper": m
|
|
529
|
+
}, e[3] = i, e[4] = m, e[5] = d) : d = e[5];
|
|
530
|
+
const p = !r;
|
|
531
|
+
let u;
|
|
532
|
+
e[6] !== r || e[7] !== s || e[8] !== l || e[9] !== p ? (u = /* @__PURE__ */ o.jsx(bt, { navigation: s, collapsed: p, expanded: r, setExpanded: l, showPermanent: !0 }), e[6] = r, e[7] = s, e[8] = l, e[9] = p, e[10] = u) : u = e[10];
|
|
533
|
+
let f;
|
|
534
|
+
e[11] !== d || e[12] !== u ? (f = /* @__PURE__ */ o.jsx(xt, { variant: "permanent", sx: d, children: u }), e[11] = d, e[12] = u, e[13] = f) : f = e[13];
|
|
535
|
+
let a;
|
|
536
|
+
e[14] !== l ? (a = () => l(!1), e[14] = l, e[15] = a) : a = e[15];
|
|
537
|
+
let x;
|
|
538
|
+
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = {
|
|
539
|
+
display: {
|
|
540
|
+
xs: "block",
|
|
541
|
+
sm: "none"
|
|
542
|
+
},
|
|
524
543
|
"& .MuiDrawer-paper": {
|
|
525
544
|
width: "min(280px, calc(100vw - 56px))"
|
|
526
545
|
}
|
|
527
|
-
}, e[
|
|
528
|
-
let j;
|
|
529
|
-
e[23] !== u ? (j = u(!1), e[23] = u, e[24] = j) : j = e[24];
|
|
546
|
+
}, e[16] = x) : x = e[16];
|
|
530
547
|
let h;
|
|
531
|
-
|
|
532
|
-
|
|
548
|
+
e[17] !== r || e[18] !== s || e[19] !== l ? (h = /* @__PURE__ */ o.jsx(bt, { navigation: s, collapsed: !1, expanded: r, setExpanded: l, showPermanent: !1 }), e[17] = r, e[18] = s, e[19] = l, e[20] = h) : h = e[20];
|
|
549
|
+
let g;
|
|
550
|
+
e[21] !== r || e[22] !== h || e[23] !== a ? (g = /* @__PURE__ */ o.jsx(xt, { open: r, onClose: a, sx: x, children: h }), e[21] = r, e[22] = h, e[23] = a, e[24] = g) : g = e[24];
|
|
551
|
+
let y;
|
|
552
|
+
return e[25] !== g || e[26] !== f ? (y = /* @__PURE__ */ o.jsxs(be, { children: [
|
|
553
|
+
f,
|
|
554
|
+
g
|
|
555
|
+
] }), e[25] = g, e[26] = f, e[27] = y) : y = e[27], y;
|
|
556
|
+
}, ts = "graph", Lt = Do.create({
|
|
533
557
|
baseURL: "https://graph.microsoft.com/v1.0"
|
|
534
558
|
});
|
|
535
|
-
|
|
536
|
-
const e = await
|
|
559
|
+
Lt.interceptors.request.use(async (t) => {
|
|
560
|
+
const e = await lo("graph");
|
|
537
561
|
return t.headers.set("Authorization", `Bearer ${e}`), t;
|
|
538
562
|
});
|
|
539
|
-
const
|
|
563
|
+
const os = {
|
|
540
564
|
sessionUserPhoto: () => No({
|
|
541
|
-
queryKey: [
|
|
542
|
-
queryFn: async () => await
|
|
565
|
+
queryKey: [ts, "me", "photo"],
|
|
566
|
+
queryFn: async () => await Lt.request({
|
|
543
567
|
method: "GET",
|
|
544
568
|
url: "/me/photo/$value",
|
|
545
569
|
responseType: "blob"
|
|
@@ -548,29 +572,29 @@ const ss = {
|
|
|
548
572
|
gcTime: 1 / 0,
|
|
549
573
|
select: (t) => URL.createObjectURL(t)
|
|
550
574
|
})
|
|
551
|
-
},
|
|
552
|
-
const t = B.c(148), [e, s] = W(), [r, l] = W("settings"),
|
|
575
|
+
}, vt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), ss = () => {
|
|
576
|
+
const t = B.c(148), [e, s] = W(), [r, l] = W("settings"), c = !!e, {
|
|
553
577
|
t: i,
|
|
554
578
|
i18n: n
|
|
555
|
-
} =
|
|
579
|
+
} = Qt(), {
|
|
556
580
|
mode: m,
|
|
557
|
-
setMode:
|
|
558
|
-
} =
|
|
581
|
+
setMode: d
|
|
582
|
+
} = Dt(), {
|
|
559
583
|
instance: p
|
|
560
|
-
} =
|
|
561
|
-
let
|
|
562
|
-
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
563
|
-
let
|
|
564
|
-
t[1] !== u ? (
|
|
565
|
-
...
|
|
584
|
+
} = St(), u = _t(), f = so();
|
|
585
|
+
let a;
|
|
586
|
+
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = os.sessionUserPhoto(), t[0] = a) : a = t[0];
|
|
587
|
+
let x;
|
|
588
|
+
t[1] !== u ? (x = {
|
|
589
|
+
...a,
|
|
566
590
|
enabled: u
|
|
567
|
-
}, t[1] = u, t[2] =
|
|
591
|
+
}, t[1] = u, t[2] = x) : x = t[2];
|
|
568
592
|
const {
|
|
569
593
|
data: h
|
|
570
|
-
} =
|
|
571
|
-
let g,
|
|
572
|
-
if (t[3] !== n || t[4] !== m || t[5] !==
|
|
573
|
-
const
|
|
594
|
+
} = Oo(x);
|
|
595
|
+
let g, y, S, _, j, k, C;
|
|
596
|
+
if (t[3] !== n || t[4] !== m || t[5] !== d || t[6] !== i) {
|
|
597
|
+
const wt = (Array.isArray(n.options.supportedLngs) ? n.options.supportedLngs : []).filter(is), pt = new Intl.DisplayNames([n.language], {
|
|
574
598
|
type: "language"
|
|
575
599
|
});
|
|
576
600
|
let Z;
|
|
@@ -578,7 +602,7 @@ const ss = {
|
|
|
578
602
|
let ee;
|
|
579
603
|
t[16] !== Z ? (ee = {
|
|
580
604
|
mode: "light",
|
|
581
|
-
icon:
|
|
605
|
+
icon: Ro,
|
|
582
606
|
label: Z
|
|
583
607
|
}, t[16] = Z, t[17] = ee) : ee = t[17];
|
|
584
608
|
let te;
|
|
@@ -586,7 +610,7 @@ const ss = {
|
|
|
586
610
|
let oe;
|
|
587
611
|
t[20] !== te ? (oe = {
|
|
588
612
|
mode: "dark",
|
|
589
|
-
icon:
|
|
613
|
+
icon: To,
|
|
590
614
|
label: te
|
|
591
615
|
}, t[20] = te, t[21] = oe) : oe = t[21];
|
|
592
616
|
let se;
|
|
@@ -594,133 +618,133 @@ const ss = {
|
|
|
594
618
|
let ie;
|
|
595
619
|
t[24] !== se ? (ie = {
|
|
596
620
|
mode: "system",
|
|
597
|
-
icon:
|
|
621
|
+
icon: Eo,
|
|
598
622
|
label: se
|
|
599
623
|
}, t[24] = se, t[25] = ie) : ie = t[25];
|
|
600
|
-
let Se;
|
|
601
|
-
t[26] !== ee || t[27] !== oe || t[28] !== ie ? (Se = [ee, oe, ie], t[26] = ee, t[27] = oe, t[28] = ie, t[29] = Se) : Se = t[29];
|
|
602
|
-
const ne = Se;
|
|
603
624
|
let _e;
|
|
604
|
-
t[
|
|
625
|
+
t[26] !== ee || t[27] !== oe || t[28] !== ie ? (_e = [ee, oe, ie], t[26] = ee, t[27] = oe, t[28] = ie, t[29] = _e) : _e = t[29];
|
|
626
|
+
const le = _e;
|
|
605
627
|
let Ie;
|
|
606
|
-
t[
|
|
607
|
-
s(void 0), setTimeout(() => l("settings"), 300);
|
|
608
|
-
}, t[31] = Ie) : Ie = t[31], _ = Ie;
|
|
628
|
+
t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ie = (O) => s(O.currentTarget), t[30] = Ie) : Ie = t[30], S = Ie;
|
|
609
629
|
let Le;
|
|
610
|
-
t[
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
630
|
+
t[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Le = () => {
|
|
631
|
+
s(void 0), setTimeout(() => l("settings"), 300);
|
|
632
|
+
}, t[31] = Le) : Le = t[31], y = Le;
|
|
633
|
+
let Ce;
|
|
634
|
+
t[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ce = (O) => () => l(O), t[32] = Ce) : Ce = t[32];
|
|
635
|
+
const ke = Ce;
|
|
636
|
+
let we;
|
|
637
|
+
t[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (we = {
|
|
614
638
|
backgroundColor: "transparent"
|
|
615
|
-
}, t[33] =
|
|
616
|
-
let
|
|
617
|
-
t[34] !== i ? (
|
|
639
|
+
}, t[33] = we) : we = t[33];
|
|
640
|
+
let ne;
|
|
641
|
+
t[34] !== i ? (ne = i("Layout.Settings"), t[34] = i, t[35] = ne) : ne = t[35];
|
|
618
642
|
let re;
|
|
619
|
-
t[36] !==
|
|
620
|
-
let
|
|
621
|
-
t[38] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
643
|
+
t[36] !== ne ? (re = /* @__PURE__ */ o.jsx(ot, { sx: we, children: ne }), t[36] = ne, t[37] = re) : re = t[37];
|
|
644
|
+
let Te, Me;
|
|
645
|
+
t[38] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Te = ke("theme"), Me = {
|
|
622
646
|
py: 0.3
|
|
623
|
-
}, t[38] =
|
|
624
|
-
let
|
|
625
|
-
t[40] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
647
|
+
}, t[38] = Te, t[39] = Me) : (Te = t[38], Me = t[39]);
|
|
648
|
+
let Re;
|
|
649
|
+
t[40] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Re = /* @__PURE__ */ o.jsx(ge, { children: /* @__PURE__ */ o.jsx(wo, {}) }), t[40] = Re) : Re = t[40];
|
|
626
650
|
let ae;
|
|
627
651
|
t[41] !== i ? (ae = i("Layout.Appearance"), t[41] = i, t[42] = ae) : ae = t[42];
|
|
628
652
|
let ce;
|
|
629
|
-
t[43] !==
|
|
653
|
+
t[43] !== le || t[44] !== m || t[45] !== i ? (ce = le.find((O) => O.mode === m)?.label ?? i("Layout.System"), t[43] = le, t[44] = m, t[45] = i, t[46] = ce) : ce = t[46];
|
|
630
654
|
let me;
|
|
631
655
|
t[47] !== ae || t[48] !== ce ? (me = /* @__PURE__ */ o.jsx(z, { primary: ae, secondary: ce }), t[47] = ae, t[48] = ce, t[49] = me) : me = t[49];
|
|
632
|
-
let
|
|
633
|
-
t[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
656
|
+
let Ae;
|
|
657
|
+
t[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ae = /* @__PURE__ */ o.jsx(yt, {}), t[50] = Ae) : Ae = t[50];
|
|
634
658
|
let de;
|
|
635
|
-
t[51] !== me ? (de = /* @__PURE__ */ o.jsxs(xe, { onClick:
|
|
636
|
-
|
|
659
|
+
t[51] !== me ? (de = /* @__PURE__ */ o.jsxs(xe, { onClick: Te, sx: Me, children: [
|
|
660
|
+
Re,
|
|
637
661
|
me,
|
|
638
|
-
|
|
662
|
+
Ae
|
|
639
663
|
] }), t[51] = me, t[52] = de) : de = t[52];
|
|
640
|
-
let
|
|
641
|
-
t[53] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
664
|
+
let $e, Ee;
|
|
665
|
+
t[53] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($e = ke("language"), Ee = {
|
|
642
666
|
py: 0.3
|
|
643
|
-
}, t[53] =
|
|
644
|
-
let
|
|
645
|
-
t[55] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
667
|
+
}, t[53] = $e, t[54] = Ee) : ($e = t[53], Ee = t[54]);
|
|
668
|
+
let Pe;
|
|
669
|
+
t[55] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Pe = /* @__PURE__ */ o.jsx(ge, { children: /* @__PURE__ */ o.jsx(Po, {}) }), t[55] = Pe) : Pe = t[55];
|
|
670
|
+
let Ne;
|
|
671
|
+
t[56] !== i ? (Ne = i("Layout.Language"), t[56] = i, t[57] = Ne) : Ne = t[57];
|
|
646
672
|
let Oe;
|
|
647
|
-
t[
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
/* @__PURE__ */ o.jsx(z, { primary: Oe, secondary: jt(pt.of(n.language)) }),
|
|
653
|
-
De
|
|
673
|
+
t[58] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Oe = /* @__PURE__ */ o.jsx(yt, {}), t[58] = Oe) : Oe = t[58];
|
|
674
|
+
const et = /* @__PURE__ */ o.jsxs(xe, { onClick: $e, sx: Ee, children: [
|
|
675
|
+
Pe,
|
|
676
|
+
/* @__PURE__ */ o.jsx(z, { primary: Ne, secondary: vt(pt.of(n.language)) }),
|
|
677
|
+
Oe
|
|
654
678
|
] });
|
|
655
|
-
let
|
|
656
|
-
t[59] !== re || t[60] !== de || t[61] !== et ? (
|
|
679
|
+
let De;
|
|
680
|
+
t[59] !== re || t[60] !== de || t[61] !== et ? (De = /* @__PURE__ */ o.jsxs(qe, { component: "nav", subheader: re, children: [
|
|
657
681
|
de,
|
|
658
682
|
et
|
|
659
|
-
] }), t[59] = re, t[60] = de, t[61] = et, t[62] =
|
|
660
|
-
let
|
|
661
|
-
t[63] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
683
|
+
] }), t[59] = re, t[60] = de, t[61] = et, t[62] = De) : De = t[62], _ = De;
|
|
684
|
+
let Be, We;
|
|
685
|
+
t[63] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Be = ke("settings"), We = {
|
|
662
686
|
backgroundColor: "transparent",
|
|
663
687
|
display: "flex",
|
|
664
688
|
alignItems: "center",
|
|
665
689
|
px: 1,
|
|
666
690
|
cursor: "pointer"
|
|
667
|
-
}, t[63] =
|
|
668
|
-
let
|
|
669
|
-
t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
691
|
+
}, t[63] = Be, t[64] = We) : (Be = t[63], We = t[64]);
|
|
692
|
+
let ze;
|
|
693
|
+
t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ze = /* @__PURE__ */ o.jsx(Ge, { size: "small", sx: {
|
|
670
694
|
mr: 0.5
|
|
671
|
-
}, children: /* @__PURE__ */ o.jsx(gt, { fontSize: "small" }) }), t[65] =
|
|
695
|
+
}, children: /* @__PURE__ */ o.jsx(gt, { fontSize: "small" }) }), t[65] = ze) : ze = t[65];
|
|
672
696
|
let fe;
|
|
673
697
|
t[66] !== i ? (fe = i("Layout.Appearance"), t[66] = i, t[67] = fe) : fe = t[67];
|
|
674
698
|
let pe;
|
|
675
|
-
t[68] !== fe ? (pe = /* @__PURE__ */ o.jsxs(ot, { onClick:
|
|
676
|
-
|
|
699
|
+
t[68] !== fe ? (pe = /* @__PURE__ */ o.jsxs(ot, { onClick: Be, sx: We, children: [
|
|
700
|
+
ze,
|
|
677
701
|
" ",
|
|
678
702
|
fe
|
|
679
703
|
] }), t[68] = fe, t[69] = pe) : pe = t[69];
|
|
680
704
|
let ue;
|
|
681
|
-
t[70] !==
|
|
705
|
+
t[70] !== le || t[71] !== m || t[72] !== d ? (ue = le.map((O) => {
|
|
682
706
|
const {
|
|
683
707
|
mode: tt,
|
|
684
|
-
icon:
|
|
685
|
-
label:
|
|
686
|
-
} =
|
|
708
|
+
icon: Tt,
|
|
709
|
+
label: Mt
|
|
710
|
+
} = O;
|
|
687
711
|
return /* @__PURE__ */ o.jsxs(xe, { onClick: () => {
|
|
688
|
-
|
|
712
|
+
d(tt), y();
|
|
689
713
|
}, selected: m === tt, children: [
|
|
690
|
-
/* @__PURE__ */ o.jsx(ge, { children: /* @__PURE__ */ o.jsx(
|
|
691
|
-
/* @__PURE__ */ o.jsx(z, { primary:
|
|
714
|
+
/* @__PURE__ */ o.jsx(ge, { children: /* @__PURE__ */ o.jsx(Tt, {}) }),
|
|
715
|
+
/* @__PURE__ */ o.jsx(z, { primary: Mt })
|
|
692
716
|
] }, tt);
|
|
693
|
-
}), t[70] =
|
|
694
|
-
let
|
|
695
|
-
t[74] !== pe || t[75] !== ue ? (
|
|
696
|
-
let
|
|
697
|
-
t[77] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
717
|
+
}), t[70] = le, t[71] = m, t[72] = d, t[73] = ue) : ue = t[73];
|
|
718
|
+
let Ue;
|
|
719
|
+
t[74] !== pe || t[75] !== ue ? (Ue = /* @__PURE__ */ o.jsx(qe, { subheader: pe, children: ue }), t[74] = pe, t[75] = ue, t[76] = Ue) : Ue = t[76], C = Ue, g = qe;
|
|
720
|
+
let He, Fe;
|
|
721
|
+
t[77] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (He = ke("settings"), Fe = {
|
|
698
722
|
backgroundColor: "transparent",
|
|
699
723
|
display: "flex",
|
|
700
724
|
alignItems: "center",
|
|
701
725
|
px: 1,
|
|
702
726
|
cursor: "pointer"
|
|
703
|
-
}, t[77] =
|
|
704
|
-
let
|
|
705
|
-
t[79] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
727
|
+
}, t[77] = He, t[78] = Fe) : (He = t[77], Fe = t[78]);
|
|
728
|
+
let Ye;
|
|
729
|
+
t[79] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ye = /* @__PURE__ */ o.jsx(Ge, { size: "small", sx: {
|
|
706
730
|
mr: 0.5
|
|
707
|
-
}, children: /* @__PURE__ */ o.jsx(gt, { fontSize: "small" }) }), t[79] =
|
|
731
|
+
}, children: /* @__PURE__ */ o.jsx(gt, { fontSize: "small" }) }), t[79] = Ye) : Ye = t[79];
|
|
708
732
|
let he;
|
|
709
|
-
t[80] !== i ? (he = i("Layout.Language"), t[80] = i, t[81] = he) : he = t[81], t[82] !== he ? (
|
|
710
|
-
|
|
733
|
+
t[80] !== i ? (he = i("Layout.Language"), t[80] = i, t[81] = he) : he = t[81], t[82] !== he ? (j = /* @__PURE__ */ o.jsxs(ot, { onClick: He, sx: Fe, children: [
|
|
734
|
+
Ye,
|
|
711
735
|
" ",
|
|
712
736
|
he
|
|
713
|
-
] }), t[82] = he, t[83] =
|
|
714
|
-
/* @__PURE__ */ o.jsx(ge, { children: n.resolvedLanguage ===
|
|
715
|
-
/* @__PURE__ */ o.jsx(z, { primary:
|
|
716
|
-
] },
|
|
737
|
+
] }), t[82] = he, t[83] = j) : j = t[83], k = wt.map((O) => /* @__PURE__ */ o.jsxs(xe, { onClick: () => n.changeLanguage(O).finally(() => y()), selected: n.resolvedLanguage === O, children: [
|
|
738
|
+
/* @__PURE__ */ o.jsx(ge, { children: n.resolvedLanguage === O && /* @__PURE__ */ o.jsx(Mo, {}) }),
|
|
739
|
+
/* @__PURE__ */ o.jsx(z, { primary: vt(pt.of(O)) })
|
|
740
|
+
] }, O)), t[3] = n, t[4] = m, t[5] = d, t[6] = i, t[7] = g, t[8] = y, t[9] = S, t[10] = _, t[11] = j, t[12] = k, t[13] = C;
|
|
717
741
|
} else
|
|
718
|
-
g = t[7],
|
|
719
|
-
let
|
|
720
|
-
t[84] !== g || t[85] !==
|
|
721
|
-
const
|
|
722
|
-
let
|
|
723
|
-
t[88] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
742
|
+
g = t[7], y = t[8], S = t[9], _ = t[10], j = t[11], k = t[12], C = t[13];
|
|
743
|
+
let I;
|
|
744
|
+
t[84] !== g || t[85] !== j || t[86] !== k ? (I = /* @__PURE__ */ o.jsx(g, { subheader: j, children: k }), t[84] = g, t[85] = j, t[86] = k, t[87] = I) : I = t[87];
|
|
745
|
+
const L = I;
|
|
746
|
+
let b;
|
|
747
|
+
t[88] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = {
|
|
724
748
|
width: {
|
|
725
749
|
xs: 32,
|
|
726
750
|
sm: 40
|
|
@@ -729,11 +753,11 @@ const ss = {
|
|
|
729
753
|
xs: 32,
|
|
730
754
|
sm: 40
|
|
731
755
|
}
|
|
732
|
-
}, t[88] =
|
|
733
|
-
let
|
|
734
|
-
t[89] !== h ? (
|
|
756
|
+
}, t[88] = b) : b = t[88];
|
|
757
|
+
let v;
|
|
758
|
+
t[89] !== h ? (v = /* @__PURE__ */ o.jsx(lt, { children: /* @__PURE__ */ o.jsx(Bt, { src: h, sx: b }) }), t[89] = h, t[90] = v) : v = t[90];
|
|
735
759
|
let M;
|
|
736
|
-
t[91] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ o.jsx(ut, { children: /* @__PURE__ */ o.jsx(
|
|
760
|
+
t[91] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ o.jsx(ut, { children: /* @__PURE__ */ o.jsx(ko, { sx: {
|
|
737
761
|
width: {
|
|
738
762
|
xs: 32,
|
|
739
763
|
sm: 40
|
|
@@ -744,89 +768,89 @@ const ss = {
|
|
|
744
768
|
}
|
|
745
769
|
} }) }), t[91] = M) : M = t[91];
|
|
746
770
|
let w;
|
|
747
|
-
t[92] !==
|
|
748
|
-
|
|
771
|
+
t[92] !== S || t[93] !== v ? (w = /* @__PURE__ */ o.jsxs(Ge, { size: "small", edge: "end", onClick: S, children: [
|
|
772
|
+
v,
|
|
749
773
|
M
|
|
750
|
-
] }), t[92] =
|
|
774
|
+
] }), t[92] = S, t[93] = v, t[94] = w) : w = t[94];
|
|
751
775
|
let A;
|
|
752
776
|
t[95] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = {
|
|
753
777
|
width: 240
|
|
754
778
|
}, t[95] = A) : A = t[95];
|
|
755
|
-
const $ =
|
|
779
|
+
const $ = f?.name;
|
|
756
780
|
let T;
|
|
757
|
-
t[96] !==
|
|
781
|
+
t[96] !== f ? (T = f?.employeeId && /* @__PURE__ */ o.jsx("span", { children: f.employeeId }), t[96] = f, t[97] = T) : T = t[97];
|
|
758
782
|
let R;
|
|
759
|
-
t[98] !==
|
|
783
|
+
t[98] !== f?.employeeId ? (R = f?.employeeId && /* @__PURE__ */ o.jsx("br", {}), t[98] = f?.employeeId, t[99] = R) : R = t[99];
|
|
760
784
|
let E;
|
|
761
|
-
t[100] !==
|
|
762
|
-
let
|
|
763
|
-
t[102] !== T || t[103] !== R || t[104] !== E ? (
|
|
785
|
+
t[100] !== f ? (E = f?.department && /* @__PURE__ */ o.jsx("span", { children: f.department }), t[100] = f, t[101] = E) : E = t[101];
|
|
786
|
+
let P;
|
|
787
|
+
t[102] !== T || t[103] !== R || t[104] !== E ? (P = /* @__PURE__ */ o.jsxs("span", { children: [
|
|
764
788
|
T,
|
|
765
789
|
R,
|
|
766
790
|
E
|
|
767
|
-
] }), t[102] = T, t[103] = R, t[104] = E, t[105] =
|
|
791
|
+
] }), t[102] = T, t[103] = R, t[104] = E, t[105] = P) : P = t[105];
|
|
792
|
+
let N;
|
|
793
|
+
t[106] !== $ || t[107] !== P ? (N = /* @__PURE__ */ o.jsx(Wt, { children: /* @__PURE__ */ o.jsx(z, { primary: $, secondary: P }) }), t[106] = $, t[107] = P, t[108] = N) : N = t[108];
|
|
768
794
|
let D;
|
|
769
|
-
t[
|
|
770
|
-
let P;
|
|
771
|
-
t[109] !== p ? (P = () => p.logoutRedirect({
|
|
795
|
+
t[109] !== p ? (D = () => p.logoutRedirect({
|
|
772
796
|
postLogoutRedirectUri: "/"
|
|
773
|
-
}), t[109] = p, t[110] =
|
|
774
|
-
let
|
|
775
|
-
t[111] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
797
|
+
}), t[109] = p, t[110] = D) : D = t[110];
|
|
798
|
+
let je;
|
|
799
|
+
t[111] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (je = /* @__PURE__ */ o.jsx(ge, { children: /* @__PURE__ */ o.jsx($o, { color: "error" }) }), t[111] = je) : je = t[111];
|
|
776
800
|
let U;
|
|
777
801
|
t[112] !== i ? (U = i("Layout.Logout"), t[112] = i, t[113] = U) : U = t[113];
|
|
778
802
|
let H;
|
|
779
803
|
t[114] !== U ? (H = /* @__PURE__ */ o.jsx(z, { primary: U }), t[114] = U, t[115] = H) : H = t[115];
|
|
780
804
|
let F;
|
|
781
|
-
t[116] !==
|
|
782
|
-
|
|
805
|
+
t[116] !== D || t[117] !== H ? (F = /* @__PURE__ */ o.jsxs(xe, { onClick: D, children: [
|
|
806
|
+
je,
|
|
783
807
|
H
|
|
784
|
-
] }), t[116] =
|
|
808
|
+
] }), t[116] = D, t[117] = H, t[118] = F) : F = t[118];
|
|
785
809
|
let Y;
|
|
786
|
-
t[119] !==
|
|
787
|
-
|
|
810
|
+
t[119] !== N || t[120] !== F ? (Y = /* @__PURE__ */ o.jsxs(lt, { children: [
|
|
811
|
+
N,
|
|
788
812
|
F
|
|
789
|
-
] }), t[119] =
|
|
813
|
+
] }), t[119] = N, t[120] = F, t[121] = Y) : Y = t[121];
|
|
790
814
|
let q;
|
|
791
815
|
t[122] !== p ? (q = () => p.loginRedirect(), t[122] = p, t[123] = q) : q = t[123];
|
|
792
|
-
let
|
|
793
|
-
t[124] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
816
|
+
let ve;
|
|
817
|
+
t[124] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ve = /* @__PURE__ */ o.jsx(ge, { children: /* @__PURE__ */ o.jsx(Ao, { color: "success" }) }), t[124] = ve) : ve = t[124];
|
|
794
818
|
let G;
|
|
795
819
|
t[125] !== i ? (G = i("Layout.LogIn"), t[125] = i, t[126] = G) : G = t[126];
|
|
796
820
|
let K;
|
|
797
821
|
t[127] !== G ? (K = /* @__PURE__ */ o.jsx(z, { primary: G }), t[127] = G, t[128] = K) : K = t[128];
|
|
798
822
|
let V;
|
|
799
823
|
t[129] !== q || t[130] !== K ? (V = /* @__PURE__ */ o.jsx(ut, { children: /* @__PURE__ */ o.jsxs(xe, { onClick: q, children: [
|
|
800
|
-
|
|
824
|
+
ve,
|
|
801
825
|
K
|
|
802
826
|
] }) }), t[129] = q, t[130] = K, t[131] = V) : V = t[131];
|
|
803
|
-
let
|
|
804
|
-
t[132] !== Y || t[133] !== V ? (
|
|
827
|
+
let X;
|
|
828
|
+
t[132] !== Y || t[133] !== V ? (X = /* @__PURE__ */ o.jsxs(qe, { disablePadding: !0, children: [
|
|
805
829
|
Y,
|
|
806
830
|
V
|
|
807
|
-
] }), t[132] = Y, t[133] = V, t[134] =
|
|
808
|
-
const
|
|
809
|
-
let
|
|
810
|
-
t[135] !==
|
|
811
|
-
|
|
812
|
-
|
|
831
|
+
] }), t[132] = Y, t[133] = V, t[134] = X) : X = t[134];
|
|
832
|
+
const Qe = r === "settings" && _, Je = r === "theme" && C, Ze = r === "language" && L;
|
|
833
|
+
let Q;
|
|
834
|
+
t[135] !== X || t[136] !== Qe || t[137] !== Je || t[138] !== Ze ? (Q = /* @__PURE__ */ o.jsxs(Ke, { sx: A, children: [
|
|
835
|
+
X,
|
|
836
|
+
Qe,
|
|
813
837
|
Je,
|
|
814
838
|
Ze
|
|
815
|
-
] }), t[135] =
|
|
839
|
+
] }), t[135] = X, t[136] = Qe, t[137] = Je, t[138] = Ze, t[139] = Q) : Q = t[139];
|
|
816
840
|
let J;
|
|
817
|
-
t[140] !== e || t[141] !==
|
|
818
|
-
let
|
|
819
|
-
return t[145] !== J || t[146] !== w ? (
|
|
841
|
+
t[140] !== e || t[141] !== y || t[142] !== c || t[143] !== Q ? (J = /* @__PURE__ */ o.jsx(zt, { anchorEl: e, open: c, onClose: y, children: Q }), t[140] = e, t[141] = y, t[142] = c, t[143] = Q, t[144] = J) : J = t[144];
|
|
842
|
+
let Se;
|
|
843
|
+
return t[145] !== J || t[146] !== w ? (Se = /* @__PURE__ */ o.jsxs(be, { children: [
|
|
820
844
|
w,
|
|
821
845
|
J
|
|
822
|
-
] }), t[145] = J, t[146] = w, t[147] =
|
|
846
|
+
] }), t[145] = J, t[146] = w, t[147] = Se) : Se = t[147], Se;
|
|
823
847
|
};
|
|
824
|
-
function
|
|
848
|
+
function is(t) {
|
|
825
849
|
return t !== "cimode";
|
|
826
850
|
}
|
|
827
|
-
const
|
|
828
|
-
(
|
|
829
|
-
},
|
|
851
|
+
const Ct = "navigation-open", ls = () => Xe.isWindows || Xe.isMacOS ? localStorage.getItem(Ct) === "true" : !1, kt = (t) => {
|
|
852
|
+
(Xe.isWindows || Xe.isMacOS) && localStorage.setItem(Ct, String(t));
|
|
853
|
+
}, ns = dt("div")(({
|
|
830
854
|
theme: t
|
|
831
855
|
}) => ({
|
|
832
856
|
display: "flex",
|
|
@@ -834,65 +858,65 @@ const Lt = "navigation-open", ls = () => Ve.isWindows || Ve.isMacOS ? localStora
|
|
|
834
858
|
justifyContent: "flex-end",
|
|
835
859
|
padding: t.spacing(0, 1),
|
|
836
860
|
...t.mixins.toolbar
|
|
837
|
-
})),
|
|
861
|
+
})), rs = (t) => {
|
|
838
862
|
const e = B.c(35), {
|
|
839
863
|
navigation: s,
|
|
840
864
|
options: r,
|
|
841
865
|
children: l
|
|
842
|
-
} = t, [
|
|
866
|
+
} = t, [c, i] = W(ls), {
|
|
843
867
|
instance: n,
|
|
844
868
|
inProgress: m
|
|
845
|
-
} =
|
|
846
|
-
let
|
|
847
|
-
e[0] !== u || e[1] !== r?.publicRoutes ? (
|
|
848
|
-
const
|
|
849
|
-
let
|
|
850
|
-
e[3] !== m || e[4] !== n || e[5] !==
|
|
851
|
-
!
|
|
852
|
-
}, h = [
|
|
853
|
-
let g,
|
|
854
|
-
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ o.jsx(Ut, {}),
|
|
855
|
-
let
|
|
856
|
-
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
869
|
+
} = St(), d = _t(), p = uo(), u = p[p.length - 1]?.fullPath;
|
|
870
|
+
let f;
|
|
871
|
+
e[0] !== u || e[1] !== r?.publicRoutes ? (f = r?.publicRoutes?.some((T) => T === u) ?? !1, e[0] = u, e[1] = r?.publicRoutes, e[2] = f) : f = e[2];
|
|
872
|
+
const a = f;
|
|
873
|
+
let x, h;
|
|
874
|
+
e[3] !== m || e[4] !== n || e[5] !== d || e[6] !== a ? (x = () => {
|
|
875
|
+
!d && m === ro.None && !a && n.loginRedirect();
|
|
876
|
+
}, h = [d, m, a, n], e[3] = m, e[4] = n, e[5] = d, e[6] = a, e[7] = x, e[8] = h) : (x = e[7], h = e[8]), mt(x, h);
|
|
877
|
+
let g, y;
|
|
878
|
+
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ o.jsx(Ut, {}), y = /* @__PURE__ */ o.jsx(Ht, {}), e[9] = g, e[10] = y) : (g = e[9], y = e[10]);
|
|
879
|
+
let S;
|
|
880
|
+
e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = {
|
|
857
881
|
display: "flex",
|
|
858
882
|
height: "100dvh",
|
|
859
883
|
maxHeight: "100dvh",
|
|
860
884
|
overflow: "hidden",
|
|
861
885
|
width: "100%"
|
|
862
|
-
}, e[11] =
|
|
863
|
-
let
|
|
864
|
-
e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
886
|
+
}, e[11] = S) : S = e[11];
|
|
887
|
+
let _;
|
|
888
|
+
e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = {
|
|
865
889
|
borderBottom: "1px solid",
|
|
866
890
|
borderColor: "var(--mui-palette-divider)",
|
|
867
891
|
boxShadow: "none"
|
|
868
|
-
}, e[12] =
|
|
869
|
-
let
|
|
870
|
-
e[13] !== s || e[14] !==
|
|
871
|
-
i(
|
|
892
|
+
}, e[12] = _) : _ = e[12];
|
|
893
|
+
let j;
|
|
894
|
+
e[13] !== s || e[14] !== c ? (j = s && /* @__PURE__ */ o.jsx(Ge, { onClick: () => {
|
|
895
|
+
i(as);
|
|
872
896
|
}, sx: {
|
|
873
897
|
marginRight: 2
|
|
874
|
-
}, children:
|
|
875
|
-
let
|
|
876
|
-
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
877
|
-
let
|
|
878
|
-
e[18] !==
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
] }) }), e[18] =
|
|
883
|
-
let
|
|
884
|
-
e[20] !== s || e[21] !==
|
|
885
|
-
i(T),
|
|
886
|
-
} }), e[20] = s, e[21] =
|
|
887
|
-
let
|
|
888
|
-
e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
898
|
+
}, children: c ? /* @__PURE__ */ o.jsx(co, {}) : /* @__PURE__ */ o.jsx(ao, {}) }), e[13] = s, e[14] = c, e[15] = j) : j = e[15];
|
|
899
|
+
let k, C;
|
|
900
|
+
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ o.jsx(Fo, {}), k = /* @__PURE__ */ o.jsx(ss, {}), e[16] = k, e[17] = C) : (k = e[16], C = e[17]);
|
|
901
|
+
let I;
|
|
902
|
+
e[18] !== j ? (I = /* @__PURE__ */ o.jsx(Ft, { color: "transparent", position: "fixed", sx: _, children: /* @__PURE__ */ o.jsxs(Yt, { children: [
|
|
903
|
+
j,
|
|
904
|
+
C,
|
|
905
|
+
k
|
|
906
|
+
] }) }), e[18] = j, e[19] = I) : I = e[19];
|
|
907
|
+
let L;
|
|
908
|
+
e[20] !== s || e[21] !== c ? (L = s && /* @__PURE__ */ o.jsx(es, { navigation: s, expanded: c, setExpanded: (T) => {
|
|
909
|
+
i(T), kt(T);
|
|
910
|
+
} }), e[20] = s, e[21] = c, e[22] = L) : L = e[22];
|
|
911
|
+
let b, v;
|
|
912
|
+
e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = {
|
|
889
913
|
flexGrow: 1,
|
|
890
914
|
display: "flex",
|
|
891
915
|
flexDirection: "column",
|
|
892
916
|
minWidth: 0,
|
|
893
917
|
height: "100%",
|
|
894
918
|
overflow: "hidden"
|
|
895
|
-
},
|
|
919
|
+
}, v = /* @__PURE__ */ o.jsx(ns, {}), e[23] = b, e[24] = v) : (b = e[23], v = e[24]);
|
|
896
920
|
let M;
|
|
897
921
|
e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = {
|
|
898
922
|
flex: 1,
|
|
@@ -900,62 +924,62 @@ const Lt = "navigation-open", ls = () => Ve.isWindows || Ve.isMacOS ? localStora
|
|
|
900
924
|
position: "relative"
|
|
901
925
|
}, e[25] = M) : M = e[25];
|
|
902
926
|
let w;
|
|
903
|
-
e[26] !== l || e[27] !==
|
|
927
|
+
e[26] !== l || e[27] !== a ? (w = a ? l : /* @__PURE__ */ o.jsx(lt, { children: l }), e[26] = l, e[27] = a, e[28] = w) : w = e[28];
|
|
904
928
|
let A;
|
|
905
|
-
e[29] !== w ? (A = /* @__PURE__ */ o.jsxs(
|
|
906
|
-
|
|
907
|
-
/* @__PURE__ */ o.jsx(
|
|
929
|
+
e[29] !== w ? (A = /* @__PURE__ */ o.jsxs(Ke, { component: "main", sx: b, children: [
|
|
930
|
+
v,
|
|
931
|
+
/* @__PURE__ */ o.jsx(Ke, { sx: M, children: w })
|
|
908
932
|
] }), e[29] = w, e[30] = A) : A = e[30];
|
|
909
933
|
let $;
|
|
910
|
-
return e[31] !==
|
|
934
|
+
return e[31] !== I || e[32] !== L || e[33] !== A ? ($ = /* @__PURE__ */ o.jsxs(be, { children: [
|
|
911
935
|
g,
|
|
912
|
-
|
|
913
|
-
/* @__PURE__ */ o.jsxs(
|
|
914
|
-
|
|
915
|
-
|
|
936
|
+
y,
|
|
937
|
+
/* @__PURE__ */ o.jsxs(Ke, { sx: S, children: [
|
|
938
|
+
I,
|
|
939
|
+
L,
|
|
916
940
|
A
|
|
917
941
|
] })
|
|
918
|
-
] }), e[31] =
|
|
942
|
+
] }), e[31] = I, e[32] = L, e[33] = A, e[34] = $) : $ = e[34], $;
|
|
919
943
|
};
|
|
920
|
-
function
|
|
944
|
+
function as(t) {
|
|
921
945
|
const e = !t;
|
|
922
|
-
return
|
|
946
|
+
return kt(e), e;
|
|
923
947
|
}
|
|
924
|
-
const
|
|
925
|
-
|
|
948
|
+
const cs = 1440 * 365;
|
|
949
|
+
Ve.use(Xt).use(Jt).init({
|
|
926
950
|
resources: ht,
|
|
927
951
|
fallbackLng: "en",
|
|
928
952
|
supportedLngs: Object.keys(ht),
|
|
929
953
|
detection: {
|
|
930
954
|
caches: ["cookie"],
|
|
931
|
-
cookieMinutes:
|
|
955
|
+
cookieMinutes: cs
|
|
932
956
|
},
|
|
933
957
|
interpolation: {
|
|
934
958
|
escapeValue: !1
|
|
935
959
|
},
|
|
936
960
|
showSupportNotice: !1
|
|
937
961
|
});
|
|
938
|
-
|
|
939
|
-
|
|
962
|
+
Ve.on("languageChanged", (t) => {
|
|
963
|
+
nt.config(nt.core.locales[t]()), Vt.locale(t);
|
|
940
964
|
});
|
|
941
|
-
const
|
|
965
|
+
const ni = (t) => {
|
|
942
966
|
const e = B.c(10), {
|
|
943
967
|
options: s,
|
|
944
968
|
navigation: r,
|
|
945
969
|
theme: l,
|
|
946
|
-
children:
|
|
970
|
+
children: c
|
|
947
971
|
} = t, i = s?.snackbarOrigin;
|
|
948
972
|
let n;
|
|
949
|
-
e[0] !==
|
|
973
|
+
e[0] !== c || e[1] !== r || e[2] !== s ? (n = /* @__PURE__ */ o.jsx(Bo, { children: /* @__PURE__ */ o.jsx(At, { instance: no, children: /* @__PURE__ */ o.jsx(rs, { navigation: r, options: s, children: c }) }) }), e[0] = c, e[1] = r, e[2] = s, e[3] = n) : n = e[3];
|
|
950
974
|
let m;
|
|
951
|
-
e[4] !== i || e[5] !== n ? (m = /* @__PURE__ */ o.jsx(Gt, { dateAdapter: Kt, adapterLocale:
|
|
952
|
-
let
|
|
953
|
-
return e[7] !== m || e[8] !== l ? (
|
|
975
|
+
e[4] !== i || e[5] !== n ? (m = /* @__PURE__ */ o.jsx(Gt, { dateAdapter: Kt, adapterLocale: Ve.language, children: /* @__PURE__ */ o.jsx(zo, { snackbarOrigin: i, children: n }) }, Ve.language), e[4] = i, e[5] = n, e[6] = m) : m = e[6];
|
|
976
|
+
let d;
|
|
977
|
+
return e[7] !== m || e[8] !== l ? (d = /* @__PURE__ */ o.jsx(qt, { theme: l, children: m }), e[7] = m, e[8] = l, e[9] = d) : d = e[9], d;
|
|
954
978
|
};
|
|
955
979
|
export {
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
980
|
+
ni as LayoutProvider,
|
|
981
|
+
ci as WISTRON_PRIMARY_COLOR,
|
|
982
|
+
mi as WISTRON_SECONDARY_COLOR,
|
|
983
|
+
di as rootRouteHead
|
|
960
984
|
};
|
|
961
985
|
//# sourceMappingURL=index.js.map
|