wcz-test 7.2.4 → 7.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/DialogsContext-CGAKEKKW.js.map +1 -1
- package/dist/DialogsHooks-BZUdpDVJ.js.map +1 -1
- package/dist/FileMeta-CDQ1BQUH.js.map +1 -1
- package/dist/RouterListItemButton-C_jUvB6C.js.map +1 -1
- package/dist/components.js +797 -761
- package/dist/components.js.map +1 -1
- package/dist/hooks.js +4 -4
- package/dist/{i18next-8reizFda.js → i18next-TvJQoHEJ.js} +33 -33
- package/dist/i18next-TvJQoHEJ.js.map +1 -0
- package/dist/{index-wOcJpekI.js → index-CjSQ0_za.js} +6 -6
- package/dist/{index-wOcJpekI.js.map → index-CjSQ0_za.js.map} +1 -1
- package/dist/{index-De6Lo0ff.js → index-D3xlpZgv.js} +427 -406
- package/dist/index-D3xlpZgv.js.map +1 -0
- package/dist/index.js +131 -130
- package/dist/index.js.map +1 -1
- package/dist/lib/auth/msalClient.d.ts +2 -2
- package/dist/manifest.webmanifest +18 -18
- package/dist/middleware/authMiddleware.d.ts +1 -1
- package/dist/middleware.js +31 -32
- package/dist/middleware.js.map +1 -1
- package/dist/models/User.d.ts +0 -1
- package/dist/models.js.map +1 -1
- package/dist/{msalClient-Cem8ZXIU.js → msalClient-BDfKsC3C.js} +3 -4
- package/dist/msalClient-BDfKsC3C.js.map +1 -0
- package/dist/query.js +1 -1
- package/dist/robots.txt +3 -3
- package/dist/{utils-BXxJ2sNo.js → utils-BTQg82mj.js} +24 -24
- package/dist/utils-BTQg82mj.js.map +1 -0
- package/dist/utils.js +4 -4
- package/package.json +16 -15
- package/dist/i18next-8reizFda.js.map +0 -1
- package/dist/index-De6Lo0ff.js.map +0 -1
- package/dist/msalClient-Cem8ZXIU.js.map +0 -1
- package/dist/utils-BXxJ2sNo.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
import { s as yt, a as vt, j as i, D as St, u as bt } from "./DialogsContext-CGAKEKKW.js";
|
|
2
2
|
import { c as R } from "./compiler-runtime-BNHg76kC.js";
|
|
3
|
-
import { Stack as wt, Typography as jt, Chip as kt, Collapse as It, Grow as Lt, useMediaQuery as _t, useColorScheme as Ct, ListItemButton as
|
|
3
|
+
import { Stack as wt, Typography as jt, Chip as kt, Collapse as It, Grow as Lt, useMediaQuery as _t, useColorScheme as Ct, ListItemButton as se, ListItemText as F, ListItemIcon as re, List as Ee, ListItem as Tt, ListSubheader as Be, IconButton as Oe, Avatar as At, Box as Pe, Menu as $t, InitColorSchemeScript as Dt, CssBaseline as Mt, AppBar as Et, Toolbar as Ot, ThemeProvider as Pt } from "@mui/material";
|
|
4
4
|
import { LocalizationProvider as Rt } from "@mui/x-date-pickers";
|
|
5
5
|
import { AdapterDayjs as Nt } from "@mui/x-date-pickers/AdapterDayjs";
|
|
6
6
|
import Ut from "dayjs";
|
|
7
|
-
import { i as B } from "./i18next-
|
|
8
|
-
import { useState as
|
|
7
|
+
import { i as B } from "./i18next-TvJQoHEJ.js";
|
|
8
|
+
import { useState as ce, useId as Ft, useRef as Ge, Fragment as Re, useEffect as at, useEffectEvent as Bt } from "react";
|
|
9
9
|
import { resources as Qe } from "virtual:wcz-layout";
|
|
10
10
|
import Xe from "zod";
|
|
11
11
|
import ze from "@mui/utils/useEventCallback";
|
|
12
12
|
import { MsalProvider as zt, useMsal as Wt, useIsAuthenticated as Ht, useMsalAuthentication as qt, AuthenticatedTemplate as Kt } from "@azure/msal-react";
|
|
13
13
|
import { useNavigate as lt, useRouterState as Yt } from "@tanstack/react-router";
|
|
14
|
-
import { C as Gt, p as Ve, g as Qt, a as Xt } from "./msalClient-
|
|
14
|
+
import { C as Gt, p as Ve, g as Qt, a as Xt } from "./msalClient-BDfKsC3C.js";
|
|
15
15
|
import { InteractionType as Vt } from "@azure/msal-browser";
|
|
16
16
|
import Zt from "@mui/icons-material/Menu";
|
|
17
17
|
import Jt from "@mui/icons-material/MenuOpen";
|
|
18
18
|
import { styled as Ke, useTheme as eo } from "@mui/material/styles";
|
|
19
|
-
import { c as to, P as
|
|
20
|
-
import { W as li, b as ci, r as di } from "./utils-
|
|
19
|
+
import { c as to, P as Ne } from "./utils-BTQg82mj.js";
|
|
20
|
+
import { W as li, b as ci, r as di } from "./utils-BTQg82mj.js";
|
|
21
21
|
import Ye from "@mui/material/Box";
|
|
22
22
|
import Ze from "@mui/material/Drawer";
|
|
23
23
|
import oo from "@mui/material/Divider";
|
|
@@ -44,7 +44,7 @@ import bo from "@mui/icons-material/Logout";
|
|
|
44
44
|
import wo from "@mui/icons-material/SettingsBrightness";
|
|
45
45
|
import jo from "@mui/icons-material/Translate";
|
|
46
46
|
import { queryOptions as ko, useQuery as Io } from "@tanstack/react-query";
|
|
47
|
-
import { a as Lo } from "./index-
|
|
47
|
+
import { a as Lo } from "./index-D3xlpZgv.js";
|
|
48
48
|
const {
|
|
49
49
|
slice: _o,
|
|
50
50
|
forEach: Co
|
|
@@ -194,18 +194,18 @@ var Do = {
|
|
|
194
194
|
return n;
|
|
195
195
|
}
|
|
196
196
|
};
|
|
197
|
-
let
|
|
197
|
+
let ae = null;
|
|
198
198
|
const nt = () => {
|
|
199
|
-
if (
|
|
199
|
+
if (ae !== null) return ae;
|
|
200
200
|
try {
|
|
201
|
-
if (
|
|
201
|
+
if (ae = typeof window < "u" && window.localStorage !== null, !ae)
|
|
202
202
|
return !1;
|
|
203
203
|
const t = "i18next.translate.boo";
|
|
204
204
|
window.localStorage.setItem(t, "foo"), window.localStorage.removeItem(t);
|
|
205
205
|
} catch {
|
|
206
|
-
|
|
206
|
+
ae = !1;
|
|
207
207
|
}
|
|
208
|
-
return
|
|
208
|
+
return ae;
|
|
209
209
|
};
|
|
210
210
|
var Oo = {
|
|
211
211
|
name: "localStorage",
|
|
@@ -225,18 +225,18 @@ var Oo = {
|
|
|
225
225
|
o && nt() && window.localStorage.setItem(o, t);
|
|
226
226
|
}
|
|
227
227
|
};
|
|
228
|
-
let
|
|
228
|
+
let le = null;
|
|
229
229
|
const it = () => {
|
|
230
|
-
if (
|
|
230
|
+
if (le !== null) return le;
|
|
231
231
|
try {
|
|
232
|
-
if (
|
|
232
|
+
if (le = typeof window < "u" && window.sessionStorage !== null, !le)
|
|
233
233
|
return !1;
|
|
234
234
|
const t = "i18next.translate.boo";
|
|
235
235
|
window.sessionStorage.setItem(t, "foo"), window.sessionStorage.removeItem(t);
|
|
236
236
|
} catch {
|
|
237
|
-
|
|
237
|
+
le = !1;
|
|
238
238
|
}
|
|
239
|
-
return
|
|
239
|
+
return le;
|
|
240
240
|
};
|
|
241
241
|
var Po = {
|
|
242
242
|
name: "sessionStorage",
|
|
@@ -362,7 +362,7 @@ const zo = {
|
|
|
362
362
|
function Wo({
|
|
363
363
|
children: t
|
|
364
364
|
}) {
|
|
365
|
-
const [e, o] =
|
|
365
|
+
const [e, o] = ce([]), n = Ft(), r = Ge(0), a = Ge(/* @__PURE__ */ new WeakMap()), s = ze(function(p, f, d = {}) {
|
|
366
366
|
const {
|
|
367
367
|
onClose: y = async () => {
|
|
368
368
|
}
|
|
@@ -517,7 +517,7 @@ const Ho = (t) => {
|
|
|
517
517
|
whiteSpace: "nowrap",
|
|
518
518
|
overflow: "hidden",
|
|
519
519
|
textOverflow: "ellipsis",
|
|
520
|
-
maxWidth:
|
|
520
|
+
maxWidth: de - 28
|
|
521
521
|
}, children: o.title }) : null, e[10] = n, e[11] = o.title, e[12] = m) : m = e[12];
|
|
522
522
|
let u;
|
|
523
523
|
return e[13] !== r || e[14] !== c || e[15] !== m ? (u = /* @__PURE__ */ i.jsxs(Ye, { sx: r, children: [
|
|
@@ -534,7 +534,7 @@ const Ho = (t) => {
|
|
|
534
534
|
let r;
|
|
535
535
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = {
|
|
536
536
|
position: "fixed",
|
|
537
|
-
left:
|
|
537
|
+
left: de,
|
|
538
538
|
pl: "2px",
|
|
539
539
|
pb: "10px"
|
|
540
540
|
}, e[0] = r) : r = e[0];
|
|
@@ -563,7 +563,7 @@ const Ho = (t) => {
|
|
|
563
563
|
onClick: m,
|
|
564
564
|
renderNested: u,
|
|
565
565
|
onClose: p
|
|
566
|
-
} = t, f = l === void 0 ? !0 : l, [d, y] =
|
|
566
|
+
} = t, f = l === void 0 ? !0 : l, [d, y] = ce(null), g = `${o.to ?? o.title}`;
|
|
567
567
|
let h;
|
|
568
568
|
e[0] !== s || e[1] !== n || e[2] !== c || e[3] !== f || e[4] !== o.children ? (h = (U) => s && c && o.children ? {
|
|
569
569
|
fontSize: 18,
|
|
@@ -649,7 +649,7 @@ const Ho = (t) => {
|
|
|
649
649
|
let M;
|
|
650
650
|
e[47] !== s || e[48] !== n || e[49] !== o.children || e[50] !== u ? (M = o.children && !s ? /* @__PURE__ */ i.jsx(It, { in: n, timeout: "auto", unmountOnExit: !0, children: u?.(o.children) }) : null, e[47] = s, e[48] = n, e[49] = o.children, e[50] = u, e[51] = M) : M = e[51];
|
|
651
651
|
let N;
|
|
652
|
-
return e[52] !== o.to || e[53] !== C || e[54] !== M ? (N = /* @__PURE__ */ i.jsxs(
|
|
652
|
+
return e[52] !== o.to || e[53] !== C || e[54] !== M ? (N = /* @__PURE__ */ i.jsxs(Re, { children: [
|
|
653
653
|
C,
|
|
654
654
|
M
|
|
655
655
|
] }, o.to), e[52] = o.to, e[53] = C, e[54] = M, e[55] = N) : N = e[55], N;
|
|
@@ -673,7 +673,7 @@ const Zo = (t) => !("kind" in t), Jo = (t) => "kind" in t && t.kind === "divider
|
|
|
673
673
|
} = t, d = n === void 0 ? 0 : n, y = s === void 0 ? !0 : s;
|
|
674
674
|
let g;
|
|
675
675
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = [], e[0] = g) : g = e[0];
|
|
676
|
-
const [h, v] =
|
|
676
|
+
const [h, v] = ce(g);
|
|
677
677
|
let x, S;
|
|
678
678
|
e[1] !== r ? (x = () => {
|
|
679
679
|
r && v([]);
|
|
@@ -686,7 +686,7 @@ const Zo = (t) => !("kind" in t), Jo = (t) => "kind" in t && t.kind === "divider
|
|
|
686
686
|
const T = I;
|
|
687
687
|
let E;
|
|
688
688
|
if (e[12] !== u || e[13] !== r || e[14] !== d || e[15] !== a || e[16] !== l || e[17] !== y || e[18] !== f || e[19] !== h || e[20] !== m || e[21] !== T || e[22] !== o) {
|
|
689
|
-
const w = o.filter(en), L = a && d === 1 ? 0.5 : 0, A = d === 0 && !a ? 4 : 0.5, _ = (a ? 1 : 2) * (a ? d - 1 : d), P = a && d === 1 ? 240 : "auto", D = r ?
|
|
689
|
+
const w = o.filter(en), L = a && d === 1 ? 0.5 : 0, A = d === 0 && !a ? 4 : 0.5, _ = (a ? 1 : 2) * (a ? d - 1 : d), P = a && d === 1 ? 240 : "auto", D = r ? de : "auto";
|
|
690
690
|
let $;
|
|
691
691
|
e[24] !== A || e[25] !== _ || e[26] !== P || e[27] !== D || e[28] !== L ? ($ = {
|
|
692
692
|
padding: 0,
|
|
@@ -720,7 +720,7 @@ const Zo = (t) => !("kind" in t), Jo = (t) => "kind" in t && t.kind === "divider
|
|
|
720
720
|
if (!Zo(j))
|
|
721
721
|
return null;
|
|
722
722
|
const M = `item-${d}-${C}`, N = `${d}-${C}-${j.title}`;
|
|
723
|
-
return m ? /* @__PURE__ */ i.jsx(
|
|
723
|
+
return m ? /* @__PURE__ */ i.jsx(Re, { children: m(j, {
|
|
724
724
|
collapsed: !!r
|
|
725
725
|
}) }, M) : /* @__PURE__ */ i.jsx(Xo, { item: j, isOpen: h.includes(N), selected: u === j.to, collapsed: r, isSidebarFullyExpanded: y, isSidebarFullyCollapsed: l, onClick: j.children && !r ? () => k(N) : void 0, renderNested: T, onClose: f }, M);
|
|
726
726
|
}) }), e[12] = u, e[13] = r, e[14] = d, e[15] = a, e[16] = l, e[17] = y, e[18] = f, e[19] = h, e[20] = m, e[21] = T, e[22] = o, e[23] = E;
|
|
@@ -731,7 +731,7 @@ const Zo = (t) => !("kind" in t), Jo = (t) => "kind" in t && t.kind === "divider
|
|
|
731
731
|
function en(t) {
|
|
732
732
|
return !t.hidden;
|
|
733
733
|
}
|
|
734
|
-
const
|
|
734
|
+
const de = 84, He = 320, st = 64, tn = (t) => {
|
|
735
735
|
const e = R.c(29), {
|
|
736
736
|
navigation: o,
|
|
737
737
|
expanded: n,
|
|
@@ -753,7 +753,7 @@ const le = 84, He = 320, st = 64, tn = (t) => {
|
|
|
753
753
|
}, children: /* @__PURE__ */ i.jsx(mt, { subNavigation: o, collapsed: h, isSidebarFullyExpanded: n, isSidebarFullyCollapsed: !n, expandedWidth: He, activePath: s.location.pathname, onNavigate: a, onClose: m ? void 0 : () => r(!1) }) }), e[2] = n, e[3] = a, e[4] = o, e[5] = s.location.pathname, e[6] = r, e[7] = m, e[8] = u) : u = e[8];
|
|
754
754
|
const p = u;
|
|
755
755
|
if (m) {
|
|
756
|
-
const h = n ? He :
|
|
756
|
+
const h = n ? He : de, v = n ? He : de;
|
|
757
757
|
let x;
|
|
758
758
|
e[9] !== v ? (x = {
|
|
759
759
|
position: "absolute",
|
|
@@ -806,7 +806,7 @@ const nn = {
|
|
|
806
806
|
select: (t) => URL.createObjectURL(t)
|
|
807
807
|
})
|
|
808
808
|
}, rt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), sn = () => {
|
|
809
|
-
const t = R.c(
|
|
809
|
+
const t = R.c(110), [e, o] = ce(), [n, r] = ce("settings"), a = !!e, {
|
|
810
810
|
t: s,
|
|
811
811
|
i18n: l
|
|
812
812
|
} = bt(), {
|
|
@@ -852,129 +852,130 @@ const nn = {
|
|
|
852
852
|
icon: wo,
|
|
853
853
|
label: K
|
|
854
854
|
}, t[23] = K, t[24] = Y) : Y = t[24];
|
|
855
|
-
let ce;
|
|
856
|
-
t[25] !== W || t[26] !== q || t[27] !== Y ? (ce = [W, q, Y], t[25] = W, t[26] = q, t[27] = Y, t[28] = ce) : ce = t[28];
|
|
857
|
-
const de = ce;
|
|
858
855
|
let ue;
|
|
859
|
-
t[
|
|
856
|
+
t[25] !== W || t[26] !== q || t[27] !== Y ? (ue = [W, q, Y], t[25] = W, t[26] = q, t[27] = Y, t[28] = ue) : ue = t[28];
|
|
857
|
+
const G = ue;
|
|
860
858
|
let me;
|
|
861
|
-
t[
|
|
862
|
-
o(void 0), setTimeout(() => r("settings"), 300);
|
|
863
|
-
}, t[30] = me) : me = t[30], v = me;
|
|
859
|
+
t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (me = (O) => o(O.currentTarget), t[29] = me) : me = t[29], x = me;
|
|
864
860
|
let fe;
|
|
865
|
-
t[
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
861
|
+
t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (fe = () => {
|
|
862
|
+
o(void 0), setTimeout(() => r("settings"), 300);
|
|
863
|
+
}, t[30] = fe) : fe = t[30], v = fe;
|
|
864
|
+
let pe;
|
|
865
|
+
t[31] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pe = (O) => () => r(O), t[31] = pe) : pe = t[31];
|
|
866
|
+
const he = pe;
|
|
867
|
+
let ge;
|
|
868
|
+
t[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ge = {
|
|
869
869
|
backgroundColor: "transparent"
|
|
870
|
-
}, t[32] =
|
|
871
|
-
let G;
|
|
872
|
-
t[33] !== s ? (G = s("Layout.Settings"), t[33] = s, t[34] = G) : G = t[34];
|
|
870
|
+
}, t[32] = ge) : ge = t[32];
|
|
873
871
|
let Q;
|
|
874
|
-
t[
|
|
875
|
-
let ge, xe;
|
|
876
|
-
t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ge = pe("theme"), xe = {
|
|
877
|
-
py: 0.3
|
|
878
|
-
}, t[37] = ge, t[38] = xe) : (ge = t[37], xe = t[38]);
|
|
879
|
-
let ye;
|
|
880
|
-
t[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ye = /* @__PURE__ */ i.jsx(ie, { children: /* @__PURE__ */ i.jsx(go, {}) }), t[39] = ye) : ye = t[39];
|
|
872
|
+
t[33] !== s ? (Q = s("Layout.Settings"), t[33] = s, t[34] = Q) : Q = t[34];
|
|
881
873
|
let X;
|
|
882
|
-
t[
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
874
|
+
t[35] !== Q ? (X = /* @__PURE__ */ i.jsx(Be, { sx: ge, children: Q }), t[35] = Q, t[36] = X) : X = t[36];
|
|
875
|
+
let xe, ye;
|
|
876
|
+
t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xe = he("theme"), ye = {
|
|
877
|
+
py: 0.3
|
|
878
|
+
}, t[37] = xe, t[38] = ye) : (xe = t[37], ye = t[38]);
|
|
886
879
|
let ve;
|
|
887
|
-
t[
|
|
880
|
+
t[39] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ve = /* @__PURE__ */ i.jsx(re, { children: /* @__PURE__ */ i.jsx(go, {}) }), t[39] = ve) : ve = t[39];
|
|
881
|
+
let V;
|
|
882
|
+
t[40] !== s ? (V = s("Layout.Appearance"), t[40] = s, t[41] = V) : V = t[41];
|
|
888
883
|
let Z;
|
|
889
|
-
t[
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
]
|
|
894
|
-
let
|
|
895
|
-
t[
|
|
884
|
+
t[42] !== G || t[43] !== c || t[44] !== s ? (Z = G.find((O) => O.mode === c)?.label ?? s("Layout.System"), t[42] = G, t[43] = c, t[44] = s, t[45] = Z) : Z = t[45];
|
|
885
|
+
let J;
|
|
886
|
+
t[46] !== V || t[47] !== Z ? (J = /* @__PURE__ */ i.jsx(F, { primary: V, secondary: Z }), t[46] = V, t[47] = Z, t[48] = J) : J = t[48];
|
|
887
|
+
let Se;
|
|
888
|
+
t[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = /* @__PURE__ */ i.jsx(et, {}), t[49] = Se) : Se = t[49];
|
|
889
|
+
let ee;
|
|
890
|
+
t[50] !== J ? (ee = /* @__PURE__ */ i.jsxs(se, { onClick: xe, sx: ye, children: [
|
|
891
|
+
ve,
|
|
892
|
+
J,
|
|
893
|
+
Se
|
|
894
|
+
] }), t[50] = J, t[51] = ee) : ee = t[51];
|
|
895
|
+
let be, we;
|
|
896
|
+
t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = he("language"), we = {
|
|
896
897
|
py: 0.3
|
|
897
|
-
}, t[
|
|
898
|
-
let we;
|
|
899
|
-
t[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (we = /* @__PURE__ */ i.jsx(ie, { children: /* @__PURE__ */ i.jsx(jo, {}) }), t[50] = we) : we = t[50];
|
|
898
|
+
}, t[52] = be, t[53] = we) : (be = t[52], we = t[53]);
|
|
900
899
|
let je;
|
|
901
|
-
t[
|
|
900
|
+
t[54] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (je = /* @__PURE__ */ i.jsx(re, { children: /* @__PURE__ */ i.jsx(jo, {}) }), t[54] = je) : je = t[54];
|
|
902
901
|
let ke;
|
|
903
|
-
t[
|
|
904
|
-
const Ue = /* @__PURE__ */ i.jsxs(ne, { onClick: Se, sx: be, children: [
|
|
905
|
-
we,
|
|
906
|
-
/* @__PURE__ */ i.jsx(F, { primary: je, secondary: rt(U.of(l.language)) }),
|
|
907
|
-
ke
|
|
908
|
-
] });
|
|
902
|
+
t[55] !== s ? (ke = s("Layout.Language"), t[55] = s, t[56] = ke) : ke = t[56];
|
|
909
903
|
let Ie;
|
|
910
|
-
t[
|
|
911
|
-
|
|
904
|
+
t[57] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ie = /* @__PURE__ */ i.jsx(et, {}), t[57] = Ie) : Ie = t[57];
|
|
905
|
+
const Ue = /* @__PURE__ */ i.jsxs(se, { onClick: be, sx: we, children: [
|
|
906
|
+
je,
|
|
907
|
+
/* @__PURE__ */ i.jsx(F, { primary: ke, secondary: rt(U.of(l.language)) }),
|
|
908
|
+
Ie
|
|
909
|
+
] });
|
|
910
|
+
let Le;
|
|
911
|
+
t[58] !== X || t[59] !== ee || t[60] !== Ue ? (Le = /* @__PURE__ */ i.jsxs(Ee, { component: "nav", subheader: X, children: [
|
|
912
|
+
ee,
|
|
912
913
|
Ue
|
|
913
|
-
] }), t[
|
|
914
|
-
let
|
|
915
|
-
t[
|
|
914
|
+
] }), t[58] = X, t[59] = ee, t[60] = Ue, t[61] = Le) : Le = t[61], S = Le;
|
|
915
|
+
let _e, Ce;
|
|
916
|
+
t[62] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_e = he("settings"), Ce = {
|
|
916
917
|
backgroundColor: "transparent",
|
|
917
918
|
display: "flex",
|
|
918
919
|
alignItems: "center",
|
|
919
920
|
px: 1,
|
|
920
921
|
cursor: "pointer"
|
|
921
|
-
}, t[
|
|
922
|
-
let
|
|
923
|
-
t[
|
|
922
|
+
}, t[62] = _e, t[63] = Ce) : (_e = t[62], Ce = t[63]);
|
|
923
|
+
let Te;
|
|
924
|
+
t[64] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Te = /* @__PURE__ */ i.jsx(Oe, { size: "small", sx: {
|
|
924
925
|
mr: 0.5
|
|
925
|
-
}, children: /* @__PURE__ */ i.jsx(Je, { fontSize: "small" }) }), t[
|
|
926
|
-
let J;
|
|
927
|
-
t[61] !== s ? (J = s("Layout.Appearance"), t[61] = s, t[62] = J) : J = t[62];
|
|
928
|
-
let ee;
|
|
929
|
-
t[63] !== J ? (ee = /* @__PURE__ */ i.jsxs(Be, { onClick: Le, sx: _e, children: [
|
|
930
|
-
Ce,
|
|
931
|
-
" ",
|
|
932
|
-
J
|
|
933
|
-
] }), t[63] = J, t[64] = ee) : ee = t[64];
|
|
926
|
+
}, children: /* @__PURE__ */ i.jsx(Je, { fontSize: "small" }) }), t[64] = Te) : Te = t[64];
|
|
934
927
|
let te;
|
|
935
|
-
t[65] !==
|
|
928
|
+
t[65] !== s ? (te = s("Layout.Appearance"), t[65] = s, t[66] = te) : te = t[66];
|
|
929
|
+
let oe;
|
|
930
|
+
t[67] !== te ? (oe = /* @__PURE__ */ i.jsxs(Be, { onClick: _e, sx: Ce, children: [
|
|
931
|
+
Te,
|
|
932
|
+
" ",
|
|
933
|
+
te
|
|
934
|
+
] }), t[67] = te, t[68] = oe) : oe = t[68];
|
|
935
|
+
let ne;
|
|
936
|
+
t[69] !== G || t[70] !== c || t[71] !== m ? (ne = G.map((O) => {
|
|
936
937
|
const {
|
|
937
938
|
mode: Fe,
|
|
938
939
|
icon: gt,
|
|
939
940
|
label: xt
|
|
940
941
|
} = O;
|
|
941
|
-
return /* @__PURE__ */ i.jsxs(
|
|
942
|
+
return /* @__PURE__ */ i.jsxs(se, { onClick: () => {
|
|
942
943
|
m(Fe), v();
|
|
943
944
|
}, selected: c === Fe, children: [
|
|
944
|
-
/* @__PURE__ */ i.jsx(
|
|
945
|
+
/* @__PURE__ */ i.jsx(re, { children: /* @__PURE__ */ i.jsx(gt, {}) }),
|
|
945
946
|
/* @__PURE__ */ i.jsx(F, { primary: xt })
|
|
946
947
|
] }, Fe);
|
|
947
|
-
}), t[
|
|
948
|
-
let
|
|
949
|
-
t[
|
|
950
|
-
let
|
|
951
|
-
t[
|
|
948
|
+
}), t[69] = G, t[70] = c, t[71] = m, t[72] = ne) : ne = t[72];
|
|
949
|
+
let Ae;
|
|
950
|
+
t[73] !== oe || t[74] !== ne ? (Ae = /* @__PURE__ */ i.jsx(Ee, { subheader: oe, children: ne }), t[73] = oe, t[74] = ne, t[75] = Ae) : Ae = t[75], I = Ae, h = Ee;
|
|
951
|
+
let $e, De;
|
|
952
|
+
t[76] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? ($e = he("settings"), De = {
|
|
952
953
|
backgroundColor: "transparent",
|
|
953
954
|
display: "flex",
|
|
954
955
|
alignItems: "center",
|
|
955
956
|
px: 1,
|
|
956
957
|
cursor: "pointer"
|
|
957
|
-
}, t[
|
|
958
|
-
let
|
|
959
|
-
t[
|
|
958
|
+
}, t[76] = $e, t[77] = De) : ($e = t[76], De = t[77]);
|
|
959
|
+
let Me;
|
|
960
|
+
t[78] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Me = /* @__PURE__ */ i.jsx(Oe, { size: "small", sx: {
|
|
960
961
|
mr: 0.5
|
|
961
|
-
}, children: /* @__PURE__ */ i.jsx(Je, { fontSize: "small" }) }), t[
|
|
962
|
-
let
|
|
963
|
-
t[
|
|
964
|
-
|
|
962
|
+
}, children: /* @__PURE__ */ i.jsx(Je, { fontSize: "small" }) }), t[78] = Me) : Me = t[78];
|
|
963
|
+
let ie;
|
|
964
|
+
t[79] !== s ? (ie = s("Layout.Language"), t[79] = s, t[80] = ie) : ie = t[80], t[81] !== ie ? (b = /* @__PURE__ */ i.jsxs(Be, { onClick: $e, sx: De, children: [
|
|
965
|
+
Me,
|
|
965
966
|
" ",
|
|
966
|
-
|
|
967
|
-
] }), t[
|
|
968
|
-
/* @__PURE__ */ i.jsx(
|
|
967
|
+
ie
|
|
968
|
+
] }), t[81] = ie, t[82] = b) : b = t[82], k = N.map((O) => /* @__PURE__ */ i.jsxs(se, { onClick: () => l.changeLanguage(O).finally(() => v()), selected: l.resolvedLanguage === O, children: [
|
|
969
|
+
/* @__PURE__ */ i.jsx(re, { children: l.resolvedLanguage === O && /* @__PURE__ */ i.jsx(yo, {}) }),
|
|
969
970
|
/* @__PURE__ */ i.jsx(F, { primary: rt(U.of(O)) })
|
|
970
971
|
] }, O)), t[2] = l, t[3] = c, t[4] = m, t[5] = s, t[6] = h, t[7] = v, t[8] = x, t[9] = S, t[10] = b, t[11] = k, t[12] = I;
|
|
971
972
|
} else
|
|
972
973
|
h = t[6], v = t[7], x = t[8], S = t[9], b = t[10], k = t[11], I = t[12];
|
|
973
974
|
let T;
|
|
974
|
-
t[
|
|
975
|
+
t[83] !== h || t[84] !== b || t[85] !== k ? (T = /* @__PURE__ */ i.jsx(h, { subheader: b, children: k }), t[83] = h, t[84] = b, t[85] = k, t[86] = T) : T = t[86];
|
|
975
976
|
const E = T;
|
|
976
977
|
let w;
|
|
977
|
-
t[
|
|
978
|
+
t[87] !== g ? (w = g ? /* @__PURE__ */ i.jsx(At, { src: g, sx: {
|
|
978
979
|
width: {
|
|
979
980
|
xs: 32,
|
|
980
981
|
sm: 40
|
|
@@ -992,51 +993,51 @@ const nn = {
|
|
|
992
993
|
xs: 32,
|
|
993
994
|
sm: 40
|
|
994
995
|
}
|
|
995
|
-
} }), t[
|
|
996
|
+
} }), t[87] = g, t[88] = w) : w = t[88];
|
|
996
997
|
let L;
|
|
997
|
-
t[
|
|
998
|
+
t[89] !== x || t[90] !== w ? (L = /* @__PURE__ */ i.jsx(Oe, { size: "small", edge: "end", onClick: x, children: w }), t[89] = x, t[90] = w, t[91] = L) : L = t[91];
|
|
998
999
|
let A;
|
|
999
|
-
t[
|
|
1000
|
+
t[92] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = {
|
|
1000
1001
|
width: 240
|
|
1001
|
-
}, t[
|
|
1002
|
+
}, t[92] = A) : A = t[92];
|
|
1002
1003
|
let _;
|
|
1003
|
-
t[
|
|
1004
|
+
t[93] !== u || t[94] !== p || t[95] !== s ? (_ = /* @__PURE__ */ i.jsx(Ee, { disablePadding: !0, children: p ? /* @__PURE__ */ i.jsxs(Re, { children: [
|
|
1004
1005
|
/* @__PURE__ */ i.jsx(Tt, { children: /* @__PURE__ */ i.jsx(F, { primary: d.name, secondary: /* @__PURE__ */ i.jsxs("span", { children: [
|
|
1005
1006
|
d.employeeId && /* @__PURE__ */ i.jsx("span", { children: d.employeeId }),
|
|
1006
1007
|
d.employeeId && /* @__PURE__ */ i.jsx("br", {}),
|
|
1007
1008
|
d.department && /* @__PURE__ */ i.jsx("span", { children: d.department })
|
|
1008
1009
|
] }) }) }),
|
|
1009
|
-
/* @__PURE__ */ i.jsxs(
|
|
1010
|
+
/* @__PURE__ */ i.jsxs(se, { onClick: () => u.logoutRedirect({
|
|
1010
1011
|
postLogoutRedirectUri: "/"
|
|
1011
1012
|
}), children: [
|
|
1012
|
-
/* @__PURE__ */ i.jsx(
|
|
1013
|
+
/* @__PURE__ */ i.jsx(re, { children: /* @__PURE__ */ i.jsx(bo, { color: "error" }) }),
|
|
1013
1014
|
/* @__PURE__ */ i.jsx(F, { primary: s("Layout.Logout") })
|
|
1014
1015
|
] })
|
|
1015
|
-
] }) : /* @__PURE__ */ i.jsxs(
|
|
1016
|
-
/* @__PURE__ */ i.jsx(
|
|
1016
|
+
] }) : /* @__PURE__ */ i.jsxs(se, { onClick: () => u.loginRedirect(), children: [
|
|
1017
|
+
/* @__PURE__ */ i.jsx(re, { children: /* @__PURE__ */ i.jsx(So, { color: "success" }) }),
|
|
1017
1018
|
/* @__PURE__ */ i.jsx(F, { primary: s("Layout.LogIn") })
|
|
1018
|
-
] }) }), t[
|
|
1019
|
+
] }) }), t[93] = u, t[94] = p, t[95] = s, t[96] = _) : _ = t[96];
|
|
1019
1020
|
const P = n === "settings" && S, D = n === "theme" && I, $ = n === "language" && E;
|
|
1020
1021
|
let j;
|
|
1021
|
-
t[
|
|
1022
|
+
t[97] !== D || t[98] !== $ || t[99] !== _ || t[100] !== P ? (j = /* @__PURE__ */ i.jsxs(Pe, { sx: A, children: [
|
|
1022
1023
|
_,
|
|
1023
1024
|
P,
|
|
1024
1025
|
D,
|
|
1025
1026
|
$
|
|
1026
|
-
] }), t[
|
|
1027
|
+
] }), t[97] = D, t[98] = $, t[99] = _, t[100] = P, t[101] = j) : j = t[101];
|
|
1027
1028
|
let C;
|
|
1028
|
-
t[
|
|
1029
|
+
t[102] !== e || t[103] !== v || t[104] !== a || t[105] !== j ? (C = /* @__PURE__ */ i.jsx($t, { anchorEl: e, open: a, onClose: v, children: j }), t[102] = e, t[103] = v, t[104] = a, t[105] = j, t[106] = C) : C = t[106];
|
|
1029
1030
|
let M;
|
|
1030
|
-
return t[
|
|
1031
|
+
return t[107] !== C || t[108] !== L ? (M = /* @__PURE__ */ i.jsxs(Re, { children: [
|
|
1031
1032
|
L,
|
|
1032
1033
|
C
|
|
1033
|
-
] }), t[
|
|
1034
|
+
] }), t[107] = C, t[108] = L, t[109] = M) : M = t[109], M;
|
|
1034
1035
|
};
|
|
1035
1036
|
function rn(t) {
|
|
1036
1037
|
return t !== "cimode";
|
|
1037
1038
|
}
|
|
1038
|
-
const pt = "navigation-open", an = () =>
|
|
1039
|
-
(
|
|
1039
|
+
const pt = "navigation-open", an = () => Ne.isWindows || Ne.isMacOS ? localStorage.getItem(pt) === "true" : !1, ht = (t) => {
|
|
1040
|
+
(Ne.isWindows || Ne.isMacOS) && localStorage.setItem(pt, String(t));
|
|
1040
1041
|
}, ln = Ke("div")(({
|
|
1041
1042
|
theme: t
|
|
1042
1043
|
}) => ({
|
|
@@ -1048,7 +1049,7 @@ const pt = "navigation-open", an = () => Re.isWindows || Re.isMacOS ? localStora
|
|
|
1048
1049
|
})), cn = (t) => {
|
|
1049
1050
|
const e = R.c(23);
|
|
1050
1051
|
qt(Vt.Redirect);
|
|
1051
|
-
const [o, n] =
|
|
1052
|
+
const [o, n] = ce(an);
|
|
1052
1053
|
let r, a;
|
|
1053
1054
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = /* @__PURE__ */ i.jsx(Dt, {}), a = /* @__PURE__ */ i.jsx(Mt, {}), e[0] = r, e[1] = a) : (r = e[0], a = e[1]);
|
|
1054
1055
|
let s;
|
|
@@ -1066,7 +1067,7 @@ const pt = "navigation-open", an = () => Re.isWindows || Re.isMacOS ? localStora
|
|
|
1066
1067
|
boxShadow: "none"
|
|
1067
1068
|
}, e[3] = l) : l = e[3];
|
|
1068
1069
|
let c;
|
|
1069
|
-
e[4] !== o || e[5] !== t.navigation ? (c = t.navigation && /* @__PURE__ */ i.jsx(
|
|
1070
|
+
e[4] !== o || e[5] !== t.navigation ? (c = t.navigation && /* @__PURE__ */ i.jsx(Oe, { onClick: () => {
|
|
1070
1071
|
n(dn);
|
|
1071
1072
|
}, sx: {
|
|
1072
1073
|
marginRight: 2
|
|
@@ -1099,15 +1100,15 @@ const pt = "navigation-open", an = () => Re.isWindows || Re.isMacOS ? localStora
|
|
|
1099
1100
|
position: "relative"
|
|
1100
1101
|
}, e[16] = g) : g = e[16];
|
|
1101
1102
|
let h;
|
|
1102
|
-
e[17] !== t.children ? (h = /* @__PURE__ */ i.jsxs(
|
|
1103
|
+
e[17] !== t.children ? (h = /* @__PURE__ */ i.jsxs(Pe, { component: "main", sx: y, children: [
|
|
1103
1104
|
d,
|
|
1104
|
-
/* @__PURE__ */ i.jsx(
|
|
1105
|
+
/* @__PURE__ */ i.jsx(Pe, { sx: g, children: t.children })
|
|
1105
1106
|
] }), e[17] = t.children, e[18] = h) : h = e[18];
|
|
1106
1107
|
let v;
|
|
1107
1108
|
return e[19] !== h || e[20] !== p || e[21] !== f ? (v = /* @__PURE__ */ i.jsxs(Kt, { children: [
|
|
1108
1109
|
r,
|
|
1109
1110
|
a,
|
|
1110
|
-
/* @__PURE__ */ i.jsxs(
|
|
1111
|
+
/* @__PURE__ */ i.jsxs(Pe, { sx: s, children: [
|
|
1111
1112
|
p,
|
|
1112
1113
|
f,
|
|
1113
1114
|
h
|