@wlloyalty/wll-react-sdk 1.9.0 → 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/native.js +145 -550
- package/dist/native.js.map +1 -1
- package/dist/types/components/organisms/ContentTile/content-tile-media.d.ts +5 -0
- package/dist/web.js +1055 -19243
- 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);
|
|
@@ -1138,7 +725,7 @@ var WllSdkProvider = function (_a) {
|
|
|
1138
725
|
subscribeToDataChange,
|
|
1139
726
|
config,
|
|
1140
727
|
]);
|
|
1141
|
-
return (
|
|
728
|
+
return (jsxRuntime.jsx(WllSdkContext.Provider, { value: contextValue, children: jsxRuntime.jsx(ResponsiveProvider, { children: children }) }));
|
|
1142
729
|
};
|
|
1143
730
|
var useWllSdk = function () {
|
|
1144
731
|
var context = React.useContext(WllSdkContext);
|
|
@@ -1267,7 +854,7 @@ var Button = function (_a) {
|
|
|
1267
854
|
var buttonStyle = useButtonStyles(theme, variant);
|
|
1268
855
|
var textStyle = useTextStyles(theme, variant);
|
|
1269
856
|
var styles = useButtonDynamicStyles();
|
|
1270
|
-
return (
|
|
857
|
+
return (jsxRuntime.jsxs(reactNative.Pressable, { style: function (_a) {
|
|
1271
858
|
var pressed = _a.pressed;
|
|
1272
859
|
return [
|
|
1273
860
|
styles.button,
|
|
@@ -1276,7 +863,7 @@ var Button = function (_a) {
|
|
|
1276
863
|
disabled && { opacity: 0.5 },
|
|
1277
864
|
pressed && { opacity: 0.7 },
|
|
1278
865
|
];
|
|
1279
|
-
}, 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 })] }));
|
|
1280
867
|
};
|
|
1281
868
|
|
|
1282
869
|
var LucideReactNativeIcons;
|
|
@@ -1303,22 +890,22 @@ var Icon = function (_a) {
|
|
|
1303
890
|
return null;
|
|
1304
891
|
}
|
|
1305
892
|
if (reactNative.Platform.OS === 'web') {
|
|
1306
|
-
return (
|
|
893
|
+
return (jsxRuntime.jsx(reactNative.View, __assign({}, props, { children: jsxRuntime.jsx(LucideIcon, { color: color, size: size, strokeWidth: strokeWidth }) })));
|
|
1307
894
|
}
|
|
1308
895
|
else {
|
|
1309
|
-
return (
|
|
896
|
+
return (jsxRuntime.jsx(reactNative.View, __assign({}, props, { children: jsxRuntime.jsx(LucideIcon, { color: color, size: size, strokeWidth: strokeWidth }) })));
|
|
1310
897
|
}
|
|
1311
898
|
};
|
|
1312
899
|
|
|
1313
900
|
var LoadingIndicator = function () {
|
|
1314
901
|
var theme = useWllSdk().theme;
|
|
1315
|
-
return (
|
|
902
|
+
return (jsxRuntime.jsx(reactNative.View, { style: [
|
|
1316
903
|
styles$8.container,
|
|
1317
904
|
{
|
|
1318
905
|
borderRadius: theme.sizes.borderRadiusSm,
|
|
1319
906
|
padding: theme.sizes.md,
|
|
1320
907
|
},
|
|
1321
|
-
], children:
|
|
908
|
+
], children: jsxRuntime.jsx(reactNative.ActivityIndicator, { size: "small", color: theme.primary }) }));
|
|
1322
909
|
};
|
|
1323
910
|
var styles$8 = reactNative.StyleSheet.create({
|
|
1324
911
|
container: {
|
|
@@ -1382,7 +969,7 @@ var ProgressBar = function (_a) {
|
|
|
1382
969
|
outputRange: ['0%', '100%'],
|
|
1383
970
|
}),
|
|
1384
971
|
};
|
|
1385
|
-
return (
|
|
972
|
+
return (jsxRuntime.jsx(reactNative.View, { style: containerStyle, children: jsxRuntime.jsx(reactNative.Animated.View, { style: [styles.progress, progressStyles, progressWidth] }) }));
|
|
1386
973
|
};
|
|
1387
974
|
|
|
1388
975
|
exports.CTALinkTarget = void 0;
|
|
@@ -1657,7 +1244,7 @@ var Text = function (_a) {
|
|
|
1657
1244
|
styles.webOverrides,
|
|
1658
1245
|
style,
|
|
1659
1246
|
];
|
|
1660
|
-
return (
|
|
1247
|
+
return (jsxRuntime.jsx(reactNative.Text, __assign({ style: combinedStyles }, props, { accessible: true, role: accessibilityRole })));
|
|
1661
1248
|
};
|
|
1662
1249
|
|
|
1663
1250
|
/**
|
|
@@ -1685,7 +1272,7 @@ var BaseTileBody = function (props) {
|
|
|
1685
1272
|
return undefined;
|
|
1686
1273
|
return isDesktop ? 3 : isTablet ? 4 : 3;
|
|
1687
1274
|
};
|
|
1688
|
-
return (
|
|
1275
|
+
return (jsxRuntime.jsx(Text, __assign({ variant: "body" }, props, { role: "article", accessibilityLabel: body, numberOfLines: getNumberOfLines(), testID: "tile-body", children: body })));
|
|
1689
1276
|
};
|
|
1690
1277
|
|
|
1691
1278
|
/**
|
|
@@ -1829,7 +1416,7 @@ var BaseTileContent = function (_a) {
|
|
|
1829
1416
|
return null;
|
|
1830
1417
|
if (shouldHideContentForHalfTile(sizeInfo, artworkUrl))
|
|
1831
1418
|
return null;
|
|
1832
|
-
return (
|
|
1419
|
+
return (jsxRuntime.jsx(reactNative.View, { testID: "tile-content", style: [
|
|
1833
1420
|
baseStyles.content,
|
|
1834
1421
|
{
|
|
1835
1422
|
justifyContent: 'center',
|
|
@@ -1858,7 +1445,7 @@ var BaseTileHeader = function (_a) {
|
|
|
1858
1445
|
return null;
|
|
1859
1446
|
var dynamicStyles = useBaseTileStyles();
|
|
1860
1447
|
var combinedStyle = __assign(__assign(__assign({}, dynamicStyles.header), { marginTop: sizeInfo.isHalfSize ? 0 : dynamicStyles.header.marginTop }), (sizeInfo.isHalfSize ? { alignItems: 'center' } : {}));
|
|
1861
|
-
return (
|
|
1448
|
+
return (jsxRuntime.jsx(reactNative.View, { style: combinedStyle, testID: "tile-header", role: "heading", children: children }));
|
|
1862
1449
|
};
|
|
1863
1450
|
|
|
1864
1451
|
/**
|
|
@@ -1875,7 +1462,7 @@ var BaseTileMedia = function (props) {
|
|
|
1875
1462
|
var styles = useBaseTileStyles();
|
|
1876
1463
|
if (!artworkUrl)
|
|
1877
1464
|
return null;
|
|
1878
|
-
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" }) }))] }));
|
|
1879
1466
|
};
|
|
1880
1467
|
|
|
1881
1468
|
/**
|
|
@@ -1898,7 +1485,7 @@ var BaseTileTitle = function () {
|
|
|
1898
1485
|
// Don't show title for half tiles with image
|
|
1899
1486
|
if ((isHalfSize && artworkUrl) || !title)
|
|
1900
1487
|
return null;
|
|
1901
|
-
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" }))] }));
|
|
1902
1489
|
};
|
|
1903
1490
|
|
|
1904
1491
|
/**
|
|
@@ -1941,7 +1528,7 @@ var BaseTileContainer = function (_a) {
|
|
|
1941
1528
|
};
|
|
1942
1529
|
var dynamicStyles = useBaseTileStyles();
|
|
1943
1530
|
if (isInteractive) {
|
|
1944
|
-
return (
|
|
1531
|
+
return (jsxRuntime.jsx(reactNative.Pressable, { style: function (_a) {
|
|
1945
1532
|
var pressed = _a.pressed;
|
|
1946
1533
|
return [
|
|
1947
1534
|
baseStyles.container,
|
|
@@ -1956,7 +1543,7 @@ var BaseTileContainer = function (_a) {
|
|
|
1956
1543
|
}, onPress: handlePress, accessible: true, role: "button", accessibilityLabel: "".concat(title, " - Click to open"), accessibilityState: { disabled: !ctaLink }, children: children }));
|
|
1957
1544
|
}
|
|
1958
1545
|
else {
|
|
1959
|
-
return (
|
|
1546
|
+
return (jsxRuntime.jsx(reactNative.View, { style: [
|
|
1960
1547
|
baseStyles.container,
|
|
1961
1548
|
dynamicStyles.container,
|
|
1962
1549
|
{
|
|
@@ -1979,7 +1566,7 @@ var BaseTileRoot = function (_a) {
|
|
|
1979
1566
|
console.warn('BaseTile: No tile provided');
|
|
1980
1567
|
return null;
|
|
1981
1568
|
}
|
|
1982
|
-
return (
|
|
1569
|
+
return (jsxRuntime.jsx(TileContext.Provider, { value: tile, children: jsxRuntime.jsx(BaseTile.Container, { style: style, children: children }) }));
|
|
1983
1570
|
};
|
|
1984
1571
|
/**
|
|
1985
1572
|
* BaseTile component with subcomponents attached.
|
|
@@ -2011,19 +1598,19 @@ var ProgressiveImage = function (_a) {
|
|
|
2011
1598
|
var baseColor = theme.alphaDerivedPrimary[20];
|
|
2012
1599
|
var desaturatedColor = desaturateColor(baseColor);
|
|
2013
1600
|
var backgroundColor = isDesaturated ? desaturatedColor : baseColor;
|
|
2014
|
-
var baseImage = (
|
|
1601
|
+
var baseImage = (jsxRuntime.jsx(reactNative.Animated.Image, __assign({}, props, { source: source, style: [
|
|
2015
1602
|
styles$7.imageOverlay,
|
|
2016
1603
|
style,
|
|
2017
1604
|
__assign({ opacity: imageAnimated }, (IS_WEB && {
|
|
2018
1605
|
filter: isDesaturated ? 'grayscale(100%)' : undefined,
|
|
2019
1606
|
})),
|
|
2020
1607
|
], onLoad: onImageLoad, accessibilityLabel: alt, accessible: true, role: "img" })));
|
|
2021
|
-
return (
|
|
1608
|
+
return (jsxRuntime.jsxs(reactNative.View, { style: [
|
|
2022
1609
|
styles$7.container,
|
|
2023
1610
|
isHalfHeight && { minHeight: 0 },
|
|
2024
1611
|
style,
|
|
2025
1612
|
{ backgroundColor: backgroundColor },
|
|
2026
|
-
], children: [
|
|
1613
|
+
], children: [jsxRuntime.jsx(reactNative.Animated.View, { style: [
|
|
2027
1614
|
styles$7.imageOverlay,
|
|
2028
1615
|
{
|
|
2029
1616
|
backgroundColor: backgroundColor,
|
|
@@ -2034,7 +1621,7 @@ var ProgressiveImage = function (_a) {
|
|
|
2034
1621
|
},
|
|
2035
1622
|
] }), IS_WEB ? (baseImage) : (
|
|
2036
1623
|
// For React Native, use the overlay technique
|
|
2037
|
-
|
|
1624
|
+
jsxRuntime.jsxs(jsxRuntime.Fragment, { children: [baseImage, isDesaturated && (jsxRuntime.jsx(reactNative.Animated.Image, __assign({}, props, { source: source, style: [
|
|
2038
1625
|
styles$7.imageOverlay,
|
|
2039
1626
|
style,
|
|
2040
1627
|
{
|
|
@@ -2091,12 +1678,12 @@ var BaseBanner = function (_a) {
|
|
|
2091
1678
|
borderRadius: theme.sizes.borderRadiusLg,
|
|
2092
1679
|
},
|
|
2093
1680
|
];
|
|
2094
|
-
return
|
|
1681
|
+
return jsxRuntime.jsx(BannerContext.Provider, { value: tile, children: isInteractive ? (jsxRuntime.jsx(reactNative.Pressable, { testID: testID || 'banner-tile', style: function (_a) {
|
|
2095
1682
|
var pressed = _a.pressed;
|
|
2096
1683
|
return __spreadArray(__spreadArray([], commonStyles, true), [
|
|
2097
1684
|
{ opacity: pressed ? 0.7 : 1 },
|
|
2098
1685
|
], false);
|
|
2099
|
-
}, 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 })) });
|
|
2100
1687
|
};
|
|
2101
1688
|
var styles$6 = reactNative.StyleSheet.create({
|
|
2102
1689
|
container: {
|
|
@@ -2118,7 +1705,7 @@ var Indicator = function () {
|
|
|
2118
1705
|
return 'Tablet Layout';
|
|
2119
1706
|
return 'Mobile Layout';
|
|
2120
1707
|
};
|
|
2121
|
-
return (
|
|
1708
|
+
return (jsxRuntime.jsx(reactNative.View, { style: styles$5.indicator, children: jsxRuntime.jsx(reactNative.Text, { style: styles$5.indicatorText, children: getCurrentLayout() }) }));
|
|
2122
1709
|
};
|
|
2123
1710
|
var styles$5 = reactNative.StyleSheet.create({
|
|
2124
1711
|
indicator: {
|
|
@@ -2169,7 +1756,7 @@ var SkeletonTile = function (_a) {
|
|
|
2169
1756
|
inputRange: [0, 1],
|
|
2170
1757
|
outputRange: [0.3, 0.7],
|
|
2171
1758
|
});
|
|
2172
|
-
return (
|
|
1759
|
+
return (jsxRuntime.jsx(reactNative.Animated.View, { style: [
|
|
2173
1760
|
styles$4.container,
|
|
2174
1761
|
{
|
|
2175
1762
|
opacity: opacity,
|
|
@@ -2211,7 +1798,7 @@ var Skeleton = function (_a) {
|
|
|
2211
1798
|
inputRange: [0, 1],
|
|
2212
1799
|
outputRange: [0.3, 0.7],
|
|
2213
1800
|
});
|
|
2214
|
-
return (
|
|
1801
|
+
return (jsxRuntime.jsxs(reactNative.View, { testID: "loading-skeleton", children: [jsxRuntime.jsx(reactNative.Animated.View, { style: [
|
|
2215
1802
|
styles$3.skeleton,
|
|
2216
1803
|
styles$3.title,
|
|
2217
1804
|
{
|
|
@@ -2219,7 +1806,7 @@ var Skeleton = function (_a) {
|
|
|
2219
1806
|
backgroundColor: theme.alphaDerivedText[20],
|
|
2220
1807
|
borderRadius: 6,
|
|
2221
1808
|
},
|
|
2222
|
-
] }),
|
|
1809
|
+
] }), jsxRuntime.jsx(reactNative.Animated.View, { style: [
|
|
2223
1810
|
styles$3.skeleton,
|
|
2224
1811
|
styles$3.body,
|
|
2225
1812
|
{
|
|
@@ -2227,7 +1814,7 @@ var Skeleton = function (_a) {
|
|
|
2227
1814
|
backgroundColor: theme.alphaDerivedText[20],
|
|
2228
1815
|
borderRadius: 6,
|
|
2229
1816
|
},
|
|
2230
|
-
] }),
|
|
1817
|
+
] }), jsxRuntime.jsx(reactNative.Animated.View, { style: [styles$3.container, style], children: Array.from({ length: numberOfSquares }).map(function (_, index) { return (jsxRuntime.jsx(SkeletonTile, {}, index)); }) })] }));
|
|
2231
1818
|
};
|
|
2232
1819
|
var styles$3 = reactNative.StyleSheet.create({
|
|
2233
1820
|
container: {
|
|
@@ -2300,12 +1887,12 @@ function withTileFetching(WrappedComponent) {
|
|
|
2300
1887
|
}
|
|
2301
1888
|
}, [tile, tileId, getTileByID]);
|
|
2302
1889
|
if (isLoading) {
|
|
2303
|
-
return
|
|
1890
|
+
return jsxRuntime.jsx(SkeletonTile, { style: { width: '100%' } });
|
|
2304
1891
|
}
|
|
2305
1892
|
if (error || !tileData) {
|
|
2306
|
-
return (
|
|
1893
|
+
return (jsxRuntime.jsx(reactNative.View, { style: commonStyles.emptyContainer, children: jsxRuntime.jsx(reactNative.Text, { children: "No tile data available" }) }));
|
|
2307
1894
|
}
|
|
2308
|
-
return
|
|
1895
|
+
return jsxRuntime.jsx(WrappedComponent, __assign({}, props, { tile: tileData }));
|
|
2309
1896
|
};
|
|
2310
1897
|
}
|
|
2311
1898
|
|
|
@@ -2392,7 +1979,7 @@ var BadgeTileDateEarned = function () {
|
|
|
2392
1979
|
? badgeNotEarnedMessage
|
|
2393
1980
|
: "".concat(awardedDatePrefix).concat(formattedDate);
|
|
2394
1981
|
var accessibilityLabel = count === 0 ? 'Badge not yet earned' : "Badge earned on ".concat(formattedDate);
|
|
2395
|
-
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" }));
|
|
2396
1983
|
};
|
|
2397
1984
|
|
|
2398
1985
|
/**
|
|
@@ -2422,11 +2009,11 @@ var BadgeTileDescription = function () {
|
|
|
2422
2009
|
return 1;
|
|
2423
2010
|
return 2;
|
|
2424
2011
|
}, [width]);
|
|
2425
|
-
return (
|
|
2012
|
+
return (jsxRuntime.jsx(reactNative.View, { accessible: true, accessibilityLabel: "Badge description: ".concat(description), testID: "badge-tile-description", style: {
|
|
2426
2013
|
width: '100%',
|
|
2427
2014
|
overflow: 'hidden',
|
|
2428
2015
|
paddingBottom: theme.sizes.xxs,
|
|
2429
|
-
}, children:
|
|
2016
|
+
}, children: jsxRuntime.jsx(Text, { variant: "body", numberOfLines: numberOfLines, ellipsizeMode: "tail", accessibilityElementsHidden: true, importantForAccessibility: "no-hide-descendants", children: description }) }));
|
|
2430
2017
|
};
|
|
2431
2018
|
|
|
2432
2019
|
/**
|
|
@@ -2494,7 +2081,7 @@ var BadgeTileMedia = function (_a) {
|
|
|
2494
2081
|
: artworkUrl;
|
|
2495
2082
|
if (!displayUrl)
|
|
2496
2083
|
return null;
|
|
2497
|
-
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] }));
|
|
2498
2085
|
};
|
|
2499
2086
|
|
|
2500
2087
|
/**
|
|
@@ -2514,7 +2101,7 @@ var BadgeTileStatus = function () {
|
|
|
2514
2101
|
}
|
|
2515
2102
|
var isLocked = count === 0;
|
|
2516
2103
|
var statusLabel = isLocked ? 'Badge locked' : "Earned ".concat(count, " times");
|
|
2517
|
-
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"] })) }));
|
|
2518
2105
|
};
|
|
2519
2106
|
|
|
2520
2107
|
/**
|
|
@@ -2535,7 +2122,7 @@ var BadgeTileTitle = function () {
|
|
|
2535
2122
|
: name;
|
|
2536
2123
|
if (!displayText)
|
|
2537
2124
|
return null;
|
|
2538
|
-
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 }) }));
|
|
2539
2126
|
};
|
|
2540
2127
|
|
|
2541
2128
|
/**
|
|
@@ -2547,7 +2134,7 @@ var BadgeTileRoot = function (_a) {
|
|
|
2547
2134
|
var tile = _a.tile;
|
|
2548
2135
|
if (!tile || tile.tileHeight !== exports.TileHeight.Full || !tile.active)
|
|
2549
2136
|
return null;
|
|
2550
|
-
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, {})] })] }));
|
|
2551
2138
|
};
|
|
2552
2139
|
/**
|
|
2553
2140
|
* The BadgeTile component with subcomponents attached.
|
|
@@ -2579,7 +2166,7 @@ var BannerTileCTA = function () {
|
|
|
2579
2166
|
? "Opens ".concat(ctaLink, " in a new window")
|
|
2580
2167
|
: "Takes you to ".concat(ctaLink)
|
|
2581
2168
|
: '';
|
|
2582
|
-
return (
|
|
2169
|
+
return (jsxRuntime.jsx(Button, { testID: "banner-tile-cta", title: ctaText, variant: "accent", onPress: handlePress, accessibilityHint: hint }));
|
|
2583
2170
|
};
|
|
2584
2171
|
|
|
2585
2172
|
/**
|
|
@@ -2635,7 +2222,7 @@ var BannerTileDescription = function () {
|
|
|
2635
2222
|
var description = bannerContext.configuration.description;
|
|
2636
2223
|
if (!description)
|
|
2637
2224
|
return null;
|
|
2638
|
-
return (
|
|
2225
|
+
return (jsxRuntime.jsx(Text, { style: styles.description, role: "article", testID: "banner-tile-description", children: description }));
|
|
2639
2226
|
};
|
|
2640
2227
|
|
|
2641
2228
|
/**
|
|
@@ -2655,7 +2242,7 @@ var BannerTileMedia = function (_a) {
|
|
|
2655
2242
|
var containerStyle = {
|
|
2656
2243
|
width: isArtworkOnly ? '100%' : '30%',
|
|
2657
2244
|
};
|
|
2658
|
-
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) : '') }) }));
|
|
2659
2246
|
};
|
|
2660
2247
|
|
|
2661
2248
|
/**
|
|
@@ -2671,7 +2258,7 @@ var BannerTileTitle = function () {
|
|
|
2671
2258
|
var title = bannerContext.configuration.title;
|
|
2672
2259
|
if (!title)
|
|
2673
2260
|
return null;
|
|
2674
|
-
return (
|
|
2261
|
+
return (jsxRuntime.jsx(Text, { variant: "title", testID: "banner-tile-title", style: styles.title, role: "heading", accessibilityLabel: title, children: title }));
|
|
2675
2262
|
};
|
|
2676
2263
|
|
|
2677
2264
|
/**
|
|
@@ -2698,7 +2285,7 @@ var BannerTileRoot = function (_a) {
|
|
|
2698
2285
|
if (!tile || !tile.active || !tile.configuration)
|
|
2699
2286
|
return null;
|
|
2700
2287
|
var configuration = tile.configuration;
|
|
2701
|
-
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, {})] })] }));
|
|
2702
2289
|
};
|
|
2703
2290
|
/**
|
|
2704
2291
|
* The BannerTile component with subcomponents attached.
|
|
@@ -2720,7 +2307,7 @@ var ContentTileChevron = function () {
|
|
|
2720
2307
|
var ctaLink = tileContext.configuration.ctaLink;
|
|
2721
2308
|
if (!ctaLink)
|
|
2722
2309
|
return null;
|
|
2723
|
-
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" }));
|
|
2724
2311
|
};
|
|
2725
2312
|
|
|
2726
2313
|
/**
|
|
@@ -2755,6 +2342,14 @@ var useContentTileStyles = function (hasArtwork) {
|
|
|
2755
2342
|
});
|
|
2756
2343
|
};
|
|
2757
2344
|
|
|
2345
|
+
var getContentTileMediaContainerStyle = function (isArtworkOnly) {
|
|
2346
|
+
return isArtworkOnly
|
|
2347
|
+
? {
|
|
2348
|
+
flexBasis: '100%',
|
|
2349
|
+
aspectRatio: 1,
|
|
2350
|
+
}
|
|
2351
|
+
: { flexBasis: '50%' };
|
|
2352
|
+
};
|
|
2758
2353
|
var ContentTileMedia = function (_a) {
|
|
2759
2354
|
var isArtworkOnly = _a.isArtworkOnly;
|
|
2760
2355
|
var tileContext = useTileContext();
|
|
@@ -2765,8 +2360,8 @@ var ContentTileMedia = function (_a) {
|
|
|
2765
2360
|
return null;
|
|
2766
2361
|
var hasArtwork = Boolean(artworkUrl);
|
|
2767
2362
|
var styles = useContentTileStyles(hasArtwork);
|
|
2768
|
-
var containerStyle =
|
|
2769
|
-
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) }) }));
|
|
2770
2365
|
};
|
|
2771
2366
|
|
|
2772
2367
|
var ContentTileSummary = function () {
|
|
@@ -2795,7 +2390,7 @@ var ContentTileSummary = function () {
|
|
|
2795
2390
|
return 8;
|
|
2796
2391
|
return 6;
|
|
2797
2392
|
}, [title, body, artworkUrl, isHalfSize]);
|
|
2798
|
-
return (
|
|
2393
|
+
return (jsxRuntime.jsx(Text, { variant: "body", role: "article", accessibilityLabel: body, numberOfLines: numberOfLines, testID: "content-tile-summary", children: body }));
|
|
2799
2394
|
};
|
|
2800
2395
|
|
|
2801
2396
|
var ContentTileTitle = function () {
|
|
@@ -2826,7 +2421,7 @@ var ContentTileTitle = function () {
|
|
|
2826
2421
|
return styles.titleWithLink;
|
|
2827
2422
|
}
|
|
2828
2423
|
};
|
|
2829
|
-
return (
|
|
2424
|
+
return (jsxRuntime.jsx(Text, { variant: "title", role: "heading", accessibilityLabel: title, numberOfLines: numberOfLines, style: handleTitleWidth(), testID: "content-tile-title", children: title }));
|
|
2830
2425
|
};
|
|
2831
2426
|
|
|
2832
2427
|
/**
|
|
@@ -2855,8 +2450,8 @@ var ContentTileRoot = function (_a) {
|
|
|
2855
2450
|
var configuration = tile.configuration;
|
|
2856
2451
|
var hasArtwork = Boolean(configuration.artworkUrl);
|
|
2857
2452
|
var styles = useContentTileStyles(hasArtwork);
|
|
2858
|
-
return (
|
|
2859
|
-
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, {})] }))] }));
|
|
2860
2455
|
};
|
|
2861
2456
|
/**
|
|
2862
2457
|
* The ContentTile component with subcomponents attached.
|
|
@@ -3089,13 +2684,13 @@ var SectionHeader = function (_a) {
|
|
|
3089
2684
|
if (!title) {
|
|
3090
2685
|
return null;
|
|
3091
2686
|
}
|
|
3092
|
-
return (
|
|
2687
|
+
return (jsxRuntime.jsxs(reactNative.View, { style: styles.sectionHeader, children: [title && (jsxRuntime.jsx(Text, { style: [
|
|
3093
2688
|
styles.sectionTitle,
|
|
3094
2689
|
{
|
|
3095
2690
|
fontWeight: '700',
|
|
3096
2691
|
color: theme.text,
|
|
3097
2692
|
},
|
|
3098
|
-
], children: title })), description && (
|
|
2693
|
+
], children: title })), description && (jsxRuntime.jsx(Text, { style: [
|
|
3099
2694
|
styles.sectionDescription,
|
|
3100
2695
|
{
|
|
3101
2696
|
color: theme.alphaDerivedText[80],
|
|
@@ -3266,23 +2861,23 @@ var Carousel = function (_a) {
|
|
|
3266
2861
|
marginTop: useResponsiveValue(theme.sizes.xxl, theme.sizes.sm, isDesktop, isTablet),
|
|
3267
2862
|
},
|
|
3268
2863
|
});
|
|
3269
|
-
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) {
|
|
3270
2865
|
var width = event.nativeEvent.layout.width;
|
|
3271
2866
|
dispatch({ type: 'SET_CONTAINER_WIDTH', payload: width });
|
|
3272
|
-
}, 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: {
|
|
3273
2868
|
width: containerWidth * sortedTiles.length,
|
|
3274
|
-
}, 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: [
|
|
3275
2870
|
styles.slideContainer,
|
|
3276
2871
|
{
|
|
3277
2872
|
width: containerWidth,
|
|
3278
2873
|
},
|
|
3279
|
-
], 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) {
|
|
3280
2875
|
var width = animatedIndex.interpolate({
|
|
3281
2876
|
inputRange: [index - 1, index, index + 1],
|
|
3282
2877
|
outputRange: [8, 30, 8],
|
|
3283
2878
|
extrapolate: 'clamp',
|
|
3284
2879
|
});
|
|
3285
|
-
return (
|
|
2880
|
+
return (jsxRuntime.jsx(reactNative.Animated.View, { style: [
|
|
3286
2881
|
styles.indicator,
|
|
3287
2882
|
{ backgroundColor: theme.derivedBackground, width: width },
|
|
3288
2883
|
index === currentIndex && {
|
|
@@ -3322,11 +2917,11 @@ var CarouselNavButton = function (_a) {
|
|
|
3322
2917
|
var theme = useWllSdk().theme;
|
|
3323
2918
|
var isRight = direction === 'right';
|
|
3324
2919
|
var styles = useNavButtonStyles();
|
|
3325
|
-
return (
|
|
2920
|
+
return (jsxRuntime.jsx(reactNative.Pressable, { style: [
|
|
3326
2921
|
styles.navButton,
|
|
3327
2922
|
isRight ? styles.navButtonRight : styles.navButtonLeft,
|
|
3328
2923
|
{ backgroundColor: theme.background },
|
|
3329
|
-
], 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 }) }));
|
|
3330
2925
|
};
|
|
3331
2926
|
|
|
3332
2927
|
var Grid = function (_a) {
|
|
@@ -3385,17 +2980,17 @@ var Grid = function (_a) {
|
|
|
3385
2980
|
};
|
|
3386
2981
|
if (shouldStartNewContainer(currentTiles, tile, nextTile)) {
|
|
3387
2982
|
var isLastInRow = (tileContainers.length + 1) % columnsPerRow === 0;
|
|
3388
|
-
tileContainers.push(
|
|
2983
|
+
tileContainers.push(jsxRuntime.jsx(reactNative.View, { style: [
|
|
3389
2984
|
// @ts-ignore Web uses CSS calc strings for responsive layouts, while ViewStyle expects numbers
|
|
3390
2985
|
getTileWidth(columnsPerRow),
|
|
3391
2986
|
!isLastInRow && getDirectionalMargin(GRID_GAP),
|
|
3392
|
-
], children:
|
|
2987
|
+
], children: jsxRuntime.jsx(TileContainer, { tiles: currentTiles }) }, "container-".concat(index)));
|
|
3393
2988
|
currentTiles = [];
|
|
3394
2989
|
}
|
|
3395
2990
|
});
|
|
3396
2991
|
return tileContainers;
|
|
3397
2992
|
}, [gridTiles, columnsPerRow, getTileWidth]);
|
|
3398
|
-
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() })] }));
|
|
3399
2994
|
};
|
|
3400
2995
|
var styles$2 = reactNative.StyleSheet.create({
|
|
3401
2996
|
grid: {
|
|
@@ -3417,14 +3012,14 @@ var ProgressIndicator = function (_a) {
|
|
|
3417
3012
|
else if (percentage < 50) {
|
|
3418
3013
|
progressVariant = 'accent';
|
|
3419
3014
|
}
|
|
3420
|
-
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: [
|
|
3421
3016
|
styles$1.circle,
|
|
3422
3017
|
{
|
|
3423
3018
|
borderColor: theme.derivedSurface[20],
|
|
3424
3019
|
backgroundColor: isComplete ? theme.primary : theme.surface,
|
|
3425
3020
|
borderWidth: isComplete ? 0 : 4,
|
|
3426
3021
|
},
|
|
3427
|
-
], children: isComplete && (
|
|
3022
|
+
], children: isComplete && (jsxRuntime.jsx(Icon, { name: "Check", size: 12, color: theme.primaryText })) }) })] }));
|
|
3428
3023
|
};
|
|
3429
3024
|
var styles$1 = reactNative.StyleSheet.create({
|
|
3430
3025
|
container: {
|
|
@@ -3525,7 +3120,7 @@ var useSectionData = function (section, sectionId) {
|
|
|
3525
3120
|
*/
|
|
3526
3121
|
var EmptyState = function (_a) {
|
|
3527
3122
|
var message = _a.message;
|
|
3528
|
-
return (
|
|
3123
|
+
return (jsxRuntime.jsx(reactNative.View, { style: commonStyles.emptyContainer, role: "article", accessibilityLabel: "Empty state: ".concat(message), children: jsxRuntime.jsx(reactNative.Text, { children: message }) }));
|
|
3529
3124
|
};
|
|
3530
3125
|
/**
|
|
3531
3126
|
* The Section component renders a section based on its type (e.g., Banner, Grid).
|
|
@@ -3545,33 +3140,33 @@ var Section = function (_a) {
|
|
|
3545
3140
|
}
|
|
3546
3141
|
var renderSectionContent = function () {
|
|
3547
3142
|
if (isLoading) {
|
|
3548
|
-
return (
|
|
3143
|
+
return (jsxRuntime.jsx(Skeleton, { "aria-label": "Loading section content", numberOfSquares: IS_WEB ? 4 : 2 }));
|
|
3549
3144
|
}
|
|
3550
3145
|
if (error || !sectionData) {
|
|
3551
|
-
return
|
|
3146
|
+
return jsxRuntime.jsx(EmptyState, { message: error || 'No section data available.' });
|
|
3552
3147
|
}
|
|
3553
3148
|
// Filter out inactive tiles before passing to child components
|
|
3554
3149
|
var activeTiles = sectionData.tiles &&
|
|
3555
3150
|
sortByPriority(sectionData.tiles.filter(function (tile) { return tile && tile.active; }));
|
|
3556
3151
|
if (!activeTiles || activeTiles.length === 0) {
|
|
3557
|
-
return
|
|
3152
|
+
return jsxRuntime.jsx(EmptyState, { message: "No active tiles available." });
|
|
3558
3153
|
}
|
|
3559
3154
|
var sectionWithActiveTiles = __assign(__assign({}, sectionData), { tiles: activeTiles });
|
|
3560
3155
|
if (!sectionData.type) {
|
|
3561
3156
|
console.warn('Section is missing a type');
|
|
3562
|
-
return
|
|
3157
|
+
return jsxRuntime.jsx(EmptyState, { message: "Invalid section configuration." });
|
|
3563
3158
|
}
|
|
3564
3159
|
switch (sectionData.type) {
|
|
3565
3160
|
case exports.SectionType.Banner:
|
|
3566
|
-
return
|
|
3161
|
+
return jsxRuntime.jsx(Carousel, { section: sectionWithActiveTiles });
|
|
3567
3162
|
case exports.SectionType.Grid:
|
|
3568
|
-
return
|
|
3163
|
+
return jsxRuntime.jsx(Grid, { section: sectionWithActiveTiles });
|
|
3569
3164
|
default:
|
|
3570
3165
|
console.warn("Unknown section type: ".concat(sectionData.type));
|
|
3571
|
-
return
|
|
3166
|
+
return jsxRuntime.jsx(EmptyState, { message: "Unknown section type." });
|
|
3572
3167
|
}
|
|
3573
3168
|
};
|
|
3574
|
-
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;
|
|
3575
3170
|
};
|
|
3576
3171
|
|
|
3577
3172
|
/**
|
|
@@ -3624,7 +3219,7 @@ var useGroupData = function (id) {
|
|
|
3624
3219
|
*/
|
|
3625
3220
|
var GroupEmptyState = function (_a) {
|
|
3626
3221
|
var message = _a.message;
|
|
3627
|
-
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 }) }));
|
|
3628
3223
|
};
|
|
3629
3224
|
/**
|
|
3630
3225
|
* Component to render all sections in a group
|
|
@@ -3634,16 +3229,16 @@ var GroupEmptyState = function (_a) {
|
|
|
3634
3229
|
var GroupSections = function () {
|
|
3635
3230
|
var groupData = useGroupContext().groupData;
|
|
3636
3231
|
if (!groupData || !groupData.sections || groupData.sections.length === 0) {
|
|
3637
|
-
return
|
|
3232
|
+
return jsxRuntime.jsx(GroupEmptyState, { message: "This group doesn't have any sections" });
|
|
3638
3233
|
}
|
|
3639
3234
|
// Filter out inactive sections and null/undefined values before sorting
|
|
3640
3235
|
var activeSections = groupData.sections.filter(function (section) { return section && section.active; });
|
|
3641
3236
|
if (activeSections.length === 0) {
|
|
3642
|
-
return (
|
|
3237
|
+
return (jsxRuntime.jsx(GroupEmptyState, { message: "This group doesn't have any active sections" }));
|
|
3643
3238
|
}
|
|
3644
3239
|
var sortedSections = sortByPriority(activeSections);
|
|
3645
3240
|
var Container = IS_WEB ? reactNative.View : reactNative.ScrollView;
|
|
3646
|
-
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)); }) }));
|
|
3647
3242
|
};
|
|
3648
3243
|
/**
|
|
3649
3244
|
* A page-level component that represents a Group view in the application.
|
|
@@ -3670,13 +3265,13 @@ var Group = function (_a) {
|
|
|
3670
3265
|
refreshing: isLoading && !groupData
|
|
3671
3266
|
}), refreshControl = _d.refreshControl; _d.refreshing;
|
|
3672
3267
|
if (isLoading && !groupData) {
|
|
3673
|
-
return (
|
|
3268
|
+
return (jsxRuntime.jsx(reactNative.View, { style: {
|
|
3674
3269
|
flex: 1,
|
|
3675
3270
|
padding: IS_MOBILE ? theme.sizes.lg : undefined,
|
|
3676
|
-
}, accessible: true, accessibilityLabel: "Loading group data", children:
|
|
3271
|
+
}, accessible: true, accessibilityLabel: "Loading group data", children: jsxRuntime.jsx(Skeleton, { numberOfSquares: IS_WEB ? 4 : 2 }) }));
|
|
3677
3272
|
}
|
|
3678
3273
|
if (error || !groupData) {
|
|
3679
|
-
return
|
|
3274
|
+
return jsxRuntime.jsx(GroupEmptyState, { message: error || 'No group data available' });
|
|
3680
3275
|
}
|
|
3681
3276
|
var Container = IS_WEB ? reactNative.View : reactNative.ScrollView;
|
|
3682
3277
|
var containerProps = IS_WEB
|
|
@@ -3685,7 +3280,7 @@ var Group = function (_a) {
|
|
|
3685
3280
|
refreshControl: enablePullToRefresh ? refreshControl : undefined,
|
|
3686
3281
|
showsVerticalScrollIndicator: true,
|
|
3687
3282
|
};
|
|
3688
|
-
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, {}) })) }) }));
|
|
3689
3284
|
};
|
|
3690
3285
|
|
|
3691
3286
|
/**
|
|
@@ -3764,7 +3359,7 @@ var Column = function (_a) {
|
|
|
3764
3359
|
var styles = reactNative.StyleSheet.create({
|
|
3765
3360
|
container: __assign({ justifyContent: justifyMap[justify], alignItems: alignMap[align], flexDirection: reverse ? 'column-reverse' : 'column' }, (flex !== undefined && { flex: flex })),
|
|
3766
3361
|
});
|
|
3767
|
-
return (
|
|
3362
|
+
return (jsxRuntime.jsx(reactNative.View, __assign({ style: [styles.container, style] }, rest, { children: children })));
|
|
3768
3363
|
};
|
|
3769
3364
|
|
|
3770
3365
|
/**
|
|
@@ -3780,7 +3375,7 @@ var FullFlex = function (_a) {
|
|
|
3780
3375
|
var isRTL = IS_WEB &&
|
|
3781
3376
|
typeof document !== 'undefined' &&
|
|
3782
3377
|
document.documentElement.dir === 'rtl';
|
|
3783
|
-
return (
|
|
3378
|
+
return (jsxRuntime.jsx(reactNative.View, __assign({ style: [
|
|
3784
3379
|
__assign({ flex: 1,
|
|
3785
3380
|
// If the language is Arabic (RTL), use 'rtl', otherwise 'ltr'.
|
|
3786
3381
|
direction: isRTL ? 'rtl' : 'ltr' }, (isRTL && {
|
|
@@ -3813,7 +3408,7 @@ var Layout = function (_a) {
|
|
|
3813
3408
|
flexDirection: direction,
|
|
3814
3409
|
},
|
|
3815
3410
|
});
|
|
3816
|
-
return (
|
|
3411
|
+
return (jsxRuntime.jsx(reactNative.View, __assign({ style: [dynamicStyles.container, style] }, rest, { children: children })));
|
|
3817
3412
|
};
|
|
3818
3413
|
|
|
3819
3414
|
/**
|
|
@@ -3830,7 +3425,7 @@ var Row = function (_a) {
|
|
|
3830
3425
|
var styles = reactNative.StyleSheet.create({
|
|
3831
3426
|
container: __assign({ justifyContent: justifyMap[justify], alignItems: alignMap[align], flexDirection: reverse ? 'row-reverse' : 'row' }, (flex !== undefined && { flex: flex })),
|
|
3832
3427
|
});
|
|
3833
|
-
return (
|
|
3428
|
+
return (jsxRuntime.jsx(reactNative.View, __assign({ style: [styles.container, style] }, rest, { children: children })));
|
|
3834
3429
|
};
|
|
3835
3430
|
|
|
3836
3431
|
/**
|
|
@@ -3841,7 +3436,7 @@ var Row = function (_a) {
|
|
|
3841
3436
|
*/
|
|
3842
3437
|
var Spacer = function (_a) {
|
|
3843
3438
|
var style = _a.style, rest = __rest(_a, ["style"]);
|
|
3844
|
-
return
|
|
3439
|
+
return jsxRuntime.jsx(reactNative.View, __assign({ style: [{ flex: 1 }, style] }, rest));
|
|
3845
3440
|
};
|
|
3846
3441
|
|
|
3847
3442
|
/**
|
|
@@ -3922,7 +3517,7 @@ var PointsTileFormattedPoints = function () {
|
|
|
3922
3517
|
return null;
|
|
3923
3518
|
var calculatedPoints = applyMultiplier(points, pointsMultiplier);
|
|
3924
3519
|
var fullPointsText = "".concat(pointsPrefix).concat(calculatedPoints, " ").concat(pointsSuffix).trim();
|
|
3925
|
-
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] }) }));
|
|
3926
3521
|
};
|
|
3927
3522
|
|
|
3928
3523
|
/**
|
|
@@ -3939,7 +3534,7 @@ var PointsTileMedia = function (_a) {
|
|
|
3939
3534
|
var styles = usePointsTileStyles(isFullSize);
|
|
3940
3535
|
if (!artworkUrl)
|
|
3941
3536
|
return null;
|
|
3942
|
-
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' }) }));
|
|
3943
3538
|
};
|
|
3944
3539
|
|
|
3945
3540
|
/**
|
|
@@ -3954,7 +3549,7 @@ var PointsTileTitle = function () {
|
|
|
3954
3549
|
var title = tileContext.configuration.title;
|
|
3955
3550
|
if (!title)
|
|
3956
3551
|
return null;
|
|
3957
|
-
return (
|
|
3552
|
+
return (jsxRuntime.jsx(Text, { variant: "eyebrow", testID: "points-tile-title", role: "heading", accessibilityLabel: title, children: title }));
|
|
3958
3553
|
};
|
|
3959
3554
|
|
|
3960
3555
|
/**
|
|
@@ -3972,7 +3567,7 @@ var PointsTileChevron = function () {
|
|
|
3972
3567
|
var ctaLink = tileContext.configuration.ctaLink;
|
|
3973
3568
|
if (!ctaLink)
|
|
3974
3569
|
return null;
|
|
3975
|
-
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" }) }));
|
|
3976
3571
|
};
|
|
3977
3572
|
|
|
3978
3573
|
/**
|
|
@@ -3990,7 +3585,7 @@ var PointsTileRoot = function (_a) {
|
|
|
3990
3585
|
return null;
|
|
3991
3586
|
var isFullSize = useTileSize(tile).isFullSize;
|
|
3992
3587
|
var styles = usePointsTileStyles(isFullSize);
|
|
3993
|
-
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, {})] })] }) })] }));
|
|
3994
3589
|
};
|
|
3995
3590
|
/**
|
|
3996
3591
|
* The PointsTile component with subcomponents attached.
|
|
@@ -4052,7 +3647,7 @@ var RewardCategoryHeader = function () {
|
|
|
4052
3647
|
var _a = tileContext.configuration, _b = _a.showName, showName = _b === void 0 ? true : _b, _c = _a.name, name = _c === void 0 ? '' : _c;
|
|
4053
3648
|
if (!showName || !name)
|
|
4054
3649
|
return null;
|
|
4055
|
-
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 }) }));
|
|
4056
3651
|
};
|
|
4057
3652
|
|
|
4058
3653
|
/**
|
|
@@ -4068,7 +3663,7 @@ var RewardCategoryMedia = function () {
|
|
|
4068
3663
|
var _a = tileContext.configuration, artworkUrl = _a.artworkUrl, _b = _a.name, name = _b === void 0 ? 'Reward' : _b;
|
|
4069
3664
|
if (!artworkUrl)
|
|
4070
3665
|
return null;
|
|
4071
|
-
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" }));
|
|
4072
3667
|
};
|
|
4073
3668
|
|
|
4074
3669
|
/**
|
|
@@ -4082,7 +3677,7 @@ var RewardCategoryTileRoot = function (_a) {
|
|
|
4082
3677
|
var tile = _a.tile;
|
|
4083
3678
|
if (!tile || !tile.active || !tile.configuration)
|
|
4084
3679
|
return null;
|
|
4085
|
-
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, {})] }) }));
|
|
4086
3681
|
};
|
|
4087
3682
|
/**
|
|
4088
3683
|
* The RewardCategoryTile component with subcomponents attached.
|
|
@@ -4101,7 +3696,7 @@ var RewardCategoryTile$1 = withTileFetching(RewardCategoryTile);
|
|
|
4101
3696
|
var RewardTileChevron = function () {
|
|
4102
3697
|
var _a;
|
|
4103
3698
|
var theme = useWllSdk().theme;
|
|
4104
|
-
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" }));
|
|
4105
3700
|
};
|
|
4106
3701
|
|
|
4107
3702
|
/**
|
|
@@ -4202,7 +3797,7 @@ var RewardTileMedia = function (_a) {
|
|
|
4202
3797
|
aspectRatio: tileContext.tileHeight === exports.TileHeight.Half ? 2 : 1,
|
|
4203
3798
|
}
|
|
4204
3799
|
: __assign({ flexBasis: '50%' }, (tileContext.tileHeight === exports.TileHeight.Half && { minHeight: 0 }));
|
|
4205
|
-
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" }) }))] }));
|
|
4206
3801
|
};
|
|
4207
3802
|
|
|
4208
3803
|
/**
|
|
@@ -4220,7 +3815,7 @@ var RewardTilePoints = function () {
|
|
|
4220
3815
|
return null;
|
|
4221
3816
|
var calculatedPoints = applyMultiplier(price, pointsMultiplier);
|
|
4222
3817
|
var accessibilityLabel = getPointsLabel('Reward points:', calculatedPoints, pointsPrefix, pointsSuffix);
|
|
4223
|
-
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] }) }));
|
|
4224
3819
|
};
|
|
4225
3820
|
|
|
4226
3821
|
/**
|
|
@@ -4240,7 +3835,7 @@ var RewardTileStatus = function () {
|
|
|
4240
3835
|
var label = isOutOfStock ? outOfStockMessage : stockRemainingMessage;
|
|
4241
3836
|
if (!label)
|
|
4242
3837
|
return null;
|
|
4243
|
-
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 }));
|
|
4244
3839
|
};
|
|
4245
3840
|
|
|
4246
3841
|
/**
|
|
@@ -4257,7 +3852,7 @@ var RewardTileSummary = function () {
|
|
|
4257
3852
|
var numberOfLines = shouldShowPrice ? 2 : 3;
|
|
4258
3853
|
if (!summary)
|
|
4259
3854
|
return null;
|
|
4260
|
-
return (
|
|
3855
|
+
return (jsxRuntime.jsx(Text, { variant: "body", role: "article", accessibilityLabel: summary, testID: "reward-tile-summary", numberOfLines: numberOfLines, ellipsizeMode: "tail", children: summary }));
|
|
4261
3856
|
};
|
|
4262
3857
|
|
|
4263
3858
|
/**
|
|
@@ -4278,7 +3873,7 @@ var RewardTileTitle = function () {
|
|
|
4278
3873
|
return styles.titleWithLink;
|
|
4279
3874
|
}
|
|
4280
3875
|
};
|
|
4281
|
-
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 }));
|
|
4282
3877
|
};
|
|
4283
3878
|
|
|
4284
3879
|
/**
|
|
@@ -4319,7 +3914,7 @@ var RewardTileRoot = function (_a) {
|
|
|
4319
3914
|
? !!configuration.outOfStockMessage
|
|
4320
3915
|
: !!configuration.stockRemainingMessage;
|
|
4321
3916
|
var hasFooter = hasPoints || hasStatus;
|
|
4322
|
-
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, {})] }))] }))] }));
|
|
4323
3918
|
};
|
|
4324
3919
|
/**
|
|
4325
3920
|
* The RewardTile component with subcomponents attached.
|
|
@@ -4380,9 +3975,9 @@ var TierTileInner = function (_a) {
|
|
|
4380
3975
|
var tier = configuration.tier;
|
|
4381
3976
|
var isHalfSize = useTileSize(tile).isHalfSize;
|
|
4382
3977
|
if (!tier || Array.isArray(tier)) {
|
|
4383
|
-
return
|
|
3978
|
+
return jsxRuntime.jsx(TierTile.Empty, { tile: tile });
|
|
4384
3979
|
}
|
|
4385
|
-
return isHalfSize ? (
|
|
3980
|
+
return isHalfSize ? (jsxRuntime.jsx(TierTile.Half, { tile: tile })) : (jsxRuntime.jsx(TierTile.Full, { tile: tile }));
|
|
4386
3981
|
};
|
|
4387
3982
|
var TierTileFull = function (_a) {
|
|
4388
3983
|
var tile = _a.tile;
|
|
@@ -4390,7 +3985,7 @@ var TierTileFull = function (_a) {
|
|
|
4390
3985
|
var configuration = tile.configuration;
|
|
4391
3986
|
var tier = configuration.tier, title = configuration.title;
|
|
4392
3987
|
var _b = tier !== null && tier !== void 0 ? tier : {}, artworkUrl = _b.artworkUrl, name = _b.name, description = _b.description;
|
|
4393
|
-
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 })] }) })] }));
|
|
4394
3989
|
};
|
|
4395
3990
|
var TierTileHalf = function (_a) {
|
|
4396
3991
|
var tile = _a.tile;
|
|
@@ -4398,7 +3993,7 @@ var TierTileHalf = function (_a) {
|
|
|
4398
3993
|
var configuration = tile.configuration;
|
|
4399
3994
|
var _b = configuration, tier = _b.tier, title = _b.title;
|
|
4400
3995
|
var _c = tier || {}, artworkUrl = _c.artworkUrl, name = _c.name;
|
|
4401
|
-
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" }) }))] }) }));
|
|
4402
3997
|
};
|
|
4403
3998
|
// Empty state tile
|
|
4404
3999
|
var TierTileEmpty = function (_a) {
|
|
@@ -4408,9 +4003,9 @@ var TierTileEmpty = function (_a) {
|
|
|
4408
4003
|
var title = configuration.title, emptyDescription = configuration.emptyDescription, emptyArtworkUrl = configuration.emptyArtworkUrl;
|
|
4409
4004
|
var isHalfSize = useTileSize(tile).isHalfSize;
|
|
4410
4005
|
if (isHalfSize) {
|
|
4411
|
-
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" }) }))] }) }));
|
|
4412
4007
|
}
|
|
4413
|
-
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 })] }) })] }));
|
|
4414
4009
|
};
|
|
4415
4010
|
var TierTile = TierTileInner;
|
|
4416
4011
|
TierTile.Full = TierTileFull;
|
|
@@ -4430,7 +4025,7 @@ var RoundupTileFormattedPoints = function () {
|
|
|
4430
4025
|
if (balance === undefined)
|
|
4431
4026
|
return null;
|
|
4432
4027
|
var fullPointsText = "".concat(amountPrefix).concat(cleanNumber(balance)).concat(amountSuffix).trim();
|
|
4433
|
-
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 }) }) }));
|
|
4434
4029
|
};
|
|
4435
4030
|
|
|
4436
4031
|
/**
|
|
@@ -4510,7 +4105,7 @@ var RoundupTileMedia = function (_a) {
|
|
|
4510
4105
|
var styles = useRoundupTileStyles(isFullSize);
|
|
4511
4106
|
if (!artworkUrl)
|
|
4512
4107
|
return null;
|
|
4513
|
-
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' }) }));
|
|
4514
4109
|
};
|
|
4515
4110
|
|
|
4516
4111
|
/**
|
|
@@ -4525,7 +4120,7 @@ var RoundupTileTitle = function () {
|
|
|
4525
4120
|
var title = tileContext.configuration.title;
|
|
4526
4121
|
if (!title)
|
|
4527
4122
|
return null;
|
|
4528
|
-
return (
|
|
4123
|
+
return (jsxRuntime.jsx(Text, { variant: "eyebrow", testID: "roundup-tile-title", role: "heading", accessibilityLabel: title, children: title }));
|
|
4529
4124
|
};
|
|
4530
4125
|
|
|
4531
4126
|
/**
|
|
@@ -4543,7 +4138,7 @@ var RoundupTileChevron = function () {
|
|
|
4543
4138
|
var ctaLink = tileContext.configuration.ctaLink;
|
|
4544
4139
|
if (!ctaLink)
|
|
4545
4140
|
return null;
|
|
4546
|
-
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" }) }));
|
|
4547
4142
|
};
|
|
4548
4143
|
|
|
4549
4144
|
/**
|
|
@@ -4561,7 +4156,7 @@ var RoundupTileRoot = function (_a) {
|
|
|
4561
4156
|
return null;
|
|
4562
4157
|
var isFullSize = useTileSize(tile).isFullSize;
|
|
4563
4158
|
var styles = useRoundupTileStyles(isFullSize);
|
|
4564
|
-
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, {})] })] }) })] }));
|
|
4565
4160
|
};
|
|
4566
4161
|
/**
|
|
4567
4162
|
* The PointsTile component with subcomponents attached.
|
|
@@ -4582,7 +4177,7 @@ var RoundupTile$1 = withTileFetching(RoundupTile);
|
|
|
4582
4177
|
var VenueTileChevron = function () {
|
|
4583
4178
|
var _a;
|
|
4584
4179
|
var theme = useWllSdk().theme;
|
|
4585
|
-
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" }));
|
|
4586
4181
|
};
|
|
4587
4182
|
|
|
4588
4183
|
/**
|
|
@@ -4666,7 +4261,7 @@ var VenueTileMedia = function () {
|
|
|
4666
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;
|
|
4667
4262
|
var containerStyle = __assign({ flexBasis: '50%' }, (tileContext.tileHeight === exports.TileHeight.Half && { minHeight: 0 }));
|
|
4668
4263
|
var showCenteredPin = !artworkUrl && !isLocked;
|
|
4669
|
-
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" }) }))] })] }));
|
|
4670
4265
|
};
|
|
4671
4266
|
|
|
4672
4267
|
/**
|
|
@@ -4681,7 +4276,7 @@ var VenueTileDescription = function () {
|
|
|
4681
4276
|
var description = tileContext.configuration.description;
|
|
4682
4277
|
if (!description)
|
|
4683
4278
|
return null;
|
|
4684
|
-
return (
|
|
4279
|
+
return (jsxRuntime.jsx(Text, { variant: "body", role: "article", accessibilityLabel: description, testID: "venue-tile-description", numberOfLines: 3, ellipsizeMode: "tail", children: description }));
|
|
4685
4280
|
};
|
|
4686
4281
|
|
|
4687
4282
|
/**
|
|
@@ -4702,7 +4297,7 @@ var VenueTileTitle = function () {
|
|
|
4702
4297
|
return styles.tileTitle;
|
|
4703
4298
|
}
|
|
4704
4299
|
};
|
|
4705
|
-
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 }));
|
|
4706
4301
|
};
|
|
4707
4302
|
|
|
4708
4303
|
/**
|
|
@@ -4719,7 +4314,7 @@ var VenueTileRoot = function (_a) {
|
|
|
4719
4314
|
!tile.active ||
|
|
4720
4315
|
!tile.configuration)
|
|
4721
4316
|
return null;
|
|
4722
|
-
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, {})] })] }));
|
|
4723
4318
|
};
|
|
4724
4319
|
/**
|
|
4725
4320
|
* The VenueTile component with subcomponents attached.
|
|
@@ -4752,16 +4347,16 @@ var TileContainer = function (_a) {
|
|
|
4752
4347
|
var allHalfHeight = tiles.length > 0 &&
|
|
4753
4348
|
tiles.every(function (tile) { return tile.tileHeight === exports.TileHeight.Half; });
|
|
4754
4349
|
var halfHeightGap = allHalfHeight ? GRID_GAP / 2 : GRID_GAP;
|
|
4755
|
-
return (
|
|
4350
|
+
return (jsxRuntime.jsx(reactNative.View, { style: [styles.container, allHalfHeight && { aspectRatio: 1 }], testID: "tile-container", children: tiles.map(function (tile, index) {
|
|
4756
4351
|
var TileComponent = TILE_COMPONENTS[tile.type];
|
|
4757
4352
|
var isHalfHeight = tile.tileHeight === exports.TileHeight.Half;
|
|
4758
|
-
return (
|
|
4353
|
+
return (jsxRuntime.jsx(reactNative.View, { style: [
|
|
4759
4354
|
styles.tileWrapper,
|
|
4760
4355
|
isHalfHeight && styles.halfHeightTile,
|
|
4761
4356
|
index > 0 && {
|
|
4762
4357
|
marginTop: allHalfHeight ? halfHeightGap : GRID_GAP,
|
|
4763
4358
|
},
|
|
4764
|
-
], children: TileComponent ?
|
|
4359
|
+
], children: TileComponent ? jsxRuntime.jsx(TileComponent, { tile: tile }) : null }, tile.id));
|
|
4765
4360
|
}) }));
|
|
4766
4361
|
};
|
|
4767
4362
|
var styles = reactNative.StyleSheet.create({
|
|
@@ -4849,7 +4444,7 @@ var Chip = function (_a) {
|
|
|
4849
4444
|
var computedAccessibilityLabel = accessibilityLabel !== null && accessibilityLabel !== void 0 ? accessibilityLabel : (typeof label === 'string' ? label : undefined);
|
|
4850
4445
|
var _e = mapLiveRegion(ariaLive), accessibilityLiveRegion = _e.native, ariaLiveValue = _e.web;
|
|
4851
4446
|
var isIndividuallyAccessible = computedAccessibilityLabel !== undefined;
|
|
4852
|
-
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 }) }));
|
|
4853
4448
|
};
|
|
4854
4449
|
|
|
4855
4450
|
var Reward = /** @class */ (function () {
|