@wlloyalty/wll-react-sdk 1.0.65 → 1.0.67

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/web.js CHANGED
@@ -2,36 +2,1438 @@
2
2
 
3
3
  var React = require('react');
4
4
  var Color = require('color');
5
- var LucideIcons = require('lucide-react');
5
+ var LucideReactIcons = require('lucide-react');
6
6
 
7
7
  function _interopNamespaceDefault(e) {
8
- var n = Object.create(null);
9
- if (e) {
10
- Object.keys(e).forEach(function (k) {
11
- if (k !== 'default') {
12
- var d = Object.getOwnPropertyDescriptor(e, k);
13
- Object.defineProperty(n, k, d.get ? d : {
14
- enumerable: true,
15
- get: function () { return e[k]; }
16
- });
17
- }
18
- });
19
- }
20
- n.default = e;
21
- return Object.freeze(n);
8
+ var n = Object.create(null);
9
+ if (e) {
10
+ Object.keys(e).forEach(function (k) {
11
+ if (k !== 'default') {
12
+ var d = Object.getOwnPropertyDescriptor(e, k);
13
+ Object.defineProperty(n, k, d.get ? d : {
14
+ enumerable: true,
15
+ get: function () { return e[k]; }
16
+ });
17
+ }
18
+ });
19
+ }
20
+ n.default = e;
21
+ return Object.freeze(n);
22
22
  }
23
23
 
24
24
  var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
