@telefonica/mistica 16.57.0 → 16.58.0-beta.2

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 (191) hide show
  1. package/README.md +1 -1
  2. package/css/mistica.css +1 -1
  3. package/dist/accordion.css-mistica.js +16 -16
  4. package/dist/align.css-mistica.js +2 -2
  5. package/dist/autocomplete.css-mistica.js +6 -6
  6. package/dist/avatar.css-mistica.js +3 -3
  7. package/dist/badge.css-mistica.js +7 -7
  8. package/dist/box.css-mistica.js +15 -15
  9. package/dist/boxed.css-mistica.js +31 -31
  10. package/dist/button-group.css-mistica.js +10 -10
  11. package/dist/button-layout.css-mistica.js +21 -21
  12. package/dist/button.css-mistica.js +51 -51
  13. package/dist/callout.css-mistica.js +16 -16
  14. package/dist/card-internal.css-mistica.js +39 -33
  15. package/dist/card-internal.css.d.ts +2 -0
  16. package/dist/card-internal.d.ts +21 -3
  17. package/dist/card-internal.js +506 -450
  18. package/dist/carousel.css-mistica.js +18 -18
  19. package/dist/checkbox.css-mistica.js +21 -21
  20. package/dist/chip.css-mistica.js +30 -30
  21. package/dist/circle.css-mistica.js +2 -2
  22. package/dist/community/advanced-data-card.css-mistica.js +26 -26
  23. package/dist/community/blocks.css-mistica.js +3 -3
  24. package/dist/community/example-component.css-mistica.js +2 -2
  25. package/dist/counter.css-mistica.js +12 -12
  26. package/dist/cover-hero.css-mistica.js +16 -16
  27. package/dist/credit-card-number-field.css-mistica.js +6 -6
  28. package/dist/date-field.css-mistica.js +1 -1
  29. package/dist/date-time-picker.css-mistica.js +2 -2
  30. package/dist/dialog.css-mistica.js +15 -15
  31. package/dist/divider.css-mistica.js +5 -5
  32. package/dist/double-field.css-mistica.js +4 -4
  33. package/dist/drawer.css-mistica.js +15 -15
  34. package/dist/empty-state-card.css-mistica.js +4 -4
  35. package/dist/empty-state.css-mistica.js +14 -14
  36. package/dist/fade-in.css-mistica.js +1 -1
  37. package/dist/feedback.css-mistica.js +14 -14
  38. package/dist/file-upload.css-mistica.js +14 -14
  39. package/dist/fixed-footer-layout.css-mistica.js +12 -12
  40. package/dist/form.css-mistica.js +2 -2
  41. package/dist/grid-layout.css-mistica.js +9 -9
  42. package/dist/grid.css-mistica.js +147 -147
  43. package/dist/header.css-mistica.js +5 -5
  44. package/dist/hero.css-mistica.js +11 -11
  45. package/dist/horizontal-scroll.css-mistica.js +3 -3
  46. package/dist/icon-button.css-mistica.js +66 -66
  47. package/dist/icons/icon-chevron.css-mistica.js +6 -6
  48. package/dist/icons/icon-error.css-mistica.js +3 -3
  49. package/dist/image.css-mistica.js +11 -11
  50. package/dist/inline.css-mistica.js +16 -16
  51. package/dist/list.css-mistica.js +15 -15
  52. package/dist/loading-bar.css-mistica.js +5 -5
  53. package/dist/loading-screen.css-mistica.js +15 -15
  54. package/dist/logo.css-mistica.js +9 -9
  55. package/dist/menu.css-mistica.js +24 -24
  56. package/dist/mosaic.css-mistica.js +3 -3
  57. package/dist/navigation-bar.css-mistica.js +45 -45
  58. package/dist/navigation-breadcrumbs.css-mistica.js +5 -5
  59. package/dist/package-version.js +2 -2
  60. package/dist/pin-field.css-mistica.js +10 -10
  61. package/dist/popover.css-mistica.js +2 -2
  62. package/dist/progress-bar.css-mistica.js +12 -12
  63. package/dist/radio-button.css-mistica.js +33 -33
  64. package/dist/rating.css-mistica.js +12 -12
  65. package/dist/responsive-layout.css-mistica.js +20 -20
  66. package/dist/screen-reader-only.css-mistica.js +2 -2
  67. package/dist/select.css-mistica.js +29 -29
  68. package/dist/sheet-action-row.css-mistica.js +2 -2
  69. package/dist/sheet-common.css-mistica.js +16 -16
  70. package/dist/sheet-info.css-mistica.js +4 -4
  71. package/dist/skeletons.css-mistica.js +12 -12
  72. package/dist/skins/skin-contract.css-mistica.js +686 -686
  73. package/dist/skip-link.css-mistica.js +3 -3
  74. package/dist/slider.css-mistica.js +28 -28
  75. package/dist/snackbar.css-mistica.js +16 -16
  76. package/dist/spinner.css-mistica.js +5 -5
  77. package/dist/square.css-mistica.js +2 -2
  78. package/dist/stack.css-mistica.js +9 -9
  79. package/dist/stacking-group.css-mistica.js +2 -2
  80. package/dist/stepper.css-mistica.js +16 -16
  81. package/dist/switch-component.css-mistica.js +53 -53
  82. package/dist/table.css-mistica.js +24 -24
  83. package/dist/tabs.css-mistica.js +30 -30
  84. package/dist/tag.css-mistica.js +5 -5
  85. package/dist/text-field-base.css-mistica.js +30 -30
  86. package/dist/text-field-components.css-mistica.js +20 -20
  87. package/dist/text-link.css-mistica.js +10 -10
  88. package/dist/text.css-mistica.js +13 -13
  89. package/dist/theme-context.css-mistica.js +2 -2
  90. package/dist/timeline.css-mistica.js +18 -18
  91. package/dist/timer.css-mistica.js +13 -13
  92. package/dist/tooltip.css-mistica.js +12 -12
  93. package/dist/touchable.css-mistica.js +5 -5
  94. package/dist/utils/aspect-ratio-support.css-mistica.js +7 -7
  95. package/dist/video.css-mistica.js +2 -2
  96. package/dist/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +3 -3
  97. package/dist-es/accordion.css-mistica.js +7 -7
  98. package/dist-es/align.css-mistica.js +2 -2
  99. package/dist-es/autocomplete.css-mistica.js +2 -2
  100. package/dist-es/avatar.css-mistica.js +2 -2
  101. package/dist-es/badge.css-mistica.js +2 -2
  102. package/dist-es/box.css-mistica.js +15 -15
  103. package/dist-es/boxed.css-mistica.js +25 -25
  104. package/dist-es/button-group.css-mistica.js +2 -2
  105. package/dist-es/button-layout.css-mistica.js +16 -16
  106. package/dist-es/button.css-mistica.js +38 -38
  107. package/dist-es/callout.css-mistica.js +12 -12
  108. package/dist-es/card-internal.css-mistica.js +20 -20
  109. package/dist-es/card-internal.js +593 -533
  110. package/dist-es/carousel.css-mistica.js +10 -10
  111. package/dist-es/checkbox.css-mistica.js +14 -14
  112. package/dist-es/chip.css-mistica.js +17 -17
  113. package/dist-es/circle.css-mistica.js +2 -2
  114. package/dist-es/community/advanced-data-card.css-mistica.js +7 -7
  115. package/dist-es/community/blocks.css-mistica.js +2 -2
  116. package/dist-es/community/example-component.css-mistica.js +2 -2
  117. package/dist-es/counter.css-mistica.js +2 -2
  118. package/dist-es/cover-hero.css-mistica.js +4 -4
  119. package/dist-es/credit-card-number-field.css-mistica.js +4 -4
  120. package/dist-es/date-field.css-mistica.js +1 -1
  121. package/dist-es/date-time-picker.css-mistica.js +2 -2
  122. package/dist-es/dialog.css-mistica.js +5 -5
  123. package/dist-es/divider.css-mistica.js +5 -5
  124. package/dist-es/double-field.css-mistica.js +4 -4
  125. package/dist-es/drawer.css-mistica.js +2 -2
  126. package/dist-es/empty-state-card.css-mistica.js +2 -2
  127. package/dist-es/empty-state.css-mistica.js +7 -7
  128. package/dist-es/fade-in.css-mistica.js +1 -1
  129. package/dist-es/feedback.css-mistica.js +2 -2
  130. package/dist-es/file-upload.css-mistica.js +8 -8
  131. package/dist-es/fixed-footer-layout.css-mistica.js +4 -4
  132. package/dist-es/form.css-mistica.js +2 -2
  133. package/dist-es/grid-layout.css-mistica.js +4 -4
  134. package/dist-es/grid.css-mistica.js +127 -127
  135. package/dist-es/header.css-mistica.js +2 -2
  136. package/dist-es/hero.css-mistica.js +4 -4
  137. package/dist-es/horizontal-scroll.css-mistica.js +2 -2
  138. package/dist-es/icon-button.css-mistica.js +56 -56
  139. package/dist-es/icons/icon-chevron.css-mistica.js +4 -4
  140. package/dist-es/icons/icon-error.css-mistica.js +2 -2
  141. package/dist-es/image.css-mistica.js +4 -4
  142. package/dist-es/inline.css-mistica.js +10 -10
  143. package/dist-es/list.css-mistica.js +2 -2
  144. package/dist-es/loading-bar.css-mistica.js +2 -2
  145. package/dist-es/loading-screen.css-mistica.js +5 -5
  146. package/dist-es/logo.css-mistica.js +7 -7
  147. package/dist-es/menu.css-mistica.js +15 -15
  148. package/dist-es/mosaic.css-mistica.js +2 -2
  149. package/dist-es/navigation-bar.css-mistica.js +20 -20
  150. package/dist-es/navigation-breadcrumbs.css-mistica.js +2 -2
  151. package/dist-es/package-version.js +2 -2
  152. package/dist-es/pin-field.css-mistica.js +2 -2
  153. package/dist-es/popover.css-mistica.js +2 -2
  154. package/dist-es/progress-bar.css-mistica.js +8 -8
  155. package/dist-es/radio-button.css-mistica.js +25 -25
  156. package/dist-es/rating.css-mistica.js +4 -4
  157. package/dist-es/responsive-layout.css-mistica.js +7 -7
  158. package/dist-es/screen-reader-only.css-mistica.js +2 -2
  159. package/dist-es/select.css-mistica.js +20 -20
  160. package/dist-es/sheet-action-row.css-mistica.js +2 -2
  161. package/dist-es/sheet-common.css-mistica.js +2 -2
  162. package/dist-es/sheet-info.css-mistica.js +2 -2
  163. package/dist-es/skeletons.css-mistica.js +8 -8
  164. package/dist-es/skins/skin-contract.css-mistica.js +686 -686
  165. package/dist-es/skip-link.css-mistica.js +2 -2
  166. package/dist-es/slider.css-mistica.js +20 -20
  167. package/dist-es/snackbar.css-mistica.js +5 -5
  168. package/dist-es/spinner.css-mistica.js +2 -2
  169. package/dist-es/square.css-mistica.js +2 -2
  170. package/dist-es/stack.css-mistica.js +7 -7
  171. package/dist-es/stacking-group.css-mistica.js +2 -2
  172. package/dist-es/stepper.css-mistica.js +4 -4
  173. package/dist-es/style.css +1 -1
  174. package/dist-es/switch-component.css-mistica.js +41 -41
  175. package/dist-es/table.css-mistica.js +11 -11
  176. package/dist-es/tabs.css-mistica.js +21 -21
  177. package/dist-es/tag.css-mistica.js +2 -2
  178. package/dist-es/text-field-base.css-mistica.js +17 -17
  179. package/dist-es/text-field-components.css-mistica.js +4 -4
  180. package/dist-es/text-link.css-mistica.js +9 -9
  181. package/dist-es/text.css-mistica.js +8 -8
  182. package/dist-es/theme-context.css-mistica.js +2 -2
  183. package/dist-es/timeline.css-mistica.js +11 -11
  184. package/dist-es/timer.css-mistica.js +7 -7
  185. package/dist-es/tooltip.css-mistica.js +3 -3
  186. package/dist-es/touchable.css-mistica.js +2 -2
  187. package/dist-es/utils/aspect-ratio-support.css-mistica.js +4 -4
  188. package/dist-es/video.css-mistica.js +2 -2
  189. package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +2 -2
  190. package/doc/llms.md +36 -1
  191. package/package.json +1 -1
