@wlloyalty/wll-react-sdk 1.4.4 → 1.4.6

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.
Files changed (76) hide show
  1. package/dist/index.d.ts +56 -37
  2. package/dist/native.js +535 -1421
  3. package/dist/native.js.map +1 -1
  4. package/dist/types/components/atoms/BaseTile/base-tile-body.d.ts +3 -2
  5. package/dist/types/components/atoms/BaseTile/base-tile-content.d.ts +3 -2
  6. package/dist/types/components/atoms/BaseTile/base-tile-header.d.ts +3 -2
  7. package/dist/types/components/atoms/BaseTile/base-tile-media.d.ts +3 -2
  8. package/dist/types/components/atoms/BaseTile/base-tile-title.d.ts +3 -2
  9. package/dist/types/components/atoms/BaseTile/index.d.ts +8 -7
  10. package/dist/types/components/atoms/Button/index.d.ts +2 -1
  11. package/dist/types/components/atoms/Chip/Chip.spec.d.ts +1 -0
  12. package/dist/types/components/atoms/Chip/Chip.stories.d.ts +7 -0
  13. package/dist/types/components/atoms/Chip/index.d.ts +17 -0
  14. package/dist/types/components/atoms/Chip/styles.d.ts +20 -0
  15. package/dist/types/components/atoms/Icon/index.d.ts +2 -1
  16. package/dist/types/components/atoms/Indicator/index.d.ts +2 -1
  17. package/dist/types/components/atoms/LoadingIndicator/index.d.ts +2 -1
  18. package/dist/types/components/atoms/Primatives/Column.d.ts +1 -1
  19. package/dist/types/components/atoms/Primatives/FullFlex.d.ts +1 -1
  20. package/dist/types/components/atoms/Primatives/Layout.d.ts +1 -1
  21. package/dist/types/components/atoms/Primatives/Row.d.ts +1 -1
  22. package/dist/types/components/atoms/Primatives/Spacer.d.ts +2 -1
  23. package/dist/types/components/atoms/ProgressBar/index.d.ts +2 -1
  24. package/dist/types/components/atoms/ProgressiveImage/index.d.ts +2 -1
  25. package/dist/types/components/atoms/Skeleton/index.d.ts +2 -1
  26. package/dist/types/components/atoms/SkeletonTile/index.d.ts +2 -1
  27. package/dist/types/components/atoms/Text/index.d.ts +4 -3
  28. package/dist/types/components/atoms/TileContainer/index.d.ts +2 -1
  29. package/dist/types/components/atoms/index.d.ts +1 -0
  30. package/dist/types/components/molecules/Carousel/index.d.ts +2 -1
  31. package/dist/types/components/molecules/CarouselNavButton/index.d.ts +2 -1
  32. package/dist/types/components/molecules/ProgressIndicator/index.d.ts +2 -1
  33. package/dist/types/components/molecules/SectionHeader/index.d.ts +2 -1
  34. package/dist/types/components/organisms/BadgeTile/badge-tile-date-earned.d.ts +3 -2
  35. package/dist/types/components/organisms/BadgeTile/badge-tile-description.d.ts +3 -2
  36. package/dist/types/components/organisms/BadgeTile/badge-tile-media.d.ts +2 -2
  37. package/dist/types/components/organisms/BadgeTile/badge-tile-status.d.ts +3 -2
  38. package/dist/types/components/organisms/BadgeTile/badge-tile-title.d.ts +3 -2
  39. package/dist/types/components/organisms/BadgeTile/index.d.ts +6 -6
  40. package/dist/types/components/organisms/BannerTile/banner-tile-cta.d.ts +3 -2
  41. package/dist/types/components/organisms/BannerTile/banner-tile-description.d.ts +3 -2
  42. package/dist/types/components/organisms/BannerTile/banner-tile-media.d.ts +3 -2
  43. package/dist/types/components/organisms/BannerTile/banner-tile-title.d.ts +3 -2
  44. package/dist/types/components/organisms/BannerTile/index.d.ts +5 -5
  45. package/dist/types/components/organisms/ContentTile/content-tile-chevron.d.ts +2 -1
  46. package/dist/types/components/organisms/ContentTile/content-tile-media.d.ts +2 -1
  47. package/dist/types/components/organisms/ContentTile/content-tile-summary.d.ts +2 -1
  48. package/dist/types/components/organisms/ContentTile/content-tile-title.d.ts +2 -1
  49. package/dist/types/components/organisms/ContentTile/index.d.ts +5 -5
  50. package/dist/types/components/organisms/Group/index.d.ts +6 -6
  51. package/dist/types/components/organisms/PointsTile/index.d.ts +5 -5
  52. package/dist/types/components/organisms/PointsTile/points-tile-chevron.d.ts +3 -2
  53. package/dist/types/components/organisms/PointsTile/points-tile-formatted-points.d.ts +3 -2
  54. package/dist/types/components/organisms/PointsTile/points-tile-media.d.ts +3 -2
  55. package/dist/types/components/organisms/PointsTile/points-tile-title.d.ts +3 -2
  56. package/dist/types/components/organisms/RewardCategoryTile/index.d.ts +3 -3
  57. package/dist/types/components/organisms/RewardCategoryTile/reward-category-header.d.ts +3 -2
  58. package/dist/types/components/organisms/RewardCategoryTile/reward-category-media.d.ts +3 -2
  59. package/dist/types/components/organisms/RewardTile/index.d.ts +6 -6
  60. package/dist/types/components/organisms/RewardTile/reward-tile-chevron.d.ts +3 -2
  61. package/dist/types/components/organisms/RewardTile/reward-tile-media.d.ts +3 -2
  62. package/dist/types/components/organisms/RewardTile/reward-tile-points.d.ts +3 -2
  63. package/dist/types/components/organisms/RewardTile/reward-tile-summary.d.ts +3 -2
  64. package/dist/types/components/organisms/RewardTile/reward-tile-title.d.ts +3 -2
  65. package/dist/types/components/organisms/RoundupTile/index.d.ts +5 -5
  66. package/dist/types/components/organisms/RoundupTile/roundup-tile-chevron.d.ts +3 -2
  67. package/dist/types/components/organisms/RoundupTile/roundup-tile-formatted-points.d.ts +3 -2
  68. package/dist/types/components/organisms/RoundupTile/roundup-tile-media.d.ts +3 -2
  69. package/dist/types/components/organisms/RoundupTile/roundup-tile-title.d.ts +3 -2
  70. package/dist/types/components/organisms/Section/index.d.ts +2 -2
  71. package/dist/types/context/WllSdkContext.d.ts +2 -1
  72. package/dist/types/types/tile.d.ts +5 -0
  73. package/dist/types/utils/storybookHelpers.d.ts +1 -1
  74. package/dist/web.js +241 -135
  75. package/dist/web.js.map +1 -1
  76. package/package.json +12 -11
