wcz-test 6.27.2 → 6.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/DialogsContext-CGAKEKKW.js +546 -0
  2. package/dist/DialogsContext-CGAKEKKW.js.map +1 -0
  3. package/dist/DialogsHooks-BZUdpDVJ.js +231 -0
  4. package/dist/{DialogsHooks-DzqOb2Zx.js.map → DialogsHooks-BZUdpDVJ.js.map} +1 -1
  5. package/dist/{FileHooks-C8Akmy_o.js → FileHooks-DCznEPaA.js} +65 -61
  6. package/dist/{FileHooks-C8Akmy_o.js.map → FileHooks-DCznEPaA.js.map} +1 -1
  7. package/dist/RouterListItemButton-C_jUvB6C.js +18 -0
  8. package/dist/RouterListItemButton-C_jUvB6C.js.map +1 -0
  9. package/dist/compiler-runtime-BNHg76kC.js +37 -0
  10. package/dist/compiler-runtime-BNHg76kC.js.map +1 -0
  11. package/dist/components.js +1652 -1013
  12. package/dist/components.js.map +1 -1
  13. package/dist/hooks.js +278 -278
  14. package/dist/hooks.js.map +1 -1
  15. package/dist/i18next-Bx3TmZAT.js +1337 -0
  16. package/dist/i18next-Bx3TmZAT.js.map +1 -0
  17. package/dist/index.js +842 -973
  18. package/dist/index.js.map +1 -1
  19. package/dist/queries.js +85 -85
  20. package/dist/queries.js.map +1 -1
  21. package/dist/utils-DV30kRxW.js +1921 -0
  22. package/dist/utils-DV30kRxW.js.map +1 -0
  23. package/dist/utils.js +4 -5
  24. package/dist/utils.js.map +1 -1
  25. package/package.json +1 -4
  26. package/dist/DialogsContext-2Yy6yhzQ.js +0 -6
  27. package/dist/DialogsContext-2Yy6yhzQ.js.map +0 -1
  28. package/dist/DialogsHooks-DzqOb2Zx.js +0 -233
  29. package/dist/RouterListItemButton-i4Ne2G-Z.js +0 -508
  30. package/dist/RouterListItemButton-i4Ne2G-Z.js.map +0 -1
  31. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -9
  32. package/dist/_commonjsHelpers-DaMA6jEr.js.map +0 -1
  33. package/dist/utils-IWcYo8tM.js +0 -106
  34. package/dist/utils-IWcYo8tM.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,559 +1,428 @@
1
- import { jsx as i, jsxs as L, Fragment as ht } from "react/jsx-runtime";
2
- import { c as B } from "react/compiler-runtime";
3
- import { Stack as pt, Typography as gt, Chip as yt, Collapse as Tt, useMediaQuery as xt, useColorScheme as bt, ListItemButton as ie, ListItemText as se, ListItemIcon as ae, ListSubheader as Re, List as Pe, IconButton as Ee, ListItem as St, Box as Ae, Menu as Mt, InitColorSchemeScript as kt, CssBaseline as Lt, AppBar as Dt, Toolbar as _t, LinearProgress as vt, ThemeProvider as Ot } from "@mui/material";
4
- import { createIsomorphicFn as Ct, createServerFn as wt } from "@tanstack/react-start";
5
- import { getCookie as at } from "@tanstack/react-start/server";
6
- import C from "dayjs";
7
- import R from "i18next";
8
- import It from "i18next-browser-languagedetector";
9
- import * as U from "react";
10
- import { useState as V, useId as Pt, useRef as Ke, Fragment as Ye, useEffect as lt, Suspense as Et, useEffectEvent as At } from "react";
11
- import { useTranslation as jt, initReactI18next as zt } from "react-i18next";
12
- import { resources as Je } from "virtual:wcz-layout";
13
- import ze from "zod";
14
- import { D as Nt } from "./DialogsContext-2Yy6yhzQ.js";
15
- import $t from "@mui/icons-material/Menu";
16
- import Yt from "@mui/icons-material/MenuOpen";
17
- import { useThemeProps as Wt, styled as Ze, useTheme as Ut } from "@mui/material/styles";
18
- import { useIsFetching as Ft, useIsMutating as Rt } from "@tanstack/react-query";
19
- import { c as Bt } from "./utils-IWcYo8tM.js";
20
- import { W as Vo, a as Go, r as Xo } from "./utils-IWcYo8tM.js";
21
- import ct from "@mui/material/Box";
22
- import Qe from "@mui/material/Drawer";
23
- import { useNavigate as Ht, useRouterState as Vt } from "@tanstack/react-router";
24
- import Gt from "@mui/material/Divider";
1
+ import { s as pt, a as ht, j as s, D as gt, u as xt } from "./DialogsContext-CGAKEKKW.js";
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";
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";
25
24
  import Xt from "@mui/material/List";
