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