@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/card.js CHANGED
@@ -9,32 +9,38 @@ function _export(target, all) {
9
9
  });
10
10
  }
11
11
  _export(exports, {
12
+ CardActionSpinner: function() {
13
+ return Ve;
14
+ },
12
15
  CardActionsGroup: function() {
13
- return k;
16
+ return F;
14
17
  },
15
18
  DataCard: function() {
16
- return Ir;
19
+ return Dr;
17
20
  },
18
21
  DisplayDataCard: function() {
19
- return Dr;
22
+ return Hr;
20
23
  },
21
24
  DisplayMediaCard: function() {
22
- return Mr;
25
+ return Or;
23
26
  },
24
27
  MediaCard: function() {
25
- return Sr;
28
+ return Ir;
26
29
  },
27
30
  NakedCard: function() {
28
- return wr;
31
+ return Rr;
29
32
  },
30
33
  PosterCard: function() {
31
- return zr;
34
+ return _r;
32
35
  },
33
36
  SmallNakedCard: function() {
34
- return Br;
37
+ return Mr;
35
38
  },
36
39
  SnapCard: function() {
37
- return Rr;
40
+ return zr;
41
+ },
42
+ TOP_ACTION_BUTTON_SIZE: function() {
43
+ return Ce;
38
44
  }
39
45
  });
40
46
  const _jsxruntime = require("react/jsx-runtime");
@@ -186,27 +192,27 @@ function _object_without_properties_loose(source, excluded) {
186
192
  }
187
193
  return target;
188
194
  }
189
- const ye = (r, a)=>{
190
- const { texts: n } = (0, _hooks.useTheme)(), l = r ? [
195
+ const Ne = (r, a)=>{
196
+ const { texts: i } = (0, _hooks.useTheme)(), l = r ? [
191
197
  ...r
192
198
  ] : [];
193
199
  return a && l.push({
194
- label: n.closeButtonLabel,
200
+ label: i.closeButtonLabel,
195
201
  onPress: a,
196
202
  Icon: _iconcloseregular.default
197
203
  }), l;
198
- }, ge = 48, k = (param)=>{
199
- let { actions: r , onClose: a , type: n = "default" } = param;
200
- const l = ye(r, a), u = l.length > 0, s = {
204
+ }, Ce = 48, F = (param)=>{
205
+ let { actions: r , onClose: a , type: i = "default" } = param;
206
+ const l = Ne(r, a), m = l.length > 0, s = {
201
207
  default: _skincontractcssmistica.vars.colors.neutralHigh,
202
208
  inverse: _skincontractcssmistica.vars.colors.inverse,
203
209
  media: "#000000"
204
- }, o = {
210
+ }, d = {
205
211
  default: _cardcssmistica.cardAction,
206
212
  inverse: _cardcssmistica.cardActionInverse,
207
213
  media: _cardcssmistica.cardActionMedia
208
214
  };
209
- return u ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
215
+ return m ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
210
216
  style: {
211
217
  position: "absolute",
212
218
  right: 8,
@@ -217,11 +223,11 @@ const ye = (r, a)=>{
217
223
  className: (0, _sprinklescssmistica.sprinkles)({
218
224
  display: "flex"
219
225
  }),
220
- children: l.map((param, f)=>{
221
- let { onPress: c , label: p , Icon: t , iconSize: d = 20 , disabled: m = !1 } = param;
222
- return t ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.default, {
223
- disabled: m,
224
- size: ge,
226
+ children: l.map((param, h)=>/* @__PURE__ */ {
227
+ let { onPress: c , label: p , Icon: o , disabled: t = !1 } = param;
228
+ return (0, _jsxruntime.jsx)(_iconbutton.default, {
229
+ disabled: t,
230
+ size: Ce,
225
231
  onPress: c,
226
232
  "aria-label": p,
227
233
  className: _cardcssmistica.cardActionIconButton,
@@ -229,45 +235,43 @@ const ye = (r, a)=>{
229
235
  display: "flex"
230
236
  },
231
237
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
232
- className: o[n],
233
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(t, {
234
- color: s[n],
235
- size: d
238
+ className: d[i],
239
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(o, {
240
+ color: s[i],
241
+ size: 20
236
242
  })
237
243
  })
238
- }, f) : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
239
- className: _cardcssmistica.cardActionIconButton
240
- }, f);
244
+ }, h);
241
245
  })
242
246
  })
243
247
  }) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {});