26
- import Zt from "@mui/material/ListSubheader";
27
- import qt from "@mui/icons-material/ExpandMore";
28
- import Kt from "@mui/material/Avatar";
29
- import Jt from "@mui/material/ListItem";
30
- import Qt from "@mui/material/ListItemButton";
31
- import en from "@mui/material/ListItemIcon";
32
- import tn from "@mui/material/ListItemText";
33
- import nn from "@mui/material/Paper";
34
- import on from "@mui/material/Popper";
35
- import rn from "@mui/material/Typography";
36
- import { P as S, R as sn } from "./RouterListItemButton-i4Ne2G-Z.js";
37
- import et from "@mui/icons-material/AccountCircle";
38
- import tt from "@mui/icons-material/ArrowBack";
39
- import an from "@mui/icons-material/Brightness4";
40
- import nt from "@mui/icons-material/ChevronRight";
41
- import ln from "@mui/icons-material/DarkMode";
42
- import cn from "@mui/icons-material/Done";
43
- import dn from "@mui/icons-material/LightMode";
44
- import un from "@mui/icons-material/Logout";
45
- import fn from "@mui/icons-material/SettingsBrightness";
46
- import mn from "@mui/icons-material/Translate";
47
- import hn from "dayjs/plugin/weekOfYear.js";
48
- import pn from "dayjs/plugin/customParseFormat.js";
49
- import gn from "dayjs/plugin/localizedFormat.js";
50
- import yn from "dayjs/plugin/isBetween.js";
51
- import Tn from "dayjs/plugin/advancedFormat.js";
52
- function Ne() {
53
- return Ne = Object.assign ? Object.assign.bind() : function(t) {
54
- for (var e = 1; e < arguments.length; e++) {
55
- var n = arguments[e];
56
- for (var r in n) ({}).hasOwnProperty.call(n, r) && (t[r] = n[r]);
57
- }
58
- return t;
59
- }, Ne.apply(null, arguments);
60
- }
61
- function xn(t, e) {
62
- if (t == null) return {};
63
- var n = {};
64
- for (var r in t) if ({}.hasOwnProperty.call(t, r)) {
65
- if (e.indexOf(r) !== -1) continue;
66
- n[r] = t[r];
67
- }
68
- return n;
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";
46
+ const {
47
+ slice: po,
48
+ forEach: ho
49
+ } = [];
50
+ function go(t) {
51
+ return ho.call(po.call(arguments, 1), (e) => {
52
+ if (e)
53
+ for (const o in e)
54
+ t[o] === void 0 && (t[o] = e[o]);
55
+ }), t;
69
56
  }
70
- const bn = ["localeText"], Ge = /* @__PURE__ */ U.createContext(null);
71
- process.env.NODE_ENV !== "production" && (Ge.displayName = "PickerAdapterContext");
72
- const qe = function(e) {
73
- const {
74
- localeText: n
75
- } = e, r = xn(e, bn), {
76
- adapter: s,
77
- localeText: a
78
- } = U.useContext(Ge) ?? {
79
- adapter: void 0,
80
- localeText: void 0
81
- }, o = Wt({
82
- // We don't want to pass the `localeText` prop to the theme, that way it will always return the theme value,
83
- // We will then merge this theme value with our value manually
84
- props: r,
85
- name: "MuiLocalizationProvider"
86
- }), {
87
- children: l,
88
- dateAdapter: d,
89
- dateFormats: u,
90
- dateLibInstance: c,
91
- adapterLocale: m,
92
- localeText: h
93
- } = o, f = U.useMemo(() => Ne({}, h, a, n), [h, a, n]), p = U.useMemo(() => {
94
- if (!d)
95
- return s || null;
96
- const M = new d({
97
- locale: m,
98
- formats: u,
99
- instance: c
100
- });
101
- if (!M.isMUIAdapter)
102
- throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`", "For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`", "More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation"].join(`
103
- `));
104
- return M;
105
- }, [d, m, u, c, s]), g = U.useMemo(() => p ? {
106
- minDate: p.date("1900-01-01T00:00:00.000"),
107
- maxDate: p.date("2099-12-31T00:00:00.000")
108
- } : null, [p]), T = U.useMemo(() => ({
109
- utils: p,
110
- adapter: p,
111
- defaultDates: g,
112
- localeText: f
113
- }), [g, p, f]);
114
- return /* @__PURE__ */ i(Ge.Provider, {
115
- value: T,
116
- children: l
117
- });
118
- };
119
- process.env.NODE_ENV !== "production" && (qe.displayName = "LocalizationProvider");
120
- process.env.NODE_ENV !== "production" && (qe.propTypes = {
121
- // ----------------------------- Warning --------------------------------
122
- // | These PropTypes are generated from the TypeScript type definitions |
123
- // | To update them edit the TypeScript types and run "pnpm proptypes" |
124
- // ----------------------------------------------------------------------
125
- /**
126
- * Locale for the date library you are using
127
- */
128
- adapterLocale: S.any,
129
- children: S.node,
130
- /**
131
- * Date library adapter class function.
132
- * @see See the localization provider {@link https://mui.com/x/react-date-pickers/quickstart/#integrate-provider-and-adapter date adapter setup section} for more details.
133
- */
134
- dateAdapter: S.func,
135
- /**
136
- * Formats that are used for any child pickers
137
- */
138
- dateFormats: S.shape({
139
- dayOfMonth: S.string,
140
- dayOfMonthFull: S.string,
141
- fullDate: S.string,
142
- fullTime12h: S.string,
143
- fullTime24h: S.string,
144
- hours12h: S.string,
145
- hours24h: S.string,
146
- keyboardDate: S.string,
147
- keyboardDateTime12h: S.string,
148
- keyboardDateTime24h: S.string,
149
- meridiem: S.string,
150
- minutes: S.string,
151
- month: S.string,
152
- monthShort: S.string,
153
- normalDate: S.string,
154
- normalDateWithWeekday: S.string,
155
- seconds: S.string,
156
- shortDate: S.string,
157
- weekday: S.string,
158
- weekdayShort: S.string,
159
- year: S.string
160
- }),
161
- /**
162
- * Date library instance you are using, if it has some global overrides
163
- * ```jsx
164
- * dateLibInstance={momentTimeZone}
165
- * ```
166
- */
167
- dateLibInstance: S.any,
168
- /**
169
- * Locale for components texts
170
- */
171
- localeText: S.object
172
- });
173
- const Sn = typeof window < "u" ? U.useLayoutEffect : U.useEffect;
174
- function Be(t) {
175
- const e = U.useRef(t);
176
- return Sn(() => {
177
- e.current = t;
178
- }), U.useRef((...n) => (
179
- // @ts-expect-error hide `this`
180
- (0, e.current)(...n)
181
- )).current;
57
+ function xo(t) {
58
+ 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));
182
59
  }
183
- const ot = /* @__PURE__ */ new Set();
184
- function Mn(t, e = "warning") {
185
- if (process.env.NODE_ENV === "production")
186
- return;
187
- const n = Array.isArray(t) ? t.join(`
188
- `) : t;
189
- ot.has(n) || (ot.add(n), e === "error" ? console.error(n) : console.warn(n));
190
- }
191
- C.extend(gn);
192
- C.extend(hn);
193
- C.extend(yn);
194
- C.extend(Tn);
195
- const kn = {
196
- // Year
197
- YY: "year",
198
- YYYY: {
199
- sectionType: "year",
200
- contentType: "digit",
201
- maxLength: 4
202
- },
203
- // Month
204
- M: {
205
- sectionType: "month",
206
- contentType: "digit",
207
- maxLength: 2
208
- },
209
- MM: "month",
210
- MMM: {
211
- sectionType: "month",
212
- contentType: "letter"
213
- },
214
- MMMM: {
215
- sectionType: "month",
216
- contentType: "letter"
217
- },
218
- // Day of the month
219
- D: {
220
- sectionType: "day",
221
- contentType: "digit",
222
- maxLength: 2
223
- },
224
- DD: "day",
225
- Do: {
226
- sectionType: "day",
227
- contentType: "digit-with-letter"
228
- },
229
- // Day of the week
230
- d: {
231
- sectionType: "weekDay",
232
- contentType: "digit",
233
- maxLength: 2
234
- },
235
- dd: {
236
- sectionType: "weekDay",
237
- contentType: "letter"
238
- },
239
- ddd: {
240
- sectionType: "weekDay",
241
- contentType: "letter"
242
- },
243
- dddd: {
244
- sectionType: "weekDay",
245
- contentType: "letter"
246
- },
247
- // Meridiem
248
- A: "meridiem",
249
- a: "meridiem",
250
- // Hours
251
- H: {
252
- sectionType: "hours",
253
- contentType: "digit",
254
- maxLength: 2
255
- },
256
- HH: "hours",
257
- h: {
258
- sectionType: "hours",
259
- contentType: "digit",
260
- maxLength: 2
261
- },
262
- hh: "hours",
263
- // Minutes
264
- m: {
265
- sectionType: "minutes",
266
- contentType: "digit",
267
- maxLength: 2
268
- },
269
- mm: "minutes",
270
- // Seconds
271
- s: {
272
- sectionType: "seconds",
273
- contentType: "digit",
274
- maxLength: 2
275
- },
276
- ss: "seconds"
277
- }, Ln = {
278
- year: "YYYY",
279
- month: "MMMM",
280
- monthShort: "MMM",
281
- dayOfMonth: "D",
282
- dayOfMonthFull: "Do",
283
- weekday: "dddd",
284
- weekdayShort: "dd",
285
- hours24h: "HH",
286
- hours12h: "hh",
287
- meridiem: "A",
288
- minutes: "mm",
289
- seconds: "ss",
290
- fullDate: "ll",
291
- keyboardDate: "L",
292
- shortDate: "MMM D",
293
- normalDate: "D MMMM",
294
- normalDateWithWeekday: "ddd, MMM D",
295
- fullTime12h: "hh:mm A",
296
- fullTime24h: "HH:mm",
297
- keyboardDateTime12h: "L hh:mm A",
298
- keyboardDateTime24h: "L HH:mm"
299
- }, He = ["Missing UTC plugin", "To be able to use UTC or timezones, you have to enable the `utc` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
300
- `), rt = ["Missing timezone plugin", "To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
301
- `);
302
- class Dn {
303
- isMUIAdapter = !0;
304
- isTimezoneCompatible = !0;
305
- lib = "dayjs";
306
- escapedCharacters = {
307
- start: "[",
308
- end: "]"
309
- };
310
- formatTokenMap = kn;
311
- constructor({
312
- locale: e,
313
- formats: n
314
- } = {}) {
315
- this.locale = e, this.formats = Ne({}, Ln, n), C.extend(pn);
60
+ const Ve = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, yo = function(t, e) {
61
+ const n = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
62
+ path: "/"
63
+ }, r = encodeURIComponent(e);
64
+ let l = `${t}=${r}`;
65
+ 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)}`;
69
+ }
70
+ if (n.domain) {
71
+ if (!Ve.test(n.domain))
72
+ throw new TypeError("option domain is invalid");
73
+ l += `; Domain=${n.domain}`;
74
+ }
75
+ if (n.path) {
76
+ if (!Ve.test(n.path))
77
+ throw new TypeError("option path is invalid");
78
+ l += `; Path=${n.path}`;
79
+ }
80
+ if (n.expires) {
81
+ if (typeof n.expires.toUTCString != "function")
82
+ throw new TypeError("option expires is invalid");
83
+ l += `; Expires=${n.expires.toUTCString()}`;
316
84
  }
317
- setLocaleToValue = (e) => {
318
- const n = this.getCurrentLocaleCode();
319
- return n === e.locale() ? e : e.locale(n);
320
- };
321
- hasUTCPlugin = () => typeof C.utc < "u";
322
- hasTimezonePlugin = () => typeof C.tz < "u";
323
- isSame = (e, n, r) => {
324
- const s = this.setTimezone(n, this.getTimezone(e));
325
- return e.format(r) === s.format(r);
326
- };
327
- /**
328
- * Replaces "default" by undefined and "system" by the system timezone before passing it to `dayjs`.
329
- */
330
- cleanTimezone = (e) => {
331
- switch (e) {
332
- case "default":
333
- return;
334
- case "system":
335
- return C.tz.guess();
85
+ if (n.httpOnly && (l += "; HttpOnly"), n.secure && (l += "; Secure"), n.sameSite)
86
+ switch (typeof n.sameSite == "string" ? n.sameSite.toLowerCase() : n.sameSite) {
87
+ case !0:
88
+ l += "; SameSite=Strict";
89
+ break;
90
+ case "lax":
91
+ l += "; SameSite=Lax";
92
+ break;
93
+ case "strict":
94
+ l += "; SameSite=Strict";
95
+ break;
96
+ case "none":
97
+ l += "; SameSite=None";
98
+ break;
336
99
  default:
337
- return e;
100
+ throw new TypeError("option sameSite is invalid");
338
101
  }
339
- };
340
- createSystemDate = (e) => {
341
- let n;
342
- if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
343
- const r = C.tz.guess();
344
- r === "UTC" ? n = C(e) : n = C.tz(e, r);
345
- } else
346
- n = C(e);
347
- return this.setLocaleToValue(n);
348
- };
349
- createUTCDate = (e) => {
350
- if (!this.hasUTCPlugin())
351
- throw new Error(He);
352
- return this.setLocaleToValue(C.utc(e));
353
- };
354
- createTZDate = (e, n) => {
355
- if (!this.hasUTCPlugin())
356
- throw new Error(He);
357
- if (!this.hasTimezonePlugin())
358
- throw new Error(rt);
359
- const r = e !== void 0 && !e.endsWith("Z");
360
- return this.setLocaleToValue(C(e).tz(this.cleanTimezone(n), r));
361
- };
362
- getLocaleFormats = () => {
363
- const e = C.Ls, n = this.locale || "en";
364
- let r = e[n];
365
- return r === void 0 && (process.env.NODE_ENV !== "production" && Mn(["MUI X: Your locale has not been found.", "Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.", "Or you forget to import the locale from 'dayjs/locale/{localeUsed}'", "fallback on English locale."]), r = e.en), r.formats;
366
- };
367
- /**
368
- * If the new day does not have the same offset as the old one (when switching to summer day time for example),
369
- * Then dayjs will not automatically adjust the offset (moment does).
370
- * We have to parse again the value to make sure the `fixOffset` method is applied.
371
- * See https://github.com/iamkun/dayjs/blob/b3624de619d6e734cd0ffdbbd3502185041c1b60/src/plugin/timezone/index.js#L72
372
- */
373
- adjustOffset = (e) => {
374
- if (!this.hasTimezonePlugin())
375
- return e;
376
- const n = this.getTimezone(e);
377
- if (n !== "UTC") {
378
- const r = e.tz(this.cleanTimezone(n), !0);
379
- if (r.$offset === (e.$offset ?? 0))
380
- return e;
381
- e.$offset = r.$offset;
382
- }
383
- return e;
384
- };
385
- date = (e, n = "default") => e === null ? null : n === "UTC" ? this.createUTCDate(e) : n === "system" || n === "default" && !this.hasTimezonePlugin() ? this.createSystemDate(e) : this.createTZDate(e, n);
386
- getInvalidDate = () => C(/* @__PURE__ */ new Date("Invalid date"));
387
- getTimezone = (e) => {
388
- if (this.hasTimezonePlugin()) {
389
- const n = e.$x?.$timezone;
390
- if (n)
391
- return n;
102
+ return n.partitioned && (l += "; Partitioned"), l;
103
+ }, Ze = {
104
+ create(t, e, o, n) {
105
+ let r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
106
+ path: "/",
107
+ sameSite: "strict"
108
+ };
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
+ },
111
+ read(t) {
112
+ const e = `${t}=`, o = document.cookie.split(";");
113
+ for (let n = 0; n < o.length; n++) {
114
+ let r = o[n];
115
+ for (; r.charAt(0) === " "; ) r = r.substring(1, r.length);
116
+ if (r.indexOf(e) === 0) return r.substring(e.length, r.length);
392
117
  }
393
- return this.hasUTCPlugin() && e.isUTC() ? "UTC" : "system";
394
- };
395
- setTimezone = (e, n) => {
396
- if (this.getTimezone(e) === n)
397
- return e;
398
- if (n === "UTC") {
399
- if (!this.hasUTCPlugin())
400
- throw new Error(He);
401
- return e.utc();
118
+ return null;
119
+ },
120
+ remove(t, e) {
121
+ this.create(t, "", -1, e);
122
+ }
123
+ };
124
+ var vo = {
125
+ name: "cookie",
126
+ // Deconstruct the options object and extract the lookupCookie property
127
+ lookup(t) {
128
+ let {
129
+ lookupCookie: e
130
+ } = t;
131
+ if (e && typeof document < "u")
132
+ return Ze.read(e) || void 0;
133
+ },
134
+ // Deconstruct the options object and extract the lookupCookie, cookieMinutes, cookieDomain, and cookieOptions properties
135
+ cacheUserLanguage(t, e) {
136
+ let {
137
+ lookupCookie: o,
138
+ cookieMinutes: n,
139
+ cookieDomain: r,
140
+ cookieOptions: l
141
+ } = e;
142
+ o && typeof document < "u" && Ze.create(o, t, n, r, l);
143
+ }
144
+ }, So = {
145
+ name: "querystring",
146
+ // Deconstruct the options object and extract the lookupQuerystring property
147
+ lookup(t) {
148
+ let {
149
+ lookupQuerystring: e
150
+ } = t, o;
151
+ if (typeof window < "u") {
152
+ let {
153
+ search: n
154
+ } = window.location;
155
+ !window.location.search && window.location.hash?.indexOf("?") > -1 && (n = window.location.hash.substring(window.location.hash.indexOf("?")));
156
+ 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));
160
+ }
402
161
  }
403
- if (n === "system")
404
- return e.local();
405
- if (!this.hasTimezonePlugin()) {
406
- if (n === "default")
407
- return e;
408
- throw new Error(rt);
162
+ return o;
163
+ }
164
+ }, bo = {
165
+ name: "hash",
166
+ // Deconstruct the options object and extract the lookupHash property and the lookupFromHashIndex property
167
+ lookup(t) {
168
+ let {
169
+ lookupHash: e,
170
+ lookupFromHashIndex: o
171
+ } = t, n;
172
+ if (typeof window < "u") {
173
+ const {
174
+ hash: r
175
+ } = window.location;
176
+ if (r && r.length > 2) {
177
+ const l = r.substring(1);
178
+ 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));
183
+ }
184
+ }
185
+ if (n) return n;
186
+ 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;
189
+ }
190
+ }
409
191
  }
