wcz-test 6.28.0 → 7.0.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.
package/dist/index.js CHANGED
@@ -1,79 +1,80 @@
1
- import { s as pt, a as ht, j as s, D as gt, u as xt } from "./DialogsContext-CGAKEKKW.js";
1
+ import { s as Lt, a as Ct, j as i, D as It, u as Dt } from "./DialogsContext-CGAKEKKW.js";
2
2
  import { c as B } from "./compiler-runtime-BNHg76kC.js";
3
- import { Stack as yt, Typography as vt, Chip as St, Collapse as bt, useMediaQuery as kt, useColorScheme as wt, ListItemButton as ne, ListItemText as ie, ListItemIcon as se, ListSubheader as Be, List as Te, IconButton as Ee, ListItem as jt, Box as $e, Menu as _t, InitColorSchemeScript as Lt, CssBaseline as It, AppBar as Ct, Toolbar as Dt, LinearProgress as Tt, ThemeProvider as Et } from "@mui/material";
4
- import { LocalizationProvider as $t } from "@mui/x-date-pickers";
5
- import { AdapterDayjs as Mt } from "@mui/x-date-pickers/AdapterDayjs";
6
- import { createIsomorphicFn as At, createServerFn as Ot } from "@tanstack/react-start";
7
- import { getCookie as nt } from "@tanstack/react-start/server";
8
- import it from "dayjs";
3
+ import { Stack as Tt, Typography as Et, Chip as $t, Collapse as At, useMediaQuery as Mt, useColorScheme as Ot, ListItemButton as ce, ListItemText as z, ListItemIcon as de, ListItem as Pt, Skeleton as tt, ListSubheader as Ye, List as Pe, IconButton as Ne, Avatar as Nt, Box as Re, Menu as Rt, InitColorSchemeScript as Ft, CssBaseline as Bt, AppBar as zt, Toolbar as Ut, LinearProgress as Wt, ThemeProvider as Ht } from "@mui/material";
4
+ import { LocalizationProvider as qt } from "@mui/x-date-pickers";
5
+ import { AdapterDayjs as Qt } from "@mui/x-date-pickers/AdapterDayjs";
6
+ import { createIsomorphicFn as Kt, createServerFn as Yt } from "@tanstack/react-start";
7
+ import { getCookie as pt } from "@tanstack/react-start/server";
8
+ import ht from "dayjs";
9
9
  import { i as F } from "./i18next-Bx3TmZAT.js";
10
- import { useState as W, useId as Pt, useRef as qe, Fragment as Pe, useEffect as st, Suspense as Nt, useEffectEvent as Rt } from "react";
11
- import { resources as Ke } from "virtual:wcz-layout";
12
- import Ae from "zod";
13
- import ze from "@mui/utils/useEventCallback";
14
- import Ft from "@mui/icons-material/Menu";
15
- import Bt from "@mui/icons-material/MenuOpen";
16
- import { styled as He, useTheme as zt } from "@mui/material/styles";
17
- import { useIsFetching as Wt, useIsMutating as Ut } from "@tanstack/react-query";
18
- import { a as Ht } from "./utils-DV30kRxW.js";
19
- import { W as qn, b as Kn, r as Yn } from "./utils-DV30kRxW.js";
20
- import rt from "@mui/material/Box";
21
- import Ye from "@mui/material/Drawer";
22
- import { useNavigate as qt, useRouterState as Kt } from "@tanstack/react-router";
23
- import Yt from "@mui/material/Divider";
24
- import Xt from "@mui/material/List";
25
- import Gt from "@mui/material/ListSubheader";
26
- import Qt from "@mui/icons-material/ExpandMore";
27
- import Vt from "@mui/material/Avatar";
28
- import Zt from "@mui/material/ListItem";
29
- import Jt from "@mui/material/ListItemButton";
30
- import eo from "@mui/material/ListItemIcon";
31
- import to from "@mui/material/ListItemText";
32
- import oo from "@mui/material/Paper";
33
- import no from "@mui/material/Popper";
34
- import io from "@mui/material/Typography";
35
- import { R as so } from "./RouterListItemButton-C_jUvB6C.js";
36
- import Xe from "@mui/icons-material/AccountCircle";
37
- import Ge from "@mui/icons-material/ArrowBack";
38
- import ro from "@mui/icons-material/Brightness4";
39
- import Qe from "@mui/icons-material/ChevronRight";
40
- import lo from "@mui/icons-material/DarkMode";
41
- import ao from "@mui/icons-material/Done";
42
- import co from "@mui/icons-material/LightMode";
43
- import uo from "@mui/icons-material/Logout";
44
- import fo from "@mui/icons-material/SettingsBrightness";
45
- import mo from "@mui/icons-material/Translate";
10
+ import { useState as U, useId as Xt, useRef as ot, Fragment as Ue, useEffect as gt, useEffectEvent as Gt } from "react";
11
+ import { resources as nt } from "virtual:wcz-layout";
12
+ import Be from "zod";
13
+ import Xe from "@mui/utils/useEventCallback";
14
+ import Vt from "@mui/icons-material/Menu";
15
+ import Zt from "@mui/icons-material/MenuOpen";
16
+ import { styled as Je, useTheme as Jt } from "@mui/material/styles";
17
+ import { useQueryClient as eo, useQuery as it, useIsFetching as to, useIsMutating as oo, QueryClient as no } from "@tanstack/react-query";
18
+ import { a as io } from "./index-Y_pgyGkL.js";
19
+ import xt from "@mui/material/Box";
20
+ import st from "@mui/material/Drawer";
21
+ import { useNavigate as so, useRouterState as ro, useRouter as lo } from "@tanstack/react-router";
22
+ import ao from "@mui/material/Divider";
23
+ import co from "@mui/material/List";
24
+ import uo from "@mui/material/ListSubheader";
25
+ import fo from "@mui/icons-material/ExpandMore";
26
+ import mo from "@mui/material/Avatar";
27
+ import po from "@mui/material/ListItem";
28
+ import ho from "@mui/material/ListItemButton";
29
+ import go from "@mui/material/ListItemIcon";
30
+ import xo from "@mui/material/ListItemText";
31
+ import yo from "@mui/material/Paper";
32
+ import vo from "@mui/material/Popper";
33
+ import So from "@mui/material/Typography";
34
+ import { R as bo } from "./RouterListItemButton-C_jUvB6C.js";
35
+ import ko from "@mui/icons-material/AccountCircle";
36
+ import rt from "@mui/icons-material/ArrowBack";
37
+ import wo from "@mui/icons-material/Brightness4";
38
+ import lt from "@mui/icons-material/ChevronRight";
39
+ import jo from "@mui/icons-material/DarkMode";
40
+ import _o from "@mui/icons-material/Done";
41
+ import Lo from "@mui/icons-material/LightMode";
42
+ import Co from "@mui/icons-material/Logout";
43
+ import Io from "@mui/icons-material/SettingsBrightness";
44
+ import Do from "@mui/icons-material/Translate";
45
+ import { i as Ge, j as To } from "./GraphQueries-BOAnio_H.js";
46
+ import { W as ci, a as di, r as ui } from "./utils-araYIHAE.js";
46
47
  const {
47
- slice: po,
48
- forEach: ho
48
+ slice: Eo,
49
+ forEach: $o
49
50
  } = [];