244
- }, qe = (r)=>r ? typeof r == "number" ? r : ({
248
+ }, Ke = (r)=>r ? typeof r == "number" ? r : ({
245
249
  "1:1": 1,
246
250
  "16:9": 16 / 9,
247
251
  "7:10": 7 / 10,
248
252
  "9:10": 9 / 10,
249
253
  auto: 0
250
- })[r] : 0, H = /*#__PURE__*/ _react.forwardRef((param, p)=>{
251
- let { children: r , width: a = "100%" , height: n = "100%" , minWidth: l , aspectRatio: u , dataAttributes: s , className: o , "aria-label": c } = param;
252
- const t = qe(u);
254
+ })[r] : 0, _ = /*#__PURE__*/ _react.forwardRef((param, p)=>{
255
+ let { children: r , width: a = "100%" , height: i = "100%" , minWidth: l , aspectRatio: m , dataAttributes: s , className: d , "aria-label": c } = param;
256
+ const o = Ke(m);
253
257
  return /* @__PURE__ */ (0, _jsxruntime.jsx)("section", _object_spread_props(_object_spread({}, (0, _dom.getPrefixedDataAttributes)(s)), {
254
258
  ref: p,
255
259
  "aria-label": c,
256
- className: (0, _classnames.default)(o, _cardcssmistica.cardContainer),
260
+ className: (0, _classnames.default)(d, _cardcssmistica.cardContainer),
257
261
  style: _object_spread({
258
262
  width: a,
259
- height: n,
263
+ height: i,
260
264
  minWidth: l
261
- }, t ? (0, _dynamic.assignInlineVars)({
262
- [_cardcssmistica.vars.aspectRatio]: String(t)
265
+ }, o ? (0, _dynamic.assignInlineVars)({
266
+ [_cardcssmistica.vars.aspectRatio]: String(o)
263
267
  }) : {}),
264
268
  children: r
265
269
  }));
266
- }), Ne = (r)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_image.default, {
270
+ }), Te = (r)=>/* @__PURE__ */ (0, _jsxruntime.jsx)(_image.default, {
267
271
  width: "100%",
268
272
  height: "100%",
269
273
  src: r !== null && r !== void 0 ? r : "//:0"
270
- }), Je = {
274
+ }), Qe = {
271
275
  loading: {
272
276
  showSpinner: "loadingTimeout",
273
277
  play: "playing",
@@ -291,72 +295,78 @@ const ye = (r, a)=>{
291
295
  error: {
292
296
  reset: "loading"
293
297
  }
294
- }, Ke = (r, a)=>Je[r][a] || r, Le = (param)=>/* @__PURE__ */ {
295
- let { size: r , color: a } = param;
298
+ }, $e = (r, a)=>Qe[r][a] || r, Ve = (param)=>/* @__PURE__ */ {
299
+ let { color: r } = param;
296
300
  return (0, _jsxruntime.jsx)(_spinner.default, {
297
- size: r,
298
- color: a,
301
+ color: r,
302
+ size: 16,
299
303
  delay: "0"
300
304
  });
301
- }, Ce = (r, a, n)=>{
302
- const { texts: l } = (0, _hooks.useTheme)(), u = _react.useRef(null), [s, o] = _react.useReducer(Ke, "loading");
305
+ }, ie = (param)=>/* @__PURE__ */ {
306
+ let { color: r } = param;
307
+ return (0, _jsxruntime.jsx)(_iconpausefilled.default, {
308
+ color: r,
309
+ size: 12
310
+ });
311
+ }, er = (param)=>/* @__PURE__ */ {
312
+ let { color: r } = param;
313
+ return (0, _jsxruntime.jsx)(_iconplayfilled.default, {
314
+ color: r,
315
+ size: 12
316
+ });
317
+ }, Ae = (r, a, i)=>{
318
+ const { texts: l } = (0, _hooks.useTheme)(), m = _react.useRef(null), [s, d] = _react.useReducer($e, "loading");
303
319
  _react.useEffect(()=>{
304
- var m;
305
- const d = setTimeout(()=>o("showSpinner"), 2e3);
306
- return (m = u.current) == null || m.load(), ()=>{
307
- clearTimeout(d), o("reset");
320
+ var h;
321
+ const t = setTimeout(()=>d("showSpinner"), 2e3);
322
+ return (h = m.current) == null || h.load(), ()=>{
323
+ clearTimeout(t), d("reset");
308
324
  };
309
325
  }, [
310
326
  r
311
327
  ]);
312
328
  const c = _react.useMemo(()=>r ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_video.default, {
313
- ref: (0, _common.combineRefs)(u, n),
329
+ ref: (0, _common.combineRefs)(m, i),
314
330
  src: r,
315
331
  width: "100%",
316
332
  height: "100%",
317
333
  poster: a,
318
- onError: ()=>o("fail"),
319
- onPause: ()=>o("pause"),
320
- onPlay: ()=>o("play")
334
+ onError: ()=>d("fail"),
335
+ onPause: ()=>d("pause"),
336
+ onPlay: ()=>d("play")
321
337
  }) : void 0, [
322
- n,
338
+ i,
323
339
  r,
324
340
  a
325
341
  ]), p = ()=>{
326
- const d = u.current;
327
- d && (s === "loading" ? o("showSpinner") : s === "paused" ? d.play() : s === "playing" && d.pause());
328
- }, t = {
342
+ const t = m.current;
343
+ t && (s === "loading" ? d("showSpinner") : s === "paused" ? t.play() : s === "playing" && t.pause());
344
+ };
345
+ if (s === "error") return {
346
+ video: c
347
+ };
348
+ const o = {
329
349
  Icon: {
330
- playing: _iconpausefilled.default,
331
- loading: _iconpausefilled.default,
332
- paused: _iconplayfilled.default,
333
- loadingTimeout: Le,
334
- error: void 0
350
+ playing: ie,
351
+ loading: ie,
352
+ paused: er,
353
+ loadingTimeout: Ve
335
354
  }[s],
336
355
  onPress: p,
337
356
  label: {
338
357
  playing: l.pauseIconButtonLabel,
339
358
  loading: l.pauseIconButtonLabel,
340
359
  paused: l.playIconButtonLabel,
341
- loadingTimeout: "",
342
- error: ""
360
+ loadingTimeout: ""
343
361
  }[s],
344
- disabled: ![
345
- "loading",
346
- "playing",
347
- "paused"
348
- ].includes(s),
349
- iconSize: s === "loadingTimeout" ? 16 : 12,
350
- iconColor: _skincontractcssmistica.vars.colors.inverse,
351
- iconBackground: _cardcssmistica.videoAction,
352
- iconBackgroundInverse: _cardcssmistica.videoAction
362
+ disabled: s === "loadingTimeout"
353
363
  };
354
364
  return {
355
365
  video: c,
356
- videoAction: t
366
+ videoAction: o
357
367
  };
358
- }, Q = (param)=>{
359
- 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;
368
+ }, ae = (param)=>{
369
+ 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;
360
370
  const { textPresets: f } = (0, _hooks.useTheme)(), v = ()=>r ? typeof r == "string" ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_tag.default, {
361
371
  type: "promo",
362
372
  children: r
@@ -383,7 +393,7 @@ const ye = (r, a)=>{
383
393
  space: 4,
384
394
  children: [
385
395
  a && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
386
- truncate: n,
396
+ truncate: i,
387
397
  as: "div",
388
398
  regular: !0,
389
399
  hyphens: "auto",
@@ -394,14 +404,14 @@ const ye = (r, a)=>{
394
404
  mobileLineHeight: "24px",
395
405
  desktopSize: 20,
396
406
  desktopLineHeight: "28px",
397
- truncate: u,
407
+ truncate: m,
398
408
  weight: f.cardTitle.weight,
399
409
  as: "h3",
400
410
  hyphens: "auto",
401
411
  children: l
402
412
  }),
403
413
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
404
- truncate: o,
414
+ truncate: d,
405
415
  as: "div",
406
416
  regular: !0,
407
417
  hyphens: "auto",
@@ -422,23 +432,24 @@ const ye = (r, a)=>{
422
432
  })
423
433
  ]
424
434
  }),
425
- t && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
426
- children: t
435
+ o && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
436
+ children: o
427
437
  })
