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