@telefonica/mistica 16.2.0 → 16.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (51) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/card.css-mistica.js +33 -21
  3. package/dist/card.css.d.ts +4 -0
  4. package/dist/card.js +235 -263
  5. package/dist/chip.css-mistica.js +19 -7
  6. package/dist/chip.css.d.ts +2 -0
  7. package/dist/chip.js +33 -49
  8. package/dist/community/advanced-data-card.css-mistica.js +24 -24
  9. package/dist/community/advanced-data-card.css.d.ts +1 -1
  10. package/dist/community/advanced-data-card.js +45 -48
  11. package/dist/empty-state-card.js +12 -11
  12. package/dist/hero.js +25 -19
  13. package/dist/highlighted-card.js +15 -14
  14. package/dist/list.css-mistica.js +21 -15
  15. package/dist/list.css.d.ts +2 -0
  16. package/dist/list.js +97 -96
  17. package/dist/menu.css-mistica.js +9 -9
  18. package/dist/menu.js +9 -10
  19. package/dist/package-version.js +1 -1
  20. package/dist/sheet-common.js +3 -2
  21. package/dist/table.js +52 -51
  22. package/dist/tag.css-mistica.js +1 -1
  23. package/dist/tag.js +9 -10
  24. package/dist/text-props.d.ts +60 -0
  25. package/dist/text-props.js +93 -0
  26. package/dist/text.d.ts +0 -62
  27. package/dist/text.js +156 -219
  28. package/dist/title.js +10 -9
  29. package/dist-es/card.css-mistica.js +4 -4
  30. package/dist-es/card.js +343 -371
  31. package/dist-es/chip.css-mistica.js +10 -4
  32. package/dist-es/chip.js +44 -60
  33. package/dist-es/community/advanced-data-card.css-mistica.js +7 -7
  34. package/dist-es/community/advanced-data-card.js +74 -77
  35. package/dist-es/empty-state-card.js +17 -16
  36. package/dist-es/hero.js +53 -47
  37. package/dist-es/highlighted-card.js +19 -18
  38. package/dist-es/list.css-mistica.js +2 -2
  39. package/dist-es/list.js +141 -140
  40. package/dist-es/menu.css-mistica.js +3 -3
  41. package/dist-es/menu.js +21 -22
  42. package/dist-es/package-version.js +1 -1
  43. package/dist-es/sheet-common.js +12 -11
  44. package/dist-es/style.css +1 -1
  45. package/dist-es/table.js +89 -88
  46. package/dist-es/tag.css-mistica.js +1 -1
  47. package/dist-es/tag.js +14 -15
  48. package/dist-es/text-props.js +52 -0
  49. package/dist-es/text.js +171 -231
  50. package/dist-es/title.js +14 -13
  51. package/package.json +3 -3
package/dist/card.js CHANGED
@@ -11,40 +11,40 @@ function _export(target, all) {
11
11
  }
12
12
  _export(exports, {
13
13
  CardActionIconButton: function() {
14
- return ua;
14
+ return ga;
15
15
  },
16
16
  CardActionSpinner: function() {
17
- return ya;
17
+ return Ta;
18
18
  },
19
19
  CardActionsGroup: function() {
20
- return Z;
20
+ return P;
21
21
  },
22
22
  DataCard: function() {
23
- return Ua;
23
+ return rr;
24
24
  },
25
25
  DisplayDataCard: function() {
26
- return Pa;
26
+ return ir;
27
27
  },
28
28
  DisplayMediaCard: function() {
29
- return Za;
29
+ return nr;
30
30
  },
31
31
  MediaCard: function() {
32
- return Ja;
32
+ return Pa;
33
33
  },
34
34
  NakedCard: function() {
35
- return Ka;
35
+ return er;
36
36
  },
37
37
  PosterCard: function() {
38
- return er;
38
+ return or;
39
39
  },
40
40
  SmallNakedCard: function() {
41
- return Qa;
41
+ return ar;
42
42
  },
43
43
  SnapCard: function() {
44
- return Ya;
44
+ return tr;
45
45
  },
46
46
  useVideoWithControls: function() {
47
- return Ve;
47
+ return Ee;
48
48
  }
49
49
  });
50
50
  const _jsxruntime = require("react/jsx-runtime");
@@ -53,6 +53,7 @@ const _tag = /*#__PURE__*/ _interop_require_default(require("./tag.js"));
53
53
  const _stack = /*#__PURE__*/ _interop_require_default(require("./stack.js"));
54
54
  const _box = /*#__PURE__*/ _interop_require_default(require("./box.js"));
55
55
  const _text = require("./text.js");
56
+ const _textprops = require("./text-props.js");
56
57
  const _boxed = require("./boxed.js");
57
58
  const _buttongroup = /*#__PURE__*/ _interop_require_default(require("./button-group.js"));
58
59
  const _image = /*#__PURE__*/ _interop_require_default(require("./image.js"));
@@ -201,23 +202,23 @@ function _object_without_properties_loose(source, excluded) {
201
202
  return target;
202
203
  }
203
204
  const M = ()=>{
204
- const [a, r] = _react.useState(""), t = _react.useCallback((n)=>{
205
- n && r((process.env.NODE_ENV === "test" ? n.textContent : n.innerText) || "");
205
+ const [a, r] = _react.useState(""), t = _react.useCallback((i)=>{
206
+ i && r((process.env.NODE_ENV === "test" ? i.textContent : i.innerText) || "");
206
207
  }, []);
207
208
  return {
208
209
  text: a,
209
210
  ref: t
210
211
  };
211
- }, Oe = (a, r, t)=>{
212
- const { texts: n, t: o } = (0, _hooks.useTheme)(), d = a ? [
212
+ }, je = (a, r, t)=>{
213
+ const { texts: i, t: o } = (0, _hooks.useTheme)(), d = a ? [
213
214
  ...a
214
215
  ] : [];
215
216
  return r && d.push({
216
- label: t || n.closeButtonLabel || o(_texttokens.closeButtonLabel),
217
+ label: t || i.closeButtonLabel || o(_texttokens.closeButtonLabel),
217
218
  onPress: r,
218
219
  Icon: _iconcloseregular.default
219
220
  }), d;
220
- }, ua = (a)=>{
221
+ }, ga = (a)=>{
221
222
  const r = (0, _themevariantcontext.useThemeVariant)();
222
223
  return a.Icon ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.IconButton, _object_spread_props(_object_spread({}, a), {
223
224
  "aria-label": a.label,
@@ -237,11 +238,11 @@ const M = ()=>{
237
238
  }),
238
239
  small: !0
239
240
  }));
240
- }, Z = (param)=>{
241
- let { actions: a, padding: r = 16, onClose: t, variant: n = "default", closeButtonLabel: o } = param;
242
- const d = Oe(a, t, o);
241
+ }, P = (param)=>{
242
+ let { actions: a, padding: r = 16, onClose: t, variant: i = "default", closeButtonLabel: o } = param;
243
+ const d = je(a, t, o);
243
244
  return d.length > 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
244
- variant: n,
245
+ variant: i,
245
246
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
246
247
  style: {
247
248
  position: "absolute",
@@ -251,32 +252,32 @@ const M = ()=>{
251
252
  },
252
253
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_inline.default, {
253
254
  space: 16,
254
- children: d.map((i, h)=>"Icon" in i || "checkedProps" in i ? /* @__PURE__ */ (0, _jsxruntime.jsx)(ua, _object_spread({}, i), h) : i)
255
+ children: d.map((n, m)=>"Icon" in n || "checkedProps" in n ? /* @__PURE__ */ (0, _jsxruntime.jsx)(ga, _object_spread({}, n), m) : n)
255
256
  })
256
257
  })