428
438
  ]
429
439
  }),
430
- (d || m) && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
440
+ (t || h) && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
431
441
  className: _cardcssmistica.actions,
432
442
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
433
- primaryButton: d,
434
- link: m
443
+ primaryButton: t,
444
+ link: h
435
445
  })
436
446
  })
437
447
  ]
438
448
  });
439
- }, Sr = /*#__PURE__*/ _react.forwardRef((_param, S)=>{
440
- 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, [
449
+ }, Ir = /*#__PURE__*/ _react.forwardRef((_param, I)=>{
450
+ 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, [
441
451
  "media",
452
+ "icon",
442
453
  "headline",
443
454
  "pretitle",
444
455
  "pretitleLinesMax",
@@ -456,13 +467,13 @@ const ye = (r, a)=>{
456
467
  "aria-label",
457
468
  "onClose"
458
469
  ]);
459
- const g = h.href || h.to || h.onPress;
460
- return /* @__PURE__ */ (0, _jsxruntime.jsxs)(H, {
470
+ const b = u.href || u.to || u.onPress;
471
+ return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_, {
461
472
  dataAttributes: _object_spread({
462
473
  "component-name": "MediaCard"
463
474
  }, A),
464
- ref: S,
465
- "aria-label": y,
475
+ ref: I,
476
+ "aria-label": T,
466
477
  className: _cardcssmistica.touchableContainer,
467
478
  children: [
468
479
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.Boxed, {
@@ -471,11 +482,11 @@ const ye = (r, a)=>{
471
482
  height: "100%",
472
483
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
473
484
  maybe: !0
474
- }, h), {
485
+ }, u), {
475
486
  className: _cardcssmistica.touchable,
476
- "aria-label": y,
487
+ "aria-label": T,
477
488
  children: [
478
- g && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
489
+ b && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
479
490
  className: _cardcssmistica.touchableMediaCardOverlay
480
491
  }),
481
492
  /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
@@ -487,36 +498,49 @@ const ye = (r, a)=>{
487
498
  }),
488
499
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
489
500
  className: _cardcssmistica.mediaCardContent,
490
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(Q, {
491
- headline: a,
492
- pretitle: n,
493
- pretitleLinesMax: l,
494
- title: o,
495
- titleLinesMax: c,
496
- subtitle: u,
497
- subtitleLinesMax: s,
498
- description: p,
501
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(ae, {
502
+ headline: i,
503
+ pretitle: l,
504
+ pretitleLinesMax: m,
505
+ title: c,
506
+ titleLinesMax: p,
507
+ subtitle: s,
508
+ subtitleLinesMax: d,
509
+ description: o,
499
510
  descriptionLinesMax: t,
500
- extra: d,
501
- button: f,
502
- buttonLink: v
511
+ extra: h,
512
+ button: v,
513
+ buttonLink: S
503
514
  })
515
+ }),
516
+ a && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
517
+ className: _cardcssmistica.mediaCardIcon,
518
+ paddingLeft: {
519
+ mobile: 16,
520
+ desktop: 24
521
+ },
522
+ paddingTop: {
523
+ mobile: 16,
524
+ desktop: 24
525
+ },
526
+ children: a
504
527
  })
505
528
  ]
506
529
  })
507
530
  ]
508
531
  }))
509
532
  }),
510
- /* @__PURE__ */ (0, _jsxruntime.jsx)(k, {
511
- onClose: b,
512
- actions: m,
533
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(F, {
534
+ onClose: g,
535
+ actions: f,
513
536
  type: "media"
514
537
  })
515
538
  ]
516
539
  });
