@wlloyalty/wll-react-sdk 1.0.67 → 1.0.69

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
@@ -5,1427 +5,25 @@ var Color = require('color');
5
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
25
  var LucideReactIcons__namespace = /*#__PURE__*/_interopNamespaceDefault(LucideReactIcons);
26
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';
283
-
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
27
  function _extends() {
1430
28
  return _extends = Object.assign ? Object.assign.bind() : function (n) {
1431
29
  for (var e = 1; e < arguments.length; e++) {
@@ -2651,6 +1249,35 @@ var unitlessNumbers$2 = unitlessNumbers$1;
2651
1249
  var isWebColor = color => color === 'currentcolor' || color === 'currentColor' || color === 'inherit' || color.indexOf('var(') === 0;
2652
1250
  var isWebColor$1 = isWebColor;
2653
1251
 
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
+
2654
1281
  /**
2655
1282
  * Copyright (c) Meta Platforms, Inc. and affiliates.
2656
1283
  *
@@ -3704,8 +2331,8 @@ function hyphenateStyleName(name) {
3704
2331
  }
3705
2332
 
3706
2333
  var hyphenateStyleName$1 = /*#__PURE__*/Object.freeze({
3707
- __proto__: null,
3708
- default: hyphenateStyleName
2334
+ __proto__: null,
2335
+ default: hyphenateStyleName
3709
2336
  });
3710
2337
 
3711
2338
  function hyphenateProperty$1(property) {
@@ -3820,19 +2447,19 @@ function unprefixValue(value) {
3820
2447
  }
3821
2448
 
3822
2449
  var es = /*#__PURE__*/Object.freeze({
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
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
3836
2463
  });
3837
2464
 
3838
2465
  var require$$0$1 = /*@__PURE__*/getAugmentedNamespace(es);
@@ -9398,7 +8025,7 @@ var isValidColor = function (color) {
9398
8025
  * @returns Boolean indicating if theme is valid
9399
8026
  */
9400
8027
  var validateTheme = function (theme) {
9401
- var requiredColors = ['accent', 'background', 'errorPrimary', 'negative', 'pageButtonBackground', 'pageButtonText', 'positive', 'primary', 'surface', 'surfaceText', 'text'];
8028
+ var requiredColors = ['accent', 'background', 'primary', 'surface', 'surfaceText', 'positive', 'negative', 'text'];
9402
8029
  return requiredColors.every(function (color) {
9403
8030
  return theme[color] && isValidColor(theme[color]);
9404
8031
  });
@@ -9805,10 +8432,9 @@ function ResponsiveProvider(_a) {
9805
8432
  }
9806
8433
  };
9807
8434
  }, [getDerivedState]);
9808
- return jsxRuntimeExports.jsx(ResponsiveContext.Provider, {
9809
- value: value,
9810
- children: children
9811
- });
8435
+ return /*#__PURE__*/React.createElement(ResponsiveContext.Provider, {
8436
+ value: value
8437
+ }, children);
9812
8438
  }
9813
8439
  function useResponsive() {
9814
8440
  var context = React.useContext(ResponsiveContext);
@@ -9883,12 +8509,9 @@ var WllSdkProvider = function (_a) {
9883
8509
  config: config
9884
8510
  };
9885
8511
  }, [theme, setTheme, getGroupByID, getSectionByID, getTileByID, handleNavigation, config]);
9886
- return jsxRuntimeExports.jsx(WllSdkContext.Provider, {
9887
- value: contextValue,
9888
- children: jsxRuntimeExports.jsx(ResponsiveProvider, {
9889
- children: children
9890
- })
9891
- });
8512
+ return /*#__PURE__*/React.createElement(WllSdkContext.Provider, {
8513
+ value: contextValue
8514
+ }, /*#__PURE__*/React.createElement(ResponsiveProvider, null, children));
9892
8515
  };