410
- return this.setLocaleToValue(C.tz(e, this.cleanTimezone(n)));
411
- };
412
- toJsDate = (e) => e.toDate();
413
- parse = (e, n) => e === "" ? null : C(e, n, this.locale, !0);
414
- getCurrentLocaleCode = () => this.locale || "en";
415
- is12HourCycleInCurrentLocale = () => /A|a/.test(this.getLocaleFormats().LT || "");
416
- expandFormat = (e) => {
417
- const n = this.getLocaleFormats(), r = (s) => s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (a, o, l) => o || l.slice(1));
418
- return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (s, a, o) => {
419
- const l = o && o.toUpperCase();
420
- return a || n[o] || r(n[l]);
421
- });
422
- };
423
- isValid = (e) => e == null ? !1 : e.isValid();
424
- format = (e, n) => this.formatByString(e, this.formats[n]);
425
- formatByString = (e, n) => this.setLocaleToValue(e).format(n);
426
- formatNumber = (e) => e;
427
- isEqual = (e, n) => e === null && n === null ? !0 : e === null || n === null ? !1 : e.toDate().getTime() === n.toDate().getTime();
428
- isSameYear = (e, n) => this.isSame(e, n, "YYYY");
429
- isSameMonth = (e, n) => this.isSame(e, n, "YYYY-MM");
430
- isSameDay = (e, n) => this.isSame(e, n, "YYYY-MM-DD");
431
- isSameHour = (e, n) => e.isSame(n, "hour");
432
- isAfter = (e, n) => e > n;
433
- isAfterYear = (e, n) => this.hasUTCPlugin() ? !this.isSameYear(e, n) && e.utc() > n.utc() : e.isAfter(n, "year");
434
- isAfterDay = (e, n) => this.hasUTCPlugin() ? !this.isSameDay(e, n) && e.utc() > n.utc() : e.isAfter(n, "day");
435
- isBefore = (e, n) => e < n;
436
- isBeforeYear = (e, n) => this.hasUTCPlugin() ? !this.isSameYear(e, n) && e.utc() < n.utc() : e.isBefore(n, "year");
437
- isBeforeDay = (e, n) => this.hasUTCPlugin() ? !this.isSameDay(e, n) && e.utc() < n.utc() : e.isBefore(n, "day");
438
- isWithinRange = (e, [n, r]) => e >= n && e <= r;
439
- startOfYear = (e) => this.adjustOffset(e.startOf("year"));
440
- startOfMonth = (e) => this.adjustOffset(e.startOf("month"));
441
- startOfWeek = (e) => this.adjustOffset(this.setLocaleToValue(e).startOf("week"));
442
- startOfDay = (e) => this.adjustOffset(e.startOf("day"));
443
- endOfYear = (e) => this.adjustOffset(e.endOf("year"));
444
- endOfMonth = (e) => this.adjustOffset(e.endOf("month"));
445
- endOfWeek = (e) => this.adjustOffset(this.setLocaleToValue(e).endOf("week"));
446
- endOfDay = (e) => this.adjustOffset(e.endOf("day"));
447
- addYears = (e, n) => this.adjustOffset(e.add(n, "year"));
448
- addMonths = (e, n) => this.adjustOffset(e.add(n, "month"));
449
- addWeeks = (e, n) => this.adjustOffset(e.add(n, "week"));
450
- addDays = (e, n) => this.adjustOffset(e.add(n, "day"));
451
- addHours = (e, n) => this.adjustOffset(e.add(n, "hour"));
452
- addMinutes = (e, n) => this.adjustOffset(e.add(n, "minute"));
453
- addSeconds = (e, n) => this.adjustOffset(e.add(n, "second"));
454
- getYear = (e) => e.year();
455
- getMonth = (e) => e.month();
456
- getDate = (e) => e.date();
457
- getHours = (e) => e.hour();
458
- getMinutes = (e) => e.minute();
459
- getSeconds = (e) => e.second();
460
- getMilliseconds = (e) => e.millisecond();
461
- setYear = (e, n) => this.adjustOffset(e.set("year", n));
462
- setMonth = (e, n) => this.adjustOffset(e.set("month", n));
463
- setDate = (e, n) => this.adjustOffset(e.set("date", n));
464
- setHours = (e, n) => this.adjustOffset(e.set("hour", n));
465
- setMinutes = (e, n) => this.adjustOffset(e.set("minute", n));
466
- setSeconds = (e, n) => this.adjustOffset(e.set("second", n));
467
- setMilliseconds = (e, n) => this.adjustOffset(e.set("millisecond", n));
468
- getDaysInMonth = (e) => e.daysInMonth();
469
- getWeekArray = (e) => {
470
- const n = this.startOfWeek(this.startOfMonth(e)), r = this.endOfWeek(this.endOfMonth(e));
471
- let s = 0, a = n;
472
- const o = [];
473
- for (; a < r; ) {
474
- const l = Math.floor(s / 7);
475
- o[l] = o[l] || [], o[l].push(a), a = this.addDays(a, 1), s += 1;
192
+ return n;
193
+ }
194
+ };
195
+ let te = null;
196
+ const Je = () => {
197
+ if (te !== null) return te;
198
+ try {
199
+ if (te = typeof window < "u" && window.localStorage !== null, !te)
200
+ return !1;
201
+ const t = "i18next.translate.boo";
202
+ window.localStorage.setItem(t, "foo"), window.localStorage.removeItem(t);
203
+ } catch {
204
+ te = !1;
205
+ }
206
+ return te;
207
+ };
208
+ var ko = {
209
+ name: "localStorage",
210
+ // Deconstruct the options object and extract the lookupLocalStorage property
211
+ lookup(t) {
212
+ let {
213
+ lookupLocalStorage: e
214
+ } = t;
215
+ if (e && Je())
216
+ return window.localStorage.getItem(e) || void 0;
217
+ },
218
+ // Deconstruct the options object and extract the lookupLocalStorage property
219
+ cacheUserLanguage(t, e) {
220
+ let {
221
+ lookupLocalStorage: o
222
+ } = e;
223
+ o && Je() && window.localStorage.setItem(o, t);
224
+ }
225
+ };
226
+ let oe = null;
227
+ const et = () => {
228
+ if (oe !== null) return oe;
229
+ try {
230
+ if (oe = typeof window < "u" && window.sessionStorage !== null, !oe)
231
+ return !1;
232
+ const t = "i18next.translate.boo";
233
+ window.sessionStorage.setItem(t, "foo"), window.sessionStorage.removeItem(t);
234
+ } catch {
235
+ oe = !1;
236
+ }
237
+ return oe;
238
+ };
239
+ var wo = {
240
+ name: "sessionStorage",
241
+ lookup(t) {
242
+ let {
243
+ lookupSessionStorage: e
244
+ } = t;
245
+ if (e && et())
246
+ return window.sessionStorage.getItem(e) || void 0;
247
+ },
248
+ cacheUserLanguage(t, e) {
249
+ let {
250
+ lookupSessionStorage: o
251
+ } = e;
252
+ o && et() && window.sessionStorage.setItem(o, t);
253
+ }
254
+ }, jo = {
255
+ name: "navigator",
256
+ lookup(t) {
257
+ const e = [];
258
+ if (typeof navigator < "u") {
259
+ const {
260
+ languages: o,
261
+ userLanguage: n,
262
+ language: r
263
+ } = navigator;
264
+ if (o)
265
+ for (let l = 0; l < o.length; l++)
266
+ e.push(o[l]);
267
+ n && e.push(n), r && e.push(r);
476
268
  }
477
- return o;
478
- };
479
- getWeekNumber = (e) => e.week();
480
- getDayOfWeek(e) {
481
- return e.day() + 1;
269
+ return e.length > 0 ? e : void 0;
270
+ }
271
+ }, _o = {
272
+ name: "htmlTag",
273
+ // Deconstruct the options object and extract the htmlTag property
274
+ lookup(t) {
275
+ let {
276
+ htmlTag: e
277
+ } = t, o;
278
+ const n = e || (typeof document < "u" ? document.documentElement : null);
279
+ return n && typeof n.getAttribute == "function" && (o = n.getAttribute("lang")), o;
280
+ }
281
+ }, Lo = {
282
+ name: "path",
283
+ // Deconstruct the options object and extract the lookupFromPathIndex property
284
+ lookup(t) {
285
+ let {
286
+ lookupFromPathIndex: e
287
+ } = t;
288
+ if (typeof window > "u") return;
289
+ const o = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
290
+ return Array.isArray(o) ? o[typeof e == "number" ? e : 0]?.replace("/", "") : void 0;
482
291
  }
483
- getYearRange = ([e, n]) => {
484
- const r = this.startOfYear(e), s = this.endOfYear(n), a = [];
485
- let o = r;
486
- for (; this.isBefore(o, s); )
487
- a.push(o), o = this.addYears(o, 1);
488
- return a;
489
- };
292
+ }, Io = {
293
+ name: "subdomain",
294
+ lookup(t) {
295
+ let {
296
+ lookupFromSubdomainIndex: e
297
+ } = t;
298
+ 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);
299
+ if (n)
300
+ return n[o];
301
+ }
302
+ };
303
+ let lt = !1;
304
+ try {
305
+ document.cookie, lt = !0;
306
+ } catch {
490
307
  }
