wcz-test 6.24.14 → 6.26.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 (50) hide show
  1. package/dist/ApprovalStatus-lESbUD_x.js +1 -0
  2. package/dist/ApprovalStatus-lESbUD_x.js.map +1 -0
  3. package/dist/DialogsContext-8xfQ3X-k.js +285 -0
  4. package/dist/DialogsContext-8xfQ3X-k.js.map +1 -0
  5. package/dist/DialogsHooks-Dz4ExWPV.js +232 -0
  6. package/dist/DialogsHooks-Dz4ExWPV.js.map +1 -0
  7. package/dist/{FileHooks-kGkVKOf9.js → FileHooks-T3wXKu_b.js} +5 -4
  8. package/dist/FileHooks-T3wXKu_b.js.map +1 -0
  9. package/dist/FileMeta-Bzeo3ie9.js +1 -0
  10. package/dist/FileMeta-Bzeo3ie9.js.map +1 -0
  11. package/dist/RouterListItemButton-Dmqima3h.js +661 -0
  12. package/dist/RouterListItemButton-Dmqima3h.js.map +1 -0
  13. package/dist/_commonjsHelpers-ByX85dGu.js +34 -0
  14. package/dist/_commonjsHelpers-ByX85dGu.js.map +1 -0
  15. package/dist/components.js +2667 -518
  16. package/dist/components.js.map +1 -0
  17. package/dist/env-BD4Wc07c.js +76 -0
  18. package/dist/env-BD4Wc07c.js.map +1 -0
  19. package/dist/hooks.js +909 -354
  20. package/dist/hooks.js.map +1 -0
  21. package/dist/i18next-Bx3TmZAT.js +1337 -0
  22. package/dist/i18next-Bx3TmZAT.js.map +1 -0
  23. package/dist/index-Biz5inV2.js +268 -0
  24. package/dist/index-Biz5inV2.js.map +1 -0
  25. package/dist/index.js +1076 -1405
  26. package/dist/index.js.map +1 -0
  27. package/dist/models.js +1 -0
  28. package/dist/models.js.map +1 -0
  29. package/dist/queries.js +4 -3
  30. package/dist/queries.js.map +1 -0
  31. package/dist/queryClient--EvGPhnh.js +1 -0
  32. package/dist/queryClient--EvGPhnh.js.map +1 -0
  33. package/dist/server.js +56 -27
  34. package/dist/server.js.map +1 -0
  35. package/dist/session-BCQDwl6n.js +8581 -0
  36. package/dist/session-BCQDwl6n.js.map +1 -0
  37. package/dist/utils-A7xW24zq.js +1850 -0
  38. package/dist/utils-A7xW24zq.js.map +1 -0
  39. package/dist/utils.js +8 -7
  40. package/dist/utils.js.map +1 -0
  41. package/dist/vite.js +1 -0
  42. package/dist/vite.js.map +1 -0
  43. package/package.json +23 -26
  44. package/dist/DialogsContext-2Yy6yhzQ.js +0 -5
  45. package/dist/DialogsHooks-DWkC9zAf.js +0 -113
  46. package/dist/RouterListItemButton-C_SG0uka.js +0 -17
  47. package/dist/_commonjsHelpers-DaMA6jEr.js +0 -8
  48. package/dist/env-4ZoUrNqp.js +0 -27
  49. package/dist/session-7yb0BETM.js +0 -75
  50. package/dist/utils-CZraUjBd.js +0 -81