517
- }), wr = /*#__PURE__*/ _react.forwardRef((_param, S)=>{
518
- 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, [
540
+ }), Rr = /*#__PURE__*/ _react.forwardRef((_param, I)=>{
541
+ 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, [
519
542
  "media",
543
+ "icon",
520
544
  "headline",
521
545
  "pretitle",
522
546
  "pretitleLinesMax",
@@ -534,20 +558,20 @@ const ye = (r, a)=>{
534
558
  "aria-label",
535
559
  "onClose"
536
560
  ]);
537
- const g = h.href || h.to || h.onPress, B = r && r.type === _image.default && r.props.circular;
538
- return /* @__PURE__ */ (0, _jsxruntime.jsxs)(H, {
539
- ref: S,
561
+ const b = u.href || u.to || u.onPress, M = r && r.type === _image.default && r.props.circular;
562
+ return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_, {
563
+ ref: I,
540
564
  dataAttributes: _object_spread({
541
565
  "component-name": "NakedCard"
542
566
  }, A),
543
- "aria-label": y,
544
- className: g ? _cardcssmistica.touchableContainer : void 0,
567
+ "aria-label": T,
568
+ className: b ? _cardcssmistica.touchableContainer : void 0,
545
569
  children: [
546
570
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
547
571
  maybe: !0
548
- }, h), {
572
+ }, u), {
549
573
  className: _cardcssmistica.touchable,
550
- "aria-label": y,
574
+ "aria-label": T,
551
575
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
552
576
  className: _cardcssmistica.mediaCard,
553
577
  children: [
@@ -556,9 +580,9 @@ const ye = (r, a)=>{
556
580
  position: "relative"
557
581
  },
558
582
  children: [
559
- g && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
583
+ b && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
560
584
  className: (0, _classnames.default)(_cardcssmistica.touchableNakedMediaOverlay, {
561
- [_cardcssmistica.circularMediaOverlay]: B
585
+ [_cardcssmistica.circularMediaOverlay]: M
562
586
  })
563
587
  }),
564
588
  r
@@ -566,33 +590,45 @@ const ye = (r, a)=>{
566
590
  }),
567
591
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
568
592
  className: _cardcssmistica.nakedCardContent,
569
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(Q, {
570
- headline: a,
571
- pretitle: n,
572
- pretitleLinesMax: l,
573
- title: o,
574
- titleLinesMax: c,
575
- subtitle: u,
576
- subtitleLinesMax: s,
577
- description: p,
593
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(ae, {
594
+ headline: i,
595
+ pretitle: l,
596
+ pretitleLinesMax: m,
597
+ title: c,
598
+ titleLinesMax: p,
599
+ subtitle: s,
600
+ subtitleLinesMax: d,
601
+ description: o,
578
602
  descriptionLinesMax: t,
579
- extra: d,
580
- button: f,
581
- buttonLink: v
603
+ extra: h,
604
+ button: v,
605
+ buttonLink: S
582
606
  })
607
+ }),
608
+ a && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
609
+ className: _cardcssmistica.mediaCardIcon,
610
+ paddingLeft: {
611
+ mobile: 16,
612
+ desktop: 24
613
+ },
614
+ paddingTop: {
615
+ mobile: 16,
616
+ desktop: 24
617
+ },
618
+ children: a
583
619
  })
584
620
  ]
585
621
  })
586
622
  })),
587
- /* @__PURE__ */ (0, _jsxruntime.jsx)(k, {
588
- onClose: b,
589
- actions: m,
623
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(F, {
624
+ onClose: g,
625
+ actions: f,
590
626
  type: "media"
591
627
  })
592
628
  ]
593
629
  });
594
- }), Br = /*#__PURE__*/ _react.forwardRef((_param, m)=>{
595
- 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, [
630
+ }), Mr = /*#__PURE__*/ _react.forwardRef((_param, h)=>{
631
+ 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, [
596
632
  "media",
597
633
  "title",
598
634
  "titleLinesMax",
@@ -604,19 +640,19 @@ const ye = (r, a)=>{
604
640
  "dataAttributes",
605
641
  "aria-label"
606
642
  ]);
607
- const f = d.href || d.to || d.onPress, v = r && r.type === _image.default && r.props.circular;
608
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(H, {
609
- ref: m,
643
+ const f = t.href || t.to || t.onPress, v = r && r.type === _image.default && r.props.circular;
644
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(_, {
645
+ ref: h,
610
646
  dataAttributes: _object_spread({
611
647
  "component-name": "SmallNakedCard"
612
648
  }, p),
613
- "aria-label": t,
649
+ "aria-label": o,
614
650
  className: f ? _cardcssmistica.touchableContainer : void 0,
615
651
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
616
652
  maybe: !0
617
- }, d), {
653
+ }, t), {
618
654
  className: _cardcssmistica.touchable,
619
- "aria-label": t,
655
+ "aria-label": o,
620
656
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
621
657
  className: _cardcssmistica.mediaCard,
622
658
  children: [
@@ -642,14 +678,14 @@ const ye = (r, a)=>{
642
678
  space: 8,
643
679
  children: [
644
680
  a && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
645
- truncate: n,
681
+ truncate: i,
646
682
  as: "h3",
647
683
  regular: !0,
648
684
  hyphens: "auto",
649
685
  children: a
650
686
  }),
651
687
  l && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
652
- truncate: u,
688
+ truncate: m,
653
689
  regular: !0,
654
690
  as: "p",
655
691
  hyphens: "auto",
@@ -658,7 +694,7 @@ const ye = (r, a)=>{
658
694
  ]
659
695
  }),
660
696
  s && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
661
- truncate: o,
697
+ truncate: d,
662
698
  regular: !0,
663
699
  as: "p",
664
700
  color: _skincontractcssmistica.vars.colors.textSecondary,
@@ -676,8 +712,8 @@ const ye = (r, a)=>{
676
712
  })
677
713
  }))