50
- function go(t) {
51
- return ho.call(po.call(arguments, 1), (e) => {
51
+ function Ao(t) {
52
+ return $o.call(Eo.call(arguments, 1), (e) => {
52
53
  if (e)
53
54
  for (const o in e)
54
55
  t[o] === void 0 && (t[o] = e[o]);
55
56
  }), t;
56
57
  }
57
- function xo(t) {
58
+ function Mo(t) {
58
59
  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));
59
60
  }
60
- const Ve = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, yo = function(t, e) {
61
+ const at = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Oo = function(t, e) {
61
62
  const n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
62
63
  path: "/"
63
64
  }, r = encodeURIComponent(e);
64
65
  let l = `${t}=${r}`;
65
66
  if (n.maxAge > 0) {
66
- const i = n.maxAge - 0;
67
- if (Number.isNaN(i)) throw new Error("maxAge should be a Number");
68
- l += `; Max-Age=${Math.floor(i)}`;
67
+ const s = n.maxAge - 0;
68
+ if (Number.isNaN(s)) throw new Error("maxAge should be a Number");
69
+ l += `; Max-Age=${Math.floor(s)}`;
69
70
  }
70
71
  if (n.domain) {
71
- if (!Ve.test(n.domain))
72
+ if (!at.test(n.domain))
72
73
  throw new TypeError("option domain is invalid");
73
74
  l += `; Domain=${n.domain}`;
74
75
  }
75
76
  if (n.path) {
76
- if (!Ve.test(n.path))
77
+ if (!at.test(n.path))
77
78
  throw new TypeError("option path is invalid");
78
79
  l += `; Path=${n.path}`;
79
80
  }
@@ -100,13 +101,13 @@ const Ve = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, yo = function(t, e) {
100
101
  throw new TypeError("option sameSite is invalid");
101
102
  }
102
103
  return n.partitioned && (l += "; Partitioned"), l;
103
- }, Ze = {
104
+ }, ct = {
104
105
  create(t, e, o, n) {
105
106
  let r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
106
107
  path: "/",
107
108
  sameSite: "strict"
108
109
  };
109
- o && (r.expires = /* @__PURE__ */ new Date(), r.expires.setTime(r.expires.getTime() + o * 60 * 1e3)), n && (r.domain = n), document.cookie = yo(t, e, r);
110
+ o && (r.expires = /* @__PURE__ */ new Date(), r.expires.setTime(r.expires.getTime() + o * 60 * 1e3)), n && (r.domain = n), document.cookie = Oo(t, e, r);
110
111
  },
111
112
  read(t) {
112
113
  const e = `${t}=`, o = document.cookie.split(";");
@@ -121,7 +122,7 @@ const Ve = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, yo = function(t, e) {
121
122
  this.create(t, "", -1, e);
122
123
  }
123
124
  };
124
- var vo = {
125
+ var Po = {
125
126
  name: "cookie",
126
127
  // Deconstruct the options object and extract the lookupCookie property
127
128
  lookup(t) {
@@ -129,7 +130,7 @@ var vo = {
129
130
  lookupCookie: e
130
131
  } = t;
131
132
  if (e && typeof document < "u")
132
- return Ze.read(e) || void 0;
133
+ return ct.read(e) || void 0;
133
134
  },
134
135
  // Deconstruct the options object and extract the lookupCookie, cookieMinutes, cookieDomain, and cookieOptions properties
135
136
  cacheUserLanguage(t, e) {
@@ -139,9 +140,9 @@ var vo = {
139
140
  cookieDomain: r,
140
141
  cookieOptions: l
141
142
  } = e;
142
- o && typeof document < "u" && Ze.create(o, t, n, r, l);
143
+ o && typeof document < "u" && ct.create(o, t, n, r, l);
143
144
  }
144
- }, So = {
145
+ }, No = {
145
146
  name: "querystring",
146
147
  // Deconstruct the options object and extract the lookupQuerystring property
147
148
  lookup(t) {
@@ -154,14 +155,14 @@ var vo = {
154
155
  } = window.location;
155
156
  !window.location.search && window.location.hash?.indexOf("?") > -1 && (n = window.location.hash.substring(window.location.hash.indexOf("?")));
156
157
  const l = n.substring(1).split("&");
157
- for (let i = 0; i < l.length; i++) {
158
- const a = l[i].indexOf("=");
159
- a > 0 && l[i].substring(0, a) === e && (o = l[i].substring(a + 1));
158
+ for (let s = 0; s < l.length; s++) {
159
+ const a = l[s].indexOf("=");
160
+ a > 0 && l[s].substring(0, a) === e && (o = l[s].substring(a + 1));
160
161
  }
161
162
  }
162
163
  return o;
163
164
  }
164
- }, bo = {
165
+ }, Ro = {
165
166
  name: "hash",
166
167
  // Deconstruct the options object and extract the lookupHash property and the lookupFromHashIndex property
167
168
  lookup(t) {
@@ -176,43 +177,43 @@ var vo = {
176
177
  if (r && r.length > 2) {
177
178
  const l = r.substring(1);
178
179
  if (e) {
179
- const i = l.split("&");
180
- for (let a = 0; a < i.length; a++) {
181
- const c = i[a].indexOf("=");
182
- c > 0 && i[a].substring(0, c) === e && (n = i[a].substring(c + 1));
180
+ const s = l.split("&");
181
+ for (let a = 0; a < s.length; a++) {
182
+ const c = s[a].indexOf("=");
183
+ c > 0 && s[a].substring(0, c) === e && (n = s[a].substring(c + 1));
183
184
  }
184
185
  }
185
186
  if (n) return n;
186
187
  if (!n && o > -1) {
187
- const i = r.match(/\/([a-zA-Z-]*)/g);
188
- return Array.isArray(i) ? i[typeof o == "number" ? o : 0]?.replace("/", "") : void 0;
188
+ const s = r.match(/\/([a-zA-Z-]*)/g);
189
+ return Array.isArray(s) ? s[typeof o == "number" ? o : 0]?.replace("/", "") : void 0;
189
190
  }
190
191
  }
191
192
  }
192
193
  return n;
193
194
  }
194
195
  };
195
- let te = null;
196
- const Je = () => {
197
- if (te !== null) return te;
196
+ let re = null;
197
+ const dt = () => {
198
+ if (re !== null) return re;
198
199
  try {
199
- if (te = typeof window < "u" && window.localStorage !== null, !te)
200
+ if (re = typeof window < "u" && window.localStorage !== null, !re)
200
201
  return !1;
201
202
  const t = "i18next.translate.boo";
202
203
  window.localStorage.setItem(t, "foo"), window.localStorage.removeItem(t);
203
204
  } catch {
204
- te = !1;
205
+ re = !1;
205
206
  }
206
- return te;
207
+ return re;
207
208
  };
208
- var ko = {
209
+ var Fo = {
209
210
  name: "localStorage",
210
211
  // Deconstruct the options object and extract the lookupLocalStorage property
211
212
  lookup(t) {
212
213
  let {
213
214
  lookupLocalStorage: e
214
215
  } = t;
215
- if (e && Je())
216
+ if (e && dt())
216
217
  return window.localStorage.getItem(e) || void 0;
217
218
  },
218
219
  // Deconstruct the options object and extract the lookupLocalStorage property
@@ -220,38 +221,38 @@ var ko = {
220
221
  let {
221
222
  lookupLocalStorage: o
222
223
  } = e;
223
- o && Je() && window.localStorage.setItem(o, t);
224
+ o && dt() && window.localStorage.setItem(o, t);
224
225
  }
225
226
  };
226
- let oe = null;
227
- const et = () => {
228
- if (oe !== null) return oe;
227
+ let le = null;
228
+ const ut = () => {
229
+ if (le !== null) return le;
229
230
  try {
230
- if (oe = typeof window < "u" && window.sessionStorage !== null, !oe)
231
+ if (le = typeof window < "u" && window.sessionStorage !== null, !le)
231
232
  return !1;
232
233
  const t = "i18next.translate.boo";
233
234
  window.sessionStorage.setItem(t, "foo"), window.sessionStorage.removeItem(t);
234
235
  } catch {
235
- oe = !1;
236
+ le = !1;
236
237
  }
237
- return oe;
238
+ return le;
238
239
  };
239
- var wo = {
240
+ var Bo = {
240
241
  name: "sessionStorage",
241
242
  lookup(t) {
242
243
  let {
243
244
  lookupSessionStorage: e
244
245
  } = t;
245
- if (e && et())
246
+ if (e && ut())
246
247
  return window.sessionStorage.getItem(e) || void 0;
247
248
  },
248
249
  cacheUserLanguage(t, e) {
249
250
  let {
250
251
  lookupSessionStorage: o
251
252
  } = e;
252
- o && et() && window.sessionStorage.setItem(o, t);
253
+ o && ut() && window.sessionStorage.setItem(o, t);
253
254
  }
254
- }, jo = {
255
+ }, zo = {
255
256
  name: "navigator",
256
257
  lookup(t) {
257
258
  const e = [];
@@ -268,7 +269,7 @@ var wo = {
268
269
  }
269
270
  return e.length > 0 ? e : void 0;
270
271
  }
271
- }, _o = {
272
+ }, Uo = {
272
273
  name: "htmlTag",
273
274
  // Deconstruct the options object and extract the htmlTag property
274
275
  lookup(t) {
@@ -278,7 +279,7 @@ var wo = {
278
279
  const n = e || (typeof document < "u" ? document.documentElement : null);
279
280
  return n && typeof n.getAttribute == "function" && (o = n.getAttribute("lang")), o;
280
281
  }
281
- }, Lo = {
282
+ }, Wo = {
282
283
  name: "path",
283
284
  // Deconstruct the options object and extract the lookupFromPathIndex property
284
285
  lookup(t) {
@@ -289,7 +290,7 @@ var wo = {
289
290
  const o = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
290
291
  return Array.isArray(o) ? o[typeof e == "number" ? e : 0]?.replace("/", "") : void 0;
291
292
  }
292
- }, Io = {
293
+ }, Ho = {
293
294
  name: "subdomain",
294
295
  lookup(t) {
295
296
  let {
@@ -300,15 +301,15 @@ var wo = {
300
301
  return n[o];
301
302
  }
302
303
  };
303
- let lt = !1;
304
+ let yt = !1;
304
305
  try {
305
- document.cookie, lt = !0;
306
+ document.cookie, yt = !0;
306
307
  } catch {
307
308
  }
308
- const at = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
309
- lt || at.splice(1, 1);
310
- const Co = () => ({
311
- order: at,
309
+ const vt = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
310
+ yt || vt.splice(1, 1);
311
+ const qo = () => ({
312
+ order: vt,
312
313
  lookupQuerystring: "lng",
313
314
  lookupCookie: "i18next",
314
315
  lookupLocalStorage: "i18nextLng",
@@ -320,7 +321,7 @@ const Co = () => ({
320
321
  // cookieDomain: 'myDomain'
321
322
  convertDetectedLanguage: (t) => t
322
323
  });
323
- class ct {
324
+ class St {
324
325
  constructor(e) {
325
326
  let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
326
327
  this.type = "languageDetector", this.detectors = {}, this.init(e, o);
@@ -329,7 +330,7 @@ class ct {
329
330
  let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
330
331
  languageUtils: {}
331
332
  }, o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
332
- this.services = e, this.options = go(o, this.options || {}, Co()), 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(vo), this.addDetector(So), this.addDetector(ko), this.addDetector(wo), this.addDetector(jo), this.addDetector(_o), this.addDetector(Lo), this.addDetector(Io), this.addDetector(bo);
333
+ this.services = e, this.options = Ao(o, this.options || {}, qo()), 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(Po), this.addDetector(No), this.addDetector(Fo), this.addDetector(Bo), this.addDetector(zo), this.addDetector(Uo), this.addDetector(Wo), this.addDetector(Ho), this.addDetector(Ro);
333
334
  }
334
335
  addDetector(e) {
335
336
  return this.detectors[e.name] = e, this;
@@ -341,7 +342,7 @@ class ct {
341
342
  let r = this.detectors[n].lookup(this.options);
342
343
  r && typeof r == "string" && (r = [r]), r && (o = o.concat(r));
343
344
  }
344
- }), o = o.filter((n) => n != null && !xo(n)).map((n) => this.options.convertDetectedLanguage(n)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? o : o.length > 0 ? o[0] : null;
345
+ }), o = o.filter((n) => n != null && !Mo(n)).map((n) => this.options.convertDetectedLanguage(n)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? o : o.length > 0 ? o[0] : null;
345
346
  }
346
347
  cacheUserLanguage(e) {
347
348
  let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
@@ -350,79 +351,79 @@ class ct {
350
351
  }));
351
352
  }
352
353
  }
353
- ct.type = "languageDetector";
354
- const Do = {
354
+ St.type = "languageDetector";
355
+ const Qo = {
355
356
  type: "3rdParty",
356
357
  init(t) {
357
- pt(t.options.react), ht(t);
358
+ Lt(t.options.react), Ct(t);
358
359
  }
359
360
  };
360
- function To({
361
+ function Ko({
361
362
  children: t
362
363
  }) {
363
- const [e, o] = W([]), n = Pt(), r = qe(0), l = qe(/* @__PURE__ */ new WeakMap()), i = ze(function(m, p, f = {}) {
364
+ const [e, o] = U([]), n = Xt(), r = ot(0), l = ot(/* @__PURE__ */ new WeakMap()), s = Xe(function(p, m, f = {}) {
364
365
  const {
365
- onClose: h = async () => {
366
+ onClose: x = async () => {
366
367
  }
367
368
  } = f;
368
- let x;
369
- const y = new Promise((g) => {
370
- x = g;
371
- }), k = `${n}-${r.current}`;
369
+ let v;
370
+ const S = new Promise((g) => {
371
+ v = g;
372
+ }), b = `${n}-${r.current}`;
372
373
  r.current += 1;
373
- const v = {
374
- key: k,
374
+ const h = {
375
+ key: b,
375
376
  open: !0,
376
- promise: y,
377
- Component: m,
378
- payload: p,
379
- onClose: h,
380
- resolve: x
377
+ promise: S,
378
+ Component: p,
379
+ payload: m,
380
+ onClose: x,
381
+ resolve: v
381
382
  };
382
- return l.current.set(y, v), o((g) => [...g, v]), y;
383
- }), a = (d) => {
384
- o((m) => m.filter((p) => p.promise !== d)), l.current.delete(d);
385
- }, c = ze(function(m) {
386
- o((p) => p.map((f) => f.promise === m ? {
383
+ return l.current.set(S, h), o((g) => [...g, h]), S;
384
+ }), a = (u) => {
385
+ o((p) => p.filter((m) => m.promise !== u)), l.current.delete(u);
386
+ }, c = Xe(function(p) {
387
+ o((m) => m.map((f) => f.promise === p ? {
387
388
  ...f,
388
389
  open: !1
389
- } : f)), setTimeout(() => a(m), 1e3);
390
- }), u = ze(async function(m, p) {
391
- const f = l.current.get(m);
390
+ } : f)), setTimeout(() => a(p), 1e3);
391
+ }), d = Xe(async function(p, m) {
392
+ const f = l.current.get(p);
392
393
  if (!f)
393
394
  throw new Error("Dialog not found in stack");
394
395
  try {
395
- await f.onClose(p);
396
+ await f.onClose(m);
396
397
  } finally {
397
- f.resolve(p), c(m);
398
+ f.resolve(m), c(p);
398
399
  }
399
- return m;
400
+ return p;
400
401
  });
401
- return /* @__PURE__ */ s.jsxs(gt.Provider, { value: {
402
- open: i,
403
- close: u
402
+ return /* @__PURE__ */ i.jsxs(It.Provider, { value: {
403
+ open: s,
404
+ close: d
404
405
  }, children: [
405
406
  t,
406
407
  e.map(({
407
- key: d,
408
- open: m,
409
- Component: p,
408
+ key: u,
409
+ open: p,
410
+ Component: m,
410
411
  payload: f,
411
- promise: h
412
- }) => /* @__PURE__ */ s.jsx(p, { payload: f, open: m, onClose: async (x) => {
413
- await u(h, x);
414
- } }, d))
412
+ promise: x
413
+ }) => /* @__PURE__ */ i.jsx(m, { payload: f, open: p, onClose: async (v) => {
414
+ await d(x, v);
415
+ } }, u))
415
416
  ] });
416
417
  }
417
- const Eo = () => {
418
+ const Yo = () => {
418
419
  const t = B.c(1);
419
420
  let e;
420
- return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ s.jsxs(yt, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
421
- /* @__PURE__ */ s.jsx("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
422
- /* @__PURE__ */ s.jsx(vt, { variant: "h6", children: Ht.VITE_APP_TITLE }),
423
- /* @__PURE__ */ s.jsx(St, { size: "small", label: "TEST", color: "info" })
421
+ return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ i.jsxs(Tt, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
422
+ /* @__PURE__ */ i.jsx("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
423
+ /* @__PURE__ */ i.jsx(Et, { variant: "h6", children: io.VITE_APP_TITLE }),
424
+ /* @__PURE__ */ i.jsx($t, { size: "small", label: "TEST", color: "info" })
424
425
  ] }), t[0] = e) : e = t[0], e;
425
- }, We = 34, $o = He(Jt)(({
426
+ }, Ve = 34, Xo = Je(ho)(({
426
427
  theme: t
427
428
  }) => ({
428
429
  borderRadius: 8,
@@ -443,7 +444,7 @@ const Eo = () => {
443
444
  "& .MuiAvatar-root": {
444
445
  backgroundColor: (t.vars ?? t).palette.action.active
445
446
  }
446
- })), Mo = He(so)(({
447
+ })), Go = Je(bo)(({
447
448
  theme: t
448
449
  }) => ({
449
450
  borderRadius: 8,
@@ -464,7 +465,7 @@ const Eo = () => {
464
465
  "& .MuiAvatar-root": {
465
466
  backgroundColor: (t.vars ?? t).palette.action.active
466
467
  }
467
- })), Ao = (t) => {
468
+ })), Vo = (t) => {
468
469
  const e = B.c(17), {
469
470
  item: o,
470
471
  collapsed: n
@@ -482,22 +483,22 @@ const Eo = () => {
482
483
  display: "flex",
483
484
  alignItems: "center",
484
485
  justifyContent: "center",
485
- minWidth: We
486
+ minWidth: Ve
486
487
  }, e[2] = l) : l = e[2];
487
- const i = o.icon ?? null;
488
+ const s = o.icon ?? null;
488
489
  let a;
489
- e[3] !== n || e[4] !== o.icon || e[5] !== o.title ? (a = !o.icon && n ? /* @__PURE__ */ s.jsx(Vt, { sx: {
490
- width: We - 7,
491
- height: We - 7,
490
+ e[3] !== n || e[4] !== o.icon || e[5] !== o.title ? (a = !o.icon && n ? /* @__PURE__ */ i.jsx(mo, { sx: {
491
+ width: Ve - 7,
492
+ height: Ve - 7,
492
493
  fontSize: 12
493
494
  }, children: o.title }) : null, e[3] = n, e[4] = o.icon, e[5] = o.title, e[6] = a) : a = e[6];
494
495
  let c;
495
- e[7] !== i || e[8] !== a ? (c = /* @__PURE__ */ s.jsxs(eo, { sx: l, children: [
496
- i,
496
+ e[7] !== s || e[8] !== a ? (c = /* @__PURE__ */ i.jsxs(go, { sx: l, children: [
497
+ s,
497
498
  a
498
- ] }), e[7] = i, e[8] = a, e[9] = c) : c = e[9];
499
- let u;
500
- e[10] !== n || e[11] !== o.title ? (u = n ? /* @__PURE__ */ s.jsx(io, { variant: "caption", sx: {
499
+ ] }), e[7] = s, e[8] = a, e[9] = c) : c = e[9];
500
+ let d;
501
+ e[10] !== n || e[11] !== o.title ? (d = n ? /* @__PURE__ */ i.jsx(So, { variant: "caption", sx: {
501
502
  position: "absolute",
502
503
  bottom: -18,
503
504
  left: "50%",
@@ -508,16 +509,16 @@ const Eo = () => {
508
509
  whiteSpace: "nowrap",
509
510
  overflow: "hidden",
510
511
  textOverflow: "ellipsis",
511
- maxWidth: Oe - 28
512
- }, children: o.title }) : null, e[10] = n, e[11] = o.title, e[12] = u) : u = e[12];
513
- let d;
514
- return e[13] !== r || e[14] !== c || e[15] !== u ? (d = /* @__PURE__ */ s.jsxs(rt, { sx: r, children: [
512
+ maxWidth: ze - 28
513
+ }, children: o.title }) : null, e[10] = n, e[11] = o.title, e[12] = d) : d = e[12];
514
+ let u;
515
+ return e[13] !== r || e[14] !== c || e[15] !== d ? (u = /* @__PURE__ */ i.jsxs(xt, { sx: r, children: [
515
516
  c,
516
- u
517
- ] }), e[13] = r, e[14] = c, e[15] = u, e[16] = d) : d = e[16], d;
517
+ d
518
+ ] }), e[13] = r, e[14] = c, e[15] = d, e[16] = u) : u = e[16], u;
518
519
  }
519
520
  return null;
520
- }, Oo = (t) => {
521
+ }, Zo = (t) => {
521
522
  const e = B.c(10), {
522
523
  open: o,
523
524
  anchorEl: n,
@@ -530,15 +531,15 @@ const Eo = () => {
530
531
  offset: [6, 0]
531
532
  }
532
533
  }, e[0] = l) : l = e[0];
533
- let i;
534
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
534
+ let s;
535
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
535
536
  name: "preventOverflow",
536
537
  options: {
537
538
  padding: 8
538
539
  }
539
- }, e[1] = i) : i = e[1];
540
+ }, e[1] = s) : s = e[1];
540
541
  let a;
541
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = [l, i, {
542
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = [l, s, {
542
543
  name: "flip",
543
544
  options: {
544
545
  fallbackPlacements: ["right-end", "left-start"]
@@ -552,53 +553,53 @@ const Eo = () => {
552
553
  overflowY: "auto",
553
554
  overscrollBehavior: "contain"
554
555
  }, e[3] = c) : c = e[3];
555
- let u;
556
- e[4] !== r ? (u = /* @__PURE__ */ s.jsx(oo, { sx: c, children: r }), e[4] = r, e[5] = u) : u = e[5];
557
556
  let d;
558
- return e[6] !== n || e[7] !== o || e[8] !== u ? (d = /* @__PURE__ */ s.jsx(no, { open: o, anchorEl: n, placement: "right-start", modifiers: a, children: u }), e[6] = n, e[7] = o, e[8] = u, e[9] = d) : d = e[9], d;
559
- }, Po = (t) => {
557
+ e[4] !== r ? (d = /* @__PURE__ */ i.jsx(yo, { sx: c, children: r }), e[4] = r, e[5] = d) : d = e[5];
558
+ let u;
559
+ return e[6] !== n || e[7] !== o || e[8] !== d ? (u = /* @__PURE__ */ i.jsx(vo, { open: o, anchorEl: n, placement: "right-start", modifiers: a, children: d }), e[6] = n, e[7] = o, e[8] = d, e[9] = u) : u = e[9], u;
560
+ }, Jo = (t) => {
560
561
  const e = B.c(57), {
561
562
  item: o,
562
563
  isOpen: n,
563
564
  selected: r,
564
565
  disabled: l,
565
- collapsed: i,
566
+ collapsed: s,
566
567
  isSidebarFullyExpanded: a,
567
568
  isSidebarFullyCollapsed: c,
568
- onClick: u,
569
- renderNested: d,
570
- onClose: m
571
- } = t, p = a === void 0 ? !0 : a, [f, h] = W(null), [x, y] = W(null);
572
- let k;
573
- e[0] !== i || e[1] !== n || e[2] !== c || e[3] !== p || e[4] !== o.children ? (k = () => i && c && o.children ? {
569
+ onClick: d,
570
+ renderNested: u,
571
+ onClose: p
572
+ } = t, m = a === void 0 ? !0 : a, [f, x] = U(null), [v, S] = U(null);
573
+ let b;
574
+ e[0] !== s || e[1] !== n || e[2] !== c || e[3] !== m || e[4] !== o.children ? (b = () => s && c && o.children ? {
574
575
  fontSize: 18,
575
576
  position: "absolute",
576
577
  top: "41.5%",
577
578
  right: "2px",
578
579
  transform: "translateY(-50%) rotate(-90deg)"
579
- } : !i && p && o.children ? {
580
+ } : !s && m && o.children ? {
580
581
  ml: 0.5,
581
582
  transform: `rotate(${n ? 0 : -90}deg)`
582
583
  } : {
583
584
  display: "none"
584
- }, e[0] = i, e[1] = n, e[2] = c, e[3] = p, e[4] = o.children, e[5] = k) : k = e[5];
585
- const v = k, g = o.children && !i, b = i ? 60 : 48;
586
- let S;
587
- e[6] !== b ? (S = {
585
+ }, e[0] = s, e[1] = n, e[2] = c, e[3] = m, e[4] = o.children, e[5] = b) : b = e[5];
586
+ const h = b, g = o.children && !s, k = s ? 60 : 48;
587
+ let y;
588
+ e[6] !== k ? (y = {
588
589
  px: 1.4,
589
- height: b
590
- }, e[6] = b, e[7] = S) : S = e[7];
590
+ height: k
591
+ }, e[6] = k, e[7] = y) : y = e[7];
591
592
  let w;
592
- e[8] !== l || e[9] !== r || e[10] !== S ? (w = {
593
+ e[8] !== l || e[9] !== r || e[10] !== y ? (w = {
593
594
  selected: r,
594
595
  disabled: l,
595
- sx: S
596
- }, e[8] = l, e[9] = r, e[10] = S, e[11] = w) : w = e[11];
597
- const M = w;
596
+ sx: y
597
+ }, e[8] = l, e[9] = r, e[10] = y, e[11] = w) : w = e[11];
598
+ const O = w;
599
+ let T;
600
+ e[12] !== s || e[13] !== o ? (T = /* @__PURE__ */ i.jsx(Vo, { item: o, collapsed: s }), e[12] = s, e[13] = o, e[14] = T) : T = e[14];
598
601
  let C;
599
- e[12] !== i || e[13] !== o ? (C = /* @__PURE__ */ s.jsx(Ao, { item: o, collapsed: i }), e[12] = i, e[13] = o, e[14] = C) : C = e[14];
600
- let j;
601
- e[15] !== i || e[16] !== o.title ? (j = !i && /* @__PURE__ */ s.jsx(to, { primary: o.title, slotProps: {
602
+ e[15] !== s || e[16] !== o.title ? (C = !s && /* @__PURE__ */ i.jsx(xo, { primary: o.title, slotProps: {
602
603
  primary: {
603
604
  noWrap: !0,
604
605
  title: o.title
@@ -612,89 +613,89 @@ const Eo = () => {
612
613
  overflow: "hidden",
613
614
  textOverflow: "ellipsis"
614
615
  }
615
- } }), e[15] = i, e[16] = o.title, e[17] = j) : j = e[17];
616
- let _;
617
- e[18] !== v || e[19] !== o.children ? (_ = o.children ? /* @__PURE__ */ s.jsx(Qt, { sx: v }) : null, e[18] = v, e[19] = o.children, e[20] = _) : _ = e[20];
618
- let E;
619
- e[21] !== C || e[22] !== j || e[23] !== _ ? (E = /* @__PURE__ */ s.jsxs(s.Fragment, { children: [
616
+ } }), e[15] = s, e[16] = o.title, e[17] = C) : C = e[17];
617
+ let j;
618
+ e[18] !== h || e[19] !== o.children ? (j = o.children ? /* @__PURE__ */ i.jsx(fo, { sx: h }) : null, e[18] = h, e[19] = o.children, e[20] = j) : j = e[20];
619
+ let I;
620
+ e[21] !== T || e[22] !== C || e[23] !== j ? (I = /* @__PURE__ */ i.jsxs(i.Fragment, { children: [
621
+ T,
620
622
  C,
621
- j,
622
- _
623
- ] }), e[21] = C, e[22] = j, e[23] = _, e[24] = E) : E = e[24];
624
- const P = E;
625
- let $;
626
- e[25] !== i || e[26] !== o.children || e[27] !== o.title ? ($ = o.children && i ? {
627
- onMouseEnter: (z) => {
628
- y(z.currentTarget), h(o.title);
623
+ j
624
+ ] }), e[21] = T, e[22] = C, e[23] = j, e[24] = I) : I = e[24];
625
+ const $ = I;
626
+ let A;
627
+ e[25] !== s || e[26] !== o.children || e[27] !== o.title ? (A = o.children && s ? {
628
+ onMouseEnter: (ae) => {
629
+ S(ae.currentTarget), x(o.title);
629
630
  },
630
631
  onMouseLeave: () => {
631
- h(null);
632
+ x(null);
632
633
  }
633
- } : {}, e[25] = i, e[26] = o.children, e[27] = o.title, e[28] = $) : $ = e[28];
634
- let T;
635
- e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
634
+ } : {}, e[25] = s, e[26] = o.children, e[27] = o.title, e[28] = A) : A = e[28];
635
+ let M;
636
+ e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = {
636
637
  py: 0,
637
638
  px: 1,
638
639
  overflowX: "hidden"
639
- }, e[29] = T) : T = e[29];
640
- let I;
641
- e[30] !== P || e[31] !== M || e[32] !== o || e[33] !== u || e[34] !== m || e[35] !== g ? (I = g ? /* @__PURE__ */ s.jsx($o, { ...M, onClick: () => u?.(o), children: P }) : /* @__PURE__ */ s.jsx(Mo, { ...M, to: o.to, href: o.href, params: o.params, search: o.search, onClick: m, children: P }), e[30] = P, e[31] = M, e[32] = o, e[33] = u, e[34] = m, e[35] = g, e[36] = I) : I = e[36];
640
+ }, e[29] = M) : M = e[29];
642
641
  let L;
643
- e[37] !== x || e[38] !== i || e[39] !== f || e[40] !== o.children || e[41] !== o.title || e[42] !== d ? (L = o.children && i ? /* @__PURE__ */ s.jsx(Oo, { open: o.title === f, anchorEl: x, children: d?.(o.children) }) : null, e[37] = x, e[38] = i, e[39] = f, e[40] = o.children, e[41] = o.title, e[42] = d, e[43] = L) : L = e[43];
644
- let N;
645
- e[44] !== $ || e[45] !== I || e[46] !== L ? (N = /* @__PURE__ */ s.jsxs(Zt, { ...$, sx: T, children: [
646
- I,
647
- L
648
- ] }), e[44] = $, e[45] = I, e[46] = L, e[47] = N) : N = e[47];
649
- const R = N;
642
+ e[30] !== $ || e[31] !== O || e[32] !== o || e[33] !== d || e[34] !== p || e[35] !== g ? (L = g ? /* @__PURE__ */ i.jsx(Xo, { ...O, onClick: () => d?.(o), children: $ }) : /* @__PURE__ */ i.jsx(Go, { ...O, to: o.to, href: o.href, params: o.params, search: o.search, onClick: p, children: $ }), e[30] = $, e[31] = O, e[32] = o, e[33] = d, e[34] = p, e[35] = g, e[36] = L) : L = e[36];
643
+ let _;
644
+ e[37] !== v || e[38] !== s || e[39] !== f || e[40] !== o.children || e[41] !== o.title || e[42] !== u ? (_ = o.children && s ? /* @__PURE__ */ i.jsx(Zo, { open: o.title === f, anchorEl: v, children: u?.(o.children) }) : null, e[37] = v, e[38] = s, e[39] = f, e[40] = o.children, e[41] = o.title, e[42] = u, e[43] = _) : _ = e[43];
650
645
  let D;
651
- e[48] !== i || e[49] !== n || e[50] !== o.children || e[51] !== d ? (D = o.children && !i ? /* @__PURE__ */ s.jsx(bt, { in: n, timeout: "auto", unmountOnExit: !0, children: d?.(o.children) }) : null, e[48] = i, e[49] = n, e[50] = o.children, e[51] = d, e[52] = D) : D = e[52];
652
- let A;
653
- return e[53] !== o.to || e[54] !== R || e[55] !== D ? (A = /* @__PURE__ */ s.jsxs(Pe, { children: [
654
- R,
655
- D
656
- ] }, o.to), e[53] = o.to, e[54] = R, e[55] = D, e[56] = A) : A = e[56], A;
657
- }, No = (t) => !("kind" in t), Ro = (t) => "kind" in t && t.kind === "divider", Ue = (t) => "kind" in t && t.kind === "header", dt = (t) => {
646
+ e[44] !== A || e[45] !== L || e[46] !== _ ? (D = /* @__PURE__ */ i.jsxs(po, { ...A, sx: M, children: [
647
+ L,
648
+ _
649
+ ] }), e[44] = A, e[45] = L, e[46] = _, e[47] = D) : D = e[47];
650
+ const P = D;
651
+ let E;
652
+ e[48] !== s || e[49] !== n || e[50] !== o.children || e[51] !== u ? (E = o.children && !s ? /* @__PURE__ */ i.jsx(At, { in: n, timeout: "auto", unmountOnExit: !0, children: u?.(o.children) }) : null, e[48] = s, e[49] = n, e[50] = o.children, e[51] = u, e[52] = E) : E = e[52];
653
+ let N;
654
+ return e[53] !== o.to || e[54] !== P || e[55] !== E ? (N = /* @__PURE__ */ i.jsxs(Ue, { children: [
655
+ P,
656
+ E
657
+ ] }, o.to), e[53] = o.to, e[54] = P, e[55] = E, e[56] = N) : N = e[56], N;
658
+ }, en = (t) => !("kind" in t), tn = (t) => "kind" in t && t.kind === "divider", Ze = (t) => "kind" in t && t.kind === "header", bt = (t) => {
658
659
  const e = B.c(31), {
659
660
  subNavigation: o,
660
661
  depth: n,
661
662
  collapsed: r,
662
663
  isPopover: l,
663
- isSidebarFullyExpanded: i,
664
+ isSidebarFullyExpanded: s,
664
665
  isSidebarFullyCollapsed: a,
665
666
  expandedWidth: c,
666
- renderItem: u,
667
- activePath: d,
668
- onNavigate: m,
669
- onClose: p
670
- } = t, f = n === void 0 ? 0 : n, h = i === void 0 ? !0 : i;
671
- let x;
672
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = [], e[0] = x) : x = e[0];
673
- const [y, k] = W(x);
674
- let v, g;
675
- e[1] !== r ? (v = () => {
676
- r && k([]);
677
- }, g = [r], e[1] = r, e[2] = v, e[3] = g) : (v = e[2], g = e[3]), st(v, g);
678
- let b;
679
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = (j) => k((_) => _.includes(j) ? _.filter((E) => E !== j) : [..._, j]), e[4] = b) : b = e[4];
680
- const S = b;
667
+ renderItem: d,
668
+ activePath: u,
669
+ onNavigate: p,
670
+ onClose: m
671
+ } = t, f = n === void 0 ? 0 : n, x = s === void 0 ? !0 : s;
672
+ let v;
673
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = [], e[0] = v) : v = e[0];
674
+ const [S, b] = U(v);
675
+ let h, g;
676
+ e[1] !== r ? (h = () => {
677
+ r && b([]);
678
+ }, g = [r], e[1] = r, e[2] = h, e[3] = g) : (h = e[2], g = e[3]), gt(h, g);
679
+ let k;
680
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = (C) => b((j) => j.includes(C) ? j.filter((I) => I !== C) : [...j, C]), e[4] = k) : k = e[4];
681
+ const y = k;
681
682
  let w;
682
- e[5] !== d || e[6] !== r || e[7] !== f || e[8] !== c || e[9] !== p || e[10] !== m ? (w = (j) => /* @__PURE__ */ s.jsx(dt, { subNavigation: j, depth: f + 1, isPopover: r, expandedWidth: c, activePath: d, onNavigate: m, onClose: p }), e[5] = d, e[6] = r, e[7] = f, e[8] = c, e[9] = p, e[10] = m, e[11] = w) : w = e[11];
683
- const M = w;
684
- let C;
685
- if (e[12] !== d || e[13] !== r || e[14] !== f || e[15] !== c || e[16] !== l || e[17] !== a || e[18] !== h || e[19] !== p || e[20] !== y || e[21] !== u || e[22] !== M || e[23] !== o) {
686
- const j = o.filter(Fo), _ = l && f === 1 ? 0.5 : 0, E = f === 0 && !l ? 4 : 0.5, P = (l ? 1 : 2) * (l ? f - 1 : f), $ = l && f === 1 ? Me : "auto", T = r ? Oe : "auto";
687
- let I;
688
- e[25] !== E || e[26] !== P || e[27] !== $ || e[28] !== T || e[29] !== _ ? (I = {
683
+ e[5] !== u || e[6] !== r || e[7] !== f || e[8] !== c || e[9] !== m || e[10] !== p ? (w = (C) => /* @__PURE__ */ i.jsx(bt, { subNavigation: C, depth: f + 1, isPopover: r, expandedWidth: c, activePath: u, onNavigate: p, onClose: m }), e[5] = u, e[6] = r, e[7] = f, e[8] = c, e[9] = m, e[10] = p, e[11] = w) : w = e[11];
684
+ const O = w;
685
+ let T;
686
+ if (e[12] !== u || e[13] !== r || e[14] !== f || e[15] !== c || e[16] !== l || e[17] !== a || e[18] !== x || e[19] !== m || e[20] !== S || e[21] !== d || e[22] !== O || e[23] !== o) {
687
+ const C = o.filter(on), j = l && f === 1 ? 0.5 : 0, I = f === 0 && !l ? 4 : 0.5, $ = (l ? 1 : 2) * (l ? f - 1 : f), A = l && f === 1 ? Fe : "auto", M = r ? ze : "auto";
688
+ let L;
689
+ e[25] !== I || e[26] !== $ || e[27] !== A || e[28] !== M || e[29] !== j ? (L = {
689
690
  padding: 0,
690
- mt: _,
691
- mb: E,
692
- pl: P,
693
- minWidth: $,
694
- width: T
695
- }, e[25] = E, e[26] = P, e[27] = $, e[28] = T, e[29] = _, e[30] = I) : I = e[30], C = /* @__PURE__ */ s.jsx(Xt, { sx: I, children: j.map((L, N) => {
696
- if (Ue(L))
697
- return /* @__PURE__ */ s.jsx(Gt, { sx: {
691
+ mt: j,
692
+ mb: I,
693
+ pl: $,
694
+ minWidth: A,
695
+ width: M
696
+ }, e[25] = I, e[26] = $, e[27] = A, e[28] = M, e[29] = j, e[30] = L) : L = e[30], T = /* @__PURE__ */ i.jsx(co, { sx: L, children: C.map((_, D) => {
697
+ if (Ze(_))
698
+ return /* @__PURE__ */ i.jsx(uo, { sx: {
698
699
  fontSize: 12,
699
700
  fontWeight: "700",
700
701
  height: r ? 0 : 40,
@@ -706,239 +707,256 @@ const Eo = () => {
706
707
  zIndex: 2,
707
708
  bgcolor: "transparent",
708
709
  position: "static"
709
- }, children: L.title }, `subheader-${f}-${N}`);
710
- if (Ro(L)) {
711
- const A = j[N + 1];
712
- return /* @__PURE__ */ s.jsx("li", { children: /* @__PURE__ */ s.jsx(Yt, { sx: {
710
+ }, children: _.title }, `subheader-${f}-${D}`);
711
+ if (tn(_)) {
712
+ const N = C[D + 1];
713
+ return /* @__PURE__ */ i.jsx("li", { children: /* @__PURE__ */ i.jsx(ao, { sx: {
713
714
  mx: 1,
714
715
  mt: 1,
715
- mb: Ue(A) && !r ? 0 : 1
716
- } }) }, `divider-${f}-${N}`);
716
+ mb: Ze(N) && !r ? 0 : 1
717
+ } }) }, `divider-${f}-${D}`);
717
718
  }
718
- if (!No(L))
719
+ if (!en(_))
719
720
  return null;
720
- const R = `item-${f}-${N}`, D = `${f}-${N}-${L.title}`;
721
- return u ? /* @__PURE__ */ s.jsx(Pe, { children: u(L, {
721
+ const P = `item-${f}-${D}`, E = `${f}-${D}-${_.title}`;
722
+ return d ? /* @__PURE__ */ i.jsx(Ue, { children: d(_, {
722
723
  collapsed: !!r
723
- }) }, R) : /* @__PURE__ */ s.jsx(Po, { item: L, isOpen: y.includes(D), selected: d === L.to, collapsed: r, isSidebarFullyExpanded: h, isSidebarFullyCollapsed: a, onClick: L.children && !r ? () => S(D) : void 0, renderNested: M, onClose: p }, R);
724
- }) }), e[12] = d, e[13] = r, e[14] = f, e[15] = c, e[16] = l, e[17] = a, e[18] = h, e[19] = p, e[20] = y, e[21] = u, e[22] = M, e[23] = o, e[24] = C;
724
+ }) }, P) : /* @__PURE__ */ i.jsx(Jo, { item: _, isOpen: S.includes(E), selected: u === _.to, collapsed: r, isSidebarFullyExpanded: x, isSidebarFullyCollapsed: a, onClick: _.children && !r ? () => y(E) : void 0, renderNested: O, onClose: m }, P);
725
+ }) }), e[12] = u, e[13] = r, e[14] = f, e[15] = c, e[16] = l, e[17] = a, e[18] = x, e[19] = m, e[20] = S, e[21] = d, e[22] = O, e[23] = o, e[24] = T;
725
726
  } else
726
- C = e[24];
727
- return C;
727
+ T = e[24];
728
+ return T;
728
729
  };
729
- function Fo(t) {
730
+ function on(t) {
730
731
  return !t.hidden;
731
732
  }
732
- const Oe = 84, Me = 320, tt = 64, Bo = (t) => {
733
+ const ze = 84, Fe = 320, ft = 64, nn = (t) => {
733
734
  const e = B.c(29), {
734
735
  navigation: o,
735
736
  expanded: n,
736
737
  setExpanded: r
737
- } = t, l = qt(), i = Kt(), a = zt();
738
+ } = t, l = so(), s = ro(), a = Jt();
738
739
  let c;
739
740
  e[0] !== a.breakpoints ? (c = a.breakpoints.up("sm"), e[0] = a.breakpoints, e[1] = c) : c = e[1];
740
- const u = kt(c);
741
- let d;
742
- e[2] !== n || e[3] !== l || e[4] !== o || e[5] !== i.location.pathname || e[6] !== r || e[7] !== u ? (d = (y) => /* @__PURE__ */ s.jsx(rt, { component: "nav", sx: {
741
+ const d = Mt(c);
742
+ let u;
743
+ e[2] !== n || e[3] !== l || e[4] !== o || e[5] !== s.location.pathname || e[6] !== r || e[7] !== d ? (u = (S) => /* @__PURE__ */ i.jsx(xt, { component: "nav", sx: {
743
744
  height: "100%",
744
745
  display: "flex",
745
746
  flexDirection: "column",
746
747
  justifyContent: "space-between",
747
748
  overflow: "auto",
748
- scrollbarGutter: y ? "stable" : "auto",
749
+ scrollbarGutter: S ? "stable" : "auto",
749
750
  overflowX: "hidden",
750
- pt: o[0] && Ue(o[0]) && !y ? 0 : 2
751
- }, children: /* @__PURE__ */ s.jsx(dt, { subNavigation: o, collapsed: y, isSidebarFullyExpanded: n, isSidebarFullyCollapsed: !n, expandedWidth: Me, activePath: i.location.pathname, onNavigate: l, onClose: u ? void 0 : () => r(!1) }) }), e[2] = n, e[3] = l, e[4] = o, e[5] = i.location.pathname, e[6] = r, e[7] = u, e[8] = d) : d = e[8];
752
- const m = d;
753
- if (u) {
754
- const y = n ? Me : Oe, k = n ? Me : Oe;
755
- let v;
756
- e[9] !== k ? (v = {
751
+ pt: o[0] && Ze(o[0]) && !S ? 0 : 2
752
+ }, children: /* @__PURE__ */ i.jsx(bt, { subNavigation: o, collapsed: S, isSidebarFullyExpanded: n, isSidebarFullyCollapsed: !n, expandedWidth: Fe, activePath: s.location.pathname, onNavigate: l, onClose: d ? void 0 : () => r(!1) }) }), e[2] = n, e[3] = l, e[4] = o, e[5] = s.location.pathname, e[6] = r, e[7] = d, e[8] = u) : u = e[8];
753
+ const p = u;
754
+ if (d) {
755
+ const S = n ? Fe : ze, b = n ? Fe : ze;
756
+ let h;
757
+ e[9] !== b ? (h = {
757
758
  position: "absolute",
758
- top: `${tt}px`,
759
- height: `calc(100% - ${tt}px)`,
760
- width: k,
759
+ top: `${ft}px`,
760
+ height: `calc(100% - ${ft}px)`,
761
+ width: b,
761
762
  borderTop: "1px solid",
762
763
  borderColor: "var(--mui-palette-divider)"
763
- }, e[9] = k, e[10] = v) : v = e[10];
764
+ }, e[9] = b, e[10] = h) : h = e[10];
764
765
  let g;
765
- e[11] !== y || e[12] !== v ? (g = {
766
- width: y,
767
- "& .MuiDrawer-paper": v
768
- }, e[11] = y, e[12] = v, e[13] = g) : g = e[13];
769
- const b = !n;
770
- let S;
771
- e[14] !== m || e[15] !== b ? (S = m(b), e[14] = m, e[15] = b, e[16] = S) : S = e[16];
766
+ e[11] !== S || e[12] !== h ? (g = {
767
+ width: S,
768
+ "& .MuiDrawer-paper": h
769
+ }, e[11] = S, e[12] = h, e[13] = g) : g = e[13];
770
+ const k = !n;
771
+ let y;
772
+ e[14] !== p || e[15] !== k ? (y = p(k), e[14] = p, e[15] = k, e[16] = y) : y = e[16];
772
773
  let w;
773
- return e[17] !== g || e[18] !== S ? (w = /* @__PURE__ */ s.jsx(Ye, { variant: "permanent", sx: g, children: S }), e[17] = g, e[18] = S, e[19] = w) : w = e[19], w;
774
+ return e[17] !== g || e[18] !== y ? (w = /* @__PURE__ */ i.jsx(st, { variant: "permanent", sx: g, children: y }), e[17] = g, e[18] = y, e[19] = w) : w = e[19], w;
774
775
  }
775
- let p;
776
- e[20] !== r ? (p = () => r(!1), e[20] = r, e[21] = p) : p = e[21];
776
+ let m;
777
+ e[20] !== r ? (m = () => r(!1), e[20] = r, e[21] = m) : m = e[21];
777
778
  const f = !n;
778
- let h;
779
- e[22] !== m || e[23] !== f ? (h = m(f), e[22] = m, e[23] = f, e[24] = h) : h = e[24];
780
779
  let x;
781
- return e[25] !== n || e[26] !== p || e[27] !== h ? (x = /* @__PURE__ */ s.jsx(Ye, { open: n, onClose: p, children: h }), e[25] = n, e[26] = p, e[27] = h, e[28] = x) : x = e[28], x;
782
- }, ot = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), zo = () => {
783
- const t = B.c(105), [e, o] = W(), [n, r] = W("settings"), l = !!e, {
784
- t: i,
780
+ e[22] !== p || e[23] !== f ? (x = p(f), e[22] = p, e[23] = f, e[24] = x) : x = e[24];
781
+ let v;
782
+ return e[25] !== n || e[26] !== m || e[27] !== x ? (v = /* @__PURE__ */ i.jsx(st, { open: n, onClose: m, children: x }), e[25] = n, e[26] = m, e[27] = x, e[28] = v) : v = e[28], v;
783
+ }, mt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), sn = () => {
784
+ const t = B.c(122), [e, o] = U(), [n, r] = U("settings"), l = !!e, {
785
+ t: s,
785
786
  i18n: a
786
- } = xt(), {
787
+ } = Dt(), {
787
788
  mode: c,
788
- setMode: u
789
- } = wt();
790
- let d, m, p, f, h, x, y;
791
- if (t[0] !== a || t[1] !== c || t[2] !== u || t[3] !== i) {
792
- const N = (Array.isArray(a.options.supportedLngs) ? a.options.supportedLngs : []).filter(Wo), R = new Intl.DisplayNames([a.language], {
789
+ setMode: d
790
+ } = Ot(), u = lo(), p = eo();
791
+ let m;
792
+ t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = Ge.sessionUserPhoto(), t[0] = m) : m = t[0];
793
+ const {
794
+ data: f
795
+ } = it(m);
796
+ let x;
797
+ t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = Ge.sessionUserDetail(), t[1] = x) : x = t[1];
798
+ let v;
799
+ t[2] !== l ? (v = {
800
+ ...x,
801
+ enabled: l
802
+ }, t[2] = l, t[3] = v) : v = t[3];
803
+ const {
804
+ data: S
805
+ } = it(v);
806
+ let b, h, g, k, y, w, O;
807
+ if (t[4] !== a || t[5] !== c || t[6] !== d || t[7] !== s) {
808
+ const wt = (Array.isArray(a.options.supportedLngs) ? a.options.supportedLngs : []).filter(rn), et = new Intl.DisplayNames([a.language], {
793
809
  type: "language"
794
810
  });
795
- let D;
796
- t[11] !== i ? (D = i("Layout.Light"), t[11] = i, t[12] = D) : D = t[12];
797
- let A;
798
- t[13] !== D ? (A = {
799
- mode: "light",
800
- icon: co,
801
- label: D
802
- }, t[13] = D, t[14] = A) : A = t[14];
803
- let z;
804
- t[15] !== i ? (z = i("Layout.Dark"), t[15] = i, t[16] = z) : z = t[16];
805
- let U;
806
- t[17] !== z ? (U = {
807
- mode: "dark",
808
- icon: lo,
809
- label: z
810
- }, t[17] = z, t[18] = U) : U = t[18];
811
- let H;
812
- t[19] !== i ? (H = i("Layout.System"), t[19] = i, t[20] = H) : H = t[20];
813
811
  let q;
814
- t[21] !== H ? (q = {
815
- mode: "system",
816
- icon: fo,
817
- label: H
818
- }, t[21] = H, t[22] = q) : q = t[22];
819
- let re;
820
- t[23] !== A || t[24] !== U || t[25] !== q ? (re = [A, U, q], t[23] = A, t[24] = U, t[25] = q, t[26] = re) : re = t[26];
821
- const le = re;
822
- let ae;
823
- t[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ae = (O) => o(O.currentTarget), t[27] = ae) : ae = t[27], p = ae;
824
- let ce;
825
- t[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ce = () => {
826
- o(void 0), setTimeout(() => r("settings"), 300);
827
- }, t[28] = ce) : ce = t[28], m = ce;
828
- let de;
829
- t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (de = (O) => () => r(O), t[29] = de) : de = t[29];
830
- const ue = de;
831
- let fe;
832
- t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (fe = {
833
- backgroundColor: "transparent"
834
- }, t[30] = fe) : fe = t[30];
812
+ t[15] !== s ? (q = s("Layout.Light"), t[15] = s, t[16] = q) : q = t[16];
813
+ let Q;
814
+ t[17] !== q ? (Q = {
815
+ mode: "light",
816
+ icon: Lo,
817
+ label: q
818
+ }, t[17] = q, t[18] = Q) : Q = t[18];
835
819
  let K;
836
- t[31] !== i ? (K = i("Layout.Settings"), t[31] = i, t[32] = K) : K = t[32];
820
+ t[19] !== s ? (K = s("Layout.Dark"), t[19] = s, t[20] = K) : K = t[20];
837
821
  let Y;
838
- t[33] !== K ? (Y = /* @__PURE__ */ s.jsx(Be, { sx: fe, children: K }), t[33] = K, t[34] = Y) : Y = t[34];
839
- let me, pe;
840
- t[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (me = ue("theme"), pe = {
841
- py: 0.3
842
- }, t[35] = me, t[36] = pe) : (me = t[35], pe = t[36]);
843
- let he;
844
- t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (he = /* @__PURE__ */ s.jsx(se, { children: /* @__PURE__ */ s.jsx(ro, {}) }), t[37] = he) : he = t[37];
822
+ t[21] !== K ? (Y = {
823
+ mode: "dark",
824
+ icon: jo,
825
+ label: K
826
+ }, t[21] = K, t[22] = Y) : Y = t[22];
845
827
  let X;
846
- t[38] !== i ? (X = i("Layout.Appearance"), t[38] = i, t[39] = X) : X = t[39];
847
- const Ne = le.find((O) => O.mode === c)?.label;
828
+ t[23] !== s ? (X = s("Layout.System"), t[23] = s, t[24] = X) : X = t[24];
848
829
  let G;
849
- t[40] !== X || t[41] !== Ne ? (G = /* @__PURE__ */ s.jsx(ie, { primary: X, secondary: Ne }), t[40] = X, t[41] = Ne, t[42] = G) : G = t[42];
830
+ t[25] !== X ? (G = {
831
+ mode: "system",
832
+ icon: Io,
833
+ label: X
834
+ }, t[25] = X, t[26] = G) : G = t[26];
835
+ let fe;
836
+ t[27] !== G || t[28] !== Q || t[29] !== Y ? (fe = [Q, Y, G], t[27] = G, t[28] = Q, t[29] = Y, t[30] = fe) : fe = t[30];
837
+ const me = fe;
838
+ let pe;
839
+ t[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pe = (R) => o(R.currentTarget), t[31] = pe) : pe = t[31], g = pe;
840
+ let he;
841
+ t[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (he = () => {
842
+ o(void 0), setTimeout(() => r("settings"), 300);
843
+ }, t[32] = he) : he = t[32], h = he;
850
844
  let ge;
851
- t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ge = /* @__PURE__ */ s.jsx(Qe, {}), t[43] = ge) : ge = t[43];
852
- let Q;
853
- t[44] !== G ? (Q = /* @__PURE__ */ s.jsxs(ne, { onClick: me, sx: pe, children: [
854
- he,
855
- G,
856
- ge
857
- ] }), t[44] = G, t[45] = Q) : Q = t[45];
858
- let xe, ye;
859
- t[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xe = ue("language"), ye = {
845
+ t[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ge = (R) => () => r(R), t[33] = ge) : ge = t[33];
846
+ const xe = ge;
847
+ let ye;
848
+ t[34] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ye = {
849
+ backgroundColor: "transparent"
850
+ }, t[34] = ye) : ye = t[34];
851
+ let V;
852
+ t[35] !== s ? (V = s("Layout.Settings"), t[35] = s, t[36] = V) : V = t[36];
853
+ let Z;
854
+ t[37] !== V ? (Z = /* @__PURE__ */ i.jsx(Ye, { sx: ye, children: V }), t[37] = V, t[38] = Z) : Z = t[38];
855
+ let ve, Se;
856
+ t[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ve = xe("theme"), Se = {
860
857
  py: 0.3
861
- }, t[46] = xe, t[47] = ye) : (xe = t[46], ye = t[47]);
862
- let ve;
863
- t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ve = /* @__PURE__ */ s.jsx(se, { children: /* @__PURE__ */ s.jsx(mo, {}) }), t[48] = ve) : ve = t[48];
864
- let Se;
865
- t[49] !== i ? (Se = i("Layout.Language"), t[49] = i, t[50] = Se) : Se = t[50];
858
+ }, t[39] = ve, t[40] = Se) : (ve = t[39], Se = t[40]);
866
859
  let be;
867
- t[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = /* @__PURE__ */ s.jsx(Qe, {}), t[51] = be) : be = t[51];
868
- const Re = /* @__PURE__ */ s.jsxs(ne, { onClick: xe, sx: ye, children: [
869
- ve,
870
- /* @__PURE__ */ s.jsx(ie, { primary: Se, secondary: ot(R.of(a.language)) }),
871
- be
872
- ] });
860
+ t[41] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(wo, {}) }), t[41] = be) : be = t[41];
861
+ let J;
862
+ t[42] !== s ? (J = s("Layout.Appearance"), t[42] = s, t[43] = J) : J = t[43];
863
+ const qe = me.find((R) => R.mode === c)?.label;
864
+ let ee;
865
+ t[44] !== J || t[45] !== qe ? (ee = /* @__PURE__ */ i.jsx(z, { primary: J, secondary: qe }), t[44] = J, t[45] = qe, t[46] = ee) : ee = t[46];
873
866
  let ke;
874
- t[52] !== Y || t[53] !== Q || t[54] !== Re ? (ke = /* @__PURE__ */ s.jsxs(Te, { component: "nav", subheader: Y, children: [
875
- Q,
876
- Re
877
- ] }), t[52] = Y, t[53] = Q, t[54] = Re, t[55] = ke) : ke = t[55], f = ke;
867
+ t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ke = /* @__PURE__ */ i.jsx(lt, {}), t[47] = ke) : ke = t[47];
868
+ let te;
869
+ t[48] !== ee ? (te = /* @__PURE__ */ i.jsxs(ce, { onClick: ve, sx: Se, children: [
870
+ be,
871
+ ee,
872
+ ke
873
+ ] }), t[48] = ee, t[49] = te) : te = t[49];
878
874
  let we, je;
879
- t[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (we = ue("settings"), je = {
875
+ t[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (we = xe("language"), je = {
876
+ py: 0.3
877
+ }, t[50] = we, t[51] = je) : (we = t[50], je = t[51]);
878
+ let _e;
879
+ t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_e = /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Do, {}) }), t[52] = _e) : _e = t[52];
880
+ let Le;
881
+ t[53] !== s ? (Le = s("Layout.Language"), t[53] = s, t[54] = Le) : Le = t[54];
882
+ let Ce;
883
+ t[55] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ce = /* @__PURE__ */ i.jsx(lt, {}), t[55] = Ce) : Ce = t[55];
884
+ const Qe = /* @__PURE__ */ i.jsxs(ce, { onClick: we, sx: je, children: [
885
+ _e,
886
+ /* @__PURE__ */ i.jsx(z, { primary: Le, secondary: mt(et.of(a.language)) }),
887
+ Ce
888
+ ] });
889
+ let Ie;
890
+ t[56] !== Z || t[57] !== te || t[58] !== Qe ? (Ie = /* @__PURE__ */ i.jsxs(Pe, { component: "nav", subheader: Z, children: [
891
+ te,
892
+ Qe
893
+ ] }), t[56] = Z, t[57] = te, t[58] = Qe, t[59] = Ie) : Ie = t[59], k = Ie;
894
+ let De, Te;
895
+ t[60] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (De = xe("settings"), Te = {
880
896
  backgroundColor: "transparent",
881
897
  display: "flex",
882
898
  alignItems: "center",
883
899
  px: 1,
884
900
  cursor: "pointer"
885
- }, t[56] = we, t[57] = je) : (we = t[56], je = t[57]);
886
- let _e;
887
- t[58] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_e = /* @__PURE__ */ s.jsx(Ee, { size: "small", sx: {
901
+ }, t[60] = De, t[61] = Te) : (De = t[60], Te = t[61]);
902
+ let Ee;
903
+ t[62] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ee = /* @__PURE__ */ i.jsx(Ne, { size: "small", sx: {
888
904
  mr: 0.5
889
- }, children: /* @__PURE__ */ s.jsx(Ge, { fontSize: "small" }) }), t[58] = _e) : _e = t[58];
890
- let V;
891
- t[59] !== i ? (V = i("Layout.Appearance"), t[59] = i, t[60] = V) : V = t[60];
892
- let Z;
893
- t[61] !== V ? (Z = /* @__PURE__ */ s.jsxs(Be, { onClick: we, sx: je, children: [
894
- _e,
905
+ }, children: /* @__PURE__ */ i.jsx(rt, { fontSize: "small" }) }), t[62] = Ee) : Ee = t[62];
906
+ let oe;
907
+ t[63] !== s ? (oe = s("Layout.Appearance"), t[63] = s, t[64] = oe) : oe = t[64];
908
+ let ne;
909
+ t[65] !== oe ? (ne = /* @__PURE__ */ i.jsxs(Ye, { onClick: De, sx: Te, children: [
910
+ Ee,
895
911
  " ",
896
- V
897
- ] }), t[61] = V, t[62] = Z) : Z = t[62];
898
- let J;
899
- t[63] !== le || t[64] !== c || t[65] !== u ? (J = le.map((O) => {
912
+ oe
913
+ ] }), t[65] = oe, t[66] = ne) : ne = t[66];
914
+ let ie;
915
+ t[67] !== me || t[68] !== c || t[69] !== d ? (ie = me.map((R) => {
900
916
  const {
901
- mode: Fe,
902
- icon: ft,
903
- label: mt
904
- } = O;
905
- return /* @__PURE__ */ s.jsxs(ne, { onClick: () => {
906
- u(Fe), m();
907
- }, selected: c === Fe, children: [
908
- /* @__PURE__ */ s.jsx(se, { children: /* @__PURE__ */ s.jsx(ft, {}) }),
909
- /* @__PURE__ */ s.jsx(ie, { primary: mt })
910
- ] }, Fe);
911
- }), t[63] = le, t[64] = c, t[65] = u, t[66] = J) : J = t[66];
912
- let Le;
913
- t[67] !== Z || t[68] !== J ? (Le = /* @__PURE__ */ s.jsx(Te, { subheader: Z, children: J }), t[67] = Z, t[68] = J, t[69] = Le) : Le = t[69], y = Le, d = Te;
914
- let Ie, Ce;
915
- t[70] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ie = ue("settings"), Ce = {
917
+ mode: Ke,
918
+ icon: jt,
919
+ label: _t
920
+ } = R;
921
+ return /* @__PURE__ */ i.jsxs(ce, { onClick: () => {
922
+ d(Ke), h();
923
+ }, selected: c === Ke, children: [
924
+ /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(jt, {}) }),
925
+ /* @__PURE__ */ i.jsx(z, { primary: _t })
926
+ ] }, Ke);
927
+ }), t[67] = me, t[68] = c, t[69] = d, t[70] = ie) : ie = t[70];
928
+ let $e;
929
+ t[71] !== ne || t[72] !== ie ? ($e = /* @__PURE__ */ i.jsx(Pe, { subheader: ne, children: ie }), t[71] = ne, t[72] = ie, t[73] = $e) : $e = t[73], O = $e, b = Pe;
930
+ let Ae, Me;
931
+ t[74] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ae = xe("settings"), Me = {
916
932
  backgroundColor: "transparent",
917
933
  display: "flex",
918
934
  alignItems: "center",
919
935
  px: 1,
920
936
  cursor: "pointer"
921
- }, t[70] = Ie, t[71] = Ce) : (Ie = t[70], Ce = t[71]);
922
- let De;
923
- t[72] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (De = /* @__PURE__ */ s.jsx(Ee, { size: "small", sx: {
937
+ }, t[74] = Ae, t[75] = Me) : (Ae = t[74], Me = t[75]);
938
+ let Oe;
939
+ t[76] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Oe = /* @__PURE__ */ i.jsx(Ne, { size: "small", sx: {
924
940
  mr: 0.5
925
- }, children: /* @__PURE__ */ s.jsx(Ge, { fontSize: "small" }) }), t[72] = De) : De = t[72];
926
- let ee;
927
- t[73] !== i ? (ee = i("Layout.Language"), t[73] = i, t[74] = ee) : ee = t[74], t[75] !== ee ? (h = /* @__PURE__ */ s.jsxs(Be, { onClick: Ie, sx: Ce, children: [
928
- De,
941
+ }, children: /* @__PURE__ */ i.jsx(rt, { fontSize: "small" }) }), t[76] = Oe) : Oe = t[76];
942
+ let se;
943
+ t[77] !== s ? (se = s("Layout.Language"), t[77] = s, t[78] = se) : se = t[78], t[79] !== se ? (y = /* @__PURE__ */ i.jsxs(Ye, { onClick: Ae, sx: Me, children: [
944
+ Oe,
929
945
  " ",
930
- ee
931
- ] }), t[75] = ee, t[76] = h) : h = t[76], x = N.map((O) => /* @__PURE__ */ s.jsxs(ne, { onClick: () => a.changeLanguage(O).finally(() => m()), selected: a.resolvedLanguage === O, children: [
932
- /* @__PURE__ */ s.jsx(se, { children: a.resolvedLanguage === O && /* @__PURE__ */ s.jsx(ao, {}) }),
933
- /* @__PURE__ */ s.jsx(ie, { primary: ot(R.of(O)) })
934
- ] }, O)), t[0] = a, t[1] = c, t[2] = u, t[3] = i, t[4] = d, t[5] = m, t[6] = p, t[7] = f, t[8] = h, t[9] = x, t[10] = y;
946
+ se
947
+ ] }), t[79] = se, t[80] = y) : y = t[80], w = wt.map((R) => /* @__PURE__ */ i.jsxs(ce, { onClick: () => a.changeLanguage(R).finally(() => h()), selected: a.resolvedLanguage === R, children: [
948
+ /* @__PURE__ */ i.jsx(de, { children: a.resolvedLanguage === R && /* @__PURE__ */ i.jsx(_o, {}) }),
949
+ /* @__PURE__ */ i.jsx(z, { primary: mt(et.of(R)) })
950
+ ] }, R)), t[4] = a, t[5] = c, t[6] = d, t[7] = s, t[8] = b, t[9] = h, t[10] = g, t[11] = k, t[12] = y, t[13] = w, t[14] = O;
935
951
  } else
936
- d = t[4], m = t[5], p = t[6], f = t[7], h = t[8], x = t[9], y = t[10];
937
- let k;
938
- t[77] !== d || t[78] !== h || t[79] !== x ? (k = /* @__PURE__ */ s.jsx(d, { subheader: h, children: x }), t[77] = d, t[78] = h, t[79] = x, t[80] = k) : k = t[80];
939
- const v = k;
940
- let g;
941
- t[81] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ s.jsx(Xe, { sx: {
952
+ b = t[8], h = t[9], g = t[10], k = t[11], y = t[12], w = t[13], O = t[14];
953
+ let T;
954
+ t[81] !== b || t[82] !== y || t[83] !== w ? (T = /* @__PURE__ */ i.jsx(b, { subheader: y, children: w }), t[81] = b, t[82] = y, t[83] = w, t[84] = T) : T = t[84];
955
+ const C = T;
956
+ let j;
957
+ t[85] !== p ? (j = () => p.prefetchQuery(Ge.sessionUserDetail()), t[85] = p, t[86] = j) : j = t[86];
958
+ let I;
959
+ t[87] !== f ? (I = f ? /* @__PURE__ */ i.jsx(Nt, { src: f, sx: {
942
960
  width: {
943
961
  xs: 32,
944
962
  sm: 40
@@ -947,9 +965,7 @@ const Oe = 84, Me = 320, tt = 64, Bo = (t) => {
947
965
  xs: 32,
948
966
  sm: 40
949
967
  }
950
- } }), t[81] = g) : g = t[81];
951
- let b;
952
- t[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = /* @__PURE__ */ s.jsx(Nt, { fallback: /* @__PURE__ */ s.jsx(Xe, { sx: {
968
+ } }) : /* @__PURE__ */ i.jsx(ko, { sx: {
953
969
  width: {
954
970
  xs: 32,
955
971
  sm: 40
@@ -958,56 +974,60 @@ const Oe = 84, Me = 320, tt = 64, Bo = (t) => {
958
974
  xs: 32,
959
975
  sm: 40
960
976
  }
961
- } }) }), t[82] = b) : b = t[82];
962
- let S;
963
- t[83] !== p ? (S = /* @__PURE__ */ s.jsxs(Ee, { size: "small", edge: "end", onClick: p, children: [
964
- g,
965
- b
966
- ] }), t[83] = p, t[84] = S) : S = t[84];
967
- let w;
968
- t[85] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = {
977
+ } }), t[87] = f, t[88] = I) : I = t[88];
978
+ let $;
979
+ t[89] !== g || t[90] !== j || t[91] !== I ? ($ = /* @__PURE__ */ i.jsx(Ne, { size: "small", edge: "end", onClick: g, onMouseEnter: j, children: I }), t[89] = g, t[90] = j, t[91] = I, t[92] = $) : $ = t[92];
980
+ let A;
981
+ t[93] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = {
969
982
  width: 240
970
- }, t[85] = w) : w = t[85];
983
+ }, t[93] = A) : A = t[93];
971
984
  let M;
972
- t[86] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ s.jsx(jt, {}), t[86] = M) : M = t[86];
973
- let C;
974
- t[87] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ s.jsx(se, { children: /* @__PURE__ */ s.jsx(uo, { color: "error" }) }), t[87] = C) : C = t[87];
975
- let j;
976
- t[88] !== i ? (j = i("Layout.Logout"), t[88] = i, t[89] = j) : j = t[89];
985
+ t[94] !== S ? (M = /* @__PURE__ */ i.jsx(Pt, { children: S ? /* @__PURE__ */ i.jsx(z, { primary: S.displayName.split("/")[0], secondary: S.jobTitle }) : /* @__PURE__ */ i.jsx(z, { primary: /* @__PURE__ */ i.jsx(tt, {}), secondary: /* @__PURE__ */ i.jsx(tt, {}) }) }), t[94] = S, t[95] = M) : M = t[95];
986
+ let L;
987
+ t[96] !== u ? (L = () => To.signOut({
988
+ fetchOptions: {
989
+ onSuccess: () => u.invalidate()
990
+ }
991
+ }), t[96] = u, t[97] = L) : L = t[97];
977
992
  let _;
978
- t[90] !== j ? (_ = /* @__PURE__ */ s.jsxs(Te, { disablePadding: !0, children: [
979
- M,
980
- /* @__PURE__ */ s.jsxs(ne, { onClick: Uo, children: [
981
- C,
982
- /* @__PURE__ */ s.jsx(ie, { primary: j })
983
- ] })
984
- ] }), t[90] = j, t[91] = _) : _ = t[91];
985
- const E = n === "settings" && f, P = n === "theme" && y, $ = n === "language" && v;
986
- let T;
987
- t[92] !== _ || t[93] !== E || t[94] !== P || t[95] !== $ ? (T = /* @__PURE__ */ s.jsxs($e, { sx: w, children: [
993
+ t[98] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ i.jsx(de, { children: /* @__PURE__ */ i.jsx(Co, { color: "error" }) }), t[98] = _) : _ = t[98];
994
+ let D;
995
+ t[99] !== s ? (D = s("Layout.Logout"), t[99] = s, t[100] = D) : D = t[100];
996
+ let P;
997
+ t[101] !== D ? (P = /* @__PURE__ */ i.jsx(z, { primary: D }), t[101] = D, t[102] = P) : P = t[102];
998
+ let E;
999
+ t[103] !== L || t[104] !== P ? (E = /* @__PURE__ */ i.jsxs(ce, { onClick: L, children: [
988
1000
  _,
989
- E,
990
- P,
991
- $
992
- ] }), t[92] = _, t[93] = E, t[94] = P, t[95] = $, t[96] = T) : T = t[96];
993
- let I;
994
- t[97] !== e || t[98] !== m || t[99] !== l || t[100] !== T ? (I = /* @__PURE__ */ s.jsx(_t, { anchorEl: e, open: l, onClose: m, children: T }), t[97] = e, t[98] = m, t[99] = l, t[100] = T, t[101] = I) : I = t[101];
995
- let L;
996
- return t[102] !== I || t[103] !== S ? (L = /* @__PURE__ */ s.jsxs(Pe, { children: [
997
- S,
998
- I
999
- ] }), t[102] = I, t[103] = S, t[104] = L) : L = t[104], L;
1001
+ P
1002
+ ] }), t[103] = L, t[104] = P, t[105] = E) : E = t[105];
1003
+ let N;
1004
+ t[106] !== M || t[107] !== E ? (N = /* @__PURE__ */ i.jsxs(Pe, { disablePadding: !0, children: [
1005
+ M,
1006
+ E
1007
+ ] }), t[106] = M, t[107] = E, t[108] = N) : N = t[108];
1008
+ const ae = n === "settings" && k, We = n === "theme" && O, He = n === "language" && C;
1009
+ let W;
1010
+ t[109] !== N || t[110] !== ae || t[111] !== We || t[112] !== He ? (W = /* @__PURE__ */ i.jsxs(Re, { sx: A, children: [
1011
+ N,
1012
+ ae,
1013
+ We,
1014
+ He
1015
+ ] }), t[109] = N, t[110] = ae, t[111] = We, t[112] = He, t[113] = W) : W = t[113];
1016
+ let H;
1017
+ t[114] !== e || t[115] !== h || t[116] !== l || t[117] !== W ? (H = /* @__PURE__ */ i.jsx(Rt, { anchorEl: e, open: l, onClose: h, children: W }), t[114] = e, t[115] = h, t[116] = l, t[117] = W, t[118] = H) : H = t[118];
1018
+ let ue;
1019
+ return t[119] !== H || t[120] !== $ ? (ue = /* @__PURE__ */ i.jsxs(Ue, { children: [
1020
+ $,
1021
+ H
1022
+ ] }), t[119] = H, t[120] = $, t[121] = ue) : ue = t[121], ue;
1000
1023
  };
1001
- function Wo(t) {
1024
+ function rn(t) {
1002
1025
  return t !== "cimode";
1003
1026
  }
1004
- function Uo() {
1005
- return console.log("Logout clicked");
1006
- }
1007
- const ut = 3600 * 24 * 365, Ho = At().server(() => nt("navigationOpen") === "true").client(() => {
1027
+ const kt = 3600 * 24 * 365, ln = Kt().server(() => pt("navigationOpen") === "true").client(() => {
1008
1028
  const t = document.cookie.split("; ").find((e) => e.startsWith("navigationOpen="));
1009
1029
  return t ? t.split("=")[1] === "true" : !1;
1010
- }), qo = He("div")(({
1030
+ }), an = Je("div")(({
1011
1031
  theme: t
1012
1032
  }) => ({
1013
1033
  display: "flex",
@@ -1015,10 +1035,10 @@ const ut = 3600 * 24 * 365, Ho = At().server(() => nt("navigationOpen") === "tru
1015
1035
  justifyContent: "flex-end",
1016
1036
  padding: t.spacing(0, 1),
1017
1037
  ...t.mixins.toolbar
1018
- })), Ko = (t) => {
1019
- const e = B.c(29), [o, n] = W(Ho), r = !!Wt(), l = !!Ut();
1020
- let i, a;
1021
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ s.jsx(Lt, {}), a = /* @__PURE__ */ s.jsx(It, {}), e[0] = i, e[1] = a) : (i = e[0], a = e[1]);
1038
+ })), cn = (t) => {
1039
+ const e = B.c(29), [o, n] = U(ln), r = !!to(), l = !!oo();
1040
+ let s, a;
1041
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = /* @__PURE__ */ i.jsx(Ft, {}), a = /* @__PURE__ */ i.jsx(Bt, {}), e[0] = s, e[1] = a) : (s = e[0], a = e[1]);
1022
1042
  let c;
1023
1043
  e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
1024
1044
  display: "flex",
@@ -1027,58 +1047,58 @@ const ut = 3600 * 24 * 365, Ho = At().server(() => nt("navigationOpen") === "tru
1027
1047
  overflow: "hidden",
1028
1048
  width: "100%"
1029
1049
  }, e[2] = c) : c = e[2];
1030
- let u;
1031
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
1050
+ let d;
1051
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
1032
1052
  borderBottom: "1px solid",
1033
1053
  borderColor: "var(--mui-palette-divider)",
1034
1054
  boxShadow: "none"
1035
- }, e[3] = u) : u = e[3];
1036
- let d;
1037
- e[4] !== o || e[5] !== t.navigation ? (d = t.navigation && /* @__PURE__ */ s.jsx(Ee, { onClick: () => {
1038
- n(Yo);
1055
+ }, e[3] = d) : d = e[3];
1056
+ let u;
1057
+ e[4] !== o || e[5] !== t.navigation ? (u = t.navigation && /* @__PURE__ */ i.jsx(Ne, { onClick: () => {
1058
+ n(dn);
1039
1059
  }, sx: {
1040
1060
  marginRight: 2
1041
- }, children: o ? /* @__PURE__ */ s.jsx(Bt, {}) : /* @__PURE__ */ s.jsx(Ft, {}) }), e[4] = o, e[5] = t.navigation, e[6] = d) : d = e[6];
1042
- let m, p;
1043
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ s.jsx(Eo, {}), p = /* @__PURE__ */ s.jsx(zo, {}), e[7] = m, e[8] = p) : (m = e[7], p = e[8]);
1061
+ }, children: o ? /* @__PURE__ */ i.jsx(Zt, {}) : /* @__PURE__ */ i.jsx(Vt, {}) }), e[4] = o, e[5] = t.navigation, e[6] = u) : u = e[6];
1062
+ let p, m;
1063
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (p = /* @__PURE__ */ i.jsx(Yo, {}), m = /* @__PURE__ */ i.jsx(sn, {}), e[7] = p, e[8] = m) : (p = e[7], m = e[8]);
1044
1064
  let f;