package/dist/index.js CHANGED
@@ -1,768 +1,124 @@
1
- import { jsx as p, jsxs as q, Fragment as Wt } from "react/jsx-runtime";
2
- import { c as ae } from "react/compiler-runtime";
3
- import { Stack as Ut, Typography as Ft, Collapse as qt, useMediaQuery as Bt, useColorScheme as Ht, ListItemButton as ve, ListItemText as ye, ListItemIcon as Te, ListItem as Vt, Avatar as Gt, ListSubheader as Ge, List as Re, IconButton as Ye, Box as ze, Menu as Kt, InitColorSchemeScript as Xt, CssBaseline as Zt, AppBar as Jt, Toolbar as Qt, LinearProgress as er, ThemeProvider as tr } from "@mui/material";
4
- import { createServerFn as Fe, createIsomorphicFn as rr } from "@tanstack/react-start";
5
- import { getCookie as Dt } from "@tanstack/react-start/server";
6
- import G from "dayjs";
7
- import ie from "i18next";
8
- import nr from "i18next-browser-languagedetector";
9
- import * as ne from "react";
10
- import { useState as ce, useId as or, useRef as dt, Fragment as qe, useEffect as Lt, Suspense as ir, useEffectEvent as ar } from "react";
11
- import { useTranslation as sr, initReactI18next as cr } from "react-i18next";
12
- import { resources as mt } from "virtual:wcz-layout";
13
- import ge from "zod";
14
- import { D as lr } from "./DialogsContext-2Yy6yhzQ.js";
15
- import ur from "@mui/icons-material/Menu";
16
- import fr from "@mui/icons-material/MenuOpen";
17
- import { useThemeProps as dr, styled as at, useTheme as mr } from "@mui/material/styles";
18
- import { useIsFetching as pr, useIsMutating as hr } from "@tanstack/react-query";
19
- import { c as yr } from "./env-4ZoUrNqp.js";
20
- import At from "@mui/material/Box";
21
- import pt from "@mui/material/Drawer";
22
- import { useNavigate as gr, useRouterState as vr, Await as ht } from "@tanstack/react-router";
23
- import Tr from "@mui/material/Divider";
24
- import br from "@mui/material/List";
25
- import xr from "@mui/material/ListSubheader";
26
- import Sr from "@mui/icons-material/ExpandMore";
27
- import Er from "@mui/material/Avatar";
28
- import _r from "@mui/material/ListItem";
29
- import Or from "@mui/material/ListItemButton";
30
- import wr from "@mui/material/ListItemIcon";
31
- import Cr from "@mui/material/ListItemText";
32
- import Mr from "@mui/material/Paper";
33
- import Pr from "@mui/material/Popper";
34
- import kr from "@mui/material/Typography";
35
- import { R as Ir } from "./RouterListItemButton-C_SG0uka.js";
36
- import Dr from "@mui/icons-material/AccountCircle";
37
- import yt from "@mui/icons-material/ArrowBack";
38
- import Lr from "@mui/icons-material/Brightness4";
39
- import gt from "@mui/icons-material/ChevronRight";
40
- import Ar from "@mui/icons-material/DarkMode";
41
- import Rr from "@mui/icons-material/Done";
42
- import jr from "@mui/icons-material/LightMode";
43
- import $r from "@mui/icons-material/Logout";
44
- import Yr from "@mui/icons-material/SettingsBrightness";
45
- import zr from "@mui/icons-material/Translate";
46
- import st from "axios";
47
- import { q as ct } from "./queryClient--EvGPhnh.js";
48
- import { r as Nr, g as lt } from "./session-7yb0BETM.js";
49
- import { g as Wr } from "./_commonjsHelpers-DaMA6jEr.js";
50
- import Ur from "dayjs/plugin/weekOfYear.js";
51
- import Fr from "dayjs/plugin/customParseFormat.js";
52
- import qr from "dayjs/plugin/localizedFormat.js";
53
- import Br from "dayjs/plugin/isBetween.js";
54
- import Hr from "dayjs/plugin/advancedFormat.js";
55
- import { W as Yo, a as zo, r as No } from "./utils-CZraUjBd.js";
56
- function We() {
57
- return We = Object.assign ? Object.assign.bind() : function(t) {
1
+ import { jsx as a, jsxs as D, Fragment as Mt } from "react/jsx-runtime";
2
+ import { c as R } from "react/compiler-runtime";
3
+ import { Stack as Ot, Typography as Ct, Chip as _t, Collapse as It, useMediaQuery as Et, useColorScheme as At, ListItemButton as ce, ListItemText as ae, ListItemIcon as de, ListItem as Pt, Avatar as $t, ListSubheader as qe, List as $e, IconButton as ze, Box as Ne, Menu as zt, InitColorSchemeScript as Nt, CssBaseline as jt, AppBar as Ut, Toolbar as Ft, LinearProgress as Yt, ThemeProvider as Bt } from "@mui/material";
4
+ import { createServerFn as Ye, createIsomorphicFn as Wt } from "@tanstack/react-start";
5
+ import { getCookie as yt } from "@tanstack/react-start/server";
6
+ import C from "dayjs";
7
+ import { i as W } from "./i18next-Bx3TmZAT.js";
8
+ import * as Y from "react";
9
+ import { useState as q, useId as Rt, useRef as ot, Fragment as Be, useEffect as xt, Suspense as Ht, useEffectEvent as qt } from "react";
10
+ import { resources as it } from "virtual:wcz-layout";
11
+ import le from "zod";
12
+ import { s as Vt, a as Gt, D as Kt, u as Qt } from "./DialogsContext-8xfQ3X-k.js";
13
+ import Xt from "@mui/icons-material/Menu";
14
+ import Zt from "@mui/icons-material/MenuOpen";
15
+ import { useThemeProps as Jt, styled as Ze, useTheme as en } from "@mui/material/styles";
16
+ import { useIsFetching as tn, useIsMutating as nn } from "@tanstack/react-query";
17
+ import { a as on } from "./env-BD4Wc07c.js";
18
+ import St from "@mui/material/Box";
19
+ import rt from "@mui/material/Drawer";
20
+ import { useNavigate as rn, useRouterState as sn, Await as st } from "@tanstack/react-router";
21
+ import an from "@mui/material/Divider";
22
+ import ln from "@mui/material/List";
23
+ import cn from "@mui/material/ListSubheader";
24
+ import dn from "@mui/icons-material/ExpandMore";
25
+ import un from "@mui/material/Avatar";
26
+ import fn from "@mui/material/ListItem";
27
+ import mn from "@mui/material/ListItemButton";
28
+ import hn from "@mui/material/ListItemIcon";
29
+ import pn from "@mui/material/ListItemText";
30
+ import gn from "@mui/material/Paper";
31
+ import yn from "@mui/material/Popper";
32
+ import xn from "@mui/material/Typography";
33
+ import { P as b, R as Sn } from "./RouterListItemButton-Dmqima3h.js";
34
+ import Tn from "@mui/icons-material/AccountCircle";
35
+ import at from "@mui/icons-material/ArrowBack";
36
+ import bn from "@mui/icons-material/Brightness4";
37
+ import lt from "@mui/icons-material/ChevronRight";
38
+ import wn from "@mui/icons-material/DarkMode";
39
+ import kn from "@mui/icons-material/Done";
40
+ import vn from "@mui/icons-material/LightMode";
41
+ import Ln from "@mui/icons-material/Logout";
42
+ import Dn from "@mui/icons-material/SettingsBrightness";
43
+ import Mn from "@mui/icons-material/Translate";
44
+ import { a as Je } from "./utils-A7xW24zq.js";
45
+ import { W as Ci, b as _i, r as Ii } from "./utils-A7xW24zq.js";
46
+ import { q as et } from "./queryClient--EvGPhnh.js";
47
+ import { r as On, c as tt } from "./session-BCQDwl6n.js";
48
+ import Cn from "dayjs/plugin/weekOfYear.js";
49
+ import _n from "dayjs/plugin/customParseFormat.js";
50
+ import In from "dayjs/plugin/localizedFormat.js";
51
+ import En from "dayjs/plugin/isBetween.js";
52
+ import An from "dayjs/plugin/advancedFormat.js";
53
+ function Ue() {
54
+ return Ue = Object.assign ? Object.assign.bind() : function(t) {
58
55
  for (var e = 1; e < arguments.length; e++) {
59
- var r = arguments[e];
60
- for (var o in r) ({}).hasOwnProperty.call(r, o) && (t[o] = r[o]);
56
+ var n = arguments[e];
57
+ for (var o in n) ({}).hasOwnProperty.call(n, o) && (t[o] = n[o]);
61
58
  }
62
59
  return t;
63
- }, We.apply(null, arguments);
60
+ }, Ue.apply(null, arguments);
64
61
  }
65
- function Vr(t, e) {
62
+ function Pn(t, e) {
66
63
  if (t == null) return {};
67
- var r = {};
64
+ var n = {};
68
65
  for (var o in t) if ({}.hasOwnProperty.call(t, o)) {
69
66
  if (e.indexOf(o) !== -1) continue;
70
- r[o] = t[o];
67
+ n[o] = t[o];
71
68
  }
72
- return r;
69
+ return n;
73
70
  }
74
- var je = { exports: {} }, $e = { exports: {} }, $ = {};
75
- var vt;
76
- function Gr() {
77
- if (vt) return $;
78
- vt = 1;
79
- var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, o = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, s = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, a = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, n = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, l = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, f = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, d = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, h = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, v = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, g = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, T = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, E = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, P = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, A = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
80
- function x(c) {
81
- if (typeof c == "object" && c !== null) {
82
- var j = c.$$typeof;
83
- switch (j) {
84
- case e:
85
- switch (c = c.type, c) {
86
- case f:
87
- case d:
88
- case o:
89
- case a:
90
- case s:
91
- case h:
92
- return c;
93
- default:
94
- switch (c = c && c.$$typeof, c) {
95
- case l:
96
- case u:
97
- case b:
98
- case g:
99
- case n:
100
- return c;
101
- default:
102
- return j;
103
- }
104
- }
105
- case r:
106
- return j;
107
- }
108
- }
109
- }
110
- function _(c) {
111
- return x(c) === d;
112
- }
113
- return $.AsyncMode = f, $.ConcurrentMode = d, $.ContextConsumer = l, $.ContextProvider = n, $.Element = e, $.ForwardRef = u, $.Fragment = o, $.Lazy = b, $.Memo = g, $.Portal = r, $.Profiler = a, $.StrictMode = s, $.Suspense = h, $.isAsyncMode = function(c) {
114
- return _(c) || x(c) === f;
115
- }, $.isConcurrentMode = _, $.isContextConsumer = function(c) {
116
- return x(c) === l;
117
- }, $.isContextProvider = function(c) {
118
- return x(c) === n;
119
- }, $.isElement = function(c) {
120
- return typeof c == "object" && c !== null && c.$$typeof === e;
121
- }, $.isForwardRef = function(c) {
122
- return x(c) === u;
123
- }, $.isFragment = function(c) {
124
- return x(c) === o;
125
- }, $.isLazy = function(c) {
126
- return x(c) === b;
127
- }, $.isMemo = function(c) {
128
- return x(c) === g;
129
- }, $.isPortal = function(c) {
130
- return x(c) === r;
131
- }, $.isProfiler = function(c) {
132
- return x(c) === a;
133
- }, $.isStrictMode = function(c) {
134
- return x(c) === s;
135
- }, $.isSuspense = function(c) {
136
- return x(c) === h;
137
- }, $.isValidElementType = function(c) {
138
- return typeof c == "string" || typeof c == "function" || c === o || c === d || c === a || c === s || c === h || c === v || typeof c == "object" && c !== null && (c.$$typeof === b || c.$$typeof === g || c.$$typeof === n || c.$$typeof === l || c.$$typeof === u || c.$$typeof === E || c.$$typeof === P || c.$$typeof === A || c.$$typeof === T);
139
- }, $.typeOf = x, $;
140
- }
141
- var Y = {};
142
- var Tt;
143
- function Kr() {
144
- return Tt || (Tt = 1, process.env.NODE_ENV !== "production" && (function() {
145
- var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, o = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, s = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, a = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, n = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, l = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, f = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, d = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, h = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, v = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, g = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, T = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, E = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, P = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, A = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
146
- function x(m) {
147
- return typeof m == "string" || typeof m == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
148
- m === o || m === d || m === a || m === s || m === h || m === v || typeof m == "object" && m !== null && (m.$$typeof === b || m.$$typeof === g || m.$$typeof === n || m.$$typeof === l || m.$$typeof === u || m.$$typeof === E || m.$$typeof === P || m.$$typeof === A || m.$$typeof === T);
149
- }
150
- function _(m) {
151
- if (typeof m == "object" && m !== null) {
152
- var Q = m.$$typeof;
153
- switch (Q) {
154
- case e:
155
- var oe = m.type;
156
- switch (oe) {
157
- case f:
158
- case d:
159
- case o:
160
- case a:
161
- case s:
162
- case h:
163
- return oe;
164
- default:
165
- var se = oe && oe.$$typeof;
166
- switch (se) {
167
- case l:
168
- case u:
169
- case b:
170
- case g:
171
- case n:
172
- return se;
173
- default:
174
- return Q;
175
- }
176
- }
177
- case r:
178
- return Q;
179
- }
180
- }
181
- }
182
- var c = f, j = d, J = l, B = n, N = e, W = u, K = o, ee = b, Z = g, U = r, F = a, R = s, H = h, te = !1;
183
- function V(m) {
184
- return te || (te = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), i(m) || _(m) === f;
185
- }
186
- function i(m) {
187
- return _(m) === d;
188
- }
189
- function y(m) {
190
- return _(m) === l;
191
- }
192
- function w(m) {
193
- return _(m) === n;
194
- }
195
- function O(m) {
196
- return typeof m == "object" && m !== null && m.$$typeof === e;
197
- }
198
- function S(m) {
199
- return _(m) === u;
200
- }
201
- function k(m) {
202
- return _(m) === o;
203
- }
204
- function C(m) {
205
- return _(m) === b;
206
- }
207
- function M(m) {
208
- return _(m) === g;
209
- }
210
- function I(m) {
211
- return _(m) === r;
212
- }
213
- function L(m) {
214
- return _(m) === a;
215
- }
216
- function D(m) {
217
- return _(m) === s;
218
- }
219
- function X(m) {
220
- return _(m) === h;
221
- }
222
- Y.AsyncMode = c, Y.ConcurrentMode = j, Y.ContextConsumer = J, Y.ContextProvider = B, Y.Element = N, Y.ForwardRef = W, Y.Fragment = K, Y.Lazy = ee, Y.Memo = Z, Y.Portal = U, Y.Profiler = F, Y.StrictMode = R, Y.Suspense = H, Y.isAsyncMode = V, Y.isConcurrentMode = i, Y.isContextConsumer = y, Y.isContextProvider = w, Y.isElement = O, Y.isForwardRef = S, Y.isFragment = k, Y.isLazy = C, Y.isMemo = M, Y.isPortal = I, Y.isProfiler = L, Y.isStrictMode = D, Y.isSuspense = X, Y.isValidElementType = x, Y.typeOf = _;
223
- })()), Y;
224
- }
225
- var bt;
226
- function Rt() {
227
- return bt || (bt = 1, process.env.NODE_ENV === "production" ? $e.exports = Gr() : $e.exports = Kr()), $e.exports;
228
- }
229
- var Ke, xt;
230
- function Xr() {
231
- if (xt) return Ke;
232
- xt = 1;
233
- var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
234
- function o(a) {
235
- if (a == null)
236
- throw new TypeError("Object.assign cannot be called with null or undefined");
237
- return Object(a);
238
- }
239
- function s() {
240
- try {
241
- if (!Object.assign)
242
- return !1;
243
- var a = new String("abc");
244
- if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
245
- return !1;
246
- for (var n = {}, l = 0; l < 10; l++)
247
- n["_" + String.fromCharCode(l)] = l;
248
- var f = Object.getOwnPropertyNames(n).map(function(u) {
249
- return n[u];
250
- });
251
- if (f.join("") !== "0123456789")
252
- return !1;
253
- var d = {};
254
- return "abcdefghijklmnopqrst".split("").forEach(function(u) {
255
- d[u] = u;
256
- }), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
257
- } catch {
258
- return !1;
259
- }
260
- }
261
- return Ke = s() ? Object.assign : function(a, n) {
262
- for (var l, f = o(a), d, u = 1; u < arguments.length; u++) {
263
- l = Object(arguments[u]);
264
- for (var h in l)
265
- e.call(l, h) && (f[h] = l[h]);
266
- if (t) {
267
- d = t(l);
268
- for (var v = 0; v < d.length; v++)
269
- r.call(l, d[v]) && (f[d[v]] = l[d[v]]);
270
- }
271
- }
272
- return f;
273
- }, Ke;
274
- }
275
- var Xe, St;
276
- function ut() {
277
- if (St) return Xe;
278
- St = 1;
279
- var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
280
- return Xe = t, Xe;
281
- }
282
- var Ze, Et;
283
- function jt() {
284
- return Et || (Et = 1, Ze = Function.call.bind(Object.prototype.hasOwnProperty)), Ze;
285
- }
286
- var Je, _t;
287
- function Zr() {
288
- if (_t) return Je;
289
- _t = 1;
290
- var t = function() {
291
- };
292
- if (process.env.NODE_ENV !== "production") {
293
- var e = /* @__PURE__ */ ut(), r = {}, o = /* @__PURE__ */ jt();
294
- t = function(a) {
295
- var n = "Warning: " + a;
296
- typeof console < "u" && console.error(n);
297
- try {
298
- throw new Error(n);
299
- } catch {
300
- }
301
- };
302
- }
303
- function s(a, n, l, f, d) {
304
- if (process.env.NODE_ENV !== "production") {
305
- for (var u in a)
306
- if (o(a, u)) {
307
- var h;
308
- try {
309
- if (typeof a[u] != "function") {
310
- var v = Error(
311
- (f || "React class") + ": " + l + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
312
- );
313
- throw v.name = "Invariant Violation", v;
314
- }
315
- h = a[u](n, u, f, l, null, e);
316
- } catch (b) {
317
- h = b;
318
- }
319
- if (h && !(h instanceof Error) && t(
320
- (f || "React class") + ": type specification of " + l + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
321
- ), h instanceof Error && !(h.message in r)) {
322
- r[h.message] = !0;
323
- var g = d ? d() : "";
324
- t(
325
- "Failed " + l + " type: " + h.message + (g ?? "")
326
- );
327
- }
328
- }
329
- }
330
- }
331
- return s.resetWarningCache = function() {
332
- process.env.NODE_ENV !== "production" && (r = {});
333
- }, Je = s, Je;
334
- }
335
- var Qe, Ot;
336
- function Jr() {
337
- if (Ot) return Qe;
338
- Ot = 1;
339
- var t = Rt(), e = Xr(), r = /* @__PURE__ */ ut(), o = /* @__PURE__ */ jt(), s = /* @__PURE__ */ Zr(), a = function() {
340
- };
341
- process.env.NODE_ENV !== "production" && (a = function(l) {
342
- var f = "Warning: " + l;
343
- typeof console < "u" && console.error(f);
344
- try {
345
- throw new Error(f);
346
- } catch {
347
- }
348
- });
349
- function n() {
350
- return null;
351
- }
352
- return Qe = function(l, f) {
353
- var d = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
354
- function h(i) {
355
- var y = i && (d && i[d] || i[u]);
356
- if (typeof y == "function")
357
- return y;
358
- }
359
- var v = "<<anonymous>>", g = {
360
- array: P("array"),
361
- bigint: P("bigint"),
362
- bool: P("boolean"),
363
- func: P("function"),
364
- number: P("number"),
365
- object: P("object"),
366
- string: P("string"),
367
- symbol: P("symbol"),
368
- any: A(),
369
- arrayOf: x,
370
- element: _(),
371
- elementType: c(),
372
- instanceOf: j,
373
- node: W(),
374
- objectOf: B,
375
- oneOf: J,
376
- oneOfType: N,
377
- shape: ee,
378
- exact: Z
379
- };
380
- function b(i, y) {
381
- return i === y ? i !== 0 || 1 / i === 1 / y : i !== i && y !== y;
382
- }
383
- function T(i, y) {
384
- this.message = i, this.data = y && typeof y == "object" ? y : {}, this.stack = "";
385
- }
386
- T.prototype = Error.prototype;
387
- function E(i) {
388
- if (process.env.NODE_ENV !== "production")
389
- var y = {}, w = 0;
390
- function O(k, C, M, I, L, D, X) {
391
- if (I = I || v, D = D || M, X !== r) {
392
- if (f) {
393
- var m = new Error(
394
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
395
- );
396
- throw m.name = "Invariant Violation", m;
397
- } else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
398
- var Q = I + ":" + M;
399
- !y[Q] && // Avoid spamming the console because they are often not actionable except for lib authors
400
- w < 3 && (a(
401
- "You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + I + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
402
- ), y[Q] = !0, w++);
403
- }
404
- }
405
- return C[M] == null ? k ? C[M] === null ? new T("The " + L + " `" + D + "` is marked as required " + ("in `" + I + "`, but its value is `null`.")) : new T("The " + L + " `" + D + "` is marked as required in " + ("`" + I + "`, but its value is `undefined`.")) : null : i(C, M, I, L, D);
406
- }
407
- var S = O.bind(null, !1);
408
- return S.isRequired = O.bind(null, !0), S;
409
- }
410
- function P(i) {
411
- function y(w, O, S, k, C, M) {
412
- var I = w[O], L = R(I);
413
- if (L !== i) {
414
- var D = H(I);
415
- return new T(
416
- "Invalid " + k + " `" + C + "` of type " + ("`" + D + "` supplied to `" + S + "`, expected ") + ("`" + i + "`."),
417
- { expectedType: i }
418
- );
419
- }
420
- return null;
421
- }
422
- return E(y);
423
- }
424
- function A() {
425
- return E(n);
426
- }
427
- function x(i) {
428
- function y(w, O, S, k, C) {
429
- if (typeof i != "function")
430
- return new T("Property `" + C + "` of component `" + S + "` has invalid PropType notation inside arrayOf.");
431
- var M = w[O];
432
- if (!Array.isArray(M)) {
433
- var I = R(M);
434
- return new T("Invalid " + k + " `" + C + "` of type " + ("`" + I + "` supplied to `" + S + "`, expected an array."));
435
- }
436
- for (var L = 0; L < M.length; L++) {
437
- var D = i(M, L, S, k, C + "[" + L + "]", r);
438
- if (D instanceof Error)
439
- return D;
440
- }
441
- return null;
442
- }
443
- return E(y);
444
- }
445
- function _() {
446
- function i(y, w, O, S, k) {
447
- var C = y[w];
448
- if (!l(C)) {
449
- var M = R(C);
450
- return new T("Invalid " + S + " `" + k + "` of type " + ("`" + M + "` supplied to `" + O + "`, expected a single ReactElement."));
451
- }
452
- return null;
453
- }
454
- return E(i);
455
- }
456
- function c() {
457
- function i(y, w, O, S, k) {
458
- var C = y[w];
459
- if (!t.isValidElementType(C)) {
460
- var M = R(C);
461
- return new T("Invalid " + S + " `" + k + "` of type " + ("`" + M + "` supplied to `" + O + "`, expected a single ReactElement type."));
462
- }
463
- return null;
464
- }
465
- return E(i);
466
- }
467
- function j(i) {
468
- function y(w, O, S, k, C) {
469
- if (!(w[O] instanceof i)) {
470
- var M = i.name || v, I = V(w[O]);
471
- return new T("Invalid " + k + " `" + C + "` of type " + ("`" + I + "` supplied to `" + S + "`, expected ") + ("instance of `" + M + "`."));
472
- }
473
- return null;
474
- }
475
- return E(y);
476
- }
477
- function J(i) {
478
- if (!Array.isArray(i))
479
- return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
480
- "Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
481
- ) : a("Invalid argument supplied to oneOf, expected an array.")), n;
482
- function y(w, O, S, k, C) {
483
- for (var M = w[O], I = 0; I < i.length; I++)
484
- if (b(M, i[I]))
485
- return null;
486
- var L = JSON.stringify(i, function(X, m) {
487
- var Q = H(m);
488
- return Q === "symbol" ? String(m) : m;
489
- });
490
- return new T("Invalid " + k + " `" + C + "` of value `" + String(M) + "` " + ("supplied to `" + S + "`, expected one of " + L + "."));
491
- }
492
- return E(y);
493
- }
494
- function B(i) {
495
- function y(w, O, S, k, C) {
496
- if (typeof i != "function")
497
- return new T("Property `" + C + "` of component `" + S + "` has invalid PropType notation inside objectOf.");
498
- var M = w[O], I = R(M);
499
- if (I !== "object")
500
- return new T("Invalid " + k + " `" + C + "` of type " + ("`" + I + "` supplied to `" + S + "`, expected an object."));
501
- for (var L in M)
502
- if (o(M, L)) {
503
- var D = i(M, L, S, k, C + "." + L, r);
504
- if (D instanceof Error)
505
- return D;
506
- }
507
- return null;
508
- }
509
- return E(y);
510
- }
511
- function N(i) {
512
- if (!Array.isArray(i))
513
- return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), n;
514
- for (var y = 0; y < i.length; y++) {
515
- var w = i[y];
516
- if (typeof w != "function")
517
- return a(
518
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + te(w) + " at index " + y + "."
519
- ), n;
520
- }
521
- function O(S, k, C, M, I) {
522
- for (var L = [], D = 0; D < i.length; D++) {
523
- var X = i[D], m = X(S, k, C, M, I, r);
524
- if (m == null)
525
- return null;
526
- m.data && o(m.data, "expectedType") && L.push(m.data.expectedType);
527
- }
528
- var Q = L.length > 0 ? ", expected one of type [" + L.join(", ") + "]" : "";
529
- return new T("Invalid " + M + " `" + I + "` supplied to " + ("`" + C + "`" + Q + "."));
530
- }
531
- return E(O);
532
- }
533
- function W() {
534
- function i(y, w, O, S, k) {
535
- return U(y[w]) ? null : new T("Invalid " + S + " `" + k + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
536
- }
537
- return E(i);
538
- }
539
- function K(i, y, w, O, S) {
540
- return new T(
541
- (i || "React class") + ": " + y + " type `" + w + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + S + "`."
542
- );
543
- }
544
- function ee(i) {
545
- function y(w, O, S, k, C) {
546
- var M = w[O], I = R(M);
547
- if (I !== "object")
548
- return new T("Invalid " + k + " `" + C + "` of type `" + I + "` " + ("supplied to `" + S + "`, expected `object`."));
549
- for (var L in i) {
550
- var D = i[L];
551
- if (typeof D != "function")
552
- return K(S, k, C, L, H(D));
553
- var X = D(M, L, S, k, C + "." + L, r);
554
- if (X)
555
- return X;
556
- }
557
- return null;
558
- }
559
- return E(y);
560
- }
561
- function Z(i) {
562
- function y(w, O, S, k, C) {
563
- var M = w[O], I = R(M);
564
- if (I !== "object")
565
- return new T("Invalid " + k + " `" + C + "` of type `" + I + "` " + ("supplied to `" + S + "`, expected `object`."));
566
- var L = e({}, w[O], i);
567
- for (var D in L) {
568
- var X = i[D];
569
- if (o(i, D) && typeof X != "function")
570
- return K(S, k, C, D, H(X));
571
- if (!X)
572
- return new T(
573
- "Invalid " + k + " `" + C + "` key `" + D + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify(w[O], null, " ") + `
574
- Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
575
- );
576
- var m = X(M, D, S, k, C + "." + D, r);
577
- if (m)
578
- return m;
579
- }
580
- return null;
581
- }
582
- return E(y);
583
- }
584
- function U(i) {
585
- switch (typeof i) {
586
- case "number":
587
- case "string":
588
- case "undefined":
589
- return !0;
590
- case "boolean":
591
- return !i;
592
- case "object":
593
- if (Array.isArray(i))
594
- return i.every(U);
595
- if (i === null || l(i))
596
- return !0;
597
- var y = h(i);
598
- if (y) {
599
- var w = y.call(i), O;
600
- if (y !== i.entries) {
601
- for (; !(O = w.next()).done; )
602
- if (!U(O.value))
603
- return !1;
604
- } else
605
- for (; !(O = w.next()).done; ) {
606
- var S = O.value;
607
- if (S && !U(S[1]))
608
- return !1;
609
- }
610
- } else
611
- return !1;
612
- return !0;
613
- default:
614
- return !1;
615
- }
616
- }
617
- function F(i, y) {
618
- return i === "symbol" ? !0 : y ? y["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && y instanceof Symbol : !1;
619
- }
620
- function R(i) {
621
- var y = typeof i;
622
- return Array.isArray(i) ? "array" : i instanceof RegExp ? "object" : F(y, i) ? "symbol" : y;
623
- }
624
- function H(i) {
625
- if (typeof i > "u" || i === null)
626
- return "" + i;
627
- var y = R(i);
628
- if (y === "object") {
629
- if (i instanceof Date)
630
- return "date";
631
- if (i instanceof RegExp)
632
- return "regexp";
633
- }
634
- return y;
635
- }
636
- function te(i) {
637
- var y = H(i);
638
- switch (y) {
639
- case "array":
640
- case "object":
641
- return "an " + y;
642
- case "boolean":
643
- case "date":
644
- case "regexp":
645
- return "a " + y;
646
- default:
647
- return y;
648
- }
649
- }
650
- function V(i) {
651
- return !i.constructor || !i.constructor.name ? v : i.constructor.name;
652
- }
653
- return g.checkPropTypes = s, g.resetWarningCache = s.resetWarningCache, g.PropTypes = g, g;
654
- }, Qe;
655
- }
656
- var et, wt;
657
- function Qr() {
658
- if (wt) return et;
659
- wt = 1;
660
- var t = /* @__PURE__ */ ut();
661
- function e() {
662
- }
663
- function r() {
664
- }
665
- return r.resetWarningCache = e, et = function() {
666
- function o(n, l, f, d, u, h) {
667
- if (h !== t) {
668
- var v = new Error(
669
- "Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
670
- );
671
- throw v.name = "Invariant Violation", v;
672
- }
673
- }
674
- o.isRequired = o;
675
- function s() {
676
- return o;
677
- }
678
- var a = {
679
- array: o,
680
- bigint: o,
681
- bool: o,
682
- func: o,
683
- number: o,
684
- object: o,
685
- string: o,
686
- symbol: o,
687
- any: o,
688
- arrayOf: s,
689
- element: o,
690
- elementType: o,
691
- instanceOf: s,
692
- node: o,
693
- objectOf: s,
694
- oneOf: s,
695
- oneOfType: s,
696
- shape: s,
697
- exact: s,
698
- checkPropTypes: r,
699
- resetWarningCache: e
700
- };
701
- return a.PropTypes = a, a;
702
- }, et;
703
- }
704
- var Ct;
705
- function en() {
706
- if (Ct) return je.exports;
707
- if (Ct = 1, process.env.NODE_ENV !== "production") {
708
- var t = Rt(), e = !0;
709
- je.exports = /* @__PURE__ */ Jr()(t.isElement, e);
710
- } else
711
- je.exports = /* @__PURE__ */ Qr()();
712
- return je.exports;
713
- }
714
- var tn = /* @__PURE__ */ en();
715
- const z = /* @__PURE__ */ Wr(tn), rn = ["localeText"], ot = /* @__PURE__ */ ne.createContext(null);
716
- process.env.NODE_ENV !== "production" && (ot.displayName = "PickerAdapterContext");
717
- const ft = function(e) {
71
+ const $n = ["localeText"], Qe = /* @__PURE__ */ Y.createContext(null);
72
+ process.env.NODE_ENV !== "production" && (Qe.displayName = "PickerAdapterContext");
73
+ const nt = function(e) {
718
74
  const {
719
- localeText: r
720
- } = e, o = Vr(e, rn), {
721
- adapter: s,
722
- localeText: a
723
- } = ne.useContext(ot) ?? {
75
+ localeText: n
76
+ } = e, o = Pn(e, $n), {
77
+ adapter: r,
78
+ localeText: s
79
+ } = Y.useContext(Qe) ?? {
724
80
  adapter: void 0,
725
81
  localeText: void 0
726
- }, n = dr({
82
+ }, i = Jt({
727
83
  // We don't want to pass the `localeText` prop to the theme, that way it will always return the theme value,
728
84
  // We will then merge this theme value with our value manually
729
85
  props: o,
730
86
  name: "MuiLocalizationProvider"
731
87
  }), {
732
88
  children: l,
733
- dateAdapter: f,
734
- dateFormats: d,
735
- dateLibInstance: u,
736
- adapterLocale: h,
737
- localeText: v
738
- } = n, g = ne.useMemo(() => We({}, v, a, r), [v, a, r]), b = ne.useMemo(() => {
739
- if (!f)
740
- return s || null;
741
- const P = new f({
742
- locale: h,
743
- formats: d,
744
- instance: u
89
+ dateAdapter: c,
90
+ dateFormats: u,
91
+ dateLibInstance: d,
92
+ adapterLocale: m,
93
+ localeText: h
94
+ } = i, f = Y.useMemo(() => Ue({}, h, s, n), [h, s, n]), p = Y.useMemo(() => {
95
+ if (!c)
96
+ return r || null;
97
+ const w = new c({
98
+ locale: m,
99
+ formats: u,
100
+ instance: d
745
101
  });
746
- if (!P.isMUIAdapter)
102
+ if (!w.isMUIAdapter)
747
103
  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(`
748
104
  `));
749
- return P;
750
- }, [f, h, d, u, s]), T = ne.useMemo(() => b ? {
751
- minDate: b.date("1900-01-01T00:00:00.000"),
752
- maxDate: b.date("2099-12-31T00:00:00.000")
753
- } : null, [b]), E = ne.useMemo(() => ({
754
- utils: b,
755
- adapter: b,
756
- defaultDates: T,
757
- localeText: g
758
- }), [T, b, g]);
759
- return /* @__PURE__ */ p(ot.Provider, {
760
- value: E,
105
+ return w;
106
+ }, [c, m, u, d, r]), g = Y.useMemo(() => p ? {
107
+ minDate: p.date("1900-01-01T00:00:00.000"),
108
+ maxDate: p.date("2099-12-31T00:00:00.000")
109
+ } : null, [p]), x = Y.useMemo(() => ({
110
+ utils: p,
111
+ adapter: p,
112
+ defaultDates: g,
113
+ localeText: f
114
+ }), [g, p, f]);
115
+ return /* @__PURE__ */ a(Qe.Provider, {
116
+ value: x,
761
117
  children: l
762
118
  });
763
119
  };
764
- process.env.NODE_ENV !== "production" && (ft.displayName = "LocalizationProvider");
765
- process.env.NODE_ENV !== "production" && (ft.propTypes = {
120
+ process.env.NODE_ENV !== "production" && (nt.displayName = "LocalizationProvider");
121
+ process.env.NODE_ENV !== "production" && (nt.propTypes = {
766
122
  // ----------------------------- Warning --------------------------------
767
123
  // | These PropTypes are generated from the TypeScript type definitions |
768
124
  // | To update them edit the TypeScript types and run "pnpm proptypes" |
@@ -770,38 +126,38 @@ process.env.NODE_ENV !== "production" && (ft.propTypes = {
770
126
  /**
771
127
  * Locale for the date library you are using
772
128
  */
773
- adapterLocale: z.any,
774
- children: z.node,
129
+ adapterLocale: b.any,
130
+ children: b.node,
775
131
  /**
776
132
  * Date library adapter class function.
777
133
  * @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.
778
134
  */
779
- dateAdapter: z.func,
135
+ dateAdapter: b.func,
780
136
  /**
781
137
  * Formats that are used for any child pickers
782
138
  */
783
- dateFormats: z.shape({
784
- dayOfMonth: z.string,
785
- dayOfMonthFull: z.string,
786
- fullDate: z.string,
787
- fullTime12h: z.string,
788
- fullTime24h: z.string,
789
- hours12h: z.string,
790
- hours24h: z.string,
791
- keyboardDate: z.string,
792
- keyboardDateTime12h: z.string,
793
- keyboardDateTime24h: z.string,
794
- meridiem: z.string,
795
- minutes: z.string,
796
- month: z.string,
797
- monthShort: z.string,
798
- normalDate: z.string,
799
- normalDateWithWeekday: z.string,
800
- seconds: z.string,
801
- shortDate: z.string,
802
- weekday: z.string,
803
- weekdayShort: z.string,
804
- year: z.string
139
+ dateFormats: b.shape({
140
+ dayOfMonth: b.string,
141
+ dayOfMonthFull: b.string,
142
+ fullDate: b.string,
143
+ fullTime12h: b.string,
144
+ fullTime24h: b.string,
145
+ hours12h: b.string,
146
+ hours24h: b.string,
147
+ keyboardDate: b.string,
148
+ keyboardDateTime12h: b.string,
149
+ keyboardDateTime24h: b.string,
150
+ meridiem: b.string,
151
+ minutes: b.string,
152
+ month: b.string,
153
+ monthShort: b.string,
154
+ normalDate: b.string,
155
+ normalDateWithWeekday: b.string,
156
+ seconds: b.string,
157
+ shortDate: b.string,
158
+ weekday: b.string,
159
+ weekdayShort: b.string,
160
+ year: b.string
805
161
  }),
806
162
  /**
807
163
  * Date library instance you are using, if it has some global overrides
@@ -809,35 +165,35 @@ process.env.NODE_ENV !== "production" && (ft.propTypes = {
809
165
  * dateLibInstance={momentTimeZone}
810
166
  * ```
811
167
  */
812
- dateLibInstance: z.any,
168
+ dateLibInstance: b.any,
813
169
  /**
814
170
  * Locale for components texts
815
171
  */
816
- localeText: z.object
172
+ localeText: b.object
817
173
  });
818
- const nn = typeof window < "u" ? ne.useLayoutEffect : ne.useEffect;
819
- function tt(t) {
820
- const e = ne.useRef(t);
821
- return nn(() => {
174
+ const zn = typeof window < "u" ? Y.useLayoutEffect : Y.useEffect;
175
+ function Ve(t) {
176
+ const e = Y.useRef(t);
177
+ return zn(() => {
822
178
  e.current = t;
823
- }), ne.useRef((...r) => (
179
+ }), Y.useRef((...n) => (
824
180
  // @ts-expect-error hide `this`
825
- (0, e.current)(...r)
181
+ (0, e.current)(...n)
826
182
  )).current;
827
183
  }
828
- const Mt = /* @__PURE__ */ new Set();
829
- function on(t, e = "warning") {
184
+ const ct = /* @__PURE__ */ new Set();
185
+ function Nn(t, e = "warning") {
830
186
  if (process.env.NODE_ENV === "production")
831
187
  return;
832
- const r = Array.isArray(t) ? t.join(`
188
+ const n = Array.isArray(t) ? t.join(`
833
189
  `) : t;
834
- Mt.has(r) || (Mt.add(r), e === "error" ? console.error(r) : console.warn(r));
190
+ ct.has(n) || (ct.add(n), e === "error" ? console.error(n) : console.warn(n));
835
191
  }
836
- G.extend(qr);
837
- G.extend(Ur);
838
- G.extend(Br);
839
- G.extend(Hr);
840
- const an = {
192
+ C.extend(In);
193
+ C.extend(Cn);
194
+ C.extend(En);
195
+ C.extend(An);
196
+ const jn = {
841
197
  // Year
842
198
  YY: "year",
843
199
  YYYY: {
@@ -919,7 +275,7 @@ const an = {
919
275
  maxLength: 2
920
276
  },
921
277
  ss: "seconds"
922
- }, sn = {
278
+ }, Un = {
923
279
  year: "YYYY",
924
280
  month: "MMMM",
925
281
  monthShort: "MMM",
@@ -941,10 +297,10 @@ const an = {
941
297
  fullTime24h: "HH:mm",
942
298
  keyboardDateTime12h: "L hh:mm A",
943
299
  keyboardDateTime24h: "L HH:mm"
944
- }, rt = ["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(`
945
- `), Pt = ["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(`
300
+ }, Ge = ["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(`
301
+ `), dt = ["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(`
946
302
  `);
947
- class cn {
303
+ class Fn {
948
304
  isMUIAdapter = !0;
949
305
  isTimezoneCompatible = !0;
950
306
  lib = "dayjs";
@@ -952,22 +308,22 @@ class cn {
952
308
  start: "[",
953
309
  end: "]"
954
310
  };
955
- formatTokenMap = an;
311
+ formatTokenMap = jn;
956
312
  constructor({
957
313
  locale: e,
958
- formats: r
314
+ formats: n
959
315
  } = {}) {
960
- this.locale = e, this.formats = We({}, sn, r), G.extend(Fr);
316
+ this.locale = e, this.formats = Ue({}, Un, n), C.extend(_n);
961
317
  }
962
318
  setLocaleToValue = (e) => {
963
- const r = this.getCurrentLocaleCode();
964
- return r === e.locale() ? e : e.locale(r);
319
+ const n = this.getCurrentLocaleCode();
320
+ return n === e.locale() ? e : e.locale(n);
965
321
  };
966
- hasUTCPlugin = () => typeof G.utc < "u";
967
- hasTimezonePlugin = () => typeof G.tz < "u";
968
- isSame = (e, r, o) => {
969
- const s = this.setTimezone(r, this.getTimezone(e));
970
- return e.format(o) === s.format(o);
322
+ hasUTCPlugin = () => typeof C.utc < "u";
323
+ hasTimezonePlugin = () => typeof C.tz < "u";
324
+ isSame = (e, n, o) => {
325
+ const r = this.setTimezone(n, this.getTimezone(e));
326
+ return e.format(o) === r.format(o);
971
327
  };
972
328
  /**
973
329
  * Replaces "default" by undefined and "system" by the system timezone before passing it to `dayjs`.
@@ -977,37 +333,37 @@ class cn {
977
333
  case "default":
978
334
  return;
979
335
  case "system":
980
- return G.tz.guess();
336
+ return C.tz.guess();
981
337
  default:
982
338
  return e;
983
339
  }
984
340
  };
985
341
  createSystemDate = (e) => {
986
- let r;
342
+ let n;
987
343
  if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
988
- const o = G.tz.guess();
989
- o === "UTC" ? r = G(e) : r = G.tz(e, o);
344
+ const o = C.tz.guess();
345
+ o === "UTC" ? n = C(e) : n = C.tz(e, o);
990
346
  } else
991
- r = G(e);
992
- return this.setLocaleToValue(r);
347
+ n = C(e);
348
+ return this.setLocaleToValue(n);
993
349
  };
994
350
  createUTCDate = (e) => {
995
351
  if (!this.hasUTCPlugin())
996
- throw new Error(rt);
997
- return this.setLocaleToValue(G.utc(e));
352
+ throw new Error(Ge);
353
+ return this.setLocaleToValue(C.utc(e));
998
354
  };
999
- createTZDate = (e, r) => {
355
+ createTZDate = (e, n) => {
1000
356
  if (!this.hasUTCPlugin())
1001
- throw new Error(rt);
357
+ throw new Error(Ge);
1002
358
  if (!this.hasTimezonePlugin())
1003
- throw new Error(Pt);
359
+ throw new Error(dt);
1004
360
  const o = e !== void 0 && !e.endsWith("Z");
1005
- return this.setLocaleToValue(G(e).tz(this.cleanTimezone(r), o));
361
+ return this.setLocaleToValue(C(e).tz(this.cleanTimezone(n), o));
1006
362
  };
1007
363
  getLocaleFormats = () => {
1008
- const e = G.Ls, r = this.locale || "en";
1009
- let o = e[r];
1010
- return o === void 0 && (process.env.NODE_ENV !== "production" && on(["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."]), o = e.en), o.formats;
364
+ const e = C.Ls, n = this.locale || "en";
365
+ let o = e[n];
366
+ return o === void 0 && (process.env.NODE_ENV !== "production" && Nn(["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."]), o = e.en), o.formats;
1011
367
  };
1012
368
  /**
1013
369
  * If the new day does not have the same offset as the old one (when switching to summer day time for example),
@@ -1018,69 +374,69 @@ class cn {
1018
374
  adjustOffset = (e) => {
1019
375
  if (!this.hasTimezonePlugin())
1020
376
  return e;
1021
- const r = this.getTimezone(e);
1022
- if (r !== "UTC") {
1023
- const o = e.tz(this.cleanTimezone(r), !0);
377
+ const n = this.getTimezone(e);
378
+ if (n !== "UTC") {
379
+ const o = e.tz(this.cleanTimezone(n), !0);
1024
380
  if (o.$offset === (e.$offset ?? 0))
1025
381
  return e;
1026
382
  e.$offset = o.$offset;
1027
383
  }
1028
384
  return e;
1029
385
  };
1030
- date = (e, r = "default") => e === null ? null : r === "UTC" ? this.createUTCDate(e) : r === "system" || r === "default" && !this.hasTimezonePlugin() ? this.createSystemDate(e) : this.createTZDate(e, r);
1031
- getInvalidDate = () => G(/* @__PURE__ */ new Date("Invalid date"));
386
+ 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);
387
+ getInvalidDate = () => C(/* @__PURE__ */ new Date("Invalid date"));
1032
388
  getTimezone = (e) => {
1033
389
  if (this.hasTimezonePlugin()) {
1034
- const r = e.$x?.$timezone;
1035
- if (r)
1036
- return r;
390
+ const n = e.$x?.$timezone;
391
+ if (n)
392
+ return n;
1037
393
  }
1038
394
  return this.hasUTCPlugin() && e.isUTC() ? "UTC" : "system";
1039
395
  };
1040
- setTimezone = (e, r) => {
1041
- if (this.getTimezone(e) === r)
396
+ setTimezone = (e, n) => {
397
+ if (this.getTimezone(e) === n)
1042
398
  return e;
1043
- if (r === "UTC") {
399
+ if (n === "UTC") {
1044
400
  if (!this.hasUTCPlugin())
1045
- throw new Error(rt);
401
+ throw new Error(Ge);
1046
402
  return e.utc();
1047
403
  }
1048
- if (r === "system")
404
+ if (n === "system")
1049
405
  return e.local();
1050
406
  if (!this.hasTimezonePlugin()) {
1051
- if (r === "default")
407
+ if (n === "default")
1052
408
  return e;
1053
- throw new Error(Pt);
409
+ throw new Error(dt);
1054
410
  }
1055
- return this.setLocaleToValue(G.tz(e, this.cleanTimezone(r)));
411
+ return this.setLocaleToValue(C.tz(e, this.cleanTimezone(n)));
1056
412
  };
1057
413
  toJsDate = (e) => e.toDate();
1058
- parse = (e, r) => e === "" ? null : G(e, r, this.locale, !0);
414
+ parse = (e, n) => e === "" ? null : C(e, n, this.locale, !0);
1059
415
  getCurrentLocaleCode = () => this.locale || "en";
1060
416
  is12HourCycleInCurrentLocale = () => /A|a/.test(this.getLocaleFormats().LT || "");
1061
417
  expandFormat = (e) => {
1062
- const r = this.getLocaleFormats(), o = (s) => s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (a, n, l) => n || l.slice(1));
1063
- return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (s, a, n) => {
1064
- const l = n && n.toUpperCase();
1065
- return a || r[n] || o(r[l]);
418
+ const n = this.getLocaleFormats(), o = (r) => r.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (s, i, l) => i || l.slice(1));
419
+ return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (r, s, i) => {
420
+ const l = i && i.toUpperCase();
421
+ return s || n[i] || o(n[l]);
1066
422
  });
1067
423
  };
1068
424
  isValid = (e) => e == null ? !1 : e.isValid();
1069
- format = (e, r) => this.formatByString(e, this.formats[r]);
1070
- formatByString = (e, r) => this.setLocaleToValue(e).format(r);
425
+ format = (e, n) => this.formatByString(e, this.formats[n]);
426
+ formatByString = (e, n) => this.setLocaleToValue(e).format(n);
1071
427
  formatNumber = (e) => e;
1072
- isEqual = (e, r) => e === null && r === null ? !0 : e === null || r === null ? !1 : e.toDate().getTime() === r.toDate().getTime();
1073
- isSameYear = (e, r) => this.isSame(e, r, "YYYY");
1074
- isSameMonth = (e, r) => this.isSame(e, r, "YYYY-MM");
1075
- isSameDay = (e, r) => this.isSame(e, r, "YYYY-MM-DD");
1076
- isSameHour = (e, r) => e.isSame(r, "hour");
1077
- isAfter = (e, r) => e > r;
1078
- isAfterYear = (e, r) => this.hasUTCPlugin() ? !this.isSameYear(e, r) && e.utc() > r.utc() : e.isAfter(r, "year");
1079
- isAfterDay = (e, r) => this.hasUTCPlugin() ? !this.isSameDay(e, r) && e.utc() > r.utc() : e.isAfter(r, "day");
1080
- isBefore = (e, r) => e < r;
1081
- isBeforeYear = (e, r) => this.hasUTCPlugin() ? !this.isSameYear(e, r) && e.utc() < r.utc() : e.isBefore(r, "year");
1082
- isBeforeDay = (e, r) => this.hasUTCPlugin() ? !this.isSameDay(e, r) && e.utc() < r.utc() : e.isBefore(r, "day");
1083
- isWithinRange = (e, [r, o]) => e >= r && e <= o;
428
+ isEqual = (e, n) => e === null && n === null ? !0 : e === null || n === null ? !1 : e.toDate().getTime() === n.toDate().getTime();
429
+ isSameYear = (e, n) => this.isSame(e, n, "YYYY");
430
+ isSameMonth = (e, n) => this.isSame(e, n, "YYYY-MM");
431
+ isSameDay = (e, n) => this.isSame(e, n, "YYYY-MM-DD");
432
+ isSameHour = (e, n) => e.isSame(n, "hour");
433
+ isAfter = (e, n) => e > n;
434
+ isAfterYear = (e, n) => this.hasUTCPlugin() ? !this.isSameYear(e, n) && e.utc() > n.utc() : e.isAfter(n, "year");
435
+ isAfterDay = (e, n) => this.hasUTCPlugin() ? !this.isSameDay(e, n) && e.utc() > n.utc() : e.isAfter(n, "day");
436
+ isBefore = (e, n) => e < n;
437
+ isBeforeYear = (e, n) => this.hasUTCPlugin() ? !this.isSameYear(e, n) && e.utc() < n.utc() : e.isBefore(n, "year");
438
+ isBeforeDay = (e, n) => this.hasUTCPlugin() ? !this.isSameDay(e, n) && e.utc() < n.utc() : e.isBefore(n, "day");
439
+ isWithinRange = (e, [n, o]) => e >= n && e <= o;
1084
440
  startOfYear = (e) => this.adjustOffset(e.startOf("year"));
1085
441
  startOfMonth = (e) => this.adjustOffset(e.startOf("month"));
1086
442
  startOfWeek = (e) => this.adjustOffset(this.setLocaleToValue(e).startOf("week"));
@@ -1089,13 +445,13 @@ class cn {
1089
445
  endOfMonth = (e) => this.adjustOffset(e.endOf("month"));
1090
446
  endOfWeek = (e) => this.adjustOffset(this.setLocaleToValue(e).endOf("week"));
1091
447
  endOfDay = (e) => this.adjustOffset(e.endOf("day"));
1092
- addYears = (e, r) => this.adjustOffset(e.add(r, "year"));
1093
- addMonths = (e, r) => this.adjustOffset(e.add(r, "month"));
1094
- addWeeks = (e, r) => this.adjustOffset(e.add(r, "week"));
1095
- addDays = (e, r) => this.adjustOffset(e.add(r, "day"));
1096
- addHours = (e, r) => this.adjustOffset(e.add(r, "hour"));
1097
- addMinutes = (e, r) => this.adjustOffset(e.add(r, "minute"));
1098
- addSeconds = (e, r) => this.adjustOffset(e.add(r, "second"));
448
+ addYears = (e, n) => this.adjustOffset(e.add(n, "year"));
449
+ addMonths = (e, n) => this.adjustOffset(e.add(n, "month"));
450
+ addWeeks = (e, n) => this.adjustOffset(e.add(n, "week"));
451
+ addDays = (e, n) => this.adjustOffset(e.add(n, "day"));
452
+ addHours = (e, n) => this.adjustOffset(e.add(n, "hour"));
453
+ addMinutes = (e, n) => this.adjustOffset(e.add(n, "minute"));
454
+ addSeconds = (e, n) => this.adjustOffset(e.add(n, "second"));
1099
455
  getYear = (e) => e.year();
1100
456
  getMonth = (e) => e.month();
1101
457
  getDate = (e) => e.date();
@@ -1103,102 +459,416 @@ class cn {
1103
459
  getMinutes = (e) => e.minute();
1104
460
  getSeconds = (e) => e.second();
1105
461
  getMilliseconds = (e) => e.millisecond();
1106
- setYear = (e, r) => this.adjustOffset(e.set("year", r));
1107
- setMonth = (e, r) => this.adjustOffset(e.set("month", r));
1108
- setDate = (e, r) => this.adjustOffset(e.set("date", r));
1109
- setHours = (e, r) => this.adjustOffset(e.set("hour", r));
1110
- setMinutes = (e, r) => this.adjustOffset(e.set("minute", r));
1111
- setSeconds = (e, r) => this.adjustOffset(e.set("second", r));
1112
- setMilliseconds = (e, r) => this.adjustOffset(e.set("millisecond", r));
462
+ setYear = (e, n) => this.adjustOffset(e.set("year", n));
463
+ setMonth = (e, n) => this.adjustOffset(e.set("month", n));
464
+ setDate = (e, n) => this.adjustOffset(e.set("date", n));
465
+ setHours = (e, n) => this.adjustOffset(e.set("hour", n));
466
+ setMinutes = (e, n) => this.adjustOffset(e.set("minute", n));
467
+ setSeconds = (e, n) => this.adjustOffset(e.set("second", n));
468
+ setMilliseconds = (e, n) => this.adjustOffset(e.set("millisecond", n));
1113
469
  getDaysInMonth = (e) => e.daysInMonth();
1114
470
  getWeekArray = (e) => {
1115
- const r = this.startOfWeek(this.startOfMonth(e)), o = this.endOfWeek(this.endOfMonth(e));
1116
- let s = 0, a = r;
1117
- const n = [];
1118
- for (; a < o; ) {
1119
- const l = Math.floor(s / 7);
1120
- n[l] = n[l] || [], n[l].push(a), a = this.addDays(a, 1), s += 1;
1121
- }
1122
- return n;
471
+ const n = this.startOfWeek(this.startOfMonth(e)), o = this.endOfWeek(this.endOfMonth(e));
472
+ let r = 0, s = n;
473
+ const i = [];
474
+ for (; s < o; ) {
475
+ const l = Math.floor(r / 7);
476
+ i[l] = i[l] || [], i[l].push(s), s = this.addDays(s, 1), r += 1;
477
+ }
478
+ return i;
1123
479
  };
1124
480
  getWeekNumber = (e) => e.week();
1125
481
  getDayOfWeek(e) {
1126
482
  return e.day() + 1;
1127
483
  }
1128
- getYearRange = ([e, r]) => {
1129
- const o = this.startOfYear(e), s = this.endOfYear(r), a = [];
1130
- let n = o;
1131
- for (; this.isBefore(n, s); )
1132
- a.push(n), n = this.addYears(n, 1);
1133
- return a;
484
+ getYearRange = ([e, n]) => {
485
+ const o = this.startOfYear(e), r = this.endOfYear(n), s = [];
486
+ let i = o;
487
+ for (; this.isBefore(i, r); )
488
+ s.push(i), i = this.addYears(i, 1);
489
+ return s;
1134
490
  };
1135
491
  }
1136
- function ln({
492
+ const {
493
+ slice: Yn,
494
+ forEach: Bn
495
+ } = [];
496
+ function Wn(t) {
497
+ return Bn.call(Yn.call(arguments, 1), (e) => {
498
+ if (e)
499
+ for (const n in e)
500
+ t[n] === void 0 && (t[n] = e[n]);
501
+ }), t;
502
+ }
503
+ function Rn(t) {
504
+ return typeof t != "string" ? !1 : [/<\s*script.*?>/i, /<\s*\/\s*script\s*>/i, /<\s*img.*?on\w+\s*=/i, /<\s*\w+\s*on\w+\s*=.*?>/i, /javascript\s*:/i, /vbscript\s*:/i, /expression\s*\(/i, /eval\s*\(/i, /alert\s*\(/i, /document\.cookie/i, /document\.write\s*\(/i, /window\.location/i, /innerHTML/i].some((n) => n.test(t));
505
+ }
506
+ const ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Hn = function(t, e) {
507
+ const o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
508
+ path: "/"
509
+ }, r = encodeURIComponent(e);
510
+ let s = `${t}=${r}`;
511
+ if (o.maxAge > 0) {
512
+ const i = o.maxAge - 0;
513
+ if (Number.isNaN(i)) throw new Error("maxAge should be a Number");
514
+ s += `; Max-Age=${Math.floor(i)}`;
515
+ }
516
+ if (o.domain) {
517
+ if (!ut.test(o.domain))
518
+ throw new TypeError("option domain is invalid");
519
+ s += `; Domain=${o.domain}`;
520
+ }
521
+ if (o.path) {
522
+ if (!ut.test(o.path))
523
+ throw new TypeError("option path is invalid");
524
+ s += `; Path=${o.path}`;
525
+ }
526
+ if (o.expires) {
527
+ if (typeof o.expires.toUTCString != "function")
528
+ throw new TypeError("option expires is invalid");
529
+ s += `; Expires=${o.expires.toUTCString()}`;
530
+ }
531
+ if (o.httpOnly && (s += "; HttpOnly"), o.secure && (s += "; Secure"), o.sameSite)
532
+ switch (typeof o.sameSite == "string" ? o.sameSite.toLowerCase() : o.sameSite) {
533
+ case !0:
534
+ s += "; SameSite=Strict";
535
+ break;
536
+ case "lax":
537
+ s += "; SameSite=Lax";
538
+ break;
539
+ case "strict":
540
+ s += "; SameSite=Strict";
541
+ break;
542
+ case "none":
543
+ s += "; SameSite=None";
544
+ break;
545
+ default:
546
+ throw new TypeError("option sameSite is invalid");
547
+ }
548
+ return o.partitioned && (s += "; Partitioned"), s;
549
+ }, ft = {
550
+ create(t, e, n, o) {
551
+ let r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
552
+ path: "/",
553
+ sameSite: "strict"
554
+ };
555
+ n && (r.expires = /* @__PURE__ */ new Date(), r.expires.setTime(r.expires.getTime() + n * 60 * 1e3)), o && (r.domain = o), document.cookie = Hn(t, e, r);
556
+ },
557
+ read(t) {
558
+ const e = `${t}=`, n = document.cookie.split(";");
559
+ for (let o = 0; o < n.length; o++) {
560
+ let r = n[o];
561
+ for (; r.charAt(0) === " "; ) r = r.substring(1, r.length);
562
+ if (r.indexOf(e) === 0) return r.substring(e.length, r.length);
563
+ }
564
+ return null;
565
+ },
566
+ remove(t, e) {
567
+ this.create(t, "", -1, e);
568
+ }
569
+ };
570
+ var qn = {
571
+ name: "cookie",
572
+ // Deconstruct the options object and extract the lookupCookie property
573
+ lookup(t) {
574
+ let {
575
+ lookupCookie: e
576
+ } = t;
577
+ if (e && typeof document < "u")
578
+ return ft.read(e) || void 0;
579
+ },
580
+ // Deconstruct the options object and extract the lookupCookie, cookieMinutes, cookieDomain, and cookieOptions properties
581
+ cacheUserLanguage(t, e) {
582
+ let {
583
+ lookupCookie: n,
584
+ cookieMinutes: o,
585
+ cookieDomain: r,
586
+ cookieOptions: s
587
+ } = e;
588
+ n && typeof document < "u" && ft.create(n, t, o, r, s);
589
+ }
590
+ }, Vn = {
591
+ name: "querystring",
592
+ // Deconstruct the options object and extract the lookupQuerystring property
593
+ lookup(t) {
594
+ let {
595
+ lookupQuerystring: e
596
+ } = t, n;
597
+ if (typeof window < "u") {
598
+ let {
599
+ search: o
600
+ } = window.location;
601
+ !window.location.search && window.location.hash?.indexOf("?") > -1 && (o = window.location.hash.substring(window.location.hash.indexOf("?")));
602
+ const s = o.substring(1).split("&");
603
+ for (let i = 0; i < s.length; i++) {
604
+ const l = s[i].indexOf("=");
605
+ l > 0 && s[i].substring(0, l) === e && (n = s[i].substring(l + 1));
606
+ }
607
+ }
608
+ return n;
609
+ }
610
+ }, Gn = {
611
+ name: "hash",
612
+ // Deconstruct the options object and extract the lookupHash property and the lookupFromHashIndex property
613
+ lookup(t) {
614
+ let {
615
+ lookupHash: e,
616
+ lookupFromHashIndex: n
617
+ } = t, o;
618
+ if (typeof window < "u") {
619
+ const {
620
+ hash: r
621
+ } = window.location;
622
+ if (r && r.length > 2) {
623
+ const s = r.substring(1);
624
+ if (e) {
625
+ const i = s.split("&");
626
+ for (let l = 0; l < i.length; l++) {
627
+ const c = i[l].indexOf("=");
628
+ c > 0 && i[l].substring(0, c) === e && (o = i[l].substring(c + 1));
629
+ }
630
+ }
631
+ if (o) return o;
632
+ if (!o && n > -1) {
633
+ const i = r.match(/\/([a-zA-Z-]*)/g);
634
+ return Array.isArray(i) ? i[typeof n == "number" ? n : 0]?.replace("/", "") : void 0;
635
+ }
636
+ }
637
+ }
638
+ return o;
639
+ }
640
+ };
641
+ let re = null;
642
+ const mt = () => {
643
+ if (re !== null) return re;
644
+ try {
645
+ if (re = typeof window < "u" && window.localStorage !== null, !re)
646
+ return !1;
647
+ const t = "i18next.translate.boo";
648
+ window.localStorage.setItem(t, "foo"), window.localStorage.removeItem(t);
649
+ } catch {
650
+ re = !1;
651
+ }
652
+ return re;
653
+ };
654
+ var Kn = {
655
+ name: "localStorage",
656
+ // Deconstruct the options object and extract the lookupLocalStorage property
657
+ lookup(t) {
658
+ let {
659
+ lookupLocalStorage: e
660
+ } = t;
661
+ if (e && mt())
662
+ return window.localStorage.getItem(e) || void 0;
663
+ },
664
+ // Deconstruct the options object and extract the lookupLocalStorage property
665
+ cacheUserLanguage(t, e) {
666
+ let {
667
+ lookupLocalStorage: n
668
+ } = e;
669
+ n && mt() && window.localStorage.setItem(n, t);
670
+ }
671
+ };
672
+ let se = null;
673
+ const ht = () => {
674
+ if (se !== null) return se;
675
+ try {
676
+ if (se = typeof window < "u" && window.sessionStorage !== null, !se)
677
+ return !1;
678
+ const t = "i18next.translate.boo";
679
+ window.sessionStorage.setItem(t, "foo"), window.sessionStorage.removeItem(t);
680
+ } catch {
681
+ se = !1;
682
+ }
683
+ return se;
684
+ };
685
+ var Qn = {
686
+ name: "sessionStorage",
687
+ lookup(t) {
688
+ let {
689
+ lookupSessionStorage: e
690
+ } = t;
691
+ if (e && ht())
692
+ return window.sessionStorage.getItem(e) || void 0;
693
+ },
694
+ cacheUserLanguage(t, e) {
695
+ let {
696
+ lookupSessionStorage: n
697
+ } = e;
698
+ n && ht() && window.sessionStorage.setItem(n, t);
699
+ }
700
+ }, Xn = {
701
+ name: "navigator",
702
+ lookup(t) {
703
+ const e = [];
704
+ if (typeof navigator < "u") {
705
+ const {
706
+ languages: n,
707
+ userLanguage: o,
708
+ language: r
709
+ } = navigator;
710
+ if (n)
711
+ for (let s = 0; s < n.length; s++)
712
+ e.push(n[s]);
713
+ o && e.push(o), r && e.push(r);
714
+ }
715
+ return e.length > 0 ? e : void 0;
716
+ }
717
+ }, Zn = {
718
+ name: "htmlTag",
719
+ // Deconstruct the options object and extract the htmlTag property
720
+ lookup(t) {
721
+ let {
722
+ htmlTag: e
723
+ } = t, n;
724
+ const o = e || (typeof document < "u" ? document.documentElement : null);
725
+ return o && typeof o.getAttribute == "function" && (n = o.getAttribute("lang")), n;
726
+ }
727
+ }, Jn = {
728
+ name: "path",
729
+ // Deconstruct the options object and extract the lookupFromPathIndex property
730
+ lookup(t) {
731
+ let {
732
+ lookupFromPathIndex: e
733
+ } = t;
734
+ if (typeof window > "u") return;
735
+ const n = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
736
+ return Array.isArray(n) ? n[typeof e == "number" ? e : 0]?.replace("/", "") : void 0;
737
+ }
738
+ }, eo = {
739
+ name: "subdomain",
740
+ lookup(t) {
741
+ let {
742
+ lookupFromSubdomainIndex: e
743
+ } = t;
744
+ const n = typeof e == "number" ? e + 1 : 1, o = typeof window < "u" && window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
745
+ if (o)
746
+ return o[n];
747
+ }
748
+ };
749
+ let Tt = !1;
750
+ try {
751
+ document.cookie, Tt = !0;
752
+ } catch {
753
+ }
754
+ const bt = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
755
+ Tt || bt.splice(1, 1);
756
+ const to = () => ({
757
+ order: bt,
758
+ lookupQuerystring: "lng",
759
+ lookupCookie: "i18next",
760
+ lookupLocalStorage: "i18nextLng",
761
+ lookupSessionStorage: "i18nextLng",
762
+ // cache user language
763
+ caches: ["localStorage"],
764
+ excludeCacheFor: ["cimode"],
765
+ // cookieMinutes: 10,
766
+ // cookieDomain: 'myDomain'
767
+ convertDetectedLanguage: (t) => t
768
+ });
769
+ class wt {
770
+ constructor(e) {
771
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
772
+ this.type = "languageDetector", this.detectors = {}, this.init(e, n);
773
+ }
774
+ init() {
775
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
776
+ languageUtils: {}
777
+ }, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
778
+ this.services = e, this.options = Wn(n, this.options || {}, to()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (r) => r.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = o, this.addDetector(qn), this.addDetector(Vn), this.addDetector(Kn), this.addDetector(Qn), this.addDetector(Xn), this.addDetector(Zn), this.addDetector(Jn), this.addDetector(eo), this.addDetector(Gn);
779
+ }
780
+ addDetector(e) {
781
+ return this.detectors[e.name] = e, this;
782
+ }
783
+ detect() {
784
+ let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.options.order, n = [];
785
+ return e.forEach((o) => {
786
+ if (this.detectors[o]) {
787
+ let r = this.detectors[o].lookup(this.options);
788
+ r && typeof r == "string" && (r = [r]), r && (n = n.concat(r));
789
+ }
790
+ }), n = n.filter((o) => o != null && !Rn(o)).map((o) => this.options.convertDetectedLanguage(o)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? n : n.length > 0 ? n[0] : null;
791
+ }
792
+ cacheUserLanguage(e) {
793
+ let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
794
+ n && (this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(e) > -1 || n.forEach((o) => {
795
+ this.detectors[o] && this.detectors[o].cacheUserLanguage(e, this.options);
796
+ }));
797
+ }
798
+ }
799
+ wt.type = "languageDetector";
800
+ const no = {
801
+ type: "3rdParty",
802
+ init(t) {
803
+ Vt(t.options.react), Gt(t);
804
+ }
805
+ };
806
+ function oo({
1137
807
  children: t
1138
808
  }) {
1139
- const [e, r] = ce([]), o = or(), s = dt(0), a = dt(/* @__PURE__ */ new WeakMap()), n = tt(function(h, v, g = {}) {
809
+ const [e, n] = q([]), o = Rt(), r = ot(0), s = ot(/* @__PURE__ */ new WeakMap()), i = Ve(function(m, h, f = {}) {
1140
810
  const {
1141
- onClose: b = async () => {
811
+ onClose: p = async () => {
1142
812
  }
1143
- } = g;
1144
- let T;
1145
- const E = new Promise((x) => {
1146
- T = x;
1147
- }), P = `${o}-${s.current}`;
1148
- s.current += 1;
1149
- const A = {
1150
- key: P,
813
+ } = f;
814
+ let g;
815
+ const x = new Promise((y) => {
816
+ g = y;
817
+ }), w = `${o}-${r.current}`;
818
+ r.current += 1;
819
+ const S = {
820
+ key: w,
1151
821
  open: !0,
1152
- promise: E,
1153
- Component: h,
1154
- payload: v,
1155
- onClose: b,
1156
- resolve: T
822
+ promise: x,
823
+ Component: m,
824
+ payload: h,
825
+ onClose: p,
826
+ resolve: g
1157
827
  };
1158
- return a.current.set(E, A), r((x) => [...x, A]), E;
1159
- }), l = (u) => {
1160
- r((h) => h.filter((v) => v.promise !== u)), a.current.delete(u);
1161
- }, f = tt(function(h) {
1162
- r((v) => v.map((g) => g.promise === h ? {
1163
- ...g,
828
+ return s.current.set(x, S), n((y) => [...y, S]), x;
829
+ }), l = (d) => {
830
+ n((m) => m.filter((h) => h.promise !== d)), s.current.delete(d);
831
+ }, c = Ve(function(m) {
832
+ n((h) => h.map((f) => f.promise === m ? {
833
+ ...f,
1164
834
  open: !1
1165
- } : g)), setTimeout(() => l(h), 1e3);
1166
- }), d = tt(async function(h, v) {
1167
- const g = a.current.get(h);
1168
- if (!g)
835
+ } : f)), setTimeout(() => l(m), 1e3);
836
+ }), u = Ve(async function(m, h) {
837
+ const f = s.current.get(m);
838
+ if (!f)
1169
839
  throw new Error("Dialog not found in stack");
1170
840
  try {
1171
- await g.onClose(v);
841
+ await f.onClose(h);
1172
842
  } finally {
1173
- g.resolve(v), f(h);
843
+ f.resolve(h), c(m);
1174
844
  }
1175
- return h;
845
+ return m;
1176
846
  });
1177
- return /* @__PURE__ */ q(lr.Provider, { value: {
1178
- open: n,
1179
- close: d
847
+ return /* @__PURE__ */ D(Kt.Provider, { value: {
848
+ open: i,
849
+ close: u
1180
850
  }, children: [
1181
851
  t,
1182
852
  e.map(({
1183
- key: u,
1184
- open: h,
1185
- Component: v,
1186
- payload: g,
1187
- promise: b
1188
- }) => /* @__PURE__ */ p(v, { payload: g, open: h, onClose: async (T) => {
1189
- await d(b, T);
1190
- } }, u))
853
+ key: d,
854
+ open: m,
855
+ Component: h,
856
+ payload: f,
857
+ promise: p
858
+ }) => /* @__PURE__ */ a(h, { payload: f, open: m, onClose: async (g) => {
859
+ await u(p, g);
860
+ } }, d))
1191
861
  ] });
1192
862
  }
1193
- const un = () => {
1194
- const t = ae(1);
863
+ const io = () => {
864
+ const t = R(1);
1195
865
  let e;
1196
- return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ q(Ut, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
1197
- /* @__PURE__ */ p("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
1198
- /* @__PURE__ */ p(Ft, { variant: "h6", children: yr.VITE_APP_TITLE }),
1199
- !1
866
+ return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ D(Ot, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
867
+ /* @__PURE__ */ a("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
868
+ /* @__PURE__ */ a(Ct, { variant: "h6", children: on.VITE_APP_TITLE }),
869
+ /* @__PURE__ */ a(_t, { size: "small", label: "TEST", color: "info" })
1200
870
  ] }), t[0] = e) : e = t[0], e;
1201
- }, nt = 34, fn = at(Or)(({
871
+ }, Ke = 34, ro = Ze(mn)(({
1202
872
  theme: t
1203
873
  }) => ({
1204
874
  borderRadius: 8,
@@ -1219,7 +889,7 @@ const un = () => {
1219
889
  "& .MuiAvatar-root": {
1220
890
  backgroundColor: (t.vars ?? t).palette.action.active
1221
891
  }
1222
- })), dn = at(Ir)(({
892
+ })), so = Ze(Sn)(({
1223
893
  theme: t
1224
894
  }) => ({
1225
895
  borderRadius: 8,
@@ -1240,40 +910,40 @@ const un = () => {
1240
910
  "& .MuiAvatar-root": {
1241
911
  backgroundColor: (t.vars ?? t).palette.action.active
1242
912
  }
1243
- })), mn = (t) => {
1244
- const e = ae(17), {
1245
- item: r,
913
+ })), ao = (t) => {
914
+ const e = R(17), {
915
+ item: n,
1246
916
  collapsed: o
1247
917
  } = t;
1248
- if (r.icon || o) {
1249
- let s;
1250
- e[0] !== o ? (s = o ? {
918
+ if (n.icon || o) {
919
+ let r;
920
+ e[0] !== o ? (r = o ? {
1251
921
  position: "absolute",
1252
922
  left: "50%",
1253
923
  top: "calc(50% - 6px)",
1254
924
  transform: "translate(-50%, -50%)"
1255
- } : {}, e[0] = o, e[1] = s) : s = e[1];
1256
- let a;
1257
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
925
+ } : {}, e[0] = o, e[1] = r) : r = e[1];
926
+ let s;
927
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
1258
928
  display: "flex",
1259
929
  alignItems: "center",
1260
930
  justifyContent: "center",
1261
- minWidth: nt
1262
- }, e[2] = a) : a = e[2];
1263
- const n = r.icon ?? null;
931
+ minWidth: Ke
932
+ }, e[2] = s) : s = e[2];
933
+ const i = n.icon ?? null;
1264
934
  let l;
1265
- e[3] !== o || e[4] !== r.icon || e[5] !== r.title ? (l = !r.icon && o ? /* @__PURE__ */ p(Er, { sx: {
1266
- width: nt - 7,
1267
- height: nt - 7,
935
+ e[3] !== o || e[4] !== n.icon || e[5] !== n.title ? (l = !n.icon && o ? /* @__PURE__ */ a(un, { sx: {
936
+ width: Ke - 7,
937
+ height: Ke - 7,
1268
938
  fontSize: 12
1269
- }, children: r.title }) : null, e[3] = o, e[4] = r.icon, e[5] = r.title, e[6] = l) : l = e[6];
1270
- let f;
1271
- e[7] !== n || e[8] !== l ? (f = /* @__PURE__ */ q(wr, { sx: a, children: [
1272
- n,
939
+ }, children: n.title }) : null, e[3] = o, e[4] = n.icon, e[5] = n.title, e[6] = l) : l = e[6];
940
+ let c;
941
+ e[7] !== i || e[8] !== l ? (c = /* @__PURE__ */ D(hn, { sx: s, children: [
942
+ i,
1273
943
  l
1274
- ] }), e[7] = n, e[8] = l, e[9] = f) : f = e[9];
1275
- let d;
1276
- e[10] !== o || e[11] !== r.title ? (d = o ? /* @__PURE__ */ p(kr, { variant: "caption", sx: {
944
+ ] }), e[7] = i, e[8] = l, e[9] = c) : c = e[9];
945
+ let u;
946
+ e[10] !== o || e[11] !== n.title ? (u = o ? /* @__PURE__ */ a(xn, { variant: "caption", sx: {
1277
947
  position: "absolute",
1278
948
  bottom: -18,
1279
949
  left: "50%",
@@ -1284,100 +954,100 @@ const un = () => {
1284
954
  whiteSpace: "nowrap",
1285
955
  overflow: "hidden",
1286
956
  textOverflow: "ellipsis",
1287
- maxWidth: Ue - 28
1288
- }, children: r.title }) : null, e[10] = o, e[11] = r.title, e[12] = d) : d = e[12];
1289
- let u;
1290
- return e[13] !== s || e[14] !== f || e[15] !== d ? (u = /* @__PURE__ */ q(At, { sx: s, children: [
1291
- f,
1292
- d
1293
- ] }), e[13] = s, e[14] = f, e[15] = d, e[16] = u) : u = e[16], u;
957
+ maxWidth: Fe - 28
958
+ }, children: n.title }) : null, e[10] = o, e[11] = n.title, e[12] = u) : u = e[12];
959
+ let d;
960
+ return e[13] !== r || e[14] !== c || e[15] !== u ? (d = /* @__PURE__ */ D(St, { sx: r, children: [
961
+ c,
962
+ u
963
+ ] }), e[13] = r, e[14] = c, e[15] = u, e[16] = d) : d = e[16], d;
1294
964
  }
1295
965
  return null;
1296
- }, pn = (t) => {
1297
- const e = ae(10), {
1298
- open: r,
966
+ }, lo = (t) => {
967
+ const e = R(10), {
968
+ open: n,
1299
969
  anchorEl: o,
1300
- children: s
970
+ children: r
1301
971
  } = t;
1302
- let a;
1303
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
972
+ let s;
973
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = {
1304
974
  name: "offset",
1305
975
  options: {
1306
976
  offset: [6, 0]
1307
977
  }
1308
- }, e[0] = a) : a = e[0];
1309
- let n;
1310
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
978
+ }, e[0] = s) : s = e[0];
979
+ let i;
980
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = {
1311
981
  name: "preventOverflow",
1312
982
  options: {
1313
983
  padding: 8
1314
984
  }
1315
- }, e[1] = n) : n = e[1];
985
+ }, e[1] = i) : i = e[1];
1316
986
  let l;
1317
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [a, n, {
987
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [s, i, {
1318
988
  name: "flip",
1319
989
  options: {
1320
990
  fallbackPlacements: ["right-end", "left-start"]
1321
991
  }
1322
992
  }], e[2] = l) : l = e[2];
1323
- let f;
1324
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
993
+ let c;
994
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
1325
995
  pt: 0.5,
1326
996
  pb: 0.5,
1327
997
  maxHeight: "min(calc(100vh - 100px), 560px)",
1328
998
  overflowY: "auto",
1329
999
  overscrollBehavior: "contain"
1330
- }, e[3] = f) : f = e[3];
1331
- let d;
1332
- e[4] !== s ? (d = /* @__PURE__ */ p(Mr, { sx: f, children: s }), e[4] = s, e[5] = d) : d = e[5];
1000
+ }, e[3] = c) : c = e[3];
1333
1001
  let u;
1334
- return e[6] !== o || e[7] !== r || e[8] !== d ? (u = /* @__PURE__ */ p(Pr, { open: r, anchorEl: o, placement: "right-start", modifiers: l, children: d }), e[6] = o, e[7] = r, e[8] = d, e[9] = u) : u = e[9], u;
1335
- }, hn = (t) => {
1336
- const e = ae(57), {
1337
- item: r,
1002
+ e[4] !== r ? (u = /* @__PURE__ */ a(gn, { sx: c, children: r }), e[4] = r, e[5] = u) : u = e[5];
1003
+ let d;
1004
+ return e[6] !== o || e[7] !== n || e[8] !== u ? (d = /* @__PURE__ */ a(yn, { open: n, anchorEl: o, placement: "right-start", modifiers: l, children: u }), e[6] = o, e[7] = n, e[8] = u, e[9] = d) : d = e[9], d;
1005
+ }, co = (t) => {
1006
+ const e = R(57), {
1007
+ item: n,
1338
1008
  isOpen: o,
1339
- selected: s,
1340
- disabled: a,
1341
- collapsed: n,
1009
+ selected: r,
1010
+ disabled: s,
1011
+ collapsed: i,
1342
1012
  isSidebarFullyExpanded: l,
1343
- isSidebarFullyCollapsed: f,
1344
- onClick: d,
1345
- renderNested: u,
1346
- onClose: h
1347
- } = t, v = l === void 0 ? !0 : l, [g, b] = ce(null), [T, E] = ce(null);
1348
- let P;
1349
- e[0] !== n || e[1] !== o || e[2] !== f || e[3] !== v || e[4] !== r.children ? (P = () => n && f && r.children ? {
1013
+ isSidebarFullyCollapsed: c,
1014
+ onClick: u,
1015
+ renderNested: d,
1016
+ onClose: m
1017
+ } = t, h = l === void 0 ? !0 : l, [f, p] = q(null), [g, x] = q(null);
1018
+ let w;
1019
+ e[0] !== i || e[1] !== o || e[2] !== c || e[3] !== h || e[4] !== n.children ? (w = () => i && c && n.children ? {
1350
1020
  fontSize: 18,
1351
1021
  position: "absolute",
1352
1022
  top: "41.5%",
1353
1023
  right: "2px",
1354
1024
  transform: "translateY(-50%) rotate(-90deg)"
1355
- } : !n && v && r.children ? {
1025
+ } : !i && h && n.children ? {
1356
1026
  ml: 0.5,
1357
1027
  transform: `rotate(${o ? 0 : -90}deg)`
1358
1028
  } : {
1359
1029
  display: "none"
1360
- }, e[0] = n, e[1] = o, e[2] = f, e[3] = v, e[4] = r.children, e[5] = P) : P = e[5];
1361
- const A = P, x = r.children && !n, _ = n ? 60 : 48;
1362
- let c;
1363
- e[6] !== _ ? (c = {
1030
+ }, e[0] = i, e[1] = o, e[2] = c, e[3] = h, e[4] = n.children, e[5] = w) : w = e[5];
1031
+ const S = w, y = n.children && !i, k = i ? 60 : 48;
1032
+ let T;
1033
+ e[6] !== k ? (T = {
1364
1034
  px: 1.4,
1365
- height: _
1366
- }, e[6] = _, e[7] = c) : c = e[7];
1367
- let j;
1368
- e[8] !== a || e[9] !== s || e[10] !== c ? (j = {
1369
- selected: s,
1370
- disabled: a,
1371
- sx: c
1372
- }, e[8] = a, e[9] = s, e[10] = c, e[11] = j) : j = e[11];
1373
- const J = j;
1374
- let B;
1375
- e[12] !== n || e[13] !== r ? (B = /* @__PURE__ */ p(mn, { item: r, collapsed: n }), e[12] = n, e[13] = r, e[14] = B) : B = e[14];
1376
- let N;
1377
- e[15] !== n || e[16] !== r.title ? (N = !n && /* @__PURE__ */ p(Cr, { primary: r.title, slotProps: {
1035
+ height: k
1036
+ }, e[6] = k, e[7] = T) : T = e[7];
1037
+ let v;
1038
+ e[8] !== s || e[9] !== r || e[10] !== T ? (v = {
1039
+ selected: r,
1040
+ disabled: s,
1041
+ sx: T
1042
+ }, e[8] = s, e[9] = r, e[10] = T, e[11] = v) : v = e[11];
1043
+ const z = v;
1044
+ let I;
1045
+ e[12] !== i || e[13] !== n ? (I = /* @__PURE__ */ a(ao, { item: n, collapsed: i }), e[12] = i, e[13] = n, e[14] = I) : I = e[14];
1046
+ let L;
1047
+ e[15] !== i || e[16] !== n.title ? (L = !i && /* @__PURE__ */ a(pn, { primary: n.title, slotProps: {
1378
1048
  primary: {
1379
1049
  noWrap: !0,
1380
- title: r.title
1050
+ title: n.title
1381
1051
  }
1382
1052
  }, sx: {
1383
1053
  ml: 1.2,
@@ -1388,384 +1058,384 @@ const un = () => {
1388
1058
  overflow: "hidden",
1389
1059
  textOverflow: "ellipsis"
1390
1060
  }
1391
- } }), e[15] = n, e[16] = r.title, e[17] = N) : N = e[17];
1392
- let W;
1393
- e[18] !== A || e[19] !== r.children ? (W = r.children ? /* @__PURE__ */ p(Sr, { sx: A }) : null, e[18] = A, e[19] = r.children, e[20] = W) : W = e[20];
1394
- let K;
1395
- e[21] !== B || e[22] !== N || e[23] !== W ? (K = /* @__PURE__ */ q(Wt, { children: [
1396
- B,
1397
- N,
1398
- W
1399
- ] }), e[21] = B, e[22] = N, e[23] = W, e[24] = K) : K = e[24];
1400
- const ee = K;
1401
- let Z;
1402
- e[25] !== n || e[26] !== r.children || e[27] !== r.title ? (Z = r.children && n ? {
1403
- onMouseEnter: (y) => {
1404
- E(y.currentTarget), b(r.title);
1061
+ } }), e[15] = i, e[16] = n.title, e[17] = L) : L = e[17];
1062
+ let M;
1063
+ e[18] !== S || e[19] !== n.children ? (M = n.children ? /* @__PURE__ */ a(dn, { sx: S }) : null, e[18] = S, e[19] = n.children, e[20] = M) : M = e[20];
1064
+ let P;
1065
+ e[21] !== I || e[22] !== L || e[23] !== M ? (P = /* @__PURE__ */ D(Mt, { children: [
1066
+ I,
1067
+ L,
1068
+ M
1069
+ ] }), e[21] = I, e[22] = L, e[23] = M, e[24] = P) : P = e[24];
1070
+ const U = P;
1071
+ let $;
1072
+ e[25] !== i || e[26] !== n.children || e[27] !== n.title ? ($ = n.children && i ? {
1073
+ onMouseEnter: (H) => {
1074
+ x(H.currentTarget), p(n.title);
1405
1075
  },
1406
1076
  onMouseLeave: () => {
1407
- b(null);
1077
+ p(null);
1408
1078
  }
1409
- } : {}, e[25] = n, e[26] = r.children, e[27] = r.title, e[28] = Z) : Z = e[28];
1410
- let U;
1411
- e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (U = {
1079
+ } : {}, e[25] = i, e[26] = n.children, e[27] = n.title, e[28] = $) : $ = e[28];
1080
+ let A;
1081
+ e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = {
1412
1082
  py: 0,
1413
1083
  px: 1,
1414
1084
  overflowX: "hidden"
1415
- }, e[29] = U) : U = e[29];
1085
+ }, e[29] = A) : A = e[29];
1086
+ let _;
1087
+ e[30] !== U || e[31] !== z || e[32] !== n || e[33] !== u || e[34] !== m || e[35] !== y ? (_ = y ? /* @__PURE__ */ a(ro, { ...z, onClick: () => u?.(n), children: U }) : /* @__PURE__ */ a(so, { ...z, to: n.to, href: n.href, params: n.params, search: n.search, onClick: m, children: U }), e[30] = U, e[31] = z, e[32] = n, e[33] = u, e[34] = m, e[35] = y, e[36] = _) : _ = e[36];
1088
+ let O;
1089
+ e[37] !== g || e[38] !== i || e[39] !== f || e[40] !== n.children || e[41] !== n.title || e[42] !== d ? (O = n.children && i ? /* @__PURE__ */ a(lo, { open: n.title === f, anchorEl: g, children: d?.(n.children) }) : null, e[37] = g, e[38] = i, e[39] = f, e[40] = n.children, e[41] = n.title, e[42] = d, e[43] = O) : O = e[43];
1416
1090
  let F;
1417
- e[30] !== ee || e[31] !== J || e[32] !== r || e[33] !== d || e[34] !== h || e[35] !== x ? (F = x ? /* @__PURE__ */ p(fn, { ...J, onClick: () => d?.(r), children: ee }) : /* @__PURE__ */ p(dn, { ...J, to: r.to, href: r.href, params: r.params, search: r.search, onClick: h, children: ee }), e[30] = ee, e[31] = J, e[32] = r, e[33] = d, e[34] = h, e[35] = x, e[36] = F) : F = e[36];
1418
- let R;
1419
- e[37] !== T || e[38] !== n || e[39] !== g || e[40] !== r.children || e[41] !== r.title || e[42] !== u ? (R = r.children && n ? /* @__PURE__ */ p(pn, { open: r.title === g, anchorEl: T, children: u?.(r.children) }) : null, e[37] = T, e[38] = n, e[39] = g, e[40] = r.children, e[41] = r.title, e[42] = u, e[43] = R) : R = e[43];
1420
- let H;
1421
- e[44] !== Z || e[45] !== F || e[46] !== R ? (H = /* @__PURE__ */ q(_r, { ...Z, sx: U, children: [
1422
- F,
1423
- R
1424
- ] }), e[44] = Z, e[45] = F, e[46] = R, e[47] = H) : H = e[47];
1425
- const te = H;
1426
- let V;
1427
- e[48] !== n || e[49] !== o || e[50] !== r.children || e[51] !== u ? (V = r.children && !n ? /* @__PURE__ */ p(qt, { in: o, timeout: "auto", unmountOnExit: !0, children: u?.(r.children) }) : null, e[48] = n, e[49] = o, e[50] = r.children, e[51] = u, e[52] = V) : V = e[52];
1428
- let i;
1429
- return e[53] !== r.to || e[54] !== te || e[55] !== V ? (i = /* @__PURE__ */ q(qe, { children: [
1430
- te,
1431
- V
1432
- ] }, r.to), e[53] = r.to, e[54] = te, e[55] = V, e[56] = i) : i = e[56], i;
1433
- }, yn = (t) => !("kind" in t), gn = (t) => "kind" in t && t.kind === "divider", it = (t) => "kind" in t && t.kind === "header", $t = (t) => {
1434
- const e = ae(31), {
1435
- subNavigation: r,
1091
+ e[44] !== $ || e[45] !== _ || e[46] !== O ? (F = /* @__PURE__ */ D(fn, { ...$, sx: A, children: [
1092
+ _,
1093
+ O
1094
+ ] }), e[44] = $, e[45] = _, e[46] = O, e[47] = F) : F = e[47];
1095
+ const B = F;
1096
+ let E;
1097
+ e[48] !== i || e[49] !== o || e[50] !== n.children || e[51] !== d ? (E = n.children && !i ? /* @__PURE__ */ a(It, { in: o, timeout: "auto", unmountOnExit: !0, children: d?.(n.children) }) : null, e[48] = i, e[49] = o, e[50] = n.children, e[51] = d, e[52] = E) : E = e[52];
1098
+ let N;
1099
+ return e[53] !== n.to || e[54] !== B || e[55] !== E ? (N = /* @__PURE__ */ D(Be, { children: [
1100
+ B,
1101
+ E
1102
+ ] }, n.to), e[53] = n.to, e[54] = B, e[55] = E, e[56] = N) : N = e[56], N;
1103
+ }, uo = (t) => !("kind" in t), fo = (t) => "kind" in t && t.kind === "divider", Xe = (t) => "kind" in t && t.kind === "header", kt = (t) => {
1104
+ const e = R(31), {
1105
+ subNavigation: n,
1436
1106
  depth: o,
1437
- collapsed: s,
1438
- isPopover: a,
1439
- isSidebarFullyExpanded: n,
1107
+ collapsed: r,
1108
+ isPopover: s,
1109
+ isSidebarFullyExpanded: i,
1440
1110
  isSidebarFullyCollapsed: l,
1441
- expandedWidth: f,
1442
- renderItem: d,
1443
- activePath: u,
1444
- onNavigate: h,
1445
- onClose: v
1446
- } = t, g = o === void 0 ? 0 : o, b = n === void 0 ? !0 : n;
1447
- let T;
1448
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = [], e[0] = T) : T = e[0];
1449
- const [E, P] = ce(T);
1450
- let A, x;
1451
- e[1] !== s ? (A = () => {
1452
- s && P([]);
1453
- }, x = [s], e[1] = s, e[2] = A, e[3] = x) : (A = e[2], x = e[3]), Lt(A, x);
1454
- let _;
1455
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (N) => P((W) => W.includes(N) ? W.filter((K) => K !== N) : [...W, N]), e[4] = _) : _ = e[4];
1456
- const c = _;
1457
- let j;
1458
- e[5] !== u || e[6] !== s || e[7] !== g || e[8] !== f || e[9] !== v || e[10] !== h ? (j = (N) => /* @__PURE__ */ p($t, { subNavigation: N, depth: g + 1, isPopover: s, expandedWidth: f, activePath: u, onNavigate: h, onClose: v }), e[5] = u, e[6] = s, e[7] = g, e[8] = f, e[9] = v, e[10] = h, e[11] = j) : j = e[11];
1459
- const J = j;
1460
- let B;
1461
- if (e[12] !== u || e[13] !== s || e[14] !== g || e[15] !== f || e[16] !== a || e[17] !== l || e[18] !== b || e[19] !== v || e[20] !== E || e[21] !== d || e[22] !== J || e[23] !== r) {
1462
- const N = r.filter(vn), W = a && g === 1 ? 0.5 : 0, K = g === 0 && !a ? 4 : 0.5, ee = (a ? 1 : 2) * (a ? g - 1 : g), Z = a && g === 1 ? Ne : "auto", U = s ? Ue : "auto";
1463
- let F;
1464
- e[25] !== K || e[26] !== ee || e[27] !== Z || e[28] !== U || e[29] !== W ? (F = {
1111
+ expandedWidth: c,
1112
+ renderItem: u,
1113
+ activePath: d,
1114
+ onNavigate: m,
1115
+ onClose: h
1116
+ } = t, f = o === void 0 ? 0 : o, p = i === void 0 ? !0 : i;
1117
+ let g;
1118
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = [], e[0] = g) : g = e[0];
1119
+ const [x, w] = q(g);
1120
+ let S, y;
1121
+ e[1] !== r ? (S = () => {
1122
+ r && w([]);
1123
+ }, y = [r], e[1] = r, e[2] = S, e[3] = y) : (S = e[2], y = e[3]), xt(S, y);
1124
+ let k;
1125
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = (L) => w((M) => M.includes(L) ? M.filter((P) => P !== L) : [...M, L]), e[4] = k) : k = e[4];
1126
+ const T = k;
1127
+ let v;
1128
+ e[5] !== d || e[6] !== r || e[7] !== f || e[8] !== c || e[9] !== h || e[10] !== m ? (v = (L) => /* @__PURE__ */ a(kt, { subNavigation: L, depth: f + 1, isPopover: r, expandedWidth: c, activePath: d, onNavigate: m, onClose: h }), e[5] = d, e[6] = r, e[7] = f, e[8] = c, e[9] = h, e[10] = m, e[11] = v) : v = e[11];
1129
+ const z = v;
1130
+ let I;
1131
+ if (e[12] !== d || e[13] !== r || e[14] !== f || e[15] !== c || e[16] !== s || e[17] !== l || e[18] !== p || e[19] !== h || e[20] !== x || e[21] !== u || e[22] !== z || e[23] !== n) {
1132
+ const L = n.filter(mo), M = s && f === 1 ? 0.5 : 0, P = f === 0 && !s ? 4 : 0.5, U = (s ? 1 : 2) * (s ? f - 1 : f), $ = s && f === 1 ? je : "auto", A = r ? Fe : "auto";
1133
+ let _;
1134
+ e[25] !== P || e[26] !== U || e[27] !== $ || e[28] !== A || e[29] !== M ? (_ = {
1465
1135
  padding: 0,
1466
- mt: W,
1467
- mb: K,
1468
- pl: ee,
1469
- minWidth: Z,
1470
- width: U
1471
- }, e[25] = K, e[26] = ee, e[27] = Z, e[28] = U, e[29] = W, e[30] = F) : F = e[30], B = /* @__PURE__ */ p(br, { sx: F, children: N.map((R, H) => {
1472
- if (it(R))
1473
- return /* @__PURE__ */ p(xr, { sx: {
1136
+ mt: M,
1137
+ mb: P,
1138
+ pl: U,
1139
+ minWidth: $,
1140
+ width: A
1141
+ }, e[25] = P, e[26] = U, e[27] = $, e[28] = A, e[29] = M, e[30] = _) : _ = e[30], I = /* @__PURE__ */ a(ln, { sx: _, children: L.map((O, F) => {
1142
+ if (Xe(O))
1143
+ return /* @__PURE__ */ a(cn, { sx: {
1474
1144
  fontSize: 12,
1475
1145
  fontWeight: "700",
1476
- height: s ? 0 : 40,
1146
+ height: r ? 0 : 40,
1477
1147
  px: 2,
1478
- minWidth: f,
1148
+ minWidth: c,
1479
1149
  overflow: "hidden",
1480
1150
  textOverflow: "ellipsis",
1481
1151
  whiteSpace: "nowrap",
1482
1152
  zIndex: 2,
1483
1153
  bgcolor: "transparent",
1484
1154
  position: "static"
1485
- }, children: R.title }, `subheader-${g}-${H}`);
1486
- if (gn(R)) {
1487
- const i = N[H + 1];
1488
- return /* @__PURE__ */ p("li", { children: /* @__PURE__ */ p(Tr, { sx: {
1155
+ }, children: O.title }, `subheader-${f}-${F}`);
1156
+ if (fo(O)) {
1157
+ const N = L[F + 1];
1158
+ return /* @__PURE__ */ a("li", { children: /* @__PURE__ */ a(an, { sx: {
1489
1159
  mx: 1,
1490
1160
  mt: 1,
1491
- mb: it(i) && !s ? 0 : 1
1492
- } }) }, `divider-${g}-${H}`);
1161
+ mb: Xe(N) && !r ? 0 : 1
1162
+ } }) }, `divider-${f}-${F}`);
1493
1163
  }
1494
- if (!yn(R))
1164
+ if (!uo(O))
1495
1165
  return null;
1496
- const te = `item-${g}-${H}`, V = `${g}-${H}-${R.title}`;
1497
- return d ? /* @__PURE__ */ p(qe, { children: d(R, {
1498
- collapsed: !!s
1499
- }) }, te) : /* @__PURE__ */ p(hn, { item: R, isOpen: E.includes(V), selected: u === R.to, collapsed: s, isSidebarFullyExpanded: b, isSidebarFullyCollapsed: l, onClick: R.children && !s ? () => c(V) : void 0, renderNested: J, onClose: v }, te);
1500
- }) }), e[12] = u, e[13] = s, e[14] = g, e[15] = f, e[16] = a, e[17] = l, e[18] = b, e[19] = v, e[20] = E, e[21] = d, e[22] = J, e[23] = r, e[24] = B;
1166
+ const B = `item-${f}-${F}`, E = `${f}-${F}-${O.title}`;
1167
+ return u ? /* @__PURE__ */ a(Be, { children: u(O, {
1168
+ collapsed: !!r
1169
+ }) }, B) : /* @__PURE__ */ a(co, { item: O, isOpen: x.includes(E), selected: d === O.to, collapsed: r, isSidebarFullyExpanded: p, isSidebarFullyCollapsed: l, onClick: O.children && !r ? () => T(E) : void 0, renderNested: z, onClose: h }, B);
1170
+ }) }), e[12] = d, e[13] = r, e[14] = f, e[15] = c, e[16] = s, e[17] = l, e[18] = p, e[19] = h, e[20] = x, e[21] = u, e[22] = z, e[23] = n, e[24] = I;
1501
1171
  } else
1502
- B = e[24];
1503
- return B;
1172
+ I = e[24];
1173
+ return I;
1504
1174
  };
1505
- function vn(t) {
1175
+ function mo(t) {
1506
1176
  return !t.hidden;
1507
1177
  }
1508
- const Ue = 84, Ne = 320, kt = 64, Tn = (t) => {
1509
- const e = ae(29), {
1510
- navigation: r,
1178
+ const Fe = 84, je = 320, pt = 64, ho = (t) => {
1179
+ const e = R(29), {
1180
+ navigation: n,
1511
1181
  expanded: o,
1512
- setExpanded: s
1513
- } = t, a = gr(), n = vr(), l = mr();
1514
- let f;
1515
- e[0] !== l.breakpoints ? (f = l.breakpoints.up("sm"), e[0] = l.breakpoints, e[1] = f) : f = e[1];
1516
- const d = Bt(f);
1517
- let u;
1518
- e[2] !== o || e[3] !== a || e[4] !== r || e[5] !== n.location.pathname || e[6] !== s || e[7] !== d ? (u = (E) => /* @__PURE__ */ p(At, { component: "nav", sx: {
1182
+ setExpanded: r
1183
+ } = t, s = rn(), i = sn(), l = en();
1184
+ let c;
1185
+ e[0] !== l.breakpoints ? (c = l.breakpoints.up("sm"), e[0] = l.breakpoints, e[1] = c) : c = e[1];
1186
+ const u = Et(c);
1187
+ let d;
1188
+ e[2] !== o || e[3] !== s || e[4] !== n || e[5] !== i.location.pathname || e[6] !== r || e[7] !== u ? (d = (x) => /* @__PURE__ */ a(St, { component: "nav", sx: {
1519
1189
  height: "100%",
1520
1190
  display: "flex",
1521
1191
  flexDirection: "column",
1522
1192
  justifyContent: "space-between",
1523
1193
  overflow: "auto",
1524
- scrollbarGutter: E ? "stable" : "auto",
1194
+ scrollbarGutter: x ? "stable" : "auto",
1525
1195
  overflowX: "hidden",
1526
- pt: r[0] && it(r[0]) && !E ? 0 : 2
1527
- }, children: /* @__PURE__ */ p($t, { subNavigation: r, collapsed: E, isSidebarFullyExpanded: o, isSidebarFullyCollapsed: !o, expandedWidth: Ne, activePath: n.location.pathname, onNavigate: a, onClose: d ? void 0 : () => s(!1) }) }), e[2] = o, e[3] = a, e[4] = r, e[5] = n.location.pathname, e[6] = s, e[7] = d, e[8] = u) : u = e[8];
1528
- const h = u;
1529
- if (d) {
1530
- const E = o ? Ne : Ue, P = o ? Ne : Ue;
1531
- let A;
1532
- e[9] !== P ? (A = {
1196
+ pt: n[0] && Xe(n[0]) && !x ? 0 : 2
1197
+ }, children: /* @__PURE__ */ a(kt, { subNavigation: n, collapsed: x, isSidebarFullyExpanded: o, isSidebarFullyCollapsed: !o, expandedWidth: je, activePath: i.location.pathname, onNavigate: s, onClose: u ? void 0 : () => r(!1) }) }), e[2] = o, e[3] = s, e[4] = n, e[5] = i.location.pathname, e[6] = r, e[7] = u, e[8] = d) : d = e[8];
1198
+ const m = d;
1199
+ if (u) {
1200
+ const x = o ? je : Fe, w = o ? je : Fe;
1201
+ let S;
1202
+ e[9] !== w ? (S = {
1533
1203
  position: "absolute",
1534
- top: `${kt}px`,
1535
- height: `calc(100% - ${kt}px)`,
1536
- width: P,
1204
+ top: `${pt}px`,
1205
+ height: `calc(100% - ${pt}px)`,
1206
+ width: w,
1537
1207
  borderTop: "1px solid",
1538
1208
  borderColor: "var(--mui-palette-divider)"
1539
- }, e[9] = P, e[10] = A) : A = e[10];
1540
- let x;
1541
- e[11] !== E || e[12] !== A ? (x = {
1542
- width: E,
1543
- "& .MuiDrawer-paper": A
1544
- }, e[11] = E, e[12] = A, e[13] = x) : x = e[13];
1545
- const _ = !o;
1546
- let c;
1547
- e[14] !== h || e[15] !== _ ? (c = h(_), e[14] = h, e[15] = _, e[16] = c) : c = e[16];
1548
- let j;
1549
- return e[17] !== x || e[18] !== c ? (j = /* @__PURE__ */ p(pt, { variant: "permanent", sx: x, children: c }), e[17] = x, e[18] = c, e[19] = j) : j = e[19], j;
1209
+ }, e[9] = w, e[10] = S) : S = e[10];
1210
+ let y;
1211
+ e[11] !== x || e[12] !== S ? (y = {
1212
+ width: x,
1213
+ "& .MuiDrawer-paper": S
1214
+ }, e[11] = x, e[12] = S, e[13] = y) : y = e[13];
1215
+ const k = !o;
1216
+ let T;
1217
+ e[14] !== m || e[15] !== k ? (T = m(k), e[14] = m, e[15] = k, e[16] = T) : T = e[16];
1218
+ let v;
1219
+ return e[17] !== y || e[18] !== T ? (v = /* @__PURE__ */ a(rt, { variant: "permanent", sx: y, children: T }), e[17] = y, e[18] = T, e[19] = v) : v = e[19], v;
1550
1220
  }
1551
- let v;
1552
- e[20] !== s ? (v = () => s(!1), e[20] = s, e[21] = v) : v = e[21];
1553
- const g = !o;
1554
- let b;
1555
- e[22] !== h || e[23] !== g ? (b = h(g), e[22] = h, e[23] = g, e[24] = b) : b = e[24];
1556
- let T;
1557
- return e[25] !== o || e[26] !== v || e[27] !== b ? (T = /* @__PURE__ */ p(pt, { open: o, onClose: v, children: b }), e[25] = o, e[26] = v, e[27] = b, e[28] = T) : T = e[28], T;
1558
- }, Lo = Fe().inputValidator(ge.object({
1559
- redirectUri: ge.string()
1221
+ let h;
1222
+ e[20] !== r ? (h = () => r(!1), e[20] = r, e[21] = h) : h = e[21];
1223
+ const f = !o;
1224
+ let p;
1225
+ e[22] !== m || e[23] !== f ? (p = m(f), e[22] = m, e[23] = f, e[24] = p) : p = e[24];
1226
+ let g;
1227
+ return e[25] !== o || e[26] !== h || e[27] !== p ? (g = /* @__PURE__ */ a(rt, { open: o, onClose: h, children: p }), e[25] = o, e[26] = h, e[27] = p, e[28] = g) : g = e[28], g;
1228
+ }, vi = Ye().inputValidator(le.object({
1229
+ redirectUri: le.string()
1560
1230
  })).handler(async ({
1561
1231
  data: t
1562
1232
  }) => {
1563
- const e = await Nr(t.redirectUri), r = await ct.fetchQuery({
1233
+ const e = await On(t.redirectUri), n = await et.fetchQuery({
1564
1234
  queryKey: ["graph", "me", "memberOf"],
1565
- queryFn: async () => st.request({
1235
+ queryFn: async () => Je.request({
1566
1236
  method: "GET",
1567
1237
  url: "https://graph.microsoft.com/v1.0/me/memberOf?$select=displayName",
1568
1238
  headers: {
1569
- Authorization: `Bearer ${await lt()}`
1239
+ Authorization: `Bearer ${await tt()}`
1570
1240
  }
1571
- }).then((o) => o.data.value.map((s) => s.displayName)),
1241
+ }).then((o) => o.data.value.map((r) => r.displayName)),
1572
1242
  staleTime: 1 / 0,
1573
1243
  gcTime: 1 / 0
1574
1244
  });
1575
1245
  return {
1576
1246
  ...e.user,
1577
- groups: r
1247
+ groups: n
1578
1248
  };
1579
- }), bn = Fe({
1249
+ }), po = Ye({
1580
1250
  method: "GET"
1581
- }).handler(async () => await ct.fetchQuery({
1251
+ }).handler(async () => await et.fetchQuery({
1582
1252
  queryKey: ["graph", "me"],
1583
- queryFn: async () => await st.request({
1253
+ queryFn: async () => await Je.request({
1584
1254
  method: "GET",
1585
1255
  url: "https://graph.microsoft.com/v1.0/me?$select=id,displayName,jobTitle,mail,mobilePhone",
1586
1256
  headers: {
1587
- Authorization: `Bearer ${await lt()}`
1257
+ Authorization: `Bearer ${await tt()}`
1588
1258
  }
1589
1259
  }).then((t) => t.data),
1590
1260
  staleTime: 1 / 0,
1591
1261
  gcTime: 1 / 0
1592
- })), xn = Fe({
1262
+ })), go = Ye({
1593
1263
  method: "GET"
1594
- }).handler(async () => await ct.fetchQuery({
1264
+ }).handler(async () => await et.fetchQuery({
1595
1265
  queryKey: ["graph", "me", "photo"],
1596
1266
  queryFn: async () => {
1597
- const t = await st.request({
1267
+ const t = await Je.request({
1598
1268
  method: "GET",
1599
1269
  url: "https://graph.microsoft.com/v1.0/me/photo/$value",
1600
1270
  headers: {
1601
- Authorization: `Bearer ${await lt()}`
1271
+ Authorization: `Bearer ${await tt()}`
1602
1272
  },
1603
1273
  responseType: "arraybuffer"
1604
- }), e = t.headers["content-type"] ?? "image/jpeg", r = Buffer.from(t.data).toString("base64");
1605
- return `data:${e};base64,${r}`;
1274
+ }), e = t.headers["content-type"] ?? "image/jpeg", n = Buffer.from(t.data).toString("base64");
1275
+ return `data:${e};base64,${n}`;
1606
1276
  },
1607
1277
  staleTime: 1 / 0,
1608
1278
  gcTime: 1 / 0
1609
- })), It = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), Sn = () => {
1610
- const t = ae(105), [e, r] = ce(), [o, s] = ce("settings"), a = !!e, {
1611
- t: n,
1279
+ })), gt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), yo = () => {
1280
+ const t = R(105), [e, n] = q(), [o, r] = q("settings"), s = !!e, {
1281
+ t: i,
1612
1282
  i18n: l
1613
- } = sr(), {
1614
- mode: f,
1615
- setMode: d
1616
- } = Ht();
1617
- let u, h, v, g, b, T, E;
1618
- if (t[0] !== l || t[1] !== f || t[2] !== d || t[3] !== n) {
1619
- const H = (Array.isArray(l.options.supportedLngs) ? l.options.supportedLngs : []).filter(En), te = new Intl.DisplayNames([l.language], {
1283
+ } = Qt(), {
1284
+ mode: c,
1285
+ setMode: u
1286
+ } = At();
1287
+ let d, m, h, f, p, g, x;
1288
+ if (t[0] !== l || t[1] !== c || t[2] !== u || t[3] !== i) {
1289
+ const F = (Array.isArray(l.options.supportedLngs) ? l.options.supportedLngs : []).filter(xo), B = new Intl.DisplayNames([l.language], {
1620
1290
  type: "language"
1621
1291
  });
1622
- let V;
1623
- t[11] !== n ? (V = n("Layout.Light"), t[11] = n, t[12] = V) : V = t[12];
1624
- let i;
1625
- t[13] !== V ? (i = {
1292
+ let E;
1293
+ t[11] !== i ? (E = i("Layout.Light"), t[11] = i, t[12] = E) : E = t[12];
1294
+ let N;
1295
+ t[13] !== E ? (N = {
1626
1296
  mode: "light",
1627
- icon: jr,
1628
- label: V
1629
- }, t[13] = V, t[14] = i) : i = t[14];
1630
- let y;
1631
- t[15] !== n ? (y = n("Layout.Dark"), t[15] = n, t[16] = y) : y = t[16];
1632
- let w;
1633
- t[17] !== y ? (w = {
1297
+ icon: vn,
1298
+ label: E
1299
+ }, t[13] = E, t[14] = N) : N = t[14];
1300
+ let H;
1301
+ t[15] !== i ? (H = i("Layout.Dark"), t[15] = i, t[16] = H) : H = t[16];
1302
+ let V;
1303
+ t[17] !== H ? (V = {
1634
1304
  mode: "dark",
1635
- icon: Ar,
1636
- label: y
1637
- }, t[17] = y, t[18] = w) : w = t[18];
1638
- let O;
1639
- t[19] !== n ? (O = n("Layout.System"), t[19] = n, t[20] = O) : O = t[20];
1640
- let S;
1641
- t[21] !== O ? (S = {
1305
+ icon: wn,
1306
+ label: H
1307
+ }, t[17] = H, t[18] = V) : V = t[18];
1308
+ let G;
1309
+ t[19] !== i ? (G = i("Layout.System"), t[19] = i, t[20] = G) : G = t[20];
1310
+ let K;
1311
+ t[21] !== G ? (K = {
1642
1312
  mode: "system",
1643
- icon: Yr,
1644
- label: O
1645
- }, t[21] = O, t[22] = S) : S = t[22];
1646
- let k;
1647
- t[23] !== i || t[24] !== w || t[25] !== S ? (k = [i, w, S], t[23] = i, t[24] = w, t[25] = S, t[26] = k) : k = t[26];
1648
- const C = k;
1649
- let M;
1650
- t[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = (re) => r(re.currentTarget), t[27] = M) : M = t[27], v = M;
1651
- let I;
1652
- t[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = () => {
1653
- r(void 0), setTimeout(() => s("settings"), 300);
1654
- }, t[28] = I) : I = t[28], h = I;
1655
- let L;
1656
- t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = (re) => () => s(re), t[29] = L) : L = t[29];
1657
- const D = L;
1658
- let X;
1659
- t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = {
1313
+ icon: Dn,
1314
+ label: G
1315
+ }, t[21] = G, t[22] = K) : K = t[22];
1316
+ let ue;
1317
+ t[23] !== N || t[24] !== V || t[25] !== K ? (ue = [N, V, K], t[23] = N, t[24] = V, t[25] = K, t[26] = ue) : ue = t[26];
1318
+ const fe = ue;
1319
+ let me;
1320
+ t[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (me = (j) => n(j.currentTarget), t[27] = me) : me = t[27], h = me;
1321
+ let he;
1322
+ t[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (he = () => {
1323
+ n(void 0), setTimeout(() => r("settings"), 300);
1324
+ }, t[28] = he) : he = t[28], m = he;
1325
+ let pe;
1326
+ t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pe = (j) => () => r(j), t[29] = pe) : pe = t[29];
1327
+ const ge = pe;
1328
+ let ye;
1329
+ t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ye = {
1660
1330
  backgroundColor: "transparent"
1661
- }, t[30] = X) : X = t[30];
1662
- let m;
1663
- t[31] !== n ? (m = n("Layout.Settings"), t[31] = n, t[32] = m) : m = t[32];
1331
+ }, t[30] = ye) : ye = t[30];
1664
1332
  let Q;
1665
- t[33] !== m ? (Q = /* @__PURE__ */ p(Ge, { sx: X, children: m }), t[33] = m, t[34] = Q) : Q = t[34];
1666
- let oe, se;
1667
- t[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oe = D("theme"), se = {
1333
+ t[31] !== i ? (Q = i("Layout.Settings"), t[31] = i, t[32] = Q) : Q = t[32];
1334
+ let X;
1335
+ t[33] !== Q ? (X = /* @__PURE__ */ a(qe, { sx: ye, children: Q }), t[33] = Q, t[34] = X) : X = t[34];
1336
+ let xe, Se;
1337
+ t[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xe = ge("theme"), Se = {
1668
1338
  py: 0.3
1669
- }, t[35] = oe, t[36] = se) : (oe = t[35], se = t[36]);
1339
+ }, t[35] = xe, t[36] = Se) : (xe = t[35], Se = t[36]);
1340
+ let Te;
1341
+ t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Te = /* @__PURE__ */ a(de, { children: /* @__PURE__ */ a(bn, {}) }), t[37] = Te) : Te = t[37];
1342
+ let Z;
1343
+ t[38] !== i ? (Z = i("Layout.Appearance"), t[38] = i, t[39] = Z) : Z = t[39];
1344
+ const We = fe.find((j) => j.mode === c)?.label;
1345
+ let J;
1346
+ t[40] !== Z || t[41] !== We ? (J = /* @__PURE__ */ a(ae, { primary: Z, secondary: We }), t[40] = Z, t[41] = We, t[42] = J) : J = t[42];
1670
1347
  let be;
1671
- t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = /* @__PURE__ */ p(Te, { children: /* @__PURE__ */ p(Lr, {}) }), t[37] = be) : be = t[37];
1672
- let le;
1673
- t[38] !== n ? (le = n("Layout.Appearance"), t[38] = n, t[39] = le) : le = t[39];
1674
- const Be = C.find((re) => re.mode === f)?.label;
1675
- let ue;
1676
- t[40] !== le || t[41] !== Be ? (ue = /* @__PURE__ */ p(ye, { primary: le, secondary: Be }), t[40] = le, t[41] = Be, t[42] = ue) : ue = t[42];
1677
- let xe;
1678
- t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xe = /* @__PURE__ */ p(gt, {}), t[43] = xe) : xe = t[43];
1679
- let fe;
1680
- t[44] !== ue ? (fe = /* @__PURE__ */ q(ve, { onClick: oe, sx: se, children: [
1681
- be,
1682
- ue,
1683
- xe
1684
- ] }), t[44] = ue, t[45] = fe) : fe = t[45];
1685
- let Se, Ee;
1686
- t[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = D("language"), Ee = {
1348
+ t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = /* @__PURE__ */ a(lt, {}), t[43] = be) : be = t[43];
1349
+ let ee;
1350
+ t[44] !== J ? (ee = /* @__PURE__ */ D(ce, { onClick: xe, sx: Se, children: [
1351
+ Te,
1352
+ J,
1353
+ be
1354
+ ] }), t[44] = J, t[45] = ee) : ee = t[45];
1355
+ let we, ke;
1356
+ t[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (we = ge("language"), ke = {
1687
1357
  py: 0.3
1688
- }, t[46] = Se, t[47] = Ee) : (Se = t[46], Ee = t[47]);
1689
- let _e;
1690
- t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_e = /* @__PURE__ */ p(Te, { children: /* @__PURE__ */ p(zr, {}) }), t[48] = _e) : _e = t[48];
1691
- let Oe;
1692
- t[49] !== n ? (Oe = n("Layout.Language"), t[49] = n, t[50] = Oe) : Oe = t[50];
1693
- let we;
1694
- t[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (we = /* @__PURE__ */ p(gt, {}), t[51] = we) : we = t[51];
1695
- const He = /* @__PURE__ */ q(ve, { onClick: Se, sx: Ee, children: [
1696
- _e,
1697
- /* @__PURE__ */ p(ye, { primary: Oe, secondary: It(te.of(l.language)) }),
1698
- we
1358
+ }, t[46] = we, t[47] = ke) : (we = t[46], ke = t[47]);
1359
+ let ve;
1360
+ t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ve = /* @__PURE__ */ a(de, { children: /* @__PURE__ */ a(Mn, {}) }), t[48] = ve) : ve = t[48];
1361
+ let Le;
1362
+ t[49] !== i ? (Le = i("Layout.Language"), t[49] = i, t[50] = Le) : Le = t[50];
1363
+ let De;
1364
+ t[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (De = /* @__PURE__ */ a(lt, {}), t[51] = De) : De = t[51];
1365
+ const Re = /* @__PURE__ */ D(ce, { onClick: we, sx: ke, children: [
1366
+ ve,
1367
+ /* @__PURE__ */ a(ae, { primary: Le, secondary: gt(B.of(l.language)) }),
1368
+ De
1699
1369
  ] });
1700
- let Ce;
1701
- t[52] !== Q || t[53] !== fe || t[54] !== He ? (Ce = /* @__PURE__ */ q(Re, { component: "nav", subheader: Q, children: [
1702
- fe,
1703
- He
1704
- ] }), t[52] = Q, t[53] = fe, t[54] = He, t[55] = Ce) : Ce = t[55], g = Ce;
1705
- let Me, Pe;
1706
- t[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Me = D("settings"), Pe = {
1370
+ let Me;
1371
+ t[52] !== X || t[53] !== ee || t[54] !== Re ? (Me = /* @__PURE__ */ D($e, { component: "nav", subheader: X, children: [
1372
+ ee,
1373
+ Re
1374
+ ] }), t[52] = X, t[53] = ee, t[54] = Re, t[55] = Me) : Me = t[55], f = Me;
1375
+ let Oe, Ce;
1376
+ t[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Oe = ge("settings"), Ce = {
1707
1377
  backgroundColor: "transparent",
1708
1378
  display: "flex",
1709
1379
  alignItems: "center",
1710
1380
  px: 1,
1711
1381
  cursor: "pointer"
1712
- }, t[56] = Me, t[57] = Pe) : (Me = t[56], Pe = t[57]);
1713
- let ke;
1714
- t[58] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ke = /* @__PURE__ */ p(Ye, { size: "small", sx: {
1382
+ }, t[56] = Oe, t[57] = Ce) : (Oe = t[56], Ce = t[57]);
1383
+ let _e;
1384
+ t[58] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_e = /* @__PURE__ */ a(ze, { size: "small", sx: {
1715
1385
  mr: 0.5
1716
- }, children: /* @__PURE__ */ p(yt, { fontSize: "small" }) }), t[58] = ke) : ke = t[58];
1717
- let de;
1718
- t[59] !== n ? (de = n("Layout.Appearance"), t[59] = n, t[60] = de) : de = t[60];
1719
- let me;
1720
- t[61] !== de ? (me = /* @__PURE__ */ q(Ge, { onClick: Me, sx: Pe, children: [
1721
- ke,
1386
+ }, children: /* @__PURE__ */ a(at, { fontSize: "small" }) }), t[58] = _e) : _e = t[58];
1387
+ let te;
1388
+ t[59] !== i ? (te = i("Layout.Appearance"), t[59] = i, t[60] = te) : te = t[60];
1389
+ let ne;
1390
+ t[61] !== te ? (ne = /* @__PURE__ */ D(qe, { onClick: Oe, sx: Ce, children: [
1391
+ _e,
1722
1392
  " ",
1723
- de
1724
- ] }), t[61] = de, t[62] = me) : me = t[62];
1725
- let pe;
1726
- t[63] !== C || t[64] !== f || t[65] !== d ? (pe = C.map((re) => {
1393
+ te
1394
+ ] }), t[61] = te, t[62] = ne) : ne = t[62];
1395
+ let oe;
1396
+ t[63] !== fe || t[64] !== c || t[65] !== u ? (oe = fe.map((j) => {
1727
1397
  const {
1728
- mode: Ve,
1729
- icon: zt,
1730
- label: Nt
1731
- } = re;
1732
- return /* @__PURE__ */ q(ve, { onClick: () => {
1733
- d(Ve), h();
1734
- }, selected: f === Ve, children: [
1735
- /* @__PURE__ */ p(Te, { children: /* @__PURE__ */ p(zt, {}) }),
1736
- /* @__PURE__ */ p(ye, { primary: Nt })
1737
- ] }, Ve);
1738
- }), t[63] = C, t[64] = f, t[65] = d, t[66] = pe) : pe = t[66];
1398
+ mode: He,
1399
+ icon: Lt,
1400
+ label: Dt
1401
+ } = j;
1402
+ return /* @__PURE__ */ D(ce, { onClick: () => {
1403
+ u(He), m();
1404
+ }, selected: c === He, children: [
1405
+ /* @__PURE__ */ a(de, { children: /* @__PURE__ */ a(Lt, {}) }),
1406
+ /* @__PURE__ */ a(ae, { primary: Dt })
1407
+ ] }, He);
1408
+ }), t[63] = fe, t[64] = c, t[65] = u, t[66] = oe) : oe = t[66];
1739
1409
  let Ie;
1740
- t[67] !== me || t[68] !== pe ? (Ie = /* @__PURE__ */ p(Re, { subheader: me, children: pe }), t[67] = me, t[68] = pe, t[69] = Ie) : Ie = t[69], E = Ie, u = Re;
1741
- let De, Le;
1742
- t[70] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (De = D("settings"), Le = {
1410
+ t[67] !== ne || t[68] !== oe ? (Ie = /* @__PURE__ */ a($e, { subheader: ne, children: oe }), t[67] = ne, t[68] = oe, t[69] = Ie) : Ie = t[69], x = Ie, d = $e;
1411
+ let Ee, Ae;
1412
+ t[70] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ee = ge("settings"), Ae = {
1743
1413
  backgroundColor: "transparent",
1744
1414
  display: "flex",
1745
1415
  alignItems: "center",
1746
1416
  px: 1,
1747
1417
  cursor: "pointer"
1748
- }, t[70] = De, t[71] = Le) : (De = t[70], Le = t[71]);
1749
- let Ae;
1750
- t[72] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ae = /* @__PURE__ */ p(Ye, { size: "small", sx: {
1418
+ }, t[70] = Ee, t[71] = Ae) : (Ee = t[70], Ae = t[71]);
1419
+ let Pe;
1420
+ t[72] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Pe = /* @__PURE__ */ a(ze, { size: "small", sx: {
1751
1421
  mr: 0.5
1752
- }, children: /* @__PURE__ */ p(yt, { fontSize: "small" }) }), t[72] = Ae) : Ae = t[72];
1753
- let he;
1754
- t[73] !== n ? (he = n("Layout.Language"), t[73] = n, t[74] = he) : he = t[74], t[75] !== he ? (b = /* @__PURE__ */ q(Ge, { onClick: De, sx: Le, children: [
1755
- Ae,
1422
+ }, children: /* @__PURE__ */ a(at, { fontSize: "small" }) }), t[72] = Pe) : Pe = t[72];
1423
+ let ie;
1424
+ t[73] !== i ? (ie = i("Layout.Language"), t[73] = i, t[74] = ie) : ie = t[74], t[75] !== ie ? (p = /* @__PURE__ */ D(qe, { onClick: Ee, sx: Ae, children: [
1425
+ Pe,
1756
1426
  " ",
1757
- he
1758
- ] }), t[75] = he, t[76] = b) : b = t[76], T = H.map((re) => /* @__PURE__ */ q(ve, { onClick: () => l.changeLanguage(re).finally(() => h()), selected: l.resolvedLanguage === re, children: [
1759
- /* @__PURE__ */ p(Te, { children: l.resolvedLanguage === re && /* @__PURE__ */ p(Rr, {}) }),
1760
- /* @__PURE__ */ p(ye, { primary: It(te.of(re)) })
1761
- ] }, re)), t[0] = l, t[1] = f, t[2] = d, t[3] = n, t[4] = u, t[5] = h, t[6] = v, t[7] = g, t[8] = b, t[9] = T, t[10] = E;
1427
+ ie
1428
+ ] }), t[75] = ie, t[76] = p) : p = t[76], g = F.map((j) => /* @__PURE__ */ D(ce, { onClick: () => l.changeLanguage(j).finally(() => m()), selected: l.resolvedLanguage === j, children: [
1429
+ /* @__PURE__ */ a(de, { children: l.resolvedLanguage === j && /* @__PURE__ */ a(kn, {}) }),
1430
+ /* @__PURE__ */ a(ae, { primary: gt(B.of(j)) })
1431
+ ] }, j)), t[0] = l, t[1] = c, t[2] = u, t[3] = i, t[4] = d, t[5] = m, t[6] = h, t[7] = f, t[8] = p, t[9] = g, t[10] = x;
1762
1432
  } else
1763
- u = t[4], h = t[5], v = t[6], g = t[7], b = t[8], T = t[9], E = t[10];
1764
- let P;
1765
- t[77] !== u || t[78] !== b || t[79] !== T ? (P = /* @__PURE__ */ p(u, { subheader: b, children: T }), t[77] = u, t[78] = b, t[79] = T, t[80] = P) : P = t[80];
1766
- const A = P;
1767
- let x;
1768
- t[81] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ p(Dr, { sx: {
1433
+ d = t[4], m = t[5], h = t[6], f = t[7], p = t[8], g = t[9], x = t[10];
1434
+ let w;
1435
+ t[77] !== d || t[78] !== p || t[79] !== g ? (w = /* @__PURE__ */ a(d, { subheader: p, children: g }), t[77] = d, t[78] = p, t[79] = g, t[80] = w) : w = t[80];
1436
+ const S = w;
1437
+ let y;
1438
+ t[81] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ a(Tn, { sx: {
1769
1439
  width: {
1770
1440
  xs: 32,
1771
1441
  sm: 40
@@ -1774,50 +1444,50 @@ const Ue = 84, Ne = 320, kt = 64, Tn = (t) => {
1774
1444
  xs: 32,
1775
1445
  sm: 40
1776
1446
  }
1777
- } }), t[81] = x) : x = t[81];
1778
- let _;
1779
- t[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ p(ir, { fallback: x, children: /* @__PURE__ */ p(ht, { promise: xn(), children: _n }) }), t[82] = _) : _ = t[82];
1780
- let c;
1781
- t[83] !== v ? (c = /* @__PURE__ */ p(Ye, { size: "small", edge: "end", onClick: v, children: _ }), t[83] = v, t[84] = c) : c = t[84];
1782
- let j;
1783
- t[85] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = {
1447
+ } }), t[81] = y) : y = t[81];
1448
+ let k;
1449
+ t[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ a(Ht, { fallback: y, children: /* @__PURE__ */ a(st, { promise: go(), children: So }) }), t[82] = k) : k = t[82];
1450
+ let T;
1451
+ t[83] !== h ? (T = /* @__PURE__ */ a(ze, { size: "small", edge: "end", onClick: h, children: k }), t[83] = h, t[84] = T) : T = t[84];
1452
+ let v;
1453
+ t[85] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
1784
1454
  width: 240
1785
- }, t[85] = j) : j = t[85];
1786
- let J;
1787
- t[86] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = /* @__PURE__ */ p(Vt, { children: /* @__PURE__ */ p(ht, { promise: bn(), children: On }) }), t[86] = J) : J = t[86];
1788
- let B;
1789
- t[87] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ p(Te, { children: /* @__PURE__ */ p($r, { color: "error" }) }), t[87] = B) : B = t[87];
1790
- let N;
1791
- t[88] !== n ? (N = n("Layout.Logout"), t[88] = n, t[89] = N) : N = t[89];
1792
- let W;
1793
- t[90] !== N ? (W = /* @__PURE__ */ q(Re, { disablePadding: !0, children: [
1794
- J,
1795
- /* @__PURE__ */ q(ve, { onClick: wn, children: [
1796
- B,
1797
- /* @__PURE__ */ p(ye, { primary: N })
1455
+ }, t[85] = v) : v = t[85];
1456
+ let z;
1457
+ t[86] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ a(Pt, { children: /* @__PURE__ */ a(st, { promise: po(), children: To }) }), t[86] = z) : z = t[86];
1458
+ let I;
1459
+ t[87] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ a(de, { children: /* @__PURE__ */ a(Ln, { color: "error" }) }), t[87] = I) : I = t[87];
1460
+ let L;
1461
+ t[88] !== i ? (L = i("Layout.Logout"), t[88] = i, t[89] = L) : L = t[89];
1462
+ let M;
1463
+ t[90] !== L ? (M = /* @__PURE__ */ D($e, { disablePadding: !0, children: [
1464
+ z,
1465
+ /* @__PURE__ */ D(ce, { onClick: bo, children: [
1466
+ I,
1467
+ /* @__PURE__ */ a(ae, { primary: L })
1798
1468
  ] })
1799
- ] }), t[90] = N, t[91] = W) : W = t[91];
1800
- const K = o === "settings" && g, ee = o === "theme" && E, Z = o === "language" && A;
1801
- let U;
1802
- t[92] !== W || t[93] !== K || t[94] !== ee || t[95] !== Z ? (U = /* @__PURE__ */ q(ze, { sx: j, children: [
1803
- W,
1804
- K,
1805
- ee,
1806
- Z
1807
- ] }), t[92] = W, t[93] = K, t[94] = ee, t[95] = Z, t[96] = U) : U = t[96];
1808
- let F;
1809
- t[97] !== e || t[98] !== h || t[99] !== a || t[100] !== U ? (F = /* @__PURE__ */ p(Kt, { anchorEl: e, open: a, onClose: h, children: U }), t[97] = e, t[98] = h, t[99] = a, t[100] = U, t[101] = F) : F = t[101];
1810
- let R;
1811
- return t[102] !== F || t[103] !== c ? (R = /* @__PURE__ */ q(qe, { children: [
1812
- c,
1813
- F
1814
- ] }), t[102] = F, t[103] = c, t[104] = R) : R = t[104], R;
1469
+ ] }), t[90] = L, t[91] = M) : M = t[91];
1470
+ const P = o === "settings" && f, U = o === "theme" && x, $ = o === "language" && S;
1471
+ let A;
1472
+ t[92] !== M || t[93] !== P || t[94] !== U || t[95] !== $ ? (A = /* @__PURE__ */ D(Ne, { sx: v, children: [
1473
+ M,
1474
+ P,
1475
+ U,
1476
+ $
1477
+ ] }), t[92] = M, t[93] = P, t[94] = U, t[95] = $, t[96] = A) : A = t[96];
1478
+ let _;
1479
+ t[97] !== e || t[98] !== m || t[99] !== s || t[100] !== A ? (_ = /* @__PURE__ */ a(zt, { anchorEl: e, open: s, onClose: m, children: A }), t[97] = e, t[98] = m, t[99] = s, t[100] = A, t[101] = _) : _ = t[101];
1480
+ let O;
1481
+ return t[102] !== _ || t[103] !== T ? (O = /* @__PURE__ */ D(Be, { children: [
1482
+ T,
1483
+ _
1484
+ ] }), t[102] = _, t[103] = T, t[104] = O) : O = t[104], O;
1815
1485
  };
1816
- function En(t) {
1486
+ function xo(t) {
1817
1487
  return t !== "cimode";
1818
1488
  }
1819
- function _n(t) {
1820
- return /* @__PURE__ */ p(Gt, { src: t, sx: {
1489
+ function So(t) {
1490
+ return /* @__PURE__ */ a($t, { src: t, sx: {
1821
1491
  width: {
1822
1492
  xs: 32,
1823
1493
  sm: 40
@@ -1828,16 +1498,16 @@ function _n(t) {
1828
1498
  }
1829
1499
  } });
1830
1500
  }
1831
- function On(t) {
1832
- return /* @__PURE__ */ p(ye, { primary: t.displayName.split("/")[0], secondary: t.jobTitle });
1501
+ function To(t) {
1502
+ return /* @__PURE__ */ a(ae, { primary: t.displayName.split("/")[0], secondary: t.jobTitle });
1833
1503
  }
1834
- function wn() {
1504
+ function bo() {
1835
1505
  return console.log("Logout clicked");
1836
1506
  }
1837
- const Yt = 3600 * 24 * 365, Cn = rr().server(() => Dt("navigationOpen") === "true").client(() => {
1507
+ const vt = 3600 * 24 * 365, wo = Wt().server(() => yt("navigationOpen") === "true").client(() => {
1838
1508
  const t = document.cookie.split("; ").find((e) => e.startsWith("navigationOpen="));
1839
1509
  return t ? t.split("=")[1] === "true" : !1;
1840
- }), Mn = at("div")(({
1510
+ }), ko = Ze("div")(({
1841
1511
  theme: t
1842
1512
  }) => ({
1843
1513
  display: "flex",
@@ -1845,70 +1515,70 @@ const Yt = 3600 * 24 * 365, Cn = rr().server(() => Dt("navigationOpen") === "tru
1845
1515
  justifyContent: "flex-end",
1846
1516
  padding: t.spacing(0, 1),
1847
1517
  ...t.mixins.toolbar
1848
- })), Pn = (t) => {
1849
- const e = ae(29), [r, o] = ce(Cn), s = !!pr(), a = !!hr();
1850
- let n, l;
1851
- e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ p(Xt, {}), l = /* @__PURE__ */ p(Zt, {}), e[0] = n, e[1] = l) : (n = e[0], l = e[1]);
1852
- let f;
1853
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
1518
+ })), vo = (t) => {
1519
+ const e = R(29), [n, o] = q(wo), r = !!tn(), s = !!nn();
1520
+ let i, l;
1521
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ a(Nt, {}), l = /* @__PURE__ */ a(jt, {}), e[0] = i, e[1] = l) : (i = e[0], l = e[1]);
1522
+ let c;
1523
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
1854
1524
  display: "flex",
1855
1525
  height: "100dvh",
1856
1526
  maxHeight: "100dvh",
1857
1527
  overflow: "hidden",
1858
1528
  width: "100%"
1859
- }, e[2] = f) : f = e[2];
1860
- let d;
1861
- e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
1529
+ }, e[2] = c) : c = e[2];
1530
+ let u;
1531
+ e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
1862
1532
  borderBottom: "1px solid",
1863
1533
  borderColor: "var(--mui-palette-divider)",
1864
1534
  boxShadow: "none"
1865
- }, e[3] = d) : d = e[3];
1866
- let u;
1867
- e[4] !== r || e[5] !== t.navigation ? (u = t.navigation && /* @__PURE__ */ p(Ye, { onClick: () => {
1868
- o(kn);
1535
+ }, e[3] = u) : u = e[3];
1536
+ let d;
1537
+ e[4] !== n || e[5] !== t.navigation ? (d = t.navigation && /* @__PURE__ */ a(ze, { onClick: () => {
1538
+ o(Lo);
1869
1539
  }, sx: {
1870
1540
  marginRight: 2
1871
- }, children: r ? /* @__PURE__ */ p(fr, {}) : /* @__PURE__ */ p(ur, {}) }), e[4] = r, e[5] = t.navigation, e[6] = u) : u = e[6];
1872
- let h, v;
1873
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ p(un, {}), v = /* @__PURE__ */ p(Sn, {}), e[7] = h, e[8] = v) : (h = e[7], v = e[8]);
1874
- let g;
1875
- e[9] !== u ? (g = /* @__PURE__ */ p(Jt, { color: "transparent", position: "fixed", sx: d, children: /* @__PURE__ */ q(Qt, { children: [
1876
- u,
1877
- h,
1878
- v
1879
- ] }) }), e[9] = u, e[10] = g) : g = e[10];
1880
- let b;
1881
- e[11] !== r || e[12] !== t.navigation ? (b = t.navigation && /* @__PURE__ */ p(Tn, { navigation: t.navigation, expanded: r, setExpanded: (j) => {
1882
- o(j), document.cookie = `navigationOpen=${j}; max-age=${Yt}; path=/`;
1883
- } }), e[11] = r, e[12] = t.navigation, e[13] = b) : b = e[13];
1884
- let T, E;
1885
- e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = {
1541
+ }, children: n ? /* @__PURE__ */ a(Zt, {}) : /* @__PURE__ */ a(Xt, {}) }), e[4] = n, e[5] = t.navigation, e[6] = d) : d = e[6];
1542
+ let m, h;
1543
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ a(io, {}), h = /* @__PURE__ */ a(yo, {}), e[7] = m, e[8] = h) : (m = e[7], h = e[8]);
1544
+ let f;
1545
+ e[9] !== d ? (f = /* @__PURE__ */ a(Ut, { color: "transparent", position: "fixed", sx: u, children: /* @__PURE__ */ D(Ft, { children: [
1546
+ d,
1547
+ m,
1548
+ h
1549
+ ] }) }), e[9] = d, e[10] = f) : f = e[10];
1550
+ let p;
1551
+ e[11] !== n || e[12] !== t.navigation ? (p = t.navigation && /* @__PURE__ */ a(ho, { navigation: t.navigation, expanded: n, setExpanded: (v) => {
1552
+ o(v), document.cookie = `navigationOpen=${v}; max-age=${vt}; path=/`;
1553
+ } }), e[11] = n, e[12] = t.navigation, e[13] = p) : p = e[13];
1554
+ let g, x;
1555
+ e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = {
1886
1556
  flexGrow: 1,
1887
1557
  display: "flex",
1888
1558
  flexDirection: "column",
1889
1559
  minWidth: 0,
1890
1560
  height: "100%",
1891
1561
  overflow: "hidden"
1892
- }, T = /* @__PURE__ */ p(Mn, {}), e[14] = T, e[15] = E) : (T = e[14], E = e[15]);
1893
- let P;
1894
- e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = {
1562
+ }, g = /* @__PURE__ */ a(ko, {}), e[14] = g, e[15] = x) : (g = e[14], x = e[15]);
1563
+ let w;
1564
+ e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = {
1895
1565
  flex: 1,
1896
1566
  overflow: "auto",
1897
1567
  position: "relative"
1898
- }, e[16] = P) : P = e[16];
1899
- let A;
1900
- e[17] !== t.children ? (A = /* @__PURE__ */ q(ze, { component: "main", sx: E, children: [
1901
- T,
1902
- /* @__PURE__ */ p(ze, { sx: P, children: t.children })
1903
- ] }), e[17] = t.children, e[18] = A) : A = e[18];
1904
- let x;
1905
- e[19] !== A || e[20] !== g || e[21] !== b ? (x = /* @__PURE__ */ q(ze, { sx: f, children: [
1568
+ }, e[16] = w) : w = e[16];
1569
+ let S;
1570
+ e[17] !== t.children ? (S = /* @__PURE__ */ D(Ne, { component: "main", sx: x, children: [
1906
1571
  g,
1907
- b,
1908
- A
1909
- ] }), e[19] = A, e[20] = g, e[21] = b, e[22] = x) : x = e[22];
1910
- let _;
1911
- e[23] !== s || e[24] !== a ? (_ = (s || a) && /* @__PURE__ */ p(er, { sx: {
1572
+ /* @__PURE__ */ a(Ne, { sx: w, children: t.children })
1573
+ ] }), e[17] = t.children, e[18] = S) : S = e[18];
1574
+ let y;
1575
+ e[19] !== S || e[20] !== f || e[21] !== p ? (y = /* @__PURE__ */ D(Ne, { sx: c, children: [
1576
+ f,
1577
+ p,
1578
+ S
1579
+ ] }), e[19] = S, e[20] = f, e[21] = p, e[22] = y) : y = e[22];
1580
+ let k;
1581
+ e[23] !== r || e[24] !== s ? (k = (r || s) && /* @__PURE__ */ a(Yt, { sx: {
1912
1582
  position: "fixed",
1913
1583
  top: {
1914
1584
  xs: 56,
@@ -1916,60 +1586,61 @@ const Yt = 3600 * 24 * 365, Cn = rr().server(() => Dt("navigationOpen") === "tru
1916
1586
  },
1917
1587
  left: 0,
1918
1588
  right: 0
1919
- } }), e[23] = s, e[24] = a, e[25] = _) : _ = e[25];
1920
- let c;
1921
- return e[26] !== x || e[27] !== _ ? (c = /* @__PURE__ */ q(qe, { children: [
1922
- n,
1589
+ } }), e[23] = r, e[24] = s, e[25] = k) : k = e[25];
1590
+ let T;
1591
+ return e[26] !== y || e[27] !== k ? (T = /* @__PURE__ */ D(Be, { children: [
1592
+ i,
1923
1593
  l,
1924
- x,
1925
- _
1926
- ] }), e[26] = x, e[27] = _, e[28] = c) : c = e[28], c;
1594
+ y,
1595
+ k
1596
+ ] }), e[26] = y, e[27] = k, e[28] = T) : T = e[28], T;
1927
1597
  };
1928
- function kn(t) {
1598
+ function Lo(t) {
1929
1599
  const e = !t;
1930
- return document.cookie = `navigationOpen=${e}; max-age=${Yt}; path=/`, e;
1600
+ return document.cookie = `navigationOpen=${e}; max-age=${vt}; path=/`, e;
1931
1601
  }
1932
- const In = 1440 * 365;
1933
- ie.use(nr).use(cr).init({
1934
- resources: mt,
1602
+ const Do = 1440 * 365;
1603
+ W.use(wt).use(no).init({
1604
+ resources: it,
1935
1605
  fallbackLng: "en",
1936
- supportedLngs: Object.keys(mt),
1606
+ supportedLngs: Object.keys(it),
1937
1607
  detection: {
1938
1608
  caches: ["cookie"],
1939
- cookieMinutes: In
1609
+ cookieMinutes: Do
1940
1610
  },
1941
1611
  interpolation: {
1942
1612
  escapeValue: !1
1943
1613
  }
1944
1614
  });
1945
- const Ao = (t) => {
1946
- const e = ae(9), {
1947
- navigation: r,
1615
+ const Li = (t) => {
1616
+ const e = R(9), {
1617
+ navigation: n,
1948
1618
  theme: o,
1949
- children: s
1950
- } = t, a = ar(Dn);
1951
- let n;
1952
- e[0] !== a ? (n = () => (a(), ie.on("languageChanged", a), () => {
1953
- ie.off("languageChanged", a);
1954
- }), e[0] = a, e[1] = n) : n = e[1];
1619
+ children: r
1620
+ } = t, s = qt(Mo);
1621
+ let i;
1622
+ e[0] !== s ? (i = () => (s(), W.on("languageChanged", s), () => {
1623
+ W.off("languageChanged", s);
1624
+ }), e[0] = s, e[1] = i) : i = e[1];
1955
1625
  let l;
1956
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [], e[2] = l) : l = e[2], Lt(n, l);
1957
- let f;
1958
- e[3] !== s || e[4] !== r ? (f = /* @__PURE__ */ p(ft, { dateAdapter: cn, adapterLocale: ie.language, children: /* @__PURE__ */ p(ln, { children: /* @__PURE__ */ p(Pn, { navigation: r, children: s }) }) }, ie.language), e[3] = s, e[4] = r, e[5] = f) : f = e[5];
1959
- let d;
1960
- return e[6] !== f || e[7] !== o ? (d = /* @__PURE__ */ p(tr, { theme: o, children: f }), e[6] = f, e[7] = o, e[8] = d) : d = e[8], d;
1961
- }, Ro = Fe().handler(async () => {
1962
- const t = Dt(ie.services.languageDetector.options.lookupCookie) || "en";
1963
- ge.config(ge.core.locales[t]()), G.locale(t), await ie.changeLanguage(t);
1626
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [], e[2] = l) : l = e[2], xt(i, l);
1627
+ let c;
1628
+ e[3] !== r || e[4] !== n ? (c = /* @__PURE__ */ a(nt, { dateAdapter: Fn, adapterLocale: W.language, children: /* @__PURE__ */ a(oo, { children: /* @__PURE__ */ a(vo, { navigation: n, children: r }) }) }, W.language), e[3] = r, e[4] = n, e[5] = c) : c = e[5];
1629
+ let u;
1630
+ return e[6] !== c || e[7] !== o ? (u = /* @__PURE__ */ a(Bt, { theme: o, children: c }), e[6] = c, e[7] = o, e[8] = u) : u = e[8], u;
1631
+ }, Di = Ye().handler(async () => {
1632
+ const t = yt(W.services.languageDetector.options.lookupCookie) || "en";
1633
+ le.config(le.core.locales[t]()), C.locale(t), await W.changeLanguage(t);
1964
1634
  });
1965
- function Dn() {
1966
- ge.config(ge.core.locales[ie.language]()), G.locale(ie.language);
1635
+ function Mo() {
1636
+ le.config(le.core.locales[W.language]()), C.locale(W.language);
1967
1637
  }
1968
1638
  export {
1969
- Ao as LayoutProvider,
1970
- Yo as WISTRON_PRIMARY_COLOR,
1971
- zo as WISTRON_SECONDARY_COLOR,
1972
- Lo as getSessionUser,
1973
- No as rootRouteHead,
1974
- Ro as setSSRLanguage
1639
+ Li as LayoutProvider,
1640
+ Ci as WISTRON_PRIMARY_COLOR,
1641
+ _i as WISTRON_SECONDARY_COLOR,
1642
+ vi as getSessionUser,
1643
+ Ii as rootRouteHead,
1644
+ Di as setSSRLanguage
1975
1645
  };
1646
+ //# sourceMappingURL=index.js.map