@telefonica/mistica 16.47.0 → 16.49.0

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