@@ -11,19 +11,19 @@ function _export(target, all) {
11
11
  }
12
12
  _export(exports, {
13
13
  get CardActionIconButton () {
14
- return ei;
14
+ return ni;
15
15
  },
16
16
  get CardActionSpinner () {
17
- return qt;
17
+ return ti;
18
18
  },
19
19
  get InternalCard () {
20
- return Vi;
20
+ return ji;
21
21
  },
22
22
  get TopActions () {
23
- return $e;
23
+ return Qe;
24
24
  },
25
25
  get useVideoWithControls () {
26
- return Ut;
26
+ return ri;
27
27
  }
28
28
  });
29
29
  const _jsxruntime = require("react/jsx-runtime");
@@ -181,25 +181,25 @@ function _object_without_properties_loose(source, excluded) {
181
181
  }
182
182
  return target;
183
183
  }
184
- const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
185
- let { type: e, children: o, width: a, height: r, aspectRatio: n, "aria-label": s, "aria-labelledby": u, "aria-description": h, "aria-describedby": m, dataAttributes: d, backgroundColor: b, variant: v } = param;
186
- const x = a && r ? void 0 : (0, _aspectratiosupport.aspectRatioToNumber)(n), f = x ? (0, _css.applyCssVars)({
187
- [_cardinternalcssmistica.vars.aspectRatio]: String(x)
188
- }) : {}, k = b ? "none" : void 0, l = e === "naked";
184
+ const Qt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
185
+ let { type: e, children: o, width: a, height: r, aspectRatio: d, "aria-label": u, "aria-labelledby": h, "aria-description": l, "aria-describedby": c, dataAttributes: n, backgroundColor: v, variant: m } = param;
186
+ const b = a && r ? void 0 : (0, _aspectratiosupport.aspectRatioToNumber)(d), x = b ? (0, _css.applyCssVars)({
187
+ [_cardinternalcssmistica.vars.aspectRatio]: String(b)
188
+ }) : {}, k = v ? "none" : void 0, s = e === "naked";
189
189
  return(// eslint-disable-next-line jsx-a11y/role-supports-aria-props
190
190
  /* @__PURE__ */ (0, _jsxruntime.jsx)("section", _object_spread_props(_object_spread({
191
191
  ref: p,
192
- "aria-label": s,
193
- "aria-labelledby": u,
194
- "aria-description": h,
195
- "aria-describedby": m,
192
+ "aria-label": u,
193
+ "aria-labelledby": h,
194
+ "aria-description": l,
195
+ "aria-describedby": c,
196
196
  className: (0, _classnames.default)(_cardinternalcssmistica.container)
197
- }, (0, _dom.getPrefixedDataAttributes)(d, "InternalCard")), {
197
+ }, (0, _dom.getPrefixedDataAttributes)(n, "InternalCard")), {
198
198
  style: _object_spread({
199
199
  width: a || "100%",
200
200
  height: r || "100%",
201
201
  position: "relative"
202
- }, f),
202
+ }, x),
203
203
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
204
204
  style: {
205
205
  display: "flex",
@@ -211,17 +211,17 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
211
211
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_boxed.InternalBoxed, {
212
212
  width: "100%",
213
213
  height: "100%",
214
- variant: v,
214
+ variant: m,
215
215
  className: (0, _classnames.default)(_cardinternalcssmistica.boxed),
216
- background: l ? "transparent" : b,
217
- borderRadius: l ? "none" : _skincontractcssmistica.vars.borderRadii.container,
218
- border: l ? "none" : k,
216
+ background: s ? "transparent" : v,
217
+ borderRadius: s ? "none" : _skincontractcssmistica.vars.borderRadii.container,
218
+ border: s ? "none" : k,
219
219
  overflow: "visible",
220
220
  children: o
221
221
  })
222
222
  })
223
223
  })));
224
- }), U = (param)=>{
224
+ }), de = (param)=>{
225
225
  let { minHeight: e } = param;
226
226
  return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
227
227
  style: {
@@ -230,10 +230,10 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
230
230
  minHeight: e
231
231
  }
232
232
  });
233
- }, ee = (param)=>{
233
+ }, se = (param)=>{
234
234
  let { size: e, absolute: o, asset: a, type: r } = param;
235
235
  if (!a) return null;
236
- const n = /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
236
+ const d = /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
237
237
  "data-testid": "asset",
238
238
  "aria-hidden": !0,
239
239
  style: (0, _css.applyCssVars)({
@@ -248,14 +248,14 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
248
248
  left: 0
249
249
  },
250
250
  className: (0, _classnames.default)(_cardinternalcssmistica.containerPaddingXVariants[e], _cardinternalcssmistica.containerPaddingTopVariants[e]),
251
- children: n
251
+ children: d
252
252
  }) : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
253
253
  className: (0, _classnames.default)({
254
254
  [_cardinternalcssmistica.containerPaddingXVariants[e]]: r !== "naked"
255
255
  }),
256
- children: n
256
+ children: d
257
257
  });
258
- }, Kt = (param)=>{
258
+ }, Ut = (param)=>{
259
259
  let { video: e, src: o, srcSet: a, backgroundVariant: r } = param;
260
260
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
261
261
  variant: r,
@@ -278,7 +278,7 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
278
278
  })
279
279
  })
280
280
  });
281
- }, Wt = {
281
+ }, Zt = {
282
282
  loading: {
283
283
  play: "playing",
284
284
  pause: "paused",
@@ -298,51 +298,51 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
298
298
  error: {
299
299
  reset: "loading"
300
300
  }
301
- }, Yt = (e, o)=>Wt[e][o] || e, qt = (param)=>{
301
+ }, ei = (e, o)=>Zt[e][o] || e, ti = (param)=>{
302
302
  let { color: e } = param;
303
303
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(_spinner.default, {
304
304
  color: e,
305
305
  size: 16,
306
306
  delay: "0"
307
307
  });
308
- }, Jt = (param)=>{
308
+ }, ii = (param)=>{
309
309
  let { color: e } = param;
310
310
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconpausefilled.default, {
311
311
  color: e,
312
312
  size: 12
313
313
  });
314
- }, Qt = (param)=>{
314
+ }, oi = (param)=>{
315
315
  let { color: e } = param;
316
316
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconplayfilled.default, {
317
317
  color: e,
318
318
  size: 12
319
319
  });