1045
- e[9] !== d ? (f = /* @__PURE__ */ s.jsx(Ct, { color: "transparent", position: "fixed", sx: u, children: /* @__PURE__ */ s.jsxs(Dt, { children: [
1046
- d,
1047
- m,
1048
- p
1049
- ] }) }), e[9] = d, e[10] = f) : f = e[10];
1050
- let h;
1051
- e[11] !== o || e[12] !== t.navigation ? (h = t.navigation && /* @__PURE__ */ s.jsx(Bo, { navigation: t.navigation, expanded: o, setExpanded: (w) => {
1052
- n(w), document.cookie = `navigationOpen=${w}; max-age=${ut}; path=/`;
1053
- } }), e[11] = o, e[12] = t.navigation, e[13] = h) : h = e[13];
1054
- let x, y;
1055
- e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = {
1065
+ e[9] !== u ? (f = /* @__PURE__ */ i.jsx(zt, { color: "transparent", position: "fixed", sx: d, children: /* @__PURE__ */ i.jsxs(Ut, { children: [
1066
+ u,
1067
+ p,
1068
+ m
1069
+ ] }) }), e[9] = u, e[10] = f) : f = e[10];
1070
+ let x;
1071
+ e[11] !== o || e[12] !== t.navigation ? (x = t.navigation && /* @__PURE__ */ i.jsx(nn, { navigation: t.navigation, expanded: o, setExpanded: (w) => {
1072
+ n(w), document.cookie = `navigationOpen=${w}; max-age=${kt}; path=/`;
1073
+ } }), e[11] = o, e[12] = t.navigation, e[13] = x) : x = e[13];
1074
+ let v, S;
1075
+ e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = {
1056
1076
  flexGrow: 1,
1057
1077
  display: "flex",
1058
1078
  flexDirection: "column",
1059
1079
  minWidth: 0,
1060
1080
  height: "100%",
1061
1081
  overflow: "hidden"
1062
- }, x = /* @__PURE__ */ s.jsx(qo, {}), e[14] = x, e[15] = y) : (x = e[14], y = e[15]);
1063
- let k;
1064
- e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = {
1082
+ }, v = /* @__PURE__ */ i.jsx(an, {}), e[14] = v, e[15] = S) : (v = e[14], S = e[15]);
1083
+ let b;
1084
+ e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = {
1065
1085
  flex: 1,
1066
1086
  overflow: "auto",
1067
1087
  position: "relative"
1068
- }, e[16] = k) : k = e[16];
1069
- let v;
1070
- e[17] !== t.children ? (v = /* @__PURE__ */ s.jsxs($e, { component: "main", sx: y, children: [
1071
- x,
1072
- /* @__PURE__ */ s.jsx($e, { sx: k, children: t.children })
1073
- ] }), e[17] = t.children, e[18] = v) : v = e[18];
1088
+ }, e[16] = b) : b = e[16];
1089
+ let h;
1090
+ e[17] !== t.children ? (h = /* @__PURE__ */ i.jsxs(Re, { component: "main", sx: S, children: [
1091
+ v,
1092
+ /* @__PURE__ */ i.jsx(Re, { sx: b, children: t.children })
1093
+ ] }), e[17] = t.children, e[18] = h) : h = e[18];
1074
1094
  let g;
