wcz-test 2.2.2 → 2.3.0

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 DELETED
@@ -1,2606 +0,0 @@
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 z2(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 z2(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) || z2(a) === l;
104
- };
105
- exports2.isConcurrentMode = A;
106
- exports2.isContextConsumer = function(a) {
107
- return z2(a) === k;
108
- };
109
- exports2.isContextProvider = function(a) {
110
- return z2(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 z2(a) === n;
117
- };
118
- exports2.isFragment = function(a) {
119
- return z2(a) === e;
120
- };
121
- exports2.isLazy = function(a) {
122
- return z2(a) === t;
123
- };
124
- exports2.isMemo = function(a) {
125
- return z2(a) === r;
126
- };
127
- exports2.isPortal = function(a) {
128
- return z2(a) === d;
129
- };
130
- exports2.isProfiler = function(a) {
131
- return z2(a) === g;
132
- };
133
- exports2.isStrictMode = function(a) {
134
- return z2(a) === f;
135
- };
136
- exports2.isSuspense = function(a) {
137
- return z2(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 = z2;
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 Fragment2 = 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 = Fragment2;
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
- ChipInputCell: () => ChipInputCell,
985
- EditableColumnHeader: () => EditableColumnHeader,
986
- LayoutProvider: () => LayoutProvider,
987
- Platform: () => Platform,
988
- RouterButton: () => RouterButton,
989
- RouterError: () => RouterError,
990
- RouterLink: () => RouterLink,
991
- RouterNotFound: () => RouterNotFound,
992
- RouterTab: () => RouterTab,
993
- TypographyWithIcon: () => TypographyWithIcon,
994
- getContrastTextColor: () => getContrastTextColor,
995
- useDialogs: () => import_useDialogs.useDialogs,
996
- useFieldContext: () => useFieldContext,
997
- useFormContext: () => useFormContext,
998
- useLayoutForm: () => useLayoutForm,
999
- useLocalStorageState: () => import_useLocalStorageState.useLocalStorageState,
1000
- useNotifications: () => import_useNotifications2.useNotifications,
1001
- useTranslation: () => import_react_i18next6.useTranslation,
1002
- uuidv7: () => import_uuidv7.uuidv7,
1003
- wczApiClient: () => wczApiClient,
1004
- withLayoutForm: () => withLayoutForm
1005
- });
1006
- module.exports = __toCommonJS(index_exports);
1007
-
1008
- // src/components/core/TypographyWithIcon.tsx
1009
- var import_material = require("@mui/material");
1010
- var import_jsx_runtime = require("react/jsx-runtime");
1011
- var stackSxProps = [
1012
- "margin",
1013
- "marginTop",
1014
- "marginRight",
1015
- "marginBottom",
1016
- "marginLeft",
1017
- "m",
1018
- "mt",
1019
- "mr",
1020
- "mb",
1021
- "ml",
1022
- "mx",
1023
- "my",
1024
- "padding",
1025
- "paddingTop",
1026
- "paddingRight",
1027
- "paddingBottom",
1028
- "paddingLeft",
1029
- "p",
1030
- "pt",
1031
- "pr",
1032
- "pb",
1033
- "pl",
1034
- "px",
1035
- "py",
1036
- "flexGrow",
1037
- "flexShrink",
1038
- "flexBasis",
1039
- "flexDirection",
1040
- "alignItems",
1041
- "justifyContent",
1042
- "position",
1043
- "zIndex",
1044
- "top",
1045
- "right",
1046
- "bottom",
1047
- "left",
1048
- "gridGap",
1049
- "gridColumnGap",
1050
- "gridRowGap",
1051
- "gridColumn",
1052
- "gridRow",
1053
- "gridAutoFlow",
1054
- "gap",
1055
- "columnGap",
1056
- "rowGap"
1057
- ];
1058
- var TypographyWithIcon = ({ startIcon, endIcon, children, sx, gutterBottom, ...props }) => {
1059
- const sxCopy = { ...sx };
1060
- const stackStyles = stackSxProps.reduce((acc, curr) => {
1061
- if (sxCopy && sxCopy[curr]) {
1062
- acc[curr] = sxCopy[curr];
1063
- delete sxCopy[curr];
1064
- }
1065
- return acc;
1066
- }, {});
1067
- return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_material.Stack, { direction: "row", alignItems: "center", gap: 1, sx: stackStyles, mb: gutterBottom ? 0.7 : void 0, children: [
1068
- startIcon && startIcon,
1069
- /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_material.Typography, { ...props, sx: sxCopy, children }),
1070
- endIcon && endIcon
1071
- ] });
1072
- };
1073
-
1074
- // src/components/data-grid/ChipInputCell.tsx
1075
- var import_material2 = require("@mui/material");
1076
- var import_jsx_runtime2 = require("react/jsx-runtime");
1077
- var isArray = (value) => Array.isArray(value);
1078
- var ChipInputCell = ({ params, slotProps, getLabel }) => {
1079
- if (!params.value) return null;
1080
- const getLabelValue = (value) => {
1081
- if (getLabel) return getLabel(value);
1082
- return value;
1083
- };
1084
- if (isArray(params.value))
1085
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.Stack, { direction: "row", alignItems: "center", gap: 1, sx: { overflowX: "auto", height: "100%", width: params.colDef.computedWidth }, children: params.value.map(
1086
- (value, index) => /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.Chip, { label: getLabelValue(value), ...slotProps }, `${index + 1}-chip-input-cell`)
1087
- ) });
1088
- return /* @__PURE__ */ (0, import_jsx_runtime2.jsx)(import_material2.Chip, { label: getLabelValue(params.value), ...slotProps });
1089
- };
1090
-
1091
- // src/components/data-grid/EditableColumnHeader.tsx
1092
- var import_icons_material = require("@mui/icons-material");
1093
- var import_jsx_runtime3 = require("react/jsx-runtime");
1094
- var EditableColumnHeader = ({ colDef }) => {
1095
- return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(TypographyWithIcon, { endIcon: /* @__PURE__ */ (0, import_jsx_runtime3.jsx)(import_icons_material.Edit, { color: "disabled", fontSize: "small" }), variant: "body2", className: "MuiDataGrid-columnHeaderTitle", children: colDef.headerName });
1096
- };
1097
-
1098
- // src/components/router/RouterButton.tsx
1099
- var import_material3 = require("@mui/material");
1100
- var import_react_router = require("@tanstack/react-router");
1101
- var import_react = __toESM(require("react"), 1);
1102
- var import_jsx_runtime4 = require("react/jsx-runtime");
1103
- var MUIButtonLinkComponent = import_react.default.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(import_material3.Button, { ref, component: "a", ...props }));
1104
- var CreatedButtonLinkComponent = (0, import_react_router.createLink)(MUIButtonLinkComponent);
1105
- var RouterButton = (props) => {
1106
- return /* @__PURE__ */ (0, import_jsx_runtime4.jsx)(CreatedButtonLinkComponent, { preload: "intent", ...props });
1107
- };
1108
-
1109
- // src/components/router/RouterLink.tsx
1110
- var import_material4 = require("@mui/material");
1111
- var import_react_router2 = require("@tanstack/react-router");
1112
- var import_react2 = __toESM(require("react"), 1);
1113
- var import_jsx_runtime5 = require("react/jsx-runtime");
1114
- var MUILinkComponent = import_react2.default.forwardRef(
1115
- (props, ref) => /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(import_material4.Link, { ref, ...props })
1116
- );
1117
- var CreatedLinkComponent = (0, import_react_router2.createLink)(MUILinkComponent);
1118
- var RouterLink = (props) => {
1119
- return /* @__PURE__ */ (0, import_jsx_runtime5.jsx)(CreatedLinkComponent, { preload: "intent", ...props });
1120
- };
1121
-
1122
- // src/components/router/RouterTab.tsx
1123
- var import_material5 = require("@mui/material");
1124
- var import_react_router3 = require("@tanstack/react-router");
1125
- var import_react3 = __toESM(require("react"), 1);
1126
- var import_jsx_runtime6 = require("react/jsx-runtime");
1127
- var MUITabLinkComponent = import_react3.default.forwardRef((props, ref) => /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(import_material5.Tab, { ref, component: "a", ...props }));
1128
- var CreatedTabLinkComponent = (0, import_react_router3.createLink)(MUITabLinkComponent);
1129
- var RouterTab = (props) => {
1130
- return /* @__PURE__ */ (0, import_jsx_runtime6.jsx)(CreatedTabLinkComponent, { preload: "intent", ...props });
1131
- };
1132
-
1133
- // src/components/router/RouterNotFound.tsx
1134
- var import_material6 = require("@mui/material");
1135
- var import_react_i18next = require("react-i18next");
1136
- var import_jsx_runtime7 = require("react/jsx-runtime");
1137
- function RouterNotFound() {
1138
- const { t } = (0, import_react_i18next.useTranslation)();
1139
- return /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material6.Box, { height: "100vh", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", textAlign: "center", px: 2, children: /* @__PURE__ */ (0, import_jsx_runtime7.jsxs)(import_material6.Box, { display: "flex", alignItems: "center", mb: 4, children: [
1140
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material6.Typography, { variant: "h3", component: "span", fontWeight: 500, sx: { lineHeight: 1 }, children: "404" }),
1141
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material6.Divider, { orientation: "vertical", flexItem: true, sx: { mx: 3 } }),
1142
- /* @__PURE__ */ (0, import_jsx_runtime7.jsx)(import_material6.Typography, { variant: "h5", component: "span", children: t("Layout.ThisPageCouldNotBeFound") })
1143
- ] }) });
1144
- }
1145
-
1146
- // src/components/router/RouterError.tsx
1147
- var import_material7 = require("@mui/material");
1148
- var import_jsx_runtime8 = require("react/jsx-runtime");
1149
- var RouterError = ({ error }) => {
1150
- return /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material7.Box, { height: "100vh", display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", textAlign: "center", px: 2, children: /* @__PURE__ */ (0, import_jsx_runtime8.jsxs)(import_material7.Box, { display: "flex", alignItems: "center", mb: 4, children: [
1151
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material7.Typography, { variant: "h3", component: "span", fontWeight: 500, sx: { lineHeight: 1 }, children: "500" }),
1152
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material7.Divider, { orientation: "vertical", flexItem: true, sx: { mx: 3 } }),
1153
- /* @__PURE__ */ (0, import_jsx_runtime8.jsx)(import_material7.Typography, { variant: "h5", component: "span", children: error.message })
1154
- ] }) });
1155
- };
1156
-
1157
- // src/providers/LayoutProvider.tsx
1158
- var import_material12 = require("@mui/material");
1159
-
1160
- // node_modules/@babel/runtime/helpers/esm/extends.js
1161
- function _extends() {
1162
- return _extends = Object.assign ? Object.assign.bind() : function(n) {
1163
- for (var e = 1; e < arguments.length; e++) {
1164
- var t = arguments[e];
1165
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
1166
- }
1167
- return n;
1168
- }, _extends.apply(null, arguments);
1169
- }
1170
-
1171
- // node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.js
1172
- function _objectWithoutPropertiesLoose(r, e) {
1173
- if (null == r) return {};
1174
- var t = {};
1175
- for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
1176
- if (-1 !== e.indexOf(n)) continue;
1177
- t[n] = r[n];
1178
- }
1179
- return t;
1180
- }
1181
-
1182
- // node_modules/@mui/x-date-pickers/esm/LocalizationProvider/LocalizationProvider.js
1183
- var React4 = __toESM(require("react"), 1);
1184
- var import_prop_types = __toESM(require_prop_types(), 1);
1185
- var import_styles = require("@mui/material/styles");
1186
- var import_jsx_runtime9 = require("react/jsx-runtime");
1187
- var _excluded = ["localeText"];
1188
- var MuiPickersAdapterContext = /* @__PURE__ */ React4.createContext(null);
1189
- if (process.env.NODE_ENV !== "production") {
1190
- MuiPickersAdapterContext.displayName = "MuiPickersAdapterContext";
1191
- }
1192
- var LocalizationProvider = function LocalizationProvider2(inProps) {
1193
- const {
1194
- localeText: inLocaleText
1195
- } = inProps, otherInProps = _objectWithoutPropertiesLoose(inProps, _excluded);
1196
- const {
1197
- utils: parentUtils,
1198
- localeText: parentLocaleText
1199
- } = React4.useContext(MuiPickersAdapterContext) ?? {
1200
- utils: void 0,
1201
- localeText: void 0
1202
- };
1203
- const props = (0, import_styles.useThemeProps)({
1204
- // We don't want to pass the `localeText` prop to the theme, that way it will always return the theme value,
1205
- // We will then merge this theme value with our value manually
1206
- props: otherInProps,
1207
- name: "MuiLocalizationProvider"
1208
- });
1209
- const {
1210
- children,
1211
- dateAdapter: DateAdapter,
1212
- dateFormats,
1213
- dateLibInstance,
1214
- adapterLocale,
1215
- localeText: themeLocaleText
1216
- } = props;
1217
- const localeText = React4.useMemo(() => _extends({}, themeLocaleText, parentLocaleText, inLocaleText), [themeLocaleText, parentLocaleText, inLocaleText]);
1218
- const utils = React4.useMemo(() => {
1219
- if (!DateAdapter) {
1220
- if (parentUtils) {
1221
- return parentUtils;
1222
- }
1223
- return null;
1224
- }
1225
- const adapter = new DateAdapter({
1226
- locale: adapterLocale,
1227
- formats: dateFormats,
1228
- instance: dateLibInstance
1229
- });
1230
- if (!adapter.isMUIAdapter) {
1231
- 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(`
1232
- `));
1233
- }
1234
- return adapter;
1235
- }, [DateAdapter, adapterLocale, dateFormats, dateLibInstance, parentUtils]);
1236
- const defaultDates = React4.useMemo(() => {
1237
- if (!utils) {
1238
- return null;
1239
- }
1240
- return {
1241
- minDate: utils.date("1900-01-01T00:00:00.000"),
1242
- maxDate: utils.date("2099-12-31T00:00:00.000")
1243
- };
1244
- }, [utils]);
1245
- const contextValue = React4.useMemo(() => {
1246
- return {
1247
- utils,
1248
- defaultDates,
1249
- localeText
1250
- };
1251
- }, [defaultDates, utils, localeText]);
1252
- return /* @__PURE__ */ (0, import_jsx_runtime9.jsx)(MuiPickersAdapterContext.Provider, {
1253
- value: contextValue,
1254
- children
1255
- });
1256
- };
1257
- process.env.NODE_ENV !== "production" ? LocalizationProvider.propTypes = {
1258
- // ----------------------------- Warning --------------------------------
1259
- // | These PropTypes are generated from the TypeScript type definitions |
1260
- // | To update them edit the TypeScript types and run "pnpm proptypes" |
1261
- // ----------------------------------------------------------------------
1262
- /**
1263
- * Locale for the date library you are using
1264
- */
1265
- adapterLocale: import_prop_types.default.any,
1266
- children: import_prop_types.default.node,
1267
- /**
1268
- * Date library adapter class function.
1269
- * @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.
1270
- */
1271
- dateAdapter: import_prop_types.default.func,
1272
- /**
1273
- * Formats that are used for any child pickers
1274
- */
1275
- dateFormats: import_prop_types.default.shape({
1276
- dayOfMonth: import_prop_types.default.string,
1277
- dayOfMonthFull: import_prop_types.default.string,
1278
- fullDate: import_prop_types.default.string,
1279
- fullTime12h: import_prop_types.default.string,
1280
- fullTime24h: import_prop_types.default.string,
1281
- hours12h: import_prop_types.default.string,
1282
- hours24h: import_prop_types.default.string,
1283
- keyboardDate: import_prop_types.default.string,
1284
- keyboardDateTime12h: import_prop_types.default.string,
1285
- keyboardDateTime24h: import_prop_types.default.string,
1286
- meridiem: import_prop_types.default.string,
1287
- minutes: import_prop_types.default.string,
1288
- month: import_prop_types.default.string,
1289
- monthShort: import_prop_types.default.string,
1290
- normalDate: import_prop_types.default.string,
1291
- normalDateWithWeekday: import_prop_types.default.string,
1292
- seconds: import_prop_types.default.string,
1293
- shortDate: import_prop_types.default.string,
1294
- weekday: import_prop_types.default.string,
1295
- weekdayShort: import_prop_types.default.string,
1296
- year: import_prop_types.default.string
1297
- }),
1298
- /**
1299
- * Date library instance you are using, if it has some global overrides
1300
- * ```jsx
1301
- * dateLibInstance={momentTimeZone}
1302
- * ```
1303
- */
1304
- dateLibInstance: import_prop_types.default.any,
1305
- /**
1306
- * Locale for components texts
1307
- */
1308
- localeText: import_prop_types.default.object
1309
- } : void 0;
1310
-
1311
- // node_modules/@mui/x-internals/esm/warning/warning.js
1312
- var warnedOnceCache = /* @__PURE__ */ new Set();
1313
- function warnOnce(message, gravity = "warning") {
1314
- if (process.env.NODE_ENV === "production") {
1315
- return;
1316
- }
1317
- const cleanMessage = Array.isArray(message) ? message.join("\n") : message;
1318
- if (!warnedOnceCache.has(cleanMessage)) {
1319
- warnedOnceCache.add(cleanMessage);
1320
- if (gravity === "error") {
1321
- console.error(cleanMessage);
1322
- } else {
1323
- console.warn(cleanMessage);
1324
- }
1325
- }
1326
- }
1327
-
1328
- // node_modules/@mui/x-date-pickers/esm/AdapterDayjs/AdapterDayjs.js
1329
- var import_dayjs = __toESM(require("dayjs"), 1);
1330
- var import_weekOfYear = __toESM(require("dayjs/plugin/weekOfYear.js"), 1);
1331
- var import_customParseFormat = __toESM(require("dayjs/plugin/customParseFormat.js"), 1);
1332
- var import_localizedFormat = __toESM(require("dayjs/plugin/localizedFormat.js"), 1);
1333
- var import_isBetween = __toESM(require("dayjs/plugin/isBetween.js"), 1);
1334
- var import_advancedFormat = __toESM(require("dayjs/plugin/advancedFormat.js"), 1);
1335
- import_dayjs.default.extend(import_localizedFormat.default);
1336
- import_dayjs.default.extend(import_weekOfYear.default);
1337
- import_dayjs.default.extend(import_isBetween.default);
1338
- import_dayjs.default.extend(import_advancedFormat.default);
1339
- var formatTokenMap = {
1340
- // Year
1341
- YY: "year",
1342
- YYYY: {
1343
- sectionType: "year",
1344
- contentType: "digit",
1345
- maxLength: 4
1346
- },
1347
- // Month
1348
- M: {
1349
- sectionType: "month",
1350
- contentType: "digit",
1351
- maxLength: 2
1352
- },
1353
- MM: "month",
1354
- MMM: {
1355
- sectionType: "month",
1356
- contentType: "letter"
1357
- },
1358
- MMMM: {
1359
- sectionType: "month",
1360
- contentType: "letter"
1361
- },
1362
- // Day of the month
1363
- D: {
1364
- sectionType: "day",
1365
- contentType: "digit",
1366
- maxLength: 2
1367
- },
1368
- DD: "day",
1369
- Do: {
1370
- sectionType: "day",
1371
- contentType: "digit-with-letter"
1372
- },
1373
- // Day of the week
1374
- d: {
1375
- sectionType: "weekDay",
1376
- contentType: "digit",
1377
- maxLength: 2
1378
- },
1379
- dd: {
1380
- sectionType: "weekDay",
1381
- contentType: "letter"
1382
- },
1383
- ddd: {
1384
- sectionType: "weekDay",
1385
- contentType: "letter"
1386
- },
1387
- dddd: {
1388
- sectionType: "weekDay",
1389
- contentType: "letter"
1390
- },
1391
- // Meridiem
1392
- A: "meridiem",
1393
- a: "meridiem",
1394
- // Hours
1395
- H: {
1396
- sectionType: "hours",
1397
- contentType: "digit",
1398
- maxLength: 2
1399
- },
1400
- HH: "hours",
1401
- h: {
1402
- sectionType: "hours",
1403
- contentType: "digit",
1404
- maxLength: 2
1405
- },
1406
- hh: "hours",
1407
- // Minutes
1408
- m: {
1409
- sectionType: "minutes",
1410
- contentType: "digit",
1411
- maxLength: 2
1412
- },
1413
- mm: "minutes",
1414
- // Seconds
1415
- s: {
1416
- sectionType: "seconds",
1417
- contentType: "digit",
1418
- maxLength: 2
1419
- },
1420
- ss: "seconds"
1421
- };
1422
- var defaultFormats = {
1423
- year: "YYYY",
1424
- month: "MMMM",
1425
- monthShort: "MMM",
1426
- dayOfMonth: "D",
1427
- dayOfMonthFull: "Do",
1428
- weekday: "dddd",
1429
- weekdayShort: "dd",
1430
- hours24h: "HH",
1431
- hours12h: "hh",
1432
- meridiem: "A",
1433
- minutes: "mm",
1434
- seconds: "ss",
1435
- fullDate: "ll",
1436
- keyboardDate: "L",
1437
- shortDate: "MMM D",
1438
- normalDate: "D MMMM",
1439
- normalDateWithWeekday: "ddd, MMM D",
1440
- fullTime12h: "hh:mm A",
1441
- fullTime24h: "HH:mm",
1442
- keyboardDateTime12h: "L hh:mm A",
1443
- keyboardDateTime24h: "L HH:mm"
1444
- };
1445
- 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");
1446
- 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");
1447
- var withLocale = (dayjs3, locale) => !locale ? dayjs3 : (...args) => dayjs3(...args).locale(locale);
1448
- var AdapterDayjs = class {
1449
- constructor({
1450
- locale: _locale,
1451
- formats
1452
- } = {}) {
1453
- this.isMUIAdapter = true;
1454
- this.isTimezoneCompatible = true;
1455
- this.lib = "dayjs";
1456
- this.dayjs = void 0;
1457
- this.locale = void 0;
1458
- this.formats = void 0;
1459
- this.escapedCharacters = {
1460
- start: "[",
1461
- end: "]"
1462
- };
1463
- this.formatTokenMap = formatTokenMap;
1464
- this.setLocaleToValue = (value) => {
1465
- const expectedLocale = this.getCurrentLocaleCode();
1466
- if (expectedLocale === value.locale()) {
1467
- return value;
1468
- }
1469
- return value.locale(expectedLocale);
1470
- };
1471
- this.hasUTCPlugin = () => typeof import_dayjs.default.utc !== "undefined";
1472
- this.hasTimezonePlugin = () => typeof import_dayjs.default.tz !== "undefined";
1473
- this.isSame = (value, comparing, comparisonTemplate) => {
1474
- const comparingInValueTimezone = this.setTimezone(comparing, this.getTimezone(value));
1475
- return value.format(comparisonTemplate) === comparingInValueTimezone.format(comparisonTemplate);
1476
- };
1477
- this.cleanTimezone = (timezone) => {
1478
- switch (timezone) {
1479
- case "default": {
1480
- return void 0;
1481
- }
1482
- case "system": {
1483
- return import_dayjs.default.tz.guess();
1484
- }
1485
- default: {
1486
- return timezone;
1487
- }
1488
- }
1489
- };
1490
- this.createSystemDate = (value) => {
1491
- if (this.hasUTCPlugin() && this.hasTimezonePlugin()) {
1492
- const timezone = import_dayjs.default.tz.guess();
1493
- if (timezone !== "UTC") {
1494
- return import_dayjs.default.tz(value, timezone);
1495
- }
1496
- return (0, import_dayjs.default)(value);
1497
- }
1498
- return (0, import_dayjs.default)(value);
1499
- };
1500
- this.createUTCDate = (value) => {
1501
- if (!this.hasUTCPlugin()) {
1502
- throw new Error(MISSING_UTC_PLUGIN);
1503
- }
1504
- return import_dayjs.default.utc(value);
1505
- };
1506
- this.createTZDate = (value, timezone) => {
1507
- if (!this.hasUTCPlugin()) {
1508
- throw new Error(MISSING_UTC_PLUGIN);
1509
- }
1510
- if (!this.hasTimezonePlugin()) {
1511
- throw new Error(MISSING_TIMEZONE_PLUGIN);
1512
- }
1513
- const keepLocalTime = value !== void 0 && !value.endsWith("Z");
1514
- return (0, import_dayjs.default)(value).tz(this.cleanTimezone(timezone), keepLocalTime);
1515
- };
1516
- this.getLocaleFormats = () => {
1517
- const locales = import_dayjs.default.Ls;
1518
- const locale = this.locale || "en";
1519
- let localeObject = locales[locale];
1520
- if (localeObject === void 0) {
1521
- if (process.env.NODE_ENV !== "production") {
1522
- 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."]);
1523
- }
1524
- localeObject = locales.en;
1525
- }
1526
- return localeObject.formats;
1527
- };
1528
- this.adjustOffset = (value) => {
1529
- if (!this.hasTimezonePlugin()) {
1530
- return value;
1531
- }
1532
- const timezone = this.getTimezone(value);
1533
- if (timezone !== "UTC") {
1534
- const fixedValue = value.tz(this.cleanTimezone(timezone), true);
1535
- if (fixedValue.$offset === (value.$offset ?? 0)) {
1536
- return value;
1537
- }
1538
- value.$offset = fixedValue.$offset;
1539
- }
1540
- return value;
1541
- };
1542
- this.date = (value, timezone = "default") => {
1543
- if (value === null) {
1544
- return null;
1545
- }
1546
- let parsedValue;
1547
- if (timezone === "UTC") {
1548
- parsedValue = this.createUTCDate(value);
1549
- } else if (timezone === "system" || timezone === "default" && !this.hasTimezonePlugin()) {
1550
- parsedValue = this.createSystemDate(value);
1551
- } else {
1552
- parsedValue = this.createTZDate(value, timezone);
1553
- }
1554
- if (this.locale === void 0) {
1555
- return parsedValue;
1556
- }
1557
- return parsedValue.locale(this.locale);
1558
- };
1559
- this.getInvalidDate = () => (0, import_dayjs.default)(/* @__PURE__ */ new Date("Invalid date"));
1560
- this.getTimezone = (value) => {
1561
- if (this.hasTimezonePlugin()) {
1562
- const zone = value.$x?.$timezone;
1563
- if (zone) {
1564
- return zone;
1565
- }
1566
- }
1567
- if (this.hasUTCPlugin() && value.isUTC()) {
1568
- return "UTC";
1569
- }
1570
- return "system";
1571
- };
1572
- this.setTimezone = (value, timezone) => {
1573
- if (this.getTimezone(value) === timezone) {
1574
- return value;
1575
- }
1576
- if (timezone === "UTC") {
1577
- if (!this.hasUTCPlugin()) {
1578
- throw new Error(MISSING_UTC_PLUGIN);
1579
- }
1580
- return value.utc();
1581
- }
1582
- if (timezone === "system") {
1583
- return value.local();
1584
- }
1585
- if (!this.hasTimezonePlugin()) {
1586
- if (timezone === "default") {
1587
- return value;
1588
- }
1589
- throw new Error(MISSING_TIMEZONE_PLUGIN);
1590
- }
1591
- return import_dayjs.default.tz(value, this.cleanTimezone(timezone));
1592
- };
1593
- this.toJsDate = (value) => {
1594
- return value.toDate();
1595
- };
1596
- this.parse = (value, format) => {
1597
- if (value === "") {
1598
- return null;
1599
- }
1600
- return this.dayjs(value, format, this.locale, true);
1601
- };
1602
- this.getCurrentLocaleCode = () => {
1603
- return this.locale || "en";
1604
- };
1605
- this.is12HourCycleInCurrentLocale = () => {
1606
- return /A|a/.test(this.getLocaleFormats().LT || "");
1607
- };
1608
- this.expandFormat = (format) => {
1609
- const localeFormats = this.getLocaleFormats();
1610
- const t = (formatBis) => formatBis.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, (_, a, b) => a || b.slice(1));
1611
- return format.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g, (_, a, b) => {
1612
- const B = b && b.toUpperCase();
1613
- return a || localeFormats[b] || t(localeFormats[B]);
1614
- });
1615
- };
1616
- this.isValid = (value) => {
1617
- if (value == null) {
1618
- return false;
1619
- }
1620
- return value.isValid();
1621
- };
1622
- this.format = (value, formatKey) => {
1623
- return this.formatByString(value, this.formats[formatKey]);
1624
- };
1625
- this.formatByString = (value, formatString) => {
1626
- return this.dayjs(value).format(formatString);
1627
- };
1628
- this.formatNumber = (numberToFormat) => {
1629
- return numberToFormat;
1630
- };
1631
- this.isEqual = (value, comparing) => {
1632
- if (value === null && comparing === null) {
1633
- return true;
1634
- }
1635
- if (value === null || comparing === null) {
1636
- return false;
1637
- }
1638
- return value.toDate().getTime() === comparing.toDate().getTime();
1639
- };
1640
- this.isSameYear = (value, comparing) => {
1641
- return this.isSame(value, comparing, "YYYY");
1642
- };
1643
- this.isSameMonth = (value, comparing) => {
1644
- return this.isSame(value, comparing, "YYYY-MM");
1645
- };
1646
- this.isSameDay = (value, comparing) => {
1647
- return this.isSame(value, comparing, "YYYY-MM-DD");
1648
- };
1649
- this.isSameHour = (value, comparing) => {
1650
- return value.isSame(comparing, "hour");
1651
- };
1652
- this.isAfter = (value, comparing) => {
1653
- return value > comparing;
1654
- };
1655
- this.isAfterYear = (value, comparing) => {
1656
- if (!this.hasUTCPlugin()) {
1657
- return value.isAfter(comparing, "year");
1658
- }
1659
- return !this.isSameYear(value, comparing) && value.utc() > comparing.utc();
1660
- };
1661
- this.isAfterDay = (value, comparing) => {
1662
- if (!this.hasUTCPlugin()) {
1663
- return value.isAfter(comparing, "day");
1664
- }
1665
- return !this.isSameDay(value, comparing) && value.utc() > comparing.utc();
1666
- };
1667
- this.isBefore = (value, comparing) => {
1668
- return value < comparing;
1669
- };
1670
- this.isBeforeYear = (value, comparing) => {
1671
- if (!this.hasUTCPlugin()) {
1672
- return value.isBefore(comparing, "year");
1673
- }
1674
- return !this.isSameYear(value, comparing) && value.utc() < comparing.utc();
1675
- };
1676
- this.isBeforeDay = (value, comparing) => {
1677
- if (!this.hasUTCPlugin()) {
1678
- return value.isBefore(comparing, "day");
1679
- }
1680
- return !this.isSameDay(value, comparing) && value.utc() < comparing.utc();
1681
- };
1682
- this.isWithinRange = (value, [start, end]) => {
1683
- return value >= start && value <= end;
1684
- };
1685
- this.startOfYear = (value) => {
1686
- return this.adjustOffset(value.startOf("year"));
1687
- };
1688
- this.startOfMonth = (value) => {
1689
- return this.adjustOffset(value.startOf("month"));
1690
- };
1691
- this.startOfWeek = (value) => {
1692
- return this.adjustOffset(this.setLocaleToValue(value).startOf("week"));
1693
- };
1694
- this.startOfDay = (value) => {
1695
- return this.adjustOffset(value.startOf("day"));
1696
- };
1697
- this.endOfYear = (value) => {
1698
- return this.adjustOffset(value.endOf("year"));
1699
- };
1700
- this.endOfMonth = (value) => {
1701
- return this.adjustOffset(value.endOf("month"));
1702
- };
1703
- this.endOfWeek = (value) => {
1704
- return this.adjustOffset(this.setLocaleToValue(value).endOf("week"));
1705
- };
1706
- this.endOfDay = (value) => {
1707
- return this.adjustOffset(value.endOf("day"));
1708
- };
1709
- this.addYears = (value, amount) => {
1710
- return this.adjustOffset(amount < 0 ? value.subtract(Math.abs(amount), "year") : value.add(amount, "year"));
1711
- };
1712
- this.addMonths = (value, amount) => {
1713
- return this.adjustOffset(amount < 0 ? value.subtract(Math.abs(amount), "month") : value.add(amount, "month"));
1714
- };
1715
- this.addWeeks = (value, amount) => {
1716
- return this.adjustOffset(amount < 0 ? value.subtract(Math.abs(amount), "week") : value.add(amount, "week"));
1717
- };
1718
- this.addDays = (value, amount) => {
1719
- return this.adjustOffset(amount < 0 ? value.subtract(Math.abs(amount), "day") : value.add(amount, "day"));
1720
- };
1721
- this.addHours = (value, amount) => {
1722
- return this.adjustOffset(amount < 0 ? value.subtract(Math.abs(amount), "hour") : value.add(amount, "hour"));
1723
- };
1724
- this.addMinutes = (value, amount) => {
1725
- return this.adjustOffset(amount < 0 ? value.subtract(Math.abs(amount), "minute") : value.add(amount, "minute"));
1726
- };
1727
- this.addSeconds = (value, amount) => {
1728
- return this.adjustOffset(amount < 0 ? value.subtract(Math.abs(amount), "second") : value.add(amount, "second"));
1729
- };
1730
- this.getYear = (value) => {
1731
- return value.year();
1732
- };
1733
- this.getMonth = (value) => {
1734
- return value.month();
1735
- };
1736
- this.getDate = (value) => {
1737
- return value.date();
1738
- };
1739
- this.getHours = (value) => {
1740
- return value.hour();
1741
- };
1742
- this.getMinutes = (value) => {
1743
- return value.minute();
1744
- };
1745
- this.getSeconds = (value) => {
1746
- return value.second();
1747
- };
1748
- this.getMilliseconds = (value) => {
1749
- return value.millisecond();
1750
- };
1751
- this.setYear = (value, year) => {
1752
- return this.adjustOffset(value.set("year", year));
1753
- };
1754
- this.setMonth = (value, month) => {
1755
- return this.adjustOffset(value.set("month", month));
1756
- };
1757
- this.setDate = (value, date) => {
1758
- return this.adjustOffset(value.set("date", date));
1759
- };
1760
- this.setHours = (value, hours) => {
1761
- return this.adjustOffset(value.set("hour", hours));
1762
- };
1763
- this.setMinutes = (value, minutes) => {
1764
- return this.adjustOffset(value.set("minute", minutes));
1765
- };
1766
- this.setSeconds = (value, seconds) => {
1767
- return this.adjustOffset(value.set("second", seconds));
1768
- };
1769
- this.setMilliseconds = (value, milliseconds) => {
1770
- return this.adjustOffset(value.set("millisecond", milliseconds));
1771
- };
1772
- this.getDaysInMonth = (value) => {
1773
- return value.daysInMonth();
1774
- };
1775
- this.getWeekArray = (value) => {
1776
- const start = this.startOfWeek(this.startOfMonth(value));
1777
- const end = this.endOfWeek(this.endOfMonth(value));
1778
- let count = 0;
1779
- let current = start;
1780
- const nestedWeeks = [];
1781
- while (current < end) {
1782
- const weekNumber = Math.floor(count / 7);
1783
- nestedWeeks[weekNumber] = nestedWeeks[weekNumber] || [];
1784
- nestedWeeks[weekNumber].push(current);
1785
- current = this.addDays(current, 1);
1786
- count += 1;
1787
- }
1788
- return nestedWeeks;
1789
- };
1790
- this.getWeekNumber = (value) => {
1791
- return value.week();
1792
- };
1793
- this.getYearRange = ([start, end]) => {
1794
- const startDate = this.startOfYear(start);
1795
- const endDate = this.endOfYear(end);
1796
- const years = [];
1797
- let current = startDate;
1798
- while (this.isBefore(current, endDate)) {
1799
- years.push(current);
1800
- current = this.addYears(current, 1);
1801
- }
1802
- return years;
1803
- };
1804
- this.dayjs = withLocale(import_dayjs.default, _locale);
1805
- this.locale = _locale;
1806
- this.formats = _extends({}, defaultFormats, formats);
1807
- import_dayjs.default.extend(import_customParseFormat.default);
1808
- }
1809
- getDayOfWeek(value) {
1810
- return value.day() + 1;
1811
- }
1812
- };
1813
-
1814
- // src/providers/LayoutProvider.tsx
1815
- var import_react_query = require("@tanstack/react-query");
1816
- var import_DashboardLayout = require("@toolpad/core/DashboardLayout");
1817
- var import_useNotifications = require("@toolpad/core/useNotifications");
1818
- var import_i18next = __toESM(require("i18next"), 1);
1819
- var import_i18next_browser_languagedetector = __toESM(require("i18next-browser-languagedetector"), 1);
1820
- var import_i18next_http_backend = __toESM(require("i18next-http-backend"), 1);
1821
- var import_react_i18next5 = require("react-i18next");
1822
- var import_zod = require("zod");
1823
- var import_zod_i18n_map = require("zod-i18n-map");
1824
- var import_zod2 = __toESM(require("zod-i18n-map/locales/cs/zod.json"), 1);
1825
- var import_zod3 = __toESM(require("zod-i18n-map/locales/en/zod.json"), 1);
1826
-
1827
- // src/components/core/AppTitle.tsx
1828
- var import_material8 = require("@mui/material");
1829
- var import_jsx_runtime10 = require("react/jsx-runtime");
1830
- var AppTitle = ({ title }) => {
1831
- return /* @__PURE__ */ (0, import_jsx_runtime10.jsxs)(import_material8.Stack, { direction: "row", alignItems: "center", spacing: 2, children: [
1832
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)("img", { src: "/favicon-32x32.png", alt: "app-logo", loading: "lazy" }),
1833
- /* @__PURE__ */ (0, import_jsx_runtime10.jsx)(import_material8.Typography, { variant: "h6", children: title })
1834
- ] });
1835
- };
1836
-
1837
- // src/components/core/DevelopmentBanner.tsx
1838
- var import_icons_material2 = require("@mui/icons-material");
1839
- var import_material9 = require("@mui/material");
1840
- var import_react4 = require("react");
1841
- var import_react_i18next2 = require("react-i18next");
1842
- var import_jsx_runtime11 = require("react/jsx-runtime");
1843
- var DevelopmentBanner = ({ hasNavigationRoutes }) => {
1844
- const { t } = (0, import_react_i18next2.useTranslation)();
1845
- const [bannerOpen, setBannerOpen] = (0, import_react4.useState)(true);
1846
- const closeBanner = () => setBannerOpen(false);
1847
- return /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_material9.Fade, { appear: false, in: bannerOpen, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_material9.Paper, { square: true, elevation: 3, tabIndex: -1, sx: {
1848
- position: "fixed",
1849
- bottom: 0,
1850
- left: { xs: 0, sm: hasNavigationRoutes ? 83.3 : 0 },
1851
- right: 0,
1852
- m: 0,
1853
- p: 2,
1854
- borderWidth: 0,
1855
- borderTopWidth: 1
1856
- }, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_material9.Grid, { container: true, justifyContent: "space-between", alignItems: "center", children: [
1857
- /* @__PURE__ */ (0, import_jsx_runtime11.jsxs)(import_material9.Grid, { size: 10, children: [
1858
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_material9.Typography, { fontWeight: "bold", children: t("Layout.DevelopmentDialogTitle") }),
1859
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_material9.Typography, { variant: "body2", children: t("Layout.DevelopmentDialogContent") })
1860
- ] }),
1861
- /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_material9.Grid, { size: 2, sx: { p: 1, textAlign: "right" }, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_material9.IconButton, { size: "small", onClick: closeBanner, children: /* @__PURE__ */ (0, import_jsx_runtime11.jsx)(import_icons_material2.Close, {}) }) })
1862
- ] }) }) });
1863
- };
1864
-
1865
- // src/components/core/ToolbarAccount.tsx
1866
- var import_icons_material3 = require("@mui/icons-material");
1867
- var import_material10 = require("@mui/material");
1868
- var import_react5 = require("react");
1869
- var import_react_i18next3 = require("react-i18next");
1870
- var import_jsx_runtime12 = require("react/jsx-runtime");
1871
- var user = {
1872
- name: "Dalibor Homola",
1873
- employeeId: "C2503017",
1874
- department: "MD0L50",
1875
- login: () => {
1876
- console.log("Login");
1877
- },
1878
- logout: () => {
1879
- console.log("Logout");
1880
- }
1881
- };
1882
- var ToolbarAccount = () => {
1883
- const [anchorEl, setAnchorEl] = (0, import_react5.useState)(null);
1884
- const [tab, setTab] = (0, import_react5.useState)("settings");
1885
- const open = Boolean(anchorEl);
1886
- const { t, i18n: i18n2 } = (0, import_react_i18next3.useTranslation)();
1887
- const { mode, setMode } = (0, import_material10.useColorScheme)();
1888
- const changeLanguage = (newLanguage) => () => {
1889
- i18n2.changeLanguage(newLanguage).finally(() => closeMenu());
1890
- };
1891
- const changeMode = (newMode) => () => {
1892
- setMode(newMode);
1893
- closeMenu();
1894
- };
1895
- const getModeText = () => {
1896
- switch (mode) {
1897
- case "light":
1898
- return t("Layout.Light");
1899
- case "dark":
1900
- return t("Layout.Dark");
1901
- default:
1902
- return t("Layout.System");
1903
- }
1904
- };
1905
- const usernameInitials = () => {
1906
- const splittedName = user.name.split(" ");
1907
- return `${splittedName[0][0]}${splittedName.length > 1 ? splittedName[1][0] : ""}`;
1908
- };
1909
- const openMenu = (e) => setAnchorEl(e.currentTarget);
1910
- const closeMenu = () => {
1911
- setAnchorEl(null);
1912
- setTimeout(() => setTab("settings"), 300);
1913
- };
1914
- const login2 = () => user.login();
1915
- const logout2 = () => user.logout();
1916
- const changeTab = (newTab) => () => setTab(newTab);
1917
- const settings = /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_material10.List, { component: "nav", subheader: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.ListSubheader, { sx: { backgroundColor: "transparent" }, children: t("Layout.Settings") }), children: [
1918
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_material10.ListItemButton, { onClick: changeTab("theme"), sx: { py: 0.3 }, children: [
1919
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.ListItemIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_icons_material3.Brightness4, {}) }),
1920
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.ListItemText, { primary: t("Layout.Appearance"), secondary: getModeText() }),
1921
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_icons_material3.ChevronRight, {})
1922
- ] }),
1923
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_material10.ListItemButton, { onClick: changeTab("language"), sx: { py: 0.3 }, children: [
1924
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.ListItemIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_icons_material3.Translate, {}) }),
1925
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.ListItemText, { primary: t("Layout.Language"), secondary: i18n2.resolvedLanguage === "en" ? "English" : "\u010Ce\u0161tina" }),
1926
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_icons_material3.ChevronRight, {})
1927
- ] })
1928
- ] });
1929
- const theme = /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_material10.List, { subheader: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_material10.ListSubheader, { onClick: changeTab("settings"), sx: { backgroundColor: "transparent", display: "flex", alignItems: "center", px: 1, cursor: "pointer" }, children: [
1930
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.IconButton, { size: "small", sx: { mr: 0.5 }, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_icons_material3.ArrowBack, { fontSize: "small" }) }),
1931
- " ",
1932
- t("Layout.Appearance")
1933
- ] }), children: [
1934
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_material10.ListItemButton, { onClick: changeMode("light"), disabled: mode === "light", children: [
1935
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.ListItemIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_icons_material3.LightMode, {}) }),
1936
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.ListItemText, { primary: t("Layout.Light") })
1937
- ] }),
1938
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_material10.ListItemButton, { onClick: changeMode("dark"), disabled: mode === "dark", children: [
1939
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.ListItemIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_icons_material3.DarkMode, {}) }),
1940
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.ListItemText, { primary: t("Layout.Dark") })
1941
- ] }),
1942
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_material10.ListItemButton, { onClick: changeMode("system"), disabled: mode === "system", children: [
1943
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.ListItemIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_icons_material3.SettingsBrightness, {}) }),
1944
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.ListItemText, { primary: t("Layout.System") })
1945
- ] })
1946
- ] });
1947
- const language = /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_material10.List, { subheader: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_material10.ListSubheader, { onClick: changeTab("settings"), sx: { backgroundColor: "transparent", display: "flex", alignItems: "center", px: 1, cursor: "pointer" }, children: [
1948
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.IconButton, { size: "small", sx: { mr: 0.5 }, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_icons_material3.ArrowBack, { fontSize: "small" }) }),
1949
- " ",
1950
- t("Layout.Language")
1951
- ] }), children: [
1952
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.ListItemButton, { onClick: changeLanguage("en"), disabled: i18n2.resolvedLanguage === "en", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.ListItemText, { primary: "English" }) }),
1953
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.ListItemButton, { onClick: changeLanguage("cs"), disabled: i18n2.resolvedLanguage === "cs", children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.ListItemText, { primary: "\u010Ce\u0161tina" }) })
1954
- ] });
1955
- return /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_react5.Fragment, { children: [
1956
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.IconButton, { size: "small", onClick: openMenu, children: user.name ? /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.Avatar, { sx: { width: { xs: 32, sm: 40 }, height: { xs: 32, sm: 40 }, bgcolor: "primary.main" }, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.Typography, { variant: "subtitle2", sx: { fontWeight: "bold", lineHeight: 0 }, children: usernameInitials() }) }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_icons_material3.AccountCircle, {}) }),
1957
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.Menu, { anchorEl, open, onClose: closeMenu, children: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_material10.Box, { sx: { width: 240 }, children: [
1958
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.List, { children: user.name ? /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_react5.Fragment, { children: [
1959
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.ListItem, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.ListItemText, { primary: user.name, secondary: /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)("span", { children: [
1960
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { children: user.employeeId }),
1961
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("br", {}),
1962
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)("span", { children: user.department })
1963
- ] }) }) }),
1964
- /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_material10.ListItemButton, { onClick: logout2, children: [
1965
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.ListItemIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_icons_material3.Logout, { color: "error" }) }),
1966
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.ListItemText, { primary: t("Layout.Logout") })
1967
- ] })
1968
- ] }) : /* @__PURE__ */ (0, import_jsx_runtime12.jsxs)(import_material10.ListItemButton, { onClick: login2, children: [
1969
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.ListItemIcon, { children: /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_icons_material3.Login, { color: "success" }) }),
1970
- /* @__PURE__ */ (0, import_jsx_runtime12.jsx)(import_material10.ListItemText, { primary: t("Layout.LogIn") })
1971
- ] }) }),
1972
- tab === "settings" && settings,
1973
- tab === "theme" && theme,
1974
- tab === "language" && language
1975
- ] }) })
1976
- ] });
1977
- };
1978
-
1979
- // src/hooks/ThemeHook.ts
1980
- var import_material11 = require("@mui/material");
1981
- var import_colors = require("@mui/material/colors");
1982
- var import_locale = require("@mui/material/locale");
1983
- var import_locales = require("@mui/x-data-grid-premium/locales");
1984
- var import_locales2 = require("@mui/x-date-pickers-pro/locales");
1985
- var import_react_i18next4 = require("react-i18next");
1986
- var WISTRON_PRIMARY = "#00506E";
1987
- var WISTRON_SECONDARY = "#64DC00";
1988
- var useGetTheme = (theme) => {
1989
- const { i18n: i18n2 } = (0, import_react_i18next4.useTranslation)();
1990
- return (0, import_material11.createTheme)(
1991
- {
1992
- cssVariables: {
1993
- colorSchemeSelector: "data-toolpad-color-scheme"
1994
- },
1995
- colorSchemes: {
1996
- light: {
1997
- palette: {
1998
- primary: { main: WISTRON_PRIMARY },
1999
- secondary: { main: WISTRON_SECONDARY }
2000
- }
2001
- },
2002
- dark: {
2003
- palette: {
2004
- primary: { main: (0, import_material11.lighten)(WISTRON_PRIMARY, 0.1) },
2005
- secondary: { main: (0, import_material11.darken)(WISTRON_SECONDARY, 0.1) }
2006
- }
2007
- },
2008
- ...theme?.colorSchemes
2009
- },
2010
- components: {
2011
- MuiCssBaseline: {
2012
- styleOverrides: (theme2) => {
2013
- return {
2014
- body: {
2015
- "&::-webkit-scrollbar, & *::-webkit-scrollbar": {
2016
- width: "0.7em",
2017
- height: "0.7em"
2018
- },
2019
- "&::-webkit-scrollbar-track, & *::-webkit-scrollbar-track": {
2020
- backgroundColor: theme2.palette.mode === "dark" ? import_colors.grey[900] : import_colors.grey[200],
2021
- borderRadius: "5px"
2022
- },
2023
- "&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb": {
2024
- backgroundColor: theme2.palette.mode === "dark" ? import_colors.grey[800] : import_colors.grey[400],
2025
- borderRadius: "10px"
2026
- },
2027
- "&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover": {
2028
- backgroundColor: theme2.palette.mode === "dark" ? import_colors.grey[700] : import_colors.grey[500]
2029
- },
2030
- "&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner": {
2031
- backgroundColor: "transparent"
2032
- }
2033
- }
2034
- };
2035
- }
2036
- },
2037
- MuiTextField: {
2038
- defaultProps: {
2039
- fullWidth: true
2040
- }
2041
- },
2042
- MuiTableContainer: {
2043
- styleOverrides: {
2044
- root: ({ theme: theme2 }) => ({
2045
- height: "calc(100vh - 56px)",
2046
- [theme2.breakpoints.up("sm")]: {
2047
- height: "calc(100vh - 64px)"
2048
- },
2049
- "& .MuiDataGrid-cell--editing": {
2050
- "& .MuiInputBase-root": {
2051
- height: "100%"
2052
- }
2053
- },
2054
- "& .MuiDataGrid-columnHeaderTitle": {
2055
- fontWeight: 600
2056
- },
2057
- "& .Mui-error": {
2058
- backgroundColor: theme2.palette.error.main,
2059
- color: theme2.palette.error.contrastText
2060
- },
2061
- "& .MuiDataGrid-booleanCell[data-value='true']": {
2062
- color: `${theme2.palette.success.main} !important`
2063
- },
2064
- "& .MuiDataGrid-booleanCell[data-value='false']": {
2065
- color: `${theme2.palette.error.main} !important`
2066
- }
2067
- })
2068
- }
2069
- },
2070
- MuiDialog: {
2071
- defaultProps: {
2072
- fullWidth: true
2073
- }
2074
- },
2075
- ...theme?.components
2076
- }
2077
- },
2078
- i18n2.resolvedLanguage === "cs" ? import_locales2.csCZ : import_locales2.enUS,
2079
- i18n2.resolvedLanguage === "cs" ? import_locales.csCZ : import_locales.enUS,
2080
- i18n2.resolvedLanguage === "cs" ? import_locale.csCZ : import_locale.enUS
2081
- );
2082
- };
2083
-
2084
- // src/providers/TanstackRouterAppProvider.tsx
2085
- var import_react_router4 = require("@tanstack/react-router");
2086
- var import_AppProvider = require("@toolpad/core/AppProvider");
2087
- var import_react6 = require("react");
2088
- var import_jsx_runtime13 = require("react/jsx-runtime");
2089
- var Link2 = (0, import_react6.forwardRef)((props, ref) => {
2090
- const { href, history, ...rest } = props;
2091
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_react_router4.Link, { ref, to: href, replace: history === "replace", ...rest });
2092
- });
2093
- var TanstackRouterAppProvider = (props) => {
2094
- const { pathname } = (0, import_react_router4.useLocation)();
2095
- const searchParams = (0, import_react_router4.useSearch)({ strict: false });
2096
- const _navigate = (0, import_react_router4.useNavigate)();
2097
- const navigate = (0, import_react6.useCallback)(
2098
- (url, { history = "auto" } = {}) => {
2099
- _navigate({ to: url.toString(), replace: history === "replace" }).catch(console.error);
2100
- },
2101
- [_navigate]
2102
- );
2103
- const router = (0, import_react6.useMemo)(() => ({ pathname, searchParams: new URLSearchParams(searchParams), navigate, Link: Link2 }), [pathname, searchParams, navigate]);
2104
- return /* @__PURE__ */ (0, import_jsx_runtime13.jsx)(import_AppProvider.AppProvider, { router, ...props });
2105
- };
2106
-
2107
- // src/providers/LayoutProvider.tsx
2108
- var import_jsx_runtime14 = require("react/jsx-runtime");
2109
- import_i18next.default.use(import_i18next_http_backend.default).use(import_i18next_browser_languagedetector.default).use(import_react_i18next5.initReactI18next).init({
2110
- fallbackLng: "en",
2111
- interpolation: {
2112
- escapeValue: false
2113
- }
2114
- });
2115
- import_i18next.default.addResourceBundle("en", "zod", import_zod3.default);
2116
- import_i18next.default.addResourceBundle("cs", "zod", import_zod2.default);
2117
- import_zod.z.setErrorMap(import_zod_i18n_map.zodI18nMap);
2118
- var LayoutProvider = (props) => {
2119
- const theme = useGetTheme(props.theme);
2120
- const { t, i18n: i18n2 } = (0, import_react_i18next5.useTranslation)();
2121
- const isFetching = !!(0, import_react_query.useIsFetching)();
2122
- const isMutating = !!(0, import_react_query.useIsMutating)();
2123
- const isLargeScreen = (0, import_material12.useMediaQuery)(theme.breakpoints.up("sm"));
2124
- const user2 = { name: "Dalibor", department: "MD0L50", employeeId: "C2503017", company: "", category: "" };
2125
- const navigation = props.getNavigation ? props.getNavigation({ user: user2, t }) : [];
2126
- return /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(LocalizationProvider, { dateAdapter: AdapterDayjs, adapterLocale: i18n2.resolvedLanguage, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(TanstackRouterAppProvider, { navigation, theme, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_useNotifications.NotificationsProvider, { slotProps: { snackbar: { anchorOrigin: { vertical: isLargeScreen ? "top" : "bottom", horizontal: "center" } } }, children: /* @__PURE__ */ (0, import_jsx_runtime14.jsxs)(
2127
- import_DashboardLayout.DashboardLayout,
2128
- {
2129
- defaultSidebarCollapsed: true,
2130
- hideNavigation: !navigation.length,
2131
- slots: {
2132
- toolbarActions: () => null,
2133
- toolbarAccount: ToolbarAccount,
2134
- appTitle: () => /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(AppTitle, { title: props.title })
2135
- },
2136
- children: [
2137
- props.children,
2138
- /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(DevelopmentBanner, { hasNavigationRoutes: !!navigation.length }),
2139
- (isFetching || isMutating) && /* @__PURE__ */ (0, import_jsx_runtime14.jsx)(import_material12.LinearProgress, { sx: { position: "fixed", top: { xs: 56, sm: 64 }, left: 0, right: 0 } })
2140
- ]
2141
- }
2142
- ) }) }) });
2143
- };
2144
-
2145
- // src/index.ts
2146
- var import_uuidv7 = require("uuidv7");
2147
-
2148
- // src/utils/ClientUtils.ts
2149
- var import_axios = __toESM(require("axios"), 1);
2150
-
2151
- // src/services/UserService.ts
2152
- var import_keycloak_js = __toESM(require("keycloak-js"), 1);
2153
- var import_meta = {};
2154
- var keycloakConfig = {
2155
- url: import_meta.env.VITE_KEYCLOAK_URL,
2156
- realm: import_meta.env.VITE_KEYCLOAK_REALM,
2157
- clientId: import_meta.env.VITE_KEYCLOAK_CLIENT_ID,
2158
- idpHint: import_meta.env.VITE_KEYCLOAK_IDP_HINT,
2159
- confidentialClientId: import_meta.env.VITE_KEYCLOAK_CONFIDENTIAL_CLIENT_ID,
2160
- confidentialClientSecret: import_meta.env.VITE_KEYCLOAK_CONFIDENTIAL_CLIENT_SECRET
2161
- };
2162
- var _kc = new import_keycloak_js.default({
2163
- url: keycloakConfig.url,
2164
- realm: keycloakConfig.realm,
2165
- clientId: keycloakConfig.clientId
2166
- });
2167
- var initKeycloak = async () => {
2168
- if (typeof window === "undefined") return;
2169
- const authenticated = await _kc.init({ onLoad: "check-sso" });
2170
- if (authenticated) {
2171
- return await loadUserInfo();
2172
- } else {
2173
- await _kc.login({ idpHint: keycloakConfig.idpHint });
2174
- return await loadUserInfo();
2175
- }
2176
- };
2177
- var login = _kc.login;
2178
- var logout = _kc.logout;
2179
- var getToken = () => {
2180
- if (_kc.token) {
2181
- return _kc.token;
2182
- } else {
2183
- return getConfidentialToken();
2184
- }
2185
- };
2186
- var getConfidentialToken = async () => {
2187
- const { confidentialClientId, confidentialClientSecret, url, realm } = keycloakConfig;
2188
- if (!confidentialClientId || !confidentialClientSecret)
2189
- throw new Error("Confidential client id or secret is missing");
2190
- const credentials = btoa(`${confidentialClientId}:${confidentialClientSecret}`);
2191
- const urlencoded = new URLSearchParams({ grant_type: "client_credentials" });
2192
- const response = await fetch(`${url}/realms/${realm}/protocol/openid-connect/token`, {
2193
- method: "POST",
2194
- headers: {
2195
- "Content-Type": "application/x-www-form-urlencoded",
2196
- "Authorization": `Basic ${credentials}`
2197
- },
2198
- body: urlencoded
2199
- });
2200
- if (!response.ok)
2201
- throw new Error("Failed to obtain confidential token");
2202
- const data = await response.json();
2203
- return data.access_token;
2204
- };
2205
- var updateToken = () => _kc.updateToken(30).catch(login);
2206
- var hasRole = (roles) => roles.some((role) => _kc.hasRealmRole(role) || _kc.hasResourceRole(role));
2207
- var loadUserInfo = async () => {
2208
- const user2 = await _kc.loadUserInfo();
2209
- return {
2210
- name: user2.name,
2211
- employeeId: user2.employeeId?.toUpperCase() ?? "",
2212
- department: user2.department ?? "",
2213
- email: user2.email,
2214
- company: user2.company,
2215
- category: user2.category
2216
- };
2217
- };
2218
- var UserService = {
2219
- initKeycloak,
2220
- login,
2221
- logout,
2222
- getToken,
2223
- updateToken,
2224
- hasRole
2225
- };
2226
-
2227
- // src/utils/ClientUtils.ts
2228
- var Platform = class {
2229
- static isAndroid = /android/i.test(navigator.userAgent);
2230
- static isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent);
2231
- static isWindows = /windows/i.test(navigator.userAgent);
2232
- static isMacOS = /Macintosh|MacIntel|MacPPC|Mac68K/.test(navigator.userAgent);
2233
- };
2234
- var getContrastTextColor = (color) => {
2235
- const r = parseInt(color.substring(1, 3), 16);
2236
- const g = parseInt(color.substring(3, 5), 16);
2237
- const b = parseInt(color.substring(5, 7), 16);
2238
- const yiq = (r * 299 + g * 587 + b * 114) / 1e3;
2239
- return yiq >= 128 ? "black" : "white";
2240
- };
2241
- var wczApiClient = import_axios.default.create();
2242
- wczApiClient.interceptors.request.use(async (config) => {
2243
- await UserService.updateToken();
2244
- const token = await UserService.getToken();
2245
- config.headers.Authorization = `Bearer ${token}`;
2246
- return config;
2247
- });
2248
-
2249
- // src/hooks/FormHooks.ts
2250
- var import_react_form = require("@tanstack/react-form");
2251
-
2252
- // src/components/form/FormAutocomplete.tsx
2253
- var import_material13 = require("@mui/material");
2254
-
2255
- // src/utils/FormUtils.ts
2256
- var getFieldStatus = (field) => {
2257
- const { meta } = field.state;
2258
- const isTouched = meta.isTouched;
2259
- const hasError = !!meta.errors?.length;
2260
- const helperText = meta.errors?.[0]?.message;
2261
- return { isTouched, hasError, helperText };
2262
- };
2263
-
2264
- // src/components/form/FormAutocomplete.tsx
2265
- var import_jsx_runtime15 = require("react/jsx-runtime");
2266
- var FormAutocomplete = ({ textFieldProps, ...autocompleteProps }) => {
2267
- const field = useFieldContext();
2268
- const { isTouched, hasError, helperText } = getFieldStatus(field);
2269
- return /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2270
- import_material13.Autocomplete,
2271
- {
2272
- value: field.state.value,
2273
- onChange: (_, value) => !autocompleteProps.freeSolo && field.handleChange(value),
2274
- onInputChange: (_, value, reason) => reason !== "reset" && autocompleteProps.freeSolo && field.handleChange(value),
2275
- onBlur: field.handleBlur,
2276
- "aria-label": field.name,
2277
- ...autocompleteProps,
2278
- renderInput: (params) => /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(
2279
- import_material13.TextField,
2280
- {
2281
- ...params,
2282
- name: field.name,
2283
- error: isTouched && hasError,
2284
- helperText: isTouched && helperText,
2285
- ...textFieldProps
2286
- }
2287
- )
2288
- }
2289
- );
2290
- };
2291
-
2292
- // src/components/form/FormCheckbox.tsx
2293
- var import_material14 = require("@mui/material");
2294
- var import_jsx_runtime16 = require("react/jsx-runtime");
2295
- var FormCheckbox = (props) => {
2296
- const field = useFieldContext();
2297
- const { isTouched, hasError, helperText } = getFieldStatus(field);
2298
- return /* @__PURE__ */ (0, import_jsx_runtime16.jsxs)(import_material14.FormControl, { component: "fieldset", children: [
2299
- /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2300
- import_material14.FormControlLabel,
2301
- {
2302
- control: /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(
2303
- import_material14.Checkbox,
2304
- {
2305
- name: field.name,
2306
- checked: Boolean(field.state.value),
2307
- onChange: (e) => field.handleChange(e.target.checked),
2308
- onBlur: field.handleBlur,
2309
- "aria-label": field.name,
2310
- ...props
2311
- }
2312
- ),
2313
- label: props.label ?? ""
2314
- }
2315
- ),
2316
- isTouched && hasError && /* @__PURE__ */ (0, import_jsx_runtime16.jsx)(import_material14.FormHelperText, { error: hasError, children: helperText })
2317
- ] });
2318
- };
2319
-
2320
- // src/components/form/FormDatePicker.tsx
2321
- var import_x_date_pickers_pro = require("@mui/x-date-pickers-pro");
2322
- var import_dayjs2 = __toESM(require("dayjs"), 1);
2323
- var import_jsx_runtime17 = require("react/jsx-runtime");
2324
- var FormDatePicker = (props) => {
2325
- const field = useFieldContext();
2326
- const { isTouched, hasError, helperText } = getFieldStatus(field);
2327
- return /* @__PURE__ */ (0, import_jsx_runtime17.jsx)(
2328
- import_x_date_pickers_pro.DatePicker,
2329
- {
2330
- name: field.name,
2331
- value: field.state.value ? (0, import_dayjs2.default)(field.state.value) : null,
2332
- onChange: (value) => field.handleChange(value ? value.format() : null),
2333
- slotProps: {
2334
- textField: {
2335
- onBlur: field.handleBlur,
2336
- error: isTouched && hasError,
2337
- helperText: isTouched && helperText,
2338
- ...props.textFieldProps
2339
- },
2340
- ...props.slotProps
2341
- },
2342
- "aria-label": field.name,
2343
- ...props
2344
- }
2345
- );
2346
- };
2347
-
2348
- // src/components/form/FormDateTimePicker.tsx
2349
- var import_x_date_pickers_pro2 = require("@mui/x-date-pickers-pro");
2350
- var import_dayjs3 = __toESM(require("dayjs"), 1);
2351
- var import_jsx_runtime18 = require("react/jsx-runtime");
2352
- var FormDateTimePicker = (props) => {
2353
- const field = useFieldContext();
2354
- const { isTouched, hasError, helperText } = getFieldStatus(field);
2355
- return /* @__PURE__ */ (0, import_jsx_runtime18.jsx)(
2356
- import_x_date_pickers_pro2.DateTimePicker,
2357
- {
2358
- name: field.name,
2359
- value: field.state.value ? (0, import_dayjs3.default)(field.state.value) : null,
2360
- onChange: (value) => field.handleChange(value ? value.format() : null),
2361
- slotProps: {
2362
- textField: {
2363
- onBlur: field.handleBlur,
2364
- error: isTouched && hasError,
2365
- helperText: isTouched && helperText,
2366
- ...props.textFieldProps
2367
- },
2368
- ...props.slotProps
2369
- },
2370
- "aria-label": field.name,
2371
- ...props
2372
- }
2373
- );
2374
- };
2375
-
2376
- // src/components/form/FormNumberField.tsx
2377
- var import_material15 = require("@mui/material");
2378
- var import_react_number_format = require("react-number-format");
2379
- var import_jsx_runtime19 = require("react/jsx-runtime");
2380
- var FormNumberField = ({ options, ...props }) => {
2381
- const field = useFieldContext();
2382
- const { isTouched, hasError, helperText } = getFieldStatus(field);
2383
- return /* @__PURE__ */ (0, import_jsx_runtime19.jsx)(
2384
- import_react_number_format.NumericFormat,
2385
- {
2386
- customInput: import_material15.TextField,
2387
- name: field.name,
2388
- value: field.state.value ?? "",
2389
- onValueChange: ({ floatValue }) => field.handleChange(floatValue),
2390
- onBlur: field.handleBlur,
2391
- error: isTouched && hasError,
2392
- helperText: isTouched && helperText,
2393
- "aria-label": field.name,
2394
- ...props,
2395
- ...options
2396
- }
2397
- );
2398
- };
2399
-
2400
- // src/components/form/FormRadioGroup.tsx
2401
- var import_material16 = require("@mui/material");
2402
- var import_jsx_runtime20 = require("react/jsx-runtime");
2403
- var FormRadioGroup = ({ label, options, ...props }) => {
2404
- const field = useFieldContext();
2405
- const { isTouched, hasError, helperText } = getFieldStatus(field);
2406
- return /* @__PURE__ */ (0, import_jsx_runtime20.jsxs)(import_material16.FormControl, { component: "fieldset", children: [
2407
- label && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_material16.FormLabel, { component: "legend", children: label }),
2408
- /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2409
- import_material16.RadioGroup,
2410
- {
2411
- name: field.name,
2412
- value: field.state.value ?? "",
2413
- onChange: (e) => field.handleChange(e.target.value),
2414
- onBlur: field.handleBlur,
2415
- "aria-label": field.name,
2416
- ...props,
2417
- children: options.map((option) => /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
2418
- import_material16.FormControlLabel,
2419
- {
2420
- value: option.value,
2421
- control: /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_material16.Radio, {}),
2422
- label: option.label
2423
- },
2424
- option.value
2425
- ))
2426
- }
2427
- ),
2428
- isTouched && hasError && /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(import_material16.FormHelperText, { error: hasError, children: helperText })
2429
- ] });
2430
- };
2431
-
2432
- // src/components/form/FormSlider.tsx
2433
- var import_material17 = require("@mui/material");
2434
- var import_jsx_runtime21 = require("react/jsx-runtime");
2435
- var FormSlider = ({ label, ...props }) => {
2436
- const field = useFieldContext();
2437
- const { isTouched, hasError, helperText } = getFieldStatus(field);
2438
- return /* @__PURE__ */ (0, import_jsx_runtime21.jsxs)(import_material17.FormControl, { component: "fieldset", children: [
2439
- label && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material17.FormLabel, { children: label }),
2440
- /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(
2441
- import_material17.Slider,
2442
- {
2443
- name: field.name,
2444
- value: field.state.value ?? 0,
2445
- onChange: (_, value) => field.handleChange(Array.isArray(value) ? value[0] : value),
2446
- onBlur: field.handleBlur,
2447
- "aria-label": field.name,
2448
- ...props
2449
- }
2450
- ),
2451
- isTouched && hasError && /* @__PURE__ */ (0, import_jsx_runtime21.jsx)(import_material17.FormHelperText, { error: hasError, children: helperText })
2452
- ] });
2453
- };
2454
-
2455
- // src/components/form/FormSubmitButton.tsx
2456
- var import_material18 = require("@mui/material");
2457
- var import_jsx_runtime22 = require("react/jsx-runtime");
2458
- var FormSubmitButton = (props) => {
2459
- const form = useFormContext();
2460
- const handleClick = (e) => {
2461
- e.preventDefault();
2462
- e.stopPropagation();
2463
- form.handleSubmit();
2464
- };
2465
- return /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(form.Subscribe, { selector: (state) => [state.canSubmit, state.isSubmitting], children: ([canSubmit, isSubmitting]) => /* @__PURE__ */ (0, import_jsx_runtime22.jsx)(
2466
- import_material18.Button,
2467
- {
2468
- loading: isSubmitting,
2469
- disabled: !canSubmit,
2470
- onClick: handleClick,
2471
- type: "submit",
2472
- "aria-label": "submit",
2473
- ...props
2474
- }
2475
- ) });
2476
- };
2477
-
2478
- // src/components/form/FormSwitch.tsx
2479
- var import_material19 = require("@mui/material");
2480
- var import_jsx_runtime23 = require("react/jsx-runtime");
2481
- var FormSwitch = (props) => {
2482
- const field = useFieldContext();
2483
- const { isTouched, hasError, helperText } = getFieldStatus(field);
2484
- return /* @__PURE__ */ (0, import_jsx_runtime23.jsxs)(import_material19.FormControl, { component: "fieldset", children: [
2485
- /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2486
- import_material19.FormControlLabel,
2487
- {
2488
- control: /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(
2489
- import_material19.Switch,
2490
- {
2491
- name: field.name,
2492
- checked: Boolean(field.state.value),
2493
- onChange: (e) => field.handleChange(e.target.checked),
2494
- onBlur: field.handleBlur,
2495
- "aria-label": field.name,
2496
- ...props
2497
- }
2498
- ),
2499
- label: props.label ?? ""
2500
- }
2501
- ),
2502
- isTouched && hasError && /* @__PURE__ */ (0, import_jsx_runtime23.jsx)(import_material19.FormHelperText, { error: hasError, children: helperText })
2503
- ] });
2504
- };
2505
-
2506
- // src/components/form/FormTextField.tsx
2507
- var import_material20 = require("@mui/material");
2508
- var import_jsx_runtime24 = require("react/jsx-runtime");
2509
- var FormTextField = (props) => {
2510
- const field = useFieldContext();
2511
- const { isTouched, hasError, helperText } = getFieldStatus(field);
2512
- return /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
2513
- import_material20.TextField,
2514
- {
2515
- name: field.name,
2516
- value: field.state.value ?? "",
2517
- onChange: (e) => field.handleChange(e.target.value),
2518
- onBlur: field.handleBlur,
2519
- error: isTouched && hasError,
2520
- helperText: isTouched && helperText,
2521
- "aria-label": field.name,
2522
- ...props
2523
- }
2524
- );
2525
- };
2526
-
2527
- // src/hooks/FormHooks.ts
2528
- var { fieldContext, useFieldContext, formContext, useFormContext } = (0, import_react_form.createFormHookContexts)();
2529
- var { useAppForm: useLayoutForm, withForm: withLayoutForm } = (0, import_react_form.createFormHook)({
2530
- fieldComponents: {
2531
- TextField: FormTextField,
2532
- NumberField: FormNumberField,
2533
- Autocomplete: FormAutocomplete,
2534
- Checkbox: FormCheckbox,
2535
- Switch: FormSwitch,
2536
- RadioGroup: FormRadioGroup,
2537
- Slider: FormSlider,
2538
- DatePicker: FormDatePicker,
2539
- DateTimePicker: FormDateTimePicker
2540
- },
2541
- formComponents: {
2542
- SubmitButton: FormSubmitButton
2543
- },
2544
- fieldContext,
2545
- formContext
2546
- });
2547
-
2548
- // src/index.ts
2549
- var import_useDialogs = require("@toolpad/core/useDialogs");
2550
- var import_useNotifications2 = require("@toolpad/core/useNotifications");
2551
- var import_useLocalStorageState = require("@toolpad/core/useLocalStorageState");
2552
- var import_react_i18next6 = require("react-i18next");
2553
- // Annotate the CommonJS export names for ESM import in node:
2554
- 0 && (module.exports = {
2555
- ChipInputCell,
2556
- EditableColumnHeader,
2557
- LayoutProvider,
2558
- Platform,
2559
- RouterButton,
2560
- RouterError,
2561
- RouterLink,
2562
- RouterNotFound,
2563
- RouterTab,
2564
- TypographyWithIcon,
2565
- getContrastTextColor,
2566
- useDialogs,
2567
- useFieldContext,
2568
- useFormContext,
2569
- useLayoutForm,
2570
- useLocalStorageState,
2571
- useNotifications,
2572
- useTranslation,
2573
- uuidv7,
2574
- wczApiClient,
2575
- withLayoutForm
2576
- });
2577
- /*! Bundled license information:
2578
-
2579
- react-is/cjs/react-is.production.min.js:
2580
- (** @license React v16.13.1
2581
- * react-is.production.min.js
2582
- *
2583
- * Copyright (c) Facebook, Inc. and its affiliates.
2584
- *
2585
- * This source code is licensed under the MIT license found in the
2586
- * LICENSE file in the root directory of this source tree.
2587
- *)
2588
-
2589
- react-is/cjs/react-is.development.js:
2590
- (** @license React v16.13.1
2591
- * react-is.development.js
2592
- *
2593
- * Copyright (c) Facebook, Inc. and its affiliates.
2594
- *
2595
- * This source code is licensed under the MIT license found in the
2596
- * LICENSE file in the root directory of this source tree.
2597
- *)
2598
-
2599
- object-assign/index.js:
2600
- (*
2601
- object-assign
2602
- (c) Sindre Sorhus
2603
- @license MIT
2604
- *)
2605
- */
2606
- //# sourceMappingURL=index.cjs.map