wcz-test 6.26.0 → 6.27.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/DialogsContext-2Yy6yhzQ.js +6 -0
- package/dist/DialogsContext-2Yy6yhzQ.js.map +1 -0
- package/dist/{DialogsHooks-Dz4ExWPV.js → DialogsHooks-DzqOb2Zx.js} +47 -46
- package/dist/{DialogsHooks-Dz4ExWPV.js.map → DialogsHooks-DzqOb2Zx.js.map} +1 -1
- package/dist/{FileHooks-T3wXKu_b.js → FileHooks-C8Akmy_o.js} +21 -22
- package/dist/{FileHooks-T3wXKu_b.js.map → FileHooks-C8Akmy_o.js.map} +1 -1
- package/dist/RouterListItemButton-B6kAS_RK.js +640 -0
- package/dist/RouterListItemButton-B6kAS_RK.js.map +1 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +9 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js.map +1 -0
- package/dist/components.js +6 -6
- package/dist/hooks.js +3 -3
- package/dist/index.d.ts +0 -3
- package/dist/index.js +599 -969
- package/dist/index.js.map +1 -1
- package/dist/queries.js +111 -113
- package/dist/queries.js.map +1 -1
- package/dist/utils-IWcYo8tM.js +106 -0
- package/dist/utils-IWcYo8tM.js.map +1 -0
- package/dist/utils.js +5 -5
- package/package.json +8 -13
- package/dist/DialogsContext-8xfQ3X-k.js +0 -285
- package/dist/DialogsContext-8xfQ3X-k.js.map +0 -1
- package/dist/RouterListItemButton-Dmqima3h.js +0 -661
- package/dist/RouterListItemButton-Dmqima3h.js.map +0 -1
- package/dist/_commonjsHelpers-ByX85dGu.js +0 -34
- package/dist/_commonjsHelpers-ByX85dGu.js.map +0 -1
- package/dist/env-BD4Wc07c.js +0 -76
- package/dist/env-BD4Wc07c.js.map +0 -1
- package/dist/i18next-Bx3TmZAT.js +0 -1337
- package/dist/i18next-Bx3TmZAT.js.map +0 -1
- package/dist/queryClient--EvGPhnh.js +0 -6
- package/dist/queryClient--EvGPhnh.js.map +0 -1
- package/dist/server.d.ts +0 -11
- package/dist/server.js +0 -98
- package/dist/server.js.map +0 -1
- package/dist/session-BCQDwl6n.js +0 -8581
- package/dist/session-BCQDwl6n.js.map +0 -1
- package/dist/utils-A7xW24zq.js +0 -1850
- package/dist/utils-A7xW24zq.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,124 +1,123 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import { c as
|
|
3
|
-
import { Stack as
|
|
4
|
-
import {
|
|
5
|
-
import { getCookie as
|
|
1
|
+
import { jsx as i, jsxs as L, Fragment as ht } from "react/jsx-runtime";
|
|
2
|
+
import { c as B } from "react/compiler-runtime";
|
|
3
|
+
import { Stack as pt, Typography as gt, Chip as yt, Collapse as Tt, useMediaQuery as xt, useColorScheme as bt, ListItemButton as ie, ListItemText as se, ListItemIcon as ae, ListSubheader as Re, List as Pe, IconButton as Ee, ListItem as St, Box as Ae, Menu as Mt, InitColorSchemeScript as kt, CssBaseline as Lt, AppBar as Dt, Toolbar as _t, LinearProgress as vt, ThemeProvider as Ot } from "@mui/material";
|
|
4
|
+
import { createIsomorphicFn as Ct, createServerFn as wt } from "@tanstack/react-start";
|
|
5
|
+
import { getCookie as at } from "@tanstack/react-start/server";
|
|
6
6
|
import C from "dayjs";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import {
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import {
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import {
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
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
|
-
|
|
53
|
-
|
|
54
|
-
return Ue = Object.assign ? Object.assign.bind() : function(t) {
|
|
7
|
+
import R from "i18next";
|
|
8
|
+
import It from "i18next-browser-languagedetector";
|
|
9
|
+
import * as U from "react";
|
|
10
|
+
import { useState as V, useId as Pt, useRef as Ke, Fragment as Ye, useEffect as lt, Suspense as Et, useEffectEvent as At } from "react";
|
|
11
|
+
import { useTranslation as jt, initReactI18next as zt } from "react-i18next";
|
|
12
|
+
import { resources as Je } from "virtual:wcz-layout";
|
|
13
|
+
import ze from "zod";
|
|
14
|
+
import { D as Nt } from "./DialogsContext-2Yy6yhzQ.js";
|
|
15
|
+
import $t from "@mui/icons-material/Menu";
|
|
16
|
+
import Yt from "@mui/icons-material/MenuOpen";
|
|
17
|
+
import { useThemeProps as Wt, styled as Ze, useTheme as Ut } from "@mui/material/styles";
|
|
18
|
+
import { useIsFetching as Ft, useIsMutating as Rt } from "@tanstack/react-query";
|
|
19
|
+
import { c as Bt } from "./utils-IWcYo8tM.js";
|
|
20
|
+
import { W as Vo, a as Go, r as Xo } from "./utils-IWcYo8tM.js";
|
|
21
|
+
import ct from "@mui/material/Box";
|
|
22
|
+
import Qe from "@mui/material/Drawer";
|
|
23
|
+
import { useNavigate as Ht, useRouterState as Vt } from "@tanstack/react-router";
|
|
24
|
+
import Gt from "@mui/material/Divider";
|
|
25
|
+
import Xt from "@mui/material/List";
|
|
26
|
+
import Zt from "@mui/material/ListSubheader";
|
|
27
|
+
import qt from "@mui/icons-material/ExpandMore";
|
|
28
|
+
import Kt from "@mui/material/Avatar";
|
|
29
|
+
import Jt from "@mui/material/ListItem";
|
|
30
|
+
import Qt from "@mui/material/ListItemButton";
|
|
31
|
+
import en from "@mui/material/ListItemIcon";
|
|
32
|
+
import tn from "@mui/material/ListItemText";
|
|
33
|
+
import nn from "@mui/material/Paper";
|
|
34
|
+
import on from "@mui/material/Popper";
|
|
35
|
+
import rn from "@mui/material/Typography";
|
|
36
|
+
import { P as S, R as sn } from "./RouterListItemButton-B6kAS_RK.js";
|
|
37
|
+
import et from "@mui/icons-material/AccountCircle";
|
|
38
|
+
import tt from "@mui/icons-material/ArrowBack";
|
|
39
|
+
import an from "@mui/icons-material/Brightness4";
|
|
40
|
+
import nt from "@mui/icons-material/ChevronRight";
|
|
41
|
+
import ln from "@mui/icons-material/DarkMode";
|
|
42
|
+
import cn from "@mui/icons-material/Done";
|
|
43
|
+
import dn from "@mui/icons-material/LightMode";
|
|
44
|
+
import un from "@mui/icons-material/Logout";
|
|
45
|
+
import fn from "@mui/icons-material/SettingsBrightness";
|
|
46
|
+
import mn from "@mui/icons-material/Translate";
|
|
47
|
+
import hn from "dayjs/plugin/weekOfYear.js";
|
|
48
|
+
import pn from "dayjs/plugin/customParseFormat.js";
|
|
49
|
+
import gn from "dayjs/plugin/localizedFormat.js";
|
|
50
|
+
import yn from "dayjs/plugin/isBetween.js";
|
|
51
|
+
import Tn from "dayjs/plugin/advancedFormat.js";
|
|
52
|
+
function Ne() {
|
|
53
|
+
return Ne = Object.assign ? Object.assign.bind() : function(t) {
|
|
55
54
|
for (var e = 1; e < arguments.length; e++) {
|
|
56
55
|
var n = arguments[e];
|
|
57
|
-
for (var
|
|
56
|
+
for (var r in n) ({}).hasOwnProperty.call(n, r) && (t[r] = n[r]);
|
|
58
57
|
}
|
|
59
58
|
return t;
|
|
60
|
-
},
|
|
59
|
+
}, Ne.apply(null, arguments);
|
|
61
60
|
}
|
|
62
|
-
function
|
|
61
|
+
function xn(t, e) {
|
|
63
62
|
if (t == null) return {};
|
|
64
63
|
var n = {};
|
|
65
|
-
for (var
|
|
66
|
-
if (e.indexOf(
|
|
67
|
-
n[
|
|
64
|
+
for (var r in t) if ({}.hasOwnProperty.call(t, r)) {
|
|
65
|
+
if (e.indexOf(r) !== -1) continue;
|
|
66
|
+
n[r] = t[r];
|
|
68
67
|
}
|
|
69
68
|
return n;
|
|
70
69
|
}
|
|
71
|
-
const
|
|
72
|
-
process.env.NODE_ENV !== "production" && (
|
|
73
|
-
const
|
|
70
|
+
const bn = ["localeText"], Ge = /* @__PURE__ */ U.createContext(null);
|
|
71
|
+
process.env.NODE_ENV !== "production" && (Ge.displayName = "PickerAdapterContext");
|
|
72
|
+
const qe = function(e) {
|
|
74
73
|
const {
|
|
75
74
|
localeText: n
|
|
76
|
-
} = e,
|
|
77
|
-
adapter:
|
|
78
|
-
localeText:
|
|
79
|
-
} =
|
|
75
|
+
} = e, r = xn(e, bn), {
|
|
76
|
+
adapter: s,
|
|
77
|
+
localeText: a
|
|
78
|
+
} = U.useContext(Ge) ?? {
|
|
80
79
|
adapter: void 0,
|
|
81
80
|
localeText: void 0
|
|
82
|
-
},
|
|
81
|
+
}, o = Wt({
|
|
83
82
|
// We don't want to pass the `localeText` prop to the theme, that way it will always return the theme value,
|
|
84
83
|
// We will then merge this theme value with our value manually
|
|
85
|
-
props:
|
|
84
|
+
props: r,
|
|
86
85
|
name: "MuiLocalizationProvider"
|
|
87
86
|
}), {
|
|
88
87
|
children: l,
|
|
89
|
-
dateAdapter:
|
|
88
|
+
dateAdapter: d,
|
|
90
89
|
dateFormats: u,
|
|
91
|
-
dateLibInstance:
|
|
90
|
+
dateLibInstance: c,
|
|
92
91
|
adapterLocale: m,
|
|
93
92
|
localeText: h
|
|
94
|
-
} =
|
|
95
|
-
if (!
|
|
96
|
-
return
|
|
97
|
-
const
|
|
93
|
+
} = o, f = U.useMemo(() => Ne({}, h, a, n), [h, a, n]), p = U.useMemo(() => {
|
|
94
|
+
if (!d)
|
|
95
|
+
return s || null;
|
|
96
|
+
const M = new d({
|
|
98
97
|
locale: m,
|
|
99
98
|
formats: u,
|
|
100
|
-
instance:
|
|
99
|
+
instance: c
|
|
101
100
|
});
|
|
102
|
-
if (!
|
|
101
|
+
if (!M.isMUIAdapter)
|
|
103
102
|
throw new Error(["MUI X: The date adapter should be imported from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro`, not from `@date-io`", "For example, `import { AdapterDayjs } from '@mui/x-date-pickers/AdapterDayjs'` instead of `import AdapterDayjs from '@date-io/dayjs'`", "More information on the installation documentation: https://mui.com/x/react-date-pickers/quickstart/#installation"].join(`
|
|
104
103
|
`));
|
|
105
|
-
return
|
|
106
|
-
}, [
|
|
104
|
+
return M;
|
|
105
|
+
}, [d, m, u, c, s]), g = U.useMemo(() => p ? {
|
|
107
106
|
minDate: p.date("1900-01-01T00:00:00.000"),
|
|
108
107
|
maxDate: p.date("2099-12-31T00:00:00.000")
|
|
109
|
-
} : null, [p]),
|
|
108
|
+
} : null, [p]), T = U.useMemo(() => ({
|
|
110
109
|
utils: p,
|
|
111
110
|
adapter: p,
|
|
112
111
|
defaultDates: g,
|
|
113
112
|
localeText: f
|
|
114
113
|
}), [g, p, f]);
|
|
115
|
-
return /* @__PURE__ */
|
|
116
|
-
value:
|
|
114
|
+
return /* @__PURE__ */ i(Ge.Provider, {
|
|
115
|
+
value: T,
|
|
117
116
|
children: l
|
|
118
117
|
});
|
|
119
118
|
};
|
|
120
|
-
process.env.NODE_ENV !== "production" && (
|
|
121
|
-
process.env.NODE_ENV !== "production" && (
|
|
119
|
+
process.env.NODE_ENV !== "production" && (qe.displayName = "LocalizationProvider");
|
|
120
|
+
process.env.NODE_ENV !== "production" && (qe.propTypes = {
|
|
122
121
|
// ----------------------------- Warning --------------------------------
|
|
123
122
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
124
123
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -126,38 +125,38 @@ process.env.NODE_ENV !== "production" && (nt.propTypes = {
|
|
|
126
125
|
/**
|
|
127
126
|
* Locale for the date library you are using
|
|
128
127
|
*/
|
|
129
|
-
adapterLocale:
|
|
130
|
-
children:
|
|
128
|
+
adapterLocale: S.any,
|
|
129
|
+
children: S.node,
|
|
131
130
|
/**
|
|
132
131
|
* Date library adapter class function.
|
|
133
132
|
* @see See the localization provider {@link https://mui.com/x/react-date-pickers/quickstart/#integrate-provider-and-adapter date adapter setup section} for more details.
|
|
134
133
|
*/
|
|
135
|
-
dateAdapter:
|
|
134
|
+
dateAdapter: S.func,
|
|
136
135
|
/**
|
|
137
136
|
* Formats that are used for any child pickers
|
|
138
137
|
*/
|
|
139
|
-
dateFormats:
|
|
140
|
-
dayOfMonth:
|
|
141
|
-
dayOfMonthFull:
|
|
142
|
-
fullDate:
|
|
143
|
-
fullTime12h:
|
|
144
|
-
fullTime24h:
|
|
145
|
-
hours12h:
|
|
146
|
-
hours24h:
|
|
147
|
-
keyboardDate:
|
|
148
|
-
keyboardDateTime12h:
|
|
149
|
-
keyboardDateTime24h:
|
|
150
|
-
meridiem:
|
|
151
|
-
minutes:
|
|
152
|
-
month:
|
|
153
|
-
monthShort:
|
|
154
|
-
normalDate:
|
|
155
|
-
normalDateWithWeekday:
|
|
156
|
-
seconds:
|
|
157
|
-
shortDate:
|
|
158
|
-
weekday:
|
|
159
|
-
weekdayShort:
|
|
160
|
-
year:
|
|
138
|
+
dateFormats: S.shape({
|
|
139
|
+
dayOfMonth: S.string,
|
|
140
|
+
dayOfMonthFull: S.string,
|
|
141
|
+
fullDate: S.string,
|
|
142
|
+
fullTime12h: S.string,
|
|
143
|
+
fullTime24h: S.string,
|
|
144
|
+
hours12h: S.string,
|
|
145
|
+
hours24h: S.string,
|
|
146
|
+
keyboardDate: S.string,
|
|
147
|
+
keyboardDateTime12h: S.string,
|
|
148
|
+
keyboardDateTime24h: S.string,
|
|
149
|
+
meridiem: S.string,
|
|
150
|
+
minutes: S.string,
|
|
151
|
+
month: S.string,
|
|
152
|
+
monthShort: S.string,
|
|
153
|
+
normalDate: S.string,
|
|
154
|
+
normalDateWithWeekday: S.string,
|
|
155
|
+
seconds: S.string,
|
|
156
|
+
shortDate: S.string,
|
|
157
|
+
weekday: S.string,
|
|
158
|
+
weekdayShort: S.string,
|
|
159
|
+
year: S.string
|
|
161
160
|
}),
|
|
162
161
|
/**
|
|
163
162
|
* Date library instance you are using, if it has some global overrides
|
|
@@ -165,35 +164,35 @@ process.env.NODE_ENV !== "production" && (nt.propTypes = {
|
|
|
165
164
|
* dateLibInstance={momentTimeZone}
|
|
166
165
|
* ```
|
|
167
166
|
*/
|
|
168
|
-
dateLibInstance:
|
|
167
|
+
dateLibInstance: S.any,
|
|
169
168
|
/**
|
|
170
169
|
* Locale for components texts
|
|
171
170
|
*/
|
|
172
|
-
localeText:
|
|
171
|
+
localeText: S.object
|
|
173
172
|
});
|
|
174
|
-
const
|
|
175
|
-
function
|
|
176
|
-
const e =
|
|
177
|
-
return
|
|
173
|
+
const Sn = typeof window < "u" ? U.useLayoutEffect : U.useEffect;
|
|
174
|
+
function Be(t) {
|
|
175
|
+
const e = U.useRef(t);
|
|
176
|
+
return Sn(() => {
|
|
178
177
|
e.current = t;
|
|
179
|
-
}),
|
|
178
|
+
}), U.useRef((...n) => (
|
|
180
179
|
// @ts-expect-error hide `this`
|
|
181
180
|
(0, e.current)(...n)
|
|
182
181
|
)).current;
|
|
183
182
|
}
|
|
184
|
-
const
|
|
185
|
-
function
|
|
183
|
+
const ot = /* @__PURE__ */ new Set();
|
|
184
|
+
function Mn(t, e = "warning") {
|
|
186
185
|
if (process.env.NODE_ENV === "production")
|
|
187
186
|
return;
|
|
188
187
|
const n = Array.isArray(t) ? t.join(`
|
|
189
188
|
`) : t;
|
|
190
|
-
|
|
189
|
+
ot.has(n) || (ot.add(n), e === "error" ? console.error(n) : console.warn(n));
|
|
191
190
|
}
|
|
192
|
-
C.extend(
|
|
193
|
-
C.extend(
|
|
194
|
-
C.extend(
|
|
195
|
-
C.extend(
|
|
196
|
-
const
|
|
191
|
+
C.extend(gn);
|
|
192
|
+
C.extend(hn);
|
|
193
|
+
C.extend(yn);
|
|
194
|
+
C.extend(Tn);
|
|
195
|
+
const kn = {
|
|
197
196
|
// Year
|
|
198
197
|
YY: "year",
|
|
199
198
|
YYYY: {
|
|
@@ -275,7 +274,7 @@ const jn = {
|
|
|
275
274
|
maxLength: 2
|
|
276
275
|
},
|
|
277
276
|
ss: "seconds"
|
|
278
|
-
},
|
|
277
|
+
}, Ln = {
|
|
279
278
|
year: "YYYY",
|
|
280
279
|
month: "MMMM",
|
|
281
280
|
monthShort: "MMM",
|
|
@@ -297,10 +296,10 @@ const jn = {
|
|
|
297
296
|
fullTime24h: "HH:mm",
|
|
298
297
|
keyboardDateTime12h: "L hh:mm A",
|
|
299
298
|
keyboardDateTime24h: "L HH:mm"
|
|
300
|
-
},
|
|
301
|
-
`),
|
|
299
|
+
}, He = ["Missing UTC plugin", "To be able to use UTC or timezones, you have to enable the `utc` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
|
|
300
|
+
`), rt = ["Missing timezone plugin", "To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin", "Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
|
|
302
301
|
`);
|
|
303
|
-
class
|
|
302
|
+
class Dn {
|
|
304
303
|
isMUIAdapter = !0;
|
|
305
304
|
isTimezoneCompatible = !0;
|
|
306
305
|
lib = "dayjs";
|
|
@@ -308,12 +307,12 @@ class Fn {
|
|
|
308
307
|
start: "[",
|
|
309
308
|
end: "]"
|
|
310
309
|
};
|
|
311
|
-
formatTokenMap =
|
|
310
|
+
formatTokenMap = kn;
|
|
312
311
|
constructor({
|
|
313
312
|
locale: e,
|
|
314
313
|
formats: n
|
|
315
314
|
} = {}) {
|
|
316
|
-
this.locale = e, this.formats =
|
|
315
|
+
this.locale = e, this.formats = Ne({}, Ln, n), C.extend(pn);
|
|
317
316
|
}
|
|
318
317
|
setLocaleToValue = (e) => {
|
|
319
318
|
const n = this.getCurrentLocaleCode();
|
|
@@ -321,9 +320,9 @@ class Fn {
|
|
|
321
320
|
};
|
|
322
321
|
hasUTCPlugin = () => typeof C.utc < "u";
|
|
323
322
|
hasTimezonePlugin = () => typeof C.tz < "u";
|
|
324
|
-
isSame = (e, n,
|
|
325
|
-
const
|
|
326
|
-
return e.format(
|
|
323
|
+
isSame = (e, n, r) => {
|
|
324
|
+
const s = this.setTimezone(n, this.getTimezone(e));
|
|
325
|
+
return e.format(r) === s.format(r);
|
|
327
326
|
};
|
|
328
327
|
/**
|
|
329
328
|
* Replaces "default" by undefined and "system" by the system timezone before passing it to `dayjs`.
|
|
@@ -341,29 +340,29 @@ class Fn {
|
|
|
341
340
|
createSystemDate = (e) => {
|
|
342
341
|
let n;
|
|
343
342
|
if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
|
|
344
|
-
const
|
|
345
|
-
|
|
343
|
+
const r = C.tz.guess();
|
|
344
|
+
r === "UTC" ? n = C(e) : n = C.tz(e, r);
|
|
346
345
|
} else
|
|
347
346
|
n = C(e);
|
|
348
347
|
return this.setLocaleToValue(n);
|
|
349
348
|
};
|
|
350
349
|
createUTCDate = (e) => {
|
|
351
350
|
if (!this.hasUTCPlugin())
|
|
352
|
-
throw new Error(
|
|
351
|
+
throw new Error(He);
|
|
353
352
|
return this.setLocaleToValue(C.utc(e));
|
|
354
353
|
};
|
|
355
354
|
createTZDate = (e, n) => {
|
|
356
355
|
if (!this.hasUTCPlugin())
|
|
357
|
-
throw new Error(
|
|
356
|
+
throw new Error(He);
|
|
358
357
|
if (!this.hasTimezonePlugin())
|
|
359
|
-
throw new Error(
|
|
360
|
-
const
|
|
361
|
-
return this.setLocaleToValue(C(e).tz(this.cleanTimezone(n),
|
|
358
|
+
throw new Error(rt);
|
|
359
|
+
const r = e !== void 0 && !e.endsWith("Z");
|
|
360
|
+
return this.setLocaleToValue(C(e).tz(this.cleanTimezone(n), r));
|
|
362
361
|
};
|
|
363
362
|
getLocaleFormats = () => {
|
|
364
363
|
const e = C.Ls, n = this.locale || "en";
|
|
365
|
-
let
|
|
366
|
-
return
|
|
364
|
+
let r = e[n];
|
|
365
|
+
return r === void 0 && (process.env.NODE_ENV !== "production" && Mn(["MUI X: Your locale has not been found.", "Either the locale key is not a supported one. Locales supported by dayjs are available here: https://github.com/iamkun/dayjs/tree/dev/src/locale.", "Or you forget to import the locale from 'dayjs/locale/{localeUsed}'", "fallback on English locale."]), r = e.en), r.formats;
|
|
367
366
|
};
|
|
368
367
|
/**
|
|
369
368
|
* If the new day does not have the same offset as the old one (when switching to summer day time for example),
|
|
@@ -376,10 +375,10 @@ class Fn {
|
|
|
376
375
|
return e;
|
|
377
376
|
const n = this.getTimezone(e);
|
|
378
377
|
if (n !== "UTC") {
|
|
379
|
-
const
|
|
380
|
-
if (
|
|
378
|
+
const r = e.tz(this.cleanTimezone(n), !0);
|
|
379
|
+
if (r.$offset === (e.$offset ?? 0))
|
|
381
380
|
return e;
|
|
382
|
-
e.$offset =
|
|
381
|
+
e.$offset = r.$offset;
|
|
383
382
|
}
|
|
384
383
|
return e;
|
|
385
384
|
};
|
|
@@ -398,7 +397,7 @@ class Fn {
|
|
|
398
397
|
return e;
|
|
399
398
|
if (n === "UTC") {
|
|
400
399
|
if (!this.hasUTCPlugin())
|
|
401
|
-
throw new Error(
|
|
400
|
+
throw new Error(He);
|
|
402
401
|
return e.utc();
|
|
403
402
|
}
|
|
404
403
|
if (n === "system")
|
|
@@ -406,7 +405,7 @@ class Fn {
|
|
|
406
405
|
if (!this.hasTimezonePlugin()) {
|
|
407
406
|
if (n === "default")
|
|
408
407
|
return e;
|
|
409
|
-
throw new Error(
|
|
408
|
+
throw new Error(rt);
|
|
410
409
|
}
|
|
411
410
|
return this.setLocaleToValue(C.tz(e, this.cleanTimezone(n)));
|
|
412
411
|
};
|
|
@@ -415,10 +414,10 @@ class Fn {
|
|
|
415
414
|
getCurrentLocaleCode = () => this.locale || "en";
|
|
416
415
|
is12HourCycleInCurrentLocale = () => /A|a/.test(this.getLocaleFormats().LT || "");
|
|
417
416
|
expandFormat = (e) => {
|
|
418
|
-
const n = this.getLocaleFormats(),
|
|
419
|
-
return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (
|
|
420
|
-
const l =
|
|
421
|
-
return
|
|
417
|
+
const n = this.getLocaleFormats(), r = (s) => s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (a, o, l) => o || l.slice(1));
|
|
418
|
+
return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (s, a, o) => {
|
|
419
|
+
const l = o && o.toUpperCase();
|
|
420
|
+
return a || n[o] || r(n[l]);
|
|
422
421
|
});
|
|
423
422
|
};
|
|
424
423
|
isValid = (e) => e == null ? !1 : e.isValid();
|
|
@@ -436,7 +435,7 @@ class Fn {
|
|
|
436
435
|
isBefore = (e, n) => e < n;
|
|
437
436
|
isBeforeYear = (e, n) => this.hasUTCPlugin() ? !this.isSameYear(e, n) && e.utc() < n.utc() : e.isBefore(n, "year");
|
|
438
437
|
isBeforeDay = (e, n) => this.hasUTCPlugin() ? !this.isSameDay(e, n) && e.utc() < n.utc() : e.isBefore(n, "day");
|
|
439
|
-
isWithinRange = (e, [n,
|
|
438
|
+
isWithinRange = (e, [n, r]) => e >= n && e <= r;
|
|
440
439
|
startOfYear = (e) => this.adjustOffset(e.startOf("year"));
|
|
441
440
|
startOfMonth = (e) => this.adjustOffset(e.startOf("month"));
|
|
442
441
|
startOfWeek = (e) => this.adjustOffset(this.setLocaleToValue(e).startOf("week"));
|
|
@@ -468,407 +467,93 @@ class Fn {
|
|
|
468
467
|
setMilliseconds = (e, n) => this.adjustOffset(e.set("millisecond", n));
|
|
469
468
|
getDaysInMonth = (e) => e.daysInMonth();
|
|
470
469
|
getWeekArray = (e) => {
|
|
471
|
-
const n = this.startOfWeek(this.startOfMonth(e)),
|
|
472
|
-
let
|
|
473
|
-
const
|
|
474
|
-
for (;
|
|
475
|
-
const l = Math.floor(
|
|
476
|
-
|
|
470
|
+
const n = this.startOfWeek(this.startOfMonth(e)), r = this.endOfWeek(this.endOfMonth(e));
|
|
471
|
+
let s = 0, a = n;
|
|
472
|
+
const o = [];
|
|
473
|
+
for (; a < r; ) {
|
|
474
|
+
const l = Math.floor(s / 7);
|
|
475
|
+
o[l] = o[l] || [], o[l].push(a), a = this.addDays(a, 1), s += 1;
|
|
477
476
|
}
|
|
478
|
-
return
|
|
477
|
+
return o;
|
|
479
478
|
};
|
|
480
479
|
getWeekNumber = (e) => e.week();
|
|
481
480
|
getDayOfWeek(e) {
|
|
482
481
|
return e.day() + 1;
|
|
483
482
|
}
|
|
484
483
|
getYearRange = ([e, n]) => {
|
|
485
|
-
const
|
|
486
|
-
let
|
|
487
|
-
for (; this.isBefore(
|
|
488
|
-
|
|
489
|
-
return
|
|
484
|
+
const r = this.startOfYear(e), s = this.endOfYear(n), a = [];
|
|
485
|
+
let o = r;
|
|
486
|
+
for (; this.isBefore(o, s); )
|
|
487
|
+
a.push(o), o = this.addYears(o, 1);
|
|
488
|
+
return a;
|
|
490
489
|
};
|
|
491
490
|
}
|
|
492
|
-
|
|
493
|
-
slice: Yn,
|
|
494
|
-
forEach: Bn
|
|
495
|
-
} = [];
|
|
496
|
-
function Wn(t) {
|
|
497
|
-
return Bn.call(Yn.call(arguments, 1), (e) => {
|
|
498
|
-
if (e)
|
|
499
|
-
for (const n in e)
|
|
500
|
-
t[n] === void 0 && (t[n] = e[n]);
|
|
501
|
-
}), t;
|
|
502
|
-
}
|
|
503
|
-
function Rn(t) {
|
|
504
|
-
return typeof t != "string" ? !1 : [/<\s*script.*?>/i, /<\s*\/\s*script\s*>/i, /<\s*img.*?on\w+\s*=/i, /<\s*\w+\s*on\w+\s*=.*?>/i, /javascript\s*:/i, /vbscript\s*:/i, /expression\s*\(/i, /eval\s*\(/i, /alert\s*\(/i, /document\.cookie/i, /document\.write\s*\(/i, /window\.location/i, /innerHTML/i].some((n) => n.test(t));
|
|
505
|
-
}
|
|
506
|
-
const ut = /^[\u0009\u0020-\u007e\u0080-\u00ff]+$/, Hn = function(t, e) {
|
|
507
|
-
const o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {
|
|
508
|
-
path: "/"
|
|
509
|
-
}, r = encodeURIComponent(e);
|
|
510
|
-
let s = `${t}=${r}`;
|
|
511
|
-
if (o.maxAge > 0) {
|
|
512
|
-
const i = o.maxAge - 0;
|
|
513
|
-
if (Number.isNaN(i)) throw new Error("maxAge should be a Number");
|
|
514
|
-
s += `; Max-Age=${Math.floor(i)}`;
|
|
515
|
-
}
|
|
516
|
-
if (o.domain) {
|
|
517
|
-
if (!ut.test(o.domain))
|
|
518
|
-
throw new TypeError("option domain is invalid");
|
|
519
|
-
s += `; Domain=${o.domain}`;
|
|
520
|
-
}
|
|
521
|
-
if (o.path) {
|
|
522
|
-
if (!ut.test(o.path))
|
|
523
|
-
throw new TypeError("option path is invalid");
|
|
524
|
-
s += `; Path=${o.path}`;
|
|
525
|
-
}
|
|
526
|
-
if (o.expires) {
|
|
527
|
-
if (typeof o.expires.toUTCString != "function")
|
|
528
|
-
throw new TypeError("option expires is invalid");
|
|
529
|
-
s += `; Expires=${o.expires.toUTCString()}`;
|
|
530
|
-
}
|
|
531
|
-
if (o.httpOnly && (s += "; HttpOnly"), o.secure && (s += "; Secure"), o.sameSite)
|
|
532
|
-
switch (typeof o.sameSite == "string" ? o.sameSite.toLowerCase() : o.sameSite) {
|
|
533
|
-
case !0:
|
|
534
|
-
s += "; SameSite=Strict";
|
|
535
|
-
break;
|
|
536
|
-
case "lax":
|
|
537
|
-
s += "; SameSite=Lax";
|
|
538
|
-
break;
|
|
539
|
-
case "strict":
|
|
540
|
-
s += "; SameSite=Strict";
|
|
541
|
-
break;
|
|
542
|
-
case "none":
|
|
543
|
-
s += "; SameSite=None";
|
|
544
|
-
break;
|
|
545
|
-
default:
|
|
546
|
-
throw new TypeError("option sameSite is invalid");
|
|
547
|
-
}
|
|
548
|
-
return o.partitioned && (s += "; Partitioned"), s;
|
|
549
|
-
}, ft = {
|
|
550
|
-
create(t, e, n, o) {
|
|
551
|
-
let r = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : {
|
|
552
|
-
path: "/",
|
|
553
|
-
sameSite: "strict"
|
|
554
|
-
};
|
|
555
|
-
n && (r.expires = /* @__PURE__ */ new Date(), r.expires.setTime(r.expires.getTime() + n * 60 * 1e3)), o && (r.domain = o), document.cookie = Hn(t, e, r);
|
|
556
|
-
},
|
|
557
|
-
read(t) {
|
|
558
|
-
const e = `${t}=`, n = document.cookie.split(";");
|
|
559
|
-
for (let o = 0; o < n.length; o++) {
|
|
560
|
-
let r = n[o];
|
|
561
|
-
for (; r.charAt(0) === " "; ) r = r.substring(1, r.length);
|
|
562
|
-
if (r.indexOf(e) === 0) return r.substring(e.length, r.length);
|
|
563
|
-
}
|
|
564
|
-
return null;
|
|
565
|
-
},
|
|
566
|
-
remove(t, e) {
|
|
567
|
-
this.create(t, "", -1, e);
|
|
568
|
-
}
|
|
569
|
-
};
|
|
570
|
-
var qn = {
|
|
571
|
-
name: "cookie",
|
|
572
|
-
// Deconstruct the options object and extract the lookupCookie property
|
|
573
|
-
lookup(t) {
|
|
574
|
-
let {
|
|
575
|
-
lookupCookie: e
|
|
576
|
-
} = t;
|
|
577
|
-
if (e && typeof document < "u")
|
|
578
|
-
return ft.read(e) || void 0;
|
|
579
|
-
},
|
|
580
|
-
// Deconstruct the options object and extract the lookupCookie, cookieMinutes, cookieDomain, and cookieOptions properties
|
|
581
|
-
cacheUserLanguage(t, e) {
|
|
582
|
-
let {
|
|
583
|
-
lookupCookie: n,
|
|
584
|
-
cookieMinutes: o,
|
|
585
|
-
cookieDomain: r,
|
|
586
|
-
cookieOptions: s
|
|
587
|
-
} = e;
|
|
588
|
-
n && typeof document < "u" && ft.create(n, t, o, r, s);
|
|
589
|
-
}
|
|
590
|
-
}, Vn = {
|
|
591
|
-
name: "querystring",
|
|
592
|
-
// Deconstruct the options object and extract the lookupQuerystring property
|
|
593
|
-
lookup(t) {
|
|
594
|
-
let {
|
|
595
|
-
lookupQuerystring: e
|
|
596
|
-
} = t, n;
|
|
597
|
-
if (typeof window < "u") {
|
|
598
|
-
let {
|
|
599
|
-
search: o
|
|
600
|
-
} = window.location;
|
|
601
|
-
!window.location.search && window.location.hash?.indexOf("?") > -1 && (o = window.location.hash.substring(window.location.hash.indexOf("?")));
|
|
602
|
-
const s = o.substring(1).split("&");
|
|
603
|
-
for (let i = 0; i < s.length; i++) {
|
|
604
|
-
const l = s[i].indexOf("=");
|
|
605
|
-
l > 0 && s[i].substring(0, l) === e && (n = s[i].substring(l + 1));
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
return n;
|
|
609
|
-
}
|
|
610
|
-
}, Gn = {
|
|
611
|
-
name: "hash",
|
|
612
|
-
// Deconstruct the options object and extract the lookupHash property and the lookupFromHashIndex property
|
|
613
|
-
lookup(t) {
|
|
614
|
-
let {
|
|
615
|
-
lookupHash: e,
|
|
616
|
-
lookupFromHashIndex: n
|
|
617
|
-
} = t, o;
|
|
618
|
-
if (typeof window < "u") {
|
|
619
|
-
const {
|
|
620
|
-
hash: r
|
|
621
|
-
} = window.location;
|
|
622
|
-
if (r && r.length > 2) {
|
|
623
|
-
const s = r.substring(1);
|
|
624
|
-
if (e) {
|
|
625
|
-
const i = s.split("&");
|
|
626
|
-
for (let l = 0; l < i.length; l++) {
|
|
627
|
-
const c = i[l].indexOf("=");
|
|
628
|
-
c > 0 && i[l].substring(0, c) === e && (o = i[l].substring(c + 1));
|
|
629
|
-
}
|
|
630
|
-
}
|
|
631
|
-
if (o) return o;
|
|
632
|
-
if (!o && n > -1) {
|
|
633
|
-
const i = r.match(/\/([a-zA-Z-]*)/g);
|
|
634
|
-
return Array.isArray(i) ? i[typeof n == "number" ? n : 0]?.replace("/", "") : void 0;
|
|
635
|
-
}
|
|
636
|
-
}
|
|
637
|
-
}
|
|
638
|
-
return o;
|
|
639
|
-
}
|
|
640
|
-
};
|
|
641
|
-
let re = null;
|
|
642
|
-
const mt = () => {
|
|
643
|
-
if (re !== null) return re;
|
|
644
|
-
try {
|
|
645
|
-
if (re = typeof window < "u" && window.localStorage !== null, !re)
|
|
646
|
-
return !1;
|
|
647
|
-
const t = "i18next.translate.boo";
|
|
648
|
-
window.localStorage.setItem(t, "foo"), window.localStorage.removeItem(t);
|
|
649
|
-
} catch {
|
|
650
|
-
re = !1;
|
|
651
|
-
}
|
|
652
|
-
return re;
|
|
653
|
-
};
|
|
654
|
-
var Kn = {
|
|
655
|
-
name: "localStorage",
|
|
656
|
-
// Deconstruct the options object and extract the lookupLocalStorage property
|
|
657
|
-
lookup(t) {
|
|
658
|
-
let {
|
|
659
|
-
lookupLocalStorage: e
|
|
660
|
-
} = t;
|
|
661
|
-
if (e && mt())
|
|
662
|
-
return window.localStorage.getItem(e) || void 0;
|
|
663
|
-
},
|
|
664
|
-
// Deconstruct the options object and extract the lookupLocalStorage property
|
|
665
|
-
cacheUserLanguage(t, e) {
|
|
666
|
-
let {
|
|
667
|
-
lookupLocalStorage: n
|
|
668
|
-
} = e;
|
|
669
|
-
n && mt() && window.localStorage.setItem(n, t);
|
|
670
|
-
}
|
|
671
|
-
};
|
|
672
|
-
let se = null;
|
|
673
|
-
const ht = () => {
|
|
674
|
-
if (se !== null) return se;
|
|
675
|
-
try {
|
|
676
|
-
if (se = typeof window < "u" && window.sessionStorage !== null, !se)
|
|
677
|
-
return !1;
|
|
678
|
-
const t = "i18next.translate.boo";
|
|
679
|
-
window.sessionStorage.setItem(t, "foo"), window.sessionStorage.removeItem(t);
|
|
680
|
-
} catch {
|
|
681
|
-
se = !1;
|
|
682
|
-
}
|
|
683
|
-
return se;
|
|
684
|
-
};
|
|
685
|
-
var Qn = {
|
|
686
|
-
name: "sessionStorage",
|
|
687
|
-
lookup(t) {
|
|
688
|
-
let {
|
|
689
|
-
lookupSessionStorage: e
|
|
690
|
-
} = t;
|
|
691
|
-
if (e && ht())
|
|
692
|
-
return window.sessionStorage.getItem(e) || void 0;
|
|
693
|
-
},
|
|
694
|
-
cacheUserLanguage(t, e) {
|
|
695
|
-
let {
|
|
696
|
-
lookupSessionStorage: n
|
|
697
|
-
} = e;
|
|
698
|
-
n && ht() && window.sessionStorage.setItem(n, t);
|
|
699
|
-
}
|
|
700
|
-
}, Xn = {
|
|
701
|
-
name: "navigator",
|
|
702
|
-
lookup(t) {
|
|
703
|
-
const e = [];
|
|
704
|
-
if (typeof navigator < "u") {
|
|
705
|
-
const {
|
|
706
|
-
languages: n,
|
|
707
|
-
userLanguage: o,
|
|
708
|
-
language: r
|
|
709
|
-
} = navigator;
|
|
710
|
-
if (n)
|
|
711
|
-
for (let s = 0; s < n.length; s++)
|
|
712
|
-
e.push(n[s]);
|
|
713
|
-
o && e.push(o), r && e.push(r);
|
|
714
|
-
}
|
|
715
|
-
return e.length > 0 ? e : void 0;
|
|
716
|
-
}
|
|
717
|
-
}, Zn = {
|
|
718
|
-
name: "htmlTag",
|
|
719
|
-
// Deconstruct the options object and extract the htmlTag property
|
|
720
|
-
lookup(t) {
|
|
721
|
-
let {
|
|
722
|
-
htmlTag: e
|
|
723
|
-
} = t, n;
|
|
724
|
-
const o = e || (typeof document < "u" ? document.documentElement : null);
|
|
725
|
-
return o && typeof o.getAttribute == "function" && (n = o.getAttribute("lang")), n;
|
|
726
|
-
}
|
|
727
|
-
}, Jn = {
|
|
728
|
-
name: "path",
|
|
729
|
-
// Deconstruct the options object and extract the lookupFromPathIndex property
|
|
730
|
-
lookup(t) {
|
|
731
|
-
let {
|
|
732
|
-
lookupFromPathIndex: e
|
|
733
|
-
} = t;
|
|
734
|
-
if (typeof window > "u") return;
|
|
735
|
-
const n = window.location.pathname.match(/\/([a-zA-Z-]*)/g);
|
|
736
|
-
return Array.isArray(n) ? n[typeof e == "number" ? e : 0]?.replace("/", "") : void 0;
|
|
737
|
-
}
|
|
738
|
-
}, eo = {
|
|
739
|
-
name: "subdomain",
|
|
740
|
-
lookup(t) {
|
|
741
|
-
let {
|
|
742
|
-
lookupFromSubdomainIndex: e
|
|
743
|
-
} = t;
|
|
744
|
-
const n = typeof e == "number" ? e + 1 : 1, o = typeof window < "u" && window.location?.hostname?.match(/^(\w{2,5})\.(([a-z0-9-]{1,63}\.[a-z]{2,6})|localhost)/i);
|
|
745
|
-
if (o)
|
|
746
|
-
return o[n];
|
|
747
|
-
}
|
|
748
|
-
};
|
|
749
|
-
let Tt = !1;
|
|
750
|
-
try {
|
|
751
|
-
document.cookie, Tt = !0;
|
|
752
|
-
} catch {
|
|
753
|
-
}
|
|
754
|
-
const bt = ["querystring", "cookie", "localStorage", "sessionStorage", "navigator", "htmlTag"];
|
|
755
|
-
Tt || bt.splice(1, 1);
|
|
756
|
-
const to = () => ({
|
|
757
|
-
order: bt,
|
|
758
|
-
lookupQuerystring: "lng",
|
|
759
|
-
lookupCookie: "i18next",
|
|
760
|
-
lookupLocalStorage: "i18nextLng",
|
|
761
|
-
lookupSessionStorage: "i18nextLng",
|
|
762
|
-
// cache user language
|
|
763
|
-
caches: ["localStorage"],
|
|
764
|
-
excludeCacheFor: ["cimode"],
|
|
765
|
-
// cookieMinutes: 10,
|
|
766
|
-
// cookieDomain: 'myDomain'
|
|
767
|
-
convertDetectedLanguage: (t) => t
|
|
768
|
-
});
|
|
769
|
-
class wt {
|
|
770
|
-
constructor(e) {
|
|
771
|
-
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {};
|
|
772
|
-
this.type = "languageDetector", this.detectors = {}, this.init(e, n);
|
|
773
|
-
}
|
|
774
|
-
init() {
|
|
775
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {
|
|
776
|
-
languageUtils: {}
|
|
777
|
-
}, n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {}, o = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : {};
|
|
778
|
-
this.services = e, this.options = Wn(n, this.options || {}, to()), typeof this.options.convertDetectedLanguage == "string" && this.options.convertDetectedLanguage.indexOf("15897") > -1 && (this.options.convertDetectedLanguage = (r) => r.replace("-", "_")), this.options.lookupFromUrlIndex && (this.options.lookupFromPathIndex = this.options.lookupFromUrlIndex), this.i18nOptions = o, this.addDetector(qn), this.addDetector(Vn), this.addDetector(Kn), this.addDetector(Qn), this.addDetector(Xn), this.addDetector(Zn), this.addDetector(Jn), this.addDetector(eo), this.addDetector(Gn);
|
|
779
|
-
}
|
|
780
|
-
addDetector(e) {
|
|
781
|
-
return this.detectors[e.name] = e, this;
|
|
782
|
-
}
|
|
783
|
-
detect() {
|
|
784
|
-
let e = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : this.options.order, n = [];
|
|
785
|
-
return e.forEach((o) => {
|
|
786
|
-
if (this.detectors[o]) {
|
|
787
|
-
let r = this.detectors[o].lookup(this.options);
|
|
788
|
-
r && typeof r == "string" && (r = [r]), r && (n = n.concat(r));
|
|
789
|
-
}
|
|
790
|
-
}), n = n.filter((o) => o != null && !Rn(o)).map((o) => this.options.convertDetectedLanguage(o)), this.services && this.services.languageUtils && this.services.languageUtils.getBestMatchFromCodes ? n : n.length > 0 ? n[0] : null;
|
|
791
|
-
}
|
|
792
|
-
cacheUserLanguage(e) {
|
|
793
|
-
let n = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : this.options.caches;
|
|
794
|
-
n && (this.options.excludeCacheFor && this.options.excludeCacheFor.indexOf(e) > -1 || n.forEach((o) => {
|
|
795
|
-
this.detectors[o] && this.detectors[o].cacheUserLanguage(e, this.options);
|
|
796
|
-
}));
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
wt.type = "languageDetector";
|
|
800
|
-
const no = {
|
|
801
|
-
type: "3rdParty",
|
|
802
|
-
init(t) {
|
|
803
|
-
Vt(t.options.react), Gt(t);
|
|
804
|
-
}
|
|
805
|
-
};
|
|
806
|
-
function oo({
|
|
491
|
+
function _n({
|
|
807
492
|
children: t
|
|
808
493
|
}) {
|
|
809
|
-
const [e, n] =
|
|
494
|
+
const [e, n] = V([]), r = Pt(), s = Ke(0), a = Ke(/* @__PURE__ */ new WeakMap()), o = Be(function(m, h, f = {}) {
|
|
810
495
|
const {
|
|
811
496
|
onClose: p = async () => {
|
|
812
497
|
}
|
|
813
498
|
} = f;
|
|
814
499
|
let g;
|
|
815
|
-
const
|
|
500
|
+
const T = new Promise((y) => {
|
|
816
501
|
g = y;
|
|
817
|
-
}),
|
|
818
|
-
|
|
819
|
-
const
|
|
820
|
-
key:
|
|
502
|
+
}), M = `${r}-${s.current}`;
|
|
503
|
+
s.current += 1;
|
|
504
|
+
const x = {
|
|
505
|
+
key: M,
|
|
821
506
|
open: !0,
|
|
822
|
-
promise:
|
|
507
|
+
promise: T,
|
|
823
508
|
Component: m,
|
|
824
509
|
payload: h,
|
|
825
510
|
onClose: p,
|
|
826
511
|
resolve: g
|
|
827
512
|
};
|
|
828
|
-
return
|
|
829
|
-
}), l = (
|
|
830
|
-
n((m) => m.filter((h) => h.promise !==
|
|
831
|
-
},
|
|
513
|
+
return a.current.set(T, x), n((y) => [...y, x]), T;
|
|
514
|
+
}), l = (c) => {
|
|
515
|
+
n((m) => m.filter((h) => h.promise !== c)), a.current.delete(c);
|
|
516
|
+
}, d = Be(function(m) {
|
|
832
517
|
n((h) => h.map((f) => f.promise === m ? {
|
|
833
518
|
...f,
|
|
834
519
|
open: !1
|
|
835
520
|
} : f)), setTimeout(() => l(m), 1e3);
|
|
836
|
-
}), u =
|
|
837
|
-
const f =
|
|
521
|
+
}), u = Be(async function(m, h) {
|
|
522
|
+
const f = a.current.get(m);
|
|
838
523
|
if (!f)
|
|
839
524
|
throw new Error("Dialog not found in stack");
|
|
840
525
|
try {
|
|
841
526
|
await f.onClose(h);
|
|
842
527
|
} finally {
|
|
843
|
-
f.resolve(h),
|
|
528
|
+
f.resolve(h), d(m);
|
|
844
529
|
}
|
|
845
530
|
return m;
|
|
846
531
|
});
|
|
847
|
-
return /* @__PURE__ */
|
|
848
|
-
open:
|
|
532
|
+
return /* @__PURE__ */ L(Nt.Provider, { value: {
|
|
533
|
+
open: o,
|
|
849
534
|
close: u
|
|
850
535
|
}, children: [
|
|
851
536
|
t,
|
|
852
537
|
e.map(({
|
|
853
|
-
key:
|
|
538
|
+
key: c,
|
|
854
539
|
open: m,
|
|
855
540
|
Component: h,
|
|
856
541
|
payload: f,
|
|
857
542
|
promise: p
|
|
858
|
-
}) => /* @__PURE__ */
|
|
543
|
+
}) => /* @__PURE__ */ i(h, { payload: f, open: m, onClose: async (g) => {
|
|
859
544
|
await u(p, g);
|
|
860
|
-
} },
|
|
545
|
+
} }, c))
|
|
861
546
|
] });
|
|
862
547
|
}
|
|
863
|
-
const
|
|
864
|
-
const t =
|
|
548
|
+
const vn = () => {
|
|
549
|
+
const t = B(1);
|
|
865
550
|
let e;
|
|
866
|
-
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */
|
|
867
|
-
/* @__PURE__ */
|
|
868
|
-
/* @__PURE__ */
|
|
869
|
-
/* @__PURE__ */
|
|
551
|
+
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ L(pt, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
|
|
552
|
+
/* @__PURE__ */ i("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
|
|
553
|
+
/* @__PURE__ */ i(gt, { variant: "h6", children: Bt.VITE_APP_TITLE }),
|
|
554
|
+
/* @__PURE__ */ i(yt, { size: "small", label: "TEST", color: "info" })
|
|
870
555
|
] }), t[0] = e) : e = t[0], e;
|
|
871
|
-
},
|
|
556
|
+
}, Ve = 34, On = Ze(Qt)(({
|
|
872
557
|
theme: t
|
|
873
558
|
}) => ({
|
|
874
559
|
borderRadius: 8,
|
|
@@ -889,7 +574,7 @@ const io = () => {
|
|
|
889
574
|
"& .MuiAvatar-root": {
|
|
890
575
|
backgroundColor: (t.vars ?? t).palette.action.active
|
|
891
576
|
}
|
|
892
|
-
})),
|
|
577
|
+
})), Cn = Ze(sn)(({
|
|
893
578
|
theme: t
|
|
894
579
|
}) => ({
|
|
895
580
|
borderRadius: 8,
|
|
@@ -910,40 +595,40 @@ const io = () => {
|
|
|
910
595
|
"& .MuiAvatar-root": {
|
|
911
596
|
backgroundColor: (t.vars ?? t).palette.action.active
|
|
912
597
|
}
|
|
913
|
-
})),
|
|
914
|
-
const e =
|
|
598
|
+
})), wn = (t) => {
|
|
599
|
+
const e = B(17), {
|
|
915
600
|
item: n,
|
|
916
|
-
collapsed:
|
|
601
|
+
collapsed: r
|
|
917
602
|
} = t;
|
|
918
|
-
if (n.icon ||
|
|
919
|
-
let
|
|
920
|
-
e[0] !==
|
|
603
|
+
if (n.icon || r) {
|
|
604
|
+
let s;
|
|
605
|
+
e[0] !== r ? (s = r ? {
|
|
921
606
|
position: "absolute",
|
|
922
607
|
left: "50%",
|
|
923
608
|
top: "calc(50% - 6px)",
|
|
924
609
|
transform: "translate(-50%, -50%)"
|
|
925
|
-
} : {}, e[0] =
|
|
926
|
-
let
|
|
927
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
610
|
+
} : {}, e[0] = r, e[1] = s) : s = e[1];
|
|
611
|
+
let a;
|
|
612
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
|
|
928
613
|
display: "flex",
|
|
929
614
|
alignItems: "center",
|
|
930
615
|
justifyContent: "center",
|
|
931
|
-
minWidth:
|
|
932
|
-
}, e[2] =
|
|
933
|
-
const
|
|
616
|
+
minWidth: Ve
|
|
617
|
+
}, e[2] = a) : a = e[2];
|
|
618
|
+
const o = n.icon ?? null;
|
|
934
619
|
let l;
|
|
935
|
-
e[3] !==
|
|
936
|
-
width:
|
|
937
|
-
height:
|
|
620
|
+
e[3] !== r || e[4] !== n.icon || e[5] !== n.title ? (l = !n.icon && r ? /* @__PURE__ */ i(Kt, { sx: {
|
|
621
|
+
width: Ve - 7,
|
|
622
|
+
height: Ve - 7,
|
|
938
623
|
fontSize: 12
|
|
939
|
-
}, children: n.title }) : null, e[3] =
|
|
940
|
-
let
|
|
941
|
-
e[7] !==
|
|
942
|
-
|
|
624
|
+
}, children: n.title }) : null, e[3] = r, e[4] = n.icon, e[5] = n.title, e[6] = l) : l = e[6];
|
|
625
|
+
let d;
|
|
626
|
+
e[7] !== o || e[8] !== l ? (d = /* @__PURE__ */ L(en, { sx: a, children: [
|
|
627
|
+
o,
|
|
943
628
|
l
|
|
944
|
-
] }), e[7] =
|
|
629
|
+
] }), e[7] = o, e[8] = l, e[9] = d) : d = e[9];
|
|
945
630
|
let u;
|
|
946
|
-
e[10] !==
|
|
631
|
+
e[10] !== r || e[11] !== n.title ? (u = r ? /* @__PURE__ */ i(rn, { variant: "caption", sx: {
|
|
947
632
|
position: "absolute",
|
|
948
633
|
bottom: -18,
|
|
949
634
|
left: "50%",
|
|
@@ -954,97 +639,97 @@ const io = () => {
|
|
|
954
639
|
whiteSpace: "nowrap",
|
|
955
640
|
overflow: "hidden",
|
|
956
641
|
textOverflow: "ellipsis",
|
|
957
|
-
maxWidth:
|
|
958
|
-
}, children: n.title }) : null, e[10] =
|
|
959
|
-
let
|
|
960
|
-
return e[13] !==
|
|
961
|
-
|
|
642
|
+
maxWidth: $e - 28
|
|
643
|
+
}, children: n.title }) : null, e[10] = r, e[11] = n.title, e[12] = u) : u = e[12];
|
|
644
|
+
let c;
|
|
645
|
+
return e[13] !== s || e[14] !== d || e[15] !== u ? (c = /* @__PURE__ */ L(ct, { sx: s, children: [
|
|
646
|
+
d,
|
|
962
647
|
u
|
|
963
|
-
] }), e[13] =
|
|
648
|
+
] }), e[13] = s, e[14] = d, e[15] = u, e[16] = c) : c = e[16], c;
|
|
964
649
|
}
|
|
965
650
|
return null;
|
|
966
|
-
},
|
|
967
|
-
const e =
|
|
651
|
+
}, In = (t) => {
|
|
652
|
+
const e = B(10), {
|
|
968
653
|
open: n,
|
|
969
|
-
anchorEl:
|
|
970
|
-
children:
|
|
654
|
+
anchorEl: r,
|
|
655
|
+
children: s
|
|
971
656
|
} = t;
|
|
972
|
-
let
|
|
973
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
657
|
+
let a;
|
|
658
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
|
|
974
659
|
name: "offset",
|
|
975
660
|
options: {
|
|
976
661
|
offset: [6, 0]
|
|
977
662
|
}
|
|
978
|
-
}, e[0] =
|
|
979
|
-
let
|
|
980
|
-
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
663
|
+
}, e[0] = a) : a = e[0];
|
|
664
|
+
let o;
|
|
665
|
+
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = {
|
|
981
666
|
name: "preventOverflow",
|
|
982
667
|
options: {
|
|
983
668
|
padding: 8
|
|
984
669
|
}
|
|
985
|
-
}, e[1] =
|
|
670
|
+
}, e[1] = o) : o = e[1];
|
|
986
671
|
let l;
|
|
987
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [
|
|
672
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [a, o, {
|
|
988
673
|
name: "flip",
|
|
989
674
|
options: {
|
|
990
675
|
fallbackPlacements: ["right-end", "left-start"]
|
|
991
676
|
}
|
|
992
677
|
}], e[2] = l) : l = e[2];
|
|
993
|
-
let
|
|
994
|
-
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
678
|
+
let d;
|
|
679
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
995
680
|
pt: 0.5,
|
|
996
681
|
pb: 0.5,
|
|
997
682
|
maxHeight: "min(calc(100vh - 100px), 560px)",
|
|
998
683
|
overflowY: "auto",
|
|
999
684
|
overscrollBehavior: "contain"
|
|
1000
|
-
}, e[3] =
|
|
685
|
+
}, e[3] = d) : d = e[3];
|
|
1001
686
|
let u;
|
|
1002
|
-
e[4] !==
|
|
1003
|
-
let
|
|
1004
|
-
return e[6] !==
|
|
1005
|
-
},
|
|
1006
|
-
const e =
|
|
687
|
+
e[4] !== s ? (u = /* @__PURE__ */ i(nn, { sx: d, children: s }), e[4] = s, e[5] = u) : u = e[5];
|
|
688
|
+
let c;
|
|
689
|
+
return e[6] !== r || e[7] !== n || e[8] !== u ? (c = /* @__PURE__ */ i(on, { open: n, anchorEl: r, placement: "right-start", modifiers: l, children: u }), e[6] = r, e[7] = n, e[8] = u, e[9] = c) : c = e[9], c;
|
|
690
|
+
}, Pn = (t) => {
|
|
691
|
+
const e = B(57), {
|
|
1007
692
|
item: n,
|
|
1008
|
-
isOpen:
|
|
1009
|
-
selected:
|
|
1010
|
-
disabled:
|
|
1011
|
-
collapsed:
|
|
693
|
+
isOpen: r,
|
|
694
|
+
selected: s,
|
|
695
|
+
disabled: a,
|
|
696
|
+
collapsed: o,
|
|
1012
697
|
isSidebarFullyExpanded: l,
|
|
1013
|
-
isSidebarFullyCollapsed:
|
|
698
|
+
isSidebarFullyCollapsed: d,
|
|
1014
699
|
onClick: u,
|
|
1015
|
-
renderNested:
|
|
700
|
+
renderNested: c,
|
|
1016
701
|
onClose: m
|
|
1017
|
-
} = t, h = l === void 0 ? !0 : l, [f, p] =
|
|
1018
|
-
let
|
|
1019
|
-
e[0] !==
|
|
702
|
+
} = t, h = l === void 0 ? !0 : l, [f, p] = V(null), [g, T] = V(null);
|
|
703
|
+
let M;
|
|
704
|
+
e[0] !== o || e[1] !== r || e[2] !== d || e[3] !== h || e[4] !== n.children ? (M = () => o && d && n.children ? {
|
|
1020
705
|
fontSize: 18,
|
|
1021
706
|
position: "absolute",
|
|
1022
707
|
top: "41.5%",
|
|
1023
708
|
right: "2px",
|
|
1024
709
|
transform: "translateY(-50%) rotate(-90deg)"
|
|
1025
|
-
} : !
|
|
710
|
+
} : !o && h && n.children ? {
|
|
1026
711
|
ml: 0.5,
|
|
1027
|
-
transform: `rotate(${
|
|
712
|
+
transform: `rotate(${r ? 0 : -90}deg)`
|
|
1028
713
|
} : {
|
|
1029
714
|
display: "none"
|
|
1030
|
-
}, e[0] =
|
|
1031
|
-
const
|
|
1032
|
-
let
|
|
1033
|
-
e[6] !== k ? (
|
|
715
|
+
}, e[0] = o, e[1] = r, e[2] = d, e[3] = h, e[4] = n.children, e[5] = M) : M = e[5];
|
|
716
|
+
const x = M, y = n.children && !o, k = o ? 60 : 48;
|
|
717
|
+
let b;
|
|
718
|
+
e[6] !== k ? (b = {
|
|
1034
719
|
px: 1.4,
|
|
1035
720
|
height: k
|
|
1036
|
-
}, e[6] = k, e[7] =
|
|
1037
|
-
let
|
|
1038
|
-
e[8] !==
|
|
1039
|
-
selected:
|
|
1040
|
-
disabled:
|
|
1041
|
-
sx:
|
|
1042
|
-
}, e[8] =
|
|
1043
|
-
const z =
|
|
721
|
+
}, e[6] = k, e[7] = b) : b = e[7];
|
|
722
|
+
let D;
|
|
723
|
+
e[8] !== a || e[9] !== s || e[10] !== b ? (D = {
|
|
724
|
+
selected: s,
|
|
725
|
+
disabled: a,
|
|
726
|
+
sx: b
|
|
727
|
+
}, e[8] = a, e[9] = s, e[10] = b, e[11] = D) : D = e[11];
|
|
728
|
+
const z = D;
|
|
1044
729
|
let I;
|
|
1045
|
-
e[12] !==
|
|
1046
|
-
let
|
|
1047
|
-
e[15] !==
|
|
730
|
+
e[12] !== o || e[13] !== n ? (I = /* @__PURE__ */ i(wn, { item: n, collapsed: o }), e[12] = o, e[13] = n, e[14] = I) : I = e[14];
|
|
731
|
+
let _;
|
|
732
|
+
e[15] !== o || e[16] !== n.title ? (_ = !o && /* @__PURE__ */ i(tn, { primary: n.title, slotProps: {
|
|
1048
733
|
primary: {
|
|
1049
734
|
noWrap: !0,
|
|
1050
735
|
title: n.title
|
|
@@ -1058,384 +743,333 @@ const io = () => {
|
|
|
1058
743
|
overflow: "hidden",
|
|
1059
744
|
textOverflow: "ellipsis"
|
|
1060
745
|
}
|
|
1061
|
-
} }), e[15] =
|
|
1062
|
-
let
|
|
1063
|
-
e[18] !==
|
|
1064
|
-
let
|
|
1065
|
-
e[21] !== I || e[22] !==
|
|
746
|
+
} }), e[15] = o, e[16] = n.title, e[17] = _) : _ = e[17];
|
|
747
|
+
let v;
|
|
748
|
+
e[18] !== x || e[19] !== n.children ? (v = n.children ? /* @__PURE__ */ i(qt, { sx: x }) : null, e[18] = x, e[19] = n.children, e[20] = v) : v = e[20];
|
|
749
|
+
let A;
|
|
750
|
+
e[21] !== I || e[22] !== _ || e[23] !== v ? (A = /* @__PURE__ */ L(ht, { children: [
|
|
1066
751
|
I,
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
] }), e[21] = I, e[22] =
|
|
1070
|
-
const
|
|
1071
|
-
let
|
|
1072
|
-
e[25] !==
|
|
752
|
+
_,
|
|
753
|
+
v
|
|
754
|
+
] }), e[21] = I, e[22] = _, e[23] = v, e[24] = A) : A = e[24];
|
|
755
|
+
const Y = A;
|
|
756
|
+
let j;
|
|
757
|
+
e[25] !== o || e[26] !== n.children || e[27] !== n.title ? (j = n.children && o ? {
|
|
1073
758
|
onMouseEnter: (H) => {
|
|
1074
|
-
|
|
759
|
+
T(H.currentTarget), p(n.title);
|
|
1075
760
|
},
|
|
1076
761
|
onMouseLeave: () => {
|
|
1077
762
|
p(null);
|
|
1078
763
|
}
|
|
1079
|
-
} : {}, e[25] =
|
|
1080
|
-
let
|
|
1081
|
-
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
764
|
+
} : {}, e[25] = o, e[26] = n.children, e[27] = n.title, e[28] = j) : j = e[28];
|
|
765
|
+
let E;
|
|
766
|
+
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = {
|
|
1082
767
|
py: 0,
|
|
1083
768
|
px: 1,
|
|
1084
769
|
overflowX: "hidden"
|
|
1085
|
-
}, e[29] =
|
|
1086
|
-
let
|
|
1087
|
-
e[30] !==
|
|
770
|
+
}, e[29] = E) : E = e[29];
|
|
771
|
+
let w;
|
|
772
|
+
e[30] !== Y || e[31] !== z || e[32] !== n || e[33] !== u || e[34] !== m || e[35] !== y ? (w = y ? /* @__PURE__ */ i(On, { ...z, onClick: () => u?.(n), children: Y }) : /* @__PURE__ */ i(Cn, { ...z, to: n.to, href: n.href, params: n.params, search: n.search, onClick: m, children: Y }), e[30] = Y, e[31] = z, e[32] = n, e[33] = u, e[34] = m, e[35] = y, e[36] = w) : w = e[36];
|
|
1088
773
|
let O;
|
|
1089
|
-
e[37] !== g || e[38] !==
|
|
1090
|
-
let
|
|
1091
|
-
e[44] !==
|
|
1092
|
-
|
|
774
|
+
e[37] !== g || e[38] !== o || e[39] !== f || e[40] !== n.children || e[41] !== n.title || e[42] !== c ? (O = n.children && o ? /* @__PURE__ */ i(In, { open: n.title === f, anchorEl: g, children: c?.(n.children) }) : null, e[37] = g, e[38] = o, e[39] = f, e[40] = n.children, e[41] = n.title, e[42] = c, e[43] = O) : O = e[43];
|
|
775
|
+
let W;
|
|
776
|
+
e[44] !== j || e[45] !== w || e[46] !== O ? (W = /* @__PURE__ */ L(Jt, { ...j, sx: E, children: [
|
|
777
|
+
w,
|
|
1093
778
|
O
|
|
1094
|
-
] }), e[44] =
|
|
1095
|
-
const
|
|
1096
|
-
let
|
|
1097
|
-
e[48] !==
|
|
779
|
+
] }), e[44] = j, e[45] = w, e[46] = O, e[47] = W) : W = e[47];
|
|
780
|
+
const F = W;
|
|
781
|
+
let P;
|
|
782
|
+
e[48] !== o || e[49] !== r || e[50] !== n.children || e[51] !== c ? (P = n.children && !o ? /* @__PURE__ */ i(Tt, { in: r, timeout: "auto", unmountOnExit: !0, children: c?.(n.children) }) : null, e[48] = o, e[49] = r, e[50] = n.children, e[51] = c, e[52] = P) : P = e[52];
|
|
1098
783
|
let N;
|
|
1099
|
-
return e[53] !== n.to || e[54] !==
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
] }, n.to), e[53] = n.to, e[54] =
|
|
1103
|
-
},
|
|
1104
|
-
const e =
|
|
784
|
+
return e[53] !== n.to || e[54] !== F || e[55] !== P ? (N = /* @__PURE__ */ L(Ye, { children: [
|
|
785
|
+
F,
|
|
786
|
+
P
|
|
787
|
+
] }, n.to), e[53] = n.to, e[54] = F, e[55] = P, e[56] = N) : N = e[56], N;
|
|
788
|
+
}, En = (t) => !("kind" in t), An = (t) => "kind" in t && t.kind === "divider", Xe = (t) => "kind" in t && t.kind === "header", dt = (t) => {
|
|
789
|
+
const e = B(31), {
|
|
1105
790
|
subNavigation: n,
|
|
1106
|
-
depth:
|
|
1107
|
-
collapsed:
|
|
1108
|
-
isPopover:
|
|
1109
|
-
isSidebarFullyExpanded:
|
|
791
|
+
depth: r,
|
|
792
|
+
collapsed: s,
|
|
793
|
+
isPopover: a,
|
|
794
|
+
isSidebarFullyExpanded: o,
|
|
1110
795
|
isSidebarFullyCollapsed: l,
|
|
1111
|
-
expandedWidth:
|
|
796
|
+
expandedWidth: d,
|
|
1112
797
|
renderItem: u,
|
|
1113
|
-
activePath:
|
|
798
|
+
activePath: c,
|
|
1114
799
|
onNavigate: m,
|
|
1115
800
|
onClose: h
|
|
1116
|
-
} = t, f =
|
|
801
|
+
} = t, f = r === void 0 ? 0 : r, p = o === void 0 ? !0 : o;
|
|
1117
802
|
let g;
|
|
1118
803
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g = [], e[0] = g) : g = e[0];
|
|
1119
|
-
const [
|
|
1120
|
-
let
|
|
1121
|
-
e[1] !==
|
|
1122
|
-
|
|
1123
|
-
}, y = [
|
|
804
|
+
const [T, M] = V(g);
|
|
805
|
+
let x, y;
|
|
806
|
+
e[1] !== s ? (x = () => {
|
|
807
|
+
s && M([]);
|
|
808
|
+
}, y = [s], e[1] = s, e[2] = x, e[3] = y) : (x = e[2], y = e[3]), lt(x, y);
|
|
1124
809
|
let k;
|
|
1125
|
-
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = (
|
|
1126
|
-
const
|
|
1127
|
-
let
|
|
1128
|
-
e[5] !==
|
|
1129
|
-
const z =
|
|
810
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = (_) => M((v) => v.includes(_) ? v.filter((A) => A !== _) : [...v, _]), e[4] = k) : k = e[4];
|
|
811
|
+
const b = k;
|
|
812
|
+
let D;
|
|
813
|
+
e[5] !== c || e[6] !== s || e[7] !== f || e[8] !== d || e[9] !== h || e[10] !== m ? (D = (_) => /* @__PURE__ */ i(dt, { subNavigation: _, depth: f + 1, isPopover: s, expandedWidth: d, activePath: c, onNavigate: m, onClose: h }), e[5] = c, e[6] = s, e[7] = f, e[8] = d, e[9] = h, e[10] = m, e[11] = D) : D = e[11];
|
|
814
|
+
const z = D;
|
|
1130
815
|
let I;
|
|
1131
|
-
if (e[12] !==
|
|
1132
|
-
const
|
|
1133
|
-
let
|
|
1134
|
-
e[25] !==
|
|
816
|
+
if (e[12] !== c || e[13] !== s || e[14] !== f || e[15] !== d || e[16] !== a || e[17] !== l || e[18] !== p || e[19] !== h || e[20] !== T || e[21] !== u || e[22] !== z || e[23] !== n) {
|
|
817
|
+
const _ = n.filter(jn), v = a && f === 1 ? 0.5 : 0, A = f === 0 && !a ? 4 : 0.5, Y = (a ? 1 : 2) * (a ? f - 1 : f), j = a && f === 1 ? je : "auto", E = s ? $e : "auto";
|
|
818
|
+
let w;
|
|
819
|
+
e[25] !== A || e[26] !== Y || e[27] !== j || e[28] !== E || e[29] !== v ? (w = {
|
|
1135
820
|
padding: 0,
|
|
1136
|
-
mt:
|
|
1137
|
-
mb:
|
|
1138
|
-
pl:
|
|
1139
|
-
minWidth:
|
|
1140
|
-
width:
|
|
1141
|
-
}, e[25] =
|
|
821
|
+
mt: v,
|
|
822
|
+
mb: A,
|
|
823
|
+
pl: Y,
|
|
824
|
+
minWidth: j,
|
|
825
|
+
width: E
|
|
826
|
+
}, e[25] = A, e[26] = Y, e[27] = j, e[28] = E, e[29] = v, e[30] = w) : w = e[30], I = /* @__PURE__ */ i(Xt, { sx: w, children: _.map((O, W) => {
|
|
1142
827
|
if (Xe(O))
|
|
1143
|
-
return /* @__PURE__ */
|
|
828
|
+
return /* @__PURE__ */ i(Zt, { sx: {
|
|
1144
829
|
fontSize: 12,
|
|
1145
830
|
fontWeight: "700",
|
|
1146
|
-
height:
|
|
831
|
+
height: s ? 0 : 40,
|
|
1147
832
|
px: 2,
|
|
1148
|
-
minWidth:
|
|
833
|
+
minWidth: d,
|
|
1149
834
|
overflow: "hidden",
|
|
1150
835
|
textOverflow: "ellipsis",
|
|
1151
836
|
whiteSpace: "nowrap",
|
|
1152
837
|
zIndex: 2,
|
|
1153
838
|
bgcolor: "transparent",
|
|
1154
839
|
position: "static"
|
|
1155
|
-
}, children: O.title }, `subheader-${f}-${
|
|
1156
|
-
if (
|
|
1157
|
-
const N =
|
|
1158
|
-
return /* @__PURE__ */
|
|
840
|
+
}, children: O.title }, `subheader-${f}-${W}`);
|
|
841
|
+
if (An(O)) {
|
|
842
|
+
const N = _[W + 1];
|
|
843
|
+
return /* @__PURE__ */ i("li", { children: /* @__PURE__ */ i(Gt, { sx: {
|
|
1159
844
|
mx: 1,
|
|
1160
845
|
mt: 1,
|
|
1161
|
-
mb: Xe(N) && !
|
|
1162
|
-
} }) }, `divider-${f}-${
|
|
846
|
+
mb: Xe(N) && !s ? 0 : 1
|
|
847
|
+
} }) }, `divider-${f}-${W}`);
|
|
1163
848
|
}
|
|
1164
|
-
if (!
|
|
849
|
+
if (!En(O))
|
|
1165
850
|
return null;
|
|
1166
|
-
const
|
|
1167
|
-
return u ? /* @__PURE__ */
|
|
1168
|
-
collapsed: !!
|
|
1169
|
-
}) },
|
|
1170
|
-
}) }), e[12] =
|
|
851
|
+
const F = `item-${f}-${W}`, P = `${f}-${W}-${O.title}`;
|
|
852
|
+
return u ? /* @__PURE__ */ i(Ye, { children: u(O, {
|
|
853
|
+
collapsed: !!s
|
|
854
|
+
}) }, F) : /* @__PURE__ */ i(Pn, { item: O, isOpen: T.includes(P), selected: c === O.to, collapsed: s, isSidebarFullyExpanded: p, isSidebarFullyCollapsed: l, onClick: O.children && !s ? () => b(P) : void 0, renderNested: z, onClose: h }, F);
|
|
855
|
+
}) }), e[12] = c, e[13] = s, e[14] = f, e[15] = d, e[16] = a, e[17] = l, e[18] = p, e[19] = h, e[20] = T, e[21] = u, e[22] = z, e[23] = n, e[24] = I;
|
|
1171
856
|
} else
|
|
1172
857
|
I = e[24];
|
|
1173
858
|
return I;
|
|
1174
859
|
};
|
|
1175
|
-
function
|
|
860
|
+
function jn(t) {
|
|
1176
861
|
return !t.hidden;
|
|
1177
862
|
}
|
|
1178
|
-
const
|
|
1179
|
-
const e =
|
|
863
|
+
const $e = 84, je = 320, it = 64, zn = (t) => {
|
|
864
|
+
const e = B(29), {
|
|
1180
865
|
navigation: n,
|
|
1181
|
-
expanded:
|
|
1182
|
-
setExpanded:
|
|
1183
|
-
} = t,
|
|
1184
|
-
let c;
|
|
1185
|
-
e[0] !== l.breakpoints ? (c = l.breakpoints.up("sm"), e[0] = l.breakpoints, e[1] = c) : c = e[1];
|
|
1186
|
-
const u = Et(c);
|
|
866
|
+
expanded: r,
|
|
867
|
+
setExpanded: s
|
|
868
|
+
} = t, a = Ht(), o = Vt(), l = Ut();
|
|
1187
869
|
let d;
|
|
1188
|
-
e[
|
|
870
|
+
e[0] !== l.breakpoints ? (d = l.breakpoints.up("sm"), e[0] = l.breakpoints, e[1] = d) : d = e[1];
|
|
871
|
+
const u = xt(d);
|
|
872
|
+
let c;
|
|
873
|
+
e[2] !== r || e[3] !== a || e[4] !== n || e[5] !== o.location.pathname || e[6] !== s || e[7] !== u ? (c = (T) => /* @__PURE__ */ i(ct, { component: "nav", sx: {
|
|
1189
874
|
height: "100%",
|
|
1190
875
|
display: "flex",
|
|
1191
876
|
flexDirection: "column",
|
|
1192
877
|
justifyContent: "space-between",
|
|
1193
878
|
overflow: "auto",
|
|
1194
|
-
scrollbarGutter:
|
|
879
|
+
scrollbarGutter: T ? "stable" : "auto",
|
|
1195
880
|
overflowX: "hidden",
|
|
1196
|
-
pt: n[0] && Xe(n[0]) && !
|
|
1197
|
-
}, children: /* @__PURE__ */
|
|
1198
|
-
const m =
|
|
881
|
+
pt: n[0] && Xe(n[0]) && !T ? 0 : 2
|
|
882
|
+
}, children: /* @__PURE__ */ i(dt, { subNavigation: n, collapsed: T, isSidebarFullyExpanded: r, isSidebarFullyCollapsed: !r, expandedWidth: je, activePath: o.location.pathname, onNavigate: a, onClose: u ? void 0 : () => s(!1) }) }), e[2] = r, e[3] = a, e[4] = n, e[5] = o.location.pathname, e[6] = s, e[7] = u, e[8] = c) : c = e[8];
|
|
883
|
+
const m = c;
|
|
1199
884
|
if (u) {
|
|
1200
|
-
const
|
|
1201
|
-
let
|
|
1202
|
-
e[9] !==
|
|
885
|
+
const T = r ? je : $e, M = r ? je : $e;
|
|
886
|
+
let x;
|
|
887
|
+
e[9] !== M ? (x = {
|
|
1203
888
|
position: "absolute",
|
|
1204
|
-
top: `${
|
|
1205
|
-
height: `calc(100% - ${
|
|
1206
|
-
width:
|
|
889
|
+
top: `${it}px`,
|
|
890
|
+
height: `calc(100% - ${it}px)`,
|
|
891
|
+
width: M,
|
|
1207
892
|
borderTop: "1px solid",
|
|
1208
893
|
borderColor: "var(--mui-palette-divider)"
|
|
1209
|
-
}, e[9] =
|
|
894
|
+
}, e[9] = M, e[10] = x) : x = e[10];
|
|
1210
895
|
let y;
|
|
1211
|
-
e[11] !==
|
|
1212
|
-
width:
|
|
1213
|
-
"& .MuiDrawer-paper":
|
|
1214
|
-
}, e[11] =
|
|
1215
|
-
const k = !
|
|
1216
|
-
let
|
|
1217
|
-
e[14] !== m || e[15] !== k ? (
|
|
1218
|
-
let
|
|
1219
|
-
return e[17] !== y || e[18] !==
|
|
896
|
+
e[11] !== T || e[12] !== x ? (y = {
|
|
897
|
+
width: T,
|
|
898
|
+
"& .MuiDrawer-paper": x
|
|
899
|
+
}, e[11] = T, e[12] = x, e[13] = y) : y = e[13];
|
|
900
|
+
const k = !r;
|
|
901
|
+
let b;
|
|
902
|
+
e[14] !== m || e[15] !== k ? (b = m(k), e[14] = m, e[15] = k, e[16] = b) : b = e[16];
|
|
903
|
+
let D;
|
|
904
|
+
return e[17] !== y || e[18] !== b ? (D = /* @__PURE__ */ i(Qe, { variant: "permanent", sx: y, children: b }), e[17] = y, e[18] = b, e[19] = D) : D = e[19], D;
|
|
1220
905
|
}
|
|
1221
906
|
let h;
|
|
1222
|
-
e[20] !==
|
|
1223
|
-
const f = !
|
|
907
|
+
e[20] !== s ? (h = () => s(!1), e[20] = s, e[21] = h) : h = e[21];
|
|
908
|
+
const f = !r;
|
|
1224
909
|
let p;
|
|
1225
910
|
e[22] !== m || e[23] !== f ? (p = m(f), e[22] = m, e[23] = f, e[24] = p) : p = e[24];
|
|
1226
911
|
let g;
|
|
1227
|
-
return e[25] !==
|
|
1228
|
-
},
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
data: t
|
|
1232
|
-
}) => {
|
|
1233
|
-
const e = await On(t.redirectUri), n = await et.fetchQuery({
|
|
1234
|
-
queryKey: ["graph", "me", "memberOf"],
|
|
1235
|
-
queryFn: async () => Je.request({
|
|
1236
|
-
method: "GET",
|
|
1237
|
-
url: "https://graph.microsoft.com/v1.0/me/memberOf?$select=displayName",
|
|
1238
|
-
headers: {
|
|
1239
|
-
Authorization: `Bearer ${await tt()}`
|
|
1240
|
-
}
|
|
1241
|
-
}).then((o) => o.data.value.map((r) => r.displayName)),
|
|
1242
|
-
staleTime: 1 / 0,
|
|
1243
|
-
gcTime: 1 / 0
|
|
1244
|
-
});
|
|
1245
|
-
return {
|
|
1246
|
-
...e.user,
|
|
1247
|
-
groups: n
|
|
1248
|
-
};
|
|
1249
|
-
}), po = Ye({
|
|
1250
|
-
method: "GET"
|
|
1251
|
-
}).handler(async () => await et.fetchQuery({
|
|
1252
|
-
queryKey: ["graph", "me"],
|
|
1253
|
-
queryFn: async () => await Je.request({
|
|
1254
|
-
method: "GET",
|
|
1255
|
-
url: "https://graph.microsoft.com/v1.0/me?$select=id,displayName,jobTitle,mail,mobilePhone",
|
|
1256
|
-
headers: {
|
|
1257
|
-
Authorization: `Bearer ${await tt()}`
|
|
1258
|
-
}
|
|
1259
|
-
}).then((t) => t.data),
|
|
1260
|
-
staleTime: 1 / 0,
|
|
1261
|
-
gcTime: 1 / 0
|
|
1262
|
-
})), go = Ye({
|
|
1263
|
-
method: "GET"
|
|
1264
|
-
}).handler(async () => await et.fetchQuery({
|
|
1265
|
-
queryKey: ["graph", "me", "photo"],
|
|
1266
|
-
queryFn: async () => {
|
|
1267
|
-
const t = await Je.request({
|
|
1268
|
-
method: "GET",
|
|
1269
|
-
url: "https://graph.microsoft.com/v1.0/me/photo/$value",
|
|
1270
|
-
headers: {
|
|
1271
|
-
Authorization: `Bearer ${await tt()}`
|
|
1272
|
-
},
|
|
1273
|
-
responseType: "arraybuffer"
|
|
1274
|
-
}), e = t.headers["content-type"] ?? "image/jpeg", n = Buffer.from(t.data).toString("base64");
|
|
1275
|
-
return `data:${e};base64,${n}`;
|
|
1276
|
-
},
|
|
1277
|
-
staleTime: 1 / 0,
|
|
1278
|
-
gcTime: 1 / 0
|
|
1279
|
-
})), gt = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), yo = () => {
|
|
1280
|
-
const t = R(105), [e, n] = q(), [o, r] = q("settings"), s = !!e, {
|
|
1281
|
-
t: i,
|
|
912
|
+
return e[25] !== r || e[26] !== h || e[27] !== p ? (g = /* @__PURE__ */ i(Qe, { open: r, onClose: h, children: p }), e[25] = r, e[26] = h, e[27] = p, e[28] = g) : g = e[28], g;
|
|
913
|
+
}, st = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), Nn = () => {
|
|
914
|
+
const t = B(105), [e, n] = V(), [r, s] = V("settings"), a = !!e, {
|
|
915
|
+
t: o,
|
|
1282
916
|
i18n: l
|
|
1283
|
-
} =
|
|
1284
|
-
mode:
|
|
917
|
+
} = jt(), {
|
|
918
|
+
mode: d,
|
|
1285
919
|
setMode: u
|
|
1286
|
-
} =
|
|
1287
|
-
let
|
|
1288
|
-
if (t[0] !== l || t[1] !==
|
|
1289
|
-
const
|
|
920
|
+
} = bt();
|
|
921
|
+
let c, m, h, f, p, g, T;
|
|
922
|
+
if (t[0] !== l || t[1] !== d || t[2] !== u || t[3] !== o) {
|
|
923
|
+
const W = (Array.isArray(l.options.supportedLngs) ? l.options.supportedLngs : []).filter($n), F = new Intl.DisplayNames([l.language], {
|
|
1290
924
|
type: "language"
|
|
1291
925
|
});
|
|
1292
|
-
let
|
|
1293
|
-
t[11] !==
|
|
926
|
+
let P;
|
|
927
|
+
t[11] !== o ? (P = o("Layout.Light"), t[11] = o, t[12] = P) : P = t[12];
|
|
1294
928
|
let N;
|
|
1295
|
-
t[13] !==
|
|
929
|
+
t[13] !== P ? (N = {
|
|
1296
930
|
mode: "light",
|
|
1297
|
-
icon:
|
|
1298
|
-
label:
|
|
1299
|
-
}, t[13] =
|
|
931
|
+
icon: dn,
|
|
932
|
+
label: P
|
|
933
|
+
}, t[13] = P, t[14] = N) : N = t[14];
|
|
1300
934
|
let H;
|
|
1301
|
-
t[15] !==
|
|
1302
|
-
let
|
|
1303
|
-
t[17] !== H ? (
|
|
935
|
+
t[15] !== o ? (H = o("Layout.Dark"), t[15] = o, t[16] = H) : H = t[16];
|
|
936
|
+
let G;
|
|
937
|
+
t[17] !== H ? (G = {
|
|
1304
938
|
mode: "dark",
|
|
1305
|
-
icon:
|
|
939
|
+
icon: ln,
|
|
1306
940
|
label: H
|
|
1307
|
-
}, t[17] = H, t[18] =
|
|
1308
|
-
let
|
|
1309
|
-
t[19] !==
|
|
1310
|
-
let
|
|
1311
|
-
t[21] !==
|
|
941
|
+
}, t[17] = H, t[18] = G) : G = t[18];
|
|
942
|
+
let X;
|
|
943
|
+
t[19] !== o ? (X = o("Layout.System"), t[19] = o, t[20] = X) : X = t[20];
|
|
944
|
+
let Z;
|
|
945
|
+
t[21] !== X ? (Z = {
|
|
1312
946
|
mode: "system",
|
|
1313
|
-
icon:
|
|
1314
|
-
label:
|
|
1315
|
-
}, t[21] =
|
|
947
|
+
icon: fn,
|
|
948
|
+
label: X
|
|
949
|
+
}, t[21] = X, t[22] = Z) : Z = t[22];
|
|
950
|
+
let le;
|
|
951
|
+
t[23] !== N || t[24] !== G || t[25] !== Z ? (le = [N, G, Z], t[23] = N, t[24] = G, t[25] = Z, t[26] = le) : le = t[26];
|
|
952
|
+
const ce = le;
|
|
953
|
+
let de;
|
|
954
|
+
t[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (de = ($) => n($.currentTarget), t[27] = de) : de = t[27], h = de;
|
|
1316
955
|
let ue;
|
|
1317
|
-
t[
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
956
|
+
t[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ue = () => {
|
|
957
|
+
n(void 0), setTimeout(() => s("settings"), 300);
|
|
958
|
+
}, t[28] = ue) : ue = t[28], m = ue;
|
|
959
|
+
let fe;
|
|
960
|
+
t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (fe = ($) => () => s($), t[29] = fe) : fe = t[29];
|
|
961
|
+
const me = fe;
|
|
1321
962
|
let he;
|
|
1322
|
-
t[
|
|
1323
|
-
n(void 0), setTimeout(() => r("settings"), 300);
|
|
1324
|
-
}, t[28] = he) : he = t[28], m = he;
|
|
1325
|
-
let pe;
|
|
1326
|
-
t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pe = (j) => () => r(j), t[29] = pe) : pe = t[29];
|
|
1327
|
-
const ge = pe;
|
|
1328
|
-
let ye;
|
|
1329
|
-
t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ye = {
|
|
963
|
+
t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (he = {
|
|
1330
964
|
backgroundColor: "transparent"
|
|
1331
|
-
}, t[30] =
|
|
1332
|
-
let
|
|
1333
|
-
t[31] !==
|
|
1334
|
-
let
|
|
1335
|
-
t[33] !==
|
|
1336
|
-
let
|
|
1337
|
-
t[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
965
|
+
}, t[30] = he) : he = t[30];
|
|
966
|
+
let q;
|
|
967
|
+
t[31] !== o ? (q = o("Layout.Settings"), t[31] = o, t[32] = q) : q = t[32];
|
|
968
|
+
let K;
|
|
969
|
+
t[33] !== q ? (K = /* @__PURE__ */ i(Re, { sx: he, children: q }), t[33] = q, t[34] = K) : K = t[34];
|
|
970
|
+
let pe, ge;
|
|
971
|
+
t[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pe = me("theme"), ge = {
|
|
1338
972
|
py: 0.3
|
|
1339
|
-
}, t[35] =
|
|
1340
|
-
let
|
|
1341
|
-
t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1342
|
-
let Z;
|
|
1343
|
-
t[38] !== i ? (Z = i("Layout.Appearance"), t[38] = i, t[39] = Z) : Z = t[39];
|
|
1344
|
-
const We = fe.find((j) => j.mode === c)?.label;
|
|
973
|
+
}, t[35] = pe, t[36] = ge) : (pe = t[35], ge = t[36]);
|
|
974
|
+
let ye;
|
|
975
|
+
t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ye = /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(an, {}) }), t[37] = ye) : ye = t[37];
|
|
1345
976
|
let J;
|
|
1346
|
-
t[
|
|
1347
|
-
|
|
1348
|
-
|
|
977
|
+
t[38] !== o ? (J = o("Layout.Appearance"), t[38] = o, t[39] = J) : J = t[39];
|
|
978
|
+
const We = ce.find(($) => $.mode === d)?.label;
|
|
979
|
+
let Q;
|
|
980
|
+
t[40] !== J || t[41] !== We ? (Q = /* @__PURE__ */ i(se, { primary: J, secondary: We }), t[40] = J, t[41] = We, t[42] = Q) : Q = t[42];
|
|
981
|
+
let Te;
|
|
982
|
+
t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Te = /* @__PURE__ */ i(nt, {}), t[43] = Te) : Te = t[43];
|
|
1349
983
|
let ee;
|
|
1350
|
-
t[44] !==
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
] }), t[44] =
|
|
1355
|
-
let
|
|
1356
|
-
t[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
984
|
+
t[44] !== Q ? (ee = /* @__PURE__ */ L(ie, { onClick: pe, sx: ge, children: [
|
|
985
|
+
ye,
|
|
986
|
+
Q,
|
|
987
|
+
Te
|
|
988
|
+
] }), t[44] = Q, t[45] = ee) : ee = t[45];
|
|
989
|
+
let xe, be;
|
|
990
|
+
t[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xe = me("language"), be = {
|
|
1357
991
|
py: 0.3
|
|
1358
|
-
}, t[46] =
|
|
1359
|
-
let
|
|
1360
|
-
t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1361
|
-
let Le;
|
|
1362
|
-
t[49] !== i ? (Le = i("Layout.Language"), t[49] = i, t[50] = Le) : Le = t[50];
|
|
1363
|
-
let De;
|
|
1364
|
-
t[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (De = /* @__PURE__ */ a(lt, {}), t[51] = De) : De = t[51];
|
|
1365
|
-
const Re = /* @__PURE__ */ D(ce, { onClick: we, sx: ke, children: [
|
|
1366
|
-
ve,
|
|
1367
|
-
/* @__PURE__ */ a(ae, { primary: Le, secondary: gt(B.of(l.language)) }),
|
|
1368
|
-
De
|
|
1369
|
-
] });
|
|
992
|
+
}, t[46] = xe, t[47] = be) : (xe = t[46], be = t[47]);
|
|
993
|
+
let Se;
|
|
994
|
+
t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(mn, {}) }), t[48] = Se) : Se = t[48];
|
|
1370
995
|
let Me;
|
|
1371
|
-
t[
|
|
996
|
+
t[49] !== o ? (Me = o("Layout.Language"), t[49] = o, t[50] = Me) : Me = t[50];
|
|
997
|
+
let ke;
|
|
998
|
+
t[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ke = /* @__PURE__ */ i(nt, {}), t[51] = ke) : ke = t[51];
|
|
999
|
+
const Ue = /* @__PURE__ */ L(ie, { onClick: xe, sx: be, children: [
|
|
1000
|
+
Se,
|
|
1001
|
+
/* @__PURE__ */ i(se, { primary: Me, secondary: st(F.of(l.language)) }),
|
|
1002
|
+
ke
|
|
1003
|
+
] });
|
|
1004
|
+
let Le;
|
|
1005
|
+
t[52] !== K || t[53] !== ee || t[54] !== Ue ? (Le = /* @__PURE__ */ L(Pe, { component: "nav", subheader: K, children: [
|
|
1372
1006
|
ee,
|
|
1373
|
-
|
|
1374
|
-
] }), t[52] =
|
|
1375
|
-
let
|
|
1376
|
-
t[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1007
|
+
Ue
|
|
1008
|
+
] }), t[52] = K, t[53] = ee, t[54] = Ue, t[55] = Le) : Le = t[55], f = Le;
|
|
1009
|
+
let De, _e;
|
|
1010
|
+
t[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (De = me("settings"), _e = {
|
|
1377
1011
|
backgroundColor: "transparent",
|
|
1378
1012
|
display: "flex",
|
|
1379
1013
|
alignItems: "center",
|
|
1380
1014
|
px: 1,
|
|
1381
1015
|
cursor: "pointer"
|
|
1382
|
-
}, t[56] =
|
|
1383
|
-
let
|
|
1384
|
-
t[58] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1016
|
+
}, t[56] = De, t[57] = _e) : (De = t[56], _e = t[57]);
|
|
1017
|
+
let ve;
|
|
1018
|
+
t[58] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ve = /* @__PURE__ */ i(Ee, { size: "small", sx: {
|
|
1385
1019
|
mr: 0.5
|
|
1386
|
-
}, children: /* @__PURE__ */
|
|
1020
|
+
}, children: /* @__PURE__ */ i(tt, { fontSize: "small" }) }), t[58] = ve) : ve = t[58];
|
|
1387
1021
|
let te;
|
|
1388
|
-
t[59] !==
|
|
1022
|
+
t[59] !== o ? (te = o("Layout.Appearance"), t[59] = o, t[60] = te) : te = t[60];
|
|
1389
1023
|
let ne;
|
|
1390
|
-
t[61] !== te ? (ne = /* @__PURE__ */
|
|
1391
|
-
|
|
1024
|
+
t[61] !== te ? (ne = /* @__PURE__ */ L(Re, { onClick: De, sx: _e, children: [
|
|
1025
|
+
ve,
|
|
1392
1026
|
" ",
|
|
1393
1027
|
te
|
|
1394
1028
|
] }), t[61] = te, t[62] = ne) : ne = t[62];
|
|
1395
1029
|
let oe;
|
|
1396
|
-
t[63] !==
|
|
1030
|
+
t[63] !== ce || t[64] !== d || t[65] !== u ? (oe = ce.map(($) => {
|
|
1397
1031
|
const {
|
|
1398
|
-
mode:
|
|
1399
|
-
icon:
|
|
1400
|
-
label:
|
|
1401
|
-
} =
|
|
1402
|
-
return /* @__PURE__ */
|
|
1403
|
-
u(
|
|
1404
|
-
}, selected:
|
|
1405
|
-
/* @__PURE__ */
|
|
1406
|
-
/* @__PURE__ */
|
|
1407
|
-
] },
|
|
1408
|
-
}), t[63] =
|
|
1409
|
-
let
|
|
1410
|
-
t[67] !== ne || t[68] !== oe ? (
|
|
1411
|
-
let
|
|
1412
|
-
t[70] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1032
|
+
mode: Fe,
|
|
1033
|
+
icon: ft,
|
|
1034
|
+
label: mt
|
|
1035
|
+
} = $;
|
|
1036
|
+
return /* @__PURE__ */ L(ie, { onClick: () => {
|
|
1037
|
+
u(Fe), m();
|
|
1038
|
+
}, selected: d === Fe, children: [
|
|
1039
|
+
/* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(ft, {}) }),
|
|
1040
|
+
/* @__PURE__ */ i(se, { primary: mt })
|
|
1041
|
+
] }, Fe);
|
|
1042
|
+
}), t[63] = ce, t[64] = d, t[65] = u, t[66] = oe) : oe = t[66];
|
|
1043
|
+
let Oe;
|
|
1044
|
+
t[67] !== ne || t[68] !== oe ? (Oe = /* @__PURE__ */ i(Pe, { subheader: ne, children: oe }), t[67] = ne, t[68] = oe, t[69] = Oe) : Oe = t[69], T = Oe, c = Pe;
|
|
1045
|
+
let Ce, we;
|
|
1046
|
+
t[70] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ce = me("settings"), we = {
|
|
1413
1047
|
backgroundColor: "transparent",
|
|
1414
1048
|
display: "flex",
|
|
1415
1049
|
alignItems: "center",
|
|
1416
1050
|
px: 1,
|
|
1417
1051
|
cursor: "pointer"
|
|
1418
|
-
}, t[70] =
|
|
1419
|
-
let
|
|
1420
|
-
t[72] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1052
|
+
}, t[70] = Ce, t[71] = we) : (Ce = t[70], we = t[71]);
|
|
1053
|
+
let Ie;
|
|
1054
|
+
t[72] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ie = /* @__PURE__ */ i(Ee, { size: "small", sx: {
|
|
1421
1055
|
mr: 0.5
|
|
1422
|
-
}, children: /* @__PURE__ */
|
|
1423
|
-
let
|
|
1424
|
-
t[73] !==
|
|
1425
|
-
|
|
1056
|
+
}, children: /* @__PURE__ */ i(tt, { fontSize: "small" }) }), t[72] = Ie) : Ie = t[72];
|
|
1057
|
+
let re;
|
|
1058
|
+
t[73] !== o ? (re = o("Layout.Language"), t[73] = o, t[74] = re) : re = t[74], t[75] !== re ? (p = /* @__PURE__ */ L(Re, { onClick: Ce, sx: we, children: [
|
|
1059
|
+
Ie,
|
|
1426
1060
|
" ",
|
|
1427
|
-
|
|
1428
|
-
] }), t[75] =
|
|
1429
|
-
/* @__PURE__ */
|
|
1430
|
-
/* @__PURE__ */
|
|
1431
|
-
] },
|
|
1061
|
+
re
|
|
1062
|
+
] }), t[75] = re, t[76] = p) : p = t[76], g = W.map(($) => /* @__PURE__ */ L(ie, { onClick: () => l.changeLanguage($).finally(() => m()), selected: l.resolvedLanguage === $, children: [
|
|
1063
|
+
/* @__PURE__ */ i(ae, { children: l.resolvedLanguage === $ && /* @__PURE__ */ i(cn, {}) }),
|
|
1064
|
+
/* @__PURE__ */ i(se, { primary: st(F.of($)) })
|
|
1065
|
+
] }, $)), t[0] = l, t[1] = d, t[2] = u, t[3] = o, t[4] = c, t[5] = m, t[6] = h, t[7] = f, t[8] = p, t[9] = g, t[10] = T;
|
|
1432
1066
|
} else
|
|
1433
|
-
|
|
1434
|
-
let
|
|
1435
|
-
t[77] !==
|
|
1436
|
-
const
|
|
1067
|
+
c = t[4], m = t[5], h = t[6], f = t[7], p = t[8], g = t[9], T = t[10];
|
|
1068
|
+
let M;
|
|
1069
|
+
t[77] !== c || t[78] !== p || t[79] !== g ? (M = /* @__PURE__ */ i(c, { subheader: p, children: g }), t[77] = c, t[78] = p, t[79] = g, t[80] = M) : M = t[80];
|
|
1070
|
+
const x = M;
|
|
1437
1071
|
let y;
|
|
1438
|
-
t[81] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */
|
|
1072
|
+
t[81] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = /* @__PURE__ */ i(et, { sx: {
|
|
1439
1073
|
width: {
|
|
1440
1074
|
xs: 32,
|
|
1441
1075
|
sm: 40
|
|
@@ -1446,68 +1080,65 @@ const Fe = 84, je = 320, pt = 64, ho = (t) => {
|
|
|
1446
1080
|
}
|
|
1447
1081
|
} }), t[81] = y) : y = t[81];
|
|
1448
1082
|
let k;
|
|
1449
|
-
t[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1083
|
+
t[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (k = /* @__PURE__ */ i(Et, { fallback: /* @__PURE__ */ i(et, { sx: {
|
|
1084
|
+
width: {
|
|
1085
|
+
xs: 32,
|
|
1086
|
+
sm: 40
|
|
1087
|
+
},
|
|
1088
|
+
height: {
|
|
1089
|
+
xs: 32,
|
|
1090
|
+
sm: 40
|
|
1091
|
+
}
|
|
1092
|
+
} }) }), t[82] = k) : k = t[82];
|
|
1093
|
+
let b;
|
|
1094
|
+
t[83] !== h ? (b = /* @__PURE__ */ L(Ee, { size: "small", edge: "end", onClick: h, children: [
|
|
1095
|
+
y,
|
|
1096
|
+
k
|
|
1097
|
+
] }), t[83] = h, t[84] = b) : b = t[84];
|
|
1098
|
+
let D;
|
|
1099
|
+
t[85] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (D = {
|
|
1454
1100
|
width: 240
|
|
1455
|
-
}, t[85] =
|
|
1101
|
+
}, t[85] = D) : D = t[85];
|
|
1456
1102
|
let z;
|
|
1457
|
-
t[86] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */
|
|
1103
|
+
t[86] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = /* @__PURE__ */ i(St, {}), t[86] = z) : z = t[86];
|
|
1458
1104
|
let I;
|
|
1459
|
-
t[87] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */
|
|
1460
|
-
let
|
|
1461
|
-
t[88] !==
|
|
1462
|
-
let
|
|
1463
|
-
t[90] !==
|
|
1105
|
+
t[87] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = /* @__PURE__ */ i(ae, { children: /* @__PURE__ */ i(un, { color: "error" }) }), t[87] = I) : I = t[87];
|
|
1106
|
+
let _;
|
|
1107
|
+
t[88] !== o ? (_ = o("Layout.Logout"), t[88] = o, t[89] = _) : _ = t[89];
|
|
1108
|
+
let v;
|
|
1109
|
+
t[90] !== _ ? (v = /* @__PURE__ */ L(Pe, { disablePadding: !0, children: [
|
|
1464
1110
|
z,
|
|
1465
|
-
/* @__PURE__ */
|
|
1111
|
+
/* @__PURE__ */ L(ie, { onClick: Yn, children: [
|
|
1466
1112
|
I,
|
|
1467
|
-
/* @__PURE__ */
|
|
1113
|
+
/* @__PURE__ */ i(se, { primary: _ })
|
|
1468
1114
|
] })
|
|
1469
|
-
] }), t[90] =
|
|
1470
|
-
const
|
|
1471
|
-
let
|
|
1472
|
-
t[92] !==
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
] }), t[92] =
|
|
1478
|
-
let
|
|
1479
|
-
t[97] !== e || t[98] !== m || t[99] !==
|
|
1115
|
+
] }), t[90] = _, t[91] = v) : v = t[91];
|
|
1116
|
+
const A = r === "settings" && f, Y = r === "theme" && T, j = r === "language" && x;
|
|
1117
|
+
let E;
|
|
1118
|
+
t[92] !== v || t[93] !== A || t[94] !== Y || t[95] !== j ? (E = /* @__PURE__ */ L(Ae, { sx: D, children: [
|
|
1119
|
+
v,
|
|
1120
|
+
A,
|
|
1121
|
+
Y,
|
|
1122
|
+
j
|
|
1123
|
+
] }), t[92] = v, t[93] = A, t[94] = Y, t[95] = j, t[96] = E) : E = t[96];
|
|
1124
|
+
let w;
|
|
1125
|
+
t[97] !== e || t[98] !== m || t[99] !== a || t[100] !== E ? (w = /* @__PURE__ */ i(Mt, { anchorEl: e, open: a, onClose: m, children: E }), t[97] = e, t[98] = m, t[99] = a, t[100] = E, t[101] = w) : w = t[101];
|
|
1480
1126
|
let O;
|
|
1481
|
-
return t[102] !==
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
] }), t[102] =
|
|
1127
|
+
return t[102] !== w || t[103] !== b ? (O = /* @__PURE__ */ L(Ye, { children: [
|
|
1128
|
+
b,
|
|
1129
|
+
w
|
|
1130
|
+
] }), t[102] = w, t[103] = b, t[104] = O) : O = t[104], O;
|
|
1485
1131
|
};
|
|
1486
|
-
function
|
|
1132
|
+
function $n(t) {
|
|
1487
1133
|
return t !== "cimode";
|
|
1488
1134
|
}
|
|
1489
|
-
function
|
|
1490
|
-
return /* @__PURE__ */ a($t, { src: t, sx: {
|
|
1491
|
-
width: {
|
|
1492
|
-
xs: 32,
|
|
1493
|
-
sm: 40
|
|
1494
|
-
},
|
|
1495
|
-
height: {
|
|
1496
|
-
xs: 32,
|
|
1497
|
-
sm: 40
|
|
1498
|
-
}
|
|
1499
|
-
} });
|
|
1500
|
-
}
|
|
1501
|
-
function To(t) {
|
|
1502
|
-
return /* @__PURE__ */ a(ae, { primary: t.displayName.split("/")[0], secondary: t.jobTitle });
|
|
1503
|
-
}
|
|
1504
|
-
function bo() {
|
|
1135
|
+
function Yn() {
|
|
1505
1136
|
return console.log("Logout clicked");
|
|
1506
1137
|
}
|
|
1507
|
-
const
|
|
1138
|
+
const ut = 3600 * 24 * 365, Wn = Ct().server(() => at("navigationOpen") === "true").client(() => {
|
|
1508
1139
|
const t = document.cookie.split("; ").find((e) => e.startsWith("navigationOpen="));
|
|
1509
1140
|
return t ? t.split("=")[1] === "true" : !1;
|
|
1510
|
-
}),
|
|
1141
|
+
}), Un = Ze("div")(({
|
|
1511
1142
|
theme: t
|
|
1512
1143
|
}) => ({
|
|
1513
1144
|
display: "flex",
|
|
@@ -1515,70 +1146,70 @@ const vt = 3600 * 24 * 365, wo = Wt().server(() => yt("navigationOpen") === "tru
|
|
|
1515
1146
|
justifyContent: "flex-end",
|
|
1516
1147
|
padding: t.spacing(0, 1),
|
|
1517
1148
|
...t.mixins.toolbar
|
|
1518
|
-
})),
|
|
1519
|
-
const e =
|
|
1520
|
-
let
|
|
1521
|
-
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1522
|
-
let
|
|
1523
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1149
|
+
})), Fn = (t) => {
|
|
1150
|
+
const e = B(29), [n, r] = V(Wn), s = !!Ft(), a = !!Rt();
|
|
1151
|
+
let o, l;
|
|
1152
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = /* @__PURE__ */ i(kt, {}), l = /* @__PURE__ */ i(Lt, {}), e[0] = o, e[1] = l) : (o = e[0], l = e[1]);
|
|
1153
|
+
let d;
|
|
1154
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
1524
1155
|
display: "flex",
|
|
1525
1156
|
height: "100dvh",
|
|
1526
1157
|
maxHeight: "100dvh",
|
|
1527
1158
|
overflow: "hidden",
|
|
1528
1159
|
width: "100%"
|
|
1529
|
-
}, e[2] =
|
|
1160
|
+
}, e[2] = d) : d = e[2];
|
|
1530
1161
|
let u;
|
|
1531
1162
|
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = {
|
|
1532
1163
|
borderBottom: "1px solid",
|
|
1533
1164
|
borderColor: "var(--mui-palette-divider)",
|
|
1534
1165
|
boxShadow: "none"
|
|
1535
1166
|
}, e[3] = u) : u = e[3];
|
|
1536
|
-
let
|
|
1537
|
-
e[4] !== n || e[5] !== t.navigation ? (
|
|
1538
|
-
|
|
1167
|
+
let c;
|
|
1168
|
+
e[4] !== n || e[5] !== t.navigation ? (c = t.navigation && /* @__PURE__ */ i(Ee, { onClick: () => {
|
|
1169
|
+
r(Rn);
|
|
1539
1170
|
}, sx: {
|
|
1540
1171
|
marginRight: 2
|
|
1541
|
-
}, children: n ? /* @__PURE__ */
|
|
1172
|
+
}, children: n ? /* @__PURE__ */ i(Yt, {}) : /* @__PURE__ */ i($t, {}) }), e[4] = n, e[5] = t.navigation, e[6] = c) : c = e[6];
|
|
1542
1173
|
let m, h;
|
|
1543
|
-
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */
|
|
1174
|
+
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (m = /* @__PURE__ */ i(vn, {}), h = /* @__PURE__ */ i(Nn, {}), e[7] = m, e[8] = h) : (m = e[7], h = e[8]);
|
|
1544
1175
|
let f;
|
|
1545
|
-
e[9] !==
|
|
1546
|
-
|
|
1176
|
+
e[9] !== c ? (f = /* @__PURE__ */ i(Dt, { color: "transparent", position: "fixed", sx: u, children: /* @__PURE__ */ L(_t, { children: [
|
|
1177
|
+
c,
|
|
1547
1178
|
m,
|
|
1548
1179
|
h
|
|
1549
|
-
] }) }), e[9] =
|
|
1180
|
+
] }) }), e[9] = c, e[10] = f) : f = e[10];
|
|
1550
1181
|
let p;
|
|
1551
|
-
e[11] !== n || e[12] !== t.navigation ? (p = t.navigation && /* @__PURE__ */
|
|
1552
|
-
|
|
1182
|
+
e[11] !== n || e[12] !== t.navigation ? (p = t.navigation && /* @__PURE__ */ i(zn, { navigation: t.navigation, expanded: n, setExpanded: (D) => {
|
|
1183
|
+
r(D), document.cookie = `navigationOpen=${D}; max-age=${ut}; path=/`;
|
|
1553
1184
|
} }), e[11] = n, e[12] = t.navigation, e[13] = p) : p = e[13];
|
|
1554
|
-
let g,
|
|
1555
|
-
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1185
|
+
let g, T;
|
|
1186
|
+
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = {
|
|
1556
1187
|
flexGrow: 1,
|
|
1557
1188
|
display: "flex",
|
|
1558
1189
|
flexDirection: "column",
|
|
1559
1190
|
minWidth: 0,
|
|
1560
1191
|
height: "100%",
|
|
1561
1192
|
overflow: "hidden"
|
|
1562
|
-
}, g = /* @__PURE__ */
|
|
1563
|
-
let
|
|
1564
|
-
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
1193
|
+
}, g = /* @__PURE__ */ i(Un, {}), e[14] = g, e[15] = T) : (g = e[14], T = e[15]);
|
|
1194
|
+
let M;
|
|
1195
|
+
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = {
|
|
1565
1196
|
flex: 1,
|
|
1566
1197
|
overflow: "auto",
|
|
1567
1198
|
position: "relative"
|
|
1568
|
-
}, e[16] =
|
|
1569
|
-
let
|
|
1570
|
-
e[17] !== t.children ? (
|
|
1199
|
+
}, e[16] = M) : M = e[16];
|
|
1200
|
+
let x;
|
|
1201
|
+
e[17] !== t.children ? (x = /* @__PURE__ */ L(Ae, { component: "main", sx: T, children: [
|
|
1571
1202
|
g,
|
|
1572
|
-
/* @__PURE__ */
|
|
1573
|
-
] }), e[17] = t.children, e[18] =
|
|
1203
|
+
/* @__PURE__ */ i(Ae, { sx: M, children: t.children })
|
|
1204
|
+
] }), e[17] = t.children, e[18] = x) : x = e[18];
|
|
1574
1205
|
let y;
|
|
1575
|
-
e[19] !==
|
|
1206
|
+
e[19] !== x || e[20] !== f || e[21] !== p ? (y = /* @__PURE__ */ L(Ae, { sx: d, children: [
|
|
1576
1207
|
f,
|
|
1577
1208
|
p,
|
|
1578
|
-
|
|
1579
|
-
] }), e[19] =
|
|
1209
|
+
x
|
|
1210
|
+
] }), e[19] = x, e[20] = f, e[21] = p, e[22] = y) : y = e[22];
|
|
1580
1211
|
let k;
|
|
1581
|
-
e[23] !==
|
|
1212
|
+
e[23] !== s || e[24] !== a ? (k = (s || a) && /* @__PURE__ */ i(vt, { sx: {
|
|
1582
1213
|
position: "fixed",
|
|
1583
1214
|
top: {
|
|
1584
1215
|
xs: 56,
|
|
@@ -1586,61 +1217,60 @@ const vt = 3600 * 24 * 365, wo = Wt().server(() => yt("navigationOpen") === "tru
|
|
|
1586
1217
|
},
|
|
1587
1218
|
left: 0,
|
|
1588
1219
|
right: 0
|
|
1589
|
-
} }), e[23] =
|
|
1590
|
-
let
|
|
1591
|
-
return e[26] !== y || e[27] !== k ? (
|
|
1592
|
-
|
|
1220
|
+
} }), e[23] = s, e[24] = a, e[25] = k) : k = e[25];
|
|
1221
|
+
let b;
|
|
1222
|
+
return e[26] !== y || e[27] !== k ? (b = /* @__PURE__ */ L(Ye, { children: [
|
|
1223
|
+
o,
|
|
1593
1224
|
l,
|
|
1594
1225
|
y,
|
|
1595
1226
|
k
|
|
1596
|
-
] }), e[26] = y, e[27] = k, e[28] =
|
|
1227
|
+
] }), e[26] = y, e[27] = k, e[28] = b) : b = e[28], b;
|
|
1597
1228
|
};
|
|
1598
|
-
function
|
|
1229
|
+
function Rn(t) {
|
|
1599
1230
|
const e = !t;
|
|
1600
|
-
return document.cookie = `navigationOpen=${e}; max-age=${
|
|
1231
|
+
return document.cookie = `navigationOpen=${e}; max-age=${ut}; path=/`, e;
|
|
1601
1232
|
}
|
|
1602
|
-
const
|
|
1603
|
-
|
|
1604
|
-
resources:
|
|
1233
|
+
const Bn = 1440 * 365;
|
|
1234
|
+
R.use(It).use(zt).init({
|
|
1235
|
+
resources: Je,
|
|
1605
1236
|
fallbackLng: "en",
|
|
1606
|
-
supportedLngs: Object.keys(
|
|
1237
|
+
supportedLngs: Object.keys(Je),
|
|
1607
1238
|
detection: {
|
|
1608
1239
|
caches: ["cookie"],
|
|
1609
|
-
cookieMinutes:
|
|
1240
|
+
cookieMinutes: Bn
|
|
1610
1241
|
},
|
|
1611
1242
|
interpolation: {
|
|
1612
1243
|
escapeValue: !1
|
|
1613
1244
|
}
|
|
1614
1245
|
});
|
|
1615
|
-
const
|
|
1616
|
-
const e =
|
|
1246
|
+
const Fo = (t) => {
|
|
1247
|
+
const e = B(9), {
|
|
1617
1248
|
navigation: n,
|
|
1618
|
-
theme:
|
|
1619
|
-
children:
|
|
1620
|
-
} = t,
|
|
1621
|
-
let
|
|
1622
|
-
e[0] !==
|
|
1623
|
-
|
|
1624
|
-
}), e[0] =
|
|
1249
|
+
theme: r,
|
|
1250
|
+
children: s
|
|
1251
|
+
} = t, a = At(Hn);
|
|
1252
|
+
let o;
|
|
1253
|
+
e[0] !== a ? (o = () => (a(), R.on("languageChanged", a), () => {
|
|
1254
|
+
R.off("languageChanged", a);
|
|
1255
|
+
}), e[0] = a, e[1] = o) : o = e[1];
|
|
1625
1256
|
let l;
|
|
1626
|
-
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [], e[2] = l) : l = e[2],
|
|
1627
|
-
let
|
|
1628
|
-
e[3] !==
|
|
1257
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [], e[2] = l) : l = e[2], lt(o, l);
|
|
1258
|
+
let d;
|
|
1259
|
+
e[3] !== s || e[4] !== n ? (d = /* @__PURE__ */ i(qe, { dateAdapter: Dn, adapterLocale: R.language, children: /* @__PURE__ */ i(_n, { children: /* @__PURE__ */ i(Fn, { navigation: n, children: s }) }) }, R.language), e[3] = s, e[4] = n, e[5] = d) : d = e[5];
|
|
1629
1260
|
let u;
|
|
1630
|
-
return e[6] !==
|
|
1631
|
-
},
|
|
1632
|
-
const t =
|
|
1633
|
-
|
|
1261
|
+
return e[6] !== d || e[7] !== r ? (u = /* @__PURE__ */ i(Ot, { theme: r, children: d }), e[6] = d, e[7] = r, e[8] = u) : u = e[8], u;
|
|
1262
|
+
}, Ro = wt().handler(async () => {
|
|
1263
|
+
const t = at(R.services.languageDetector.options.lookupCookie) || "en";
|
|
1264
|
+
ze.config(ze.core.locales[t]()), C.locale(t), await R.changeLanguage(t);
|
|
1634
1265
|
});
|
|
1635
|
-
function
|
|
1636
|
-
|
|
1266
|
+
function Hn() {
|
|
1267
|
+
ze.config(ze.core.locales[R.language]()), C.locale(R.language);
|
|
1637
1268
|
}
|
|
1638
1269
|
export {
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
Di as setSSRLanguage
|
|
1270
|
+
Fo as LayoutProvider,
|
|
1271
|
+
Vo as WISTRON_PRIMARY_COLOR,
|
|
1272
|
+
Go as WISTRON_SECONDARY_COLOR,
|
|
1273
|
+
Xo as rootRouteHead,
|
|
1274
|
+
Ro as setSSRLanguage
|
|
1645
1275
|
};
|
|
1646
1276
|
//# sourceMappingURL=index.js.map
|