@telefonica/mistica 16.36.0 → 16.37.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 (333) hide show
  1. package/css/blau.css +96 -24
  2. package/css/esimflag.css +93 -21
  3. package/css/mistica-common.css +9 -4
  4. package/css/mistica.css +1 -1
  5. package/css/movistar.css +101 -29
  6. package/css/o2-new.css +99 -28
  7. package/css/o2.css +93 -21
  8. package/css/telefonica.css +96 -24
  9. package/css/tu.css +96 -24
  10. package/css/vivo-new.css +96 -24
  11. package/css/vivo.css +96 -24
  12. package/dist/accordion.css-mistica.js +10 -10
  13. package/dist/align.css-mistica.js +1 -1
  14. package/dist/avatar.css-mistica.js +2 -2
  15. package/dist/badge.css-mistica.js +2 -2
  16. package/dist/box.css-mistica.js +13 -13
  17. package/dist/box.js +5 -5
  18. package/dist/boxed.css-mistica.js +24 -24
  19. package/dist/boxed.d.ts +2 -1
  20. package/dist/boxed.js +10 -9
  21. package/dist/button-group.css-mistica.js +4 -4
  22. package/dist/button-group.js +2 -2
  23. package/dist/button-layout.css-mistica.js +18 -18
  24. package/dist/button.css-mistica.js +35 -35
  25. package/dist/callout.css-mistica.js +5 -5
  26. package/dist/card-cover.d.ts +126 -0
  27. package/dist/card-cover.js +185 -0
  28. package/dist/card-data.d.ts +63 -0
  29. package/dist/card-data.js +171 -0
  30. package/dist/card-internal.css-mistica.js +78 -0
  31. package/dist/card-internal.css.d.ts +17 -0
  32. package/dist/card-internal.d.ts +166 -0
  33. package/dist/card-internal.js +1063 -0
  34. package/dist/card-media.d.ts +78 -0
  35. package/dist/card-media.js +163 -0
  36. package/dist/card-naked.d.ts +11 -0
  37. package/dist/card-naked.js +154 -0
  38. package/dist/carousel.css-mistica.js +25 -25
  39. package/dist/checkbox.css-mistica.js +9 -9
  40. package/dist/checkbox.js +2 -2
  41. package/dist/chip.css-mistica.js +15 -15
  42. package/dist/circle.css-mistica.js +1 -1
  43. package/dist/community/advanced-data-card.css-mistica.js +24 -24
  44. package/dist/community/advanced-data-card.d.ts +1 -1
  45. package/dist/community/advanced-data-card.js +7 -7
  46. package/dist/community/blocks.css-mistica.js +1 -1
  47. package/dist/community/example-component.css-mistica.js +1 -1
  48. package/dist/counter.css-mistica.js +9 -9
  49. package/dist/counter.js +8 -8
  50. package/dist/cover-hero-media.js +9 -9
  51. package/dist/cover-hero.css-mistica.js +15 -15
  52. package/dist/credit-card-number-field.css-mistica.js +3 -3
  53. package/dist/date-field.css-mistica.js +1 -1
  54. package/dist/date-time-picker.css-mistica.js +1 -1
  55. package/dist/dialog.css-mistica.js +12 -12
  56. package/dist/dialog.js +14 -14
  57. package/dist/divider.css-mistica.js +2 -2
  58. package/dist/double-field.css-mistica.js +4 -4
  59. package/dist/drawer.css-mistica.js +2 -2
  60. package/dist/empty-state-card.css-mistica.js +1 -1
  61. package/dist/empty-state.css-mistica.js +6 -6
  62. package/dist/fade-in.css-mistica.js +1 -1
  63. package/dist/feedback.css-mistica.js +4 -4
  64. package/dist/fixed-footer-layout.css-mistica.js +10 -10
  65. package/dist/fixed-footer-layout.js +5 -5
  66. package/dist/form.css-mistica.js +1 -1
  67. package/dist/form.js +5 -5
  68. package/dist/grid-layout.css-mistica.js +3 -3
  69. package/dist/grid.css-mistica.js +122 -122
  70. package/dist/header.css-mistica.js +3 -3
  71. package/dist/hero.css-mistica.js +6 -6
  72. package/dist/hooks.d.ts +4 -0
  73. package/dist/hooks.js +94 -83
  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 +47 -47
  77. package/dist/icon-button.js +3 -3
  78. package/dist/icons/icon-chevron.css-mistica.js +2 -2
  79. package/dist/icons/icon-error.css-mistica.js +1 -1
  80. package/dist/image.css-mistica.js +5 -5
  81. package/dist/image.d.ts +2 -0
  82. package/dist/image.js +24 -20
  83. package/dist/index.d.ts +18 -3
  84. package/dist/index.js +28 -13
  85. package/dist/inline.css-mistica.js +10 -10
  86. package/dist/list.css-mistica.js +30 -15
  87. package/dist/list.css.d.ts +5 -0
  88. package/dist/list.d.ts +16 -1
  89. package/dist/list.js +158 -99
  90. package/dist/loading-bar.css-mistica.js +1 -1
  91. package/dist/loading-bar.js +2 -2
  92. package/dist/loading-screen.css-mistica.js +9 -9
  93. package/dist/loading-screen.js +3 -3
  94. package/dist/logo.css-mistica.js +5 -5
  95. package/dist/menu.css-mistica.js +14 -14
  96. package/dist/menu.js +7 -7
  97. package/dist/mosaic.css-mistica.js +1 -1
  98. package/dist/navigation-bar.css-mistica.js +32 -32
  99. package/dist/navigation-breadcrumbs.css-mistica.js +3 -3
  100. package/dist/package-version.js +1 -1
  101. package/dist/pin-field.css-mistica.js +9 -9
  102. package/dist/pin-field.js +2 -2
  103. package/dist/popover.css-mistica.js +1 -1
  104. package/dist/progress-bar.css-mistica.js +4 -4
  105. package/dist/progress-bar.js +2 -2
  106. package/dist/radio-button.css-mistica.js +18 -18
  107. package/dist/radio-button.js +5 -5
  108. package/dist/rating.css-mistica.js +4 -4
  109. package/dist/rating.js +8 -8
  110. package/dist/responsive-layout.css-mistica.js +5 -5
  111. package/dist/responsive-layout.js +6 -6
  112. package/dist/screen-reader-only.css-mistica.js +1 -1
  113. package/dist/select.css-mistica.js +18 -18
  114. package/dist/select.js +9 -9
  115. package/dist/sheet-action-row.css-mistica.js +1 -1
  116. package/dist/sheet-common.css-mistica.js +12 -12
  117. package/dist/sheet-info.css-mistica.js +1 -1
  118. package/dist/skeletons.css-mistica.js +6 -6
  119. package/dist/skins/blau.js +50 -14
  120. package/dist/skins/esimflag.js +49 -13
  121. package/dist/skins/movistar.js +54 -18
  122. package/dist/skins/o2-new.js +49 -13
  123. package/dist/skins/o2.js +49 -13
  124. package/dist/skins/skin-contract.css-mistica.js +390 -354
  125. package/dist/skins/skin-contract.css.d.ts +48 -12
  126. package/dist/skins/telefonica.js +50 -14
  127. package/dist/skins/tu.js +50 -14
  128. package/dist/skins/types/colors.d.ts +24 -6
  129. package/dist/skins/vivo-new.js +50 -14
  130. package/dist/skins/vivo.js +50 -14
  131. package/dist/skip-link.css-mistica.js +2 -2
  132. package/dist/slider.css-mistica.js +13 -13
  133. package/dist/slider.js +9 -9
  134. package/dist/snackbar.css-mistica.js +7 -7
  135. package/dist/spinner.css-mistica.js +1 -1
  136. package/dist/stack.css-mistica.js +5 -5
  137. package/dist/stacking-group.css-mistica.js +1 -1
  138. package/dist/stepper.css-mistica.js +8 -8
  139. package/dist/stepper.js +3 -3
  140. package/dist/switch-component.css-mistica.js +37 -37
  141. package/dist/table.css-mistica.js +8 -8
  142. package/dist/table.d.ts +1 -1
  143. package/dist/table.js +8 -8
  144. package/dist/tabs.css-mistica.js +17 -17
  145. package/dist/tag.css-mistica.js +1 -1
  146. package/dist/tag.js +10 -10
  147. package/dist/text-field-base.css-mistica.js +10 -10
  148. package/dist/text-field-base.js +8 -8
  149. package/dist/text-field-components.css-mistica.js +18 -18
  150. package/dist/text-field-components.js +2 -2
  151. package/dist/text-link.css-mistica.js +5 -5
  152. package/dist/text.css-mistica.js +7 -7
  153. package/dist/text.js +7 -7
  154. package/dist/theme-context.css-mistica.js +430 -394
  155. package/dist/theme-context.css.d.ts +48 -12
  156. package/dist/timeline.css-mistica.js +12 -12
  157. package/dist/timer.css-mistica.js +8 -8
  158. package/dist/tooltip.css-mistica.js +7 -7
  159. package/dist/touchable.css-mistica.js +1 -1
  160. package/dist/utils/aspect-ratio-support.css-mistica.js +5 -5
  161. package/dist/utils/aspect-ratio-support.d.ts +5 -0
  162. package/dist/utils/aspect-ratio-support.js +26 -15
  163. package/dist/utils/color.d.ts +11 -0
  164. package/dist/utils/color.js +27 -6
  165. package/dist/utils/headings.d.ts +3 -0
  166. package/dist/video.css-mistica.js +1 -1
  167. package/dist/video.js +2 -2
  168. package/dist/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +1 -1
  169. package/dist-es/accordion.css-mistica.js +7 -7
  170. package/dist-es/align.css-mistica.js +1 -1
  171. package/dist-es/avatar.css-mistica.js +2 -2
  172. package/dist-es/badge.css-mistica.js +2 -2
  173. package/dist-es/box.css-mistica.js +13 -13
  174. package/dist-es/box.js +9 -9
  175. package/dist-es/boxed.css-mistica.js +23 -23
  176. package/dist-es/boxed.js +20 -19
  177. package/dist-es/button-group.css-mistica.js +2 -2
  178. package/dist-es/button-group.js +4 -4
  179. package/dist-es/button-layout.css-mistica.js +15 -15
  180. package/dist-es/button.css-mistica.js +22 -22
  181. package/dist-es/callout.css-mistica.js +5 -5
  182. package/dist-es/callout.js +5 -5
  183. package/dist-es/card-cover.js +125 -0
  184. package/dist-es/card-data.js +110 -0
  185. package/dist-es/card-internal.css-mistica.js +22 -0
  186. package/dist-es/card-internal.js +992 -0
  187. package/dist-es/card-media.js +105 -0
  188. package/dist-es/card-naked.js +96 -0
  189. package/dist-es/carousel.css-mistica.js +9 -9
  190. package/dist-es/checkbox.css-mistica.js +8 -8
  191. package/dist-es/checkbox.js +6 -6
  192. package/dist-es/chip.css-mistica.js +13 -13
  193. package/dist-es/circle.css-mistica.js +1 -1
  194. package/dist-es/community/advanced-data-card.css-mistica.js +7 -7
  195. package/dist-es/community/advanced-data-card.js +29 -29
  196. package/dist-es/community/blocks.css-mistica.js +1 -1
  197. package/dist-es/community/example-component.css-mistica.js +1 -1
  198. package/dist-es/counter.css-mistica.js +2 -2
  199. package/dist-es/counter.js +8 -8
  200. package/dist-es/cover-hero-media.js +9 -9
  201. package/dist-es/cover-hero.css-mistica.js +4 -4
  202. package/dist-es/credit-card-number-field.css-mistica.js +3 -3
  203. package/dist-es/date-field.css-mistica.js +1 -1
  204. package/dist-es/date-time-picker.css-mistica.js +1 -1
  205. package/dist-es/dialog.css-mistica.js +5 -5
  206. package/dist-es/dialog.js +31 -31
  207. package/dist-es/divider.css-mistica.js +2 -2
  208. package/dist-es/double-field.css-mistica.js +4 -4
  209. package/dist-es/drawer.css-mistica.js +2 -2
  210. package/dist-es/empty-state-card.css-mistica.js +1 -1
  211. package/dist-es/empty-state.css-mistica.js +6 -6
  212. package/dist-es/empty-state.js +7 -7
  213. package/dist-es/fade-in.css-mistica.js +1 -1
  214. package/dist-es/feedback.css-mistica.js +2 -2
  215. package/dist-es/fixed-footer-layout.css-mistica.js +5 -5
  216. package/dist-es/fixed-footer-layout.js +5 -5
  217. package/dist-es/form.css-mistica.js +1 -1
  218. package/dist-es/form.js +5 -5
  219. package/dist-es/grid-layout.css-mistica.js +3 -3
  220. package/dist-es/grid.css-mistica.js +122 -122
  221. package/dist-es/grid.js +2 -2
  222. package/dist-es/header.css-mistica.js +2 -2
  223. package/dist-es/hero.css-mistica.js +3 -3
  224. package/dist-es/hooks.js +86 -78
  225. package/dist-es/horizontal-scroll.css-mistica.js +1 -1
  226. package/dist-es/horizontal-scroll.js +2 -2
  227. package/dist-es/icon-button.css-mistica.js +45 -45
  228. package/dist-es/icon-button.js +3 -3
  229. package/dist-es/icons/icon-chevron.css-mistica.js +2 -2
  230. package/dist-es/icons/icon-error.css-mistica.js +1 -1
  231. package/dist-es/image.css-mistica.js +4 -4
  232. package/dist-es/image.js +42 -38
  233. package/dist-es/index.js +1887 -1884
  234. package/dist-es/inline.css-mistica.js +10 -10
  235. package/dist-es/list.css-mistica.js +2 -2
  236. package/dist-es/list.js +226 -174
  237. package/dist-es/loading-bar.css-mistica.js +1 -1
  238. package/dist-es/loading-bar.js +6 -6
  239. package/dist-es/loading-screen.css-mistica.js +5 -5
  240. package/dist-es/loading-screen.js +8 -8
  241. package/dist-es/logo.css-mistica.js +5 -5
  242. package/dist-es/menu.css-mistica.js +13 -13
  243. package/dist-es/menu.js +7 -7
  244. package/dist-es/mosaic.css-mistica.js +1 -1
  245. package/dist-es/navigation-bar.css-mistica.js +17 -17
  246. package/dist-es/navigation-breadcrumbs.css-mistica.js +2 -2
  247. package/dist-es/package-version.js +1 -1
  248. package/dist-es/pin-field.css-mistica.js +2 -2
  249. package/dist-es/pin-field.js +8 -8
  250. package/dist-es/popover.css-mistica.js +1 -1
  251. package/dist-es/progress-bar.css-mistica.js +4 -4
  252. package/dist-es/progress-bar.js +10 -10
  253. package/dist-es/radio-button.css-mistica.js +16 -16
  254. package/dist-es/radio-button.js +5 -5
  255. package/dist-es/rating.css-mistica.js +3 -3
  256. package/dist-es/rating.js +12 -12
  257. package/dist-es/responsive-layout.css-mistica.js +5 -5
  258. package/dist-es/responsive-layout.js +15 -15
  259. package/dist-es/screen-reader-only.css-mistica.js +1 -1
  260. package/dist-es/select.css-mistica.js +17 -17
  261. package/dist-es/select.js +15 -15
  262. package/dist-es/sheet-action-row.css-mistica.js +1 -1
  263. package/dist-es/sheet-common.css-mistica.js +2 -2
  264. package/dist-es/sheet-info.css-mistica.js +1 -1
  265. package/dist-es/skeletons.css-mistica.js +5 -5
  266. package/dist-es/skins/blau.js +50 -14
  267. package/dist-es/skins/esimflag.js +49 -13
  268. package/dist-es/skins/movistar.js +54 -18
  269. package/dist-es/skins/o2-new.js +49 -13
  270. package/dist-es/skins/o2.js +49 -13
  271. package/dist-es/skins/skin-contract.css-mistica.js +390 -354
  272. package/dist-es/skins/telefonica.js +50 -14
  273. package/dist-es/skins/tu.js +52 -16
  274. package/dist-es/skins/vivo-new.js +52 -16
  275. package/dist-es/skins/vivo.js +52 -16
  276. package/dist-es/skip-link.css-mistica.js +2 -2
  277. package/dist-es/slider.css-mistica.js +11 -11
  278. package/dist-es/slider.js +9 -9
  279. package/dist-es/snackbar.css-mistica.js +5 -5
  280. package/dist-es/spinner.css-mistica.js +1 -1
  281. package/dist-es/stack.css-mistica.js +5 -5
  282. package/dist-es/stacking-group.css-mistica.js +1 -1
  283. package/dist-es/stepper.css-mistica.js +3 -3
  284. package/dist-es/stepper.js +3 -3
  285. package/dist-es/style.css +1 -1
  286. package/dist-es/switch-component.css-mistica.js +29 -29
  287. package/dist-es/table.css-mistica.js +8 -8
  288. package/dist-es/table.js +12 -12
  289. package/dist-es/tabs.css-mistica.js +14 -14
  290. package/dist-es/tag.css-mistica.js +1 -1
  291. package/dist-es/tag.js +17 -17
  292. package/dist-es/text-field-base.css-mistica.js +2 -2
  293. package/dist-es/text-field-base.js +16 -16
  294. package/dist-es/text-field-components.css-mistica.js +5 -5
  295. package/dist-es/text-field-components.js +4 -4
  296. package/dist-es/text-link.css-mistica.js +5 -5
  297. package/dist-es/text.css-mistica.js +7 -7
  298. package/dist-es/text.js +6 -6
  299. package/dist-es/theme-context.css-mistica.js +430 -394
  300. package/dist-es/timeline.css-mistica.js +11 -11
  301. package/dist-es/timeline.js +4 -4
  302. package/dist-es/timer.css-mistica.js +7 -7
  303. package/dist-es/tooltip.css-mistica.js +2 -2
  304. package/dist-es/touchable.css-mistica.js +1 -1
  305. package/dist-es/utils/aspect-ratio-support.css-mistica.js +4 -4
  306. package/dist-es/utils/aspect-ratio-support.js +31 -23
  307. package/dist-es/utils/color.js +23 -5
  308. package/dist-es/video.css-mistica.js +1 -1
  309. package/dist-es/video.js +5 -5
  310. package/dist-es/vivinho-loading-animation/vivinho-loading-animation.css-mistica.js +1 -1
  311. package/package.json +1 -1
  312. package/dist/card.css-mistica.js +0 -106
  313. package/dist/card.css.d.ts +0 -33
  314. package/dist/card.d.ts +0 -299
  315. package/dist/card.js +0 -1694
  316. package/dist/highlighted-card.css-mistica.js +0 -30
  317. package/dist/highlighted-card.css.d.ts +0 -7
  318. package/dist/highlighted-card.css.ts.vanilla.css-mistica.js +0 -11
  319. package/dist/highlighted-card.d.ts +0 -34
  320. package/dist/highlighted-card.js +0 -253
  321. package/dist/maybe-dismissable.css-mistica.js +0 -21
  322. package/dist/maybe-dismissable.css.ts.vanilla.css-mistica.js +0 -11
  323. package/dist/maybe-dismissable.js +0 -108
  324. package/dist-es/card.css-mistica.js +0 -8
  325. package/dist-es/card.js +0 -1599
  326. package/dist-es/highlighted-card.css-mistica.js +0 -7
  327. package/dist-es/highlighted-card.css.ts.vanilla.css-mistica.js +0 -2
  328. package/dist-es/highlighted-card.js +0 -198
  329. package/dist-es/maybe-dismissable.css-mistica.js +0 -4
  330. package/dist-es/maybe-dismissable.css.ts.vanilla.css-mistica.js +0 -2
  331. package/dist-es/maybe-dismissable.js +0 -45
  332. /package/dist/{card.css.ts.vanilla.css-mistica.js → card-internal.css.ts.vanilla.css-mistica.js} +0 -0
  333. /package/dist-es/{card.css.ts.vanilla.css-mistica.js → card-internal.css.ts.vanilla.css-mistica.js} +0 -0
