@telefonica/mistica 14.18.2 → 14.20.0

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