320
- }, Ut = (param)=>{
321
- let { src: e, poster: o, ref: a, autoHeight: r, loop: n, autoPlay: s, dataAttributes: u } = param;
322
- const { texts: h, t: m } = (0, _hooks.useTheme)(), d = _react.useRef(null), b = _react.useRef(!1), [v, p] = _react.useReducer(Yt, process.env.NODE_ENV === "test" ? "playing" : "loading");
320
+ }, ri = (param)=>{
321
+ let { src: e, poster: o, ref: a, autoHeight: r, loop: d, autoPlay: u, dataAttributes: h } = param;
322
+ const { texts: l, t: c } = (0, _hooks.useTheme)(), n = _react.useRef(null), v = _react.useRef(!1), [m, p] = _react.useReducer(ei, process.env.NODE_ENV === "test" ? "playing" : "loading");
323
323
  _react.useEffect(()=>{
324
- var _d_current;
325
- return b.current = !1, (_d_current = d.current) === null || _d_current === void 0 ? void 0 : _d_current.load(), ()=>{
324
+ var _n_current;
325
+ return v.current = !1, (_n_current = n.current) === null || _n_current === void 0 ? void 0 : _n_current.load(), ()=>{
326
326
  p("reset");
327
327
  };
328
328
  }, [
329
329
  e
330
330
  ]);
331
- const x = _react.useMemo(()=>{
331
+ const b = _react.useMemo(()=>{
332
332
  if (e === void 0) return;
333
- const t = ()=>{
334
- s === !1 && !b.current && (b.current = !0, p("pause"));
333
+ const S = ()=>{
334
+ u === !1 && !v.current && (v.current = !0, p("pause"));
335
335
  };
336
336
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(_video.default, {
337
- ref: (0, _common.combineRefs)(d, a),
337
+ ref: (0, _common.combineRefs)(n, a),
338
338
  src: e,
339
339
  poster: o,
340
340
  width: "100%",
341
341
  height: r ? void 0 : "100%",
342
- loop: n,
343
- autoPlay: s,
344
- dataAttributes: u,
345
- onLoad: t,
342
+ loop: d,
343
+ autoPlay: u,
344
+ dataAttributes: h,
345
+ onLoad: S,
346
346
  onError: ()=>p("fail"),
347
347
  onPause: ()=>p("pause"),
348
348
  onPlay: ()=>p("play")
@@ -352,34 +352,34 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
352
352
  e,
353
353
  o,
354
354
  r,
355
- n,
356
- s,
357
- u
358
- ]), f = ()=>{
359
- const t = d.current;
360
- t && (v === "playing" ? t.pause() : t.play().then(()=>p("play"), ()=>{}));
355
+ d,
356
+ u,
357
+ h
358
+ ]), x = ()=>{
359
+ const S = n.current;
360
+ S && (m === "playing" ? S.pause() : S.play().then(()=>p("play"), ()=>{}));
361
361
  };
362
- if (v === "error") return {
363
- video: x
362
+ if (m === "error") return {
363
+ video: b
364
364
  };
365
- const k = v === "loading", l = x ? {
365
+ const k = m === "loading", s = b ? {
366
366
  uncheckedProps: {
367
- Icon: k && !(0, _platform.isRunningAcceptanceTest)() ? qt : Jt,
368
- label: k ? "" : h.pauseIconButtonLabel || m(_texttokens.pauseIconButtonLabel)
367
+ Icon: k && !(0, _platform.isRunningAcceptanceTest)() ? ti : ii,
368
+ label: k ? "" : l.pauseIconButtonLabel || c(_texttokens.pauseIconButtonLabel)
369
369
  },
370
370
  checkedProps: {
371
- Icon: Qt,
372
- label: h.playIconButtonLabel || m(_texttokens.playIconButtonLabel)
371
+ Icon: oi,
372
+ label: l.playIconButtonLabel || c(_texttokens.playIconButtonLabel)
373
373
  },
374
- onChange: f,
374
+ onChange: x,
375
375
  disabled: (0, _platform.isRunningAcceptanceTest)() ? !1 : k,
376
- checked: v === "paused"
376
+ checked: m === "paused"
377
377
  } : void 0;
378
378
  return {
379
- video: x,
380
- videoAction: l
379
+ video: b,
380
+ videoAction: s
381
381
  };
382
- }, Zt = (param)=>{
382
+ }, ai = (param)=>{
383
383
  let { size: e, buttonPrimary: o, buttonSecondary: a, buttonLink: r } = param;
384
384
  return /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
385
385
  className: _cardinternalcssmistica.actionsContainerVariants[e],
@@ -389,7 +389,7 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
389
389
  link: r
390
390
  })
391
391
  });
392
- }, ei = (e)=>{
392
+ }, ni = (e)=>{
393
393
  const o = (0, _themevariantcontext.useThemeVariant)();
394
394
  if (e.Icon) return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.IconButton, _object_spread_props(_object_spread({}, e), {
395
395
  small: !0,
@@ -397,13 +397,13 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
397
397
  type: "neutral",
398
398
  backgroundType: "transparent"
399
399
  }));
400
- const { checkedProps: a, uncheckedProps: r } = e, n = _object_without_properties(e, [
400
+ const { checkedProps: a, uncheckedProps: r } = e, d = _object_without_properties(e, [
401
401
  "checkedProps",
402
402
  "uncheckedProps"
403
403
  ]);
404
404
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.ToggleIconButton, _object_spread_props(_object_spread({
405
405
  small: !0
406
- }, n), {
406
+ }, d), {
407
407
  checkedProps: _object_spread_props(_object_spread({}, a), {
408
408
  "aria-label": e.checkedProps.label,
409
409
  type: o === "media" ? "neutral" : "brand",
@@ -415,42 +415,42 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
415
415
  backgroundType: "transparent"
416
416
  })
417
417
  }));
418
- }, $e = (param)=>{
419
- let { testid: e = "topActions", onClose: o, closeButtonLabel: a, actions: r, variant: n, containerStyles: s = {} } = param;
420
- const { texts: u, t: h } = (0, _hooks.useTheme)(), m = r ? [
418
+ }, Qe = (param)=>{
419
+ let { testid: e = "topActions", onClose: o, closeButtonLabel: a, actions: r, variant: d, containerStyles: u = {} } = param;
420
+ const { texts: h, t: l } = (0, _hooks.useTheme)(), c = r ? [
421
421
  ...r
422
422
  ] : [];
423
- return o && m.push({
424
- label: a || u.closeButtonLabel || h(_texttokens.closeButtonLabel),
423
+ return o && c.push({
424
+ label: a || h.closeButtonLabel || l(_texttokens.closeButtonLabel),
425
425
  onPress: o,
426
426
  Icon: _iconcloseregular.default
427
- }), m.length === 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
428
- variant: n,
427
+ }), c.length === 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {}) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
428
+ variant: d,
429
429
  children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
430
430
  className: _cardinternalcssmistica.topActionsContainer,
431
- style: s,
431
+ style: u,
432
432
  "data-testid": e,
433
- children: m.map((d, b)=>"Icon" in d || "checkedProps" in d ? /* @__PURE__ */ (0, _jsxruntime.jsx)(ei, _object_spread({}, d), b) : d)
433
+ children: c.map((n, v)=>"Icon" in n || "checkedProps" in n ? /* @__PURE__ */ (0, _jsxruntime.jsx)(ni, _object_spread({}, n), v) : n)
434
434
  })
435
435
  });
436
- }, ti = (param)=>{
437
- let { type: e, size: o, asset: a, imageSrc: r, imageSrcSet: n, imageFit: s, imageAlt: u = "", video: h, mediaAspectRatio: m, mediaPosition: d, mediaWidth: b, circledImage: v } = param;
438
- const p = (0, _aspectratiosupport.aspectRatioToNumber)(m), x = e === "naked" && v ? {
436
+ }, di = (param)=>{
437
+ let { type: e, size: o, asset: a, imageSrc: r, imageSrcSet: d, imageFit: u, imageAlt: h = "", video: l, mediaAspectRatio: c, mediaPosition: n, mediaWidth: v, circledImage: m } = param;
438
+ const p = (0, _aspectratiosupport.aspectRatioToNumber)(c), b = e === "naked" && m ? {
439
439
  circular: !0
440
440
  } : {
441
441
  width: "100%",
442
- height: d === "top" && p === 0 ? void 0 : "100%"
442
+ height: n === "top" && p === 0 ? void 0 : "100%"
443
443
  }, k = (()=>{
444
- if (h) return h;
445
- if (r !== void 0 || n !== void 0) {
446
- const t = d === "left" || d === "right", c = {
444
+ if (l) return l;
445
+ if (r !== void 0 || d !== void 0) {
446
+ const S = n === "left" || n === "right", D = {
447
447
  fit: {
448
448
  objectFit: "contain",
449
- objectPosition: `bottom ${d}`
449
+ objectPosition: `bottom ${n}`
450
450
  },
451
451
  fill: {
452
452
  objectFit: "cover",
453
- objectPosition: d
453
+ objectPosition: n
454
454
  },
455
455
  "fill-center": {
456
456
  objectFit: "cover",
@@ -459,28 +459,28 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
459
459
  };
460
460
  return /* @__PURE__ */ (0, _jsxruntime.jsx)(_image.default, _object_spread(_object_spread_props(_object_spread({
461
461
  src: r || "",
462
- srcSet: n
463
- }, x), {
462
+ srcSet: d
463
+ }, b), {
464
464
  dataAttributes: {
465
465
  testid: "image"
466
466
  },
467
- alt: u
468
- }), t ? c[s] : {}));
467
+ alt: h
468
+ }), S ? D[u] : {}));
469
469
  }
470
470
  return null;
471
471
  })();
472
472
  if (!k) return /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {});