491
- function _n({
308
+ const at = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
309
+ lt || at.splice(1, 1);
310
+ const Co = () => ({
311
+ order: at,
312
+ lookupQuerystring: "lng",
313
+ lookupCookie: "i18next",
314
+ lookupLocalStorage: "i18nextLng",
315
+ lookupSessionStorage: "i18nextLng",
316
+ // cache user language
317
+ caches: ["localStorage"],
318
+ excludeCacheFor: ["cimode"],
319
+ // cookieMinutes: 10,
320
+ // cookieDomain: 'myDomain'
321
+ convertDetectedLanguage: (t) => t
322
+ });
323
+ class ct {
324
+ constructor(e) {
325
+ let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
326
+ this.type = "languageDetector", this.detectors = {}, this.init(e, o);
327
+ }
328
+ init() {
329
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
330
+ languageUtils: {}
331
+ }, 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
+ }
334
+ addDetector(e) {
335
+ return this.detectors[e.name] = e, this;
336
+ }
337
+ detect() {
338
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.options.order, o = [];
339
+ return e.forEach((n) => {
340
+ if (this.detectors[n]) {
341
+ let r = this.detectors[n].lookup(this.options);
342
+ r && typeof r == "string" && (r = [r]), r && (o = o.concat(r));
343
+ }
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
+ }
346
+ cacheUserLanguage(e) {
347
+ let o = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
348
+ o && (this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(e) > -1 || o.forEach((n) => {
349
+ this.detectors[n] && this.detectors[n].cacheUserLanguage(e, this.options);
350
+ }));
351
+ }
352
+ }
353
+ ct.type = "languageDetector";
354
+ const Do = {
355
+ type: "3rdParty",
356
+ init(t) {
357
+ pt(t.options.react), ht(t);
358
+ }
359
+ };
360
+ function To({
492
361
  children: t
493
362
  }) {
494
- const [e, n] = V([]), r = Pt(), s = Ke(0), a = Ke(/* @__PURE__ */ new WeakMap()), o = Be(function(m, h, f = {}) {
363
+ const [e, o] = W([]), n = Pt(), r = qe(0), l = qe(/* @__PURE__ */ new WeakMap()), i = ze(function(m, p, f = {}) {
495
364
  const {
496
- onClose: p = async () => {
365
+ onClose: h = async () => {
497
366
  }
498
367
  } = f;
499
- let g;
500
- const T = new Promise((y) => {
501
- g = y;
502
- }), M = `${r}-${s.current}`;
503
- s.current += 1;
504
- const x = {
505
- key: M,
368
+ let x;
369
+ const y = new Promise((g) => {
370
+ x = g;
371
+ }), k = `${n}-${r.current}`;
372
+ r.current += 1;
373
+ const v = {
374
+ key: k,
506
375
  open: !0,
507
- promise: T,
376
+ promise: y,
508
377
  Component: m,
509
- payload: h,
510
- onClose: p,
511
- resolve: g
378
+ payload: p,
379
+ onClose: h,
380
+ resolve: x
512
381
  };
513
- return a.current.set(T, x), n((y) => [...y, x]), T;
514
- }), l = (c) => {
515
- n((m) => m.filter((h) => h.promise !== c)), a.current.delete(c);
516
- }, d = Be(function(m) {
517
- n((h) => h.map((f) => f.promise === m ? {
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 ? {
518
387
  ...f,
519
388
  open: !1
520
- } : f)), setTimeout(() => l(m), 1e3);
521
- }), u = Be(async function(m, h) {
522
- const f = a.current.get(m);
389
+ } : f)), setTimeout(() => a(m), 1e3);
390
+ }), u = ze(async function(m, p) {
391
+ const f = l.current.get(m);
523
392
  if (!f)
524
393
  throw new Error("Dialog not found in stack");
525
394
  try {
526
- await f.onClose(h);
395
+ await f.onClose(p);
527
396
  } finally {
528
- f.resolve(h), d(m);
397
+ f.resolve(p), c(m);
529
398
  }
530
399
  return m;
531
400
  });
532
- return /* @__PURE__ */ L(Nt.Provider, { value: {
533
- open: o,
401
+ return /* @__PURE__ */ s.jsxs(gt.Provider, { value: {
402
+ open: i,
534
403
  close: u
535
404
  }, children: [
536
405
  t,
537
406
  e.map(({
538
- key: c,
407
+ key: d,
539
408
  open: m,
540
- Component: h,
409
+ Component: p,
541
410
  payload: f,
542
- promise: p
543
- }) => /* @__PURE__ */ i(h, { payload: f, open: m, onClose: async (g) => {
544
- await u(p, g);
545
- } }, c))
411
+ promise: h
412
+ }) => /* @__PURE__ */ s.jsx(p, { payload: f, open: m, onClose: async (x) => {
413
+ await u(h, x);
414
+ } }, d))
546
415
  ] });
547
416
  }
548
- const vn = () => {
549
- const t = B(1);
417
+ const Eo = () => {
418
+ const t = B.c(1);
550
419
  let e;
551
- return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ L(pt, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
552
- /* @__PURE__ */ i("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
553
- /* @__PURE__ */ i(gt, { variant: "h6", children: Bt.VITE_APP_TITLE }),
554
- /* @__PURE__ */ i(yt, { size: "small", label: "TEST", color: "info" })
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" })
555
424
  ] }), t[0] = e) : e = t[0], e;
556
- }, Ve = 34, On = Ze(Qt)(({
425
+ }, We = 34, $o = He(Jt)(({
557
426
  theme: t
558
427
  }) => ({
559
428
  borderRadius: 8,
@@ -574,7 +443,7 @@ const vn = () => {
574
443
  "& .MuiAvatar-root": {
575
444
  backgroundColor: (t.vars ?? t).palette.action.active
576
445
  }
577
- })), Cn = Ze(sn)(({
446
+ })), Mo = He(so)(({
578
447
  theme: t
579
448
  }) => ({
580
449
  borderRadius: 8,
@@ -595,40 +464,40 @@ const vn = () => {
595
464
  "& .MuiAvatar-root": {
596
465
  backgroundColor: (t.vars ?? t).palette.action.active
597
466
  }
598
- })), wn = (t) => {
599
- const e = B(17), {
600
- item: n,
601
- collapsed: r
467
+ })), Ao = (t) => {
468
+ const e = B.c(17), {
469
+ item: o,
470
+ collapsed: n
602
471
  } = t;
603
- if (n.icon || r) {
604
- let s;
605
- e[0] !== r ? (s = r ? {
472
+ if (o.icon || n) {
473
+ let r;
474
+ e[0] !== n ? (r = n ? {
606
475
  position: "absolute",
607
476
  left: "50%",
608
477
  top: "calc(50% - 6px)",
609
478
  transform: "translate(-50%, -50%)"
610
- } : {}, e[0] = r, e[1] = s) : s = e[1];
611
- let a;
612
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
479
+ } : {}, e[0] = n, e[1] = r) : r = e[1];
480
+ let l;
481
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
613
482
  display: "flex",
614
483
  alignItems: "center",
615
484
  justifyContent: "center",
616
- minWidth: Ve
617
- }, e[2] = a) : a = e[2];
618
- const o = n.icon ?? null;
619
- let l;
620
- e[3] !== r || e[4] !== n.icon || e[5] !== n.title ? (l = !n.icon && r ? /* @__PURE__ */ i(Kt, { sx: {
621
- width: Ve - 7,
622
- height: Ve - 7,
485
+ minWidth: We
486
+ }, e[2] = l) : l = e[2];
487
+ const i = o.icon ?? null;
488
+ 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,
623
492
  fontSize: 12
624
- }, children: n.title }) : null, e[3] = r, e[4] = n.icon, e[5] = n.title, e[6] = l) : l = e[6];
625
- let d;
626
- e[7] !== o || e[8] !== l ? (d = /* @__PURE__ */ L(en, { sx: a, children: [
627
- o,
628
- l
629
- ] }), e[7] = o, e[8] = l, e[9] = d) : d = e[9];
493
+ }, children: o.title }) : null, e[3] = n, e[4] = o.icon, e[5] = o.title, e[6] = a) : a = e[6];
494
+ let c;
495
+ e[7] !== i || e[8] !== a ? (c = /* @__PURE__ */ s.jsxs(eo, { sx: l, children: [
496
+ i,
497
+ a
498
+ ] }), e[7] = i, e[8] = a, e[9] = c) : c = e[9];
630
499
  let u;
631
- e[10] !== r || e[11] !== n.title ? (u = r ? /* @__PURE__ */ i(rn, { variant: "caption", sx: {
500
+ e[10] !== n || e[11] !== o.title ? (u = n ? /* @__PURE__ */ s.jsx(io, { variant: "caption", sx: {
632
501
  position: "absolute",
633
502
  bottom: -18,
634
503
  left: "50%",
@@ -639,100 +508,100 @@ const vn = () => {
639
508
  whiteSpace: "nowrap",
640
509
  overflow: "hidden",
641
510
  textOverflow: "ellipsis",
642
- maxWidth: $e - 28
643
- }, children: n.title }) : null, e[10] = r, e[11] = n.title, e[12] = u) : u = e[12];
644
- let c;
645
- return e[13] !== s || e[14] !== d || e[15] !== u ? (c = /* @__PURE__ */ L(ct, { sx: s, children: [
646
- d,
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: [
515
+ c,
647
516
  u
648
- ] }), e[13] = s, e[14] = d, e[15] = u, e[16] = c) : c = e[16], c;
517
+ ] }), e[13] = r, e[14] = c, e[15] = u, e[16] = d) : d = e[16], d;
649
518
  }
650
519
  return null;
651
- }, In = (t) => {
652
- const e = B(10), {
653
- open: n,
654
- anchorEl: r,
655
- children: s
520
+ }, Oo = (t) => {
521
+ const e = B.c(10), {
522
+ open: o,
523
+ anchorEl: n,
524
+ children: r
656
525
  } = t;
657
- let a;
658
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
526
+ let l;
527
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = {
659
528
  name: "offset",
660
529
  options: {
661
530
  offset: [6, 0]
662
531
  }
663
- }, e[0] = a) : a = e[0];
664
- let o;
665
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
532
+ }, e[0] = l) : l = e[0];
533
+ let i;
534
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
666
535
  name: "preventOverflow",
667
536
  options: {
668
537
  padding: 8
669
538
  }
670
- }, e[1] = o) : o = e[1];
671
- let l;
672
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [a, o, {
539
+ }, e[1] = i) : i = e[1];
540
+ let a;
541
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = [l, i, {
673
542
  name: "flip",
674
543
  options: {
675
544
  fallbackPlacements: ["right-end", "left-start"]
676
545
  }
677
- }], e[2] = l) : l = e[2];
678
- let d;
679
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
546
+ }], e[2] = a) : a = e[2];
547
+ let c;
548
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
680
549
  pt: 0.5,