9893
8516
  var useWllSdk = function () {
9894
8517
  var context = React.useContext(WllSdkContext);
@@ -10032,7 +8655,7 @@ var Button = function (_a) {
10032
8655
  var buttonStyle = useButtonStyles(theme, variant);
10033
8656
  var textStyle = useTextStyles(theme, variant);
10034
8657
  var styles = useButtonDynamicStyles();
10035
- return jsxRuntimeExports.jsx(Pressable$1, {
8658
+ return /*#__PURE__*/React__namespace.createElement(Pressable$1, {
10036
8659
  style: function (_a) {
10037
8660
  var pressed = _a.pressed;
10038
8661
  return [styles.button, buttonStyle, {
@@ -10052,12 +8675,10 @@ var Button = function (_a) {
10052
8675
  accessibilityState: {
10053
8676
  disabled: disabled
10054
8677
  },
10055
- testID: testID,
10056
- children: jsxRuntimeExports.jsx(Text$3, {
10057
- style: [styles.text, textStyle],
10058
- children: title
10059
- })
10060
- });
8678
+ testID: testID
8679
+ }, /*#__PURE__*/React__namespace.createElement(Text$3, {
8680
+ style: [styles.text, textStyle]
8681
+ }, title));
10061
8682
  };
10062
8683
 
10063
8684
  var LucideReactNativeIcons;
@@ -10090,20 +8711,16 @@ var Icon = function (_a) {
10090
8711
  return null;
10091
8712
  }
10092
8713
  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
- })
8714
+ return /*#__PURE__*/React__namespace.createElement(View$2, __assign({}, props), /*#__PURE__*/React__namespace.createElement(LucideIcon, {
8715
+ color: color,
8716
+ size: size,
8717
+ strokeWidth: strokeWidth
10099
8718
  }));
10100
8719
  } else {
10101
- return jsxRuntimeExports.jsx(View$2, __assign({}, props, {
10102
- children: jsxRuntimeExports.jsx(LucideIcon, {
10103
- color: color,
10104
- size: size,
10105
- strokeWidth: strokeWidth
10106
- })
8720
+ return /*#__PURE__*/React__namespace.createElement(View$2, __assign({}, props), /*#__PURE__*/React__namespace.createElement(LucideIcon, {
8721
+ color: color,
8722
+ size: size,
8723
+ strokeWidth: strokeWidth
10107
8724
  }));
10108
8725
  }
10109
8726
  };
@@ -10192,18 +8809,18 @@ var indicatorSizes = StyleSheet$1.create({
10192
8809
  });
10193
8810
  var ActivityIndicator$1 = ActivityIndicator;
10194
8811
 
8812
+ /* istanbul ignore file */
10195
8813
  var LoadingIndicator = function () {
10196
8814
  var theme = useWllSdk().theme;
10197
- return jsxRuntimeExports.jsx(View$2, {
8815
+ return /*#__PURE__*/React__namespace.createElement(View$2, {
10198
8816
  style: [styles$e.container, {
10199
8817
  borderRadius: theme.sizes.borderRadiusSm,
10200
8818
  padding: theme.sizes.md
10201
- }],
10202
- children: jsxRuntimeExports.jsx(ActivityIndicator$1, {
10203
- size: "small",
10204
- color: theme.primary
10205
- })
10206
- });
8819
+ }]
8820
+ }, /*#__PURE__*/React__namespace.createElement(ActivityIndicator$1, {
8821
+ size: "small",
8822
+ color: theme.primary
8823
+ }));
10207
8824
  };
10208
8825
  var styles$e = StyleSheet$1.create({
10209
8826
  container: {
@@ -20070,6 +18687,7 @@ var Animated$1 = _objectSpread2({
20070
18687
  View
20071
18688
  }, Animated);
20072
18689
 
18690
+ /* istanbul ignore file */
20073
18691
  var useStyles = function (theme) {
20074
18692
  return StyleSheet$1.create({
20075
18693
  container: {
@@ -20147,12 +18765,11 @@ var ProgressBar = function (_a) {
20147
18765
  outputRange: ['0%', '100%']
20148
18766
  })
20149
18767
  };
20150
- return jsxRuntimeExports.jsx(View$2, {
20151
- style: containerStyle,
20152
- children: jsxRuntimeExports.jsx(Animated$1.View, {
20153
- style: [styles.progress, progressStyles, progressWidth]
20154
- })
20155
- });
18768
+ return /*#__PURE__*/React__namespace.createElement(View$2, {
18769
+ style: containerStyle
18770
+ }, /*#__PURE__*/React__namespace.createElement(Animated$1.View, {
18771
+ style: [styles.progress, progressStyles, progressWidth]
18772
+ }));
20156
18773
  };
20157
18774
 
20158
18775
  var IS_WEB = Platform$1.OS === "web";
@@ -20190,27 +18807,26 @@ var ProgressiveImage = function (_a) {
20190
18807
  } : {
20191
18808
  tintColor: isDesaturated ? desaturatedColor : undefined
20192
18809
  };
20193
- return jsxRuntimeExports.jsxs(View$2, {
18810
+ return /*#__PURE__*/React.createElement(View$2, {
20194
18811
  style: [styles$7.container, style, {
20195
18812
  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
- });
18813
+ }]
18814
+ }, /*#__PURE__*/React.createElement(Animated$1.View, {
18815
+ style: [styles$7.imageOverlay, {
18816
+ backgroundColor: backgroundColor,
18817
+ opacity: imageAnimated.interpolate({
18818
+ inputRange: [0, 1],
18819
+ outputRange: [1, 0]
18820
+ })
18821
+ }]
18822
+ }), /*#__PURE__*/React.createElement(Animated$1.Image, __assign({}, props, {
18823
+ source: source,
18824
+ style: [styles$7.imageOverlay, __assign({
18825
+ opacity: imageAnimated
18826
+ }, desaturationStyle)],
18827
+ onLoad: onImageLoad,
18828
+ accessibilityLabel: alt
18829
+ })));
20214
18830
  };
20215
18831
  var styles$7 = StyleSheet$1.create({
20216
18832
  imageOverlay: {
@@ -20275,7 +18891,7 @@ var Text = function (_a) {
20275
18891
  }
20276
18892
  };
20277
18893
  var variantStyle = getVariantStyle(variant);
20278
- return jsxRuntimeExports.jsx(Text$3, __assign({
18894
+ return /*#__PURE__*/React__namespace.createElement(Text$3, __assign({
20279
18895
  style: [variantStyle, style]
20280
18896
  }, props));
20281
18897
  };
@@ -20463,26 +19079,24 @@ var BaseBanner = function (_a) {
20463
19079
  ctaText = _b.ctaText;
20464
19080
  var handlePress = useHandleTilePress(tile, ctaLink, ctaLinkTarget);
20465
19081
  var hasCTA = Boolean(ctaText);
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
- });
19082
+ return /*#__PURE__*/React.createElement(BannerContext.Provider, {
19083
+ value: tile
19084
+ }, /*#__PURE__*/React.createElement(Pressable$1, {
19085
+ testID: testID || 'banner-tile',
19086
+ style: function (_a) {
19087
+ var pressed = _a.pressed;
19088
+ return [styles$6.container, style, {
19089
+ backgroundColor: theme.surface,
19090
+ borderRadius: theme.sizes.borderRadiusLg,
19091
+ opacity: pressed ? 0.7 : 1
19092
+ }];
19093
+ },
19094
+ onPress: hasCTA ? undefined : handlePress,
19095
+ disabled: !ctaLink || hasCTA,
19096
+ accessible: true,
19097
+ role: hasCTA ? 'article' : 'button',
19098
+ accessibilityLabel: accessibilityLabel || "".concat(title).concat(!hasCTA && ctaLink ? ' - Click to open' : '')
19099
+ }, children));
20486
19100
  };
20487
19101
  var styles$6 = StyleSheet$1.create({
20488
19102
  container: {
@@ -20528,15 +19142,14 @@ var BaseTileBody = function (props) {
20528
19142
  if (!isHalfSize && !artworkUrl) return undefined;
20529
19143
  return isDesktop ? 3 : isTablet ? 4 : 3;
20530
19144
  };
20531
- return jsxRuntimeExports.jsx(Text, __assign({
19145
+ return /*#__PURE__*/React.createElement(Text, __assign({
20532
19146
  variant: "body"
20533
19147
  }, props, {
20534
19148
  accessibilityRole: "text",
20535
19149
  accessibilityLabel: body,
20536
19150
  numberOfLines: getNumberOfLines(),
20537
- testID: "tile-body",
20538
- children: body
20539
- }));
19151
+ testID: "tile-body"
19152
+ }), body);
20540
19153
  };
20541
19154
 
20542
19155
  /**
@@ -20650,15 +19263,14 @@ var BaseTileContent = function (_a) {
20650
19263
  var sizeInfo = useTileSize(tileContext);
20651
19264
  if (!sizeInfo) return null;
20652
19265
  if (shouldHideContentForHalfTile(sizeInfo, artworkUrl)) return null;
20653
- return jsxRuntimeExports.jsx(View$2, {
19266
+ return /*#__PURE__*/React.createElement(View$2, {
20654
19267
  testID: "tile-content",
20655
19268
  style: [baseStyles.content, {
20656
19269
  justifyContent: 'center',
20657
19270
  height: !artworkUrl ? '100%' : undefined
20658
19271
  }],
20659
- accessibilityRole: "none",
20660
- children: children
20661
- });
19272
+ accessibilityRole: "none"
19273
+ }, children);
20662
19274
  };
20663
19275
 
20664
19276
  /**
@@ -20682,12 +19294,11 @@ var BaseTileHeader = function (_a) {
20682
19294
  }), sizeInfo.isHalfSize ? {
20683
19295
  alignItems: 'center'
20684
19296
  } : {});
20685
- return jsxRuntimeExports.jsx(View$2, {
19297
+ return /*#__PURE__*/React.createElement(View$2, {
20686
19298
  style: combinedStyle,
20687
19299
  testID: "tile-header",
20688
- accessibilityRole: "header",
20689
- children: children
20690
- });
19300
+ accessibilityRole: "header"
19301
+ }, children);
20691
19302
  };
20692
19303
 
20693
19304
  /**
@@ -20705,7 +19316,7 @@ var BaseTileMedia = function (props) {
20705
19316
  title = _b === void 0 ? '' : _b;
20706
19317
  var styles = useBaseTileStyles();
20707
19318
  if (!artworkUrl) return null;
20708
- return jsxRuntimeExports.jsx(ProgressiveImage, __assign({}, props, {
19319
+ return /*#__PURE__*/React.createElement(ProgressiveImage, __assign({}, props, {
20709
19320
  source: {
20710
19321
  uri: artworkUrl
20711
19322
  },
@@ -20736,20 +19347,17 @@ var BaseTileTitle = function () {
20736
19347
  var isHalfSize = sizeInfo.isHalfSize;
20737
19348
  // Don't show title for half tiles with image
20738
19349
  if (isHalfSize && artworkUrl || !title) return null;
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
- });
19350
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Text, {
19351
+ variant: "title",
19352
+ accessibilityRole: "header",
19353
+ accessibilityLabel: title,
19354
+ numberOfLines: 1,
19355
+ testID: "tile-title"
19356
+ }, title), ctaLink && (/*#__PURE__*/React.createElement(Icon, {
19357
+ name: "ChevronRight",
19358
+ color: (_b = (_a = sdk.theme) === null || _a === void 0 ? void 0 : _a.derivedSurfaceText) === null || _b === void 0 ? void 0 : _b[20],
19359
+ accessibilityLabel: "View details"
19360
+ })));
20753
19361
  };
20754
19362
 
20755
19363
  /**
@@ -20798,7 +19406,7 @@ var BaseTileContainer = function (_a) {
20798
19406
  alignItems: 'stretch'
20799
19407
  };
20800
19408
  var dynamicStyles = useBaseTileStyles();
20801
- return jsxRuntimeExports.jsx(Pressable$1, {
19409
+ return /*#__PURE__*/React.createElement(Pressable$1, {
20802
19410
  style: function (_a) {
20803
19411
  var pressed = _a.pressed;
20804
19412
  return [baseStyles.container, dynamicStyles.container, {
@@ -20813,9 +19421,8 @@ var BaseTileContainer = function (_a) {
20813
19421
  accessibilityLabel: "".concat(title).concat(ctaLink ? ' - Click to open' : ''),
20814
19422
  accessibilityState: {
20815
19423
  disabled: !ctaLink
20816
- },
20817
- children: children
20818
- });
19424
+ }
19425
+ }, children);
20819
19426
  };
20820
19427
  /**
20821
19428
  * BaseTileRoot component to provide context and render children.
@@ -20831,13 +19438,11 @@ var BaseTileRoot = function (_a) {
20831
19438
  console.warn('BaseTile: No tile provided');
20832
19439
  return null;
20833
19440
  }
20834
- return jsxRuntimeExports.jsx(TileContext.Provider, {
20835
- value: tile,
20836
- children: jsxRuntimeExports.jsx(BaseTile.Container, {
20837
- style: style,
20838
- children: children
20839
- })
20840
- });
19441
+ return /*#__PURE__*/React.createElement(TileContext.Provider, {
19442
+ value: tile
19443
+ }, /*#__PURE__*/React.createElement(BaseTile.Container, {
19444
+ style: style
19445
+ }, children));
20841
19446
  };
20842
19447
  /**
20843
19448
  * BaseTile component with subcomponents attached.
@@ -20851,6 +19456,7 @@ var BaseTile = Object.assign(BaseTileRoot, {
20851
19456
  Body: BaseTileBody
20852
19457
  });
20853
19458
 
19459
+ /* istanbul ignore file */
20854
19460
  var Indicator = function () {
20855
19461
  var _a = useResponsive$1(),
20856
19462
  isDesktop = _a.isDesktop,
@@ -20860,13 +19466,11 @@ var Indicator = function () {
20860
19466
  if (isTablet) return 'Tablet Layout';
20861
19467
  return 'Mobile Layout';
20862
19468
  };
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
- });
19469
+ return /*#__PURE__*/React.createElement(View$2, {
19470
+ style: styles$5.indicator
19471
+ }, /*#__PURE__*/React.createElement(Text$3, {
19472
+ style: styles$5.indicatorText
19473
+ }, getCurrentLayout()));
20870
19474
  };