257
258
  }) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {});
258
- }, va = (a)=>a ? typeof a == "number" ? a : ({
259
+ }, xa = (a)=>a ? typeof a == "number" ? a : ({
259
260
  "1:1": 1,
260
261
  "16:9": 16 / 9,
261
262
  "7:10": 7 / 10,
262
263
  "9:10": 9 / 10,
263
264
  auto: 0
264
- })[a] : 0, $ = /*#__PURE__*/ _react.forwardRef((param, i)=>{
265
- let { children: a, width: r, height: t, aspectRatio: n, dataAttributes: o, className: d, "aria-label": l } = param;
266
- const h = r && t ? void 0 : va(n);
265
+ })[a] : 0, _ = /*#__PURE__*/ _react.forwardRef((param, n)=>{
266
+ let { children: a, width: r, height: t, aspectRatio: i, dataAttributes: o, className: d, "aria-label": l } = param;
267
+ const m = r && t ? void 0 : xa(i);
267
268
  return /* @__PURE__ */ (0, _jsxruntime.jsx)("section", _object_spread_props(_object_spread({}, (0, _dom.getPrefixedDataAttributes)(o)), {
268
- ref: i,
269
+ ref: n,
269
270
  "aria-label": l,
270
271
  className: (0, _classnames.default)(d, _cardcssmistica.cardContainer),
271
272
  style: _object_spread({
272
273
  width: r || "100%",
273
274
  height: t || "100%"
274
- }, h ? (0, _css.applyCssVars)({
275
- [_cardcssmistica.vars.aspectRatio]: String(h)
275
+ }, m ? (0, _css.applyCssVars)({
276
+ [_cardcssmistica.vars.aspectRatio]: String(m)
276
277
  }) : {}),
277
278
  children: a
278
279
  }));
279
- }), je = (a)=>{
280
+ }), Ve = (a)=>{
280
281
  const r = typeof a == "string" ? a : a == null ? void 0 : a.src, t = typeof a == "string" || a == null ? void 0 : a.srcSet;
281
282
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(_image.default, {
282
283
  width: "100%",
@@ -284,7 +285,7 @@ const M = ()=>{
284
285
  src: r || "",
285
286
  srcSet: t
286
287
  });
287
- }, fa = {
288
+ }, Ca = {
288
289
  loading: {
289
290
  showSpinner: "loadingTimeout",
290
291
  play: "playing",
@@ -310,75 +311,75 @@ const M = ()=>{
310
311
  error: {
311
312
  reset: "loading"
312
313
  }
313
- }, pa = (a, r)=>fa[a][r] || a, ya = (param)=>{
314
+ }, Na = (a, r)=>Ca[a][r] || a, Ta = (param)=>{
314
315
  let { color: a } = param;
315
316
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(_spinner.default, {
316
317
  color: a,
317
318
  size: 16,
318
319
  delay: "0"
319
320
  });
320
- }, ga = (param)=>{
321
+ }, ba = (param)=>{
321
322
  let { color: a } = param;
322
323
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconpausefilled.default, {
323
324
  color: a,
324
325
  size: 12
325
326
  });
326
- }, xa = (param)=>{
327
+ }, Ba = (param)=>{
327
328
  let { color: a } = param;
328
329
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconplayfilled.default, {
329
330
  color: a,
330
331
  size: 12
331
332
  });
332
- }, Ve = (a, r, t)=>{
333
- const { texts: n, t: o } = (0, _hooks.useTheme)(), d = _react.useRef(null), [l, i] = _react.useReducer(pa, "loading");
333
+ }, Ee = (a, r, t)=>{
334
+ const { texts: i, t: o } = (0, _hooks.useTheme)(), d = _react.useRef(null), [l, n] = _react.useReducer(Na, "loading");
334
335
  _react.useEffect(()=>{
335
336
  var u;
336
- const m = setTimeout(()=>i("showSpinner"), 2e3);
337
+ const h = setTimeout(()=>n("showSpinner"), 2e3);
337
338
  return (u = d.current) == null || u.load(), ()=>{
338
- clearTimeout(m), i("reset");
339
+ clearTimeout(h), n("reset");
339
340
  };
340
341
  }, [
341
342
  a
342
343
  ]);
343
- const h = _react.useMemo(()=>a !== void 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_video.default, {
344
+ const m = _react.useMemo(()=>a !== void 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_video.default, {
344
345
  ref: (0, _common.combineRefs)(d, t),
345
346
  src: a,
346
347
  width: "100%",
347
348
  height: "100%",
348
349
  poster: r,
349
- onError: ()=>i("fail"),
350
- onPause: ()=>i("pause"),
351
- onPlay: ()=>i("play")
350
+ onError: ()=>n("fail"),
351
+ onPause: ()=>n("pause"),
352
+ onPlay: ()=>n("play")
352
353
  }) : void 0, [
353
354
  t,
354
355
  a,
355
356
  r
356
357
  ]), c = ()=>{
357
- const m = d.current;
358
- m && (l === "loading" ? i("showSpinner") : l === "paused" ? m.play() : l === "playing" && m.pause());
358
+ const h = d.current;
359
+ h && (l === "loading" ? n("showSpinner") : l === "paused" ? h.play() : l === "playing" && h.pause());
359
360
  };
360
361
  if (l === "error") return {
361
- video: h
362
+ video: m
362
363
  };
363
- const p = h ? {
364
+ const p = m ? {
364
365
  uncheckedProps: {
365
- Icon: l === "loadingTimeout" && !(0, _platform.isRunningAcceptanceTest)() ? ya : ga,
366
- label: l === "loadingTimeout" ? "" : n.pauseIconButtonLabel || o(_texttokens.pauseIconButtonLabel)
366
+ Icon: l === "loadingTimeout" && !(0, _platform.isRunningAcceptanceTest)() ? Ta : ba,
367
+ label: l === "loadingTimeout" ? "" : i.pauseIconButtonLabel || o(_texttokens.pauseIconButtonLabel)
367
368
  },
368
369
  checkedProps: {
369
- Icon: xa,
370
- label: n.playIconButtonLabel || o(_texttokens.playIconButtonLabel)
370
+ Icon: Ba,
371
+ label: i.playIconButtonLabel || o(_texttokens.playIconButtonLabel)
371
372
  },
372
373
  onChange: c,
373
374
  disabled: l === "loadingTimeout",
374
375
  checked: l === "paused"
375
376
  } : void 0;
376
377
  return {
377
- video: h,
378
+ video: m,
378
379
  videoAction: p
379
380
  };
380
- }, ge = (param)=>{
381
- let { headline: a, headlineRef: r, pretitle: t, pretitleLinesMax: n, title: o, titleAs: d = "h3", titleLinesMax: l, subtitle: i, subtitleLinesMax: h, description: c, descriptionLinesMax: p, extra: m, extraRef: u, button: f, buttonLink: x } = param;
381
+ }, ye = (param)=>{
382
+ let { headline: a, headlineRef: r, pretitle: t, pretitleLinesMax: i, title: o, titleAs: d = "h3", titleLinesMax: l, subtitle: n, subtitleLinesMax: m, description: c, descriptionLinesMax: p, extra: h, extraRef: u, button: f, buttonLink: x } = param;
382
383
  const { textPresets: b } = (0, _hooks.useTheme)();
383
384
  return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
384
385
  className: _cardcssmistica.cardContentContainer,
@@ -388,9 +389,9 @@ const M = ()=>{
388
389
  children: [
389
390
  o && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
390
391
  style: {
391
- paddingBottom: i || c ? 4 : 0
392
+ paddingBottom: n || c ? 4 : 0
392
393
  },
393
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _text.textProps.text4), {
394
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _textprops.text4), {
394
395
  truncate: l,
395
396
  weight: b.cardTitle.weight,
396
397
  as: d,
@@ -416,30 +417,30 @@ const M = ()=>{
416
417
  paddingBottom: 4
417
418
  },
418
419
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
419
- truncate: n,
420
+ truncate: i,
420
421
  as: "div",
421
422
  regular: !0,
422
423
  hyphens: "auto",
423
424
  children: t
424
425
  })
425
426
  }),
426
- i && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
427
+ n && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
427
428
  style: {
428
429
  paddingBottom: c ? 4 : 0
429
430
  },
430
431
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
431
- truncate: h,
432
+ truncate: m,
432
433
  as: "div",
433
434
  regular: !0,
434
435
  hyphens: "auto",
435
- children: i
436
+ children: n
436
437
  })
437
438
  }),