678
714
  });
679
- }), Ir = /*#__PURE__*/ _react.forwardRef((_param, S)=>{
680
- 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, [
715
+ }), Dr = /*#__PURE__*/ _react.forwardRef((_param, I)=>{
716
+ 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, [
681
717
  "icon",
682
718
  "headline",
683
719
  "pretitle",
@@ -694,32 +730,34 @@ const ye = (r, a)=>{
694
730
  "buttonLink",
695
731
  "dataAttributes",
696
732
  "aria-label",
697
- "onClose"
733
+ "onClose",
734
+ "aspectRatio"
698
735
  ]);
699
- const g = !!r, B = h.href || h.to || h.onPress, _ = ye(m, b), E = {
736
+ const b = !!r, M = u.href || u.to || u.onPress, D = Ne(h, T), E = {
700
737
  marginRight: -16,
701
738
  marginTop: -24,
702
- width: ge * _.length
739
+ width: Ce * D.length
703
740
  };
704
- return /* @__PURE__ */ (0, _jsxruntime.jsxs)(H, {
741
+ return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_, {
705
742
  dataAttributes: _object_spread({
706
743
  "component-name": "DataCard"
707
- }, A),
708
- ref: S,
709
- "aria-label": y,
744
+ }, S),
745
+ ref: I,
746
+ "aria-label": A,
710
747
  className: _cardcssmistica.touchableContainer,
748
+ aspectRatio: g,
711
749
  children: [
712
750
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.Boxed, {
713
751
  className: _cardcssmistica.boxed,
714
752
  width: "100%",
715
- height: "100%",
753
+ minHeight: "100%",
716
754
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
717
755
  maybe: !0
718
- }, h), {
756
+ }, u), {
719
757
  className: _cardcssmistica.touchable,
720
- "aria-label": y,
758
+ "aria-label": A,
721
759
  children: [
722
- B && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
760
+ M && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
723
761
  className: _cardcssmistica.touchableCardOverlay
724
762
  }),
725
763
  /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
@@ -731,27 +769,27 @@ const ye = (r, a)=>{
731
769
  /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
732
770
  space: 16,
733
771
  children: [
734
- g ? r : null,
735
- /* @__PURE__ */ (0, _jsxruntime.jsx)(Q, {
772
+ b ? r : null,
773
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(ae, {
736
774
  headline: a,
737
- pretitle: n,
775
+ pretitle: i,
738
776
  pretitleLinesMax: l,
739
- title: u,
777
+ title: m,
740
778
  titleLinesMax: s,
741
- subtitle: o,
779
+ subtitle: d,
742
780
  subtitleLinesMax: c,
743
781
  description: p,
744
- descriptionLinesMax: t
782
+ descriptionLinesMax: o
745
783
  })
746
784
  ]
747
785
  }),
748
- !g && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
786
+ !b && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
749
787
  style: E
750
788
  })
751
789
  ]
752
790
  }),
753
- d && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
754
- children: d
791
+ t && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
792
+ children: t
755
793
  }),
756
794
  (f || v) && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
757
795
  className: _cardcssmistica.actions,
@@ -765,15 +803,15 @@ const ye = (r, a)=>{
765
803
  ]
766
804
  }))
767
805
  }),
768
- /* @__PURE__ */ (0, _jsxruntime.jsx)(k, {
769
- onClose: b,
770
- actions: m,
806
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(F, {
807
+ onClose: T,
808
+ actions: h,
771
809
  type: "default"
772
810
  })
773
811
  ]
774
812
  });
