wcz-test 7.1.3 → 7.2.1

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