wcz-layout 7.6.0 → 7.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{RouterListItemButton-CvfZk2zD.js → RouterListItemButton-DeaQB4ym.js} +1 -1
- package/dist/{RouterListItemButton-CvfZk2zD.js.map → RouterListItemButton-DeaQB4ym.js.map} +1 -1
- package/dist/components/core/Layout.d.ts +1 -1
- package/dist/components/core/navigation/NavigationList.d.ts +4 -4
- package/dist/components/core/navigation/NavigationListItem.d.ts +3 -3
- package/dist/components.js +2 -2
- package/dist/hooks.js +1 -1
- package/dist/index.js +617 -621
- package/dist/index.js.map +1 -1
- package/dist/lib/auth/msalClient.d.ts +8 -2
- package/dist/middleware.js +11 -11
- package/dist/models/Navigation.d.ts +23 -11
- package/dist/{queries-DzKY6YXz.js → queries-D-DV5lCw.js} +3 -3
- package/dist/{queries-DzKY6YXz.js.map → queries-D-DV5lCw.js.map} +1 -1
- package/dist/query.js +2 -2
- package/dist/{queryClient-uWNhcABg.js → queryClient-B__OEZ70.js} +1 -1
- package/dist/{queryClient-uWNhcABg.js.map → queryClient-B__OEZ70.js.map} +1 -1
- package/dist/{msalClient-BLrbVP5z.js → utils-C4oJ0tr5.js} +58 -47
- package/dist/utils-C4oJ0tr5.js.map +1 -0
- package/dist/utils.js +5 -5
- package/package.json +38 -6
- package/skills/api-routes/SKILL.md +251 -0
- package/skills/auth/SKILL.md +268 -0
- package/skills/data-grid/SKILL.md +229 -0
- package/skills/database-schema/SKILL.md +182 -0
- package/skills/dialogs-notifications/SKILL.md +241 -0
- package/skills/forms-validation/SKILL.md +331 -0
- package/skills/forms-validation/references/field-components.md +212 -0
- package/skills/layout-navigation/SKILL.md +259 -0
- package/skills/project-initialization/SKILL.md +181 -0
- package/skills/project-structure/SKILL.md +157 -0
- package/skills/tanstack-db-collections/SKILL.md +270 -0
- package/skills/ui-pages/SKILL.md +278 -0
- package/dist/msalClient-BLrbVP5z.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,60 +1,60 @@
|
|
|
1
1
|
import { t as e } from "./DialogsContext-BIhId-r8.js";
|
|
2
2
|
import { t } from "./NotificationContext-DovR_auQ.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import { c as
|
|
7
|
-
import { AppBar as
|
|
3
|
+
import { d as n, f as r, l as i, m as a, n as o, p as s, r as c, s as l, t as u, u as d } from "./utils-C4oJ0tr5.js";
|
|
4
|
+
import { t as f } from "./queryClient-B__OEZ70.js";
|
|
5
|
+
import { n as p, t as m } from "./RouterListItemButton-DeaQB4ym.js";
|
|
6
|
+
import { c as h } from "react/compiler-runtime";
|
|
7
|
+
import { AppBar as g, Avatar as _, Box as v, Chip as y, Collapse as b, CssBaseline as x, Grow as S, IconButton as C, InitColorSchemeScript as w, List as T, ListItem as E, ListItemButton as D, ListItemIcon as O, ListItemText as k, ListSubheader as ee, Menu as te, Stack as A, ThemeProvider as j, Toolbar as M, Typography as N, useColorScheme as P } from "@mui/material";
|
|
8
8
|
import { LocalizationProvider as F } from "@mui/x-date-pickers";
|
|
9
9
|
import { AdapterDayjs as I } from "@mui/x-date-pickers/AdapterDayjs";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import { initReactI18next as
|
|
14
|
-
import { resources as
|
|
15
|
-
import * as
|
|
16
|
-
import
|
|
17
|
-
import { Fragment as
|
|
18
|
-
import
|
|
19
|
-
import { Fragment as
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import { EventType as Q, InteractionStatus as
|
|
23
|
-
import { AuthenticatedTemplate as
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import { styled as
|
|
27
|
-
import { rootRouteId as
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
10
|
+
import ne from "dayjs";
|
|
11
|
+
import L from "i18next";
|
|
12
|
+
import R from "i18next-browser-languagedetector";
|
|
13
|
+
import { initReactI18next as z, useTranslation as re } from "react-i18next";
|
|
14
|
+
import { resources as B } from "virtual:wcz-layout";
|
|
15
|
+
import * as V from "zod";
|
|
16
|
+
import H from "zod";
|
|
17
|
+
import { Fragment as ie, useEffect as U, useId as W, useRef as G, useState as K } from "react";
|
|
18
|
+
import q from "@mui/utils/useEventCallback";
|
|
19
|
+
import { Fragment as ae, jsx as J, jsxs as Y } from "react/jsx-runtime";
|
|
20
|
+
import X from "@mui/material/Alert";
|
|
21
|
+
import Z from "@mui/material/Snackbar";
|
|
22
|
+
import { EventType as Q, InteractionStatus as $, InteractionType as oe } from "@azure/msal-browser";
|
|
23
|
+
import { AuthenticatedTemplate as se, MsalAuthenticationTemplate as ce, MsalProvider as le, UnauthenticatedTemplate as ue, useMsal as de } from "@azure/msal-react";
|
|
24
|
+
import fe from "@mui/icons-material/Menu";
|
|
25
|
+
import pe from "@mui/icons-material/MenuOpen";
|
|
26
|
+
import { styled as me } from "@mui/material/styles";
|
|
27
|
+
import { rootRouteId as he, useLocation as ge, useMatch as _e, useMatches as ve, useNavigate as ye, useRouter as be } from "@tanstack/react-router";
|
|
28
|
+
import xe from "@mui/icons-material/AccountCircle";
|
|
29
|
+
import Se from "@mui/icons-material/ArrowBack";
|
|
30
|
+
import Ce from "@mui/icons-material/Brightness4";
|
|
31
|
+
import we from "@mui/icons-material/ChevronRight";
|
|
32
|
+
import Te from "@mui/icons-material/DarkMode";
|
|
33
|
+
import Ee from "@mui/icons-material/Done";
|
|
34
|
+
import De from "@mui/icons-material/LightMode";
|
|
35
|
+
import Oe from "@mui/icons-material/Login";
|
|
36
|
+
import ke from "@mui/icons-material/Logout";
|
|
37
|
+
import Ae from "@mui/icons-material/SettingsBrightness";
|
|
38
|
+
import je from "@mui/icons-material/Translate";
|
|
39
|
+
import { createCollection as Me, useLiveSuspenseQuery as Ne } from "@tanstack/react-db";
|
|
40
|
+
import { queryCollectionOptions as Pe } from "@tanstack/query-db-collection";
|
|
41
|
+
import Fe from "axios";
|
|
42
|
+
import Ie from "@mui/material/Drawer";
|
|
43
|
+
import Le from "@mui/material/Box";
|
|
44
|
+
import Re from "@mui/material/Divider";
|
|
45
|
+
import ze from "@mui/material/List";
|
|
46
|
+
import Be from "@mui/material/ListSubheader";
|
|
47
|
+
import Ve from "@mui/icons-material/ExpandMore";
|
|
48
|
+
import He from "@mui/material/Avatar";
|
|
49
|
+
import Ue from "@mui/material/ListItem";
|
|
50
|
+
import We from "@mui/material/ListItemButton";
|
|
51
|
+
import Ge from "@mui/material/ListItemIcon";
|
|
52
|
+
import Ke from "@mui/material/ListItemText";
|
|
53
|
+
import qe from "@mui/material/Paper";
|
|
54
|
+
import Je from "@mui/material/Typography";
|
|
55
55
|
//#region src/providers/DialogsProvider.tsx
|
|
56
|
-
function
|
|
57
|
-
let [n, r] =
|
|
56
|
+
function Ye({ children: t }) {
|
|
57
|
+
let [n, r] = K([]), i = W(), a = G(0), o = G(/* @__PURE__ */ new WeakMap()), s = q(function(e, t, n = {}) {
|
|
58
58
|
let { onClose: s = async () => {} } = n, c, l = new Promise((e) => {
|
|
59
59
|
c = e;
|
|
60
60
|
}), u = `${i}-${a.current}`;
|
|
@@ -71,12 +71,12 @@ function qe({ children: t }) {
|
|
|
71
71
|
return o.current.set(l, d), r((e) => [...e, d]), l;
|
|
72
72
|
}), c = (e) => {
|
|
73
73
|
r((t) => t.filter((t) => t.promise !== e)), o.current.delete(e);
|
|
74
|
-
}, l =
|
|
74
|
+
}, l = q(function(e) {
|
|
75
75
|
r((t) => t.map((t) => t.promise === e ? {
|
|
76
76
|
...t,
|
|
77
77
|
open: !1
|
|
78
78
|
} : t)), setTimeout(() => c(e), 1e3);
|
|
79
|
-
}), u =
|
|
79
|
+
}), u = q(async function(e, t) {
|
|
80
80
|
let n = o.current.get(e);
|
|
81
81
|
if (!n) throw Error("Dialog not found in stack");
|
|
82
82
|
try {
|
|
@@ -86,12 +86,12 @@ function qe({ children: t }) {
|
|
|
86
86
|
}
|
|
87
87
|
return e;
|
|
88
88
|
});
|
|
89
|
-
return /* @__PURE__ */
|
|
89
|
+
return /* @__PURE__ */ Y(e.Provider, {
|
|
90
90
|
value: {
|
|
91
91
|
open: s,
|
|
92
92
|
close: u
|
|
93
93
|
},
|
|
94
|
-
children: [t, n.map(({ key: e, open: t, Component: n, payload: r, promise: i }) => /* @__PURE__ */
|
|
94
|
+
children: [t, n.map(({ key: e, open: t, Component: n, payload: r, promise: i }) => /* @__PURE__ */ J(n, {
|
|
95
95
|
payload: r,
|
|
96
96
|
open: t,
|
|
97
97
|
onClose: async (e) => {
|
|
@@ -102,10 +102,10 @@ function qe({ children: t }) {
|
|
|
102
102
|
}
|
|
103
103
|
//#endregion
|
|
104
104
|
//#region src/providers/NotificationProvider.tsx
|
|
105
|
-
var
|
|
106
|
-
let n =
|
|
105
|
+
var Xe = 1e3, Ze = (e) => {
|
|
106
|
+
let n = h(21), { children: r, snackbarOrigin: i } = e, a;
|
|
107
107
|
n[0] === Symbol.for("react.memo_cache_sentinel") ? (a = [], n[0] = a) : a = n[0];
|
|
108
|
-
let [o, s] =
|
|
108
|
+
let [o, s] = K(a), [c, l] = K(null), u = !!c, d = G(null), f;
|
|
109
109
|
n[1] === Symbol.for("react.memo_cache_sentinel") ? (f = () => {
|
|
110
110
|
s((e) => {
|
|
111
111
|
if (e.length === 0) return e;
|
|
@@ -113,14 +113,14 @@ var Je = 1e3, Ye = (e) => {
|
|
|
113
113
|
return l(t), n;
|
|
114
114
|
});
|
|
115
115
|
}, n[1] = f) : f = n[1];
|
|
116
|
-
let p = f,
|
|
117
|
-
n[2] !== c || n[3] !== u || n[4] !== o.length ? (
|
|
116
|
+
let p = f, m, g;
|
|
117
|
+
n[2] !== c || n[3] !== u || n[4] !== o.length ? (m = () => (!u && o.length > 0 && (d.current = setTimeout(p, c ? Xe : 0)), () => {
|
|
118
118
|
d.current && clearTimeout(d.current);
|
|
119
119
|
}), g = [
|
|
120
120
|
u,
|
|
121
121
|
o.length,
|
|
122
122
|
c
|
|
123
|
-
], n[2] = c, n[3] = u, n[4] = o.length, n[5] =
|
|
123
|
+
], n[2] = c, n[3] = u, n[4] = o.length, n[5] = m, n[6] = g) : (m = n[5], g = n[6]), U(m, g);
|
|
124
124
|
let _;
|
|
125
125
|
n[7] === Symbol.for("react.memo_cache_sentinel") ? (_ = (e, t) => {
|
|
126
126
|
let n = {
|
|
@@ -137,14 +137,14 @@ var Je = 1e3, Ye = (e) => {
|
|
|
137
137
|
t !== "clickaway" && l(null);
|
|
138
138
|
}, n[9] = x) : x = n[9];
|
|
139
139
|
let S = c?.message, C;
|
|
140
|
-
n[10] === c ? C = n[11] : (C = c?.severity ? /* @__PURE__ */ X
|
|
140
|
+
n[10] === c ? C = n[11] : (C = c?.severity ? /* @__PURE__ */ J(X, {
|
|
141
141
|
onClose: () => l(null),
|
|
142
142
|
severity: c.severity,
|
|
143
143
|
variant: "filled",
|
|
144
144
|
children: c.message
|
|
145
145
|
}) : void 0, n[10] = c, n[11] = C);
|
|
146
146
|
let w;
|
|
147
|
-
n[12] !== u || n[13] !== i || n[14] !== C || n[15] !== b || n[16] !== S ? (w = /* @__PURE__ */
|
|
147
|
+
n[12] !== u || n[13] !== i || n[14] !== C || n[15] !== b || n[16] !== S ? (w = /* @__PURE__ */ J(Z, {
|
|
148
148
|
open: u,
|
|
149
149
|
autoHideDuration: b,
|
|
150
150
|
onClose: x,
|
|
@@ -153,64 +153,388 @@ var Je = 1e3, Ye = (e) => {
|
|
|
153
153
|
children: C
|
|
154
154
|
}), n[12] = u, n[13] = i, n[14] = C, n[15] = b, n[16] = S, n[17] = w) : w = n[17];
|
|
155
155
|
let T;
|
|
156
|
-
return n[18] !== r || n[19] !== w ? (T = /* @__PURE__ */
|
|
156
|
+
return n[18] !== r || n[19] !== w ? (T = /* @__PURE__ */ Y(t, {
|
|
157
157
|
value: y,
|
|
158
158
|
children: [r, w]
|
|
159
159
|
}), n[18] = r, n[19] = w, n[20] = T) : T = n[20], T;
|
|
160
|
-
},
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
160
|
+
}, Qe = Fe.create({ baseURL: "https://graph.microsoft.com/v1.0" });
|
|
161
|
+
Qe.interceptors.request.use(async (e) => {
|
|
162
|
+
let t = await d("graph");
|
|
163
|
+
return e.headers.set("Authorization", `Bearer ${t}`), e;
|
|
164
|
+
});
|
|
165
|
+
var $e = Me(Pe({
|
|
166
|
+
queryKey: [
|
|
167
|
+
"graph",
|
|
168
|
+
"me",
|
|
169
|
+
"photo"
|
|
170
|
+
],
|
|
171
|
+
schema: V.object({
|
|
172
|
+
id: V.string(),
|
|
173
|
+
photoUrl: V.string()
|
|
174
|
+
}),
|
|
175
|
+
queryFn: async () => {
|
|
176
|
+
let e = await Qe.get("/me/photo/$value", { responseType: "arraybuffer" });
|
|
177
|
+
return [{
|
|
178
|
+
id: "me",
|
|
179
|
+
photoUrl: `data:image/jpeg;base64,${btoa(new Uint8Array(e.data).reduce((e, t) => e + String.fromCodePoint(t), ""))}`
|
|
180
|
+
}];
|
|
181
|
+
},
|
|
182
|
+
getKey: (e) => e.id,
|
|
183
|
+
queryClient: f,
|
|
184
|
+
staleTime: Infinity,
|
|
185
|
+
gcTime: Infinity
|
|
186
|
+
})), et = () => {
|
|
187
|
+
let e = h(3), { data: t } = Ne(tt), n = t?.photoUrl, r;
|
|
188
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = {
|
|
189
|
+
width: {
|
|
190
|
+
xs: 32,
|
|
191
|
+
sm: 40
|
|
192
|
+
},
|
|
193
|
+
height: {
|
|
194
|
+
xs: 32,
|
|
195
|
+
sm: 40
|
|
196
|
+
}
|
|
197
|
+
}, e[0] = r) : r = e[0];
|
|
198
|
+
let i;
|
|
199
|
+
return e[1] === n ? i = e[2] : (i = /* @__PURE__ */ J(_, {
|
|
200
|
+
src: n,
|
|
201
|
+
sx: r
|
|
202
|
+
}), e[1] = n, e[2] = i), i;
|
|
203
|
+
};
|
|
204
|
+
function tt(e) {
|
|
205
|
+
return e.from({ todo: $e }).findOne();
|
|
206
|
+
}
|
|
207
|
+
//#endregion
|
|
208
|
+
//#region src/components/core/account/UserMenu.tsx
|
|
209
|
+
var nt = (e) => e && e.charAt(0).toUpperCase() + e.slice(1), rt = () => {
|
|
210
|
+
let e = h(143), [t, n] = K(), [r, i] = K("settings"), a = !!t, { t: o, i18n: s } = re(), { mode: c, setMode: l } = P(), { instance: u } = de(), d;
|
|
211
|
+
e[0] === Symbol.for("react.memo_cache_sentinel") ? (d = { from: he }, e[0] = d) : d = e[0];
|
|
212
|
+
let f = _e(d).context.user, p, m, g, _, y, b, x;
|
|
213
|
+
if (e[1] !== s || e[2] !== c || e[3] !== l || e[4] !== o) {
|
|
214
|
+
let t = (Array.isArray(s.options.supportedLngs) ? s.options.supportedLngs : []).filter(it), r = new Intl.DisplayNames([s.language], { type: "language" }), a;
|
|
215
|
+
e[12] === o ? a = e[13] : (a = o("Layout.Light"), e[12] = o, e[13] = a);
|
|
216
|
+
let u;
|
|
217
|
+
e[14] === a ? u = e[15] : (u = {
|
|
218
|
+
mode: "light",
|
|
219
|
+
icon: De,
|
|
220
|
+
label: a
|
|
221
|
+
}, e[14] = a, e[15] = u);
|
|
222
|
+
let d;
|
|
223
|
+
e[16] === o ? d = e[17] : (d = o("Layout.Dark"), e[16] = o, e[17] = d);
|
|
224
|
+
let f;
|
|
225
|
+
e[18] === d ? f = e[19] : (f = {
|
|
226
|
+
mode: "dark",
|
|
227
|
+
icon: Te,
|
|
228
|
+
label: d
|
|
229
|
+
}, e[18] = d, e[19] = f);
|
|
230
|
+
let h;
|
|
231
|
+
e[20] === o ? h = e[21] : (h = o("Layout.System"), e[20] = o, e[21] = h);
|
|
232
|
+
let v;
|
|
233
|
+
e[22] === h ? v = e[23] : (v = {
|
|
234
|
+
mode: "system",
|
|
235
|
+
icon: Ae,
|
|
236
|
+
label: h
|
|
237
|
+
}, e[22] = h, e[23] = v);
|
|
238
|
+
let S;
|
|
239
|
+
e[24] !== u || e[25] !== f || e[26] !== v ? (S = [
|
|
240
|
+
u,
|
|
241
|
+
f,
|
|
242
|
+
v
|
|
243
|
+
], e[24] = u, e[25] = f, e[26] = v, e[27] = S) : S = e[27];
|
|
244
|
+
let w = S, E;
|
|
245
|
+
e[28] === Symbol.for("react.memo_cache_sentinel") ? (E = (e) => n(e.currentTarget), e[28] = E) : E = e[28], g = E;
|
|
246
|
+
let te;
|
|
247
|
+
e[29] === Symbol.for("react.memo_cache_sentinel") ? (te = () => {
|
|
248
|
+
n(void 0), setTimeout(() => i("settings"), 300);
|
|
249
|
+
}, e[29] = te) : te = e[29], m = te;
|
|
250
|
+
let A;
|
|
251
|
+
e[30] === Symbol.for("react.memo_cache_sentinel") ? (A = (e) => () => i(e), e[30] = A) : A = e[30];
|
|
252
|
+
let j = A, M;
|
|
253
|
+
e[31] === Symbol.for("react.memo_cache_sentinel") ? (M = { backgroundColor: "transparent" }, e[31] = M) : M = e[31];
|
|
254
|
+
let N;
|
|
255
|
+
e[32] === o ? N = e[33] : (N = o("Layout.Settings"), e[32] = o, e[33] = N);
|
|
256
|
+
let P;
|
|
257
|
+
e[34] === N ? P = e[35] : (P = /* @__PURE__ */ J(ee, {
|
|
258
|
+
sx: M,
|
|
259
|
+
children: N
|
|
260
|
+
}), e[34] = N, e[35] = P);
|
|
261
|
+
let F, I;
|
|
262
|
+
e[36] === Symbol.for("react.memo_cache_sentinel") ? (F = j("theme"), I = { py: .3 }, e[36] = F, e[37] = I) : (F = e[36], I = e[37]);
|
|
263
|
+
let ne;
|
|
264
|
+
e[38] === Symbol.for("react.memo_cache_sentinel") ? (ne = /* @__PURE__ */ J(O, { children: /* @__PURE__ */ J(Ce, {}) }), e[38] = ne) : ne = e[38];
|
|
265
|
+
let L;
|
|
266
|
+
e[39] === o ? L = e[40] : (L = o("Layout.Appearance"), e[39] = o, e[40] = L);
|
|
267
|
+
let R;
|
|
268
|
+
e[41] !== w || e[42] !== c || e[43] !== o ? (R = w.find((e) => e.mode === c)?.label ?? o("Layout.System"), e[41] = w, e[42] = c, e[43] = o, e[44] = R) : R = e[44];
|
|
269
|
+
let z;
|
|
270
|
+
e[45] !== L || e[46] !== R ? (z = /* @__PURE__ */ J(k, {
|
|
271
|
+
primary: L,
|
|
272
|
+
secondary: R
|
|
273
|
+
}), e[45] = L, e[46] = R, e[47] = z) : z = e[47];
|
|
274
|
+
let re;
|
|
275
|
+
e[48] === Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ J(we, {}), e[48] = re) : re = e[48];
|
|
276
|
+
let B;
|
|
277
|
+
e[49] === z ? B = e[50] : (B = /* @__PURE__ */ Y(D, {
|
|
278
|
+
onClick: F,
|
|
279
|
+
sx: I,
|
|
280
|
+
children: [
|
|
281
|
+
ne,
|
|
282
|
+
z,
|
|
283
|
+
re
|
|
284
|
+
]
|
|
285
|
+
}), e[49] = z, e[50] = B);
|
|
286
|
+
let V, H;
|
|
287
|
+
e[51] === Symbol.for("react.memo_cache_sentinel") ? (V = j("language"), H = { py: .3 }, e[51] = V, e[52] = H) : (V = e[51], H = e[52]);
|
|
288
|
+
let ie;
|
|
289
|
+
e[53] === Symbol.for("react.memo_cache_sentinel") ? (ie = /* @__PURE__ */ J(O, { children: /* @__PURE__ */ J(je, {}) }), e[53] = ie) : ie = e[53];
|
|
290
|
+
let U;
|
|
291
|
+
e[54] === o ? U = e[55] : (U = o("Layout.Language"), e[54] = o, e[55] = U);
|
|
292
|
+
let W;
|
|
293
|
+
e[56] === Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ J(we, {}), e[56] = W) : W = e[56];
|
|
294
|
+
let G = /* @__PURE__ */ Y(D, {
|
|
295
|
+
onClick: V,
|
|
296
|
+
sx: H,
|
|
297
|
+
children: [
|
|
298
|
+
ie,
|
|
299
|
+
/* @__PURE__ */ J(k, {
|
|
300
|
+
primary: U,
|
|
301
|
+
secondary: nt(r.of(s.language))
|
|
302
|
+
}),
|
|
303
|
+
W
|
|
304
|
+
]
|
|
305
|
+
}), K;
|
|
306
|
+
e[57] !== P || e[58] !== B || e[59] !== G ? (K = /* @__PURE__ */ Y(T, {
|
|
307
|
+
component: "nav",
|
|
308
|
+
subheader: P,
|
|
309
|
+
children: [B, G]
|
|
310
|
+
}), e[57] = P, e[58] = B, e[59] = G, e[60] = K) : K = e[60], _ = K;
|
|
311
|
+
let q, ae;
|
|
312
|
+
e[61] === Symbol.for("react.memo_cache_sentinel") ? (q = j("settings"), ae = {
|
|
313
|
+
backgroundColor: "transparent",
|
|
314
|
+
display: "flex",
|
|
315
|
+
alignItems: "center",
|
|
316
|
+
px: 1,
|
|
317
|
+
cursor: "pointer"
|
|
318
|
+
}, e[61] = q, e[62] = ae) : (q = e[61], ae = e[62]);
|
|
319
|
+
let X;
|
|
320
|
+
e[63] === Symbol.for("react.memo_cache_sentinel") ? (X = /* @__PURE__ */ J(C, {
|
|
321
|
+
size: "small",
|
|
322
|
+
sx: { mr: .5 },
|
|
323
|
+
children: /* @__PURE__ */ J(Se, { fontSize: "small" })
|
|
324
|
+
}), e[63] = X) : X = e[63];
|
|
325
|
+
let Z;
|
|
326
|
+
e[64] === o ? Z = e[65] : (Z = o("Layout.Appearance"), e[64] = o, e[65] = Z);
|
|
327
|
+
let Q;
|
|
328
|
+
e[66] === Z ? Q = e[67] : (Q = /* @__PURE__ */ Y(ee, {
|
|
329
|
+
onClick: q,
|
|
330
|
+
sx: ae,
|
|
331
|
+
children: [
|
|
332
|
+
X,
|
|
333
|
+
" ",
|
|
334
|
+
Z
|
|
335
|
+
]
|
|
336
|
+
}), e[66] = Z, e[67] = Q);
|
|
337
|
+
let $;
|
|
338
|
+
e[68] !== w || e[69] !== c || e[70] !== l ? ($ = w.map((e) => {
|
|
339
|
+
let { mode: t, icon: n, label: r } = e;
|
|
340
|
+
return /* @__PURE__ */ Y(D, {
|
|
341
|
+
onClick: () => {
|
|
342
|
+
l(t), m();
|
|
343
|
+
},
|
|
344
|
+
selected: c === t,
|
|
345
|
+
children: [/* @__PURE__ */ J(O, { children: /* @__PURE__ */ J(n, {}) }), /* @__PURE__ */ J(k, { primary: r })]
|
|
346
|
+
}, t);
|
|
347
|
+
}), e[68] = w, e[69] = c, e[70] = l, e[71] = $) : $ = e[71];
|
|
348
|
+
let oe;
|
|
349
|
+
e[72] !== Q || e[73] !== $ ? (oe = /* @__PURE__ */ J(T, {
|
|
350
|
+
subheader: Q,
|
|
351
|
+
children: $
|
|
352
|
+
}), e[72] = Q, e[73] = $, e[74] = oe) : oe = e[74], x = oe, p = T;
|
|
353
|
+
let se, ce;
|
|
354
|
+
e[75] === Symbol.for("react.memo_cache_sentinel") ? (se = j("settings"), ce = {
|
|
355
|
+
backgroundColor: "transparent",
|
|
356
|
+
display: "flex",
|
|
357
|
+
alignItems: "center",
|
|
358
|
+
px: 1,
|
|
359
|
+
cursor: "pointer"
|
|
360
|
+
}, e[75] = se, e[76] = ce) : (se = e[75], ce = e[76]);
|
|
361
|
+
let le;
|
|
362
|
+
e[77] === Symbol.for("react.memo_cache_sentinel") ? (le = /* @__PURE__ */ J(C, {
|
|
363
|
+
size: "small",
|
|
364
|
+
sx: { mr: .5 },
|
|
365
|
+
children: /* @__PURE__ */ J(Se, { fontSize: "small" })
|
|
366
|
+
}), e[77] = le) : le = e[77];
|
|
367
|
+
let ue;
|
|
368
|
+
e[78] === o ? ue = e[79] : (ue = o("Layout.Language"), e[78] = o, e[79] = ue), e[80] === ue ? y = e[81] : (y = /* @__PURE__ */ Y(ee, {
|
|
369
|
+
onClick: se,
|
|
370
|
+
sx: ce,
|
|
371
|
+
children: [
|
|
372
|
+
le,
|
|
373
|
+
" ",
|
|
374
|
+
ue
|
|
375
|
+
]
|
|
376
|
+
}), e[80] = ue, e[81] = y), b = t.map((e) => /* @__PURE__ */ Y(D, {
|
|
377
|
+
onClick: () => s.changeLanguage(e).finally(() => m()),
|
|
378
|
+
selected: s.resolvedLanguage === e,
|
|
379
|
+
children: [/* @__PURE__ */ J(O, { children: s.resolvedLanguage === e && /* @__PURE__ */ J(Ee, {}) }), /* @__PURE__ */ J(k, { primary: nt(r.of(e)) })]
|
|
380
|
+
}, e)), e[1] = s, e[2] = c, e[3] = l, e[4] = o, e[5] = p, e[6] = m, e[7] = g, e[8] = _, e[9] = y, e[10] = b, e[11] = x;
|
|
381
|
+
} else p = e[5], m = e[6], g = e[7], _ = e[8], y = e[9], b = e[10], x = e[11];
|
|
382
|
+
let S;
|
|
383
|
+
e[82] !== p || e[83] !== y || e[84] !== b ? (S = /* @__PURE__ */ J(p, {
|
|
384
|
+
subheader: y,
|
|
385
|
+
children: b
|
|
386
|
+
}), e[82] = p, e[83] = y, e[84] = b, e[85] = S) : S = e[85];
|
|
387
|
+
let w = S, A;
|
|
388
|
+
e[86] === Symbol.for("react.memo_cache_sentinel") ? (A = /* @__PURE__ */ J(se, { children: /* @__PURE__ */ J(et, {}) }), e[86] = A) : A = e[86];
|
|
389
|
+
let j;
|
|
390
|
+
e[87] === Symbol.for("react.memo_cache_sentinel") ? (j = /* @__PURE__ */ J(ue, { children: /* @__PURE__ */ J(xe, { sx: {
|
|
391
|
+
width: {
|
|
392
|
+
xs: 32,
|
|
393
|
+
sm: 40
|
|
394
|
+
},
|
|
395
|
+
height: {
|
|
396
|
+
xs: 32,
|
|
397
|
+
sm: 40
|
|
398
|
+
}
|
|
399
|
+
} }) }), e[87] = j) : j = e[87];
|
|
400
|
+
let M;
|
|
401
|
+
e[88] === g ? M = e[89] : (M = /* @__PURE__ */ Y(C, {
|
|
402
|
+
size: "small",
|
|
403
|
+
edge: "end",
|
|
404
|
+
onClick: g,
|
|
405
|
+
children: [A, j]
|
|
406
|
+
}), e[88] = g, e[89] = M);
|
|
407
|
+
let N;
|
|
408
|
+
e[90] === Symbol.for("react.memo_cache_sentinel") ? (N = { width: 240 }, e[90] = N) : N = e[90];
|
|
409
|
+
let F = f?.name, I;
|
|
410
|
+
e[91] === f ? I = e[92] : (I = f?.employeeId && /* @__PURE__ */ J("span", { children: f.employeeId }), e[91] = f, e[92] = I);
|
|
411
|
+
let ne;
|
|
412
|
+
e[93] === f?.employeeId ? ne = e[94] : (ne = f?.employeeId && /* @__PURE__ */ J("br", {}), e[93] = f?.employeeId, e[94] = ne);
|
|
413
|
+
let L;
|
|
414
|
+
e[95] === f ? L = e[96] : (L = f?.department && /* @__PURE__ */ J("span", { children: f.department }), e[95] = f, e[96] = L);
|
|
415
|
+
let R;
|
|
416
|
+
e[97] !== ne || e[98] !== L || e[99] !== I ? (R = /* @__PURE__ */ Y("span", { children: [
|
|
417
|
+
I,
|
|
418
|
+
ne,
|
|
419
|
+
L
|
|
420
|
+
] }), e[97] = ne, e[98] = L, e[99] = I, e[100] = R) : R = e[100];
|
|
421
|
+
let z;
|
|
422
|
+
e[101] !== R || e[102] !== F ? (z = /* @__PURE__ */ J(E, { children: /* @__PURE__ */ J(k, {
|
|
423
|
+
primary: F,
|
|
424
|
+
secondary: R
|
|
425
|
+
}) }), e[101] = R, e[102] = F, e[103] = z) : z = e[103];
|
|
426
|
+
let B;
|
|
427
|
+
e[104] === u ? B = e[105] : (B = () => u.logoutRedirect({ postLogoutRedirectUri: "/" }), e[104] = u, e[105] = B);
|
|
428
|
+
let V;
|
|
429
|
+
e[106] === Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ J(O, { children: /* @__PURE__ */ J(ke, { color: "error" }) }), e[106] = V) : V = e[106];
|
|
430
|
+
let H;
|
|
431
|
+
e[107] === o ? H = e[108] : (H = o("Layout.Logout"), e[107] = o, e[108] = H);
|
|
432
|
+
let U;
|
|
433
|
+
e[109] === H ? U = e[110] : (U = /* @__PURE__ */ J(k, { primary: H }), e[109] = H, e[110] = U);
|
|
434
|
+
let W;
|
|
435
|
+
e[111] !== B || e[112] !== U ? (W = /* @__PURE__ */ Y(D, {
|
|
436
|
+
onClick: B,
|
|
437
|
+
children: [V, U]
|
|
438
|
+
}), e[111] = B, e[112] = U, e[113] = W) : W = e[113];
|
|
439
|
+
let G;
|
|
440
|
+
e[114] !== z || e[115] !== W ? (G = /* @__PURE__ */ Y(se, { children: [z, W] }), e[114] = z, e[115] = W, e[116] = G) : G = e[116];
|
|
441
|
+
let q;
|
|
442
|
+
e[117] === u ? q = e[118] : (q = () => u.loginRedirect(), e[117] = u, e[118] = q);
|
|
443
|
+
let ae;
|
|
444
|
+
e[119] === Symbol.for("react.memo_cache_sentinel") ? (ae = /* @__PURE__ */ J(O, { children: /* @__PURE__ */ J(Oe, { color: "success" }) }), e[119] = ae) : ae = e[119];
|
|
445
|
+
let X;
|
|
446
|
+
e[120] === o ? X = e[121] : (X = o("Layout.LogIn"), e[120] = o, e[121] = X);
|
|
447
|
+
let Z;
|
|
448
|
+
e[122] === X ? Z = e[123] : (Z = /* @__PURE__ */ J(k, { primary: X }), e[122] = X, e[123] = Z);
|
|
449
|
+
let Q;
|
|
450
|
+
e[124] !== q || e[125] !== Z ? (Q = /* @__PURE__ */ J(ue, { children: /* @__PURE__ */ Y(D, {
|
|
451
|
+
onClick: q,
|
|
452
|
+
children: [ae, Z]
|
|
453
|
+
}) }), e[124] = q, e[125] = Z, e[126] = Q) : Q = e[126];
|
|
454
|
+
let $;
|
|
455
|
+
e[127] !== G || e[128] !== Q ? ($ = /* @__PURE__ */ Y(T, {
|
|
456
|
+
disablePadding: !0,
|
|
457
|
+
children: [G, Q]
|
|
458
|
+
}), e[127] = G, e[128] = Q, e[129] = $) : $ = e[129];
|
|
459
|
+
let oe = r === "settings" && _, ce = r === "theme" && x, le = r === "language" && w, fe;
|
|
460
|
+
e[130] !== $ || e[131] !== oe || e[132] !== ce || e[133] !== le ? (fe = /* @__PURE__ */ Y(v, {
|
|
461
|
+
sx: N,
|
|
462
|
+
children: [
|
|
463
|
+
$,
|
|
464
|
+
oe,
|
|
465
|
+
ce,
|
|
466
|
+
le
|
|
467
|
+
]
|
|
468
|
+
}), e[130] = $, e[131] = oe, e[132] = ce, e[133] = le, e[134] = fe) : fe = e[134];
|
|
469
|
+
let pe;
|
|
470
|
+
e[135] !== t || e[136] !== m || e[137] !== a || e[138] !== fe ? (pe = /* @__PURE__ */ J(te, {
|
|
471
|
+
anchorEl: t,
|
|
472
|
+
open: a,
|
|
473
|
+
onClose: m,
|
|
474
|
+
children: fe
|
|
475
|
+
}), e[135] = t, e[136] = m, e[137] = a, e[138] = fe, e[139] = pe) : pe = e[139];
|
|
476
|
+
let me;
|
|
477
|
+
return e[140] !== pe || e[141] !== M ? (me = /* @__PURE__ */ Y(ie, { children: [M, pe] }), e[140] = pe, e[141] = M, e[142] = me) : me = e[142], me;
|
|
478
|
+
};
|
|
479
|
+
function it(e) {
|
|
480
|
+
return e !== "cimode";
|
|
481
|
+
}
|
|
482
|
+
//#endregion
|
|
483
|
+
//#region src/components/core/AppTitle.tsx
|
|
484
|
+
var at = "PRD", ot = (e) => H.string().refine((e) => e.split("-").length > 2).transform((e) => e.split("-")[2].toUpperCase()).catch("LOCALHOST").parse(e), st = () => {
|
|
485
|
+
let e = h(9), t = be(), n;
|
|
486
|
+
e[0] === t.origin ? n = e[1] : (n = ot(t.origin), e[0] = t.origin, e[1] = n);
|
|
487
|
+
let r = n, i = r === at, o, s;
|
|
488
|
+
e[2] === Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ J(p, {
|
|
165
489
|
to: "/",
|
|
166
490
|
size: "small",
|
|
167
|
-
children: /* @__PURE__ */
|
|
491
|
+
children: /* @__PURE__ */ J("img", {
|
|
168
492
|
src: "/favicon-32x32.png",
|
|
169
493
|
alt: "app-logo",
|
|
170
494
|
loading: "lazy"
|
|
171
495
|
})
|
|
172
|
-
}),
|
|
496
|
+
}), s = /* @__PURE__ */ J(N, {
|
|
173
497
|
variant: "h6",
|
|
174
|
-
children:
|
|
175
|
-
}), e[2] =
|
|
498
|
+
children: a.VITE_APP_TITLE
|
|
499
|
+
}), e[2] = o, e[3] = s) : (o = e[2], s = e[3]);
|
|
176
500
|
let c;
|
|
177
|
-
e[4] !== r || e[5] !== i ? (c = !i && /* @__PURE__ */
|
|
501
|
+
e[4] !== r || e[5] !== i ? (c = !i && /* @__PURE__ */ J(y, {
|
|
178
502
|
size: "small",
|
|
179
503
|
label: r,
|
|
180
504
|
color: "primary"
|
|
181
505
|
}), e[4] = r, e[5] = i, e[6] = c) : c = e[6];
|
|
182
506
|
let l;
|
|
183
|
-
return e[7] === c ? l = e[8] : (l = /* @__PURE__ */
|
|
507
|
+
return e[7] === c ? l = e[8] : (l = /* @__PURE__ */ Y(A, {
|
|
184
508
|
direction: "row",
|
|
185
509
|
alignItems: "center",
|
|
186
510
|
spacing: 1,
|
|
187
511
|
flexGrow: 1,
|
|
188
512
|
children: [
|
|
189
|
-
a,
|
|
190
513
|
o,
|
|
514
|
+
s,
|
|
191
515
|
c
|
|
192
516
|
]
|
|
193
517
|
}), e[7] = c, e[8] = l), l;
|
|
194
|
-
},
|
|
518
|
+
}, ct = 34, lt = (e) => e.vars?.palette.primary.dark ?? e.palette.primary.dark, ut = (e) => e.vars?.palette.action.active ?? e.palette.action.active, dt = me(We)(({ theme: e }) => ({
|
|
195
519
|
borderRadius: 8,
|
|
196
520
|
"&.Mui-selected": {
|
|
197
|
-
"& .MuiListItemIcon-root, & .MuiTypography-root, & .MuiSvgIcon-root": { color:
|
|
198
|
-
"& .MuiAvatar-root": { backgroundColor:
|
|
199
|
-
"& .MuiTouchRipple-child": { backgroundColor:
|
|
521
|
+
"& .MuiListItemIcon-root, & .MuiTypography-root, & .MuiSvgIcon-root": { color: lt(e) },
|
|
522
|
+
"& .MuiAvatar-root": { backgroundColor: lt(e) },
|
|
523
|
+
"& .MuiTouchRipple-child": { backgroundColor: lt(e) }
|
|
200
524
|
},
|
|
201
|
-
"& .MuiSvgIcon-root": { color:
|
|
202
|
-
"& .MuiAvatar-root": { backgroundColor:
|
|
203
|
-
})),
|
|
525
|
+
"& .MuiSvgIcon-root": { color: ut(e) },
|
|
526
|
+
"& .MuiAvatar-root": { backgroundColor: ut(e) }
|
|
527
|
+
})), ft = me(m)(({ theme: e }) => ({
|
|
204
528
|
borderRadius: 8,
|
|
205
529
|
"&.Mui-selected": {
|
|
206
|
-
"& .MuiListItemIcon-root, & .MuiTypography-root, & .MuiSvgIcon-root": { color:
|
|
207
|
-
"& .MuiAvatar-root": { backgroundColor:
|
|
208
|
-
"& .MuiTouchRipple-child": { backgroundColor:
|
|
530
|
+
"& .MuiListItemIcon-root, & .MuiTypography-root, & .MuiSvgIcon-root": { color: lt(e) },
|
|
531
|
+
"& .MuiAvatar-root": { backgroundColor: lt(e) },
|
|
532
|
+
"& .MuiTouchRipple-child": { backgroundColor: lt(e) }
|
|
209
533
|
},
|
|
210
|
-
"& .MuiSvgIcon-root": { color:
|
|
211
|
-
"& .MuiAvatar-root": { backgroundColor:
|
|
212
|
-
})),
|
|
213
|
-
let t =
|
|
534
|
+
"& .MuiSvgIcon-root": { color: ut(e) },
|
|
535
|
+
"& .MuiAvatar-root": { backgroundColor: ut(e) }
|
|
536
|
+
})), pt = (e) => {
|
|
537
|
+
let t = h(17), { item: n, collapsed: r } = e;
|
|
214
538
|
if (n.icon || r) {
|
|
215
539
|
let e;
|
|
216
540
|
t[0] === r ? e = t[1] : (e = r ? {
|
|
@@ -224,24 +548,24 @@ var Je = 1e3, Ye = (e) => {
|
|
|
224
548
|
display: "flex",
|
|
225
549
|
alignItems: "center",
|
|
226
550
|
justifyContent: "center",
|
|
227
|
-
minWidth:
|
|
551
|
+
minWidth: ct
|
|
228
552
|
}, t[2] = i) : i = t[2];
|
|
229
553
|
let a = n.icon ?? null, o;
|
|
230
|
-
t[3] !== r || t[4] !== n.icon || t[5] !== n.title ? (o = !n.icon && r ? /* @__PURE__ */
|
|
554
|
+
t[3] !== r || t[4] !== n.icon || t[5] !== n.title ? (o = !n.icon && r ? /* @__PURE__ */ J(He, {
|
|
231
555
|
sx: {
|
|
232
|
-
width:
|
|
233
|
-
height:
|
|
556
|
+
width: ct - 7,
|
|
557
|
+
height: ct - 7,
|
|
234
558
|
fontSize: 12
|
|
235
559
|
},
|
|
236
|
-
children: n.title.split(" ").slice(0, 2).map(
|
|
560
|
+
children: n.title.split(" ").slice(0, 2).map(gt)
|
|
237
561
|
}) : null, t[3] = r, t[4] = n.icon, t[5] = n.title, t[6] = o) : o = t[6];
|
|
238
562
|
let s;
|
|
239
|
-
t[7] !== a || t[8] !== o ? (s = /* @__PURE__ */
|
|
563
|
+
t[7] !== a || t[8] !== o ? (s = /* @__PURE__ */ Y(Ge, {
|
|
240
564
|
sx: i,
|
|
241
565
|
children: [a, o]
|
|
242
566
|
}), t[7] = a, t[8] = o, t[9] = s) : s = t[9];
|
|
243
567
|
let c;
|
|
244
|
-
t[10] !== r || t[11] !== n.title ? (c = r ? /* @__PURE__ */
|
|
568
|
+
t[10] !== r || t[11] !== n.title ? (c = r ? /* @__PURE__ */ J(Je, {
|
|
245
569
|
variant: "caption",
|
|
246
570
|
sx: {
|
|
247
571
|
position: "absolute",
|
|
@@ -259,14 +583,14 @@ var Je = 1e3, Ye = (e) => {
|
|
|
259
583
|
children: n.title
|
|
260
584
|
}) : null, t[10] = r, t[11] = n.title, t[12] = c) : c = t[12];
|
|
261
585
|
let l;
|
|
262
|
-
return t[13] !== e || t[14] !== s || t[15] !== c ? (l = /* @__PURE__ */
|
|
586
|
+
return t[13] !== e || t[14] !== s || t[15] !== c ? (l = /* @__PURE__ */ Y(Le, {
|
|
263
587
|
sx: e,
|
|
264
588
|
children: [s, c]
|
|
265
589
|
}), t[13] = e, t[14] = s, t[15] = c, t[16] = l) : l = t[16], l;
|
|
266
590
|
}
|
|
267
591
|
return null;
|
|
268
|
-
},
|
|
269
|
-
let t =
|
|
592
|
+
}, mt = (e) => {
|
|
593
|
+
let t = h(7), { open: n, children: r } = e, i;
|
|
270
594
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = {
|
|
271
595
|
position: "fixed",
|
|
272
596
|
left: 84,
|
|
@@ -283,20 +607,20 @@ var Je = 1e3, Ye = (e) => {
|
|
|
283
607
|
overscrollBehavior: "contain"
|
|
284
608
|
}, t[1] = a) : a = t[1];
|
|
285
609
|
let o;
|
|
286
|
-
t[2] === r ? o = t[3] : (o = /* @__PURE__ */
|
|
610
|
+
t[2] === r ? o = t[3] : (o = /* @__PURE__ */ J(Le, {
|
|
287
611
|
sx: i,
|
|
288
|
-
children: /* @__PURE__ */
|
|
612
|
+
children: /* @__PURE__ */ J(qe, {
|
|
289
613
|
sx: a,
|
|
290
614
|
children: r
|
|
291
615
|
})
|
|
292
616
|
}), t[2] = r, t[3] = o);
|
|
293
617
|
let s;
|
|
294
|
-
return t[4] !== n || t[5] !== o ? (s = /* @__PURE__ */
|
|
618
|
+
return t[4] !== n || t[5] !== o ? (s = /* @__PURE__ */ J(S, {
|
|
295
619
|
in: n,
|
|
296
620
|
children: o
|
|
297
621
|
}), t[4] = n, t[5] = o, t[6] = s) : s = t[6], s;
|
|
298
|
-
},
|
|
299
|
-
let t =
|
|
622
|
+
}, ht = (e) => {
|
|
623
|
+
let t = h(56), { item: n, isOpen: r, selected: i, disabled: a, collapsed: o, isSidebarFullyExpanded: s, isSidebarFullyCollapsed: c, onClick: l, renderNested: u, onClose: d } = e, f = s === void 0 ? !0 : s, [p, m] = K(null), g = `${n.to ?? n.title}`, _;
|
|
300
624
|
t[0] !== o || t[1] !== r || t[2] !== c || t[3] !== f || t[4] !== n.children ? (_ = (e) => o && c && n.children ? {
|
|
301
625
|
fontSize: 18,
|
|
302
626
|
position: "absolute",
|
|
@@ -311,7 +635,7 @@ var Je = 1e3, Ye = (e) => {
|
|
|
311
635
|
duration: 100
|
|
312
636
|
})
|
|
313
637
|
} : { display: "none" }, t[0] = o, t[1] = r, t[2] = c, t[3] = f, t[4] = n.children, t[5] = _) : _ = t[5];
|
|
314
|
-
let v = _,
|
|
638
|
+
let v = _, y = n.children && !o, x = o ? 60 : 48, S;
|
|
315
639
|
t[6] === x ? S = t[7] : (S = {
|
|
316
640
|
px: 1.4,
|
|
317
641
|
height: x
|
|
@@ -323,12 +647,12 @@ var Je = 1e3, Ye = (e) => {
|
|
|
323
647
|
sx: S
|
|
324
648
|
}, t[8] = a, t[9] = i, t[10] = S, t[11] = C) : C = t[11];
|
|
325
649
|
let w = C, T;
|
|
326
|
-
t[12] !== o || t[13] !== n ? (T = /* @__PURE__ */
|
|
650
|
+
t[12] !== o || t[13] !== n ? (T = /* @__PURE__ */ J(pt, {
|
|
327
651
|
item: n,
|
|
328
652
|
collapsed: o
|
|
329
653
|
}), t[12] = o, t[13] = n, t[14] = T) : T = t[14];
|
|
330
654
|
let E;
|
|
331
|
-
t[15] !== o || t[16] !== n.title ? (E = !o && /* @__PURE__ */
|
|
655
|
+
t[15] !== o || t[16] !== n.title ? (E = !o && /* @__PURE__ */ J(Ke, {
|
|
332
656
|
primary: n.title,
|
|
333
657
|
slotProps: { primary: {
|
|
334
658
|
noWrap: !0,
|
|
@@ -346,34 +670,34 @@ var Je = 1e3, Ye = (e) => {
|
|
|
346
670
|
}
|
|
347
671
|
}), t[15] = o, t[16] = n.title, t[17] = E) : E = t[17];
|
|
348
672
|
let D;
|
|
349
|
-
t[18] !== v || t[19] !== n.children ? (D = n.children ? /* @__PURE__ */
|
|
673
|
+
t[18] !== v || t[19] !== n.children ? (D = n.children ? /* @__PURE__ */ J(Ve, { sx: v }) : null, t[18] = v, t[19] = n.children, t[20] = D) : D = t[20];
|
|
350
674
|
let O;
|
|
351
|
-
t[21] !== T || t[22] !== E || t[23] !== D ? (O = /* @__PURE__ */
|
|
675
|
+
t[21] !== T || t[22] !== E || t[23] !== D ? (O = /* @__PURE__ */ Y(ae, { children: [
|
|
352
676
|
T,
|
|
353
677
|
E,
|
|
354
678
|
D
|
|
355
679
|
] }), t[21] = T, t[22] = E, t[23] = D, t[24] = O) : O = t[24];
|
|
356
|
-
let k = O,
|
|
357
|
-
t[25] !== o || t[26] !== n.children || t[27] !== g ? (
|
|
680
|
+
let k = O, ee;
|
|
681
|
+
t[25] !== o || t[26] !== n.children || t[27] !== g ? (ee = n.children && o ? {
|
|
358
682
|
onMouseEnter: () => {
|
|
359
|
-
|
|
683
|
+
m(g);
|
|
360
684
|
},
|
|
361
685
|
onMouseLeave: () => {
|
|
362
|
-
|
|
686
|
+
m(null);
|
|
363
687
|
}
|
|
364
|
-
} : {}, t[25] = o, t[26] = n.children, t[27] = g, t[28] =
|
|
365
|
-
let
|
|
366
|
-
t[29] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
688
|
+
} : {}, t[25] = o, t[26] = n.children, t[27] = g, t[28] = ee) : ee = t[28];
|
|
689
|
+
let te;
|
|
690
|
+
t[29] === Symbol.for("react.memo_cache_sentinel") ? (te = {
|
|
367
691
|
py: 0,
|
|
368
692
|
px: 1,
|
|
369
693
|
overflowX: "hidden"
|
|
370
|
-
}, t[29] =
|
|
371
|
-
let
|
|
372
|
-
t[30] !== k || t[31] !== w || t[32] !== n || t[33] !== l || t[34] !== d || t[35] !==
|
|
694
|
+
}, t[29] = te) : te = t[29];
|
|
695
|
+
let A;
|
|
696
|
+
t[30] !== k || t[31] !== w || t[32] !== n || t[33] !== l || t[34] !== d || t[35] !== y ? (A = y ? /* @__PURE__ */ J(dt, {
|
|
373
697
|
...w,
|
|
374
698
|
onClick: () => l?.(n),
|
|
375
699
|
children: k
|
|
376
|
-
}) : /* @__PURE__ */
|
|
700
|
+
}) : /* @__PURE__ */ J(ft, {
|
|
377
701
|
...w,
|
|
378
702
|
to: n.to,
|
|
379
703
|
href: n.href,
|
|
@@ -381,44 +705,44 @@ var Je = 1e3, Ye = (e) => {
|
|
|
381
705
|
search: n.search,
|
|
382
706
|
onClick: d,
|
|
383
707
|
children: k
|
|
384
|
-
}), t[30] = k, t[31] = w, t[32] = n, t[33] = l, t[34] = d, t[35] =
|
|
385
|
-
let
|
|
386
|
-
t[37] !== o || t[38] !== p || t[39] !== n.children || t[40] !== g || t[41] !== u ? (
|
|
708
|
+
}), t[30] = k, t[31] = w, t[32] = n, t[33] = l, t[34] = d, t[35] = y, t[36] = A) : A = t[36];
|
|
709
|
+
let j;
|
|
710
|
+
t[37] !== o || t[38] !== p || t[39] !== n.children || t[40] !== g || t[41] !== u ? (j = n.children && o ? /* @__PURE__ */ J(mt, {
|
|
387
711
|
open: g === p,
|
|
388
712
|
children: u?.(n.children)
|
|
389
|
-
}) : null, t[37] = o, t[38] = p, t[39] = n.children, t[40] = g, t[41] = u, t[42] =
|
|
390
|
-
let
|
|
391
|
-
t[43] !==
|
|
392
|
-
...
|
|
393
|
-
sx:
|
|
394
|
-
children: [
|
|
395
|
-
}), t[43] =
|
|
396
|
-
let
|
|
397
|
-
t[47] !== o || t[48] !== r || t[49] !== n.children || t[50] !== u ? (
|
|
713
|
+
}) : null, t[37] = o, t[38] = p, t[39] = n.children, t[40] = g, t[41] = u, t[42] = j) : j = t[42];
|
|
714
|
+
let M;
|
|
715
|
+
t[43] !== ee || t[44] !== A || t[45] !== j ? (M = /* @__PURE__ */ Y(Ue, {
|
|
716
|
+
...ee,
|
|
717
|
+
sx: te,
|
|
718
|
+
children: [A, j]
|
|
719
|
+
}), t[43] = ee, t[44] = A, t[45] = j, t[46] = M) : M = t[46];
|
|
720
|
+
let N = M, P;
|
|
721
|
+
t[47] !== o || t[48] !== r || t[49] !== n.children || t[50] !== u ? (P = n.children && !o ? /* @__PURE__ */ J(b, {
|
|
398
722
|
in: r,
|
|
399
723
|
timeout: "auto",
|
|
400
724
|
unmountOnExit: !0,
|
|
401
725
|
children: u?.(n.children)
|
|
402
|
-
}) : null, t[47] = o, t[48] = r, t[49] = n.children, t[50] = u, t[51] =
|
|
403
|
-
let
|
|
404
|
-
return t[52] !== n.to || t[53] !==
|
|
726
|
+
}) : null, t[47] = o, t[48] = r, t[49] = n.children, t[50] = u, t[51] = P) : P = t[51];
|
|
727
|
+
let F;
|
|
728
|
+
return t[52] !== n.to || t[53] !== N || t[54] !== P ? (F = /* @__PURE__ */ Y(ie, { children: [N, P] }, n.to), t[52] = n.to, t[53] = N, t[54] = P, t[55] = F) : F = t[55], F;
|
|
405
729
|
};
|
|
406
|
-
function
|
|
730
|
+
function gt(e) {
|
|
407
731
|
return e.charAt(0).toUpperCase();
|
|
408
732
|
}
|
|
409
733
|
//#endregion
|
|
410
734
|
//#region src/components/core/navigation/NavigationList.tsx
|
|
411
|
-
var
|
|
412
|
-
let t =
|
|
735
|
+
var _t = (e) => !("kind" in e), vt = (e) => "kind" in e && e.kind === "divider", yt = (e) => "kind" in e && e.kind === "header", bt = (e) => {
|
|
736
|
+
let t = h(30), { subNavigation: n, depth: r, collapsed: i, isPopover: a, isSidebarFullyExpanded: o, isSidebarFullyCollapsed: s, expandedWidth: c, renderItem: l, activePath: u, onNavigate: d, onClose: f } = e, p = r === void 0 ? 0 : r, m = o === void 0 ? !0 : o, g;
|
|
413
737
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (g = [], t[0] = g) : g = t[0];
|
|
414
|
-
let [_, v] =
|
|
738
|
+
let [_, v] = K(g), y, b;
|
|
415
739
|
t[1] === i ? (y = t[2], b = t[3]) : (y = () => {
|
|
416
740
|
i && v([]);
|
|
417
|
-
}, b = [i], t[1] = i, t[2] = y, t[3] = b),
|
|
741
|
+
}, b = [i], t[1] = i, t[2] = y, t[3] = b), U(y, b);
|
|
418
742
|
let x;
|
|
419
743
|
t[4] === Symbol.for("react.memo_cache_sentinel") ? (x = (e) => v((t) => t.includes(e) ? t.filter((t) => t !== e) : [...t, e]), t[4] = x) : x = t[4];
|
|
420
744
|
let S = x, C;
|
|
421
|
-
t[5] !== u || t[6] !== i || t[7] !== p || t[8] !== c || t[9] !== f || t[10] !== d ? (C = (e) => /* @__PURE__ */
|
|
745
|
+
t[5] !== u || t[6] !== i || t[7] !== p || t[8] !== c || t[9] !== f || t[10] !== d ? (C = (e) => /* @__PURE__ */ J(bt, {
|
|
422
746
|
subNavigation: e,
|
|
423
747
|
depth: p + 1,
|
|
424
748
|
isPopover: i,
|
|
@@ -428,19 +752,19 @@ var ct = (e) => !("kind" in e), lt = (e) => "kind" in e && e.kind === "divider",
|
|
|
428
752
|
onClose: f
|
|
429
753
|
}), t[5] = u, t[6] = i, t[7] = p, t[8] = c, t[9] = f, t[10] = d, t[11] = C) : C = t[11];
|
|
430
754
|
let w = C, T;
|
|
431
|
-
if (t[12] !== u || t[13] !== i || t[14] !== p || t[15] !== a || t[16] !== s || t[17] !==
|
|
432
|
-
let e = n.filter(
|
|
433
|
-
t[24] !== o || t[25] !== c || t[26] !== d || t[27] !==
|
|
755
|
+
if (t[12] !== u || t[13] !== i || t[14] !== p || t[15] !== a || t[16] !== s || t[17] !== m || t[18] !== f || t[19] !== _ || t[20] !== l || t[21] !== w || t[22] !== n) {
|
|
756
|
+
let e = n.filter(xt), r = a && p === 1 ? .5 : 0, o = p === 0 && !a ? 4 : .5, c = (a ? 1 : 2) * (a ? p - 1 : p), d = a && p === 1 ? 240 : "auto", h = i ? 84 : "auto", g;
|
|
757
|
+
t[24] !== o || t[25] !== c || t[26] !== d || t[27] !== h || t[28] !== r ? (g = {
|
|
434
758
|
padding: 0,
|
|
435
759
|
mt: r,
|
|
436
760
|
mb: o,
|
|
437
761
|
pl: c,
|
|
438
762
|
minWidth: d,
|
|
439
|
-
width:
|
|
440
|
-
}, t[24] = o, t[25] = c, t[26] = d, t[27] =
|
|
763
|
+
width: h
|
|
764
|
+
}, t[24] = o, t[25] = c, t[26] = d, t[27] = h, t[28] = r, t[29] = g) : g = t[29], T = /* @__PURE__ */ J(ze, {
|
|
441
765
|
sx: g,
|
|
442
766
|
children: e.map((t, n) => {
|
|
443
|
-
if (
|
|
767
|
+
if (yt(t)) return /* @__PURE__ */ J(Be, {
|
|
444
768
|
sx: {
|
|
445
769
|
fontSize: 12,
|
|
446
770
|
fontWeight: "700",
|
|
@@ -455,39 +779,39 @@ var ct = (e) => !("kind" in e), lt = (e) => "kind" in e && e.kind === "divider",
|
|
|
455
779
|
},
|
|
456
780
|
children: t.title
|
|
457
781
|
}, `subheader-${p}-${n}`);
|
|
458
|
-
if (
|
|
782
|
+
if (vt(t)) {
|
|
459
783
|
let t = e[n + 1];
|
|
460
|
-
return /* @__PURE__ */
|
|
784
|
+
return /* @__PURE__ */ J("li", { children: /* @__PURE__ */ J(Re, { sx: {
|
|
461
785
|
mx: 1,
|
|
462
786
|
mt: 1,
|
|
463
|
-
mb:
|
|
787
|
+
mb: yt(t) && !i ? 0 : 1
|
|
464
788
|
} }) }, `divider-${p}-${n}`);
|
|
465
789
|
}
|
|
466
|
-
if (!
|
|
790
|
+
if (!_t(t)) return null;
|
|
467
791
|
let r = `item-${p}-${n}`, a = `${p}-${n}-${t.title}`;
|
|
468
|
-
return l ? /* @__PURE__ */
|
|
792
|
+
return l ? /* @__PURE__ */ J(ie, { children: l(t, { collapsed: !!i }) }, r) : /* @__PURE__ */ J(ht, {
|
|
469
793
|
item: t,
|
|
470
794
|
isOpen: _.includes(a),
|
|
471
795
|
selected: u === t.to,
|
|
472
796
|
collapsed: i,
|
|
473
|
-
isSidebarFullyExpanded:
|
|
797
|
+
isSidebarFullyExpanded: m,
|
|
474
798
|
isSidebarFullyCollapsed: s,
|
|
475
799
|
onClick: t.children && !i ? () => S(a) : void 0,
|
|
476
800
|
renderNested: w,
|
|
477
801
|
onClose: f
|
|
478
802
|
}, r);
|
|
479
803
|
})
|
|
480
|
-
}), t[12] = u, t[13] = i, t[14] = p, t[15] = a, t[16] = s, t[17] =
|
|
804
|
+
}), t[12] = u, t[13] = i, t[14] = p, t[15] = a, t[16] = s, t[17] = m, t[18] = f, t[19] = _, t[20] = l, t[21] = w, t[22] = n, t[23] = T;
|
|
481
805
|
} else T = t[23];
|
|
482
806
|
return T;
|
|
483
807
|
};
|
|
484
|
-
function
|
|
808
|
+
function xt(e) {
|
|
485
809
|
return !e.hidden;
|
|
486
810
|
}
|
|
487
811
|
//#endregion
|
|
488
812
|
//#region src/components/core/navigation/NavigationContent.tsx
|
|
489
|
-
var
|
|
490
|
-
let t =
|
|
813
|
+
var St = (e) => {
|
|
814
|
+
let t = h(17), { navigation: n, collapsed: r, expanded: i, setExpanded: a, showPermanent: o } = e, s = ye(), c = ge(), l = r ? "stable" : "auto", u = n[0] && yt(n[0]) && !r ? 0 : 2, d;
|
|
491
815
|
t[0] !== l || t[1] !== u ? (d = {
|
|
492
816
|
height: "100%",
|
|
493
817
|
display: "flex",
|
|
@@ -500,8 +824,8 @@ var pt = (e) => {
|
|
|
500
824
|
}, t[0] = l, t[1] = u, t[2] = d) : d = t[2];
|
|
501
825
|
let f = !i, p;
|
|
502
826
|
t[3] !== a || t[4] !== o ? (p = o ? void 0 : () => a(!1), t[3] = a, t[4] = o, t[5] = p) : p = t[5];
|
|
503
|
-
let
|
|
504
|
-
t[6] !== r || t[7] !== i || t[8] !== c.pathname || t[9] !== s || t[10] !== n || t[11] !== f || t[12] !== p ? (
|
|
827
|
+
let m;
|
|
828
|
+
t[6] !== r || t[7] !== i || t[8] !== c.pathname || t[9] !== s || t[10] !== n || t[11] !== f || t[12] !== p ? (m = /* @__PURE__ */ J(bt, {
|
|
505
829
|
subNavigation: n,
|
|
506
830
|
collapsed: r,
|
|
507
831
|
isSidebarFullyExpanded: i,
|
|
@@ -510,15 +834,15 @@ var pt = (e) => {
|
|
|
510
834
|
activePath: c.pathname,
|
|
511
835
|
onNavigate: s,
|
|
512
836
|
onClose: p
|
|
513
|
-
}), t[6] = r, t[7] = i, t[8] = c.pathname, t[9] = s, t[10] = n, t[11] = f, t[12] = p, t[13] =
|
|
837
|
+
}), t[6] = r, t[7] = i, t[8] = c.pathname, t[9] = s, t[10] = n, t[11] = f, t[12] = p, t[13] = m) : m = t[13];
|
|
514
838
|
let g;
|
|
515
|
-
return t[14] !== d || t[15] !==
|
|
839
|
+
return t[14] !== d || t[15] !== m ? (g = /* @__PURE__ */ J(Le, {
|
|
516
840
|
component: "nav",
|
|
517
841
|
sx: d,
|
|
518
|
-
children:
|
|
519
|
-
}), t[14] = d, t[15] =
|
|
520
|
-
},
|
|
521
|
-
let t =
|
|
842
|
+
children: m
|
|
843
|
+
}), t[14] = d, t[15] = m, t[16] = g) : g = t[16], g;
|
|
844
|
+
}, Ct = (e) => {
|
|
845
|
+
let t = h(28), { navigation: n, expanded: r, setExpanded: i } = e, a;
|
|
522
846
|
t[0] === Symbol.for("react.memo_cache_sentinel") ? (a = {
|
|
523
847
|
xs: "none",
|
|
524
848
|
sm: "block"
|
|
@@ -541,7 +865,7 @@ var pt = (e) => {
|
|
|
541
865
|
"& .MuiDrawer-paper": s
|
|
542
866
|
}, t[3] = o, t[4] = s, t[5] = c) : c = t[5];
|
|
543
867
|
let l = !r, u;
|
|
544
|
-
t[6] !== r || t[7] !== n || t[8] !== i || t[9] !== l ? (u = /* @__PURE__ */
|
|
868
|
+
t[6] !== r || t[7] !== n || t[8] !== i || t[9] !== l ? (u = /* @__PURE__ */ J(St, {
|
|
545
869
|
navigation: n,
|
|
546
870
|
collapsed: l,
|
|
547
871
|
expanded: r,
|
|
@@ -549,7 +873,7 @@ var pt = (e) => {
|
|
|
549
873
|
showPermanent: !0
|
|
550
874
|
}), t[6] = r, t[7] = n, t[8] = i, t[9] = l, t[10] = u) : u = t[10];
|
|
551
875
|
let d;
|
|
552
|
-
t[11] !== c || t[12] !== u ? (d = /* @__PURE__ */
|
|
876
|
+
t[11] !== c || t[12] !== u ? (d = /* @__PURE__ */ J(Ie, {
|
|
553
877
|
variant: "permanent",
|
|
554
878
|
sx: c,
|
|
555
879
|
children: u
|
|
@@ -564,382 +888,49 @@ var pt = (e) => {
|
|
|
564
888
|
},
|
|
565
889
|
"& .MuiDrawer-paper": { width: "min(280px, calc(100vw - 56px))" }
|
|
566
890
|
}, t[16] = p) : p = t[16];
|
|
567
|
-
let
|
|
568
|
-
t[17] !== r || t[18] !== n || t[19] !== i ? (
|
|
891
|
+
let m;
|
|
892
|
+
t[17] !== r || t[18] !== n || t[19] !== i ? (m = /* @__PURE__ */ J(St, {
|
|
569
893
|
navigation: n,
|
|
570
894
|
collapsed: !1,
|
|
571
895
|
expanded: r,
|
|
572
896
|
setExpanded: i,
|
|
573
897
|
showPermanent: !1
|
|
574
|
-
}), t[17] = r, t[18] = n, t[19] = i, t[20] =
|
|
898
|
+
}), t[17] = r, t[18] = n, t[19] = i, t[20] = m) : m = t[20];
|
|
575
899
|
let g;
|
|
576
|
-
t[21] !== r || t[22] !==
|
|
900
|
+
t[21] !== r || t[22] !== m || t[23] !== f ? (g = /* @__PURE__ */ J(Ie, {
|
|
577
901
|
open: r,
|
|
578
902
|
onClose: f,
|
|
579
903
|
sx: p,
|
|
580
|
-
children:
|
|
581
|
-
}), t[21] = r, t[22] =
|
|
904
|
+
children: m
|
|
905
|
+
}), t[21] = r, t[22] = m, t[23] = f, t[24] = g) : g = t[24];
|
|
582
906
|
let _;
|
|
583
|
-
return t[25] !== g || t[26] !== d ? (_ = /* @__PURE__ */
|
|
584
|
-
},
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
return e.headers.set("Authorization", `Bearer ${t}`), e;
|
|
588
|
-
});
|
|
589
|
-
var gt = Ue(Ge({
|
|
590
|
-
queryKey: [
|
|
591
|
-
"graph",
|
|
592
|
-
"me",
|
|
593
|
-
"photo"
|
|
594
|
-
],
|
|
595
|
-
schema: H.object({
|
|
596
|
-
id: H.string(),
|
|
597
|
-
photoUrl: H.string()
|
|
598
|
-
}),
|
|
599
|
-
queryFn: async () => {
|
|
600
|
-
let e = await ht.get("/me/photo/$value", { responseType: "arraybuffer" });
|
|
601
|
-
return [{
|
|
602
|
-
id: "me",
|
|
603
|
-
photoUrl: `data:image/jpeg;base64,${btoa(new Uint8Array(e.data).reduce((e, t) => e + String.fromCodePoint(t), ""))}`
|
|
604
|
-
}];
|
|
605
|
-
},
|
|
606
|
-
getKey: (e) => e.id,
|
|
607
|
-
queryClient: p,
|
|
608
|
-
staleTime: Infinity,
|
|
609
|
-
gcTime: Infinity
|
|
610
|
-
})), _t = () => {
|
|
611
|
-
let e = m(3), { data: t } = We(vt), n = t?.photoUrl, r;
|
|
612
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (r = {
|
|
613
|
-
width: {
|
|
614
|
-
xs: 32,
|
|
615
|
-
sm: 40
|
|
616
|
-
},
|
|
617
|
-
height: {
|
|
618
|
-
xs: 32,
|
|
619
|
-
sm: 40
|
|
620
|
-
}
|
|
621
|
-
}, e[0] = r) : r = e[0];
|
|
622
|
-
let i;
|
|
623
|
-
return e[1] === n ? i = e[2] : (i = /* @__PURE__ */ X(g, {
|
|
624
|
-
src: n,
|
|
625
|
-
sx: r
|
|
626
|
-
}), e[1] = n, e[2] = i), i;
|
|
627
|
-
};
|
|
628
|
-
function vt(e) {
|
|
629
|
-
return e.from({ todo: gt }).findOne();
|
|
630
|
-
}
|
|
631
|
-
//#endregion
|
|
632
|
-
//#region src/components/core/account/UserMenu.tsx
|
|
633
|
-
var yt = (e) => e && e.charAt(0).toUpperCase() + e.slice(1), bt = () => {
|
|
634
|
-
let e = m(143), [t, n] = q(), [r, i] = q("settings"), a = !!t, { t: o, i18n: s } = te(), { mode: c, setMode: l } = ee(), { instance: u } = le(), d;
|
|
635
|
-
e[0] === Symbol.for("react.memo_cache_sentinel") ? (d = { from: pe }, e[0] = d) : d = e[0];
|
|
636
|
-
let f = he(d).context.user, p, h, g, v, y, b, x;
|
|
637
|
-
if (e[1] !== s || e[2] !== c || e[3] !== l || e[4] !== o) {
|
|
638
|
-
let t = (Array.isArray(s.options.supportedLngs) ? s.options.supportedLngs : []).filter(xt), r = new Intl.DisplayNames([s.language], { type: "language" }), a;
|
|
639
|
-
e[12] === o ? a = e[13] : (a = o("Layout.Light"), e[12] = o, e[13] = a);
|
|
640
|
-
let u;
|
|
641
|
-
e[14] === a ? u = e[15] : (u = {
|
|
642
|
-
mode: "light",
|
|
643
|
-
icon: Re,
|
|
644
|
-
label: a
|
|
645
|
-
}, e[14] = a, e[15] = u);
|
|
646
|
-
let d;
|
|
647
|
-
e[16] === o ? d = e[17] : (d = o("Layout.Dark"), e[16] = o, e[17] = d);
|
|
648
|
-
let f;
|
|
649
|
-
e[18] === d ? f = e[19] : (f = {
|
|
650
|
-
mode: "dark",
|
|
651
|
-
icon: Ie,
|
|
652
|
-
label: d
|
|
653
|
-
}, e[18] = d, e[19] = f);
|
|
654
|
-
let m;
|
|
655
|
-
e[20] === o ? m = e[21] : (m = o("Layout.System"), e[20] = o, e[21] = m);
|
|
656
|
-
let _;
|
|
657
|
-
e[22] === m ? _ = e[23] : (_ = {
|
|
658
|
-
mode: "system",
|
|
659
|
-
icon: Ve,
|
|
660
|
-
label: m
|
|
661
|
-
}, e[22] = m, e[23] = _);
|
|
662
|
-
let C;
|
|
663
|
-
e[24] !== u || e[25] !== f || e[26] !== _ ? (C = [
|
|
664
|
-
u,
|
|
665
|
-
f,
|
|
666
|
-
_
|
|
667
|
-
], e[24] = u, e[25] = f, e[26] = _, e[27] = C) : C = e[27];
|
|
668
|
-
let T = C, A;
|
|
669
|
-
e[28] === Symbol.for("react.memo_cache_sentinel") ? (A = (e) => n(e.currentTarget), e[28] = A) : A = e[28], g = A;
|
|
670
|
-
let j;
|
|
671
|
-
e[29] === Symbol.for("react.memo_cache_sentinel") ? (j = () => {
|
|
672
|
-
n(void 0), setTimeout(() => i("settings"), 300);
|
|
673
|
-
}, e[29] = j) : j = e[29], h = j;
|
|
674
|
-
let M;
|
|
675
|
-
e[30] === Symbol.for("react.memo_cache_sentinel") ? (M = (e) => () => i(e), e[30] = M) : M = e[30];
|
|
676
|
-
let N = M, P;
|
|
677
|
-
e[31] === Symbol.for("react.memo_cache_sentinel") ? (P = { backgroundColor: "transparent" }, e[31] = P) : P = e[31];
|
|
678
|
-
let ee;
|
|
679
|
-
e[32] === o ? ee = e[33] : (ee = o("Layout.Settings"), e[32] = o, e[33] = ee);
|
|
680
|
-
let F;
|
|
681
|
-
e[34] === ee ? F = e[35] : (F = /* @__PURE__ */ X(k, {
|
|
682
|
-
sx: P,
|
|
683
|
-
children: ee
|
|
684
|
-
}), e[34] = ee, e[35] = F);
|
|
685
|
-
let I, L;
|
|
686
|
-
e[36] === Symbol.for("react.memo_cache_sentinel") ? (I = N("theme"), L = { py: .3 }, e[36] = I, e[37] = L) : (I = e[36], L = e[37]);
|
|
687
|
-
let R;
|
|
688
|
-
e[38] === Symbol.for("react.memo_cache_sentinel") ? (R = /* @__PURE__ */ X(D, { children: /* @__PURE__ */ X(Pe, {}) }), e[38] = R) : R = e[38];
|
|
689
|
-
let z;
|
|
690
|
-
e[39] === o ? z = e[40] : (z = o("Layout.Appearance"), e[39] = o, e[40] = z);
|
|
691
|
-
let B;
|
|
692
|
-
e[41] !== T || e[42] !== c || e[43] !== o ? (B = T.find((e) => e.mode === c)?.label ?? o("Layout.System"), e[41] = T, e[42] = c, e[43] = o, e[44] = B) : B = e[44];
|
|
693
|
-
let te;
|
|
694
|
-
e[45] !== z || e[46] !== B ? (te = /* @__PURE__ */ X(O, {
|
|
695
|
-
primary: z,
|
|
696
|
-
secondary: B
|
|
697
|
-
}), e[45] = z, e[46] = B, e[47] = te) : te = e[47];
|
|
698
|
-
let V;
|
|
699
|
-
e[48] === Symbol.for("react.memo_cache_sentinel") ? (V = /* @__PURE__ */ X(Fe, {}), e[48] = V) : V = e[48];
|
|
700
|
-
let H;
|
|
701
|
-
e[49] === te ? H = e[50] : (H = /* @__PURE__ */ Z(E, {
|
|
702
|
-
onClick: I,
|
|
703
|
-
sx: L,
|
|
704
|
-
children: [
|
|
705
|
-
R,
|
|
706
|
-
te,
|
|
707
|
-
V
|
|
708
|
-
]
|
|
709
|
-
}), e[49] = te, e[50] = H);
|
|
710
|
-
let U, ne;
|
|
711
|
-
e[51] === Symbol.for("react.memo_cache_sentinel") ? (U = N("language"), ne = { py: .3 }, e[51] = U, e[52] = ne) : (U = e[51], ne = e[52]);
|
|
712
|
-
let W;
|
|
713
|
-
e[53] === Symbol.for("react.memo_cache_sentinel") ? (W = /* @__PURE__ */ X(D, { children: /* @__PURE__ */ X(He, {}) }), e[53] = W) : W = e[53];
|
|
714
|
-
let G;
|
|
715
|
-
e[54] === o ? G = e[55] : (G = o("Layout.Language"), e[54] = o, e[55] = G);
|
|
716
|
-
let K;
|
|
717
|
-
e[56] === Symbol.for("react.memo_cache_sentinel") ? (K = /* @__PURE__ */ X(Fe, {}), e[56] = K) : K = e[56];
|
|
718
|
-
let q = /* @__PURE__ */ Z(E, {
|
|
719
|
-
onClick: U,
|
|
720
|
-
sx: ne,
|
|
721
|
-
children: [
|
|
722
|
-
W,
|
|
723
|
-
/* @__PURE__ */ X(O, {
|
|
724
|
-
primary: G,
|
|
725
|
-
secondary: yt(r.of(s.language))
|
|
726
|
-
}),
|
|
727
|
-
K
|
|
728
|
-
]
|
|
729
|
-
}), J;
|
|
730
|
-
e[57] !== F || e[58] !== H || e[59] !== q ? (J = /* @__PURE__ */ Z(w, {
|
|
731
|
-
component: "nav",
|
|
732
|
-
subheader: F,
|
|
733
|
-
children: [H, q]
|
|
734
|
-
}), e[57] = F, e[58] = H, e[59] = q, e[60] = J) : J = e[60], v = J;
|
|
735
|
-
let Y, re;
|
|
736
|
-
e[61] === Symbol.for("react.memo_cache_sentinel") ? (Y = N("settings"), re = {
|
|
737
|
-
backgroundColor: "transparent",
|
|
738
|
-
display: "flex",
|
|
739
|
-
alignItems: "center",
|
|
740
|
-
px: 1,
|
|
741
|
-
cursor: "pointer"
|
|
742
|
-
}, e[61] = Y, e[62] = re) : (Y = e[61], re = e[62]);
|
|
743
|
-
let ie;
|
|
744
|
-
e[63] === Symbol.for("react.memo_cache_sentinel") ? (ie = /* @__PURE__ */ X(S, {
|
|
745
|
-
size: "small",
|
|
746
|
-
sx: { mr: .5 },
|
|
747
|
-
children: /* @__PURE__ */ X(Ne, { fontSize: "small" })
|
|
748
|
-
}), e[63] = ie) : ie = e[63];
|
|
749
|
-
let Q;
|
|
750
|
-
e[64] === o ? Q = e[65] : (Q = o("Layout.Appearance"), e[64] = o, e[65] = Q);
|
|
751
|
-
let $;
|
|
752
|
-
e[66] === Q ? $ = e[67] : ($ = /* @__PURE__ */ Z(k, {
|
|
753
|
-
onClick: Y,
|
|
754
|
-
sx: re,
|
|
755
|
-
children: [
|
|
756
|
-
ie,
|
|
757
|
-
" ",
|
|
758
|
-
Q
|
|
759
|
-
]
|
|
760
|
-
}), e[66] = Q, e[67] = $);
|
|
761
|
-
let ae;
|
|
762
|
-
e[68] !== T || e[69] !== c || e[70] !== l ? (ae = T.map((e) => {
|
|
763
|
-
let { mode: t, icon: n, label: r } = e;
|
|
764
|
-
return /* @__PURE__ */ Z(E, {
|
|
765
|
-
onClick: () => {
|
|
766
|
-
l(t), h();
|
|
767
|
-
},
|
|
768
|
-
selected: c === t,
|
|
769
|
-
children: [/* @__PURE__ */ X(D, { children: /* @__PURE__ */ X(n, {}) }), /* @__PURE__ */ X(O, { primary: r })]
|
|
770
|
-
}, t);
|
|
771
|
-
}), e[68] = T, e[69] = c, e[70] = l, e[71] = ae) : ae = e[71];
|
|
772
|
-
let oe;
|
|
773
|
-
e[72] !== $ || e[73] !== ae ? (oe = /* @__PURE__ */ X(w, {
|
|
774
|
-
subheader: $,
|
|
775
|
-
children: ae
|
|
776
|
-
}), e[72] = $, e[73] = ae, e[74] = oe) : oe = e[74], x = oe, p = w;
|
|
777
|
-
let se, ce;
|
|
778
|
-
e[75] === Symbol.for("react.memo_cache_sentinel") ? (se = N("settings"), ce = {
|
|
779
|
-
backgroundColor: "transparent",
|
|
780
|
-
display: "flex",
|
|
781
|
-
alignItems: "center",
|
|
782
|
-
px: 1,
|
|
783
|
-
cursor: "pointer"
|
|
784
|
-
}, e[75] = se, e[76] = ce) : (se = e[75], ce = e[76]);
|
|
785
|
-
let le;
|
|
786
|
-
e[77] === Symbol.for("react.memo_cache_sentinel") ? (le = /* @__PURE__ */ X(S, {
|
|
787
|
-
size: "small",
|
|
788
|
-
sx: { mr: .5 },
|
|
789
|
-
children: /* @__PURE__ */ X(Ne, { fontSize: "small" })
|
|
790
|
-
}), e[77] = le) : le = e[77];
|
|
791
|
-
let ue;
|
|
792
|
-
e[78] === o ? ue = e[79] : (ue = o("Layout.Language"), e[78] = o, e[79] = ue), e[80] === ue ? y = e[81] : (y = /* @__PURE__ */ Z(k, {
|
|
793
|
-
onClick: se,
|
|
794
|
-
sx: ce,
|
|
795
|
-
children: [
|
|
796
|
-
le,
|
|
797
|
-
" ",
|
|
798
|
-
ue
|
|
799
|
-
]
|
|
800
|
-
}), e[80] = ue, e[81] = y), b = t.map((e) => /* @__PURE__ */ Z(E, {
|
|
801
|
-
onClick: () => s.changeLanguage(e).finally(() => h()),
|
|
802
|
-
selected: s.resolvedLanguage === e,
|
|
803
|
-
children: [/* @__PURE__ */ X(D, { children: s.resolvedLanguage === e && /* @__PURE__ */ X(Le, {}) }), /* @__PURE__ */ X(O, { primary: yt(r.of(e)) })]
|
|
804
|
-
}, e)), e[1] = s, e[2] = c, e[3] = l, e[4] = o, e[5] = p, e[6] = h, e[7] = g, e[8] = v, e[9] = y, e[10] = b, e[11] = x;
|
|
805
|
-
} else p = e[5], h = e[6], g = e[7], v = e[8], y = e[9], b = e[10], x = e[11];
|
|
806
|
-
let C;
|
|
807
|
-
e[82] !== p || e[83] !== y || e[84] !== b ? (C = /* @__PURE__ */ X(p, {
|
|
808
|
-
subheader: y,
|
|
809
|
-
children: b
|
|
810
|
-
}), e[82] = p, e[83] = y, e[84] = b, e[85] = C) : C = e[85];
|
|
811
|
-
let j = C, M;
|
|
812
|
-
e[86] === Symbol.for("react.memo_cache_sentinel") ? (M = /* @__PURE__ */ X(ae, { children: /* @__PURE__ */ X(_t, {}) }), e[86] = M) : M = e[86];
|
|
813
|
-
let N;
|
|
814
|
-
e[87] === Symbol.for("react.memo_cache_sentinel") ? (N = /* @__PURE__ */ X(se, { children: /* @__PURE__ */ X(Me, { sx: {
|
|
815
|
-
width: {
|
|
816
|
-
xs: 32,
|
|
817
|
-
sm: 40
|
|
818
|
-
},
|
|
819
|
-
height: {
|
|
820
|
-
xs: 32,
|
|
821
|
-
sm: 40
|
|
822
|
-
}
|
|
823
|
-
} }) }), e[87] = N) : N = e[87];
|
|
824
|
-
let P;
|
|
825
|
-
e[88] === g ? P = e[89] : (P = /* @__PURE__ */ Z(S, {
|
|
826
|
-
size: "small",
|
|
827
|
-
edge: "end",
|
|
828
|
-
onClick: g,
|
|
829
|
-
children: [M, N]
|
|
830
|
-
}), e[88] = g, e[89] = P);
|
|
831
|
-
let F;
|
|
832
|
-
e[90] === Symbol.for("react.memo_cache_sentinel") ? (F = { width: 240 }, e[90] = F) : F = e[90];
|
|
833
|
-
let I = f?.name, L;
|
|
834
|
-
e[91] === f ? L = e[92] : (L = f?.employeeId && /* @__PURE__ */ X("span", { children: f.employeeId }), e[91] = f, e[92] = L);
|
|
835
|
-
let R;
|
|
836
|
-
e[93] === f?.employeeId ? R = e[94] : (R = f?.employeeId && /* @__PURE__ */ X("br", {}), e[93] = f?.employeeId, e[94] = R);
|
|
837
|
-
let z;
|
|
838
|
-
e[95] === f ? z = e[96] : (z = f?.department && /* @__PURE__ */ X("span", { children: f.department }), e[95] = f, e[96] = z);
|
|
839
|
-
let B;
|
|
840
|
-
e[97] !== R || e[98] !== z || e[99] !== L ? (B = /* @__PURE__ */ Z("span", { children: [
|
|
841
|
-
L,
|
|
842
|
-
R,
|
|
843
|
-
z
|
|
844
|
-
] }), e[97] = R, e[98] = z, e[99] = L, e[100] = B) : B = e[100];
|
|
845
|
-
let V;
|
|
846
|
-
e[101] !== B || e[102] !== I ? (V = /* @__PURE__ */ X(T, { children: /* @__PURE__ */ X(O, {
|
|
847
|
-
primary: I,
|
|
848
|
-
secondary: B
|
|
849
|
-
}) }), e[101] = B, e[102] = I, e[103] = V) : V = e[103];
|
|
850
|
-
let H;
|
|
851
|
-
e[104] === u ? H = e[105] : (H = () => u.logoutRedirect({ postLogoutRedirectUri: "/" }), e[104] = u, e[105] = H);
|
|
852
|
-
let U;
|
|
853
|
-
e[106] === Symbol.for("react.memo_cache_sentinel") ? (U = /* @__PURE__ */ X(D, { children: /* @__PURE__ */ X(Be, { color: "error" }) }), e[106] = U) : U = e[106];
|
|
854
|
-
let W;
|
|
855
|
-
e[107] === o ? W = e[108] : (W = o("Layout.Logout"), e[107] = o, e[108] = W);
|
|
856
|
-
let G;
|
|
857
|
-
e[109] === W ? G = e[110] : (G = /* @__PURE__ */ X(O, { primary: W }), e[109] = W, e[110] = G);
|
|
858
|
-
let K;
|
|
859
|
-
e[111] !== H || e[112] !== G ? (K = /* @__PURE__ */ Z(E, {
|
|
860
|
-
onClick: H,
|
|
861
|
-
children: [U, G]
|
|
862
|
-
}), e[111] = H, e[112] = G, e[113] = K) : K = e[113];
|
|
863
|
-
let J;
|
|
864
|
-
e[114] !== V || e[115] !== K ? (J = /* @__PURE__ */ Z(ae, { children: [V, K] }), e[114] = V, e[115] = K, e[116] = J) : J = e[116];
|
|
865
|
-
let Y;
|
|
866
|
-
e[117] === u ? Y = e[118] : (Y = () => u.loginRedirect(), e[117] = u, e[118] = Y);
|
|
867
|
-
let re;
|
|
868
|
-
e[119] === Symbol.for("react.memo_cache_sentinel") ? (re = /* @__PURE__ */ X(D, { children: /* @__PURE__ */ X(ze, { color: "success" }) }), e[119] = re) : re = e[119];
|
|
869
|
-
let ie;
|
|
870
|
-
e[120] === o ? ie = e[121] : (ie = o("Layout.LogIn"), e[120] = o, e[121] = ie);
|
|
871
|
-
let Q;
|
|
872
|
-
e[122] === ie ? Q = e[123] : (Q = /* @__PURE__ */ X(O, { primary: ie }), e[122] = ie, e[123] = Q);
|
|
873
|
-
let $;
|
|
874
|
-
e[124] !== Y || e[125] !== Q ? ($ = /* @__PURE__ */ X(se, { children: /* @__PURE__ */ Z(E, {
|
|
875
|
-
onClick: Y,
|
|
876
|
-
children: [re, Q]
|
|
877
|
-
}) }), e[124] = Y, e[125] = Q, e[126] = $) : $ = e[126];
|
|
878
|
-
let oe;
|
|
879
|
-
e[127] !== J || e[128] !== $ ? (oe = /* @__PURE__ */ Z(w, {
|
|
880
|
-
disablePadding: !0,
|
|
881
|
-
children: [J, $]
|
|
882
|
-
}), e[127] = J, e[128] = $, e[129] = oe) : oe = e[129];
|
|
883
|
-
let ce = r === "settings" && v, ue = r === "theme" && x, de = r === "language" && j, fe;
|
|
884
|
-
e[130] !== oe || e[131] !== ce || e[132] !== ue || e[133] !== de ? (fe = /* @__PURE__ */ Z(_, {
|
|
885
|
-
sx: F,
|
|
886
|
-
children: [
|
|
887
|
-
oe,
|
|
888
|
-
ce,
|
|
889
|
-
ue,
|
|
890
|
-
de
|
|
891
|
-
]
|
|
892
|
-
}), e[130] = oe, e[131] = ce, e[132] = ue, e[133] = de, e[134] = fe) : fe = e[134];
|
|
893
|
-
let me;
|
|
894
|
-
e[135] !== t || e[136] !== h || e[137] !== a || e[138] !== fe ? (me = /* @__PURE__ */ X(A, {
|
|
895
|
-
anchorEl: t,
|
|
896
|
-
open: a,
|
|
897
|
-
onClose: h,
|
|
898
|
-
children: fe
|
|
899
|
-
}), e[135] = t, e[136] = h, e[137] = a, e[138] = fe, e[139] = me) : me = e[139];
|
|
900
|
-
let ge;
|
|
901
|
-
return e[140] !== me || e[141] !== P ? (ge = /* @__PURE__ */ Z(ne, { children: [P, me] }), e[140] = me, e[141] = P, e[142] = ge) : ge = e[142], ge;
|
|
902
|
-
};
|
|
903
|
-
function xt(e) {
|
|
904
|
-
return e !== "cimode";
|
|
905
|
-
}
|
|
906
|
-
//#endregion
|
|
907
|
-
//#region src/components/core/Layout.tsx
|
|
908
|
-
var St = "navigation-open", Ct = () => n.isWindows || n.isMacOS ? localStorage.getItem(St) === "true" : !1, wt = (e) => {
|
|
909
|
-
(n.isWindows || n.isMacOS) && localStorage.setItem(St, String(e));
|
|
910
|
-
}, Tt = fe("div")(({ theme: e }) => ({
|
|
907
|
+
return t[25] !== g || t[26] !== d ? (_ = /* @__PURE__ */ Y(ie, { children: [d, g] }), t[25] = g, t[26] = d, t[27] = _) : _ = t[27], _;
|
|
908
|
+
}, wt = "navigation-open", Tt = () => u.isWindows || u.isMacOS ? localStorage.getItem(wt) === "true" : !1, Et = (e) => {
|
|
909
|
+
(u.isWindows || u.isMacOS) && localStorage.setItem(wt, String(e));
|
|
910
|
+
}, Dt = me("div")(({ theme: e }) => ({
|
|
911
911
|
display: "flex",
|
|
912
912
|
alignItems: "center",
|
|
913
913
|
justifyContent: "flex-end",
|
|
914
914
|
padding: e.spacing(0, 1),
|
|
915
915
|
...e.mixins.toolbar
|
|
916
|
-
})),
|
|
917
|
-
let t =
|
|
918
|
-
if (t[0] !==
|
|
919
|
-
let e =
|
|
920
|
-
|
|
921
|
-
} else
|
|
922
|
-
let
|
|
923
|
-
t[
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
l,
|
|
927
|
-
c,
|
|
928
|
-
p,
|
|
929
|
-
s
|
|
930
|
-
], t[5] = c, t[6] = s, t[7] = l, t[8] = p, t[9] = g, t[10] = v) : (g = t[9], v = t[10]), W(g, v);
|
|
931
|
-
let y, x;
|
|
932
|
-
t[11] === Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ X(C, {}), x = /* @__PURE__ */ X(b, {}), t[11] = y, t[12] = x) : (y = t[11], x = t[12]);
|
|
933
|
-
let w;
|
|
934
|
-
t[13] === Symbol.for("react.memo_cache_sentinel") ? (w = {
|
|
916
|
+
})), Ot = (e) => {
|
|
917
|
+
let t = h(30), { navigation: n, options: r, children: i } = e, [a, o] = K(Tt), s = ve(), c;
|
|
918
|
+
if (t[0] !== s || t[1] !== r?.publicRoutes) {
|
|
919
|
+
let e = s.at(-1)?.fullPath;
|
|
920
|
+
c = r?.publicRoutes?.includes(e) ?? !1, t[0] = s, t[1] = r?.publicRoutes, t[2] = c;
|
|
921
|
+
} else c = t[2];
|
|
922
|
+
let l = c, u = r?.showShell ?? !0, d, f;
|
|
923
|
+
t[3] === Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ J(w, {}), f = /* @__PURE__ */ J(x, {}), t[3] = d, t[4] = f) : (d = t[3], f = t[4]);
|
|
924
|
+
let p;
|
|
925
|
+
t[5] === Symbol.for("react.memo_cache_sentinel") ? (p = {
|
|
935
926
|
display: "flex",
|
|
936
927
|
height: "100dvh",
|
|
937
928
|
maxHeight: "100dvh",
|
|
938
929
|
overflow: "hidden",
|
|
939
930
|
width: "100%"
|
|
940
|
-
}, t[
|
|
941
|
-
let
|
|
942
|
-
t[
|
|
931
|
+
}, t[5] = p) : p = t[5];
|
|
932
|
+
let m;
|
|
933
|
+
t[6] !== n || t[7] !== a || t[8] !== u ? (m = u && /* @__PURE__ */ J(g, {
|
|
943
934
|
color: "transparent",
|
|
944
935
|
position: "fixed",
|
|
945
936
|
sx: {
|
|
@@ -947,163 +938,168 @@ var St = "navigation-open", Ct = () => n.isWindows || n.isMacOS ? localStorage.g
|
|
|
947
938
|
borderColor: "var(--mui-palette-divider)",
|
|
948
939
|
boxShadow: "none"
|
|
949
940
|
},
|
|
950
|
-
children: /* @__PURE__ */
|
|
951
|
-
n && /* @__PURE__ */
|
|
941
|
+
children: /* @__PURE__ */ Y(M, { children: [
|
|
942
|
+
n && /* @__PURE__ */ J(C, {
|
|
952
943
|
onClick: () => {
|
|
953
|
-
o(
|
|
944
|
+
o(kt);
|
|
954
945
|
},
|
|
955
946
|
sx: { marginRight: 2 },
|
|
956
|
-
children:
|
|
947
|
+
children: J(a ? pe : fe, {})
|
|
957
948
|
}),
|
|
958
|
-
/* @__PURE__ */
|
|
959
|
-
/* @__PURE__ */
|
|
949
|
+
/* @__PURE__ */ J(st, {}),
|
|
950
|
+
/* @__PURE__ */ J(rt, {})
|
|
960
951
|
] })
|
|
961
|
-
}), t[
|
|
962
|
-
let
|
|
963
|
-
t[
|
|
952
|
+
}), t[6] = n, t[7] = a, t[8] = u, t[9] = m) : m = t[9];
|
|
953
|
+
let _;
|
|
954
|
+
t[10] !== n || t[11] !== a || t[12] !== u ? (_ = n && u && /* @__PURE__ */ J(Ct, {
|
|
964
955
|
navigation: n,
|
|
965
956
|
expanded: a,
|
|
966
957
|
setExpanded: (e) => {
|
|
967
|
-
o(e),
|
|
958
|
+
o(e), Et(e);
|
|
968
959
|
}
|
|
969
|
-
}), t[
|
|
970
|
-
let
|
|
971
|
-
t[
|
|
960
|
+
}), t[10] = n, t[11] = a, t[12] = u, t[13] = _) : _ = t[13];
|
|
961
|
+
let y;
|
|
962
|
+
t[14] === Symbol.for("react.memo_cache_sentinel") ? (y = {
|
|
972
963
|
flexGrow: 1,
|
|
973
964
|
display: "flex",
|
|
974
965
|
flexDirection: "column",
|
|
975
966
|
minWidth: 0,
|
|
976
967
|
height: "100%",
|
|
977
968
|
overflow: "hidden"
|
|
978
|
-
}, t[
|
|
979
|
-
let
|
|
980
|
-
t[
|
|
981
|
-
let
|
|
982
|
-
t[
|
|
969
|
+
}, t[14] = y) : y = t[14];
|
|
970
|
+
let b;
|
|
971
|
+
t[15] === u ? b = t[16] : (b = u && /* @__PURE__ */ J(Dt, {}), t[15] = u, t[16] = b);
|
|
972
|
+
let S;
|
|
973
|
+
t[17] === Symbol.for("react.memo_cache_sentinel") ? (S = {
|
|
983
974
|
flex: 1,
|
|
984
975
|
overflow: "auto",
|
|
985
976
|
position: "relative"
|
|
986
|
-
}, t[
|
|
987
|
-
let
|
|
988
|
-
t[
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
977
|
+
}, t[17] = S) : S = t[17];
|
|
978
|
+
let T;
|
|
979
|
+
t[18] !== i || t[19] !== l ? (T = l ? i : /* @__PURE__ */ J(ce, {
|
|
980
|
+
interactionType: oe.Redirect,
|
|
981
|
+
children: i
|
|
982
|
+
}), t[18] = i, t[19] = l, t[20] = T) : T = t[20];
|
|
983
|
+
let E;
|
|
984
|
+
t[21] === T ? E = t[22] : (E = /* @__PURE__ */ J(v, {
|
|
985
|
+
sx: S,
|
|
986
|
+
children: T
|
|
987
|
+
}), t[21] = T, t[22] = E);
|
|
988
|
+
let D;
|
|
989
|
+
t[23] !== E || t[24] !== b ? (D = /* @__PURE__ */ Y(v, {
|
|
996
990
|
component: "main",
|
|
997
|
-
sx:
|
|
998
|
-
children: [
|
|
999
|
-
}), t[
|
|
1000
|
-
let
|
|
1001
|
-
return t[
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
/* @__PURE__ */
|
|
1005
|
-
sx:
|
|
991
|
+
sx: y,
|
|
992
|
+
children: [b, E]
|
|
993
|
+
}), t[23] = E, t[24] = b, t[25] = D) : D = t[25];
|
|
994
|
+
let O;
|
|
995
|
+
return t[26] !== D || t[27] !== m || t[28] !== _ ? (O = /* @__PURE__ */ Y(ie, { children: [
|
|
996
|
+
d,
|
|
997
|
+
f,
|
|
998
|
+
/* @__PURE__ */ Y(v, {
|
|
999
|
+
sx: p,
|
|
1006
1000
|
children: [
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1001
|
+
m,
|
|
1002
|
+
_,
|
|
1003
|
+
D
|
|
1010
1004
|
]
|
|
1011
1005
|
})
|
|
1012
|
-
] }), t[
|
|
1006
|
+
] }), t[26] = D, t[27] = m, t[28] = _, t[29] = O) : O = t[29], O;
|
|
1013
1007
|
};
|
|
1014
|
-
function
|
|
1008
|
+
function kt(e) {
|
|
1015
1009
|
let t = !e;
|
|
1016
|
-
return
|
|
1010
|
+
return Et(t), t;
|
|
1017
1011
|
}
|
|
1018
1012
|
//#endregion
|
|
1019
1013
|
//#region src/providers/MsalAuthProvider.tsx
|
|
1020
|
-
var
|
|
1021
|
-
let e =
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1014
|
+
var At = () => {
|
|
1015
|
+
let e = h(16), { accounts: t, inProgress: n, instance: a } = de(), o = be(), [c, l] = K(null), u = G(n), d = ye();
|
|
1016
|
+
r.setNavigationClient(new i(d));
|
|
1017
|
+
let f, p;
|
|
1018
|
+
e[0] !== a || e[1] !== o ? (f = () => {
|
|
1019
|
+
let e = a.addEventCallback((e) => {
|
|
1020
|
+
(e.eventType === Q.LOGIN_SUCCESS || e.eventType === Q.ACQUIRE_TOKEN_SUCCESS || e.eventType === Q.LOGOUT_SUCCESS) && o.invalidate();
|
|
1025
1021
|
});
|
|
1026
1022
|
return () => {
|
|
1027
|
-
e &&
|
|
1023
|
+
e && a.removeEventCallback(e);
|
|
1028
1024
|
};
|
|
1029
|
-
},
|
|
1030
|
-
let
|
|
1031
|
-
e[4] !== n || e[5] !==
|
|
1032
|
-
let e =
|
|
1033
|
-
|
|
1034
|
-
},
|
|
1035
|
-
let
|
|
1036
|
-
e[8] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1037
|
-
let
|
|
1038
|
-
return e[10] !== t || e[11] !== n || e[12] !==
|
|
1039
|
-
if (!
|
|
1040
|
-
let e =
|
|
1041
|
-
e && (
|
|
1042
|
-
scopes:
|
|
1025
|
+
}, p = [a, o], e[0] = a, e[1] = o, e[2] = f, e[3] = p) : (f = e[2], p = e[3]), U(f, p);
|
|
1026
|
+
let m, g;
|
|
1027
|
+
e[4] !== n || e[5] !== o ? (m = () => {
|
|
1028
|
+
let e = u.current !== $.None;
|
|
1029
|
+
u.current = n, e && n === $.None && o.invalidate();
|
|
1030
|
+
}, g = [n, o], e[4] = n, e[5] = o, e[6] = m, e[7] = g) : (m = e[6], g = e[7]), U(m, g);
|
|
1031
|
+
let _, v;
|
|
1032
|
+
e[8] === Symbol.for("react.memo_cache_sentinel") ? (_ = () => s(l), v = [], e[8] = _, e[9] = v) : (_ = e[8], v = e[9]), U(_, v);
|
|
1033
|
+
let y, b;
|
|
1034
|
+
return e[10] !== t || e[11] !== n || e[12] !== a || e[13] !== c ? (y = () => {
|
|
1035
|
+
if (!c || n !== $.None) return;
|
|
1036
|
+
let e = a.getActiveAccount() ?? t[0];
|
|
1037
|
+
e && (l(null), a.acquireTokenRedirect({
|
|
1038
|
+
scopes: c,
|
|
1043
1039
|
account: e
|
|
1044
|
-
}).catch(
|
|
1045
|
-
},
|
|
1040
|
+
}).catch(Mt));
|
|
1041
|
+
}, b = [
|
|
1046
1042
|
t,
|
|
1047
1043
|
n,
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
], e[10] = t, e[11] = n, e[12] =
|
|
1051
|
-
},
|
|
1052
|
-
let t =
|
|
1053
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (
|
|
1054
|
-
let
|
|
1055
|
-
return t[1] === n ?
|
|
1056
|
-
instance:
|
|
1057
|
-
children: [
|
|
1058
|
-
}), t[1] = n, t[2] =
|
|
1044
|
+
a,
|
|
1045
|
+
c
|
|
1046
|
+
], e[10] = t, e[11] = n, e[12] = a, e[13] = c, e[14] = y, e[15] = b) : (y = e[14], b = e[15]), U(y, b), null;
|
|
1047
|
+
}, jt = (e) => {
|
|
1048
|
+
let t = h(3), { children: n } = e, i;
|
|
1049
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (i = /* @__PURE__ */ J(At, {}), t[0] = i) : i = t[0];
|
|
1050
|
+
let a;
|
|
1051
|
+
return t[1] === n ? a = t[2] : (a = /* @__PURE__ */ Y(le, {
|
|
1052
|
+
instance: r,
|
|
1053
|
+
children: [i, n]
|
|
1054
|
+
}), t[1] = n, t[2] = a), a;
|
|
1059
1055
|
};
|
|
1060
|
-
function
|
|
1056
|
+
function Mt() {}
|
|
1061
1057
|
//#endregion
|
|
1062
1058
|
//#region src/providers/LayoutProvider.tsx
|
|
1063
|
-
var
|
|
1064
|
-
|
|
1059
|
+
var Nt = 1440 * 365, Pt = (e) => {
|
|
1060
|
+
H.config(H.core.locales[e]()), ne.locale(e);
|
|
1065
1061
|
};
|
|
1066
|
-
await
|
|
1067
|
-
resources:
|
|
1062
|
+
await L.use(R).use(z).init({
|
|
1063
|
+
resources: B,
|
|
1068
1064
|
fallbackLng: "en",
|
|
1069
|
-
supportedLngs: Object.keys(
|
|
1065
|
+
supportedLngs: Object.keys(B),
|
|
1070
1066
|
detection: {
|
|
1071
1067
|
caches: ["cookie"],
|
|
1072
|
-
cookieMinutes:
|
|
1068
|
+
cookieMinutes: Nt
|
|
1073
1069
|
},
|
|
1074
1070
|
interpolation: { escapeValue: !1 },
|
|
1075
1071
|
showSupportNotice: !1
|
|
1076
|
-
}),
|
|
1077
|
-
|
|
1072
|
+
}), Pt(L.resolvedLanguage ?? L.language), L.on("languageChanged", (e) => {
|
|
1073
|
+
Pt(e);
|
|
1078
1074
|
});
|
|
1079
|
-
var
|
|
1080
|
-
let t =
|
|
1081
|
-
t[0] === Symbol.for("react.memo_cache_sentinel") ? (o = [], t[0] = o) : o = t[0],
|
|
1075
|
+
var Ft = (e) => {
|
|
1076
|
+
let t = h(11), { options: n, navigation: r, theme: i, children: a } = e, o;
|
|
1077
|
+
t[0] === Symbol.for("react.memo_cache_sentinel") ? (o = [], t[0] = o) : o = t[0], U(It, o);
|
|
1082
1078
|
let s = n?.snackbarOrigin, c;
|
|
1083
|
-
t[1] !== a || t[2] !== r || t[3] !== n ? (c = /* @__PURE__ */
|
|
1079
|
+
t[1] !== a || t[2] !== r || t[3] !== n ? (c = /* @__PURE__ */ J(Ye, { children: /* @__PURE__ */ J(jt, { children: /* @__PURE__ */ J(Ot, {
|
|
1084
1080
|
navigation: r,
|
|
1085
1081
|
options: n,
|
|
1086
1082
|
children: a
|
|
1087
1083
|
}) }) }), t[1] = a, t[2] = r, t[3] = n, t[4] = c) : c = t[4];
|
|
1088
1084
|
let l;
|
|
1089
|
-
t[5] !== s || t[6] !== c ? (l = /* @__PURE__ */
|
|
1085
|
+
t[5] !== s || t[6] !== c ? (l = /* @__PURE__ */ J(F, {
|
|
1090
1086
|
dateAdapter: I,
|
|
1091
|
-
adapterLocale:
|
|
1092
|
-
children: /* @__PURE__ */
|
|
1087
|
+
adapterLocale: L.language,
|
|
1088
|
+
children: /* @__PURE__ */ J(Ze, {
|
|
1093
1089
|
snackbarOrigin: s,
|
|
1094
1090
|
children: c
|
|
1095
1091
|
})
|
|
1096
|
-
},
|
|
1092
|
+
}, L.language), t[5] = s, t[6] = c, t[7] = l) : l = t[7];
|
|
1097
1093
|
let u;
|
|
1098
|
-
return t[8] !== l || t[9] !== i ? (u = /* @__PURE__ */
|
|
1094
|
+
return t[8] !== l || t[9] !== i ? (u = /* @__PURE__ */ J(j, {
|
|
1099
1095
|
theme: i,
|
|
1100
1096
|
children: l
|
|
1101
1097
|
}), t[8] = l, t[9] = i, t[10] = u) : u = t[10], u;
|
|
1102
1098
|
};
|
|
1103
|
-
function
|
|
1099
|
+
function It() {
|
|
1104
1100
|
"serviceWorker" in navigator && navigator.serviceWorker.register("/sw.js");
|
|
1105
1101
|
}
|
|
1106
1102
|
//#endregion
|
|
1107
|
-
export {
|
|
1103
|
+
export { Ft as LayoutProvider, o as WISTRON_PRIMARY_COLOR, c as WISTRON_SECONDARY_COLOR, n as getUser, l as rootRouteHead };
|
|
1108
1104
|
|
|
1109
1105
|
//# sourceMappingURL=index.js.map
|