20871
19475
  var styles$5 = StyleSheet$1.create({
20872
19476
  indicator: {
@@ -20887,6 +19491,7 @@ var styles$5 = StyleSheet$1.create({
20887
19491
 
20888
19492
  var GRID_GAP = 16;
20889
19493
 
19494
+ /* istanbul ignore file */
20890
19495
  var SkeletonTile = function (_a) {
20891
19496
  var style = _a.style;
20892
19497
  var theme = useWllSdk().theme;
@@ -20910,7 +19515,7 @@ var SkeletonTile = function (_a) {
20910
19515
  inputRange: [0, 1],
20911
19516
  outputRange: [0.3, 0.7]
20912
19517
  });
20913
- return jsxRuntimeExports.jsx(Animated$1.View, {
19518
+ return /*#__PURE__*/React__namespace.createElement(Animated$1.View, {
20914
19519
  style: [styles$4.container, {
20915
19520
  opacity: opacity,
20916
19521
  backgroundColor: theme.alphaDerivedText[20],
@@ -20926,6 +19531,7 @@ var styles$4 = StyleSheet$1.create({
20926
19531
  }
20927
19532
  });
20928
19533
 
19534
+ /* istanbul ignore file */
20929
19535
  var Skeleton = function (_a) {
20930
19536
  var style = _a.style,
20931
19537
  _b = _a.numberOfSquares,
@@ -20951,29 +19557,29 @@ var Skeleton = function (_a) {
20951
19557
  inputRange: [0, 1],
20952
19558
  outputRange: [0.3, 0.7]
20953
19559
  });
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
- });
19560
+ return /*#__PURE__*/React__namespace.createElement(View$2, {
19561
+ testID: "loading-skeleton"
19562
+ }, /*#__PURE__*/React__namespace.createElement(Animated$1.View, {
19563
+ style: [styles$3.skeleton, styles$3.title, {
19564
+ opacity: opacity,
19565
+ backgroundColor: theme.alphaDerivedText[20],
19566
+ borderRadius: 6
19567
+ }]
19568
+ }), /*#__PURE__*/React__namespace.createElement(Animated$1.View, {
19569
+ style: [styles$3.skeleton, styles$3.body, {
19570
+ opacity: opacity,
19571
+ backgroundColor: theme.alphaDerivedText[20],
19572
+ borderRadius: 6
19573
+ }]
19574
+ }), /*#__PURE__*/React__namespace.createElement(Animated$1.View, {
19575
+ style: [styles$3.container, style]
19576
+ }, Array.from({
19577
+ length: numberOfSquares
19578
+ }).map(function (_, index) {
19579
+ return /*#__PURE__*/React__namespace.createElement(SkeletonTile, {
19580
+ key: index
19581
+ });
19582
+ })));
20977
19583
  };
20978
19584
  var styles$3 = StyleSheet$1.create({
20979
19585
  container: {
@@ -21058,21 +19664,18 @@ function withTileFetching(WrappedComponent) {
21058
19664
  }
21059
19665
  }, [tile, tileId, getTileByID]);
21060
19666
  if (isLoading) {
21061
- return jsxRuntimeExports.jsx(SkeletonTile, {
19667
+ return /*#__PURE__*/React.createElement(SkeletonTile, {
21062
19668
  style: {
21063
19669
  width: '100%'
21064
19670
  }
21065
19671
  });
21066
19672
  }
21067
19673
  if (error || !tileData) {
21068
- return jsxRuntimeExports.jsx(View$2, {
21069
- style: commonStyles.emptyContainer,
21070
- children: jsxRuntimeExports.jsx(Text$3, {
21071
- children: "No tile data available"
21072
- })
21073
- });
19674
+ return /*#__PURE__*/React.createElement(View$2, {
19675
+ style: commonStyles.emptyContainer
19676
+ }, /*#__PURE__*/React.createElement(Text$3, null, "No tile data available"));
21074
19677
  }
21075
- return jsxRuntimeExports.jsx(WrappedComponent, __assign({}, props, {
19678
+ return /*#__PURE__*/React.createElement(WrappedComponent, __assign({}, props, {
21076
19679
  tile: tileData
21077
19680
  }));
21078
19681
  };
@@ -21163,23 +19766,21 @@ var BadgeTileDateEarned = function () {
21163
19766
  var textColor = getReadableTextColor(backgroundColor);
21164
19767
  var displayText = count === 0 ? badgeNotEarnedMessage : "".concat(awardedDatePrefix, " ").concat(new Date(createdAt).toLocaleDateString());
21165
19768
  var accessibilityLabel = count === 0 ? 'Badge not yet earned' : "Badge earned on ".concat(new Date(createdAt).toLocaleDateString());
21166
- return jsxRuntimeExports.jsx(View$2, {
19769
+ return /*#__PURE__*/React.createElement(View$2, {
21167
19770
  style: containerStyle,
21168
19771
  accessible: true,
21169
19772
  accessibilityLabel: accessibilityLabel,
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
- });
19773
+ testID: "badge-tile-date-earned"
19774
+ }, /*#__PURE__*/React.createElement(Text, {
19775
+ variant: "label",
19776
+ style: [styles.dateEarnedText, {
19777
+ color: textColor
19778
+ }],
19779
+ numberOfLines: 1,
19780
+ ellipsizeMode: "tail",
19781
+ accessibilityElementsHidden: true,
19782
+ importantForAccessibility: "no-hide-descendants"
19783
+ }, displayText));
21183
19784
  };
21184
19785
 
21185
19786
  /**
@@ -21198,19 +19799,17 @@ var BadgeTileDescription = function () {
21198
19799
  // For Latest type, hide description when count = 0
21199
19800
  // For Specific type, always show description
21200
19801
  if (count === 0 && type === exports.BadgeTileType.Latest) return null;
21201
- return jsxRuntimeExports.jsx(View$2, {
19802
+ return /*#__PURE__*/React.createElement(View$2, {
21202
19803
  accessible: true,
21203
19804
  accessibilityLabel: "Badge description: ".concat(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
- });
19805
+ testID: "badge-tile-description"
19806
+ }, /*#__PURE__*/React.createElement(Text, {
19807
+ variant: "body",
19808
+ numberOfLines: 2,
19809
+ ellipsizeMode: "tail",
19810
+ accessibilityElementsHidden: true,
19811
+ importantForAccessibility: "no-hide-descendants"
19812
+ }, description));
21214
19813
  };
21215
19814
 
21216
19815
  /**
@@ -21233,19 +19832,18 @@ var BadgeTileMedia = function (_a) {
21233
19832
  name = _b.name;
21234
19833
  var displayUrl = type === exports.BadgeTileType.Specific ? artworkUrl : count === 0 ? emptyBadgeArtworkUrl : artworkUrl;
21235
19834
  if (!displayUrl) return null;
21236
- return jsxRuntimeExports.jsxs(View$2, {
19835
+ return /*#__PURE__*/React.createElement(View$2, {
21237
19836
  style: styles.header,
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
- });
19837
+ testID: "badge-tile-media"
19838
+ }, /*#__PURE__*/React.createElement(ProgressiveImage, __assign({}, props, {
19839
+ source: {
19840
+ uri: displayUrl
19841
+ },
19842
+ style: styles.image,
19843
+ resizeMode: "contain",
19844
+ isDesaturated: shouldDesaturate(type, count),
19845
+ alt: alt !== null && alt !== void 0 ? alt : "Badge ".concat(name).concat(type === exports.BadgeTileType.Latest && count === 0 ? ' (not earned)' : '')
19846
+ })), children);
21249
19847
  };
21250
19848
 
21251
19849
  /**
@@ -21265,24 +19863,22 @@ var BadgeTileStatus = function () {
21265
19863
  }
21266
19864
  var isLocked = count === 0;
21267
19865
  var statusLabel = isLocked ? 'Badge locked' : "Earned ".concat(count, " times");
21268
- return jsxRuntimeExports.jsx(View$2, {
19866
+ return /*#__PURE__*/React.createElement(View$2, {
21269
19867
  style: styles.indicatorContainer,
21270
19868
  accessible: true,
21271
19869
  accessibilityLabel: statusLabel,
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
- });
19870
+ testID: "badge-tile-status"
19871
+ }, isLocked ? (/*#__PURE__*/React.createElement(Icon, {
19872
+ name: "LockKeyhole",
19873
+ testID: "badge-tile-status-locked",
19874
+ color: "#FFF",
19875
+ size: 20,
19876
+ accessibilityElementsHidden: true
19877
+ })) : (/*#__PURE__*/React.createElement(Text, {
19878
+ style: styles.countText,
19879
+ accessibilityElementsHidden: true,
19880
+ importantForAccessibility: "no-hide-descendants"
19881
+ }, count, "x")));
21286
19882
  };
21287
19883
 
21288
19884
  /**
@@ -21301,20 +19897,18 @@ var BadgeTileTitle = function () {
21301
19897
  type = _a.type;
21302
19898
  var displayText = type === exports.BadgeTileType.Specific ? name : count === 0 ? emptyBadgeMessage : name;
21303
19899
  if (!displayText) return null;
21304
- return jsxRuntimeExports.jsx(View$2, {
19900
+ return /*#__PURE__*/React.createElement(View$2, {
21305
19901
  accessible: true,
21306
19902
  accessibilityLabel: "Badge title: ".concat(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
- });
19903
+ testID: "badge-tile-title"
19904
+ }, /*#__PURE__*/React.createElement(Text, {
19905
+ variant: "title",
19906
+ style: styles.titleText,
19907
+ numberOfLines: count === 0 ? 2 : 1,
19908
+ ellipsizeMode: "tail",
19909
+ accessibilityElementsHidden: true,
19910
+ importantForAccessibility: "no-hide-descendants"
19911
+ }, displayText));
21318
19912
  };
21319
19913
 
21320
19914
  /**
@@ -21325,16 +19919,12 @@ var BadgeTileTitle = function () {
21325
19919
  var BadgeTileRoot = function (_a) {
21326
19920
  var tile = _a.tile;
21327
19921
  if (!tile || tile.tileHeight !== exports.TileHeight.Full || !tile.active) return 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
- });
19922
+ return /*#__PURE__*/React.createElement(BaseTile, {
19923
+ tile: tile
19924
+ }, /*#__PURE__*/React.createElement(BadgeTile.Media, null, /*#__PURE__*/React.createElement(BadgeTile.Status, null)), /*#__PURE__*/React.createElement(Layout, {
19925
+ justify: "between",
19926
+ align: "start"
19927
+ }, /*#__PURE__*/React.createElement(BadgeTile.Title, null), /*#__PURE__*/React.createElement(BadgeTile.Description, null), /*#__PURE__*/React.createElement(Spacer, null), /*#__PURE__*/React.createElement(BadgeTile.DateEarned, null)));
21338
19928
  };
21339
19929
  /**
21340
19930
  * The BadgeTile component with subcomponents attached.
@@ -21365,7 +19955,7 @@ var BannerTileCTA = function () {
21365
19955
  if (!ctaText || !ctaLink) return null;
21366
19956
  var handlePress = useHandleTilePress(bannerContext, ctaLink, ctaLinkTarget);
21367
19957
  var hint = ctaLink ? ctaLinkTarget === exports.CTALinkTarget.newWindow ? "Opens ".concat(ctaLink, " in a new window") : "Takes you to ".concat(ctaLink) : '';
21368
- return jsxRuntimeExports.jsx(Button, {
19958
+ return /*#__PURE__*/React.createElement(Button, {
21369
19959
  testID: "banner-tile-cta",
21370
19960
  title: ctaText,
21371
19961
  variant: "accent",
@@ -21427,13 +20017,12 @@ var BannerTileDescription = function () {
21427
20017
  if (!isContextValid(bannerContext)) return null;
21428
20018
  var description = bannerContext.configuration.description;
21429
20019
  if (!description) return null;
21430
- return jsxRuntimeExports.jsx(Text, {
20020
+ return /*#__PURE__*/React.createElement(Text, {
21431
20021
  style: styles.description,
21432
20022
  accessibilityRole: "text",
21433
20023
  accessibilityLabel: description,
21434
- testID: "banner-tile-description",
21435
- children: description
21436
- });
20024
+ testID: "banner-tile-description"
20025
+ }, description);
21437
20026
  };
21438
20027
 
21439
20028
  /**
@@ -21453,19 +20042,18 @@ var BannerTileMedia = function (_a) {
21453
20042
  var containerStyle = {
21454
20043
  width: isArtworkOnly ? '100%' : '30%'
21455
20044
  };
21456
- return jsxRuntimeExports.jsx(View$2, {
20045
+ return /*#__PURE__*/React.createElement(View$2, {
21457
20046
  style: [styles.mediaContainer, containerStyle],
21458
20047
  accessibilityRole: "image",
21459
20048
  accessibilityLabel: "Banner image".concat(title ? " for ".concat(title) : ''),
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
- });
20049
+ testID: "banner-tile-media"
20050
+ }, /*#__PURE__*/React.createElement(ProgressiveImage, {
20051
+ source: {
20052
+ uri: artworkUrl
20053
+ },
20054
+ style: styles.media,
20055
+ alt: "Banner image".concat(title ? " for ".concat(title) : '')
20056
+ }));
21469
20057
  };
