wcz-test 6.7.7 → 6.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (170) hide show
  1. package/dist/ApprovalStatus-C9HPyMiS.js +24 -0
  2. package/dist/ApprovalStatus-C9HPyMiS.js.map +1 -0
  3. package/dist/{chunk-4UULRYGW.js → DialogsHooks-BlUsVlfv.js} +7 -14
  4. package/dist/DialogsHooks-BlUsVlfv.js.map +1 -0
  5. package/dist/{chunk-MIVD2XWB.js → FileHooks-hWKTwLCr.js} +36 -46
  6. package/dist/FileHooks-hWKTwLCr.js.map +1 -0
  7. package/dist/{chunk-TME53DAF.js → FileMeta-G1oT3mYK.js} +3 -5
  8. package/dist/FileMeta-G1oT3mYK.js.map +1 -0
  9. package/dist/{chunk-ZMWQQXZT.js → RouterListItemButton-Cx7rXEfm.js} +6 -8
  10. package/dist/RouterListItemButton-Cx7rXEfm.js.map +1 -0
  11. package/dist/android-chrome-192x192.png +0 -0
  12. package/dist/android-chrome-512x512.png +0 -0
  13. package/dist/apple-touch-icon.png +0 -0
  14. package/dist/auth-client-D9snEe6B.js +79 -0
  15. package/dist/auth-client-D9snEe6B.js.map +1 -0
  16. package/dist/client-utils.d.ts +3 -702
  17. package/dist/client-utils.js +7 -17
  18. package/dist/client-utils.js.map +1 -1
  19. package/dist/components/core/AppTitle.d.ts +2 -0
  20. package/dist/components/core/Fullscreen.d.ts +3 -0
  21. package/dist/components/core/Layout.d.ts +8 -0
  22. package/dist/components/core/ToolbarAccount.d.ts +2 -0
  23. package/dist/components/core/TypographyWithIcon.d.ts +7 -0
  24. package/dist/components/core/navigation/NavigationList.d.ts +22 -0
  25. package/dist/components/core/navigation/NavigationListItem.d.ts +16 -0
  26. package/dist/components/core/navigation/NavigationRail.d.ts +12 -0
  27. package/dist/components/data-grid/ChipInputCell.d.ts +9 -0
  28. package/dist/components/data-grid/EditableColumnHeader.d.ts +2 -0
  29. package/dist/components/file/Dropzone.d.ts +8 -0
  30. package/dist/components/file/FileViewer.d.ts +20 -0
  31. package/dist/components/file/fileViewer/FileViewerGrid.d.ts +17 -0
  32. package/dist/components/file/fileViewer/FileViewerList.d.ts +12 -0
  33. package/dist/components/file/fileViewer/ImageViewer.d.ts +6 -0
  34. package/dist/components/file/fileViewer/common/ActionsMenu.d.ts +15 -0
  35. package/dist/components/form/FormAutocomplete.d.ts +7 -0
  36. package/dist/components/form/FormCheckbox.d.ts +7 -0
  37. package/dist/components/form/FormDatePicker.d.ts +8 -0
  38. package/dist/components/form/FormDateRangePicker.d.ts +8 -0
  39. package/dist/components/form/FormDateTimePicker.d.ts +8 -0
  40. package/dist/components/form/FormDateTimeRangePicker.d.ts +8 -0
  41. package/dist/components/form/FormNumberField.d.ts +9 -0
  42. package/dist/components/form/FormRadioGroup.d.ts +13 -0
  43. package/dist/components/form/FormSlider.d.ts +7 -0
  44. package/dist/components/form/FormSubmitButton.d.ts +4 -0
  45. package/dist/components/form/FormSwitch.d.ts +7 -0
  46. package/dist/components/form/FormTextField.d.ts +7 -0
  47. package/dist/components/form/FormTimePicker.d.ts +8 -0
  48. package/dist/components/form/FormTimeRangePicker.d.ts +8 -0
  49. package/dist/components/router/RouterButton.d.ts +6 -0
  50. package/dist/components/router/RouterError.d.ts +7 -0
  51. package/dist/components/router/RouterGridActionsCellItem.d.ts +6 -0
  52. package/dist/components/router/RouterIconButton.d.ts +6 -0
  53. package/dist/components/router/RouterLink.d.ts +6 -0
  54. package/dist/components/router/RouterListItemButton.d.ts +6 -0
  55. package/dist/components/router/RouterNotFound.d.ts +1 -0
  56. package/dist/components/router/RouterTab.d.ts +6 -0
  57. package/dist/components.d.ts +14 -89
  58. package/dist/components.js +124 -227
  59. package/dist/components.js.map +1 -1
  60. package/dist/contexts/DialogsContext.d.ts +6 -0
  61. package/dist/contexts/FileContext.d.ts +13 -0
  62. package/dist/env-CoxTjaDr.js +27 -0
  63. package/dist/env-CoxTjaDr.js.map +1 -0
  64. package/dist/env.d.ts +10 -0
  65. package/dist/favicon-16x16.png +0 -0
  66. package/dist/favicon-32x32.png +0 -0
  67. package/dist/favicon.ico +0 -0
  68. package/dist/favicon.png +0 -0
  69. package/dist/hooks/DialogsHooks.d.ts +42 -0
  70. package/dist/hooks/FormHooks.d.ts +52 -0
  71. package/dist/hooks/ThemeHook.d.ts +4 -0
  72. package/dist/hooks.d.ts +3 -159
  73. package/dist/hooks.js +56 -121
  74. package/dist/hooks.js.map +1 -1
  75. package/dist/index.d.ts +3 -36
  76. package/dist/index.js +173 -1882
  77. package/dist/index.js.map +1 -1
  78. package/dist/{client-utils.d.cts → lib/auth/auth-client.d.ts} +110 -126
  79. package/dist/lib/auth/auth.d.ts +24 -0
  80. package/dist/lib/db/index.d.ts +4 -0
  81. package/dist/lib/db/schemas/auth.d.ts +606 -0
  82. package/dist/{utils-ChipkRJ9.d.ts → lib/utils.d.ts} +11 -10
  83. package/dist/lib/vite-plugin.d.ts +2 -0
  84. package/dist/manifest.webmanifest +18 -0
  85. package/dist/models/Navigation.d.ts +18 -0
  86. package/dist/models/User.d.ts +8 -0
  87. package/dist/models/approval/Approval.d.ts +177 -0
  88. package/dist/models/approval/ApprovalEmployee.d.ts +7 -0
  89. package/dist/models/approval/ApprovalFlow.d.ts +49 -0
  90. package/dist/models/approval/ApprovalFlowStep.d.ts +29 -0
  91. package/dist/models/approval/ApprovalRequestType.d.ts +5 -0
  92. package/dist/models/approval/ApprovalStatus.d.ts +9 -0
  93. package/dist/models/approval/ApprovalStepResult.d.ts +11 -0
  94. package/dist/models/approval/StepApprovalOrder.d.ts +6 -0
  95. package/dist/models/email/Email.d.ts +13 -0
  96. package/dist/models/email/EmailAttachment.d.ts +6 -0
  97. package/dist/models/file/FileActions.d.ts +6 -0
  98. package/dist/{FileMeta-CC014fnB.d.cts → models/file/FileMeta.d.ts} +3 -6
  99. package/dist/models/peoplesoft/Department.d.ts +58 -0
  100. package/dist/models/peoplesoft/Employee.d.ts +46 -0
  101. package/dist/models/peoplesoft/EmployeeCategoryGroup.d.ts +6 -0
  102. package/dist/models/peoplesoft/EmployeeStatus.d.ts +6 -0
  103. package/dist/models.d.ts +25 -161
  104. package/dist/models.js +109 -160
  105. package/dist/models.js.map +1 -1
  106. package/dist/providers/DialogsProvider.d.ts +6 -0
  107. package/dist/providers/LayoutProvider.d.ts +11 -0
  108. package/dist/queries/Approval.d.ts +585 -0
  109. package/dist/queries/ApprovalHooks.d.ts +315 -0
  110. package/dist/queries/FileHooks.d.ts +151 -0
  111. package/dist/queries/PeopleSoftHooks.d.ts +537 -0
  112. package/dist/queries.d.ts +4 -1585
  113. package/dist/queries.js +59 -86
  114. package/dist/queries.js.map +1 -1
  115. package/dist/robots.txt +3 -0
  116. package/dist/server-utils.d.ts +2 -35
  117. package/dist/server-utils.js +13 -26
  118. package/dist/server-utils.js.map +1 -1
  119. package/dist/{chunk-2ROTNT7W.js → utils-DKyKGba7.js} +13 -18
  120. package/dist/utils-DKyKGba7.js.map +1 -0
  121. package/dist/utils.d.ts +1 -2
  122. package/dist/utils.js +3 -9
  123. package/dist/utils.js.map +1 -1
  124. package/dist/vite.d.ts +1 -5
  125. package/dist/vite.js +3 -6
  126. package/dist/vite.js.map +1 -1
  127. package/package.json +15 -23
  128. package/dist/Approval-CWQn-kah.d.cts +0 -284
  129. package/dist/Approval-CWQn-kah.d.ts +0 -284
  130. package/dist/FileMeta-CC014fnB.d.ts +0 -18
  131. package/dist/chunk-2ROTNT7W.js.map +0 -1
  132. package/dist/chunk-4FRZRIAO.js +0 -29
  133. package/dist/chunk-4FRZRIAO.js.map +0 -1
  134. package/dist/chunk-4UULRYGW.js.map +0 -1
  135. package/dist/chunk-5WRI5ZAA.js +0 -31
  136. package/dist/chunk-5WRI5ZAA.js.map +0 -1
  137. package/dist/chunk-CNDRHYQK.js +0 -883
  138. package/dist/chunk-CNDRHYQK.js.map +0 -1
  139. package/dist/chunk-DXXZZHAK.js +0 -28
  140. package/dist/chunk-DXXZZHAK.js.map +0 -1
  141. package/dist/chunk-MIVD2XWB.js.map +0 -1
  142. package/dist/chunk-TME53DAF.js.map +0 -1
  143. package/dist/chunk-ZMWQQXZT.js.map +0 -1
  144. package/dist/client-utils.cjs +0 -118
  145. package/dist/client-utils.cjs.map +0 -1
  146. package/dist/components.cjs +0 -802
  147. package/dist/components.cjs.map +0 -1
  148. package/dist/components.d.cts +0 -89
  149. package/dist/hooks.cjs +0 -534
  150. package/dist/hooks.cjs.map +0 -1
  151. package/dist/hooks.d.cts +0 -160
  152. package/dist/index.cjs +0 -3373
  153. package/dist/index.cjs.map +0 -1
  154. package/dist/index.d.cts +0 -36
  155. package/dist/models.cjs +0 -330
  156. package/dist/models.cjs.map +0 -1
  157. package/dist/models.d.cts +0 -161
  158. package/dist/queries.cjs +0 -706
  159. package/dist/queries.cjs.map +0 -1
  160. package/dist/queries.d.cts +0 -1585
  161. package/dist/server-utils.cjs +0 -145
  162. package/dist/server-utils.cjs.map +0 -1
  163. package/dist/server-utils.d.cts +0 -36
  164. package/dist/utils-ChipkRJ9.d.cts +0 -49
  165. package/dist/utils.cjs +0 -81
  166. package/dist/utils.cjs.map +0 -1
  167. package/dist/utils.d.cts +0 -4
  168. package/dist/vite.cjs +0 -94
  169. package/dist/vite.cjs.map +0 -1
  170. package/dist/vite.d.cts +0 -5