438
439
  c && // this is tricky, when headline exists, the 8px padding is added by it.
439
440
  // Otherwise, only 4px are added by title|pretitle|subtitle, so we need to add 4px more
440
441
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
441
442
  style: {
442
- paddingTop: t || o || i ? 4 : 0
443
+ paddingTop: t || o || n ? 4 : 0
443
444
  },
444
445
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
445
446
  truncate: p,
@@ -450,9 +451,9 @@ const M = ()=>{
450
451
  children: c
451
452
  })
452
453
  }),
453
- m && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
454
+ h && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
454
455
  ref: u,
455
- children: m
456
+ children: h
456
457
  })
457
458
  ]
458
459
  }),
@@ -465,8 +466,8 @@ const M = ()=>{
465
466
  })
466
467
  ]
467
468
  });
468
- }, Ja = /*#__PURE__*/ _react.forwardRef((_param, D)=>{
469
- var { media: a, asset: r, headline: t, pretitle: n, pretitleLinesMax: o, subtitle: d, subtitleLinesMax: l, title: i, titleAs: h = "h3", titleLinesMax: c, description: p, descriptionLinesMax: m, extra: u, actions: f, button: x, buttonLink: b, dataAttributes: C, "aria-label": T, onClose: S, closeButtonLabel: N } = _param, y = _object_without_properties(_param, [
469
+ }, Pa = /*#__PURE__*/ _react.forwardRef((_param, D)=>{
470
+ var { media: a, asset: r, headline: t, pretitle: i, pretitleLinesMax: o, subtitle: d, subtitleLinesMax: l, title: n, titleAs: m = "h3", titleLinesMax: c, description: p, descriptionLinesMax: h, extra: u, actions: f, button: x, buttonLink: b, dataAttributes: C, "aria-label": N, onClose: S, closeButtonLabel: T } = _param, y = _object_without_properties(_param, [
470
471
  "media",
471
472
  "asset",
472
473
  "headline",
@@ -488,20 +489,20 @@ const M = ()=>{
488
489
  "onClose",
489
490
  "closeButtonLabel"
490
491
  ]);
491
- const R = !!(y.href || y.to || y.onPress), { text: z, ref: H } = M(), { text: E, ref: w } = M(), k = T || [
492
- i,
493
- z,
492
+ const R = !!(y.href || y.to || y.onPress), { text: z, ref: W } = M(), { text: j, ref: w } = M(), I = N || [
494
493
  n,
494
+ z,
495
+ i,
495
496
  d,
496
497
  p,
497
- E
498
+ j
498
499
  ].filter(Boolean).join(" ");
499
- return /* @__PURE__ */ (0, _jsxruntime.jsxs)($, {
500
+ return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_, {
500
501
  dataAttributes: _object_spread({
501
502
  "component-name": "MediaCard"
502
503
  }, C),
503
504
  ref: D,
504
- "aria-label": R ? void 0 : T,
505
+ "aria-label": R ? void 0 : N,
505
506
  className: _cardcssmistica.touchableContainer,
506
507
  children: [
507
508
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.Boxed, {
@@ -512,7 +513,7 @@ const M = ()=>{
512
513
  maybe: !0
513
514
  }, y), {
514
515
  className: _cardcssmistica.touchable,
515
- "aria-label": R ? k : void 0,
516
+ "aria-label": R ? I : void 0,
516
517
  children: [
517
518
  R && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
518
519
  className: _cardcssmistica.touchableMediaCardOverlay
@@ -528,56 +529,46 @@ const M = ()=>{
528
529
  }),
529
530
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
530
531
  className: _cardcssmistica.mediaCardContent,
531
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(ge, {
532
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(ye, {
532
533
  headline: t,
533
- headlineRef: H,
534
- pretitle: n,
534
+ headlineRef: W,
535
+ pretitle: i,
535
536
  pretitleLinesMax: o,
536
- title: i,
537
- titleAs: h,
537
+ title: n,
538
+ titleAs: m,
538
539
  titleLinesMax: c,
539
540
  subtitle: d,
540
541
  subtitleLinesMax: l,
541
542
  description: p,
542
- descriptionLinesMax: m,
543
+ descriptionLinesMax: h,
543
544
  extra: u,
544
545
  extraRef: w,
545
546
  button: x,
546
547
  buttonLink: b
547
548
  })
548
549
  }),
549
- r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
550
+ r && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
550
551
  className: _cardcssmistica.mediaCardAsset,
551
- paddingLeft: {
552
- mobile: 16,
553
- desktop: 24
554
- },
555
- paddingTop: {
556
- mobile: 16,
557
- desktop: 24
558
- },
559
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
560
- style: (0, _css.applyCssVars)({
561
- [_imagecssmistica.vars.mediaBorderRadius]: _skincontractcssmistica.vars.borderRadii.mediaSmall
562
- }),
563
- children: r
564
- })
552
+ style: (0, _css.applyCssVars)({
553
+ [_imagecssmistica.vars.mediaBorderRadius]: _skincontractcssmistica.vars.borderRadii.mediaSmall
554
+ }),
555
+ children: r
565
556
  })
566
557
  ]
567
558
  })
568
559
  ]
569
560
  }))
570
561
  }),
571
- /* @__PURE__ */ (0, _jsxruntime.jsx)(Z, {
562
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(P, {
572
563
  onClose: S,
573
- closeButtonLabel: N,
564
+ closeButtonLabel: T,
574
565
  actions: f,
575
566
  variant: "media"
576
567
  })
577
568
  ]
578
569
  });
