wcz-layout 7.0.1 → 7.0.2

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.

Potentially problematic release.


This version of wcz-layout might be problematic. Click here for more details.

package/dist/index.js CHANGED
@@ -1,178 +1,178 @@
1
- import { j as o, D as Mt } from "./DialogsContext-DK_2txyr.js";
1
+ import { j as o, D as Rt } from "./DialogsContext-DK_2txyr.js";
2
2
  import { c as B } from "./compiler-runtime-BNHg76kC.js";
3
- import { useMsal as vt, useIsAuthenticated as St, AuthenticatedTemplate as lt, UnauthenticatedTemplate as ut, MsalProvider as Rt } from "@azure/msal-react";
4
- import { Typography as At, Chip as $t, Stack as Et, Collapse as Ot, Grow as Dt, useMediaQuery as Nt, useColorScheme as Pt, ListItemButton as xe, ListItemText as z, ListItemIcon as ge, ListSubheader as ot, List as Ye, IconButton as qe, Avatar as Bt, ListItem as Wt, Box as Ge, Menu as zt, InitColorSchemeScript as Ut, CssBaseline as Ht, AppBar as Ft, Toolbar as Yt, ThemeProvider as qt } from "@mui/material";
3
+ import { useMsal as St, useIsAuthenticated as _t, AuthenticatedTemplate as lt, UnauthenticatedTemplate as ut, MsalProvider as At } from "@azure/msal-react";
4
+ import { Typography as $t, Chip as Et, Stack as Pt, Collapse as Nt, Grow as Ot, useColorScheme as Dt, ListItemButton as xe, ListItemText as z, ListItemIcon as ge, ListSubheader as ot, List as qe, IconButton as Ge, Avatar as Bt, ListItem as Wt, Box as Ke, Menu as zt, InitColorSchemeScript as Ut, CssBaseline as Ht, AppBar as Ft, Toolbar as Yt, ThemeProvider as qt } from "@mui/material";
5
5
  import { LocalizationProvider as Gt } from "@mui/x-date-pickers";
6
6
  import { AdapterDayjs as Kt } from "@mui/x-date-pickers/AdapterDayjs";
7
7
  import Vt from "dayjs";
8
- import Ke from "i18next";
9
- import Qt from "i18next-browser-languagedetector";
10
- import { useTranslation as Xt, initReactI18next as Jt } from "react-i18next";
8
+ import Ve from "i18next";
9
+ import Xt from "i18next-browser-languagedetector";
10
+ import { useTranslation as Qt, initReactI18next as Jt } from "react-i18next";
11
11
  import { resources as ht } from "virtual:wcz-layout";
12
- import rt from "zod";
12
+ import nt from "zod";
13
13
  import st from "@mui/utils/useEventCallback";
14
- import { useState as W, useId as Zt, useRef as at, useEffect as mt, Fragment as Qe } from "react";
14
+ import { useState as W, useId as Zt, useRef as rt, useEffect as mt, Fragment as be } from "react";
15
15
  import eo from "@mui/material/Alert";
16
16
  import to from "@mui/material/Snackbar";
17
17
  import { N as oo, u as so } from "./UseUser-Cgnr4DWh.js";
18
- import { c as io, g as no, P as Ve, p as lo } from "./utils-CWgky1iM.js";
19
- import { W as mi, a as di, r as fi } from "./utils-CWgky1iM.js";
18
+ import { c as io, g as lo, P as Xe, p as no } from "./utils-CWgky1iM.js";
19
+ import { W as ci, a as mi, r as di } from "./utils-CWgky1iM.js";
20
20
  import { InteractionStatus as ro } from "@azure/msal-browser";
21
21
  import ao from "@mui/icons-material/Menu";
22
22
  import co from "@mui/icons-material/MenuOpen";
23
- import { styled as dt, useTheme as mo } from "@mui/material/styles";
24
- import { useRouter as fo, useNavigate as po, useRouterState as uo, useMatches as ho } from "@tanstack/react-router";
25
- import ft from "@mui/material/Box";
23
+ import { styled as dt } from "@mui/material/styles";
24
+ import { useRouter as mo, useNavigate as fo, useRouterState as po, useMatches as uo } from "@tanstack/react-router";
26
25
  import xt from "@mui/material/Drawer";
27
- import xo from "@mui/material/Divider";
28
- import go from "@mui/material/List";
29
- import yo from "@mui/material/ListSubheader";
30
- import bo from "@mui/icons-material/ExpandMore";
31
- import jo from "@mui/material/Avatar";
32
- import vo from "@mui/material/ListItem";
33
- import So from "@mui/material/ListItemButton";
34
- import _o from "@mui/material/ListItemIcon";
35
- import Io from "@mui/material/ListItemText";
36
- import Lo from "@mui/material/Paper";
37
- import Co from "@mui/material/Typography";
38
- import { R as ko } from "./RouterListItemButton-CpvZ1eL8.js";
39
- import wo from "@mui/icons-material/AccountCircle";
26
+ import ft from "@mui/material/Box";
27
+ import ho from "@mui/material/Divider";
28
+ import xo from "@mui/material/List";
29
+ import go from "@mui/material/ListSubheader";
30
+ import yo from "@mui/icons-material/ExpandMore";
31
+ import bo from "@mui/material/Avatar";
32
+ import jo from "@mui/material/ListItem";
33
+ import vo from "@mui/material/ListItemButton";
34
+ import So from "@mui/material/ListItemIcon";
35
+ import _o from "@mui/material/ListItemText";
36
+ import Io from "@mui/material/Paper";
37
+ import Lo from "@mui/material/Typography";
38
+ import { R as Co } from "./RouterListItemButton-CpvZ1eL8.js";
39
+ import ko from "@mui/icons-material/AccountCircle";
40
40
  import gt from "@mui/icons-material/ArrowBack";
41
- import To from "@mui/icons-material/Brightness4";
41
+ import wo from "@mui/icons-material/Brightness4";
42
42
  import yt from "@mui/icons-material/ChevronRight";
