@telefonica/mistica 14.19.0 → 14.20.1

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 (70) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/button.js +17 -17
  3. package/dist/card.css-mistica.js +6 -6
  4. package/dist/card.css.d.ts +0 -1
  5. package/dist/card.d.ts +15 -4
  6. package/dist/card.js +298 -264
  7. package/dist/community/advanced-data-card.css-mistica.js +18 -21
  8. package/dist/community/advanced-data-card.css.d.ts +2 -3
  9. package/dist/community/advanced-data-card.js +171 -158
  10. package/dist/generated/mistica-icons/icon-subtract-circle-filled.d.ts +4 -0
  11. package/dist/generated/mistica-icons/icon-subtract-circle-filled.js +110 -0
  12. package/dist/generated/mistica-icons/icon-subtract-circle-light.d.ts +4 -0
  13. package/dist/generated/mistica-icons/icon-subtract-circle-light.js +116 -0
  14. package/dist/generated/mistica-icons/icon-subtract-circle-regular.d.ts +4 -0
  15. package/dist/generated/mistica-icons/icon-subtract-circle-regular.js +116 -0
  16. package/dist/generated/mistica-icons/icon-subtract-light.d.ts +4 -0
  17. package/dist/generated/mistica-icons/icon-subtract-light.js +110 -0
  18. package/dist/generated/mistica-icons/icon-subtract-regular.d.ts +4 -0
  19. package/dist/generated/mistica-icons/icon-subtract-regular.js +110 -0
  20. package/dist/header.js +27 -29
  21. package/dist/index.d.ts +9 -1
  22. package/dist/index.js +50 -0
  23. package/dist/list.css-mistica.js +17 -14
  24. package/dist/list.css.d.ts +2 -1
  25. package/dist/list.js +170 -163
  26. package/dist/package-version.js +1 -1
  27. package/dist/skins/blau.js +14 -0
  28. package/dist/skins/defaults.js +14 -0
  29. package/dist/skins/movistar-legacy.js +14 -0
  30. package/dist/skins/movistar.js +14 -0
  31. package/dist/skins/o2.js +14 -0
  32. package/dist/skins/telefonica.js +16 -2
  33. package/dist/skins/types/index.d.ts +12 -0
  34. package/dist/skins/vivo-new.js +15 -1
  35. package/dist/skins/vivo.js +14 -0
  36. package/dist/tabs.css-mistica.js +10 -14
  37. package/dist/tabs.css.d.ts +1 -2
  38. package/dist/tabs.js +39 -33
  39. package/dist/theme-context-provider.js +29 -27
  40. package/dist/title.d.ts +1 -0
  41. package/dist/title.js +91 -29
  42. package/dist-es/button.js +17 -17
  43. package/dist-es/card.css-mistica.js +3 -3
  44. package/dist-es/card.js +409 -378
  45. package/dist-es/community/advanced-data-card.css-mistica.js +3 -3
  46. package/dist-es/community/advanced-data-card.js +195 -182
  47. package/dist-es/generated/mistica-icons/icon-subtract-circle-filled.js +101 -0
  48. package/dist-es/generated/mistica-icons/icon-subtract-circle-light.js +107 -0
  49. package/dist-es/generated/mistica-icons/icon-subtract-circle-regular.js +107 -0
  50. package/dist-es/generated/mistica-icons/icon-subtract-light.js +101 -0
  51. package/dist-es/generated/mistica-icons/icon-subtract-regular.js +101 -0
  52. package/dist-es/header.js +46 -48
  53. package/dist-es/index.js +1755 -1747
  54. package/dist-es/list.css-mistica.js +2 -2
  55. package/dist-es/list.js +242 -235
  56. package/dist-es/package-version.js +1 -1
  57. package/dist-es/skins/blau.js +14 -0
  58. package/dist-es/skins/defaults.js +14 -0
  59. package/dist-es/skins/movistar-legacy.js +14 -0
  60. package/dist-es/skins/movistar.js +14 -0
  61. package/dist-es/skins/o2.js +14 -0
  62. package/dist-es/skins/telefonica.js +16 -2
  63. package/dist-es/skins/vivo-new.js +15 -1
  64. package/dist-es/skins/vivo.js +14 -0
  65. package/dist-es/style.css +1 -1
  66. package/dist-es/tabs.css-mistica.js +8 -9
  67. package/dist-es/tabs.js +49 -43
  68. package/dist-es/theme-context-provider.js +63 -61
  69. package/dist-es/title.js +58 -38
  70. package/package.json +5 -2
package/dist-es/card.js CHANGED
@@ -77,51 +77,51 @@ function _object_without_properties_loose(source, excluded) {
77
77
  }
78
78
  return target;
79
79
  }
80
- import { jsx as e, jsxs as n, Fragment as Ae } from "react/jsx-runtime";
81
- import * as g from "react";
82
- import be from "./tag.js";
83
- import N from "./stack.js";
80
+ import { jsx as e, jsxs as n, Fragment as Se } from "react/jsx-runtime";
81
+ import * as N from "react";
82
+ import we from "./tag.js";
83
+ import C from "./stack.js";
84
84
  import B from "./box.js";
85
- import { Text2 as b, Text6 as Se, Text3 as we, Text as ae } from "./text.js";
86
- import { Boxed as Y, InternalBoxed as re } from "./boxed.js";
87
- import Z from "./button-group.js";
88
- import q, { MediaBorderRadiusProvider as Ie } from "./image.js";
89
- import { BaseTouchable as D } from "./touchable.js";
90
- import { vars as x } from "./skins/skin-contract.css-mistica.js";
91
- import { cardContainer as Be, vars as Re, touchableContainer as z, boxed as G, touchable as O, touchableMediaCardOverlay as Me, mediaCard as J, mediaCardContent as De, mediaCardIcon as ze, touchableNakedMediaOverlay as ie, circularMediaOverlay as ne, nakedCardContent as te, touchableCardOverlay as K, dataCard as Oe, actions as se, snapCard as He, displayCardContainer as le, displayCardBackground as oe, displayCardContent as de, displayCardGradient as ce, touchableCardOverlayMedia as he, cardActionIconButton as _e, touchableCardOverlayInverse as me, cardAction as Ee, cardActionInverse as We, cardActionMedia as Ge } from "./card.css-mistica.js";
92
- import { useTheme as L } from "./hooks.js";
93
- import { sprinkles as pe } from "./sprinkles.css-mistica.js";
94
- import Pe from "./icon-button.js";
85
+ import { Text2 as x, Text6 as Be, Text3 as Ie, Text as ne } from "./text.js";
86
+ import { Boxed as K, InternalBoxed as te } from "./boxed.js";
87
+ import Q from "./button-group.js";
88
+ import $, { MediaBorderRadiusProvider as Re } from "./image.js";
89
+ import { BaseTouchable as z } from "./touchable.js";
90
+ import { vars as y } from "./skins/skin-contract.css-mistica.js";
91
+ import { cardContainer as Me, vars as De, touchableContainer as O, boxed as j, touchable as H, touchableMediaCardOverlay as ze, mediaCard as V, mediaCardContent as Oe, mediaCardIcon as se, touchableNakedMediaOverlay as le, circularMediaOverlay as oe, nakedCardContent as de, touchableCardOverlay as Y, dataCard as He, actions as ce, snapCard as _e, displayCardContainer as he, displayCardBackground as me, displayCardContent as pe, displayCardGradient as ue, cardActionIconButton as Ee, touchableCardOverlayInverse as ee, touchableCardOverlayMedia as fe, cardAction as We, cardActionInverse as Ge, cardActionMedia as Pe } from "./card.css-mistica.js";
92
+ import { useTheme as Z } from "./hooks.js";
93
+ import { sprinkles as ve } from "./sprinkles.css-mistica.js";
94
+ import ke from "./icon-button.js";
95
95
  import Xe from "./generated/mistica-icons/icon-close-regular.js";
96
96
  import je from "./generated/mistica-icons/icon-pause-filled.js";
97
97
  import Fe from "./generated/mistica-icons/icon-play-filled.js";