775
- }), Rr = /*#__PURE__*/ _react.forwardRef((_param, d)=>{
776
- 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, [
813
+ }), zr = /*#__PURE__*/ _react.forwardRef((_param, h)=>{
814
+ 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, [
777
815
  "icon",
778
816
  "title",
779
817
  "titleLinesMax",
@@ -782,28 +820,30 @@ const ye = (r, a)=>{
782
820
  "dataAttributes",
783
821
  "aria-label",
784
822
  "extra",
785
- "isInverse"
823
+ "isInverse",
824
+ "aspectRatio"
786
825
  ]);
787
- const m = t.href || t.to || t.onPress, f = p ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay;
788
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(H, {
826
+ const f = t.href || t.to || t.onPress, v = p ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay;
827
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(_, {
789
828
  dataAttributes: _object_spread({
790
829
  "component-name": "SnapCard"
791
830
  }, s),
792
- ref: d,
831
+ ref: h,
793
832
  className: _cardcssmistica.touchableContainer,
833
+ aspectRatio: o,
794
834
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.Boxed, {
795
835
  className: _cardcssmistica.boxed,
796
836
  isInverse: p,
797
837
  width: "100%",
798
- height: "100%",
838
+ minHeight: "100%",
799
839
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
800
840
  maybe: !0
801
841
  }, t), {
802
842
  className: _cardcssmistica.touchable,
803
- "aria-label": o,
843
+ "aria-label": d,
804
844
  children: [
805
- m && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
806
- className: f
845
+ f && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
846
+ className: v
807
847
  }),
808
848
  /* @__PURE__ */ (0, _jsxruntime.jsxs)("section", {
809
849
  className: _cardcssmistica.snapCard,
@@ -818,14 +858,14 @@ const ye = (r, a)=>{
818
858
  space: 4,
819
859
  children: [
820
860
  a && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
821
- truncate: n,
861
+ truncate: i,
822
862
  as: "h3",
823
863
  regular: !0,
824
864
  hyphens: "auto",
825
865
  children: a
826
866
  }),
827
867
  l && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
828
- truncate: u,
868
+ truncate: m,
829
869
  regular: !0,
830
870
  color: _skincontractcssmistica.vars.colors.textSecondary,
831
871
  as: "p",
@@ -845,8 +885,8 @@ const ye = (r, a)=>{
845
885
  }))
846
886
  })
847
887
  });
848
- }), Qe = 264, Te = /*#__PURE__*/ _react.forwardRef((_param, w)=>{
849
- 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, [
888
+ }), rr = 264, be = /*#__PURE__*/ _react.forwardRef((_param, q)=>{
889
+ 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, [
850
890
  "isInverse",
851
891
  "backgroundImage",
852
892
  "backgroundVideo",
@@ -872,19 +912,19 @@ const ye = (r, a)=>{
872
912
  "aspectRatio",
873
913
  "aria-label"
874
914
  ]);
875
- const X = Ne(a), { video: P , videoAction: U } = Ce(n, u, l);
876
- n && (h = [
877
- U
878
- ]);
879
- const j = (0, _themevariantcontext.useIsInverseVariant)(), 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 ? _cardcssmistica.touchableCardOverlayMedia : r ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay;
880
- return /* @__PURE__ */ (0, _jsxruntime.jsxs)(H, {
881
- dataAttributes: g,
882
- ref: w,
883
- width: B,
884
- height: _,
885
- aspectRatio: E,
886
- "aria-label": G,
887
- minWidth: Qe,
915
+ const L = Te(a), { video: P , videoAction: R } = Ae(i, m, l);
916
+ i && (g = R ? [
917
+ R
918
+ ] : []);
919
+ const k = (0, _themevariantcontext.useIsInverseVariant)(), 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 ? _cardcssmistica.touchableCardOverlayMedia : r ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay;
920
+ return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_, {
921
+ dataAttributes: I,
922
+ ref: q,
923
+ width: b,
924
+ height: M,
925
+ aspectRatio: D,
926
+ "aria-label": E,
927
+ minWidth: rr,
888
928
  className: _cardcssmistica.touchableContainer,
889
929
  children: [
890
930
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.InternalBoxed, {
@@ -893,44 +933,44 @@ const ye = (r, a)=>{
893
933
  width: "100%",
894
934
  minHeight: "100%",
895
935
  isInverse: r,
896
- background: a || n ? j ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainer : void 0,
936
+ background: a || i ? k ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainer : void 0,
897
937
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
898
938
  maybe: !0
899
- }, I), {
939
+ }, W), {
900
940
  className: _cardcssmistica.touchable,
901
- "aria-label": G,
941
+ "aria-label": E,
902
942
  children: [
903
- xe && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
904
- className: Ae
943
+ G && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
944
+ className: J
905
945
  }),
906
946
  /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
907
947
  className: _cardcssmistica.displayCardContainer,
908
948
  children: [
909
949
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
910
- isInverse: j,
950
+ isInverse: k,
911
951
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
912
952
  className: _cardcssmistica.displayCardBackground,
913
- children: n ? P : a ? X : void 0
953
+ children: i ? P : a ? L : void 0
914
954
  })
915
955
  }),
916
956
  /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
917
957
  className: _cardcssmistica.displayCardContent,
918
958
  style: {
919
- paddingTop: R && !s && !be ? 0 : 24
959
+ paddingTop: w && !s && !U && !i ? 0 : 24
920
960
  },
921
961
  children: [
922
962
  s ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
923
- paddingBottom: R ? 0 : 40,
963
+ paddingBottom: w ? 0 : 40,
924
964
  paddingX: 24,
925
965
  children: s
926
966
  }) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
927
- paddingBottom: h != null && h.length || b ? R ? 24 : 64 : 0
967
+ paddingBottom: U || i ? w ? 24 : 64 : 0
928
968
  }),
929
969
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
930
970
  paddingX: 24,
931
- paddingTop: R ? 40 : 0,
971
+ paddingTop: w ? 40 : 0,
932
972
  paddingBottom: 24,
933
- className: R ? _cardcssmistica.displayCardGradient : void 0,
973
+ className: w ? _cardcssmistica.displayCardGradient : void 0,
934
974
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
935
975
  space: 24,
936
976
  children: [
@@ -939,11 +979,11 @@ const ye = (r, a)=>{
939
979
  /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
940
980
  space: 8,
941
981
  children: [
942
- (o || c || t) && /* @__PURE__ */ (0, _jsxruntime.jsx)("header", {
982
+ (d || c || o) && /* @__PURE__ */ (0, _jsxruntime.jsx)("header", {
943
983
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
944
984
  space: 16,
945
985
  children: [
946
- o,
986
+ d,
947
987
  /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
948
988
  space: 4,
949
989
  children: [
@@ -952,41 +992,41 @@ const ye = (r, a)=>{
952
992
  truncate: p,
953
993
  as: "div",
954
994
  regular: !0,
955
- textShadow: Y,
995
+ textShadow: X,
956
996
  children: c
957
997
  }),
958
998
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text6, {
959
999
  forceMobileSizes: !0,
960
- truncate: d,
1000
+ truncate: t,
961
1001
  as: "h3",
962
- textShadow: Y,
1002
+ textShadow: X,
963
1003
  hyphens: "auto",
964
- children: t
1004
+ children: o
965
1005
  })
966
1006
  ]
967
1007
  })
968
1008
  ]
969
1009
  })
970
1010
  }),
971
- m && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
1011
+ h && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
972
1012
  forceMobileSizes: !0,