473
- const l = _object_spread({}, e === "naked" ? void 0 : (0, _css.applyCssVars)({
473
+ const s = _object_spread({}, e === "naked" ? void 0 : (0, _css.applyCssVars)({
474
474
  [_imagecssmistica.vars.mediaBorderRadius]: "0px"
475
475
  }));
476
- return d === "top" ? /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
476
+ return n === "top" ? /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
477
477
  children: [
478
478
  /* @__PURE__ */ (0, _jsxruntime.jsx)(_aspectratiosupport.AspectRatioContainer, {
479
479
  aspectRatio: p,
480
- style: l,
480
+ style: s,
481
481
  children: k
482
482
  }),
483
- /* @__PURE__ */ (0, _jsxruntime.jsx)(ee, {
483
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(se, {
484
484
  absolute: !0,
485
485
  size: o,
486
486
  asset: a,
@@ -490,8 +490,8 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
490
490
  }) : /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
491
491
  children: [
492
492
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
493
- style: _object_spread_props(_object_spread({}, l), {
494
- width: b,
493
+ style: _object_spread_props(_object_spread({}, s), {
494
+ width: v,
495
495
  flexShrink: 0,
496
496
  flexGrow: 0,
497
497
  height: "100%",
@@ -499,7 +499,7 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
499
499
  }),
500
500
  children: k
501
501
  }),
502
- d !== "right" && /* @__PURE__ */ (0, _jsxruntime.jsx)(ee, {
502
+ n !== "right" && /* @__PURE__ */ (0, _jsxruntime.jsx)(se, {
503
503
  absolute: !0,
504
504
  size: o,
505
505
  asset: a,
@@ -507,77 +507,77 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
507
507
  })
508
508
  ]
509
509
  });
510
- }, ii = (param)=>{
511
- let { type: e, size: o, variant: a, footerSlot: r, buttonPrimary: n, buttonSecondary: s, buttonLink: u, hasBackgroundImageOrVideo: h, footerVariant: m, footerBackgroundColor: d, footerDivider: b, externalVariant: v, overlayColor: p } = param;
512
- const x = !!(n || s || u), f = !!(n && s && u), k = {
510
+ }, li = (param)=>{
511
+ let { type: e, size: o, variant: a, footerSlot: r, buttonPrimary: d, buttonSecondary: u, buttonLink: h, hasBackgroundImageOrVideo: l, footerVariant: c, footerBackgroundColor: n, footerDivider: v, externalVariant: m, overlayColor: p } = param;
512
+ const b = !!(d || u || h), x = !!(d && u && h), k = {
513
513
  default: _skincontractcssmistica.vars.colors.divider,
514
514
  brand: _skincontractcssmistica.vars.colors.dividerBrand,
515
515
  negative: _skincontractcssmistica.vars.colors.dividerNegative,
516
516
  media: _skincontractcssmistica.vars.colors.dividerBrand,
517
517
  alternative: _skincontractcssmistica.vars.colors.divider
518
- }[a], l = e === "naked", t = d || (m && m !== a ? m === "default" ? _skincontractcssmistica.vars.colors.backgroundContainer : v === "brand" || v === "media" || v === "negative" ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverBrand : _skincontractcssmistica.vars.colors.backgroundContainerBrand : void 0), c = b !== null && b !== void 0 ? b : !t;
518
+ }[a], s = e === "naked", S = n || (c && c !== a ? c === "default" ? _skincontractcssmistica.vars.colors.backgroundContainer : m === "brand" || m === "media" || m === "negative" ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverBrand : _skincontractcssmistica.vars.colors.backgroundContainerBrand : void 0), D = v !== null && v !== void 0 ? v : !S;
519
519
  return /* @__PURE__ */ (0, _jsxruntime.jsxs)(_themevariantcontext.ThemeVariant, {
520
- variant: m || a,
520
+ variant: c || a,
521
521
  children: [
522
- /* @__PURE__ */ (0, _jsxruntime.jsx)(U, {}),
522
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(de, {}),
523
523
  /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
524
524
  style: {
525
- background: t || (h ? p : void 0),
525
+ background: S || (l ? p : void 0),
526
526
  position: "relative",
527
- backdropFilter: h ? "blur(12px)" : void 0,
528
- borderBottomLeftRadius: l ? 0 : _skincontractcssmistica.vars.borderRadii.container,
529
- borderBottomRightRadius: l ? 0 : _skincontractcssmistica.vars.borderRadii.container
527
+ backdropFilter: l ? "blur(12px)" : void 0,
528
+ borderBottomLeftRadius: s ? 0 : _skincontractcssmistica.vars.borderRadii.container,
529
+ borderBottomRightRadius: s ? 0 : _skincontractcssmistica.vars.borderRadii.container
530
530
  },
531
531
  children: [
532
532
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
533
533
  style: {
534
- borderTop: c ? `1px solid ${k}` : void 0,
535
- marginRight: l ? 16 : 0
534
+ borderTop: D ? `1px solid ${k}` : void 0,
535
+ marginRight: s ? 16 : 0
536
536
  }
537
537
  }),
538
538
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
539
539
  "data-testid": "footer",
540
540
  className: (0, _classnames.default)({
541
- [_cardinternalcssmistica.containerPaddingXVariants[o]]: !l,
542
- [_cardinternalcssmistica.containerPaddingBottomVariants[o]]: !l
541
+ [_cardinternalcssmistica.containerPaddingXVariants[o]]: !s,
542
+ [_cardinternalcssmistica.containerPaddingBottomVariants[o]]: !s
543
543
  }),
544
544
  style: {
545
545
  paddingTop: 16,
546
- paddingBottom: l ? 0 : void 0,
547
- paddingRight: l ? 16 : void 0
546
+ paddingBottom: s ? 0 : void 0,
547
+ paddingRight: s ? 16 : void 0
548
548
  },
549
549
  children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
550
550
  space: 16,
551
551
  children: [
552
552
  r,
553
- x && // @FIXME: We should use the ButtonGroup component
553
+ b && // @FIXME: We should use the ButtonGroup component
554
554
  // https://jira.tid.es/browse/WEB-2278
555
555
  // https://www.figma.com/design/koROdh3HpEPG2O8jG52Emh/%F0%9F%94%B8-Buttons-Specs?node-id=4337-1606&t=HtImvar8DMbivDqC-0
556
- (f ? /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
556
+ (x ? /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
557
557
  space: 16,
558
558
  children: [
559
559
  /* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
560
560
  space: "between",
561
561
  alignItems: "center",
562
562
  children: [
563
- n,
564
- s
563
+ d,
564
+ u
565
565
  ]
566
566
  }),
567
567
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
568
568
  style: {
569
569
  marginLeft: -12
570
570
  },
571
- children: u
571
+ children: h
572
572
  })
573
573
  ]
574
574
  }) : /* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
575
575
  space: "between",
576
576
  alignItems: "center",
577
577
  children: [
578
- n,
579
- s,
580
- u
578
+ d,
579
+ u,
580
+ h
581
581
  ]
582
582
  }))
583
583
  ]
@@ -587,200 +587,206 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
587
587
  })
588
588
  ]
589
589
  });
590
- }, oi = (param)=>{
591
- let { type: e, hasCustomBackground: o, headlineRef: a, size: r, variant: n, headline: s, title: u, titleAs: h = "h3", titleLinesMax: m, pretitle: d, pretitleAs: b, pretitleLinesMax: v, subtitle: p, subtitleLinesMax: x, description: f, descriptionLinesMax: k, withTextShadow: l } = param;
592
- const { textPresets: t, colorValues: c } = (0, _hooks.useTheme)(), M = (0, _themevariantcontext.useThemeVariant)(), C = {
590
+ }, si = (param)=>{
591
+ let { type: e, hasCustomBackground: o, headlineRef: a, touchableRef: r, touchableProps: d, size: u, variant: h, headline: l, title: c, titleAs: n = "h3", titleLinesMax: v, pretitle: m, pretitleAs: p, pretitleLinesMax: b, subtitle: x, subtitleLinesMax: k, description: s, descriptionLinesMax: S, withTextShadow: D } = param;
592
+ const { textPresets: i, colorValues: g } = (0, _hooks.useTheme)(), ue = (0, _themevariantcontext.useThemeVariant)(), H = typeof c == "string" ? {
593
+ text: c
594
+ } : c, T = typeof m == "string" ? {
595
+ text: m
596
+ } : m, L = {
593
597
  hyphens: "auto"
594
- }, E = {
598
+ }, X = {
595
599
  default: {
596
- pretitle: c.textPrimary,
597
- title: c.textPrimary,
598
- subtitle: c.textPrimary,
599
- description: c.textSecondary
600
+ pretitle: g.textPrimary,
601
+ title: g.textPrimary,
602
+ subtitle: g.textPrimary,
603
+ description: g.textSecondary
600
604
  },
601
605
  brand: {
602
- pretitle: c.textPrimaryBrand,
603
- title: c.textPrimaryBrand,
604
- subtitle: c.textPrimaryBrand,
605
- description: c.textSecondaryBrand
606
+ pretitle: g.textPrimaryBrand,
607
+ title: g.textPrimaryBrand,
608
+ subtitle: g.textPrimaryBrand,
609
+ description: g.textSecondaryBrand
606
610
  },
607
611
  negative: {
608
- pretitle: c.textPrimaryNegative,
609
- title: c.textPrimaryNegative,
610
- subtitle: c.textPrimaryNegative,
611
- description: c.textSecondaryNegative
612
+ pretitle: g.textPrimaryNegative,
613
+ title: g.textPrimaryNegative,
614
+ subtitle: g.textPrimaryNegative,
615
+ description: g.textSecondaryNegative
612
616
  },
613
617
  media: {
614
- pretitle: c.textPrimaryMedia,
615
- title: c.textPrimaryMedia,
616
- subtitle: c.textPrimaryMedia,
617
- description: e === "cover" && o ? c.textPrimaryMedia : c.textSecondaryMedia
618
+ pretitle: g.textPrimaryMedia,
619
+ title: g.textPrimaryMedia,
620
+ subtitle: g.textPrimaryMedia,
621
+ description: e === "cover" && o ? g.textPrimaryMedia : g.textSecondaryMedia
618
622
  }
619
- }, N = {
623
+ }, Z = {
620
624
  snap: {
621
625
  pretitle: {
622
- mobileSize: t.cardPretitleSnap.size.mobile,
623
- desktopSize: t.cardPretitleSnap.size.desktop,
624
- mobileLineHeight: t.cardPretitleSnap.lineHeight.mobile,
625
- desktopLineHeight: t.cardPretitleSnap.lineHeight.desktop,
626
+ mobileSize: i.cardPretitleSnap.size.mobile,
627
+ desktopSize: i.cardPretitleSnap.size.desktop,
628
+ mobileLineHeight: i.cardPretitleSnap.lineHeight.mobile,
629
+ desktopLineHeight: i.cardPretitleSnap.lineHeight.desktop,
626
630
  weight: "regular"
627
631
  },
628
632
  title: {
629
- mobileSize: t.cardTitleSnap.size.mobile,
630
- desktopSize: t.cardTitleSnap.size.desktop,
631
- mobileLineHeight: t.cardTitleSnap.lineHeight.mobile,
632
- desktopLineHeight: t.cardTitleSnap.lineHeight.desktop,
633
- weight: t.cardTitle.weight
633
+ mobileSize: i.cardTitleSnap.size.mobile,
634
+ desktopSize: i.cardTitleSnap.size.desktop,
635
+ mobileLineHeight: i.cardTitleSnap.lineHeight.mobile,
636
+ desktopLineHeight: i.cardTitleSnap.lineHeight.desktop,
637
+ weight: i.cardTitle.weight
634
638
  },
635
639
  subtitle: {
636
- mobileSize: t.cardSubtitleSnap.size.mobile,
637
- desktopSize: t.cardSubtitleSnap.size.desktop,
638
- mobileLineHeight: t.cardSubtitleSnap.lineHeight.mobile,
639
- desktopLineHeight: t.cardSubtitleSnap.lineHeight.desktop,
640
+ mobileSize: i.cardSubtitleSnap.size.mobile,
641
+ desktopSize: i.cardSubtitleSnap.size.desktop,
642
+ mobileLineHeight: i.cardSubtitleSnap.lineHeight.mobile,
643
+ desktopLineHeight: i.cardSubtitleSnap.lineHeight.desktop,
640
644
  weight: "regular"
641
645
  },
642
646
  description: {
643
- mobileSize: t.cardDescriptionSnap.size.mobile,
644
- desktopSize: t.cardDescriptionSnap.size.desktop,
645
- mobileLineHeight: t.cardDescriptionSnap.lineHeight.mobile,
646
- desktopLineHeight: t.cardDescriptionSnap.lineHeight.desktop,
647
+ mobileSize: i.cardDescriptionSnap.size.mobile,
648
+ desktopSize: i.cardDescriptionSnap.size.desktop,
649
+ mobileLineHeight: i.cardDescriptionSnap.lineHeight.mobile,
650
+ desktopLineHeight: i.cardDescriptionSnap.lineHeight.desktop,
647
651
  weight: "regular"
648
652
  }
649
653
  },
650
654
  default: {
651
655
  pretitle: {
652
- mobileSize: t.cardPretitleDefault.size.mobile,
653
- desktopSize: t.cardPretitleDefault.size.desktop,
654
- mobileLineHeight: t.cardPretitleDefault.lineHeight.mobile,
655
- desktopLineHeight: t.cardPretitleDefault.lineHeight.desktop,
656
+ mobileSize: i.cardPretitleDefault.size.mobile,
657
+ desktopSize: i.cardPretitleDefault.size.desktop,
658
+ mobileLineHeight: i.cardPretitleDefault.lineHeight.mobile,
659
+ desktopLineHeight: i.cardPretitleDefault.lineHeight.desktop,
656
660
  weight: "regular"
657
661
  },
658
662
  title: {
659
- mobileSize: t.cardTitleDefault.size.mobile,
660
- desktopSize: t.cardTitleDefault.size.desktop,
661
- mobileLineHeight: t.cardTitleDefault.lineHeight.mobile,
662
- desktopLineHeight: t.cardTitleDefault.lineHeight.desktop,
663
- weight: t.cardTitle.weight
663
+ mobileSize: i.cardTitleDefault.size.mobile,
664
+ desktopSize: i.cardTitleDefault.size.desktop,
665
+ mobileLineHeight: i.cardTitleDefault.lineHeight.mobile,
666
+ desktopLineHeight: i.cardTitleDefault.lineHeight.desktop,
667
+ weight: i.cardTitle.weight
664
668
  },
665
669
  subtitle: {
666
- mobileSize: t.cardSubtitleDefault.size.mobile,
667
- desktopSize: t.cardSubtitleDefault.size.desktop,
668
- mobileLineHeight: t.cardSubtitleDefault.lineHeight.mobile,
669
- desktopLineHeight: t.cardSubtitleDefault.lineHeight.desktop,
670
+ mobileSize: i.cardSubtitleDefault.size.mobile,
671
+ desktopSize: i.cardSubtitleDefault.size.desktop,
672
+ mobileLineHeight: i.cardSubtitleDefault.lineHeight.mobile,
673
+ desktopLineHeight: i.cardSubtitleDefault.lineHeight.desktop,
670
674
  weight: "regular"
671
675
  },
672
676
  description: {
673
- mobileSize: t.cardDescriptionDefault.size.mobile,
674
- desktopSize: t.cardDescriptionDefault.size.desktop,
675
- mobileLineHeight: t.cardDescriptionDefault.lineHeight.mobile,
676
- desktopLineHeight: t.cardDescriptionDefault.lineHeight.desktop,
677
+ mobileSize: i.cardDescriptionDefault.size.mobile,
678
+ desktopSize: i.cardDescriptionDefault.size.desktop,
679
+ mobileLineHeight: i.cardDescriptionDefault.lineHeight.mobile,
680
+ desktopLineHeight: i.cardDescriptionDefault.lineHeight.desktop,
677
681
  weight: "regular"
678
682
  }
679
683
  },
680
684
  display: {
681
685
  pretitle: {
682
- mobileSize: t.text2.size.mobile,
683
- desktopSize: t.text2.size.desktop,
684
- mobileLineHeight: t.text2.lineHeight.mobile,
685
- desktopLineHeight: t.text2.lineHeight.desktop,
686
+ mobileSize: i.text2.size.mobile,
687
+ desktopSize: i.text2.size.desktop,
688
+ mobileLineHeight: i.text2.lineHeight.mobile,
689
+ desktopLineHeight: i.text2.lineHeight.desktop,
686
690
  weight: "regular"
687
691
  },
688
692
  title: {
689
- mobileSize: t.text6.size.mobile,
690
- desktopSize: t.text6.size.desktop,
691
- mobileLineHeight: t.text6.lineHeight.mobile,
692
- desktopLineHeight: t.text6.lineHeight.desktop,
693
- weight: t.text6.weight
693
+ mobileSize: i.text6.size.mobile,
694
+ desktopSize: i.text6.size.desktop,
695
+ mobileLineHeight: i.text6.lineHeight.mobile,
696
+ desktopLineHeight: i.text6.lineHeight.desktop,
697
+ weight: i.text6.weight
694
698
  },
695
699
  subtitle: {
696
- mobileSize: t.text2.size.mobile,
697
- desktopSize: t.text2.size.desktop,
698
- mobileLineHeight: t.text2.lineHeight.mobile,
699
- desktopLineHeight: t.text2.lineHeight.desktop,
700
+ mobileSize: i.text2.size.mobile,
701
+ desktopSize: i.text2.size.desktop,
702
+ mobileLineHeight: i.text2.lineHeight.mobile,
703
+ desktopLineHeight: i.text2.lineHeight.desktop,
700
704
  weight: "regular"
701
705
  },
702
706
  description: {
703
- mobileSize: t.text3.size.mobile,
704
- desktopSize: t.text3.size.desktop,
705
- mobileLineHeight: t.text3.lineHeight.mobile,
706
- desktopLineHeight: t.text3.lineHeight.desktop,
707
+ mobileSize: i.text3.size.mobile,
708
+ desktopSize: i.text3.size.desktop,
709
+ mobileLineHeight: i.text3.lineHeight.mobile,
710
+ desktopLineHeight: i.text3.lineHeight.desktop,
707
711
  weight: "regular"
708
712
  }
709
713
  }
710
- }, P = E[n] || E[M] || E.default, L = N[r] || N.default, V = l ? "0 0 15px rgba(0, 0, 0, 0.4)" : void 0, oe = s && // Read order 2. Visual order 1
711
- /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
714
+ }, z = X[h] || X[ue] || X.default, P = Z[u] || Z.default, M = D ? "0 0 15px rgba(0, 0, 0, 0.4)" : void 0, V = d ? (H === null || H === void 0 ? void 0 : H.text) && (T === null || T === void 0 ? void 0 : T.text) ? (0, _headings.isBiggerHeading)(n, p) ? "title" : "pretitle" : (H === null || H === void 0 ? void 0 : H.text) ? "title" : (T === null || T === void 0 ? void 0 : T.text) ? "pretitle" : l ? "headline" : x ? "subtitle" : s ? "description" : null : null, I = (j, ee, te)=>j ? te ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({}, ee), {
715
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
716
+ maybe: !0
717
+ }, d), {
718
+ ref: r,
719
+ className: (0, _classnames.default)(_cardinternalcssmistica.touchable, _cardinternalcssmistica.stretchedLink),
720
+ children: j
721
+ }))
722
+ })) : /* @__PURE__ */ (0, _jsxruntime.jsx)("div", _object_spread_props(_object_spread({}, ee), {
723
+ children: j
724
+ })) : null, K = I(l && typeof l == "string" ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_tag.default, {
725
+ type: "promo",
726
+ children: l
727
+ }) : l, {
712
728
  style: {
713
- paddingBottom: 8,
714
- order: 1
729
+ order: 1,
730
+ paddingBottom: 8
715
731
  },
716
732
  "data-testid": "headline",
717
- ref: a,
718
- children: typeof s == "string" ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_tag.default, {
719
- type: "promo",
720
- children: s
721
- }) : s
722
- }), T = d && // Read order: 3 or 1. Visual order 2
723
- /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
733
+ ref: a
734
+ }, V === "headline"), E = I((T === null || T === void 0 ? void 0 : T.text) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, L, P.pretitle), {
735
+ as: p || "p",
736
+ truncate: b,
737
+ color: z.pretitle,
738
+ textShadow: M,
739
+ "aria-label": T === null || T === void 0 ? void 0 : T["aria-label"],
740
+ children: T.text
741
+ })), {
724
742
  style: {
725
743
  paddingBottom: 4,
726
744
  order: 2
727
745
  },
728
- "data-testid": "pretitle",
729
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, C, L.pretitle), {
730
- as: b || "p",
731
- truncate: v,
732
- color: P.pretitle,
733
- textShadow: V,
734
- children: d
735
- }))
736
- }), X = u && // Read order: 1 or 3. Visual order 3
737
- /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
746
+ "data-testid": "pretitle"
747
+ }, V === "pretitle"), $ = I((H === null || H === void 0 ? void 0 : H.text) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, L, P.title), {
748
+ as: n,
749
+ truncate: v,
750
+ color: z.title,
751
+ textShadow: M,
752
+ "aria-label": H === null || H === void 0 ? void 0 : H["aria-label"],
753
+ children: H.text
754
+ })), {
738
755
  style: {
739
756
  paddingBottom: 4,
740
757
  order: 3
741
758
  },
742
- "data-testid": "title",
743
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, C, L.title), {
744
- as: h,
745
- truncate: m,
746
- color: P.title,
747
- textShadow: V,
748
- children: u
749
- }))
750
- }), re = p && // Read order: 4. Visual order 4
751
- /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
759
+ "data-testid": "title"
760
+ }, V === "title"), W = I(x && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, L, P.subtitle), {
761
+ as: "p",
762
+ truncate: k,
763
+ color: z.subtitle,
764
+ textShadow: M,
765
+ children: x
766
+ })), {
752
767
  style: {
753
768
  paddingBottom: 0,
754
769
  order: 4
755
770
  },
756
- "data-testid": "subtitle",
757
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, C, L.subtitle), {
758
- as: "p",
759
- truncate: x,
760
- color: P.subtitle,
761
- textShadow: V,
762
- children: p
763
- }))
764
- }), ae = f && // Read order: 5. Visual order 5
765
- /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
771
+ "data-testid": "subtitle"
772
+ }, V === "subtitle"), he = I(s && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, L, P.description), {
773
+ as: "p",
774
+ truncate: S,
775
+ color: z.description,
776
+ textShadow: M,
777
+ children: s
778
+ })), {
766
779
  style: {
767
780
  paddingTop: 4,
768
781
  order: 5
769
782
  },
770
- "data-testid": "description",
771
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, C, L.description), {
772
- as: "p",
773
- truncate: k,
774
- color: P.description,
775
- textShadow: V,
776
- children: f
777
- }))
778
- }), [K, $] = u && (0, _headings.isBiggerHeading)(h, b) ? [
779
- X,
780
- T
783
+ "data-testid": "description"
784
+ }, V === "description"), [me, ge] = H && (0, _headings.isBiggerHeading)(n, p) ? [
785
+ $,
786
+ E
781
787
  ] : [
782
- T,
783
- X
788
+ E,
789
+ $
784
790
  ];
