@telefonica/mistica 16.30.0 → 16.31.0
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/css/mistica.css +1 -1
- package/dist/accordion.css-mistica.js +6 -6
- package/dist/align.css-mistica.js +1 -1
- package/dist/avatar.css-mistica.js +1 -1
- package/dist/badge.css-mistica.js +1 -1
- package/dist/box.css-mistica.js +13 -13
- package/dist/boxed.css-mistica.js +24 -24
- package/dist/button-group.css-mistica.js +1 -1
- package/dist/button-layout.css-mistica.js +13 -13
- package/dist/button.css-mistica.js +16 -16
- package/dist/button.d.ts +4 -0
- package/dist/button.js +11 -10
- package/dist/callout.css-mistica.js +5 -5
- package/dist/card.css-mistica.js +3 -3
- package/dist/card.d.ts +22 -0
- package/dist/card.js +491 -424
- package/dist/carousel.css-mistica.js +6 -6
- package/dist/checkbox.css-mistica.js +7 -7
- package/dist/chip.css-mistica.js +12 -12
- package/dist/circle.css-mistica.js +1 -1
- package/dist/community/advanced-data-card.css-mistica.js +6 -6
- package/dist/community/blocks.css-mistica.js +1 -1
- package/dist/community/example-component.css-mistica.js +1 -1
- package/dist/counter.css-mistica.js +1 -1
- package/dist/cover-hero.css-mistica.js +3 -3
- package/dist/credit-card-number-field.css-mistica.js +3 -3
- package/dist/date-field.css-mistica.js +1 -1
- package/dist/date-time-picker.css-mistica.js +1 -1
- package/dist/dialog-context.js +32 -27
- package/dist/dialog.css-mistica.js +4 -4
- package/dist/dialog.d.ts +1 -0
- package/dist/divider.css-mistica.js +2 -2
- package/dist/double-field.css-mistica.js +2 -2
- package/dist/drawer.css-mistica.js +1 -1
- package/dist/drawer.d.ts +5 -0
- package/dist/empty-state-card.css-mistica.js +1 -1
- package/dist/empty-state.css-mistica.js +5 -5
- package/dist/fade-in.css-mistica.js +1 -1
- package/dist/feedback.css-mistica.js +1 -1
- package/dist/fixed-footer-layout.css-mistica.js +4 -4
- package/dist/form.css-mistica.js +1 -1
- package/dist/grid-layout.css-mistica.js +3 -3
- package/dist/grid.css-mistica.js +122 -122
- package/dist/header.css-mistica.js +1 -1
- package/dist/hero.css-mistica.js +2 -2
- package/dist/highlighted-card.css-mistica.js +4 -4
- package/dist/horizontal-scroll.css-mistica.js +1 -1
- package/dist/icon-button.css-mistica.js +42 -42
- package/dist/icon-button.js +43 -47
- package/dist/icons/icon-chevron.css-mistica.js +2 -2
- package/dist/icons/icon-error.css-mistica.js +1 -1
- package/dist/image.css-mistica.js +3 -3
- package/dist/inline.css-mistica.js +10 -10
- package/dist/list.css-mistica.js +1 -1
- package/dist/list.d.ts +10 -5
- package/dist/list.js +79 -76
- package/dist/loading-bar.css-mistica.js +1 -1
- package/dist/loading-screen.css-mistica.js +4 -4
- package/dist/logo.css-mistica.js +5 -5
- package/dist/maybe-dismissable.css-mistica.js +1 -1
- package/dist/menu.css-mistica.js +12 -12
- package/dist/mosaic.css-mistica.js +1 -1
- package/dist/navigation-bar.css-mistica.js +16 -16
- package/dist/navigation-breadcrumbs.css-mistica.js +1 -1
- package/dist/package-version.js +1 -1
- package/dist/pin-field.css-mistica.js +1 -1
- package/dist/popover.css-mistica.js +1 -1
- package/dist/progress-bar.css-mistica.js +4 -4
- package/dist/radio-button.css-mistica.js +14 -14
- package/dist/rating.css-mistica.js +2 -2
- package/dist/responsive-layout.css-mistica.js +4 -4
- package/dist/screen-reader-only.css-mistica.js +1 -1
- package/dist/select.css-mistica.js +15 -15
- package/dist/sheet-action-row.css-mistica.js +1 -1
- package/dist/sheet-common.css-mistica.js +1 -1
- package/dist/sheet-info.css-mistica.js +1 -1
- package/dist/sheet-root.js +42 -38
- package/dist/skeletons.css-mistica.js +4 -4
- package/dist/skins/skin-contract.css-mistica.js +354 -354
- package/dist/slider.css-mistica.js +10 -10
- package/dist/snackbar.css-mistica.js +4 -4
- package/dist/spinner.css-mistica.js +1 -1
- package/dist/stack.css-mistica.js +5 -5
- package/dist/stacking-group.css-mistica.js +1 -1
- package/dist/stepper.css-mistica.js +12 -9
- package/dist/stepper.css.d.ts +1 -0
- package/dist/stepper.d.ts +4 -2
- package/dist/stepper.js +54 -39
- package/dist/switch-component.css-mistica.js +26 -26
- package/dist/table.css-mistica.js +8 -8
- package/dist/tabs.css-mistica.js +12 -12
- package/dist/tabs.d.ts +15 -1
- package/dist/tabs.js +154 -81
- package/dist/tag.css-mistica.js +1 -1
- package/dist/text-field-base.css-mistica.js +1 -1
- package/dist/text-field-components.css-mistica.js +3 -3
- package/dist/text-link.css-mistica.js +5 -5
- package/dist/text-tokens.d.ts +4 -0
- package/dist/text-tokens.js +89 -73
- package/dist/text.css-mistica.js +7 -7
- package/dist/theme-context.css-mistica.js +394 -394
- package/dist/timeline.css-mistica.js +10 -10
- package/dist/timer.css-mistica.js +6 -6
- package/dist/tooltip.css-mistica.js +1 -1
- package/dist/touchable.css-mistica.js +1 -1
- package/dist/touchable.d.ts +5 -2
- package/dist/touchable.js +53 -53
- package/dist/utils/aspect-ratio-support.css-mistica.js +3 -3
- package/dist/video.css-mistica.js +1 -1
- package/dist/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +1 -1
- package/dist-es/accordion.css-mistica.js +6 -6
- package/dist-es/align.css-mistica.js +1 -1
- package/dist-es/avatar.css-mistica.js +1 -1
- package/dist-es/badge.css-mistica.js +1 -1
- package/dist-es/box.css-mistica.js +13 -13
- package/dist-es/boxed.css-mistica.js +23 -23
- package/dist-es/button-group.css-mistica.js +1 -1
- package/dist-es/button-layout.css-mistica.js +13 -13
- package/dist-es/button.css-mistica.js +16 -16
- package/dist-es/button.js +15 -14
- package/dist-es/callout.css-mistica.js +5 -5
- package/dist-es/card.css-mistica.js +3 -3
- package/dist-es/card.js +627 -559
- package/dist-es/carousel.css-mistica.js +6 -6
- package/dist-es/checkbox.css-mistica.js +7 -7
- package/dist-es/chip.css-mistica.js +12 -12
- package/dist-es/circle.css-mistica.js +1 -1
- package/dist-es/community/advanced-data-card.css-mistica.js +6 -6
- package/dist-es/community/blocks.css-mistica.js +1 -1
- package/dist-es/community/example-component.css-mistica.js +1 -1
- package/dist-es/counter.css-mistica.js +1 -1
- package/dist-es/cover-hero.css-mistica.js +3 -3
- package/dist-es/credit-card-number-field.css-mistica.js +3 -3
- package/dist-es/date-field.css-mistica.js +1 -1
- package/dist-es/date-time-picker.css-mistica.js +1 -1
- package/dist-es/dialog-context.js +33 -28
- package/dist-es/dialog.css-mistica.js +4 -4
- package/dist-es/divider.css-mistica.js +2 -2
- package/dist-es/double-field.css-mistica.js +2 -2
- package/dist-es/drawer.css-mistica.js +1 -1
- package/dist-es/empty-state-card.css-mistica.js +1 -1
- package/dist-es/empty-state.css-mistica.js +5 -5
- package/dist-es/fade-in.css-mistica.js +1 -1
- package/dist-es/feedback.css-mistica.js +1 -1
- package/dist-es/fixed-footer-layout.css-mistica.js +4 -4
- package/dist-es/form.css-mistica.js +1 -1
- package/dist-es/grid-layout.css-mistica.js +3 -3
- package/dist-es/grid.css-mistica.js +122 -122
- package/dist-es/header.css-mistica.js +1 -1
- package/dist-es/hero.css-mistica.js +2 -2
- package/dist-es/highlighted-card.css-mistica.js +4 -4
- package/dist-es/horizontal-scroll.css-mistica.js +1 -1
- package/dist-es/icon-button.css-mistica.js +42 -42
- package/dist-es/icon-button.js +52 -56
- package/dist-es/icons/icon-chevron.css-mistica.js +2 -2
- package/dist-es/icons/icon-error.css-mistica.js +1 -1
- package/dist-es/image.css-mistica.js +3 -3
- package/dist-es/inline.css-mistica.js +10 -10
- package/dist-es/list.css-mistica.js +1 -1
- package/dist-es/list.js +111 -108
- package/dist-es/loading-bar.css-mistica.js +1 -1
- package/dist-es/loading-screen.css-mistica.js +4 -4
- package/dist-es/logo.css-mistica.js +5 -5
- package/dist-es/maybe-dismissable.css-mistica.js +1 -1
- package/dist-es/menu.css-mistica.js +12 -12
- package/dist-es/mosaic.css-mistica.js +1 -1
- package/dist-es/navigation-bar.css-mistica.js +16 -16
- package/dist-es/navigation-breadcrumbs.css-mistica.js +1 -1
- package/dist-es/package-version.js +1 -1
- package/dist-es/pin-field.css-mistica.js +1 -1
- package/dist-es/popover.css-mistica.js +1 -1
- package/dist-es/progress-bar.css-mistica.js +4 -4
- package/dist-es/radio-button.css-mistica.js +14 -14
- package/dist-es/rating.css-mistica.js +2 -2
- package/dist-es/responsive-layout.css-mistica.js +4 -4
- package/dist-es/screen-reader-only.css-mistica.js +1 -1
- package/dist-es/select.css-mistica.js +15 -15
- package/dist-es/sheet-action-row.css-mistica.js +1 -1
- package/dist-es/sheet-common.css-mistica.js +1 -1
- package/dist-es/sheet-info.css-mistica.js +1 -1
- package/dist-es/sheet-root.js +44 -40
- package/dist-es/skeletons.css-mistica.js +4 -4
- package/dist-es/skins/skin-contract.css-mistica.js +354 -354
- package/dist-es/slider.css-mistica.js +10 -10
- package/dist-es/snackbar.css-mistica.js +4 -4
- package/dist-es/spinner.css-mistica.js +1 -1
- package/dist-es/stack.css-mistica.js +5 -5
- package/dist-es/stacking-group.css-mistica.js +1 -1
- package/dist-es/stepper.css-mistica.js +3 -3
- package/dist-es/stepper.js +76 -60
- package/dist-es/style.css +1 -1
- package/dist-es/switch-component.css-mistica.js +26 -26
- package/dist-es/table.css-mistica.js +8 -8
- package/dist-es/tabs.css-mistica.js +12 -12
- package/dist-es/tabs.js +166 -93
- package/dist-es/tag.css-mistica.js +1 -1
- package/dist-es/text-field-base.css-mistica.js +1 -1
- package/dist-es/text-field-components.css-mistica.js +3 -3
- package/dist-es/text-link.css-mistica.js +5 -5
- package/dist-es/text-tokens.js +47 -37
- package/dist-es/text.css-mistica.js +7 -7
- package/dist-es/theme-context.css-mistica.js +394 -394
- package/dist-es/timeline.css-mistica.js +10 -10
- package/dist-es/timer.css-mistica.js +6 -6
- package/dist-es/tooltip.css-mistica.js +1 -1
- package/dist-es/touchable.css-mistica.js +1 -1
- package/dist-es/touchable.js +67 -67
- package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
- package/dist-es/video.css-mistica.js +1 -1
- package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +1 -1
- package/package.json +1 -1
package/dist/card.js
CHANGED
|
@@ -11,43 +11,43 @@ function _export(target, all) {
|
|
|
11
11
|
}
|
|
12
12
|
_export(exports, {
|
|
13
13
|
CardActionIconButton: function() {
|
|
14
|
-
return
|
|
14
|
+
return Ta;
|
|
15
15
|
},
|
|
16
16
|
CardActionSpinner: function() {
|
|
17
|
-
return
|
|
17
|
+
return wa;
|
|
18
18
|
},
|
|
19
19
|
CardActionsGroup: function() {
|
|
20
|
-
return
|
|
20
|
+
return oe;
|
|
21
21
|
},
|
|
22
22
|
DataCard: function() {
|
|
23
|
-
return
|
|
23
|
+
return sr;
|
|
24
24
|
},
|
|
25
25
|
DisplayDataCard: function() {
|
|
26
|
-
return
|
|
26
|
+
return hr;
|
|
27
27
|
},
|
|
28
28
|
DisplayMediaCard: function() {
|
|
29
|
-
return
|
|
29
|
+
return cr;
|
|
30
30
|
},
|
|
31
31
|
MediaCard: function() {
|
|
32
|
-
return
|
|
32
|
+
return tr;
|
|
33
33
|
},
|
|
34
34
|
NakedCard: function() {
|
|
35
|
-
return
|
|
35
|
+
return nr;
|
|
36
36
|
},
|
|
37
37
|
PosterCard: function() {
|
|
38
|
-
return
|
|
38
|
+
return vr;
|
|
39
39
|
},
|
|
40
40
|
SmallNakedCard: function() {
|
|
41
|
-
return
|
|
41
|
+
return or;
|
|
42
42
|
},
|
|
43
43
|
SnapCard: function() {
|
|
44
|
-
return
|
|
44
|
+
return lr;
|
|
45
45
|
},
|
|
46
46
|
useInnerText: function() {
|
|
47
|
-
return
|
|
47
|
+
return F;
|
|
48
48
|
},
|
|
49
49
|
useVideoWithControls: function() {
|
|
50
|
-
return
|
|
50
|
+
return $e;
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
const _jsxruntime = require("react/jsx-runtime");
|
|
@@ -205,24 +205,24 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
205
205
|
}
|
|
206
206
|
return target;
|
|
207
207
|
}
|
|
208
|
-
const
|
|
209
|
-
const [a, r] = _react.useState(""),
|
|
208
|
+
const F = ()=>{
|
|
209
|
+
const [a, r] = _react.useState(""), d = _react.useCallback((n)=>{
|
|
210
210
|
n && r((process.env.NODE_ENV === "test" ? n.textContent : n.innerText) || "");
|
|
211
211
|
}, []);
|
|
212
212
|
return {
|
|
213
213
|
text: a,
|
|
214
|
-
ref:
|
|
214
|
+
ref: d
|
|
215
215
|
};
|
|
216
|
-
},
|
|
217
|
-
const { texts: n, t:
|
|
216
|
+
}, Xe = (a, r, d)=>{
|
|
217
|
+
const { texts: n, t: h } = (0, _hooks.useTheme)(), t = a ? [
|
|
218
218
|
...a
|
|
219
219
|
] : [];
|
|
220
|
-
return r &&
|
|
221
|
-
label:
|
|
220
|
+
return r && t.push({
|
|
221
|
+
label: d || n.closeButtonLabel || h(_texttokens.closeButtonLabel),
|
|
222
222
|
onPress: r,
|
|
223
223
|
Icon: _iconcloseregular.default
|
|
224
|
-
}),
|
|
225
|
-
},
|
|
224
|
+
}), t;
|
|
225
|
+
}, Ta = (a)=>{
|
|
226
226
|
const r = (0, _themevariantcontext.useThemeVariant)();
|
|
227
227
|
return a.Icon ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.IconButton, _object_spread_props(_object_spread({}, a), {
|
|
228
228
|
"aria-label": a.label,
|
|
@@ -242,10 +242,10 @@ const O = ()=>{
|
|
|
242
242
|
}),
|
|
243
243
|
small: !0
|
|
244
244
|
}));
|
|
245
|
-
},
|
|
246
|
-
let { actions: a, padding: r = 16, onClose:
|
|
247
|
-
const
|
|
248
|
-
return
|
|
245
|
+
}, oe = (param)=>{
|
|
246
|
+
let { actions: a, padding: r = 16, onClose: d, variant: n = "default", closeButtonLabel: h } = param;
|
|
247
|
+
const t = Xe(a, d, h);
|
|
248
|
+
return t.length > 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
|
|
249
249
|
variant: n,
|
|
250
250
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
251
251
|
style: {
|
|
@@ -259,40 +259,44 @@ const O = ()=>{
|
|
|
259
259
|
dataAttributes: {
|
|
260
260
|
testid: "topActions"
|
|
261
261
|
},
|
|
262
|
-
children:
|
|
262
|
+
children: t.map((s, o)=>"Icon" in s || "checkedProps" in s ? /* @__PURE__ */ (0, _jsxruntime.jsx)(Ta, _object_spread({}, s), o) : s)
|
|
263
263
|
})
|
|
264
264
|
})
|
|
265
265
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {});
|
|
266
|
-
},
|
|
266
|
+
}, Ra = (a)=>a ? typeof a == "number" ? a : ({
|
|
267
267
|
"1:1": 1,
|
|
268
268
|
"16:9": 16 / 9,
|
|
269
269
|
"7:10": 7 / 10,
|
|
270
270
|
"9:10": 9 / 10,
|
|
271
271
|
auto: 0
|
|
272
|
-
})[a] : 0,
|
|
273
|
-
let { children: a, width: r, height:
|
|
274
|
-
const
|
|
275
|
-
return
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
272
|
+
})[a] : 0, Z = /*#__PURE__*/ _react.forwardRef((param, v)=>{
|
|
273
|
+
let { children: a, width: r, height: d, aspectRatio: n, dataAttributes: h, className: t, "aria-label": i, "aria-labelledby": s, "aria-description": o, "aria-describedby": b } = param;
|
|
274
|
+
const c = r && d ? void 0 : Ra(n);
|
|
275
|
+
return(// eslint-disable-next-line jsx-a11y/role-supports-aria-props
|
|
276
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)("section", _object_spread_props(_object_spread({}, (0, _dom.getPrefixedDataAttributes)(h)), {
|
|
277
|
+
ref: v,
|
|
278
|
+
"aria-label": i,
|
|
279
|
+
"aria-labelledby": s,
|
|
280
|
+
"aria-description": o,
|
|
281
|
+
"aria-describedby": b,
|
|
282
|
+
className: (0, _classnames.default)(t, _cardcssmistica.cardContainer),
|
|
279
283
|
style: _object_spread({
|
|
280
284
|
width: r || "100%",
|
|
281
|
-
height:
|
|
282
|
-
},
|
|
283
|
-
[_cardcssmistica.vars.aspectRatio]: String(
|
|
285
|
+
height: d || "100%"
|
|
286
|
+
}, c ? (0, _css.applyCssVars)({
|
|
287
|
+
[_cardcssmistica.vars.aspectRatio]: String(c)
|
|
284
288
|
}) : {}),
|
|
285
289
|
children: a
|
|
286
|
-
}));
|
|
287
|
-
}),
|
|
288
|
-
const r = typeof a == "string" ? a : a == null ? void 0 : a.src,
|
|
290
|
+
})));
|
|
291
|
+
}), _e = (a)=>{
|
|
292
|
+
const r = typeof a == "string" ? a : a == null ? void 0 : a.src, d = typeof a == "string" || a == null ? void 0 : a.srcSet;
|
|
289
293
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_image.default, {
|
|
290
294
|
width: "100%",
|
|
291
295
|
height: "100%",
|
|
292
296
|
src: r || "",
|
|
293
|
-
srcSet:
|
|
297
|
+
srcSet: d
|
|
294
298
|
});
|
|
295
|
-
},
|
|
299
|
+
}, Sa = {
|
|
296
300
|
loading: {
|
|
297
301
|
showSpinner: "loadingTimeout",
|
|
298
302
|
play: "playing",
|
|
@@ -318,38 +322,38 @@ const O = ()=>{
|
|
|
318
322
|
error: {
|
|
319
323
|
reset: "loading"
|
|
320
324
|
}
|
|
321
|
-
}, Ba = (a, r)=>
|
|
325
|
+
}, Ba = (a, r)=>Sa[a][r] || a, wa = (param)=>{
|
|
322
326
|
let { color: a } = param;
|
|
323
327
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_spinner.default, {
|
|
324
328
|
color: a,
|
|
325
329
|
size: 16,
|
|
326
330
|
delay: "0"
|
|
327
331
|
});
|
|
328
|
-
},
|
|
332
|
+
}, Aa = (param)=>{
|
|
329
333
|
let { color: a } = param;
|
|
330
334
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconpausefilled.default, {
|
|
331
335
|
color: a,
|
|
332
336
|
size: 12
|
|
333
337
|
});
|
|
334
|
-
},
|
|
338
|
+
}, ka = (param)=>{
|
|
335
339
|
let { color: a } = param;
|
|
336
340
|
return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconplayfilled.default, {
|
|
337
341
|
color: a,
|
|
338
342
|
size: 12
|
|
339
343
|
});
|
|
340
|
-
},
|
|
341
|
-
const { texts: n, t:
|
|
344
|
+
}, $e = (a, r, d)=>{
|
|
345
|
+
const { texts: n, t: h } = (0, _hooks.useTheme)(), t = _react.useRef(null), [i, s] = _react.useReducer(Ba, "loading");
|
|
342
346
|
_react.useEffect(()=>{
|
|
343
347
|
var y;
|
|
344
|
-
const
|
|
345
|
-
return (y =
|
|
346
|
-
clearTimeout(
|
|
348
|
+
const c = setTimeout(()=>s("showSpinner"), 2e3);
|
|
349
|
+
return (y = t.current) == null || y.load(), ()=>{
|
|
350
|
+
clearTimeout(c), s("reset");
|
|
347
351
|
};
|
|
348
352
|
}, [
|
|
349
353
|
a
|
|
350
354
|
]);
|
|
351
355
|
const o = _react.useMemo(()=>a !== void 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_video.default, {
|
|
352
|
-
ref: (0, _common.combineRefs)(
|
|
356
|
+
ref: (0, _common.combineRefs)(t, d),
|
|
353
357
|
src: a,
|
|
354
358
|
width: "100%",
|
|
355
359
|
height: "100%",
|
|
@@ -358,62 +362,62 @@ const O = ()=>{
|
|
|
358
362
|
onPause: ()=>s("pause"),
|
|
359
363
|
onPlay: ()=>s("play")
|
|
360
364
|
}) : void 0, [
|
|
361
|
-
|
|
365
|
+
d,
|
|
362
366
|
a,
|
|
363
367
|
r
|
|
364
|
-
]),
|
|
365
|
-
const
|
|
366
|
-
|
|
368
|
+
]), b = ()=>{
|
|
369
|
+
const c = t.current;
|
|
370
|
+
c && (i === "loading" ? s("showSpinner") : i === "paused" ? c.play() : i === "playing" && c.pause());
|
|
367
371
|
};
|
|
368
|
-
if (
|
|
372
|
+
if (i === "error") return {
|
|
369
373
|
video: o
|
|
370
374
|
};
|
|
371
|
-
const
|
|
375
|
+
const v = o ? {
|
|
372
376
|
uncheckedProps: {
|
|
373
|
-
Icon:
|
|
374
|
-
label:
|
|
377
|
+
Icon: i === "loadingTimeout" && !(0, _platform.isRunningAcceptanceTest)() ? wa : Aa,
|
|
378
|
+
label: i === "loadingTimeout" ? "" : n.pauseIconButtonLabel || h(_texttokens.pauseIconButtonLabel)
|
|
375
379
|
},
|
|
376
380
|
checkedProps: {
|
|
377
|
-
Icon:
|
|
378
|
-
label: n.playIconButtonLabel ||
|
|
381
|
+
Icon: ka,
|
|
382
|
+
label: n.playIconButtonLabel || h(_texttokens.playIconButtonLabel)
|
|
379
383
|
},
|
|
380
|
-
onChange:
|
|
381
|
-
disabled:
|
|
382
|
-
checked:
|
|
384
|
+
onChange: b,
|
|
385
|
+
disabled: i === "loadingTimeout",
|
|
386
|
+
checked: i === "paused"
|
|
383
387
|
} : void 0;
|
|
384
388
|
return {
|
|
385
389
|
video: o,
|
|
386
|
-
videoAction:
|
|
390
|
+
videoAction: v
|
|
387
391
|
};
|
|
388
|
-
},
|
|
389
|
-
let { headline: a, headlineRef: r, pretitle:
|
|
390
|
-
const { textPresets:
|
|
392
|
+
}, Re = (param)=>{
|
|
393
|
+
let { headline: a, headlineRef: r, pretitle: d, pretitleAs: n, pretitleLinesMax: h, title: t, titleAs: i = "h3", titleLinesMax: s, subtitle: o, subtitleLinesMax: b, description: v, descriptionLinesMax: c, extra: y, extraRef: C, button: x, buttonLink: T } = param;
|
|
394
|
+
const { textPresets: m } = (0, _hooks.useTheme)();
|
|
391
395
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
392
396
|
className: _cardcssmistica.cardContentContainer,
|
|
393
397
|
children: [
|
|
394
398
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
395
399
|
className: _cardcssmistica.flexColumn,
|
|
396
400
|
children: [
|
|
397
|
-
(0, _headings.isBiggerHeading)(
|
|
401
|
+
(0, _headings.isBiggerHeading)(i, n) ? /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
398
402
|
children: [
|
|
399
|
-
|
|
403
|
+
t && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
400
404
|
style: {
|
|
401
|
-
paddingBottom: o ||
|
|
405
|
+
paddingBottom: o || v ? 4 : 0
|
|
402
406
|
},
|
|
403
407
|
"data-testid": "title",
|
|
404
408
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _textprops.text4), {
|
|
405
409
|
truncate: s,
|
|
406
|
-
weight:
|
|
407
|
-
as:
|
|
410
|
+
weight: m.cardTitle.weight,
|
|
411
|
+
as: i,
|
|
408
412
|
hyphens: "auto",
|
|
409
|
-
children:
|
|
413
|
+
children: t
|
|
410
414
|
}))
|
|
411
415
|
}),
|
|
412
416
|
a && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
413
417
|
ref: r,
|
|
414
418
|
style: {
|
|
415
419
|
order: -2,
|
|
416
|
-
paddingBottom:
|
|
420
|
+
paddingBottom: d || t || o || v ? 8 : 0
|
|
417
421
|
},
|
|
418
422
|
"data-testid": "headline",
|
|
419
423
|
children: typeof a == "string" ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_tag.default, {
|
|
@@ -421,42 +425,42 @@ const O = ()=>{
|
|
|
421
425
|
children: a
|
|
422
426
|
}) : a
|
|
423
427
|
}),
|
|
424
|
-
|
|
428
|
+
d && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
425
429
|
style: {
|
|
426
430
|
order: -1,
|
|
427
431
|
paddingBottom: 4
|
|
428
432
|
},
|
|
429
433
|
"data-testid": "pretitle",
|
|
430
434
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
431
|
-
truncate:
|
|
435
|
+
truncate: h,
|
|
432
436
|
as: n,
|
|
433
437
|
regular: !0,
|
|
434
438
|
hyphens: "auto",
|
|
435
|
-
children:
|
|
439
|
+
children: d
|
|
436
440
|
})
|
|
437
441
|
})
|
|
438
442
|
]
|
|
439
443
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
|
|
440
444
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
441
445
|
children: [
|
|
442
|
-
|
|
446
|
+
d && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
443
447
|
style: {
|
|
444
448
|
paddingBottom: 4
|
|
445
449
|
},
|
|
446
450
|
"data-testid": "pretitle",
|
|
447
451
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
448
|
-
truncate:
|
|
452
|
+
truncate: h,
|
|
449
453
|
as: n,
|
|
450
454
|
regular: !0,
|
|
451
455
|
hyphens: "auto",
|
|
452
|
-
children:
|
|
456
|
+
children: d
|
|
453
457
|
})
|
|
454
458
|
}),
|
|
455
459
|
a && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
456
460
|
ref: r,
|
|
457
461
|
style: {
|
|
458
462
|
order: -1,
|
|
459
|
-
paddingBottom:
|
|
463
|
+
paddingBottom: d || t || o || v ? 8 : 0
|
|
460
464
|
},
|
|
461
465
|
"data-testid": "headline",
|
|
462
466
|
children: typeof a == "string" ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_tag.default, {
|
|
@@ -464,17 +468,17 @@ const O = ()=>{
|
|
|
464
468
|
children: a
|
|
465
469
|
}) : a
|
|
466
470
|
}),
|
|
467
|
-
|
|
471
|
+
t && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
468
472
|
style: {
|
|
469
|
-
paddingBottom: o ||
|
|
473
|
+
paddingBottom: o || v ? 4 : 0
|
|
470
474
|
},
|
|
471
475
|
"data-testid": "title",
|
|
472
476
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _textprops.text4), {
|
|
473
477
|
truncate: s,
|
|
474
|
-
weight:
|
|
475
|
-
as:
|
|
478
|
+
weight: m.cardTitle.weight,
|
|
479
|
+
as: i,
|
|
476
480
|
hyphens: "auto",
|
|
477
|
-
children:
|
|
481
|
+
children: t
|
|
478
482
|
}))
|
|
479
483
|
})
|
|
480
484
|
]
|
|
@@ -482,51 +486,51 @@ const O = ()=>{
|
|
|
482
486
|
}),
|
|
483
487
|
o && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
484
488
|
style: {
|
|
485
|
-
paddingBottom:
|
|
489
|
+
paddingBottom: v ? 4 : 0
|
|
486
490
|
},
|
|
487
491
|
"data-testid": "subtitle",
|
|
488
492
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
489
|
-
truncate:
|
|
493
|
+
truncate: b,
|
|
490
494
|
as: "div",
|
|
491
495
|
regular: !0,
|
|
492
496
|
hyphens: "auto",
|
|
493
497
|
children: o
|
|
494
498
|
})
|
|
495
499
|
}),
|
|
496
|
-
|
|
500
|
+
v && // this is tricky, when headline exists, the 8px padding is added by it.
|
|
497
501
|
// Otherwise, only 4px are added by title|pretitle|subtitle, so we need to add 4px more
|
|
498
502
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
499
503
|
style: {
|
|
500
|
-
paddingTop:
|
|
504
|
+
paddingTop: d || t || o ? 4 : 0
|
|
501
505
|
},
|
|
502
506
|
"data-testid": "description",
|
|
503
507
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
504
|
-
truncate:
|
|
508
|
+
truncate: c,
|
|
505
509
|
as: "p",
|
|
506
510
|
regular: !0,
|
|
507
511
|
color: _skincontractcssmistica.vars.colors.textSecondary,
|
|
508
512
|
hyphens: "auto",
|
|
509
|
-
children:
|
|
513
|
+
children: v
|
|
510
514
|
})
|
|
511
515
|
}),
|
|
512
516
|
y && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
513
|
-
ref:
|
|
517
|
+
ref: C,
|
|
514
518
|
"data-testid": "slot",
|
|
515
519
|
children: y
|
|
516
520
|
})
|
|
517
521
|
]
|
|
518
522
|
}),
|
|
519
|
-
(
|
|
523
|
+
(x || T) && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
520
524
|
className: _cardcssmistica.actions,
|
|
521
525
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
|
|
522
|
-
primaryButton:
|
|
523
|
-
link:
|
|
526
|
+
primaryButton: x,
|
|
527
|
+
link: T
|
|
524
528
|
})
|
|
525
529
|
})
|
|
526
530
|
]
|
|
527
531
|
});
|
|
528
|
-
},
|
|
529
|
-
var { media: a, asset: r, headline:
|
|
532
|
+
}, tr = /*#__PURE__*/ _react.forwardRef((_param, j)=>{
|
|
533
|
+
var { media: a, asset: r, headline: d, pretitle: n, pretitleAs: h, pretitleLinesMax: t, subtitle: i, subtitleLinesMax: s, title: o, titleAs: b = "h3", titleLinesMax: v, description: c, descriptionLinesMax: y, extra: C, actions: x, button: T, buttonLink: m, dataAttributes: w, "aria-label": R, "aria-labelledby": f, "aria-description": g, "aria-describedby": B, onClose: H, closeButtonLabel: M } = _param, A = _object_without_properties(_param, [
|
|
530
534
|
"media",
|
|
531
535
|
"asset",
|
|
532
536
|
"headline",
|
|
@@ -546,49 +550,58 @@ const O = ()=>{
|
|
|
546
550
|
"buttonLink",
|
|
547
551
|
"dataAttributes",
|
|
548
552
|
"aria-label",
|
|
553
|
+
"aria-labelledby",
|
|
554
|
+
"aria-description",
|
|
555
|
+
"aria-describedby",
|
|
549
556
|
"onClose",
|
|
550
557
|
"closeButtonLabel"
|
|
551
558
|
]);
|
|
552
|
-
const
|
|
559
|
+
const u = !!(A.href || A.to || A.onPress), { text: N, ref: V } = F(), { text: X, ref: I } = F(), E = R || (f ? void 0 : ((0, _headings.isBiggerHeading)(b, h) ? [
|
|
553
560
|
o,
|
|
554
|
-
|
|
561
|
+
N,
|
|
555
562
|
n,
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
563
|
+
i,
|
|
564
|
+
c,
|
|
565
|
+
X
|
|
559
566
|
] : [
|
|
560
567
|
n,
|
|
561
|
-
|
|
568
|
+
N,
|
|
562
569
|
o,
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
]).filter(Boolean).join(" ");
|
|
567
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(
|
|
570
|
+
i,
|
|
571
|
+
c,
|
|
572
|
+
X
|
|
573
|
+
]).filter(Boolean).join(" "));
|
|
574
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(Z, {
|
|
568
575
|
dataAttributes: _object_spread({
|
|
569
576
|
"component-name": "MediaCard",
|
|
570
577
|
testid: "MediaCard"
|
|
571
|
-
},
|
|
572
|
-
ref:
|
|
573
|
-
"aria-label":
|
|
578
|
+
}, w),
|
|
579
|
+
ref: j,
|
|
580
|
+
"aria-label": u ? void 0 : R,
|
|
581
|
+
"aria-labelledby": u ? void 0 : f,
|
|
582
|
+
"aria-description": u ? void 0 : g,
|
|
583
|
+
"aria-describedby": u ? void 0 : B,
|
|
574
584
|
className: _cardcssmistica.touchableContainer,
|
|
575
585
|
children: [
|
|
576
586
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
577
587
|
maybe: !0
|
|
578
|
-
},
|
|
588
|
+
}, A), {
|
|
579
589
|
className: _cardcssmistica.touchable,
|
|
580
|
-
"aria-label":
|
|
590
|
+
"aria-label": u ? E : void 0,
|
|
591
|
+
"aria-labelledby": u ? f : void 0,
|
|
592
|
+
"aria-description": u ? g : void 0,
|
|
593
|
+
"aria-describedby": u ? B : void 0,
|
|
581
594
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_boxed.Boxed, {
|
|
582
595
|
className: _cardcssmistica.boxed,
|
|
583
596
|
width: "100%",
|
|
584
597
|
height: "100%",
|
|
585
598
|
children: [
|
|
586
|
-
|
|
599
|
+
u && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
587
600
|
className: _cardcssmistica.touchableMediaCardOverlay
|
|
588
601
|
}),
|
|
589
602
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
590
603
|
className: _cardcssmistica.mediaCard,
|
|
591
|
-
"aria-hidden":
|
|
604
|
+
"aria-hidden": u,
|
|
592
605
|
children: [
|
|
593
606
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
594
607
|
style: (0, _css.applyCssVars)({
|
|
@@ -598,23 +611,23 @@ const O = ()=>{
|
|
|
598
611
|
}),
|
|
599
612
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
600
613
|
className: _cardcssmistica.mediaCardContent,
|
|
601
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
602
|
-
headline:
|
|
614
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(Re, {
|
|
615
|
+
headline: d,
|
|
603
616
|
headlineRef: V,
|
|
604
617
|
pretitle: n,
|
|
605
|
-
pretitleAs:
|
|
606
|
-
pretitleLinesMax:
|
|
618
|
+
pretitleAs: h,
|
|
619
|
+
pretitleLinesMax: t,
|
|
607
620
|
title: o,
|
|
608
|
-
titleAs:
|
|
609
|
-
titleLinesMax:
|
|
610
|
-
subtitle:
|
|
621
|
+
titleAs: b,
|
|
622
|
+
titleLinesMax: v,
|
|
623
|
+
subtitle: i,
|
|
611
624
|
subtitleLinesMax: s,
|
|
612
|
-
description:
|
|
625
|
+
description: c,
|
|
613
626
|
descriptionLinesMax: y,
|
|
614
|
-
extra:
|
|
615
|
-
extraRef:
|
|
616
|
-
button:
|
|
617
|
-
buttonLink:
|
|
627
|
+
extra: C,
|
|
628
|
+
extraRef: I,
|
|
629
|
+
button: T,
|
|
630
|
+
buttonLink: m
|
|
618
631
|
})
|
|
619
632
|
}),
|
|
620
633
|
r && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
@@ -630,16 +643,16 @@ const O = ()=>{
|
|
|
630
643
|
]
|
|
631
644
|
})
|
|
632
645
|
})),
|
|
633
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
634
|
-
onClose:
|
|
635
|
-
closeButtonLabel:
|
|
636
|
-
actions:
|
|
646
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(oe, {
|
|
647
|
+
onClose: H,
|
|
648
|
+
closeButtonLabel: M,
|
|
649
|
+
actions: x,
|
|
637
650
|
variant: "media"
|
|
638
651
|
})
|
|
639
652
|
]
|
|
640
653
|
});
|
|
641
|
-
}),
|
|
642
|
-
var { media: a, asset: r, headline:
|
|
654
|
+
}), nr = /*#__PURE__*/ _react.forwardRef((_param, j)=>{
|
|
655
|
+
var { media: a, asset: r, headline: d, pretitle: n, pretitleAs: h, pretitleLinesMax: t, subtitle: i, subtitleLinesMax: s, title: o, titleAs: b = "h3", titleLinesMax: v, description: c, descriptionLinesMax: y, extra: C, actions: x, button: T, buttonLink: m, dataAttributes: w, "aria-label": R, "aria-labelledby": f, "aria-description": g, "aria-describedby": B, onClose: H, closeButtonLabel: M } = _param, A = _object_without_properties(_param, [
|
|
643
656
|
"media",
|
|
644
657
|
"asset",
|
|
645
658
|
"headline",
|
|
@@ -659,50 +672,59 @@ const O = ()=>{
|
|
|
659
672
|
"buttonLink",
|
|
660
673
|
"dataAttributes",
|
|
661
674
|
"aria-label",
|
|
675
|
+
"aria-labelledby",
|
|
676
|
+
"aria-description",
|
|
677
|
+
"aria-describedby",
|
|
662
678
|
"onClose",
|
|
663
679
|
"closeButtonLabel"
|
|
664
680
|
]);
|
|
665
|
-
const
|
|
681
|
+
const u = !!(A.href || A.to || A.onPress), N = a && a.type === _image.default && a.props.circular, { text: V, ref: X } = F(), { text: I, ref: E } = F(), W = R || (f ? void 0 : ((0, _headings.isBiggerHeading)(b, h) ? [
|
|
666
682
|
o,
|
|
667
683
|
V,
|
|
668
684
|
n,
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
685
|
+
i,
|
|
686
|
+
c,
|
|
687
|
+
I
|
|
672
688
|
] : [
|
|
673
689
|
n,
|
|
674
690
|
V,
|
|
675
691
|
o,
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
]).filter(Boolean).join(" ");
|
|
680
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(
|
|
681
|
-
ref:
|
|
692
|
+
i,
|
|
693
|
+
c,
|
|
694
|
+
I
|
|
695
|
+
]).filter(Boolean).join(" "));
|
|
696
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(Z, {
|
|
697
|
+
ref: j,
|
|
682
698
|
dataAttributes: _object_spread({
|
|
683
699
|
"component-name": "NakedCard",
|
|
684
700
|
testid: "NakedCard"
|
|
685
|
-
},
|
|
686
|
-
"aria-label":
|
|
687
|
-
|
|
701
|
+
}, w),
|
|
702
|
+
"aria-label": u ? void 0 : R,
|
|
703
|
+
"aria-labelledby": u ? void 0 : f,
|
|
704
|
+
"aria-description": u ? void 0 : g,
|
|
705
|
+
"aria-describedby": u ? void 0 : B,
|
|
706
|
+
className: u ? _cardcssmistica.touchableContainer : void 0,
|
|
688
707
|
children: [
|
|
689
708
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
690
709
|
maybe: !0
|
|
691
|
-
},
|
|
710
|
+
}, A), {
|
|
692
711
|
className: _cardcssmistica.touchable,
|
|
693
|
-
"aria-label":
|
|
712
|
+
"aria-label": u ? W : void 0,
|
|
713
|
+
"aria-labelledby": u ? f : void 0,
|
|
714
|
+
"aria-description": u ? g : void 0,
|
|
715
|
+
"aria-describedby": u ? B : void 0,
|
|
694
716
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
695
717
|
className: _cardcssmistica.mediaCard,
|
|
696
|
-
"aria-hidden":
|
|
718
|
+
"aria-hidden": u,
|
|
697
719
|
children: [
|
|
698
720
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
699
721
|
style: {
|
|
700
722
|
position: "relative"
|
|
701
723
|
},
|
|
702
724
|
children: [
|
|
703
|
-
|
|
725
|
+
u && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
704
726
|
className: (0, _classnames.default)(_cardcssmistica.touchableNakedMediaOverlay, {
|
|
705
|
-
[_cardcssmistica.circularMediaOverlay]:
|
|
727
|
+
[_cardcssmistica.circularMediaOverlay]: N
|
|
706
728
|
})
|
|
707
729
|
}),
|
|
708
730
|
a
|
|
@@ -713,23 +735,23 @@ const O = ()=>{
|
|
|
713
735
|
style: {
|
|
714
736
|
paddingTop: a ? 16 : 0
|
|
715
737
|
},
|
|
716
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
717
|
-
headline:
|
|
718
|
-
headlineRef:
|
|
738
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(Re, {
|
|
739
|
+
headline: d,
|
|
740
|
+
headlineRef: X,
|
|
719
741
|
pretitle: n,
|
|
720
|
-
pretitleAs:
|
|
721
|
-
pretitleLinesMax:
|
|
742
|
+
pretitleAs: h,
|
|
743
|
+
pretitleLinesMax: t,
|
|
722
744
|
title: o,
|
|
723
|
-
titleAs:
|
|
724
|
-
titleLinesMax:
|
|
725
|
-
subtitle:
|
|
745
|
+
titleAs: b,
|
|
746
|
+
titleLinesMax: v,
|
|
747
|
+
subtitle: i,
|
|
726
748
|
subtitleLinesMax: s,
|
|
727
|
-
description:
|
|
749
|
+
description: c,
|
|
728
750
|
descriptionLinesMax: y,
|
|
729
|
-
extra:
|
|
730
|
-
extraRef:
|
|
731
|
-
button:
|
|
732
|
-
buttonLink:
|
|
751
|
+
extra: C,
|
|
752
|
+
extraRef: E,
|
|
753
|
+
button: T,
|
|
754
|
+
buttonLink: m
|
|
733
755
|
})
|
|
734
756
|
}),
|
|
735
757
|
r && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
@@ -743,16 +765,16 @@ const O = ()=>{
|
|
|
743
765
|
]
|
|
744
766
|
})
|
|
745
767
|
})),
|
|
746
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
747
|
-
onClose:
|
|
748
|
-
closeButtonLabel:
|
|
749
|
-
actions:
|
|
768
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(oe, {
|
|
769
|
+
onClose: H,
|
|
770
|
+
closeButtonLabel: M,
|
|
771
|
+
actions: x,
|
|
750
772
|
variant: "media"
|
|
751
773
|
})
|
|
752
774
|
]
|
|
753
775
|
});
|
|
754
|
-
}),
|
|
755
|
-
var { media: a, title: r, titleAs:
|
|
776
|
+
}), or = /*#__PURE__*/ _react.forwardRef((_param, T)=>{
|
|
777
|
+
var { media: a, title: r, titleAs: d = "h3", titleLinesMax: n, subtitle: h, subtitleLinesMax: t, description: i, descriptionLinesMax: s, extra: o, dataAttributes: b, "aria-label": v, "aria-labelledby": c, "aria-description": y, "aria-describedby": C } = _param, x = _object_without_properties(_param, [
|
|
756
778
|
"media",
|
|
757
779
|
"title",
|
|
758
780
|
"titleAs",
|
|
@@ -763,39 +785,48 @@ const O = ()=>{
|
|
|
763
785
|
"descriptionLinesMax",
|
|
764
786
|
"extra",
|
|
765
787
|
"dataAttributes",
|
|
766
|
-
"aria-label"
|
|
788
|
+
"aria-label",
|
|
789
|
+
"aria-labelledby",
|
|
790
|
+
"aria-description",
|
|
791
|
+
"aria-describedby"
|
|
767
792
|
]);
|
|
768
|
-
const
|
|
793
|
+
const m = !!(x.href || x.to || x.onPress), w = a && a.type === _image.default && a.props.circular, { textPresets: R } = (0, _hooks.useTheme)(), { text: f, ref: g } = F(), B = v || (c ? void 0 : [
|
|
769
794
|
r,
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
].filter(Boolean).join(" ");
|
|
774
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
775
|
-
ref:
|
|
795
|
+
h,
|
|
796
|
+
i,
|
|
797
|
+
f
|
|
798
|
+
].filter(Boolean).join(" "));
|
|
799
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(Z, {
|
|
800
|
+
ref: T,
|
|
776
801
|
dataAttributes: _object_spread({
|
|
777
802
|
"component-name": "SmallNakedCard",
|
|
778
803
|
testid: "SmallNakedCard"
|
|
779
|
-
},
|
|
780
|
-
"aria-label":
|
|
781
|
-
|
|
804
|
+
}, b),
|
|
805
|
+
"aria-label": m ? void 0 : v,
|
|
806
|
+
"aria-labelledby": m ? void 0 : c,
|
|
807
|
+
"aria-description": m ? void 0 : y,
|
|
808
|
+
"aria-describedby": m ? void 0 : C,
|
|
809
|
+
className: m ? _cardcssmistica.touchableContainer : void 0,
|
|
782
810
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
783
811
|
maybe: !0
|
|
784
|
-
},
|
|
812
|
+
}, x), {
|
|
785
813
|
className: _cardcssmistica.touchable,
|
|
786
|
-
"aria-label":
|
|
814
|
+
"aria-label": m ? B : void 0,
|
|
815
|
+
"aria-labelledby": m ? c : void 0,
|
|
816
|
+
"aria-description": m ? y : void 0,
|
|
817
|
+
"aria-describedby": m ? C : void 0,
|
|
787
818
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
788
819
|
className: _cardcssmistica.mediaCard,
|
|
789
|
-
"aria-hidden":
|
|
820
|
+
"aria-hidden": m,
|
|
790
821
|
children: [
|
|
791
822
|
a && /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
792
823
|
style: {
|
|
793
824
|
position: "relative"
|
|
794
825
|
},
|
|
795
826
|
children: [
|
|
796
|
-
|
|
827
|
+
m && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
797
828
|
className: (0, _classnames.default)(_cardcssmistica.touchableNakedMediaOverlay, {
|
|
798
|
-
[_cardcssmistica.circularMediaOverlay]:
|
|
829
|
+
[_cardcssmistica.circularMediaOverlay]: w
|
|
799
830
|
})
|
|
800
831
|
}),
|
|
801
832
|
a
|
|
@@ -813,25 +844,25 @@ const O = ()=>{
|
|
|
813
844
|
children: [
|
|
814
845
|
r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _textprops.text2), {
|
|
815
846
|
truncate: n,
|
|
816
|
-
weight:
|
|
817
|
-
as:
|
|
847
|
+
weight: R.cardTitle.weight,
|
|
848
|
+
as: d,
|
|
818
849
|
hyphens: "auto",
|
|
819
850
|
dataAttributes: {
|
|
820
851
|
testid: "title"
|
|
821
852
|
},
|
|
822
853
|
children: r
|
|
823
854
|
})),
|
|
824
|
-
|
|
825
|
-
truncate:
|
|
855
|
+
h && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
856
|
+
truncate: t,
|
|
826
857
|
regular: !0,
|
|
827
858
|
as: "p",
|
|
828
859
|
hyphens: "auto",
|
|
829
860
|
dataAttributes: {
|
|
830
861
|
testid: "subtitle"
|
|
831
862
|
},
|
|
832
|
-
children:
|
|
863
|
+
children: h
|
|
833
864
|
}),
|
|
834
|
-
|
|
865
|
+
i && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
835
866
|
truncate: s,
|
|
836
867
|
regular: !0,
|
|
837
868
|
as: "p",
|
|
@@ -840,13 +871,13 @@ const O = ()=>{
|
|
|
840
871
|
dataAttributes: {
|
|
841
872
|
testid: "description"
|
|
842
873
|
},
|
|
843
|
-
children:
|
|
874
|
+
children: i
|
|
844
875
|
})
|
|
845
876
|
]
|
|
846
877
|
})
|
|
847
878
|
}),
|
|
848
879
|
o && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
849
|
-
ref:
|
|
880
|
+
ref: g,
|
|
850
881
|
"data-testid": "slot",
|
|
851
882
|
children: o
|
|
852
883
|
})
|
|
@@ -856,8 +887,8 @@ const O = ()=>{
|
|
|
856
887
|
})
|
|
857
888
|
}))
|
|
858
889
|
});
|
|
859
|
-
}),
|
|
860
|
-
var { asset: a, headline: r, pretitle:
|
|
890
|
+
}), sr = /*#__PURE__*/ _react.forwardRef((_param, j)=>{
|
|
891
|
+
var { asset: a, headline: r, pretitle: d, pretitleAs: n, pretitleLinesMax: h, title: t, titleAs: i = "h3", titleLinesMax: s, subtitle: o, subtitleLinesMax: b, description: v, descriptionLinesMax: c, extra: y, actions: C, button: x, buttonLink: T, dataAttributes: m, "aria-label": w, "aria-labelledby": R, "aria-description": f, "aria-describedby": g, onClose: B, closeButtonLabel: H, aspectRatio: M } = _param, A = _object_without_properties(_param, [
|
|
861
892
|
"asset",
|
|
862
893
|
"headline",
|
|
863
894
|
"pretitle",
|
|
@@ -876,51 +907,60 @@ const O = ()=>{
|
|
|
876
907
|
"buttonLink",
|
|
877
908
|
"dataAttributes",
|
|
878
909
|
"aria-label",
|
|
910
|
+
"aria-labelledby",
|
|
911
|
+
"aria-description",
|
|
912
|
+
"aria-describedby",
|
|
879
913
|
"onClose",
|
|
880
914
|
"closeButtonLabel",
|
|
881
915
|
"aspectRatio"
|
|
882
916
|
]);
|
|
883
|
-
const
|
|
884
|
-
i,
|
|
885
|
-
V,
|
|
917
|
+
const u = !!a || !!r, N = !!(A.href || A.to || A.onPress), { text: V, ref: X } = F(), { text: I, ref: E } = F(), W = Xe(C, B), S = w || (R ? void 0 : ((0, _headings.isBiggerHeading)(i, n) ? [
|
|
886
918
|
t,
|
|
919
|
+
V,
|
|
920
|
+
d,
|
|
887
921
|
o,
|
|
888
|
-
|
|
889
|
-
|
|
922
|
+
v,
|
|
923
|
+
I
|
|
890
924
|
] : [
|
|
891
|
-
|
|
925
|
+
d,
|
|
892
926
|
V,
|
|
893
|
-
|
|
927
|
+
t,
|
|
894
928
|
o,
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
]).filter(Boolean).join(" ");
|
|
898
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(
|
|
929
|
+
v,
|
|
930
|
+
I
|
|
931
|
+
]).filter(Boolean).join(" "));
|
|
932
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(Z, {
|
|
899
933
|
dataAttributes: _object_spread({
|
|
900
934
|
"component-name": "DataCard",
|
|
901
935
|
testid: "DataCard"
|
|
902
|
-
},
|
|
903
|
-
ref:
|
|
904
|
-
"aria-label":
|
|
936
|
+
}, m),
|
|
937
|
+
ref: j,
|
|
938
|
+
"aria-label": N ? void 0 : w,
|
|
939
|
+
"aria-labelledby": N ? void 0 : R,
|
|
940
|
+
"aria-description": N ? void 0 : f,
|
|
941
|
+
"aria-describedby": N ? void 0 : g,
|
|
905
942
|
className: _cardcssmistica.touchableContainer,
|
|
906
|
-
aspectRatio:
|
|
943
|
+
aspectRatio: M,
|
|
907
944
|
children: [
|
|
908
945
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
909
946
|
maybe: !0
|
|
910
|
-
},
|
|
947
|
+
}, A), {
|
|
911
948
|
className: _cardcssmistica.touchable,
|
|
912
|
-
"aria-label":
|
|
949
|
+
"aria-label": N ? S : void 0,
|
|
950
|
+
"aria-labelledby": N ? R : void 0,
|
|
951
|
+
"aria-description": N ? f : void 0,
|
|
952
|
+
"aria-describedby": N ? g : void 0,
|
|
913
953
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_boxed.Boxed, {
|
|
914
954
|
className: _cardcssmistica.boxed,
|
|
915
955
|
width: "100%",
|
|
916
956
|
height: "100%",
|
|
917
957
|
children: [
|
|
918
|
-
|
|
958
|
+
N && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
919
959
|
className: _cardcssmistica.touchableCardOverlay
|
|
920
960
|
}),
|
|
921
961
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
922
962
|
className: _cardcssmistica.dataCard,
|
|
923
|
-
"aria-hidden":
|
|
963
|
+
"aria-hidden": N,
|
|
924
964
|
children: [
|
|
925
965
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
|
|
926
966
|
space: 0,
|
|
@@ -935,40 +975,40 @@ const O = ()=>{
|
|
|
935
975
|
"data-testid": "asset",
|
|
936
976
|
children: a
|
|
937
977
|
}),
|
|
938
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
978
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(Re, {
|
|
939
979
|
headline: r,
|
|
940
|
-
headlineRef:
|
|
941
|
-
pretitle:
|
|
980
|
+
headlineRef: X,
|
|
981
|
+
pretitle: d,
|
|
942
982
|
pretitleAs: n,
|
|
943
|
-
pretitleLinesMax:
|
|
944
|
-
title:
|
|
945
|
-
titleAs:
|
|
983
|
+
pretitleLinesMax: h,
|
|
984
|
+
title: t,
|
|
985
|
+
titleAs: i,
|
|
946
986
|
titleLinesMax: s,
|
|
947
987
|
subtitle: o,
|
|
948
|
-
subtitleLinesMax:
|
|
949
|
-
description:
|
|
950
|
-
descriptionLinesMax:
|
|
988
|
+
subtitleLinesMax: b,
|
|
989
|
+
description: v,
|
|
990
|
+
descriptionLinesMax: c
|
|
951
991
|
})
|
|
952
992
|
]
|
|
953
993
|
}),
|
|
954
|
-
!
|
|
994
|
+
!u && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
955
995
|
style: (0, _css.applyCssVars)({
|
|
956
|
-
[_cardcssmistica.vars.topActionsCount]: String(
|
|
996
|
+
[_cardcssmistica.vars.topActionsCount]: String(W.length)
|
|
957
997
|
}),
|
|
958
998
|
className: _cardcssmistica.dataCardTopActionsWithoutIcon
|
|
959
999
|
})
|
|
960
1000
|
]
|
|
961
1001
|
}),
|
|
962
1002
|
y && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
963
|
-
ref:
|
|
1003
|
+
ref: E,
|
|
964
1004
|
"data-testid": "slot",
|
|
965
1005
|
children: y
|
|
966
1006
|
}),
|
|
967
|
-
(
|
|
1007
|
+
(x || T) && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
968
1008
|
className: _cardcssmistica.actions,
|
|
969
1009
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
|
|
970
|
-
primaryButton:
|
|
971
|
-
link:
|
|
1010
|
+
primaryButton: x,
|
|
1011
|
+
link: T
|
|
972
1012
|
})
|
|
973
1013
|
})
|
|
974
1014
|
]
|
|
@@ -976,16 +1016,16 @@ const O = ()=>{
|
|
|
976
1016
|
]
|
|
977
1017
|
})
|
|
978
1018
|
})),
|
|
979
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
980
|
-
onClose:
|
|
981
|
-
closeButtonLabel:
|
|
982
|
-
actions:
|
|
1019
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(oe, {
|
|
1020
|
+
onClose: B,
|
|
1021
|
+
closeButtonLabel: H,
|
|
1022
|
+
actions: C,
|
|
983
1023
|
variant: "default"
|
|
984
1024
|
})
|
|
985
1025
|
]
|
|
986
1026
|
});
|
|
987
|
-
}),
|
|
988
|
-
var { asset: a, title: r, titleAs:
|
|
1027
|
+
}), lr = /*#__PURE__*/ _react.forwardRef((_param, w)=>{
|
|
1028
|
+
var { asset: a, title: r, titleAs: d = "h3", titleLinesMax: n, subtitle: h, subtitleLinesMax: t, description: i, descriptionLinesMax: s, dataAttributes: o, "aria-label": b, "aria-labelledby": v, "aria-description": c, "aria-describedby": y, extra: C, isInverse: x = !1, aspectRatio: T } = _param, m = _object_without_properties(_param, [
|
|
989
1029
|
"asset",
|
|
990
1030
|
"title",
|
|
991
1031
|
"titleAs",
|
|
@@ -996,42 +1036,51 @@ const O = ()=>{
|
|
|
996
1036
|
"descriptionLinesMax",
|
|
997
1037
|
"dataAttributes",
|
|
998
1038
|
"aria-label",
|
|
1039
|
+
"aria-labelledby",
|
|
1040
|
+
"aria-description",
|
|
1041
|
+
"aria-describedby",
|
|
999
1042
|
"extra",
|
|
1000
1043
|
"isInverse",
|
|
1001
1044
|
"aspectRatio"
|
|
1002
1045
|
]);
|
|
1003
|
-
const { textPresets:
|
|
1046
|
+
const { textPresets: R } = (0, _hooks.useTheme)(), f = !!(m.href || m.to || m.onPress), g = x ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay, { text: B, ref: H } = F(), M = b || (y ? void 0 : [
|
|
1004
1047
|
r,
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
].filter(Boolean).join(" ");
|
|
1009
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1048
|
+
h,
|
|
1049
|
+
i,
|
|
1050
|
+
B
|
|
1051
|
+
].filter(Boolean).join(" "));
|
|
1052
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(Z, {
|
|
1010
1053
|
dataAttributes: _object_spread({
|
|
1011
1054
|
"component-name": "SnapCard",
|
|
1012
1055
|
testid: "SnapCard"
|
|
1013
1056
|
}, o),
|
|
1014
|
-
ref:
|
|
1057
|
+
ref: w,
|
|
1015
1058
|
className: _cardcssmistica.touchableContainer,
|
|
1016
|
-
aspectRatio:
|
|
1017
|
-
"aria-label":
|
|
1059
|
+
aspectRatio: T,
|
|
1060
|
+
"aria-label": f ? void 0 : b,
|
|
1061
|
+
"aria-labelledby": f ? void 0 : v,
|
|
1062
|
+
"aria-description": f ? void 0 : c,
|
|
1063
|
+
"aria-describedby": f ? void 0 : y,
|
|
1018
1064
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
1019
1065
|
maybe: !0
|
|
1020
|
-
},
|
|
1066
|
+
}, m), {
|
|
1021
1067
|
className: _cardcssmistica.touchable,
|
|
1022
|
-
"aria-label":
|
|
1068
|
+
"aria-label": f ? M : void 0,
|
|
1069
|
+
"aria-labelledby": f ? v : void 0,
|
|
1070
|
+
"aria-description": f ? c : void 0,
|
|
1071
|
+
"aria-describedby": f ? y : void 0,
|
|
1023
1072
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_boxed.Boxed, {
|
|
1024
1073
|
className: _cardcssmistica.boxed,
|
|
1025
|
-
variant:
|
|
1074
|
+
variant: x ? "inverse" : "default",
|
|
1026
1075
|
width: "100%",
|
|
1027
1076
|
height: "100%",
|
|
1028
1077
|
children: [
|
|
1029
|
-
|
|
1030
|
-
className:
|
|
1078
|
+
f && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1079
|
+
className: g
|
|
1031
1080
|
}),
|
|
1032
1081
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("section", {
|
|
1033
1082
|
className: _cardcssmistica.snapCard,
|
|
1034
|
-
"aria-hidden":
|
|
1083
|
+
"aria-hidden": f,
|
|
1035
1084
|
children: [
|
|
1036
1085
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
1037
1086
|
children: [
|
|
@@ -1050,16 +1099,16 @@ const O = ()=>{
|
|
|
1050
1099
|
children: [
|
|
1051
1100
|
r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _textprops.text2), {
|
|
1052
1101
|
truncate: n,
|
|
1053
|
-
weight:
|
|
1054
|
-
as:
|
|
1102
|
+
weight: R.cardTitle.weight,
|
|
1103
|
+
as: d,
|
|
1055
1104
|
hyphens: "auto",
|
|
1056
1105
|
dataAttributes: {
|
|
1057
1106
|
testid: "title"
|
|
1058
1107
|
},
|
|
1059
1108
|
children: r
|
|
1060
1109
|
})),
|
|
1061
|
-
|
|
1062
|
-
truncate:
|
|
1110
|
+
h && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
1111
|
+
truncate: t,
|
|
1063
1112
|
regular: !0,
|
|
1064
1113
|
color: _skincontractcssmistica.vars.colors.textPrimary,
|
|
1065
1114
|
as: "p",
|
|
@@ -1067,9 +1116,9 @@ const O = ()=>{
|
|
|
1067
1116
|
dataAttributes: {
|
|
1068
1117
|
testid: "subtitle"
|
|
1069
1118
|
},
|
|
1070
|
-
children:
|
|
1119
|
+
children: h
|
|
1071
1120
|
}),
|
|
1072
|
-
|
|
1121
|
+
i && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
1073
1122
|
truncate: s,
|
|
1074
1123
|
regular: !0,
|
|
1075
1124
|
color: _skincontractcssmistica.vars.colors.textSecondary,
|
|
@@ -1078,16 +1127,16 @@ const O = ()=>{
|
|
|
1078
1127
|
dataAttributes: {
|
|
1079
1128
|
testid: "description"
|
|
1080
1129
|
},
|
|
1081
|
-
children:
|
|
1130
|
+
children: i
|
|
1082
1131
|
})
|
|
1083
1132
|
]
|
|
1084
1133
|
})
|
|
1085
1134
|
]
|
|
1086
1135
|
}),
|
|
1087
|
-
|
|
1088
|
-
ref:
|
|
1136
|
+
C && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1137
|
+
ref: H,
|
|
1089
1138
|
"data-testid": "slot",
|
|
1090
|
-
children:
|
|
1139
|
+
children: C
|
|
1091
1140
|
})
|
|
1092
1141
|
]
|
|
1093
1142
|
})
|
|
@@ -1095,28 +1144,28 @@ const O = ()=>{
|
|
|
1095
1144
|
})
|
|
1096
1145
|
}))
|
|
1097
1146
|
});
|
|
1098
|
-
}),
|
|
1099
|
-
let { title: a, titleAs: r = "h3", headline:
|
|
1147
|
+
}), qe = (param)=>{
|
|
1148
|
+
let { title: a, titleAs: r = "h3", headline: d, pretitle: n, pretitleAs: h, subtitle: t, description: i, extra: s, headlineRef: o, extraRef: b } = param;
|
|
1100
1149
|
return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
1101
1150
|
className: _cardcssmistica.flexColumn,
|
|
1102
1151
|
children: [
|
|
1103
|
-
(0, _headings.isBiggerHeading)(r,
|
|
1152
|
+
(0, _headings.isBiggerHeading)(r, h) ? /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
1104
1153
|
children: [
|
|
1105
1154
|
a && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1106
1155
|
style: {
|
|
1107
|
-
paddingBottom:
|
|
1156
|
+
paddingBottom: t || i ? 4 : 0
|
|
1108
1157
|
},
|
|
1109
1158
|
"data-testid": "title",
|
|
1110
1159
|
children: a
|
|
1111
1160
|
}),
|
|
1112
|
-
|
|
1161
|
+
d && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1113
1162
|
ref: o,
|
|
1114
1163
|
style: {
|
|
1115
1164
|
order: -2,
|
|
1116
|
-
paddingBottom: n || a ||
|
|
1165
|
+
paddingBottom: n || a || t || i ? 16 : 0
|
|
1117
1166
|
},
|
|
1118
1167
|
"data-testid": "headline",
|
|
1119
|
-
children:
|
|
1168
|
+
children: d
|
|
1120
1169
|
}),
|
|
1121
1170
|
n && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1122
1171
|
style: {
|
|
@@ -1136,49 +1185,49 @@ const O = ()=>{
|
|
|
1136
1185
|
"data-testid": "pretitle",
|
|
1137
1186
|
children: n
|
|
1138
1187
|
}),
|
|
1139
|
-
|
|
1188
|
+
d && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1140
1189
|
ref: o,
|
|
1141
1190
|
style: {
|
|
1142
1191
|
order: -1,
|
|
1143
|
-
paddingBottom: n || a ||
|
|
1192
|
+
paddingBottom: n || a || t || i ? 16 : 0
|
|
1144
1193
|
},
|
|
1145
1194
|
"data-testid": "headline",
|
|
1146
|
-
children:
|
|
1195
|
+
children: d
|
|
1147
1196
|
}),
|
|
1148
1197
|
a && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1149
1198
|
style: {
|
|
1150
|
-
paddingBottom:
|
|
1199
|
+
paddingBottom: t || i ? 4 : 0
|
|
1151
1200
|
},
|
|
1152
1201
|
"data-testid": "title",
|
|
1153
1202
|
children: a
|
|
1154
1203
|
})
|
|
1155
1204
|
]
|
|
1156
1205
|
}),
|
|
1157
|
-
|
|
1206
|
+
t && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1158
1207
|
style: {
|
|
1159
|
-
paddingBottom:
|
|
1208
|
+
paddingBottom: i ? 4 : 0
|
|
1160
1209
|
},
|
|
1161
1210
|
"data-testid": "subtitle",
|
|
1162
|
-
children:
|
|
1211
|
+
children: t
|
|
1163
1212
|
}),
|
|
1164
|
-
|
|
1213
|
+
i && // this is tricky, the padding between a headline and a description is 16px
|
|
1165
1214
|
// but the padding between a title|pretitle|subtitle and a description is 8px (4px + 4px)
|
|
1166
1215
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1167
1216
|
style: {
|
|
1168
|
-
paddingTop: n || a ||
|
|
1217
|
+
paddingTop: n || a || t ? 4 : 0
|
|
1169
1218
|
},
|
|
1170
1219
|
"data-testid": "description",
|
|
1171
|
-
children:
|
|
1220
|
+
children: i
|
|
1172
1221
|
}),
|
|
1173
1222
|
s && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1174
|
-
ref:
|
|
1223
|
+
ref: b,
|
|
1175
1224
|
"data-testid": "slot",
|
|
1176
1225
|
children: s
|
|
1177
1226
|
})
|
|
1178
1227
|
]
|
|
1179
1228
|
});
|
|
1180
|
-
},
|
|
1181
|
-
var { isInverse: a, backgroundImage: r, backgroundVideo:
|
|
1229
|
+
}, Je = /*#__PURE__*/ _react.forwardRef((_param, E)=>{
|
|
1230
|
+
var { isInverse: a, backgroundImage: r, backgroundVideo: d, backgroundVideoRef: n, poster: h, asset: t, headline: i, pretitle: s, pretitleAs: o, pretitleLinesMax: b, title: v, titleAs: c = "h3", titleLinesMax: y, description: C, descriptionLinesMax: x, extra: T, button: m, secondaryButton: w, onClose: R, closeButtonLabel: f, actions: g, buttonLink: B, dataAttributes: H, width: M, height: A, aspectRatio: j, "aria-label": u, "aria-labelledby": N, "aria-description": V, "aria-describedby": X } = _param, I = _object_without_properties(_param, [
|
|
1182
1231
|
"isInverse",
|
|
1183
1232
|
"backgroundImage",
|
|
1184
1233
|
"backgroundVideo",
|
|
@@ -1205,125 +1254,134 @@ const O = ()=>{
|
|
|
1205
1254
|
"width",
|
|
1206
1255
|
"height",
|
|
1207
1256
|
"aspectRatio",
|
|
1208
|
-
"aria-label"
|
|
1257
|
+
"aria-label",
|
|
1258
|
+
"aria-labelledby",
|
|
1259
|
+
"aria-description",
|
|
1260
|
+
"aria-describedby"
|
|
1209
1261
|
]);
|
|
1210
|
-
const
|
|
1211
|
-
|
|
1212
|
-
|
|
1262
|
+
const W = r !== void 0, S = d !== void 0, z = _e(r), { video: ye, videoAction: se } = $e(d, h, n), { text: re, ref: le } = F(), { text: ce, ref: he } = F();
|
|
1263
|
+
S && (g = se ? [
|
|
1264
|
+
se
|
|
1213
1265
|
] : []);
|
|
1214
|
-
const
|
|
1215
|
-
h,
|
|
1216
|
-
P,
|
|
1217
|
-
s,
|
|
1266
|
+
const ve = (0, _themevariantcontext.useIsInverseVariant)(), _ = W || S, $ = _ ? "0 0 16px rgba(0,0,0,0.4)" : void 0, L = (g == null ? void 0 : g.length) || R, O = !!(I.href || I.to || I.onPress), fe = W || S ? _cardcssmistica.touchableCardOverlayMedia : a ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay, G = u || (N ? void 0 : ((0, _headings.isBiggerHeading)(c, o) ? [
|
|
1218
1267
|
v,
|
|
1219
|
-
|
|
1268
|
+
re,
|
|
1269
|
+
s,
|
|
1270
|
+
C,
|
|
1271
|
+
ce
|
|
1220
1272
|
] : [
|
|
1221
1273
|
s,
|
|
1222
|
-
|
|
1223
|
-
h,
|
|
1274
|
+
re,
|
|
1224
1275
|
v,
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1276
|
+
C,
|
|
1277
|
+
ce
|
|
1278
|
+
]).filter(Boolean).join(" "));
|
|
1279
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(Z, {
|
|
1280
|
+
dataAttributes: H,
|
|
1281
|
+
ref: E,
|
|
1282
|
+
width: M,
|
|
1231
1283
|
height: A,
|
|
1232
|
-
aspectRatio:
|
|
1233
|
-
"aria-label":
|
|
1284
|
+
aspectRatio: j,
|
|
1285
|
+
"aria-label": O ? void 0 : u,
|
|
1286
|
+
"aria-labelledby": O ? void 0 : N,
|
|
1287
|
+
"aria-description": O ? void 0 : V,
|
|
1288
|
+
"aria-describedby": O ? void 0 : X,
|
|
1234
1289
|
className: _cardcssmistica.touchableContainer,
|
|
1235
1290
|
children: [
|
|
1236
1291
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
1237
1292
|
maybe: !0
|
|
1238
|
-
},
|
|
1293
|
+
}, I), {
|
|
1239
1294
|
className: _cardcssmistica.touchable,
|
|
1240
|
-
"aria-label":
|
|
1295
|
+
"aria-label": O ? G : void 0,
|
|
1296
|
+
"aria-labelledby": O ? N : void 0,
|
|
1297
|
+
"aria-description": O ? V : void 0,
|
|
1298
|
+
"aria-describedby": O ? X : void 0,
|
|
1241
1299
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_boxed.InternalBoxed, {
|
|
1242
1300
|
borderRadius: _skincontractcssmistica.vars.borderRadii.legacyDisplay,
|
|
1243
1301
|
className: _cardcssmistica.boxed,
|
|
1244
1302
|
width: "100%",
|
|
1245
1303
|
height: "100%",
|
|
1246
|
-
background:
|
|
1247
|
-
variant:
|
|
1304
|
+
background: W || S ? ve ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainer : void 0,
|
|
1305
|
+
variant: W || S ? "media" : a ? "inverse" : "default",
|
|
1248
1306
|
children: [
|
|
1249
|
-
|
|
1250
|
-
className:
|
|
1307
|
+
O && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1308
|
+
className: fe
|
|
1251
1309
|
}),
|
|
1252
1310
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
1253
1311
|
className: _cardcssmistica.displayCardContainer,
|
|
1254
|
-
"aria-hidden":
|
|
1312
|
+
"aria-hidden": O,
|
|
1255
1313
|
children: [
|
|
1256
|
-
(
|
|
1257
|
-
variant:
|
|
1314
|
+
(W || S) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
|
|
1315
|
+
variant: ve ? "inverse" : "default",
|
|
1258
1316
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1259
1317
|
className: _cardcssmistica.displayCardBackground,
|
|
1260
|
-
children:
|
|
1318
|
+
children: S ? ye : z
|
|
1261
1319
|
})
|
|
1262
1320
|
}),
|
|
1263
1321
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
1264
1322
|
className: _cardcssmistica.displayCardContent,
|
|
1265
1323
|
style: {
|
|
1266
|
-
paddingTop:
|
|
1324
|
+
paddingTop: _ && !t && !L && !S ? 0 : 24
|
|
1267
1325
|
},
|
|
1268
1326
|
children: [
|
|
1269
|
-
|
|
1327
|
+
t ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1270
1328
|
style: (0, _css.applyCssVars)({
|
|
1271
1329
|
[_imagecssmistica.vars.mediaBorderRadius]: _skincontractcssmistica.vars.borderRadii.mediaSmall
|
|
1272
1330
|
}),
|
|
1273
1331
|
"data-testid": "asset",
|
|
1274
1332
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
1275
|
-
paddingBottom:
|
|
1333
|
+
paddingBottom: _ ? 0 : 40,
|
|
1276
1334
|
paddingX: 24,
|
|
1277
|
-
children:
|
|
1335
|
+
children: t
|
|
1278
1336
|
})
|
|
1279
1337
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
1280
|
-
paddingBottom:
|
|
1338
|
+
paddingBottom: L || S ? _ ? 24 : 64 : 0
|
|
1281
1339
|
}),
|
|
1282
1340
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1283
1341
|
className: (0, _classnames.default)(_cardcssmistica.displayCardContentWrapper, {
|
|
1284
|
-
[_cardcssmistica.displayCardGradient]:
|
|
1342
|
+
[_cardcssmistica.displayCardGradient]: _
|
|
1285
1343
|
}),
|
|
1286
1344
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
|
|
1287
1345
|
space: 24,
|
|
1288
1346
|
children: [
|
|
1289
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1290
|
-
title:
|
|
1347
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(qe, {
|
|
1348
|
+
title: v ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text6, {
|
|
1291
1349
|
forceMobileSizes: !0,
|
|
1292
1350
|
truncate: y,
|
|
1293
|
-
as:
|
|
1294
|
-
textShadow:
|
|
1351
|
+
as: c,
|
|
1352
|
+
textShadow: $,
|
|
1295
1353
|
hyphens: "auto",
|
|
1296
|
-
children:
|
|
1354
|
+
children: v
|
|
1297
1355
|
}) : void 0,
|
|
1298
|
-
titleAs:
|
|
1299
|
-
headline:
|
|
1356
|
+
titleAs: c,
|
|
1357
|
+
headline: i,
|
|
1300
1358
|
pretitle: s ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
1301
1359
|
forceMobileSizes: !0,
|
|
1302
|
-
truncate:
|
|
1360
|
+
truncate: b,
|
|
1303
1361
|
as: o,
|
|
1304
1362
|
regular: !0,
|
|
1305
|
-
textShadow:
|
|
1363
|
+
textShadow: $,
|
|
1306
1364
|
children: s
|
|
1307
1365
|
}) : void 0,
|
|
1308
1366
|
pretitleAs: o,
|
|
1309
|
-
description:
|
|
1367
|
+
description: C ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
|
|
1310
1368
|
forceMobileSizes: !0,
|
|
1311
|
-
truncate:
|
|
1369
|
+
truncate: x,
|
|
1312
1370
|
as: "p",
|
|
1313
1371
|
regular: !0,
|
|
1314
|
-
color:
|
|
1315
|
-
textShadow:
|
|
1372
|
+
color: _ ? _skincontractcssmistica.vars.colors.textPrimary : _skincontractcssmistica.vars.colors.textSecondary,
|
|
1373
|
+
textShadow: $,
|
|
1316
1374
|
hyphens: "auto",
|
|
1317
|
-
children:
|
|
1375
|
+
children: C
|
|
1318
1376
|
}) : void 0,
|
|
1319
|
-
extra:
|
|
1320
|
-
headlineRef:
|
|
1321
|
-
extraRef:
|
|
1377
|
+
extra: T,
|
|
1378
|
+
headlineRef: le,
|
|
1379
|
+
extraRef: he
|
|
1322
1380
|
}),
|
|
1323
|
-
(
|
|
1324
|
-
primaryButton:
|
|
1325
|
-
secondaryButton:
|
|
1326
|
-
link:
|
|
1381
|
+
(m || w || B) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
|
|
1382
|
+
primaryButton: m,
|
|
1383
|
+
secondaryButton: w,
|
|
1384
|
+
link: B
|
|
1327
1385
|
})
|
|
1328
1386
|
]
|
|
1329
1387
|
})
|
|
@@ -1335,39 +1393,39 @@ const O = ()=>{
|
|
|
1335
1393
|
]
|
|
1336
1394
|
})
|
|
1337
1395
|
})),
|
|
1338
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1339
|
-
onClose:
|
|
1340
|
-
closeButtonLabel:
|
|
1341
|
-
actions:
|
|
1342
|
-
variant:
|
|
1396
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(oe, {
|
|
1397
|
+
onClose: R,
|
|
1398
|
+
closeButtonLabel: f,
|
|
1399
|
+
actions: g,
|
|
1400
|
+
variant: W || S ? "media" : a ? "inverse" : "default"
|
|
1343
1401
|
})
|
|
1344
1402
|
]
|
|
1345
1403
|
});
|
|
1346
|
-
}),
|
|
1404
|
+
}), cr = /*#__PURE__*/ _react.forwardRef((_param, d)=>{
|
|
1347
1405
|
var { dataAttributes: a } = _param, r = _object_without_properties(_param, [
|
|
1348
1406
|
"dataAttributes"
|
|
1349
1407
|
]);
|
|
1350
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1351
|
-
ref:
|
|
1408
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(Je, _object_spread_props(_object_spread({}, r), {
|
|
1409
|
+
ref: d,
|
|
1352
1410
|
isInverse: !0,
|
|
1353
1411
|
dataAttributes: _object_spread({
|
|
1354
1412
|
"component-name": "DisplayMediaCard",
|
|
1355
1413
|
testid: "DisplayMediaCard"
|
|
1356
1414
|
}, a)
|
|
1357
1415
|
}));
|
|
1358
|
-
}),
|
|
1416
|
+
}), hr = /*#__PURE__*/ _react.forwardRef((_param, d)=>{
|
|
1359
1417
|
var { dataAttributes: a } = _param, r = _object_without_properties(_param, [
|
|
1360
1418
|
"dataAttributes"
|
|
1361
1419
|
]);
|
|
1362
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1363
|
-
ref:
|
|
1420
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsx)(Je, _object_spread_props(_object_spread({}, r), {
|
|
1421
|
+
ref: d,
|
|
1364
1422
|
dataAttributes: _object_spread({
|
|
1365
1423
|
"component-name": "DisplayDataCard",
|
|
1366
1424
|
testid: "DisplayDataCard"
|
|
1367
1425
|
}, a)
|
|
1368
1426
|
}));
|
|
1369
|
-
}),
|
|
1370
|
-
var { dataAttributes: a, backgroundImage: r, backgroundVideo:
|
|
1427
|
+
}), vr = /*#__PURE__*/ _react.forwardRef((_param, W)=>{
|
|
1428
|
+
var { dataAttributes: a, backgroundImage: r, backgroundVideo: d, poster: n, backgroundVideoRef: h, width: t, height: i, aspectRatio: s = "7:10", "aria-label": o, "aria-labelledby": b, "aria-description": v, "aria-describedby": c, actions: y, onClose: C, closeButtonLabel: x, asset: T, headline: m, pretitle: w, pretitleAs: R, pretitleLinesMax: f, title: g, titleAs: B = "h3", titleLinesMax: H, subtitle: M, subtitleLinesMax: A, description: j, descriptionLinesMax: u, extra: N, variant: V, isInverse: X, backgroundColor: I } = _param, E = _object_without_properties(_param, [
|
|
1371
1429
|
"dataAttributes",
|
|
1372
1430
|
"backgroundImage",
|
|
1373
1431
|
"backgroundVideo",
|
|
@@ -1377,6 +1435,9 @@ const O = ()=>{
|
|
|
1377
1435
|
"height",
|
|
1378
1436
|
"aspectRatio",
|
|
1379
1437
|
"aria-label",
|
|
1438
|
+
"aria-labelledby",
|
|
1439
|
+
"aria-description",
|
|
1440
|
+
"aria-describedby",
|
|
1380
1441
|
"actions",
|
|
1381
1442
|
"onClose",
|
|
1382
1443
|
"closeButtonLabel",
|
|
@@ -1397,129 +1458,135 @@ const O = ()=>{
|
|
|
1397
1458
|
"isInverse",
|
|
1398
1459
|
"backgroundColor"
|
|
1399
1460
|
]);
|
|
1400
|
-
const
|
|
1401
|
-
|
|
1402
|
-
|
|
1461
|
+
const S = r !== void 0, z = d !== void 0, ye = _e(r), { video: se, videoAction: re } = $e(d, n, h), { text: le, ref: ce } = F(), { text: he, ref: ve } = F();
|
|
1462
|
+
z && (y = re ? [
|
|
1463
|
+
re
|
|
1403
1464
|
] : []);
|
|
1404
|
-
const
|
|
1465
|
+
const _ = (0, _themevariantcontext.useIsInverseVariant)(), $ = S || z, L = $ ? "0 0 16px rgba(0,0,0,0.4)" : void 0, O = (y == null ? void 0 : y.length) || C, { textPresets: fe } = (0, _hooks.useTheme)(), G = !!(E.href || E.to || E.onPress), de = V || (X ? "inverse" : "default"), Ke = ()=>de === "media" || S || z ? _ ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainer : I || ({
|
|
1405
1466
|
default: _skincontractcssmistica.vars.colors.backgroundContainer,
|
|
1406
|
-
inverse:
|
|
1467
|
+
inverse: _ ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundBrand,
|
|
1407
1468
|
alternative: _skincontractcssmistica.vars.colors.backgroundAlternative
|
|
1408
|
-
})[
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
|
|
1413
|
-
|
|
1414
|
-
|
|
1469
|
+
})[de], Qe = S || z ? _cardcssmistica.touchableCardOverlayMedia : de === "inverse" ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay, Ue = o || (b ? void 0 : ((0, _headings.isBiggerHeading)(B, R) ? [
|
|
1470
|
+
g,
|
|
1471
|
+
le,
|
|
1472
|
+
w,
|
|
1473
|
+
M,
|
|
1474
|
+
j,
|
|
1475
|
+
he
|
|
1415
1476
|
] : [
|
|
1416
|
-
|
|
1417
|
-
|
|
1418
|
-
|
|
1419
|
-
|
|
1420
|
-
|
|
1421
|
-
|
|
1422
|
-
]).filter(Boolean).join(" ");
|
|
1423
|
-
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(
|
|
1424
|
-
width:
|
|
1425
|
-
height:
|
|
1477
|
+
w,
|
|
1478
|
+
le,
|
|
1479
|
+
g,
|
|
1480
|
+
M,
|
|
1481
|
+
j,
|
|
1482
|
+
he
|
|
1483
|
+
]).filter(Boolean).join(" "));
|
|
1484
|
+
return /* @__PURE__ */ (0, _jsxruntime.jsxs)(Z, {
|
|
1485
|
+
width: t,
|
|
1486
|
+
height: i,
|
|
1426
1487
|
dataAttributes: _object_spread({
|
|
1427
1488
|
"component-name": "PosterCard",
|
|
1428
1489
|
testid: "PosterCard"
|
|
1429
1490
|
}, a),
|
|
1430
|
-
ref:
|
|
1491
|
+
ref: W,
|
|
1431
1492
|
aspectRatio: s,
|
|
1432
1493
|
className: _cardcssmistica.touchableContainer,
|
|
1433
|
-
"aria-label":
|
|
1494
|
+
"aria-label": G ? void 0 : o,
|
|
1495
|
+
"aria-labelledby": G ? void 0 : b,
|
|
1496
|
+
"aria-description": G ? void 0 : v,
|
|
1497
|
+
"aria-describedby": G ? void 0 : c,
|
|
1434
1498
|
children: [
|
|
1435
1499
|
/* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
|
|
1436
1500
|
maybe: !0
|
|
1437
|
-
},
|
|
1501
|
+
}, E), {
|
|
1438
1502
|
className: _cardcssmistica.touchable,
|
|
1439
|
-
"aria-label":
|
|
1503
|
+
"aria-label": G ? Ue : void 0,
|
|
1504
|
+
"aria-labelledby": G ? b : void 0,
|
|
1505
|
+
"aria-description": G ? v : void 0,
|
|
1506
|
+
"aria-describedby": G ? c : void 0,
|
|
1440
1507
|
children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_boxed.InternalBoxed, {
|
|
1441
1508
|
borderRadius: _skincontractcssmistica.vars.borderRadii.legacyDisplay,
|
|
1442
1509
|
className: _cardcssmistica.boxed,
|
|
1443
1510
|
width: "100%",
|
|
1444
1511
|
height: "100%",
|
|
1445
|
-
background:
|
|
1446
|
-
variant:
|
|
1512
|
+
background: Ke(),
|
|
1513
|
+
variant: S || z ? "media" : S || z || de === "inverse" ? "inverse" : "default",
|
|
1447
1514
|
children: [
|
|
1448
|
-
|
|
1449
|
-
className:
|
|
1515
|
+
G && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1516
|
+
className: Qe
|
|
1450
1517
|
}),
|
|
1451
1518
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
1452
1519
|
className: _cardcssmistica.displayCardContainer,
|
|
1453
|
-
"aria-hidden":
|
|
1520
|
+
"aria-hidden": G,
|
|
1454
1521
|
children: [
|
|
1455
|
-
(
|
|
1456
|
-
variant:
|
|
1522
|
+
(S || z) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
|
|
1523
|
+
variant: _ ? "inverse" : "default",
|
|
1457
1524
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1458
1525
|
className: _cardcssmistica.displayCardBackground,
|
|
1459
|
-
children:
|
|
1526
|
+
children: z ? se : ye
|
|
1460
1527
|
})
|
|
1461
1528
|
}),
|
|
1462
1529
|
/* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
|
|
1463
|
-
className: (0, _classnames.default)(_cardcssmistica.displayCardContent,
|
|
1530
|
+
className: (0, _classnames.default)(_cardcssmistica.displayCardContent, $ && !T && !O && !z ? void 0 : T ? _cardcssmistica.displayCardContentWithAsset : _cardcssmistica.displayCardContentWithTopContent),
|
|
1464
1531
|
children: [
|
|
1465
|
-
|
|
1532
|
+
T ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1466
1533
|
style: (0, _css.applyCssVars)({
|
|
1467
1534
|
[_imagecssmistica.vars.mediaBorderRadius]: _skincontractcssmistica.vars.borderRadii.mediaSmall
|
|
1468
1535
|
}),
|
|
1469
1536
|
"data-testid": "asset",
|
|
1470
1537
|
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
1471
|
-
paddingBottom:
|
|
1538
|
+
paddingBottom: $ ? 0 : 40,
|
|
1472
1539
|
paddingX: {
|
|
1473
1540
|
mobile: 16,
|
|
1474
1541
|
desktop: 24
|
|
1475
1542
|
},
|
|
1476
|
-
children:
|
|
1543
|
+
children: T
|
|
1477
1544
|
})
|
|
1478
1545
|
}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
|
|
1479
|
-
paddingBottom:
|
|
1546
|
+
paddingBottom: O || z ? $ ? 24 : 64 : 0
|
|
1480
1547
|
}),
|
|
1481
1548
|
/* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
|
|
1482
1549
|
className: (0, _classnames.default)(_cardcssmistica.posterCardContentWrapper, {
|
|
1483
|
-
[_cardcssmistica.displayCardGradient]:
|
|
1550
|
+
[_cardcssmistica.displayCardGradient]: $
|
|
1484
1551
|
}),
|
|
1485
|
-
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1486
|
-
title:
|
|
1487
|
-
truncate:
|
|
1488
|
-
weight:
|
|
1489
|
-
as:
|
|
1490
|
-
children:
|
|
1552
|
+
children: /* @__PURE__ */ (0, _jsxruntime.jsx)(qe, {
|
|
1553
|
+
title: g ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _textprops.text4), {
|
|
1554
|
+
truncate: H,
|
|
1555
|
+
weight: fe.cardTitle.weight,
|
|
1556
|
+
as: B,
|
|
1557
|
+
children: g
|
|
1491
1558
|
})) : void 0,
|
|
1492
|
-
titleAs:
|
|
1493
|
-
headline:
|
|
1494
|
-
pretitle:
|
|
1559
|
+
titleAs: B,
|
|
1560
|
+
headline: m,
|
|
1561
|
+
pretitle: w ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
1495
1562
|
forceMobileSizes: !0,
|
|
1496
|
-
truncate:
|
|
1497
|
-
as:
|
|
1563
|
+
truncate: f,
|
|
1564
|
+
as: R,
|
|
1498
1565
|
regular: !0,
|
|
1499
|
-
textShadow:
|
|
1500
|
-
children:
|
|
1566
|
+
textShadow: L,
|
|
1567
|
+
children: w
|
|
1501
1568
|
}) : void 0,
|
|
1502
|
-
pretitleAs:
|
|
1503
|
-
subtitle:
|
|
1569
|
+
pretitleAs: R,
|
|
1570
|
+
subtitle: M ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
1504
1571
|
forceMobileSizes: !0,
|
|
1505
|
-
truncate:
|
|
1572
|
+
truncate: A,
|
|
1506
1573
|
as: "div",
|
|
1507
1574
|
regular: !0,
|
|
1508
|
-
textShadow:
|
|
1509
|
-
children:
|
|
1575
|
+
textShadow: L,
|
|
1576
|
+
children: M
|
|
1510
1577
|
}) : void 0,
|
|
1511
|
-
description:
|
|
1578
|
+
description: j ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
|
|
1512
1579
|
forceMobileSizes: !0,
|
|
1513
|
-
truncate:
|
|
1580
|
+
truncate: u,
|
|
1514
1581
|
as: "p",
|
|
1515
1582
|
regular: !0,
|
|
1516
|
-
textShadow:
|
|
1517
|
-
color:
|
|
1518
|
-
children:
|
|
1583
|
+
textShadow: L,
|
|
1584
|
+
color: $ ? _skincontractcssmistica.vars.colors.textPrimary : _skincontractcssmistica.vars.colors.textSecondary,
|
|
1585
|
+
children: j
|
|
1519
1586
|
}) : void 0,
|
|
1520
|
-
headlineRef:
|
|
1521
|
-
extra:
|
|
1522
|
-
extraRef:
|
|
1587
|
+
headlineRef: ce,
|
|
1588
|
+
extra: N,
|
|
1589
|
+
extraRef: ve
|
|
1523
1590
|
})
|
|
1524
1591
|
})
|
|
1525
1592
|
]
|
|
@@ -1529,11 +1596,11 @@ const O = ()=>{
|
|
|
1529
1596
|
]
|
|
1530
1597
|
})
|
|
1531
1598
|
})),
|
|
1532
|
-
/* @__PURE__ */ (0, _jsxruntime.jsx)(
|
|
1533
|
-
onClose:
|
|
1534
|
-
closeButtonLabel:
|
|
1535
|
-
actions:
|
|
1536
|
-
variant:
|
|
1599
|
+
/* @__PURE__ */ (0, _jsxruntime.jsx)(oe, {
|
|
1600
|
+
onClose: C,
|
|
1601
|
+
closeButtonLabel: x,
|
|
1602
|
+
actions: y,
|
|
1603
|
+
variant: S || z ? "media" : de === "inverse" ? "inverse" : "default"
|
|
1537
1604
|
})
|
|
1538
1605
|
]
|
|
1539
1606
|
});
|