wcz-test 6.24.7 → 6.24.9

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.
Files changed (50) hide show
  1. package/dist/ApprovalStatus-lESbUD_x.js +6 -0
  2. package/dist/DialogsContext-2Yy6yhzQ.js +5 -0
  3. package/dist/DialogsHooks-DWkC9zAf.js +113 -0
  4. package/dist/FileHooks-kGkVKOf9.js +2694 -0
  5. package/dist/FileMeta-Bzeo3ie9.js +17 -0
  6. package/dist/RouterListItemButton-C_SG0uka.js +17 -0
  7. package/dist/_commonjsHelpers-DaMA6jEr.js +8 -0
  8. package/dist/client.js +8 -9
  9. package/dist/components.js +632 -1454
  10. package/dist/env-4ZoUrNqp.js +27 -0
  11. package/dist/exports/server.d.ts +0 -3
  12. package/dist/hooks.js +371 -985
  13. package/dist/index.js +1580 -2940
  14. package/dist/models.js +147 -164
  15. package/dist/queries.js +519 -911
  16. package/dist/queryClient--EvGPhnh.js +5 -0
  17. package/dist/server.js +40 -63
  18. package/dist/session-7yb0BETM.js +75 -0
  19. package/dist/{chunks/utils-MD9YwOtu.js → utils-CZraUjBd.js} +24 -34
  20. package/dist/utils.js +6 -7
  21. package/dist/vite.js +31 -40
  22. package/package.json +3 -6
  23. package/dist/chunks/ApprovalStatus-BtAVFn5p.js +0 -8
  24. package/dist/chunks/ApprovalStatus-BtAVFn5p.js.map +0 -1
  25. package/dist/chunks/DialogsContext-DoU_8Eeu.js +0 -6
  26. package/dist/chunks/DialogsContext-DoU_8Eeu.js.map +0 -1
  27. package/dist/chunks/DialogsHooks-DOT0O_b4.js +0 -278
  28. package/dist/chunks/DialogsHooks-DOT0O_b4.js.map +0 -1
  29. package/dist/chunks/FileHooks-DCnXvUtq.js +0 -3554
  30. package/dist/chunks/FileHooks-DCnXvUtq.js.map +0 -1
  31. package/dist/chunks/FileMeta-G1oT3mYK.js +0 -18
  32. package/dist/chunks/FileMeta-G1oT3mYK.js.map +0 -1
  33. package/dist/chunks/RouterListItemButton-DTYXk1kh.js +0 -35
  34. package/dist/chunks/RouterListItemButton-DTYXk1kh.js.map +0 -1
  35. package/dist/chunks/env-gsqZ6zZD.js +0 -30
  36. package/dist/chunks/env-gsqZ6zZD.js.map +0 -1
  37. package/dist/chunks/queryClient-CNvC95mU.js +0 -6
  38. package/dist/chunks/queryClient-CNvC95mU.js.map +0 -1
  39. package/dist/chunks/session-vW7WZadj.js +0 -91
  40. package/dist/chunks/session-vW7WZadj.js.map +0 -1
  41. package/dist/chunks/utils-MD9YwOtu.js.map +0 -1
  42. package/dist/client.js.map +0 -1
  43. package/dist/components.js.map +0 -1
  44. package/dist/hooks.js.map +0 -1
  45. package/dist/index.js.map +0 -1
  46. package/dist/models.js.map +0 -1
  47. package/dist/queries.js.map +0 -1
  48. package/dist/server.js.map +0 -1
  49. package/dist/utils.js.map +0 -1
  50. package/dist/vite.js.map +0 -1
package/dist/index.js CHANGED
@@ -1,1069 +1,768 @@
1
- import { jsx, jsxs, Fragment as Fragment$1 } from "react/jsx-runtime";
2
- import { c } from "react/compiler-runtime";
3
- import { Stack, Typography, Collapse, useMediaQuery, useColorScheme, ListItemButton as ListItemButton$1, ListItemText as ListItemText$1, ListItemIcon as ListItemIcon$1, ListItem as ListItem$1, Avatar as Avatar$1, ListSubheader as ListSubheader$1, List as List$1, IconButton, Box as Box$1, Menu, InitColorSchemeScript, CssBaseline, AppBar, Toolbar, LinearProgress, ThemeProvider } from "@mui/material";
4
- import { createServerFn, createIsomorphicFn } from "@tanstack/react-start";
5
- import { getCookie } from "@tanstack/react-start/server";
6
- import dayjs from "dayjs";
7
- import i18n from "i18next";
8
- import LanguageDetector from "i18next-browser-languagedetector";
9
- import * as React from "react";
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 z__default from "zod";
14
- import { D as DialogsContext } from "./chunks/DialogsContext-DoU_8Eeu.js";
15
- import Menu$1 from "@mui/icons-material/Menu";
16
- import MenuOpen from "@mui/icons-material/MenuOpen";
17
- import { useThemeProps, styled, useTheme } from "@mui/material/styles";
18
- import { useIsFetching, useIsMutating } from "@tanstack/react-query";
19
- import { c as clientEnv } from "./chunks/env-gsqZ6zZD.js";
20
- import Box from "@mui/material/Box";
21
- import Drawer from "@mui/material/Drawer";
22
- import { useNavigate, useRouterState, Await } from "@tanstack/react-router";
23
- import Divider from "@mui/material/Divider";
24
- import List from "@mui/material/List";
25
- import ListSubheader from "@mui/material/ListSubheader";
26
- import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
27
- import Avatar from "@mui/material/Avatar";
28
- import ListItem from "@mui/material/ListItem";
29
- import ListItemButton from "@mui/material/ListItemButton";
30
- import ListItemIcon from "@mui/material/ListItemIcon";
31
- import ListItemText from "@mui/material/ListItemText";
32
- import MuiPaper from "@mui/material/Paper";
33
- import MuiPopper from "@mui/material/Popper";
34
- import Typography$1 from "@mui/material/Typography";
35
- import { R as RouterListItemButton } from "./chunks/RouterListItemButton-DTYXk1kh.js";
36
- import AccountCircle from "@mui/icons-material/AccountCircle";
37
- import ArrowBack from "@mui/icons-material/ArrowBack";
38
- import Brightness4 from "@mui/icons-material/Brightness4";
39
- import ChevronRight from "@mui/icons-material/ChevronRight";
40
- import DarkMode from "@mui/icons-material/DarkMode";
41
- import Done from "@mui/icons-material/Done";
42
- import LightMode from "@mui/icons-material/LightMode";
43
- import Logout from "@mui/icons-material/Logout";
44
- import SettingsBrightness from "@mui/icons-material/SettingsBrightness";
45
- import Translate from "@mui/icons-material/Translate";
46
- import axios from "axios";
47
- import { q as queryClient } from "./chunks/queryClient-CNvC95mU.js";
48
- import { r as requireSession, g as getAccessToken } from "./chunks/session-vW7WZadj.js";
49
- import weekOfYearPlugin from "dayjs/plugin/weekOfYear.js";
50
- import customParseFormatPlugin from "dayjs/plugin/customParseFormat.js";
51
- import localizedFormatPlugin from "dayjs/plugin/localizedFormat.js";
52
- import isBetweenPlugin from "dayjs/plugin/isBetween.js";
53
- import advancedFormatPlugin from "dayjs/plugin/advancedFormat.js";
54
- import { r } from "./chunks/utils-MD9YwOtu.js";
55
- function _extends() {
56
- return _extends = Object.assign ? Object.assign.bind() : function(n) {
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 t = arguments[e];
59
- for (var r2 in t) ({}).hasOwnProperty.call(t, r2) && (n[r2] = t[r2]);
59
+ var r = arguments[e];
60
+ for (var o in r) ({}).hasOwnProperty.call(r, o) && (t[o] = r[o]);
60
61
  }
61
- return n;
62
- }, _extends.apply(null, arguments);
62
+ return t;
63
+ }, Ue.apply(null, arguments);
63
64
  }
