wcz-test 6.24.7 → 6.24.8
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/ApprovalStatus-lESbUD_x.js +6 -0
- package/dist/DialogsContext-2Yy6yhzQ.js +5 -0
- package/dist/DialogsHooks-DWkC9zAf.js +113 -0
- package/dist/FileHooks-kGkVKOf9.js +2694 -0
- package/dist/FileMeta-Bzeo3ie9.js +17 -0
- package/dist/RouterListItemButton-C_SG0uka.js +17 -0
- package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
- package/dist/client.js +8 -9
- package/dist/components.js +632 -1454
- package/dist/env-4ZoUrNqp.js +27 -0
- package/dist/exports/server.d.ts +0 -3
- package/dist/hooks.js +371 -985
- package/dist/index.js +1580 -2940
- package/dist/models.js +147 -164
- package/dist/queries.js +519 -911
- package/dist/queryClient--EvGPhnh.js +5 -0
- package/dist/server.js +40 -63
- package/dist/session-7yb0BETM.js +75 -0
- package/dist/{chunks/utils-MD9YwOtu.js → utils-CZraUjBd.js} +24 -34
- package/dist/utils.js +6 -7
- package/dist/vite.js +33 -42
- package/package.json +3 -6
- package/dist/chunks/ApprovalStatus-BtAVFn5p.js +0 -8
- package/dist/chunks/ApprovalStatus-BtAVFn5p.js.map +0 -1
- package/dist/chunks/DialogsContext-DoU_8Eeu.js +0 -6
- package/dist/chunks/DialogsContext-DoU_8Eeu.js.map +0 -1
- package/dist/chunks/DialogsHooks-DOT0O_b4.js +0 -278
- package/dist/chunks/DialogsHooks-DOT0O_b4.js.map +0 -1
- package/dist/chunks/FileHooks-DCnXvUtq.js +0 -3554
- package/dist/chunks/FileHooks-DCnXvUtq.js.map +0 -1
- package/dist/chunks/FileMeta-G1oT3mYK.js +0 -18
- package/dist/chunks/FileMeta-G1oT3mYK.js.map +0 -1
- package/dist/chunks/RouterListItemButton-DTYXk1kh.js +0 -35
- package/dist/chunks/RouterListItemButton-DTYXk1kh.js.map +0 -1
- package/dist/chunks/env-gsqZ6zZD.js +0 -30
- package/dist/chunks/env-gsqZ6zZD.js.map +0 -1
- package/dist/chunks/queryClient-CNvC95mU.js +0 -6
- package/dist/chunks/queryClient-CNvC95mU.js.map +0 -1
- package/dist/chunks/session-vW7WZadj.js +0 -91
- package/dist/chunks/session-vW7WZadj.js.map +0 -1
- package/dist/chunks/utils-MD9YwOtu.js.map +0 -1
- package/dist/client.js.map +0 -1
- package/dist/components.js.map +0 -1
- package/dist/hooks.js.map +0 -1
- package/dist/index.js.map +0 -1
- package/dist/models.js.map +0 -1
- package/dist/queries.js.map +0 -1
- package/dist/server.js.map +0 -1
- package/dist/utils.js.map +0 -1
- package/dist/vite.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,1069 +1,768 @@
|
|
|
1
|
-
import { jsx, jsxs, Fragment as
|
|
2
|
-
import { c } from "react/compiler-runtime";
|
|
3
|
-
import { Stack, Typography, Collapse, useMediaQuery, useColorScheme, ListItemButton as
|
|
4
|
-
import { createServerFn, createIsomorphicFn } from "@tanstack/react-start";
|
|
5
|
-
import { getCookie } from "@tanstack/react-start/server";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import * as
|
|
10
|
-
import { useState, useId, useRef, Fragment, useEffect, Suspense, useEffectEvent } from "react";
|
|
11
|
-
import { useTranslation, initReactI18next } from "react-i18next";
|
|
12
|
-
import { resources } from "virtual:wcz-layout";
|
|
13
|
-
import
|
|
14
|
-
import { D as
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import { useThemeProps, styled, useTheme } from "@mui/material/styles";
|
|
18
|
-
import { useIsFetching, useIsMutating } from "@tanstack/react-query";
|
|
19
|
-
import { c as
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import { useNavigate, useRouterState, Await } from "@tanstack/react-router";
|
|
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 { R as
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import { q as
|
|
48
|
-
import { r as
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
|
|
56
|
-
|
|
1
|
+
import { jsx as p, jsxs as q, Fragment as Ut } from "react/jsx-runtime";
|
|
2
|
+
import { c as ae } from "react/compiler-runtime";
|
|
3
|
+
import { Stack as Wt, Typography as Ft, Collapse as qt, useMediaQuery as Bt, useColorScheme as Ht, ListItemButton as ve, ListItemText as ye, ListItemIcon as Te, ListItem as Vt, Avatar as Gt, ListSubheader as Ge, List as Re, IconButton as Ye, Box as ze, Menu as Kt, InitColorSchemeScript as Xt, CssBaseline as Zt, AppBar as Jt, Toolbar as Qt, LinearProgress as er, ThemeProvider as tr } from "@mui/material";
|
|
4
|
+
import { createServerFn as Fe, createIsomorphicFn as rr } from "@tanstack/react-start";
|
|
5
|
+
import { getCookie as Dt } from "@tanstack/react-start/server";
|
|
6
|
+
import G from "dayjs";
|
|
7
|
+
import ie from "i18next";
|
|
8
|
+
import nr from "i18next-browser-languagedetector";
|
|
9
|
+
import * as ne from "react";
|
|
10
|
+
import { useState as ce, useId as or, useRef as dt, Fragment as qe, useEffect as Lt, Suspense as ir, useEffectEvent as ar } from "react";
|
|
11
|
+
import { useTranslation as sr, initReactI18next as cr } from "react-i18next";
|
|
12
|
+
import { resources as mt } from "virtual:wcz-layout";
|
|
13
|
+
import ge from "zod";
|
|
14
|
+
import { D as lr } from "./DialogsContext-2Yy6yhzQ.js";
|
|
15
|
+
import ur from "@mui/icons-material/Menu";
|
|
16
|
+
import fr from "@mui/icons-material/MenuOpen";
|
|
17
|
+
import { useThemeProps as dr, styled as at, useTheme as mr } from "@mui/material/styles";
|
|
18
|
+
import { useIsFetching as pr, useIsMutating as hr } from "@tanstack/react-query";
|
|
19
|
+
import { c as yr } from "./env-4ZoUrNqp.js";
|
|
20
|
+
import At from "@mui/material/Box";
|
|
21
|
+
import pt from "@mui/material/Drawer";
|
|
22
|
+
import { useNavigate as gr, useRouterState as vr, Await as ht } from "@tanstack/react-router";
|
|
23
|
+
import Tr from "@mui/material/Divider";
|
|
24
|
+
import br from "@mui/material/List";
|
|
25
|
+
import xr from "@mui/material/ListSubheader";
|
|
26
|
+
import Sr from "@mui/icons-material/ExpandMore";
|
|
27
|
+
import Er from "@mui/material/Avatar";
|
|
28
|
+
import _r from "@mui/material/ListItem";
|
|
29
|
+
import Or from "@mui/material/ListItemButton";
|
|
30
|
+
import wr from "@mui/material/ListItemIcon";
|
|
31
|
+
import Cr from "@mui/material/ListItemText";
|
|
32
|
+
import Mr from "@mui/material/Paper";
|
|
33
|
+
import Pr from "@mui/material/Popper";
|
|
34
|
+
import kr from "@mui/material/Typography";
|
|
35
|
+
import { R as Ir } from "./RouterListItemButton-C_SG0uka.js";
|
|
36
|
+
import Dr from "@mui/icons-material/AccountCircle";
|
|
37
|
+
import yt from "@mui/icons-material/ArrowBack";
|
|
38
|
+
import Lr from "@mui/icons-material/Brightness4";
|
|
39
|
+
import gt from "@mui/icons-material/ChevronRight";
|
|
40
|
+
import Ar from "@mui/icons-material/DarkMode";
|
|
41
|
+
import Rr from "@mui/icons-material/Done";
|
|
42
|
+
import jr from "@mui/icons-material/LightMode";
|
|
43
|
+
import $r from "@mui/icons-material/Logout";
|
|
44
|
+
import Yr from "@mui/icons-material/SettingsBrightness";
|
|
45
|
+
import zr from "@mui/icons-material/Translate";
|
|
46
|
+
import st from "axios";
|
|
47
|
+
import { q as ct } from "./queryClient--EvGPhnh.js";
|
|
48
|
+
import { r as Nr, g as lt } from "./session-7yb0BETM.js";
|
|
49
|
+
import { g as Ur } from "./_commonjsHelpers-DaMA6jEr.js";
|
|
50
|
+
import Wr from "dayjs/plugin/weekOfYear.js";
|
|
51
|
+
import Fr from "dayjs/plugin/customParseFormat.js";
|
|
52
|
+
import qr from "dayjs/plugin/localizedFormat.js";
|
|
53
|
+
import Br from "dayjs/plugin/isBetween.js";
|
|
54
|
+
import Hr from "dayjs/plugin/advancedFormat.js";
|
|
55
|
+
import { r as Yo } from "./utils-CZraUjBd.js";
|
|
56
|
+
function Ue() {
|
|
57
|
+
return Ue = Object.assign ? Object.assign.bind() : function(t) {
|
|
57
58
|
for (var e = 1; e < arguments.length; e++) {
|
|
58
|
-
var
|
|
59
|
-
for (var
|
|
59
|
+
var r = arguments[e];
|
|
60
|
+
for (var o in r) ({}).hasOwnProperty.call(r, o) && (t[o] = r[o]);
|
|
60
61
|
}
|
|
61
|
-
return
|
|
62
|
-
},
|
|
62
|
+
return t;
|
|
63
|
+
}, Ue.apply(null, arguments);
|
|
63
64
|
}
|
|
64
|
-
function
|
|
65
|
-
if (
|
|
66
|
-
var
|
|
67
|
-
for (var
|
|
68
|
-
if (
|
|
69
|
-
|
|
70
|
-
}
|
|
71
|
-
return
|
|
65
|
+
function Vr(t, e) {
|
|
66
|
+
if (t == null) return {};
|
|
67
|
+
var r = {};
|
|
68
|
+
for (var o in t) if ({}.hasOwnProperty.call(t, o)) {
|
|
69
|
+
if (e.indexOf(o) !== -1) continue;
|
|
70
|
+
r[o] = t[o];
|
|
71
|
+
}
|
|
72
|
+
return r;
|
|
72
73
|
}
|
|
73
|
-
var
|
|
74
|
-
var
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
case c2:
|
|
86
|
-
switch (a = a.type, a) {
|
|
87
|
-
case l:
|
|
88
|
-
case m:
|
|
89
|
-
case e:
|
|
90
|
-
case g:
|
|
74
|
+
var je = { exports: {} }, $e = { exports: {} }, $ = {};
|
|
75
|
+
var vt;
|
|
76
|
+
function Gr() {
|
|
77
|
+
if (vt) return $;
|
|
78
|
+
vt = 1;
|
|
79
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, o = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, s = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, a = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, n = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, l = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, f = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, d = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, h = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, v = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, g = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, T = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, E = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, P = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, A = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
80
|
+
function x(c) {
|
|
81
|
+
if (typeof c == "object" && c !== null) {
|
|
82
|
+
var j = c.$$typeof;
|
|
83
|
+
switch (j) {
|
|
84
|
+
case e:
|
|
85
|
+
switch (c = c.type, c) {
|
|
91
86
|
case f:
|
|
92
|
-
case
|
|
93
|
-
|
|
87
|
+
case d:
|
|
88
|
+
case o:
|
|
89
|
+
case a:
|
|
90
|
+
case s:
|
|
91
|
+
case h:
|
|
92
|
+
return c;
|
|
94
93
|
default:
|
|
95
|
-
switch (
|
|
96
|
-
case
|
|
94
|
+
switch (c = c && c.$$typeof, c) {
|
|
95
|
+
case l:
|
|
96
|
+
case u:
|
|
97
|
+
case b:
|
|
98
|
+
case g:
|
|
97
99
|
case n:
|
|
98
|
-
|
|
99
|
-
case r2:
|
|
100
|
-
case h:
|
|
101
|
-
return a;
|
|
100
|
+
return c;
|
|
102
101
|
default:
|
|
103
|
-
return
|
|
102
|
+
return j;
|
|
104
103
|
}
|
|
105
104
|
}
|
|
106
|
-
case
|
|
107
|
-
return
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
function
|
|
112
|
-
return
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
return
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
return z(a) === n;
|
|
142
|
-
};
|
|
143
|
-
reactIs_production_min.isFragment = function(a) {
|
|
144
|
-
return z(a) === e;
|
|
145
|
-
};
|
|
146
|
-
reactIs_production_min.isLazy = function(a) {
|
|
147
|
-
return z(a) === t;
|
|
148
|
-
};
|
|
149
|
-
reactIs_production_min.isMemo = function(a) {
|
|
150
|
-
return z(a) === r2;
|
|
151
|
-
};
|
|
152
|
-
reactIs_production_min.isPortal = function(a) {
|
|
153
|
-
return z(a) === d;
|
|
154
|
-
};
|
|
155
|
-
reactIs_production_min.isProfiler = function(a) {
|
|
156
|
-
return z(a) === g;
|
|
157
|
-
};
|
|
158
|
-
reactIs_production_min.isStrictMode = function(a) {
|
|
159
|
-
return z(a) === f;
|
|
160
|
-
};
|
|
161
|
-
reactIs_production_min.isSuspense = function(a) {
|
|
162
|
-
return z(a) === p;
|
|
163
|
-
};
|
|
164
|
-
reactIs_production_min.isValidElementType = function(a) {
|
|
165
|
-
return "string" === typeof a || "function" === typeof a || a === e || a === m || a === g || a === f || a === p || a === q || "object" === typeof a && null !== a && (a.$$typeof === t || a.$$typeof === r2 || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
|
|
166
|
-
};
|
|
167
|
-
reactIs_production_min.typeOf = z;
|
|
168
|
-
return reactIs_production_min;
|
|
105
|
+
case r:
|
|
106
|
+
return j;
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
function _(c) {
|
|
111
|
+
return x(c) === d;
|
|
112
|
+
}
|
|
113
|
+
return $.AsyncMode = f, $.ConcurrentMode = d, $.ContextConsumer = l, $.ContextProvider = n, $.Element = e, $.ForwardRef = u, $.Fragment = o, $.Lazy = b, $.Memo = g, $.Portal = r, $.Profiler = a, $.StrictMode = s, $.Suspense = h, $.isAsyncMode = function(c) {
|
|
114
|
+
return _(c) || x(c) === f;
|
|
115
|
+
}, $.isConcurrentMode = _, $.isContextConsumer = function(c) {
|
|
116
|
+
return x(c) === l;
|
|
117
|
+
}, $.isContextProvider = function(c) {
|
|
118
|
+
return x(c) === n;
|
|
119
|
+
}, $.isElement = function(c) {
|
|
120
|
+
return typeof c == "object" && c !== null && c.$$typeof === e;
|
|
121
|
+
}, $.isForwardRef = function(c) {
|
|
122
|
+
return x(c) === u;
|
|
123
|
+
}, $.isFragment = function(c) {
|
|
124
|
+
return x(c) === o;
|
|
125
|
+
}, $.isLazy = function(c) {
|
|
126
|
+
return x(c) === b;
|
|
127
|
+
}, $.isMemo = function(c) {
|
|
128
|
+
return x(c) === g;
|
|
129
|
+
}, $.isPortal = function(c) {
|
|
130
|
+
return x(c) === r;
|
|
131
|
+
}, $.isProfiler = function(c) {
|
|
132
|
+
return x(c) === a;
|
|
133
|
+
}, $.isStrictMode = function(c) {
|
|
134
|
+
return x(c) === s;
|
|
135
|
+
}, $.isSuspense = function(c) {
|
|
136
|
+
return x(c) === h;
|
|
137
|
+
}, $.isValidElementType = function(c) {
|
|
138
|
+
return typeof c == "string" || typeof c == "function" || c === o || c === d || c === a || c === s || c === h || c === v || typeof c == "object" && c !== null && (c.$$typeof === b || c.$$typeof === g || c.$$typeof === n || c.$$typeof === l || c.$$typeof === u || c.$$typeof === E || c.$$typeof === P || c.$$typeof === A || c.$$typeof === T);
|
|
139
|
+
}, $.typeOf = x, $;
|
|
169
140
|
}
|
|
170
|
-
var
|
|
171
|
-
var
|
|
172
|
-
function
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
case REACT_CONCURRENT_MODE_TYPE:
|
|
209
|
-
case REACT_FRAGMENT_TYPE:
|
|
210
|
-
case REACT_PROFILER_TYPE:
|
|
211
|
-
case REACT_STRICT_MODE_TYPE:
|
|
212
|
-
case REACT_SUSPENSE_TYPE:
|
|
213
|
-
return type;
|
|
214
|
-
default:
|
|
215
|
-
var $$typeofType = type && type.$$typeof;
|
|
216
|
-
switch ($$typeofType) {
|
|
217
|
-
case REACT_CONTEXT_TYPE:
|
|
218
|
-
case REACT_FORWARD_REF_TYPE:
|
|
219
|
-
case REACT_LAZY_TYPE:
|
|
220
|
-
case REACT_MEMO_TYPE:
|
|
221
|
-
case REACT_PROVIDER_TYPE:
|
|
222
|
-
return $$typeofType;
|
|
223
|
-
default:
|
|
224
|
-
return $$typeof;
|
|
225
|
-
}
|
|
226
|
-
}
|
|
227
|
-
case REACT_PORTAL_TYPE:
|
|
228
|
-
return $$typeof;
|
|
229
|
-
}
|
|
230
|
-
}
|
|
231
|
-
return void 0;
|
|
232
|
-
}
|
|
233
|
-
var AsyncMode = REACT_ASYNC_MODE_TYPE;
|
|
234
|
-
var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
|
|
235
|
-
var ContextConsumer = REACT_CONTEXT_TYPE;
|
|
236
|
-
var ContextProvider = REACT_PROVIDER_TYPE;
|
|
237
|
-
var Element = REACT_ELEMENT_TYPE;
|
|
238
|
-
var ForwardRef = REACT_FORWARD_REF_TYPE;
|
|
239
|
-
var Fragment2 = REACT_FRAGMENT_TYPE;
|
|
240
|
-
var Lazy = REACT_LAZY_TYPE;
|
|
241
|
-
var Memo = REACT_MEMO_TYPE;
|
|
242
|
-
var Portal = REACT_PORTAL_TYPE;
|
|
243
|
-
var Profiler = REACT_PROFILER_TYPE;
|
|
244
|
-
var StrictMode = REACT_STRICT_MODE_TYPE;
|
|
245
|
-
var Suspense2 = REACT_SUSPENSE_TYPE;
|
|
246
|
-
var hasWarnedAboutDeprecatedIsAsyncMode = false;
|
|
247
|
-
function isAsyncMode(object) {
|
|
248
|
-
{
|
|
249
|
-
if (!hasWarnedAboutDeprecatedIsAsyncMode) {
|
|
250
|
-
hasWarnedAboutDeprecatedIsAsyncMode = true;
|
|
251
|
-
console["warn"]("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.");
|
|
252
|
-
}
|
|
141
|
+
var Y = {};
|
|
142
|
+
var Tt;
|
|
143
|
+
function Kr() {
|
|
144
|
+
return Tt || (Tt = 1, process.env.NODE_ENV !== "production" && (function() {
|
|
145
|
+
var t = typeof Symbol == "function" && Symbol.for, e = t ? /* @__PURE__ */ Symbol.for("react.element") : 60103, r = t ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, o = t ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, s = t ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, a = t ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, n = t ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, l = t ? /* @__PURE__ */ Symbol.for("react.context") : 60110, f = t ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, d = t ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, u = t ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, h = t ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, v = t ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, g = t ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, b = t ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, T = t ? /* @__PURE__ */ Symbol.for("react.block") : 60121, E = t ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, P = t ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, A = t ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
|
|
146
|
+
function x(m) {
|
|
147
|
+
return typeof m == "string" || typeof m == "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
|
|
148
|
+
m === o || m === d || m === a || m === s || m === h || m === v || typeof m == "object" && m !== null && (m.$$typeof === b || m.$$typeof === g || m.$$typeof === n || m.$$typeof === l || m.$$typeof === u || m.$$typeof === E || m.$$typeof === P || m.$$typeof === A || m.$$typeof === T);
|
|
149
|
+
}
|
|
150
|
+
function _(m) {
|
|
151
|
+
if (typeof m == "object" && m !== null) {
|
|
152
|
+
var Q = m.$$typeof;
|
|
153
|
+
switch (Q) {
|
|
154
|
+
case e:
|
|
155
|
+
var oe = m.type;
|
|
156
|
+
switch (oe) {
|
|
157
|
+
case f:
|
|
158
|
+
case d:
|
|
159
|
+
case o:
|
|
160
|
+
case a:
|
|
161
|
+
case s:
|
|
162
|
+
case h:
|
|
163
|
+
return oe;
|
|
164
|
+
default:
|
|
165
|
+
var se = oe && oe.$$typeof;
|
|
166
|
+
switch (se) {
|
|
167
|
+
case l:
|
|
168
|
+
case u:
|
|
169
|
+
case b:
|
|
170
|
+
case g:
|
|
171
|
+
case n:
|
|
172
|
+
return se;
|
|
173
|
+
default:
|
|
174
|
+
return Q;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
case r:
|
|
178
|
+
return Q;
|
|
253
179
|
}
|
|
254
|
-
return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
|
|
255
|
-
}
|
|
256
|
-
function isConcurrentMode(object) {
|
|
257
|
-
return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
|
|
258
|
-
}
|
|
259
|
-
function isContextConsumer(object) {
|
|
260
|
-
return typeOf(object) === REACT_CONTEXT_TYPE;
|
|
261
|
-
}
|
|
262
|
-
function isContextProvider(object) {
|
|
263
|
-
return typeOf(object) === REACT_PROVIDER_TYPE;
|
|
264
|
-
}
|
|
265
|
-
function isElement(object) {
|
|
266
|
-
return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
|
|
267
|
-
}
|
|
268
|
-
function isForwardRef(object) {
|
|
269
|
-
return typeOf(object) === REACT_FORWARD_REF_TYPE;
|
|
270
|
-
}
|
|
271
|
-
function isFragment(object) {
|
|
272
|
-
return typeOf(object) === REACT_FRAGMENT_TYPE;
|
|
273
180
|
}
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
reactIs_development.isSuspense = isSuspense;
|
|
318
|
-
reactIs_development.isValidElementType = isValidElementType;
|
|
319
|
-
reactIs_development.typeOf = typeOf;
|
|
320
|
-
})();
|
|
321
|
-
}
|
|
322
|
-
return reactIs_development;
|
|
181
|
+
}
|
|
182
|
+
var c = f, j = d, J = l, B = n, N = e, U = u, K = o, ee = b, Z = g, W = r, F = a, R = s, H = h, te = !1;
|
|
183
|
+
function V(m) {
|
|
184
|
+
return te || (te = !0, console.warn("The ReactIs.isAsyncMode() alias has been deprecated, and will be removed in React 17+. Update your code to use ReactIs.isConcurrentMode() instead. It has the exact same API.")), i(m) || _(m) === f;
|
|
185
|
+
}
|
|
186
|
+
function i(m) {
|
|
187
|
+
return _(m) === d;
|
|
188
|
+
}
|
|
189
|
+
function y(m) {
|
|
190
|
+
return _(m) === l;
|
|
191
|
+
}
|
|
192
|
+
function w(m) {
|
|
193
|
+
return _(m) === n;
|
|
194
|
+
}
|
|
195
|
+
function O(m) {
|
|
196
|
+
return typeof m == "object" && m !== null && m.$$typeof === e;
|
|
197
|
+
}
|
|
198
|
+
function S(m) {
|
|
199
|
+
return _(m) === u;
|
|
200
|
+
}
|
|
201
|
+
function k(m) {
|
|
202
|
+
return _(m) === o;
|
|
203
|
+
}
|
|
204
|
+
function C(m) {
|
|
205
|
+
return _(m) === b;
|
|
206
|
+
}
|
|
207
|
+
function M(m) {
|
|
208
|
+
return _(m) === g;
|
|
209
|
+
}
|
|
210
|
+
function I(m) {
|
|
211
|
+
return _(m) === r;
|
|
212
|
+
}
|
|
213
|
+
function L(m) {
|
|
214
|
+
return _(m) === a;
|
|
215
|
+
}
|
|
216
|
+
function D(m) {
|
|
217
|
+
return _(m) === s;
|
|
218
|
+
}
|
|
219
|
+
function X(m) {
|
|
220
|
+
return _(m) === h;
|
|
221
|
+
}
|
|
222
|
+
Y.AsyncMode = c, Y.ConcurrentMode = j, Y.ContextConsumer = J, Y.ContextProvider = B, Y.Element = N, Y.ForwardRef = U, Y.Fragment = K, Y.Lazy = ee, Y.Memo = Z, Y.Portal = W, Y.Profiler = F, Y.StrictMode = R, Y.Suspense = H, Y.isAsyncMode = V, Y.isConcurrentMode = i, Y.isContextConsumer = y, Y.isContextProvider = w, Y.isElement = O, Y.isForwardRef = S, Y.isFragment = k, Y.isLazy = C, Y.isMemo = M, Y.isPortal = I, Y.isProfiler = L, Y.isStrictMode = D, Y.isSuspense = X, Y.isValidElementType = x, Y.typeOf = _;
|
|
223
|
+
})()), Y;
|
|
323
224
|
}
|
|
324
|
-
var
|
|
325
|
-
function
|
|
326
|
-
|
|
327
|
-
hasRequiredReactIs = 1;
|
|
328
|
-
if (process.env.NODE_ENV === "production") {
|
|
329
|
-
reactIs.exports = requireReactIs_production_min();
|
|
330
|
-
} else {
|
|
331
|
-
reactIs.exports = requireReactIs_development();
|
|
332
|
-
}
|
|
333
|
-
return reactIs.exports;
|
|
225
|
+
var bt;
|
|
226
|
+
function Rt() {
|
|
227
|
+
return bt || (bt = 1, process.env.NODE_ENV === "production" ? $e.exports = Gr() : $e.exports = Kr()), $e.exports;
|
|
334
228
|
}
|
|
335
|
-
var
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
var propIsEnumerable = Object.prototype.propertyIsEnumerable;
|
|
343
|
-
function toObject(val) {
|
|
344
|
-
if (val === null || val === void 0) {
|
|
229
|
+
var Ke, xt;
|
|
230
|
+
function Xr() {
|
|
231
|
+
if (xt) return Ke;
|
|
232
|
+
xt = 1;
|
|
233
|
+
var t = Object.getOwnPropertySymbols, e = Object.prototype.hasOwnProperty, r = Object.prototype.propertyIsEnumerable;
|
|
234
|
+
function o(a) {
|
|
235
|
+
if (a == null)
|
|
345
236
|
throw new TypeError("Object.assign cannot be called with null or undefined");
|
|
346
|
-
|
|
347
|
-
return Object(val);
|
|
237
|
+
return Object(a);
|
|
348
238
|
}
|
|
349
|
-
function
|
|
239
|
+
function s() {
|
|
350
240
|
try {
|
|
351
|
-
if (!Object.assign)
|
|
352
|
-
return
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
for (var i = 0; i < 10; i++) {
|
|
361
|
-
test2["_" + String.fromCharCode(i)] = i;
|
|
362
|
-
}
|
|
363
|
-
var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
|
|
364
|
-
return test2[n];
|
|
365
|
-
});
|
|
366
|
-
if (order2.join("") !== "0123456789") {
|
|
367
|
-
return false;
|
|
368
|
-
}
|
|
369
|
-
var test3 = {};
|
|
370
|
-
"abcdefghijklmnopqrst".split("").forEach(function(letter) {
|
|
371
|
-
test3[letter] = letter;
|
|
241
|
+
if (!Object.assign)
|
|
242
|
+
return !1;
|
|
243
|
+
var a = new String("abc");
|
|
244
|
+
if (a[5] = "de", Object.getOwnPropertyNames(a)[0] === "5")
|
|
245
|
+
return !1;
|
|
246
|
+
for (var n = {}, l = 0; l < 10; l++)
|
|
247
|
+
n["_" + String.fromCharCode(l)] = l;
|
|
248
|
+
var f = Object.getOwnPropertyNames(n).map(function(u) {
|
|
249
|
+
return n[u];
|
|
372
250
|
});
|
|
373
|
-
if (
|
|
374
|
-
return
|
|
375
|
-
}
|
|
376
|
-
return
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
}
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
var
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
to[symbols[i]] = from[symbols[i]];
|
|
397
|
-
}
|
|
398
|
-
}
|
|
399
|
-
}
|
|
400
|
-
}
|
|
401
|
-
return to;
|
|
402
|
-
};
|
|
403
|
-
return objectAssign;
|
|
251
|
+
if (f.join("") !== "0123456789")
|
|
252
|
+
return !1;
|
|
253
|
+
var d = {};
|
|
254
|
+
return "abcdefghijklmnopqrst".split("").forEach(function(u) {
|
|
255
|
+
d[u] = u;
|
|
256
|
+
}), Object.keys(Object.assign({}, d)).join("") === "abcdefghijklmnopqrst";
|
|
257
|
+
} catch {
|
|
258
|
+
return !1;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
return Ke = s() ? Object.assign : function(a, n) {
|
|
262
|
+
for (var l, f = o(a), d, u = 1; u < arguments.length; u++) {
|
|
263
|
+
l = Object(arguments[u]);
|
|
264
|
+
for (var h in l)
|
|
265
|
+
e.call(l, h) && (f[h] = l[h]);
|
|
266
|
+
if (t) {
|
|
267
|
+
d = t(l);
|
|
268
|
+
for (var v = 0; v < d.length; v++)
|
|
269
|
+
r.call(l, d[v]) && (f[d[v]] = l[d[v]]);
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
return f;
|
|
273
|
+
}, Ke;
|
|
404
274
|
}
|
|
405
|
-
var
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
ReactPropTypesSecret_1 = ReactPropTypesSecret;
|
|
412
|
-
return ReactPropTypesSecret_1;
|
|
275
|
+
var Xe, St;
|
|
276
|
+
function ut() {
|
|
277
|
+
if (St) return Xe;
|
|
278
|
+
St = 1;
|
|
279
|
+
var t = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
|
|
280
|
+
return Xe = t, Xe;
|
|
413
281
|
}
|
|
414
|
-
var
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
if (hasRequiredHas) return has;
|
|
418
|
-
hasRequiredHas = 1;
|
|
419
|
-
has = Function.call.bind(Object.prototype.hasOwnProperty);
|
|
420
|
-
return has;
|
|
282
|
+
var Ze, Et;
|
|
283
|
+
function jt() {
|
|
284
|
+
return Et || (Et = 1, Ze = Function.call.bind(Object.prototype.hasOwnProperty)), Ze;
|
|
421
285
|
}
|
|
422
|
-
var
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
var printWarning = function() {
|
|
286
|
+
var Je, _t;
|
|
287
|
+
function Zr() {
|
|
288
|
+
if (_t) return Je;
|
|
289
|
+
_t = 1;
|
|
290
|
+
var t = function() {
|
|
428
291
|
};
|
|
429
292
|
if (process.env.NODE_ENV !== "production") {
|
|
430
|
-
var
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
var message = "Warning: " + text;
|
|
435
|
-
if (typeof console !== "undefined") {
|
|
436
|
-
console.error(message);
|
|
437
|
-
}
|
|
293
|
+
var e = /* @__PURE__ */ ut(), r = {}, o = /* @__PURE__ */ jt();
|
|
294
|
+
t = function(a) {
|
|
295
|
+
var n = "Warning: " + a;
|
|
296
|
+
typeof console < "u" && console.error(n);
|
|
438
297
|
try {
|
|
439
|
-
throw new Error(
|
|
440
|
-
} catch
|
|
298
|
+
throw new Error(n);
|
|
299
|
+
} catch {
|
|
441
300
|
}
|
|
442
301
|
};
|
|
443
302
|
}
|
|
444
|
-
function
|
|
303
|
+
function s(a, n, l, f, d) {
|
|
445
304
|
if (process.env.NODE_ENV !== "production") {
|
|
446
|
-
for (var
|
|
447
|
-
if (
|
|
448
|
-
var
|
|
305
|
+
for (var u in a)
|
|
306
|
+
if (o(a, u)) {
|
|
307
|
+
var h;
|
|
449
308
|
try {
|
|
450
|
-
if (typeof
|
|
451
|
-
var
|
|
452
|
-
(
|
|
309
|
+
if (typeof a[u] != "function") {
|
|
310
|
+
var v = Error(
|
|
311
|
+
(f || "React class") + ": " + l + " type `" + u + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof a[u] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
|
|
453
312
|
);
|
|
454
|
-
|
|
455
|
-
throw err;
|
|
313
|
+
throw v.name = "Invariant Violation", v;
|
|
456
314
|
}
|
|
457
|
-
|
|
458
|
-
} catch (
|
|
459
|
-
|
|
460
|
-
}
|
|
461
|
-
if (error && !(error instanceof Error)) {
|
|
462
|
-
printWarning(
|
|
463
|
-
(componentName || "React class") + ": type specification of " + location + " `" + typeSpecName + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof error + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
464
|
-
);
|
|
315
|
+
h = a[u](n, u, f, l, null, e);
|
|
316
|
+
} catch (b) {
|
|
317
|
+
h = b;
|
|
465
318
|
}
|
|
466
|
-
if (
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
319
|
+
if (h && !(h instanceof Error) && t(
|
|
320
|
+
(f || "React class") + ": type specification of " + l + " `" + u + "` is invalid; the type checker function must return `null` or an `Error` but returned a " + typeof h + ". You may have forgotten to pass an argument to the type checker creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and shape all require an argument)."
|
|
321
|
+
), h instanceof Error && !(h.message in r)) {
|
|
322
|
+
r[h.message] = !0;
|
|
323
|
+
var g = d ? d() : "";
|
|
324
|
+
t(
|
|
325
|
+
"Failed " + l + " type: " + h.message + (g ?? "")
|
|
471
326
|
);
|
|
472
327
|
}
|
|
473
328
|
}
|
|
474
|
-
}
|
|
475
329
|
}
|
|
476
330
|
}
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
}
|
|
481
|
-
};
|
|
482
|
-
checkPropTypes_1 = checkPropTypes;
|
|
483
|
-
return checkPropTypes_1;
|
|
331
|
+
return s.resetWarningCache = function() {
|
|
332
|
+
process.env.NODE_ENV !== "production" && (r = {});
|
|
333
|
+
}, Je = s, Je;
|
|
484
334
|
}
|
|
485
|
-
var
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
if (typeof console !== "undefined") {
|
|
501
|
-
console.error(message);
|
|
502
|
-
}
|
|
503
|
-
try {
|
|
504
|
-
throw new Error(message);
|
|
505
|
-
} catch (x) {
|
|
506
|
-
}
|
|
507
|
-
};
|
|
508
|
-
}
|
|
509
|
-
function emptyFunctionThatReturnsNull() {
|
|
335
|
+
var Qe, Ot;
|
|
336
|
+
function Jr() {
|
|
337
|
+
if (Ot) return Qe;
|
|
338
|
+
Ot = 1;
|
|
339
|
+
var t = Rt(), e = Xr(), r = /* @__PURE__ */ ut(), o = /* @__PURE__ */ jt(), s = /* @__PURE__ */ Zr(), a = function() {
|
|
340
|
+
};
|
|
341
|
+
process.env.NODE_ENV !== "production" && (a = function(l) {
|
|
342
|
+
var f = "Warning: " + l;
|
|
343
|
+
typeof console < "u" && console.error(f);
|
|
344
|
+
try {
|
|
345
|
+
throw new Error(f);
|
|
346
|
+
} catch {
|
|
347
|
+
}
|
|
348
|
+
});
|
|
349
|
+
function n() {
|
|
510
350
|
return null;
|
|
511
351
|
}
|
|
512
|
-
|
|
513
|
-
var
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
oneOfType: createUnionTypeChecker,
|
|
540
|
-
shape: createShapeTypeChecker,
|
|
541
|
-
exact: createStrictShapeTypeChecker
|
|
352
|
+
return Qe = function(l, f) {
|
|
353
|
+
var d = typeof Symbol == "function" && Symbol.iterator, u = "@@iterator";
|
|
354
|
+
function h(i) {
|
|
355
|
+
var y = i && (d && i[d] || i[u]);
|
|
356
|
+
if (typeof y == "function")
|
|
357
|
+
return y;
|
|
358
|
+
}
|
|
359
|
+
var v = "<<anonymous>>", g = {
|
|
360
|
+
array: P("array"),
|
|
361
|
+
bigint: P("bigint"),
|
|
362
|
+
bool: P("boolean"),
|
|
363
|
+
func: P("function"),
|
|
364
|
+
number: P("number"),
|
|
365
|
+
object: P("object"),
|
|
366
|
+
string: P("string"),
|
|
367
|
+
symbol: P("symbol"),
|
|
368
|
+
any: A(),
|
|
369
|
+
arrayOf: x,
|
|
370
|
+
element: _(),
|
|
371
|
+
elementType: c(),
|
|
372
|
+
instanceOf: j,
|
|
373
|
+
node: U(),
|
|
374
|
+
objectOf: B,
|
|
375
|
+
oneOf: J,
|
|
376
|
+
oneOfType: N,
|
|
377
|
+
shape: ee,
|
|
378
|
+
exact: Z
|
|
542
379
|
};
|
|
543
|
-
function
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
function
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
if (process.env.NODE_ENV !== "production") {
|
|
558
|
-
var manualPropTypeCallCache = {};
|
|
559
|
-
var manualPropTypeWarningCount = 0;
|
|
560
|
-
}
|
|
561
|
-
function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
|
|
562
|
-
componentName = componentName || ANONYMOUS;
|
|
563
|
-
propFullName = propFullName || propName;
|
|
564
|
-
if (secret !== ReactPropTypesSecret) {
|
|
565
|
-
if (throwOnDirectAccess) {
|
|
566
|
-
var err = new Error(
|
|
380
|
+
function b(i, y) {
|
|
381
|
+
return i === y ? i !== 0 || 1 / i === 1 / y : i !== i && y !== y;
|
|
382
|
+
}
|
|
383
|
+
function T(i, y) {
|
|
384
|
+
this.message = i, this.data = y && typeof y == "object" ? y : {}, this.stack = "";
|
|
385
|
+
}
|
|
386
|
+
T.prototype = Error.prototype;
|
|
387
|
+
function E(i) {
|
|
388
|
+
if (process.env.NODE_ENV !== "production")
|
|
389
|
+
var y = {}, w = 0;
|
|
390
|
+
function O(k, C, M, I, L, D, X) {
|
|
391
|
+
if (I = I || v, D = D || M, X !== r) {
|
|
392
|
+
if (f) {
|
|
393
|
+
var m = new Error(
|
|
567
394
|
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use `PropTypes.checkPropTypes()` to call them. Read more at http://fb.me/use-check-prop-types"
|
|
568
395
|
);
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
"You are manually calling a React.PropTypes validation function for the `" + propFullName + "` prop on `" + componentName + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
577
|
-
);
|
|
578
|
-
manualPropTypeCallCache[cacheKey] = true;
|
|
579
|
-
manualPropTypeWarningCount++;
|
|
580
|
-
}
|
|
396
|
+
throw m.name = "Invariant Violation", m;
|
|
397
|
+
} else if (process.env.NODE_ENV !== "production" && typeof console < "u") {
|
|
398
|
+
var Q = I + ":" + M;
|
|
399
|
+
!y[Q] && // Avoid spamming the console because they are often not actionable except for lib authors
|
|
400
|
+
w < 3 && (a(
|
|
401
|
+
"You are manually calling a React.PropTypes validation function for the `" + D + "` prop on `" + I + "`. This is deprecated and will throw in the standalone `prop-types` package. You may be seeing this warning due to a third-party PropTypes library. See https://fb.me/react-warning-dont-call-proptypes for details."
|
|
402
|
+
), y[Q] = !0, w++);
|
|
581
403
|
}
|
|
582
404
|
}
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
chainedCheckType.isRequired = checkType.bind(null, true);
|
|
597
|
-
return chainedCheckType;
|
|
598
|
-
}
|
|
599
|
-
function createPrimitiveTypeChecker(expectedType) {
|
|
600
|
-
function validate(props, propName, componentName, location, propFullName, secret) {
|
|
601
|
-
var propValue = props[propName];
|
|
602
|
-
var propType = getPropType(propValue);
|
|
603
|
-
if (propType !== expectedType) {
|
|
604
|
-
var preciseType = getPreciseType(propValue);
|
|
605
|
-
return new PropTypeError(
|
|
606
|
-
"Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."),
|
|
607
|
-
{ expectedType }
|
|
405
|
+
return C[M] == null ? k ? C[M] === null ? new T("The " + L + " `" + D + "` is marked as required " + ("in `" + I + "`, but its value is `null`.")) : new T("The " + L + " `" + D + "` is marked as required in " + ("`" + I + "`, but its value is `undefined`.")) : null : i(C, M, I, L, D);
|
|
406
|
+
}
|
|
407
|
+
var S = O.bind(null, !1);
|
|
408
|
+
return S.isRequired = O.bind(null, !0), S;
|
|
409
|
+
}
|
|
410
|
+
function P(i) {
|
|
411
|
+
function y(w, O, S, k, C, M) {
|
|
412
|
+
var I = w[O], L = R(I);
|
|
413
|
+
if (L !== i) {
|
|
414
|
+
var D = H(I);
|
|
415
|
+
return new T(
|
|
416
|
+
"Invalid " + k + " `" + C + "` of type " + ("`" + D + "` supplied to `" + S + "`, expected ") + ("`" + i + "`."),
|
|
417
|
+
{ expectedType: i }
|
|
608
418
|
);
|
|
609
419
|
}
|
|
610
420
|
return null;
|
|
611
421
|
}
|
|
612
|
-
return
|
|
422
|
+
return E(y);
|
|
613
423
|
}
|
|
614
|
-
function
|
|
615
|
-
return
|
|
424
|
+
function A() {
|
|
425
|
+
return E(n);
|
|
616
426
|
}
|
|
617
|
-
function
|
|
618
|
-
function
|
|
619
|
-
if (typeof
|
|
620
|
-
return new
|
|
427
|
+
function x(i) {
|
|
428
|
+
function y(w, O, S, k, C) {
|
|
429
|
+
if (typeof i != "function")
|
|
430
|
+
return new T("Property `" + C + "` of component `" + S + "` has invalid PropType notation inside arrayOf.");
|
|
431
|
+
var M = w[O];
|
|
432
|
+
if (!Array.isArray(M)) {
|
|
433
|
+
var I = R(M);
|
|
434
|
+
return new T("Invalid " + k + " `" + C + "` of type " + ("`" + I + "` supplied to `" + S + "`, expected an array."));
|
|
621
435
|
}
|
|
622
|
-
var
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
}
|
|
627
|
-
for (var i = 0; i < propValue.length; i++) {
|
|
628
|
-
var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
|
|
629
|
-
if (error instanceof Error) {
|
|
630
|
-
return error;
|
|
631
|
-
}
|
|
436
|
+
for (var L = 0; L < M.length; L++) {
|
|
437
|
+
var D = i(M, L, S, k, C + "[" + L + "]", r);
|
|
438
|
+
if (D instanceof Error)
|
|
439
|
+
return D;
|
|
632
440
|
}
|
|
633
441
|
return null;
|
|
634
442
|
}
|
|
635
|
-
return
|
|
636
|
-
}
|
|
637
|
-
function
|
|
638
|
-
function
|
|
639
|
-
var
|
|
640
|
-
if (!
|
|
641
|
-
var
|
|
642
|
-
return new
|
|
443
|
+
return E(y);
|
|
444
|
+
}
|
|
445
|
+
function _() {
|
|
446
|
+
function i(y, w, O, S, k) {
|
|
447
|
+
var C = y[w];
|
|
448
|
+
if (!l(C)) {
|
|
449
|
+
var M = R(C);
|
|
450
|
+
return new T("Invalid " + S + " `" + k + "` of type " + ("`" + M + "` supplied to `" + O + "`, expected a single ReactElement."));
|
|
643
451
|
}
|
|
644
452
|
return null;
|
|
645
453
|
}
|
|
646
|
-
return
|
|
647
|
-
}
|
|
648
|
-
function
|
|
649
|
-
function
|
|
650
|
-
var
|
|
651
|
-
if (!
|
|
652
|
-
var
|
|
653
|
-
return new
|
|
454
|
+
return E(i);
|
|
455
|
+
}
|
|
456
|
+
function c() {
|
|
457
|
+
function i(y, w, O, S, k) {
|
|
458
|
+
var C = y[w];
|
|
459
|
+
if (!t.isValidElementType(C)) {
|
|
460
|
+
var M = R(C);
|
|
461
|
+
return new T("Invalid " + S + " `" + k + "` of type " + ("`" + M + "` supplied to `" + O + "`, expected a single ReactElement type."));
|
|
654
462
|
}
|
|
655
463
|
return null;
|
|
656
464
|
}
|
|
657
|
-
return
|
|
658
|
-
}
|
|
659
|
-
function
|
|
660
|
-
function
|
|
661
|
-
if (!(
|
|
662
|
-
var
|
|
663
|
-
|
|
664
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
|
|
465
|
+
return E(i);
|
|
466
|
+
}
|
|
467
|
+
function j(i) {
|
|
468
|
+
function y(w, O, S, k, C) {
|
|
469
|
+
if (!(w[O] instanceof i)) {
|
|
470
|
+
var M = i.name || v, I = V(w[O]);
|
|
471
|
+
return new T("Invalid " + k + " `" + C + "` of type " + ("`" + I + "` supplied to `" + S + "`, expected ") + ("instance of `" + M + "`."));
|
|
665
472
|
}
|
|
666
473
|
return null;
|
|
667
474
|
}
|
|
668
|
-
return
|
|
669
|
-
}
|
|
670
|
-
function
|
|
671
|
-
if (!Array.isArray(
|
|
672
|
-
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
printWarning("Invalid argument supplied to oneOf, expected an array.");
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
return emptyFunctionThatReturnsNull;
|
|
682
|
-
}
|
|
683
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
684
|
-
var propValue = props[propName];
|
|
685
|
-
for (var i = 0; i < expectedValues.length; i++) {
|
|
686
|
-
if (is(propValue, expectedValues[i])) {
|
|
475
|
+
return E(y);
|
|
476
|
+
}
|
|
477
|
+
function J(i) {
|
|
478
|
+
if (!Array.isArray(i))
|
|
479
|
+
return process.env.NODE_ENV !== "production" && (arguments.length > 1 ? a(
|
|
480
|
+
"Invalid arguments supplied to oneOf, expected an array, got " + arguments.length + " arguments. A common mistake is to write oneOf(x, y, z) instead of oneOf([x, y, z])."
|
|
481
|
+
) : a("Invalid argument supplied to oneOf, expected an array.")), n;
|
|
482
|
+
function y(w, O, S, k, C) {
|
|
483
|
+
for (var M = w[O], I = 0; I < i.length; I++)
|
|
484
|
+
if (b(M, i[I]))
|
|
687
485
|
return null;
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
var type = getPreciseType(value);
|
|
692
|
-
if (type === "symbol") {
|
|
693
|
-
return String(value);
|
|
694
|
-
}
|
|
695
|
-
return value;
|
|
486
|
+
var L = JSON.stringify(i, function(X, m) {
|
|
487
|
+
var Q = H(m);
|
|
488
|
+
return Q === "symbol" ? String(m) : m;
|
|
696
489
|
});
|
|
697
|
-
return new
|
|
698
|
-
}
|
|
699
|
-
return
|
|
700
|
-
}
|
|
701
|
-
function
|
|
702
|
-
function
|
|
703
|
-
if (typeof
|
|
704
|
-
return new
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
714
|
-
if (error instanceof Error) {
|
|
715
|
-
return error;
|
|
716
|
-
}
|
|
490
|
+
return new T("Invalid " + k + " `" + C + "` of value `" + String(M) + "` " + ("supplied to `" + S + "`, expected one of " + L + "."));
|
|
491
|
+
}
|
|
492
|
+
return E(y);
|
|
493
|
+
}
|
|
494
|
+
function B(i) {
|
|
495
|
+
function y(w, O, S, k, C) {
|
|
496
|
+
if (typeof i != "function")
|
|
497
|
+
return new T("Property `" + C + "` of component `" + S + "` has invalid PropType notation inside objectOf.");
|
|
498
|
+
var M = w[O], I = R(M);
|
|
499
|
+
if (I !== "object")
|
|
500
|
+
return new T("Invalid " + k + " `" + C + "` of type " + ("`" + I + "` supplied to `" + S + "`, expected an object."));
|
|
501
|
+
for (var L in M)
|
|
502
|
+
if (o(M, L)) {
|
|
503
|
+
var D = i(M, L, S, k, C + "." + L, r);
|
|
504
|
+
if (D instanceof Error)
|
|
505
|
+
return D;
|
|
717
506
|
}
|
|
718
|
-
}
|
|
719
507
|
return null;
|
|
720
508
|
}
|
|
721
|
-
return
|
|
722
|
-
}
|
|
723
|
-
function
|
|
724
|
-
if (!Array.isArray(
|
|
725
|
-
process.env.NODE_ENV !== "production"
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
function validate(props, propName, componentName, location, propFullName) {
|
|
738
|
-
var expectedTypes = [];
|
|
739
|
-
for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
|
|
740
|
-
var checker2 = arrayOfTypeCheckers[i2];
|
|
741
|
-
var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
|
|
742
|
-
if (checkerResult == null) {
|
|
509
|
+
return E(y);
|
|
510
|
+
}
|
|
511
|
+
function N(i) {
|
|
512
|
+
if (!Array.isArray(i))
|
|
513
|
+
return process.env.NODE_ENV !== "production" && a("Invalid argument supplied to oneOfType, expected an instance of array."), n;
|
|
514
|
+
for (var y = 0; y < i.length; y++) {
|
|
515
|
+
var w = i[y];
|
|
516
|
+
if (typeof w != "function")
|
|
517
|
+
return a(
|
|
518
|
+
"Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + te(w) + " at index " + y + "."
|
|
519
|
+
), n;
|
|
520
|
+
}
|
|
521
|
+
function O(S, k, C, M, I) {
|
|
522
|
+
for (var L = [], D = 0; D < i.length; D++) {
|
|
523
|
+
var X = i[D], m = X(S, k, C, M, I, r);
|
|
524
|
+
if (m == null)
|
|
743
525
|
return null;
|
|
744
|
-
|
|
745
|
-
if (checkerResult.data && has2(checkerResult.data, "expectedType")) {
|
|
746
|
-
expectedTypes.push(checkerResult.data.expectedType);
|
|
747
|
-
}
|
|
526
|
+
m.data && o(m.data, "expectedType") && L.push(m.data.expectedType);
|
|
748
527
|
}
|
|
749
|
-
var
|
|
750
|
-
return new
|
|
528
|
+
var Q = L.length > 0 ? ", expected one of type [" + L.join(", ") + "]" : "";
|
|
529
|
+
return new T("Invalid " + M + " `" + I + "` supplied to " + ("`" + C + "`" + Q + "."));
|
|
751
530
|
}
|
|
752
|
-
return
|
|
531
|
+
return E(O);
|
|
753
532
|
}
|
|
754
|
-
function
|
|
755
|
-
function
|
|
756
|
-
|
|
757
|
-
return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
|
|
758
|
-
}
|
|
759
|
-
return null;
|
|
533
|
+
function U() {
|
|
534
|
+
function i(y, w, O, S, k) {
|
|
535
|
+
return W(y[w]) ? null : new T("Invalid " + S + " `" + k + "` supplied to " + ("`" + O + "`, expected a ReactNode."));
|
|
760
536
|
}
|
|
761
|
-
return
|
|
537
|
+
return E(i);
|
|
762
538
|
}
|
|
763
|
-
function
|
|
764
|
-
return new
|
|
765
|
-
(
|
|
539
|
+
function K(i, y, w, O, S) {
|
|
540
|
+
return new T(
|
|
541
|
+
(i || "React class") + ": " + y + " type `" + w + "." + O + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + S + "`."
|
|
766
542
|
);
|
|
767
543
|
}
|
|
768
|
-
function
|
|
769
|
-
function
|
|
770
|
-
var
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
|
|
781
|
-
if (error) {
|
|
782
|
-
return error;
|
|
783
|
-
}
|
|
544
|
+
function ee(i) {
|
|
545
|
+
function y(w, O, S, k, C) {
|
|
546
|
+
var M = w[O], I = R(M);
|
|
547
|
+
if (I !== "object")
|
|
548
|
+
return new T("Invalid " + k + " `" + C + "` of type `" + I + "` " + ("supplied to `" + S + "`, expected `object`."));
|
|
549
|
+
for (var L in i) {
|
|
550
|
+
var D = i[L];
|
|
551
|
+
if (typeof D != "function")
|
|
552
|
+
return K(S, k, C, L, H(D));
|
|
553
|
+
var X = D(M, L, S, k, C + "." + L, r);
|
|
554
|
+
if (X)
|
|
555
|
+
return X;
|
|
784
556
|
}
|
|
785
557
|
return null;
|
|
786
558
|
}
|
|
787
|
-
return
|
|
788
|
-
}
|
|
789
|
-
function
|
|
790
|
-
function
|
|
791
|
-
var
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
if (
|
|
800
|
-
return
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
return new PropTypeError(
|
|
804
|
-
"Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")
|
|
559
|
+
return E(y);
|
|
560
|
+
}
|
|
561
|
+
function Z(i) {
|
|
562
|
+
function y(w, O, S, k, C) {
|
|
563
|
+
var M = w[O], I = R(M);
|
|
564
|
+
if (I !== "object")
|
|
565
|
+
return new T("Invalid " + k + " `" + C + "` of type `" + I + "` " + ("supplied to `" + S + "`, expected `object`."));
|
|
566
|
+
var L = e({}, w[O], i);
|
|
567
|
+
for (var D in L) {
|
|
568
|
+
var X = i[D];
|
|
569
|
+
if (o(i, D) && typeof X != "function")
|
|
570
|
+
return K(S, k, C, D, H(X));
|
|
571
|
+
if (!X)
|
|
572
|
+
return new T(
|
|
573
|
+
"Invalid " + k + " `" + C + "` key `" + D + "` supplied to `" + S + "`.\nBad object: " + JSON.stringify(w[O], null, " ") + `
|
|
574
|
+
Valid keys: ` + JSON.stringify(Object.keys(i), null, " ")
|
|
805
575
|
);
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
return error;
|
|
810
|
-
}
|
|
576
|
+
var m = X(M, D, S, k, C + "." + D, r);
|
|
577
|
+
if (m)
|
|
578
|
+
return m;
|
|
811
579
|
}
|
|
812
580
|
return null;
|
|
813
581
|
}
|
|
814
|
-
return
|
|
582
|
+
return E(y);
|
|
815
583
|
}
|
|
816
|
-
function
|
|
817
|
-
switch (typeof
|
|
584
|
+
function W(i) {
|
|
585
|
+
switch (typeof i) {
|
|
818
586
|
case "number":
|
|
819
587
|
case "string":
|
|
820
588
|
case "undefined":
|
|
821
|
-
return
|
|
589
|
+
return !0;
|
|
822
590
|
case "boolean":
|
|
823
|
-
return !
|
|
591
|
+
return !i;
|
|
824
592
|
case "object":
|
|
825
|
-
if (Array.isArray(
|
|
826
|
-
return
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
593
|
+
if (Array.isArray(i))
|
|
594
|
+
return i.every(W);
|
|
595
|
+
if (i === null || l(i))
|
|
596
|
+
return !0;
|
|
597
|
+
var y = h(i);
|
|
598
|
+
if (y) {
|
|
599
|
+
var w = y.call(i), O;
|
|
600
|
+
if (y !== i.entries) {
|
|
601
|
+
for (; !(O = w.next()).done; )
|
|
602
|
+
if (!W(O.value))
|
|
603
|
+
return !1;
|
|
604
|
+
} else
|
|
605
|
+
for (; !(O = w.next()).done; ) {
|
|
606
|
+
var S = O.value;
|
|
607
|
+
if (S && !W(S[1]))
|
|
608
|
+
return !1;
|
|
840
609
|
}
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
if (entry) {
|
|
845
|
-
if (!isNode(entry[1])) {
|
|
846
|
-
return false;
|
|
847
|
-
}
|
|
848
|
-
}
|
|
849
|
-
}
|
|
850
|
-
}
|
|
851
|
-
} else {
|
|
852
|
-
return false;
|
|
853
|
-
}
|
|
854
|
-
return true;
|
|
610
|
+
} else
|
|
611
|
+
return !1;
|
|
612
|
+
return !0;
|
|
855
613
|
default:
|
|
856
|
-
return
|
|
614
|
+
return !1;
|
|
857
615
|
}
|
|
858
616
|
}
|
|
859
|
-
function
|
|
860
|
-
|
|
861
|
-
return true;
|
|
862
|
-
}
|
|
863
|
-
if (!propValue) {
|
|
864
|
-
return false;
|
|
865
|
-
}
|
|
866
|
-
if (propValue["@@toStringTag"] === "Symbol") {
|
|
867
|
-
return true;
|
|
868
|
-
}
|
|
869
|
-
if (typeof Symbol === "function" && propValue instanceof Symbol) {
|
|
870
|
-
return true;
|
|
871
|
-
}
|
|
872
|
-
return false;
|
|
617
|
+
function F(i, y) {
|
|
618
|
+
return i === "symbol" ? !0 : y ? y["@@toStringTag"] === "Symbol" || typeof Symbol == "function" && y instanceof Symbol : !1;
|
|
873
619
|
}
|
|
874
|
-
function
|
|
875
|
-
var
|
|
876
|
-
|
|
877
|
-
return "array";
|
|
878
|
-
}
|
|
879
|
-
if (propValue instanceof RegExp) {
|
|
880
|
-
return "object";
|
|
881
|
-
}
|
|
882
|
-
if (isSymbol(propType, propValue)) {
|
|
883
|
-
return "symbol";
|
|
884
|
-
}
|
|
885
|
-
return propType;
|
|
620
|
+
function R(i) {
|
|
621
|
+
var y = typeof i;
|
|
622
|
+
return Array.isArray(i) ? "array" : i instanceof RegExp ? "object" : F(y, i) ? "symbol" : y;
|
|
886
623
|
}
|
|
887
|
-
function
|
|
888
|
-
if (typeof
|
|
889
|
-
return "" +
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
if (propValue instanceof Date) {
|
|
624
|
+
function H(i) {
|
|
625
|
+
if (typeof i > "u" || i === null)
|
|
626
|
+
return "" + i;
|
|
627
|
+
var y = R(i);
|
|
628
|
+
if (y === "object") {
|
|
629
|
+
if (i instanceof Date)
|
|
894
630
|
return "date";
|
|
895
|
-
|
|
631
|
+
if (i instanceof RegExp)
|
|
896
632
|
return "regexp";
|
|
897
|
-
}
|
|
898
633
|
}
|
|
899
|
-
return
|
|
634
|
+
return y;
|
|
900
635
|
}
|
|
901
|
-
function
|
|
902
|
-
var
|
|
903
|
-
switch (
|
|
636
|
+
function te(i) {
|
|
637
|
+
var y = H(i);
|
|
638
|
+
switch (y) {
|
|
904
639
|
case "array":
|
|
905
640
|
case "object":
|
|
906
|
-
return "an " +
|
|
641
|
+
return "an " + y;
|
|
907
642
|
case "boolean":
|
|
908
643
|
case "date":
|
|
909
644
|
case "regexp":
|
|
910
|
-
return "a " +
|
|
645
|
+
return "a " + y;
|
|
911
646
|
default:
|
|
912
|
-
return
|
|
647
|
+
return y;
|
|
913
648
|
}
|
|
914
649
|
}
|
|
915
|
-
function
|
|
916
|
-
|
|
917
|
-
return ANONYMOUS;
|
|
918
|
-
}
|
|
919
|
-
return propValue.constructor.name;
|
|
650
|
+
function V(i) {
|
|
651
|
+
return !i.constructor || !i.constructor.name ? v : i.constructor.name;
|
|
920
652
|
}
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
ReactPropTypes.PropTypes = ReactPropTypes;
|
|
924
|
-
return ReactPropTypes;
|
|
925
|
-
};
|
|
926
|
-
return factoryWithTypeCheckers;
|
|
653
|
+
return g.checkPropTypes = s, g.resetWarningCache = s.resetWarningCache, g.PropTypes = g, g;
|
|
654
|
+
}, Qe;
|
|
927
655
|
}
|
|
928
|
-
var
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
}
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
shape: getShim,
|
|
973
|
-
exact: getShim,
|
|
974
|
-
checkPropTypes: emptyFunctionWithReset,
|
|
975
|
-
resetWarningCache: emptyFunction
|
|
656
|
+
var et, wt;
|
|
657
|
+
function Qr() {
|
|
658
|
+
if (wt) return et;
|
|
659
|
+
wt = 1;
|
|
660
|
+
var t = /* @__PURE__ */ ut();
|
|
661
|
+
function e() {
|
|
662
|
+
}
|
|
663
|
+
function r() {
|
|
664
|
+
}
|
|
665
|
+
return r.resetWarningCache = e, et = function() {
|
|
666
|
+
function o(n, l, f, d, u, h) {
|
|
667
|
+
if (h !== t) {
|
|
668
|
+
var v = new Error(
|
|
669
|
+
"Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types"
|
|
670
|
+
);
|
|
671
|
+
throw v.name = "Invariant Violation", v;
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
o.isRequired = o;
|
|
675
|
+
function s() {
|
|
676
|
+
return o;
|
|
677
|
+
}
|
|
678
|
+
var a = {
|
|
679
|
+
array: o,
|
|
680
|
+
bigint: o,
|
|
681
|
+
bool: o,
|
|
682
|
+
func: o,
|
|
683
|
+
number: o,
|
|
684
|
+
object: o,
|
|
685
|
+
string: o,
|
|
686
|
+
symbol: o,
|
|
687
|
+
any: o,
|
|
688
|
+
arrayOf: s,
|
|
689
|
+
element: o,
|
|
690
|
+
elementType: o,
|
|
691
|
+
instanceOf: s,
|
|
692
|
+
node: o,
|
|
693
|
+
objectOf: s,
|
|
694
|
+
oneOf: s,
|
|
695
|
+
oneOfType: s,
|
|
696
|
+
shape: s,
|
|
697
|
+
exact: s,
|
|
698
|
+
checkPropTypes: r,
|
|
699
|
+
resetWarningCache: e
|
|
976
700
|
};
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
};
|
|
980
|
-
return factoryWithThrowingShims;
|
|
701
|
+
return a.PropTypes = a, a;
|
|
702
|
+
}, et;
|
|
981
703
|
}
|
|
982
|
-
var
|
|
983
|
-
function
|
|
984
|
-
if (
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
propTypes.exports = /* @__PURE__ */ requireFactoryWithThrowingShims()();
|
|
992
|
-
}
|
|
993
|
-
return propTypes.exports;
|
|
704
|
+
var Ct;
|
|
705
|
+
function en() {
|
|
706
|
+
if (Ct) return je.exports;
|
|
707
|
+
if (Ct = 1, process.env.NODE_ENV !== "production") {
|
|
708
|
+
var t = Rt(), e = !0;
|
|
709
|
+
je.exports = /* @__PURE__ */ Jr()(t.isElement, e);
|
|
710
|
+
} else
|
|
711
|
+
je.exports = /* @__PURE__ */ Qr()();
|
|
712
|
+
return je.exports;
|
|
994
713
|
}
|
|
995
|
-
var
|
|
996
|
-
const
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
const LocalizationProvider = function LocalizationProvider2(inProps) {
|
|
714
|
+
var tn = /* @__PURE__ */ en();
|
|
715
|
+
const z = /* @__PURE__ */ Ur(tn), rn = ["localeText"], ot = /* @__PURE__ */ ne.createContext(null);
|
|
716
|
+
process.env.NODE_ENV !== "production" && (ot.displayName = "PickerAdapterContext");
|
|
717
|
+
const ft = function(e) {
|
|
1000
718
|
const {
|
|
1001
|
-
localeText:
|
|
1002
|
-
} =
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
} = React.useContext(PickerAdapterContext) ?? {
|
|
719
|
+
localeText: r
|
|
720
|
+
} = e, o = Vr(e, rn), {
|
|
721
|
+
adapter: s,
|
|
722
|
+
localeText: a
|
|
723
|
+
} = ne.useContext(ot) ?? {
|
|
1007
724
|
adapter: void 0,
|
|
1008
725
|
localeText: void 0
|
|
1009
|
-
}
|
|
1010
|
-
const props = useThemeProps({
|
|
726
|
+
}, n = dr({
|
|
1011
727
|
// We don't want to pass the `localeText` prop to the theme, that way it will always return the theme value,
|
|
1012
728
|
// We will then merge this theme value with our value manually
|
|
1013
|
-
props:
|
|
729
|
+
props: o,
|
|
1014
730
|
name: "MuiLocalizationProvider"
|
|
1015
|
-
})
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
}
|
|
1030
|
-
return null;
|
|
1031
|
-
}
|
|
1032
|
-
const dateAdapter = new DateAdapter({
|
|
1033
|
-
locale: adapterLocale,
|
|
1034
|
-
formats: dateFormats,
|
|
1035
|
-
instance: dateLibInstance
|
|
731
|
+
}), {
|
|
732
|
+
children: l,
|
|
733
|
+
dateAdapter: f,
|
|
734
|
+
dateFormats: d,
|
|
735
|
+
dateLibInstance: u,
|
|
736
|
+
adapterLocale: h,
|
|
737
|
+
localeText: v
|
|
738
|
+
} = n, g = ne.useMemo(() => Ue({}, v, a, r), [v, a, r]), b = ne.useMemo(() => {
|
|
739
|
+
if (!f)
|
|
740
|
+
return s || null;
|
|
741
|
+
const P = new f({
|
|
742
|
+
locale: h,
|
|
743
|
+
formats: d,
|
|
744
|
+
instance: u
|
|
1036
745
|
});
|
|
1037
|
-
if (!
|
|
746
|
+
if (!P.isMUIAdapter)
|
|
1038
747
|
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(`
|
|
1039
748
|
`));
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
return {
|
|
1054
|
-
utils: adapter,
|
|
1055
|
-
adapter,
|
|
1056
|
-
defaultDates,
|
|
1057
|
-
localeText
|
|
1058
|
-
};
|
|
1059
|
-
}, [defaultDates, adapter, localeText]);
|
|
1060
|
-
return /* @__PURE__ */ jsx(PickerAdapterContext.Provider, {
|
|
1061
|
-
value: contextValue,
|
|
1062
|
-
children
|
|
749
|
+
return P;
|
|
750
|
+
}, [f, h, d, u, s]), T = ne.useMemo(() => b ? {
|
|
751
|
+
minDate: b.date("1900-01-01T00:00:00.000"),
|
|
752
|
+
maxDate: b.date("2099-12-31T00:00:00.000")
|
|
753
|
+
} : null, [b]), E = ne.useMemo(() => ({
|
|
754
|
+
utils: b,
|
|
755
|
+
adapter: b,
|
|
756
|
+
defaultDates: T,
|
|
757
|
+
localeText: g
|
|
758
|
+
}), [T, b, g]);
|
|
759
|
+
return /* @__PURE__ */ p(ot.Provider, {
|
|
760
|
+
value: E,
|
|
761
|
+
children: l
|
|
1063
762
|
});
|
|
1064
763
|
};
|
|
1065
|
-
|
|
1066
|
-
process.env.NODE_ENV !== "production"
|
|
764
|
+
process.env.NODE_ENV !== "production" && (ft.displayName = "LocalizationProvider");
|
|
765
|
+
process.env.NODE_ENV !== "production" && (ft.propTypes = {
|
|
1067
766
|
// ----------------------------- Warning --------------------------------
|
|
1068
767
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
1069
768
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
@@ -1071,38 +770,38 @@ process.env.NODE_ENV !== "production" ? LocalizationProvider.propTypes = {
|
|
|
1071
770
|
/**
|
|
1072
771
|
* Locale for the date library you are using
|
|
1073
772
|
*/
|
|
1074
|
-
adapterLocale:
|
|
1075
|
-
children:
|
|
773
|
+
adapterLocale: z.any,
|
|
774
|
+
children: z.node,
|
|
1076
775
|
/**
|
|
1077
776
|
* Date library adapter class function.
|
|
1078
777
|
* @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.
|
|
1079
778
|
*/
|
|
1080
|
-
dateAdapter:
|
|
779
|
+
dateAdapter: z.func,
|
|
1081
780
|
/**
|
|
1082
781
|
* Formats that are used for any child pickers
|
|
1083
782
|
*/
|
|
1084
|
-
dateFormats:
|
|
1085
|
-
dayOfMonth:
|
|
1086
|
-
dayOfMonthFull:
|
|
1087
|
-
fullDate:
|
|
1088
|
-
fullTime12h:
|
|
1089
|
-
fullTime24h:
|
|
1090
|
-
hours12h:
|
|
1091
|
-
hours24h:
|
|
1092
|
-
keyboardDate:
|
|
1093
|
-
keyboardDateTime12h:
|
|
1094
|
-
keyboardDateTime24h:
|
|
1095
|
-
meridiem:
|
|
1096
|
-
minutes:
|
|
1097
|
-
month:
|
|
1098
|
-
monthShort:
|
|
1099
|
-
normalDate:
|
|
1100
|
-
normalDateWithWeekday:
|
|
1101
|
-
seconds:
|
|
1102
|
-
shortDate:
|
|
1103
|
-
weekday:
|
|
1104
|
-
weekdayShort:
|
|
1105
|
-
year:
|
|
783
|
+
dateFormats: z.shape({
|
|
784
|
+
dayOfMonth: z.string,
|
|
785
|
+
dayOfMonthFull: z.string,
|
|
786
|
+
fullDate: z.string,
|
|
787
|
+
fullTime12h: z.string,
|
|
788
|
+
fullTime24h: z.string,
|
|
789
|
+
hours12h: z.string,
|
|
790
|
+
hours24h: z.string,
|
|
791
|
+
keyboardDate: z.string,
|
|
792
|
+
keyboardDateTime12h: z.string,
|
|
793
|
+
keyboardDateTime24h: z.string,
|
|
794
|
+
meridiem: z.string,
|
|
795
|
+
minutes: z.string,
|
|
796
|
+
month: z.string,
|
|
797
|
+
monthShort: z.string,
|
|
798
|
+
normalDate: z.string,
|
|
799
|
+
normalDateWithWeekday: z.string,
|
|
800
|
+
seconds: z.string,
|
|
801
|
+
shortDate: z.string,
|
|
802
|
+
weekday: z.string,
|
|
803
|
+
weekdayShort: z.string,
|
|
804
|
+
year: z.string
|
|
1106
805
|
}),
|
|
1107
806
|
/**
|
|
1108
807
|
* Date library instance you are using, if it has some global overrides
|
|
@@ -1110,43 +809,35 @@ process.env.NODE_ENV !== "production" ? LocalizationProvider.propTypes = {
|
|
|
1110
809
|
* dateLibInstance={momentTimeZone}
|
|
1111
810
|
* ```
|
|
1112
811
|
*/
|
|
1113
|
-
dateLibInstance:
|
|
812
|
+
dateLibInstance: z.any,
|
|
1114
813
|
/**
|
|
1115
814
|
* Locale for components texts
|
|
1116
815
|
*/
|
|
1117
|
-
localeText:
|
|
1118
|
-
}
|
|
1119
|
-
const
|
|
1120
|
-
function
|
|
1121
|
-
const
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
})
|
|
1125
|
-
return React.useRef((...args) => (
|
|
816
|
+
localeText: z.object
|
|
817
|
+
});
|
|
818
|
+
const nn = typeof window < "u" ? ne.useLayoutEffect : ne.useEffect;
|
|
819
|
+
function tt(t) {
|
|
820
|
+
const e = ne.useRef(t);
|
|
821
|
+
return nn(() => {
|
|
822
|
+
e.current = t;
|
|
823
|
+
}), ne.useRef((...r) => (
|
|
1126
824
|
// @ts-expect-error hide `this`
|
|
1127
|
-
(0,
|
|
825
|
+
(0, e.current)(...r)
|
|
1128
826
|
)).current;
|
|
1129
827
|
}
|
|
1130
|
-
const
|
|
1131
|
-
function
|
|
1132
|
-
if (process.env.NODE_ENV === "production")
|
|
828
|
+
const Mt = /* @__PURE__ */ new Set();
|
|
829
|
+
function on(t, e = "warning") {
|
|
830
|
+
if (process.env.NODE_ENV === "production")
|
|
1133
831
|
return;
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
warnedOnceCache.add(cleanMessage);
|
|
1138
|
-
if (gravity === "error") {
|
|
1139
|
-
console.error(cleanMessage);
|
|
1140
|
-
} else {
|
|
1141
|
-
console.warn(cleanMessage);
|
|
1142
|
-
}
|
|
1143
|
-
}
|
|
832
|
+
const r = Array.isArray(t) ? t.join(`
|
|
833
|
+
`) : t;
|
|
834
|
+
Mt.has(r) || (Mt.add(r), e === "error" ? console.error(r) : console.warn(r));
|
|
1144
835
|
}
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
const
|
|
836
|
+
G.extend(qr);
|
|
837
|
+
G.extend(Wr);
|
|
838
|
+
G.extend(Br);
|
|
839
|
+
G.extend(Hr);
|
|
840
|
+
const an = {
|
|
1150
841
|
// Year
|
|
1151
842
|
YY: "year",
|
|
1152
843
|
YYYY: {
|
|
@@ -1228,8 +919,7 @@ const formatTokenMap = {
|
|
|
1228
919
|
maxLength: 2
|
|
1229
920
|
},
|
|
1230
921
|
ss: "seconds"
|
|
1231
|
-
}
|
|
1232
|
-
const defaultFormats = {
|
|
922
|
+
}, sn = {
|
|
1233
923
|
year: "YYYY",
|
|
1234
924
|
month: "MMMM",
|
|
1235
925
|
monthShort: "MMM",
|
|
@@ -1251,96 +941,73 @@ const defaultFormats = {
|
|
|
1251
941
|
fullTime24h: "HH:mm",
|
|
1252
942
|
keyboardDateTime12h: "L hh:mm A",
|
|
1253
943
|
keyboardDateTime24h: "L HH:mm"
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
class
|
|
1258
|
-
isMUIAdapter =
|
|
1259
|
-
isTimezoneCompatible =
|
|
944
|
+
}, rt = ["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(`
|
|
945
|
+
`), Pt = ["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(`
|
|
946
|
+
`);
|
|
947
|
+
class cn {
|
|
948
|
+
isMUIAdapter = !0;
|
|
949
|
+
isTimezoneCompatible = !0;
|
|
1260
950
|
lib = "dayjs";
|
|
1261
951
|
escapedCharacters = {
|
|
1262
952
|
start: "[",
|
|
1263
953
|
end: "]"
|
|
1264
954
|
};
|
|
1265
|
-
formatTokenMap =
|
|
955
|
+
formatTokenMap = an;
|
|
1266
956
|
constructor({
|
|
1267
|
-
locale,
|
|
1268
|
-
formats
|
|
957
|
+
locale: e,
|
|
958
|
+
formats: r
|
|
1269
959
|
} = {}) {
|
|
1270
|
-
this.locale =
|
|
1271
|
-
this.formats = _extends({}, defaultFormats, formats);
|
|
1272
|
-
dayjs.extend(customParseFormatPlugin);
|
|
960
|
+
this.locale = e, this.formats = Ue({}, sn, r), G.extend(Fr);
|
|
1273
961
|
}
|
|
1274
|
-
setLocaleToValue = (
|
|
1275
|
-
const
|
|
1276
|
-
|
|
1277
|
-
return value;
|
|
1278
|
-
}
|
|
1279
|
-
return value.locale(expectedLocale);
|
|
962
|
+
setLocaleToValue = (e) => {
|
|
963
|
+
const r = this.getCurrentLocaleCode();
|
|
964
|
+
return r === e.locale() ? e : e.locale(r);
|
|
1280
965
|
};
|
|
1281
|
-
hasUTCPlugin = () => typeof
|
|
1282
|
-
hasTimezonePlugin = () => typeof
|
|
1283
|
-
isSame = (
|
|
1284
|
-
const
|
|
1285
|
-
return
|
|
966
|
+
hasUTCPlugin = () => typeof G.utc < "u";
|
|
967
|
+
hasTimezonePlugin = () => typeof G.tz < "u";
|
|
968
|
+
isSame = (e, r, o) => {
|
|
969
|
+
const s = this.setTimezone(r, this.getTimezone(e));
|
|
970
|
+
return e.format(o) === s.format(o);
|
|
1286
971
|
};
|
|
1287
972
|
/**
|
|
1288
973
|
* Replaces "default" by undefined and "system" by the system timezone before passing it to `dayjs`.
|
|
1289
974
|
*/
|
|
1290
|
-
cleanTimezone = (
|
|
1291
|
-
switch (
|
|
1292
|
-
case "default":
|
|
1293
|
-
return
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
default: {
|
|
1299
|
-
return timezone;
|
|
1300
|
-
}
|
|
975
|
+
cleanTimezone = (e) => {
|
|
976
|
+
switch (e) {
|
|
977
|
+
case "default":
|
|
978
|
+
return;
|
|
979
|
+
case "system":
|
|
980
|
+
return G.tz.guess();
|
|
981
|
+
default:
|
|
982
|
+
return e;
|
|
1301
983
|
}
|
|
1302
984
|
};
|
|
1303
|
-
createSystemDate = (
|
|
1304
|
-
let
|
|
985
|
+
createSystemDate = (e) => {
|
|
986
|
+
let r;
|
|
1305
987
|
if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
|
|
1306
|
-
const
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
return this.setLocaleToValue(
|
|
1316
|
-
};
|
|
1317
|
-
|
|
1318
|
-
if (!this.hasUTCPlugin())
|
|
1319
|
-
throw new Error(
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
if (!this.hasUTCPlugin()) {
|
|
1325
|
-
throw new Error(MISSING_UTC_PLUGIN);
|
|
1326
|
-
}
|
|
1327
|
-
if (!this.hasTimezonePlugin()) {
|
|
1328
|
-
throw new Error(MISSING_TIMEZONE_PLUGIN);
|
|
1329
|
-
}
|
|
1330
|
-
const keepLocalTime = value !== void 0 && !value.endsWith("Z");
|
|
1331
|
-
return this.setLocaleToValue(dayjs(value).tz(this.cleanTimezone(timezone), keepLocalTime));
|
|
988
|
+
const o = G.tz.guess();
|
|
989
|
+
o === "UTC" ? r = G(e) : r = G.tz(e, o);
|
|
990
|
+
} else
|
|
991
|
+
r = G(e);
|
|
992
|
+
return this.setLocaleToValue(r);
|
|
993
|
+
};
|
|
994
|
+
createUTCDate = (e) => {
|
|
995
|
+
if (!this.hasUTCPlugin())
|
|
996
|
+
throw new Error(rt);
|
|
997
|
+
return this.setLocaleToValue(G.utc(e));
|
|
998
|
+
};
|
|
999
|
+
createTZDate = (e, r) => {
|
|
1000
|
+
if (!this.hasUTCPlugin())
|
|
1001
|
+
throw new Error(rt);
|
|
1002
|
+
if (!this.hasTimezonePlugin())
|
|
1003
|
+
throw new Error(Pt);
|
|
1004
|
+
const o = e !== void 0 && !e.endsWith("Z");
|
|
1005
|
+
return this.setLocaleToValue(G(e).tz(this.cleanTimezone(r), o));
|
|
1332
1006
|
};
|
|
1333
1007
|
getLocaleFormats = () => {
|
|
1334
|
-
const
|
|
1335
|
-
|
|
1336
|
-
|
|
1337
|
-
if (localeObject === void 0) {
|
|
1338
|
-
if (process.env.NODE_ENV !== "production") {
|
|
1339
|
-
warnOnce(["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."]);
|
|
1340
|
-
}
|
|
1341
|
-
localeObject = locales.en;
|
|
1342
|
-
}
|
|
1343
|
-
return localeObject.formats;
|
|
1008
|
+
const e = G.Ls, r = this.locale || "en";
|
|
1009
|
+
let o = e[r];
|
|
1010
|
+
return o === void 0 && (process.env.NODE_ENV !== "production" && on(["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."]), o = e.en), o.formats;
|
|
1344
1011
|
};
|
|
1345
1012
|
/**
|
|
1346
1013
|
* If the new day does not have the same offset as the old one (when switching to summer day time for example),
|
|
@@ -1348,1696 +1015,809 @@ class AdapterDayjs {
|
|
|
1348
1015
|
* We have to parse again the value to make sure the `fixOffset` method is applied.
|
|
1349
1016
|
* See https://github.com/iamkun/dayjs/blob/b3624de619d6e734cd0ffdbbd3502185041c1b60/src/plugin/timezone/index.js#L72
|
|
1350
1017
|
*/
|
|
1351
|
-
adjustOffset = (
|
|
1352
|
-
if (!this.hasTimezonePlugin())
|
|
1353
|
-
return
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
|
|
1364
|
-
|
|
1365
|
-
|
|
1366
|
-
if (value === null) {
|
|
1367
|
-
return null;
|
|
1368
|
-
}
|
|
1369
|
-
if (timezone === "UTC") {
|
|
1370
|
-
return this.createUTCDate(value);
|
|
1371
|
-
}
|
|
1372
|
-
if (timezone === "system" || timezone === "default" && !this.hasTimezonePlugin()) {
|
|
1373
|
-
return this.createSystemDate(value);
|
|
1374
|
-
}
|
|
1375
|
-
return this.createTZDate(value, timezone);
|
|
1376
|
-
};
|
|
1377
|
-
getInvalidDate = () => dayjs(/* @__PURE__ */ new Date("Invalid date"));
|
|
1378
|
-
getTimezone = (value) => {
|
|
1018
|
+
adjustOffset = (e) => {
|
|
1019
|
+
if (!this.hasTimezonePlugin())
|
|
1020
|
+
return e;
|
|
1021
|
+
const r = this.getTimezone(e);
|
|
1022
|
+
if (r !== "UTC") {
|
|
1023
|
+
const o = e.tz(this.cleanTimezone(r), !0);
|
|
1024
|
+
if (o.$offset === (e.$offset ?? 0))
|
|
1025
|
+
return e;
|
|
1026
|
+
e.$offset = o.$offset;
|
|
1027
|
+
}
|
|
1028
|
+
return e;
|
|
1029
|
+
};
|
|
1030
|
+
date = (e, r = "default") => e === null ? null : r === "UTC" ? this.createUTCDate(e) : r === "system" || r === "default" && !this.hasTimezonePlugin() ? this.createSystemDate(e) : this.createTZDate(e, r);
|
|
1031
|
+
getInvalidDate = () => G(/* @__PURE__ */ new Date("Invalid date"));
|
|
1032
|
+
getTimezone = (e) => {
|
|
1379
1033
|
if (this.hasTimezonePlugin()) {
|
|
1380
|
-
const
|
|
1381
|
-
if (
|
|
1382
|
-
return
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
return
|
|
1393
|
-
}
|
|
1394
|
-
if (
|
|
1395
|
-
|
|
1396
|
-
throw new Error(MISSING_UTC_PLUGIN);
|
|
1397
|
-
}
|
|
1398
|
-
return value.utc();
|
|
1399
|
-
}
|
|
1400
|
-
if (timezone === "system") {
|
|
1401
|
-
return value.local();
|
|
1402
|
-
}
|
|
1034
|
+
const r = e.$x?.$timezone;
|
|
1035
|
+
if (r)
|
|
1036
|
+
return r;
|
|
1037
|
+
}
|
|
1038
|
+
return this.hasUTCPlugin() && e.isUTC() ? "UTC" : "system";
|
|
1039
|
+
};
|
|
1040
|
+
setTimezone = (e, r) => {
|
|
1041
|
+
if (this.getTimezone(e) === r)
|
|
1042
|
+
return e;
|
|
1043
|
+
if (r === "UTC") {
|
|
1044
|
+
if (!this.hasUTCPlugin())
|
|
1045
|
+
throw new Error(rt);
|
|
1046
|
+
return e.utc();
|
|
1047
|
+
}
|
|
1048
|
+
if (r === "system")
|
|
1049
|
+
return e.local();
|
|
1403
1050
|
if (!this.hasTimezonePlugin()) {
|
|
1404
|
-
if (
|
|
1405
|
-
return
|
|
1406
|
-
|
|
1407
|
-
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
};
|
|
1420
|
-
getCurrentLocaleCode = () => {
|
|
1421
|
-
return this.locale || "en";
|
|
1422
|
-
};
|
|
1423
|
-
is12HourCycleInCurrentLocale = () => {
|
|
1424
|
-
return /A|a/.test(this.getLocaleFormats().LT || "");
|
|
1425
|
-
};
|
|
1426
|
-
expandFormat = (format) => {
|
|
1427
|
-
const localeFormats = this.getLocaleFormats();
|
|
1428
|
-
const t = (formatBis) => formatBis.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (_, a, b) => a || b.slice(1));
|
|
1429
|
-
return format.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (_, a, b) => {
|
|
1430
|
-
const B = b && b.toUpperCase();
|
|
1431
|
-
return a || localeFormats[b] || t(localeFormats[B]);
|
|
1051
|
+
if (r === "default")
|
|
1052
|
+
return e;
|
|
1053
|
+
throw new Error(Pt);
|
|
1054
|
+
}
|
|
1055
|
+
return this.setLocaleToValue(G.tz(e, this.cleanTimezone(r)));
|
|
1056
|
+
};
|
|
1057
|
+
toJsDate = (e) => e.toDate();
|
|
1058
|
+
parse = (e, r) => e === "" ? null : G(e, r, this.locale, !0);
|
|
1059
|
+
getCurrentLocaleCode = () => this.locale || "en";
|
|
1060
|
+
is12HourCycleInCurrentLocale = () => /A|a/.test(this.getLocaleFormats().LT || "");
|
|
1061
|
+
expandFormat = (e) => {
|
|
1062
|
+
const r = this.getLocaleFormats(), o = (s) => s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (a, n, l) => n || l.slice(1));
|
|
1063
|
+
return e.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (s, a, n) => {
|
|
1064
|
+
const l = n && n.toUpperCase();
|
|
1065
|
+
return a || r[n] || o(r[l]);
|
|
1432
1066
|
});
|
|
1433
1067
|
};
|
|
1434
|
-
isValid = (
|
|
1435
|
-
|
|
1436
|
-
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
|
|
1442
|
-
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1461
|
-
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1465
|
-
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
1472
|
-
|
|
1473
|
-
|
|
1474
|
-
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
|
|
1478
|
-
|
|
1479
|
-
|
|
1480
|
-
|
|
1481
|
-
|
|
1482
|
-
|
|
1483
|
-
|
|
1484
|
-
|
|
1485
|
-
|
|
1486
|
-
|
|
1487
|
-
};
|
|
1488
|
-
isBeforeYear = (value, comparing) => {
|
|
1489
|
-
if (!this.hasUTCPlugin()) {
|
|
1490
|
-
return value.isBefore(comparing, "year");
|
|
1068
|
+
isValid = (e) => e == null ? !1 : e.isValid();
|
|
1069
|
+
format = (e, r) => this.formatByString(e, this.formats[r]);
|
|
1070
|
+
formatByString = (e, r) => this.setLocaleToValue(e).format(r);
|
|
1071
|
+
formatNumber = (e) => e;
|
|
1072
|
+
isEqual = (e, r) => e === null && r === null ? !0 : e === null || r === null ? !1 : e.toDate().getTime() === r.toDate().getTime();
|
|
1073
|
+
isSameYear = (e, r) => this.isSame(e, r, "YYYY");
|
|
1074
|
+
isSameMonth = (e, r) => this.isSame(e, r, "YYYY-MM");
|
|
1075
|
+
isSameDay = (e, r) => this.isSame(e, r, "YYYY-MM-DD");
|
|
1076
|
+
isSameHour = (e, r) => e.isSame(r, "hour");
|
|
1077
|
+
isAfter = (e, r) => e > r;
|
|
1078
|
+
isAfterYear = (e, r) => this.hasUTCPlugin() ? !this.isSameYear(e, r) && e.utc() > r.utc() : e.isAfter(r, "year");
|
|
1079
|
+
isAfterDay = (e, r) => this.hasUTCPlugin() ? !this.isSameDay(e, r) && e.utc() > r.utc() : e.isAfter(r, "day");
|
|
1080
|
+
isBefore = (e, r) => e < r;
|
|
1081
|
+
isBeforeYear = (e, r) => this.hasUTCPlugin() ? !this.isSameYear(e, r) && e.utc() < r.utc() : e.isBefore(r, "year");
|
|
1082
|
+
isBeforeDay = (e, r) => this.hasUTCPlugin() ? !this.isSameDay(e, r) && e.utc() < r.utc() : e.isBefore(r, "day");
|
|
1083
|
+
isWithinRange = (e, [r, o]) => e >= r && e <= o;
|
|
1084
|
+
startOfYear = (e) => this.adjustOffset(e.startOf("year"));
|
|
1085
|
+
startOfMonth = (e) => this.adjustOffset(e.startOf("month"));
|
|
1086
|
+
startOfWeek = (e) => this.adjustOffset(this.setLocaleToValue(e).startOf("week"));
|
|
1087
|
+
startOfDay = (e) => this.adjustOffset(e.startOf("day"));
|
|
1088
|
+
endOfYear = (e) => this.adjustOffset(e.endOf("year"));
|
|
1089
|
+
endOfMonth = (e) => this.adjustOffset(e.endOf("month"));
|
|
1090
|
+
endOfWeek = (e) => this.adjustOffset(this.setLocaleToValue(e).endOf("week"));
|
|
1091
|
+
endOfDay = (e) => this.adjustOffset(e.endOf("day"));
|
|
1092
|
+
addYears = (e, r) => this.adjustOffset(e.add(r, "year"));
|
|
1093
|
+
addMonths = (e, r) => this.adjustOffset(e.add(r, "month"));
|
|
1094
|
+
addWeeks = (e, r) => this.adjustOffset(e.add(r, "week"));
|
|
1095
|
+
addDays = (e, r) => this.adjustOffset(e.add(r, "day"));
|
|
1096
|
+
addHours = (e, r) => this.adjustOffset(e.add(r, "hour"));
|
|
1097
|
+
addMinutes = (e, r) => this.adjustOffset(e.add(r, "minute"));
|
|
1098
|
+
addSeconds = (e, r) => this.adjustOffset(e.add(r, "second"));
|
|
1099
|
+
getYear = (e) => e.year();
|
|
1100
|
+
getMonth = (e) => e.month();
|
|
1101
|
+
getDate = (e) => e.date();
|
|
1102
|
+
getHours = (e) => e.hour();
|
|
1103
|
+
getMinutes = (e) => e.minute();
|
|
1104
|
+
getSeconds = (e) => e.second();
|
|
1105
|
+
getMilliseconds = (e) => e.millisecond();
|
|
1106
|
+
setYear = (e, r) => this.adjustOffset(e.set("year", r));
|
|
1107
|
+
setMonth = (e, r) => this.adjustOffset(e.set("month", r));
|
|
1108
|
+
setDate = (e, r) => this.adjustOffset(e.set("date", r));
|
|
1109
|
+
setHours = (e, r) => this.adjustOffset(e.set("hour", r));
|
|
1110
|
+
setMinutes = (e, r) => this.adjustOffset(e.set("minute", r));
|
|
1111
|
+
setSeconds = (e, r) => this.adjustOffset(e.set("second", r));
|
|
1112
|
+
setMilliseconds = (e, r) => this.adjustOffset(e.set("millisecond", r));
|
|
1113
|
+
getDaysInMonth = (e) => e.daysInMonth();
|
|
1114
|
+
getWeekArray = (e) => {
|
|
1115
|
+
const r = this.startOfWeek(this.startOfMonth(e)), o = this.endOfWeek(this.endOfMonth(e));
|
|
1116
|
+
let s = 0, a = r;
|
|
1117
|
+
const n = [];
|
|
1118
|
+
for (; a < o; ) {
|
|
1119
|
+
const l = Math.floor(s / 7);
|
|
1120
|
+
n[l] = n[l] || [], n[l].push(a), a = this.addDays(a, 1), s += 1;
|
|
1491
1121
|
}
|
|
1492
|
-
return
|
|
1493
|
-
};
|
|
1494
|
-
isBeforeDay = (value, comparing) => {
|
|
1495
|
-
if (!this.hasUTCPlugin()) {
|
|
1496
|
-
return value.isBefore(comparing, "day");
|
|
1497
|
-
}
|
|
1498
|
-
return !this.isSameDay(value, comparing) && value.utc() < comparing.utc();
|
|
1499
|
-
};
|
|
1500
|
-
isWithinRange = (value, [start, end]) => {
|
|
1501
|
-
return value >= start && value <= end;
|
|
1502
|
-
};
|
|
1503
|
-
startOfYear = (value) => {
|
|
1504
|
-
return this.adjustOffset(value.startOf("year"));
|
|
1505
|
-
};
|
|
1506
|
-
startOfMonth = (value) => {
|
|
1507
|
-
return this.adjustOffset(value.startOf("month"));
|
|
1508
|
-
};
|
|
1509
|
-
startOfWeek = (value) => {
|
|
1510
|
-
return this.adjustOffset(this.setLocaleToValue(value).startOf("week"));
|
|
1511
|
-
};
|
|
1512
|
-
startOfDay = (value) => {
|
|
1513
|
-
return this.adjustOffset(value.startOf("day"));
|
|
1514
|
-
};
|
|
1515
|
-
endOfYear = (value) => {
|
|
1516
|
-
return this.adjustOffset(value.endOf("year"));
|
|
1517
|
-
};
|
|
1518
|
-
endOfMonth = (value) => {
|
|
1519
|
-
return this.adjustOffset(value.endOf("month"));
|
|
1520
|
-
};
|
|
1521
|
-
endOfWeek = (value) => {
|
|
1522
|
-
return this.adjustOffset(this.setLocaleToValue(value).endOf("week"));
|
|
1523
|
-
};
|
|
1524
|
-
endOfDay = (value) => {
|
|
1525
|
-
return this.adjustOffset(value.endOf("day"));
|
|
1526
|
-
};
|
|
1527
|
-
addYears = (value, amount) => {
|
|
1528
|
-
return this.adjustOffset(value.add(amount, "year"));
|
|
1529
|
-
};
|
|
1530
|
-
addMonths = (value, amount) => {
|
|
1531
|
-
return this.adjustOffset(value.add(amount, "month"));
|
|
1532
|
-
};
|
|
1533
|
-
addWeeks = (value, amount) => {
|
|
1534
|
-
return this.adjustOffset(value.add(amount, "week"));
|
|
1535
|
-
};
|
|
1536
|
-
addDays = (value, amount) => {
|
|
1537
|
-
return this.adjustOffset(value.add(amount, "day"));
|
|
1538
|
-
};
|
|
1539
|
-
addHours = (value, amount) => {
|
|
1540
|
-
return this.adjustOffset(value.add(amount, "hour"));
|
|
1541
|
-
};
|
|
1542
|
-
addMinutes = (value, amount) => {
|
|
1543
|
-
return this.adjustOffset(value.add(amount, "minute"));
|
|
1544
|
-
};
|
|
1545
|
-
addSeconds = (value, amount) => {
|
|
1546
|
-
return this.adjustOffset(value.add(amount, "second"));
|
|
1547
|
-
};
|
|
1548
|
-
getYear = (value) => {
|
|
1549
|
-
return value.year();
|
|
1550
|
-
};
|
|
1551
|
-
getMonth = (value) => {
|
|
1552
|
-
return value.month();
|
|
1553
|
-
};
|
|
1554
|
-
getDate = (value) => {
|
|
1555
|
-
return value.date();
|
|
1556
|
-
};
|
|
1557
|
-
getHours = (value) => {
|
|
1558
|
-
return value.hour();
|
|
1559
|
-
};
|
|
1560
|
-
getMinutes = (value) => {
|
|
1561
|
-
return value.minute();
|
|
1562
|
-
};
|
|
1563
|
-
getSeconds = (value) => {
|
|
1564
|
-
return value.second();
|
|
1565
|
-
};
|
|
1566
|
-
getMilliseconds = (value) => {
|
|
1567
|
-
return value.millisecond();
|
|
1568
|
-
};
|
|
1569
|
-
setYear = (value, year) => {
|
|
1570
|
-
return this.adjustOffset(value.set("year", year));
|
|
1571
|
-
};
|
|
1572
|
-
setMonth = (value, month) => {
|
|
1573
|
-
return this.adjustOffset(value.set("month", month));
|
|
1574
|
-
};
|
|
1575
|
-
setDate = (value, date) => {
|
|
1576
|
-
return this.adjustOffset(value.set("date", date));
|
|
1577
|
-
};
|
|
1578
|
-
setHours = (value, hours) => {
|
|
1579
|
-
return this.adjustOffset(value.set("hour", hours));
|
|
1580
|
-
};
|
|
1581
|
-
setMinutes = (value, minutes) => {
|
|
1582
|
-
return this.adjustOffset(value.set("minute", minutes));
|
|
1583
|
-
};
|
|
1584
|
-
setSeconds = (value, seconds) => {
|
|
1585
|
-
return this.adjustOffset(value.set("second", seconds));
|
|
1586
|
-
};
|
|
1587
|
-
setMilliseconds = (value, milliseconds) => {
|
|
1588
|
-
return this.adjustOffset(value.set("millisecond", milliseconds));
|
|
1589
|
-
};
|
|
1590
|
-
getDaysInMonth = (value) => {
|
|
1591
|
-
return value.daysInMonth();
|
|
1592
|
-
};
|
|
1593
|
-
getWeekArray = (value) => {
|
|
1594
|
-
const start = this.startOfWeek(this.startOfMonth(value));
|
|
1595
|
-
const end = this.endOfWeek(this.endOfMonth(value));
|
|
1596
|
-
let count = 0;
|
|
1597
|
-
let current = start;
|
|
1598
|
-
const nestedWeeks = [];
|
|
1599
|
-
while (current < end) {
|
|
1600
|
-
const weekNumber = Math.floor(count / 7);
|
|
1601
|
-
nestedWeeks[weekNumber] = nestedWeeks[weekNumber] || [];
|
|
1602
|
-
nestedWeeks[weekNumber].push(current);
|
|
1603
|
-
current = this.addDays(current, 1);
|
|
1604
|
-
count += 1;
|
|
1605
|
-
}
|
|
1606
|
-
return nestedWeeks;
|
|
1607
|
-
};
|
|
1608
|
-
getWeekNumber = (value) => {
|
|
1609
|
-
return value.week();
|
|
1122
|
+
return n;
|
|
1610
1123
|
};
|
|
1611
|
-
|
|
1612
|
-
|
|
1124
|
+
getWeekNumber = (e) => e.week();
|
|
1125
|
+
getDayOfWeek(e) {
|
|
1126
|
+
return e.day() + 1;
|
|
1613
1127
|
}
|
|
1614
|
-
getYearRange = ([
|
|
1615
|
-
const
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
|
|
1619
|
-
|
|
1620
|
-
years.push(current);
|
|
1621
|
-
current = this.addYears(current, 1);
|
|
1622
|
-
}
|
|
1623
|
-
return years;
|
|
1128
|
+
getYearRange = ([e, r]) => {
|
|
1129
|
+
const o = this.startOfYear(e), s = this.endOfYear(r), a = [];
|
|
1130
|
+
let n = o;
|
|
1131
|
+
for (; this.isBefore(n, s); )
|
|
1132
|
+
a.push(n), n = this.addYears(n, 1);
|
|
1133
|
+
return a;
|
|
1624
1134
|
};
|
|
1625
1135
|
}
|
|
1626
|
-
function
|
|
1627
|
-
children
|
|
1136
|
+
function ln({
|
|
1137
|
+
children: t
|
|
1628
1138
|
}) {
|
|
1629
|
-
const [
|
|
1630
|
-
const keyPrefix = useId();
|
|
1631
|
-
const nextId = useRef(0);
|
|
1632
|
-
const dialogMetadata = useRef(/* @__PURE__ */ new WeakMap());
|
|
1633
|
-
const requestDialog = useEventCallback(function open(Component, payload, options = {}) {
|
|
1139
|
+
const [e, r] = ce([]), o = or(), s = dt(0), a = dt(/* @__PURE__ */ new WeakMap()), n = tt(function(h, v, g = {}) {
|
|
1634
1140
|
const {
|
|
1635
|
-
onClose = async () => {
|
|
1636
|
-
}
|
|
1637
|
-
} =
|
|
1638
|
-
let
|
|
1639
|
-
const
|
|
1640
|
-
|
|
1641
|
-
})
|
|
1642
|
-
|
|
1643
|
-
|
|
1644
|
-
|
|
1645
|
-
|
|
1646
|
-
|
|
1647
|
-
|
|
1648
|
-
|
|
1649
|
-
|
|
1650
|
-
|
|
1651
|
-
resolve
|
|
1141
|
+
onClose: b = async () => {
|
|
1142
|
+
}
|
|
1143
|
+
} = g;
|
|
1144
|
+
let T;
|
|
1145
|
+
const E = new Promise((x) => {
|
|
1146
|
+
T = x;
|
|
1147
|
+
}), P = `${o}-${s.current}`;
|
|
1148
|
+
s.current += 1;
|
|
1149
|
+
const A = {
|
|
1150
|
+
key: P,
|
|
1151
|
+
open: !0,
|
|
1152
|
+
promise: E,
|
|
1153
|
+
Component: h,
|
|
1154
|
+
payload: v,
|
|
1155
|
+
onClose: b,
|
|
1156
|
+
resolve: T
|
|
1652
1157
|
};
|
|
1653
|
-
|
|
1654
|
-
|
|
1655
|
-
|
|
1656
|
-
})
|
|
1657
|
-
|
|
1658
|
-
|
|
1659
|
-
|
|
1660
|
-
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
open: false
|
|
1665
|
-
} : entry_0));
|
|
1666
|
-
setTimeout(() => removeDialogFromStack(dialog_0), 1e3);
|
|
1667
|
-
});
|
|
1668
|
-
const closeDialog = useEventCallback(async function closeDialog2(dialog_1, result) {
|
|
1669
|
-
const entryToClose = dialogMetadata.current.get(dialog_1);
|
|
1670
|
-
if (!entryToClose) {
|
|
1158
|
+
return a.current.set(E, A), r((x) => [...x, A]), E;
|
|
1159
|
+
}), l = (u) => {
|
|
1160
|
+
r((h) => h.filter((v) => v.promise !== u)), a.current.delete(u);
|
|
1161
|
+
}, f = tt(function(h) {
|
|
1162
|
+
r((v) => v.map((g) => g.promise === h ? {
|
|
1163
|
+
...g,
|
|
1164
|
+
open: !1
|
|
1165
|
+
} : g)), setTimeout(() => l(h), 1e3);
|
|
1166
|
+
}), d = tt(async function(h, v) {
|
|
1167
|
+
const g = a.current.get(h);
|
|
1168
|
+
if (!g)
|
|
1671
1169
|
throw new Error("Dialog not found in stack");
|
|
1672
|
-
}
|
|
1673
1170
|
try {
|
|
1674
|
-
await
|
|
1171
|
+
await g.onClose(v);
|
|
1675
1172
|
} finally {
|
|
1676
|
-
|
|
1677
|
-
closeDialogUi(dialog_1);
|
|
1173
|
+
g.resolve(v), f(h);
|
|
1678
1174
|
}
|
|
1679
|
-
return
|
|
1175
|
+
return h;
|
|
1680
1176
|
});
|
|
1681
|
-
return /* @__PURE__ */
|
|
1682
|
-
open:
|
|
1683
|
-
close:
|
|
1177
|
+
return /* @__PURE__ */ q(lr.Provider, { value: {
|
|
1178
|
+
open: n,
|
|
1179
|
+
close: d
|
|
1684
1180
|
}, children: [
|
|
1685
|
-
|
|
1686
|
-
|
|
1687
|
-
key:
|
|
1688
|
-
open,
|
|
1689
|
-
Component:
|
|
1690
|
-
payload:
|
|
1691
|
-
promise:
|
|
1692
|
-
}) => /* @__PURE__ */
|
|
1693
|
-
await
|
|
1694
|
-
} },
|
|
1181
|
+
t,
|
|
1182
|
+
e.map(({
|
|
1183
|
+
key: u,
|
|
1184
|
+
open: h,
|
|
1185
|
+
Component: v,
|
|
1186
|
+
payload: g,
|
|
1187
|
+
promise: b
|
|
1188
|
+
}) => /* @__PURE__ */ p(v, { payload: g, open: h, onClose: async (T) => {
|
|
1189
|
+
await d(b, T);
|
|
1190
|
+
} }, u))
|
|
1695
1191
|
] });
|
|
1696
1192
|
}
|
|
1697
|
-
const
|
|
1698
|
-
const
|
|
1699
|
-
let
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
} else {
|
|
1708
|
-
t0 = $[0];
|
|
1709
|
-
}
|
|
1710
|
-
return t0;
|
|
1711
|
-
};
|
|
1712
|
-
const ICON_SIZE = 34;
|
|
1713
|
-
const StyledNavButton = styled(ListItemButton)(({
|
|
1714
|
-
theme
|
|
1193
|
+
const un = () => {
|
|
1194
|
+
const t = ae(1);
|
|
1195
|
+
let e;
|
|
1196
|
+
return t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e = /* @__PURE__ */ q(Wt, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
|
|
1197
|
+
/* @__PURE__ */ p("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
|
|
1198
|
+
/* @__PURE__ */ p(Ft, { variant: "h6", children: yr.VITE_APP_TITLE }),
|
|
1199
|
+
!1
|
|
1200
|
+
] }), t[0] = e) : e = t[0], e;
|
|
1201
|
+
}, nt = 34, fn = at(Or)(({
|
|
1202
|
+
theme: t
|
|
1715
1203
|
}) => ({
|
|
1716
1204
|
borderRadius: 8,
|
|
1717
1205
|
"&.Mui-selected": {
|
|
1718
1206
|
"& .MuiListItemIcon-root, & .MuiTypography-root, & .MuiSvgIcon-root": {
|
|
1719
|
-
color: (
|
|
1207
|
+
color: (t.vars ?? t).palette.primary.dark
|
|
1720
1208
|
},
|
|
1721
1209
|
"& .MuiAvatar-root": {
|
|
1722
|
-
backgroundColor: (
|
|
1210
|
+
backgroundColor: (t.vars ?? t).palette.primary.dark
|
|
1723
1211
|
},
|
|
1724
1212
|
"& .MuiTouchRipple-child": {
|
|
1725
|
-
backgroundColor: (
|
|
1213
|
+
backgroundColor: (t.vars ?? t).palette.primary.dark
|
|
1726
1214
|
}
|
|
1727
1215
|
},
|
|
1728
1216
|
"& .MuiSvgIcon-root": {
|
|
1729
|
-
color: (
|
|
1217
|
+
color: (t.vars ?? t).palette.action.active
|
|
1730
1218
|
},
|
|
1731
1219
|
"& .MuiAvatar-root": {
|
|
1732
|
-
backgroundColor: (
|
|
1220
|
+
backgroundColor: (t.vars ?? t).palette.action.active
|
|
1733
1221
|
}
|
|
1734
|
-
}))
|
|
1735
|
-
|
|
1736
|
-
theme
|
|
1222
|
+
})), dn = at(Ir)(({
|
|
1223
|
+
theme: t
|
|
1737
1224
|
}) => ({
|
|
1738
1225
|
borderRadius: 8,
|
|
1739
1226
|
"&.Mui-selected": {
|
|
1740
1227
|
"& .MuiListItemIcon-root, & .MuiTypography-root, & .MuiSvgIcon-root": {
|
|
1741
|
-
color: (
|
|
1228
|
+
color: (t.vars ?? t).palette.primary.dark
|
|
1742
1229
|
},
|
|
1743
1230
|
"& .MuiAvatar-root": {
|
|
1744
|
-
backgroundColor: (
|
|
1231
|
+
backgroundColor: (t.vars ?? t).palette.primary.dark
|
|
1745
1232
|
},
|
|
1746
1233
|
"& .MuiTouchRipple-child": {
|
|
1747
|
-
backgroundColor: (
|
|
1234
|
+
backgroundColor: (t.vars ?? t).palette.primary.dark
|
|
1748
1235
|
}
|
|
1749
1236
|
},
|
|
1750
1237
|
"& .MuiSvgIcon-root": {
|
|
1751
|
-
color: (
|
|
1238
|
+
color: (t.vars ?? t).palette.action.active
|
|
1752
1239
|
},
|
|
1753
1240
|
"& .MuiAvatar-root": {
|
|
1754
|
-
backgroundColor: (
|
|
1755
|
-
}
|
|
1756
|
-
}))
|
|
1757
|
-
const
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
let
|
|
1778
|
-
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
|
|
1788
|
-
|
|
1789
|
-
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
|
|
1797
|
-
|
|
1798
|
-
|
|
1799
|
-
|
|
1800
|
-
|
|
1801
|
-
}
|
|
1802
|
-
|
|
1803
|
-
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
|
|
1807
|
-
t3,
|
|
1808
|
-
t4
|
|
1809
|
-
] });
|
|
1810
|
-
$[7] = t3;
|
|
1811
|
-
$[8] = t4;
|
|
1812
|
-
$[9] = t5;
|
|
1813
|
-
} else {
|
|
1814
|
-
t5 = $[9];
|
|
1815
|
-
}
|
|
1816
|
-
let t6;
|
|
1817
|
-
if ($[10] !== collapsed || $[11] !== item.title) {
|
|
1818
|
-
t6 = collapsed ? /* @__PURE__ */ jsx(Typography$1, { variant: "caption", sx: {
|
|
1819
|
-
position: "absolute",
|
|
1820
|
-
bottom: -18,
|
|
1821
|
-
left: "50%",
|
|
1822
|
-
transform: "translateX(-50%)",
|
|
1823
|
-
fontSize: 10,
|
|
1824
|
-
fontWeight: 500,
|
|
1825
|
-
textAlign: "center",
|
|
1826
|
-
whiteSpace: "nowrap",
|
|
1827
|
-
overflow: "hidden",
|
|
1828
|
-
textOverflow: "ellipsis",
|
|
1829
|
-
maxWidth: MINI_WIDTH - 28
|
|
1830
|
-
}, children: item.title }) : null;
|
|
1831
|
-
$[10] = collapsed;
|
|
1832
|
-
$[11] = item.title;
|
|
1833
|
-
$[12] = t6;
|
|
1834
|
-
} else {
|
|
1835
|
-
t6 = $[12];
|
|
1836
|
-
}
|
|
1837
|
-
let t7;
|
|
1838
|
-
if ($[13] !== t1 || $[14] !== t5 || $[15] !== t6) {
|
|
1839
|
-
t7 = /* @__PURE__ */ jsxs(Box, { sx: t1, children: [
|
|
1840
|
-
t5,
|
|
1841
|
-
t6
|
|
1842
|
-
] });
|
|
1843
|
-
$[13] = t1;
|
|
1844
|
-
$[14] = t5;
|
|
1845
|
-
$[15] = t6;
|
|
1846
|
-
$[16] = t7;
|
|
1847
|
-
} else {
|
|
1848
|
-
t7 = $[16];
|
|
1849
|
-
}
|
|
1850
|
-
return t7;
|
|
1241
|
+
backgroundColor: (t.vars ?? t).palette.action.active
|
|
1242
|
+
}
|
|
1243
|
+
})), mn = (t) => {
|
|
1244
|
+
const e = ae(17), {
|
|
1245
|
+
item: r,
|
|
1246
|
+
collapsed: o
|
|
1247
|
+
} = t;
|
|
1248
|
+
if (r.icon || o) {
|
|
1249
|
+
let s;
|
|
1250
|
+
e[0] !== o ? (s = o ? {
|
|
1251
|
+
position: "absolute",
|
|
1252
|
+
left: "50%",
|
|
1253
|
+
top: "calc(50% - 6px)",
|
|
1254
|
+
transform: "translate(-50%, -50%)"
|
|
1255
|
+
} : {}, e[0] = o, e[1] = s) : s = e[1];
|
|
1256
|
+
let a;
|
|
1257
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
|
|
1258
|
+
display: "flex",
|
|
1259
|
+
alignItems: "center",
|
|
1260
|
+
justifyContent: "center",
|
|
1261
|
+
minWidth: nt
|
|
1262
|
+
}, e[2] = a) : a = e[2];
|
|
1263
|
+
const n = r.icon ?? null;
|
|
1264
|
+
let l;
|
|
1265
|
+
e[3] !== o || e[4] !== r.icon || e[5] !== r.title ? (l = !r.icon && o ? /* @__PURE__ */ p(Er, { sx: {
|
|
1266
|
+
width: nt - 7,
|
|
1267
|
+
height: nt - 7,
|
|
1268
|
+
fontSize: 12
|
|
1269
|
+
}, children: r.title }) : null, e[3] = o, e[4] = r.icon, e[5] = r.title, e[6] = l) : l = e[6];
|
|
1270
|
+
let f;
|
|
1271
|
+
e[7] !== n || e[8] !== l ? (f = /* @__PURE__ */ q(wr, { sx: a, children: [
|
|
1272
|
+
n,
|
|
1273
|
+
l
|
|
1274
|
+
] }), e[7] = n, e[8] = l, e[9] = f) : f = e[9];
|
|
1275
|
+
let d;
|
|
1276
|
+
e[10] !== o || e[11] !== r.title ? (d = o ? /* @__PURE__ */ p(kr, { variant: "caption", sx: {
|
|
1277
|
+
position: "absolute",
|
|
1278
|
+
bottom: -18,
|
|
1279
|
+
left: "50%",
|
|
1280
|
+
transform: "translateX(-50%)",
|
|
1281
|
+
fontSize: 10,
|
|
1282
|
+
fontWeight: 500,
|
|
1283
|
+
textAlign: "center",
|
|
1284
|
+
whiteSpace: "nowrap",
|
|
1285
|
+
overflow: "hidden",
|
|
1286
|
+
textOverflow: "ellipsis",
|
|
1287
|
+
maxWidth: We - 28
|
|
1288
|
+
}, children: r.title }) : null, e[10] = o, e[11] = r.title, e[12] = d) : d = e[12];
|
|
1289
|
+
let u;
|
|
1290
|
+
return e[13] !== s || e[14] !== f || e[15] !== d ? (u = /* @__PURE__ */ q(At, { sx: s, children: [
|
|
1291
|
+
f,
|
|
1292
|
+
d
|
|
1293
|
+
] }), e[13] = s, e[14] = f, e[15] = d, e[16] = u) : u = e[16], u;
|
|
1851
1294
|
}
|
|
1852
1295
|
return null;
|
|
1853
|
-
}
|
|
1854
|
-
const
|
|
1855
|
-
|
|
1856
|
-
|
|
1857
|
-
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
|
|
1863
|
-
|
|
1864
|
-
|
|
1865
|
-
|
|
1866
|
-
|
|
1867
|
-
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
}
|
|
1873
|
-
let
|
|
1874
|
-
|
|
1875
|
-
|
|
1876
|
-
|
|
1877
|
-
|
|
1878
|
-
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
|
|
1892
|
-
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
|
|
1907
|
-
|
|
1908
|
-
|
|
1909
|
-
|
|
1910
|
-
|
|
1911
|
-
|
|
1912
|
-
|
|
1913
|
-
|
|
1914
|
-
$
|
|
1915
|
-
}
|
|
1916
|
-
|
|
1917
|
-
}
|
|
1918
|
-
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
};
|
|
1930
|
-
const
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
1962
|
-
|
|
1963
|
-
|
|
1964
|
-
|
|
1965
|
-
|
|
1966
|
-
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
1983
|
-
|
|
1984
|
-
|
|
1985
|
-
|
|
1986
|
-
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
}
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
|
|
2000
|
-
|
|
2001
|
-
|
|
2002
|
-
|
|
2003
|
-
}
|
|
2004
|
-
|
|
2005
|
-
|
|
2006
|
-
const
|
|
2007
|
-
let
|
|
2008
|
-
|
|
2009
|
-
|
|
2010
|
-
|
|
2011
|
-
|
|
2012
|
-
|
|
2013
|
-
|
|
2014
|
-
|
|
2015
|
-
}
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2019
|
-
|
|
2020
|
-
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
minWidth:
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
|
|
2030
|
-
|
|
2031
|
-
}
|
|
2032
|
-
} });
|
|
2033
|
-
$[15] = collapsed;
|
|
2034
|
-
$[16] = item.title;
|
|
2035
|
-
$[17] = t7;
|
|
2036
|
-
} else {
|
|
2037
|
-
t7 = $[17];
|
|
2038
|
-
}
|
|
2039
|
-
let t8;
|
|
2040
|
-
if ($[18] !== chevronSx || $[19] !== item.children) {
|
|
2041
|
-
t8 = item.children ? /* @__PURE__ */ jsx(ExpandMoreIcon, { sx: chevronSx }) : null;
|
|
2042
|
-
$[18] = chevronSx;
|
|
2043
|
-
$[19] = item.children;
|
|
2044
|
-
$[20] = t8;
|
|
2045
|
-
} else {
|
|
2046
|
-
t8 = $[20];
|
|
2047
|
-
}
|
|
2048
|
-
let t9;
|
|
2049
|
-
if ($[21] !== t6 || $[22] !== t7 || $[23] !== t8) {
|
|
2050
|
-
t9 = /* @__PURE__ */ jsxs(Fragment$1, { children: [
|
|
2051
|
-
t6,
|
|
2052
|
-
t7,
|
|
2053
|
-
t8
|
|
2054
|
-
] });
|
|
2055
|
-
$[21] = t6;
|
|
2056
|
-
$[22] = t7;
|
|
2057
|
-
$[23] = t8;
|
|
2058
|
-
$[24] = t9;
|
|
2059
|
-
} else {
|
|
2060
|
-
t9 = $[24];
|
|
2061
|
-
}
|
|
2062
|
-
const buttonContent = t9;
|
|
2063
|
-
let t10;
|
|
2064
|
-
if ($[25] !== collapsed || $[26] !== item.children || $[27] !== item.title) {
|
|
2065
|
-
t10 = item.children && collapsed ? {
|
|
2066
|
-
onMouseEnter: (event) => {
|
|
2067
|
-
setAnchorElement(event.currentTarget);
|
|
2068
|
-
setHoveredPopoverItem(item.title);
|
|
2069
|
-
},
|
|
2070
|
-
onMouseLeave: () => {
|
|
2071
|
-
setHoveredPopoverItem(null);
|
|
2072
|
-
}
|
|
2073
|
-
} : {};
|
|
2074
|
-
$[25] = collapsed;
|
|
2075
|
-
$[26] = item.children;
|
|
2076
|
-
$[27] = item.title;
|
|
2077
|
-
$[28] = t10;
|
|
2078
|
-
} else {
|
|
2079
|
-
t10 = $[28];
|
|
2080
|
-
}
|
|
2081
|
-
let t11;
|
|
2082
|
-
if ($[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2083
|
-
t11 = {
|
|
2084
|
-
py: 0,
|
|
2085
|
-
px: 1,
|
|
2086
|
-
overflowX: "hidden"
|
|
2087
|
-
};
|
|
2088
|
-
$[29] = t11;
|
|
2089
|
-
} else {
|
|
2090
|
-
t11 = $[29];
|
|
2091
|
-
}
|
|
2092
|
-
let t12;
|
|
2093
|
-
if ($[30] !== buttonContent || $[31] !== buttonProps || $[32] !== item || $[33] !== onClick || $[34] !== onClose || $[35] !== shouldJustExpand) {
|
|
2094
|
-
t12 = shouldJustExpand ? /* @__PURE__ */ jsx(StyledNavButton, { ...buttonProps, onClick: () => onClick?.(item), children: buttonContent }) : /* @__PURE__ */ jsx(StyledRouterButton, { ...buttonProps, to: item.to, href: item.href, params: item.params, search: item.search, onClick: onClose, children: buttonContent });
|
|
2095
|
-
$[30] = buttonContent;
|
|
2096
|
-
$[31] = buttonProps;
|
|
2097
|
-
$[32] = item;
|
|
2098
|
-
$[33] = onClick;
|
|
2099
|
-
$[34] = onClose;
|
|
2100
|
-
$[35] = shouldJustExpand;
|
|
2101
|
-
$[36] = t12;
|
|
2102
|
-
} else {
|
|
2103
|
-
t12 = $[36];
|
|
2104
|
-
}
|
|
2105
|
-
let t13;
|
|
2106
|
-
if ($[37] !== anchorElement || $[38] !== collapsed || $[39] !== hoveredPopoverItem || $[40] !== item.children || $[41] !== item.title || $[42] !== renderNested) {
|
|
2107
|
-
t13 = item.children && collapsed ? /* @__PURE__ */ jsx(MiniPopover, { open: item.title === hoveredPopoverItem, anchorEl: anchorElement, children: renderNested?.(item.children) }) : null;
|
|
2108
|
-
$[37] = anchorElement;
|
|
2109
|
-
$[38] = collapsed;
|
|
2110
|
-
$[39] = hoveredPopoverItem;
|
|
2111
|
-
$[40] = item.children;
|
|
2112
|
-
$[41] = item.title;
|
|
2113
|
-
$[42] = renderNested;
|
|
2114
|
-
$[43] = t13;
|
|
2115
|
-
} else {
|
|
2116
|
-
t13 = $[43];
|
|
2117
|
-
}
|
|
2118
|
-
let t14;
|
|
2119
|
-
if ($[44] !== t10 || $[45] !== t12 || $[46] !== t13) {
|
|
2120
|
-
t14 = /* @__PURE__ */ jsxs(ListItem, { ...t10, sx: t11, children: [
|
|
2121
|
-
t12,
|
|
2122
|
-
t13
|
|
2123
|
-
] });
|
|
2124
|
-
$[44] = t10;
|
|
2125
|
-
$[45] = t12;
|
|
2126
|
-
$[46] = t13;
|
|
2127
|
-
$[47] = t14;
|
|
2128
|
-
} else {
|
|
2129
|
-
t14 = $[47];
|
|
2130
|
-
}
|
|
2131
|
-
const listItem = t14;
|
|
2132
|
-
let t15;
|
|
2133
|
-
if ($[48] !== collapsed || $[49] !== isOpen || $[50] !== item.children || $[51] !== renderNested) {
|
|
2134
|
-
t15 = item.children && !collapsed ? /* @__PURE__ */ jsx(Collapse, { in: isOpen, timeout: "auto", unmountOnExit: true, children: renderNested?.(item.children) }) : null;
|
|
2135
|
-
$[48] = collapsed;
|
|
2136
|
-
$[49] = isOpen;
|
|
2137
|
-
$[50] = item.children;
|
|
2138
|
-
$[51] = renderNested;
|
|
2139
|
-
$[52] = t15;
|
|
2140
|
-
} else {
|
|
2141
|
-
t15 = $[52];
|
|
2142
|
-
}
|
|
2143
|
-
let t16;
|
|
2144
|
-
if ($[53] !== item.to || $[54] !== listItem || $[55] !== t15) {
|
|
2145
|
-
t16 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
2146
|
-
listItem,
|
|
2147
|
-
t15
|
|
2148
|
-
] }, item.to);
|
|
2149
|
-
$[53] = item.to;
|
|
2150
|
-
$[54] = listItem;
|
|
2151
|
-
$[55] = t15;
|
|
2152
|
-
$[56] = t16;
|
|
2153
|
-
} else {
|
|
2154
|
-
t16 = $[56];
|
|
2155
|
-
}
|
|
2156
|
-
return t16;
|
|
2157
|
-
};
|
|
2158
|
-
const isPageItem = (item) => !("kind" in item);
|
|
2159
|
-
const isDivider = (item) => "kind" in item && item.kind === "divider";
|
|
2160
|
-
const isHeader = (item) => "kind" in item && item.kind === "header";
|
|
2161
|
-
const NavigationList = (t0) => {
|
|
2162
|
-
const $ = c(31);
|
|
2163
|
-
const {
|
|
2164
|
-
subNavigation,
|
|
2165
|
-
depth: t1,
|
|
2166
|
-
collapsed,
|
|
2167
|
-
isPopover,
|
|
2168
|
-
isSidebarFullyExpanded: t2,
|
|
2169
|
-
isSidebarFullyCollapsed,
|
|
2170
|
-
expandedWidth,
|
|
2171
|
-
renderItem,
|
|
2172
|
-
activePath,
|
|
2173
|
-
onNavigate,
|
|
2174
|
-
onClose
|
|
2175
|
-
} = t0;
|
|
2176
|
-
const depth = t1 === void 0 ? 0 : t1;
|
|
2177
|
-
const isSidebarFullyExpanded = t2 === void 0 ? true : t2;
|
|
2178
|
-
let t3;
|
|
2179
|
-
if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2180
|
-
t3 = [];
|
|
2181
|
-
$[0] = t3;
|
|
2182
|
-
} else {
|
|
2183
|
-
t3 = $[0];
|
|
2184
|
-
}
|
|
2185
|
-
const [openKeys, setOpenKeys] = useState(t3);
|
|
2186
|
-
let t4;
|
|
2187
|
-
let t5;
|
|
2188
|
-
if ($[1] !== collapsed) {
|
|
2189
|
-
t4 = () => {
|
|
2190
|
-
if (collapsed) {
|
|
2191
|
-
setOpenKeys([]);
|
|
2192
|
-
}
|
|
2193
|
-
};
|
|
2194
|
-
t5 = [collapsed];
|
|
2195
|
-
$[1] = collapsed;
|
|
2196
|
-
$[2] = t4;
|
|
2197
|
-
$[3] = t5;
|
|
2198
|
-
} else {
|
|
2199
|
-
t4 = $[2];
|
|
2200
|
-
t5 = $[3];
|
|
2201
|
-
}
|
|
2202
|
-
useEffect(t4, t5);
|
|
2203
|
-
let t6;
|
|
2204
|
-
if ($[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2205
|
-
t6 = (key) => setOpenKeys((previous) => previous.includes(key) ? previous.filter((k) => k !== key) : [...previous, key]);
|
|
2206
|
-
$[4] = t6;
|
|
2207
|
-
} else {
|
|
2208
|
-
t6 = $[4];
|
|
2209
|
-
}
|
|
2210
|
-
const toggleKey = t6;
|
|
2211
|
-
let t7;
|
|
2212
|
-
if ($[5] !== activePath || $[6] !== collapsed || $[7] !== depth || $[8] !== expandedWidth || $[9] !== onClose || $[10] !== onNavigate) {
|
|
2213
|
-
t7 = (children) => /* @__PURE__ */ jsx(NavigationList, { subNavigation: children, depth: depth + 1, isPopover: collapsed, expandedWidth, activePath, onNavigate, onClose });
|
|
2214
|
-
$[5] = activePath;
|
|
2215
|
-
$[6] = collapsed;
|
|
2216
|
-
$[7] = depth;
|
|
2217
|
-
$[8] = expandedWidth;
|
|
2218
|
-
$[9] = onClose;
|
|
2219
|
-
$[10] = onNavigate;
|
|
2220
|
-
$[11] = t7;
|
|
2221
|
-
} else {
|
|
2222
|
-
t7 = $[11];
|
|
2223
|
-
}
|
|
2224
|
-
const renderNested = t7;
|
|
2225
|
-
let t8;
|
|
2226
|
-
if ($[12] !== activePath || $[13] !== collapsed || $[14] !== depth || $[15] !== expandedWidth || $[16] !== isPopover || $[17] !== isSidebarFullyCollapsed || $[18] !== isSidebarFullyExpanded || $[19] !== onClose || $[20] !== openKeys || $[21] !== renderItem || $[22] !== renderNested || $[23] !== subNavigation) {
|
|
2227
|
-
const filteredNavigation = subNavigation.filter(_temp$3);
|
|
2228
|
-
const t9 = isPopover && depth === 1 ? 0.5 : 0;
|
|
2229
|
-
const t10 = depth === 0 && !isPopover ? 4 : 0.5;
|
|
2230
|
-
const t11 = (isPopover ? 1 : 2) * (isPopover ? depth - 1 : depth);
|
|
2231
|
-
const t12 = isPopover && depth === 1 ? EXPANDED_WIDTH : "auto";
|
|
2232
|
-
const t13 = collapsed ? MINI_WIDTH : "auto";
|
|
2233
|
-
let t14;
|
|
2234
|
-
if ($[25] !== t10 || $[26] !== t11 || $[27] !== t12 || $[28] !== t13 || $[29] !== t9) {
|
|
2235
|
-
t14 = {
|
|
2236
|
-
padding: 0,
|
|
2237
|
-
mt: t9,
|
|
2238
|
-
mb: t10,
|
|
2239
|
-
pl: t11,
|
|
2240
|
-
minWidth: t12,
|
|
2241
|
-
width: t13
|
|
2242
|
-
};
|
|
2243
|
-
$[25] = t10;
|
|
2244
|
-
$[26] = t11;
|
|
2245
|
-
$[27] = t12;
|
|
2246
|
-
$[28] = t13;
|
|
2247
|
-
$[29] = t9;
|
|
2248
|
-
$[30] = t14;
|
|
2249
|
-
} else {
|
|
2250
|
-
t14 = $[30];
|
|
2251
|
-
}
|
|
2252
|
-
t8 = /* @__PURE__ */ jsx(List, { sx: t14, children: filteredNavigation.map((navItem, index) => {
|
|
2253
|
-
if (isHeader(navItem)) {
|
|
2254
|
-
return /* @__PURE__ */ jsx(ListSubheader, { sx: {
|
|
1296
|
+
}, pn = (t) => {
|
|
1297
|
+
const e = ae(10), {
|
|
1298
|
+
open: r,
|
|
1299
|
+
anchorEl: o,
|
|
1300
|
+
children: s
|
|
1301
|
+
} = t;
|
|
1302
|
+
let a;
|
|
1303
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = {
|
|
1304
|
+
name: "offset",
|
|
1305
|
+
options: {
|
|
1306
|
+
offset: [6, 0]
|
|
1307
|
+
}
|
|
1308
|
+
}, e[0] = a) : a = e[0];
|
|
1309
|
+
let n;
|
|
1310
|
+
e[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = {
|
|
1311
|
+
name: "preventOverflow",
|
|
1312
|
+
options: {
|
|
1313
|
+
padding: 8
|
|
1314
|
+
}
|
|
1315
|
+
}, e[1] = n) : n = e[1];
|
|
1316
|
+
let l;
|
|
1317
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [a, n, {
|
|
1318
|
+
name: "flip",
|
|
1319
|
+
options: {
|
|
1320
|
+
fallbackPlacements: ["right-end", "left-start"]
|
|
1321
|
+
}
|
|
1322
|
+
}], e[2] = l) : l = e[2];
|
|
1323
|
+
let f;
|
|
1324
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
|
|
1325
|
+
pt: 0.5,
|
|
1326
|
+
pb: 0.5,
|
|
1327
|
+
maxHeight: "min(calc(100vh - 100px), 560px)",
|
|
1328
|
+
overflowY: "auto",
|
|
1329
|
+
overscrollBehavior: "contain"
|
|
1330
|
+
}, e[3] = f) : f = e[3];
|
|
1331
|
+
let d;
|
|
1332
|
+
e[4] !== s ? (d = /* @__PURE__ */ p(Mr, { sx: f, children: s }), e[4] = s, e[5] = d) : d = e[5];
|
|
1333
|
+
let u;
|
|
1334
|
+
return e[6] !== o || e[7] !== r || e[8] !== d ? (u = /* @__PURE__ */ p(Pr, { open: r, anchorEl: o, placement: "right-start", modifiers: l, children: d }), e[6] = o, e[7] = r, e[8] = d, e[9] = u) : u = e[9], u;
|
|
1335
|
+
}, hn = (t) => {
|
|
1336
|
+
const e = ae(57), {
|
|
1337
|
+
item: r,
|
|
1338
|
+
isOpen: o,
|
|
1339
|
+
selected: s,
|
|
1340
|
+
disabled: a,
|
|
1341
|
+
collapsed: n,
|
|
1342
|
+
isSidebarFullyExpanded: l,
|
|
1343
|
+
isSidebarFullyCollapsed: f,
|
|
1344
|
+
onClick: d,
|
|
1345
|
+
renderNested: u,
|
|
1346
|
+
onClose: h
|
|
1347
|
+
} = t, v = l === void 0 ? !0 : l, [g, b] = ce(null), [T, E] = ce(null);
|
|
1348
|
+
let P;
|
|
1349
|
+
e[0] !== n || e[1] !== o || e[2] !== f || e[3] !== v || e[4] !== r.children ? (P = () => n && f && r.children ? {
|
|
1350
|
+
fontSize: 18,
|
|
1351
|
+
position: "absolute",
|
|
1352
|
+
top: "41.5%",
|
|
1353
|
+
right: "2px",
|
|
1354
|
+
transform: "translateY(-50%) rotate(-90deg)"
|
|
1355
|
+
} : !n && v && r.children ? {
|
|
1356
|
+
ml: 0.5,
|
|
1357
|
+
transform: `rotate(${o ? 0 : -90}deg)`
|
|
1358
|
+
} : {
|
|
1359
|
+
display: "none"
|
|
1360
|
+
}, e[0] = n, e[1] = o, e[2] = f, e[3] = v, e[4] = r.children, e[5] = P) : P = e[5];
|
|
1361
|
+
const A = P, x = r.children && !n, _ = n ? 60 : 48;
|
|
1362
|
+
let c;
|
|
1363
|
+
e[6] !== _ ? (c = {
|
|
1364
|
+
px: 1.4,
|
|
1365
|
+
height: _
|
|
1366
|
+
}, e[6] = _, e[7] = c) : c = e[7];
|
|
1367
|
+
let j;
|
|
1368
|
+
e[8] !== a || e[9] !== s || e[10] !== c ? (j = {
|
|
1369
|
+
selected: s,
|
|
1370
|
+
disabled: a,
|
|
1371
|
+
sx: c
|
|
1372
|
+
}, e[8] = a, e[9] = s, e[10] = c, e[11] = j) : j = e[11];
|
|
1373
|
+
const J = j;
|
|
1374
|
+
let B;
|
|
1375
|
+
e[12] !== n || e[13] !== r ? (B = /* @__PURE__ */ p(mn, { item: r, collapsed: n }), e[12] = n, e[13] = r, e[14] = B) : B = e[14];
|
|
1376
|
+
let N;
|
|
1377
|
+
e[15] !== n || e[16] !== r.title ? (N = !n && /* @__PURE__ */ p(Cr, { primary: r.title, slotProps: {
|
|
1378
|
+
primary: {
|
|
1379
|
+
noWrap: !0,
|
|
1380
|
+
title: r.title
|
|
1381
|
+
}
|
|
1382
|
+
}, sx: {
|
|
1383
|
+
ml: 1.2,
|
|
1384
|
+
flex: 1,
|
|
1385
|
+
minWidth: 0,
|
|
1386
|
+
"& .MuiTypography-root": {
|
|
1387
|
+
whiteSpace: "nowrap",
|
|
1388
|
+
overflow: "hidden",
|
|
1389
|
+
textOverflow: "ellipsis"
|
|
1390
|
+
}
|
|
1391
|
+
} }), e[15] = n, e[16] = r.title, e[17] = N) : N = e[17];
|
|
1392
|
+
let U;
|
|
1393
|
+
e[18] !== A || e[19] !== r.children ? (U = r.children ? /* @__PURE__ */ p(Sr, { sx: A }) : null, e[18] = A, e[19] = r.children, e[20] = U) : U = e[20];
|
|
1394
|
+
let K;
|
|
1395
|
+
e[21] !== B || e[22] !== N || e[23] !== U ? (K = /* @__PURE__ */ q(Ut, { children: [
|
|
1396
|
+
B,
|
|
1397
|
+
N,
|
|
1398
|
+
U
|
|
1399
|
+
] }), e[21] = B, e[22] = N, e[23] = U, e[24] = K) : K = e[24];
|
|
1400
|
+
const ee = K;
|
|
1401
|
+
let Z;
|
|
1402
|
+
e[25] !== n || e[26] !== r.children || e[27] !== r.title ? (Z = r.children && n ? {
|
|
1403
|
+
onMouseEnter: (y) => {
|
|
1404
|
+
E(y.currentTarget), b(r.title);
|
|
1405
|
+
},
|
|
1406
|
+
onMouseLeave: () => {
|
|
1407
|
+
b(null);
|
|
1408
|
+
}
|
|
1409
|
+
} : {}, e[25] = n, e[26] = r.children, e[27] = r.title, e[28] = Z) : Z = e[28];
|
|
1410
|
+
let W;
|
|
1411
|
+
e[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (W = {
|
|
1412
|
+
py: 0,
|
|
1413
|
+
px: 1,
|
|
1414
|
+
overflowX: "hidden"
|
|
1415
|
+
}, e[29] = W) : W = e[29];
|
|
1416
|
+
let F;
|
|
1417
|
+
e[30] !== ee || e[31] !== J || e[32] !== r || e[33] !== d || e[34] !== h || e[35] !== x ? (F = x ? /* @__PURE__ */ p(fn, { ...J, onClick: () => d?.(r), children: ee }) : /* @__PURE__ */ p(dn, { ...J, to: r.to, href: r.href, params: r.params, search: r.search, onClick: h, children: ee }), e[30] = ee, e[31] = J, e[32] = r, e[33] = d, e[34] = h, e[35] = x, e[36] = F) : F = e[36];
|
|
1418
|
+
let R;
|
|
1419
|
+
e[37] !== T || e[38] !== n || e[39] !== g || e[40] !== r.children || e[41] !== r.title || e[42] !== u ? (R = r.children && n ? /* @__PURE__ */ p(pn, { open: r.title === g, anchorEl: T, children: u?.(r.children) }) : null, e[37] = T, e[38] = n, e[39] = g, e[40] = r.children, e[41] = r.title, e[42] = u, e[43] = R) : R = e[43];
|
|
1420
|
+
let H;
|
|
1421
|
+
e[44] !== Z || e[45] !== F || e[46] !== R ? (H = /* @__PURE__ */ q(_r, { ...Z, sx: W, children: [
|
|
1422
|
+
F,
|
|
1423
|
+
R
|
|
1424
|
+
] }), e[44] = Z, e[45] = F, e[46] = R, e[47] = H) : H = e[47];
|
|
1425
|
+
const te = H;
|
|
1426
|
+
let V;
|
|
1427
|
+
e[48] !== n || e[49] !== o || e[50] !== r.children || e[51] !== u ? (V = r.children && !n ? /* @__PURE__ */ p(qt, { in: o, timeout: "auto", unmountOnExit: !0, children: u?.(r.children) }) : null, e[48] = n, e[49] = o, e[50] = r.children, e[51] = u, e[52] = V) : V = e[52];
|
|
1428
|
+
let i;
|
|
1429
|
+
return e[53] !== r.to || e[54] !== te || e[55] !== V ? (i = /* @__PURE__ */ q(qe, { children: [
|
|
1430
|
+
te,
|
|
1431
|
+
V
|
|
1432
|
+
] }, r.to), e[53] = r.to, e[54] = te, e[55] = V, e[56] = i) : i = e[56], i;
|
|
1433
|
+
}, yn = (t) => !("kind" in t), gn = (t) => "kind" in t && t.kind === "divider", it = (t) => "kind" in t && t.kind === "header", $t = (t) => {
|
|
1434
|
+
const e = ae(31), {
|
|
1435
|
+
subNavigation: r,
|
|
1436
|
+
depth: o,
|
|
1437
|
+
collapsed: s,
|
|
1438
|
+
isPopover: a,
|
|
1439
|
+
isSidebarFullyExpanded: n,
|
|
1440
|
+
isSidebarFullyCollapsed: l,
|
|
1441
|
+
expandedWidth: f,
|
|
1442
|
+
renderItem: d,
|
|
1443
|
+
activePath: u,
|
|
1444
|
+
onNavigate: h,
|
|
1445
|
+
onClose: v
|
|
1446
|
+
} = t, g = o === void 0 ? 0 : o, b = n === void 0 ? !0 : n;
|
|
1447
|
+
let T;
|
|
1448
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (T = [], e[0] = T) : T = e[0];
|
|
1449
|
+
const [E, P] = ce(T);
|
|
1450
|
+
let A, x;
|
|
1451
|
+
e[1] !== s ? (A = () => {
|
|
1452
|
+
s && P([]);
|
|
1453
|
+
}, x = [s], e[1] = s, e[2] = A, e[3] = x) : (A = e[2], x = e[3]), Lt(A, x);
|
|
1454
|
+
let _;
|
|
1455
|
+
e[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (N) => P((U) => U.includes(N) ? U.filter((K) => K !== N) : [...U, N]), e[4] = _) : _ = e[4];
|
|
1456
|
+
const c = _;
|
|
1457
|
+
let j;
|
|
1458
|
+
e[5] !== u || e[6] !== s || e[7] !== g || e[8] !== f || e[9] !== v || e[10] !== h ? (j = (N) => /* @__PURE__ */ p($t, { subNavigation: N, depth: g + 1, isPopover: s, expandedWidth: f, activePath: u, onNavigate: h, onClose: v }), e[5] = u, e[6] = s, e[7] = g, e[8] = f, e[9] = v, e[10] = h, e[11] = j) : j = e[11];
|
|
1459
|
+
const J = j;
|
|
1460
|
+
let B;
|
|
1461
|
+
if (e[12] !== u || e[13] !== s || e[14] !== g || e[15] !== f || e[16] !== a || e[17] !== l || e[18] !== b || e[19] !== v || e[20] !== E || e[21] !== d || e[22] !== J || e[23] !== r) {
|
|
1462
|
+
const N = r.filter(vn), U = a && g === 1 ? 0.5 : 0, K = g === 0 && !a ? 4 : 0.5, ee = (a ? 1 : 2) * (a ? g - 1 : g), Z = a && g === 1 ? Ne : "auto", W = s ? We : "auto";
|
|
1463
|
+
let F;
|
|
1464
|
+
e[25] !== K || e[26] !== ee || e[27] !== Z || e[28] !== W || e[29] !== U ? (F = {
|
|
1465
|
+
padding: 0,
|
|
1466
|
+
mt: U,
|
|
1467
|
+
mb: K,
|
|
1468
|
+
pl: ee,
|
|
1469
|
+
minWidth: Z,
|
|
1470
|
+
width: W
|
|
1471
|
+
}, e[25] = K, e[26] = ee, e[27] = Z, e[28] = W, e[29] = U, e[30] = F) : F = e[30], B = /* @__PURE__ */ p(br, { sx: F, children: N.map((R, H) => {
|
|
1472
|
+
if (it(R))
|
|
1473
|
+
return /* @__PURE__ */ p(xr, { sx: {
|
|
2255
1474
|
fontSize: 12,
|
|
2256
1475
|
fontWeight: "700",
|
|
2257
|
-
height:
|
|
1476
|
+
height: s ? 0 : 40,
|
|
2258
1477
|
px: 2,
|
|
2259
|
-
minWidth:
|
|
1478
|
+
minWidth: f,
|
|
2260
1479
|
overflow: "hidden",
|
|
2261
1480
|
textOverflow: "ellipsis",
|
|
2262
1481
|
whiteSpace: "nowrap",
|
|
2263
1482
|
zIndex: 2,
|
|
2264
1483
|
bgcolor: "transparent",
|
|
2265
1484
|
position: "static"
|
|
2266
|
-
}, children:
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Divider, { sx: {
|
|
1485
|
+
}, children: R.title }, `subheader-${g}-${H}`);
|
|
1486
|
+
if (gn(R)) {
|
|
1487
|
+
const i = N[H + 1];
|
|
1488
|
+
return /* @__PURE__ */ p("li", { children: /* @__PURE__ */ p(Tr, { sx: {
|
|
2271
1489
|
mx: 1,
|
|
2272
1490
|
mt: 1,
|
|
2273
|
-
mb:
|
|
2274
|
-
} }) }, `divider-${
|
|
1491
|
+
mb: it(i) && !s ? 0 : 1
|
|
1492
|
+
} }) }, `divider-${g}-${H}`);
|
|
2275
1493
|
}
|
|
2276
|
-
if (!
|
|
1494
|
+
if (!yn(R))
|
|
2277
1495
|
return null;
|
|
2278
|
-
}
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
2286
|
-
return /* @__PURE__ */ jsx(NavigationListItem, { item: navItem, isOpen: openKeys.includes(uniqueItemKey), selected: activePath === navItem.to, collapsed, isSidebarFullyExpanded, isSidebarFullyCollapsed, onClick: navItem.children && !collapsed ? () => toggleKey(uniqueItemKey) : void 0, renderNested, onClose }, key_0);
|
|
2287
|
-
}) });
|
|
2288
|
-
$[12] = activePath;
|
|
2289
|
-
$[13] = collapsed;
|
|
2290
|
-
$[14] = depth;
|
|
2291
|
-
$[15] = expandedWidth;
|
|
2292
|
-
$[16] = isPopover;
|
|
2293
|
-
$[17] = isSidebarFullyCollapsed;
|
|
2294
|
-
$[18] = isSidebarFullyExpanded;
|
|
2295
|
-
$[19] = onClose;
|
|
2296
|
-
$[20] = openKeys;
|
|
2297
|
-
$[21] = renderItem;
|
|
2298
|
-
$[22] = renderNested;
|
|
2299
|
-
$[23] = subNavigation;
|
|
2300
|
-
$[24] = t8;
|
|
2301
|
-
} else {
|
|
2302
|
-
t8 = $[24];
|
|
2303
|
-
}
|
|
2304
|
-
return t8;
|
|
1496
|
+
const te = `item-${g}-${H}`, V = `${g}-${H}-${R.title}`;
|
|
1497
|
+
return d ? /* @__PURE__ */ p(qe, { children: d(R, {
|
|
1498
|
+
collapsed: !!s
|
|
1499
|
+
}) }, te) : /* @__PURE__ */ p(hn, { item: R, isOpen: E.includes(V), selected: u === R.to, collapsed: s, isSidebarFullyExpanded: b, isSidebarFullyCollapsed: l, onClick: R.children && !s ? () => c(V) : void 0, renderNested: J, onClose: v }, te);
|
|
1500
|
+
}) }), e[12] = u, e[13] = s, e[14] = g, e[15] = f, e[16] = a, e[17] = l, e[18] = b, e[19] = v, e[20] = E, e[21] = d, e[22] = J, e[23] = r, e[24] = B;
|
|
1501
|
+
} else
|
|
1502
|
+
B = e[24];
|
|
1503
|
+
return B;
|
|
2305
1504
|
};
|
|
2306
|
-
function
|
|
2307
|
-
return !
|
|
1505
|
+
function vn(t) {
|
|
1506
|
+
return !t.hidden;
|
|
2308
1507
|
}
|
|
2309
|
-
const
|
|
2310
|
-
const
|
|
2311
|
-
|
|
2312
|
-
|
|
2313
|
-
|
|
2314
|
-
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
|
|
2330
|
-
|
|
2331
|
-
|
|
2332
|
-
|
|
2333
|
-
|
|
2334
|
-
|
|
2335
|
-
|
|
2336
|
-
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
|
|
2342
|
-
|
|
2343
|
-
|
|
2344
|
-
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
|
|
2348
|
-
|
|
2349
|
-
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
top: `${TOOLBAR_HEIGHT}px`,
|
|
2362
|
-
height: `calc(100% - ${TOOLBAR_HEIGHT}px)`,
|
|
2363
|
-
width: t42,
|
|
2364
|
-
borderTop: "1px solid",
|
|
2365
|
-
borderColor: "var(--mui-palette-divider)"
|
|
2366
|
-
};
|
|
2367
|
-
$[9] = t42;
|
|
2368
|
-
$[10] = t52;
|
|
2369
|
-
} else {
|
|
2370
|
-
t52 = $[10];
|
|
2371
|
-
}
|
|
2372
|
-
let t62;
|
|
2373
|
-
if ($[11] !== t32 || $[12] !== t52) {
|
|
2374
|
-
t62 = {
|
|
2375
|
-
width: t32,
|
|
2376
|
-
"& .MuiDrawer-paper": t52
|
|
2377
|
-
};
|
|
2378
|
-
$[11] = t32;
|
|
2379
|
-
$[12] = t52;
|
|
2380
|
-
$[13] = t62;
|
|
2381
|
-
} else {
|
|
2382
|
-
t62 = $[13];
|
|
2383
|
-
}
|
|
2384
|
-
const t7 = !expanded;
|
|
2385
|
-
let t8;
|
|
2386
|
-
if ($[14] !== drawerContent || $[15] !== t7) {
|
|
2387
|
-
t8 = drawerContent(t7);
|
|
2388
|
-
$[14] = drawerContent;
|
|
2389
|
-
$[15] = t7;
|
|
2390
|
-
$[16] = t8;
|
|
2391
|
-
} else {
|
|
2392
|
-
t8 = $[16];
|
|
2393
|
-
}
|
|
2394
|
-
let t9;
|
|
2395
|
-
if ($[17] !== t62 || $[18] !== t8) {
|
|
2396
|
-
t9 = /* @__PURE__ */ jsx(Drawer, { variant: "permanent", sx: t62, children: t8 });
|
|
2397
|
-
$[17] = t62;
|
|
2398
|
-
$[18] = t8;
|
|
2399
|
-
$[19] = t9;
|
|
2400
|
-
} else {
|
|
2401
|
-
t9 = $[19];
|
|
2402
|
-
}
|
|
2403
|
-
return t9;
|
|
2404
|
-
}
|
|
2405
|
-
let t3;
|
|
2406
|
-
if ($[20] !== setExpanded) {
|
|
2407
|
-
t3 = () => setExpanded(false);
|
|
2408
|
-
$[20] = setExpanded;
|
|
2409
|
-
$[21] = t3;
|
|
2410
|
-
} else {
|
|
2411
|
-
t3 = $[21];
|
|
2412
|
-
}
|
|
2413
|
-
const t4 = !expanded;
|
|
2414
|
-
let t5;
|
|
2415
|
-
if ($[22] !== drawerContent || $[23] !== t4) {
|
|
2416
|
-
t5 = drawerContent(t4);
|
|
2417
|
-
$[22] = drawerContent;
|
|
2418
|
-
$[23] = t4;
|
|
2419
|
-
$[24] = t5;
|
|
2420
|
-
} else {
|
|
2421
|
-
t5 = $[24];
|
|
2422
|
-
}
|
|
2423
|
-
let t6;
|
|
2424
|
-
if ($[25] !== expanded || $[26] !== t3 || $[27] !== t5) {
|
|
2425
|
-
t6 = /* @__PURE__ */ jsx(Drawer, { open: expanded, onClose: t3, children: t5 });
|
|
2426
|
-
$[25] = expanded;
|
|
2427
|
-
$[26] = t3;
|
|
2428
|
-
$[27] = t5;
|
|
2429
|
-
$[28] = t6;
|
|
2430
|
-
} else {
|
|
2431
|
-
t6 = $[28];
|
|
2432
|
-
}
|
|
2433
|
-
return t6;
|
|
2434
|
-
};
|
|
2435
|
-
const getSessionUser = createServerFn().inputValidator(z__default.object({
|
|
2436
|
-
redirectUri: z__default.string()
|
|
1508
|
+
const We = 84, Ne = 320, kt = 64, Tn = (t) => {
|
|
1509
|
+
const e = ae(29), {
|
|
1510
|
+
navigation: r,
|
|
1511
|
+
expanded: o,
|
|
1512
|
+
setExpanded: s
|
|
1513
|
+
} = t, a = gr(), n = vr(), l = mr();
|
|
1514
|
+
let f;
|
|
1515
|
+
e[0] !== l.breakpoints ? (f = l.breakpoints.up("sm"), e[0] = l.breakpoints, e[1] = f) : f = e[1];
|
|
1516
|
+
const d = Bt(f);
|
|
1517
|
+
let u;
|
|
1518
|
+
e[2] !== o || e[3] !== a || e[4] !== r || e[5] !== n.location.pathname || e[6] !== s || e[7] !== d ? (u = (E) => /* @__PURE__ */ p(At, { component: "nav", sx: {
|
|
1519
|
+
height: "100%",
|
|
1520
|
+
display: "flex",
|
|
1521
|
+
flexDirection: "column",
|
|
1522
|
+
justifyContent: "space-between",
|
|
1523
|
+
overflow: "auto",
|
|
1524
|
+
scrollbarGutter: E ? "stable" : "auto",
|
|
1525
|
+
overflowX: "hidden",
|
|
1526
|
+
pt: r[0] && it(r[0]) && !E ? 0 : 2
|
|
1527
|
+
}, children: /* @__PURE__ */ p($t, { subNavigation: r, collapsed: E, isSidebarFullyExpanded: o, isSidebarFullyCollapsed: !o, expandedWidth: Ne, activePath: n.location.pathname, onNavigate: a, onClose: d ? void 0 : () => s(!1) }) }), e[2] = o, e[3] = a, e[4] = r, e[5] = n.location.pathname, e[6] = s, e[7] = d, e[8] = u) : u = e[8];
|
|
1528
|
+
const h = u;
|
|
1529
|
+
if (d) {
|
|
1530
|
+
const E = o ? Ne : We, P = o ? Ne : We;
|
|
1531
|
+
let A;
|
|
1532
|
+
e[9] !== P ? (A = {
|
|
1533
|
+
position: "absolute",
|
|
1534
|
+
top: `${kt}px`,
|
|
1535
|
+
height: `calc(100% - ${kt}px)`,
|
|
1536
|
+
width: P,
|
|
1537
|
+
borderTop: "1px solid",
|
|
1538
|
+
borderColor: "var(--mui-palette-divider)"
|
|
1539
|
+
}, e[9] = P, e[10] = A) : A = e[10];
|
|
1540
|
+
let x;
|
|
1541
|
+
e[11] !== E || e[12] !== A ? (x = {
|
|
1542
|
+
width: E,
|
|
1543
|
+
"& .MuiDrawer-paper": A
|
|
1544
|
+
}, e[11] = E, e[12] = A, e[13] = x) : x = e[13];
|
|
1545
|
+
const _ = !o;
|
|
1546
|
+
let c;
|
|
1547
|
+
e[14] !== h || e[15] !== _ ? (c = h(_), e[14] = h, e[15] = _, e[16] = c) : c = e[16];
|
|
1548
|
+
let j;
|
|
1549
|
+
return e[17] !== x || e[18] !== c ? (j = /* @__PURE__ */ p(pt, { variant: "permanent", sx: x, children: c }), e[17] = x, e[18] = c, e[19] = j) : j = e[19], j;
|
|
1550
|
+
}
|
|
1551
|
+
let v;
|
|
1552
|
+
e[20] !== s ? (v = () => s(!1), e[20] = s, e[21] = v) : v = e[21];
|
|
1553
|
+
const g = !o;
|
|
1554
|
+
let b;
|
|
1555
|
+
e[22] !== h || e[23] !== g ? (b = h(g), e[22] = h, e[23] = g, e[24] = b) : b = e[24];
|
|
1556
|
+
let T;
|
|
1557
|
+
return e[25] !== o || e[26] !== v || e[27] !== b ? (T = /* @__PURE__ */ p(pt, { open: o, onClose: v, children: b }), e[25] = o, e[26] = v, e[27] = b, e[28] = T) : T = e[28], T;
|
|
1558
|
+
}, Lo = Fe().inputValidator(ge.object({
|
|
1559
|
+
redirectUri: ge.string()
|
|
2437
1560
|
})).handler(async ({
|
|
2438
|
-
data
|
|
1561
|
+
data: t
|
|
2439
1562
|
}) => {
|
|
2440
|
-
const
|
|
2441
|
-
const groups = await queryClient.fetchQuery({
|
|
1563
|
+
const e = await Nr(t.redirectUri), r = await ct.fetchQuery({
|
|
2442
1564
|
queryKey: ["graph", "me", "memberOf"],
|
|
2443
|
-
queryFn: async () =>
|
|
1565
|
+
queryFn: async () => st.request({
|
|
2444
1566
|
method: "GET",
|
|
2445
1567
|
url: "https://graph.microsoft.com/v1.0/me/memberOf?$select=displayName",
|
|
2446
1568
|
headers: {
|
|
2447
|
-
Authorization: `Bearer ${await
|
|
1569
|
+
Authorization: `Bearer ${await lt()}`
|
|
2448
1570
|
}
|
|
2449
|
-
}).then((
|
|
2450
|
-
staleTime:
|
|
2451
|
-
gcTime:
|
|
1571
|
+
}).then((o) => o.data.value.map((s) => s.displayName)),
|
|
1572
|
+
staleTime: 1 / 0,
|
|
1573
|
+
gcTime: 1 / 0
|
|
2452
1574
|
});
|
|
2453
1575
|
return {
|
|
2454
|
-
...
|
|
2455
|
-
groups
|
|
1576
|
+
...e.user,
|
|
1577
|
+
groups: r
|
|
2456
1578
|
};
|
|
2457
|
-
})
|
|
2458
|
-
const getSessionUserDetail = createServerFn({
|
|
1579
|
+
}), bn = Fe({
|
|
2459
1580
|
method: "GET"
|
|
2460
|
-
}).handler(async () => {
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
1581
|
+
}).handler(async () => await ct.fetchQuery({
|
|
1582
|
+
queryKey: ["graph", "me"],
|
|
1583
|
+
queryFn: async () => await st.request({
|
|
1584
|
+
method: "GET",
|
|
1585
|
+
url: "https://graph.microsoft.com/v1.0/me?$select=id,displayName,jobTitle,mail,mobilePhone",
|
|
1586
|
+
headers: {
|
|
1587
|
+
Authorization: `Bearer ${await lt()}`
|
|
1588
|
+
}
|
|
1589
|
+
}).then((t) => t.data),
|
|
1590
|
+
staleTime: 1 / 0,
|
|
1591
|
+
gcTime: 1 / 0
|
|
1592
|
+
})), xn = Fe({
|
|
1593
|
+
method: "GET"
|
|
1594
|
+
}).handler(async () => await ct.fetchQuery({
|
|
1595
|
+
queryKey: ["graph", "me", "photo"],
|
|
1596
|
+
queryFn: async () => {
|
|
1597
|
+
const t = await st.request({
|
|
2464
1598
|
method: "GET",
|
|
2465
|
-
url: "https://graph.microsoft.com/v1.0/me
|
|
1599
|
+
url: "https://graph.microsoft.com/v1.0/me/photo/$value",
|
|
2466
1600
|
headers: {
|
|
2467
|
-
Authorization: `Bearer ${await
|
|
2468
|
-
}
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
}
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
|
|
2482
|
-
|
|
2483
|
-
|
|
2484
|
-
|
|
2485
|
-
|
|
2486
|
-
responseType: "arraybuffer"
|
|
2487
|
-
});
|
|
2488
|
-
const contentType = response.headers["content-type"] ?? "image/jpeg";
|
|
2489
|
-
const base64 = Buffer.from(response.data).toString("base64");
|
|
2490
|
-
return `data:${contentType};base64,${base64}`;
|
|
2491
|
-
},
|
|
2492
|
-
staleTime: Infinity,
|
|
2493
|
-
gcTime: Infinity
|
|
2494
|
-
});
|
|
2495
|
-
});
|
|
2496
|
-
const capitalize = (value) => value && value.charAt(0).toUpperCase() + value.slice(1);
|
|
2497
|
-
const ToolbarAccount = () => {
|
|
2498
|
-
const $ = c(105);
|
|
2499
|
-
const [anchorElement, setAnchorElement] = useState();
|
|
2500
|
-
const [tab, setTab] = useState("settings");
|
|
2501
|
-
const open = Boolean(anchorElement);
|
|
2502
|
-
const {
|
|
2503
|
-
t,
|
|
2504
|
-
i18n: i18n2
|
|
2505
|
-
} = useTranslation();
|
|
2506
|
-
const {
|
|
2507
|
-
mode,
|
|
2508
|
-
setMode
|
|
2509
|
-
} = useColorScheme();
|
|
2510
|
-
let T0;
|
|
2511
|
-
let closeMenu;
|
|
2512
|
-
let openMenu;
|
|
2513
|
-
let settings;
|
|
2514
|
-
let t0;
|
|
2515
|
-
let t1;
|
|
2516
|
-
let theme;
|
|
2517
|
-
if ($[0] !== i18n2 || $[1] !== mode || $[2] !== setMode || $[3] !== t) {
|
|
2518
|
-
const supportedLanguages = (Array.isArray(i18n2.options.supportedLngs) ? i18n2.options.supportedLngs : []).filter(_temp$2);
|
|
2519
|
-
const languageDisplayNames = new Intl.DisplayNames([i18n2.language], {
|
|
1601
|
+
Authorization: `Bearer ${await lt()}`
|
|
1602
|
+
},
|
|
1603
|
+
responseType: "arraybuffer"
|
|
1604
|
+
}), e = t.headers["content-type"] ?? "image/jpeg", r = Buffer.from(t.data).toString("base64");
|
|
1605
|
+
return `data:${e};base64,${r}`;
|
|
1606
|
+
},
|
|
1607
|
+
staleTime: 1 / 0,
|
|
1608
|
+
gcTime: 1 / 0
|
|
1609
|
+
})), It = (t) => t && t.charAt(0).toUpperCase() + t.slice(1), Sn = () => {
|
|
1610
|
+
const t = ae(105), [e, r] = ce(), [o, s] = ce("settings"), a = !!e, {
|
|
1611
|
+
t: n,
|
|
1612
|
+
i18n: l
|
|
1613
|
+
} = sr(), {
|
|
1614
|
+
mode: f,
|
|
1615
|
+
setMode: d
|
|
1616
|
+
} = Ht();
|
|
1617
|
+
let u, h, v, g, b, T, E;
|
|
1618
|
+
if (t[0] !== l || t[1] !== f || t[2] !== d || t[3] !== n) {
|
|
1619
|
+
const H = (Array.isArray(l.options.supportedLngs) ? l.options.supportedLngs : []).filter(En), te = new Intl.DisplayNames([l.language], {
|
|
2520
1620
|
type: "language"
|
|
2521
1621
|
});
|
|
2522
|
-
let
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
}
|
|
2530
|
-
let
|
|
2531
|
-
|
|
2532
|
-
|
|
2533
|
-
|
|
2534
|
-
|
|
2535
|
-
|
|
2536
|
-
|
|
2537
|
-
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
2542
|
-
|
|
2543
|
-
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2561
|
-
}
|
|
2562
|
-
let
|
|
2563
|
-
|
|
2564
|
-
|
|
2565
|
-
|
|
2566
|
-
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
}
|
|
2570
|
-
let
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2574
|
-
|
|
2575
|
-
|
|
2576
|
-
|
|
2577
|
-
|
|
2578
|
-
|
|
2579
|
-
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
let
|
|
2594
|
-
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
}
|
|
2600
|
-
openMenu = t92;
|
|
2601
|
-
let t102;
|
|
2602
|
-
if ($[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2603
|
-
t102 = () => {
|
|
2604
|
-
setAnchorElement(void 0);
|
|
2605
|
-
setTimeout(() => setTab("settings"), 300);
|
|
2606
|
-
};
|
|
2607
|
-
$[28] = t102;
|
|
2608
|
-
} else {
|
|
2609
|
-
t102 = $[28];
|
|
2610
|
-
}
|
|
2611
|
-
closeMenu = t102;
|
|
2612
|
-
let t112;
|
|
2613
|
-
if ($[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2614
|
-
t112 = (newTab) => () => setTab(newTab);
|
|
2615
|
-
$[29] = t112;
|
|
2616
|
-
} else {
|
|
2617
|
-
t112 = $[29];
|
|
2618
|
-
}
|
|
2619
|
-
const changeTab = t112;
|
|
2620
|
-
let t122;
|
|
2621
|
-
if ($[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2622
|
-
t122 = {
|
|
2623
|
-
backgroundColor: "transparent"
|
|
2624
|
-
};
|
|
2625
|
-
$[30] = t122;
|
|
2626
|
-
} else {
|
|
2627
|
-
t122 = $[30];
|
|
2628
|
-
}
|
|
2629
|
-
let t132;
|
|
2630
|
-
if ($[31] !== t) {
|
|
2631
|
-
t132 = t("Layout.Settings");
|
|
2632
|
-
$[31] = t;
|
|
2633
|
-
$[32] = t132;
|
|
2634
|
-
} else {
|
|
2635
|
-
t132 = $[32];
|
|
2636
|
-
}
|
|
2637
|
-
let t142;
|
|
2638
|
-
if ($[33] !== t132) {
|
|
2639
|
-
t142 = /* @__PURE__ */ jsx(ListSubheader$1, { sx: t122, children: t132 });
|
|
2640
|
-
$[33] = t132;
|
|
2641
|
-
$[34] = t142;
|
|
2642
|
-
} else {
|
|
2643
|
-
t142 = $[34];
|
|
2644
|
-
}
|
|
2645
|
-
let t152;
|
|
2646
|
-
let t162;
|
|
2647
|
-
if ($[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2648
|
-
t152 = changeTab("theme");
|
|
2649
|
-
t162 = {
|
|
2650
|
-
py: 0.3
|
|
2651
|
-
};
|
|
2652
|
-
$[35] = t152;
|
|
2653
|
-
$[36] = t162;
|
|
2654
|
-
} else {
|
|
2655
|
-
t152 = $[35];
|
|
2656
|
-
t162 = $[36];
|
|
2657
|
-
}
|
|
2658
|
-
let t17;
|
|
2659
|
-
if ($[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2660
|
-
t17 = /* @__PURE__ */ jsx(ListItemIcon$1, { children: /* @__PURE__ */ jsx(Brightness4, {}) });
|
|
2661
|
-
$[37] = t17;
|
|
2662
|
-
} else {
|
|
2663
|
-
t17 = $[37];
|
|
2664
|
-
}
|
|
2665
|
-
let t18;
|
|
2666
|
-
if ($[38] !== t) {
|
|
2667
|
-
t18 = t("Layout.Appearance");
|
|
2668
|
-
$[38] = t;
|
|
2669
|
-
$[39] = t18;
|
|
2670
|
-
} else {
|
|
2671
|
-
t18 = $[39];
|
|
2672
|
-
}
|
|
2673
|
-
const t19 = colorModes.find((m) => m.mode === mode)?.label;
|
|
2674
|
-
let t20;
|
|
2675
|
-
if ($[40] !== t18 || $[41] !== t19) {
|
|
2676
|
-
t20 = /* @__PURE__ */ jsx(ListItemText$1, { primary: t18, secondary: t19 });
|
|
2677
|
-
$[40] = t18;
|
|
2678
|
-
$[41] = t19;
|
|
2679
|
-
$[42] = t20;
|
|
2680
|
-
} else {
|
|
2681
|
-
t20 = $[42];
|
|
2682
|
-
}
|
|
2683
|
-
let t21;
|
|
2684
|
-
if ($[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2685
|
-
t21 = /* @__PURE__ */ jsx(ChevronRight, {});
|
|
2686
|
-
$[43] = t21;
|
|
2687
|
-
} else {
|
|
2688
|
-
t21 = $[43];
|
|
2689
|
-
}
|
|
2690
|
-
let t222;
|
|
2691
|
-
if ($[44] !== t20) {
|
|
2692
|
-
t222 = /* @__PURE__ */ jsxs(ListItemButton$1, { onClick: t152, sx: t162, children: [
|
|
2693
|
-
t17,
|
|
2694
|
-
t20,
|
|
2695
|
-
t21
|
|
2696
|
-
] });
|
|
2697
|
-
$[44] = t20;
|
|
2698
|
-
$[45] = t222;
|
|
2699
|
-
} else {
|
|
2700
|
-
t222 = $[45];
|
|
2701
|
-
}
|
|
2702
|
-
let t23;
|
|
2703
|
-
let t24;
|
|
2704
|
-
if ($[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2705
|
-
t23 = changeTab("language");
|
|
2706
|
-
t24 = {
|
|
2707
|
-
py: 0.3
|
|
2708
|
-
};
|
|
2709
|
-
$[46] = t23;
|
|
2710
|
-
$[47] = t24;
|
|
2711
|
-
} else {
|
|
2712
|
-
t23 = $[46];
|
|
2713
|
-
t24 = $[47];
|
|
2714
|
-
}
|
|
2715
|
-
let t25;
|
|
2716
|
-
if ($[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2717
|
-
t25 = /* @__PURE__ */ jsx(ListItemIcon$1, { children: /* @__PURE__ */ jsx(Translate, {}) });
|
|
2718
|
-
$[48] = t25;
|
|
2719
|
-
} else {
|
|
2720
|
-
t25 = $[48];
|
|
2721
|
-
}
|
|
2722
|
-
let t26;
|
|
2723
|
-
if ($[49] !== t) {
|
|
2724
|
-
t26 = t("Layout.Language");
|
|
2725
|
-
$[49] = t;
|
|
2726
|
-
$[50] = t26;
|
|
2727
|
-
} else {
|
|
2728
|
-
t26 = $[50];
|
|
2729
|
-
}
|
|
2730
|
-
let t27;
|
|
2731
|
-
if ($[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2732
|
-
t27 = /* @__PURE__ */ jsx(ChevronRight, {});
|
|
2733
|
-
$[51] = t27;
|
|
2734
|
-
} else {
|
|
2735
|
-
t27 = $[51];
|
|
2736
|
-
}
|
|
2737
|
-
const t28 = /* @__PURE__ */ jsxs(ListItemButton$1, { onClick: t23, sx: t24, children: [
|
|
2738
|
-
t25,
|
|
2739
|
-
/* @__PURE__ */ jsx(ListItemText$1, { primary: t26, secondary: capitalize(languageDisplayNames.of(i18n2.language)) }),
|
|
2740
|
-
t27
|
|
2741
|
-
] });
|
|
2742
|
-
let t29;
|
|
2743
|
-
if ($[52] !== t142 || $[53] !== t222 || $[54] !== t28) {
|
|
2744
|
-
t29 = /* @__PURE__ */ jsxs(List$1, { component: "nav", subheader: t142, children: [
|
|
2745
|
-
t222,
|
|
2746
|
-
t28
|
|
2747
|
-
] });
|
|
2748
|
-
$[52] = t142;
|
|
2749
|
-
$[53] = t222;
|
|
2750
|
-
$[54] = t28;
|
|
2751
|
-
$[55] = t29;
|
|
2752
|
-
} else {
|
|
2753
|
-
t29 = $[55];
|
|
2754
|
-
}
|
|
2755
|
-
settings = t29;
|
|
2756
|
-
let t30;
|
|
2757
|
-
let t31;
|
|
2758
|
-
if ($[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2759
|
-
t30 = changeTab("settings");
|
|
2760
|
-
t31 = {
|
|
2761
|
-
backgroundColor: "transparent",
|
|
2762
|
-
display: "flex",
|
|
2763
|
-
alignItems: "center",
|
|
2764
|
-
px: 1,
|
|
2765
|
-
cursor: "pointer"
|
|
2766
|
-
};
|
|
2767
|
-
$[56] = t30;
|
|
2768
|
-
$[57] = t31;
|
|
2769
|
-
} else {
|
|
2770
|
-
t30 = $[56];
|
|
2771
|
-
t31 = $[57];
|
|
2772
|
-
}
|
|
2773
|
-
let t322;
|
|
2774
|
-
if ($[58] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2775
|
-
t322 = /* @__PURE__ */ jsx(IconButton, { size: "small", sx: {
|
|
2776
|
-
mr: 0.5
|
|
2777
|
-
}, children: /* @__PURE__ */ jsx(ArrowBack, { fontSize: "small" }) });
|
|
2778
|
-
$[58] = t322;
|
|
2779
|
-
} else {
|
|
2780
|
-
t322 = $[58];
|
|
2781
|
-
}
|
|
2782
|
-
let t33;
|
|
2783
|
-
if ($[59] !== t) {
|
|
2784
|
-
t33 = t("Layout.Appearance");
|
|
2785
|
-
$[59] = t;
|
|
2786
|
-
$[60] = t33;
|
|
2787
|
-
} else {
|
|
2788
|
-
t33 = $[60];
|
|
2789
|
-
}
|
|
2790
|
-
let t34;
|
|
2791
|
-
if ($[61] !== t33) {
|
|
2792
|
-
t34 = /* @__PURE__ */ jsxs(ListSubheader$1, { onClick: t30, sx: t31, children: [
|
|
2793
|
-
t322,
|
|
2794
|
-
" ",
|
|
2795
|
-
t33
|
|
2796
|
-
] });
|
|
2797
|
-
$[61] = t33;
|
|
2798
|
-
$[62] = t34;
|
|
2799
|
-
} else {
|
|
2800
|
-
t34 = $[62];
|
|
2801
|
-
}
|
|
2802
|
-
let t35;
|
|
2803
|
-
if ($[63] !== colorModes || $[64] !== mode || $[65] !== setMode) {
|
|
2804
|
-
t35 = colorModes.map((t362) => {
|
|
2805
|
-
const {
|
|
2806
|
-
mode: modeValue,
|
|
2807
|
-
icon: Icon,
|
|
2808
|
-
label
|
|
2809
|
-
} = t362;
|
|
2810
|
-
return /* @__PURE__ */ jsxs(ListItemButton$1, { onClick: () => {
|
|
2811
|
-
setMode(modeValue);
|
|
2812
|
-
closeMenu();
|
|
2813
|
-
}, selected: mode === modeValue, children: [
|
|
2814
|
-
/* @__PURE__ */ jsx(ListItemIcon$1, { children: /* @__PURE__ */ jsx(Icon, {}) }),
|
|
2815
|
-
/* @__PURE__ */ jsx(ListItemText$1, { primary: label })
|
|
2816
|
-
] }, modeValue);
|
|
2817
|
-
});
|
|
2818
|
-
$[63] = colorModes;
|
|
2819
|
-
$[64] = mode;
|
|
2820
|
-
$[65] = setMode;
|
|
2821
|
-
$[66] = t35;
|
|
2822
|
-
} else {
|
|
2823
|
-
t35 = $[66];
|
|
2824
|
-
}
|
|
2825
|
-
let t36;
|
|
2826
|
-
if ($[67] !== t34 || $[68] !== t35) {
|
|
2827
|
-
t36 = /* @__PURE__ */ jsx(List$1, { subheader: t34, children: t35 });
|
|
2828
|
-
$[67] = t34;
|
|
2829
|
-
$[68] = t35;
|
|
2830
|
-
$[69] = t36;
|
|
2831
|
-
} else {
|
|
2832
|
-
t36 = $[69];
|
|
2833
|
-
}
|
|
2834
|
-
theme = t36;
|
|
2835
|
-
T0 = List$1;
|
|
2836
|
-
let t37;
|
|
2837
|
-
let t38;
|
|
2838
|
-
if ($[70] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2839
|
-
t37 = changeTab("settings");
|
|
2840
|
-
t38 = {
|
|
2841
|
-
backgroundColor: "transparent",
|
|
2842
|
-
display: "flex",
|
|
2843
|
-
alignItems: "center",
|
|
2844
|
-
px: 1,
|
|
2845
|
-
cursor: "pointer"
|
|
2846
|
-
};
|
|
2847
|
-
$[70] = t37;
|
|
2848
|
-
$[71] = t38;
|
|
2849
|
-
} else {
|
|
2850
|
-
t37 = $[70];
|
|
2851
|
-
t38 = $[71];
|
|
2852
|
-
}
|
|
2853
|
-
let t39;
|
|
2854
|
-
if ($[72] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2855
|
-
t39 = /* @__PURE__ */ jsx(IconButton, { size: "small", sx: {
|
|
2856
|
-
mr: 0.5
|
|
2857
|
-
}, children: /* @__PURE__ */ jsx(ArrowBack, { fontSize: "small" }) });
|
|
2858
|
-
$[72] = t39;
|
|
2859
|
-
} else {
|
|
2860
|
-
t39 = $[72];
|
|
2861
|
-
}
|
|
2862
|
-
let t40;
|
|
2863
|
-
if ($[73] !== t) {
|
|
2864
|
-
t40 = t("Layout.Language");
|
|
2865
|
-
$[73] = t;
|
|
2866
|
-
$[74] = t40;
|
|
2867
|
-
} else {
|
|
2868
|
-
t40 = $[74];
|
|
2869
|
-
}
|
|
2870
|
-
if ($[75] !== t40) {
|
|
2871
|
-
t0 = /* @__PURE__ */ jsxs(ListSubheader$1, { onClick: t37, sx: t38, children: [
|
|
2872
|
-
t39,
|
|
2873
|
-
" ",
|
|
2874
|
-
t40
|
|
2875
|
-
] });
|
|
2876
|
-
$[75] = t40;
|
|
2877
|
-
$[76] = t0;
|
|
2878
|
-
} else {
|
|
2879
|
-
t0 = $[76];
|
|
2880
|
-
}
|
|
2881
|
-
t1 = supportedLanguages.map((languageCode) => /* @__PURE__ */ jsxs(ListItemButton$1, { onClick: () => i18n2.changeLanguage(languageCode).finally(() => closeMenu()), selected: i18n2.resolvedLanguage === languageCode, children: [
|
|
2882
|
-
/* @__PURE__ */ jsx(ListItemIcon$1, { children: i18n2.resolvedLanguage === languageCode && /* @__PURE__ */ jsx(Done, {}) }),
|
|
2883
|
-
/* @__PURE__ */ jsx(ListItemText$1, { primary: capitalize(languageDisplayNames.of(languageCode)) })
|
|
2884
|
-
] }, languageCode));
|
|
2885
|
-
$[0] = i18n2;
|
|
2886
|
-
$[1] = mode;
|
|
2887
|
-
$[2] = setMode;
|
|
2888
|
-
$[3] = t;
|
|
2889
|
-
$[4] = T0;
|
|
2890
|
-
$[5] = closeMenu;
|
|
2891
|
-
$[6] = openMenu;
|
|
2892
|
-
$[7] = settings;
|
|
2893
|
-
$[8] = t0;
|
|
2894
|
-
$[9] = t1;
|
|
2895
|
-
$[10] = theme;
|
|
2896
|
-
} else {
|
|
2897
|
-
T0 = $[4];
|
|
2898
|
-
closeMenu = $[5];
|
|
2899
|
-
openMenu = $[6];
|
|
2900
|
-
settings = $[7];
|
|
2901
|
-
t0 = $[8];
|
|
2902
|
-
t1 = $[9];
|
|
2903
|
-
theme = $[10];
|
|
2904
|
-
}
|
|
2905
|
-
let t2;
|
|
2906
|
-
if ($[77] !== T0 || $[78] !== t0 || $[79] !== t1) {
|
|
2907
|
-
t2 = /* @__PURE__ */ jsx(T0, { subheader: t0, children: t1 });
|
|
2908
|
-
$[77] = T0;
|
|
2909
|
-
$[78] = t0;
|
|
2910
|
-
$[79] = t1;
|
|
2911
|
-
$[80] = t2;
|
|
2912
|
-
} else {
|
|
2913
|
-
t2 = $[80];
|
|
2914
|
-
}
|
|
2915
|
-
const language = t2;
|
|
2916
|
-
let t3;
|
|
2917
|
-
if ($[81] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2918
|
-
t3 = /* @__PURE__ */ jsx(AccountCircle, { sx: {
|
|
2919
|
-
width: {
|
|
2920
|
-
xs: 32,
|
|
2921
|
-
sm: 40
|
|
2922
|
-
},
|
|
2923
|
-
height: {
|
|
2924
|
-
xs: 32,
|
|
2925
|
-
sm: 40
|
|
2926
|
-
}
|
|
2927
|
-
} });
|
|
2928
|
-
$[81] = t3;
|
|
2929
|
-
} else {
|
|
2930
|
-
t3 = $[81];
|
|
2931
|
-
}
|
|
2932
|
-
let t4;
|
|
2933
|
-
if ($[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2934
|
-
t4 = /* @__PURE__ */ jsx(Suspense, { fallback: t3, children: /* @__PURE__ */ jsx(Await, { promise: getSessionUserPhoto(), children: _temp2 }) });
|
|
2935
|
-
$[82] = t4;
|
|
2936
|
-
} else {
|
|
2937
|
-
t4 = $[82];
|
|
2938
|
-
}
|
|
2939
|
-
let t5;
|
|
2940
|
-
if ($[83] !== openMenu) {
|
|
2941
|
-
t5 = /* @__PURE__ */ jsx(IconButton, { size: "small", edge: "end", onClick: openMenu, children: t4 });
|
|
2942
|
-
$[83] = openMenu;
|
|
2943
|
-
$[84] = t5;
|
|
2944
|
-
} else {
|
|
2945
|
-
t5 = $[84];
|
|
2946
|
-
}
|
|
2947
|
-
let t6;
|
|
2948
|
-
if ($[85] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2949
|
-
t6 = {
|
|
2950
|
-
width: 240
|
|
2951
|
-
};
|
|
2952
|
-
$[85] = t6;
|
|
2953
|
-
} else {
|
|
2954
|
-
t6 = $[85];
|
|
2955
|
-
}
|
|
2956
|
-
let t7;
|
|
2957
|
-
if ($[86] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2958
|
-
t7 = /* @__PURE__ */ jsx(ListItem$1, { children: /* @__PURE__ */ jsx(Await, { promise: getSessionUserDetail(), children: _temp3 }) });
|
|
2959
|
-
$[86] = t7;
|
|
2960
|
-
} else {
|
|
2961
|
-
t7 = $[86];
|
|
2962
|
-
}
|
|
2963
|
-
let t8;
|
|
2964
|
-
if ($[87] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
2965
|
-
t8 = /* @__PURE__ */ jsx(ListItemIcon$1, { children: /* @__PURE__ */ jsx(Logout, { color: "error" }) });
|
|
2966
|
-
$[87] = t8;
|
|
2967
|
-
} else {
|
|
2968
|
-
t8 = $[87];
|
|
2969
|
-
}
|
|
2970
|
-
let t9;
|
|
2971
|
-
if ($[88] !== t) {
|
|
2972
|
-
t9 = t("Layout.Logout");
|
|
2973
|
-
$[88] = t;
|
|
2974
|
-
$[89] = t9;
|
|
2975
|
-
} else {
|
|
2976
|
-
t9 = $[89];
|
|
2977
|
-
}
|
|
2978
|
-
let t10;
|
|
2979
|
-
if ($[90] !== t9) {
|
|
2980
|
-
t10 = /* @__PURE__ */ jsxs(List$1, { disablePadding: true, children: [
|
|
2981
|
-
t7,
|
|
2982
|
-
/* @__PURE__ */ jsxs(ListItemButton$1, { onClick: _temp4, children: [
|
|
2983
|
-
t8,
|
|
2984
|
-
/* @__PURE__ */ jsx(ListItemText$1, { primary: t9 })
|
|
2985
|
-
] })
|
|
2986
|
-
] });
|
|
2987
|
-
$[90] = t9;
|
|
2988
|
-
$[91] = t10;
|
|
2989
|
-
} else {
|
|
2990
|
-
t10 = $[91];
|
|
2991
|
-
}
|
|
2992
|
-
const t11 = tab === "settings" && settings;
|
|
2993
|
-
const t12 = tab === "theme" && theme;
|
|
2994
|
-
const t13 = tab === "language" && language;
|
|
2995
|
-
let t14;
|
|
2996
|
-
if ($[92] !== t10 || $[93] !== t11 || $[94] !== t12 || $[95] !== t13) {
|
|
2997
|
-
t14 = /* @__PURE__ */ jsxs(Box$1, { sx: t6, children: [
|
|
2998
|
-
t10,
|
|
2999
|
-
t11,
|
|
3000
|
-
t12,
|
|
3001
|
-
t13
|
|
3002
|
-
] });
|
|
3003
|
-
$[92] = t10;
|
|
3004
|
-
$[93] = t11;
|
|
3005
|
-
$[94] = t12;
|
|
3006
|
-
$[95] = t13;
|
|
3007
|
-
$[96] = t14;
|
|
3008
|
-
} else {
|
|
3009
|
-
t14 = $[96];
|
|
3010
|
-
}
|
|
3011
|
-
let t15;
|
|
3012
|
-
if ($[97] !== anchorElement || $[98] !== closeMenu || $[99] !== open || $[100] !== t14) {
|
|
3013
|
-
t15 = /* @__PURE__ */ jsx(Menu, { anchorEl: anchorElement, open, onClose: closeMenu, children: t14 });
|
|
3014
|
-
$[97] = anchorElement;
|
|
3015
|
-
$[98] = closeMenu;
|
|
3016
|
-
$[99] = open;
|
|
3017
|
-
$[100] = t14;
|
|
3018
|
-
$[101] = t15;
|
|
3019
|
-
} else {
|
|
3020
|
-
t15 = $[101];
|
|
3021
|
-
}
|
|
3022
|
-
let t16;
|
|
3023
|
-
if ($[102] !== t15 || $[103] !== t5) {
|
|
3024
|
-
t16 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3025
|
-
t5,
|
|
3026
|
-
t15
|
|
1622
|
+
let V;
|
|
1623
|
+
t[11] !== n ? (V = n("Layout.Light"), t[11] = n, t[12] = V) : V = t[12];
|
|
1624
|
+
let i;
|
|
1625
|
+
t[13] !== V ? (i = {
|
|
1626
|
+
mode: "light",
|
|
1627
|
+
icon: jr,
|
|
1628
|
+
label: V
|
|
1629
|
+
}, t[13] = V, t[14] = i) : i = t[14];
|
|
1630
|
+
let y;
|
|
1631
|
+
t[15] !== n ? (y = n("Layout.Dark"), t[15] = n, t[16] = y) : y = t[16];
|
|
1632
|
+
let w;
|
|
1633
|
+
t[17] !== y ? (w = {
|
|
1634
|
+
mode: "dark",
|
|
1635
|
+
icon: Ar,
|
|
1636
|
+
label: y
|
|
1637
|
+
}, t[17] = y, t[18] = w) : w = t[18];
|
|
1638
|
+
let O;
|
|
1639
|
+
t[19] !== n ? (O = n("Layout.System"), t[19] = n, t[20] = O) : O = t[20];
|
|
1640
|
+
let S;
|
|
1641
|
+
t[21] !== O ? (S = {
|
|
1642
|
+
mode: "system",
|
|
1643
|
+
icon: Yr,
|
|
1644
|
+
label: O
|
|
1645
|
+
}, t[21] = O, t[22] = S) : S = t[22];
|
|
1646
|
+
let k;
|
|
1647
|
+
t[23] !== i || t[24] !== w || t[25] !== S ? (k = [i, w, S], t[23] = i, t[24] = w, t[25] = S, t[26] = k) : k = t[26];
|
|
1648
|
+
const C = k;
|
|
1649
|
+
let M;
|
|
1650
|
+
t[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = (re) => r(re.currentTarget), t[27] = M) : M = t[27], v = M;
|
|
1651
|
+
let I;
|
|
1652
|
+
t[28] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I = () => {
|
|
1653
|
+
r(void 0), setTimeout(() => s("settings"), 300);
|
|
1654
|
+
}, t[28] = I) : I = t[28], h = I;
|
|
1655
|
+
let L;
|
|
1656
|
+
t[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (L = (re) => () => s(re), t[29] = L) : L = t[29];
|
|
1657
|
+
const D = L;
|
|
1658
|
+
let X;
|
|
1659
|
+
t[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X = {
|
|
1660
|
+
backgroundColor: "transparent"
|
|
1661
|
+
}, t[30] = X) : X = t[30];
|
|
1662
|
+
let m;
|
|
1663
|
+
t[31] !== n ? (m = n("Layout.Settings"), t[31] = n, t[32] = m) : m = t[32];
|
|
1664
|
+
let Q;
|
|
1665
|
+
t[33] !== m ? (Q = /* @__PURE__ */ p(Ge, { sx: X, children: m }), t[33] = m, t[34] = Q) : Q = t[34];
|
|
1666
|
+
let oe, se;
|
|
1667
|
+
t[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oe = D("theme"), se = {
|
|
1668
|
+
py: 0.3
|
|
1669
|
+
}, t[35] = oe, t[36] = se) : (oe = t[35], se = t[36]);
|
|
1670
|
+
let be;
|
|
1671
|
+
t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (be = /* @__PURE__ */ p(Te, { children: /* @__PURE__ */ p(Lr, {}) }), t[37] = be) : be = t[37];
|
|
1672
|
+
let le;
|
|
1673
|
+
t[38] !== n ? (le = n("Layout.Appearance"), t[38] = n, t[39] = le) : le = t[39];
|
|
1674
|
+
const Be = C.find((re) => re.mode === f)?.label;
|
|
1675
|
+
let ue;
|
|
1676
|
+
t[40] !== le || t[41] !== Be ? (ue = /* @__PURE__ */ p(ye, { primary: le, secondary: Be }), t[40] = le, t[41] = Be, t[42] = ue) : ue = t[42];
|
|
1677
|
+
let xe;
|
|
1678
|
+
t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xe = /* @__PURE__ */ p(gt, {}), t[43] = xe) : xe = t[43];
|
|
1679
|
+
let fe;
|
|
1680
|
+
t[44] !== ue ? (fe = /* @__PURE__ */ q(ve, { onClick: oe, sx: se, children: [
|
|
1681
|
+
be,
|
|
1682
|
+
ue,
|
|
1683
|
+
xe
|
|
1684
|
+
] }), t[44] = ue, t[45] = fe) : fe = t[45];
|
|
1685
|
+
let Se, Ee;
|
|
1686
|
+
t[46] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Se = D("language"), Ee = {
|
|
1687
|
+
py: 0.3
|
|
1688
|
+
}, t[46] = Se, t[47] = Ee) : (Se = t[46], Ee = t[47]);
|
|
1689
|
+
let _e;
|
|
1690
|
+
t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_e = /* @__PURE__ */ p(Te, { children: /* @__PURE__ */ p(zr, {}) }), t[48] = _e) : _e = t[48];
|
|
1691
|
+
let Oe;
|
|
1692
|
+
t[49] !== n ? (Oe = n("Layout.Language"), t[49] = n, t[50] = Oe) : Oe = t[50];
|
|
1693
|
+
let we;
|
|
1694
|
+
t[51] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (we = /* @__PURE__ */ p(gt, {}), t[51] = we) : we = t[51];
|
|
1695
|
+
const He = /* @__PURE__ */ q(ve, { onClick: Se, sx: Ee, children: [
|
|
1696
|
+
_e,
|
|
1697
|
+
/* @__PURE__ */ p(ye, { primary: Oe, secondary: It(te.of(l.language)) }),
|
|
1698
|
+
we
|
|
3027
1699
|
] });
|
|
3028
|
-
|
|
3029
|
-
|
|
3030
|
-
|
|
3031
|
-
|
|
3032
|
-
|
|
3033
|
-
|
|
3034
|
-
|
|
1700
|
+
let Ce;
|
|
1701
|
+
t[52] !== Q || t[53] !== fe || t[54] !== He ? (Ce = /* @__PURE__ */ q(Re, { component: "nav", subheader: Q, children: [
|
|
1702
|
+
fe,
|
|
1703
|
+
He
|
|
1704
|
+
] }), t[52] = Q, t[53] = fe, t[54] = He, t[55] = Ce) : Ce = t[55], g = Ce;
|
|
1705
|
+
let Me, Pe;
|
|
1706
|
+
t[56] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Me = D("settings"), Pe = {
|
|
1707
|
+
backgroundColor: "transparent",
|
|
1708
|
+
display: "flex",
|
|
1709
|
+
alignItems: "center",
|
|
1710
|
+
px: 1,
|
|
1711
|
+
cursor: "pointer"
|
|
1712
|
+
}, t[56] = Me, t[57] = Pe) : (Me = t[56], Pe = t[57]);
|
|
1713
|
+
let ke;
|
|
1714
|
+
t[58] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ke = /* @__PURE__ */ p(Ye, { size: "small", sx: {
|
|
1715
|
+
mr: 0.5
|
|
1716
|
+
}, children: /* @__PURE__ */ p(yt, { fontSize: "small" }) }), t[58] = ke) : ke = t[58];
|
|
1717
|
+
let de;
|
|
1718
|
+
t[59] !== n ? (de = n("Layout.Appearance"), t[59] = n, t[60] = de) : de = t[60];
|
|
1719
|
+
let me;
|
|
1720
|
+
t[61] !== de ? (me = /* @__PURE__ */ q(Ge, { onClick: Me, sx: Pe, children: [
|
|
1721
|
+
ke,
|
|
1722
|
+
" ",
|
|
1723
|
+
de
|
|
1724
|
+
] }), t[61] = de, t[62] = me) : me = t[62];
|
|
1725
|
+
let pe;
|
|
1726
|
+
t[63] !== C || t[64] !== f || t[65] !== d ? (pe = C.map((re) => {
|
|
1727
|
+
const {
|
|
1728
|
+
mode: Ve,
|
|
1729
|
+
icon: zt,
|
|
1730
|
+
label: Nt
|
|
1731
|
+
} = re;
|
|
1732
|
+
return /* @__PURE__ */ q(ve, { onClick: () => {
|
|
1733
|
+
d(Ve), h();
|
|
1734
|
+
}, selected: f === Ve, children: [
|
|
1735
|
+
/* @__PURE__ */ p(Te, { children: /* @__PURE__ */ p(zt, {}) }),
|
|
1736
|
+
/* @__PURE__ */ p(ye, { primary: Nt })
|
|
1737
|
+
] }, Ve);
|
|
1738
|
+
}), t[63] = C, t[64] = f, t[65] = d, t[66] = pe) : pe = t[66];
|
|
1739
|
+
let Ie;
|
|
1740
|
+
t[67] !== me || t[68] !== pe ? (Ie = /* @__PURE__ */ p(Re, { subheader: me, children: pe }), t[67] = me, t[68] = pe, t[69] = Ie) : Ie = t[69], E = Ie, u = Re;
|
|
1741
|
+
let De, Le;
|
|
1742
|
+
t[70] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (De = D("settings"), Le = {
|
|
1743
|
+
backgroundColor: "transparent",
|
|
1744
|
+
display: "flex",
|
|
1745
|
+
alignItems: "center",
|
|
1746
|
+
px: 1,
|
|
1747
|
+
cursor: "pointer"
|
|
1748
|
+
}, t[70] = De, t[71] = Le) : (De = t[70], Le = t[71]);
|
|
1749
|
+
let Ae;
|
|
1750
|
+
t[72] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ae = /* @__PURE__ */ p(Ye, { size: "small", sx: {
|
|
1751
|
+
mr: 0.5
|
|
1752
|
+
}, children: /* @__PURE__ */ p(yt, { fontSize: "small" }) }), t[72] = Ae) : Ae = t[72];
|
|
1753
|
+
let he;
|
|
1754
|
+
t[73] !== n ? (he = n("Layout.Language"), t[73] = n, t[74] = he) : he = t[74], t[75] !== he ? (b = /* @__PURE__ */ q(Ge, { onClick: De, sx: Le, children: [
|
|
1755
|
+
Ae,
|
|
1756
|
+
" ",
|
|
1757
|
+
he
|
|
1758
|
+
] }), t[75] = he, t[76] = b) : b = t[76], T = H.map((re) => /* @__PURE__ */ q(ve, { onClick: () => l.changeLanguage(re).finally(() => h()), selected: l.resolvedLanguage === re, children: [
|
|
1759
|
+
/* @__PURE__ */ p(Te, { children: l.resolvedLanguage === re && /* @__PURE__ */ p(Rr, {}) }),
|
|
1760
|
+
/* @__PURE__ */ p(ye, { primary: It(te.of(re)) })
|
|
1761
|
+
] }, re)), t[0] = l, t[1] = f, t[2] = d, t[3] = n, t[4] = u, t[5] = h, t[6] = v, t[7] = g, t[8] = b, t[9] = T, t[10] = E;
|
|
1762
|
+
} else
|
|
1763
|
+
u = t[4], h = t[5], v = t[6], g = t[7], b = t[8], T = t[9], E = t[10];
|
|
1764
|
+
let P;
|
|
1765
|
+
t[77] !== u || t[78] !== b || t[79] !== T ? (P = /* @__PURE__ */ p(u, { subheader: b, children: T }), t[77] = u, t[78] = b, t[79] = T, t[80] = P) : P = t[80];
|
|
1766
|
+
const A = P;
|
|
1767
|
+
let x;
|
|
1768
|
+
t[81] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (x = /* @__PURE__ */ p(Dr, { sx: {
|
|
1769
|
+
width: {
|
|
1770
|
+
xs: 32,
|
|
1771
|
+
sm: 40
|
|
1772
|
+
},
|
|
1773
|
+
height: {
|
|
1774
|
+
xs: 32,
|
|
1775
|
+
sm: 40
|
|
1776
|
+
}
|
|
1777
|
+
} }), t[81] = x) : x = t[81];
|
|
1778
|
+
let _;
|
|
1779
|
+
t[82] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = /* @__PURE__ */ p(ir, { fallback: x, children: /* @__PURE__ */ p(ht, { promise: xn(), children: _n }) }), t[82] = _) : _ = t[82];
|
|
1780
|
+
let c;
|
|
1781
|
+
t[83] !== v ? (c = /* @__PURE__ */ p(Ye, { size: "small", edge: "end", onClick: v, children: _ }), t[83] = v, t[84] = c) : c = t[84];
|
|
1782
|
+
let j;
|
|
1783
|
+
t[85] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (j = {
|
|
1784
|
+
width: 240
|
|
1785
|
+
}, t[85] = j) : j = t[85];
|
|
1786
|
+
let J;
|
|
1787
|
+
t[86] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (J = /* @__PURE__ */ p(Vt, { children: /* @__PURE__ */ p(ht, { promise: bn(), children: On }) }), t[86] = J) : J = t[86];
|
|
1788
|
+
let B;
|
|
1789
|
+
t[87] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (B = /* @__PURE__ */ p(Te, { children: /* @__PURE__ */ p($r, { color: "error" }) }), t[87] = B) : B = t[87];
|
|
1790
|
+
let N;
|
|
1791
|
+
t[88] !== n ? (N = n("Layout.Logout"), t[88] = n, t[89] = N) : N = t[89];
|
|
1792
|
+
let U;
|
|
1793
|
+
t[90] !== N ? (U = /* @__PURE__ */ q(Re, { disablePadding: !0, children: [
|
|
1794
|
+
J,
|
|
1795
|
+
/* @__PURE__ */ q(ve, { onClick: wn, children: [
|
|
1796
|
+
B,
|
|
1797
|
+
/* @__PURE__ */ p(ye, { primary: N })
|
|
1798
|
+
] })
|
|
1799
|
+
] }), t[90] = N, t[91] = U) : U = t[91];
|
|
1800
|
+
const K = o === "settings" && g, ee = o === "theme" && E, Z = o === "language" && A;
|
|
1801
|
+
let W;
|
|
1802
|
+
t[92] !== U || t[93] !== K || t[94] !== ee || t[95] !== Z ? (W = /* @__PURE__ */ q(ze, { sx: j, children: [
|
|
1803
|
+
U,
|
|
1804
|
+
K,
|
|
1805
|
+
ee,
|
|
1806
|
+
Z
|
|
1807
|
+
] }), t[92] = U, t[93] = K, t[94] = ee, t[95] = Z, t[96] = W) : W = t[96];
|
|
1808
|
+
let F;
|
|
1809
|
+
t[97] !== e || t[98] !== h || t[99] !== a || t[100] !== W ? (F = /* @__PURE__ */ p(Kt, { anchorEl: e, open: a, onClose: h, children: W }), t[97] = e, t[98] = h, t[99] = a, t[100] = W, t[101] = F) : F = t[101];
|
|
1810
|
+
let R;
|
|
1811
|
+
return t[102] !== F || t[103] !== c ? (R = /* @__PURE__ */ q(qe, { children: [
|
|
1812
|
+
c,
|
|
1813
|
+
F
|
|
1814
|
+
] }), t[102] = F, t[103] = c, t[104] = R) : R = t[104], R;
|
|
3035
1815
|
};
|
|
3036
|
-
function
|
|
3037
|
-
return
|
|
1816
|
+
function En(t) {
|
|
1817
|
+
return t !== "cimode";
|
|
3038
1818
|
}
|
|
3039
|
-
function
|
|
3040
|
-
return /* @__PURE__ */
|
|
1819
|
+
function _n(t) {
|
|
1820
|
+
return /* @__PURE__ */ p(Gt, { src: t, sx: {
|
|
3041
1821
|
width: {
|
|
3042
1822
|
xs: 32,
|
|
3043
1823
|
sm: 40
|
|
@@ -3048,286 +1828,146 @@ function _temp2(data) {
|
|
|
3048
1828
|
}
|
|
3049
1829
|
} });
|
|
3050
1830
|
}
|
|
3051
|
-
function
|
|
3052
|
-
return /* @__PURE__ */
|
|
1831
|
+
function On(t) {
|
|
1832
|
+
return /* @__PURE__ */ p(ye, { primary: t.displayName.split("/")[0], secondary: t.jobTitle });
|
|
3053
1833
|
}
|
|
3054
|
-
function
|
|
1834
|
+
function wn() {
|
|
3055
1835
|
return console.log("Logout clicked");
|
|
3056
1836
|
}
|
|
3057
|
-
const
|
|
3058
|
-
const
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
const cookie = document.cookie.split("; ").find((row) => row.startsWith("navigationOpen="));
|
|
3063
|
-
return cookie ? cookie.split("=")[1] === "true" : false;
|
|
3064
|
-
});
|
|
3065
|
-
const DrawerHeader = styled("div")(({
|
|
3066
|
-
theme
|
|
1837
|
+
const Yt = 3600 * 24 * 365, Cn = rr().server(() => Dt("navigationOpen") === "true").client(() => {
|
|
1838
|
+
const t = document.cookie.split("; ").find((e) => e.startsWith("navigationOpen="));
|
|
1839
|
+
return t ? t.split("=")[1] === "true" : !1;
|
|
1840
|
+
}), Mn = at("div")(({
|
|
1841
|
+
theme: t
|
|
3067
1842
|
}) => ({
|
|
3068
1843
|
display: "flex",
|
|
3069
1844
|
alignItems: "center",
|
|
3070
1845
|
justifyContent: "flex-end",
|
|
3071
|
-
padding:
|
|
3072
|
-
...
|
|
3073
|
-
}))
|
|
3074
|
-
const
|
|
3075
|
-
|
|
3076
|
-
|
|
3077
|
-
|
|
3078
|
-
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
|
|
3082
|
-
|
|
3083
|
-
|
|
3084
|
-
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
3092
|
-
|
|
3093
|
-
|
|
3094
|
-
|
|
3095
|
-
|
|
3096
|
-
|
|
3097
|
-
|
|
3098
|
-
|
|
3099
|
-
|
|
3100
|
-
|
|
3101
|
-
|
|
3102
|
-
|
|
3103
|
-
|
|
3104
|
-
|
|
3105
|
-
|
|
3106
|
-
|
|
3107
|
-
|
|
3108
|
-
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
|
|
3114
|
-
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
|
|
3121
|
-
|
|
3122
|
-
|
|
3123
|
-
|
|
3124
|
-
|
|
3125
|
-
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
3129
|
-
|
|
3130
|
-
|
|
3131
|
-
|
|
3132
|
-
|
|
3133
|
-
|
|
3134
|
-
}
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
t8 = props.navigation && /* @__PURE__ */ jsx(NavigationRail, { navigation: props.navigation, expanded: navigationOpen, setExpanded: (newValue_0) => {
|
|
3153
|
-
setNavigationOpen(newValue_0);
|
|
3154
|
-
document.cookie = `navigationOpen=${newValue_0}; max-age=${YEAR_IN_SECONDS}; path=/`;
|
|
3155
|
-
} });
|
|
3156
|
-
$[11] = navigationOpen;
|
|
3157
|
-
$[12] = props.navigation;
|
|
3158
|
-
$[13] = t8;
|
|
3159
|
-
} else {
|
|
3160
|
-
t8 = $[13];
|
|
3161
|
-
}
|
|
3162
|
-
let t10;
|
|
3163
|
-
let t9;
|
|
3164
|
-
if ($[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
3165
|
-
t9 = {
|
|
3166
|
-
flexGrow: 1,
|
|
3167
|
-
display: "flex",
|
|
3168
|
-
flexDirection: "column",
|
|
3169
|
-
minWidth: 0,
|
|
3170
|
-
height: "100%",
|
|
3171
|
-
overflow: "hidden"
|
|
3172
|
-
};
|
|
3173
|
-
t10 = /* @__PURE__ */ jsx(DrawerHeader, {});
|
|
3174
|
-
$[14] = t10;
|
|
3175
|
-
$[15] = t9;
|
|
3176
|
-
} else {
|
|
3177
|
-
t10 = $[14];
|
|
3178
|
-
t9 = $[15];
|
|
3179
|
-
}
|
|
3180
|
-
let t11;
|
|
3181
|
-
if ($[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
3182
|
-
t11 = {
|
|
3183
|
-
flex: 1,
|
|
3184
|
-
overflow: "auto",
|
|
3185
|
-
position: "relative"
|
|
3186
|
-
};
|
|
3187
|
-
$[16] = t11;
|
|
3188
|
-
} else {
|
|
3189
|
-
t11 = $[16];
|
|
3190
|
-
}
|
|
3191
|
-
let t12;
|
|
3192
|
-
if ($[17] !== props.children) {
|
|
3193
|
-
t12 = /* @__PURE__ */ jsxs(Box$1, { component: "main", sx: t9, children: [
|
|
3194
|
-
t10,
|
|
3195
|
-
/* @__PURE__ */ jsx(Box$1, { sx: t11, children: props.children })
|
|
3196
|
-
] });
|
|
3197
|
-
$[17] = props.children;
|
|
3198
|
-
$[18] = t12;
|
|
3199
|
-
} else {
|
|
3200
|
-
t12 = $[18];
|
|
3201
|
-
}
|
|
3202
|
-
let t13;
|
|
3203
|
-
if ($[19] !== t12 || $[20] !== t7 || $[21] !== t8) {
|
|
3204
|
-
t13 = /* @__PURE__ */ jsxs(Box$1, { sx: t2, children: [
|
|
3205
|
-
t7,
|
|
3206
|
-
t8,
|
|
3207
|
-
t12
|
|
3208
|
-
] });
|
|
3209
|
-
$[19] = t12;
|
|
3210
|
-
$[20] = t7;
|
|
3211
|
-
$[21] = t8;
|
|
3212
|
-
$[22] = t13;
|
|
3213
|
-
} else {
|
|
3214
|
-
t13 = $[22];
|
|
3215
|
-
}
|
|
3216
|
-
let t14;
|
|
3217
|
-
if ($[23] !== isFetching || $[24] !== isMutating) {
|
|
3218
|
-
t14 = (isFetching || isMutating) && /* @__PURE__ */ jsx(LinearProgress, { sx: {
|
|
3219
|
-
position: "fixed",
|
|
3220
|
-
top: {
|
|
3221
|
-
xs: 56,
|
|
3222
|
-
sm: 64
|
|
3223
|
-
},
|
|
3224
|
-
left: 0,
|
|
3225
|
-
right: 0
|
|
3226
|
-
} });
|
|
3227
|
-
$[23] = isFetching;
|
|
3228
|
-
$[24] = isMutating;
|
|
3229
|
-
$[25] = t14;
|
|
3230
|
-
} else {
|
|
3231
|
-
t14 = $[25];
|
|
3232
|
-
}
|
|
3233
|
-
let t15;
|
|
3234
|
-
if ($[26] !== t13 || $[27] !== t14) {
|
|
3235
|
-
t15 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3236
|
-
t0,
|
|
3237
|
-
t1,
|
|
3238
|
-
t13,
|
|
3239
|
-
t14
|
|
3240
|
-
] });
|
|
3241
|
-
$[26] = t13;
|
|
3242
|
-
$[27] = t14;
|
|
3243
|
-
$[28] = t15;
|
|
3244
|
-
} else {
|
|
3245
|
-
t15 = $[28];
|
|
3246
|
-
}
|
|
3247
|
-
return t15;
|
|
1846
|
+
padding: t.spacing(0, 1),
|
|
1847
|
+
...t.mixins.toolbar
|
|
1848
|
+
})), Pn = (t) => {
|
|
1849
|
+
const e = ae(29), [r, o] = ce(Cn), s = !!pr(), a = !!hr();
|
|
1850
|
+
let n, l;
|
|
1851
|
+
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (n = /* @__PURE__ */ p(Xt, {}), l = /* @__PURE__ */ p(Zt, {}), e[0] = n, e[1] = l) : (n = e[0], l = e[1]);
|
|
1852
|
+
let f;
|
|
1853
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
|
|
1854
|
+
display: "flex",
|
|
1855
|
+
height: "100dvh",
|
|
1856
|
+
maxHeight: "100dvh",
|
|
1857
|
+
overflow: "hidden",
|
|
1858
|
+
width: "100%"
|
|
1859
|
+
}, e[2] = f) : f = e[2];
|
|
1860
|
+
let d;
|
|
1861
|
+
e[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
1862
|
+
borderBottom: "1px solid",
|
|
1863
|
+
borderColor: "var(--mui-palette-divider)",
|
|
1864
|
+
boxShadow: "none"
|
|
1865
|
+
}, e[3] = d) : d = e[3];
|
|
1866
|
+
let u;
|
|
1867
|
+
e[4] !== r || e[5] !== t.navigation ? (u = t.navigation && /* @__PURE__ */ p(Ye, { onClick: () => {
|
|
1868
|
+
o(kn);
|
|
1869
|
+
}, sx: {
|
|
1870
|
+
marginRight: 2
|
|
1871
|
+
}, children: r ? /* @__PURE__ */ p(fr, {}) : /* @__PURE__ */ p(ur, {}) }), e[4] = r, e[5] = t.navigation, e[6] = u) : u = e[6];
|
|
1872
|
+
let h, v;
|
|
1873
|
+
e[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = /* @__PURE__ */ p(un, {}), v = /* @__PURE__ */ p(Sn, {}), e[7] = h, e[8] = v) : (h = e[7], v = e[8]);
|
|
1874
|
+
let g;
|
|
1875
|
+
e[9] !== u ? (g = /* @__PURE__ */ p(Jt, { color: "transparent", position: "fixed", sx: d, children: /* @__PURE__ */ q(Qt, { children: [
|
|
1876
|
+
u,
|
|
1877
|
+
h,
|
|
1878
|
+
v
|
|
1879
|
+
] }) }), e[9] = u, e[10] = g) : g = e[10];
|
|
1880
|
+
let b;
|
|
1881
|
+
e[11] !== r || e[12] !== t.navigation ? (b = t.navigation && /* @__PURE__ */ p(Tn, { navigation: t.navigation, expanded: r, setExpanded: (j) => {
|
|
1882
|
+
o(j), document.cookie = `navigationOpen=${j}; max-age=${Yt}; path=/`;
|
|
1883
|
+
} }), e[11] = r, e[12] = t.navigation, e[13] = b) : b = e[13];
|
|
1884
|
+
let T, E;
|
|
1885
|
+
e[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = {
|
|
1886
|
+
flexGrow: 1,
|
|
1887
|
+
display: "flex",
|
|
1888
|
+
flexDirection: "column",
|
|
1889
|
+
minWidth: 0,
|
|
1890
|
+
height: "100%",
|
|
1891
|
+
overflow: "hidden"
|
|
1892
|
+
}, T = /* @__PURE__ */ p(Mn, {}), e[14] = T, e[15] = E) : (T = e[14], E = e[15]);
|
|
1893
|
+
let P;
|
|
1894
|
+
e[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (P = {
|
|
1895
|
+
flex: 1,
|
|
1896
|
+
overflow: "auto",
|
|
1897
|
+
position: "relative"
|
|
1898
|
+
}, e[16] = P) : P = e[16];
|
|
1899
|
+
let A;
|
|
1900
|
+
e[17] !== t.children ? (A = /* @__PURE__ */ q(ze, { component: "main", sx: E, children: [
|
|
1901
|
+
T,
|
|
1902
|
+
/* @__PURE__ */ p(ze, { sx: P, children: t.children })
|
|
1903
|
+
] }), e[17] = t.children, e[18] = A) : A = e[18];
|
|
1904
|
+
let x;
|
|
1905
|
+
e[19] !== A || e[20] !== g || e[21] !== b ? (x = /* @__PURE__ */ q(ze, { sx: f, children: [
|
|
1906
|
+
g,
|
|
1907
|
+
b,
|
|
1908
|
+
A
|
|
1909
|
+
] }), e[19] = A, e[20] = g, e[21] = b, e[22] = x) : x = e[22];
|
|
1910
|
+
let _;
|
|
1911
|
+
e[23] !== s || e[24] !== a ? (_ = (s || a) && /* @__PURE__ */ p(er, { sx: {
|
|
1912
|
+
position: "fixed",
|
|
1913
|
+
top: {
|
|
1914
|
+
xs: 56,
|
|
1915
|
+
sm: 64
|
|
1916
|
+
},
|
|
1917
|
+
left: 0,
|
|
1918
|
+
right: 0
|
|
1919
|
+
} }), e[23] = s, e[24] = a, e[25] = _) : _ = e[25];
|
|
1920
|
+
let c;
|
|
1921
|
+
return e[26] !== x || e[27] !== _ ? (c = /* @__PURE__ */ q(qe, { children: [
|
|
1922
|
+
n,
|
|
1923
|
+
l,
|
|
1924
|
+
x,
|
|
1925
|
+
_
|
|
1926
|
+
] }), e[26] = x, e[27] = _, e[28] = c) : c = e[28], c;
|
|
3248
1927
|
};
|
|
3249
|
-
function
|
|
3250
|
-
const
|
|
3251
|
-
document.cookie = `navigationOpen=${
|
|
3252
|
-
return newValue;
|
|
1928
|
+
function kn(t) {
|
|
1929
|
+
const e = !t;
|
|
1930
|
+
return document.cookie = `navigationOpen=${e}; max-age=${Yt}; path=/`, e;
|
|
3253
1931
|
}
|
|
3254
|
-
const
|
|
3255
|
-
|
|
3256
|
-
resources,
|
|
1932
|
+
const In = 1440 * 365;
|
|
1933
|
+
ie.use(nr).use(cr).init({
|
|
1934
|
+
resources: mt,
|
|
3257
1935
|
fallbackLng: "en",
|
|
3258
|
-
supportedLngs: Object.keys(
|
|
1936
|
+
supportedLngs: Object.keys(mt),
|
|
3259
1937
|
detection: {
|
|
3260
1938
|
caches: ["cookie"],
|
|
3261
|
-
cookieMinutes:
|
|
1939
|
+
cookieMinutes: In
|
|
3262
1940
|
},
|
|
3263
1941
|
interpolation: {
|
|
3264
|
-
escapeValue:
|
|
1942
|
+
escapeValue: !1
|
|
3265
1943
|
}
|
|
3266
1944
|
});
|
|
3267
|
-
const
|
|
3268
|
-
const
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3280
|
-
|
|
3281
|
-
|
|
3282
|
-
|
|
3283
|
-
|
|
3284
|
-
|
|
3285
|
-
|
|
3286
|
-
} else {
|
|
3287
|
-
t1 = $[1];
|
|
3288
|
-
}
|
|
3289
|
-
let t2;
|
|
3290
|
-
if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
|
|
3291
|
-
t2 = [];
|
|
3292
|
-
$[2] = t2;
|
|
3293
|
-
} else {
|
|
3294
|
-
t2 = $[2];
|
|
3295
|
-
}
|
|
3296
|
-
useEffect(t1, t2);
|
|
3297
|
-
let t3;
|
|
3298
|
-
if ($[3] !== children || $[4] !== navigation) {
|
|
3299
|
-
t3 = /* @__PURE__ */ jsx(LocalizationProvider, { dateAdapter: AdapterDayjs, adapterLocale: i18n.language, children: /* @__PURE__ */ jsx(DialogsProvider, { children: /* @__PURE__ */ jsx(Layout, { navigation, children }) }) }, i18n.language);
|
|
3300
|
-
$[3] = children;
|
|
3301
|
-
$[4] = navigation;
|
|
3302
|
-
$[5] = t3;
|
|
3303
|
-
} else {
|
|
3304
|
-
t3 = $[5];
|
|
3305
|
-
}
|
|
3306
|
-
let t4;
|
|
3307
|
-
if ($[6] !== t3 || $[7] !== theme) {
|
|
3308
|
-
t4 = /* @__PURE__ */ jsx(ThemeProvider, { theme, children: t3 });
|
|
3309
|
-
$[6] = t3;
|
|
3310
|
-
$[7] = theme;
|
|
3311
|
-
$[8] = t4;
|
|
3312
|
-
} else {
|
|
3313
|
-
t4 = $[8];
|
|
3314
|
-
}
|
|
3315
|
-
return t4;
|
|
3316
|
-
};
|
|
3317
|
-
const setSSRLanguage = createServerFn().handler(async () => {
|
|
3318
|
-
const language = getCookie(i18n.services.languageDetector.options.lookupCookie) || "en";
|
|
3319
|
-
z__default.config(z__default.core.locales[language]());
|
|
3320
|
-
dayjs.locale(language);
|
|
3321
|
-
await i18n.changeLanguage(language);
|
|
1945
|
+
const Ao = (t) => {
|
|
1946
|
+
const e = ae(9), {
|
|
1947
|
+
navigation: r,
|
|
1948
|
+
theme: o,
|
|
1949
|
+
children: s
|
|
1950
|
+
} = t, a = ar(Dn);
|
|
1951
|
+
let n;
|
|
1952
|
+
e[0] !== a ? (n = () => (a(), ie.on("languageChanged", a), () => {
|
|
1953
|
+
ie.off("languageChanged", a);
|
|
1954
|
+
}), e[0] = a, e[1] = n) : n = e[1];
|
|
1955
|
+
let l;
|
|
1956
|
+
e[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (l = [], e[2] = l) : l = e[2], Lt(n, l);
|
|
1957
|
+
let f;
|
|
1958
|
+
e[3] !== s || e[4] !== r ? (f = /* @__PURE__ */ p(ft, { dateAdapter: cn, adapterLocale: ie.language, children: /* @__PURE__ */ p(ln, { children: /* @__PURE__ */ p(Pn, { navigation: r, children: s }) }) }, ie.language), e[3] = s, e[4] = r, e[5] = f) : f = e[5];
|
|
1959
|
+
let d;
|
|
1960
|
+
return e[6] !== f || e[7] !== o ? (d = /* @__PURE__ */ p(tr, { theme: o, children: f }), e[6] = f, e[7] = o, e[8] = d) : d = e[8], d;
|
|
1961
|
+
}, Ro = Fe().handler(async () => {
|
|
1962
|
+
const t = Dt(ie.services.languageDetector.options.lookupCookie) || "en";
|
|
1963
|
+
ge.config(ge.core.locales[t]()), G.locale(t), await ie.changeLanguage(t);
|
|
3322
1964
|
});
|
|
3323
|
-
function
|
|
3324
|
-
|
|
3325
|
-
dayjs.locale(i18n.language);
|
|
1965
|
+
function Dn() {
|
|
1966
|
+
ge.config(ge.core.locales[ie.language]()), G.locale(ie.language);
|
|
3326
1967
|
}
|
|
3327
1968
|
export {
|
|
3328
|
-
LayoutProvider,
|
|
3329
|
-
getSessionUser,
|
|
3330
|
-
|
|
3331
|
-
setSSRLanguage
|
|
1969
|
+
Ao as LayoutProvider,
|
|
1970
|
+
Lo as getSessionUser,
|
|
1971
|
+
Yo as rootRouteHead,
|
|
1972
|
+
Ro as setSSRLanguage
|
|
3332
1973
|
};
|
|
3333
|
-
//# sourceMappingURL=index.js.map
|