@wlloyalty/wll-react-sdk 1.8.1 → 1.10.0-alpha.20260628090616.f2fb2a1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +66 -48
- package/dist/native.js +148 -552
- package/dist/native.js.map +1 -1
- package/dist/types/components/atoms/Chip/styles.d.ts +1 -1
- package/dist/types/components/organisms/ContentTile/content-tile-media.d.ts +5 -0
- package/dist/types/types/theme.d.ts +19 -2
- package/dist/types/utils/storybookThemes.d.ts +5 -0
- package/dist/web.js +1055 -19241
- package/dist/web.js.map +1 -1
- package/package.json +3 -3
package/dist/native.js
CHANGED
|
@@ -1,444 +1,31 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var jsxRuntime = require('react/jsx-runtime');
|
|
4
4
|
var reactNative = require('react-native');
|
|
5
|
+
var React = require('react');
|
|
5
6
|
var Color = require('color');
|
|
6
7
|
var LucideReactIcons = require('lucide-react');
|
|
7
8
|
|
|
8
9
|
function _interopNamespaceDefault(e) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
10
|
+
var n = Object.create(null);
|
|
11
|
+
if (e) {
|
|
12
|
+
Object.keys(e).forEach(function (k) {
|
|
13
|
+
if (k !== 'default') {
|
|
14
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
15
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
16
|
+
enumerable: true,
|
|
17
|
+
get: function () { return e[k]; }
|
|
18
|
+
});
|
|
19
|
+
}
|
|
17
20
|
});
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
n.default = e;
|
|
22
|
-
return Object.freeze(n);
|
|
21
|
+
}
|
|
22
|
+
n.default = e;
|
|
23
|
+
return Object.freeze(n);
|
|
23
24
|
}
|
|
24
25
|
|
|
25
26
|
var React__namespace = /*#__PURE__*/_interopNamespaceDefault(React);
|
|
26
27
|
var LucideReactIcons__namespace = /*#__PURE__*/_interopNamespaceDefault(LucideReactIcons);
|
|
27
28
|
|
|
28
|
-
var jsxRuntime = {exports: {}};
|
|
29
|
-
|
|
30
|
-
var reactJsxRuntime_production = {};
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
* @license React
|
|
34
|
-
* react-jsx-runtime.production.js
|
|
35
|
-
*
|
|
36
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
37
|
-
*
|
|
38
|
-
* This source code is licensed under the MIT license found in the
|
|
39
|
-
* LICENSE file in the root directory of this source tree.
|
|
40
|
-
*/
|
|
41
|
-
|
|
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;
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
var reactJsxRuntime_development = {};
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @license React
|
|
77
|
-
* react-jsx-runtime.development.js
|
|
78
|
-
*
|
|
79
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
80
|
-
*
|
|
81
|
-
* This source code is licensed under the MIT license found in the
|
|
82
|
-
* LICENSE file in the root directory of this source tree.
|
|
83
|
-
*/
|
|
84
|
-
|
|
85
|
-
var hasRequiredReactJsxRuntime_development;
|
|
86
|
-
|
|
87
|
-
function requireReactJsxRuntime_development () {
|
|
88
|
-
if (hasRequiredReactJsxRuntime_development) return reactJsxRuntime_development;
|
|
89
|
-
hasRequiredReactJsxRuntime_development = 1;
|
|
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";
|
|
112
|
-
}
|
|
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";
|
|
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) {}
|
|
147
|
-
}
|
|
148
|
-
return null;
|
|
149
|
-
}
|
|
150
|
-
function testStringCoercion(value) {
|
|
151
|
-
return "" + value;
|
|
152
|
-
}
|
|
153
|
-
function checkKeyStringCoercion(value) {
|
|
154
|
-
try {
|
|
155
|
-
testStringCoercion(value);
|
|
156
|
-
var JSCompiler_inline_result = !1;
|
|
157
|
-
} catch (e) {
|
|
158
|
-
JSCompiler_inline_result = !0;
|
|
159
|
-
}
|
|
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);
|
|
175
|
-
}
|
|
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 "<...>";
|
|
185
|
-
try {
|
|
186
|
-
var name = getComponentNameFromType(type);
|
|
187
|
-
return name ? "<" + name + ">" : "<...>";
|
|
188
|
-
} catch (x) {
|
|
189
|
-
return "<...>";
|
|
190
|
-
}
|
|
191
|
-
}
|
|
192
|
-
function getOwner() {
|
|
193
|
-
var dispatcher = ReactSharedInternals.A;
|
|
194
|
-
return null === dispatcher ? null : dispatcher.getOwner();
|
|
195
|
-
}
|
|
196
|
-
function UnknownOwner() {
|
|
197
|
-
return Error("react-stack-top-frame");
|
|
198
|
-
}
|
|
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;
|
|
203
|
-
}
|
|
204
|
-
return void 0 !== config.key;
|
|
205
|
-
}
|
|
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
|
-
});
|
|
220
|
-
}
|
|
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;
|
|
230
|
-
}
|
|
231
|
-
function ReactElement(type, key, props, owner, debugStack, debugTask) {
|
|
232
|
-
var refProp = props.ref;
|
|
233
|
-
type = {
|
|
234
|
-
$$typeof: REACT_ELEMENT_TYPE,
|
|
235
|
-
type: type,
|
|
236
|
-
key: key,
|
|
237
|
-
props: props,
|
|
238
|
-
_owner: owner
|
|
239
|
-
};
|
|
240
|
-
null !== (void 0 !== refProp ? refProp : null)
|
|
241
|
-
? Object.defineProperty(type, "ref", {
|
|
242
|
-
enumerable: !1,
|
|
243
|
-
get: elementRefGetterWithDeprecationWarning
|
|
244
|
-
})
|
|
245
|
-
: Object.defineProperty(type, "ref", { enumerable: !1, value: null });
|
|
246
|
-
type._store = {};
|
|
247
|
-
Object.defineProperty(type._store, "validated", {
|
|
248
|
-
configurable: !1,
|
|
249
|
-
enumerable: !1,
|
|
250
|
-
writable: !0,
|
|
251
|
-
value: 0
|
|
252
|
-
});
|
|
253
|
-
Object.defineProperty(type, "_debugInfo", {
|
|
254
|
-
configurable: !1,
|
|
255
|
-
enumerable: !1,
|
|
256
|
-
writable: !0,
|
|
257
|
-
value: null
|
|
258
|
-
});
|
|
259
|
-
Object.defineProperty(type, "_debugStack", {
|
|
260
|
-
configurable: !1,
|
|
261
|
-
enumerable: !1,
|
|
262
|
-
writable: !0,
|
|
263
|
-
value: debugStack
|
|
264
|
-
});
|
|
265
|
-
Object.defineProperty(type, "_debugTask", {
|
|
266
|
-
configurable: !1,
|
|
267
|
-
enumerable: !1,
|
|
268
|
-
writable: !0,
|
|
269
|
-
value: debugTask
|
|
270
|
-
});
|
|
271
|
-
Object.freeze && (Object.freeze(type.props), Object.freeze(type));
|
|
272
|
-
return type;
|
|
273
|
-
}
|
|
274
|
-
function jsxDEVImpl(
|
|
275
|
-
type,
|
|
276
|
-
config,
|
|
277
|
-
maybeKey,
|
|
278
|
-
isStaticChildren,
|
|
279
|
-
debugStack,
|
|
280
|
-
debugTask
|
|
281
|
-
) {
|
|
282
|
-
var children = config.children;
|
|
283
|
-
if (void 0 !== children)
|
|
284
|
-
if (isStaticChildren)
|
|
285
|
-
if (isArrayImpl(children)) {
|
|
286
|
-
for (
|
|
287
|
-
isStaticChildren = 0;
|
|
288
|
-
isStaticChildren < children.length;
|
|
289
|
-
isStaticChildren++
|
|
290
|
-
)
|
|
291
|
-
validateChildKeys(children[isStaticChildren]);
|
|
292
|
-
Object.freeze && Object.freeze(children);
|
|
293
|
-
} else
|
|
294
|
-
console.error(
|
|
295
|
-
"React.jsx: Static children should always be an array. You are likely explicitly calling React.jsxs or React.jsxDEV. Use the Babel transform instead."
|
|
296
|
-
);
|
|
297
|
-
else validateChildKeys(children);
|
|
298
|
-
if (hasOwnProperty.call(config, "key")) {
|
|
299
|
-
children = getComponentNameFromType(type);
|
|
300
|
-
var keys = Object.keys(config).filter(function (k) {
|
|
301
|
-
return "key" !== k;
|
|
302
|
-
});
|
|
303
|
-
isStaticChildren =
|
|
304
|
-
0 < keys.length
|
|
305
|
-
? "{key: someKey, " + keys.join(": ..., ") + ": ...}"
|
|
306
|
-
: "{key: someKey}";
|
|
307
|
-
didWarnAboutKeySpread[children + isStaticChildren] ||
|
|
308
|
-
((keys =
|
|
309
|
-
0 < keys.length ? "{" + keys.join(": ..., ") + ": ...}" : "{}"),
|
|
310
|
-
console.error(
|
|
311
|
-
'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} />',
|
|
312
|
-
isStaticChildren,
|
|
313
|
-
children,
|
|
314
|
-
keys,
|
|
315
|
-
children
|
|
316
|
-
),
|
|
317
|
-
(didWarnAboutKeySpread[children + isStaticChildren] = !0));
|
|
318
|
-
}
|
|
319
|
-
children = null;
|
|
320
|
-
void 0 !== maybeKey &&
|
|
321
|
-
(checkKeyStringCoercion(maybeKey), (children = "" + maybeKey));
|
|
322
|
-
hasValidKey(config) &&
|
|
323
|
-
(checkKeyStringCoercion(config.key), (children = "" + config.key));
|
|
324
|
-
if ("key" in config) {
|
|
325
|
-
maybeKey = {};
|
|
326
|
-
for (var propName in config)
|
|
327
|
-
"key" !== propName && (maybeKey[propName] = config[propName]);
|
|
328
|
-
} else maybeKey = config;
|
|
329
|
-
children &&
|
|
330
|
-
defineKeyPropWarningGetter(
|
|
331
|
-
maybeKey,
|
|
332
|
-
"function" === typeof type
|
|
333
|
-
? type.displayName || type.name || "Unknown"
|
|
334
|
-
: type
|
|
335
|
-
);
|
|
336
|
-
return ReactElement(
|
|
337
|
-
type,
|
|
338
|
-
children,
|
|
339
|
-
maybeKey,
|
|
340
|
-
getOwner(),
|
|
341
|
-
debugStack,
|
|
342
|
-
debugTask
|
|
343
|
-
);
|
|
344
|
-
}
|
|
345
|
-
function validateChildKeys(node) {
|
|
346
|
-
isValidElement(node)
|
|
347
|
-
? node._store && (node._store.validated = 1)
|
|
348
|
-
: "object" === typeof node &&
|
|
349
|
-
null !== node &&
|
|
350
|
-
node.$$typeof === REACT_LAZY_TYPE &&
|
|
351
|
-
("fulfilled" === node._payload.status
|
|
352
|
-
? isValidElement(node._payload.value) &&
|
|
353
|
-
node._payload.value._store &&
|
|
354
|
-
(node._payload.value._store.validated = 1)
|
|
355
|
-
: node._store && (node._store.validated = 1));
|
|
356
|
-
}
|
|
357
|
-
function isValidElement(object) {
|
|
358
|
-
return (
|
|
359
|
-
"object" === typeof object &&
|
|
360
|
-
null !== object &&
|
|
361
|
-
object.$$typeof === REACT_ELEMENT_TYPE
|
|
362
|
-
);
|
|
363
|
-
}
|
|
364
|
-
var React$1 = React,
|
|
365
|
-
REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element"),
|
|
366
|
-
REACT_PORTAL_TYPE = Symbol.for("react.portal"),
|
|
367
|
-
REACT_FRAGMENT_TYPE = Symbol.for("react.fragment"),
|
|
368
|
-
REACT_STRICT_MODE_TYPE = Symbol.for("react.strict_mode"),
|
|
369
|
-
REACT_PROFILER_TYPE = Symbol.for("react.profiler"),
|
|
370
|
-
REACT_CONSUMER_TYPE = Symbol.for("react.consumer"),
|
|
371
|
-
REACT_CONTEXT_TYPE = Symbol.for("react.context"),
|
|
372
|
-
REACT_FORWARD_REF_TYPE = Symbol.for("react.forward_ref"),
|
|
373
|
-
REACT_SUSPENSE_TYPE = Symbol.for("react.suspense"),
|
|
374
|
-
REACT_SUSPENSE_LIST_TYPE = Symbol.for("react.suspense_list"),
|
|
375
|
-
REACT_MEMO_TYPE = Symbol.for("react.memo"),
|
|
376
|
-
REACT_LAZY_TYPE = Symbol.for("react.lazy"),
|
|
377
|
-
REACT_ACTIVITY_TYPE = Symbol.for("react.activity"),
|
|
378
|
-
REACT_CLIENT_REFERENCE = Symbol.for("react.client.reference"),
|
|
379
|
-
ReactSharedInternals =
|
|
380
|
-
React$1.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,
|
|
381
|
-
hasOwnProperty = Object.prototype.hasOwnProperty,
|
|
382
|
-
isArrayImpl = Array.isArray,
|
|
383
|
-
createTask = console.createTask
|
|
384
|
-
? console.createTask
|
|
385
|
-
: function () {
|
|
386
|
-
return null;
|
|
387
|
-
};
|
|
388
|
-
React$1 = {
|
|
389
|
-
react_stack_bottom_frame: function (callStackForError) {
|
|
390
|
-
return callStackForError();
|
|
391
|
-
}
|
|
392
|
-
};
|
|
393
|
-
var specialPropKeyWarningShown;
|
|
394
|
-
var didWarnAboutElementRef = {};
|
|
395
|
-
var unknownOwnerDebugStack = React$1.react_stack_bottom_frame.bind(
|
|
396
|
-
React$1,
|
|
397
|
-
UnknownOwner
|
|
398
|
-
)();
|
|
399
|
-
var unknownOwnerDebugTask = createTask(getTaskName(UnknownOwner));
|
|
400
|
-
var didWarnAboutKeySpread = {};
|
|
401
|
-
reactJsxRuntime_development.Fragment = REACT_FRAGMENT_TYPE;
|
|
402
|
-
reactJsxRuntime_development.jsx = function (type, config, maybeKey) {
|
|
403
|
-
var trackActualOwner =
|
|
404
|
-
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
405
|
-
return jsxDEVImpl(
|
|
406
|
-
type,
|
|
407
|
-
config,
|
|
408
|
-
maybeKey,
|
|
409
|
-
!1,
|
|
410
|
-
trackActualOwner
|
|
411
|
-
? Error("react-stack-top-frame")
|
|
412
|
-
: unknownOwnerDebugStack,
|
|
413
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
414
|
-
);
|
|
415
|
-
};
|
|
416
|
-
reactJsxRuntime_development.jsxs = function (type, config, maybeKey) {
|
|
417
|
-
var trackActualOwner =
|
|
418
|
-
1e4 > ReactSharedInternals.recentlyCreatedOwnerStacks++;
|
|
419
|
-
return jsxDEVImpl(
|
|
420
|
-
type,
|
|
421
|
-
config,
|
|
422
|
-
maybeKey,
|
|
423
|
-
!0,
|
|
424
|
-
trackActualOwner
|
|
425
|
-
? Error("react-stack-top-frame")
|
|
426
|
-
: unknownOwnerDebugStack,
|
|
427
|
-
trackActualOwner ? createTask(getTaskName(type)) : unknownOwnerDebugTask
|
|
428
|
-
);
|
|
429
|
-
};
|
|
430
|
-
})();
|
|
431
|
-
return reactJsxRuntime_development;
|
|
432
|
-
}
|
|
433
|
-
|
|
434
|
-
if (process.env.NODE_ENV === 'production') {
|
|
435
|
-
jsxRuntime.exports = requireReactJsxRuntime_production();
|
|
436
|
-
} else {
|
|
437
|
-
jsxRuntime.exports = requireReactJsxRuntime_development();
|
|
438
|
-
}
|
|
439
|
-
|
|
440
|
-
var jsxRuntimeExports = jsxRuntime.exports;
|
|
441
|
-
|
|
442
29
|
/******************************************************************************
|
|
443
30
|
Copyright (c) Microsoft Corporation.
|
|
444
31
|
|
|
@@ -1052,7 +639,7 @@ function ResponsiveProvider(_a) {
|
|
|
1052
639
|
}
|
|
1053
640
|
};
|
|
1054
641
|
}, [getDerivedState]);
|
|
1055
|
-
return (
|
|
642
|
+
return (jsxRuntime.jsx(ResponsiveContext.Provider, { value: value, children: children }));
|
|
1056
643
|
}
|
|
1057
644
|
function useResponsive() {
|
|
1058
645
|
var context = React.useContext(ResponsiveContext);
|
|
@@ -1072,8 +659,9 @@ exports.CoreApiUrl = void 0;
|
|
|
1072
659
|
})(exports.CoreApiUrl || (exports.CoreApiUrl = {}));
|
|
1073
660
|
var createTheme = function (baseTheme) {
|
|
1074
661
|
if (baseTheme === void 0) { baseTheme = {}; }
|
|
1075
|
-
var
|
|
1076
|
-
|
|
662
|
+
var userSizes = baseTheme.sizes, restBaseTheme = __rest(baseTheme, ["sizes"]);
|
|
663
|
+
var mergedTheme = __assign(__assign({}, defaultTheme), restBaseTheme);
|
|
664
|
+
return __assign(__assign({}, mergedTheme), { sizes: __assign(__assign({}, sizes), userSizes), derivedBackground: getDerivedColor(mergedTheme.background), primaryText: getReadableTextColor(mergedTheme.primary), accentText: getReadableTextColor(mergedTheme.accent), positiveText: getReadableTextColor(mergedTheme.positive), negativeText: getReadableTextColor(mergedTheme.negative), derivedSurface: getDerivedColorPercentages(mergedTheme.surface), derivedSurfaceText: getDerivedColorPercentages(mergedTheme.surfaceText), alphaDerivedPrimary: getAlphaDerivedColors(mergedTheme.primary), alphaDerivedText: getAlphaDerivedColors(mergedTheme.text) });
|
|
1077
665
|
};
|
|
1078
666
|
var WllSdkContext = React.createContext(undefined);
|
|
1079
667
|
var WllSdkProvider = function (_a) {
|
|
@@ -1137,7 +725,7 @@ var WllSdkProvider = function (_a) {
|
|
|
1137
725
|
subscribeToDataChange,
|
|
1138
726
|
config,
|
|
1139
727
|
]);
|
|
1140
|
-
return (
|
|
728
|
+
return (jsxRuntime.jsx(WllSdkContext.Provider, { value: contextValue, children: jsxRuntime.jsx(ResponsiveProvider, { children: children }) }));
|
|
1141
729
|
};
|
|
1142
730
|
var useWllSdk = function () {
|
|
1143
731
|
var context = React.useContext(WllSdkContext);
|
|
@@ -1266,7 +854,7 @@ var Button = function (_a) {
|
|
|
1266
854
|
var buttonStyle = useButtonStyles(theme, variant);
|
|
1267
855
|
var textStyle = useTextStyles(theme, variant);
|
|
1268
856
|
var styles = useButtonDynamicStyles();
|
|
1269
|
-
return (
|
|
857
|
+
return (jsxRuntime.jsxs(reactNative.Pressable, { style: function (_a) {
|
|
1270
858
|
var pressed = _a.pressed;
|
|
1271
859
|
return [
|
|
1272
860
|
styles.button,
|
|
@@ -1275,7 +863,7 @@ var Button = function (_a) {
|
|
|
1275
863
|
disabled && { opacity: 0.5 },
|
|
1276
864
|
pressed && { opacity: 0.7 },
|
|
1277
865
|
];
|
|
1278
|
-
}, onPress: onPress, disabled: disabled, accessible: true, role: "button", accessibilityLabel: accessibilityLabel || title, accessibilityHint: accessibilityHint, accessibilityState: { disabled: disabled }, testID: testID, children: [icon && icon, title &&
|
|
866
|
+
}, onPress: onPress, disabled: disabled, accessible: true, role: "button", accessibilityLabel: accessibilityLabel || title, accessibilityHint: accessibilityHint, accessibilityState: { disabled: disabled }, testID: testID, children: [icon && icon, title && jsxRuntime.jsx(reactNative.Text, { style: [styles.text, textStyle], children: title })] }));
|
|
1279
867
|
};
|
|
1280
868
|
|
|
1281
869
|
var LucideReactNativeIcons;
|
|
@@ -1302,22 +890,22 @@ var Icon = function (_a) {
|
|
|
1302
890
|
return null;
|
|
1303
891
|
}
|
|
1304
892
|
if (reactNative.Platform.OS === 'web') {
|
|
1305
|
-
return (
|
|
893
|
+
return (jsxRuntime.jsx(reactNative.View, __assign({}, props, { children: jsxRuntime.jsx(LucideIcon, { color: color, size: size, strokeWidth: strokeWidth }) })));
|
|
1306
894
|
}
|
|
1307
895
|
else {
|
|
1308
|
-
return (
|
|
896
|
+
return (jsxRuntime.jsx(reactNative.View, __assign({}, props, { children: jsxRuntime.jsx(LucideIcon, { color: color, size: size, strokeWidth: strokeWidth }) })));
|
|
1309
897
|
}
|
|
1310
898
|
};
|
|
1311
899
|
|
|
1312
900
|
var LoadingIndicator = function () {
|
|
1313
901
|
var theme = useWllSdk().theme;
|
|
1314
|
-
return (
|
|
902
|
+
return (jsxRuntime.jsx(reactNative.View, { style: [
|
|
1315
903
|
styles$8.container,
|
|
1316
904
|
{
|
|
1317
905
|
borderRadius: theme.sizes.borderRadiusSm,
|
|
1318
906
|
padding: theme.sizes.md,
|
|
1319
907
|
},
|
|
1320
|
-
], children:
|
|
908
|
+
], children: jsxRuntime.jsx(reactNative.ActivityIndicator, { size: "small", color: theme.primary }) }));
|
|
1321
909
|
};
|
|
1322
910
|
var styles$8 = reactNative.StyleSheet.create({
|
|
1323
911
|
container: {
|
|
@@ -1381,7 +969,7 @@ var ProgressBar = function (_a) {
|
|
|
1381
969
|
outputRange: ['0%', '100%'],
|
|
1382
970
|
}),
|
|
1383
971
|
};
|
|
1384
|
-
return (
|
|
972
|
+
return (jsxRuntime.jsx(reactNative.View, { style: containerStyle, children: jsxRuntime.jsx(reactNative.Animated.View, { style: [styles.progress, progressStyles, progressWidth] }) }));
|
|
1385
973
|
};
|
|
1386
974
|
|
|
1387
975
|
exports.CTALinkTarget = void 0;
|
|
@@ -1656,7 +1244,7 @@ var Text = function (_a) {
|
|
|
1656
1244
|
styles.webOverrides,
|
|
1657
1245
|
style,
|
|
1658
1246
|
];
|
|
1659
|
-
return (
|
|
1247
|
+
return (jsxRuntime.jsx(reactNative.Text, __assign({ style: combinedStyles }, props, { accessible: true, role: accessibilityRole })));
|
|
1660
1248
|
};
|
|
1661
1249
|
|
|
1662
1250
|
/**
|
|
@@ -1684,7 +1272,7 @@ var BaseTileBody = function (props) {
|
|
|
1684
1272
|
return undefined;
|
|
1685
1273
|
return isDesktop ? 3 : isTablet ? 4 : 3;
|
|
1686
1274
|
};
|
|
1687
|
-
return (
|
|
1275
|
+
return (jsxRuntime.jsx(Text, __assign({ variant: "body" }, props, { role: "article", accessibilityLabel: body, numberOfLines: getNumberOfLines(), testID: "tile-body", children: body })));
|
|
1688
1276
|
};
|
|
1689
1277
|
|
|
1690
1278
|
/**
|
|
@@ -1828,7 +1416,7 @@ var BaseTileContent = function (_a) {
|
|
|
1828
1416
|
return null;
|
|
1829
1417
|
if (shouldHideContentForHalfTile(sizeInfo, artworkUrl))
|
|
1830
1418
|
return null;
|
|
1831
|
-
return (
|
|
1419
|
+
return (jsxRuntime.jsx(reactNative.View, { testID: "tile-content", style: [
|
|
1832
1420
|
baseStyles.content,
|
|
1833
1421
|
{
|
|
1834
1422
|
justifyContent: 'center',
|
|
@@ -1857,7 +1445,7 @@ var BaseTileHeader = function (_a) {
|
|
|
1857
1445
|
return null;
|
|
1858
1446
|
var dynamicStyles = useBaseTileStyles();
|
|
1859
1447
|
var combinedStyle = __assign(__assign(__assign({}, dynamicStyles.header), { marginTop: sizeInfo.isHalfSize ? 0 : dynamicStyles.header.marginTop }), (sizeInfo.isHalfSize ? { alignItems: 'center' } : {}));
|
|
1860
|
-
return (
|
|
1448
|
+
return (jsxRuntime.jsx(reactNative.View, { style: combinedStyle, testID: "tile-header", role: "heading", children: children }));
|
|
1861
1449
|
};
|
|
1862
1450
|
|
|
1863
1451
|
/**
|
|
@@ -1874,7 +1462,7 @@ var BaseTileMedia = function (props) {
|
|
|
1874
1462
|
var styles = useBaseTileStyles();
|
|
1875
1463
|
if (!artworkUrl)
|
|
1876
1464
|
return null;
|
|
1877
|
-
return (
|
|
1465
|
+
return (jsxRuntime.jsxs(reactNative.View, { style: baseStyles.imageContainer, children: [jsxRuntime.jsx(ProgressiveImage, __assign({}, props, { source: { uri: artworkUrl }, testID: "tile-media", style: [props.style, baseStyles.media, styles.media], alt: "Content image".concat(title ? " for ".concat(title) : ''), role: "img" })), isLocked && (jsxRuntime.jsx(reactNative.View, { style: styles.lockOverlay, testID: "lock-overlay", children: jsxRuntime.jsx(Icon, { name: "LockKeyhole", size: 48, color: "white" }) }))] }));
|
|
1878
1466
|
};
|
|
1879
1467
|
|
|
1880
1468
|
/**
|
|
@@ -1897,7 +1485,7 @@ var BaseTileTitle = function () {
|
|
|
1897
1485
|
// Don't show title for half tiles with image
|
|
1898
1486
|
if ((isHalfSize && artworkUrl) || !title)
|
|
1899
1487
|
return null;
|
|
1900
|
-
return (
|
|
1488
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(Text, { variant: "title", role: "heading", accessibilityLabel: title, numberOfLines: 1, testID: "tile-title", children: title }), ctaLink && (jsxRuntime.jsx(Icon, { name: "ChevronRight", color: (_b = (_a = sdk.theme) === null || _a === void 0 ? void 0 : _a.derivedSurfaceText) === null || _b === void 0 ? void 0 : _b[20], accessibilityLabel: "View details" }))] }));
|
|
1901
1489
|
};
|
|
1902
1490
|
|
|
1903
1491
|
/**
|
|
@@ -1940,7 +1528,7 @@ var BaseTileContainer = function (_a) {
|
|
|
1940
1528
|
};
|
|
1941
1529
|
var dynamicStyles = useBaseTileStyles();
|
|
1942
1530
|
if (isInteractive) {
|
|
1943
|
-
return (
|
|
1531
|
+
return (jsxRuntime.jsx(reactNative.Pressable, { style: function (_a) {
|
|
1944
1532
|
var pressed = _a.pressed;
|
|
1945
1533
|
return [
|
|
1946
1534
|
baseStyles.container,
|
|
@@ -1955,7 +1543,7 @@ var BaseTileContainer = function (_a) {
|
|
|
1955
1543
|
}, onPress: handlePress, accessible: true, role: "button", accessibilityLabel: "".concat(title, " - Click to open"), accessibilityState: { disabled: !ctaLink }, children: children }));
|
|
1956
1544
|
}
|
|
1957
1545
|
else {
|
|
1958
|
-
return (
|
|
1546
|
+
return (jsxRuntime.jsx(reactNative.View, { style: [
|
|
1959
1547
|
baseStyles.container,
|
|
1960
1548
|
dynamicStyles.container,
|
|
1961
1549
|
{
|
|
@@ -1978,7 +1566,7 @@ var BaseTileRoot = function (_a) {
|
|
|
1978
1566
|
console.warn('BaseTile: No tile provided');
|
|
1979
1567
|
return null;
|
|
1980
1568
|
}
|
|
1981
|
-
return (
|
|
1569
|
+
return (jsxRuntime.jsx(TileContext.Provider, { value: tile, children: jsxRuntime.jsx(BaseTile.Container, { style: style, children: children }) }));
|
|
1982
1570
|
};
|
|
1983
1571
|
/**
|
|
1984
1572
|
* BaseTile component with subcomponents attached.
|
|
@@ -2010,19 +1598,19 @@ var ProgressiveImage = function (_a) {
|
|
|
2010
1598
|
var baseColor = theme.alphaDerivedPrimary[20];
|
|
2011
1599
|
var desaturatedColor = desaturateColor(baseColor);
|
|
2012
1600
|
var backgroundColor = isDesaturated ? desaturatedColor : baseColor;
|
|
2013
|
-
var baseImage = (
|
|
1601
|
+
var baseImage = (jsxRuntime.jsx(reactNative.Animated.Image, __assign({}, props, { source: source, style: [
|
|
2014
1602
|
styles$7.imageOverlay,
|
|
2015
1603
|
style,
|
|
2016
1604
|
__assign({ opacity: imageAnimated }, (IS_WEB && {
|
|
2017
1605
|
filter: isDesaturated ? 'grayscale(100%)' : undefined,
|
|
2018
1606
|
})),
|
|
2019
1607
|
], onLoad: onImageLoad, accessibilityLabel: alt, accessible: true, role: "img" })));
|
|
2020
|
-
return (
|
|
1608
|
+
return (jsxRuntime.jsxs(reactNative.View, { style: [
|
|
2021
1609
|
styles$7.container,
|
|
2022
1610
|
isHalfHeight && { minHeight: 0 },
|
|
2023
1611
|
style,
|
|
2024
1612
|
{ backgroundColor: backgroundColor },
|
|
2025
|
-
], children: [
|
|
1613
|
+
], children: [jsxRuntime.jsx(reactNative.Animated.View, { style: [
|
|
2026
1614
|
styles$7.imageOverlay,
|
|
2027
1615
|
{
|
|
2028
1616
|
backgroundColor: backgroundColor,
|
|
@@ -2033,7 +1621,7 @@ var ProgressiveImage = function (_a) {
|
|
|
2033
1621
|
},
|
|
2034
1622
|
] }), IS_WEB ? (baseImage) : (
|
|
2035
1623
|
// For React Native, use the overlay technique
|
|
2036
|
-
|
|
1624
|
+
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [baseImage, isDesaturated && (jsxRuntime.jsx(reactNative.Animated.Image, __assign({}, props, { source: source, style: [
|
|
2037
1625
|
styles$7.imageOverlay,
|
|
2038
1626
|
style,
|
|
2039
1627
|
{
|
|
@@ -2090,12 +1678,12 @@ var BaseBanner = function (_a) {
|
|
|
2090
1678
|
borderRadius: theme.sizes.borderRadiusLg,
|
|
2091
1679
|
},
|
|
2092
1680
|
];
|
|
2093
|
-
return
|
|
1681
|
+
return jsxRuntime.jsx(BannerContext.Provider, { value: tile, children: isInteractive ? (jsxRuntime.jsx(reactNative.Pressable, { testID: testID || 'banner-tile', style: function (_a) {
|
|
2094
1682
|
var pressed = _a.pressed;
|
|
2095
1683
|
return __spreadArray(__spreadArray([], commonStyles, true), [
|
|
2096
1684
|
{ opacity: pressed ? 0.7 : 1 },
|
|
2097
1685
|
], false);
|
|
2098
|
-
}, onPress: handlePress, accessible: true, role: "button", accessibilityLabel: accessibilityLabel || "".concat(title, " - Click to open"), children: children })) : (
|
|
1686
|
+
}, onPress: handlePress, accessible: true, role: "button", accessibilityLabel: accessibilityLabel || "".concat(title, " - Click to open"), children: children })) : (jsxRuntime.jsx(reactNative.View, { testID: testID || 'banner-tile', style: commonStyles, accessible: true, role: "article", accessibilityLabel: accessibilityLabel || title || 'Banner', children: children })) });
|
|
2099
1687
|
};
|
|
2100
1688
|
var styles$6 = reactNative.StyleSheet.create({
|
|
2101
1689
|
container: {
|
|
@@ -2117,7 +1705,7 @@ var Indicator = function () {
|
|
|
2117
1705
|
return 'Tablet Layout';
|
|
2118
1706
|
return 'Mobile Layout';
|
|
2119
1707
|
};
|
|
2120
|
-
return (
|
|
1708
|
+
return (jsxRuntime.jsx(reactNative.View, { style: styles$5.indicator, children: jsxRuntime.jsx(reactNative.Text, { style: styles$5.indicatorText, children: getCurrentLayout() }) }));
|
|
2121
1709
|
};
|
|
2122
1710
|
var styles$5 = reactNative.StyleSheet.create({
|
|
2123
1711
|
indicator: {
|
|
@@ -2168,7 +1756,7 @@ var SkeletonTile = function (_a) {
|
|
|
2168
1756
|
inputRange: [0, 1],
|
|
2169
1757
|
outputRange: [0.3, 0.7],
|
|
2170
1758
|
});
|
|
2171
|
-
return (
|
|
1759
|
+
return (jsxRuntime.jsx(reactNative.Animated.View, { style: [
|
|
2172
1760
|
styles$4.container,
|
|
2173
1761
|
{
|
|
2174
1762
|
opacity: opacity,
|
|
@@ -2210,7 +1798,7 @@ var Skeleton = function (_a) {
|
|
|
2210
1798
|
inputRange: [0, 1],
|
|
2211
1799
|
outputRange: [0.3, 0.7],
|
|
2212
1800
|
});
|
|
2213
|
-
return (
|
|
1801
|
+
return (jsxRuntime.jsxs(reactNative.View, { testID: "loading-skeleton", children: [jsxRuntime.jsx(reactNative.Animated.View, { style: [
|
|
2214
1802
|
styles$3.skeleton,
|
|
2215
1803
|
styles$3.title,
|
|
2216
1804
|
{
|
|
@@ -2218,7 +1806,7 @@ var Skeleton = function (_a) {
|
|
|
2218
1806
|
backgroundColor: theme.alphaDerivedText[20],
|
|
2219
1807
|
borderRadius: 6,
|
|
2220
1808
|
},
|
|
2221
|
-
] }),
|
|
1809
|
+
] }), jsxRuntime.jsx(reactNative.Animated.View, { style: [
|
|
2222
1810
|
styles$3.skeleton,
|
|
2223
1811
|
styles$3.body,
|
|
2224
1812
|
{
|
|
@@ -2226,7 +1814,7 @@ var Skeleton = function (_a) {
|
|
|
2226
1814
|
backgroundColor: theme.alphaDerivedText[20],
|
|
2227
1815
|
borderRadius: 6,
|
|
2228
1816
|
},
|
|
2229
|
-
] }),
|
|
1817
|
+
] }), jsxRuntime.jsx(reactNative.Animated.View, { style: [styles$3.container, style], children: Array.from({ length: numberOfSquares }).map(function (_, index) { return (jsxRuntime.jsx(SkeletonTile, {}, index)); }) })] }));
|
|
2230
1818
|
};
|
|
2231
1819
|
var styles$3 = reactNative.StyleSheet.create({
|
|
2232
1820
|
container: {
|
|
@@ -2299,12 +1887,12 @@ function withTileFetching(WrappedComponent) {
|
|
|
2299
1887
|
}
|
|
2300
1888
|
}, [tile, tileId, getTileByID]);
|
|
2301
1889
|
if (isLoading) {
|
|
2302
|
-
return
|
|
1890
|
+
return jsxRuntime.jsx(SkeletonTile, { style: { width: '100%' } });
|
|
2303
1891
|
}
|
|
2304
1892
|
if (error || !tileData) {
|
|
2305
|
-
return (
|
|
1893
|
+
return (jsxRuntime.jsx(reactNative.View, { style: commonStyles.emptyContainer, children: jsxRuntime.jsx(reactNative.Text, { children: "No tile data available" }) }));
|
|
2306
1894
|
}
|
|
2307
|
-
return
|
|
1895
|
+
return jsxRuntime.jsx(WrappedComponent, __assign({}, props, { tile: tileData }));
|
|
2308
1896
|
};
|
|
2309
1897
|
}
|
|
2310
1898
|
|
|
@@ -2391,7 +1979,7 @@ var BadgeTileDateEarned = function () {
|
|
|
2391
1979
|
? badgeNotEarnedMessage
|
|
2392
1980
|
: "".concat(awardedDatePrefix).concat(formattedDate);
|
|
2393
1981
|
var accessibilityLabel = count === 0 ? 'Badge not yet earned' : "Badge earned on ".concat(formattedDate);
|
|
2394
|
-
return (
|
|
1982
|
+
return (jsxRuntime.jsx(Chip, { label: (displayText === null || displayText === void 0 ? void 0 : displayText.toString()) || '', variant: count === 0 ? exports.StatusVariant.GREY : exports.StatusVariant.PRIMARY, accessibilityLabel: accessibilityLabel, testID: "badge-tile-date-earned" }));
|
|
2395
1983
|
};
|
|
2396
1984
|
|
|
2397
1985
|
/**
|
|
@@ -2421,11 +2009,11 @@ var BadgeTileDescription = function () {
|
|
|
2421
2009
|
return 1;
|
|
2422
2010
|
return 2;
|
|
2423
2011
|
}, [width]);
|
|
2424
|
-
return (
|
|
2012
|
+
return (jsxRuntime.jsx(reactNative.View, { accessible: true, accessibilityLabel: "Badge description: ".concat(description), testID: "badge-tile-description", style: {
|
|
2425
2013
|
width: '100%',
|
|
2426
2014
|
overflow: 'hidden',
|
|
2427
2015
|
paddingBottom: theme.sizes.xxs,
|
|
2428
|
-
}, children:
|
|
2016
|
+
}, children: jsxRuntime.jsx(Text, { variant: "body", numberOfLines: numberOfLines, ellipsizeMode: "tail", accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants", children: description }) }));
|
|
2429
2017
|
};
|
|
2430
2018
|
|
|
2431
2019
|
/**
|
|
@@ -2493,7 +2081,7 @@ var BadgeTileMedia = function (_a) {
|
|
|
2493
2081
|
: artworkUrl;
|
|
2494
2082
|
if (!displayUrl)
|
|
2495
2083
|
return null;
|
|
2496
|
-
return (
|
|
2084
|
+
return (jsxRuntime.jsxs(reactNative.View, { style: styles.header, testID: "badge-tile-media", children: [jsxRuntime.jsx(ProgressiveImage, __assign({}, props, { source: { uri: displayUrl }, style: styles.image, resizeMode: "contain", isDesaturated: shouldDesaturate(type, count), alt: alt !== null && alt !== void 0 ? alt : "Badge ".concat(name).concat(type === exports.BadgeTileType.Latest && count === 0 ? ' (not earned)' : '') })), children] }));
|
|
2497
2085
|
};
|
|
2498
2086
|
|
|
2499
2087
|
/**
|
|
@@ -2513,7 +2101,7 @@ var BadgeTileStatus = function () {
|
|
|
2513
2101
|
}
|
|
2514
2102
|
var isLocked = count === 0;
|
|
2515
2103
|
var statusLabel = isLocked ? 'Badge locked' : "Earned ".concat(count, " times");
|
|
2516
|
-
return (
|
|
2104
|
+
return (jsxRuntime.jsx(reactNative.View, { style: styles.indicatorContainer, accessible: true, accessibilityLabel: statusLabel, testID: "badge-tile-status", children: isLocked ? (jsxRuntime.jsx(Icon, { name: "LockKeyhole", testID: "badge-tile-status-locked", color: "#FFF", size: 20, accessibilityElementsHidden: true })) : (jsxRuntime.jsxs(Text, { style: styles.countText, accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants", children: [count, "x"] })) }));
|
|
2517
2105
|
};
|
|
2518
2106
|
|
|
2519
2107
|
/**
|
|
@@ -2534,7 +2122,7 @@ var BadgeTileTitle = function () {
|
|
|
2534
2122
|
: name;
|
|
2535
2123
|
if (!displayText)
|
|
2536
2124
|
return null;
|
|
2537
|
-
return (
|
|
2125
|
+
return (jsxRuntime.jsx(reactNative.View, { accessible: true, accessibilityLabel: "Badge title: ".concat(displayText), testID: "badge-tile-title", children: jsxRuntime.jsx(Text, { variant: "title", style: styles.titleText, numberOfLines: 2, ellipsizeMode: "tail", accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants", children: displayText }) }));
|
|
2538
2126
|
};
|
|
2539
2127
|
|
|
2540
2128
|
/**
|
|
@@ -2546,7 +2134,7 @@ var BadgeTileRoot = function (_a) {
|
|
|
2546
2134
|
var tile = _a.tile;
|
|
2547
2135
|
if (!tile || tile.tileHeight !== exports.TileHeight.Full || !tile.active)
|
|
2548
2136
|
return null;
|
|
2549
|
-
return (
|
|
2137
|
+
return (jsxRuntime.jsxs(BaseTile, { tile: tile, children: [jsxRuntime.jsx(BadgeTile.Media, { children: jsxRuntime.jsx(BadgeTile.Status, {}) }), jsxRuntime.jsxs(Layout, { justify: "between", align: "start", children: [jsxRuntime.jsx(BadgeTile.Title, {}), jsxRuntime.jsx(BadgeTile.Description, {}), jsxRuntime.jsx(Spacer, {}), jsxRuntime.jsx(BadgeTile.DateEarned, {})] })] }));
|
|
2550
2138
|
};
|
|
2551
2139
|
/**
|
|
2552
2140
|
* The BadgeTile component with subcomponents attached.
|
|
@@ -2578,7 +2166,7 @@ var BannerTileCTA = function () {
|
|
|
2578
2166
|
? "Opens ".concat(ctaLink, " in a new window")
|
|
2579
2167
|
: "Takes you to ".concat(ctaLink)
|
|
2580
2168
|
: '';
|
|
2581
|
-
return (
|
|
2169
|
+
return (jsxRuntime.jsx(Button, { testID: "banner-tile-cta", title: ctaText, variant: "accent", onPress: handlePress, accessibilityHint: hint }));
|
|
2582
2170
|
};
|
|
2583
2171
|
|
|
2584
2172
|
/**
|
|
@@ -2634,7 +2222,7 @@ var BannerTileDescription = function () {
|
|
|
2634
2222
|
var description = bannerContext.configuration.description;
|
|
2635
2223
|
if (!description)
|
|
2636
2224
|
return null;
|
|
2637
|
-
return (
|
|
2225
|
+
return (jsxRuntime.jsx(Text, { style: styles.description, role: "article", testID: "banner-tile-description", children: description }));
|
|
2638
2226
|
};
|
|
2639
2227
|
|
|
2640
2228
|
/**
|
|
@@ -2654,7 +2242,7 @@ var BannerTileMedia = function (_a) {
|
|
|
2654
2242
|
var containerStyle = {
|
|
2655
2243
|
width: isArtworkOnly ? '100%' : '30%',
|
|
2656
2244
|
};
|
|
2657
|
-
return (
|
|
2245
|
+
return (jsxRuntime.jsx(reactNative.View, { style: [styles.mediaContainer, containerStyle], role: "img", accessibilityLabel: "Banner image".concat(title ? " for ".concat(title) : ''), testID: "banner-tile-media", children: jsxRuntime.jsx(ProgressiveImage, { source: { uri: artworkUrl }, style: styles.media, alt: "Banner image".concat(title ? " for ".concat(title) : '') }) }));
|
|
2658
2246
|
};
|
|
2659
2247
|
|
|
2660
2248
|
/**
|
|
@@ -2670,7 +2258,7 @@ var BannerTileTitle = function () {
|
|
|
2670
2258
|
var title = bannerContext.configuration.title;
|
|
2671
2259
|
if (!title)
|
|
2672
2260
|
return null;
|
|
2673
|
-
return (
|
|
2261
|
+
return (jsxRuntime.jsx(Text, { variant: "title", testID: "banner-tile-title", style: styles.title, role: "heading", accessibilityLabel: title, children: title }));
|
|
2674
2262
|
};
|
|
2675
2263
|
|
|
2676
2264
|
/**
|
|
@@ -2697,7 +2285,7 @@ var BannerTileRoot = function (_a) {
|
|
|
2697
2285
|
if (!tile || !tile.active || !tile.configuration)
|
|
2698
2286
|
return null;
|
|
2699
2287
|
var configuration = tile.configuration;
|
|
2700
|
-
return (
|
|
2288
|
+
return (jsxRuntime.jsxs(BaseBanner, { tile: tile, children: [jsxRuntime.jsx(BannerTile.Media, { isArtworkOnly: isArtworkOnly$2(configuration) }), jsxRuntime.jsxs(FullFlex, { children: [jsxRuntime.jsx(BannerTile.Title, {}), jsxRuntime.jsx(BannerTile.Description, {}), jsxRuntime.jsx(BannerTile.CTA, {})] })] }));
|
|
2701
2289
|
};
|
|
2702
2290
|
/**
|
|
2703
2291
|
* The BannerTile component with subcomponents attached.
|
|
@@ -2719,7 +2307,7 @@ var ContentTileChevron = function () {
|
|
|
2719
2307
|
var ctaLink = tileContext.configuration.ctaLink;
|
|
2720
2308
|
if (!ctaLink)
|
|
2721
2309
|
return null;
|
|
2722
|
-
return (
|
|
2310
|
+
return (jsxRuntime.jsx(Icon, { name: "ChevronRight", size: IS_MOBILE ? 16 : undefined, color: (_b = (_a = sdk.theme) === null || _a === void 0 ? void 0 : _a.derivedSurfaceText) === null || _b === void 0 ? void 0 : _b[20], accessibilityLabel: "View details", testID: "content-tile-chevron" }));
|
|
2723
2311
|
};
|
|
2724
2312
|
|
|
2725
2313
|
/**
|
|
@@ -2754,6 +2342,14 @@ var useContentTileStyles = function (hasArtwork) {
|
|
|
2754
2342
|
});
|
|
2755
2343
|
};
|
|
2756
2344
|
|
|
2345
|
+
var getContentTileMediaContainerStyle = function (isArtworkOnly) {
|
|
2346
|
+
return isArtworkOnly
|
|
2347
|
+
? {
|
|
2348
|
+
flexBasis: '100%',
|
|
2349
|
+
aspectRatio: 1,
|
|
2350
|
+
}
|
|
2351
|
+
: { flexBasis: '50%' };
|
|
2352
|
+
};
|
|
2757
2353
|
var ContentTileMedia = function (_a) {
|
|
2758
2354
|
var isArtworkOnly = _a.isArtworkOnly;
|
|
2759
2355
|
var tileContext = useTileContext();
|
|
@@ -2764,8 +2360,8 @@ var ContentTileMedia = function (_a) {
|
|
|
2764
2360
|
return null;
|
|
2765
2361
|
var hasArtwork = Boolean(artworkUrl);
|
|
2766
2362
|
var styles = useContentTileStyles(hasArtwork);
|
|
2767
|
-
var containerStyle =
|
|
2768
|
-
return (
|
|
2363
|
+
var containerStyle = getContentTileMediaContainerStyle(isArtworkOnly);
|
|
2364
|
+
return (jsxRuntime.jsx(reactNative.View, { style: [styles.imageContainer, containerStyle], testID: "content-tile-media", role: "img", accessibilityLabel: "Image for ".concat(title), children: jsxRuntime.jsx(ProgressiveImage, { source: { uri: artworkUrl }, style: styles.image, alt: "Image for ".concat(title) }) }));
|
|
2769
2365
|
};
|
|
2770
2366
|
|
|
2771
2367
|
var ContentTileSummary = function () {
|
|
@@ -2794,7 +2390,7 @@ var ContentTileSummary = function () {
|
|
|
2794
2390
|
return 8;
|
|
2795
2391
|
return 6;
|
|
2796
2392
|
}, [title, body, artworkUrl, isHalfSize]);
|
|
2797
|
-
return (
|
|
2393
|
+
return (jsxRuntime.jsx(Text, { variant: "body", role: "article", accessibilityLabel: body, numberOfLines: numberOfLines, testID: "content-tile-summary", children: body }));
|
|
2798
2394
|
};
|
|
2799
2395
|
|
|
2800
2396
|
var ContentTileTitle = function () {
|
|
@@ -2825,7 +2421,7 @@ var ContentTileTitle = function () {
|
|
|
2825
2421
|
return styles.titleWithLink;
|
|
2826
2422
|
}
|
|
2827
2423
|
};
|
|
2828
|
-
return (
|
|
2424
|
+
return (jsxRuntime.jsx(Text, { variant: "title", role: "heading", accessibilityLabel: title, numberOfLines: numberOfLines, style: handleTitleWidth(), testID: "content-tile-title", children: title }));
|
|
2829
2425
|
};
|
|
2830
2426
|
|
|
2831
2427
|
/**
|
|
@@ -2854,8 +2450,8 @@ var ContentTileRoot = function (_a) {
|
|
|
2854
2450
|
var configuration = tile.configuration;
|
|
2855
2451
|
var hasArtwork = Boolean(configuration.artworkUrl);
|
|
2856
2452
|
var styles = useContentTileStyles(hasArtwork);
|
|
2857
|
-
return (
|
|
2858
|
-
tile.tileHeight === exports.TileHeight.Full && { aspectRatio: 1 })), children: [
|
|
2453
|
+
return (jsxRuntime.jsxs(BaseTile, { tile: tile, children: [jsxRuntime.jsx(ContentTile.Media, { isArtworkOnly: isArtworkOnly$1(configuration) }), !isArtworkOnly$1(configuration) && (jsxRuntime.jsxs(Layout, { justify: hasArtwork ? 'start' : 'center', style: __assign({}, (!hasArtwork &&
|
|
2454
|
+
tile.tileHeight === exports.TileHeight.Full && { aspectRatio: 1 })), children: [jsxRuntime.jsxs(Row, { justify: "between", align: "center", style: styles.header, children: [jsxRuntime.jsx(ContentTile.Title, {}), jsxRuntime.jsx(ContentTile.Chevron, {})] }), jsxRuntime.jsx(ContentTile.Summary, {})] }))] }));
|
|
2859
2455
|
};
|
|
2860
2456
|
/**
|
|
2861
2457
|
* The ContentTile component with subcomponents attached.
|
|
@@ -3088,13 +2684,13 @@ var SectionHeader = function (_a) {
|
|
|
3088
2684
|
if (!title) {
|
|
3089
2685
|
return null;
|
|
3090
2686
|
}
|
|
3091
|
-
return (
|
|
2687
|
+
return (jsxRuntime.jsxs(reactNative.View, { style: styles.sectionHeader, children: [title && (jsxRuntime.jsx(Text, { style: [
|
|
3092
2688
|
styles.sectionTitle,
|
|
3093
2689
|
{
|
|
3094
2690
|
fontWeight: '700',
|
|
3095
2691
|
color: theme.text,
|
|
3096
2692
|
},
|
|
3097
|
-
], children: title })), description && (
|
|
2693
|
+
], children: title })), description && (jsxRuntime.jsx(Text, { style: [
|
|
3098
2694
|
styles.sectionDescription,
|
|
3099
2695
|
{
|
|
3100
2696
|
color: theme.alphaDerivedText[80],
|
|
@@ -3265,23 +2861,23 @@ var Carousel = function (_a) {
|
|
|
3265
2861
|
marginTop: useResponsiveValue(theme.sizes.xxl, theme.sizes.sm, isDesktop, isTablet),
|
|
3266
2862
|
},
|
|
3267
2863
|
});
|
|
3268
|
-
return (
|
|
2864
|
+
return (jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [jsxRuntime.jsx(SectionHeader, { title: section.title, description: section.description }), jsxRuntime.jsxs(reactNative.View, { ref: containerRef, style: [styles.container, { direction: 'ltr' }], onLayout: function (event) {
|
|
3269
2865
|
var width = event.nativeEvent.layout.width;
|
|
3270
2866
|
dispatch({ type: 'SET_CONTAINER_WIDTH', payload: width });
|
|
3271
|
-
}, children: [
|
|
2867
|
+
}, children: [jsxRuntime.jsxs(reactNative.View, { style: styles.carouselContainer, children: [showPrevButton && (jsxRuntime.jsx(CarouselNavButton, { direction: "left", onPress: handlePrev })), jsxRuntime.jsx(reactNative.ScrollView, { ref: scrollViewRef, horizontal: true, pagingEnabled: true, showsHorizontalScrollIndicator: false, onScroll: handleScroll, onMomentumScrollEnd: handleScrollEnd, scrollEventThrottle: 16, style: styles.carouselContent, contentContainerStyle: {
|
|
3272
2868
|
width: containerWidth * sortedTiles.length,
|
|
3273
|
-
}, decelerationRate: "fast", snapToInterval: containerWidth, snapToAlignment: "start", children: sortedTiles.map(function (tile, index) { return (
|
|
2869
|
+
}, decelerationRate: "fast", snapToInterval: containerWidth, snapToAlignment: "start", children: sortedTiles.map(function (tile, index) { return (jsxRuntime.jsx(reactNative.View, { style: [
|
|
3274
2870
|
styles.slideContainer,
|
|
3275
2871
|
{
|
|
3276
2872
|
width: containerWidth,
|
|
3277
2873
|
},
|
|
3278
|
-
], children:
|
|
2874
|
+
], children: jsxRuntime.jsx(BannerTile$1, { tile: tile }) }, index)); }) }), showNextButton && (jsxRuntime.jsx(CarouselNavButton, { direction: "right", onPress: handleNext }))] }), displayControls && (jsxRuntime.jsx(reactNative.View, { style: dynamicStyles.indicators, children: sortedTiles.map(function (_, index) {
|
|
3279
2875
|
var width = animatedIndex.interpolate({
|
|
3280
2876
|
inputRange: [index - 1, index, index + 1],
|
|
3281
2877
|
outputRange: [8, 30, 8],
|
|
3282
2878
|
extrapolate: 'clamp',
|
|
3283
2879
|
});
|
|
3284
|
-
return (
|
|
2880
|
+
return (jsxRuntime.jsx(reactNative.Animated.View, { style: [
|
|
3285
2881
|
styles.indicator,
|
|
3286
2882
|
{ backgroundColor: theme.derivedBackground, width: width },
|
|
3287
2883
|
index === currentIndex && {
|
|
@@ -3321,11 +2917,11 @@ var CarouselNavButton = function (_a) {
|
|
|
3321
2917
|
var theme = useWllSdk().theme;
|
|
3322
2918
|
var isRight = direction === 'right';
|
|
3323
2919
|
var styles = useNavButtonStyles();
|
|
3324
|
-
return (
|
|
2920
|
+
return (jsxRuntime.jsx(reactNative.Pressable, { style: [
|
|
3325
2921
|
styles.navButton,
|
|
3326
2922
|
isRight ? styles.navButtonRight : styles.navButtonLeft,
|
|
3327
2923
|
{ backgroundColor: theme.background },
|
|
3328
|
-
], onPress: onPress, accessibilityLabel: "".concat(isRight ? 'Next' : 'Previous', " slide"), role: "button", children:
|
|
2924
|
+
], onPress: onPress, accessibilityLabel: "".concat(isRight ? 'Next' : 'Previous', " slide"), role: "button", children: jsxRuntime.jsx(Icon, { name: isRight ? 'ArrowRight' : 'ArrowLeft', size: 20, color: theme.primary }) }));
|
|
3329
2925
|
};
|
|
3330
2926
|
|
|
3331
2927
|
var Grid = function (_a) {
|
|
@@ -3384,17 +2980,17 @@ var Grid = function (_a) {
|
|
|
3384
2980
|
};
|
|
3385
2981
|
if (shouldStartNewContainer(currentTiles, tile, nextTile)) {
|
|
3386
2982
|
var isLastInRow = (tileContainers.length + 1) % columnsPerRow === 0;
|
|
3387
|
-
tileContainers.push(
|
|
2983
|
+
tileContainers.push(jsxRuntime.jsx(reactNative.View, { style: [
|
|
3388
2984
|
// @ts-ignore Web uses CSS calc strings for responsive layouts, while ViewStyle expects numbers
|
|
3389
2985
|
getTileWidth(columnsPerRow),
|
|
3390
2986
|
!isLastInRow && getDirectionalMargin(GRID_GAP),
|
|
3391
|
-
], children:
|
|
2987
|
+
], children: jsxRuntime.jsx(TileContainer, { tiles: currentTiles }) }, "container-".concat(index)));
|
|
3392
2988
|
currentTiles = [];
|
|
3393
2989
|
}
|
|
3394
2990
|
});
|
|
3395
2991
|
return tileContainers;
|
|
3396
2992
|
}, [gridTiles, columnsPerRow, getTileWidth]);
|
|
3397
|
-
return (
|
|
2993
|
+
return (jsxRuntime.jsxs(reactNative.View, { children: [jsxRuntime.jsx(SectionHeader, { title: section.title, description: section.description }), jsxRuntime.jsx(reactNative.View, { style: styles$2.grid, children: renderTileContainers() })] }));
|
|
3398
2994
|
};
|
|
3399
2995
|
var styles$2 = reactNative.StyleSheet.create({
|
|
3400
2996
|
grid: {
|
|
@@ -3416,14 +3012,14 @@ var ProgressIndicator = function (_a) {
|
|
|
3416
3012
|
else if (percentage < 50) {
|
|
3417
3013
|
progressVariant = 'accent';
|
|
3418
3014
|
}
|
|
3419
|
-
return (
|
|
3015
|
+
return (jsxRuntime.jsxs(reactNative.View, { style: styles$1.container, children: [jsxRuntime.jsx(ProgressBar, { percentage: percentage, variant: progressVariant, height: height }), jsxRuntime.jsx(reactNative.View, { style: [styles$1.circleContainer], children: jsxRuntime.jsx(reactNative.View, { style: [
|
|
3420
3016
|
styles$1.circle,
|
|
3421
3017
|
{
|
|
3422
3018
|
borderColor: theme.derivedSurface[20],
|
|
3423
3019
|
backgroundColor: isComplete ? theme.primary : theme.surface,
|
|
3424
3020
|
borderWidth: isComplete ? 0 : 4,
|
|
3425
3021
|
},
|
|
3426
|
-
], children: isComplete && (
|
|
3022
|
+
], children: isComplete && (jsxRuntime.jsx(Icon, { name: "Check", size: 12, color: theme.primaryText })) }) })] }));
|
|
3427
3023
|
};
|
|
3428
3024
|
var styles$1 = reactNative.StyleSheet.create({
|
|
3429
3025
|
container: {
|
|
@@ -3524,7 +3120,7 @@ var useSectionData = function (section, sectionId) {
|
|
|
3524
3120
|
*/
|
|
3525
3121
|
var EmptyState = function (_a) {
|
|
3526
3122
|
var message = _a.message;
|
|
3527
|
-
return (
|
|
3123
|
+
return (jsxRuntime.jsx(reactNative.View, { style: commonStyles.emptyContainer, role: "article", accessibilityLabel: "Empty state: ".concat(message), children: jsxRuntime.jsx(reactNative.Text, { children: message }) }));
|
|
3528
3124
|
};
|
|
3529
3125
|
/**
|
|
3530
3126
|
* The Section component renders a section based on its type (e.g., Banner, Grid).
|
|
@@ -3544,33 +3140,33 @@ var Section = function (_a) {
|
|
|
3544
3140
|
}
|
|
3545
3141
|
var renderSectionContent = function () {
|
|
3546
3142
|
if (isLoading) {
|
|
3547
|
-
return (
|
|
3143
|
+
return (jsxRuntime.jsx(Skeleton, { "aria-label": "Loading section content", numberOfSquares: IS_WEB ? 4 : 2 }));
|
|
3548
3144
|
}
|
|
3549
3145
|
if (error || !sectionData) {
|
|
3550
|
-
return
|
|
3146
|
+
return jsxRuntime.jsx(EmptyState, { message: error || 'No section data available.' });
|
|
3551
3147
|
}
|
|
3552
3148
|
// Filter out inactive tiles before passing to child components
|
|
3553
3149
|
var activeTiles = sectionData.tiles &&
|
|
3554
3150
|
sortByPriority(sectionData.tiles.filter(function (tile) { return tile && tile.active; }));
|
|
3555
3151
|
if (!activeTiles || activeTiles.length === 0) {
|
|
3556
|
-
return
|
|
3152
|
+
return jsxRuntime.jsx(EmptyState, { message: "No active tiles available." });
|
|
3557
3153
|
}
|
|
3558
3154
|
var sectionWithActiveTiles = __assign(__assign({}, sectionData), { tiles: activeTiles });
|
|
3559
3155
|
if (!sectionData.type) {
|
|
3560
3156
|
console.warn('Section is missing a type');
|
|
3561
|
-
return
|
|
3157
|
+
return jsxRuntime.jsx(EmptyState, { message: "Invalid section configuration." });
|
|
3562
3158
|
}
|
|
3563
3159
|
switch (sectionData.type) {
|
|
3564
3160
|
case exports.SectionType.Banner:
|
|
3565
|
-
return
|
|
3161
|
+
return jsxRuntime.jsx(Carousel, { section: sectionWithActiveTiles });
|
|
3566
3162
|
case exports.SectionType.Grid:
|
|
3567
|
-
return
|
|
3163
|
+
return jsxRuntime.jsx(Grid, { section: sectionWithActiveTiles });
|
|
3568
3164
|
default:
|
|
3569
3165
|
console.warn("Unknown section type: ".concat(sectionData.type));
|
|
3570
|
-
return
|
|
3166
|
+
return jsxRuntime.jsx(EmptyState, { message: "Unknown section type." });
|
|
3571
3167
|
}
|
|
3572
3168
|
};
|
|
3573
|
-
return sectionData ? (
|
|
3169
|
+
return sectionData ? (jsxRuntime.jsx(SectionContext.Provider, { value: { sectionData: sectionData }, children: jsxRuntime.jsx(reactNative.View, { style: styles.section, accessible: true, accessibilityLabel: "Section: ".concat(sectionData.title || 'Untitled section'), accessibilityHint: sectionData.description || undefined, role: "region", children: renderSectionContent() }) })) : null;
|
|
3574
3170
|
};
|
|
3575
3171
|
|
|
3576
3172
|
/**
|
|
@@ -3623,7 +3219,7 @@ var useGroupData = function (id) {
|
|
|
3623
3219
|
*/
|
|
3624
3220
|
var GroupEmptyState = function (_a) {
|
|
3625
3221
|
var message = _a.message;
|
|
3626
|
-
return (
|
|
3222
|
+
return (jsxRuntime.jsx(reactNative.View, { style: commonStyles.emptyContainer, accessible: true, accessibilityLabel: "Empty state: ".concat(message), children: jsxRuntime.jsx(Text, { variant: "body", children: message }) }));
|
|
3627
3223
|
};
|
|
3628
3224
|
/**
|
|
3629
3225
|
* Component to render all sections in a group
|
|
@@ -3633,16 +3229,16 @@ var GroupEmptyState = function (_a) {
|
|
|
3633
3229
|
var GroupSections = function () {
|
|
3634
3230
|
var groupData = useGroupContext().groupData;
|
|
3635
3231
|
if (!groupData || !groupData.sections || groupData.sections.length === 0) {
|
|
3636
|
-
return
|
|
3232
|
+
return jsxRuntime.jsx(GroupEmptyState, { message: "This group doesn't have any sections" });
|
|
3637
3233
|
}
|
|
3638
3234
|
// Filter out inactive sections and null/undefined values before sorting
|
|
3639
3235
|
var activeSections = groupData.sections.filter(function (section) { return section && section.active; });
|
|
3640
3236
|
if (activeSections.length === 0) {
|
|
3641
|
-
return (
|
|
3237
|
+
return (jsxRuntime.jsx(GroupEmptyState, { message: "This group doesn't have any active sections" }));
|
|
3642
3238
|
}
|
|
3643
3239
|
var sortedSections = sortByPriority(activeSections);
|
|
3644
3240
|
var Container = IS_WEB ? reactNative.View : reactNative.ScrollView;
|
|
3645
|
-
return (
|
|
3241
|
+
return (jsxRuntime.jsx(Container, { accessible: true, accessibilityLabel: "Group: ".concat(groupData.name || 'Unnamed group'), role: "region", children: sortedSections.map(function (section) { return (jsxRuntime.jsx(Section, { section: section }, section.id)); }) }));
|
|
3646
3242
|
};
|
|
3647
3243
|
/**
|
|
3648
3244
|
* A page-level component that represents a Group view in the application.
|
|
@@ -3669,13 +3265,13 @@ var Group = function (_a) {
|
|
|
3669
3265
|
refreshing: isLoading && !groupData
|
|
3670
3266
|
}), refreshControl = _d.refreshControl; _d.refreshing;
|
|
3671
3267
|
if (isLoading && !groupData) {
|
|
3672
|
-
return (
|
|
3268
|
+
return (jsxRuntime.jsx(reactNative.View, { style: {
|
|
3673
3269
|
flex: 1,
|
|
3674
3270
|
padding: IS_MOBILE ? theme.sizes.lg : undefined,
|
|
3675
|
-
}, accessible: true, accessibilityLabel: "Loading group data", children:
|
|
3271
|
+
}, accessible: true, accessibilityLabel: "Loading group data", children: jsxRuntime.jsx(Skeleton, { numberOfSquares: IS_WEB ? 4 : 2 }) }));
|
|
3676
3272
|
}
|
|
3677
3273
|
if (error || !groupData) {
|
|
3678
|
-
return
|
|
3274
|
+
return jsxRuntime.jsx(GroupEmptyState, { message: error || 'No group data available' });
|
|
3679
3275
|
}
|
|
3680
3276
|
var Container = IS_WEB ? reactNative.View : reactNative.ScrollView;
|
|
3681
3277
|
var containerProps = IS_WEB
|
|
@@ -3684,7 +3280,7 @@ var Group = function (_a) {
|
|
|
3684
3280
|
refreshControl: enablePullToRefresh ? refreshControl : undefined,
|
|
3685
3281
|
showsVerticalScrollIndicator: true,
|
|
3686
3282
|
};
|
|
3687
|
-
return (
|
|
3283
|
+
return (jsxRuntime.jsx(GroupContext.Provider, { value: { groupData: groupData }, children: jsxRuntime.jsx(reactNative.View, { testID: "group-container", children: jsxRuntime.jsx(Container, __assign({}, containerProps, { children: jsxRuntime.jsx(GroupSections, {}) })) }) }));
|
|
3688
3284
|
};
|
|
3689
3285
|
|
|
3690
3286
|
/**
|
|
@@ -3763,7 +3359,7 @@ var Column = function (_a) {
|
|
|
3763
3359
|
var styles = reactNative.StyleSheet.create({
|
|
3764
3360
|
container: __assign({ justifyContent: justifyMap[justify], alignItems: alignMap[align], flexDirection: reverse ? 'column-reverse' : 'column' }, (flex !== undefined && { flex: flex })),
|
|
3765
3361
|
});
|
|
3766
|
-
return (
|
|
3362
|
+
return (jsxRuntime.jsx(reactNative.View, __assign({ style: [styles.container, style] }, rest, { children: children })));
|
|
3767
3363
|
};
|
|
3768
3364
|
|
|
3769
3365
|
/**
|
|
@@ -3779,7 +3375,7 @@ var FullFlex = function (_a) {
|
|
|
3779
3375
|
var isRTL = IS_WEB &&
|
|
3780
3376
|
typeof document !== 'undefined' &&
|
|
3781
3377
|
document.documentElement.dir === 'rtl';
|
|
3782
|
-
return (
|
|
3378
|
+
return (jsxRuntime.jsx(reactNative.View, __assign({ style: [
|
|
3783
3379
|
__assign({ flex: 1,
|
|
3784
3380
|
// If the language is Arabic (RTL), use 'rtl', otherwise 'ltr'.
|
|
3785
3381
|
direction: isRTL ? 'rtl' : 'ltr' }, (isRTL && {
|
|
@@ -3812,7 +3408,7 @@ var Layout = function (_a) {
|
|
|
3812
3408
|
flexDirection: direction,
|
|
3813
3409
|
},
|
|
3814
3410
|
});
|
|
3815
|
-
return (
|
|
3411
|
+
return (jsxRuntime.jsx(reactNative.View, __assign({ style: [dynamicStyles.container, style] }, rest, { children: children })));
|
|
3816
3412
|
};
|
|
3817
3413
|
|
|
3818
3414
|
/**
|
|
@@ -3829,7 +3425,7 @@ var Row = function (_a) {
|
|
|
3829
3425
|
var styles = reactNative.StyleSheet.create({
|
|
3830
3426
|
container: __assign({ justifyContent: justifyMap[justify], alignItems: alignMap[align], flexDirection: reverse ? 'row-reverse' : 'row' }, (flex !== undefined && { flex: flex })),
|
|
3831
3427
|
});
|
|
3832
|
-
return (
|
|
3428
|
+
return (jsxRuntime.jsx(reactNative.View, __assign({ style: [styles.container, style] }, rest, { children: children })));
|
|
3833
3429
|
};
|
|
3834
3430
|
|
|
3835
3431
|
/**
|
|
@@ -3840,7 +3436,7 @@ var Row = function (_a) {
|
|
|
3840
3436
|
*/
|
|
3841
3437
|
var Spacer = function (_a) {
|
|
3842
3438
|
var style = _a.style, rest = __rest(_a, ["style"]);
|
|
3843
|
-
return
|
|
3439
|
+
return jsxRuntime.jsx(reactNative.View, __assign({ style: [{ flex: 1 }, style] }, rest));
|
|
3844
3440
|
};
|
|
3845
3441
|
|
|
3846
3442
|
/**
|
|
@@ -3921,7 +3517,7 @@ var PointsTileFormattedPoints = function () {
|
|
|
3921
3517
|
return null;
|
|
3922
3518
|
var calculatedPoints = applyMultiplier(points, pointsMultiplier);
|
|
3923
3519
|
var fullPointsText = "".concat(pointsPrefix).concat(calculatedPoints, " ").concat(pointsSuffix).trim();
|
|
3924
|
-
return (
|
|
3520
|
+
return (jsxRuntime.jsx(reactNative.View, { testID: "points-tile-points", role: "article", accessibilityLabel: "Points value: ".concat(fullPointsText), children: jsxRuntime.jsxs(Row, { align: "center", justify: "start", children: [pointsPrefix ? (jsxRuntime.jsx(Text, { variant: "caption", testID: "points-tile-prefix", children: pointsPrefix })) : null, jsxRuntime.jsx(Text, { variant: "caption", testID: "points-tile-value", children: calculatedPoints }), pointsSuffix ? (jsxRuntime.jsx(Text, { variant: "caption", style: styles.suffix, testID: "points-tile-suffix", children: pointsSuffix })) : null] }) }));
|
|
3925
3521
|
};
|
|
3926
3522
|
|
|
3927
3523
|
/**
|
|
@@ -3938,7 +3534,7 @@ var PointsTileMedia = function (_a) {
|
|
|
3938
3534
|
var styles = usePointsTileStyles(isFullSize);
|
|
3939
3535
|
if (!artworkUrl)
|
|
3940
3536
|
return null;
|
|
3941
|
-
return (
|
|
3537
|
+
return (jsxRuntime.jsx(reactNative.View, { testID: "points-tile-media", style: styles.imageContainer, role: "img", accessibilityLabel: "Points tile image for ".concat(title), children: jsxRuntime.jsx(reactNative.Image, { source: { uri: artworkUrl }, style: styles.image, resizeMode: isFullSize ? 'cover' : 'contain' }) }));
|
|
3942
3538
|
};
|
|
3943
3539
|
|
|
3944
3540
|
/**
|
|
@@ -3953,7 +3549,7 @@ var PointsTileTitle = function () {
|
|
|
3953
3549
|
var title = tileContext.configuration.title;
|
|
3954
3550
|
if (!title)
|
|
3955
3551
|
return null;
|
|
3956
|
-
return (
|
|
3552
|
+
return (jsxRuntime.jsx(Text, { variant: "eyebrow", testID: "points-tile-title", role: "heading", accessibilityLabel: title, children: title }));
|
|
3957
3553
|
};
|
|
3958
3554
|
|
|
3959
3555
|
/**
|
|
@@ -3971,7 +3567,7 @@ var PointsTileChevron = function () {
|
|
|
3971
3567
|
var ctaLink = tileContext.configuration.ctaLink;
|
|
3972
3568
|
if (!ctaLink)
|
|
3973
3569
|
return null;
|
|
3974
|
-
return (
|
|
3570
|
+
return (jsxRuntime.jsx(reactNative.View, { style: styles.chevronContainer, children: jsxRuntime.jsx(Icon, { name: "ChevronRight", size: 16, color: ((_b = (_a = sdk.theme) === null || _a === void 0 ? void 0 : _a.derivedSurfaceText) === null || _b === void 0 ? void 0 : _b[20]) || '#000000', role: "img", accessibilityLabel: "View balance" }) }));
|
|
3975
3571
|
};
|
|
3976
3572
|
|
|
3977
3573
|
/**
|
|
@@ -3989,7 +3585,7 @@ var PointsTileRoot = function (_a) {
|
|
|
3989
3585
|
return null;
|
|
3990
3586
|
var isFullSize = useTileSize(tile).isFullSize;
|
|
3991
3587
|
var styles = usePointsTileStyles(isFullSize);
|
|
3992
|
-
return (
|
|
3588
|
+
return (jsxRuntime.jsxs(BaseTile, { tile: tile, children: [isFullSize && jsxRuntime.jsx(PointsTile.Media, { isFullSize: true }), jsxRuntime.jsx(reactNative.View, { style: styles.container, children: jsxRuntime.jsxs(Row, { style: styles.contentContainer, children: [jsxRuntime.jsxs(Column, { style: styles.contentColumn, children: [jsxRuntime.jsx(PointsTile.Title, {}), jsxRuntime.jsx(PointsTile.Points, {})] }), jsxRuntime.jsxs(Column, { style: styles.mediaColumn, children: [!isFullSize && jsxRuntime.jsx(PointsTile.Media, { isFullSize: false }), jsxRuntime.jsx(PointsTile.Chevron, {})] })] }) })] }));
|
|
3993
3589
|
};
|
|
3994
3590
|
/**
|
|
3995
3591
|
* The PointsTile component with subcomponents attached.
|
|
@@ -4051,7 +3647,7 @@ var RewardCategoryHeader = function () {
|
|
|
4051
3647
|
var _a = tileContext.configuration, _b = _a.showName, showName = _b === void 0 ? true : _b, _c = _a.name, name = _c === void 0 ? '' : _c;
|
|
4052
3648
|
if (!showName || !name)
|
|
4053
3649
|
return null;
|
|
4054
|
-
return (
|
|
3650
|
+
return (jsxRuntime.jsx(reactNative.View, { style: [styles.header, { backgroundColor: theme.primary }], testID: "reward-category-header", role: "heading", accessibilityLabel: "Reward category: ".concat(name), children: jsxRuntime.jsx(Text, { style: [styles.headerText, { color: theme.primaryText }], ellipsizeMode: "tail", numberOfLines: 1, children: name }) }));
|
|
4055
3651
|
};
|
|
4056
3652
|
|
|
4057
3653
|
/**
|
|
@@ -4067,7 +3663,7 @@ var RewardCategoryMedia = function () {
|
|
|
4067
3663
|
var _a = tileContext.configuration, artworkUrl = _a.artworkUrl, _b = _a.name, name = _b === void 0 ? 'Reward' : _b;
|
|
4068
3664
|
if (!artworkUrl)
|
|
4069
3665
|
return null;
|
|
4070
|
-
return (
|
|
3666
|
+
return (jsxRuntime.jsx(ProgressiveImage, { testID: "reward-category-media", source: { uri: artworkUrl }, style: styles.background, alt: "Reward category image for ".concat(name), role: "img" }));
|
|
4071
3667
|
};
|
|
4072
3668
|
|
|
4073
3669
|
/**
|
|
@@ -4081,7 +3677,7 @@ var RewardCategoryTileRoot = function (_a) {
|
|
|
4081
3677
|
var tile = _a.tile;
|
|
4082
3678
|
if (!tile || !tile.active || !tile.configuration)
|
|
4083
3679
|
return null;
|
|
4084
|
-
return (
|
|
3680
|
+
return (jsxRuntime.jsx(BaseTile, { tile: tile, children: jsxRuntime.jsxs(reactNative.View, { style: { aspectRatio: tile.tileHeight === exports.TileHeight.Half ? 2 : 1 }, children: [jsxRuntime.jsx(RewardCategoryTile.Header, {}), jsxRuntime.jsx(RewardCategoryTile.Media, {})] }) }));
|
|
4085
3681
|
};
|
|
4086
3682
|
/**
|
|
4087
3683
|
* The RewardCategoryTile component with subcomponents attached.
|
|
@@ -4100,7 +3696,7 @@ var RewardCategoryTile$1 = withTileFetching(RewardCategoryTile);
|
|
|
4100
3696
|
var RewardTileChevron = function () {
|
|
4101
3697
|
var _a;
|
|
4102
3698
|
var theme = useWllSdk().theme;
|
|
4103
|
-
return (
|
|
3699
|
+
return (jsxRuntime.jsx(Icon, { name: "ChevronRight", size: IS_MOBILE ? 16 : undefined, color: ((_a = theme === null || theme === void 0 ? void 0 : theme.derivedSurfaceText) === null || _a === void 0 ? void 0 : _a[20]) || '#000000', role: "img", accessibilityLabel: "View reward details" }));
|
|
4104
3700
|
};
|
|
4105
3701
|
|
|
4106
3702
|
/**
|
|
@@ -4201,7 +3797,7 @@ var RewardTileMedia = function (_a) {
|
|
|
4201
3797
|
aspectRatio: tileContext.tileHeight === exports.TileHeight.Half ? 2 : 1,
|
|
4202
3798
|
}
|
|
4203
3799
|
: __assign({ flexBasis: '50%' }, (tileContext.tileHeight === exports.TileHeight.Half && { minHeight: 0 }));
|
|
4204
|
-
return (
|
|
3800
|
+
return (jsxRuntime.jsxs(reactNative.View, { style: [styles.imageContainer, containerStyle], testID: "reward-tile-media", role: "img", accessibilityLabel: "Reward image for ".concat(name), children: [jsxRuntime.jsx(ProgressiveImage, { source: { uri: artworkUrl }, style: styles.image, alt: "Reward image for ".concat(name) }), isLocked && (jsxRuntime.jsx(reactNative.View, { style: styles.lockOverlay, testID: "lock-overlay", children: jsxRuntime.jsx(Icon, { name: "LockKeyhole", size: 48, color: "white" }) }))] }));
|
|
4205
3801
|
};
|
|
4206
3802
|
|
|
4207
3803
|
/**
|
|
@@ -4219,7 +3815,7 @@ var RewardTilePoints = function () {
|
|
|
4219
3815
|
return null;
|
|
4220
3816
|
var calculatedPoints = applyMultiplier(price, pointsMultiplier);
|
|
4221
3817
|
var accessibilityLabel = getPointsLabel('Reward points:', calculatedPoints, pointsPrefix, pointsSuffix);
|
|
4222
|
-
return (
|
|
3818
|
+
return (jsxRuntime.jsx(reactNative.View, { testID: "reward-tile-points", role: "article", accessibilityLabel: accessibilityLabel, children: jsxRuntime.jsxs(Row, { align: "center", justify: "start", children: [pointsPrefix ? jsxRuntime.jsx(Text, { variant: "caption", children: pointsPrefix }) : null, jsxRuntime.jsx(Text, { variant: "caption", testID: "reward-tile-points-value", children: calculatedPoints }), pointsSuffix ? (jsxRuntime.jsx(Text, { variant: "caption", style: styles.suffix, children: pointsSuffix })) : null] }) }));
|
|
4223
3819
|
};
|
|
4224
3820
|
|
|
4225
3821
|
/**
|
|
@@ -4239,7 +3835,7 @@ var RewardTileStatus = function () {
|
|
|
4239
3835
|
var label = isOutOfStock ? outOfStockMessage : stockRemainingMessage;
|
|
4240
3836
|
if (!label)
|
|
4241
3837
|
return null;
|
|
4242
|
-
return (
|
|
3838
|
+
return (jsxRuntime.jsx(Chip, { label: label, role: "status", ariaLive: "off", accessibilityLabel: label, testID: "reward-tile-status", variant: exports.StatusVariant.GREY, style: styles.statusChip }));
|
|
4243
3839
|
};
|
|
4244
3840
|
|
|
4245
3841
|
/**
|
|
@@ -4256,7 +3852,7 @@ var RewardTileSummary = function () {
|
|
|
4256
3852
|
var numberOfLines = shouldShowPrice ? 2 : 3;
|
|
4257
3853
|
if (!summary)
|
|
4258
3854
|
return null;
|
|
4259
|
-
return (
|
|
3855
|
+
return (jsxRuntime.jsx(Text, { variant: "body", role: "article", accessibilityLabel: summary, testID: "reward-tile-summary", numberOfLines: numberOfLines, ellipsizeMode: "tail", children: summary }));
|
|
4260
3856
|
};
|
|
4261
3857
|
|
|
4262
3858
|
/**
|
|
@@ -4277,7 +3873,7 @@ var RewardTileTitle = function () {
|
|
|
4277
3873
|
return styles.titleWithLink;
|
|
4278
3874
|
}
|
|
4279
3875
|
};
|
|
4280
|
-
return (
|
|
3876
|
+
return (jsxRuntime.jsx(Text, { variant: "title", ellipsizeMode: "tail", numberOfLines: 1, role: "heading", accessibilityLabel: "Reward title: ".concat(name), testID: "reward-tile-title", style: handleTitleWidth(), children: name }));
|
|
4281
3877
|
};
|
|
4282
3878
|
|
|
4283
3879
|
/**
|
|
@@ -4318,7 +3914,7 @@ var RewardTileRoot = function (_a) {
|
|
|
4318
3914
|
? !!configuration.outOfStockMessage
|
|
4319
3915
|
: !!configuration.stockRemainingMessage;
|
|
4320
3916
|
var hasFooter = hasPoints || hasStatus;
|
|
4321
|
-
return (
|
|
3917
|
+
return (jsxRuntime.jsxs(BaseTile, { tile: tile, children: [jsxRuntime.jsx(RewardTile.Media, { isArtworkOnly: artworkOnly }), !artworkOnly && (jsxRuntime.jsxs(Layout, { children: [jsxRuntime.jsxs(Row, { justify: "between", align: "center", style: styles.header, children: [jsxRuntime.jsx(RewardTile.Title, {}), jsxRuntime.jsx(RewardTile.Chevron, {})] }), jsxRuntime.jsx(reactNative.View, { style: { width: '100%', maxWidth: '100%', minWidth: 0 }, children: jsxRuntime.jsx(RewardTile.Summary, {}) }), hasFooter && (jsxRuntime.jsxs(Row, { justify: "between", align: "center", style: styles.footer, children: [jsxRuntime.jsx(RewardTile.Points, {}), jsxRuntime.jsx(RewardTile.Status, {})] }))] }))] }));
|
|
4322
3918
|
};
|
|
4323
3919
|
/**
|
|
4324
3920
|
* The RewardTile component with subcomponents attached.
|
|
@@ -4379,9 +3975,9 @@ var TierTileInner = function (_a) {
|
|
|
4379
3975
|
var tier = configuration.tier;
|
|
4380
3976
|
var isHalfSize = useTileSize(tile).isHalfSize;
|
|
4381
3977
|
if (!tier || Array.isArray(tier)) {
|
|
4382
|
-
return
|
|
3978
|
+
return jsxRuntime.jsx(TierTile.Empty, { tile: tile });
|
|
4383
3979
|
}
|
|
4384
|
-
return isHalfSize ? (
|
|
3980
|
+
return isHalfSize ? (jsxRuntime.jsx(TierTile.Half, { tile: tile })) : (jsxRuntime.jsx(TierTile.Full, { tile: tile }));
|
|
4385
3981
|
};
|
|
4386
3982
|
var TierTileFull = function (_a) {
|
|
4387
3983
|
var tile = _a.tile;
|
|
@@ -4389,7 +3985,7 @@ var TierTileFull = function (_a) {
|
|
|
4389
3985
|
var configuration = tile.configuration;
|
|
4390
3986
|
var tier = configuration.tier, title = configuration.title;
|
|
4391
3987
|
var _b = tier !== null && tier !== void 0 ? tier : {}, artworkUrl = _b.artworkUrl, name = _b.name, description = _b.description;
|
|
4392
|
-
return (
|
|
3988
|
+
return (jsxRuntime.jsxs(BaseTile, { tile: tile, children: [artworkUrl && (jsxRuntime.jsx(reactNative.View, { style: styles.header, children: jsxRuntime.jsx(ProgressiveImage, { source: { uri: artworkUrl }, style: styles.image, resizeMode: "center" }) })), jsxRuntime.jsx(Layout, { align: "stretch", justify: artworkUrl ? 'start' : 'center', children: jsxRuntime.jsxs(reactNative.View, { children: [title && (jsxRuntime.jsx(Text, { variant: "eyebrow", style: styles.title, children: title })), name && (jsxRuntime.jsx(Text, { variant: "title", style: styles.title, children: name })), description && jsxRuntime.jsx(Text, { variant: "body", children: description })] }) })] }));
|
|
4393
3989
|
};
|
|
4394
3990
|
var TierTileHalf = function (_a) {
|
|
4395
3991
|
var tile = _a.tile;
|
|
@@ -4397,7 +3993,7 @@ var TierTileHalf = function (_a) {
|
|
|
4397
3993
|
var configuration = tile.configuration;
|
|
4398
3994
|
var _b = configuration, tier = _b.tier, title = _b.title;
|
|
4399
3995
|
var _c = tier || {}, artworkUrl = _c.artworkUrl, name = _c.name;
|
|
4400
|
-
return (
|
|
3996
|
+
return (jsxRuntime.jsx(BaseTile, { tile: tile, children: jsxRuntime.jsxs(Layout, { align: "center", justify: "between", direction: "row", style: { paddingTop: 16 }, children: [jsxRuntime.jsxs(reactNative.View, { style: { flex: 1, flexShrink: 1 }, children: [title && (jsxRuntime.jsx(Text, { variant: "eyebrow", style: styles.title, children: title })), name && (jsxRuntime.jsx(Text, { variant: "title", style: styles.name, numberOfLines: 2, children: name }))] }), artworkUrl && (jsxRuntime.jsx(reactNative.View, { style: styles.smallImageContainer, children: jsxRuntime.jsx(reactNative.Image, { source: { uri: artworkUrl }, style: styles.smallImage, resizeMode: "contain" }) }))] }) }));
|
|
4401
3997
|
};
|
|
4402
3998
|
// Empty state tile
|
|
4403
3999
|
var TierTileEmpty = function (_a) {
|
|
@@ -4407,9 +4003,9 @@ var TierTileEmpty = function (_a) {
|
|
|
4407
4003
|
var title = configuration.title, emptyDescription = configuration.emptyDescription, emptyArtworkUrl = configuration.emptyArtworkUrl;
|
|
4408
4004
|
var isHalfSize = useTileSize(tile).isHalfSize;
|
|
4409
4005
|
if (isHalfSize) {
|
|
4410
|
-
return (
|
|
4006
|
+
return (jsxRuntime.jsx(BaseTile, { tile: tile, children: jsxRuntime.jsxs(Layout, { align: "center", justify: "between", direction: "row", style: { paddingTop: 16 }, children: [jsxRuntime.jsxs(FullFlex, { children: [title && (jsxRuntime.jsx(Text, { variant: "title", style: styles.title, children: title })), emptyDescription && jsxRuntime.jsx(Text, { variant: "body", children: emptyDescription })] }), emptyArtworkUrl && (jsxRuntime.jsx(reactNative.View, { style: styles.smallImageContainer, children: jsxRuntime.jsx(reactNative.Image, { source: { uri: emptyArtworkUrl }, style: styles.smallImage, resizeMode: "contain" }) }))] }) }));
|
|
4411
4007
|
}
|
|
4412
|
-
return (
|
|
4008
|
+
return (jsxRuntime.jsxs(BaseTile, { tile: tile, children: [emptyArtworkUrl && (jsxRuntime.jsx(reactNative.View, { style: styles.header, children: jsxRuntime.jsx(ProgressiveImage, { source: { uri: emptyArtworkUrl }, style: styles.image, resizeMode: "center" }) })), jsxRuntime.jsx(Layout, { align: "stretch", justify: "center", children: jsxRuntime.jsxs(Layout, { children: [title && (jsxRuntime.jsx(Text, { variant: "title", style: styles.title, children: title })), emptyDescription && jsxRuntime.jsx(Text, { variant: "body", children: emptyDescription })] }) })] }));
|
|
4413
4009
|
};
|
|
4414
4010
|
var TierTile = TierTileInner;
|
|
4415
4011
|
TierTile.Full = TierTileFull;
|
|
@@ -4429,7 +4025,7 @@ var RoundupTileFormattedPoints = function () {
|
|
|
4429
4025
|
if (balance === undefined)
|
|
4430
4026
|
return null;
|
|
4431
4027
|
var fullPointsText = "".concat(amountPrefix).concat(cleanNumber(balance)).concat(amountSuffix).trim();
|
|
4432
|
-
return (
|
|
4028
|
+
return (jsxRuntime.jsx(reactNative.View, { testID: "roundup-tile-amount", role: "article", accessibilityLabel: "Amount: ".concat(fullPointsText), children: jsxRuntime.jsx(Row, { align: "center", justify: "start", children: jsxRuntime.jsx(Text, { variant: "caption", testID: "roundup-tile-value", children: fullPointsText }) }) }));
|
|
4433
4029
|
};
|
|
4434
4030
|
|
|
4435
4031
|
/**
|
|
@@ -4509,7 +4105,7 @@ var RoundupTileMedia = function (_a) {
|
|
|
4509
4105
|
var styles = useRoundupTileStyles(isFullSize);
|
|
4510
4106
|
if (!artworkUrl)
|
|
4511
4107
|
return null;
|
|
4512
|
-
return (
|
|
4108
|
+
return (jsxRuntime.jsx(reactNative.View, { testID: "roundup-tile-media", style: styles.imageContainer, role: "img", accessibilityLabel: "Roundup tile image for ".concat(title), children: jsxRuntime.jsx(reactNative.Image, { source: { uri: artworkUrl }, style: styles.image, resizeMode: isFullSize ? 'cover' : 'contain' }) }));
|
|
4513
4109
|
};
|
|
4514
4110
|
|
|
4515
4111
|
/**
|
|
@@ -4524,7 +4120,7 @@ var RoundupTileTitle = function () {
|
|
|
4524
4120
|
var title = tileContext.configuration.title;
|
|
4525
4121
|
if (!title)
|
|
4526
4122
|
return null;
|
|
4527
|
-
return (
|
|
4123
|
+
return (jsxRuntime.jsx(Text, { variant: "eyebrow", testID: "roundup-tile-title", role: "heading", accessibilityLabel: title, children: title }));
|
|
4528
4124
|
};
|
|
4529
4125
|
|
|
4530
4126
|
/**
|
|
@@ -4542,7 +4138,7 @@ var RoundupTileChevron = function () {
|
|
|
4542
4138
|
var ctaLink = tileContext.configuration.ctaLink;
|
|
4543
4139
|
if (!ctaLink)
|
|
4544
4140
|
return null;
|
|
4545
|
-
return (
|
|
4141
|
+
return (jsxRuntime.jsx(reactNative.View, { style: styles.chevronContainer, children: jsxRuntime.jsx(Icon, { name: "ChevronRight", size: 16, color: ((_b = (_a = sdk.theme) === null || _a === void 0 ? void 0 : _a.derivedSurfaceText) === null || _b === void 0 ? void 0 : _b[20]) || '#000000', role: "img", accessibilityLabel: "View balance" }) }));
|
|
4546
4142
|
};
|
|
4547
4143
|
|
|
4548
4144
|
/**
|
|
@@ -4560,7 +4156,7 @@ var RoundupTileRoot = function (_a) {
|
|
|
4560
4156
|
return null;
|
|
4561
4157
|
var isFullSize = useTileSize(tile).isFullSize;
|
|
4562
4158
|
var styles = useRoundupTileStyles(isFullSize);
|
|
4563
|
-
return (
|
|
4159
|
+
return (jsxRuntime.jsxs(BaseTile, { tile: tile, children: [isFullSize && jsxRuntime.jsx(RoundupTile.Media, { isFullSize: true }), jsxRuntime.jsx(reactNative.View, { style: styles.container, children: jsxRuntime.jsxs(Row, { style: styles.contentContainer, children: [jsxRuntime.jsxs(Column, { style: styles.contentColumn, children: [jsxRuntime.jsx(RoundupTile.Title, {}), jsxRuntime.jsx(RoundupTile.Points, {})] }), jsxRuntime.jsxs(Column, { style: styles.mediaColumn, children: [!isFullSize && jsxRuntime.jsx(RoundupTile.Media, { isFullSize: false }), jsxRuntime.jsx(RoundupTile.Chevron, {})] })] }) })] }));
|
|
4564
4160
|
};
|
|
4565
4161
|
/**
|
|
4566
4162
|
* The PointsTile component with subcomponents attached.
|
|
@@ -4581,7 +4177,7 @@ var RoundupTile$1 = withTileFetching(RoundupTile);
|
|
|
4581
4177
|
var VenueTileChevron = function () {
|
|
4582
4178
|
var _a;
|
|
4583
4179
|
var theme = useWllSdk().theme;
|
|
4584
|
-
return (
|
|
4180
|
+
return (jsxRuntime.jsx(Icon, { name: "ChevronRight", size: IS_MOBILE ? 16 : undefined, color: ((_a = theme === null || theme === void 0 ? void 0 : theme.derivedSurfaceText) === null || _a === void 0 ? void 0 : _a[20]) || '#000000', role: "img", accessibilityLabel: "View venue details" }));
|
|
4585
4181
|
};
|
|
4586
4182
|
|
|
4587
4183
|
/**
|
|
@@ -4665,7 +4261,7 @@ var VenueTileMedia = function () {
|
|
|
4665
4261
|
var _a = tileContext.configuration, artworkUrl = _a.artworkUrl, _b = _a.name, name = _b === void 0 ? 'Venue' : _b, _c = _a.isLocked, isLocked = _c === void 0 ? false : _c;
|
|
4666
4262
|
var containerStyle = __assign({ flexBasis: '50%' }, (tileContext.tileHeight === exports.TileHeight.Half && { minHeight: 0 }));
|
|
4667
4263
|
var showCenteredPin = !artworkUrl && !isLocked;
|
|
4668
|
-
return (
|
|
4264
|
+
return (jsxRuntime.jsxs(reactNative.View, { style: [styles.imageContainer, containerStyle], testID: "venue-tile-media", role: "img", accessibilityLabel: "Venue image for ".concat(name), children: [artworkUrl && (jsxRuntime.jsx(ProgressiveImage, { source: { uri: artworkUrl }, style: styles.image, alt: "Venue image for ".concat(name) })), jsxRuntime.jsxs(reactNative.View, { style: styles.lockOverlay, testID: "lock-overlay", children: [isLocked && jsxRuntime.jsx(Icon, { name: "LockKeyhole", size: 48, color: "white" }), showCenteredPin ? (jsxRuntime.jsx(Icon, { name: "MapPin", size: 48, color: "white" })) : (jsxRuntime.jsx(reactNative.View, { style: styles.pinOverlay, testID: "pin-overlay", children: jsxRuntime.jsx(Icon, { name: "MapPin", size: 24, color: "white" }) }))] })] }));
|
|
4669
4265
|
};
|
|
4670
4266
|
|
|
4671
4267
|
/**
|
|
@@ -4680,7 +4276,7 @@ var VenueTileDescription = function () {
|
|
|
4680
4276
|
var description = tileContext.configuration.description;
|
|
4681
4277
|
if (!description)
|
|
4682
4278
|
return null;
|
|
4683
|
-
return (
|
|
4279
|
+
return (jsxRuntime.jsx(Text, { variant: "body", role: "article", accessibilityLabel: description, testID: "venue-tile-description", numberOfLines: 3, ellipsizeMode: "tail", children: description }));
|
|
4684
4280
|
};
|
|
4685
4281
|
|
|
4686
4282
|
/**
|
|
@@ -4701,7 +4297,7 @@ var VenueTileTitle = function () {
|
|
|
4701
4297
|
return styles.tileTitle;
|
|
4702
4298
|
}
|
|
4703
4299
|
};
|
|
4704
|
-
return (
|
|
4300
|
+
return (jsxRuntime.jsx(Text, { variant: "title", ellipsizeMode: "tail", numberOfLines: 1, role: "heading", accessibilityLabel: "Venue title: ".concat(name), testID: "venue-tile-title", style: handleTitleWidth(), children: name }));
|
|
4705
4301
|
};
|
|
4706
4302
|
|
|
4707
4303
|
/**
|
|
@@ -4718,7 +4314,7 @@ var VenueTileRoot = function (_a) {
|
|
|
4718
4314
|
!tile.active ||
|
|
4719
4315
|
!tile.configuration)
|
|
4720
4316
|
return null;
|
|
4721
|
-
return (
|
|
4317
|
+
return (jsxRuntime.jsxs(BaseTile, { tile: tile, children: [jsxRuntime.jsx(VenueTile.Media, {}), jsxRuntime.jsxs(Layout, { children: [jsxRuntime.jsxs(Row, { justify: "between", align: "center", style: styles.header, children: [jsxRuntime.jsx(VenueTile.Title, {}), jsxRuntime.jsx(VenueTile.Chevron, {})] }), jsxRuntime.jsx(VenueTile.Description, {})] })] }));
|
|
4722
4318
|
};
|
|
4723
4319
|
/**
|
|
4724
4320
|
* The VenueTile component with subcomponents attached.
|
|
@@ -4751,16 +4347,16 @@ var TileContainer = function (_a) {
|
|
|
4751
4347
|
var allHalfHeight = tiles.length > 0 &&
|
|
4752
4348
|
tiles.every(function (tile) { return tile.tileHeight === exports.TileHeight.Half; });
|
|
4753
4349
|
var halfHeightGap = allHalfHeight ? GRID_GAP / 2 : GRID_GAP;
|
|
4754
|
-
return (
|
|
4350
|
+
return (jsxRuntime.jsx(reactNative.View, { style: [styles.container, allHalfHeight && { aspectRatio: 1 }], testID: "tile-container", children: tiles.map(function (tile, index) {
|
|
4755
4351
|
var TileComponent = TILE_COMPONENTS[tile.type];
|
|
4756
4352
|
var isHalfHeight = tile.tileHeight === exports.TileHeight.Half;
|
|
4757
|
-
return (
|
|
4353
|
+
return (jsxRuntime.jsx(reactNative.View, { style: [
|
|
4758
4354
|
styles.tileWrapper,
|
|
4759
4355
|
isHalfHeight && styles.halfHeightTile,
|
|
4760
4356
|
index > 0 && {
|
|
4761
4357
|
marginTop: allHalfHeight ? halfHeightGap : GRID_GAP,
|
|
4762
4358
|
},
|
|
4763
|
-
], children: TileComponent ?
|
|
4359
|
+
], children: TileComponent ? jsxRuntime.jsx(TileComponent, { tile: tile }) : null }, tile.id));
|
|
4764
4360
|
}) }));
|
|
4765
4361
|
};
|
|
4766
4362
|
var styles = reactNative.StyleSheet.create({
|
|
@@ -4848,7 +4444,7 @@ var Chip = function (_a) {
|
|
|
4848
4444
|
var computedAccessibilityLabel = accessibilityLabel !== null && accessibilityLabel !== void 0 ? accessibilityLabel : (typeof label === 'string' ? label : undefined);
|
|
4849
4445
|
var _e = mapLiveRegion(ariaLive), accessibilityLiveRegion = _e.native, ariaLiveValue = _e.web;
|
|
4850
4446
|
var isIndividuallyAccessible = computedAccessibilityLabel !== undefined;
|
|
4851
|
-
return (
|
|
4447
|
+
return (jsxRuntime.jsx(reactNative.View, { style: [styles.container, variantStyles.container, style], accessible: isIndividuallyAccessible, accessibilityRole: role, accessibilityLiveRegion: accessibilityLiveRegion, accessibilityLabel: computedAccessibilityLabel, "aria-live": ariaLiveValue, testID: testID, children: jsxRuntime.jsx(reactNative.Text, { style: [styles.label, variantStyles.label, labelStyle], numberOfLines: 1, ellipsizeMode: "tail", accessible: false, importantForAccessibility: "no", children: label }) }));
|
|
4852
4448
|
};
|
|
4853
4449
|
|
|
4854
4450
|
var Reward = /** @class */ (function () {
|