1075
- e[19] !== v || e[20] !== f || e[21] !== h ? (g = /* @__PURE__ */ s.jsxs($e, { sx: c, children: [
1095
+ e[19] !== h || e[20] !== f || e[21] !== x ? (g = /* @__PURE__ */ i.jsxs(Re, { sx: c, children: [
1076
1096
  f,
1077
- h,
1078
- v
1079
- ] }), e[19] = v, e[20] = f, e[21] = h, e[22] = g) : g = e[22];
1080
- let b;
1081
- e[23] !== r || e[24] !== l ? (b = (r || l) && /* @__PURE__ */ s.jsx(Tt, { sx: {
1097
+ x,
1098
+ h
1099
+ ] }), e[19] = h, e[20] = f, e[21] = x, e[22] = g) : g = e[22];
1100
+ let k;
1101
+ e[23] !== r || e[24] !== l ? (k = (r || l) && /* @__PURE__ */ i.jsx(Wt, { sx: {
1082
1102
  position: "fixed",
1083
1103
  top: {
1084
1104
  xs: 56,
@@ -1086,60 +1106,62 @@ const ut = 3600 * 24 * 365, Ho = At().server(() => nt("navigationOpen") === "tru
1086
1106
  },
1087
1107
  left: 0,
1088
1108
  right: 0
1089
- } }), e[23] = r, e[24] = l, e[25] = b) : b = e[25];
1090
- let S;
1091
- return e[26] !== g || e[27] !== b ? (S = /* @__PURE__ */ s.jsxs(Pe, { children: [
1092
- i,
1109
+ } }), e[23] = r, e[24] = l, e[25] = k) : k = e[25];
1110
+ let y;
1111
+ return e[26] !== g || e[27] !== k ? (y = /* @__PURE__ */ i.jsxs(Ue, { children: [
1112
+ s,
1093
1113
  a,
1094
1114
  g,
1095
- b
1096
- ] }), e[26] = g, e[27] = b, e[28] = S) : S = e[28], S;
1115
+ k
1116
+ ] }), e[26] = g, e[27] = k, e[28] = y) : y = e[28], y;
1097
1117
  };
