@telefonica/mistica 15.2.1 → 15.4.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 (290) hide show
  1. package/css/mistica.css +1 -1
  2. package/dist/accordion.css-mistica.js +5 -5
  3. package/dist/accordion.d.ts +3 -3
  4. package/dist/accordion.js +75 -71
  5. package/dist/avatar.css-mistica.js +3 -3
  6. package/dist/avatar.js +1 -1
  7. package/dist/badge.css-mistica.js +4 -4
  8. package/dist/box.d.ts +1 -0
  9. package/dist/box.js +13 -12
  10. package/dist/boxed.css-mistica.js +1 -1
  11. package/dist/boxed.js +2 -2
  12. package/dist/button-group.css-mistica.js +1 -1
  13. package/dist/button-group.js +2 -2
  14. package/dist/button-layout.css-mistica.js +10 -10
  15. package/dist/button.css-mistica.js +31 -31
  16. package/dist/button.js +62 -49
  17. package/dist/callout.css-mistica.js +1 -1
  18. package/dist/card.css-mistica.js +19 -16
  19. package/dist/card.css.d.ts +1 -0
  20. package/dist/card.d.ts +7 -5
  21. package/dist/card.js +376 -351
  22. package/dist/carousel.css-mistica.js +18 -18
  23. package/dist/carousel.d.ts +3 -4
  24. package/dist/carousel.js +95 -101
  25. package/dist/checkbox.css-mistica.js +10 -10
  26. package/dist/chip.css-mistica.js +15 -9
  27. package/dist/chip.css.d.ts +2 -0
  28. package/dist/chip.js +49 -47
  29. package/dist/circle.css-mistica.js +1 -1
  30. package/dist/community/advanced-data-card.css-mistica.js +20 -17
  31. package/dist/community/advanced-data-card.css.d.ts +1 -0
  32. package/dist/community/advanced-data-card.d.ts +8 -4
  33. package/dist/community/advanced-data-card.js +25 -24
  34. package/dist/community/blocks.css-mistica.js +1 -1
  35. package/dist/community/blocks.js +10 -8
  36. package/dist/counter.css-mistica.js +9 -9
  37. package/dist/counter.js +7 -7
  38. package/dist/credit-card-number-field.css-mistica.js +6 -6
  39. package/dist/dialog.css-mistica.js +9 -9
  40. package/dist/dialog.js +96 -94
  41. package/dist/double-field.css-mistica.js +4 -4
  42. package/dist/empty-state-card.css-mistica.js +4 -4
  43. package/dist/empty-state.css-mistica.js +6 -6
  44. package/dist/feedback.css-mistica.js +6 -6
  45. package/dist/feedback.d.ts +1 -1
  46. package/dist/feedback.js +87 -99
  47. package/dist/fixed-footer-layout.css-mistica.js +14 -8
  48. package/dist/fixed-footer-layout.css.d.ts +2 -0
  49. package/dist/fixed-footer-layout.d.ts +1 -1
  50. package/dist/fixed-footer-layout.js +79 -86
  51. package/dist/fixed-to-top.d.ts +1 -0
  52. package/dist/fixed-to-top.js +9 -6
  53. package/dist/form.js +6 -6
  54. package/dist/generated/mistica-icons/icon-ethernet-filled.d.ts +4 -0
  55. package/dist/generated/mistica-icons/icon-ethernet-filled.js +111 -0
  56. package/dist/generated/mistica-icons/icon-ethernet-light.d.ts +4 -0
  57. package/dist/generated/mistica-icons/icon-ethernet-light.js +111 -0
  58. package/dist/generated/mistica-icons/icon-ethernet-regular.d.ts +4 -0
  59. package/dist/generated/mistica-icons/icon-ethernet-regular.js +111 -0
  60. package/dist/generated/mistica-icons/icon-routine-filled.d.ts +4 -0
  61. package/dist/generated/mistica-icons/icon-routine-filled.js +111 -0
  62. package/dist/generated/mistica-icons/icon-routine-light.d.ts +4 -0
  63. package/dist/generated/mistica-icons/icon-routine-light.js +111 -0
  64. package/dist/generated/mistica-icons/icon-routine-regular.d.ts +4 -0
  65. package/dist/generated/mistica-icons/icon-routine-regular.js +111 -0
  66. package/dist/header.css-mistica.js +1 -1
  67. package/dist/hero.css-mistica.js +27 -6
  68. package/dist/hero.css.d.ts +5 -0
  69. package/dist/hero.d.ts +3 -2
  70. package/dist/hero.js +97 -99
  71. package/dist/highlighted-card.css-mistica.js +6 -6
  72. package/dist/hooks.d.ts +2 -0
  73. package/dist/hooks.js +39 -44
  74. package/dist/horizontal-scroll.css-mistica.js +1 -1
  75. package/dist/horizontal-scroll.js +2 -2
  76. package/dist/icon-button.css-mistica.js +7 -7
  77. package/dist/icons/icon-error.js +2 -0
  78. package/dist/icons/icon-info.js +2 -0
  79. package/dist/icons/icon-success-vivo-new.js +1 -0
  80. package/dist/icons/icon-success-vivo.js +9 -8
  81. package/dist/image.css-mistica.js +3 -3
  82. package/dist/image.d.ts +1 -0
  83. package/dist/image.js +54 -50
  84. package/dist/index.d.ts +6 -0
  85. package/dist/index.js +24 -0
  86. package/dist/list.css-mistica.js +13 -13
  87. package/dist/list.d.ts +3 -0
  88. package/dist/list.js +261 -217
  89. package/dist/loading-bar.css-mistica.js +5 -5
  90. package/dist/loading-bar.js +2 -2
  91. package/dist/loading-screen.css-mistica.js +8 -8
  92. package/dist/loading-screen.d.ts +1 -1
  93. package/dist/loading-screen.js +3 -3
  94. package/dist/logo.js +40 -27
  95. package/dist/maybe-dismissable.css-mistica.js +1 -1
  96. package/dist/menu.css-mistica.js +3 -3
  97. package/dist/navigation-bar.css-mistica.js +19 -19
  98. package/dist/navigation-breadcrumbs.css-mistica.js +5 -5
  99. package/dist/overscroll-color-context.d.ts +1 -0
  100. package/dist/overscroll-color-context.js +15 -12
  101. package/dist/package-version.js +1 -1
  102. package/dist/pin-field.css-mistica.js +5 -5
  103. package/dist/pin-field.js +2 -2
  104. package/dist/progress-bar.css-mistica.js +3 -3
  105. package/dist/progress-bar.js +4 -4
  106. package/dist/radio-button.css-mistica.js +10 -10
  107. package/dist/radio-button.d.ts +2 -0
  108. package/dist/radio-button.js +70 -68
  109. package/dist/responsive-layout.css-mistica.js +20 -11
  110. package/dist/responsive-layout.d.ts +1 -0
  111. package/dist/responsive-layout.js +15 -15
  112. package/dist/screen-reader-only.css-mistica.js +2 -2
  113. package/dist/select.css-mistica.js +10 -10
  114. package/dist/select.js +16 -16
  115. package/dist/sheet.css-mistica.js +9 -9
  116. package/dist/sheet.d.ts +8 -8
  117. package/dist/sheet.js +82 -81
  118. package/dist/skeletons.css-mistica.js +4 -4
  119. package/dist/skins/blau.js +11 -1
  120. package/dist/skins/movistar.js +11 -1
  121. package/dist/skins/o2-new.d.ts +0 -1
  122. package/dist/skins/o2-new.js +17 -8
  123. package/dist/skins/o2.js +11 -1
  124. package/dist/skins/skin-contract.css-mistica.js +268 -258
  125. package/dist/skins/skin-contract.css.d.ts +10 -0
  126. package/dist/skins/telefonica.js +11 -1
  127. package/dist/skins/tu.js +11 -1
  128. package/dist/skins/types/colors.d.ts +5 -0
  129. package/dist/skins/vivo-new.js +11 -1
  130. package/dist/skins/vivo.js +11 -1
  131. package/dist/slider.css-mistica.js +9 -9
  132. package/dist/slider.d.ts +1 -1
  133. package/dist/slider.js +8 -8
  134. package/dist/snackbar.css-mistica.js +15 -15
  135. package/dist/spinner.css-mistica.js +3 -3
  136. package/dist/sprinkles.css-mistica.js +833 -803
  137. package/dist/stacking-group.css-mistica.js +2 -2
  138. package/dist/stepper.css-mistica.js +9 -9
  139. package/dist/switch-component.css-mistica.js +21 -21
  140. package/dist/switch-component.d.ts +2 -0
  141. package/dist/switch-component.js +28 -27
  142. package/dist/tabs.css-mistica.js +10 -10
  143. package/dist/tag.css-mistica.js +2 -2
  144. package/dist/tag.js +2 -2
  145. package/dist/text-field-base.css-mistica.js +16 -16
  146. package/dist/text-field-base.js +3 -3
  147. package/dist/text-field-components.css-mistica.js +9 -9
  148. package/dist/text-field-components.js +10 -10
  149. package/dist/text-link.css-mistica.js +3 -3
  150. package/dist/text.js +142 -121
  151. package/dist/theme-context-provider.js +38 -34
  152. package/dist/theme.d.ts +2 -1
  153. package/dist/tooltip.css-mistica.js +4 -4
  154. package/dist/touchable.css-mistica.js +2 -2
  155. package/dist/utils/aspect-ratio-support.css-mistica.js +3 -3
  156. package/dist/utils/aspect-ratio-support.js +8 -8
  157. package/dist/utils/browser.js +1 -1
  158. package/dist/video.css-mistica.js +1 -1
  159. package/dist/video.js +3 -3
  160. package/dist-es/accordion.css-mistica.js +3 -3
  161. package/dist-es/accordion.js +87 -83
  162. package/dist-es/avatar.css-mistica.js +2 -2
  163. package/dist-es/avatar.js +1 -1
  164. package/dist-es/badge.css-mistica.js +2 -2
  165. package/dist-es/box.js +17 -16
  166. package/dist-es/boxed.css-mistica.js +1 -1
  167. package/dist-es/boxed.js +2 -2
  168. package/dist-es/button-group.css-mistica.js +1 -1
  169. package/dist-es/button-group.js +4 -4
  170. package/dist-es/button-layout.css-mistica.js +6 -6
  171. package/dist-es/button-layout.js +5 -5
  172. package/dist-es/button.css-mistica.js +18 -18
  173. package/dist-es/button.js +80 -67
  174. package/dist-es/callout.css-mistica.js +1 -1
  175. package/dist-es/callout.js +8 -8
  176. package/dist-es/card.css-mistica.js +2 -2
  177. package/dist-es/card.js +491 -466
  178. package/dist-es/carousel.css-mistica.js +2 -2
  179. package/dist-es/carousel.js +88 -91
  180. package/dist-es/checkbox.css-mistica.js +6 -6
  181. package/dist-es/checkbox.js +7 -7
  182. package/dist-es/chip.css-mistica.js +8 -8
  183. package/dist-es/chip.js +75 -72
  184. package/dist-es/circle.css-mistica.js +1 -1
  185. package/dist-es/community/advanced-data-card.css-mistica.js +7 -7
  186. package/dist-es/community/advanced-data-card.js +65 -64
  187. package/dist-es/community/blocks.css-mistica.js +1 -1
  188. package/dist-es/community/blocks.js +16 -14
  189. package/dist-es/counter.css-mistica.js +2 -2
  190. package/dist-es/counter.js +21 -21
  191. package/dist-es/credit-card-number-field.css-mistica.js +4 -4
  192. package/dist-es/dialog.css-mistica.js +5 -5
  193. package/dist-es/dialog.js +114 -112
  194. package/dist-es/double-field.css-mistica.js +4 -4
  195. package/dist-es/empty-state-card.css-mistica.js +2 -2
  196. package/dist-es/empty-state.css-mistica.js +3 -3
  197. package/dist-es/empty-state.js +12 -12
  198. package/dist-es/feedback.css-mistica.js +2 -2
  199. package/dist-es/feedback.js +118 -130
  200. package/dist-es/fixed-footer-layout.css-mistica.js +3 -3
  201. package/dist-es/fixed-footer-layout.js +97 -104
  202. package/dist-es/fixed-to-top.js +8 -8
  203. package/dist-es/form.js +9 -9
  204. package/dist-es/generated/mistica-icons/icon-ethernet-filled.js +102 -0
  205. package/dist-es/generated/mistica-icons/icon-ethernet-light.js +102 -0
  206. package/dist-es/generated/mistica-icons/icon-ethernet-regular.js +102 -0
  207. package/dist-es/generated/mistica-icons/icon-routine-filled.js +102 -0
  208. package/dist-es/generated/mistica-icons/icon-routine-light.js +102 -0
  209. package/dist-es/generated/mistica-icons/icon-routine-regular.js +102 -0
  210. package/dist-es/grid.js +3 -3
  211. package/dist-es/header.css-mistica.js +1 -1
  212. package/dist-es/hero.css-mistica.js +8 -2
  213. package/dist-es/hero.js +124 -126
  214. package/dist-es/highlighted-card.css-mistica.js +5 -5
  215. package/dist-es/hooks.js +41 -40
  216. package/dist-es/horizontal-scroll.css-mistica.js +1 -1
  217. package/dist-es/horizontal-scroll.js +2 -2
  218. package/dist-es/icon-button.css-mistica.js +7 -7
  219. package/dist-es/icons/icon-error.js +29 -27
  220. package/dist-es/icons/icon-info.js +2 -0
  221. package/dist-es/icons/icon-success-vivo-new.js +1 -0
  222. package/dist-es/icons/icon-success-vivo.js +9 -8
  223. package/dist-es/image.css-mistica.js +2 -2
  224. package/dist-es/image.js +73 -69
  225. package/dist-es/index.js +1088 -1082
  226. package/dist-es/list.css-mistica.js +2 -2
  227. package/dist-es/list.js +342 -298
  228. package/dist-es/loading-bar.css-mistica.js +2 -2
  229. package/dist-es/loading-bar.js +6 -6
  230. package/dist-es/loading-screen.css-mistica.js +3 -3
  231. package/dist-es/loading-screen.js +8 -8
  232. package/dist-es/logo.js +93 -80
  233. package/dist-es/maybe-dismissable.css-mistica.js +1 -1
  234. package/dist-es/menu.css-mistica.js +2 -2
  235. package/dist-es/navigation-bar.css-mistica.js +9 -9
  236. package/dist-es/navigation-breadcrumbs.css-mistica.js +2 -2
  237. package/dist-es/overscroll-color-context.js +12 -12
  238. package/dist-es/package-version.js +1 -1
  239. package/dist-es/pin-field.css-mistica.js +2 -2
  240. package/dist-es/pin-field.js +10 -10
  241. package/dist-es/progress-bar.css-mistica.js +2 -2
  242. package/dist-es/progress-bar.js +9 -9
  243. package/dist-es/radio-button.css-mistica.js +6 -6
  244. package/dist-es/radio-button.js +75 -73
  245. package/dist-es/responsive-layout.css-mistica.js +5 -5
  246. package/dist-es/responsive-layout.js +21 -21
  247. package/dist-es/screen-reader-only.css-mistica.js +2 -2
  248. package/dist-es/select.css-mistica.js +9 -9
  249. package/dist-es/select.js +22 -22
  250. package/dist-es/sheet.css-mistica.js +2 -2
  251. package/dist-es/sheet.js +124 -123
  252. package/dist-es/skeletons.css-mistica.js +2 -2
  253. package/dist-es/skins/blau.js +11 -1
  254. package/dist-es/skins/movistar.js +13 -3
  255. package/dist-es/skins/o2-new.js +17 -8
  256. package/dist-es/skins/o2.js +11 -1
  257. package/dist-es/skins/skin-contract.css-mistica.js +268 -258
  258. package/dist-es/skins/telefonica.js +11 -1
  259. package/dist-es/skins/tu.js +13 -3
  260. package/dist-es/skins/vivo-new.js +13 -3
  261. package/dist-es/skins/vivo.js +13 -3
  262. package/dist-es/slider.css-mistica.js +2 -2
  263. package/dist-es/slider.js +8 -8
  264. package/dist-es/snackbar.css-mistica.js +5 -5
  265. package/dist-es/spinner.css-mistica.js +2 -2
  266. package/dist-es/sprinkles.css-mistica.js +833 -803
  267. package/dist-es/stacking-group.css-mistica.js +2 -2
  268. package/dist-es/stepper.css-mistica.js +2 -2
  269. package/dist-es/style.css +1 -1
  270. package/dist-es/switch-component.css-mistica.js +19 -19
  271. package/dist-es/switch-component.js +32 -31
  272. package/dist-es/tabs.css-mistica.js +7 -7
  273. package/dist-es/tag.css-mistica.js +2 -2
  274. package/dist-es/tag.js +4 -4
  275. package/dist-es/text-field-base.css-mistica.js +2 -2
  276. package/dist-es/text-field-base.js +11 -11
  277. package/dist-es/text-field-components.css-mistica.js +2 -2
  278. package/dist-es/text-field-components.js +23 -23
  279. package/dist-es/text-link.css-mistica.js +3 -3
  280. package/dist-es/text-link.js +5 -5
  281. package/dist-es/text.js +141 -120
  282. package/dist-es/theme-context-provider.js +44 -40
  283. package/dist-es/tooltip.css-mistica.js +2 -2
  284. package/dist-es/touchable.css-mistica.js +2 -2
  285. package/dist-es/utils/aspect-ratio-support.css-mistica.js +3 -3
  286. package/dist-es/utils/aspect-ratio-support.js +14 -14
  287. package/dist-es/utils/browser.js +1 -1
  288. package/dist-es/video.css-mistica.js +1 -1
  289. package/dist-es/video.js +6 -6
  290. package/package.json +1 -1
