wcz-test 6.7.5 → 6.7.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs ADDED
@@ -0,0 +1,3373 @@
1
+ "use strict";
2
+ var __create = Object.create;
3
+ var __defProp = Object.defineProperty;
4
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropNames = Object.getOwnPropertyNames;
6
+ var __getProtoOf = Object.getPrototypeOf;
7
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
8
+ var __commonJS = (cb, mod) => function __require() {
9
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
10
+ };
11
+ var __export = (target, all) => {
12
+ for (var name in all)
13
+ __defProp(target, name, { get: all[name], enumerable: true });
14
+ };
15
+ var __copyProps = (to, from, except, desc) => {
16
+ if (from && typeof from === "object" || typeof from === "function") {
17
+ for (let key of __getOwnPropNames(from))
18
+ if (!__hasOwnProp.call(to, key) && key !== except)
19
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
20
+ }
21
+ return to;
22
+ };
23
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
24
+ // If the importer is in node compatibility mode or this is not an ESM
25
+ // file that has been converted to a CommonJS file using a Babel-
26
+ // compatible transform (i.e. "__esModule" has not been set), then set
27
+ // "default" to the CommonJS "module.exports" for node compatibility.
28
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
29
+ mod
30
+ ));
31
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
32
+
33
+ // node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js
34
+ var require_react_is_production_min = __commonJS({
35
+ "node_modules/prop-types/node_modules/react-is/cjs/react-is.production.min.js"(exports2) {
36
+ "use strict";
37
+ var b = "function" === typeof Symbol && Symbol.for;
38
+ var c = b ? Symbol.for("react.element") : 60103;
39
+ var d = b ? Symbol.for("react.portal") : 60106;
40
+ var e = b ? Symbol.for("react.fragment") : 60107;
41
+ var f = b ? Symbol.for("react.strict_mode") : 60108;
42
+ var g = b ? Symbol.for("react.profiler") : 60114;
43
+ var h = b ? Symbol.for("react.provider") : 60109;
44
+ var k = b ? Symbol.for("react.context") : 60110;
45
+ var l = b ? Symbol.for("react.async_mode") : 60111;
46
+ var m = b ? Symbol.for("react.concurrent_mode") : 60111;
47
+ var n = b ? Symbol.for("react.forward_ref") : 60112;
48
+ var p = b ? Symbol.for("react.suspense") : 60113;
49
+ var q = b ? Symbol.for("react.suspense_list") : 60120;
50
+ var r = b ? Symbol.for("react.memo") : 60115;
51
+ var t = b ? Symbol.for("react.lazy") : 60116;
52
+ var v = b ? Symbol.for("react.block") : 60121;
53
+ var w = b ? Symbol.for("react.fundamental") : 60117;
54
+ var x = b ? Symbol.for("react.responder") : 60118;
55
+ var y = b ? Symbol.for("react.scope") : 60119;
56
+ function z3(a) {
57
+ if ("object" === typeof a && null !== a) {
58
+ var u = a.$$typeof;
59
+ switch (u) {
60
+ case c:
61
+ switch (a = a.type, a) {
62
+ case l:
63
+ case m:
64
+ case e:
65
+ case g:
66
+ case f:
67
+ case p:
68
+ return a;
69
+ default:
70
+ switch (a = a && a.$$typeof, a) {
71
+ case k:
72
+ case n:
73
+ case t:
74
+ case r:
75
+ case h:
76
+ return a;
77
+ default:
78
+ return u;
79
+ }
80
+ }
81
+ case d:
82
+ return u;
83
+ }
84
+ }
85
+ }
86
+ function A(a) {
87
+ return z3(a) === m;
88
+ }
89
+ exports2.AsyncMode = l;
90
+ exports2.ConcurrentMode = m;
91
+ exports2.ContextConsumer = k;
92
+ exports2.ContextProvider = h;
93
+ exports2.Element = c;
94
+ exports2.ForwardRef = n;
95
+ exports2.Fragment = e;
96
+ exports2.Lazy = t;
97
+ exports2.Memo = r;
98
+ exports2.Portal = d;
99
+ exports2.Profiler = g;
100
+ exports2.StrictMode = f;
101
+ exports2.Suspense = p;
102
+ exports2.isAsyncMode = function(a) {
103
+ return A(a) || z3(a) === l;
104
+ };
105
+ exports2.isConcurrentMode = A;
106
+ exports2.isContextConsumer = function(a) {
107
+ return z3(a) === k;
108
+ };
109
+ exports2.isContextProvider = function(a) {
110
+ return z3(a) === h;
111
+ };
112
+ exports2.isElement = function(a) {
113
+ return "object" === typeof a && null !== a && a.$$typeof === c;
114
+ };
115
+ exports2.isForwardRef = function(a) {
116
+ return z3(a) === n;
117
+ };
118
+ exports2.isFragment = function(a) {
119
+ return z3(a) === e;
120
+ };
121
+ exports2.isLazy = function(a) {
122
+ return z3(a) === t;
123
+ };
124
+ exports2.isMemo = function(a) {
125
+ return z3(a) === r;
126
+ };
127
+ exports2.isPortal = function(a) {
128
+ return z3(a) === d;
129
+ };
130
+ exports2.isProfiler = function(a) {
131
+ return z3(a) === g;
132
+ };
133
+ exports2.isStrictMode = function(a) {
134
+ return z3(a) === f;
135
+ };
136
+ exports2.isSuspense = function(a) {
137
+ return z3(a) === p;
138
+ };
139
+ exports2.isValidElementType = function(a) {
140
+ 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);
141
+ };
142
+ exports2.typeOf = z3;
143
+ }
144
+ });
145
+
146
+ // node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js
147
+ var require_react_is_development = __commonJS({
148
+ "node_modules/prop-types/node_modules/react-is/cjs/react-is.development.js"(exports2) {
149
+ "use strict";
150
+ if (process.env.NODE_ENV !== "production") {
151
+ (function() {
152
+ "use strict";
153
+ var hasSymbol = typeof Symbol === "function" && Symbol.for;
154
+ var REACT_ELEMENT_TYPE = hasSymbol ? Symbol.for("react.element") : 60103;
155
+ var REACT_PORTAL_TYPE = hasSymbol ? Symbol.for("react.portal") : 60106;
156
+ var REACT_FRAGMENT_TYPE = hasSymbol ? Symbol.for("react.fragment") : 60107;
157
+ var REACT_STRICT_MODE_TYPE = hasSymbol ? Symbol.for("react.strict_mode") : 60108;
158
+ var REACT_PROFILER_TYPE = hasSymbol ? Symbol.for("react.profiler") : 60114;
159
+ var REACT_PROVIDER_TYPE = hasSymbol ? Symbol.for("react.provider") : 60109;
160
+ var REACT_CONTEXT_TYPE = hasSymbol ? Symbol.for("react.context") : 60110;
161
+ var REACT_ASYNC_MODE_TYPE = hasSymbol ? Symbol.for("react.async_mode") : 60111;
162
+ var REACT_CONCURRENT_MODE_TYPE = hasSymbol ? Symbol.for("react.concurrent_mode") : 60111;
163
+ var REACT_FORWARD_REF_TYPE = hasSymbol ? Symbol.for("react.forward_ref") : 60112;
164
+ var REACT_SUSPENSE_TYPE = hasSymbol ? Symbol.for("react.suspense") : 60113;
165
+ var REACT_SUSPENSE_LIST_TYPE = hasSymbol ? Symbol.for("react.suspense_list") : 60120;
166
+ var REACT_MEMO_TYPE = hasSymbol ? Symbol.for("react.memo") : 60115;
167
+ var REACT_LAZY_TYPE = hasSymbol ? Symbol.for("react.lazy") : 60116;
168
+ var REACT_BLOCK_TYPE = hasSymbol ? Symbol.for("react.block") : 60121;
169
+ var REACT_FUNDAMENTAL_TYPE = hasSymbol ? Symbol.for("react.fundamental") : 60117;
170
+ var REACT_RESPONDER_TYPE = hasSymbol ? Symbol.for("react.responder") : 60118;
171
+ var REACT_SCOPE_TYPE = hasSymbol ? Symbol.for("react.scope") : 60119;
172
+ function isValidElementType(type) {
173
+ return typeof type === "string" || typeof type === "function" || // Note: its typeof might be other than 'symbol' or 'number' if it's a polyfill.
174
+ 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);
175
+ }
176
+ function typeOf(object) {
177
+ if (typeof object === "object" && object !== null) {
178
+ var $$typeof = object.$$typeof;
179
+ switch ($$typeof) {
180
+ case REACT_ELEMENT_TYPE:
181
+ var type = object.type;
182
+ switch (type) {
183
+ case REACT_ASYNC_MODE_TYPE:
184
+ case REACT_CONCURRENT_MODE_TYPE:
185
+ case REACT_FRAGMENT_TYPE:
186
+ case REACT_PROFILER_TYPE:
187
+ case REACT_STRICT_MODE_TYPE:
188
+ case REACT_SUSPENSE_TYPE:
189
+ return type;
190
+ default:
191
+ var $$typeofType = type && type.$$typeof;
192
+ switch ($$typeofType) {
193
+ case REACT_CONTEXT_TYPE:
194
+ case REACT_FORWARD_REF_TYPE:
195
+ case REACT_LAZY_TYPE:
196
+ case REACT_MEMO_TYPE:
197
+ case REACT_PROVIDER_TYPE:
198
+ return $$typeofType;
199
+ default:
200
+ return $$typeof;
201
+ }
202
+ }
203
+ case REACT_PORTAL_TYPE:
204
+ return $$typeof;
205
+ }
206
+ }
207
+ return void 0;
208
+ }
209
+ var AsyncMode = REACT_ASYNC_MODE_TYPE;
210
+ var ConcurrentMode = REACT_CONCURRENT_MODE_TYPE;
211
+ var ContextConsumer = REACT_CONTEXT_TYPE;
212
+ var ContextProvider = REACT_PROVIDER_TYPE;
213
+ var Element = REACT_ELEMENT_TYPE;
214
+ var ForwardRef = REACT_FORWARD_REF_TYPE;
215
+ var Fragment6 = REACT_FRAGMENT_TYPE;
216
+ var Lazy = REACT_LAZY_TYPE;
217
+ var Memo = REACT_MEMO_TYPE;
218
+ var Portal = REACT_PORTAL_TYPE;
219
+ var Profiler = REACT_PROFILER_TYPE;
220
+ var StrictMode = REACT_STRICT_MODE_TYPE;
221
+ var Suspense = REACT_SUSPENSE_TYPE;
222
+ var hasWarnedAboutDeprecatedIsAsyncMode = false;
223
+ function isAsyncMode(object) {
224
+ {
225
+ if (!hasWarnedAboutDeprecatedIsAsyncMode) {
226
+ hasWarnedAboutDeprecatedIsAsyncMode = true;
227
+ 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.");
228
+ }
229
+ }
230
+ return isConcurrentMode(object) || typeOf(object) === REACT_ASYNC_MODE_TYPE;
231
+ }
232
+ function isConcurrentMode(object) {
233
+ return typeOf(object) === REACT_CONCURRENT_MODE_TYPE;
234
+ }
235
+ function isContextConsumer(object) {
236
+ return typeOf(object) === REACT_CONTEXT_TYPE;
237
+ }
238
+ function isContextProvider(object) {
239
+ return typeOf(object) === REACT_PROVIDER_TYPE;
240
+ }
241
+ function isElement(object) {
242
+ return typeof object === "object" && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
243
+ }
244
+ function isForwardRef(object) {
245
+ return typeOf(object) === REACT_FORWARD_REF_TYPE;
246
+ }
247
+ function isFragment(object) {
248
+ return typeOf(object) === REACT_FRAGMENT_TYPE;
249
+ }
250
+ function isLazy(object) {
251
+ return typeOf(object) === REACT_LAZY_TYPE;
252
+ }
253
+ function isMemo(object) {
254
+ return typeOf(object) === REACT_MEMO_TYPE;
255
+ }
256
+ function isPortal(object) {
257
+ return typeOf(object) === REACT_PORTAL_TYPE;
258
+ }
259
+ function isProfiler(object) {
260
+ return typeOf(object) === REACT_PROFILER_TYPE;
261
+ }
262
+ function isStrictMode(object) {
263
+ return typeOf(object) === REACT_STRICT_MODE_TYPE;
264
+ }
265
+ function isSuspense(object) {
266
+ return typeOf(object) === REACT_SUSPENSE_TYPE;
267
+ }
268
+ exports2.AsyncMode = AsyncMode;
269
+ exports2.ConcurrentMode = ConcurrentMode;
270
+ exports2.ContextConsumer = ContextConsumer;
271
+ exports2.ContextProvider = ContextProvider;
272
+ exports2.Element = Element;
273
+ exports2.ForwardRef = ForwardRef;
274
+ exports2.Fragment = Fragment6;
275
+ exports2.Lazy = Lazy;
276
+ exports2.Memo = Memo;
277
+ exports2.Portal = Portal;
278
+ exports2.Profiler = Profiler;
279
+ exports2.StrictMode = StrictMode;
280
+ exports2.Suspense = Suspense;
281
+ exports2.isAsyncMode = isAsyncMode;
282
+ exports2.isConcurrentMode = isConcurrentMode;
283
+ exports2.isContextConsumer = isContextConsumer;
284
+ exports2.isContextProvider = isContextProvider;
285
+ exports2.isElement = isElement;
286
+ exports2.isForwardRef = isForwardRef;
287
+ exports2.isFragment = isFragment;
288
+ exports2.isLazy = isLazy;
289
+ exports2.isMemo = isMemo;
290
+ exports2.isPortal = isPortal;
291
+ exports2.isProfiler = isProfiler;
292
+ exports2.isStrictMode = isStrictMode;
293
+ exports2.isSuspense = isSuspense;
294
+ exports2.isValidElementType = isValidElementType;
295
+ exports2.typeOf = typeOf;
296
+ })();
297
+ }
298
+ }
299
+ });
300
+
301
+ // node_modules/prop-types/node_modules/react-is/index.js
302
+ var require_react_is = __commonJS({
303
+ "node_modules/prop-types/node_modules/react-is/index.js"(exports2, module2) {
304
+ "use strict";
305
+ if (process.env.NODE_ENV === "production") {
306
+ module2.exports = require_react_is_production_min();
307
+ } else {
308
+ module2.exports = require_react_is_development();
309
+ }
310
+ }
311
+ });
312
+
313
+ // node_modules/object-assign/index.js
314
+ var require_object_assign = __commonJS({
315
+ "node_modules/object-assign/index.js"(exports2, module2) {
316
+ "use strict";
317
+ var getOwnPropertySymbols = Object.getOwnPropertySymbols;
318
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
319
+ var propIsEnumerable = Object.prototype.propertyIsEnumerable;
320
+ function toObject(val) {
321
+ if (val === null || val === void 0) {
322
+ throw new TypeError("Object.assign cannot be called with null or undefined");
323
+ }
324
+ return Object(val);
325
+ }
326
+ function shouldUseNative() {
327
+ try {
328
+ if (!Object.assign) {
329
+ return false;
330
+ }
331
+ var test1 = new String("abc");
332
+ test1[5] = "de";
333
+ if (Object.getOwnPropertyNames(test1)[0] === "5") {
334
+ return false;
335
+ }
336
+ var test2 = {};
337
+ for (var i = 0; i < 10; i++) {
338
+ test2["_" + String.fromCharCode(i)] = i;
339
+ }
340
+ var order2 = Object.getOwnPropertyNames(test2).map(function(n) {
341
+ return test2[n];
342
+ });
343
+ if (order2.join("") !== "0123456789") {
344
+ return false;
345
+ }
346
+ var test3 = {};
347
+ "abcdefghijklmnopqrst".split("").forEach(function(letter) {
348
+ test3[letter] = letter;
349
+ });
350
+ if (Object.keys(Object.assign({}, test3)).join("") !== "abcdefghijklmnopqrst") {
351
+ return false;
352
+ }
353
+ return true;
354
+ } catch (err) {
355
+ return false;
356
+ }
357
+ }
358
+ module2.exports = shouldUseNative() ? Object.assign : function(target, source) {
359
+ var from;
360
+ var to = toObject(target);
361
+ var symbols;
362
+ for (var s = 1; s < arguments.length; s++) {
363
+ from = Object(arguments[s]);
364
+ for (var key in from) {
365
+ if (hasOwnProperty.call(from, key)) {
366
+ to[key] = from[key];
367
+ }
368
+ }
369
+ if (getOwnPropertySymbols) {
370
+ symbols = getOwnPropertySymbols(from);
371
+ for (var i = 0; i < symbols.length; i++) {
372
+ if (propIsEnumerable.call(from, symbols[i])) {
373
+ to[symbols[i]] = from[symbols[i]];
374
+ }
375
+ }
376
+ }
377
+ }
378
+ return to;
379
+ };
380
+ }
381
+ });
382
+
383
+ // node_modules/prop-types/lib/ReactPropTypesSecret.js
384
+ var require_ReactPropTypesSecret = __commonJS({
385
+ "node_modules/prop-types/lib/ReactPropTypesSecret.js"(exports2, module2) {
386
+ "use strict";
387
+ var ReactPropTypesSecret = "SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";
388
+ module2.exports = ReactPropTypesSecret;
389
+ }
390
+ });
391
+
392
+ // node_modules/prop-types/lib/has.js
393
+ var require_has = __commonJS({
394
+ "node_modules/prop-types/lib/has.js"(exports2, module2) {
395
+ "use strict";
396
+ module2.exports = Function.call.bind(Object.prototype.hasOwnProperty);
397
+ }
398
+ });
399
+
400
+ // node_modules/prop-types/checkPropTypes.js
401
+ var require_checkPropTypes = __commonJS({
402
+ "node_modules/prop-types/checkPropTypes.js"(exports2, module2) {
403
+ "use strict";
404
+ var printWarning = function() {
405
+ };
406
+ if (process.env.NODE_ENV !== "production") {
407
+ ReactPropTypesSecret = require_ReactPropTypesSecret();
408
+ loggedTypeFailures = {};
409
+ has = require_has();
410
+ printWarning = function(text) {
411
+ var message = "Warning: " + text;
412
+ if (typeof console !== "undefined") {
413
+ console.error(message);
414
+ }
415
+ try {
416
+ throw new Error(message);
417
+ } catch (x) {
418
+ }
419
+ };
420
+ }
421
+ var ReactPropTypesSecret;
422
+ var loggedTypeFailures;
423
+ var has;
424
+ function checkPropTypes(typeSpecs, values, location, componentName, getStack) {
425
+ if (process.env.NODE_ENV !== "production") {
426
+ for (var typeSpecName in typeSpecs) {
427
+ if (has(typeSpecs, typeSpecName)) {
428
+ var error;
429
+ try {
430
+ if (typeof typeSpecs[typeSpecName] !== "function") {
431
+ var err = Error(
432
+ (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`."
433
+ );
434
+ err.name = "Invariant Violation";
435
+ throw err;
436
+ }
437
+ error = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, ReactPropTypesSecret);
438
+ } catch (ex) {
439
+ error = ex;
440
+ }
441
+ if (error && !(error instanceof Error)) {
442
+ printWarning(
443
+ (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)."
444
+ );
445
+ }
446
+ if (error instanceof Error && !(error.message in loggedTypeFailures)) {
447
+ loggedTypeFailures[error.message] = true;
448
+ var stack = getStack ? getStack() : "";
449
+ printWarning(
450
+ "Failed " + location + " type: " + error.message + (stack != null ? stack : "")
451
+ );
452
+ }
453
+ }
454
+ }
455
+ }
456
+ }
457
+ checkPropTypes.resetWarningCache = function() {
458
+ if (process.env.NODE_ENV !== "production") {
459
+ loggedTypeFailures = {};
460
+ }
461
+ };
462
+ module2.exports = checkPropTypes;
463
+ }
464
+ });
465
+
466
+ // node_modules/prop-types/factoryWithTypeCheckers.js
467
+ var require_factoryWithTypeCheckers = __commonJS({
468
+ "node_modules/prop-types/factoryWithTypeCheckers.js"(exports2, module2) {
469
+ "use strict";
470
+ var ReactIs = require_react_is();
471
+ var assign = require_object_assign();
472
+ var ReactPropTypesSecret = require_ReactPropTypesSecret();
473
+ var has = require_has();
474
+ var checkPropTypes = require_checkPropTypes();
475
+ var printWarning = function() {
476
+ };
477
+ if (process.env.NODE_ENV !== "production") {
478
+ printWarning = function(text) {
479
+ var message = "Warning: " + text;
480
+ if (typeof console !== "undefined") {
481
+ console.error(message);
482
+ }
483
+ try {
484
+ throw new Error(message);
485
+ } catch (x) {
486
+ }
487
+ };
488
+ }
489
+ function emptyFunctionThatReturnsNull() {
490
+ return null;
491
+ }
492
+ module2.exports = function(isValidElement, throwOnDirectAccess) {
493
+ var ITERATOR_SYMBOL = typeof Symbol === "function" && Symbol.iterator;
494
+ var FAUX_ITERATOR_SYMBOL = "@@iterator";
495
+ function getIteratorFn(maybeIterable) {
496
+ var iteratorFn = maybeIterable && (ITERATOR_SYMBOL && maybeIterable[ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL]);
497
+ if (typeof iteratorFn === "function") {
498
+ return iteratorFn;
499
+ }
500
+ }
501
+ var ANONYMOUS = "<<anonymous>>";
502
+ var ReactPropTypes = {
503
+ array: createPrimitiveTypeChecker("array"),
504
+ bigint: createPrimitiveTypeChecker("bigint"),
505
+ bool: createPrimitiveTypeChecker("boolean"),
506
+ func: createPrimitiveTypeChecker("function"),
507
+ number: createPrimitiveTypeChecker("number"),
508
+ object: createPrimitiveTypeChecker("object"),
509
+ string: createPrimitiveTypeChecker("string"),
510
+ symbol: createPrimitiveTypeChecker("symbol"),
511
+ any: createAnyTypeChecker(),
512
+ arrayOf: createArrayOfTypeChecker,
513
+ element: createElementTypeChecker(),
514
+ elementType: createElementTypeTypeChecker(),
515
+ instanceOf: createInstanceTypeChecker,
516
+ node: createNodeChecker(),
517
+ objectOf: createObjectOfTypeChecker,
518
+ oneOf: createEnumTypeChecker,
519
+ oneOfType: createUnionTypeChecker,
520
+ shape: createShapeTypeChecker,
521
+ exact: createStrictShapeTypeChecker
522
+ };
523
+ function is(x, y) {
524
+ if (x === y) {
525
+ return x !== 0 || 1 / x === 1 / y;
526
+ } else {
527
+ return x !== x && y !== y;
528
+ }
529
+ }
530
+ function PropTypeError(message, data) {
531
+ this.message = message;
532
+ this.data = data && typeof data === "object" ? data : {};
533
+ this.stack = "";
534
+ }
535
+ PropTypeError.prototype = Error.prototype;
536
+ function createChainableTypeChecker(validate) {
537
+ if (process.env.NODE_ENV !== "production") {
538
+ var manualPropTypeCallCache = {};
539
+ var manualPropTypeWarningCount = 0;
540
+ }
541
+ function checkType(isRequired, props, propName, componentName, location, propFullName, secret) {
542
+ componentName = componentName || ANONYMOUS;
543
+ propFullName = propFullName || propName;
544
+ if (secret !== ReactPropTypesSecret) {
545
+ if (throwOnDirectAccess) {
546
+ var err = new Error(
547
+ "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"
548
+ );
549
+ err.name = "Invariant Violation";
550
+ throw err;
551
+ } else if (process.env.NODE_ENV !== "production" && typeof console !== "undefined") {
552
+ var cacheKey = componentName + ":" + propName;
553
+ if (!manualPropTypeCallCache[cacheKey] && // Avoid spamming the console because they are often not actionable except for lib authors
554
+ manualPropTypeWarningCount < 3) {
555
+ printWarning(
556
+ "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."
557
+ );
558
+ manualPropTypeCallCache[cacheKey] = true;
559
+ manualPropTypeWarningCount++;
560
+ }
561
+ }
562
+ }
563
+ if (props[propName] == null) {
564
+ if (isRequired) {
565
+ if (props[propName] === null) {
566
+ return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required " + ("in `" + componentName + "`, but its value is `null`."));
567
+ }
568
+ return new PropTypeError("The " + location + " `" + propFullName + "` is marked as required in " + ("`" + componentName + "`, but its value is `undefined`."));
569
+ }
570
+ return null;
571
+ } else {
572
+ return validate(props, propName, componentName, location, propFullName);
573
+ }
574
+ }
575
+ var chainedCheckType = checkType.bind(null, false);
576
+ chainedCheckType.isRequired = checkType.bind(null, true);
577
+ return chainedCheckType;
578
+ }
579
+ function createPrimitiveTypeChecker(expectedType) {
580
+ function validate(props, propName, componentName, location, propFullName, secret) {
581
+ var propValue = props[propName];
582
+ var propType = getPropType(propValue);
583
+ if (propType !== expectedType) {
584
+ var preciseType = getPreciseType(propValue);
585
+ return new PropTypeError(
586
+ "Invalid " + location + " `" + propFullName + "` of type " + ("`" + preciseType + "` supplied to `" + componentName + "`, expected ") + ("`" + expectedType + "`."),
587
+ { expectedType }
588
+ );
589
+ }
590
+ return null;
591
+ }
592
+ return createChainableTypeChecker(validate);
593
+ }
594
+ function createAnyTypeChecker() {
595
+ return createChainableTypeChecker(emptyFunctionThatReturnsNull);
596
+ }
597
+ function createArrayOfTypeChecker(typeChecker) {
598
+ function validate(props, propName, componentName, location, propFullName) {
599
+ if (typeof typeChecker !== "function") {
600
+ return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside arrayOf.");
601
+ }
602
+ var propValue = props[propName];
603
+ if (!Array.isArray(propValue)) {
604
+ var propType = getPropType(propValue);
605
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an array."));
606
+ }
607
+ for (var i = 0; i < propValue.length; i++) {
608
+ var error = typeChecker(propValue, i, componentName, location, propFullName + "[" + i + "]", ReactPropTypesSecret);
609
+ if (error instanceof Error) {
610
+ return error;
611
+ }
612
+ }
613
+ return null;
614
+ }
615
+ return createChainableTypeChecker(validate);
616
+ }
617
+ function createElementTypeChecker() {
618
+ function validate(props, propName, componentName, location, propFullName) {
619
+ var propValue = props[propName];
620
+ if (!isValidElement(propValue)) {
621
+ var propType = getPropType(propValue);
622
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement."));
623
+ }
624
+ return null;
625
+ }
626
+ return createChainableTypeChecker(validate);
627
+ }
628
+ function createElementTypeTypeChecker() {
629
+ function validate(props, propName, componentName, location, propFullName) {
630
+ var propValue = props[propName];
631
+ if (!ReactIs.isValidElementType(propValue)) {
632
+ var propType = getPropType(propValue);
633
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected a single ReactElement type."));
634
+ }
635
+ return null;
636
+ }
637
+ return createChainableTypeChecker(validate);
638
+ }
639
+ function createInstanceTypeChecker(expectedClass) {
640
+ function validate(props, propName, componentName, location, propFullName) {
641
+ if (!(props[propName] instanceof expectedClass)) {
642
+ var expectedClassName = expectedClass.name || ANONYMOUS;
643
+ var actualClassName = getClassName(props[propName]);
644
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + actualClassName + "` supplied to `" + componentName + "`, expected ") + ("instance of `" + expectedClassName + "`."));
645
+ }
646
+ return null;
647
+ }
648
+ return createChainableTypeChecker(validate);
649
+ }
650
+ function createEnumTypeChecker(expectedValues) {
651
+ if (!Array.isArray(expectedValues)) {
652
+ if (process.env.NODE_ENV !== "production") {
653
+ if (arguments.length > 1) {
654
+ printWarning(
655
+ "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])."
656
+ );
657
+ } else {
658
+ printWarning("Invalid argument supplied to oneOf, expected an array.");
659
+ }
660
+ }
661
+ return emptyFunctionThatReturnsNull;
662
+ }
663
+ function validate(props, propName, componentName, location, propFullName) {
664
+ var propValue = props[propName];
665
+ for (var i = 0; i < expectedValues.length; i++) {
666
+ if (is(propValue, expectedValues[i])) {
667
+ return null;
668
+ }
669
+ }
670
+ var valuesString = JSON.stringify(expectedValues, function replacer(key, value) {
671
+ var type = getPreciseType(value);
672
+ if (type === "symbol") {
673
+ return String(value);
674
+ }
675
+ return value;
676
+ });
677
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of value `" + String(propValue) + "` " + ("supplied to `" + componentName + "`, expected one of " + valuesString + "."));
678
+ }
679
+ return createChainableTypeChecker(validate);
680
+ }
681
+ function createObjectOfTypeChecker(typeChecker) {
682
+ function validate(props, propName, componentName, location, propFullName) {
683
+ if (typeof typeChecker !== "function") {
684
+ return new PropTypeError("Property `" + propFullName + "` of component `" + componentName + "` has invalid PropType notation inside objectOf.");
685
+ }
686
+ var propValue = props[propName];
687
+ var propType = getPropType(propValue);
688
+ if (propType !== "object") {
689
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type " + ("`" + propType + "` supplied to `" + componentName + "`, expected an object."));
690
+ }
691
+ for (var key in propValue) {
692
+ if (has(propValue, key)) {
693
+ var error = typeChecker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
694
+ if (error instanceof Error) {
695
+ return error;
696
+ }
697
+ }
698
+ }
699
+ return null;
700
+ }
701
+ return createChainableTypeChecker(validate);
702
+ }
703
+ function createUnionTypeChecker(arrayOfTypeCheckers) {
704
+ if (!Array.isArray(arrayOfTypeCheckers)) {
705
+ process.env.NODE_ENV !== "production" ? printWarning("Invalid argument supplied to oneOfType, expected an instance of array.") : void 0;
706
+ return emptyFunctionThatReturnsNull;
707
+ }
708
+ for (var i = 0; i < arrayOfTypeCheckers.length; i++) {
709
+ var checker = arrayOfTypeCheckers[i];
710
+ if (typeof checker !== "function") {
711
+ printWarning(
712
+ "Invalid argument supplied to oneOfType. Expected an array of check functions, but received " + getPostfixForTypeWarning(checker) + " at index " + i + "."
713
+ );
714
+ return emptyFunctionThatReturnsNull;
715
+ }
716
+ }
717
+ function validate(props, propName, componentName, location, propFullName) {
718
+ var expectedTypes = [];
719
+ for (var i2 = 0; i2 < arrayOfTypeCheckers.length; i2++) {
720
+ var checker2 = arrayOfTypeCheckers[i2];
721
+ var checkerResult = checker2(props, propName, componentName, location, propFullName, ReactPropTypesSecret);
722
+ if (checkerResult == null) {
723
+ return null;
724
+ }
725
+ if (checkerResult.data && has(checkerResult.data, "expectedType")) {
726
+ expectedTypes.push(checkerResult.data.expectedType);
727
+ }
728
+ }
729
+ var expectedTypesMessage = expectedTypes.length > 0 ? ", expected one of type [" + expectedTypes.join(", ") + "]" : "";
730
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`" + expectedTypesMessage + "."));
731
+ }
732
+ return createChainableTypeChecker(validate);
733
+ }
734
+ function createNodeChecker() {
735
+ function validate(props, propName, componentName, location, propFullName) {
736
+ if (!isNode(props[propName])) {
737
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` supplied to " + ("`" + componentName + "`, expected a ReactNode."));
738
+ }
739
+ return null;
740
+ }
741
+ return createChainableTypeChecker(validate);
742
+ }
743
+ function invalidValidatorError(componentName, location, propFullName, key, type) {
744
+ return new PropTypeError(
745
+ (componentName || "React class") + ": " + location + " type `" + propFullName + "." + key + "` is invalid; it must be a function, usually from the `prop-types` package, but received `" + type + "`."
746
+ );
747
+ }
748
+ function createShapeTypeChecker(shapeTypes) {
749
+ function validate(props, propName, componentName, location, propFullName) {
750
+ var propValue = props[propName];
751
+ var propType = getPropType(propValue);
752
+ if (propType !== "object") {
753
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
754
+ }
755
+ for (var key in shapeTypes) {
756
+ var checker = shapeTypes[key];
757
+ if (typeof checker !== "function") {
758
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
759
+ }
760
+ var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
761
+ if (error) {
762
+ return error;
763
+ }
764
+ }
765
+ return null;
766
+ }
767
+ return createChainableTypeChecker(validate);
768
+ }
769
+ function createStrictShapeTypeChecker(shapeTypes) {
770
+ function validate(props, propName, componentName, location, propFullName) {
771
+ var propValue = props[propName];
772
+ var propType = getPropType(propValue);
773
+ if (propType !== "object") {
774
+ return new PropTypeError("Invalid " + location + " `" + propFullName + "` of type `" + propType + "` " + ("supplied to `" + componentName + "`, expected `object`."));
775
+ }
776
+ var allKeys = assign({}, props[propName], shapeTypes);
777
+ for (var key in allKeys) {
778
+ var checker = shapeTypes[key];
779
+ if (has(shapeTypes, key) && typeof checker !== "function") {
780
+ return invalidValidatorError(componentName, location, propFullName, key, getPreciseType(checker));
781
+ }
782
+ if (!checker) {
783
+ return new PropTypeError(
784
+ "Invalid " + location + " `" + propFullName + "` key `" + key + "` supplied to `" + componentName + "`.\nBad object: " + JSON.stringify(props[propName], null, " ") + "\nValid keys: " + JSON.stringify(Object.keys(shapeTypes), null, " ")
785
+ );
786
+ }
787
+ var error = checker(propValue, key, componentName, location, propFullName + "." + key, ReactPropTypesSecret);
788
+ if (error) {
789
+ return error;
790
+ }
791
+ }
792
+ return null;
793
+ }
794
+ return createChainableTypeChecker(validate);
795
+ }
796
+ function isNode(propValue) {
797
+ switch (typeof propValue) {
798
+ case "number":
799
+ case "string":
800
+ case "undefined":
801
+ return true;
802
+ case "boolean":
803
+ return !propValue;
804
+ case "object":
805
+ if (Array.isArray(propValue)) {
806
+ return propValue.every(isNode);
807
+ }
808
+ if (propValue === null || isValidElement(propValue)) {
809
+ return true;
810
+ }
811
+ var iteratorFn = getIteratorFn(propValue);
812
+ if (iteratorFn) {
813
+ var iterator = iteratorFn.call(propValue);
814
+ var step;
815
+ if (iteratorFn !== propValue.entries) {
816
+ while (!(step = iterator.next()).done) {
817
+ if (!isNode(step.value)) {
818
+ return false;
819
+ }
820
+ }
821
+ } else {
822
+ while (!(step = iterator.next()).done) {
823
+ var entry = step.value;
824
+ if (entry) {
825
+ if (!isNode(entry[1])) {
826
+ return false;
827
+ }
828
+ }
829
+ }
830
+ }
831
+ } else {
832
+ return false;
833
+ }
834
+ return true;
835
+ default:
836
+ return false;
837
+ }
838
+ }
839
+ function isSymbol(propType, propValue) {
840
+ if (propType === "symbol") {
841
+ return true;
842
+ }
843
+ if (!propValue) {
844
+ return false;
845
+ }
846
+ if (propValue["@@toStringTag"] === "Symbol") {
847
+ return true;
848
+ }
849
+ if (typeof Symbol === "function" && propValue instanceof Symbol) {
850
+ return true;
851
+ }
852
+ return false;
853
+ }
854
+ function getPropType(propValue) {
855
+ var propType = typeof propValue;
856
+ if (Array.isArray(propValue)) {
857
+ return "array";
858
+ }
859
+ if (propValue instanceof RegExp) {
860
+ return "object";
861
+ }
862
+ if (isSymbol(propType, propValue)) {
863
+ return "symbol";
864
+ }
865
+ return propType;
866
+ }
867
+ function getPreciseType(propValue) {
868
+ if (typeof propValue === "undefined" || propValue === null) {
869
+ return "" + propValue;
870
+ }
871
+ var propType = getPropType(propValue);
872
+ if (propType === "object") {
873
+ if (propValue instanceof Date) {
874
+ return "date";
875
+ } else if (propValue instanceof RegExp) {
876
+ return "regexp";
877
+ }
878
+ }
879
+ return propType;
880
+ }
881
+ function getPostfixForTypeWarning(value) {
882
+ var type = getPreciseType(value);
883
+ switch (type) {
884
+ case "array":
885
+ case "object":
886
+ return "an " + type;
887
+ case "boolean":
888
+ case "date":
889
+ case "regexp":
890
+ return "a " + type;
891
+ default:
892
+ return type;
893
+ }
894
+ }
895
+ function getClassName(propValue) {
896
+ if (!propValue.constructor || !propValue.constructor.name) {
897
+ return ANONYMOUS;
898
+ }
899
+ return propValue.constructor.name;
900
+ }
901
+ ReactPropTypes.checkPropTypes = checkPropTypes;
902
+ ReactPropTypes.resetWarningCache = checkPropTypes.resetWarningCache;
903
+ ReactPropTypes.PropTypes = ReactPropTypes;
904
+ return ReactPropTypes;
905
+ };
906
+ }
907
+ });
908
+
909
+ // node_modules/prop-types/factoryWithThrowingShims.js
910
+ var require_factoryWithThrowingShims = __commonJS({
911
+ "node_modules/prop-types/factoryWithThrowingShims.js"(exports2, module2) {
912
+ "use strict";
913
+ var ReactPropTypesSecret = require_ReactPropTypesSecret();
914
+ function emptyFunction() {
915
+ }
916
+ function emptyFunctionWithReset() {
917
+ }
918
+ emptyFunctionWithReset.resetWarningCache = emptyFunction;
919
+ module2.exports = function() {
920
+ function shim(props, propName, componentName, location, propFullName, secret) {
921
+ if (secret === ReactPropTypesSecret) {
922
+ return;
923
+ }
924
+ var err = new Error(
925
+ "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"
926
+ );
927
+ err.name = "Invariant Violation";
928
+ throw err;
929
+ }
930
+ ;
931
+ shim.isRequired = shim;
932
+ function getShim() {
933
+ return shim;
934
+ }
935
+ ;
936
+ var ReactPropTypes = {
937
+ array: shim,
938
+ bigint: shim,
939
+ bool: shim,
940
+ func: shim,
941
+ number: shim,
942
+ object: shim,
943
+ string: shim,
944
+ symbol: shim,
945
+ any: shim,
946
+ arrayOf: getShim,
947
+ element: shim,
948
+ elementType: shim,
949
+ instanceOf: getShim,
950
+ node: shim,
951
+ objectOf: getShim,
952
+ oneOf: getShim,
953
+ oneOfType: getShim,
954
+ shape: getShim,
955
+ exact: getShim,
956
+ checkPropTypes: emptyFunctionWithReset,
957
+ resetWarningCache: emptyFunction
958
+ };
959
+ ReactPropTypes.PropTypes = ReactPropTypes;
960
+ return ReactPropTypes;
961
+ };
962
+ }
963
+ });
964
+
965
+ // node_modules/prop-types/index.js
966
+ var require_prop_types = __commonJS({
967
+ "node_modules/prop-types/index.js"(exports2, module2) {
968
+ "use strict";
969
+ if (process.env.NODE_ENV !== "production") {
970
+ ReactIs = require_react_is();
971
+ throwOnDirectAccess = true;
972
+ module2.exports = require_factoryWithTypeCheckers()(ReactIs.isElement, throwOnDirectAccess);
973
+ } else {
974
+ module2.exports = require_factoryWithThrowingShims()();
975
+ }
976
+ var ReactIs;
977
+ var throwOnDirectAccess;
978
+ }
979
+ });
980
+
981
+ // src/index.ts
982
+ var index_exports = {};
983
+ __export(index_exports, {
984
+ LayoutProvider: () => LayoutProvider,
985
+ rootRouteHead: () => rootRouteHead,
986
+ setSSRLanguage: () => setSSRLanguage
987
+ });
988
+ module.exports = __toCommonJS(index_exports);
989
+
990
+ // src/providers/LayoutProvider.tsx
991
+ var import_material9 = require("@mui/material");
992
+
993
+ // node_modules/@babel/runtime/helpers/esm/extends.js
994
+ function _extends() {
995
+ return _extends = Object.assign ? Object.assign.bind() : function(n) {
996
+ for (var e = 1; e < arguments.length; e++) {
997
+ var t = arguments[e];
998
+ for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
999
+ }
1000
+ return n;
1001
+ }, _extends.apply(null, arguments);
1002
+ }
1003
+
1004
+ // node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
1005
+ function _objectWithoutPropertiesLoose(r, e) {
1006
+ if (null == r) return {};
1007
+ var t = {};
1008
+ for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
1009
+ if (-1 !== e.indexOf(n)) continue;
1010
+ t[n] = r[n];
1011
+ }
1012
+ return t;
1013
+ }
1014
+
1015
+ // node_modules/@mui/x-date-pickers/esm/locales/utils/getPickersLocalization.js
1016
+ var getPickersLocalization = (pickersTranslations) => {
1017
+ return {
1018
+ components: {
1019
+ MuiLocalizationProvider: {
1020
+ defaultProps: {
1021
+ localeText: _extends({}, pickersTranslations)
1022
+ }
1023
+ }
1024
+ }
1025
+ };
1026
+ };
1027
+
1028
+ // node_modules/@mui/x-date-pickers/esm/locales/enUS.js
1029
+ var enUSPickers = {
1030
+ // Calendar navigation
1031
+ previousMonth: "Previous month",
1032
+ nextMonth: "Next month",
1033
+ // View navigation
1034
+ openPreviousView: "Open previous view",
1035
+ openNextView: "Open next view",
1036
+ calendarViewSwitchingButtonAriaLabel: (view) => view === "year" ? "year view is open, switch to calendar view" : "calendar view is open, switch to year view",
1037
+ // DateRange labels
1038
+ start: "Start",
1039
+ end: "End",
1040
+ startDate: "Start date",
1041
+ startTime: "Start time",
1042
+ endDate: "End date",
1043
+ endTime: "End time",
1044
+ // Action bar
1045
+ cancelButtonLabel: "Cancel",
1046
+ clearButtonLabel: "Clear",
1047
+ okButtonLabel: "OK",
1048
+ todayButtonLabel: "Today",
1049
+ nextStepButtonLabel: "Next",
1050
+ // Toolbar titles
1051
+ datePickerToolbarTitle: "Select date",
1052
+ dateTimePickerToolbarTitle: "Select date & time",
1053
+ timePickerToolbarTitle: "Select time",
1054
+ dateRangePickerToolbarTitle: "Select date range",
1055
+ timeRangePickerToolbarTitle: "Select time range",
1056
+ // Clock labels
1057
+ clockLabelText: (view, formattedTime) => `Select ${view}. ${!formattedTime ? "No time selected" : `Selected time is ${formattedTime}`}`,
1058
+ hoursClockNumberText: (hours) => `${hours} hours`,
1059
+ minutesClockNumberText: (minutes) => `${minutes} minutes`,
1060
+ secondsClockNumberText: (seconds) => `${seconds} seconds`,
1061
+ // Digital clock labels
1062
+ selectViewText: (view) => `Select ${view}`,
1063
+ // Calendar labels
1064
+ calendarWeekNumberHeaderLabel: "Week number",
1065
+ calendarWeekNumberHeaderText: "#",
1066
+ calendarWeekNumberAriaLabelText: (weekNumber) => `Week ${weekNumber}`,
1067
+ calendarWeekNumberText: (weekNumber) => `${weekNumber}`,
1068
+ // Open Picker labels
1069
+ openDatePickerDialogue: (formattedDate) => formattedDate ? `Choose date, selected date is ${formattedDate}` : "Choose date",
1070
+ openTimePickerDialogue: (formattedTime) => formattedTime ? `Choose time, selected time is ${formattedTime}` : "Choose time",
1071
+ openRangePickerDialogue: (formattedRange) => formattedRange ? `Choose range, selected range is ${formattedRange}` : "Choose range",
1072
+ fieldClearLabel: "Clear",
1073
+ // Table labels
1074
+ timeTableLabel: "pick time",
1075
+ dateTableLabel: "pick date",
1076
+ // Field section placeholders
1077
+ fieldYearPlaceholder: (params) => "Y".repeat(params.digitAmount),
1078
+ fieldMonthPlaceholder: (params) => params.contentType === "letter" ? "MMMM" : "MM",
1079
+ fieldDayPlaceholder: () => "DD",
1080
+ fieldWeekDayPlaceholder: (params) => params.contentType === "letter" ? "EEEE" : "EE",
1081
+ fieldHoursPlaceholder: () => "hh",
1082
+ fieldMinutesPlaceholder: () => "mm",
1083
+ fieldSecondsPlaceholder: () => "ss",
1084
+ fieldMeridiemPlaceholder: () => "aa",
1085
+ // View names
1086
+ year: "Year",
1087
+ month: "Month",
1088
+ day: "Day",
1089
+ weekDay: "Week day",
1090
+ hours: "Hours",
1091
+ minutes: "Minutes",
1092
+ seconds: "Seconds",
1093
+ meridiem: "Meridiem",
1094
+ // Common
1095
+ empty: "Empty"
1096
+ };
1097
+ var enUS = getPickersLocalization(enUSPickers);
1098
+
1099
+ // node_modules/@mui/x-date-pickers/esm/LocalizationProvider/LocalizationProvider.js
1100
+ var React = __toESM(require("react"), 1);
1101
+ var import_prop_types = __toESM(require_prop_types(), 1);
1102
+ var import_styles = require("@mui/material/styles");
1103
+ var import_jsx_runtime = require("react/jsx-runtime");
1104
+ var _excluded = ["localeText"];
1105
+ var PickerAdapterContext = /* @__PURE__ */ React.createContext(null);
1106
+ if (process.env.NODE_ENV !== "production") PickerAdapterContext.displayName = "PickerAdapterContext";
1107
+ var LocalizationProvider = function LocalizationProvider2(inProps) {
1108
+ const {
1109
+ localeText: inLocaleText
1110
+ } = inProps, otherInProps = _objectWithoutPropertiesLoose(inProps, _excluded);
1111
+ const {
1112
+ adapter: parentAdapter,
1113
+ localeText: parentLocaleText
1114
+ } = React.useContext(PickerAdapterContext) ?? {
1115
+ utils: void 0,
1116
+ adapter: void 0,
1117
+ localeText: void 0
1118
+ };
1119
+ const props = (0, import_styles.useThemeProps)({
1120
+ // We don't want to pass the `localeText` prop to the theme, that way it will always return the theme value,
1121
+ // We will then merge this theme value with our value manually
1122
+ props: otherInProps,
1123
+ name: "MuiLocalizationProvider"
1124
+ });
1125
+ const {
1126
+ children,
1127
+ dateAdapter: DateAdapter,
1128
+ dateFormats,
1129
+ dateLibInstance,
1130
+ adapterLocale,
1131
+ localeText: themeLocaleText
1132
+ } = props;
1133
+ const localeText = React.useMemo(() => _extends({}, themeLocaleText, parentLocaleText, inLocaleText), [themeLocaleText, parentLocaleText, inLocaleText]);
1134
+ const adapter = React.useMemo(() => {
1135
+ if (!DateAdapter) {
1136
+ if (parentAdapter) {
1137
+ return parentAdapter;
1138
+ }
1139
+ return null;
1140
+ }
1141
+ const dateAdapter = new DateAdapter({
1142
+ locale: adapterLocale,
1143
+ formats: dateFormats,
1144
+ instance: dateLibInstance
1145
+ });
1146
+ if (!dateAdapter.isMUIAdapter) {
1147
+ 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(`
1148
+ `));
1149
+ }
1150
+ return dateAdapter;
1151
+ }, [DateAdapter, adapterLocale, dateFormats, dateLibInstance, parentAdapter]);
1152
+ const defaultDates = React.useMemo(() => {
1153
+ if (!adapter) {
1154
+ return null;
1155
+ }
1156
+ return {
1157
+ minDate: adapter.date("1900-01-01T00:00:00.000"),
1158
+ maxDate: adapter.date("2099-12-31T00:00:00.000")
1159
+ };
1160
+ }, [adapter]);
1161
+ const contextValue = React.useMemo(() => {
1162
+ return {
1163
+ utils: adapter,
1164
+ adapter,
1165
+ defaultDates,
1166
+ localeText
1167
+ };
1168
+ }, [defaultDates, adapter, localeText]);
1169
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(PickerAdapterContext.Provider, {
1170
+ value: contextValue,
1171
+ children
1172
+ });
1173
+ };
1174
+ if (process.env.NODE_ENV !== "production") LocalizationProvider.displayName = "LocalizationProvider";
1175
+ process.env.NODE_ENV !== "production" ? LocalizationProvider.propTypes = {
1176
+ // ----------------------------- Warning --------------------------------
1177
+ // | These PropTypes are generated from the TypeScript type definitions |
1178
+ // | To update them edit the TypeScript types and run "pnpm proptypes" |
1179
+ // ----------------------------------------------------------------------
1180
+ /**
1181
+ * Locale for the date library you are using
1182
+ */
1183
+ adapterLocale: import_prop_types.default.any,
1184
+ children: import_prop_types.default.node,
1185
+ /**
1186
+ * Date library adapter class function.
1187
+ * @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.
1188
+ */
1189
+ dateAdapter: import_prop_types.default.func,
1190
+ /**
1191
+ * Formats that are used for any child pickers
1192
+ */
1193
+ dateFormats: import_prop_types.default.shape({
1194
+ dayOfMonth: import_prop_types.default.string,
1195
+ dayOfMonthFull: import_prop_types.default.string,
1196
+ fullDate: import_prop_types.default.string,
1197
+ fullTime12h: import_prop_types.default.string,
1198
+ fullTime24h: import_prop_types.default.string,
1199
+ hours12h: import_prop_types.default.string,
1200
+ hours24h: import_prop_types.default.string,
1201
+ keyboardDate: import_prop_types.default.string,
1202
+ keyboardDateTime12h: import_prop_types.default.string,
1203
+ keyboardDateTime24h: import_prop_types.default.string,
1204
+ meridiem: import_prop_types.default.string,
1205
+ minutes: import_prop_types.default.string,
1206
+ month: import_prop_types.default.string,
1207
+ monthShort: import_prop_types.default.string,
1208
+ normalDate: import_prop_types.default.string,
1209
+ normalDateWithWeekday: import_prop_types.default.string,
1210
+ seconds: import_prop_types.default.string,
1211
+ shortDate: import_prop_types.default.string,
1212
+ weekday: import_prop_types.default.string,
1213
+ weekdayShort: import_prop_types.default.string,
1214
+ year: import_prop_types.default.string
1215
+ }),
1216
+ /**
1217
+ * Date library instance you are using, if it has some global overrides
1218
+ * ```jsx
1219
+ * dateLibInstance={momentTimeZone}
1220
+ * ```
1221
+ */
1222
+ dateLibInstance: import_prop_types.default.any,
1223
+ /**
1224
+ * Locale for components texts
1225
+ */
1226
+ localeText: import_prop_types.default.object
1227
+ } : void 0;
1228
+
1229
+ // node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js
1230
+ var React3 = __toESM(require("react"), 1);
1231
+
1232
+ // node_modules/@mui/utils/esm/useEnhancedEffect/useEnhancedEffect.js
1233
+ var React2 = __toESM(require("react"), 1);
1234
+ var useEnhancedEffect = typeof window !== "undefined" ? React2.useLayoutEffect : React2.useEffect;
1235
+ var useEnhancedEffect_default = useEnhancedEffect;
1236
+
1237
+ // node_modules/@mui/utils/esm/useEventCallback/useEventCallback.js
1238
+ function useEventCallback(fn) {
1239
+ const ref = React3.useRef(fn);
1240
+ useEnhancedEffect_default(() => {
1241
+ ref.current = fn;
1242
+ });
1243
+ return React3.useRef((...args) => (
1244
+ // @ts-expect-error hide `this`
1245
+ (0, ref.current)(...args)
1246
+ )).current;
1247
+ }
1248
+ var useEventCallback_default = useEventCallback;
1249
+
1250
+ // node_modules/@mui/x-internals/esm/warning/warning.js
1251
+ var warnedOnceCache = /* @__PURE__ */ new Set();
1252
+ function warnOnce(message, gravity = "warning") {
1253
+ if (process.env.NODE_ENV === "production") {
1254
+ return;
1255
+ }
1256
+ const cleanMessage = Array.isArray(message) ? message.join("\n") : message;
1257
+ if (!warnedOnceCache.has(cleanMessage)) {
1258
+ warnedOnceCache.add(cleanMessage);
1259
+ if (gravity === "error") {
1260
+ console.error(cleanMessage);
1261
+ } else {
1262
+ console.warn(cleanMessage);
1263
+ }
1264
+ }
1265
+ }
1266
+
1267
+ // node_modules/@mui/x-date-pickers/esm/AdapterDayjs/AdapterDayjs.js
1268
+ var import_dayjs = __toESM(require("dayjs"), 1);
1269
+ var import_weekOfYear = __toESM(require("dayjs/plugin/weekOfYear.js"), 1);
1270
+ var import_customParseFormat = __toESM(require("dayjs/plugin/customParseFormat.js"), 1);
1271
+ var import_localizedFormat = __toESM(require("dayjs/plugin/localizedFormat.js"), 1);
1272
+ var import_isBetween = __toESM(require("dayjs/plugin/isBetween.js"), 1);
1273
+ var import_advancedFormat = __toESM(require("dayjs/plugin/advancedFormat.js"), 1);
1274
+ import_dayjs.default.extend(import_localizedFormat.default);
1275
+ import_dayjs.default.extend(import_weekOfYear.default);
1276
+ import_dayjs.default.extend(import_isBetween.default);
1277
+ import_dayjs.default.extend(import_advancedFormat.default);
1278
+ var formatTokenMap = {
1279
+ // Year
1280
+ YY: "year",
1281
+ YYYY: {
1282
+ sectionType: "year",
1283
+ contentType: "digit",
1284
+ maxLength: 4
1285
+ },
1286
+ // Month
1287
+ M: {
1288
+ sectionType: "month",
1289
+ contentType: "digit",
1290
+ maxLength: 2
1291
+ },
1292
+ MM: "month",
1293
+ MMM: {
1294
+ sectionType: "month",
1295
+ contentType: "letter"
1296
+ },
1297
+ MMMM: {
1298
+ sectionType: "month",
1299
+ contentType: "letter"
1300
+ },
1301
+ // Day of the month
1302
+ D: {
1303
+ sectionType: "day",
1304
+ contentType: "digit",
1305
+ maxLength: 2
1306
+ },
1307
+ DD: "day",
1308
+ Do: {
1309
+ sectionType: "day",
1310
+ contentType: "digit-with-letter"
1311
+ },
1312
+ // Day of the week
1313
+ d: {
1314
+ sectionType: "weekDay",
1315
+ contentType: "digit",
1316
+ maxLength: 2
1317
+ },
1318
+ dd: {
1319
+ sectionType: "weekDay",
1320
+ contentType: "letter"
1321
+ },
1322
+ ddd: {
1323
+ sectionType: "weekDay",
1324
+ contentType: "letter"
1325
+ },
1326
+ dddd: {
1327
+ sectionType: "weekDay",
1328
+ contentType: "letter"
1329
+ },
1330
+ // Meridiem
1331
+ A: "meridiem",
1332
+ a: "meridiem",
1333
+ // Hours
1334
+ H: {
1335
+ sectionType: "hours",
1336
+ contentType: "digit",
1337
+ maxLength: 2
1338
+ },
1339
+ HH: "hours",
1340
+ h: {
1341
+ sectionType: "hours",
1342
+ contentType: "digit",
1343
+ maxLength: 2
1344
+ },
1345
+ hh: "hours",
1346
+ // Minutes
1347
+ m: {
1348
+ sectionType: "minutes",
1349
+ contentType: "digit",
1350
+ maxLength: 2
1351
+ },
1352
+ mm: "minutes",
1353
+ // Seconds
1354
+ s: {
1355
+ sectionType: "seconds",
1356
+ contentType: "digit",
1357
+ maxLength: 2
1358
+ },
1359
+ ss: "seconds"
1360
+ };
1361
+ var defaultFormats = {
1362
+ year: "YYYY",
1363
+ month: "MMMM",
1364
+ monthShort: "MMM",
1365
+ dayOfMonth: "D",
1366
+ dayOfMonthFull: "Do",
1367
+ weekday: "dddd",
1368
+ weekdayShort: "dd",
1369
+ hours24h: "HH",
1370
+ hours12h: "hh",
1371
+ meridiem: "A",
1372
+ minutes: "mm",
1373
+ seconds: "ss",
1374
+ fullDate: "ll",
1375
+ keyboardDate: "L",
1376
+ shortDate: "MMM D",
1377
+ normalDate: "D MMMM",
1378
+ normalDateWithWeekday: "ddd, MMM D",
1379
+ fullTime12h: "hh:mm A",
1380
+ fullTime24h: "HH:mm",
1381
+ keyboardDateTime12h: "L hh:mm A",
1382
+ keyboardDateTime24h: "L HH:mm"
1383
+ };
1384
+ 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");
1385
+ 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");
1386
+ var AdapterDayjs = class {
1387
+ isMUIAdapter = true;
1388
+ isTimezoneCompatible = true;
1389
+ lib = "dayjs";
1390
+ escapedCharacters = {
1391
+ start: "[",
1392
+ end: "]"
1393
+ };
1394
+ formatTokenMap = /* @__PURE__ */ (() => formatTokenMap)();
1395
+ constructor({
1396
+ locale,
1397
+ formats
1398
+ } = {}) {
1399
+ this.locale = locale;
1400
+ this.formats = _extends({}, defaultFormats, formats);
1401
+ import_dayjs.default.extend(import_customParseFormat.default);
1402
+ }
1403
+ setLocaleToValue = (value) => {
1404
+ const expectedLocale = this.getCurrentLocaleCode();
1405
+ if (expectedLocale === value.locale()) {
1406
+ return value;
1407
+ }
1408
+ return value.locale(expectedLocale);
1409
+ };
1410
+ hasUTCPlugin = () => typeof import_dayjs.default.utc !== "undefined";
1411
+ hasTimezonePlugin = () => typeof import_dayjs.default.tz !== "undefined";
1412
+ isSame = (value, comparing, comparisonTemplate) => {
1413
+ const comparingInValueTimezone = this.setTimezone(comparing, this.getTimezone(value));
1414
+ return value.format(comparisonTemplate) === comparingInValueTimezone.format(comparisonTemplate);
1415
+ };
1416
+ /**
1417
+ * Replaces "default" by undefined and "system" by the system timezone before passing it to `dayjs`.
1418
+ */
1419
+ cleanTimezone = (timezone) => {
1420
+ switch (timezone) {
1421
+ case "default": {
1422
+ return void 0;
1423
+ }
1424
+ case "system": {
1425
+ return import_dayjs.default.tz.guess();
1426
+ }
1427
+ default: {
1428
+ return timezone;
1429
+ }
1430
+ }
1431
+ };
1432
+ createSystemDate = (value) => {
1433
+ let date;
1434
+ if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
1435
+ const timezone = import_dayjs.default.tz.guess();
1436
+ if (timezone === "UTC") {
1437
+ date = (0, import_dayjs.default)(value);
1438
+ } else {
1439
+ date = import_dayjs.default.tz(value, timezone);
1440
+ }
1441
+ } else {
1442
+ date = (0, import_dayjs.default)(value);
1443
+ }
1444
+ return this.setLocaleToValue(date);
1445
+ };
1446
+ createUTCDate = (value) => {
1447
+ if (!this.hasUTCPlugin()) {
1448
+ throw new Error(MISSING_UTC_PLUGIN);
1449
+ }
1450
+ return this.setLocaleToValue(import_dayjs.default.utc(value));
1451
+ };
1452
+ createTZDate = (value, timezone) => {
1453
+ if (!this.hasUTCPlugin()) {
1454
+ throw new Error(MISSING_UTC_PLUGIN);
1455
+ }
1456
+ if (!this.hasTimezonePlugin()) {
1457
+ throw new Error(MISSING_TIMEZONE_PLUGIN);
1458
+ }
1459
+ const keepLocalTime = value !== void 0 && !value.endsWith("Z");
1460
+ return this.setLocaleToValue((0, import_dayjs.default)(value).tz(this.cleanTimezone(timezone), keepLocalTime));
1461
+ };
1462
+ getLocaleFormats = () => {
1463
+ const locales = import_dayjs.default.Ls;
1464
+ const locale = this.locale || "en";
1465
+ let localeObject = locales[locale];
1466
+ if (localeObject === void 0) {
1467
+ if (process.env.NODE_ENV !== "production") {
1468
+ 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."]);
1469
+ }
1470
+ localeObject = locales.en;
1471
+ }
1472
+ return localeObject.formats;
1473
+ };
1474
+ /**
1475
+ * If the new day does not have the same offset as the old one (when switching to summer day time for example),
1476
+ * Then dayjs will not automatically adjust the offset (moment does).
1477
+ * We have to parse again the value to make sure the `fixOffset` method is applied.
1478
+ * See https://github.com/iamkun/dayjs/blob/b3624de619d6e734cd0ffdbbd3502185041c1b60/src/plugin/timezone/index.js#L72
1479
+ */
1480
+ adjustOffset = (value) => {
1481
+ if (!this.hasTimezonePlugin()) {
1482
+ return value;
1483
+ }
1484
+ const timezone = this.getTimezone(value);
1485
+ if (timezone !== "UTC") {
1486
+ const fixedValue = value.tz(this.cleanTimezone(timezone), true);
1487
+ if (fixedValue.$offset === (value.$offset ?? 0)) {
1488
+ return value;
1489
+ }
1490
+ value.$offset = fixedValue.$offset;
1491
+ }
1492
+ return value;
1493
+ };
1494
+ date = (value, timezone = "default") => {
1495
+ if (value === null) {
1496
+ return null;
1497
+ }
1498
+ if (timezone === "UTC") {
1499
+ return this.createUTCDate(value);
1500
+ }
1501
+ if (timezone === "system" || timezone === "default" && !this.hasTimezonePlugin()) {
1502
+ return this.createSystemDate(value);
1503
+ }
1504
+ return this.createTZDate(value, timezone);
1505
+ };
1506
+ getInvalidDate = () => (0, import_dayjs.default)(/* @__PURE__ */ new Date("Invalid date"));
1507
+ getTimezone = (value) => {
1508
+ if (this.hasTimezonePlugin()) {
1509
+ const zone = value.$x?.$timezone;
1510
+ if (zone) {
1511
+ return zone;
1512
+ }
1513
+ }
1514
+ if (this.hasUTCPlugin() && value.isUTC()) {
1515
+ return "UTC";
1516
+ }
1517
+ return "system";
1518
+ };
1519
+ setTimezone = (value, timezone) => {
1520
+ if (this.getTimezone(value) === timezone) {
1521
+ return value;
1522
+ }
1523
+ if (timezone === "UTC") {
1524
+ if (!this.hasUTCPlugin()) {
1525
+ throw new Error(MISSING_UTC_PLUGIN);
1526
+ }
1527
+ return value.utc();
1528
+ }
1529
+ if (timezone === "system") {
1530
+ return value.local();
1531
+ }
1532
+ if (!this.hasTimezonePlugin()) {
1533
+ if (timezone === "default") {
1534
+ return value;
1535
+ }
1536
+ throw new Error(MISSING_TIMEZONE_PLUGIN);
1537
+ }
1538
+ return this.setLocaleToValue(import_dayjs.default.tz(value, this.cleanTimezone(timezone)));
1539
+ };
1540
+ toJsDate = (value) => {
1541
+ return value.toDate();
1542
+ };
1543
+ parse = (value, format) => {
1544
+ if (value === "") {
1545
+ return null;
1546
+ }
1547
+ return (0, import_dayjs.default)(value, format, this.locale, true);
1548
+ };
1549
+ getCurrentLocaleCode = () => {
1550
+ return this.locale || "en";
1551
+ };
1552
+ is12HourCycleInCurrentLocale = () => {
1553
+ return /A|a/.test(this.getLocaleFormats().LT || "");
1554
+ };
1555
+ expandFormat = (format) => {
1556
+ const localeFormats = this.getLocaleFormats();
1557
+ const t = (formatBis) => formatBis.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (_, a, b) => a || b.slice(1));
1558
+ return format.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (_, a, b) => {
1559
+ const B = b && b.toUpperCase();
1560
+ return a || localeFormats[b] || t(localeFormats[B]);
1561
+ });
1562
+ };
1563
+ isValid = (value) => {
1564
+ if (value == null) {
1565
+ return false;
1566
+ }
1567
+ return value.isValid();
1568
+ };
1569
+ format = (value, formatKey) => {
1570
+ return this.formatByString(value, this.formats[formatKey]);
1571
+ };
1572
+ formatByString = (value, formatString) => {
1573
+ return this.setLocaleToValue(value).format(formatString);
1574
+ };
1575
+ formatNumber = (numberToFormat) => {
1576
+ return numberToFormat;
1577
+ };
1578
+ isEqual = (value, comparing) => {
1579
+ if (value === null && comparing === null) {
1580
+ return true;
1581
+ }
1582
+ if (value === null || comparing === null) {
1583
+ return false;
1584
+ }
1585
+ return value.toDate().getTime() === comparing.toDate().getTime();
1586
+ };
1587
+ isSameYear = (value, comparing) => {
1588
+ return this.isSame(value, comparing, "YYYY");
1589
+ };
1590
+ isSameMonth = (value, comparing) => {
1591
+ return this.isSame(value, comparing, "YYYY-MM");
1592
+ };
1593
+ isSameDay = (value, comparing) => {
1594
+ return this.isSame(value, comparing, "YYYY-MM-DD");
1595
+ };
1596
+ isSameHour = (value, comparing) => {
1597
+ return value.isSame(comparing, "hour");
1598
+ };
1599
+ isAfter = (value, comparing) => {
1600
+ return value > comparing;
1601
+ };
1602
+ isAfterYear = (value, comparing) => {
1603
+ if (!this.hasUTCPlugin()) {
1604
+ return value.isAfter(comparing, "year");
1605
+ }
1606
+ return !this.isSameYear(value, comparing) && value.utc() > comparing.utc();
1607
+ };
1608
+ isAfterDay = (value, comparing) => {
1609
+ if (!this.hasUTCPlugin()) {
1610
+ return value.isAfter(comparing, "day");
1611
+ }
1612
+ return !this.isSameDay(value, comparing) && value.utc() > comparing.utc();
1613
+ };
1614
+ isBefore = (value, comparing) => {
1615
+ return value < comparing;
1616
+ };
1617
+ isBeforeYear = (value, comparing) => {
1618
+ if (!this.hasUTCPlugin()) {
1619
+ return value.isBefore(comparing, "year");
1620
+ }
1621
+ return !this.isSameYear(value, comparing) && value.utc() < comparing.utc();
1622
+ };
1623
+ isBeforeDay = (value, comparing) => {
1624
+ if (!this.hasUTCPlugin()) {
1625
+ return value.isBefore(comparing, "day");
1626
+ }
1627
+ return !this.isSameDay(value, comparing) && value.utc() < comparing.utc();
1628
+ };
1629
+ isWithinRange = (value, [start, end]) => {
1630
+ return value >= start && value <= end;
1631
+ };
1632
+ startOfYear = (value) => {
1633
+ return this.adjustOffset(value.startOf("year"));
1634
+ };
1635
+ startOfMonth = (value) => {
1636
+ return this.adjustOffset(value.startOf("month"));
1637
+ };
1638
+ startOfWeek = (value) => {
1639
+ return this.adjustOffset(this.setLocaleToValue(value).startOf("week"));
1640
+ };
1641
+ startOfDay = (value) => {
1642
+ return this.adjustOffset(value.startOf("day"));
1643
+ };
1644
+ endOfYear = (value) => {
1645
+ return this.adjustOffset(value.endOf("year"));
1646
+ };
1647
+ endOfMonth = (value) => {
1648
+ return this.adjustOffset(value.endOf("month"));
1649
+ };
1650
+ endOfWeek = (value) => {
1651
+ return this.adjustOffset(this.setLocaleToValue(value).endOf("week"));
1652
+ };
1653
+ endOfDay = (value) => {
1654
+ return this.adjustOffset(value.endOf("day"));
1655
+ };
1656
+ addYears = (value, amount) => {
1657
+ return this.adjustOffset(value.add(amount, "year"));
1658
+ };
1659
+ addMonths = (value, amount) => {
1660
+ return this.adjustOffset(value.add(amount, "month"));
1661
+ };
1662
+ addWeeks = (value, amount) => {
1663
+ return this.adjustOffset(value.add(amount, "week"));
1664
+ };
1665
+ addDays = (value, amount) => {
1666
+ return this.adjustOffset(value.add(amount, "day"));
1667
+ };
1668
+ addHours = (value, amount) => {
1669
+ return this.adjustOffset(value.add(amount, "hour"));
1670
+ };
1671
+ addMinutes = (value, amount) => {
1672
+ return this.adjustOffset(value.add(amount, "minute"));
1673
+ };
1674
+ addSeconds = (value, amount) => {
1675
+ return this.adjustOffset(value.add(amount, "second"));
1676
+ };
1677
+ getYear = (value) => {
1678
+ return value.year();
1679
+ };
1680
+ getMonth = (value) => {
1681
+ return value.month();
1682
+ };
1683
+ getDate = (value) => {
1684
+ return value.date();
1685
+ };
1686
+ getHours = (value) => {
1687
+ return value.hour();
1688
+ };
1689
+ getMinutes = (value) => {
1690
+ return value.minute();
1691
+ };
1692
+ getSeconds = (value) => {
1693
+ return value.second();
1694
+ };
1695
+ getMilliseconds = (value) => {
1696
+ return value.millisecond();
1697
+ };
1698
+ setYear = (value, year) => {
1699
+ return this.adjustOffset(value.set("year", year));
1700
+ };
1701
+ setMonth = (value, month) => {
1702
+ return this.adjustOffset(value.set("month", month));
1703
+ };
1704
+ setDate = (value, date) => {
1705
+ return this.adjustOffset(value.set("date", date));
1706
+ };
1707
+ setHours = (value, hours) => {
1708
+ return this.adjustOffset(value.set("hour", hours));
1709
+ };
1710
+ setMinutes = (value, minutes) => {
1711
+ return this.adjustOffset(value.set("minute", minutes));
1712
+ };
1713
+ setSeconds = (value, seconds) => {
1714
+ return this.adjustOffset(value.set("second", seconds));
1715
+ };
1716
+ setMilliseconds = (value, milliseconds) => {
1717
+ return this.adjustOffset(value.set("millisecond", milliseconds));
1718
+ };
1719
+ getDaysInMonth = (value) => {
1720
+ return value.daysInMonth();
1721
+ };
1722
+ getWeekArray = (value) => {
1723
+ const start = this.startOfWeek(this.startOfMonth(value));
1724
+ const end = this.endOfWeek(this.endOfMonth(value));
1725
+ let count = 0;
1726
+ let current = start;
1727
+ const nestedWeeks = [];
1728
+ while (current < end) {
1729
+ const weekNumber = Math.floor(count / 7);
1730
+ nestedWeeks[weekNumber] = nestedWeeks[weekNumber] || [];
1731
+ nestedWeeks[weekNumber].push(current);
1732
+ current = this.addDays(current, 1);
1733
+ count += 1;
1734
+ }
1735
+ return nestedWeeks;
1736
+ };
1737
+ getWeekNumber = (value) => {
1738
+ return value.week();
1739
+ };
1740
+ getDayOfWeek(value) {
1741
+ return value.day() + 1;
1742
+ }
1743
+ getYearRange = ([start, end]) => {
1744
+ const startDate = this.startOfYear(start);
1745
+ const endDate = this.endOfYear(end);
1746
+ const years = [];
1747
+ let current = startDate;
1748
+ while (this.isBefore(current, endDate)) {
1749
+ years.push(current);
1750
+ current = this.addYears(current, 1);
1751
+ }
1752
+ return years;
1753
+ };
1754
+ };
1755
+
1756
+ // src/providers/LayoutProvider.tsx
1757
+ var import_react_start2 = require("@tanstack/react-start");
1758
+ var import_server2 = require("@tanstack/react-start/server");
1759
+ var import_dayjs2 = __toESM(require("dayjs"), 1);
1760
+ var import_i18next = __toESM(require("i18next"), 1);
1761
+ var import_i18next_browser_languagedetector = __toESM(require("i18next-browser-languagedetector"), 1);
1762
+ var import_react10 = require("react");
1763
+ var import_react_i18next4 = require("react-i18next");
1764
+ var import_virtual_wcz_layout = require("virtual:wcz-layout");
1765
+ var import_zod2 = __toESM(require("zod"), 1);
1766
+
1767
+ // src/providers/DialogsProvider.tsx
1768
+ var import_react2 = require("react");
1769
+
1770
+ // src/contexts/DialogsContext.ts
1771
+ var import_react = require("react");
1772
+ var DialogsContext = (0, import_react.createContext)({});
1773
+
1774
+ // src/providers/DialogsProvider.tsx
1775
+ var import_jsx_runtime2 = require("react/jsx-runtime");
1776
+ function DialogsProvider({ children, unmountAfter = 1e3 }) {
1777
+ const [stack, setStack] = (0, import_react2.useState)([]);
1778
+ const keyPrefix = (0, import_react2.useId)();
1779
+ const nextId = (0, import_react2.useRef)(0);
1780
+ const dialogMetadata = (0, import_react2.useRef)(/* @__PURE__ */ new WeakMap());
1781
+ const requestDialog = useEventCallback_default(function open(Component2, payload, options = {}) {
1782
+ const { onClose = async () => {
1783
+ } } = options;
1784
+ let resolve;
1785
+ const promise = new Promise((resolveImpl) => {
1786
+ resolve = resolveImpl;
1787
+ });
1788
+ const key = `${keyPrefix}-${nextId.current}`;
1789
+ nextId.current += 1;
1790
+ const newEntry = {
1791
+ key,
1792
+ open: true,
1793
+ promise,
1794
+ Component: Component2,
1795
+ payload,
1796
+ onClose,
1797
+ resolve
1798
+ };
1799
+ dialogMetadata.current.set(promise, newEntry);
1800
+ setStack((previousStack) => [...previousStack, newEntry]);
1801
+ return promise;
1802
+ });
1803
+ const removeDialogFromStack = (dialog) => {
1804
+ setStack((previousStack) => previousStack.filter((entry) => entry.promise !== dialog));
1805
+ dialogMetadata.current.delete(dialog);
1806
+ };
1807
+ const closeDialogUi = useEventCallback_default(function closeDialogUi2(dialog) {
1808
+ setStack(
1809
+ (previousStack) => previousStack.map((entry) => entry.promise === dialog ? { ...entry, open: false } : entry)
1810
+ );
1811
+ setTimeout(() => removeDialogFromStack(dialog), unmountAfter);
1812
+ });
1813
+ const closeDialog = useEventCallback_default(async function closeDialog2(dialog, result) {
1814
+ const entryToClose = dialogMetadata.current.get(dialog);
1815
+ if (!entryToClose) {
1816
+ throw new Error("Dialog not found in stack");
1817
+ }
1818
+ try {
1819
+ await entryToClose.onClose(result);
1820
+ } finally {
1821
+ entryToClose.resolve(result);
1822
+ closeDialogUi(dialog);
1823
+ }
1824
+ return dialog;
1825
+ });
1826
+ return /* @__PURE__ */ (0, import_jsx_runtime2.jsxs)(DialogsContext.Provider, { value: { open: requestDialog, close: closeDialog }, children: [
1827
+ children,
1828
+ stack.map(({ key, open, Component: Component2, payload, promise }) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(
1829
+ Component2,
1830
+ {
1831
+ payload,
1832
+ open,
1833
+ onClose: async (result) => {
1834
+ await closeDialog(promise, result);
1835
+ }
1836
+ },
1837
+ key
1838
+ ))
1839
+ ] });
1840
+ }
1841
+
1842
+ // src/hooks/ThemeHook.ts
1843
+ var import_material = require("@mui/material");
1844
+ var import_colors = require("@mui/material/colors");
1845
+ var import_locale = require("@mui/material/locale");
1846
+
1847
+ // node_modules/@mui/x-data-grid/esm/utils/getGridLocalization.js
1848
+ var getGridLocalization = (gridTranslations) => ({
1849
+ components: {
1850
+ MuiDataGrid: {
1851
+ defaultProps: {
1852
+ localeText: gridTranslations
1853
+ }
1854
+ }
1855
+ }
1856
+ });
1857
+
1858
+ // node_modules/@mui/x-data-grid/esm/locales/csCZ.js
1859
+ var csCZGrid = {
1860
+ // Root
1861
+ noRowsLabel: "\u017D\xE1dn\xE9 z\xE1znamy",
1862
+ noResultsOverlayLabel: "Nena\u0161ly se \u017Eadn\xE9 v\xFDsledky.",
1863
+ noColumnsOverlayLabel: "\u017D\xE1dn\xE9 sloupce",
1864
+ noColumnsOverlayManageColumns: "Spravovat sloupce",
1865
+ // emptyPivotOverlayLabel: 'Add fields to rows, columns, and values to create a pivot table',
1866
+ // Density selector toolbar button text
1867
+ toolbarDensity: "Zobrazen\xED",
1868
+ toolbarDensityLabel: "Zobrazen\xED",
1869
+ toolbarDensityCompact: "Kompaktn\xED",
1870
+ toolbarDensityStandard: "Standartn\xED",
1871
+ toolbarDensityComfortable: "Komfortn\xED",
1872
+ // Columns selector toolbar button text
1873
+ toolbarColumns: "Sloupce",
1874
+ toolbarColumnsLabel: "Vybrat sloupec",
1875
+ // Filters toolbar button text
1876
+ toolbarFilters: "Filtry",
1877
+ toolbarFiltersLabel: "Zobrazit filtry",
1878
+ toolbarFiltersTooltipHide: "Skr\xFDt filtry",
1879
+ toolbarFiltersTooltipShow: "Zobrazit filtry",
1880
+ toolbarFiltersTooltipActive: (count) => {
1881
+ let pluralForm = "aktivn\xEDch filtr\u016F";
1882
+ if (count > 1 && count < 5) {
1883
+ pluralForm = "aktivn\xED filtry";
1884
+ } else if (count === 1) {
1885
+ pluralForm = "aktivn\xED filtr";
1886
+ }
1887
+ return `${count} ${pluralForm}`;
1888
+ },
1889
+ // Quick filter toolbar field
1890
+ toolbarQuickFilterPlaceholder: "Hledat\u2026",
1891
+ toolbarQuickFilterLabel: "Hledat",
1892
+ toolbarQuickFilterDeleteIconLabel: "Vymazat",
1893
+ // Export selector toolbar button text
1894
+ toolbarExport: "Export",
1895
+ toolbarExportLabel: "Export",
1896
+ toolbarExportCSV: "St\xE1hnout jako CSV",
1897
+ toolbarExportPrint: "Vytisknout",
1898
+ toolbarExportExcel: "St\xE1hnout jako Excel",
1899
+ // Toolbar pivot button
1900
+ // toolbarPivot: 'Pivot',
1901
+ // Toolbar charts button
1902
+ // toolbarCharts: 'Charts',
1903
+ // Toolbar AI Assistant button
1904
+ // toolbarAssistant: 'AI Assistant',
1905
+ // Columns management text
1906
+ columnsManagementSearchTitle: "Hledat sloupce",
1907
+ columnsManagementNoColumns: "\u017D\xE1dn\xE9 sloupce",
1908
+ columnsManagementShowHideAllText: "Zobrazit/skr\xFDt v\u0161e",
1909
+ columnsManagementReset: "Resetovat",
1910
+ columnsManagementDeleteIconLabel: "Vy\u010Distit",
1911
+ // Filter panel text
1912
+ filterPanelAddFilter: "P\u0159idat filtr",
1913
+ filterPanelRemoveAll: "Odstranit v\u0161e",
1914
+ filterPanelDeleteIconLabel: "Odstranit",
1915
+ filterPanelLogicOperator: "Logick\xFD oper\xE1tor",
1916
+ filterPanelOperator: "Oper\xE1tory",
1917
+ filterPanelOperatorAnd: "A",
1918
+ filterPanelOperatorOr: "Nebo",
1919
+ filterPanelColumns: "Sloupce",
1920
+ filterPanelInputLabel: "Hodnota",
1921
+ filterPanelInputPlaceholder: "Hodnota filtru",
1922
+ // Filter operators text
1923
+ filterOperatorContains: "obsahuje",
1924
+ filterOperatorDoesNotContain: "neobsahuje",
1925
+ filterOperatorEquals: "rovn\xE1 se",
1926
+ filterOperatorDoesNotEqual: "nerovn\xE1 se",
1927
+ filterOperatorStartsWith: "za\u010D\xEDn\xE1 na",
1928
+ filterOperatorEndsWith: "kon\u010D\xED na",
1929
+ filterOperatorIs: "je",
1930
+ filterOperatorNot: "nen\xED",
1931
+ filterOperatorAfter: "je po",
1932
+ filterOperatorOnOrAfter: "je po v\u010Detn\u011B",
1933
+ filterOperatorBefore: "je p\u0159ed",
1934
+ filterOperatorOnOrBefore: "je p\u0159ed v\u010Detn\u011B",
1935
+ filterOperatorIsEmpty: "je pr\xE1zdn\xFD",
1936
+ filterOperatorIsNotEmpty: "nen\xED pr\xE1zdn\xFD",
1937
+ filterOperatorIsAnyOf: "je jeden z",
1938
+ "filterOperator=": "=",
1939
+ "filterOperator!=": "!=",
1940
+ "filterOperator>": ">",
1941
+ "filterOperator>=": ">=",
1942
+ "filterOperator<": "<",
1943
+ "filterOperator<=": "<=",
1944
+ // Header filter operators text
1945
+ headerFilterOperatorContains: "Obsahuje",
1946
+ headerFilterOperatorDoesNotContain: "Neobsahuje",
1947
+ headerFilterOperatorEquals: "Rovn\xE1 se",
1948
+ headerFilterOperatorDoesNotEqual: "Nerovn\xE1 se",
1949
+ headerFilterOperatorStartsWith: "Za\u010D\xEDn\xE1 na",
1950
+ headerFilterOperatorEndsWith: "Kon\u010D\xED na",
1951
+ headerFilterOperatorIs: "Je",
1952
+ headerFilterOperatorNot: "Nen\xED",
1953
+ headerFilterOperatorAfter: "Je po",
1954
+ headerFilterOperatorOnOrAfter: "Je po v\u010Detn\u011B",
1955
+ headerFilterOperatorBefore: "Je p\u0159ed",
1956
+ headerFilterOperatorOnOrBefore: "Je p\u0159ed v\u010Detn\u011B",
1957
+ headerFilterOperatorIsEmpty: "Je pr\xE1zdn\xFD",
1958
+ headerFilterOperatorIsNotEmpty: "Nen\xED pr\xE1zdn\xFD",
1959
+ headerFilterOperatorIsAnyOf: "Je jeden z",
1960
+ "headerFilterOperator=": "Rovn\xE1 se",
1961
+ "headerFilterOperator!=": "Nerovn\xE1 se",
1962
+ "headerFilterOperator>": "V\u011Bt\u0161\xED ne\u017E",
1963
+ "headerFilterOperator>=": "V\u011Bt\u0161\xED ne\u017E nebo rovno",
1964
+ "headerFilterOperator<": "Men\u0161\xED ne\u017E",
1965
+ "headerFilterOperator<=": "Men\u0161\xED ne\u017E nebo rovno",
1966
+ headerFilterClear: "Zru\u0161it filtr",
1967
+ // Filter values text
1968
+ filterValueAny: "jak\xFDkoliv",
1969
+ filterValueTrue: "ano",
1970
+ filterValueFalse: "ne",
1971
+ // Column menu text
1972
+ columnMenuLabel: "Menu",
1973
+ columnMenuAriaLabel: (columnName) => `Mo\u017Enosti sloupce ${columnName}`,
1974
+ columnMenuShowColumns: "Zobrazit sloupce",
1975
+ columnMenuManageColumns: "Spravovat sloupce",
1976
+ columnMenuFilter: "Filtr",
1977
+ columnMenuHideColumn: "Skr\xFDt",
1978
+ columnMenuUnsort: "Zru\u0161it filtry",
1979
+ columnMenuSortAsc: "Se\u0159adit vzestupn\u011B",
1980
+ columnMenuSortDesc: "Se\u0159adit sestupn\u011B",
1981
+ // columnMenuManagePivot: 'Manage pivot',
1982
+ // columnMenuManageCharts: 'Manage charts',
1983
+ // Column header text
1984
+ columnHeaderFiltersTooltipActive: (count) => {
1985
+ let pluralForm = "aktivn\xEDch filtr\u016F";
1986
+ if (count > 1 && count < 5) {
1987
+ pluralForm = "aktivn\xED filtry";
1988
+ } else if (count === 1) {
1989
+ pluralForm = "aktivn\xED filtr";
1990
+ }
1991
+ return `${count} ${pluralForm}`;
1992
+ },
1993
+ columnHeaderFiltersLabel: "Zobrazit filtry",
1994
+ columnHeaderSortIconLabel: "Filtrovat",
1995
+ // Rows selected footer text
1996
+ footerRowSelected: (count) => {
1997
+ let pluralForm = "vybran\xFDch z\xE1znam\u016F";
1998
+ if (count > 1 && count < 5) {
1999
+ pluralForm = "vybran\xE9 z\xE1znamy";
2000
+ } else if (count === 1) {
2001
+ pluralForm = "vybran\xFD z\xE1znam";
2002
+ }
2003
+ return `${count} ${pluralForm}`;
2004
+ },
2005
+ // Total row amount footer text
2006
+ footerTotalRows: "Celkem \u0159\xE1dk\u016F:",
2007
+ // Total visible row amount footer text
2008
+ footerTotalVisibleRows: (visibleCount, totalCount) => {
2009
+ const str = totalCount.toString();
2010
+ const firstDigit = str[0];
2011
+ const op = ["4", "6", "7"].includes(firstDigit) || firstDigit === "1" && str.length % 3 === 0 ? "ze" : "z";
2012
+ return `${visibleCount.toLocaleString()} ${op} ${totalCount.toLocaleString()}`;
2013
+ },
2014
+ // Checkbox selection text
2015
+ checkboxSelectionHeaderName: "V\xFDb\u011Br \u0159\xE1dku",
2016
+ checkboxSelectionSelectAllRows: "Ozna\u010Dit v\u0161echny \u0159\xE1dky",
2017
+ checkboxSelectionUnselectAllRows: "Odzna\u010Dit v\u0161echny \u0159\xE1dky",
2018
+ checkboxSelectionSelectRow: "Ozna\u010Dit \u0159\xE1dek",
2019
+ checkboxSelectionUnselectRow: "Odzna\u010Dit \u0159\xE1dek",
2020
+ // Boolean cell text
2021
+ booleanCellTrueLabel: "ano",
2022
+ booleanCellFalseLabel: "ne",
2023
+ // Actions cell more text
2024
+ actionsCellMore: "v\xEDce",
2025
+ // Column pinning text
2026
+ pinToLeft: "P\u0159ipnout vlevo",
2027
+ pinToRight: "P\u0159ipnout vpravo",
2028
+ unpin: "Odepnout",
2029
+ // Tree Data
2030
+ treeDataGroupingHeaderName: "Skupina",
2031
+ treeDataExpand: "zobrazit potomky",
2032
+ treeDataCollapse: "skr\xFDt potomky",
2033
+ // Grouping columns
2034
+ groupingColumnHeaderName: "Skupina",
2035
+ groupColumn: (name) => `Seskupit podle ${name}`,
2036
+ unGroupColumn: (name) => `P\u0159estat seskupovat podle ${name}`,
2037
+ // Master/detail
2038
+ detailPanelToggle: "P\u0159epnout detail panelu",
2039
+ expandDetailPanel: "Rozbalit",
2040
+ collapseDetailPanel: "Sbalit",
2041
+ // Pagination
2042
+ paginationRowsPerPage: "\u0158\xE1dk\u016F na str\xE1nce:",
2043
+ paginationDisplayedRows: ({
2044
+ from,
2045
+ to,
2046
+ count,
2047
+ estimated
2048
+ }) => {
2049
+ if (!estimated) {
2050
+ return `${from}\u2013${to} z ${count !== -1 ? count : `v\xEDce ne\u017E ${to}`}`;
2051
+ }
2052
+ const estimatedLabel = estimated && estimated > to ? `p\u0159ibli\u017En\u011B ${estimated}` : `v\xEDce ne\u017E ${to}`;
2053
+ return `${from}\u2013${to} z ${count !== -1 ? count : estimatedLabel}`;
2054
+ },
2055
+ paginationItemAriaLabel: (type) => {
2056
+ if (type === "first") {
2057
+ return "J\xEDt na prvn\xED str\xE1nku";
2058
+ }
2059
+ if (type === "last") {
2060
+ return "J\xEDt na posledn\xED str\xE1nku";
2061
+ }
2062
+ if (type === "next") {
2063
+ return "J\xEDt na dal\u0161\xED str\xE1nku";
2064
+ }
2065
+ return "J\xEDt na p\u0159edchoz\xED str\xE1nku";
2066
+ },
2067
+ // Row reordering text
2068
+ rowReorderingHeaderName: "P\u0159euspo\u0159\xE1d\xE1v\xE1n\xED \u0159\xE1dk\u016F",
2069
+ // Aggregation
2070
+ aggregationMenuItemHeader: "Seskupov\xE1n\xED",
2071
+ // aggregationFunctionLabelNone: 'none',
2072
+ aggregationFunctionLabelSum: "sou\u010Det",
2073
+ aggregationFunctionLabelAvg: "pr\u016Fm\u011Br",
2074
+ aggregationFunctionLabelMin: "min",
2075
+ aggregationFunctionLabelMax: "max",
2076
+ aggregationFunctionLabelSize: "po\u010Det",
2077
+ // Pivot panel
2078
+ // pivotToggleLabel: 'Pivot',
2079
+ // pivotRows: 'Rows',
2080
+ // pivotColumns: 'Columns',
2081
+ // pivotValues: 'Values',
2082
+ // pivotCloseButton: 'Close pivot settings',
2083
+ // pivotSearchButton: 'Search fields',
2084
+ // pivotSearchControlPlaceholder: 'Search fields',
2085
+ // pivotSearchControlLabel: 'Search fields',
2086
+ // pivotSearchControlClear: 'Clear search',
2087
+ // pivotNoFields: 'No fields',
2088
+ // pivotMenuMoveUp: 'Move up',
2089
+ // pivotMenuMoveDown: 'Move down',
2090
+ // pivotMenuMoveToTop: 'Move to top',
2091
+ // pivotMenuMoveToBottom: 'Move to bottom',
2092
+ // pivotMenuRows: 'Rows',
2093
+ // pivotMenuColumns: 'Columns',
2094
+ // pivotMenuValues: 'Values',
2095
+ // pivotMenuOptions: 'Field options',
2096
+ // pivotMenuAddToRows: 'Add to Rows',
2097
+ // pivotMenuAddToColumns: 'Add to Columns',
2098
+ // pivotMenuAddToValues: 'Add to Values',
2099
+ // pivotMenuRemove: 'Remove',
2100
+ // pivotDragToRows: 'Drag here to create rows',
2101
+ // pivotDragToColumns: 'Drag here to create columns',
2102
+ // pivotDragToValues: 'Drag here to create values',
2103
+ // pivotYearColumnHeaderName: '(Year)',
2104
+ // pivotQuarterColumnHeaderName: '(Quarter)',
2105
+ // Charts configuration panel
2106
+ // chartsNoCharts: 'There are no charts available',
2107
+ // chartsChartNotSelected: 'Select a chart type to configure its options',
2108
+ // chartsTabChart: 'Chart',
2109
+ // chartsTabFields: 'Fields',
2110
+ // chartsTabCustomize: 'Customize',
2111
+ // chartsCloseButton: 'Close charts configuration',
2112
+ // chartsSyncButtonLabel: 'Sync chart',
2113
+ // chartsSearchPlaceholder: 'Search fields',
2114
+ // chartsSearchLabel: 'Search fields',
2115
+ // chartsSearchClear: 'Clear search',
2116
+ // chartsNoFields: 'No fields',
2117
+ // chartsFieldBlocked: 'This field cannot be added to any section',
2118
+ // chartsCategories: 'Categories',
2119
+ // chartsSeries: 'Series',
2120
+ // chartsMenuAddToDimensions: (dimensionLabel: string) => `Add to ${dimensionLabel}`,
2121
+ // chartsMenuAddToValues: (valuesLabel: string) => `Add to ${valuesLabel}`,
2122
+ // chartsMenuMoveUp: 'Move up',
2123
+ // chartsMenuMoveDown: 'Move down',
2124
+ // chartsMenuMoveToTop: 'Move to top',
2125
+ // chartsMenuMoveToBottom: 'Move to bottom',
2126
+ // chartsMenuOptions: 'Field options',
2127
+ // chartsMenuRemove: 'Remove',
2128
+ // chartsDragToDimensions: (dimensionLabel: string) => `Drag here to use column as ${dimensionLabel}`,
2129
+ // chartsDragToValues: (valuesLabel: string) => `Drag here to use column as ${valuesLabel}`,
2130
+ // AI Assistant panel
2131
+ // aiAssistantPanelTitle: 'AI Assistant',
2132
+ // aiAssistantPanelClose: 'Close AI Assistant',
2133
+ // aiAssistantPanelNewConversation: 'New conversation',
2134
+ // aiAssistantPanelConversationHistory: 'Conversation history',
2135
+ // aiAssistantPanelEmptyConversation: 'No prompt history',
2136
+ // aiAssistantSuggestions: 'Suggestions',
2137
+ // Prompt field
2138
+ promptFieldLabel: "Vstup po\u017Eadavku",
2139
+ promptFieldPlaceholder: "Napi\u0161te po\u017Eadavek\u2026",
2140
+ promptFieldPlaceholderWithRecording: "Napi\u0161te nebo nahrajte po\u017Eadavek\u2026",
2141
+ promptFieldPlaceholderListening: "Naslouch\xE1m po\u017Eadavku\u2026",
2142
+ // promptFieldSpeechRecognitionNotSupported: 'Speech recognition is not supported in this browser',
2143
+ promptFieldSend: "Odeslat",
2144
+ promptFieldRecord: "Nahr\xE1t",
2145
+ promptFieldStopRecording: "Zastavit nahr\xE1v\xE1n\xED"
2146
+ // Prompt
2147
+ // promptRerun: 'Run again',
2148
+ // promptProcessing: 'Processing…',
2149
+ // promptAppliedChanges: 'Applied changes',
2150
+ // Prompt changes
2151
+ // promptChangeGroupDescription: (column: string) => `Group by ${column}`,
2152
+ // promptChangeAggregationLabel: (column: string, aggregation: string) => `${column} (${aggregation})`,
2153
+ // promptChangeAggregationDescription: (column: string, aggregation: string) => `Aggregate ${column} (${aggregation})`,
2154
+ // promptChangeFilterLabel: (column: string, operator: string, value: string) => {
2155
+ // if (operator === 'is any of') {
2156
+ // return `${column} is any of: ${value}`;
2157
+ // }
2158
+ // return `${column} ${operator} ${value}`;
2159
+ // },
2160
+ // promptChangeFilterDescription: (column: string, operator: string, value: string) => {
2161
+ // if (operator === 'is any of') {
2162
+ // return `Filter where ${column} is any of: ${value}`;
2163
+ // }
2164
+ // return `Filter where ${column} ${operator} ${value}`;
2165
+ // },
2166
+ // promptChangeSortDescription: (column: string, direction: string) => `Sort by ${column} (${direction})`,
2167
+ // promptChangePivotEnableLabel: 'Pivot',
2168
+ // promptChangePivotEnableDescription: 'Enable pivot',
2169
+ // promptChangePivotColumnsLabel: (count: number) => `Columns (${count})`,
2170
+ // promptChangePivotColumnsDescription: (column: string, direction: string) => `${column}${direction ? ` (${direction})` : ''}`,
2171
+ // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
2172
+ // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
2173
+ // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
2174
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
2175
+ };
2176
+ var csCZ = getGridLocalization(csCZGrid);
2177
+
2178
+ // node_modules/@mui/x-data-grid/esm/constants/localeTextConstants.js
2179
+ var GRID_DEFAULT_LOCALE_TEXT = {
2180
+ // Root
2181
+ noRowsLabel: "No rows",
2182
+ noResultsOverlayLabel: "No results found.",
2183
+ noColumnsOverlayLabel: "No columns",
2184
+ noColumnsOverlayManageColumns: "Manage columns",
2185
+ emptyPivotOverlayLabel: "Add fields to rows, columns, and values to create a pivot table",
2186
+ // Density selector toolbar button text
2187
+ toolbarDensity: "Density",
2188
+ toolbarDensityLabel: "Density",
2189
+ toolbarDensityCompact: "Compact",
2190
+ toolbarDensityStandard: "Standard",
2191
+ toolbarDensityComfortable: "Comfortable",
2192
+ // Columns selector toolbar button text
2193
+ toolbarColumns: "Columns",
2194
+ toolbarColumnsLabel: "Select columns",
2195
+ // Filters toolbar button text
2196
+ toolbarFilters: "Filters",
2197
+ toolbarFiltersLabel: "Show filters",
2198
+ toolbarFiltersTooltipHide: "Hide filters",
2199
+ toolbarFiltersTooltipShow: "Show filters",
2200
+ toolbarFiltersTooltipActive: (count) => count !== 1 ? `${count} active filters` : `${count} active filter`,
2201
+ // Quick filter toolbar field
2202
+ toolbarQuickFilterPlaceholder: "Search\u2026",
2203
+ toolbarQuickFilterLabel: "Search",
2204
+ toolbarQuickFilterDeleteIconLabel: "Clear",
2205
+ // Export selector toolbar button text
2206
+ toolbarExport: "Export",
2207
+ toolbarExportLabel: "Export",
2208
+ toolbarExportCSV: "Download as CSV",
2209
+ toolbarExportPrint: "Print",
2210
+ toolbarExportExcel: "Download as Excel",
2211
+ // Toolbar pivot button
2212
+ toolbarPivot: "Pivot",
2213
+ // Toolbar charts button
2214
+ toolbarCharts: "Charts",
2215
+ // Toolbar AI Assistant button
2216
+ toolbarAssistant: "AI Assistant",
2217
+ // Columns management text
2218
+ columnsManagementSearchTitle: "Search",
2219
+ columnsManagementNoColumns: "No columns",
2220
+ columnsManagementShowHideAllText: "Show/Hide All",
2221
+ columnsManagementReset: "Reset",
2222
+ columnsManagementDeleteIconLabel: "Clear",
2223
+ // Filter panel text
2224
+ filterPanelAddFilter: "Add filter",
2225
+ filterPanelRemoveAll: "Remove all",
2226
+ filterPanelDeleteIconLabel: "Delete",
2227
+ filterPanelLogicOperator: "Logic operator",
2228
+ filterPanelOperator: "Operator",
2229
+ filterPanelOperatorAnd: "And",
2230
+ filterPanelOperatorOr: "Or",
2231
+ filterPanelColumns: "Columns",
2232
+ filterPanelInputLabel: "Value",
2233
+ filterPanelInputPlaceholder: "Filter value",
2234
+ // Filter operators text
2235
+ filterOperatorContains: "contains",
2236
+ filterOperatorDoesNotContain: "does not contain",
2237
+ filterOperatorEquals: "equals",
2238
+ filterOperatorDoesNotEqual: "does not equal",
2239
+ filterOperatorStartsWith: "starts with",
2240
+ filterOperatorEndsWith: "ends with",
2241
+ filterOperatorIs: "is",
2242
+ filterOperatorNot: "is not",
2243
+ filterOperatorAfter: "is after",
2244
+ filterOperatorOnOrAfter: "is on or after",
2245
+ filterOperatorBefore: "is before",
2246
+ filterOperatorOnOrBefore: "is on or before",
2247
+ filterOperatorIsEmpty: "is empty",
2248
+ filterOperatorIsNotEmpty: "is not empty",
2249
+ filterOperatorIsAnyOf: "is any of",
2250
+ "filterOperator=": "=",
2251
+ "filterOperator!=": "!=",
2252
+ "filterOperator>": ">",
2253
+ "filterOperator>=": ">=",
2254
+ "filterOperator<": "<",
2255
+ "filterOperator<=": "<=",
2256
+ // Header filter operators text
2257
+ headerFilterOperatorContains: "Contains",
2258
+ headerFilterOperatorDoesNotContain: "Does not contain",
2259
+ headerFilterOperatorEquals: "Equals",
2260
+ headerFilterOperatorDoesNotEqual: "Does not equal",
2261
+ headerFilterOperatorStartsWith: "Starts with",
2262
+ headerFilterOperatorEndsWith: "Ends with",
2263
+ headerFilterOperatorIs: "Is",
2264
+ headerFilterOperatorNot: "Is not",
2265
+ headerFilterOperatorAfter: "Is after",
2266
+ headerFilterOperatorOnOrAfter: "Is on or after",
2267
+ headerFilterOperatorBefore: "Is before",
2268
+ headerFilterOperatorOnOrBefore: "Is on or before",
2269
+ headerFilterOperatorIsEmpty: "Is empty",
2270
+ headerFilterOperatorIsNotEmpty: "Is not empty",
2271
+ headerFilterOperatorIsAnyOf: "Is any of",
2272
+ "headerFilterOperator=": "Equals",
2273
+ "headerFilterOperator!=": "Not equals",
2274
+ "headerFilterOperator>": "Greater than",
2275
+ "headerFilterOperator>=": "Greater than or equal to",
2276
+ "headerFilterOperator<": "Less than",
2277
+ "headerFilterOperator<=": "Less than or equal to",
2278
+ headerFilterClear: "Clear filter",
2279
+ // Filter values text
2280
+ filterValueAny: "any",
2281
+ filterValueTrue: "true",
2282
+ filterValueFalse: "false",
2283
+ // Column menu text
2284
+ columnMenuLabel: "Menu",
2285
+ columnMenuAriaLabel: (columnName) => `${columnName} column menu`,
2286
+ columnMenuShowColumns: "Show columns",
2287
+ columnMenuManageColumns: "Manage columns",
2288
+ columnMenuFilter: "Filter",
2289
+ columnMenuHideColumn: "Hide column",
2290
+ columnMenuUnsort: "Unsort",
2291
+ columnMenuSortAsc: "Sort by ASC",
2292
+ columnMenuSortDesc: "Sort by DESC",
2293
+ columnMenuManagePivot: "Manage pivot",
2294
+ columnMenuManageCharts: "Manage charts",
2295
+ // Column header text
2296
+ columnHeaderFiltersTooltipActive: (count) => count !== 1 ? `${count} active filters` : `${count} active filter`,
2297
+ columnHeaderFiltersLabel: "Show filters",
2298
+ columnHeaderSortIconLabel: "Sort",
2299
+ // Rows selected footer text
2300
+ footerRowSelected: (count) => count !== 1 ? `${count.toLocaleString()} rows selected` : `${count.toLocaleString()} row selected`,
2301
+ // Total row amount footer text
2302
+ footerTotalRows: "Total Rows:",
2303
+ // Total visible row amount footer text
2304
+ footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} of ${totalCount.toLocaleString()}`,
2305
+ // Checkbox selection text
2306
+ checkboxSelectionHeaderName: "Checkbox selection",
2307
+ checkboxSelectionSelectAllRows: "Select all rows",
2308
+ checkboxSelectionUnselectAllRows: "Unselect all rows",
2309
+ checkboxSelectionSelectRow: "Select row",
2310
+ checkboxSelectionUnselectRow: "Unselect row",
2311
+ // Boolean cell text
2312
+ booleanCellTrueLabel: "yes",
2313
+ booleanCellFalseLabel: "no",
2314
+ // Actions cell more text
2315
+ actionsCellMore: "more",
2316
+ // Column pinning text
2317
+ pinToLeft: "Pin to left",
2318
+ pinToRight: "Pin to right",
2319
+ unpin: "Unpin",
2320
+ // Tree Data
2321
+ treeDataGroupingHeaderName: "Group",
2322
+ treeDataExpand: "see children",
2323
+ treeDataCollapse: "hide children",
2324
+ // Grouping columns
2325
+ groupingColumnHeaderName: "Group",
2326
+ groupColumn: (name) => `Group by ${name}`,
2327
+ unGroupColumn: (name) => `Stop grouping by ${name}`,
2328
+ // Master/detail
2329
+ detailPanelToggle: "Detail panel toggle",
2330
+ expandDetailPanel: "Expand",
2331
+ collapseDetailPanel: "Collapse",
2332
+ // Pagination
2333
+ paginationRowsPerPage: "Rows per page:",
2334
+ paginationDisplayedRows: ({
2335
+ from,
2336
+ to,
2337
+ count,
2338
+ estimated
2339
+ }) => {
2340
+ if (!estimated) {
2341
+ return `${from}\u2013${to} of ${count !== -1 ? count : `more than ${to}`}`;
2342
+ }
2343
+ const estimatedLabel = estimated && estimated > to ? `around ${estimated}` : `more than ${to}`;
2344
+ return `${from}\u2013${to} of ${count !== -1 ? count : estimatedLabel}`;
2345
+ },
2346
+ paginationItemAriaLabel: (type) => {
2347
+ if (type === "first") {
2348
+ return "Go to first page";
2349
+ }
2350
+ if (type === "last") {
2351
+ return "Go to last page";
2352
+ }
2353
+ if (type === "next") {
2354
+ return "Go to next page";
2355
+ }
2356
+ return "Go to previous page";
2357
+ },
2358
+ // Row reordering text
2359
+ rowReorderingHeaderName: "Row reordering",
2360
+ // Aggregation
2361
+ aggregationMenuItemHeader: "Aggregation",
2362
+ aggregationFunctionLabelNone: "none",
2363
+ aggregationFunctionLabelSum: "sum",
2364
+ aggregationFunctionLabelAvg: "avg",
2365
+ aggregationFunctionLabelMin: "min",
2366
+ aggregationFunctionLabelMax: "max",
2367
+ aggregationFunctionLabelSize: "size",
2368
+ // Pivot panel
2369
+ pivotToggleLabel: "Pivot",
2370
+ pivotRows: "Rows",
2371
+ pivotColumns: "Columns",
2372
+ pivotValues: "Values",
2373
+ pivotCloseButton: "Close pivot settings",
2374
+ pivotSearchButton: "Search fields",
2375
+ pivotSearchControlPlaceholder: "Search fields",
2376
+ pivotSearchControlLabel: "Search fields",
2377
+ pivotSearchControlClear: "Clear search",
2378
+ pivotNoFields: "No fields",
2379
+ pivotMenuMoveUp: "Move up",
2380
+ pivotMenuMoveDown: "Move down",
2381
+ pivotMenuMoveToTop: "Move to top",
2382
+ pivotMenuMoveToBottom: "Move to bottom",
2383
+ pivotMenuRows: "Rows",
2384
+ pivotMenuColumns: "Columns",
2385
+ pivotMenuValues: "Values",
2386
+ pivotMenuOptions: "Field options",
2387
+ pivotMenuAddToRows: "Add to Rows",
2388
+ pivotMenuAddToColumns: "Add to Columns",
2389
+ pivotMenuAddToValues: "Add to Values",
2390
+ pivotMenuRemove: "Remove",
2391
+ pivotDragToRows: "Drag here to create rows",
2392
+ pivotDragToColumns: "Drag here to create columns",
2393
+ pivotDragToValues: "Drag here to create values",
2394
+ pivotYearColumnHeaderName: "(Year)",
2395
+ pivotQuarterColumnHeaderName: "(Quarter)",
2396
+ // Charts configuration panel
2397
+ chartsNoCharts: "There are no charts available",
2398
+ chartsChartNotSelected: "Select a chart type to configure its options",
2399
+ chartsTabChart: "Chart",
2400
+ chartsTabFields: "Fields",
2401
+ chartsTabCustomize: "Customize",
2402
+ chartsCloseButton: "Close charts configuration",
2403
+ chartsSyncButtonLabel: "Sync chart",
2404
+ chartsSearchPlaceholder: "Search fields",
2405
+ chartsSearchLabel: "Search fields",
2406
+ chartsSearchClear: "Clear search",
2407
+ chartsNoFields: "No fields",
2408
+ chartsFieldBlocked: "This field cannot be added to any section",
2409
+ chartsCategories: "Categories",
2410
+ chartsSeries: "Series",
2411
+ chartsMenuAddToDimensions: (dimensionLabel) => `Add to ${dimensionLabel}`,
2412
+ chartsMenuAddToValues: (valuesLabel) => `Add to ${valuesLabel}`,
2413
+ chartsMenuMoveUp: "Move up",
2414
+ chartsMenuMoveDown: "Move down",
2415
+ chartsMenuMoveToTop: "Move to top",
2416
+ chartsMenuMoveToBottom: "Move to bottom",
2417
+ chartsMenuOptions: "Field options",
2418
+ chartsMenuRemove: "Remove",
2419
+ chartsDragToDimensions: (dimensionLabel) => `Drag here to use column as ${dimensionLabel}`,
2420
+ chartsDragToValues: (valuesLabel) => `Drag here to use column as ${valuesLabel}`,
2421
+ // AI Assistant panel
2422
+ aiAssistantPanelTitle: "AI Assistant",
2423
+ aiAssistantPanelClose: "Close AI Assistant",
2424
+ aiAssistantPanelNewConversation: "New conversation",
2425
+ aiAssistantPanelConversationHistory: "Conversation history",
2426
+ aiAssistantPanelEmptyConversation: "No prompt history",
2427
+ aiAssistantSuggestions: "Suggestions",
2428
+ // Prompt field
2429
+ promptFieldLabel: "Prompt",
2430
+ promptFieldPlaceholder: "Type a prompt\u2026",
2431
+ promptFieldPlaceholderWithRecording: "Type or record a prompt\u2026",
2432
+ promptFieldPlaceholderListening: "Listening for prompt\u2026",
2433
+ promptFieldSpeechRecognitionNotSupported: "Speech recognition is not supported in this browser",
2434
+ promptFieldSend: "Send",
2435
+ promptFieldRecord: "Record",
2436
+ promptFieldStopRecording: "Stop recording",
2437
+ // Prompt
2438
+ promptRerun: "Run again",
2439
+ promptProcessing: "Processing\u2026",
2440
+ promptAppliedChanges: "Applied changes",
2441
+ // Prompt changes
2442
+ promptChangeGroupDescription: (column) => `Group by ${column}`,
2443
+ promptChangeAggregationLabel: (column, aggregation) => `${column} (${aggregation})`,
2444
+ promptChangeAggregationDescription: (column, aggregation) => `Aggregate ${column} (${aggregation})`,
2445
+ promptChangeFilterLabel: (column, operator, value) => {
2446
+ if (operator === "is any of") {
2447
+ return `${column} is any of: ${value}`;
2448
+ }
2449
+ return `${column} ${operator} ${value}`;
2450
+ },
2451
+ promptChangeFilterDescription: (column, operator, value) => {
2452
+ if (operator === "is any of") {
2453
+ return `Filter where ${column} is any of: ${value}`;
2454
+ }
2455
+ return `Filter where ${column} ${operator} ${value}`;
2456
+ },
2457
+ promptChangeSortDescription: (column, direction) => `Sort by ${column} (${direction})`,
2458
+ promptChangePivotEnableLabel: "Pivot",
2459
+ promptChangePivotEnableDescription: "Enable pivot",
2460
+ promptChangePivotColumnsLabel: (count) => `Columns (${count})`,
2461
+ promptChangePivotColumnsDescription: (column, direction) => `${column}${direction ? ` (${direction})` : ""}`,
2462
+ promptChangePivotRowsLabel: (count) => `Rows (${count})`,
2463
+ promptChangePivotValuesLabel: (count) => `Values (${count})`,
2464
+ promptChangePivotValuesDescription: (column, aggregation) => `${column} (${aggregation})`,
2465
+ promptChangeChartsLabel: (dimensionsCount, valuesCount) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`
2466
+ };
2467
+
2468
+ // node_modules/@mui/x-data-grid/esm/locales/enUS.js
2469
+ var enUS2 = getGridLocalization(GRID_DEFAULT_LOCALE_TEXT);
2470
+
2471
+ // node_modules/@mui/x-date-pickers/esm/locales/csCZ.js
2472
+ var timeViews = {
2473
+ hours: "Hodiny",
2474
+ minutes: "Minuty",
2475
+ seconds: "Sekundy",
2476
+ meridiem: "Odpoledne"
2477
+ };
2478
+ var csCZPickers = {
2479
+ // Calendar navigation
2480
+ previousMonth: "P\u0159edchoz\xED m\u011Bs\xEDc",
2481
+ nextMonth: "Dal\u0161\xED m\u011Bs\xEDc",
2482
+ // View navigation
2483
+ openPreviousView: "Otev\u0159\xEDt p\u0159edchoz\xED zobrazen\xED",
2484
+ openNextView: "Otev\u0159\xEDt dal\u0161\xED zobrazen\xED",
2485
+ calendarViewSwitchingButtonAriaLabel: (view) => view === "year" ? "ro\u010Dn\xED zobrazen\xED otev\u0159eno, p\u0159epn\u011Bte do zobrazen\xED kalend\xE1\u0159e" : "zobrazen\xED kalend\xE1\u0159e otev\u0159eno, p\u0159epn\u011Bte do zobrazen\xED roku",
2486
+ // DateRange labels
2487
+ start: "Za\u010D\xE1tek",
2488
+ end: "Konec",
2489
+ startDate: "Datum za\u010D\xE1tku",
2490
+ startTime: "\u010Cas za\u010D\xE1tku",
2491
+ endDate: "Datum konce",
2492
+ endTime: "\u010Cas konce",
2493
+ // Action bar
2494
+ cancelButtonLabel: "Zru\u0161it",
2495
+ clearButtonLabel: "Vymazat",
2496
+ okButtonLabel: "Potvrdit",
2497
+ todayButtonLabel: "Dnes",
2498
+ nextStepButtonLabel: "Dal\u0161\xED",
2499
+ // Toolbar titles
2500
+ datePickerToolbarTitle: "Vyberte datum",
2501
+ dateTimePickerToolbarTitle: "Vyberte datum a \u010Das",
2502
+ timePickerToolbarTitle: "Vyberte \u010Das",
2503
+ dateRangePickerToolbarTitle: "Vyberte rozmez\xED dat",
2504
+ // timeRangePickerToolbarTitle: 'Select time range',
2505
+ // Clock labels
2506
+ clockLabelText: (view, formattedTime) => `${timeViews[view] ?? view} vybr\xE1ny. ${!formattedTime ? "Nen\xED vybr\xE1n \u010Das" : `Vybran\xFD \u010Das je ${formattedTime}`}`,
2507
+ hoursClockNumberText: (hours) => `${hours} hodin`,
2508
+ minutesClockNumberText: (minutes) => `${minutes} minut`,
2509
+ secondsClockNumberText: (seconds) => `${seconds} sekund`,
2510
+ // Digital clock labels
2511
+ selectViewText: (view) => `Vyberte ${timeViews[view]}`,
2512
+ // Calendar labels
2513
+ calendarWeekNumberHeaderLabel: "T\xFDden v roce",
2514
+ calendarWeekNumberHeaderText: "#",
2515
+ calendarWeekNumberAriaLabelText: (weekNumber) => `${weekNumber} t\xFDden v roce`,
2516
+ calendarWeekNumberText: (weekNumber) => `${weekNumber}`,
2517
+ // Open Picker labels
2518
+ openDatePickerDialogue: (formattedDate) => formattedDate ? `Vyberte datum, vybran\xE9 datum je ${formattedDate}` : "Vyberte datum",
2519
+ openTimePickerDialogue: (formattedTime) => formattedTime ? `Vyberte \u010Das, vybran\xFD \u010Das je ${formattedTime}` : "Vyberte \u010Das",
2520
+ // openRangePickerDialogue: formattedRange => formattedRange ? `Choose range, selected range is ${formattedRange}` : 'Choose range',
2521
+ fieldClearLabel: "Vymazat",
2522
+ // Table labels
2523
+ timeTableLabel: "vyberte \u010Das",
2524
+ dateTableLabel: "vyberte datum",
2525
+ // Field section placeholders
2526
+ fieldYearPlaceholder: (params) => "Y".repeat(params.digitAmount),
2527
+ fieldMonthPlaceholder: (params) => params.contentType === "letter" ? "MMMM" : "MM",
2528
+ fieldDayPlaceholder: () => "DD",
2529
+ fieldWeekDayPlaceholder: (params) => params.contentType === "letter" ? "EEEE" : "EE",
2530
+ fieldHoursPlaceholder: () => "hh",
2531
+ fieldMinutesPlaceholder: () => "mm",
2532
+ fieldSecondsPlaceholder: () => "ss",
2533
+ fieldMeridiemPlaceholder: () => "aa",
2534
+ // View names
2535
+ year: "Rok",
2536
+ month: "M\u011Bs\xEDc",
2537
+ day: "Den",
2538
+ weekDay: "Pracovn\xED den",
2539
+ hours: "Hodiny",
2540
+ minutes: "Minuty",
2541
+ seconds: "Sekundy",
2542
+ meridiem: "Odpoledne",
2543
+ // Common
2544
+ empty: "Pr\xE1zdn\xFD"
2545
+ };
2546
+ var csCZ2 = getPickersLocalization(csCZPickers);
2547
+
2548
+ // src/hooks/ThemeHook.ts
2549
+ var import_react_i18next = require("react-i18next");
2550
+ var WISTRON_PRIMARY_COLOR = "#00506E";
2551
+ var WISTRON_SECONDARY_COLOR = "#64DC00";
2552
+ var LOCALE_MAP = {
2553
+ cs: [csCZ, csCZ2, import_locale.csCZ],
2554
+ en: [enUS2, enUS, import_locale.enUS]
2555
+ };
2556
+ var useGetTheme = (theme) => {
2557
+ const { i18n: i18n2 } = (0, import_react_i18next.useTranslation)();
2558
+ return (0, import_material.createTheme)(
2559
+ {
2560
+ cssVariables: {
2561
+ colorSchemeSelector: "data-mui-color-scheme"
2562
+ },
2563
+ colorSchemes: {
2564
+ light: {
2565
+ palette: {
2566
+ primary: { main: WISTRON_PRIMARY_COLOR },
2567
+ secondary: { main: WISTRON_SECONDARY_COLOR }
2568
+ }
2569
+ },
2570
+ dark: {
2571
+ palette: {
2572
+ primary: { main: (0, import_material.lighten)(WISTRON_PRIMARY_COLOR, 0.5) },
2573
+ secondary: { main: (0, import_material.darken)(WISTRON_SECONDARY_COLOR, 0.5) }
2574
+ }
2575
+ },
2576
+ ...theme?.colorSchemes
2577
+ },
2578
+ components: {
2579
+ MuiCssBaseline: {
2580
+ styleOverrides: ({ palette }) => {
2581
+ return {
2582
+ body: {
2583
+ "&::-webkit-scrollbar, & *::-webkit-scrollbar": {
2584
+ width: "0.7em",
2585
+ height: "0.7em"
2586
+ },
2587
+ "&::-webkit-scrollbar-track, & *::-webkit-scrollbar-track": {
2588
+ backgroundColor: palette.mode === "dark" ? import_colors.grey[900] : import_colors.grey[200],
2589
+ borderRadius: "5px"
2590
+ },
2591
+ "&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb": {
2592
+ backgroundColor: palette.mode === "dark" ? import_colors.grey[800] : import_colors.grey[400],
2593
+ borderRadius: "10px"
2594
+ },
2595
+ "&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover": {
2596
+ backgroundColor: palette.mode === "dark" ? import_colors.grey[700] : import_colors.grey[500]
2597
+ },
2598
+ "&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner": {
2599
+ backgroundColor: "transparent"
2600
+ }
2601
+ }
2602
+ };
2603
+ }
2604
+ },
2605
+ ...theme?.components
2606
+ }
2607
+ },
2608
+ ...LOCALE_MAP[i18n2.language]
2609
+ );
2610
+ };
2611
+
2612
+ // src/components/core/Layout.tsx
2613
+ var import_Menu = __toESM(require("@mui/icons-material/Menu"), 1);
2614
+ var import_MenuOpen = __toESM(require("@mui/icons-material/MenuOpen"), 1);
2615
+ var import_material8 = require("@mui/material");
2616
+ var import_styles4 = require("@mui/material/styles");
2617
+ var import_react_query = require("@tanstack/react-query");
2618
+ var import_react9 = require("react");
2619
+ var import_react_start = require("@tanstack/react-start");
2620
+ var import_server = require("@tanstack/react-start/server");
2621
+
2622
+ // src/components/core/AppTitle.tsx
2623
+ var import_material2 = require("@mui/material");
2624
+
2625
+ // src/env.ts
2626
+ var import_env_core = require("@t3-oss/env-core");
2627
+ var import_zod = require("zod");
2628
+ var import_meta = {};
2629
+ var clientEnv = (0, import_env_core.createEnv)({
2630
+ clientPrefix: "VITE_",
2631
+ client: {
2632
+ VITE_APP_TITLE: import_zod.z.string(),
2633
+ VITE_MUI_LICENSE_KEY: import_zod.z.string(),
2634
+ VITE_API_URL: import_zod.z.url()
2635
+ },
2636
+ runtimeEnv: import_meta.env,
2637
+ emptyStringAsUndefined: true
2638
+ });
2639
+ var serverEnv = (0, import_env_core.createEnv)({
2640
+ server: {
2641
+ DATABASE_URL: import_zod.z.string(),
2642
+ MICROSOFT_CLIENT_ID: import_zod.z.string(),
2643
+ MICROSOFT_CLIENT_SECRET: import_zod.z.string()
2644
+ },
2645
+ runtimeEnv: process.env,
2646
+ emptyStringAsUndefined: true
2647
+ });
2648
+
2649
+ // src/components/core/AppTitle.tsx
2650
+ var import_jsx_runtime3 = require("react/jsx-runtime");
2651
+ var import_meta2 = {};
2652
+ var AppTitle = () => {
2653
+ return /* @__PURE__ */ (0, import_jsx_runtime3.jsxs)(import_material2.Stack, { direction: "row", alignItems: "center", spacing: 2, flexGrow: 1, children: [
2654
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
2655
+ /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material2.Typography, { variant: "h6", children: clientEnv.VITE_APP_TITLE }),
2656
+ import_meta2.env.DEV && /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_material2.Chip, { size: "small", label: "TEST", color: "info" })
2657
+ ] });
2658
+ };
2659
+
2660
+ // src/components/core/navigation/NavigationRail.tsx
2661
+ var import_material5 = require("@mui/material");
2662
+ var import_Box2 = __toESM(require("@mui/material/Box"), 1);
2663
+ var import_Drawer = __toESM(require("@mui/material/Drawer"), 1);
2664
+ var import_styles3 = require("@mui/material/styles");
2665
+ var import_react_router2 = require("@tanstack/react-router");
2666
+
2667
+ // src/components/core/navigation/NavigationList.tsx
2668
+ var import_Divider = __toESM(require("@mui/material/Divider"), 1);
2669
+ var import_List = __toESM(require("@mui/material/List"), 1);
2670
+ var import_ListSubheader = __toESM(require("@mui/material/ListSubheader"), 1);
2671
+ var import_react5 = require("react");
2672
+
2673
+ // src/components/core/navigation/NavigationListItem.tsx
2674
+ var import_ExpandMore = __toESM(require("@mui/icons-material/ExpandMore"), 1);
2675
+ var import_material4 = require("@mui/material");
2676
+ var import_Avatar = __toESM(require("@mui/material/Avatar"), 1);
2677
+ var import_Box = __toESM(require("@mui/material/Box"), 1);
2678
+ var import_ListItem = __toESM(require("@mui/material/ListItem"), 1);
2679
+ var import_ListItemButton = __toESM(require("@mui/material/ListItemButton"), 1);
2680
+ var import_ListItemIcon = __toESM(require("@mui/material/ListItemIcon"), 1);
2681
+ var import_ListItemText = __toESM(require("@mui/material/ListItemText"), 1);
2682
+ var import_Paper = __toESM(require("@mui/material/Paper"), 1);
2683
+ var import_Popper = __toESM(require("@mui/material/Popper"), 1);
2684
+ var import_styles2 = require("@mui/material/styles");
2685
+ var import_Typography = __toESM(require("@mui/material/Typography"), 1);
2686
+ var import_react4 = require("react");
2687
+
2688
+ // src/components/router/RouterListItemButton.tsx
2689
+ var import_material3 = require("@mui/material");
2690
+ var import_react_router = require("@tanstack/react-router");
2691
+ var import_react3 = __toESM(require("react"), 1);
2692
+ var import_jsx_runtime4 = require("react/jsx-runtime");
2693
+ var Component = import_react3.default.forwardRef(function ButtonComponent(props, reference) {
2694
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_material3.ListItemButton, { ref: reference, component: "a", ...props });
2695
+ });
2696
+ var CreatedComponent = (0, import_react_router.createLink)(Component);
2697
+ var RouterListItemButton = (props) => {
2698
+ return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CreatedComponent, { ...props });
2699
+ };
2700
+
2701
+ // src/components/core/navigation/NavigationListItem.tsx
2702
+ var import_jsx_runtime5 = require("react/jsx-runtime");
2703
+ var ICON_SIZE = 34;
2704
+ var StyledNavButton = (0, import_styles2.styled)(import_ListItemButton.default)(({ theme }) => ({
2705
+ borderRadius: 8,
2706
+ "&.Mui-selected": {
2707
+ "& .MuiListItemIcon-root, & .MuiTypography-root, & .MuiSvgIcon-root": {
2708
+ color: (theme.vars ?? theme).palette.primary.dark
2709
+ },
2710
+ "& .MuiAvatar-root": {
2711
+ backgroundColor: (theme.vars ?? theme).palette.primary.dark
2712
+ },
2713
+ "& .MuiTouchRipple-child": {
2714
+ backgroundColor: (theme.vars ?? theme).palette.primary.dark
2715
+ }
2716
+ },
2717
+ "& .MuiSvgIcon-root": {
2718
+ color: (theme.vars ?? theme).palette.action.active
2719
+ },
2720
+ "& .MuiAvatar-root": {
2721
+ backgroundColor: (theme.vars ?? theme).palette.action.active
2722
+ }
2723
+ }));
2724
+ var StyledRouterButton = (0, import_styles2.styled)(RouterListItemButton)(({ theme }) => ({
2725
+ borderRadius: 8,
2726
+ "&.Mui-selected": {
2727
+ "& .MuiListItemIcon-root, & .MuiTypography-root, & .MuiSvgIcon-root": {
2728
+ color: (theme.vars ?? theme).palette.primary.dark
2729
+ },
2730
+ "& .MuiAvatar-root": {
2731
+ backgroundColor: (theme.vars ?? theme).palette.primary.dark
2732
+ },
2733
+ "& .MuiTouchRipple-child": {
2734
+ backgroundColor: (theme.vars ?? theme).palette.primary.dark
2735
+ }
2736
+ },
2737
+ "& .MuiSvgIcon-root": {
2738
+ color: (theme.vars ?? theme).palette.action.active
2739
+ },
2740
+ "& .MuiAvatar-root": {
2741
+ backgroundColor: (theme.vars ?? theme).palette.action.active
2742
+ }
2743
+ }));
2744
+ var IconOrAvatar = ({ item, collapsed }) => {
2745
+ if (item.icon || collapsed) {
2746
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_Box.default, { sx: collapsed ? { position: "absolute", left: "50%", top: "calc(50% - 6px)", transform: "translate(-50%, -50%)" } : {}, children: [
2747
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_ListItemIcon.default, { sx: { display: "flex", alignItems: "center", justifyContent: "center", minWidth: ICON_SIZE }, children: [
2748
+ item.icon ?? null,
2749
+ !item.icon && collapsed ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_Avatar.default, { sx: { width: ICON_SIZE - 7, height: ICON_SIZE - 7, fontSize: 12 }, children: item.title }) : null
2750
+ ] }),
2751
+ collapsed ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
2752
+ import_Typography.default,
2753
+ {
2754
+ variant: "caption",
2755
+ sx: {
2756
+ position: "absolute",
2757
+ bottom: -18,
2758
+ left: "50%",
2759
+ transform: "translateX(-50%)",
2760
+ fontSize: 10,
2761
+ fontWeight: 500,
2762
+ textAlign: "center",
2763
+ whiteSpace: "nowrap",
2764
+ overflow: "hidden",
2765
+ textOverflow: "ellipsis",
2766
+ maxWidth: MINI_WIDTH - 28
2767
+ },
2768
+ children: item.title
2769
+ }
2770
+ ) : null
2771
+ ] });
2772
+ }
2773
+ return null;
2774
+ };
2775
+ var MiniPopover = ({ open, anchorEl, children }) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
2776
+ import_Popper.default,
2777
+ {
2778
+ open,
2779
+ anchorEl,
2780
+ placement: "right-start",
2781
+ modifiers: [
2782
+ { name: "offset", options: { offset: [6, 0] } },
2783
+ { name: "preventOverflow", options: { padding: 8 } },
2784
+ { name: "flip", options: { fallbackPlacements: ["right-end", "left-start"] } }
2785
+ ],
2786
+ children: /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
2787
+ import_Paper.default,
2788
+ {
2789
+ sx: {
2790
+ pt: 0.5,
2791
+ pb: 0.5,
2792
+ maxHeight: "min(calc(100vh - 100px), 560px)",
2793
+ overflowY: "auto",
2794
+ overscrollBehavior: "contain"
2795
+ },
2796
+ children
2797
+ }
2798
+ )
2799
+ }
2800
+ );
2801
+ var NavigationListItem = ({ item, isOpen, selected, disabled, collapsed, isSidebarFullyExpanded = true, isSidebarFullyCollapsed, onClick, renderNested, onClose }) => {
2802
+ const [hoveredPopoverItem, setHoveredPopoverItem] = (0, import_react4.useState)(null);
2803
+ const [anchorElement, setAnchorElement] = (0, import_react4.useState)(null);
2804
+ const chevronSx = () => {
2805
+ if (collapsed && isSidebarFullyCollapsed && item.children) {
2806
+ return {
2807
+ fontSize: 18,
2808
+ position: "absolute",
2809
+ top: "41.5%",
2810
+ right: "2px",
2811
+ transform: "translateY(-50%) rotate(-90deg)"
2812
+ };
2813
+ }
2814
+ if (!collapsed && isSidebarFullyExpanded && item.children) {
2815
+ return {
2816
+ ml: 0.5,
2817
+ transform: `rotate(${isOpen ? 0 : -90}deg)`
2818
+ };
2819
+ }
2820
+ return { display: "none" };
2821
+ };
2822
+ const shouldJustExpand = item.children && !collapsed;
2823
+ const buttonProps = {
2824
+ selected,
2825
+ disabled,
2826
+ sx: { px: 1.4, height: collapsed ? 60 : 48 }
2827
+ };
2828
+ const buttonContent = /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_jsx_runtime5.Fragment, { children: [
2829
+ /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(IconOrAvatar, { item, collapsed }),
2830
+ !collapsed && /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
2831
+ import_ListItemText.default,
2832
+ {
2833
+ primary: item.title,
2834
+ slotProps: { primary: { noWrap: true, title: item.title } },
2835
+ sx: { ml: 1.2, flex: 1, minWidth: 0, "& .MuiTypography-root": { whiteSpace: "nowrap", overflow: "hidden", textOverflow: "ellipsis" } }
2836
+ }
2837
+ ),
2838
+ item.children ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_ExpandMore.default, { sx: chevronSx }) : null
2839
+ ] });
2840
+ const listItem = /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(
2841
+ import_ListItem.default,
2842
+ {
2843
+ ...item.children && collapsed ? {
2844
+ onMouseEnter: (event) => {
2845
+ setAnchorElement(event.currentTarget);
2846
+ setHoveredPopoverItem(item.title);
2847
+ },
2848
+ onMouseLeave: () => {
2849
+ setHoveredPopoverItem(null);
2850
+ }
2851
+ } : {},
2852
+ sx: { py: 0, px: 1, overflowX: "hidden" },
2853
+ children: [
2854
+ shouldJustExpand ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(StyledNavButton, { ...buttonProps, onClick: () => onClick?.(item), children: buttonContent }) : /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(
2855
+ StyledRouterButton,
2856
+ {
2857
+ ...buttonProps,
2858
+ to: item.to,
2859
+ href: item.href,
2860
+ params: item.params,
2861
+ search: item.search,
2862
+ onClick: onClose,
2863
+ children: buttonContent
2864
+ }
2865
+ ),
2866
+ item.children && collapsed ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(MiniPopover, { open: item.title === hoveredPopoverItem, anchorEl: anchorElement, children: renderNested?.(item.children) }) : null
2867
+ ]
2868
+ }
2869
+ );
2870
+ return /* @__PURE__ */ (0, import_jsx_runtime5.jsxs)(import_react4.Fragment, { children: [
2871
+ listItem,
2872
+ item.children && !collapsed ? /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material4.Collapse, { in: isOpen, timeout: "auto", unmountOnExit: true, children: renderNested?.(item.children) }) : null
2873
+ ] }, item.to);
2874
+ };
2875
+
2876
+ // src/components/core/navigation/NavigationList.tsx
2877
+ var import_jsx_runtime6 = require("react/jsx-runtime");
2878
+ var isPageItem = (item) => !("kind" in item);
2879
+ var isDivider = (item) => "kind" in item && item.kind === "divider";
2880
+ var isHeader = (item) => "kind" in item && item.kind === "header";
2881
+ var NavigationList = ({ subNavigation, depth = 0, collapsed, isPopover, isSidebarFullyExpanded = true, isSidebarFullyCollapsed, expandedWidth, renderItem, activePath, onNavigate, onClose }) => {
2882
+ const [openKeys, setOpenKeys] = (0, import_react5.useState)([]);
2883
+ (0, import_react5.useEffect)(() => {
2884
+ if (collapsed) setOpenKeys([]);
2885
+ }, [collapsed]);
2886
+ const toggleKey = (key) => setOpenKeys((previous) => previous.includes(key) ? previous.filter((k) => k !== key) : [...previous, key]);
2887
+ const renderNested = (children) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2888
+ NavigationList,
2889
+ {
2890
+ subNavigation: children,
2891
+ depth: depth + 1,
2892
+ isPopover: collapsed,
2893
+ expandedWidth,
2894
+ activePath,
2895
+ onNavigate,
2896
+ onClose
2897
+ }
2898
+ );
2899
+ const filteredNavigation = subNavigation.filter((nav) => !nav.hidden);
2900
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2901
+ import_List.default,
2902
+ {
2903
+ sx: {
2904
+ padding: 0,
2905
+ mt: isPopover && depth === 1 ? 0.5 : 0,
2906
+ mb: depth === 0 && !isPopover ? 4 : 0.5,
2907
+ pl: (isPopover ? 1 : 2) * (isPopover ? depth - 1 : depth),
2908
+ minWidth: isPopover && depth === 1 ? EXPANDED_WIDTH : "auto",
2909
+ width: collapsed ? MINI_WIDTH : "auto"
2910
+ },
2911
+ children: filteredNavigation.map((navItem, index) => {
2912
+ if (isHeader(navItem)) {
2913
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2914
+ import_ListSubheader.default,
2915
+ {
2916
+ sx: {
2917
+ fontSize: 12,
2918
+ fontWeight: "700",
2919
+ height: collapsed ? 0 : 40,
2920
+ px: 2,
2921
+ minWidth: expandedWidth,
2922
+ overflow: "hidden",
2923
+ textOverflow: "ellipsis",
2924
+ whiteSpace: "nowrap",
2925
+ zIndex: 2,
2926
+ bgcolor: "transparent",
2927
+ position: "static"
2928
+ },
2929
+ children: navItem.title
2930
+ },
2931
+ `subheader-${depth}-${index}`
2932
+ );
2933
+ }
2934
+ if (isDivider(navItem)) {
2935
+ const nextItem = filteredNavigation[index + 1];
2936
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)("li", { children: /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_Divider.default, { sx: { mx: 1, mt: 1, mb: isHeader(nextItem) && !collapsed ? 0 : 1 } }) }, `divider-${depth}-${index}`);
2937
+ }
2938
+ if (!isPageItem(navItem)) return null;
2939
+ const key = `item-${depth}-${index}`;
2940
+ const uniqueItemKey = `${depth}-${index}-${navItem.title}`;
2941
+ if (renderItem) return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_react5.Fragment, { children: renderItem(navItem, { collapsed: !!collapsed }) }, key);
2942
+ return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(
2943
+ NavigationListItem,
2944
+ {
2945
+ item: navItem,
2946
+ isOpen: openKeys.includes(uniqueItemKey),
2947
+ selected: activePath === navItem.to,
2948
+ collapsed,
2949
+ isSidebarFullyExpanded,
2950
+ isSidebarFullyCollapsed,
2951
+ onClick: navItem.children && !collapsed ? () => toggleKey(uniqueItemKey) : void 0,
2952
+ renderNested,
2953
+ onClose
2954
+ },
2955
+ key
2956
+ );
2957
+ })
2958
+ }
2959
+ );
2960
+ };
2961
+
2962
+ // src/components/core/navigation/NavigationRail.tsx
2963
+ var import_jsx_runtime7 = require("react/jsx-runtime");
2964
+ var MINI_WIDTH = 84;
2965
+ var EXPANDED_WIDTH = 320;
2966
+ var TOOLBAR_HEIGHT = 64;
2967
+ var NavigationRail = ({ navigation, expanded, setExpanded }) => {
2968
+ const navigate = (0, import_react_router2.useNavigate)();
2969
+ const routerState = (0, import_react_router2.useRouterState)();
2970
+ const theme = (0, import_styles3.useTheme)();
2971
+ const showPermanent = (0, import_material5.useMediaQuery)(theme.breakpoints.up("sm"));
2972
+ const drawerContent = (collapsed) => /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2973
+ import_Box2.default,
2974
+ {
2975
+ component: "nav",
2976
+ sx: {
2977
+ height: "100%",
2978
+ display: "flex",
2979
+ flexDirection: "column",
2980
+ justifyContent: "space-between",
2981
+ overflow: "auto",
2982
+ scrollbarGutter: collapsed ? "stable" : "auto",
2983
+ overflowX: "hidden",
2984
+ pt: navigation[0] && isHeader(navigation[0]) && !collapsed ? 0 : 2
2985
+ },
2986
+ children: /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
2987
+ NavigationList,
2988
+ {
2989
+ subNavigation: navigation,
2990
+ collapsed,
2991
+ isSidebarFullyExpanded: expanded,
2992
+ isSidebarFullyCollapsed: !expanded,
2993
+ expandedWidth: EXPANDED_WIDTH,
2994
+ activePath: routerState.location.pathname,
2995
+ onNavigate: navigate,
2996
+ onClose: !showPermanent ? () => setExpanded(false) : void 0
2997
+ }
2998
+ )
2999
+ }
3000
+ );
3001
+ if (showPermanent)
3002
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(
3003
+ import_Drawer.default,
3004
+ {
3005
+ variant: "permanent",
3006
+ sx: {
3007
+ width: expanded ? EXPANDED_WIDTH : MINI_WIDTH,
3008
+ ["& .MuiDrawer-paper"]: {
3009
+ position: "absolute",
3010
+ top: `${TOOLBAR_HEIGHT}px`,
3011
+ height: `calc(100% - ${TOOLBAR_HEIGHT}px)`,
3012
+ width: expanded ? EXPANDED_WIDTH : MINI_WIDTH,
3013
+ borderTop: "1px solid",
3014
+ borderColor: theme.vars?.palette.divider
3015
+ }
3016
+ },
3017
+ children: drawerContent(!expanded)
3018
+ }
3019
+ );
3020
+ return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_Drawer.default, { open: expanded, onClose: () => setExpanded(false), children: drawerContent(!expanded) });
3021
+ };
3022
+
3023
+ // src/components/core/ToolbarAccount.tsx
3024
+ var import_AccountCircle = __toESM(require("@mui/icons-material/AccountCircle"), 1);
3025
+ var import_ArrowBack = __toESM(require("@mui/icons-material/ArrowBack"), 1);
3026
+ var import_Brightness4 = __toESM(require("@mui/icons-material/Brightness4"), 1);
3027
+ var import_ChevronRight = __toESM(require("@mui/icons-material/ChevronRight"), 1);
3028
+ var import_DarkMode = __toESM(require("@mui/icons-material/DarkMode"), 1);
3029
+ var import_LightMode = __toESM(require("@mui/icons-material/LightMode"), 1);
3030
+ var import_Login = __toESM(require("@mui/icons-material/Login"), 1);
3031
+ var import_Logout = __toESM(require("@mui/icons-material/Logout"), 1);
3032
+ var import_SettingsBrightness = __toESM(require("@mui/icons-material/SettingsBrightness"), 1);
3033
+ var import_Translate = __toESM(require("@mui/icons-material/Translate"), 1);
3034
+ var import_material7 = require("@mui/material");
3035
+ var import_react8 = require("react");
3036
+ var import_react_i18next3 = require("react-i18next");
3037
+ var import_Done = __toESM(require("@mui/icons-material/Done"), 1);
3038
+
3039
+ // src/lib/auth/auth-client.ts
3040
+ var import_react6 = require("better-auth/react");
3041
+ var authClient = (0, import_react6.createAuthClient)({
3042
+ baseURL: clientEnv.VITE_API_URL
3043
+ });
3044
+
3045
+ // src/hooks/DialogsHooks.tsx
3046
+ var import_material6 = require("@mui/material");
3047
+ var import_react7 = require("react");
3048
+ var import_react_i18next2 = require("react-i18next");
3049
+ var import_jsx_runtime8 = require("react/jsx-runtime");
3050
+ function AlertDialog({ open, payload, onClose }) {
3051
+ const { t } = (0, import_react_i18next2.useTranslation)();
3052
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material6.Dialog, { maxWidth: "xs", fullWidth: true, open, onClose: () => onClose(), disableRestoreFocus: true, children: [
3053
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material6.DialogTitle, { children: payload.title ?? t("Layout.Dialog.Alert") }),
3054
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material6.DialogContent, { children: payload.message }),
3055
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material6.DialogActions, { children: /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material6.Button, { onClick: () => onClose(), autoFocus: true, children: t("Layout.Dialog.Confirm") }) })
3056
+ ] });
3057
+ }
3058
+ function ConfirmDialog({ open, payload, onClose }) {
3059
+ const { t } = (0, import_react_i18next2.useTranslation)();
3060
+ return /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material6.Dialog, { maxWidth: "xs", fullWidth: true, open, onClose: () => onClose(false), disableRestoreFocus: true, children: [
3061
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material6.DialogTitle, { children: payload.title ?? t("Layout.Dialog.Confirm") }),
3062
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material6.DialogContent, { children: payload.message }),
3063
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material6.DialogActions, { children: [
3064
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material6.Button, { onClick: () => onClose(false), children: payload.cancelText ?? t("Layout.Dialog.Cancel") }),
3065
+ /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material6.Button, { onClick: () => onClose(true), autoFocus: true, children: t("Layout.Dialog.Confirm") })
3066
+ ] })
3067
+ ] });
3068
+ }
3069
+ function useDialogs() {
3070
+ const { open, close } = (0, import_react7.useContext)(DialogsContext);
3071
+ const alert = (0, import_material6.useEventCallback)(
3072
+ (message, { ...options } = {}) => open(AlertDialog, { ...options, message })
3073
+ );
3074
+ const confirm = (0, import_material6.useEventCallback)(
3075
+ (message, { ...options } = {}) => open(ConfirmDialog, { ...options, message })
3076
+ );
3077
+ return { alert, confirm, open, close };
3078
+ }
3079
+
3080
+ // src/components/core/ToolbarAccount.tsx
3081
+ var import_jsx_runtime9 = require("react/jsx-runtime");
3082
+ var capitalize = (value) => value && value.charAt(0).toUpperCase() + value.slice(1);
3083
+ var ToolbarAccount = () => {
3084
+ const [anchorElement, setAnchorElement] = (0, import_react8.useState)();
3085
+ const [tab, setTab] = (0, import_react8.useState)("settings");
3086
+ const open = Boolean(anchorElement);
3087
+ const { t, i18n: i18n2 } = (0, import_react_i18next3.useTranslation)();
3088
+ const { mode, setMode } = (0, import_material7.useColorScheme)();
3089
+ const { data: session } = authClient.useSession();
3090
+ const { alert } = useDialogs();
3091
+ const supportedLanguages = (Array.isArray(i18n2.options.supportedLngs) ? i18n2.options.supportedLngs : []).filter((lng) => lng !== "cimode");
3092
+ const languageDisplayNames = new Intl.DisplayNames([i18n2.language], { type: "language" });
3093
+ const colorModes = [
3094
+ { mode: "light", icon: import_LightMode.default, label: t("Layout.Light") },
3095
+ { mode: "dark", icon: import_DarkMode.default, label: t("Layout.Dark") },
3096
+ { mode: "system", icon: import_SettingsBrightness.default, label: t("Layout.System") }
3097
+ ];
3098
+ const user = {
3099
+ name: "Dalibor Homola",
3100
+ employeeId: "C2503017",
3101
+ department: "IT"
3102
+ };
3103
+ const usernameInitials = () => {
3104
+ if (!user.name) return "";
3105
+ const splittedName = user.name.split(" ");
3106
+ return `${splittedName[0][0]}${splittedName.length > 1 ? splittedName[1][0] : ""}`;
3107
+ };
3108
+ const openMenu = (event) => setAnchorElement(event.currentTarget);
3109
+ const closeMenu = () => {
3110
+ setAnchorElement(void 0);
3111
+ setTimeout(() => setTab("settings"), 300);
3112
+ };
3113
+ const changeTab = (newTab) => () => setTab(newTab);
3114
+ const settings = /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_material7.List, { component: "nav", subheader: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.ListSubheader, { sx: { backgroundColor: "transparent" }, children: t("Layout.Settings") }), children: [
3115
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_material7.ListItemButton, { onClick: changeTab("theme"), sx: { py: 0.3 }, children: [
3116
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.ListItemIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_Brightness4.default, {}) }),
3117
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.ListItemText, { primary: t("Layout.Appearance"), secondary: colorModes.find((m) => m.mode === mode)?.label }),
3118
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_ChevronRight.default, {})
3119
+ ] }),
3120
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_material7.ListItemButton, { onClick: changeTab("language"), sx: { py: 0.3 }, children: [
3121
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.ListItemIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_Translate.default, {}) }),
3122
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.ListItemText, { primary: t("Layout.Language"), secondary: capitalize(languageDisplayNames.of(i18n2.language)) }),
3123
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_ChevronRight.default, {})
3124
+ ] })
3125
+ ] });
3126
+ const theme = /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.List, { subheader: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_material7.ListSubheader, { onClick: changeTab("settings"), sx: { backgroundColor: "transparent", display: "flex", alignItems: "center", px: 1, cursor: "pointer" }, children: [
3127
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.IconButton, { size: "small", sx: { mr: 0.5 }, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_ArrowBack.default, { fontSize: "small" }) }),
3128
+ " ",
3129
+ t("Layout.Appearance")
3130
+ ] }), children: colorModes.map(({ mode: modeValue, icon: Icon, label }) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
3131
+ import_material7.ListItemButton,
3132
+ {
3133
+ onClick: () => {
3134
+ setMode(modeValue);
3135
+ closeMenu();
3136
+ },
3137
+ selected: mode === modeValue,
3138
+ children: [
3139
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.ListItemIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(Icon, {}) }),
3140
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.ListItemText, { primary: label })
3141
+ ]
3142
+ },
3143
+ modeValue
3144
+ )) });
3145
+ const language = /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.List, { subheader: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_material7.ListSubheader, { onClick: changeTab("settings"), sx: { backgroundColor: "transparent", display: "flex", alignItems: "center", px: 1, cursor: "pointer" }, children: [
3146
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.IconButton, { size: "small", sx: { mr: 0.5 }, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_ArrowBack.default, { fontSize: "small" }) }),
3147
+ " ",
3148
+ t("Layout.Language")
3149
+ ] }), children: supportedLanguages.map(
3150
+ (languageCode) => /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
3151
+ import_material7.ListItemButton,
3152
+ {
3153
+ onClick: () => i18n2.changeLanguage(languageCode).finally(() => closeMenu()),
3154
+ selected: i18n2.resolvedLanguage === languageCode,
3155
+ children: [
3156
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.ListItemIcon, { children: i18n2.resolvedLanguage === languageCode && /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_Done.default, {}) }),
3157
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.ListItemText, { primary: capitalize(languageDisplayNames.of(languageCode)) })
3158
+ ]
3159
+ },
3160
+ languageCode
3161
+ )
3162
+ ) });
3163
+ return /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_react8.Fragment, { children: [
3164
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.IconButton, { size: "small", edge: "end", onClick: openMenu, children: user.name ? /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.Avatar, { sx: { width: { xs: 32, sm: 40 }, height: { xs: 32, sm: 40 }, bgcolor: "primary.main" }, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.Typography, { variant: "subtitle2", sx: { fontWeight: "bold", lineHeight: 0 }, children: usernameInitials() }) }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_AccountCircle.default, { fontSize: "large" }) }),
3165
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.Menu, { anchorEl: anchorElement, open, onClose: closeMenu, children: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_material7.Box, { sx: { width: 240 }, children: [
3166
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.List, { children: session ? /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(import_react8.Fragment, { children: [
3167
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.ListItem, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.ListItemText, { primary: user.name, secondary: /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)("span", { children: [
3168
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: user.employeeId }),
3169
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("br", {}),
3170
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)("span", { children: user.department })
3171
+ ] }) }) }),
3172
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
3173
+ import_material7.ListItemButton,
3174
+ {
3175
+ onClick: () => authClient.signOut({}, {
3176
+ onSuccess: () => closeMenu(),
3177
+ onError: ({ error }) => alert(error.message)
3178
+ }),
3179
+ children: [
3180
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.ListItemIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_Logout.default, { color: "error" }) }),
3181
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.ListItemText, { primary: t("Layout.Logout") })
3182
+ ]
3183
+ }
3184
+ )
3185
+ ] }) : /* @__PURE__ */ (0, import_jsx_runtime9.jsxs)(
3186
+ import_material7.ListItemButton,
3187
+ {
3188
+ onClick: () => authClient.signIn.social({ provider: "microsoft" }, {
3189
+ onSuccess: () => closeMenu(),
3190
+ onError: ({ error }) => alert(error.message)
3191
+ }),
3192
+ children: [
3193
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.ListItemIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_Login.default, { color: "success" }) }),
3194
+ /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(import_material7.ListItemText, { primary: t("Layout.LogIn") })
3195
+ ]
3196
+ }
3197
+ ) }),
3198
+ tab === "settings" && settings,
3199
+ tab === "theme" && theme,
3200
+ tab === "language" && language
3201
+ ] }) })
3202
+ ] });
3203
+ };
3204
+
3205
+ // src/components/core/Layout.tsx
3206
+ var import_jsx_runtime10 = require("react/jsx-runtime");
3207
+ var YEAR_IN_SECONDS = 60 * 60 * 24 * 365;
3208
+ var getNavigationOpenStatus = (0, import_react_start.createIsomorphicFn)().server(() => {
3209
+ const cookie = (0, import_server.getCookie)("navigationOpen");
3210
+ return cookie === "true";
3211
+ }).client(() => {
3212
+ const cookie = document.cookie.split("; ").find((row) => row.startsWith("navigationOpen="));
3213
+ return cookie ? cookie.split("=")[1] === "true" : false;
3214
+ });
3215
+ var DrawerHeader = (0, import_styles4.styled)("div")(({ theme }) => ({
3216
+ display: "flex",
3217
+ alignItems: "center",
3218
+ justifyContent: "flex-end",
3219
+ padding: theme.spacing(0, 1),
3220
+ ...theme.mixins.toolbar
3221
+ }));
3222
+ var Layout = (props) => {
3223
+ const [navigationOpen, setNavigationOpen] = (0, import_react9.useState)(getNavigationOpenStatus);
3224
+ const isFetching = !!(0, import_react_query.useIsFetching)();
3225
+ const isMutating = !!(0, import_react_query.useIsMutating)();
3226
+ return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_react9.Fragment, { children: [
3227
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_material8.InitColorSchemeScript, {}),
3228
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_material8.CssBaseline, {}),
3229
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_material8.Box, { sx: { display: "flex", height: "100dvh", maxHeight: "100dvh", overflow: "hidden", width: "100%" }, children: [
3230
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3231
+ import_material8.AppBar,
3232
+ {
3233
+ color: "transparent",
3234
+ position: "fixed",
3235
+ sx: (theme) => ({
3236
+ borderBottom: "1px solid",
3237
+ borderColor: theme.vars?.palette.divider,
3238
+ boxShadow: "none"
3239
+ }),
3240
+ children: /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_material8.Toolbar, { children: [
3241
+ props.navigation && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3242
+ import_material8.IconButton,
3243
+ {
3244
+ onClick: () => {
3245
+ setNavigationOpen((previous) => {
3246
+ const newValue = !previous;
3247
+ document.cookie = `navigationOpen=${newValue}; max-age=${YEAR_IN_SECONDS}; path=/`;
3248
+ return newValue;
3249
+ });
3250
+ },
3251
+ sx: { marginRight: 2 },
3252
+ children: navigationOpen ? /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_MenuOpen.default, {}) : /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_Menu.default, {})
3253
+ }
3254
+ ),
3255
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(AppTitle, {}),
3256
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(ToolbarAccount, {})
3257
+ ] })
3258
+ }
3259
+ ),
3260
+ props.navigation && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(
3261
+ NavigationRail,
3262
+ {
3263
+ navigation: props.navigation,
3264
+ expanded: navigationOpen,
3265
+ setExpanded: (newValue) => {
3266
+ setNavigationOpen(newValue);
3267
+ document.cookie = `navigationOpen=${newValue}; max-age=${YEAR_IN_SECONDS}; path=/`;
3268
+ }
3269
+ }
3270
+ ),
3271
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_material8.Box, { component: "main", sx: { flexGrow: 1, display: "flex", flexDirection: "column", minWidth: 0, height: "100%", overflow: "hidden" }, children: [
3272
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(DrawerHeader, {}),
3273
+ /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_material8.Box, { sx: { flex: 1, overflow: "auto", position: "relative" }, children: props.children })
3274
+ ] })
3275
+ ] }),
3276
+ (isFetching || isMutating) && /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_material8.LinearProgress, { sx: { position: "fixed", top: { xs: 56, sm: 64 }, left: 0, right: 0 } })
3277
+ ] });
3278
+ };
3279
+
3280
+ // src/providers/LayoutProvider.tsx
3281
+ var import_jsx_runtime11 = require("react/jsx-runtime");
3282
+ var YEAR_IN_MINUTES = 60 * 24 * 365;
3283
+ import_i18next.default.use(import_i18next_browser_languagedetector.default).use(import_react_i18next4.initReactI18next).init({
3284
+ resources: import_virtual_wcz_layout.resources,
3285
+ fallbackLng: "en",
3286
+ supportedLngs: Object.keys(import_virtual_wcz_layout.resources),
3287
+ detection: {
3288
+ caches: ["cookie"],
3289
+ cookieMinutes: YEAR_IN_MINUTES
3290
+ },
3291
+ interpolation: { escapeValue: false }
3292
+ });
3293
+ var LayoutProvider = ({ navigation, theme, children }) => {
3294
+ const createdTheme = useGetTheme(theme);
3295
+ const languageChangedHandler = (0, import_react10.useEffectEvent)(() => {
3296
+ import_zod2.default.config(import_zod2.default.core.locales[import_i18next.default.language]());
3297
+ import_dayjs2.default.locale(import_i18next.default.language);
3298
+ });
3299
+ (0, import_react10.useEffect)(() => {
3300
+ languageChangedHandler();
3301
+ import_i18next.default.on("languageChanged", languageChangedHandler);
3302
+ return () => {
3303
+ import_i18next.default.off("languageChanged", languageChangedHandler);
3304
+ };
3305
+ }, []);
3306
+ return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_material9.ThemeProvider, { theme: createdTheme, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(LocalizationProvider, { dateAdapter: AdapterDayjs, adapterLocale: import_i18next.default.language, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(DialogsProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(Layout, { navigation, children }) }) }, import_i18next.default.language) });
3307
+ };
3308
+ var setSSRLanguage = (0, import_react_start2.createServerFn)().handler(async () => {
3309
+ const language = (0, import_server2.getCookie)(import_i18next.default.services.languageDetector.options.lookupCookie) || "en";
3310
+ import_dayjs2.default.locale(language);
3311
+ import_zod2.default.config(import_zod2.default.core.locales[language]());
3312
+ await import_i18next.default.changeLanguage(language);
3313
+ });
3314
+
3315
+ // src/lib/utils.ts
3316
+ var import_axios = __toESM(require("axios"), 1);
3317
+ var rootRouteHead = () => ({
3318
+ meta: [
3319
+ { charSet: "utf-8" },
3320
+ { name: "viewport", content: "width=device-width, initial-scale=1" },
3321
+ { title: clientEnv.VITE_APP_TITLE },
3322
+ { name: "og:type", content: "website" },
3323
+ { name: "og:title", content: clientEnv.VITE_APP_TITLE },
3324
+ { name: "og:image", content: "/favicon-32x32.png" }
3325
+ ],
3326
+ links: [
3327
+ { rel: "apple-touch-icon", sizes: "180x180", href: "/apple-touch-icon.png" },
3328
+ { rel: "icon", type: "image/png", sizes: "32x32", href: "/favicon-32x32.png" },
3329
+ { rel: "icon", type: "image/png", sizes: "16x16", href: "/favicon-16x16.png" },
3330
+ { rel: "manifest", href: "/manifest.webmanifest" },
3331
+ { rel: "icon", href: "/favicon.ico" }
3332
+ ]
3333
+ });
3334
+ var httpClient = import_axios.default.create({
3335
+ baseURL: clientEnv.VITE_API_URL
3336
+ // TODO: Not working in children projects
3337
+ });
3338
+ // Annotate the CommonJS export names for ESM import in node:
3339
+ 0 && (module.exports = {
3340
+ LayoutProvider,
3341
+ rootRouteHead,
3342
+ setSSRLanguage
3343
+ });
3344
+ /*! Bundled license information:
3345
+
3346
+ react-is/cjs/react-is.production.min.js:
3347
+ (** @license React v16.13.1
3348
+ * react-is.production.min.js
3349
+ *
3350
+ * Copyright (c) Facebook, Inc. and its affiliates.
3351
+ *
3352
+ * This source code is licensed under the MIT license found in the
3353
+ * LICENSE file in the root directory of this source tree.
3354
+ *)
3355
+
3356
+ react-is/cjs/react-is.development.js:
3357
+ (** @license React v16.13.1
3358
+ * react-is.development.js
3359
+ *
3360
+ * Copyright (c) Facebook, Inc. and its affiliates.
3361
+ *
3362
+ * This source code is licensed under the MIT license found in the
3363
+ * LICENSE file in the root directory of this source tree.
3364
+ *)
3365
+
3366
+ object-assign/index.js:
3367
+ (*
3368
+ object-assign
3369
+ (c) Sindre Sorhus
3370
+ @license MIT
3371
+ *)
3372
+ */
3373
+ //# sourceMappingURL=index.cjs.map