579
- }), Ka = /*#__PURE__*/ _react.forwardRef((_param, D)=>{
580
- var { media: a, asset: r, headline: t, pretitle: n, pretitleLinesMax: o, subtitle: d, subtitleLinesMax: l, title: i, titleAs: h = "h3", titleLinesMax: c, description: p, descriptionLinesMax: m, extra: u, actions: f, button: x, buttonLink: b, dataAttributes: C, "aria-label": T, onClose: S, closeButtonLabel: N } = _param, y = _object_without_properties(_param, [
570
+ }), er = /*#__PURE__*/ _react.forwardRef((_param, D)=>{
571
+ var { media: a, asset: r, headline: t, pretitle: i, pretitleLinesMax: o, subtitle: d, subtitleLinesMax: l, title: n, titleAs: m = "h3", titleLinesMax: c, description: p, descriptionLinesMax: h, extra: u, actions: f, button: x, buttonLink: b, dataAttributes: C, "aria-label": N, onClose: S, closeButtonLabel: T } = _param, y = _object_without_properties(_param, [
581
572
  "media",
582
573
  "asset",
583
574
  "headline",
@@ -599,27 +590,27 @@ const M = ()=>{
599
590
  "onClose",
600
591
  "closeButtonLabel"
601
592
  ]);
602
- const R = !!(y.href || y.to || y.onPress), z = a && a.type === _image.default && a.props.circular, { text: H, ref: E } = M(), { text: w, ref: k } = M(), I = T || [
603
- i,
604
- H,
593
+ const R = !!(y.href || y.to || y.onPress), z = a && a.type === _image.default && a.props.circular, { text: W, ref: j } = M(), { text: w, ref: I } = M(), k = N || [
605
594
  n,
595
+ W,
596
+ i,
606
597
  d,
607
598
  p,
608
599
  w
609
600
  ].filter(Boolean).join(" ");
610
- return /* @__PURE__ */ (0, _jsxruntime.jsxs)($, {
601
+ return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_, {
611
602
  ref: D,
612
603
  dataAttributes: _object_spread({
613
604
  "component-name": "NakedCard"
614
605
  }, C),
615
- "aria-label": R ? void 0 : T,
606
+ "aria-label": R ? void 0 : N,
616
607
  className: R ? _cardcssmistica.touchableContainer : void 0,
617
608
  children: [
618
609
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
619
610
  maybe: !0
620
611
  }, y), {
621
612
  className: _cardcssmistica.touchable,
622
- "aria-label": R ? I : void 0,
613
+ "aria-label": R ? k : void 0,
623
614
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
624
615
  className: _cardcssmistica.mediaCard,
625
616
  children: [
@@ -638,54 +629,44 @@ const M = ()=>{
638
629
  }),
639
630
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
640
631
  className: _cardcssmistica.nakedCardContent,
641
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(ge, {
632
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(ye, {
642
633
  headline: t,
643
- headlineRef: E,
644
- pretitle: n,
634
+ headlineRef: j,
635
+ pretitle: i,
645
636
  pretitleLinesMax: o,
646
- title: i,
647
- titleAs: h,
637
+ title: n,
638
+ titleAs: m,
648
639
  titleLinesMax: c,
649
640
  subtitle: d,
650
641
  subtitleLinesMax: l,
651
642
  description: p,
652
- descriptionLinesMax: m,
643
+ descriptionLinesMax: h,
653
644
  extra: u,
654
- extraRef: k,
645
+ extraRef: I,
655
646
  button: x,
656
647
  buttonLink: b
657
648
  })
658
649
  }),
659
- r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
650
+ r && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
660
651
  className: _cardcssmistica.mediaCardAsset,
661
- paddingLeft: {
662
- mobile: 16,
663
- desktop: 24
664
- },
665
- paddingTop: {
666
- mobile: 16,
667
- desktop: 24
668
- },
669
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
670
- style: (0, _css.applyCssVars)({
671
- [_imagecssmistica.vars.mediaBorderRadius]: _skincontractcssmistica.vars.borderRadii.mediaSmall
672
- }),
673
- children: r
674
- })
652
+ style: (0, _css.applyCssVars)({
653
+ [_imagecssmistica.vars.mediaBorderRadius]: _skincontractcssmistica.vars.borderRadii.mediaSmall
654
+ }),
655
+ children: r
675
656
  })
676
657
  ]
677
658
  })
678
659
  })),
679
- /* @__PURE__ */ (0, _jsxruntime.jsx)(Z, {
660
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(P, {
680
661
  onClose: S,
681
- closeButtonLabel: N,
662
+ closeButtonLabel: T,
682
663
  actions: f,
683
664
  variant: "media"
684
665
  })
685
666
  ]
686
667
  });
687
- }), Qa = /*#__PURE__*/ _react.forwardRef((_param, u)=>{
688
- var { media: a, title: r, titleAs: t = "h3", titleLinesMax: n, subtitle: o, subtitleLinesMax: d, description: l, descriptionLinesMax: i, extra: h, dataAttributes: c, "aria-label": p } = _param, m = _object_without_properties(_param, [
668
+ }), ar = /*#__PURE__*/ _react.forwardRef((_param, u)=>{
669
+ var { media: a, title: r, titleAs: t = "h3", titleLinesMax: i, subtitle: o, subtitleLinesMax: d, description: l, descriptionLinesMax: n, extra: m, dataAttributes: c, "aria-label": p } = _param, h = _object_without_properties(_param, [
689
670
  "media",
690
671
  "title",
691
672
  "titleAs",
@@ -698,13 +679,13 @@ const M = ()=>{
698
679
  "dataAttributes",
699
680
  "aria-label"
700
681
  ]);
701
- const f = !!(m.href || m.to || m.onPress), x = a && a.type === _image.default && a.props.circular, { textPresets: b } = (0, _hooks.useTheme)(), { text: C, ref: T } = M(), S = p || [
682
+ const f = !!(h.href || h.to || h.onPress), x = a && a.type === _image.default && a.props.circular, { textPresets: b } = (0, _hooks.useTheme)(), { text: C, ref: N } = M(), S = p || [
702
683
  r,
703
684
  o,
704
685
  l,
705
686
  C
706
687
  ].filter(Boolean).join(" ");
707
- return /* @__PURE__ */ (0, _jsxruntime.jsx)($, {
688
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(_, {
708
689
  ref: u,
709
690
  dataAttributes: _object_spread({
710
691
  "component-name": "SmallNakedCard"
@@ -713,7 +694,7 @@ const M = ()=>{
713
694
  className: f ? _cardcssmistica.touchableContainer : void 0,
714
695
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
715
696
  maybe: !0
716
- }, m), {
697
+ }, h), {
717
698
  className: _cardcssmistica.touchable,
718
699
  "aria-label": f ? S : void 0,
719
700
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
@@ -739,8 +720,8 @@ const M = ()=>{
739
720
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
740
721
  space: 4,
741
722
  children: [
742
- r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _text.textProps.text2), {
743
- truncate: n,
723
+ r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _textprops.text2), {
724
+ truncate: i,
744
725
  weight: b.cardTitle.weight,
745
726
  as: t,
746
727
  hyphens: "auto",
@@ -754,7 +735,7 @@ const M = ()=>{
754
735
  children: o
755
736
  }),
756
737
  l && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
757
- truncate: i,
738
+ truncate: n,
758
739
  regular: !0,
759
740
  as: "p",
760
741
  color: _skincontractcssmistica.vars.colors.textSecondary,
@@ -764,9 +745,9 @@ const M = ()=>{
764
745
  ]
765
746
  })
766
747
  }),
767
- h && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
768
- ref: T,
769
- children: h
748
+ m && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
749
+ ref: N,
750
+ children: m
770
751
  })
771
752
  ]
772
753
  })
@@ -774,8 +755,8 @@ const M = ()=>{
774
755
  })
775
756
  }))