package/dist-es/card.js CHANGED
@@ -78,54 +78,62 @@ function _object_without_properties_loose(source, excluded) {
78
78
  }
79
79
  return target;
80
80
  }
81
- import { jsx as e, jsxs as i, Fragment as ze } from "react/jsx-runtime";
82
- import * as C from "react";
83
- import De from "./tag.js";
84
- import k from "./stack.js";
85
- import M from "./box.js";
86
- import { Text2 as S, Text6 as Oe, Text3 as Pe, Text as ce } from "./text.js";
87
- import { Boxed as ae, InternalBoxed as me } from "./boxed.js";
88
- import ie from "./button-group.js";
89
- import ne from "./image.js";
90
- import { BaseTouchable as V } from "./touchable.js";
91
- import { vars as p } from "./skins/skin-contract.css-mistica.js";
92
- import { cardContainer as He, touchableContainer as G, boxed as J, touchable as E, touchableMediaCardOverlay as Ve, mediaCard as te, mediaCardContent as Ge, mediaCardIcon as he, touchableNakedMediaOverlay as ue, circularMediaOverlay as pe, nakedCardContent as ve, touchableCardOverlay as Q, dataCard as Ee, vars as ye, dataCardTopActionsWithoutIcon as Xe, actions as fe, snapCard as je, displayCardContainer as ge, displayCardBackground as be, displayCardContent as Ce, displayCardGradient as Ne, touchableCardOverlayInverse as de, touchableCardOverlayMedia as Te } from "./card.css-mistica.js";
93
- import { vars as H } from "./image.css-mistica.js";
94
- import { useTheme as U } from "./hooks.js";
95
- import { sprinkles as Fe } from "./sprinkles.css-mistica.js";
96
- import { InternalIconButton as We, InternalToggleIconButton as $e } from "./icon-button.js";
97
- import qe from "./generated/mistica-icons/icon-close-regular.js";
98
- import Je from "./generated/mistica-icons/icon-pause-filled.js";
99
- import Ke from "./generated/mistica-icons/icon-play-filled.js";
100
- import { combineRefs as Le } from "./utils/common.js";
101
- import Qe from "./spinner.js";
102
- import Ue from "./video.js";
103
- import { ThemeVariant as oe, useIsInverseVariant as ke } from "./theme-variant-context.js";
104
- import se from "classnames";
105
- import xe from "./inline.js";
106
- import { getPrefixedDataAttributes as Ye } from "./utils/dom.js";
107
- import { isRunningAcceptanceTest as Ze } from "./utils/platform.js";
81
+ import { jsx as e, jsxs as i, Fragment as Pe } from "react/jsx-runtime";
82
+ import * as b from "react";
83
+ import Ve from "./tag.js";
84
+ import R from "./stack.js";
85
+ import A from "./box.js";
86
+ import { Text2 as I, Text6 as Ee, Text3 as Ge, Text as he } from "./text.js";
87
+ import { Boxed as ie, InternalBoxed as ue } from "./boxed.js";
88
+ import ne from "./button-group.js";
89
+ import te from "./image.js";
90
+ import { BaseTouchable as E } from "./touchable.js";
91
+ import { vars as u } from "./skins/skin-contract.css-mistica.js";
92
+ import { cardContainer as je, touchableContainer as G, boxed as J, touchable as j, touchableMediaCardOverlay as Xe, mediaCard as de, mediaCardContent as Fe, mediaCardIcon as pe, touchableNakedMediaOverlay as ve, circularMediaOverlay as fe, nakedCardContent as ye, touchableCardOverlay as ee, dataCard as Le, vars as ge, dataCardTopActionsWithoutIcon as We, actions as be, snapCard as _e, displayCardContainer as Ce, displayCardBackground as Ne, displayCardContent as Te, displayCardGradient as xe, flexColumn as $e, touchableCardOverlayInverse as oe, touchableCardOverlayMedia as ke } from "./card.css-mistica.js";
93
+ import { vars as V } from "./image.css-mistica.js";
94
+ import { useTheme as re } from "./hooks.js";
95
+ import { sprinkles as qe } from "./sprinkles.css-mistica.js";
96
+ import { InternalIconButton as Je, InternalToggleIconButton as Ke } from "./icon-button.js";
97
+ import Qe from "./generated/mistica-icons/icon-close-regular.js";
98
+ import Ue from "./generated/mistica-icons/icon-pause-filled.js";
99
+ import Ye from "./generated/mistica-icons/icon-play-filled.js";
100
+ import { combineRefs as Ze } from "./utils/common.js";
101
+ import er from "./spinner.js";
102
+ import rr from "./video.js";
103
+ import { ThemeVariant as se, useIsInverseVariant as Be } from "./theme-variant-context.js";
104
+ import le from "classnames";
105
+ import Ie from "./inline.js";
106
+ import { getPrefixedDataAttributes as ar } from "./utils/dom.js";
107
+ import { isRunningAcceptanceTest as ir } from "./utils/platform.js";
108
108
  import { applyCssVars as D } from "./utils/css.js";
