wcz-test 7.1.3 → 7.2.0

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