wcz-test 7.1.3 → 7.2.1
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/DialogsContext-CGAKEKKW.js +546 -0
- package/dist/DialogsContext-CGAKEKKW.js.map +1 -0
- package/dist/{DialogsHooks-BXfwbYWP.js → DialogsHooks-BZUdpDVJ.js} +14 -14
- package/dist/DialogsHooks-BZUdpDVJ.js.map +1 -0
- package/dist/RouterListItemButton-C_jUvB6C.js +18 -0
- package/dist/{RouterListItemButton-DrW6M53Y.js.map → RouterListItemButton-C_jUvB6C.js.map} +1 -1
- package/dist/compiler-runtime-BNHg76kC.js +37 -0
- package/dist/compiler-runtime-BNHg76kC.js.map +1 -0
- package/dist/components/core/Layout.d.ts +1 -1
- package/dist/components.js +686 -682
- package/dist/components.js.map +1 -1
- package/dist/env-Dy8Ynqa-.js +75 -0
- package/dist/env-Dy8Ynqa-.js.map +1 -0
- package/dist/exports/hooks.d.ts +1 -1
- package/dist/exports/middleware.d.ts +1 -0
- package/dist/exports/server.d.ts +1 -0
- package/dist/exports/utils.d.ts +2 -2
- package/dist/hooks/UseScanDetection.d.ts +28 -0
- package/dist/hooks.js +603 -610
- package/dist/hooks.js.map +1 -1
- package/dist/{i18next-Bx3TmZAT.js → i18next-8reizFda.js} +71 -63
- package/dist/i18next-8reizFda.js.map +1 -0
- package/dist/{index-DchOf6FV.js → index-CsRHHlp3.js} +9 -6
- package/dist/index-CsRHHlp3.js.map +1 -0
- package/dist/index.js +662 -821
- package/dist/index.js.map +1 -1
- package/dist/lib/auth/msalClient.d.ts +20 -0
- package/dist/lib/auth/msalServer.d.ts +11 -0
- package/dist/lib/auth/scopes.d.ts +2 -0
- package/dist/lib/auth/utils.d.ts +0 -0
- package/dist/lib/theme.d.ts +1 -0
- package/dist/lib/utils.d.ts +2 -10
- package/dist/middleware/authMiddleware.d.ts +6 -0
- package/dist/middleware.js +1101 -0
- package/dist/middleware.js.map +1 -0
- package/dist/models/TokenPayload.d.ts +8 -0
- package/dist/models/User.d.ts +10 -13
- package/dist/msalClient-l-DV8PoB.js +76 -0
- package/dist/msalClient-l-DV8PoB.js.map +1 -0
- package/dist/providers/AuthProvider.d.ts +0 -2
- package/dist/queries/FileHooks.d.ts +1 -1
- package/dist/queries/GraphQueries.d.ts +0 -20
- package/dist/query.js +1 -1
- package/dist/server.js +36 -0
- package/dist/server.js.map +1 -0
- package/dist/utils-BGMLqA26.js +81 -0
- package/dist/utils-BGMLqA26.js.map +1 -0
- package/dist/utils.js +9 -6
- package/dist/utils.js.map +1 -1
- package/package.json +20 -11
- package/dist/DialogsContext-8xfQ3X-k.js +0 -285
- package/dist/DialogsContext-8xfQ3X-k.js.map +0 -1
- package/dist/DialogsHooks-BXfwbYWP.js.map +0 -1
- package/dist/RouterListItemButton-DrW6M53Y.js +0 -17
- package/dist/hooks/User.d.ts +0 -8
- package/dist/i18next-Bx3TmZAT.js.map +0 -1
- package/dist/index-DchOf6FV.js.map +0 -1
- package/dist/utils-Dttzp8un.js +0 -10879
- package/dist/utils-Dttzp8un.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,86 +1,92 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { Stack as
|
|
4
|
-
import { LocalizationProvider as
|
|
5
|
-
import { AdapterDayjs as
|
|
6
|
-
import
|
|
7
|
-
import { i as
|
|
8
|
-
import
|
|
9
|
-
import { resources as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import {
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import {
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
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
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
1
|
+
import { s as yt, a as vt, j as i, D as St, u as bt } from "./DialogsContext-CGAKEKKW.js";
|
|
2
|
+
import { c as R } from "./compiler-runtime-BNHg76kC.js";
|
|
3
|
+
import { Stack as wt, Typography as jt, Chip as kt, Collapse as It, Grow as Lt, useMediaQuery as _t, useColorScheme as Ct, ListItemButton as ne, ListItemText as F, ListItemIcon as ie, List as Me, ListItem as Tt, ListSubheader as Be, IconButton as Ee, Avatar as At, Box as Oe, Menu as $t, InitColorSchemeScript as Dt, CssBaseline as Mt, AppBar as Et, Toolbar as Ot, ThemeProvider as Pt } from "@mui/material";
|
|
4
|
+
import { LocalizationProvider as Rt } from "@mui/x-date-pickers";
|
|
5
|
+
import { AdapterDayjs as Nt } from "@mui/x-date-pickers/AdapterDayjs";
|
|
6
|
+
import Ut from "dayjs";
|
|
7
|
+
import { i as B } from "./i18next-8reizFda.js";
|
|
8
|
+
import { useState as ae, useId as Ft, useRef as Ge, Fragment as Pe, useEffect as at, useEffectEvent as Bt } from "react";
|
|
9
|
+
import { resources as Qe } from "virtual:wcz-layout";
|
|
10
|
+
import Xe from "zod";
|
|
11
|
+
import ze from "@mui/utils/useEventCallback";
|
|
12
|
+
import { MsalProvider as zt, useMsal as Wt, useIsAuthenticated as Ht, useMsalAuthentication as qt, AuthenticatedTemplate as Kt } from "@azure/msal-react";
|
|
13
|
+
import { useNavigate as lt, useRouterState as Yt } from "@tanstack/react-router";
|
|
14
|
+
import { C as Gt, p as Ve, g as Qt, a as Xt } from "./msalClient-l-DV8PoB.js";
|
|
15
|
+
import { InteractionType as Vt } from "@azure/msal-browser";
|
|
16
|
+
import Zt from "@mui/icons-material/Menu";
|
|
17
|
+
import Jt from "@mui/icons-material/MenuOpen";
|
|
18
|
+
import { styled as Ke, useTheme as eo } from "@mui/material/styles";
|
|
19
|
+
import { P as Re } from "./utils-BGMLqA26.js";
|
|
20
|
+
import { W as ci, a as di, r as ui } from "./utils-BGMLqA26.js";
|
|
21
|
+
import { a as to } from "./env-Dy8Ynqa-.js";
|
|
22
|
+
import Ye from "@mui/material/Box";
|
|
23
|
+
import Ze from "@mui/material/Drawer";
|
|
24
|
+
import oo from "@mui/material/Divider";
|
|
25
|
+
import no from "@mui/material/List";
|
|
26
|
+
import io from "@mui/material/ListSubheader";
|
|
27
|
+
import so from "@mui/icons-material/ExpandMore";
|
|
28
|
+
import ro from "@mui/material/Avatar";
|
|
29
|
+
import ao from "@mui/material/ListItem";
|
|
30
|
+
import lo from "@mui/material/ListItemButton";
|
|
31
|
+
import co from "@mui/material/ListItemIcon";
|
|
32
|
+
import uo from "@mui/material/ListItemText";
|
|
33
|
+
import mo from "@mui/material/Paper";
|
|
34
|
+
import fo from "@mui/material/Typography";
|
|
35
|
+
import { R as po } from "./RouterListItemButton-C_jUvB6C.js";
|
|
36
|
+
import ho from "@mui/icons-material/AccountCircle";
|
|
37
|
+
import Je from "@mui/icons-material/ArrowBack";
|
|
38
|
+
import go from "@mui/icons-material/Brightness4";
|
|
39
|
+
import et from "@mui/icons-material/ChevronRight";
|
|
40
|
+
import xo from "@mui/icons-material/DarkMode";
|
|
41
|
+
import yo from "@mui/icons-material/Done";
|
|
42
|
+
import vo from "@mui/icons-material/LightMode";
|
|
43
|
+
import So from "@mui/icons-material/Login";
|
|
44
|
+
import bo from "@mui/icons-material/Logout";
|
|
45
|
+
import wo from "@mui/icons-material/SettingsBrightness";
|
|
46
|
+
import jo from "@mui/icons-material/Translate";
|
|
47
|
+
import { queryOptions as ko, useQuery as Io } from "@tanstack/react-query";
|
|
48
|
+
import { a as Lo } from "./index-De6Lo0ff.js";
|
|
43
49
|
const {
|
|
44
|
-
slice:
|
|
45
|
-
forEach:
|
|
50
|
+
slice: _o,
|
|
51
|
+
forEach: Co
|
|
46
52
|
} = [];
|
|
47
|
-
function
|
|
48
|
-
return
|
|
53
|
+
function To(t) {
|
|
54
|
+
return Co.call(_o.call(arguments, 1), (e) => {
|
|
49
55
|
if (e)
|
|
50
|
-
for (const
|
|
51
|
-
t[
|
|
56
|
+
for (const o in e)
|
|
57
|
+
t[o] === void 0 && (t[o] = e[o]);
|
|
52
58
|
}), t;
|
|
53
59
|
}
|
|
54
|
-
function
|
|
55
|
-
return typeof t != "string" ? !1 : [/<\s*script.*?>/i, /<\s*\/\s*script\s*>/i, /<\s*img.*?on\w+\s*=/i, /<\s*\w+\s*on\w+\s*=.*?>/i, /javascript\s*:/i, /vbscript\s*:/i, /expression\s*\(/i, /eval\s*\(/i, /alert\s*\(/i, /document\.cookie/i, /document\.write\s*\(/i, /window\.location/i, /innerHTML/i].some((
|
|
60
|
+
function Ao(t) {
|
|
61
|
+
return typeof t != "string" ? !1 : [/<\s*script.*?>/i, /<\s*\/\s*script\s*>/i, /<\s*img.*?on\w+\s*=/i, /<\s*\w+\s*on\w+\s*=.*?>/i, /javascript\s*:/i, /vbscript\s*:/i, /expression\s*\(/i, /eval\s*\(/i, /alert\s*\(/i, /document\.cookie/i, /document\.write\s*\(/i, /window\.location/i, /innerHTML/i].some((o) => o.test(t));
|
|
56
62
|
}
|
|
57
|
-
const
|
|
58
|
-
const
|
|
63
|
+
const tt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, $o = function(t, e) {
|
|
64
|
+
const n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
59
65
|
path: "/"
|
|
60
66
|
}, r = encodeURIComponent(e);
|
|
61
67
|
let a = `${t}=${r}`;
|
|
62
|
-
if (
|
|
63
|
-
const
|
|
64
|
-
if (Number.isNaN(
|
|
65
|
-
a += `; Max-Age=${Math.floor(
|
|
68
|
+
if (n.maxAge > 0) {
|
|
69
|
+
const s = n.maxAge - 0;
|
|
70
|
+
if (Number.isNaN(s)) throw new Error("maxAge should be a Number");
|
|
71
|
+
a += `; Max-Age=${Math.floor(s)}`;
|
|
66
72
|
}
|
|
67
|
-
if (
|
|
68
|
-
if (!
|
|
73
|
+
if (n.domain) {
|
|
74
|
+
if (!tt.test(n.domain))
|
|
69
75
|
throw new TypeError("option domain is invalid");
|
|
70
|
-
a += `; Domain=${
|
|
76
|
+
a += `; Domain=${n.domain}`;
|
|
71
77
|
}
|
|
72
|
-
if (
|
|
73
|
-
if (!
|
|
78
|
+
if (n.path) {
|
|
79
|
+
if (!tt.test(n.path))
|
|
74
80
|
throw new TypeError("option path is invalid");
|
|
75
|
-
a += `; Path=${
|
|
81
|
+
a += `; Path=${n.path}`;
|
|
76
82
|
}
|
|
77
|
-
if (
|
|
78
|
-
if (typeof
|
|
83
|
+
if (n.expires) {
|
|
84
|
+
if (typeof n.expires.toUTCString != "function")
|
|
79
85
|
throw new TypeError("option expires is invalid");
|
|
80
|
-
a += `; Expires=${
|
|
86
|
+
a += `; Expires=${n.expires.toUTCString()}`;
|
|
81
87
|
}
|
|
82
|
-
if (
|
|
83
|
-
switch (typeof
|
|
88
|
+
if (n.httpOnly && (a += "; HttpOnly"), n.secure && (a += "; Secure"), n.sameSite)
|
|
89
|
+
switch (typeof n.sameSite == "string" ? n.sameSite.toLowerCase() : n.sameSite) {
|
|
84
90
|
case !0:
|
|
85
91
|
a += "; SameSite=Strict";
|
|
86
92
|
break;
|
|
@@ -96,19 +102,19 @@ const St = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, no = function(t, e) {
|
|
|
96
102
|
default:
|
|
97
103
|
throw new TypeError("option sameSite is invalid");
|
|
98
104
|
}
|
|
99
|
-
return
|
|
100
|
-
},
|
|
101
|
-
create(t, e,
|
|
105
|
+
return n.partitioned && (a += "; Partitioned"), a;
|
|
106
|
+
}, ot = {
|
|
107
|
+
create(t, e, o, n) {
|
|
102
108
|
let r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
103
109
|
path: "/",
|
|
104
110
|
sameSite: "strict"
|
|
105
111
|
};
|
|
106
|
-
|
|
112
|
+
o && (r.expires = /* @__PURE__ */ new Date(), r.expires.setTime(r.expires.getTime() + o * 60 * 1e3)), n && (r.domain = n), document.cookie = $o(t, e, r);
|
|
107
113
|
},
|
|
108
114
|
read(t) {
|
|
109
|
-
const e = `${t}=`,
|
|
110
|
-
for (let
|
|
111
|
-
let r = n
|
|
115
|
+
const e = `${t}=`, o = document.cookie.split(";");
|
|
116
|
+
for (let n = 0; n < o.length; n++) {
|
|
117
|
+
let r = o[n];
|
|
112
118
|
for (; r.charAt(0) === " "; ) r = r.substring(1, r.length);
|
|
113
119
|
if (r.indexOf(e) === 0) return r.substring(e.length, r.length);
|
|
114
120
|
}
|
|
@@ -118,7 +124,7 @@ const St = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, no = function(t, e) {
|
|
|
118
124
|
this.create(t, "", -1, e);
|
|
119
125
|
}
|
|
120
126
|
};
|
|
121
|
-
var
|
|
127
|
+
var Do = {
|
|
122
128
|
name: "cookie",
|
|
123
129
|
// Deconstruct the options object and extract the lookupCookie property
|
|
124
130
|
lookup(t) {
|
|
@@ -126,46 +132,46 @@ var oo = {
|
|
|
126
132
|
lookupCookie: e
|
|
127
133
|
} = t;
|
|
128
134
|
if (e && typeof document < "u")
|
|
129
|
-
return
|
|
135
|
+
return ot.read(e) || void 0;
|
|
130
136
|
},
|
|
131
137
|
// Deconstruct the options object and extract the lookupCookie, cookieMinutes, cookieDomain, and cookieOptions properties
|
|
132
138
|
cacheUserLanguage(t, e) {
|
|
133
139
|
let {
|
|
134
|
-
lookupCookie:
|
|
135
|
-
cookieMinutes:
|
|
140
|
+
lookupCookie: o,
|
|
141
|
+
cookieMinutes: n,
|
|
136
142
|
cookieDomain: r,
|
|
137
143
|
cookieOptions: a
|
|
138
144
|
} = e;
|
|
139
|
-
|
|
145
|
+
o && typeof document < "u" && ot.create(o, t, n, r, a);
|
|
140
146
|
}
|
|
141
|
-
},
|
|
147
|
+
}, Mo = {
|
|
142
148
|
name: "querystring",
|
|
143
149
|
// Deconstruct the options object and extract the lookupQuerystring property
|
|
144
150
|
lookup(t) {
|
|
145
151
|
let {
|
|
146
152
|
lookupQuerystring: e
|
|
147
|
-
} = t,
|
|
153
|
+
} = t, o;
|
|
148
154
|
if (typeof window < "u") {
|
|
149
155
|
let {
|
|
150
|
-
search:
|
|
156
|
+
search: n
|
|
151
157
|
} = window.location;
|
|
152
|
-
!window.location.search && window.location.hash?.indexOf("?") > -1 && (
|
|
153
|
-
const a =
|
|
154
|
-
for (let
|
|
155
|
-
const l = a[
|
|
156
|
-
l > 0 && a[
|
|
158
|
+
!window.location.search && window.location.hash?.indexOf("?") > -1 && (n = window.location.hash.substring(window.location.hash.indexOf("?")));
|
|
159
|
+
const a = n.substring(1).split("&");
|
|
160
|
+
for (let s = 0; s < a.length; s++) {
|
|
161
|
+
const l = a[s].indexOf("=");
|
|
162
|
+
l > 0 && a[s].substring(0, l) === e && (o = a[s].substring(l + 1));
|
|
157
163
|
}
|
|
158
164
|
}
|
|
159
|
-
return
|
|
165
|
+
return o;
|
|
160
166
|
}
|
|
161
|
-
},
|
|
167
|
+
}, Eo = {
|
|
162
168
|
name: "hash",
|
|
163
169
|
// Deconstruct the options object and extract the lookupHash property and the lookupFromHashIndex property
|
|
164
170
|
lookup(t) {
|
|
165
171
|
let {
|
|
166
172
|
lookupHash: e,
|
|
167
|
-
lookupFromHashIndex:
|
|
168
|
-
} = t,
|
|
173
|
+
lookupFromHashIndex: o
|
|
174
|
+
} = t, n;
|
|
169
175
|
if (typeof window < "u") {
|
|
170
176
|
const {
|
|
171
177
|
hash: r
|
|
@@ -173,109 +179,109 @@ var oo = {
|
|
|
173
179
|
if (r && r.length > 2) {
|
|
174
180
|
const a = r.substring(1);
|
|
175
181
|
if (e) {
|
|
176
|
-
const
|
|
177
|
-
for (let l = 0; l <
|
|
178
|
-
const
|
|
179
|
-
|
|
182
|
+
const s = a.split("&");
|
|
183
|
+
for (let l = 0; l < s.length; l++) {
|
|
184
|
+
const c = s[l].indexOf("=");
|
|
185
|
+
c > 0 && s[l].substring(0, c) === e && (n = s[l].substring(c + 1));
|
|
180
186
|
}
|
|
181
187
|
}
|
|
182
|
-
if (
|
|
183
|
-
if (!
|
|
184
|
-
const
|
|
185
|
-
return Array.isArray(
|
|
188
|
+
if (n) return n;
|
|
189
|
+
if (!n && o > -1) {
|
|
190
|
+
const s = r.match(/\/([a-zA-Z-]*)/g);
|
|
191
|
+
return Array.isArray(s) ? s[typeof o == "number" ? o : 0]?.replace("/", "") : void 0;
|
|
186
192
|
}
|
|
187
193
|
}
|
|
188
194
|
}
|
|
189
|
-
return
|
|
195
|
+
return n;
|
|
190
196
|
}
|
|
191
197
|
};
|
|
192
|
-
let
|
|
193
|
-
const
|
|
194
|
-
if (
|
|
198
|
+
let se = null;
|
|
199
|
+
const nt = () => {
|
|
200
|
+
if (se !== null) return se;
|
|
195
201
|
try {
|
|
196
|
-
if (
|
|
202
|
+
if (se = typeof window < "u" && window.localStorage !== null, !se)
|
|
197
203
|
return !1;
|
|
198
204
|
const t = "i18next.translate.boo";
|
|
199
205
|
window.localStorage.setItem(t, "foo"), window.localStorage.removeItem(t);
|
|
200
206
|
} catch {
|
|
201
|
-
|
|
207
|
+
se = !1;
|
|
202
208
|
}
|
|
203
|
-
return
|
|
209
|
+
return se;
|
|
204
210
|
};
|
|
205
|
-
var
|
|
211
|
+
var Oo = {
|
|
206
212
|
name: "localStorage",
|
|
207
213
|
// Deconstruct the options object and extract the lookupLocalStorage property
|
|
208
214
|
lookup(t) {
|
|
209
215
|
let {
|
|
210
216
|
lookupLocalStorage: e
|
|
211
217
|
} = t;
|
|
212
|
-
if (e &&
|
|
218
|
+
if (e && nt())
|
|
213
219
|
return window.localStorage.getItem(e) || void 0;
|
|
214
220
|
},
|
|
215
221
|
// Deconstruct the options object and extract the lookupLocalStorage property
|
|
216
222
|
cacheUserLanguage(t, e) {
|
|
217
223
|
let {
|
|
218
|
-
lookupLocalStorage:
|
|
224
|
+
lookupLocalStorage: o
|
|
219
225
|
} = e;
|
|
220
|
-
|
|
226
|
+
o && nt() && window.localStorage.setItem(o, t);
|
|
221
227
|
}
|
|
222
228
|
};
|
|
223
|
-
let
|
|
224
|
-
const
|
|
225
|
-
if (
|
|
229
|
+
let re = null;
|
|
230
|
+
const it = () => {
|
|
231
|
+
if (re !== null) return re;
|
|
226
232
|
try {
|
|
227
|
-
if (
|
|
233
|
+
if (re = typeof window < "u" && window.sessionStorage !== null, !re)
|
|
228
234
|
return !1;
|
|
229
235
|
const t = "i18next.translate.boo";
|
|
230
236
|
window.sessionStorage.setItem(t, "foo"), window.sessionStorage.removeItem(t);
|
|
231
237
|
} catch {
|
|
232
|
-
|
|
238
|
+
re = !1;
|
|
233
239
|
}
|
|
234
|
-
return
|
|
240
|
+
return re;
|
|
235
241
|
};
|
|
236
|
-
var
|
|
242
|
+
var Po = {
|
|
237
243
|
name: "sessionStorage",
|
|
238
244
|
lookup(t) {
|
|
239
245
|
let {
|
|
240
246
|
lookupSessionStorage: e
|
|
241
247
|
} = t;
|
|
242
|
-
if (e &&
|
|
248
|
+
if (e && it())
|
|
243
249
|
return window.sessionStorage.getItem(e) || void 0;
|
|
244
250
|
},
|
|
245
251
|
cacheUserLanguage(t, e) {
|
|
246
252
|
let {
|
|
247
|
-
lookupSessionStorage:
|
|
253
|
+
lookupSessionStorage: o
|
|
248
254
|
} = e;
|
|
249
|
-
|
|
255
|
+
o && it() && window.sessionStorage.setItem(o, t);
|
|
250
256
|
}
|
|
251
|
-
},
|
|
257
|
+
}, Ro = {
|
|
252
258
|
name: "navigator",
|
|
253
259
|
lookup(t) {
|
|
254
260
|
const e = [];
|
|
255
261
|
if (typeof navigator < "u") {
|
|
256
262
|
const {
|
|
257
|
-
languages:
|
|
258
|
-
userLanguage:
|
|
263
|
+
languages: o,
|
|
264
|
+
userLanguage: n,
|
|
259
265
|
language: r
|
|
260
266
|
} = navigator;
|
|
261
|
-
if (
|
|
262
|
-
for (let a = 0; a <
|
|
263
|
-
e.push(
|
|
264
|
-
|
|
267
|
+
if (o)
|
|
268
|
+
for (let a = 0; a < o.length; a++)
|
|
269
|
+
e.push(o[a]);
|
|
270
|
+
n && e.push(n), r && e.push(r);
|
|
265
271
|
}
|
|
266
272
|
return e.length > 0 ? e : void 0;
|
|
267
273
|
}
|
|
268
|
-
},
|
|
274
|
+
}, No = {
|
|
269
275
|
name: "htmlTag",
|
|
270
276
|
// Deconstruct the options object and extract the htmlTag property
|
|
271
277
|
lookup(t) {
|
|
272
278
|
let {
|
|
273
279
|
htmlTag: e
|
|
274
|
-
} = t,
|
|
275
|
-
const
|
|
276
|
-
return
|
|
280
|
+
} = t, o;
|
|
281
|
+
const n = e || (typeof document < "u" ? document.documentElement : null);
|
|
282
|
+
return n && typeof n.getAttribute == "function" && (o = n.getAttribute("lang")), o;
|
|
277
283
|
}
|
|
278
|
-
},
|
|
284
|
+
}, Uo = {
|
|
279
285
|
name: "path",
|
|
280
286
|
// Deconstruct the options object and extract the lookupFromPathIndex property
|
|
281
287
|
lookup(t) {
|
|
@@ -283,29 +289,29 @@ var ao = {
|
|
|
283
289
|
lookupFromPathIndex: e
|
|
284
290
|
} = t;
|
|
285
291
|
if (typeof window > "u") return;
|
|
286
|
-
const
|
|
287
|
-
return Array.isArray(
|
|
292
|
+
const o = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
|
|
293
|
+
return Array.isArray(o) ? o[typeof e == "number" ? e : 0]?.replace("/", "") : void 0;
|
|
288
294
|
}
|
|
289
|
-
},
|
|
295
|
+
}, Fo = {
|
|
290
296
|
name: "subdomain",
|
|
291
297
|
lookup(t) {
|
|
292
298
|
let {
|
|
293
299
|
lookupFromSubdomainIndex: e
|
|
294
300
|
} = t;
|
|
295
|
-
const
|
|
296
|
-
if (
|
|
297
|
-
return o
|
|
301
|
+
const o = typeof e == "number" ? e + 1 : 1, n = typeof window < "u" && window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
|
|
302
|
+
if (n)
|
|
303
|
+
return n[o];
|
|
298
304
|
}
|
|
299
305
|
};
|
|
300
|
-
let
|
|
306
|
+
let ct = !1;
|
|
301
307
|
try {
|
|
302
|
-
document.cookie,
|
|
308
|
+
document.cookie, ct = !0;
|
|
303
309
|
} catch {
|
|
304
310
|
}
|
|
305
|
-
const
|
|
306
|
-
|
|
307
|
-
const
|
|
308
|
-
order:
|
|
311
|
+
const dt = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
|
|
312
|
+
ct || dt.splice(1, 1);
|
|
313
|
+
const Bo = () => ({
|
|
314
|
+
order: dt,
|
|
309
315
|
lookupQuerystring: "lng",
|
|
310
316
|
lookupCookie: "i18next",
|
|
311
317
|
lookupLocalStorage: "i18nextLng",
|
|
@@ -317,245 +323,116 @@ const po = () => ({
|
|
|
317
323
|
// cookieDomain: 'myDomain'
|
|
318
324
|
convertDetectedLanguage: (t) => t
|
|
319
325
|
});
|
|
320
|
-
class
|
|
326
|
+
class ut {
|
|
321
327
|
constructor(e) {
|
|
322
|
-
let
|
|
323
|
-
this.type = "languageDetector", this.detectors = {}, this.init(e,
|
|
328
|
+
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
329
|
+
this.type = "languageDetector", this.detectors = {}, this.init(e, o);
|
|
324
330
|
}
|
|
325
331
|
init() {
|
|
326
332
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
327
333
|
languageUtils: {}
|
|
328
|
-
},
|
|
329
|
-
this.services = e, this.options =
|
|
334
|
+
}, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
335
|
+
this.services = e, this.options = To(o, this.options || {}, Bo()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (r) => r.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = n, this.addDetector(Do), this.addDetector(Mo), this.addDetector(Oo), this.addDetector(Po), this.addDetector(Ro), this.addDetector(No), this.addDetector(Uo), this.addDetector(Fo), this.addDetector(Eo);
|
|
330
336
|
}
|
|
331
337
|
addDetector(e) {
|
|
332
338
|
return this.detectors[e.name] = e, this;
|
|
333
339
|
}
|
|
334
340
|
detect() {
|
|
335
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.options.order,
|
|
336
|
-
return e.forEach((
|
|
337
|
-
if (this.detectors[
|
|
338
|
-
let r = this.detectors[
|
|
339
|
-
r && typeof r == "string" && (r = [r]), r && (
|
|
341
|
+
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.options.order, o = [];
|
|
342
|
+
return e.forEach((n) => {
|
|
343
|
+
if (this.detectors[n]) {
|
|
344
|
+
let r = this.detectors[n].lookup(this.options);
|
|
345
|
+
r && typeof r == "string" && (r = [r]), r && (o = o.concat(r));
|
|
340
346
|
}
|
|
341
|
-
}),
|
|
347
|
+
}), o = o.filter((n) => n != null && !Ao(n)).map((n) => this.options.convertDetectedLanguage(n)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? o : o.length > 0 ? o[0] : null;
|
|
342
348
|
}
|
|
343
349
|
cacheUserLanguage(e) {
|
|
344
|
-
let
|
|
345
|
-
|
|
346
|
-
this.detectors[
|
|
350
|
+
let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
|
|
351
|
+
o && (this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(e) > -1 || o.forEach((n) => {
|
|
352
|
+
this.detectors[n] && this.detectors[n].cacheUserLanguage(e, this.options);
|
|
347
353
|
}));
|
|
348
354
|
}
|
|
349
355
|
}
|
|
350
|
-
|
|
351
|
-
const
|
|
356
|
+
ut.type = "languageDetector";
|
|
357
|
+
const zo = {
|
|
352
358
|
type: "3rdParty",
|
|
353
359
|
init(t) {
|
|
354
|
-
|
|
360
|
+
yt(t.options.react), vt(t);
|
|
355
361
|
}
|
|
356
362
|
};
|
|
357
|
-
function
|
|
363
|
+
function Wo({
|
|
358
364
|
children: t
|
|
359
365
|
}) {
|
|
360
|
-
const [e,
|
|
366
|
+
const [e, o] = ae([]), n = Ft(), r = Ge(0), a = Ge(/* @__PURE__ */ new WeakMap()), s = ze(function(p, f, d = {}) {
|
|
361
367
|
const {
|
|
362
|
-
onClose:
|
|
368
|
+
onClose: y = async () => {
|
|
363
369
|
}
|
|
364
|
-
} =
|
|
365
|
-
let
|
|
366
|
-
const
|
|
367
|
-
|
|
368
|
-
}),
|
|
370
|
+
} = d;
|
|
371
|
+
let g;
|
|
372
|
+
const h = new Promise((S) => {
|
|
373
|
+
g = S;
|
|
374
|
+
}), v = `${n}-${r.current}`;
|
|
369
375
|
r.current += 1;
|
|
370
376
|
const x = {
|
|
371
|
-
key:
|
|
377
|
+
key: v,
|
|
372
378
|
open: !0,
|
|
373
|
-
promise:
|
|
374
|
-
Component:
|
|
375
|
-
payload:
|
|
376
|
-
onClose:
|
|
377
|
-
resolve:
|
|
379
|
+
promise: h,
|
|
380
|
+
Component: p,
|
|
381
|
+
payload: f,
|
|
382
|
+
onClose: y,
|
|
383
|
+
resolve: g
|
|
378
384
|
};
|
|
379
|
-
return a.current.set(
|
|
380
|
-
}), l = (
|
|
381
|
-
|
|
382
|
-
},
|
|
383
|
-
|
|
384
|
-
...
|
|
385
|
+
return a.current.set(h, x), o((S) => [...S, x]), h;
|
|
386
|
+
}), l = (u) => {
|
|
387
|
+
o((p) => p.filter((f) => f.promise !== u)), a.current.delete(u);
|
|
388
|
+
}, c = ze(function(p) {
|
|
389
|
+
o((f) => f.map((d) => d.promise === p ? {
|
|
390
|
+
...d,
|
|
385
391
|
open: !1
|
|
386
|
-
} :
|
|
387
|
-
}),
|
|
388
|
-
const
|
|
389
|
-
if (!
|
|
392
|
+
} : d)), setTimeout(() => l(p), 1e3);
|
|
393
|
+
}), m = ze(async function(p, f) {
|
|
394
|
+
const d = a.current.get(p);
|
|
395
|
+
if (!d)
|
|
390
396
|
throw new Error("Dialog not found in stack");
|
|
391
397
|
try {
|
|
392
|
-
await
|
|
398
|
+
await d.onClose(f);
|
|
393
399
|
} finally {
|
|
394
|
-
|
|
400
|
+
d.resolve(f), c(p);
|
|
395
401
|
}
|
|
396
|
-
return
|
|
402
|
+
return p;
|
|
397
403
|
});
|
|
398
|
-
return /* @__PURE__ */
|
|
399
|
-
open:
|
|
400
|
-
close:
|
|
404
|
+
return /* @__PURE__ */ i.jsxs(St.Provider, { value: {
|
|
405
|
+
open: s,
|
|
406
|
+
close: m
|
|
401
407
|
}, children: [
|
|
402
408
|
t,
|
|
403
409
|
e.map(({
|
|
404
|
-
key:
|
|
405
|
-
open:
|
|
406
|
-
Component:
|
|
407
|
-
payload:
|
|
408
|
-
promise:
|
|
409
|
-
}) => /* @__PURE__ */
|
|
410
|
-
await
|
|
411
|
-
} },
|
|
410
|
+
key: u,
|
|
411
|
+
open: p,
|
|
412
|
+
Component: f,
|
|
413
|
+
payload: d,
|
|
414
|
+
promise: y
|
|
415
|
+
}) => /* @__PURE__ */ i.jsx(f, { payload: d, open: p, onClose: async (g) => {
|
|
416
|
+
await m(y, g);
|
|
417
|
+
} }, u))
|
|
412
418
|
] });
|
|
413
419
|
}
|
|
414
|
-
const
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
}
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
return
|
|
421
|
-
}
|
|
422
|
-
|
|
423
|
-
const r = he(), a = Lt(() => ({
|
|
424
|
-
username: t,
|
|
425
|
-
homeAccountId: e,
|
|
426
|
-
localAccountId: n
|
|
427
|
-
}), [t, e, n]);
|
|
428
|
-
return Dt(a) && r.inProgress !== W.Startup ? ft.createElement(ft.Fragment, null, Bt(o, r)) : null;
|
|
429
|
-
}
|
|
430
|
-
function jt(t, e) {
|
|
431
|
-
return t.getActiveAccount();
|
|
432
|
-
}
|
|
433
|
-
function yo(t) {
|
|
434
|
-
const { instance: e, inProgress: n, logger: o } = he(), [r, a] = q(() => n === W.Startup ? null : jt(e));
|
|
435
|
-
return F(() => {
|
|
436
|
-
n !== W.Startup && a((i) => {
|
|
437
|
-
const l = jt(e);
|
|
438
|
-
return zt.accountInfoIsEqual(i, l, !0) ? i : (o.info("useAccount - Updating account"), l);
|
|
439
|
-
});
|
|
440
|
-
}, [n, t, e, o]), r;
|
|
441
|
-
}
|
|
442
|
-
const ze = {
|
|
443
|
-
invalidInteractionType: {
|
|
444
|
-
code: "invalid_interaction_type",
|
|
445
|
-
desc: "The provided interaction type is invalid."
|
|
446
|
-
},
|
|
447
|
-
unableToFallbackToInteraction: {
|
|
448
|
-
code: "unable_to_fallback_to_interaction",
|
|
449
|
-
desc: "Interaction is required but another interaction is already in progress. Please try again when the current interaction is complete."
|
|
450
|
-
}
|
|
451
|
-
};
|
|
452
|
-
class ue extends Wt {
|
|
453
|
-
constructor(e, n) {
|
|
454
|
-
super(e, n), Object.setPrototypeOf(this, ue.prototype), this.name = "ReactAuthError";
|
|
455
|
-
}
|
|
456
|
-
static createInvalidInteractionTypeError() {
|
|
457
|
-
return new ue(ze.invalidInteractionType.code, ze.invalidInteractionType.desc);
|
|
458
|
-
}
|
|
459
|
-
static createUnableToFallbackToInteractionError() {
|
|
460
|
-
return new ue(ze.unableToFallbackToInteraction.code, ze.unableToFallbackToInteraction.desc);
|
|
461
|
-
}
|
|
462
|
-
}
|
|
463
|
-
function vo(t, e, n) {
|
|
464
|
-
const { instance: o, inProgress: r, logger: a } = he(), i = Dt(n), l = yo(n), [[u, f], d] = q([null, null]), h = pe(!0);
|
|
465
|
-
F(() => () => {
|
|
466
|
-
h.current = !1;
|
|
467
|
-
}, []);
|
|
468
|
-
const m = pe(r !== W.None);
|
|
469
|
-
F(() => {
|
|
470
|
-
m.current = r !== W.None;
|
|
471
|
-
}, [r]);
|
|
472
|
-
const c = pe(!0);
|
|
473
|
-
F(() => {
|
|
474
|
-
if (f) {
|
|
475
|
-
c.current = !1;
|
|
476
|
-
return;
|
|
477
|
-
}
|
|
478
|
-
if (u) {
|
|
479
|
-
c.current = !1;
|
|
480
|
-
return;
|
|
481
|
-
}
|
|
482
|
-
}, [f, u]);
|
|
483
|
-
const v = pt(async (g, S) => {
|
|
484
|
-
const x = g || t, p = S || e;
|
|
485
|
-
switch (x) {
|
|
486
|
-
case We.Popup:
|
|
487
|
-
return a.verbose("useMsalAuthentication - Calling loginPopup"), o.loginPopup(p);
|
|
488
|
-
case We.Redirect:
|
|
489
|
-
return a.verbose("useMsalAuthentication - Calling loginRedirect"), o.loginRedirect(p).then(null);
|
|
490
|
-
case We.Silent:
|
|
491
|
-
return a.verbose("useMsalAuthentication - Calling ssoSilent"), o.ssoSilent(p);
|
|
492
|
-
default:
|
|
493
|
-
throw ue.createInvalidInteractionTypeError();
|
|
494
|
-
}
|
|
495
|
-
}, [o, t, e, a]), b = pt(async (g, S) => {
|
|
496
|
-
const x = g || t;
|
|
497
|
-
let p;
|
|
498
|
-
return S ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the callback"), p = {
|
|
499
|
-
...S
|
|
500
|
-
}) : (a.trace("useMsalAuthentication - acquireToken - No request object provided, using default request."), p = {
|
|
501
|
-
scopes: Gt
|
|
502
|
-
}), !p.account && l && (a.trace("useMsalAuthentication - acquireToken - Attaching account to request"), p.account = l), (async () => (a.verbose("useMsalAuthentication - Calling acquireTokenSilent"), o.acquireTokenSilent(p).catch(async (y) => {
|
|
503
|
-
if (y instanceof Ht) {
|
|
504
|
-
if (m.current)
|
|
505
|
-
throw a.error("useMsalAuthentication - Interaction required but is already in progress. Please try again, if needed, after interaction completes."), ue.createUnableToFallbackToInteractionError();
|
|
506
|
-
return a.error("useMsalAuthentication - Interaction required, falling back to interaction"), v(x, p);
|
|
507
|
-
}
|
|
508
|
-
throw y;
|
|
509
|
-
})))().then((y) => (h.current && d([y, null]), y)).catch((y) => {
|
|
510
|
-
throw h.current && d([null, y]), y;
|
|
511
|
-
});
|
|
512
|
-
}, [
|
|
513
|
-
o,
|
|
514
|
-
t,
|
|
515
|
-
e,
|
|
516
|
-
a,
|
|
517
|
-
l,
|
|
518
|
-
v
|
|
519
|
-
]);
|
|
520
|
-
return F(() => {
|
|
521
|
-
const g = o.addEventCallback((S) => {
|
|
522
|
-
switch (S.eventType) {
|
|
523
|
-
case qe.LOGIN_SUCCESS:
|
|
524
|
-
case qe.SSO_SILENT_SUCCESS:
|
|
525
|
-
S.payload && d([
|
|
526
|
-
S.payload,
|
|
527
|
-
null
|
|
528
|
-
]);
|
|
529
|
-
break;
|
|
530
|
-
case qe.LOGIN_FAILURE:
|
|
531
|
-
case qe.SSO_SILENT_FAILURE:
|
|
532
|
-
S.error && d([null, S.error]);
|
|
533
|
-
break;
|
|
534
|
-
}
|
|
535
|
-
});
|
|
536
|
-
return a.verbose(`useMsalAuthentication - Registered event callback with id: ${g}`), () => {
|
|
537
|
-
g && (a.verbose(`useMsalAuthentication - Removing event callback ${g}`), o.removeEventCallback(g));
|
|
538
|
-
};
|
|
539
|
-
}, [o, a]), F(() => {
|
|
540
|
-
c.current && r === W.None && (i ? l && (c.current = !1, a.info("useMsalAuthentication - User is authenticated, attempting to acquire token"), b().catch(() => {
|
|
541
|
-
})) : (c.current = !1, a.info("useMsalAuthentication - No user is authenticated, attempting to login"), v().catch(() => {
|
|
542
|
-
})));
|
|
543
|
-
}, [i, l, r, v, b, a]), {
|
|
544
|
-
login: v,
|
|
545
|
-
acquireToken: b,
|
|
546
|
-
result: u,
|
|
547
|
-
error: f
|
|
548
|
-
};
|
|
549
|
-
}
|
|
550
|
-
const bo = () => {
|
|
551
|
-
const t = U.c(1);
|
|
420
|
+
const Ho = (t) => {
|
|
421
|
+
const e = R.c(2), {
|
|
422
|
+
children: o
|
|
423
|
+
} = t, n = lt(), r = new Gt(n);
|
|
424
|
+
Ve.setNavigationClient(r);
|
|
425
|
+
let a;
|
|
426
|
+
return e[0] !== o ? (a = /* @__PURE__ */ i.jsx(zt, { instance: Ve, children: o }), e[0] = o, e[1] = a) : a = e[1], a;
|
|
427
|
+
}, qo = () => {
|
|
428
|
+
const t = R.c(1);
|
|
552
429
|
let e;
|
|
553
|
-
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
554
|
-
/* @__PURE__ */
|
|
555
|
-
/* @__PURE__ */
|
|
556
|
-
/* @__PURE__ */
|
|
430
|
+
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ i.jsxs(wt, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
|
|
431
|
+
/* @__PURE__ */ i.jsx("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
|
|
432
|
+
/* @__PURE__ */ i.jsx(jt, { variant: "h6", children: to.VITE_APP_TITLE }),
|
|
433
|
+
/* @__PURE__ */ i.jsx(kt, { size: "small", label: "TEST", color: "info" })
|
|
557
434
|
] }), t[0] = e) : e = t[0], e;
|
|
558
|
-
},
|
|
435
|
+
}, We = 34, Ko = Ke(lo)(({
|
|
559
436
|
theme: t
|
|
560
437
|
}) => ({
|
|
561
438
|
borderRadius: 8,
|
|
@@ -576,7 +453,7 @@ const bo = () => {
|
|
|
576
453
|
"& .MuiAvatar-root": {
|
|
577
454
|
backgroundColor: (t.vars ?? t).palette.action.active
|
|
578
455
|
}
|
|
579
|
-
})),
|
|
456
|
+
})), Yo = Ke(po)(({
|
|
580
457
|
theme: t
|
|
581
458
|
}) => ({
|
|
582
459
|
borderRadius: 8,
|
|
@@ -597,40 +474,40 @@ const bo = () => {
|
|
|
597
474
|
"& .MuiAvatar-root": {
|
|
598
475
|
backgroundColor: (t.vars ?? t).palette.action.active
|
|
599
476
|
}
|
|
600
|
-
})),
|
|
601
|
-
const e =
|
|
602
|
-
item:
|
|
603
|
-
collapsed:
|
|
477
|
+
})), Go = (t) => {
|
|
478
|
+
const e = R.c(17), {
|
|
479
|
+
item: o,
|
|
480
|
+
collapsed: n
|
|
604
481
|
} = t;
|
|
605
|
-
if (
|
|
482
|
+
if (o.icon || n) {
|
|
606
483
|
let r;
|
|
607
|
-
e[0] !==
|
|
484
|
+
e[0] !== n ? (r = n ? {
|
|
608
485
|
position: "absolute",
|
|
609
486
|
left: "50%",
|
|
610
487
|
top: "calc(50% - 6px)",
|
|
611
488
|
transform: "translate(-50%, -50%)"
|
|
612
|
-
} : {}, e[0] =
|
|
489
|
+
} : {}, e[0] = n, e[1] = r) : r = e[1];
|
|
613
490
|
let a;
|
|
614
491
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
|
|
615
492
|
display: "flex",
|
|
616
493
|
alignItems: "center",
|
|
617
494
|
justifyContent: "center",
|
|
618
|
-
minWidth:
|
|
495
|
+
minWidth: We
|
|
619
496
|
}, e[2] = a) : a = e[2];
|
|
620
|
-
const
|
|
497
|
+
const s = o.icon ?? null;
|
|
621
498
|
let l;
|
|
622
|
-
e[3] !==
|
|
623
|
-
width:
|
|
624
|
-
height:
|
|
499
|
+
e[3] !== n || e[4] !== o.icon || e[5] !== o.title ? (l = !o.icon && n ? /* @__PURE__ */ i.jsx(ro, { sx: {
|
|
500
|
+
width: We - 7,
|
|
501
|
+
height: We - 7,
|
|
625
502
|
fontSize: 12
|
|
626
|
-
}, children:
|
|
627
|
-
let
|
|
628
|
-
e[7] !==
|
|
629
|
-
|
|
503
|
+
}, children: o.title.split(" ").slice(0, 2).map(Vo) }) : null, e[3] = n, e[4] = o.icon, e[5] = o.title, e[6] = l) : l = e[6];
|
|
504
|
+
let c;
|
|
505
|
+
e[7] !== s || e[8] !== l ? (c = /* @__PURE__ */ i.jsxs(co, { sx: a, children: [
|
|
506
|
+
s,
|
|
630
507
|
l
|
|
631
|
-
] }), e[7] =
|
|
632
|
-
let
|
|
633
|
-
e[10] !==
|
|
508
|
+
] }), e[7] = s, e[8] = l, e[9] = c) : c = e[9];
|
|
509
|
+
let m;
|
|
510
|
+
e[10] !== n || e[11] !== o.title ? (m = n ? /* @__PURE__ */ i.jsx(fo, { variant: "caption", sx: {
|
|
634
511
|
position: "absolute",
|
|
635
512
|
bottom: -18,
|
|
636
513
|
left: "50%",
|
|
@@ -641,24 +518,24 @@ const bo = () => {
|
|
|
641
518
|
whiteSpace: "nowrap",
|
|
642
519
|
overflow: "hidden",
|
|
643
520
|
textOverflow: "ellipsis",
|
|
644
|
-
maxWidth:
|
|
645
|
-
}, children:
|
|
646
|
-
let
|
|
647
|
-
return e[13] !== r || e[14] !==
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
] }), e[13] = r, e[14] =
|
|
521
|
+
maxWidth: le - 28
|
|
522
|
+
}, children: o.title }) : null, e[10] = n, e[11] = o.title, e[12] = m) : m = e[12];
|
|
523
|
+
let u;
|
|
524
|
+
return e[13] !== r || e[14] !== c || e[15] !== m ? (u = /* @__PURE__ */ i.jsxs(Ye, { sx: r, children: [
|
|
525
|
+
c,
|
|
526
|
+
m
|
|
527
|
+
] }), e[13] = r, e[14] = c, e[15] = m, e[16] = u) : u = e[16], u;
|
|
651
528
|
}
|
|
652
529
|
return null;
|
|
653
|
-
},
|
|
654
|
-
const e =
|
|
655
|
-
open:
|
|
656
|
-
children:
|
|
530
|
+
}, Qo = (t) => {
|
|
531
|
+
const e = R.c(7), {
|
|
532
|
+
open: o,
|
|
533
|
+
children: n
|
|
657
534
|
} = t;
|
|
658
535
|
let r;
|
|
659
536
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = {
|
|
660
537
|
position: "fixed",
|
|
661
|
-
left:
|
|
538
|
+
left: le,
|
|
662
539
|
pl: "2px",
|
|
663
540
|
pb: "10px"
|
|
664
541
|
}, e[0] = r) : r = e[0];
|
|
@@ -671,60 +548,60 @@ const bo = () => {
|
|
|
671
548
|
overflowY: "auto",
|
|
672
549
|
overscrollBehavior: "contain"
|
|
673
550
|
}, e[1] = a) : a = e[1];
|
|
674
|
-
let
|
|
675
|
-
e[2] !==
|
|
551
|
+
let s;
|
|
552
|
+
e[2] !== n ? (s = /* @__PURE__ */ i.jsx(Ye, { sx: r, children: /* @__PURE__ */ i.jsx(mo, { sx: a, children: n }) }), e[2] = n, e[3] = s) : s = e[3];
|
|
676
553
|
let l;
|
|
677
|
-
return e[4] !==
|
|
678
|
-
},
|
|
679
|
-
const e =
|
|
680
|
-
item:
|
|
681
|
-
isOpen:
|
|
554
|
+
return e[4] !== o || e[5] !== s ? (l = /* @__PURE__ */ i.jsx(Lt, { in: o, children: s }), e[4] = o, e[5] = s, e[6] = l) : l = e[6], l;
|
|
555
|
+
}, Xo = (t) => {
|
|
556
|
+
const e = R.c(56), {
|
|
557
|
+
item: o,
|
|
558
|
+
isOpen: n,
|
|
682
559
|
selected: r,
|
|
683
560
|
disabled: a,
|
|
684
|
-
collapsed:
|
|
561
|
+
collapsed: s,
|
|
685
562
|
isSidebarFullyExpanded: l,
|
|
686
|
-
isSidebarFullyCollapsed:
|
|
687
|
-
onClick:
|
|
688
|
-
renderNested:
|
|
689
|
-
onClose:
|
|
690
|
-
} = t,
|
|
691
|
-
let
|
|
692
|
-
e[0] !==
|
|
563
|
+
isSidebarFullyCollapsed: c,
|
|
564
|
+
onClick: m,
|
|
565
|
+
renderNested: u,
|
|
566
|
+
onClose: p
|
|
567
|
+
} = t, f = l === void 0 ? !0 : l, [d, y] = ae(null), g = `${o.to ?? o.title}`;
|
|
568
|
+
let h;
|
|
569
|
+
e[0] !== s || e[1] !== n || e[2] !== c || e[3] !== f || e[4] !== o.children ? (h = (U) => s && c && o.children ? {
|
|
693
570
|
fontSize: 18,
|
|
694
571
|
position: "absolute",
|
|
695
572
|
top: "41.5%",
|
|
696
573
|
right: "2px",
|
|
697
574
|
transform: "translateY(-50%) rotate(-90deg)"
|
|
698
|
-
} : !
|
|
575
|
+
} : !s && f && o.children ? {
|
|
699
576
|
ml: 0.5,
|
|
700
|
-
transform: `rotate(${
|
|
701
|
-
transition:
|
|
702
|
-
easing:
|
|
577
|
+
transform: `rotate(${n ? 0 : -90}deg)`,
|
|
578
|
+
transition: U.transitions.create("transform", {
|
|
579
|
+
easing: U.transitions.easing.sharp,
|
|
703
580
|
duration: 100
|
|
704
581
|
})
|
|
705
582
|
} : {
|
|
706
583
|
display: "none"
|
|
707
|
-
}, e[0] =
|
|
708
|
-
const
|
|
709
|
-
let
|
|
710
|
-
e[6] !==
|
|
584
|
+
}, e[0] = s, e[1] = n, e[2] = c, e[3] = f, e[4] = o.children, e[5] = h) : h = e[5];
|
|
585
|
+
const v = h, x = o.children && !s, S = s ? 60 : 48;
|
|
586
|
+
let b;
|
|
587
|
+
e[6] !== S ? (b = {
|
|
711
588
|
px: 1.4,
|
|
712
|
-
height:
|
|
713
|
-
}, e[6] =
|
|
714
|
-
let
|
|
715
|
-
e[8] !== a || e[9] !== r || e[10] !==
|
|
589
|
+
height: S
|
|
590
|
+
}, e[6] = S, e[7] = b) : b = e[7];
|
|
591
|
+
let k;
|
|
592
|
+
e[8] !== a || e[9] !== r || e[10] !== b ? (k = {
|
|
716
593
|
selected: r,
|
|
717
594
|
disabled: a,
|
|
718
|
-
sx:
|
|
719
|
-
}, e[8] = a, e[9] = r, e[10] =
|
|
720
|
-
const
|
|
721
|
-
let
|
|
722
|
-
e[12] !==
|
|
595
|
+
sx: b
|
|
596
|
+
}, e[8] = a, e[9] = r, e[10] = b, e[11] = k) : k = e[11];
|
|
597
|
+
const I = k;
|
|
598
|
+
let T;
|
|
599
|
+
e[12] !== s || e[13] !== o ? (T = /* @__PURE__ */ i.jsx(Go, { item: o, collapsed: s }), e[12] = s, e[13] = o, e[14] = T) : T = e[14];
|
|
723
600
|
let E;
|
|
724
|
-
e[15] !==
|
|
601
|
+
e[15] !== s || e[16] !== o.title ? (E = !s && /* @__PURE__ */ i.jsx(uo, { primary: o.title, slotProps: {
|
|
725
602
|
primary: {
|
|
726
603
|
noWrap: !0,
|
|
727
|
-
title:
|
|
604
|
+
title: o.title
|
|
728
605
|
}
|
|
729
606
|
}, sx: {
|
|
730
607
|
ml: 1.2,
|
|
@@ -735,93 +612,93 @@ const bo = () => {
|
|
|
735
612
|
overflow: "hidden",
|
|
736
613
|
textOverflow: "ellipsis"
|
|
737
614
|
}
|
|
738
|
-
} }), e[15] =
|
|
739
|
-
let
|
|
740
|
-
e[18] !==
|
|
741
|
-
let I;
|
|
742
|
-
e[21] !== $ || e[22] !== E || e[23] !== T ? (I = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
743
|
-
$,
|
|
744
|
-
E,
|
|
745
|
-
T
|
|
746
|
-
] }), e[21] = $, e[22] = E, e[23] = T, e[24] = I) : I = e[24];
|
|
747
|
-
const C = I;
|
|
615
|
+
} }), e[15] = s, e[16] = o.title, e[17] = E) : E = e[17];
|
|
616
|
+
let w;
|
|
617
|
+
e[18] !== v || e[19] !== o.children ? (w = o.children ? /* @__PURE__ */ i.jsx(so, { sx: v }) : null, e[18] = v, e[19] = o.children, e[20] = w) : w = e[20];
|
|
748
618
|
let L;
|
|
749
|
-
e[
|
|
619
|
+
e[21] !== T || e[22] !== E || e[23] !== w ? (L = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
|
|
620
|
+
T,
|
|
621
|
+
E,
|
|
622
|
+
w
|
|
623
|
+
] }), e[21] = T, e[22] = E, e[23] = w, e[24] = L) : L = e[24];
|
|
624
|
+
const A = L;
|
|
625
|
+
let _;
|
|
626
|
+
e[25] !== s || e[26] !== o.children || e[27] !== g ? (_ = o.children && s ? {
|
|
750
627
|
onMouseEnter: () => {
|
|
751
|
-
|
|
628
|
+
y(g);
|
|
752
629
|
},
|
|
753
630
|
onMouseLeave: () => {
|
|
754
|
-
|
|
631
|
+
y(null);
|
|
755
632
|
}
|
|
756
|
-
} : {}, e[25] =
|
|
633
|
+
} : {}, e[25] = s, e[26] = o.children, e[27] = g, e[28] = _) : _ = e[28];
|
|
757
634
|
let P;
|
|
758
635
|
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = {
|
|
759
636
|
py: 0,
|
|
760
637
|
px: 1,
|
|
761
638
|
overflowX: "hidden"
|
|
762
639
|
}, e[29] = P) : P = e[29];
|
|
763
|
-
let A;
|
|
764
|
-
e[30] !== C || e[31] !== w || e[32] !== n || e[33] !== f || e[34] !== h || e[35] !== x ? (A = x ? /* @__PURE__ */ s.jsx(So, { ...w, onClick: () => f?.(n), children: C }) : /* @__PURE__ */ s.jsx(ko, { ...w, to: n.to, href: n.href, params: n.params, search: n.search, onClick: h, children: C }), e[30] = C, e[31] = w, e[32] = n, e[33] = f, e[34] = h, e[35] = x, e[36] = A) : A = e[36];
|
|
765
|
-
let _;
|
|
766
|
-
e[37] !== i || e[38] !== c || e[39] !== n.children || e[40] !== b || e[41] !== d ? (_ = n.children && i ? /* @__PURE__ */ s.jsx(Io, { open: b === c, children: d?.(n.children) }) : null, e[37] = i, e[38] = c, e[39] = n.children, e[40] = b, e[41] = d, e[42] = _) : _ = e[42];
|
|
767
|
-
let j;
|
|
768
|
-
e[43] !== L || e[44] !== A || e[45] !== _ ? (j = /* @__PURE__ */ s.jsxs(Pn, { ...L, sx: P, children: [
|
|
769
|
-
A,
|
|
770
|
-
_
|
|
771
|
-
] }), e[43] = L, e[44] = A, e[45] = _, e[46] = j) : j = e[46];
|
|
772
|
-
const M = j;
|
|
773
640
|
let D;
|
|
774
|
-
e[
|
|
775
|
-
let
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
641
|
+
e[30] !== A || e[31] !== I || e[32] !== o || e[33] !== m || e[34] !== p || e[35] !== x ? (D = x ? /* @__PURE__ */ i.jsx(Ko, { ...I, onClick: () => m?.(o), children: A }) : /* @__PURE__ */ i.jsx(Yo, { ...I, to: o.to, href: o.href, params: o.params, search: o.search, onClick: p, children: A }), e[30] = A, e[31] = I, e[32] = o, e[33] = m, e[34] = p, e[35] = x, e[36] = D) : D = e[36];
|
|
642
|
+
let $;
|
|
643
|
+
e[37] !== s || e[38] !== d || e[39] !== o.children || e[40] !== g || e[41] !== u ? ($ = o.children && s ? /* @__PURE__ */ i.jsx(Qo, { open: g === d, children: u?.(o.children) }) : null, e[37] = s, e[38] = d, e[39] = o.children, e[40] = g, e[41] = u, e[42] = $) : $ = e[42];
|
|
644
|
+
let j;
|
|
645
|
+
e[43] !== _ || e[44] !== D || e[45] !== $ ? (j = /* @__PURE__ */ i.jsxs(ao, { ..._, sx: P, children: [
|
|
646
|
+
D,
|
|
647
|
+
$
|
|
648
|
+
] }), e[43] = _, e[44] = D, e[45] = $, e[46] = j) : j = e[46];
|
|
649
|
+
const C = j;
|
|
650
|
+
let M;
|
|
651
|
+
e[47] !== s || e[48] !== n || e[49] !== o.children || e[50] !== u ? (M = o.children && !s ? /* @__PURE__ */ i.jsx(It, { in: n, timeout: "auto", unmountOnExit: !0, children: u?.(o.children) }) : null, e[47] = s, e[48] = n, e[49] = o.children, e[50] = u, e[51] = M) : M = e[51];
|
|
652
|
+
let N;
|
|
653
|
+
return e[52] !== o.to || e[53] !== C || e[54] !== M ? (N = /* @__PURE__ */ i.jsxs(Pe, { children: [
|
|
654
|
+
C,
|
|
655
|
+
M
|
|
656
|
+
] }, o.to), e[52] = o.to, e[53] = C, e[54] = M, e[55] = N) : N = e[55], N;
|
|
780
657
|
};
|
|
781
|
-
function
|
|
658
|
+
function Vo(t) {
|
|
782
659
|
return t.charAt(0).toUpperCase();
|
|
783
660
|
}
|
|
784
|
-
const
|
|
785
|
-
const e =
|
|
786
|
-
subNavigation:
|
|
787
|
-
depth:
|
|
661
|
+
const Zo = (t) => !("kind" in t), Jo = (t) => "kind" in t && t.kind === "divider", qe = (t) => "kind" in t && t.kind === "header", mt = (t) => {
|
|
662
|
+
const e = R.c(30), {
|
|
663
|
+
subNavigation: o,
|
|
664
|
+
depth: n,
|
|
788
665
|
collapsed: r,
|
|
789
666
|
isPopover: a,
|
|
790
|
-
isSidebarFullyExpanded:
|
|
667
|
+
isSidebarFullyExpanded: s,
|
|
791
668
|
isSidebarFullyCollapsed: l,
|
|
792
|
-
expandedWidth:
|
|
793
|
-
renderItem:
|
|
794
|
-
activePath:
|
|
795
|
-
onNavigate:
|
|
796
|
-
onClose:
|
|
797
|
-
} = t,
|
|
798
|
-
let
|
|
799
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
800
|
-
const [
|
|
801
|
-
let x,
|
|
669
|
+
expandedWidth: c,
|
|
670
|
+
renderItem: m,
|
|
671
|
+
activePath: u,
|
|
672
|
+
onNavigate: p,
|
|
673
|
+
onClose: f
|
|
674
|
+
} = t, d = n === void 0 ? 0 : n, y = s === void 0 ? !0 : s;
|
|
675
|
+
let g;
|
|
676
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = [], e[0] = g) : g = e[0];
|
|
677
|
+
const [h, v] = ae(g);
|
|
678
|
+
let x, S;
|
|
802
679
|
e[1] !== r ? (x = () => {
|
|
803
|
-
r &&
|
|
804
|
-
},
|
|
805
|
-
let
|
|
806
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
807
|
-
const
|
|
808
|
-
let
|
|
809
|
-
e[5] !==
|
|
810
|
-
const
|
|
680
|
+
r && v([]);
|
|
681
|
+
}, S = [r], e[1] = r, e[2] = x, e[3] = S) : (x = e[2], S = e[3]), at(x, S);
|
|
682
|
+
let b;
|
|
683
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = (w) => v((L) => L.includes(w) ? L.filter((A) => A !== w) : [...L, w]), e[4] = b) : b = e[4];
|
|
684
|
+
const k = b;
|
|
685
|
+
let I;
|
|
686
|
+
e[5] !== u || e[6] !== r || e[7] !== d || e[8] !== c || e[9] !== f || e[10] !== p ? (I = (w) => /* @__PURE__ */ i.jsx(mt, { subNavigation: w, depth: d + 1, isPopover: r, expandedWidth: c, activePath: u, onNavigate: p, onClose: f }), e[5] = u, e[6] = r, e[7] = d, e[8] = c, e[9] = f, e[10] = p, e[11] = I) : I = e[11];
|
|
687
|
+
const T = I;
|
|
811
688
|
let E;
|
|
812
|
-
if (e[12] !==
|
|
813
|
-
const
|
|
814
|
-
let
|
|
815
|
-
e[24] !==
|
|
689
|
+
if (e[12] !== u || e[13] !== r || e[14] !== d || e[15] !== a || e[16] !== l || e[17] !== y || e[18] !== f || e[19] !== h || e[20] !== m || e[21] !== T || e[22] !== o) {
|
|
690
|
+
const w = o.filter(en), L = a && d === 1 ? 0.5 : 0, A = d === 0 && !a ? 4 : 0.5, _ = (a ? 1 : 2) * (a ? d - 1 : d), P = a && d === 1 ? 240 : "auto", D = r ? le : "auto";
|
|
691
|
+
let $;
|
|
692
|
+
e[24] !== A || e[25] !== _ || e[26] !== P || e[27] !== D || e[28] !== L ? ($ = {
|
|
816
693
|
padding: 0,
|
|
817
|
-
mt:
|
|
818
|
-
mb:
|
|
819
|
-
pl:
|
|
694
|
+
mt: L,
|
|
695
|
+
mb: A,
|
|
696
|
+
pl: _,
|
|
820
697
|
minWidth: P,
|
|
821
|
-
width:
|
|
822
|
-
}, e[24] =
|
|
823
|
-
if (
|
|
824
|
-
return /* @__PURE__ */
|
|
698
|
+
width: D
|
|
699
|
+
}, e[24] = A, e[25] = _, e[26] = P, e[27] = D, e[28] = L, e[29] = $) : $ = e[29], E = /* @__PURE__ */ i.jsx(no, { sx: $, children: w.map((j, C) => {
|
|
700
|
+
if (qe(j))
|
|
701
|
+
return /* @__PURE__ */ i.jsx(io, { sx: {
|
|
825
702
|
fontSize: 12,
|
|
826
703
|
fontWeight: "700",
|
|
827
704
|
height: r ? 0 : 40,
|
|
@@ -832,104 +709,95 @@ const To = (t) => !("kind" in t), Co = (t) => "kind" in t && t.kind === "divider
|
|
|
832
709
|
zIndex: 2,
|
|
833
710
|
bgcolor: "transparent",
|
|
834
711
|
position: "static"
|
|
835
|
-
}, children: j.title }, `subheader-${
|
|
836
|
-
if (
|
|
837
|
-
const
|
|
838
|
-
return /* @__PURE__ */
|
|
712
|
+
}, children: j.title }, `subheader-${d}-${C}`);
|
|
713
|
+
if (Jo(j)) {
|
|
714
|
+
const U = w[C + 1];
|
|
715
|
+
return /* @__PURE__ */ i.jsx("li", { children: /* @__PURE__ */ i.jsx(oo, { sx: {
|
|
839
716
|
mx: 1,
|
|
840
717
|
mt: 1,
|
|
841
|
-
mb:
|
|
842
|
-
} }) }, `divider-${
|
|
718
|
+
mb: qe(U) && !r ? 0 : 1
|
|
719
|
+
} }) }, `divider-${d}-${C}`);
|
|
843
720
|
}
|
|
844
|
-
if (!
|
|
721
|
+
if (!Zo(j))
|
|
845
722
|
return null;
|
|
846
|
-
const
|
|
847
|
-
return
|
|
723
|
+
const M = `item-${d}-${C}`, N = `${d}-${C}-${j.title}`;
|
|
724
|
+
return m ? /* @__PURE__ */ i.jsx(Pe, { children: m(j, {
|
|
848
725
|
collapsed: !!r
|
|
849
|
-
}) },
|
|
850
|
-
}) }), e[12] =
|
|
726
|
+
}) }, M) : /* @__PURE__ */ i.jsx(Xo, { item: j, isOpen: h.includes(N), selected: u === j.to, collapsed: r, isSidebarFullyExpanded: y, isSidebarFullyCollapsed: l, onClick: j.children && !r ? () => k(N) : void 0, renderNested: T, onClose: f }, M);
|
|
727
|
+
}) }), e[12] = u, e[13] = r, e[14] = d, e[15] = a, e[16] = l, e[17] = y, e[18] = f, e[19] = h, e[20] = m, e[21] = T, e[22] = o, e[23] = E;
|
|
851
728
|
} else
|
|
852
729
|
E = e[23];
|
|
853
730
|
return E;
|
|
854
731
|
};
|
|
855
|
-
function
|
|
732
|
+
function en(t) {
|
|
856
733
|
return !t.hidden;
|
|
857
734
|
}
|
|
858
|
-
const
|
|
859
|
-
const e =
|
|
860
|
-
navigation:
|
|
861
|
-
expanded:
|
|
735
|
+
const le = 84, He = 320, st = 64, tn = (t) => {
|
|
736
|
+
const e = R.c(29), {
|
|
737
|
+
navigation: o,
|
|
738
|
+
expanded: n,
|
|
862
739
|
setExpanded: r
|
|
863
|
-
} = t, a =
|
|
740
|
+
} = t, a = lt(), s = Yt(), l = eo();
|
|
741
|
+
let c;
|
|
742
|
+
e[0] !== l.breakpoints ? (c = l.breakpoints.up("sm"), e[0] = l.breakpoints, e[1] = c) : c = e[1];
|
|
743
|
+
const m = _t(c);
|
|
864
744
|
let u;
|
|
865
|
-
e[
|
|
866
|
-
const f = tn(u);
|
|
867
|
-
let d;
|
|
868
|
-
e[2] !== o || e[3] !== a || e[4] !== n || e[5] !== i.location.pathname || e[6] !== r || e[7] !== f ? (d = (g) => /* @__PURE__ */ s.jsx(ct, { component: "nav", sx: {
|
|
745
|
+
e[2] !== n || e[3] !== a || e[4] !== o || e[5] !== s.location.pathname || e[6] !== r || e[7] !== m ? (u = (h) => /* @__PURE__ */ i.jsx(Ye, { component: "nav", sx: {
|
|
869
746
|
height: "100%",
|
|
870
747
|
display: "flex",
|
|
871
748
|
flexDirection: "column",
|
|
872
749
|
justifyContent: "space-between",
|
|
873
750
|
overflow: "auto",
|
|
874
|
-
scrollbarGutter:
|
|
751
|
+
scrollbarGutter: h ? "stable" : "auto",
|
|
875
752
|
overflowX: "hidden",
|
|
876
|
-
pt:
|
|
877
|
-
}, children: /* @__PURE__ */
|
|
878
|
-
const
|
|
879
|
-
if (
|
|
880
|
-
const
|
|
753
|
+
pt: o[0] && qe(o[0]) && !h ? 0 : 2
|
|
754
|
+
}, children: /* @__PURE__ */ i.jsx(mt, { subNavigation: o, collapsed: h, isSidebarFullyExpanded: n, isSidebarFullyCollapsed: !n, expandedWidth: He, activePath: s.location.pathname, onNavigate: a, onClose: m ? void 0 : () => r(!1) }) }), e[2] = n, e[3] = a, e[4] = o, e[5] = s.location.pathname, e[6] = r, e[7] = m, e[8] = u) : u = e[8];
|
|
755
|
+
const p = u;
|
|
756
|
+
if (m) {
|
|
757
|
+
const h = n ? He : le, v = n ? He : le;
|
|
881
758
|
let x;
|
|
882
|
-
e[9] !==
|
|
759
|
+
e[9] !== v ? (x = {
|
|
883
760
|
position: "absolute",
|
|
884
|
-
top: `${
|
|
885
|
-
height: `calc(100% - ${
|
|
886
|
-
width:
|
|
761
|
+
top: `${st}px`,
|
|
762
|
+
height: `calc(100% - ${st}px)`,
|
|
763
|
+
width: v,
|
|
887
764
|
borderTop: "1px solid",
|
|
888
765
|
borderColor: "var(--mui-palette-divider)"
|
|
889
|
-
}, e[9] =
|
|
890
|
-
let
|
|
891
|
-
e[11] !==
|
|
892
|
-
width:
|
|
766
|
+
}, e[9] = v, e[10] = x) : x = e[10];
|
|
767
|
+
let S;
|
|
768
|
+
e[11] !== h || e[12] !== x ? (S = {
|
|
769
|
+
width: h,
|
|
893
770
|
"& .MuiDrawer-paper": x
|
|
894
|
-
}, e[11] =
|
|
895
|
-
const
|
|
896
|
-
let
|
|
897
|
-
e[14] !==
|
|
898
|
-
let
|
|
899
|
-
return e[17] !==
|
|
771
|
+
}, e[11] = h, e[12] = x, e[13] = S) : S = e[13];
|
|
772
|
+
const b = !n;
|
|
773
|
+
let k;
|
|
774
|
+
e[14] !== p || e[15] !== b ? (k = p(b), e[14] = p, e[15] = b, e[16] = k) : k = e[16];
|
|
775
|
+
let I;
|
|
776
|
+
return e[17] !== S || e[18] !== k ? (I = /* @__PURE__ */ i.jsx(Ze, { variant: "permanent", sx: S, children: k }), e[17] = S, e[18] = k, e[19] = I) : I = e[19], I;
|
|
900
777
|
}
|
|
901
|
-
let
|
|
902
|
-
e[20] !== r ? (
|
|
903
|
-
let
|
|
904
|
-
e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
778
|
+
let f;
|
|
779
|
+
e[20] !== r ? (f = () => r(!1), e[20] = r, e[21] = f) : f = e[21];
|
|
780
|
+
let d;
|
|
781
|
+
e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
905
782
|
"& .MuiDrawer-paper": {
|
|
906
783
|
width: "min(280px, calc(100vw - 56px))"
|
|
907
784
|
}
|
|
908
|
-
}, e[22] =
|
|
909
|
-
let
|
|
910
|
-
e[23] !==
|
|
911
|
-
let
|
|
912
|
-
return e[25] !==
|
|
913
|
-
},
|
|
785
|
+
}, e[22] = d) : d = e[22];
|
|
786
|
+
let y;
|
|
787
|
+
e[23] !== p ? (y = p(!1), e[23] = p, e[24] = y) : y = e[24];
|
|
788
|
+
let g;
|
|
789
|
+
return e[25] !== n || e[26] !== f || e[27] !== y ? (g = /* @__PURE__ */ i.jsx(Ze, { open: n, onClose: f, sx: d, children: y }), e[25] = n, e[26] = f, e[27] = y, e[28] = g) : g = e[28], g;
|
|
790
|
+
}, on = "graph", ft = Lo.create({
|
|
914
791
|
baseURL: "https://graph.microsoft.com/v1.0"
|
|
915
792
|
});
|
|
916
|
-
|
|
793
|
+
ft.interceptors.request.use(async (t) => {
|
|
917
794
|
const e = await Qt("graph");
|
|
918
795
|
return t.headers.set("Authorization", `Bearer ${e}`), t;
|
|
919
796
|
});
|
|
920
|
-
const
|
|
921
|
-
|
|
922
|
-
queryKey: [
|
|
923
|
-
queryFn: async () => await
|
|
924
|
-
method: "GET",
|
|
925
|
-
url: "/me?$select=displayName,jobTitle"
|
|
926
|
-
}).then((t) => t.data),
|
|
927
|
-
staleTime: 1 / 0,
|
|
928
|
-
gcTime: 1 / 0
|
|
929
|
-
}),
|
|
930
|
-
sessionUserPhoto: () => gt({
|
|
931
|
-
queryKey: [Tt, "me", "photo"],
|
|
932
|
-
queryFn: async () => await rt.request({
|
|
797
|
+
const nn = {
|
|
798
|
+
sessionUserPhoto: () => ko({
|
|
799
|
+
queryKey: [on, "me", "photo"],
|
|
800
|
+
queryFn: async () => await ft.request({
|
|
933
801
|
method: "GET",
|
|
934
802
|
url: "/me/photo/$value",
|
|
935
803
|
responseType: "blob"
|
|
@@ -938,185 +806,176 @@ const it = {
|
|
|
938
806
|
gcTime: 1 / 0,
|
|
939
807
|
select: (t) => URL.createObjectURL(t)
|
|
940
808
|
})
|
|
941
|
-
},
|
|
942
|
-
const t =
|
|
943
|
-
t:
|
|
809
|
+
}, rt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), sn = () => {
|
|
810
|
+
const t = R.c(106), [e, o] = ae(), [n, r] = ae("settings"), a = !!e, {
|
|
811
|
+
t: s,
|
|
944
812
|
i18n: l
|
|
945
|
-
} =
|
|
946
|
-
mode:
|
|
947
|
-
setMode:
|
|
948
|
-
} =
|
|
949
|
-
instance:
|
|
950
|
-
} =
|
|
951
|
-
let
|
|
952
|
-
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
953
|
-
const
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
let v;
|
|
957
|
-
t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = it.sessionUserDetail(), t[1] = v) : v = t[1];
|
|
958
|
-
let b;
|
|
959
|
-
t[2] !== a ? (b = {
|
|
960
|
-
...v,
|
|
961
|
-
enabled: a
|
|
962
|
-
}, t[2] = a, t[3] = b) : b = t[3];
|
|
813
|
+
} = bt(), {
|
|
814
|
+
mode: c,
|
|
815
|
+
setMode: m
|
|
816
|
+
} = Ct(), {
|
|
817
|
+
instance: u
|
|
818
|
+
} = Wt(), p = Ht();
|
|
819
|
+
let f;
|
|
820
|
+
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = Xt(), t[0] = f) : f = t[0];
|
|
821
|
+
const d = f;
|
|
822
|
+
let y;
|
|
823
|
+
t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = nn.sessionUserPhoto(), t[1] = y) : y = t[1];
|
|
963
824
|
const {
|
|
964
825
|
data: g
|
|
965
|
-
} =
|
|
966
|
-
let
|
|
967
|
-
if (t[
|
|
968
|
-
const
|
|
826
|
+
} = Io(y);
|
|
827
|
+
let h, v, x, S, b, k, I;
|
|
828
|
+
if (t[2] !== l || t[3] !== c || t[4] !== m || t[5] !== s) {
|
|
829
|
+
const N = (Array.isArray(l.options.supportedLngs) ? l.options.supportedLngs : []).filter(rn), U = new Intl.DisplayNames([l.language], {
|
|
969
830
|
type: "language"
|
|
970
831
|
});
|
|
971
|
-
let
|
|
972
|
-
t[
|
|
973
|
-
let
|
|
974
|
-
t[
|
|
832
|
+
let z;
|
|
833
|
+
t[13] !== s ? (z = s("Layout.Light"), t[13] = s, t[14] = z) : z = t[14];
|
|
834
|
+
let W;
|
|
835
|
+
t[15] !== z ? (W = {
|
|
975
836
|
mode: "light",
|
|
976
|
-
icon:
|
|
977
|
-
label:
|
|
978
|
-
}, t[
|
|
979
|
-
let
|
|
980
|
-
t[
|
|
981
|
-
let
|
|
982
|
-
t[
|
|
837
|
+
icon: vo,
|
|
838
|
+
label: z
|
|
839
|
+
}, t[15] = z, t[16] = W) : W = t[16];
|
|
840
|
+
let H;
|
|
841
|
+
t[17] !== s ? (H = s("Layout.Dark"), t[17] = s, t[18] = H) : H = t[18];
|
|
842
|
+
let q;
|
|
843
|
+
t[19] !== H ? (q = {
|
|
983
844
|
mode: "dark",
|
|
984
|
-
icon:
|
|
985
|
-
label:
|
|
986
|
-
}, t[
|
|
987
|
-
let
|
|
988
|
-
t[
|
|
989
|
-
let
|
|
990
|
-
t[
|
|
845
|
+
icon: xo,
|
|
846
|
+
label: H
|
|
847
|
+
}, t[19] = H, t[20] = q) : q = t[20];
|
|
848
|
+
let K;
|
|
849
|
+
t[21] !== s ? (K = s("Layout.System"), t[21] = s, t[22] = K) : K = t[22];
|
|
850
|
+
let Y;
|
|
851
|
+
t[23] !== K ? (Y = {
|
|
991
852
|
mode: "system",
|
|
992
|
-
icon:
|
|
993
|
-
label:
|
|
994
|
-
}, t[
|
|
995
|
-
let
|
|
996
|
-
t[
|
|
997
|
-
const
|
|
998
|
-
let
|
|
999
|
-
t[
|
|
1000
|
-
let
|
|
1001
|
-
t[
|
|
1002
|
-
|
|
1003
|
-
}, t[
|
|
1004
|
-
let
|
|
1005
|
-
t[
|
|
1006
|
-
const
|
|
1007
|
-
let
|
|
1008
|
-
t[
|
|
853
|
+
icon: wo,
|
|
854
|
+
label: K
|
|
855
|
+
}, t[23] = K, t[24] = Y) : Y = t[24];
|
|
856
|
+
let ce;
|
|
857
|
+
t[25] !== W || t[26] !== q || t[27] !== Y ? (ce = [W, q, Y], t[25] = W, t[26] = q, t[27] = Y, t[28] = ce) : ce = t[28];
|
|
858
|
+
const de = ce;
|
|
859
|
+
let ue;
|
|
860
|
+
t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ue = (O) => o(O.currentTarget), t[29] = ue) : ue = t[29], x = ue;
|
|
861
|
+
let me;
|
|
862
|
+
t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (me = () => {
|
|
863
|
+
o(void 0), setTimeout(() => r("settings"), 300);
|
|
864
|
+
}, t[30] = me) : me = t[30], v = me;
|
|
865
|
+
let fe;
|
|
866
|
+
t[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (fe = (O) => () => r(O), t[31] = fe) : fe = t[31];
|
|
867
|
+
const pe = fe;
|
|
868
|
+
let he;
|
|
869
|
+
t[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (he = {
|
|
1009
870
|
backgroundColor: "transparent"
|
|
1010
|
-
}, t[
|
|
1011
|
-
let
|
|
1012
|
-
t[
|
|
1013
|
-
let
|
|
1014
|
-
t[
|
|
1015
|
-
let
|
|
1016
|
-
t[
|
|
871
|
+
}, t[32] = he) : he = t[32];
|
|
872
|
+
let G;
|
|
873
|
+
t[33] !== s ? (G = s("Layout.Settings"), t[33] = s, t[34] = G) : G = t[34];
|
|
874
|
+
let Q;
|
|
875
|
+
t[35] !== G ? (Q = /* @__PURE__ */ i.jsx(Be, { sx: he, children: G }), t[35] = G, t[36] = Q) : Q = t[36];
|
|
876
|
+
let ge, xe;
|
|
877
|
+
t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ge = pe("theme"), xe = {
|
|
1017
878
|
py: 0.3
|
|
1018
|
-
}, t[
|
|
1019
|
-
let
|
|
1020
|
-
t[
|
|
1021
|
-
let
|
|
1022
|
-
t[
|
|
1023
|
-
const
|
|
1024
|
-
let
|
|
1025
|
-
t[
|
|
1026
|
-
let
|
|
1027
|
-
t[
|
|
1028
|
-
let
|
|
1029
|
-
t[
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
] }), t[
|
|
1034
|
-
let
|
|
1035
|
-
t[
|
|
879
|
+
}, t[37] = ge, t[38] = xe) : (ge = t[37], xe = t[38]);
|
|
880
|
+
let ye;
|
|
881
|
+
t[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ye = /* @__PURE__ */ i.jsx(ie, { children: /* @__PURE__ */ i.jsx(go, {}) }), t[39] = ye) : ye = t[39];
|
|
882
|
+
let X;
|
|
883
|
+
t[40] !== s ? (X = s("Layout.Appearance"), t[40] = s, t[41] = X) : X = t[41];
|
|
884
|
+
const Ne = de.find((O) => O.mode === c)?.label;
|
|
885
|
+
let V;
|
|
886
|
+
t[42] !== X || t[43] !== Ne ? (V = /* @__PURE__ */ i.jsx(F, { primary: X, secondary: Ne }), t[42] = X, t[43] = Ne, t[44] = V) : V = t[44];
|
|
887
|
+
let ve;
|
|
888
|
+
t[45] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ve = /* @__PURE__ */ i.jsx(et, {}), t[45] = ve) : ve = t[45];
|
|
889
|
+
let Z;
|
|
890
|
+
t[46] !== V ? (Z = /* @__PURE__ */ i.jsxs(ne, { onClick: ge, sx: xe, children: [
|
|
891
|
+
ye,
|
|
892
|
+
V,
|
|
893
|
+
ve
|
|
894
|
+
] }), t[46] = V, t[47] = Z) : Z = t[47];
|
|
895
|
+
let Se, be;
|
|
896
|
+
t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = pe("language"), be = {
|
|
1036
897
|
py: 0.3
|
|
1037
|
-
}, t[
|
|
1038
|
-
let
|
|
1039
|
-
t[
|
|
1040
|
-
let
|
|
1041
|
-
t[
|
|
1042
|
-
let
|
|
1043
|
-
t[
|
|
1044
|
-
const
|
|
1045
|
-
|
|
1046
|
-
/* @__PURE__ */
|
|
1047
|
-
|
|
898
|
+
}, t[48] = Se, t[49] = be) : (Se = t[48], be = t[49]);
|
|
899
|
+
let we;
|
|
900
|
+
t[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (we = /* @__PURE__ */ i.jsx(ie, { children: /* @__PURE__ */ i.jsx(jo, {}) }), t[50] = we) : we = t[50];
|
|
901
|
+
let je;
|
|
902
|
+
t[51] !== s ? (je = s("Layout.Language"), t[51] = s, t[52] = je) : je = t[52];
|
|
903
|
+
let ke;
|
|
904
|
+
t[53] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ke = /* @__PURE__ */ i.jsx(et, {}), t[53] = ke) : ke = t[53];
|
|
905
|
+
const Ue = /* @__PURE__ */ i.jsxs(ne, { onClick: Se, sx: be, children: [
|
|
906
|
+
we,
|
|
907
|
+
/* @__PURE__ */ i.jsx(F, { primary: je, secondary: rt(U.of(l.language)) }),
|
|
908
|
+
ke
|
|
1048
909
|
] });
|
|
1049
|
-
let
|
|
1050
|
-
t[
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
] }), t[
|
|
1054
|
-
let
|
|
1055
|
-
t[
|
|
910
|
+
let Ie;
|
|
911
|
+
t[54] !== Q || t[55] !== Z || t[56] !== Ue ? (Ie = /* @__PURE__ */ i.jsxs(Me, { component: "nav", subheader: Q, children: [
|
|
912
|
+
Z,
|
|
913
|
+
Ue
|
|
914
|
+
] }), t[54] = Q, t[55] = Z, t[56] = Ue, t[57] = Ie) : Ie = t[57], S = Ie;
|
|
915
|
+
let Le, _e;
|
|
916
|
+
t[58] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Le = pe("settings"), _e = {
|
|
1056
917
|
backgroundColor: "transparent",
|
|
1057
918
|
display: "flex",
|
|
1058
919
|
alignItems: "center",
|
|
1059
920
|
px: 1,
|
|
1060
921
|
cursor: "pointer"
|
|
1061
|
-
}, t[
|
|
1062
|
-
let
|
|
1063
|
-
t[
|
|
922
|
+
}, t[58] = Le, t[59] = _e) : (Le = t[58], _e = t[59]);
|
|
923
|
+
let Ce;
|
|
924
|
+
t[60] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ce = /* @__PURE__ */ i.jsx(Ee, { size: "small", sx: {
|
|
1064
925
|
mr: 0.5
|
|
1065
|
-
}, children: /* @__PURE__ */
|
|
1066
|
-
let
|
|
1067
|
-
t[
|
|
1068
|
-
let
|
|
1069
|
-
t[
|
|
1070
|
-
|
|
926
|
+
}, children: /* @__PURE__ */ i.jsx(Je, { fontSize: "small" }) }), t[60] = Ce) : Ce = t[60];
|
|
927
|
+
let J;
|
|
928
|
+
t[61] !== s ? (J = s("Layout.Appearance"), t[61] = s, t[62] = J) : J = t[62];
|
|
929
|
+
let ee;
|
|
930
|
+
t[63] !== J ? (ee = /* @__PURE__ */ i.jsxs(Be, { onClick: Le, sx: _e, children: [
|
|
931
|
+
Ce,
|
|
1071
932
|
" ",
|
|
1072
|
-
|
|
1073
|
-
] }), t[
|
|
1074
|
-
let
|
|
1075
|
-
t[
|
|
933
|
+
J
|
|
934
|
+
] }), t[63] = J, t[64] = ee) : ee = t[64];
|
|
935
|
+
let te;
|
|
936
|
+
t[65] !== de || t[66] !== c || t[67] !== m ? (te = de.map((O) => {
|
|
1076
937
|
const {
|
|
1077
|
-
mode:
|
|
1078
|
-
icon:
|
|
1079
|
-
label:
|
|
1080
|
-
} =
|
|
1081
|
-
return /* @__PURE__ */
|
|
1082
|
-
|
|
1083
|
-
}, selected:
|
|
1084
|
-
/* @__PURE__ */
|
|
1085
|
-
/* @__PURE__ */
|
|
1086
|
-
] },
|
|
1087
|
-
}), t[
|
|
1088
|
-
let
|
|
1089
|
-
t[
|
|
1090
|
-
let
|
|
1091
|
-
t[
|
|
938
|
+
mode: Fe,
|
|
939
|
+
icon: gt,
|
|
940
|
+
label: xt
|
|
941
|
+
} = O;
|
|
942
|
+
return /* @__PURE__ */ i.jsxs(ne, { onClick: () => {
|
|
943
|
+
m(Fe), v();
|
|
944
|
+
}, selected: c === Fe, children: [
|
|
945
|
+
/* @__PURE__ */ i.jsx(ie, { children: /* @__PURE__ */ i.jsx(gt, {}) }),
|
|
946
|
+
/* @__PURE__ */ i.jsx(F, { primary: xt })
|
|
947
|
+
] }, Fe);
|
|
948
|
+
}), t[65] = de, t[66] = c, t[67] = m, t[68] = te) : te = t[68];
|
|
949
|
+
let Te;
|
|
950
|
+
t[69] !== ee || t[70] !== te ? (Te = /* @__PURE__ */ i.jsx(Me, { subheader: ee, children: te }), t[69] = ee, t[70] = te, t[71] = Te) : Te = t[71], I = Te, h = Me;
|
|
951
|
+
let Ae, $e;
|
|
952
|
+
t[72] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ae = pe("settings"), $e = {
|
|
1092
953
|
backgroundColor: "transparent",
|
|
1093
954
|
display: "flex",
|
|
1094
955
|
alignItems: "center",
|
|
1095
956
|
px: 1,
|
|
1096
957
|
cursor: "pointer"
|
|
1097
|
-
}, t[
|
|
1098
|
-
let
|
|
1099
|
-
t[
|
|
958
|
+
}, t[72] = Ae, t[73] = $e) : (Ae = t[72], $e = t[73]);
|
|
959
|
+
let De;
|
|
960
|
+
t[74] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (De = /* @__PURE__ */ i.jsx(Ee, { size: "small", sx: {
|
|
1100
961
|
mr: 0.5
|
|
1101
|
-
}, children: /* @__PURE__ */
|
|
1102
|
-
let
|
|
1103
|
-
t[
|
|
1104
|
-
|
|
962
|
+
}, children: /* @__PURE__ */ i.jsx(Je, { fontSize: "small" }) }), t[74] = De) : De = t[74];
|
|
963
|
+
let oe;
|
|
964
|
+
t[75] !== s ? (oe = s("Layout.Language"), t[75] = s, t[76] = oe) : oe = t[76], t[77] !== oe ? (b = /* @__PURE__ */ i.jsxs(Be, { onClick: Ae, sx: $e, children: [
|
|
965
|
+
De,
|
|
1105
966
|
" ",
|
|
1106
|
-
|
|
1107
|
-
] }), t[
|
|
1108
|
-
/* @__PURE__ */
|
|
1109
|
-
/* @__PURE__ */
|
|
1110
|
-
] },
|
|
967
|
+
oe
|
|
968
|
+
] }), t[77] = oe, t[78] = b) : b = t[78], k = N.map((O) => /* @__PURE__ */ i.jsxs(ne, { onClick: () => l.changeLanguage(O).finally(() => v()), selected: l.resolvedLanguage === O, children: [
|
|
969
|
+
/* @__PURE__ */ i.jsx(ie, { children: l.resolvedLanguage === O && /* @__PURE__ */ i.jsx(yo, {}) }),
|
|
970
|
+
/* @__PURE__ */ i.jsx(F, { primary: rt(U.of(O)) })
|
|
971
|
+
] }, O)), t[2] = l, t[3] = c, t[4] = m, t[5] = s, t[6] = h, t[7] = v, t[8] = x, t[9] = S, t[10] = b, t[11] = k, t[12] = I;
|
|
1111
972
|
} else
|
|
1112
|
-
|
|
1113
|
-
let
|
|
1114
|
-
t[
|
|
1115
|
-
const
|
|
1116
|
-
let
|
|
1117
|
-
t[
|
|
1118
|
-
let C;
|
|
1119
|
-
t[87] !== c ? (C = c ? /* @__PURE__ */ s.jsx(sn, { src: c, sx: {
|
|
973
|
+
h = t[6], v = t[7], x = t[8], S = t[9], b = t[10], k = t[11], I = t[12];
|
|
974
|
+
let T;
|
|
975
|
+
t[79] !== h || t[80] !== b || t[81] !== k ? (T = /* @__PURE__ */ i.jsx(h, { subheader: b, children: k }), t[79] = h, t[80] = b, t[81] = k, t[82] = T) : T = t[82];
|
|
976
|
+
const E = T;
|
|
977
|
+
let w;
|
|
978
|
+
t[83] !== g ? (w = g ? /* @__PURE__ */ i.jsx(At, { src: g, sx: {
|
|
1120
979
|
width: {
|
|
1121
980
|
xs: 32,
|
|
1122
981
|
sm: 40
|
|
@@ -1125,7 +984,7 @@ const it = {
|
|
|
1125
984
|
xs: 32,
|
|
1126
985
|
sm: 40
|
|
1127
986
|
}
|
|
1128
|
-
} }) : /* @__PURE__ */
|
|
987
|
+
} }) : /* @__PURE__ */ i.jsx(ho, { sx: {
|
|
1129
988
|
width: {
|
|
1130
989
|
xs: 32,
|
|
1131
990
|
sm: 40
|
|
@@ -1134,57 +993,52 @@ const it = {
|
|
|
1134
993
|
xs: 32,
|
|
1135
994
|
sm: 40
|
|
1136
995
|
}
|
|
1137
|
-
} }), t[
|
|
996
|
+
} }), t[83] = g, t[84] = w) : w = t[84];
|
|
1138
997
|
let L;
|
|
1139
|
-
t[
|
|
1140
|
-
let P;
|
|
1141
|
-
t[93] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = {
|
|
1142
|
-
width: 240
|
|
1143
|
-
}, t[93] = P) : P = t[93];
|
|
998
|
+
t[85] !== x || t[86] !== w ? (L = /* @__PURE__ */ i.jsx(Ee, { size: "small", edge: "end", onClick: x, children: w }), t[85] = x, t[86] = w, t[87] = L) : L = t[87];
|
|
1144
999
|
let A;
|
|
1145
|
-
t[
|
|
1000
|
+
t[88] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = {
|
|
1001
|
+
width: 240
|
|
1002
|
+
}, t[88] = A) : A = t[88];
|
|
1146
1003
|
let _;
|
|
1147
|
-
t[
|
|
1148
|
-
|
|
1149
|
-
|
|
1004
|
+
t[89] !== u || t[90] !== p || t[91] !== s ? (_ = /* @__PURE__ */ i.jsx(Me, { disablePadding: !0, children: p ? /* @__PURE__ */ i.jsxs(Pe, { children: [
|
|
1005
|
+
/* @__PURE__ */ i.jsx(Tt, { children: /* @__PURE__ */ i.jsx(F, { primary: d.name, secondary: /* @__PURE__ */ i.jsxs("span", { children: [
|
|
1006
|
+
d.employeeId && /* @__PURE__ */ i.jsx("span", { children: d.employeeId }),
|
|
1007
|
+
d.employeeId && /* @__PURE__ */ i.jsx("br", {}),
|
|
1008
|
+
d.department && /* @__PURE__ */ i.jsx("span", { children: d.department })
|
|
1009
|
+
] }) }) }),
|
|
1010
|
+
/* @__PURE__ */ i.jsxs(ne, { onClick: () => u.logoutRedirect({
|
|
1011
|
+
postLogoutRedirectUri: "/"
|
|
1012
|
+
}), children: [
|
|
1013
|
+
/* @__PURE__ */ i.jsx(ie, { children: /* @__PURE__ */ i.jsx(bo, { color: "error" }) }),
|
|
1014
|
+
/* @__PURE__ */ i.jsx(F, { primary: s("Layout.Logout") })
|
|
1015
|
+
] })
|
|
1016
|
+
] }) : /* @__PURE__ */ i.jsxs(ne, { onClick: () => u.loginRedirect(), children: [
|
|
1017
|
+
/* @__PURE__ */ i.jsx(ie, { children: /* @__PURE__ */ i.jsx(So, { color: "success" }) }),
|
|
1018
|
+
/* @__PURE__ */ i.jsx(F, { primary: s("Layout.LogIn") })
|
|
1019
|
+
] }) }), t[89] = u, t[90] = p, t[91] = s, t[92] = _) : _ = t[92];
|
|
1020
|
+
const P = n === "settings" && S, D = n === "theme" && I, $ = n === "language" && E;
|
|
1150
1021
|
let j;
|
|
1151
|
-
t[
|
|
1022
|
+
t[93] !== D || t[94] !== $ || t[95] !== _ || t[96] !== P ? (j = /* @__PURE__ */ i.jsxs(Oe, { sx: A, children: [
|
|
1023
|
+
_,
|
|
1024
|
+
P,
|
|
1025
|
+
D,
|
|
1026
|
+
$
|
|
1027
|
+
] }), t[93] = D, t[94] = $, t[95] = _, t[96] = P, t[97] = j) : j = t[97];
|
|
1028
|
+
let C;
|
|
1029
|
+
t[98] !== e || t[99] !== v || t[100] !== a || t[101] !== j ? (C = /* @__PURE__ */ i.jsx($t, { anchorEl: e, open: a, onClose: v, children: j }), t[98] = e, t[99] = v, t[100] = a, t[101] = j, t[102] = C) : C = t[102];
|
|
1152
1030
|
let M;
|
|
1153
|
-
t[
|
|
1154
|
-
let D;
|
|
1155
|
-
t[101] !== M ? (D = /* @__PURE__ */ s.jsx(B, { primary: M }), t[101] = M, t[102] = D) : D = t[102];
|
|
1156
|
-
let O;
|
|
1157
|
-
t[103] !== _ || t[104] !== D ? (O = /* @__PURE__ */ s.jsxs(de, { onClick: _, children: [
|
|
1158
|
-
j,
|
|
1159
|
-
D
|
|
1160
|
-
] }), t[103] = _, t[104] = D, t[105] = O) : O = t[105];
|
|
1161
|
-
let N;
|
|
1162
|
-
t[106] !== A || t[107] !== O ? (N = /* @__PURE__ */ s.jsxs(Be, { disablePadding: !0, children: [
|
|
1163
|
-
A,
|
|
1164
|
-
O
|
|
1165
|
-
] }), t[106] = A, t[107] = O, t[108] = N) : N = t[108];
|
|
1166
|
-
const Qe = o === "settings" && k, Ye = o === "theme" && $, Xe = o === "language" && T;
|
|
1167
|
-
let H;
|
|
1168
|
-
t[109] !== N || t[110] !== Qe || t[111] !== Ye || t[112] !== Xe ? (H = /* @__PURE__ */ s.jsxs(Ge, { sx: P, children: [
|
|
1169
|
-
N,
|
|
1170
|
-
Qe,
|
|
1171
|
-
Ye,
|
|
1172
|
-
Xe
|
|
1173
|
-
] }), t[109] = N, t[110] = Qe, t[111] = Ye, t[112] = Xe, t[113] = H) : H = t[113];
|
|
1174
|
-
let G;
|
|
1175
|
-
t[114] !== e || t[115] !== x || t[116] !== a || t[117] !== H ? (G = /* @__PURE__ */ s.jsx(rn, { anchorEl: e, open: a, onClose: x, children: H }), t[114] = e, t[115] = x, t[116] = a, t[117] = H, t[118] = G) : G = t[118];
|
|
1176
|
-
let ge;
|
|
1177
|
-
return t[119] !== G || t[120] !== L ? (ge = /* @__PURE__ */ s.jsxs(at, { children: [
|
|
1031
|
+
return t[103] !== C || t[104] !== L ? (M = /* @__PURE__ */ i.jsxs(Pe, { children: [
|
|
1178
1032
|
L,
|
|
1179
|
-
|
|
1180
|
-
] }), t[
|
|
1033
|
+
C
|
|
1034
|
+
] }), t[103] = C, t[104] = L, t[105] = M) : M = t[105], M;
|
|
1181
1035
|
};
|
|
1182
|
-
function
|
|
1036
|
+
function rn(t) {
|
|
1183
1037
|
return t !== "cimode";
|
|
1184
1038
|
}
|
|
1185
|
-
const
|
|
1186
|
-
(
|
|
1187
|
-
},
|
|
1039
|
+
const pt = "navigation-open", an = () => Re.isWindows || Re.isMacOS ? localStorage.getItem(pt) === "true" : !1, ht = (t) => {
|
|
1040
|
+
(Re.isWindows || Re.isMacOS) && localStorage.setItem(pt, String(t));
|
|
1041
|
+
}, ln = Ke("div")(({
|
|
1188
1042
|
theme: t
|
|
1189
1043
|
}) => ({
|
|
1190
1044
|
display: "flex",
|
|
@@ -1192,129 +1046,116 @@ const Ot = "navigation-open", Do = () => Ke.isWindows || Ke.isMacOS ? localStora
|
|
|
1192
1046
|
justifyContent: "flex-end",
|
|
1193
1047
|
padding: t.spacing(0, 1),
|
|
1194
1048
|
...t.mixins.toolbar
|
|
1195
|
-
})),
|
|
1196
|
-
const e =
|
|
1197
|
-
|
|
1198
|
-
const [
|
|
1199
|
-
let
|
|
1200
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1201
|
-
let
|
|
1202
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1049
|
+
})), cn = (t) => {
|
|
1050
|
+
const e = R.c(23);
|
|
1051
|
+
qt(Vt.Redirect);
|
|
1052
|
+
const [o, n] = ae(an);
|
|
1053
|
+
let r, a;
|
|
1054
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ i.jsx(Dt, {}), a = /* @__PURE__ */ i.jsx(Mt, {}), e[0] = r, e[1] = a) : (r = e[0], a = e[1]);
|
|
1055
|
+
let s;
|
|
1056
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
|
|
1203
1057
|
display: "flex",
|
|
1204
1058
|
height: "100dvh",
|
|
1205
1059
|
maxHeight: "100dvh",
|
|
1206
1060
|
overflow: "hidden",
|
|
1207
1061
|
width: "100%"
|
|
1208
|
-
}, e[2] =
|
|
1209
|
-
let
|
|
1210
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1062
|
+
}, e[2] = s) : s = e[2];
|
|
1063
|
+
let l;
|
|
1064
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
|
|
1211
1065
|
borderBottom: "1px solid",
|
|
1212
1066
|
borderColor: "var(--mui-palette-divider)",
|
|
1213
1067
|
boxShadow: "none"
|
|
1214
|
-
}, e[3] =
|
|
1215
|
-
let
|
|
1216
|
-
e[4] !==
|
|
1217
|
-
|
|
1068
|
+
}, e[3] = l) : l = e[3];
|
|
1069
|
+
let c;
|
|
1070
|
+
e[4] !== o || e[5] !== t.navigation ? (c = t.navigation && /* @__PURE__ */ i.jsx(Ee, { onClick: () => {
|
|
1071
|
+
n(dn);
|
|
1218
1072
|
}, sx: {
|
|
1219
1073
|
marginRight: 2
|
|
1220
|
-
}, children:
|
|
1221
|
-
let
|
|
1222
|
-
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1223
|
-
let
|
|
1224
|
-
e[9] !==
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
] }) }), e[9] =
|
|
1229
|
-
let
|
|
1230
|
-
e[11] !==
|
|
1231
|
-
|
|
1232
|
-
} }), e[11] =
|
|
1233
|
-
let
|
|
1234
|
-
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1074
|
+
}, children: o ? /* @__PURE__ */ i.jsx(Jt, {}) : /* @__PURE__ */ i.jsx(Zt, {}) }), e[4] = o, e[5] = t.navigation, e[6] = c) : c = e[6];
|
|
1075
|
+
let m, u;
|
|
1076
|
+
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ i.jsx(qo, {}), u = /* @__PURE__ */ i.jsx(sn, {}), e[7] = m, e[8] = u) : (m = e[7], u = e[8]);
|
|
1077
|
+
let p;
|
|
1078
|
+
e[9] !== c ? (p = /* @__PURE__ */ i.jsx(Et, { color: "transparent", position: "fixed", sx: l, children: /* @__PURE__ */ i.jsxs(Ot, { children: [
|
|
1079
|
+
c,
|
|
1080
|
+
m,
|
|
1081
|
+
u
|
|
1082
|
+
] }) }), e[9] = c, e[10] = p) : p = e[10];
|
|
1083
|
+
let f;
|
|
1084
|
+
e[11] !== o || e[12] !== t.navigation ? (f = t.navigation && /* @__PURE__ */ i.jsx(tn, { navigation: t.navigation, expanded: o, setExpanded: (x) => {
|
|
1085
|
+
n(x), ht(x);
|
|
1086
|
+
} }), e[11] = o, e[12] = t.navigation, e[13] = f) : f = e[13];
|
|
1087
|
+
let d, y;
|
|
1088
|
+
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = {
|
|
1235
1089
|
flexGrow: 1,
|
|
1236
1090
|
display: "flex",
|
|
1237
1091
|
flexDirection: "column",
|
|
1238
1092
|
minWidth: 0,
|
|
1239
1093
|
height: "100%",
|
|
1240
1094
|
overflow: "hidden"
|
|
1241
|
-
},
|
|
1242
|
-
let
|
|
1243
|
-
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1095
|
+
}, d = /* @__PURE__ */ i.jsx(ln, {}), e[14] = d, e[15] = y) : (d = e[14], y = e[15]);
|
|
1096
|
+
let g;
|
|
1097
|
+
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = {
|
|
1244
1098
|
flex: 1,
|
|
1245
1099
|
overflow: "auto",
|
|
1246
1100
|
position: "relative"
|
|
1247
|
-
}, e[16] =
|
|
1248
|
-
let
|
|
1249
|
-
e[17] !== t.children ? (
|
|
1250
|
-
|
|
1251
|
-
/* @__PURE__ */
|
|
1252
|
-
] }), e[17] = t.children, e[18] =
|
|
1253
|
-
let
|
|
1254
|
-
e[19] !==
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
xs: 56,
|
|
1264
|
-
sm: 64
|
|
1265
|
-
},
|
|
1266
|
-
left: 0,
|
|
1267
|
-
right: 0
|
|
1268
|
-
} }), e[23] = r, e[24] = a, e[25] = k) : k = e[25];
|
|
1269
|
-
let y;
|
|
1270
|
-
return e[26] !== p || e[27] !== k ? (y = /* @__PURE__ */ s.jsxs(xo, { children: [
|
|
1271
|
-
i,
|
|
1272
|
-
l,
|
|
1273
|
-
p,
|
|
1274
|
-
k
|
|
1275
|
-
] }), e[26] = p, e[27] = k, e[28] = y) : y = e[28], y;
|
|
1101
|
+
}, e[16] = g) : g = e[16];
|
|
1102
|
+
let h;
|
|
1103
|
+
e[17] !== t.children ? (h = /* @__PURE__ */ i.jsxs(Oe, { component: "main", sx: y, children: [
|
|
1104
|
+
d,
|
|
1105
|
+
/* @__PURE__ */ i.jsx(Oe, { sx: g, children: t.children })
|
|
1106
|
+
] }), e[17] = t.children, e[18] = h) : h = e[18];
|
|
1107
|
+
let v;
|
|
1108
|
+
return e[19] !== h || e[20] !== p || e[21] !== f ? (v = /* @__PURE__ */ i.jsxs(Kt, { children: [
|
|
1109
|
+
r,
|
|
1110
|
+
a,
|
|
1111
|
+
/* @__PURE__ */ i.jsxs(Oe, { sx: s, children: [
|
|
1112
|
+
p,
|
|
1113
|
+
f,
|
|
1114
|
+
h
|
|
1115
|
+
] })
|
|
1116
|
+
] }), e[19] = h, e[20] = p, e[21] = f, e[22] = v) : v = e[22], v;
|
|
1276
1117
|
};
|
|
1277
|
-
function
|
|
1118
|
+
function dn(t) {
|
|
1278
1119
|
const e = !t;
|
|
1279
|
-
return
|
|
1120
|
+
return ht(e), e;
|
|
1280
1121
|
}
|
|
1281
|
-
const
|
|
1282
|
-
|
|
1283
|
-
resources:
|
|
1122
|
+
const un = 1440 * 365;
|
|
1123
|
+
B.use(ut).use(zo).init({
|
|
1124
|
+
resources: Qe,
|
|
1284
1125
|
fallbackLng: "en",
|
|
1285
|
-
supportedLngs: Object.keys(
|
|
1126
|
+
supportedLngs: Object.keys(Qe),
|
|
1286
1127
|
detection: {
|
|
1287
1128
|
caches: ["cookie"],
|
|
1288
|
-
cookieMinutes:
|
|
1129
|
+
cookieMinutes: un
|
|
1289
1130
|
},
|
|
1290
1131
|
interpolation: {
|
|
1291
1132
|
escapeValue: !1
|
|
1292
1133
|
}
|
|
1293
1134
|
});
|
|
1294
|
-
const
|
|
1295
|
-
const e =
|
|
1296
|
-
navigation:
|
|
1297
|
-
theme:
|
|
1135
|
+
const ri = (t) => {
|
|
1136
|
+
const e = R.c(9), {
|
|
1137
|
+
navigation: o,
|
|
1138
|
+
theme: n,
|
|
1298
1139
|
children: r
|
|
1299
|
-
} = t, a =
|
|
1300
|
-
let
|
|
1301
|
-
e[0] !== a ? (
|
|
1302
|
-
|
|
1303
|
-
}), e[0] = a, e[1] =
|
|
1140
|
+
} = t, a = Bt(mn);
|
|
1141
|
+
let s;
|
|
1142
|
+
e[0] !== a ? (s = () => (a(), B.on("languageChanged", a), () => {
|
|
1143
|
+
B.off("languageChanged", a);
|
|
1144
|
+
}), e[0] = a, e[1] = s) : s = e[1];
|
|
1304
1145
|
let l;
|
|
1305
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [], e[2] = l) : l = e[2],
|
|
1306
|
-
let
|
|
1307
|
-
e[3] !== r || e[4] !==
|
|
1308
|
-
let
|
|
1309
|
-
return e[6] !==
|
|
1146
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [], e[2] = l) : l = e[2], at(s, l);
|
|
1147
|
+
let c;
|
|
1148
|
+
e[3] !== r || e[4] !== o ? (c = /* @__PURE__ */ i.jsx(Rt, { dateAdapter: Nt, adapterLocale: B.language, children: /* @__PURE__ */ i.jsx(Wo, { children: /* @__PURE__ */ i.jsx(Ho, { children: /* @__PURE__ */ i.jsx(cn, { navigation: o, children: r }) }) }) }, B.language), e[3] = r, e[4] = o, e[5] = c) : c = e[5];
|
|
1149
|
+
let m;
|
|
1150
|
+
return e[6] !== c || e[7] !== n ? (m = /* @__PURE__ */ i.jsx(Pt, { theme: n, children: c }), e[6] = c, e[7] = n, e[8] = m) : m = e[8], m;
|
|
1310
1151
|
};
|
|
1311
|
-
function
|
|
1312
|
-
|
|
1152
|
+
function mn() {
|
|
1153
|
+
Xe.config(Xe.core.locales[B.language]()), Ut.locale(B.language);
|
|
1313
1154
|
}
|
|
1314
1155
|
export {
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1156
|
+
ri as LayoutProvider,
|
|
1157
|
+
ci as WISTRON_PRIMARY_COLOR,
|
|
1158
|
+
di as WISTRON_SECONDARY_COLOR,
|
|
1159
|
+
ui as rootRouteHead
|
|
1319
1160
|
};
|
|
1320
1161
|
//# sourceMappingURL=index.js.map
|