21470
20058
 
21471
20059
  /**
@@ -21479,14 +20067,13 @@ var BannerTileTitle = function () {
21479
20067
  if (!isContextValid(bannerContext)) return null;
21480
20068
  var title = bannerContext.configuration.title;
21481
20069
  if (!title) return null;
21482
- return jsxRuntimeExports.jsx(Text, {
20070
+ return /*#__PURE__*/React.createElement(Text, {
21483
20071
  variant: "title",
21484
20072
  testID: "banner-tile-title",
21485
20073
  style: styles.title,
21486
20074
  accessibilityRole: "header",
21487
- accessibilityLabel: title,
21488
- children: title
21489
- });
20075
+ accessibilityLabel: title
20076
+ }, title);
21490
20077
  };
21491
20078
 
21492
20079
  /**
@@ -21511,14 +20098,11 @@ var BannerTileRoot = function (_a) {
21511
20098
  var tile = _a.tile;
21512
20099
  if (!tile || !tile.active || !tile.configuration) return null;
21513
20100
  var configuration = tile.configuration;
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
- });
20101
+ return /*#__PURE__*/React.createElement(BaseBanner, {
20102
+ tile: tile
20103
+ }, /*#__PURE__*/React.createElement(BannerTile.Media, {
20104
+ isArtworkOnly: isArtworkOnly$1(configuration)
20105
+ }), /*#__PURE__*/React.createElement(FullFlex, null, /*#__PURE__*/React.createElement(BannerTile.Title, null), /*#__PURE__*/React.createElement(BannerTile.Description, null), /*#__PURE__*/React.createElement(BannerTile.CTA, null)));
21522
20106
  };
21523
20107
  /**
21524
20108
  * The BannerTile component with subcomponents attached.
@@ -21532,14 +20116,12 @@ var BannerTile = Object.assign(BannerTileRoot, {
21532
20116
  var BannerTile$1 = withTileFetching(BannerTile);
21533
20117
 
21534
20118
  var ContentTileBody = function () {
21535
- return jsxRuntimeExports.jsx(BaseTile.Body, {});
20119
+ return /*#__PURE__*/React.createElement(BaseTile.Body, null);
21536
20120
  };
21537
20121
 
21538
20122
  var ContentTileContainer = function (_a) {
21539
20123
  var children = _a.children;
21540
- return jsxRuntimeExports.jsx(BaseTile.Container, {
21541
- children: children
21542
- });
20124
+ return /*#__PURE__*/React.createElement(BaseTile.Container, null, children);
21543
20125
  };
21544
20126
 
21545
20127
  /**
@@ -21568,12 +20150,9 @@ var useContentTileStyles = function () {
21568
20150
  var ContentTileContent = function (_a) {
21569
20151
  var children = _a.children;
21570
20152
  var styles = useContentTileStyles();
21571
- return jsxRuntimeExports.jsx(BaseTile.Content, {
21572
- children: jsxRuntimeExports.jsx(View$2, {
21573
- style: styles.content,
21574
- children: children
21575
- })
21576
- });
20153
+ return /*#__PURE__*/React.createElement(BaseTile.Content, null, /*#__PURE__*/React.createElement(View$2, {
20154
+ style: styles.content
20155
+ }, children));
21577
20156
  };
21578
20157
 
21579
20158
  var ContentTileHeader = function () {
@@ -21581,14 +20160,12 @@ var ContentTileHeader = function () {
21581
20160
  if (!isContextValid(tileContext)) return null;
21582
20161
  var title = tileContext.configuration.title;
21583
20162
  if (!title) return null;
21584
- return jsxRuntimeExports.jsx(BaseTile.Header, {
21585
- children: jsxRuntimeExports.jsx(BaseTile.Title, {})
21586
- });
20163
+ return /*#__PURE__*/React.createElement(BaseTile.Header, null, /*#__PURE__*/React.createElement(BaseTile.Title, null));
21587
20164
  };
21588
20165
 
21589
20166
  var ContentTileMedia = function () {
21590
20167
  var styles = useContentTileStyles();
21591
- return jsxRuntimeExports.jsx(BaseTile.Media, {
20168
+ return /*#__PURE__*/React.createElement(BaseTile.Media, {
21592
20169
  style: styles.media
21593
20170
  });
21594
20171
  };
@@ -21601,14 +20178,9 @@ var ContentTileMedia = function () {
21601
20178
  var ContentTileRoot = function (_a) {
21602
20179
  var tile = _a.tile;
21603
20180
  if (!tile || !tile.active) return 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
- });
20181
+ return /*#__PURE__*/React.createElement(BaseTile, {
20182
+ tile: tile
20183
+ }, /*#__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))));
21612
20184
  };
21613
20185
  /**
21614
20186
  * The ContentTile component with subcomponents attached.
@@ -21707,21 +20279,18 @@ var SectionHeader = function (_a) {
21707
20279
  if (!title) {
21708
20280
  return null;
21709
20281
  }
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
- });
20282
+ return /*#__PURE__*/React.createElement(View$2, {
20283
+ style: styles.sectionHeader
20284
+ }, title && (/*#__PURE__*/React.createElement(Text, {
20285
+ style: [styles.sectionTitle, {
20286
+ fontWeight: '700',
20287
+ color: theme.text
20288
+ }]
20289
+ }, title)), description && (/*#__PURE__*/React.createElement(Text, {
20290
+ style: [styles.sectionDescription, {
20291
+ color: theme.alphaDerivedText[80]
20292
+ }]
20293
+ }, description)));
21725
20294
  };
21726
20295
 
21727
20296
  var useCarouselStyles = function (buttonSize) {
@@ -21895,92 +20464,85 @@ var Carousel = function (_a) {
21895
20464
  marginTop: useResponsiveValue(theme.sizes.xxl, theme.sizes.sm, isDesktop, isTablet)
21896
20465
  }
21897
20466
  });
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
- });
20467
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SectionHeader, {
20468
+ title: section.title,
20469
+ description: section.description
20470
+ }), /*#__PURE__*/React.createElement(View$2, {
20471
+ ref: containerRef,
20472
+ style: styles.container,
20473
+ onLayout: function (event) {
20474
+ var width = event.nativeEvent.layout.width;
20475
+ dispatch({
20476
+ type: 'SET_CONTAINER_WIDTH',
20477
+ payload: width
20478
+ });
20479
+ }
20480
+ }, /*#__PURE__*/React.createElement(View$2, {
20481
+ style: styles.carouselContainer
20482
+ }, showPrevButton && (/*#__PURE__*/React.createElement(Pressable$1, {
20483
+ style: [styles.navButton, styles.navButtonLeft, {
20484
+ backgroundColor: theme.background
20485
+ }],
20486
+ onPress: handlePrev,
20487
+ accessibilityLabel: "Previous slide",
20488
+ role: "button"
20489
+ }, /*#__PURE__*/React.createElement(Icon, {
20490
+ name: "ArrowLeft",
20491
+ size: 20,
20492
+ color: theme.primary
20493
+ }))), /*#__PURE__*/React.createElement(ScrollView$2, {
20494
+ ref: scrollViewRef,
20495
+ horizontal: true,
20496
+ pagingEnabled: true,
20497
+ showsHorizontalScrollIndicator: false,
20498
+ onScroll: handleScroll,
20499
+ onMomentumScrollEnd: handleScrollEnd,
20500
+ scrollEventThrottle: 16,
20501
+ style: [styles.carouselContent],
20502
+ contentContainerStyle: {
20503
+ width: containerWidth * sortedTiles.length
20504
+ },
20505
+ decelerationRate: "fast",
20506
+ snapToInterval: containerWidth,
20507
+ snapToAlignment: "start"
20508
+ }, sortedTiles.map(function (tile, index) {
20509
+ return /*#__PURE__*/React.createElement(View$2, {
20510
+ key: index,
20511
+ style: [styles.slideContainer, {
20512
+ width: containerWidth
20513
+ }]
20514
+ }, /*#__PURE__*/React.createElement(BannerTile$1, {
20515
+ tile: tile
20516
+ }));
20517
+ })), showNextButton && (/*#__PURE__*/React.createElement(Pressable$1, {
20518
+ style: [styles.navButton, styles.navButtonRight, {
20519
+ backgroundColor: theme.background
20520
+ }],
20521
+ onPress: handleNext,
20522
+ accessibilityLabel: "Next slide",
20523
+ role: "button"
20524
+ }, /*#__PURE__*/React.createElement(Icon, {
20525
+ name: "ArrowRight",
20526
+ size: 20,
20527
+ color: theme.primary
20528
+ })))), displayControls && (/*#__PURE__*/React.createElement(View$2, {
20529
+ style: dynamicStyles.indicators
20530
+ }, sortedTiles.map(function (_, index) {
20531
+ var width = animatedIndex.interpolate({
20532
+ inputRange: [index - 1, index, index + 1],
20533
+ outputRange: [8, 30, 8],
20534
+ extrapolate: 'clamp'
20535
+ });
20536
+ return /*#__PURE__*/React.createElement(Animated$1.View, {
20537
+ key: index,
20538
+ style: [styles.indicator, {
20539
+ backgroundColor: theme.derivedBackground,
20540
+ width: width
20541
+ }, index === currentIndex && {
20542
+ backgroundColor: theme.primary
20543
+ }]
20544
+ });
20545
+ })))));
21984
20546
  };