776
757
  });
777
- }), Ua = /*#__PURE__*/ _react.forwardRef((_param, D)=>{
778
- var { asset: a, headline: r, pretitle: t, pretitleLinesMax: n, title: o, titleAs: d = "h3", titleLinesMax: l, subtitle: i, subtitleLinesMax: h, description: c, descriptionLinesMax: p, extra: m, actions: u, button: f, buttonLink: x, dataAttributes: b, "aria-label": C, onClose: T, closeButtonLabel: S, aspectRatio: N } = _param, y = _object_without_properties(_param, [
758
+ }), rr = /*#__PURE__*/ _react.forwardRef((_param, D)=>{
759
+ var { asset: a, headline: r, pretitle: t, pretitleLinesMax: i, title: o, titleAs: d = "h3", titleLinesMax: l, subtitle: n, subtitleLinesMax: m, description: c, descriptionLinesMax: p, extra: h, actions: u, button: f, buttonLink: x, dataAttributes: b, "aria-label": C, onClose: N, closeButtonLabel: S, aspectRatio: T } = _param, y = _object_without_properties(_param, [
779
760
  "asset",
780
761
  "headline",
781
762
  "pretitle",
@@ -797,21 +778,21 @@ const M = ()=>{
797
778
  "closeButtonLabel",
798
779
  "aspectRatio"
799
780
  ]);
800
- const R = !!a || !!r, z = !!(y.href || y.to || y.onPress), { text: H, ref: E } = M(), { text: w, ref: k } = M(), I = Oe(u, T), g = C || [
781
+ const R = !!a || !!r, z = !!(y.href || y.to || y.onPress), { text: W, ref: j } = M(), { text: w, ref: I } = M(), k = je(u, N), g = C || [
801
782
  o,
802
- H,
783
+ W,
803
784
  t,
804
785
  c,
805
786
  w
806
787
  ].filter(Boolean).join(" ");
807
- return /* @__PURE__ */ (0, _jsxruntime.jsxs)($, {
788
+ return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_, {
808
789
  dataAttributes: _object_spread({
809
790
  "component-name": "DataCard"
810
791
  }, b),
811
792
  ref: D,
812
793
  "aria-label": z ? void 0 : C,
813
794
  className: _cardcssmistica.touchableContainer,
814
- aspectRatio: N,
795
+ aspectRatio: T,
815
796
  children: [
816
797
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.Boxed, {
817
798
  className: _cardcssmistica.boxed,
@@ -841,16 +822,16 @@ const M = ()=>{
841
822
  }),
842
823
  children: a
843
824
  }),
844
- /* @__PURE__ */ (0, _jsxruntime.jsx)(ge, {
825
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(ye, {
845
826
  headline: r,
846
- headlineRef: E,
827
+ headlineRef: j,
847
828
  pretitle: t,
848
- pretitleLinesMax: n,
829
+ pretitleLinesMax: i,
849
830
  title: o,
850
831
  titleAs: d,
851
832
  titleLinesMax: l,
852
- subtitle: i,
853
- subtitleLinesMax: h,
833
+ subtitle: n,
834
+ subtitleLinesMax: m,
854
835
  description: c,
855
836
  descriptionLinesMax: p
856
837
  })
@@ -858,15 +839,15 @@ const M = ()=>{
858
839
  }),
859
840
  !R && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
860
841
  style: (0, _css.applyCssVars)({
861
- [_cardcssmistica.vars.topActionsCount]: String(I.length)
842
+ [_cardcssmistica.vars.topActionsCount]: String(k.length)
862
843
  }),
863
844
  className: _cardcssmistica.dataCardTopActionsWithoutIcon
864
845
  })
865
846
  ]
866
847
  }),
867
- m && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
868
- ref: k,
869
- children: m
848
+ h && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
849
+ ref: I,
850
+ children: h
870
851
  }),
871
852
  (f || x) && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
872
853
  className: _cardcssmistica.actions,
@@ -880,16 +861,16 @@ const M = ()=>{
880
861
  ]
881
862
  }))
882
863
  }),
883
- /* @__PURE__ */ (0, _jsxruntime.jsx)(Z, {
884
- onClose: T,
864
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(P, {
865
+ onClose: N,
885
866
  closeButtonLabel: S,
886
867
  actions: u,
887
868
  variant: "default"
888
869
  })
889
870
  ]
890
871
  });
891
- }), Ya = /*#__PURE__*/ _react.forwardRef((_param, x)=>{
892
- var { asset: a, title: r, titleAs: t = "h3", titleLinesMax: n, subtitle: o, subtitleLinesMax: d, description: l, descriptionLinesMax: i, dataAttributes: h, "aria-label": c, extra: p, isInverse: m = !1, aspectRatio: u } = _param, f = _object_without_properties(_param, [
872
+ }), tr = /*#__PURE__*/ _react.forwardRef((_param, x)=>{
873
+ var { asset: a, title: r, titleAs: t = "h3", titleLinesMax: i, subtitle: o, subtitleLinesMax: d, description: l, descriptionLinesMax: n, dataAttributes: m, "aria-label": c, extra: p, isInverse: h = !1, aspectRatio: u } = _param, f = _object_without_properties(_param, [
893
874
  "asset",
894
875
  "title",
895
876
  "titleAs",
@@ -904,23 +885,23 @@ const M = ()=>{
904
885
  "isInverse",
905
886
  "aspectRatio"
906
887
  ]);
907
- const { textPresets: b } = (0, _hooks.useTheme)(), C = !!(f.href || f.to || f.onPress), T = m ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay, { text: S, ref: N } = M(), y = c || [
888
+ const { textPresets: b } = (0, _hooks.useTheme)(), C = !!(f.href || f.to || f.onPress), N = h ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay, { text: S, ref: T } = M(), y = c || [
908
889
  r,
909
890
  o,
910
891
  l,
911
892
  S
912
893
  ].filter(Boolean).join(" ");
913
- return /* @__PURE__ */ (0, _jsxruntime.jsx)($, {
894
+ return /* @__PURE__ */ (0, _jsxruntime.jsx)(_, {
914
895
  dataAttributes: _object_spread({
915
896
  "component-name": "SnapCard"
916
- }, h),
897
+ }, m),
917
898
  ref: x,
918
899
  className: _cardcssmistica.touchableContainer,
919
900
  aspectRatio: u,
920
901
  "aria-label": C ? void 0 : c,
921
902
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.Boxed, {
922
903
  className: _cardcssmistica.boxed,
923
- isInverse: m,
904
+ isInverse: h,
924
905
  width: "100%",
925
906
  minHeight: "100%",
926
907
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
@@ -930,7 +911,7 @@ const M = ()=>{
930
911
  "aria-label": C ? y : void 0,
931
912
  children: [
932
913
  C && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
933
- className: T
914
+ className: N
934
915
  }),
935
916
  /* @__PURE__ */ (0, _jsxruntime.jsxs)("section", {
936
917
  className: _cardcssmistica.snapCard,
@@ -949,8 +930,8 @@ const M = ()=>{
949
930
  /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
950
931
  space: 4,
951
932
  children: [
952
- r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _text.textProps.text2), {
953
- truncate: n,
933
+ r && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _textprops.text2), {
934
+ truncate: i,
954
935
  weight: b.cardTitle.weight,
955
936
  as: t,
956
937
  hyphens: "auto",
@@ -965,7 +946,7 @@ const M = ()=>{
965
946
  children: o
966
947
  }),
967
948
  l && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
968
- truncate: i,
949
+ truncate: n,
969
950
  regular: !0,
970
951
  color: _skincontractcssmistica.vars.colors.textSecondary,
971
952
  as: "p",
@@ -977,7 +958,7 @@ const M = ()=>{
977
958
  ]
978
959
  }),
979
960
  p && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
980
- ref: N,
961
+ ref: T,
981
962
  children: p
982
963
  })
983
964
  ]
@@ -986,14 +967,14 @@ const M = ()=>{
986
967
  }))
987
968
  })
988
969
  });
989
- }), Ee = (param)=>{
990
- let { title: a, headline: r, pretitle: t, subtitle: n, description: o, extra: d, headlineRef: l, extraRef: i } = param;
970
+ }), We = (param)=>{
971
+ let { title: a, headline: r, pretitle: t, subtitle: i, description: o, extra: d, headlineRef: l, extraRef: n } = param;
991
972
  return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
992
973
  className: _cardcssmistica.flexColumn,
993
974
  children: [
994
975
  a && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
995
976
  style: {
996
- paddingBottom: n || o ? 4 : 0
977
+ paddingBottom: i || o ? 4 : 0
997
978
  },
998
979
  children: a
999
980
  }),
