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