@thairath/tr-design-system 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js DELETED
@@ -1,1421 +0,0 @@
1
- 'use strict';
2
-
3
- var require$$0 = require('react');
4
-
5
- /******************************************************************************
6
- Copyright (c) Microsoft Corporation.
7
-
8
- Permission to use, copy, modify, and/or distribute this software for any
9
- purpose with or without fee is hereby granted.
10
-
11
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
12
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
14
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
15
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
16
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
17
- PERFORMANCE OF THIS SOFTWARE.
18
- ***************************************************************************** */
19
- /* global Reflect, Promise, SuppressedError, Symbol, Iterator */
20
-
21
-
22
- function __rest(s, e) {
23
- var t = {};
24
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
25
- t[p] = s[p];
26
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
27
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
28
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
29
- t[p[i]] = s[p[i]];
30
- }
31
- return t;
32
- }
33
-
34
- typeof SuppressedError === "function" ? SuppressedError : function (error, suppressed, message) {
35
- var e = new Error(message);
36
- return e.name = "SuppressedError", e.error = error, e.suppressed = suppressed, e;
37
- };
38
-
39
- var jsxRuntime = {exports: {}};
40
-
41
- var reactJsxRuntime_production_min = {};
42
-
43
- /**
44
- * @license React
45
- * react-jsx-runtime.production.min.js
46
- *
47
- * Copyright (c) Facebook, Inc. and its affiliates.
48
- *
49
- * This source code is licensed under the MIT license found in the
50
- * LICENSE file in the root directory of this source tree.
51
- */
52
-
53
- var hasRequiredReactJsxRuntime_production_min;
54
-
55
- function requireReactJsxRuntime_production_min () {
56
- if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
57
- hasRequiredReactJsxRuntime_production_min = 1;
58
- 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:true,ref:true,__self:true,__source:true};
59
- 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;
60
- return reactJsxRuntime_production_min;
61
- }
62
-
63
- var reactJsxRuntime_development = {};
64
-
65
- /**
66
- * @license React
67
- * react-jsx-runtime.development.js
68
- *
69
- * Copyright (c) Facebook, Inc. and its affiliates.
70
- *
71
- * This source code is licensed under the MIT license found in the
72
- * LICENSE file in the root directory of this source tree.
73
- */
74
-
75
- var hasRequiredReactJsxRuntime_development;
76
-
77
- function requireReactJsxRuntime_development () {
78
- if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
79
- hasRequiredReactJsxRuntime_development = 1;
80
-
81
- if (process.env.NODE_ENV !== "production") {
82
- (function() {
83
-
84
- var React = require$$0;
85
-
86
- // ATTENTION
87
- // When adding new symbols to this file,
88
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
89
- // The Symbol used to tag the ReactElement-like types.
90
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
91
- var REACT_PORTAL_TYPE = Symbol.for('react.portal');
92
- var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
93
- var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
94
- var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
95
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
96
- var REACT_CONTEXT_TYPE = Symbol.for('react.context');
97
- var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
98
- var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
99
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
100
- var REACT_MEMO_TYPE = Symbol.for('react.memo');
101
- var REACT_LAZY_TYPE = Symbol.for('react.lazy');
102
- var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
103
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
104
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
105
- function getIteratorFn(maybeIterable) {
106
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
107
- return null;
108
- }
109
-
110
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
111
-
112
- if (typeof maybeIterator === 'function') {
113
- return maybeIterator;
114
- }
115
-
116
- return null;
117
- }
118
-
119
- var ReactSharedInternals = React.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
120
-
121
- function error(format) {
122
- {
123
- {
124
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
125
- args[_key2 - 1] = arguments[_key2];
126
- }
127
-
128
- printWarning('error', format, args);
129
- }
130
- }
131
- }
132
-
133
- function printWarning(level, format, args) {
134
- // When changing this logic, you might want to also
135
- // update consoleWithStackDev.www.js as well.
136
- {
137
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
138
- var stack = ReactDebugCurrentFrame.getStackAddendum();
139
-
140
- if (stack !== '') {
141
- format += '%s';
142
- args = args.concat([stack]);
143
- } // eslint-disable-next-line react-internal/safe-string-coercion
144
-
145
-
146
- var argsWithFormat = args.map(function (item) {
147
- return String(item);
148
- }); // Careful: RN currently depends on this prefix
149
-
150
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
151
- // breaks IE9: https://github.com/facebook/react/issues/13610
152
- // eslint-disable-next-line react-internal/no-production-logging
153
-
154
- Function.prototype.apply.call(console[level], console, argsWithFormat);
155
- }
156
- }
157
-
158
- // -----------------------------------------------------------------------------
159
-
160
- var enableScopeAPI = false; // Experimental Create Event Handle API.
161
- var enableCacheElement = false;
162
- var enableTransitionTracing = false; // No known bugs, but needs performance testing
163
-
164
- var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
165
- // stuff. Intended to enable React core members to more easily debug scheduling
166
- // issues in DEV builds.
167
-
168
- var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
169
-
170
- var REACT_MODULE_REFERENCE;
171
-
172
- {
173
- REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
174
- }
175
-
176
- function isValidElementType(type) {
177
- if (typeof type === 'string' || typeof type === 'function') {
178
- return true;
179
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
180
-
181
-
182
- 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 ) {
183
- return true;
184
- }
185
-
186
- if (typeof type === 'object' && type !== null) {
187
- 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
188
- // types supported by any Flight configuration anywhere since
189
- // we don't know which Flight build this will end up being used
190
- // with.
191
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
192
- return true;
193
- }
194
- }
195
-
196
- return false;
197
- }
198
-
199
- function getWrappedName(outerType, innerType, wrapperName) {
200
- var displayName = outerType.displayName;
201
-
202
- if (displayName) {
203
- return displayName;
204
- }
205
-
206
- var functionName = innerType.displayName || innerType.name || '';
207
- return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
208
- } // Keep in sync with react-reconciler/getComponentNameFromFiber
209
-
210
-
211
- function getContextName(type) {
212
- return type.displayName || 'Context';
213
- } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
214
-
215
-
216
- function getComponentNameFromType(type) {
217
- if (type == null) {
218
- // Host root, text node or just invalid type.
219
- return null;
220
- }
221
-
222
- {
223
- if (typeof type.tag === 'number') {
224
- error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
225
- }
226
- }
227
-
228
- if (typeof type === 'function') {
229
- return type.displayName || type.name || null;
230
- }
231
-
232
- if (typeof type === 'string') {
233
- return type;
234
- }
235
-
236
- switch (type) {
237
- case REACT_FRAGMENT_TYPE:
238
- return 'Fragment';
239
-
240
- case REACT_PORTAL_TYPE:
241
- return 'Portal';
242
-
243
- case REACT_PROFILER_TYPE:
244
- return 'Profiler';
245
-
246
- case REACT_STRICT_MODE_TYPE:
247
- return 'StrictMode';
248
-
249
- case REACT_SUSPENSE_TYPE:
250
- return 'Suspense';
251
-
252
- case REACT_SUSPENSE_LIST_TYPE:
253
- return 'SuspenseList';
254
-
255
- }
256
-
257
- if (typeof type === 'object') {
258
- switch (type.$$typeof) {
259
- case REACT_CONTEXT_TYPE:
260
- var context = type;
261
- return getContextName(context) + '.Consumer';
262
-
263
- case REACT_PROVIDER_TYPE:
264
- var provider = type;
265
- return getContextName(provider._context) + '.Provider';
266
-
267
- case REACT_FORWARD_REF_TYPE:
268
- return getWrappedName(type, type.render, 'ForwardRef');
269
-
270
- case REACT_MEMO_TYPE:
271
- var outerName = type.displayName || null;
272
-
273
- if (outerName !== null) {
274
- return outerName;
275
- }
276
-
277
- return getComponentNameFromType(type.type) || 'Memo';
278
-
279
- case REACT_LAZY_TYPE:
280
- {
281
- var lazyComponent = type;
282
- var payload = lazyComponent._payload;
283
- var init = lazyComponent._init;
284
-
285
- try {
286
- return getComponentNameFromType(init(payload));
287
- } catch (x) {
288
- return null;
289
- }
290
- }
291
-
292
- // eslint-disable-next-line no-fallthrough
293
- }
294
- }
295
-
296
- return null;
297
- }
298
-
299
- var assign = Object.assign;
300
-
301
- // Helpers to patch console.logs to avoid logging during side-effect free
302
- // replaying on render function. This currently only patches the object
303
- // lazily which won't cover if the log function was extracted eagerly.
304
- // We could also eagerly patch the method.
305
- var disabledDepth = 0;
306
- var prevLog;
307
- var prevInfo;
308
- var prevWarn;
309
- var prevError;
310
- var prevGroup;
311
- var prevGroupCollapsed;
312
- var prevGroupEnd;
313
-
314
- function disabledLog() {}
315
-
316
- disabledLog.__reactDisabledLog = true;
317
- function disableLogs() {
318
- {
319
- if (disabledDepth === 0) {
320
- /* eslint-disable react-internal/no-production-logging */
321
- prevLog = console.log;
322
- prevInfo = console.info;
323
- prevWarn = console.warn;
324
- prevError = console.error;
325
- prevGroup = console.group;
326
- prevGroupCollapsed = console.groupCollapsed;
327
- prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
328
-
329
- var props = {
330
- configurable: true,
331
- enumerable: true,
332
- value: disabledLog,
333
- writable: true
334
- }; // $FlowFixMe Flow thinks console is immutable.
335
-
336
- Object.defineProperties(console, {
337
- info: props,
338
- log: props,
339
- warn: props,
340
- error: props,
341
- group: props,
342
- groupCollapsed: props,
343
- groupEnd: props
344
- });
345
- /* eslint-enable react-internal/no-production-logging */
346
- }
347
-
348
- disabledDepth++;
349
- }
350
- }
351
- function reenableLogs() {
352
- {
353
- disabledDepth--;
354
-
355
- if (disabledDepth === 0) {
356
- /* eslint-disable react-internal/no-production-logging */
357
- var props = {
358
- configurable: true,
359
- enumerable: true,
360
- writable: true
361
- }; // $FlowFixMe Flow thinks console is immutable.
362
-
363
- Object.defineProperties(console, {
364
- log: assign({}, props, {
365
- value: prevLog
366
- }),
367
- info: assign({}, props, {
368
- value: prevInfo
369
- }),
370
- warn: assign({}, props, {
371
- value: prevWarn
372
- }),
373
- error: assign({}, props, {
374
- value: prevError
375
- }),
376
- group: assign({}, props, {
377
- value: prevGroup
378
- }),
379
- groupCollapsed: assign({}, props, {
380
- value: prevGroupCollapsed
381
- }),
382
- groupEnd: assign({}, props, {
383
- value: prevGroupEnd
384
- })
385
- });
386
- /* eslint-enable react-internal/no-production-logging */
387
- }
388
-
389
- if (disabledDepth < 0) {
390
- error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
391
- }
392
- }
393
- }
394
-
395
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
396
- var prefix;
397
- function describeBuiltInComponentFrame(name, source, ownerFn) {
398
- {
399
- if (prefix === undefined) {
400
- // Extract the VM specific prefix used by each line.
401
- try {
402
- throw Error();
403
- } catch (x) {
404
- var match = x.stack.trim().match(/\n( *(at )?)/);
405
- prefix = match && match[1] || '';
406
- }
407
- } // We use the prefix to ensure our stacks line up with native stack frames.
408
-
409
-
410
- return '\n' + prefix + name;
411
- }
412
- }
413
- var reentry = false;
414
- var componentFrameCache;
415
-
416
- {
417
- var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
418
- componentFrameCache = new PossiblyWeakMap();
419
- }
420
-
421
- function describeNativeComponentFrame(fn, construct) {
422
- // If something asked for a stack inside a fake render, it should get ignored.
423
- if ( !fn || reentry) {
424
- return '';
425
- }
426
-
427
- {
428
- var frame = componentFrameCache.get(fn);
429
-
430
- if (frame !== undefined) {
431
- return frame;
432
- }
433
- }
434
-
435
- var control;
436
- reentry = true;
437
- var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
438
-
439
- Error.prepareStackTrace = undefined;
440
- var previousDispatcher;
441
-
442
- {
443
- previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
444
- // for warnings.
445
-
446
- ReactCurrentDispatcher.current = null;
447
- disableLogs();
448
- }
449
-
450
- try {
451
- // This should throw.
452
- if (construct) {
453
- // Something should be setting the props in the constructor.
454
- var Fake = function () {
455
- throw Error();
456
- }; // $FlowFixMe
457
-
458
-
459
- Object.defineProperty(Fake.prototype, 'props', {
460
- set: function () {
461
- // We use a throwing setter instead of frozen or non-writable props
462
- // because that won't throw in a non-strict mode function.
463
- throw Error();
464
- }
465
- });
466
-
467
- if (typeof Reflect === 'object' && Reflect.construct) {
468
- // We construct a different control for this case to include any extra
469
- // frames added by the construct call.
470
- try {
471
- Reflect.construct(Fake, []);
472
- } catch (x) {
473
- control = x;
474
- }
475
-
476
- Reflect.construct(fn, [], Fake);
477
- } else {
478
- try {
479
- Fake.call();
480
- } catch (x) {
481
- control = x;
482
- }
483
-
484
- fn.call(Fake.prototype);
485
- }
486
- } else {
487
- try {
488
- throw Error();
489
- } catch (x) {
490
- control = x;
491
- }
492
-
493
- fn();
494
- }
495
- } catch (sample) {
496
- // This is inlined manually because closure doesn't do it for us.
497
- if (sample && control && typeof sample.stack === 'string') {
498
- // This extracts the first frame from the sample that isn't also in the control.
499
- // Skipping one frame that we assume is the frame that calls the two.
500
- var sampleLines = sample.stack.split('\n');
501
- var controlLines = control.stack.split('\n');
502
- var s = sampleLines.length - 1;
503
- var c = controlLines.length - 1;
504
-
505
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
506
- // We expect at least one stack frame to be shared.
507
- // Typically this will be the root most one. However, stack frames may be
508
- // cut off due to maximum stack limits. In this case, one maybe cut off
509
- // earlier than the other. We assume that the sample is longer or the same
510
- // and there for cut off earlier. So we should find the root most frame in
511
- // the sample somewhere in the control.
512
- c--;
513
- }
514
-
515
- for (; s >= 1 && c >= 0; s--, c--) {
516
- // Next we find the first one that isn't the same which should be the
517
- // frame that called our sample function and the control.
518
- if (sampleLines[s] !== controlLines[c]) {
519
- // In V8, the first line is describing the message but other VMs don't.
520
- // If we're about to return the first line, and the control is also on the same
521
- // line, that's a pretty good indicator that our sample threw at same line as
522
- // the control. I.e. before we entered the sample frame. So we ignore this result.
523
- // This can happen if you passed a class to function component, or non-function.
524
- if (s !== 1 || c !== 1) {
525
- do {
526
- s--;
527
- c--; // We may still have similar intermediate frames from the construct call.
528
- // The next one that isn't the same should be our match though.
529
-
530
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
531
- // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
532
- var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
533
- // but we have a user-provided "displayName"
534
- // splice it in to make the stack more readable.
535
-
536
-
537
- if (fn.displayName && _frame.includes('<anonymous>')) {
538
- _frame = _frame.replace('<anonymous>', fn.displayName);
539
- }
540
-
541
- {
542
- if (typeof fn === 'function') {
543
- componentFrameCache.set(fn, _frame);
544
- }
545
- } // Return the line we found.
546
-
547
-
548
- return _frame;
549
- }
550
- } while (s >= 1 && c >= 0);
551
- }
552
-
553
- break;
554
- }
555
- }
556
- }
557
- } finally {
558
- reentry = false;
559
-
560
- {
561
- ReactCurrentDispatcher.current = previousDispatcher;
562
- reenableLogs();
563
- }
564
-
565
- Error.prepareStackTrace = previousPrepareStackTrace;
566
- } // Fallback to just using the name if we couldn't make it throw.
567
-
568
-
569
- var name = fn ? fn.displayName || fn.name : '';
570
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
571
-
572
- {
573
- if (typeof fn === 'function') {
574
- componentFrameCache.set(fn, syntheticFrame);
575
- }
576
- }
577
-
578
- return syntheticFrame;
579
- }
580
- function describeFunctionComponentFrame(fn, source, ownerFn) {
581
- {
582
- return describeNativeComponentFrame(fn, false);
583
- }
584
- }
585
-
586
- function shouldConstruct(Component) {
587
- var prototype = Component.prototype;
588
- return !!(prototype && prototype.isReactComponent);
589
- }
590
-
591
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
592
-
593
- if (type == null) {
594
- return '';
595
- }
596
-
597
- if (typeof type === 'function') {
598
- {
599
- return describeNativeComponentFrame(type, shouldConstruct(type));
600
- }
601
- }
602
-
603
- if (typeof type === 'string') {
604
- return describeBuiltInComponentFrame(type);
605
- }
606
-
607
- switch (type) {
608
- case REACT_SUSPENSE_TYPE:
609
- return describeBuiltInComponentFrame('Suspense');
610
-
611
- case REACT_SUSPENSE_LIST_TYPE:
612
- return describeBuiltInComponentFrame('SuspenseList');
613
- }
614
-
615
- if (typeof type === 'object') {
616
- switch (type.$$typeof) {
617
- case REACT_FORWARD_REF_TYPE:
618
- return describeFunctionComponentFrame(type.render);
619
-
620
- case REACT_MEMO_TYPE:
621
- // Memo may contain any component type so we recursively resolve it.
622
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
623
-
624
- case REACT_LAZY_TYPE:
625
- {
626
- var lazyComponent = type;
627
- var payload = lazyComponent._payload;
628
- var init = lazyComponent._init;
629
-
630
- try {
631
- // Lazy may contain any component type so we recursively resolve it.
632
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
633
- } catch (x) {}
634
- }
635
- }
636
- }
637
-
638
- return '';
639
- }
640
-
641
- var hasOwnProperty = Object.prototype.hasOwnProperty;
642
-
643
- var loggedTypeFailures = {};
644
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
645
-
646
- function setCurrentlyValidatingElement(element) {
647
- {
648
- if (element) {
649
- var owner = element._owner;
650
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
651
- ReactDebugCurrentFrame.setExtraStackFrame(stack);
652
- } else {
653
- ReactDebugCurrentFrame.setExtraStackFrame(null);
654
- }
655
- }
656
- }
657
-
658
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
659
- {
660
- // $FlowFixMe This is okay but Flow doesn't know it.
661
- var has = Function.call.bind(hasOwnProperty);
662
-
663
- for (var typeSpecName in typeSpecs) {
664
- if (has(typeSpecs, typeSpecName)) {
665
- var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
666
- // fail the render phase where it didn't fail before. So we log it.
667
- // After these have been cleaned up, we'll let them throw.
668
-
669
- try {
670
- // This is intentionally an invariant that gets caught. It's the same
671
- // behavior as without this statement except with a better message.
672
- if (typeof typeSpecs[typeSpecName] !== 'function') {
673
- // eslint-disable-next-line react-internal/prod-error-codes
674
- 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`.');
675
- err.name = 'Invariant Violation';
676
- throw err;
677
- }
678
-
679
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
680
- } catch (ex) {
681
- error$1 = ex;
682
- }
683
-
684
- if (error$1 && !(error$1 instanceof Error)) {
685
- setCurrentlyValidatingElement(element);
686
-
687
- 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);
688
-
689
- setCurrentlyValidatingElement(null);
690
- }
691
-
692
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
693
- // Only monitor this failure once because there tends to be a lot of the
694
- // same error.
695
- loggedTypeFailures[error$1.message] = true;
696
- setCurrentlyValidatingElement(element);
697
-
698
- error('Failed %s type: %s', location, error$1.message);
699
-
700
- setCurrentlyValidatingElement(null);
701
- }
702
- }
703
- }
704
- }
705
- }
706
-
707
- var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
708
-
709
- function isArray(a) {
710
- return isArrayImpl(a);
711
- }
712
-
713
- /*
714
- * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
715
- * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
716
- *
717
- * The functions in this module will throw an easier-to-understand,
718
- * easier-to-debug exception with a clear errors message message explaining the
719
- * problem. (Instead of a confusing exception thrown inside the implementation
720
- * of the `value` object).
721
- */
722
- // $FlowFixMe only called in DEV, so void return is not possible.
723
- function typeName(value) {
724
- {
725
- // toStringTag is needed for namespaced types like Temporal.Instant
726
- var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
727
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
728
- return type;
729
- }
730
- } // $FlowFixMe only called in DEV, so void return is not possible.
731
-
732
-
733
- function willCoercionThrow(value) {
734
- {
735
- try {
736
- testStringCoercion(value);
737
- return false;
738
- } catch (e) {
739
- return true;
740
- }
741
- }
742
- }
743
-
744
- function testStringCoercion(value) {
745
- // If you ended up here by following an exception call stack, here's what's
746
- // happened: you supplied an object or symbol value to React (as a prop, key,
747
- // DOM attribute, CSS property, string ref, etc.) and when React tried to
748
- // coerce it to a string using `'' + value`, an exception was thrown.
749
- //
750
- // The most common types that will cause this exception are `Symbol` instances
751
- // and Temporal objects like `Temporal.Instant`. But any object that has a
752
- // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
753
- // exception. (Library authors do this to prevent users from using built-in
754
- // numeric operators like `+` or comparison operators like `>=` because custom
755
- // methods are needed to perform accurate arithmetic or comparison.)
756
- //
757
- // To fix the problem, coerce this object or symbol value to a string before
758
- // passing it to React. The most reliable way is usually `String(value)`.
759
- //
760
- // To find which value is throwing, check the browser or debugger console.
761
- // Before this exception was thrown, there should be `console.error` output
762
- // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
763
- // problem and how that type was used: key, atrribute, input value prop, etc.
764
- // In most cases, this console output also shows the component and its
765
- // ancestor components where the exception happened.
766
- //
767
- // eslint-disable-next-line react-internal/safe-string-coercion
768
- return '' + value;
769
- }
770
- function checkKeyStringCoercion(value) {
771
- {
772
- if (willCoercionThrow(value)) {
773
- error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
774
-
775
- return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
776
- }
777
- }
778
- }
779
-
780
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
781
- var RESERVED_PROPS = {
782
- key: true,
783
- ref: true,
784
- __self: true,
785
- __source: true
786
- };
787
- var specialPropKeyWarningShown;
788
- var specialPropRefWarningShown;
789
-
790
- function hasValidRef(config) {
791
- {
792
- if (hasOwnProperty.call(config, 'ref')) {
793
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
794
-
795
- if (getter && getter.isReactWarning) {
796
- return false;
797
- }
798
- }
799
- }
800
-
801
- return config.ref !== undefined;
802
- }
803
-
804
- function hasValidKey(config) {
805
- {
806
- if (hasOwnProperty.call(config, 'key')) {
807
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
808
-
809
- if (getter && getter.isReactWarning) {
810
- return false;
811
- }
812
- }
813
- }
814
-
815
- return config.key !== undefined;
816
- }
817
-
818
- function warnIfStringRefCannotBeAutoConverted(config, self) {
819
- {
820
- if (typeof config.ref === 'string' && ReactCurrentOwner.current && self) ;
821
- }
822
- }
823
-
824
- function defineKeyPropWarningGetter(props, displayName) {
825
- {
826
- var warnAboutAccessingKey = function () {
827
- if (!specialPropKeyWarningShown) {
828
- specialPropKeyWarningShown = true;
829
-
830
- 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);
831
- }
832
- };
833
-
834
- warnAboutAccessingKey.isReactWarning = true;
835
- Object.defineProperty(props, 'key', {
836
- get: warnAboutAccessingKey,
837
- configurable: true
838
- });
839
- }
840
- }
841
-
842
- function defineRefPropWarningGetter(props, displayName) {
843
- {
844
- var warnAboutAccessingRef = function () {
845
- if (!specialPropRefWarningShown) {
846
- specialPropRefWarningShown = true;
847
-
848
- 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);
849
- }
850
- };
851
-
852
- warnAboutAccessingRef.isReactWarning = true;
853
- Object.defineProperty(props, 'ref', {
854
- get: warnAboutAccessingRef,
855
- configurable: true
856
- });
857
- }
858
- }
859
- /**
860
- * Factory method to create a new React element. This no longer adheres to
861
- * the class pattern, so do not use new to call it. Also, instanceof check
862
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
863
- * if something is a React Element.
864
- *
865
- * @param {*} type
866
- * @param {*} props
867
- * @param {*} key
868
- * @param {string|object} ref
869
- * @param {*} owner
870
- * @param {*} self A *temporary* helper to detect places where `this` is
871
- * different from the `owner` when React.createElement is called, so that we
872
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
873
- * functions, and as long as `this` and owner are the same, there will be no
874
- * change in behavior.
875
- * @param {*} source An annotation object (added by a transpiler or otherwise)
876
- * indicating filename, line number, and/or other information.
877
- * @internal
878
- */
879
-
880
-
881
- var ReactElement = function (type, key, ref, self, source, owner, props) {
882
- var element = {
883
- // This tag allows us to uniquely identify this as a React Element
884
- $$typeof: REACT_ELEMENT_TYPE,
885
- // Built-in properties that belong on the element
886
- type: type,
887
- key: key,
888
- ref: ref,
889
- props: props,
890
- // Record the component responsible for creating this element.
891
- _owner: owner
892
- };
893
-
894
- {
895
- // The validation flag is currently mutative. We put it on
896
- // an external backing store so that we can freeze the whole object.
897
- // This can be replaced with a WeakMap once they are implemented in
898
- // commonly used development environments.
899
- element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
900
- // the validation flag non-enumerable (where possible, which should
901
- // include every environment we run tests in), so the test framework
902
- // ignores it.
903
-
904
- Object.defineProperty(element._store, 'validated', {
905
- configurable: false,
906
- enumerable: false,
907
- writable: true,
908
- value: false
909
- }); // self and source are DEV only properties.
910
-
911
- Object.defineProperty(element, '_self', {
912
- configurable: false,
913
- enumerable: false,
914
- writable: false,
915
- value: self
916
- }); // Two elements created in two different places should be considered
917
- // equal for testing purposes and therefore we hide it from enumeration.
918
-
919
- Object.defineProperty(element, '_source', {
920
- configurable: false,
921
- enumerable: false,
922
- writable: false,
923
- value: source
924
- });
925
-
926
- if (Object.freeze) {
927
- Object.freeze(element.props);
928
- Object.freeze(element);
929
- }
930
- }
931
-
932
- return element;
933
- };
934
- /**
935
- * https://github.com/reactjs/rfcs/pull/107
936
- * @param {*} type
937
- * @param {object} props
938
- * @param {string} key
939
- */
940
-
941
- function jsxDEV(type, config, maybeKey, source, self) {
942
- {
943
- var propName; // Reserved names are extracted
944
-
945
- var props = {};
946
- var key = null;
947
- var ref = null; // Currently, key can be spread in as a prop. This causes a potential
948
- // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
949
- // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
950
- // but as an intermediary step, we will use jsxDEV for everything except
951
- // <div {...props} key="Hi" />, because we aren't currently able to tell if
952
- // key is explicitly declared to be undefined or not.
953
-
954
- if (maybeKey !== undefined) {
955
- {
956
- checkKeyStringCoercion(maybeKey);
957
- }
958
-
959
- key = '' + maybeKey;
960
- }
961
-
962
- if (hasValidKey(config)) {
963
- {
964
- checkKeyStringCoercion(config.key);
965
- }
966
-
967
- key = '' + config.key;
968
- }
969
-
970
- if (hasValidRef(config)) {
971
- ref = config.ref;
972
- warnIfStringRefCannotBeAutoConverted(config, self);
973
- } // Remaining properties are added to a new props object
974
-
975
-
976
- for (propName in config) {
977
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
978
- props[propName] = config[propName];
979
- }
980
- } // Resolve default props
981
-
982
-
983
- if (type && type.defaultProps) {
984
- var defaultProps = type.defaultProps;
985
-
986
- for (propName in defaultProps) {
987
- if (props[propName] === undefined) {
988
- props[propName] = defaultProps[propName];
989
- }
990
- }
991
- }
992
-
993
- if (key || ref) {
994
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
995
-
996
- if (key) {
997
- defineKeyPropWarningGetter(props, displayName);
998
- }
999
-
1000
- if (ref) {
1001
- defineRefPropWarningGetter(props, displayName);
1002
- }
1003
- }
1004
-
1005
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
1006
- }
1007
- }
1008
-
1009
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
1010
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
1011
-
1012
- function setCurrentlyValidatingElement$1(element) {
1013
- {
1014
- if (element) {
1015
- var owner = element._owner;
1016
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1017
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
1018
- } else {
1019
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
1020
- }
1021
- }
1022
- }
1023
-
1024
- var propTypesMisspellWarningShown;
1025
-
1026
- {
1027
- propTypesMisspellWarningShown = false;
1028
- }
1029
- /**
1030
- * Verifies the object is a ReactElement.
1031
- * See https://reactjs.org/docs/react-api.html#isvalidelement
1032
- * @param {?object} object
1033
- * @return {boolean} True if `object` is a ReactElement.
1034
- * @final
1035
- */
1036
-
1037
-
1038
- function isValidElement(object) {
1039
- {
1040
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1041
- }
1042
- }
1043
-
1044
- function getDeclarationErrorAddendum() {
1045
- {
1046
- if (ReactCurrentOwner$1.current) {
1047
- var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
1048
-
1049
- if (name) {
1050
- return '\n\nCheck the render method of `' + name + '`.';
1051
- }
1052
- }
1053
-
1054
- return '';
1055
- }
1056
- }
1057
-
1058
- function getSourceInfoErrorAddendum(source) {
1059
- {
1060
-
1061
- return '';
1062
- }
1063
- }
1064
- /**
1065
- * Warn if there's no key explicitly set on dynamic arrays of children or
1066
- * object keys are not valid. This allows us to keep track of children between
1067
- * updates.
1068
- */
1069
-
1070
-
1071
- var ownerHasKeyUseWarning = {};
1072
-
1073
- function getCurrentComponentErrorInfo(parentType) {
1074
- {
1075
- var info = getDeclarationErrorAddendum();
1076
-
1077
- if (!info) {
1078
- var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
1079
-
1080
- if (parentName) {
1081
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1082
- }
1083
- }
1084
-
1085
- return info;
1086
- }
1087
- }
1088
- /**
1089
- * Warn if the element doesn't have an explicit key assigned to it.
1090
- * This element is in an array. The array could grow and shrink or be
1091
- * reordered. All children that haven't already been validated are required to
1092
- * have a "key" property assigned to it. Error statuses are cached so a warning
1093
- * will only be shown once.
1094
- *
1095
- * @internal
1096
- * @param {ReactElement} element Element that requires a key.
1097
- * @param {*} parentType element's parent's type.
1098
- */
1099
-
1100
-
1101
- function validateExplicitKey(element, parentType) {
1102
- {
1103
- if (!element._store || element._store.validated || element.key != null) {
1104
- return;
1105
- }
1106
-
1107
- element._store.validated = true;
1108
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1109
-
1110
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1111
- return;
1112
- }
1113
-
1114
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
1115
- // property, it may be the creator of the child that's responsible for
1116
- // assigning it a key.
1117
-
1118
- var childOwner = '';
1119
-
1120
- if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
1121
- // Give the component that originally created this child.
1122
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1123
- }
1124
-
1125
- setCurrentlyValidatingElement$1(element);
1126
-
1127
- 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);
1128
-
1129
- setCurrentlyValidatingElement$1(null);
1130
- }
1131
- }
1132
- /**
1133
- * Ensure that every element either is passed in a static location, in an
1134
- * array with an explicit keys property defined, or in an object literal
1135
- * with valid key property.
1136
- *
1137
- * @internal
1138
- * @param {ReactNode} node Statically passed child of any type.
1139
- * @param {*} parentType node's parent's type.
1140
- */
1141
-
1142
-
1143
- function validateChildKeys(node, parentType) {
1144
- {
1145
- if (typeof node !== 'object') {
1146
- return;
1147
- }
1148
-
1149
- if (isArray(node)) {
1150
- for (var i = 0; i < node.length; i++) {
1151
- var child = node[i];
1152
-
1153
- if (isValidElement(child)) {
1154
- validateExplicitKey(child, parentType);
1155
- }
1156
- }
1157
- } else if (isValidElement(node)) {
1158
- // This element was passed in a valid location.
1159
- if (node._store) {
1160
- node._store.validated = true;
1161
- }
1162
- } else if (node) {
1163
- var iteratorFn = getIteratorFn(node);
1164
-
1165
- if (typeof iteratorFn === 'function') {
1166
- // Entry iterators used to provide implicit keys,
1167
- // but now we print a separate warning for them later.
1168
- if (iteratorFn !== node.entries) {
1169
- var iterator = iteratorFn.call(node);
1170
- var step;
1171
-
1172
- while (!(step = iterator.next()).done) {
1173
- if (isValidElement(step.value)) {
1174
- validateExplicitKey(step.value, parentType);
1175
- }
1176
- }
1177
- }
1178
- }
1179
- }
1180
- }
1181
- }
1182
- /**
1183
- * Given an element, validate that its props follow the propTypes definition,
1184
- * provided by the type.
1185
- *
1186
- * @param {ReactElement} element
1187
- */
1188
-
1189
-
1190
- function validatePropTypes(element) {
1191
- {
1192
- var type = element.type;
1193
-
1194
- if (type === null || type === undefined || typeof type === 'string') {
1195
- return;
1196
- }
1197
-
1198
- var propTypes;
1199
-
1200
- if (typeof type === 'function') {
1201
- propTypes = type.propTypes;
1202
- } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1203
- // Inner props are checked in the reconciler.
1204
- type.$$typeof === REACT_MEMO_TYPE)) {
1205
- propTypes = type.propTypes;
1206
- } else {
1207
- return;
1208
- }
1209
-
1210
- if (propTypes) {
1211
- // Intentionally inside to avoid triggering lazy initializers:
1212
- var name = getComponentNameFromType(type);
1213
- checkPropTypes(propTypes, element.props, 'prop', name, element);
1214
- } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
1215
- propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
1216
-
1217
- var _name = getComponentNameFromType(type);
1218
-
1219
- error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
1220
- }
1221
-
1222
- if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
1223
- error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
1224
- }
1225
- }
1226
- }
1227
- /**
1228
- * Given a fragment, validate that it can only be provided with fragment props
1229
- * @param {ReactElement} fragment
1230
- */
1231
-
1232
-
1233
- function validateFragmentProps(fragment) {
1234
- {
1235
- var keys = Object.keys(fragment.props);
1236
-
1237
- for (var i = 0; i < keys.length; i++) {
1238
- var key = keys[i];
1239
-
1240
- if (key !== 'children' && key !== 'key') {
1241
- setCurrentlyValidatingElement$1(fragment);
1242
-
1243
- error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
1244
-
1245
- setCurrentlyValidatingElement$1(null);
1246
- break;
1247
- }
1248
- }
1249
-
1250
- if (fragment.ref !== null) {
1251
- setCurrentlyValidatingElement$1(fragment);
1252
-
1253
- error('Invalid attribute `ref` supplied to `React.Fragment`.');
1254
-
1255
- setCurrentlyValidatingElement$1(null);
1256
- }
1257
- }
1258
- }
1259
-
1260
- var didWarnAboutKeySpread = {};
1261
- function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
1262
- {
1263
- var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
1264
- // succeed and there will likely be errors in render.
1265
-
1266
- if (!validType) {
1267
- var info = '';
1268
-
1269
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
1270
- 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.";
1271
- }
1272
-
1273
- var sourceInfo = getSourceInfoErrorAddendum();
1274
-
1275
- if (sourceInfo) {
1276
- info += sourceInfo;
1277
- } else {
1278
- info += getDeclarationErrorAddendum();
1279
- }
1280
-
1281
- var typeString;
1282
-
1283
- if (type === null) {
1284
- typeString = 'null';
1285
- } else if (isArray(type)) {
1286
- typeString = 'array';
1287
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
1288
- typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
1289
- info = ' Did you accidentally export a JSX literal instead of a component?';
1290
- } else {
1291
- typeString = typeof type;
1292
- }
1293
-
1294
- 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);
1295
- }
1296
-
1297
- var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
1298
- // TODO: Drop this when these are no longer allowed as the type argument.
1299
-
1300
- if (element == null) {
1301
- return element;
1302
- } // Skip key warning if the type isn't valid since our key validation logic
1303
- // doesn't expect a non-string/function type and can throw confusing errors.
1304
- // We don't want exception behavior to differ between dev and prod.
1305
- // (Rendering will throw with a helpful message and as soon as the type is
1306
- // fixed, the key warnings will appear.)
1307
-
1308
-
1309
- if (validType) {
1310
- var children = props.children;
1311
-
1312
- if (children !== undefined) {
1313
- if (isStaticChildren) {
1314
- if (isArray(children)) {
1315
- for (var i = 0; i < children.length; i++) {
1316
- validateChildKeys(children[i], type);
1317
- }
1318
-
1319
- if (Object.freeze) {
1320
- Object.freeze(children);
1321
- }
1322
- } else {
1323
- 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.');
1324
- }
1325
- } else {
1326
- validateChildKeys(children, type);
1327
- }
1328
- }
1329
- }
1330
-
1331
- {
1332
- if (hasOwnProperty.call(props, 'key')) {
1333
- var componentName = getComponentNameFromType(type);
1334
- var keys = Object.keys(props).filter(function (k) {
1335
- return k !== 'key';
1336
- });
1337
- var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
1338
-
1339
- if (!didWarnAboutKeySpread[componentName + beforeExample]) {
1340
- var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
1341
-
1342
- 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);
1343
-
1344
- didWarnAboutKeySpread[componentName + beforeExample] = true;
1345
- }
1346
- }
1347
- }
1348
-
1349
- if (type === REACT_FRAGMENT_TYPE) {
1350
- validateFragmentProps(element);
1351
- } else {
1352
- validatePropTypes(element);
1353
- }
1354
-
1355
- return element;
1356
- }
1357
- } // These two functions exist to still get child warnings in dev
1358
- // even with the prod transform. This means that jsxDEV is purely
1359
- // opt-in behavior for better messages but that we won't stop
1360
- // giving you warnings if you use production apis.
1361
-
1362
- function jsxWithValidationStatic(type, props, key) {
1363
- {
1364
- return jsxWithValidation(type, props, key, true);
1365
- }
1366
- }
1367
- function jsxWithValidationDynamic(type, props, key) {
1368
- {
1369
- return jsxWithValidation(type, props, key, false);
1370
- }
1371
- }
1372
-
1373
- var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
1374
- // for now we can ship identical prod functions
1375
-
1376
- var jsxs = jsxWithValidationStatic ;
1377
-
1378
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
1379
- reactJsxRuntime_development.jsx = jsx;
1380
- reactJsxRuntime_development.jsxs = jsxs;
1381
- })();
1382
- }
1383
- return reactJsxRuntime_development;
1384
- }
1385
-
1386
- var hasRequiredJsxRuntime;
1387
-
1388
- function requireJsxRuntime () {
1389
- if (hasRequiredJsxRuntime) return jsxRuntime.exports;
1390
- hasRequiredJsxRuntime = 1;
1391
-
1392
- if (process.env.NODE_ENV === 'production') {
1393
- jsxRuntime.exports = requireReactJsxRuntime_production_min();
1394
- } else {
1395
- jsxRuntime.exports = requireReactJsxRuntime_development();
1396
- }
1397
- return jsxRuntime.exports;
1398
- }
1399
-
1400
- var jsxRuntimeExports = requireJsxRuntime();
1401
-
1402
- const HamburgerIcon = (_a) => {
1403
- var { size = 24, fill = 'black' } = _a, props = __rest(_a, ["size", "fill"]);
1404
- return (jsxRuntimeExports.jsxs("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 24 24", fill: "none" }, props, { children: [jsxRuntimeExports.jsx("mask", { id: "mask0", style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "24", height: "24", children: jsxRuntimeExports.jsx("rect", { width: "24", height: "24", fill: "#D9D9D9" }) }), jsxRuntimeExports.jsx("g", { mask: "url(#mask0)", children: jsxRuntimeExports.jsx("path", { d: "M4.25 7C4.0375 7 3.85942 6.92808 3.71575 6.78425C3.57192 6.64042 3.5 6.46225 3.5 6.24975C3.5 6.03708 3.57192 5.859 3.71575 5.7155C3.85942 5.57183 4.0375 5.5 4.25 5.5H19.75C19.9625 5.5 20.1406 5.57192 20.2843 5.71575C20.4281 5.85958 20.5 6.03775 20.5 6.25025C20.5 6.46292 20.4281 6.641 20.2843 6.7845C20.1406 6.92817 19.9625 7 19.75 7H4.25ZM4.25 18.5C4.0375 18.5 3.85942 18.4281 3.71575 18.2843C3.57192 18.1404 3.5 17.9622 3.5 17.7498C3.5 17.5371 3.57192 17.359 3.71575 17.2155C3.85942 17.0718 4.0375 17 4.25 17H19.75C19.9625 17 20.1406 17.0719 20.2843 17.2158C20.4281 17.3596 20.5 17.5378 20.5 17.7503C20.5 17.9629 20.4281 18.141 20.2843 18.2845C20.1406 18.4282 19.9625 18.5 19.75 18.5H4.25ZM4.25 12.75C4.0375 12.75 3.85942 12.6781 3.71575 12.5342C3.57192 12.3904 3.5 12.2122 3.5 11.9997C3.5 11.7871 3.57192 11.609 3.71575 11.4655C3.85942 11.3218 4.0375 11.25 4.25 11.25H19.75C19.9625 11.25 20.1406 11.3219 20.2843 11.4658C20.4281 11.6096 20.5 11.7878 20.5 12.0003C20.5 12.2129 20.4281 12.391 20.2843 12.5345C20.1406 12.6782 19.9625 12.75 19.75 12.75H4.25Z", fill: "black" }) })] })));
1405
- };
1406
-
1407
- const SearchIcon = (_a) => {
1408
- var { size = 24, fill = 'black' } = _a, props = __rest(_a, ["size", "fill"]);
1409
- return (jsxRuntimeExports.jsxs("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 24 24", fill: "none" }, props, { children: [jsxRuntimeExports.jsx("mask", { id: "mask0", style: { maskType: 'alpha' }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "24", height: "24", children: jsxRuntimeExports.jsx("rect", { width: "24", height: "24", fill: "#D9D9D9" }) }), jsxRuntimeExports.jsx("g", { mask: "url(#mask0)", children: jsxRuntimeExports.jsx("path", { d: "M9.51955 15.6153C7.81188 15.6153 6.36571 15.023 5.18105 13.8385C3.99655 12.6538 3.4043 11.2077 3.4043 9.50002C3.4043 7.79235 3.99655 6.34618 5.18105 5.16152C6.36571 3.97702 7.81188 3.38477 9.51955 3.38477C11.2272 3.38477 12.6734 3.97702 13.858 5.16152C15.0425 6.34618 15.6348 7.79235 15.6348 9.50002C15.6348 10.2142 15.515 10.8963 15.2753 11.5463C15.0355 12.1963 14.7155 12.7616 14.3155 13.2423L20.0695 18.9963C20.208 19.1346 20.2789 19.3086 20.282 19.5183C20.2852 19.7279 20.2144 19.9052 20.0695 20.05C19.9247 20.1948 19.749 20.2673 19.5425 20.2673C19.3362 20.2673 19.1606 20.1948 19.0158 20.05L13.2618 14.296C12.7618 14.7088 12.1868 15.0319 11.5368 15.2653C10.8868 15.4986 10.2144 15.6153 9.51955 15.6153ZM9.51955 14.1155C10.808 14.1155 11.8994 13.6683 12.7935 12.774C13.6879 11.8798 14.135 10.7885 14.135 9.50002C14.135 8.21152 13.6879 7.12018 12.7935 6.22601C11.8994 5.33168 10.808 4.88452 9.51955 4.88452C8.23105 4.88452 7.13971 5.33168 6.24555 6.22601C5.35121 7.12018 4.90405 8.21152 4.90405 9.50002C4.90405 10.7885 5.35121 11.8798 6.24555 12.774C7.13971 13.6683 8.23105 14.1155 9.51955 14.1155Z", fill: "black" }) })] })));
1410
- };
1411
-
1412
- const UserIcon = (_a) => {
1413
- var { width, height } = _a, props = __rest(_a, ["width", "height"]);
1414
- const size = width || height || 24;
1415
- return (jsxRuntimeExports.jsxs("svg", Object.assign({ xmlns: "http://www.w3.org/2000/svg", width: size, height: size, viewBox: "0 0 24 24", fill: "none" }, props, { children: [jsxRuntimeExports.jsx("mask", { id: "mask0_142_494", style: { maskType: "alpha" }, maskUnits: "userSpaceOnUse", x: "0", y: "0", width: "24", height: "24", children: jsxRuntimeExports.jsx("rect", { width: "24", height: "24", fill: "#D9D9D9" }) }), jsxRuntimeExports.jsx("g", { mask: "url(#mask0_142_494)", children: jsxRuntimeExports.jsx("path", { d: "M6.023 17.2923C6.873 16.6616 7.799 16.1635 8.801 15.798C9.80283 15.4327 10.8692 15.25 12 15.25C13.1308 15.25 14.1972 15.4327 15.199 15.798C16.201 16.1635 17.127 16.6616 17.977 17.2923C18.5987 16.6089 19.0912 15.8179 19.4548 14.9192C19.8183 14.0206 20 13.0475 20 12C20 9.78333 19.2208 7.89583 17.6625 6.3375C16.1042 4.77917 14.2167 4 12 4C9.78333 4 7.89583 4.77917 6.3375 6.3375C4.77917 7.89583 4 9.78333 4 12C4 13.0475 4.18175 14.0206 4.54525 14.9192C4.90875 15.8179 5.40133 16.6089 6.023 17.2923ZM12.0003 12.75C11.0873 12.75 10.3173 12.4367 9.6905 11.81C9.0635 11.1832 8.75 10.4133 8.75 9.50025C8.75 8.58725 9.06333 7.81733 9.69 7.1905C10.3168 6.5635 11.0868 6.25 11.9998 6.25C12.9128 6.25 13.6827 6.56333 14.3095 7.19C14.9365 7.81683 15.25 8.58675 15.25 9.49975C15.25 10.4127 14.9367 11.1827 14.31 11.8095C13.6832 12.4365 12.9133 12.75 12.0003 12.75ZM12 21.5C10.6808 21.5 9.44333 21.2519 8.2875 20.7558C7.13167 20.2596 6.12625 19.5839 5.27125 18.7288C4.41608 17.8738 3.74042 16.8683 3.24425 15.7125C2.74808 14.5567 2.5 13.3192 2.5 12C2.5 10.6808 2.74808 9.44333 3.24425 8.2875C3.74042 7.13167 4.41608 6.12625 5.27125 5.27125C6.12625 4.41608 7.13167 3.74042 8.2875 3.24425C9.44333 2.74808 10.6808 2.5 12 2.5C13.3192 2.5 14.5567 2.74808 15.7125 3.24425C16.8683 3.74042 17.8738 4.41608 18.7288 5.27125C19.5839 6.12625 20.2596 7.13167 20.7558 8.2875C21.2519 9.44333 21.5 10.6808 21.5 12C21.5 13.3192 21.2519 14.5567 20.7558 15.7125C20.2596 16.8683 19.5839 17.8738 18.7288 18.7288C17.8738 19.5839 16.8683 20.2596 15.7125 20.7558C14.5567 21.2519 13.3192 21.5 12 21.5ZM12 20C12.9025 20 13.7727 19.8548 14.6105 19.5645C15.4483 19.274 16.1923 18.8679 16.8422 18.3462C16.1923 17.8436 15.458 17.4519 14.6395 17.1712C13.8208 16.8904 12.941 16.75 12 16.75C11.059 16.75 10.1776 16.8888 9.35575 17.1663C8.53392 17.4439 7.80125 17.8372 7.15775 18.3462C7.80775 18.8679 8.55167 19.274 9.3895 19.5645C10.2273 19.8548 11.0975 20 12 20ZM12 11.25C12.4975 11.25 12.9135 11.0827 13.248 10.748C13.5827 10.4135 13.75 9.9975 13.75 9.5C13.75 9.0025 13.5827 8.5865 13.248 8.252C12.9135 7.91733 12.4975 7.75 12 7.75C11.5025 7.75 11.0865 7.91733 10.752 8.252C10.4173 8.5865 10.25 9.0025 10.25 9.5C10.25 9.9975 10.4173 10.4135 10.752 10.748C11.0865 11.0827 11.5025 11.25 12 11.25Z", fill: "black" }) })] })));
1416
- };
1417
-
1418
- exports.Hamburger = HamburgerIcon;
1419
- exports.Search = SearchIcon;
1420
- exports.User = UserIcon;
1421
- //# sourceMappingURL=index.js.map