785
791
  return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
786
792
  style: {
@@ -788,18 +794,66 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
788
794
  flexDirection: "column"
789
795
  },
790
796
  children: [
797
+ me,
791
798
  K,
792
- oe,
793
- $,
794
- re,
795
- ae
799
+ ge,
800
+ W,
801
+ he
802
+ ]
803
+ });
804
+ }, ci = (param)=>{
805
+ let { children: e, isTouchable: o, touchableAriaLabel: a, ariaLabeledByProp: r, ariaDescriptionProp: d, ariaDescribedByProp: u, touchableProps: h, segregateTouchableContent: l, hasTouchableInContent: c, overlayClassname: n, contentStyle: v, contentRadiusStyle: m } = param;
806
+ const p = o && (!l || c), b = /**
807
+ * role="text" makes VoiceOver read the whole div as a single text block. This is needed
808
+ * for VoiceOver rectangle to cover the whole card when using aria-label in <a> elements,
809
+ * otherwise it only renders a small rectangle in the begining of the <a> element.
810
+ * This workaround is only needed for <a> not for <button> (ask safari developers why)
811
+ */ /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
812
+ role: !l && (h.href || h.to) ? "text" : void 0,
813
+ className: _cardinternalcssmistica.touchableContent,
814
+ style: _object_spread({}, v, m),
815
+ children: [
816
+ p && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
817
+ className: n
818
+ }),
819
+ e
796
820
  ]