25
- var LucideIcons__namespace = /*#__PURE__*/_interopNamespaceDefault(LucideIcons);
25
+ var LucideReactIcons__namespace = /*#__PURE__*/_interopNamespaceDefault(LucideReactIcons);
26
+
27
+ function getDefaultExportFromCjs (x) {
28
+ return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
29
+ }
30
+
31
+ function getAugmentedNamespace(n) {
32
+ if (n.__esModule) return n;
33
+ var f = n.default;
34
+ if (typeof f == "function") {
35
+ var a = function a () {
36
+ if (this instanceof a) {
37
+ return Reflect.construct(f, arguments, this.constructor);
38
+ }
39
+ return f.apply(this, arguments);
40
+ };
41
+ a.prototype = f.prototype;
42
+ } else a = {};
43
+ Object.defineProperty(a, '__esModule', {value: true});
44
+ Object.keys(n).forEach(function (k) {
45
+ var d = Object.getOwnPropertyDescriptor(n, k);
46
+ Object.defineProperty(a, k, d.get ? d : {
47
+ enumerable: true,
48
+ get: function () {
49
+ return n[k];
50
+ }
51
+ });
52
+ });
53
+ return a;
54
+ }
55
+
56
+ var jsxRuntime = {exports: {}};
57
+
58
+ var reactJsxRuntime_production_min = {};
59
+
60
+ /**
61
+ * @license React
62
+ * react-jsx-runtime.production.min.js
63
+ *
64
+ * Copyright (c) Facebook, Inc. and its affiliates.
65
+ *
66
+ * This source code is licensed under the MIT license found in the
67
+ * LICENSE file in the root directory of this source tree.
68
+ */
69
+
70
+ var hasRequiredReactJsxRuntime_production_min;
71
+
72
+ function requireReactJsxRuntime_production_min () {
73
+ if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
74
+ hasRequiredReactJsxRuntime_production_min = 1;
75
+ 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:!0,ref:!0,__self:!0,__source:!0};
76
+ 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;
77
+ return reactJsxRuntime_production_min;
78
+ }
79
+
80
+ var reactJsxRuntime_development = {};
81
+
82
+ /**
83
+ * @license React
84
+ * react-jsx-runtime.development.js
85
+ *
86
+ * Copyright (c) Facebook, Inc. and its affiliates.
87
+ *
88
+ * This source code is licensed under the MIT license found in the
89
+ * LICENSE file in the root directory of this source tree.
90
+ */
91
+
92
+ var hasRequiredReactJsxRuntime_development;
93
+
94
+ function requireReactJsxRuntime_development () {
95
+ if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
96
+ hasRequiredReactJsxRuntime_development = 1;
97
+
98
+ if (process.env.NODE_ENV !== "production") {
99
+ (function() {
100
+
101
+ var React$1 = React;
102
+
103
+ // ATTENTION
104
+ // When adding new symbols to this file,
105
+ // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
106
+ // The Symbol used to tag the ReactElement-like types.
107
+ var REACT_ELEMENT_TYPE = Symbol.for('react.element');
108
+ var REACT_PORTAL_TYPE = Symbol.for('react.portal');
109
+ var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
110
+ var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
111
+ var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
112
+ var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
113
+ var REACT_CONTEXT_TYPE = Symbol.for('react.context');
114
+ var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
115
+ var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
116
+ var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
117
+ var REACT_MEMO_TYPE = Symbol.for('react.memo');
118
+ var REACT_LAZY_TYPE = Symbol.for('react.lazy');
119
+ var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
120
+ var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
121
+ var FAUX_ITERATOR_SYMBOL = '@@iterator';
122
+ function getIteratorFn(maybeIterable) {
123
+ if (maybeIterable === null || typeof maybeIterable !== 'object') {
124
+ return null;
125
+ }
126
+
127
+ var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
128
+
129
+ if (typeof maybeIterator === 'function') {
130
+ return maybeIterator;
131
+ }
132
+
133
+ return null;
134
+ }
135
+
136
+ var ReactSharedInternals = React$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
137
+
138
+ function error(format) {
139
+ {
140
+ {
141
+ for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
142
+ args[_key2 - 1] = arguments[_key2];
143
+ }
144
+
145
+ printWarning('error', format, args);
146
+ }
147
+ }
148
+ }
149
+
150
+ function printWarning(level, format, args) {
151
+ // When changing this logic, you might want to also
152
+ // update consoleWithStackDev.www.js as well.
153
+ {
154
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
155
+ var stack = ReactDebugCurrentFrame.getStackAddendum();
156
+
157
+ if (stack !== '') {
158
+ format += '%s';
159
+ args = args.concat([stack]);
160
+ } // eslint-disable-next-line react-internal/safe-string-coercion
161
+
162
+
163
+ var argsWithFormat = args.map(function (item) {
164
+ return String(item);
165
+ }); // Careful: RN currently depends on this prefix
166
+
167
+ argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
168
+ // breaks IE9: https://github.com/facebook/react/issues/13610
169
+ // eslint-disable-next-line react-internal/no-production-logging
170
+
171
+ Function.prototype.apply.call(console[level], console, argsWithFormat);
172
+ }
173
+ }
174
+
175
+ // -----------------------------------------------------------------------------
176
+
177
+ var enableScopeAPI = false; // Experimental Create Event Handle API.
178
+ var enableCacheElement = false;
179
+ var enableTransitionTracing = false; // No known bugs, but needs performance testing
180
+
181
+ var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
182
+ // stuff. Intended to enable React core members to more easily debug scheduling
183
+ // issues in DEV builds.
184
+
185
+ var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
186
+
187
+ var REACT_MODULE_REFERENCE;
188
+
189
+ {
190
+ REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
191
+ }
192
+
193
+ function isValidElementType(type) {
194
+ if (typeof type === 'string' || typeof type === 'function') {
195
+ return true;
196
+ } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
197
+
198
+
199
+ 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 ) {
200
+ return true;
201
+ }
202
+
203
+ if (typeof type === 'object' && type !== null) {
204
+ 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
205
+ // types supported by any Flight configuration anywhere since
206
+ // we don't know which Flight build this will end up being used
207
+ // with.
208
+ type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
209
+ return true;
210
+ }
211
+ }
212
+
213
+ return false;
214
+ }
215
+
216
+ function getWrappedName(outerType, innerType, wrapperName) {
217
+ var displayName = outerType.displayName;
218
+
219
+ if (displayName) {
220
+ return displayName;
221
+ }
222
+
223
+ var functionName = innerType.displayName || innerType.name || '';
224
+ return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
225
+ } // Keep in sync with react-reconciler/getComponentNameFromFiber
226
+
227
+
228
+ function getContextName(type) {
229
+ return type.displayName || 'Context';
230
+ } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
231
+
232
+
233
+ function getComponentNameFromType(type) {
234
+ if (type == null) {
235
+ // Host root, text node or just invalid type.
236
+ return null;
237
+ }
238
+
239
+ {
240
+ if (typeof type.tag === 'number') {
241
+ error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
242
+ }
243
+ }
244
+
245
+ if (typeof type === 'function') {
246
+ return type.displayName || type.name || null;
247
+ }
248
+
249
+ if (typeof type === 'string') {
250
+ return type;
251
+ }
252
+
253
+ switch (type) {
254
+ case REACT_FRAGMENT_TYPE:
255
+ return 'Fragment';
256
+
257
+ case REACT_PORTAL_TYPE:
258
+ return 'Portal';
259
+
260
+ case REACT_PROFILER_TYPE:
261
+ return 'Profiler';
262
+
263
+ case REACT_STRICT_MODE_TYPE:
264
+ return 'StrictMode';
265
+
266
+ case REACT_SUSPENSE_TYPE:
267
+ return 'Suspense';
268
+
269
+ case REACT_SUSPENSE_LIST_TYPE:
270
+ return 'SuspenseList';
271
+
272
+ }
273
+
274
+ if (typeof type === 'object') {
275
+ switch (type.$$typeof) {
276
+ case REACT_CONTEXT_TYPE:
277
+ var context = type;
278
+ return getContextName(context) + '.Consumer';
279
+
280
+ case REACT_PROVIDER_TYPE:
281
+ var provider = type;
282
+ return getContextName(provider._context) + '.Provider';
26
283
 
27
- function _extends$1() {
28
- return _extends$1 = Object.assign ? Object.assign.bind() : function (n) {
284
+ case REACT_FORWARD_REF_TYPE:
285
+ return getWrappedName(type, type.render, 'ForwardRef');
286
+
287
+ case REACT_MEMO_TYPE:
288
+ var outerName = type.displayName || null;
289
+
290
+ if (outerName !== null) {
291
+ return outerName;
292
+ }
293
+
294
+ return getComponentNameFromType(type.type) || 'Memo';
295
+
296
+ case REACT_LAZY_TYPE:
297
+ {
298
+ var lazyComponent = type;
299
+ var payload = lazyComponent._payload;
300
+ var init = lazyComponent._init;
301
+
302
+ try {
303
+ return getComponentNameFromType(init(payload));
304
+ } catch (x) {
305
+ return null;
306
+ }
307
+ }
308
+
309
+ // eslint-disable-next-line no-fallthrough
310
+ }
311
+ }
312
+
313
+ return null;
314
+ }
315
+
316
+ var assign = Object.assign;
317
+
318
+ // Helpers to patch console.logs to avoid logging during side-effect free
319
+ // replaying on render function. This currently only patches the object
320
+ // lazily which won't cover if the log function was extracted eagerly.
321
+ // We could also eagerly patch the method.
322
+ var disabledDepth = 0;
323
+ var prevLog;
324
+ var prevInfo;
325
+ var prevWarn;
326
+ var prevError;
327
+ var prevGroup;
328
+ var prevGroupCollapsed;
329
+ var prevGroupEnd;
330
+
331
+ function disabledLog() {}
332
+
333
+ disabledLog.__reactDisabledLog = true;
334
+ function disableLogs() {
335
+ {
336
+ if (disabledDepth === 0) {
337
+ /* eslint-disable react-internal/no-production-logging */
338
+ prevLog = console.log;
339
+ prevInfo = console.info;
340
+ prevWarn = console.warn;
341
+ prevError = console.error;
342
+ prevGroup = console.group;
343
+ prevGroupCollapsed = console.groupCollapsed;
344
+ prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
345
+
346
+ var props = {
347
+ configurable: true,
348
+ enumerable: true,
349
+ value: disabledLog,
350
+ writable: true
351
+ }; // $FlowFixMe Flow thinks console is immutable.
352
+
353
+ Object.defineProperties(console, {
354
+ info: props,
355
+ log: props,
356
+ warn: props,
357
+ error: props,
358
+ group: props,
359
+ groupCollapsed: props,
360
+ groupEnd: props
361
+ });
362
+ /* eslint-enable react-internal/no-production-logging */
363
+ }
364
+
365
+ disabledDepth++;
366
+ }
367
+ }
368
+ function reenableLogs() {
369
+ {
370
+ disabledDepth--;
371
+
372
+ if (disabledDepth === 0) {
373
+ /* eslint-disable react-internal/no-production-logging */
374
+ var props = {
375
+ configurable: true,
376
+ enumerable: true,
377
+ writable: true
378
+ }; // $FlowFixMe Flow thinks console is immutable.
379
+
380
+ Object.defineProperties(console, {
381
+ log: assign({}, props, {
382
+ value: prevLog
383
+ }),
384
+ info: assign({}, props, {
385
+ value: prevInfo
386
+ }),
387
+ warn: assign({}, props, {
388
+ value: prevWarn
389
+ }),
390
+ error: assign({}, props, {
391
+ value: prevError
392
+ }),
393
+ group: assign({}, props, {
394
+ value: prevGroup
395
+ }),
396
+ groupCollapsed: assign({}, props, {
397
+ value: prevGroupCollapsed
398
+ }),
399
+ groupEnd: assign({}, props, {
400
+ value: prevGroupEnd
401
+ })
402
+ });
403
+ /* eslint-enable react-internal/no-production-logging */
404
+ }
405
+
406
+ if (disabledDepth < 0) {
407
+ error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
408
+ }
409
+ }
410
+ }
411
+
412
+ var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
413
+ var prefix;
414
+ function describeBuiltInComponentFrame(name, source, ownerFn) {
415
+ {
416
+ if (prefix === undefined) {
417
+ // Extract the VM specific prefix used by each line.
418
+ try {
419
+ throw Error();
420
+ } catch (x) {
421
+ var match = x.stack.trim().match(/\n( *(at )?)/);
422
+ prefix = match && match[1] || '';
423
+ }
424
+ } // We use the prefix to ensure our stacks line up with native stack frames.
425
+
426
+
427
+ return '\n' + prefix + name;
428
+ }
429
+ }
430
+ var reentry = false;
431
+ var componentFrameCache;
432
+
433
+ {
434
+ var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
435
+ componentFrameCache = new PossiblyWeakMap();
436
+ }
437
+
438
+ function describeNativeComponentFrame(fn, construct) {
439
+ // If something asked for a stack inside a fake render, it should get ignored.
440
+ if ( !fn || reentry) {
441
+ return '';
442
+ }
443
+
444
+ {
445
+ var frame = componentFrameCache.get(fn);
446
+
447
+ if (frame !== undefined) {
448
+ return frame;
449
+ }
450
+ }
451
+
452
+ var control;
453
+ reentry = true;
454
+ var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
455
+
456
+ Error.prepareStackTrace = undefined;
457
+ var previousDispatcher;
458
+
459
+ {
460
+ previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
461
+ // for warnings.
462
+
463
+ ReactCurrentDispatcher.current = null;
464
+ disableLogs();
465
+ }
466
+
467
+ try {
468
+ // This should throw.
469
+ if (construct) {
470
+ // Something should be setting the props in the constructor.
471
+ var Fake = function () {
472
+ throw Error();
473
+ }; // $FlowFixMe
474
+
475
+
476
+ Object.defineProperty(Fake.prototype, 'props', {
477
+ set: function () {
478
+ // We use a throwing setter instead of frozen or non-writable props
479
+ // because that won't throw in a non-strict mode function.
480
+ throw Error();
481
+ }
482
+ });
483
+
484
+ if (typeof Reflect === 'object' && Reflect.construct) {
485
+ // We construct a different control for this case to include any extra
486
+ // frames added by the construct call.
487
+ try {
488
+ Reflect.construct(Fake, []);
489
+ } catch (x) {
490
+ control = x;
491
+ }
492
+
493
+ Reflect.construct(fn, [], Fake);
494
+ } else {
495
+ try {
496
+ Fake.call();
497
+ } catch (x) {
498
+ control = x;
499
+ }
500
+
501
+ fn.call(Fake.prototype);
502
+ }
503
+ } else {
504
+ try {
505
+ throw Error();
506
+ } catch (x) {
507
+ control = x;
508
+ }
509
+
510
+ fn();
511
+ }
512
+ } catch (sample) {
513
+ // This is inlined manually because closure doesn't do it for us.
514
+ if (sample && control && typeof sample.stack === 'string') {
515
+ // This extracts the first frame from the sample that isn't also in the control.
516
+ // Skipping one frame that we assume is the frame that calls the two.
517
+ var sampleLines = sample.stack.split('\n');
518
+ var controlLines = control.stack.split('\n');
519
+ var s = sampleLines.length - 1;
520
+ var c = controlLines.length - 1;
521
+
522
+ while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
523
+ // We expect at least one stack frame to be shared.
524
+ // Typically this will be the root most one. However, stack frames may be
525
+ // cut off due to maximum stack limits. In this case, one maybe cut off
526
+ // earlier than the other. We assume that the sample is longer or the same
527
+ // and there for cut off earlier. So we should find the root most frame in
528
+ // the sample somewhere in the control.
529
+ c--;
530
+ }
531
+
532
+ for (; s >= 1 && c >= 0; s--, c--) {
533
+ // Next we find the first one that isn't the same which should be the
534
+ // frame that called our sample function and the control.
535
+ if (sampleLines[s] !== controlLines[c]) {
536
+ // In V8, the first line is describing the message but other VMs don't.
537
+ // If we're about to return the first line, and the control is also on the same
538
+ // line, that's a pretty good indicator that our sample threw at same line as
539
+ // the control. I.e. before we entered the sample frame. So we ignore this result.
540
+ // This can happen if you passed a class to function component, or non-function.
541
+ if (s !== 1 || c !== 1) {
542
+ do {
543
+ s--;
544
+ c--; // We may still have similar intermediate frames from the construct call.
545
+ // The next one that isn't the same should be our match though.
546
+
547
+ if (c < 0 || sampleLines[s] !== controlLines[c]) {
548
+ // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
549
+ var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
550
+ // but we have a user-provided "displayName"
551
+ // splice it in to make the stack more readable.
552
+
553
+
554
+ if (fn.displayName && _frame.includes('<anonymous>')) {
555
+ _frame = _frame.replace('<anonymous>', fn.displayName);
556
+ }
557
+
558
+ {
559
+ if (typeof fn === 'function') {
560
+ componentFrameCache.set(fn, _frame);
561
+ }
562
+ } // Return the line we found.
563
+
564
+
565
+ return _frame;
566
+ }
567
+ } while (s >= 1 && c >= 0);
568
+ }
569
+
570
+ break;
571
+ }
572
+ }
573
+ }
574
+ } finally {
575
+ reentry = false;
576
+
577
+ {
578
+ ReactCurrentDispatcher.current = previousDispatcher;
579
+ reenableLogs();
580
+ }
581
+
582
+ Error.prepareStackTrace = previousPrepareStackTrace;
583
+ } // Fallback to just using the name if we couldn't make it throw.
584
+
585
+
586
+ var name = fn ? fn.displayName || fn.name : '';
587
+ var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
588
+
589
+ {
590
+ if (typeof fn === 'function') {
591
+ componentFrameCache.set(fn, syntheticFrame);
592
+ }
593
+ }
594
+
595
+ return syntheticFrame;
596
+ }
597
+ function describeFunctionComponentFrame(fn, source, ownerFn) {
598
+ {
599
+ return describeNativeComponentFrame(fn, false);
600
+ }
601
+ }
602
+
603
+ function shouldConstruct(Component) {
604
+ var prototype = Component.prototype;
605
+ return !!(prototype && prototype.isReactComponent);
606
+ }
607
+
608
+ function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
609
+
610
+ if (type == null) {
611
+ return '';
612
+ }
613
+
614
+ if (typeof type === 'function') {
615
+ {
616
+ return describeNativeComponentFrame(type, shouldConstruct(type));
617
+ }
618
+ }
619
+
620
+ if (typeof type === 'string') {
621
+ return describeBuiltInComponentFrame(type);
622
+ }
623
+
624
+ switch (type) {
625
+ case REACT_SUSPENSE_TYPE:
626
+ return describeBuiltInComponentFrame('Suspense');
627
+
628
+ case REACT_SUSPENSE_LIST_TYPE:
629
+ return describeBuiltInComponentFrame('SuspenseList');
630
+ }
631
+
632
+ if (typeof type === 'object') {
633
+ switch (type.$$typeof) {
634
+ case REACT_FORWARD_REF_TYPE:
635
+ return describeFunctionComponentFrame(type.render);
636
+
637
+ case REACT_MEMO_TYPE:
638
+ // Memo may contain any component type so we recursively resolve it.
639
+ return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
640
+
641
+ case REACT_LAZY_TYPE:
642
+ {
643
+ var lazyComponent = type;
644
+ var payload = lazyComponent._payload;
645
+ var init = lazyComponent._init;
646
+
647
+ try {
648
+ // Lazy may contain any component type so we recursively resolve it.
649
+ return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
650
+ } catch (x) {}
651
+ }
652
+ }
653
+ }
654
+
655
+ return '';
656
+ }
657
+
658
+ var hasOwnProperty = Object.prototype.hasOwnProperty;
659
+
660
+ var loggedTypeFailures = {};
661
+ var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
662
+
663
+ function setCurrentlyValidatingElement(element) {
664
+ {
665
+ if (element) {
666
+ var owner = element._owner;
667
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
668
+ ReactDebugCurrentFrame.setExtraStackFrame(stack);
669
+ } else {
670
+ ReactDebugCurrentFrame.setExtraStackFrame(null);
671
+ }
672
+ }
673
+ }
674
+
675
+ function checkPropTypes(typeSpecs, values, location, componentName, element) {
676
+ {
677
+ // $FlowFixMe This is okay but Flow doesn't know it.
678
+ var has = Function.call.bind(hasOwnProperty);
679
+
680
+ for (var typeSpecName in typeSpecs) {
681
+ if (has(typeSpecs, typeSpecName)) {
682
+ var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
683
+ // fail the render phase where it didn't fail before. So we log it.
684
+ // After these have been cleaned up, we'll let them throw.
685
+
686
+ try {
687
+ // This is intentionally an invariant that gets caught. It's the same
688
+ // behavior as without this statement except with a better message.
689
+ if (typeof typeSpecs[typeSpecName] !== 'function') {
690
+ // eslint-disable-next-line react-internal/prod-error-codes
691
+ 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`.');
692
+ err.name = 'Invariant Violation';
693
+ throw err;
694
+ }
695
+
696
+ error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
697
+ } catch (ex) {
698
+ error$1 = ex;
699
+ }
700
+
701
+ if (error$1 && !(error$1 instanceof Error)) {
702
+ setCurrentlyValidatingElement(element);
703
+
704
+ 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);
705
+
706
+ setCurrentlyValidatingElement(null);
707
+ }
708
+
709
+ if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
710
+ // Only monitor this failure once because there tends to be a lot of the
711
+ // same error.
712
+ loggedTypeFailures[error$1.message] = true;
713
+ setCurrentlyValidatingElement(element);
714
+
715
+ error('Failed %s type: %s', location, error$1.message);
716
+
717
+ setCurrentlyValidatingElement(null);
718
+ }
719
+ }
720
+ }
721
+ }
722
+ }
723
+
724
+ var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
725
+
726
+ function isArray(a) {
727
+ return isArrayImpl(a);
728
+ }
729
+
730
+ /*
731
+ * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
732
+ * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
733
+ *
734
+ * The functions in this module will throw an easier-to-understand,
735
+ * easier-to-debug exception with a clear errors message message explaining the
736
+ * problem. (Instead of a confusing exception thrown inside the implementation
737
+ * of the `value` object).
738
+ */
739
+ // $FlowFixMe only called in DEV, so void return is not possible.
740
+ function typeName(value) {
741
+ {
742
+ // toStringTag is needed for namespaced types like Temporal.Instant
743
+ var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
744
+ var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
745
+ return type;
746
+ }
747
+ } // $FlowFixMe only called in DEV, so void return is not possible.
748
+
749
+
750
+ function willCoercionThrow(value) {
751
+ {
752
+ try {
753
+ testStringCoercion(value);
754
+ return false;
755
+ } catch (e) {
756
+ return true;
757
+ }
758
+ }
759
+ }
760
+
761
+ function testStringCoercion(value) {
762
+ // If you ended up here by following an exception call stack, here's what's
763
+ // happened: you supplied an object or symbol value to React (as a prop, key,
764
+ // DOM attribute, CSS property, string ref, etc.) and when React tried to
765
+ // coerce it to a string using `'' + value`, an exception was thrown.
766
+ //
767
+ // The most common types that will cause this exception are `Symbol` instances
768
+ // and Temporal objects like `Temporal.Instant`. But any object that has a
769
+ // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
770
+ // exception. (Library authors do this to prevent users from using built-in
771
+ // numeric operators like `+` or comparison operators like `>=` because custom
772
+ // methods are needed to perform accurate arithmetic or comparison.)
773
+ //
774
+ // To fix the problem, coerce this object or symbol value to a string before
775
+ // passing it to React. The most reliable way is usually `String(value)`.
776
+ //
777
+ // To find which value is throwing, check the browser or debugger console.
778
+ // Before this exception was thrown, there should be `console.error` output
779
+ // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
780
+ // problem and how that type was used: key, atrribute, input value prop, etc.
781
+ // In most cases, this console output also shows the component and its
782
+ // ancestor components where the exception happened.
783
+ //
784
+ // eslint-disable-next-line react-internal/safe-string-coercion
785
+ return '' + value;
786
+ }
787
+ function checkKeyStringCoercion(value) {
788
+ {
789
+ if (willCoercionThrow(value)) {
790
+ error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
791
+
792
+ return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
793
+ }
794
+ }
795
+ }
796
+
797
+ var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
798
+ var RESERVED_PROPS = {
799
+ key: true,
800
+ ref: true,
801
+ __self: true,
802
+ __source: true
803
+ };
804
+ var specialPropKeyWarningShown;
805
+ var specialPropRefWarningShown;
806
+ var didWarnAboutStringRefs;
807
+
808
+ {
809
+ didWarnAboutStringRefs = {};
810
+ }
811
+
812
+ function hasValidRef(config) {
813
+ {
814
+ if (hasOwnProperty.call(config, 'ref')) {
815
+ var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
816
+
817
+ if (getter && getter.isReactWarning) {
818
+ return false;
819
+ }
820
+ }
821
+ }
822
+
823
+ return config.ref !== undefined;
824
+ }
825
+
826
+ function hasValidKey(config) {
827
+ {
828
+ if (hasOwnProperty.call(config, 'key')) {
829
+ var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
830
+
831
+ if (getter && getter.isReactWarning) {
832
+ return false;
833
+ }
834
+ }
835
+ }
836
+
837
+ return config.key !== undefined;
838
+ }
839
+
840
+ function warnIfStringRefCannotBeAutoConverted(config, self) {
841
+ {
842
+ if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
843
+ var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
844
+
845
+ if (!didWarnAboutStringRefs[componentName]) {
846
+ error('Component "%s" contains the string ref "%s". ' + 'Support for string refs will be removed in a future major release. ' + 'This case cannot be automatically converted to an arrow function. ' + 'We ask you to manually fix this case by using useRef() or createRef() instead. ' + 'Learn more about using refs safely here: ' + 'https://reactjs.org/link/strict-mode-string-ref', getComponentNameFromType(ReactCurrentOwner.current.type), config.ref);
847
+
848
+ didWarnAboutStringRefs[componentName] = true;
849
+ }
850
+ }
851
+ }
852
+ }
853
+
854
+ function defineKeyPropWarningGetter(props, displayName) {
855
+ {
856
+ var warnAboutAccessingKey = function () {
857
+ if (!specialPropKeyWarningShown) {
858
+ specialPropKeyWarningShown = true;
859
+
860
+ 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);
861
+ }
862
+ };
863
+
864
+ warnAboutAccessingKey.isReactWarning = true;
865
+ Object.defineProperty(props, 'key', {
866
+ get: warnAboutAccessingKey,
867
+ configurable: true
868
+ });
869
+ }
870
+ }
871
+
872
+ function defineRefPropWarningGetter(props, displayName) {
873
+ {
874
+ var warnAboutAccessingRef = function () {
875
+ if (!specialPropRefWarningShown) {
876
+ specialPropRefWarningShown = true;
877
+
878
+ 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);
879
+ }
880
+ };
881
+
882
+ warnAboutAccessingRef.isReactWarning = true;
883
+ Object.defineProperty(props, 'ref', {
884
+ get: warnAboutAccessingRef,
885
+ configurable: true
886
+ });
887
+ }
888
+ }
889
+ /**
890
+ * Factory method to create a new React element. This no longer adheres to
891
+ * the class pattern, so do not use new to call it. Also, instanceof check
892
+ * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
893
+ * if something is a React Element.
894
+ *
895
+ * @param {*} type
896
+ * @param {*} props
897
+ * @param {*} key
898
+ * @param {string|object} ref
899
+ * @param {*} owner
900
+ * @param {*} self A *temporary* helper to detect places where `this` is
901
+ * different from the `owner` when React.createElement is called, so that we
902
+ * can warn. We want to get rid of owner and replace string `ref`s with arrow
903
+ * functions, and as long as `this` and owner are the same, there will be no
904
+ * change in behavior.
905
+ * @param {*} source An annotation object (added by a transpiler or otherwise)
906
+ * indicating filename, line number, and/or other information.
907
+ * @internal
908
+ */
909
+
910
+
911
+ var ReactElement = function (type, key, ref, self, source, owner, props) {
912
+ var element = {
913
+ // This tag allows us to uniquely identify this as a React Element
914
+ $$typeof: REACT_ELEMENT_TYPE,
915
+ // Built-in properties that belong on the element
916
+ type: type,
917
+ key: key,
918
+ ref: ref,
919
+ props: props,
920
+ // Record the component responsible for creating this element.
921
+ _owner: owner
922
+ };
923
+
924
+ {
925
+ // The validation flag is currently mutative. We put it on
926
+ // an external backing store so that we can freeze the whole object.
927
+ // This can be replaced with a WeakMap once they are implemented in
928
+ // commonly used development environments.
929
+ element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
930
+ // the validation flag non-enumerable (where possible, which should
931
+ // include every environment we run tests in), so the test framework
932
+ // ignores it.
933
+
934
+ Object.defineProperty(element._store, 'validated', {
935
+ configurable: false,
936
+ enumerable: false,
937
+ writable: true,
938
+ value: false
939
+ }); // self and source are DEV only properties.
940
+
941
+ Object.defineProperty(element, '_self', {
942
+ configurable: false,
943
+ enumerable: false,
944
+ writable: false,
945
+ value: self
946
+ }); // Two elements created in two different places should be considered
947
+ // equal for testing purposes and therefore we hide it from enumeration.
948
+
949
+ Object.defineProperty(element, '_source', {
950
+ configurable: false,
951
+ enumerable: false,
952
+ writable: false,
953
+ value: source
954
+ });
955
+
956
+ if (Object.freeze) {
957
+ Object.freeze(element.props);
958
+ Object.freeze(element);
959
+ }
960
+ }
961
+
962
+ return element;
963
+ };
964
+ /**
965
+ * https://github.com/reactjs/rfcs/pull/107
966
+ * @param {*} type
967
+ * @param {object} props
968
+ * @param {string} key
969
+ */
970
+
971
+ function jsxDEV(type, config, maybeKey, source, self) {
972
+ {
973
+ var propName; // Reserved names are extracted
974
+
975
+ var props = {};
976
+ var key = null;
977
+ var ref = null; // Currently, key can be spread in as a prop. This causes a potential
978
+ // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
979
+ // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
980
+ // but as an intermediary step, we will use jsxDEV for everything except
981
+ // <div {...props} key="Hi" />, because we aren't currently able to tell if
982
+ // key is explicitly declared to be undefined or not.
983
+
984
+ if (maybeKey !== undefined) {
985
+ {
986
+ checkKeyStringCoercion(maybeKey);
987
+ }
988
+
989
+ key = '' + maybeKey;
990
+ }
991
+
992
+ if (hasValidKey(config)) {
993
+ {
994
+ checkKeyStringCoercion(config.key);
995
+ }
996
+
997
+ key = '' + config.key;
998
+ }
999
+
1000
+ if (hasValidRef(config)) {
1001
+ ref = config.ref;
1002
+ warnIfStringRefCannotBeAutoConverted(config, self);
1003
+ } // Remaining properties are added to a new props object
1004
+
1005
+
1006
+ for (propName in config) {
1007
+ if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
1008
+ props[propName] = config[propName];
1009
+ }
1010
+ } // Resolve default props
1011
+
1012
+
1013
+ if (type && type.defaultProps) {
1014
+ var defaultProps = type.defaultProps;
1015
+
1016
+ for (propName in defaultProps) {
1017
+ if (props[propName] === undefined) {
1018
+ props[propName] = defaultProps[propName];
1019
+ }
1020
+ }
1021
+ }
1022
+
1023
+ if (key || ref) {
1024
+ var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
1025
+
1026
+ if (key) {
1027
+ defineKeyPropWarningGetter(props, displayName);
1028
+ }
1029
+
1030
+ if (ref) {
1031
+ defineRefPropWarningGetter(props, displayName);
1032
+ }
1033
+ }
1034
+
1035
+ return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
1036
+ }
1037
+ }
1038
+
1039
+ var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
1040
+ var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
1041
+
1042
+ function setCurrentlyValidatingElement$1(element) {
1043
+ {
1044
+ if (element) {
1045
+ var owner = element._owner;
1046
+ var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1047
+ ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
1048
+ } else {
1049
+ ReactDebugCurrentFrame$1.setExtraStackFrame(null);
1050
+ }
1051
+ }
1052
+ }
1053
+
1054
+ var propTypesMisspellWarningShown;
1055
+
1056
+ {
1057
+ propTypesMisspellWarningShown = false;
1058
+ }
1059
+ /**
1060
+ * Verifies the object is a ReactElement.
1061
+ * See https://reactjs.org/docs/react-api.html#isvalidelement
1062
+ * @param {?object} object
1063
+ * @return {boolean} True if `object` is a ReactElement.
1064
+ * @final
1065
+ */
1066
+
1067
+
1068
+ function isValidElement(object) {
1069
+ {
1070
+ return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1071
+ }
1072
+ }
1073
+
1074
+ function getDeclarationErrorAddendum() {
1075
+ {
1076
+ if (ReactCurrentOwner$1.current) {
1077
+ var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
1078
+
1079
+ if (name) {
1080
+ return '\n\nCheck the render method of `' + name + '`.';
1081
+ }
1082
+ }
1083
+
1084
+ return '';
1085
+ }
1086
+ }
1087
+
1088
+ function getSourceInfoErrorAddendum(source) {
1089
+ {
1090
+ if (source !== undefined) {
1091
+ var fileName = source.fileName.replace(/^.*[\\\/]/, '');
1092
+ var lineNumber = source.lineNumber;
1093
+ return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
1094
+ }
1095
+
1096
+ return '';
1097
+ }
1098
+ }
1099
+ /**
1100
+ * Warn if there's no key explicitly set on dynamic arrays of children or
1101
+ * object keys are not valid. This allows us to keep track of children between
1102
+ * updates.
1103
+ */
1104
+
1105
+
1106
+ var ownerHasKeyUseWarning = {};
1107
+
1108
+ function getCurrentComponentErrorInfo(parentType) {
1109
+ {
1110
+ var info = getDeclarationErrorAddendum();
1111
+
1112
+ if (!info) {
1113
+ var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
1114
+
1115
+ if (parentName) {
1116
+ info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1117
+ }
1118
+ }
1119
+
1120
+ return info;
1121
+ }
1122
+ }
1123
+ /**
1124
+ * Warn if the element doesn't have an explicit key assigned to it.
1125
+ * This element is in an array. The array could grow and shrink or be
1126
+ * reordered. All children that haven't already been validated are required to
1127
+ * have a "key" property assigned to it. Error statuses are cached so a warning
1128
+ * will only be shown once.
1129
+ *
1130
+ * @internal
1131
+ * @param {ReactElement} element Element that requires a key.
1132
+ * @param {*} parentType element's parent's type.
1133
+ */
1134
+
1135
+
1136
+ function validateExplicitKey(element, parentType) {
1137
+ {
1138
+ if (!element._store || element._store.validated || element.key != null) {
1139
+ return;
1140
+ }
1141
+
1142
+ element._store.validated = true;
1143
+ var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1144
+
1145
+ if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1146
+ return;
1147
+ }
1148
+
1149
+ ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
1150
+ // property, it may be the creator of the child that's responsible for
1151
+ // assigning it a key.
1152
+
1153
+ var childOwner = '';
1154
+
1155
+ if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
1156
+ // Give the component that originally created this child.
1157
+ childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1158
+ }
1159
+
1160
+ setCurrentlyValidatingElement$1(element);
1161
+
1162
+ 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);
1163
+
1164
+ setCurrentlyValidatingElement$1(null);
1165
+ }
1166
+ }
1167
+ /**
1168
+ * Ensure that every element either is passed in a static location, in an
1169
+ * array with an explicit keys property defined, or in an object literal
1170
+ * with valid key property.
1171
+ *
1172
+ * @internal
1173
+ * @param {ReactNode} node Statically passed child of any type.
1174
+ * @param {*} parentType node's parent's type.
1175
+ */
1176
+
1177
+
1178
+ function validateChildKeys(node, parentType) {
1179
+ {
1180
+ if (typeof node !== 'object') {
1181
+ return;
1182
+ }
1183
+
1184
+ if (isArray(node)) {
1185
+ for (var i = 0; i < node.length; i++) {
1186
+ var child = node[i];
1187
+
1188
+ if (isValidElement(child)) {
1189
+ validateExplicitKey(child, parentType);
1190
+ }
1191
+ }
1192
+ } else if (isValidElement(node)) {
1193
+ // This element was passed in a valid location.
1194
+ if (node._store) {
1195
+ node._store.validated = true;
1196
+ }
1197
+ } else if (node) {
1198
+ var iteratorFn = getIteratorFn(node);
1199
+
1200
+ if (typeof iteratorFn === 'function') {
1201
+ // Entry iterators used to provide implicit keys,
1202
+ // but now we print a separate warning for them later.
1203
+ if (iteratorFn !== node.entries) {
1204
+ var iterator = iteratorFn.call(node);
1205
+ var step;
1206
+
1207
+ while (!(step = iterator.next()).done) {
1208
+ if (isValidElement(step.value)) {
1209
+ validateExplicitKey(step.value, parentType);
1210
+ }
1211
+ }
1212
+ }
1213
+ }
1214
+ }
1215
+ }
1216
+ }
1217
+ /**
1218
+ * Given an element, validate that its props follow the propTypes definition,
1219
+ * provided by the type.
1220
+ *
1221
+ * @param {ReactElement} element
1222
+ */
1223
+
1224
+
1225
+ function validatePropTypes(element) {
1226
+ {
1227
+ var type = element.type;
1228
+
1229
+ if (type === null || type === undefined || typeof type === 'string') {
1230
+ return;
1231
+ }
1232
+
1233
+ var propTypes;
1234
+
1235
+ if (typeof type === 'function') {
1236
+ propTypes = type.propTypes;
1237
+ } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1238
+ // Inner props are checked in the reconciler.
1239
+ type.$$typeof === REACT_MEMO_TYPE)) {
1240
+ propTypes = type.propTypes;
1241
+ } else {
1242
+ return;
1243
+ }
1244
+
1245
+ if (propTypes) {
1246
+ // Intentionally inside to avoid triggering lazy initializers:
1247
+ var name = getComponentNameFromType(type);
1248
+ checkPropTypes(propTypes, element.props, 'prop', name, element);
1249
+ } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
1250
+ propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
1251
+
1252
+ var _name = getComponentNameFromType(type);
1253
+
1254
+ error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
1255
+ }
1256
+
1257
+ if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
1258
+ error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
1259
+ }
1260
+ }
1261
+ }
1262
+ /**
1263
+ * Given a fragment, validate that it can only be provided with fragment props
1264
+ * @param {ReactElement} fragment
1265
+ */
1266
+
1267
+
1268
+ function validateFragmentProps(fragment) {
1269
+ {
1270
+ var keys = Object.keys(fragment.props);
1271
+
1272
+ for (var i = 0; i < keys.length; i++) {
1273
+ var key = keys[i];
1274
+
1275
+ if (key !== 'children' && key !== 'key') {
1276
+ setCurrentlyValidatingElement$1(fragment);
1277
+
1278
+ error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
1279
+
1280
+ setCurrentlyValidatingElement$1(null);
1281
+ break;
1282
+ }
1283
+ }
1284
+
1285
+ if (fragment.ref !== null) {
1286
+ setCurrentlyValidatingElement$1(fragment);
1287
+
1288
+ error('Invalid attribute `ref` supplied to `React.Fragment`.');
1289
+
1290
+ setCurrentlyValidatingElement$1(null);
1291
+ }
1292
+ }
1293
+ }
1294
+
1295
+ var didWarnAboutKeySpread = {};
1296
+ function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
1297
+ {
1298
+ var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
1299
+ // succeed and there will likely be errors in render.
1300
+
1301
+ if (!validType) {
1302
+ var info = '';
1303
+
1304
+ if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
1305
+ 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.";
1306
+ }
1307
+
1308
+ var sourceInfo = getSourceInfoErrorAddendum(source);
1309
+
1310
+ if (sourceInfo) {
1311
+ info += sourceInfo;
1312
+ } else {
1313
+ info += getDeclarationErrorAddendum();
1314
+ }
1315
+
1316
+ var typeString;
1317
+
1318
+ if (type === null) {
1319
+ typeString = 'null';
1320
+ } else if (isArray(type)) {
1321
+ typeString = 'array';
1322
+ } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
1323
+ typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
1324
+ info = ' Did you accidentally export a JSX literal instead of a component?';
1325
+ } else {
1326
+ typeString = typeof type;
1327
+ }
1328
+
1329
+ 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);
1330
+ }
1331
+
1332
+ var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
1333
+ // TODO: Drop this when these are no longer allowed as the type argument.
1334
+
1335
+ if (element == null) {
1336
+ return element;
1337
+ } // Skip key warning if the type isn't valid since our key validation logic
1338
+ // doesn't expect a non-string/function type and can throw confusing errors.
1339
+ // We don't want exception behavior to differ between dev and prod.
1340
+ // (Rendering will throw with a helpful message and as soon as the type is
1341
+ // fixed, the key warnings will appear.)
1342
+
1343
+
1344
+ if (validType) {
1345
+ var children = props.children;
1346
+
1347
+ if (children !== undefined) {
1348
+ if (isStaticChildren) {
1349
+ if (isArray(children)) {
1350
+ for (var i = 0; i < children.length; i++) {
1351
+ validateChildKeys(children[i], type);
1352
+ }
1353
+
1354
+ if (Object.freeze) {
1355
+ Object.freeze(children);
1356
+ }
1357
+ } else {
1358
+ 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.');
1359
+ }
1360
+ } else {
1361
+ validateChildKeys(children, type);
1362
+ }
1363
+ }
1364
+ }
1365
+
1366
+ {
1367
+ if (hasOwnProperty.call(props, 'key')) {
1368
+ var componentName = getComponentNameFromType(type);
1369
+ var keys = Object.keys(props).filter(function (k) {
1370
+ return k !== 'key';
1371
+ });
1372
+ var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
1373
+
1374
+ if (!didWarnAboutKeySpread[componentName + beforeExample]) {
1375
+ var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
1376
+
1377
+ 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);
1378
+
1379
+ didWarnAboutKeySpread[componentName + beforeExample] = true;
1380
+ }
1381
+ }
1382
+ }
1383
+
1384
+ if (type === REACT_FRAGMENT_TYPE) {
1385
+ validateFragmentProps(element);
1386
+ } else {
1387
+ validatePropTypes(element);
1388
+ }
1389
+
1390
+ return element;
1391
+ }
1392
+ } // These two functions exist to still get child warnings in dev
1393
+ // even with the prod transform. This means that jsxDEV is purely
1394
+ // opt-in behavior for better messages but that we won't stop
1395
+ // giving you warnings if you use production apis.
1396
+
1397
+ function jsxWithValidationStatic(type, props, key) {
1398
+ {
1399
+ return jsxWithValidation(type, props, key, true);
1400
+ }
1401
+ }
1402
+ function jsxWithValidationDynamic(type, props, key) {
1403
+ {
1404
+ return jsxWithValidation(type, props, key, false);
1405
+ }
1406
+ }
1407
+
1408
+ var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
1409
+ // for now we can ship identical prod functions
1410
+
1411
+ var jsxs = jsxWithValidationStatic ;
1412
+
1413
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
1414
+ reactJsxRuntime_development.jsx = jsx;
1415
+ reactJsxRuntime_development.jsxs = jsxs;
1416
+ })();
1417
+ }
1418
+ return reactJsxRuntime_development;
1419
+ }
1420
+
1421
+ if (process.env.NODE_ENV === 'production') {
1422
+ jsxRuntime.exports = requireReactJsxRuntime_production_min();
1423
+ } else {
1424
+ jsxRuntime.exports = requireReactJsxRuntime_development();
1425
+ }
1426
+
1427
+ var jsxRuntimeExports = jsxRuntime.exports;
1428
+
1429
+ function _extends() {
1430
+ return _extends = Object.assign ? Object.assign.bind() : function (n) {
29
1431
  for (var e = 1; e < arguments.length; e++) {
30
1432
  var t = arguments[e];
31
1433
  for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
32
1434
  }
33
1435
  return n;
34
- }, _extends$1.apply(null, arguments);
1436
+ }, _extends.apply(null, arguments);
35
1437
  }
36
1438
 
37
1439
  function _objectWithoutPropertiesLoose(r, e) {
@@ -1249,35 +2651,6 @@ var unitlessNumbers$2 = unitlessNumbers$1;
1249
2651
  var isWebColor = color => color === 'currentcolor' || color === 'currentColor' || color === 'inherit' || color.indexOf('var(') === 0;
1250
2652
  var isWebColor$1 = isWebColor;
1251
2653
 
1252
- function getDefaultExportFromCjs (x) {
1253
- return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
1254
- }
1255
-
1256
- function getAugmentedNamespace(n) {
1257
- if (n.__esModule) return n;
1258
- var f = n.default;
1259
- if (typeof f == "function") {
1260
- var a = function a () {
1261
- if (this instanceof a) {
1262
- return Reflect.construct(f, arguments, this.constructor);
1263
- }
1264
- return f.apply(this, arguments);
1265
- };
1266
- a.prototype = f.prototype;
1267
- } else a = {};
1268
- Object.defineProperty(a, '__esModule', {value: true});
1269
- Object.keys(n).forEach(function (k) {
1270
- var d = Object.getOwnPropertyDescriptor(n, k);
1271
- Object.defineProperty(a, k, d.get ? d : {
1272
- enumerable: true,
1273
- get: function () {
1274
- return n[k];
1275
- }
1276
- });
1277
- });
1278
- return a;
1279
- }
1280
-
1281
2654
  /**
1282
2655
  * Copyright (c) Meta Platforms, Inc. and affiliates.
1283
2656
  *
@@ -2331,8 +3704,8 @@ function hyphenateStyleName(name) {
2331
3704
  }
2332
3705
 
2333
3706
  var hyphenateStyleName$1 = /*#__PURE__*/Object.freeze({
2334
- __proto__: null,
2335
- default: hyphenateStyleName
3707
+ __proto__: null,
3708
+ default: hyphenateStyleName
2336
3709
  });
2337
3710
 
2338
3711
  function hyphenateProperty$1(property) {
@@ -2447,19 +3820,19 @@ function unprefixValue(value) {
2447
3820
  }
2448
3821
 
2449
3822
  var es = /*#__PURE__*/Object.freeze({
2450
- __proto__: null,
2451
- assignStyle: assignStyle,
2452
- camelCaseProperty: camelCaseProperty,
2453
- cssifyDeclaration: cssifyDeclaration,
2454
- cssifyObject: cssifyObject,
2455
- hyphenateProperty: hyphenateProperty$1,
2456
- isPrefixedProperty: isPrefixedProperty,
2457
- isPrefixedValue: isPrefixedValue$1,
2458
- isUnitlessProperty: isUnitlessProperty,
2459
- normalizeProperty: normalizeProperty,
2460
- resolveArrayValue: resolveArrayValue,
2461
- unprefixProperty: unprefixProperty,
2462
- unprefixValue: unprefixValue
3823
+ __proto__: null,
3824
+ assignStyle: assignStyle,
3825
+ camelCaseProperty: camelCaseProperty,
3826
+ cssifyDeclaration: cssifyDeclaration,
3827
+ cssifyObject: cssifyObject,
3828
+ hyphenateProperty: hyphenateProperty$1,
3829
+ isPrefixedProperty: isPrefixedProperty,
3830
+ isPrefixedValue: isPrefixedValue$1,
3831
+ isUnitlessProperty: isUnitlessProperty,
3832
+ normalizeProperty: normalizeProperty,
3833
+ resolveArrayValue: resolveArrayValue,
3834
+ unprefixProperty: unprefixProperty,
3835
+ unprefixValue: unprefixValue
2463
3836
  });
2464
3837
 
2465
3838
  var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(es);
@@ -7518,7 +8891,7 @@ function Pressable(props, forwardedRef) {
7518
8891
  } else {
7519
8892
  _tabIndex = disabled ? -1 : 0;
7520
8893
  }
7521
- return /*#__PURE__*/React__namespace.createElement(View$2, _extends$1({}, rest, pressEventHandlers, {
8894
+ return /*#__PURE__*/React__namespace.createElement(View$2, _extends({}, rest, pressEventHandlers, {
7522
8895
  "aria-disabled": disabled,
7523
8896
  onBlur: blurHandler,
7524
8897
  onContextMenu: contextMenuHandler,
@@ -8432,9 +9805,10 @@ function ResponsiveProvider(_a) {
8432
9805
  }
8433
9806
  };
8434
9807
  }, [getDerivedState]);
8435
- return /*#__PURE__*/React.createElement(ResponsiveContext.Provider, {
8436
- value: value
8437
- }, children);
9808
+ return jsxRuntimeExports.jsx(ResponsiveContext.Provider, {
9809
+ value: value,
9810
+ children: children
9811
+ });
8438
9812
  }
8439
9813
  function useResponsive() {
8440
9814
  var context = React.useContext(ResponsiveContext);
@@ -8509,9 +9883,12 @@ var WllSdkProvider = function (_a) {
8509
9883
  config: config
8510
9884
  };
8511
9885
  }, [theme, setTheme, getGroupByID, getSectionByID, getTileByID, handleNavigation, config]);
8512
- return /*#__PURE__*/React.createElement(WllSdkContext.Provider, {
8513
- value: contextValue
8514
- }, /*#__PURE__*/React.createElement(ResponsiveProvider, null, children));
9886
+ return jsxRuntimeExports.jsx(WllSdkContext.Provider, {
9887
+ value: contextValue,
9888
+ children: jsxRuntimeExports.jsx(ResponsiveProvider, {
9889
+ children: children
9890
+ })
9891
+ });
8515
9892
  };
8516
9893
  var useWllSdk = function () {
8517
9894
  var context = React.useContext(WllSdkContext);
@@ -8655,7 +10032,7 @@ var Button = function (_a) {
8655
10032
  var buttonStyle = useButtonStyles(theme, variant);
8656
10033
  var textStyle = useTextStyles(theme, variant);
8657
10034
  var styles = useButtonDynamicStyles();
8658
- return /*#__PURE__*/React__namespace.createElement(Pressable$1, {
10035
+ return jsxRuntimeExports.jsx(Pressable$1, {
8659
10036
  style: function (_a) {
8660
10037
  var pressed = _a.pressed;
8661
10038
  return [styles.button, buttonStyle, {
@@ -8675,12 +10052,23 @@ var Button = function (_a) {
8675
10052
  accessibilityState: {
8676
10053
  disabled: disabled
8677
10054
  },
8678
- testID: testID
8679
- }, /*#__PURE__*/React__namespace.createElement(Text$3, {
8680
- style: [styles.text, textStyle]
8681
- }, title));
10055
+ testID: testID,
10056
+ children: jsxRuntimeExports.jsx(Text$3, {
10057
+ style: [styles.text, textStyle],
10058
+ children: title
10059
+ })
10060
+ });
8682
10061
  };
8683
10062
 
10063
+ var LucideReactNativeIcons;
10064
+ if (Platform$1.OS !== 'web') {
10065
+ // This dynamic import pattern helps with tree-shaking for web builds
10066
+ try {
10067
+ LucideReactNativeIcons = require('lucide-react-native');
10068
+ } catch (e) {
10069
+ console.warn('lucide-react-native is not installed. Icons may not render correctly on native platforms.');
10070
+ }
10071
+ }
8684
10072
  var Icon = function (_a) {
8685
10073
  var name = _a.name,
8686
10074
  _b = _a.color,
@@ -8690,16 +10078,34 @@ var Icon = function (_a) {
8690
10078
  _d = _a.strokeWidth,
8691
10079
  strokeWidth = _d === void 0 ? 2 : _d,
8692
10080
  props = __rest(_a, ["name", "color", "size", "strokeWidth"]);
8693
- var LucideIcon = LucideIcons__namespace[name];
10081
+ // Choose the appropriate icon library based on platform
10082
+ var iconLib = Platform$1.OS === 'web' ? LucideReactIcons__namespace : LucideReactNativeIcons;
10083
+ if (!iconLib) {
10084
+ console.warn('Icon library not available for this platform');
10085
+ return null;
10086
+ }
10087
+ var LucideIcon = iconLib[name];
8694
10088
  if (!LucideIcon) {
8695
10089
  console.warn("Icon \"".concat(name, "\" not found in Lucide icons"));
8696
10090
  return null;
8697
10091
  }
8698
- return /*#__PURE__*/React__namespace.createElement(View$2, props, /*#__PURE__*/React__namespace.createElement(LucideIcon, {
8699
- color: color,
8700
- size: size,
8701
- strokeWidth: strokeWidth
8702
- }));
10092
+ if (Platform$1.OS === 'web') {
10093
+ return jsxRuntimeExports.jsx(View$2, __assign({}, props, {
10094
+ children: jsxRuntimeExports.jsx(LucideIcon, {
10095
+ color: color,
10096
+ size: size,
10097
+ strokeWidth: strokeWidth
10098
+ })
10099
+ }));
10100
+ } else {
10101
+ return jsxRuntimeExports.jsx(View$2, __assign({}, props, {
10102
+ children: jsxRuntimeExports.jsx(LucideIcon, {
10103
+ color: color,
10104
+ size: size,
10105
+ strokeWidth: strokeWidth
10106
+ })
10107
+ }));
10108
+ }
8703
10109
  };
8704
10110
 
8705
10111
  var _excluded$8 = ["animating", "color", "hidesWhenStopped", "size", "style"];
@@ -8734,7 +10140,7 @@ var ActivityIndicator = /*#__PURE__*/React__namespace.forwardRef((props, forward
8734
10140
  strokeDasharray: 80,
8735
10141
  strokeDashoffset: 60
8736
10142
  }));
8737
- return /*#__PURE__*/React__namespace.createElement(View$2, _extends$1({}, other, {
10143
+ return /*#__PURE__*/React__namespace.createElement(View$2, _extends({}, other, {
8738
10144
  "aria-valuemax": 1,
8739
10145
  "aria-valuemin": 0,
8740
10146
  ref: forwardedRef,
@@ -8786,18 +10192,18 @@ var indicatorSizes = StyleSheet$1.create({
8786
10192
  });
8787
10193
  var ActivityIndicator$1 = ActivityIndicator;
8788
10194
 
8789
- /* istanbul ignore file */
8790
10195
  var LoadingIndicator = function () {
8791
10196
  var theme = useWllSdk().theme;
8792
- return /*#__PURE__*/React__namespace.createElement(View$2, {
10197
+ return jsxRuntimeExports.jsx(View$2, {
8793
10198
  style: [styles$e.container, {
8794
10199
  borderRadius: theme.sizes.borderRadiusSm,
8795
10200
  padding: theme.sizes.md
8796
- }]
8797
- }, /*#__PURE__*/React__namespace.createElement(ActivityIndicator$1, {
8798
- size: "small",
8799
- color: theme.primary
8800
- }));
10201
+ }],
10202
+ children: jsxRuntimeExports.jsx(ActivityIndicator$1, {
10203
+ size: "small",
10204
+ color: theme.primary
10205
+ })
10206
+ });
8801
10207
  };
8802
10208
  var styles$e = StyleSheet$1.create({
8803
10209
  container: {
@@ -9108,7 +10514,7 @@ var ScrollViewBase = /*#__PURE__*/React__namespace.forwardRef((props, forwardedR
9108
10514
  }
9109
10515
  }
9110
10516
  var hideScrollbar = showsHorizontalScrollIndicator === false || showsVerticalScrollIndicator === false;
9111
- return /*#__PURE__*/React__namespace.createElement(View$2, _extends$1({}, rest, {
10517
+ return /*#__PURE__*/React__namespace.createElement(View$2, _extends({}, rest, {
9112
10518
  onScroll: handleScroll,
9113
10519
  onTouchMove: createPreventableScrollHandler(onTouchMove),
9114
10520
  onWheel: createPreventableScrollHandler(onWheel),
@@ -9765,7 +11171,7 @@ let ScrollView$1 = class ScrollView extends React.Component {
9765
11171
  return child;
9766
11172
  }
9767
11173
  }) : this.props.children;
9768
- var contentContainer = /*#__PURE__*/React.createElement(View$2, _extends$1({}, contentSizeChangeProps, {
11174
+ var contentContainer = /*#__PURE__*/React.createElement(View$2, _extends({}, contentSizeChangeProps, {
9769
11175
  children: children,
9770
11176
  collapsable: false,
9771
11177
  ref: this._setInnerViewRef,
@@ -9794,7 +11200,7 @@ let ScrollView$1 = class ScrollView extends React.Component {
9794
11200
  });
9795
11201
  var ScrollViewClass = ScrollViewBase$1;
9796
11202
  invariant$1(ScrollViewClass !== undefined, 'ScrollViewClass must not be undefined');
9797
- var scrollView = /*#__PURE__*/React.createElement(ScrollViewClass, _extends$1({}, props, {
11203
+ var scrollView = /*#__PURE__*/React.createElement(ScrollViewClass, _extends({}, props, {
9798
11204
  ref: this._setScrollNodeRef
9799
11205
  }), contentContainer);
9800
11206
  if (refreshControl) {
@@ -9849,7 +11255,7 @@ var styles$c = StyleSheet$1.create({
9849
11255
  }
9850
11256
  });
9851
11257
  var ForwardedScrollView = /*#__PURE__*/React.forwardRef((props, forwardedRef) => {
9852
- return /*#__PURE__*/React.createElement(ScrollView$1, _extends$1({}, props, {
11258
+ return /*#__PURE__*/React.createElement(ScrollView$1, _extends({}, props, {
9853
11259
  forwardedRef: forwardedRef
9854
11260
  }));
9855
11261
  });
@@ -11029,12 +12435,12 @@ class CellRenderer extends React__namespace.Component {
11029
12435
  // $FlowFixMe[incompatible-type]
11030
12436
  ItemSeparatorComponent && /*#__PURE__*/React__namespace.createElement(ItemSeparatorComponent, this.state.separatorProps);
11031
12437
  var cellStyle = inversionStyle ? horizontal ? [styles$b.rowReverse, inversionStyle] : [styles$b.columnReverse, inversionStyle] : horizontal ? [styles$b.row, inversionStyle] : inversionStyle;
11032
- var result = !CellRendererComponent ? /*#__PURE__*/React__namespace.createElement(View$2, _extends$1({
12438
+ var result = !CellRendererComponent ? /*#__PURE__*/React__namespace.createElement(View$2, _extends({
11033
12439
  style: cellStyle,
11034
12440
  onFocusCapture: onCellFocusCapture
11035
12441
  }, onCellLayout && {
11036
12442
  onLayout: this._onLayout
11037
- }), element, itemSeparator) : /*#__PURE__*/React__namespace.createElement(CellRendererComponent, _extends$1({
12443
+ }), element, itemSeparator) : /*#__PURE__*/React__namespace.createElement(CellRendererComponent, _extends({
11038
12444
  cellKey: cellKey,
11039
12445
  index: index,
11040
12446
  item: item,
@@ -11584,7 +12990,7 @@ class VirtualizedList extends StateSafePureComponent {
11584
12990
  /*#__PURE__*/
11585
12991
  // $FlowFixMe[prop-missing] Invalid prop usage
11586
12992
  // $FlowFixMe[incompatible-use]
11587
- React__namespace.createElement(ScrollView$2, _extends$1({}, props, {
12993
+ React__namespace.createElement(ScrollView$2, _extends({}, props, {
11588
12994
  refreshControl: props.refreshControl == null ? /*#__PURE__*/React__namespace.createElement(RefreshControl
11589
12995
  // $FlowFixMe[incompatible-type]
11590
12996
  , {
@@ -12164,7 +13570,7 @@ class VirtualizedList extends StateSafePureComponent {
12164
13570
  stickyHeaderIndices.push(cells.length);
12165
13571
  }
12166
13572
  var shouldListenForLayout = getItemLayout == null || debug || _this._fillRateHelper.enabled();
12167
- cells.push( /*#__PURE__*/React__namespace.createElement(CellRenderer, _extends$1({
13573
+ cells.push( /*#__PURE__*/React__namespace.createElement(CellRenderer, _extends({
12168
13574
  CellRendererComponent: CellRendererComponent,
12169
13575
  ItemSeparatorComponent: ii < end ? ItemSeparatorComponent : undefined,
12170
13576
  ListItemComponent: ListItemComponent,
@@ -13155,7 +14561,7 @@ let FlatList$1 = class FlatList extends React__namespace.PureComponent {
13155
14561
  return (
13156
14562
  /*#__PURE__*/
13157
14563
  // $FlowFixMe[incompatible-exact] - `restProps` (`Props`) is inexact.
13158
- React__namespace.createElement(VirtualizedList$1, _extends$1({}, restProps, {
14564
+ React__namespace.createElement(VirtualizedList$1, _extends({}, restProps, {
13159
14565
  getItem: this._getItem,
13160
14566
  getItemCount: this._getItemCount,
13161
14567
  keyExtractor: this._keyExtractor,
@@ -15158,7 +16564,7 @@ function createAnimatedComponent(Component) {
15158
16564
  passthroughStyle = _ref.style,
15159
16565
  passthroughProps = _objectWithoutPropertiesLoose(_ref, _excluded$3);
15160
16566
  var mergedStyle = [style, passthroughStyle];
15161
- return /*#__PURE__*/React__namespace.createElement(Component, _extends$1({}, reducedProps, passthroughProps, {
16567
+ return /*#__PURE__*/React__namespace.createElement(Component, _extends({}, reducedProps, passthroughProps, {
15162
16568
  style: mergedStyle,
15163
16569
  ref: ref
15164
16570
  }));
@@ -15168,7 +16574,7 @@ function createAnimatedComponent(Component) {
15168
16574
  /**
15169
16575
  * @see https://github.com/facebook/react-native/commit/b8c8562
15170
16576
  */
15171
- var FlatListWithEventThrottle = /*#__PURE__*/React__namespace.forwardRef((props, ref) => /*#__PURE__*/React__namespace.createElement(FlatList$2, _extends$1({
16577
+ var FlatListWithEventThrottle = /*#__PURE__*/React__namespace.forwardRef((props, ref) => /*#__PURE__*/React__namespace.createElement(FlatList$2, _extends({
15172
16578
  scrollEventThrottle: 0.0001
15173
16579
  }, props, {
15174
16580
  ref: ref
@@ -15620,7 +17026,7 @@ var Image$1 = /*#__PURE__*/React__namespace.forwardRef((props, ref) => {
15620
17026
  }
15621
17027
  return abortPendingRequest;
15622
17028
  }, [uri, requestRef, updateState, onError, onLoad, onLoadEnd, onLoadStart]);
15623
- return /*#__PURE__*/React__namespace.createElement(View$2, _extends$1({}, rest, {
17029
+ return /*#__PURE__*/React__namespace.createElement(View$2, _extends({}, rest, {
15624
17030
  "aria-label": ariaLabel,
15625
17031
  onLayout: handleLayout,
15626
17032
  pointerEvents: pointerEvents,
@@ -15732,7 +17138,7 @@ var Image = createAnimatedComponent(Image$2);
15732
17138
  /**
15733
17139
  * @see https://github.com/facebook/react-native/commit/b8c8562
15734
17140
  */
15735
- var ScrollViewWithEventThrottle = /*#__PURE__*/React__namespace.forwardRef((props, ref) => /*#__PURE__*/React__namespace.createElement(ScrollView$2, _extends$1({
17141
+ var ScrollViewWithEventThrottle = /*#__PURE__*/React__namespace.forwardRef((props, ref) => /*#__PURE__*/React__namespace.createElement(ScrollView$2, _extends({
15736
17142
  scrollEventThrottle: 0.0001
15737
17143
  }, props, {
15738
17144
  ref: ref
@@ -15912,7 +17318,7 @@ class VirtualizedSectionList extends React__namespace.PureComponent {
15912
17318
  itemCount += this.props.getItemCount(section.data);
15913
17319
  }
15914
17320
  var renderItem = this._renderItem(itemCount);
15915
- return /*#__PURE__*/React__namespace.createElement(VirtualizedList$1, _extends$1({}, passThroughProps, {
17321
+ return /*#__PURE__*/React__namespace.createElement(VirtualizedList$1, _extends({}, passThroughProps, {
15916
17322
  keyExtractor: this._keyExtractor,
15917
17323
  stickyHeaderIndices: stickyHeaderIndices,
15918
17324
  renderItem: renderItem,
@@ -16092,10 +17498,10 @@ function ItemWithSeparator(props) {
16092
17498
  section,
16093
17499
  separators
16094
17500
  });
16095
- var leadingSeparator = LeadingSeparatorComponent != null && /*#__PURE__*/React__namespace.createElement(LeadingSeparatorComponent, _extends$1({
17501
+ var leadingSeparator = LeadingSeparatorComponent != null && /*#__PURE__*/React__namespace.createElement(LeadingSeparatorComponent, _extends({
16096
17502
  highlighted: leadingSeparatorHiglighted
16097
17503
  }, leadingSeparatorProps));
16098
- var separator = SeparatorComponent != null && /*#__PURE__*/React__namespace.createElement(SeparatorComponent, _extends$1({
17504
+ var separator = SeparatorComponent != null && /*#__PURE__*/React__namespace.createElement(SeparatorComponent, _extends({
16099
17505
  highlighted: separatorHighlighted
16100
17506
  }, separatorProps));
16101
17507
  return leadingSeparator || separator ? /*#__PURE__*/React__namespace.createElement(View$2, null, inverted === false ? leadingSeparator : separator, element, inverted === false ? separator : leadingSeparator) : element;
@@ -16235,7 +17641,7 @@ let SectionList$1 = class SectionList extends React__namespace.PureComponent {
16235
17641
  _stickySectionHeadersEnabled = _this$props.stickySectionHeadersEnabled,
16236
17642
  restProps = _objectWithoutPropertiesLoose(_this$props, _excluded);
16237
17643
  var stickySectionHeadersEnabled = _stickySectionHeadersEnabled !== null && _stickySectionHeadersEnabled !== void 0 ? _stickySectionHeadersEnabled : Platform$1.OS === 'ios';
16238
- return /*#__PURE__*/React__namespace.createElement(VirtualizedSectionList$1, _extends$1({}, restProps, {
17644
+ return /*#__PURE__*/React__namespace.createElement(VirtualizedSectionList$1, _extends({}, restProps, {
16239
17645
  stickySectionHeadersEnabled: stickySectionHeadersEnabled,
16240
17646
  ref: this._captureRef,
16241
17647
  getItemCount: items => items.length,
@@ -16247,7 +17653,7 @@ let SectionList$1 = class SectionList extends React__namespace.PureComponent {
16247
17653
  /**
16248
17654
  * @see https://github.com/facebook/react-native/commit/b8c8562
16249
17655
  */
16250
- var SectionListWithEventThrottle = /*#__PURE__*/React__namespace.forwardRef((props, ref) => /*#__PURE__*/React__namespace.createElement(SectionList$1, _extends$1({
17656
+ var SectionListWithEventThrottle = /*#__PURE__*/React__namespace.forwardRef((props, ref) => /*#__PURE__*/React__namespace.createElement(SectionList$1, _extends({
16251
17657
  scrollEventThrottle: 0.0001
16252
17658
  }, props, {
16253
17659
  ref: ref
@@ -18664,7 +20070,6 @@ var Animated$1 = _objectSpread2({
18664
20070
  View
18665
20071
  }, Animated);
18666
20072
 
18667
- /* istanbul ignore file */
18668
20073
  var useStyles = function (theme) {
18669
20074
  return StyleSheet$1.create({
18670
20075
  container: {
@@ -18742,23 +20147,14 @@ var ProgressBar = function (_a) {
18742
20147
  outputRange: ['0%', '100%']
18743
20148
  })
18744
20149
  };
18745
- return /*#__PURE__*/React__namespace.createElement(View$2, {
18746
- style: containerStyle
18747
- }, /*#__PURE__*/React__namespace.createElement(Animated$1.View, {
18748
- style: [styles.progress, progressStyles, progressWidth]
18749
- }));
20150
+ return jsxRuntimeExports.jsx(View$2, {
20151
+ style: containerStyle,
20152
+ children: jsxRuntimeExports.jsx(Animated$1.View, {
20153
+ style: [styles.progress, progressStyles, progressWidth]
20154
+ })
20155
+ });
18750
20156
  };
18751
20157
 
18752
- function _extends() {
18753
- return _extends = Object.assign ? Object.assign.bind() : function (n) {
18754
- for (var e = 1; e < arguments.length; e++) {
18755
- var t = arguments[e];
18756
- for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
18757
- }
18758
- return n;
18759
- }, _extends.apply(null, arguments);
18760
- }
18761
-
18762
20158
  var IS_WEB = Platform$1.OS === "web";
18763
20159
  Platform$1.OS === "ios";
18764
20160
  Platform$1.OS === "android";
@@ -18794,26 +20190,27 @@ var ProgressiveImage = function (_a) {
18794
20190
  } : {
18795
20191
  tintColor: isDesaturated ? desaturatedColor : undefined
18796
20192
  };
18797
- return /*#__PURE__*/React.createElement(View$2, {
18798
- style: [styles$7.container, style, {
18799
- backgroundColor: backgroundColor
18800
- }]
18801
- }, /*#__PURE__*/React.createElement(Animated$1.View, {
18802
- style: [styles$7.imageOverlay, {
18803
- backgroundColor: backgroundColor,
18804
- opacity: imageAnimated.interpolate({
18805
- inputRange: [0, 1],
18806
- outputRange: [1, 0]
18807
- })
18808
- }]
18809
- }), /*#__PURE__*/React.createElement(Animated$1.Image, _extends({}, props, {
18810
- source: source,
18811
- style: [styles$7.imageOverlay, __assign({
18812
- opacity: imageAnimated
18813
- }, desaturationStyle)],
18814
- onLoad: onImageLoad,
18815
- accessibilityLabel: alt
18816
- })));
20193
+ return jsxRuntimeExports.jsxs(View$2, {
20194
+ style: [styles$7.container, style, {
20195
+ backgroundColor: backgroundColor
20196
+ }],
20197
+ children: [jsxRuntimeExports.jsx(Animated$1.View, {
20198
+ style: [styles$7.imageOverlay, {
20199
+ backgroundColor: backgroundColor,
20200
+ opacity: imageAnimated.interpolate({
20201
+ inputRange: [0, 1],
20202
+ outputRange: [1, 0]
20203
+ })
20204
+ }]
20205
+ }), jsxRuntimeExports.jsx(Animated$1.Image, __assign({}, props, {
20206
+ source: source,
20207
+ style: [styles$7.imageOverlay, __assign({
20208
+ opacity: imageAnimated
20209
+ }, desaturationStyle)],
20210
+ onLoad: onImageLoad,
20211
+ accessibilityLabel: alt
20212
+ }))]
20213
+ });
18817
20214
  };
18818
20215
  var styles$7 = StyleSheet$1.create({
18819
20216
  imageOverlay: {
@@ -18878,7 +20275,7 @@ var Text = function (_a) {
18878
20275
  }
18879
20276
  };
18880
20277
  var variantStyle = getVariantStyle(variant);
18881
- return /*#__PURE__*/React__namespace.createElement(Text$3, _extends({
20278
+ return jsxRuntimeExports.jsx(Text$3, __assign({
18882
20279
  style: [variantStyle, style]
18883
20280
  }, props));
18884
20281
  };
@@ -19066,24 +20463,26 @@ var BaseBanner = function (_a) {
19066
20463
  ctaText = _b.ctaText;
19067
20464
  var handlePress = useHandleTilePress(tile, ctaLink, ctaLinkTarget);
19068
20465
  var hasCTA = Boolean(ctaText);
19069
- return /*#__PURE__*/React.createElement(BannerContext.Provider, {
19070
- value: tile
19071
- }, /*#__PURE__*/React.createElement(Pressable$1, {
19072
- testID: testID || 'banner-tile',
19073
- style: function (_a) {
19074
- var pressed = _a.pressed;
19075
- return [styles$6.container, style, {
19076
- backgroundColor: theme.surface,
19077
- borderRadius: theme.sizes.borderRadiusLg,
19078
- opacity: pressed ? 0.7 : 1
19079
- }];
19080
- },
19081
- onPress: hasCTA ? undefined : handlePress,
19082
- disabled: !ctaLink || hasCTA,
19083
- accessible: true,
19084
- role: hasCTA ? 'article' : 'button',
19085
- accessibilityLabel: accessibilityLabel || "".concat(title).concat(!hasCTA && ctaLink ? ' - Click to open' : '')
19086
- }, children));
20466
+ return jsxRuntimeExports.jsx(BannerContext.Provider, {
20467
+ value: tile,
20468
+ children: jsxRuntimeExports.jsx(Pressable$1, {
20469
+ testID: testID || 'banner-tile',
20470
+ style: function (_a) {
20471
+ var pressed = _a.pressed;
20472
+ return [styles$6.container, style, {
20473
+ backgroundColor: theme.surface,
20474
+ borderRadius: theme.sizes.borderRadiusLg,
20475
+ opacity: pressed ? 0.7 : 1
20476
+ }];
20477
+ },
20478
+ onPress: hasCTA ? undefined : handlePress,
20479
+ disabled: !ctaLink || hasCTA,
20480
+ accessible: true,
20481
+ role: hasCTA ? 'article' : 'button',
20482
+ accessibilityLabel: accessibilityLabel || "".concat(title).concat(!hasCTA && ctaLink ? ' - Click to open' : ''),
20483
+ children: children
20484
+ })
20485
+ });
19087
20486
  };
19088
20487
  var styles$6 = StyleSheet$1.create({
19089
20488
  container: {
@@ -19129,14 +20528,15 @@ var BaseTileBody = function (props) {
19129
20528
  if (!isHalfSize && !artworkUrl) return undefined;
19130
20529
  return isDesktop ? 3 : isTablet ? 4 : 3;
19131
20530
  };
19132
- return /*#__PURE__*/React.createElement(Text, _extends({
20531
+ return jsxRuntimeExports.jsx(Text, __assign({
19133
20532
  variant: "body"
19134
20533
  }, props, {
19135
20534
  accessibilityRole: "text",
19136
20535
  accessibilityLabel: body,
19137
20536
  numberOfLines: getNumberOfLines(),
19138
- testID: "tile-body"
19139
- }), body);
20537
+ testID: "tile-body",
20538
+ children: body
20539
+ }));
19140
20540
  };
19141
20541
 
19142
20542
  /**
@@ -19250,14 +20650,15 @@ var BaseTileContent = function (_a) {
19250
20650
  var sizeInfo = useTileSize(tileContext);
19251
20651
  if (!sizeInfo) return null;
19252
20652
  if (shouldHideContentForHalfTile(sizeInfo, artworkUrl)) return null;
19253
- return /*#__PURE__*/React.createElement(View$2, {
20653
+ return jsxRuntimeExports.jsx(View$2, {
19254
20654
  testID: "tile-content",
19255
20655
  style: [baseStyles.content, {
19256
20656
  justifyContent: 'center',
19257
20657
  height: !artworkUrl ? '100%' : undefined
19258
20658
  }],
19259
- accessibilityRole: "none"
19260
- }, children);
20659
+ accessibilityRole: "none",
20660
+ children: children
20661
+ });
19261
20662
  };
19262
20663
 
19263
20664
  /**
@@ -19281,11 +20682,12 @@ var BaseTileHeader = function (_a) {
19281
20682
  }), sizeInfo.isHalfSize ? {
19282
20683
  alignItems: 'center'
19283
20684
  } : {});
19284
- return /*#__PURE__*/React.createElement(View$2, {
20685
+ return jsxRuntimeExports.jsx(View$2, {
19285
20686
  style: combinedStyle,
19286
20687
  testID: "tile-header",
19287
- accessibilityRole: "header"
19288
- }, children);
20688
+ accessibilityRole: "header",
20689
+ children: children
20690
+ });
19289
20691
  };
19290
20692
 
19291
20693
  /**
@@ -19303,7 +20705,7 @@ var BaseTileMedia = function (props) {
19303
20705
  title = _b === void 0 ? '' : _b;
19304
20706
  var styles = useBaseTileStyles();
19305
20707
  if (!artworkUrl) return null;
19306
- return /*#__PURE__*/React.createElement(ProgressiveImage, _extends({}, props, {
20708
+ return jsxRuntimeExports.jsx(ProgressiveImage, __assign({}, props, {
19307
20709
  source: {
19308
20710
  uri: artworkUrl
19309
20711
  },
@@ -19334,17 +20736,20 @@ var BaseTileTitle = function () {
19334
20736
  var isHalfSize = sizeInfo.isHalfSize;
19335
20737
  // Don't show title for half tiles with image
19336
20738
  if (isHalfSize && artworkUrl || !title) return null;
19337
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, {
19338
- variant: "title",
19339
- accessibilityRole: "header",
19340
- accessibilityLabel: title,
19341
- numberOfLines: 1,
19342
- testID: "tile-title"
19343
- }, title), ctaLink && /*#__PURE__*/React.createElement(Icon, {
19344
- name: "ChevronRight",
19345
- color: (_b = (_a = sdk.theme) === null || _a === void 0 ? void 0 : _a.derivedSurfaceText) === null || _b === void 0 ? void 0 : _b[20],
19346
- accessibilityLabel: "View details"
19347
- }));
20739
+ return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
20740
+ children: [jsxRuntimeExports.jsx(Text, {
20741
+ variant: "title",
20742
+ accessibilityRole: "header",
20743
+ accessibilityLabel: title,
20744
+ numberOfLines: 1,
20745
+ testID: "tile-title",
20746
+ children: title
20747
+ }), ctaLink && jsxRuntimeExports.jsx(Icon, {
20748
+ name: "ChevronRight",
20749
+ color: (_b = (_a = sdk.theme) === null || _a === void 0 ? void 0 : _a.derivedSurfaceText) === null || _b === void 0 ? void 0 : _b[20],
20750
+ accessibilityLabel: "View details"
20751
+ })]
20752
+ });
19348
20753
  };
19349
20754
 
19350
20755
  /**
@@ -19393,7 +20798,7 @@ var BaseTileContainer = function (_a) {
19393
20798
  alignItems: 'stretch'
19394
20799
  };
19395
20800
  var dynamicStyles = useBaseTileStyles();
19396
- return /*#__PURE__*/React.createElement(Pressable$1, {
20801
+ return jsxRuntimeExports.jsx(Pressable$1, {
19397
20802
  style: function (_a) {
19398
20803
  var pressed = _a.pressed;
19399
20804
  return [baseStyles.container, dynamicStyles.container, {
@@ -19408,8 +20813,9 @@ var BaseTileContainer = function (_a) {
19408
20813
  accessibilityLabel: "".concat(title).concat(ctaLink ? ' - Click to open' : ''),
19409
20814
  accessibilityState: {
19410
20815
  disabled: !ctaLink
19411
- }
19412
- }, children);
20816
+ },
20817
+ children: children
20818
+ });
19413
20819
  };
19414
20820
  /**
19415
20821
  * BaseTileRoot component to provide context and render children.
@@ -19425,11 +20831,13 @@ var BaseTileRoot = function (_a) {
19425
20831
  console.warn('BaseTile: No tile provided');
19426
20832
  return null;
19427
20833
  }
19428
- return /*#__PURE__*/React.createElement(TileContext.Provider, {
19429
- value: tile
19430
- }, /*#__PURE__*/React.createElement(BaseTile.Container, {
19431
- style: style
19432
- }, children));
20834
+ return jsxRuntimeExports.jsx(TileContext.Provider, {
20835
+ value: tile,
20836
+ children: jsxRuntimeExports.jsx(BaseTile.Container, {
20837
+ style: style,
20838
+ children: children
20839
+ })
20840
+ });
19433
20841
  };
19434
20842
  /**
19435
20843
  * BaseTile component with subcomponents attached.
@@ -19443,7 +20851,6 @@ var BaseTile = Object.assign(BaseTileRoot, {
19443
20851
  Body: BaseTileBody
19444
20852
  });
19445
20853
 
19446
- /* istanbul ignore file */
19447
20854
  var Indicator = function () {
19448
20855
  var _a = useResponsive$1(),
19449
20856
  isDesktop = _a.isDesktop,
@@ -19453,11 +20860,13 @@ var Indicator = function () {
19453
20860
  if (isTablet) return 'Tablet Layout';
19454
20861
  return 'Mobile Layout';
19455
20862
  };
19456
- return /*#__PURE__*/React.createElement(View$2, {
19457
- style: styles$5.indicator
19458
- }, /*#__PURE__*/React.createElement(Text$3, {
19459
- style: styles$5.indicatorText
19460
- }, getCurrentLayout()));
20863
+ return jsxRuntimeExports.jsx(View$2, {
20864
+ style: styles$5.indicator,
20865
+ children: jsxRuntimeExports.jsx(Text$3, {
20866
+ style: styles$5.indicatorText,
20867
+ children: getCurrentLayout()
20868
+ })
20869
+ });
19461
20870
  };
19462
20871
  var styles$5 = StyleSheet$1.create({
19463
20872
  indicator: {
@@ -19478,7 +20887,6 @@ var styles$5 = StyleSheet$1.create({
19478
20887
 
19479
20888
  var GRID_GAP = 16;
19480
20889
 
19481
- /* istanbul ignore file */
19482
20890
  var SkeletonTile = function (_a) {
19483
20891
  var style = _a.style;
19484
20892
  var theme = useWllSdk().theme;
@@ -19502,7 +20910,7 @@ var SkeletonTile = function (_a) {
19502
20910
  inputRange: [0, 1],
19503
20911
  outputRange: [0.3, 0.7]
19504
20912
  });
19505
- return /*#__PURE__*/React__namespace.createElement(Animated$1.View, {
20913
+ return jsxRuntimeExports.jsx(Animated$1.View, {
19506
20914
  style: [styles$4.container, {
19507
20915
  opacity: opacity,
19508
20916
  backgroundColor: theme.alphaDerivedText[20],
@@ -19518,7 +20926,6 @@ var styles$4 = StyleSheet$1.create({
19518
20926
  }
19519
20927
  });
19520
20928
 
19521
- /* istanbul ignore file */
19522
20929
  var Skeleton = function (_a) {
19523
20930
  var style = _a.style,
19524
20931
  _b = _a.numberOfSquares,
@@ -19544,29 +20951,29 @@ var Skeleton = function (_a) {
19544
20951
  inputRange: [0, 1],
19545
20952
  outputRange: [0.3, 0.7]
19546
20953
  });
19547
- return /*#__PURE__*/React__namespace.createElement(View$2, {
19548
- testID: "loading-skeleton"
19549
- }, /*#__PURE__*/React__namespace.createElement(Animated$1.View, {
19550
- style: [styles$3.skeleton, styles$3.title, {
19551
- opacity: opacity,
19552
- backgroundColor: theme.alphaDerivedText[20],
19553
- borderRadius: 6
19554
- }]
19555
- }), /*#__PURE__*/React__namespace.createElement(Animated$1.View, {
19556
- style: [styles$3.skeleton, styles$3.body, {
19557
- opacity: opacity,
19558
- backgroundColor: theme.alphaDerivedText[20],
19559
- borderRadius: 6
19560
- }]
19561
- }), /*#__PURE__*/React__namespace.createElement(Animated$1.View, {
19562
- style: [styles$3.container, style]
19563
- }, Array.from({
19564
- length: numberOfSquares
19565
- }).map(function (_, index) {
19566
- return /*#__PURE__*/React__namespace.createElement(SkeletonTile, {
19567
- key: index
19568
- });
19569
- })));
20954
+ return jsxRuntimeExports.jsxs(View$2, {
20955
+ testID: "loading-skeleton",
20956
+ children: [jsxRuntimeExports.jsx(Animated$1.View, {
20957
+ style: [styles$3.skeleton, styles$3.title, {
20958
+ opacity: opacity,
20959
+ backgroundColor: theme.alphaDerivedText[20],
20960
+ borderRadius: 6
20961
+ }]
20962
+ }), jsxRuntimeExports.jsx(Animated$1.View, {
20963
+ style: [styles$3.skeleton, styles$3.body, {
20964
+ opacity: opacity,
20965
+ backgroundColor: theme.alphaDerivedText[20],
20966
+ borderRadius: 6
20967
+ }]
20968
+ }), jsxRuntimeExports.jsx(Animated$1.View, {
20969
+ style: [styles$3.container, style],
20970
+ children: Array.from({
20971
+ length: numberOfSquares
20972
+ }).map(function (_, index) {
20973
+ return jsxRuntimeExports.jsx(SkeletonTile, {}, index);
20974
+ })
20975
+ })]
20976
+ });
19570
20977
  };
19571
20978
  var styles$3 = StyleSheet$1.create({
19572
20979
  container: {
@@ -19651,18 +21058,21 @@ function withTileFetching(WrappedComponent) {
19651
21058
  }
19652
21059
  }, [tile, tileId, getTileByID]);
19653
21060
  if (isLoading) {
19654
- return /*#__PURE__*/React.createElement(SkeletonTile, {
21061
+ return jsxRuntimeExports.jsx(SkeletonTile, {
19655
21062
  style: {
19656
21063
  width: '100%'
19657
21064
  }
19658
21065
  });
19659
21066
  }
19660
21067
  if (error || !tileData) {
19661
- return /*#__PURE__*/React.createElement(View$2, {
19662
- style: commonStyles.emptyContainer
19663
- }, /*#__PURE__*/React.createElement(Text$3, null, "No tile data available"));
21068
+ return jsxRuntimeExports.jsx(View$2, {
21069
+ style: commonStyles.emptyContainer,
21070
+ children: jsxRuntimeExports.jsx(Text$3, {
21071
+ children: "No tile data available"
21072
+ })
21073
+ });
19664
21074
  }
19665
- return /*#__PURE__*/React.createElement(WrappedComponent, _extends({}, props, {
21075
+ return jsxRuntimeExports.jsx(WrappedComponent, __assign({}, props, {
19666
21076
  tile: tileData
19667
21077
  }));
19668
21078
  };
@@ -19753,21 +21163,23 @@ var BadgeTileDateEarned = function () {
19753
21163
  var textColor = getReadableTextColor(backgroundColor);
19754
21164
  var displayText = count === 0 ? badgeNotEarnedMessage : "".concat(awardedDatePrefix, " ").concat(new Date(createdAt).toLocaleDateString());
19755
21165
  var accessibilityLabel = count === 0 ? 'Badge not yet earned' : "Badge earned on ".concat(new Date(createdAt).toLocaleDateString());
19756
- return /*#__PURE__*/React.createElement(View$2, {
21166
+ return jsxRuntimeExports.jsx(View$2, {
19757
21167
  style: containerStyle,
19758
21168
  accessible: true,
19759
21169
  accessibilityLabel: accessibilityLabel,
19760
- testID: "badge-tile-date-earned"
19761
- }, /*#__PURE__*/React.createElement(Text, {
19762
- variant: "label",
19763
- style: [styles.dateEarnedText, {
19764
- color: textColor
19765
- }],
19766
- numberOfLines: 1,
19767
- ellipsizeMode: "tail",
19768
- accessibilityElementsHidden: true,
19769
- importantForAccessibility: "no-hide-descendants"
19770
- }, displayText));
21170
+ testID: "badge-tile-date-earned",
21171
+ children: jsxRuntimeExports.jsx(Text, {
21172
+ variant: "label",
21173
+ style: [styles.dateEarnedText, {
21174
+ color: textColor
21175
+ }],
21176
+ numberOfLines: 1,
21177
+ ellipsizeMode: "tail",
21178
+ accessibilityElementsHidden: true,
21179
+ importantForAccessibility: "no-hide-descendants",
21180
+ children: displayText
21181
+ })
21182
+ });
19771
21183
  };
19772
21184
 
19773
21185
  /**
@@ -19786,17 +21198,19 @@ var BadgeTileDescription = function () {
19786
21198
  // For Latest type, hide description when count = 0
19787
21199
  // For Specific type, always show description
19788
21200
  if (count === 0 && type === exports.BadgeTileType.Latest) return null;
19789
- return /*#__PURE__*/React.createElement(View$2, {
21201
+ return jsxRuntimeExports.jsx(View$2, {
19790
21202
  accessible: true,
19791
21203
  accessibilityLabel: "Badge description: ".concat(description),
19792
- testID: "badge-tile-description"
19793
- }, /*#__PURE__*/React.createElement(Text, {
19794
- variant: "body",
19795
- numberOfLines: 2,
19796
- ellipsizeMode: "tail",
19797
- accessibilityElementsHidden: true,
19798
- importantForAccessibility: "no-hide-descendants"
19799
- }, description));
21204
+ testID: "badge-tile-description",
21205
+ children: jsxRuntimeExports.jsx(Text, {
21206
+ variant: "body",
21207
+ numberOfLines: 2,
21208
+ ellipsizeMode: "tail",
21209
+ accessibilityElementsHidden: true,
21210
+ importantForAccessibility: "no-hide-descendants",
21211
+ children: description
21212
+ })
21213
+ });
19800
21214
  };
19801
21215
 
19802
21216
  /**
@@ -19819,18 +21233,19 @@ var BadgeTileMedia = function (_a) {
19819
21233
  name = _b.name;
19820
21234
  var displayUrl = type === exports.BadgeTileType.Specific ? artworkUrl : count === 0 ? emptyBadgeArtworkUrl : artworkUrl;
19821
21235
  if (!displayUrl) return null;
19822
- return /*#__PURE__*/React.createElement(View$2, {
21236
+ return jsxRuntimeExports.jsxs(View$2, {
19823
21237
  style: styles.header,
19824
- testID: "badge-tile-media"
19825
- }, /*#__PURE__*/React.createElement(ProgressiveImage, _extends({}, props, {
19826
- source: {
19827
- uri: displayUrl
19828
- },
19829
- style: styles.image,
19830
- resizeMode: "contain",
19831
- isDesaturated: shouldDesaturate(type, count),
19832
- alt: alt !== null && alt !== void 0 ? alt : "Badge ".concat(name).concat(type === exports.BadgeTileType.Latest && count === 0 ? ' (not earned)' : '')
19833
- })), children);
21238
+ testID: "badge-tile-media",
21239
+ children: [jsxRuntimeExports.jsx(ProgressiveImage, __assign({}, props, {
21240
+ source: {
21241
+ uri: displayUrl
21242
+ },
21243
+ style: styles.image,
21244
+ resizeMode: "contain",
21245
+ isDesaturated: shouldDesaturate(type, count),
21246
+ alt: alt !== null && alt !== void 0 ? alt : "Badge ".concat(name).concat(type === exports.BadgeTileType.Latest && count === 0 ? ' (not earned)' : '')
21247
+ })), children]
21248
+ });
19834
21249
  };
19835
21250
 
19836
21251
  /**
@@ -19850,22 +21265,24 @@ var BadgeTileStatus = function () {
19850
21265
  }
19851
21266
  var isLocked = count === 0;
19852
21267
  var statusLabel = isLocked ? 'Badge locked' : "Earned ".concat(count, " times");
19853
- return /*#__PURE__*/React.createElement(View$2, {
21268
+ return jsxRuntimeExports.jsx(View$2, {
19854
21269
  style: styles.indicatorContainer,
19855
21270
  accessible: true,
19856
21271
  accessibilityLabel: statusLabel,
19857
- testID: "badge-tile-status"
19858
- }, isLocked ? /*#__PURE__*/React.createElement(Icon, {
19859
- name: "LockKeyhole",
19860
- testID: "badge-tile-status-locked",
19861
- color: "#FFF",
19862
- size: 20,
19863
- accessibilityElementsHidden: true
19864
- }) : /*#__PURE__*/React.createElement(Text, {
19865
- style: styles.countText,
19866
- accessibilityElementsHidden: true,
19867
- importantForAccessibility: "no-hide-descendants"
19868
- }, count, "x"));
21272
+ testID: "badge-tile-status",
21273
+ children: isLocked ? jsxRuntimeExports.jsx(Icon, {
21274
+ name: "LockKeyhole",
21275
+ testID: "badge-tile-status-locked",
21276
+ color: "#FFF",
21277
+ size: 20,
21278
+ accessibilityElementsHidden: true
21279
+ }) : jsxRuntimeExports.jsxs(Text, {
21280
+ style: styles.countText,
21281
+ accessibilityElementsHidden: true,
21282
+ importantForAccessibility: "no-hide-descendants",
21283
+ children: [count, "x"]
21284
+ })
21285
+ });
19869
21286
  };
19870
21287
 
19871
21288
  /**
@@ -19884,18 +21301,20 @@ var BadgeTileTitle = function () {
19884
21301
  type = _a.type;
19885
21302
  var displayText = type === exports.BadgeTileType.Specific ? name : count === 0 ? emptyBadgeMessage : name;
19886
21303
  if (!displayText) return null;
19887
- return /*#__PURE__*/React.createElement(View$2, {
21304
+ return jsxRuntimeExports.jsx(View$2, {
19888
21305
  accessible: true,
19889
21306
  accessibilityLabel: "Badge title: ".concat(displayText),
19890
- testID: "badge-tile-title"
19891
- }, /*#__PURE__*/React.createElement(Text, {
19892
- variant: "title",
19893
- style: styles.titleText,
19894
- numberOfLines: count === 0 ? 2 : 1,
19895
- ellipsizeMode: "tail",
19896
- accessibilityElementsHidden: true,
19897
- importantForAccessibility: "no-hide-descendants"
19898
- }, displayText));
21307
+ testID: "badge-tile-title",
21308
+ children: jsxRuntimeExports.jsx(Text, {
21309
+ variant: "title",
21310
+ style: styles.titleText,
21311
+ numberOfLines: count === 0 ? 2 : 1,
21312
+ ellipsizeMode: "tail",
21313
+ accessibilityElementsHidden: true,
21314
+ importantForAccessibility: "no-hide-descendants",
21315
+ children: displayText
21316
+ })
21317
+ });
19899
21318
  };
19900
21319
 
19901
21320
  /**
@@ -19906,12 +21325,16 @@ var BadgeTileTitle = function () {
19906
21325
  var BadgeTileRoot = function (_a) {
19907
21326
  var tile = _a.tile;
19908
21327
  if (!tile || tile.tileHeight !== exports.TileHeight.Full || !tile.active) return null;
19909
- return /*#__PURE__*/React.createElement(BaseTile, {
19910
- tile: tile
19911
- }, /*#__PURE__*/React.createElement(BadgeTile.Media, null, /*#__PURE__*/React.createElement(BadgeTile.Status, null)), /*#__PURE__*/React.createElement(Layout, {
19912
- justify: "between",
19913
- align: "start"
19914
- }, /*#__PURE__*/React.createElement(BadgeTile.Title, null), /*#__PURE__*/React.createElement(BadgeTile.Description, null), /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(BadgeTile.DateEarned, null)));
21328
+ return jsxRuntimeExports.jsxs(BaseTile, {
21329
+ tile: tile,
21330
+ children: [jsxRuntimeExports.jsx(BadgeTile.Media, {
21331
+ children: jsxRuntimeExports.jsx(BadgeTile.Status, {})
21332
+ }), jsxRuntimeExports.jsxs(Layout, {
21333
+ justify: "between",
21334
+ align: "start",
21335
+ children: [jsxRuntimeExports.jsx(BadgeTile.Title, {}), jsxRuntimeExports.jsx(BadgeTile.Description, {}), jsxRuntimeExports.jsx(Spacer, {}), jsxRuntimeExports.jsx(BadgeTile.DateEarned, {})]
21336
+ })]
21337
+ });
19915
21338
  };
19916
21339
  /**
19917
21340
  * The BadgeTile component with subcomponents attached.
@@ -19942,7 +21365,7 @@ var BannerTileCTA = function () {
19942
21365
  if (!ctaText || !ctaLink) return null;
19943
21366
  var handlePress = useHandleTilePress(bannerContext, ctaLink, ctaLinkTarget);
19944
21367
  var hint = ctaLink ? ctaLinkTarget === exports.CTALinkTarget.newWindow ? "Opens ".concat(ctaLink, " in a new window") : "Takes you to ".concat(ctaLink) : '';
19945
- return /*#__PURE__*/React.createElement(Button, {
21368
+ return jsxRuntimeExports.jsx(Button, {
19946
21369
  testID: "banner-tile-cta",
19947
21370
  title: ctaText,
19948
21371
  variant: "accent",
@@ -20004,12 +21427,13 @@ var BannerTileDescription = function () {
20004
21427
  if (!isContextValid(bannerContext)) return null;
20005
21428
  var description = bannerContext.configuration.description;
20006
21429
  if (!description) return null;
20007
- return /*#__PURE__*/React.createElement(Text, {
21430
+ return jsxRuntimeExports.jsx(Text, {
20008
21431
  style: styles.description,
20009
21432
  accessibilityRole: "text",
20010
21433
  accessibilityLabel: description,
20011
- testID: "banner-tile-description"
20012
- }, description);
21434
+ testID: "banner-tile-description",
21435
+ children: description
21436
+ });
20013
21437
  };
20014
21438
 
20015
21439
  /**
@@ -20029,18 +21453,19 @@ var BannerTileMedia = function (_a) {
20029
21453
  var containerStyle = {
20030
21454
  width: isArtworkOnly ? '100%' : '30%'
20031
21455
  };
20032
- return /*#__PURE__*/React.createElement(View$2, {
21456
+ return jsxRuntimeExports.jsx(View$2, {
20033
21457
  style: [styles.mediaContainer, containerStyle],
20034
21458
  accessibilityRole: "image",
20035
21459
  accessibilityLabel: "Banner image".concat(title ? " for ".concat(title) : ''),
20036
- testID: "banner-tile-media"
20037
- }, /*#__PURE__*/React.createElement(ProgressiveImage, {
20038
- source: {
20039
- uri: artworkUrl
20040
- },
20041
- style: styles.media,
20042
- alt: "Banner image".concat(title ? " for ".concat(title) : '')
20043
- }));
21460
+ testID: "banner-tile-media",
21461
+ children: jsxRuntimeExports.jsx(ProgressiveImage, {
21462
+ source: {
21463
+ uri: artworkUrl
21464
+ },
21465
+ style: styles.media,
21466
+ alt: "Banner image".concat(title ? " for ".concat(title) : '')
21467
+ })
21468
+ });
20044
21469
  };
20045
21470
 
20046
21471
  /**
@@ -20054,13 +21479,14 @@ var BannerTileTitle = function () {
20054
21479
  if (!isContextValid(bannerContext)) return null;
20055
21480
  var title = bannerContext.configuration.title;
20056
21481
  if (!title) return null;
20057
- return /*#__PURE__*/React.createElement(Text, {
21482
+ return jsxRuntimeExports.jsx(Text, {
20058
21483
  variant: "title",
20059
21484
  testID: "banner-tile-title",
20060
21485
  style: styles.title,
20061
21486
  accessibilityRole: "header",
20062
- accessibilityLabel: title
20063
- }, title);
21487
+ accessibilityLabel: title,
21488
+ children: title
21489
+ });
20064
21490
  };
20065
21491
 
20066
21492
  /**
@@ -20085,11 +21511,14 @@ var BannerTileRoot = function (_a) {
20085
21511
  var tile = _a.tile;
20086
21512
  if (!tile || !tile.active || !tile.configuration) return null;
20087
21513
  var configuration = tile.configuration;
20088
- return /*#__PURE__*/React.createElement(BaseBanner, {
20089
- tile: tile
20090
- }, /*#__PURE__*/React.createElement(BannerTile.Media, {
20091
- isArtworkOnly: isArtworkOnly$1(configuration)
20092
- }), /*#__PURE__*/React.createElement(FullFlex, null, /*#__PURE__*/React.createElement(BannerTile.Title, null), /*#__PURE__*/React.createElement(BannerTile.Description, null), /*#__PURE__*/React.createElement(BannerTile.CTA, null)));
21514
+ return jsxRuntimeExports.jsxs(BaseBanner, {
21515
+ tile: tile,
21516
+ children: [jsxRuntimeExports.jsx(BannerTile.Media, {
21517
+ isArtworkOnly: isArtworkOnly$1(configuration)
21518
+ }), jsxRuntimeExports.jsxs(FullFlex, {
21519
+ children: [jsxRuntimeExports.jsx(BannerTile.Title, {}), jsxRuntimeExports.jsx(BannerTile.Description, {}), jsxRuntimeExports.jsx(BannerTile.CTA, {})]
21520
+ })]
21521
+ });
20093
21522
  };
20094
21523
  /**
20095
21524
  * The BannerTile component with subcomponents attached.
@@ -20103,12 +21532,14 @@ var BannerTile = Object.assign(BannerTileRoot, {
20103
21532
  var BannerTile$1 = withTileFetching(BannerTile);
20104
21533
 
20105
21534
  var ContentTileBody = function () {
20106
- return /*#__PURE__*/React.createElement(BaseTile.Body, null);
21535
+ return jsxRuntimeExports.jsx(BaseTile.Body, {});
20107
21536
  };
20108
21537
 
20109
21538
  var ContentTileContainer = function (_a) {
20110
21539
  var children = _a.children;
20111
- return /*#__PURE__*/React.createElement(BaseTile.Container, null, children);
21540
+ return jsxRuntimeExports.jsx(BaseTile.Container, {
21541
+ children: children
21542
+ });
20112
21543
  };
20113
21544
 
20114
21545
  /**
@@ -20137,9 +21568,12 @@ var useContentTileStyles = function () {
20137
21568
  var ContentTileContent = function (_a) {
20138
21569
  var children = _a.children;
20139
21570
  var styles = useContentTileStyles();
20140
- return /*#__PURE__*/React.createElement(BaseTile.Content, null, /*#__PURE__*/React.createElement(View$2, {
20141
- style: styles.content
20142
- }, children));
21571
+ return jsxRuntimeExports.jsx(BaseTile.Content, {
21572
+ children: jsxRuntimeExports.jsx(View$2, {
21573
+ style: styles.content,
21574
+ children: children
21575
+ })
21576
+ });
20143
21577
  };
20144
21578
 
20145
21579
  var ContentTileHeader = function () {
@@ -20147,12 +21581,14 @@ var ContentTileHeader = function () {
20147
21581
  if (!isContextValid(tileContext)) return null;
20148
21582
  var title = tileContext.configuration.title;
20149
21583
  if (!title) return null;
20150
- return /*#__PURE__*/React.createElement(BaseTile.Header, null, /*#__PURE__*/React.createElement(BaseTile.Title, null));
21584
+ return jsxRuntimeExports.jsx(BaseTile.Header, {
21585
+ children: jsxRuntimeExports.jsx(BaseTile.Title, {})
21586
+ });
20151
21587
  };
20152
21588
 
20153
21589
  var ContentTileMedia = function () {
20154
21590
  var styles = useContentTileStyles();
20155
- return /*#__PURE__*/React.createElement(BaseTile.Media, {
21591
+ return jsxRuntimeExports.jsx(BaseTile.Media, {
20156
21592
  style: styles.media
20157
21593
  });
20158
21594
  };
@@ -20165,9 +21601,14 @@ var ContentTileMedia = function () {
20165
21601
  var ContentTileRoot = function (_a) {
20166
21602
  var tile = _a.tile;
20167
21603
  if (!tile || !tile.active) return null;
20168
- return /*#__PURE__*/React.createElement(BaseTile, {
20169
- tile: tile
20170
- }, /*#__PURE__*/React.createElement(ContentTile.Container, null, /*#__PURE__*/React.createElement(ContentTile.Media, null), /*#__PURE__*/React.createElement(ContentTile.Content, null, /*#__PURE__*/React.createElement(ContentTile.Header, null), /*#__PURE__*/React.createElement(ContentTile.Body, null))));
21604
+ return jsxRuntimeExports.jsx(BaseTile, {
21605
+ tile: tile,
21606
+ children: jsxRuntimeExports.jsxs(ContentTile.Container, {
21607
+ children: [jsxRuntimeExports.jsx(ContentTile.Media, {}), jsxRuntimeExports.jsxs(ContentTile.Content, {
21608
+ children: [jsxRuntimeExports.jsx(ContentTile.Header, {}), jsxRuntimeExports.jsx(ContentTile.Body, {})]
21609
+ })]
21610
+ })
21611
+ });
20171
21612
  };
20172
21613
  /**
20173
21614
  * The ContentTile component with subcomponents attached.
@@ -20266,18 +21707,21 @@ var SectionHeader = function (_a) {
20266
21707
  if (!title) {
20267
21708
  return null;
20268
21709
  }
20269
- return /*#__PURE__*/React.createElement(View$2, {
20270
- style: styles.sectionHeader
20271
- }, title && /*#__PURE__*/React.createElement(Text, {
20272
- style: [styles.sectionTitle, {
20273
- fontWeight: '700',
20274
- color: theme.text
20275
- }]
20276
- }, title), description && /*#__PURE__*/React.createElement(Text, {
20277
- style: [styles.sectionDescription, {
20278
- color: theme.alphaDerivedText[80]
20279
- }]
20280
- }, description));
21710
+ return jsxRuntimeExports.jsxs(View$2, {
21711
+ style: styles.sectionHeader,
21712
+ children: [title && jsxRuntimeExports.jsx(Text, {
21713
+ style: [styles.sectionTitle, {
21714
+ fontWeight: '700',
21715
+ color: theme.text
21716
+ }],
21717
+ children: title
21718
+ }), description && jsxRuntimeExports.jsx(Text, {
21719
+ style: [styles.sectionDescription, {
21720
+ color: theme.alphaDerivedText[80]
21721
+ }],
21722
+ children: description
21723
+ })]
21724
+ });
20281
21725
  };
20282
21726
 
20283
21727
  var useCarouselStyles = function (buttonSize) {
@@ -20451,85 +21895,92 @@ var Carousel = function (_a) {
20451
21895
  marginTop: useResponsiveValue(theme.sizes.xxl, theme.sizes.sm, isDesktop, isTablet)
20452
21896
  }
20453
21897
  });
20454
- return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SectionHeader, {
20455
- title: section.title,
20456
- description: section.description
20457
- }), /*#__PURE__*/React.createElement(View$2, {
20458
- ref: containerRef,
20459
- style: styles.container,
20460
- onLayout: function (event) {
20461
- var width = event.nativeEvent.layout.width;
20462
- dispatch({
20463
- type: 'SET_CONTAINER_WIDTH',
20464
- payload: width
20465
- });
20466
- }
20467
- }, /*#__PURE__*/React.createElement(View$2, {
20468
- style: styles.carouselContainer
20469
- }, showPrevButton && /*#__PURE__*/React.createElement(Pressable$1, {
20470
- style: [styles.navButton, styles.navButtonLeft, {
20471
- backgroundColor: theme.background
20472
- }],
20473
- onPress: handlePrev,
20474
- accessibilityLabel: "Previous slide",
20475
- role: "button"
20476
- }, /*#__PURE__*/React.createElement(Icon, {
20477
- name: "ArrowLeft",
20478
- size: 20,
20479
- color: theme.primary
20480
- })), /*#__PURE__*/React.createElement(ScrollView$2, {
20481
- ref: scrollViewRef,
20482
- horizontal: true,
20483
- pagingEnabled: true,
20484
- showsHorizontalScrollIndicator: false,
20485
- onScroll: handleScroll,
20486
- onMomentumScrollEnd: handleScrollEnd,
20487
- scrollEventThrottle: 16,
20488
- style: [styles.carouselContent],
20489
- contentContainerStyle: {
20490
- width: containerWidth * sortedTiles.length
20491
- },
20492
- decelerationRate: "fast",
20493
- snapToInterval: containerWidth,
20494
- snapToAlignment: "start"
20495
- }, sortedTiles.map(function (tile, index) {
20496
- return /*#__PURE__*/React.createElement(View$2, {
20497
- key: index,
20498
- style: [styles.slideContainer, {
20499
- width: containerWidth
20500
- }]
20501
- }, /*#__PURE__*/React.createElement(BannerTile$1, {
20502
- tile: tile
20503
- }));
20504
- })), showNextButton && /*#__PURE__*/React.createElement(Pressable$1, {
20505
- style: [styles.navButton, styles.navButtonRight, {
20506
- backgroundColor: theme.background
20507
- }],
20508
- onPress: handleNext,
20509
- accessibilityLabel: "Next slide",
20510
- role: "button"
20511
- }, /*#__PURE__*/React.createElement(Icon, {
20512
- name: "ArrowRight",
20513
- size: 20,
20514
- color: theme.primary
20515
- }))), displayControls && /*#__PURE__*/React.createElement(View$2, {
20516
- style: dynamicStyles.indicators
20517
- }, sortedTiles.map(function (_, index) {
20518
- var width = animatedIndex.interpolate({
20519
- inputRange: [index - 1, index, index + 1],
20520
- outputRange: [8, 30, 8],
20521
- extrapolate: 'clamp'
20522
- });
20523
- return /*#__PURE__*/React.createElement(Animated$1.View, {
20524
- key: index,
20525
- style: [styles.indicator, {
20526
- backgroundColor: theme.derivedBackground,
20527
- width: width
20528
- }, index === currentIndex && {
20529
- backgroundColor: theme.primary
20530
- }]
20531
- });
20532
- }))));
21898
+ return jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, {
21899
+ children: [jsxRuntimeExports.jsx(SectionHeader, {
21900
+ title: section.title,
21901
+ description: section.description
21902
+ }), jsxRuntimeExports.jsxs(View$2, {
21903
+ ref: containerRef,
21904
+ style: styles.container,
21905
+ onLayout: function (event) {
21906
+ var width = event.nativeEvent.layout.width;
21907
+ dispatch({
21908
+ type: 'SET_CONTAINER_WIDTH',
21909
+ payload: width
21910
+ });
21911
+ },
21912
+ children: [jsxRuntimeExports.jsxs(View$2, {
21913
+ style: styles.carouselContainer,
21914
+ children: [showPrevButton && jsxRuntimeExports.jsx(Pressable$1, {
21915
+ style: [styles.navButton, styles.navButtonLeft, {
21916
+ backgroundColor: theme.background
21917
+ }],
21918
+ onPress: handlePrev,
21919
+ accessibilityLabel: "Previous slide",
21920
+ role: "button",
21921
+ children: jsxRuntimeExports.jsx(Icon, {
21922
+ name: "ArrowLeft",
21923
+ size: 20,
21924
+ color: theme.primary
21925
+ })
21926
+ }), jsxRuntimeExports.jsx(ScrollView$2, {
21927
+ ref: scrollViewRef,
21928
+ horizontal: true,
21929
+ pagingEnabled: true,
21930
+ showsHorizontalScrollIndicator: false,
21931
+ onScroll: handleScroll,
21932
+ onMomentumScrollEnd: handleScrollEnd,
21933
+ scrollEventThrottle: 16,
21934
+ style: [styles.carouselContent],
21935
+ contentContainerStyle: {
21936
+ width: containerWidth * sortedTiles.length
21937
+ },
21938
+ decelerationRate: "fast",
21939
+ snapToInterval: containerWidth,
21940
+ snapToAlignment: "start",
21941
+ children: sortedTiles.map(function (tile, index) {
21942
+ return jsxRuntimeExports.jsx(View$2, {
21943
+ style: [styles.slideContainer, {
21944
+ width: containerWidth
21945
+ }],
21946
+ children: jsxRuntimeExports.jsx(BannerTile$1, {
21947
+ tile: tile
21948
+ })
21949
+ }, index);
21950
+ })
21951
+ }), showNextButton && jsxRuntimeExports.jsx(Pressable$1, {
21952
+ style: [styles.navButton, styles.navButtonRight, {
21953
+ backgroundColor: theme.background
21954
+ }],
21955
+ onPress: handleNext,
21956
+ accessibilityLabel: "Next slide",
21957
+ role: "button",
21958
+ children: jsxRuntimeExports.jsx(Icon, {
21959
+ name: "ArrowRight",
21960
+ size: 20,
21961
+ color: theme.primary
21962
+ })
21963
+ })]
21964
+ }), displayControls && jsxRuntimeExports.jsx(View$2, {
21965
+ style: dynamicStyles.indicators,
21966
+ children: sortedTiles.map(function (_, index) {
21967
+ var width = animatedIndex.interpolate({
21968
+ inputRange: [index - 1, index, index + 1],
21969
+ outputRange: [8, 30, 8],
21970
+ extrapolate: 'clamp'
21971
+ });
21972
+ return jsxRuntimeExports.jsx(Animated$1.View, {
21973
+ style: [styles.indicator, {
21974
+ backgroundColor: theme.derivedBackground,
21975
+ width: width
21976
+ }, index === currentIndex && {
21977
+ backgroundColor: theme.primary
21978
+ }]
21979
+ }, index);
21980
+ })
21981
+ })]
21982
+ })]
21983
+ });
20533
21984
  };
20534
21985
 
20535
21986
  var Grid = function (_a) {
@@ -20582,27 +22033,30 @@ var Grid = function (_a) {
20582
22033
  };
20583
22034
  if (shouldStartNewContainer(currentTiles, tile, nextTile)) {
20584
22035
  var isLastInRow = (tileContainers.length + 1) % columnsPerRow === 0;
20585
- tileContainers.push(/*#__PURE__*/React.createElement(View$2, {
20586
- key: "container-".concat(index),
22036
+ tileContainers.push(jsxRuntimeExports.jsx(View$2, {
20587
22037
  style: [
20588
22038
  // @ts-ignore Web uses CSS calc strings for responsive layouts, while ViewStyle expects numbers
20589
22039
  getTileWidth(columnsPerRow), !isLastInRow && {
20590
22040
  marginRight: GRID_GAP
20591
- }]
20592
- }, /*#__PURE__*/React.createElement(TileContainer, {
20593
- tiles: currentTiles
20594
- })));
22041
+ }],
22042
+ children: jsxRuntimeExports.jsx(TileContainer, {
22043
+ tiles: currentTiles
22044
+ })
22045
+ }, "container-".concat(index)));
20595
22046
  currentTiles = [];
20596
22047
  }
20597
22048
  });
20598
22049
  return tileContainers;
20599
22050
  }, [gridTiles, columnsPerRow, getTileWidth]);
20600
- return /*#__PURE__*/React.createElement(View$2, null, /*#__PURE__*/React.createElement(SectionHeader, {
20601
- title: section.title,
20602
- description: section.description
20603
- }), /*#__PURE__*/React.createElement(View$2, {
20604
- style: styles$2.grid
20605
- }, renderTileContainers()));
22051
+ return jsxRuntimeExports.jsxs(View$2, {
22052
+ children: [jsxRuntimeExports.jsx(SectionHeader, {
22053
+ title: section.title,
22054
+ description: section.description
22055
+ }), jsxRuntimeExports.jsx(View$2, {
22056
+ style: styles$2.grid,
22057
+ children: renderTileContainers()
22058
+ })]
22059
+ });
20606
22060
  };
20607
22061
  var styles$2 = StyleSheet$1.create({
20608
22062
  grid: {
@@ -20612,7 +22066,6 @@ var styles$2 = StyleSheet$1.create({
20612
22066
  }
20613
22067
  });
20614
22068
 
20615
- /* istanbul ignore file */
20616
22069
  var ProgressIndicator = function (_a) {
20617
22070
  var currentPoints = _a.currentPoints,
20618
22071
  maxPoints = _a.maxPoints,
@@ -20631,25 +22084,28 @@ var ProgressIndicator = function (_a) {
20631
22084
  } else if (percentage < 50) {
20632
22085
  progressVariant = 'accent';
20633
22086
  }
20634
- return /*#__PURE__*/React__namespace.createElement(View$2, {
20635
- style: styles$1.container
20636
- }, /*#__PURE__*/React__namespace.createElement(ProgressBar, {
20637
- percentage: percentage,
20638
- variant: progressVariant,
20639
- height: height
20640
- }), /*#__PURE__*/React__namespace.createElement(View$2, {
20641
- style: [styles$1.circleContainer]
20642
- }, /*#__PURE__*/React__namespace.createElement(View$2, {
20643
- style: [styles$1.circle, {
20644
- borderColor: theme.derivedSurface[20],
20645
- backgroundColor: isComplete ? theme.primary : theme.surface,
20646
- borderWidth: isComplete ? 0 : 4
20647
- }]
20648
- }, isComplete && /*#__PURE__*/React__namespace.createElement(Icon, {
20649
- name: "Check",
20650
- size: 12,
20651
- color: theme.primaryText
20652
- }))));
22087
+ return jsxRuntimeExports.jsxs(View$2, {
22088
+ style: styles$1.container,
22089
+ children: [jsxRuntimeExports.jsx(ProgressBar, {
22090
+ percentage: percentage,
22091
+ variant: progressVariant,
22092
+ height: height
22093
+ }), jsxRuntimeExports.jsx(View$2, {
22094
+ style: [styles$1.circleContainer],
22095
+ children: jsxRuntimeExports.jsx(View$2, {
22096
+ style: [styles$1.circle, {
22097
+ borderColor: theme.derivedSurface[20],
22098
+ backgroundColor: isComplete ? theme.primary : theme.surface,
22099
+ borderWidth: isComplete ? 0 : 4
22100
+ }],
22101
+ children: isComplete && jsxRuntimeExports.jsx(Icon, {
22102
+ name: "Check",
22103
+ size: 12,
22104
+ color: theme.primaryText
22105
+ })
22106
+ })
22107
+ })]
22108
+ });
20653
22109
  };
20654
22110
  var styles$1 = StyleSheet$1.create({
20655
22111
  container: {
@@ -20769,11 +22225,14 @@ var useSectionData = function (section, sectionId) {
20769
22225
  */
20770
22226
  var EmptyState = function (_a) {
20771
22227
  var message = _a.message;
20772
- return /*#__PURE__*/React.createElement(View$2, {
22228
+ return jsxRuntimeExports.jsx(View$2, {
20773
22229
  style: commonStyles.emptyContainer,
20774
22230
  accessibilityRole: "text",
20775
- accessibilityLabel: "Empty state: ".concat(message)
20776
- }, /*#__PURE__*/React.createElement(Text$3, null, message));
22231
+ accessibilityLabel: "Empty state: ".concat(message),
22232
+ children: jsxRuntimeExports.jsx(Text$3, {
22233
+ children: message
22234
+ })
22235
+ });
20777
22236
  };
20778
22237
  /**
20779
22238
  * The Section component renders a section based on its type (e.g., Banner, Grid).
@@ -20797,13 +22256,13 @@ var Section = function (_a) {
20797
22256
  }
20798
22257
  var renderSectionContent = function () {
20799
22258
  if (isLoading) {
20800
- return /*#__PURE__*/React.createElement(Skeleton, {
22259
+ return jsxRuntimeExports.jsx(Skeleton, {
20801
22260
  "aria-label": "Loading section content",
20802
22261
  numberOfSquares: 4
20803
22262
  });
20804
22263
  }
20805
22264
  if (error || !sectionData) {
20806
- return /*#__PURE__*/React.createElement(EmptyState, {
22265
+ return jsxRuntimeExports.jsx(EmptyState, {
20807
22266
  message: error || 'No section data available.'
20808
22267
  });
20809
22268
  }
@@ -20812,7 +22271,7 @@ var Section = function (_a) {
20812
22271
  return tile && tile.active;
20813
22272
  }));
20814
22273
  if (!activeTiles || activeTiles.length === 0) {
20815
- return /*#__PURE__*/React.createElement(EmptyState, {
22274
+ return jsxRuntimeExports.jsx(EmptyState, {
20816
22275
  message: "No active tiles available."
20817
22276
  });
20818
22277
  }
@@ -20821,36 +22280,38 @@ var Section = function (_a) {
20821
22280
  });
20822
22281
  if (!sectionData.type) {
20823
22282
  console.warn('Section is missing a type');
20824
- return /*#__PURE__*/React.createElement(EmptyState, {
22283
+ return jsxRuntimeExports.jsx(EmptyState, {
20825
22284
  message: "Invalid section configuration."
20826
22285
  });
20827
22286
  }
20828
22287
  switch (sectionData.type) {
20829
22288
  case exports.SectionType.Banner:
20830
- return /*#__PURE__*/React.createElement(Carousel, {
22289
+ return jsxRuntimeExports.jsx(Carousel, {
20831
22290
  section: sectionWithActiveTiles
20832
22291
  });
20833
22292
  case exports.SectionType.Grid:
20834
- return /*#__PURE__*/React.createElement(Grid, {
22293
+ return jsxRuntimeExports.jsx(Grid, {
20835
22294
  section: sectionWithActiveTiles
20836
22295
  });
20837
22296
  default:
20838
22297
  console.warn("Unknown section type: ".concat(sectionData.type));
20839
- return /*#__PURE__*/React.createElement(EmptyState, {
22298
+ return jsxRuntimeExports.jsx(EmptyState, {
20840
22299
  message: "Unknown section type."
20841
22300
  });
20842
22301
  }
20843
22302
  };
20844
- return sectionData ? /*#__PURE__*/React.createElement(SectionContext.Provider, {
22303
+ return sectionData ? jsxRuntimeExports.jsx(SectionContext.Provider, {
20845
22304
  value: {
20846
22305
  sectionData: sectionData
20847
- }
20848
- }, /*#__PURE__*/React.createElement(View$2, {
20849
- style: styles.section,
20850
- accessible: true,
20851
- accessibilityLabel: "Section: ".concat(sectionData.title || 'Untitled section'),
20852
- accessibilityHint: sectionData.description || undefined
20853
- }, renderSectionContent())) : null;
22306
+ },
22307
+ children: jsxRuntimeExports.jsx(View$2, {
22308
+ style: styles.section,
22309
+ accessible: true,
22310
+ accessibilityLabel: "Section: ".concat(sectionData.title || 'Untitled section'),
22311
+ accessibilityHint: sectionData.description || undefined,
22312
+ children: renderSectionContent()
22313
+ })
22314
+ }) : null;
20854
22315
  };
20855
22316
 
20856
22317
  /**
@@ -20944,13 +22405,15 @@ var useGroupData = function (id) {
20944
22405
  */
20945
22406
  var GroupEmptyState = function (_a) {
20946
22407
  var message = _a.message;
20947
- return /*#__PURE__*/React.createElement(View$2, {
22408
+ return jsxRuntimeExports.jsx(View$2, {
20948
22409
  style: commonStyles.emptyContainer,
20949
22410
  accessible: true,
20950
- accessibilityLabel: "Empty state: ".concat(message)
20951
- }, /*#__PURE__*/React.createElement(Text, {
20952
- variant: "body"
20953
- }, message));
22411
+ accessibilityLabel: "Empty state: ".concat(message),
22412
+ children: jsxRuntimeExports.jsx(Text, {
22413
+ variant: "body",
22414
+ children: message
22415
+ })
22416
+ });
20954
22417
  };
20955
22418
  /**
20956
22419
  * Component to render all sections in a group
@@ -20960,7 +22423,7 @@ var GroupEmptyState = function (_a) {
20960
22423
  var GroupSections = function () {
20961
22424
  var groupData = useGroupContext().groupData;
20962
22425
  if (!groupData || !groupData.sections || groupData.sections.length === 0) {
20963
- return /*#__PURE__*/React.createElement(GroupEmptyState, {
22426
+ return jsxRuntimeExports.jsx(GroupEmptyState, {
20964
22427
  message: "This group doesn't have any sections"
20965
22428
  });
20966
22429
  }
@@ -20969,20 +22432,20 @@ var GroupSections = function () {
20969
22432
  return section && section.active;
20970
22433
  });
20971
22434
  if (activeSections.length === 0) {
20972
- return /*#__PURE__*/React.createElement(GroupEmptyState, {
22435
+ return jsxRuntimeExports.jsx(GroupEmptyState, {
20973
22436
  message: "This group doesn't have any active sections"
20974
22437
  });
20975
22438
  }
20976
22439
  var sortedSections = sortByPriority(activeSections);
20977
- return /*#__PURE__*/React.createElement(View$2, {
22440
+ return jsxRuntimeExports.jsx(View$2, {
20978
22441
  accessible: true,
20979
- accessibilityLabel: "Group: ".concat(groupData.name || 'Unnamed group')
20980
- }, sortedSections.map(function (section) {
20981
- return /*#__PURE__*/React.createElement(Section, {
20982
- key: section.id,
20983
- section: section
20984
- });
20985
- }));
22442
+ accessibilityLabel: "Group: ".concat(groupData.name || 'Unnamed group'),
22443
+ children: sortedSections.map(function (section) {
22444
+ return jsxRuntimeExports.jsx(Section, {
22445
+ section: section
22446
+ }, section.id);
22447
+ })
22448
+ });
20986
22449
  };
20987
22450
  /**
20988
22451
  * A page-level component that represents a Group view in the application.
@@ -21007,24 +22470,27 @@ var Group = function (_a) {
21007
22470
  isLoading = _b.isLoading,
21008
22471
  error = _b.error;
21009
22472
  if (isLoading) {
21010
- return /*#__PURE__*/React.createElement(View$2, {
22473
+ return jsxRuntimeExports.jsx(View$2, {
21011
22474
  style: commonStyles.emptyContainer,
21012
22475
  accessible: true,
21013
- accessibilityLabel: "Loading group data"
21014
- }, /*#__PURE__*/React.createElement(Skeleton, null));
22476
+ accessibilityLabel: "Loading group data",
22477
+ children: jsxRuntimeExports.jsx(Skeleton, {})
22478
+ });
21015
22479
  }
21016
22480
  if (error || !groupData) {
21017
- return /*#__PURE__*/React.createElement(GroupEmptyState, {
22481
+ return jsxRuntimeExports.jsx(GroupEmptyState, {
21018
22482
  message: error || 'No group data available'
21019
22483
  });
21020
22484
  }
21021
- return /*#__PURE__*/React.createElement(GroupContext.Provider, {
22485
+ return jsxRuntimeExports.jsx(GroupContext.Provider, {
21022
22486
  value: {
21023
22487
  groupData: groupData
21024
- }
21025
- }, /*#__PURE__*/React.createElement(View$2, {
21026
- "data-testid": "group-container"
21027
- }, /*#__PURE__*/React.createElement(GroupSections, null)));
22488
+ },
22489
+ children: jsxRuntimeExports.jsx(View$2, {
22490
+ "data-testid": "group-container",
22491
+ children: jsxRuntimeExports.jsx(GroupSections, {})
22492
+ })
22493
+ });
21028
22494
  };
21029
22495
 
21030
22496
  /**
@@ -21122,9 +22588,11 @@ var Column = function (_a) {
21122
22588
  flex: flex
21123
22589
  })
21124
22590
  });
21125
- return /*#__PURE__*/React__namespace.createElement(View$2, _extends({
22591
+ return jsxRuntimeExports.jsx(View$2, __assign({
21126
22592
  style: [styles.container, style]
21127
- }, rest), children);
22593
+ }, rest, {
22594
+ children: children
22595
+ }));
21128
22596
  };
21129
22597
 
21130
22598
  /**
@@ -21137,11 +22605,13 @@ var FullFlex = function (_a) {
21137
22605
  var children = _a.children,
21138
22606
  style = _a.style,
21139
22607
  rest = __rest(_a, ["children", "style"]);
21140
- return /*#__PURE__*/React.createElement(View$2, _extends({
22608
+ return jsxRuntimeExports.jsx(View$2, __assign({
21141
22609
  style: [{
21142
22610
  flex: 1
21143
22611
  }, style]
21144
- }, rest), children);
22612
+ }, rest, {
22613
+ children: children
22614
+ }));
21145
22615
  };
21146
22616
 
21147
22617
  /**
@@ -21178,9 +22648,11 @@ var Layout = function (_a) {
21178
22648
  flexDirection: direction
21179
22649
  }
21180
22650
  });
21181
- return /*#__PURE__*/React__namespace.createElement(View$2, _extends({
22651
+ return jsxRuntimeExports.jsx(View$2, __assign({
21182
22652
  style: [dynamicStyles.container, style]
21183
- }, rest), children);
22653
+ }, rest, {
22654
+ children: children
22655
+ }));
21184
22656
  };
21185
22657
 
21186
22658
  /**
@@ -21212,9 +22684,11 @@ var Row = function (_a) {
21212
22684
  flex: flex
21213
22685
  })
21214
22686
  });
21215
- return /*#__PURE__*/React__namespace.createElement(View$2, _extends({
22687
+ return jsxRuntimeExports.jsx(View$2, __assign({
21216
22688
  style: [styles.container, style]
21217
- }, rest), children);
22689
+ }, rest, {
22690
+ children: children
22691
+ }));
21218
22692
  };
21219
22693
 
21220
22694
  /**
@@ -21226,7 +22700,7 @@ var Row = function (_a) {
21226
22700
  var Spacer = function (_a) {
21227
22701
  var style = _a.style,
21228
22702
  rest = __rest(_a, ["style"]);
21229
- return /*#__PURE__*/React.createElement(View$2, _extends({
22703
+ return jsxRuntimeExports.jsx(View$2, __assign({
21230
22704
  style: [{
21231
22705
  flex: 1
21232
22706
  }, style]
@@ -21303,24 +22777,29 @@ var PointsTileFormattedPoints = function () {
21303
22777
  if (points === undefined || points === 0) return null;
21304
22778
  var calculatedPoints = applyMultiplier(points, pointsMultiplier);
21305
22779
  var fullPointsText = "".concat(pointsPrefix).concat(calculatedPoints, " ").concat(pointsSuffix).trim();
21306
- return /*#__PURE__*/React.createElement(View$2, {
22780
+ return jsxRuntimeExports.jsx(View$2, {
21307
22781
  testID: "points-tile-points",
21308
22782
  accessibilityRole: "text",
21309
- accessibilityLabel: "Points value: ".concat(fullPointsText)
21310
- }, /*#__PURE__*/React.createElement(Row, {
21311
- align: "center",
21312
- justify: "start"
21313
- }, pointsPrefix ? /*#__PURE__*/React.createElement(Text, {
21314
- variant: "caption",
21315
- testID: "points-tile-prefix"
21316
- }, pointsPrefix) : null, /*#__PURE__*/React.createElement(Text, {
21317
- variant: "caption",
21318
- testID: "points-tile-value"
21319
- }, calculatedPoints), pointsSuffix ? /*#__PURE__*/React.createElement(Text, {
21320
- variant: "caption",
21321
- style: styles.suffix,
21322
- testID: "points-tile-suffix"
21323
- }, pointsSuffix) : null));
22783
+ accessibilityLabel: "Points value: ".concat(fullPointsText),
22784
+ children: jsxRuntimeExports.jsxs(Row, {
22785
+ align: "center",
22786
+ justify: "start",
22787
+ children: [pointsPrefix ? jsxRuntimeExports.jsx(Text, {
22788
+ variant: "caption",
22789
+ testID: "points-tile-prefix",
22790
+ children: pointsPrefix
22791
+ }) : null, jsxRuntimeExports.jsx(Text, {
22792
+ variant: "caption",
22793
+ testID: "points-tile-value",
22794
+ children: calculatedPoints
22795
+ }), pointsSuffix ? jsxRuntimeExports.jsx(Text, {
22796
+ variant: "caption",
22797
+ style: styles.suffix,
22798
+ testID: "points-tile-suffix",
22799
+ children: pointsSuffix
22800
+ }) : null]
22801
+ })
22802
+ });
21324
22803
  };
21325
22804
 
21326
22805
  /**
@@ -21338,18 +22817,19 @@ var PointsTileMedia = function (_a) {
21338
22817
  title = _c === void 0 ? 'Points' : _c;
21339
22818
  var styles = usePointsTileStyles(isFullSize);
21340
22819
  if (!artworkUrl) return null;
21341
- return /*#__PURE__*/React.createElement(View$2, {
22820
+ return jsxRuntimeExports.jsx(View$2, {
21342
22821
  testID: "points-tile-media",
21343
22822
  style: styles.imageContainer,
21344
22823
  accessibilityRole: "image",
21345
- accessibilityLabel: "Points tile image for ".concat(title)
21346
- }, /*#__PURE__*/React.createElement(Image$2, {
21347
- source: {
21348
- uri: artworkUrl
21349
- },
21350
- style: styles.image,
21351
- resizeMode: isFullSize ? 'cover' : 'contain'
21352
- }));
22824
+ accessibilityLabel: "Points tile image for ".concat(title),
22825
+ children: jsxRuntimeExports.jsx(Image$2, {
22826
+ source: {
22827
+ uri: artworkUrl
22828
+ },
22829
+ style: styles.image,
22830
+ resizeMode: isFullSize ? 'cover' : 'contain'
22831
+ })
22832
+ });
21353
22833
  };
21354
22834
 
21355
22835
  /**
@@ -21362,12 +22842,13 @@ var PointsTileTitle = function () {
21362
22842
  if (!isContextValid(tileContext)) return null;
21363
22843
  var title = tileContext.configuration.title;
21364
22844
  if (!title) return null;
21365
- return /*#__PURE__*/React.createElement(Text, {
22845
+ return jsxRuntimeExports.jsx(Text, {
21366
22846
  variant: "eyebrow",
21367
22847
  testID: "points-tile-title",
21368
22848
  accessibilityRole: "header",
21369
- accessibilityLabel: title
21370
- }, title);
22849
+ accessibilityLabel: title,
22850
+ children: title
22851
+ });
21371
22852
  };
21372
22853
 
21373
22854
  /**
@@ -21383,17 +22864,20 @@ var PointsTileRoot = function (_a) {
21383
22864
  if (!config) return null;
21384
22865
  var isFullSize = useTileSize(tile).isFullSize;
21385
22866
  var styles = usePointsTileStyles(isFullSize);
21386
- return /*#__PURE__*/React.createElement(BaseTile, {
21387
- tile: tile
21388
- }, isFullSize && /*#__PURE__*/React.createElement(PointsTile.Media, {
21389
- isFullSize: true
21390
- }), /*#__PURE__*/React.createElement(View$2, {
21391
- style: styles.container
21392
- }, !isFullSize && /*#__PURE__*/React.createElement(PointsTile.Media, {
21393
- isFullSize: false
21394
- }), /*#__PURE__*/React.createElement(Column, {
21395
- style: styles.contentContainer
21396
- }, /*#__PURE__*/React.createElement(PointsTile.Title, null), /*#__PURE__*/React.createElement(PointsTile.Points, null))));
22867
+ return jsxRuntimeExports.jsxs(BaseTile, {
22868
+ tile: tile,
22869
+ children: [isFullSize && jsxRuntimeExports.jsx(PointsTile.Media, {
22870
+ isFullSize: true
22871
+ }), jsxRuntimeExports.jsxs(View$2, {
22872
+ style: styles.container,
22873
+ children: [!isFullSize && jsxRuntimeExports.jsx(PointsTile.Media, {
22874
+ isFullSize: false
22875
+ }), jsxRuntimeExports.jsxs(Column, {
22876
+ style: styles.contentContainer,
22877
+ children: [jsxRuntimeExports.jsx(PointsTile.Title, {}), jsxRuntimeExports.jsx(PointsTile.Points, {})]
22878
+ })]
22879
+ })]
22880
+ });
21397
22881
  };
21398
22882
  /**
21399
22883
  * The PointsTile component with subcomponents attached.
@@ -21458,20 +22942,22 @@ var RewardCategoryHeader = function () {
21458
22942
  _c = _a.name,
21459
22943
  name = _c === void 0 ? '' : _c;
21460
22944
  if (!showName || !name) return null;
21461
- return /*#__PURE__*/React.createElement(View$2, {
22945
+ return jsxRuntimeExports.jsx(View$2, {
21462
22946
  style: [styles.header, {
21463
22947
  backgroundColor: theme.primary
21464
22948
  }],
21465
22949
  testID: "reward-category-header",
21466
22950
  accessibilityRole: "header",
21467
- accessibilityLabel: "Reward category: ".concat(name)
21468
- }, /*#__PURE__*/React.createElement(Text, {
21469
- style: [styles.headerText, {
21470
- color: theme.primaryText
21471
- }],
21472
- ellipsizeMode: "tail",
21473
- numberOfLines: 1
21474
- }, name));
22951
+ accessibilityLabel: "Reward category: ".concat(name),
22952
+ children: jsxRuntimeExports.jsx(Text, {
22953
+ style: [styles.headerText, {
22954
+ color: theme.primaryText
22955
+ }],
22956
+ ellipsizeMode: "tail",
22957
+ numberOfLines: 1,
22958
+ children: name
22959
+ })
22960
+ });
21475
22961
  };
21476
22962
 
21477
22963
  /**
@@ -21488,7 +22974,7 @@ var RewardCategoryMedia = function () {
21488
22974
  _b = _a.name,
21489
22975
  name = _b === void 0 ? 'Reward' : _b;
21490
22976
  if (!artworkUrl) return null;
21491
- return /*#__PURE__*/React.createElement(ProgressiveImage, {
22977
+ return jsxRuntimeExports.jsx(ProgressiveImage, {
21492
22978
  testID: "reward-category-media",
21493
22979
  source: {
21494
22980
  uri: artworkUrl
@@ -21509,9 +22995,10 @@ var RewardCategoryMedia = function () {
21509
22995
  var RewardCategoryTileRoot = function (_a) {
21510
22996
  var tile = _a.tile;
21511
22997
  if (!tile || !tile.active || !tile.configuration) return null;
21512
- return /*#__PURE__*/React.createElement(BaseTile, {
21513
- tile: tile
21514
- }, /*#__PURE__*/React.createElement(RewardCategoryTile.Header, null), /*#__PURE__*/React.createElement(RewardCategoryTile.Media, null));
22998
+ return jsxRuntimeExports.jsxs(BaseTile, {
22999
+ tile: tile,
23000
+ children: [jsxRuntimeExports.jsx(RewardCategoryTile.Header, {}), jsxRuntimeExports.jsx(RewardCategoryTile.Media, {})]
23001
+ });
21515
23002
  };
21516
23003
  /**
21517
23004
  * The RewardCategoryTile component with subcomponents attached.
@@ -21530,7 +23017,7 @@ var RewardCategoryTile$1 = withTileFetching(RewardCategoryTile);
21530
23017
  var RewardTileChevron = function () {
21531
23018
  var _a;
21532
23019
  var theme = useWllSdk().theme;
21533
- return /*#__PURE__*/React.createElement(Icon, {
23020
+ return jsxRuntimeExports.jsx(Icon, {
21534
23021
  name: "ChevronRight",
21535
23022
  color: ((_a = theme === null || theme === void 0 ? void 0 : theme.derivedSurfaceText) === null || _a === void 0 ? void 0 : _a[20]) || '#000000',
21536
23023
  accessibilityRole: "image",
@@ -21609,18 +23096,19 @@ var RewardTileMedia = function (_a) {
21609
23096
  var containerStyle = {
21610
23097
  flexBasis: isArtworkOnly ? '100%' : '50%'
21611
23098
  };
21612
- return /*#__PURE__*/React.createElement(View$2, {
23099
+ return jsxRuntimeExports.jsx(View$2, {
21613
23100
  style: [styles.imageContainer, containerStyle],
21614
23101
  testID: "reward-tile-media",
21615
23102
  accessibilityRole: "image",
21616
- accessibilityLabel: "Reward image for ".concat(name)
21617
- }, /*#__PURE__*/React.createElement(ProgressiveImage, {
21618
- source: {
21619
- uri: artworkUrl
21620
- },
21621
- style: styles.image,
21622
- alt: "Reward image for ".concat(name)
21623
- }));
23103
+ accessibilityLabel: "Reward image for ".concat(name),
23104
+ children: jsxRuntimeExports.jsx(ProgressiveImage, {
23105
+ source: {
23106
+ uri: artworkUrl
23107
+ },
23108
+ style: styles.image,
23109
+ alt: "Reward image for ".concat(name)
23110
+ })
23111
+ });
21624
23112
  };
21625
23113
 
21626
23114
  /**
@@ -21646,25 +23134,30 @@ var RewardTilePoints = function () {
21646
23134
  if (!showPrice || price === undefined || price === 0) return null;
21647
23135
  var calculatedPoints = applyMultiplier(price, pointsMultiplier);
21648
23136
  var accessibilityLabel = getPointsLabel('Reward points:', calculatedPoints, pointsPrefix, pointsSuffix);
21649
- return /*#__PURE__*/React.createElement(View$2, {
23137
+ return jsxRuntimeExports.jsx(View$2, {
21650
23138
  testID: "reward-tile-points",
21651
23139
  accessibilityRole: "text",
21652
- accessibilityLabel: accessibilityLabel
21653
- }, /*#__PURE__*/React.createElement(Row, {
21654
- align: "center",
21655
- justify: "start",
21656
- style: {
21657
- marginTop: 8
21658
- }
21659
- }, pointsPrefix ? /*#__PURE__*/React.createElement(Text, {
21660
- variant: "caption"
21661
- }, pointsPrefix) : null, /*#__PURE__*/React.createElement(Text, {
21662
- variant: "caption",
21663
- testID: "reward-tile-points-value"
21664
- }, calculatedPoints), pointsSuffix ? /*#__PURE__*/React.createElement(Text, {
21665
- variant: "caption",
21666
- style: styles.suffix
21667
- }, pointsSuffix) : null));
23140
+ accessibilityLabel: accessibilityLabel,
23141
+ children: jsxRuntimeExports.jsxs(Row, {
23142
+ align: "center",
23143
+ justify: "start",
23144
+ style: {
23145
+ marginTop: 8
23146
+ },
23147
+ children: [pointsPrefix ? jsxRuntimeExports.jsx(Text, {
23148
+ variant: "caption",
23149
+ children: pointsPrefix
23150
+ }) : null, jsxRuntimeExports.jsx(Text, {
23151
+ variant: "caption",
23152
+ testID: "reward-tile-points-value",
23153
+ children: calculatedPoints
23154
+ }), pointsSuffix ? jsxRuntimeExports.jsx(Text, {
23155
+ variant: "caption",
23156
+ style: styles.suffix,
23157
+ children: pointsSuffix
23158
+ }) : null]
23159
+ })
23160
+ });
21668
23161
  };
21669
23162
 
21670
23163
  /**
@@ -21677,12 +23170,13 @@ var RewardTileSummary = function () {
21677
23170
  if (!isContextValid(tileContext)) return null;
21678
23171
  var summary = tileContext.configuration.summary;
21679
23172
  if (!summary) return null;
21680
- return /*#__PURE__*/React.createElement(Text, {
23173
+ return jsxRuntimeExports.jsx(Text, {
21681
23174
  variant: "body",
21682
23175
  accessibilityRole: "text",
21683
23176
  accessibilityLabel: summary,
21684
- testID: "reward-tile-summary"
21685
- }, summary);
23177
+ testID: "reward-tile-summary",
23178
+ children: summary
23179
+ });
21686
23180
  };
21687
23181
 
21688
23182
  /**
@@ -21695,14 +23189,15 @@ var RewardTileTitle = function () {
21695
23189
  if (!isContextValid(tileContext)) return null;
21696
23190
  var name = tileContext.configuration.name;
21697
23191
  if (!name) return null;
21698
- return /*#__PURE__*/React.createElement(Text, {
23192
+ return jsxRuntimeExports.jsx(Text, {
21699
23193
  variant: "title",
21700
23194
  ellipsizeMode: "tail",
21701
23195
  numberOfLines: 1,
21702
23196
  accessibilityRole: "header",
21703
23197
  accessibilityLabel: "Reward title: ".concat(name),
21704
- testID: "reward-tile-title"
21705
- }, name);
23198
+ testID: "reward-tile-title",
23199
+ children: name
23200
+ });
21706
23201
  };
21707
23202
 
21708
23203
  /**
@@ -21727,15 +23222,19 @@ var RewardTileRoot = function (_a) {
21727
23222
  var styles = useRewardTileStyles();
21728
23223
  if (!tile || tile.tileHeight !== exports.TileHeight.Full || !tile.active || !tile.configuration) return null;
21729
23224
  var configuration = tile.configuration;
21730
- return /*#__PURE__*/React.createElement(BaseTile, {
21731
- tile: tile
21732
- }, /*#__PURE__*/React.createElement(RewardTile.Media, {
21733
- isArtworkOnly: isArtworkOnly(configuration)
21734
- }), /*#__PURE__*/React.createElement(Layout, null, /*#__PURE__*/React.createElement(Row, {
21735
- justify: "between",
21736
- align: "center",
21737
- style: styles.header
21738
- }, /*#__PURE__*/React.createElement(RewardTile.Title, null), /*#__PURE__*/React.createElement(RewardTile.Chevron, null)), /*#__PURE__*/React.createElement(RewardTile.Summary, null), /*#__PURE__*/React.createElement(RewardTile.Points, null)));
23225
+ return jsxRuntimeExports.jsxs(BaseTile, {
23226
+ tile: tile,
23227
+ children: [jsxRuntimeExports.jsx(RewardTile.Media, {
23228
+ isArtworkOnly: isArtworkOnly(configuration)
23229
+ }), jsxRuntimeExports.jsxs(Layout, {
23230
+ children: [jsxRuntimeExports.jsxs(Row, {
23231
+ justify: "between",
23232
+ align: "center",
23233
+ style: styles.header,
23234
+ children: [jsxRuntimeExports.jsx(RewardTile.Title, {}), jsxRuntimeExports.jsx(RewardTile.Chevron, {})]
23235
+ }), jsxRuntimeExports.jsx(RewardTile.Summary, {}), jsxRuntimeExports.jsx(RewardTile.Points, {})]
23236
+ })]
23237
+ });
21739
23238
  };
21740
23239
  /**
21741
23240
  * The RewardTile component with subcomponents attached.
@@ -21799,13 +23298,13 @@ var TierTileInner = function (_a) {
21799
23298
  var tier = configuration.tier;
21800
23299
  var isHalfSize = useTileSize(tile).isHalfSize;
21801
23300
  if (!tier || Array.isArray(tier)) {
21802
- return /*#__PURE__*/React__namespace.createElement(TierTile.Empty, {
23301
+ return jsxRuntimeExports.jsx(TierTile.Empty, {
21803
23302
  tile: tile
21804
23303
  });
21805
23304
  }
21806
- return isHalfSize ? /*#__PURE__*/React__namespace.createElement(TierTile.Half, {
23305
+ return isHalfSize ? jsxRuntimeExports.jsx(TierTile.Half, {
21807
23306
  tile: tile
21808
- }) : /*#__PURE__*/React__namespace.createElement(TierTile.Full, {
23307
+ }) : jsxRuntimeExports.jsx(TierTile.Full, {
21809
23308
  tile: tile
21810
23309
  });
21811
23310
  };
@@ -21819,28 +23318,36 @@ var TierTileFull = function (_a) {
21819
23318
  artworkUrl = _b.artworkUrl,
21820
23319
  name = _b.name,
21821
23320
  description = _b.description;
21822
- return /*#__PURE__*/React__namespace.createElement(BaseTile, {
21823
- tile: tile
21824
- }, artworkUrl && /*#__PURE__*/React__namespace.createElement(View$2, {
21825
- style: styles.header
21826
- }, /*#__PURE__*/React__namespace.createElement(ProgressiveImage, {
21827
- source: {
21828
- uri: artworkUrl
21829
- },
21830
- style: styles.image,
21831
- resizeMode: "center"
21832
- })), /*#__PURE__*/React__namespace.createElement(Layout, {
21833
- align: "stretch",
21834
- justify: artworkUrl ? 'start' : 'center'
21835
- }, /*#__PURE__*/React__namespace.createElement(View$2, null, title && /*#__PURE__*/React__namespace.createElement(Text, {
21836
- variant: "eyebrow",
21837
- style: styles.title
21838
- }, title), name && /*#__PURE__*/React__namespace.createElement(Text, {
21839
- variant: "title",
21840
- style: styles.title
21841
- }, name), description && /*#__PURE__*/React__namespace.createElement(Text, {
21842
- variant: "body"
21843
- }, description))));
23321
+ return jsxRuntimeExports.jsxs(BaseTile, {
23322
+ tile: tile,
23323
+ children: [artworkUrl && jsxRuntimeExports.jsx(View$2, {
23324
+ style: styles.header,
23325
+ children: jsxRuntimeExports.jsx(ProgressiveImage, {
23326
+ source: {
23327
+ uri: artworkUrl
23328
+ },
23329
+ style: styles.image,
23330
+ resizeMode: "center"
23331
+ })
23332
+ }), jsxRuntimeExports.jsx(Layout, {
23333
+ align: "stretch",
23334
+ justify: artworkUrl ? 'start' : 'center',
23335
+ children: jsxRuntimeExports.jsxs(View$2, {
23336
+ children: [title && jsxRuntimeExports.jsx(Text, {
23337
+ variant: "eyebrow",
23338
+ style: styles.title,
23339
+ children: title
23340
+ }), name && jsxRuntimeExports.jsx(Text, {
23341
+ variant: "title",
23342
+ style: styles.title,
23343
+ children: name
23344
+ }), description && jsxRuntimeExports.jsx(Text, {
23345
+ variant: "body",
23346
+ children: description
23347
+ })]
23348
+ })
23349
+ })]
23350
+ });
21844
23351
  };
21845
23352
  var TierTileHalf = function (_a) {
21846
23353
  var tile = _a.tile;
@@ -21852,36 +23359,42 @@ var TierTileHalf = function (_a) {
21852
23359
  var _c = tier || {},
21853
23360
  artworkUrl = _c.artworkUrl,
21854
23361
  name = _c.name;
21855
- return /*#__PURE__*/React__namespace.createElement(BaseTile, {
21856
- tile: tile
21857
- }, /*#__PURE__*/React__namespace.createElement(Layout, {
21858
- align: "center",
21859
- justify: "between",
21860
- direction: "row",
21861
- style: {
21862
- paddingTop: 16
21863
- }
21864
- }, /*#__PURE__*/React__namespace.createElement(View$2, {
21865
- style: {
21866
- flex: 1,
21867
- flexShrink: 1
21868
- }
21869
- }, title && /*#__PURE__*/React__namespace.createElement(Text, {
21870
- variant: "eyebrow",
21871
- style: styles.title
21872
- }, title), name && /*#__PURE__*/React__namespace.createElement(Text, {
21873
- variant: "title",
21874
- style: styles.name,
21875
- numberOfLines: 2
21876
- }, name)), artworkUrl && /*#__PURE__*/React__namespace.createElement(View$2, {
21877
- style: styles.smallImageContainer
21878
- }, /*#__PURE__*/React__namespace.createElement(Image$2, {
21879
- source: {
21880
- uri: artworkUrl
21881
- },
21882
- style: styles.smallImage,
21883
- resizeMode: "contain"
21884
- }))));
23362
+ return jsxRuntimeExports.jsx(BaseTile, {
23363
+ tile: tile,
23364
+ children: jsxRuntimeExports.jsxs(Layout, {
23365
+ align: "center",
23366
+ justify: "between",
23367
+ direction: "row",
23368
+ style: {
23369
+ paddingTop: 16
23370
+ },
23371
+ children: [jsxRuntimeExports.jsxs(View$2, {
23372
+ style: {
23373
+ flex: 1,
23374
+ flexShrink: 1
23375
+ },
23376
+ children: [title && jsxRuntimeExports.jsx(Text, {
23377
+ variant: "eyebrow",
23378
+ style: styles.title,
23379
+ children: title
23380
+ }), name && jsxRuntimeExports.jsx(Text, {
23381
+ variant: "title",
23382
+ style: styles.name,
23383
+ numberOfLines: 2,
23384
+ children: name
23385
+ })]
23386
+ }), artworkUrl && jsxRuntimeExports.jsx(View$2, {
23387
+ style: styles.smallImageContainer,
23388
+ children: jsxRuntimeExports.jsx(Image$2, {
23389
+ source: {
23390
+ uri: artworkUrl
23391
+ },
23392
+ style: styles.smallImage,
23393
+ resizeMode: "contain"
23394
+ })
23395
+ })]
23396
+ })
23397
+ });
21885
23398
  };
21886
23399
  // Empty state tile
21887
23400
  var TierTileEmpty = function (_a) {
@@ -21893,49 +23406,63 @@ var TierTileEmpty = function (_a) {
21893
23406
  emptyArtworkUrl = configuration.emptyArtworkUrl;
21894
23407
  var isHalfSize = useTileSize(tile).isHalfSize;
21895
23408
  if (isHalfSize) {
21896
- return /*#__PURE__*/React__namespace.createElement(BaseTile, {
21897
- tile: tile
21898
- }, /*#__PURE__*/React__namespace.createElement(Layout, {
21899
- align: "center",
21900
- justify: "between",
21901
- direction: "row",
21902
- style: {
21903
- paddingTop: 16
21904
- }
21905
- }, /*#__PURE__*/React__namespace.createElement(FullFlex, null, title && /*#__PURE__*/React__namespace.createElement(Text, {
21906
- variant: "title",
21907
- style: styles.title
21908
- }, title), emptyDescription && /*#__PURE__*/React__namespace.createElement(Text, {
21909
- variant: "body"
21910
- }, emptyDescription)), emptyArtworkUrl && /*#__PURE__*/React__namespace.createElement(View$2, {
21911
- style: styles.smallImageContainer
21912
- }, /*#__PURE__*/React__namespace.createElement(Image$2, {
21913
- source: {
21914
- uri: emptyArtworkUrl
21915
- },
21916
- style: styles.smallImage,
21917
- resizeMode: "contain"
21918
- }))));
23409
+ return jsxRuntimeExports.jsx(BaseTile, {
23410
+ tile: tile,
23411
+ children: jsxRuntimeExports.jsxs(Layout, {
23412
+ align: "center",
23413
+ justify: "between",
23414
+ direction: "row",
23415
+ style: {
23416
+ paddingTop: 16
23417
+ },
23418
+ children: [jsxRuntimeExports.jsxs(FullFlex, {
23419
+ children: [title && jsxRuntimeExports.jsx(Text, {
23420
+ variant: "title",
23421
+ style: styles.title,
23422
+ children: title
23423
+ }), emptyDescription && jsxRuntimeExports.jsx(Text, {
23424
+ variant: "body",
23425
+ children: emptyDescription
23426
+ })]
23427
+ }), emptyArtworkUrl && jsxRuntimeExports.jsx(View$2, {
23428
+ style: styles.smallImageContainer,
23429
+ children: jsxRuntimeExports.jsx(Image$2, {
23430
+ source: {
23431
+ uri: emptyArtworkUrl
23432
+ },
23433
+ style: styles.smallImage,
23434
+ resizeMode: "contain"
23435
+ })
23436
+ })]
23437
+ })
23438
+ });
21919
23439
  }
21920
- return /*#__PURE__*/React__namespace.createElement(BaseTile, {
21921
- tile: tile
21922
- }, emptyArtworkUrl && /*#__PURE__*/React__namespace.createElement(View$2, {
21923
- style: styles.header
21924
- }, /*#__PURE__*/React__namespace.createElement(ProgressiveImage, {
21925
- source: {
21926
- uri: emptyArtworkUrl
21927
- },
21928
- style: styles.image,
21929
- resizeMode: "center"
21930
- })), /*#__PURE__*/React__namespace.createElement(Layout, {
21931
- align: "stretch",
21932
- justify: "center"
21933
- }, /*#__PURE__*/React__namespace.createElement(Layout, null, title && /*#__PURE__*/React__namespace.createElement(Text, {
21934
- variant: "title",
21935
- style: styles.title
21936
- }, title), emptyDescription && /*#__PURE__*/React__namespace.createElement(Text, {
21937
- variant: "body"
21938
- }, emptyDescription))));
23440
+ return jsxRuntimeExports.jsxs(BaseTile, {
23441
+ tile: tile,
23442
+ children: [emptyArtworkUrl && jsxRuntimeExports.jsx(View$2, {
23443
+ style: styles.header,
23444
+ children: jsxRuntimeExports.jsx(ProgressiveImage, {
23445
+ source: {
23446
+ uri: emptyArtworkUrl
23447
+ },
23448
+ style: styles.image,
23449
+ resizeMode: "center"
23450
+ })
23451
+ }), jsxRuntimeExports.jsx(Layout, {
23452
+ align: "stretch",
23453
+ justify: "center",
23454
+ children: jsxRuntimeExports.jsxs(Layout, {
23455
+ children: [title && jsxRuntimeExports.jsx(Text, {
23456
+ variant: "title",
23457
+ style: styles.title,
23458
+ children: title
23459
+ }), emptyDescription && jsxRuntimeExports.jsx(Text, {
23460
+ variant: "body",
23461
+ children: emptyDescription
23462
+ })]
23463
+ })
23464
+ })]
23465
+ });
21939
23466
  };
21940
23467
  var TierTile = TierTileInner;
21941
23468
  TierTile.Full = TierTileFull;
@@ -21949,21 +23476,22 @@ var TILE_COMPONENTS = (_a = {}, _a[exports.TileType.Content] = ContentTile$1, _a
21949
23476
  */
21950
23477
  var TileContainer = function (_a) {
21951
23478
  var tiles = _a.tiles;
21952
- return /*#__PURE__*/React.createElement(View$2, {
23479
+ return jsxRuntimeExports.jsx(View$2, {
21953
23480
  style: styles.container,
21954
- testID: "tile-container"
21955
- }, tiles.map(function (tile, index) {
21956
- var TileComponent = TILE_COMPONENTS[tile.type];
21957
- var isHalfSize = useTileSize(tile).isHalfSize;
21958
- return /*#__PURE__*/React.createElement(View$2, {
21959
- key: tile.id,
21960
- style: [styles.tileContainer, isHalfSize && styles.halfTileContainer, index > 0 && {
21961
- marginTop: GRID_GAP
21962
- }]
21963
- }, TileComponent ? /*#__PURE__*/React.createElement(TileComponent, {
21964
- tile: tile
21965
- }) : null);
21966
- }));
23481
+ testID: "tile-container",
23482
+ children: tiles.map(function (tile, index) {
23483
+ var TileComponent = TILE_COMPONENTS[tile.type];
23484
+ var isHalfSize = useTileSize(tile).isHalfSize;
23485
+ return jsxRuntimeExports.jsx(View$2, {
23486
+ style: [styles.tileContainer, isHalfSize && styles.halfTileContainer, index > 0 && {
23487
+ marginTop: GRID_GAP
23488
+ }],
23489
+ children: TileComponent ? jsxRuntimeExports.jsx(TileComponent, {
23490
+ tile: tile
23491
+ }) : null
23492
+ }, tile.id);
23493
+ })
23494
+ });
21967
23495
  };
21968
23496
  var styles = StyleSheet$1.create({
21969
23497
  container: {