package/dist/native.js CHANGED
@@ -27,26 +27,47 @@ var LucideReactIcons__namespace = /*#__PURE__*/_interopNamespaceDefault(LucideRe
27
27
 
28
28
  var jsxRuntime = {exports: {}};
29
29
 
30
- var reactJsxRuntime_production_min = {};
30
+ var reactJsxRuntime_production = {};
31
31
 
32
32
  /**
33
33
  * @license React
34
- * react-jsx-runtime.production.min.js
34
+ * react-jsx-runtime.production.js
35
35
  *
36
- * Copyright (c) Facebook, Inc. and its affiliates.
36
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
37
37
  *
38
38
  * This source code is licensed under the MIT license found in the
39
39
  * LICENSE file in the root directory of this source tree.
40
40
  */
41
41
 
42
- var hasRequiredReactJsxRuntime_production_min;
43
-
44
- function requireReactJsxRuntime_production_min () {
45
- if (hasRequiredReactJsxRuntime_production_min) return reactJsxRuntime_production_min;
46
- hasRequiredReactJsxRuntime_production_min = 1;
47
- 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};
48
- 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;
49
- return reactJsxRuntime_production_min;
42
+ var hasRequiredReactJsxRuntime_production;
43
+
44
+ function requireReactJsxRuntime_production () {
45
+ if (hasRequiredReactJsxRuntime_production) return reactJsxRuntime_production;
46
+ hasRequiredReactJsxRuntime_production = 1;
47
+ var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
48
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
49
+ function jsxProd(type, config, maybeKey) {
50
+ var key = null;
51
+ void 0 !== maybeKey && (key = "" + maybeKey);
52
+ void 0 !== config.key && (key = "" + config.key);
53
+ if ("key" in config) {
54
+ maybeKey = {};
55
+ for (var propName in config)
56
+ "key" !== propName && (maybeKey[propName] = config[propName]);
57
+ } else maybeKey = config;
58
+ config = maybeKey.ref;
59
+ return {
60
+ $$typeof: REACT_ELEMENT_TYPE,
61
+ type: type,
62
+ key: key,
63
+ ref: void 0 !== config ? config : null,
64
+ props: maybeKey
65
+ };
66
+ }
67
+ reactJsxRuntime_production.Fragment = REACT_FRAGMENT_TYPE;
68
+ reactJsxRuntime_production.jsx = jsxProd;
69
+ reactJsxRuntime_production.jsxs = jsxProd;
70
+ return reactJsxRuntime_production;
50
71
  }
51
72
 
52
73
  var reactJsxRuntime_development = {};
@@ -55,7 +76,7 @@ var reactJsxRuntime_development = {};
55
76
  * @license React
56
77
  * react-jsx-runtime.development.js
57
78
  *
58
- * Copyright (c) Facebook, Inc. and its affiliates.
79
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
59
80
  *
60
81
  * This source code is licensed under the MIT license found in the
61
82
  * LICENSE file in the root directory of this source tree.
@@ -66,1332 +87,357 @@ var hasRequiredReactJsxRuntime_development;
66
87
  function requireReactJsxRuntime_development () {
67
88
  if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
68
89
  hasRequiredReactJsxRuntime_development = 1;
69
-
70
- if (process.env.NODE_ENV !== "production") {
71
- (function() {
72
-
73
- var React$1 = React;
74
-
75
- // ATTENTION
76
- // When adding new symbols to this file,
77
- // Please consider also adding to 'react-devtools-shared/src/backend/ReactSymbols'
78
- // The Symbol used to tag the ReactElement-like types.
79
- var REACT_ELEMENT_TYPE = Symbol.for('react.element');
80
- var REACT_PORTAL_TYPE = Symbol.for('react.portal');
81
- var REACT_FRAGMENT_TYPE = Symbol.for('react.fragment');
82
- var REACT_STRICT_MODE_TYPE = Symbol.for('react.strict_mode');
83
- var REACT_PROFILER_TYPE = Symbol.for('react.profiler');
84
- var REACT_PROVIDER_TYPE = Symbol.for('react.provider');
85
- var REACT_CONTEXT_TYPE = Symbol.for('react.context');
86
- var REACT_FORWARD_REF_TYPE = Symbol.for('react.forward_ref');
87
- var REACT_SUSPENSE_TYPE = Symbol.for('react.suspense');
88
- var REACT_SUSPENSE_LIST_TYPE = Symbol.for('react.suspense_list');
89
- var REACT_MEMO_TYPE = Symbol.for('react.memo');
90
- var REACT_LAZY_TYPE = Symbol.for('react.lazy');
91
- var REACT_OFFSCREEN_TYPE = Symbol.for('react.offscreen');
92
- var MAYBE_ITERATOR_SYMBOL = Symbol.iterator;
93
- var FAUX_ITERATOR_SYMBOL = '@@iterator';
94
- function getIteratorFn(maybeIterable) {
95
- if (maybeIterable === null || typeof maybeIterable !== 'object') {
96
- return null;
97
- }
98
-
99
- var maybeIterator = MAYBE_ITERATOR_SYMBOL && maybeIterable[MAYBE_ITERATOR_SYMBOL] || maybeIterable[FAUX_ITERATOR_SYMBOL];
100
-
101
- if (typeof maybeIterator === 'function') {
102
- return maybeIterator;
103
- }
104
-
105
- return null;
106
- }
107
-
108
- var ReactSharedInternals = React$1.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;
109
-
110
- function error(format) {
111
- {
112
- {
113
- for (var _len2 = arguments.length, args = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
114
- args[_key2 - 1] = arguments[_key2];
90
+ "production" !== process.env.NODE_ENV &&
91
+ (function () {
92
+ function getComponentNameFromType(type) {
93
+ if (null == type) return null;
94
+ if ("function" === typeof type)
95
+ return type.$$typeof === REACT_CLIENT_REFERENCE
96
+ ? null
97
+ : type.displayName || type.name || null;
98
+ if ("string" === typeof type) return type;
99
+ switch (type) {
100
+ case REACT_FRAGMENT_TYPE:
101
+ return "Fragment";
102
+ case REACT_PROFILER_TYPE:
103
+ return "Profiler";
104
+ case REACT_STRICT_MODE_TYPE:
105
+ return "StrictMode";
106
+ case REACT_SUSPENSE_TYPE:
107
+ return "Suspense";
108
+ case REACT_SUSPENSE_LIST_TYPE:
109
+ return "SuspenseList";
110
+ case REACT_ACTIVITY_TYPE:
111
+ return "Activity";
115
112
  }
116
-
117
- printWarning('error', format, args);
118
- }
119
- }
120
- }
121
-
122
- function printWarning(level, format, args) {
123
- // When changing this logic, you might want to also
124
- // update consoleWithStackDev.www.js as well.
125
- {
126
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
127
- var stack = ReactDebugCurrentFrame.getStackAddendum();
128
-
129
- if (stack !== '') {
130
- format += '%s';
131
- args = args.concat([stack]);
132
- } // eslint-disable-next-line react-internal/safe-string-coercion
133
-
134
-
135
- var argsWithFormat = args.map(function (item) {
136
- return String(item);
137
- }); // Careful: RN currently depends on this prefix
138
-
139
- argsWithFormat.unshift('Warning: ' + format); // We intentionally don't use spread (or .apply) directly because it
140
- // breaks IE9: https://github.com/facebook/react/issues/13610
141
- // eslint-disable-next-line react-internal/no-production-logging
142
-
143
- Function.prototype.apply.call(console[level], console, argsWithFormat);
144
- }
145
- }
146
-
147
- // -----------------------------------------------------------------------------
148
-
149
- var enableScopeAPI = false; // Experimental Create Event Handle API.
150
- var enableCacheElement = false;
151
- var enableTransitionTracing = false; // No known bugs, but needs performance testing
152
-
153
- var enableLegacyHidden = false; // Enables unstable_avoidThisFallback feature in Fiber
154
- // stuff. Intended to enable React core members to more easily debug scheduling
155
- // issues in DEV builds.
156
-
157
- var enableDebugTracing = false; // Track which Fiber(s) schedule render work.
158
-
159
- var REACT_MODULE_REFERENCE;
160
-
161
- {
162
- REACT_MODULE_REFERENCE = Symbol.for('react.module.reference');
163
- }
164
-
165
- function isValidElementType(type) {
166
- if (typeof type === 'string' || typeof type === 'function') {
167
- return true;
168
- } // Note: typeof might be other than 'symbol' or 'number' (e.g. if it's a polyfill).
169
-
170
-
171
- 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 ) {
172
- return true;
173
- }
174
-
175
- if (typeof type === 'object' && type !== null) {
176
- 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
177
- // types supported by any Flight configuration anywhere since
178
- // we don't know which Flight build this will end up being used
179
- // with.
180
- type.$$typeof === REACT_MODULE_REFERENCE || type.getModuleId !== undefined) {
181
- return true;
182
- }
183
- }
184
-
185
- return false;
186
- }
187
-
188
- function getWrappedName(outerType, innerType, wrapperName) {
189
- var displayName = outerType.displayName;
190
-
191
- if (displayName) {
192
- return displayName;
193
- }
194
-
195
- var functionName = innerType.displayName || innerType.name || '';
196
- return functionName !== '' ? wrapperName + "(" + functionName + ")" : wrapperName;
197
- } // Keep in sync with react-reconciler/getComponentNameFromFiber
198
-
199
-
200
- function getContextName(type) {
201
- return type.displayName || 'Context';
202
- } // Note that the reconciler package should generally prefer to use getComponentNameFromFiber() instead.
203
-
204
-
205
- function getComponentNameFromType(type) {
206
- if (type == null) {
207
- // Host root, text node or just invalid type.
208
- return null;
209
- }
210
-
211
- {
212
- if (typeof type.tag === 'number') {
213
- error('Received an unexpected object in getComponentNameFromType(). ' + 'This is likely a bug in React. Please file an issue.');
214
- }
215
- }
216
-
217
- if (typeof type === 'function') {
218
- return type.displayName || type.name || null;
219
- }
220
-
221
- if (typeof type === 'string') {
222
- return type;
223
- }
224
-
225
- switch (type) {
226
- case REACT_FRAGMENT_TYPE:
227
- return 'Fragment';
228
-
229
- case REACT_PORTAL_TYPE:
230
- return 'Portal';
231
-
232
- case REACT_PROFILER_TYPE:
233
- return 'Profiler';
234
-
235
- case REACT_STRICT_MODE_TYPE:
236
- return 'StrictMode';
237
-
238
- case REACT_SUSPENSE_TYPE:
239
- return 'Suspense';
240
-
241
- case REACT_SUSPENSE_LIST_TYPE:
242
- return 'SuspenseList';
243
-
244
- }
245
-
246
- if (typeof type === 'object') {
247
- switch (type.$$typeof) {
248
- case REACT_CONTEXT_TYPE:
249
- var context = type;
250
- return getContextName(context) + '.Consumer';
251
-
252
- case REACT_PROVIDER_TYPE:
253
- var provider = type;
254
- return getContextName(provider._context) + '.Provider';
255
-
256
- case REACT_FORWARD_REF_TYPE:
257
- return getWrappedName(type, type.render, 'ForwardRef');
258
-
259
- case REACT_MEMO_TYPE:
260
- var outerName = type.displayName || null;
261
-
262
- if (outerName !== null) {
263
- return outerName;
264
- }
265
-
266
- return getComponentNameFromType(type.type) || 'Memo';
267
-
268
- case REACT_LAZY_TYPE:
269
- {
270
- var lazyComponent = type;
271
- var payload = lazyComponent._payload;
272
- var init = lazyComponent._init;
273
-
274
- try {
275
- return getComponentNameFromType(init(payload));
276
- } catch (x) {
277
- return null;
278
- }
113
+ if ("object" === typeof type)
114
+ switch (
115
+ ("number" === typeof type.tag &&
116
+ console.error(
117
+ "Received an unexpected object in getComponentNameFromType(). This is likely a bug in React. Please file an issue."
118
+ ),
119
+ type.$$typeof)
120
+ ) {
121
+ case REACT_PORTAL_TYPE:
122
+ return "Portal";
123
+ case REACT_CONTEXT_TYPE:
124
+ return (type.displayName || "Context") + ".Provider";
125
+ case REACT_CONSUMER_TYPE:
126
+ return (type._context.displayName || "Context") + ".Consumer";
127
+ case REACT_FORWARD_REF_TYPE:
128
+ var innerType = type.render;
129
+ type = type.displayName;
130
+ type ||
131
+ ((type = innerType.displayName || innerType.name || ""),
132
+ (type = "" !== type ? "ForwardRef(" + type + ")" : "ForwardRef"));
133
+ return type;
134
+ case REACT_MEMO_TYPE:
135
+ return (
136
+ (innerType = type.displayName || null),
137
+ null !== innerType
138
+ ? innerType
139
+ : getComponentNameFromType(type.type) || "Memo"
140
+ );
141
+ case REACT_LAZY_TYPE:
142
+ innerType = type._payload;
143
+ type = type._init;
144
+ try {
145
+ return getComponentNameFromType(type(innerType));
146
+ } catch (x) {}
279
147
  }
280
-
281
- // eslint-disable-next-line no-fallthrough
148
+ return null;
282
149
  }
283
- }
284
-
285
- return null;
286
- }
287
-
288
- var assign = Object.assign;
289
-
290
- // Helpers to patch console.logs to avoid logging during side-effect free
291
- // replaying on render function. This currently only patches the object
292
- // lazily which won't cover if the log function was extracted eagerly.
293
- // We could also eagerly patch the method.
294
- var disabledDepth = 0;
295
- var prevLog;
296
- var prevInfo;
297
- var prevWarn;
298
- var prevError;
299
- var prevGroup;
300
- var prevGroupCollapsed;
301
- var prevGroupEnd;
302
-
303
- function disabledLog() {}
304
-
305
- disabledLog.__reactDisabledLog = true;
306
- function disableLogs() {
307
- {
308
- if (disabledDepth === 0) {
309
- /* eslint-disable react-internal/no-production-logging */
310
- prevLog = console.log;
311
- prevInfo = console.info;
312
- prevWarn = console.warn;
313
- prevError = console.error;
314
- prevGroup = console.group;
315
- prevGroupCollapsed = console.groupCollapsed;
316
- prevGroupEnd = console.groupEnd; // https://github.com/facebook/react/issues/19099
317
-
318
- var props = {
319
- configurable: true,
320
- enumerable: true,
321
- value: disabledLog,
322
- writable: true
323
- }; // $FlowFixMe Flow thinks console is immutable.
324
-
325
- Object.defineProperties(console, {
326
- info: props,
327
- log: props,
328
- warn: props,
329
- error: props,
330
- group: props,
331
- groupCollapsed: props,
332
- groupEnd: props
333
- });
334
- /* eslint-enable react-internal/no-production-logging */
335
- }
336
-
337
- disabledDepth++;
338
- }
339
- }
340
- function reenableLogs() {
341
- {
342
- disabledDepth--;
343
-
344
- if (disabledDepth === 0) {
345
- /* eslint-disable react-internal/no-production-logging */
346
- var props = {
347
- configurable: true,
348
- enumerable: true,
349
- writable: true
350
- }; // $FlowFixMe Flow thinks console is immutable.
351
-
352
- Object.defineProperties(console, {
353
- log: assign({}, props, {
354
- value: prevLog
355
- }),
356
- info: assign({}, props, {
357
- value: prevInfo
358
- }),
359
- warn: assign({}, props, {
360
- value: prevWarn
361
- }),
362
- error: assign({}, props, {
363
- value: prevError
364
- }),
365
- group: assign({}, props, {
366
- value: prevGroup
367
- }),
368
- groupCollapsed: assign({}, props, {
369
- value: prevGroupCollapsed
370
- }),
371
- groupEnd: assign({}, props, {
372
- value: prevGroupEnd
373
- })
374
- });
375
- /* eslint-enable react-internal/no-production-logging */
376
- }
377
-
378
- if (disabledDepth < 0) {
379
- error('disabledDepth fell below zero. ' + 'This is a bug in React. Please file an issue.');
150
+ function testStringCoercion(value) {
151
+ return "" + value;
380
152
  }
381
- }
382
- }
383
-
384
- var ReactCurrentDispatcher = ReactSharedInternals.ReactCurrentDispatcher;
385
- var prefix;
386
- function describeBuiltInComponentFrame(name, source, ownerFn) {
387
- {
388
- if (prefix === undefined) {
389
- // Extract the VM specific prefix used by each line.
153
+ function checkKeyStringCoercion(value) {
390
154
  try {
391
- throw Error();
392
- } catch (x) {
393
- var match = x.stack.trim().match(/\n( *(at )?)/);
394
- prefix = match && match[1] || '';
155
+ testStringCoercion(value);
156
+ var JSCompiler_inline_result = !1;
157
+ } catch (e) {
158
+ JSCompiler_inline_result = !0;
395
159
  }
396
- } // We use the prefix to ensure our stacks line up with native stack frames.
397
-
398
-
399
- return '\n' + prefix + name;
400
- }
401
- }
402
- var reentry = false;
403
- var componentFrameCache;
404
-
405
- {
406
- var PossiblyWeakMap = typeof WeakMap === 'function' ? WeakMap : Map;
407
- componentFrameCache = new PossiblyWeakMap();
408
- }
409
-
410
- function describeNativeComponentFrame(fn, construct) {
411
- // If something asked for a stack inside a fake render, it should get ignored.
412
- if ( !fn || reentry) {
413
- return '';
414
- }
415
-
416
- {
417
- var frame = componentFrameCache.get(fn);
418
-
419
- if (frame !== undefined) {
420
- return frame;
421
- }
422
- }
423
-
424
- var control;
425
- reentry = true;
426
- var previousPrepareStackTrace = Error.prepareStackTrace; // $FlowFixMe It does accept undefined.
427
-
428
- Error.prepareStackTrace = undefined;
429
- var previousDispatcher;
430
-
431
- {
432
- previousDispatcher = ReactCurrentDispatcher.current; // Set the dispatcher in DEV because this might be call in the render function
433
- // for warnings.
434
-
435
- ReactCurrentDispatcher.current = null;
436
- disableLogs();
437
- }
438
-
439
- try {
440
- // This should throw.
441
- if (construct) {
442
- // Something should be setting the props in the constructor.
443
- var Fake = function () {
444
- throw Error();
445
- }; // $FlowFixMe
446
-
447
-
448
- Object.defineProperty(Fake.prototype, 'props', {
449
- set: function () {
450
- // We use a throwing setter instead of frozen or non-writable props
451
- // because that won't throw in a non-strict mode function.
452
- throw Error();
453
- }
454
- });
455
-
456
- if (typeof Reflect === 'object' && Reflect.construct) {
457
- // We construct a different control for this case to include any extra
458
- // frames added by the construct call.
459
- try {
460
- Reflect.construct(Fake, []);
461
- } catch (x) {
462
- control = x;
463
- }
464
-
465
- Reflect.construct(fn, [], Fake);
466
- } else {
467
- try {
468
- Fake.call();
469
- } catch (x) {
470
- control = x;
471
- }
472
-
473
- fn.call(Fake.prototype);
160
+ if (JSCompiler_inline_result) {
161
+ JSCompiler_inline_result = console;
162
+ var JSCompiler_temp_const = JSCompiler_inline_result.error;
163
+ var JSCompiler_inline_result$jscomp$0 =
164
+ ("function" === typeof Symbol &&
165
+ Symbol.toStringTag &&
166
+ value[Symbol.toStringTag]) ||
167
+ value.constructor.name ||
168
+ "Object";
169
+ JSCompiler_temp_const.call(
170
+ JSCompiler_inline_result,
171
+ "The provided key is an unsupported type %s. This value must be coerced to a string before using it here.",
172
+ JSCompiler_inline_result$jscomp$0
173
+ );
174
+ return testStringCoercion(value);
474
175
  }
475
- } else {
176
+ }
177
+ function getTaskName(type) {
178
+ if (type === REACT_FRAGMENT_TYPE) return "<>";
179
+ if (
180
+ "object" === typeof type &&
181
+ null !== type &&
182
+ type.$$typeof === REACT_LAZY_TYPE
183
+ )
184
+ return "<...>";
476
185
  try {
477
- throw Error();
186
+ var name = getComponentNameFromType(type);
187
+ return name ? "<" + name + ">" : "<...>";
478
188
  } catch (x) {
479
- control = x;
189
+ return "<...>";
480
190
  }
481
-
482
- fn();
483
191
  }
484
- } catch (sample) {
485
- // This is inlined manually because closure doesn't do it for us.
486
- if (sample && control && typeof sample.stack === 'string') {
487
- // This extracts the first frame from the sample that isn't also in the control.
488
- // Skipping one frame that we assume is the frame that calls the two.
489
- var sampleLines = sample.stack.split('\n');
490
- var controlLines = control.stack.split('\n');
491
- var s = sampleLines.length - 1;
492
- var c = controlLines.length - 1;
493
-
494
- while (s >= 1 && c >= 0 && sampleLines[s] !== controlLines[c]) {
495
- // We expect at least one stack frame to be shared.
496
- // Typically this will be the root most one. However, stack frames may be
497
- // cut off due to maximum stack limits. In this case, one maybe cut off
498
- // earlier than the other. We assume that the sample is longer or the same
499
- // and there for cut off earlier. So we should find the root most frame in
500
- // the sample somewhere in the control.
501
- c--;
502
- }
503
-
504
- for (; s >= 1 && c >= 0; s--, c--) {
505
- // Next we find the first one that isn't the same which should be the
506
- // frame that called our sample function and the control.
507
- if (sampleLines[s] !== controlLines[c]) {
508
- // In V8, the first line is describing the message but other VMs don't.
509
- // If we're about to return the first line, and the control is also on the same
510
- // line, that's a pretty good indicator that our sample threw at same line as
511
- // the control. I.e. before we entered the sample frame. So we ignore this result.
512
- // This can happen if you passed a class to function component, or non-function.
513
- if (s !== 1 || c !== 1) {
514
- do {
515
- s--;
516
- c--; // We may still have similar intermediate frames from the construct call.
517
- // The next one that isn't the same should be our match though.
518
-
519
- if (c < 0 || sampleLines[s] !== controlLines[c]) {
520
- // V8 adds a "new" prefix for native classes. Let's remove it to make it prettier.
521
- var _frame = '\n' + sampleLines[s].replace(' at new ', ' at '); // If our component frame is labeled "<anonymous>"
522
- // but we have a user-provided "displayName"
523
- // splice it in to make the stack more readable.
524
-
525
-
526
- if (fn.displayName && _frame.includes('<anonymous>')) {
527
- _frame = _frame.replace('<anonymous>', fn.displayName);
528
- }
529
-
530
- {
531
- if (typeof fn === 'function') {
532
- componentFrameCache.set(fn, _frame);
533
- }
534
- } // Return the line we found.
535
-
536
-
537
- return _frame;
538
- }
539
- } while (s >= 1 && c >= 0);
540
- }
541
-
542
- break;
543
- }
544
- }
192
+ function getOwner() {
193
+ var dispatcher = ReactSharedInternals.A;
194
+ return null === dispatcher ? null : dispatcher.getOwner();
545
195
  }
546
- } finally {
547
- reentry = false;
548
-
549
- {
550
- ReactCurrentDispatcher.current = previousDispatcher;
551
- reenableLogs();
552
- }
553
-
554
- Error.prepareStackTrace = previousPrepareStackTrace;
555
- } // Fallback to just using the name if we couldn't make it throw.
556
-
557
-
558
- var name = fn ? fn.displayName || fn.name : '';
559
- var syntheticFrame = name ? describeBuiltInComponentFrame(name) : '';
560
-
561
- {
562
- if (typeof fn === 'function') {
563
- componentFrameCache.set(fn, syntheticFrame);
196
+ function UnknownOwner() {
197
+ return Error("react-stack-top-frame");
564
198
  }
565
- }
566
-
567
- return syntheticFrame;
568
- }
569
- function describeFunctionComponentFrame(fn, source, ownerFn) {
570
- {
571
- return describeNativeComponentFrame(fn, false);
572
- }
573
- }
574
-
575
- function shouldConstruct(Component) {
576
- var prototype = Component.prototype;
577
- return !!(prototype && prototype.isReactComponent);
578
- }
579
-
580
- function describeUnknownElementTypeFrameInDEV(type, source, ownerFn) {
581
-
582
- if (type == null) {
583
- return '';
584
- }
585
-
586
- if (typeof type === 'function') {
587
- {
588
- return describeNativeComponentFrame(type, shouldConstruct(type));
589
- }
590
- }
591
-
592
- if (typeof type === 'string') {
593
- return describeBuiltInComponentFrame(type);
594
- }
595
-
596
- switch (type) {
597
- case REACT_SUSPENSE_TYPE:
598
- return describeBuiltInComponentFrame('Suspense');
599
-
600
- case REACT_SUSPENSE_LIST_TYPE:
601
- return describeBuiltInComponentFrame('SuspenseList');
602
- }
603
-
604
- if (typeof type === 'object') {
605
- switch (type.$$typeof) {
606
- case REACT_FORWARD_REF_TYPE:
607
- return describeFunctionComponentFrame(type.render);
608
-
609
- case REACT_MEMO_TYPE:
610
- // Memo may contain any component type so we recursively resolve it.
611
- return describeUnknownElementTypeFrameInDEV(type.type, source, ownerFn);
612
-
613
- case REACT_LAZY_TYPE:
614
- {
615
- var lazyComponent = type;
616
- var payload = lazyComponent._payload;
617
- var init = lazyComponent._init;
618
-
619
- try {
620
- // Lazy may contain any component type so we recursively resolve it.
621
- return describeUnknownElementTypeFrameInDEV(init(payload), source, ownerFn);
622
- } catch (x) {}
623
- }
624
- }
625
- }
626
-
627
- return '';
628
- }
629
-
630
- var hasOwnProperty = Object.prototype.hasOwnProperty;
631
-
632
- var loggedTypeFailures = {};
633
- var ReactDebugCurrentFrame = ReactSharedInternals.ReactDebugCurrentFrame;
634
-
635
- function setCurrentlyValidatingElement(element) {
636
- {
637
- if (element) {
638
- var owner = element._owner;
639
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
640
- ReactDebugCurrentFrame.setExtraStackFrame(stack);
641
- } else {
642
- ReactDebugCurrentFrame.setExtraStackFrame(null);
643
- }
644
- }
645
- }
646
-
647
- function checkPropTypes(typeSpecs, values, location, componentName, element) {
648
- {
649
- // $FlowFixMe This is okay but Flow doesn't know it.
650
- var has = Function.call.bind(hasOwnProperty);
651
-
652
- for (var typeSpecName in typeSpecs) {
653
- if (has(typeSpecs, typeSpecName)) {
654
- var error$1 = void 0; // Prop type validation may throw. In case they do, we don't want to
655
- // fail the render phase where it didn't fail before. So we log it.
656
- // After these have been cleaned up, we'll let them throw.
657
-
658
- try {
659
- // This is intentionally an invariant that gets caught. It's the same
660
- // behavior as without this statement except with a better message.
661
- if (typeof typeSpecs[typeSpecName] !== 'function') {
662
- // eslint-disable-next-line react-internal/prod-error-codes
663
- 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`.');
664
- err.name = 'Invariant Violation';
665
- throw err;
666
- }
667
-
668
- error$1 = typeSpecs[typeSpecName](values, typeSpecName, componentName, location, null, 'SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED');
669
- } catch (ex) {
670
- error$1 = ex;
671
- }
672
-
673
- if (error$1 && !(error$1 instanceof Error)) {
674
- setCurrentlyValidatingElement(element);
675
-
676
- 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);
677
-
678
- setCurrentlyValidatingElement(null);
679
- }
680
-
681
- if (error$1 instanceof Error && !(error$1.message in loggedTypeFailures)) {
682
- // Only monitor this failure once because there tends to be a lot of the
683
- // same error.
684
- loggedTypeFailures[error$1.message] = true;
685
- setCurrentlyValidatingElement(element);
686
-
687
- error('Failed %s type: %s', location, error$1.message);
688
-
689
- setCurrentlyValidatingElement(null);
690
- }
199
+ function hasValidKey(config) {
200
+ if (hasOwnProperty.call(config, "key")) {
201
+ var getter = Object.getOwnPropertyDescriptor(config, "key").get;
202
+ if (getter && getter.isReactWarning) return !1;
691
203
  }
204
+ return void 0 !== config.key;
692
205
  }
693
- }
694
- }
695
-
696
- var isArrayImpl = Array.isArray; // eslint-disable-next-line no-redeclare
697
-
698
- function isArray(a) {
699
- return isArrayImpl(a);
700
- }
701
-
702
- /*
703
- * The `'' + value` pattern (used in in perf-sensitive code) throws for Symbol
704
- * and Temporal.* types. See https://github.com/facebook/react/pull/22064.
705
- *
706
- * The functions in this module will throw an easier-to-understand,
707
- * easier-to-debug exception with a clear errors message message explaining the
708
- * problem. (Instead of a confusing exception thrown inside the implementation
709
- * of the `value` object).
710
- */
711
- // $FlowFixMe only called in DEV, so void return is not possible.
712
- function typeName(value) {
713
- {
714
- // toStringTag is needed for namespaced types like Temporal.Instant
715
- var hasToStringTag = typeof Symbol === 'function' && Symbol.toStringTag;
716
- var type = hasToStringTag && value[Symbol.toStringTag] || value.constructor.name || 'Object';
717
- return type;
718
- }
719
- } // $FlowFixMe only called in DEV, so void return is not possible.
720
-
721
-
722
- function willCoercionThrow(value) {
723
- {
724
- try {
725
- testStringCoercion(value);
726
- return false;
727
- } catch (e) {
728
- return true;
206
+ function defineKeyPropWarningGetter(props, displayName) {
207
+ function warnAboutAccessingKey() {
208
+ specialPropKeyWarningShown ||
209
+ ((specialPropKeyWarningShown = !0),
210
+ console.error(
211
+ "%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://react.dev/link/special-props)",
212
+ displayName
213
+ ));
214
+ }
215
+ warnAboutAccessingKey.isReactWarning = !0;
216
+ Object.defineProperty(props, "key", {
217
+ get: warnAboutAccessingKey,
218
+ configurable: !0
219
+ });
729
220
  }
730
- }
731
- }
732
-
733
- function testStringCoercion(value) {
734
- // If you ended up here by following an exception call stack, here's what's
735
- // happened: you supplied an object or symbol value to React (as a prop, key,
736
- // DOM attribute, CSS property, string ref, etc.) and when React tried to
737
- // coerce it to a string using `'' + value`, an exception was thrown.
738
- //
739
- // The most common types that will cause this exception are `Symbol` instances
740
- // and Temporal objects like `Temporal.Instant`. But any object that has a
741
- // `valueOf` or `[Symbol.toPrimitive]` method that throws will also cause this
742
- // exception. (Library authors do this to prevent users from using built-in
743
- // numeric operators like `+` or comparison operators like `>=` because custom
744
- // methods are needed to perform accurate arithmetic or comparison.)
745
- //
746
- // To fix the problem, coerce this object or symbol value to a string before
747
- // passing it to React. The most reliable way is usually `String(value)`.
748
- //
749
- // To find which value is throwing, check the browser or debugger console.
750
- // Before this exception was thrown, there should be `console.error` output
751
- // that shows the type (Symbol, Temporal.PlainDate, etc.) that caused the
752
- // problem and how that type was used: key, atrribute, input value prop, etc.
753
- // In most cases, this console output also shows the component and its
754
- // ancestor components where the exception happened.
755
- //
756
- // eslint-disable-next-line react-internal/safe-string-coercion
757
- return '' + value;
758
- }
759
- function checkKeyStringCoercion(value) {
760
- {
761
- if (willCoercionThrow(value)) {
762
- error('The provided key is an unsupported type %s.' + ' This value must be coerced to a string before before using it here.', typeName(value));
763
-
764
- return testStringCoercion(value); // throw (to help callers find troubleshooting comments)
221
+ function elementRefGetterWithDeprecationWarning() {
222
+ var componentName = getComponentNameFromType(this.type);
223
+ didWarnAboutElementRef[componentName] ||
224
+ ((didWarnAboutElementRef[componentName] = !0),
225
+ console.error(
226
+ "Accessing element.ref was removed in React 19. ref is now a regular prop. It will be removed from the JSX Element type in a future release."
227
+ ));
228
+ componentName = this.props.ref;
229
+ return void 0 !== componentName ? componentName : null;
765
230
  }
766
- }
767
- }
768
-
769
- var ReactCurrentOwner = ReactSharedInternals.ReactCurrentOwner;
770
- var RESERVED_PROPS = {
771
- key: true,
772
- ref: true,
773
- __self: true,
774
- __source: true
775
- };
776
- var specialPropKeyWarningShown;
777
- var specialPropRefWarningShown;
778
- var didWarnAboutStringRefs;
779
-
780
- {
781
- didWarnAboutStringRefs = {};
782
- }
783
-
784
- function hasValidRef(config) {
785
- {
786
- if (hasOwnProperty.call(config, 'ref')) {
787
- var getter = Object.getOwnPropertyDescriptor(config, 'ref').get;
788
-
789
- if (getter && getter.isReactWarning) {
790
- return false;
791
- }
231
+ function ReactElement(
232
+ type,
233
+ key,
234
+ self,
235
+ source,
236
+ owner,
237
+ props,
238
+ debugStack,
239
+ debugTask
240
+ ) {
241
+ self = props.ref;
242
+ type = {
243
+ $$typeof: REACT_ELEMENT_TYPE,
244
+ type: type,
245
+ key: key,
246
+ props: props,
247
+ _owner: owner
248
+ };
249
+ null !== (void 0 !== self ? self : null)
250
+ ? Object.defineProperty(type, "ref", {
251
+ enumerable: !1,
252
+ get: elementRefGetterWithDeprecationWarning
253
+ })
254
+ : Object.defineProperty(type, "ref", { enumerable: !1, value: null });
255
+ type._store = {};
256
+ Object.defineProperty(type._store, "validated", {
257
+ configurable: !1,
258
+ enumerable: !1,
259
+ writable: !0,
260
+ value: 0
261
+ });
262
+ Object.defineProperty(type, "_debugInfo", {
263
+ configurable: !1,
264
+ enumerable: !1,
265
+ writable: !0,
266
+ value: null
267
+ });
268
+ Object.defineProperty(type, "_debugStack", {
269
+ configurable: !1,
270
+ enumerable: !1,
271
+ writable: !0,
272
+ value: debugStack
273
+ });
274
+ Object.defineProperty(type, "_debugTask", {
275
+ configurable: !1,
276
+ enumerable: !1,
277
+ writable: !0,
278
+ value: debugTask
279
+ });
280
+ Object.freeze && (Object.freeze(type.props), Object.freeze(type));
281
+ return type;
792
282
  }
793
- }
794
-
795
- return config.ref !== undefined;
796
- }
797
-
798
- function hasValidKey(config) {
799
- {
800
- if (hasOwnProperty.call(config, 'key')) {
801
- var getter = Object.getOwnPropertyDescriptor(config, 'key').get;
802
-
803
- if (getter && getter.isReactWarning) {
804
- return false;
283
+ function jsxDEVImpl(
284
+ type,
285
+ config,
286
+ maybeKey,
287
+ isStaticChildren,
288
+ source,
289
+ self,
290
+ debugStack,
291
+ debugTask
292
+ ) {
293
+ var children = config.children;
294
+ if (void 0 !== children)
295
+ if (isStaticChildren)
296
+ if (isArrayImpl(children)) {
297
+ for (
298
+ isStaticChildren = 0;
299
+ isStaticChildren < children.length;
300
+ isStaticChildren++
301
+ )
302
+ validateChildKeys(children[isStaticChildren]);
303
+ Object.freeze && Object.freeze(children);
304
+ } else
305
+ console.error(
306
+ "React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
307
+ );
308
+ else validateChildKeys(children);
309
+ if (hasOwnProperty.call(config, "key")) {
310
+ children = getComponentNameFromType(type);
311
+ var keys = Object.keys(config).filter(function (k) {
312
+ return "key" !== k;
313
+ });
314
+ isStaticChildren =
315
+ 0 < keys.length
316
+ ? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
317
+ : "{key: someKey}";
318
+ didWarnAboutKeySpread[children + isStaticChildren] ||
319
+ ((keys =
320
+ 0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
321
+ console.error(
322
+ 'A props object containing a "key" prop is being spread into JSX:\n let props = %s;\n <%s {...props} />\nReact keys must be passed directly to JSX without using spread:\n let props = %s;\n <%s key={someKey} {...props} />',
323
+ isStaticChildren,
324
+ children,
325
+ keys,
326
+ children
327
+ ),
328
+ (didWarnAboutKeySpread[children + isStaticChildren] = !0));
805
329
  }
330
+ children = null;
331
+ void 0 !== maybeKey &&
332
+ (checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
333
+ hasValidKey(config) &&
334
+ (checkKeyStringCoercion(config.key), (children = "" + config.key));
335
+ if ("key" in config) {
336
+ maybeKey = {};
337
+ for (var propName in config)
338
+ "key" !== propName && (maybeKey[propName] = config[propName]);
339
+ } else maybeKey = config;
340
+ children &&
341
+ defineKeyPropWarningGetter(
342
+ maybeKey,
343
+ "function" === typeof type
344
+ ? type.displayName || type.name || "Unknown"
345
+ : type
346
+ );
347
+ return ReactElement(
348
+ type,
349
+ children,
350
+ self,
351
+ source,
352
+ getOwner(),
353
+ maybeKey,
354
+ debugStack,
355
+ debugTask
356
+ );
806
357
  }
807
- }
808
-
809
- return config.key !== undefined;
810
- }
811
-
812
- function warnIfStringRefCannotBeAutoConverted(config, self) {
813
- {
814
- if (typeof config.ref === 'string' && ReactCurrentOwner.current && self && ReactCurrentOwner.current.stateNode !== self) {
815
- var componentName = getComponentNameFromType(ReactCurrentOwner.current.type);
816
-
817
- if (!didWarnAboutStringRefs[componentName]) {
818
- 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);
819
-
820
- didWarnAboutStringRefs[componentName] = true;
821
- }
358
+ function validateChildKeys(node) {
359
+ "object" === typeof node &&
360
+ null !== node &&
361
+ node.$$typeof === REACT_ELEMENT_TYPE &&
362
+ node._store &&
363
+ (node._store.validated = 1);
822
364
  }
823
- }
824
- }
825
-
826
- function defineKeyPropWarningGetter(props, displayName) {
827
- {
828
- var warnAboutAccessingKey = function () {
829
- if (!specialPropKeyWarningShown) {
830
- specialPropKeyWarningShown = true;
831
-
832
- 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);
365
+ var React$1 = React,
366
+ REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
367
+ REACT_PORTAL_TYPE = Symbol.for("react.portal"),
368
+ REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
369
+ REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
370
+ REACT_PROFILER_TYPE = Symbol.for("react.profiler");
371
+ var REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
372
+ REACT_CONTEXT_TYPE = Symbol.for("react.context"),
373
+ REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
374
+ REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
375
+ REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
376
+ REACT_MEMO_TYPE = Symbol.for("react.memo"),
377
+ REACT_LAZY_TYPE = Symbol.for("react.lazy"),
378
+ REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
379
+ REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
380
+ ReactSharedInternals =
381
+ React$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
382
+ hasOwnProperty = Object.prototype.hasOwnProperty,
383
+ isArrayImpl = Array.isArray,
384
+ createTask = console.createTask
385
+ ? console.createTask
386
+ : function () {
387
+ return null;
388
+ };
389
+ React$1 = {
390
+ react_stack_bottom_frame: function (callStackForError) {
391
+ return callStackForError();
833
392
  }
834
393
  };
835
-
836
- warnAboutAccessingKey.isReactWarning = true;
837
- Object.defineProperty(props, 'key', {
838
- get: warnAboutAccessingKey,
839
- configurable: true
840
- });
841
- }
842
- }
843
-
844
- function defineRefPropWarningGetter(props, displayName) {
845
- {
846
- var warnAboutAccessingRef = function () {
847
- if (!specialPropRefWarningShown) {
848
- specialPropRefWarningShown = true;
849
-
850
- 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);
851
- }
394
+ var specialPropKeyWarningShown;
395
+ var didWarnAboutElementRef = {};
396
+ var unknownOwnerDebugStack = React$1.react_stack_bottom_frame.bind(
397
+ React$1,
398
+ UnknownOwner
399
+ )();
400
+ var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
401
+ var didWarnAboutKeySpread = {};
402
+ reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
403
+ reactJsxRuntime_development.jsx = function (type, config, maybeKey, source, self) {
404
+ var trackActualOwner =
405
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
406
+ return jsxDEVImpl(
407
+ type,
408
+ config,
409
+ maybeKey,
410
+ !1,
411
+ source,
412
+ self,
413
+ trackActualOwner
414
+ ? Error("react-stack-top-frame")
415
+ : unknownOwnerDebugStack,
416
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
417
+ );
418
+ };
419
+ reactJsxRuntime_development.jsxs = function (type, config, maybeKey, source, self) {
420
+ var trackActualOwner =
421
+ 1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
422
+ return jsxDEVImpl(
423
+ type,
424
+ config,
425
+ maybeKey,
426
+ !0,
427
+ source,
428
+ self,
429
+ trackActualOwner
430
+ ? Error("react-stack-top-frame")
431
+ : unknownOwnerDebugStack,
432
+ trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
433
+ );
852
434
  };
853
-
854
- warnAboutAccessingRef.isReactWarning = true;
855
- Object.defineProperty(props, 'ref', {
856
- get: warnAboutAccessingRef,
857
- configurable: true
858
- });
859
- }
860
- }
861
- /**
862
- * Factory method to create a new React element. This no longer adheres to
863
- * the class pattern, so do not use new to call it. Also, instanceof check
864
- * will not work. Instead test $$typeof field against Symbol.for('react.element') to check
865
- * if something is a React Element.
866
- *
867
- * @param {*} type
868
- * @param {*} props
869
- * @param {*} key
870
- * @param {string|object} ref
871
- * @param {*} owner
872
- * @param {*} self A *temporary* helper to detect places where `this` is
873
- * different from the `owner` when React.createElement is called, so that we
874
- * can warn. We want to get rid of owner and replace string `ref`s with arrow
875
- * functions, and as long as `this` and owner are the same, there will be no
876
- * change in behavior.
877
- * @param {*} source An annotation object (added by a transpiler or otherwise)
878
- * indicating filename, line number, and/or other information.
879
- * @internal
880
- */
881
-
882
-
883
- var ReactElement = function (type, key, ref, self, source, owner, props) {
884
- var element = {
885
- // This tag allows us to uniquely identify this as a React Element
886
- $$typeof: REACT_ELEMENT_TYPE,
887
- // Built-in properties that belong on the element
888
- type: type,
889
- key: key,
890
- ref: ref,
891
- props: props,
892
- // Record the component responsible for creating this element.
893
- _owner: owner
894
- };
895
-
896
- {
897
- // The validation flag is currently mutative. We put it on
898
- // an external backing store so that we can freeze the whole object.
899
- // This can be replaced with a WeakMap once they are implemented in
900
- // commonly used development environments.
901
- element._store = {}; // To make comparing ReactElements easier for testing purposes, we make
902
- // the validation flag non-enumerable (where possible, which should
903
- // include every environment we run tests in), so the test framework
904
- // ignores it.
905
-
906
- Object.defineProperty(element._store, 'validated', {
907
- configurable: false,
908
- enumerable: false,
909
- writable: true,
910
- value: false
911
- }); // self and source are DEV only properties.
912
-
913
- Object.defineProperty(element, '_self', {
914
- configurable: false,
915
- enumerable: false,
916
- writable: false,
917
- value: self
918
- }); // Two elements created in two different places should be considered
919
- // equal for testing purposes and therefore we hide it from enumeration.
920
-
921
- Object.defineProperty(element, '_source', {
922
- configurable: false,
923
- enumerable: false,
924
- writable: false,
925
- value: source
926
- });
927
-
928
- if (Object.freeze) {
929
- Object.freeze(element.props);
930
- Object.freeze(element);
931
- }
932
- }
933
-
934
- return element;
935
- };
936
- /**
937
- * https://github.com/reactjs/rfcs/pull/107
938
- * @param {*} type
939
- * @param {object} props
940
- * @param {string} key
941
- */
942
-
943
- function jsxDEV(type, config, maybeKey, source, self) {
944
- {
945
- var propName; // Reserved names are extracted
946
-
947
- var props = {};
948
- var key = null;
949
- var ref = null; // Currently, key can be spread in as a prop. This causes a potential
950
- // issue if key is also explicitly declared (ie. <div {...props} key="Hi" />
951
- // or <div key="Hi" {...props} /> ). We want to deprecate key spread,
952
- // but as an intermediary step, we will use jsxDEV for everything except
953
- // <div {...props} key="Hi" />, because we aren't currently able to tell if
954
- // key is explicitly declared to be undefined or not.
955
-
956
- if (maybeKey !== undefined) {
957
- {
958
- checkKeyStringCoercion(maybeKey);
959
- }
960
-
961
- key = '' + maybeKey;
962
- }
963
-
964
- if (hasValidKey(config)) {
965
- {
966
- checkKeyStringCoercion(config.key);
967
- }
968
-
969
- key = '' + config.key;
970
- }
971
-
972
- if (hasValidRef(config)) {
973
- ref = config.ref;
974
- warnIfStringRefCannotBeAutoConverted(config, self);
975
- } // Remaining properties are added to a new props object
976
-
977
-
978
- for (propName in config) {
979
- if (hasOwnProperty.call(config, propName) && !RESERVED_PROPS.hasOwnProperty(propName)) {
980
- props[propName] = config[propName];
981
- }
982
- } // Resolve default props
983
-
984
-
985
- if (type && type.defaultProps) {
986
- var defaultProps = type.defaultProps;
987
-
988
- for (propName in defaultProps) {
989
- if (props[propName] === undefined) {
990
- props[propName] = defaultProps[propName];
991
- }
992
- }
993
- }
994
-
995
- if (key || ref) {
996
- var displayName = typeof type === 'function' ? type.displayName || type.name || 'Unknown' : type;
997
-
998
- if (key) {
999
- defineKeyPropWarningGetter(props, displayName);
1000
- }
1001
-
1002
- if (ref) {
1003
- defineRefPropWarningGetter(props, displayName);
1004
- }
1005
- }
1006
-
1007
- return ReactElement(type, key, ref, self, source, ReactCurrentOwner.current, props);
1008
- }
1009
- }
1010
-
1011
- var ReactCurrentOwner$1 = ReactSharedInternals.ReactCurrentOwner;
1012
- var ReactDebugCurrentFrame$1 = ReactSharedInternals.ReactDebugCurrentFrame;
1013
-
1014
- function setCurrentlyValidatingElement$1(element) {
1015
- {
1016
- if (element) {
1017
- var owner = element._owner;
1018
- var stack = describeUnknownElementTypeFrameInDEV(element.type, element._source, owner ? owner.type : null);
1019
- ReactDebugCurrentFrame$1.setExtraStackFrame(stack);
1020
- } else {
1021
- ReactDebugCurrentFrame$1.setExtraStackFrame(null);
1022
- }
1023
- }
1024
- }
1025
-
1026
- var propTypesMisspellWarningShown;
1027
-
1028
- {
1029
- propTypesMisspellWarningShown = false;
1030
- }
1031
- /**
1032
- * Verifies the object is a ReactElement.
1033
- * See https://reactjs.org/docs/react-api.html#isvalidelement
1034
- * @param {?object} object
1035
- * @return {boolean} True if `object` is a ReactElement.
1036
- * @final
1037
- */
1038
-
1039
-
1040
- function isValidElement(object) {
1041
- {
1042
- return typeof object === 'object' && object !== null && object.$$typeof === REACT_ELEMENT_TYPE;
1043
- }
1044
- }
1045
-
1046
- function getDeclarationErrorAddendum() {
1047
- {
1048
- if (ReactCurrentOwner$1.current) {
1049
- var name = getComponentNameFromType(ReactCurrentOwner$1.current.type);
1050
-
1051
- if (name) {
1052
- return '\n\nCheck the render method of `' + name + '`.';
1053
- }
1054
- }
1055
-
1056
- return '';
1057
- }
1058
- }
1059
-
1060
- function getSourceInfoErrorAddendum(source) {
1061
- {
1062
- if (source !== undefined) {
1063
- var fileName = source.fileName.replace(/^.*[\\\/]/, '');
1064
- var lineNumber = source.lineNumber;
1065
- return '\n\nCheck your code at ' + fileName + ':' + lineNumber + '.';
1066
- }
1067
-
1068
- return '';
1069
- }
1070
- }
1071
- /**
1072
- * Warn if there's no key explicitly set on dynamic arrays of children or
1073
- * object keys are not valid. This allows us to keep track of children between
1074
- * updates.
1075
- */
1076
-
1077
-
1078
- var ownerHasKeyUseWarning = {};
1079
-
1080
- function getCurrentComponentErrorInfo(parentType) {
1081
- {
1082
- var info = getDeclarationErrorAddendum();
1083
-
1084
- if (!info) {
1085
- var parentName = typeof parentType === 'string' ? parentType : parentType.displayName || parentType.name;
1086
-
1087
- if (parentName) {
1088
- info = "\n\nCheck the top-level render call using <" + parentName + ">.";
1089
- }
1090
- }
1091
-
1092
- return info;
1093
- }
1094
- }
1095
- /**
1096
- * Warn if the element doesn't have an explicit key assigned to it.
1097
- * This element is in an array. The array could grow and shrink or be
1098
- * reordered. All children that haven't already been validated are required to
1099
- * have a "key" property assigned to it. Error statuses are cached so a warning
1100
- * will only be shown once.
1101
- *
1102
- * @internal
1103
- * @param {ReactElement} element Element that requires a key.
1104
- * @param {*} parentType element's parent's type.
1105
- */
1106
-
1107
-
1108
- function validateExplicitKey(element, parentType) {
1109
- {
1110
- if (!element._store || element._store.validated || element.key != null) {
1111
- return;
1112
- }
1113
-
1114
- element._store.validated = true;
1115
- var currentComponentErrorInfo = getCurrentComponentErrorInfo(parentType);
1116
-
1117
- if (ownerHasKeyUseWarning[currentComponentErrorInfo]) {
1118
- return;
1119
- }
1120
-
1121
- ownerHasKeyUseWarning[currentComponentErrorInfo] = true; // Usually the current owner is the offender, but if it accepts children as a
1122
- // property, it may be the creator of the child that's responsible for
1123
- // assigning it a key.
1124
-
1125
- var childOwner = '';
1126
-
1127
- if (element && element._owner && element._owner !== ReactCurrentOwner$1.current) {
1128
- // Give the component that originally created this child.
1129
- childOwner = " It was passed a child from " + getComponentNameFromType(element._owner.type) + ".";
1130
- }
1131
-
1132
- setCurrentlyValidatingElement$1(element);
1133
-
1134
- 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);
1135
-
1136
- setCurrentlyValidatingElement$1(null);
1137
- }
1138
- }
1139
- /**
1140
- * Ensure that every element either is passed in a static location, in an
1141
- * array with an explicit keys property defined, or in an object literal
1142
- * with valid key property.
1143
- *
1144
- * @internal
1145
- * @param {ReactNode} node Statically passed child of any type.
1146
- * @param {*} parentType node's parent's type.
1147
- */
1148
-
1149
-
1150
- function validateChildKeys(node, parentType) {
1151
- {
1152
- if (typeof node !== 'object') {
1153
- return;
1154
- }
1155
-
1156
- if (isArray(node)) {
1157
- for (var i = 0; i < node.length; i++) {
1158
- var child = node[i];
1159
-
1160
- if (isValidElement(child)) {
1161
- validateExplicitKey(child, parentType);
1162
- }
1163
- }
1164
- } else if (isValidElement(node)) {
1165
- // This element was passed in a valid location.
1166
- if (node._store) {
1167
- node._store.validated = true;
1168
- }
1169
- } else if (node) {
1170
- var iteratorFn = getIteratorFn(node);
1171
-
1172
- if (typeof iteratorFn === 'function') {
1173
- // Entry iterators used to provide implicit keys,
1174
- // but now we print a separate warning for them later.
1175
- if (iteratorFn !== node.entries) {
1176
- var iterator = iteratorFn.call(node);
1177
- var step;
1178
-
1179
- while (!(step = iterator.next()).done) {
1180
- if (isValidElement(step.value)) {
1181
- validateExplicitKey(step.value, parentType);
1182
- }
1183
- }
1184
- }
1185
- }
1186
- }
1187
- }
1188
- }
1189
- /**
1190
- * Given an element, validate that its props follow the propTypes definition,
1191
- * provided by the type.
1192
- *
1193
- * @param {ReactElement} element
1194
- */
1195
-
1196
-
1197
- function validatePropTypes(element) {
1198
- {
1199
- var type = element.type;
1200
-
1201
- if (type === null || type === undefined || typeof type === 'string') {
1202
- return;
1203
- }
1204
-
1205
- var propTypes;
1206
-
1207
- if (typeof type === 'function') {
1208
- propTypes = type.propTypes;
1209
- } else if (typeof type === 'object' && (type.$$typeof === REACT_FORWARD_REF_TYPE || // Note: Memo only checks outer props here.
1210
- // Inner props are checked in the reconciler.
1211
- type.$$typeof === REACT_MEMO_TYPE)) {
1212
- propTypes = type.propTypes;
1213
- } else {
1214
- return;
1215
- }
1216
-
1217
- if (propTypes) {
1218
- // Intentionally inside to avoid triggering lazy initializers:
1219
- var name = getComponentNameFromType(type);
1220
- checkPropTypes(propTypes, element.props, 'prop', name, element);
1221
- } else if (type.PropTypes !== undefined && !propTypesMisspellWarningShown) {
1222
- propTypesMisspellWarningShown = true; // Intentionally inside to avoid triggering lazy initializers:
1223
-
1224
- var _name = getComponentNameFromType(type);
1225
-
1226
- error('Component %s declared `PropTypes` instead of `propTypes`. Did you misspell the property assignment?', _name || 'Unknown');
1227
- }
1228
-
1229
- if (typeof type.getDefaultProps === 'function' && !type.getDefaultProps.isReactClassApproved) {
1230
- error('getDefaultProps is only used on classic React.createClass ' + 'definitions. Use a static property named `defaultProps` instead.');
1231
- }
1232
- }
1233
- }
1234
- /**
1235
- * Given a fragment, validate that it can only be provided with fragment props
1236
- * @param {ReactElement} fragment
1237
- */
1238
-
1239
-
1240
- function validateFragmentProps(fragment) {
1241
- {
1242
- var keys = Object.keys(fragment.props);
1243
-
1244
- for (var i = 0; i < keys.length; i++) {
1245
- var key = keys[i];
1246
-
1247
- if (key !== 'children' && key !== 'key') {
1248
- setCurrentlyValidatingElement$1(fragment);
1249
-
1250
- error('Invalid prop `%s` supplied to `React.Fragment`. ' + 'React.Fragment can only have `key` and `children` props.', key);
1251
-
1252
- setCurrentlyValidatingElement$1(null);
1253
- break;
1254
- }
1255
- }
1256
-
1257
- if (fragment.ref !== null) {
1258
- setCurrentlyValidatingElement$1(fragment);
1259
-
1260
- error('Invalid attribute `ref` supplied to `React.Fragment`.');
1261
-
1262
- setCurrentlyValidatingElement$1(null);
1263
- }
1264
- }
1265
- }
1266
-
1267
- var didWarnAboutKeySpread = {};
1268
- function jsxWithValidation(type, props, key, isStaticChildren, source, self) {
1269
- {
1270
- var validType = isValidElementType(type); // We warn in this case but don't throw. We expect the element creation to
1271
- // succeed and there will likely be errors in render.
1272
-
1273
- if (!validType) {
1274
- var info = '';
1275
-
1276
- if (type === undefined || typeof type === 'object' && type !== null && Object.keys(type).length === 0) {
1277
- 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.";
1278
- }
1279
-
1280
- var sourceInfo = getSourceInfoErrorAddendum(source);
1281
-
1282
- if (sourceInfo) {
1283
- info += sourceInfo;
1284
- } else {
1285
- info += getDeclarationErrorAddendum();
1286
- }
1287
-
1288
- var typeString;
1289
-
1290
- if (type === null) {
1291
- typeString = 'null';
1292
- } else if (isArray(type)) {
1293
- typeString = 'array';
1294
- } else if (type !== undefined && type.$$typeof === REACT_ELEMENT_TYPE) {
1295
- typeString = "<" + (getComponentNameFromType(type.type) || 'Unknown') + " />";
1296
- info = ' Did you accidentally export a JSX literal instead of a component?';
1297
- } else {
1298
- typeString = typeof type;
1299
- }
1300
-
1301
- 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);
1302
- }
1303
-
1304
- var element = jsxDEV(type, props, key, source, self); // The result can be nullish if a mock or a custom function is used.
1305
- // TODO: Drop this when these are no longer allowed as the type argument.
1306
-
1307
- if (element == null) {
1308
- return element;
1309
- } // Skip key warning if the type isn't valid since our key validation logic
1310
- // doesn't expect a non-string/function type and can throw confusing errors.
1311
- // We don't want exception behavior to differ between dev and prod.
1312
- // (Rendering will throw with a helpful message and as soon as the type is
1313
- // fixed, the key warnings will appear.)
1314
-
1315
-
1316
- if (validType) {
1317
- var children = props.children;
1318
-
1319
- if (children !== undefined) {
1320
- if (isStaticChildren) {
1321
- if (isArray(children)) {
1322
- for (var i = 0; i < children.length; i++) {
1323
- validateChildKeys(children[i], type);
1324
- }
1325
-
1326
- if (Object.freeze) {
1327
- Object.freeze(children);
1328
- }
1329
- } else {
1330
- 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.');
1331
- }
1332
- } else {
1333
- validateChildKeys(children, type);
1334
- }
1335
- }
1336
- }
1337
-
1338
- {
1339
- if (hasOwnProperty.call(props, 'key')) {
1340
- var componentName = getComponentNameFromType(type);
1341
- var keys = Object.keys(props).filter(function (k) {
1342
- return k !== 'key';
1343
- });
1344
- var beforeExample = keys.length > 0 ? '{key: someKey, ' + keys.join(': ..., ') + ': ...}' : '{key: someKey}';
1345
-
1346
- if (!didWarnAboutKeySpread[componentName + beforeExample]) {
1347
- var afterExample = keys.length > 0 ? '{' + keys.join(': ..., ') + ': ...}' : '{}';
1348
-
1349
- 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);
1350
-
1351
- didWarnAboutKeySpread[componentName + beforeExample] = true;
1352
- }
1353
- }
1354
- }
1355
-
1356
- if (type === REACT_FRAGMENT_TYPE) {
1357
- validateFragmentProps(element);
1358
- } else {
1359
- validatePropTypes(element);
1360
- }
1361
-
1362
- return element;
1363
- }
1364
- } // These two functions exist to still get child warnings in dev
1365
- // even with the prod transform. This means that jsxDEV is purely
1366
- // opt-in behavior for better messages but that we won't stop
1367
- // giving you warnings if you use production apis.
1368
-
1369
- function jsxWithValidationStatic(type, props, key) {
1370
- {
1371
- return jsxWithValidation(type, props, key, true);
1372
- }
1373
- }
1374
- function jsxWithValidationDynamic(type, props, key) {
1375
- {
1376
- return jsxWithValidation(type, props, key, false);
1377
- }
1378
- }
1379
-
1380
- var jsx = jsxWithValidationDynamic ; // we may want to special case jsxs internally to take advantage of static children.
1381
- // for now we can ship identical prod functions
1382
-
1383
- var jsxs = jsxWithValidationStatic ;
1384
-
1385
- reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
1386
- reactJsxRuntime_development.jsx = jsx;
1387
- reactJsxRuntime_development.jsxs = jsxs;
1388
435
  })();
1389
- }
1390
436
  return reactJsxRuntime_development;
1391
437
  }
1392
438
 
1393
439
  if (process.env.NODE_ENV === 'production') {
1394
- jsxRuntime.exports = requireReactJsxRuntime_production_min();
440
+ jsxRuntime.exports = requireReactJsxRuntime_production();
1395
441
  } else {
1396
442
  jsxRuntime.exports = requireReactJsxRuntime_development();
1397
443
  }
@@ -1901,16 +947,6 @@ var desaturateColor = function (color) {
1901
947
  .lighten(COLOR_CONSTANTS.DESATURATION_LIGHTEN_AMOUNT)
1902
948
  .toString();
1903
949
  };
1904
- /**
1905
- * Gets the appropriate state color based on type and count
1906
- * @param baseColor - Base color to process
1907
- * @param type - Type of state
1908
- * @param count - Count affecting the state
1909
- * @returns Processed color string
1910
- */
1911
- var getStateColor = function (baseColor, type, count) {
1912
- return shouldDesaturate(type, count) ? desaturateColor(baseColor) : baseColor;
1913
- };
1914
950
 
1915
951
  var DIMENSION_MODES = {
1916
952
  DESKTOP: 'desktop',
@@ -2495,6 +1531,12 @@ exports.TileHeight = void 0;
2495
1531
  TileHeight["Half"] = "HALF";
2496
1532
  TileHeight["Full"] = "FULL";
2497
1533
  })(exports.TileHeight || (exports.TileHeight = {}));
1534
+ exports.StatusVariant = void 0;
1535
+ (function (StatusVariant) {
1536
+ StatusVariant["PRIMARY"] = "primary";
1537
+ StatusVariant["GREEN"] = "green";
1538
+ StatusVariant["GREY"] = "grey";
1539
+ })(exports.StatusVariant || (exports.StatusVariant = {}));
2498
1540
  var BannerTileConfig = /** @class */ (function () {
2499
1541
  function BannerTileConfig() {
2500
1542
  }
@@ -2688,7 +1730,7 @@ var useTileSize = function (tile) {
2688
1730
  * Renders the body text of a BaseTile component.
2689
1731
  *
2690
1732
  * @param {BaseTileBodyProps} props - Component props including text styling options
2691
- * @returns {JSX.Element|null} The rendered body text or null if conditions for display are not met
1733
+ * @returns {React.ReactElement|null} The rendered body text or null if conditions for display are not met
2692
1734
  */
2693
1735
  var BaseTileBody = function (props) {
2694
1736
  var tileContext = useTileContext();
@@ -2802,7 +1844,7 @@ var useBaseTileStyles = function () {
2802
1844
  *
2803
1845
  * @param {BaseTileContentProps} props - Component props
2804
1846
  * @param {ReactNode} props.children - Child elements to render within the content area
2805
- * @returns {JSX.Element|null} The rendered content or null if conditions for display are not met
1847
+ * @returns {React.ReactElement|null} The rendered content or null if conditions for display are not met
2806
1848
  */
2807
1849
  var BaseTileContent = function (_a) {
2808
1850
  var children = _a.children;
@@ -2829,7 +1871,7 @@ var BaseTileContent = function (_a) {
2829
1871
  *
2830
1872
  * @param {BaseTileHeaderProps} props - Component props
2831
1873
  * @param {ReactNode} props.children - Child elements to render within the header
2832
- * @returns {JSX.Element|null} The rendered header or null if conditions for display are not met
1874
+ * @returns {React.ReactElement|null} The rendered header or null if conditions for display are not met
2833
1875
  */
2834
1876
  var BaseTileHeader = function (_a) {
2835
1877
  var children = _a.children;
@@ -2851,7 +1893,7 @@ var BaseTileHeader = function (_a) {
2851
1893
  * Renders the media (image) for a BaseTile component.
2852
1894
  *
2853
1895
  * @param {ImagePropsNoSource} props - The image props excluding source
2854
- * @returns {JSX.Element|null} The rendered image or null if no artwork URL is present
1896
+ * @returns {React.ReactElement|null} The rendered image or null if no artwork URL is present
2855
1897
  */
2856
1898
  var BaseTileMedia = function (props) {
2857
1899
  var tileContext = useTileContext();
@@ -2867,7 +1909,7 @@ var BaseTileMedia = function (props) {
2867
1909
  /**
2868
1910
  * Renders the title of a BaseTile component.
2869
1911
  *
2870
- * @returns {JSX.Element|null} The rendered title or null if conditions for display are not met
1912
+ * @returns {React.ReactElement|null} The rendered title or null if conditions for display are not met
2871
1913
  */
2872
1914
  var BaseTileTitle = function () {
2873
1915
  var _a, _b;
@@ -2954,7 +1996,7 @@ var BaseTileContainer = function (_a) {
2954
1996
  * BaseTileRoot component to provide context and render children.
2955
1997
  *
2956
1998
  * @param {BaseTileProps} props - Component props
2957
- * @returns {JSX.Element|null} The rendered BaseTileRoot or null if no tile is provided
1999
+ * @returns {React.ReactElement|null} The rendered BaseTileRoot or null if no tile is provided
2958
2000
  */
2959
2001
  var BaseTileRoot = function (_a) {
2960
2002
  var tile = _a.tile, children = _a.children, style = _a.style;
@@ -3238,67 +2280,13 @@ var handleLastEarnedDate = function (date, userLocale) {
3238
2280
  }
3239
2281
  };
3240
2282
 
3241
- /**
3242
- * Custom hook that returns the styles for the BadgeTile component.
3243
- * Applies responsive styling based on the current device.
3244
- *
3245
- * @returns StyleSheet styles for the BadgeTile component
3246
- */
3247
- var useBadgeTileStyles = function () {
3248
- var _a = useResponsive$1(), isDesktop = _a.isDesktop, isTablet = _a.isTablet;
3249
- var theme = useWllSdk().theme;
3250
- return reactNative.StyleSheet.create({
3251
- container: {
3252
- flex: 1,
3253
- },
3254
- indicatorContainer: {
3255
- position: 'absolute',
3256
- bottom: useResponsiveValue(theme.sizes.lg, theme.sizes.xxs, isDesktop, isTablet),
3257
- right: useResponsiveValue(theme.sizes.lg, theme.sizes.xxs, isDesktop, isTablet),
3258
- backgroundColor: 'rgba(0,0,0,0.6)',
3259
- borderRadius: 40,
3260
- width: 40,
3261
- alignItems: 'center',
3262
- justifyContent: 'center',
3263
- height: 40,
3264
- },
3265
- countText: {
3266
- color: '#FFF',
3267
- fontSize: 14,
3268
- fontWeight: 'bold',
3269
- },
3270
- header: {
3271
- flexBasis: '50%',
3272
- alignItems: 'center',
3273
- justifyContent: 'center',
3274
- position: 'relative',
3275
- marginBottom: useResponsiveValue(theme.sizes.lg, theme.sizes.xxs, isDesktop, isTablet),
3276
- },
3277
- image: {
3278
- width: '100%',
3279
- height: '100%',
3280
- },
3281
- titleText: {
3282
- marginBottom: useResponsiveValue(theme.sizes.xxs, theme.sizes.xxxs, isDesktop, isTablet),
3283
- },
3284
- dateEarnedContainer: {
3285
- alignItems: 'flex-start',
3286
- paddingHorizontal: 8,
3287
- paddingVertical: 4,
3288
- borderRadius: 20,
3289
- },
3290
- });
3291
- };
3292
-
3293
2283
  /**
3294
2284
  * Renders the date earned for a Badge Tile.
3295
2285
  *
3296
- * @returns JSX.Element or null if badge is not earned or badgeNotEarnedMessage exists
2286
+ * @returns React.ReactElement or null if badge is not earned or badgeNotEarnedMessage exists
3297
2287
  */
3298
2288
  var BadgeTileDateEarned = function () {
3299
- var styles = useBadgeTileStyles();
3300
2289
  var tileContext = useTileContext();
3301
- var theme = useWllSdk().theme;
3302
2290
  if (!isContextValid(tileContext))
3303
2291
  return null;
3304
2292
  var _a = tileContext.configuration, count = _a.count, awardedDatePrefix = _a.awardedDatePrefix, lastEarnedAt = _a.lastEarnedAt, badgeNotEarnedMessage = _a.badgeNotEarnedMessage, type = _a.type, locale = _a.locale;
@@ -3312,22 +2300,20 @@ var BadgeTileDateEarned = function () {
3312
2300
  !badgeNotEarnedMessage) {
3313
2301
  return null;
3314
2302
  }
3315
- var backgroundColor = getStateColor(theme.alphaDerivedPrimary[20], type, count);
3316
- var containerStyle = [styles.dateEarnedContainer, { backgroundColor: backgroundColor }];
3317
- var textColor = getReadableTextColor(backgroundColor);
2303
+ var formattedDate = handleLastEarnedDate(lastEarnedAt, locale);
3318
2304
  var displayText = count === 0
3319
2305
  ? badgeNotEarnedMessage
3320
- : "".concat(awardedDatePrefix, " ").concat(handleLastEarnedDate(lastEarnedAt, locale));
2306
+ : "".concat(awardedDatePrefix, " ").concat(formattedDate);
3321
2307
  var accessibilityLabel = count === 0
3322
2308
  ? 'Badge not yet earned'
3323
- : "Badge earned on ".concat(handleLastEarnedDate(lastEarnedAt, locale));
3324
- return (jsxRuntimeExports.jsx(reactNative.View, { style: containerStyle, accessible: true, accessibilityLabel: accessibilityLabel, testID: "badge-tile-date-earned", children: jsxRuntimeExports.jsx(Text, { variant: "label", style: [styles.dateEarnedText, { color: textColor }], numberOfLines: 1, ellipsizeMode: "tail", accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants", children: displayText }) }));
2309
+ : "Badge earned on ".concat(formattedDate);
2310
+ return (jsxRuntimeExports.jsx(Chip, { label: displayText, variant: count === 0 ? exports.StatusVariant.GREY : exports.StatusVariant.PRIMARY, accessibilityLabel: accessibilityLabel, testID: "badge-tile-date-earned" }));
3325
2311
  };
3326
2312
 
3327
2313
  /**
3328
2314
  * Renders the description for a Badge Tile.
3329
2315
  *
3330
- * @returns JSX.Element or null if description is not present
2316
+ * @returns React.ReactElement or null if description is not present
3331
2317
  */
3332
2318
  var BadgeTileDescription = function () {
3333
2319
  var tileContext = useTileContext();
@@ -3356,10 +2342,62 @@ var BadgeTileDescription = function () {
3356
2342
  }, children: jsxRuntimeExports.jsx(Text, { variant: "body", numberOfLines: numberOfLines, ellipsizeMode: "tail", accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants", children: description }) }));
3357
2343
  };
3358
2344
 
2345
+ /**
2346
+ * Custom hook that returns the styles for the BadgeTile component.
2347
+ * Applies responsive styling based on the current device.
2348
+ *
2349
+ * @returns StyleSheet styles for the BadgeTile component
2350
+ */
2351
+ var useBadgeTileStyles = function () {
2352
+ var _a = useResponsive$1(), isDesktop = _a.isDesktop, isTablet = _a.isTablet;
2353
+ var theme = useWllSdk().theme;
2354
+ return reactNative.StyleSheet.create({
2355
+ container: {
2356
+ flex: 1,
2357
+ },
2358
+ indicatorContainer: {
2359
+ position: 'absolute',
2360
+ bottom: useResponsiveValue(theme.sizes.lg, theme.sizes.xxs, isDesktop, isTablet),
2361
+ right: useResponsiveValue(theme.sizes.lg, theme.sizes.xxs, isDesktop, isTablet),
2362
+ backgroundColor: 'rgba(0,0,0,0.6)',
2363
+ borderRadius: 40,
2364
+ width: 40,
2365
+ alignItems: 'center',
2366
+ justifyContent: 'center',
2367
+ height: 40,
2368
+ },
2369
+ countText: {
2370
+ color: '#FFF',
2371
+ fontSize: 14,
2372
+ fontWeight: 'bold',
2373
+ },
2374
+ header: {
2375
+ flexBasis: '50%',
2376
+ alignItems: 'center',
2377
+ justifyContent: 'center',
2378
+ position: 'relative',
2379
+ marginBottom: useResponsiveValue(theme.sizes.lg, theme.sizes.xxs, isDesktop, isTablet),
2380
+ },
2381
+ image: {
2382
+ width: '100%',
2383
+ height: '100%',
2384
+ },
2385
+ titleText: {
2386
+ marginBottom: useResponsiveValue(theme.sizes.xxs, theme.sizes.xxxs, isDesktop, isTablet),
2387
+ },
2388
+ dateEarnedContainer: {
2389
+ alignItems: 'flex-start',
2390
+ paddingHorizontal: 8,
2391
+ paddingVertical: 4,
2392
+ borderRadius: 20,
2393
+ },
2394
+ });
2395
+ };
2396
+
3359
2397
  /**
3360
2398
  * Renders the media for a Badge Tile.
3361
2399
  *
3362
- * @returns JSX.Element or null if media is not present
2400
+ * @returns React.ReactElement or null if media is not present
3363
2401
  */
3364
2402
  var BadgeTileMedia = function (_a) {
3365
2403
  var children = _a.children, alt = _a.alt, props = __rest(_a, ["children", "alt"]);
@@ -3381,7 +2419,7 @@ var BadgeTileMedia = function (_a) {
3381
2419
  /**
3382
2420
  * Renders the status for a Badge Tile.
3383
2421
  *
3384
- * @returns JSX.Element or null if badge is not earned or badgeNotEarnedMessage exists
2422
+ * @returns React.ReactElement or null if badge is not earned or badgeNotEarnedMessage exists
3385
2423
  */
3386
2424
  var BadgeTileStatus = function () {
3387
2425
  var styles = useBadgeTileStyles();
@@ -3400,7 +2438,7 @@ var BadgeTileStatus = function () {
3400
2438
  /**
3401
2439
  * Renders the title for a Badge Tile.
3402
2440
  *
3403
- * @returns JSX.Element or null if name is not present
2441
+ * @returns React.ReactElement or null if name is not present
3404
2442
  */
3405
2443
  var BadgeTileTitle = function () {
3406
2444
  var styles = useBadgeTileStyles();
@@ -3420,7 +2458,7 @@ var BadgeTileTitle = function () {
3420
2458
 
3421
2459
  /**
3422
2460
  * The main BadgeTile component.
3423
- * @returns JSX.Element or null if tile is not active or tileHeight is not full.
2461
+ * @returns React.ReactElement or null if tile is not active or tileHeight is not full.
3424
2462
  * This component renders a badge tile with optional media, status, title, description, and date earned.
3425
2463
  */
3426
2464
  var BadgeTileRoot = function (_a) {
@@ -3444,7 +2482,7 @@ var BadgeTile$1 = withTileFetching(BadgeTile);
3444
2482
  /**
3445
2483
  * Renders the call to action of a Banner Tile.
3446
2484
  *
3447
- * @returns JSX.Element or null if no text or required props are present
2485
+ * @returns React.ReactElement or null if no text or required props are present
3448
2486
  */
3449
2487
  var BannerTileCTA = function () {
3450
2488
  var bannerContext = useBannerContext();
@@ -3498,7 +2536,7 @@ var useBannerTileStyles = function () {
3498
2536
  /**
3499
2537
  * Renders the description text of a Banner Tile.
3500
2538
  *
3501
- * @returns JSX.Element or null if no description is present
2539
+ * @returns React.ReactElement or null if no description is present
3502
2540
  */
3503
2541
  var BannerTileDescription = function () {
3504
2542
  var styles = useBannerTileStyles();
@@ -3514,7 +2552,7 @@ var BannerTileDescription = function () {
3514
2552
  /**
3515
2553
  * Renders the media of a Banner Tile.
3516
2554
  *
3517
- * @returns JSX.Element or null if no media is present
2555
+ * @returns React.ReactElement or null if no media is present
3518
2556
  */
3519
2557
  var BannerTileMedia = function (_a) {
3520
2558
  var isArtworkOnly = _a.isArtworkOnly;
@@ -3534,7 +2572,7 @@ var BannerTileMedia = function (_a) {
3534
2572
  /**
3535
2573
  * Renders the title of a Banner Tile.
3536
2574
  *
3537
- * @returns JSX.Element or null if no title is present
2575
+ * @returns React.ReactElement or null if no title is present
3538
2576
  */
3539
2577
  var BannerTileTitle = function () {
3540
2578
  var styles = useBannerTileStyles();
@@ -3564,7 +2602,7 @@ var isArtworkOnly$2 = function (configuration) {
3564
2602
  * This component renders a banner tile with optional media, title, description, and CTA.
3565
2603
  *
3566
2604
  * @param {BannerTileProps} props - Component props
3567
- * @returns {JSX.Element | null} Rendered component or null if tile is inactive
2605
+ * @returns {React.ReactElement | null} Rendered component or null if tile is inactive
3568
2606
  */
3569
2607
  var BannerTileRoot = function (_a) {
3570
2608
  var tile = _a.tile;
@@ -3731,7 +2769,7 @@ var isArtworkOnly$1 = function (configuration) {
3731
2769
  *
3732
2770
  * @param {ContentTileProps} props - Component props
3733
2771
  * @param {Tile} props.tile - The tile data to render
3734
- * @returns JSX.Element or null if tile is inactive
2772
+ * @returns React.ReactElement or null if tile is inactive
3735
2773
  */
3736
2774
  var ContentTileRoot = function (_a) {
3737
2775
  var tile = _a.tile;
@@ -4408,7 +3446,7 @@ var useSectionData = function (section, sectionId) {
4408
3446
  *
4409
3447
  * @param {Object} props - Component props
4410
3448
  * @param {string} props.message - Message to display in the empty state
4411
- * @returns {JSX.Element} The empty state component
3449
+ * @returns {React.ReactElement} The empty state component
4412
3450
  */
4413
3451
  var EmptyState = function (_a) {
4414
3452
  var message = _a.message;
@@ -4420,7 +3458,7 @@ var EmptyState = function (_a) {
4420
3458
  * @param {SectionProps} props - Component props
4421
3459
  * @param {TSection} [props.section] - The section data
4422
3460
  * @param {string} [props.sectionId] - The ID of the section to fetch
4423
- * @returns {JSX.Element|null} The rendered section or null if invalid props
3461
+ * @returns {React.ReactElement|null} The rendered section or null if invalid props
4424
3462
  */
4425
3463
  var Section = function (_a) {
4426
3464
  var section = _a.section, sectionId = _a.sectionId;
@@ -4507,7 +3545,7 @@ var useGroupData = function (id) {
4507
3545
  *
4508
3546
  * @param {GroupEmptyStateProps} props - Component props
4509
3547
  * @param {string} props.message - Message to display
4510
- * @returns {JSX.Element} The empty state component
3548
+ * @returns {React.ReactElement} The empty state component
4511
3549
  */
4512
3550
  var GroupEmptyState = function (_a) {
4513
3551
  var message = _a.message;
@@ -4516,7 +3554,7 @@ var GroupEmptyState = function (_a) {
4516
3554
  /**
4517
3555
  * Component to render all sections in a group
4518
3556
  *
4519
- * @returns {JSX.Element} The sections component
3557
+ * @returns {React.ReactElement} The sections component
4520
3558
  */
4521
3559
  var GroupSections = function () {
4522
3560
  var groupData = useGroupContext().groupData;
@@ -4542,7 +3580,7 @@ var GroupSections = function () {
4542
3580
  *
4543
3581
  * @param {GroupProps} props - Component props
4544
3582
  * @param {string} props.id - The unique identifier of the group to fetch and display
4545
- * @returns {JSX.Element|null} The rendered group or null if invalid ID
3583
+ * @returns {React.ReactElement|null} The rendered group or null if invalid ID
4546
3584
  */
4547
3585
  var Group = function (_a) {
4548
3586
  var id = _a.id, _b = _a.enablePullToRefresh, enablePullToRefresh = _b === void 0 ? true : _b, onRefresh = _a.onRefresh;
@@ -4785,7 +3823,7 @@ var usePointsTileStyles = function (isFullSize) {
4785
3823
  /**
4786
3824
  * Renders formatted points value for a Points Tile.
4787
3825
  *
4788
- * @returns JSX.Element or null if points are undefined or zero
3826
+ * @returns React.ReactElement or null if points are undefined or zero
4789
3827
  */
4790
3828
  var PointsTileFormattedPoints = function () {
4791
3829
  var styles = usePointsTileStyles();
@@ -4803,7 +3841,7 @@ var PointsTileFormattedPoints = function () {
4803
3841
  /**
4804
3842
  * Renders the media of a Points Tile.
4805
3843
  *
4806
- * @returns JSX.Element or null if media is not present
3844
+ * @returns React.ReactElement or null if media is not present
4807
3845
  */
4808
3846
  var PointsTileMedia = function (_a) {
4809
3847
  var isFullSize = _a.isFullSize;
@@ -4820,7 +3858,7 @@ var PointsTileMedia = function (_a) {
4820
3858
  /**
4821
3859
  * Renders the title of a Points Tile.
4822
3860
  *
4823
- * @returns JSX.Element or null if no title is present
3861
+ * @returns React.ReactElement or null if no title is present
4824
3862
  */
4825
3863
  var PointsTileTitle = function () {
4826
3864
  var tileContext = useTileContext();
@@ -4835,7 +3873,7 @@ var PointsTileTitle = function () {
4835
3873
  /**
4836
3874
  * Renders a chevron icon for a Roundup Tile.
4837
3875
  *
4838
- * @returns JSX.Element
3876
+ * @returns React.ReactElement
4839
3877
  */
4840
3878
  var PointsTileChevron = function () {
4841
3879
  var _a, _b;
@@ -4854,7 +3892,7 @@ var PointsTileChevron = function () {
4854
3892
  * The PointsTile component renders a tile with media, title, and formatted points.
4855
3893
  *
4856
3894
  * @param props - Component props
4857
- * @returns JSX.Element or null if tile is inactive or missing required props
3895
+ * @returns React.ReactElement or null if tile is inactive or missing required props
4858
3896
  */
4859
3897
  var PointsTileRoot = function (_a) {
4860
3898
  var tile = _a.tile;
@@ -4916,7 +3954,7 @@ var useRewardCategoryTileStyles = function () {
4916
3954
  /**
4917
3955
  * Renders the header for a Reward Category Tile.
4918
3956
  *
4919
- * @returns JSX.Element or null if showName is false or name is not present
3957
+ * @returns React.ReactElement or null if showName is false or name is not present
4920
3958
  */
4921
3959
  var RewardCategoryHeader = function () {
4922
3960
  var styles = useRewardCategoryTileStyles();
@@ -4933,7 +3971,7 @@ var RewardCategoryHeader = function () {
4933
3971
  /**
4934
3972
  * Renders the background media for a Reward Category Tile.
4935
3973
  *
4936
- * @returns JSX.Element or null if no artwork URL is present
3974
+ * @returns React.ReactElement or null if no artwork URL is present
4937
3975
  */
4938
3976
  var RewardCategoryMedia = function () {
4939
3977
  var styles = useRewardCategoryTileStyles();
@@ -4951,7 +3989,7 @@ var RewardCategoryMedia = function () {
4951
3989
  *
4952
3990
  * @param {RewardCategoryTileProps} props - The component props
4953
3991
  * @param {Tile} props.tile - The tile data to render
4954
- * @returns {JSX.Element|null} Rendered component or null if tile is inactive or missing configuration
3992
+ * @returns {React.ReactElement|null} Rendered component or null if tile is inactive or missing configuration
4955
3993
  */
4956
3994
  var RewardCategoryTileRoot = function (_a) {
4957
3995
  var tile = _a.tile;
@@ -4971,7 +4009,7 @@ var RewardCategoryTile$1 = withTileFetching(RewardCategoryTile);
4971
4009
  /**
4972
4010
  * Renders a chevron icon for a Reward Tile.
4973
4011
  *
4974
- * @returns JSX.Element
4012
+ * @returns React.ReactElement
4975
4013
  */
4976
4014
  var RewardTileChevron = function () {
4977
4015
  var _a;
@@ -5032,7 +4070,7 @@ var useRewardTileStyles = function () {
5032
4070
  *
5033
4071
  * @param props {RewardTileMediaProps} - Component props
5034
4072
  * @param props.isArtworkOnly {boolean} - Whether the media should be rendered as an artwork only component
5035
- * @returns JSX.Element or null if no artwork URL is present or artwork should not be shown
4073
+ * @returns React.ReactElement or null if no artwork URL is present or artwork should not be shown
5036
4074
  */
5037
4075
  var RewardTileMedia = function (_a) {
5038
4076
  var isArtworkOnly = _a.isArtworkOnly;
@@ -5052,7 +4090,7 @@ var RewardTileMedia = function (_a) {
5052
4090
  /**
5053
4091
  * Renders the points value of a Reward Tile.
5054
4092
  *
5055
- * @returns JSX.Element or null if price should not be shown or is zero/undefined
4093
+ * @returns React.ReactElement or null if price should not be shown or is zero/undefined
5056
4094
  */
5057
4095
  var RewardTilePoints = function () {
5058
4096
  var styles = useRewardTileStyles();
@@ -5070,7 +4108,7 @@ var RewardTilePoints = function () {
5070
4108
  /**
5071
4109
  * Renders the summary of a Reward Tile.
5072
4110
  *
5073
- * @returns JSX.Element or null if no summary is present
4111
+ * @returns React.ReactElement or null if no summary is present
5074
4112
  */
5075
4113
  var RewardTileSummary = function () {
5076
4114
  var tileContext = useTileContext();
@@ -5087,7 +4125,7 @@ var RewardTileSummary = function () {
5087
4125
  /**
5088
4126
  * Renders the title of a Reward Tile.
5089
4127
  *
5090
- * @returns JSX.Element or null if no name is present
4128
+ * @returns React.ReactElement or null if no name is present
5091
4129
  */
5092
4130
  var RewardTileTitle = function () {
5093
4131
  var tileContext = useTileContext();
@@ -5121,7 +4159,7 @@ var isArtworkOnly = function (configuration) {
5121
4159
  *
5122
4160
  * @param {RewardTileProps} props - Component props
5123
4161
  * @param {Tile} props.tile - The tile data to render
5124
- * @returns JSX.Element or null if tile is inactive or not a full-height tile
4162
+ * @returns React.ReactElement or null if tile is inactive or not a full-height tile
5125
4163
  */
5126
4164
  var RewardTileRoot = function (_a) {
5127
4165
  var tile = _a.tile;
@@ -5233,7 +4271,7 @@ TierTile.Empty = TierTileEmpty;
5233
4271
  /**
5234
4272
  * Renders formatted points value for a Roundup Tile.
5235
4273
  *
5236
- * @returns JSX.Element or null if points are undefined or zero
4274
+ * @returns React.ReactElement or null if points are undefined or zero
5237
4275
  */
5238
4276
  var RoundupTileFormattedPoints = function () {
5239
4277
  var tileContext = useTileContext();
@@ -5312,7 +4350,7 @@ var useRoundupTileStyles = function (isFullSize) {
5312
4350
  /**
5313
4351
  * Renders the media of a Points Tile.
5314
4352
  *
5315
- * @returns JSX.Element or null if media is not present
4353
+ * @returns React.ReactElement or null if media is not present
5316
4354
  */
5317
4355
  var RoundupTileMedia = function (_a) {
5318
4356
  var isFullSize = _a.isFullSize;
@@ -5329,7 +4367,7 @@ var RoundupTileMedia = function (_a) {
5329
4367
  /**
5330
4368
  * Renders the title of a Roundup Tile.
5331
4369
  *
5332
- * @returns JSX.Element or null if no title is present
4370
+ * @returns React.ReactElement or null if no title is present
5333
4371
  */
5334
4372
  var RoundupTileTitle = function () {
5335
4373
  var tileContext = useTileContext();
@@ -5344,7 +4382,7 @@ var RoundupTileTitle = function () {
5344
4382
  /**
5345
4383
  * Renders a chevron icon for a Roundup Tile.
5346
4384
  *
5347
- * @returns JSX.Element
4385
+ * @returns React.ReactElement
5348
4386
  */
5349
4387
  var RoundupTileChevron = function () {
5350
4388
  var _a, _b;
@@ -5363,7 +4401,7 @@ var RoundupTileChevron = function () {
5363
4401
  * The PointsTile component renders a tile with media, title, and formatted points.
5364
4402
  *
5365
4403
  * @param props - Component props
5366
- * @returns JSX.Element or null if tile is inactive or missing required props
4404
+ * @returns React.ReactElement or null if tile is inactive or missing required props
5367
4405
  */
5368
4406
  var RoundupTileRoot = function (_a) {
5369
4407
  var tile = _a.tile;
@@ -5435,6 +4473,81 @@ var styles = reactNative.StyleSheet.create({
5435
4473
  },
5436
4474
  });
5437
4475
 
4476
+ var useChipStyles = function () {
4477
+ var theme = useWllSdk().theme;
4478
+ var _a = useResponsive$1(), isDesktop = _a.isDesktop, isTablet = _a.isTablet;
4479
+ var paddingHorizontal = useResponsiveValue(12, 8, isDesktop, isTablet);
4480
+ var paddingVertical = useResponsiveValue(6, 3, isDesktop, isTablet);
4481
+ var fontSize = useResponsiveValue(theme.sizes.sm, theme.sizes.xs, isDesktop, isTablet);
4482
+ var lineHeight = Math.max(fontSize, Math.round(fontSize * 1.3));
4483
+ return reactNative.StyleSheet.create({
4484
+ container: {
4485
+ alignSelf: 'flex-start',
4486
+ alignItems: 'center',
4487
+ justifyContent: 'center',
4488
+ flexDirection: 'row',
4489
+ paddingHorizontal: paddingHorizontal,
4490
+ paddingVertical: paddingVertical,
4491
+ borderRadius: theme.sizes.borderRadiusRounded,
4492
+ overflow: 'hidden',
4493
+ flexShrink: 1,
4494
+ },
4495
+ label: {
4496
+ fontFamily: theme.fontFamily,
4497
+ fontSize: fontSize,
4498
+ lineHeight: lineHeight,
4499
+ fontWeight: '400',
4500
+ flexShrink: 1,
4501
+ },
4502
+ });
4503
+ };
4504
+
4505
+ var mapLiveRegion = function (ariaLive) {
4506
+ if (ariaLive === void 0) { ariaLive = 'polite'; }
4507
+ switch (ariaLive) {
4508
+ case 'assertive':
4509
+ return { native: 'assertive', web: 'assertive' };
4510
+ case 'off':
4511
+ return { native: 'none', web: 'off' };
4512
+ case 'polite':
4513
+ default:
4514
+ return { native: 'polite', web: 'polite' };
4515
+ }
4516
+ };
4517
+ var Chip = function (_a) {
4518
+ var label = _a.label, _b = _a.variant, variant = _b === void 0 ? exports.StatusVariant.PRIMARY : _b, _c = _a.role, role = _c === void 0 ? 'status' : _c, _d = _a.ariaLive, ariaLive = _d === void 0 ? 'polite' : _d, accessibilityLabel = _a.accessibilityLabel, testID = _a.testID, style = _a.style, labelStyle = _a.labelStyle;
4519
+ var styles = useChipStyles();
4520
+ var theme = useWllSdk().theme;
4521
+ var variantStyles = React.useMemo(function () {
4522
+ var _a, _b;
4523
+ switch (variant) {
4524
+ case exports.StatusVariant.GREEN:
4525
+ return {
4526
+ container: { backgroundColor: '#d1f0e1' },
4527
+ label: { color: '#128e55' },
4528
+ };
4529
+ case exports.StatusVariant.GREY:
4530
+ return {
4531
+ container: { backgroundColor: '#dadde0' },
4532
+ label: { color: '#666666' },
4533
+ };
4534
+ case exports.StatusVariant.PRIMARY:
4535
+ default:
4536
+ return {
4537
+ container: {
4538
+ backgroundColor: (_b = (_a = theme.alphaDerivedPrimary) === null || _a === void 0 ? void 0 : _a[10]) !== null && _b !== void 0 ? _b : theme.primary,
4539
+ },
4540
+ label: { color: theme.primary },
4541
+ };
4542
+ }
4543
+ }, [theme, variant]);
4544
+ var computedAccessibilityLabel = accessibilityLabel !== null && accessibilityLabel !== void 0 ? accessibilityLabel : (typeof label === 'string' ? label : undefined);
4545
+ var _e = mapLiveRegion(ariaLive), accessibilityLiveRegion = _e.native, ariaLiveValue = _e.web;
4546
+ var isSimpleLabel = typeof label === 'string';
4547
+ var isIndividuallyAccessible = computedAccessibilityLabel !== undefined;
4548
+ return (jsxRuntimeExports.jsx(reactNative.View, { style: [styles.container, variantStyles.container, style], accessible: isIndividuallyAccessible, accessibilityRole: role, accessibilityLiveRegion: accessibilityLiveRegion, accessibilityLabel: computedAccessibilityLabel, "aria-live": ariaLiveValue, testID: testID, children: isSimpleLabel ? (jsxRuntimeExports.jsx(reactNative.Text, { style: [styles.label, variantStyles.label, labelStyle], numberOfLines: 1, ellipsizeMode: "tail", accessible: false, importantForAccessibility: "no", children: label })) : (label) }));
4549
+ };
4550
+
5438
4551
  var Reward = /** @class */ (function () {
5439
4552
  function Reward() {
5440
4553
  }
@@ -5450,6 +4563,7 @@ exports.BaseTile = BaseTile;
5450
4563
  exports.Button = Button;
5451
4564
  exports.Carousel = Carousel;
5452
4565
  exports.CarouselNavButton = CarouselNavButton;
4566
+ exports.Chip = Chip;
5453
4567
  exports.Column = Column;
5454
4568
  exports.ContentTile = ContentTile$1;
5455
4569
  exports.ContentTileConfig = ContentTileConfig;