1098
- function Yo(t) {
1118
+ function dn(t) {
1099
1119
  const e = !t;
1100
- return document.cookie = `navigationOpen=${e}; max-age=${ut}; path=/`, e;
1120
+ return document.cookie = `navigationOpen=${e}; max-age=${kt}; path=/`, e;
1101
1121
  }
1102
- const Xo = 1440 * 365;
1103
- F.use(ct).use(Do).init({
1104
- resources: Ke,
1122
+ const un = 1440 * 365;
1123
+ F.use(St).use(Qo).init({
1124
+ resources: nt,
1105
1125
  fallbackLng: "en",
1106
- supportedLngs: Object.keys(Ke),
1126
+ supportedLngs: Object.keys(nt),
1107
1127
  detection: {
1108
1128
  caches: ["cookie"],
1109
- cookieMinutes: Xo
1129
+ cookieMinutes: un
1110
1130
  },
1111
1131
  interpolation: {
1112
1132
  escapeValue: !1
1113
1133
  }
1114
1134
  });
1115
- const zn = (t) => {
1135
+ const ii = (t) => {
1116
1136
  const e = B.c(9), {
1117
1137
  navigation: o,
1118
1138
  theme: n,
1119
1139
  children: r
1120
- } = t, l = Rt(Go);
1121
- let i;
1122
- e[0] !== l ? (i = () => (l(), F.on("languageChanged", l), () => {
1140
+ } = t, l = Gt(fn);
1141
+ let s;
1142
+ e[0] !== l ? (s = () => (l(), F.on("languageChanged", l), () => {
1123
1143
  F.off("languageChanged", l);
1124
- }), e[0] = l, e[1] = i) : i = e[1];
1144
+ }), e[0] = l, e[1] = s) : s = e[1];
1125
1145
  let a;
1126
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = [], e[2] = a) : a = e[2], st(i, a);
1146
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = [], e[2] = a) : a = e[2], gt(s, a);
1127
1147
  let c;
1128
- e[3] !== r || e[4] !== o ? (c = /* @__PURE__ */ s.jsx($t, { dateAdapter: Mt, adapterLocale: F.language, children: /* @__PURE__ */ s.jsx(To, { children: /* @__PURE__ */ s.jsx(Ko, { navigation: o, children: r }) }) }, F.language), e[3] = r, e[4] = o, e[5] = c) : c = e[5];
1129
- let u;
1130
- return e[6] !== c || e[7] !== n ? (u = /* @__PURE__ */ s.jsx(Et, { theme: n, children: c }), e[6] = c, e[7] = n, e[8] = u) : u = e[8], u;
1131
- }, Wn = Ot().handler(async () => {
1132
- const t = nt(F.services.languageDetector.options.lookupCookie) || "en";
1133
- Ae.config(Ae.core.locales[t]()), it.locale(t), await F.changeLanguage(t);
1148
+ e[3] !== r || e[4] !== o ? (c = /* @__PURE__ */ i.jsx(qt, { dateAdapter: Qt, adapterLocale: F.language, children: /* @__PURE__ */ i.jsx(Ko, { children: /* @__PURE__ */ i.jsx(cn, { navigation: o, children: r }) }) }, F.language), e[3] = r, e[4] = o, e[5] = c) : c = e[5];
1149
+ let d;
1150
+ return e[6] !== c || e[7] !== n ? (d = /* @__PURE__ */ i.jsx(Ht, { theme: n, children: c }), e[6] = c, e[7] = n, e[8] = d) : d = e[8], d;
1151
+ }, si = Yt().handler(async () => {
1152
+ const t = pt(F.services.languageDetector.options.lookupCookie) || "en";
1153
+ Be.config(Be.core.locales[t]()), ht.locale(t), await F.changeLanguage(t);
1134
1154
  });
1135
- function Go() {
1136
- Ae.config(Ae.core.locales[F.language]()), it.locale(F.language);
1155
+ function fn() {
1156
+ Be.config(Be.core.locales[F.language]()), ht.locale(F.language);
1137
1157
  }
1158
+ const ri = new no();
1138
1159
  export {
1139
- zn as LayoutProvider,
1140
- qn as WISTRON_PRIMARY_COLOR,
1141
- Kn as WISTRON_SECONDARY_COLOR,
1142
- Yn as rootRouteHead,
1143
- Wn as setSSRLanguage
1160
+ ii as LayoutProvider,
1161
+ ci as WISTRON_PRIMARY_COLOR,
1162
+ di as WISTRON_SECONDARY_COLOR,
1163
+ ri as queryClient,
1164
+ ui as rootRouteHead,
1165
+ si as setSSRLanguage
1144
1166
  };
1145
1167
  //# sourceMappingURL=index.js.map