681
550
  pb: 0.5,
682
551
  maxHeight: "min(calc(100vh - 100px), 560px)",
683
552
  overflowY: "auto",
684
553
  overscrollBehavior: "contain"
685
- }, e[3] = d) : d = e[3];
554
+ }, e[3] = c) : c = e[3];
686
555
  let u;
687
- e[4] !== s ? (u = /* @__PURE__ */ i(nn, { sx: d, children: s }), e[4] = s, e[5] = u) : u = e[5];
688
- let c;
689
- return e[6] !== r || e[7] !== n || e[8] !== u ? (c = /* @__PURE__ */ i(on, { open: n, anchorEl: r, placement: "right-start", modifiers: l, children: u }), e[6] = r, e[7] = n, e[8] = u, e[9] = c) : c = e[9], c;
690
- }, Pn = (t) => {
691
- const e = B(57), {
692
- item: n,
693
- isOpen: r,
694
- selected: s,
695
- disabled: a,
696
- collapsed: o,
697
- isSidebarFullyExpanded: l,
698
- isSidebarFullyCollapsed: d,
556
+ e[4] !== r ? (u = /* @__PURE__ */ s.jsx(oo, { sx: c, children: r }), e[4] = r, e[5] = u) : u = e[5];
557
+ 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) => {
560
+ const e = B.c(57), {
561
+ item: o,
562
+ isOpen: n,
563
+ selected: r,
564
+ disabled: l,
565
+ collapsed: i,
566
+ isSidebarFullyExpanded: a,
567
+ isSidebarFullyCollapsed: c,
699
568
  onClick: u,
700
- renderNested: c,
569
+ renderNested: d,
701
570
  onClose: m
702
- } = t, h = l === void 0 ? !0 : l, [f, p] = V(null), [g, T] = V(null);
703
- let M;
704
- e[0] !== o || e[1] !== r || e[2] !== d || e[3] !== h || e[4] !== n.children ? (M = () => o && d && n.children ? {
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 ? {
705
574
  fontSize: 18,
706
575
  position: "absolute",
707
576
  top: "41.5%",
708
577
  right: "2px",
709
578
  transform: "translateY(-50%) rotate(-90deg)"
710
- } : !o && h && n.children ? {
579
+ } : !i && p && o.children ? {
711
580
  ml: 0.5,
712
- transform: `rotate(${r ? 0 : -90}deg)`
581
+ transform: `rotate(${n ? 0 : -90}deg)`
713
582
  } : {
714
583
  display: "none"
715
- }, e[0] = o, e[1] = r, e[2] = d, e[3] = h, e[4] = n.children, e[5] = M) : M = e[5];
716
- const x = M, y = n.children && !o, k = o ? 60 : 48;
717
- let b;
718
- e[6] !== k ? (b = {
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 = {
719
588
  px: 1.4,
720
- height: k
721
- }, e[6] = k, e[7] = b) : b = e[7];
722
- let D;
723
- e[8] !== a || e[9] !== s || e[10] !== b ? (D = {
724
- selected: s,
725
- disabled: a,
726
- sx: b
727
- }, e[8] = a, e[9] = s, e[10] = b, e[11] = D) : D = e[11];
728
- const z = D;
729
- let I;
730
- e[12] !== o || e[13] !== n ? (I = /* @__PURE__ */ i(wn, { item: n, collapsed: o }), e[12] = o, e[13] = n, e[14] = I) : I = e[14];
731
- let _;
732
- e[15] !== o || e[16] !== n.title ? (_ = !o && /* @__PURE__ */ i(tn, { primary: n.title, slotProps: {
589
+ height: b
590
+ }, e[6] = b, e[7] = S) : S = e[7];
591
+ let w;
592
+ e[8] !== l || e[9] !== r || e[10] !== S ? (w = {
593
+ selected: r,
594
+ 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;
598
+ 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: {
733
602
  primary: {
734
603
  noWrap: !0,
735
- title: n.title
604
+ title: o.title
736
605
  }
737
606
  }, sx: {
738
607
  ml: 1.2,
@@ -743,333 +612,333 @@ const vn = () => {
743
612
  overflow: "hidden",
744
613
  textOverflow: "ellipsis"
745
614
  }
746
- } }), e[15] = o, e[16] = n.title, e[17] = _) : _ = e[17];
747
- let v;
748
- e[18] !== x || e[19] !== n.children ? (v = n.children ? /* @__PURE__ */ i(qt, { sx: x }) : null, e[18] = x, e[19] = n.children, e[20] = v) : v = e[20];
749
- let A;
750
- e[21] !== I || e[22] !== _ || e[23] !== v ? (A = /* @__PURE__ */ L(ht, { children: [
751
- I,
752
- _,
753
- v
754
- ] }), e[21] = I, e[22] = _, e[23] = v, e[24] = A) : A = e[24];
755
- const Y = A;
756
- let j;
757
- e[25] !== o || e[26] !== n.children || e[27] !== n.title ? (j = n.children && o ? {
758
- onMouseEnter: (H) => {
759
- T(H.currentTarget), p(n.title);
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: [
620
+ 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);
760
629
  },
761
630
  onMouseLeave: () => {
762
- p(null);
631
+ h(null);
763
632
  }
764
- } : {}, e[25] = o, e[26] = n.children, e[27] = n.title, e[28] = j) : j = e[28];
765
- let E;
766
- e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = {
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 = {
767
636
  py: 0,
768
637
  px: 1,
769
638
  overflowX: "hidden"
770
- }, e[29] = E) : E = e[29];
771
- let w;
772
- e[30] !== Y || e[31] !== z || e[32] !== n || e[33] !== u || e[34] !== m || e[35] !== y ? (w = y ? /* @__PURE__ */ i(On, { ...z, onClick: () => u?.(n), children: Y }) : /* @__PURE__ */ i(Cn, { ...z, to: n.to, href: n.href, params: n.params, search: n.search, onClick: m, children: Y }), e[30] = Y, e[31] = z, e[32] = n, e[33] = u, e[34] = m, e[35] = y, e[36] = w) : w = e[36];
773
- let O;
774
- e[37] !== g || e[38] !== o || e[39] !== f || e[40] !== n.children || e[41] !== n.title || e[42] !== c ? (O = n.children && o ? /* @__PURE__ */ i(In, { open: n.title === f, anchorEl: g, children: c?.(n.children) }) : null, e[37] = g, e[38] = o, e[39] = f, e[40] = n.children, e[41] = n.title, e[42] = c, e[43] = O) : O = e[43];
775
- let W;
776
- e[44] !== j || e[45] !== w || e[46] !== O ? (W = /* @__PURE__ */ L(Jt, { ...j, sx: E, children: [
777
- w,
778
- O
779
- ] }), e[44] = j, e[45] = w, e[46] = O, e[47] = W) : W = e[47];
780
- const F = W;
781
- let P;
782
- e[48] !== o || e[49] !== r || e[50] !== n.children || e[51] !== c ? (P = n.children && !o ? /* @__PURE__ */ i(Tt, { in: r, timeout: "auto", unmountOnExit: !0, children: c?.(n.children) }) : null, e[48] = o, e[49] = r, e[50] = n.children, e[51] = c, e[52] = P) : P = e[52];
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];
642
+ 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];
783
644
  let N;
784
- return e[53] !== n.to || e[54] !== F || e[55] !== P ? (N = /* @__PURE__ */ L(Ye, { children: [
785
- F,
786
- P
787
- ] }, n.to), e[53] = n.to, e[54] = F, e[55] = P, e[56] = N) : N = e[56], N;
788
- }, En = (t) => !("kind" in t), An = (t) => "kind" in t && t.kind === "divider", Xe = (t) => "kind" in t && t.kind === "header", dt = (t) => {
789
- const e = B(31), {
790
- subNavigation: n,
791
- depth: r,
792
- collapsed: s,
793
- isPopover: a,
794
- isSidebarFullyExpanded: o,
795
- isSidebarFullyCollapsed: l,
796
- expandedWidth: d,
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;
650
+ 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) => {
658
+ const e = B.c(31), {
659
+ subNavigation: o,
660
+ depth: n,
661
+ collapsed: r,
662
+ isPopover: l,
663
+ isSidebarFullyExpanded: i,
664
+ isSidebarFullyCollapsed: a,
665
+ expandedWidth: c,
797
666
  renderItem: u,
798
- activePath: c,
667
+ activePath: d,
799
668
  onNavigate: m,
800
- onClose: h
801
- } = t, f = r === void 0 ? 0 : r, p = o === void 0 ? !0 : o;
802
- let g;
803
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = [], e[0] = g) : g = e[0];
804
- const [T, M] = V(g);
805
- let x, y;
806
- e[1] !== s ? (x = () => {
807
- s && M([]);
808
- }, y = [s], e[1] = s, e[2] = x, e[3] = y) : (x = e[2], y = e[3]), lt(x, y);
809
- let k;
810
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = (_) => M((v) => v.includes(_) ? v.filter((A) => A !== _) : [...v, _]), e[4] = k) : k = e[4];
811
- const b = k;
812
- let D;
813
- e[5] !== c || e[6] !== s || e[7] !== f || e[8] !== d || e[9] !== h || e[10] !== m ? (D = (_) => /* @__PURE__ */ i(dt, { subNavigation: _, depth: f + 1, isPopover: s, expandedWidth: d, activePath: c, onNavigate: m, onClose: h }), e[5] = c, e[6] = s, e[7] = f, e[8] = d, e[9] = h, e[10] = m, e[11] = D) : D = e[11];
814
- const z = D;
815
- let I;
816
- if (e[12] !== c || e[13] !== s || e[14] !== f || e[15] !== d || e[16] !== a || e[17] !== l || e[18] !== p || e[19] !== h || e[20] !== T || e[21] !== u || e[22] !== z || e[23] !== n) {
817
- const _ = n.filter(jn), v = a && f === 1 ? 0.5 : 0, A = f === 0 && !a ? 4 : 0.5, Y = (a ? 1 : 2) * (a ? f - 1 : f), j = a && f === 1 ? je : "auto", E = s ? $e : "auto";
818
- let w;
819
- e[25] !== A || e[26] !== Y || e[27] !== j || e[28] !== E || e[29] !== v ? (w = {
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;
681
+ 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 = {
820
689
  padding: 0,
821
- mt: v,
822
- mb: A,
823
- pl: Y,
824
- minWidth: j,
825
- width: E
826
- }, e[25] = A, e[26] = Y, e[27] = j, e[28] = E, e[29] = v, e[30] = w) : w = e[30], I = /* @__PURE__ */ i(Xt, { sx: w, children: _.map((O, W) => {
827
- if (Xe(O))
828
- return /* @__PURE__ */ i(Zt, { sx: {
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: {
829
698
  fontSize: 12,
830
699
  fontWeight: "700",
831
- height: s ? 0 : 40,
700
+ height: r ? 0 : 40,
832
701
  px: 2,
833
- minWidth: d,
702
+ minWidth: c,
834
703
  overflow: "hidden",
835
704
  textOverflow: "ellipsis",
836
705
  whiteSpace: "nowrap",
837
706
  zIndex: 2,
838
707
  bgcolor: "transparent",
839
708
  position: "static"
840
- }, children: O.title }, `subheader-${f}-${W}`);
841
- if (An(O)) {
842
- const N = _[W + 1];
843
- return /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(Gt, { sx: {
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: {
844
713
  mx: 1,
845
714
  mt: 1,
846
- mb: Xe(N) && !s ? 0 : 1
847
- } }) }, `divider-${f}-${W}`);
715
+ mb: Ue(A) && !r ? 0 : 1
716
+ } }) }, `divider-${f}-${N}`);
848
717
  }
849
- if (!En(O))
718
+ if (!No(L))
850
719
  return null;
851
- const F = `item-${f}-${W}`, P = `${f}-${W}-${O.title}`;
852
- return u ? /* @__PURE__ */ i(Ye, { children: u(O, {
853
- collapsed: !!s
854
- }) }, F) : /* @__PURE__ */ i(Pn, { item: O, isOpen: T.includes(P), selected: c === O.to, collapsed: s, isSidebarFullyExpanded: p, isSidebarFullyCollapsed: l, onClick: O.children && !s ? () => b(P) : void 0, renderNested: z, onClose: h }, F);
855
- }) }), e[12] = c, e[13] = s, e[14] = f, e[15] = d, e[16] = a, e[17] = l, e[18] = p, e[19] = h, e[20] = T, e[21] = u, e[22] = z, e[23] = n, e[24] = I;
720
+ const R = `item-${f}-${N}`, D = `${f}-${N}-${L.title}`;
721
+ return u ? /* @__PURE__ */ s.jsx(Pe, { children: u(L, {
722
+ 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;
856
725
  } else
857
- I = e[24];
858
- return I;
726
+ C = e[24];
727
+ return C;
859
728
  };
860
- function jn(t) {
729
+ function Fo(t) {
861
730
  return !t.hidden;
862
731
  }
863
- const $e = 84, je = 320, it = 64, zn = (t) => {
864
- const e = B(29), {
865
- navigation: n,
866
- expanded: r,
867
- setExpanded: s
868
- } = t, a = Ht(), o = Vt(), l = Ut();
869
- let d;
870
- e[0] !== l.breakpoints ? (d = l.breakpoints.up("sm"), e[0] = l.breakpoints, e[1] = d) : d = e[1];
871
- const u = xt(d);
732
+ const Oe = 84, Me = 320, tt = 64, Bo = (t) => {
733
+ const e = B.c(29), {
734
+ navigation: o,
735
+ expanded: n,
736
+ setExpanded: r
737
+ } = t, l = qt(), i = Kt(), a = zt();
872
738
  let c;
873
- e[2] !== r || e[3] !== a || e[4] !== n || e[5] !== o.location.pathname || e[6] !== s || e[7] !== u ? (c = (T) => /* @__PURE__ */ i(ct, { component: "nav", sx: {
739
+ 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: {
874
743
  height: "100%",
875
744
  display: "flex",
876
745
  flexDirection: "column",
877
746
  justifyContent: "space-between",
878
747
  overflow: "auto",
879
- scrollbarGutter: T ? "stable" : "auto",
748
+ scrollbarGutter: y ? "stable" : "auto",
880
749
  overflowX: "hidden",
881
- pt: n[0] && Xe(n[0]) && !T ? 0 : 2
882
- }, children: /* @__PURE__ */ i(dt, { subNavigation: n, collapsed: T, isSidebarFullyExpanded: r, isSidebarFullyCollapsed: !r, expandedWidth: je, activePath: o.location.pathname, onNavigate: a, onClose: u ? void 0 : () => s(!1) }) }), e[2] = r, e[3] = a, e[4] = n, e[5] = o.location.pathname, e[6] = s, e[7] = u, e[8] = c) : c = e[8];
883
- const m = c;
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;
884
753
  if (u) {
885
- const T = r ? je : $e, M = r ? je : $e;
886
- let x;
887
- e[9] !== M ? (x = {
754
+ const y = n ? Me : Oe, k = n ? Me : Oe;
755
+ let v;
756
+ e[9] !== k ? (v = {
888
757
  position: "absolute",
889
- top: `${it}px`,
890
- height: `calc(100% - ${it}px)`,
891
- width: M,
758
+ top: `${tt}px`,
759
+ height: `calc(100% - ${tt}px)`,
760
+ width: k,
892
761
  borderTop: "1px solid",
893
762
  borderColor: "var(--mui-palette-divider)"
894
- }, e[9] = M, e[10] = x) : x = e[10];
895
- let y;
896
- e[11] !== T || e[12] !== x ? (y = {
897
- width: T,
898
- "& .MuiDrawer-paper": x
899
- }, e[11] = T, e[12] = x, e[13] = y) : y = e[13];
900
- const k = !r;
901
- let b;
902
- e[14] !== m || e[15] !== k ? (b = m(k), e[14] = m, e[15] = k, e[16] = b) : b = e[16];
903
- let D;
904
- return e[17] !== y || e[18] !== b ? (D = /* @__PURE__ */ i(Qe, { variant: "permanent", sx: y, children: b }), e[17] = y, e[18] = b, e[19] = D) : D = e[19], D;
763
+ }, e[9] = k, e[10] = v) : v = e[10];
764
+ 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];
772
+ 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;
905
774
  }
906
- let h;
907
- e[20] !== s ? (h = () => s(!1), e[20] = s, e[21] = h) : h = e[21];
908
- const f = !r;
909
775
  let p;
910
- e[22] !== m || e[23] !== f ? (p = m(f), e[22] = m, e[23] = f, e[24] = p) : p = e[24];
911
- let g;
912
- return e[25] !== r || e[26] !== h || e[27] !== p ? (g = /* @__PURE__ */ i(Qe, { open: r, onClose: h, children: p }), e[25] = r, e[26] = h, e[27] = p, e[28] = g) : g = e[28], g;
913
- }, st = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), Nn = () => {
914
- const t = B(105), [e, n] = V(), [r, s] = V("settings"), a = !!e, {
915
- t: o,
916
- i18n: l
917
- } = jt(), {
918
- mode: d,
776
+ e[20] !== r ? (p = () => r(!1), e[20] = r, e[21] = p) : p = e[21];
777
+ 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
+ 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,
785
+ i18n: a
786
+ } = xt(), {
787
+ mode: c,
919
788
  setMode: u
920
- } = bt();
921
- let c, m, h, f, p, g, T;
922
- if (t[0] !== l || t[1] !== d || t[2] !== u || t[3] !== o) {
923
- const W = (Array.isArray(l.options.supportedLngs) ? l.options.supportedLngs : []).filter($n), F = new Intl.DisplayNames([l.language], {
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], {
924
793
  type: "language"
925
794
  });
926
- let P;
927
- t[11] !== o ? (P = o("Layout.Light"), t[11] = o, t[12] = P) : P = t[12];
928
- let N;
929
- t[13] !== P ? (N = {
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 = {
930
799
  mode: "light",
931
- icon: dn,
932
- label: P
933
- }, t[13] = P, t[14] = N) : N = t[14];
934
- let H;
935
- t[15] !== o ? (H = o("Layout.Dark"), t[15] = o, t[16] = H) : H = t[16];
936
- let G;
937
- t[17] !== H ? (G = {
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 = {
938
807
  mode: "dark",
939
- icon: ln,
940
- label: H
941
- }, t[17] = H, t[18] = G) : G = t[18];
942
- let X;
943
- t[19] !== o ? (X = o("Layout.System"), t[19] = o, t[20] = X) : X = t[20];
944
- let Z;
945
- t[21] !== X ? (Z = {
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
+ let q;
814
+ t[21] !== H ? (q = {
946
815
  mode: "system",
947
- icon: fn,
948
- label: X
949
- }, t[21] = X, t[22] = Z) : Z = t[22];
950
- let le;
951
- t[23] !== N || t[24] !== G || t[25] !== Z ? (le = [N, G, Z], t[23] = N, t[24] = G, t[25] = Z, t[26] = le) : le = t[26];
952
- const ce = le;
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;
953
828
  let de;
954
- t[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (de = ($) => n($.currentTarget), t[27] = de) : de = t[27], h = de;
955
- let ue;
956
- t[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ue = () => {
957
- n(void 0), setTimeout(() => s("settings"), 300);
958
- }, t[28] = ue) : ue = t[28], m = ue;
829
+ t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (de = (O) => () => r(O), t[29] = de) : de = t[29];
830
+ const ue = de;
959
831
  let fe;
960
- t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (fe = ($) => () => s($), t[29] = fe) : fe = t[29];
961
- const me = fe;
962
- let he;
963
- t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (he = {
832
+ t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (fe = {
964
833
  backgroundColor: "transparent"
965
- }, t[30] = he) : he = t[30];
966
- let q;
967
- t[31] !== o ? (q = o("Layout.Settings"), t[31] = o, t[32] = q) : q = t[32];
834
+ }, t[30] = fe) : fe = t[30];
968
835
  let K;
969
- t[33] !== q ? (K = /* @__PURE__ */ i(Re, { sx: he, children: q }), t[33] = q, t[34] = K) : K = t[34];
970
- let pe, ge;
971
- t[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pe = me("theme"), ge = {
836
+ t[31] !== i ? (K = i("Layout.Settings"), t[31] = i, t[32] = K) : K = t[32];
837
+ 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 = {
972
841
  py: 0.3
973
- }, t[35] = pe, t[36] = ge) : (pe = t[35], ge = t[36]);
974
- let ye;
975
- t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ye = /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(an, {}) }), t[37] = ye) : ye = t[37];
976
- let J;
977
- t[38] !== o ? (J = o("Layout.Appearance"), t[38] = o, t[39] = J) : J = t[39];
978
- const We = ce.find(($) => $.mode === d)?.label;
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];
845
+ 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;
848
+ 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];
850
+ let ge;
851
+ t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ge = /* @__PURE__ */ s.jsx(Qe, {}), t[43] = ge) : ge = t[43];
979
852
  let Q;
980
- t[40] !== J || t[41] !== We ? (Q = /* @__PURE__ */ i(se, { primary: J, secondary: We }), t[40] = J, t[41] = We, t[42] = Q) : Q = t[42];
981
- let Te;
982
- t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Te = /* @__PURE__ */ i(nt, {}), t[43] = Te) : Te = t[43];
983
- let ee;
984
- t[44] !== Q ? (ee = /* @__PURE__ */ L(ie, { onClick: pe, sx: ge, children: [
985
- ye,
986
- Q,
987
- Te
988
- ] }), t[44] = Q, t[45] = ee) : ee = t[45];
989
- let xe, be;
990
- t[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xe = me("language"), be = {
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 = {
991
860
  py: 0.3
992
- }, t[46] = xe, t[47] = be) : (xe = t[46], be = t[47]);
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];
993
864
  let Se;
994
- t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(mn, {}) }), t[48] = Se) : Se = t[48];
995
- let Me;
996
- t[49] !== o ? (Me = o("Layout.Language"), t[49] = o, t[50] = Me) : Me = t[50];
997
- let ke;
998
- t[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ke = /* @__PURE__ */ i(nt, {}), t[51] = ke) : ke = t[51];
999
- const Ue = /* @__PURE__ */ L(ie, { onClick: xe, sx: be, children: [
1000
- Se,
1001
- /* @__PURE__ */ i(se, { primary: Me, secondary: st(F.of(l.language)) }),
1002
- ke
865
+ t[49] !== i ? (Se = i("Layout.Language"), t[49] = i, t[50] = Se) : Se = t[50];
866
+ 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
1003
872
  ] });
1004
- let Le;
1005
- t[52] !== K || t[53] !== ee || t[54] !== Ue ? (Le = /* @__PURE__ */ L(Pe, { component: "nav", subheader: K, children: [
1006
- ee,
1007
- Ue
1008
- ] }), t[52] = K, t[53] = ee, t[54] = Ue, t[55] = Le) : Le = t[55], f = Le;
1009
- let De, _e;
1010
- t[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (De = me("settings"), _e = {
873
+ 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;
878
+ let we, je;
879
+ t[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (we = ue("settings"), je = {
1011
880
  backgroundColor: "transparent",
1012
881
  display: "flex",
1013
882
  alignItems: "center",
1014
883
  px: 1,
1015
884
  cursor: "pointer"
1016
- }, t[56] = De, t[57] = _e) : (De = t[56], _e = t[57]);
1017
- let ve;
1018
- t[58] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ve = /* @__PURE__ */ i(Ee, { size: "small", sx: {
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: {
1019
888
  mr: 0.5
1020
- }, children: /* @__PURE__ */ i(tt, { fontSize: "small" }) }), t[58] = ve) : ve = t[58];
1021
- let te;
1022
- t[59] !== o ? (te = o("Layout.Appearance"), t[59] = o, t[60] = te) : te = t[60];
1023
- let ne;
1024
- t[61] !== te ? (ne = /* @__PURE__ */ L(Re, { onClick: De, sx: _e, children: [
1025
- ve,
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,
1026
895
  " ",
1027
- te
1028
- ] }), t[61] = te, t[62] = ne) : ne = t[62];
1029
- let oe;
1030
- t[63] !== ce || t[64] !== d || t[65] !== u ? (oe = ce.map(($) => {
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) => {
1031
900
  const {
1032
901
  mode: Fe,
1033
902
  icon: ft,
1034
903
  label: mt
1035
- } = $;
1036
- return /* @__PURE__ */ L(ie, { onClick: () => {
904
+ } = O;
905
+ return /* @__PURE__ */ s.jsxs(ne, { onClick: () => {
1037
906
  u(Fe), m();
1038
- }, selected: d === Fe, children: [
1039
- /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(ft, {}) }),
1040
- /* @__PURE__ */ i(se, { primary: mt })
907
+ }, selected: c === Fe, children: [
908
+ /* @__PURE__ */ s.jsx(se, { children: /* @__PURE__ */ s.jsx(ft, {}) }),
909
+ /* @__PURE__ */ s.jsx(ie, { primary: mt })
1041
910
  ] }, Fe);
1042
- }), t[63] = ce, t[64] = d, t[65] = u, t[66] = oe) : oe = t[66];
1043
- let Oe;
1044
- t[67] !== ne || t[68] !== oe ? (Oe = /* @__PURE__ */ i(Pe, { subheader: ne, children: oe }), t[67] = ne, t[68] = oe, t[69] = Oe) : Oe = t[69], T = Oe, c = Pe;
1045
- let Ce, we;
1046
- t[70] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ce = me("settings"), we = {
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 = {
1047
916
  backgroundColor: "transparent",
1048
917
  display: "flex",
1049
918
  alignItems: "center",
1050
919
  px: 1,
1051
920
  cursor: "pointer"
1052
- }, t[70] = Ce, t[71] = we) : (Ce = t[70], we = t[71]);
1053
- let Ie;
1054
- t[72] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ie = /* @__PURE__ */ i(Ee, { size: "small", sx: {
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: {
1055
924
  mr: 0.5
1056
- }, children: /* @__PURE__ */ i(tt, { fontSize: "small" }) }), t[72] = Ie) : Ie = t[72];
1057
- let re;
1058
- t[73] !== o ? (re = o("Layout.Language"), t[73] = o, t[74] = re) : re = t[74], t[75] !== re ? (p = /* @__PURE__ */ L(Re, { onClick: Ce, sx: we, children: [
1059
- Ie,
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,
1060
929
  " ",
1061
- re
1062
- ] }), t[75] = re, t[76] = p) : p = t[76], g = W.map(($) => /* @__PURE__ */ L(ie, { onClick: () => l.changeLanguage($).finally(() => m()), selected: l.resolvedLanguage === $, children: [
1063
- /* @__PURE__ */ i(ae, { children: l.resolvedLanguage === $ && /* @__PURE__ */ i(cn, {}) }),
1064
- /* @__PURE__ */ i(se, { primary: st(F.of($)) })
1065
- ] }, $)), t[0] = l, t[1] = d, t[2] = u, t[3] = o, t[4] = c, t[5] = m, t[6] = h, t[7] = f, t[8] = p, t[9] = g, t[10] = T;
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;
1066
935
  } else
1067
- c = t[4], m = t[5], h = t[6], f = t[7], p = t[8], g = t[9], T = t[10];
1068
- let M;
1069
- t[77] !== c || t[78] !== p || t[79] !== g ? (M = /* @__PURE__ */ i(c, { subheader: p, children: g }), t[77] = c, t[78] = p, t[79] = g, t[80] = M) : M = t[80];
1070
- const x = M;
1071
- let y;
1072
- t[81] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ i(et, { sx: {
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: {
1073
942
  width: {
1074
943
  xs: 32,
1075
944
  sm: 40
@@ -1078,9 +947,9 @@ const $e = 84, je = 320, it = 64, zn = (t) => {
1078
947
  xs: 32,
1079
948
  sm: 40
1080
949
  }
1081
- } }), t[81] = y) : y = t[81];
1082
- let k;
1083
- t[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ i(Et, { fallback: /* @__PURE__ */ i(et, { sx: {
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: {
1084
953
  width: {
1085
954
  xs: 32,
1086
955
  sm: 40
@@ -1089,56 +958,56 @@ const $e = 84, je = 320, it = 64, zn = (t) => {
1089
958
  xs: 32,
1090
959
  sm: 40
1091
960
  }
1092
- } }) }), t[82] = k) : k = t[82];
1093
- let b;
1094
- t[83] !== h ? (b = /* @__PURE__ */ L(Ee, { size: "small", edge: "end", onClick: h, children: [
1095
- y,
1096
- k
1097
- ] }), t[83] = h, t[84] = b) : b = t[84];
1098
- let D;
1099
- t[85] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = {
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 = {
1100
969
  width: 240
1101
- }, t[85] = D) : D = t[85];
1102
- let z;
1103
- t[86] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ i(St, {}), t[86] = z) : z = t[86];
1104
- let I;
1105
- t[87] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(un, { color: "error" }) }), t[87] = I) : I = t[87];
970
+ }, t[85] = w) : w = t[85];
971
+ 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];
1106
977
  let _;