43
- import Mo from "@mui/icons-material/DarkMode";
44
- import Ro from "@mui/icons-material/Done";
45
- import Ao from "@mui/icons-material/LightMode";
46
- import $o from "@mui/icons-material/Login";
47
- import Eo from "@mui/icons-material/Logout";
48
- import Oo from "@mui/icons-material/SettingsBrightness";
49
- import Do from "@mui/icons-material/Translate";
50
- import { queryOptions as No, useQuery as Po } from "@tanstack/react-query";
51
- import Bo from "axios";
52
- function Wo({
43
+ import To from "@mui/icons-material/DarkMode";
44
+ import Mo from "@mui/icons-material/Done";
45
+ import Ro from "@mui/icons-material/LightMode";
46
+ import Ao from "@mui/icons-material/Login";
47
+ import $o from "@mui/icons-material/Logout";
48
+ import Eo from "@mui/icons-material/SettingsBrightness";
49
+ import Po from "@mui/icons-material/Translate";
50
+ import { queryOptions as No, useQuery as Oo } from "@tanstack/react-query";
51
+ import Do from "axios";
52
+ function Bo({
53
53
  children: t
54
54
  }) {
55
- const [e, s] = W([]), r = Zt(), l = at(0), a = at(/* @__PURE__ */ new WeakMap()), i = st(function(u, d, c = {}) {
55
+ const [e, s] = W([]), r = Zt(), l = rt(0), c = rt(/* @__PURE__ */ new WeakMap()), i = st(function(u, f, a = {}) {
56
56
  const {
57
- onClose: j = async () => {
57
+ onClose: x = async () => {
58
58
  }
59
- } = c;
59
+ } = a;
60
60
  let h;
61
- const g = new Promise((b) => {
62
- h = b;
63
- }), _ = `${r}-${l.current}`;
61
+ const g = new Promise((_) => {
62
+ h = _;
63
+ }), y = `${r}-${l.current}`;
64
64
  l.current += 1;
65
- const y = {
66
- key: _,
65
+ const S = {
66
+ key: y,
67
67
  open: !0,
68
68
  promise: g,
69
69
  Component: u,
70
- payload: d,
71
- onClose: j,
70
+ payload: f,
71
+ onClose: x,
72
72
  resolve: h
73
73
  };
74
- return a.current.set(g, y), s((b) => [...b, y]), g;
74
+ return c.current.set(g, S), s((_) => [..._, S]), g;
75
75
  }), n = (p) => {
76
- s((u) => u.filter((d) => d.promise !== p)), a.current.delete(p);
76
+ s((u) => u.filter((f) => f.promise !== p)), c.current.delete(p);
77
77
  }, m = st(function(u) {
78
- s((d) => d.map((c) => c.promise === u ? {
79
- ...c,
78
+ s((f) => f.map((a) => a.promise === u ? {
79
+ ...a,
80
80
  open: !1
81
- } : c)), setTimeout(() => n(u), 1e3);
82
- }), f = st(async function(u, d) {
83
- const c = a.current.get(u);
84
- if (!c)
81
+ } : a)), setTimeout(() => n(u), 1e3);
82
+ }), d = st(async function(u, f) {
83
+ const a = c.current.get(u);
84
+ if (!a)
85
85
  throw new Error("Dialog not found in stack");
86
86
  try {
87
- await c.onClose(d);
87
+ await a.onClose(f);
88
88
  } finally {
89
- c.resolve(d), m(u);
89
+ a.resolve(f), m(u);
90
90
  }
91
91
  return u;
92
92
  });
93
- return /* @__PURE__ */ o.jsxs(Mt.Provider, { value: {
93
+ return /* @__PURE__ */ o.jsxs(Rt.Provider, { value: {
94
94
  open: i,
95
- close: f
95
+ close: d
96
96
  }, children: [
97
97
  t,
98
98
  e.map(({
99
99
  key: p,
100
100
  open: u,
101
- Component: d,
102
- payload: c,
103
- promise: j
104
- }) => /* @__PURE__ */ o.jsx(d, { payload: c, open: u, onClose: async (h) => {
105
- await f(j, h);
101
+ Component: f,
102
+ payload: a,
103
+ promise: x
104
+ }) => /* @__PURE__ */ o.jsx(f, { payload: a, open: u, onClose: async (h) => {
105
+ await d(x, h);
106
106
  } }, p))
107
107
  ] });
108
108
  }
109
- const zo = 1e3, Uo = (t) => {
109
+ const Wo = 1e3, zo = (t) => {
110
110
  const e = B.c(21), {
111
111
  children: s,
112
112
  snackbarOrigin: r
113
113
  } = t;
114
114
  let l;
115
115
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [], e[0] = l) : l = e[0];
116
- const [a, i] = W(l), [n, m] = W(null), f = !!n, p = at(null);
116
+ const [c, i] = W(l), [n, m] = W(null), d = !!n, p = rt(null);
117
117
  let u;
118
118
  e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = () => {
119
- i((k) => {
120
- if (k.length === 0)
121
- return k;
122
- const [S, ...L] = k;
123
- return m(S), L;
119
+ i((L) => {
120
+ if (L.length === 0)
121
+ return L;
122
+ const [b, ...v] = L;
123
+ return m(b), v;
124
124
  });
125
125
  }, e[1] = u) : u = e[1];
126
- const d = u;
127
- let c, j;
128
- e[2] !== n || e[3] !== f || e[4] !== a.length ? (c = () => (!f && a.length > 0 && (p.current = setTimeout(d, n ? zo : 0)), () => {
126
+ const f = u;
127
+ let a, x;
128
+ e[2] !== n || e[3] !== d || e[4] !== c.length ? (a = () => (!d && c.length > 0 && (p.current = setTimeout(f, n ? Wo : 0)), () => {
129
129
  p.current && clearTimeout(p.current);
130
- }), j = [f, a.length, n], e[2] = n, e[3] = f, e[4] = a.length, e[5] = c, e[6] = j) : (c = e[5], j = e[6]), mt(c, j);
130
+ }), x = [d, c.length, n], e[2] = n, e[3] = d, e[4] = c.length, e[5] = a, e[6] = x) : (a = e[5], x = e[6]), mt(a, x);
131
131
  let h;
132
- e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = (k, S) => {
133
- const L = {
134
- message: k,
135
- severity: S?.severity,
136
- autoHideDuration: S?.autoHideDuration ?? 5e3
132
+ e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = (L, b) => {
133
+ const v = {
134
+ message: L,
135
+ severity: b?.severity,
136
+ autoHideDuration: b?.autoHideDuration ?? 5e3
137
137
  };
138
- i((M) => [...M, L]);
138
+ i((M) => [...M, v]);
139
139
  }, e[7] = h) : h = e[7];
140
140
  const g = h;
141
- let _;
142
- e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = {
141
+ let y;
142
+ e[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = {
143
143
  notify: g
144
- }, e[8] = _) : _ = e[8];
145
- const y = n?.autoHideDuration;
146
- let b;
147
- e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = (k, S) => {
148
- S !== "clickaway" && m(null);
149
- }, e[9] = b) : b = e[9];
150
- const x = n?.message;
151
- let v;
152
- e[10] !== n ? (v = n?.severity ? /* @__PURE__ */ o.jsx(eo, { onClose: () => m(null), severity: n.severity, variant: "filled", children: n.message }) : void 0, e[10] = n, e[11] = v) : v = e[11];
153
- let I;
154
- e[12] !== f || e[13] !== r || e[14] !== v || e[15] !== y || e[16] !== x ? (I = /* @__PURE__ */ o.jsx(to, { open: f, autoHideDuration: y, onClose: b, anchorOrigin: r, message: x, children: v }), e[12] = f, e[13] = r, e[14] = v, e[15] = y, e[16] = x, e[17] = I) : I = e[17];
144
+ }, e[8] = y) : y = e[8];
145
+ const S = n?.autoHideDuration;
146
+ let _;
147
+ e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (L, b) => {
148
+ b !== "clickaway" && m(null);
149
+ }, e[9] = _) : _ = e[9];
150
+ const j = n?.message;
151
+ let k;
152
+ e[10] !== n ? (k = n?.severity ? /* @__PURE__ */ o.jsx(eo, { onClose: () => m(null), severity: n.severity, variant: "filled", children: n.message }) : void 0, e[10] = n, e[11] = k) : k = e[11];
155
153
  let C;
156
- return e[18] !== s || e[19] !== I ? (C = /* @__PURE__ */ o.jsxs(oo, { value: _, children: [
154
+ e[12] !== d || e[13] !== r || e[14] !== k || e[15] !== S || e[16] !== j ? (C = /* @__PURE__ */ o.jsx(to, { open: d, autoHideDuration: S, onClose: _, anchorOrigin: r, message: j, children: k }), e[12] = d, e[13] = r, e[14] = k, e[15] = S, e[16] = j, e[17] = C) : C = e[17];
155
+ let I;
156
+ return e[18] !== s || e[19] !== C ? (I = /* @__PURE__ */ o.jsxs(oo, { value: y, children: [
157
157
  s,
158
- I
159
- ] }), e[18] = s, e[19] = I, e[20] = C) : C = e[20], C;
160
- }, Ho = "PRD", Fo = (t) => rt.string().refine((e) => e.split("-").length > 2).transform((e) => e.split("-")[2].toUpperCase()).catch("LOCALHOST").parse(t), Yo = () => {
161
- const t = B.c(9), e = fo();
158
+ C
159
+ ] }), e[18] = s, e[19] = C, e[20] = I) : I = e[20], I;
160
+ }, Uo = "PRD", Ho = (t) => nt.string().refine((e) => e.split("-").length > 2).transform((e) => e.split("-")[2].toUpperCase()).catch("LOCALHOST").parse(t), Fo = () => {
161
+ const t = B.c(9), e = mo();
162
162
  let s;
163
- t[0] !== e.origin ? (s = Fo(e.origin), t[0] = e.origin, t[1] = s) : s = t[1];
164
- const r = s, l = r === Ho;
165
- let a, i;
166
- t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = /* @__PURE__ */ o.jsx("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }), i = /* @__PURE__ */ o.jsx(At, { variant: "h6", children: io.VITE_APP_TITLE }), t[2] = a, t[3] = i) : (a = t[2], i = t[3]);
163
+ t[0] !== e.origin ? (s = Ho(e.origin), t[0] = e.origin, t[1] = s) : s = t[1];
164
+ const r = s, l = r === Uo;
165
+ let c, i;
166
+ t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = /* @__PURE__ */ o.jsx("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }), i = /* @__PURE__ */ o.jsx($t, { variant: "h6", children: io.VITE_APP_TITLE }), t[2] = c, t[3] = i) : (c = t[2], i = t[3]);
167
167
  let n;
168
- t[4] !== r || t[5] !== l ? (n = !l && /* @__PURE__ */ o.jsx($t, { size: "small", label: r, color: "primary" }), t[4] = r, t[5] = l, t[6] = n) : n = t[6];
168
+ t[4] !== r || t[5] !== l ? (n = !l && /* @__PURE__ */ o.jsx(Et, { size: "small", label: r, color: "primary" }), t[4] = r, t[5] = l, t[6] = n) : n = t[6];
169
169
  let m;
170
- return t[7] !== n ? (m = /* @__PURE__ */ o.jsxs(Et, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
171
- a,
170
+ return t[7] !== n ? (m = /* @__PURE__ */ o.jsxs(Pt, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
171
+ c,
172
172
  i,
173
173
  n
174
174
  ] }), t[7] = n, t[8] = m) : m = t[8], m;
175
- }, it = 34, qo = dt(So)(({
175
+ }, it = 34, Yo = dt(vo)(({
176
176
  theme: t
177
177
  }) => ({
178
178
  borderRadius: 8,
@@ -193,7 +193,7 @@ const zo = 1e3, Uo = (t) => {
193
193
  "& .MuiAvatar-root": {
194
194
  backgroundColor: (t.vars ?? t).palette.action.active
195
195
  }
196
- })), Go = dt(ko)(({
196
+ })), qo = dt(Co)(({
197
197
  theme: t
198
198
  }) => ({
199
199
  borderRadius: 8,
@@ -214,7 +214,7 @@ const zo = 1e3, Uo = (t) => {
214
214
  "& .MuiAvatar-root": {
215
215
  backgroundColor: (t.vars ?? t).palette.action.active
216
216
  }
217
- })), Ko = (t) => {
217
+ })), Go = (t) => {
218
218
  const e = B.c(17), {
219
219
  item: s,
220
220
  collapsed: r
@@ -227,27 +227,27 @@ const zo = 1e3, Uo = (t) => {
227
227
  top: "calc(50% - 6px)",
228
228
  transform: "translate(-50%, -50%)"
229
229
  } : {}, e[0] = r, e[1] = l) : l = e[1];
230
- let a;
231
- e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
230
+ let c;
231
+ e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
232
232
  display: "flex",
233
233
  alignItems: "center",
234
234
  justifyContent: "center",
235
235
  minWidth: it
236
- }, e[2] = a) : a = e[2];
236
+ }, e[2] = c) : c = e[2];
237
237
  const i = s.icon ?? null;
238
238
  let n;
239
- e[3] !== r || e[4] !== s.icon || e[5] !== s.title ? (n = !s.icon && r ? /* @__PURE__ */ o.jsx(jo, { sx: {
239
+ e[3] !== r || e[4] !== s.icon || e[5] !== s.title ? (n = !s.icon && r ? /* @__PURE__ */ o.jsx(bo, { sx: {
240
240
  width: it - 7,
241
241
  height: it - 7,
242
242
  fontSize: 12
243
243
  }, children: s.title.split(" ").slice(0, 2).map(Xo) }) : null, e[3] = r, e[4] = s.icon, e[5] = s.title, e[6] = n) : n = e[6];
244
244
  let m;
245
- e[7] !== i || e[8] !== n ? (m = /* @__PURE__ */ o.jsxs(_o, { sx: a, children: [
245
+ e[7] !== i || e[8] !== n ? (m = /* @__PURE__ */ o.jsxs(So, { sx: c, children: [
246
246
  i,
247
247
  n
248
248
  ] }), e[7] = i, e[8] = n, e[9] = m) : m = e[9];
249
- let f;
250
- e[10] !== r || e[11] !== s.title ? (f = r ? /* @__PURE__ */ o.jsx(Co, { variant: "caption", sx: {
249
+ let d;
250
+ e[10] !== r || e[11] !== s.title ? (d = r ? /* @__PURE__ */ o.jsx(Lo, { variant: "caption", sx: {
251
251
  position: "absolute",
252
252
  bottom: -18,
253
253
  left: "50%",
@@ -259,15 +259,15 @@ const zo = 1e3, Uo = (t) => {
259
259
  overflow: "hidden",
260
260
  textOverflow: "ellipsis",
261
261
  maxWidth: ye - 28
262
- }, children: s.title }) : null, e[10] = r, e[11] = s.title, e[12] = f) : f = e[12];
262
+ }, children: s.title }) : null, e[10] = r, e[11] = s.title, e[12] = d) : d = e[12];
263
263
  let p;
264
- return e[13] !== l || e[14] !== m || e[15] !== f ? (p = /* @__PURE__ */ o.jsxs(ft, { sx: l, children: [
264
+ return e[13] !== l || e[14] !== m || e[15] !== d ? (p = /* @__PURE__ */ o.jsxs(ft, { sx: l, children: [
265
265
  m,
266
- f
267
- ] }), e[13] = l, e[14] = m, e[15] = f, e[16] = p) : p = e[16], p;
266
+ d
267
+ ] }), e[13] = l, e[14] = m, e[15] = d, e[16] = p) : p = e[16], p;
268
268
  }
269
269
  return null;
270
- }, Vo = (t) => {
270
+ }, Ko = (t) => {
271
271
  const e = B.c(7), {
272
272
  open: s,
273
273
  children: r
@@ -279,66 +279,66 @@ const zo = 1e3, Uo = (t) => {
279
279
  pl: "2px",
280
280
  pb: "10px"
281
281
  }, e[0] = l) : l = e[0];
282
- let a;
283
- e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
282
+ let c;
283
+ e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
284
284
  pt: 0.5,
285
285
  pb: 0.5,
286
286
  transform: "translateY(calc(50% - 30px))",
287
287
  maxHeight: "min(calc(100vh - 100px), 560px)",
288
288
  overflowY: "auto",
289
289
  overscrollBehavior: "contain"
290
- }, e[1] = a) : a = e[1];
290
+ }, e[1] = c) : c = e[1];
291
291
  let i;
292
- e[2] !== r ? (i = /* @__PURE__ */ o.jsx(ft, { sx: l, children: /* @__PURE__ */ o.jsx(Lo, { sx: a, children: r }) }), e[2] = r, e[3] = i) : i = e[3];
292
+ e[2] !== r ? (i = /* @__PURE__ */ o.jsx(ft, { sx: l, children: /* @__PURE__ */ o.jsx(Io, { sx: c, children: r }) }), e[2] = r, e[3] = i) : i = e[3];
293
293
  let n;
294
- return e[4] !== s || e[5] !== i ? (n = /* @__PURE__ */ o.jsx(Dt, { in: s, children: i }), e[4] = s, e[5] = i, e[6] = n) : n = e[6], n;
295
- }, Qo = (t) => {
294
+ return e[4] !== s || e[5] !== i ? (n = /* @__PURE__ */ o.jsx(Ot, { in: s, children: i }), e[4] = s, e[5] = i, e[6] = n) : n = e[6], n;
295
+ }, Vo = (t) => {
296
296
  const e = B.c(56), {
297
297
  item: s,
298
298
  isOpen: r,
299
299
  selected: l,
300
- disabled: a,
300
+ disabled: c,
301
301
  collapsed: i,
302
302
  isSidebarFullyExpanded: n,
303
303
  isSidebarFullyCollapsed: m,
304
- onClick: f,
304
+ onClick: d,
305
305
  renderNested: p,
306
306
  onClose: u
307
- } = t, d = n === void 0 ? !0 : n, [c, j] = W(null), h = `${s.to ?? s.title}`;
307
+ } = t, f = n === void 0 ? !0 : n, [a, x] = W(null), h = `${s.to ?? s.title}`;
308
308
  let g;
309
- e[0] !== i || e[1] !== r || e[2] !== m || e[3] !== d || e[4] !== s.children ? (g = (P) => i && m && s.children ? {
309
+ e[0] !== i || e[1] !== r || e[2] !== m || e[3] !== f || e[4] !== s.children ? (g = (D) => i && m && s.children ? {
310
310
  fontSize: 18,
311
311
  position: "absolute",
312
312
  top: "41.5%",
313
313
  right: "2px",
314
314
  transform: "translateY(-50%) rotate(-90deg)"
315
- } : !i && d && s.children ? {
315
+ } : !i && f && s.children ? {
316
316
  ml: 0.5,
317
317
  transform: `rotate(${r ? 0 : -90}deg)`,
318
- transition: P.transitions.create("transform", {
319
- easing: P.transitions.easing.sharp,
318
+ transition: D.transitions.create("transform", {
319
+ easing: D.transitions.easing.sharp,
320
320
  duration: 100
321
321
  })
322
322
  } : {
323
323
  display: "none"
324
- }, e[0] = i, e[1] = r, e[2] = m, e[3] = d, e[4] = s.children, e[5] = g) : g = e[5];
325
- const _ = g, y = s.children && !i, b = i ? 60 : 48;
326
- let x;
327
- e[6] !== b ? (x = {
324
+ }, e[0] = i, e[1] = r, e[2] = m, e[3] = f, e[4] = s.children, e[5] = g) : g = e[5];
325
+ const y = g, S = s.children && !i, _ = i ? 60 : 48;
326
+ let j;
327
+ e[6] !== _ ? (j = {
328
328
  px: 1.4,
329
- height: b
330
- }, e[6] = b, e[7] = x) : x = e[7];
331
- let v;
332
- e[8] !== a || e[9] !== l || e[10] !== x ? (v = {
333
- selected: l,
334
- disabled: a,
335
- sx: x
336
- }, e[8] = a, e[9] = l, e[10] = x, e[11] = v) : v = e[11];
337
- const I = v;
338
- let C;
339
- e[12] !== i || e[13] !== s ? (C = /* @__PURE__ */ o.jsx(Ko, { item: s, collapsed: i }), e[12] = i, e[13] = s, e[14] = C) : C = e[14];
329
+ height: _
330
+ }, e[6] = _, e[7] = j) : j = e[7];
340
331
  let k;
341
- e[15] !== i || e[16] !== s.title ? (k = !i && /* @__PURE__ */ o.jsx(Io, { primary: s.title, slotProps: {
332
+ e[8] !== c || e[9] !== l || e[10] !== j ? (k = {
333
+ selected: l,
334
+ disabled: c,
335
+ sx: j
336
+ }, e[8] = c, e[9] = l, e[10] = j, e[11] = k) : k = e[11];
337
+ const C = k;
338
+ let I;
339
+ e[12] !== i || e[13] !== s ? (I = /* @__PURE__ */ o.jsx(Go, { item: s, collapsed: i }), e[12] = i, e[13] = s, e[14] = I) : I = e[14];
340
+ let L;
341
+ e[15] !== i || e[16] !== s.title ? (L = !i && /* @__PURE__ */ o.jsx(_o, { primary: s.title, slotProps: {
342
342
  primary: {
343
343
  noWrap: !0,
344
344
  title: s.title
@@ -352,23 +352,23 @@ const zo = 1e3, Uo = (t) => {
352
352
  overflow: "hidden",
353
353
  textOverflow: "ellipsis"
354
354
  }
355
- } }), e[15] = i, e[16] = s.title, e[17] = k) : k = e[17];
356
- let S;
357
- e[18] !== _ || e[19] !== s.children ? (S = s.children ? /* @__PURE__ */ o.jsx(bo, { sx: _ }) : null, e[18] = _, e[19] = s.children, e[20] = S) : S = e[20];
358
- let L;
359
- e[21] !== C || e[22] !== k || e[23] !== S ? (L = /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
360
- C,
361
- k,
362
- S
363
- ] }), e[21] = C, e[22] = k, e[23] = S, e[24] = L) : L = e[24];
364
- const M = L;
355
+ } }), e[15] = i, e[16] = s.title, e[17] = L) : L = e[17];
356
+ let b;
357
+ e[18] !== y || e[19] !== s.children ? (b = s.children ? /* @__PURE__ */ o.jsx(yo, { sx: y }) : null, e[18] = y, e[19] = s.children, e[20] = b) : b = e[20];
358
+ let v;
359
+ e[21] !== I || e[22] !== L || e[23] !== b ? (v = /* @__PURE__ */ o.jsxs(o.Fragment, { children: [
360
+ I,
361
+ L,
362
+ b
363
+ ] }), e[21] = I, e[22] = L, e[23] = b, e[24] = v) : v = e[24];
364
+ const M = v;
365
365
  let w;
366
366
  e[25] !== i || e[26] !== s.children || e[27] !== h ? (w = s.children && i ? {
367
367
  onMouseEnter: () => {
368
- j(h);
368
+ x(h);
369
369
  },
370
370
  onMouseLeave: () => {
371
- j(null);
371
+ x(null);
372
372
  }
373
373
  } : {}, e[25] = i, e[26] = s.children, e[27] = h, e[28] = w) : w = e[28];
374
374
  let A;
@@ -378,67 +378,67 @@ const zo = 1e3, Uo = (t) => {
378
378
  overflowX: "hidden"
379
379
  }, e[29] = A) : A = e[29];
380
380
  let $;
381
- e[30] !== M || e[31] !== I || e[32] !== s || e[33] !== f || e[34] !== u || e[35] !== y ? ($ = y ? /* @__PURE__ */ o.jsx(qo, { ...I, onClick: () => f?.(s), children: M }) : /* @__PURE__ */ o.jsx(Go, { ...I, to: s.to, href: s.href, params: s.params, search: s.search, onClick: u, children: M }), e[30] = M, e[31] = I, e[32] = s, e[33] = f, e[34] = u, e[35] = y, e[36] = $) : $ = e[36];
381
+ e[30] !== M || e[31] !== C || e[32] !== s || e[33] !== d || e[34] !== u || e[35] !== S ? ($ = S ? /* @__PURE__ */ o.jsx(Yo, { ...C, onClick: () => d?.(s), children: M }) : /* @__PURE__ */ o.jsx(qo, { ...C, to: s.to, href: s.href, params: s.params, search: s.search, onClick: u, children: M }), e[30] = M, e[31] = C, e[32] = s, e[33] = d, e[34] = u, e[35] = S, e[36] = $) : $ = e[36];
382
382
  let T;
383
- e[37] !== i || e[38] !== c || e[39] !== s.children || e[40] !== h || e[41] !== p ? (T = s.children && i ? /* @__PURE__ */ o.jsx(Vo, { open: h === c, children: p?.(s.children) }) : null, e[37] = i, e[38] = c, e[39] = s.children, e[40] = h, e[41] = p, e[42] = T) : T = e[42];
383
+ e[37] !== i || e[38] !== a || e[39] !== s.children || e[40] !== h || e[41] !== p ? (T = s.children && i ? /* @__PURE__ */ o.jsx(Ko, { open: h === a, children: p?.(s.children) }) : null, e[37] = i, e[38] = a, e[39] = s.children, e[40] = h, e[41] = p, e[42] = T) : T = e[42];
384
384
  let R;
385
- e[43] !== w || e[44] !== $ || e[45] !== T ? (R = /* @__PURE__ */ o.jsxs(vo, { ...w, sx: A, children: [
385
+ e[43] !== w || e[44] !== $ || e[45] !== T ? (R = /* @__PURE__ */ o.jsxs(jo, { ...w, sx: A, children: [
386
386
  $,
387
387
  T
388
388
  ] }), e[43] = w, e[44] = $, e[45] = T, e[46] = R) : R = e[46];
389
389
  const E = R;
390
- let O;
391
- e[47] !== i || e[48] !== r || e[49] !== s.children || e[50] !== p ? (O = s.children && !i ? /* @__PURE__ */ o.jsx(Ot, { in: r, timeout: "auto", unmountOnExit: !0, children: p?.(s.children) }) : null, e[47] = i, e[48] = r, e[49] = s.children, e[50] = p, e[51] = O) : O = e[51];
392
- let D;
393
- return e[52] !== s.to || e[53] !== E || e[54] !== O ? (D = /* @__PURE__ */ o.jsxs(Qe, { children: [
390
+ let P;
391
+ e[47] !== i || e[48] !== r || e[49] !== s.children || e[50] !== p ? (P = s.children && !i ? /* @__PURE__ */ o.jsx(Nt, { in: r, timeout: "auto", unmountOnExit: !0, children: p?.(s.children) }) : null, e[47] = i, e[48] = r, e[49] = s.children, e[50] = p, e[51] = P) : P = e[51];
392
+ let N;
393
+ return e[52] !== s.to || e[53] !== E || e[54] !== P ? (N = /* @__PURE__ */ o.jsxs(be, { children: [
394
394
  E,
395
- O
396
- ] }, s.to), e[52] = s.to, e[53] = E, e[54] = O, e[55] = D) : D = e[55], D;
395
+ P
396
+ ] }, s.to), e[52] = s.to, e[53] = E, e[54] = P, e[55] = N) : N = e[55], N;
397
397
  };
398
398
  function Xo(t) {
399
399
  return t.charAt(0).toUpperCase();
400
400
  }
401
- const Jo = (t) => !("kind" in t), Zo = (t) => "kind" in t && t.kind === "divider", ct = (t) => "kind" in t && t.kind === "header", _t = (t) => {
401
+ const Qo = (t) => !("kind" in t), Jo = (t) => "kind" in t && t.kind === "divider", at = (t) => "kind" in t && t.kind === "header", It = (t) => {
402
402
  const e = B.c(30), {
403
403
  subNavigation: s,
404
404
  depth: r,
405
405
  collapsed: l,
406
- isPopover: a,
406
+ isPopover: c,
407
407
  isSidebarFullyExpanded: i,
408
408
  isSidebarFullyCollapsed: n,
409
409
  expandedWidth: m,
410
- renderItem: f,
410
+ renderItem: d,
411
411
  activePath: p,
412
412
  onNavigate: u,
413
- onClose: d
414
- } = t, c = r === void 0 ? 0 : r, j = i === void 0 ? !0 : i;
413
+ onClose: f
414
+ } = t, a = r === void 0 ? 0 : r, x = i === void 0 ? !0 : i;
415
415
  let h;
416
416
  e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = [], e[0] = h) : h = e[0];
417
- const [g, _] = W(h);
418
- let y, b;
419
- e[1] !== l ? (y = () => {
420
- l && _([]);
421
- }, b = [l], e[1] = l, e[2] = y, e[3] = b) : (y = e[2], b = e[3]), mt(y, b);
422
- let x;
423
- e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = (S) => _((L) => L.includes(S) ? L.filter((M) => M !== S) : [...L, S]), e[4] = x) : x = e[4];
424
- const v = x;
425
- let I;
426
- e[5] !== p || e[6] !== l || e[7] !== c || e[8] !== m || e[9] !== d || e[10] !== u ? (I = (S) => /* @__PURE__ */ o.jsx(_t, { subNavigation: S, depth: c + 1, isPopover: l, expandedWidth: m, activePath: p, onNavigate: u, onClose: d }), e[5] = p, e[6] = l, e[7] = c, e[8] = m, e[9] = d, e[10] = u, e[11] = I) : I = e[11];
427
- const C = I;
428
- let k;
429
- if (e[12] !== p || e[13] !== l || e[14] !== c || e[15] !== a || e[16] !== n || e[17] !== j || e[18] !== d || e[19] !== g || e[20] !== f || e[21] !== C || e[22] !== s) {
430
- const S = s.filter(es), L = a && c === 1 ? 0.5 : 0, M = c === 0 && !a ? 4 : 0.5, w = (a ? 1 : 2) * (a ? c - 1 : c), A = a && c === 1 ? 240 : "auto", $ = l ? ye : "auto";
417
+ const [g, y] = W(h);
418
+ let S, _;
419
+ e[1] !== l ? (S = () => {
420
+ l && y([]);
421
+ }, _ = [l], e[1] = l, e[2] = S, e[3] = _) : (S = e[2], _ = e[3]), mt(S, _);
422
+ let j;
423
+ e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = (b) => y((v) => v.includes(b) ? v.filter((M) => M !== b) : [...v, b]), e[4] = j) : j = e[4];
424
+ const k = j;
425
+ let C;
426
+ e[5] !== p || e[6] !== l || e[7] !== a || e[8] !== m || e[9] !== f || e[10] !== u ? (C = (b) => /* @__PURE__ */ o.jsx(It, { subNavigation: b, depth: a + 1, isPopover: l, expandedWidth: m, activePath: p, onNavigate: u, onClose: f }), e[5] = p, e[6] = l, e[7] = a, e[8] = m, e[9] = f, e[10] = u, e[11] = C) : C = e[11];
427
+ const I = C;
428
+ let L;
429
+ if (e[12] !== p || e[13] !== l || e[14] !== a || e[15] !== c || e[16] !== n || e[17] !== x || e[18] !== f || e[19] !== g || e[20] !== d || e[21] !== I || e[22] !== s) {
430
+ const b = s.filter(Zo), v = c && a === 1 ? 0.5 : 0, M = a === 0 && !c ? 4 : 0.5, w = (c ? 1 : 2) * (c ? a - 1 : a), A = c && a === 1 ? 240 : "auto", $ = l ? ye : "auto";
431
431
  let T;
432
- e[24] !== M || e[25] !== w || e[26] !== A || e[27] !== $ || e[28] !== L ? (T = {
432
+ e[24] !== M || e[25] !== w || e[26] !== A || e[27] !== $ || e[28] !== v ? (T = {
433
433
  padding: 0,
434
- mt: L,
434
+ mt: v,
435
435
  mb: M,
436
436
  pl: w,
437
437
  minWidth: A,
438
438
  width: $
439
- }, e[24] = M, e[25] = w, e[26] = A, e[27] = $, e[28] = L, e[29] = T) : T = e[29], k = /* @__PURE__ */ o.jsx(go, { sx: T, children: S.map((R, E) => {
440
- if (ct(R))
441
- return /* @__PURE__ */ o.jsx(yo, { sx: {
439
+ }, e[24] = M, e[25] = w, e[26] = A, e[27] = $, e[28] = v, e[29] = T) : T = e[29], L = /* @__PURE__ */ o.jsx(xo, { sx: T, children: b.map((R, E) => {
440
+ if (at(R))
441
+ return /* @__PURE__ */ o.jsx(go, { sx: {
442
442
  fontSize: 12,
443
443
  fontWeight: "700",
444
444
  height: l ? 0 : 40,
@@ -449,97 +449,121 @@ const Jo = (t) => !("kind" in t), Zo = (t) => "kind" in t && t.kind === "divider
449
449
  zIndex: 2,
450
450
  bgcolor: "transparent",
451
451
  position: "static"
452
- }, children: R.title }, `subheader-${c}-${E}`);
453
- if (Zo(R)) {
454
- const P = S[E + 1];
455
- return /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(xo, { sx: {
452
+ }, children: R.title }, `subheader-${a}-${E}`);
453
+ if (Jo(R)) {
454
+ const D = b[E + 1];
455
+ return /* @__PURE__ */ o.jsx("li", { children: /* @__PURE__ */ o.jsx(ho, { sx: {
456
456
  mx: 1,
457
457
  mt: 1,
458
- mb: ct(P) && !l ? 0 : 1
459
- } }) }, `divider-${c}-${E}`);
458
+ mb: at(D) && !l ? 0 : 1
459
+ } }) }, `divider-${a}-${E}`);
460
460
  }
461
- if (!Jo(R))
461
+ if (!Qo(R))
462
462
  return null;
463
- const O = `item-${c}-${E}`, D = `${c}-${E}-${R.title}`;
464
- return f ? /* @__PURE__ */ o.jsx(Qe, { children: f(R, {
463
+ const P = `item-${a}-${E}`, N = `${a}-${E}-${R.title}`;
464
+ return d ? /* @__PURE__ */ o.jsx(be, { children: d(R, {
465
465
  collapsed: !!l
466
- }) }, O) : /* @__PURE__ */ o.jsx(Qo, { item: R, isOpen: g.includes(D), selected: p === R.to, collapsed: l, isSidebarFullyExpanded: j, isSidebarFullyCollapsed: n, onClick: R.children && !l ? () => v(D) : void 0, renderNested: C, onClose: d }, O);
467
- }) }), e[12] = p, e[13] = l, e[14] = c, e[15] = a, e[16] = n, e[17] = j, e[18] = d, e[19] = g, e[20] = f, e[21] = C, e[22] = s, e[23] = k;
466
+ }) }, P) : /* @__PURE__ */ o.jsx(Vo, { item: R, isOpen: g.includes(N), selected: p === R.to, collapsed: l, isSidebarFullyExpanded: x, isSidebarFullyCollapsed: n, onClick: R.children && !l ? () => k(N) : void 0, renderNested: I, onClose: f }, P);
467
+ }) }), e[12] = p, e[13] = l, e[14] = a, e[15] = c, e[16] = n, e[17] = x, e[18] = f, e[19] = g, e[20] = d, e[21] = I, e[22] = s, e[23] = L;
468
468
  } else
469
- k = e[23];
470
- return k;
469
+ L = e[23];
470
+ return L;
471
471
  };
472
- function es(t) {
472
+ function Zo(t) {
473
473
  return !t.hidden;
474
474
  }
475
- const ye = 84, nt = 320, bt = 64, ts = (t) => {
476
- const e = B.c(29), {
475
+ const bt = (t) => {
476
+ const e = B.c(17), {
477
477
  navigation: s,
478
- expanded: r,
479
- setExpanded: l
480
- } = t, a = po(), i = uo(), n = mo();
481
- let m;
482
- e[0] !== n.breakpoints ? (m = n.breakpoints.up("sm"), e[0] = n.breakpoints, e[1] = m) : m = e[1];
483
- const f = Nt(m);
484
- let p;
485
- e[2] !== r || e[3] !== a || e[4] !== s || e[5] !== i.location.pathname || e[6] !== l || e[7] !== f ? (p = (g) => /* @__PURE__ */ o.jsx(ft, { component: "nav", sx: {
478
+ collapsed: r,
479
+ expanded: l,
480
+ setExpanded: c,
481
+ showPermanent: i
482
+ } = t, n = fo(), m = po(), d = r ? "stable" : "auto", p = s[0] && at(s[0]) && !r ? 0 : 2;
483
+ let u;
484
+ e[0] !== d || e[1] !== p ? (u = {
486
485
  height: "100%",
487
486
  display: "flex",
488
487
  flexDirection: "column",
489
488
  justifyContent: "space-between",
490
489
  overflow: "auto",
491
- scrollbarGutter: g ? "stable" : "auto",
490
+ scrollbarGutter: d,
492
491
  overflowX: "hidden",
493
- pt: s[0] && ct(s[0]) && !g ? 0 : 2
494
- }, children: /* @__PURE__ */ o.jsx(_t, { subNavigation: s, collapsed: g, isSidebarFullyExpanded: r, isSidebarFullyCollapsed: !r, expandedWidth: nt, activePath: i.location.pathname, onNavigate: a, onClose: f ? void 0 : () => l(!1) }) }), e[2] = r, e[3] = a, e[4] = s, e[5] = i.location.pathname, e[6] = l, e[7] = f, e[8] = p) : p = e[8];
495
- const u = p;
496
- if (f) {
497
- const g = r ? nt : ye, _ = r ? nt : ye;
498
- let y;
499
- e[9] !== _ ? (y = {
500
- position: "absolute",
501
- top: `${bt}px`,
502
- height: `calc(100% - ${bt}px)`,
503
- width: _,
504
- background: "transparent",
505
- borderTop: "1px solid",
506
- borderColor: "var(--mui-palette-divider)",
507
- boxShadow: "none"
508
- }, e[9] = _, e[10] = y) : y = e[10];
509
- let b;
510
- e[11] !== g || e[12] !== y ? (b = {
511
- width: g,
512
- "& .MuiDrawer-paper": y
513
- }, e[11] = g, e[12] = y, e[13] = b) : b = e[13];
514
- const x = !r;
515
- let v;
516
- e[14] !== u || e[15] !== x ? (v = u(x), e[14] = u, e[15] = x, e[16] = v) : v = e[16];
517
- let I;
518
- return e[17] !== b || e[18] !== v ? (I = /* @__PURE__ */ o.jsx(xt, { variant: "permanent", sx: b, children: v }), e[17] = b, e[18] = v, e[19] = I) : I = e[19], I;
519
- }
520
- let d;
521
- e[20] !== l ? (d = () => l(!1), e[20] = l, e[21] = d) : d = e[21];
492
+ pt: p
493
+ }, e[0] = d, e[1] = p, e[2] = u) : u = e[2];
494
+ const f = !l;
495
+ let a;
496
+ e[3] !== c || e[4] !== i ? (a = i ? void 0 : () => c(!1), e[3] = c, e[4] = i, e[5] = a) : a = e[5];
497
+ let x;
498
+ e[6] !== r || e[7] !== l || e[8] !== n || e[9] !== s || e[10] !== m.location.pathname || e[11] !== f || e[12] !== a ? (x = /* @__PURE__ */ o.jsx(It, { subNavigation: s, collapsed: r, isSidebarFullyExpanded: l, isSidebarFullyCollapsed: f, expandedWidth: ct, activePath: m.location.pathname, onNavigate: n, onClose: a }), e[6] = r, e[7] = l, e[8] = n, e[9] = s, e[10] = m.location.pathname, e[11] = f, e[12] = a, e[13] = x) : x = e[13];
499
+ let h;
500
+ return e[14] !== u || e[15] !== x ? (h = /* @__PURE__ */ o.jsx(ft, { component: "nav", sx: u, children: x }), e[14] = u, e[15] = x, e[16] = h) : h = e[16], h;
501
+ }, ye = 84, ct = 320, jt = 64, es = (t) => {
502
+ const e = B.c(28), {
503
+ navigation: s,
504
+ expanded: r,
505
+ setExpanded: l
506
+ } = t;
522
507
  let c;
523
- e[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
508
+ e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = {
509
+ xs: "none",
510
+ sm: "block"
511
+ }, e[0] = c) : c = e[0];
512
+ const i = r ? ct : ye, n = r ? ct : ye;
513
+ let m;
514
+ e[1] !== n ? (m = {
515
+ position: "absolute",
516
+ top: `${jt}px`,
517
+ height: `calc(100% - ${jt}px)`,
518
+ width: n,
519
+ background: "transparent",
520
+ borderTop: "1px solid",
521
+ borderColor: "var(--mui-palette-divider)",
522
+ boxShadow: "none"
523
+ }, e[1] = n, e[2] = m) : m = e[2];
524
+ let d;
525
+ e[3] !== i || e[4] !== m ? (d = {
526
+ display: c,
527
+ width: i,
528
+ "& .MuiDrawer-paper": m
529
+ }, e[3] = i, e[4] = m, e[5] = d) : d = e[5];
530
+ const p = !r;
531
+ let u;
532
+ e[6] !== r || e[7] !== s || e[8] !== l || e[9] !== p ? (u = /* @__PURE__ */ o.jsx(bt, { navigation: s, collapsed: p, expanded: r, setExpanded: l, showPermanent: !0 }), e[6] = r, e[7] = s, e[8] = l, e[9] = p, e[10] = u) : u = e[10];
533
+ let f;
534
+ e[11] !== d || e[12] !== u ? (f = /* @__PURE__ */ o.jsx(xt, { variant: "permanent", sx: d, children: u }), e[11] = d, e[12] = u, e[13] = f) : f = e[13];
535
+ let a;
536
+ e[14] !== l ? (a = () => l(!1), e[14] = l, e[15] = a) : a = e[15];
537
+ let x;
538
+ e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = {
539
+ display: {
540
+ xs: "block",
541
+ sm: "none"
542
+ },
524
543
  "& .MuiDrawer-paper": {
525
544
  width: "min(280px, calc(100vw - 56px))"
526
545
  }
527
- }, e[22] = c) : c = e[22];
528
- let j;
529
- e[23] !== u ? (j = u(!1), e[23] = u, e[24] = j) : j = e[24];
546
+ }, e[16] = x) : x = e[16];
530
547
  let h;
531
- return e[25] !== r || e[26] !== d || e[27] !== j ? (h = /* @__PURE__ */ o.jsx(xt, { open: r, onClose: d, sx: c, children: j }), e[25] = r, e[26] = d, e[27] = j, e[28] = h) : h = e[28], h;
532
- }, os = "graph", It = Bo.create({
548
+ e[17] !== r || e[18] !== s || e[19] !== l ? (h = /* @__PURE__ */ o.jsx(bt, { navigation: s, collapsed: !1, expanded: r, setExpanded: l, showPermanent: !1 }), e[17] = r, e[18] = s, e[19] = l, e[20] = h) : h = e[20];
549
+ let g;
550
+ e[21] !== r || e[22] !== h || e[23] !== a ? (g = /* @__PURE__ */ o.jsx(xt, { open: r, onClose: a, sx: x, children: h }), e[21] = r, e[22] = h, e[23] = a, e[24] = g) : g = e[24];
551
+ let y;
552
+ return e[25] !== g || e[26] !== f ? (y = /* @__PURE__ */ o.jsxs(be, { children: [
553
+ f,
554
+ g
555
+ ] }), e[25] = g, e[26] = f, e[27] = y) : y = e[27], y;
556
+ }, ts = "graph", Lt = Do.create({
533
557
  baseURL: "https://graph.microsoft.com/v1.0"
534
558
  });
535
- It.interceptors.request.use(async (t) => {
536
- const e = await no("graph");
559
+ Lt.interceptors.request.use(async (t) => {
560
+ const e = await lo("graph");
537
561
  return t.headers.set("Authorization", `Bearer ${e}`), t;
538
562
  });
539
- const ss = {
563
+ const os = {
540
564
  sessionUserPhoto: () => No({
541
- queryKey: [os, "me", "photo"],
542
- queryFn: async () => await It.request({
565
+ queryKey: [ts, "me", "photo"],
566
+ queryFn: async () => await Lt.request({
543
567
  method: "GET",
544
568
  url: "/me/photo/$value",
545
569
  responseType: "blob"
@@ -548,29 +572,29 @@ const ss = {
548
572
  gcTime: 1 / 0,
549
573
  select: (t) => URL.createObjectURL(t)
550
574
  })
551
- }, jt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), is = () => {
552
- const t = B.c(148), [e, s] = W(), [r, l] = W("settings"), a = !!e, {
575
+ }, vt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), ss = () => {
576
+ const t = B.c(148), [e, s] = W(), [r, l] = W("settings"), c = !!e, {
553
577
  t: i,
554
578
  i18n: n
555
- } = Xt(), {
579
+ } = Qt(), {
556
580
  mode: m,
557
- setMode: f
558
- } = Pt(), {
581
+ setMode: d
582
+ } = Dt(), {
559
583
  instance: p
560
- } = vt(), u = St(), d = so();
561
- let c;
562
- t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = ss.sessionUserPhoto(), t[0] = c) : c = t[0];
563
- let j;
564
- t[1] !== u ? (j = {
565
- ...c,
584
+ } = St(), u = _t(), f = so();
585
+ let a;
586
+ t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = os.sessionUserPhoto(), t[0] = a) : a = t[0];
587
+ let x;
588
+ t[1] !== u ? (x = {
589
+ ...a,
566
590
  enabled: u
567
- }, t[1] = u, t[2] = j) : j = t[2];
591
+ }, t[1] = u, t[2] = x) : x = t[2];
568
592
  const {
569
593
  data: h
570
- } = Po(j);
571
- let g, _, y, b, x, v, I;
572
- if (t[3] !== n || t[4] !== m || t[5] !== f || t[6] !== i) {
573
- const kt = (Array.isArray(n.options.supportedLngs) ? n.options.supportedLngs : []).filter(ns), pt = new Intl.DisplayNames([n.language], {
594
+ } = Oo(x);
595
+ let g, y, S, _, j, k, C;
596
+ if (t[3] !== n || t[4] !== m || t[5] !== d || t[6] !== i) {
597
+ const wt = (Array.isArray(n.options.supportedLngs) ? n.options.supportedLngs : []).filter(is), pt = new Intl.DisplayNames([n.language], {
574
598
  type: "language"
575
599
  });
576
600
  let Z;
@@ -578,7 +602,7 @@ const ss = {
578
602
  let ee;
579
603
  t[16] !== Z ? (ee = {
580
604
  mode: "light",
581
- icon: Ao,
605
+ icon: Ro,
582
606
  label: Z
583
607
  }, t[16] = Z, t[17] = ee) : ee = t[17];
584
608
  let te;
@@ -586,7 +610,7 @@ const ss = {
586
610
  let oe;
587
611
  t[20] !== te ? (oe = {
588
612
  mode: "dark",
589
- icon: Mo,
613
+ icon: To,
590
614
  label: te
591
615
  }, t[20] = te, t[21] = oe) : oe = t[21];
592
616
  let se;
@@ -594,133 +618,133 @@ const ss = {
594
618
  let ie;
595
619
  t[24] !== se ? (ie = {
596
620
  mode: "system",
597
- icon: Oo,
621
+ icon: Eo,
598
622
  label: se
599
623
  }, t[24] = se, t[25] = ie) : ie = t[25];
600
- let Se;
601
- t[26] !== ee || t[27] !== oe || t[28] !== ie ? (Se = [ee, oe, ie], t[26] = ee, t[27] = oe, t[28] = ie, t[29] = Se) : Se = t[29];
602
- const ne = Se;
603
624
  let _e;
604
- t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_e = (N) => s(N.currentTarget), t[30] = _e) : _e = t[30], y = _e;
625
+ t[26] !== ee || t[27] !== oe || t[28] !== ie ? (_e = [ee, oe, ie], t[26] = ee, t[27] = oe, t[28] = ie, t[29] = _e) : _e = t[29];
626
+ const le = _e;
605
627
  let Ie;
606
- t[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ie = () => {
607
- s(void 0), setTimeout(() => l("settings"), 300);
608
- }, t[31] = Ie) : Ie = t[31], _ = Ie;
628
+ t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ie = (O) => s(O.currentTarget), t[30] = Ie) : Ie = t[30], S = Ie;
609
629
  let Le;
610
- t[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Le = (N) => () => l(N), t[32] = Le) : Le = t[32];
611
- const Ce = Le;
612
- let ke;
613
- t[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ke = {
630
+ t[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Le = () => {
631
+ s(void 0), setTimeout(() => l("settings"), 300);
632
+ }, t[31] = Le) : Le = t[31], y = Le;
633
+ let Ce;
634
+ t[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ce = (O) => () => l(O), t[32] = Ce) : Ce = t[32];
635
+ const ke = Ce;
636
+ let we;
637
+ t[33] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (we = {
614
638
  backgroundColor: "transparent"
615
- }, t[33] = ke) : ke = t[33];
616
- let le;
617
- t[34] !== i ? (le = i("Layout.Settings"), t[34] = i, t[35] = le) : le = t[35];
639
+ }, t[33] = we) : we = t[33];
640
+ let ne;
641
+ t[34] !== i ? (ne = i("Layout.Settings"), t[34] = i, t[35] = ne) : ne = t[35];
618
642
  let re;
619
- t[36] !== le ? (re = /* @__PURE__ */ o.jsx(ot, { sx: ke, children: le }), t[36] = le, t[37] = re) : re = t[37];
620
- let we, Te;
621
- t[38] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (we = Ce("theme"), Te = {
643
+ t[36] !== ne ? (re = /* @__PURE__ */ o.jsx(ot, { sx: we, children: ne }), t[36] = ne, t[37] = re) : re = t[37];
644
+ let Te, Me;
645
+ t[38] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Te = ke("theme"), Me = {
622
646
  py: 0.3
623
- }, t[38] = we, t[39] = Te) : (we = t[38], Te = t[39]);
624
- let Me;
625
- t[40] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Me = /* @__PURE__ */ o.jsx(ge, { children: /* @__PURE__ */ o.jsx(To, {}) }), t[40] = Me) : Me = t[40];
647
+ }, t[38] = Te, t[39] = Me) : (Te = t[38], Me = t[39]);
648
+ let Re;
649
+ t[40] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Re = /* @__PURE__ */ o.jsx(ge, { children: /* @__PURE__ */ o.jsx(wo, {}) }), t[40] = Re) : Re = t[40];
626
650
  let ae;
627
651
  t[41] !== i ? (ae = i("Layout.Appearance"), t[41] = i, t[42] = ae) : ae = t[42];
628
652
  let ce;
629
- t[43] !== ne || t[44] !== m || t[45] !== i ? (ce = ne.find((N) => N.mode === m)?.label ?? i("Layout.System"), t[43] = ne, t[44] = m, t[45] = i, t[46] = ce) : ce = t[46];
653
+ t[43] !== le || t[44] !== m || t[45] !== i ? (ce = le.find((O) => O.mode === m)?.label ?? i("Layout.System"), t[43] = le, t[44] = m, t[45] = i, t[46] = ce) : ce = t[46];
630
654
  let me;
631
655
  t[47] !== ae || t[48] !== ce ? (me = /* @__PURE__ */ o.jsx(z, { primary: ae, secondary: ce }), t[47] = ae, t[48] = ce, t[49] = me) : me = t[49];
632
- let Re;
633
- t[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Re = /* @__PURE__ */ o.jsx(yt, {}), t[50] = Re) : Re = t[50];
656
+ let Ae;
657
+ t[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ae = /* @__PURE__ */ o.jsx(yt, {}), t[50] = Ae) : Ae = t[50];
634
658
  let de;
635
- t[51] !== me ? (de = /* @__PURE__ */ o.jsxs(xe, { onClick: we, sx: Te, children: [
636
- Me,
659
+ t[51] !== me ? (de = /* @__PURE__ */ o.jsxs(xe, { onClick: Te, sx: Me, children: [
660
+ Re,
637
661
  me,
638
- Re
662
+ Ae
639
663
  ] }), t[51] = me, t[52] = de) : de = t[52];
640
- let Ae, $e;
641
- t[53] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ae = Ce("language"), $e = {
664
+ let $e, Ee;
665
+ t[53] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($e = ke("language"), Ee = {
642
666
  py: 0.3
643
- }, t[53] = Ae, t[54] = $e) : (Ae = t[53], $e = t[54]);
644
- let Ee;
645
- t[55] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ee = /* @__PURE__ */ o.jsx(ge, { children: /* @__PURE__ */ o.jsx(Do, {}) }), t[55] = Ee) : Ee = t[55];
667
+ }, t[53] = $e, t[54] = Ee) : ($e = t[53], Ee = t[54]);
668
+ let Pe;
669
+ t[55] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Pe = /* @__PURE__ */ o.jsx(ge, { children: /* @__PURE__ */ o.jsx(Po, {}) }), t[55] = Pe) : Pe = t[55];
670
+ let Ne;
671
+ t[56] !== i ? (Ne = i("Layout.Language"), t[56] = i, t[57] = Ne) : Ne = t[57];
646
672
  let Oe;
647
- t[56] !== i ? (Oe = i("Layout.Language"), t[56] = i, t[57] = Oe) : Oe = t[57];
648
- let De;
649
- t[58] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (De = /* @__PURE__ */ o.jsx(yt, {}), t[58] = De) : De = t[58];
650
- const et = /* @__PURE__ */ o.jsxs(xe, { onClick: Ae, sx: $e, children: [
651
- Ee,
652
- /* @__PURE__ */ o.jsx(z, { primary: Oe, secondary: jt(pt.of(n.language)) }),
653
- De
673
+ t[58] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Oe = /* @__PURE__ */ o.jsx(yt, {}), t[58] = Oe) : Oe = t[58];
674
+ const et = /* @__PURE__ */ o.jsxs(xe, { onClick: $e, sx: Ee, children: [
675
+ Pe,
676
+ /* @__PURE__ */ o.jsx(z, { primary: Ne, secondary: vt(pt.of(n.language)) }),
677
+ Oe
654
678
  ] });
655
- let Ne;
656
- t[59] !== re || t[60] !== de || t[61] !== et ? (Ne = /* @__PURE__ */ o.jsxs(Ye, { component: "nav", subheader: re, children: [
679
+ let De;
680
+ t[59] !== re || t[60] !== de || t[61] !== et ? (De = /* @__PURE__ */ o.jsxs(qe, { component: "nav", subheader: re, children: [
657
681
  de,
658
682
  et
659
- ] }), t[59] = re, t[60] = de, t[61] = et, t[62] = Ne) : Ne = t[62], b = Ne;
660
- let Pe, Be;
661
- t[63] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Pe = Ce("settings"), Be = {
683
+ ] }), t[59] = re, t[60] = de, t[61] = et, t[62] = De) : De = t[62], _ = De;
684
+ let Be, We;
685
+ t[63] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Be = ke("settings"), We = {
662
686
  backgroundColor: "transparent",
663
687
  display: "flex",
664
688
  alignItems: "center",
665
689
  px: 1,
666
690
  cursor: "pointer"
667
- }, t[63] = Pe, t[64] = Be) : (Pe = t[63], Be = t[64]);
668
- let We;
669
- t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (We = /* @__PURE__ */ o.jsx(qe, { size: "small", sx: {
691
+ }, t[63] = Be, t[64] = We) : (Be = t[63], We = t[64]);
692
+ let ze;
693
+ t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ze = /* @__PURE__ */ o.jsx(Ge, { size: "small", sx: {
670
694
  mr: 0.5
671
- }, children: /* @__PURE__ */ o.jsx(gt, { fontSize: "small" }) }), t[65] = We) : We = t[65];
695
+ }, children: /* @__PURE__ */ o.jsx(gt, { fontSize: "small" }) }), t[65] = ze) : ze = t[65];
672
696
  let fe;
673
697
  t[66] !== i ? (fe = i("Layout.Appearance"), t[66] = i, t[67] = fe) : fe = t[67];
674
698
  let pe;
675
- t[68] !== fe ? (pe = /* @__PURE__ */ o.jsxs(ot, { onClick: Pe, sx: Be, children: [
676
- We,
699
+ t[68] !== fe ? (pe = /* @__PURE__ */ o.jsxs(ot, { onClick: Be, sx: We, children: [
700
+ ze,
677
701
  " ",
678
702
  fe
679
703
  ] }), t[68] = fe, t[69] = pe) : pe = t[69];
680
704
  let ue;
681
- t[70] !== ne || t[71] !== m || t[72] !== f ? (ue = ne.map((N) => {
705
+ t[70] !== le || t[71] !== m || t[72] !== d ? (ue = le.map((O) => {
682
706
  const {
683
707
  mode: tt,
684
- icon: wt,
685
- label: Tt
686
- } = N;
708
+ icon: Tt,
709
+ label: Mt
710
+ } = O;
687
711
  return /* @__PURE__ */ o.jsxs(xe, { onClick: () => {
688
- f(tt), _();
712
+ d(tt), y();
689
713
  }, selected: m === tt, children: [
690
- /* @__PURE__ */ o.jsx(ge, { children: /* @__PURE__ */ o.jsx(wt, {}) }),
691
- /* @__PURE__ */ o.jsx(z, { primary: Tt })
714
+ /* @__PURE__ */ o.jsx(ge, { children: /* @__PURE__ */ o.jsx(Tt, {}) }),
715
+ /* @__PURE__ */ o.jsx(z, { primary: Mt })
692
716
  ] }, tt);
693
- }), t[70] = ne, t[71] = m, t[72] = f, t[73] = ue) : ue = t[73];
694
- let ze;
695
- t[74] !== pe || t[75] !== ue ? (ze = /* @__PURE__ */ o.jsx(Ye, { subheader: pe, children: ue }), t[74] = pe, t[75] = ue, t[76] = ze) : ze = t[76], I = ze, g = Ye;
696
- let Ue, He;
697
- t[77] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ue = Ce("settings"), He = {
717
+ }), t[70] = le, t[71] = m, t[72] = d, t[73] = ue) : ue = t[73];
718
+ let Ue;
719
+ t[74] !== pe || t[75] !== ue ? (Ue = /* @__PURE__ */ o.jsx(qe, { subheader: pe, children: ue }), t[74] = pe, t[75] = ue, t[76] = Ue) : Ue = t[76], C = Ue, g = qe;
720
+ let He, Fe;
721
+ t[77] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (He = ke("settings"), Fe = {
698
722
  backgroundColor: "transparent",
699
723
  display: "flex",
700
724
  alignItems: "center",
701
725
  px: 1,
702
726
  cursor: "pointer"
703
- }, t[77] = Ue, t[78] = He) : (Ue = t[77], He = t[78]);
704
- let Fe;
705
- t[79] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Fe = /* @__PURE__ */ o.jsx(qe, { size: "small", sx: {
727
+ }, t[77] = He, t[78] = Fe) : (He = t[77], Fe = t[78]);
728
+ let Ye;
729
+ t[79] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ye = /* @__PURE__ */ o.jsx(Ge, { size: "small", sx: {
706
730
  mr: 0.5
707
- }, children: /* @__PURE__ */ o.jsx(gt, { fontSize: "small" }) }), t[79] = Fe) : Fe = t[79];
731
+ }, children: /* @__PURE__ */ o.jsx(gt, { fontSize: "small" }) }), t[79] = Ye) : Ye = t[79];
708
732
  let he;
709
- t[80] !== i ? (he = i("Layout.Language"), t[80] = i, t[81] = he) : he = t[81], t[82] !== he ? (x = /* @__PURE__ */ o.jsxs(ot, { onClick: Ue, sx: He, children: [
710
- Fe,
733
+ t[80] !== i ? (he = i("Layout.Language"), t[80] = i, t[81] = he) : he = t[81], t[82] !== he ? (j = /* @__PURE__ */ o.jsxs(ot, { onClick: He, sx: Fe, children: [
734
+ Ye,
711
735
  " ",
712
736
  he
713
- ] }), t[82] = he, t[83] = x) : x = t[83], v = kt.map((N) => /* @__PURE__ */ o.jsxs(xe, { onClick: () => n.changeLanguage(N).finally(() => _()), selected: n.resolvedLanguage === N, children: [
714
- /* @__PURE__ */ o.jsx(ge, { children: n.resolvedLanguage === N && /* @__PURE__ */ o.jsx(Ro, {}) }),
715
- /* @__PURE__ */ o.jsx(z, { primary: jt(pt.of(N)) })
716
- ] }, N)), t[3] = n, t[4] = m, t[5] = f, t[6] = i, t[7] = g, t[8] = _, t[9] = y, t[10] = b, t[11] = x, t[12] = v, t[13] = I;
737
+ ] }), t[82] = he, t[83] = j) : j = t[83], k = wt.map((O) => /* @__PURE__ */ o.jsxs(xe, { onClick: () => n.changeLanguage(O).finally(() => y()), selected: n.resolvedLanguage === O, children: [
738
+ /* @__PURE__ */ o.jsx(ge, { children: n.resolvedLanguage === O && /* @__PURE__ */ o.jsx(Mo, {}) }),
739
+ /* @__PURE__ */ o.jsx(z, { primary: vt(pt.of(O)) })
740
+ ] }, O)), t[3] = n, t[4] = m, t[5] = d, t[6] = i, t[7] = g, t[8] = y, t[9] = S, t[10] = _, t[11] = j, t[12] = k, t[13] = C;
717
741
  } else
718
- g = t[7], _ = t[8], y = t[9], b = t[10], x = t[11], v = t[12], I = t[13];
719
- let C;
720
- t[84] !== g || t[85] !== x || t[86] !== v ? (C = /* @__PURE__ */ o.jsx(g, { subheader: x, children: v }), t[84] = g, t[85] = x, t[86] = v, t[87] = C) : C = t[87];
721
- const k = C;
722
- let S;
723
- t[88] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = {
742
+ g = t[7], y = t[8], S = t[9], _ = t[10], j = t[11], k = t[12], C = t[13];
743
+ let I;
744
+ t[84] !== g || t[85] !== j || t[86] !== k ? (I = /* @__PURE__ */ o.jsx(g, { subheader: j, children: k }), t[84] = g, t[85] = j, t[86] = k, t[87] = I) : I = t[87];
745
+ const L = I;
746
+ let b;
747
+ t[88] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = {
724
748
  width: {
725
749
  xs: 32,
726
750
  sm: 40
@@ -729,11 +753,11 @@ const ss = {
729
753
  xs: 32,
730
754
  sm: 40
731
755
  }
732
- }, t[88] = S) : S = t[88];
733
- let L;
734
- t[89] !== h ? (L = /* @__PURE__ */ o.jsx(lt, { children: /* @__PURE__ */ o.jsx(Bt, { src: h, sx: S }) }), t[89] = h, t[90] = L) : L = t[90];
756
+ }, t[88] = b) : b = t[88];
757
+ let v;
758
+ t[89] !== h ? (v = /* @__PURE__ */ o.jsx(lt, { children: /* @__PURE__ */ o.jsx(Bt, { src: h, sx: b }) }), t[89] = h, t[90] = v) : v = t[90];
735
759
  let M;
736
- t[91] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ o.jsx(ut, { children: /* @__PURE__ */ o.jsx(wo, { sx: {
760
+ t[91] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ o.jsx(ut, { children: /* @__PURE__ */ o.jsx(ko, { sx: {
737
761
  width: {
738
762
  xs: 32,
739
763
  sm: 40
@@ -744,89 +768,89 @@ const ss = {
744
768
  }
745
769
  } }) }), t[91] = M) : M = t[91];
746
770
  let w;
747
- t[92] !== y || t[93] !== L ? (w = /* @__PURE__ */ o.jsxs(qe, { size: "small", edge: "end", onClick: y, children: [
748
- L,
771
+ t[92] !== S || t[93] !== v ? (w = /* @__PURE__ */ o.jsxs(Ge, { size: "small", edge: "end", onClick: S, children: [
772
+ v,
749
773
  M
750
- ] }), t[92] = y, t[93] = L, t[94] = w) : w = t[94];
774
+ ] }), t[92] = S, t[93] = v, t[94] = w) : w = t[94];
751
775
  let A;
752
776
  t[95] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = {
753
777
  width: 240
754
778
  }, t[95] = A) : A = t[95];
755
- const $ = d?.name;
779
+ const $ = f?.name;
756
780
  let T;
757
- t[96] !== d ? (T = d?.employeeId && /* @__PURE__ */ o.jsx("span", { children: d.employeeId }), t[96] = d, t[97] = T) : T = t[97];
781
+ t[96] !== f ? (T = f?.employeeId && /* @__PURE__ */ o.jsx("span", { children: f.employeeId }), t[96] = f, t[97] = T) : T = t[97];
758
782
  let R;
759
- t[98] !== d?.employeeId ? (R = d?.employeeId && /* @__PURE__ */ o.jsx("br", {}), t[98] = d?.employeeId, t[99] = R) : R = t[99];
783
+ t[98] !== f?.employeeId ? (R = f?.employeeId && /* @__PURE__ */ o.jsx("br", {}), t[98] = f?.employeeId, t[99] = R) : R = t[99];
760
784
  let E;
761
- t[100] !== d ? (E = d?.department && /* @__PURE__ */ o.jsx("span", { children: d.department }), t[100] = d, t[101] = E) : E = t[101];
762
- let O;
763
- t[102] !== T || t[103] !== R || t[104] !== E ? (O = /* @__PURE__ */ o.jsxs("span", { children: [
785
+ t[100] !== f ? (E = f?.department && /* @__PURE__ */ o.jsx("span", { children: f.department }), t[100] = f, t[101] = E) : E = t[101];
786
+ let P;
787
+ t[102] !== T || t[103] !== R || t[104] !== E ? (P = /* @__PURE__ */ o.jsxs("span", { children: [
764
788
  T,
765
789
  R,
766
790
  E
767
- ] }), t[102] = T, t[103] = R, t[104] = E, t[105] = O) : O = t[105];
791
+ ] }), t[102] = T, t[103] = R, t[104] = E, t[105] = P) : P = t[105];
792
+ let N;
793
+ t[106] !== $ || t[107] !== P ? (N = /* @__PURE__ */ o.jsx(Wt, { children: /* @__PURE__ */ o.jsx(z, { primary: $, secondary: P }) }), t[106] = $, t[107] = P, t[108] = N) : N = t[108];
768
794
  let D;
769
- t[106] !== $ || t[107] !== O ? (D = /* @__PURE__ */ o.jsx(Wt, { children: /* @__PURE__ */ o.jsx(z, { primary: $, secondary: O }) }), t[106] = $, t[107] = O, t[108] = D) : D = t[108];
770
- let P;
771
- t[109] !== p ? (P = () => p.logoutRedirect({
795
+ t[109] !== p ? (D = () => p.logoutRedirect({
772
796
  postLogoutRedirectUri: "/"
773
- }), t[109] = p, t[110] = P) : P = t[110];
774
- let be;
775
- t[111] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = /* @__PURE__ */ o.jsx(ge, { children: /* @__PURE__ */ o.jsx(Eo, { color: "error" }) }), t[111] = be) : be = t[111];
797
+ }), t[109] = p, t[110] = D) : D = t[110];
798
+ let je;
799
+ t[111] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (je = /* @__PURE__ */ o.jsx(ge, { children: /* @__PURE__ */ o.jsx($o, { color: "error" }) }), t[111] = je) : je = t[111];
776
800
  let U;
777
801
  t[112] !== i ? (U = i("Layout.Logout"), t[112] = i, t[113] = U) : U = t[113];
778
802
  let H;
779
803
  t[114] !== U ? (H = /* @__PURE__ */ o.jsx(z, { primary: U }), t[114] = U, t[115] = H) : H = t[115];
780
804
  let F;
781
- t[116] !== P || t[117] !== H ? (F = /* @__PURE__ */ o.jsxs(xe, { onClick: P, children: [
782
- be,
805
+ t[116] !== D || t[117] !== H ? (F = /* @__PURE__ */ o.jsxs(xe, { onClick: D, children: [
806
+ je,
783
807
  H
784
- ] }), t[116] = P, t[117] = H, t[118] = F) : F = t[118];
808
+ ] }), t[116] = D, t[117] = H, t[118] = F) : F = t[118];
785
809
  let Y;
786
- t[119] !== D || t[120] !== F ? (Y = /* @__PURE__ */ o.jsxs(lt, { children: [
787
- D,
810
+ t[119] !== N || t[120] !== F ? (Y = /* @__PURE__ */ o.jsxs(lt, { children: [
811
+ N,
788
812
  F
789
- ] }), t[119] = D, t[120] = F, t[121] = Y) : Y = t[121];
813
+ ] }), t[119] = N, t[120] = F, t[121] = Y) : Y = t[121];
790
814
  let q;
791
815
  t[122] !== p ? (q = () => p.loginRedirect(), t[122] = p, t[123] = q) : q = t[123];
792
- let je;
793
- t[124] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (je = /* @__PURE__ */ o.jsx(ge, { children: /* @__PURE__ */ o.jsx($o, { color: "success" }) }), t[124] = je) : je = t[124];
816
+ let ve;
817
+ t[124] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ve = /* @__PURE__ */ o.jsx(ge, { children: /* @__PURE__ */ o.jsx(Ao, { color: "success" }) }), t[124] = ve) : ve = t[124];
794
818
  let G;
795
819
  t[125] !== i ? (G = i("Layout.LogIn"), t[125] = i, t[126] = G) : G = t[126];
796
820
  let K;
797
821
  t[127] !== G ? (K = /* @__PURE__ */ o.jsx(z, { primary: G }), t[127] = G, t[128] = K) : K = t[128];
798
822
  let V;
799
823
  t[129] !== q || t[130] !== K ? (V = /* @__PURE__ */ o.jsx(ut, { children: /* @__PURE__ */ o.jsxs(xe, { onClick: q, children: [
800
- je,
824
+ ve,
801
825
  K
802
826
  ] }) }), t[129] = q, t[130] = K, t[131] = V) : V = t[131];
803
- let Q;
804
- t[132] !== Y || t[133] !== V ? (Q = /* @__PURE__ */ o.jsxs(Ye, { disablePadding: !0, children: [
827
+ let X;
828
+ t[132] !== Y || t[133] !== V ? (X = /* @__PURE__ */ o.jsxs(qe, { disablePadding: !0, children: [
805
829
  Y,
806
830
  V
807
- ] }), t[132] = Y, t[133] = V, t[134] = Q) : Q = t[134];
808
- const Xe = r === "settings" && b, Je = r === "theme" && I, Ze = r === "language" && k;
809
- let X;
810
- t[135] !== Q || t[136] !== Xe || t[137] !== Je || t[138] !== Ze ? (X = /* @__PURE__ */ o.jsxs(Ge, { sx: A, children: [
811
- Q,
812
- Xe,
831
+ ] }), t[132] = Y, t[133] = V, t[134] = X) : X = t[134];
832
+ const Qe = r === "settings" && _, Je = r === "theme" && C, Ze = r === "language" && L;
833
+ let Q;
834
+ t[135] !== X || t[136] !== Qe || t[137] !== Je || t[138] !== Ze ? (Q = /* @__PURE__ */ o.jsxs(Ke, { sx: A, children: [
835
+ X,
836
+ Qe,
813
837
  Je,
814
838
  Ze
815
- ] }), t[135] = Q, t[136] = Xe, t[137] = Je, t[138] = Ze, t[139] = X) : X = t[139];
839
+ ] }), t[135] = X, t[136] = Qe, t[137] = Je, t[138] = Ze, t[139] = Q) : Q = t[139];
816
840
  let J;
817
- t[140] !== e || t[141] !== _ || t[142] !== a || t[143] !== X ? (J = /* @__PURE__ */ o.jsx(zt, { anchorEl: e, open: a, onClose: _, children: X }), t[140] = e, t[141] = _, t[142] = a, t[143] = X, t[144] = J) : J = t[144];
818
- let ve;
819
- return t[145] !== J || t[146] !== w ? (ve = /* @__PURE__ */ o.jsxs(Qe, { children: [
841
+ t[140] !== e || t[141] !== y || t[142] !== c || t[143] !== Q ? (J = /* @__PURE__ */ o.jsx(zt, { anchorEl: e, open: c, onClose: y, children: Q }), t[140] = e, t[141] = y, t[142] = c, t[143] = Q, t[144] = J) : J = t[144];
842
+ let Se;
843
+ return t[145] !== J || t[146] !== w ? (Se = /* @__PURE__ */ o.jsxs(be, { children: [
820
844
  w,
821
845
  J
822
- ] }), t[145] = J, t[146] = w, t[147] = ve) : ve = t[147], ve;
846
+ ] }), t[145] = J, t[146] = w, t[147] = Se) : Se = t[147], Se;
823
847
  };
824
- function ns(t) {
848
+ function is(t) {
825
849
  return t !== "cimode";
826
850
  }
827
- const Lt = "navigation-open", ls = () => Ve.isWindows || Ve.isMacOS ? localStorage.getItem(Lt) === "true" : !1, Ct = (t) => {
828
- (Ve.isWindows || Ve.isMacOS) && localStorage.setItem(Lt, String(t));
829
- }, rs = dt("div")(({
851
+ const Ct = "navigation-open", ls = () => Xe.isWindows || Xe.isMacOS ? localStorage.getItem(Ct) === "true" : !1, kt = (t) => {
852
+ (Xe.isWindows || Xe.isMacOS) && localStorage.setItem(Ct, String(t));
853
+ }, ns = dt("div")(({
830
854
  theme: t
831
855
  }) => ({
832
856
  display: "flex",
@@ -834,65 +858,65 @@ const Lt = "navigation-open", ls = () => Ve.isWindows || Ve.isMacOS ? localStora
834
858
  justifyContent: "flex-end",
835
859
  padding: t.spacing(0, 1),
836
860
  ...t.mixins.toolbar
837
- })), as = (t) => {
861
+ })), rs = (t) => {
838
862
  const e = B.c(35), {
839
863
  navigation: s,
840
864
  options: r,
841
865
  children: l
842
- } = t, [a, i] = W(ls), {
866
+ } = t, [c, i] = W(ls), {
843
867
  instance: n,
844
868
  inProgress: m
845
- } = vt(), f = St(), p = ho(), u = p[p.length - 1]?.fullPath;
846
- let d;
847
- e[0] !== u || e[1] !== r?.publicRoutes ? (d = r?.publicRoutes?.some((T) => T === u) ?? !1, e[0] = u, e[1] = r?.publicRoutes, e[2] = d) : d = e[2];
848
- const c = d;
849
- let j, h;
850
- e[3] !== m || e[4] !== n || e[5] !== f || e[6] !== c ? (j = () => {
851
- !f && m === ro.None && !c && n.loginRedirect();
852
- }, h = [f, m, c, n], e[3] = m, e[4] = n, e[5] = f, e[6] = c, e[7] = j, e[8] = h) : (j = e[7], h = e[8]), mt(j, h);
853
- let g, _;
854
- e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ o.jsx(Ut, {}), _ = /* @__PURE__ */ o.jsx(Ht, {}), e[9] = g, e[10] = _) : (g = e[9], _ = e[10]);
855
- let y;
856
- e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = {
869
+ } = St(), d = _t(), p = uo(), u = p[p.length - 1]?.fullPath;
870
+ let f;
871
+ e[0] !== u || e[1] !== r?.publicRoutes ? (f = r?.publicRoutes?.some((T) => T === u) ?? !1, e[0] = u, e[1] = r?.publicRoutes, e[2] = f) : f = e[2];
872
+ const a = f;
873
+ let x, h;
874
+ e[3] !== m || e[4] !== n || e[5] !== d || e[6] !== a ? (x = () => {
875
+ !d && m === ro.None && !a && n.loginRedirect();
876
+ }, h = [d, m, a, n], e[3] = m, e[4] = n, e[5] = d, e[6] = a, e[7] = x, e[8] = h) : (x = e[7], h = e[8]), mt(x, h);
877
+ let g, y;
878
+ e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = /* @__PURE__ */ o.jsx(Ut, {}), y = /* @__PURE__ */ o.jsx(Ht, {}), e[9] = g, e[10] = y) : (g = e[9], y = e[10]);
879
+ let S;
880
+ e[11] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = {
857
881
  display: "flex",
858
882
  height: "100dvh",
859
883
  maxHeight: "100dvh",
860
884
  overflow: "hidden",
861
885
  width: "100%"
862
- }, e[11] = y) : y = e[11];
863
- let b;
864
- e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = {
886
+ }, e[11] = S) : S = e[11];
887
+ let _;
888
+ e[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = {
865
889
  borderBottom: "1px solid",
866
890
  borderColor: "var(--mui-palette-divider)",
867
891
  boxShadow: "none"
868
- }, e[12] = b) : b = e[12];
869
- let x;
870
- e[13] !== s || e[14] !== a ? (x = s && /* @__PURE__ */ o.jsx(qe, { onClick: () => {
871
- i(cs);
892
+ }, e[12] = _) : _ = e[12];
893
+ let j;
894
+ e[13] !== s || e[14] !== c ? (j = s && /* @__PURE__ */ o.jsx(Ge, { onClick: () => {
895
+ i(as);
872
896
  }, sx: {
873
897
  marginRight: 2
874
- }, children: a ? /* @__PURE__ */ o.jsx(co, {}) : /* @__PURE__ */ o.jsx(ao, {}) }), e[13] = s, e[14] = a, e[15] = x) : x = e[15];
875
- let v, I;
876
- e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ o.jsx(Yo, {}), v = /* @__PURE__ */ o.jsx(is, {}), e[16] = v, e[17] = I) : (v = e[16], I = e[17]);
877
- let C;
878
- e[18] !== x ? (C = /* @__PURE__ */ o.jsx(Ft, { color: "transparent", position: "fixed", sx: b, children: /* @__PURE__ */ o.jsxs(Yt, { children: [
879
- x,
880
- I,
881
- v
882
- ] }) }), e[18] = x, e[19] = C) : C = e[19];
883
- let k;
884
- e[20] !== s || e[21] !== a ? (k = s && /* @__PURE__ */ o.jsx(ts, { navigation: s, expanded: a, setExpanded: (T) => {
885
- i(T), Ct(T);
886
- } }), e[20] = s, e[21] = a, e[22] = k) : k = e[22];
887
- let S, L;
888
- e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = {
898
+ }, children: c ? /* @__PURE__ */ o.jsx(co, {}) : /* @__PURE__ */ o.jsx(ao, {}) }), e[13] = s, e[14] = c, e[15] = j) : j = e[15];
899
+ let k, C;
900
+ e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (C = /* @__PURE__ */ o.jsx(Fo, {}), k = /* @__PURE__ */ o.jsx(ss, {}), e[16] = k, e[17] = C) : (k = e[16], C = e[17]);
901
+ let I;
902
+ e[18] !== j ? (I = /* @__PURE__ */ o.jsx(Ft, { color: "transparent", position: "fixed", sx: _, children: /* @__PURE__ */ o.jsxs(Yt, { children: [
903
+ j,
904
+ C,
905
+ k
906
+ ] }) }), e[18] = j, e[19] = I) : I = e[19];
907
+ let L;
908
+ e[20] !== s || e[21] !== c ? (L = s && /* @__PURE__ */ o.jsx(es, { navigation: s, expanded: c, setExpanded: (T) => {
909
+ i(T), kt(T);
910
+ } }), e[20] = s, e[21] = c, e[22] = L) : L = e[22];
911
+ let b, v;
912
+ e[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b = {
889
913
  flexGrow: 1,
890
914
  display: "flex",
891
915
  flexDirection: "column",
892
916
  minWidth: 0,
893
917
  height: "100%",
894
918
  overflow: "hidden"
895
- }, L = /* @__PURE__ */ o.jsx(rs, {}), e[23] = S, e[24] = L) : (S = e[23], L = e[24]);
919
+ }, v = /* @__PURE__ */ o.jsx(ns, {}), e[23] = b, e[24] = v) : (b = e[23], v = e[24]);
896
920
  let M;
897
921
  e[25] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = {
898
922
  flex: 1,
@@ -900,62 +924,62 @@ const Lt = "navigation-open", ls = () => Ve.isWindows || Ve.isMacOS ? localStora
900
924
  position: "relative"
901
925
  }, e[25] = M) : M = e[25];
902
926
  let w;
903
- e[26] !== l || e[27] !== c ? (w = c ? l : /* @__PURE__ */ o.jsx(lt, { children: l }), e[26] = l, e[27] = c, e[28] = w) : w = e[28];
927
+ e[26] !== l || e[27] !== a ? (w = a ? l : /* @__PURE__ */ o.jsx(lt, { children: l }), e[26] = l, e[27] = a, e[28] = w) : w = e[28];
904
928
  let A;
905
- e[29] !== w ? (A = /* @__PURE__ */ o.jsxs(Ge, { component: "main", sx: S, children: [
906
- L,
907
- /* @__PURE__ */ o.jsx(Ge, { sx: M, children: w })
929
+ e[29] !== w ? (A = /* @__PURE__ */ o.jsxs(Ke, { component: "main", sx: b, children: [
930
+ v,
931
+ /* @__PURE__ */ o.jsx(Ke, { sx: M, children: w })
908
932
  ] }), e[29] = w, e[30] = A) : A = e[30];
909
933
  let $;
910
- return e[31] !== C || e[32] !== k || e[33] !== A ? ($ = /* @__PURE__ */ o.jsxs(Qe, { children: [
934
+ return e[31] !== I || e[32] !== L || e[33] !== A ? ($ = /* @__PURE__ */ o.jsxs(be, { children: [
911
935
  g,
912
- _,
913
- /* @__PURE__ */ o.jsxs(Ge, { sx: y, children: [
914
- C,
915
- k,
936
+ y,
937
+ /* @__PURE__ */ o.jsxs(Ke, { sx: S, children: [
938
+ I,
939
+ L,
916
940
  A
917
941
  ] })
918
- ] }), e[31] = C, e[32] = k, e[33] = A, e[34] = $) : $ = e[34], $;
942
+ ] }), e[31] = I, e[32] = L, e[33] = A, e[34] = $) : $ = e[34], $;
919
943
  };
920
- function cs(t) {
944
+ function as(t) {
921
945
  const e = !t;
922
- return Ct(e), e;
946
+ return kt(e), e;
923
947
  }
924
- const ms = 1440 * 365;
925
- Ke.use(Qt).use(Jt).init({
948
+ const cs = 1440 * 365;
949
+ Ve.use(Xt).use(Jt).init({
926
950
  resources: ht,
927
951
  fallbackLng: "en",
928
952
  supportedLngs: Object.keys(ht),
929
953
  detection: {
930
954
  caches: ["cookie"],
931
- cookieMinutes: ms
955
+ cookieMinutes: cs
932
956
  },
933
957
  interpolation: {
934
958
  escapeValue: !1
935
959
  },
936
960
  showSupportNotice: !1
937
961
  });
938
- Ke.on("languageChanged", (t) => {
939
- rt.config(rt.core.locales[t]()), Vt.locale(t);
962
+ Ve.on("languageChanged", (t) => {
963
+ nt.config(nt.core.locales[t]()), Vt.locale(t);
940
964
  });
941
- const ri = (t) => {
965
+ const ni = (t) => {
942
966
  const e = B.c(10), {
943
967
  options: s,
944
968
  navigation: r,
945
969
  theme: l,
946
- children: a
970
+ children: c
947
971
  } = t, i = s?.snackbarOrigin;
948
972
  let n;
949
- e[0] !== a || e[1] !== r || e[2] !== s ? (n = /* @__PURE__ */ o.jsx(Wo, { children: /* @__PURE__ */ o.jsx(Rt, { instance: lo, children: /* @__PURE__ */ o.jsx(as, { navigation: r, options: s, children: a }) }) }), e[0] = a, e[1] = r, e[2] = s, e[3] = n) : n = e[3];
973
+ e[0] !== c || e[1] !== r || e[2] !== s ? (n = /* @__PURE__ */ o.jsx(Bo, { children: /* @__PURE__ */ o.jsx(At, { instance: no, children: /* @__PURE__ */ o.jsx(rs, { navigation: r, options: s, children: c }) }) }), e[0] = c, e[1] = r, e[2] = s, e[3] = n) : n = e[3];
950
974
  let m;
951
- e[4] !== i || e[5] !== n ? (m = /* @__PURE__ */ o.jsx(Gt, { dateAdapter: Kt, adapterLocale: Ke.language, children: /* @__PURE__ */ o.jsx(Uo, { snackbarOrigin: i, children: n }) }, Ke.language), e[4] = i, e[5] = n, e[6] = m) : m = e[6];
952
- let f;
953
- return e[7] !== m || e[8] !== l ? (f = /* @__PURE__ */ o.jsx(qt, { theme: l, children: m }), e[7] = m, e[8] = l, e[9] = f) : f = e[9], f;
975
+ e[4] !== i || e[5] !== n ? (m = /* @__PURE__ */ o.jsx(Gt, { dateAdapter: Kt, adapterLocale: Ve.language, children: /* @__PURE__ */ o.jsx(zo, { snackbarOrigin: i, children: n }) }, Ve.language), e[4] = i, e[5] = n, e[6] = m) : m = e[6];
976
+ let d;
977
+ return e[7] !== m || e[8] !== l ? (d = /* @__PURE__ */ o.jsx(qt, { theme: l, children: m }), e[7] = m, e[8] = l, e[9] = d) : d = e[9], d;
954
978
  };
955
979
  export {
956
- ri as LayoutProvider,
957
- mi as WISTRON_PRIMARY_COLOR,
958
- di as WISTRON_SECONDARY_COLOR,
959
- fi as rootRouteHead
980
+ ni as LayoutProvider,
981
+ ci as WISTRON_PRIMARY_COLOR,
982
+ mi as WISTRON_SECONDARY_COLOR,
983
+ di as rootRouteHead
960
984
  };
961
985
  //# sourceMappingURL=index.js.map