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