1107
- t[88] !== o ? (_ = o("Layout.Logout"), t[88] = o, t[89] = _) : _ = t[89];
1108
- let v;
1109
- t[90] !== _ ? (v = /* @__PURE__ */ L(Pe, { disablePadding: !0, children: [
1110
- z,
1111
- /* @__PURE__ */ L(ie, { onClick: Yn, children: [
1112
- I,
1113
- /* @__PURE__ */ i(se, { primary: _ })
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 })
1114
983
  ] })
1115
- ] }), t[90] = _, t[91] = v) : v = t[91];
1116
- const A = r === "settings" && f, Y = r === "theme" && T, j = r === "language" && x;
1117
- let E;
1118
- t[92] !== v || t[93] !== A || t[94] !== Y || t[95] !== j ? (E = /* @__PURE__ */ L(Ae, { sx: D, children: [
1119
- v,
1120
- A,
1121
- Y,
1122
- j
1123
- ] }), t[92] = v, t[93] = A, t[94] = Y, t[95] = j, t[96] = E) : E = t[96];
1124
- let w;
1125
- t[97] !== e || t[98] !== m || t[99] !== a || t[100] !== E ? (w = /* @__PURE__ */ i(Mt, { anchorEl: e, open: a, onClose: m, children: E }), t[97] = e, t[98] = m, t[99] = a, t[100] = E, t[101] = w) : w = t[101];
1126
- let O;
1127
- return t[102] !== w || t[103] !== b ? (O = /* @__PURE__ */ L(Ye, { children: [
1128
- b,
1129
- w
1130
- ] }), t[102] = w, t[103] = b, t[104] = O) : O = t[104], O;
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: [
988
+ _,
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;
1131
1000
  };