21985
20547
 
21986
20548
  var Grid = function (_a) {
@@ -22000,14 +20562,15 @@ var Grid = function (_a) {
22000
20562
  return {
22001
20563
  width: "calc(".concat(100 / columns, "% - ").concat((columns - 1) * GRID_GAP / columns, "px)"),
22002
20564
  marginBottom: GRID_GAP,
22003
- height: 'auto'
20565
+ height: 'auto',
20566
+ aspectRatio: 1
22004
20567
  };
22005
20568
  } else {
22006
20569
  var tileWidth = (SCREEN_WIDTH - (columns - 1) * GRID_GAP) / columns;
22007
20570
  return {
22008
20571
  width: tileWidth,
22009
20572
  marginBottom: GRID_GAP,
22010
- height: 'auto'
20573
+ aspectRatio: 1
22011
20574
  };
22012
20575
  }
22013
20576
  }, []);
@@ -22033,30 +20596,27 @@ var Grid = function (_a) {
22033
20596
  };
22034
20597
  if (shouldStartNewContainer(currentTiles, tile, nextTile)) {
22035
20598
  var isLastInRow = (tileContainers.length + 1) % columnsPerRow === 0;
22036
- tileContainers.push(jsxRuntimeExports.jsx(View$2, {
20599
+ tileContainers.push(/*#__PURE__*/React.createElement(View$2, {
20600
+ key: "container-".concat(index),
22037
20601
  style: [
22038
20602
  // @ts-ignore Web uses CSS calc strings for responsive layouts, while ViewStyle expects numbers
22039
20603
  getTileWidth(columnsPerRow), !isLastInRow && {
22040
20604
  marginRight: GRID_GAP
22041
- }],
22042
- children: jsxRuntimeExports.jsx(TileContainer, {
22043
- tiles: currentTiles
22044
- })
22045
- }, "container-".concat(index)));
20605
+ }]
20606
+ }, /*#__PURE__*/React.createElement(TileContainer, {
20607
+ tiles: currentTiles
20608
+ })));
22046
20609
  currentTiles = [];
22047
20610
  }
22048
20611
  });
22049
20612
  return tileContainers;
22050
20613
  }, [gridTiles, columnsPerRow, getTileWidth]);
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
- });
20614
+ return /*#__PURE__*/React.createElement(View$2, null, /*#__PURE__*/React.createElement(SectionHeader, {
20615
+ title: section.title,
20616
+ description: section.description
20617
+ }), /*#__PURE__*/React.createElement(View$2, {
20618
+ style: styles$2.grid
20619
+ }, renderTileContainers()));
22060
20620
  };
22061
20621
  var styles$2 = StyleSheet$1.create({
22062
20622
  grid: {
@@ -22066,6 +20626,7 @@ var styles$2 = StyleSheet$1.create({
22066
20626
  }
22067
20627
  });
22068
20628
 
20629
+ /* istanbul ignore file */
22069
20630
  var ProgressIndicator = function (_a) {
22070
20631
  var currentPoints = _a.currentPoints,
22071
20632
  maxPoints = _a.maxPoints,
@@ -22084,28 +20645,25 @@ var ProgressIndicator = function (_a) {
22084
20645
  } else if (percentage < 50) {
22085
20646
  progressVariant = 'accent';
22086
20647
  }
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
- });
20648
+ return /*#__PURE__*/React__namespace.createElement(View$2, {
20649
+ style: styles$1.container
20650
+ }, /*#__PURE__*/React__namespace.createElement(ProgressBar, {
20651
+ percentage: percentage,
20652
+ variant: progressVariant,
20653
+ height: height
20654
+ }), /*#__PURE__*/React__namespace.createElement(View$2, {
20655
+ style: [styles$1.circleContainer]
20656
+ }, /*#__PURE__*/React__namespace.createElement(View$2, {
20657
+ style: [styles$1.circle, {
20658
+ borderColor: theme.derivedSurface[20],
20659
+ backgroundColor: isComplete ? theme.primary : theme.surface,
20660
+ borderWidth: isComplete ? 0 : 4
20661
+ }]
20662
+ }, isComplete && (/*#__PURE__*/React__namespace.createElement(Icon, {
20663
+ name: "Check",
20664
+ size: 12,
20665
+ color: theme.primaryText
20666
+ })))));
22109
20667
  };