797
821
  });
798
- }, ri = [
822
+ return o && l ? c ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
823
+ className: (0, _classnames.default)(_cardinternalcssmistica.touchable, _cardinternalcssmistica.touchableContainer),
824
+ children: b
825
+ }) : /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
826
+ style: {
827
+ position: "relative"
828
+ },
829
+ children: [
830
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
831
+ "aria-label": a,
832
+ maybe: !0
833
+ }, h), {
834
+ className: (0, _classnames.default)(_cardinternalcssmistica.touchable, _cardinternalcssmistica.touchableContainer, _cardinternalcssmistica.stretchedTouchable),
835
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
836
+ className: (0, _classnames.default)(n),
837
+ style: m
838
+ })
839
+ })),
840
+ b
841
+ ]
842
+ }) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
843
+ maybe: !0,
844
+ "aria-label": o ? a : void 0,
845
+ "aria-labelledby": o ? r : void 0,
846
+ "aria-description": o ? d : void 0,
847
+ "aria-describedby": o ? u : void 0,
848
+ className: (0, _classnames.default)(_cardinternalcssmistica.touchable, _cardinternalcssmistica.touchableContainer)
849
+ }, h), {
850
+ children: b
851
+ }));
852
+ }, pi = [
799
853
  _skincontractcssmistica.vars.colors.cardContentOverlay,
800
854
  _skincontractcssmistica.vars.colors.cardFooterOverlay
801
- ], ai = /rgba\([^,]+,\s*[^,]+,\s*[^,]+,\s*([^)]+)\)/g, je = (e, o)=>e.replace(ai, (a, r)=>(0, _color.applyAlpha)(o, parseFloat(r))), Vi = /*#__PURE__*/ _react.forwardRef((_param, et)=>{
802
- var { type: e, size: o, backgroundColor: a, imageSrc: r, imageSrcSet: n, imageAlt: s = "", imageFit: u = "fill-center", videoSrc: h, videoRef: m, media: d, mediaAspectRatio: b = "auto", mediaPosition: v = "top", mediaWidth: p = 150, circledImage: x, asset: f, headline: k, title: l, titleAs: t = "h3", titleLinesMax: c, pretitle: M, pretitleAs: C, pretitleLinesMax: E, subtitle: N, subtitleLinesMax: P, description: L, descriptionLinesMax: V, dataAttributes: oe, variant: T, width: X, height: re, aspectRatio: ae, slot: K, slotAlignment: $ = "content", buttonPrimary: ne, buttonSecondary: de, buttonLink: se, showFooter: Ke, footerBackgroundColor: We, footerVariant: Ye, footerSlot: ke, footerDivider: qe, topActions: xe, onClose: ye, closeButtonLabel: Je, "aria-label": Se, "aria-labelledby": le, "aria-description": Be, "aria-describedby": Re, gradientOverlayColor: W, videoLoop: Qe, videoAutoPlay: Ue, videoDataAttributes: Ze } = _param, A = _object_without_properties(_param, [
855
+ ], ui = /rgba\([^,]+,\s*[^,]+,\s*[^,]+,\s*([^)]+)\)/g, Ue = (e, o)=>e.replace(ui, (a, r)=>(0, _color.applyAlpha)(o, parseFloat(r))), ji = /*#__PURE__*/ _react.forwardRef((_param, at)=>{
856
+ var { type: e, size: o, backgroundColor: a, imageSrc: r, imageSrcSet: d, imageAlt: u = "", imageFit: h = "fill-center", videoSrc: l, videoRef: c, media: n, mediaAspectRatio: v = "auto", mediaPosition: m = "top", mediaWidth: p = 150, circledImage: b, asset: x, headline: k, title: s, titleAs: S = "h3", titleLinesMax: D, pretitle: i, pretitleAs: g, pretitleLinesMax: ue, subtitle: H, subtitleLinesMax: T, description: L, descriptionLinesMax: X, dataAttributes: Z, variant: z, width: P, height: M, aspectRatio: V, slot: I, slotAlignment: K = "content", buttonPrimary: E, buttonSecondary: $, buttonLink: W, showFooter: he, footerBackgroundColor: me, footerVariant: ge, footerSlot: j, footerDivider: ee, topActions: te, onClose: Ie, closeButtonLabel: tt, "aria-label": Ne, "aria-labelledby": be, "aria-description": De, "aria-describedby": Te, gradientOverlayColor: ie, videoLoop: it, videoAutoPlay: ot, videoDataAttributes: rt, segregateTouchableContent: fe = !1, touchableAriaLabel: Ve } = _param, Y = _object_without_properties(_param, [
803
857
  "type",
804
858
  "size",
805
859
  "backgroundColor",
@@ -851,237 +905,239 @@ const Xt = /*#__PURE__*/ _react.forwardRef((param, p)=>{
851
905
  "gradientOverlayColor",
852
906
  "videoLoop",
853
907
  "videoAutoPlay",
854
- "videoDataAttributes"
908
+ "videoDataAttributes",
909
+ "segregateTouchableContent",
910
+ "touchableAriaLabel"
855
911
  ]);
856
- const { text: He, ref: tt } = (0, _hooks.useInnerText)(), { text: we, ref: it } = (0, _hooks.useInnerText)(), B = !!(A.href || A.to || A.onPress), ce = !!(ne || de || se), { colorValues: Le } = (0, _hooks.useTheme)(), pe = e === "media" || e === "naked", ot = pe && (r !== void 0 || n !== void 0), Ce = pe && h !== void 0, Te = ot || Ce, ue = pe && !!d && !Te, R = Te || ue, H = e === "naked", S = R ? v : "top", ze = e === "naked" && x ? 1 : b, he = e === "cover" && (r !== void 0 || n !== void 0), Y = e === "cover" && h !== void 0, De = !!a || he || Y, F = he || Y, rt = Ce || Y, { video: Ie, videoAction: me } = Ut({
857
- src: rt ? h : void 0,
912
+ const { text: Ae, ref: nt } = (0, _hooks.useInnerText)(), { text: Oe, ref: dt } = (0, _hooks.useInnerText)(), lt = _react.useRef(null), A = !!(Y.href || Y.to || Y.onPress), Fe = !!(fe && !Ve && (s || i || k || H || L)), ve = !!(E || $ || W), { colorValues: Pe } = (0, _hooks.useTheme)(), xe = e === "media" || e === "naked", st = xe && (r !== void 0 || d !== void 0), Me = xe && l !== void 0, Ee = st || Me, ke = xe && !!n && !Ee, w = Ee || ke, C = e === "naked", B = w ? m : "top", $e = e === "naked" && b ? 1 : v, ye = e === "cover" && (r !== void 0 || d !== void 0), oe = e === "cover" && l !== void 0, je = !!a || ye || oe, G = ye || oe, ct = Me || oe, { video: Ge, videoAction: Se } = ri({
913
+ src: ct ? l : void 0,
858
914
  poster: r,
859
- ref: m,
860
- autoHeight: e === "cover" || S !== "top" ? !1 : (0, _aspectratiosupport.aspectRatioToNumber)(ze) === 0,
861
- loop: Qe,
862
- autoPlay: Ue,
863
- dataAttributes: Ze
864
- }), j = (0, _themevariantcontext.useThemeVariant)(), at = T ? (0, _themevariantcontext.normalizeVariant)(T) : j, z = T && (0, _themevariantcontext.normalizeVariant)(T) || (e === "cover" && De ? "media" : "default"), nt = z === "brand" ? _cardinternalcssmistica.touchableCardOverlayInverse : _cardinternalcssmistica.touchableCardOverlay, D = Ke && (ce || !!ke) || ce && B, Ne = !D && ce, q = ((xe === null || xe === void 0 ? void 0 : xe.length) || 0) + (ye ? 1 : 0), Pe = me ? q + 1 : q, dt = f && !(R && S === "left"), st = e !== "cover" && Pe > 0 && !dt && !k, G = e === "cover" || e === "data" && o === "display", O = _skincontractcssmistica.vars.borderRadii.container, lt = he || Y ? "transparent" : a || (z === "media" ? j === "brand" || j === "media" || j === "negative" ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverBrand : _skincontractcssmistica.vars.colors.backgroundBrand : z === "alternative" ? _skincontractcssmistica.vars.colors.backgroundAlternative : void 0), ct = Se || (le ? void 0 : (l && (0, _headings.isBiggerHeading)(t, C) ? [
865
- l,
915
+ ref: c,
916
+ autoHeight: e === "cover" || B !== "top" ? !1 : (0, _aspectratiosupport.aspectRatioToNumber)($e) === 0,
917
+ loop: it,
918
+ autoPlay: ot,
919
+ dataAttributes: rt
920
+ }), q = (0, _themevariantcontext.useThemeVariant)(), pt = z ? (0, _themevariantcontext.normalizeVariant)(z) : q, O = z && (0, _themevariantcontext.normalizeVariant)(z) || (e === "cover" && je ? "media" : "default"), ut = O === "brand" ? _cardinternalcssmistica.touchableCardOverlayInverse : _cardinternalcssmistica.touchableCardOverlay, F = he && (ve || !!j) || ve && A, _e = !F && ve, re = ((te === null || te === void 0 ? void 0 : te.length) || 0) + (Ie ? 1 : 0), Xe = Se ? re + 1 : re, ht = x && !(w && B === "left"), mt = e !== "cover" && Xe > 0 && !ht && !k, J = e === "cover" || e === "data" && o === "display", _ = _skincontractcssmistica.vars.borderRadii.container, gt = ye || oe ? "transparent" : a || (O === "media" ? q === "brand" || q === "media" || q === "negative" ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverBrand : _skincontractcssmistica.vars.colors.backgroundBrand : O === "alternative" ? _skincontractcssmistica.vars.colors.backgroundAlternative : void 0), bt = Ve || Ne || (be ? void 0 : (s && (0, _headings.isBiggerHeading)(S, g) ? [
866
921
  s,
867
- we,
868
- M,
869
- N,
922
+ u,
923
+ Oe,
924
+ i,
925
+ H,
870
926
  L,
871
- He
927
+ Ae
872
928
  ] : [
873
- M,
874
- we,
875
- l,
929
+ i,
930
+ Oe,
876
931
  s,
877
- N,
932
+ u,
933
+ H,
878
934
  L,
879
- He
880
- ]).filter(Boolean).join(" ")), pt = ()=>W === "transparent" ? [
935
+ Ae
936
+ ]).filter(Boolean).join(" ")), ft = ()=>ie === "transparent" ? [
881
937
  "transparent",
882
938
  "transparent"
883
- ] : W ? [
884
- je(Le.cardContentOverlay, W),
885
- je(Le.cardFooterOverlay, W)
886
- ] : ri, [ut, ht] = pt();
887
- return /* @__PURE__ */ (0, _jsxruntime.jsxs)(Xt, {
888
- "aria-label": B ? void 0 : Se,
889
- "aria-labelledby": B ? void 0 : le,
890
- "aria-description": B ? void 0 : Be,
891
- "aria-describedby": B ? void 0 : Re,
939
+ ] : ie ? [
940
+ Ue(Pe.cardContentOverlay, ie),
941
+ Ue(Pe.cardFooterOverlay, ie)
942
+ ] : pi, [vt, xt] = ft();
943
+ return /* @__PURE__ */ (0, _jsxruntime.jsxs)(Qt, {
944
+ "aria-label": A ? void 0 : Ne,
945
+ "aria-labelledby": A ? void 0 : be,
946
+ "aria-description": A ? void 0 : De,
947
+ "aria-describedby": A ? void 0 : Te,
892
948
  type: e,
893
949
  size: o,
894
- dataAttributes: oe,
895
- ref: et,
896
- variant: z,
897
- width: X,
898
- height: re,
899
- aspectRatio: ae,
900
- backgroundColor: lt,
950
+ dataAttributes: Z,
951
+ ref: at,
952
+ variant: O,
953
+ width: P,
954
+ height: M,
955
+ aspectRatio: V,
956
+ backgroundColor: gt,
901
957
  children: [
902
- F && /* @__PURE__ */ (0, _jsxruntime.jsx)(Kt, {
903
- video: Ie,
958
+ G && /* @__PURE__ */ (0, _jsxruntime.jsx)(Ut, {
959
+ video: Ge,
904
960
  src: r,
905
- srcSet: n,
906
- backgroundVariant: at
961
+ srcSet: d,
962
+ backgroundVariant: pt
907
963
  }),
908
- me && // The video action is placed first in the card reading order, so it is placed outside the other topActions container
964
+ Se && // The video action is placed first in the card reading order, so it is placed outside the other topActions container
909
965
  /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
910
966
  "data-testid": "videoAction",
911
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)($e, {
967
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(Qe, {
912
968
  testid: "videoAction",
913
969
  variant: "media",
914
970
  actions: [
915
- me
971
+ Se
916
972
  ],
917
973
  containerStyles: {
918
974
  position: "absolute",
919
975
  top: 16,
920
- left: S === "left" ? typeof p == "number" ? `calc(${p}px - 48px)` : `calc(${p} - 48px)` : "auto",
921
- right: S !== "left" ? q * 48 + 16 : "auto"
976
+ left: B === "left" ? typeof p == "number" ? `calc(${p}px - 48px)` : `calc(${p} - 48px)` : "auto",
977
+ right: B !== "left" ? re * 48 + 16 : "auto"
922
978
  }
923
979
  })
924
980
  }),
925
- /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
926
- maybe: !0,
927
- "aria-label": B ? ct : void 0,
928
- "aria-labelledby": B ? le : void 0,
929
- "aria-description": B ? Be : void 0,
930
- "aria-describedby": B ? Re : void 0,
931
- className: (0, _classnames.default)(_cardinternalcssmistica.touchable, _cardinternalcssmistica.touchableContainer)
932
- }, A), {
933
- children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
934
- role: A.href || A.to ? "text" : void 0,
935
- className: _cardinternalcssmistica.touchableContent,
936
- style: {
937
- flexDirection: S === "top" ? "column" : S === "left" ? "row" : "row-reverse",
938
- borderTopLeftRadius: H && !R ? 0 : `calc(${O} - 1px)`,
939
- borderTopRightRadius: H && !R ? 0 : `calc(${O} - 1px)`,
940
- borderBottomLeftRadius: D || H ? 0 : `calc(${O} - 1px)`,
941
- borderBottomRightRadius: D || H ? 0 : `calc(${O} - 1px)`
942
- },
943
- children: [
944
- B && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
945
- className: nt
946
- }),
947
- ue && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
948
- style: _object_spread({
949
- // for some reason, this width is required to pass headless screenshot tests
950
- // otherwise, it gets 0px width and the media is not visible
951
- width: "100%"
952
- }, e === "naked" ? void 0 : (0, _css.applyCssVars)({
953
- [_imagecssmistica.vars.mediaBorderRadius]: "0px"
954
- })),
955
- children: d
956
- }),
957
- ue && /* @__PURE__ */ (0, _jsxruntime.jsx)(ee, {
958
- absolute: !0,
959
- size: o,
960
- asset: f,
961
- type: e
962
- }),
963
- R && /* @__PURE__ */ (0, _jsxruntime.jsx)(ti, {
964
- type: e,
965
- size: o,
966
- mediaAspectRatio: ze,
967
- mediaPosition: S,
968
- asset: f,
969
- video: Ie,
970
- imageFit: u,
971
- imageSrc: r,
972
- imageSrcSet: n,
973
- imageAlt: s,
974
- mediaWidth: p,
975
- circledImage: x
981
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)(ci, {
982
+ isTouchable: A,
983
+ touchableAriaLabel: bt,
984
+ ariaLabeledByProp: be,
985
+ ariaDescriptionProp: De,
986
+ ariaDescribedByProp: Te,
987
+ touchableProps: Y,
988
+ segregateTouchableContent: fe,
989
+ hasTouchableInContent: Fe,
990
+ overlayClassname: ut,
991
+ contentStyle: {
992
+ flexDirection: B === "top" ? "column" : B === "left" ? "row" : "row-reverse"
993
+ },
994
+ contentRadiusStyle: {
995
+ borderTopLeftRadius: C && !w ? 0 : `calc(${_} - 1px)`,
996
+ borderTopRightRadius: C && !w ? 0 : `calc(${_} - 1px)`,
997
+ borderBottomLeftRadius: F || C ? 0 : `calc(${_} - 1px)`,
998
+ borderBottomRightRadius: F || C ? 0 : `calc(${_} - 1px)`
999
+ },
1000
+ children: [
1001
+ ke && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1002
+ style: _object_spread({
1003
+ // for some reason, this width is required to pass headless screenshot tests
1004
+ // otherwise, it gets 0px width and the media is not visible
1005
+ width: "100%"
1006
+ }, e === "naked" ? void 0 : (0, _css.applyCssVars)({
1007
+ [_imagecssmistica.vars.mediaBorderRadius]: "0px"
1008
+ })),
1009
+ children: n
1010
+ }),
1011
+ ke && /* @__PURE__ */ (0, _jsxruntime.jsx)(se, {
1012
+ absolute: !0,
1013
+ size: o,
1014
+ asset: x,
1015
+ type: e
1016
+ }),
1017
+ w && /* @__PURE__ */ (0, _jsxruntime.jsx)(di, {
1018
+ type: e,
1019
+ size: o,
1020
+ mediaAspectRatio: $e,
1021
+ mediaPosition: B,
1022
+ asset: x,
1023
+ video: Ge,
1024
+ imageFit: h,
1025
+ imageSrc: r,
1026
+ imageSrcSet: d,
1027
+ imageAlt: u,
1028
+ mediaWidth: p,
1029
+ circledImage: b
1030
+ }),
1031
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
1032
+ "aria-hidden": A && !fe,
1033
+ "data-testid": "body",
1034
+ className: (0, _classnames.default)(_cardinternalcssmistica.touchable, {
1035
+ [_cardinternalcssmistica.containerPaddingTopVariants[o]]: !!x && e !== "naked" && (!w || B === "right")
976
1036
  }),
977
- /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
978
- "aria-hidden": B,
979
- "data-testid": "body",
980
- className: (0, _classnames.default)(_cardinternalcssmistica.touchable, {
981
- [_cardinternalcssmistica.containerPaddingTopVariants[o]]: !!f && e !== "naked" && (!R || S === "right")
1037
+ children: [
1038
+ (!w || B === "right") && /* @__PURE__ */ (0, _jsxruntime.jsx)(se, {
1039
+ size: o,
1040
+ asset: x,
1041
+ type: e
982
1042
  }),
983
- children: [
984
- (!R || S === "right") && /* @__PURE__ */ (0, _jsxruntime.jsx)(ee, {
985
- size: o,
986
- asset: f,
987
- type: e
988
- }),
989
- G && /* @__PURE__ */ (0, _jsxruntime.jsx)(U, {
990
- minHeight: e === "cover" && Pe > 0 && !f ? 56 : 0
991
- }),
992
- /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
993
- className: (0, _classnames.default)(_cardinternalcssmistica.containerPaddingXVariants[o], _cardinternalcssmistica.containerPaddingBottomVariants[o], _cardinternalcssmistica.containerPaddingTopVariants[o]),
994
- style: {
995
- display: "flex",
996
- flexDirection: "column",
997
- height: G ? void 0 : "100%",
998
- background: F ? ut : void 0,
999
- // padding overrides for specific cases
1000
- paddingTop: G && F ? 40 : f || H && S !== "top" ? 16 : H && !R ? 0 : void 0,
1001
- paddingLeft: H && (S !== "left" || !R) ? 0 : void 0,
1002
- paddingRight: H && S !== "right" ? 16 : void 0,
1003
- paddingBottom: D ? 16 : H ? 0 : void 0,
1004
- borderBottomLeftRadius: D ? 0 : O,
1005
- borderBottomRightRadius: D ? 0 : O
1006
- },
1007
- children: [
1008
- /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
1009
- className: _cardinternalcssmistica.contentContainer,
1010
- children: [
1011
- /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1012
- className: _cardinternalcssmistica.textContent,
1013
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(oi, {
1014
- type: e,
1015
- hasCustomBackground: De,
1016
- headlineRef: it,
1017
- variant: z,
1018
- size: o,
1019
- headline: k,
1020
- pretitle: M,
1021
- pretitleAs: C,
1022
- pretitleLinesMax: E,
1023
- title: l,
1024
- titleAs: t,
1025
- titleLinesMax: c,
1026
- subtitle: N,
1027
- subtitleLinesMax: P,
1028
- description: L,
1029
- descriptionLinesMax: V,
1030
- withTextShadow: F
1031
- })
1032
- }),
1033
- st && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1034
- style: {
1035
- flexShrink: 0,
1036
- flexGrow: 0,
1037
- width: q * 48 - // required space depends on the card padding
1038
- (e === "naked" ? 0 : o === "display" ? 24 : 16) - //
1039
- 8
1040
- }
1041
- })
1042
- ]
1043
- }),
1044
- !G && $ === "bottom" && /* @__PURE__ */ (0, _jsxruntime.jsx)(U, {}),
1045
- K && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1046
- ref: tt,
1047
- "data-testid": "slot",
1048
- className: (0, _classnames.default)($ === "space-between" && _cardinternalcssmistica.slotContainerSpaceBetween),
1049
- children: K
1050
- }),
1051
- !G && $ === "content" && Ne && /* @__PURE__ */ (0, _jsxruntime.jsx)(U, {}),
1052
- Ne && /* @__PURE__ */ (0, _jsxruntime.jsx)(Zt, {
1053
- size: o,
1054
- buttonPrimary: ne,
1055
- buttonSecondary: de,
1056
- buttonLink: se
1057
- })
1058
- ]
1059
- })
1060
- ]
1061
- })
1062
- ]
1063
- })
1064
- })),
1065
- D && /* @__PURE__ */ (0, _jsxruntime.jsx)(ii, {
1043
+ J && /* @__PURE__ */ (0, _jsxruntime.jsx)(de, {
1044
+ minHeight: e === "cover" && Xe > 0 && !x ? 56 : 0
1045
+ }),
1046
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
1047
+ className: (0, _classnames.default)(_cardinternalcssmistica.containerPaddingXVariants[o], _cardinternalcssmistica.containerPaddingBottomVariants[o], _cardinternalcssmistica.containerPaddingTopVariants[o]),
1048
+ style: {
1049
+ display: "flex",
1050
+ flexDirection: "column",
1051
+ height: J ? void 0 : "100%",
1052
+ background: G ? vt : void 0,
1053
+ // padding overrides for specific cases
1054
+ paddingTop: J && G ? 40 : x || C && B !== "top" ? 16 : C && !w ? 0 : void 0,
1055
+ paddingLeft: C && (B !== "left" || !w) ? 0 : void 0,
1056
+ paddingRight: C && B !== "right" ? 16 : void 0,
1057
+ paddingBottom: F ? 16 : C ? 0 : void 0,
1058
+ borderBottomLeftRadius: F ? 0 : _,
1059
+ borderBottomRightRadius: F ? 0 : _
1060
+ },
1061
+ children: [
1062
+ /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
1063
+ className: _cardinternalcssmistica.contentContainer,
1064
+ children: [
1065
+ /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1066
+ className: _cardinternalcssmistica.textContent,
1067
+ children: /* @__PURE__ */ (0, _jsxruntime.jsx)(si, _object_spread({
1068
+ type: e,
1069
+ hasCustomBackground: je,
1070
+ headlineRef: dt,
1071
+ variant: O,
1072
+ size: o,
1073
+ headline: k,
1074
+ pretitle: i,
1075
+ pretitleAs: g,
1076
+ pretitleLinesMax: ue,
1077
+ title: s,
1078
+ titleAs: S,
1079
+ titleLinesMax: D,
1080
+ subtitle: H,
1081
+ subtitleLinesMax: T,
1082
+ description: L,
1083
+ descriptionLinesMax: X,
1084
+ withTextShadow: G
1085
+ }, Fe ? {
1086
+ touchableRef: lt,
1087
+ touchableProps: Y
1088
+ } : {}))
1089
+ }),
1090
+ mt && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1091
+ style: {
1092
+ flexShrink: 0,
1093
+ flexGrow: 0,
1094
+ width: re * 48 - // required space depends on the card padding
1095
+ (e === "naked" ? 0 : o === "display" ? 24 : 16) - //
1096
+ 8
1097
+ }
1098
+ })
1099
+ ]
1100
+ }),
1101
+ !J && K === "bottom" && /* @__PURE__ */ (0, _jsxruntime.jsx)(de, {}),
1102
+ I && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1103
+ ref: nt,
1104
+ "data-testid": "slot",
1105
+ className: (0, _classnames.default)(K === "space-between" && _cardinternalcssmistica.slotContainerSpaceBetween),
1106
+ children: I
1107
+ }),
1108
+ !J && K === "content" && _e && /* @__PURE__ */ (0, _jsxruntime.jsx)(de, {}),
1109
+ _e && /* @__PURE__ */ (0, _jsxruntime.jsx)(ai, {
1110
+ size: o,
1111
+ buttonPrimary: E,
1112
+ buttonSecondary: $,
1113
+ buttonLink: W
1114
+ })
1115
+ ]
1116
+ })
1117
+ ]
1118
+ })
1119
+ ]
1120
+ }),
1121
+ F && /* @__PURE__ */ (0, _jsxruntime.jsx)(li, {
1066
1122
  type: e,
1067
- variant: z,
1068
- footerVariant: Ye,
1069
- footerBackgroundColor: We,
1070
- footerDivider: qe,
1123
+ variant: O,
1124
+ footerVariant: ge,
1125
+ footerBackgroundColor: me,
1126
+ footerDivider: ee,
1071
1127
  size: o,
1072
- footerSlot: ke,
1073
- buttonPrimary: ne,
1074
- buttonSecondary: de,
1075
- buttonLink: se,
1076
- hasBackgroundImageOrVideo: F,
1077
- externalVariant: j,
1078
- overlayColor: ht
1128
+ footerSlot: j,
1129
+ buttonPrimary: E,
1130
+ buttonSecondary: $,
1131
+ buttonLink: W,
1132
+ hasBackgroundImageOrVideo: G,
1133
+ externalVariant: q,
1134
+ overlayColor: xt
1079
1135
  }),
1080
- /* @__PURE__ */ (0, _jsxruntime.jsx)($e, {
1081
- onClose: ye,
1082
- closeButtonLabel: Je,
1083
- actions: xe,
1084
- variant: F || R && S !== "left" ? "media" : z
1136
+ /* @__PURE__ */ (0, _jsxruntime.jsx)(Qe, {
1137
+ onClose: Ie,
1138
+ closeButtonLabel: tt,
1139
+ actions: te,
1140
+ variant: G || w && B !== "left" ? "media" : O
1085
1141
  })
1086
1142
  ]
1087
1143
  });