wcz-test 6.23.2 → 6.24.1
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/components/core/AppTitle.js +1 -1
- package/dist/components/core/AppTitle.js.map +1 -1
- package/dist/components/core/Fullscreen.js +2 -2
- package/dist/components/core/Fullscreen.js.map +1 -1
- package/dist/components/core/Layout.js +7 -8
- package/dist/components/core/Layout.js.map +1 -1
- package/dist/components/core/ToolbarAccount.js +123 -143
- package/dist/components/core/ToolbarAccount.js.map +1 -1
- package/dist/components/core/TypographyWithIcon.js +2 -2
- package/dist/components/core/TypographyWithIcon.js.map +1 -1
- package/dist/components/core/navigation/NavigationList.js +2 -2
- package/dist/components/core/navigation/NavigationList.js.map +1 -1
- package/dist/components/core/navigation/NavigationListItem.js +6 -6
- package/dist/components/core/navigation/NavigationListItem.js.map +1 -1
- package/dist/components/data-grid/EditableColumnHeader.js +1 -1
- package/dist/components/data-grid/EditableColumnHeader.js.map +1 -1
- package/dist/components/file/Dropzone.js +2 -2
- package/dist/components/file/Dropzone.js.map +1 -1
- package/dist/components/file/FileViewer.js +2 -2
- package/dist/components/file/FileViewer.js.map +1 -1
- package/dist/components/file/fileViewer/FileViewerGrid.js +1 -1
- package/dist/components/file/fileViewer/FileViewerGrid.js.map +1 -1
- package/dist/components/router/RouterError.js +2 -2
- package/dist/components/router/RouterError.js.map +1 -1
- package/dist/components/router/RouterNotFound.js +2 -2
- package/dist/components/router/RouterNotFound.js.map +1 -1
- package/dist/env.d.ts +5 -2
- package/dist/env.js +11 -7
- package/dist/env.js.map +1 -1
- package/dist/exports/hooks.d.ts +0 -1
- package/dist/exports/index.d.ts +1 -0
- package/dist/exports/models.d.ts +1 -0
- package/dist/exports/queries.d.ts +1 -1
- package/dist/exports/server.d.ts +3 -0
- package/dist/hooks.js +0 -2
- package/dist/hooks.js.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/auth/api.d.ts +3 -0
- package/dist/lib/auth/api.js +91 -0
- package/dist/lib/auth/api.js.map +1 -0
- package/dist/lib/auth/entra.d.ts +2 -0
- package/dist/lib/auth/entra.js +7 -0
- package/dist/lib/auth/entra.js.map +1 -0
- package/dist/lib/auth/graph.d.ts +17 -0
- package/dist/lib/auth/graph.js +72 -0
- package/dist/lib/auth/graph.js.map +1 -0
- package/dist/lib/auth/session.d.ts +24 -0
- package/dist/lib/auth/session.js +76 -0
- package/dist/lib/auth/session.js.map +1 -0
- package/dist/lib/queryClient.d.ts +2 -0
- package/dist/lib/queryClient.js +6 -0
- package/dist/lib/queryClient.js.map +1 -0
- package/dist/lib/utils.js.map +1 -1
- package/dist/middleware/auth.d.ts +13 -4
- package/dist/models/User.d.ts +8 -3
- package/dist/models/User.js +18 -0
- package/dist/models/User.js.map +1 -0
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js +1 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.development.js.map +1 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js +1 -1
- package/dist/node_modules/react/cjs/react-jsx-runtime.production.js.map +1 -1
- package/dist/providers/LayoutProvider.js +2 -9
- package/dist/providers/LayoutProvider.js.map +1 -1
- package/dist/queries/ApprovalHooks.d.ts +24 -1
- package/dist/queries/ApprovalHooks.js +114 -31
- package/dist/queries/ApprovalHooks.js.map +1 -1
- package/dist/queries/FileHooks.js +53 -26
- package/dist/queries/FileHooks.js.map +1 -1
- package/dist/queries/PeopleSoftHooks.js +68 -26
- package/dist/queries/PeopleSoftHooks.js.map +1 -1
- package/dist/queries.js +3 -9
- package/dist/server.js +5 -1
- package/dist/server.js.map +1 -1
- package/package.json +14 -14
- package/dist/contexts/UserContext.d.ts +0 -7
- package/dist/contexts/UserContext.js +0 -6
- package/dist/contexts/UserContext.js.map +0 -1
- package/dist/hooks/UseHook.d.ts +0 -2
- package/dist/hooks/UseHook.js +0 -12
- package/dist/hooks/UseHook.js.map +0 -1
- package/dist/lib/auth/client.d.ts +0 -13
- package/dist/lib/auth/client.js +0 -63
- package/dist/lib/auth/client.js.map +0 -1
- package/dist/lib/auth/server.d.ts +0 -9
- package/dist/providers/UserProvider.d.ts +0 -4
- package/dist/providers/UserProvider.js +0 -94
- package/dist/providers/UserProvider.js.map +0 -1
- package/dist/queries/Approval.d.ts +0 -585
- package/dist/queries/Approval.js +0 -91
- package/dist/queries/Approval.js.map +0 -1
- package/dist/queries/UserHooks.d.ts +0 -11
- package/dist/queries/UserHooks.js +0 -157
- package/dist/queries/UserHooks.js.map +0 -1
|
@@ -5,7 +5,7 @@ import { clientEnv } from "../../env.js";
|
|
|
5
5
|
const AppTitle = () => {
|
|
6
6
|
const $ = compilerRuntimeExports.c(1);
|
|
7
7
|
let t0;
|
|
8
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
8
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
9
9
|
t0 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Stack, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
|
|
10
10
|
/* @__PURE__ */ jsxRuntimeExports.jsx("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
|
|
11
11
|
/* @__PURE__ */ jsxRuntimeExports.jsx(Typography, { variant: "h6", children: clientEnv.VITE_APP_TITLE }),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AppTitle.js","sources":["../../../src/components/core/AppTitle.tsx"],"sourcesContent":["import { Chip, Stack, Typography } from \"@mui/material\";\nimport type { FC } from \"react\";\nimport { clientEnv } from \"~/env\";\n\nexport const AppTitle: FC = () => {\n return (\n <Stack direction=\"row\" alignItems=\"center\" spacing={2} flexGrow={1}>\n <img src=\"/favicon-32x32.png\" alt=\"app-logo\" loading=\"lazy\" />\n <Typography variant=\"h6\">{clientEnv.VITE_APP_TITLE}</Typography>\n {import.meta.env.DEV && <Chip size=\"small\" label=\"TEST\" color=\"info\" />}\n </Stack>\n );\n};\n"],"names":["AppTitle","$","_c","t0","Symbol","for","jsxs","jsx","clientEnv","VITE_APP_TITLE","import"],"mappings":";;;;AAIO,MAAMA,WAAeA,MAAA;AAAA,QAAAC,IAAAC,uBAAAA,EAAA,CAAA;AAAA,MAAAC;AAAA,MAAAF,EAAA,CAAA,MAAAG,
|
|
1
|
+
{"version":3,"file":"AppTitle.js","sources":["../../../src/components/core/AppTitle.tsx"],"sourcesContent":["import { Chip, Stack, Typography } from \"@mui/material\";\nimport type { FC } from \"react\";\nimport { clientEnv } from \"~/env\";\n\nexport const AppTitle: FC = () => {\n return (\n <Stack direction=\"row\" alignItems=\"center\" spacing={2} flexGrow={1}>\n <img src=\"/favicon-32x32.png\" alt=\"app-logo\" loading=\"lazy\" />\n <Typography variant=\"h6\">{clientEnv.VITE_APP_TITLE}</Typography>\n {import.meta.env.DEV && <Chip size=\"small\" label=\"TEST\" color=\"info\" />}\n </Stack>\n );\n};\n"],"names":["AppTitle","$","_c","t0","Symbol","for","jsxs","jsx","clientEnv","VITE_APP_TITLE","import"],"mappings":";;;;AAIO,MAAMA,WAAeA,MAAA;AAAA,QAAAC,IAAAC,uBAAAA,EAAA,CAAA;AAAA,MAAAC;AAAA,MAAAF,EAAA,CAAA,MAAAG,uBAAAC,IAAA,2BAAA,GAAA;AAEpBF,SAAAG,kCAAAA,KAAC,SAAgB,WAAA,OAAiB,YAAA,UAAkB,SAAA,GAAa,UAAA,GAC7D,UAAA;AAAA,MAAAC,+CAAS,KAAA,sBAAyB,KAAA,YAAmB,SAAA,QAAM;AAAA,MAC3DA,kCAAAA,IAAC,YAAA,EAAmB,SAAA,MAAMC,oBAASC,gBAAgB;AAAA,MAClDC;AAAAA,IAAAA,GACL;AAAQT,WAAAE;AAAAA,EAAA,OAAA;AAAAA,SAAAF,EAAA,CAAA;AAAA,EAAA;AAAA,SAJRE;AAIQ;"}
|
|
@@ -25,7 +25,7 @@ const Fullscreen = (t0) => {
|
|
|
25
25
|
const reference = useRef(null);
|
|
26
26
|
const [height, setHeight] = useState();
|
|
27
27
|
let t1;
|
|
28
|
-
if ($[4] === Symbol.for("react.memo_cache_sentinel")) {
|
|
28
|
+
if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
29
29
|
t1 = () => {
|
|
30
30
|
if (!reference.current) {
|
|
31
31
|
return;
|
|
@@ -63,7 +63,7 @@ const Fullscreen = (t0) => {
|
|
|
63
63
|
t2 = $[6];
|
|
64
64
|
}
|
|
65
65
|
let t3;
|
|
66
|
-
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
66
|
+
if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
67
67
|
t3 = [];
|
|
68
68
|
$[7] = t3;
|
|
69
69
|
} else {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Fullscreen.js","sources":["../../../src/components/core/Fullscreen.tsx"],"sourcesContent":["import { Box } from \"@mui/material\";\nimport { useEffect, useEffectEvent, useRef, useState } from \"react\";\nimport type { BoxProps } from \"@mui/material\";\nimport type { FC } from \"react\";\n\nexport const Fullscreen: FC<BoxProps> = ({ children, sx, ...props }) => {\n const reference = useRef<HTMLDivElement | null>(null);\n const [height, setHeight] = useState<number>();\n\n const recompute = useEffectEvent(() => {\n if (!reference.current) return;\n const top = Math.ceil(reference.current.getBoundingClientRect().top);\n const avail = Math.max(0, window.innerHeight - top);\n setHeight(avail);\n });\n\n useEffect(() => {\n const element = reference.current;\n if (!element) return;\n\n recompute();\n\n window.addEventListener(\"resize\", recompute);\n\n const ro = new ResizeObserver(recompute);\n ro.observe(document.documentElement);\n ro.observe(document.body);\n ro.observe(element);\n\n return () => {\n window.removeEventListener(\"resize\", recompute);\n ro.disconnect();\n };\n }, []);\n\n return (\n <Box\n ref={reference}\n sx={{\n display: \"flex\",\n flexDirection: \"column\",\n minHeight: 0,\n width: \"100%\",\n overflow: \"auto\",\n ...sx,\n }}\n height={height}\n {...props}\n >\n {children}\n </Box>\n );\n};"],"names":["Fullscreen","t0","$","_c","children","props","sx","reference","useRef","height","setHeight","useState","t1","Symbol","for","current","top","Math","ceil","getBoundingClientRect","avail","max","window","innerHeight","recompute","useEffectEvent","t2","element","addEventListener","ro","ResizeObserver","observe","document","documentElement","body","removeEventListener","disconnect","t3","useEffect","t4","display","flexDirection","minHeight","width","overflow","t5","jsx"],"mappings":";;;;AAKO,MAAMA,aAA2BC,CAAAA,OAAA;AAAA,QAAAC,IAAAC,uBAAAA,EAAA,EAAA;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAJ,SAAAD,IAAA;AAAC,KAAA;AAAA,MAAAG;AAAAA,MAAAE;AAAAA,MAAA,GAAAD;AAAAA,IAAAA,IAAAJ;AAA0BC,WAAAD;AAAAC,WAAAE;AAAAF,WAAAG;AAAAH,WAAAI;AAAAA,EAAA,OAAA;AAAAF,eAAAF,EAAA,CAAA;AAAAG,YAAAH,EAAA,CAAA;AAAAI,SAAAJ,EAAA,CAAA;AAAA,EAAA;AAC/D,QAAAK,YAAkBC,OAA8B,IAAI;AACpD,QAAA,CAAAC,QAAAC,SAAA,IAA4BC,SAAAA;AAAmB,MAAAC;AAAA,MAAAV,EAAA,CAAA,MAAAW,
|
|
1
|
+
{"version":3,"file":"Fullscreen.js","sources":["../../../src/components/core/Fullscreen.tsx"],"sourcesContent":["import { Box } from \"@mui/material\";\nimport { useEffect, useEffectEvent, useRef, useState } from \"react\";\nimport type { BoxProps } from \"@mui/material\";\nimport type { FC } from \"react\";\n\nexport const Fullscreen: FC<BoxProps> = ({ children, sx, ...props }) => {\n const reference = useRef<HTMLDivElement | null>(null);\n const [height, setHeight] = useState<number>();\n\n const recompute = useEffectEvent(() => {\n if (!reference.current) return;\n const top = Math.ceil(reference.current.getBoundingClientRect().top);\n const avail = Math.max(0, window.innerHeight - top);\n setHeight(avail);\n });\n\n useEffect(() => {\n const element = reference.current;\n if (!element) return;\n\n recompute();\n\n window.addEventListener(\"resize\", recompute);\n\n const ro = new ResizeObserver(recompute);\n ro.observe(document.documentElement);\n ro.observe(document.body);\n ro.observe(element);\n\n return () => {\n window.removeEventListener(\"resize\", recompute);\n ro.disconnect();\n };\n }, []);\n\n return (\n <Box\n ref={reference}\n sx={{\n display: \"flex\",\n flexDirection: \"column\",\n minHeight: 0,\n width: \"100%\",\n overflow: \"auto\",\n ...sx,\n }}\n height={height}\n {...props}\n >\n {children}\n </Box>\n );\n};"],"names":["Fullscreen","t0","$","_c","children","props","sx","reference","useRef","height","setHeight","useState","t1","Symbol","for","current","top","Math","ceil","getBoundingClientRect","avail","max","window","innerHeight","recompute","useEffectEvent","t2","element","addEventListener","ro","ResizeObserver","observe","document","documentElement","body","removeEventListener","disconnect","t3","useEffect","t4","display","flexDirection","minHeight","width","overflow","t5","jsx"],"mappings":";;;;AAKO,MAAMA,aAA2BC,CAAAA,OAAA;AAAA,QAAAC,IAAAC,uBAAAA,EAAA,EAAA;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAC;AAAA,MAAAJ,SAAAD,IAAA;AAAC,KAAA;AAAA,MAAAG;AAAAA,MAAAE;AAAAA,MAAA,GAAAD;AAAAA,IAAAA,IAAAJ;AAA0BC,WAAAD;AAAAC,WAAAE;AAAAF,WAAAG;AAAAH,WAAAI;AAAAA,EAAA,OAAA;AAAAF,eAAAF,EAAA,CAAA;AAAAG,YAAAH,EAAA,CAAA;AAAAI,SAAAJ,EAAA,CAAA;AAAA,EAAA;AAC/D,QAAAK,YAAkBC,OAA8B,IAAI;AACpD,QAAA,CAAAC,QAAAC,SAAA,IAA4BC,SAAAA;AAAmB,MAAAC;AAAA,MAAAV,EAAA,CAAA,MAAAW,uBAAAC,IAAA,2BAAA,GAAA;AAEdF,SAAAA,MAAA;AAC7B,UAAI,CAACL,UAASQ,SAAQ;AAAA;AAAA,MAAA;AACtB,YAAAC,MAAYC,KAAIC,KAAMX,UAASQ,QAAQI,sBAAAA,EAAwBH,GAAI;AACn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AAAE,YAAAF,EAAA,EAAA,MAAAO,UAAAP,EAAA,EAAA,MAAAG,SAAAH,UAAAqC,IAAA;AATLM,SAAAC,kCAAAA,IAAC,OACQvC,gBACD,IAAAgC,IAQI9B,QAAM,GACVJ,OAEHD,SAAAA,CACL;AAAMF,YAAAE;AAAAF,YAAAO;AAAAP,YAAAG;AAAAH,YAAAqC;AAAArC,YAAA2C;AAAAA,EAAA,OAAA;AAAAA,SAAA3C,EAAA,EAAA;AAAA,EAAA;AAAA,SAdN2C;AAcM;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from "../../_virtual/jsx-runtime.js";
|
|
2
2
|
import { c as compilerRuntimeExports } from "../../_virtual/compiler-runtime.js";
|
|
3
|
-
import { AuthenticatedTemplate } from "@azure/msal-react";
|
|
4
3
|
import Menu from "@mui/icons-material/Menu";
|
|
5
4
|
import MenuOpen from "@mui/icons-material/MenuOpen";
|
|
6
5
|
import { IconButton, Box, InitColorSchemeScript, CssBaseline, AppBar, Toolbar, LinearProgress } from "@mui/material";
|
|
@@ -36,7 +35,7 @@ const Layout = (props) => {
|
|
|
36
35
|
const isMutating = !!useIsMutating();
|
|
37
36
|
let t0;
|
|
38
37
|
let t1;
|
|
39
|
-
if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
|
|
38
|
+
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
40
39
|
t0 = /* @__PURE__ */ jsxRuntimeExports.jsx(InitColorSchemeScript, {});
|
|
41
40
|
t1 = /* @__PURE__ */ jsxRuntimeExports.jsx(CssBaseline, {});
|
|
42
41
|
$[0] = t0;
|
|
@@ -46,7 +45,7 @@ const Layout = (props) => {
|
|
|
46
45
|
t1 = $[1];
|
|
47
46
|
}
|
|
48
47
|
let t2;
|
|
49
|
-
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
48
|
+
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
50
49
|
t2 = {
|
|
51
50
|
display: "flex",
|
|
52
51
|
height: "100dvh",
|
|
@@ -59,7 +58,7 @@ const Layout = (props) => {
|
|
|
59
58
|
t2 = $[2];
|
|
60
59
|
}
|
|
61
60
|
let t3;
|
|
62
|
-
if ($[3] === Symbol.for("react.memo_cache_sentinel")) {
|
|
61
|
+
if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
63
62
|
t3 = {
|
|
64
63
|
borderBottom: "1px solid",
|
|
65
64
|
borderColor: "var(--mui-palette-divider)",
|
|
@@ -84,7 +83,7 @@ const Layout = (props) => {
|
|
|
84
83
|
}
|
|
85
84
|
let t5;
|
|
86
85
|
let t6;
|
|
87
|
-
if ($[7] === Symbol.for("react.memo_cache_sentinel")) {
|
|
86
|
+
if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
88
87
|
t5 = /* @__PURE__ */ jsxRuntimeExports.jsx(AppTitle, {});
|
|
89
88
|
t6 = /* @__PURE__ */ jsxRuntimeExports.jsx(ToolbarAccount, {});
|
|
90
89
|
$[7] = t5;
|
|
@@ -119,7 +118,7 @@ const Layout = (props) => {
|
|
|
119
118
|
}
|
|
120
119
|
let t10;
|
|
121
120
|
let t9;
|
|
122
|
-
if ($[14] === Symbol.for("react.memo_cache_sentinel")) {
|
|
121
|
+
if ($[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
123
122
|
t9 = {
|
|
124
123
|
flexGrow: 1,
|
|
125
124
|
display: "flex",
|
|
@@ -136,7 +135,7 @@ const Layout = (props) => {
|
|
|
136
135
|
t9 = $[15];
|
|
137
136
|
}
|
|
138
137
|
let t11;
|
|
139
|
-
if ($[16] === Symbol.for("react.memo_cache_sentinel")) {
|
|
138
|
+
if ($[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
140
139
|
t11 = {
|
|
141
140
|
flex: 1,
|
|
142
141
|
overflow: "auto",
|
|
@@ -150,7 +149,7 @@ const Layout = (props) => {
|
|
|
150
149
|
if ($[17] !== props.children) {
|
|
151
150
|
t12 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { component: "main", sx: t9, children: [
|
|
152
151
|
t10,
|
|
153
|
-
/* @__PURE__ */ jsxRuntimeExports.jsx(Box, { sx: t11, children:
|
|
152
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(Box, { sx: t11, children: props.children })
|
|
154
153
|
] });
|
|
155
154
|
$[17] = props.children;
|
|
156
155
|
$[18] = t12;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Layout.js","sources":["../../../src/components/core/Layout.tsx"],"sourcesContent":["import
|
|
1
|
+
{"version":3,"file":"Layout.js","sources":["../../../src/components/core/Layout.tsx"],"sourcesContent":["import Menu from \"@mui/icons-material/Menu\";\r\nimport MenuOpen from \"@mui/icons-material/MenuOpen\";\r\nimport { AppBar, Box, CssBaseline, IconButton, InitColorSchemeScript, LinearProgress, Toolbar } from \"@mui/material\";\r\nimport { styled } from \"@mui/material/styles\";\r\nimport { useIsFetching, useIsMutating } from \"@tanstack/react-query\";\r\nimport { createIsomorphicFn } from \"@tanstack/react-start\";\r\nimport { getCookie } from \"@tanstack/react-start/server\";\r\nimport { Fragment, useState } from \"react\";\r\nimport { AppTitle } from \"./AppTitle\";\r\nimport { NavigationRail } from \"./navigation/NavigationRail\";\r\nimport { ToolbarAccount } from \"./ToolbarAccount\";\r\nimport type { Navigation } from \"~/models/Navigation\";\r\nimport type { FC, ReactNode } from \"react\";\r\n\r\nconst YEAR_IN_SECONDS = 60 * 60 * 24 * 365;\r\n\r\nconst getNavigationOpenStatus = createIsomorphicFn()\r\n .server(() => {\r\n const cookie = getCookie(\"navigationOpen\");\r\n return cookie === \"true\";\r\n })\r\n .client(() => {\r\n const cookie = document.cookie\r\n .split(\"; \")\r\n .find(row => row.startsWith(\"navigationOpen=\"));\r\n return cookie ? cookie.split(\"=\")[1] === \"true\" : false;\r\n });\r\n\r\nconst DrawerHeader = styled(\"div\")(({ theme }) => ({\r\n display: \"flex\",\r\n alignItems: \"center\",\r\n justifyContent: \"flex-end\",\r\n padding: theme.spacing(0, 1),\r\n ...theme.mixins.toolbar,\r\n}));\r\n\r\ninterface LayoutProps {\r\n navigation: Navigation | undefined;\r\n children: ReactNode;\r\n}\r\n\r\nexport const Layout: FC<LayoutProps> = (props) => {\r\n const [navigationOpen, setNavigationOpen] = useState(getNavigationOpenStatus);\r\n const isFetching = !!useIsFetching();\r\n const isMutating = !!useIsMutating();\r\n\r\n return (\r\n <Fragment>\r\n <InitColorSchemeScript />\r\n <CssBaseline />\r\n\r\n <Box sx={{ display: \"flex\", height: \"100dvh\", maxHeight: \"100dvh\", overflow: \"hidden\", width: \"100%\" }}>\r\n <AppBar\r\n color=\"transparent\"\r\n position=\"fixed\"\r\n sx={{\r\n borderBottom: \"1px solid\",\r\n borderColor: \"var(--mui-palette-divider)\",\r\n boxShadow: \"none\",\r\n }}>\r\n <Toolbar>\r\n {props.navigation &&\r\n <IconButton\r\n onClick={() => {\r\n setNavigationOpen(previous => {\r\n const newValue = !previous;\r\n document.cookie = `navigationOpen=${newValue}; max-age=${YEAR_IN_SECONDS}; path=/`;\r\n return newValue;\r\n });\r\n }}\r\n sx={{ marginRight: 2 }}\r\n >\r\n {navigationOpen ? <MenuOpen /> : <Menu />}\r\n </IconButton>\r\n }\r\n\r\n <AppTitle />\r\n\r\n <ToolbarAccount />\r\n </Toolbar>\r\n </AppBar>\r\n\r\n {props.navigation &&\r\n <NavigationRail\r\n navigation={props.navigation}\r\n expanded={navigationOpen}\r\n setExpanded={newValue => {\r\n setNavigationOpen(newValue);\r\n document.cookie = `navigationOpen=${newValue}; max-age=${YEAR_IN_SECONDS}; path=/`;\r\n }}\r\n />\r\n }\r\n\r\n <Box component=\"main\" sx={{ flexGrow: 1, display: \"flex\", flexDirection: \"column\", minWidth: 0, height: \"100%\", overflow: \"hidden\" }}>\r\n <DrawerHeader />\r\n <Box sx={{ flex: 1, overflow: \"auto\", position: \"relative\" }}>\r\n {props.children}\r\n </Box>\r\n </Box>\r\n </Box>\r\n\r\n {(isFetching || isMutating) && <LinearProgress sx={{ position: \"fixed\", top: { xs: 56, sm: 64 }, left: 0, right: 0 }} />}\r\n </Fragment>\r\n );\r\n};\r\n"],"names":["YEAR_IN_SECONDS","getNavigationOpenStatus","createIsomorphicFn","server","cookie","getCookie","client","document","split","find","row","startsWith","DrawerHeader","styled","theme","display","alignItems","justifyContent","padding","spacing","mixins","toolbar","Layout","props","$","_c","navigationOpen","setNavigationOpen","useState","isFetching","useIsFetching","isMutating","useIsMutating","t0","t1","Symbol","for","t2","height","maxHeight","overflow","width","t3","borderBottom","borderColor","boxShadow","t4","navigation","jsx","_temp","marginRight","t5","t6","t7","jsxs","t8","newValue_0","newValue","t10","t9","flexGrow","flexDirection","minWidth","t11","flex","position","t12","children","t13","t14","top","xs","sm","left","right","t15","previous"],"mappings":";;;;;;;;;;;;;AAcA,MAAMA,kBAAkB,KAAK,KAAK,KAAK;AAEvC,MAAMC,0BAA0BC,qBAC3BC,OAAO,MAAM;AACV,QAAMC,SAASC,UAAU,gBAAgB;AACzC,SAAOD,WAAW;AACtB,CAAC,EACAE,OAAO,MAAM;AACV,QAAMF,SAASG,SAASH,OACnBI,MAAM,IAAI,EACVC,KAAKC,CAAAA,QAAOA,IAAIC,WAAW,iBAAiB,CAAC;AAClD,SAAOP,SAASA,OAAOI,MAAM,GAAG,EAAE,CAAC,MAAM,SAAS;AACtD,CAAC;AAEL,MAAMI,eAAeC,OAAO,KAAK,EAAE,CAAC;AAAA,EAAEC;AAAM,OAAO;AAAA,EAC/CC,SAAS;AAAA,EACTC,YAAY;AAAA,EACZC,gBAAgB;AAAA,EAChBC,SAASJ,MAAMK,QAAQ,GAAG,CAAC;AAAA,EAC3B,GAAGL,MAAMM,OAAOC;AACpB,EAAE;AAOK,MAAMC,SAA0BC,CAAAA,UAAA;AAAA,QAAAC,IAAAC,uBAA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,EAAA;AAAA,MAAA6C;AAAA,MAAA7C,EAAA,EAAA,MAAAK,cAAAL,UAAAO,YAAA;AAELsC,WAACxC,cAAAE,eAA6BiB,kCAAAA,IAAC,gBAAA,EAAmB,IAAA;AAAA,MAAAiB,UAAY;AAAA,MAAOK,KAAO;AAAA,QAAAC,IAAM;AAAA,QAAEC,IAAM;AAAA,MAAA;AAAA,MAAIC,MAAQ;AAAA,MAACC,OAAS;AAAA,IAAA,GAAG;AAAIlD,YAAAK;AAAAL,YAAAO;AAAAP,YAAA6C;AAAAA,EAAA,OAAA;AAAAA,UAAA7C,EAAA,EAAA;AAAA,EAAA;AAAA,MAAAmD;AAAA,MAAAnD,EAAA,EAAA,MAAA4C,OAAA5C,UAAA6C,KAAA;AAtD5HM,iDAAC,UAAA,EACG1C,UAAAA;AAAAA,MAAAA;AAAAA,MACAC;AAAAA,MAEAkC;AAAAA,MAkDCC;AAAAA,IAAAA,GACL;AAAW7C,YAAA4C;AAAA5C,YAAA6C;AAAA7C,YAAAmD;AAAAA,EAAA,OAAA;AAAAA,UAAAnD,EAAA,EAAA;AAAA,EAAA;AAAA,SAvDXmD;AAuDW;AA7DoB,SAAA1B,MAAA2B,UAAA;AAwBC,QAAAnB,WAAiB,CAACmB;AAClBrE,WAAQH,SAAU,kBAAkBqD,QAAQ,aAAazD,eAAe;AAAzD,SACRyD;AAAQ;"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from "../../_virtual/jsx-runtime.js";
|
|
2
2
|
import { c as compilerRuntimeExports } from "../../_virtual/compiler-runtime.js";
|
|
3
|
-
import { useMsal } from "@azure/msal-react";
|
|
4
3
|
import AccountCircle from "@mui/icons-material/AccountCircle";
|
|
5
4
|
import ArrowBack from "@mui/icons-material/ArrowBack";
|
|
6
5
|
import Brightness4 from "@mui/icons-material/Brightness4";
|
|
@@ -11,13 +10,14 @@ import LightMode from "@mui/icons-material/LightMode";
|
|
|
11
10
|
import Logout from "@mui/icons-material/Logout";
|
|
12
11
|
import SettingsBrightness from "@mui/icons-material/SettingsBrightness";
|
|
13
12
|
import Translate from "@mui/icons-material/Translate";
|
|
14
|
-
import { useColorScheme, ListItemButton, ListItemText, ListItemIcon,
|
|
15
|
-
import {
|
|
13
|
+
import { useColorScheme, ListItemButton, ListItemText, ListItemIcon, ListItem, Avatar, ListSubheader, List, IconButton, Box, Menu } from "@mui/material";
|
|
14
|
+
import { Await } from "@tanstack/react-router";
|
|
15
|
+
import { useState, Suspense, Fragment } from "react";
|
|
16
16
|
import { useTranslation } from "react-i18next";
|
|
17
|
-
import {
|
|
17
|
+
import { getSessionUserPhoto, getSessionUserDetail } from "../../lib/auth/graph.js";
|
|
18
18
|
const capitalize = (value) => value && value.charAt(0).toUpperCase() + value.slice(1);
|
|
19
19
|
const ToolbarAccount = () => {
|
|
20
|
-
const $ = compilerRuntimeExports.c(
|
|
20
|
+
const $ = compilerRuntimeExports.c(105);
|
|
21
21
|
const [anchorElement, setAnchorElement] = useState();
|
|
22
22
|
const [tab, setTab] = useState("settings");
|
|
23
23
|
const open = Boolean(anchorElement);
|
|
@@ -29,10 +29,6 @@ const ToolbarAccount = () => {
|
|
|
29
29
|
mode,
|
|
30
30
|
setMode
|
|
31
31
|
} = useColorScheme();
|
|
32
|
-
const {
|
|
33
|
-
instance
|
|
34
|
-
} = useMsal();
|
|
35
|
-
const user = useUser();
|
|
36
32
|
let T0;
|
|
37
33
|
let closeMenu;
|
|
38
34
|
let openMenu;
|
|
@@ -117,7 +113,7 @@ const ToolbarAccount = () => {
|
|
|
117
113
|
}
|
|
118
114
|
const colorModes = t82;
|
|
119
115
|
let t92;
|
|
120
|
-
if ($[27] === Symbol.for("react.memo_cache_sentinel")) {
|
|
116
|
+
if ($[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
121
117
|
t92 = (event) => setAnchorElement(event.currentTarget);
|
|
122
118
|
$[27] = t92;
|
|
123
119
|
} else {
|
|
@@ -125,7 +121,7 @@ const ToolbarAccount = () => {
|
|
|
125
121
|
}
|
|
126
122
|
openMenu = t92;
|
|
127
123
|
let t102;
|
|
128
|
-
if ($[28] === Symbol.for("react.memo_cache_sentinel")) {
|
|
124
|
+
if ($[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
129
125
|
t102 = () => {
|
|
130
126
|
setAnchorElement(void 0);
|
|
131
127
|
setTimeout(() => setTab("settings"), 300);
|
|
@@ -136,7 +132,7 @@ const ToolbarAccount = () => {
|
|
|
136
132
|
}
|
|
137
133
|
closeMenu = t102;
|
|
138
134
|
let t112;
|
|
139
|
-
if ($[29] === Symbol.for("react.memo_cache_sentinel")) {
|
|
135
|
+
if ($[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
140
136
|
t112 = (newTab) => () => setTab(newTab);
|
|
141
137
|
$[29] = t112;
|
|
142
138
|
} else {
|
|
@@ -144,7 +140,7 @@ const ToolbarAccount = () => {
|
|
|
144
140
|
}
|
|
145
141
|
const changeTab = t112;
|
|
146
142
|
let t122;
|
|
147
|
-
if ($[30] === Symbol.for("react.memo_cache_sentinel")) {
|
|
143
|
+
if ($[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
148
144
|
t122 = {
|
|
149
145
|
backgroundColor: "transparent"
|
|
150
146
|
};
|
|
@@ -170,7 +166,7 @@ const ToolbarAccount = () => {
|
|
|
170
166
|
}
|
|
171
167
|
let t152;
|
|
172
168
|
let t162;
|
|
173
|
-
if ($[35] === Symbol.for("react.memo_cache_sentinel")) {
|
|
169
|
+
if ($[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
174
170
|
t152 = changeTab("theme");
|
|
175
171
|
t162 = {
|
|
176
172
|
py: 0.3
|
|
@@ -181,33 +177,33 @@ const ToolbarAccount = () => {
|
|
|
181
177
|
t152 = $[35];
|
|
182
178
|
t162 = $[36];
|
|
183
179
|
}
|
|
184
|
-
let
|
|
185
|
-
if ($[37] === Symbol.for("react.memo_cache_sentinel")) {
|
|
186
|
-
|
|
187
|
-
$[37] =
|
|
180
|
+
let t17;
|
|
181
|
+
if ($[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
182
|
+
t17 = /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Brightness4, {}) });
|
|
183
|
+
$[37] = t17;
|
|
188
184
|
} else {
|
|
189
|
-
|
|
185
|
+
t17 = $[37];
|
|
190
186
|
}
|
|
191
|
-
let
|
|
187
|
+
let t18;
|
|
192
188
|
if ($[38] !== t) {
|
|
193
|
-
|
|
189
|
+
t18 = t("Layout.Appearance");
|
|
194
190
|
$[38] = t;
|
|
195
|
-
$[39] =
|
|
191
|
+
$[39] = t18;
|
|
196
192
|
} else {
|
|
197
|
-
|
|
193
|
+
t18 = $[39];
|
|
198
194
|
}
|
|
199
195
|
const t19 = colorModes.find((m) => m.mode === mode)?.label;
|
|
200
196
|
let t20;
|
|
201
|
-
if ($[40] !==
|
|
202
|
-
t20 = /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText, { primary:
|
|
203
|
-
$[40] =
|
|
197
|
+
if ($[40] !== t18 || $[41] !== t19) {
|
|
198
|
+
t20 = /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText, { primary: t18, secondary: t19 });
|
|
199
|
+
$[40] = t18;
|
|
204
200
|
$[41] = t19;
|
|
205
201
|
$[42] = t20;
|
|
206
202
|
} else {
|
|
207
203
|
t20 = $[42];
|
|
208
204
|
}
|
|
209
205
|
let t21;
|
|
210
|
-
if ($[43] === Symbol.for("react.memo_cache_sentinel")) {
|
|
206
|
+
if ($[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
211
207
|
t21 = /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronRight, {});
|
|
212
208
|
$[43] = t21;
|
|
213
209
|
} else {
|
|
@@ -216,7 +212,7 @@ const ToolbarAccount = () => {
|
|
|
216
212
|
let t222;
|
|
217
213
|
if ($[44] !== t20) {
|
|
218
214
|
t222 = /* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton, { onClick: t152, sx: t162, children: [
|
|
219
|
-
|
|
215
|
+
t17,
|
|
220
216
|
t20,
|
|
221
217
|
t21
|
|
222
218
|
] });
|
|
@@ -227,7 +223,7 @@ const ToolbarAccount = () => {
|
|
|
227
223
|
}
|
|
228
224
|
let t23;
|
|
229
225
|
let t24;
|
|
230
|
-
if ($[46] === Symbol.for("react.memo_cache_sentinel")) {
|
|
226
|
+
if ($[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
231
227
|
t23 = changeTab("language");
|
|
232
228
|
t24 = {
|
|
233
229
|
py: 0.3
|
|
@@ -239,7 +235,7 @@ const ToolbarAccount = () => {
|
|
|
239
235
|
t24 = $[47];
|
|
240
236
|
}
|
|
241
237
|
let t25;
|
|
242
|
-
if ($[48] === Symbol.for("react.memo_cache_sentinel")) {
|
|
238
|
+
if ($[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
243
239
|
t25 = /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Translate, {}) });
|
|
244
240
|
$[48] = t25;
|
|
245
241
|
} else {
|
|
@@ -254,7 +250,7 @@ const ToolbarAccount = () => {
|
|
|
254
250
|
t26 = $[50];
|
|
255
251
|
}
|
|
256
252
|
let t27;
|
|
257
|
-
if ($[51] === Symbol.for("react.memo_cache_sentinel")) {
|
|
253
|
+
if ($[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
258
254
|
t27 = /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronRight, {});
|
|
259
255
|
$[51] = t27;
|
|
260
256
|
} else {
|
|
@@ -281,7 +277,7 @@ const ToolbarAccount = () => {
|
|
|
281
277
|
settings = t29;
|
|
282
278
|
let t30;
|
|
283
279
|
let t31;
|
|
284
|
-
if ($[56] === Symbol.for("react.memo_cache_sentinel")) {
|
|
280
|
+
if ($[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
285
281
|
t30 = changeTab("settings");
|
|
286
282
|
t31 = {
|
|
287
283
|
backgroundColor: "transparent",
|
|
@@ -297,7 +293,7 @@ const ToolbarAccount = () => {
|
|
|
297
293
|
t31 = $[57];
|
|
298
294
|
}
|
|
299
295
|
let t322;
|
|
300
|
-
if ($[58] === Symbol.for("react.memo_cache_sentinel")) {
|
|
296
|
+
if ($[58] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
301
297
|
t322 = /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { size: "small", sx: {
|
|
302
298
|
mr: 0.5
|
|
303
299
|
}, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ArrowBack, { fontSize: "small" }) });
|
|
@@ -361,7 +357,7 @@ const ToolbarAccount = () => {
|
|
|
361
357
|
T0 = List;
|
|
362
358
|
let t37;
|
|
363
359
|
let t38;
|
|
364
|
-
if ($[70] === Symbol.for("react.memo_cache_sentinel")) {
|
|
360
|
+
if ($[70] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
365
361
|
t37 = changeTab("settings");
|
|
366
362
|
t38 = {
|
|
367
363
|
backgroundColor: "transparent",
|
|
@@ -377,7 +373,7 @@ const ToolbarAccount = () => {
|
|
|
377
373
|
t38 = $[71];
|
|
378
374
|
}
|
|
379
375
|
let t39;
|
|
380
|
-
if ($[72] === Symbol.for("react.memo_cache_sentinel")) {
|
|
376
|
+
if ($[72] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
381
377
|
t39 = /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { size: "small", sx: {
|
|
382
378
|
mr: 0.5
|
|
383
379
|
}, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ArrowBack, { fontSize: "small" }) });
|
|
@@ -440,17 +436,8 @@ const ToolbarAccount = () => {
|
|
|
440
436
|
}
|
|
441
437
|
const language = t2;
|
|
442
438
|
let t3;
|
|
443
|
-
if ($[81]
|
|
444
|
-
t3 =
|
|
445
|
-
width: {
|
|
446
|
-
xs: 32,
|
|
447
|
-
sm: 40
|
|
448
|
-
},
|
|
449
|
-
height: {
|
|
450
|
-
xs: 32,
|
|
451
|
-
sm: 40
|
|
452
|
-
}
|
|
453
|
-
} }) : /* @__PURE__ */ jsxRuntimeExports.jsx(AccountCircle, { sx: {
|
|
439
|
+
if ($[81] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
440
|
+
t3 = /* @__PURE__ */ jsxRuntimeExports.jsx(AccountCircle, { sx: {
|
|
454
441
|
width: {
|
|
455
442
|
xs: 32,
|
|
456
443
|
sm: 40
|
|
@@ -460,142 +447,135 @@ const ToolbarAccount = () => {
|
|
|
460
447
|
sm: 40
|
|
461
448
|
}
|
|
462
449
|
} });
|
|
463
|
-
$[81] =
|
|
464
|
-
$[82] = t3;
|
|
450
|
+
$[81] = t3;
|
|
465
451
|
} else {
|
|
466
|
-
t3 = $[
|
|
452
|
+
t3 = $[81];
|
|
467
453
|
}
|
|
468
454
|
let t4;
|
|
469
|
-
if ($[
|
|
470
|
-
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx(
|
|
471
|
-
$[
|
|
472
|
-
$[84] = t3;
|
|
473
|
-
$[85] = t4;
|
|
455
|
+
if ($[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
456
|
+
t4 = /* @__PURE__ */ jsxRuntimeExports.jsx(Suspense, { fallback: t3, children: /* @__PURE__ */ jsxRuntimeExports.jsx(Await, { promise: getSessionUserPhoto(), children: _temp2 }) });
|
|
457
|
+
$[82] = t4;
|
|
474
458
|
} else {
|
|
475
|
-
t4 = $[
|
|
459
|
+
t4 = $[82];
|
|
476
460
|
}
|
|
477
461
|
let t5;
|
|
478
|
-
if ($[
|
|
479
|
-
t5 = {
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
$[86] = t5;
|
|
462
|
+
if ($[83] !== openMenu) {
|
|
463
|
+
t5 = /* @__PURE__ */ jsxRuntimeExports.jsx(IconButton, { size: "small", edge: "end", onClick: openMenu, children: t4 });
|
|
464
|
+
$[83] = openMenu;
|
|
465
|
+
$[84] = t5;
|
|
483
466
|
} else {
|
|
484
|
-
t5 = $[
|
|
467
|
+
t5 = $[84];
|
|
485
468
|
}
|
|
486
469
|
let t6;
|
|
487
|
-
if ($[
|
|
488
|
-
t6 =
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
$[
|
|
470
|
+
if ($[85] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
471
|
+
t6 = {
|
|
472
|
+
width: 240
|
|
473
|
+
};
|
|
474
|
+
$[85] = t6;
|
|
492
475
|
} else {
|
|
493
|
-
t6 = $[
|
|
476
|
+
t6 = $[85];
|
|
494
477
|
}
|
|
495
478
|
let t7;
|
|
496
|
-
if ($[
|
|
497
|
-
t7 = (
|
|
498
|
-
|
|
499
|
-
});
|
|
500
|
-
$[90] = instance;
|
|
501
|
-
$[91] = t7;
|
|
479
|
+
if ($[86] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
480
|
+
t7 = /* @__PURE__ */ jsxRuntimeExports.jsx(ListItem, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Await, { promise: getSessionUserDetail(), children: _temp3 }) });
|
|
481
|
+
$[86] = t7;
|
|
502
482
|
} else {
|
|
503
|
-
t7 = $[
|
|
483
|
+
t7 = $[86];
|
|
504
484
|
}
|
|
505
485
|
let t8;
|
|
506
|
-
if ($[
|
|
486
|
+
if ($[87] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
507
487
|
t8 = /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemIcon, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(Logout, { color: "error" }) });
|
|
508
|
-
$[
|
|
488
|
+
$[87] = t8;
|
|
509
489
|
} else {
|
|
510
|
-
t8 = $[
|
|
490
|
+
t8 = $[87];
|
|
511
491
|
}
|
|
512
492
|
let t9;
|
|
513
|
-
if ($[
|
|
493
|
+
if ($[88] !== t) {
|
|
514
494
|
t9 = t("Layout.Logout");
|
|
515
|
-
$[
|
|
516
|
-
$[
|
|
495
|
+
$[88] = t;
|
|
496
|
+
$[89] = t9;
|
|
517
497
|
} else {
|
|
518
|
-
t9 = $[
|
|
498
|
+
t9 = $[89];
|
|
519
499
|
}
|
|
520
500
|
let t10;
|
|
521
|
-
if ($[
|
|
522
|
-
t10 = /* @__PURE__ */ jsxRuntimeExports.
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
let t11;
|
|
529
|
-
if ($[97] !== t10 || $[98] !== t7) {
|
|
530
|
-
t11 = /* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton, { onClick: t7, children: [
|
|
531
|
-
t8,
|
|
532
|
-
t10
|
|
533
|
-
] });
|
|
534
|
-
$[97] = t10;
|
|
535
|
-
$[98] = t7;
|
|
536
|
-
$[99] = t11;
|
|
537
|
-
} else {
|
|
538
|
-
t11 = $[99];
|
|
539
|
-
}
|
|
540
|
-
let t12;
|
|
541
|
-
if ($[100] !== t11 || $[101] !== t6) {
|
|
542
|
-
t12 = /* @__PURE__ */ jsxRuntimeExports.jsxs(List, { disablePadding: true, children: [
|
|
543
|
-
t6,
|
|
544
|
-
t11
|
|
501
|
+
if ($[90] !== t9) {
|
|
502
|
+
t10 = /* @__PURE__ */ jsxRuntimeExports.jsxs(List, { disablePadding: true, children: [
|
|
503
|
+
t7,
|
|
504
|
+
/* @__PURE__ */ jsxRuntimeExports.jsxs(ListItemButton, { onClick: _temp4, children: [
|
|
505
|
+
t8,
|
|
506
|
+
/* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText, { primary: t9 })
|
|
507
|
+
] })
|
|
545
508
|
] });
|
|
546
|
-
$[
|
|
547
|
-
$[
|
|
548
|
-
$[102] = t12;
|
|
509
|
+
$[90] = t9;
|
|
510
|
+
$[91] = t10;
|
|
549
511
|
} else {
|
|
550
|
-
|
|
512
|
+
t10 = $[91];
|
|
551
513
|
}
|
|
552
|
-
const
|
|
553
|
-
const
|
|
554
|
-
const
|
|
555
|
-
let
|
|
556
|
-
if ($[
|
|
557
|
-
|
|
514
|
+
const t11 = tab === "settings" && settings;
|
|
515
|
+
const t12 = tab === "theme" && theme;
|
|
516
|
+
const t13 = tab === "language" && language;
|
|
517
|
+
let t14;
|
|
518
|
+
if ($[92] !== t10 || $[93] !== t11 || $[94] !== t12 || $[95] !== t13) {
|
|
519
|
+
t14 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Box, { sx: t6, children: [
|
|
520
|
+
t10,
|
|
521
|
+
t11,
|
|
558
522
|
t12,
|
|
559
|
-
t13
|
|
560
|
-
t14,
|
|
561
|
-
t15
|
|
523
|
+
t13
|
|
562
524
|
] });
|
|
563
|
-
$[
|
|
564
|
-
$[
|
|
565
|
-
$[
|
|
566
|
-
$[
|
|
567
|
-
$[
|
|
525
|
+
$[92] = t10;
|
|
526
|
+
$[93] = t11;
|
|
527
|
+
$[94] = t12;
|
|
528
|
+
$[95] = t13;
|
|
529
|
+
$[96] = t14;
|
|
568
530
|
} else {
|
|
569
|
-
|
|
531
|
+
t14 = $[96];
|
|
570
532
|
}
|
|
571
|
-
let
|
|
572
|
-
if ($[
|
|
573
|
-
|
|
574
|
-
$[
|
|
575
|
-
$[
|
|
576
|
-
$[
|
|
577
|
-
$[
|
|
578
|
-
$[
|
|
533
|
+
let t15;
|
|
534
|
+
if ($[97] !== anchorElement || $[98] !== closeMenu || $[99] !== open || $[100] !== t14) {
|
|
535
|
+
t15 = /* @__PURE__ */ jsxRuntimeExports.jsx(Menu, { anchorEl: anchorElement, open, onClose: closeMenu, children: t14 });
|
|
536
|
+
$[97] = anchorElement;
|
|
537
|
+
$[98] = closeMenu;
|
|
538
|
+
$[99] = open;
|
|
539
|
+
$[100] = t14;
|
|
540
|
+
$[101] = t15;
|
|
579
541
|
} else {
|
|
580
|
-
|
|
542
|
+
t15 = $[101];
|
|
581
543
|
}
|
|
582
|
-
let
|
|
583
|
-
if ($[
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
544
|
+
let t16;
|
|
545
|
+
if ($[102] !== t15 || $[103] !== t5) {
|
|
546
|
+
t16 = /* @__PURE__ */ jsxRuntimeExports.jsxs(Fragment, { children: [
|
|
547
|
+
t5,
|
|
548
|
+
t15
|
|
587
549
|
] });
|
|
588
|
-
$[
|
|
589
|
-
$[
|
|
590
|
-
$[
|
|
550
|
+
$[102] = t15;
|
|
551
|
+
$[103] = t5;
|
|
552
|
+
$[104] = t16;
|
|
591
553
|
} else {
|
|
592
|
-
|
|
554
|
+
t16 = $[104];
|
|
593
555
|
}
|
|
594
|
-
return
|
|
556
|
+
return t16;
|
|
595
557
|
};
|
|
596
558
|
function _temp(lng) {
|
|
597
559
|
return lng !== "cimode";
|
|
598
560
|
}
|
|
561
|
+
function _temp2(data) {
|
|
562
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(Avatar, { src: data, sx: {
|
|
563
|
+
width: {
|
|
564
|
+
xs: 32,
|
|
565
|
+
sm: 40
|
|
566
|
+
},
|
|
567
|
+
height: {
|
|
568
|
+
xs: 32,
|
|
569
|
+
sm: 40
|
|
570
|
+
}
|
|
571
|
+
} });
|
|
572
|
+
}
|
|
573
|
+
function _temp3(data_0) {
|
|
574
|
+
return /* @__PURE__ */ jsxRuntimeExports.jsx(ListItemText, { primary: data_0.displayName.split("/")[0], secondary: data_0.jobTitle });
|
|
575
|
+
}
|
|
576
|
+
function _temp4() {
|
|
577
|
+
return console.log("Logout clicked");
|
|
578
|
+
}
|
|
599
579
|
export {
|
|
600
580
|
ToolbarAccount
|
|
601
581
|
};
|