973
1013
  truncate: f,
974
1014
  as: "p",
975
1015
  regular: !0,
976
- color: R ? _skincontractcssmistica.vars.colors.textPrimary : _skincontractcssmistica.vars.colors.textSecondary,
977
- textShadow: Y,
1016
+ color: w ? _skincontractcssmistica.vars.colors.textPrimary : _skincontractcssmistica.vars.colors.textSecondary,
1017
+ textShadow: X,
978
1018
  hyphens: "auto",
979
- children: m
1019
+ children: h
980
1020
  })
981
1021
  ]
982
1022
  }),
983
1023
  v
984
1024
  ]
985
1025
  }),
986
- (A || y || S) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
987
- primaryButton: A,
988
- secondaryButton: y,
989
- link: S
1026
+ (S || A || u) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
1027
+ primaryButton: S,
1028
+ secondaryButton: A,
1029
+ link: u
990
1030
  })
991
1031
  ]
992
1032
  })
@@ -998,36 +1038,36 @@ const ye = (r, a)=>{
998
1038
  ]
999
1039
  }))
1000
1040
  }),
1001
- /* @__PURE__ */ (0, _jsxruntime.jsx)(k, {
1002
- onClose: b,
1003
- actions: h,
1004
- type: a || n ? "media" : r ? "inverse" : "default"
1041
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(F, {
1042
+ onClose: T,
1043
+ actions: g,
1044
+ type: a || i ? "media" : r ? "inverse" : "default"
1005
1045
  })
1006
1046
  ]
1007
1047
  });