22110
20668
  var styles$1 = StyleSheet$1.create({
22111
20669
  container: {
@@ -22225,14 +20783,11 @@ var useSectionData = function (section, sectionId) {
22225
20783
  */
22226
20784
  var EmptyState = function (_a) {
22227
20785
  var message = _a.message;
22228
- return jsxRuntimeExports.jsx(View$2, {
20786
+ return /*#__PURE__*/React.createElement(View$2, {
22229
20787
  style: commonStyles.emptyContainer,
22230
20788
  accessibilityRole: "text",
22231
- accessibilityLabel: "Empty state: ".concat(message),
22232
- children: jsxRuntimeExports.jsx(Text$3, {
22233
- children: message
22234
- })
22235
- });
20789
+ accessibilityLabel: "Empty state: ".concat(message)
20790
+ }, /*#__PURE__*/React.createElement(Text$3, null, message));
22236
20791
  };
22237
20792
  /**
22238
20793
  * The Section component renders a section based on its type (e.g., Banner, Grid).
@@ -22256,13 +20811,13 @@ var Section = function (_a) {
22256
20811
  }
22257
20812
  var renderSectionContent = function () {
22258
20813
  if (isLoading) {
22259
- return jsxRuntimeExports.jsx(Skeleton, {
20814
+ return /*#__PURE__*/React.createElement(Skeleton, {
22260
20815
  "aria-label": "Loading section content",
22261
20816
  numberOfSquares: 4
22262
20817
  });
22263
20818
  }
22264
20819
  if (error || !sectionData) {
22265
- return jsxRuntimeExports.jsx(EmptyState, {
20820
+ return /*#__PURE__*/React.createElement(EmptyState, {
22266
20821
  message: error || 'No section data available.'
22267
20822
  });
22268
20823
  }
@@ -22271,7 +20826,7 @@ var Section = function (_a) {
22271
20826
  return tile && tile.active;
22272
20827
  }));
22273
20828
  if (!activeTiles || activeTiles.length === 0) {
22274
- return jsxRuntimeExports.jsx(EmptyState, {
20829
+ return /*#__PURE__*/React.createElement(EmptyState, {
22275
20830
  message: "No active tiles available."
22276
20831
  });
22277
20832
  }
@@ -22280,38 +20835,36 @@ var Section = function (_a) {
22280
20835
  });
22281
20836
  if (!sectionData.type) {
22282
20837
  console.warn('Section is missing a type');
22283
- return jsxRuntimeExports.jsx(EmptyState, {
20838
+ return /*#__PURE__*/React.createElement(EmptyState, {
22284
20839
  message: "Invalid section configuration."
22285
20840
  });
22286
20841
  }
22287
20842
  switch (sectionData.type) {
22288
20843
  case exports.SectionType.Banner:
22289
- return jsxRuntimeExports.jsx(Carousel, {
20844
+ return /*#__PURE__*/React.createElement(Carousel, {
22290
20845
  section: sectionWithActiveTiles
22291
20846
  });
22292
20847
  case exports.SectionType.Grid:
22293
- return jsxRuntimeExports.jsx(Grid, {
20848
+ return /*#__PURE__*/React.createElement(Grid, {
22294
20849
  section: sectionWithActiveTiles
22295
20850
  });
22296
20851
  default:
22297
20852
  console.warn("Unknown section type: ".concat(sectionData.type));
22298
- return jsxRuntimeExports.jsx(EmptyState, {
20853
+ return /*#__PURE__*/React.createElement(EmptyState, {
22299
20854
  message: "Unknown section type."
22300
20855
  });
22301
20856
  }
22302
20857
  };
22303
- return sectionData ? jsxRuntimeExports.jsx(SectionContext.Provider, {
20858
+ return sectionData ? (/*#__PURE__*/React.createElement(SectionContext.Provider, {
22304
20859
  value: {
22305
20860
  sectionData: sectionData
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;
20861
+ }
20862
+ }, /*#__PURE__*/React.createElement(View$2, {
20863
+ style: styles.section,
20864
+ accessible: true,
20865
+ accessibilityLabel: "Section: ".concat(sectionData.title || 'Untitled section'),
20866
+ accessibilityHint: sectionData.description || undefined
20867
+ }, renderSectionContent()))) : null;
22315
20868
  };
22316
20869
 
22317
20870
  /**
@@ -22405,15 +20958,13 @@ var useGroupData = function (id) {
22405
20958
  */
22406
20959
  var GroupEmptyState = function (_a) {
22407
20960
  var message = _a.message;
22408
- return jsxRuntimeExports.jsx(View$2, {
20961
+ return /*#__PURE__*/React.createElement(View$2, {
22409
20962
  style: commonStyles.emptyContainer,
22410
20963
  accessible: true,
22411
- accessibilityLabel: "Empty state: ".concat(message),
22412
- children: jsxRuntimeExports.jsx(Text, {
22413
- variant: "body",
22414
- children: message
22415
- })
22416
- });
20964
+ accessibilityLabel: "Empty state: ".concat(message)
20965
+ }, /*#__PURE__*/React.createElement(Text, {
20966
+ variant: "body"
20967
+ }, message));
22417
20968
  };
22418
20969
  /**
22419
20970
  * Component to render all sections in a group
@@ -22423,7 +20974,7 @@ var GroupEmptyState = function (_a) {
22423
20974
  var GroupSections = function () {
22424
20975
  var groupData = useGroupContext().groupData;
22425
20976
  if (!groupData || !groupData.sections || groupData.sections.length === 0) {
22426
- return jsxRuntimeExports.jsx(GroupEmptyState, {
20977
+ return /*#__PURE__*/React.createElement(GroupEmptyState, {
22427
20978
  message: "This group doesn't have any sections"
22428
20979
  });
22429
20980
  }
@@ -22432,20 +20983,20 @@ var GroupSections = function () {
22432
20983
  return section && section.active;
22433
20984
  });
22434
20985
  if (activeSections.length === 0) {
22435
- return jsxRuntimeExports.jsx(GroupEmptyState, {
20986
+ return /*#__PURE__*/React.createElement(GroupEmptyState, {
22436
20987
  message: "This group doesn't have any active sections"
22437
20988
  });
22438
20989
  }
22439
20990
  var sortedSections = sortByPriority(activeSections);
22440
- return jsxRuntimeExports.jsx(View$2, {
20991
+ return /*#__PURE__*/React.createElement(View$2, {
22441
20992
  accessible: true,
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
- });
20993
+ accessibilityLabel: "Group: ".concat(groupData.name || 'Unnamed group')
20994
+ }, sortedSections.map(function (section) {
20995
+ return /*#__PURE__*/React.createElement(Section, {
20996
+ key: section.id,
20997
+ section: section
20998
+ });
20999
+ }));
22449
21000
  };
22450
21001
  /**
22451
21002
  * A page-level component that represents a Group view in the application.
@@ -22470,27 +21021,24 @@ var Group = function (_a) {
22470
21021
  isLoading = _b.isLoading,
22471
21022
  error = _b.error;
22472
21023
  if (isLoading) {
22473
- return jsxRuntimeExports.jsx(View$2, {
21024
+ return /*#__PURE__*/React.createElement(View$2, {
22474
21025
  style: commonStyles.emptyContainer,
22475
21026
  accessible: true,
22476
- accessibilityLabel: "Loading group data",
22477
- children: jsxRuntimeExports.jsx(Skeleton, {})
22478
- });
21027
+ accessibilityLabel: "Loading group data"
21028
+ }, /*#__PURE__*/React.createElement(Skeleton, null));
22479
21029
  }
22480
21030
  if (error || !groupData) {
22481
- return jsxRuntimeExports.jsx(GroupEmptyState, {
21031
+ return /*#__PURE__*/React.createElement(GroupEmptyState, {
22482
21032
  message: error || 'No group data available'
22483
21033
  });
22484
21034
  }
22485
- return jsxRuntimeExports.jsx(GroupContext.Provider, {
21035
+ return /*#__PURE__*/React.createElement(GroupContext.Provider, {
22486
21036
  value: {
22487
21037
  groupData: groupData
22488
- },
22489
- children: jsxRuntimeExports.jsx(View$2, {
22490
- "data-testid": "group-container",
22491
- children: jsxRuntimeExports.jsx(GroupSections, {})
22492
- })
22493
- });
21038
+ }
21039
+ }, /*#__PURE__*/React.createElement(View$2, {
21040
+ "data-testid": "group-container"
21041
+ }, /*#__PURE__*/React.createElement(GroupSections, null)));
22494
21042
  };
22495
21043
 
22496
21044
  /**
@@ -22588,11 +21136,9 @@ var Column = function (_a) {
22588
21136
  flex: flex
22589
21137
  })
22590
21138
  });
22591
- return jsxRuntimeExports.jsx(View$2, __assign({
21139
+ return /*#__PURE__*/React__namespace.createElement(View$2, __assign({
22592
21140
  style: [styles.container, style]
22593
- }, rest, {
22594
- children: children
22595
- }));
21141
+ }, rest), children);
22596
21142
  };
22597
21143
 
22598
21144
  /**
@@ -22605,13 +21151,11 @@ var FullFlex = function (_a) {
22605
21151
  var children = _a.children,
22606
21152
  style = _a.style,
22607
21153
  rest = __rest(_a, ["children", "style"]);
22608
- return jsxRuntimeExports.jsx(View$2, __assign({
21154
+ return /*#__PURE__*/React.createElement(View$2, __assign({
22609
21155
  style: [{
22610
21156
  flex: 1
22611
21157
  }, style]
22612
- }, rest, {
22613
- children: children
22614
- }));
21158
+ }, rest), children);
22615
21159
  };
22616
21160
 
22617
21161
  /**
@@ -22648,11 +21192,9 @@ var Layout = function (_a) {
22648
21192
  flexDirection: direction
22649
21193
  }
22650
21194
  });
22651
- return jsxRuntimeExports.jsx(View$2, __assign({
21195
+ return /*#__PURE__*/React__namespace.createElement(View$2, __assign({
22652
21196
  style: [dynamicStyles.container, style]
22653
- }, rest, {
22654
- children: children
22655
- }));
21197
+ }, rest), children);
22656
21198
  };
22657
21199
 
22658
21200
  /**
@@ -22684,11 +21226,9 @@ var Row = function (_a) {
22684
21226
  flex: flex
22685
21227
  })
22686
21228
  });
22687
- return jsxRuntimeExports.jsx(View$2, __assign({
21229
+ return /*#__PURE__*/React__namespace.createElement(View$2, __assign({
22688
21230
  style: [styles.container, style]
22689
- }, rest, {
22690
- children: children
22691
- }));
21231
+ }, rest), children);
22692
21232
  };
22693
21233
 
22694
21234
  /**
@@ -22700,7 +21240,7 @@ var Row = function (_a) {
22700
21240
  var Spacer = function (_a) {
22701
21241
  var style = _a.style,
22702
21242
  rest = __rest(_a, ["style"]);
22703
- return jsxRuntimeExports.jsx(View$2, __assign({
21243
+ return /*#__PURE__*/React.createElement(View$2, __assign({
22704
21244
  style: [{
22705
21245
  flex: 1
22706
21246
  }, style]
@@ -22777,29 +21317,24 @@ var PointsTileFormattedPoints = function () {
22777
21317
  if (points === undefined || points === 0) return null;
22778
21318
  var calculatedPoints = applyMultiplier(points, pointsMultiplier);
22779
21319
  var fullPointsText = "".concat(pointsPrefix).concat(calculatedPoints, " ").concat(pointsSuffix).trim();
22780
- return jsxRuntimeExports.jsx(View$2, {
21320
+ return /*#__PURE__*/React.createElement(View$2, {
22781
21321
  testID: "points-tile-points",
22782
21322
  accessibilityRole: "text",
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
- });
21323
+ accessibilityLabel: "Points value: ".concat(fullPointsText)
21324
+ }, /*#__PURE__*/React.createElement(Row, {
21325
+ align: "center",
21326
+ justify: "start"
21327
+ }, pointsPrefix ? (/*#__PURE__*/React.createElement(Text, {
21328
+ variant: "caption",
21329
+ testID: "points-tile-prefix"
21330
+ }, pointsPrefix)) : null, /*#__PURE__*/React.createElement(Text, {
21331
+ variant: "caption",
21332
+ testID: "points-tile-value"
21333
+ }, calculatedPoints), pointsSuffix ? (/*#__PURE__*/React.createElement(Text, {
21334
+ variant: "caption",
21335
+ style: styles.suffix,
21336
+ testID: "points-tile-suffix"
21337
+ }, pointsSuffix)) : null));
22803
21338
  };
22804
21339
 
22805
21340
  /**
@@ -22817,19 +21352,18 @@ var PointsTileMedia = function (_a) {
22817
21352
  title = _c === void 0 ? 'Points' : _c;
22818
21353
  var styles = usePointsTileStyles(isFullSize);
22819
21354
  if (!artworkUrl) return null;
22820
- return jsxRuntimeExports.jsx(View$2, {
21355
+ return /*#__PURE__*/React.createElement(View$2, {
22821
21356
  testID: "points-tile-media",
22822
21357
  style: styles.imageContainer,
22823
21358
  accessibilityRole: "image",
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
- });
21359
+ accessibilityLabel: "Points tile image for ".concat(title)
21360
+ }, /*#__PURE__*/React.createElement(Image$2, {
21361
+ source: {
21362
+ uri: artworkUrl
21363
+ },
21364
+ style: styles.image,
21365
+ resizeMode: isFullSize ? 'cover' : 'contain'
21366
+ }));
22833
21367
  };