1132
- function $n(t) {
1001
+ function Wo(t) {
1133
1002
  return t !== "cimode";
1134
1003
  }
1135
- function Yn() {
1004
+ function Uo() {
1136
1005
  return console.log("Logout clicked");
1137
1006
  }
1138
- const ut = 3600 * 24 * 365, Wn = Ct().server(() => at("navigationOpen") === "true").client(() => {
1007
+ const ut = 3600 * 24 * 365, Ho = At().server(() => nt("navigationOpen") === "true").client(() => {
1139
1008
  const t = document.cookie.split("; ").find((e) => e.startsWith("navigationOpen="));
1140
1009
  return t ? t.split("=")[1] === "true" : !1;
1141
- }), Un = Ze("div")(({
1010
+ }), qo = He("div")(({
1142
1011
  theme: t
1143
1012
  }) => ({
1144
1013
  display: "flex",
@@ -1146,70 +1015,70 @@ const ut = 3600 * 24 * 365, Wn = Ct().server(() => at("navigationOpen") === "tru
1146
1015
  justifyContent: "flex-end",
1147
1016
  padding: t.spacing(0, 1),
1148
1017
  ...t.mixins.toolbar
1149
- })), Fn = (t) => {
1150
- const e = B(29), [n, r] = V(Wn), s = !!Ft(), a = !!Rt();
1151
- let o, l;
1152
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ i(kt, {}), l = /* @__PURE__ */ i(Lt, {}), e[0] = o, e[1] = l) : (o = e[0], l = e[1]);
1153
- let d;
1154
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
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]);
1022
+ let c;
1023
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
1155
1024
  display: "flex",
1156
1025
  height: "100dvh",
1157
1026
  maxHeight: "100dvh",
1158
1027
  overflow: "hidden",
1159
1028
  width: "100%"
1160
- }, e[2] = d) : d = e[2];
1029
+ }, e[2] = c) : c = e[2];
1161
1030
  let u;
