wcz-test 7.2.3 → 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/exports/utils.d.ts +1 -0
- 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-CsRHHlp3.js → index-CjSQ0_za.js} +9 -10
- package/dist/{index-CsRHHlp3.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 +136 -136
- 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-l-DV8PoB.js → msalClient-BDfKsC3C.js} +6 -8
- package/dist/msalClient-BDfKsC3C.js.map +1 -0
- package/dist/query.js +1 -1
- package/dist/robots.txt +3 -3
- package/dist/utils-BTQg82mj.js +151 -0
- package/dist/utils-BTQg82mj.js.map +1 -0
- package/dist/utils.js +72 -40
- package/dist/utils.js.map +1 -1
- package/package.json +16 -19
- package/dist/env-Dy8Ynqa-.js +0 -75
- package/dist/env-Dy8Ynqa-.js.map +0 -1
- package/dist/exports/server.d.ts +0 -1
- package/dist/i18next-8reizFda.js.map +0 -1
- package/dist/index-De6Lo0ff.js.map +0 -1
- package/dist/msalClient-l-DV8PoB.js.map +0 -1
- package/dist/server.js +0 -36
- package/dist/server.js.map +0 -1
- package/dist/utils-BGMLqA26.js +0 -81
- package/dist/utils-BGMLqA26.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,24 +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 { P as
|
|
20
|
-
import { W as
|
|
21
|
-
import { a as to } from "./env-Dy8Ynqa-.js";
|
|
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";
|
|
22
21
|
import Ye from "@mui/material/Box";
|
|
23
22
|
import Ze from "@mui/material/Drawer";
|
|
24
23
|
import oo from "@mui/material/Divider";
|
|
@@ -45,7 +44,7 @@ import bo from "@mui/icons-material/Logout";
|
|
|
45
44
|
import wo from "@mui/icons-material/SettingsBrightness";
|
|
46
45
|
import jo from "@mui/icons-material/Translate";
|
|
47
46
|
import { queryOptions as ko, useQuery as Io } from "@tanstack/react-query";
|
|
48
|
-
import { a as Lo } from "./index-
|
|
47
|
+
import { a as Lo } from "./index-D3xlpZgv.js";
|
|
49
48
|
const {
|
|
50
49
|
slice: _o,
|
|
51
50
|
forEach: Co
|
|
@@ -195,18 +194,18 @@ var Do = {
|
|
|
195
194
|
return n;
|
|
196
195
|
}
|
|
197
196
|
};
|
|
198
|
-
let
|
|
197
|
+
let ae = null;
|
|
199
198
|
const nt = () => {
|
|
200
|
-
if (
|
|
199
|
+
if (ae !== null) return ae;
|
|
201
200
|
try {
|
|
202
|
-
if (
|
|
201
|
+
if (ae = typeof window < "u" && window.localStorage !== null, !ae)
|
|
203
202
|
return !1;
|
|
204
203
|
const t = "i18next.translate.boo";
|
|
205
204
|
window.localStorage.setItem(t, "foo"), window.localStorage.removeItem(t);
|
|
206
205
|
} catch {
|
|
207
|
-
|
|
206
|
+
ae = !1;
|
|
208
207
|
}
|
|
209
|
-
return
|
|
208
|
+
return ae;
|
|
210
209
|
};
|
|
211
210
|
var Oo = {
|
|
212
211
|
name: "localStorage",
|
|
@@ -226,18 +225,18 @@ var Oo = {
|
|
|
226
225
|
o && nt() && window.localStorage.setItem(o, t);
|
|
227
226
|
}
|
|
228
227
|
};
|
|
229
|
-
let
|
|
228
|
+
let le = null;
|
|
230
229
|
const it = () => {
|
|
231
|
-
if (
|
|
230
|
+
if (le !== null) return le;
|
|
232
231
|
try {
|
|
233
|
-
if (
|
|
232
|
+
if (le = typeof window < "u" && window.sessionStorage !== null, !le)
|
|
234
233
|
return !1;
|
|
235
234
|
const t = "i18next.translate.boo";
|
|
236
235
|
window.sessionStorage.setItem(t, "foo"), window.sessionStorage.removeItem(t);
|
|
237
236
|
} catch {
|
|
238
|
-
|
|
237
|
+
le = !1;
|
|
239
238
|
}
|
|
240
|
-
return
|
|
239
|
+
return le;
|
|
241
240
|
};
|
|
242
241
|
var Po = {
|
|
243
242
|
name: "sessionStorage",
|
|
@@ -363,7 +362,7 @@ const zo = {
|
|
|
363
362
|
function Wo({
|
|
364
363
|
children: t
|
|
365
364
|
}) {
|
|
366
|
-
const [e, o] =
|
|
365
|
+
const [e, o] = ce([]), n = Ft(), r = Ge(0), a = Ge(/* @__PURE__ */ new WeakMap()), s = ze(function(p, f, d = {}) {
|
|
367
366
|
const {
|
|
368
367
|
onClose: y = async () => {
|
|
369
368
|
}
|
|
@@ -518,7 +517,7 @@ const Ho = (t) => {
|
|
|
518
517
|
whiteSpace: "nowrap",
|
|
519
518
|
overflow: "hidden",
|
|
520
519
|
textOverflow: "ellipsis",
|
|
521
|
-
maxWidth:
|
|
520
|
+
maxWidth: de - 28
|
|
522
521
|
}, children: o.title }) : null, e[10] = n, e[11] = o.title, e[12] = m) : m = e[12];
|
|
523
522
|
let u;
|
|
524
523
|
return e[13] !== r || e[14] !== c || e[15] !== m ? (u = /* @__PURE__ */ i.jsxs(Ye, { sx: r, children: [
|
|
@@ -535,7 +534,7 @@ const Ho = (t) => {
|
|
|
535
534
|
let r;
|
|
536
535
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = {
|
|
537
536
|
position: "fixed",
|
|
538
|
-
left:
|
|
537
|
+
left: de,
|
|
539
538
|
pl: "2px",
|
|
540
539
|
pb: "10px"
|
|
541
540
|
}, e[0] = r) : r = e[0];
|
|
@@ -564,7 +563,7 @@ const Ho = (t) => {
|
|
|
564
563
|
onClick: m,
|
|
565
564
|
renderNested: u,
|
|
566
565
|
onClose: p
|
|
567
|
-
} = 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}`;
|
|
568
567
|
let h;
|
|
569
568
|
e[0] !== s || e[1] !== n || e[2] !== c || e[3] !== f || e[4] !== o.children ? (h = (U) => s && c && o.children ? {
|
|
570
569
|
fontSize: 18,
|
|
@@ -650,7 +649,7 @@ const Ho = (t) => {
|
|
|
650
649
|
let M;
|
|
651
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];
|
|
652
651
|
let N;
|
|
653
|
-
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: [
|
|
654
653
|
C,
|
|
655
654
|
M
|
|
656
655
|
] }, o.to), e[52] = o.to, e[53] = C, e[54] = M, e[55] = N) : N = e[55], N;
|
|
@@ -674,7 +673,7 @@ const Zo = (t) => !("kind" in t), Jo = (t) => "kind" in t && t.kind === "divider
|
|
|
674
673
|
} = t, d = n === void 0 ? 0 : n, y = s === void 0 ? !0 : s;
|
|
675
674
|
let g;
|
|
676
675
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = [], e[0] = g) : g = e[0];
|
|
677
|
-
const [h, v] =
|
|
676
|
+
const [h, v] = ce(g);
|
|
678
677
|
let x, S;
|
|
679
678
|
e[1] !== r ? (x = () => {
|
|
680
679
|
r && v([]);
|
|
@@ -687,7 +686,7 @@ const Zo = (t) => !("kind" in t), Jo = (t) => "kind" in t && t.kind === "divider
|
|
|
687
686
|
const T = I;
|
|
688
687
|
let E;
|
|
689
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) {
|
|
690
|
-
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";
|
|
691
690
|
let $;
|
|
692
691
|
e[24] !== A || e[25] !== _ || e[26] !== P || e[27] !== D || e[28] !== L ? ($ = {
|
|
693
692
|
padding: 0,
|
|
@@ -721,7 +720,7 @@ const Zo = (t) => !("kind" in t), Jo = (t) => "kind" in t && t.kind === "divider
|
|
|
721
720
|
if (!Zo(j))
|
|
722
721
|
return null;
|
|
723
722
|
const M = `item-${d}-${C}`, N = `${d}-${C}-${j.title}`;
|
|
724
|
-
return m ? /* @__PURE__ */ i.jsx(
|
|
723
|
+
return m ? /* @__PURE__ */ i.jsx(Re, { children: m(j, {
|
|
725
724
|
collapsed: !!r
|
|
726
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);
|
|
727
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;
|
|
@@ -732,7 +731,7 @@ const Zo = (t) => !("kind" in t), Jo = (t) => "kind" in t && t.kind === "divider
|
|
|
732
731
|
function en(t) {
|
|
733
732
|
return !t.hidden;
|
|
734
733
|
}
|
|
735
|
-
const
|
|
734
|
+
const de = 84, He = 320, st = 64, tn = (t) => {
|
|
736
735
|
const e = R.c(29), {
|
|
737
736
|
navigation: o,
|
|
738
737
|
expanded: n,
|
|
@@ -754,7 +753,7 @@ const le = 84, He = 320, st = 64, tn = (t) => {
|
|
|
754
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];
|
|
755
754
|
const p = u;
|
|
756
755
|
if (m) {
|
|
757
|
-
const h = n ? He :
|
|
756
|
+
const h = n ? He : de, v = n ? He : de;
|
|
758
757
|
let x;
|
|
759
758
|
e[9] !== v ? (x = {
|
|
760
759
|
position: "absolute",
|
|
@@ -807,7 +806,7 @@ const nn = {
|
|
|
807
806
|
select: (t) => URL.createObjectURL(t)
|
|
808
807
|
})
|
|
809
808
|
}, rt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), sn = () => {
|
|
810
|
-
const t = R.c(
|
|
809
|
+
const t = R.c(110), [e, o] = ce(), [n, r] = ce("settings"), a = !!e, {
|
|
811
810
|
t: s,
|
|
812
811
|
i18n: l
|
|
813
812
|
} = bt(), {
|
|
@@ -853,129 +852,130 @@ const nn = {
|
|
|
853
852
|
icon: wo,
|
|
854
853
|
label: K
|
|
855
854
|
}, t[23] = K, t[24] = Y) : Y = t[24];
|
|
856
|
-
let ce;
|
|
857
|
-
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];
|
|
858
|
-
const de = ce;
|
|
859
855
|
let ue;
|
|
860
|
-
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;
|
|
861
858
|
let me;
|
|
862
|
-
t[
|
|
863
|
-
o(void 0), setTimeout(() => r("settings"), 300);
|
|
864
|
-
}, 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;
|
|
865
860
|
let fe;
|
|
866
|
-
t[
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
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 = {
|
|
870
869
|
backgroundColor: "transparent"
|
|
871
|
-
}, t[32] =
|
|
872
|
-
let G;
|
|
873
|
-
t[33] !== s ? (G = s("Layout.Settings"), t[33] = s, t[34] = G) : G = t[34];
|
|
870
|
+
}, t[32] = ge) : ge = t[32];
|
|
874
871
|
let Q;
|
|
875
|
-
t[
|
|
876
|
-
let ge, xe;
|
|
877
|
-
t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ge = pe("theme"), xe = {
|
|
878
|
-
py: 0.3
|
|
879
|
-
}, t[37] = ge, t[38] = xe) : (ge = t[37], xe = t[38]);
|
|
880
|
-
let ye;
|
|
881
|
-
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];
|
|
882
873
|
let X;
|
|
883
|
-
t[
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
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]);
|
|
887
879
|
let ve;
|
|
888
|
-
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];
|
|
889
883
|
let Z;
|
|
890
|
-
t[
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
]
|
|
895
|
-
let
|
|
896
|
-
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 = {
|
|
897
897
|
py: 0.3
|
|
898
|
-
}, t[
|
|
899
|
-
let we;
|
|
900
|
-
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]);
|
|
901
899
|
let je;
|
|
902
|
-
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];
|
|
903
901
|
let ke;
|
|
904
|
-
t[
|
|
905
|
-
const Ue = /* @__PURE__ */ i.jsxs(ne, { onClick: Se, sx: be, children: [
|
|
906
|
-
we,
|
|
907
|
-
/* @__PURE__ */ i.jsx(F, { primary: je, secondary: rt(U.of(l.language)) }),
|
|
908
|
-
ke
|
|
909
|
-
] });
|
|
902
|
+
t[55] !== s ? (ke = s("Layout.Language"), t[55] = s, t[56] = ke) : ke = t[56];
|
|
910
903
|
let Ie;
|
|
911
|
-
t[
|
|
912
|
-
|
|
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,
|
|
913
913
|
Ue
|
|
914
|
-
] }), t[
|
|
915
|
-
let
|
|
916
|
-
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 = {
|
|
917
917
|
backgroundColor: "transparent",
|
|
918
918
|
display: "flex",
|
|
919
919
|
alignItems: "center",
|
|
920
920
|
px: 1,
|
|
921
921
|
cursor: "pointer"
|
|
922
|
-
}, t[
|
|
923
|
-
let
|
|
924
|
-
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: {
|
|
925
925
|
mr: 0.5
|
|
926
|
-
}, children: /* @__PURE__ */ i.jsx(Je, { fontSize: "small" }) }), t[
|
|
927
|
-
let J;
|
|
928
|
-
t[61] !== s ? (J = s("Layout.Appearance"), t[61] = s, t[62] = J) : J = t[62];
|
|
929
|
-
let ee;
|
|
930
|
-
t[63] !== J ? (ee = /* @__PURE__ */ i.jsxs(Be, { onClick: Le, sx: _e, children: [
|
|
931
|
-
Ce,
|
|
932
|
-
" ",
|
|
933
|
-
J
|
|
934
|
-
] }), t[63] = J, t[64] = ee) : ee = t[64];
|
|
926
|
+
}, children: /* @__PURE__ */ i.jsx(Je, { fontSize: "small" }) }), t[64] = Te) : Te = t[64];
|
|
935
927
|
let te;
|
|
936
|
-
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) => {
|
|
937
937
|
const {
|
|
938
938
|
mode: Fe,
|
|
939
939
|
icon: gt,
|
|
940
940
|
label: xt
|
|
941
941
|
} = O;
|
|
942
|
-
return /* @__PURE__ */ i.jsxs(
|
|
942
|
+
return /* @__PURE__ */ i.jsxs(se, { onClick: () => {
|
|
943
943
|
m(Fe), v();
|
|
944
944
|
}, selected: c === Fe, children: [
|
|
945
|
-
/* @__PURE__ */ i.jsx(
|
|
945
|
+
/* @__PURE__ */ i.jsx(re, { children: /* @__PURE__ */ i.jsx(gt, {}) }),
|
|
946
946
|
/* @__PURE__ */ i.jsx(F, { primary: xt })
|
|
947
947
|
] }, Fe);
|
|
948
|
-
}), t[
|
|
949
|
-
let
|
|
950
|
-
t[
|
|
951
|
-
let
|
|
952
|
-
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 = {
|
|
953
953
|
backgroundColor: "transparent",
|
|
954
954
|
display: "flex",
|
|
955
955
|
alignItems: "center",
|
|
956
956
|
px: 1,
|
|
957
957
|
cursor: "pointer"
|
|
958
|
-
}, t[
|
|
959
|
-
let
|
|
960
|
-
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: {
|
|
961
961
|
mr: 0.5
|
|
962
|
-
}, children: /* @__PURE__ */ i.jsx(Je, { fontSize: "small" }) }), t[
|
|
963
|
-
let
|
|
964
|
-
t[
|
|
965
|
-
|
|
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,
|
|
966
966
|
" ",
|
|
967
|
-
|
|
968
|
-
] }), t[
|
|
969
|
-
/* @__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, {}) }),
|
|
970
970
|
/* @__PURE__ */ i.jsx(F, { primary: rt(U.of(O)) })
|
|
971
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;
|
|
972
972
|
} else
|
|
973
973
|
h = t[6], v = t[7], x = t[8], S = t[9], b = t[10], k = t[11], I = t[12];
|
|
974
974
|
let T;
|
|
975
|
-
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];
|
|
976
976
|
const E = T;
|
|
977
977
|
let w;
|
|
978
|
-
t[
|
|
978
|
+
t[87] !== g ? (w = g ? /* @__PURE__ */ i.jsx(At, { src: g, sx: {
|
|
979
979
|
width: {
|
|
980
980
|
xs: 32,
|
|
981
981
|
sm: 40
|
|
@@ -993,51 +993,51 @@ const nn = {
|
|
|
993
993
|
xs: 32,
|
|
994
994
|
sm: 40
|
|
995
995
|
}
|
|
996
|
-
} }), t[
|
|
996
|
+
} }), t[87] = g, t[88] = w) : w = t[88];
|
|
997
997
|
let L;
|
|
998
|
-
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];
|
|
999
999
|
let A;
|
|
1000
|
-
t[
|
|
1000
|
+
t[92] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = {
|
|
1001
1001
|
width: 240
|
|
1002
|
-
}, t[
|
|
1002
|
+
}, t[92] = A) : A = t[92];
|
|
1003
1003
|
let _;
|
|
1004
|
-
t[
|
|
1004
|
+
t[93] !== u || t[94] !== p || t[95] !== s ? (_ = /* @__PURE__ */ i.jsx(Ee, { disablePadding: !0, children: p ? /* @__PURE__ */ i.jsxs(Re, { children: [
|
|
1005
1005
|
/* @__PURE__ */ i.jsx(Tt, { children: /* @__PURE__ */ i.jsx(F, { primary: d.name, secondary: /* @__PURE__ */ i.jsxs("span", { children: [
|
|
1006
1006
|
d.employeeId && /* @__PURE__ */ i.jsx("span", { children: d.employeeId }),
|
|
1007
1007
|
d.employeeId && /* @__PURE__ */ i.jsx("br", {}),
|
|
1008
1008
|
d.department && /* @__PURE__ */ i.jsx("span", { children: d.department })
|
|
1009
1009
|
] }) }) }),
|
|
1010
|
-
/* @__PURE__ */ i.jsxs(
|
|
1010
|
+
/* @__PURE__ */ i.jsxs(se, { onClick: () => u.logoutRedirect({
|
|
1011
1011
|
postLogoutRedirectUri: "/"
|
|
1012
1012
|
}), children: [
|
|
1013
|
-
/* @__PURE__ */ i.jsx(
|
|
1013
|
+
/* @__PURE__ */ i.jsx(re, { children: /* @__PURE__ */ i.jsx(bo, { color: "error" }) }),
|
|
1014
1014
|
/* @__PURE__ */ i.jsx(F, { primary: s("Layout.Logout") })
|
|
1015
1015
|
] })
|
|
1016
|
-
] }) : /* @__PURE__ */ i.jsxs(
|
|
1017
|
-
/* @__PURE__ */ i.jsx(
|
|
1016
|
+
] }) : /* @__PURE__ */ i.jsxs(se, { onClick: () => u.loginRedirect(), children: [
|
|
1017
|
+
/* @__PURE__ */ i.jsx(re, { children: /* @__PURE__ */ i.jsx(So, { color: "success" }) }),
|
|
1018
1018
|
/* @__PURE__ */ i.jsx(F, { primary: s("Layout.LogIn") })
|
|
1019
|
-
] }) }), t[
|
|
1019
|
+
] }) }), t[93] = u, t[94] = p, t[95] = s, t[96] = _) : _ = t[96];
|
|
1020
1020
|
const P = n === "settings" && S, D = n === "theme" && I, $ = n === "language" && E;
|
|
1021
1021
|
let j;
|
|
1022
|
-
t[
|
|
1022
|
+
t[97] !== D || t[98] !== $ || t[99] !== _ || t[100] !== P ? (j = /* @__PURE__ */ i.jsxs(Pe, { sx: A, children: [
|
|
1023
1023
|
_,
|
|
1024
1024
|
P,
|
|
1025
1025
|
D,
|
|
1026
1026
|
$
|
|
1027
|
-
] }), t[
|
|
1027
|
+
] }), t[97] = D, t[98] = $, t[99] = _, t[100] = P, t[101] = j) : j = t[101];
|
|
1028
1028
|
let C;
|
|
1029
|
-
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];
|
|
1030
1030
|
let M;
|
|
1031
|
-
return t[
|
|
1031
|
+
return t[107] !== C || t[108] !== L ? (M = /* @__PURE__ */ i.jsxs(Re, { children: [
|
|
1032
1032
|
L,
|
|
1033
1033
|
C
|
|
1034
|
-
] }), t[
|
|
1034
|
+
] }), t[107] = C, t[108] = L, t[109] = M) : M = t[109], M;
|
|
1035
1035
|
};
|
|
1036
1036
|
function rn(t) {
|
|
1037
1037
|
return t !== "cimode";
|
|
1038
1038
|
}
|
|
1039
|
-
const pt = "navigation-open", an = () =>
|
|
1040
|
-
(
|
|
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));
|
|
1041
1041
|
}, ln = Ke("div")(({
|
|
1042
1042
|
theme: t
|
|
1043
1043
|
}) => ({
|
|
@@ -1049,7 +1049,7 @@ const pt = "navigation-open", an = () => Re.isWindows || Re.isMacOS ? localStora
|
|
|
1049
1049
|
})), cn = (t) => {
|
|
1050
1050
|
const e = R.c(23);
|
|
1051
1051
|
qt(Vt.Redirect);
|
|
1052
|
-
const [o, n] =
|
|
1052
|
+
const [o, n] = ce(an);
|
|
1053
1053
|
let r, a;
|
|
1054
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]);
|
|
1055
1055
|
let s;
|
|
@@ -1067,7 +1067,7 @@ const pt = "navigation-open", an = () => Re.isWindows || Re.isMacOS ? localStora
|
|
|
1067
1067
|
boxShadow: "none"
|
|
1068
1068
|
}, e[3] = l) : l = e[3];
|
|
1069
1069
|
let c;
|
|
1070
|
-
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: () => {
|
|
1071
1071
|
n(dn);
|
|
1072
1072
|
}, sx: {
|
|
1073
1073
|
marginRight: 2
|
|
@@ -1100,15 +1100,15 @@ const pt = "navigation-open", an = () => Re.isWindows || Re.isMacOS ? localStora
|
|
|
1100
1100
|
position: "relative"
|
|
1101
1101
|
}, e[16] = g) : g = e[16];
|
|
1102
1102
|
let h;
|
|
1103
|
-
e[17] !== t.children ? (h = /* @__PURE__ */ i.jsxs(
|
|
1103
|
+
e[17] !== t.children ? (h = /* @__PURE__ */ i.jsxs(Pe, { component: "main", sx: y, children: [
|
|
1104
1104
|
d,
|
|
1105
|
-
/* @__PURE__ */ i.jsx(
|
|
1105
|
+
/* @__PURE__ */ i.jsx(Pe, { sx: g, children: t.children })
|
|
1106
1106
|
] }), e[17] = t.children, e[18] = h) : h = e[18];
|
|
1107
1107
|
let v;
|
|
1108
1108
|
return e[19] !== h || e[20] !== p || e[21] !== f ? (v = /* @__PURE__ */ i.jsxs(Kt, { children: [
|
|
1109
1109
|
r,
|
|
1110
1110
|
a,
|
|
1111
|
-
/* @__PURE__ */ i.jsxs(
|
|
1111
|
+
/* @__PURE__ */ i.jsxs(Pe, { sx: s, children: [
|
|
1112
1112
|
p,
|
|
1113
1113
|
f,
|
|
1114
1114
|
h
|
|
@@ -1132,7 +1132,7 @@ B.use(ut).use(zo).init({
|
|
|
1132
1132
|
escapeValue: !1
|
|
1133
1133
|
}
|
|
1134
1134
|
});
|
|
1135
|
-
const
|
|
1135
|
+
const si = (t) => {
|
|
1136
1136
|
const e = R.c(9), {
|
|
1137
1137
|
navigation: o,
|
|
1138
1138
|
theme: n,
|
|
@@ -1153,9 +1153,9 @@ function mn() {
|
|
|
1153
1153
|
Xe.config(Xe.core.locales[B.language]()), Ut.locale(B.language);
|
|
1154
1154
|
}
|
|
1155
1155
|
export {
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1156
|
+
si as LayoutProvider,
|
|
1157
|
+
li as WISTRON_PRIMARY_COLOR,
|
|
1158
|
+
ci as WISTRON_SECONDARY_COLOR,
|
|
1159
|
+
di as rootRouteHead
|
|
1160
1160
|
};
|
|
1161
1161
|
//# sourceMappingURL=index.js.map
|