package/dist/index.js CHANGED
@@ -1,1665 +1,58 @@
1
- import {
2
- _extends,
3
- authClient,
4
- useGetTheme
5
- } from "./chunk-CNDRHYQK.js";
6
- import {
7
- RouterListItemButton
8
- } from "./chunk-ZMWQQXZT.js";
9
- import {
10
- DialogsContext,
11
- useDialogs
12
- } from "./chunk-4UULRYGW.js";
13
- import {
14
- rootRouteHead
15
- } from "./chunk-2ROTNT7W.js";
16
- import {
17
- clientEnv
18
- } from "./chunk-DXXZZHAK.js";
19
- import {
20
- __commonJS,
21
- __toESM
22
- } from "./chunk-5WRI5ZAA.js";
23
-
24
- // node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js
25
- var require_react_is_production_min = __commonJS({
26
- "node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
27
- "use strict";
28
- var b = "function" === typeof Symbol && Symbol.for;
29
- var c = b ? Symbol.for("react.element") : 60103;
30
- var d = b ? Symbol.for("react.portal") : 60106;
31
- var e = b ? Symbol.for("react.fragment") : 60107;
32
- var f = b ? Symbol.for("react.strict_mode") : 60108;
33
- var g = b ? Symbol.for("react.profiler") : 60114;
34
- var h = b ? Symbol.for("react.provider") : 60109;
35
- var k = b ? Symbol.for("react.context") : 60110;
36
- var l = b ? Symbol.for("react.async_mode") : 60111;
37
- var m = b ? Symbol.for("react.concurrent_mode") : 60111;
38
- var n = b ? Symbol.for("react.forward_ref") : 60112;
39
- var p = b ? Symbol.for("react.suspense") : 60113;
40
- var q = b ? Symbol.for("react.suspense_list") : 60120;
41
- var r = b ? Symbol.for("react.memo") : 60115;
42
- var t = b ? Symbol.for("react.lazy") : 60116;
43
- var v = b ? Symbol.for("react.block") : 60121;
44
- var w = b ? Symbol.for("react.fundamental") : 60117;
45
- var x = b ? Symbol.for("react.responder") : 60118;
46
- var y = b ? Symbol.for("react.scope") : 60119;
47
- function z2(a) {
48
- if ("object" === typeof a && null !== a) {
49
- var u = a.$$typeof;
50
- switch (u) {
51
- case c:
52
- switch (a = a.type, a) {
53
- case l:
54
- case m:
55
- case e:
56
- case g:
57
- case f:
58
- case p:
59
- return a;
60
- default:
61
- switch (a = a && a.$$typeof, a) {
62
- case k:
63
- case n:
64
- case t:
65
- case r:
66
- case h:
67
- return a;
68
- default:
69
- return u;
70
- }
71
- }
72
- case d:
73
- return u;
74
- }
75
- }
76
- }
77
- function A(a) {
78
- return z2(a) === m;
79
- }
80
- exports.AsyncMode = l;
81
- exports.ConcurrentMode = m;
82
- exports.ContextConsumer = k;
83
- exports.ContextProvider = h;
84
- exports.Element = c;
85
- exports.ForwardRef = n;
86
- exports.Fragment = e;
87
- exports.Lazy = t;
88
- exports.Memo = r;
89
- exports.Portal = d;
90
- exports.Profiler = g;
91
- exports.StrictMode = f;
92
- exports.Suspense = p;
93
- exports.isAsyncMode = function(a) {
94
- return A(a) || z2(a) === l;
95
- };
96
- exports.isConcurrentMode = A;
97
- exports.isContextConsumer = function(a) {
98
- return z2(a) === k;
99
- };
100
- exports.isContextProvider = function(a) {
101
- return z2(a) === h;
102
- };
103
- exports.isElement = function(a) {
104
- return "object" === typeof a && null !== a && a.$$typeof === c;
105
- };
106
- exports.isForwardRef = function(a) {
107
- return z2(a) === n;
108
- };
109
- exports.isFragment = function(a) {
110
- return z2(a) === e;
111
- };
112
- exports.isLazy = function(a) {
113
- return z2(a) === t;
114
- };
115
- exports.isMemo = function(a) {
116
- return z2(a) === r;
117
- };
118
- exports.isPortal = function(a) {
119
- return z2(a) === d;
120
- };
121
- exports.isProfiler = function(a) {
122
- return z2(a) === g;
123
- };
124
- exports.isStrictMode = function(a) {
125
- return z2(a) === f;
126
- };
127
- exports.isSuspense = function(a) {
128
- return z2(a) === p;
129
- };
130
- exports.isValidElementType = function(a) {
131
- 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 === r || a.$$typeof === h || a.$$typeof === k || a.$$typeof === n || a.$$typeof === w || a.$$typeof === x || a.$$typeof === y || a.$$typeof === v);
132
- };
133
- exports.typeOf = z2;
134
- }
135
- });
136
-
137
- // node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js
138
- var require_react_is_development = __commonJS({
139
- "node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js"(exports) {
140
- "use strict";
141
- if (process.env.NODE_ENV !== "production") {
142
- (function() {
143
- "use strict";
144
- var hasSymbol = typeof Symbol === "function" && Symbol.for;
145
- var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
146
- var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
147
- var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
148
- var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
149
- var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
150
- var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
151
- var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
152
- var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
153
- var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
154
- var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
155
- var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
156
- var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
157
- var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
158
- var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
159
- var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
160
- var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
161
- var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
162
- var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
163
- function isValidElementType(type) {
164
- return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
165
- 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);
166
- }
167
- function typeOf(object) {
168
- if (typeof object === "object" && object !== null) {
169
- var $$typeof = object.$$typeof;
170
- switch ($$typeof) {
171
- case REACT_ELEMENT_TYPE:
172
- var type = object.type;
173
- switch (type) {
174
- case REACT_ASYNC_MODE_TYPE:
175
- case REACT_CONCURRENT_MODE_TYPE:
176
- case REACT_FRAGMENT_TYPE:
177
- case REACT_PROFILER_TYPE:
178
- case REACT_STRICT_MODE_TYPE:
179
- case REACT_SUSPENSE_TYPE:
180
- return type;
181
- default:
182
- var $$typeofType = type && type.$$typeof;
183
- switch ($$typeofType) {
184
- case REACT_CONTEXT_TYPE:
185
- case REACT_FORWARD_REF_TYPE:
186
- case REACT_LAZY_TYPE:
187
- case REACT_MEMO_TYPE:
188
- case REACT_PROVIDER_TYPE:
189
- return $$typeofType;
190
- default:
191
- return $$typeof;
192
- }
193
- }
194
- case REACT_PORTAL_TYPE:
195
- return $$typeof;
196
- }
197
- }
198
- return void 0;
199
- }
200
- var AsyncMode = REACT_ASYNC_MODE_TYPE;
201
- var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
202
- var ContextConsumer = REACT_CONTEXT_TYPE;
203
- var ContextProvider = REACT_PROVIDER_TYPE;
204
- var Element = REACT_ELEMENT_TYPE;
205
- var ForwardRef = REACT_FORWARD_REF_TYPE;
206
- var Fragment6 = REACT_FRAGMENT_TYPE;
207
- var Lazy = REACT_LAZY_TYPE;
208
- var Memo = REACT_MEMO_TYPE;
209
- var Portal = REACT_PORTAL_TYPE;
210
- var Profiler = REACT_PROFILER_TYPE;
211
- var StrictMode = REACT_STRICT_MODE_TYPE;
212
- var Suspense = REACT_SUSPENSE_TYPE;
213
- var hasWarnedAboutDeprecatedIsAsyncMode = false;
214
- function isAsyncMode(object) {
215
- {
216
- if (!hasWarnedAboutDeprecatedIsAsyncMode) {
217
- hasWarnedAboutDeprecatedIsAsyncMode = true;
218
- 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.");
219
- }
220
- }
221
- return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
222
- }
223
- function isConcurrentMode(object) {
224
- return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
225
- }
226
- function isContextConsumer(object) {
227
- return typeOf(object) === REACT_CONTEXT_TYPE;
228
- }
229
- function isContextProvider(object) {
230
- return typeOf(object) === REACT_PROVIDER_TYPE;
231
- }
232
- function isElement(object) {
233
- return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
234
- }
235
- function isForwardRef(object) {
236
- return typeOf(object) === REACT_FORWARD_REF_TYPE;
237
- }
238
- function isFragment(object) {
239
- return typeOf(object) === REACT_FRAGMENT_TYPE;
240
- }
241
- function isLazy(object) {
242
- return typeOf(object) === REACT_LAZY_TYPE;
243
- }
244
- function isMemo(object) {
245
- return typeOf(object) === REACT_MEMO_TYPE;
246
- }
247
- function isPortal(object) {
248
- return typeOf(object) === REACT_PORTAL_TYPE;
249
- }
250
- function isProfiler(object) {
251
- return typeOf(object) === REACT_PROFILER_TYPE;
252
- }
253
- function isStrictMode(object) {
254
- return typeOf(object) === REACT_STRICT_MODE_TYPE;
255
- }
256
- function isSuspense(object) {
257
- return typeOf(object) === REACT_SUSPENSE_TYPE;
258
- }
259
- exports.AsyncMode = AsyncMode;
260
- exports.ConcurrentMode = ConcurrentMode;
261
- exports.ContextConsumer = ContextConsumer;
262
- exports.ContextProvider = ContextProvider;
263
- exports.Element = Element;
264
- exports.ForwardRef = ForwardRef;
265
- exports.Fragment = Fragment6;
266
- exports.Lazy = Lazy;
267
- exports.Memo = Memo;
268
- exports.Portal = Portal;
269
- exports.Profiler = Profiler;
270
- exports.StrictMode = StrictMode;
271
- exports.Suspense = Suspense;
272
- exports.isAsyncMode = isAsyncMode;
273
- exports.isConcurrentMode = isConcurrentMode;
274
- exports.isContextConsumer = isContextConsumer;
275
- exports.isContextProvider = isContextProvider;
276
- exports.isElement = isElement;
277
- exports.isForwardRef = isForwardRef;
278
- exports.isFragment = isFragment;
279
- exports.isLazy = isLazy;
280
- exports.isMemo = isMemo;
281
- exports.isPortal = isPortal;
282
- exports.isProfiler = isProfiler;
283
- exports.isStrictMode = isStrictMode;
284
- exports.isSuspense = isSuspense;
285
- exports.isValidElementType = isValidElementType;
286
- exports.typeOf = typeOf;
287
- })();
288
- }
289
- }
290
- });
291
-
292
- // node_modules/prop-types/node_modules/react-is/index.js
293
- var require_react_is = __commonJS({
294
- "node_modules/prop-types/node_modules/react-is/index.js"(exports, module) {
295
- "use strict";
296
- if (process.env.NODE_ENV === "production") {
297
- module.exports = require_react_is_production_min();
298
- } else {
299
- module.exports = require_react_is_development();
300
- }
301
- }
302
- });
303
-
304
- // node_modules/object-assign/index.js
305
- var require_object_assign = __commonJS({
306
- "node_modules/object-assign/index.js"(exports, module) {
307
- "use strict";
308
- var getOwnPropertySymbols = Object.getOwnPropertySymbols;
309
- var hasOwnProperty = Object.prototype.hasOwnProperty;
310
- var propIsEnumerable = Object.prototype.propertyIsEnumerable;
311
- function toObject(val) {
312
- if (val === null || val === void 0) {
313
- throw new TypeError("Object.assign cannot be called with null or undefined");
314
- }
315
- return Object(val);
316
- }
317
- function shouldUseNative() {
318
- try {
319
- if (!Object.assign) {
320
- return false;
321
- }
322
- var test1 = new String("abc");
323
- test1[5] = "de";
324
- if (Object.getOwnPropertyNames(test1)[0] === "5") {
325
- return false;
326
- }
327
- var test2 = {};
328
- for (var i = 0; i < 10; i++) {
329
- test2["_" + String.fromCharCode(i)] = i;
330
- }
331
- var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
332
- return test2[n];
333
- });
334
- if (order2.join("") !== "0123456789") {
335
- return false;
336
- }
337
- var test3 = {};
338
- "abcdefghijklmnopqrst".split("").forEach(function(letter) {
339
- test3[letter] = letter;
340
- });
341
- if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
342
- return false;
343
- }
344
- return true;
345
- } catch (err) {
346
- return false;
347
- }
348
- }
349
- module.exports = shouldUseNative() ? Object.assign : function(target, source) {
350
- var from;
351
- var to = toObject(target);
352
- var symbols;
353
- for (var s = 1; s < arguments.length; s++) {
354
- from = Object(arguments[s]);
355
- for (var key in from) {
356
- if (hasOwnProperty.call(from, key)) {
357
- to[key] = from[key];
358
- }
359
- }
360
- if (getOwnPropertySymbols) {
361
- symbols = getOwnPropertySymbols(from);
362
- for (var i = 0; i < symbols.length; i++) {
363
- if (propIsEnumerable.call(from, symbols[i])) {
364
- to[symbols[i]] = from[symbols[i]];
365
- }
366
- }
367
- }
368
- }
369
- return to;
370
- };
371
- }
372
- });
373
-
374
- // node_modules/prop-types/lib/ReactPropTypesSecret.js
375
- var require_ReactPropTypesSecret = __commonJS({
376
- "node_modules/prop-types/lib/ReactPropTypesSecret.js"(exports, module) {
377
- "use strict";
378
- var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
379
- module.exports = ReactPropTypesSecret;
380
- }
381
- });
382
-
383
- // node_modules/prop-types/lib/has.js
384
- var require_has = __commonJS({
385
- "node_modules/prop-types/lib/has.js"(exports, module) {
386
- "use strict";
387
- module.exports = Function.call.bind(Object.prototype.hasOwnProperty);
388
- }
389
- });
390
-
391
- // node_modules/prop-types/checkPropTypes.js
392
- var require_checkPropTypes = __commonJS({
393
- "node_modules/prop-types/checkPropTypes.js"(exports, module) {
394
- "use strict";
395
- var printWarning = function() {
396
- };
397
- if (process.env.NODE_ENV !== "production") {
398
- ReactPropTypesSecret = require_ReactPropTypesSecret();
399
- loggedTypeFailures = {};
400
- has = require_has();
401
- printWarning = function(text) {
402
- var message = "Warning: " + text;
403
- if (typeof console !== "undefined") {
404
- console.error(message);
405
- }
406
- try {
407
- throw new Error(message);
408
- } catch (x) {
409
- }
410
- };
411
- }
412
- var ReactPropTypesSecret;
413
- var loggedTypeFailures;
414
- var has;
415
- function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
416
- if (process.env.NODE_ENV !== "production") {
417
- for (var typeSpecName in typeSpecs) {
418
- if (has(typeSpecs, typeSpecName)) {
419
- var error;
420
- try {
421
- if (typeof typeSpecs[typeSpecName] !== "function") {
422
- var err = Error(
423
- (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`."
424
- );
425
- err.name = "Invariant Violation";
426
- throw err;
427
- }
428
- error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
429
- } catch (ex) {
430
- error = ex;
431
- }
432
- if (error && !(error instanceof Error)) {
433
- printWarning(
434
- (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)."
435
- );
436
- }
437
- if (error instanceof Error && !(error.message in loggedTypeFailures)) {
438
- loggedTypeFailures[error.message] = true;
439
- var stack = getStack ? getStack() : "";
440
- printWarning(
441
- "Failed " + location + " type: " + error.message + (stack != null ? stack : "")
442
- );
443
- }
444
- }
445
- }
446
- }
447
- }
448
- checkPropTypes.resetWarningCache = function() {
449
- if (process.env.NODE_ENV !== "production") {
450
- loggedTypeFailures = {};
451
- }
452
- };
453
- module.exports = checkPropTypes;
454
- }
455
- });
456
-
457
- // node_modules/prop-types/factoryWithTypeCheckers.js
458
- var require_factoryWithTypeCheckers = __commonJS({
459
- "node_modules/prop-types/factoryWithTypeCheckers.js"(exports, module) {
460
- "use strict";
461
- var ReactIs = require_react_is();
462
- var assign = require_object_assign();
463
- var ReactPropTypesSecret = require_ReactPropTypesSecret();
464
- var has = require_has();
465
- var checkPropTypes = require_checkPropTypes();
466
- var printWarning = function() {
467
- };
468
- if (process.env.NODE_ENV !== "production") {
469
- printWarning = function(text) {
470
- var message = "Warning: " + text;
471
- if (typeof console !== "undefined") {
472
- console.error(message);
473
- }
474
- try {
475
- throw new Error(message);
476
- } catch (x) {
477
- }
478
- };
479
- }
480
- function emptyFunctionThatReturnsNull() {
481
- return null;
482
- }
483
- module.exports = function(isValidElement, throwOnDirectAccess) {
484
- var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
485
- var FAUX_ITERATOR_SYMBOL = "@@iterator";
486
- function getIteratorFn(maybeIterable) {
487
- var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
488
- if (typeof iteratorFn === "function") {
489
- return iteratorFn;
490
- }
491
- }
492
- var ANONYMOUS = "<<anonymous>>";
493
- var ReactPropTypes = {
494
- array: createPrimitiveTypeChecker("array"),
495
- bigint: createPrimitiveTypeChecker("bigint"),
496
- bool: createPrimitiveTypeChecker("boolean"),
497
- func: createPrimitiveTypeChecker("function"),
498
- number: createPrimitiveTypeChecker("number"),
499
- object: createPrimitiveTypeChecker("object"),
500
- string: createPrimitiveTypeChecker("string"),
501
- symbol: createPrimitiveTypeChecker("symbol"),
502
- any: createAnyTypeChecker(),
503
- arrayOf: createArrayOfTypeChecker,
504
- element: createElementTypeChecker(),
505
- elementType: createElementTypeTypeChecker(),
506
- instanceOf: createInstanceTypeChecker,
507
- node: createNodeChecker(),
508
- objectOf: createObjectOfTypeChecker,
509
- oneOf: createEnumTypeChecker,
510
- oneOfType: createUnionTypeChecker,
511
- shape: createShapeTypeChecker,
512
- exact: createStrictShapeTypeChecker
513
- };
514
- function is(x, y) {
515
- if (x === y) {
516
- return x !== 0 || 1 / x === 1 / y;
517
- } else {
518
- return x !== x && y !== y;
519
- }
520
- }
521
- function PropTypeError(message, data) {
522
- this.message = message;
523
- this.data = data && typeof data === "object" ? data : {};
524
- this.stack = "";
525
- }
526
- PropTypeError.prototype = Error.prototype;
527
- function createChainableTypeChecker(validate) {
528
- if (process.env.NODE_ENV !== "production") {
529
- var manualPropTypeCallCache = {};
530
- var manualPropTypeWarningCount = 0;
531
- }
532
- function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
533
- componentName = componentName || ANONYMOUS;
534
- propFullName = propFullName || propName;
535
- if (secret !== ReactPropTypesSecret) {
536
- if (throwOnDirectAccess) {
537
- var err = new Error(
538
- "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"
539
- );
540
- err.name = "Invariant Violation";
541
- throw err;
542
- } else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") {
543
- var cacheKey = componentName + ":" + propName;
544
- if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
545
- manualPropTypeWarningCount < 3) {
546
- printWarning(
547
- "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."
548
- );
549
- manualPropTypeCallCache[cacheKey] = true;
550
- manualPropTypeWarningCount++;
551
- }
552
- }
553
- }
554
- if (props[propName] == null) {
555
- if (isRequired) {
556
- if (props[propName] === null) {
557
- return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
558
- }
559
- return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
560
- }
561
- return null;
562
- } else {
563
- return validate(props, propName, componentName, location, propFullName);
564
- }
565
- }
566
- var chainedCheckType = checkType.bind(null, false);
567
- chainedCheckType.isRequired = checkType.bind(null, true);
568
- return chainedCheckType;
569
- }
570
- function createPrimitiveTypeChecker(expectedType) {
571
- function validate(props, propName, componentName, location, propFullName, secret) {
572
- var propValue = props[propName];
573
- var propType = getPropType(propValue);
574
- if (propType !== expectedType) {
575
- var preciseType = getPreciseType(propValue);
576
- return new PropTypeError(
577
- "Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."),
578
- { expectedType }
579
- );
580
- }
581
- return null;
582
- }
583
- return createChainableTypeChecker(validate);
584
- }
585
- function createAnyTypeChecker() {
586
- return createChainableTypeChecker(emptyFunctionThatReturnsNull);
587
- }
588
- function createArrayOfTypeChecker(typeChecker) {
589
- function validate(props, propName, componentName, location, propFullName) {
590
- if (typeof typeChecker !== "function") {
591
- return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
592
- }
593
- var propValue = props[propName];
594
- if (!Array.isArray(propValue)) {
595
- var propType = getPropType(propValue);
596
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
597
- }
598
- for (var i = 0; i < propValue.length; i++) {
599
- var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
600
- if (error instanceof Error) {
601
- return error;
602
- }
603
- }
604
- return null;
605
- }
606
- return createChainableTypeChecker(validate);
607
- }
608
- function createElementTypeChecker() {
609
- function validate(props, propName, componentName, location, propFullName) {
610
- var propValue = props[propName];
611
- if (!isValidElement(propValue)) {
612
- var propType = getPropType(propValue);
613
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
614
- }
615
- return null;
616
- }
617
- return createChainableTypeChecker(validate);
618
- }
619
- function createElementTypeTypeChecker() {
620
- function validate(props, propName, componentName, location, propFullName) {
621
- var propValue = props[propName];
622
- if (!ReactIs.isValidElementType(propValue)) {
623
- var propType = getPropType(propValue);
624
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
625
- }
626
- return null;
627
- }
628
- return createChainableTypeChecker(validate);
629
- }
630
- function createInstanceTypeChecker(expectedClass) {
631
- function validate(props, propName, componentName, location, propFullName) {
632
- if (!(props[propName] instanceof expectedClass)) {
633
- var expectedClassName = expectedClass.name || ANONYMOUS;
634
- var actualClassName = getClassName(props[propName]);
635
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
636
- }
637
- return null;
638
- }
639
- return createChainableTypeChecker(validate);
640
- }
641
- function createEnumTypeChecker(expectedValues) {
642
- if (!Array.isArray(expectedValues)) {
643
- if (process.env.NODE_ENV !== "production") {
644
- if (arguments.length > 1) {
645
- printWarning(
646
- "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])."
647
- );
648
- } else {
649
- printWarning("Invalid argument supplied to oneOf, expected an array.");
650
- }
651
- }
652
- return emptyFunctionThatReturnsNull;
653
- }
654
- function validate(props, propName, componentName, location, propFullName) {
655
- var propValue = props[propName];
656
- for (var i = 0; i < expectedValues.length; i++) {
657
- if (is(propValue, expectedValues[i])) {
658
- return null;
659
- }
660
- }
661
- var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
662
- var type = getPreciseType(value);
663
- if (type === "symbol") {
664
- return String(value);
665
- }
666
- return value;
667
- });
668
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
669
- }
670
- return createChainableTypeChecker(validate);
671
- }
672
- function createObjectOfTypeChecker(typeChecker) {
673
- function validate(props, propName, componentName, location, propFullName) {
674
- if (typeof typeChecker !== "function") {
675
- return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
676
- }
677
- var propValue = props[propName];
678
- var propType = getPropType(propValue);
679
- if (propType !== "object") {
680
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
681
- }
682
- for (var key in propValue) {
683
- if (has(propValue, key)) {
684
- var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
685
- if (error instanceof Error) {
686
- return error;
687
- }
688
- }
689
- }
690
- return null;
691
- }
692
- return createChainableTypeChecker(validate);
693
- }
694
- function createUnionTypeChecker(arrayOfTypeCheckers) {
695
- if (!Array.isArray(arrayOfTypeCheckers)) {
696
- process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
697
- return emptyFunctionThatReturnsNull;
698
- }
699
- for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
700
- var checker = arrayOfTypeCheckers[i];
701
- if (typeof checker !== "function") {
702
- printWarning(
703
- "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
704
- );
705
- return emptyFunctionThatReturnsNull;
706
- }
707
- }
708
- function validate(props, propName, componentName, location, propFullName) {
709
- var expectedTypes = [];
710
- for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
711
- var checker2 = arrayOfTypeCheckers[i2];
712
- var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
713
- if (checkerResult == null) {
714
- return null;
715
- }
716
- if (checkerResult.data && has(checkerResult.data, "expectedType")) {
717
- expectedTypes.push(checkerResult.data.expectedType);
718
- }
719
- }
720
- var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
721
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
722
- }
723
- return createChainableTypeChecker(validate);
724
- }
725
- function createNodeChecker() {
726
- function validate(props, propName, componentName, location, propFullName) {
727
- if (!isNode(props[propName])) {
728
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
729
- }
730
- return null;
731
- }
732
- return createChainableTypeChecker(validate);
733
- }
734
- function invalidValidatorError(componentName, location, propFullName, key, type) {
735
- return new PropTypeError(
736
- (componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."
737
- );
738
- }
739
- function createShapeTypeChecker(shapeTypes) {
740
- function validate(props, propName, componentName, location, propFullName) {
741
- var propValue = props[propName];
742
- var propType = getPropType(propValue);
743
- if (propType !== "object") {
744
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
745
- }
746
- for (var key in shapeTypes) {
747
- var checker = shapeTypes[key];
748
- if (typeof checker !== "function") {
749
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
750
- }
751
- var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
752
- if (error) {
753
- return error;
754
- }
755
- }
756
- return null;
757
- }
758
- return createChainableTypeChecker(validate);
759
- }
760
- function createStrictShapeTypeChecker(shapeTypes) {
761
- function validate(props, propName, componentName, location, propFullName) {
762
- var propValue = props[propName];
763
- var propType = getPropType(propValue);
764
- if (propType !== "object") {
765
- return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
766
- }
767
- var allKeys = assign({}, props[propName], shapeTypes);
768
- for (var key in allKeys) {
769
- var checker = shapeTypes[key];
770
- if (has(shapeTypes, key) && typeof checker !== "function") {
771
- return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
772
- }
773
- if (!checker) {
774
- return new PropTypeError(
775
- "Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")
776
- );
777
- }
778
- var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
779
- if (error) {
780
- return error;
781
- }
782
- }
783
- return null;
784
- }
785
- return createChainableTypeChecker(validate);
786
- }
787
- function isNode(propValue) {
788
- switch (typeof propValue) {
789
- case "number":
790
- case "string":
791
- case "undefined":
792
- return true;
793
- case "boolean":
794
- return !propValue;
795
- case "object":
796
- if (Array.isArray(propValue)) {
797
- return propValue.every(isNode);
798
- }
799
- if (propValue === null || isValidElement(propValue)) {
800
- return true;
801
- }
802
- var iteratorFn = getIteratorFn(propValue);
803
- if (iteratorFn) {
804
- var iterator = iteratorFn.call(propValue);
805
- var step;
806
- if (iteratorFn !== propValue.entries) {
807
- while (!(step = iterator.next()).done) {
808
- if (!isNode(step.value)) {
809
- return false;
810
- }
811
- }
812
- } else {
813
- while (!(step = iterator.next()).done) {
814
- var entry = step.value;
815
- if (entry) {
816
- if (!isNode(entry[1])) {
817
- return false;
818
- }
819
- }
820
- }
821
- }
822
- } else {
823
- return false;
824
- }
825
- return true;
826
- default:
827
- return false;
828
- }
829
- }
830
- function isSymbol(propType, propValue) {
831
- if (propType === "symbol") {
832
- return true;
833
- }
834
- if (!propValue) {
835
- return false;
836
- }
837
- if (propValue["@@toStringTag"] === "Symbol") {
838
- return true;
839
- }
840
- if (typeof Symbol === "function" && propValue instanceof Symbol) {
841
- return true;
842
- }
843
- return false;
844
- }
845
- function getPropType(propValue) {
846
- var propType = typeof propValue;
847
- if (Array.isArray(propValue)) {
848
- return "array";
849
- }
850
- if (propValue instanceof RegExp) {
851
- return "object";
852
- }
853
- if (isSymbol(propType, propValue)) {
854
- return "symbol";
855
- }
856
- return propType;
857
- }
858
- function getPreciseType(propValue) {
859
- if (typeof propValue === "undefined" || propValue === null) {
860
- return "" + propValue;
861
- }
862
- var propType = getPropType(propValue);
863
- if (propType === "object") {
864
- if (propValue instanceof Date) {
865
- return "date";
866
- } else if (propValue instanceof RegExp) {
867
- return "regexp";
868
- }
869
- }
870
- return propType;
871
- }
872
- function getPostfixForTypeWarning(value) {
873
- var type = getPreciseType(value);
874
- switch (type) {
875
- case "array":
876
- case "object":
877
- return "an " + type;
878
- case "boolean":
879
- case "date":
880
- case "regexp":
881
- return "a " + type;
882
- default:
883
- return type;
884
- }
885
- }
886
- function getClassName(propValue) {
887
- if (!propValue.constructor || !propValue.constructor.name) {
888
- return ANONYMOUS;
889
- }
890
- return propValue.constructor.name;
891
- }
892
- ReactPropTypes.checkPropTypes = checkPropTypes;
893
- ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
894
- ReactPropTypes.PropTypes = ReactPropTypes;
895
- return ReactPropTypes;
896
- };
897
- }
898
- });
899
-
900
- // node_modules/prop-types/factoryWithThrowingShims.js
901
- var require_factoryWithThrowingShims = __commonJS({
902
- "node_modules/prop-types/factoryWithThrowingShims.js"(exports, module) {
903
- "use strict";
904
- var ReactPropTypesSecret = require_ReactPropTypesSecret();
905
- function emptyFunction() {
906
- }
907
- function emptyFunctionWithReset() {
908
- }
909
- emptyFunctionWithReset.resetWarningCache = emptyFunction;
910
- module.exports = function() {
911
- function shim(props, propName, componentName, location, propFullName, secret) {
912
- if (secret === ReactPropTypesSecret) {
913
- return;
914
- }
915
- var err = new Error(
916
- "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"
917
- );
918
- err.name = "Invariant Violation";
919
- throw err;
920
- }
921
- ;
922
- shim.isRequired = shim;
923
- function getShim() {
924
- return shim;
925
- }
926
- ;
927
- var ReactPropTypes = {
928
- array: shim,
929
- bigint: shim,
930
- bool: shim,
931
- func: shim,
932
- number: shim,
933
- object: shim,
934
- string: shim,
935
- symbol: shim,
936
- any: shim,
937
- arrayOf: getShim,
938
- element: shim,
939
- elementType: shim,
940
- instanceOf: getShim,
941
- node: shim,
942
- objectOf: getShim,
943
- oneOf: getShim,
944
- oneOfType: getShim,
945
- shape: getShim,
946
- exact: getShim,
947
- checkPropTypes: emptyFunctionWithReset,
948
- resetWarningCache: emptyFunction
949
- };
950
- ReactPropTypes.PropTypes = ReactPropTypes;
951
- return ReactPropTypes;
952
- };
953
- }
954
- });
955
-
956
- // node_modules/prop-types/index.js
957
- var require_prop_types = __commonJS({
958
- "node_modules/prop-types/index.js"(exports, module) {
959
- "use strict";
960
- if (process.env.NODE_ENV !== "production") {
961
- ReactIs = require_react_is();
962
- throwOnDirectAccess = true;
963
- module.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
964
- } else {
965
- module.exports = require_factoryWithThrowingShims()();
966
- }
967
- var ReactIs;
968
- var throwOnDirectAccess;
969
- }
970
- });
971
-
972
- // src/providers/LayoutProvider.tsx
973
- import { ThemeProvider } from "@mui/material";
974
-
975
- // node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
976
- function _objectWithoutPropertiesLoose(r, e) {
977
- if (null == r) return {};
978
- var t = {};
979
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
980
- if (-1 !== e.indexOf(n)) continue;
981
- t[n] = r[n];
982
- }
983
- return t;
984
- }
985
-
986
- // node_modules/@mui/x-date-pickers/esm/LocalizationProvider/LocalizationProvider.js
987
- var import_prop_types = __toESM(require_prop_types(), 1);
988
- import * as React from "react";
989
- import { useThemeProps } from "@mui/material/styles";
990
- import { jsx as _jsx } from "react/jsx-runtime";
991
- var _excluded = ["localeText"];
992
- var PickerAdapterContext = /* @__PURE__ */ React.createContext(null);
993
- if (process.env.NODE_ENV !== "production") PickerAdapterContext.displayName = "PickerAdapterContext";
994
- var LocalizationProvider = function LocalizationProvider2(inProps) {
995
- const {
996
- localeText: inLocaleText
997
- } = inProps, otherInProps = _objectWithoutPropertiesLoose(inProps, _excluded);
998
- const {
999
- adapter: parentAdapter,
1000
- localeText: parentLocaleText
1001
- } = React.useContext(PickerAdapterContext) ?? {
1002
- utils: void 0,
1003
- adapter: void 0,
1004
- localeText: void 0
1005
- };
1006
- const props = useThemeProps({
1007
- // We don't want to pass the `localeText` prop to the theme, that way it will always return the theme value,
1008
- // We will then merge this theme value with our value manually
1009
- props: otherInProps,
1010
- name: "MuiLocalizationProvider"
1011
- });
1012
- const {
1013
- children,
1014
- dateAdapter: DateAdapter,
1015
- dateFormats,
1016
- dateLibInstance,
1017
- adapterLocale,
1018
- localeText: themeLocaleText
1019
- } = props;
1020
- const localeText = React.useMemo(() => _extends({}, themeLocaleText, parentLocaleText, inLocaleText), [themeLocaleText, parentLocaleText, inLocaleText]);
1021
- const adapter = React.useMemo(() => {
1022
- if (!DateAdapter) {
1023
- if (parentAdapter) {
1024
- return parentAdapter;
1025
- }
1026
- return null;
1027
- }
1028
- const dateAdapter = new DateAdapter({
1029
- locale: adapterLocale,
1030
- formats: dateFormats,
1031
- instance: dateLibInstance
1032
- });
1033
- if (!dateAdapter.isMUIAdapter) {
1034
- 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(`
1035
- `));
1036
- }
1037
- return dateAdapter;
1038
- }, [DateAdapter, adapterLocale, dateFormats, dateLibInstance, parentAdapter]);
1039
- const defaultDates = React.useMemo(() => {
1040
- if (!adapter) {
1041
- return null;
1042
- }
1043
- return {
1044
- minDate: adapter.date("1900-01-01T00:00:00.000"),
1045
- maxDate: adapter.date("2099-12-31T00:00:00.000")
1046
- };
1047
- }, [adapter]);
1048
- const contextValue = React.useMemo(() => {
1049
- return {
1050
- utils: adapter,
1051
- adapter,
1052
- defaultDates,
1053
- localeText
1054
- };
1055
- }, [defaultDates, adapter, localeText]);
1056
- return /* @__PURE__ */ _jsx(PickerAdapterContext.Provider, {
1057
- value: contextValue,
1058
- children
1059
- });
1060
- };
1061
- if (process.env.NODE_ENV !== "production") LocalizationProvider.displayName = "LocalizationProvider";
1062
- process.env.NODE_ENV !== "production" ? LocalizationProvider.propTypes = {
1063
- // ----------------------------- Warning --------------------------------
1064
- // | These PropTypes are generated from the TypeScript type definitions |
1065
- // | To update them edit the TypeScript types and run "pnpm proptypes" |
1066
- // ----------------------------------------------------------------------
1067
- /**
1068
- * Locale for the date library you are using
1069
- */
1070
- adapterLocale: import_prop_types.default.any,
1071
- children: import_prop_types.default.node,
1072
- /**
1073
- * Date library adapter class function.
1074
- * @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.
1075
- */
1076
- dateAdapter: import_prop_types.default.func,
1077
- /**
1078
- * Formats that are used for any child pickers
1079
- */
1080
- dateFormats: import_prop_types.default.shape({
1081
- dayOfMonth: import_prop_types.default.string,
1082
- dayOfMonthFull: import_prop_types.default.string,
1083
- fullDate: import_prop_types.default.string,
1084
- fullTime12h: import_prop_types.default.string,
1085
- fullTime24h: import_prop_types.default.string,
1086
- hours12h: import_prop_types.default.string,
1087
- hours24h: import_prop_types.default.string,
1088
- keyboardDate: import_prop_types.default.string,
1089
- keyboardDateTime12h: import_prop_types.default.string,
1090
- keyboardDateTime24h: import_prop_types.default.string,
1091
- meridiem: import_prop_types.default.string,
1092
- minutes: import_prop_types.default.string,
1093
- month: import_prop_types.default.string,
1094
- monthShort: import_prop_types.default.string,
1095
- normalDate: import_prop_types.default.string,
1096
- normalDateWithWeekday: import_prop_types.default.string,
1097
- seconds: import_prop_types.default.string,
1098
- shortDate: import_prop_types.default.string,
1099
- weekday: import_prop_types.default.string,
1100
- weekdayShort: import_prop_types.default.string,
1101
- year: import_prop_types.default.string
1102
- }),
1103
- /**
1104
- * Date library instance you are using, if it has some global overrides
1105
- * ```jsx
1106
- * dateLibInstance={momentTimeZone}
1107
- * ```
1108
- */
1109
- dateLibInstance: import_prop_types.default.any,
1110
- /**
1111
- * Locale for components texts
1112
- */
1113
- localeText: import_prop_types.default.object
1114
- } : void 0;
1115
-
1116
- // node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js
1117
- import * as React3 from "react";
1118
-
1119
- // node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js
1120
- import * as React2 from "react";
1121
- var useEnhancedEffect = typeof window !== "undefined" ? React2.useLayoutEffect : React2.useEffect;
1122
- var useEnhancedEffect_default = useEnhancedEffect;
1123
-
1124
- // node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js
1125
- function useEventCallback(fn) {
1126
- const ref = React3.useRef(fn);
1127
- useEnhancedEffect_default(() => {
1128
- ref.current = fn;
1129
- });
1130
- return React3.useRef((...args) => (
1131
- // @ts-expect-error hide `this`
1132
- (0, ref.current)(...args)
1133
- )).current;
1134
- }
1135
- var useEventCallback_default = useEventCallback;
1136
-
1137
- // node_modules/@mui/x-internals/esm/warning/warning.js
1138
- var warnedOnceCache = /* @__PURE__ */ new Set();
1139
- function warnOnce(message, gravity = "warning") {
1140
- if (process.env.NODE_ENV === "production") {
1141
- return;
1142
- }
1143
- const cleanMessage = Array.isArray(message) ? message.join("\n") : message;
1144
- if (!warnedOnceCache.has(cleanMessage)) {
1145
- warnedOnceCache.add(cleanMessage);
1146
- if (gravity === "error") {
1147
- console.error(cleanMessage);
1148
- } else {
1149
- console.warn(cleanMessage);
1150
- }
1151
- }
1152
- }
1153
-
1154
- // node_modules/@mui/x-date-pickers/esm/AdapterDayjs/AdapterDayjs.js
1
+ import { jsxs, jsx, Fragment } from "react/jsx-runtime";
2
+ import { Stack, Typography, Collapse, useMediaQuery, useColorScheme, List as List$1, ListItemButton as ListItemButton$1, ListItemIcon as ListItemIcon$1, ListItemText as ListItemText$1, ListSubheader as ListSubheader$1, IconButton, Avatar as Avatar$1, Menu, Box as Box$1, ListItem as ListItem$1, InitColorSchemeScript, CssBaseline, AppBar, Toolbar, LinearProgress, ThemeProvider } from "@mui/material";
3
+ import { LocalizationProvider } from "@mui/x-date-pickers";
4
+ import { AdapterDayjs } from "@mui/x-date-pickers/AdapterDayjs";
5
+ import { createIsomorphicFn, createServerFn } from "@tanstack/react-start";
6
+ import { getCookie } from "@tanstack/react-start/server";
1155
7
  import dayjs from "dayjs";
1156
- import weekOfYearPlugin from "dayjs/plugin/weekOfYear.js";
1157
- import customParseFormatPlugin from "dayjs/plugin/customParseFormat.js";
1158
- import localizedFormatPlugin from "dayjs/plugin/localizedFormat.js";
1159
- import isBetweenPlugin from "dayjs/plugin/isBetween.js";
1160
- import advancedFormatPlugin from "dayjs/plugin/advancedFormat.js";
1161
- dayjs.extend(localizedFormatPlugin);
1162
- dayjs.extend(weekOfYearPlugin);
1163
- dayjs.extend(isBetweenPlugin);
1164
- dayjs.extend(advancedFormatPlugin);
1165
- var formatTokenMap = {
1166
- // Year
1167
- YY: "year",
1168
- YYYY: {
1169
- sectionType: "year",
1170
- contentType: "digit",
1171
- maxLength: 4
1172
- },
1173
- // Month
1174
- M: {
1175
- sectionType: "month",
1176
- contentType: "digit",
1177
- maxLength: 2
1178
- },
1179
- MM: "month",
1180
- MMM: {
1181
- sectionType: "month",
1182
- contentType: "letter"
1183
- },
1184
- MMMM: {
1185
- sectionType: "month",
1186
- contentType: "letter"
1187
- },
1188
- // Day of the month
1189
- D: {
1190
- sectionType: "day",
1191
- contentType: "digit",
1192
- maxLength: 2
1193
- },
1194
- DD: "day",
1195
- Do: {
1196
- sectionType: "day",
1197
- contentType: "digit-with-letter"
1198
- },
1199
- // Day of the week
1200
- d: {
1201
- sectionType: "weekDay",
1202
- contentType: "digit",
1203
- maxLength: 2
1204
- },
1205
- dd: {
1206
- sectionType: "weekDay",
1207
- contentType: "letter"
1208
- },
1209
- ddd: {
1210
- sectionType: "weekDay",
1211
- contentType: "letter"
1212
- },
1213
- dddd: {
1214
- sectionType: "weekDay",
1215
- contentType: "letter"
1216
- },
1217
- // Meridiem
1218
- A: "meridiem",
1219
- a: "meridiem",
1220
- // Hours
1221
- H: {
1222
- sectionType: "hours",
1223
- contentType: "digit",
1224
- maxLength: 2
1225
- },
1226
- HH: "hours",
1227
- h: {
1228
- sectionType: "hours",
1229
- contentType: "digit",
1230
- maxLength: 2
1231
- },
1232
- hh: "hours",
1233
- // Minutes
1234
- m: {
1235
- sectionType: "minutes",
1236
- contentType: "digit",
1237
- maxLength: 2
1238
- },
1239
- mm: "minutes",
1240
- // Seconds
1241
- s: {
1242
- sectionType: "seconds",
1243
- contentType: "digit",
1244
- maxLength: 2
1245
- },
1246
- ss: "seconds"
1247
- };
1248
- var defaultFormats = {
1249
- year: "YYYY",
1250
- month: "MMMM",
1251
- monthShort: "MMM",
1252
- dayOfMonth: "D",
1253
- dayOfMonthFull: "Do",
1254
- weekday: "dddd",
1255
- weekdayShort: "dd",
1256
- hours24h: "HH",
1257
- hours12h: "hh",
1258
- meridiem: "A",
1259
- minutes: "mm",
1260
- seconds: "ss",
1261
- fullDate: "ll",
1262
- keyboardDate: "L",
1263
- shortDate: "MMM D",
1264
- normalDate: "D MMMM",
1265
- normalDateWithWeekday: "ddd, MMM D",
1266
- fullTime12h: "hh:mm A",
1267
- fullTime24h: "HH:mm",
1268
- keyboardDateTime12h: "L hh:mm A",
1269
- keyboardDateTime24h: "L HH:mm"
1270
- };
1271
- var 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");
1272
- var 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");
1273
- var AdapterDayjs = class {
1274
- isMUIAdapter = true;
1275
- isTimezoneCompatible = true;
1276
- lib = "dayjs";
1277
- escapedCharacters = {
1278
- start: "[",
1279
- end: "]"
1280
- };
1281
- formatTokenMap = /* @__PURE__ */ (() => formatTokenMap)();
1282
- constructor({
1283
- locale,
1284
- formats
1285
- } = {}) {
1286
- this.locale = locale;
1287
- this.formats = _extends({}, defaultFormats, formats);
1288
- dayjs.extend(customParseFormatPlugin);
1289
- }
1290
- setLocaleToValue = (value) => {
1291
- const expectedLocale = this.getCurrentLocaleCode();
1292
- if (expectedLocale === value.locale()) {
1293
- return value;
1294
- }
1295
- return value.locale(expectedLocale);
1296
- };
1297
- hasUTCPlugin = () => typeof dayjs.utc !== "undefined";
1298
- hasTimezonePlugin = () => typeof dayjs.tz !== "undefined";
1299
- isSame = (value, comparing, comparisonTemplate) => {
1300
- const comparingInValueTimezone = this.setTimezone(comparing, this.getTimezone(value));
1301
- return value.format(comparisonTemplate) === comparingInValueTimezone.format(comparisonTemplate);
1302
- };
1303
- /**
1304
- * Replaces "default" by undefined and "system" by the system timezone before passing it to `dayjs`.
1305
- */
1306
- cleanTimezone = (timezone) => {
1307
- switch (timezone) {
1308
- case "default": {
1309
- return void 0;
1310
- }
1311
- case "system": {
1312
- return dayjs.tz.guess();
1313
- }
1314
- default: {
1315
- return timezone;
1316
- }
1317
- }
1318
- };
1319
- createSystemDate = (value) => {
1320
- let date;
1321
- if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
1322
- const timezone = dayjs.tz.guess();
1323
- if (timezone === "UTC") {
1324
- date = dayjs(value);
1325
- } else {
1326
- date = dayjs.tz(value, timezone);
1327
- }
1328
- } else {
1329
- date = dayjs(value);
1330
- }
1331
- return this.setLocaleToValue(date);
1332
- };
1333
- createUTCDate = (value) => {
1334
- if (!this.hasUTCPlugin()) {
1335
- throw new Error(MISSING_UTC_PLUGIN);
1336
- }
1337
- return this.setLocaleToValue(dayjs.utc(value));
1338
- };
1339
- createTZDate = (value, timezone) => {
1340
- if (!this.hasUTCPlugin()) {
1341
- throw new Error(MISSING_UTC_PLUGIN);
1342
- }
1343
- if (!this.hasTimezonePlugin()) {
1344
- throw new Error(MISSING_TIMEZONE_PLUGIN);
1345
- }
1346
- const keepLocalTime = value !== void 0 && !value.endsWith("Z");
1347
- return this.setLocaleToValue(dayjs(value).tz(this.cleanTimezone(timezone), keepLocalTime));
1348
- };
1349
- getLocaleFormats = () => {
1350
- const locales = dayjs.Ls;
1351
- const locale = this.locale || "en";
1352
- let localeObject = locales[locale];
1353
- if (localeObject === void 0) {
1354
- if (process.env.NODE_ENV !== "production") {
1355
- 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."]);
1356
- }
1357
- localeObject = locales.en;
1358
- }
1359
- return localeObject.formats;
1360
- };
1361
- /**
1362
- * If the new day does not have the same offset as the old one (when switching to summer day time for example),
1363
- * Then dayjs will not automatically adjust the offset (moment does).
1364
- * We have to parse again the value to make sure the `fixOffset` method is applied.
1365
- * See https://github.com/iamkun/dayjs/blob/b3624de619d6e734cd0ffdbbd3502185041c1b60/src/plugin/timezone/index.js#L72
1366
- */
1367
- adjustOffset = (value) => {
1368
- if (!this.hasTimezonePlugin()) {
1369
- return value;
1370
- }
1371
- const timezone = this.getTimezone(value);
1372
- if (timezone !== "UTC") {
1373
- const fixedValue = value.tz(this.cleanTimezone(timezone), true);
1374
- if (fixedValue.$offset === (value.$offset ?? 0)) {
1375
- return value;
1376
- }
1377
- value.$offset = fixedValue.$offset;
1378
- }
1379
- return value;
1380
- };
1381
- date = (value, timezone = "default") => {
1382
- if (value === null) {
1383
- return null;
1384
- }
1385
- if (timezone === "UTC") {
1386
- return this.createUTCDate(value);
1387
- }
1388
- if (timezone === "system" || timezone === "default" && !this.hasTimezonePlugin()) {
1389
- return this.createSystemDate(value);
1390
- }
1391
- return this.createTZDate(value, timezone);
1392
- };
1393
- getInvalidDate = () => dayjs(/* @__PURE__ */ new Date("Invalid date"));
1394
- getTimezone = (value) => {
1395
- if (this.hasTimezonePlugin()) {
1396
- const zone = value.$x?.$timezone;
1397
- if (zone) {
1398
- return zone;
1399
- }
1400
- }
1401
- if (this.hasUTCPlugin() && value.isUTC()) {
1402
- return "UTC";
1403
- }
1404
- return "system";
1405
- };
1406
- setTimezone = (value, timezone) => {
1407
- if (this.getTimezone(value) === timezone) {
1408
- return value;
1409
- }
1410
- if (timezone === "UTC") {
1411
- if (!this.hasUTCPlugin()) {
1412
- throw new Error(MISSING_UTC_PLUGIN);
1413
- }
1414
- return value.utc();
1415
- }
1416
- if (timezone === "system") {
1417
- return value.local();
1418
- }
1419
- if (!this.hasTimezonePlugin()) {
1420
- if (timezone === "default") {
1421
- return value;
1422
- }
1423
- throw new Error(MISSING_TIMEZONE_PLUGIN);
1424
- }
1425
- return this.setLocaleToValue(dayjs.tz(value, this.cleanTimezone(timezone)));
1426
- };
1427
- toJsDate = (value) => {
1428
- return value.toDate();
1429
- };
1430
- parse = (value, format) => {
1431
- if (value === "") {
1432
- return null;
1433
- }
1434
- return dayjs(value, format, this.locale, true);
1435
- };
1436
- getCurrentLocaleCode = () => {
1437
- return this.locale || "en";
1438
- };
1439
- is12HourCycleInCurrentLocale = () => {
1440
- return /A|a/.test(this.getLocaleFormats().LT || "");
1441
- };
1442
- expandFormat = (format) => {
1443
- const localeFormats = this.getLocaleFormats();
1444
- const t = (formatBis) => formatBis.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (_, a, b) => a || b.slice(1));
1445
- return format.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (_, a, b) => {
1446
- const B = b && b.toUpperCase();
1447
- return a || localeFormats[b] || t(localeFormats[B]);
1448
- });
1449
- };
1450
- isValid = (value) => {
1451
- if (value == null) {
1452
- return false;
1453
- }
1454
- return value.isValid();
1455
- };
1456
- format = (value, formatKey) => {
1457
- return this.formatByString(value, this.formats[formatKey]);
1458
- };
1459
- formatByString = (value, formatString) => {
1460
- return this.setLocaleToValue(value).format(formatString);
1461
- };
1462
- formatNumber = (numberToFormat) => {
1463
- return numberToFormat;
1464
- };
1465
- isEqual = (value, comparing) => {
1466
- if (value === null && comparing === null) {
1467
- return true;
1468
- }
1469
- if (value === null || comparing === null) {
1470
- return false;
1471
- }
1472
- return value.toDate().getTime() === comparing.toDate().getTime();
1473
- };
1474
- isSameYear = (value, comparing) => {
1475
- return this.isSame(value, comparing, "YYYY");
1476
- };
1477
- isSameMonth = (value, comparing) => {
1478
- return this.isSame(value, comparing, "YYYY-MM");
1479
- };
1480
- isSameDay = (value, comparing) => {
1481
- return this.isSame(value, comparing, "YYYY-MM-DD");
1482
- };
1483
- isSameHour = (value, comparing) => {
1484
- return value.isSame(comparing, "hour");
1485
- };
1486
- isAfter = (value, comparing) => {
1487
- return value > comparing;
1488
- };
1489
- isAfterYear = (value, comparing) => {
1490
- if (!this.hasUTCPlugin()) {
1491
- return value.isAfter(comparing, "year");
1492
- }
1493
- return !this.isSameYear(value, comparing) && value.utc() > comparing.utc();
1494
- };
1495
- isAfterDay = (value, comparing) => {
1496
- if (!this.hasUTCPlugin()) {
1497
- return value.isAfter(comparing, "day");
1498
- }
1499
- return !this.isSameDay(value, comparing) && value.utc() > comparing.utc();
1500
- };
1501
- isBefore = (value, comparing) => {
1502
- return value < comparing;
1503
- };
1504
- isBeforeYear = (value, comparing) => {
1505
- if (!this.hasUTCPlugin()) {
1506
- return value.isBefore(comparing, "year");
1507
- }
1508
- return !this.isSameYear(value, comparing) && value.utc() < comparing.utc();
1509
- };
1510
- isBeforeDay = (value, comparing) => {
1511
- if (!this.hasUTCPlugin()) {
1512
- return value.isBefore(comparing, "day");
1513
- }
1514
- return !this.isSameDay(value, comparing) && value.utc() < comparing.utc();
1515
- };
1516
- isWithinRange = (value, [start, end]) => {
1517
- return value >= start && value <= end;
1518
- };
1519
- startOfYear = (value) => {
1520
- return this.adjustOffset(value.startOf("year"));
1521
- };
1522
- startOfMonth = (value) => {
1523
- return this.adjustOffset(value.startOf("month"));
1524
- };
1525
- startOfWeek = (value) => {
1526
- return this.adjustOffset(this.setLocaleToValue(value).startOf("week"));
1527
- };
1528
- startOfDay = (value) => {
1529
- return this.adjustOffset(value.startOf("day"));
1530
- };
1531
- endOfYear = (value) => {
1532
- return this.adjustOffset(value.endOf("year"));
1533
- };
1534
- endOfMonth = (value) => {
1535
- return this.adjustOffset(value.endOf("month"));
1536
- };
1537
- endOfWeek = (value) => {
1538
- return this.adjustOffset(this.setLocaleToValue(value).endOf("week"));
1539
- };
1540
- endOfDay = (value) => {
1541
- return this.adjustOffset(value.endOf("day"));
1542
- };
1543
- addYears = (value, amount) => {
1544
- return this.adjustOffset(value.add(amount, "year"));
1545
- };
1546
- addMonths = (value, amount) => {
1547
- return this.adjustOffset(value.add(amount, "month"));
1548
- };
1549
- addWeeks = (value, amount) => {
1550
- return this.adjustOffset(value.add(amount, "week"));
1551
- };
1552
- addDays = (value, amount) => {
1553
- return this.adjustOffset(value.add(amount, "day"));
1554
- };
1555
- addHours = (value, amount) => {
1556
- return this.adjustOffset(value.add(amount, "hour"));
1557
- };
1558
- addMinutes = (value, amount) => {
1559
- return this.adjustOffset(value.add(amount, "minute"));
1560
- };
1561
- addSeconds = (value, amount) => {
1562
- return this.adjustOffset(value.add(amount, "second"));
1563
- };
1564
- getYear = (value) => {
1565
- return value.year();
1566
- };
1567
- getMonth = (value) => {
1568
- return value.month();
1569
- };
1570
- getDate = (value) => {
1571
- return value.date();
1572
- };
1573
- getHours = (value) => {
1574
- return value.hour();
1575
- };
1576
- getMinutes = (value) => {
1577
- return value.minute();
1578
- };
1579
- getSeconds = (value) => {
1580
- return value.second();
1581
- };
1582
- getMilliseconds = (value) => {
1583
- return value.millisecond();
1584
- };
1585
- setYear = (value, year) => {
1586
- return this.adjustOffset(value.set("year", year));
1587
- };
1588
- setMonth = (value, month) => {
1589
- return this.adjustOffset(value.set("month", month));
1590
- };
1591
- setDate = (value, date) => {
1592
- return this.adjustOffset(value.set("date", date));
1593
- };
1594
- setHours = (value, hours) => {
1595
- return this.adjustOffset(value.set("hour", hours));
1596
- };
1597
- setMinutes = (value, minutes) => {
1598
- return this.adjustOffset(value.set("minute", minutes));
1599
- };
1600
- setSeconds = (value, seconds) => {
1601
- return this.adjustOffset(value.set("second", seconds));
1602
- };
1603
- setMilliseconds = (value, milliseconds) => {
1604
- return this.adjustOffset(value.set("millisecond", milliseconds));
1605
- };
1606
- getDaysInMonth = (value) => {
1607
- return value.daysInMonth();
1608
- };
1609
- getWeekArray = (value) => {
1610
- const start = this.startOfWeek(this.startOfMonth(value));
1611
- const end = this.endOfWeek(this.endOfMonth(value));
1612
- let count = 0;
1613
- let current = start;
1614
- const nestedWeeks = [];
1615
- while (current < end) {
1616
- const weekNumber = Math.floor(count / 7);
1617
- nestedWeeks[weekNumber] = nestedWeeks[weekNumber] || [];
1618
- nestedWeeks[weekNumber].push(current);
1619
- current = this.addDays(current, 1);
1620
- count += 1;
1621
- }
1622
- return nestedWeeks;
1623
- };
1624
- getWeekNumber = (value) => {
1625
- return value.week();
1626
- };
1627
- getDayOfWeek(value) {
1628
- return value.day() + 1;
1629
- }
1630
- getYearRange = ([start, end]) => {
1631
- const startDate = this.startOfYear(start);
1632
- const endDate = this.endOfYear(end);
1633
- const years = [];
1634
- let current = startDate;
1635
- while (this.isBefore(current, endDate)) {
1636
- years.push(current);
1637
- current = this.addYears(current, 1);
1638
- }
1639
- return years;
1640
- };
1641
- };
1642
-
1643
- // src/providers/LayoutProvider.tsx
1644
- import { createServerFn } from "@tanstack/react-start";
1645
- import { getCookie as getCookie2 } from "@tanstack/react-start/server";
1646
- import dayjs2 from "dayjs";
1647
8
  import i18n from "i18next";
1648
9
  import LanguageDetector from "i18next-browser-languagedetector";
1649
- import { useEffect as useEffect3, useEffectEvent } from "react";
1650
- import { initReactI18next } from "react-i18next";
10
+ import { useState, useId, useRef, Fragment as Fragment$1, useEffect, useEffectEvent } from "react";
11
+ import { useTranslation, initReactI18next } from "react-i18next";
1651
12
  import { resources } from "virtual:wcz-layout";
1652
- import z from "zod";
1653
-
1654
- // src/providers/DialogsProvider.tsx
1655
- import { useId, useRef as useRef2, useState } from "react";
1656
- import { jsx, jsxs } from "react/jsx-runtime";
13
+ import z__default from "zod";
14
+ import useEventCallback from "@mui/utils/useEventCallback";
15
+ import { D as DialogsContext, u as useDialogs } from "./DialogsHooks-BlUsVlfv.js";
16
+ import { b as authClient, u as useGetTheme } from "./auth-client-D9snEe6B.js";
17
+ import Menu$1 from "@mui/icons-material/Menu";
18
+ import MenuOpen from "@mui/icons-material/MenuOpen";
19
+ import { styled, useTheme } from "@mui/material/styles";
20
+ import { useIsFetching, useIsMutating } from "@tanstack/react-query";
21
+ import { c as clientEnv } from "./env-CoxTjaDr.js";
22
+ import Box from "@mui/material/Box";
23
+ import Drawer from "@mui/material/Drawer";
24
+ import { useNavigate, useRouterState } from "@tanstack/react-router";
25
+ import Divider from "@mui/material/Divider";
26
+ import List from "@mui/material/List";
27
+ import ListSubheader from "@mui/material/ListSubheader";
28
+ import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
29
+ import Avatar from "@mui/material/Avatar";
30
+ import ListItem from "@mui/material/ListItem";
31
+ import ListItemButton from "@mui/material/ListItemButton";
32
+ import ListItemIcon from "@mui/material/ListItemIcon";
33
+ import ListItemText from "@mui/material/ListItemText";
34
+ import Paper from "@mui/material/Paper";
35
+ import Popper from "@mui/material/Popper";
36
+ import Typography$1 from "@mui/material/Typography";
37
+ import { R as RouterListItemButton } from "./RouterListItemButton-Cx7rXEfm.js";
38
+ import "@mui/icons-material/AccountCircle";
39
+ import ArrowBack from "@mui/icons-material/ArrowBack";
40
+ import Brightness4 from "@mui/icons-material/Brightness4";
41
+ import ChevronRight from "@mui/icons-material/ChevronRight";
42
+ import DarkMode from "@mui/icons-material/DarkMode";
43
+ import LightMode from "@mui/icons-material/LightMode";
44
+ import Login from "@mui/icons-material/Login";
45
+ import Logout from "@mui/icons-material/Logout";
46
+ import SettingsBrightness from "@mui/icons-material/SettingsBrightness";
47
+ import Translate from "@mui/icons-material/Translate";
48
+ import Done from "@mui/icons-material/Done";
49
+ import { r } from "./utils-DKyKGba7.js";
1657
50
  function DialogsProvider({ children, unmountAfter = 1e3 }) {
1658
51
  const [stack, setStack] = useState([]);
1659
52
  const keyPrefix = useId();
1660
- const nextId = useRef2(0);
1661
- const dialogMetadata = useRef2(/* @__PURE__ */ new WeakMap());
1662
- const requestDialog = useEventCallback_default(function open(Component, payload, options = {}) {
53
+ const nextId = useRef(0);
54
+ const dialogMetadata = useRef(/* @__PURE__ */ new WeakMap());
55
+ const requestDialog = useEventCallback(function open(Component, payload, options = {}) {
1663
56
  const { onClose = async () => {
1664
57
  } } = options;
1665
58
  let resolve;
@@ -1685,13 +78,13 @@ function DialogsProvider({ children, unmountAfter = 1e3 }) {
1685
78
  setStack((previousStack) => previousStack.filter((entry) => entry.promise !== dialog));
1686
79
  dialogMetadata.current.delete(dialog);
1687
80
  };
1688
- const closeDialogUi = useEventCallback_default(function closeDialogUi2(dialog) {
81
+ const closeDialogUi = useEventCallback(function closeDialogUi2(dialog) {
1689
82
  setStack(
1690
83
  (previousStack) => previousStack.map((entry) => entry.promise === dialog ? { ...entry, open: false } : entry)
1691
84
  );
1692
85
  setTimeout(() => removeDialogFromStack(dialog), unmountAfter);
1693
86
  });
1694
- const closeDialog = useEventCallback_default(async function closeDialog2(dialog, result) {
87
+ const closeDialog = useEventCallback(async function closeDialog2(dialog, result) {
1695
88
  const entryToClose = dialogMetadata.current.get(dialog);
1696
89
  if (!entryToClose) {
1697
90
  throw new Error("Dialog not found in stack");
@@ -1719,58 +112,15 @@ function DialogsProvider({ children, unmountAfter = 1e3 }) {
1719
112
  ))
1720
113
  ] });
1721
114
  }
1722
-
1723
- // src/components/core/Layout.tsx
1724
- import Menu2 from "@mui/icons-material/Menu";
1725
- import MenuOpen from "@mui/icons-material/MenuOpen";
1726
- import { AppBar, Box as Box4, CssBaseline, IconButton as IconButton2, InitColorSchemeScript, LinearProgress, Toolbar } from "@mui/material";
1727
- import { styled as styled2 } from "@mui/material/styles";
1728
- import { useIsFetching, useIsMutating } from "@tanstack/react-query";
1729
- import { Fragment as Fragment5, useState as useState5 } from "react";
1730
- import { createIsomorphicFn } from "@tanstack/react-start";
1731
- import { getCookie } from "@tanstack/react-start/server";
1732
-
1733
- // src/components/core/AppTitle.tsx
1734
- import { Chip, Stack, Typography } from "@mui/material";
1735
- import { jsx as jsx2, jsxs as jsxs2 } from "react/jsx-runtime";
1736
- var AppTitle = () => {
1737
- return /* @__PURE__ */ jsxs2(Stack, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
1738
- /* @__PURE__ */ jsx2("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
1739
- /* @__PURE__ */ jsx2(Typography, { variant: "h6", children: clientEnv.VITE_APP_TITLE }),
1740
- import.meta.env.DEV && /* @__PURE__ */ jsx2(Chip, { size: "small", label: "TEST", color: "info" })
115
+ const AppTitle = () => {
116
+ return /* @__PURE__ */ jsxs(Stack, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
117
+ /* @__PURE__ */ jsx("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
118
+ /* @__PURE__ */ jsx(Typography, { variant: "h6", children: clientEnv.VITE_APP_TITLE }),
119
+ false
1741
120
  ] });
1742
121
  };
1743
-
1744
- // src/components/core/navigation/NavigationRail.tsx
1745
- import { useMediaQuery } from "@mui/material";
1746
- import Box2 from "@mui/material/Box";
1747
- import Drawer from "@mui/material/Drawer";
1748
- import { useTheme } from "@mui/material/styles";
1749
- import { useNavigate, useRouterState } from "@tanstack/react-router";
1750
-
1751
- // src/components/core/navigation/NavigationList.tsx
1752
- import Divider from "@mui/material/Divider";
1753
- import List from "@mui/material/List";
1754
- import ListSubheader from "@mui/material/ListSubheader";
1755
- import { Fragment as Fragment3, useEffect as useEffect2, useState as useState3 } from "react";
1756
-
1757
- // src/components/core/navigation/NavigationListItem.tsx
1758
- import ExpandMoreIcon from "@mui/icons-material/ExpandMore";
1759
- import { Collapse } from "@mui/material";
1760
- import Avatar from "@mui/material/Avatar";
1761
- import Box from "@mui/material/Box";
1762
- import ListItem from "@mui/material/ListItem";
1763
- import ListItemButton from "@mui/material/ListItemButton";
1764
- import ListItemIcon from "@mui/material/ListItemIcon";
1765
- import ListItemText from "@mui/material/ListItemText";
1766
- import Paper from "@mui/material/Paper";
1767
- import Popper from "@mui/material/Popper";
1768
- import { styled } from "@mui/material/styles";
1769
- import Typography2 from "@mui/material/Typography";
1770
- import { Fragment, useState as useState2 } from "react";
1771
- import { Fragment as Fragment2, jsx as jsx3, jsxs as jsxs3 } from "react/jsx-runtime";
1772
- var ICON_SIZE = 34;
1773
- var StyledNavButton = styled(ListItemButton)(({ theme }) => ({
122
+ const ICON_SIZE = 34;
123
+ const StyledNavButton = styled(ListItemButton)(({ theme }) => ({
1774
124
  borderRadius: 8,
1775
125
  "&.Mui-selected": {
1776
126
  "& .MuiListItemIcon-root, & .MuiTypography-root, & .MuiSvgIcon-root": {
@@ -1790,7 +140,7 @@ var StyledNavButton = styled(ListItemButton)(({ theme }) => ({
1790
140
  backgroundColor: (theme.vars ?? theme).palette.action.active
1791
141
  }
1792
142
  }));
1793
- var StyledRouterButton = styled(RouterListItemButton)(({ theme }) => ({
143
+ const StyledRouterButton = styled(RouterListItemButton)(({ theme }) => ({
1794
144
  borderRadius: 8,
1795
145
  "&.Mui-selected": {
1796
146
  "& .MuiListItemIcon-root, & .MuiTypography-root, & .MuiSvgIcon-root": {
@@ -1810,15 +160,15 @@ var StyledRouterButton = styled(RouterListItemButton)(({ theme }) => ({
1810
160
  backgroundColor: (theme.vars ?? theme).palette.action.active
1811
161
  }
1812
162
  }));
1813
- var IconOrAvatar = ({ item, collapsed }) => {
163
+ const IconOrAvatar = ({ item, collapsed }) => {
1814
164
  if (item.icon || collapsed) {
1815
- return /* @__PURE__ */ jsxs3(Box, { sx: collapsed ? { position: "absolute", left: "50%", top: "calc(50% - 6px)", transform: "translate(-50%, -50%)" } : {}, children: [
1816
- /* @__PURE__ */ jsxs3(ListItemIcon, { sx: { display: "flex", alignItems: "center", justifyContent: "center", minWidth: ICON_SIZE }, children: [
165
+ return /* @__PURE__ */ jsxs(Box, { sx: collapsed ? { position: "absolute", left: "50%", top: "calc(50% - 6px)", transform: "translate(-50%, -50%)" } : {}, children: [
166
+ /* @__PURE__ */ jsxs(ListItemIcon, { sx: { display: "flex", alignItems: "center", justifyContent: "center", minWidth: ICON_SIZE }, children: [
1817
167
  item.icon ?? null,
1818
- !item.icon && collapsed ? /* @__PURE__ */ jsx3(Avatar, { sx: { width: ICON_SIZE - 7, height: ICON_SIZE - 7, fontSize: 12 }, children: item.title }) : null
168
+ !item.icon && collapsed ? /* @__PURE__ */ jsx(Avatar, { sx: { width: ICON_SIZE - 7, height: ICON_SIZE - 7, fontSize: 12 }, children: item.title }) : null
1819
169
  ] }),
1820
- collapsed ? /* @__PURE__ */ jsx3(
1821
- Typography2,
170
+ collapsed ? /* @__PURE__ */ jsx(
171
+ Typography$1,
1822
172
  {
1823
173
  variant: "caption",
1824
174
  sx: {
@@ -1841,7 +191,7 @@ var IconOrAvatar = ({ item, collapsed }) => {
1841
191
  }
1842
192
  return null;
1843
193
  };
1844
- var MiniPopover = ({ open, anchorEl, children }) => /* @__PURE__ */ jsx3(
194
+ const MiniPopover = ({ open, anchorEl, children }) => /* @__PURE__ */ jsx(
1845
195
  Popper,
1846
196
  {
1847
197
  open,
@@ -1852,7 +202,7 @@ var MiniPopover = ({ open, anchorEl, children }) => /* @__PURE__ */ jsx3(
1852
202
  { name: "preventOverflow", options: { padding: 8 } },
1853
203
  { name: "flip", options: { fallbackPlacements: ["right-end", "left-start"] } }
1854
204
  ],
1855
- children: /* @__PURE__ */ jsx3(
205
+ children: /* @__PURE__ */ jsx(
1856
206
  Paper,
1857
207
  {
1858
208
  sx: {
@@ -1867,9 +217,9 @@ var MiniPopover = ({ open, anchorEl, children }) => /* @__PURE__ */ jsx3(
1867
217
  )
1868
218
  }
1869
219
  );
1870
- var NavigationListItem = ({ item, isOpen, selected, disabled, collapsed, isSidebarFullyExpanded = true, isSidebarFullyCollapsed, onClick, renderNested, onClose }) => {
1871
- const [hoveredPopoverItem, setHoveredPopoverItem] = useState2(null);
1872
- const [anchorElement, setAnchorElement] = useState2(null);
220
+ const NavigationListItem = ({ item, isOpen, selected, disabled, collapsed, isSidebarFullyExpanded = true, isSidebarFullyCollapsed, onClick, renderNested, onClose }) => {
221
+ const [hoveredPopoverItem, setHoveredPopoverItem] = useState(null);
222
+ const [anchorElement, setAnchorElement] = useState(null);
1873
223
  const chevronSx = () => {
1874
224
  if (collapsed && isSidebarFullyCollapsed && item.children) {
1875
225
  return {
@@ -1894,9 +244,9 @@ var NavigationListItem = ({ item, isOpen, selected, disabled, collapsed, isSideb
1894
244
  disabled,
1895
245
  sx: { px: 1.4, height: collapsed ? 60 : 48 }
1896
246
  };
1897
- const buttonContent = /* @__PURE__ */ jsxs3(Fragment2, { children: [
1898
- /* @__PURE__ */ jsx3(IconOrAvatar, { item, collapsed }),
1899
- !collapsed && /* @__PURE__ */ jsx3(
247
+ const buttonContent = /* @__PURE__ */ jsxs(Fragment, { children: [
248
+ /* @__PURE__ */ jsx(IconOrAvatar, { item, collapsed }),
249
+ !collapsed && /* @__PURE__ */ jsx(
1900
250
  ListItemText,
1901
251
  {
1902
252
  primary: item.title,
@@ -1904,9 +254,9 @@ var NavigationListItem = ({ item, isOpen, selected, disabled, collapsed, isSideb
1904
254
  sx: { ml: 1.2, flex: 1, minWidth: 0, "& .MuiTypography-root": { whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis" } }
1905
255
  }
1906
256
  ),
1907
- item.children ? /* @__PURE__ */ jsx3(ExpandMoreIcon, { sx: chevronSx }) : null
257
+ item.children ? /* @__PURE__ */ jsx(ExpandMoreIcon, { sx: chevronSx }) : null
1908
258
  ] });
1909
- const listItem = /* @__PURE__ */ jsxs3(
259
+ const listItem = /* @__PURE__ */ jsxs(
1910
260
  ListItem,
1911
261
  {
1912
262
  ...item.children && collapsed ? {
@@ -1920,7 +270,7 @@ var NavigationListItem = ({ item, isOpen, selected, disabled, collapsed, isSideb
1920
270
  } : {},
1921
271
  sx: { py: 0, px: 1, overflowX: "hidden" },
1922
272
  children: [
1923
- shouldJustExpand ? /* @__PURE__ */ jsx3(StyledNavButton, { ...buttonProps, onClick: () => onClick?.(item), children: buttonContent }) : /* @__PURE__ */ jsx3(
273
+ shouldJustExpand ? /* @__PURE__ */ jsx(StyledNavButton, { ...buttonProps, onClick: () => onClick?.(item), children: buttonContent }) : /* @__PURE__ */ jsx(
1924
274
  StyledRouterButton,
1925
275
  {
1926
276
  ...buttonProps,
@@ -1932,28 +282,25 @@ var NavigationListItem = ({ item, isOpen, selected, disabled, collapsed, isSideb
1932
282
  children: buttonContent
1933
283
  }
1934
284
  ),
1935
- item.children && collapsed ? /* @__PURE__ */ jsx3(MiniPopover, { open: item.title === hoveredPopoverItem, anchorEl: anchorElement, children: renderNested?.(item.children) }) : null
285
+ item.children && collapsed ? /* @__PURE__ */ jsx(MiniPopover, { open: item.title === hoveredPopoverItem, anchorEl: anchorElement, children: renderNested?.(item.children) }) : null
1936
286
  ]
1937
287
  }
1938
288
  );
1939
- return /* @__PURE__ */ jsxs3(Fragment, { children: [
289
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
1940
290
  listItem,
1941
- item.children && !collapsed ? /* @__PURE__ */ jsx3(Collapse, { in: isOpen, timeout: "auto", unmountOnExit: true, children: renderNested?.(item.children) }) : null
291
+ item.children && !collapsed ? /* @__PURE__ */ jsx(Collapse, { in: isOpen, timeout: "auto", unmountOnExit: true, children: renderNested?.(item.children) }) : null
1942
292
  ] }, item.to);
1943
293
  };
1944
-
1945
- // src/components/core/navigation/NavigationList.tsx
1946
- import { jsx as jsx4 } from "react/jsx-runtime";
1947
- var isPageItem = (item) => !("kind" in item);
1948
- var isDivider = (item) => "kind" in item && item.kind === "divider";
1949
- var isHeader = (item) => "kind" in item && item.kind === "header";
1950
- var NavigationList = ({ subNavigation, depth = 0, collapsed, isPopover, isSidebarFullyExpanded = true, isSidebarFullyCollapsed, expandedWidth, renderItem, activePath, onNavigate, onClose }) => {
1951
- const [openKeys, setOpenKeys] = useState3([]);
1952
- useEffect2(() => {
294
+ const isPageItem = (item) => !("kind" in item);
295
+ const isDivider = (item) => "kind" in item && item.kind === "divider";
296
+ const isHeader = (item) => "kind" in item && item.kind === "header";
297
+ const NavigationList = ({ subNavigation, depth = 0, collapsed, isPopover, isSidebarFullyExpanded = true, isSidebarFullyCollapsed, expandedWidth, renderItem, activePath, onNavigate, onClose }) => {
298
+ const [openKeys, setOpenKeys] = useState([]);
299
+ useEffect(() => {
1953
300
  if (collapsed) setOpenKeys([]);
1954
301
  }, [collapsed]);
1955
302
  const toggleKey = (key) => setOpenKeys((previous) => previous.includes(key) ? previous.filter((k) => k !== key) : [...previous, key]);
1956
- const renderNested = (children) => /* @__PURE__ */ jsx4(
303
+ const renderNested = (children) => /* @__PURE__ */ jsx(
1957
304
  NavigationList,
1958
305
  {
1959
306
  subNavigation: children,
@@ -1966,7 +313,7 @@ var NavigationList = ({ subNavigation, depth = 0, collapsed, isPopover, isSideba
1966
313
  }
1967
314
  );
1968
315
  const filteredNavigation = subNavigation.filter((nav) => !nav.hidden);
1969
- return /* @__PURE__ */ jsx4(
316
+ return /* @__PURE__ */ jsx(
1970
317
  List,
1971
318
  {
1972
319
  sx: {
@@ -1979,7 +326,7 @@ var NavigationList = ({ subNavigation, depth = 0, collapsed, isPopover, isSideba
1979
326
  },
1980
327
  children: filteredNavigation.map((navItem, index) => {
1981
328
  if (isHeader(navItem)) {
1982
- return /* @__PURE__ */ jsx4(
329
+ return /* @__PURE__ */ jsx(
1983
330
  ListSubheader,
1984
331
  {
1985
332
  sx: {
@@ -2002,13 +349,13 @@ var NavigationList = ({ subNavigation, depth = 0, collapsed, isPopover, isSideba
2002
349
  }
2003
350
  if (isDivider(navItem)) {
2004
351
  const nextItem = filteredNavigation[index + 1];
2005
- return /* @__PURE__ */ jsx4("li", { children: /* @__PURE__ */ jsx4(Divider, { sx: { mx: 1, mt: 1, mb: isHeader(nextItem) && !collapsed ? 0 : 1 } }) }, `divider-${depth}-${index}`);
352
+ return /* @__PURE__ */ jsx("li", { children: /* @__PURE__ */ jsx(Divider, { sx: { mx: 1, mt: 1, mb: isHeader(nextItem) && !collapsed ? 0 : 1 } }) }, `divider-${depth}-${index}`);
2006
353
  }
2007
354
  if (!isPageItem(navItem)) return null;
2008
355
  const key = `item-${depth}-${index}`;
2009
356
  const uniqueItemKey = `${depth}-${index}-${navItem.title}`;
2010
- if (renderItem) return /* @__PURE__ */ jsx4(Fragment3, { children: renderItem(navItem, { collapsed: !!collapsed }) }, key);
2011
- return /* @__PURE__ */ jsx4(
357
+ if (renderItem) return /* @__PURE__ */ jsx(Fragment$1, { children: renderItem(navItem, { collapsed: !!collapsed }) }, key);
358
+ return /* @__PURE__ */ jsx(
2012
359
  NavigationListItem,
2013
360
  {
2014
361
  item: navItem,
@@ -2027,19 +374,16 @@ var NavigationList = ({ subNavigation, depth = 0, collapsed, isPopover, isSideba
2027
374
  }
2028
375
  );
2029
376
  };
2030
-
2031
- // src/components/core/navigation/NavigationRail.tsx
2032
- import { jsx as jsx5 } from "react/jsx-runtime";
2033
- var MINI_WIDTH = 84;
2034
- var EXPANDED_WIDTH = 320;
2035
- var TOOLBAR_HEIGHT = 64;
2036
- var NavigationRail = ({ navigation, expanded, setExpanded }) => {
377
+ const MINI_WIDTH = 84;
378
+ const EXPANDED_WIDTH = 320;
379
+ const TOOLBAR_HEIGHT = 64;
380
+ const NavigationRail = ({ navigation, expanded, setExpanded }) => {
2037
381
  const navigate = useNavigate();
2038
382
  const routerState = useRouterState();
2039
383
  const theme = useTheme();
2040
384
  const showPermanent = useMediaQuery(theme.breakpoints.up("sm"));
2041
- const drawerContent = (collapsed) => /* @__PURE__ */ jsx5(
2042
- Box2,
385
+ const drawerContent = (collapsed) => /* @__PURE__ */ jsx(
386
+ Box,
2043
387
  {
2044
388
  component: "nav",
2045
389
  sx: {
@@ -2052,7 +396,7 @@ var NavigationRail = ({ navigation, expanded, setExpanded }) => {
2052
396
  overflowX: "hidden",
2053
397
  pt: navigation[0] && isHeader(navigation[0]) && !collapsed ? 0 : 2
2054
398
  },
2055
- children: /* @__PURE__ */ jsx5(
399
+ children: /* @__PURE__ */ jsx(
2056
400
  NavigationList,
2057
401
  {
2058
402
  subNavigation: navigation,
@@ -2068,7 +412,7 @@ var NavigationRail = ({ navigation, expanded, setExpanded }) => {
2068
412
  }
2069
413
  );
2070
414
  if (showPermanent)
2071
- return /* @__PURE__ */ jsx5(
415
+ return /* @__PURE__ */ jsx(
2072
416
  Drawer,
2073
417
  {
2074
418
  variant: "permanent",
@@ -2086,29 +430,12 @@ var NavigationRail = ({ navigation, expanded, setExpanded }) => {
2086
430
  children: drawerContent(!expanded)
2087
431
  }
2088
432
  );
2089
- return /* @__PURE__ */ jsx5(Drawer, { open: expanded, onClose: () => setExpanded(false), children: drawerContent(!expanded) });
433
+ return /* @__PURE__ */ jsx(Drawer, { open: expanded, onClose: () => setExpanded(false), children: drawerContent(!expanded) });
2090
434
  };
2091
-
2092
- // src/components/core/ToolbarAccount.tsx
2093
- import AccountCircle from "@mui/icons-material/AccountCircle";
2094
- import ArrowBack from "@mui/icons-material/ArrowBack";
2095
- import Brightness4 from "@mui/icons-material/Brightness4";
2096
- import ChevronRight from "@mui/icons-material/ChevronRight";
2097
- import DarkMode from "@mui/icons-material/DarkMode";
2098
- import LightMode from "@mui/icons-material/LightMode";
2099
- import Login from "@mui/icons-material/Login";
2100
- import Logout from "@mui/icons-material/Logout";
2101
- import SettingsBrightness from "@mui/icons-material/SettingsBrightness";
2102
- import Translate from "@mui/icons-material/Translate";
2103
- import { Avatar as Avatar2, Box as Box3, IconButton, List as List2, ListItem as ListItem2, ListItemButton as ListItemButton2, ListItemIcon as ListItemIcon2, ListItemText as ListItemText2, ListSubheader as ListSubheader2, Menu, Typography as Typography3, useColorScheme } from "@mui/material";
2104
- import { Fragment as Fragment4, useState as useState4 } from "react";
2105
- import { useTranslation } from "react-i18next";
2106
- import Done from "@mui/icons-material/Done";
2107
- import { jsx as jsx6, jsxs as jsxs4 } from "react/jsx-runtime";
2108
- var capitalize = (value) => value && value.charAt(0).toUpperCase() + value.slice(1);
2109
- var ToolbarAccount = () => {
2110
- const [anchorElement, setAnchorElement] = useState4();
2111
- const [tab, setTab] = useState4("settings");
435
+ const capitalize = (value) => value && value.charAt(0).toUpperCase() + value.slice(1);
436
+ const ToolbarAccount = () => {
437
+ const [anchorElement, setAnchorElement] = useState();
438
+ const [tab, setTab] = useState("settings");
2112
439
  const open = Boolean(anchorElement);
2113
440
  const { t, i18n: i18n2 } = useTranslation();
2114
441
  const { mode, setMode } = useColorScheme();
@@ -2127,7 +454,6 @@ var ToolbarAccount = () => {
2127
454
  department: "IT"
2128
455
  };
2129
456
  const usernameInitials = () => {
2130
- if (!user.name) return "";
2131
457
  const splittedName = user.name.split(" ");
2132
458
  return `${splittedName[0][0]}${splittedName.length > 1 ? splittedName[1][0] : ""}`;
2133
459
  };
@@ -2137,24 +463,24 @@ var ToolbarAccount = () => {
2137
463
  setTimeout(() => setTab("settings"), 300);
2138
464
  };
2139
465
  const changeTab = (newTab) => () => setTab(newTab);
2140
- const settings = /* @__PURE__ */ jsxs4(List2, { component: "nav", subheader: /* @__PURE__ */ jsx6(ListSubheader2, { sx: { backgroundColor: "transparent" }, children: t("Layout.Settings") }), children: [
2141
- /* @__PURE__ */ jsxs4(ListItemButton2, { onClick: changeTab("theme"), sx: { py: 0.3 }, children: [
2142
- /* @__PURE__ */ jsx6(ListItemIcon2, { children: /* @__PURE__ */ jsx6(Brightness4, {}) }),
2143
- /* @__PURE__ */ jsx6(ListItemText2, { primary: t("Layout.Appearance"), secondary: colorModes.find((m) => m.mode === mode)?.label }),
2144
- /* @__PURE__ */ jsx6(ChevronRight, {})
466
+ const settings = /* @__PURE__ */ jsxs(List$1, { component: "nav", subheader: /* @__PURE__ */ jsx(ListSubheader$1, { sx: { backgroundColor: "transparent" }, children: t("Layout.Settings") }), children: [
467
+ /* @__PURE__ */ jsxs(ListItemButton$1, { onClick: changeTab("theme"), sx: { py: 0.3 }, children: [
468
+ /* @__PURE__ */ jsx(ListItemIcon$1, { children: /* @__PURE__ */ jsx(Brightness4, {}) }),
469
+ /* @__PURE__ */ jsx(ListItemText$1, { primary: t("Layout.Appearance"), secondary: colorModes.find((m) => m.mode === mode)?.label }),
470
+ /* @__PURE__ */ jsx(ChevronRight, {})
2145
471
  ] }),
2146
- /* @__PURE__ */ jsxs4(ListItemButton2, { onClick: changeTab("language"), sx: { py: 0.3 }, children: [
2147
- /* @__PURE__ */ jsx6(ListItemIcon2, { children: /* @__PURE__ */ jsx6(Translate, {}) }),
2148
- /* @__PURE__ */ jsx6(ListItemText2, { primary: t("Layout.Language"), secondary: capitalize(languageDisplayNames.of(i18n2.language)) }),
2149
- /* @__PURE__ */ jsx6(ChevronRight, {})
472
+ /* @__PURE__ */ jsxs(ListItemButton$1, { onClick: changeTab("language"), sx: { py: 0.3 }, children: [
473
+ /* @__PURE__ */ jsx(ListItemIcon$1, { children: /* @__PURE__ */ jsx(Translate, {}) }),
474
+ /* @__PURE__ */ jsx(ListItemText$1, { primary: t("Layout.Language"), secondary: capitalize(languageDisplayNames.of(i18n2.language)) }),
475
+ /* @__PURE__ */ jsx(ChevronRight, {})
2150
476
  ] })
2151
477
  ] });
2152
- const theme = /* @__PURE__ */ jsx6(List2, { subheader: /* @__PURE__ */ jsxs4(ListSubheader2, { onClick: changeTab("settings"), sx: { backgroundColor: "transparent", display: "flex", alignItems: "center", px: 1, cursor: "pointer" }, children: [
2153
- /* @__PURE__ */ jsx6(IconButton, { size: "small", sx: { mr: 0.5 }, children: /* @__PURE__ */ jsx6(ArrowBack, { fontSize: "small" }) }),
478
+ const theme = /* @__PURE__ */ jsx(List$1, { subheader: /* @__PURE__ */ jsxs(ListSubheader$1, { onClick: changeTab("settings"), sx: { backgroundColor: "transparent", display: "flex", alignItems: "center", px: 1, cursor: "pointer" }, children: [
479
+ /* @__PURE__ */ jsx(IconButton, { size: "small", sx: { mr: 0.5 }, children: /* @__PURE__ */ jsx(ArrowBack, { fontSize: "small" }) }),
2154
480
  " ",
2155
481
  t("Layout.Appearance")
2156
- ] }), children: colorModes.map(({ mode: modeValue, icon: Icon, label }) => /* @__PURE__ */ jsxs4(
2157
- ListItemButton2,
482
+ ] }), children: colorModes.map(({ mode: modeValue, icon: Icon, label }) => /* @__PURE__ */ jsxs(
483
+ ListItemButton$1,
2158
484
  {
2159
485
  onClick: () => {
2160
486
  setMode(modeValue);
@@ -2162,62 +488,62 @@ var ToolbarAccount = () => {
2162
488
  },
2163
489
  selected: mode === modeValue,
2164
490
  children: [
2165
- /* @__PURE__ */ jsx6(ListItemIcon2, { children: /* @__PURE__ */ jsx6(Icon, {}) }),
2166
- /* @__PURE__ */ jsx6(ListItemText2, { primary: label })
491
+ /* @__PURE__ */ jsx(ListItemIcon$1, { children: /* @__PURE__ */ jsx(Icon, {}) }),
492
+ /* @__PURE__ */ jsx(ListItemText$1, { primary: label })
2167
493
  ]
2168
494
  },
2169
495
  modeValue
2170
496
  )) });
2171
- const language = /* @__PURE__ */ jsx6(List2, { subheader: /* @__PURE__ */ jsxs4(ListSubheader2, { onClick: changeTab("settings"), sx: { backgroundColor: "transparent", display: "flex", alignItems: "center", px: 1, cursor: "pointer" }, children: [
2172
- /* @__PURE__ */ jsx6(IconButton, { size: "small", sx: { mr: 0.5 }, children: /* @__PURE__ */ jsx6(ArrowBack, { fontSize: "small" }) }),
497
+ const language = /* @__PURE__ */ jsx(List$1, { subheader: /* @__PURE__ */ jsxs(ListSubheader$1, { onClick: changeTab("settings"), sx: { backgroundColor: "transparent", display: "flex", alignItems: "center", px: 1, cursor: "pointer" }, children: [
498
+ /* @__PURE__ */ jsx(IconButton, { size: "small", sx: { mr: 0.5 }, children: /* @__PURE__ */ jsx(ArrowBack, { fontSize: "small" }) }),
2173
499
  " ",
2174
500
  t("Layout.Language")
2175
501
  ] }), children: supportedLanguages.map(
2176
- (languageCode) => /* @__PURE__ */ jsxs4(
2177
- ListItemButton2,
502
+ (languageCode) => /* @__PURE__ */ jsxs(
503
+ ListItemButton$1,
2178
504
  {
2179
505
  onClick: () => i18n2.changeLanguage(languageCode).finally(() => closeMenu()),
2180
506
  selected: i18n2.resolvedLanguage === languageCode,
2181
507
  children: [
2182
- /* @__PURE__ */ jsx6(ListItemIcon2, { children: i18n2.resolvedLanguage === languageCode && /* @__PURE__ */ jsx6(Done, {}) }),
2183
- /* @__PURE__ */ jsx6(ListItemText2, { primary: capitalize(languageDisplayNames.of(languageCode)) })
508
+ /* @__PURE__ */ jsx(ListItemIcon$1, { children: i18n2.resolvedLanguage === languageCode && /* @__PURE__ */ jsx(Done, {}) }),
509
+ /* @__PURE__ */ jsx(ListItemText$1, { primary: capitalize(languageDisplayNames.of(languageCode)) })
2184
510
  ]
2185
511
  },
2186
512
  languageCode
2187
513
  )
2188
514
  ) });
2189
- return /* @__PURE__ */ jsxs4(Fragment4, { children: [
2190
- /* @__PURE__ */ jsx6(IconButton, { size: "small", edge: "end", onClick: openMenu, children: user.name ? /* @__PURE__ */ jsx6(Avatar2, { sx: { width: { xs: 32, sm: 40 }, height: { xs: 32, sm: 40 }, bgcolor: "primary.main" }, children: /* @__PURE__ */ jsx6(Typography3, { variant: "subtitle2", sx: { fontWeight: "bold", lineHeight: 0 }, children: usernameInitials() }) }) : /* @__PURE__ */ jsx6(AccountCircle, { fontSize: "large" }) }),
2191
- /* @__PURE__ */ jsx6(Menu, { anchorEl: anchorElement, open, onClose: closeMenu, children: /* @__PURE__ */ jsxs4(Box3, { sx: { width: 240 }, children: [
2192
- /* @__PURE__ */ jsx6(List2, { children: session ? /* @__PURE__ */ jsxs4(Fragment4, { children: [
2193
- /* @__PURE__ */ jsx6(ListItem2, { children: /* @__PURE__ */ jsx6(ListItemText2, { primary: user.name, secondary: /* @__PURE__ */ jsxs4("span", { children: [
2194
- /* @__PURE__ */ jsx6("span", { children: user.employeeId }),
2195
- /* @__PURE__ */ jsx6("br", {}),
2196
- /* @__PURE__ */ jsx6("span", { children: user.department })
515
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
516
+ /* @__PURE__ */ jsx(IconButton, { size: "small", edge: "end", onClick: openMenu, children: /* @__PURE__ */ jsx(Avatar$1, { sx: { width: { xs: 32, sm: 40 }, height: { xs: 32, sm: 40 }, bgcolor: "primary.main" }, children: /* @__PURE__ */ jsx(Typography, { variant: "subtitle2", sx: { fontWeight: "bold", lineHeight: 0 }, children: usernameInitials() }) }) }),
517
+ /* @__PURE__ */ jsx(Menu, { anchorEl: anchorElement, open, onClose: closeMenu, children: /* @__PURE__ */ jsxs(Box$1, { sx: { width: 240 }, children: [
518
+ /* @__PURE__ */ jsx(List$1, { children: session ? /* @__PURE__ */ jsxs(Fragment$1, { children: [
519
+ /* @__PURE__ */ jsx(ListItem$1, { children: /* @__PURE__ */ jsx(ListItemText$1, { primary: user.name, secondary: /* @__PURE__ */ jsxs("span", { children: [
520
+ /* @__PURE__ */ jsx("span", { children: user.employeeId }),
521
+ /* @__PURE__ */ jsx("br", {}),
522
+ /* @__PURE__ */ jsx("span", { children: user.department })
2197
523
  ] }) }) }),
2198
- /* @__PURE__ */ jsxs4(
2199
- ListItemButton2,
524
+ /* @__PURE__ */ jsxs(
525
+ ListItemButton$1,
2200
526
  {
2201
527
  onClick: () => authClient.signOut({}, {
2202
528
  onSuccess: () => closeMenu(),
2203
529
  onError: ({ error }) => alert(error.message)
2204
530
  }),
2205
531
  children: [
2206
- /* @__PURE__ */ jsx6(ListItemIcon2, { children: /* @__PURE__ */ jsx6(Logout, { color: "error" }) }),
2207
- /* @__PURE__ */ jsx6(ListItemText2, { primary: t("Layout.Logout") })
532
+ /* @__PURE__ */ jsx(ListItemIcon$1, { children: /* @__PURE__ */ jsx(Logout, { color: "error" }) }),
533
+ /* @__PURE__ */ jsx(ListItemText$1, { primary: t("Layout.Logout") })
2208
534
  ]
2209
535
  }
2210
536
  )
2211
- ] }) : /* @__PURE__ */ jsxs4(
2212
- ListItemButton2,
537
+ ] }) : /* @__PURE__ */ jsxs(
538
+ ListItemButton$1,
2213
539
  {
2214
540
  onClick: () => authClient.signIn.social({ provider: "microsoft" }, {
2215
541
  onSuccess: () => closeMenu(),
2216
542
  onError: ({ error }) => alert(error.message)
2217
543
  }),
2218
544
  children: [
2219
- /* @__PURE__ */ jsx6(ListItemIcon2, { children: /* @__PURE__ */ jsx6(Login, { color: "success" }) }),
2220
- /* @__PURE__ */ jsx6(ListItemText2, { primary: t("Layout.LogIn") })
545
+ /* @__PURE__ */ jsx(ListItemIcon$1, { children: /* @__PURE__ */ jsx(Login, { color: "success" }) }),
546
+ /* @__PURE__ */ jsx(ListItemText$1, { primary: t("Layout.LogIn") })
2221
547
  ]
2222
548
  }
2223
549
  ) }),
@@ -2227,33 +553,30 @@ var ToolbarAccount = () => {
2227
553
  ] }) })
2228
554
  ] });
2229
555
  };
2230
-
2231
- // src/components/core/Layout.tsx
2232
- import { jsx as jsx7, jsxs as jsxs5 } from "react/jsx-runtime";
2233
- var YEAR_IN_SECONDS = 60 * 60 * 24 * 365;
2234
- var getNavigationOpenStatus = createIsomorphicFn().server(() => {
556
+ const YEAR_IN_SECONDS = 60 * 60 * 24 * 365;
557
+ const getNavigationOpenStatus = createIsomorphicFn().server(() => {
2235
558
  const cookie = getCookie("navigationOpen");
2236
559
  return cookie === "true";
2237
560
  }).client(() => {
2238
561
  const cookie = document.cookie.split("; ").find((row) => row.startsWith("navigationOpen="));
2239
562
  return cookie ? cookie.split("=")[1] === "true" : false;
2240
563
  });
2241
- var DrawerHeader = styled2("div")(({ theme }) => ({
564
+ const DrawerHeader = styled("div")(({ theme }) => ({
2242
565
  display: "flex",
2243
566
  alignItems: "center",
2244
567
  justifyContent: "flex-end",
2245
568
  padding: theme.spacing(0, 1),
2246
569
  ...theme.mixins.toolbar
2247
570
  }));
2248
- var Layout = (props) => {
2249
- const [navigationOpen, setNavigationOpen] = useState5(getNavigationOpenStatus);
571
+ const Layout = (props) => {
572
+ const [navigationOpen, setNavigationOpen] = useState(getNavigationOpenStatus);
2250
573
  const isFetching = !!useIsFetching();
2251
574
  const isMutating = !!useIsMutating();
2252
- return /* @__PURE__ */ jsxs5(Fragment5, { children: [
2253
- /* @__PURE__ */ jsx7(InitColorSchemeScript, {}),
2254
- /* @__PURE__ */ jsx7(CssBaseline, {}),
2255
- /* @__PURE__ */ jsxs5(Box4, { sx: { display: "flex", height: "100dvh", maxHeight: "100dvh", overflow: "hidden", width: "100%" }, children: [
2256
- /* @__PURE__ */ jsx7(
575
+ return /* @__PURE__ */ jsxs(Fragment$1, { children: [
576
+ /* @__PURE__ */ jsx(InitColorSchemeScript, {}),
577
+ /* @__PURE__ */ jsx(CssBaseline, {}),
578
+ /* @__PURE__ */ jsxs(Box$1, { sx: { display: "flex", height: "100dvh", maxHeight: "100dvh", overflow: "hidden", width: "100%" }, children: [
579
+ /* @__PURE__ */ jsx(
2257
580
  AppBar,
2258
581
  {
2259
582
  color: "transparent",
@@ -2263,9 +586,9 @@ var Layout = (props) => {
2263
586
  borderColor: theme.vars?.palette.divider,
2264
587
  boxShadow: "none"
2265
588
  }),
2266
- children: /* @__PURE__ */ jsxs5(Toolbar, { children: [
2267
- props.navigation && /* @__PURE__ */ jsx7(
2268
- IconButton2,
589
+ children: /* @__PURE__ */ jsxs(Toolbar, { children: [
590
+ props.navigation && /* @__PURE__ */ jsx(
591
+ IconButton,
2269
592
  {
2270
593
  onClick: () => {
2271
594
  setNavigationOpen((previous) => {
@@ -2275,15 +598,15 @@ var Layout = (props) => {
2275
598
  });
2276
599
  },
2277
600
  sx: { marginRight: 2 },
2278
- children: navigationOpen ? /* @__PURE__ */ jsx7(MenuOpen, {}) : /* @__PURE__ */ jsx7(Menu2, {})
601
+ children: navigationOpen ? /* @__PURE__ */ jsx(MenuOpen, {}) : /* @__PURE__ */ jsx(Menu$1, {})
2279
602
  }
2280
603
  ),
2281
- /* @__PURE__ */ jsx7(AppTitle, {}),
2282
- /* @__PURE__ */ jsx7(ToolbarAccount, {})
604
+ /* @__PURE__ */ jsx(AppTitle, {}),
605
+ /* @__PURE__ */ jsx(ToolbarAccount, {})
2283
606
  ] })
2284
607
  }
2285
608
  ),
2286
- props.navigation && /* @__PURE__ */ jsx7(
609
+ props.navigation && /* @__PURE__ */ jsx(
2287
610
  NavigationRail,
2288
611
  {
2289
612
  navigation: props.navigation,
@@ -2294,18 +617,15 @@ var Layout = (props) => {
2294
617
  }
2295
618
  }
2296
619
  ),
2297
- /* @__PURE__ */ jsxs5(Box4, { component: "main", sx: { flexGrow: 1, display: "flex", flexDirection: "column", minWidth: 0, height: "100%", overflow: "hidden" }, children: [
2298
- /* @__PURE__ */ jsx7(DrawerHeader, {}),
2299
- /* @__PURE__ */ jsx7(Box4, { sx: { flex: 1, overflow: "auto", position: "relative" }, children: props.children })
620
+ /* @__PURE__ */ jsxs(Box$1, { component: "main", sx: { flexGrow: 1, display: "flex", flexDirection: "column", minWidth: 0, height: "100%", overflow: "hidden" }, children: [
621
+ /* @__PURE__ */ jsx(DrawerHeader, {}),
622
+ /* @__PURE__ */ jsx(Box$1, { sx: { flex: 1, overflow: "auto", position: "relative" }, children: props.children })
2300
623
  ] })
2301
624
  ] }),
2302
- (isFetching || isMutating) && /* @__PURE__ */ jsx7(LinearProgress, { sx: { position: "fixed", top: { xs: 56, sm: 64 }, left: 0, right: 0 } })
625
+ (isFetching || isMutating) && /* @__PURE__ */ jsx(LinearProgress, { sx: { position: "fixed", top: { xs: 56, sm: 64 }, left: 0, right: 0 } })
2303
626
  ] });
2304
627
  };
2305
-
2306
- // src/providers/LayoutProvider.tsx
2307
- import { jsx as jsx8 } from "react/jsx-runtime";
2308
- var YEAR_IN_MINUTES = 60 * 24 * 365;
628
+ const YEAR_IN_MINUTES = 60 * 24 * 365;
2309
629
  i18n.use(LanguageDetector).use(initReactI18next).init({
2310
630
  resources,
2311
631
  fallbackLng: "en",
@@ -2316,59 +636,30 @@ i18n.use(LanguageDetector).use(initReactI18next).init({
2316
636
  },
2317
637
  interpolation: { escapeValue: false }
2318
638
  });
2319
- var LayoutProvider = ({ navigation, theme, children }) => {
639
+ const LayoutProvider = ({ navigation, theme, children }) => {
2320
640
  const createdTheme = useGetTheme(theme);
2321
641
  const languageChangedHandler = useEffectEvent(() => {
2322
- z.config(z.core.locales[i18n.language]());
2323
- dayjs2.locale(i18n.language);
642
+ z__default.config(z__default.core.locales[i18n.language]());
643
+ dayjs.locale(i18n.language);
2324
644
  });
2325
- useEffect3(() => {
645
+ useEffect(() => {
2326
646
  languageChangedHandler();
2327
647
  i18n.on("languageChanged", languageChangedHandler);
2328
648
  return () => {
2329
649
  i18n.off("languageChanged", languageChangedHandler);
2330
650
  };
2331
651
  }, []);
2332
- return /* @__PURE__ */ jsx8(ThemeProvider, { theme: createdTheme, children: /* @__PURE__ */ jsx8(LocalizationProvider, { dateAdapter: AdapterDayjs, adapterLocale: i18n.language, children: /* @__PURE__ */ jsx8(DialogsProvider, { children: /* @__PURE__ */ jsx8(Layout, { navigation, children }) }) }, i18n.language) });
652
+ return /* @__PURE__ */ jsx(ThemeProvider, { theme: createdTheme, children: /* @__PURE__ */ jsx(LocalizationProvider, { dateAdapter: AdapterDayjs, adapterLocale: i18n.language, children: /* @__PURE__ */ jsx(DialogsProvider, { children: /* @__PURE__ */ jsx(Layout, { navigation, children }) }) }, i18n.language) });
2333
653
  };
2334
- var setSSRLanguage = createServerFn().handler(async () => {
2335
- const language = getCookie2(i18n.services.languageDetector.options.lookupCookie) || "en";
2336
- dayjs2.locale(language);
2337
- z.config(z.core.locales[language]());
654
+ const setSSRLanguage = createServerFn().handler(async () => {
655
+ const language = getCookie(i18n.services.languageDetector.options.lookupCookie) || "en";
656
+ dayjs.locale(language);
657
+ z__default.config(z__default.core.locales[language]());
2338
658
  await i18n.changeLanguage(language);
2339
659
  });
2340
660
  export {
2341
661
  LayoutProvider,
2342
- rootRouteHead,
662
+ r as rootRouteHead,
2343
663
  setSSRLanguage
2344
664
  };
2345
- /*! Bundled license information:
2346
-
2347
- react-is/cjs/react-is.production.min.js:
2348
- (** @license React v16.13.1
2349
- * react-is.production.min.js
2350
- *
2351
- * Copyright (c) Facebook, Inc. and its affiliates.
2352
- *
2353
- * This source code is licensed under the MIT license found in the
2354
- * LICENSE file in the root directory of this source tree.
2355
- *)
2356
-
2357
- react-is/cjs/react-is.development.js:
2358
- (** @license React v16.13.1
2359
- * react-is.development.js
2360
- *
2361
- * Copyright (c) Facebook, Inc. and its affiliates.
2362
- *
2363
- * This source code is licensed under the MIT license found in the
2364
- * LICENSE file in the root directory of this source tree.
2365
- *)
2366
-
2367
- object-assign/index.js:
2368
- (*
2369
- object-assign
2370
- (c) Sindre Sorhus
2371
- @license MIT
2372
- *)
2373
- */
2374
- //# sourceMappingURL=index.js.map
665
+ //# sourceMappingURL=index.js.map