1008
- }), Mr = /*#__PURE__*/ _react.forwardRef((_param, n)=>/* @__PURE__ */ {
1048
+ }), Or = /*#__PURE__*/ _react.forwardRef((_param, i)=>/* @__PURE__ */ {
1009
1049
  var { dataAttributes: r } = _param, a = _object_without_properties(_param, [
1010
1050
  "dataAttributes"
1011
1051
  ]);
1012
- return (0, _jsxruntime.jsx)(Te, _object_spread_props(_object_spread({}, a), {
1013
- ref: n,
1052
+ return (0, _jsxruntime.jsx)(be, _object_spread_props(_object_spread({}, a), {
1053
+ ref: i,
1014
1054
  isInverse: !0,
1015
1055
  dataAttributes: _object_spread_props(_object_spread({}, r), {
1016
1056
  "component-name": "DisplayMediaCard"
1017
1057
  })
1018
1058
  }));
1019
- }), Dr = /*#__PURE__*/ _react.forwardRef((_param, n)=>/* @__PURE__ */ {
1059
+ }), Hr = /*#__PURE__*/ _react.forwardRef((_param, i)=>/* @__PURE__ */ {
1020
1060
  var { dataAttributes: r } = _param, a = _object_without_properties(_param, [
1021
1061
  "dataAttributes"
1022
1062
  ]);
1023
- return (0, _jsxruntime.jsx)(Te, _object_spread_props(_object_spread({}, a), {
1024
- ref: n,
1063
+ return (0, _jsxruntime.jsx)(be, _object_spread_props(_object_spread({}, a), {
1064
+ ref: i,
1025
1065
  dataAttributes: _object_spread_props(_object_spread({}, r), {
1026
1066
  "component-name": "DisplayDataCard"
1027
1067
  })
1028
1068
  }));
1029
- }), Ve = 140, zr = /*#__PURE__*/ _react.forwardRef((_param, B)=>{
1030
- 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, [
1069
+ }), ar = 140, _r = /*#__PURE__*/ _react.forwardRef((_param, E)=>{
1070
+ 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, [
1031
1071
  "dataAttributes",
1032
1072
  "backgroundImage",
1033
1073
  "backgroundVideo",
@@ -1046,21 +1086,28 @@ const ye = (r, a)=>{
1046
1086
  "title",
1047
1087
  "titleLinesMax",
1048
1088
  "description",
1049
- "descriptionLinesMax"
1050
- ]);
1051
- const _ = Ne(a), { video: E , videoAction: G } = Ce(n, l, u);
1052
- n && (t = [
1053
- G
1089
+ "descriptionLinesMax",
1090
+ "variant",
1091
+ "isInverse",
1092
+ "backgroundColor"
1054
1093
  ]);
1055
- const I = (0, _themevariantcontext.useIsInverseVariant)(), 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 } = (0, _hooks.useTheme)(), j = g.href || g.to || g.onPress;
1056
- return /* @__PURE__ */ (0, _jsxruntime.jsxs)(H, {
1094
+ const W = Te(a), { video: q , videoAction: L } = Ae(i, l, m);
1095
+ i && (o = L ? [
1096
+ L
1097
+ ] : []);
1098
+ const P = (0, _themevariantcontext.useIsInverseVariant)(), 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 } = (0, _hooks.useTheme)(), U = D.href || D.to || D.onPress, G = I || (b ? "inverse" : "default"), J = ()=>M || ({
1099
+ default: _skincontractcssmistica.vars.colors.backgroundContainer,
1100
+ inverse: P ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundBrand,
1101
+ alternative: _skincontractcssmistica.vars.colors.backgroundAlternative
1102
+ })[G], xe = a || i ? _cardcssmistica.touchableCardOverlayMedia : G === "inverse" ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay;
1103
+ return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_, {
1057
1104
  width: s,
1058
- height: o,
1105
+ height: d,
1059
1106
  dataAttributes: _object_spread_props(_object_spread({}, r), {
1060
1107
  "component-name": "PosterCard"
1061
1108
  }),
1062
- ref: B,
1063
- minWidth: Ve,
1109
+ ref: E,
1110
+ minWidth: ar,
1064
1111
  aspectRatio: c,
1065
1112
  "aria-label": p,
1066
1113
  className: _cardcssmistica.touchableContainer,
@@ -1070,52 +1117,59 @@ const ye = (r, a)=>{
1070
1117
  className: _cardcssmistica.boxed,
1071
1118
  width: "100%",
1072
1119
  minHeight: "100%",
1073
- isInverse: !0,
1074
- background: a || n ? I ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainer : void 0,
1120
+ isInverse: !!a || !!i || G === "inverse",
1121
+ background: a || i ? P ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainer : J(),
1075
1122
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
1076
1123
  maybe: !0
1077
- }, g), {
1124
+ }, D), {
1078
1125
  className: _cardcssmistica.touchable,
1079
1126
  "aria-label": p,
1080
1127
  children: [
1081
- j && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1082
- className: _cardcssmistica.touchableCardOverlayMedia
1128
+ U && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1129
+ className: xe
1083
1130
  }),
1084
1131
  /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
1085
1132
  className: _cardcssmistica.displayCardContainer,
1086
1133
  children: [
1087
1134
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
1088
- isInverse: I,
1135
+ isInverse: P,
1089
1136
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1090
1137
  className: _cardcssmistica.displayCardBackground,
1091
- children: n ? E : a ? _ : void 0
1138
+ children: i ? q : a ? W : void 0
1092
1139
  })
1093
1140
  }),
1094
- /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
1141
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)(_box.default, {
1095
1142
  className: _cardcssmistica.displayCardContent,
1096
- style: {
1097
- paddingTop: w && !m && !P ? 0 : 24
1143
+ paddingTop: R && !h && !w && !i ? 0 : {
1144
+ mobile: h ? 16 : 24,
1145
+ desktop: 24
1098
1146
  },
1099
1147
  children: [
1100
- m ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
1101
- paddingBottom: w ? 0 : 40,
1102
- paddingX: 24,
1103
- children: m
1148
+ h ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
1149
+ paddingBottom: R ? 0 : 40,
1150
+ paddingX: {
1151
+ mobile: 16,
1152
+ desktop: 24
1153
+ },
1154
+ children: h
1104
1155
  }) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
1105
- paddingBottom: t != null && t.length || d ? w ? 24 : 64 : 0
1156
+ paddingBottom: w || i ? R ? 24 : 64 : 0
1106
1157
  }),
1107
1158
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
1108
- paddingX: 16,
1109
- paddingTop: w ? 40 : 0,
1159
+ paddingX: {
1160
+ mobile: 16,
1161
+ desktop: 24
1162
+ },
1163
+ paddingTop: R ? 40 : 0,
1110
1164
  paddingBottom: 24,
1111
- className: w ? _cardcssmistica.displayCardGradient : void 0,
1165
+ className: R ? _cardcssmistica.displayCardGradient : void 0,
1112
1166
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_stack.default, {
1113
1167
  space: 24,
1114
1168
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1115
1169
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
1116
1170
  space: 8,
1117
1171
  children: [
1118
- (f || v || y) && /* @__PURE__ */ (0, _jsxruntime.jsx)("header", {
1172
+ (f || v || A) && /* @__PURE__ */ (0, _jsxruntime.jsx)("header", {
1119
1173
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
1120
1174
  space: 16,
1121
1175
  children: [
@@ -1125,10 +1179,10 @@ const ye = (r, a)=>{
1125
1179
  children: [
1126
1180
  v && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
1127
1181
  forceMobileSizes: !0,
1128
- truncate: A,
1182
+ truncate: S,
1129
1183
  as: "div",
1130
1184
  regular: !0,
1131
- textShadow: X,
1185
+ textShadow: k,
1132
1186
  hyphens: "auto",
1133
1187
  children: v
1134
1188
  }),
@@ -1137,25 +1191,25 @@ const ye = (r, a)=>{
1137
1191
  mobileSize: 18,
1138
1192
  mobileLineHeight: "24px",
1139
1193
  desktopLineHeight: "28px",
1140
- truncate: b,
1141
- weight: U.cardTitle.weight,
1194
+ truncate: T,
1195
+ weight: X.cardTitle.weight,
1142
1196
  as: "h3",
1143
1197
  hyphens: "auto",
1144
- children: y
1198
+ children: A
1145
1199
  })
1146
1200
  ]
1147
1201
  })
1148
1202
  ]
1149
1203
  })
1150
1204
  }),
1151
- h && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
1205
+ g && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
1152
1206
  forceMobileSizes: !0,
1153
- truncate: S,
1207
+ truncate: u,
1154
1208
  as: "p",
1155
1209
  regular: !0,
1156
- textShadow: X,
1210
+ textShadow: k,
1157
1211
  hyphens: "auto",
1158
- children: h
1212
+ children: g
1159
1213
  })
1160
1214
  ]
1161
1215
  })
@@ -1169,10 +1223,10 @@ const ye = (r, a)=>{
1169
1223
  ]
1170
1224
  }))
1171
1225
  }),
1172
- /* @__PURE__ */ (0, _jsxruntime.jsx)(k, {
1173
- onClose: d,
1174
- actions: t,
1175
- type: "media"
1226
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(F, {
1227
+ onClose: t,
1228
+ actions: o,
1229
+ type: a || i ? "media" : G === "inverse" ? "inverse" : "default"
1176
1230
  })
1177
1231
  ]
1178
1232
  });