biggerui 1.0.2 → 1.0.3

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.
@@ -2,1391 +2,29 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
+ const jsxRuntime = require('react/jsx-runtime');
5
6
  const React = require('react');
6
7
  const reactDom = require('react-dom');
7
8
 
8
9
  function _interopNamespaceDefault(e) {
9
- const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
10
- if (e) {
11
- for (const k in e) {
12
- if (k !== 'default') {
13
- const d = Object.getOwnPropertyDescriptor(e, k);
14
- Object.defineProperty(n, k, d.get ? d : {
15
- enumerable: true,
16
- get: () => e[k]
17
- });
18
- }
10
+ const n = Object.create(null, { [Symbol.toStringTag]: { value: 'Module' } });
11
+ if (e) {
12
+ for (const k in e) {
13
+ if (k !== 'default') {
14
+ const d = Object.getOwnPropertyDescriptor(e, k);
15
+ Object.defineProperty(n, k, d.get ? d : {
16
+ enumerable: true,
17
+ get: () => e[k]
18
+ });
19
+ }
20
+ }
19
21
  }
20
- }
21
- n.default = e;
22
- return Object.freeze(n);
22
+ n.default = e;
23
+ return Object.freeze(n);
23
24
  }
24
25
 
25
26
  const React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
26
27
 
27
- var jsxRuntime = {exports: {}};
28
-
29
- var reactJsxRuntime_production_min = {};
30
-
31
- /**
32
- * @license React
33
- * react-jsx-runtime.production.min.js
34
- *
35
- * Copyright (c) Facebook, Inc. and its affiliates.
36
- *
37
- * This source code is licensed under the MIT license found in the
38
- * LICENSE file in the root directory of this source tree.
39
- */
40
-
41
- var hasRequiredReactJsxRuntime_production_min;
42
-
43
- function requireReactJsxRuntime_production_min () {
44
- if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
45
- hasRequiredReactJsxRuntime_production_min = 1;
46
- var f=React,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:true,ref:true,__self:true,__source:true};
47
- 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;
48
- return reactJsxRuntime_production_min;
49
- }
50
-
51
- var reactJsxRuntime_development = {};
52
-
53
- /**
54
- * @license React
55
- * react-jsx-runtime.development.js
56
- *
57
- * Copyright (c) Facebook, Inc. and its affiliates.
58
- *
59
- * This source code is licensed under the MIT license found in the
60
- * LICENSE file in the root directory of this source tree.
61
- */
62
-
63
- var hasRequiredReactJsxRuntime_development;
64
-
65
- function requireReactJsxRuntime_development () {
66
- if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
67
- hasRequiredReactJsxRuntime_development = 1;
68
-
69
- if (process.env.NODE_ENV !== "production") {
70
- (function() {
71
-
72
- var React$1 = React;
73
-
74
- // ATTENTION
75
- // When adding new symbols to this file,
76
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
77
- // The Symbol used to tag the ReactElement-like types.
78
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
79
- var REACT_PORTAL_TYPE = Symbol.for('react.portal');
80
- var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
81
- var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
82
- var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
83
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
84
- var REACT_CONTEXT_TYPE = Symbol.for('react.context');
85
- var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
86
- var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
87
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
88
- var REACT_MEMO_TYPE = Symbol.for('react.memo');
89
- var REACT_LAZY_TYPE = Symbol.for('react.lazy');
90
- var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
91
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
92
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
93
- function getIteratorFn(maybeIterable) {
94
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
95
- return null;
96
- }
97
-
98
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
99
-
100
- if (typeof maybeIterator === 'function') {
101
- return maybeIterator;
102
- }
103
-
104
- return null;
105
- }
106
-
107
- var ReactSharedInternals = React$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
108
-
109
- function error(format) {
110
- {
111
- {
112
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
113
- args[_key2 - 1] = arguments[_key2];
114
- }
115
-
116
- printWarning('error', format, args);
117
- }
118
- }
119
- }
120
-
121
- function printWarning(level, format, args) {
122
- // When changing this logic, you might want to also
123
- // update consoleWithStackDev.www.js as well.
124
- {
125
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
126
- var stack = ReactDebugCurrentFrame.getStackAddendum();
127
-
128
- if (stack !== '') {
129
- format += '%s';
130
- args = args.concat([stack]);
131
- } // eslint-disable-next-line react-internal/safe-string-coercion
132
-
133
-
134
- var argsWithFormat = args.map(function (item) {
135
- return String(item);
136
- }); // Careful: RN currently depends on this prefix
137
-
138
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
139
- // breaks IE9: https://github.com/facebook/react/issues/13610
140
- // eslint-disable-next-line react-internal/no-production-logging
141
-
142
- Function.prototype.apply.call(console[level], console, argsWithFormat);
143
- }
144
- }
145
-
146
- // -----------------------------------------------------------------------------
147
-
148
- var enableScopeAPI = false; // Experimental Create Event Handle API.
149
- var enableCacheElement = false;
150
- var enableTransitionTracing = false; // No known bugs, but needs performance testing
151
-
152
- var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
153
- // stuff. Intended to enable React core members to more easily debug scheduling
154
- // issues in DEV builds.
155
-
156
- var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
157
-
158
- var REACT_MODULE_REFERENCE;
159
-
160
- {
161
- REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
162
- }
163
-
164
- function isValidElementType(type) {
165
- if (typeof type === 'string' || typeof type === 'function') {
166
- return true;
167
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
168
-
169
-
170
- 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 ) {
171
- return true;
172
- }
173
-
174
- if (typeof type === 'object' && type !== null) {
175
- 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
176
- // types supported by any Flight configuration anywhere since
177
- // we don't know which Flight build this will end up being used
178
- // with.
179
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
180
- return true;
181
- }
182
- }
183
-
184
- return false;
185
- }
186
-
187
- function getWrappedName(outerType, innerType, wrapperName) {
188
- var displayName = outerType.displayName;
189
-
190
- if (displayName) {
191
- return displayName;
192
- }
193
-
194
- var functionName = innerType.displayName || innerType.name || '';
195
- return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
196
- } // Keep in sync with react-reconciler/getComponentNameFromFiber
197
-
198
-
199
- function getContextName(type) {
200
- return type.displayName || 'Context';
201
- } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
202
-
203
-
204
- function getComponentNameFromType(type) {
205
- if (type == null) {
206
- // Host root, text node or just invalid type.
207
- return null;
208
- }
209
-
210
- {
211
- if (typeof type.tag === 'number') {
212
- error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
213
- }
214
- }
215
-
216
- if (typeof type === 'function') {
217
- return type.displayName || type.name || null;
218
- }
219
-
220
- if (typeof type === 'string') {
221
- return type;
222
- }
223
-
224
- switch (type) {
225
- case REACT_FRAGMENT_TYPE:
226
- return 'Fragment';
227
-
228
- case REACT_PORTAL_TYPE:
229
- return 'Portal';
230
-
231
- case REACT_PROFILER_TYPE:
232
- return 'Profiler';
233
-
234
- case REACT_STRICT_MODE_TYPE:
235
- return 'StrictMode';
236
-
237
- case REACT_SUSPENSE_TYPE:
238
- return 'Suspense';
239
-
240
- case REACT_SUSPENSE_LIST_TYPE:
241
- return 'SuspenseList';
242
-
243
- }
244
-
245
- if (typeof type === 'object') {
246
- switch (type.$$typeof) {
247
- case REACT_CONTEXT_TYPE:
248
- var context = type;
249
- return getContextName(context) + '.Consumer';
250
-
251
- case REACT_PROVIDER_TYPE:
252
- var provider = type;
253
- return getContextName(provider._context) + '.Provider';
254
-
255
- case REACT_FORWARD_REF_TYPE:
256
- return getWrappedName(type, type.render, 'ForwardRef');
257
-
258
- case REACT_MEMO_TYPE:
259
- var outerName = type.displayName || null;
260
-
261
- if (outerName !== null) {
262
- return outerName;
263
- }
264
-
265
- return getComponentNameFromType(type.type) || 'Memo';
266
-
267
- case REACT_LAZY_TYPE:
268
- {
269
- var lazyComponent = type;
270
- var payload = lazyComponent._payload;
271
- var init = lazyComponent._init;
272
-
273
- try {
274
- return getComponentNameFromType(init(payload));
275
- } catch (x) {
276
- return null;
277
- }
278
- }
279
-
280
- // eslint-disable-next-line no-fallthrough
281
- }
282
- }
283
-
284
- return null;
285
- }
286
-
287
- var assign = Object.assign;
288
-
289
- // Helpers to patch console.logs to avoid logging during side-effect free
290
- // replaying on render function. This currently only patches the object
291
- // lazily which won't cover if the log function was extracted eagerly.
292
- // We could also eagerly patch the method.
293
- var disabledDepth = 0;
294
- var prevLog;
295
- var prevInfo;
296
- var prevWarn;
297
- var prevError;
298
- var prevGroup;
299
- var prevGroupCollapsed;
300
- var prevGroupEnd;
301
-
302
- function disabledLog() {}
303
-
304
- disabledLog.__reactDisabledLog = true;
305
- function disableLogs() {
306
- {
307
- if (disabledDepth === 0) {
308
- /* eslint-disable react-internal/no-production-logging */
309
- prevLog = console.log;
310
- prevInfo = console.info;
311
- prevWarn = console.warn;
312
- prevError = console.error;
313
- prevGroup = console.group;
314
- prevGroupCollapsed = console.groupCollapsed;
315
- prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
316
-
317
- var props = {
318
- configurable: true,
319
- enumerable: true,
320
- value: disabledLog,
321
- writable: true
322
- }; // $FlowFixMe Flow thinks console is immutable.
323
-
324
- Object.defineProperties(console, {
325
- info: props,
326
- log: props,
327
- warn: props,
328
- error: props,
329
- group: props,
330
- groupCollapsed: props,
331
- groupEnd: props
332
- });
333
- /* eslint-enable react-internal/no-production-logging */
334
- }
335
-
336
- disabledDepth++;
337
- }
338
- }
339
- function reenableLogs() {
340
- {
341
- disabledDepth--;
342
-
343
- if (disabledDepth === 0) {
344
- /* eslint-disable react-internal/no-production-logging */
345
- var props = {
346
- configurable: true,
347
- enumerable: true,
348
- writable: true
349
- }; // $FlowFixMe Flow thinks console is immutable.
350
-
351
- Object.defineProperties(console, {
352
- log: assign({}, props, {
353
- value: prevLog
354
- }),
355
- info: assign({}, props, {
356
- value: prevInfo
357
- }),
358
- warn: assign({}, props, {
359
- value: prevWarn
360
- }),
361
- error: assign({}, props, {
362
- value: prevError
363
- }),
364
- group: assign({}, props, {
365
- value: prevGroup
366
- }),
367
- groupCollapsed: assign({}, props, {
368
- value: prevGroupCollapsed
369
- }),
370
- groupEnd: assign({}, props, {
371
- value: prevGroupEnd
372
- })
373
- });
374
- /* eslint-enable react-internal/no-production-logging */
375
- }
376
-
377
- if (disabledDepth < 0) {
378
- error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
379
- }
380
- }
381
- }
382
-
383
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
384
- var prefix;
385
- function describeBuiltInComponentFrame(name, source, ownerFn) {
386
- {
387
- if (prefix === undefined) {
388
- // Extract the VM specific prefix used by each line.
389
- try {
390
- throw Error();
391
- } catch (x) {
392
- var match = x.stack.trim().match(/\n( *(at )?)/);
393
- prefix = match && match[1] || '';
394
- }
395
- } // We use the prefix to ensure our stacks line up with native stack frames.
396
-
397
-
398
- return '\n' + prefix + name;
399
- }
400
- }
401
- var reentry = false;
402
- var componentFrameCache;
403
-
404
- {
405
- var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
406
- componentFrameCache = new PossiblyWeakMap();
407
- }
408
-
409
- function describeNativeComponentFrame(fn, construct) {
410
- // If something asked for a stack inside a fake render, it should get ignored.
411
- if ( !fn || reentry) {
412
- return '';
413
- }
414
-
415
- {
416
- var frame = componentFrameCache.get(fn);
417
-
418
- if (frame !== undefined) {
419
- return frame;
420
- }
421
- }
422
-
423
- var control;
424
- reentry = true;
425
- var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
426
-
427
- Error.prepareStackTrace = undefined;
428
- var previousDispatcher;
429
-
430
- {
431
- previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
432
- // for warnings.
433
-
434
- ReactCurrentDispatcher.current = null;
435
- disableLogs();
436
- }
437
-
438
- try {
439
- // This should throw.
440
- if (construct) {
441
- // Something should be setting the props in the constructor.
442
- var Fake = function () {
443
- throw Error();
444
- }; // $FlowFixMe
445
-
446
-
447
- Object.defineProperty(Fake.prototype, 'props', {
448
- set: function () {
449
- // We use a throwing setter instead of frozen or non-writable props
450
- // because that won't throw in a non-strict mode function.
451
- throw Error();
452
- }
453
- });
454
-
455
- if (typeof Reflect === 'object' && Reflect.construct) {
456
- // We construct a different control for this case to include any extra
457
- // frames added by the construct call.
458
- try {
459
- Reflect.construct(Fake, []);
460
- } catch (x) {
461
- control = x;
462
- }
463
-
464
- Reflect.construct(fn, [], Fake);
465
- } else {
466
- try {
467
- Fake.call();
468
- } catch (x) {
469
- control = x;
470
- }
471
-
472
- fn.call(Fake.prototype);
473
- }
474
- } else {
475
- try {
476
- throw Error();
477
- } catch (x) {
478
- control = x;
479
- }
480
-
481
- fn();
482
- }
483
- } catch (sample) {
484
- // This is inlined manually because closure doesn't do it for us.
485
- if (sample && control && typeof sample.stack === 'string') {
486
- // This extracts the first frame from the sample that isn't also in the control.
487
- // Skipping one frame that we assume is the frame that calls the two.
488
- var sampleLines = sample.stack.split('\n');
489
- var controlLines = control.stack.split('\n');
490
- var s = sampleLines.length - 1;
491
- var c = controlLines.length - 1;
492
-
493
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
494
- // We expect at least one stack frame to be shared.
495
- // Typically this will be the root most one. However, stack frames may be
496
- // cut off due to maximum stack limits. In this case, one maybe cut off
497
- // earlier than the other. We assume that the sample is longer or the same
498
- // and there for cut off earlier. So we should find the root most frame in
499
- // the sample somewhere in the control.
500
- c--;
501
- }
502
-
503
- for (; s >= 1 && c >= 0; s--, c--) {
504
- // Next we find the first one that isn't the same which should be the
505
- // frame that called our sample function and the control.
506
- if (sampleLines[s] !== controlLines[c]) {
507
- // In V8, the first line is describing the message but other VMs don't.
508
- // If we're about to return the first line, and the control is also on the same
509
- // line, that's a pretty good indicator that our sample threw at same line as
510
- // the control. I.e. before we entered the sample frame. So we ignore this result.
511
- // This can happen if you passed a class to function component, or non-function.
512
- if (s !== 1 || c !== 1) {
513
- do {
514
- s--;
515
- c--; // We may still have similar intermediate frames from the construct call.
516
- // The next one that isn't the same should be our match though.
517
-
518
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
519
- // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
520
- var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
521
- // but we have a user-provided "displayName"
522
- // splice it in to make the stack more readable.
523
-
524
-
525
- if (fn.displayName && _frame.includes('<anonymous>')) {
526
- _frame = _frame.replace('<anonymous>', fn.displayName);
527
- }
528
-
529
- {
530
- if (typeof fn === 'function') {
531
- componentFrameCache.set(fn, _frame);
532
- }
533
- } // Return the line we found.
534
-
535
-
536
- return _frame;
537
- }
538
- } while (s >= 1 && c >= 0);
539
- }
540
-
541
- break;
542
- }
543
- }
544
- }
545
- } finally {
546
- reentry = false;
547
-
548
- {
549
- ReactCurrentDispatcher.current = previousDispatcher;
550
- reenableLogs();
551
- }
552
-
553
- Error.prepareStackTrace = previousPrepareStackTrace;
554
- } // Fallback to just using the name if we couldn't make it throw.
555
-
556
-
557
- var name = fn ? fn.displayName || fn.name : '';
558
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
559
-
560
- {
561
- if (typeof fn === 'function') {
562
- componentFrameCache.set(fn, syntheticFrame);
563
- }
564
- }
565
-
566
- return syntheticFrame;
567
- }
568
- function describeFunctionComponentFrame(fn, source, ownerFn) {
569
- {
570
- return describeNativeComponentFrame(fn, false);
571
- }
572
- }
573
-
574
- function shouldConstruct(Component) {
575
- var prototype = Component.prototype;
576
- return !!(prototype && prototype.isReactComponent);
577
- }
578
-
579
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
580
-
581
- if (type == null) {
582
- return '';
583
- }
584
-
585
- if (typeof type === 'function') {
586
- {
587
- return describeNativeComponentFrame(type, shouldConstruct(type));
588
- }
589
- }
590
-
591
- if (typeof type === 'string') {
592
- return describeBuiltInComponentFrame(type);
593
- }
594
-
595
- switch (type) {
596
- case REACT_SUSPENSE_TYPE:
597
- return describeBuiltInComponentFrame('Suspense');
598
-
599
- case REACT_SUSPENSE_LIST_TYPE:
600
- return describeBuiltInComponentFrame('SuspenseList');
601
- }
602
-
603
- if (typeof type === 'object') {
604
- switch (type.$$typeof) {
605
- case REACT_FORWARD_REF_TYPE:
606
- return describeFunctionComponentFrame(type.render);
607
-
608
- case REACT_MEMO_TYPE:
609
- // Memo may contain any component type so we recursively resolve it.
610
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
611
-
612
- case REACT_LAZY_TYPE:
613
- {
614
- var lazyComponent = type;
615
- var payload = lazyComponent._payload;
616
- var init = lazyComponent._init;
617
-
618
- try {
619
- // Lazy may contain any component type so we recursively resolve it.
620
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
621
- } catch (x) {}
622
- }
623
- }
624
- }
625
-
626
- return '';
627
- }
628
-
629
- var hasOwnProperty = Object.prototype.hasOwnProperty;
630
-
631
- var loggedTypeFailures = {};
632
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
633
-
634
- function setCurrentlyValidatingElement(element) {
635
- {
636
- if (element) {
637
- var owner = element._owner;
638
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
639
- ReactDebugCurrentFrame.setExtraStackFrame(stack);
640
- } else {
641
- ReactDebugCurrentFrame.setExtraStackFrame(null);
642
- }
643
- }
644
- }
645
-
646
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
647
- {
648
- // $FlowFixMe This is okay but Flow doesn't know it.
649
- var has = Function.call.bind(hasOwnProperty);
650
-
651
- for (var typeSpecName in typeSpecs) {
652
- if (has(typeSpecs, typeSpecName)) {
653
- var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
654
- // fail the render phase where it didn't fail before. So we log it.
655
- // After these have been cleaned up, we'll let them throw.
656
-
657
- try {
658
- // This is intentionally an invariant that gets caught. It's the same
659
- // behavior as without this statement except with a better message.
660
- if (typeof typeSpecs[typeSpecName] !== 'function') {
661
- // eslint-disable-next-line react-internal/prod-error-codes
662
- 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`.');
663
- err.name = 'Invariant Violation';
664
- throw err;
665
- }
666
-
667
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
668
- } catch (ex) {
669
- error$1 = ex;
670
- }
671
-
672
- if (error$1 && !(error$1 instanceof Error)) {
673
- setCurrentlyValidatingElement(element);
674
-
675
- 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);
676
-
677
- setCurrentlyValidatingElement(null);
678
- }
679
-
680
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
681
- // Only monitor this failure once because there tends to be a lot of the
682
- // same error.
683
- loggedTypeFailures[error$1.message] = true;
684
- setCurrentlyValidatingElement(element);
685
-
686
- error('Failed %s type: %s', location, error$1.message);
687
-
688
- setCurrentlyValidatingElement(null);
689
- }
690
- }
691
- }
692
- }
693
- }
694
-
695
- var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
696
-
697
- function isArray(a) {
698
- return isArrayImpl(a);
699
- }
700
-
701
- /*
702
- * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
703
- * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
704
- *
705
- * The functions in this module will throw an easier-to-understand,
706
- * easier-to-debug exception with a clear errors message message explaining the
707
- * problem. (Instead of a confusing exception thrown inside the implementation
708
- * of the `value` object).
709
- */
710
- // $FlowFixMe only called in DEV, so void return is not possible.
711
- function typeName(value) {
712
- {
713
- // toStringTag is needed for namespaced types like Temporal.Instant
714
- var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
715
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
716
- return type;
717
- }
718
- } // $FlowFixMe only called in DEV, so void return is not possible.
719
-
720
-
721
- function willCoercionThrow(value) {
722
- {
723
- try {
724
- testStringCoercion(value);
725
- return false;
726
- } catch (e) {
727
- return true;
728
- }
729
- }
730
- }
731
-
732
- function testStringCoercion(value) {
733
- // If you ended up here by following an exception call stack, here's what's
734
- // happened: you supplied an object or symbol value to React (as a prop, key,
735
- // DOM attribute, CSS property, string ref, etc.) and when React tried to
736
- // coerce it to a string using `'' + value`, an exception was thrown.
737
- //
738
- // The most common types that will cause this exception are `Symbol` instances
739
- // and Temporal objects like `Temporal.Instant`. But any object that has a
740
- // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
741
- // exception. (Library authors do this to prevent users from using built-in
742
- // numeric operators like `+` or comparison operators like `>=` because custom
743
- // methods are needed to perform accurate arithmetic or comparison.)
744
- //
745
- // To fix the problem, coerce this object or symbol value to a string before
746
- // passing it to React. The most reliable way is usually `String(value)`.
747
- //
748
- // To find which value is throwing, check the browser or debugger console.
749
- // Before this exception was thrown, there should be `console.error` output
750
- // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
751
- // problem and how that type was used: key, atrribute, input value prop, etc.
752
- // In most cases, this console output also shows the component and its
753
- // ancestor components where the exception happened.
754
- //
755
- // eslint-disable-next-line react-internal/safe-string-coercion
756
- return '' + value;
757
- }
758
- function checkKeyStringCoercion(value) {
759
- {
760
- if (willCoercionThrow(value)) {
761
- error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
762
-
763
- return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
764
- }
765
- }
766
- }
767
-
768
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
769
- var RESERVED_PROPS = {
770
- key: true,
771
- ref: true,
772
- __self: true,
773
- __source: true
774
- };
775
- var specialPropKeyWarningShown;
776
- var specialPropRefWarningShown;
777
-
778
- function hasValidRef(config) {
779
- {
780
- if (hasOwnProperty.call(config, 'ref')) {
781
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
782
-
783
- if (getter && getter.isReactWarning) {
784
- return false;
785
- }
786
- }
787
- }
788
-
789
- return config.ref !== undefined;
790
- }
791
-
792
- function hasValidKey(config) {
793
- {
794
- if (hasOwnProperty.call(config, 'key')) {
795
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
796
-
797
- if (getter && getter.isReactWarning) {
798
- return false;
799
- }
800
- }
801
- }
802
-
803
- return config.key !== undefined;
804
- }
805
-
806
- function warnIfStringRefCannotBeAutoConverted(config, self) {
807
- {
808
- if (typeof config.ref === 'string' && ReactCurrentOwner.current && self) ;
809
- }
810
- }
811
-
812
- function defineKeyPropWarningGetter(props, displayName) {
813
- {
814
- var warnAboutAccessingKey = function () {
815
- if (!specialPropKeyWarningShown) {
816
- specialPropKeyWarningShown = true;
817
-
818
- 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);
819
- }
820
- };
821
-
822
- warnAboutAccessingKey.isReactWarning = true;
823
- Object.defineProperty(props, 'key', {
824
- get: warnAboutAccessingKey,
825
- configurable: true
826
- });
827
- }
828
- }
829
-
830
- function defineRefPropWarningGetter(props, displayName) {
831
- {
832
- var warnAboutAccessingRef = function () {
833
- if (!specialPropRefWarningShown) {
834
- specialPropRefWarningShown = true;
835
-
836
- 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);
837
- }
838
- };
839
-
840
- warnAboutAccessingRef.isReactWarning = true;
841
- Object.defineProperty(props, 'ref', {
842
- get: warnAboutAccessingRef,
843
- configurable: true
844
- });
845
- }
846
- }
847
- /**
848
- * Factory method to create a new React element. This no longer adheres to
849
- * the class pattern, so do not use new to call it. Also, instanceof check
850
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
851
- * if something is a React Element.
852
- *
853
- * @param {*} type
854
- * @param {*} props
855
- * @param {*} key
856
- * @param {string|object} ref
857
- * @param {*} owner
858
- * @param {*} self A *temporary* helper to detect places where `this` is
859
- * different from the `owner` when React.createElement is called, so that we
860
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
861
- * functions, and as long as `this` and owner are the same, there will be no
862
- * change in behavior.
863
- * @param {*} source An annotation object (added by a transpiler or otherwise)
864
- * indicating filename, line number, and/or other information.
865
- * @internal
866
- */
867
-
868
-
869
- var ReactElement = function (type, key, ref, self, source, owner, props) {
870
- var element = {
871
- // This tag allows us to uniquely identify this as a React Element
872
- $$typeof: REACT_ELEMENT_TYPE,
873
- // Built-in properties that belong on the element
874
- type: type,
875
- key: key,
876
- ref: ref,
877
- props: props,
878
- // Record the component responsible for creating this element.
879
- _owner: owner
880
- };
881
-
882
- {
883
- // The validation flag is currently mutative. We put it on
884
- // an external backing store so that we can freeze the whole object.
885
- // This can be replaced with a WeakMap once they are implemented in
886
- // commonly used development environments.
887
- element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
888
- // the validation flag non-enumerable (where possible, which should
889
- // include every environment we run tests in), so the test framework
890
- // ignores it.
891
-
892
- Object.defineProperty(element._store, 'validated', {
893
- configurable: false,
894
- enumerable: false,
895
- writable: true,
896
- value: false
897
- }); // self and source are DEV only properties.
898
-
899
- Object.defineProperty(element, '_self', {
900
- configurable: false,
901
- enumerable: false,
902
- writable: false,
903
- value: self
904
- }); // Two elements created in two different places should be considered
905
- // equal for testing purposes and therefore we hide it from enumeration.
906
-
907
- Object.defineProperty(element, '_source', {
908
- configurable: false,
909
- enumerable: false,
910
- writable: false,
911
- value: source
912
- });
913
-
914
- if (Object.freeze) {
915
- Object.freeze(element.props);
916
- Object.freeze(element);
917
- }
918
- }
919
-
920
- return element;
921
- };
922
- /**
923
- * https://github.com/reactjs/rfcs/pull/107
924
- * @param {*} type
925
- * @param {object} props
926
- * @param {string} key
927
- */
928
-
929
- function jsxDEV(type, config, maybeKey, source, self) {
930
- {
931
- var propName; // Reserved names are extracted
932
-
933
- var props = {};
934
- var key = null;
935
- var ref = null; // Currently, key can be spread in as a prop. This causes a potential
936
- // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
937
- // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
938
- // but as an intermediary step, we will use jsxDEV for everything except
939
- // <div {...props} key="Hi" />, because we aren't currently able to tell if
940
- // key is explicitly declared to be undefined or not.
941
-
942
- if (maybeKey !== undefined) {
943
- {
944
- checkKeyStringCoercion(maybeKey);
945
- }
946
-
947
- key = '' + maybeKey;
948
- }
949
-
950
- if (hasValidKey(config)) {
951
- {
952
- checkKeyStringCoercion(config.key);
953
- }
954
-
955
- key = '' + config.key;
956
- }
957
-
958
- if (hasValidRef(config)) {
959
- ref = config.ref;
960
- warnIfStringRefCannotBeAutoConverted(config, self);
961
- } // Remaining properties are added to a new props object
962
-
963
-
964
- for (propName in config) {
965
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
966
- props[propName] = config[propName];
967
- }
968
- } // Resolve default props
969
-
970
-
971
- if (type && type.defaultProps) {
972
- var defaultProps = type.defaultProps;
973
-
974
- for (propName in defaultProps) {
975
- if (props[propName] === undefined) {
976
- props[propName] = defaultProps[propName];
977
- }
978
- }
979
- }
980
-
981
- if (key || ref) {
982
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
983
-
984
- if (key) {
985
- defineKeyPropWarningGetter(props, displayName);
986
- }
987
-
988
- if (ref) {
989
- defineRefPropWarningGetter(props, displayName);
990
- }
991
- }
992
-
993
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
994
- }
995
- }
996
-
997
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
998
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
999
-
1000
- function setCurrentlyValidatingElement$1(element) {
1001
- {
1002
- if (element) {
1003
- var owner = element._owner;
1004
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1005
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
1006
- } else {
1007
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
1008
- }
1009
- }
1010
- }
1011
-
1012
- var propTypesMisspellWarningShown;
1013
-
1014
- {
1015
- propTypesMisspellWarningShown = false;
1016
- }
1017
- /**
1018
- * Verifies the object is a ReactElement.
1019
- * See https://reactjs.org/docs/react-api.html#isvalidelement
1020
- * @param {?object} object
1021
- * @return {boolean} True if `object` is a ReactElement.
1022
- * @final
1023
- */
1024
-
1025
-
1026
- function isValidElement(object) {
1027
- {
1028
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1029
- }
1030
- }
1031
-
1032
- function getDeclarationErrorAddendum() {
1033
- {
1034
- if (ReactCurrentOwner$1.current) {
1035
- var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
1036
-
1037
- if (name) {
1038
- return '\n\nCheck the render method of `' + name + '`.';
1039
- }
1040
- }
1041
-
1042
- return '';
1043
- }
1044
- }
1045
-
1046
- function getSourceInfoErrorAddendum(source) {
1047
- {
1048
-
1049
- return '';
1050
- }
1051
- }
1052
- /**
1053
- * Warn if there's no key explicitly set on dynamic arrays of children or
1054
- * object keys are not valid. This allows us to keep track of children between
1055
- * updates.
1056
- */
1057
-
1058
-
1059
- var ownerHasKeyUseWarning = {};
1060
-
1061
- function getCurrentComponentErrorInfo(parentType) {
1062
- {
1063
- var info = getDeclarationErrorAddendum();
1064
-
1065
- if (!info) {
1066
- var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
1067
-
1068
- if (parentName) {
1069
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1070
- }
1071
- }
1072
-
1073
- return info;
1074
- }
1075
- }
1076
- /**
1077
- * Warn if the element doesn't have an explicit key assigned to it.
1078
- * This element is in an array. The array could grow and shrink or be
1079
- * reordered. All children that haven't already been validated are required to
1080
- * have a "key" property assigned to it. Error statuses are cached so a warning
1081
- * will only be shown once.
1082
- *
1083
- * @internal
1084
- * @param {ReactElement} element Element that requires a key.
1085
- * @param {*} parentType element's parent's type.
1086
- */
1087
-
1088
-
1089
- function validateExplicitKey(element, parentType) {
1090
- {
1091
- if (!element._store || element._store.validated || element.key != null) {
1092
- return;
1093
- }
1094
-
1095
- element._store.validated = true;
1096
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1097
-
1098
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1099
- return;
1100
- }
1101
-
1102
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
1103
- // property, it may be the creator of the child that's responsible for
1104
- // assigning it a key.
1105
-
1106
- var childOwner = '';
1107
-
1108
- if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
1109
- // Give the component that originally created this child.
1110
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1111
- }
1112
-
1113
- setCurrentlyValidatingElement$1(element);
1114
-
1115
- 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);
1116
-
1117
- setCurrentlyValidatingElement$1(null);
1118
- }
1119
- }
1120
- /**
1121
- * Ensure that every element either is passed in a static location, in an
1122
- * array with an explicit keys property defined, or in an object literal
1123
- * with valid key property.
1124
- *
1125
- * @internal
1126
- * @param {ReactNode} node Statically passed child of any type.
1127
- * @param {*} parentType node's parent's type.
1128
- */
1129
-
1130
-
1131
- function validateChildKeys(node, parentType) {
1132
- {
1133
- if (typeof node !== 'object') {
1134
- return;
1135
- }
1136
-
1137
- if (isArray(node)) {
1138
- for (var i = 0; i < node.length; i++) {
1139
- var child = node[i];
1140
-
1141
- if (isValidElement(child)) {
1142
- validateExplicitKey(child, parentType);
1143
- }
1144
- }
1145
- } else if (isValidElement(node)) {
1146
- // This element was passed in a valid location.
1147
- if (node._store) {
1148
- node._store.validated = true;
1149
- }
1150
- } else if (node) {
1151
- var iteratorFn = getIteratorFn(node);
1152
-
1153
- if (typeof iteratorFn === 'function') {
1154
- // Entry iterators used to provide implicit keys,
1155
- // but now we print a separate warning for them later.
1156
- if (iteratorFn !== node.entries) {
1157
- var iterator = iteratorFn.call(node);
1158
- var step;
1159
-
1160
- while (!(step = iterator.next()).done) {
1161
- if (isValidElement(step.value)) {
1162
- validateExplicitKey(step.value, parentType);
1163
- }
1164
- }
1165
- }
1166
- }
1167
- }
1168
- }
1169
- }
1170
- /**
1171
- * Given an element, validate that its props follow the propTypes definition,
1172
- * provided by the type.
1173
- *
1174
- * @param {ReactElement} element
1175
- */
1176
-
1177
-
1178
- function validatePropTypes(element) {
1179
- {
1180
- var type = element.type;
1181
-
1182
- if (type === null || type === undefined || typeof type === 'string') {
1183
- return;
1184
- }
1185
-
1186
- var propTypes;
1187
-
1188
- if (typeof type === 'function') {
1189
- propTypes = type.propTypes;
1190
- } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1191
- // Inner props are checked in the reconciler.
1192
- type.$$typeof === REACT_MEMO_TYPE)) {
1193
- propTypes = type.propTypes;
1194
- } else {
1195
- return;
1196
- }
1197
-
1198
- if (propTypes) {
1199
- // Intentionally inside to avoid triggering lazy initializers:
1200
- var name = getComponentNameFromType(type);
1201
- checkPropTypes(propTypes, element.props, 'prop', name, element);
1202
- } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
1203
- propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
1204
-
1205
- var _name = getComponentNameFromType(type);
1206
-
1207
- error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
1208
- }
1209
-
1210
- if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
1211
- error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
1212
- }
1213
- }
1214
- }
1215
- /**
1216
- * Given a fragment, validate that it can only be provided with fragment props
1217
- * @param {ReactElement} fragment
1218
- */
1219
-
1220
-
1221
- function validateFragmentProps(fragment) {
1222
- {
1223
- var keys = Object.keys(fragment.props);
1224
-
1225
- for (var i = 0; i < keys.length; i++) {
1226
- var key = keys[i];
1227
-
1228
- if (key !== 'children' && key !== 'key') {
1229
- setCurrentlyValidatingElement$1(fragment);
1230
-
1231
- error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
1232
-
1233
- setCurrentlyValidatingElement$1(null);
1234
- break;
1235
- }
1236
- }
1237
-
1238
- if (fragment.ref !== null) {
1239
- setCurrentlyValidatingElement$1(fragment);
1240
-
1241
- error('Invalid attribute `ref` supplied to `React.Fragment`.');
1242
-
1243
- setCurrentlyValidatingElement$1(null);
1244
- }
1245
- }
1246
- }
1247
-
1248
- var didWarnAboutKeySpread = {};
1249
- function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
1250
- {
1251
- var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
1252
- // succeed and there will likely be errors in render.
1253
-
1254
- if (!validType) {
1255
- var info = '';
1256
-
1257
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
1258
- 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.";
1259
- }
1260
-
1261
- var sourceInfo = getSourceInfoErrorAddendum();
1262
-
1263
- if (sourceInfo) {
1264
- info += sourceInfo;
1265
- } else {
1266
- info += getDeclarationErrorAddendum();
1267
- }
1268
-
1269
- var typeString;
1270
-
1271
- if (type === null) {
1272
- typeString = 'null';
1273
- } else if (isArray(type)) {
1274
- typeString = 'array';
1275
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
1276
- typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
1277
- info = ' Did you accidentally export a JSX literal instead of a component?';
1278
- } else {
1279
- typeString = typeof type;
1280
- }
1281
-
1282
- 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);
1283
- }
1284
-
1285
- var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
1286
- // TODO: Drop this when these are no longer allowed as the type argument.
1287
-
1288
- if (element == null) {
1289
- return element;
1290
- } // Skip key warning if the type isn't valid since our key validation logic
1291
- // doesn't expect a non-string/function type and can throw confusing errors.
1292
- // We don't want exception behavior to differ between dev and prod.
1293
- // (Rendering will throw with a helpful message and as soon as the type is
1294
- // fixed, the key warnings will appear.)
1295
-
1296
-
1297
- if (validType) {
1298
- var children = props.children;
1299
-
1300
- if (children !== undefined) {
1301
- if (isStaticChildren) {
1302
- if (isArray(children)) {
1303
- for (var i = 0; i < children.length; i++) {
1304
- validateChildKeys(children[i], type);
1305
- }
1306
-
1307
- if (Object.freeze) {
1308
- Object.freeze(children);
1309
- }
1310
- } else {
1311
- 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.');
1312
- }
1313
- } else {
1314
- validateChildKeys(children, type);
1315
- }
1316
- }
1317
- }
1318
-
1319
- {
1320
- if (hasOwnProperty.call(props, 'key')) {
1321
- var componentName = getComponentNameFromType(type);
1322
- var keys = Object.keys(props).filter(function (k) {
1323
- return k !== 'key';
1324
- });
1325
- var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
1326
-
1327
- if (!didWarnAboutKeySpread[componentName + beforeExample]) {
1328
- var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
1329
-
1330
- 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);
1331
-
1332
- didWarnAboutKeySpread[componentName + beforeExample] = true;
1333
- }
1334
- }
1335
- }
1336
-
1337
- if (type === REACT_FRAGMENT_TYPE) {
1338
- validateFragmentProps(element);
1339
- } else {
1340
- validatePropTypes(element);
1341
- }
1342
-
1343
- return element;
1344
- }
1345
- } // These two functions exist to still get child warnings in dev
1346
- // even with the prod transform. This means that jsxDEV is purely
1347
- // opt-in behavior for better messages but that we won't stop
1348
- // giving you warnings if you use production apis.
1349
-
1350
- function jsxWithValidationStatic(type, props, key) {
1351
- {
1352
- return jsxWithValidation(type, props, key, true);
1353
- }
1354
- }
1355
- function jsxWithValidationDynamic(type, props, key) {
1356
- {
1357
- return jsxWithValidation(type, props, key, false);
1358
- }
1359
- }
1360
-
1361
- var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
1362
- // for now we can ship identical prod functions
1363
-
1364
- var jsxs = jsxWithValidationStatic ;
1365
-
1366
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
1367
- reactJsxRuntime_development.jsx = jsx;
1368
- reactJsxRuntime_development.jsxs = jsxs;
1369
- })();
1370
- }
1371
- return reactJsxRuntime_development;
1372
- }
1373
-
1374
- var hasRequiredJsxRuntime;
1375
-
1376
- function requireJsxRuntime () {
1377
- if (hasRequiredJsxRuntime) return jsxRuntime.exports;
1378
- hasRequiredJsxRuntime = 1;
1379
-
1380
- if (process.env.NODE_ENV === 'production') {
1381
- jsxRuntime.exports = requireReactJsxRuntime_production_min();
1382
- } else {
1383
- jsxRuntime.exports = requireReactJsxRuntime_development();
1384
- }
1385
- return jsxRuntime.exports;
1386
- }
1387
-
1388
- var jsxRuntimeExports = requireJsxRuntime();
1389
-
1390
28
  const button = "_button_1cxsm_1";
1391
29
  const fullWidth = "_fullWidth_1cxsm_21";
1392
30
  const destructive = "_destructive_1cxsm_34";
@@ -1428,10 +66,10 @@ function Button({
1428
66
  disabled ? styles$5.disabled : "",
1429
67
  className
1430
68
  ].filter(Boolean).join(" ");
1431
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("button", { className: classes, disabled, ...props, children: [
1432
- leftIcon && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$5.iconLeft, children: leftIcon }),
1433
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$5.label, children }),
1434
- rightIcon && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$5.iconRight, children: rightIcon })
69
+ return /* @__PURE__ */ jsxRuntime.jsxs("button", { className: classes, disabled, ...props, children: [
70
+ leftIcon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$5.iconLeft, children: leftIcon }),
71
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$5.label, children }),
72
+ rightIcon && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$5.iconRight, children: rightIcon })
1435
73
  ] });
1436
74
  }
1437
75
 
@@ -1458,8 +96,8 @@ const Checkbox = ({ checked, onChange, label, className = "", ...props }) => {
1458
96
  onChange(e.target.checked);
1459
97
  }
1460
98
  };
1461
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("label", { className: wrapperClass, children: [
1462
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: boxClass, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
99
+ return /* @__PURE__ */ jsxRuntime.jsxs("label", { className: wrapperClass, children: [
100
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: boxClass, children: /* @__PURE__ */ jsxRuntime.jsx(
1463
101
  "svg",
1464
102
  {
1465
103
  width: "11",
@@ -1467,7 +105,7 @@ const Checkbox = ({ checked, onChange, label, className = "", ...props }) => {
1467
105
  viewBox: "0 0 11 8",
1468
106
  fill: "none",
1469
107
  className: styles$4.checkIcon,
1470
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(
108
+ children: /* @__PURE__ */ jsxRuntime.jsx(
1471
109
  "path",
1472
110
  {
1473
111
  d: "M9.99837 0.665039L3.58171 7.08171L0.665039 4.16504",
@@ -1479,8 +117,8 @@ const Checkbox = ({ checked, onChange, label, className = "", ...props }) => {
1479
117
  )
1480
118
  }
1481
119
  ) }),
1482
- label && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$4.text, children: label }),
1483
- /* @__PURE__ */ jsxRuntimeExports.jsx(
120
+ label && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$4.text, children: label }),
121
+ /* @__PURE__ */ jsxRuntime.jsx(
1484
122
  "input",
1485
123
  {
1486
124
  type: "checkbox",
@@ -5399,7 +4037,7 @@ function PopChild({ children, isPresent, anchorX, root }) {
5399
4037
  }
5400
4038
  };
5401
4039
  }, [isPresent]);
5402
- return (jsxRuntimeExports.jsx(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size, children: React__namespace.cloneElement(children, { ref: composedRef }) }));
4040
+ return (jsxRuntime.jsx(PopChildMeasure, { isPresent: isPresent, childRef: ref, sizeRef: size, children: React__namespace.cloneElement(children, { ref: composedRef }) }));
5403
4041
  }
5404
4042
 
5405
4043
  const PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, presenceAffectsLayout, mode, anchorX, root }) => {
@@ -5449,9 +4087,9 @@ const PresenceChild = ({ children, initial, isPresent, onExitComplete, custom, p
5449
4087
  onExitComplete();
5450
4088
  }, [isPresent]);
5451
4089
  if (mode === "popLayout") {
5452
- children = (jsxRuntimeExports.jsx(PopChild, { isPresent: isPresent, anchorX: anchorX, root: root, children: children }));
4090
+ children = (jsxRuntime.jsx(PopChild, { isPresent: isPresent, anchorX: anchorX, root: root, children: children }));
5453
4091
  }
5454
- return (jsxRuntimeExports.jsx(PresenceContext.Provider, { value: context, children: children }));
4092
+ return (jsxRuntime.jsx(PresenceContext.Provider, { value: context, children: children }));
5455
4093
  };
5456
4094
  function newChildrenMap() {
5457
4095
  return new Map();
@@ -5632,7 +4270,7 @@ const AnimatePresence = ({ children, custom, initial = true, onExitComplete, pre
5632
4270
  * all components have finished animating out.
5633
4271
  */
5634
4272
  const { forceRender } = React.useContext(LayoutGroupContext);
5635
- return (jsxRuntimeExports.jsx(jsxRuntimeExports.Fragment, { children: renderedChildren.map((child) => {
4273
+ return (jsxRuntime.jsx(jsxRuntime.Fragment, { children: renderedChildren.map((child) => {
5636
4274
  const key = getChildKey(child);
5637
4275
  const isPresent = propagate && !isParentPresent
5638
4276
  ? false
@@ -5657,7 +4295,7 @@ const AnimatePresence = ({ children, custom, initial = true, onExitComplete, pre
5657
4295
  onExitComplete && onExitComplete();
5658
4296
  }
5659
4297
  };
5660
- return (jsxRuntimeExports.jsx(PresenceChild, { isPresent: isPresent, initial: !isInitialRender.current || initial
4298
+ return (jsxRuntime.jsx(PresenceChild, { isPresent: isPresent, initial: !isInitialRender.current || initial
5661
4299
  ? undefined
5662
4300
  : false, custom: custom, presenceAffectsLayout: presenceAffectsLayout, mode: mode, root: root, onExitComplete: isPresent ? undefined : onExit, anchorX: anchorX, children: child }, key));
5663
4301
  }) }));
@@ -6620,7 +5258,7 @@ function createMotionComponent(Component, { forwardMotionProps = false } = {}, p
6620
5258
  * The mount order and hierarchy is specific to ensure our element ref
6621
5259
  * is hydrated by the time features fire their effects.
6622
5260
  */
6623
- return (jsxRuntimeExports.jsxs(MotionContext.Provider, { value: context, children: [MeasureLayout && context.visualElement ? (jsxRuntimeExports.jsx(MeasureLayout, { visualElement: context.visualElement, ...configAndProps })) : null, useRender(Component, props, useMotionRef(visualState, context.visualElement, externalRef), visualState, isStatic, forwardMotionProps)] }));
5261
+ return (jsxRuntime.jsxs(MotionContext.Provider, { value: context, children: [MeasureLayout && context.visualElement ? (jsxRuntime.jsx(MeasureLayout, { visualElement: context.visualElement, ...configAndProps })) : null, useRender(Component, props, useMotionRef(visualState, context.visualElement, externalRef), visualState, isStatic, forwardMotionProps)] }));
6624
5262
  }
6625
5263
  MotionDOMComponent.displayName = `motion.${typeof Component === "string"
6626
5264
  ? Component
@@ -9551,7 +8189,7 @@ class MeasureLayoutWithContext extends React.Component {
9551
8189
  function MeasureLayout(props) {
9552
8190
  const [isPresent, safeToRemove] = usePresence();
9553
8191
  const layoutGroup = React.useContext(LayoutGroupContext);
9554
- return (jsxRuntimeExports.jsx(MeasureLayoutWithContext, { ...props, layoutGroup: layoutGroup, switchLayoutGroup: React.useContext(SwitchLayoutGroupContext), isPresent: isPresent, safeToRemove: safeToRemove }));
8192
+ return (jsxRuntime.jsx(MeasureLayoutWithContext, { ...props, layoutGroup: layoutGroup, switchLayoutGroup: React.useContext(SwitchLayoutGroupContext), isPresent: isPresent, safeToRemove: safeToRemove }));
9555
8193
  }
9556
8194
  const defaultScaleCorrectors = {
9557
8195
  borderRadius: {
@@ -10094,6 +8732,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
10094
8732
  */
10095
8733
  this.eventHandlers = new Map();
10096
8734
  this.hasTreeAnimated = false;
8735
+ this.layoutVersion = 0;
10097
8736
  // Note: Currently only running on root node
10098
8737
  this.updateScheduled = false;
10099
8738
  this.scheduleUpdate = () => this.update();
@@ -10120,6 +8759,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
10120
8759
  * Frame calculations
10121
8760
  */
10122
8761
  this.resolvedRelativeTargetAt = 0.0;
8762
+ this.linkedParentVersion = 0;
10123
8763
  this.hasProjected = false;
10124
8764
  this.isVisible = true;
10125
8765
  this.animationProgress = 0;
@@ -10473,6 +9113,7 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
10473
9113
  }
10474
9114
  const prevLayout = this.layout;
10475
9115
  this.layout = this.measure(false);
9116
+ this.layoutVersion++;
10476
9117
  this.layoutCorrected = createBox();
10477
9118
  this.isLayoutDirty = false;
10478
9119
  this.projectionDelta = undefined;
@@ -10692,25 +9333,23 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
10692
9333
  if (!this.layout || !(layout || layoutId))
10693
9334
  return;
10694
9335
  this.resolvedRelativeTargetAt = frameData.timestamp;
9336
+ const relativeParent = this.getClosestProjectingParent();
9337
+ if (relativeParent &&
9338
+ this.linkedParentVersion !== relativeParent.layoutVersion &&
9339
+ !relativeParent.options.layoutRoot) {
9340
+ this.removeRelativeTarget();
9341
+ }
10695
9342
  /**
10696
9343
  * If we don't have a targetDelta but do have a layout, we can attempt to resolve
10697
9344
  * a relativeParent. This will allow a component to perform scale correction
10698
9345
  * even if no animation has started.
10699
9346
  */
10700
9347
  if (!this.targetDelta && !this.relativeTarget) {
10701
- const relativeParent = this.getClosestProjectingParent();
10702
- if (relativeParent &&
10703
- relativeParent.layout &&
10704
- this.animationProgress !== 1) {
10705
- this.relativeParent = relativeParent;
10706
- this.forceRelativeParentToResolveTarget();
10707
- this.relativeTarget = createBox();
10708
- this.relativeTargetOrigin = createBox();
10709
- calcRelativePosition(this.relativeTargetOrigin, this.layout.layoutBox, relativeParent.layout.layoutBox);
10710
- copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);
9348
+ if (relativeParent && relativeParent.layout) {
9349
+ this.createRelativeTarget(relativeParent, this.layout.layoutBox, relativeParent.layout.layoutBox);
10711
9350
  }
10712
9351
  else {
10713
- this.relativeParent = this.relativeTarget = undefined;
9352
+ this.removeRelativeTarget();
10714
9353
  }
10715
9354
  }
10716
9355
  /**
@@ -10760,19 +9399,13 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
10760
9399
  */
10761
9400
  if (this.attemptToResolveRelativeTarget) {
10762
9401
  this.attemptToResolveRelativeTarget = false;
10763
- const relativeParent = this.getClosestProjectingParent();
10764
9402
  if (relativeParent &&
10765
9403
  Boolean(relativeParent.resumingFrom) ===
10766
9404
  Boolean(this.resumingFrom) &&
10767
9405
  !relativeParent.options.layoutScroll &&
10768
9406
  relativeParent.target &&
10769
9407
  this.animationProgress !== 1) {
10770
- this.relativeParent = relativeParent;
10771
- this.forceRelativeParentToResolveTarget();
10772
- this.relativeTarget = createBox();
10773
- this.relativeTargetOrigin = createBox();
10774
- calcRelativePosition(this.relativeTargetOrigin, this.target, relativeParent.target);
10775
- copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);
9408
+ this.createRelativeTarget(relativeParent, this.target, relativeParent.target);
10776
9409
  }
10777
9410
  else {
10778
9411
  this.relativeParent = this.relativeTarget = undefined;
@@ -10798,6 +9431,18 @@ function createProjectionNode({ attachResizeListener, defaultParent, measureScro
10798
9431
  this.options.layoutRoot) &&
10799
9432
  this.layout);
10800
9433
  }
9434
+ createRelativeTarget(relativeParent, layout, parentLayout) {
9435
+ this.relativeParent = relativeParent;
9436
+ this.linkedParentVersion = relativeParent.layoutVersion;
9437
+ this.forceRelativeParentToResolveTarget();
9438
+ this.relativeTarget = createBox();
9439
+ this.relativeTargetOrigin = createBox();
9440
+ calcRelativePosition(this.relativeTargetOrigin, layout, parentLayout);
9441
+ copyBoxInto(this.relativeTarget, this.relativeTargetOrigin);
9442
+ }
9443
+ removeRelativeTarget() {
9444
+ this.relativeParent = this.relativeTarget = undefined;
9445
+ }
10801
9446
  calcProjection() {
10802
9447
  const lead = this.getLead();
10803
9448
  const isShared = Boolean(this.resumingFrom) || this !== lead;
@@ -11807,7 +10452,7 @@ const styles$3 = {
11807
10452
  closeButton: closeButton};
11808
10453
 
11809
10454
  function DialogCloseIcon() {
11810
- return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsxRuntimeExports.jsx("g", { opacity: "0.7", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
10455
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "16", height: "16", viewBox: "0 0 16 16", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx("g", { opacity: "0.7", children: /* @__PURE__ */ jsxRuntime.jsx(
11811
10456
  "path",
11812
10457
  {
11813
10458
  d: "M12 4L4 12M4 4L12 12",
@@ -11846,7 +10491,7 @@ function Dialog({ open, onClose, children }) {
11846
10491
  const handleOverlayClick = () => {
11847
10492
  if (onClose) onClose();
11848
10493
  };
11849
- return /* @__PURE__ */ jsxRuntimeExports.jsx(AnimatePresence, { children: open && /* @__PURE__ */ jsxRuntimeExports.jsx(DialogPortal, { children: /* @__PURE__ */ jsxRuntimeExports.jsx(
10494
+ return /* @__PURE__ */ jsxRuntime.jsx(AnimatePresence, { children: open && /* @__PURE__ */ jsxRuntime.jsx(DialogPortal, { children: /* @__PURE__ */ jsxRuntime.jsx(
11850
10495
  motion.div,
11851
10496
  {
11852
10497
  className: styles$3.overlay,
@@ -11857,7 +10502,7 @@ function Dialog({ open, onClose, children }) {
11857
10502
  animate: { opacity: 1 },
11858
10503
  exit: { opacity: 0 },
11859
10504
  transition: { duration: 0.15 },
11860
- children: /* @__PURE__ */ jsxRuntimeExports.jsxs(
10505
+ children: /* @__PURE__ */ jsxRuntime.jsxs(
11861
10506
  motion.div,
11862
10507
  {
11863
10508
  className: styles$3.content,
@@ -11868,14 +10513,14 @@ function Dialog({ open, onClose, children }) {
11868
10513
  onClick: (e) => e.stopPropagation(),
11869
10514
  children: [
11870
10515
  children,
11871
- onClose && /* @__PURE__ */ jsxRuntimeExports.jsx(
10516
+ onClose && /* @__PURE__ */ jsxRuntime.jsx(
11872
10517
  "button",
11873
10518
  {
11874
10519
  type: "button",
11875
10520
  className: styles$3.closeButton,
11876
10521
  onClick: onClose,
11877
10522
  "aria-label": "Close",
11878
- children: /* @__PURE__ */ jsxRuntimeExports.jsx(DialogCloseIcon, {})
10523
+ children: /* @__PURE__ */ jsxRuntime.jsx(DialogCloseIcon, {})
11879
10524
  }
11880
10525
  )
11881
10526
  ]
@@ -11886,19 +10531,19 @@ function Dialog({ open, onClose, children }) {
11886
10531
  }
11887
10532
  function DialogHeader({ children, className = "" }) {
11888
10533
  const classes = [styles$3.header, className].filter(Boolean).join(" ");
11889
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classes, children });
10534
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes, children });
11890
10535
  }
11891
10536
  function DialogTitle({ children, className = "" }) {
11892
10537
  const classes = [styles$3.title, className].filter(Boolean).join(" ");
11893
- return /* @__PURE__ */ jsxRuntimeExports.jsx("h2", { className: classes, children });
10538
+ return /* @__PURE__ */ jsxRuntime.jsx("h2", { className: classes, children });
11894
10539
  }
11895
10540
  function DialogBody({ children, className = "" }) {
11896
10541
  const classes = [styles$3.body, className].filter(Boolean).join(" ");
11897
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classes, children });
10542
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes, children });
11898
10543
  }
11899
10544
  function DialogFooter({ children, className = "" }) {
11900
10545
  const classes = [styles$3.footer, className].filter(Boolean).join(" ");
11901
- return /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: classes, children });
10546
+ return /* @__PURE__ */ jsxRuntime.jsx("div", { className: classes, children });
11902
10547
  }
11903
10548
 
11904
10549
  const wrapper$2 = "_wrapper_x822s_1";
@@ -11928,9 +10573,9 @@ const Input = ({
11928
10573
  }) => {
11929
10574
  const wrapperClass = [styles$2.wrapper, className].filter(Boolean).join(" ");
11930
10575
  const containerClass = [styles$2.container, error ? styles$2.containerError : ""].filter(Boolean).join(" ");
11931
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: wrapperClass, children: [
11932
- label && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$2.label, children: label }),
11933
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: containerClass, children: /* @__PURE__ */ jsxRuntimeExports.jsx(
10576
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: wrapperClass, children: [
10577
+ label && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$2.label, children: label }),
10578
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: containerClass, children: /* @__PURE__ */ jsxRuntime.jsx(
11934
10579
  "input",
11935
10580
  {
11936
10581
  type,
@@ -11942,7 +10587,7 @@ const Input = ({
11942
10587
  ...props
11943
10588
  }
11944
10589
  ) }),
11945
- error && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$2.errorText, children: error })
10590
+ error && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$2.errorText, children: error })
11946
10591
  ] });
11947
10592
  };
11948
10593
 
@@ -12058,7 +10703,7 @@ function useSelect(props) {
12058
10703
  }
12059
10704
 
12060
10705
  function ChevronDown() {
12061
- return /* @__PURE__ */ jsxRuntimeExports.jsx("svg", { width: "10", height: "6", viewBox: "0 0 10 6", fill: "none", children: /* @__PURE__ */ jsxRuntimeExports.jsx(
10706
+ return /* @__PURE__ */ jsxRuntime.jsx("svg", { width: "10", height: "6", viewBox: "0 0 10 6", fill: "none", children: /* @__PURE__ */ jsxRuntime.jsx(
12062
10707
  "path",
12063
10708
  {
12064
10709
  d: "M0.665 0.665L4.665 4.665L8.665 0.665",
@@ -12096,10 +10741,10 @@ const Select = React.forwardRef(function Select2(props, ref) {
12096
10741
  open ? styles$1.triggerOpen : "",
12097
10742
  disabled ? styles$1.triggerDisabled : ""
12098
10743
  ].filter(Boolean).join(" ");
12099
- /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$1.dropdown, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$1.dropdownInner, role: "listbox", children: options.map((option) => {
10744
+ /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$1.dropdown, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$1.dropdownInner, role: "listbox", children: options.map((option) => {
12100
10745
  const isActive = option.value === (selected && selected.value);
12101
10746
  const optionClass = isActive ? `${styles$1.option} ${styles$1.optionActive}` : styles$1.option;
12102
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(
10747
+ return /* @__PURE__ */ jsxRuntime.jsxs(
12103
10748
  "button",
12104
10749
  {
12105
10750
  type: "button",
@@ -12108,16 +10753,16 @@ const Select = React.forwardRef(function Select2(props, ref) {
12108
10753
  className: optionClass,
12109
10754
  onClick: () => handleSelect(option),
12110
10755
  children: [
12111
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$1.optionLabel, children: option.label }),
12112
- option.hint && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$1.optionHint, children: option.hint })
10756
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$1.optionLabel, children: option.label }),
10757
+ option.hint && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$1.optionHint, children: option.hint })
12113
10758
  ]
12114
10759
  },
12115
10760
  option.value
12116
10761
  );
12117
10762
  }) }) });
12118
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: wrapperClass, ref: wrapperRef, children: [
12119
- label && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$1.label, children: label }),
12120
- /* @__PURE__ */ jsxRuntimeExports.jsxs(
10763
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: wrapperClass, ref: wrapperRef, children: [
10764
+ label && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$1.label, children: label }),
10765
+ /* @__PURE__ */ jsxRuntime.jsxs(
12121
10766
  "button",
12122
10767
  {
12123
10768
  type: "button",
@@ -12128,18 +10773,18 @@ const Select = React.forwardRef(function Select2(props, ref) {
12128
10773
  "aria-haspopup": "listbox",
12129
10774
  "aria-expanded": open,
12130
10775
  children: [
12131
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: selected ? styles$1.value : styles$1.placeholder, children: selected ? /* @__PURE__ */ jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [
10776
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: selected ? styles$1.value : styles$1.placeholder, children: selected ? /* @__PURE__ */ jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [
12132
10777
  selected.label,
12133
- selected.hint && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$1.hint, children: selected.hint })
10778
+ selected.hint && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$1.hint, children: selected.hint })
12134
10779
  ] }) : placeholder }),
12135
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$1.icon, children: /* @__PURE__ */ jsxRuntimeExports.jsx(ChevronDown, {}) })
10780
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$1.icon, children: /* @__PURE__ */ jsxRuntime.jsx(ChevronDown, {}) })
12136
10781
  ]
12137
10782
  }
12138
10783
  ),
12139
- disableAnimation ? open && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$1.dropdown, children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$1.dropdownInner, role: "listbox", children: options.map((option) => {
10784
+ disableAnimation ? open && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$1.dropdown, children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$1.dropdownInner, role: "listbox", children: options.map((option) => {
12140
10785
  const isActive = option.value === (selected && selected.value);
12141
10786
  const optionClass = isActive ? `${styles$1.option} ${styles$1.optionActive}` : styles$1.option;
12142
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(
10787
+ return /* @__PURE__ */ jsxRuntime.jsxs(
12143
10788
  "button",
12144
10789
  {
12145
10790
  type: "button",
@@ -12148,13 +10793,13 @@ const Select = React.forwardRef(function Select2(props, ref) {
12148
10793
  className: optionClass,
12149
10794
  onClick: () => handleSelect(option),
12150
10795
  children: [
12151
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$1.optionLabel, children: option.label }),
12152
- option.hint && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$1.optionHint, children: option.hint })
10796
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$1.optionLabel, children: option.label }),
10797
+ option.hint && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$1.optionHint, children: option.hint })
12153
10798
  ]
12154
10799
  },
12155
10800
  option.value
12156
10801
  );
12157
- }) }) }) : /* @__PURE__ */ jsxRuntimeExports.jsx(AnimatePresence, { children: open && /* @__PURE__ */ jsxRuntimeExports.jsx(
10802
+ }) }) }) : /* @__PURE__ */ jsxRuntime.jsx(AnimatePresence, { children: open && /* @__PURE__ */ jsxRuntime.jsx(
12158
10803
  motion.div,
12159
10804
  {
12160
10805
  className: styles$1.dropdown,
@@ -12162,10 +10807,10 @@ const Select = React.forwardRef(function Select2(props, ref) {
12162
10807
  animate: { opacity: 1, y: 0 },
12163
10808
  exit: { opacity: 0, y: -4 },
12164
10809
  transition: { duration: 0.12, ease: "easeOut" },
12165
- children: /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles$1.dropdownInner, role: "listbox", children: options.map((option) => {
10810
+ children: /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles$1.dropdownInner, role: "listbox", children: options.map((option) => {
12166
10811
  const isActive = option.value === (selected && selected.value);
12167
10812
  const optionClass = isActive ? `${styles$1.option} ${styles$1.optionActive}` : styles$1.option;
12168
- return /* @__PURE__ */ jsxRuntimeExports.jsxs(
10813
+ return /* @__PURE__ */ jsxRuntime.jsxs(
12169
10814
  "button",
12170
10815
  {
12171
10816
  type: "button",
@@ -12174,8 +10819,8 @@ const Select = React.forwardRef(function Select2(props, ref) {
12174
10819
  className: optionClass,
12175
10820
  onClick: () => handleSelect(option),
12176
10821
  children: [
12177
- /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$1.optionLabel, children: option.label }),
12178
- option.hint && /* @__PURE__ */ jsxRuntimeExports.jsx("span", { className: styles$1.optionHint, children: option.hint })
10822
+ /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$1.optionLabel, children: option.label }),
10823
+ option.hint && /* @__PURE__ */ jsxRuntime.jsx("span", { className: styles$1.optionHint, children: option.hint })
12179
10824
  ]
12180
10825
  },
12181
10826
  option.value
@@ -12198,9 +10843,9 @@ const styles = {
12198
10843
  const Textarea = ({ label, className = "", ...props }) => {
12199
10844
  const wrapperClass = [styles.wrapper].filter(Boolean).join(" ");
12200
10845
  const textareaClass = [styles.textarea, className].filter(Boolean).join(" ");
12201
- return /* @__PURE__ */ jsxRuntimeExports.jsxs("div", { className: wrapperClass, children: [
12202
- label && /* @__PURE__ */ jsxRuntimeExports.jsx("div", { className: styles.label, children: label }),
12203
- /* @__PURE__ */ jsxRuntimeExports.jsx("textarea", { className: textareaClass, ...props })
10846
+ return /* @__PURE__ */ jsxRuntime.jsxs("div", { className: wrapperClass, children: [
10847
+ label && /* @__PURE__ */ jsxRuntime.jsx("div", { className: styles.label, children: label }),
10848
+ /* @__PURE__ */ jsxRuntime.jsx("textarea", { className: textareaClass, ...props })
12204
10849
  ] });
12205
10850
  };
12206
10851