1162
1031
  e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
1163
1032
  borderBottom: "1px solid",
1164
1033
  borderColor: "var(--mui-palette-divider)",
1165
1034
  boxShadow: "none"
1166
1035
  }, e[3] = u) : u = e[3];
1167
- let c;
1168
- e[4] !== n || e[5] !== t.navigation ? (c = t.navigation && /* @__PURE__ */ i(Ee, { onClick: () => {
1169
- r(Rn);
1036
+ let d;
1037
+ e[4] !== o || e[5] !== t.navigation ? (d = t.navigation && /* @__PURE__ */ s.jsx(Ee, { onClick: () => {
1038
+ n(Yo);
1170
1039
  }, sx: {
1171
1040
  marginRight: 2
1172
- }, children: n ? /* @__PURE__ */ i(Yt, {}) : /* @__PURE__ */ i($t, {}) }), e[4] = n, e[5] = t.navigation, e[6] = c) : c = e[6];
1173
- let m, h;
1174
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ i(vn, {}), h = /* @__PURE__ */ i(Nn, {}), e[7] = m, e[8] = h) : (m = e[7], h = e[8]);
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]);
1175
1044
  let f;
1176
- e[9] !== c ? (f = /* @__PURE__ */ i(Dt, { color: "transparent", position: "fixed", sx: u, children: /* @__PURE__ */ L(_t, { children: [
1177
- c,
1045
+ e[9] !== d ? (f = /* @__PURE__ */ s.jsx(Ct, { color: "transparent", position: "fixed", sx: u, children: /* @__PURE__ */ s.jsxs(Dt, { children: [
1046
+ d,
1178
1047
  m,
1179
- h
1180
- ] }) }), e[9] = c, e[10] = f) : f = e[10];
1181
- let p;
1182
- e[11] !== n || e[12] !== t.navigation ? (p = t.navigation && /* @__PURE__ */ i(zn, { navigation: t.navigation, expanded: n, setExpanded: (D) => {
1183
- r(D), document.cookie = `navigationOpen=${D}; max-age=${ut}; path=/`;
1184
- } }), e[11] = n, e[12] = t.navigation, e[13] = p) : p = e[13];
1185
- let g, T;
1186
- e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
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 = {
1187
1056
  flexGrow: 1,
1188
1057
  display: "flex",
1189
1058
  flexDirection: "column",
1190
1059
  minWidth: 0,
1191
1060
  height: "100%",
1192
1061
  overflow: "hidden"
1193
- }, g = /* @__PURE__ */ i(Un, {}), e[14] = g, e[15] = T) : (g = e[14], T = e[15]);
1194
- let M;
1195
- e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = {
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 = {
1196
1065
  flex: 1,
1197
1066
  overflow: "auto",
1198
1067
  position: "relative"
1199
- }, e[16] = M) : M = e[16];
1200
- let x;
1201
- e[17] !== t.children ? (x = /* @__PURE__ */ L(Ae, { component: "main", sx: T, children: [
1202
- g,
1203
- /* @__PURE__ */ i(Ae, { sx: M, children: t.children })
1204
- ] }), e[17] = t.children, e[18] = x) : x = e[18];
1205
- let y;
1206
- e[19] !== x || e[20] !== f || e[21] !== p ? (y = /* @__PURE__ */ L(Ae, { sx: d, children: [
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];
1074
+ let g;
1075
+ e[19] !== v || e[20] !== f || e[21] !== h ? (g = /* @__PURE__ */ s.jsxs($e, { sx: c, children: [
1207
1076
  f,
1208
- p,
1209
- x
1210
- ] }), e[19] = x, e[20] = f, e[21] = p, e[22] = y) : y = e[22];
1211
- let k;
1212
- e[23] !== s || e[24] !== a ? (k = (s || a) && /* @__PURE__ */ i(vt, { sx: {
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: {
1213
1082
  position: "fixed",
1214
1083
  top: {
1215
1084
  xs: 56,
@@ -1217,60 +1086,60 @@ const ut = 3600 * 24 * 365, Wn = Ct().server(() => at("navigationOpen") === "tru
1217
1086
  },
1218
1087
  left: 0,
1219
1088
  right: 0
1220
- } }), e[23] = s, e[24] = a, e[25] = k) : k = e[25];
1221
- let b;
1222
- return e[26] !== y || e[27] !== k ? (b = /* @__PURE__ */ L(Ye, { children: [
1223
- o,
1224
- l,
1225
- y,
1226
- k
1227
- ] }), e[26] = y, e[27] = k, e[28] = b) : b = e[28], b;
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,
1093
+ a,
1094
+ g,
1095
+ b
1096
+ ] }), e[26] = g, e[27] = b, e[28] = S) : S = e[28], S;
1228
1097
  };
1229
- function Rn(t) {
1098
+ function Yo(t) {
1230
1099
  const e = !t;
1231
1100
  return document.cookie = `navigationOpen=${e}; max-age=${ut}; path=/`, e;
1232
1101
  }
1233
- const Bn = 1440 * 365;
1234
- R.use(It).use(zt).init({
1235
- resources: Je,
1102
+ const Xo = 1440 * 365;
1103
+ F.use(ct).use(Do).init({
1104
+ resources: Ke,
1236
1105
  fallbackLng: "en",
1237
- supportedLngs: Object.keys(Je),
1106
+ supportedLngs: Object.keys(Ke),
1238
1107
  detection: {
1239
1108
  caches: ["cookie"],
1240
- cookieMinutes: Bn
1109
+ cookieMinutes: Xo
1241
1110
  },
1242
1111
  interpolation: {
1243
1112
  escapeValue: !1
1244
1113
  }
1245
1114
  });
1246
- const Fo = (t) => {
1247
- const e = B(9), {
1248
- navigation: n,
1249
- theme: r,
1250
- children: s
1251
- } = t, a = At(Hn);
1252
- let o;
1253
- e[0] !== a ? (o = () => (a(), R.on("languageChanged", a), () => {
1254
- R.off("languageChanged", a);
1255
- }), e[0] = a, e[1] = o) : o = e[1];
1256
- let l;
1257
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [], e[2] = l) : l = e[2], lt(o, l);
1258
- let d;
1259
- e[3] !== s || e[4] !== n ? (d = /* @__PURE__ */ i(qe, { dateAdapter: Dn, adapterLocale: R.language, children: /* @__PURE__ */ i(_n, { children: /* @__PURE__ */ i(Fn, { navigation: n, children: s }) }) }, R.language), e[3] = s, e[4] = n, e[5] = d) : d = e[5];
1115
+ const zn = (t) => {
1116
+ const e = B.c(9), {
1117
+ navigation: o,
1118
+ theme: n,
1119
+ children: r
1120
+ } = t, l = Rt(Go);
1121
+ let i;
1122
+ e[0] !== l ? (i = () => (l(), F.on("languageChanged", l), () => {
1123
+ F.off("languageChanged", l);
1124
+ }), e[0] = l, e[1] = i) : i = e[1];
1125
+ let a;
1126
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = [], e[2] = a) : a = e[2], st(i, a);
1127
+ 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];
1260
1129
  let u;
1261
- return e[6] !== d || e[7] !== r ? (u = /* @__PURE__ */ i(Ot, { theme: r, children: d }), e[6] = d, e[7] = r, e[8] = u) : u = e[8], u;
1262
- }, Ro = wt().handler(async () => {
1263
- const t = at(R.services.languageDetector.options.lookupCookie) || "en";
1264
- ze.config(ze.core.locales[t]()), C.locale(t), await R.changeLanguage(t);
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);
1265
1134
  });
1266
- function Hn() {
1267
- ze.config(ze.core.locales[R.language]()), C.locale(R.language);
1135
+ function Go() {
1136
+ Ae.config(Ae.core.locales[F.language]()), it.locale(F.language);
1268
1137
  }
1269
1138
  export {
1270
- Fo as LayoutProvider,
1271
- Vo as WISTRON_PRIMARY_COLOR,
1272
- Go as WISTRON_SECONDARY_COLOR,
1273
- Xo as rootRouteHead,
1274
- Ro as setSSRLanguage
1139
+ zn as LayoutProvider,
1140
+ qn as WISTRON_PRIMARY_COLOR,
1141
+ Kn as WISTRON_SECONDARY_COLOR,
1142
+ Yn as rootRouteHead,
1143
+ Wn as setSSRLanguage
1275
1144
  };
1276
1145
  //# sourceMappingURL=index.js.map