64
- function _objectWithoutPropertiesLoose(r2, e) {
65
- if (null == r2) return {};
66
- var t = {};
67
- for (var n in r2) if ({}.hasOwnProperty.call(r2, n)) {
68
- if (-1 !== e.indexOf(n)) continue;
69
- t[n] = r2[n];
70
- }
71
- return t;
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 propTypes = { exports: {} };
74
- var reactIs = { exports: {} };
75
- var reactIs_production_min = {};
76
- var hasRequiredReactIs_production_min;
77
- function requireReactIs_production_min() {
78
- if (hasRequiredReactIs_production_min) return reactIs_production_min;
79
- hasRequiredReactIs_production_min = 1;
80
- var b = "function" === typeof Symbol && Symbol.for, c2 = b ? /* @__PURE__ */ Symbol.for("react.element") : 60103, d = b ? /* @__PURE__ */ Symbol.for("react.portal") : 60106, e = b ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107, f = b ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108, g = b ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114, h = b ? /* @__PURE__ */ Symbol.for("react.provider") : 60109, k = b ? /* @__PURE__ */ Symbol.for("react.context") : 60110, l = b ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111, m = b ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111, n = b ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112, p = b ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113, q = b ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120, r2 = b ? /* @__PURE__ */ Symbol.for("react.memo") : 60115, t = b ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116, v = b ? /* @__PURE__ */ Symbol.for("react.block") : 60121, w = b ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117, x = b ? /* @__PURE__ */ Symbol.for("react.responder") : 60118, y = b ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
81
- function z(a) {
82
- if ("object" === typeof a && null !== a) {
83
- var u = a.$$typeof;
84
- switch (u) {
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 p:
93
- return a;
87
+ case d:
88
+ case o:
89
+ case a:
90
+ case s:
91
+ case h:
92
+ return c;
94
93
  default:
95
- switch (a = a && a.$$typeof, a) {
96
- case k:
94
+ switch (c = c && c.$$typeof, c) {
95
+ case l:
96
+ case u:
97
+ case b:
98
+ case g:
97
99
  case n:
98
- case t:
99
- case r2:
100
- case h:
101
- return a;
100
+ return c;
102
101
  default:
103
- return u;
102
+ return j;
104
103
  }
105
104
  }
106
- case d:
107
- return u;
108
- }
109
- }
110
- }
111
- function A(a) {
112
- return z(a) === m;
113
- }
114
- reactIs_production_min.AsyncMode = l;
115
- reactIs_production_min.ConcurrentMode = m;
116
- reactIs_production_min.ContextConsumer = k;
117
- reactIs_production_min.ContextProvider = h;
118
- reactIs_production_min.Element = c2;
119
- reactIs_production_min.ForwardRef = n;
120
- reactIs_production_min.Fragment = e;
121
- reactIs_production_min.Lazy = t;
122
- reactIs_production_min.Memo = r2;
123
- reactIs_production_min.Portal = d;
124
- reactIs_production_min.Profiler = g;
125
- reactIs_production_min.StrictMode = f;
126
- reactIs_production_min.Suspense = p;
127
- reactIs_production_min.isAsyncMode = function(a) {
128
- return A(a) || z(a) === l;
129
- };
130
- reactIs_production_min.isConcurrentMode = A;
131
- reactIs_production_min.isContextConsumer = function(a) {
132
- return z(a) === k;
133
- };
134
- reactIs_production_min.isContextProvider = function(a) {
135
- return z(a) === h;
136
- };
137
- reactIs_production_min.isElement = function(a) {
138
- return "object" === typeof a && null !== a && a.$$typeof === c2;
139
- };
140
- reactIs_production_min.isForwardRef = function(a) {
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 reactIs_development = {};
171
- var hasRequiredReactIs_development;
172
- function requireReactIs_development() {
173
- if (hasRequiredReactIs_development) return reactIs_development;
174
- hasRequiredReactIs_development = 1;
175
- if (process.env.NODE_ENV !== "production") {
176
- (function() {
177
- var hasSymbol = typeof Symbol === "function" && Symbol.for;
178
- var REACT_ELEMENT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.element") : 60103;
179
- var REACT_PORTAL_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.portal") : 60106;
180
- var REACT_FRAGMENT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.fragment") : 60107;
181
- var REACT_STRICT_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.strict_mode") : 60108;
182
- var REACT_PROFILER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.profiler") : 60114;
183
- var REACT_PROVIDER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.provider") : 60109;
184
- var REACT_CONTEXT_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.context") : 60110;
185
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.async_mode") : 60111;
186
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.concurrent_mode") : 60111;
187
- var REACT_FORWARD_REF_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.forward_ref") : 60112;
188
- var REACT_SUSPENSE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.suspense") : 60113;
189
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.suspense_list") : 60120;
190
- var REACT_MEMO_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.memo") : 60115;
191
- var REACT_LAZY_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.lazy") : 60116;
192
- var REACT_BLOCK_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.block") : 60121;
193
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.fundamental") : 60117;
194
- var REACT_RESPONDER_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.responder") : 60118;
195
- var REACT_SCOPE_TYPE = hasSymbol ? /* @__PURE__ */ Symbol.for("react.scope") : 60119;
196
- function isValidElementType(type) {
197
- return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
198
- type === REACT_FRAGMENT_TYPE || type === REACT_CONCURRENT_MODE_TYPE || type === REACT_PROFILER_TYPE || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || typeof type === "object" && type !== null && (type.$$typeof === REACT_LAZY_TYPE || type.$$typeof === REACT_MEMO_TYPE || type.$$typeof === REACT_PROVIDER_TYPE || type.$$typeof === REACT_CONTEXT_TYPE || type.$$typeof === REACT_FORWARD_REF_TYPE || type.$$typeof === REACT_FUNDAMENTAL_TYPE || type.$$typeof === REACT_RESPONDER_TYPE || type.$$typeof === REACT_SCOPE_TYPE || type.$$typeof === REACT_BLOCK_TYPE);
199
- }
200
- function typeOf(object) {
201
- if (typeof object === "object" && object !== null) {
202
- var $$typeof = object.$$typeof;
203
- switch ($$typeof) {
204
- case REACT_ELEMENT_TYPE:
205
- var type = object.type;
206
- switch (type) {
207
- case REACT_ASYNC_MODE_TYPE:
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
- function isLazy(object) {
275
- return typeOf(object) === REACT_LAZY_TYPE;
276
- }
277
- function isMemo(object) {
278
- return typeOf(object) === REACT_MEMO_TYPE;
279
- }
280
- function isPortal(object) {
281
- return typeOf(object) === REACT_PORTAL_TYPE;
282
- }
283
- function isProfiler(object) {
284
- return typeOf(object) === REACT_PROFILER_TYPE;
285
- }
286
- function isStrictMode(object) {
287
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
288
- }
289
- function isSuspense(object) {
290
- return typeOf(object) === REACT_SUSPENSE_TYPE;
291
- }
292
- reactIs_development.AsyncMode = AsyncMode;
293
- reactIs_development.ConcurrentMode = ConcurrentMode;
294
- reactIs_development.ContextConsumer = ContextConsumer;
295
- reactIs_development.ContextProvider = ContextProvider;
296
- reactIs_development.Element = Element;
297
- reactIs_development.ForwardRef = ForwardRef;
298
- reactIs_development.Fragment = Fragment2;
299
- reactIs_development.Lazy = Lazy;
300
- reactIs_development.Memo = Memo;
301
- reactIs_development.Portal = Portal;
302
- reactIs_development.Profiler = Profiler;
303
- reactIs_development.StrictMode = StrictMode;
304
- reactIs_development.Suspense = Suspense2;
305
- reactIs_development.isAsyncMode = isAsyncMode;
306
- reactIs_development.isConcurrentMode = isConcurrentMode;
307
- reactIs_development.isContextConsumer = isContextConsumer;
308
- reactIs_development.isContextProvider = isContextProvider;
309
- reactIs_development.isElement = isElement;
310
- reactIs_development.isForwardRef = isForwardRef;
311
- reactIs_development.isFragment = isFragment;
312
- reactIs_development.isLazy = isLazy;
313
- reactIs_development.isMemo = isMemo;
314
- reactIs_development.isPortal = isPortal;
315
- reactIs_development.isProfiler = isProfiler;
316
- reactIs_development.isStrictMode = isStrictMode;
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 hasRequiredReactIs;
325
- function requireReactIs() {
326
- if (hasRequiredReactIs) return reactIs.exports;
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 objectAssign;
336
- var hasRequiredObjectAssign;
337
- function requireObjectAssign() {
338
- if (hasRequiredObjectAssign) return objectAssign;
339
- hasRequiredObjectAssign = 1;
340
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
341
- var hasOwnProperty = Object.prototype.hasOwnProperty;
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 shouldUseNative() {
239
+ function s() {
350
240
  try {
351
- if (!Object.assign) {
352
- return false;
353
- }
354
- var test1 = new String("abc");
355
- test1[5] = "de";
356
- if (Object.getOwnPropertyNames(test1)[0] === "5") {
357
- return false;
358
- }
359
- var test2 = {};
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 (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
374
- return false;
375
- }
376
- return true;
377
- } catch (err) {
378
- return false;
379
- }
380
- }
381
- objectAssign = shouldUseNative() ? Object.assign : function(target, source) {
382
- var from;
383
- var to = toObject(target);
384
- var symbols;
385
- for (var s = 1; s < arguments.length; s++) {
386
- from = Object(arguments[s]);
387
- for (var key in from) {
388
- if (hasOwnProperty.call(from, key)) {
389
- to[key] = from[key];
390
- }
391
- }
392
- if (getOwnPropertySymbols) {
393
- symbols = getOwnPropertySymbols(from);
394
- for (var i = 0; i < symbols.length; i++) {
395
- if (propIsEnumerable.call(from, symbols[i])) {
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 ReactPropTypesSecret_1;
406
- var hasRequiredReactPropTypesSecret;
407
- function requireReactPropTypesSecret() {
408
- if (hasRequiredReactPropTypesSecret) return ReactPropTypesSecret_1;
409
- hasRequiredReactPropTypesSecret = 1;
410
- var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
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 has;
415
- var hasRequiredHas;
416
- function requireHas() {
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 checkPropTypes_1;
423
- var hasRequiredCheckPropTypes;
424
- function requireCheckPropTypes() {
425
- if (hasRequiredCheckPropTypes) return checkPropTypes_1;
426
- hasRequiredCheckPropTypes = 1;
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 ReactPropTypesSecret = /* @__PURE__ */ requireReactPropTypesSecret();
431
- var loggedTypeFailures = {};
432
- var has2 = /* @__PURE__ */ requireHas();
433
- printWarning = function(text) {
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(message);
440
- } catch (x) {
298
+ throw new Error(n);
299
+ } catch {
441
300
  }
442
301
  };
443
302
  }
444
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
303
+ function s(a, n, l, f, d) {
445
304
  if (process.env.NODE_ENV !== "production") {
446
- for (var typeSpecName in typeSpecs) {
447
- if (has2(typeSpecs, typeSpecName)) {
448
- var error;
305
+ for (var u in a)
306
+ if (o(a, u)) {
307
+ var h;
449
308
  try {
450
- if (typeof typeSpecs[typeSpecName] !== "function") {
451
- var err = Error(
452
- (componentName || "React class") + ": " + location + " type `" + typeSpecName + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + typeof typeSpecs[typeSpecName] + "`.This often happens because of typos such as `PropTypes.function` instead of `PropTypes.func`."
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
- err.name = "Invariant Violation";
455
- throw err;
313
+ throw v.name = "Invariant Violation", v;
456
314
  }
457
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
458
- } catch (ex) {
459
- error = ex;
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 (error instanceof Error && !(error.message in loggedTypeFailures)) {
467
- loggedTypeFailures[error.message] = true;
468
- var stack = getStack ? getStack() : "";
469
- printWarning(
470
- "Failed " + location + " type: " + error.message + (stack != null ? stack : "")
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
- checkPropTypes.resetWarningCache = function() {
478
- if (process.env.NODE_ENV !== "production") {
479
- loggedTypeFailures = {};
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 factoryWithTypeCheckers;
486
- var hasRequiredFactoryWithTypeCheckers;
487
- function requireFactoryWithTypeCheckers() {
488
- if (hasRequiredFactoryWithTypeCheckers) return factoryWithTypeCheckers;
489
- hasRequiredFactoryWithTypeCheckers = 1;
490
- var ReactIs = requireReactIs();
491
- var assign = requireObjectAssign();
492
- var ReactPropTypesSecret = /* @__PURE__ */ requireReactPropTypesSecret();
493
- var has2 = /* @__PURE__ */ requireHas();
494
- var checkPropTypes = /* @__PURE__ */ requireCheckPropTypes();
495
- var printWarning = function() {
496
- };
497
- if (process.env.NODE_ENV !== "production") {
498
- printWarning = function(text) {
499
- var message = "Warning: " + text;
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
- factoryWithTypeCheckers = function(isValidElement, throwOnDirectAccess) {
513
- var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
514
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
515
- function getIteratorFn(maybeIterable) {
516
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
517
- if (typeof iteratorFn === "function") {
518
- return iteratorFn;
519
- }
520
- }
521
- var ANONYMOUS = "<<anonymous>>";
522
- var ReactPropTypes = {
523
- array: createPrimitiveTypeChecker("array"),
524
- bigint: createPrimitiveTypeChecker("bigint"),
525
- bool: createPrimitiveTypeChecker("boolean"),
526
- func: createPrimitiveTypeChecker("function"),
527
- number: createPrimitiveTypeChecker("number"),
528
- object: createPrimitiveTypeChecker("object"),
529
- string: createPrimitiveTypeChecker("string"),
530
- symbol: createPrimitiveTypeChecker("symbol"),
531
- any: createAnyTypeChecker(),
532
- arrayOf: createArrayOfTypeChecker,
533
- element: createElementTypeChecker(),
534
- elementType: createElementTypeTypeChecker(),
535
- instanceOf: createInstanceTypeChecker,
536
- node: createNodeChecker(),
537
- objectOf: createObjectOfTypeChecker,
538
- oneOf: createEnumTypeChecker,
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 is(x, y) {
544
- if (x === y) {
545
- return x !== 0 || 1 / x === 1 / y;
546
- } else {
547
- return x !== x && y !== y;
548
- }
549
- }
550
- function PropTypeError(message, data) {
551
- this.message = message;
552
- this.data = data && typeof data === "object" ? data : {};
553
- this.stack = "";
554
- }
555
- PropTypeError.prototype = Error.prototype;
556
- function createChainableTypeChecker(validate) {
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
- err.name = "Invariant Violation";
570
- throw err;
571
- } else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") {
572
- var cacheKey = componentName + ":" + propName;
573
- if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
574
- manualPropTypeWarningCount < 3) {
575
- printWarning(
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
- if (props[propName] == null) {
584
- if (isRequired) {
585
- if (props[propName] === null) {
586
- return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
587
- }
588
- return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
589
- }
590
- return null;
591
- } else {
592
- return validate(props, propName, componentName, location, propFullName);
593
- }
594
- }
595
- var chainedCheckType = checkType.bind(null, false);
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 createChainableTypeChecker(validate);
422
+ return E(y);
613
423
  }
614
- function createAnyTypeChecker() {
615
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
424
+ function A() {
425
+ return E(n);
616
426
  }
617
- function createArrayOfTypeChecker(typeChecker) {
618
- function validate(props, propName, componentName, location, propFullName) {
619
- if (typeof typeChecker !== "function") {
620
- return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
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 propValue = props[propName];
623
- if (!Array.isArray(propValue)) {
624
- var propType = getPropType(propValue);
625
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
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 createChainableTypeChecker(validate);
636
- }
637
- function createElementTypeChecker() {
638
- function validate(props, propName, componentName, location, propFullName) {
639
- var propValue = props[propName];
640
- if (!isValidElement(propValue)) {
641
- var propType = getPropType(propValue);
642
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
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 createChainableTypeChecker(validate);
647
- }
648
- function createElementTypeTypeChecker() {
649
- function validate(props, propName, componentName, location, propFullName) {
650
- var propValue = props[propName];
651
- if (!ReactIs.isValidElementType(propValue)) {
652
- var propType = getPropType(propValue);
653
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
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 createChainableTypeChecker(validate);
658
- }
659
- function createInstanceTypeChecker(expectedClass) {
660
- function validate(props, propName, componentName, location, propFullName) {
661
- if (!(props[propName] instanceof expectedClass)) {
662
- var expectedClassName = expectedClass.name || ANONYMOUS;
663
- var actualClassName = getClassName(props[propName]);
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 createChainableTypeChecker(validate);
669
- }
670
- function createEnumTypeChecker(expectedValues) {
671
- if (!Array.isArray(expectedValues)) {
672
- if (process.env.NODE_ENV !== "production") {
673
- if (arguments.length > 1) {
674
- printWarning(
675
- "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])."
676
- );
677
- } else {
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
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
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 PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
698
- }
699
- return createChainableTypeChecker(validate);
700
- }
701
- function createObjectOfTypeChecker(typeChecker) {
702
- function validate(props, propName, componentName, location, propFullName) {
703
- if (typeof typeChecker !== "function") {
704
- return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
705
- }
706
- var propValue = props[propName];
707
- var propType = getPropType(propValue);
708
- if (propType !== "object") {
709
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
710
- }
711
- for (var key in propValue) {
712
- if (has2(propValue, key)) {
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 createChainableTypeChecker(validate);
722
- }
723
- function createUnionTypeChecker(arrayOfTypeCheckers) {
724
- if (!Array.isArray(arrayOfTypeCheckers)) {
725
- process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
726
- return emptyFunctionThatReturnsNull;
727
- }
728
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
729
- var checker = arrayOfTypeCheckers[i];
730
- if (typeof checker !== "function") {
731
- printWarning(
732
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
733
- );
734
- return emptyFunctionThatReturnsNull;
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 expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
750
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
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 createChainableTypeChecker(validate);
531
+ return E(O);
753
532
  }
754
- function createNodeChecker() {
755
- function validate(props, propName, componentName, location, propFullName) {
756
- if (!isNode(props[propName])) {
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 createChainableTypeChecker(validate);
537
+ return E(i);
762
538
  }
763
- function invalidValidatorError(componentName, location, propFullName, key, type) {
764
- return new PropTypeError(
765
- (componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."
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 createShapeTypeChecker(shapeTypes) {
769
- function validate(props, propName, componentName, location, propFullName) {
770
- var propValue = props[propName];
771
- var propType = getPropType(propValue);
772
- if (propType !== "object") {
773
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
774
- }
775
- for (var key in shapeTypes) {
776
- var checker = shapeTypes[key];
777
- if (typeof checker !== "function") {
778
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
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 createChainableTypeChecker(validate);
788
- }
789
- function createStrictShapeTypeChecker(shapeTypes) {
790
- function validate(props, propName, componentName, location, propFullName) {
791
- var propValue = props[propName];
792
- var propType = getPropType(propValue);
793
- if (propType !== "object") {
794
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
795
- }
796
- var allKeys = assign({}, props[propName], shapeTypes);
797
- for (var key in allKeys) {
798
- var checker = shapeTypes[key];
799
- if (has2(shapeTypes, key) && typeof checker !== "function") {
800
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
801
- }
802
- if (!checker) {
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
- var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
808
- if (error) {
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 createChainableTypeChecker(validate);
582
+ return E(y);
815
583
  }
816
- function isNode(propValue) {
817
- switch (typeof propValue) {
584
+ function W(i) {
585
+ switch (typeof i) {
818
586
  case "number":
819
587
  case "string":
820
588
  case "undefined":
821
- return true;
589
+ return !0;
822
590
  case "boolean":
823
- return !propValue;
591
+ return !i;
824
592
  case "object":
825
- if (Array.isArray(propValue)) {
826
- return propValue.every(isNode);
827
- }
828
- if (propValue === null || isValidElement(propValue)) {
829
- return true;
830
- }
831
- var iteratorFn = getIteratorFn(propValue);
832
- if (iteratorFn) {
833
- var iterator = iteratorFn.call(propValue);
834
- var step;
835
- if (iteratorFn !== propValue.entries) {
836
- while (!(step = iterator.next()).done) {
837
- if (!isNode(step.value)) {
838
- return false;
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
- } else {
842
- while (!(step = iterator.next()).done) {
843
- var entry = step.value;
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 false;
614
+ return !1;
857
615
  }
858
616
  }
859
- function isSymbol(propType, propValue) {
860
- if (propType === "symbol") {
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 getPropType(propValue) {
875
- var propType = typeof propValue;
876
- if (Array.isArray(propValue)) {
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 getPreciseType(propValue) {
888
- if (typeof propValue === "undefined" || propValue === null) {
889
- return "" + propValue;
890
- }
891
- var propType = getPropType(propValue);
892
- if (propType === "object") {
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
- } else if (propValue instanceof RegExp) {
631
+ if (i instanceof RegExp)
896
632
  return "regexp";
897
- }
898
633
  }
899
- return propType;
634
+ return y;
900
635
  }
901
- function getPostfixForTypeWarning(value) {
902
- var type = getPreciseType(value);
903
- switch (type) {
636
+ function te(i) {
637
+ var y = H(i);
638
+ switch (y) {
904
639
  case "array":
905
640
  case "object":
906
- return "an " + type;
641
+ return "an " + y;
907
642
  case "boolean":
908
643
  case "date":
909
644
  case "regexp":
910
- return "a " + type;
645
+ return "a " + y;
911
646
  default:
912
- return type;
647
+ return y;
913
648
  }
914
649
  }
915
- function getClassName(propValue) {
916
- if (!propValue.constructor || !propValue.constructor.name) {
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
- ReactPropTypes.checkPropTypes = checkPropTypes;
922
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
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 factoryWithThrowingShims;
929
- var hasRequiredFactoryWithThrowingShims;
930
- function requireFactoryWithThrowingShims() {
931
- if (hasRequiredFactoryWithThrowingShims) return factoryWithThrowingShims;
932
- hasRequiredFactoryWithThrowingShims = 1;
933
- var ReactPropTypesSecret = /* @__PURE__ */ requireReactPropTypesSecret();
934
- function emptyFunction() {
935
- }
936
- function emptyFunctionWithReset() {
937
- }
938
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
939
- factoryWithThrowingShims = function() {
940
- function shim(props, propName, componentName, location, propFullName, secret) {
941
- if (secret === ReactPropTypesSecret) {
942
- return;
943
- }
944
- var err = new Error(
945
- "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"
946
- );
947
- err.name = "Invariant Violation";
948
- throw err;
949
- }
950
- shim.isRequired = shim;
951
- function getShim() {
952
- return shim;
953
- }
954
- var ReactPropTypes = {
955
- array: shim,
956
- bigint: shim,
957
- bool: shim,
958
- func: shim,
959
- number: shim,
960
- object: shim,
961
- string: shim,
962
- symbol: shim,
963
- any: shim,
964
- arrayOf: getShim,
965
- element: shim,
966
- elementType: shim,
967
- instanceOf: getShim,
968
- node: shim,
969
- objectOf: getShim,
970
- oneOf: getShim,
971
- oneOfType: getShim,
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
- ReactPropTypes.PropTypes = ReactPropTypes;
978
- return ReactPropTypes;
979
- };
980
- return factoryWithThrowingShims;
701
+ return a.PropTypes = a, a;
702
+ }, et;
981
703
  }
982
- var hasRequiredPropTypes;
983
- function requirePropTypes() {
984
- if (hasRequiredPropTypes) return propTypes.exports;
985
- hasRequiredPropTypes = 1;
986
- if (process.env.NODE_ENV !== "production") {
987
- var ReactIs = requireReactIs();
988
- var throwOnDirectAccess = true;
989
- propTypes.exports = /* @__PURE__ */ requireFactoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
990
- } else {
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 propTypesExports = /* @__PURE__ */ requirePropTypes();
996
- const _excluded = ["localeText"];
997
- const PickerAdapterContext = /* @__PURE__ */ React.createContext(null);
998
- if (process.env.NODE_ENV !== "production") PickerAdapterContext.displayName = "PickerAdapterContext";
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: inLocaleText
1002
- } = inProps, otherInProps = _objectWithoutPropertiesLoose(inProps, _excluded);
1003
- const {
1004
- adapter: parentAdapter,
1005
- localeText: parentLocaleText
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: otherInProps,
729
+ props: o,
1014
730
  name: "MuiLocalizationProvider"
1015
- });
1016
- const {
1017
- children,
1018
- dateAdapter: DateAdapter,
1019
- dateFormats,
1020
- dateLibInstance,
1021
- adapterLocale,
1022
- localeText: themeLocaleText
1023
- } = props;
1024
- const localeText = React.useMemo(() => _extends({}, themeLocaleText, parentLocaleText, inLocaleText), [themeLocaleText, parentLocaleText, inLocaleText]);
1025
- const adapter = React.useMemo(() => {
1026
- if (!DateAdapter) {
1027
- if (parentAdapter) {
1028
- return parentAdapter;
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 (!dateAdapter.isMUIAdapter) {
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
- return dateAdapter;
1042
- }, [DateAdapter, adapterLocale, dateFormats, dateLibInstance, parentAdapter]);
1043
- const defaultDates = React.useMemo(() => {
1044
- if (!adapter) {
1045
- return null;
1046
- }
1047
- return {
1048
- minDate: adapter.date("1900-01-01T00:00:00.000"),
1049
- maxDate: adapter.date("2099-12-31T00:00:00.000")
1050
- };
1051
- }, [adapter]);
1052
- const contextValue = React.useMemo(() => {
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
- if (process.env.NODE_ENV !== "production") LocalizationProvider.displayName = "LocalizationProvider";
1066
- process.env.NODE_ENV !== "production" ? LocalizationProvider.propTypes = {
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: propTypesExports.any,
1075
- children: propTypesExports.node,
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: propTypesExports.func,
779
+ dateAdapter: z.func,
1081
780
  /**
1082
781
  * Formats that are used for any child pickers
1083
782
  */
1084
- dateFormats: propTypesExports.shape({
1085
- dayOfMonth: propTypesExports.string,
1086
- dayOfMonthFull: propTypesExports.string,
1087
- fullDate: propTypesExports.string,
1088
- fullTime12h: propTypesExports.string,
1089
- fullTime24h: propTypesExports.string,
1090
- hours12h: propTypesExports.string,
1091
- hours24h: propTypesExports.string,
1092
- keyboardDate: propTypesExports.string,
1093
- keyboardDateTime12h: propTypesExports.string,
1094
- keyboardDateTime24h: propTypesExports.string,
1095
- meridiem: propTypesExports.string,
1096
- minutes: propTypesExports.string,
1097
- month: propTypesExports.string,
1098
- monthShort: propTypesExports.string,
1099
- normalDate: propTypesExports.string,
1100
- normalDateWithWeekday: propTypesExports.string,
1101
- seconds: propTypesExports.string,
1102
- shortDate: propTypesExports.string,
1103
- weekday: propTypesExports.string,
1104
- weekdayShort: propTypesExports.string,
1105
- year: propTypesExports.string
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: propTypesExports.any,
812
+ dateLibInstance: z.any,
1114
813
  /**
1115
814
  * Locale for components texts
1116
815
  */
1117
- localeText: propTypesExports.object
1118
- } : void 0;
1119
- const useEnhancedEffect = typeof window !== "undefined" ? React.useLayoutEffect : React.useEffect;
1120
- function useEventCallback(fn) {
1121
- const ref = React.useRef(fn);
1122
- useEnhancedEffect(() => {
1123
- ref.current = fn;
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, ref.current)(...args)
825
+ (0, e.current)(...r)
1128
826
  )).current;
1129
827
  }
1130
- const warnedOnceCache = /* @__PURE__ */ new Set();
1131
- function warnOnce(message, gravity = "warning") {
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
- const cleanMessage = Array.isArray(message) ? message.join("\n") : message;
1136
- if (!warnedOnceCache.has(cleanMessage)) {
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
- dayjs.extend(localizedFormatPlugin);
1146
- dayjs.extend(weekOfYearPlugin);
1147
- dayjs.extend(isBetweenPlugin);
1148
- dayjs.extend(advancedFormatPlugin);
1149
- const formatTokenMap = {
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
- const MISSING_UTC_PLUGIN = ["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("\n");
1256
- const MISSING_TIMEZONE_PLUGIN = ["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("\n");
1257
- class AdapterDayjs {
1258
- isMUIAdapter = true;
1259
- isTimezoneCompatible = true;
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 = /* @__PURE__ */ (() => formatTokenMap)();
955
+ formatTokenMap = an;
1266
956
  constructor({
1267
- locale,
1268
- formats
957
+ locale: e,
958
+ formats: r
1269
959
  } = {}) {
1270
- this.locale = 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 = (value) => {
1275
- const expectedLocale = this.getCurrentLocaleCode();
1276
- if (expectedLocale === value.locale()) {
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 dayjs.utc !== "undefined";
1282
- hasTimezonePlugin = () => typeof dayjs.tz !== "undefined";
1283
- isSame = (value, comparing, comparisonTemplate) => {
1284
- const comparingInValueTimezone = this.setTimezone(comparing, this.getTimezone(value));
1285
- return value.format(comparisonTemplate) === comparingInValueTimezone.format(comparisonTemplate);
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 = (timezone) => {
1291
- switch (timezone) {
1292
- case "default": {
1293
- return void 0;
1294
- }
1295
- case "system": {
1296
- return dayjs.tz.guess();
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 = (value) => {
1304
- let date;
985
+ createSystemDate = (e) => {
986
+ let r;
1305
987
  if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
1306
- const timezone = dayjs.tz.guess();
1307
- if (timezone === "UTC") {
1308
- date = dayjs(value);
1309
- } else {
1310
- date = dayjs.tz(value, timezone);
1311
- }
1312
- } else {
1313
- date = dayjs(value);
1314
- }
1315
- return this.setLocaleToValue(date);
1316
- };
1317
- createUTCDate = (value) => {
1318
- if (!this.hasUTCPlugin()) {
1319
- throw new Error(MISSING_UTC_PLUGIN);
1320
- }
1321
- return this.setLocaleToValue(dayjs.utc(value));
1322
- };
1323
- createTZDate = (value, timezone) => {
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 locales = dayjs.Ls;
1335
- const locale = this.locale || "en";
1336
- let localeObject = locales[locale];
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 = (value) => {
1352
- if (!this.hasTimezonePlugin()) {
1353
- return value;
1354
- }
1355
- const timezone = this.getTimezone(value);
1356
- if (timezone !== "UTC") {
1357
- const fixedValue = value.tz(this.cleanTimezone(timezone), true);
1358
- if (fixedValue.$offset === (value.$offset ?? 0)) {
1359
- return value;
1360
- }
1361
- value.$offset = fixedValue.$offset;
1362
- }
1363
- return value;
1364
- };
1365
- date = (value, timezone = "default") => {
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 zone = value.$x?.$timezone;
1381
- if (zone) {
1382
- return zone;
1383
- }
1384
- }
1385
- if (this.hasUTCPlugin() && value.isUTC()) {
1386
- return "UTC";
1387
- }
1388
- return "system";
1389
- };
1390
- setTimezone = (value, timezone) => {
1391
- if (this.getTimezone(value) === timezone) {
1392
- return value;
1393
- }
1394
- if (timezone === "UTC") {
1395
- if (!this.hasUTCPlugin()) {
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 (timezone === "default") {
1405
- return value;
1406
- }
1407
- throw new Error(MISSING_TIMEZONE_PLUGIN);
1408
- }
1409
- return this.setLocaleToValue(dayjs.tz(value, this.cleanTimezone(timezone)));
1410
- };
1411
- toJsDate = (value) => {
1412
- return value.toDate();
1413
- };
1414
- parse = (value, format) => {
1415
- if (value === "") {
1416
- return null;
1417
- }
1418
- return dayjs(value, format, this.locale, true);
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 = (value) => {
1435
- if (value == null) {
1436
- return false;
1437
- }
1438
- return value.isValid();
1439
- };
1440
- format = (value, formatKey) => {
1441
- return this.formatByString(value, this.formats[formatKey]);
1442
- };
1443
- formatByString = (value, formatString) => {
1444
- return this.setLocaleToValue(value).format(formatString);
1445
- };
1446
- formatNumber = (numberToFormat) => {
1447
- return numberToFormat;
1448
- };
1449
- isEqual = (value, comparing) => {
1450
- if (value === null && comparing === null) {
1451
- return true;
1452
- }
1453
- if (value === null || comparing === null) {
1454
- return false;
1455
- }
1456
- return value.toDate().getTime() === comparing.toDate().getTime();
1457
- };
1458
- isSameYear = (value, comparing) => {
1459
- return this.isSame(value, comparing, "YYYY");
1460
- };
1461
- isSameMonth = (value, comparing) => {
1462
- return this.isSame(value, comparing, "YYYY-MM");
1463
- };
1464
- isSameDay = (value, comparing) => {
1465
- return this.isSame(value, comparing, "YYYY-MM-DD");
1466
- };
1467
- isSameHour = (value, comparing) => {
1468
- return value.isSame(comparing, "hour");
1469
- };
1470
- isAfter = (value, comparing) => {
1471
- return value > comparing;
1472
- };
1473
- isAfterYear = (value, comparing) => {
1474
- if (!this.hasUTCPlugin()) {
1475
- return value.isAfter(comparing, "year");
1476
- }
1477
- return !this.isSameYear(value, comparing) && value.utc() > comparing.utc();
1478
- };
1479
- isAfterDay = (value, comparing) => {
1480
- if (!this.hasUTCPlugin()) {
1481
- return value.isAfter(comparing, "day");
1482
- }
1483
- return !this.isSameDay(value, comparing) && value.utc() > comparing.utc();
1484
- };
1485
- isBefore = (value, comparing) => {
1486
- return value < comparing;
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 !this.isSameYear(value, comparing) && value.utc() < comparing.utc();
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
- getDayOfWeek(value) {
1612
- return value.day() + 1;
1124
+ getWeekNumber = (e) => e.week();
1125
+ getDayOfWeek(e) {
1126
+ return e.day() + 1;
1613
1127
  }
1614
- getYearRange = ([start, end]) => {
1615
- const startDate = this.startOfYear(start);
1616
- const endDate = this.endOfYear(end);
1617
- const years = [];
1618
- let current = startDate;
1619
- while (this.isBefore(current, endDate)) {
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 DialogsProvider({
1627
- children
1136
+ function ln({
1137
+ children: t
1628
1138
  }) {
1629
- const [stack, setStack] = useState([]);
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
- } = options;
1638
- let resolve;
1639
- const promise = new Promise((resolveImpl) => {
1640
- resolve = resolveImpl;
1641
- });
1642
- const key = `${keyPrefix}-${nextId.current}`;
1643
- nextId.current += 1;
1644
- const newEntry = {
1645
- key,
1646
- open: true,
1647
- promise,
1648
- Component,
1649
- payload,
1650
- onClose,
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
- dialogMetadata.current.set(promise, newEntry);
1654
- setStack((previousStack) => [...previousStack, newEntry]);
1655
- return promise;
1656
- });
1657
- const removeDialogFromStack = (dialog) => {
1658
- setStack((previousStack_0) => previousStack_0.filter((entry) => entry.promise !== dialog));
1659
- dialogMetadata.current.delete(dialog);
1660
- };
1661
- const closeDialogUi = useEventCallback(function closeDialogUi2(dialog_0) {
1662
- setStack((previousStack_1) => previousStack_1.map((entry_0) => entry_0.promise === dialog_0 ? {
1663
- ...entry_0,
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 entryToClose.onClose(result);
1171
+ await g.onClose(v);
1675
1172
  } finally {
1676
- entryToClose.resolve(result);
1677
- closeDialogUi(dialog_1);
1173
+ g.resolve(v), f(h);
1678
1174
  }
1679
- return dialog_1;
1175
+ return h;
1680
1176
  });
1681
- return /* @__PURE__ */ jsxs(DialogsContext.Provider, { value: {
1682
- open: requestDialog,
1683
- close: closeDialog
1177
+ return /* @__PURE__ */ q(lr.Provider, { value: {
1178
+ open: n,
1179
+ close: d
1684
1180
  }, children: [
1685
- children,
1686
- stack.map(({
1687
- key: key_0,
1688
- open,
1689
- Component: Component_0,
1690
- payload: payload_0,
1691
- promise: promise_0
1692
- }) => /* @__PURE__ */ jsx(Component_0, { payload: payload_0, open, onClose: async (result_0) => {
1693
- await closeDialog(promise_0, result_0);
1694
- } }, key_0))
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 AppTitle = () => {
1698
- const $ = c(1);
1699
- let t0;
1700
- if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1701
- t0 = /* @__PURE__ */ jsxs(Stack, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
1702
- /* @__PURE__ */ jsx("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
1703
- /* @__PURE__ */ jsx(Typography, { variant: "h6", children: clientEnv.VITE_APP_TITLE }),
1704
- false
1705
- ] });
1706
- $[0] = t0;
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: (theme.vars ?? theme).palette.primary.dark
1207
+ color: (t.vars ?? t).palette.primary.dark
1720
1208
  },
1721
1209
  "& .MuiAvatar-root": {
1722
- backgroundColor: (theme.vars ?? theme).palette.primary.dark
1210
+ backgroundColor: (t.vars ?? t).palette.primary.dark
1723
1211
  },
1724
1212
  "& .MuiTouchRipple-child": {
1725
- backgroundColor: (theme.vars ?? theme).palette.primary.dark
1213
+ backgroundColor: (t.vars ?? t).palette.primary.dark
1726
1214
  }
1727
1215
  },
1728
1216
  "& .MuiSvgIcon-root": {
1729
- color: (theme.vars ?? theme).palette.action.active
1217
+ color: (t.vars ?? t).palette.action.active
1730
1218
  },
1731
1219
  "& .MuiAvatar-root": {
1732
- backgroundColor: (theme.vars ?? theme).palette.action.active
1220
+ backgroundColor: (t.vars ?? t).palette.action.active
1733
1221
  }
1734
- }));
1735
- const StyledRouterButton = styled(RouterListItemButton)(({
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: (theme.vars ?? theme).palette.primary.dark
1228
+ color: (t.vars ?? t).palette.primary.dark
1742
1229
  },
1743
1230
  "& .MuiAvatar-root": {
1744
- backgroundColor: (theme.vars ?? theme).palette.primary.dark
1231
+ backgroundColor: (t.vars ?? t).palette.primary.dark
1745
1232
  },
1746
1233
  "& .MuiTouchRipple-child": {
1747
- backgroundColor: (theme.vars ?? theme).palette.primary.dark
1234
+ backgroundColor: (t.vars ?? t).palette.primary.dark
1748
1235
  }
1749
1236
  },
1750
1237
  "& .MuiSvgIcon-root": {
1751
- color: (theme.vars ?? theme).palette.action.active
1238
+ color: (t.vars ?? t).palette.action.active
1752
1239
  },
1753
1240
  "& .MuiAvatar-root": {
1754
- backgroundColor: (theme.vars ?? theme).palette.action.active
1755
- }
1756
- }));
1757
- const IconOrAvatar = (t0) => {
1758
- const $ = c(17);
1759
- const {
1760
- item,
1761
- collapsed
1762
- } = t0;
1763
- if (item.icon || collapsed) {
1764
- let t1;
1765
- if ($[0] !== collapsed) {
1766
- t1 = collapsed ? {
1767
- position: "absolute",
1768
- left: "50%",
1769
- top: "calc(50% - 6px)",
1770
- transform: "translate(-50%, -50%)"
1771
- } : {};
1772
- $[0] = collapsed;
1773
- $[1] = t1;
1774
- } else {
1775
- t1 = $[1];
1776
- }
1777
- let t2;
1778
- if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1779
- t2 = {
1780
- display: "flex",
1781
- alignItems: "center",
1782
- justifyContent: "center",
1783
- minWidth: ICON_SIZE
1784
- };
1785
- $[2] = t2;
1786
- } else {
1787
- t2 = $[2];
1788
- }
1789
- const t3 = item.icon ?? null;
1790
- let t4;
1791
- if ($[3] !== collapsed || $[4] !== item.icon || $[5] !== item.title) {
1792
- t4 = !item.icon && collapsed ? /* @__PURE__ */ jsx(Avatar, { sx: {
1793
- width: ICON_SIZE - 7,
1794
- height: ICON_SIZE - 7,
1795
- fontSize: 12
1796
- }, children: item.title }) : null;
1797
- $[3] = collapsed;
1798
- $[4] = item.icon;
1799
- $[5] = item.title;
1800
- $[6] = t4;
1801
- } else {
1802
- t4 = $[6];
1803
- }
1804
- let t5;
1805
- if ($[7] !== t3 || $[8] !== t4) {
1806
- t5 = /* @__PURE__ */ jsxs(ListItemIcon, { sx: t2, children: [
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 MiniPopover = (t0) => {
1855
- const $ = c(10);
1856
- const {
1857
- open,
1858
- anchorEl,
1859
- children
1860
- } = t0;
1861
- let t1;
1862
- if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1863
- t1 = {
1864
- name: "offset",
1865
- options: {
1866
- offset: [6, 0]
1867
- }
1868
- };
1869
- $[0] = t1;
1870
- } else {
1871
- t1 = $[0];
1872
- }
1873
- let t2;
1874
- if ($[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1875
- t2 = {
1876
- name: "preventOverflow",
1877
- options: {
1878
- padding: 8
1879
- }
1880
- };
1881
- $[1] = t2;
1882
- } else {
1883
- t2 = $[1];
1884
- }
1885
- let t3;
1886
- if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1887
- t3 = [t1, t2, {
1888
- name: "flip",
1889
- options: {
1890
- fallbackPlacements: ["right-end", "left-start"]
1891
- }
1892
- }];
1893
- $[2] = t3;
1894
- } else {
1895
- t3 = $[2];
1896
- }
1897
- let t4;
1898
- if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
1899
- t4 = {
1900
- pt: 0.5,
1901
- pb: 0.5,
1902
- maxHeight: "min(calc(100vh - 100px), 560px)",
1903
- overflowY: "auto",
1904
- overscrollBehavior: "contain"
1905
- };
1906
- $[3] = t4;
1907
- } else {
1908
- t4 = $[3];
1909
- }
1910
- let t5;
1911
- if ($[4] !== children) {
1912
- t5 = /* @__PURE__ */ jsx(MuiPaper, { sx: t4, children });
1913
- $[4] = children;
1914
- $[5] = t5;
1915
- } else {
1916
- t5 = $[5];
1917
- }
1918
- let t6;
1919
- if ($[6] !== anchorEl || $[7] !== open || $[8] !== t5) {
1920
- t6 = /* @__PURE__ */ jsx(MuiPopper, { open, anchorEl, placement: "right-start", modifiers: t3, children: t5 });
1921
- $[6] = anchorEl;
1922
- $[7] = open;
1923
- $[8] = t5;
1924
- $[9] = t6;
1925
- } else {
1926
- t6 = $[9];
1927
- }
1928
- return t6;
1929
- };
1930
- const NavigationListItem = (t0) => {
1931
- const $ = c(57);
1932
- const {
1933
- item,
1934
- isOpen,
1935
- selected,
1936
- disabled,
1937
- collapsed,
1938
- isSidebarFullyExpanded: t1,
1939
- isSidebarFullyCollapsed,
1940
- onClick,
1941
- renderNested,
1942
- onClose
1943
- } = t0;
1944
- const isSidebarFullyExpanded = t1 === void 0 ? true : t1;
1945
- const [hoveredPopoverItem, setHoveredPopoverItem] = useState(null);
1946
- const [anchorElement, setAnchorElement] = useState(null);
1947
- let t2;
1948
- if ($[0] !== collapsed || $[1] !== isOpen || $[2] !== isSidebarFullyCollapsed || $[3] !== isSidebarFullyExpanded || $[4] !== item.children) {
1949
- t2 = () => {
1950
- if (collapsed && isSidebarFullyCollapsed && item.children) {
1951
- return {
1952
- fontSize: 18,
1953
- position: "absolute",
1954
- top: "41.5%",
1955
- right: "2px",
1956
- transform: "translateY(-50%) rotate(-90deg)"
1957
- };
1958
- }
1959
- if (!collapsed && isSidebarFullyExpanded && item.children) {
1960
- return {
1961
- ml: 0.5,
1962
- transform: `rotate(${isOpen ? 0 : -90}deg)`
1963
- };
1964
- }
1965
- return {
1966
- display: "none"
1967
- };
1968
- };
1969
- $[0] = collapsed;
1970
- $[1] = isOpen;
1971
- $[2] = isSidebarFullyCollapsed;
1972
- $[3] = isSidebarFullyExpanded;
1973
- $[4] = item.children;
1974
- $[5] = t2;
1975
- } else {
1976
- t2 = $[5];
1977
- }
1978
- const chevronSx = t2;
1979
- const shouldJustExpand = item.children && !collapsed;
1980
- const t3 = collapsed ? 60 : 48;
1981
- let t4;
1982
- if ($[6] !== t3) {
1983
- t4 = {
1984
- px: 1.4,
1985
- height: t3
1986
- };
1987
- $[6] = t3;
1988
- $[7] = t4;
1989
- } else {
1990
- t4 = $[7];
1991
- }
1992
- let t5;
1993
- if ($[8] !== disabled || $[9] !== selected || $[10] !== t4) {
1994
- t5 = {
1995
- selected,
1996
- disabled,
1997
- sx: t4
1998
- };
1999
- $[8] = disabled;
2000
- $[9] = selected;
2001
- $[10] = t4;
2002
- $[11] = t5;
2003
- } else {
2004
- t5 = $[11];
2005
- }
2006
- const buttonProps = t5;
2007
- let t6;
2008
- if ($[12] !== collapsed || $[13] !== item) {
2009
- t6 = /* @__PURE__ */ jsx(IconOrAvatar, { item, collapsed });
2010
- $[12] = collapsed;
2011
- $[13] = item;
2012
- $[14] = t6;
2013
- } else {
2014
- t6 = $[14];
2015
- }
2016
- let t7;
2017
- if ($[15] !== collapsed || $[16] !== item.title) {
2018
- t7 = !collapsed && /* @__PURE__ */ jsx(ListItemText, { primary: item.title, slotProps: {
2019
- primary: {
2020
- noWrap: true,
2021
- title: item.title
2022
- }
2023
- }, sx: {
2024
- ml: 1.2,
2025
- flex: 1,
2026
- minWidth: 0,
2027
- "& .MuiTypography-root": {
2028
- whiteSpace: "nowrap",
2029
- overflow: "hidden",
2030
- textOverflow: "ellipsis"
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: collapsed ? 0 : 40,
1476
+ height: s ? 0 : 40,
2258
1477
  px: 2,
2259
- minWidth: expandedWidth,
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: navItem.title }, `subheader-${depth}-${index}`);
2267
- }
2268
- if (isDivider(navItem)) {
2269
- const nextItem = filteredNavigation[index + 1];
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: isHeader(nextItem) && !collapsed ? 0 : 1
2274
- } }) }, `divider-${depth}-${index}`);
1491
+ mb: it(i) && !s ? 0 : 1
1492
+ } }) }, `divider-${g}-${H}`);
2275
1493
  }
2276
- if (!isPageItem(navItem)) {
1494
+ if (!yn(R))
2277
1495
  return null;
2278
- }
2279
- const key_0 = `item-${depth}-${index}`;
2280
- const uniqueItemKey = `${depth}-${index}-${navItem.title}`;
2281
- if (renderItem) {
2282
- return /* @__PURE__ */ jsx(Fragment, { children: renderItem(navItem, {
2283
- collapsed: !!collapsed
2284
- }) }, key_0);
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 _temp$3(nav) {
2307
- return !nav.hidden;
1505
+ function vn(t) {
1506
+ return !t.hidden;
2308
1507
  }
2309
- const MINI_WIDTH = 84;
2310
- const EXPANDED_WIDTH = 320;
2311
- const TOOLBAR_HEIGHT = 64;
2312
- const NavigationRail = (t0) => {
2313
- const $ = c(29);
2314
- const {
2315
- navigation,
2316
- expanded,
2317
- setExpanded
2318
- } = t0;
2319
- const navigate = useNavigate();
2320
- const routerState = useRouterState();
2321
- const theme = useTheme();
2322
- let t1;
2323
- if ($[0] !== theme.breakpoints) {
2324
- t1 = theme.breakpoints.up("sm");
2325
- $[0] = theme.breakpoints;
2326
- $[1] = t1;
2327
- } else {
2328
- t1 = $[1];
2329
- }
2330
- const showPermanent = useMediaQuery(t1);
2331
- let t2;
2332
- if ($[2] !== expanded || $[3] !== navigate || $[4] !== navigation || $[5] !== routerState.location.pathname || $[6] !== setExpanded || $[7] !== showPermanent) {
2333
- t2 = (collapsed) => /* @__PURE__ */ jsx(Box, { component: "nav", sx: {
2334
- height: "100%",
2335
- display: "flex",
2336
- flexDirection: "column",
2337
- justifyContent: "space-between",
2338
- overflow: "auto",
2339
- scrollbarGutter: collapsed ? "stable" : "auto",
2340
- overflowX: "hidden",
2341
- pt: navigation[0] && isHeader(navigation[0]) && !collapsed ? 0 : 2
2342
- }, children: /* @__PURE__ */ jsx(NavigationList, { subNavigation: navigation, collapsed, isSidebarFullyExpanded: expanded, isSidebarFullyCollapsed: !expanded, expandedWidth: EXPANDED_WIDTH, activePath: routerState.location.pathname, onNavigate: navigate, onClose: !showPermanent ? () => setExpanded(false) : void 0 }) });
2343
- $[2] = expanded;
2344
- $[3] = navigate;
2345
- $[4] = navigation;
2346
- $[5] = routerState.location.pathname;
2347
- $[6] = setExpanded;
2348
- $[7] = showPermanent;
2349
- $[8] = t2;
2350
- } else {
2351
- t2 = $[8];
2352
- }
2353
- const drawerContent = t2;
2354
- if (showPermanent) {
2355
- const t32 = expanded ? EXPANDED_WIDTH : MINI_WIDTH;
2356
- const t42 = expanded ? EXPANDED_WIDTH : MINI_WIDTH;
2357
- let t52;
2358
- if ($[9] !== t42) {
2359
- t52 = {
2360
- position: "absolute",
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 session = await requireSession(data.redirectUri);
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 () => axios.request({
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 getAccessToken()}`
1569
+ Authorization: `Bearer ${await lt()}`
2448
1570
  }
2449
- }).then((response) => response.data.value.map((group) => group.displayName)),
2450
- staleTime: Infinity,
2451
- gcTime: Infinity
1571
+ }).then((o) => o.data.value.map((s) => s.displayName)),
1572
+ staleTime: 1 / 0,
1573
+ gcTime: 1 / 0
2452
1574
  });
2453
1575
  return {
2454
- ...session.user,
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
- return await queryClient.fetchQuery({
2462
- queryKey: ["graph", "me"],
2463
- queryFn: async () => await axios.request({
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?$select=id,displayName,jobTitle,mail,mobilePhone",
1599
+ url: "https://graph.microsoft.com/v1.0/me/photo/$value",
2466
1600
  headers: {
2467
- Authorization: `Bearer ${await getAccessToken()}`
2468
- }
2469
- }).then((response) => response.data),
2470
- staleTime: Infinity,
2471
- gcTime: Infinity
2472
- });
2473
- });
2474
- const getSessionUserPhoto = createServerFn({
2475
- method: "GET"
2476
- }).handler(async () => {
2477
- return await queryClient.fetchQuery({
2478
- queryKey: ["graph", "me", "photo"],
2479
- queryFn: async () => {
2480
- const response = await axios.request({
2481
- method: "GET",
2482
- url: "https://graph.microsoft.com/v1.0/me/photo/$value",
2483
- headers: {
2484
- Authorization: `Bearer ${await getAccessToken()}`
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 t22;
2523
- if ($[11] !== t) {
2524
- t22 = t("Layout.Light");
2525
- $[11] = t;
2526
- $[12] = t22;
2527
- } else {
2528
- t22 = $[12];
2529
- }
2530
- let t32;
2531
- if ($[13] !== t22) {
2532
- t32 = {
2533
- mode: "light",
2534
- icon: LightMode,
2535
- label: t22
2536
- };
2537
- $[13] = t22;
2538
- $[14] = t32;
2539
- } else {
2540
- t32 = $[14];
2541
- }
2542
- let t42;
2543
- if ($[15] !== t) {
2544
- t42 = t("Layout.Dark");
2545
- $[15] = t;
2546
- $[16] = t42;
2547
- } else {
2548
- t42 = $[16];
2549
- }
2550
- let t52;
2551
- if ($[17] !== t42) {
2552
- t52 = {
2553
- mode: "dark",
2554
- icon: DarkMode,
2555
- label: t42
2556
- };
2557
- $[17] = t42;
2558
- $[18] = t52;
2559
- } else {
2560
- t52 = $[18];
2561
- }
2562
- let t62;
2563
- if ($[19] !== t) {
2564
- t62 = t("Layout.System");
2565
- $[19] = t;
2566
- $[20] = t62;
2567
- } else {
2568
- t62 = $[20];
2569
- }
2570
- let t72;
2571
- if ($[21] !== t62) {
2572
- t72 = {
2573
- mode: "system",
2574
- icon: SettingsBrightness,
2575
- label: t62
2576
- };
2577
- $[21] = t62;
2578
- $[22] = t72;
2579
- } else {
2580
- t72 = $[22];
2581
- }
2582
- let t82;
2583
- if ($[23] !== t32 || $[24] !== t52 || $[25] !== t72) {
2584
- t82 = [t32, t52, t72];
2585
- $[23] = t32;
2586
- $[24] = t52;
2587
- $[25] = t72;
2588
- $[26] = t82;
2589
- } else {
2590
- t82 = $[26];
2591
- }
2592
- const colorModes = t82;
2593
- let t92;
2594
- if ($[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
2595
- t92 = (event) => setAnchorElement(event.currentTarget);
2596
- $[27] = t92;
2597
- } else {
2598
- t92 = $[27];
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
- $[102] = t15;
3029
- $[103] = t5;
3030
- $[104] = t16;
3031
- } else {
3032
- t16 = $[104];
3033
- }
3034
- return t16;
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 _temp$2(lng) {
3037
- return lng !== "cimode";
1816
+ function En(t) {
1817
+ return t !== "cimode";
3038
1818
  }
3039
- function _temp2(data) {
3040
- return /* @__PURE__ */ jsx(Avatar$1, { src: data, sx: {
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 _temp3(data_0) {
3052
- return /* @__PURE__ */ jsx(ListItemText$1, { primary: data_0.displayName.split("/")[0], secondary: data_0.jobTitle });
1831
+ function On(t) {
1832
+ return /* @__PURE__ */ p(ye, { primary: t.displayName.split("/")[0], secondary: t.jobTitle });
3053
1833
  }
3054
- function _temp4() {
1834
+ function wn() {
3055
1835
  return console.log("Logout clicked");
3056
1836
  }
3057
- const YEAR_IN_SECONDS = 60 * 60 * 24 * 365;
3058
- const getNavigationOpenStatus = createIsomorphicFn().server(() => {
3059
- const cookie = getCookie("navigationOpen");
3060
- return cookie === "true";
3061
- }).client(() => {
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: theme.spacing(0, 1),
3072
- ...theme.mixins.toolbar
3073
- }));
3074
- const Layout = (props) => {
3075
- const $ = c(29);
3076
- const [navigationOpen, setNavigationOpen] = useState(getNavigationOpenStatus);
3077
- const isFetching = !!useIsFetching();
3078
- const isMutating = !!useIsMutating();
3079
- let t0;
3080
- let t1;
3081
- if ($[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3082
- t0 = /* @__PURE__ */ jsx(InitColorSchemeScript, {});
3083
- t1 = /* @__PURE__ */ jsx(CssBaseline, {});
3084
- $[0] = t0;
3085
- $[1] = t1;
3086
- } else {
3087
- t0 = $[0];
3088
- t1 = $[1];
3089
- }
3090
- let t2;
3091
- if ($[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3092
- t2 = {
3093
- display: "flex",
3094
- height: "100dvh",
3095
- maxHeight: "100dvh",
3096
- overflow: "hidden",
3097
- width: "100%"
3098
- };
3099
- $[2] = t2;
3100
- } else {
3101
- t2 = $[2];
3102
- }
3103
- let t3;
3104
- if ($[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3105
- t3 = {
3106
- borderBottom: "1px solid",
3107
- borderColor: "var(--mui-palette-divider)",
3108
- boxShadow: "none"
3109
- };
3110
- $[3] = t3;
3111
- } else {
3112
- t3 = $[3];
3113
- }
3114
- let t4;
3115
- if ($[4] !== navigationOpen || $[5] !== props.navigation) {
3116
- t4 = props.navigation && /* @__PURE__ */ jsx(IconButton, { onClick: () => {
3117
- setNavigationOpen(_temp$1);
3118
- }, sx: {
3119
- marginRight: 2
3120
- }, children: navigationOpen ? /* @__PURE__ */ jsx(MenuOpen, {}) : /* @__PURE__ */ jsx(Menu$1, {}) });
3121
- $[4] = navigationOpen;
3122
- $[5] = props.navigation;
3123
- $[6] = t4;
3124
- } else {
3125
- t4 = $[6];
3126
- }
3127
- let t5;
3128
- let t6;
3129
- if ($[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel")) {
3130
- t5 = /* @__PURE__ */ jsx(AppTitle, {});
3131
- t6 = /* @__PURE__ */ jsx(ToolbarAccount, {});
3132
- $[7] = t5;
3133
- $[8] = t6;
3134
- } else {
3135
- t5 = $[7];
3136
- t6 = $[8];
3137
- }
3138
- let t7;
3139
- if ($[9] !== t4) {
3140
- t7 = /* @__PURE__ */ jsx(AppBar, { color: "transparent", position: "fixed", sx: t3, children: /* @__PURE__ */ jsxs(Toolbar, { children: [
3141
- t4,
3142
- t5,
3143
- t6
3144
- ] }) });
3145
- $[9] = t4;
3146
- $[10] = t7;
3147
- } else {
3148
- t7 = $[10];
3149
- }
3150
- let t8;
3151
- if ($[11] !== navigationOpen || $[12] !== props.navigation) {
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 _temp$1(previous) {
3250
- const newValue = !previous;
3251
- document.cookie = `navigationOpen=${newValue}; max-age=${YEAR_IN_SECONDS}; path=/`;
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 YEAR_IN_MINUTES = 60 * 24 * 365;
3255
- i18n.use(LanguageDetector).use(initReactI18next).init({
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(resources),
1936
+ supportedLngs: Object.keys(mt),
3259
1937
  detection: {
3260
1938
  caches: ["cookie"],
3261
- cookieMinutes: YEAR_IN_MINUTES
1939
+ cookieMinutes: In
3262
1940
  },
3263
1941
  interpolation: {
3264
- escapeValue: false
1942
+ escapeValue: !1
3265
1943
  }
3266
1944
  });
3267
- const LayoutProvider = (t0) => {
3268
- const $ = c(9);
3269
- const {
3270
- navigation,
3271
- theme,
3272
- children
3273
- } = t0;
3274
- const languageChangedHandler = useEffectEvent(_temp);
3275
- let t1;
3276
- if ($[0] !== languageChangedHandler) {
3277
- t1 = () => {
3278
- languageChangedHandler();
3279
- i18n.on("languageChanged", languageChangedHandler);
3280
- return () => {
3281
- i18n.off("languageChanged", languageChangedHandler);
3282
- };
3283
- };
3284
- $[0] = languageChangedHandler;
3285
- $[1] = t1;
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 _temp() {
3324
- z__default.config(z__default.core.locales[i18n.language]());
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
- r as rootRouteHead,
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