package/dist/card.js DELETED
@@ -1,1694 +0,0 @@
1
- "use client";
2
- "use strict";
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- function _export(target, all) {
7
- for(var name in all)Object.defineProperty(target, name, {
8
- enumerable: true,
9
- get: all[name]
10
- });
11
- }
12
- _export(exports, {
13
- CardActionIconButton: function() {
14
- return Ta;
15
- },
16
- CardActionSpinner: function() {
17
- return Ba;
18
- },
19
- CardActionsGroup: function() {
20
- return oe;
21
- },
22
- DataCard: function() {
23
- return sd;
24
- },
25
- DisplayDataCard: function() {
26
- return hd;
27
- },
28
- DisplayMediaCard: function() {
29
- return cd;
30
- },
31
- MediaCard: function() {
32
- return td;
33
- },
34
- NakedCard: function() {
35
- return nd;
36
- },
37
- PosterCard: function() {
38
- return vd;
39
- },
40
- SmallNakedCard: function() {
41
- return od;
42
- },
43
- SnapCard: function() {
44
- return ld;
45
- },
46
- useInnerText: function() {
47
- return H;
48
- },
49
- useVideoWithControls: function() {
50
- return $e;
51
- }
52
- });
53
- const _jsxruntime = require("react/jsx-runtime");
54
- const _react = /*#__PURE__*/ _interop_require_wildcard(require("react"));
55
- const _tag = /*#__PURE__*/ _interop_require_default(require("./tag.js"));
56
- const _stack = /*#__PURE__*/ _interop_require_default(require("./stack.js"));
57
- const _box = /*#__PURE__*/ _interop_require_default(require("./box.js"));
58
- const _text = require("./text.js");
59
- const _textprops = require("./text-props.js");
60
- const _boxed = require("./boxed.js");
61
- const _buttongroup = /*#__PURE__*/ _interop_require_default(require("./button-group.js"));
62
- const _image = /*#__PURE__*/ _interop_require_default(require("./image.js"));
63
- const _touchable = require("./touchable.js");
64
- const _skincontractcssmistica = require("./skins/skin-contract.css-mistica.js");
65
- const _cardcssmistica = require("./card.css-mistica.js");
66
- const _imagecssmistica = require("./image.css-mistica.js");
67
- const _hooks = require("./hooks.js");
68
- const _iconbutton = require("./icon-button.js");
69
- const _iconcloseregular = /*#__PURE__*/ _interop_require_default(require("./generated/mistica-icons/icon-close-regular.js"));
70
- const _iconpausefilled = /*#__PURE__*/ _interop_require_default(require("./generated/mistica-icons/icon-pause-filled.js"));
71
- const _iconplayfilled = /*#__PURE__*/ _interop_require_default(require("./generated/mistica-icons/icon-play-filled.js"));
72
- const _common = require("./utils/common.js");
73
- const _spinner = /*#__PURE__*/ _interop_require_default(require("./spinner.js"));
74
- const _video = /*#__PURE__*/ _interop_require_default(require("./video.js"));
75
- const _themevariantcontext = require("./theme-variant-context.js");
76
- const _classnames = /*#__PURE__*/ _interop_require_default(require("classnames"));
77
- const _inline = /*#__PURE__*/ _interop_require_default(require("./inline.js"));
78
- const _dom = require("./utils/dom.js");
79
- const _platform = require("./utils/platform.js");
80
- const _css = require("./utils/css.js");
81
- const _texttokens = require("./text-tokens.js");
82
- const _headings = require("./utils/headings.js");
83
- function _interop_require_default(obj) {
84
- return obj && obj.__esModule ? obj : {
85
- default: obj
86
- };
87
- }
88
- function _getRequireWildcardCache(nodeInterop) {
89
- if (typeof WeakMap !== "function") return null;
90
- var cacheBabelInterop = new WeakMap();
91
- var cacheNodeInterop = new WeakMap();
92
- return (_getRequireWildcardCache = function(nodeInterop) {
93
- return nodeInterop ? cacheNodeInterop : cacheBabelInterop;
94
- })(nodeInterop);
95
- }
96
- function _interop_require_wildcard(obj, nodeInterop) {
97
- if (!nodeInterop && obj && obj.__esModule) {
98
- return obj;
99
- }
100
- if (obj === null || typeof obj !== "object" && typeof obj !== "function") {
101
- return {
102
- default: obj
103
- };
104
- }
105
- var cache = _getRequireWildcardCache(nodeInterop);
106
- if (cache && cache.has(obj)) {
107
- return cache.get(obj);
108
- }
109
- var newObj = {
110
- __proto__: null
111
- };
112
- var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor;
113
- for(var key in obj){
114
- if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) {
115
- var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null;
116
- if (desc && (desc.get || desc.set)) {
117
- Object.defineProperty(newObj, key, desc);
118
- } else {
119
- newObj[key] = obj[key];
120
- }
121
- }
122
- }
123
- newObj.default = obj;
124
- if (cache) {
125
- cache.set(obj, newObj);
126
- }
127
- return newObj;
128
- }
129
- function _define_property(obj, key, value) {
130
- if (key in obj) {
131
- Object.defineProperty(obj, key, {
132
- value: value,
133
- enumerable: true,
134
- configurable: true,
135
- writable: true
136
- });
137
- } else {
138
- obj[key] = value;
139
- }
140
- return obj;
141
- }
142
- function _object_spread(target) {
143
- for(var i = 1; i < arguments.length; i++){
144
- var source = arguments[i] != null ? arguments[i] : {};
145
- var ownKeys = Object.keys(source);
146
- if (typeof Object.getOwnPropertySymbols === "function") {
147
- ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
148
- return Object.getOwnPropertyDescriptor(source, sym).enumerable;
149
- }));
150
- }
151
- ownKeys.forEach(function(key) {
152
- _define_property(target, key, source[key]);
153
- });
154
- }
155
- return target;
156
- }
157
- function ownKeys(object, enumerableOnly) {
158
- var keys = Object.keys(object);
159
- if (Object.getOwnPropertySymbols) {
160
- var symbols = Object.getOwnPropertySymbols(object);
161
- if (enumerableOnly) {
162
- symbols = symbols.filter(function(sym) {
163
- return Object.getOwnPropertyDescriptor(object, sym).enumerable;
164
- });
165
- }
166
- keys.push.apply(keys, symbols);
167
- }
168
- return keys;
169
- }
170
- function _object_spread_props(target, source) {
171
- source = source != null ? source : {};
172
- if (Object.getOwnPropertyDescriptors) {
173
- Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
174
- } else {
175
- ownKeys(Object(source)).forEach(function(key) {
176
- Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
177
- });
178
- }
179
- return target;
180
- }
181
- function _object_without_properties(source, excluded) {
182
- if (source == null) return {};
183
- var target = _object_without_properties_loose(source, excluded);
184
- var key, i;
185
- if (Object.getOwnPropertySymbols) {
186
- var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
187
- for(i = 0; i < sourceSymbolKeys.length; i++){
188
- key = sourceSymbolKeys[i];
189
- if (excluded.indexOf(key) >= 0) continue;
190
- if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
191
- target[key] = source[key];
192
- }
193
- }
194
- return target;
195
- }
196
- function _object_without_properties_loose(source, excluded) {
197
- if (source == null) return {};
198
- var target = {};
199
- var sourceKeys = Object.keys(source);
200
- var key, i;
201
- for(i = 0; i < sourceKeys.length; i++){
202
- key = sourceKeys[i];
203
- if (excluded.indexOf(key) >= 0) continue;
204
- target[key] = source[key];
205
- }
206
- return target;
207
- }
208
- const H = ()=>{
209
- const [a, d] = _react.useState(""), r = _react.useCallback((n)=>{
210
- n && d((process.env.NODE_ENV === "test" ? n.textContent : n.innerText) || "");
211
- }, []);
212
- return {
213
- text: a,
214
- ref: r
215
- };
216
- }, Xe = (a, d, r)=>{
217
- const { texts: n, t: v } = (0, _hooks.useTheme)(), t = a ? [
218
- ...a
219
- ] : [];
220
- return d && t.push({
221
- label: r || n.closeButtonLabel || v(_texttokens.closeButtonLabel),
222
- onPress: d,
223
- Icon: _iconcloseregular.default
224
- }), t;
225
- }, Ta = (a)=>{
226
- const d = (0, _themevariantcontext.useThemeVariant)();
227
- return a.Icon ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.IconButton, _object_spread_props(_object_spread({}, a), {
228
- "aria-label": a.label,
229
- small: !0,
230
- type: "neutral",
231
- backgroundType: "transparent"
232
- })) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconbutton.ToggleIconButton, _object_spread_props(_object_spread({}, a), {
233
- checkedProps: _object_spread_props(_object_spread({}, a.checkedProps), {
234
- "aria-label": a.checkedProps.label,
235
- type: d === "media" ? "neutral" : "brand",
236
- backgroundType: "solid"
237
- }),
238
- uncheckedProps: _object_spread_props(_object_spread({}, a.uncheckedProps), {
239
- "aria-label": a.uncheckedProps.label,
240
- type: "neutral",
241
- backgroundType: "transparent"
242
- }),
243
- small: !0
244
- }));
245
- }, oe = (param)=>{
246
- let { actions: a, padding: d = 16, onClose: r, variant: n = "default", closeButtonLabel: v } = param;
247
- const t = Xe(a, r, v);
248
- return t.length > 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
249
- variant: n,
250
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
251
- style: {
252
- position: "absolute",
253
- right: d,
254
- top: d,
255
- zIndex: 3
256
- },
257
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_inline.default, {
258
- space: 16,
259
- dataAttributes: {
260
- testid: "topActions"
261
- },
262
- children: t.map((l, o)=>"Icon" in l || "checkedProps" in l ? /* @__PURE__ */ (0, _jsxruntime.jsx)(Ta, _object_spread({}, l), o) : l)
263
- })
264
- })
265
- }) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {});
266
- }, Ra = (a)=>a ? typeof a == "number" ? a : ({
267
- "1:1": 1,
268
- "16:9": 16 / 9,
269
- "7:10": 7 / 10,
270
- "9:10": 9 / 10,
271
- auto: 0
272
- })[a] : 0, L = /*#__PURE__*/ _react.forwardRef((param, m)=>{
273
- let { children: a, width: d, height: r, aspectRatio: n, dataAttributes: v, className: t, "aria-label": i, "aria-labelledby": l, "aria-description": o, "aria-describedby": b } = param;
274
- const c = d && r ? void 0 : Ra(n);
275
- return(// eslint-disable-next-line jsx-a11y/role-supports-aria-props
276
- /* @__PURE__ */ (0, _jsxruntime.jsx)("section", _object_spread_props(_object_spread({}, (0, _dom.getPrefixedDataAttributes)(v)), {
277
- ref: m,
278
- "aria-label": i,
279
- "aria-labelledby": l,
280
- "aria-description": o,
281
- "aria-describedby": b,
282
- className: (0, _classnames.default)(t, _cardcssmistica.cardContainer),
283
- style: _object_spread({
284
- width: d || "100%",
285
- height: r || "100%"
286
- }, c ? (0, _css.applyCssVars)({
287
- [_cardcssmistica.vars.aspectRatio]: String(c)
288
- }) : {}),
289
- children: a
290
- })));
291
- }), _e = (a)=>{
292
- const d = typeof a == "string" ? a : a == null ? void 0 : a.src, r = typeof a == "string" || a == null ? void 0 : a.srcSet;
293
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(_image.default, {
294
- width: "100%",
295
- height: "100%",
296
- src: d || "",
297
- srcSet: r
298
- });
299
- }, wa = {
300
- loading: {
301
- showSpinner: "loadingTimeout",
302
- play: "playing",
303
- pause: "paused",
304
- fail: "error"
305
- },
306
- loadingTimeout: {
307
- play: "playing",
308
- pause: "paused",
309
- fail: "error",
310
- reset: "loading"
311
- },
312
- playing: {
313
- pause: "paused",
314
- reset: "loading",
315
- fail: "error"
316
- },
317
- paused: {
318
- play: "playing",
319
- reset: "loading",
320
- fail: "error"
321
- },
322
- error: {
323
- reset: "loading"
324
- }
325
- }, Sa = (a, d)=>wa[a][d] || a, Ba = (param)=>{
326
- let { color: a } = param;
327
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(_spinner.default, {
328
- color: a,
329
- size: 16,
330
- delay: "0"
331
- });
332
- }, ka = (param)=>{
333
- let { color: a } = param;
334
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconpausefilled.default, {
335
- color: a,
336
- size: 12
337
- });
338
- }, Ia = (param)=>{
339
- let { color: a } = param;
340
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(_iconplayfilled.default, {
341
- color: a,
342
- size: 12
343
- });
344
- }, $e = (a, d, r)=>{
345
- const { texts: n, t: v } = (0, _hooks.useTheme)(), t = _react.useRef(null), [i, l] = _react.useReducer(Sa, "loading");
346
- _react.useEffect(()=>{
347
- var f;
348
- const c = setTimeout(()=>l("showSpinner"), 2e3);
349
- return (f = t.current) == null || f.load(), ()=>{
350
- clearTimeout(c), l("reset");
351
- };
352
- }, [
353
- a
354
- ]);
355
- const o = _react.useMemo(()=>a !== void 0 ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_video.default, {
356
- ref: (0, _common.combineRefs)(t, r),
357
- src: a,
358
- width: "100%",
359
- height: "100%",
360
- poster: d,
361
- onError: ()=>l("fail"),
362
- onPause: ()=>l("pause"),
363
- onPlay: ()=>l("play")
364
- }) : void 0, [
365
- r,
366
- a,
367
- d
368
- ]), b = ()=>{
369
- const c = t.current;
370
- c && (i === "loading" ? l("showSpinner") : i === "paused" ? c.play() : i === "playing" && c.pause());
371
- };
372
- if (i === "error") return {
373
- video: o
374
- };
375
- const m = o ? {
376
- uncheckedProps: {
377
- Icon: i === "loadingTimeout" && !(0, _platform.isRunningAcceptanceTest)() ? Ba : ka,
378
- label: i === "loadingTimeout" ? "" : n.pauseIconButtonLabel || v(_texttokens.pauseIconButtonLabel)
379
- },
380
- checkedProps: {
381
- Icon: Ia,
382
- label: n.playIconButtonLabel || v(_texttokens.playIconButtonLabel)
383
- },
384
- onChange: b,
385
- disabled: i === "loadingTimeout",
386
- checked: i === "paused"
387
- } : void 0;
388
- return {
389
- video: o,
390
- videoAction: m
391
- };
392
- }, Re = (param)=>{
393
- let { headline: a, headlineRef: d, pretitle: r, pretitleAs: n, pretitleLinesMax: v, title: t, titleAs: i = "h3", titleLinesMax: l, subtitle: o, subtitleLinesMax: b, description: m, descriptionLinesMax: c, extra: f, extraRef: g, button: T, buttonLink: x, slotAlignment: C } = param;
394
- const { textPresets: h } = (0, _hooks.useTheme)();
395
- return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
396
- className: _cardcssmistica.cardContentContainer,
397
- children: [
398
- /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
399
- className: _cardcssmistica.flexColumn,
400
- style: C ? {
401
- height: "100%"
402
- } : void 0,
403
- children: [
404
- (0, _headings.isBiggerHeading)(i, n) ? /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
405
- children: [
406
- t && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
407
- style: {
408
- paddingBottom: o || m ? 4 : 0
409
- },
410
- "data-testid": "title",
411
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _textprops.text4), {
412
- truncate: l,
413
- weight: h.cardTitle.weight,
414
- as: i,
415
- hyphens: "auto",
416
- children: t
417
- }))
418
- }),
419
- a && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
420
- ref: d,
421
- style: {
422
- order: -2,
423
- paddingBottom: r || t || o || m ? 8 : 0
424
- },
425
- "data-testid": "headline",
426
- children: typeof a == "string" ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_tag.default, {
427
- type: "promo",
428
- children: a
429
- }) : a
430
- }),
431
- r && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
432
- style: {
433
- order: -1,
434
- paddingBottom: 4
435
- },
436
- "data-testid": "pretitle",
437
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
438
- truncate: v,
439
- as: n,
440
- regular: !0,
441
- hyphens: "auto",
442
- children: r
443
- })
444
- })
445
- ]
446
- }) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
447
- children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
448
- children: [
449
- r && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
450
- style: {
451
- paddingBottom: 4
452
- },
453
- "data-testid": "pretitle",
454
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
455
- truncate: v,
456
- as: n,
457
- regular: !0,
458
- hyphens: "auto",
459
- children: r
460
- })
461
- }),
462
- a && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
463
- ref: d,
464
- style: {
465
- order: -1,
466
- paddingBottom: r || t || o || m ? 8 : 0
467
- },
468
- "data-testid": "headline",
469
- children: typeof a == "string" ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_tag.default, {
470
- type: "promo",
471
- children: a
472
- }) : a
473
- }),
474
- t && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
475
- style: {
476
- paddingBottom: o || m ? 4 : 0
477
- },
478
- "data-testid": "title",
479
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _textprops.text4), {
480
- truncate: l,
481
- weight: h.cardTitle.weight,
482
- as: i,
483
- hyphens: "auto",
484
- children: t
485
- }))
486
- })
487
- ]
488
- })
489
- }),
490
- o && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
491
- style: {
492
- paddingBottom: m ? 4 : 0
493
- },
494
- "data-testid": "subtitle",
495
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
496
- truncate: b,
497
- as: "div",
498
- regular: !0,
499
- hyphens: "auto",
500
- children: o
501
- })
502
- }),
503
- m && // this is tricky, when headline exists, the 8px padding is added by it.
504
- // Otherwise, only 4px are added by title|pretitle|subtitle, so we need to add 4px more
505
- /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
506
- style: {
507
- paddingTop: r || t || o ? 4 : 0
508
- },
509
- "data-testid": "description",
510
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
511
- truncate: c,
512
- as: "p",
513
- regular: !0,
514
- color: _skincontractcssmistica.vars.colors.textSecondary,
515
- hyphens: "auto",
516
- children: m
517
- })
518
- }),
519
- f && /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
520
- ref: g,
521
- style: C ? {
522
- display: "flex",
523
- flexDirection: "column",
524
- height: "100%"
525
- } : void 0,
526
- "data-testid": "slot",
527
- children: [
528
- C === "bottom" && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
529
- style: {
530
- flexGrow: 1
531
- }
532
- }),
533
- f,
534
- C === "content" && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
535
- style: {
536
- flexGrow: 1
537
- }
538
- })
539
- ]
540
- })
541
- ]
542
- }),
543
- (T || x) && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
544
- className: _cardcssmistica.actions,
545
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
546
- primaryButton: T,
547
- link: x
548
- })
549
- })
550
- ]
551
- });
552
- }, td = /*#__PURE__*/ _react.forwardRef((_param, X)=>{
553
- var { media: a, asset: d, headline: r, pretitle: n, pretitleAs: v, pretitleLinesMax: t, subtitle: i, subtitleLinesMax: l, title: o, titleAs: b = "h3", titleLinesMax: m, description: c, descriptionLinesMax: f, extra: g, actions: T, button: x, buttonLink: C, dataAttributes: h, "aria-label": w, "aria-labelledby": k, "aria-description": u, "aria-describedby": B, onClose: V, closeButtonLabel: G, slotAlignment: z } = _param, R = _object_without_properties(_param, [
554
- "media",
555
- "asset",
556
- "headline",
557
- "pretitle",
558
- "pretitleAs",
559
- "pretitleLinesMax",
560
- "subtitle",
561
- "subtitleLinesMax",
562
- "title",
563
- "titleAs",
564
- "titleLinesMax",
565
- "description",
566
- "descriptionLinesMax",
567
- "extra",
568
- "actions",
569
- "button",
570
- "buttonLink",
571
- "dataAttributes",
572
- "aria-label",
573
- "aria-labelledby",
574
- "aria-description",
575
- "aria-describedby",
576
- "onClose",
577
- "closeButtonLabel",
578
- "slotAlignment"
579
- ]);
580
- const y = !!(R.href || R.to || R.onPress), { text: S, ref: E } = H(), { text: O, ref: A } = H(), j = w || (k ? void 0 : ((0, _headings.isBiggerHeading)(b, v) ? [
581
- o,
582
- S,
583
- n,
584
- i,
585
- c,
586
- O
587
- ] : [
588
- n,
589
- S,
590
- o,
591
- i,
592
- c,
593
- O
594
- ]).filter(Boolean).join(" "));
595
- return /* @__PURE__ */ (0, _jsxruntime.jsxs)(L, {
596
- dataAttributes: _object_spread({
597
- "component-name": "MediaCard",
598
- testid: "MediaCard"
599
- }, h),
600
- ref: X,
601
- "aria-label": y ? void 0 : w,
602
- "aria-labelledby": y ? void 0 : k,
603
- "aria-description": y ? void 0 : u,
604
- "aria-describedby": y ? void 0 : B,
605
- className: _cardcssmistica.touchableContainer,
606
- children: [
607
- /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
608
- maybe: !0
609
- }, R), {
610
- className: _cardcssmistica.touchable,
611
- "aria-label": y ? j : void 0,
612
- "aria-labelledby": y ? k : void 0,
613
- "aria-description": y ? u : void 0,
614
- "aria-describedby": y ? B : void 0,
615
- children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_boxed.Boxed, {
616
- className: _cardcssmistica.boxed,
617
- width: "100%",
618
- height: "100%",
619
- children: [
620
- y && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
621
- className: _cardcssmistica.touchableMediaCardOverlay
622
- }),
623
- /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
624
- className: _cardcssmistica.mediaCard,
625
- "aria-hidden": y,
626
- children: [
627
- /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
628
- style: (0, _css.applyCssVars)({
629
- [_imagecssmistica.vars.mediaBorderRadius]: "0px"
630
- }),
631
- children: a
632
- }),
633
- /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
634
- className: _cardcssmistica.mediaCardContent,
635
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(Re, {
636
- headline: r,
637
- headlineRef: E,
638
- pretitle: n,
639
- pretitleAs: v,
640
- pretitleLinesMax: t,
641
- title: o,
642
- titleAs: b,
643
- titleLinesMax: m,
644
- subtitle: i,
645
- subtitleLinesMax: l,
646
- description: c,
647
- descriptionLinesMax: f,
648
- extra: g,
649
- extraRef: A,
650
- button: x,
651
- buttonLink: C,
652
- slotAlignment: z
653
- })
654
- }),
655
- d && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
656
- className: _cardcssmistica.mediaCardAsset,
657
- style: (0, _css.applyCssVars)({
658
- [_imagecssmistica.vars.mediaBorderRadius]: _skincontractcssmistica.vars.borderRadii.mediaSmall
659
- }),
660
- "data-testid": "asset",
661
- children: d
662
- })
663
- ]
664
- })
665
- ]
666
- })
667
- })),
668
- /* @__PURE__ */ (0, _jsxruntime.jsx)(oe, {
669
- onClose: V,
670
- closeButtonLabel: G,
671
- actions: T,
672
- variant: "media"
673
- })
674
- ]
675
- });
676
- }), nd = /*#__PURE__*/ _react.forwardRef((_param, X)=>{
677
- var { media: a, asset: d, headline: r, pretitle: n, pretitleAs: v, pretitleLinesMax: t, subtitle: i, subtitleLinesMax: l, title: o, titleAs: b = "h3", titleLinesMax: m, description: c, descriptionLinesMax: f, extra: g, actions: T, button: x, buttonLink: C, dataAttributes: h, "aria-label": w, "aria-labelledby": k, "aria-description": u, "aria-describedby": B, onClose: V, closeButtonLabel: G, slotAlignment: z } = _param, R = _object_without_properties(_param, [
678
- "media",
679
- "asset",
680
- "headline",
681
- "pretitle",
682
- "pretitleAs",
683
- "pretitleLinesMax",
684
- "subtitle",
685
- "subtitleLinesMax",
686
- "title",
687
- "titleAs",
688
- "titleLinesMax",
689
- "description",
690
- "descriptionLinesMax",
691
- "extra",
692
- "actions",
693
- "button",
694
- "buttonLink",
695
- "dataAttributes",
696
- "aria-label",
697
- "aria-labelledby",
698
- "aria-description",
699
- "aria-describedby",
700
- "onClose",
701
- "closeButtonLabel",
702
- "slotAlignment"
703
- ]);
704
- const y = !!(R.href || R.to || R.onPress), S = a && a.type === _image.default && a.props.circular, { text: E, ref: O } = H(), { text: A, ref: j } = H(), N = w || (k ? void 0 : ((0, _headings.isBiggerHeading)(b, v) ? [
705
- o,
706
- E,
707
- n,
708
- i,
709
- c,
710
- A
711
- ] : [
712
- n,
713
- E,
714
- o,
715
- i,
716
- c,
717
- A
718
- ]).filter(Boolean).join(" "));
719
- return /* @__PURE__ */ (0, _jsxruntime.jsxs)(L, {
720
- ref: X,
721
- dataAttributes: _object_spread({
722
- "component-name": "NakedCard",
723
- testid: "NakedCard"
724
- }, h),
725
- "aria-label": y ? void 0 : w,
726
- "aria-labelledby": y ? void 0 : k,
727
- "aria-description": y ? void 0 : u,
728
- "aria-describedby": y ? void 0 : B,
729
- className: y ? _cardcssmistica.touchableContainer : void 0,
730
- children: [
731
- /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
732
- maybe: !0
733
- }, R), {
734
- className: _cardcssmistica.touchable,
735
- "aria-label": y ? N : void 0,
736
- "aria-labelledby": y ? k : void 0,
737
- "aria-description": y ? u : void 0,
738
- "aria-describedby": y ? B : void 0,
739
- children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
740
- className: _cardcssmistica.mediaCard,
741
- "aria-hidden": y,
742
- children: [
743
- /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
744
- style: {
745
- position: "relative"
746
- },
747
- children: [
748
- y && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
749
- className: (0, _classnames.default)(_cardcssmistica.touchableNakedMediaOverlay, {
750
- [_cardcssmistica.circularMediaOverlay]: S
751
- })
752
- }),
753
- a
754
- ]
755
- }),
756
- /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
757
- className: _cardcssmistica.nakedCardContent,
758
- style: {
759
- paddingTop: a ? 16 : 0
760
- },
761
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(Re, {
762
- headline: r,
763
- headlineRef: O,
764
- pretitle: n,
765
- pretitleAs: v,
766
- pretitleLinesMax: t,
767
- title: o,
768
- titleAs: b,
769
- titleLinesMax: m,
770
- subtitle: i,
771
- subtitleLinesMax: l,
772
- description: c,
773
- descriptionLinesMax: f,
774
- extra: g,
775
- extraRef: j,
776
- button: x,
777
- buttonLink: C,
778
- slotAlignment: z
779
- })
780
- }),
781
- d && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
782
- className: _cardcssmistica.mediaCardAsset,
783
- style: (0, _css.applyCssVars)({
784
- [_imagecssmistica.vars.mediaBorderRadius]: _skincontractcssmistica.vars.borderRadii.mediaSmall
785
- }),
786
- "data-testid": "asset",
787
- children: d
788
- })
789
- ]
790
- })
791
- })),
792
- /* @__PURE__ */ (0, _jsxruntime.jsx)(oe, {
793
- onClose: V,
794
- closeButtonLabel: G,
795
- actions: T,
796
- variant: "media"
797
- })
798
- ]
799
- });
800
- }), od = /*#__PURE__*/ _react.forwardRef((_param, C)=>{
801
- var { media: a, title: d, titleAs: r = "h3", titleLinesMax: n, subtitle: v, subtitleLinesMax: t, description: i, descriptionLinesMax: l, extra: o, dataAttributes: b, "aria-label": m, "aria-labelledby": c, "aria-description": f, "aria-describedby": g, slotAlignment: T } = _param, x = _object_without_properties(_param, [
802
- "media",
803
- "title",
804
- "titleAs",
805
- "titleLinesMax",
806
- "subtitle",
807
- "subtitleLinesMax",
808
- "description",
809
- "descriptionLinesMax",
810
- "extra",
811
- "dataAttributes",
812
- "aria-label",
813
- "aria-labelledby",
814
- "aria-description",
815
- "aria-describedby",
816
- "slotAlignment"
817
- ]);
818
- const h = !!(x.href || x.to || x.onPress), w = a && a.type === _image.default && a.props.circular, { textPresets: k } = (0, _hooks.useTheme)(), { text: u, ref: B } = H(), V = m || (c ? void 0 : [
819
- d,
820
- v,
821
- i,
822
- u
823
- ].filter(Boolean).join(" "));
824
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(L, {
825
- ref: C,
826
- dataAttributes: _object_spread({
827
- "component-name": "SmallNakedCard",
828
- testid: "SmallNakedCard"
829
- }, b),
830
- "aria-label": h ? void 0 : m,
831
- "aria-labelledby": h ? void 0 : c,
832
- "aria-description": h ? void 0 : f,
833
- "aria-describedby": h ? void 0 : g,
834
- className: h ? _cardcssmistica.touchableContainer : void 0,
835
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
836
- maybe: !0
837
- }, x), {
838
- className: _cardcssmistica.touchable,
839
- "aria-label": h ? V : void 0,
840
- "aria-labelledby": h ? c : void 0,
841
- "aria-description": h ? f : void 0,
842
- "aria-describedby": h ? g : void 0,
843
- children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
844
- className: _cardcssmistica.mediaCard,
845
- "aria-hidden": h,
846
- children: [
847
- a && /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
848
- style: {
849
- position: "relative"
850
- },
851
- children: [
852
- h && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
853
- className: (0, _classnames.default)(_cardcssmistica.touchableNakedMediaOverlay, {
854
- [_cardcssmistica.circularMediaOverlay]: w
855
- })
856
- }),
857
- a
858
- ]
859
- }),
860
- /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
861
- className: _cardcssmistica.nakedCardContent,
862
- style: {
863
- paddingTop: a ? 16 : 0,
864
- height: T ? "100%" : void 0
865
- },
866
- children: [
867
- /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
868
- children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
869
- space: 4,
870
- children: [
871
- d && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _textprops.text2), {
872
- truncate: n,
873
- weight: k.cardTitle.weight,
874
- as: r,
875
- hyphens: "auto",
876
- dataAttributes: {
877
- testid: "title"
878
- },
879
- children: d
880
- })),
881
- v && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
882
- truncate: t,
883
- regular: !0,
884
- as: "p",
885
- hyphens: "auto",
886
- dataAttributes: {
887
- testid: "subtitle"
888
- },
889
- children: v
890
- }),
891
- i && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
892
- truncate: l,
893
- regular: !0,
894
- as: "p",
895
- color: _skincontractcssmistica.vars.colors.textSecondary,
896
- hyphens: "auto",
897
- dataAttributes: {
898
- testid: "description"
899
- },
900
- children: i
901
- })
902
- ]
903
- })
904
- }),
905
- o && /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
906
- ref: B,
907
- "data-testid": "slot",
908
- style: T ? {
909
- display: "flex",
910
- flexDirection: "column",
911
- height: "100%"
912
- } : void 0,
913
- children: [
914
- T === "bottom" && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
915
- style: {
916
- flexGrow: 1
917
- }
918
- }),
919
- o,
920
- T === "content" && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
921
- style: {
922
- flexGrow: 1
923
- }
924
- })
925
- ]
926
- })
927
- ]
928
- })
929
- ]
930
- })
931
- }))
932
- });
933
- }), sd = /*#__PURE__*/ _react.forwardRef((_param, X)=>{
934
- var { asset: a, headline: d, pretitle: r, pretitleAs: n, pretitleLinesMax: v, title: t, titleAs: i = "h3", titleLinesMax: l, subtitle: o, subtitleLinesMax: b, description: m, descriptionLinesMax: c, extra: f, actions: g, button: T, buttonLink: x, dataAttributes: C, "aria-label": h, "aria-labelledby": w, "aria-description": k, "aria-describedby": u, onClose: B, closeButtonLabel: V, aspectRatio: G, slotAlignment: z } = _param, R = _object_without_properties(_param, [
935
- "asset",
936
- "headline",
937
- "pretitle",
938
- "pretitleAs",
939
- "pretitleLinesMax",
940
- "title",
941
- "titleAs",
942
- "titleLinesMax",
943
- "subtitle",
944
- "subtitleLinesMax",
945
- "description",
946
- "descriptionLinesMax",
947
- "extra",
948
- "actions",
949
- "button",
950
- "buttonLink",
951
- "dataAttributes",
952
- "aria-label",
953
- "aria-labelledby",
954
- "aria-description",
955
- "aria-describedby",
956
- "onClose",
957
- "closeButtonLabel",
958
- "aspectRatio",
959
- "slotAlignment"
960
- ]);
961
- const y = !!a || !!d, S = !!(R.href || R.to || R.onPress), { text: E, ref: O } = H(), { text: A, ref: j } = H(), N = Xe(g, B), M = h || (w ? void 0 : ((0, _headings.isBiggerHeading)(i, n) ? [
962
- t,
963
- E,
964
- r,
965
- o,
966
- m,
967
- A
968
- ] : [
969
- r,
970
- E,
971
- t,
972
- o,
973
- m,
974
- A
975
- ]).filter(Boolean).join(" "));
976
- return /* @__PURE__ */ (0, _jsxruntime.jsxs)(L, {
977
- dataAttributes: _object_spread({
978
- "component-name": "DataCard",
979
- testid: "DataCard"
980
- }, C),
981
- ref: X,
982
- "aria-label": S ? void 0 : h,
983
- "aria-labelledby": S ? void 0 : w,
984
- "aria-description": S ? void 0 : k,
985
- "aria-describedby": S ? void 0 : u,
986
- className: _cardcssmistica.touchableContainer,
987
- aspectRatio: G,
988
- children: [
989
- /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
990
- maybe: !0
991
- }, R), {
992
- className: _cardcssmistica.touchable,
993
- "aria-label": S ? M : void 0,
994
- "aria-labelledby": S ? w : void 0,
995
- "aria-description": S ? k : void 0,
996
- "aria-describedby": S ? u : void 0,
997
- children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_boxed.Boxed, {
998
- className: _cardcssmistica.boxed,
999
- width: "100%",
1000
- height: "100%",
1001
- children: [
1002
- S && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1003
- className: _cardcssmistica.touchableCardOverlay
1004
- }),
1005
- /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
1006
- className: _cardcssmistica.dataCard,
1007
- "aria-hidden": S,
1008
- style: z ? {
1009
- height: "100%"
1010
- } : void 0,
1011
- children: [
1012
- /* @__PURE__ */ (0, _jsxruntime.jsxs)(_inline.default, {
1013
- space: 0,
1014
- children: [
1015
- /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
1016
- space: 16,
1017
- children: [
1018
- a && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1019
- style: (0, _css.applyCssVars)({
1020
- [_imagecssmistica.vars.mediaBorderRadius]: _skincontractcssmistica.vars.borderRadii.mediaSmall
1021
- }),
1022
- "data-testid": "asset",
1023
- children: a
1024
- }),
1025
- /* @__PURE__ */ (0, _jsxruntime.jsx)(Re, {
1026
- headline: d,
1027
- headlineRef: O,
1028
- pretitle: r,
1029
- pretitleAs: n,
1030
- pretitleLinesMax: v,
1031
- title: t,
1032
- titleAs: i,
1033
- titleLinesMax: l,
1034
- subtitle: o,
1035
- subtitleLinesMax: b,
1036
- description: m,
1037
- descriptionLinesMax: c
1038
- })
1039
- ]
1040
- }),
1041
- !y && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1042
- style: (0, _css.applyCssVars)({
1043
- [_cardcssmistica.vars.topActionsCount]: String(N.length)
1044
- }),
1045
- className: _cardcssmistica.dataCardTopActionsWithoutIcon
1046
- })
1047
- ]
1048
- }),
1049
- f && /* @__PURE__ */ (0, _jsxruntime.jsx)(_jsxruntime.Fragment, {
1050
- children: /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
1051
- ref: j,
1052
- "data-testid": "slot",
1053
- style: z ? {
1054
- display: "flex",
1055
- flexDirection: "column",
1056
- height: "100%"
1057
- } : void 0,
1058
- children: [
1059
- z === "bottom" && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1060
- style: {
1061
- flexGrow: 1
1062
- }
1063
- }),
1064
- f,
1065
- z === "content" && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1066
- style: {
1067
- flexGrow: 1
1068
- }
1069
- })
1070
- ]
1071
- })
1072
- }),
1073
- (T || x) && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1074
- className: _cardcssmistica.actions,
1075
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
1076
- primaryButton: T,
1077
- link: x
1078
- })
1079
- })
1080
- ]
1081
- })
1082
- ]
1083
- })
1084
- })),
1085
- /* @__PURE__ */ (0, _jsxruntime.jsx)(oe, {
1086
- onClose: B,
1087
- closeButtonLabel: V,
1088
- actions: g,
1089
- variant: "default"
1090
- })
1091
- ]
1092
- });
1093
- }), ld = /*#__PURE__*/ _react.forwardRef((_param, w)=>{
1094
- var { asset: a, title: d, titleAs: r = "h3", titleLinesMax: n, subtitle: v, subtitleLinesMax: t, description: i, descriptionLinesMax: l, dataAttributes: o, "aria-label": b, "aria-labelledby": m, "aria-description": c, "aria-describedby": f, extra: g, isInverse: T = !1, aspectRatio: x, slotAlignment: C } = _param, h = _object_without_properties(_param, [
1095
- "asset",
1096
- "title",
1097
- "titleAs",
1098
- "titleLinesMax",
1099
- "subtitle",
1100
- "subtitleLinesMax",
1101
- "description",
1102
- "descriptionLinesMax",
1103
- "dataAttributes",
1104
- "aria-label",
1105
- "aria-labelledby",
1106
- "aria-description",
1107
- "aria-describedby",
1108
- "extra",
1109
- "isInverse",
1110
- "aspectRatio",
1111
- "slotAlignment"
1112
- ]);
1113
- const { textPresets: k } = (0, _hooks.useTheme)(), u = !!(h.href || h.to || h.onPress), B = T ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay, { text: V, ref: G } = H(), z = b || (f ? void 0 : [
1114
- d,
1115
- v,
1116
- i,
1117
- V
1118
- ].filter(Boolean).join(" "));
1119
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(L, {
1120
- dataAttributes: _object_spread({
1121
- "component-name": "SnapCard",
1122
- testid: "SnapCard"
1123
- }, o),
1124
- ref: w,
1125
- className: _cardcssmistica.touchableContainer,
1126
- aspectRatio: x,
1127
- "aria-label": u ? void 0 : b,
1128
- "aria-labelledby": u ? void 0 : m,
1129
- "aria-description": u ? void 0 : c,
1130
- "aria-describedby": u ? void 0 : f,
1131
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
1132
- maybe: !0
1133
- }, h), {
1134
- className: _cardcssmistica.touchable,
1135
- "aria-label": u ? z : void 0,
1136
- "aria-labelledby": u ? m : void 0,
1137
- "aria-description": u ? c : void 0,
1138
- "aria-describedby": u ? f : void 0,
1139
- children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_boxed.Boxed, {
1140
- className: _cardcssmistica.boxed,
1141
- variant: T ? "inverse" : "default",
1142
- width: "100%",
1143
- height: "100%",
1144
- children: [
1145
- u && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1146
- className: B
1147
- }),
1148
- /* @__PURE__ */ (0, _jsxruntime.jsxs)("section", {
1149
- className: _cardcssmistica.snapCard,
1150
- "aria-hidden": u,
1151
- style: C ? {
1152
- height: "100%"
1153
- } : void 0,
1154
- children: [
1155
- /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
1156
- children: [
1157
- a && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1158
- style: (0, _css.applyCssVars)({
1159
- [_imagecssmistica.vars.mediaBorderRadius]: _skincontractcssmistica.vars.borderRadii.mediaSmall
1160
- }),
1161
- "data-testid": "asset",
1162
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
1163
- paddingBottom: 16,
1164
- children: a
1165
- })
1166
- }),
1167
- /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
1168
- space: 4,
1169
- children: [
1170
- d && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _textprops.text2), {
1171
- truncate: n,
1172
- weight: k.cardTitle.weight,
1173
- as: r,
1174
- hyphens: "auto",
1175
- dataAttributes: {
1176
- testid: "title"
1177
- },
1178
- children: d
1179
- })),
1180
- v && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
1181
- truncate: t,
1182
- regular: !0,
1183
- color: _skincontractcssmistica.vars.colors.textPrimary,
1184
- as: "p",
1185
- hyphens: "auto",
1186
- dataAttributes: {
1187
- testid: "subtitle"
1188
- },
1189
- children: v
1190
- }),
1191
- i && /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
1192
- truncate: l,
1193
- regular: !0,
1194
- color: _skincontractcssmistica.vars.colors.textSecondary,
1195
- as: "p",
1196
- hyphens: "auto",
1197
- dataAttributes: {
1198
- testid: "description"
1199
- },
1200
- children: i
1201
- })
1202
- ]
1203
- })
1204
- ]
1205
- }),
1206
- g && /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
1207
- ref: G,
1208
- "data-testid": "slot",
1209
- style: C ? {
1210
- display: "flex",
1211
- flexDirection: "column",
1212
- height: "100%"
1213
- } : void 0,
1214
- children: [
1215
- C === "bottom" && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1216
- style: {
1217
- flexGrow: 1
1218
- }
1219
- }),
1220
- g,
1221
- C === "content" && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1222
- style: {
1223
- flexGrow: 1
1224
- }
1225
- })
1226
- ]
1227
- })
1228
- ]
1229
- })
1230
- ]
1231
- })
1232
- }))
1233
- });
1234
- }), qe = (param)=>{
1235
- let { title: a, titleAs: d = "h3", headline: r, pretitle: n, pretitleAs: v, subtitle: t, description: i, extra: l, headlineRef: o, extraRef: b } = param;
1236
- return /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
1237
- className: _cardcssmistica.flexColumn,
1238
- children: [
1239
- (0, _headings.isBiggerHeading)(d, v) ? /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
1240
- children: [
1241
- a && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1242
- style: {
1243
- paddingBottom: t || i ? 4 : 0
1244
- },
1245
- "data-testid": "title",
1246
- children: a
1247
- }),
1248
- r && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1249
- ref: o,
1250
- style: {
1251
- order: -2,
1252
- paddingBottom: n || a || t || i ? 16 : 0
1253
- },
1254
- "data-testid": "headline",
1255
- children: r
1256
- }),
1257
- n && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1258
- style: {
1259
- order: -1,
1260
- paddingBottom: 4
1261
- },
1262
- "data-testid": "pretitle",
1263
- children: n
1264
- })
1265
- ]
1266
- }) : /* @__PURE__ */ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
1267
- children: [
1268
- n && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1269
- style: {
1270
- paddingBottom: 4
1271
- },
1272
- "data-testid": "pretitle",
1273
- children: n
1274
- }),
1275
- r && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1276
- ref: o,
1277
- style: {
1278
- order: -1,
1279
- paddingBottom: n || a || t || i ? 16 : 0
1280
- },
1281
- "data-testid": "headline",
1282
- children: r
1283
- }),
1284
- a && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1285
- style: {
1286
- paddingBottom: t || i ? 4 : 0
1287
- },
1288
- "data-testid": "title",
1289
- children: a
1290
- })
1291
- ]
1292
- }),
1293
- t && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1294
- style: {
1295
- paddingBottom: i ? 4 : 0
1296
- },
1297
- "data-testid": "subtitle",
1298
- children: t
1299
- }),
1300
- i && // this is tricky, the padding between a headline and a description is 16px
1301
- // but the padding between a title|pretitle|subtitle and a description is 8px (4px + 4px)
1302
- /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1303
- style: {
1304
- paddingTop: n || a || t ? 4 : 0
1305
- },
1306
- "data-testid": "description",
1307
- children: i
1308
- }),
1309
- l && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1310
- ref: b,
1311
- "data-testid": "slot",
1312
- children: l
1313
- })
1314
- ]
1315
- });
1316
- }, Je = /*#__PURE__*/ _react.forwardRef((_param, A)=>{
1317
- var { isInverse: a, backgroundImage: d, backgroundVideo: r, backgroundVideoRef: n, poster: v, asset: t, headline: i, pretitle: l, pretitleAs: o, pretitleLinesMax: b, title: m, titleAs: c = "h3", titleLinesMax: f, description: g, descriptionLinesMax: T, extra: x, button: C, secondaryButton: h, onClose: w, closeButtonLabel: k, actions: u, buttonLink: B, dataAttributes: V, width: G, height: z, aspectRatio: R, "aria-label": X, "aria-labelledby": y, "aria-description": S, "aria-describedby": E } = _param, O = _object_without_properties(_param, [
1318
- "isInverse",
1319
- "backgroundImage",
1320
- "backgroundVideo",
1321
- "backgroundVideoRef",
1322
- "poster",
1323
- "asset",
1324
- "headline",
1325
- "pretitle",
1326
- "pretitleAs",
1327
- "pretitleLinesMax",
1328
- "title",
1329
- "titleAs",
1330
- "titleLinesMax",
1331
- "description",
1332
- "descriptionLinesMax",
1333
- "extra",
1334
- "button",
1335
- "secondaryButton",
1336
- "onClose",
1337
- "closeButtonLabel",
1338
- "actions",
1339
- "buttonLink",
1340
- "dataAttributes",
1341
- "width",
1342
- "height",
1343
- "aspectRatio",
1344
- "aria-label",
1345
- "aria-labelledby",
1346
- "aria-description",
1347
- "aria-describedby"
1348
- ]);
1349
- const j = d !== void 0, N = r !== void 0, M = _e(d), { video: ye, videoAction: se } = $e(r, v, n), { text: de, ref: le } = H(), { text: ce, ref: he } = H();
1350
- N && (u = se ? [
1351
- se
1352
- ] : []);
1353
- const ve = (0, _themevariantcontext.useIsInverseVariant)(), _ = j || N, $ = _ ? "0 0 16px rgba(0,0,0,0.4)" : void 0, P = (u == null ? void 0 : u.length) || w, D = !!(O.href || O.to || O.onPress), fe = j || N ? _cardcssmistica.touchableCardOverlayMedia : a ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay, W = X || (y ? void 0 : ((0, _headings.isBiggerHeading)(c, o) ? [
1354
- m,
1355
- de,
1356
- l,
1357
- g,
1358
- ce
1359
- ] : [
1360
- l,
1361
- de,
1362
- m,
1363
- g,
1364
- ce
1365
- ]).filter(Boolean).join(" "));
1366
- return /* @__PURE__ */ (0, _jsxruntime.jsxs)(L, {
1367
- dataAttributes: V,
1368
- ref: A,
1369
- width: G,
1370
- height: z,
1371
- aspectRatio: R,
1372
- "aria-label": D ? void 0 : X,
1373
- "aria-labelledby": D ? void 0 : y,
1374
- "aria-description": D ? void 0 : S,
1375
- "aria-describedby": D ? void 0 : E,
1376
- className: _cardcssmistica.touchableContainer,
1377
- children: [
1378
- /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
1379
- maybe: !0
1380
- }, O), {
1381
- className: _cardcssmistica.touchable,
1382
- "aria-label": D ? W : void 0,
1383
- "aria-labelledby": D ? y : void 0,
1384
- "aria-description": D ? S : void 0,
1385
- "aria-describedby": D ? E : void 0,
1386
- children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_boxed.InternalBoxed, {
1387
- borderRadius: _skincontractcssmistica.vars.borderRadii.legacyDisplay,
1388
- className: _cardcssmistica.boxed,
1389
- width: "100%",
1390
- height: "100%",
1391
- background: j || N ? ve ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainer : void 0,
1392
- variant: j || N ? "media" : a ? "inverse" : "default",
1393
- children: [
1394
- D && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1395
- className: fe
1396
- }),
1397
- /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
1398
- className: _cardcssmistica.displayCardContainer,
1399
- "aria-hidden": D,
1400
- children: [
1401
- (j || N) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
1402
- variant: ve ? "inverse" : "default",
1403
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1404
- className: _cardcssmistica.displayCardBackground,
1405
- children: N ? ye : M
1406
- })
1407
- }),
1408
- /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
1409
- className: _cardcssmistica.displayCardContent,
1410
- style: {
1411
- paddingTop: _ && !t && !P && !N ? 0 : 24
1412
- },
1413
- children: [
1414
- t ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1415
- style: (0, _css.applyCssVars)({
1416
- [_imagecssmistica.vars.mediaBorderRadius]: _skincontractcssmistica.vars.borderRadii.mediaSmall
1417
- }),
1418
- "data-testid": "asset",
1419
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
1420
- paddingBottom: _ ? 0 : 40,
1421
- paddingX: 24,
1422
- children: t
1423
- })
1424
- }) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
1425
- paddingBottom: P || N ? _ ? 24 : 64 : 0
1426
- }),
1427
- /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1428
- className: (0, _classnames.default)(_cardcssmistica.displayCardContentWrapper, {
1429
- [_cardcssmistica.displayCardGradient]: _
1430
- }),
1431
- children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_stack.default, {
1432
- space: 24,
1433
- children: [
1434
- /* @__PURE__ */ (0, _jsxruntime.jsx)(qe, {
1435
- title: m ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text6, {
1436
- forceMobileSizes: !0,
1437
- truncate: f,
1438
- as: c,
1439
- textShadow: $,
1440
- hyphens: "auto",
1441
- children: m
1442
- }) : void 0,
1443
- titleAs: c,
1444
- headline: i,
1445
- pretitle: l ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
1446
- forceMobileSizes: !0,
1447
- truncate: b,
1448
- as: o,
1449
- regular: !0,
1450
- textShadow: $,
1451
- children: l
1452
- }) : void 0,
1453
- pretitleAs: o,
1454
- description: g ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text3, {
1455
- forceMobileSizes: !0,
1456
- truncate: T,
1457
- as: "p",
1458
- regular: !0,
1459
- color: _ ? _skincontractcssmistica.vars.colors.textPrimary : _skincontractcssmistica.vars.colors.textSecondary,
1460
- textShadow: $,
1461
- hyphens: "auto",
1462
- children: g
1463
- }) : void 0,
1464
- extra: x,
1465
- headlineRef: le,
1466
- extraRef: he
1467
- }),
1468
- (C || h || B) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_buttongroup.default, {
1469
- primaryButton: C,
1470
- secondaryButton: h,
1471
- link: B
1472
- })
1473
- ]
1474
- })
1475
- })
1476
- ]
1477
- })
1478
- ]
1479
- })
1480
- ]
1481
- })
1482
- })),
1483
- /* @__PURE__ */ (0, _jsxruntime.jsx)(oe, {
1484
- onClose: w,
1485
- closeButtonLabel: k,
1486
- actions: u,
1487
- variant: j || N ? "media" : a ? "inverse" : "default"
1488
- })
1489
- ]
1490
- });
1491
- }), cd = /*#__PURE__*/ _react.forwardRef((_param, r)=>{
1492
- var { dataAttributes: a } = _param, d = _object_without_properties(_param, [
1493
- "dataAttributes"
1494
- ]);
1495
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(Je, _object_spread_props(_object_spread({}, d), {
1496
- ref: r,
1497
- isInverse: !0,
1498
- dataAttributes: _object_spread({
1499
- "component-name": "DisplayMediaCard",
1500
- testid: "DisplayMediaCard"
1501
- }, a)
1502
- }));
1503
- }), hd = /*#__PURE__*/ _react.forwardRef((_param, r)=>{
1504
- var { dataAttributes: a } = _param, d = _object_without_properties(_param, [
1505
- "dataAttributes"
1506
- ]);
1507
- return /* @__PURE__ */ (0, _jsxruntime.jsx)(Je, _object_spread_props(_object_spread({}, d), {
1508
- ref: r,
1509
- dataAttributes: _object_spread({
1510
- "component-name": "DisplayDataCard",
1511
- testid: "DisplayDataCard"
1512
- }, a)
1513
- }));
1514
- }), vd = /*#__PURE__*/ _react.forwardRef((_param, j)=>{
1515
- var { dataAttributes: a, backgroundImage: d, backgroundVideo: r, poster: n, backgroundVideoRef: v, width: t, height: i, aspectRatio: l = "7:10", "aria-label": o, "aria-labelledby": b, "aria-description": m, "aria-describedby": c, actions: f, onClose: g, closeButtonLabel: T, asset: x, headline: C, pretitle: h, pretitleAs: w, pretitleLinesMax: k, title: u, titleAs: B = "h3", titleLinesMax: V, subtitle: G, subtitleLinesMax: z, description: R, descriptionLinesMax: X, extra: y, variant: S, isInverse: E, backgroundColor: O } = _param, A = _object_without_properties(_param, [
1516
- "dataAttributes",
1517
- "backgroundImage",
1518
- "backgroundVideo",
1519
- "poster",
1520
- "backgroundVideoRef",
1521
- "width",
1522
- "height",
1523
- "aspectRatio",
1524
- "aria-label",
1525
- "aria-labelledby",
1526
- "aria-description",
1527
- "aria-describedby",
1528
- "actions",
1529
- "onClose",
1530
- "closeButtonLabel",
1531
- "asset",
1532
- "headline",
1533
- "pretitle",
1534
- "pretitleAs",
1535
- "pretitleLinesMax",
1536
- "title",
1537
- "titleAs",
1538
- "titleLinesMax",
1539
- "subtitle",
1540
- "subtitleLinesMax",
1541
- "description",
1542
- "descriptionLinesMax",
1543
- "extra",
1544
- "variant",
1545
- "isInverse",
1546
- "backgroundColor"
1547
- ]);
1548
- const N = d !== void 0, M = r !== void 0, ye = _e(d), { video: se, videoAction: de } = $e(r, n, v), { text: le, ref: ce } = H(), { text: he, ref: ve } = H();
1549
- M && (f = de ? [
1550
- de
1551
- ] : []);
1552
- const _ = (0, _themevariantcontext.useIsInverseVariant)(), $ = N || M, P = $ ? "0 0 16px rgba(0,0,0,0.4)" : void 0, D = (f == null ? void 0 : f.length) || g, { textPresets: fe } = (0, _hooks.useTheme)(), W = !!(A.href || A.to || A.onPress), re = S || (E ? "inverse" : "default"), Ke = ()=>re === "media" || N || M ? _ ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundContainer : O || ({
1553
- default: _skincontractcssmistica.vars.colors.backgroundContainer,
1554
- inverse: _ ? _skincontractcssmistica.vars.colors.backgroundContainerBrandOverInverse : _skincontractcssmistica.vars.colors.backgroundBrand,
1555
- alternative: _skincontractcssmistica.vars.colors.backgroundAlternative
1556
- })[re], Qe = N || M ? _cardcssmistica.touchableCardOverlayMedia : re === "inverse" ? _cardcssmistica.touchableCardOverlayInverse : _cardcssmistica.touchableCardOverlay, Ue = o || (b ? void 0 : ((0, _headings.isBiggerHeading)(B, w) ? [
1557
- u,
1558
- le,
1559
- h,
1560
- G,
1561
- R,
1562
- he
1563
- ] : [
1564
- h,
1565
- le,
1566
- u,
1567
- G,
1568
- R,
1569
- he
1570
- ]).filter(Boolean).join(" "));
1571
- return /* @__PURE__ */ (0, _jsxruntime.jsxs)(L, {
1572
- width: t,
1573
- height: i,
1574
- dataAttributes: _object_spread({
1575
- "component-name": "PosterCard",
1576
- testid: "PosterCard"
1577
- }, a),
1578
- ref: j,
1579
- aspectRatio: l,
1580
- className: _cardcssmistica.touchableContainer,
1581
- "aria-label": W ? void 0 : o,
1582
- "aria-labelledby": W ? void 0 : b,
1583
- "aria-description": W ? void 0 : m,
1584
- "aria-describedby": W ? void 0 : c,
1585
- children: [
1586
- /* @__PURE__ */ (0, _jsxruntime.jsx)(_touchable.BaseTouchable, _object_spread_props(_object_spread({
1587
- maybe: !0
1588
- }, A), {
1589
- className: _cardcssmistica.touchable,
1590
- "aria-label": W ? Ue : void 0,
1591
- "aria-labelledby": W ? b : void 0,
1592
- "aria-description": W ? m : void 0,
1593
- "aria-describedby": W ? c : void 0,
1594
- children: /* @__PURE__ */ (0, _jsxruntime.jsxs)(_boxed.InternalBoxed, {
1595
- borderRadius: _skincontractcssmistica.vars.borderRadii.legacyDisplay,
1596
- className: _cardcssmistica.boxed,
1597
- width: "100%",
1598
- height: "100%",
1599
- background: Ke(),
1600
- variant: N || M ? "media" : N || M || re === "inverse" ? "inverse" : "default",
1601
- children: [
1602
- W && /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1603
- className: Qe
1604
- }),
1605
- /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
1606
- className: _cardcssmistica.displayCardContainer,
1607
- "aria-hidden": W,
1608
- children: [
1609
- (N || M) && /* @__PURE__ */ (0, _jsxruntime.jsx)(_themevariantcontext.ThemeVariant, {
1610
- variant: _ ? "inverse" : "default",
1611
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1612
- className: _cardcssmistica.displayCardBackground,
1613
- children: M ? se : ye
1614
- })
1615
- }),
1616
- /* @__PURE__ */ (0, _jsxruntime.jsxs)("div", {
1617
- className: (0, _classnames.default)(_cardcssmistica.displayCardContent, $ && !x && !D && !M ? void 0 : x ? _cardcssmistica.displayCardContentWithAsset : _cardcssmistica.displayCardContentWithTopContent),
1618
- children: [
1619
- x ? /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1620
- style: (0, _css.applyCssVars)({
1621
- [_imagecssmistica.vars.mediaBorderRadius]: _skincontractcssmistica.vars.borderRadii.mediaSmall
1622
- }),
1623
- "data-testid": "asset",
1624
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
1625
- paddingBottom: $ ? 0 : 40,
1626
- paddingX: {
1627
- mobile: 16,
1628
- desktop: 24
1629
- },
1630
- children: x
1631
- })
1632
- }) : /* @__PURE__ */ (0, _jsxruntime.jsx)(_box.default, {
1633
- paddingBottom: D || M ? $ ? 24 : 64 : 0
1634
- }),
1635
- /* @__PURE__ */ (0, _jsxruntime.jsx)("div", {
1636
- className: (0, _classnames.default)(_cardcssmistica.posterCardContentWrapper, {
1637
- [_cardcssmistica.displayCardGradient]: $
1638
- }),
1639
- children: /* @__PURE__ */ (0, _jsxruntime.jsx)(qe, {
1640
- title: u ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text, _object_spread_props(_object_spread({}, _textprops.text4), {
1641
- truncate: V,
1642
- weight: fe.cardTitle.weight,
1643
- as: B,
1644
- children: u
1645
- })) : void 0,
1646
- titleAs: B,
1647
- headline: C,
1648
- pretitle: h ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
1649
- forceMobileSizes: !0,
1650
- truncate: k,
1651
- as: w,
1652
- regular: !0,
1653
- textShadow: P,
1654
- children: h
1655
- }) : void 0,
1656
- pretitleAs: w,
1657
- subtitle: G ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
1658
- forceMobileSizes: !0,
1659
- truncate: z,
1660
- as: "div",
1661
- regular: !0,
1662
- textShadow: P,
1663
- children: G
1664
- }) : void 0,
1665
- description: R ? /* @__PURE__ */ (0, _jsxruntime.jsx)(_text.Text2, {
1666
- forceMobileSizes: !0,
1667
- truncate: X,
1668
- as: "p",
1669
- regular: !0,
1670
- textShadow: P,
1671
- color: $ ? _skincontractcssmistica.vars.colors.textPrimary : _skincontractcssmistica.vars.colors.textSecondary,
1672
- children: R
1673
- }) : void 0,
1674
- headlineRef: ce,
1675
- extra: y,
1676
- extraRef: ve
1677
- })
1678
- })
1679
- ]
1680
- })
1681
- ]
1682
- })
1683
- ]
1684
- })
1685
- })),
1686
- /* @__PURE__ */ (0, _jsxruntime.jsx)(oe, {
1687
- onClose: g,
1688
- closeButtonLabel: T,
1689
- actions: f,
1690
- variant: N || M ? "media" : re === "inverse" ? "inverse" : "default"
1691
- })
1692
- ]
1693
- });
1694
- });