22834
21368
 
22835
21369
  /**
@@ -22842,13 +21376,12 @@ var PointsTileTitle = function () {
22842
21376
  if (!isContextValid(tileContext)) return null;
22843
21377
  var title = tileContext.configuration.title;
22844
21378
  if (!title) return null;
22845
- return jsxRuntimeExports.jsx(Text, {
21379
+ return /*#__PURE__*/React.createElement(Text, {
22846
21380
  variant: "eyebrow",
22847
21381
  testID: "points-tile-title",
22848
21382
  accessibilityRole: "header",
22849
- accessibilityLabel: title,
22850
- children: title
22851
- });
21383
+ accessibilityLabel: title
21384
+ }, title);
22852
21385
  };
22853
21386
 
22854
21387
  /**
@@ -22864,20 +21397,17 @@ var PointsTileRoot = function (_a) {
22864
21397
  if (!config) return null;
22865
21398
  var isFullSize = useTileSize(tile).isFullSize;
22866
21399
  var styles = usePointsTileStyles(isFullSize);
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
- });
21400
+ return /*#__PURE__*/React.createElement(BaseTile, {
21401
+ tile: tile
21402
+ }, isFullSize && /*#__PURE__*/React.createElement(PointsTile.Media, {
21403
+ isFullSize: true
21404
+ }), /*#__PURE__*/React.createElement(View$2, {
21405
+ style: styles.container
21406
+ }, !isFullSize && /*#__PURE__*/React.createElement(PointsTile.Media, {
21407
+ isFullSize: false
21408
+ }), /*#__PURE__*/React.createElement(Column, {
21409
+ style: styles.contentContainer
21410
+ }, /*#__PURE__*/React.createElement(PointsTile.Title, null), /*#__PURE__*/React.createElement(PointsTile.Points, null))));
22881
21411
  };
22882
21412
  /**
22883
21413
  * The PointsTile component with subcomponents attached.
@@ -22942,22 +21472,20 @@ var RewardCategoryHeader = function () {
22942
21472
  _c = _a.name,
22943
21473
  name = _c === void 0 ? '' : _c;
22944
21474
  if (!showName || !name) return null;
22945
- return jsxRuntimeExports.jsx(View$2, {
21475
+ return /*#__PURE__*/React.createElement(View$2, {
22946
21476
  style: [styles.header, {
22947
21477
  backgroundColor: theme.primary
22948
21478
  }],
22949
21479
  testID: "reward-category-header",
22950
21480
  accessibilityRole: "header",
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
- });
21481
+ accessibilityLabel: "Reward category: ".concat(name)
21482
+ }, /*#__PURE__*/React.createElement(Text, {
21483
+ style: [styles.headerText, {
21484
+ color: theme.primaryText
21485
+ }],
21486
+ ellipsizeMode: "tail",
21487
+ numberOfLines: 1
21488
+ }, name));
22961
21489
  };
22962
21490
 
22963
21491
  /**
@@ -22974,7 +21502,7 @@ var RewardCategoryMedia = function () {
22974
21502
  _b = _a.name,
22975
21503
  name = _b === void 0 ? 'Reward' : _b;
22976
21504
  if (!artworkUrl) return null;
22977
- return jsxRuntimeExports.jsx(ProgressiveImage, {
21505
+ return /*#__PURE__*/React.createElement(ProgressiveImage, {
22978
21506
  testID: "reward-category-media",
22979
21507
  source: {
22980
21508
  uri: artworkUrl
@@ -22995,10 +21523,9 @@ var RewardCategoryMedia = function () {
22995
21523
  var RewardCategoryTileRoot = function (_a) {
22996
21524
  var tile = _a.tile;
22997
21525
  if (!tile || !tile.active || !tile.configuration) return null;
22998
- return jsxRuntimeExports.jsxs(BaseTile, {
22999
- tile: tile,
23000
- children: [jsxRuntimeExports.jsx(RewardCategoryTile.Header, {}), jsxRuntimeExports.jsx(RewardCategoryTile.Media, {})]
23001
- });
21526
+ return /*#__PURE__*/React.createElement(BaseTile, {
21527
+ tile: tile
21528
+ }, /*#__PURE__*/React.createElement(RewardCategoryTile.Header, null), /*#__PURE__*/React.createElement(RewardCategoryTile.Media, null));
23002
21529
  };
23003
21530
  /**
23004
21531
  * The RewardCategoryTile component with subcomponents attached.
@@ -23017,7 +21544,7 @@ var RewardCategoryTile$1 = withTileFetching(RewardCategoryTile);
23017
21544
  var RewardTileChevron = function () {
23018
21545
  var _a;
23019
21546
  var theme = useWllSdk().theme;
23020
- return jsxRuntimeExports.jsx(Icon, {
21547
+ return /*#__PURE__*/React.createElement(Icon, {
23021
21548
  name: "ChevronRight",
23022
21549
  color: ((_a = theme === null || theme === void 0 ? void 0 : theme.derivedSurfaceText) === null || _a === void 0 ? void 0 : _a[20]) || '#000000',
23023
21550
  accessibilityRole: "image",
@@ -23096,19 +21623,18 @@ var RewardTileMedia = function (_a) {
23096
21623
  var containerStyle = {
23097
21624
  flexBasis: isArtworkOnly ? '100%' : '50%'
23098
21625
  };
23099
- return jsxRuntimeExports.jsx(View$2, {
21626
+ return /*#__PURE__*/React.createElement(View$2, {
23100
21627
  style: [styles.imageContainer, containerStyle],
23101
21628
  testID: "reward-tile-media",
23102
21629
  accessibilityRole: "image",
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
- });
21630
+ accessibilityLabel: "Reward image for ".concat(name)
21631
+ }, /*#__PURE__*/React.createElement(ProgressiveImage, {
21632
+ source: {
21633
+ uri: artworkUrl
21634
+ },
21635
+ style: styles.image,
21636
+ alt: "Reward image for ".concat(name)
21637
+ }));
23112
21638
  };
23113
21639
 
23114
21640
  /**
@@ -23134,30 +21660,25 @@ var RewardTilePoints = function () {
23134
21660
  if (!showPrice || price === undefined || price === 0) return null;
23135
21661
  var calculatedPoints = applyMultiplier(price, pointsMultiplier);
23136
21662
  var accessibilityLabel = getPointsLabel('Reward points:', calculatedPoints, pointsPrefix, pointsSuffix);
23137
- return jsxRuntimeExports.jsx(View$2, {
21663
+ return /*#__PURE__*/React.createElement(View$2, {
23138
21664
  testID: "reward-tile-points",
23139
21665
  accessibilityRole: "text",
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
- });
21666
+ accessibilityLabel: accessibilityLabel
21667
+ }, /*#__PURE__*/React.createElement(Row, {
21668
+ align: "center",
21669
+ justify: "start",
21670
+ style: {
21671
+ marginTop: 8
21672
+ }
21673
+ }, pointsPrefix ? /*#__PURE__*/React.createElement(Text, {
21674
+ variant: "caption"
21675
+ }, pointsPrefix) : null, /*#__PURE__*/React.createElement(Text, {
21676
+ variant: "caption",
21677
+ testID: "reward-tile-points-value"
21678
+ }, calculatedPoints), pointsSuffix ? (/*#__PURE__*/React.createElement(Text, {
21679
+ variant: "caption",
21680
+ style: styles.suffix
21681
+ }, pointsSuffix)) : null));
23161
21682
  };
23162
21683
 
23163
21684
  /**
@@ -23170,13 +21691,12 @@ var RewardTileSummary = function () {
23170
21691
  if (!isContextValid(tileContext)) return null;
23171
21692
  var summary = tileContext.configuration.summary;
23172
21693
  if (!summary) return null;
23173
- return jsxRuntimeExports.jsx(Text, {
21694
+ return /*#__PURE__*/React.createElement(Text, {
23174
21695
  variant: "body",
23175
21696
  accessibilityRole: "text",
23176
21697
  accessibilityLabel: summary,
23177
- testID: "reward-tile-summary",
23178
- children: summary
23179
- });
21698
+ testID: "reward-tile-summary"
21699
+ }, summary);
23180
21700
  };
23181
21701
 
23182
21702
  /**
@@ -23189,15 +21709,14 @@ var RewardTileTitle = function () {
23189
21709
  if (!isContextValid(tileContext)) return null;
23190
21710
  var name = tileContext.configuration.name;
23191
21711
  if (!name) return null;
23192
- return jsxRuntimeExports.jsx(Text, {
21712
+ return /*#__PURE__*/React.createElement(Text, {
23193
21713
  variant: "title",
23194
21714
  ellipsizeMode: "tail",
23195
21715
  numberOfLines: 1,
23196
21716
  accessibilityRole: "header",
23197
21717
  accessibilityLabel: "Reward title: ".concat(name),
23198
- testID: "reward-tile-title",
23199
- children: name
23200
- });
21718
+ testID: "reward-tile-title"
21719
+ }, name);
23201
21720
  };
23202
21721
 
