@sector.siit/mlz-components 1.0.11 → 1.0.13

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.js CHANGED
@@ -2,1382 +2,10 @@
2
2
 
3
3
  'use strict';
4
4
 
5
- var require$$0 = require('react');
5
+ var jsxRuntime = require('react/jsx-runtime');
6
+ var react = require('react');
6
7
  var toast = require('react-hot-toast');
7
8
 
8
- var jsxRuntime = {exports: {}};
9
-
10
- var reactJsxRuntime_development = {};
11
-
12
- /**
13
- * @license React
14
- * react-jsx-runtime.development.js
15
- *
16
- * Copyright (c) Facebook, Inc. and its affiliates.
17
- *
18
- * This source code is licensed under the MIT license found in the
19
- * LICENSE file in the root directory of this source tree.
20
- */
21
-
22
- var hasRequiredReactJsxRuntime_development;
23
-
24
- function requireReactJsxRuntime_development () {
25
- if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
26
- hasRequiredReactJsxRuntime_development = 1;
27
-
28
- if (process.env.NODE_ENV !== "production") {
29
- (function() {
30
-
31
- var React = require$$0;
32
-
33
- // ATTENTION
34
- // When adding new symbols to this file,
35
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
36
- // The Symbol used to tag the ReactElement-like types.
37
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
38
- var REACT_PORTAL_TYPE = Symbol.for('react.portal');
39
- var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
40
- var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
41
- var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
42
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
43
- var REACT_CONTEXT_TYPE = Symbol.for('react.context');
44
- var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
45
- var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
46
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
47
- var REACT_MEMO_TYPE = Symbol.for('react.memo');
48
- var REACT_LAZY_TYPE = Symbol.for('react.lazy');
49
- var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
50
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
51
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
52
- function getIteratorFn(maybeIterable) {
53
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
54
- return null;
55
- }
56
-
57
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
58
-
59
- if (typeof maybeIterator === 'function') {
60
- return maybeIterator;
61
- }
62
-
63
- return null;
64
- }
65
-
66
- var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
67
-
68
- function error(format) {
69
- {
70
- {
71
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
72
- args[_key2 - 1] = arguments[_key2];
73
- }
74
-
75
- printWarning('error', format, args);
76
- }
77
- }
78
- }
79
-
80
- function printWarning(level, format, args) {
81
- // When changing this logic, you might want to also
82
- // update consoleWithStackDev.www.js as well.
83
- {
84
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
85
- var stack = ReactDebugCurrentFrame.getStackAddendum();
86
-
87
- if (stack !== '') {
88
- format += '%s';
89
- args = args.concat([stack]);
90
- } // eslint-disable-next-line react-internal/safe-string-coercion
91
-
92
-
93
- var argsWithFormat = args.map(function (item) {
94
- return String(item);
95
- }); // Careful: RN currently depends on this prefix
96
-
97
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
98
- // breaks IE9: https://github.com/facebook/react/issues/13610
99
- // eslint-disable-next-line react-internal/no-production-logging
100
-
101
- Function.prototype.apply.call(console[level], console, argsWithFormat);
102
- }
103
- }
104
-
105
- // -----------------------------------------------------------------------------
106
-
107
- var enableScopeAPI = false; // Experimental Create Event Handle API.
108
- var enableCacheElement = false;
109
- var enableTransitionTracing = false; // No known bugs, but needs performance testing
110
-
111
- var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
112
- // stuff. Intended to enable React core members to more easily debug scheduling
113
- // issues in DEV builds.
114
-
115
- var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
116
-
117
- var REACT_MODULE_REFERENCE;
118
-
119
- {
120
- REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
121
- }
122
-
123
- function isValidElementType(type) {
124
- if (typeof type === 'string' || typeof type === 'function') {
125
- return true;
126
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
127
-
128
-
129
- if (type === REACT_FRAGMENT_TYPE || type === REACT_PROFILER_TYPE || enableDebugTracing || type === REACT_STRICT_MODE_TYPE || type === REACT_SUSPENSE_TYPE || type === REACT_SUSPENSE_LIST_TYPE || enableLegacyHidden || type === REACT_OFFSCREEN_TYPE || enableScopeAPI || enableCacheElement || enableTransitionTracing ) {
130
- return true;
131
- }
132
-
133
- if (typeof type === 'object' && type !== null) {
134
- if (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 || // This needs to include all possible module reference object
135
- // types supported by any Flight configuration anywhere since
136
- // we don't know which Flight build this will end up being used
137
- // with.
138
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
139
- return true;
140
- }
141
- }
142
-
143
- return false;
144
- }
145
-
146
- function getWrappedName(outerType, innerType, wrapperName) {
147
- var displayName = outerType.displayName;
148
-
149
- if (displayName) {
150
- return displayName;
151
- }
152
-
153
- var functionName = innerType.displayName || innerType.name || '';
154
- return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
155
- } // Keep in sync with react-reconciler/getComponentNameFromFiber
156
-
157
-
158
- function getContextName(type) {
159
- return type.displayName || 'Context';
160
- } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
161
-
162
-
163
- function getComponentNameFromType(type) {
164
- if (type == null) {
165
- // Host root, text node or just invalid type.
166
- return null;
167
- }
168
-
169
- {
170
- if (typeof type.tag === 'number') {
171
- error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
172
- }
173
- }
174
-
175
- if (typeof type === 'function') {
176
- return type.displayName || type.name || null;
177
- }
178
-
179
- if (typeof type === 'string') {
180
- return type;
181
- }
182
-
183
- switch (type) {
184
- case REACT_FRAGMENT_TYPE:
185
- return 'Fragment';
186
-
187
- case REACT_PORTAL_TYPE:
188
- return 'Portal';
189
-
190
- case REACT_PROFILER_TYPE:
191
- return 'Profiler';
192
-
193
- case REACT_STRICT_MODE_TYPE:
194
- return 'StrictMode';
195
-
196
- case REACT_SUSPENSE_TYPE:
197
- return 'Suspense';
198
-
199
- case REACT_SUSPENSE_LIST_TYPE:
200
- return 'SuspenseList';
201
-
202
- }
203
-
204
- if (typeof type === 'object') {
205
- switch (type.$$typeof) {
206
- case REACT_CONTEXT_TYPE:
207
- var context = type;
208
- return getContextName(context) + '.Consumer';
209
-
210
- case REACT_PROVIDER_TYPE:
211
- var provider = type;
212
- return getContextName(provider._context) + '.Provider';
213
-
214
- case REACT_FORWARD_REF_TYPE:
215
- return getWrappedName(type, type.render, 'ForwardRef');
216
-
217
- case REACT_MEMO_TYPE:
218
- var outerName = type.displayName || null;
219
-
220
- if (outerName !== null) {
221
- return outerName;
222
- }
223
-
224
- return getComponentNameFromType(type.type) || 'Memo';
225
-
226
- case REACT_LAZY_TYPE:
227
- {
228
- var lazyComponent = type;
229
- var payload = lazyComponent._payload;
230
- var init = lazyComponent._init;
231
-
232
- try {
233
- return getComponentNameFromType(init(payload));
234
- } catch (x) {
235
- return null;
236
- }
237
- }
238
-
239
- // eslint-disable-next-line no-fallthrough
240
- }
241
- }
242
-
243
- return null;
244
- }
245
-
246
- var assign = Object.assign;
247
-
248
- // Helpers to patch console.logs to avoid logging during side-effect free
249
- // replaying on render function. This currently only patches the object
250
- // lazily which won't cover if the log function was extracted eagerly.
251
- // We could also eagerly patch the method.
252
- var disabledDepth = 0;
253
- var prevLog;
254
- var prevInfo;
255
- var prevWarn;
256
- var prevError;
257
- var prevGroup;
258
- var prevGroupCollapsed;
259
- var prevGroupEnd;
260
-
261
- function disabledLog() {}
262
-
263
- disabledLog.__reactDisabledLog = true;
264
- function disableLogs() {
265
- {
266
- if (disabledDepth === 0) {
267
- /* eslint-disable react-internal/no-production-logging */
268
- prevLog = console.log;
269
- prevInfo = console.info;
270
- prevWarn = console.warn;
271
- prevError = console.error;
272
- prevGroup = console.group;
273
- prevGroupCollapsed = console.groupCollapsed;
274
- prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
275
-
276
- var props = {
277
- configurable: true,
278
- enumerable: true,
279
- value: disabledLog,
280
- writable: true
281
- }; // $FlowFixMe Flow thinks console is immutable.
282
-
283
- Object.defineProperties(console, {
284
- info: props,
285
- log: props,
286
- warn: props,
287
- error: props,
288
- group: props,
289
- groupCollapsed: props,
290
- groupEnd: props
291
- });
292
- /* eslint-enable react-internal/no-production-logging */
293
- }
294
-
295
- disabledDepth++;
296
- }
297
- }
298
- function reenableLogs() {
299
- {
300
- disabledDepth--;
301
-
302
- if (disabledDepth === 0) {
303
- /* eslint-disable react-internal/no-production-logging */
304
- var props = {
305
- configurable: true,
306
- enumerable: true,
307
- writable: true
308
- }; // $FlowFixMe Flow thinks console is immutable.
309
-
310
- Object.defineProperties(console, {
311
- log: assign({}, props, {
312
- value: prevLog
313
- }),
314
- info: assign({}, props, {
315
- value: prevInfo
316
- }),
317
- warn: assign({}, props, {
318
- value: prevWarn
319
- }),
320
- error: assign({}, props, {
321
- value: prevError
322
- }),
323
- group: assign({}, props, {
324
- value: prevGroup
325
- }),
326
- groupCollapsed: assign({}, props, {
327
- value: prevGroupCollapsed
328
- }),
329
- groupEnd: assign({}, props, {
330
- value: prevGroupEnd
331
- })
332
- });
333
- /* eslint-enable react-internal/no-production-logging */
334
- }
335
-
336
- if (disabledDepth < 0) {
337
- error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
338
- }
339
- }
340
- }
341
-
342
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
343
- var prefix;
344
- function describeBuiltInComponentFrame(name, source, ownerFn) {
345
- {
346
- if (prefix === undefined) {
347
- // Extract the VM specific prefix used by each line.
348
- try {
349
- throw Error();
350
- } catch (x) {
351
- var match = x.stack.trim().match(/\n( *(at )?)/);
352
- prefix = match && match[1] || '';
353
- }
354
- } // We use the prefix to ensure our stacks line up with native stack frames.
355
-
356
-
357
- return '\n' + prefix + name;
358
- }
359
- }
360
- var reentry = false;
361
- var componentFrameCache;
362
-
363
- {
364
- var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
365
- componentFrameCache = new PossiblyWeakMap();
366
- }
367
-
368
- function describeNativeComponentFrame(fn, construct) {
369
- // If something asked for a stack inside a fake render, it should get ignored.
370
- if ( !fn || reentry) {
371
- return '';
372
- }
373
-
374
- {
375
- var frame = componentFrameCache.get(fn);
376
-
377
- if (frame !== undefined) {
378
- return frame;
379
- }
380
- }
381
-
382
- var control;
383
- reentry = true;
384
- var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
385
-
386
- Error.prepareStackTrace = undefined;
387
- var previousDispatcher;
388
-
389
- {
390
- previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
391
- // for warnings.
392
-
393
- ReactCurrentDispatcher.current = null;
394
- disableLogs();
395
- }
396
-
397
- try {
398
- // This should throw.
399
- if (construct) {
400
- // Something should be setting the props in the constructor.
401
- var Fake = function () {
402
- throw Error();
403
- }; // $FlowFixMe
404
-
405
-
406
- Object.defineProperty(Fake.prototype, 'props', {
407
- set: function () {
408
- // We use a throwing setter instead of frozen or non-writable props
409
- // because that won't throw in a non-strict mode function.
410
- throw Error();
411
- }
412
- });
413
-
414
- if (typeof Reflect === 'object' && Reflect.construct) {
415
- // We construct a different control for this case to include any extra
416
- // frames added by the construct call.
417
- try {
418
- Reflect.construct(Fake, []);
419
- } catch (x) {
420
- control = x;
421
- }
422
-
423
- Reflect.construct(fn, [], Fake);
424
- } else {
425
- try {
426
- Fake.call();
427
- } catch (x) {
428
- control = x;
429
- }
430
-
431
- fn.call(Fake.prototype);
432
- }
433
- } else {
434
- try {
435
- throw Error();
436
- } catch (x) {
437
- control = x;
438
- }
439
-
440
- fn();
441
- }
442
- } catch (sample) {
443
- // This is inlined manually because closure doesn't do it for us.
444
- if (sample && control && typeof sample.stack === 'string') {
445
- // This extracts the first frame from the sample that isn't also in the control.
446
- // Skipping one frame that we assume is the frame that calls the two.
447
- var sampleLines = sample.stack.split('\n');
448
- var controlLines = control.stack.split('\n');
449
- var s = sampleLines.length - 1;
450
- var c = controlLines.length - 1;
451
-
452
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
453
- // We expect at least one stack frame to be shared.
454
- // Typically this will be the root most one. However, stack frames may be
455
- // cut off due to maximum stack limits. In this case, one maybe cut off
456
- // earlier than the other. We assume that the sample is longer or the same
457
- // and there for cut off earlier. So we should find the root most frame in
458
- // the sample somewhere in the control.
459
- c--;
460
- }
461
-
462
- for (; s >= 1 && c >= 0; s--, c--) {
463
- // Next we find the first one that isn't the same which should be the
464
- // frame that called our sample function and the control.
465
- if (sampleLines[s] !== controlLines[c]) {
466
- // In V8, the first line is describing the message but other VMs don't.
467
- // If we're about to return the first line, and the control is also on the same
468
- // line, that's a pretty good indicator that our sample threw at same line as
469
- // the control. I.e. before we entered the sample frame. So we ignore this result.
470
- // This can happen if you passed a class to function component, or non-function.
471
- if (s !== 1 || c !== 1) {
472
- do {
473
- s--;
474
- c--; // We may still have similar intermediate frames from the construct call.
475
- // The next one that isn't the same should be our match though.
476
-
477
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
478
- // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
479
- var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
480
- // but we have a user-provided "displayName"
481
- // splice it in to make the stack more readable.
482
-
483
-
484
- if (fn.displayName && _frame.includes('<anonymous>')) {
485
- _frame = _frame.replace('<anonymous>', fn.displayName);
486
- }
487
-
488
- {
489
- if (typeof fn === 'function') {
490
- componentFrameCache.set(fn, _frame);
491
- }
492
- } // Return the line we found.
493
-
494
-
495
- return _frame;
496
- }
497
- } while (s >= 1 && c >= 0);
498
- }
499
-
500
- break;
501
- }
502
- }
503
- }
504
- } finally {
505
- reentry = false;
506
-
507
- {
508
- ReactCurrentDispatcher.current = previousDispatcher;
509
- reenableLogs();
510
- }
511
-
512
- Error.prepareStackTrace = previousPrepareStackTrace;
513
- } // Fallback to just using the name if we couldn't make it throw.
514
-
515
-
516
- var name = fn ? fn.displayName || fn.name : '';
517
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
518
-
519
- {
520
- if (typeof fn === 'function') {
521
- componentFrameCache.set(fn, syntheticFrame);
522
- }
523
- }
524
-
525
- return syntheticFrame;
526
- }
527
- function describeFunctionComponentFrame(fn, source, ownerFn) {
528
- {
529
- return describeNativeComponentFrame(fn, false);
530
- }
531
- }
532
-
533
- function shouldConstruct(Component) {
534
- var prototype = Component.prototype;
535
- return !!(prototype && prototype.isReactComponent);
536
- }
537
-
538
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
539
-
540
- if (type == null) {
541
- return '';
542
- }
543
-
544
- if (typeof type === 'function') {
545
- {
546
- return describeNativeComponentFrame(type, shouldConstruct(type));
547
- }
548
- }
549
-
550
- if (typeof type === 'string') {
551
- return describeBuiltInComponentFrame(type);
552
- }
553
-
554
- switch (type) {
555
- case REACT_SUSPENSE_TYPE:
556
- return describeBuiltInComponentFrame('Suspense');
557
-
558
- case REACT_SUSPENSE_LIST_TYPE:
559
- return describeBuiltInComponentFrame('SuspenseList');
560
- }
561
-
562
- if (typeof type === 'object') {
563
- switch (type.$$typeof) {
564
- case REACT_FORWARD_REF_TYPE:
565
- return describeFunctionComponentFrame(type.render);
566
-
567
- case REACT_MEMO_TYPE:
568
- // Memo may contain any component type so we recursively resolve it.
569
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
570
-
571
- case REACT_LAZY_TYPE:
572
- {
573
- var lazyComponent = type;
574
- var payload = lazyComponent._payload;
575
- var init = lazyComponent._init;
576
-
577
- try {
578
- // Lazy may contain any component type so we recursively resolve it.
579
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
580
- } catch (x) {}
581
- }
582
- }
583
- }
584
-
585
- return '';
586
- }
587
-
588
- var hasOwnProperty = Object.prototype.hasOwnProperty;
589
-
590
- var loggedTypeFailures = {};
591
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
592
-
593
- function setCurrentlyValidatingElement(element) {
594
- {
595
- if (element) {
596
- var owner = element._owner;
597
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
598
- ReactDebugCurrentFrame.setExtraStackFrame(stack);
599
- } else {
600
- ReactDebugCurrentFrame.setExtraStackFrame(null);
601
- }
602
- }
603
- }
604
-
605
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
606
- {
607
- // $FlowFixMe This is okay but Flow doesn't know it.
608
- var has = Function.call.bind(hasOwnProperty);
609
-
610
- for (var typeSpecName in typeSpecs) {
611
- if (has(typeSpecs, typeSpecName)) {
612
- var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
613
- // fail the render phase where it didn't fail before. So we log it.
614
- // After these have been cleaned up, we'll let them throw.
615
-
616
- try {
617
- // This is intentionally an invariant that gets caught. It's the same
618
- // behavior as without this statement except with a better message.
619
- if (typeof typeSpecs[typeSpecName] !== 'function') {
620
- // eslint-disable-next-line react-internal/prod-error-codes
621
- var err = Error((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`.');
622
- err.name = 'Invariant Violation';
623
- throw err;
624
- }
625
-
626
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
627
- } catch (ex) {
628
- error$1 = ex;
629
- }
630
-
631
- if (error$1 && !(error$1 instanceof Error)) {
632
- setCurrentlyValidatingElement(element);
633
-
634
- error('%s: type specification of %s' + ' `%s` is invalid; the type checker ' + 'function must return `null` or an `Error` but returned a %s. ' + 'You may have forgotten to pass an argument to the type checker ' + 'creator (arrayOf, instanceOf, objectOf, oneOf, oneOfType, and ' + 'shape all require an argument).', componentName || 'React class', location, typeSpecName, typeof error$1);
635
-
636
- setCurrentlyValidatingElement(null);
637
- }
638
-
639
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
640
- // Only monitor this failure once because there tends to be a lot of the
641
- // same error.
642
- loggedTypeFailures[error$1.message] = true;
643
- setCurrentlyValidatingElement(element);
644
-
645
- error('Failed %s type: %s', location, error$1.message);
646
-
647
- setCurrentlyValidatingElement(null);
648
- }
649
- }
650
- }
651
- }
652
- }
653
-
654
- var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
655
-
656
- function isArray(a) {
657
- return isArrayImpl(a);
658
- }
659
-
660
- /*
661
- * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
662
- * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
663
- *
664
- * The functions in this module will throw an easier-to-understand,
665
- * easier-to-debug exception with a clear errors message message explaining the
666
- * problem. (Instead of a confusing exception thrown inside the implementation
667
- * of the `value` object).
668
- */
669
- // $FlowFixMe only called in DEV, so void return is not possible.
670
- function typeName(value) {
671
- {
672
- // toStringTag is needed for namespaced types like Temporal.Instant
673
- var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
674
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
675
- return type;
676
- }
677
- } // $FlowFixMe only called in DEV, so void return is not possible.
678
-
679
-
680
- function willCoercionThrow(value) {
681
- {
682
- try {
683
- testStringCoercion(value);
684
- return false;
685
- } catch (e) {
686
- return true;
687
- }
688
- }
689
- }
690
-
691
- function testStringCoercion(value) {
692
- // If you ended up here by following an exception call stack, here's what's
693
- // happened: you supplied an object or symbol value to React (as a prop, key,
694
- // DOM attribute, CSS property, string ref, etc.) and when React tried to
695
- // coerce it to a string using `'' + value`, an exception was thrown.
696
- //
697
- // The most common types that will cause this exception are `Symbol` instances
698
- // and Temporal objects like `Temporal.Instant`. But any object that has a
699
- // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
700
- // exception. (Library authors do this to prevent users from using built-in
701
- // numeric operators like `+` or comparison operators like `>=` because custom
702
- // methods are needed to perform accurate arithmetic or comparison.)
703
- //
704
- // To fix the problem, coerce this object or symbol value to a string before
705
- // passing it to React. The most reliable way is usually `String(value)`.
706
- //
707
- // To find which value is throwing, check the browser or debugger console.
708
- // Before this exception was thrown, there should be `console.error` output
709
- // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
710
- // problem and how that type was used: key, atrribute, input value prop, etc.
711
- // In most cases, this console output also shows the component and its
712
- // ancestor components where the exception happened.
713
- //
714
- // eslint-disable-next-line react-internal/safe-string-coercion
715
- return '' + value;
716
- }
717
- function checkKeyStringCoercion(value) {
718
- {
719
- if (willCoercionThrow(value)) {
720
- error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
721
-
722
- return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
723
- }
724
- }
725
- }
726
-
727
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
728
- var RESERVED_PROPS = {
729
- key: true,
730
- ref: true,
731
- __self: true,
732
- __source: true
733
- };
734
- var specialPropKeyWarningShown;
735
- var specialPropRefWarningShown;
736
- var didWarnAboutStringRefs;
737
-
738
- {
739
- didWarnAboutStringRefs = {};
740
- }
741
-
742
- function hasValidRef(config) {
743
- {
744
- if (hasOwnProperty.call(config, 'ref')) {
745
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
746
-
747
- if (getter && getter.isReactWarning) {
748
- return false;
749
- }
750
- }
751
- }
752
-
753
- return config.ref !== undefined;
754
- }
755
-
756
- function hasValidKey(config) {
757
- {
758
- if (hasOwnProperty.call(config, 'key')) {
759
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
760
-
761
- if (getter && getter.isReactWarning) {
762
- return false;
763
- }
764
- }
765
- }
766
-
767
- return config.key !== undefined;
768
- }
769
-
770
- function warnIfStringRefCannotBeAutoConverted(config, self) {
771
- {
772
- if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
773
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
774
-
775
- if (!didWarnAboutStringRefs[componentName]) {
776
- error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
777
-
778
- didWarnAboutStringRefs[componentName] = true;
779
- }
780
- }
781
- }
782
- }
783
-
784
- function defineKeyPropWarningGetter(props, displayName) {
785
- {
786
- var warnAboutAccessingKey = function () {
787
- if (!specialPropKeyWarningShown) {
788
- specialPropKeyWarningShown = true;
789
-
790
- error('%s: `key` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
791
- }
792
- };
793
-
794
- warnAboutAccessingKey.isReactWarning = true;
795
- Object.defineProperty(props, 'key', {
796
- get: warnAboutAccessingKey,
797
- configurable: true
798
- });
799
- }
800
- }
801
-
802
- function defineRefPropWarningGetter(props, displayName) {
803
- {
804
- var warnAboutAccessingRef = function () {
805
- if (!specialPropRefWarningShown) {
806
- specialPropRefWarningShown = true;
807
-
808
- error('%s: `ref` is not a prop. Trying to access it will result ' + 'in `undefined` being returned. If you need to access the same ' + 'value within the child component, you should pass it as a different ' + 'prop. (https://reactjs.org/link/special-props)', displayName);
809
- }
810
- };
811
-
812
- warnAboutAccessingRef.isReactWarning = true;
813
- Object.defineProperty(props, 'ref', {
814
- get: warnAboutAccessingRef,
815
- configurable: true
816
- });
817
- }
818
- }
819
- /**
820
- * Factory method to create a new React element. This no longer adheres to
821
- * the class pattern, so do not use new to call it. Also, instanceof check
822
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
823
- * if something is a React Element.
824
- *
825
- * @param {*} type
826
- * @param {*} props
827
- * @param {*} key
828
- * @param {string|object} ref
829
- * @param {*} owner
830
- * @param {*} self A *temporary* helper to detect places where `this` is
831
- * different from the `owner` when React.createElement is called, so that we
832
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
833
- * functions, and as long as `this` and owner are the same, there will be no
834
- * change in behavior.
835
- * @param {*} source An annotation object (added by a transpiler or otherwise)
836
- * indicating filename, line number, and/or other information.
837
- * @internal
838
- */
839
-
840
-
841
- var ReactElement = function (type, key, ref, self, source, owner, props) {
842
- var element = {
843
- // This tag allows us to uniquely identify this as a React Element
844
- $$typeof: REACT_ELEMENT_TYPE,
845
- // Built-in properties that belong on the element
846
- type: type,
847
- key: key,
848
- ref: ref,
849
- props: props,
850
- // Record the component responsible for creating this element.
851
- _owner: owner
852
- };
853
-
854
- {
855
- // The validation flag is currently mutative. We put it on
856
- // an external backing store so that we can freeze the whole object.
857
- // This can be replaced with a WeakMap once they are implemented in
858
- // commonly used development environments.
859
- element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
860
- // the validation flag non-enumerable (where possible, which should
861
- // include every environment we run tests in), so the test framework
862
- // ignores it.
863
-
864
- Object.defineProperty(element._store, 'validated', {
865
- configurable: false,
866
- enumerable: false,
867
- writable: true,
868
- value: false
869
- }); // self and source are DEV only properties.
870
-
871
- Object.defineProperty(element, '_self', {
872
- configurable: false,
873
- enumerable: false,
874
- writable: false,
875
- value: self
876
- }); // Two elements created in two different places should be considered
877
- // equal for testing purposes and therefore we hide it from enumeration.
878
-
879
- Object.defineProperty(element, '_source', {
880
- configurable: false,
881
- enumerable: false,
882
- writable: false,
883
- value: source
884
- });
885
-
886
- if (Object.freeze) {
887
- Object.freeze(element.props);
888
- Object.freeze(element);
889
- }
890
- }
891
-
892
- return element;
893
- };
894
- /**
895
- * https://github.com/reactjs/rfcs/pull/107
896
- * @param {*} type
897
- * @param {object} props
898
- * @param {string} key
899
- */
900
-
901
- function jsxDEV(type, config, maybeKey, source, self) {
902
- {
903
- var propName; // Reserved names are extracted
904
-
905
- var props = {};
906
- var key = null;
907
- var ref = null; // Currently, key can be spread in as a prop. This causes a potential
908
- // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
909
- // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
910
- // but as an intermediary step, we will use jsxDEV for everything except
911
- // <div {...props} key="Hi" />, because we aren't currently able to tell if
912
- // key is explicitly declared to be undefined or not.
913
-
914
- if (maybeKey !== undefined) {
915
- {
916
- checkKeyStringCoercion(maybeKey);
917
- }
918
-
919
- key = '' + maybeKey;
920
- }
921
-
922
- if (hasValidKey(config)) {
923
- {
924
- checkKeyStringCoercion(config.key);
925
- }
926
-
927
- key = '' + config.key;
928
- }
929
-
930
- if (hasValidRef(config)) {
931
- ref = config.ref;
932
- warnIfStringRefCannotBeAutoConverted(config, self);
933
- } // Remaining properties are added to a new props object
934
-
935
-
936
- for (propName in config) {
937
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
938
- props[propName] = config[propName];
939
- }
940
- } // Resolve default props
941
-
942
-
943
- if (type && type.defaultProps) {
944
- var defaultProps = type.defaultProps;
945
-
946
- for (propName in defaultProps) {
947
- if (props[propName] === undefined) {
948
- props[propName] = defaultProps[propName];
949
- }
950
- }
951
- }
952
-
953
- if (key || ref) {
954
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
955
-
956
- if (key) {
957
- defineKeyPropWarningGetter(props, displayName);
958
- }
959
-
960
- if (ref) {
961
- defineRefPropWarningGetter(props, displayName);
962
- }
963
- }
964
-
965
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
966
- }
967
- }
968
-
969
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
970
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
971
-
972
- function setCurrentlyValidatingElement$1(element) {
973
- {
974
- if (element) {
975
- var owner = element._owner;
976
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
977
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
978
- } else {
979
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
980
- }
981
- }
982
- }
983
-
984
- var propTypesMisspellWarningShown;
985
-
986
- {
987
- propTypesMisspellWarningShown = false;
988
- }
989
- /**
990
- * Verifies the object is a ReactElement.
991
- * See https://reactjs.org/docs/react-api.html#isvalidelement
992
- * @param {?object} object
993
- * @return {boolean} True if `object` is a ReactElement.
994
- * @final
995
- */
996
-
997
-
998
- function isValidElement(object) {
999
- {
1000
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1001
- }
1002
- }
1003
-
1004
- function getDeclarationErrorAddendum() {
1005
- {
1006
- if (ReactCurrentOwner$1.current) {
1007
- var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
1008
-
1009
- if (name) {
1010
- return '\n\nCheck the render method of `' + name + '`.';
1011
- }
1012
- }
1013
-
1014
- return '';
1015
- }
1016
- }
1017
-
1018
- function getSourceInfoErrorAddendum(source) {
1019
- {
1020
- if (source !== undefined) {
1021
- var fileName = source.fileName.replace(/^.*[\\\/]/, '');
1022
- var lineNumber = source.lineNumber;
1023
- return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
1024
- }
1025
-
1026
- return '';
1027
- }
1028
- }
1029
- /**
1030
- * Warn if there's no key explicitly set on dynamic arrays of children or
1031
- * object keys are not valid. This allows us to keep track of children between
1032
- * updates.
1033
- */
1034
-
1035
-
1036
- var ownerHasKeyUseWarning = {};
1037
-
1038
- function getCurrentComponentErrorInfo(parentType) {
1039
- {
1040
- var info = getDeclarationErrorAddendum();
1041
-
1042
- if (!info) {
1043
- var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
1044
-
1045
- if (parentName) {
1046
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1047
- }
1048
- }
1049
-
1050
- return info;
1051
- }
1052
- }
1053
- /**
1054
- * Warn if the element doesn't have an explicit key assigned to it.
1055
- * This element is in an array. The array could grow and shrink or be
1056
- * reordered. All children that haven't already been validated are required to
1057
- * have a "key" property assigned to it. Error statuses are cached so a warning
1058
- * will only be shown once.
1059
- *
1060
- * @internal
1061
- * @param {ReactElement} element Element that requires a key.
1062
- * @param {*} parentType element's parent's type.
1063
- */
1064
-
1065
-
1066
- function validateExplicitKey(element, parentType) {
1067
- {
1068
- if (!element._store || element._store.validated || element.key != null) {
1069
- return;
1070
- }
1071
-
1072
- element._store.validated = true;
1073
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1074
-
1075
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1076
- return;
1077
- }
1078
-
1079
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
1080
- // property, it may be the creator of the child that's responsible for
1081
- // assigning it a key.
1082
-
1083
- var childOwner = '';
1084
-
1085
- if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
1086
- // Give the component that originally created this child.
1087
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1088
- }
1089
-
1090
- setCurrentlyValidatingElement$1(element);
1091
-
1092
- error('Each child in a list should have a unique "key" prop.' + '%s%s See https://reactjs.org/link/warning-keys for more information.', currentComponentErrorInfo, childOwner);
1093
-
1094
- setCurrentlyValidatingElement$1(null);
1095
- }
1096
- }
1097
- /**
1098
- * Ensure that every element either is passed in a static location, in an
1099
- * array with an explicit keys property defined, or in an object literal
1100
- * with valid key property.
1101
- *
1102
- * @internal
1103
- * @param {ReactNode} node Statically passed child of any type.
1104
- * @param {*} parentType node's parent's type.
1105
- */
1106
-
1107
-
1108
- function validateChildKeys(node, parentType) {
1109
- {
1110
- if (typeof node !== 'object') {
1111
- return;
1112
- }
1113
-
1114
- if (isArray(node)) {
1115
- for (var i = 0; i < node.length; i++) {
1116
- var child = node[i];
1117
-
1118
- if (isValidElement(child)) {
1119
- validateExplicitKey(child, parentType);
1120
- }
1121
- }
1122
- } else if (isValidElement(node)) {
1123
- // This element was passed in a valid location.
1124
- if (node._store) {
1125
- node._store.validated = true;
1126
- }
1127
- } else if (node) {
1128
- var iteratorFn = getIteratorFn(node);
1129
-
1130
- if (typeof iteratorFn === 'function') {
1131
- // Entry iterators used to provide implicit keys,
1132
- // but now we print a separate warning for them later.
1133
- if (iteratorFn !== node.entries) {
1134
- var iterator = iteratorFn.call(node);
1135
- var step;
1136
-
1137
- while (!(step = iterator.next()).done) {
1138
- if (isValidElement(step.value)) {
1139
- validateExplicitKey(step.value, parentType);
1140
- }
1141
- }
1142
- }
1143
- }
1144
- }
1145
- }
1146
- }
1147
- /**
1148
- * Given an element, validate that its props follow the propTypes definition,
1149
- * provided by the type.
1150
- *
1151
- * @param {ReactElement} element
1152
- */
1153
-
1154
-
1155
- function validatePropTypes(element) {
1156
- {
1157
- var type = element.type;
1158
-
1159
- if (type === null || type === undefined || typeof type === 'string') {
1160
- return;
1161
- }
1162
-
1163
- var propTypes;
1164
-
1165
- if (typeof type === 'function') {
1166
- propTypes = type.propTypes;
1167
- } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1168
- // Inner props are checked in the reconciler.
1169
- type.$$typeof === REACT_MEMO_TYPE)) {
1170
- propTypes = type.propTypes;
1171
- } else {
1172
- return;
1173
- }
1174
-
1175
- if (propTypes) {
1176
- // Intentionally inside to avoid triggering lazy initializers:
1177
- var name = getComponentNameFromType(type);
1178
- checkPropTypes(propTypes, element.props, 'prop', name, element);
1179
- } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
1180
- propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
1181
-
1182
- var _name = getComponentNameFromType(type);
1183
-
1184
- error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
1185
- }
1186
-
1187
- if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
1188
- error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
1189
- }
1190
- }
1191
- }
1192
- /**
1193
- * Given a fragment, validate that it can only be provided with fragment props
1194
- * @param {ReactElement} fragment
1195
- */
1196
-
1197
-
1198
- function validateFragmentProps(fragment) {
1199
- {
1200
- var keys = Object.keys(fragment.props);
1201
-
1202
- for (var i = 0; i < keys.length; i++) {
1203
- var key = keys[i];
1204
-
1205
- if (key !== 'children' && key !== 'key') {
1206
- setCurrentlyValidatingElement$1(fragment);
1207
-
1208
- error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
1209
-
1210
- setCurrentlyValidatingElement$1(null);
1211
- break;
1212
- }
1213
- }
1214
-
1215
- if (fragment.ref !== null) {
1216
- setCurrentlyValidatingElement$1(fragment);
1217
-
1218
- error('Invalid attribute `ref` supplied to `React.Fragment`.');
1219
-
1220
- setCurrentlyValidatingElement$1(null);
1221
- }
1222
- }
1223
- }
1224
-
1225
- var didWarnAboutKeySpread = {};
1226
- function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
1227
- {
1228
- var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
1229
- // succeed and there will likely be errors in render.
1230
-
1231
- if (!validType) {
1232
- var info = '';
1233
-
1234
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
1235
- info += ' You likely forgot to export your component from the file ' + "it's defined in, or you might have mixed up default and named imports.";
1236
- }
1237
-
1238
- var sourceInfo = getSourceInfoErrorAddendum(source);
1239
-
1240
- if (sourceInfo) {
1241
- info += sourceInfo;
1242
- } else {
1243
- info += getDeclarationErrorAddendum();
1244
- }
1245
-
1246
- var typeString;
1247
-
1248
- if (type === null) {
1249
- typeString = 'null';
1250
- } else if (isArray(type)) {
1251
- typeString = 'array';
1252
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
1253
- typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
1254
- info = ' Did you accidentally export a JSX literal instead of a component?';
1255
- } else {
1256
- typeString = typeof type;
1257
- }
1258
-
1259
- error('React.jsx: type is invalid -- expected a string (for ' + 'built-in components) or a class/function (for composite ' + 'components) but got: %s.%s', typeString, info);
1260
- }
1261
-
1262
- var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
1263
- // TODO: Drop this when these are no longer allowed as the type argument.
1264
-
1265
- if (element == null) {
1266
- return element;
1267
- } // Skip key warning if the type isn't valid since our key validation logic
1268
- // doesn't expect a non-string/function type and can throw confusing errors.
1269
- // We don't want exception behavior to differ between dev and prod.
1270
- // (Rendering will throw with a helpful message and as soon as the type is
1271
- // fixed, the key warnings will appear.)
1272
-
1273
-
1274
- if (validType) {
1275
- var children = props.children;
1276
-
1277
- if (children !== undefined) {
1278
- if (isStaticChildren) {
1279
- if (isArray(children)) {
1280
- for (var i = 0; i < children.length; i++) {
1281
- validateChildKeys(children[i], type);
1282
- }
1283
-
1284
- if (Object.freeze) {
1285
- Object.freeze(children);
1286
- }
1287
- } else {
1288
- error('React.jsx: Static children should always be an array. ' + 'You are likely explicitly calling React.jsxs or React.jsxDEV. ' + 'Use the Babel transform instead.');
1289
- }
1290
- } else {
1291
- validateChildKeys(children, type);
1292
- }
1293
- }
1294
- }
1295
-
1296
- {
1297
- if (hasOwnProperty.call(props, 'key')) {
1298
- var componentName = getComponentNameFromType(type);
1299
- var keys = Object.keys(props).filter(function (k) {
1300
- return k !== 'key';
1301
- });
1302
- var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
1303
-
1304
- if (!didWarnAboutKeySpread[componentName + beforeExample]) {
1305
- var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
1306
-
1307
- error('A props object containing a "key" prop is being spread into JSX:\n' + ' let props = %s;\n' + ' <%s {...props} />\n' + 'React keys must be passed directly to JSX without using spread:\n' + ' let props = %s;\n' + ' <%s key={someKey} {...props} />', beforeExample, componentName, afterExample, componentName);
1308
-
1309
- didWarnAboutKeySpread[componentName + beforeExample] = true;
1310
- }
1311
- }
1312
- }
1313
-
1314
- if (type === REACT_FRAGMENT_TYPE) {
1315
- validateFragmentProps(element);
1316
- } else {
1317
- validatePropTypes(element);
1318
- }
1319
-
1320
- return element;
1321
- }
1322
- } // These two functions exist to still get child warnings in dev
1323
- // even with the prod transform. This means that jsxDEV is purely
1324
- // opt-in behavior for better messages but that we won't stop
1325
- // giving you warnings if you use production apis.
1326
-
1327
- function jsxWithValidationStatic(type, props, key) {
1328
- {
1329
- return jsxWithValidation(type, props, key, true);
1330
- }
1331
- }
1332
- function jsxWithValidationDynamic(type, props, key) {
1333
- {
1334
- return jsxWithValidation(type, props, key, false);
1335
- }
1336
- }
1337
-
1338
- var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
1339
- // for now we can ship identical prod functions
1340
-
1341
- var jsxs = jsxWithValidationStatic ;
1342
-
1343
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
1344
- reactJsxRuntime_development.jsx = jsx;
1345
- reactJsxRuntime_development.jsxs = jsxs;
1346
- })();
1347
- }
1348
- return reactJsxRuntime_development;
1349
- }
1350
-
1351
- var reactJsxRuntime_production_min = {};
1352
-
1353
- /**
1354
- * @license React
1355
- * react-jsx-runtime.production.min.js
1356
- *
1357
- * Copyright (c) Facebook, Inc. and its affiliates.
1358
- *
1359
- * This source code is licensed under the MIT license found in the
1360
- * LICENSE file in the root directory of this source tree.
1361
- */
1362
-
1363
- var hasRequiredReactJsxRuntime_production_min;
1364
-
1365
- function requireReactJsxRuntime_production_min () {
1366
- if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
1367
- hasRequiredReactJsxRuntime_production_min = 1;
1368
- var f=require$$0,k=Symbol.for("react.element"),l=Symbol.for("react.fragment"),m=Object.prototype.hasOwnProperty,n=f.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,p={key:!0,ref:!0,__self:!0,__source:!0};
1369
- function q(c,a,g){var b,d={},e=null,h=null;void 0!==g&&(e=""+g);void 0!==a.key&&(e=""+a.key);void 0!==a.ref&&(h=a.ref);for(b in a)m.call(a,b)&&!p.hasOwnProperty(b)&&(d[b]=a[b]);if(c&&c.defaultProps)for(b in a=c.defaultProps,a)void 0===d[b]&&(d[b]=a[b]);return {$$typeof:k,type:c,key:e,ref:h,props:d,_owner:n.current}}reactJsxRuntime_production_min.Fragment=l;reactJsxRuntime_production_min.jsx=q;reactJsxRuntime_production_min.jsxs=q;
1370
- return reactJsxRuntime_production_min;
1371
- }
1372
-
1373
- if (process.env.NODE_ENV === 'production') {
1374
- jsxRuntime.exports = requireReactJsxRuntime_production_min();
1375
- } else {
1376
- jsxRuntime.exports = requireReactJsxRuntime_development();
1377
- }
1378
-
1379
- var jsxRuntimeExports = jsxRuntime.exports;
1380
-
1381
9
  const buttonVariants = {
1382
10
  primary: 'mlz-btn-primary',
1383
11
  secondary: 'mlz-btn-secondary',
@@ -1394,10 +22,10 @@ const Button = ({ children, variant = 'primary', size = 'md', disabled = false,
1394
22
  const variantClasses = buttonVariants[variant];
1395
23
  const sizeClasses = buttonSizes[size];
1396
24
  const classes = `${baseClasses} ${variantClasses} ${sizeClasses} ${className}`.trim();
1397
- return (jsxRuntimeExports.jsx("button", { type: type, className: classes, disabled: disabled, onClick: onClick, ...props, children: children }));
25
+ return (jsxRuntime.jsx("button", { type: type, className: classes, disabled: disabled, onClick: onClick, ...props, children: children }));
1398
26
  };
1399
27
 
1400
- const CheckIcon = (props) => (jsxRuntimeExports.jsx("svg", { width: "12", height: "10", viewBox: "0 0 12 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: jsxRuntimeExports.jsx("path", { d: "M4 9.4L0 5.4L1.4 4L4 6.6L10.6 0L12 1.4L4 9.4Z", fill: "#2ABB5B" }) }));
28
+ const CheckIcon = (props) => (jsxRuntime.jsx("svg", { width: "12", height: "10", viewBox: "0 0 12 10", fill: "none", xmlns: "http://www.w3.org/2000/svg", children: jsxRuntime.jsx("path", { d: "M4 9.4L0 5.4L1.4 4L4 6.6L10.6 0L12 1.4L4 9.4Z", fill: "#2ABB5B" }) }));
1401
29
 
1402
30
  const inputClasses = (hasError, fullWidth) => {
1403
31
  const colorClass = hasError ? "semantic-error-600" : "primary-600";
@@ -1422,16 +50,52 @@ const inputClasses = (hasError, fullWidth) => {
1422
50
  };
1423
51
  const Input = ({ labelProps, helperTextProps, containerProps, errorText, helperText, hasError = false, disabled, label, placeholder, fullWidth, checkedIcon, ...props }) => {
1424
52
  const classes = inputClasses(hasError, fullWidth);
1425
- return (jsxRuntimeExports.jsxs("div", { className: classes.containerStyle, children: [jsxRuntimeExports.jsx("label", { ...labelProps, className: classes.labelStyle, children: label }), jsxRuntimeExports.jsx("input", { ...props, disabled: disabled, placeholder: placeholder, className: classes.inputStyle }), checkedIcon && (jsxRuntimeExports.jsx("div", { className: "absolute right-4 top-1/2 -translate-y-1/2", children: jsxRuntimeExports.jsx(CheckIcon, {}) })), jsxRuntimeExports.jsx("p", { ...helperTextProps, className: classes.helperTextStyle, children: errorText ? errorText : helperText })] }));
53
+ return (jsxRuntime.jsxs("div", { className: classes.containerStyle, children: [jsxRuntime.jsx("label", { ...labelProps, className: classes.labelStyle, children: label }), jsxRuntime.jsx("input", { ...props, disabled: disabled, placeholder: placeholder, className: classes.inputStyle }), checkedIcon && (jsxRuntime.jsx("div", { className: "absolute right-4 top-1/2 -translate-y-1/2", children: jsxRuntime.jsx(CheckIcon, {}) })), jsxRuntime.jsx("p", { ...helperTextProps, className: classes.helperTextStyle, children: errorText ? errorText : helperText })] }));
54
+ };
55
+
56
+ const textAreaClasses = (hasError, fullWidth) => {
57
+ const labelColorClass = hasError ? "mlz-error-color" : "text-primary-600";
58
+ const borderClass = hasError ? "mlz-error-border" : "border-primary-400";
59
+ const textColorClass = hasError ? "mlz-error-color" : "text-primary-600";
60
+ const focusBorderClass = hasError ? "focus:border-semantic-error-600" : "focus:border-primary-600";
61
+ const focusRingClass = hasError ? "focus:ring-semantic-error-600" : "focus:ring-primary-600";
62
+ const activeBorderClass = hasError ? "active:border-semantic-error-600" : "active:border-primary-600";
63
+ const placeholderClass = hasError ? "placeholder:text-semantic-error-600" : "placeholder:text-primary-400";
64
+ return {
65
+ containerStyle: "flex flex-col relative gap-1" + (fullWidth ? " w-full" : ""),
66
+ labelStyle: `mlz-label-textarea block ${labelColorClass}`,
67
+ textAreaStyle: [
68
+ "disabled:bg-primary-100 disabled:cursor-not-allowed disabled:text-primary-300",
69
+ "text-primary-600",
70
+ "block w-full border border-solid",
71
+ "rounded-[4px]",
72
+ "px-4 py-2",
73
+ "placeholder:text-base",
74
+ "focus:outline-none focus:ring-2",
75
+ "active:ring-2",
76
+ "resize-y",
77
+ "min-w-[498px] min-h-[123px]",
78
+ borderClass,
79
+ placeholderClass,
80
+ focusBorderClass,
81
+ focusRingClass,
82
+ activeBorderClass,
83
+ ].join(" "),
84
+ helperTextStyle: `mt-1 text-base ${textColorClass}`,
85
+ };
86
+ };
87
+ const TextArea = ({ labelProps, helperTextProps, containerProps, errorText, helperText, hasError = false, disabled, label, placeholder, fullWidth, ...props }) => {
88
+ const classes = textAreaClasses(hasError, fullWidth);
89
+ return (jsxRuntime.jsxs("div", { ...containerProps, className: classes.containerStyle, children: [jsxRuntime.jsx("label", { ...labelProps, className: classes.labelStyle, children: label }), jsxRuntime.jsx("textarea", { ...props, disabled: disabled, placeholder: placeholder, className: classes.textAreaStyle }), jsxRuntime.jsx("p", { ...helperTextProps, className: classes.helperTextStyle, children: errorText ? errorText : helperText })] }));
1426
90
  };
1427
91
 
1428
- const CheckCircleIcon = (props) => (jsxRuntimeExports.jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: jsxRuntimeExports.jsx("path", { d: "M8.6 14.6L15.65 7.55L14.25 6.15L8.6 11.8L5.75 8.95L4.35 10.35L8.6 14.6ZM10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20ZM10 18C12.2333 18 14.125 17.225 15.675 15.675C17.225 14.125 18 12.2333 18 10C18 7.76667 17.225 5.875 15.675 4.325C14.125 2.775 12.2333 2 10 2C7.76667 2 5.875 2.775 4.325 4.325C2.775 5.875 2 7.76667 2 10C2 12.2333 2.775 14.125 4.325 15.675C5.875 17.225 7.76667 18 10 18Z", fill: "currentColor" }) }));
92
+ const CheckCircleIcon = (props) => (jsxRuntime.jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: jsxRuntime.jsx("path", { d: "M8.6 14.6L15.65 7.55L14.25 6.15L8.6 11.8L5.75 8.95L4.35 10.35L8.6 14.6ZM10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20ZM10 18C12.2333 18 14.125 17.225 15.675 15.675C17.225 14.125 18 12.2333 18 10C18 7.76667 17.225 5.875 15.675 4.325C14.125 2.775 12.2333 2 10 2C7.76667 2 5.875 2.775 4.325 4.325C2.775 5.875 2 7.76667 2 10C2 12.2333 2.775 14.125 4.325 15.675C5.875 17.225 7.76667 18 10 18Z", fill: "currentColor" }) }));
1429
93
 
1430
- const ErrorCircleIcon = (props) => (jsxRuntimeExports.jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [jsxRuntimeExports.jsx("circle", { cx: "10", cy: "10", r: "10", fill: "currentColor" }), jsxRuntimeExports.jsx("path", { d: "M7 7L13 13M13 7L7 13", stroke: "white", strokeWidth: "2", strokeLinecap: "round" })] }));
94
+ const ErrorCircleIcon = (props) => (jsxRuntime.jsxs("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: [jsxRuntime.jsx("circle", { cx: "10", cy: "10", r: "10", fill: "currentColor" }), jsxRuntime.jsx("path", { d: "M7 7L13 13M13 7L7 13", stroke: "white", strokeWidth: "2", strokeLinecap: "round" })] }));
1431
95
 
1432
- const InfoCircleIcon = (props) => (jsxRuntimeExports.jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: jsxRuntimeExports.jsx("path", { d: "M10 15C10.2833 15 10.5208 14.9042 10.7125 14.7125C10.9042 14.5208 11 14.2833 11 14C11 13.7167 10.9042 13.4792 10.7125 13.2875C10.5208 13.0958 10.2833 13 10 13C9.71667 13 9.47917 13.0958 9.2875 13.2875C9.09583 13.4792 9 13.7167 9 14C9 14.2833 9.09583 14.5208 9.2875 14.7125C9.47917 14.9042 9.71667 15 10 15ZM9 11H11V5H9V11ZM10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20ZM10 18C12.2333 18 14.125 17.225 15.675 15.675C17.225 14.125 18 12.2333 18 10C18 7.76667 17.225 5.875 15.675 4.325C14.125 2.775 12.2333 2 10 2C7.76667 2 5.875 2.775 4.325 4.325C2.775 5.875 2 7.76667 2 10C2 12.2333 2.775 14.125 4.325 15.675C5.875 17.225 7.76667 18 10 18Z", fill: "currentColor" }) }));
96
+ const InfoCircleIcon = (props) => (jsxRuntime.jsx("svg", { width: "20", height: "20", viewBox: "0 0 20 20", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: jsxRuntime.jsx("path", { d: "M10 15C10.2833 15 10.5208 14.9042 10.7125 14.7125C10.9042 14.5208 11 14.2833 11 14C11 13.7167 10.9042 13.4792 10.7125 13.2875C10.5208 13.0958 10.2833 13 10 13C9.71667 13 9.47917 13.0958 9.2875 13.2875C9.09583 13.4792 9 13.7167 9 14C9 14.2833 9.09583 14.5208 9.2875 14.7125C9.47917 14.9042 9.71667 15 10 15ZM9 11H11V5H9V11ZM10 20C8.61667 20 7.31667 19.7375 6.1 19.2125C4.88333 18.6875 3.825 17.975 2.925 17.075C2.025 16.175 1.3125 15.1167 0.7875 13.9C0.2625 12.6833 0 11.3833 0 10C0 8.61667 0.2625 7.31667 0.7875 6.1C1.3125 4.88333 2.025 3.825 2.925 2.925C3.825 2.025 4.88333 1.3125 6.1 0.7875C7.31667 0.2625 8.61667 0 10 0C11.3833 0 12.6833 0.2625 13.9 0.7875C15.1167 1.3125 16.175 2.025 17.075 2.925C17.975 3.825 18.6875 4.88333 19.2125 6.1C19.7375 7.31667 20 8.61667 20 10C20 11.3833 19.7375 12.6833 19.2125 13.9C18.6875 15.1167 17.975 16.175 17.075 17.075C16.175 17.975 15.1167 18.6875 13.9 19.2125C12.6833 19.7375 11.3833 20 10 20ZM10 18C12.2333 18 14.125 17.225 15.675 15.675C17.225 14.125 18 12.2333 18 10C18 7.76667 17.225 5.875 15.675 4.325C14.125 2.775 12.2333 2 10 2C7.76667 2 5.875 2.775 4.325 4.325C2.775 5.875 2 7.76667 2 10C2 12.2333 2.775 14.125 4.325 15.675C5.875 17.225 7.76667 18 10 18Z", fill: "currentColor" }) }));
1433
97
 
1434
- const WarningTriangleIcon = (props) => (jsxRuntimeExports.jsx("svg", { width: "22", height: "19", viewBox: "0 0 22 19", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: jsxRuntimeExports.jsx("path", { d: "M0 19L11 0L22 19H0ZM3.45 17H18.55L11 4L3.45 17ZM11 16C11.2833 16 11.5208 15.9042 11.7125 15.7125C11.9042 15.5208 12 15.2833 12 15C12 14.7167 11.9042 14.4792 11.7125 14.2875C11.5208 14.0958 11.2833 14 11 14C10.7167 14 10.4792 14.0958 10.2875 14.2875C10.0958 14.4792 10 14.7167 10 15C10 15.2833 10.0958 15.5208 10.2875 15.7125C10.4792 15.9042 10.7167 16 11 16ZM10 13H12V8H10V13Z", fill: "currentColor" }) }));
98
+ const WarningTriangleIcon = (props) => (jsxRuntime.jsx("svg", { width: "22", height: "19", viewBox: "0 0 22 19", fill: "none", xmlns: "http://www.w3.org/2000/svg", ...props, children: jsxRuntime.jsx("path", { d: "M0 19L11 0L22 19H0ZM3.45 17H18.55L11 4L3.45 17ZM11 16C11.2833 16 11.5208 15.9042 11.7125 15.7125C11.9042 15.5208 12 15.2833 12 15C12 14.7167 11.9042 14.4792 11.7125 14.2875C11.5208 14.0958 11.2833 14 11 14C10.7167 14 10.4792 14.0958 10.2875 14.2875C10.0958 14.4792 10 14.7167 10 15C10 15.2833 10.0958 15.5208 10.2875 15.7125C10.4792 15.9042 10.7167 16 11 16ZM10 13H12V8H10V13Z", fill: "currentColor" }) }));
1435
99
 
1436
100
  const toastClasses$1 = (variant) => {
1437
101
  const variants = {
@@ -1473,7 +137,7 @@ const toastClasses$1 = (variant) => {
1473
137
  const Toast = ({ title, description, variant = "info", onClose, }) => {
1474
138
  const classes = toastClasses$1(variant);
1475
139
  const IconComponent = classes.iconComponent;
1476
- return (jsxRuntimeExports.jsxs("div", { className: [
140
+ return (jsxRuntime.jsxs("div", { className: [
1477
141
  "flex items-start",
1478
142
  "w-[400px] min-h-[88px]",
1479
143
  "rounded-lg",
@@ -1483,39 +147,39 @@ const Toast = ({ title, description, variant = "info", onClose, }) => {
1483
147
  "shadow-[0px_3px_6px_0px_rgba(0,0,0,0.16)]",
1484
148
  classes.bg,
1485
149
  classes.border,
1486
- ].join(" "), children: [jsxRuntimeExports.jsx("div", { className: [
150
+ ].join(" "), children: [jsxRuntime.jsx("div", { className: [
1487
151
  "flex items-center justify-center",
1488
152
  "w-10 h-10",
1489
153
  "rounded-lg",
1490
154
  "p-2",
1491
155
  "flex-none",
1492
156
  classes.iconBg,
1493
- ].join(" "), children: jsxRuntimeExports.jsx("div", { className: classes.icon, children: jsxRuntimeExports.jsx(IconComponent, {}) }) }), jsxRuntimeExports.jsxs("div", { className: "flex-1 flex flex-col gap-2", children: [jsxRuntimeExports.jsx("div", { className: [
157
+ ].join(" "), children: jsxRuntime.jsx("div", { className: classes.icon, children: jsxRuntime.jsx(IconComponent, {}) }) }), jsxRuntime.jsxs("div", { className: "flex-1 flex flex-col gap-2", children: [jsxRuntime.jsx("div", { className: [
1494
158
  "font-bold",
1495
159
  "text-[20px]",
1496
160
  "leading-[100%]",
1497
161
  "tracking-normal",
1498
162
  classes.text,
1499
- ].join(" "), children: title }), description && (jsxRuntimeExports.jsx("div", { className: [
163
+ ].join(" "), children: title }), description && (jsxRuntime.jsx("div", { className: [
1500
164
  "font-normal",
1501
165
  "text-[18px]",
1502
166
  "leading-[100%]",
1503
167
  "tracking-normal",
1504
168
  classes.text,
1505
- ].join(" "), children: description }))] }), onClose && (jsxRuntimeExports.jsx("button", { type: "button", onClick: onClose, className: "text-gray-400 hover:text-gray-600", "aria-label": "Cerrar", children: "\u00D7" }))] }));
169
+ ].join(" "), children: description }))] }), onClose && (jsxRuntime.jsx("button", { type: "button", onClick: onClose, className: "text-gray-400 hover:text-gray-600", "aria-label": "Cerrar", children: "\u00D7" }))] }));
1506
170
  };
1507
171
 
1508
- const ToastContext = require$$0.createContext(undefined);
172
+ const ToastContext = react.createContext(undefined);
1509
173
  const useToast = () => {
1510
- const context = require$$0.useContext(ToastContext);
174
+ const context = react.useContext(ToastContext);
1511
175
  if (!context) {
1512
176
  throw new Error("useToast must be used within a ToastProvider");
1513
177
  }
1514
178
  return context;
1515
179
  };
1516
180
  const ToastProvider = ({ children, position = "top-right", }) => {
1517
- const [toasts, setToasts] = require$$0.useState([]);
1518
- const showToast = require$$0.useCallback((toast) => {
181
+ const [toasts, setToasts] = react.useState([]);
182
+ const showToast = react.useCallback((toast) => {
1519
183
  const id = Math.random().toString(36).substring(2, 9);
1520
184
  const newToast = {
1521
185
  ...toast,
@@ -1530,10 +194,10 @@ const ToastProvider = ({ children, position = "top-right", }) => {
1530
194
  }
1531
195
  return id;
1532
196
  }, []);
1533
- const removeToast = require$$0.useCallback((id) => {
197
+ const removeToast = react.useCallback((id) => {
1534
198
  setToasts((prev) => prev.filter((t) => t.id !== id));
1535
199
  }, []);
1536
- const clearToasts = require$$0.useCallback(() => {
200
+ const clearToasts = react.useCallback(() => {
1537
201
  setToasts([]);
1538
202
  }, []);
1539
203
  const positionClasses = {
@@ -1544,7 +208,7 @@ const ToastProvider = ({ children, position = "top-right", }) => {
1544
208
  "top-center": "top-4 left-1/2 -translate-x-1/2",
1545
209
  "bottom-center": "bottom-4 left-1/2 -translate-x-1/2",
1546
210
  };
1547
- return (jsxRuntimeExports.jsxs(ToastContext.Provider, { value: { toasts, showToast, removeToast, clearToasts }, children: [children, toasts.length > 0 && (jsxRuntimeExports.jsx("div", { className: `fixed z-50 flex flex-col gap-2 ${positionClasses[position]}`, children: toasts.map((toast) => (jsxRuntimeExports.jsx(Toast, { ...toast, onClose: () => removeToast(toast.id) }, toast.id))) }))] }));
211
+ return (jsxRuntime.jsxs(ToastContext.Provider, { value: { toasts, showToast, removeToast, clearToasts }, children: [children, toasts.length > 0 && (jsxRuntime.jsx("div", { className: `fixed z-50 flex flex-col gap-2 ${positionClasses[position]}`, children: toasts.map((toast) => (jsxRuntime.jsx(Toast, { ...toast, onClose: () => removeToast(toast.id) }, toast.id))) }))] }));
1548
212
  };
1549
213
 
1550
214
  const toastClasses = (variant) => {
@@ -1587,7 +251,7 @@ const toastClasses = (variant) => {
1587
251
  const CustomToast = ({ t, title, description, variant = "info" }) => {
1588
252
  const classes = toastClasses(variant);
1589
253
  const IconComponent = classes.iconComponent;
1590
- return (jsxRuntimeExports.jsxs("div", { className: [
254
+ return (jsxRuntime.jsxs("div", { className: [
1591
255
  "flex items-start",
1592
256
  "w-[400px] min-h-[88px]",
1593
257
  "rounded-lg",
@@ -1597,29 +261,29 @@ const CustomToast = ({ t, title, description, variant = "info" }) => {
1597
261
  "shadow-[0px_3px_6px_0px_rgba(0,0,0,0.16)]",
1598
262
  classes.bg,
1599
263
  classes.border,
1600
- ].join(" "), children: [jsxRuntimeExports.jsx("div", { className: [
264
+ ].join(" "), children: [jsxRuntime.jsx("div", { className: [
1601
265
  "flex items-center justify-center",
1602
266
  "w-10 h-10",
1603
267
  "rounded-lg",
1604
268
  "p-2",
1605
269
  "flex-none",
1606
270
  classes.iconBg,
1607
- ].join(" "), children: jsxRuntimeExports.jsx("div", { className: classes.icon, children: jsxRuntimeExports.jsx(IconComponent, {}) }) }), jsxRuntimeExports.jsxs("div", { className: "flex-1 flex flex-col gap-2", children: [jsxRuntimeExports.jsx("div", { className: [
271
+ ].join(" "), children: jsxRuntime.jsx("div", { className: classes.icon, children: jsxRuntime.jsx(IconComponent, {}) }) }), jsxRuntime.jsxs("div", { className: "flex-1 flex flex-col gap-2", children: [jsxRuntime.jsx("div", { className: [
1608
272
  "font-bold",
1609
273
  "text-[20px]",
1610
274
  "leading-[100%]",
1611
275
  "tracking-normal",
1612
276
  classes.text,
1613
- ].join(" "), children: title }), description && (jsxRuntimeExports.jsx("div", { className: [
277
+ ].join(" "), children: title }), description && (jsxRuntime.jsx("div", { className: [
1614
278
  "font-normal",
1615
279
  "text-[18px]",
1616
280
  "leading-[100%]",
1617
281
  "tracking-normal",
1618
282
  classes.text,
1619
- ].join(" "), children: description }))] }), jsxRuntimeExports.jsx("button", { type: "button", onClick: () => toast.dismiss(t.id), className: "text-gray-400 hover:text-gray-600", "aria-label": "Cerrar", children: "\u00D7" })] }));
283
+ ].join(" "), children: description }))] }), jsxRuntime.jsx("button", { type: "button", onClick: () => toast.dismiss(t.id), className: "text-gray-400 hover:text-gray-600", "aria-label": "Cerrar", children: "\u00D7" })] }));
1620
284
  };
1621
285
  const showToast = ({ title, description, variant = "info", duration = 5000, }) => {
1622
- return toast.custom((t) => (jsxRuntimeExports.jsx(CustomToast, { t: t, title: title, description: description, variant: variant })), {
286
+ return toast.custom((t) => (jsxRuntime.jsx(CustomToast, { t: t, title: title, description: description, variant: variant })), {
1623
287
  duration,
1624
288
  position: "top-right",
1625
289
  });
@@ -1630,19 +294,20 @@ const toastWarning = (title, description, duration) => showToast({ title, descri
1630
294
  const toastError = (title, description, duration) => showToast({ title, description, variant: "error", duration });
1631
295
 
1632
296
  function UserCard({ name, email, changeUser, editUser }) {
1633
- return (jsxRuntimeExports.jsxs("div", { children: [jsxRuntimeExports.jsx("h2", { children: name }), jsxRuntimeExports.jsx("p", { children: email }), jsxRuntimeExports.jsx("button", { type: "button", onClick: changeUser, children: "Change User" }), jsxRuntimeExports.jsx("button", { type: "button", onClick: editUser, children: "Edit User" })] }));
297
+ return (jsxRuntime.jsxs("div", { children: [jsxRuntime.jsx("h2", { children: name }), jsxRuntime.jsx("p", { children: email }), jsxRuntime.jsx("button", { type: "button", onClick: changeUser, children: "Change User" }), jsxRuntime.jsx("button", { type: "button", onClick: editUser, children: "Edit User" })] }));
1634
298
  }
1635
299
 
1636
300
  Object.defineProperty(exports, "Toaster", {
1637
- enumerable: true,
1638
- get: function () { return toast.Toaster; }
301
+ enumerable: true,
302
+ get: function () { return toast.Toaster; }
1639
303
  });
1640
304
  Object.defineProperty(exports, "toast", {
1641
- enumerable: true,
1642
- get: function () { return toast.toast; }
305
+ enumerable: true,
306
+ get: function () { return toast.toast; }
1643
307
  });
1644
308
  exports.Button = Button;
1645
309
  exports.Input = Input;
310
+ exports.TextArea = TextArea;
1646
311
  exports.Toast = Toast;
1647
312
  exports.ToastProvider = ToastProvider;
1648
313
  exports.UserCard = UserCard;