109
- const Ie = (r, a)=>{
110
- const { texts: t } = U(), s = r ? [
109
+ const nr = ()=>{
110
+ const [r, a] = b.useState(""), n = b.useCallback((d)=>{
111
+ d && a((process.env.NODE_ENV === "test" ? d.textContent : d.innerText) || "");
112
+ }, []);
113
+ return {
114
+ text: r,
115
+ ref: n
116
+ };
117
+ }, Se = (r, a)=>{
118
+ const { texts: n } = re(), d = r ? [
111
119
  ...r
112
120
  ] : [];
113
- return a && s.push({
114
- label: t.closeButtonLabel,
121
+ return a && d.push({
122
+ label: n.closeButtonLabel,
115
123
  onPress: a,
116
- Icon: qe
117
- }), s;
118
- }, Se = /*#__PURE__*/ C.createContext("default"), _e = (r)=>{
119
- const a = C.useContext(Se);
120
- return /* @__PURE__ */ e(oe, {
124
+ Icon: Qe
125
+ }), d;
126
+ }, Re = /*#__PURE__*/ b.createContext("default"), tr = (r)=>{
127
+ const a = b.useContext(Re);
128
+ return /* @__PURE__ */ e(se, {
121
129
  isInverse: a === "inverse",
122
- children: r.Icon ? /* @__PURE__ */ e(We, _object_spread_props(_object_spread({}, r), {
130
+ children: r.Icon ? /* @__PURE__ */ e(Je, _object_spread_props(_object_spread({}, r), {
123
131
  "aria-label": r.label,
124
132
  small: !0,
125
133
  isOverMedia: a === "media",
126
134
  type: "neutral",
127
135
  backgroundType: "transparent"
128
- })) : /* @__PURE__ */ e($e, _object_spread_props(_object_spread({}, r), {
136
+ })) : /* @__PURE__ */ e(Ke, _object_spread_props(_object_spread({}, r), {
129
137
  checkedProps: _object_spread_props(_object_spread({}, r.checkedProps), {
130
138
  "aria-label": r.checkedProps.label,
131
139
  type: a === "media" ? "neutral" : "brand",
@@ -141,10 +149,10 @@ const Ie = (r, a)=>{
141
149
  }))
142
150
  });
143
151
  }, K = (param)=>{
144
- let { actions: r, padding: a = 16, onClose: t, type: s = "default" } = param;
145
- const l = Ie(r, t);
146
- return l.length > 0 ? /* @__PURE__ */ e(Se.Provider, {
147
- value: s,
152
+ let { actions: r, padding: a = 16, onClose: n, type: d = "default" } = param;
153
+ const c = Se(r, n);
154
+ return c.length > 0 ? /* @__PURE__ */ e(Re.Provider, {
155
+ value: d,
148
156
  children: /* @__PURE__ */ e("div", {
149
157
  style: {
150
158
  position: "absolute",
@@ -152,38 +160,38 @@ const Ie = (r, a)=>{
152
160
  top: a,
153
161
  zIndex: 3
154
162
  },
155
- children: /* @__PURE__ */ e(xe, {
163
+ children: /* @__PURE__ */ e(Ie, {
156
164
  space: 16,
157
- children: l.map((n, c)=>"Icon" in n || "checkedProps" in n ? /* @__PURE__ */ e(_e, _object_spread({}, n), c) : n)
165
+ children: c.map((t, m)=>"Icon" in t || "checkedProps" in t ? /* @__PURE__ */ e(tr, _object_spread({}, t), m) : t)
158
166
  })
159
167
  })
160
- }) : /* @__PURE__ */ e(ze, {});
161
- }, er = (r)=>r ? typeof r == "number" ? r : ({
168
+ }) : /* @__PURE__ */ e(Pe, {});
169
+ }, dr = (r)=>r ? typeof r == "number" ? r : ({
162
170
  "1:1": 1,
163
171
  "16:9": 16 / 9,
164
172
  "7:10": 7 / 10,
165
173
  "9:10": 9 / 10,
166
174
  auto: 0
167
- })[r] : 0, X = /*#__PURE__*/ C.forwardRef((param, c)=>{
168
- let { children: r, width: a, height: t, aspectRatio: s, dataAttributes: l, className: d, "aria-label": n } = param;
169
- const m = a && t ? void 0 : er(s);
170
- return /* @__PURE__ */ e("section", _object_spread_props(_object_spread({}, Ye(l)), {
171
- ref: c,
172
- "aria-label": n,
173
- className: se(d, He),
175
+ })[r] : 0, X = /*#__PURE__*/ b.forwardRef((param, m)=>{
176
+ let { children: r, width: a, height: n, aspectRatio: d, dataAttributes: c, className: o, "aria-label": t } = param;
177
+ const h = a && n ? void 0 : dr(d);
178
+ return /* @__PURE__ */ e("section", _object_spread_props(_object_spread({}, ar(c)), {
179
+ ref: m,
180
+ "aria-label": t,
181
+ className: le(o, je),
174
182
  style: _object_spread({
175
183
  width: a || "100%",
176
- height: t || "100%"
177
- }, m ? D({
178
- [ye.aspectRatio]: String(m)
184
+ height: n || "100%"
185
+ }, h ? D({
186
+ [ge.aspectRatio]: String(h)
179
187
  }) : {}),
180
188
  children: r
181
189
  }));
182
- }), Be = (r)=>/* @__PURE__ */ e(ne, {
190
+ }), Ae = (r)=>/* @__PURE__ */ e(te, {
183
191
  width: "100%",
184
192
  height: "100%",
185
193
  src: r || ""
186
- }), rr = {
194
+ }), or = {
187
195
  loading: {
188
196
  showSpinner: "loadingTimeout",
189
197
  play: "playing",
@@ -209,81 +217,81 @@ const Ie = (r, a)=>{
209
217
  error: {
210
218
  reset: "loading"
211
219
  }
212
- }, ar = (r, a)=>rr[r][a] || r, ir = (param)=>{
220
+ }, sr = (r, a)=>or[r][a] || r, lr = (param)=>{
213
221
  let { color: r } = param;
214
- return /* @__PURE__ */ e(Qe, {
222
+ return /* @__PURE__ */ e(er, {
215
223
  color: r,
216
224
  size: 16,
217
225
  delay: "0"
218
226
  });
219
- }, nr = (param)=>{
227
+ }, cr = (param)=>{
220
228
  let { color: r } = param;
221
- return /* @__PURE__ */ e(Je, {
229
+ return /* @__PURE__ */ e(Ue, {
222
230
  color: r,
223
231
  size: 12
224
232
  });
225
- }, tr = (param)=>{
233
+ }, mr = (param)=>{
226
234
  let { color: r } = param;
227
- return /* @__PURE__ */ e(Ke, {
235
+ return /* @__PURE__ */ e(Ye, {
228
236
  color: r,
229
237
  size: 12
230
238
  });
231
- }, Re = (r, a, t)=>{
232
- const { texts: s } = U(), l = C.useRef(null), [d, n] = C.useReducer(ar, "loading");
233
- C.useEffect(()=>{
234
- var o;
235
- const h = setTimeout(()=>n("showSpinner"), 2e3);
236
- return (o = l.current) == null || o.load(), ()=>{
237
- clearTimeout(h), n("reset");
239
+ }, we = (r, a, n)=>{
240
+ const { texts: d } = re(), c = b.useRef(null), [o, t] = b.useReducer(sr, "loading");
241
+ b.useEffect(()=>{
242
+ var l;
243
+ const s = setTimeout(()=>t("showSpinner"), 2e3);
244
+ return (l = c.current) == null || l.load(), ()=>{
245
+ clearTimeout(s), t("reset");
238
246
  };
239
247
  }, [
240
248
  r
241
249
  ]);
242
- const c = C.useMemo(()=>r !== void 0 ? /* @__PURE__ */ e(Ue, {
243
- ref: Le(l, t),
250
+ const m = b.useMemo(()=>r !== void 0 ? /* @__PURE__ */ e(rr, {
251
+ ref: Ze(c, n),
244
252
  src: r,
245
253
  width: "100%",
246
254
  height: "100%",
247
255
  poster: a,
248
- onError: ()=>n("fail"),
249
- onPause: ()=>n("pause"),
250
- onPlay: ()=>n("play")
256
+ onError: ()=>t("fail"),
257
+ onPause: ()=>t("pause"),
258
+ onPlay: ()=>t("play")
251
259
  }) : void 0, [
252
- t,
260
+ n,
253
261
  r,
254
262
  a
255
- ]), m = ()=>{
256
- const h = l.current;
257
- h && (d === "loading" ? n("showSpinner") : d === "paused" ? h.play() : d === "playing" && h.pause());
263
+ ]), h = ()=>{
264
+ const s = c.current;
265
+ s && (o === "loading" ? t("showSpinner") : o === "paused" ? s.play() : o === "playing" && s.pause());
258
266
  };
259
- if (d === "error") return {
260
- video: c
267
+ if (o === "error") return {
268
+ video: m
261
269
  };
262
- const u = {
270
+ const f = {
263
271
  uncheckedProps: {
264
- Icon: d === "loadingTimeout" && !Ze() ? ir : nr,
265
- label: d === "loadingTimeout" ? "" : s.pauseIconButtonLabel
272
+ Icon: o === "loadingTimeout" && !ir() ? lr : cr,
273
+ label: o === "loadingTimeout" ? "" : d.pauseIconButtonLabel
266
274
  },
267
275
  checkedProps: {
268
- Icon: tr,
269
- label: s.playIconButtonLabel
276
+ Icon: mr,
277
+ label: d.playIconButtonLabel
270
278
  },
271
- onChange: m,
272
- disabled: d === "loadingTimeout",
273
- checked: d === "paused"
279
+ onChange: h,
280
+ disabled: o === "loadingTimeout",
281
+ checked: o === "paused"
274
282
  };
275
283
  return {
276
- video: c,
277
- videoAction: u
284
+ video: m,
285
+ videoAction: f
278
286
  };
279
- }, le = (param)=>{
280
- let { headline: r, pretitle: a, pretitleLinesMax: t, title: s, titleAs: l = "h3", titleLinesMax: d, subtitle: n, subtitleLinesMax: c, description: m, descriptionLinesMax: u, extra: h, button: o, buttonLink: y } = param;
281
- const { textPresets: f } = U(), b = ()=>r ? typeof r == "string" ? /* @__PURE__ */ e(De, {
287
+ }, ce = (param)=>{
288
+ let { headline: r, pretitle: a, pretitleLinesMax: n, title: d, titleAs: c = "h3", titleLinesMax: o, subtitle: t, subtitleLinesMax: m, description: h, descriptionLinesMax: f, extra: s, button: l, buttonLink: v } = param;
289
+ const { textPresets: g } = re(), y = ()=>r ? typeof r == "string" ? /* @__PURE__ */ e(Ve, {
282
290
  type: "promo",
283
291
  children: r
284
292
  }) : r : null;
285
293
  return /* @__PURE__ */ i("div", {
286
- className: Fe({
294
+ className: qe({
287
295
  display: "flex",
288
296
  flex: 1,
289
297
  justifyContent: "space-between",
@@ -292,73 +300,73 @@ const Ie = (r, a)=>{
292
300
  children: [
293
301
  /* @__PURE__ */ i("div", {
294
302
  children: [
295
- /* @__PURE__ */ i(k, {
303
+ /* @__PURE__ */ i(R, {
296
304
  space: 8,
297
305
  children: [
298
- (r || a || s || n) && /* @__PURE__ */ e("header", {
299
- children: /* @__PURE__ */ i(k, {
306
+ (r || a || d || t) && /* @__PURE__ */ e("header", {
307
+ children: /* @__PURE__ */ i(R, {
300
308
  space: 8,
301
309
  children: [
302
- b(),
303
- /* @__PURE__ */ i(k, {
310
+ y(),
311
+ /* @__PURE__ */ i(R, {
304
312
  space: 4,
305
313
  children: [
306
- a && /* @__PURE__ */ e(S, {
307
- truncate: t,
314
+ a && /* @__PURE__ */ e(I, {
315
+ truncate: n,
308
316
  as: "div",
309
317
  regular: !0,
310
318
  hyphens: "auto",
311
319
  children: a
312
320
  }),
313
- /* @__PURE__ */ e(ce, {
321
+ /* @__PURE__ */ e(he, {
314
322
  mobileSize: 18,
315
323
  mobileLineHeight: "24px",
316
324
  desktopSize: 20,
317
325
  desktopLineHeight: "28px",
318
- truncate: d,
319
- weight: f.cardTitle.weight,
320
- as: l,
326
+ truncate: o,
327
+ weight: g.cardTitle.weight,
328
+ as: c,
321
329
  hyphens: "auto",
322
- children: s
330
+ children: d
323
331
  }),
324
- /* @__PURE__ */ e(S, {
325
- truncate: c,
332
+ /* @__PURE__ */ e(I, {
333
+ truncate: m,
326
334
  as: "div",
327
335
  regular: !0,
328
336
  hyphens: "auto",
329
- children: n
337
+ children: t
330
338
  })
331
339
  ]
332
340
  })
333
341
  ]
334
342
  })
335
343
  }),
336
- m && /* @__PURE__ */ e(S, {
337
- truncate: u,
344
+ h && /* @__PURE__ */ e(I, {
345
+ truncate: f,
338
346
  as: "p",
339
347
  regular: !0,
340
- color: p.colors.textSecondary,
348
+ color: u.colors.textSecondary,
341
349
  hyphens: "auto",
342
- children: m
350
+ children: h
343
351
  })
344
352
  ]
345
353
  }),
346
- h && /* @__PURE__ */ e("div", {
347
- children: h
354
+ s && /* @__PURE__ */ e("div", {
355
+ children: s
348
356
  })
349
357
  ]
350
358
  }),
351
- (o || y) && /* @__PURE__ */ e("div", {
352
- className: fe,
353
- children: /* @__PURE__ */ e(ie, {
354
- primaryButton: o,
355
- link: y
359
+ (l || v) && /* @__PURE__ */ e("div", {
360
+ className: be,
361
+ children: /* @__PURE__ */ e(ne, {
362
+ primaryButton: l,
363
+ link: v
356
364
  })
357
365
  })
358
366
  ]
359
367
  });
360
- }, Dr = /*#__PURE__*/ C.forwardRef((_param, A)=>{
361
- var { media: r, icon: a, headline: t, pretitle: s, pretitleLinesMax: l, subtitle: d, subtitleLinesMax: n, title: c, titleAs: m = "h3", titleLinesMax: u, description: h, descriptionLinesMax: o, extra: y, actions: f, button: b, buttonLink: B, dataAttributes: R, "aria-label": x, onClose: T } = _param, g = _object_without_properties(_param, [
368
+ }, Gr = /*#__PURE__*/ b.forwardRef((_param, w)=>{
369
+ var { media: r, icon: a, headline: n, pretitle: d, pretitleLinesMax: c, subtitle: o, subtitleLinesMax: t, title: m, titleAs: h = "h3", titleLinesMax: f, description: s, descriptionLinesMax: l, extra: v, actions: g, button: y, buttonLink: S, dataAttributes: N, "aria-label": T, onClose: x } = _param, p = _object_without_properties(_param, [
362
370
  "media",
363
371
  "icon",
364
372
  "headline",
@@ -379,57 +387,57 @@ const Ie = (r, a)=>{
379
387
  "aria-label",
380
388
  "onClose"
381
389
  ]);
382
- const w = g.href || g.to || g.onPress;
390
+ const k = p.href || p.to || p.onPress;
383
391
  return /* @__PURE__ */ i(X, {
384
392
  dataAttributes: _object_spread({
385
393
  "component-name": "MediaCard"
386
- }, R),
387
- ref: A,
388
- "aria-label": x,
394
+ }, N),
395
+ ref: w,
396
+ "aria-label": T,
389
397
  className: G,
390
398
  children: [
391
- /* @__PURE__ */ e(ae, {
399
+ /* @__PURE__ */ e(ie, {
392
400
  className: J,
393
401
  width: "100%",
394
402
  height: "100%",
395
- children: /* @__PURE__ */ i(V, _object_spread_props(_object_spread({
403
+ children: /* @__PURE__ */ i(E, _object_spread_props(_object_spread({
396
404
  maybe: !0
397
- }, g), {
398
- className: E,
399
- "aria-label": x,
405
+ }, p), {
406
+ className: j,
407
+ "aria-label": T,
400
408
  children: [
401
- w && /* @__PURE__ */ e("div", {
402
- className: Ve
409
+ k && /* @__PURE__ */ e("div", {
410
+ className: Xe
403
411
  }),
404
412
  /* @__PURE__ */ i("div", {
405
- className: te,
413
+ className: de,
406
414
  children: [
407
415
  /* @__PURE__ */ e("div", {
408
416
  style: D({
409
- [H.mediaBorderRadius]: "0px"
417
+ [V.mediaBorderRadius]: "0px"
410
418
  }),
411
419
  children: r
412
420
  }),
413
421
  /* @__PURE__ */ e("div", {
414
- className: Ge,
415
- children: /* @__PURE__ */ e(le, {
416
- headline: t,
417
- pretitle: s,
418
- pretitleLinesMax: l,
419
- title: c,
420
- titleAs: m,
421
- titleLinesMax: u,
422
- subtitle: d,
423
- subtitleLinesMax: n,
424
- description: h,
425
- descriptionLinesMax: o,
426
- extra: y,
427
- button: b,
428
- buttonLink: B
422
+ className: Fe,
423
+ children: /* @__PURE__ */ e(ce, {
424
+ headline: n,
425
+ pretitle: d,
426
+ pretitleLinesMax: c,
427
+ title: m,
428
+ titleAs: h,
429
+ titleLinesMax: f,
430
+ subtitle: o,
431
+ subtitleLinesMax: t,
432
+ description: s,
433
+ descriptionLinesMax: l,
434
+ extra: v,
435
+ button: y,
436
+ buttonLink: S
429
437
  })
430
438
  }),
431
- a && /* @__PURE__ */ e(M, {
432
- className: he,
439
+ a && /* @__PURE__ */ e(A, {
440
+ className: pe,
433
441
  paddingLeft: {
434
442
  mobile: 16,
435
443
  desktop: 24
@@ -440,7 +448,7 @@ const Ie = (r, a)=>{
440
448
  },
441
449
  children: /* @__PURE__ */ e("div", {
442
450
  style: D({
443
- [H.mediaBorderRadius]: p.borderRadii.mediaSmall
451
+ [V.mediaBorderRadius]: u.borderRadii.mediaSmall
444
452
  }),
445
453
  children: a
446
454
  })
@@ -451,14 +459,14 @@ const Ie = (r, a)=>{
451
459
  }))
452
460
  }),
453
461
  /* @__PURE__ */ e(K, {
454
- onClose: T,
455
- actions: f,
462
+ onClose: x,
463
+ actions: g,
456
464
  type: "media"
457
465
  })
458
466
  ]
459
467
  });
460
- }), Or = /*#__PURE__*/ C.forwardRef((_param, A)=>{
461
- var { media: r, icon: a, headline: t, pretitle: s, pretitleLinesMax: l, subtitle: d, subtitleLinesMax: n, title: c, titleAs: m = "h3", titleLinesMax: u, description: h, descriptionLinesMax: o, extra: y, actions: f, button: b, buttonLink: B, dataAttributes: R, "aria-label": x, onClose: T } = _param, g = _object_without_properties(_param, [
468
+ }), jr = /*#__PURE__*/ b.forwardRef((_param, w)=>{
469
+ var { media: r, icon: a, headline: n, pretitle: d, pretitleLinesMax: c, subtitle: o, subtitleLinesMax: t, title: m, titleAs: h = "h3", titleLinesMax: f, description: s, descriptionLinesMax: l, extra: v, actions: g, button: y, buttonLink: S, dataAttributes: N, "aria-label": T, onClose: x } = _param, p = _object_without_properties(_param, [
462
470
  "media",
463
471
  "icon",
464
472
  "headline",
@@ -479,56 +487,56 @@ const Ie = (r, a)=>{
479
487
  "aria-label",
480
488
  "onClose"
481
489
  ]);
482
- const w = g.href || g.to || g.onPress, O = r && r.type === ne && r.props.circular;
490
+ const k = p.href || p.to || p.onPress, O = r && r.type === te && r.props.circular;
483
491
  return /* @__PURE__ */ i(X, {
484
- ref: A,
492
+ ref: w,
485
493
  dataAttributes: _object_spread({
486
494
  "component-name": "NakedCard"
487
- }, R),
488
- "aria-label": x,
489
- className: w ? G : void 0,
495
+ }, N),
496
+ "aria-label": T,
497
+ className: k ? G : void 0,
490
498
  children: [
491
- /* @__PURE__ */ e(V, _object_spread_props(_object_spread({
499
+ /* @__PURE__ */ e(E, _object_spread_props(_object_spread({
492
500
  maybe: !0
493
- }, g), {
494
- className: E,
495
- "aria-label": x,
501
+ }, p), {
502
+ className: j,
503
+ "aria-label": T,
496
504
  children: /* @__PURE__ */ i("div", {
497
- className: te,
505
+ className: de,
498
506
  children: [
499
507
  /* @__PURE__ */ i("div", {
500
508
  style: {
501
509
  position: "relative"
502
510
  },
503
511
  children: [
504
- w && /* @__PURE__ */ e("div", {
505
- className: se(ue, {
506
- [pe]: O
512
+ k && /* @__PURE__ */ e("div", {
513
+ className: le(ve, {
514
+ [fe]: O
507
515
  })
508
516
  }),
509
517
  r
510
518
  ]
511
519
  }),
512
520
  /* @__PURE__ */ e("div", {
513
- className: ve,
514
- children: /* @__PURE__ */ e(le, {
515
- headline: t,
516
- pretitle: s,
517
- pretitleLinesMax: l,
518
- title: c,
519
- titleAs: m,
520
- titleLinesMax: u,
521
- subtitle: d,
522
- subtitleLinesMax: n,
523
- description: h,
524
- descriptionLinesMax: o,
525
- extra: y,
526
- button: b,
527
- buttonLink: B
521
+ className: ye,
522
+ children: /* @__PURE__ */ e(ce, {
523
+ headline: n,
524
+ pretitle: d,
525
+ pretitleLinesMax: c,
526
+ title: m,
527
+ titleAs: h,
528
+ titleLinesMax: f,
529
+ subtitle: o,
530
+ subtitleLinesMax: t,
531
+ description: s,
532
+ descriptionLinesMax: l,
533
+ extra: v,
534
+ button: y,
535
+ buttonLink: S
528
536
  })
529
537
  }),
530
- a && /* @__PURE__ */ e(M, {
531
- className: he,
538
+ a && /* @__PURE__ */ e(A, {
539
+ className: pe,
532
540
  paddingLeft: {
533
541
  mobile: 16,
534
542
  desktop: 24
@@ -539,7 +547,7 @@ const Ie = (r, a)=>{
539
547
  },
540
548
  children: /* @__PURE__ */ e("div", {
541
549
  style: D({
542
- [H.mediaBorderRadius]: p.borderRadii.mediaSmall
550
+ [V.mediaBorderRadius]: u.borderRadii.mediaSmall
543
551
  }),
544
552
  children: a
545
553
  })
@@ -548,14 +556,14 @@ const Ie = (r, a)=>{
548
556
  })
549
557
  })),
550
558
  /* @__PURE__ */ e(K, {
551
- onClose: T,
552
- actions: f,
559
+ onClose: x,
560
+ actions: g,
553
561
  type: "media"
554
562
  })
555
563
  ]
556
564
  });
557
- }), Pr = /*#__PURE__*/ C.forwardRef((_param, y)=>{
558
- var { media: r, title: a, titleAs: t = "h3", titleLinesMax: s, subtitle: l, subtitleLinesMax: d, description: n, descriptionLinesMax: c, extra: m, dataAttributes: u, "aria-label": h } = _param, o = _object_without_properties(_param, [
565
+ }), Xr = /*#__PURE__*/ b.forwardRef((_param, v)=>{
566
+ var { media: r, title: a, titleAs: n = "h3", titleLinesMax: d, subtitle: c, subtitleLinesMax: o, description: t, descriptionLinesMax: m, extra: h, dataAttributes: f, "aria-label": s } = _param, l = _object_without_properties(_param, [
559
567
  "media",
560
568
  "title",
561
569
  "titleAs",
@@ -568,71 +576,71 @@ const Ie = (r, a)=>{
568
576
  "dataAttributes",
569
577
  "aria-label"
570
578
  ]);
571
- const f = o.href || o.to || o.onPress, b = r && r.type === ne && r.props.circular;
579
+ const g = l.href || l.to || l.onPress, y = r && r.type === te && r.props.circular;
572
580
  return /* @__PURE__ */ e(X, {
573
- ref: y,
581
+ ref: v,
574
582
  dataAttributes: _object_spread({
575
583
  "component-name": "SmallNakedCard"
576
- }, u),
577
- "aria-label": h,
578
- className: f ? G : void 0,
579
- children: /* @__PURE__ */ e(V, _object_spread_props(_object_spread({
584
+ }, f),
585
+ "aria-label": s,
586
+ className: g ? G : void 0,
587
+ children: /* @__PURE__ */ e(E, _object_spread_props(_object_spread({
580
588
  maybe: !0
581
- }, o), {
582
- className: E,
583
- "aria-label": h,
589
+ }, l), {
590
+ className: j,
591
+ "aria-label": s,
584
592
  children: /* @__PURE__ */ i("div", {
585
- className: te,
593
+ className: de,
586
594
  children: [
587
595
  /* @__PURE__ */ i("div", {
588
596
  style: {
589
597
  position: "relative"
590
598
  },
591
599
  children: [
592
- f && /* @__PURE__ */ e("div", {
593
- className: se(ue, {
594
- [pe]: b
600
+ g && /* @__PURE__ */ e("div", {
601
+ className: le(ve, {
602
+ [fe]: y
595
603
  })
596
604
  }),
597
605
  r
598
606
  ]
599
607
  }),
600
608
  /* @__PURE__ */ i("div", {
601
- className: ve,
609
+ className: ye,
602
610
  children: [
603
611
  /* @__PURE__ */ i("div", {
604
612
  children: [
605
- /* @__PURE__ */ i(k, {
613
+ /* @__PURE__ */ i(R, {
606
614
  space: 8,
607
615
  children: [
608
- a && /* @__PURE__ */ e(S, {
609
- truncate: s,
610
- as: t,
616
+ a && /* @__PURE__ */ e(I, {
617
+ truncate: d,
618
+ as: n,
611
619
  regular: !0,
612
620
  hyphens: "auto",
613
621
  children: a
614
622
  }),
615
- l && /* @__PURE__ */ e(S, {
616
- truncate: d,
623
+ c && /* @__PURE__ */ e(I, {
624
+ truncate: o,
617
625
  regular: !0,
618
626
  as: "p",
619
627
  hyphens: "auto",
620
- children: l
628
+ children: c
621
629
  })
622
630
  ]
623
631
  }),
624
- n && /* @__PURE__ */ e(S, {
625
- truncate: c,
632
+ t && /* @__PURE__ */ e(I, {
633
+ truncate: m,
626
634
  regular: !0,
627
635
  as: "p",
628
- color: p.colors.textSecondary,
636
+ color: u.colors.textSecondary,
629
637
  hyphens: "auto",
630
- children: n
638
+ children: t
631
639
  })
632
640
  ]
633
641
  }),
634
- m && /* @__PURE__ */ e("div", {
635
- children: m
642
+ h && /* @__PURE__ */ e("div", {
643
+ children: h
636
644
  })
637
645
  ]
638
646
  })
@@ -640,8 +648,8 @@ const Ie = (r, a)=>{
640
648
  })
641
649
  }))
642
650
  });
643
- }), Hr = /*#__PURE__*/ C.forwardRef((_param, A)=>{
644
- var { icon: r, headline: a, pretitle: t, pretitleLinesMax: s, title: l, titleAs: d = "h3", titleLinesMax: n, subtitle: c, subtitleLinesMax: m, description: u, descriptionLinesMax: h, extra: o, actions: y, button: f, buttonLink: b, dataAttributes: B, "aria-label": R, onClose: x, aspectRatio: T } = _param, g = _object_without_properties(_param, [
651
+ }), Fr = /*#__PURE__*/ b.forwardRef((_param, w)=>{
652
+ var { icon: r, headline: a, pretitle: n, pretitleLinesMax: d, title: c, titleAs: o = "h3", titleLinesMax: t, subtitle: m, subtitleLinesMax: h, description: f, descriptionLinesMax: s, extra: l, actions: v, button: g, buttonLink: y, dataAttributes: S, "aria-label": N, onClose: T, aspectRatio: x } = _param, p = _object_without_properties(_param, [
645
653
  "icon",
646
654
  "headline",
647
655
  "pretitle",
@@ -662,74 +670,74 @@ const Ie = (r, a)=>{
662
670
  "onClose",
663
671
  "aspectRatio"
664
672
  ]);
665
- const w = !!r || !!a, O = g.href || g.to || g.onPress, F = Ie(y, x);
673
+ const k = !!r || !!a, O = p.href || p.to || p.onPress, W = Se(v, T);
666
674
  return /* @__PURE__ */ i(X, {
667
675
  dataAttributes: _object_spread({
668
676
  "component-name": "DataCard"
669
- }, B),
670
- ref: A,
671
- "aria-label": R,
677
+ }, S),
678
+ ref: w,
679
+ "aria-label": N,
672
680
  className: G,
673
- aspectRatio: T,
681
+ aspectRatio: x,
674
682
  children: [
675
- /* @__PURE__ */ e(ae, {
683
+ /* @__PURE__ */ e(ie, {
676
684
  className: J,
677
685
  width: "100%",
678
686
  minHeight: "100%",
679
- children: /* @__PURE__ */ i(V, _object_spread_props(_object_spread({
687
+ children: /* @__PURE__ */ i(E, _object_spread_props(_object_spread({
680
688
  maybe: !0
681
- }, g), {
682
- className: E,
683
- "aria-label": R,
689
+ }, p), {
690
+ className: j,
691
+ "aria-label": N,
684
692
  children: [
685
693
  O && /* @__PURE__ */ e("div", {
686
- className: Q
694
+ className: ee
687
695
  }),
688
696
  /* @__PURE__ */ i("div", {
689
- className: Ee,
697
+ className: Le,
690
698
  children: [
691
- /* @__PURE__ */ i(xe, {
699
+ /* @__PURE__ */ i(Ie, {
692
700
  space: 0,
693
701
  children: [
694
- /* @__PURE__ */ i(k, {
702
+ /* @__PURE__ */ i(R, {
695
703
  space: 16,
696
704
  children: [
697
705
  r && /* @__PURE__ */ e("div", {
698
706
  style: D({
699
- [H.mediaBorderRadius]: p.borderRadii.mediaSmall
707
+ [V.mediaBorderRadius]: u.borderRadii.mediaSmall
700
708
  }),
701
709
  children: r
702
710
  }),
703
- /* @__PURE__ */ e(le, {
711
+ /* @__PURE__ */ e(ce, {
704
712
  headline: a,
705
- pretitle: t,
706
- pretitleLinesMax: s,
707
- title: l,
708
- titleAs: d,
709
- titleLinesMax: n,
710
- subtitle: c,
711
- subtitleLinesMax: m,
712
- description: u,
713
- descriptionLinesMax: h
713
+ pretitle: n,
714
+ pretitleLinesMax: d,
715
+ title: c,
716
+ titleAs: o,
717
+ titleLinesMax: t,
718
+ subtitle: m,
719
+ subtitleLinesMax: h,
720
+ description: f,
721
+ descriptionLinesMax: s
714
722
  })
715
723
  ]
716
724
  }),
717
- !w && /* @__PURE__ */ e("div", {
725
+ !k && /* @__PURE__ */ e("div", {
718
726
  style: D({
719
- [ye.topActionsCount]: String(F.length)
727
+ [ge.topActionsCount]: String(W.length)
720
728
  }),
721
- className: Xe
729
+ className: We
722
730
  })
723
731
  ]
724
732
  }),
725
- o && /* @__PURE__ */ e("div", {
726
- children: o
733
+ l && /* @__PURE__ */ e("div", {
734
+ children: l
727
735
  }),
728
- (f || b) && /* @__PURE__ */ e("div", {
729
- className: fe,
730
- children: /* @__PURE__ */ e(ie, {
731
- primaryButton: f,
732
- link: b
736
+ (g || y) && /* @__PURE__ */ e("div", {
737
+ className: be,
738
+ children: /* @__PURE__ */ e(ne, {
739
+ primaryButton: g,
740
+ link: y
733
741
  })
734
742
  })
735
743
  ]
@@ -738,14 +746,14 @@ const Ie = (r, a)=>{
738
746
  }))
739
747
  }),
740
748
  /* @__PURE__ */ e(K, {
741
- onClose: x,
742
- actions: y,
749
+ onClose: T,
750
+ actions: v,
743
751
  type: "default"
744
752
  })
745
753
  ]
746
754
  });
747
- }), Vr = /*#__PURE__*/ C.forwardRef((_param, y)=>{
748
- var { icon: r, title: a, titleAs: t = "h3", titleLinesMax: s, subtitle: l, subtitleLinesMax: d, dataAttributes: n, "aria-label": c, extra: m, isInverse: u = !1, aspectRatio: h } = _param, o = _object_without_properties(_param, [
755
+ }), Lr = /*#__PURE__*/ b.forwardRef((_param, v)=>{
756
+ var { icon: r, title: a, titleAs: n = "h3", titleLinesMax: d, subtitle: c, subtitleLinesMax: o, dataAttributes: t, "aria-label": m, extra: h, isInverse: f = !1, aspectRatio: s } = _param, l = _object_without_properties(_param, [
749
757
  "icon",
750
758
  "title",
751
759
  "titleAs",
@@ -758,66 +766,66 @@ const Ie = (r, a)=>{
758
766
  "isInverse",
759
767
  "aspectRatio"
760
768
  ]);
761
- const f = o.href || o.to || o.onPress, b = u ? de : Q;
769
+ const g = l.href || l.to || l.onPress, y = f ? oe : ee;
762
770
  return /* @__PURE__ */ e(X, {
763
771
  dataAttributes: _object_spread({
764
772
  "component-name": "SnapCard"
765
- }, n),
766
- ref: y,
773
+ }, t),
774
+ ref: v,
767
775
  className: G,
768
- aspectRatio: h,
769
- children: /* @__PURE__ */ e(ae, {
776
+ aspectRatio: s,
777
+ children: /* @__PURE__ */ e(ie, {
770
778
  className: J,
771
- isInverse: u,
779
+ isInverse: f,
772
780
  width: "100%",
773
781
  minHeight: "100%",
774
- children: /* @__PURE__ */ i(V, _object_spread_props(_object_spread({
782
+ children: /* @__PURE__ */ i(E, _object_spread_props(_object_spread({
775
783
  maybe: !0
776
- }, o), {
777
- className: E,
778
- "aria-label": c,
784
+ }, l), {
785
+ className: j,
786
+ "aria-label": m,
779
787
  children: [
780
- f && /* @__PURE__ */ e("div", {
781
- className: b
788
+ g && /* @__PURE__ */ e("div", {
789
+ className: y
782
790
  }),
783
791
  /* @__PURE__ */ i("section", {
784
- className: je,
792
+ className: _e,
785
793
  children: [
786
794
  /* @__PURE__ */ i("div", {
787
795
  children: [
788
796
  r && /* @__PURE__ */ e("div", {
789
797
  style: D({
790
- [H.mediaBorderRadius]: p.borderRadii.mediaSmall
798
+ [V.mediaBorderRadius]: u.borderRadii.mediaSmall
791
799
  }),
792
- children: /* @__PURE__ */ e(M, {
800
+ children: /* @__PURE__ */ e(A, {
793
801
  paddingBottom: 16,
794
802
  children: r
795
803
  })
796
804
  }),
797
- /* @__PURE__ */ i(k, {
805
+ /* @__PURE__ */ i(R, {
798
806
  space: 4,
799
807
  children: [
800
- a && /* @__PURE__ */ e(S, {
801
- truncate: s,
802
- as: t,
808
+ a && /* @__PURE__ */ e(I, {
809
+ truncate: d,
810
+ as: n,
803
811
  regular: !0,
804
812
  hyphens: "auto",
805
813
  children: a
806
814
  }),
807
- l && /* @__PURE__ */ e(S, {
808
- truncate: d,
815
+ c && /* @__PURE__ */ e(I, {
816
+ truncate: o,
809
817
  regular: !0,
810
- color: p.colors.textSecondary,
818
+ color: u.colors.textSecondary,
811
819
  as: "p",
812
820
  hyphens: "auto",
813
- children: l
821
+ children: c
814
822
  })
815
823
  ]
816
824
  })
817
825
  ]
818
826
  }),
819
- m && /* @__PURE__ */ e("div", {
820
- children: m
827
+ h && /* @__PURE__ */ e("div", {
828
+ children: h
821
829
  })
822
830
  ]
823
831
  })
@@ -825,8 +833,8 @@ const Ie = (r, a)=>{
825
833
  }))
826
834
  })
827
835
  });
828
- }), Ae = /*#__PURE__*/ C.forwardRef((_param, Y)=>{
829
- var { isInverse: r, backgroundImage: a, backgroundVideo: t, backgroundVideoRef: s, poster: l, icon: d, headline: n, pretitle: c, pretitleLinesMax: m, title: u, titleAs: h = "h3", titleLinesMax: o, description: y, descriptionLinesMax: f, extra: b, button: B, secondaryButton: R, onClose: x, actions: T, buttonLink: g, dataAttributes: A, width: w, height: O, aspectRatio: F, "aria-label": W } = _param, z = _object_without_properties(_param, [
836
+ }), Me = /*#__PURE__*/ b.forwardRef((_param, F)=>{
837
+ var { isInverse: r, backgroundImage: a, backgroundVideo: n, backgroundVideoRef: d, poster: c, icon: o, headline: t, pretitle: m, pretitleLinesMax: h, title: f, titleAs: s = "h3", titleLinesMax: l, description: v, descriptionLinesMax: g, extra: y, button: S, secondaryButton: N, onClose: T, actions: x, buttonLink: p, dataAttributes: w, width: k, height: O, aspectRatio: W, "aria-label": Q } = _param, H = _object_without_properties(_param, [
830
838
  "isInverse",
831
839
  "backgroundImage",
832
840
  "backgroundVideo",
@@ -853,125 +861,125 @@ const Ie = (r, a)=>{
853
861
  "aspectRatio",
854
862
  "aria-label"
855
863
  ]);
856
- const I = a !== void 0, v = t !== void 0, Z = Be(a), { video: _, videoAction: $ } = Re(t, l, s);
857
- v && (T = $ ? [
858
- $
864
+ const P = a !== void 0, C = n !== void 0, B = Ae(a), { video: ae, videoAction: U } = we(n, c, d);
865
+ C && (x = U ? [
866
+ U
859
867
  ] : []);
860
- const j = ke(), N = I || v, P = N ? "0 0 16px rgba(0,0,0,0.4)" : void 0, q = (T == null ? void 0 : T.length) || x, ee = z.href || z.to || z.onPress, re = I || v ? Te : r ? de : Q;
868
+ const _ = Be(), M = P || C, $ = M ? "0 0 16px rgba(0,0,0,0.4)" : void 0, L = (x == null ? void 0 : x.length) || T, z = H.href || H.to || H.onPress, q = P || C ? ke : r ? oe : ee;
861
869
  return /* @__PURE__ */ i(X, {
862
- dataAttributes: A,
863
- ref: Y,
864
- width: w,
870
+ dataAttributes: w,
871
+ ref: F,
872
+ width: k,
865
873
  height: O,
866
- aspectRatio: F,
867
- "aria-label": W,
874
+ aspectRatio: W,
875
+ "aria-label": Q,
868
876
  className: G,
869
877
  children: [
870
- /* @__PURE__ */ e(me, {
871
- borderRadius: p.borderRadii.legacyDisplay,
878
+ /* @__PURE__ */ e(ue, {
879
+ borderRadius: u.borderRadii.legacyDisplay,
872
880
  className: J,
873
881
  width: "100%",
874
882
  minHeight: "100%",
875
883
  isInverse: r,
876
- background: I || v ? j ? p.colors.backgroundContainerBrandOverInverse : p.colors.backgroundContainer : void 0,
877
- children: /* @__PURE__ */ i(V, _object_spread_props(_object_spread({
884
+ background: P || C ? _ ? u.colors.backgroundContainerBrandOverInverse : u.colors.backgroundContainer : void 0,
885
+ children: /* @__PURE__ */ i(E, _object_spread_props(_object_spread({
878
886
  maybe: !0
879
- }, z), {
880
- className: E,
881
- "aria-label": W,
887
+ }, H), {
888
+ className: j,
889
+ "aria-label": Q,
882
890
  children: [
883
- ee && /* @__PURE__ */ e("div", {
884
- className: re
891
+ z && /* @__PURE__ */ e("div", {
892
+ className: q
885
893
  }),
886
894
  /* @__PURE__ */ i("div", {
887
- className: ge,
895
+ className: Ce,
888
896
  children: [
889
- (I || v) && /* @__PURE__ */ e(oe, {
890
- isInverse: j,
897
+ (P || C) && /* @__PURE__ */ e(se, {
898
+ isInverse: _,
891
899
  children: /* @__PURE__ */ e("div", {
892
- className: be,
893
- children: v ? _ : Z
900
+ className: Ne,
901
+ children: C ? ae : B
894
902
  })
895
903
  }),
896
904
  /* @__PURE__ */ i("div", {
897
- className: Ce,
905
+ className: Te,
898
906
  style: {
899
- paddingTop: N && !d && !q && !v ? 0 : 24
907
+ paddingTop: M && !o && !L && !C ? 0 : 24
900
908
  },
901
909
  children: [
902
- d ? /* @__PURE__ */ e("div", {
910
+ o ? /* @__PURE__ */ e("div", {
903
911
  style: D({
904
- [H.mediaBorderRadius]: p.borderRadii.mediaSmall
912
+ [V.mediaBorderRadius]: u.borderRadii.mediaSmall
905
913
  }),
906
- children: /* @__PURE__ */ e(M, {
907
- paddingBottom: N ? 0 : 40,
914
+ children: /* @__PURE__ */ e(A, {
915
+ paddingBottom: M ? 0 : 40,
908
916
  paddingX: 24,
909
- children: d
917
+ children: o
910
918
  })
911
- }) : /* @__PURE__ */ e(M, {
912
- paddingBottom: q || v ? N ? 24 : 64 : 0
919
+ }) : /* @__PURE__ */ e(A, {
920
+ paddingBottom: L || C ? M ? 24 : 64 : 0
913
921
  }),
914
- /* @__PURE__ */ e(M, {
922
+ /* @__PURE__ */ e(A, {
915
923
  paddingX: 24,
916
- paddingTop: N ? 40 : 0,
924
+ paddingTop: M ? 40 : 0,
917
925
  paddingBottom: 24,
918
- className: N ? Ne : void 0,
919
- children: /* @__PURE__ */ i(k, {
926
+ className: M ? xe : void 0,
927
+ children: /* @__PURE__ */ i(R, {
920
928
  space: 24,
921
929
  children: [
922
930
  /* @__PURE__ */ i("div", {
923
931
  children: [
924
- /* @__PURE__ */ i(k, {
932
+ /* @__PURE__ */ i(R, {
925
933
  space: 8,
926
934
  children: [
927
- (n || c || u) && /* @__PURE__ */ e("header", {
928
- children: /* @__PURE__ */ i(k, {
935
+ (t || m || f) && /* @__PURE__ */ e("header", {
936
+ children: /* @__PURE__ */ i(R, {
929
937
  space: 16,
930
938
  children: [
931
- n,
932
- /* @__PURE__ */ i(k, {
939
+ t,
940
+ /* @__PURE__ */ i(R, {
933
941
  space: 4,
934
942
  children: [
935
- c && /* @__PURE__ */ e(S, {
943
+ m && /* @__PURE__ */ e(I, {
936
944
  forceMobileSizes: !0,
937
- truncate: m,
945
+ truncate: h,
938
946
  as: "div",
939
947
  regular: !0,
940
- textShadow: P,
941
- children: c
948
+ textShadow: $,
949
+ children: m
942
950
  }),
943
- /* @__PURE__ */ e(Oe, {
951
+ /* @__PURE__ */ e(Ee, {
944
952
  forceMobileSizes: !0,
945
- truncate: o,
946
- as: h,
947
- textShadow: P,
953
+ truncate: l,
954
+ as: s,
955
+ textShadow: $,
948
956
  hyphens: "auto",
949
- children: u
957
+ children: f
950
958
  })
951
959
  ]
952
960
  })
953
961
  ]
954
962
  })
955
963
  }),
956
- y && /* @__PURE__ */ e(Pe, {
964
+ v && /* @__PURE__ */ e(Ge, {
957
965
  forceMobileSizes: !0,
958
- truncate: f,
966
+ truncate: g,
959
967
  as: "p",
960
968
  regular: !0,
961
- color: N ? p.colors.textPrimary : p.colors.textSecondary,
962
- textShadow: P,
969
+ color: M ? u.colors.textPrimary : u.colors.textSecondary,
970
+ textShadow: $,
963
971
  hyphens: "auto",
964
- children: y
972
+ children: v
965
973
  })
966
974
  ]
967
975
  }),
968
- b
976
+ y
969
977
  ]
970
978
  }),
971
- (B || R || g) && /* @__PURE__ */ e(ie, {
972
- primaryButton: B,
973
- secondaryButton: R,
974
- link: g
979
+ (S || N || p) && /* @__PURE__ */ e(ne, {
980
+ primaryButton: S,
981
+ secondaryButton: N,
982
+ link: p
975
983
  })
976
984
  ]
977
985
  })
@@ -984,35 +992,35 @@ const Ie = (r, a)=>{
984
992
  }))
985
993
  }),
986
994
  /* @__PURE__ */ e(K, {
987
- onClose: x,
988
- actions: T,
989
- type: I || v ? "media" : r ? "inverse" : "default"
995
+ onClose: T,
996
+ actions: x,
997
+ type: P || C ? "media" : r ? "inverse" : "default"
990
998
  })
991
999
  ]
992
1000
  });
993
- }), Gr = /*#__PURE__*/ C.forwardRef((_param, t)=>{
1001
+ }), Wr = /*#__PURE__*/ b.forwardRef((_param, n)=>{
994
1002
  var { dataAttributes: r } = _param, a = _object_without_properties(_param, [
995
1003
  "dataAttributes"
996
1004
  ]);
997
- return /* @__PURE__ */ e(Ae, _object_spread_props(_object_spread({}, a), {
998
- ref: t,
1005
+ return /* @__PURE__ */ e(Me, _object_spread_props(_object_spread({}, a), {
1006
+ ref: n,
999
1007
  isInverse: !0,
1000
1008
  dataAttributes: _object_spread({
1001
1009
  "component-name": "DisplayMediaCard"
1002
1010
  }, r)
1003
1011
  }));
1004
- }), Er = /*#__PURE__*/ C.forwardRef((_param, t)=>{
1012
+ }), _r = /*#__PURE__*/ b.forwardRef((_param, n)=>{
1005
1013
  var { dataAttributes: r } = _param, a = _object_without_properties(_param, [
1006
1014
  "dataAttributes"
1007
1015
  ]);
1008
- return /* @__PURE__ */ e(Ae, _object_spread_props(_object_spread({}, a), {
1009
- ref: t,
1016
+ return /* @__PURE__ */ e(Me, _object_spread_props(_object_spread({}, a), {
1017
+ ref: n,
1010
1018
  dataAttributes: _object_spread({
1011
1019
  "component-name": "DisplayDataCard"
1012
1020
  }, r)
1013
1021
  }));
1014
- }), Xr = /*#__PURE__*/ C.forwardRef((_param, Y)=>{
1015
- var { dataAttributes: r, backgroundImage: a, backgroundVideo: t, poster: s, backgroundVideoRef: l, width: d, height: n, aspectRatio: c = "7:10", ariaLabel: m, actions: u, onClose: h, icon: o, headline: y, pretitle: f, pretitleLinesMax: b, title: B, titleAs: R = "h3", titleLinesMax: x, subtitle: T, subtitleLinesMax: g, description: A, descriptionLinesMax: w, variant: O, isInverse: F, backgroundColor: W } = _param, z = _object_without_properties(_param, [
1022
+ }), $r = /*#__PURE__*/ b.forwardRef((_param, P)=>{
1023
+ var { dataAttributes: r, backgroundImage: a, backgroundVideo: n, poster: d, backgroundVideoRef: c, width: o, height: t, aspectRatio: m = "7:10", ariaLabel: h, ["aria-label"]: f = h, actions: s, onClose: l, icon: v, headline: g, pretitle: y, pretitleLinesMax: S, title: N, titleAs: T = "h3", titleLinesMax: x, subtitle: p, subtitleLinesMax: w, description: k, descriptionLinesMax: O, variant: W, isInverse: Q, backgroundColor: H } = _param, F = _object_without_properties(_param, [
1016
1024
  "dataAttributes",
1017
1025
  "backgroundImage",
1018
1026
  "backgroundVideo",
@@ -1022,6 +1030,7 @@ const Ie = (r, a)=>{
1022
1030
  "height",
1023
1031
  "aspectRatio",
1024
1032
  "ariaLabel",
1033
+ "aria-label",
1025
1034
  "actions",
1026
1035
  "onClose",
1027
1036
  "icon",
@@ -1039,143 +1048,159 @@ const Ie = (r, a)=>{
1039
1048
  "isInverse",
1040
1049
  "backgroundColor"
1041
1050
  ]);
1042
- const I = a !== void 0, v = t !== void 0, Z = Be(a), { video: _, videoAction: $ } = Re(t, s, l);
1043
- v && (u = $ ? [
1044
- $
1051
+ const C = a !== void 0, B = n !== void 0, ae = Ae(a), { video: U, videoAction: _ } = we(n, d, c), { text: M, ref: $ } = nr();
1052
+ B && (s = _ ? [
1053
+ _
1045
1054
  ] : []);
1046
- const j = ke(), N = I || v, P = N ? "0 0 16px rgba(0,0,0,0.4)" : void 0, q = (u == null ? void 0 : u.length) || h, { textPresets: ee } = U(), re = z.href || z.to || z.onPress, L = O || (F ? "inverse" : "default"), we = ()=>W || ({
1047
- default: p.colors.backgroundContainer,
1048
- inverse: j ? p.colors.backgroundContainerBrandOverInverse : p.colors.backgroundBrand,
1049
- alternative: p.colors.backgroundAlternative
1050
- })[L], Me = I || v ? Te : L === "inverse" ? de : Q;
1055
+ const L = Be(), z = C || B, q = z ? "0 0 16px rgba(0,0,0,0.4)" : void 0, me = (s == null ? void 0 : s.length) || l, { textPresets: ze } = re(), Y = !!(F.href || F.to || F.onPress), Z = W || (Q ? "inverse" : "default"), De = ()=>H || ({
1056
+ default: u.colors.backgroundContainer,
1057
+ inverse: L ? u.colors.backgroundContainerBrandOverInverse : u.colors.backgroundBrand,
1058
+ alternative: u.colors.backgroundAlternative
1059
+ })[Z], Oe = C || B ? ke : Z === "inverse" ? oe : ee, He = f || [
1060
+ N,
1061
+ M,
1062
+ y,
1063
+ p,
1064
+ k
1065
+ ].filter(Boolean).join(" ");
1051
1066
  return /* @__PURE__ */ i(X, {
1052
- width: d,
1053
- height: n,
1067
+ width: o,
1068
+ height: t,
1054
1069
  dataAttributes: _object_spread({
1055
1070
  "component-name": "PosterCard"
1056
1071
  }, r),
1057
- ref: Y,
1058
- aspectRatio: c,
1059
- "aria-label": m,
1072
+ ref: P,
1073
+ aspectRatio: m,
1060
1074
  className: G,
1075
+ "aria-label": Y ? void 0 : f,
1061
1076
  children: [
1062
- /* @__PURE__ */ e(me, {
1063
- borderRadius: p.borderRadii.legacyDisplay,
1077
+ /* @__PURE__ */ e(ue, {
1078
+ borderRadius: u.borderRadii.legacyDisplay,
1064
1079
  className: J,
1065
1080
  width: "100%",
1066
1081
  minHeight: "100%",
1067
- isInverse: I || v || L === "inverse",
1068
- background: I || v ? j ? p.colors.backgroundContainerBrandOverInverse : p.colors.backgroundContainer : we(),
1069
- children: /* @__PURE__ */ i(V, _object_spread_props(_object_spread({
1082
+ isInverse: C || B || Z === "inverse",
1083
+ background: C || B ? L ? u.colors.backgroundContainerBrandOverInverse : u.colors.backgroundContainer : De(),
1084
+ children: /* @__PURE__ */ i(E, _object_spread_props(_object_spread({
1070
1085
  maybe: !0
1071
- }, z), {
1072
- className: E,
1073
- "aria-label": m,
1086
+ }, F), {
1087
+ className: j,
1088
+ "aria-label": Y ? He : void 0,
1074
1089
  children: [
1075
- re && /* @__PURE__ */ e("div", {
1076
- className: Me
1090
+ Y && /* @__PURE__ */ e("div", {
1091
+ className: Oe
1077
1092
  }),
1078
1093
  /* @__PURE__ */ i("div", {
1079
- className: ge,
1094
+ className: Ce,
1095
+ "aria-hidden": Y,
1080
1096
  children: [
1081
- (I || v) && /* @__PURE__ */ e(oe, {
1082
- isInverse: j,
1097
+ (C || B) && /* @__PURE__ */ e(se, {
1098
+ isInverse: L,
1083
1099
  children: /* @__PURE__ */ e("div", {
1084
- className: be,
1085
- children: v ? _ : Z
1100
+ className: Ne,
1101
+ children: B ? U : ae
1086
1102
  })
1087
1103
  }),
1088
- /* @__PURE__ */ i(M, {
1089
- className: Ce,
1090
- paddingTop: N && !o && !q && !v ? 0 : {
1091
- mobile: o ? 16 : 24,
1104
+ /* @__PURE__ */ i(A, {
1105
+ className: Te,
1106
+ paddingTop: z && !v && !me && !B ? 0 : {
1107
+ mobile: v ? 16 : 24,
1092
1108
  desktop: 24
1093
1109
  },
1094
1110
  children: [
1095
- o ? /* @__PURE__ */ e("div", {
1111
+ v ? /* @__PURE__ */ e("div", {
1096
1112
  style: D({
1097
- [H.mediaBorderRadius]: p.borderRadii.mediaSmall
1113
+ [V.mediaBorderRadius]: u.borderRadii.mediaSmall
1098
1114
  }),
1099
- children: /* @__PURE__ */ e(M, {
1100
- paddingBottom: N ? 0 : 40,
1115
+ children: /* @__PURE__ */ e(A, {
1116
+ paddingBottom: z ? 0 : 40,
1101
1117
  paddingX: {
1102
1118
  mobile: 16,
1103
1119
  desktop: 24
1104
1120
  },
1105
- children: o
1121
+ children: v
1106
1122
  })
1107
- }) : /* @__PURE__ */ e(M, {
1108
- paddingBottom: q || v ? N ? 24 : 64 : 0
1123
+ }) : /* @__PURE__ */ e(A, {
1124
+ paddingBottom: me || B ? z ? 24 : 64 : 0
1109
1125
  }),
1110
- /* @__PURE__ */ e(M, {
1126
+ /* @__PURE__ */ e(A, {
1111
1127
  paddingX: {
1112
1128
  mobile: 16,
1113
1129
  desktop: 24
1114
1130
  },
1115
- paddingTop: N ? 40 : 0,
1131
+ paddingTop: z ? 40 : 0,
1116
1132
  paddingBottom: 24,
1117
- className: N ? Ne : void 0,
1118
- children: /* @__PURE__ */ e(k, {
1119
- space: 24,
1120
- children: /* @__PURE__ */ e("div", {
1121
- children: /* @__PURE__ */ i(k, {
1122
- space: 8,
1123
- children: [
1124
- (y || f || B || T) && /* @__PURE__ */ e("header", {
1125
- children: /* @__PURE__ */ i(k, {
1126
- space: 16,
1127
- children: [
1128
- y,
1129
- /* @__PURE__ */ i(k, {
1130
- space: 4,
1131
- children: [
1132
- f && /* @__PURE__ */ e(S, {
1133
- forceMobileSizes: !0,
1134
- truncate: b,
1135
- as: "div",
1136
- regular: !0,
1137
- textShadow: P,
1138
- hyphens: "auto",
1139
- children: f
1140
- }),
1141
- /* @__PURE__ */ e(ce, {
1142
- desktopSize: 20,
1143
- mobileSize: 18,
1144
- mobileLineHeight: "24px",
1145
- desktopLineHeight: "28px",
1146
- truncate: x,
1147
- weight: ee.cardTitle.weight,
1148
- as: R,
1149
- hyphens: "auto",
1150
- children: B
1151
- }),
1152
- /* @__PURE__ */ e(S, {
1153
- forceMobileSizes: !0,
1154
- truncate: g,
1155
- as: "div",
1156
- regular: !0,
1157
- textShadow: P,
1158
- hyphens: "auto",
1159
- children: T
1160
- })
1161
- ]
1162
- })
1163
- ]
1164
- })
1165
- }),
1166
- A && /* @__PURE__ */ e(S, {
1167
- forceMobileSizes: !0,
1168
- truncate: w,
1169
- as: "p",
1170
- regular: !0,
1171
- textShadow: P,
1172
- hyphens: "auto",
1173
- color: N ? p.colors.textPrimary : p.colors.textSecondary,
1174
- children: A
1175
- })
1176
- ]
1133
+ className: z ? xe : void 0,
1134
+ children: /* @__PURE__ */ i("div", {
1135
+ className: $e,
1136
+ children: [
1137
+ N && /* @__PURE__ */ e("div", {
1138
+ style: {
1139
+ paddingBottom: 4
1140
+ },
1141
+ children: /* @__PURE__ */ e(he, {
1142
+ desktopSize: 20,
1143
+ mobileSize: 18,
1144
+ mobileLineHeight: "24px",
1145
+ desktopLineHeight: "28px",
1146
+ truncate: x,
1147
+ weight: ze.cardTitle.weight,
1148
+ as: T,
1149
+ children: N
1150
+ })
1151
+ }),
1152
+ g && // assuming that the headline will always be followed by one of: pretitle, title, subtitle, description
1153
+ /* @__PURE__ */ e("div", {
1154
+ ref: $,
1155
+ style: {
1156
+ order: -2,
1157
+ paddingBottom: 16
1158
+ },
1159
+ children: g
1160
+ }),
1161
+ y && /* @__PURE__ */ e("div", {
1162
+ style: {
1163
+ order: -1,
1164
+ paddingBottom: 4
1165
+ },
1166
+ children: /* @__PURE__ */ e(I, {
1167
+ forceMobileSizes: !0,
1168
+ truncate: S,
1169
+ regular: !0,
1170
+ textShadow: q,
1171
+ children: y
1172
+ })
1173
+ }),
1174
+ p && /* @__PURE__ */ e("div", {
1175
+ style: {
1176
+ paddingBottom: 4
1177
+ },
1178
+ children: /* @__PURE__ */ e(I, {
1179
+ forceMobileSizes: !0,
1180
+ truncate: w,
1181
+ as: "div",
1182
+ regular: !0,
1183
+ textShadow: q,
1184
+ children: p
1185
+ })
1186
+ }),
1187
+ k && // this is tricky, the padding between a headline and a description is 16px
1188
+ // but the padding between a title|pretitle|subtitle and a description is 8px (4px + 4px)
1189
+ /* @__PURE__ */ e("div", {
1190
+ style: {
1191
+ paddingTop: y || N || p ? 4 : 0
1192
+ },
1193
+ children: /* @__PURE__ */ e(I, {
1194
+ forceMobileSizes: !0,
1195
+ truncate: O,
1196
+ as: "p",
1197
+ regular: !0,
1198
+ textShadow: q,
1199
+ color: z ? u.colors.textPrimary : u.colors.textSecondary,
1200
+ children: k
1201
+ })
1177
1202
  })
1178
- })
1203
+ ]
1179
1204
  })
1180
1205
  })
1181
1206
  ]
@@ -1186,11 +1211,11 @@ const Ie = (r, a)=>{
1186
1211
  }))
1187
1212
  }),
1188
1213
  /* @__PURE__ */ e(K, {
1189
- onClose: h,
1190
- actions: u,
1191
- type: I || v ? "media" : L === "inverse" ? "inverse" : "default"
1214
+ onClose: l,
1215
+ actions: s,
1216
+ type: C || B ? "media" : Z === "inverse" ? "inverse" : "default"
1192
1217
  })
1193
1218
  ]
1194
1219
  });
1195
1220
  });
1196
- export { _e as CardActionIconButton, ir as CardActionSpinner, K as CardActionsGroup, Hr as DataCard, Er as DisplayDataCard, Gr as DisplayMediaCard, Dr as MediaCard, Or as NakedCard, Xr as PosterCard, Pr as SmallNakedCard, Vr as SnapCard };
1221
+ export { tr as CardActionIconButton, lr as CardActionSpinner, K as CardActionsGroup, Fr as DataCard, _r as DisplayDataCard, Wr as DisplayMediaCard, Gr as MediaCard, jr as NakedCard, $r as PosterCard, Xr as SmallNakedCard, Lr as SnapCard };