@@ -1013,28 +994,28 @@ const M = ()=>{
1013
994
  },
1014
995
  children: t
1015
996
  }),
1016
- n && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
997
+ i && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1017
998
  style: {
1018
- paddingBottom: n ? 4 : 0
999
+ paddingBottom: i ? 4 : 0
1019
1000
  },
1020
- children: n
1001
+ children: i
1021
1002
  }),
1022
1003
  o && // this is tricky, the padding between a headline and a description is 16px
1023
1004
  // but the padding between a title|pretitle|subtitle and a description is 8px (4px + 4px)
1024
1005
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1025
1006
  style: {
1026
- paddingTop: t || a || n ? 4 : 0
1007
+ paddingTop: t || a || i ? 4 : 0
1027
1008
  },
1028
1009
  children: o
1029
1010
  }),
1030
1011
  d && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1031
- ref: i,
1012
+ ref: n,
1032
1013
  children: d
1033
1014
  })
1034
1015
  ]
1035
1016
  });
1036
- }, Ge = /*#__PURE__*/ _react.forwardRef((_param, k)=>{
1037
- var { isInverse: a, backgroundImage: r, backgroundVideo: t, backgroundVideoRef: n, poster: o, asset: d, headline: l, pretitle: i, pretitleLinesMax: h, title: c, titleAs: p = "h3", titleLinesMax: m, description: u, descriptionLinesMax: f, extra: x, button: b, secondaryButton: C, onClose: T, closeButtonLabel: S, actions: N, buttonLink: y, dataAttributes: D, width: R, height: z, aspectRatio: H, "aria-label": E } = _param, w = _object_without_properties(_param, [
1017
+ }, Ge = /*#__PURE__*/ _react.forwardRef((_param, I)=>{
1018
+ var { isInverse: a, backgroundImage: r, backgroundVideo: t, backgroundVideoRef: i, poster: o, asset: d, headline: l, pretitle: n, pretitleLinesMax: m, title: c, titleAs: p = "h3", titleLinesMax: h, description: u, descriptionLinesMax: f, extra: x, button: b, secondaryButton: C, onClose: N, closeButtonLabel: S, actions: T, buttonLink: y, dataAttributes: D, width: R, height: z, aspectRatio: W, "aria-label": j } = _param, w = _object_without_properties(_param, [
1038
1019
  "isInverse",
1039
1020
  "backgroundImage",
1040
1021
  "backgroundVideo",
@@ -1062,24 +1043,24 @@ const M = ()=>{
1062
1043
  "aspectRatio",
1063
1044
  "aria-label"
1064
1045
  ]);
1065
- const I = r !== void 0, g = t !== void 0, A = je(r), { video: oe, videoAction: P } = Ve(t, o, n), { text: ee, ref: de } = M(), { text: le, ref: se } = M();
1066
- g && (N = P ? [
1067
- P
1046
+ const k = r !== void 0, g = t !== void 0, A = Ve(r), { video: oe, videoAction: ee } = Ee(t, o, i), { text: ae, ref: de } = M(), { text: le, ref: se } = M();
1047
+ g && (T = ee ? [
1048
+ ee
1068
1049
  ] : []);
1069
- const ae = (0, _themevariantcontext.useIsInverseVariant)(), O = I || g, j = O ? "0 0 16px rgba(0,0,0,0.4)" : void 0, q = (N == null ? void 0 : N.length) || T, J = !!(w.href || w.to || w.onPress), ce = I || g ? _cardcssmistica.touchableCardOverlayMedia : a ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay, K = E || [
1050
+ const re = (0, _themevariantcontext.useIsInverseVariant)(), V = k || g, E = V ? "0 0 16px rgba(0,0,0,0.4)" : void 0, $ = (T == null ? void 0 : T.length) || N, q = !!(w.href || w.to || w.onPress), ce = k || g ? _cardcssmistica.touchableCardOverlayMedia : a ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay, J = j || [
1070
1051
  c,
1071
- ee,
1072
- i,
1052
+ ae,
1053
+ n,
1073
1054
  u,
1074
1055
  le
1075
1056
  ].filter(Boolean).join(" ");
1076
- return /* @__PURE__ */ (0, _jsxruntime.jsxs)($, {
1057
+ return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_, {
1077
1058
  dataAttributes: D,
1078
- ref: k,
1059
+ ref: I,
1079
1060
  width: R,
1080
1061
  height: z,
1081
- aspectRatio: H,
1082
- "aria-label": J ? void 0 : E,
1062
+ aspectRatio: W,
1063
+ "aria-label": q ? void 0 : j,
1083
1064
  className: _cardcssmistica.touchableContainer,
1084
1065
  children: [
1085
1066
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.InternalBoxed, {
@@ -1088,22 +1069,22 @@ const M = ()=>{
1088
1069
  width: "100%",
1089
1070
  minHeight: "100%",
1090
1071
  isInverse: a,
1091
- background: I || g ? ae ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainer : void 0,
1092
- variant: I || g ? "media" : void 0,
1072
+ background: k || g ? re ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainer : void 0,
1073
+ variant: k || g ? "media" : void 0,
1093
1074
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
1094
1075
  maybe: !0
1095
1076
  }, w), {
1096
1077
  className: _cardcssmistica.touchable,
1097
- "aria-label": J ? K : void 0,
1078
+ "aria-label": q ? J : void 0,
1098
1079
  children: [
1099
- J && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1080
+ q && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1100
1081
  className: ce
1101
1082
  }),
1102
1083
  /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
1103
1084
  className: _cardcssmistica.displayCardContainer,
1104
1085
  children: [
1105
- (I || g) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
1106
- isInverse: ae,
1086
+ (k || g) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
1087
+ isInverse: re,
1107
1088
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1108
1089
  className: _cardcssmistica.displayCardBackground,
1109
1090
  children: g ? oe : A
@@ -1112,7 +1093,7 @@ const M = ()=>{
1112
1093
  /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
1113
1094
  className: _cardcssmistica.displayCardContent,
1114
1095
  style: {
1115
- paddingTop: O && !d && !q && !g ? 0 : 24
1096
+ paddingTop: V && !d && !$ && !g ? 0 : 24
1116
1097
  },
1117
1098
  children: [
1118
1099
  d ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
@@ -1120,46 +1101,45 @@ const M = ()=>{
1120
1101
  [_imagecssmistica.vars.mediaBorderRadius]: _skincontractcssmistica.vars.borderRadii.mediaSmall
1121
1102
  }),
1122
1103
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
1123
- paddingBottom: O ? 0 : 40,
1104
+ paddingBottom: V ? 0 : 40,
1124
1105
  paddingX: 24,
1125
1106
  children: d
1126
1107
  })
1127
1108
  }) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
1128
- paddingBottom: q || g ? O ? 24 : 64 : 0
1109
+ paddingBottom: $ || g ? V ? 24 : 64 : 0
1129
1110
  }),
1130
- /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
1131
- paddingX: 24,
1132
- paddingTop: O ? 40 : 0,
1133
- paddingBottom: 24,
1134
- className: O ? _cardcssmistica.displayCardGradient : void 0,
1111
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1112
+ className: (0, _classnames.default)(_cardcssmistica.displayCardContentWrapper, {
1113
+ [_cardcssmistica.displayCardGradient]: V
1114
+ }),
1135
1115
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
1136
1116
  space: 24,
1137
1117
  children: [
1138
- /* @__PURE__ */ (0, _jsxruntime.jsx)(Ee, {
1118
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(We, {
1139
1119
  title: c ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text6, {
1140
1120
  forceMobileSizes: !0,
1141
- truncate: m,
1121
+ truncate: h,
1142
1122
  as: p,
1143
- textShadow: j,
1123
+ textShadow: E,
1144
1124
  hyphens: "auto",
1145
1125
  children: c
1146
1126
  }) : void 0,
1147
1127
  headline: l,
1148
- pretitle: i ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
1128
+ pretitle: n ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
1149
1129
  forceMobileSizes: !0,
1150
- truncate: h,
1130
+ truncate: m,
1151
1131
  as: "div",
1152
1132
  regular: !0,
1153
- textShadow: j,
1154
- children: i
1133
+ textShadow: E,
1134
+ children: n
1155
1135
  }) : void 0,
1156
1136
  description: u ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
1157
1137
  forceMobileSizes: !0,
1158
1138
  truncate: f,
1159
1139
  as: "p",
1160
1140
  regular: !0,
1161
- color: O ? _skincontractcssmistica.vars.colors.textPrimary : _skincontractcssmistica.vars.colors.textSecondary,
1162
- textShadow: j,
1141
+ color: V ? _skincontractcssmistica.vars.colors.textPrimary : _skincontractcssmistica.vars.colors.textSecondary,
1142
+ textShadow: E,
1163
1143
  hyphens: "auto",
1164
1144
  children: u
1165
1145
  }) : void 0,
@@ -1182,15 +1162,15 @@ const M = ()=>{
1182
1162
  ]
1183
1163
  }))
1184
1164
  }),
1185
- /* @__PURE__ */ (0, _jsxruntime.jsx)(Z, {
1186
- onClose: T,
1165
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(P, {
1166
+ onClose: N,
1187
1167
  closeButtonLabel: S,
1188
- actions: N,
1189
- variant: I || g ? "media" : a ? "inverse" : "default"
1168
+ actions: T,
1169
+ variant: k || g ? "media" : a ? "inverse" : "default"
1190
1170
  })
1191
1171
  ]
1192
1172
  });
1193
- }), Za = /*#__PURE__*/ _react.forwardRef((_param, t)=>{
1173
+ }), nr = /*#__PURE__*/ _react.forwardRef((_param, t)=>{
1194
1174
  var { dataAttributes: a } = _param, r = _object_without_properties(_param, [
1195
1175
  "dataAttributes"
1196
1176
  ]);
@@ -1201,7 +1181,7 @@ const M = ()=>{
1201
1181
  "component-name": "DisplayMediaCard"
1202
1182
  }, a)
1203
1183
  }));
