@telefonica/mistica 16.57.0-beta.2 → 16.58.0-beta.1

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