98
- import { combineRefs as ke } from "./utils/common.js";
99
- import Le from "./spinner.js";
100
- import Ue from "./video.js";
101
- import { useIsInverseVariant as ue, ThemeVariant as fe } from "./theme-variant-context.js";
102
- import Q from "classnames";
103
- import { assignInlineVars as Ye } from "@vanilla-extract/dynamic";
104
- import Ze from "./inline.js";
105
- import { getPrefixedDataAttributes as qe } from "./utils/dom.js";
106
- const ye = (a, r)=>{
107
- const { texts: i } = L(), l = a ? [
108
- ...a
98
+ import { combineRefs as Le } from "./utils/common.js";
99
+ import Ue from "./spinner.js";
100
+ import Ye from "./video.js";
101
+ import { useIsInverseVariant as ye, ThemeVariant as ge } from "./theme-variant-context.js";
102
+ import re from "classnames";
103
+ import { assignInlineVars as Ze } from "@vanilla-extract/dynamic";
104
+ import qe from "./inline.js";
105
+ import { getPrefixedDataAttributes as Je } from "./utils/dom.js";
106
+ const Ne = (r, a)=>{
107
+ const { texts: i } = Z(), l = r ? [
108
+ ...r
109
109
  ] : [];
110
- return r && l.push({
110
+ return a && l.push({
111
111
  label: i.closeButtonLabel,
112
- onPress: r,
112
+ onPress: a,
113
113
  Icon: Xe
114
114
  }), l;
115
- }, ve = 48, P = (param)=>{
116
- let { actions: a , onClose: r , type: i = "default" } = param;
117
- const l = ye(a, r), m = l.length > 0, s = {
118
- default: x.colors.neutralHigh,
119
- inverse: x.colors.inverse,
115
+ }, Ce = 48, F = (param)=>{
116
+ let { actions: r , onClose: a , type: i = "default" } = param;
117
+ const l = Ne(r, a), m = l.length > 0, s = {
118
+ default: y.colors.neutralHigh,
119
+ inverse: y.colors.inverse,
120
120
  media: "#000000"
121
121
  }, d = {
122
- default: Ee,
123
- inverse: We,
124
- media: Ge
122
+ default: We,
123
+ inverse: Ge,
124
+ media: Pe
125
125
  };
126
126
  return m ? /* @__PURE__ */ e("div", {
127
127
  style: {
@@ -131,23 +131,23 @@ const ye = (a, r)=>{
131
131
  zIndex: 3
132
132
  },
133
133
  children: /* @__PURE__ */ e("div", {
134
- className: pe({
134
+ className: ve({
135
135
  display: "flex"
136
136
  }),
137
137
  children: l.map((param, h)=>/* @__PURE__ */ {
138
- let { onPress: c , label: p , Icon: t , disabled: o = !1 } = param;
139
- return e(Pe, {
140
- disabled: o,
141
- size: ve,
138
+ let { onPress: c , label: p , Icon: o , disabled: t = !1 } = param;
139
+ return e(ke, {
140
+ disabled: t,
141
+ size: Ce,
142
142
  onPress: c,
143
143
  "aria-label": p,
144
- className: _e,
144
+ className: Ee,
145
145
  style: {
146
146
  display: "flex"
147
147
  },
148
148
  children: /* @__PURE__ */ e("div", {
149
149
  className: d[i],
150
- children: /* @__PURE__ */ e(t, {
150
+ children: /* @__PURE__ */ e(o, {
151
151
  color: s[i],
152
152
  size: 20
153
153
  })
@@ -155,34 +155,34 @@ const ye = (a, r)=>{
155
155
  }, h);
156
156
  })
157
157
  })
158
- }) : /* @__PURE__ */ e(Ae, {});
159
- }, Je = (a)=>a ? typeof a == "number" ? a : ({
158
+ }) : /* @__PURE__ */ e(Se, {});
159
+ }, Ke = (r)=>r ? typeof r == "number" ? r : ({
160
160
  "1:1": 1,
161
161
  "16:9": 16 / 9,
162
162
  "7:10": 7 / 10,
163
163
  "9:10": 9 / 10,
164
164
  auto: 0
165
- })[a] : 0, H = /*#__PURE__*/ g.forwardRef((param, p)=>{
166
- let { children: a , width: r = "100%" , height: i = "100%" , minWidth: l , aspectRatio: m , dataAttributes: s , className: d , "aria-label": c } = param;
167
- const t = Je(m);
168
- return /* @__PURE__ */ e("section", _object_spread_props(_object_spread({}, qe(s)), {
165
+ })[r] : 0, _ = /*#__PURE__*/ N.forwardRef((param, p)=>{
166
+ let { children: r , width: a = "100%" , height: i = "100%" , minWidth: l , aspectRatio: m , dataAttributes: s , className: d , "aria-label": c } = param;
167
+ const o = Ke(m);
168
+ return /* @__PURE__ */ e("section", _object_spread_props(_object_spread({}, Je(s)), {
169
169
  ref: p,
170
170
  "aria-label": c,
171
- className: Q(d, Be),
171
+ className: re(d, Me),
172
172
  style: _object_spread({
173
- width: r,
173
+ width: a,
174
174
  height: i,
175
175
  minWidth: l
176
- }, t ? Ye({
177
- [Re.aspectRatio]: String(t)
176
+ }, o ? Ze({
177
+ [De.aspectRatio]: String(o)
178
178
  }) : {}),
179
- children: a
179
+ children: r
180
180
  }));
181
- }), ge = (a)=>/* @__PURE__ */ e(q, {
181
+ }), Te = (r)=>/* @__PURE__ */ e($, {
182
182
  width: "100%",
183
183
  height: "100%",
184
- src: a !== null && a !== void 0 ? a : "//:0"
185
- }), Ke = {
184
+ src: r !== null && r !== void 0 ? r : "//:0"
185
+ }), Qe = {
186
186
  loading: {
187
187
  showSpinner: "loadingTimeout",
188
188
  play: "playing",
@@ -206,62 +206,62 @@ const ye = (a, r)=>{
206
206
  error: {
207
207
  reset: "loading"
208
208
  }
209
- }, Qe = (a, r)=>Ke[a][r] || a, $e = (param)=>/* @__PURE__ */ {
210
- let { color: a } = param;
211
- return e(Le, {
212
- color: a,
209
+ }, $e = (r, a)=>Qe[r][a] || r, Ve = (param)=>/* @__PURE__ */ {
210
+ let { color: r } = param;
211
+ return e(Ue, {
212
+ color: r,
213
213
  size: 16,
214
214
  delay: "0"
215
215
  });
216
- }, ee = (param)=>/* @__PURE__ */ {
217
- let { color: a } = param;
216
+ }, ie = (param)=>/* @__PURE__ */ {
217
+ let { color: r } = param;
218
218
  return e(je, {
219
- color: a,
219
+ color: r,
220
220
  size: 12
221
221
  });
222
- }, Ve = (param)=>/* @__PURE__ */ {
223
- let { color: a } = param;
222
+ }, er = (param)=>/* @__PURE__ */ {
223
+ let { color: r } = param;
224
224
  return e(Fe, {
225
- color: a,
225
+ color: r,
226
226
  size: 12
227
227
  });
228
- }, Ne = (a, r, i)=>{
229
- const { texts: l } = L(), m = g.useRef(null), [s, d] = g.useReducer(Qe, "loading");
230
- g.useEffect(()=>{
228
+ }, Ae = (r, a, i)=>{
229
+ const { texts: l } = Z(), m = N.useRef(null), [s, d] = N.useReducer($e, "loading");
230
+ N.useEffect(()=>{
231
231
  var h;
232
- const o = setTimeout(()=>d("showSpinner"), 2e3);
232
+ const t = setTimeout(()=>d("showSpinner"), 2e3);
233
233
  return (h = m.current) == null || h.load(), ()=>{
234
- clearTimeout(o), d("reset");
234
+ clearTimeout(t), d("reset");
235
235
  };
236
236
  }, [
237
- a
237
+ r
238
238
  ]);
239
- const c = g.useMemo(()=>a ? /* @__PURE__ */ e(Ue, {
240
- ref: ke(m, i),
241
- src: a,
239
+ const c = N.useMemo(()=>r ? /* @__PURE__ */ e(Ye, {
240
+ ref: Le(m, i),
241
+ src: r,
242
242
  width: "100%",
243
243
  height: "100%",
244
- poster: r,
244
+ poster: a,
245
245
  onError: ()=>d("fail"),
246
246
  onPause: ()=>d("pause"),
247
247
  onPlay: ()=>d("play")
248
248
  }) : void 0, [
249
249
  i,
250
- a,
251
- r
250
+ r,
251
+ a
252
252
  ]), p = ()=>{
253
- const o = m.current;
254
- o && (s === "loading" ? d("showSpinner") : s === "paused" ? o.play() : s === "playing" && o.pause());
253
+ const t = m.current;
254
+ t && (s === "loading" ? d("showSpinner") : s === "paused" ? t.play() : s === "playing" && t.pause());
255
255
  };
256
256
  if (s === "error") return {
257
257
  video: c
258
258
  };
259
- const t = {
259
+ const o = {
260
260
  Icon: {
261
- playing: ee,
262
- loading: ee,
263
- paused: Ve,
264
- loadingTimeout: $e
261
+ playing: ie,
262
+ loading: ie,
263
+ paused: er,
264
+ loadingTimeout: Ve
265
265
  }[s],
266
266
  onPress: p,
267
267
  label: {
@@ -274,16 +274,16 @@ const ye = (a, r)=>{
274
274
  };
275
275
  return {
276
276
  video: c,
277
- videoAction: t
277
+ videoAction: o
278
278
  };
279
- }, $ = (param)=>{
280
- let { headline: a , pretitle: r , pretitleLinesMax: i , title: l , titleLinesMax: m , subtitle: s , subtitleLinesMax: d , description: c , descriptionLinesMax: p , extra: t , button: o , buttonLink: h } = param;
281
- const { textPresets: f } = L(), y = ()=>a ? typeof a == "string" ? /* @__PURE__ */ e(be, {
279
+ }, ae = (param)=>{
280
+ let { headline: r , pretitle: a , pretitleLinesMax: i , title: l , titleLinesMax: m , subtitle: s , subtitleLinesMax: d , description: c , descriptionLinesMax: p , extra: o , button: t , buttonLink: h } = param;
281
+ const { textPresets: f } = Z(), v = ()=>r ? typeof r == "string" ? /* @__PURE__ */ e(we, {
282
282
  type: "promo",
283
- children: a
284
- }) : a : null;
283
+ children: r
284
+ }) : r : null;
285
285
  return /* @__PURE__ */ n("div", {
286
- className: pe({
286
+ className: ve({
287
287
  display: "flex",
288
288
  flex: 1,
289
289
  justifyContent: "space-between",
@@ -292,25 +292,25 @@ const ye = (a, r)=>{
292
292
  children: [
293
293
  /* @__PURE__ */ n("div", {
294
294
  children: [
295
- /* @__PURE__ */ n(N, {
295
+ /* @__PURE__ */ n(C, {
296
296
  space: 8,
297
297
  children: [
298
- (a || r || l || s) && /* @__PURE__ */ e("header", {
299
- children: /* @__PURE__ */ n(N, {
298
+ (r || a || l || s) && /* @__PURE__ */ e("header", {
299
+ children: /* @__PURE__ */ n(C, {
300
300
  space: 8,
301
301
  children: [
302
- y(),
303
- /* @__PURE__ */ n(N, {
302
+ v(),
303
+ /* @__PURE__ */ n(C, {
304
304
  space: 4,
305
305
  children: [
306
- r && /* @__PURE__ */ e(b, {
306
+ a && /* @__PURE__ */ e(x, {
307
307
  truncate: i,
308
308
  as: "div",
309
309
  regular: !0,
310
310
  hyphens: "auto",
311
- children: r
311
+ children: a
312
312
  }),
313
- /* @__PURE__ */ e(ae, {
313
+ /* @__PURE__ */ e(ne, {
314
314
  mobileSize: 18,
315
315
  mobileLineHeight: "24px",
316
316
  desktopSize: 20,
@@ -321,7 +321,7 @@ const ye = (a, r)=>{
321
321
  hyphens: "auto",
322
322
  children: l
323
323
  }),
324
- /* @__PURE__ */ e(b, {
324
+ /* @__PURE__ */ e(x, {
325
325
  truncate: d,
326
326
  as: "div",
327
327
  regular: !0,
@@ -333,33 +333,34 @@ const ye = (a, r)=>{
333
333
  ]
334
334
  })
335
335
  }),
336
- c && /* @__PURE__ */ e(b, {
336
+ c && /* @__PURE__ */ e(x, {
337
337
  truncate: p,
338
338
  as: "p",
339
339
  regular: !0,
340
- color: x.colors.textSecondary,
340
+ color: y.colors.textSecondary,
341
341
  hyphens: "auto",
342
342
  children: c
343
343
  })
344
344
  ]
345
345
  }),
346
- t && /* @__PURE__ */ e("div", {
347
- children: t
346
+ o && /* @__PURE__ */ e("div", {
347
+ children: o
348
348
  })
349
349
  ]
350
350
  }),
351
- (o || h) && /* @__PURE__ */ e("div", {
352
- className: se,
353
- children: /* @__PURE__ */ e(Z, {
354
- primaryButton: o,
351
+ (t || h) && /* @__PURE__ */ e("div", {
352
+ className: ce,
353
+ children: /* @__PURE__ */ e(Q, {
354
+ primaryButton: t,
355
355
  link: h
356
356
  })
357
357
  })
358
358
  ]
359
359
  });
360
- }, Ia = /*#__PURE__*/ g.forwardRef((_param, v)=>{
361
- var { media: a , headline: r , pretitle: i , pretitleLinesMax: l , subtitle: m , subtitleLinesMax: s , title: d , titleLinesMax: c , description: p , icon: t , descriptionLinesMax: o , extra: h , actions: f , button: y , buttonLink: S , dataAttributes: C , "aria-label": A , onClose: u } = _param, T = _object_without_properties(_param, [
360
+ }, Ir = /*#__PURE__*/ N.forwardRef((_param, I)=>{
361
+ var { media: r , icon: a , headline: i , pretitle: l , pretitleLinesMax: m , subtitle: s , subtitleLinesMax: d , title: c , titleLinesMax: p , description: o , descriptionLinesMax: t , extra: h , actions: f , button: v , buttonLink: S , dataAttributes: A , "aria-label": T , onClose: g } = _param, u = _object_without_properties(_param, [
362
362
  "media",
363
+ "icon",
363
364
  "headline",
364
365
  "pretitle",
365
366
  "pretitleLinesMax",
@@ -368,7 +369,6 @@ const ye = (a, r)=>{
368
369
  "title",
369
370
  "titleLinesMax",
370
371
  "description",
371
- "icon",
372
372
  "descriptionLinesMax",
373
373
  "extra",
374
374
  "actions",
@@ -378,54 +378,54 @@ const ye = (a, r)=>{
378
378
  "aria-label",
379
379
  "onClose"
380
380
  ]);
381
- const w = T.href || T.to || T.onPress;
382
- return /* @__PURE__ */ n(H, {
381
+ const b = u.href || u.to || u.onPress;
382
+ return /* @__PURE__ */ n(_, {
383
383
  dataAttributes: _object_spread({
384
384
  "component-name": "MediaCard"
385
- }, C),
386
- ref: v,
387
- "aria-label": A,
388
- className: z,
385
+ }, A),
386
+ ref: I,
387
+ "aria-label": T,
388
+ className: O,
389
389
  children: [
390
- /* @__PURE__ */ e(Y, {
391
- className: G,
390
+ /* @__PURE__ */ e(K, {
391
+ className: j,
392
392
  width: "100%",
393
393
  height: "100%",
394
- children: /* @__PURE__ */ n(D, _object_spread_props(_object_spread({
394
+ children: /* @__PURE__ */ n(z, _object_spread_props(_object_spread({
395
395
  maybe: !0
396
- }, T), {
397
- className: O,
398
- "aria-label": A,
396
+ }, u), {
397
+ className: H,
398
+ "aria-label": T,
399
399
  children: [
400
- w && /* @__PURE__ */ e("div", {
401
- className: Me
400
+ b && /* @__PURE__ */ e("div", {
401
+ className: ze
402
402
  }),
403
403
  /* @__PURE__ */ n("div", {
404
- className: J,
404
+ className: V,
405
405
  children: [
406
- /* @__PURE__ */ e(Ie, {
406
+ /* @__PURE__ */ e(Re, {
407
407
  value: !1,
408
- children: a
408
+ children: r
409
409
  }),
410
410
  /* @__PURE__ */ e("div", {
411
- className: De,
412
- children: /* @__PURE__ */ e($, {
413
- headline: r,
414
- pretitle: i,
415
- pretitleLinesMax: l,
416
- title: d,
417
- titleLinesMax: c,
418
- subtitle: m,
419
- subtitleLinesMax: s,
420
- description: p,
421
- descriptionLinesMax: o,
411
+ className: Oe,
412
+ children: /* @__PURE__ */ e(ae, {
413
+ headline: i,
414
+ pretitle: l,
415
+ pretitleLinesMax: m,
416
+ title: c,
417
+ titleLinesMax: p,
418
+ subtitle: s,
419
+ subtitleLinesMax: d,
420
+ description: o,
421
+ descriptionLinesMax: t,
422
422
  extra: h,
423
- button: y,
423
+ button: v,
424
424
  buttonLink: S
425
425
  })
426
426
  }),
427
- t && /* @__PURE__ */ e(B, {
428
- className: ze,
427
+ a && /* @__PURE__ */ e(B, {
428
+ className: se,
429
429
  paddingLeft: {
430
430
  mobile: 16,
431
431
  desktop: 24
@@ -434,23 +434,24 @@ const ye = (a, r)=>{
434
434
  mobile: 16,
435
435
  desktop: 24
436
436
  },
437
- children: t
437
+ children: a
438
438
  })
439
439
  ]
440
440
  })
441
441
  ]
442
442
  }))
443
443
  }),
444
- /* @__PURE__ */ e(P, {
445
- onClose: u,
444
+ /* @__PURE__ */ e(F, {
445
+ onClose: g,
446
446
  actions: f,
447
447
  type: "media"
448
448
  })
449
449
  ]
450
450
  });
451
- }), Ba = /*#__PURE__*/ g.forwardRef((_param, T)=>{
452
- var { media: a , headline: r , pretitle: i , pretitleLinesMax: l , subtitle: m , subtitleLinesMax: s , title: d , titleLinesMax: c , description: p , descriptionLinesMax: t , extra: o , actions: h , button: f , buttonLink: y , dataAttributes: S , "aria-label": C , onClose: A } = _param, u = _object_without_properties(_param, [
451
+ }), Rr = /*#__PURE__*/ N.forwardRef((_param, I)=>{
452
+ var { media: r , icon: a , headline: i , pretitle: l , pretitleLinesMax: m , subtitle: s , subtitleLinesMax: d , title: c , titleLinesMax: p , description: o , descriptionLinesMax: t , extra: h , actions: f , button: v , buttonLink: S , dataAttributes: A , "aria-label": T , onClose: g } = _param, u = _object_without_properties(_param, [
453
453
  "media",
454
+ "icon",
454
455
  "headline",
455
456
  "pretitle",
456
457
  "pretitleLinesMax",
@@ -468,65 +469,77 @@ const ye = (a, r)=>{
468
469
  "aria-label",
469
470
  "onClose"
470
471
  ]);
471
- const v = u.href || u.to || u.onPress, w = a && a.type === q && a.props.circular;
472
- return /* @__PURE__ */ n(H, {
473
- ref: T,
472
+ const b = u.href || u.to || u.onPress, M = r && r.type === $ && r.props.circular;
473
+ return /* @__PURE__ */ n(_, {
474
+ ref: I,
474
475
  dataAttributes: _object_spread({
475
476
  "component-name": "NakedCard"
476
- }, S),
477
- "aria-label": C,
478
- className: v ? z : void 0,
477
+ }, A),
478
+ "aria-label": T,
479
+ className: b ? O : void 0,
479
480
  children: [
480
- /* @__PURE__ */ e(D, _object_spread_props(_object_spread({
481
+ /* @__PURE__ */ e(z, _object_spread_props(_object_spread({
481
482
  maybe: !0
482
483
  }, u), {
483
- className: O,
484
- "aria-label": C,
484
+ className: H,
485
+ "aria-label": T,
485
486
  children: /* @__PURE__ */ n("div", {
486
- className: J,
487
+ className: V,
487
488
  children: [
488
489
  /* @__PURE__ */ n("div", {
489
490
  style: {
490
491
  position: "relative"
491
492
  },
492
493
  children: [
493
- v && /* @__PURE__ */ e("div", {
494
- className: Q(ie, {
495
- [ne]: w
494
+ b && /* @__PURE__ */ e("div", {
495
+ className: re(le, {
496
+ [oe]: M
496
497
  })
497
498
  }),
498
- a
499
+ r
499
500
  ]
500
501
  }),
501
502
  /* @__PURE__ */ e("div", {
502
- className: te,
503
- children: /* @__PURE__ */ e($, {
504
- headline: r,
505
- pretitle: i,
506
- pretitleLinesMax: l,
507
- title: d,
508
- titleLinesMax: c,
509
- subtitle: m,
510
- subtitleLinesMax: s,
511
- description: p,
503
+ className: de,
504
+ children: /* @__PURE__ */ e(ae, {
505
+ headline: i,
506
+ pretitle: l,
507
+ pretitleLinesMax: m,
508
+ title: c,
509
+ titleLinesMax: p,
510
+ subtitle: s,
511
+ subtitleLinesMax: d,
512
+ description: o,
512
513
  descriptionLinesMax: t,
513
- extra: o,
514
- button: f,
515
- buttonLink: y
514
+ extra: h,
515
+ button: v,
516
+ buttonLink: S
516
517
  })
518
+ }),
519
+ a && /* @__PURE__ */ e(B, {
520
+ className: se,
521
+ paddingLeft: {
522
+ mobile: 16,
523
+ desktop: 24
524
+ },
525
+ paddingTop: {
526
+ mobile: 16,
527
+ desktop: 24
528
+ },
529
+ children: a
517
530
  })
518
531
  ]
519
532
  })
520
533
  })),
521
- /* @__PURE__ */ e(P, {
522
- onClose: A,
523
- actions: h,
534
+ /* @__PURE__ */ e(F, {
535
+ onClose: g,
536
+ actions: f,
524
537
  type: "media"
525
538
  })
526
539
  ]
527
540
  });
528
- }), Ra = /*#__PURE__*/ g.forwardRef((_param, h)=>{
529
- var { media: a , title: r , titleLinesMax: i , subtitle: l , subtitleLinesMax: m , description: s , descriptionLinesMax: d , extra: c , dataAttributes: p , "aria-label": t } = _param, o = _object_without_properties(_param, [
541
+ }), Mr = /*#__PURE__*/ N.forwardRef((_param, h)=>{
542
+ var { media: r , title: a , titleLinesMax: i , subtitle: l , subtitleLinesMax: m , description: s , descriptionLinesMax: d , extra: c , dataAttributes: p , "aria-label": o } = _param, t = _object_without_properties(_param, [
530
543
  "media",
531
544
  "title",
532
545
  "titleLinesMax",
@@ -538,21 +551,21 @@ const ye = (a, r)=>{
538
551
  "dataAttributes",
539
552
  "aria-label"
540
553
  ]);
541
- const f = o.href || o.to || o.onPress, y = a && a.type === q && a.props.circular;
542
- return /* @__PURE__ */ e(H, {
554
+ const f = t.href || t.to || t.onPress, v = r && r.type === $ && r.props.circular;
555
+ return /* @__PURE__ */ e(_, {
543
556
  ref: h,
544
557
  dataAttributes: _object_spread({
545
558
  "component-name": "SmallNakedCard"
546
559
  }, p),
547
- "aria-label": t,
548
- className: f ? z : void 0,
549
- children: /* @__PURE__ */ e(D, _object_spread_props(_object_spread({
560
+ "aria-label": o,
561
+ className: f ? O : void 0,
562
+ children: /* @__PURE__ */ e(z, _object_spread_props(_object_spread({
550
563
  maybe: !0
551
- }, o), {
552
- className: O,
553
- "aria-label": t,
564
+ }, t), {
565
+ className: H,
566
+ "aria-label": o,
554
567
  children: /* @__PURE__ */ n("div", {
555
- className: J,
568
+ className: V,
556
569
  children: [
557
570
  /* @__PURE__ */ n("div", {
558
571
  style: {
@@ -560,29 +573,29 @@ const ye = (a, r)=>{
560
573
  },
561
574
  children: [
562
575
  f && /* @__PURE__ */ e("div", {
563
- className: Q(ie, {
564
- [ne]: y
576
+ className: re(le, {
577
+ [oe]: v
565
578
  })
566
579
  }),
567
- a
580
+ r
568
581
  ]
569
582
  }),
570
583
  /* @__PURE__ */ n("div", {
571
- className: te,
584
+ className: de,
572
585
  children: [
573
586
  /* @__PURE__ */ n("div", {
574
587
  children: [
575
- /* @__PURE__ */ n(N, {
588
+ /* @__PURE__ */ n(C, {
576
589
  space: 8,
577
590
  children: [
578
- r && /* @__PURE__ */ e(b, {
591
+ a && /* @__PURE__ */ e(x, {
579
592
  truncate: i,
580
593
  as: "h3",
581
594
  regular: !0,
582
595
  hyphens: "auto",
583
- children: r
596
+ children: a
584
597
  }),
585
- l && /* @__PURE__ */ e(b, {
598
+ l && /* @__PURE__ */ e(x, {
586
599
  truncate: m,
587
600
  regular: !0,
588
601
  as: "p",
@@ -591,11 +604,11 @@ const ye = (a, r)=>{
591
604
  })
592
605
  ]
593
606
  }),
594
- s && /* @__PURE__ */ e(b, {
607
+ s && /* @__PURE__ */ e(x, {
595
608
  truncate: d,
596
609
  regular: !0,
597
610
  as: "p",
598
- color: x.colors.textSecondary,
611
+ color: y.colors.textSecondary,
599
612
  hyphens: "auto",
600
613
  children: s
601
614
  })
@@ -610,8 +623,8 @@ const ye = (a, r)=>{
610
623
  })
611
624
  }))
612
625
  });
613
- }), Ma = /*#__PURE__*/ g.forwardRef((_param, T)=>{
614
- var { icon: a , headline: r , pretitle: i , pretitleLinesMax: l , title: m , titleLinesMax: s , subtitle: d , subtitleLinesMax: c , description: p , descriptionLinesMax: t , extra: o , actions: h , button: f , buttonLink: y , dataAttributes: S , "aria-label": C , onClose: A } = _param, u = _object_without_properties(_param, [
626
+ }), Dr = /*#__PURE__*/ N.forwardRef((_param, I)=>{
627
+ var { icon: r , headline: a , pretitle: i , pretitleLinesMax: l , title: m , titleLinesMax: s , subtitle: d , subtitleLinesMax: c , description: p , descriptionLinesMax: o , extra: t , actions: h , button: f , buttonLink: v , dataAttributes: S , "aria-label": A , onClose: T , aspectRatio: g } = _param, u = _object_without_properties(_param, [
615
628
  "icon",
616
629
  "headline",
617
630
  "pretitle",
@@ -628,46 +641,48 @@ const ye = (a, r)=>{
628
641
  "buttonLink",
629
642
  "dataAttributes",
630
643
  "aria-label",
631
- "onClose"
644
+ "onClose",
645
+ "aspectRatio"
632
646
  ]);
633
- const v = !!a, w = u.href || u.to || u.onPress, _ = ye(h, A), E = {
647
+ const b = !!r, M = u.href || u.to || u.onPress, D = Ne(h, T), E = {
634
648
  marginRight: -16,
635
649
  marginTop: -24,
636
- width: ve * _.length
650
+ width: Ce * D.length
637
651
  };
638
- return /* @__PURE__ */ n(H, {
652
+ return /* @__PURE__ */ n(_, {
639
653
  dataAttributes: _object_spread({
640
654
  "component-name": "DataCard"
641
655
  }, S),
642
- ref: T,
643
- "aria-label": C,
644
- className: z,
656
+ ref: I,
657
+ "aria-label": A,
658
+ className: O,
659
+ aspectRatio: g,
645
660
  children: [
646
- /* @__PURE__ */ e(Y, {
647
- className: G,
661
+ /* @__PURE__ */ e(K, {
662
+ className: j,
648
663
  width: "100%",
649
- height: "100%",
650
- children: /* @__PURE__ */ n(D, _object_spread_props(_object_spread({
664
+ minHeight: "100%",
665
+ children: /* @__PURE__ */ n(z, _object_spread_props(_object_spread({
651
666
  maybe: !0
652
667
  }, u), {
653
- className: O,
654
- "aria-label": C,
668
+ className: H,
669
+ "aria-label": A,
655
670
  children: [
656
- w && /* @__PURE__ */ e("div", {
657
- className: K
671
+ M && /* @__PURE__ */ e("div", {
672
+ className: Y
658
673
  }),
659
674
  /* @__PURE__ */ n("div", {
660
- className: Oe,
675
+ className: He,
661
676
  children: [
662
- /* @__PURE__ */ n(Ze, {
677
+ /* @__PURE__ */ n(qe, {
663
678
  space: 0,
664
679
  children: [
665
- /* @__PURE__ */ n(N, {
680
+ /* @__PURE__ */ n(C, {
666
681
  space: 16,
667
682
  children: [
668
- v ? a : null,
669
- /* @__PURE__ */ e($, {
670
- headline: r,
683
+ b ? r : null,
684
+ /* @__PURE__ */ e(ae, {
685
+ headline: a,
671
686
  pretitle: i,
672
687
  pretitleLinesMax: l,
673
688
  title: m,
@@ -675,23 +690,23 @@ const ye = (a, r)=>{
675
690
  subtitle: d,
676
691
  subtitleLinesMax: c,
677
692
  description: p,
678
- descriptionLinesMax: t
693
+ descriptionLinesMax: o
679
694
  })
680
695
  ]
681
696
  }),
682
- !v && /* @__PURE__ */ e("div", {
697
+ !b && /* @__PURE__ */ e("div", {
683
698
  style: E
684
699
  })
685
700
  ]
686
701
  }),
687
- o && /* @__PURE__ */ e("div", {
688
- children: o
702
+ t && /* @__PURE__ */ e("div", {
703
+ children: t
689
704
  }),
690
- (f || y) && /* @__PURE__ */ e("div", {
691
- className: se,
692
- children: /* @__PURE__ */ e(Z, {
705
+ (f || v) && /* @__PURE__ */ e("div", {
706
+ className: ce,
707
+ children: /* @__PURE__ */ e(Q, {
693
708
  primaryButton: f,
694
- link: y
709
+ link: v
695
710
  })
696
711
  })
697
712
  ]
@@ -699,15 +714,15 @@ const ye = (a, r)=>{
699
714
  ]
700
715
  }))
701
716
  }),
702
- /* @__PURE__ */ e(P, {
703
- onClose: A,
717
+ /* @__PURE__ */ e(F, {
718
+ onClose: T,
704
719
  actions: h,
705
720
  type: "default"
706
721
  })
707
722
  ]
708
723
  });
709
- }), Da = /*#__PURE__*/ g.forwardRef((_param, o)=>{
710
- var { icon: a , title: r , titleLinesMax: i , subtitle: l , subtitleLinesMax: m , dataAttributes: s , "aria-label": d , extra: c , isInverse: p = !1 } = _param, t = _object_without_properties(_param, [
724
+ }), zr = /*#__PURE__*/ N.forwardRef((_param, h)=>{
725
+ var { icon: r , title: a , titleLinesMax: i , subtitle: l , subtitleLinesMax: m , dataAttributes: s , "aria-label": d , extra: c , isInverse: p = !1 , aspectRatio: o } = _param, t = _object_without_properties(_param, [
711
726
  "icon",
712
727
  "title",
713
728
  "titleLinesMax",
@@ -716,52 +731,54 @@ const ye = (a, r)=>{
716
731
  "dataAttributes",
717
732
  "aria-label",
718
733
  "extra",
719
- "isInverse"
734
+ "isInverse",
735
+ "aspectRatio"
720
736
  ]);
721
- const h = t.href || t.to || t.onPress, f = p ? me : K;
722
- return /* @__PURE__ */ e(H, {
737
+ const f = t.href || t.to || t.onPress, v = p ? ee : Y;
738
+ return /* @__PURE__ */ e(_, {
723
739
  dataAttributes: _object_spread({
724
740
  "component-name": "SnapCard"
725
741
  }, s),
726
- ref: o,
727
- className: z,
728
- children: /* @__PURE__ */ e(Y, {
729
- className: G,
742
+ ref: h,
743
+ className: O,
744
+ aspectRatio: o,
745
+ children: /* @__PURE__ */ e(K, {
746
+ className: j,
730
747
  isInverse: p,
731
748
  width: "100%",
732
- height: "100%",
733
- children: /* @__PURE__ */ n(D, _object_spread_props(_object_spread({
749
+ minHeight: "100%",
750
+ children: /* @__PURE__ */ n(z, _object_spread_props(_object_spread({
734
751
  maybe: !0
735
752
  }, t), {
736
- className: O,
753
+ className: H,
737
754
  "aria-label": d,
738
755
  children: [
739
- h && /* @__PURE__ */ e("div", {
740
- className: f
756
+ f && /* @__PURE__ */ e("div", {
757
+ className: v
741
758
  }),
742
759
  /* @__PURE__ */ n("section", {
743
- className: He,
760
+ className: _e,
744
761
  children: [
745
762
  /* @__PURE__ */ n("div", {
746
763
  children: [
747
- a && /* @__PURE__ */ e(B, {
764
+ r && /* @__PURE__ */ e(B, {
748
765
  paddingBottom: 16,
749
- children: a
766
+ children: r
750
767
  }),
751
- /* @__PURE__ */ n(N, {
768
+ /* @__PURE__ */ n(C, {
752
769
  space: 4,
753
770
  children: [
754
- r && /* @__PURE__ */ e(b, {
771
+ a && /* @__PURE__ */ e(x, {
755
772
  truncate: i,
756
773
  as: "h3",
757
774
  regular: !0,
758
775
  hyphens: "auto",
759
- children: r
776
+ children: a
760
777
  }),
761
- l && /* @__PURE__ */ e(b, {
778
+ l && /* @__PURE__ */ e(x, {
762
779
  truncate: m,
763
780
  regular: !0,
764
- color: x.colors.textSecondary,
781
+ color: y.colors.textSecondary,
765
782
  as: "p",
766
783
  hyphens: "auto",
767
784
  children: l
@@ -779,8 +796,8 @@ const ye = (a, r)=>{
779
796
  }))
780
797
  })
781
798
  });
782
- }), ea = 264, Ce = /*#__PURE__*/ g.forwardRef((_param, I)=>{
783
- var { isInverse: a , backgroundImage: r , backgroundVideo: i , backgroundVideoRef: l , poster: m , icon: s , headline: d , pretitle: c , pretitleLinesMax: p , title: t , titleLinesMax: o , description: h , descriptionLinesMax: f , extra: y , button: S , secondaryButton: C , onClose: A , actions: u , buttonLink: T , dataAttributes: v , width: w , height: _ , aspectRatio: E , "aria-label": W } = _param, R = _object_without_properties(_param, [
799
+ }), rr = 264, be = /*#__PURE__*/ N.forwardRef((_param, q)=>{
800
+ var { isInverse: r , backgroundImage: a , backgroundVideo: i , backgroundVideoRef: l , poster: m , icon: s , headline: d , pretitle: c , pretitleLinesMax: p , title: o , titleLinesMax: t , description: h , descriptionLinesMax: f , extra: v , button: S , secondaryButton: A , onClose: T , actions: g , buttonLink: u , dataAttributes: I , width: b , height: M , aspectRatio: D , "aria-label": E } = _param, W = _object_without_properties(_param, [
784
801
  "isInverse",
785
802
  "backgroundImage",
786
803
  "backgroundVideo",
@@ -806,121 +823,121 @@ const ye = (a, r)=>{
806
823
  "aspectRatio",
807
824
  "aria-label"
808
825
  ]);
809
- const X = ge(r), { video: j , videoAction: F } = Ne(i, m, l);
810
- i && (u = F ? [
811
- F
826
+ const L = Te(a), { video: P , videoAction: R } = Ae(i, m, l);
827
+ i && (g = R ? [
828
+ R
812
829
  ] : []);
813
- const k = ue(), M = !!r || !!i, U = M ? "0 0 16px rgba(0,0,0,0.4)" : void 0, V = (u == null ? void 0 : u.length) || A, Te = R.href || R.to || R.onPress, xe = r || i ? he : a ? me : K;
814
- return /* @__PURE__ */ n(H, {
815
- dataAttributes: v,
816
- ref: I,
817
- width: w,
818
- height: _,
819
- aspectRatio: E,
820
- "aria-label": W,
821
- minWidth: ea,
822
- className: z,
830
+ const k = ye(), w = !!a || !!i, X = w ? "0 0 16px rgba(0,0,0,0.4)" : void 0, U = (g == null ? void 0 : g.length) || T, G = W.href || W.to || W.onPress, J = a || i ? fe : r ? ee : Y;
831
+ return /* @__PURE__ */ n(_, {
832
+ dataAttributes: I,
833
+ ref: q,
834
+ width: b,
835
+ height: M,
836
+ aspectRatio: D,
837
+ "aria-label": E,
838
+ minWidth: rr,
839
+ className: O,
823
840
  children: [
824
- /* @__PURE__ */ e(re, {
825
- borderRadius: x.borderRadii.legacyDisplay,
826
- className: G,
841
+ /* @__PURE__ */ e(te, {
842
+ borderRadius: y.borderRadii.legacyDisplay,
843
+ className: j,
827
844
  width: "100%",
828
845
  minHeight: "100%",
829
- isInverse: a,
830
- background: r || i ? k ? x.colors.backgroundContainerBrandOverInverse : x.colors.backgroundContainer : void 0,
831
- children: /* @__PURE__ */ n(D, _object_spread_props(_object_spread({
846
+ isInverse: r,
847
+ background: a || i ? k ? y.colors.backgroundContainerBrandOverInverse : y.colors.backgroundContainer : void 0,
848
+ children: /* @__PURE__ */ n(z, _object_spread_props(_object_spread({
832
849
  maybe: !0
833
- }, R), {
834
- className: O,
835
- "aria-label": W,
850
+ }, W), {
851
+ className: H,
852
+ "aria-label": E,
836
853
  children: [
837
- Te && /* @__PURE__ */ e("div", {
838
- className: xe
854
+ G && /* @__PURE__ */ e("div", {
855
+ className: J
839
856
  }),
840
857
  /* @__PURE__ */ n("div", {
841
- className: le,
858
+ className: he,
842
859
  children: [
843
- /* @__PURE__ */ e(fe, {
860
+ /* @__PURE__ */ e(ge, {
844
861
  isInverse: k,
845
862
  children: /* @__PURE__ */ e("div", {
846
- className: oe,
847
- children: i ? j : r ? X : void 0
863
+ className: me,
864
+ children: i ? P : a ? L : void 0
848
865
  })
849
866
  }),
850
867
  /* @__PURE__ */ n("div", {
851
- className: de,
868
+ className: pe,
852
869
  style: {
853
- paddingTop: M && !s && !V && !i ? 0 : 24
870
+ paddingTop: w && !s && !U && !i ? 0 : 24
854
871
  },
855
872
  children: [
856
873
  s ? /* @__PURE__ */ e(B, {
857
- paddingBottom: M ? 0 : 40,
874
+ paddingBottom: w ? 0 : 40,
858
875
  paddingX: 24,
859
876
  children: s
860
877
  }) : /* @__PURE__ */ e(B, {
861
- paddingBottom: V || i ? M ? 24 : 64 : 0
878
+ paddingBottom: U || i ? w ? 24 : 64 : 0
862
879
  }),
863
880
  /* @__PURE__ */ e(B, {
864
881
  paddingX: 24,
865
- paddingTop: M ? 40 : 0,
882
+ paddingTop: w ? 40 : 0,
866
883
  paddingBottom: 24,
867
- className: M ? ce : void 0,
868
- children: /* @__PURE__ */ n(N, {
884
+ className: w ? ue : void 0,
885
+ children: /* @__PURE__ */ n(C, {
869
886
  space: 24,
870
887
  children: [
871
888
  /* @__PURE__ */ n("div", {
872
889
  children: [
873
- /* @__PURE__ */ n(N, {
890
+ /* @__PURE__ */ n(C, {
874
891
  space: 8,
875
892
  children: [
876
- (d || c || t) && /* @__PURE__ */ e("header", {
877
- children: /* @__PURE__ */ n(N, {
893
+ (d || c || o) && /* @__PURE__ */ e("header", {
894
+ children: /* @__PURE__ */ n(C, {
878
895
  space: 16,
879
896
  children: [
880
897
  d,
881
- /* @__PURE__ */ n(N, {
898
+ /* @__PURE__ */ n(C, {
882
899
  space: 4,
883
900
  children: [
884
- c && /* @__PURE__ */ e(b, {
901
+ c && /* @__PURE__ */ e(x, {
885
902
  forceMobileSizes: !0,
886
903
  truncate: p,
887
904
  as: "div",
888
905
  regular: !0,
889
- textShadow: U,
906
+ textShadow: X,
890
907
  children: c
891
908
  }),
892
- /* @__PURE__ */ e(Se, {
909
+ /* @__PURE__ */ e(Be, {
893
910
  forceMobileSizes: !0,
894
- truncate: o,
911
+ truncate: t,
895
912
  as: "h3",
896
- textShadow: U,
913
+ textShadow: X,
897
914
  hyphens: "auto",
898
- children: t
915
+ children: o
899
916
  })
900
917
  ]
901
918
  })
902
919
  ]
903
920
  })
904
921
  }),
905
- h && /* @__PURE__ */ e(we, {
922
+ h && /* @__PURE__ */ e(Ie, {
906
923
  forceMobileSizes: !0,
907
924
  truncate: f,
908
925
  as: "p",
909
926
  regular: !0,
910
- color: M ? x.colors.textPrimary : x.colors.textSecondary,
911
- textShadow: U,
927
+ color: w ? y.colors.textPrimary : y.colors.textSecondary,
928
+ textShadow: X,
912
929
  hyphens: "auto",
913
930
  children: h
914
931
  })
915
932
  ]
916
933
  }),
917
- y
934
+ v
918
935
  ]
919
936
  }),
920
- (S || C || T) && /* @__PURE__ */ e(Z, {
937
+ (S || A || u) && /* @__PURE__ */ e(Q, {
921
938
  primaryButton: S,
922
- secondaryButton: C,
923
- link: T
939
+ secondaryButton: A,
940
+ link: u
924
941
  })
925
942
  ]
926
943
  })
@@ -932,36 +949,36 @@ const ye = (a, r)=>{
932
949
  ]
933
950
  }))
934
951
  }),
935
- /* @__PURE__ */ e(P, {
936
- onClose: A,
937
- actions: u,
938
- type: r || i ? "media" : a ? "inverse" : "default"
952
+ /* @__PURE__ */ e(F, {
953
+ onClose: T,
954
+ actions: g,
955
+ type: a || i ? "media" : r ? "inverse" : "default"
939
956
  })
940
957
  ]
941
958
  });
942
- }), za = /*#__PURE__*/ g.forwardRef((_param, i)=>/* @__PURE__ */ {
943
- var { dataAttributes: a } = _param, r = _object_without_properties(_param, [
959
+ }), Or = /*#__PURE__*/ N.forwardRef((_param, i)=>/* @__PURE__ */ {
960
+ var { dataAttributes: r } = _param, a = _object_without_properties(_param, [
944
961
  "dataAttributes"
945
962
  ]);
946
- return e(Ce, _object_spread_props(_object_spread({}, r), {
963
+ return e(be, _object_spread_props(_object_spread({}, a), {
947
964
  ref: i,
948
965
  isInverse: !0,
949
- dataAttributes: _object_spread_props(_object_spread({}, a), {
966
+ dataAttributes: _object_spread_props(_object_spread({}, r), {
950
967
  "component-name": "DisplayMediaCard"
951
968
  })
952
969
  }));
953
- }), Oa = /*#__PURE__*/ g.forwardRef((_param, i)=>/* @__PURE__ */ {
954
- var { dataAttributes: a } = _param, r = _object_without_properties(_param, [
970
+ }), Hr = /*#__PURE__*/ N.forwardRef((_param, i)=>/* @__PURE__ */ {
971
+ var { dataAttributes: r } = _param, a = _object_without_properties(_param, [
955
972
  "dataAttributes"
956
973
  ]);
957
- return e(Ce, _object_spread_props(_object_spread({}, r), {
974
+ return e(be, _object_spread_props(_object_spread({}, a), {
958
975
  ref: i,
959
- dataAttributes: _object_spread_props(_object_spread({}, a), {
976
+ dataAttributes: _object_spread_props(_object_spread({}, r), {
960
977
  "component-name": "DisplayDataCard"
961
978
  })
962
979
  }));
963
- }), aa = 140, Ha = /*#__PURE__*/ g.forwardRef((_param, w)=>{
964
- var { dataAttributes: a , backgroundImage: r , backgroundVideo: i , poster: l , backgroundVideoRef: m , width: s , height: d , aspectRatio: c = "7:10" , ariaLabel: p , actions: t , onClose: o , icon: h , headline: f , pretitle: y , pretitleLinesMax: S , title: C , titleLinesMax: A , description: u , descriptionLinesMax: T } = _param, v = _object_without_properties(_param, [
980
+ }), ar = 140, _r = /*#__PURE__*/ N.forwardRef((_param, E)=>{
981
+ var { dataAttributes: r , backgroundImage: a , backgroundVideo: i , poster: l , backgroundVideoRef: m , width: s , height: d , aspectRatio: c = "7:10" , ariaLabel: p , actions: o , onClose: t , icon: h , headline: f , pretitle: v , pretitleLinesMax: S , title: A , titleLinesMax: T , description: g , descriptionLinesMax: u , variant: I , isInverse: b , backgroundColor: M } = _param, D = _object_without_properties(_param, [
965
982
  "dataAttributes",
966
983
  "backgroundImage",
967
984
  "backgroundVideo",
@@ -980,116 +997,130 @@ const ye = (a, r)=>{
980
997
  "title",
981
998
  "titleLinesMax",
982
999
  "description",
983
- "descriptionLinesMax"
1000
+ "descriptionLinesMax",
1001
+ "variant",
1002
+ "isInverse",
1003
+ "backgroundColor"
984
1004
  ]);
985
- const _ = ge(r), { video: E , videoAction: W } = Ne(i, l, m);
986
- i && (t = W ? [
987
- W
1005
+ const W = Te(a), { video: q , videoAction: L } = Ae(i, l, m);
1006
+ i && (o = L ? [
1007
+ L
988
1008
  ] : []);
989
- const R = ue(), I = !!r || !!i, X = I ? "0 0 16px rgba(0,0,0,0.4)" : void 0, j = (t == null ? void 0 : t.length) || o, { textPresets: F } = L(), k = v.href || v.to || v.onPress;
990
- return /* @__PURE__ */ n(H, {
1009
+ const P = ye(), R = !!a || !!i, k = R ? "0 0 16px rgba(0,0,0,0.4)" : void 0, w = (o == null ? void 0 : o.length) || t, { textPresets: X } = Z(), U = D.href || D.to || D.onPress, G = I || (b ? "inverse" : "default"), J = ()=>M || ({
1010
+ default: y.colors.backgroundContainer,
1011
+ inverse: P ? y.colors.backgroundContainerBrandOverInverse : y.colors.backgroundBrand,
1012
+ alternative: y.colors.backgroundAlternative
1013
+ })[G], xe = a || i ? fe : G === "inverse" ? ee : Y;
1014
+ return /* @__PURE__ */ n(_, {
991
1015
  width: s,
992
1016
  height: d,
993
- dataAttributes: _object_spread_props(_object_spread({}, a), {
1017
+ dataAttributes: _object_spread_props(_object_spread({}, r), {
994
1018
  "component-name": "PosterCard"
995
1019
  }),
996
- ref: w,
997
- minWidth: aa,
1020
+ ref: E,
1021
+ minWidth: ar,
998
1022
  aspectRatio: c,
999
1023
  "aria-label": p,
1000
- className: z,
1024
+ className: O,
1001
1025
  children: [
1002
- /* @__PURE__ */ e(re, {
1003
- borderRadius: x.borderRadii.legacyDisplay,
1004
- className: G,
1026
+ /* @__PURE__ */ e(te, {
1027
+ borderRadius: y.borderRadii.legacyDisplay,
1028
+ className: j,
1005
1029
  width: "100%",
1006
1030
  minHeight: "100%",
1007
- isInverse: !0,
1008
- background: r || i ? R ? x.colors.backgroundContainerBrandOverInverse : x.colors.backgroundContainer : void 0,
1009
- children: /* @__PURE__ */ n(D, _object_spread_props(_object_spread({
1031
+ isInverse: !!a || !!i || G === "inverse",
1032
+ background: a || i ? P ? y.colors.backgroundContainerBrandOverInverse : y.colors.backgroundContainer : J(),
1033
+ children: /* @__PURE__ */ n(z, _object_spread_props(_object_spread({
1010
1034
  maybe: !0
1011
- }, v), {
1012
- className: O,
1035
+ }, D), {
1036
+ className: H,
1013
1037
  "aria-label": p,
1014
1038
  children: [
1015
- k && /* @__PURE__ */ e("div", {
1016
- className: he
1039
+ U && /* @__PURE__ */ e("div", {
1040
+ className: xe
1017
1041
  }),
1018
1042
  /* @__PURE__ */ n("div", {
1019
- className: le,
1043
+ className: he,
1020
1044
  children: [
1021
- /* @__PURE__ */ e(fe, {
1022
- isInverse: R,
1045
+ /* @__PURE__ */ e(ge, {
1046
+ isInverse: P,
1023
1047
  children: /* @__PURE__ */ e("div", {
1024
- className: oe,
1025
- children: i ? E : r ? _ : void 0
1048
+ className: me,
1049
+ children: i ? q : a ? W : void 0
1026
1050
  })
1027
1051
  }),
1028
- /* @__PURE__ */ n("div", {
1029
- className: de,
1030
- style: {
1031
- paddingTop: I && !h && !j && !i ? 0 : 24
1052
+ /* @__PURE__ */ n(B, {
1053
+ className: pe,
1054
+ paddingTop: R && !h && !w && !i ? 0 : {
1055
+ mobile: h ? 16 : 24,
1056
+ desktop: 24
1032
1057
  },
1033
1058
  children: [
1034
1059
  h ? /* @__PURE__ */ e(B, {
1035
- paddingBottom: I ? 0 : 40,
1036
- paddingX: 24,
1060
+ paddingBottom: R ? 0 : 40,
1061
+ paddingX: {
1062
+ mobile: 16,
1063
+ desktop: 24
1064
+ },
1037
1065
  children: h
1038
1066
  }) : /* @__PURE__ */ e(B, {
1039
- paddingBottom: j || i ? I ? 24 : 64 : 0
1067
+ paddingBottom: w || i ? R ? 24 : 64 : 0
1040
1068
  }),
1041
1069
  /* @__PURE__ */ e(B, {
1042
- paddingX: 16,
1043
- paddingTop: I ? 40 : 0,
1070
+ paddingX: {
1071
+ mobile: 16,
1072
+ desktop: 24
1073
+ },
1074
+ paddingTop: R ? 40 : 0,
1044
1075
  paddingBottom: 24,
1045
- className: I ? ce : void 0,
1046
- children: /* @__PURE__ */ e(N, {
1076
+ className: R ? ue : void 0,
1077
+ children: /* @__PURE__ */ e(C, {
1047
1078
  space: 24,
1048
1079
  children: /* @__PURE__ */ e("div", {
1049
- children: /* @__PURE__ */ n(N, {
1080
+ children: /* @__PURE__ */ n(C, {
1050
1081
  space: 8,
1051
1082
  children: [
1052
- (f || y || C) && /* @__PURE__ */ e("header", {
1053
- children: /* @__PURE__ */ n(N, {
1083
+ (f || v || A) && /* @__PURE__ */ e("header", {
1084
+ children: /* @__PURE__ */ n(C, {
1054
1085
  space: 16,
1055
1086
  children: [
1056
1087
  f,
1057
- /* @__PURE__ */ n(N, {
1088
+ /* @__PURE__ */ n(C, {
1058
1089
  space: 4,
1059
1090
  children: [
1060
- y && /* @__PURE__ */ e(b, {
1091
+ v && /* @__PURE__ */ e(x, {
1061
1092
  forceMobileSizes: !0,
1062
1093
  truncate: S,
1063
1094
  as: "div",
1064
1095
  regular: !0,
1065
- textShadow: X,
1096
+ textShadow: k,
1066
1097
  hyphens: "auto",
1067
- children: y
1098
+ children: v
1068
1099
  }),
1069
- /* @__PURE__ */ e(ae, {
1100
+ /* @__PURE__ */ e(ne, {
1070
1101
  desktopSize: 20,
1071
1102
  mobileSize: 18,
1072
1103
  mobileLineHeight: "24px",
1073
1104
  desktopLineHeight: "28px",
1074
- truncate: A,
1075
- weight: F.cardTitle.weight,
1105
+ truncate: T,
1106
+ weight: X.cardTitle.weight,
1076
1107
  as: "h3",
1077
1108
  hyphens: "auto",
1078
- children: C
1109
+ children: A
1079
1110
  })
1080
1111
  ]
1081
1112
  })
1082
1113
  ]
1083
1114
  })
1084
1115
  }),
1085
- u && /* @__PURE__ */ e(b, {
1116
+ g && /* @__PURE__ */ e(x, {
1086
1117
  forceMobileSizes: !0,
1087
- truncate: T,
1118
+ truncate: u,
1088
1119
  as: "p",
1089
1120
  regular: !0,
1090
- textShadow: X,
1121
+ textShadow: k,
1091
1122
  hyphens: "auto",
1092
- children: u
1123
+ children: g
1093
1124
  })
1094
1125
  ]
1095
1126
  })
@@ -1103,12 +1134,12 @@ const ye = (a, r)=>{
1103
1134
  ]
1104
1135
  }))
1105
1136
  }),
1106
- /* @__PURE__ */ e(P, {
1107
- onClose: o,
1108
- actions: t,
1109
- type: "media"
1137
+ /* @__PURE__ */ e(F, {
1138
+ onClose: t,
1139
+ actions: o,
1140
+ type: a || i ? "media" : G === "inverse" ? "inverse" : "default"
1110
1141
  })
1111
1142
  ]
1112
1143
  });
1113
1144
  });
1114
- export { $e as CardActionSpinner, P as CardActionsGroup, Ma as DataCard, Oa as DisplayDataCard, za as DisplayMediaCard, Ia as MediaCard, Ba as NakedCard, Ha as PosterCard, Ra as SmallNakedCard, Da as SnapCard };
1145
+ export { Ve as CardActionSpinner, F as CardActionsGroup, Dr as DataCard, Hr as DisplayDataCard, Or as DisplayMediaCard, Ir as MediaCard, Rr as NakedCard, _r as PosterCard, Mr as SmallNakedCard, zr as SnapCard, Ce as TOP_ACTION_BUTTON_SIZE };