@telefonica/mistica 16.5.0 → 16.6.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/callout.js +27 -15
- package/dist/card.css-mistica.js +5 -5
- package/dist/card.d.ts +9 -1
- package/dist/card.js +611 -475
- package/dist/community/advanced-data-card.css-mistica.js +14 -11
- package/dist/community/advanced-data-card.css.d.ts +1 -0
- package/dist/community/advanced-data-card.d.ts +1 -1
- package/dist/community/advanced-data-card.js +172 -85
- package/dist/cover-hero.css-mistica.js +14 -11
- package/dist/cover-hero.css.d.ts +1 -0
- package/dist/cover-hero.d.ts +1 -0
- package/dist/cover-hero.js +101 -59
- package/dist/empty-state.js +24 -15
- package/dist/header.css-mistica.js +6 -3
- package/dist/header.css.d.ts +1 -0
- package/dist/header.d.ts +3 -2
- package/dist/header.js +148 -79
- package/dist/hero.css-mistica.js +11 -8
- package/dist/hero.css.d.ts +1 -0
- package/dist/hero.d.ts +2 -1
- package/dist/hero.js +102 -68
- package/dist/highlighted-card.js +32 -23
- package/dist/index.d.ts +1 -0
- package/dist/index.js +4 -0
- package/dist/maybe-dismissable.js +8 -5
- package/dist/meter.d.ts +23 -0
- package/dist/meter.js +400 -0
- package/dist/package-version.js +1 -1
- package/dist/sheet-common.css-mistica.js +16 -10
- package/dist/sheet-common.css.d.ts +3 -1
- package/dist/sheet-common.js +78 -70
- package/dist/sheet-info.css-mistica.js +15 -4
- package/dist/sheet-info.css.d.ts +2 -0
- package/dist/sheet-info.d.ts +3 -0
- package/dist/sheet-info.js +61 -43
- package/dist/sheet-native.js +59 -48
- package/dist/sheet-types.d.ts +6 -1
- package/dist/sheet-web.js +6 -4
- package/dist/text-tokens.d.ts +10 -0
- package/dist/text-tokens.js +54 -38
- package/dist/theme-context-provider.js +60 -50
- package/dist/theme.d.ts +3 -2
- package/dist/utils/headings.d.ts +2 -0
- package/dist/utils/headings.js +11 -0
- package/dist/utils/types.d.ts +1 -0
- package/dist-es/callout.js +55 -43
- package/dist-es/card.css-mistica.js +2 -2
- package/dist-es/card.js +721 -588
- package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
- package/dist-es/community/advanced-data-card.js +217 -130
- package/dist-es/cover-hero.css-mistica.js +3 -3
- package/dist-es/cover-hero.js +132 -90
- package/dist-es/empty-state.js +40 -31
- package/dist-es/header.css-mistica.js +2 -2
- package/dist-es/header.js +174 -104
- package/dist-es/hero.css-mistica.js +2 -2
- package/dist-es/hero.js +150 -115
- package/dist-es/highlighted-card.js +36 -27
- package/dist-es/index.js +1839 -1838
- package/dist-es/maybe-dismissable.js +17 -14
- package/dist-es/meter.js +346 -0
- package/dist-es/package-version.js +1 -1
- package/dist-es/sheet-common.css-mistica.js +2 -2
- package/dist-es/sheet-common.js +124 -116
- package/dist-es/sheet-info.css-mistica.js +2 -2
- package/dist-es/sheet-info.js +74 -56
- package/dist-es/sheet-native.js +59 -48
- package/dist-es/sheet-web.js +10 -8
- package/dist-es/style.css +1 -1
- package/dist-es/text-tokens.js +30 -20
- package/dist-es/theme-context-provider.js +88 -78
- package/dist-es/utils/headings.js +2 -0
- package/package.json +2 -1
package/dist-es/card.js
CHANGED
|
@@ -78,63 +78,64 @@ function _object_without_properties_loose(source, excluded) {
|
|
|
78
78
|
}
|
|
79
79
|
return target;
|
|
80
80
|
}
|
|
81
|
-
import { jsx as e, jsxs as l, Fragment as
|
|
82
|
-
import * as
|
|
83
|
-
import
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import { Text as
|
|
87
|
-
import { text2 as
|
|
88
|
-
import { Boxed as
|
|
89
|
-
import
|
|
90
|
-
import
|
|
91
|
-
import { BaseTouchable as
|
|
92
|
-
import { vars as
|
|
93
|
-
import { cardContainer as
|
|
94
|
-
import { vars as
|
|
95
|
-
import { useTheme as
|
|
96
|
-
import { IconButton as
|
|
97
|
-
import
|
|
98
|
-
import
|
|
99
|
-
import
|
|
100
|
-
import { combineRefs as
|
|
101
|
-
import
|
|
102
|
-
import
|
|
103
|
-
import { useThemeVariant as
|
|
104
|
-
import
|
|
105
|
-
import
|
|
106
|
-
import { getPrefixedDataAttributes as
|
|
107
|
-
import { isRunningAcceptanceTest as
|
|
81
|
+
import { jsx as e, jsxs as l, Fragment as U } from "react/jsx-runtime";
|
|
82
|
+
import * as S from "react";
|
|
83
|
+
import Te from "./tag.js";
|
|
84
|
+
import ce from "./stack.js";
|
|
85
|
+
import ae from "./box.js";
|
|
86
|
+
import { Text as re, Text2 as z, Text6 as Je, Text3 as Ke } from "./text.js";
|
|
87
|
+
import { text2 as Be, text4 as ve } from "./text-props.js";
|
|
88
|
+
import { Boxed as fe, InternalBoxed as be } from "./boxed.js";
|
|
89
|
+
import ye from "./button-group.js";
|
|
90
|
+
import pe from "./image.js";
|
|
91
|
+
import { BaseTouchable as L } from "./touchable.js";
|
|
92
|
+
import { vars as f } from "./skins/skin-contract.css-mistica.js";
|
|
93
|
+
import { cardContainer as Qe, touchableContainer as _, boxed as te, touchable as $, touchableMediaCardOverlay as Ue, mediaCard as ge, mediaCardContent as Ye, mediaCardAsset as Re, touchableNakedMediaOverlay as Se, circularMediaOverlay as we, nakedCardContent as Ae, touchableCardOverlay as he, dataCard as Ze, vars as ke, dataCardTopActionsWithoutIcon as Pe, actions as Ie, snapCard as ea, displayCardContainer as De, displayCardBackground as Me, displayCardContent as ze, displayCardContentWrapper as aa, displayCardGradient as Oe, displayCardContentWithAsset as ra, displayCardContentWithTopContent as ta, posterCardContentWrapper as da, cardContentContainer as ia, flexColumn as je, touchableCardOverlayInverse as Ce, touchableCardOverlayMedia as Ve } from "./card.css-mistica.js";
|
|
94
|
+
import { vars as X } from "./image.css-mistica.js";
|
|
95
|
+
import { useTheme as Z } from "./hooks.js";
|
|
96
|
+
import { IconButton as na, ToggleIconButton as oa } from "./icon-button.js";
|
|
97
|
+
import sa from "./generated/mistica-icons/icon-close-regular.js";
|
|
98
|
+
import la from "./generated/mistica-icons/icon-pause-filled.js";
|
|
99
|
+
import ca from "./generated/mistica-icons/icon-play-filled.js";
|
|
100
|
+
import { combineRefs as ha } from "./utils/common.js";
|
|
101
|
+
import ma from "./spinner.js";
|
|
102
|
+
import ua from "./video.js";
|
|
103
|
+
import { useThemeVariant as va, useIsInverseVariant as Ee, ThemeVariant as xe } from "./theme-variant-context.js";
|
|
104
|
+
import Y from "classnames";
|
|
105
|
+
import He from "./inline.js";
|
|
106
|
+
import { getPrefixedDataAttributes as fa } from "./utils/dom.js";
|
|
107
|
+
import { isRunningAcceptanceTest as ya } from "./utils/platform.js";
|
|
108
108
|
import { applyCssVars as G } from "./utils/css.js";
|
|
109
|
-
import { closeButtonLabel as
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
109
|
+
import { closeButtonLabel as pa, pauseIconButtonLabel as ga, playIconButtonLabel as Ca } from "./text-tokens.js";
|
|
110
|
+
import { isBiggerHeading as q } from "./utils/headings.js";
|
|
111
|
+
const O = ()=>{
|
|
112
|
+
const [a, r] = S.useState(""), t = S.useCallback((n)=>{
|
|
113
|
+
n && r((process.env.NODE_ENV === "test" ? n.textContent : n.innerText) || "");
|
|
113
114
|
}, []);
|
|
114
115
|
return {
|
|
115
116
|
text: a,
|
|
116
|
-
ref:
|
|
117
|
+
ref: t
|
|
117
118
|
};
|
|
118
|
-
},
|
|
119
|
-
const { texts:
|
|
119
|
+
}, We = (a, r, t)=>{
|
|
120
|
+
const { texts: n, t: c } = Z(), i = a ? [
|
|
120
121
|
...a
|
|
121
122
|
] : [];
|
|
122
|
-
return
|
|
123
|
-
label:
|
|
124
|
-
onPress:
|
|
125
|
-
Icon:
|
|
126
|
-
}),
|
|
127
|
-
},
|
|
128
|
-
const
|
|
129
|
-
return a.Icon ? /* @__PURE__ */ e(
|
|
123
|
+
return r && i.push({
|
|
124
|
+
label: t || n.closeButtonLabel || c(pa),
|
|
125
|
+
onPress: r,
|
|
126
|
+
Icon: sa
|
|
127
|
+
}), i;
|
|
128
|
+
}, xa = (a)=>{
|
|
129
|
+
const r = va();
|
|
130
|
+
return a.Icon ? /* @__PURE__ */ e(na, _object_spread_props(_object_spread({}, a), {
|
|
130
131
|
"aria-label": a.label,
|
|
131
132
|
small: !0,
|
|
132
133
|
type: "neutral",
|
|
133
134
|
backgroundType: "transparent"
|
|
134
|
-
})) : /* @__PURE__ */ e(
|
|
135
|
+
})) : /* @__PURE__ */ e(oa, _object_spread_props(_object_spread({}, a), {
|
|
135
136
|
checkedProps: _object_spread_props(_object_spread({}, a.checkedProps), {
|
|
136
137
|
"aria-label": a.checkedProps.label,
|
|
137
|
-
type:
|
|
138
|
+
type: r === "media" ? "neutral" : "brand",
|
|
138
139
|
backgroundType: "solid"
|
|
139
140
|
}),
|
|
140
141
|
uncheckedProps: _object_spread_props(_object_spread({}, a.uncheckedProps), {
|
|
@@ -144,57 +145,57 @@ const M = ()=>{
|
|
|
144
145
|
}),
|
|
145
146
|
small: !0
|
|
146
147
|
}));
|
|
147
|
-
},
|
|
148
|
-
let { actions: a, padding:
|
|
149
|
-
const
|
|
150
|
-
return
|
|
151
|
-
variant:
|
|
148
|
+
}, de = (param)=>{
|
|
149
|
+
let { actions: a, padding: r = 16, onClose: t, variant: n = "default", closeButtonLabel: c } = param;
|
|
150
|
+
const i = We(a, t, c);
|
|
151
|
+
return i.length > 0 ? /* @__PURE__ */ e(xe, {
|
|
152
|
+
variant: n,
|
|
152
153
|
children: /* @__PURE__ */ e("div", {
|
|
153
154
|
style: {
|
|
154
155
|
position: "absolute",
|
|
155
|
-
right:
|
|
156
|
-
top:
|
|
156
|
+
right: r,
|
|
157
|
+
top: r,
|
|
157
158
|
zIndex: 3
|
|
158
159
|
},
|
|
159
|
-
children: /* @__PURE__ */ e(
|
|
160
|
+
children: /* @__PURE__ */ e(He, {
|
|
160
161
|
space: 16,
|
|
161
162
|
dataAttributes: {
|
|
162
163
|
testid: "topActions"
|
|
163
164
|
},
|
|
164
|
-
children:
|
|
165
|
+
children: i.map((s, o)=>"Icon" in s || "checkedProps" in s ? /* @__PURE__ */ e(xa, _object_spread({}, s), o) : s)
|
|
165
166
|
})
|
|
166
167
|
})
|
|
167
|
-
}) : /* @__PURE__ */ e(
|
|
168
|
-
},
|
|
168
|
+
}) : /* @__PURE__ */ e(U, {});
|
|
169
|
+
}, Na = (a)=>a ? typeof a == "number" ? a : ({
|
|
169
170
|
"1:1": 1,
|
|
170
171
|
"16:9": 16 / 9,
|
|
171
172
|
"7:10": 7 / 10,
|
|
172
173
|
"9:10": 9 / 10,
|
|
173
174
|
auto: 0
|
|
174
|
-
})[a] : 0,
|
|
175
|
-
let { children: a, width:
|
|
176
|
-
const
|
|
177
|
-
return /* @__PURE__ */ e("section", _object_spread_props(_object_spread({},
|
|
178
|
-
ref:
|
|
179
|
-
"aria-label":
|
|
180
|
-
className:
|
|
175
|
+
})[a] : 0, J = /*#__PURE__*/ S.forwardRef((param, s)=>{
|
|
176
|
+
let { children: a, width: r, height: t, aspectRatio: n, dataAttributes: c, className: i, "aria-label": d } = param;
|
|
177
|
+
const o = r && t ? void 0 : Na(n);
|
|
178
|
+
return /* @__PURE__ */ e("section", _object_spread_props(_object_spread({}, fa(c)), {
|
|
179
|
+
ref: s,
|
|
180
|
+
"aria-label": d,
|
|
181
|
+
className: Y(i, Qe),
|
|
181
182
|
style: _object_spread({
|
|
182
|
-
width:
|
|
183
|
-
height:
|
|
184
|
-
},
|
|
185
|
-
[
|
|
183
|
+
width: r || "100%",
|
|
184
|
+
height: t || "100%"
|
|
185
|
+
}, o ? G({
|
|
186
|
+
[ke.aspectRatio]: String(o)
|
|
186
187
|
}) : {}),
|
|
187
188
|
children: a
|
|
188
189
|
}));
|
|
189
|
-
}),
|
|
190
|
-
const
|
|
191
|
-
return /* @__PURE__ */ e(
|
|
190
|
+
}), Ge = (a)=>{
|
|
191
|
+
const r = typeof a == "string" ? a : a == null ? void 0 : a.src, t = typeof a == "string" || a == null ? void 0 : a.srcSet;
|
|
192
|
+
return /* @__PURE__ */ e(pe, {
|
|
192
193
|
width: "100%",
|
|
193
194
|
height: "100%",
|
|
194
|
-
src:
|
|
195
|
-
srcSet:
|
|
195
|
+
src: r || "",
|
|
196
|
+
srcSet: t
|
|
196
197
|
});
|
|
197
|
-
},
|
|
198
|
+
}, Ta = {
|
|
198
199
|
loading: {
|
|
199
200
|
showSpinner: "loadingTimeout",
|
|
200
201
|
play: "playing",
|
|
@@ -220,173 +221,222 @@ const M = ()=>{
|
|
|
220
221
|
error: {
|
|
221
222
|
reset: "loading"
|
|
222
223
|
}
|
|
223
|
-
},
|
|
224
|
+
}, Ba = (a, r)=>Ta[a][r] || a, ba = (param)=>{
|
|
224
225
|
let { color: a } = param;
|
|
225
|
-
return /* @__PURE__ */ e(
|
|
226
|
+
return /* @__PURE__ */ e(ma, {
|
|
226
227
|
color: a,
|
|
227
228
|
size: 16,
|
|
228
229
|
delay: "0"
|
|
229
230
|
});
|
|
230
|
-
},
|
|
231
|
+
}, Ra = (param)=>{
|
|
231
232
|
let { color: a } = param;
|
|
232
|
-
return /* @__PURE__ */ e(
|
|
233
|
+
return /* @__PURE__ */ e(la, {
|
|
233
234
|
color: a,
|
|
234
235
|
size: 12
|
|
235
236
|
});
|
|
236
|
-
},
|
|
237
|
+
}, Sa = (param)=>{
|
|
237
238
|
let { color: a } = param;
|
|
238
|
-
return /* @__PURE__ */ e(
|
|
239
|
+
return /* @__PURE__ */ e(ca, {
|
|
239
240
|
color: a,
|
|
240
241
|
size: 12
|
|
241
242
|
});
|
|
242
|
-
},
|
|
243
|
-
const { texts:
|
|
244
|
-
|
|
245
|
-
var
|
|
246
|
-
const h = setTimeout(()=>
|
|
247
|
-
return (
|
|
248
|
-
clearTimeout(h),
|
|
243
|
+
}, Fe = (a, r, t)=>{
|
|
244
|
+
const { texts: n, t: c } = Z(), i = S.useRef(null), [d, s] = S.useReducer(Ba, "loading");
|
|
245
|
+
S.useEffect(()=>{
|
|
246
|
+
var y;
|
|
247
|
+
const h = setTimeout(()=>s("showSpinner"), 2e3);
|
|
248
|
+
return (y = i.current) == null || y.load(), ()=>{
|
|
249
|
+
clearTimeout(h), s("reset");
|
|
249
250
|
};
|
|
250
251
|
}, [
|
|
251
252
|
a
|
|
252
253
|
]);
|
|
253
|
-
const
|
|
254
|
-
ref:
|
|
254
|
+
const o = S.useMemo(()=>a !== void 0 ? /* @__PURE__ */ e(ua, {
|
|
255
|
+
ref: ha(i, t),
|
|
255
256
|
src: a,
|
|
256
257
|
width: "100%",
|
|
257
258
|
height: "100%",
|
|
258
|
-
poster:
|
|
259
|
-
onError: ()=>
|
|
260
|
-
onPause: ()=>
|
|
261
|
-
onPlay: ()=>
|
|
259
|
+
poster: r,
|
|
260
|
+
onError: ()=>s("fail"),
|
|
261
|
+
onPause: ()=>s("pause"),
|
|
262
|
+
onPlay: ()=>s("play")
|
|
262
263
|
}) : void 0, [
|
|
263
|
-
|
|
264
|
+
t,
|
|
264
265
|
a,
|
|
265
|
-
|
|
266
|
-
]),
|
|
267
|
-
const h =
|
|
268
|
-
h && (
|
|
266
|
+
r
|
|
267
|
+
]), u = ()=>{
|
|
268
|
+
const h = i.current;
|
|
269
|
+
h && (d === "loading" ? s("showSpinner") : d === "paused" ? h.play() : d === "playing" && h.pause());
|
|
269
270
|
};
|
|
270
|
-
if (
|
|
271
|
-
video:
|
|
271
|
+
if (d === "error") return {
|
|
272
|
+
video: o
|
|
272
273
|
};
|
|
273
|
-
const
|
|
274
|
+
const m = o ? {
|
|
274
275
|
uncheckedProps: {
|
|
275
|
-
Icon:
|
|
276
|
-
label:
|
|
276
|
+
Icon: d === "loadingTimeout" && !ya() ? ba : Ra,
|
|
277
|
+
label: d === "loadingTimeout" ? "" : n.pauseIconButtonLabel || c(ga)
|
|
277
278
|
},
|
|
278
279
|
checkedProps: {
|
|
279
|
-
Icon:
|
|
280
|
-
label:
|
|
280
|
+
Icon: Sa,
|
|
281
|
+
label: n.playIconButtonLabel || c(Ca)
|
|
281
282
|
},
|
|
282
|
-
onChange:
|
|
283
|
-
disabled:
|
|
284
|
-
checked:
|
|
283
|
+
onChange: u,
|
|
284
|
+
disabled: d === "loadingTimeout",
|
|
285
|
+
checked: d === "paused"
|
|
285
286
|
} : void 0;
|
|
286
287
|
return {
|
|
287
|
-
video:
|
|
288
|
-
videoAction:
|
|
288
|
+
video: o,
|
|
289
|
+
videoAction: m
|
|
289
290
|
};
|
|
290
|
-
},
|
|
291
|
-
let { headline: a, headlineRef:
|
|
292
|
-
const { textPresets:
|
|
291
|
+
}, Ne = (param)=>{
|
|
292
|
+
let { headline: a, headlineRef: r, pretitle: t, pretitleAs: n, pretitleLinesMax: c, title: i, titleAs: d = "h3", titleLinesMax: s, subtitle: o, subtitleLinesMax: u, description: m, descriptionLinesMax: h, extra: y, extraRef: v, button: p, buttonLink: x } = param;
|
|
293
|
+
const { textPresets: g } = Z();
|
|
293
294
|
return /* @__PURE__ */ l("div", {
|
|
294
|
-
className:
|
|
295
|
+
className: ia,
|
|
295
296
|
children: [
|
|
296
297
|
/* @__PURE__ */ l("div", {
|
|
297
|
-
className:
|
|
298
|
+
className: je,
|
|
298
299
|
children: [
|
|
299
|
-
n
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
300
|
+
q(d, n) ? /* @__PURE__ */ l(U, {
|
|
301
|
+
children: [
|
|
302
|
+
i && /* @__PURE__ */ e("div", {
|
|
303
|
+
style: {
|
|
304
|
+
paddingBottom: o || m ? 4 : 0
|
|
305
|
+
},
|
|
306
|
+
"data-testid": "title",
|
|
307
|
+
children: /* @__PURE__ */ e(re, _object_spread_props(_object_spread({}, ve), {
|
|
308
|
+
truncate: s,
|
|
309
|
+
weight: g.cardTitle.weight,
|
|
310
|
+
as: d,
|
|
311
|
+
hyphens: "auto",
|
|
312
|
+
children: i
|
|
313
|
+
}))
|
|
314
|
+
}),
|
|
315
|
+
a && // assuming that the headline will always be followed by one of: pretitle, title, subtitle, description
|
|
316
|
+
/* @__PURE__ */ e("div", {
|
|
317
|
+
ref: r,
|
|
318
|
+
style: {
|
|
319
|
+
order: -2,
|
|
320
|
+
paddingBottom: 8
|
|
321
|
+
},
|
|
322
|
+
"data-testid": "headline",
|
|
323
|
+
children: typeof a == "string" ? /* @__PURE__ */ e(Te, {
|
|
324
|
+
type: "promo",
|
|
325
|
+
children: a
|
|
326
|
+
}) : a
|
|
327
|
+
}),
|
|
328
|
+
t && /* @__PURE__ */ e("div", {
|
|
329
|
+
style: {
|
|
330
|
+
order: -1,
|
|
331
|
+
paddingBottom: 4
|
|
332
|
+
},
|
|
333
|
+
"data-testid": "pretitle",
|
|
334
|
+
children: /* @__PURE__ */ e(z, {
|
|
335
|
+
truncate: c,
|
|
336
|
+
as: n,
|
|
337
|
+
regular: !0,
|
|
338
|
+
hyphens: "auto",
|
|
339
|
+
children: t
|
|
340
|
+
})
|
|
341
|
+
})
|
|
342
|
+
]
|
|
343
|
+
}) : /* @__PURE__ */ e(U, {
|
|
344
|
+
children: /* @__PURE__ */ l(U, {
|
|
345
|
+
children: [
|
|
346
|
+
t && /* @__PURE__ */ e("div", {
|
|
347
|
+
style: {
|
|
348
|
+
paddingBottom: 4
|
|
349
|
+
},
|
|
350
|
+
"data-testid": "pretitle",
|
|
351
|
+
children: /* @__PURE__ */ e(z, {
|
|
352
|
+
truncate: c,
|
|
353
|
+
as: n,
|
|
354
|
+
regular: !0,
|
|
355
|
+
hyphens: "auto",
|
|
356
|
+
children: t
|
|
357
|
+
})
|
|
358
|
+
}),
|
|
359
|
+
a && // assuming that the headline will always be followed by one of: pretitle, title, subtitle, description
|
|
360
|
+
/* @__PURE__ */ e("div", {
|
|
361
|
+
ref: r,
|
|
362
|
+
style: {
|
|
363
|
+
order: -1,
|
|
364
|
+
paddingBottom: 8
|
|
365
|
+
},
|
|
366
|
+
"data-testid": "headline",
|
|
367
|
+
children: typeof a == "string" ? /* @__PURE__ */ e(Te, {
|
|
368
|
+
type: "promo",
|
|
369
|
+
children: a
|
|
370
|
+
}) : a
|
|
371
|
+
}),
|
|
372
|
+
i && /* @__PURE__ */ e("div", {
|
|
373
|
+
style: {
|
|
374
|
+
paddingBottom: o || m ? 4 : 0
|
|
375
|
+
},
|
|
376
|
+
"data-testid": "title",
|
|
377
|
+
children: /* @__PURE__ */ e(re, _object_spread_props(_object_spread({}, ve), {
|
|
378
|
+
truncate: s,
|
|
379
|
+
weight: g.cardTitle.weight,
|
|
380
|
+
as: d,
|
|
381
|
+
hyphens: "auto",
|
|
382
|
+
children: i
|
|
383
|
+
}))
|
|
384
|
+
})
|
|
385
|
+
]
|
|
337
386
|
})
|
|
338
387
|
}),
|
|
339
|
-
|
|
388
|
+
o && /* @__PURE__ */ e("div", {
|
|
340
389
|
style: {
|
|
341
|
-
paddingBottom:
|
|
390
|
+
paddingBottom: m ? 4 : 0
|
|
342
391
|
},
|
|
343
392
|
"data-testid": "subtitle",
|
|
344
|
-
children: /* @__PURE__ */ e(
|
|
345
|
-
truncate:
|
|
393
|
+
children: /* @__PURE__ */ e(z, {
|
|
394
|
+
truncate: u,
|
|
346
395
|
as: "div",
|
|
347
396
|
regular: !0,
|
|
348
397
|
hyphens: "auto",
|
|
349
|
-
children:
|
|
398
|
+
children: o
|
|
350
399
|
})
|
|
351
400
|
}),
|
|
352
|
-
|
|
401
|
+
m && // this is tricky, when headline exists, the 8px padding is added by it.
|
|
353
402
|
// Otherwise, only 4px are added by title|pretitle|subtitle, so we need to add 4px more
|
|
354
403
|
/* @__PURE__ */ e("div", {
|
|
355
404
|
style: {
|
|
356
|
-
paddingTop:
|
|
405
|
+
paddingTop: t || i || o ? 4 : 0
|
|
357
406
|
},
|
|
358
407
|
"data-testid": "description",
|
|
359
|
-
children: /* @__PURE__ */ e(
|
|
360
|
-
truncate:
|
|
408
|
+
children: /* @__PURE__ */ e(z, {
|
|
409
|
+
truncate: h,
|
|
361
410
|
as: "p",
|
|
362
411
|
regular: !0,
|
|
363
|
-
color:
|
|
412
|
+
color: f.colors.textSecondary,
|
|
364
413
|
hyphens: "auto",
|
|
365
|
-
children:
|
|
414
|
+
children: m
|
|
366
415
|
})
|
|
367
416
|
}),
|
|
368
|
-
|
|
369
|
-
ref:
|
|
417
|
+
y && /* @__PURE__ */ e("div", {
|
|
418
|
+
ref: v,
|
|
370
419
|
"data-testid": "slot",
|
|
371
|
-
children:
|
|
420
|
+
children: y
|
|
372
421
|
})
|
|
373
422
|
]
|
|
374
423
|
}),
|
|
375
|
-
(
|
|
376
|
-
className:
|
|
377
|
-
children: /* @__PURE__ */ e(
|
|
378
|
-
primaryButton:
|
|
379
|
-
link:
|
|
424
|
+
(p || x) && /* @__PURE__ */ e("div", {
|
|
425
|
+
className: Ie,
|
|
426
|
+
children: /* @__PURE__ */ e(ye, {
|
|
427
|
+
primaryButton: p,
|
|
428
|
+
link: x
|
|
380
429
|
})
|
|
381
430
|
})
|
|
382
431
|
]
|
|
383
432
|
});
|
|
384
|
-
},
|
|
385
|
-
var { media: a, asset:
|
|
433
|
+
}, rr = /*#__PURE__*/ S.forwardRef((_param, I)=>{
|
|
434
|
+
var { media: a, asset: r, headline: t, pretitle: n, pretitleAs: c, pretitleLinesMax: i, subtitle: d, subtitleLinesMax: s, title: o, titleAs: u = "h3", titleLinesMax: m, description: h, descriptionLinesMax: y, extra: v, actions: p, button: x, buttonLink: g, dataAttributes: B, "aria-label": N, onClose: j, closeButtonLabel: b } = _param, T = _object_without_properties(_param, [
|
|
386
435
|
"media",
|
|
387
436
|
"asset",
|
|
388
437
|
"headline",
|
|
389
438
|
"pretitle",
|
|
439
|
+
"pretitleAs",
|
|
390
440
|
"pretitleLinesMax",
|
|
391
441
|
"subtitle",
|
|
392
442
|
"subtitleLinesMax",
|
|
@@ -404,92 +454,102 @@ const M = ()=>{
|
|
|
404
454
|
"onClose",
|
|
405
455
|
"closeButtonLabel"
|
|
406
456
|
]);
|
|
407
|
-
const R = !!(
|
|
408
|
-
|
|
409
|
-
|
|
457
|
+
const R = !!(T.href || T.to || T.onPress), { text: A, ref: V } = O(), { text: E, ref: w } = O(), D = N || (q(u, c) ? [
|
|
458
|
+
o,
|
|
459
|
+
A,
|
|
460
|
+
n,
|
|
410
461
|
d,
|
|
462
|
+
h,
|
|
463
|
+
E
|
|
464
|
+
] : [
|
|
465
|
+
n,
|
|
466
|
+
A,
|
|
411
467
|
o,
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
468
|
+
d,
|
|
469
|
+
h,
|
|
470
|
+
E
|
|
471
|
+
]).filter(Boolean).join(" ");
|
|
472
|
+
return /* @__PURE__ */ l(J, {
|
|
416
473
|
dataAttributes: _object_spread({
|
|
417
474
|
"component-name": "MediaCard",
|
|
418
475
|
testid: "MediaCard"
|
|
419
|
-
},
|
|
420
|
-
ref:
|
|
421
|
-
"aria-label": R ? void 0 :
|
|
422
|
-
className:
|
|
476
|
+
}, B),
|
|
477
|
+
ref: I,
|
|
478
|
+
"aria-label": R ? void 0 : N,
|
|
479
|
+
className: _,
|
|
423
480
|
children: [
|
|
424
|
-
/* @__PURE__ */ e(
|
|
425
|
-
className:
|
|
481
|
+
/* @__PURE__ */ e(fe, {
|
|
482
|
+
className: te,
|
|
426
483
|
width: "100%",
|
|
427
484
|
height: "100%",
|
|
428
|
-
children: /* @__PURE__ */ l(
|
|
485
|
+
children: /* @__PURE__ */ l(L, _object_spread_props(_object_spread({
|
|
429
486
|
maybe: !0
|
|
430
|
-
},
|
|
431
|
-
className:
|
|
432
|
-
"aria-label": R ?
|
|
487
|
+
}, T), {
|
|
488
|
+
className: $,
|
|
489
|
+
"aria-label": R ? D : void 0,
|
|
433
490
|
children: [
|
|
434
491
|
R && /* @__PURE__ */ e("div", {
|
|
435
|
-
className:
|
|
492
|
+
className: Ue
|
|
436
493
|
}),
|
|
437
494
|
/* @__PURE__ */ l("div", {
|
|
438
|
-
className:
|
|
495
|
+
className: ge,
|
|
496
|
+
"aria-hidden": R,
|
|
439
497
|
children: [
|
|
440
498
|
/* @__PURE__ */ e("div", {
|
|
441
499
|
style: G({
|
|
442
|
-
[
|
|
500
|
+
[X.mediaBorderRadius]: "0px"
|
|
443
501
|
}),
|
|
444
502
|
children: a
|
|
445
503
|
}),
|
|
446
504
|
/* @__PURE__ */ e("div", {
|
|
447
|
-
className:
|
|
448
|
-
children: /* @__PURE__ */ e(
|
|
449
|
-
headline:
|
|
450
|
-
headlineRef:
|
|
451
|
-
pretitle:
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
505
|
+
className: Ye,
|
|
506
|
+
children: /* @__PURE__ */ e(Ne, {
|
|
507
|
+
headline: t,
|
|
508
|
+
headlineRef: V,
|
|
509
|
+
pretitle: n,
|
|
510
|
+
pretitleAs: c,
|
|
511
|
+
pretitleLinesMax: i,
|
|
512
|
+
title: o,
|
|
513
|
+
titleAs: u,
|
|
514
|
+
titleLinesMax: m,
|
|
515
|
+
subtitle: d,
|
|
457
516
|
subtitleLinesMax: s,
|
|
458
|
-
description:
|
|
459
|
-
descriptionLinesMax:
|
|
460
|
-
extra:
|
|
461
|
-
extraRef:
|
|
462
|
-
button:
|
|
463
|
-
buttonLink:
|
|
517
|
+
description: h,
|
|
518
|
+
descriptionLinesMax: y,
|
|
519
|
+
extra: v,
|
|
520
|
+
extraRef: w,
|
|
521
|
+
button: x,
|
|
522
|
+
buttonLink: g
|
|
464
523
|
})
|
|
465
524
|
}),
|
|
466
|
-
|
|
467
|
-
className:
|
|
525
|
+
r && /* @__PURE__ */ e("div", {
|
|
526
|
+
className: Re,
|
|
468
527
|
style: G({
|
|
469
|
-
[
|
|
528
|
+
[X.mediaBorderRadius]: f.borderRadii.mediaSmall
|
|
470
529
|
}),
|
|
471
530
|
"data-testid": "asset",
|
|
472
|
-
children:
|
|
531
|
+
children: r
|
|
473
532
|
})
|
|
474
533
|
]
|
|
475
534
|
})
|
|
476
535
|
]
|
|
477
536
|
}))
|
|
478
537
|
}),
|
|
479
|
-
/* @__PURE__ */ e(
|
|
480
|
-
onClose:
|
|
481
|
-
closeButtonLabel:
|
|
482
|
-
actions:
|
|
538
|
+
/* @__PURE__ */ e(de, {
|
|
539
|
+
onClose: j,
|
|
540
|
+
closeButtonLabel: b,
|
|
541
|
+
actions: p,
|
|
483
542
|
variant: "media"
|
|
484
543
|
})
|
|
485
544
|
]
|
|
486
545
|
});
|
|
487
|
-
}),
|
|
488
|
-
var { media: a, asset:
|
|
546
|
+
}), tr = /*#__PURE__*/ S.forwardRef((_param, I)=>{
|
|
547
|
+
var { media: a, asset: r, headline: t, pretitle: n, pretitleAs: c, pretitleLinesMax: i, subtitle: d, subtitleLinesMax: s, title: o, titleAs: u = "h3", titleLinesMax: m, description: h, descriptionLinesMax: y, extra: v, actions: p, button: x, buttonLink: g, dataAttributes: B, "aria-label": N, onClose: j, closeButtonLabel: b } = _param, T = _object_without_properties(_param, [
|
|
489
548
|
"media",
|
|
490
549
|
"asset",
|
|
491
550
|
"headline",
|
|
492
551
|
"pretitle",
|
|
552
|
+
"pretitleAs",
|
|
493
553
|
"pretitleLinesMax",
|
|
494
554
|
"subtitle",
|
|
495
555
|
"subtitleLinesMax",
|
|
@@ -507,30 +567,38 @@ const M = ()=>{
|
|
|
507
567
|
"onClose",
|
|
508
568
|
"closeButtonLabel"
|
|
509
569
|
]);
|
|
510
|
-
const R = !!(
|
|
511
|
-
|
|
512
|
-
|
|
570
|
+
const R = !!(T.href || T.to || T.onPress), A = a && a.type === pe && a.props.circular, { text: V, ref: E } = O(), { text: w, ref: D } = O(), M = N || (q(u, c) ? [
|
|
571
|
+
o,
|
|
572
|
+
V,
|
|
573
|
+
n,
|
|
513
574
|
d,
|
|
575
|
+
h,
|
|
576
|
+
w
|
|
577
|
+
] : [
|
|
578
|
+
n,
|
|
579
|
+
V,
|
|
514
580
|
o,
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
581
|
+
d,
|
|
582
|
+
h,
|
|
583
|
+
w
|
|
584
|
+
]).filter(Boolean).join(" ");
|
|
585
|
+
return /* @__PURE__ */ l(J, {
|
|
586
|
+
ref: I,
|
|
520
587
|
dataAttributes: _object_spread({
|
|
521
588
|
"component-name": "NakedCard",
|
|
522
589
|
testid: "NakedCard"
|
|
523
|
-
},
|
|
524
|
-
"aria-label": R ? void 0 :
|
|
525
|
-
className: R ?
|
|
590
|
+
}, B),
|
|
591
|
+
"aria-label": R ? void 0 : N,
|
|
592
|
+
className: R ? _ : void 0,
|
|
526
593
|
children: [
|
|
527
|
-
/* @__PURE__ */ e(
|
|
594
|
+
/* @__PURE__ */ e(L, _object_spread_props(_object_spread({
|
|
528
595
|
maybe: !0
|
|
529
|
-
},
|
|
530
|
-
className:
|
|
531
|
-
"aria-label": R ?
|
|
596
|
+
}, T), {
|
|
597
|
+
className: $,
|
|
598
|
+
"aria-label": R ? M : void 0,
|
|
532
599
|
children: /* @__PURE__ */ l("div", {
|
|
533
|
-
className:
|
|
600
|
+
className: ge,
|
|
601
|
+
"aria-hidden": R,
|
|
534
602
|
children: [
|
|
535
603
|
/* @__PURE__ */ l("div", {
|
|
536
604
|
style: {
|
|
@@ -538,54 +606,55 @@ const M = ()=>{
|
|
|
538
606
|
},
|
|
539
607
|
children: [
|
|
540
608
|
R && /* @__PURE__ */ e("div", {
|
|
541
|
-
className:
|
|
542
|
-
[
|
|
609
|
+
className: Y(Se, {
|
|
610
|
+
[we]: A
|
|
543
611
|
})
|
|
544
612
|
}),
|
|
545
613
|
a
|
|
546
614
|
]
|
|
547
615
|
}),
|
|
548
616
|
/* @__PURE__ */ e("div", {
|
|
549
|
-
className:
|
|
550
|
-
children: /* @__PURE__ */ e(
|
|
551
|
-
headline:
|
|
552
|
-
headlineRef:
|
|
553
|
-
pretitle:
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
617
|
+
className: Ae,
|
|
618
|
+
children: /* @__PURE__ */ e(Ne, {
|
|
619
|
+
headline: t,
|
|
620
|
+
headlineRef: E,
|
|
621
|
+
pretitle: n,
|
|
622
|
+
pretitleAs: c,
|
|
623
|
+
pretitleLinesMax: i,
|
|
624
|
+
title: o,
|
|
625
|
+
titleAs: u,
|
|
626
|
+
titleLinesMax: m,
|
|
627
|
+
subtitle: d,
|
|
559
628
|
subtitleLinesMax: s,
|
|
560
|
-
description:
|
|
561
|
-
descriptionLinesMax:
|
|
562
|
-
extra:
|
|
563
|
-
extraRef:
|
|
564
|
-
button:
|
|
565
|
-
buttonLink:
|
|
629
|
+
description: h,
|
|
630
|
+
descriptionLinesMax: y,
|
|
631
|
+
extra: v,
|
|
632
|
+
extraRef: D,
|
|
633
|
+
button: x,
|
|
634
|
+
buttonLink: g
|
|
566
635
|
})
|
|
567
636
|
}),
|
|
568
|
-
|
|
569
|
-
className:
|
|
637
|
+
r && /* @__PURE__ */ e("div", {
|
|
638
|
+
className: Re,
|
|
570
639
|
style: G({
|
|
571
|
-
[
|
|
640
|
+
[X.mediaBorderRadius]: f.borderRadii.mediaSmall
|
|
572
641
|
}),
|
|
573
642
|
"data-testid": "asset",
|
|
574
|
-
children:
|
|
643
|
+
children: r
|
|
575
644
|
})
|
|
576
645
|
]
|
|
577
646
|
})
|
|
578
647
|
})),
|
|
579
|
-
/* @__PURE__ */ e(
|
|
580
|
-
onClose:
|
|
581
|
-
closeButtonLabel:
|
|
582
|
-
actions:
|
|
648
|
+
/* @__PURE__ */ e(de, {
|
|
649
|
+
onClose: j,
|
|
650
|
+
closeButtonLabel: b,
|
|
651
|
+
actions: p,
|
|
583
652
|
variant: "media"
|
|
584
653
|
})
|
|
585
654
|
]
|
|
586
655
|
});
|
|
587
|
-
}),
|
|
588
|
-
var { media: a, title:
|
|
656
|
+
}), dr = /*#__PURE__*/ S.forwardRef((_param, y)=>{
|
|
657
|
+
var { media: a, title: r, titleAs: t = "h3", titleLinesMax: n, subtitle: c, subtitleLinesMax: i, description: d, descriptionLinesMax: s, extra: o, dataAttributes: u, "aria-label": m } = _param, h = _object_without_properties(_param, [
|
|
589
658
|
"media",
|
|
590
659
|
"title",
|
|
591
660
|
"titleAs",
|
|
@@ -598,86 +667,87 @@ const M = ()=>{
|
|
|
598
667
|
"dataAttributes",
|
|
599
668
|
"aria-label"
|
|
600
669
|
]);
|
|
601
|
-
const
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
670
|
+
const v = !!(h.href || h.to || h.onPress), p = a && a.type === pe && a.props.circular, { textPresets: x } = Z(), { text: g, ref: B } = O(), N = m || [
|
|
671
|
+
r,
|
|
672
|
+
c,
|
|
673
|
+
d,
|
|
674
|
+
g
|
|
606
675
|
].filter(Boolean).join(" ");
|
|
607
|
-
return /* @__PURE__ */ e(
|
|
608
|
-
ref:
|
|
676
|
+
return /* @__PURE__ */ e(J, {
|
|
677
|
+
ref: y,
|
|
609
678
|
dataAttributes: _object_spread({
|
|
610
679
|
"component-name": "SmallNakedCard",
|
|
611
680
|
testid: "SmallNakedCard"
|
|
612
|
-
},
|
|
613
|
-
"aria-label":
|
|
614
|
-
className:
|
|
615
|
-
children: /* @__PURE__ */ e(
|
|
681
|
+
}, u),
|
|
682
|
+
"aria-label": v ? void 0 : m,
|
|
683
|
+
className: v ? _ : void 0,
|
|
684
|
+
children: /* @__PURE__ */ e(L, _object_spread_props(_object_spread({
|
|
616
685
|
maybe: !0
|
|
617
686
|
}, h), {
|
|
618
|
-
className:
|
|
619
|
-
"aria-label":
|
|
687
|
+
className: $,
|
|
688
|
+
"aria-label": v ? N : void 0,
|
|
620
689
|
children: /* @__PURE__ */ l("div", {
|
|
621
|
-
className:
|
|
690
|
+
className: ge,
|
|
691
|
+
"aria-hidden": v,
|
|
622
692
|
children: [
|
|
623
693
|
/* @__PURE__ */ l("div", {
|
|
624
694
|
style: {
|
|
625
695
|
position: "relative"
|
|
626
696
|
},
|
|
627
697
|
children: [
|
|
628
|
-
|
|
629
|
-
className:
|
|
630
|
-
[
|
|
698
|
+
v && /* @__PURE__ */ e("div", {
|
|
699
|
+
className: Y(Se, {
|
|
700
|
+
[we]: p
|
|
631
701
|
})
|
|
632
702
|
}),
|
|
633
703
|
a
|
|
634
704
|
]
|
|
635
705
|
}),
|
|
636
706
|
/* @__PURE__ */ l("div", {
|
|
637
|
-
className:
|
|
707
|
+
className: Ae,
|
|
638
708
|
children: [
|
|
639
709
|
/* @__PURE__ */ e("div", {
|
|
640
|
-
children: /* @__PURE__ */ l(
|
|
710
|
+
children: /* @__PURE__ */ l(ce, {
|
|
641
711
|
space: 4,
|
|
642
712
|
children: [
|
|
643
|
-
|
|
644
|
-
truncate:
|
|
645
|
-
weight:
|
|
646
|
-
as:
|
|
713
|
+
r && /* @__PURE__ */ e(re, _object_spread_props(_object_spread({}, Be), {
|
|
714
|
+
truncate: n,
|
|
715
|
+
weight: x.cardTitle.weight,
|
|
716
|
+
as: t,
|
|
647
717
|
hyphens: "auto",
|
|
648
718
|
dataAttributes: {
|
|
649
719
|
testid: "title"
|
|
650
720
|
},
|
|
651
|
-
children:
|
|
721
|
+
children: r
|
|
652
722
|
})),
|
|
653
|
-
|
|
654
|
-
truncate:
|
|
723
|
+
c && /* @__PURE__ */ e(z, {
|
|
724
|
+
truncate: i,
|
|
655
725
|
regular: !0,
|
|
656
726
|
as: "p",
|
|
657
727
|
hyphens: "auto",
|
|
658
728
|
dataAttributes: {
|
|
659
729
|
testid: "subtitle"
|
|
660
730
|
},
|
|
661
|
-
children:
|
|
731
|
+
children: c
|
|
662
732
|
}),
|
|
663
|
-
|
|
664
|
-
truncate:
|
|
733
|
+
d && /* @__PURE__ */ e(z, {
|
|
734
|
+
truncate: s,
|
|
665
735
|
regular: !0,
|
|
666
736
|
as: "p",
|
|
667
|
-
color:
|
|
737
|
+
color: f.colors.textSecondary,
|
|
668
738
|
hyphens: "auto",
|
|
669
739
|
dataAttributes: {
|
|
670
740
|
testid: "description"
|
|
671
741
|
},
|
|
672
|
-
children:
|
|
742
|
+
children: d
|
|
673
743
|
})
|
|
674
744
|
]
|
|
675
745
|
})
|
|
676
746
|
}),
|
|
677
|
-
|
|
678
|
-
ref:
|
|
747
|
+
o && /* @__PURE__ */ e("div", {
|
|
748
|
+
ref: B,
|
|
679
749
|
"data-testid": "slot",
|
|
680
|
-
children:
|
|
750
|
+
children: o
|
|
681
751
|
})
|
|
682
752
|
]
|
|
683
753
|
})
|
|
@@ -685,11 +755,12 @@ const M = ()=>{
|
|
|
685
755
|
})
|
|
686
756
|
}))
|
|
687
757
|
});
|
|
688
|
-
}),
|
|
689
|
-
var { asset: a, headline:
|
|
758
|
+
}), ir = /*#__PURE__*/ S.forwardRef((_param, I)=>{
|
|
759
|
+
var { asset: a, headline: r, pretitle: t, pretitleAs: n, pretitleLinesMax: c, title: i, titleAs: d = "h3", titleLinesMax: s, subtitle: o, subtitleLinesMax: u, description: m, descriptionLinesMax: h, extra: y, actions: v, button: p, buttonLink: x, dataAttributes: g, "aria-label": B, onClose: N, closeButtonLabel: j, aspectRatio: b } = _param, T = _object_without_properties(_param, [
|
|
690
760
|
"asset",
|
|
691
761
|
"headline",
|
|
692
762
|
"pretitle",
|
|
763
|
+
"pretitleAs",
|
|
693
764
|
"pretitleLinesMax",
|
|
694
765
|
"title",
|
|
695
766
|
"titleAs",
|
|
@@ -708,85 +779,95 @@ const M = ()=>{
|
|
|
708
779
|
"closeButtonLabel",
|
|
709
780
|
"aspectRatio"
|
|
710
781
|
]);
|
|
711
|
-
const R = !!a || !!
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
782
|
+
const R = !!a || !!r, A = !!(T.href || T.to || T.onPress), { text: V, ref: E } = O(), { text: w, ref: D } = O(), M = We(v, N), C = B || (q(d, n) ? [
|
|
783
|
+
i,
|
|
784
|
+
V,
|
|
785
|
+
t,
|
|
786
|
+
o,
|
|
787
|
+
m,
|
|
788
|
+
w
|
|
789
|
+
] : [
|
|
790
|
+
t,
|
|
791
|
+
V,
|
|
792
|
+
i,
|
|
793
|
+
o,
|
|
794
|
+
m,
|
|
795
|
+
w
|
|
796
|
+
]).filter(Boolean).join(" ");
|
|
797
|
+
return /* @__PURE__ */ l(J, {
|
|
719
798
|
dataAttributes: _object_spread({
|
|
720
799
|
"component-name": "DataCard",
|
|
721
800
|
testid: "DataCard"
|
|
722
|
-
},
|
|
723
|
-
ref:
|
|
724
|
-
"aria-label":
|
|
725
|
-
className:
|
|
726
|
-
aspectRatio:
|
|
801
|
+
}, g),
|
|
802
|
+
ref: I,
|
|
803
|
+
"aria-label": A ? void 0 : B,
|
|
804
|
+
className: _,
|
|
805
|
+
aspectRatio: b,
|
|
727
806
|
children: [
|
|
728
|
-
/* @__PURE__ */ e(
|
|
729
|
-
className:
|
|
807
|
+
/* @__PURE__ */ e(fe, {
|
|
808
|
+
className: te,
|
|
730
809
|
width: "100%",
|
|
731
810
|
minHeight: "100%",
|
|
732
|
-
children: /* @__PURE__ */ l(
|
|
811
|
+
children: /* @__PURE__ */ l(L, _object_spread_props(_object_spread({
|
|
733
812
|
maybe: !0
|
|
734
|
-
},
|
|
735
|
-
className:
|
|
736
|
-
"aria-label":
|
|
813
|
+
}, T), {
|
|
814
|
+
className: $,
|
|
815
|
+
"aria-label": A ? C : void 0,
|
|
737
816
|
children: [
|
|
738
|
-
|
|
739
|
-
className:
|
|
817
|
+
A && /* @__PURE__ */ e("div", {
|
|
818
|
+
className: he
|
|
740
819
|
}),
|
|
741
820
|
/* @__PURE__ */ l("div", {
|
|
742
|
-
className:
|
|
821
|
+
className: Ze,
|
|
822
|
+
"aria-hidden": A,
|
|
743
823
|
children: [
|
|
744
|
-
/* @__PURE__ */ l(
|
|
824
|
+
/* @__PURE__ */ l(He, {
|
|
745
825
|
space: 0,
|
|
746
826
|
children: [
|
|
747
|
-
/* @__PURE__ */ l(
|
|
827
|
+
/* @__PURE__ */ l(ce, {
|
|
748
828
|
space: 16,
|
|
749
829
|
children: [
|
|
750
830
|
a && /* @__PURE__ */ e("div", {
|
|
751
831
|
style: G({
|
|
752
|
-
[
|
|
832
|
+
[X.mediaBorderRadius]: f.borderRadii.mediaSmall
|
|
753
833
|
}),
|
|
754
834
|
"data-testid": "asset",
|
|
755
835
|
children: a
|
|
756
836
|
}),
|
|
757
|
-
/* @__PURE__ */ e(
|
|
758
|
-
headline:
|
|
759
|
-
headlineRef:
|
|
760
|
-
pretitle:
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
837
|
+
/* @__PURE__ */ e(Ne, {
|
|
838
|
+
headline: r,
|
|
839
|
+
headlineRef: E,
|
|
840
|
+
pretitle: t,
|
|
841
|
+
pretitleAs: n,
|
|
842
|
+
pretitleLinesMax: c,
|
|
843
|
+
title: i,
|
|
844
|
+
titleAs: d,
|
|
764
845
|
titleLinesMax: s,
|
|
765
|
-
subtitle:
|
|
766
|
-
subtitleLinesMax:
|
|
767
|
-
description:
|
|
768
|
-
descriptionLinesMax:
|
|
846
|
+
subtitle: o,
|
|
847
|
+
subtitleLinesMax: u,
|
|
848
|
+
description: m,
|
|
849
|
+
descriptionLinesMax: h
|
|
769
850
|
})
|
|
770
851
|
]
|
|
771
852
|
}),
|
|
772
853
|
!R && /* @__PURE__ */ e("div", {
|
|
773
854
|
style: G({
|
|
774
|
-
[
|
|
855
|
+
[ke.topActionsCount]: String(M.length)
|
|
775
856
|
}),
|
|
776
|
-
className:
|
|
857
|
+
className: Pe
|
|
777
858
|
})
|
|
778
859
|
]
|
|
779
860
|
}),
|
|
780
|
-
|
|
781
|
-
ref:
|
|
861
|
+
y && /* @__PURE__ */ e("div", {
|
|
862
|
+
ref: D,
|
|
782
863
|
"data-testid": "slot",
|
|
783
|
-
children:
|
|
864
|
+
children: y
|
|
784
865
|
}),
|
|
785
|
-
(
|
|
786
|
-
className:
|
|
787
|
-
children: /* @__PURE__ */ e(
|
|
788
|
-
primaryButton:
|
|
789
|
-
link:
|
|
866
|
+
(p || x) && /* @__PURE__ */ e("div", {
|
|
867
|
+
className: Ie,
|
|
868
|
+
children: /* @__PURE__ */ e(ye, {
|
|
869
|
+
primaryButton: p,
|
|
870
|
+
link: x
|
|
790
871
|
})
|
|
791
872
|
})
|
|
792
873
|
]
|
|
@@ -794,16 +875,16 @@ const M = ()=>{
|
|
|
794
875
|
]
|
|
795
876
|
}))
|
|
796
877
|
}),
|
|
797
|
-
/* @__PURE__ */ e(
|
|
798
|
-
onClose:
|
|
799
|
-
closeButtonLabel:
|
|
800
|
-
actions:
|
|
878
|
+
/* @__PURE__ */ e(de, {
|
|
879
|
+
onClose: N,
|
|
880
|
+
closeButtonLabel: j,
|
|
881
|
+
actions: v,
|
|
801
882
|
variant: "default"
|
|
802
883
|
})
|
|
803
884
|
]
|
|
804
885
|
});
|
|
805
|
-
}),
|
|
806
|
-
var { asset: a, title:
|
|
886
|
+
}), nr = /*#__PURE__*/ S.forwardRef((_param, p)=>{
|
|
887
|
+
var { asset: a, title: r, titleAs: t = "h3", titleLinesMax: n, subtitle: c, subtitleLinesMax: i, description: d, descriptionLinesMax: s, dataAttributes: o, "aria-label": u, extra: m, isInverse: h = !1, aspectRatio: y } = _param, v = _object_without_properties(_param, [
|
|
807
888
|
"asset",
|
|
808
889
|
"title",
|
|
809
890
|
"titleAs",
|
|
@@ -818,93 +899,94 @@ const M = ()=>{
|
|
|
818
899
|
"isInverse",
|
|
819
900
|
"aspectRatio"
|
|
820
901
|
]);
|
|
821
|
-
const { textPresets:
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
902
|
+
const { textPresets: x } = Z(), g = !!(v.href || v.to || v.onPress), B = h ? Ce : he, { text: N, ref: j } = O(), b = u || [
|
|
903
|
+
r,
|
|
904
|
+
c,
|
|
905
|
+
d,
|
|
906
|
+
N
|
|
826
907
|
].filter(Boolean).join(" ");
|
|
827
|
-
return /* @__PURE__ */ e(
|
|
908
|
+
return /* @__PURE__ */ e(J, {
|
|
828
909
|
dataAttributes: _object_spread({
|
|
829
910
|
"component-name": "SnapCard",
|
|
830
911
|
testid: "SnapCard"
|
|
831
|
-
},
|
|
832
|
-
ref:
|
|
833
|
-
className:
|
|
834
|
-
aspectRatio:
|
|
835
|
-
"aria-label":
|
|
836
|
-
children: /* @__PURE__ */ e(
|
|
837
|
-
className:
|
|
912
|
+
}, o),
|
|
913
|
+
ref: p,
|
|
914
|
+
className: _,
|
|
915
|
+
aspectRatio: y,
|
|
916
|
+
"aria-label": g ? void 0 : u,
|
|
917
|
+
children: /* @__PURE__ */ e(fe, {
|
|
918
|
+
className: te,
|
|
838
919
|
variant: h ? "inverse" : "default",
|
|
839
920
|
width: "100%",
|
|
840
921
|
minHeight: "100%",
|
|
841
|
-
children: /* @__PURE__ */ l(
|
|
922
|
+
children: /* @__PURE__ */ l(L, _object_spread_props(_object_spread({
|
|
842
923
|
maybe: !0
|
|
843
|
-
},
|
|
844
|
-
className:
|
|
845
|
-
"aria-label":
|
|
924
|
+
}, v), {
|
|
925
|
+
className: $,
|
|
926
|
+
"aria-label": g ? b : void 0,
|
|
846
927
|
children: [
|
|
847
|
-
|
|
848
|
-
className:
|
|
928
|
+
g && /* @__PURE__ */ e("div", {
|
|
929
|
+
className: B
|
|
849
930
|
}),
|
|
850
931
|
/* @__PURE__ */ l("section", {
|
|
851
|
-
className:
|
|
932
|
+
className: ea,
|
|
933
|
+
"aria-hidden": g,
|
|
852
934
|
children: [
|
|
853
935
|
/* @__PURE__ */ l("div", {
|
|
854
936
|
children: [
|
|
855
937
|
a && /* @__PURE__ */ e("div", {
|
|
856
938
|
style: G({
|
|
857
|
-
[
|
|
939
|
+
[X.mediaBorderRadius]: f.borderRadii.mediaSmall
|
|
858
940
|
}),
|
|
859
941
|
"data-testid": "asset",
|
|
860
|
-
children: /* @__PURE__ */ e(
|
|
942
|
+
children: /* @__PURE__ */ e(ae, {
|
|
861
943
|
paddingBottom: 16,
|
|
862
944
|
children: a
|
|
863
945
|
})
|
|
864
946
|
}),
|
|
865
|
-
/* @__PURE__ */ l(
|
|
947
|
+
/* @__PURE__ */ l(ce, {
|
|
866
948
|
space: 4,
|
|
867
949
|
children: [
|
|
868
|
-
|
|
869
|
-
truncate:
|
|
870
|
-
weight:
|
|
871
|
-
as:
|
|
950
|
+
r && /* @__PURE__ */ e(re, _object_spread_props(_object_spread({}, Be), {
|
|
951
|
+
truncate: n,
|
|
952
|
+
weight: x.cardTitle.weight,
|
|
953
|
+
as: t,
|
|
872
954
|
hyphens: "auto",
|
|
873
955
|
dataAttributes: {
|
|
874
956
|
testid: "title"
|
|
875
957
|
},
|
|
876
|
-
children:
|
|
958
|
+
children: r
|
|
877
959
|
})),
|
|
878
|
-
|
|
879
|
-
truncate:
|
|
960
|
+
c && /* @__PURE__ */ e(z, {
|
|
961
|
+
truncate: i,
|
|
880
962
|
regular: !0,
|
|
881
|
-
color:
|
|
963
|
+
color: f.colors.textPrimary,
|
|
882
964
|
as: "p",
|
|
883
965
|
hyphens: "auto",
|
|
884
966
|
dataAttributes: {
|
|
885
967
|
testid: "subtitle"
|
|
886
968
|
},
|
|
887
|
-
children:
|
|
969
|
+
children: c
|
|
888
970
|
}),
|
|
889
|
-
|
|
890
|
-
truncate:
|
|
971
|
+
d && /* @__PURE__ */ e(z, {
|
|
972
|
+
truncate: s,
|
|
891
973
|
regular: !0,
|
|
892
|
-
color:
|
|
974
|
+
color: f.colors.textSecondary,
|
|
893
975
|
as: "p",
|
|
894
976
|
hyphens: "auto",
|
|
895
977
|
dataAttributes: {
|
|
896
978
|
testid: "description"
|
|
897
979
|
},
|
|
898
|
-
children:
|
|
980
|
+
children: d
|
|
899
981
|
})
|
|
900
982
|
]
|
|
901
983
|
})
|
|
902
984
|
]
|
|
903
985
|
}),
|
|
904
|
-
|
|
905
|
-
ref:
|
|
986
|
+
m && /* @__PURE__ */ e("div", {
|
|
987
|
+
ref: j,
|
|
906
988
|
"data-testid": "slot",
|
|
907
|
-
children:
|
|
989
|
+
children: m
|
|
908
990
|
})
|
|
909
991
|
]
|
|
910
992
|
})
|
|
@@ -912,61 +994,92 @@ const M = ()=>{
|
|
|
912
994
|
}))
|
|
913
995
|
})
|
|
914
996
|
});
|
|
915
|
-
}),
|
|
916
|
-
let { title: a, headline: t, pretitle:
|
|
997
|
+
}), Xe = (param)=>{
|
|
998
|
+
let { title: a, titleAs: r = "h3", headline: t, pretitle: n, pretitleAs: c, subtitle: i, description: d, extra: s, headlineRef: o, extraRef: u } = param;
|
|
917
999
|
return /* @__PURE__ */ l("div", {
|
|
918
|
-
className:
|
|
1000
|
+
className: je,
|
|
919
1001
|
children: [
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
|
|
942
|
-
|
|
943
|
-
|
|
1002
|
+
q(r, c) ? /* @__PURE__ */ l(U, {
|
|
1003
|
+
children: [
|
|
1004
|
+
a && /* @__PURE__ */ e("div", {
|
|
1005
|
+
style: {
|
|
1006
|
+
paddingBottom: i || d ? 4 : 0
|
|
1007
|
+
},
|
|
1008
|
+
"data-testid": "title",
|
|
1009
|
+
children: a
|
|
1010
|
+
}),
|
|
1011
|
+
t && // assuming that the headline will always be followed by one of: pretitle, title, subtitle, description
|
|
1012
|
+
/* @__PURE__ */ e("div", {
|
|
1013
|
+
ref: o,
|
|
1014
|
+
style: {
|
|
1015
|
+
order: -2,
|
|
1016
|
+
paddingBottom: 16
|
|
1017
|
+
},
|
|
1018
|
+
"data-testid": "headline",
|
|
1019
|
+
children: t
|
|
1020
|
+
}),
|
|
1021
|
+
n && /* @__PURE__ */ e("div", {
|
|
1022
|
+
style: {
|
|
1023
|
+
order: -1,
|
|
1024
|
+
paddingBottom: 4
|
|
1025
|
+
},
|
|
1026
|
+
"data-testid": "pretitle",
|
|
1027
|
+
children: n
|
|
1028
|
+
})
|
|
1029
|
+
]
|
|
1030
|
+
}) : /* @__PURE__ */ l(U, {
|
|
1031
|
+
children: [
|
|
1032
|
+
n && /* @__PURE__ */ e("div", {
|
|
1033
|
+
style: {
|
|
1034
|
+
paddingBottom: 4
|
|
1035
|
+
},
|
|
1036
|
+
"data-testid": "pretitle",
|
|
1037
|
+
children: n
|
|
1038
|
+
}),
|
|
1039
|
+
t && // assuming that the headline will always be followed by one of: pretitle, title, subtitle, description
|
|
1040
|
+
/* @__PURE__ */ e("div", {
|
|
1041
|
+
ref: o,
|
|
1042
|
+
style: {
|
|
1043
|
+
order: -1,
|
|
1044
|
+
paddingBottom: 16
|
|
1045
|
+
},
|
|
1046
|
+
"data-testid": "headline",
|
|
1047
|
+
children: t
|
|
1048
|
+
}),
|
|
1049
|
+
a && /* @__PURE__ */ e("div", {
|
|
1050
|
+
style: {
|
|
1051
|
+
paddingBottom: i || d ? 4 : 0
|
|
1052
|
+
},
|
|
1053
|
+
"data-testid": "title",
|
|
1054
|
+
children: a
|
|
1055
|
+
})
|
|
1056
|
+
]
|
|
944
1057
|
}),
|
|
945
|
-
|
|
1058
|
+
i && /* @__PURE__ */ e("div", {
|
|
946
1059
|
style: {
|
|
947
|
-
paddingBottom:
|
|
1060
|
+
paddingBottom: i ? 4 : 0
|
|
948
1061
|
},
|
|
949
1062
|
"data-testid": "subtitle",
|
|
950
|
-
children:
|
|
1063
|
+
children: i
|
|
951
1064
|
}),
|
|
952
|
-
|
|
1065
|
+
d && // this is tricky, the padding between a headline and a description is 16px
|
|
953
1066
|
// but the padding between a title|pretitle|subtitle and a description is 8px (4px + 4px)
|
|
954
1067
|
/* @__PURE__ */ e("div", {
|
|
955
1068
|
style: {
|
|
956
|
-
paddingTop:
|
|
1069
|
+
paddingTop: n || a || i ? 4 : 0
|
|
957
1070
|
},
|
|
958
1071
|
"data-testid": "description",
|
|
959
|
-
children:
|
|
1072
|
+
children: d
|
|
960
1073
|
}),
|
|
961
|
-
|
|
962
|
-
ref:
|
|
1074
|
+
s && /* @__PURE__ */ e("div", {
|
|
1075
|
+
ref: u,
|
|
963
1076
|
"data-testid": "slot",
|
|
964
|
-
children:
|
|
1077
|
+
children: s
|
|
965
1078
|
})
|
|
966
1079
|
]
|
|
967
1080
|
});
|
|
968
|
-
},
|
|
969
|
-
var { isInverse: a, backgroundImage:
|
|
1081
|
+
}, Le = /*#__PURE__*/ S.forwardRef((_param, D)=>{
|
|
1082
|
+
var { isInverse: a, backgroundImage: r, backgroundVideo: t, backgroundVideoRef: n, poster: c, asset: i, headline: d, pretitle: s, pretitleAs: o, pretitleLinesMax: u, title: m, titleAs: h = "h3", titleLinesMax: y, description: v, descriptionLinesMax: p, extra: x, button: g, secondaryButton: B, onClose: N, closeButtonLabel: j, actions: b, buttonLink: T, dataAttributes: I, width: R, height: A, aspectRatio: V, "aria-label": E } = _param, w = _object_without_properties(_param, [
|
|
970
1083
|
"isInverse",
|
|
971
1084
|
"backgroundImage",
|
|
972
1085
|
"backgroundVideo",
|
|
@@ -975,6 +1088,7 @@ const M = ()=>{
|
|
|
975
1088
|
"asset",
|
|
976
1089
|
"headline",
|
|
977
1090
|
"pretitle",
|
|
1091
|
+
"pretitleAs",
|
|
978
1092
|
"pretitleLinesMax",
|
|
979
1093
|
"title",
|
|
980
1094
|
"titleAs",
|
|
@@ -994,114 +1108,123 @@ const M = ()=>{
|
|
|
994
1108
|
"aspectRatio",
|
|
995
1109
|
"aria-label"
|
|
996
1110
|
]);
|
|
997
|
-
const
|
|
998
|
-
C && (
|
|
999
|
-
|
|
1111
|
+
const M = r !== void 0, C = t !== void 0, k = Ge(r), { video: me, videoAction: ie } = Fe(t, c, n), { text: P, ref: ne } = O(), { text: oe, ref: se } = O();
|
|
1112
|
+
C && (b = ie ? [
|
|
1113
|
+
ie
|
|
1000
1114
|
] : []);
|
|
1001
|
-
const
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
]
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1115
|
+
const le = Ee(), H = M || C, W = H ? "0 0 16px rgba(0,0,0,0.4)" : void 0, K = (b == null ? void 0 : b.length) || N, F = !!(w.href || w.to || w.onPress), ue = M || C ? Ve : a ? Ce : he, Q = E || (q(h, o) ? [
|
|
1116
|
+
m,
|
|
1117
|
+
P,
|
|
1118
|
+
s,
|
|
1119
|
+
v,
|
|
1120
|
+
oe
|
|
1121
|
+
] : [
|
|
1122
|
+
s,
|
|
1123
|
+
P,
|
|
1124
|
+
m,
|
|
1125
|
+
v,
|
|
1126
|
+
oe
|
|
1127
|
+
]).filter(Boolean).join(" ");
|
|
1128
|
+
return /* @__PURE__ */ l(J, {
|
|
1129
|
+
dataAttributes: I,
|
|
1130
|
+
ref: D,
|
|
1011
1131
|
width: R,
|
|
1012
|
-
height:
|
|
1013
|
-
aspectRatio:
|
|
1014
|
-
"aria-label":
|
|
1015
|
-
className:
|
|
1132
|
+
height: A,
|
|
1133
|
+
aspectRatio: V,
|
|
1134
|
+
"aria-label": F ? void 0 : E,
|
|
1135
|
+
className: _,
|
|
1016
1136
|
children: [
|
|
1017
|
-
/* @__PURE__ */ e(
|
|
1018
|
-
borderRadius:
|
|
1019
|
-
className:
|
|
1137
|
+
/* @__PURE__ */ e(be, {
|
|
1138
|
+
borderRadius: f.borderRadii.legacyDisplay,
|
|
1139
|
+
className: te,
|
|
1020
1140
|
width: "100%",
|
|
1021
1141
|
minHeight: "100%",
|
|
1022
|
-
background:
|
|
1023
|
-
variant:
|
|
1024
|
-
children: /* @__PURE__ */ l(
|
|
1142
|
+
background: M || C ? le ? f.colors.backgroundContainerBrandOverInverse : f.colors.backgroundContainer : void 0,
|
|
1143
|
+
variant: M || C ? "media" : a ? "inverse" : "default",
|
|
1144
|
+
children: /* @__PURE__ */ l(L, _object_spread_props(_object_spread({
|
|
1025
1145
|
maybe: !0
|
|
1026
|
-
},
|
|
1027
|
-
className:
|
|
1028
|
-
"aria-label":
|
|
1146
|
+
}, w), {
|
|
1147
|
+
className: $,
|
|
1148
|
+
"aria-label": F ? Q : void 0,
|
|
1029
1149
|
children: [
|
|
1030
|
-
|
|
1031
|
-
className:
|
|
1150
|
+
F && /* @__PURE__ */ e("div", {
|
|
1151
|
+
className: ue
|
|
1032
1152
|
}),
|
|
1033
1153
|
/* @__PURE__ */ l("div", {
|
|
1034
|
-
className:
|
|
1154
|
+
className: De,
|
|
1155
|
+
"aria-hidden": F,
|
|
1035
1156
|
children: [
|
|
1036
|
-
(
|
|
1037
|
-
variant:
|
|
1157
|
+
(M || C) && /* @__PURE__ */ e(xe, {
|
|
1158
|
+
variant: le ? "inverse" : "default",
|
|
1038
1159
|
children: /* @__PURE__ */ e("div", {
|
|
1039
|
-
className:
|
|
1040
|
-
children: C ?
|
|
1160
|
+
className: Me,
|
|
1161
|
+
children: C ? me : k
|
|
1041
1162
|
})
|
|
1042
1163
|
}),
|
|
1043
1164
|
/* @__PURE__ */ l("div", {
|
|
1044
|
-
className:
|
|
1165
|
+
className: ze,
|
|
1045
1166
|
style: {
|
|
1046
|
-
paddingTop:
|
|
1167
|
+
paddingTop: H && !i && !K && !C ? 0 : 24
|
|
1047
1168
|
},
|
|
1048
1169
|
children: [
|
|
1049
|
-
|
|
1170
|
+
i ? /* @__PURE__ */ e("div", {
|
|
1050
1171
|
style: G({
|
|
1051
|
-
[
|
|
1172
|
+
[X.mediaBorderRadius]: f.borderRadii.mediaSmall
|
|
1052
1173
|
}),
|
|
1053
1174
|
"data-testid": "asset",
|
|
1054
|
-
children: /* @__PURE__ */ e(
|
|
1055
|
-
paddingBottom:
|
|
1175
|
+
children: /* @__PURE__ */ e(ae, {
|
|
1176
|
+
paddingBottom: H ? 0 : 40,
|
|
1056
1177
|
paddingX: 24,
|
|
1057
|
-
children:
|
|
1178
|
+
children: i
|
|
1058
1179
|
})
|
|
1059
|
-
}) : /* @__PURE__ */ e(
|
|
1060
|
-
paddingBottom:
|
|
1180
|
+
}) : /* @__PURE__ */ e(ae, {
|
|
1181
|
+
paddingBottom: K || C ? H ? 24 : 64 : 0
|
|
1061
1182
|
}),
|
|
1062
1183
|
/* @__PURE__ */ e("div", {
|
|
1063
|
-
className:
|
|
1064
|
-
[
|
|
1184
|
+
className: Y(aa, {
|
|
1185
|
+
[Oe]: H
|
|
1065
1186
|
}),
|
|
1066
|
-
children: /* @__PURE__ */ l(
|
|
1187
|
+
children: /* @__PURE__ */ l(ce, {
|
|
1067
1188
|
space: 24,
|
|
1068
1189
|
children: [
|
|
1069
|
-
/* @__PURE__ */ e(
|
|
1070
|
-
title:
|
|
1190
|
+
/* @__PURE__ */ e(Xe, {
|
|
1191
|
+
title: m ? /* @__PURE__ */ e(Je, {
|
|
1071
1192
|
forceMobileSizes: !0,
|
|
1072
|
-
truncate:
|
|
1073
|
-
as:
|
|
1074
|
-
textShadow:
|
|
1193
|
+
truncate: y,
|
|
1194
|
+
as: h,
|
|
1195
|
+
textShadow: W,
|
|
1075
1196
|
hyphens: "auto",
|
|
1076
|
-
children:
|
|
1197
|
+
children: m
|
|
1077
1198
|
}) : void 0,
|
|
1078
|
-
|
|
1079
|
-
|
|
1199
|
+
titleAs: h,
|
|
1200
|
+
headline: d,
|
|
1201
|
+
pretitle: s ? /* @__PURE__ */ e(z, {
|
|
1080
1202
|
forceMobileSizes: !0,
|
|
1081
|
-
truncate:
|
|
1082
|
-
as:
|
|
1203
|
+
truncate: u,
|
|
1204
|
+
as: o,
|
|
1083
1205
|
regular: !0,
|
|
1084
|
-
textShadow:
|
|
1085
|
-
children:
|
|
1206
|
+
textShadow: W,
|
|
1207
|
+
children: s
|
|
1086
1208
|
}) : void 0,
|
|
1087
|
-
|
|
1209
|
+
pretitleAs: o,
|
|
1210
|
+
description: v ? /* @__PURE__ */ e(Ke, {
|
|
1088
1211
|
forceMobileSizes: !0,
|
|
1089
|
-
truncate:
|
|
1212
|
+
truncate: p,
|
|
1090
1213
|
as: "p",
|
|
1091
1214
|
regular: !0,
|
|
1092
|
-
color:
|
|
1093
|
-
textShadow:
|
|
1215
|
+
color: H ? f.colors.textPrimary : f.colors.textSecondary,
|
|
1216
|
+
textShadow: W,
|
|
1094
1217
|
hyphens: "auto",
|
|
1095
|
-
children:
|
|
1218
|
+
children: v
|
|
1096
1219
|
}) : void 0,
|
|
1097
|
-
extra:
|
|
1098
|
-
headlineRef:
|
|
1099
|
-
extraRef:
|
|
1220
|
+
extra: x,
|
|
1221
|
+
headlineRef: ne,
|
|
1222
|
+
extraRef: se
|
|
1100
1223
|
}),
|
|
1101
|
-
(
|
|
1102
|
-
primaryButton:
|
|
1103
|
-
secondaryButton:
|
|
1104
|
-
link:
|
|
1224
|
+
(g || B || T) && /* @__PURE__ */ e(ye, {
|
|
1225
|
+
primaryButton: g,
|
|
1226
|
+
secondaryButton: B,
|
|
1227
|
+
link: T
|
|
1105
1228
|
})
|
|
1106
1229
|
]
|
|
1107
1230
|
})
|
|
@@ -1113,39 +1236,39 @@ const M = ()=>{
|
|
|
1113
1236
|
]
|
|
1114
1237
|
}))
|
|
1115
1238
|
}),
|
|
1116
|
-
/* @__PURE__ */ e(
|
|
1117
|
-
onClose:
|
|
1118
|
-
closeButtonLabel:
|
|
1119
|
-
actions:
|
|
1120
|
-
variant:
|
|
1239
|
+
/* @__PURE__ */ e(de, {
|
|
1240
|
+
onClose: N,
|
|
1241
|
+
closeButtonLabel: j,
|
|
1242
|
+
actions: b,
|
|
1243
|
+
variant: M || C ? "media" : a ? "inverse" : "default"
|
|
1121
1244
|
})
|
|
1122
1245
|
]
|
|
1123
1246
|
});
|
|
1124
|
-
}),
|
|
1125
|
-
var { dataAttributes: a } = _param,
|
|
1247
|
+
}), or = /*#__PURE__*/ S.forwardRef((_param, t)=>{
|
|
1248
|
+
var { dataAttributes: a } = _param, r = _object_without_properties(_param, [
|
|
1126
1249
|
"dataAttributes"
|
|
1127
1250
|
]);
|
|
1128
|
-
return /* @__PURE__ */ e(
|
|
1129
|
-
ref:
|
|
1251
|
+
return /* @__PURE__ */ e(Le, _object_spread_props(_object_spread({}, r), {
|
|
1252
|
+
ref: t,
|
|
1130
1253
|
isInverse: !0,
|
|
1131
1254
|
dataAttributes: _object_spread({
|
|
1132
1255
|
"component-name": "DisplayMediaCard",
|
|
1133
1256
|
testid: "DisplayMediaCard"
|
|
1134
1257
|
}, a)
|
|
1135
1258
|
}));
|
|
1136
|
-
}),
|
|
1137
|
-
var { dataAttributes: a } = _param,
|
|
1259
|
+
}), sr = /*#__PURE__*/ S.forwardRef((_param, t)=>{
|
|
1260
|
+
var { dataAttributes: a } = _param, r = _object_without_properties(_param, [
|
|
1138
1261
|
"dataAttributes"
|
|
1139
1262
|
]);
|
|
1140
|
-
return /* @__PURE__ */ e(
|
|
1141
|
-
ref:
|
|
1263
|
+
return /* @__PURE__ */ e(Le, _object_spread_props(_object_spread({}, r), {
|
|
1264
|
+
ref: t,
|
|
1142
1265
|
dataAttributes: _object_spread({
|
|
1143
1266
|
"component-name": "DisplayDataCard",
|
|
1144
1267
|
testid: "DisplayDataCard"
|
|
1145
1268
|
}, a)
|
|
1146
1269
|
}));
|
|
1147
|
-
}),
|
|
1148
|
-
var { dataAttributes: a, backgroundImage:
|
|
1270
|
+
}), lr = /*#__PURE__*/ S.forwardRef((_param, M)=>{
|
|
1271
|
+
var { dataAttributes: a, backgroundImage: r, backgroundVideo: t, poster: n, backgroundVideoRef: c, width: i, height: d, aspectRatio: s = "7:10", "aria-label": o, actions: u, onClose: m, closeButtonLabel: h, asset: y, headline: v, pretitle: p, pretitleAs: x, pretitleLinesMax: g, title: B, titleAs: N = "h3", titleLinesMax: j, subtitle: b, subtitleLinesMax: T, description: I, descriptionLinesMax: R, extra: A, variant: V, isInverse: E, backgroundColor: w } = _param, D = _object_without_properties(_param, [
|
|
1149
1272
|
"dataAttributes",
|
|
1150
1273
|
"backgroundImage",
|
|
1151
1274
|
"backgroundVideo",
|
|
@@ -1161,6 +1284,7 @@ const M = ()=>{
|
|
|
1161
1284
|
"asset",
|
|
1162
1285
|
"headline",
|
|
1163
1286
|
"pretitle",
|
|
1287
|
+
"pretitleAs",
|
|
1164
1288
|
"pretitleLinesMax",
|
|
1165
1289
|
"title",
|
|
1166
1290
|
"titleAs",
|
|
@@ -1174,120 +1298,129 @@ const M = ()=>{
|
|
|
1174
1298
|
"isInverse",
|
|
1175
1299
|
"backgroundColor"
|
|
1176
1300
|
]);
|
|
1177
|
-
const C =
|
|
1178
|
-
|
|
1179
|
-
|
|
1301
|
+
const C = r !== void 0, k = t !== void 0, me = Ge(r), { video: ie, videoAction: P } = Fe(t, n, c), { text: ne, ref: oe } = O(), { text: se, ref: le } = O();
|
|
1302
|
+
k && (u = P ? [
|
|
1303
|
+
P
|
|
1180
1304
|
] : []);
|
|
1181
|
-
const
|
|
1182
|
-
default:
|
|
1183
|
-
inverse:
|
|
1184
|
-
alternative:
|
|
1185
|
-
})[
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
]
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1305
|
+
const H = Ee(), W = C || k, K = W ? "0 0 16px rgba(0,0,0,0.4)" : void 0, F = (u == null ? void 0 : u.length) || m, { textPresets: ue } = Z(), Q = !!(D.href || D.to || D.onPress), ee = V || (E ? "inverse" : "default"), _e = ()=>ee === "media" || C || k ? H ? f.colors.backgroundContainerBrandOverInverse : f.colors.backgroundContainer : w || ({
|
|
1306
|
+
default: f.colors.backgroundContainer,
|
|
1307
|
+
inverse: H ? f.colors.backgroundContainerBrandOverInverse : f.colors.backgroundBrand,
|
|
1308
|
+
alternative: f.colors.backgroundAlternative
|
|
1309
|
+
})[ee], $e = C || k ? Ve : ee === "inverse" ? Ce : he, qe = o || (q(N, x) ? [
|
|
1310
|
+
B,
|
|
1311
|
+
ne,
|
|
1312
|
+
p,
|
|
1313
|
+
b,
|
|
1314
|
+
I,
|
|
1315
|
+
se
|
|
1316
|
+
] : [
|
|
1317
|
+
p,
|
|
1318
|
+
ne,
|
|
1319
|
+
B,
|
|
1320
|
+
b,
|
|
1321
|
+
I,
|
|
1322
|
+
se
|
|
1323
|
+
]).filter(Boolean).join(" ");
|
|
1324
|
+
return /* @__PURE__ */ l(J, {
|
|
1325
|
+
width: i,
|
|
1326
|
+
height: d,
|
|
1196
1327
|
dataAttributes: _object_spread({
|
|
1197
1328
|
"component-name": "PosterCard",
|
|
1198
1329
|
testid: "PosterCard"
|
|
1199
1330
|
}, a),
|
|
1200
|
-
ref:
|
|
1201
|
-
aspectRatio:
|
|
1202
|
-
className:
|
|
1203
|
-
"aria-label":
|
|
1331
|
+
ref: M,
|
|
1332
|
+
aspectRatio: s,
|
|
1333
|
+
className: _,
|
|
1334
|
+
"aria-label": Q ? void 0 : o,
|
|
1204
1335
|
children: [
|
|
1205
|
-
/* @__PURE__ */ e(
|
|
1206
|
-
borderRadius:
|
|
1207
|
-
className:
|
|
1336
|
+
/* @__PURE__ */ e(be, {
|
|
1337
|
+
borderRadius: f.borderRadii.legacyDisplay,
|
|
1338
|
+
className: te,
|
|
1208
1339
|
width: "100%",
|
|
1209
1340
|
minHeight: "100%",
|
|
1210
|
-
background:
|
|
1211
|
-
variant: C ||
|
|
1212
|
-
children: /* @__PURE__ */ l(
|
|
1341
|
+
background: _e(),
|
|
1342
|
+
variant: C || k ? "media" : C || k || ee === "inverse" ? "inverse" : "default",
|
|
1343
|
+
children: /* @__PURE__ */ l(L, _object_spread_props(_object_spread({
|
|
1213
1344
|
maybe: !0
|
|
1214
|
-
},
|
|
1215
|
-
className:
|
|
1216
|
-
"aria-label":
|
|
1345
|
+
}, D), {
|
|
1346
|
+
className: $,
|
|
1347
|
+
"aria-label": Q ? qe : void 0,
|
|
1217
1348
|
children: [
|
|
1218
|
-
|
|
1219
|
-
className:
|
|
1349
|
+
Q && /* @__PURE__ */ e("div", {
|
|
1350
|
+
className: $e
|
|
1220
1351
|
}),
|
|
1221
1352
|
/* @__PURE__ */ l("div", {
|
|
1222
|
-
className:
|
|
1223
|
-
"aria-hidden":
|
|
1353
|
+
className: De,
|
|
1354
|
+
"aria-hidden": Q,
|
|
1224
1355
|
children: [
|
|
1225
|
-
(C ||
|
|
1226
|
-
variant:
|
|
1356
|
+
(C || k) && /* @__PURE__ */ e(xe, {
|
|
1357
|
+
variant: H ? "inverse" : "default",
|
|
1227
1358
|
children: /* @__PURE__ */ e("div", {
|
|
1228
|
-
className:
|
|
1229
|
-
children:
|
|
1359
|
+
className: Me,
|
|
1360
|
+
children: k ? ie : me
|
|
1230
1361
|
})
|
|
1231
1362
|
}),
|
|
1232
1363
|
/* @__PURE__ */ l("div", {
|
|
1233
|
-
className:
|
|
1364
|
+
className: Y(ze, W && !y && !F && !k ? void 0 : y ? ra : ta),
|
|
1234
1365
|
children: [
|
|
1235
|
-
|
|
1366
|
+
y ? /* @__PURE__ */ e("div", {
|
|
1236
1367
|
style: G({
|
|
1237
|
-
[
|
|
1368
|
+
[X.mediaBorderRadius]: f.borderRadii.mediaSmall
|
|
1238
1369
|
}),
|
|
1239
1370
|
"data-testid": "asset",
|
|
1240
|
-
children: /* @__PURE__ */ e(
|
|
1241
|
-
paddingBottom:
|
|
1371
|
+
children: /* @__PURE__ */ e(ae, {
|
|
1372
|
+
paddingBottom: W ? 0 : 40,
|
|
1242
1373
|
paddingX: {
|
|
1243
1374
|
mobile: 16,
|
|
1244
1375
|
desktop: 24
|
|
1245
1376
|
},
|
|
1246
|
-
children:
|
|
1377
|
+
children: y
|
|
1247
1378
|
})
|
|
1248
|
-
}) : /* @__PURE__ */ e(
|
|
1249
|
-
paddingBottom:
|
|
1379
|
+
}) : /* @__PURE__ */ e(ae, {
|
|
1380
|
+
paddingBottom: F || k ? W ? 24 : 64 : 0
|
|
1250
1381
|
}),
|
|
1251
1382
|
/* @__PURE__ */ e("div", {
|
|
1252
|
-
className:
|
|
1253
|
-
[
|
|
1383
|
+
className: Y(da, {
|
|
1384
|
+
[Oe]: W
|
|
1254
1385
|
}),
|
|
1255
|
-
children: /* @__PURE__ */ e(
|
|
1256
|
-
title:
|
|
1257
|
-
truncate:
|
|
1258
|
-
weight:
|
|
1259
|
-
as:
|
|
1260
|
-
children:
|
|
1386
|
+
children: /* @__PURE__ */ e(Xe, {
|
|
1387
|
+
title: B ? /* @__PURE__ */ e(re, _object_spread_props(_object_spread({}, ve), {
|
|
1388
|
+
truncate: j,
|
|
1389
|
+
weight: ue.cardTitle.weight,
|
|
1390
|
+
as: N,
|
|
1391
|
+
children: B
|
|
1261
1392
|
})) : void 0,
|
|
1262
|
-
|
|
1263
|
-
|
|
1393
|
+
titleAs: N,
|
|
1394
|
+
headline: v,
|
|
1395
|
+
pretitle: p ? /* @__PURE__ */ e(z, {
|
|
1264
1396
|
forceMobileSizes: !0,
|
|
1265
|
-
truncate:
|
|
1266
|
-
as:
|
|
1397
|
+
truncate: g,
|
|
1398
|
+
as: x,
|
|
1267
1399
|
regular: !0,
|
|
1268
|
-
textShadow:
|
|
1269
|
-
children:
|
|
1400
|
+
textShadow: K,
|
|
1401
|
+
children: p
|
|
1270
1402
|
}) : void 0,
|
|
1271
|
-
|
|
1403
|
+
pretitleAs: x,
|
|
1404
|
+
subtitle: b ? /* @__PURE__ */ e(z, {
|
|
1272
1405
|
forceMobileSizes: !0,
|
|
1273
|
-
truncate:
|
|
1406
|
+
truncate: T,
|
|
1274
1407
|
as: "div",
|
|
1275
1408
|
regular: !0,
|
|
1276
|
-
textShadow:
|
|
1277
|
-
children:
|
|
1409
|
+
textShadow: K,
|
|
1410
|
+
children: b
|
|
1278
1411
|
}) : void 0,
|
|
1279
|
-
description:
|
|
1412
|
+
description: I ? /* @__PURE__ */ e(z, {
|
|
1280
1413
|
forceMobileSizes: !0,
|
|
1281
1414
|
truncate: R,
|
|
1282
1415
|
as: "p",
|
|
1283
1416
|
regular: !0,
|
|
1284
|
-
textShadow:
|
|
1285
|
-
color:
|
|
1286
|
-
children:
|
|
1417
|
+
textShadow: K,
|
|
1418
|
+
color: W ? f.colors.textPrimary : f.colors.textSecondary,
|
|
1419
|
+
children: I
|
|
1287
1420
|
}) : void 0,
|
|
1288
|
-
headlineRef:
|
|
1289
|
-
extra:
|
|
1290
|
-
extraRef:
|
|
1421
|
+
headlineRef: oe,
|
|
1422
|
+
extra: A,
|
|
1423
|
+
extraRef: le
|
|
1291
1424
|
})
|
|
1292
1425
|
})
|
|
1293
1426
|
]
|
|
@@ -1297,13 +1430,13 @@ const M = ()=>{
|
|
|
1297
1430
|
]
|
|
1298
1431
|
}))
|
|
1299
1432
|
}),
|
|
1300
|
-
/* @__PURE__ */ e(
|
|
1301
|
-
onClose:
|
|
1433
|
+
/* @__PURE__ */ e(de, {
|
|
1434
|
+
onClose: m,
|
|
1302
1435
|
closeButtonLabel: h,
|
|
1303
|
-
actions:
|
|
1304
|
-
variant: C ||
|
|
1436
|
+
actions: u,
|
|
1437
|
+
variant: C || k ? "media" : ee === "inverse" ? "inverse" : "default"
|
|
1305
1438
|
})
|
|
1306
1439
|
]
|
|
1307
1440
|
});
|
|
1308
1441
|
});
|
|
1309
|
-
export {
|
|
1442
|
+
export { xa as CardActionIconButton, ba as CardActionSpinner, de as CardActionsGroup, ir as DataCard, sr as DisplayDataCard, or as DisplayMediaCard, rr as MediaCard, tr as NakedCard, lr as PosterCard, dr as SmallNakedCard, nr as SnapCard, O as useInnerText, Fe as useVideoWithControls };
|