@telefonica/mistica 14.19.0 → 14.20.1

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