wcz-test 7.1.0 → 7.1.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/exports/components.d.ts +14 -0
- package/dist/exports/hooks.d.ts +6 -0
- package/dist/exports/index.d.ts +4 -0
- package/dist/exports/models.d.ts +24 -0
- package/dist/exports/query.d.ts +2 -0
- package/dist/exports/utils.d.ts +5 -0
- package/dist/exports/vite.d.ts +1 -0
- package/dist/index.js +263 -272
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/components.d.ts +0 -44
- package/dist/hooks.d.ts +0 -29
- package/dist/index.d.ts +0 -20
- package/dist/models.d.ts +0 -104
- package/dist/query.d.ts +0 -8
- package/dist/utils.d.ts +0 -17
- package/dist/vite.d.ts +0 -5
package/dist/index.js
CHANGED
|
@@ -1,63 +1,61 @@
|
|
|
1
|
-
import { j as s, M as
|
|
2
|
-
import { W as
|
|
3
|
-
import { Stack as
|
|
4
|
-
import { LocalizationProvider as
|
|
5
|
-
import { AdapterDayjs as
|
|
6
|
-
import
|
|
7
|
-
import {
|
|
8
|
-
import
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import In from "@
|
|
17
|
-
import
|
|
18
|
-
import { queryOptions as pt, useQueryClient as _n, useQuery as ht, useIsFetching as Tn, useIsMutating as Cn } from "@tanstack/react-query";
|
|
19
|
-
import At from "@mui/material/Box";
|
|
1
|
+
import { j as s, M as Nt, I as W, b as Ut, d as Ft, A as qt, e as Bt, f as We, E as qe, h as zt, O as Wt, a as F, i as Ht, g as Kt, k as Qt } from "./utils-Dttzp8un.js";
|
|
2
|
+
import { W as _i, l as Ti, r as Ci } from "./utils-Dttzp8un.js";
|
|
3
|
+
import { Stack as Gt, Typography as Yt, Chip as Xt, Collapse as Vt, useMediaQuery as Zt, useColorScheme as Jt, ListItemButton as fe, ListItemText as B, ListItemIcon as me, ListItem as en, Skeleton as ct, ListSubheader as et, List as Be, IconButton as He, Avatar as tn, Box as Ke, Menu as nn, InitColorSchemeScript as on, CssBaseline as sn, AppBar as rn, Toolbar as an, LinearProgress as ln, ThemeProvider as cn } from "@mui/material";
|
|
4
|
+
import { LocalizationProvider as un } from "@mui/x-date-pickers";
|
|
5
|
+
import { AdapterDayjs as dn } from "@mui/x-date-pickers/AdapterDayjs";
|
|
6
|
+
import fn from "dayjs";
|
|
7
|
+
import { i as z } from "./i18next-Bx3TmZAT.js";
|
|
8
|
+
import ut, { useState as U, useId as mn, useRef as pe, useContext as pn, useMemo as Tt, useEffect as q, useCallback as dt, Fragment as rt, useEffectEvent as hn } from "react";
|
|
9
|
+
import { resources as ft } from "virtual:wcz-layout";
|
|
10
|
+
import mt from "zod";
|
|
11
|
+
import tt from "@mui/utils/useEventCallback";
|
|
12
|
+
import { s as gn, a as xn, D as yn, u as vn } from "./DialogsContext-8xfQ3X-k.js";
|
|
13
|
+
import bn from "@mui/icons-material/Menu";
|
|
14
|
+
import Sn from "@mui/icons-material/MenuOpen";
|
|
15
|
+
import { styled as at, useTheme as kn } from "@mui/material/styles";
|
|
16
|
+
import { queryOptions as pt, useQueryClient as wn, useQuery as ht, useIsFetching as In, useIsMutating as jn } from "@tanstack/react-query";
|
|
17
|
+
import Ct from "@mui/material/Box";
|
|
20
18
|
import gt from "@mui/material/Drawer";
|
|
21
|
-
import { useNavigate as
|
|
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 { R as
|
|
35
|
-
import
|
|
19
|
+
import { useNavigate as _n, useRouterState as Tn } from "@tanstack/react-router";
|
|
20
|
+
import Cn from "@mui/material/Divider";
|
|
21
|
+
import Ln from "@mui/material/List";
|
|
22
|
+
import An from "@mui/material/ListSubheader";
|
|
23
|
+
import En from "@mui/icons-material/ExpandMore";
|
|
24
|
+
import Mn from "@mui/material/Avatar";
|
|
25
|
+
import Dn from "@mui/material/ListItem";
|
|
26
|
+
import $n from "@mui/material/ListItemButton";
|
|
27
|
+
import On from "@mui/material/ListItemIcon";
|
|
28
|
+
import Pn from "@mui/material/ListItemText";
|
|
29
|
+
import Rn from "@mui/material/Paper";
|
|
30
|
+
import Nn from "@mui/material/Popper";
|
|
31
|
+
import Un from "@mui/material/Typography";
|
|
32
|
+
import { R as Fn } from "./RouterListItemButton-DrW6M53Y.js";
|
|
33
|
+
import qn from "@mui/icons-material/AccountCircle";
|
|
36
34
|
import xt from "@mui/icons-material/ArrowBack";
|
|
37
|
-
import
|
|
35
|
+
import Bn from "@mui/icons-material/Brightness4";
|
|
38
36
|
import yt from "@mui/icons-material/ChevronRight";
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import { a as
|
|
37
|
+
import zn from "@mui/icons-material/DarkMode";
|
|
38
|
+
import Wn from "@mui/icons-material/Done";
|
|
39
|
+
import Hn from "@mui/icons-material/LightMode";
|
|
40
|
+
import Kn from "@mui/icons-material/Logout";
|
|
41
|
+
import Qn from "@mui/icons-material/SettingsBrightness";
|
|
42
|
+
import Gn from "@mui/icons-material/Translate";
|
|
43
|
+
import { a as Yn } from "./index-De6Lo0ff.js";
|
|
46
44
|
const {
|
|
47
|
-
slice:
|
|
48
|
-
forEach:
|
|
45
|
+
slice: Xn,
|
|
46
|
+
forEach: Vn
|
|
49
47
|
} = [];
|
|
50
|
-
function
|
|
51
|
-
return
|
|
48
|
+
function Zn(t) {
|
|
49
|
+
return Vn.call(Xn.call(arguments, 1), (e) => {
|
|
52
50
|
if (e)
|
|
53
51
|
for (const n in e)
|
|
54
52
|
t[n] === void 0 && (t[n] = e[n]);
|
|
55
53
|
}), t;
|
|
56
54
|
}
|
|
57
|
-
function
|
|
55
|
+
function Jn(t) {
|
|
58
56
|
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((n) => n.test(t));
|
|
59
57
|
}
|
|
60
|
-
const vt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/,
|
|
58
|
+
const vt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, eo = function(t, e) {
|
|
61
59
|
const o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
62
60
|
path: "/"
|
|
63
61
|
}, r = encodeURIComponent(e);
|
|
@@ -106,7 +104,7 @@ const vt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, oo = function(t, e) {
|
|
|
106
104
|
path: "/",
|
|
107
105
|
sameSite: "strict"
|
|
108
106
|
};
|
|
109
|
-
n && (r.expires = /* @__PURE__ */ new Date(), r.expires.setTime(r.expires.getTime() + n * 60 * 1e3)), o && (r.domain = o), document.cookie =
|
|
107
|
+
n && (r.expires = /* @__PURE__ */ new Date(), r.expires.setTime(r.expires.getTime() + n * 60 * 1e3)), o && (r.domain = o), document.cookie = eo(t, e, r);
|
|
110
108
|
},
|
|
111
109
|
read(t) {
|
|
112
110
|
const e = `${t}=`, n = document.cookie.split(";");
|
|
@@ -121,7 +119,7 @@ const vt = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, oo = function(t, e) {
|
|
|
121
119
|
this.create(t, "", -1, e);
|
|
122
120
|
}
|
|
123
121
|
};
|
|
124
|
-
var
|
|
122
|
+
var to = {
|
|
125
123
|
name: "cookie",
|
|
126
124
|
// Deconstruct the options object and extract the lookupCookie property
|
|
127
125
|
lookup(t) {
|
|
@@ -141,7 +139,7 @@ var io = {
|
|
|
141
139
|
} = e;
|
|
142
140
|
n && typeof document < "u" && bt.create(n, t, o, r, a);
|
|
143
141
|
}
|
|
144
|
-
},
|
|
142
|
+
}, no = {
|
|
145
143
|
name: "querystring",
|
|
146
144
|
// Deconstruct the options object and extract the lookupQuerystring property
|
|
147
145
|
lookup(t) {
|
|
@@ -161,7 +159,7 @@ var io = {
|
|
|
161
159
|
}
|
|
162
160
|
return n;
|
|
163
161
|
}
|
|
164
|
-
},
|
|
162
|
+
}, oo = {
|
|
165
163
|
name: "hash",
|
|
166
164
|
// Deconstruct the options object and extract the lookupHash property and the lookupFromHashIndex property
|
|
167
165
|
lookup(t) {
|
|
@@ -205,7 +203,7 @@ const St = () => {
|
|
|
205
203
|
}
|
|
206
204
|
return le;
|
|
207
205
|
};
|
|
208
|
-
var
|
|
206
|
+
var io = {
|
|
209
207
|
name: "localStorage",
|
|
210
208
|
// Deconstruct the options object and extract the lookupLocalStorage property
|
|
211
209
|
lookup(t) {
|
|
@@ -236,7 +234,7 @@ const kt = () => {
|
|
|
236
234
|
}
|
|
237
235
|
return ce;
|
|
238
236
|
};
|
|
239
|
-
var
|
|
237
|
+
var so = {
|
|
240
238
|
name: "sessionStorage",
|
|
241
239
|
lookup(t) {
|
|
242
240
|
let {
|
|
@@ -251,7 +249,7 @@ var lo = {
|
|
|
251
249
|
} = e;
|
|
252
250
|
n && kt() && window.sessionStorage.setItem(n, t);
|
|
253
251
|
}
|
|
254
|
-
},
|
|
252
|
+
}, ro = {
|
|
255
253
|
name: "navigator",
|
|
256
254
|
lookup(t) {
|
|
257
255
|
const e = [];
|
|
@@ -268,7 +266,7 @@ var lo = {
|
|
|
268
266
|
}
|
|
269
267
|
return e.length > 0 ? e : void 0;
|
|
270
268
|
}
|
|
271
|
-
},
|
|
269
|
+
}, ao = {
|
|
272
270
|
name: "htmlTag",
|
|
273
271
|
// Deconstruct the options object and extract the htmlTag property
|
|
274
272
|
lookup(t) {
|
|
@@ -278,7 +276,7 @@ var lo = {
|
|
|
278
276
|
const o = e || (typeof document < "u" ? document.documentElement : null);
|
|
279
277
|
return o && typeof o.getAttribute == "function" && (n = o.getAttribute("lang")), n;
|
|
280
278
|
}
|
|
281
|
-
},
|
|
279
|
+
}, lo = {
|
|
282
280
|
name: "path",
|
|
283
281
|
// Deconstruct the options object and extract the lookupFromPathIndex property
|
|
284
282
|
lookup(t) {
|
|
@@ -289,7 +287,7 @@ var lo = {
|
|
|
289
287
|
const n = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
|
|
290
288
|
return Array.isArray(n) ? n[typeof e == "number" ? e : 0]?.replace("/", "") : void 0;
|
|
291
289
|
}
|
|
292
|
-
},
|
|
290
|
+
}, co = {
|
|
293
291
|
name: "subdomain",
|
|
294
292
|
lookup(t) {
|
|
295
293
|
let {
|
|
@@ -300,15 +298,15 @@ var lo = {
|
|
|
300
298
|
return o[n];
|
|
301
299
|
}
|
|
302
300
|
};
|
|
303
|
-
let
|
|
301
|
+
let Lt = !1;
|
|
304
302
|
try {
|
|
305
|
-
document.cookie,
|
|
303
|
+
document.cookie, Lt = !0;
|
|
306
304
|
} catch {
|
|
307
305
|
}
|
|
308
|
-
const
|
|
309
|
-
|
|
310
|
-
const
|
|
311
|
-
order:
|
|
306
|
+
const At = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
|
|
307
|
+
Lt || At.splice(1, 1);
|
|
308
|
+
const uo = () => ({
|
|
309
|
+
order: At,
|
|
312
310
|
lookupQuerystring: "lng",
|
|
313
311
|
lookupCookie: "i18next",
|
|
314
312
|
lookupLocalStorage: "i18nextLng",
|
|
@@ -320,7 +318,7 @@ const po = () => ({
|
|
|
320
318
|
// cookieDomain: 'myDomain'
|
|
321
319
|
convertDetectedLanguage: (t) => t
|
|
322
320
|
});
|
|
323
|
-
class
|
|
321
|
+
class Et {
|
|
324
322
|
constructor(e) {
|
|
325
323
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
326
324
|
this.type = "languageDetector", this.detectors = {}, this.init(e, n);
|
|
@@ -329,7 +327,7 @@ class Dt {
|
|
|
329
327
|
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
330
328
|
languageUtils: {}
|
|
331
329
|
}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
332
|
-
this.services = e, this.options =
|
|
330
|
+
this.services = e, this.options = Zn(n, this.options || {}, uo()), 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 = o, this.addDetector(to), this.addDetector(no), this.addDetector(io), this.addDetector(so), this.addDetector(ro), this.addDetector(ao), this.addDetector(lo), this.addDetector(co), this.addDetector(oo);
|
|
333
331
|
}
|
|
334
332
|
addDetector(e) {
|
|
335
333
|
return this.detectors[e.name] = e, this;
|
|
@@ -341,7 +339,7 @@ class Dt {
|
|
|
341
339
|
let r = this.detectors[o].lookup(this.options);
|
|
342
340
|
r && typeof r == "string" && (r = [r]), r && (n = n.concat(r));
|
|
343
341
|
}
|
|
344
|
-
}), n = n.filter((o) => o != null && !
|
|
342
|
+
}), n = n.filter((o) => o != null && !Jn(o)).map((o) => this.options.convertDetectedLanguage(o)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? n : n.length > 0 ? n[0] : null;
|
|
345
343
|
}
|
|
346
344
|
cacheUserLanguage(e) {
|
|
347
345
|
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
|
|
@@ -350,17 +348,17 @@ class Dt {
|
|
|
350
348
|
}));
|
|
351
349
|
}
|
|
352
350
|
}
|
|
353
|
-
|
|
354
|
-
const
|
|
351
|
+
Et.type = "languageDetector";
|
|
352
|
+
const fo = {
|
|
355
353
|
type: "3rdParty",
|
|
356
354
|
init(t) {
|
|
357
|
-
|
|
355
|
+
gn(t.options.react), xn(t);
|
|
358
356
|
}
|
|
359
357
|
};
|
|
360
|
-
function
|
|
358
|
+
function mo({
|
|
361
359
|
children: t
|
|
362
360
|
}) {
|
|
363
|
-
const [e, n] =
|
|
361
|
+
const [e, n] = U([]), o = mn(), r = pe(0), a = pe(/* @__PURE__ */ new WeakMap()), i = tt(function(h, p, d = {}) {
|
|
364
362
|
const {
|
|
365
363
|
onClose: b = async () => {
|
|
366
364
|
}
|
|
@@ -382,12 +380,12 @@ function go({
|
|
|
382
380
|
return a.current.set(y, g), n((m) => [...m, g]), y;
|
|
383
381
|
}), l = (u) => {
|
|
384
382
|
n((h) => h.filter((p) => p.promise !== u)), a.current.delete(u);
|
|
385
|
-
}, c =
|
|
383
|
+
}, c = tt(function(h) {
|
|
386
384
|
n((p) => p.map((d) => d.promise === h ? {
|
|
387
385
|
...d,
|
|
388
386
|
open: !1
|
|
389
387
|
} : d)), setTimeout(() => l(h), 1e3);
|
|
390
|
-
}), f =
|
|
388
|
+
}), f = tt(async function(h, p) {
|
|
391
389
|
const d = a.current.get(h);
|
|
392
390
|
if (!d)
|
|
393
391
|
throw new Error("Dialog not found in stack");
|
|
@@ -398,7 +396,7 @@ function go({
|
|
|
398
396
|
}
|
|
399
397
|
return h;
|
|
400
398
|
});
|
|
401
|
-
return /* @__PURE__ */ s.jsxs(
|
|
399
|
+
return /* @__PURE__ */ s.jsxs(yn.Provider, { value: {
|
|
402
400
|
open: i,
|
|
403
401
|
close: f
|
|
404
402
|
}, children: [
|
|
@@ -414,31 +412,31 @@ function go({
|
|
|
414
412
|
} }, u))
|
|
415
413
|
] });
|
|
416
414
|
}
|
|
417
|
-
const he = () =>
|
|
418
|
-
function
|
|
419
|
-
return e && (e.username || e.homeAccountId || e.localAccountId) ? !!
|
|
415
|
+
const he = () => pn(Nt);
|
|
416
|
+
function po(t, e) {
|
|
417
|
+
return e && (e.username || e.homeAccountId || e.localAccountId) ? !!Ut(t, e) : t.length > 0;
|
|
420
418
|
}
|
|
421
|
-
function
|
|
419
|
+
function Mt(t) {
|
|
422
420
|
const { accounts: e, inProgress: n } = he();
|
|
423
|
-
return
|
|
421
|
+
return Tt(() => n === W.Startup ? !1 : po(e, t), [e, n, t]);
|
|
424
422
|
}
|
|
425
|
-
function
|
|
426
|
-
const r = he(), a =
|
|
423
|
+
function ho({ username: t, homeAccountId: e, localAccountId: n, children: o }) {
|
|
424
|
+
const r = he(), a = Tt(() => ({
|
|
427
425
|
username: t,
|
|
428
426
|
homeAccountId: e,
|
|
429
427
|
localAccountId: n
|
|
430
428
|
}), [t, e, n]);
|
|
431
|
-
return
|
|
429
|
+
return Mt(a) && r.inProgress !== W.Startup ? ut.createElement(ut.Fragment, null, Ft(o, r)) : null;
|
|
432
430
|
}
|
|
433
431
|
function wt(t, e) {
|
|
434
432
|
return t.getActiveAccount();
|
|
435
433
|
}
|
|
436
|
-
function
|
|
437
|
-
const { instance: e, inProgress: n, logger: o } = he(), [r, a] =
|
|
438
|
-
return
|
|
434
|
+
function go(t) {
|
|
435
|
+
const { instance: e, inProgress: n, logger: o } = he(), [r, a] = U(() => n === W.Startup ? null : wt(e));
|
|
436
|
+
return q(() => {
|
|
439
437
|
n !== W.Startup && a((i) => {
|
|
440
438
|
const l = wt(e);
|
|
441
|
-
return
|
|
439
|
+
return qt.accountInfoIsEqual(i, l, !0) ? i : (o.info("useAccount - Updating account"), l);
|
|
442
440
|
});
|
|
443
441
|
}, [n, t, e, o]), r;
|
|
444
442
|
}
|
|
@@ -452,7 +450,7 @@ const ze = {
|
|
|
452
450
|
desc: "Interaction is required but another interaction is already in progress. Please try again when the current interaction is complete."
|
|
453
451
|
}
|
|
454
452
|
};
|
|
455
|
-
class ue extends
|
|
453
|
+
class ue extends Bt {
|
|
456
454
|
constructor(e, n) {
|
|
457
455
|
super(e, n), Object.setPrototypeOf(this, ue.prototype), this.name = "ReactAuthError";
|
|
458
456
|
}
|
|
@@ -463,17 +461,17 @@ class ue extends Wt {
|
|
|
463
461
|
return new ue(ze.unableToFallbackToInteraction.code, ze.unableToFallbackToInteraction.desc);
|
|
464
462
|
}
|
|
465
463
|
}
|
|
466
|
-
function
|
|
467
|
-
const { instance: o, inProgress: r, logger: a } = he(), i =
|
|
468
|
-
|
|
464
|
+
function xo(t, e, n) {
|
|
465
|
+
const { instance: o, inProgress: r, logger: a } = he(), i = Mt(n), l = go(n), [[c, f], u] = U([null, null]), h = pe(!0);
|
|
466
|
+
q(() => () => {
|
|
469
467
|
h.current = !1;
|
|
470
468
|
}, []);
|
|
471
469
|
const p = pe(r !== W.None);
|
|
472
|
-
|
|
470
|
+
q(() => {
|
|
473
471
|
p.current = r !== W.None;
|
|
474
472
|
}, [r]);
|
|
475
473
|
const d = pe(!0);
|
|
476
|
-
|
|
474
|
+
q(() => {
|
|
477
475
|
if (f) {
|
|
478
476
|
d.current = !1;
|
|
479
477
|
return;
|
|
@@ -483,7 +481,7 @@ function bo(t, e, n) {
|
|
|
483
481
|
return;
|
|
484
482
|
}
|
|
485
483
|
}, [f, c]);
|
|
486
|
-
const b =
|
|
484
|
+
const b = dt(async (y, v) => {
|
|
487
485
|
const g = y || t, m = v || e;
|
|
488
486
|
switch (g) {
|
|
489
487
|
case We.Popup:
|
|
@@ -495,15 +493,15 @@ function bo(t, e, n) {
|
|
|
495
493
|
default:
|
|
496
494
|
throw ue.createInvalidInteractionTypeError();
|
|
497
495
|
}
|
|
498
|
-
}, [o, t, e, a]), S =
|
|
496
|
+
}, [o, t, e, a]), S = dt(async (y, v) => {
|
|
499
497
|
const g = y || t;
|
|
500
498
|
let m;
|
|
501
499
|
return v ? (a.trace("useMsalAuthentication - acquireToken - Using request provided in the callback"), m = {
|
|
502
500
|
...v
|
|
503
501
|
}) : (a.trace("useMsalAuthentication - acquireToken - No request object provided, using default request."), m = {
|
|
504
|
-
scopes:
|
|
502
|
+
scopes: Wt
|
|
505
503
|
}), !m.account && l && (a.trace("useMsalAuthentication - acquireToken - Attaching account to request"), m.account = l), (async () => (a.verbose("useMsalAuthentication - Calling acquireTokenSilent"), o.acquireTokenSilent(m).catch(async (x) => {
|
|
506
|
-
if (x instanceof
|
|
504
|
+
if (x instanceof zt) {
|
|
507
505
|
if (p.current)
|
|
508
506
|
throw a.error("useMsalAuthentication - Interaction required but is already in progress. Please try again, if needed, after interaction completes."), ue.createUnableToFallbackToInteractionError();
|
|
509
507
|
return a.error("useMsalAuthentication - Interaction required, falling back to interaction"), b(g, m);
|
|
@@ -520,7 +518,7 @@ function bo(t, e, n) {
|
|
|
520
518
|
l,
|
|
521
519
|
b
|
|
522
520
|
]);
|
|
523
|
-
return
|
|
521
|
+
return q(() => {
|
|
524
522
|
const y = o.addEventCallback((v) => {
|
|
525
523
|
switch (v.eventType) {
|
|
526
524
|
case qe.LOGIN_SUCCESS:
|
|
@@ -539,7 +537,7 @@ function bo(t, e, n) {
|
|
|
539
537
|
return a.verbose(`useMsalAuthentication - Registered event callback with id: ${y}`), () => {
|
|
540
538
|
y && (a.verbose(`useMsalAuthentication - Removing event callback ${y}`), o.removeEventCallback(y));
|
|
541
539
|
};
|
|
542
|
-
}, [o, a]),
|
|
540
|
+
}, [o, a]), q(() => {
|
|
543
541
|
d.current && r === W.None && (i ? l && (d.current = !1, a.info("useMsalAuthentication - User is authenticated, attempting to acquire token"), S().catch(() => {
|
|
544
542
|
})) : (d.current = !1, a.info("useMsalAuthentication - No user is authenticated, attempting to login"), b().catch(() => {
|
|
545
543
|
})));
|
|
@@ -550,15 +548,15 @@ function bo(t, e, n) {
|
|
|
550
548
|
error: f
|
|
551
549
|
};
|
|
552
550
|
}
|
|
553
|
-
const
|
|
554
|
-
const t =
|
|
551
|
+
const yo = () => {
|
|
552
|
+
const t = F.c(1);
|
|
555
553
|
let e;
|
|
556
|
-
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s.jsxs(
|
|
554
|
+
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s.jsxs(Gt, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
|
|
557
555
|
/* @__PURE__ */ s.jsx("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
|
|
558
|
-
/* @__PURE__ */ s.jsx(
|
|
559
|
-
/* @__PURE__ */ s.jsx(
|
|
556
|
+
/* @__PURE__ */ s.jsx(Yt, { variant: "h6", children: Ht.VITE_APP_TITLE }),
|
|
557
|
+
/* @__PURE__ */ s.jsx(Xt, { size: "small", label: "TEST", color: "info" })
|
|
560
558
|
] }), t[0] = e) : e = t[0], e;
|
|
561
|
-
},
|
|
559
|
+
}, nt = 34, vo = at($n)(({
|
|
562
560
|
theme: t
|
|
563
561
|
}) => ({
|
|
564
562
|
borderRadius: 8,
|
|
@@ -579,7 +577,7 @@ const So = () => {
|
|
|
579
577
|
"& .MuiAvatar-root": {
|
|
580
578
|
backgroundColor: (t.vars ?? t).palette.action.active
|
|
581
579
|
}
|
|
582
|
-
})),
|
|
580
|
+
})), bo = at(Fn)(({
|
|
583
581
|
theme: t
|
|
584
582
|
}) => ({
|
|
585
583
|
borderRadius: 8,
|
|
@@ -600,8 +598,8 @@ const So = () => {
|
|
|
600
598
|
"& .MuiAvatar-root": {
|
|
601
599
|
backgroundColor: (t.vars ?? t).palette.action.active
|
|
602
600
|
}
|
|
603
|
-
})),
|
|
604
|
-
const e =
|
|
601
|
+
})), So = (t) => {
|
|
602
|
+
const e = F.c(17), {
|
|
605
603
|
item: n,
|
|
606
604
|
collapsed: o
|
|
607
605
|
} = t;
|
|
@@ -618,22 +616,22 @@ const So = () => {
|
|
|
618
616
|
display: "flex",
|
|
619
617
|
alignItems: "center",
|
|
620
618
|
justifyContent: "center",
|
|
621
|
-
minWidth:
|
|
619
|
+
minWidth: nt
|
|
622
620
|
}, e[2] = a) : a = e[2];
|
|
623
621
|
const i = n.icon ?? null;
|
|
624
622
|
let l;
|
|
625
|
-
e[3] !== o || e[4] !== n.icon || e[5] !== n.title ? (l = !n.icon && o ? /* @__PURE__ */ s.jsx(
|
|
626
|
-
width:
|
|
627
|
-
height:
|
|
623
|
+
e[3] !== o || e[4] !== n.icon || e[5] !== n.title ? (l = !n.icon && o ? /* @__PURE__ */ s.jsx(Mn, { sx: {
|
|
624
|
+
width: nt - 7,
|
|
625
|
+
height: nt - 7,
|
|
628
626
|
fontSize: 12
|
|
629
627
|
}, children: n.title }) : null, e[3] = o, e[4] = n.icon, e[5] = n.title, e[6] = l) : l = e[6];
|
|
630
628
|
let c;
|
|
631
|
-
e[7] !== i || e[8] !== l ? (c = /* @__PURE__ */ s.jsxs(
|
|
629
|
+
e[7] !== i || e[8] !== l ? (c = /* @__PURE__ */ s.jsxs(On, { sx: a, children: [
|
|
632
630
|
i,
|
|
633
631
|
l
|
|
634
632
|
] }), e[7] = i, e[8] = l, e[9] = c) : c = e[9];
|
|
635
633
|
let f;
|
|
636
|
-
e[10] !== o || e[11] !== n.title ? (f = o ? /* @__PURE__ */ s.jsx(
|
|
634
|
+
e[10] !== o || e[11] !== n.title ? (f = o ? /* @__PURE__ */ s.jsx(Un, { variant: "caption", sx: {
|
|
637
635
|
position: "absolute",
|
|
638
636
|
bottom: -18,
|
|
639
637
|
left: "50%",
|
|
@@ -644,17 +642,17 @@ const So = () => {
|
|
|
644
642
|
whiteSpace: "nowrap",
|
|
645
643
|
overflow: "hidden",
|
|
646
644
|
textOverflow: "ellipsis",
|
|
647
|
-
maxWidth:
|
|
645
|
+
maxWidth: Ge - 28
|
|
648
646
|
}, children: n.title }) : null, e[10] = o, e[11] = n.title, e[12] = f) : f = e[12];
|
|
649
647
|
let u;
|
|
650
|
-
return e[13] !== r || e[14] !== c || e[15] !== f ? (u = /* @__PURE__ */ s.jsxs(
|
|
648
|
+
return e[13] !== r || e[14] !== c || e[15] !== f ? (u = /* @__PURE__ */ s.jsxs(Ct, { sx: r, children: [
|
|
651
649
|
c,
|
|
652
650
|
f
|
|
653
651
|
] }), e[13] = r, e[14] = c, e[15] = f, e[16] = u) : u = e[16], u;
|
|
654
652
|
}
|
|
655
653
|
return null;
|
|
656
|
-
},
|
|
657
|
-
const e =
|
|
654
|
+
}, ko = (t) => {
|
|
655
|
+
const e = F.c(10), {
|
|
658
656
|
open: n,
|
|
659
657
|
anchorEl: o,
|
|
660
658
|
children: r
|
|
@@ -689,11 +687,11 @@ const So = () => {
|
|
|
689
687
|
overscrollBehavior: "contain"
|
|
690
688
|
}, e[3] = c) : c = e[3];
|
|
691
689
|
let f;
|
|
692
|
-
e[4] !== r ? (f = /* @__PURE__ */ s.jsx(
|
|
690
|
+
e[4] !== r ? (f = /* @__PURE__ */ s.jsx(Rn, { sx: c, children: r }), e[4] = r, e[5] = f) : f = e[5];
|
|
693
691
|
let u;
|
|
694
|
-
return e[6] !== o || e[7] !== n || e[8] !== f ? (u = /* @__PURE__ */ s.jsx(
|
|
695
|
-
},
|
|
696
|
-
const e =
|
|
692
|
+
return e[6] !== o || e[7] !== n || e[8] !== f ? (u = /* @__PURE__ */ s.jsx(Nn, { open: n, anchorEl: o, placement: "right-start", modifiers: l, children: f }), e[6] = o, e[7] = n, e[8] = f, e[9] = u) : u = e[9], u;
|
|
693
|
+
}, wo = (t) => {
|
|
694
|
+
const e = F.c(57), {
|
|
697
695
|
item: n,
|
|
698
696
|
isOpen: o,
|
|
699
697
|
selected: r,
|
|
@@ -704,7 +702,7 @@ const So = () => {
|
|
|
704
702
|
onClick: f,
|
|
705
703
|
renderNested: u,
|
|
706
704
|
onClose: h
|
|
707
|
-
} = t, p = l === void 0 ? !0 : l, [d, b] =
|
|
705
|
+
} = t, p = l === void 0 ? !0 : l, [d, b] = U(null), [S, y] = U(null);
|
|
708
706
|
let v;
|
|
709
707
|
e[0] !== i || e[1] !== o || e[2] !== c || e[3] !== p || e[4] !== n.children ? (v = () => i && c && n.children ? {
|
|
710
708
|
fontSize: 18,
|
|
@@ -730,11 +728,11 @@ const So = () => {
|
|
|
730
728
|
disabled: a,
|
|
731
729
|
sx: x
|
|
732
730
|
}, e[8] = a, e[9] = r, e[10] = x, e[11] = w) : w = e[11];
|
|
733
|
-
const
|
|
731
|
+
const O = w;
|
|
734
732
|
let A;
|
|
735
|
-
e[12] !== i || e[13] !== n ? (A = /* @__PURE__ */ s.jsx(
|
|
733
|
+
e[12] !== i || e[13] !== n ? (A = /* @__PURE__ */ s.jsx(So, { item: n, collapsed: i }), e[12] = i, e[13] = n, e[14] = A) : A = e[14];
|
|
736
734
|
let T;
|
|
737
|
-
e[15] !== i || e[16] !== n.title ? (T = !i && /* @__PURE__ */ s.jsx(
|
|
735
|
+
e[15] !== i || e[16] !== n.title ? (T = !i && /* @__PURE__ */ s.jsx(Pn, { primary: n.title, slotProps: {
|
|
738
736
|
primary: {
|
|
739
737
|
noWrap: !0,
|
|
740
738
|
title: n.title
|
|
@@ -750,7 +748,7 @@ const So = () => {
|
|
|
750
748
|
}
|
|
751
749
|
} }), e[15] = i, e[16] = n.title, e[17] = T) : T = e[17];
|
|
752
750
|
let I;
|
|
753
|
-
e[18] !== g || e[19] !== n.children ? (I = n.children ? /* @__PURE__ */ s.jsx(
|
|
751
|
+
e[18] !== g || e[19] !== n.children ? (I = n.children ? /* @__PURE__ */ s.jsx(En, { sx: g }) : null, e[18] = g, e[19] = n.children, e[20] = I) : I = e[20];
|
|
754
752
|
let C;
|
|
755
753
|
e[21] !== A || e[22] !== T || e[23] !== I ? (C = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
|
|
756
754
|
A,
|
|
@@ -767,31 +765,31 @@ const So = () => {
|
|
|
767
765
|
b(null);
|
|
768
766
|
}
|
|
769
767
|
} : {}, e[25] = i, e[26] = n.children, e[27] = n.title, e[28] = D) : D = e[28];
|
|
770
|
-
let
|
|
771
|
-
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
768
|
+
let $;
|
|
769
|
+
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($ = {
|
|
772
770
|
py: 0,
|
|
773
771
|
px: 1,
|
|
774
772
|
overflowX: "hidden"
|
|
775
|
-
}, e[29] =
|
|
773
|
+
}, e[29] = $) : $ = e[29];
|
|
776
774
|
let _;
|
|
777
|
-
e[30] !== M || e[31] !==
|
|
775
|
+
e[30] !== M || e[31] !== O || e[32] !== n || e[33] !== f || e[34] !== h || e[35] !== m ? (_ = m ? /* @__PURE__ */ s.jsx(vo, { ...O, onClick: () => f?.(n), children: M }) : /* @__PURE__ */ s.jsx(bo, { ...O, to: n.to, href: n.href, params: n.params, search: n.search, onClick: h, children: M }), e[30] = M, e[31] = O, e[32] = n, e[33] = f, e[34] = h, e[35] = m, e[36] = _) : _ = e[36];
|
|
778
776
|
let j;
|
|
779
|
-
e[37] !== S || e[38] !== i || e[39] !== d || e[40] !== n.children || e[41] !== n.title || e[42] !== u ? (j = n.children && i ? /* @__PURE__ */ s.jsx(
|
|
777
|
+
e[37] !== S || e[38] !== i || e[39] !== d || e[40] !== n.children || e[41] !== n.title || e[42] !== u ? (j = n.children && i ? /* @__PURE__ */ s.jsx(ko, { open: n.title === d, anchorEl: S, children: u?.(n.children) }) : null, e[37] = S, e[38] = i, e[39] = d, e[40] = n.children, e[41] = n.title, e[42] = u, e[43] = j) : j = e[43];
|
|
780
778
|
let L;
|
|
781
|
-
e[44] !== D || e[45] !== _ || e[46] !== j ? (L = /* @__PURE__ */ s.jsxs(
|
|
779
|
+
e[44] !== D || e[45] !== _ || e[46] !== j ? (L = /* @__PURE__ */ s.jsxs(Dn, { ...D, sx: $, children: [
|
|
782
780
|
_,
|
|
783
781
|
j
|
|
784
782
|
] }), e[44] = D, e[45] = _, e[46] = j, e[47] = L) : L = e[47];
|
|
785
783
|
const P = L;
|
|
786
784
|
let E;
|
|
787
|
-
e[48] !== i || e[49] !== o || e[50] !== n.children || e[51] !== u ? (E = n.children && !i ? /* @__PURE__ */ s.jsx(
|
|
785
|
+
e[48] !== i || e[49] !== o || e[50] !== n.children || e[51] !== u ? (E = n.children && !i ? /* @__PURE__ */ s.jsx(Vt, { in: o, timeout: "auto", unmountOnExit: !0, children: u?.(n.children) }) : null, e[48] = i, e[49] = o, e[50] = n.children, e[51] = u, e[52] = E) : E = e[52];
|
|
788
786
|
let R;
|
|
789
|
-
return e[53] !== n.to || e[54] !== P || e[55] !== E ? (R = /* @__PURE__ */ s.jsxs(
|
|
787
|
+
return e[53] !== n.to || e[54] !== P || e[55] !== E ? (R = /* @__PURE__ */ s.jsxs(rt, { children: [
|
|
790
788
|
P,
|
|
791
789
|
E
|
|
792
790
|
] }, n.to), e[53] = n.to, e[54] = P, e[55] = E, e[56] = R) : R = e[56], R;
|
|
793
|
-
},
|
|
794
|
-
const e =
|
|
791
|
+
}, Io = (t) => !("kind" in t), jo = (t) => "kind" in t && t.kind === "divider", it = (t) => "kind" in t && t.kind === "header", Dt = (t) => {
|
|
792
|
+
const e = F.c(31), {
|
|
795
793
|
subNavigation: n,
|
|
796
794
|
depth: o,
|
|
797
795
|
collapsed: r,
|
|
@@ -806,31 +804,31 @@ const So = () => {
|
|
|
806
804
|
} = t, d = o === void 0 ? 0 : o, b = i === void 0 ? !0 : i;
|
|
807
805
|
let S;
|
|
808
806
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = [], e[0] = S) : S = e[0];
|
|
809
|
-
const [y, v] =
|
|
807
|
+
const [y, v] = U(S);
|
|
810
808
|
let g, m;
|
|
811
809
|
e[1] !== r ? (g = () => {
|
|
812
810
|
r && v([]);
|
|
813
|
-
}, m = [r], e[1] = r, e[2] = g, e[3] = m) : (g = e[2], m = e[3]),
|
|
811
|
+
}, m = [r], e[1] = r, e[2] = g, e[3] = m) : (g = e[2], m = e[3]), q(g, m);
|
|
814
812
|
let k;
|
|
815
813
|
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = (T) => v((I) => I.includes(T) ? I.filter((C) => C !== T) : [...I, T]), e[4] = k) : k = e[4];
|
|
816
814
|
const x = k;
|
|
817
815
|
let w;
|
|
818
|
-
e[5] !== u || e[6] !== r || e[7] !== d || e[8] !== c || e[9] !== p || e[10] !== h ? (w = (T) => /* @__PURE__ */ s.jsx(
|
|
819
|
-
const
|
|
816
|
+
e[5] !== u || e[6] !== r || e[7] !== d || e[8] !== c || e[9] !== p || e[10] !== h ? (w = (T) => /* @__PURE__ */ s.jsx(Dt, { subNavigation: T, depth: d + 1, isPopover: r, expandedWidth: c, activePath: u, onNavigate: h, onClose: p }), e[5] = u, e[6] = r, e[7] = d, e[8] = c, e[9] = p, e[10] = h, e[11] = w) : w = e[11];
|
|
817
|
+
const O = w;
|
|
820
818
|
let A;
|
|
821
|
-
if (e[12] !== u || e[13] !== r || e[14] !== d || e[15] !== c || e[16] !== a || e[17] !== l || e[18] !== b || e[19] !== p || e[20] !== y || e[21] !== f || e[22] !==
|
|
822
|
-
const T = n.filter(
|
|
819
|
+
if (e[12] !== u || e[13] !== r || e[14] !== d || e[15] !== c || e[16] !== a || e[17] !== l || e[18] !== b || e[19] !== p || e[20] !== y || e[21] !== f || e[22] !== O || e[23] !== n) {
|
|
820
|
+
const T = n.filter(_o), I = a && d === 1 ? 0.5 : 0, C = d === 0 && !a ? 4 : 0.5, M = (a ? 1 : 2) * (a ? d - 1 : d), D = a && d === 1 ? Qe : "auto", $ = r ? Ge : "auto";
|
|
823
821
|
let _;
|
|
824
|
-
e[25] !== C || e[26] !== M || e[27] !== D || e[28] !==
|
|
822
|
+
e[25] !== C || e[26] !== M || e[27] !== D || e[28] !== $ || e[29] !== I ? (_ = {
|
|
825
823
|
padding: 0,
|
|
826
824
|
mt: I,
|
|
827
825
|
mb: C,
|
|
828
826
|
pl: M,
|
|
829
827
|
minWidth: D,
|
|
830
|
-
width:
|
|
831
|
-
}, e[25] = C, e[26] = M, e[27] = D, e[28] =
|
|
832
|
-
if (
|
|
833
|
-
return /* @__PURE__ */ s.jsx(
|
|
828
|
+
width: $
|
|
829
|
+
}, e[25] = C, e[26] = M, e[27] = D, e[28] = $, e[29] = I, e[30] = _) : _ = e[30], A = /* @__PURE__ */ s.jsx(Ln, { sx: _, children: T.map((j, L) => {
|
|
830
|
+
if (it(j))
|
|
831
|
+
return /* @__PURE__ */ s.jsx(An, { sx: {
|
|
834
832
|
fontSize: 12,
|
|
835
833
|
fontWeight: "700",
|
|
836
834
|
height: r ? 0 : 40,
|
|
@@ -843,39 +841,39 @@ const So = () => {
|
|
|
843
841
|
bgcolor: "transparent",
|
|
844
842
|
position: "static"
|
|
845
843
|
}, children: j.title }, `subheader-${d}-${L}`);
|
|
846
|
-
if (
|
|
844
|
+
if (jo(j)) {
|
|
847
845
|
const R = T[L + 1];
|
|
848
|
-
return /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(
|
|
846
|
+
return /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(Cn, { sx: {
|
|
849
847
|
mx: 1,
|
|
850
848
|
mt: 1,
|
|
851
|
-
mb:
|
|
849
|
+
mb: it(R) && !r ? 0 : 1
|
|
852
850
|
} }) }, `divider-${d}-${L}`);
|
|
853
851
|
}
|
|
854
|
-
if (!
|
|
852
|
+
if (!Io(j))
|
|
855
853
|
return null;
|
|
856
854
|
const P = `item-${d}-${L}`, E = `${d}-${L}-${j.title}`;
|
|
857
|
-
return f ? /* @__PURE__ */ s.jsx(
|
|
855
|
+
return f ? /* @__PURE__ */ s.jsx(rt, { children: f(j, {
|
|
858
856
|
collapsed: !!r
|
|
859
|
-
}) }, P) : /* @__PURE__ */ s.jsx(
|
|
860
|
-
}) }), e[12] = u, e[13] = r, e[14] = d, e[15] = c, e[16] = a, e[17] = l, e[18] = b, e[19] = p, e[20] = y, e[21] = f, e[22] =
|
|
857
|
+
}) }, P) : /* @__PURE__ */ s.jsx(wo, { item: j, isOpen: y.includes(E), selected: u === j.to, collapsed: r, isSidebarFullyExpanded: b, isSidebarFullyCollapsed: l, onClick: j.children && !r ? () => x(E) : void 0, renderNested: O, onClose: p }, P);
|
|
858
|
+
}) }), e[12] = u, e[13] = r, e[14] = d, e[15] = c, e[16] = a, e[17] = l, e[18] = b, e[19] = p, e[20] = y, e[21] = f, e[22] = O, e[23] = n, e[24] = A;
|
|
861
859
|
} else
|
|
862
860
|
A = e[24];
|
|
863
861
|
return A;
|
|
864
862
|
};
|
|
865
|
-
function
|
|
863
|
+
function _o(t) {
|
|
866
864
|
return !t.hidden;
|
|
867
865
|
}
|
|
868
|
-
const
|
|
869
|
-
const e =
|
|
866
|
+
const Ge = 84, Qe = 320, It = 64, To = (t) => {
|
|
867
|
+
const e = F.c(29), {
|
|
870
868
|
navigation: n,
|
|
871
869
|
expanded: o,
|
|
872
870
|
setExpanded: r
|
|
873
|
-
} = t, a =
|
|
871
|
+
} = t, a = _n(), i = Tn(), l = kn();
|
|
874
872
|
let c;
|
|
875
873
|
e[0] !== l.breakpoints ? (c = l.breakpoints.up("sm"), e[0] = l.breakpoints, e[1] = c) : c = e[1];
|
|
876
|
-
const f =
|
|
874
|
+
const f = Zt(c);
|
|
877
875
|
let u;
|
|
878
|
-
e[2] !== o || e[3] !== a || e[4] !== n || e[5] !== i.location.pathname || e[6] !== r || e[7] !== f ? (u = (y) => /* @__PURE__ */ s.jsx(
|
|
876
|
+
e[2] !== o || e[3] !== a || e[4] !== n || e[5] !== i.location.pathname || e[6] !== r || e[7] !== f ? (u = (y) => /* @__PURE__ */ s.jsx(Ct, { component: "nav", sx: {
|
|
879
877
|
height: "100%",
|
|
880
878
|
display: "flex",
|
|
881
879
|
flexDirection: "column",
|
|
@@ -883,11 +881,11 @@ const Ye = 84, Qe = 320, It = 64, Ao = (t) => {
|
|
|
883
881
|
overflow: "auto",
|
|
884
882
|
scrollbarGutter: y ? "stable" : "auto",
|
|
885
883
|
overflowX: "hidden",
|
|
886
|
-
pt: n[0] &&
|
|
887
|
-
}, children: /* @__PURE__ */ s.jsx(
|
|
884
|
+
pt: n[0] && it(n[0]) && !y ? 0 : 2
|
|
885
|
+
}, children: /* @__PURE__ */ s.jsx(Dt, { subNavigation: n, collapsed: y, isSidebarFullyExpanded: o, isSidebarFullyCollapsed: !o, expandedWidth: Qe, activePath: i.location.pathname, onNavigate: a, onClose: f ? void 0 : () => r(!1) }) }), e[2] = o, e[3] = a, e[4] = n, e[5] = i.location.pathname, e[6] = r, e[7] = f, e[8] = u) : u = e[8];
|
|
888
886
|
const h = u;
|
|
889
887
|
if (f) {
|
|
890
|
-
const y = o ? Qe :
|
|
888
|
+
const y = o ? Qe : Ge, v = o ? Qe : Ge;
|
|
891
889
|
let g;
|
|
892
890
|
e[9] !== v ? (g = {
|
|
893
891
|
position: "absolute",
|
|
@@ -915,17 +913,17 @@ const Ye = 84, Qe = 320, It = 64, Ao = (t) => {
|
|
|
915
913
|
e[22] !== h || e[23] !== d ? (b = h(d), e[22] = h, e[23] = d, e[24] = b) : b = e[24];
|
|
916
914
|
let S;
|
|
917
915
|
return e[25] !== o || e[26] !== p || e[27] !== b ? (S = /* @__PURE__ */ s.jsx(gt, { open: o, onClose: p, children: b }), e[25] = o, e[26] = p, e[27] = b, e[28] = S) : S = e[28], S;
|
|
918
|
-
}, jt = "graph",
|
|
916
|
+
}, jt = "graph", st = Yn.create({
|
|
919
917
|
baseURL: "https://graph.microsoft.com/v1.0"
|
|
920
918
|
});
|
|
921
|
-
|
|
922
|
-
const e = await
|
|
919
|
+
st.interceptors.request.use(async (t) => {
|
|
920
|
+
const e = await Kt("graph");
|
|
923
921
|
return t.headers.set("Authorization", `Bearer ${e}`), t;
|
|
924
922
|
});
|
|
925
|
-
const
|
|
923
|
+
const ot = {
|
|
926
924
|
sessionUserDetail: () => pt({
|
|
927
925
|
queryKey: [jt, "me"],
|
|
928
|
-
queryFn: async () => await
|
|
926
|
+
queryFn: async () => await st.request({
|
|
929
927
|
method: "GET",
|
|
930
928
|
url: "/me?$select=displayName,jobTitle"
|
|
931
929
|
}).then((t) => t.data),
|
|
@@ -934,7 +932,7 @@ const it = {
|
|
|
934
932
|
}),
|
|
935
933
|
sessionUserPhoto: () => pt({
|
|
936
934
|
queryKey: [jt, "me", "photo"],
|
|
937
|
-
queryFn: async () => await
|
|
935
|
+
queryFn: async () => await st.request({
|
|
938
936
|
method: "GET",
|
|
939
937
|
url: "/me/photo/$value",
|
|
940
938
|
responseType: "blob"
|
|
@@ -943,23 +941,23 @@ const it = {
|
|
|
943
941
|
gcTime: 1 / 0,
|
|
944
942
|
select: (t) => URL.createObjectURL(t)
|
|
945
943
|
})
|
|
946
|
-
}, _t = (t) => t && t.charAt(0).toUpperCase() + t.slice(1),
|
|
947
|
-
const t =
|
|
944
|
+
}, _t = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), Co = () => {
|
|
945
|
+
const t = F.c(122), [e, n] = U(), [o, r] = U("settings"), a = !!e, {
|
|
948
946
|
t: i,
|
|
949
947
|
i18n: l
|
|
950
|
-
} =
|
|
948
|
+
} = vn(), {
|
|
951
949
|
mode: c,
|
|
952
950
|
setMode: f
|
|
953
|
-
} =
|
|
951
|
+
} = Jt(), u = wn(), {
|
|
954
952
|
instance: h
|
|
955
953
|
} = he();
|
|
956
954
|
let p;
|
|
957
|
-
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p =
|
|
955
|
+
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = ot.sessionUserPhoto(), t[0] = p) : p = t[0];
|
|
958
956
|
const {
|
|
959
957
|
data: d
|
|
960
958
|
} = ht(p);
|
|
961
959
|
let b;
|
|
962
|
-
t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b =
|
|
960
|
+
t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = ot.sessionUserDetail(), t[1] = b) : b = t[1];
|
|
963
961
|
let S;
|
|
964
962
|
t[2] !== a ? (S = {
|
|
965
963
|
...b,
|
|
@@ -968,9 +966,9 @@ const it = {
|
|
|
968
966
|
const {
|
|
969
967
|
data: y
|
|
970
968
|
} = ht(S);
|
|
971
|
-
let v, g, m, k, x, w,
|
|
969
|
+
let v, g, m, k, x, w, O;
|
|
972
970
|
if (t[4] !== l || t[5] !== c || t[6] !== f || t[7] !== i) {
|
|
973
|
-
const
|
|
971
|
+
const Ot = (Array.isArray(l.options.supportedLngs) ? l.options.supportedLngs : []).filter(Lo), lt = new Intl.DisplayNames([l.language], {
|
|
974
972
|
type: "language"
|
|
975
973
|
});
|
|
976
974
|
let Q;
|
|
@@ -978,7 +976,7 @@ const it = {
|
|
|
978
976
|
let G;
|
|
979
977
|
t[17] !== Q ? (G = {
|
|
980
978
|
mode: "light",
|
|
981
|
-
icon:
|
|
979
|
+
icon: Hn,
|
|
982
980
|
label: Q
|
|
983
981
|
}, t[17] = Q, t[18] = G) : G = t[18];
|
|
984
982
|
let Y;
|
|
@@ -986,7 +984,7 @@ const it = {
|
|
|
986
984
|
let X;
|
|
987
985
|
t[21] !== Y ? (X = {
|
|
988
986
|
mode: "dark",
|
|
989
|
-
icon:
|
|
987
|
+
icon: zn,
|
|
990
988
|
label: Y
|
|
991
989
|
}, t[21] = Y, t[22] = X) : X = t[22];
|
|
992
990
|
let V;
|
|
@@ -994,7 +992,7 @@ const it = {
|
|
|
994
992
|
let Z;
|
|
995
993
|
t[25] !== V ? (Z = {
|
|
996
994
|
mode: "system",
|
|
997
|
-
icon:
|
|
995
|
+
icon: Qn,
|
|
998
996
|
label: V
|
|
999
997
|
}, t[25] = V, t[26] = Z) : Z = t[26];
|
|
1000
998
|
let xe;
|
|
@@ -1016,18 +1014,18 @@ const it = {
|
|
|
1016
1014
|
let J;
|
|
1017
1015
|
t[35] !== i ? (J = i("Layout.Settings"), t[35] = i, t[36] = J) : J = t[36];
|
|
1018
1016
|
let ee;
|
|
1019
|
-
t[37] !== J ? (ee = /* @__PURE__ */ s.jsx(
|
|
1017
|
+
t[37] !== J ? (ee = /* @__PURE__ */ s.jsx(et, { sx: we, children: J }), t[37] = J, t[38] = ee) : ee = t[38];
|
|
1020
1018
|
let Ie, je;
|
|
1021
1019
|
t[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ie = ke("theme"), je = {
|
|
1022
1020
|
py: 0.3
|
|
1023
1021
|
}, t[39] = Ie, t[40] = je) : (Ie = t[39], je = t[40]);
|
|
1024
1022
|
let _e;
|
|
1025
|
-
t[41] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_e = /* @__PURE__ */ s.jsx(me, { children: /* @__PURE__ */ s.jsx(
|
|
1023
|
+
t[41] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_e = /* @__PURE__ */ s.jsx(me, { children: /* @__PURE__ */ s.jsx(Bn, {}) }), t[41] = _e) : _e = t[41];
|
|
1026
1024
|
let te;
|
|
1027
1025
|
t[42] !== i ? (te = i("Layout.Appearance"), t[42] = i, t[43] = te) : te = t[43];
|
|
1028
|
-
const
|
|
1026
|
+
const Ve = ye.find((N) => N.mode === c)?.label;
|
|
1029
1027
|
let ne;
|
|
1030
|
-
t[44] !== te || t[45] !==
|
|
1028
|
+
t[44] !== te || t[45] !== Ve ? (ne = /* @__PURE__ */ s.jsx(B, { primary: te, secondary: Ve }), t[44] = te, t[45] = Ve, t[46] = ne) : ne = t[46];
|
|
1031
1029
|
let Te;
|
|
1032
1030
|
t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Te = /* @__PURE__ */ s.jsx(yt, {}), t[47] = Te) : Te = t[47];
|
|
1033
1031
|
let oe;
|
|
@@ -1041,29 +1039,29 @@ const it = {
|
|
|
1041
1039
|
py: 0.3
|
|
1042
1040
|
}, t[50] = Ce, t[51] = Le) : (Ce = t[50], Le = t[51]);
|
|
1043
1041
|
let Ae;
|
|
1044
|
-
t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ae = /* @__PURE__ */ s.jsx(me, { children: /* @__PURE__ */ s.jsx(
|
|
1042
|
+
t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ae = /* @__PURE__ */ s.jsx(me, { children: /* @__PURE__ */ s.jsx(Gn, {}) }), t[52] = Ae) : Ae = t[52];
|
|
1045
1043
|
let Ee;
|
|
1046
1044
|
t[53] !== i ? (Ee = i("Layout.Language"), t[53] = i, t[54] = Ee) : Ee = t[54];
|
|
1047
1045
|
let Me;
|
|
1048
1046
|
t[55] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Me = /* @__PURE__ */ s.jsx(yt, {}), t[55] = Me) : Me = t[55];
|
|
1049
|
-
const
|
|
1047
|
+
const Ze = /* @__PURE__ */ s.jsxs(fe, { onClick: Ce, sx: Le, children: [
|
|
1050
1048
|
Ae,
|
|
1051
|
-
/* @__PURE__ */ s.jsx(
|
|
1049
|
+
/* @__PURE__ */ s.jsx(B, { primary: Ee, secondary: _t(lt.of(l.language)) }),
|
|
1052
1050
|
Me
|
|
1053
1051
|
] });
|
|
1054
1052
|
let De;
|
|
1055
|
-
t[56] !== ee || t[57] !== oe || t[58] !==
|
|
1053
|
+
t[56] !== ee || t[57] !== oe || t[58] !== Ze ? (De = /* @__PURE__ */ s.jsxs(Be, { component: "nav", subheader: ee, children: [
|
|
1056
1054
|
oe,
|
|
1057
|
-
|
|
1058
|
-
] }), t[56] = ee, t[57] = oe, t[58] =
|
|
1059
|
-
let
|
|
1060
|
-
t[60] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1055
|
+
Ze
|
|
1056
|
+
] }), t[56] = ee, t[57] = oe, t[58] = Ze, t[59] = De) : De = t[59], k = De;
|
|
1057
|
+
let $e, Oe;
|
|
1058
|
+
t[60] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($e = ke("settings"), Oe = {
|
|
1061
1059
|
backgroundColor: "transparent",
|
|
1062
1060
|
display: "flex",
|
|
1063
1061
|
alignItems: "center",
|
|
1064
1062
|
px: 1,
|
|
1065
1063
|
cursor: "pointer"
|
|
1066
|
-
}, t[60] =
|
|
1064
|
+
}, t[60] = $e, t[61] = Oe) : ($e = t[60], Oe = t[61]);
|
|
1067
1065
|
let Pe;
|
|
1068
1066
|
t[62] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Pe = /* @__PURE__ */ s.jsx(He, { size: "small", sx: {
|
|
1069
1067
|
mr: 0.5
|
|
@@ -1071,7 +1069,7 @@ const it = {
|
|
|
1071
1069
|
let ie;
|
|
1072
1070
|
t[63] !== i ? (ie = i("Layout.Appearance"), t[63] = i, t[64] = ie) : ie = t[64];
|
|
1073
1071
|
let se;
|
|
1074
|
-
t[65] !== ie ? (se = /* @__PURE__ */ s.jsxs(
|
|
1072
|
+
t[65] !== ie ? (se = /* @__PURE__ */ s.jsxs(et, { onClick: $e, sx: Oe, children: [
|
|
1075
1073
|
Pe,
|
|
1076
1074
|
" ",
|
|
1077
1075
|
ie
|
|
@@ -1079,19 +1077,19 @@ const it = {
|
|
|
1079
1077
|
let re;
|
|
1080
1078
|
t[67] !== ye || t[68] !== c || t[69] !== f ? (re = ye.map((N) => {
|
|
1081
1079
|
const {
|
|
1082
|
-
mode:
|
|
1083
|
-
icon:
|
|
1084
|
-
label:
|
|
1080
|
+
mode: Je,
|
|
1081
|
+
icon: Pt,
|
|
1082
|
+
label: Rt
|
|
1085
1083
|
} = N;
|
|
1086
1084
|
return /* @__PURE__ */ s.jsxs(fe, { onClick: () => {
|
|
1087
|
-
f(
|
|
1088
|
-
}, selected: c ===
|
|
1089
|
-
/* @__PURE__ */ s.jsx(me, { children: /* @__PURE__ */ s.jsx(
|
|
1090
|
-
/* @__PURE__ */ s.jsx(
|
|
1091
|
-
] },
|
|
1085
|
+
f(Je), g();
|
|
1086
|
+
}, selected: c === Je, children: [
|
|
1087
|
+
/* @__PURE__ */ s.jsx(me, { children: /* @__PURE__ */ s.jsx(Pt, {}) }),
|
|
1088
|
+
/* @__PURE__ */ s.jsx(B, { primary: Rt })
|
|
1089
|
+
] }, Je);
|
|
1092
1090
|
}), t[67] = ye, t[68] = c, t[69] = f, t[70] = re) : re = t[70];
|
|
1093
1091
|
let Re;
|
|
1094
|
-
t[71] !== se || t[72] !== re ? (Re = /* @__PURE__ */ s.jsx(Be, { subheader: se, children: re }), t[71] = se, t[72] = re, t[73] = Re) : Re = t[73],
|
|
1092
|
+
t[71] !== se || t[72] !== re ? (Re = /* @__PURE__ */ s.jsx(Be, { subheader: se, children: re }), t[71] = se, t[72] = re, t[73] = Re) : Re = t[73], O = Re, v = Be;
|
|
1095
1093
|
let Ne, Ue;
|
|
1096
1094
|
t[74] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ne = ke("settings"), Ue = {
|
|
1097
1095
|
backgroundColor: "transparent",
|
|
@@ -1105,23 +1103,23 @@ const it = {
|
|
|
1105
1103
|
mr: 0.5
|
|
1106
1104
|
}, children: /* @__PURE__ */ s.jsx(xt, { fontSize: "small" }) }), t[76] = Fe) : Fe = t[76];
|
|
1107
1105
|
let ae;
|
|
1108
|
-
t[77] !== i ? (ae = i("Layout.Language"), t[77] = i, t[78] = ae) : ae = t[78], t[79] !== ae ? (x = /* @__PURE__ */ s.jsxs(
|
|
1106
|
+
t[77] !== i ? (ae = i("Layout.Language"), t[77] = i, t[78] = ae) : ae = t[78], t[79] !== ae ? (x = /* @__PURE__ */ s.jsxs(et, { onClick: Ne, sx: Ue, children: [
|
|
1109
1107
|
Fe,
|
|
1110
1108
|
" ",
|
|
1111
1109
|
ae
|
|
1112
|
-
] }), t[79] = ae, t[80] = x) : x = t[80], w =
|
|
1113
|
-
/* @__PURE__ */ s.jsx(me, { children: l.resolvedLanguage === N && /* @__PURE__ */ s.jsx(
|
|
1114
|
-
/* @__PURE__ */ s.jsx(
|
|
1115
|
-
] }, N)), t[4] = l, t[5] = c, t[6] = f, t[7] = i, t[8] = v, t[9] = g, t[10] = m, t[11] = k, t[12] = x, t[13] = w, t[14] =
|
|
1110
|
+
] }), t[79] = ae, t[80] = x) : x = t[80], w = Ot.map((N) => /* @__PURE__ */ s.jsxs(fe, { onClick: () => l.changeLanguage(N).finally(() => g()), selected: l.resolvedLanguage === N, children: [
|
|
1111
|
+
/* @__PURE__ */ s.jsx(me, { children: l.resolvedLanguage === N && /* @__PURE__ */ s.jsx(Wn, {}) }),
|
|
1112
|
+
/* @__PURE__ */ s.jsx(B, { primary: _t(lt.of(N)) })
|
|
1113
|
+
] }, N)), t[4] = l, t[5] = c, t[6] = f, t[7] = i, t[8] = v, t[9] = g, t[10] = m, t[11] = k, t[12] = x, t[13] = w, t[14] = O;
|
|
1116
1114
|
} else
|
|
1117
|
-
v = t[8], g = t[9], m = t[10], k = t[11], x = t[12], w = t[13],
|
|
1115
|
+
v = t[8], g = t[9], m = t[10], k = t[11], x = t[12], w = t[13], O = t[14];
|
|
1118
1116
|
let A;
|
|
1119
1117
|
t[81] !== v || t[82] !== x || t[83] !== w ? (A = /* @__PURE__ */ s.jsx(v, { subheader: x, children: w }), t[81] = v, t[82] = x, t[83] = w, t[84] = A) : A = t[84];
|
|
1120
1118
|
const T = A;
|
|
1121
1119
|
let I;
|
|
1122
|
-
t[85] !== u ? (I = () => u.prefetchQuery(
|
|
1120
|
+
t[85] !== u ? (I = () => u.prefetchQuery(ot.sessionUserDetail()), t[85] = u, t[86] = I) : I = t[86];
|
|
1123
1121
|
let C;
|
|
1124
|
-
t[87] !== d ? (C = d ? /* @__PURE__ */ s.jsx(
|
|
1122
|
+
t[87] !== d ? (C = d ? /* @__PURE__ */ s.jsx(tn, { src: d, sx: {
|
|
1125
1123
|
width: {
|
|
1126
1124
|
xs: 32,
|
|
1127
1125
|
sm: 40
|
|
@@ -1130,7 +1128,7 @@ const it = {
|
|
|
1130
1128
|
xs: 32,
|
|
1131
1129
|
sm: 40
|
|
1132
1130
|
}
|
|
1133
|
-
} }) : /* @__PURE__ */ s.jsx(
|
|
1131
|
+
} }) : /* @__PURE__ */ s.jsx(qn, { sx: {
|
|
1134
1132
|
width: {
|
|
1135
1133
|
xs: 32,
|
|
1136
1134
|
sm: 40
|
|
@@ -1146,51 +1144,48 @@ const it = {
|
|
|
1146
1144
|
t[93] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = {
|
|
1147
1145
|
width: 240
|
|
1148
1146
|
}, t[93] = D) : D = t[93];
|
|
1149
|
-
let
|
|
1150
|
-
t[94] !== y ? (
|
|
1147
|
+
let $;
|
|
1148
|
+
t[94] !== y ? ($ = /* @__PURE__ */ s.jsx(en, { children: y ? /* @__PURE__ */ s.jsx(B, { primary: y.displayName.split("/")[0], secondary: y.jobTitle }) : /* @__PURE__ */ s.jsx(B, { primary: /* @__PURE__ */ s.jsx(ct, {}), secondary: /* @__PURE__ */ s.jsx(ct, {}) }) }), t[94] = y, t[95] = $) : $ = t[95];
|
|
1151
1149
|
let _;
|
|
1152
1150
|
t[96] !== h ? (_ = () => h.logoutRedirect({
|
|
1153
1151
|
postLogoutRedirectUri: "/"
|
|
1154
1152
|
}), t[96] = h, t[97] = _) : _ = t[97];
|
|
1155
1153
|
let j;
|
|
1156
|
-
t[98] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ s.jsx(me, { children: /* @__PURE__ */ s.jsx(
|
|
1154
|
+
t[98] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ s.jsx(me, { children: /* @__PURE__ */ s.jsx(Kn, { color: "error" }) }), t[98] = j) : j = t[98];
|
|
1157
1155
|
let L;
|
|
1158
1156
|
t[99] !== i ? (L = i("Layout.Logout"), t[99] = i, t[100] = L) : L = t[100];
|
|
1159
1157
|
let P;
|
|
1160
|
-
t[101] !== L ? (P = /* @__PURE__ */ s.jsx(
|
|
1158
|
+
t[101] !== L ? (P = /* @__PURE__ */ s.jsx(B, { primary: L }), t[101] = L, t[102] = P) : P = t[102];
|
|
1161
1159
|
let E;
|
|
1162
1160
|
t[103] !== _ || t[104] !== P ? (E = /* @__PURE__ */ s.jsxs(fe, { onClick: _, children: [
|
|
1163
1161
|
j,
|
|
1164
1162
|
P
|
|
1165
1163
|
] }), t[103] = _, t[104] = P, t[105] = E) : E = t[105];
|
|
1166
1164
|
let R;
|
|
1167
|
-
t[106] !==
|
|
1168
|
-
|
|
1165
|
+
t[106] !== $ || t[107] !== E ? (R = /* @__PURE__ */ s.jsxs(Be, { disablePadding: !0, children: [
|
|
1166
|
+
$,
|
|
1169
1167
|
E
|
|
1170
|
-
] }), t[106] =
|
|
1171
|
-
const de = o === "settings" && k,
|
|
1168
|
+
] }), t[106] = $, t[107] = E, t[108] = R) : R = t[108];
|
|
1169
|
+
const de = o === "settings" && k, Ye = o === "theme" && O, Xe = o === "language" && T;
|
|
1172
1170
|
let H;
|
|
1173
|
-
t[109] !== R || t[110] !== de || t[111] !==
|
|
1171
|
+
t[109] !== R || t[110] !== de || t[111] !== Ye || t[112] !== Xe ? (H = /* @__PURE__ */ s.jsxs(Ke, { sx: D, children: [
|
|
1174
1172
|
R,
|
|
1175
1173
|
de,
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
] }), t[109] = R, t[110] = de, t[111] =
|
|
1174
|
+
Ye,
|
|
1175
|
+
Xe
|
|
1176
|
+
] }), t[109] = R, t[110] = de, t[111] = Ye, t[112] = Xe, t[113] = H) : H = t[113];
|
|
1179
1177
|
let K;
|
|
1180
|
-
t[114] !== e || t[115] !== g || t[116] !== a || t[117] !== H ? (K = /* @__PURE__ */ s.jsx(
|
|
1178
|
+
t[114] !== e || t[115] !== g || t[116] !== a || t[117] !== H ? (K = /* @__PURE__ */ s.jsx(nn, { anchorEl: e, open: a, onClose: g, children: H }), t[114] = e, t[115] = g, t[116] = a, t[117] = H, t[118] = K) : K = t[118];
|
|
1181
1179
|
let ge;
|
|
1182
|
-
return t[119] !== K || t[120] !== M ? (ge = /* @__PURE__ */ s.jsxs(
|
|
1180
|
+
return t[119] !== K || t[120] !== M ? (ge = /* @__PURE__ */ s.jsxs(rt, { children: [
|
|
1183
1181
|
M,
|
|
1184
1182
|
K
|
|
1185
1183
|
] }), t[119] = K, t[120] = M, t[121] = ge) : ge = t[121], ge;
|
|
1186
1184
|
};
|
|
1187
|
-
function
|
|
1185
|
+
function Lo(t) {
|
|
1188
1186
|
return t !== "cimode";
|
|
1189
1187
|
}
|
|
1190
|
-
const
|
|
1191
|
-
const t = document.cookie.split("; ").find((e) => e.startsWith("navigationOpen="));
|
|
1192
|
-
return t ? t.split("=")[1] === "true" : !1;
|
|
1193
|
-
}), Oo = lt("div")(({
|
|
1188
|
+
const $t = 3600 * 24 * 365, Ao = at("div")(({
|
|
1194
1189
|
theme: t
|
|
1195
1190
|
}) => ({
|
|
1196
1191
|
display: "flex",
|
|
@@ -1198,12 +1193,12 @@ const Pt = 3600 * 24 * 365, Do = pn().server(() => Tt("navigationOpen") === "tru
|
|
|
1198
1193
|
justifyContent: "flex-end",
|
|
1199
1194
|
padding: t.spacing(0, 1),
|
|
1200
1195
|
...t.mixins.toolbar
|
|
1201
|
-
})),
|
|
1202
|
-
const e =
|
|
1203
|
-
|
|
1204
|
-
const [n, o] =
|
|
1196
|
+
})), Eo = (t) => {
|
|
1197
|
+
const e = F.c(29);
|
|
1198
|
+
xo(We.Redirect);
|
|
1199
|
+
const [n, o] = U(!1), r = !!In(), a = !!jn();
|
|
1205
1200
|
let i, l;
|
|
1206
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ s.jsx(
|
|
1201
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ s.jsx(on, {}), l = /* @__PURE__ */ s.jsx(sn, {}), e[0] = i, e[1] = l) : (i = e[0], l = e[1]);
|
|
1207
1202
|
let c;
|
|
1208
1203
|
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
|
|
1209
1204
|
display: "flex",
|
|
@@ -1220,21 +1215,21 @@ const Pt = 3600 * 24 * 365, Do = pn().server(() => Tt("navigationOpen") === "tru
|
|
|
1220
1215
|
}, e[3] = f) : f = e[3];
|
|
1221
1216
|
let u;
|
|
1222
1217
|
e[4] !== n || e[5] !== t.navigation ? (u = t.navigation && /* @__PURE__ */ s.jsx(He, { onClick: () => {
|
|
1223
|
-
o(
|
|
1218
|
+
o(Mo);
|
|
1224
1219
|
}, sx: {
|
|
1225
1220
|
marginRight: 2
|
|
1226
|
-
}, children: n ? /* @__PURE__ */ s.jsx(
|
|
1221
|
+
}, children: n ? /* @__PURE__ */ s.jsx(Sn, {}) : /* @__PURE__ */ s.jsx(bn, {}) }), e[4] = n, e[5] = t.navigation, e[6] = u) : u = e[6];
|
|
1227
1222
|
let h, p;
|
|
1228
|
-
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ s.jsx(
|
|
1223
|
+
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ s.jsx(yo, {}), p = /* @__PURE__ */ s.jsx(Co, {}), e[7] = h, e[8] = p) : (h = e[7], p = e[8]);
|
|
1229
1224
|
let d;
|
|
1230
|
-
e[9] !== u ? (d = /* @__PURE__ */ s.jsx(
|
|
1225
|
+
e[9] !== u ? (d = /* @__PURE__ */ s.jsx(rn, { color: "transparent", position: "fixed", sx: f, children: /* @__PURE__ */ s.jsxs(an, { children: [
|
|
1231
1226
|
u,
|
|
1232
1227
|
h,
|
|
1233
1228
|
p
|
|
1234
1229
|
] }) }), e[9] = u, e[10] = d) : d = e[10];
|
|
1235
1230
|
let b;
|
|
1236
|
-
e[11] !== n || e[12] !== t.navigation ? (b = t.navigation && /* @__PURE__ */ s.jsx(
|
|
1237
|
-
o(w), document.cookie = `navigationOpen=${w}; max-age=${
|
|
1231
|
+
e[11] !== n || e[12] !== t.navigation ? (b = t.navigation && /* @__PURE__ */ s.jsx(To, { navigation: t.navigation, expanded: n, setExpanded: (w) => {
|
|
1232
|
+
o(w), document.cookie = `navigationOpen=${w}; max-age=${$t}; path=/`;
|
|
1238
1233
|
} }), e[11] = n, e[12] = t.navigation, e[13] = b) : b = e[13];
|
|
1239
1234
|
let S, y;
|
|
1240
1235
|
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = {
|
|
@@ -1244,7 +1239,7 @@ const Pt = 3600 * 24 * 365, Do = pn().server(() => Tt("navigationOpen") === "tru
|
|
|
1244
1239
|
minWidth: 0,
|
|
1245
1240
|
height: "100%",
|
|
1246
1241
|
overflow: "hidden"
|
|
1247
|
-
}, S = /* @__PURE__ */ s.jsx(
|
|
1242
|
+
}, S = /* @__PURE__ */ s.jsx(Ao, {}), e[14] = S, e[15] = y) : (S = e[14], y = e[15]);
|
|
1248
1243
|
let v;
|
|
1249
1244
|
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
|
|
1250
1245
|
flex: 1,
|
|
@@ -1263,7 +1258,7 @@ const Pt = 3600 * 24 * 365, Do = pn().server(() => Tt("navigationOpen") === "tru
|
|
|
1263
1258
|
g
|
|
1264
1259
|
] }), e[19] = g, e[20] = d, e[21] = b, e[22] = m) : m = e[22];
|
|
1265
1260
|
let k;
|
|
1266
|
-
e[23] !== r || e[24] !== a ? (k = (r || a) && /* @__PURE__ */ s.jsx(
|
|
1261
|
+
e[23] !== r || e[24] !== a ? (k = (r || a) && /* @__PURE__ */ s.jsx(ln, { sx: {
|
|
1267
1262
|
position: "fixed",
|
|
1268
1263
|
top: {
|
|
1269
1264
|
xs: 56,
|
|
@@ -1273,58 +1268,54 @@ const Pt = 3600 * 24 * 365, Do = pn().server(() => Tt("navigationOpen") === "tru
|
|
|
1273
1268
|
right: 0
|
|
1274
1269
|
} }), e[23] = r, e[24] = a, e[25] = k) : k = e[25];
|
|
1275
1270
|
let x;
|
|
1276
|
-
return e[26] !== m || e[27] !== k ? (x = /* @__PURE__ */ s.jsxs(
|
|
1271
|
+
return e[26] !== m || e[27] !== k ? (x = /* @__PURE__ */ s.jsxs(ho, { children: [
|
|
1277
1272
|
i,
|
|
1278
1273
|
l,
|
|
1279
1274
|
m,
|
|
1280
1275
|
k
|
|
1281
1276
|
] }), e[26] = m, e[27] = k, e[28] = x) : x = e[28], x;
|
|
1282
1277
|
};
|
|
1283
|
-
function
|
|
1278
|
+
function Mo(t) {
|
|
1284
1279
|
const e = !t;
|
|
1285
|
-
return document.cookie = `navigationOpen=${e}; max-age=${
|
|
1280
|
+
return document.cookie = `navigationOpen=${e}; max-age=${$t}; path=/`, e;
|
|
1286
1281
|
}
|
|
1287
|
-
const
|
|
1288
|
-
|
|
1289
|
-
resources:
|
|
1282
|
+
const Do = 1440 * 365;
|
|
1283
|
+
z.use(Et).use(fo).init({
|
|
1284
|
+
resources: ft,
|
|
1290
1285
|
fallbackLng: "en",
|
|
1291
|
-
supportedLngs: Object.keys(
|
|
1286
|
+
supportedLngs: Object.keys(ft),
|
|
1292
1287
|
detection: {
|
|
1293
1288
|
caches: ["cookie"],
|
|
1294
|
-
cookieMinutes:
|
|
1289
|
+
cookieMinutes: Do
|
|
1295
1290
|
},
|
|
1296
1291
|
interpolation: {
|
|
1297
1292
|
escapeValue: !1
|
|
1298
1293
|
}
|
|
1299
1294
|
});
|
|
1300
|
-
const
|
|
1301
|
-
const e =
|
|
1295
|
+
const wi = (t) => {
|
|
1296
|
+
const e = F.c(9), {
|
|
1302
1297
|
navigation: n,
|
|
1303
1298
|
theme: o,
|
|
1304
1299
|
children: r
|
|
1305
|
-
} = t, a =
|
|
1300
|
+
} = t, a = hn($o);
|
|
1306
1301
|
let i;
|
|
1307
|
-
e[0] !== a ? (i = () => (a(),
|
|
1308
|
-
|
|
1302
|
+
e[0] !== a ? (i = () => (a(), z.on("languageChanged", a), () => {
|
|
1303
|
+
z.off("languageChanged", a);
|
|
1309
1304
|
}), e[0] = a, e[1] = i) : i = e[1];
|
|
1310
1305
|
let l;
|
|
1311
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [], e[2] = l) : l = e[2],
|
|
1306
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [], e[2] = l) : l = e[2], q(i, l);
|
|
1312
1307
|
let c;
|
|
1313
|
-
e[3] !== r || e[4] !== n ? (c = /* @__PURE__ */ s.jsx(
|
|
1308
|
+
e[3] !== r || e[4] !== n ? (c = /* @__PURE__ */ s.jsx(un, { dateAdapter: dn, adapterLocale: z.language, children: /* @__PURE__ */ s.jsx(mo, { children: /* @__PURE__ */ s.jsx(Qt, { children: /* @__PURE__ */ s.jsx(Eo, { navigation: n, children: r }) }) }) }, z.language), e[3] = r, e[4] = n, e[5] = c) : c = e[5];
|
|
1314
1309
|
let f;
|
|
1315
|
-
return e[6] !== c || e[7] !== o ? (f = /* @__PURE__ */ s.jsx(
|
|
1316
|
-
}
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
});
|
|
1320
|
-
function No() {
|
|
1321
|
-
Ge.config(Ge.core.locales[U.language]()), Ct.locale(U.language);
|
|
1310
|
+
return e[6] !== c || e[7] !== o ? (f = /* @__PURE__ */ s.jsx(cn, { theme: o, children: c }), e[6] = c, e[7] = o, e[8] = f) : f = e[8], f;
|
|
1311
|
+
};
|
|
1312
|
+
function $o() {
|
|
1313
|
+
mt.config(mt.core.locales[z.language]()), fn.locale(z.language);
|
|
1322
1314
|
}
|
|
1323
1315
|
export {
|
|
1324
|
-
|
|
1325
|
-
|
|
1326
|
-
|
|
1327
|
-
|
|
1328
|
-
Ai as setSSRLanguage
|
|
1316
|
+
wi as LayoutProvider,
|
|
1317
|
+
_i as WISTRON_PRIMARY_COLOR,
|
|
1318
|
+
Ti as WISTRON_SECONDARY_COLOR,
|
|
1319
|
+
Ci as rootRouteHead
|
|
1329
1320
|
};
|
|
1330
1321
|
//# sourceMappingURL=index.js.map
|