23203
21722
  /**
@@ -23222,19 +21741,15 @@ var RewardTileRoot = function (_a) {
23222
21741
  var styles = useRewardTileStyles();
23223
21742
  if (!tile || tile.tileHeight !== exports.TileHeight.Full || !tile.active || !tile.configuration) return null;
23224
21743
  var configuration = tile.configuration;
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
- });
21744
+ return /*#__PURE__*/React.createElement(BaseTile, {
21745
+ tile: tile
21746
+ }, /*#__PURE__*/React.createElement(RewardTile.Media, {
21747
+ isArtworkOnly: isArtworkOnly(configuration)
21748
+ }), /*#__PURE__*/React.createElement(Layout, null, /*#__PURE__*/React.createElement(Row, {
21749
+ justify: "between",
21750
+ align: "center",
21751
+ style: styles.header
21752
+ }, /*#__PURE__*/React.createElement(RewardTile.Title, null), /*#__PURE__*/React.createElement(RewardTile.Chevron, null)), /*#__PURE__*/React.createElement(RewardTile.Summary, null), /*#__PURE__*/React.createElement(RewardTile.Points, null)));
23238
21753
  };
23239
21754
  /**
23240
21755
  * The RewardTile component with subcomponents attached.
@@ -23284,9 +21799,7 @@ var useTierTileStyles = function () {
23284
21799
  resizeMode: 'cover'
23285
21800
  },
23286
21801
  name: {
23287
- marginBottom: 0,
23288
- numberOfLines: 1,
23289
- ellipsizeMode: 'tail'
21802
+ marginBottom: 0
23290
21803
  }
23291
21804
  });
23292
21805
  };
@@ -23298,15 +21811,15 @@ var TierTileInner = function (_a) {
23298
21811
  var tier = configuration.tier;
23299
21812
  var isHalfSize = useTileSize(tile).isHalfSize;
23300
21813
  if (!tier || Array.isArray(tier)) {
23301
- return jsxRuntimeExports.jsx(TierTile.Empty, {
21814
+ return /*#__PURE__*/React__namespace.createElement(TierTile.Empty, {
23302
21815
  tile: tile
23303
21816
  });
23304
21817
  }
23305
- return isHalfSize ? jsxRuntimeExports.jsx(TierTile.Half, {
21818
+ return isHalfSize ? (/*#__PURE__*/React__namespace.createElement(TierTile.Half, {
23306
21819
  tile: tile
23307
- }) : jsxRuntimeExports.jsx(TierTile.Full, {
21820
+ })) : (/*#__PURE__*/React__namespace.createElement(TierTile.Full, {
23308
21821
  tile: tile
23309
- });
21822
+ }));
23310
21823
  };
23311
21824
  var TierTileFull = function (_a) {
23312
21825
  var tile = _a.tile;
@@ -23318,36 +21831,28 @@ var TierTileFull = function (_a) {
23318
21831
  artworkUrl = _b.artworkUrl,
23319
21832
  name = _b.name,
23320
21833
  description = _b.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
- });
21834
+ return /*#__PURE__*/React__namespace.createElement(BaseTile, {
21835
+ tile: tile
21836
+ }, artworkUrl && (/*#__PURE__*/React__namespace.createElement(View$2, {
21837
+ style: styles.header
21838
+ }, /*#__PURE__*/React__namespace.createElement(ProgressiveImage, {
21839
+ source: {
21840
+ uri: artworkUrl
21841
+ },
21842
+ style: styles.image,
21843
+ resizeMode: "center"
21844
+ }))), /*#__PURE__*/React__namespace.createElement(Layout, {
21845
+ align: "stretch",
21846
+ justify: artworkUrl ? 'start' : 'center'
21847
+ }, /*#__PURE__*/React__namespace.createElement(View$2, null, title && (/*#__PURE__*/React__namespace.createElement(Text, {
21848
+ variant: "eyebrow",
21849
+ style: styles.title
21850
+ }, title)), name && (/*#__PURE__*/React__namespace.createElement(Text, {
21851
+ variant: "title",
21852
+ style: styles.title
21853
+ }, name)), description && /*#__PURE__*/React__namespace.createElement(Text, {
21854
+ variant: "body"
21855
+ }, description))));
23351
21856
  };
23352
21857
  var TierTileHalf = function (_a) {
23353
21858
  var tile = _a.tile;
@@ -23359,42 +21864,36 @@ var TierTileHalf = function (_a) {
23359
21864
  var _c = tier || {},
23360
21865
  artworkUrl = _c.artworkUrl,
23361
21866
  name = _c.name;
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
- });
21867
+ return /*#__PURE__*/React__namespace.createElement(BaseTile, {
21868
+ tile: tile
21869
+ }, /*#__PURE__*/React__namespace.createElement(Layout, {
21870
+ align: "center",
21871
+ justify: "between",
21872
+ direction: "row",
21873
+ style: {
21874
+ paddingTop: 16
21875
+ }
21876
+ }, /*#__PURE__*/React__namespace.createElement(View$2, {
21877
+ style: {
21878
+ flex: 1,
21879
+ flexShrink: 1
21880
+ }
21881
+ }, title && (/*#__PURE__*/React__namespace.createElement(Text, {
21882
+ variant: "eyebrow",
21883
+ style: styles.title
21884
+ }, title)), name && (/*#__PURE__*/React__namespace.createElement(Text, {
21885
+ variant: "title",
21886
+ style: styles.name,
21887
+ numberOfLines: 2
21888
+ }, name))), artworkUrl && (/*#__PURE__*/React__namespace.createElement(View$2, {
21889
+ style: styles.smallImageContainer
21890
+ }, /*#__PURE__*/React__namespace.createElement(Image$2, {
21891
+ source: {
21892
+ uri: artworkUrl
21893
+ },
21894
+ style: styles.smallImage,
21895
+ resizeMode: "contain"
21896
+ })))));
23398
21897
  };
23399
21898
  // Empty state tile
23400
21899
  var TierTileEmpty = function (_a) {
@@ -23406,63 +21905,49 @@ var TierTileEmpty = function (_a) {
23406
21905
  emptyArtworkUrl = configuration.emptyArtworkUrl;
23407
21906
  var isHalfSize = useTileSize(tile).isHalfSize;
23408
21907
  if (isHalfSize) {
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
- });
21908
+ return /*#__PURE__*/React__namespace.createElement(BaseTile, {
21909
+ tile: tile
21910
+ }, /*#__PURE__*/React__namespace.createElement(Layout, {
21911
+ align: "center",
21912
+ justify: "between",
21913
+ direction: "row",
21914
+ style: {
21915
+ paddingTop: 16
21916
+ }
21917
+ }, /*#__PURE__*/React__namespace.createElement(FullFlex, null, title && (/*#__PURE__*/React__namespace.createElement(Text, {
21918
+ variant: "title",
21919
+ style: styles.title
21920
+ }, title)), emptyDescription && /*#__PURE__*/React__namespace.createElement(Text, {
21921
+ variant: "body"
21922
+ }, emptyDescription)), emptyArtworkUrl && (/*#__PURE__*/React__namespace.createElement(View$2, {
21923
+ style: styles.smallImageContainer
21924
+ }, /*#__PURE__*/React__namespace.createElement(Image$2, {
21925
+ source: {
21926
+ uri: emptyArtworkUrl
21927
+ },
21928
+ style: styles.smallImage,
21929
+ resizeMode: "contain"
21930
+ })))));
23439
21931
  }
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
- });
21932
+ return /*#__PURE__*/React__namespace.createElement(BaseTile, {
21933
+ tile: tile
21934
+ }, emptyArtworkUrl && (/*#__PURE__*/React__namespace.createElement(View$2, {
21935
+ style: styles.header
21936
+ }, /*#__PURE__*/React__namespace.createElement(ProgressiveImage, {
21937
+ source: {
21938
+ uri: emptyArtworkUrl
21939
+ },
21940
+ style: styles.image,
21941
+ resizeMode: "center"
21942
+ }))), /*#__PURE__*/React__namespace.createElement(Layout, {
21943
+ align: "stretch",
21944
+ justify: "center"
21945
+ }, /*#__PURE__*/React__namespace.createElement(Layout, null, title && (/*#__PURE__*/React__namespace.createElement(Text, {
21946
+ variant: "title",
21947
+ style: styles.title
21948
+ }, title)), emptyDescription && /*#__PURE__*/React__namespace.createElement(Text, {
21949
+ variant: "body"
21950
+ }, emptyDescription))));
23466
21951
  };
23467
21952
  var TierTile = TierTileInner;
23468
21953
  TierTile.Full = TierTileFull;
@@ -23476,22 +21961,21 @@ var TILE_COMPONENTS = (_a = {}, _a[exports.TileType.Content] = ContentTile$1, _a
23476
21961
  */
23477
21962
  var TileContainer = function (_a) {
23478
21963
  var tiles = _a.tiles;
23479
- return jsxRuntimeExports.jsx(View$2, {
21964
+ return /*#__PURE__*/React.createElement(View$2, {
23480
21965
  style: styles.container,
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
- });
21966
+ testID: "tile-container"
21967
+ }, tiles.map(function (tile, index) {
21968
+ var TileComponent = TILE_COMPONENTS[tile.type];
21969
+ var isHalfSize = useTileSize(tile).isHalfSize;
21970
+ return /*#__PURE__*/React.createElement(View$2, {
21971
+ key: tile.id,
21972
+ style: [styles.tileContainer, isHalfSize && styles.halfTileContainer, index > 0 && {
21973
+ marginTop: GRID_GAP
21974
+ }]
21975
+ }, TileComponent ? /*#__PURE__*/React.createElement(TileComponent, {
21976
+ tile: tile
21977
+ }) : null);
21978
+ }));
23495
21979
  };
23496
21980
  var styles = StyleSheet$1.create({
23497
21981
  container: {