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