1204
- }), Pa = /*#__PURE__*/ _react.forwardRef((_param, t)=>{
1184
+ }), ir = /*#__PURE__*/ _react.forwardRef((_param, t)=>{
1205
1185
  var { dataAttributes: a } = _param, r = _object_without_properties(_param, [
1206
1186
  "dataAttributes"
1207
1187
  ]);
@@ -1211,8 +1191,8 @@ const M = ()=>{
1211
1191
  "component-name": "DisplayDataCard"
1212
1192
  }, a)
1213
1193
  }));
1214
- }), er = /*#__PURE__*/ _react.forwardRef((_param, I)=>{
1215
- var { dataAttributes: a, backgroundImage: r, backgroundVideo: t, poster: n, backgroundVideoRef: o, width: d, height: l, aspectRatio: i = "7:10", "aria-label": h, actions: c, onClose: p, closeButtonLabel: m, asset: u, headline: f, pretitle: x, pretitleLinesMax: b, title: C, titleAs: T = "h3", titleLinesMax: S, subtitle: N, subtitleLinesMax: y, description: D, descriptionLinesMax: R, extra: z, variant: H, isInverse: E, backgroundColor: w } = _param, k = _object_without_properties(_param, [
1194
+ }), or = /*#__PURE__*/ _react.forwardRef((_param, k)=>{
1195
+ var { dataAttributes: a, backgroundImage: r, backgroundVideo: t, poster: i, backgroundVideoRef: o, width: d, height: l, aspectRatio: n = "7:10", "aria-label": m, actions: c, onClose: p, closeButtonLabel: h, asset: u, headline: f, pretitle: x, pretitleLinesMax: b, title: C, titleAs: N = "h3", titleLinesMax: S, subtitle: T, subtitleLinesMax: y, description: D, descriptionLinesMax: R, extra: z, variant: W, isInverse: j, backgroundColor: w } = _param, I = _object_without_properties(_param, [
1216
1196
  "dataAttributes",
1217
1197
  "backgroundImage",
1218
1198
  "backgroundVideo",
@@ -1241,32 +1221,32 @@ const M = ()=>{
1241
1221
  "isInverse",
1242
1222
  "backgroundColor"
1243
1223
  ]);
1244
- const g = r !== void 0, A = t !== void 0, oe = je(r), { video: P, videoAction: ee } = Ve(t, n, o), { text: de, ref: le } = M(), { text: se, ref: ae } = M();
1245
- A && (c = ee ? [
1246
- ee
1224
+ const g = r !== void 0, A = t !== void 0, oe = Ve(r), { video: ee, videoAction: ae } = Ee(t, i, o), { text: de, ref: le } = M(), { text: se, ref: re } = M();
1225
+ A && (c = ae ? [
1226
+ ae
1247
1227
  ] : []);
1248
- const O = (0, _themevariantcontext.useIsInverseVariant)(), j = g || A, q = j ? "0 0 16px rgba(0,0,0,0.4)" : void 0, J = (c == null ? void 0 : c.length) || p, { textPresets: ce } = (0, _hooks.useTheme)(), K = !!(k.href || k.to || k.onPress), U = H || (E ? "inverse" : "default"), He = ()=>U === "media" || g || A ? O ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainer : w || ({
1228
+ const V = (0, _themevariantcontext.useIsInverseVariant)(), E = g || A, $ = E ? "0 0 16px rgba(0,0,0,0.4)" : void 0, q = (c == null ? void 0 : c.length) || p, { textPresets: ce } = (0, _hooks.useTheme)(), J = !!(I.href || I.to || I.onPress), U = W || (j ? "inverse" : "default"), He = ()=>U === "media" || g || A ? V ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainer : w || ({
1249
1229
  default: _skincontractcssmistica.vars.colors.backgroundContainer,
1250
- inverse: O ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundBrand,
1230
+ inverse: V ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundBrand,
1251
1231
  alternative: _skincontractcssmistica.vars.colors.backgroundAlternative
1252
- })[U], Le = g || A ? _cardcssmistica.touchableCardOverlayMedia : U === "inverse" ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay, Xe = h || [
1232
+ })[U], Fe = g || A ? _cardcssmistica.touchableCardOverlayMedia : U === "inverse" ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay, Le = m || [
1253
1233
  C,
1254
1234
  de,
1255
1235
  x,
1256
- N,
1236
+ T,
1257
1237
  D,
1258
1238
  se
1259
1239
  ].filter(Boolean).join(" ");
1260
- return /* @__PURE__ */ (0, _jsxruntime.jsxs)($, {
1240
+ return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_, {
1261
1241
  width: d,
1262
1242
  height: l,
1263
1243
  dataAttributes: _object_spread({
1264
1244
  "component-name": "PosterCard"
1265
1245
  }, a),
1266
- ref: I,
1267
- aspectRatio: i,
1246
+ ref: k,
1247
+ aspectRatio: n,
1268
1248
  className: _cardcssmistica.touchableContainer,
1269
- "aria-label": K ? void 0 : h,
1249
+ "aria-label": J ? void 0 : m,
1270
1250
  children: [
1271
1251
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.InternalBoxed, {
1272
1252
  borderRadius: _skincontractcssmistica.vars.borderRadii.legacyDisplay,
@@ -1278,37 +1258,33 @@ const M = ()=>{
1278
1258
  variant: g || A ? "media" : void 0,
1279
1259
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
1280
1260
  maybe: !0
1281
- }, k), {
1261
+ }, I), {
1282
1262
  className: _cardcssmistica.touchable,
1283
- "aria-label": K ? Xe : void 0,
1263
+ "aria-label": J ? Le : void 0,
1284
1264
  children: [
1285
- K && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1286
- className: Le
1265
+ J && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1266
+ className: Fe
1287
1267
  }),
1288
1268
  /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
1289
1269
  className: _cardcssmistica.displayCardContainer,
1290
- "aria-hidden": K,
1270
+ "aria-hidden": J,
1291
1271
  children: [
1292
1272
  (g || A) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
1293
- isInverse: O,
1273
+ isInverse: V,
1294
1274
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1295
1275
  className: _cardcssmistica.displayCardBackground,
1296
- children: A ? P : oe
1276
+ children: A ? ee : oe
1297
1277
  })
1298
1278
  }),
1299
- /* @__PURE__ */ (0, _jsxruntime.jsxs)(_box.default, {
1300
- className: _cardcssmistica.displayCardContent,
1301
- paddingTop: j && !u && !J && !A ? 0 : {
1302
- mobile: u ? 16 : 24,
1303
- desktop: 24
1304
- },
1279
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
1280
+ className: (0, _classnames.default)(_cardcssmistica.displayCardContent, E && !u && !q && !A ? void 0 : u ? _cardcssmistica.displayCardContentWithAsset : _cardcssmistica.displayCardContentWithTopContent),
1305
1281
  children: [
1306
1282
  u ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1307
1283
  style: (0, _css.applyCssVars)({
1308
1284
  [_imagecssmistica.vars.mediaBorderRadius]: _skincontractcssmistica.vars.borderRadii.mediaSmall
1309
1285
  }),
1310
1286
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
1311
- paddingBottom: j ? 0 : 40,
1287
+ paddingBottom: E ? 0 : 40,
1312
1288
  paddingX: {
1313
1289
  mobile: 16,
1314
1290
  desktop: 24
@@ -1316,21 +1292,17 @@ const M = ()=>{
1316
1292
  children: u
1317
1293
  })
1318
1294
  }) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
1319
- paddingBottom: J || A ? j ? 24 : 64 : 0
1295
+ paddingBottom: q || A ? E ? 24 : 64 : 0
1320
1296
  }),
1321
- /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
1322
- paddingX: {
1323
- mobile: 16,
1324
- desktop: 24
1325
- },
1326
- paddingTop: j ? 40 : 0,
1327
- paddingBottom: 24,
1328
- className: j ? _cardcssmistica.displayCardGradient : void 0,
1329
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(Ee, {
1330
- title: C ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _text.textProps.text4), {
1297
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1298
+ className: (0, _classnames.default)(_cardcssmistica.posterCardContentWrapper, {
1299
+ [_cardcssmistica.displayCardGradient]: E
1300
+ }),
1301
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(We, {
1302
+ title: C ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _textprops.text4), {
1331
1303
  truncate: S,
1332
1304
  weight: ce.cardTitle.weight,
1333
- as: T,
1305
+ as: N,
1334
1306
  children: C
1335
1307
  })) : void 0,
1336
1308
  headline: f,
@@ -1339,29 +1311,29 @@ const M = ()=>{
1339
1311
  truncate: b,
1340
1312
  as: "div",
1341
1313
  regular: !0,
1342
- textShadow: q,
1314
+ textShadow: $,
1343
1315
  children: x
1344
1316
  }) : void 0,
1345
- subtitle: N ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
1317
+ subtitle: T ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
1346
1318
  forceMobileSizes: !0,
1347
1319
  truncate: y,
1348
1320
  as: "div",
1349
1321
  regular: !0,
1350
- textShadow: q,
1351
- children: N
1322
+ textShadow: $,
1323
+ children: T
1352
1324
  }) : void 0,
1353
1325
  description: D ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
1354
1326
  forceMobileSizes: !0,
1355
1327
  truncate: R,
1356
1328
  as: "p",
1357
1329
  regular: !0,
1358
- textShadow: q,
1359
- color: j ? _skincontractcssmistica.vars.colors.textPrimary : _skincontractcssmistica.vars.colors.textSecondary,
1330
+ textShadow: $,
1331
+ color: E ? _skincontractcssmistica.vars.colors.textPrimary : _skincontractcssmistica.vars.colors.textSecondary,
1360
1332
  children: D
1361
1333
  }) : void 0,
1362
1334
  headlineRef: le,
1363
1335
  extra: z,
1364
- extraRef: ae
1336
+ extraRef: re
1365
1337
  })
1366
1338
  })
1367
1339
  ]
@@ -1371,9 +1343,9 @@ const M = ()=>{
1371
1343
  ]
1372
1344
  }))
1373
1345
  }),
1374
- /* @__PURE__ */ (0, _jsxruntime.jsx)(Z, {
1346
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(P, {
1375
1347
  onClose: p,
1376
- closeButtonLabel: m,
1348
+ closeButtonLabel: h,
1377
1349
  actions: c,
1378
1350
  variant: g || A ? "media" : U === "inverse" ? "inverse" : "default"
1379
1351
  })