@blateral/b.kit 2.3.2-beta.1.0 → 2.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 (835) hide show
  1. package/lib/components/base/icons/Icons.d.ts +66 -0
  2. package/lib/components/base/icons/Icons.d.ts.map +1 -0
  3. package/{types → lib}/components/blocks/EventBlock.d.ts +4 -2
  4. package/lib/components/blocks/EventBlock.d.ts.map +1 -0
  5. package/{types → lib}/components/blocks/Feature.d.ts +5 -1
  6. package/lib/components/blocks/Feature.d.ts.map +1 -0
  7. package/{types → lib}/components/blocks/IntroBlock.d.ts +6 -2
  8. package/lib/components/blocks/IntroBlock.d.ts.map +1 -0
  9. package/{types → lib}/components/sections/CallToAction.d.ts +10 -6
  10. package/lib/components/sections/CallToAction.d.ts.map +1 -0
  11. package/{types → lib}/components/sections/FeatureList.d.ts +2 -2
  12. package/{types → lib}/components/sections/Intro.d.ts +5 -4
  13. package/lib/components/sections/Intro.d.ts.map +1 -0
  14. package/{types → lib}/components/sections/Poster.d.ts +5 -4
  15. package/lib/components/sections/Poster.d.ts.map +1 -0
  16. package/{types → lib}/components/sections/events/EventDetail.d.ts +6 -6
  17. package/lib/components/sections/events/EventDetail.d.ts.map +1 -0
  18. package/{types → lib}/components/sections/events/EventList.d.ts.map +1 -1
  19. package/{types → lib}/components/sections/events/EventOverview.d.ts.map +1 -1
  20. package/{types → lib}/components/sections/header/Header.d.ts +3 -3
  21. package/lib/components/sections/header/Header.d.ts.map +1 -0
  22. package/lib/components/sections/navigation/menu/variations/MenuFlyout.d.ts.map +1 -0
  23. package/lib/components/sections/navigation/menu/variations/MenuLarge.d.ts.map +1 -0
  24. package/{types → lib}/components/typography/Callout.d.ts.map +1 -1
  25. package/lib/index.d.ts +158 -0
  26. package/lib/index.d.ts.map +1 -0
  27. package/lib/index.es.js +2 -0
  28. package/lib/index.es.js.map +1 -0
  29. package/lib/index.js +2 -0
  30. package/lib/index.js.map +1 -0
  31. package/package.json +5 -19
  32. package/base/package.json +0 -7
  33. package/blocks/package.json +0 -7
  34. package/buttons/package.json +0 -7
  35. package/cjs/Actions-c7b16449.js +0 -2
  36. package/cjs/Actions-c7b16449.js.map +0 -1
  37. package/cjs/Bdot-5f8e0450.js +0 -2
  38. package/cjs/Bdot-5f8e0450.js.map +0 -1
  39. package/cjs/Button-51ea72b7.js +0 -2
  40. package/cjs/Button-51ea72b7.js.map +0 -1
  41. package/cjs/ButtonGhost-628bbd60.js +0 -2
  42. package/cjs/ButtonGhost-628bbd60.js.map +0 -1
  43. package/cjs/Callout-e506ab21.js +0 -2
  44. package/cjs/Callout-e506ab21.js.map +0 -1
  45. package/cjs/Checkbox-1c34c7e6.js +0 -2
  46. package/cjs/Checkbox-1c34c7e6.js.map +0 -1
  47. package/cjs/ClockFilled-2483aa4a.js +0 -2
  48. package/cjs/ClockFilled-2483aa4a.js.map +0 -1
  49. package/cjs/Control-08d09950.js +0 -2
  50. package/cjs/Control-08d09950.js.map +0 -1
  51. package/cjs/Copy-ea6ab025.js +0 -2
  52. package/cjs/Copy-ea6ab025.js.map +0 -1
  53. package/cjs/EventBlock-7e2ba24d.js +0 -2
  54. package/cjs/EventBlock-7e2ba24d.js.map +0 -1
  55. package/cjs/FileUpload-0a861caf.js +0 -2
  56. package/cjs/FileUpload-0a861caf.js.map +0 -1
  57. package/cjs/Filter-d6d90b8b.js +0 -2
  58. package/cjs/Filter-d6d90b8b.js.map +0 -1
  59. package/cjs/FilterField-cce38ffb.js +0 -2
  60. package/cjs/FilterField-cce38ffb.js.map +0 -1
  61. package/cjs/Grid-6f4f99bc.js +0 -2
  62. package/cjs/Grid-6f4f99bc.js.map +0 -1
  63. package/cjs/Image-c72f7a80.js +0 -2
  64. package/cjs/Image-c72f7a80.js.map +0 -1
  65. package/cjs/InfoList-71d3388a.js +0 -2
  66. package/cjs/InfoList-71d3388a.js.map +0 -1
  67. package/cjs/LanguageSwitcher-8fdd22ba.js +0 -2
  68. package/cjs/LanguageSwitcher-8fdd22ba.js.map +0 -1
  69. package/cjs/LibThemeProvider-4823de57.js +0 -2
  70. package/cjs/LibThemeProvider-4823de57.js.map +0 -1
  71. package/cjs/Link-5a6f1633.js +0 -2
  72. package/cjs/Link-5a6f1633.js.map +0 -1
  73. package/cjs/Navigation-d205ed34.js +0 -2
  74. package/cjs/Navigation-d205ed34.js.map +0 -1
  75. package/cjs/POICard-e46f9041.js +0 -2
  76. package/cjs/POICard-e46f9041.js.map +0 -1
  77. package/cjs/Pointer-fde7b548.js +0 -2
  78. package/cjs/Pointer-fde7b548.js.map +0 -1
  79. package/cjs/SocialList-1d5f75a8.js +0 -2
  80. package/cjs/SocialList-1d5f75a8.js.map +0 -1
  81. package/cjs/TableBlock-007f8e34.js +0 -2
  82. package/cjs/TableBlock-007f8e34.js.map +0 -1
  83. package/cjs/Tag-9238cf0c.js +0 -2
  84. package/cjs/Tag-9238cf0c.js.map +0 -1
  85. package/cjs/VideoBlock-cf9d7464.js +0 -2
  86. package/cjs/VideoBlock-cf9d7464.js.map +0 -1
  87. package/cjs/VideoCard-fed8d37c.js +0 -2
  88. package/cjs/VideoCard-fed8d37c.js.map +0 -1
  89. package/cjs/Wrapper-accf2622.js +0 -2
  90. package/cjs/Wrapper-accf2622.js.map +0 -1
  91. package/cjs/arrays-c272ed59.js +0 -2
  92. package/cjs/arrays-c272ed59.js.map +0 -1
  93. package/cjs/base.js +0 -2
  94. package/cjs/base.js.map +0 -1
  95. package/cjs/blocks.js +0 -2
  96. package/cjs/blocks.js.map +0 -1
  97. package/cjs/buttons.js +0 -2
  98. package/cjs/buttons.js.map +0 -1
  99. package/cjs/clamp-bd21d587.js +0 -2
  100. package/cjs/clamp-bd21d587.js.map +0 -1
  101. package/cjs/concat-f387d848.js +0 -2
  102. package/cjs/concat-f387d848.js.map +0 -1
  103. package/cjs/cookies.js +0 -2
  104. package/cjs/cookies.js.map +0 -1
  105. package/cjs/escape-1ef8dd83.js +0 -2
  106. package/cjs/escape-1ef8dd83.js.map +0 -1
  107. package/cjs/fields.js +0 -2
  108. package/cjs/fields.js.map +0 -1
  109. package/cjs/footer.js +0 -2
  110. package/cjs/footer.js.map +0 -1
  111. package/cjs/hexRgbConverter-91b28aea.js +0 -2
  112. package/cjs/hexRgbConverter-91b28aea.js.map +0 -1
  113. package/cjs/hooks.js +0 -2
  114. package/cjs/hooks.js.map +0 -1
  115. package/cjs/icons.js +0 -2
  116. package/cjs/icons.js.map +0 -1
  117. package/cjs/index.js +0 -2
  118. package/cjs/index.js.map +0 -1
  119. package/cjs/navigation-bf154e6e.js +0 -2
  120. package/cjs/navigation-bf154e6e.js.map +0 -1
  121. package/cjs/navigation.js +0 -2
  122. package/cjs/navigation.js.map +0 -1
  123. package/cjs/sections.js +0 -2
  124. package/cjs/sections.js.map +0 -1
  125. package/cjs/sections_events.js +0 -2
  126. package/cjs/sections_events.js.map +0 -1
  127. package/cjs/sections_forms.js +0 -2
  128. package/cjs/sections_forms.js.map +0 -1
  129. package/cjs/sections_jobs.js +0 -2
  130. package/cjs/sections_jobs.js.map +0 -1
  131. package/cjs/sections_news.js +0 -2
  132. package/cjs/sections_news.js.map +0 -1
  133. package/cjs/sections_pois.js +0 -2
  134. package/cjs/sections_pois.js.map +0 -1
  135. package/cjs/statusFormatter-0393122b.js +0 -2
  136. package/cjs/statusFormatter-0393122b.js.map +0 -1
  137. package/cjs/structuredData-0b1278a9.js +0 -2
  138. package/cjs/structuredData-0b1278a9.js.map +0 -1
  139. package/cjs/styles-3a495a2d.js +0 -2
  140. package/cjs/styles-3a495a2d.js.map +0 -1
  141. package/cjs/typography.js +0 -2
  142. package/cjs/typography.js.map +0 -1
  143. package/cjs/urlParams-7525f638.js +0 -2
  144. package/cjs/urlParams-7525f638.js.map +0 -1
  145. package/cjs/useCookieConsent-0bf94751.js +0 -2
  146. package/cjs/useCookieConsent-0bf94751.js.map +0 -1
  147. package/cjs/useEqualSheetHeight-501f4c5f.js +0 -2
  148. package/cjs/useEqualSheetHeight-501f4c5f.js.map +0 -1
  149. package/cjs/useGeolocation-d8946470.js +0 -2
  150. package/cjs/useGeolocation-d8946470.js.map +0 -1
  151. package/cjs/useIE-aef9decc.js +0 -2
  152. package/cjs/useIE-aef9decc.js.map +0 -1
  153. package/cjs/useLazyInput-f71c221b.js +0 -2
  154. package/cjs/useLazyInput-f71c221b.js.map +0 -1
  155. package/cjs/useLeafletMap-2e608b01.js +0 -2
  156. package/cjs/useLeafletMap-2e608b01.js.map +0 -1
  157. package/cjs/useMediaQuery-3d1054e5.js +0 -2
  158. package/cjs/useMediaQuery-3d1054e5.js.map +0 -1
  159. package/cjs/useMounted-0bba9869.js +0 -2
  160. package/cjs/useMounted-0bba9869.js.map +0 -1
  161. package/cjs/useObserverSupport-5ab320dd.js +0 -2
  162. package/cjs/useObserverSupport-5ab320dd.js.map +0 -1
  163. package/cjs/useScrollTo-fdd665da.js +0 -2
  164. package/cjs/useScrollTo-fdd665da.js.map +0 -1
  165. package/cjs/useUpdateEffect-4d233e2c.js +0 -2
  166. package/cjs/useUpdateEffect-4d233e2c.js.map +0 -1
  167. package/cookies/package.json +0 -7
  168. package/esm/Actions-8b4a4d2f.js +0 -57
  169. package/esm/Actions-8b4a4d2f.js.map +0 -1
  170. package/esm/Bdot-434dd994.js +0 -24
  171. package/esm/Bdot-434dd994.js.map +0 -1
  172. package/esm/Button-71376927.js +0 -115
  173. package/esm/Button-71376927.js.map +0 -1
  174. package/esm/ButtonGhost-6876b67f.js +0 -112
  175. package/esm/ButtonGhost-6876b67f.js.map +0 -1
  176. package/esm/Callout-08fb36a2.js +0 -99
  177. package/esm/Callout-08fb36a2.js.map +0 -1
  178. package/esm/Checkbox-4daef7a4.js +0 -135
  179. package/esm/Checkbox-4daef7a4.js.map +0 -1
  180. package/esm/ClockFilled-6bae80dc.js +0 -1793
  181. package/esm/ClockFilled-6bae80dc.js.map +0 -1
  182. package/esm/Control-dd0f76f1.js +0 -52
  183. package/esm/Control-dd0f76f1.js.map +0 -1
  184. package/esm/Copy-bca0854c.js +0 -270
  185. package/esm/Copy-bca0854c.js.map +0 -1
  186. package/esm/EventBlock-e07e7b51.js +0 -132
  187. package/esm/EventBlock-e07e7b51.js.map +0 -1
  188. package/esm/FileUpload-851d473a.js +0 -4790
  189. package/esm/FileUpload-851d473a.js.map +0 -1
  190. package/esm/Filter-fec6dc5c.js +0 -32
  191. package/esm/Filter-fec6dc5c.js.map +0 -1
  192. package/esm/FilterField-5f76c113.js +0 -129
  193. package/esm/FilterField-5f76c113.js.map +0 -1
  194. package/esm/Grid-172051a9.js +0 -203
  195. package/esm/Grid-172051a9.js.map +0 -1
  196. package/esm/Image-301c4433.js +0 -193
  197. package/esm/Image-301c4433.js.map +0 -1
  198. package/esm/InfoList-762f2b14.js +0 -74
  199. package/esm/InfoList-762f2b14.js.map +0 -1
  200. package/esm/LanguageSwitcher-57c4a924.js +0 -70
  201. package/esm/LanguageSwitcher-57c4a924.js.map +0 -1
  202. package/esm/LibThemeProvider-acf2e2bb.js +0 -115
  203. package/esm/LibThemeProvider-acf2e2bb.js.map +0 -1
  204. package/esm/Link-bccdb082.js +0 -60
  205. package/esm/Link-bccdb082.js.map +0 -1
  206. package/esm/Navigation-03339030.js +0 -1664
  207. package/esm/Navigation-03339030.js.map +0 -1
  208. package/esm/POICard-584a229c.js +0 -116
  209. package/esm/POICard-584a229c.js.map +0 -1
  210. package/esm/Pointer-2276308c.js +0 -111
  211. package/esm/Pointer-2276308c.js.map +0 -1
  212. package/esm/SocialList-f7864b30.js +0 -61
  213. package/esm/SocialList-f7864b30.js.map +0 -1
  214. package/esm/TableBlock-014f9821.js +0 -159
  215. package/esm/TableBlock-014f9821.js.map +0 -1
  216. package/esm/Tag-cb972e1b.js +0 -67
  217. package/esm/Tag-cb972e1b.js.map +0 -1
  218. package/esm/VideoBlock-ede11866.js +0 -624
  219. package/esm/VideoBlock-ede11866.js.map +0 -1
  220. package/esm/VideoCard-aced65ef.js +0 -160
  221. package/esm/VideoCard-aced65ef.js.map +0 -1
  222. package/esm/Wrapper-1cac758b.js +0 -224
  223. package/esm/Wrapper-1cac758b.js.map +0 -1
  224. package/esm/arrays-65b644ef.js +0 -17
  225. package/esm/arrays-65b644ef.js.map +0 -1
  226. package/esm/base.js +0 -11
  227. package/esm/base.js.map +0 -1
  228. package/esm/blocks.js +0 -26
  229. package/esm/blocks.js.map +0 -1
  230. package/esm/buttons.js +0 -12
  231. package/esm/buttons.js.map +0 -1
  232. package/esm/clamp-12d37b65.js +0 -10
  233. package/esm/clamp-12d37b65.js.map +0 -1
  234. package/esm/concat-ab3c66f2.js +0 -40
  235. package/esm/concat-ab3c66f2.js.map +0 -1
  236. package/esm/cookies.js +0 -270
  237. package/esm/cookies.js.map +0 -1
  238. package/esm/escape-cbff9c25.js +0 -6
  239. package/esm/escape-cbff9c25.js.map +0 -1
  240. package/esm/fields.js +0 -190
  241. package/esm/fields.js.map +0 -1
  242. package/esm/footer.js +0 -301
  243. package/esm/footer.js.map +0 -1
  244. package/esm/hexRgbConverter-edb91624.js +0 -36
  245. package/esm/hexRgbConverter-edb91624.js.map +0 -1
  246. package/esm/hooks.js +0 -531
  247. package/esm/hooks.js.map +0 -1
  248. package/esm/icons.js +0 -4
  249. package/esm/icons.js.map +0 -1
  250. package/esm/index.js +0 -7
  251. package/esm/index.js.map +0 -1
  252. package/esm/navigation-a2998143.js +0 -132
  253. package/esm/navigation-a2998143.js.map +0 -1
  254. package/esm/navigation.js +0 -159
  255. package/esm/navigation.js.map +0 -1
  256. package/esm/sections.js +0 -3966
  257. package/esm/sections.js.map +0 -1
  258. package/esm/sections_events.js +0 -573
  259. package/esm/sections_events.js.map +0 -1
  260. package/esm/sections_forms.js +0 -1405
  261. package/esm/sections_forms.js.map +0 -1
  262. package/esm/sections_jobs.js +0 -508
  263. package/esm/sections_jobs.js.map +0 -1
  264. package/esm/sections_news.js +0 -1023
  265. package/esm/sections_news.js.map +0 -1
  266. package/esm/sections_pois.js +0 -719
  267. package/esm/sections_pois.js.map +0 -1
  268. package/esm/statusFormatter-9be0fbff.js +0 -255
  269. package/esm/statusFormatter-9be0fbff.js.map +0 -1
  270. package/esm/structuredData-87423414.js +0 -117
  271. package/esm/structuredData-87423414.js.map +0 -1
  272. package/esm/styles-c387bdc6.js +0 -467
  273. package/esm/styles-c387bdc6.js.map +0 -1
  274. package/esm/typography.js +0 -11
  275. package/esm/typography.js.map +0 -1
  276. package/esm/urlParams-9cfdaf71.js +0 -51
  277. package/esm/urlParams-9cfdaf71.js.map +0 -1
  278. package/esm/useCookieConsent-8caef116.js +0 -339
  279. package/esm/useCookieConsent-8caef116.js.map +0 -1
  280. package/esm/useEqualSheetHeight-e68e1638.js +0 -199
  281. package/esm/useEqualSheetHeight-e68e1638.js.map +0 -1
  282. package/esm/useGeolocation-f9f073cc.js +0 -95
  283. package/esm/useGeolocation-f9f073cc.js.map +0 -1
  284. package/esm/useIE-a9c56989.js +0 -15
  285. package/esm/useIE-a9c56989.js.map +0 -1
  286. package/esm/useLazyInput-e66fc5be.js +0 -85
  287. package/esm/useLazyInput-e66fc5be.js.map +0 -1
  288. package/esm/useLeafletMap-6dea7a8e.js +0 -300
  289. package/esm/useLeafletMap-6dea7a8e.js.map +0 -1
  290. package/esm/useMediaQuery-388bd65e.js +0 -159
  291. package/esm/useMediaQuery-388bd65e.js.map +0 -1
  292. package/esm/useMounted-1e4cc87b.js +0 -12
  293. package/esm/useMounted-1e4cc87b.js.map +0 -1
  294. package/esm/useObserverSupport-02bce7f5.js +0 -19
  295. package/esm/useObserverSupport-02bce7f5.js.map +0 -1
  296. package/esm/useScrollTo-70af34bf.js +0 -57
  297. package/esm/useScrollTo-70af34bf.js.map +0 -1
  298. package/esm/useUpdateEffect-824c0c84.js +0 -18
  299. package/esm/useUpdateEffect-824c0c84.js.map +0 -1
  300. package/fields/package.json +0 -7
  301. package/footer/package.json +0 -7
  302. package/hooks/package.json +0 -7
  303. package/icons/package.json +0 -7
  304. package/navigation/package.json +0 -7
  305. package/sections/events/package.json +0 -7
  306. package/sections/forms/package.json +0 -7
  307. package/sections/jobs/package.json +0 -7
  308. package/sections/news/package.json +0 -7
  309. package/sections/package.json +0 -7
  310. package/sections/pois/package.json +0 -7
  311. package/types/base.d.ts +0 -5
  312. package/types/base.d.ts.map +0 -1
  313. package/types/blocks.d.ts +0 -18
  314. package/types/blocks.d.ts.map +0 -1
  315. package/types/buttons.d.ts +0 -6
  316. package/types/buttons.d.ts.map +0 -1
  317. package/types/components/blocks/EventBlock.d.ts.map +0 -1
  318. package/types/components/blocks/Feature.d.ts.map +0 -1
  319. package/types/components/blocks/IntroBlock.d.ts.map +0 -1
  320. package/types/components/sections/CallToAction.d.ts.map +0 -1
  321. package/types/components/sections/Intro.d.ts.map +0 -1
  322. package/types/components/sections/Poster.d.ts.map +0 -1
  323. package/types/components/sections/events/EventDetail.d.ts.map +0 -1
  324. package/types/components/sections/header/Header.d.ts.map +0 -1
  325. package/types/components/sections/navigation/menu/variations/MenuFlyout.d.ts.map +0 -1
  326. package/types/components/sections/navigation/menu/variations/MenuLarge.d.ts.map +0 -1
  327. package/types/cookies.d.ts +0 -3
  328. package/types/cookies.d.ts.map +0 -1
  329. package/types/fields.d.ts +0 -14
  330. package/types/fields.d.ts.map +0 -1
  331. package/types/footer.d.ts +0 -4
  332. package/types/footer.d.ts.map +0 -1
  333. package/types/hooks.d.ts +0 -35
  334. package/types/hooks.d.ts.map +0 -1
  335. package/types/icons.d.ts +0 -66
  336. package/types/icons.d.ts.map +0 -1
  337. package/types/index.d.ts +0 -18
  338. package/types/index.d.ts.map +0 -1
  339. package/types/navigation.d.ts +0 -10
  340. package/types/navigation.d.ts.map +0 -1
  341. package/types/sections.d.ts +0 -32
  342. package/types/sections.d.ts.map +0 -1
  343. package/types/sections_events.d.ts +0 -4
  344. package/types/sections_events.d.ts.map +0 -1
  345. package/types/sections_forms.d.ts +0 -3
  346. package/types/sections_forms.d.ts.map +0 -1
  347. package/types/sections_jobs.d.ts +0 -3
  348. package/types/sections_jobs.d.ts.map +0 -1
  349. package/types/sections_news.d.ts +0 -10
  350. package/types/sections_news.d.ts.map +0 -1
  351. package/types/sections_pois.d.ts +0 -4
  352. package/types/sections_pois.d.ts.map +0 -1
  353. package/types/typography.d.ts +0 -6
  354. package/types/typography.d.ts.map +0 -1
  355. package/typography/package.json +0 -7
  356. /package/{types → lib}/components/base/Grid.d.ts +0 -0
  357. /package/{types → lib}/components/base/Grid.d.ts.map +0 -0
  358. /package/{types → lib}/components/base/Section.d.ts +0 -0
  359. /package/{types → lib}/components/base/Section.d.ts.map +0 -0
  360. /package/{types → lib}/components/base/Wrapper.d.ts +0 -0
  361. /package/{types → lib}/components/base/Wrapper.d.ts.map +0 -0
  362. /package/{types → lib}/components/base/icons/AngleDown.d.ts +0 -0
  363. /package/{types → lib}/components/base/icons/AngleDown.d.ts.map +0 -0
  364. /package/{types → lib}/components/base/icons/AngleLeft.d.ts +0 -0
  365. /package/{types → lib}/components/base/icons/AngleLeft.d.ts.map +0 -0
  366. /package/{types → lib}/components/base/icons/AngleRight.d.ts +0 -0
  367. /package/{types → lib}/components/base/icons/AngleRight.d.ts.map +0 -0
  368. /package/{types → lib}/components/base/icons/AngleUp.d.ts +0 -0
  369. /package/{types → lib}/components/base/icons/AngleUp.d.ts.map +0 -0
  370. /package/{types → lib}/components/base/icons/ArrowDown.d.ts +0 -0
  371. /package/{types → lib}/components/base/icons/ArrowDown.d.ts.map +0 -0
  372. /package/{types → lib}/components/base/icons/ArrowLeft.d.ts +0 -0
  373. /package/{types → lib}/components/base/icons/ArrowLeft.d.ts.map +0 -0
  374. /package/{types → lib}/components/base/icons/ArrowLeftGhost.d.ts +0 -0
  375. /package/{types → lib}/components/base/icons/ArrowLeftGhost.d.ts.map +0 -0
  376. /package/{types → lib}/components/base/icons/ArrowLeftRight.d.ts +0 -0
  377. /package/{types → lib}/components/base/icons/ArrowLeftRight.d.ts.map +0 -0
  378. /package/{types → lib}/components/base/icons/ArrowRight.d.ts +0 -0
  379. /package/{types → lib}/components/base/icons/ArrowRight.d.ts.map +0 -0
  380. /package/{types → lib}/components/base/icons/ArrowRightGhost.d.ts +0 -0
  381. /package/{types → lib}/components/base/icons/ArrowRightGhost.d.ts.map +0 -0
  382. /package/{types → lib}/components/base/icons/ArrowUp.d.ts +0 -0
  383. /package/{types → lib}/components/base/icons/ArrowUp.d.ts.map +0 -0
  384. /package/{types → lib}/components/base/icons/BoxArrowUpRight.d.ts +0 -0
  385. /package/{types → lib}/components/base/icons/BoxArrowUpRight.d.ts.map +0 -0
  386. /package/{types → lib}/components/base/icons/CalendarToday.d.ts +0 -0
  387. /package/{types → lib}/components/base/icons/CalendarToday.d.ts.map +0 -0
  388. /package/{types → lib}/components/base/icons/Category.d.ts +0 -0
  389. /package/{types → lib}/components/base/icons/Category.d.ts.map +0 -0
  390. /package/{types → lib}/components/base/icons/Check.d.ts +0 -0
  391. /package/{types → lib}/components/base/icons/Check.d.ts.map +0 -0
  392. /package/{types → lib}/components/base/icons/Clock.d.ts +0 -0
  393. /package/{types → lib}/components/base/icons/Clock.d.ts.map +0 -0
  394. /package/{types → lib}/components/base/icons/ClockFilled.d.ts +0 -0
  395. /package/{types → lib}/components/base/icons/ClockFilled.d.ts.map +0 -0
  396. /package/{types → lib}/components/base/icons/Computer.d.ts +0 -0
  397. /package/{types → lib}/components/base/icons/Computer.d.ts.map +0 -0
  398. /package/{types → lib}/components/base/icons/Cross.d.ts +0 -0
  399. /package/{types → lib}/components/base/icons/Cross.d.ts.map +0 -0
  400. /package/{types → lib}/components/base/icons/CrossSmall.d.ts +0 -0
  401. /package/{types → lib}/components/base/icons/CrossSmall.d.ts.map +0 -0
  402. /package/{types → lib}/components/base/icons/CurrentLocation.d.ts +0 -0
  403. /package/{types → lib}/components/base/icons/CurrentLocation.d.ts.map +0 -0
  404. /package/{types → lib}/components/base/icons/DateRange.d.ts +0 -0
  405. /package/{types → lib}/components/base/icons/DateRange.d.ts.map +0 -0
  406. /package/{types → lib}/components/base/icons/DeleteForever.d.ts +0 -0
  407. /package/{types → lib}/components/base/icons/DeleteForever.d.ts.map +0 -0
  408. /package/{types → lib}/components/base/icons/External.d.ts +0 -0
  409. /package/{types → lib}/components/base/icons/External.d.ts.map +0 -0
  410. /package/{types → lib}/components/base/icons/Filter.d.ts +0 -0
  411. /package/{types → lib}/components/base/icons/Filter.d.ts.map +0 -0
  412. /package/{types → lib}/components/base/icons/FlyTo.d.ts +0 -0
  413. /package/{types → lib}/components/base/icons/FlyTo.d.ts.map +0 -0
  414. /package/{types → lib}/components/base/icons/Info.d.ts +0 -0
  415. /package/{types → lib}/components/base/icons/Info.d.ts.map +0 -0
  416. /package/{types → lib}/components/base/icons/Language.d.ts +0 -0
  417. /package/{types → lib}/components/base/icons/Language.d.ts.map +0 -0
  418. /package/{types → lib}/components/base/icons/LocationPin.d.ts +0 -0
  419. /package/{types → lib}/components/base/icons/LocationPin.d.ts.map +0 -0
  420. /package/{types → lib}/components/base/icons/LocationSearch.d.ts +0 -0
  421. /package/{types → lib}/components/base/icons/LocationSearch.d.ts.map +0 -0
  422. /package/{types → lib}/components/base/icons/Magnifier.d.ts +0 -0
  423. /package/{types → lib}/components/base/icons/Magnifier.d.ts.map +0 -0
  424. /package/{types → lib}/components/base/icons/Mail.d.ts +0 -0
  425. /package/{types → lib}/components/base/icons/Mail.d.ts.map +0 -0
  426. /package/{types → lib}/components/base/icons/Map.d.ts +0 -0
  427. /package/{types → lib}/components/base/icons/Map.d.ts.map +0 -0
  428. /package/{types → lib}/components/base/icons/MenuBurger.d.ts +0 -0
  429. /package/{types → lib}/components/base/icons/MenuBurger.d.ts.map +0 -0
  430. /package/{types → lib}/components/base/icons/Minus.d.ts +0 -0
  431. /package/{types → lib}/components/base/icons/Minus.d.ts.map +0 -0
  432. /package/{types → lib}/components/base/icons/Money.d.ts +0 -0
  433. /package/{types → lib}/components/base/icons/Money.d.ts.map +0 -0
  434. /package/{types → lib}/components/base/icons/MyLocation.d.ts +0 -0
  435. /package/{types → lib}/components/base/icons/MyLocation.d.ts.map +0 -0
  436. /package/{types → lib}/components/base/icons/Person.d.ts +0 -0
  437. /package/{types → lib}/components/base/icons/Person.d.ts.map +0 -0
  438. /package/{types → lib}/components/base/icons/Phone.d.ts +0 -0
  439. /package/{types → lib}/components/base/icons/Phone.d.ts.map +0 -0
  440. /package/{types → lib}/components/base/icons/Place.d.ts +0 -0
  441. /package/{types → lib}/components/base/icons/Place.d.ts.map +0 -0
  442. /package/{types → lib}/components/base/icons/Play.d.ts +0 -0
  443. /package/{types → lib}/components/base/icons/Play.d.ts.map +0 -0
  444. /package/{types → lib}/components/base/icons/Plus.d.ts +0 -0
  445. /package/{types → lib}/components/base/icons/Plus.d.ts.map +0 -0
  446. /package/{types → lib}/components/base/icons/Route.d.ts +0 -0
  447. /package/{types → lib}/components/base/icons/Route.d.ts.map +0 -0
  448. /package/{types → lib}/components/base/icons/Star.d.ts +0 -0
  449. /package/{types → lib}/components/base/icons/Star.d.ts.map +0 -0
  450. /package/{types → lib}/components/base/icons/ToggleOff.d.ts +0 -0
  451. /package/{types → lib}/components/base/icons/ToggleOff.d.ts.map +0 -0
  452. /package/{types → lib}/components/base/icons/ToggleOn.d.ts +0 -0
  453. /package/{types → lib}/components/base/icons/ToggleOn.d.ts.map +0 -0
  454. /package/{types → lib}/components/base/icons/UnfoldMore.d.ts +0 -0
  455. /package/{types → lib}/components/base/icons/UnfoldMore.d.ts.map +0 -0
  456. /package/{types → lib}/components/base/icons/files/Excel.d.ts +0 -0
  457. /package/{types → lib}/components/base/icons/files/Excel.d.ts.map +0 -0
  458. /package/{types → lib}/components/base/icons/files/Image.d.ts +0 -0
  459. /package/{types → lib}/components/base/icons/files/Image.d.ts.map +0 -0
  460. /package/{types → lib}/components/base/icons/files/Pdf.d.ts +0 -0
  461. /package/{types → lib}/components/base/icons/files/Pdf.d.ts.map +0 -0
  462. /package/{types → lib}/components/base/icons/files/PowerPoint.d.ts +0 -0
  463. /package/{types → lib}/components/base/icons/files/PowerPoint.d.ts.map +0 -0
  464. /package/{types → lib}/components/base/icons/files/UploadFile.d.ts +0 -0
  465. /package/{types → lib}/components/base/icons/files/UploadFile.d.ts.map +0 -0
  466. /package/{types → lib}/components/base/icons/files/Word.d.ts +0 -0
  467. /package/{types → lib}/components/base/icons/files/Word.d.ts.map +0 -0
  468. /package/{types → lib}/components/base/icons/files/Zip.d.ts +0 -0
  469. /package/{types → lib}/components/base/icons/files/Zip.d.ts.map +0 -0
  470. /package/{types → lib}/components/base/icons/socials/Facebook.d.ts +0 -0
  471. /package/{types → lib}/components/base/icons/socials/Facebook.d.ts.map +0 -0
  472. /package/{types → lib}/components/base/icons/socials/Instagram.d.ts +0 -0
  473. /package/{types → lib}/components/base/icons/socials/Instagram.d.ts.map +0 -0
  474. /package/{types → lib}/components/base/icons/socials/LinkedIn.d.ts +0 -0
  475. /package/{types → lib}/components/base/icons/socials/LinkedIn.d.ts.map +0 -0
  476. /package/{types → lib}/components/base/icons/socials/Twitter.d.ts +0 -0
  477. /package/{types → lib}/components/base/icons/socials/Twitter.d.ts.map +0 -0
  478. /package/{types → lib}/components/base/icons/socials/Xing.d.ts +0 -0
  479. /package/{types → lib}/components/base/icons/socials/Xing.d.ts.map +0 -0
  480. /package/{types → lib}/components/base/icons/socials/Youtube.d.ts +0 -0
  481. /package/{types → lib}/components/base/icons/socials/Youtube.d.ts.map +0 -0
  482. /package/{types → lib}/components/base/nl2br.d.ts +0 -0
  483. /package/{types → lib}/components/base/nl2br.d.ts.map +0 -0
  484. /package/{types → lib}/components/blocks/Actions.d.ts +0 -0
  485. /package/{types → lib}/components/blocks/Actions.d.ts.map +0 -0
  486. /package/{types → lib}/components/blocks/Alert.d.ts +0 -0
  487. /package/{types → lib}/components/blocks/Alert.d.ts.map +0 -0
  488. /package/{types → lib}/components/blocks/Bdot.d.ts +0 -0
  489. /package/{types → lib}/components/blocks/Bdot.d.ts.map +0 -0
  490. /package/{types → lib}/components/blocks/CookieConsent.d.ts +0 -0
  491. /package/{types → lib}/components/blocks/CookieConsent.d.ts.map +0 -0
  492. /package/{types → lib}/components/blocks/Fact.d.ts +0 -0
  493. /package/{types → lib}/components/blocks/Fact.d.ts.map +0 -0
  494. /package/{types → lib}/components/blocks/Image.d.ts +0 -0
  495. /package/{types → lib}/components/blocks/Image.d.ts.map +0 -0
  496. /package/{types → lib}/components/blocks/InfoList.d.ts +0 -0
  497. /package/{types → lib}/components/blocks/InfoList.d.ts.map +0 -0
  498. /package/{types → lib}/components/blocks/JobCard.d.ts +0 -0
  499. /package/{types → lib}/components/blocks/JobCard.d.ts.map +0 -0
  500. /package/{types → lib}/components/blocks/LanguageSwitcher.d.ts +0 -0
  501. /package/{types → lib}/components/blocks/LanguageSwitcher.d.ts.map +0 -0
  502. /package/{types → lib}/components/blocks/NavBlock.d.ts +0 -0
  503. /package/{types → lib}/components/blocks/NavBlock.d.ts.map +0 -0
  504. /package/{types → lib}/components/blocks/NewsCard.d.ts +0 -0
  505. /package/{types → lib}/components/blocks/NewsCard.d.ts.map +0 -0
  506. /package/{types → lib}/components/blocks/POICard.d.ts +0 -0
  507. /package/{types → lib}/components/blocks/POICard.d.ts.map +0 -0
  508. /package/{types → lib}/components/blocks/POIFacts.d.ts +0 -0
  509. /package/{types → lib}/components/blocks/POIFacts.d.ts.map +0 -0
  510. /package/{types → lib}/components/blocks/PriceTag.d.ts +0 -0
  511. /package/{types → lib}/components/blocks/PriceTag.d.ts.map +0 -0
  512. /package/{types → lib}/components/blocks/PromotionCard.d.ts +0 -0
  513. /package/{types → lib}/components/blocks/PromotionCard.d.ts.map +0 -0
  514. /package/{types → lib}/components/blocks/SocialList.d.ts +0 -0
  515. /package/{types → lib}/components/blocks/SocialList.d.ts.map +0 -0
  516. /package/{types → lib}/components/blocks/TableBlock.d.ts +0 -0
  517. /package/{types → lib}/components/blocks/TableBlock.d.ts.map +0 -0
  518. /package/{types → lib}/components/blocks/Tag.d.ts +0 -0
  519. /package/{types → lib}/components/blocks/Tag.d.ts.map +0 -0
  520. /package/{types → lib}/components/blocks/Title.d.ts +0 -0
  521. /package/{types → lib}/components/blocks/Title.d.ts.map +0 -0
  522. /package/{types → lib}/components/blocks/VideoBlock.d.ts +0 -0
  523. /package/{types → lib}/components/blocks/VideoBlock.d.ts.map +0 -0
  524. /package/{types → lib}/components/blocks/VideoCard.d.ts +0 -0
  525. /package/{types → lib}/components/blocks/VideoCard.d.ts.map +0 -0
  526. /package/{types → lib}/components/buttons/Button.d.ts +0 -0
  527. /package/{types → lib}/components/buttons/Button.d.ts.map +0 -0
  528. /package/{types → lib}/components/buttons/ButtonGhost.d.ts +0 -0
  529. /package/{types → lib}/components/buttons/ButtonGhost.d.ts.map +0 -0
  530. /package/{types → lib}/components/buttons/Control.d.ts +0 -0
  531. /package/{types → lib}/components/buttons/Control.d.ts.map +0 -0
  532. /package/{types → lib}/components/buttons/Pointer.d.ts +0 -0
  533. /package/{types → lib}/components/buttons/Pointer.d.ts.map +0 -0
  534. /package/{types → lib}/components/debug/DebugLines.d.ts +0 -0
  535. /package/{types → lib}/components/debug/DebugLines.d.ts.map +0 -0
  536. /package/{types → lib}/components/examples/hooks/ArrayHookExample.d.ts +0 -0
  537. /package/{types → lib}/components/examples/hooks/ArrayHookExample.d.ts.map +0 -0
  538. /package/{types → lib}/components/examples/hooks/IntervalHookExample.d.ts +0 -0
  539. /package/{types → lib}/components/examples/hooks/IntervalHookExample.d.ts.map +0 -0
  540. /package/{types → lib}/components/fields/Checkbox.d.ts +0 -0
  541. /package/{types → lib}/components/fields/Checkbox.d.ts.map +0 -0
  542. /package/{types → lib}/components/fields/CompactForm.d.ts +0 -0
  543. /package/{types → lib}/components/fields/CompactForm.d.ts.map +0 -0
  544. /package/{types → lib}/components/fields/Datepicker.d.ts +0 -0
  545. /package/{types → lib}/components/fields/Datepicker.d.ts.map +0 -0
  546. /package/{types → lib}/components/fields/FileUpload.d.ts +0 -0
  547. /package/{types → lib}/components/fields/FileUpload.d.ts.map +0 -0
  548. /package/{types → lib}/components/fields/FilterField.d.ts +0 -0
  549. /package/{types → lib}/components/fields/FilterField.d.ts.map +0 -0
  550. /package/{types → lib}/components/fields/FormField.d.ts +0 -0
  551. /package/{types → lib}/components/fields/FormField.d.ts.map +0 -0
  552. /package/{types → lib}/components/fields/LocationField.d.ts +0 -0
  553. /package/{types → lib}/components/fields/LocationField.d.ts.map +0 -0
  554. /package/{types → lib}/components/fields/Radio.d.ts +0 -0
  555. /package/{types → lib}/components/fields/Radio.d.ts.map +0 -0
  556. /package/{types → lib}/components/fields/SearchInput.d.ts +0 -0
  557. /package/{types → lib}/components/fields/SearchInput.d.ts.map +0 -0
  558. /package/{types → lib}/components/fields/SelectDropdown.d.ts +0 -0
  559. /package/{types → lib}/components/fields/SelectDropdown.d.ts.map +0 -0
  560. /package/{types → lib}/components/fields/Textarea.d.ts +0 -0
  561. /package/{types → lib}/components/fields/Textarea.d.ts.map +0 -0
  562. /package/{types → lib}/components/fields/Textfield.d.ts +0 -0
  563. /package/{types → lib}/components/fields/Textfield.d.ts.map +0 -0
  564. /package/{types → lib}/components/sections/Accordion.d.ts +0 -0
  565. /package/{types → lib}/components/sections/Accordion.d.ts.map +0 -0
  566. /package/{types → lib}/components/sections/AlertList.d.ts +0 -0
  567. /package/{types → lib}/components/sections/AlertList.d.ts.map +0 -0
  568. /package/{types → lib}/components/sections/Article.d.ts +0 -0
  569. /package/{types → lib}/components/sections/Article.d.ts.map +0 -0
  570. /package/{types → lib}/components/sections/CardList.d.ts +0 -0
  571. /package/{types → lib}/components/sections/CardList.d.ts.map +0 -0
  572. /package/{types → lib}/components/sections/ComparisonSlider.d.ts +0 -0
  573. /package/{types → lib}/components/sections/ComparisonSlider.d.ts.map +0 -0
  574. /package/{types → lib}/components/sections/CrossPromotion.d.ts +0 -0
  575. /package/{types → lib}/components/sections/CrossPromotion.d.ts.map +0 -0
  576. /package/{types → lib}/components/sections/FactGrid.d.ts +0 -0
  577. /package/{types → lib}/components/sections/FactGrid.d.ts.map +0 -0
  578. /package/{types → lib}/components/sections/FactList.d.ts +0 -0
  579. /package/{types → lib}/components/sections/FactList.d.ts.map +0 -0
  580. /package/{types → lib}/components/sections/FeatureList.d.ts.map +0 -0
  581. /package/{types → lib}/components/sections/Gallery.d.ts +0 -0
  582. /package/{types → lib}/components/sections/Gallery.d.ts.map +0 -0
  583. /package/{types → lib}/components/sections/IconList.d.ts +0 -0
  584. /package/{types → lib}/components/sections/IconList.d.ts.map +0 -0
  585. /package/{types → lib}/components/sections/IndexList.d.ts +0 -0
  586. /package/{types → lib}/components/sections/IndexList.d.ts.map +0 -0
  587. /package/{types → lib}/components/sections/Map.d.ts +0 -0
  588. /package/{types → lib}/components/sections/Map.d.ts.map +0 -0
  589. /package/{types → lib}/components/sections/NavList.d.ts +0 -0
  590. /package/{types → lib}/components/sections/NavList.d.ts.map +0 -0
  591. /package/{types → lib}/components/sections/NewsletterForm.d.ts +0 -0
  592. /package/{types → lib}/components/sections/NewsletterForm.d.ts.map +0 -0
  593. /package/{types → lib}/components/sections/NumberList.d.ts +0 -0
  594. /package/{types → lib}/components/sections/NumberList.d.ts.map +0 -0
  595. /package/{types → lib}/components/sections/ParallaxBackground.d.ts +0 -0
  596. /package/{types → lib}/components/sections/ParallaxBackground.d.ts.map +0 -0
  597. /package/{types → lib}/components/sections/PriceList.d.ts +0 -0
  598. /package/{types → lib}/components/sections/PriceList.d.ts.map +0 -0
  599. /package/{types → lib}/components/sections/PriceTable.d.ts +0 -0
  600. /package/{types → lib}/components/sections/PriceTable.d.ts.map +0 -0
  601. /package/{types → lib}/components/sections/Quote.d.ts +0 -0
  602. /package/{types → lib}/components/sections/Quote.d.ts.map +0 -0
  603. /package/{types → lib}/components/sections/RawVideo.d.ts +0 -0
  604. /package/{types → lib}/components/sections/RawVideo.d.ts.map +0 -0
  605. /package/{types → lib}/components/sections/SimpleImage.d.ts +0 -0
  606. /package/{types → lib}/components/sections/SimpleImage.d.ts.map +0 -0
  607. /package/{types → lib}/components/sections/SocialWall.d.ts +0 -0
  608. /package/{types → lib}/components/sections/SocialWall.d.ts.map +0 -0
  609. /package/{types → lib}/components/sections/Table.d.ts +0 -0
  610. /package/{types → lib}/components/sections/Table.d.ts.map +0 -0
  611. /package/{types → lib}/components/sections/Teaser.d.ts +0 -0
  612. /package/{types → lib}/components/sections/Teaser.d.ts.map +0 -0
  613. /package/{types → lib}/components/sections/TeaserWide.d.ts +0 -0
  614. /package/{types → lib}/components/sections/TeaserWide.d.ts.map +0 -0
  615. /package/{types → lib}/components/sections/Timeline.d.ts +0 -0
  616. /package/{types → lib}/components/sections/Timeline.d.ts.map +0 -0
  617. /package/{types → lib}/components/sections/Video.d.ts +0 -0
  618. /package/{types → lib}/components/sections/Video.d.ts.map +0 -0
  619. /package/{types → lib}/components/sections/events/EventList.d.ts +0 -0
  620. /package/{types → lib}/components/sections/events/EventOverview.d.ts +0 -0
  621. /package/{types → lib}/components/sections/footer/Footer.d.ts +0 -0
  622. /package/{types → lib}/components/sections/footer/Footer.d.ts.map +0 -0
  623. /package/{types → lib}/components/sections/footer/partials/FooterBottomBar.d.ts +0 -0
  624. /package/{types → lib}/components/sections/footer/partials/FooterBottomBar.d.ts.map +0 -0
  625. /package/{types → lib}/components/sections/footer/partials/FooterColumn.d.ts +0 -0
  626. /package/{types → lib}/components/sections/footer/partials/FooterColumn.d.ts.map +0 -0
  627. /package/{types → lib}/components/sections/footer/partials/index.d.ts +0 -0
  628. /package/{types → lib}/components/sections/footer/partials/index.d.ts.map +0 -0
  629. /package/{types → lib}/components/sections/footer/skeletons/FooterArticle.d.ts +0 -0
  630. /package/{types → lib}/components/sections/footer/skeletons/FooterArticle.d.ts.map +0 -0
  631. /package/{types → lib}/components/sections/footer/skeletons/FooterBottomGrid.d.ts +0 -0
  632. /package/{types → lib}/components/sections/footer/skeletons/FooterBottomGrid.d.ts.map +0 -0
  633. /package/{types → lib}/components/sections/footer/skeletons/index.d.ts +0 -0
  634. /package/{types → lib}/components/sections/footer/skeletons/index.d.ts.map +0 -0
  635. /package/{types → lib}/components/sections/form/DynamicForm.d.ts +0 -0
  636. /package/{types → lib}/components/sections/form/DynamicForm.d.ts.map +0 -0
  637. /package/{types → lib}/components/sections/form/renderer/areaRenderer.d.ts +0 -0
  638. /package/{types → lib}/components/sections/form/renderer/areaRenderer.d.ts.map +0 -0
  639. /package/{types → lib}/components/sections/form/renderer/datepickerRenderer.d.ts +0 -0
  640. /package/{types → lib}/components/sections/form/renderer/datepickerRenderer.d.ts.map +0 -0
  641. /package/{types → lib}/components/sections/form/renderer/fieldGroupRenderer.d.ts +0 -0
  642. /package/{types → lib}/components/sections/form/renderer/fieldGroupRenderer.d.ts.map +0 -0
  643. /package/{types → lib}/components/sections/form/renderer/fieldRenderer.d.ts +0 -0
  644. /package/{types → lib}/components/sections/form/renderer/fieldRenderer.d.ts.map +0 -0
  645. /package/{types → lib}/components/sections/form/renderer/locationRenderer.d.ts +0 -0
  646. /package/{types → lib}/components/sections/form/renderer/locationRenderer.d.ts.map +0 -0
  647. /package/{types → lib}/components/sections/form/renderer/selectRenderer.d.ts +0 -0
  648. /package/{types → lib}/components/sections/form/renderer/selectRenderer.d.ts.map +0 -0
  649. /package/{types → lib}/components/sections/form/renderer/uploadRenderer.d.ts +0 -0
  650. /package/{types → lib}/components/sections/form/renderer/uploadRenderer.d.ts.map +0 -0
  651. /package/{types → lib}/components/sections/form/validators/areaValidator.d.ts +0 -0
  652. /package/{types → lib}/components/sections/form/validators/areaValidator.d.ts.map +0 -0
  653. /package/{types → lib}/components/sections/form/validators/datepickerValidator.d.ts +0 -0
  654. /package/{types → lib}/components/sections/form/validators/datepickerValidator.d.ts.map +0 -0
  655. /package/{types → lib}/components/sections/form/validators/fieldGroupValidator.d.ts +0 -0
  656. /package/{types → lib}/components/sections/form/validators/fieldGroupValidator.d.ts.map +0 -0
  657. /package/{types → lib}/components/sections/form/validators/fieldValidator.d.ts +0 -0
  658. /package/{types → lib}/components/sections/form/validators/fieldValidator.d.ts.map +0 -0
  659. /package/{types → lib}/components/sections/form/validators/locationValidator.d.ts +0 -0
  660. /package/{types → lib}/components/sections/form/validators/locationValidator.d.ts.map +0 -0
  661. /package/{types → lib}/components/sections/form/validators/selectValidator.d.ts +0 -0
  662. /package/{types → lib}/components/sections/form/validators/selectValidator.d.ts.map +0 -0
  663. /package/{types → lib}/components/sections/form/validators/uploadValidator.d.ts +0 -0
  664. /package/{types → lib}/components/sections/form/validators/uploadValidator.d.ts.map +0 -0
  665. /package/{types → lib}/components/sections/header/HeaderKenBurns.d.ts +0 -0
  666. /package/{types → lib}/components/sections/header/HeaderKenBurns.d.ts.map +0 -0
  667. /package/{types → lib}/components/sections/header/HeaderPoster.d.ts +0 -0
  668. /package/{types → lib}/components/sections/header/HeaderPoster.d.ts.map +0 -0
  669. /package/{types → lib}/components/sections/header/HeaderVideo.d.ts +0 -0
  670. /package/{types → lib}/components/sections/header/HeaderVideo.d.ts.map +0 -0
  671. /package/{types → lib}/components/sections/jobs/JobArticle.d.ts +0 -0
  672. /package/{types → lib}/components/sections/jobs/JobArticle.d.ts.map +0 -0
  673. /package/{types → lib}/components/sections/jobs/JobList.d.ts +0 -0
  674. /package/{types → lib}/components/sections/jobs/JobList.d.ts.map +0 -0
  675. /package/{types → lib}/components/sections/navigation/NavBar.d.ts +0 -0
  676. /package/{types → lib}/components/sections/navigation/NavBar.d.ts.map +0 -0
  677. /package/{types → lib}/components/sections/navigation/Navigation.d.ts +0 -0
  678. /package/{types → lib}/components/sections/navigation/Navigation.d.ts.map +0 -0
  679. /package/{types → lib}/components/sections/navigation/menu/Menu.d.ts +0 -0
  680. /package/{types → lib}/components/sections/navigation/menu/Menu.d.ts.map +0 -0
  681. /package/{types → lib}/components/sections/navigation/menu/variations/MenuFlyout.d.ts +0 -0
  682. /package/{types → lib}/components/sections/navigation/menu/variations/MenuLarge.d.ts +0 -0
  683. /package/{types → lib}/components/sections/navigation/partials/MenuFooter.d.ts +0 -0
  684. /package/{types → lib}/components/sections/navigation/partials/MenuFooter.d.ts.map +0 -0
  685. /package/{types → lib}/components/sections/navigation/partials/MenuHeader.d.ts +0 -0
  686. /package/{types → lib}/components/sections/navigation/partials/MenuHeader.d.ts.map +0 -0
  687. /package/{types → lib}/components/sections/navigation/partials/NavBarBottom.d.ts +0 -0
  688. /package/{types → lib}/components/sections/navigation/partials/NavBarBottom.d.ts.map +0 -0
  689. /package/{types → lib}/components/sections/navigation/partials/NavBarMain.d.ts +0 -0
  690. /package/{types → lib}/components/sections/navigation/partials/NavBarMain.d.ts.map +0 -0
  691. /package/{types → lib}/components/sections/navigation/partials/NavBarTop.d.ts +0 -0
  692. /package/{types → lib}/components/sections/navigation/partials/NavBarTop.d.ts.map +0 -0
  693. /package/{types → lib}/components/sections/navigation/partials/index.d.ts +0 -0
  694. /package/{types → lib}/components/sections/navigation/partials/index.d.ts.map +0 -0
  695. /package/{types → lib}/components/sections/navigation/skeletons/BarBreadCrumbs.d.ts +0 -0
  696. /package/{types → lib}/components/sections/navigation/skeletons/BarBreadCrumbs.d.ts.map +0 -0
  697. /package/{types → lib}/components/sections/navigation/skeletons/BarColumn.d.ts +0 -0
  698. /package/{types → lib}/components/sections/navigation/skeletons/BarColumn.d.ts.map +0 -0
  699. /package/{types → lib}/components/sections/navigation/skeletons/BarLogo.d.ts +0 -0
  700. /package/{types → lib}/components/sections/navigation/skeletons/BarLogo.d.ts.map +0 -0
  701. /package/{types → lib}/components/sections/navigation/skeletons/BarMenuToggle.d.ts +0 -0
  702. /package/{types → lib}/components/sections/navigation/skeletons/BarMenuToggle.d.ts.map +0 -0
  703. /package/{types → lib}/components/sections/navigation/skeletons/BarNavList.d.ts +0 -0
  704. /package/{types → lib}/components/sections/navigation/skeletons/BarNavList.d.ts.map +0 -0
  705. /package/{types → lib}/components/sections/navigation/skeletons/index.d.ts +0 -0
  706. /package/{types → lib}/components/sections/navigation/skeletons/index.d.ts.map +0 -0
  707. /package/{types → lib}/components/sections/news/NewsAuthorCard.d.ts +0 -0
  708. /package/{types → lib}/components/sections/news/NewsAuthorCard.d.ts.map +0 -0
  709. /package/{types → lib}/components/sections/news/NewsFooter.d.ts +0 -0
  710. /package/{types → lib}/components/sections/news/NewsFooter.d.ts.map +0 -0
  711. /package/{types → lib}/components/sections/news/NewsImages.d.ts +0 -0
  712. /package/{types → lib}/components/sections/news/NewsImages.d.ts.map +0 -0
  713. /package/{types → lib}/components/sections/news/NewsIntro.d.ts +0 -0
  714. /package/{types → lib}/components/sections/news/NewsIntro.d.ts.map +0 -0
  715. /package/{types → lib}/components/sections/news/NewsList.d.ts +0 -0
  716. /package/{types → lib}/components/sections/news/NewsList.d.ts.map +0 -0
  717. /package/{types → lib}/components/sections/news/NewsOverview.d.ts +0 -0
  718. /package/{types → lib}/components/sections/news/NewsOverview.d.ts.map +0 -0
  719. /package/{types → lib}/components/sections/news/NewsTable.d.ts +0 -0
  720. /package/{types → lib}/components/sections/news/NewsTable.d.ts.map +0 -0
  721. /package/{types → lib}/components/sections/news/NewsText.d.ts +0 -0
  722. /package/{types → lib}/components/sections/news/NewsText.d.ts.map +0 -0
  723. /package/{types → lib}/components/sections/news/NewsVideo.d.ts +0 -0
  724. /package/{types → lib}/components/sections/news/NewsVideo.d.ts.map +0 -0
  725. /package/{types → lib}/components/sections/pois/PointOfInterestDetail.d.ts +0 -0
  726. /package/{types → lib}/components/sections/pois/PointOfInterestDetail.d.ts.map +0 -0
  727. /package/{types → lib}/components/sections/pois/PointOfInterestMap.d.ts +0 -0
  728. /package/{types → lib}/components/sections/pois/PointOfInterestMap.d.ts.map +0 -0
  729. /package/{types → lib}/components/sections/pois/PointOfInterestOverview.d.ts +0 -0
  730. /package/{types → lib}/components/sections/pois/PointOfInterestOverview.d.ts.map +0 -0
  731. /package/{types → lib}/components/typography/Callout.d.ts +0 -0
  732. /package/{types → lib}/components/typography/Copy.d.ts +0 -0
  733. /package/{types → lib}/components/typography/Copy.d.ts.map +0 -0
  734. /package/{types → lib}/components/typography/Heading.d.ts +0 -0
  735. /package/{types → lib}/components/typography/Heading.d.ts.map +0 -0
  736. /package/{types → lib}/components/typography/Link.d.ts +0 -0
  737. /package/{types → lib}/components/typography/Link.d.ts.map +0 -0
  738. /package/{types → lib}/utils/LibThemeProvider.d.ts +0 -0
  739. /package/{types → lib}/utils/LibThemeProvider.d.ts.map +0 -0
  740. /package/{types → lib}/utils/arrays.d.ts +0 -0
  741. /package/{types → lib}/utils/arrays.d.ts.map +0 -0
  742. /package/{types → lib}/utils/backgroundImage.d.ts +0 -0
  743. /package/{types → lib}/utils/backgroundImage.d.ts.map +0 -0
  744. /package/{types → lib}/utils/clamp.d.ts +0 -0
  745. /package/{types → lib}/utils/clamp.d.ts.map +0 -0
  746. /package/{types → lib}/utils/concat.d.ts +0 -0
  747. /package/{types → lib}/utils/concat.d.ts.map +0 -0
  748. /package/{types → lib}/utils/cookie-consent/cookie.d.ts +0 -0
  749. /package/{types → lib}/utils/cookie-consent/cookie.d.ts.map +0 -0
  750. /package/{types → lib}/utils/cookie-consent/mutations.d.ts +0 -0
  751. /package/{types → lib}/utils/cookie-consent/mutations.d.ts.map +0 -0
  752. /package/{types → lib}/utils/cookie-consent/useCookieConsent.d.ts +0 -0
  753. /package/{types → lib}/utils/cookie-consent/useCookieConsent.d.ts.map +0 -0
  754. /package/{types → lib}/utils/dataURI.d.ts +0 -0
  755. /package/{types → lib}/utils/dataURI.d.ts.map +0 -0
  756. /package/{types → lib}/utils/escape.d.ts +0 -0
  757. /package/{types → lib}/utils/escape.d.ts.map +0 -0
  758. /package/{types → lib}/utils/filters.d.ts +0 -0
  759. /package/{types → lib}/utils/filters.d.ts.map +0 -0
  760. /package/{types → lib}/utils/fontLoading.d.ts +0 -0
  761. /package/{types → lib}/utils/fontLoading.d.ts.map +0 -0
  762. /package/{types → lib}/utils/formFieldText.d.ts +0 -0
  763. /package/{types → lib}/utils/formFieldText.d.ts.map +0 -0
  764. /package/{types → lib}/utils/getLinkIcon.d.ts +0 -0
  765. /package/{types → lib}/utils/getLinkIcon.d.ts.map +0 -0
  766. /package/{types → lib}/utils/hexRgbConverter.d.ts +0 -0
  767. /package/{types → lib}/utils/hexRgbConverter.d.ts.map +0 -0
  768. /package/{types → lib}/utils/menuHooks.d.ts +0 -0
  769. /package/{types → lib}/utils/menuHooks.d.ts.map +0 -0
  770. /package/{types → lib}/utils/navigation.d.ts +0 -0
  771. /package/{types → lib}/utils/navigation.d.ts.map +0 -0
  772. /package/{types → lib}/utils/statusFormatter.d.ts +0 -0
  773. /package/{types → lib}/utils/statusFormatter.d.ts.map +0 -0
  774. /package/{types → lib}/utils/storyHelpers.d.ts +0 -0
  775. /package/{types → lib}/utils/storyHelpers.d.ts.map +0 -0
  776. /package/{types → lib}/utils/structuredData.d.ts +0 -0
  777. /package/{types → lib}/utils/structuredData.d.ts.map +0 -0
  778. /package/{types → lib}/utils/styles.d.ts +0 -0
  779. /package/{types → lib}/utils/styles.d.ts.map +0 -0
  780. /package/{types → lib}/utils/types.d.ts +0 -0
  781. /package/{types → lib}/utils/types.d.ts.map +0 -0
  782. /package/{types → lib}/utils/urlParams.d.ts +0 -0
  783. /package/{types → lib}/utils/urlParams.d.ts.map +0 -0
  784. /package/{types → lib}/utils/useArray.d.ts +0 -0
  785. /package/{types → lib}/utils/useArray.d.ts.map +0 -0
  786. /package/{types → lib}/utils/useDebounce.d.ts +0 -0
  787. /package/{types → lib}/utils/useDebounce.d.ts.map +0 -0
  788. /package/{types → lib}/utils/useEqualSheetHeight.d.ts +0 -0
  789. /package/{types → lib}/utils/useEqualSheetHeight.d.ts.map +0 -0
  790. /package/{types → lib}/utils/useFontsLoaded.d.ts +0 -0
  791. /package/{types → lib}/utils/useFontsLoaded.d.ts.map +0 -0
  792. /package/{types → lib}/utils/useGeolocation.d.ts +0 -0
  793. /package/{types → lib}/utils/useGeolocation.d.ts.map +0 -0
  794. /package/{types → lib}/utils/useIE.d.ts +0 -0
  795. /package/{types → lib}/utils/useIE.d.ts.map +0 -0
  796. /package/{types → lib}/utils/useImgPreload.d.ts +0 -0
  797. /package/{types → lib}/utils/useImgPreload.d.ts.map +0 -0
  798. /package/{types → lib}/utils/useInterval.d.ts +0 -0
  799. /package/{types → lib}/utils/useInterval.d.ts.map +0 -0
  800. /package/{types → lib}/utils/useItemHeight.d.ts +0 -0
  801. /package/{types → lib}/utils/useItemHeight.d.ts.map +0 -0
  802. /package/{types → lib}/utils/useLazyInput.d.ts +0 -0
  803. /package/{types → lib}/utils/useLazyInput.d.ts.map +0 -0
  804. /package/{types → lib}/utils/useLeafletMap.d.ts +0 -0
  805. /package/{types → lib}/utils/useLeafletMap.d.ts.map +0 -0
  806. /package/{types → lib}/utils/useMediaQuery.d.ts +0 -0
  807. /package/{types → lib}/utils/useMediaQuery.d.ts.map +0 -0
  808. /package/{types → lib}/utils/useMounted.d.ts +0 -0
  809. /package/{types → lib}/utils/useMounted.d.ts.map +0 -0
  810. /package/{types → lib}/utils/useObserverSupport.d.ts +0 -0
  811. /package/{types → lib}/utils/useObserverSupport.d.ts.map +0 -0
  812. /package/{types → lib}/utils/usePageScroll.d.ts +0 -0
  813. /package/{types → lib}/utils/usePageScroll.d.ts.map +0 -0
  814. /package/{types → lib}/utils/useParams.d.ts +0 -0
  815. /package/{types → lib}/utils/useParams.d.ts.map +0 -0
  816. /package/{types → lib}/utils/usePoster.d.ts +0 -0
  817. /package/{types → lib}/utils/usePoster.d.ts.map +0 -0
  818. /package/{types → lib}/utils/usePrevious.d.ts +0 -0
  819. /package/{types → lib}/utils/usePrevious.d.ts.map +0 -0
  820. /package/{types → lib}/utils/useResizeThrottle.d.ts +0 -0
  821. /package/{types → lib}/utils/useResizeThrottle.d.ts.map +0 -0
  822. /package/{types → lib}/utils/useScroll.d.ts +0 -0
  823. /package/{types → lib}/utils/useScroll.d.ts.map +0 -0
  824. /package/{types → lib}/utils/useScrollIntoView.d.ts +0 -0
  825. /package/{types → lib}/utils/useScrollIntoView.d.ts.map +0 -0
  826. /package/{types → lib}/utils/useScrollThrottle.d.ts +0 -0
  827. /package/{types → lib}/utils/useScrollThrottle.d.ts.map +0 -0
  828. /package/{types → lib}/utils/useScrollTo.d.ts +0 -0
  829. /package/{types → lib}/utils/useScrollTo.d.ts.map +0 -0
  830. /package/{types → lib}/utils/useTimeout.d.ts +0 -0
  831. /package/{types → lib}/utils/useTimeout.d.ts.map +0 -0
  832. /package/{types → lib}/utils/useTouch.d.ts +0 -0
  833. /package/{types → lib}/utils/useTouch.d.ts.map +0 -0
  834. /package/{types → lib}/utils/useUpdateEffect.d.ts +0 -0
  835. /package/{types → lib}/utils/useUpdateEffect.d.ts.map +0 -0
package/esm/sections.js DELETED
@@ -1,3966 +0,0 @@
1
- import { a as __makeTemplateObject, e as __spreadArray, h as Minus, i as Plus, j as Info, _ as __assign, A as ArrowLeftRight, k as External, l as ArrowDown, L as LocationPin, m as ArrowRightGhost, n as ArrowLeftGhost, P as Phone, M as Mail, o as Instagram, p as Play } from './ClockFilled-6bae80dc.js';
2
- import { S as Section, m as mapToBgMode, W as Wrapper, w as wrapperWhitespace } from './Wrapper-1cac758b.js';
3
- import { C as Copy, c as copyStyle, H as Heading } from './Copy-bca0854c.js';
4
- import * as React from 'react';
5
- import React__default, { useContext, useState, useRef, useEffect, forwardRef, useMemo, createRef } from 'react';
6
- import styled, { ThemeContext, css } from 'styled-components';
7
- import { s as spacings, g as getColors, m as mq, c as getGlobals, w as withRange, a as getFonts, e as getSVGDataImg } from './styles-c387bdc6.js';
8
- import { w as withLibTheme, u as useLibTheme } from './LibThemeProvider-acf2e2bb.js';
9
- import { g as generateFAQ, a as generateLocalBusiness } from './structuredData-87423414.js';
10
- import { g as gridSettings, G as Grid, a as getGridWidth } from './Grid-172051a9.js';
11
- import { L as Link } from './Link-bccdb082.js';
12
- import { S as StatusFormatter } from './statusFormatter-9be0fbff.js';
13
- import { u as useEqualSheetHeight } from './useEqualSheetHeight-e68e1638.js';
14
- import { T as Title$6, a as TableBlock } from './TableBlock-014f9821.js';
15
- import { A as Actions } from './Actions-8b4a4d2f.js';
16
- import { I as IntroBlock, H as HeaderPoster, a as HeaderKenBurns, b as HeaderVideo, V as VideoBlock } from './VideoBlock-ede11866.js';
17
- import { I as Image } from './Image-301c4433.js';
18
- import { u as useIE } from './useIE-a9c56989.js';
19
- import ReactDOMServer from 'react-dom/server';
20
- import { g as generateNavbarIdent, a as getFullNavbarHeights, b as getNavbarState } from './Navigation-03339030.js';
21
- import { P as Pointer } from './Pointer-2276308c.js';
22
- import { u as useScrollTo } from './useScrollTo-70af34bf.js';
23
- import { a as useMediaQueries } from './useMediaQuery-388bd65e.js';
24
- import { C as Control$1 } from './Control-dd0f76f1.js';
25
- import { u as useLeafletMap } from './useLeafletMap-6dea7a8e.js';
26
- import { i as isValidArray } from './arrays-65b644ef.js';
27
- import { C as Callout } from './Callout-08fb36a2.js';
28
- import { u as useObserverSupport } from './useObserverSupport-02bce7f5.js';
29
- import { u as useUpdateEffect } from './useUpdateEffect-824c0c84.js';
30
- import { V as VideoCard } from './VideoCard-aced65ef.js';
31
- import './concat-ab3c66f2.js';
32
- import './clamp-12d37b65.js';
33
- import 'react-schemaorg';
34
- import './navigation-a2998143.js';
35
- import './LanguageSwitcher-57c4a924.js';
36
- import './useCookieConsent-8caef116.js';
37
- import './ButtonGhost-6876b67f.js';
38
- import './hexRgbConverter-edb91624.js';
39
-
40
- var AccordionContainer = styled.div.withConfig({
41
- displayName: "Accordion__AccordionContainer",
42
- componentId: "sc-1el5cmc-0"
43
- })(templateObject_1$x || (templateObject_1$x = __makeTemplateObject(["\n margin: 0;\n padding: 0;\n\n & > * + * {\n margin-top: ", "px;\n }\n"], ["\n margin: 0;\n padding: 0;\n\n & > * + * {\n margin-top: ", "px;\n }\n"])), spacings.nudge);
44
- var View$9 = styled.details.withConfig({
45
- displayName: "Accordion__View",
46
- componentId: "sc-1el5cmc-1"
47
- })(templateObject_2$s || (templateObject_2$s = __makeTemplateObject([""], [""])));
48
- var AccordionHead = styled.summary.withConfig({
49
- displayName: "Accordion__AccordionHead",
50
- componentId: "sc-1el5cmc-2"
51
- })(templateObject_3$o || (templateObject_3$o = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n\n padding: ", "px;\n margin: 0;\n border: none;\n outline: none;\n background: none;\n user-select: none;\n list-style: none;\n\n background: ", ";\n\n cursor: pointer;\n transition: background 0.2s ease-in-out;\n\n @media ", " {\n padding: ", "px;\n }\n\n &::-webkit-details-marker {\n display: none;\n }\n\n &::marker {\n display: none;\n }\n\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n background: ", ";\n }\n }\n\n &:focus {\n background: ", ";\n }\n\n &:focus:not(:focus-visible) {\n outline: none;\n }\n"], ["\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: space-between;\n\n padding: ", "px;\n margin: 0;\n border: none;\n outline: none;\n background: none;\n user-select: none;\n list-style: none;\n\n background: ", ";\n\n cursor: pointer;\n transition: background 0.2s ease-in-out;\n\n @media ", " {\n padding: ", "px;\n }\n\n &::-webkit-details-marker {\n display: none;\n }\n\n &::marker {\n display: none;\n }\n\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n background: ", ";\n }\n }\n\n &:focus {\n background: ", ";\n }\n\n &:focus:not(:focus-visible) {\n outline: none;\n }\n"])), spacings.nudge * 2, function (_a) {
52
- var isInverted = _a.isInverted,
53
- hasBg = _a.hasBg,
54
- theme = _a.theme;
55
- return isInverted || hasBg ? getColors(theme).elementBg.light : getColors(theme).elementBg.medium;
56
- }, mq.medium, spacings.nudge * 3, function (_a) {
57
- var theme = _a.theme,
58
- isInverted = _a.isInverted,
59
- hasBg = _a.hasBg;
60
- return isInverted || hasBg ? getColors(theme).elementBg.lightHover : getColors(theme).elementBg.mediumHover;
61
- }, function (_a) {
62
- var theme = _a.theme,
63
- isInverted = _a.isInverted,
64
- hasBg = _a.hasBg;
65
- return isInverted || hasBg ? getColors(theme).elementBg.lightHover : getColors(theme).elementBg.mediumHover;
66
- });
67
- var Column = styled(Copy).withConfig({
68
- displayName: "Accordion__Column",
69
- componentId: "sc-1el5cmc-3"
70
- })(templateObject_4$l || (templateObject_4$l = __makeTemplateObject(["\n flex: 1 1 0;\n"], ["\n flex: 1 1 0;\n"])));
71
- var AccordionText = styled.div.withConfig({
72
- displayName: "Accordion__AccordionText",
73
- componentId: "sc-1el5cmc-4"
74
- })(templateObject_5$j || (templateObject_5$j = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n padding: ", "px;\n margin-top: 2px;\n background: ", ";\n\n & > * {\n max-width: 880px;\n }\n\n & > * + * {\n margin-top: ", "px;\n }\n\n @media ", " {\n padding: ", "px;\n }\n\n @media ", " {\n flex-direction: row;\n\n & > * + * {\n margin-top: 0px;\n margin-left: ", "px;\n }\n }\n"], ["\n display: flex;\n flex-direction: column;\n padding: ", "px;\n margin-top: 2px;\n background: ", ";\n\n & > * {\n max-width: 880px;\n }\n\n & > * + * {\n margin-top: ", "px;\n }\n\n @media ", " {\n padding: ", "px;\n }\n\n @media ", " {\n flex-direction: row;\n\n & > * + * {\n margin-top: 0px;\n margin-left: ", "px;\n }\n }\n"])), spacings.nudge * 2, function (_a) {
75
- var isInverted = _a.isInverted,
76
- hasBg = _a.hasBg,
77
- theme = _a.theme;
78
- return isInverted || hasBg ? getColors(theme).elementBg.light : getColors(theme).elementBg.medium;
79
- }, spacings.spacer, mq.medium, spacings.nudge * 3, mq.semilarge, gridSettings.gutter);
80
-
81
- var AccordionBlock = function (_a) {
82
- var label = _a.label,
83
- text = _a.text,
84
- aside = _a.aside,
85
- isSelected = _a.isSelected,
86
- onClick = _a.onClick,
87
- hasBg = _a.hasBg,
88
- isInverted = _a.isInverted,
89
- itemIcon = _a.itemIcon,
90
- className = _a.className;
91
- var colors = useLibTheme().colors;
92
- return React__default.createElement(View$9, {
93
- open: isSelected,
94
- onToggle: onClick,
95
- className: className
96
- }, React__default.createElement(AccordionHead, {
97
- isInverted: isInverted,
98
- hasBg: hasBg
99
- }, React__default.createElement(Copy, {
100
- renderAs: "span",
101
- size: "big",
102
- type: "copy-b"
103
- }, label), React__default.createElement("span", null, itemIcon ? itemIcon({
104
- isSelected: isSelected || false
105
- }) : isSelected ? React__default.createElement(Minus, {
106
- iconColor: colors.text.default
107
- }) : React__default.createElement(Plus, {
108
- iconColor: colors.text.default
109
- }))), React__default.createElement(AccordionText, {
110
- isInverted: isInverted,
111
- hasBg: hasBg,
112
- hasAside: !!aside
113
- }, text && React__default.createElement(Column, {
114
- type: "copy",
115
- innerHTML: text
116
- }), aside && React__default.createElement(Column, {
117
- type: "copy",
118
- innerHTML: aside
119
- })));
120
- };
121
-
122
- var Accordion = function (_a) {
123
- var anchorId = _a.anchorId,
124
- items = _a.items,
125
- bgMode = _a.bgMode,
126
- itemIcon = _a.itemIcon;
127
-
128
- var _b = React__default.useState([]),
129
- currentItems = _b[0],
130
- setCurrentItems = _b[1];
131
-
132
- var colors = useLibTheme().colors;
133
- var isInverted = bgMode === 'inverted';
134
- var hasBg = bgMode === 'full';
135
- return React__default.createElement(Section, {
136
- addSeperation: true,
137
- anchorId: anchorId,
138
- bgColor: isInverted ? colors.sectionBg.dark : hasBg ? colors.sectionBg.medium : colors.sectionBg.light,
139
- bgMode: mapToBgMode(bgMode, true)
140
- }, items && generateFAQ(items), React__default.createElement(Wrapper, {
141
- addWhitespace: true
142
- }, React__default.createElement(Grid.Row, {
143
- gutter: 0
144
- }, React__default.createElement(Grid.Col, null, React__default.createElement(AccordionContainer, {
145
- "aria-label": "Accordion Control Group Buttons"
146
- }, items === null || items === void 0 ? void 0 : items.map(function (_a, i) {
147
- var label = _a.label,
148
- text = _a.text,
149
- aside = _a.aside;
150
- var isSelected = currentItems.indexOf(i) !== -1;
151
- return React__default.createElement(AccordionBlock, {
152
- key: "".concat(label, "_").concat(i),
153
- isSelected: isSelected,
154
- label: label,
155
- text: text,
156
- aside: aside,
157
- onClick: function () {
158
- setCurrentItems(function (prev) {
159
- var copy = __spreadArray([], prev, true);
160
-
161
- var index = copy.indexOf(i);
162
-
163
- if (index === -1) {
164
- copy.push(i);
165
- } else {
166
- copy.splice(index, 1);
167
- }
168
-
169
- return copy;
170
- });
171
- },
172
- isInverted: isInverted,
173
- hasBg: hasBg,
174
- itemIcon: itemIcon
175
- });
176
- }))))));
177
- };
178
- var Accordion$1 = withLibTheme(Accordion);
179
- var templateObject_1$x, templateObject_2$s, templateObject_3$o, templateObject_4$l, templateObject_5$j;
180
-
181
- var View$8 = styled.div.withConfig({
182
- displayName: "Alert__View",
183
- componentId: "sc-1d5c0fb-0"
184
- })(templateObject_1$w || (templateObject_1$w = __makeTemplateObject(["\n display: -ms-grid;\n display: grid;\n\n -ms-grid-columns: min-content 1fr;\n grid-template-columns: min-content 1fr;\n -ms-grid-rows: min-content 1fr;\n grid-auto-rows: min-content 1fr;\n\n text-decoration: none;\n\n position: relative;\n border: 2px solid\n ", ";\n border-radius: ", ";\n\n color: ", ";\n\n padding: ", "px;\n\n text-align: left;\n width: 100%;\n cursor: pointer;\n\n transition: color ease-in-out 0.2s, border 0.2s ease-in-out;\n\n & > * + * {\n margin-left: ", "px;\n }\n\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n border: 2px solid\n ", ";\n color: ", ";\n }\n }\n"], ["\n display: -ms-grid;\n display: grid;\n\n -ms-grid-columns: min-content 1fr;\n grid-template-columns: min-content 1fr;\n -ms-grid-rows: min-content 1fr;\n grid-auto-rows: min-content 1fr;\n\n text-decoration: none;\n\n position: relative;\n border: 2px solid\n ", ";\n border-radius: ", ";\n\n color: ", ";\n\n padding: ", "px;\n\n text-align: left;\n width: 100%;\n cursor: pointer;\n\n transition: color ease-in-out 0.2s, border 0.2s ease-in-out;\n\n & > * + * {\n margin-left: ", "px;\n }\n\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n border: 2px solid\n ", ";\n color: ", ";\n }\n }\n"])), function (_a) {
185
- var theme = _a.theme,
186
- isInverted = _a.isInverted;
187
- return isInverted ? getColors(theme).primary.inverted : getColors(theme).primary.default;
188
- }, function (_a) {
189
- var theme = _a.theme;
190
- return getGlobals(theme).sections.edgeRadius;
191
- }, function (_a) {
192
- var theme = _a.theme,
193
- isInverted = _a.isInverted;
194
- return isInverted ? getColors(theme).primary.inverted : getColors(theme).primary.default;
195
- }, spacings.nudge * 3, spacings.nudge * 3, function (_a) {
196
- var theme = _a.theme,
197
- isInverted = _a.isInverted;
198
- return isInverted ? getColors(theme).primary.invertedHover : getColors(theme).primary.hover;
199
- }, function (_a) {
200
- var theme = _a.theme,
201
- isInverted = _a.isInverted;
202
- return isInverted ? getColors(theme).primary.invertedHover : getColors(theme).primary.hover;
203
- });
204
- var Icon$4 = styled.div.withConfig({
205
- displayName: "Alert__Icon",
206
- componentId: "sc-1d5c0fb-1"
207
- })(templateObject_2$r || (templateObject_2$r = __makeTemplateObject(["\n display: flex;\n align-items: center;\n\n & > * {\n height: 48px;\n width: 48px;\n }\n"], ["\n display: flex;\n align-items: center;\n\n & > * {\n height: 48px;\n width: 48px;\n }\n"])));
208
- var MainLabel$1 = styled.div.withConfig({
209
- displayName: "Alert__MainLabel",
210
- componentId: "sc-1d5c0fb-2"
211
- })(templateObject_3$n || (templateObject_3$n = __makeTemplateObject(["\n display: flex;\n align-items: center;\n"], ["\n display: flex;\n align-items: center;\n"])));
212
- var Content$6 = styled.div.withConfig({
213
- displayName: "Alert__Content",
214
- componentId: "sc-1d5c0fb-3"
215
- })(templateObject_4$k || (templateObject_4$k = __makeTemplateObject(["\n margin-top: ", "px;\n\n & > * + * {\n margin-top: ", "px;\n }\n"], ["\n margin-top: ", "px;\n\n & > * + * {\n margin-top: ", "px;\n }\n"])), spacings.nudge, spacings.nudge);
216
- var Title$5 = styled(Copy).withConfig({
217
- displayName: "Alert__Title",
218
- componentId: "sc-1d5c0fb-4"
219
- })(templateObject_5$i || (templateObject_5$i = __makeTemplateObject(["\n display: inline-block;\n"], ["\n display: inline-block;\n"])));
220
- var ViewLink = styled(Link).withConfig({
221
- displayName: "Alert__ViewLink",
222
- componentId: "sc-1d5c0fb-5"
223
- })(templateObject_6$e || (templateObject_6$e = __makeTemplateObject(["\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n\n && {\n margin: 0;\n }\n\n &:focus-within {\n outline: dotted 2px\n ", ";\n outline-offset: 4px;\n }\n\n &:focus:not(:focus-visible) {\n outline: none;\n box-shadow: none;\n }\n"], ["\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n\n && {\n margin: 0;\n }\n\n &:focus-within {\n outline: dotted 2px\n ", ";\n outline-offset: 4px;\n }\n\n &:focus:not(:focus-visible) {\n outline: none;\n box-shadow: none;\n }\n"])), function (_a) {
224
- var isInverted = _a.isInverted,
225
- theme = _a.theme;
226
- return isInverted ? getColors(theme).primary.inverted : getColors(theme).primary.default;
227
- });
228
-
229
- var Alert = function (_a) {
230
- var isInverted = _a.isInverted,
231
- title = _a.title,
232
- date = _a.date,
233
- description = _a.description,
234
- link = _a.link,
235
- customIcon = _a.customIcon,
236
- className = _a.className;
237
- var formattedDate = '';
238
-
239
- if (date) {
240
- var formatter = new StatusFormatter(date.getTime(), '', 'dd. MMMM yyyy', 'hh:mm', 'de');
241
- formattedDate = formatter.getFormattedDate();
242
- }
243
-
244
- return React__default.createElement(View$8, {
245
- isInverted: isInverted,
246
- "data-sheet": "alert",
247
- className: className
248
- }, React__default.createElement(Icon$4, null, customIcon ? customIcon({
249
- isInverted: isInverted
250
- }) : React__default.createElement(Info, null)), React__default.createElement(MainLabel$1, null, title && React__default.createElement(Title$5, {
251
- textColor: "inherit",
252
- size: "medium",
253
- type: "copy-b"
254
- }, title)), React__default.createElement("span", null), React__default.createElement(Content$6, null, description && React__default.createElement(Copy, {
255
- isInverted: isInverted,
256
- size: "small",
257
- innerHTML: description
258
- }), date && React__default.createElement(Copy, {
259
- size: "small",
260
- isInverted: isInverted
261
- }, formattedDate)), link && React__default.createElement(ViewLink, __assign({}, link, {
262
- ariaLabel: (link === null || link === void 0 ? void 0 : link.href) ? title : undefined
263
- })));
264
- };
265
- var templateObject_1$w, templateObject_2$r, templateObject_3$n, templateObject_4$k, templateObject_5$i, templateObject_6$e;
266
-
267
- var List$3 = styled.ul.withConfig({
268
- displayName: "AlertList__List",
269
- componentId: "sc-bfdeyu-0"
270
- })(templateObject_1$v || (templateObject_1$v = __makeTemplateObject(["\n margin-top: -", "px;\n margin-left: -", "px;\n padding: 0;\n list-style: none;\n\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: center;\n flex-wrap: wrap;\n\n @media ", " {\n margin-top: -", "px;\n margin-left: -", "px;\n }\n"], ["\n margin-top: -", "px;\n margin-left: -", "px;\n padding: 0;\n list-style: none;\n\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: center;\n flex-wrap: wrap;\n\n @media ", " {\n margin-top: -", "px;\n margin-left: -", "px;\n }\n"])), spacings.nudge * 2, spacings.nudge * 2, mq.medium, spacings.spacer, spacings.spacer);
271
- var ListItem$2 = styled.li.withConfig({
272
- displayName: "AlertList__ListItem",
273
- componentId: "sc-bfdeyu-1"
274
- })(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n padding-top: ", "px;\n padding-left: ", "px;\n flex: 1 1 100%;\n\n @media ", " {\n flex: 0 1 50%;\n max-width: 50%;\n\n padding-top: ", "px;\n padding-left: ", "px;\n }\n\n @media ", " {\n flex: 0 1 ", "%;\n max-width: 600px;\n\n padding-top: ", "px;\n padding-left: ", "px;\n }\n"], ["\n padding-top: ", "px;\n padding-left: ", "px;\n flex: 1 1 100%;\n\n @media ", " {\n flex: 0 1 50%;\n max-width: 50%;\n\n padding-top: ", "px;\n padding-left: ", "px;\n }\n\n @media ", " {\n flex: 0 1 ", "%;\n max-width: 600px;\n\n padding-top: ", "px;\n padding-left: ", "px;\n }\n"])), spacings.nudge * 2, spacings.nudge * 2, mq.medium, spacings.spacer, spacings.spacer, mq.large, function (_a) {
275
- var itemsPerRow = _a.itemsPerRow;
276
- return 1 / itemsPerRow * 100;
277
- }, spacings.spacer, spacings.spacer);
278
-
279
- var AlertList = function (_a) {
280
- var anchorId = _a.anchorId,
281
- items = _a.items,
282
- bgMode = _a.bgMode,
283
- customIcon = _a.customIcon;
284
- var colors = useLibTheme().colors;
285
- var isInverted = bgMode === 'inverted';
286
- var hasBg = bgMode === 'full';
287
- var alertCount = (items === null || items === void 0 ? void 0 : items.length) || 0;
288
- var itemsPerRow = alertCount % 3 === 1 || alertCount === 2 ? 2 : 3;
289
- var alertRefs = useEqualSheetHeight({
290
- listLength: alertCount,
291
- identifiers: ['[data-sheet="alert"]'],
292
- responsive: {
293
- small: 1,
294
- medium: 2,
295
- semilarge: 2,
296
- large: itemsPerRow,
297
- xlarge: itemsPerRow
298
- }
299
- }).sheetRefs;
300
- return React__default.createElement(Section, {
301
- addSeperation: true,
302
- anchorId: anchorId,
303
- bgColor: isInverted ? colors.sectionBg.dark : hasBg ? colors.sectionBg.medium : colors.sectionBg.light,
304
- bgMode: mapToBgMode(bgMode, true)
305
- }, React__default.createElement(Wrapper, {
306
- addWhitespace: true
307
- }, React__default.createElement(List$3, null, items === null || items === void 0 ? void 0 : items.map(function (item, i) {
308
- return React__default.createElement(ListItem$2, {
309
- key: i,
310
- itemsPerRow: itemsPerRow,
311
- ref: alertRefs[i]
312
- }, React__default.createElement(Alert, __assign({}, item, {
313
- isInverted: isInverted,
314
- customIcon: customIcon
315
- })));
316
- }))));
317
- };
318
- var AlertList$1 = withLibTheme(AlertList);
319
- var templateObject_1$v, templateObject_2$q;
320
-
321
- var StyledTitle$1 = styled(Title$6).withConfig({
322
- displayName: "Article__StyledTitle",
323
- componentId: "sc-1lrfo1r-0"
324
- })(templateObject_1$u || (templateObject_1$u = __makeTemplateObject(["\n &:not(:last-child) {\n margin-bottom: ", "px;\n }\n\n @media ", " {\n max-width: 880px;\n }\n"], ["\n &:not(:last-child) {\n margin-bottom: ", "px;\n }\n\n @media ", " {\n max-width: 880px;\n }\n"])), spacings.spacer, mq.semilarge);
325
- var ContentText = styled(Copy).withConfig({
326
- displayName: "Article__ContentText",
327
- componentId: "sc-1lrfo1r-1"
328
- })(templateObject_2$p || (templateObject_2$p = __makeTemplateObject(["\n text-align: left;\n"], ["\n text-align: left;\n"])));
329
- var StyledActions$6 = styled(Actions).withConfig({
330
- displayName: "Article__StyledActions",
331
- componentId: "sc-1lrfo1r-2"
332
- })(templateObject_3$m || (templateObject_3$m = __makeTemplateObject(["\n margin-top: ", "px;\n"], ["\n margin-top: ", "px;\n"])), spacings.spacer);
333
-
334
- var Article = function (_a) {
335
- var anchorId = _a.anchorId,
336
- title = _a.title,
337
- _b = _a.titleAs,
338
- titleAs = _b === void 0 ? 'h2' : _b,
339
- _c = _a.titleSize,
340
- titleSize = _c === void 0 ? 'heading-2' : _c,
341
- superTitle = _a.superTitle,
342
- superTitleAs = _a.superTitleAs,
343
- intro = _a.intro,
344
- text = _a.text,
345
- asideText = _a.asideText,
346
- halfAside = _a.halfAside,
347
- bgMode = _a.bgMode,
348
- primaryAction = _a.primaryAction,
349
- secondaryAction = _a.secondaryAction;
350
- var colors = useLibTheme().colors;
351
- var isInverted = bgMode === 'inverted';
352
- var hasContent = intro || text || asideText;
353
- return React.createElement(Section, {
354
- addSeperation: true,
355
- anchorId: anchorId,
356
- bgColor: isInverted ? colors.sectionBg.dark : bgMode ? colors.sectionBg.medium : colors.sectionBg.light,
357
- bgMode: mapToBgMode(bgMode)
358
- }, React.createElement(Wrapper, {
359
- clampWidth: "normal",
360
- addWhitespace: true
361
- }, (title || superTitle) && React.createElement(StyledTitle$1, {
362
- title: title,
363
- titleAs: titleAs,
364
- titleSize: titleSize,
365
- superTitle: superTitle,
366
- superTitleAs: superTitleAs,
367
- colorMode: isInverted ? 'inverted' : 'default'
368
- }), hasContent && React.createElement(Grid.Row, {
369
- valign: "top"
370
- }, React.createElement(Grid.Col, {
371
- semilarge: {
372
- span: halfAside ? 6 / 12 : 8 / 12
373
- }
374
- }, intro && React.createElement(ContentText, {
375
- type: "copy-b",
376
- isInverted: isInverted,
377
- innerHTML: intro
378
- }), text && React.createElement(ContentText, {
379
- type: "copy",
380
- isInverted: isInverted,
381
- innerHTML: text
382
- })), asideText && React.createElement(Grid.Col, {
383
- semilarge: {
384
- span: halfAside ? 6 / 12 : 4 / 12
385
- }
386
- }, React.createElement(ContentText, {
387
- type: "copy",
388
- isInverted: isInverted,
389
- innerHTML: asideText
390
- }))), (primaryAction || secondaryAction) && React.createElement(StyledActions$6, {
391
- primary: primaryAction && primaryAction(isInverted),
392
- secondary: secondaryAction && secondaryAction(isInverted)
393
- })));
394
- };
395
- var Article$1 = withLibTheme(Article);
396
- var templateObject_1$u, templateObject_2$p, templateObject_3$m;
397
-
398
- var ContactView = styled.div.withConfig({
399
- displayName: "CallToAction__ContactView",
400
- componentId: "sc-1wdvzex-0"
401
- })(templateObject_1$t || (templateObject_1$t = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n align-items: center;\n margin: 0 auto;\n width: 100%;\n\n text-align: left;\n hyphens: auto;\n overflow-wrap: break-word;\n\n & > * + * {\n margin-top: ", "px;\n }\n\n @media ", " {\n flex-direction: row;\n\n & > * + * {\n margin-top: 0px;\n margin-left: ", "px;\n }\n }\n"], ["\n display: flex;\n flex-direction: column;\n align-items: center;\n margin: 0 auto;\n width: 100%;\n\n text-align: left;\n hyphens: auto;\n overflow-wrap: break-word;\n\n & > * + * {\n margin-top: ", "px;\n }\n\n @media ", " {\n flex-direction: row;\n\n & > * + * {\n margin-top: 0px;\n margin-left: ", "px;\n }\n }\n"])), spacings.spacer, mq.semilarge, gridSettings.gutter);
402
- var Avatar = styled.img.withConfig({
403
- displayName: "CallToAction__Avatar",
404
- componentId: "sc-1wdvzex-1"
405
- })(templateObject_2$o || (templateObject_2$o = __makeTemplateObject(["\n align-self: center;\n display: block;\n border: solid 1px transparent;\n border-radius: 50%;\n width: 180px;\n height: 180px;\n\n background: ", ";\n\n @media ", " {\n display: block;\n width: 190px;\n height: 190px;\n }\n"], ["\n align-self: center;\n display: block;\n border: solid 1px transparent;\n border-radius: 50%;\n width: 180px;\n height: 180px;\n\n background: ", ";\n\n @media ", " {\n display: block;\n width: 190px;\n height: 190px;\n }\n"])), function (_a) {
406
- var theme = _a.theme,
407
- isInverted = _a.isInverted;
408
- return isInverted ? getGlobals(theme).sections.imagePlaceholderBg.inverted : getGlobals(theme).sections.imagePlaceholderBg.default;
409
- }, mq.semilarge);
410
- var Description$3 = styled(Copy).withConfig({
411
- displayName: "CallToAction__Description",
412
- componentId: "sc-1wdvzex-2"
413
- })(templateObject_3$l || (templateObject_3$l = __makeTemplateObject(["\n text-align: center;\n\n .icon-label {\n flex-direction: column;\n }\n\n .icon-label > * + * {\n margin-left: 0;\n margin-top: ", "px;\n }\n\n & > * {\n justify-content: center;\n }\n\n @media ", " {\n text-align: left;\n\n & > * {\n justify-content: left;\n }\n\n .icon-label {\n flex-direction: row;\n }\n\n .icon-label > * + * {\n margin-left: ", "px;\n margin-top: 0;\n }\n }\n"], ["\n text-align: center;\n\n .icon-label {\n flex-direction: column;\n }\n\n .icon-label > * + * {\n margin-left: 0;\n margin-top: ", "px;\n }\n\n & > * {\n justify-content: center;\n }\n\n @media ", " {\n text-align: left;\n\n & > * {\n justify-content: left;\n }\n\n .icon-label {\n flex-direction: row;\n }\n\n .icon-label > * + * {\n margin-left: ", "px;\n margin-top: 0;\n }\n }\n"])), spacings.nudge * 2, mq.semilarge, spacings.nudge * 2);
414
-
415
- var ContactBox = function (_a) {
416
- var isInverted = _a.isInverted,
417
- description = _a.description,
418
- avatar = _a.avatar,
419
- className = _a.className;
420
- return React__default.createElement(ContactView, {
421
- className: className
422
- }, React__default.createElement(Avatar, {
423
- src: avatar === null || avatar === void 0 ? void 0 : avatar.src,
424
- alt: avatar === null || avatar === void 0 ? void 0 : avatar.alt,
425
- isInverted: isInverted
426
- }), description && React__default.createElement(Description$3, {
427
- type: "copy",
428
- isInverted: isInverted,
429
- innerHTML: description
430
- }));
431
- };
432
-
433
- var StyledIntro = styled(IntroBlock).withConfig({
434
- displayName: "CallToAction__StyledIntro",
435
- componentId: "sc-1wdvzex-3"
436
- })(templateObject_4$j || (templateObject_4$j = __makeTemplateObject(["\n max-width: 880px;\n margin-right: auto;\n margin-left: auto;\n\n @media ", " {\n & > *:first-child {\n min-height: ", ";\n }\n }\n"], ["\n max-width: 880px;\n margin-right: auto;\n margin-left: auto;\n\n @media ", " {\n & > *:first-child {\n min-height: ", ";\n }\n }\n"])), mq.xlarge, function (_a) {
437
- var hasDecorator = _a.hasDecorator;
438
- return hasDecorator && '110px';
439
- });
440
- var StyledContactBox = styled(ContactBox).withConfig({
441
- displayName: "CallToAction__StyledContactBox",
442
- componentId: "sc-1wdvzex-4"
443
- })(templateObject_5$h || (templateObject_5$h = __makeTemplateObject(["\n margin-top: ", "px;\n\n @media ", " {\n max-width: ", ";\n margin-right: auto;\n margin-left: auto;\n }\n\n @media ", " {\n max-width: ", ";\n }\n"], ["\n margin-top: ", "px;\n\n @media ", " {\n max-width: ", ";\n margin-right: auto;\n margin-left: auto;\n }\n\n @media ", " {\n max-width: ", ";\n }\n"])), spacings.spacer, mq.semilarge, getGridWidth({
444
- cols: 8
445
- }), mq.large, getGridWidth({
446
- cols: 6
447
- }));
448
- var StyledActions$5 = styled(Actions).withConfig({
449
- displayName: "CallToAction__StyledActions",
450
- componentId: "sc-1wdvzex-5"
451
- })(templateObject_6$d || (templateObject_6$d = __makeTemplateObject(["\n margin-top: ", "px;\n\n @media ", " {\n display: block;\n text-align: center;\n }\n"], ["\n margin-top: ", "px;\n\n @media ", " {\n display: block;\n text-align: center;\n }\n"])), spacings.spacer, mq.medium);
452
- var NewsletterWrapper = styled.div.withConfig({
453
- displayName: "CallToAction__NewsletterWrapper",
454
- componentId: "sc-1wdvzex-6"
455
- })(templateObject_7$a || (templateObject_7$a = __makeTemplateObject(["\n width: 100%;\n margin: 0 auto;\n margin-top: ", "px;\n\n @media ", " {\n max-width: 400px;\n }\n"], ["\n width: 100%;\n margin: 0 auto;\n margin-top: ", "px;\n\n @media ", " {\n max-width: 400px;\n }\n"])), spacings.spacer, mq.semilarge);
456
- var Badge = styled.div.withConfig({
457
- displayName: "CallToAction__Badge",
458
- componentId: "sc-1wdvzex-7"
459
- })(templateObject_8$4 || (templateObject_8$4 = __makeTemplateObject(["\n display: none;\n position: relative;\n height: 241px;\n width: 241px;\n margin-left: auto;\n margin-bottom: -135px;\n z-index: 3;\n\n @media ", " {\n display: block;\n margin-right: ", ";\n }\n"], ["\n display: none;\n position: relative;\n height: 241px;\n width: 241px;\n margin-left: auto;\n margin-bottom: -135px;\n z-index: 3;\n\n @media ", " {\n display: block;\n margin-right: ", ";\n }\n"])), mq.xlarge, 1440 * (1 / 28) + 'px');
460
- var CallToAction = function (_a) {
461
- var anchorId = _a.anchorId,
462
- title = _a.title,
463
- _b = _a.titleAs,
464
- titleAs = _b === void 0 ? 'h2' : _b,
465
- superTitle = _a.superTitle,
466
- superTitleAs = _a.superTitleAs,
467
- text = _a.text,
468
- contact = _a.contact,
469
- badge = _a.badge,
470
- primaryAction = _a.primaryAction,
471
- secondaryAction = _a.secondaryAction,
472
- hasNewsletter = _a.hasNewsletter,
473
- newsFormMain = _a.newsFormMain,
474
- bgMode = _a.bgMode;
475
- var theme = useContext(ThemeContext);
476
- var isInverted = bgMode === 'inverted';
477
- return React__default.createElement(Section, {
478
- addSeperation: true,
479
- anchorId: anchorId,
480
- bgColor: isInverted ? getColors(theme).sectionBg.dark : getColors(theme).sectionBg.medium,
481
- bgMode: bgMode ? mapToBgMode(bgMode, true) : 'full'
482
- }, React__default.createElement(Wrapper, {
483
- addWhitespace: true,
484
- clampWidth: "normal"
485
- }, badge && React__default.createElement(Badge, null, badge), title && React__default.createElement(StyledIntro, {
486
- isCentered: true,
487
- colorMode: isInverted ? 'inverted' : 'default',
488
- title: title,
489
- titleAs: titleAs,
490
- superTitle: superTitle,
491
- superTitleAs: superTitleAs,
492
- hasDecorator: !!badge,
493
- text: text
494
- }), contact && React__default.createElement(StyledContactBox, {
495
- isInverted: isInverted,
496
- description: contact.description,
497
- avatar: contact.avatar
498
- }), newsFormMain && hasNewsletter && React__default.createElement(NewsletterWrapper, null, newsFormMain(isInverted)), (primaryAction || secondaryAction) && React__default.createElement(StyledActions$5, {
499
- primary: primaryAction && primaryAction(isInverted),
500
- secondary: secondaryAction && secondaryAction(isInverted)
501
- })));
502
- };
503
- var CallToAction$1 = withLibTheme(CallToAction);
504
- var templateObject_1$t, templateObject_2$o, templateObject_3$l, templateObject_4$j, templateObject_5$h, templateObject_6$d, templateObject_7$a, templateObject_8$4;
505
-
506
- var View$7 = styled.div.withConfig({
507
- displayName: "CardList__View",
508
- componentId: "sc-179ugoh-0"
509
- })(templateObject_1$s || (templateObject_1$s = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: center;\n position: relative;\n color: ", ";\n border-radius: ", ";\n min-height: 110px;\n\n overflow: hidden;\n\n @media ", " {\n display: block;\n padding-top: 85%;\n }\n"], ["\n display: flex;\n flex-direction: column;\n justify-content: center;\n position: relative;\n color: ", ";\n border-radius: ", ";\n min-height: 110px;\n\n overflow: hidden;\n\n @media ", " {\n display: block;\n padding-top: 85%;\n }\n"])), function (_a) {
510
- var theme = _a.theme;
511
- return getColors(theme).text.inverted;
512
- }, function (_a) {
513
- var theme = _a.theme;
514
- return getGlobals(theme).sections.edgeRadius;
515
- }, mq.medium);
516
- var SolidView = styled(View$7).withConfig({
517
- displayName: "CardList__SolidView",
518
- componentId: "sc-179ugoh-1"
519
- })(templateObject_3$k || (templateObject_3$k = __makeTemplateObject(["\n background-color: ", ";\n\n transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;\n\n ", "\n"], ["\n background-color: ", ";\n\n transition: background-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;\n\n ", "\n"])), function (_a) {
520
- var theme = _a.theme,
521
- isInverted = _a.isInverted,
522
- cardColor = _a.cardColor;
523
- return cardColor ? cardColor : isInverted ? getColors(theme).primary.inverted : getColors(theme).primary.default;
524
- }, function (_a) {
525
- var hasLink = _a.hasLink;
526
- return hasLink && css(templateObject_2$n || (templateObject_2$n = __makeTemplateObject(["\n cursor: pointer;\n\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n box-shadow: 0 2px 24px 0 rgba(0, 0, 0, 0.35);\n }\n }\n "], ["\n cursor: pointer;\n\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n box-shadow: 0 2px 24px 0 rgba(0, 0, 0, 0.35);\n }\n }\n "])));
527
- });
528
- var ImageView = styled(View$7).withConfig({
529
- displayName: "CardList__ImageView",
530
- componentId: "sc-179ugoh-2"
531
- })(templateObject_5$g || (templateObject_5$g = __makeTemplateObject(["\n transition: box-shadow 0.2s ease-in-out;\n\n ", "\n\n &:after {\n content: '';\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background: ", ";\n pointer-events: none;\n }\n\n @media ", " {\n padding-top: 0;\n }\n"], ["\n transition: box-shadow 0.2s ease-in-out;\n\n ", "\n\n &:after {\n content: '';\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background: ", ";\n pointer-events: none;\n }\n\n @media ", " {\n padding-top: 0;\n }\n"])), function (_a) {
532
- var hasLink = _a.hasLink;
533
- return hasLink && css(templateObject_4$i || (templateObject_4$i = __makeTemplateObject(["\n @media (hover: hover) and (pointer: fine) {\n cursor: pointer;\n\n img {\n -webkit-backface-visibility: hidden;\n -ms-transform: translateZ(0); /* IE 9 */\n -webkit-transform: translateZ(\n 0\n ); /* Chrome, Safari, Opera */\n transform: translateZ(0);\n transform-origin: center;\n transition: transform 0.2s ease-in-out;\n }\n\n &:hover {\n box-shadow: 0 2px 24px 0 rgba(0, 0, 0, 0.35);\n\n img {\n transform: scale(1.03);\n }\n }\n }\n "], ["\n @media (hover: hover) and (pointer: fine) {\n cursor: pointer;\n\n img {\n -webkit-backface-visibility: hidden;\n -ms-transform: translateZ(0); /* IE 9 */\n -webkit-transform: translateZ(\n 0\n ); /* Chrome, Safari, Opera */\n transform: translateZ(0);\n transform-origin: center;\n transition: transform 0.2s ease-in-out;\n }\n\n &:hover {\n box-shadow: 0 2px 24px 0 rgba(0, 0, 0, 0.35);\n\n img {\n transform: scale(1.03);\n }\n }\n }\n "])));
534
- }, function (_a) {
535
- var theme = _a.theme;
536
- return getGlobals(theme).sections.imageTextGradient;
537
- }, mq.medium);
538
- var StyledImage$9 = styled(Image).withConfig({
539
- displayName: "CardList__StyledImage",
540
- componentId: "sc-179ugoh-3"
541
- })(templateObject_6$c || (templateObject_6$c = __makeTemplateObject(["\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n\n display: block;\n width: 100%;\n height: 100%;\n\n object-fit: cover;\n object-position: center;\n\n @media ", " {\n position: relative;\n }\n"], ["\n position: absolute;\n top: 0;\n bottom: 0;\n right: 0;\n left: 0;\n\n display: block;\n width: 100%;\n height: 100%;\n\n object-fit: cover;\n object-position: center;\n\n @media ", " {\n position: relative;\n }\n"])), mq.medium);
542
- var Content$5 = styled.div.withConfig({
543
- displayName: "CardList__Content",
544
- componentId: "sc-179ugoh-4"
545
- })(templateObject_7$9 || (templateObject_7$9 = __makeTemplateObject(["\n z-index: 1;\n\n padding: ", "px;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n\n & > * + * {\n margin-left: ", "px;\n }\n\n @media ", " {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow: hidden;\n\n display: flex;\n flex-direction: ", ";\n justify-content: space-between;\n align-items: ", ";\n\n & > * + * {\n margin-left: 0;\n }\n }\n"], ["\n z-index: 1;\n\n padding: ", "px;\n\n display: flex;\n flex-direction: row;\n align-items: center;\n\n & > * + * {\n margin-left: ", "px;\n }\n\n @media ", " {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow: hidden;\n\n display: flex;\n flex-direction: ", ";\n justify-content: space-between;\n align-items: ", ";\n\n & > * + * {\n margin-left: 0;\n }\n }\n"])), spacings.nudge * 3, spacings.spacer, mq.medium, function (_a) {
546
- var hasIcon = _a.hasIcon;
547
- return hasIcon ? 'column' : 'row';
548
- }, function (_a) {
549
- var hasIcon = _a.hasIcon;
550
- return hasIcon ? 'flex-start' : 'flex-end';
551
- });
552
- var TextContainer$1 = styled.div.withConfig({
553
- displayName: "CardList__TextContainer",
554
- componentId: "sc-179ugoh-5"
555
- })(templateObject_8$3 || (templateObject_8$3 = __makeTemplateObject(["\n width: 100%;\n overflow: hidden;\n\n & > * + * {\n margin-top: ", "px;\n }\n"], ["\n width: 100%;\n overflow: hidden;\n\n & > * + * {\n margin-top: ", "px;\n }\n"])), spacings.nudge / 2);
556
- var Title$4 = styled(Copy).withConfig({
557
- displayName: "CardList__Title",
558
- componentId: "sc-179ugoh-6"
559
- })(templateObject_9$3 || (templateObject_9$3 = __makeTemplateObject(["\n display: inline-block;\n max-width: 100%;\n\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n overflow: hidden;\n"], ["\n display: inline-block;\n max-width: 100%;\n\n display: -webkit-box;\n -webkit-line-clamp: 3;\n -webkit-box-orient: vertical;\n text-overflow: ellipsis;\n overflow: hidden;\n"])));
560
- var Footer = styled.div.withConfig({
561
- displayName: "CardList__Footer",
562
- componentId: "sc-179ugoh-7"
563
- })(templateObject_10$3 || (templateObject_10$3 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n & > * + * {\n margin-left: ", "px;\n }\n"], ["\n display: flex;\n justify-content: space-between;\n align-items: center;\n\n & > * + * {\n margin-left: ", "px;\n }\n"])), spacings.nudge * 2);
564
- var SubLabel = styled(Copy).withConfig({
565
- displayName: "CardList__SubLabel",
566
- componentId: "sc-179ugoh-8"
567
- })(templateObject_11$3 || (templateObject_11$3 = __makeTemplateObject(["\n display: inline-block;\n\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n"], ["\n display: inline-block;\n\n display: -webkit-box;\n -webkit-line-clamp: 1;\n -webkit-box-orient: vertical;\n overflow: hidden;\n"])));
568
- var Icon$3 = styled.div.withConfig({
569
- displayName: "CardList__Icon",
570
- componentId: "sc-179ugoh-9"
571
- })(templateObject_12$3 || (templateObject_12$3 = __makeTemplateObject(["\n height: 100%;\n max-height: 60px;\n min-height: 40px;\n min-width: 40px;\n\n * {\n height: 100%;\n }\n\n svg,\n img {\n width: 100%;\n }\n\n @media ", " {\n svg,\n img {\n width: auto;\n }\n }\n"], ["\n height: 100%;\n max-height: 60px;\n min-height: 40px;\n min-width: 40px;\n\n * {\n height: 100%;\n }\n\n svg,\n img {\n width: 100%;\n }\n\n @media ", " {\n svg,\n img {\n width: auto;\n }\n }\n"])), mq.medium);
572
- var CardLink = styled(Link).withConfig({
573
- displayName: "CardList__CardLink",
574
- componentId: "sc-179ugoh-10"
575
- })(templateObject_13$1 || (templateObject_13$1 = __makeTemplateObject(["\n z-index: 1;\n display: block;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n\n outline-color: ", ";\n\n &:focus {\n border: 2px dotted ", ";\n outline-offset: 4px;\n\n color: ", ";\n }\n"], ["\n z-index: 1;\n display: block;\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n\n outline-color: ", ";\n\n &:focus {\n border: 2px dotted ", ";\n outline-offset: 4px;\n\n color: ", ";\n }\n"])), function (_a) {
576
- var theme = _a.theme;
577
- return getColors(theme).primary.default;
578
- }, function (_a) {
579
- var theme = _a.theme;
580
- return getColors(theme).primary.invertedHover;
581
- }, function (_a) {
582
- var theme = _a.theme,
583
- isInverted = _a.isInverted;
584
- return isInverted ? getColors(theme).primary.invertedHover : getColors(theme).primary.hover;
585
- });
586
-
587
- var Card$2 = function (_a) {
588
- var isInverted = _a.isInverted,
589
- title = _a.title,
590
- subLabel = _a.subLabel,
591
- image = _a.image,
592
- link = _a.link,
593
- decorator = _a.decorator,
594
- cardColor = _a.cardColor,
595
- customIcon = _a.customIcon;
596
- var colors = useLibTheme().colors;
597
- var CardView = image && image.small ? ImageView : SolidView;
598
- var defaultCardColor = isInverted ? colors.primary.inverted : colors.primary.default;
599
- return React__default.createElement(CardView, {
600
- isInverted: isInverted,
601
- cardColor: cardColor || defaultCardColor,
602
- hasLink: !!(link === null || link === void 0 ? void 0 : link.href)
603
- }, (image === null || image === void 0 ? void 0 : image.small) && React__default.createElement(StyledImage$9, __assign({}, image, {
604
- coverSpace: true,
605
- isInverted: isInverted,
606
- ratios: {
607
- small: {
608
- w: 352,
609
- h: 108
610
- },
611
- medium: {
612
- w: 286,
613
- h: 244
614
- }
615
- }
616
- })), React__default.createElement(Content$5, {
617
- hasIcon: !!customIcon
618
- }, customIcon ? React__default.createElement(Icon$3, null, customIcon({})) : '', React__default.createElement(TextContainer$1, null, title && React__default.createElement(Title$4, {
619
- size: "big",
620
- type: "copy",
621
- isInverted: true
622
- }, title), subLabel && React__default.createElement(Footer, null, React__default.createElement(SubLabel, {
623
- type: "copy-b",
624
- size: "big",
625
- isInverted: true
626
- }, subLabel), decorator ? decorator({
627
- isInverted: isInverted
628
- }) : undefined))), (link === null || link === void 0 ? void 0 : link.href) && React__default.createElement(CardLink, __assign({
629
- isInverted: isInverted
630
- }, link, {
631
- ariaLabel: title || undefined
632
- })));
633
- };
634
-
635
- var List$2 = styled.ul.withConfig({
636
- displayName: "CardList__List",
637
- componentId: "sc-179ugoh-11"
638
- })(templateObject_14$1 || (templateObject_14$1 = __makeTemplateObject(["\n padding: 0;\n margin-top: -", "px;\n margin-left: -", "px;\n list-style: none;\n\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: center;\n flex-wrap: wrap;\n\n @media ", " {\n margin-top: -", "px;\n margin-left: -", "px;\n }\n"], ["\n padding: 0;\n margin-top: -", "px;\n margin-left: -", "px;\n list-style: none;\n\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: center;\n flex-wrap: wrap;\n\n @media ", " {\n margin-top: -", "px;\n margin-left: -", "px;\n }\n"])), spacings.nudge * 2, spacings.nudge * 2, mq.medium, spacings.spacer, spacings.spacer);
639
- var CardItem = styled.li.withConfig({
640
- displayName: "CardList__CardItem",
641
- componentId: "sc-179ugoh-12"
642
- })(templateObject_15 || (templateObject_15 = __makeTemplateObject(["\n padding-top: ", "px;\n padding-left: ", "px;\n\n width: 100%;\n\n @media ", " {\n flex: 0 0 50%;\n max-width: 370px;\n padding-top: ", "px;\n padding-left: ", "px;\n }\n\n @media ", " {\n flex: 0 0 33.33%;\n }\n\n @media (min-width: 75em) {\n flex: ", ";\n }\n"], ["\n padding-top: ", "px;\n padding-left: ", "px;\n\n width: 100%;\n\n @media ", " {\n flex: 0 0 50%;\n max-width: 370px;\n padding-top: ", "px;\n padding-left: ", "px;\n }\n\n @media ", " {\n flex: 0 0 33.33%;\n }\n\n @media (min-width: 75em) {\n flex: ", ";\n }\n"])), spacings.nudge * 2, spacings.nudge * 2, mq.medium, spacings.spacer, spacings.spacer, mq.semilarge, function (_a) {
643
- var isEqual = _a.isEqual,
644
- threeCols = _a.threeCols;
645
- return threeCols ? '0 0 33.33%' : isEqual && '0 0 25%';
646
- });
647
-
648
- var CardList$1 = function (_a) {
649
- var anchorId = _a.anchorId,
650
- items = _a.items,
651
- bgMode = _a.bgMode,
652
- decorator = _a.decorator,
653
- maxThreeCols = _a.maxThreeCols;
654
- var colors = useLibTheme().colors;
655
- var isInverted = bgMode === 'inverted';
656
- return React__default.createElement(Section, {
657
- anchorId: anchorId,
658
- bgColor: isInverted ? colors.sectionBg.dark : bgMode ? colors.sectionBg.medium : colors.sectionBg.light,
659
- bgMode: mapToBgMode(bgMode, true),
660
- addSeperation: true
661
- }, React__default.createElement(Wrapper, {
662
- addWhitespace: true
663
- }, React__default.createElement(List$2, null, items === null || items === void 0 ? void 0 : items.map(function (item, i) {
664
- return React__default.createElement(CardItem, {
665
- key: i,
666
- isEqual: items.length % 2 === 0,
667
- threeCols: maxThreeCols
668
- }, React__default.createElement(Card$2, __assign({}, item, {
669
- isInverted: isInverted,
670
- decorator: decorator
671
- })));
672
- }))));
673
- };
674
- var CardList$2 = withLibTheme(CardList$1);
675
- var templateObject_1$s, templateObject_2$n, templateObject_3$k, templateObject_4$i, templateObject_5$g, templateObject_6$c, templateObject_7$9, templateObject_8$3, templateObject_9$3, templateObject_10$3, templateObject_11$3, templateObject_12$3, templateObject_13$1, templateObject_14$1, templateObject_15;
676
-
677
- var clamp = function (num, min, max) {
678
- return Math.min(Math.max(num, min), max);
679
- };
680
-
681
- var Images = styled.div.withConfig({
682
- displayName: "ComparisonSlider__Images",
683
- componentId: "sc-4f3ic1-0"
684
- })(templateObject_1$r || (templateObject_1$r = __makeTemplateObject(["\n position: relative;\n cursor: col-resize;\n & > * {\n pointer-events: none;\n user-select: none;\n }\n"], ["\n position: relative;\n cursor: col-resize;\n & > * {\n pointer-events: none;\n user-select: none;\n }\n"])));
685
- var BackgroundImg = styled(Image).withConfig({
686
- displayName: "ComparisonSlider__BackgroundImg",
687
- componentId: "sc-4f3ic1-1"
688
- })(templateObject_2$m || (templateObject_2$m = __makeTemplateObject(["\n position: relative;\n display: block;\n width: 100%;\n"], ["\n position: relative;\n display: block;\n width: 100%;\n"])));
689
- var ForegroundContainer = styled.div.withConfig({
690
- displayName: "ComparisonSlider__ForegroundContainer",
691
- componentId: "sc-4f3ic1-2"
692
- })(templateObject_4$h || (templateObject_4$h = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 50%;\n overflow: hidden;\n transition: width ", "s\n ease-in-out;\n ", "\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n width: 50%;\n overflow: hidden;\n transition: width ", "s\n ease-in-out;\n ", "\n"])), function (_a) {
693
- var hasTransition = _a.hasTransition;
694
- return hasTransition ? 0.1 : 0;
695
- }, function (_a) {
696
- var hasAnim = _a.hasAnim,
697
- initalValue = _a.initalValue;
698
- return hasAnim && css(templateObject_3$j || (templateObject_3$j = __makeTemplateObject(["\n animation-name: ForegroundAnim;\n animation-duration: 5s;\n animation-iteration-count: 1;\n animation-play-state: ", ";\n animation-timing-function: ease-in-out;\n @keyframes ForegroundAnim {\n 0% {\n width: ", ";\n }\n 33% {\n width: ", ";\n }\n 66% {\n width: ", ";\n }\n 100% {\n width: ", ";\n }\n }\n "], ["\n animation-name: ForegroundAnim;\n animation-duration: 5s;\n animation-iteration-count: 1;\n animation-play-state: ", ";\n animation-timing-function: ease-in-out;\n @keyframes ForegroundAnim {\n 0% {\n width: ", ";\n }\n 33% {\n width: ", ";\n }\n 66% {\n width: ", ";\n }\n 100% {\n width: ", ";\n }\n }\n "])), hasAnim && 'running', initalValue ? clamp(initalValue * 100, 0, 100) + '%' : '50%', initalValue ? clamp(initalValue * 100 + 10, 0, 100) + '%' : '60%', initalValue ? clamp(initalValue * 100 - 10, 0, 100) + '%' : '40%', initalValue ? initalValue * 100 + '%' : '50%');
699
- });
700
- var ForegroundImg = styled(Image).withConfig({
701
- displayName: "ComparisonSlider__ForegroundImg",
702
- componentId: "sc-4f3ic1-3"
703
- })(templateObject_5$f || (templateObject_5$f = __makeTemplateObject(["\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n height: 100%;\n max-width: none;\n object-fit: cover;\n\n img {\n height: auto;\n width: auto;\n }\n"], ["\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n height: 100%;\n max-width: none;\n object-fit: cover;\n\n img {\n height: auto;\n width: auto;\n }\n"])));
704
- var ForegroundOverlay = styled.div.withConfig({
705
- displayName: "ComparisonSlider__ForegroundOverlay",
706
- componentId: "sc-4f3ic1-4"
707
- })(templateObject_6$b || (templateObject_6$b = __makeTemplateObject(["\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: ", ";\n"], ["\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background-color: ", ";\n"])), function (_a) {
708
- var color = _a.color;
709
- return color;
710
- });
711
- var ImageLabel = styled(Copy).withConfig({
712
- displayName: "ComparisonSlider__ImageLabel",
713
- componentId: "sc-4f3ic1-5"
714
- })(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject(["\n height: ", "px;\n padding: ", "px ", "px ", "px\n ", "px;\n background: ", ";\n"], ["\n height: ", "px;\n padding: ", "px ", "px ", "px\n ", "px;\n background: ", ";\n"])), spacings.spacer, spacings.nudge, spacings.spacer, spacings.spacer, spacings.spacer, function (_a) {
715
- var bgColor = _a.bgColor;
716
- return bgColor && bgColor;
717
- });
718
- var ForegroundLabel = styled(ImageLabel).withConfig({
719
- displayName: "ComparisonSlider__ForegroundLabel",
720
- componentId: "sc-4f3ic1-6"
721
- })(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject(["\n position: absolute;\n bottom: ", "px;\n left: ", "px;\n pointer-events: none;\n white-space: nowrap;\n"], ["\n position: absolute;\n bottom: ", "px;\n left: ", "px;\n pointer-events: none;\n white-space: nowrap;\n"])), spacings.spacer, spacings.spacer);
722
- var BackgroundLabel = styled(ImageLabel).withConfig({
723
- displayName: "ComparisonSlider__BackgroundLabel",
724
- componentId: "sc-4f3ic1-7"
725
- })(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject(["\n position: absolute;\n bottom: ", "px;\n right: ", "px;\n pointer-events: none;\n white-space: nowrap;\n"], ["\n position: absolute;\n bottom: ", "px;\n right: ", "px;\n pointer-events: none;\n white-space: nowrap;\n"])), spacings.spacer, spacings.spacer);
726
- var ControlContainer = styled.div.withConfig({
727
- displayName: "ComparisonSlider__ControlContainer",
728
- componentId: "sc-4f3ic1-8"
729
- })(templateObject_11$2 || (templateObject_11$2 = __makeTemplateObject(["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: left ", "s\n ease-in-out;\n ", "\n"], ["\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n transition: left ", "s\n ease-in-out;\n ", "\n"])), function (_a) {
730
- var hasTransition = _a.hasTransition;
731
- return hasTransition ? 0.1 : 0;
732
- }, function (_a) {
733
- var hasAnim = _a.hasAnim,
734
- initalValue = _a.initalValue;
735
- return hasAnim && css(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject(["\n animation-name: ControlAnim;\n animation-duration: 5s;\n animation-iteration-count: 1;\n animation-play-state: ", ";\n animation-timing-function: ease-in-out;\n @keyframes ControlAnim {\n 0% {\n left: ", ";\n }\n 33% {\n left: ", ";\n }\n 66% {\n left: ", ";\n }\n 100% {\n left: ", ";\n }\n }\n "], ["\n animation-name: ControlAnim;\n animation-duration: 5s;\n animation-iteration-count: 1;\n animation-play-state: ", ";\n animation-timing-function: ease-in-out;\n @keyframes ControlAnim {\n 0% {\n left: ", ";\n }\n 33% {\n left: ", ";\n }\n 66% {\n left: ", ";\n }\n 100% {\n left: ", ";\n }\n }\n "])), hasAnim && 'running', initalValue ? clamp(initalValue * 100, 0, 100) + '%' : '50%', initalValue ? clamp(initalValue * 100 + 10, 0, 100) + '%' : '60%', initalValue ? clamp(initalValue * 100 - 10, 0, 100) + '%' : '40%', initalValue ? initalValue * 100 + '%' : '50%');
736
- });
737
- var Control = styled.div.withConfig({
738
- displayName: "ComparisonSlider__Control",
739
- componentId: "sc-4f3ic1-9"
740
- })(templateObject_12$2 || (templateObject_12$2 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n align-items: center;\n height: 54px;\n width: 54px;\n border: solid 2px ", ";\n border-radius: 50%;\n background-color: ", ";\n"], ["\n display: flex;\n justify-content: center;\n align-items: center;\n height: 54px;\n width: 54px;\n border: solid 2px ", ";\n border-radius: 50%;\n background-color: ", ";\n"])), function (_a) {
741
- var theme = _a.theme;
742
- return getColors(theme).elementBg.light;
743
- }, function (_a) {
744
- var theme = _a.theme;
745
- return getColors(theme).elementBg.medium;
746
- });
747
-
748
- var ComparisonSlider = function (_a) {
749
- var anchorId = _a.anchorId,
750
- bgMode = _a.bgMode,
751
- initialValue = _a.initialValue,
752
- foregroundImg = _a.foregroundImg,
753
- backgroundImg = _a.backgroundImg,
754
- foregroundLabel = _a.foregroundLabel,
755
- backgroundLabel = _a.backgroundLabel,
756
- _b = _a.overlayColor,
757
- overlayColor = _b === void 0 ? 'rgba(0, 0 , 0, 0.2)' : _b,
758
- _c = _a.labelColor,
759
- labelColor = _c === void 0 ? 'rgba(0, 0 , 0, 0.3)' : _c,
760
- dragControl = _a.dragControl,
761
- enableControlAnim = _a.enableControlAnim;
762
- var isIE = useIE(true);
763
-
764
- var _d = useState(initialValue ? Math.min(Math.max(initialValue, 0), 1) : 0.5),
765
- slideValue = _d[0],
766
- setSlideValue = _d[1];
767
-
768
- var _e = useState(false),
769
- isHolding = _e[0],
770
- setIsHolding = _e[1];
771
-
772
- var _f = useState(false),
773
- isDragging = _f[0],
774
- setIsDragging = _f[1];
775
-
776
- var _g = useState(true),
777
- interacted = _g[0],
778
- setInteracted = _g[1];
779
-
780
- var _h = useState(0),
781
- sideOffset = _h[0],
782
- setSideOffset = _h[1];
783
-
784
- var controlRef = useRef(null);
785
- var colors = useLibTheme().colors;
786
- useEffect(function () {
787
- if (controlRef.current) {
788
- setSideOffset(controlRef.current.offsetWidth / 2);
789
- }
790
- }, []);
791
- useEffect(function () {
792
- var handleInitalLoad = function () {
793
- var options = {
794
- rootMargin: '0px',
795
- threshold: 1.0
796
- };
797
- var observer = new IntersectionObserver(function (entries, observer) {
798
- var _a, _b;
799
-
800
- if (enableControlAnim && ((_a = entries[0]) === null || _a === void 0 ? void 0 : _a.isIntersecting)) {
801
- // if control is first fully visible
802
- observer.unobserve((_b = entries[0]) === null || _b === void 0 ? void 0 : _b.target);
803
- setInteracted(false);
804
- }
805
- }, options);
806
- if (controlRef.current) observer.observe(controlRef.current);
807
- window.removeEventListener('load', handleInitalLoad);
808
- }; // wait unitl user has scrolled once
809
-
810
-
811
- if (!isIE) {
812
- if (document.readyState === 'complete') handleInitalLoad();else window.addEventListener('load', handleInitalLoad);
813
- }
814
-
815
- return function () {
816
- window.removeEventListener('load', handleInitalLoad);
817
- };
818
- }, [enableControlAnim, isIE]);
819
-
820
- var setCurrentPos = function (target, clientX) {
821
- if (target && clientX) {
822
- var relativeClientX = clientX - target.getBoundingClientRect().x; // check side offset
823
-
824
- if (relativeClientX >= sideOffset && relativeClientX <= target.getBoundingClientRect().width - sideOffset) {
825
- var percentage = relativeClientX / target.getBoundingClientRect().width;
826
- percentage = Math.min(Math.max(percentage, 0), 1);
827
- setSlideValue(percentage);
828
- }
829
- }
830
- };
831
-
832
- var handleClick = function (ev) {
833
- var target = ev.currentTarget;
834
-
835
- if (target && ev.clientX) {
836
- setCurrentPos(target, ev.clientX);
837
- setInteracted(true);
838
- }
839
- };
840
-
841
- var handleMouseMove = function (ev) {
842
- var target = ev.currentTarget;
843
-
844
- if (target && ev.clientX && isHolding) {
845
- setIsDragging(true);
846
- setInteracted(true);
847
- if (isDragging) setCurrentPos(target, ev.clientX);
848
- }
849
- };
850
-
851
- var handleTouchMove = function (ev) {
852
- var _a, _b;
853
-
854
- var target = ev.currentTarget;
855
-
856
- if (target && ((_a = ev.touches[0]) === null || _a === void 0 ? void 0 : _a.clientX)) {
857
- setInteracted(true);
858
- setCurrentPos(target, (_b = ev.touches[0]) === null || _b === void 0 ? void 0 : _b.clientX);
859
- }
860
- };
861
-
862
- var isInverted = bgMode === 'inverted';
863
- return React__default.createElement(Section, {
864
- addSeperation: true,
865
- anchorId: anchorId,
866
- bgColor: isInverted ? colors.sectionBg.dark : bgMode ? colors.sectionBg.medium : colors.sectionBg.light,
867
- bgMode: mapToBgMode(bgMode)
868
- }, React__default.createElement(Wrapper, null, backgroundImg && foregroundImg && React__default.createElement(Images, {
869
- onClick: handleClick,
870
- onMouseMove: handleMouseMove,
871
- onMouseDown: function () {
872
- setIsDragging(false);
873
- setIsHolding(true);
874
- },
875
- onMouseUp: function () {
876
- setIsDragging(false);
877
- setIsHolding(false);
878
- },
879
- onMouseLeave: function () {
880
- setIsHolding(false);
881
- setIsDragging(false);
882
- },
883
- onTouchMove: handleTouchMove,
884
- onTouchStart: function () {
885
- return setIsHolding(true);
886
- },
887
- onTouchEnd: function () {
888
- return setIsHolding(false);
889
- }
890
- }, React__default.createElement(BackgroundImg, __assign({}, backgroundImg)), backgroundLabel && React__default.createElement(BackgroundLabel, {
891
- textColor: colors.text.inverted,
892
- bgColor: labelColor
893
- }, backgroundLabel), React__default.createElement(ForegroundContainer, {
894
- hasTransition: !isHolding,
895
- hasAnim: !interacted,
896
- initalValue: initialValue,
897
- style: {
898
- width: slideValue * 100 + '%'
899
- }
900
- }, React__default.createElement(ForegroundImg, __assign({}, foregroundImg)), foregroundLabel && React__default.createElement(ForegroundLabel, {
901
- textColor: colors.text.inverted,
902
- bgColor: labelColor
903
- }, foregroundLabel), React__default.createElement(ForegroundOverlay, {
904
- color: overlayColor
905
- })), React__default.createElement(ControlContainer, {
906
- ref: controlRef,
907
- hasTransition: !isHolding,
908
- hasAnim: !interacted,
909
- initalValue: initialValue,
910
- style: {
911
- left: slideValue * 100 + '%'
912
- }
913
- }, dragControl ? dragControl : React__default.createElement(Control, null, React__default.createElement(ArrowLeftRight, {
914
- iconColor: colors.elementBg.light
915
- }))))));
916
- };
917
- var ComparisonSlider$1 = withLibTheme(ComparisonSlider);
918
- var templateObject_1$r, templateObject_2$m, templateObject_3$j, templateObject_4$h, templateObject_5$f, templateObject_6$b, templateObject_7$8, templateObject_8$2, templateObject_9$2, templateObject_10$2, templateObject_11$2, templateObject_12$2;
919
-
920
- var View$6 = styled(Link).withConfig({
921
- displayName: "PromotionCard__View",
922
- componentId: "sc-1p1egy3-0"
923
- })(templateObject_2$l || (templateObject_2$l = __makeTemplateObject(["\n display: block;\n position: relative;\n width: 100%;\n border-radius: ", ";\n overflow: hidden;\n outline: none;\n\n &:after {\n content: '';\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background: ", ";\n pointer-events: none;\n }\n\n ", "\n"], ["\n display: block;\n position: relative;\n width: 100%;\n border-radius: ", ";\n overflow: hidden;\n outline: none;\n\n &:after {\n content: '';\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background: ", ";\n pointer-events: none;\n }\n\n ", "\n"])), function (_a) {
924
- var theme = _a.theme;
925
- return getGlobals(theme).sections.edgeRadius;
926
- }, function (_a) {
927
- var theme = _a.theme;
928
- return getGlobals(theme).sections.imageTextGradient;
929
- }, function (_a) {
930
- var clickable = _a.clickable,
931
- theme = _a.theme,
932
- isInverted = _a.isInverted;
933
- return clickable && css(templateObject_1$q || (templateObject_1$q = __makeTemplateObject(["\n transition: box-shadow 0.2s ease-in-out;\n cursor: pointer;\n\n &:hover {\n box-shadow: 0 2px 24px 0 rgba(0, 0, 0, 0.35);\n }\n\n &:focus {\n box-shadow: 0 2px 24px 0 rgba(0, 0, 0, 0.35);\n outline: solid 2px\n ", ";\n outline-offset: 4px;\n\n color: ", ";\n }\n\n &:focus:not(:focus-visible) {\n outline: none;\n box-shadow: none;\n }\n "], ["\n transition: box-shadow 0.2s ease-in-out;\n cursor: pointer;\n\n &:hover {\n box-shadow: 0 2px 24px 0 rgba(0, 0, 0, 0.35);\n }\n\n &:focus {\n box-shadow: 0 2px 24px 0 rgba(0, 0, 0, 0.35);\n outline: solid 2px\n ", ";\n outline-offset: 4px;\n\n color: ", ";\n }\n\n &:focus:not(:focus-visible) {\n outline: none;\n box-shadow: none;\n }\n "])), isInverted ? getColors(theme).primary.inverted : getColors(theme).primary.default, isInverted ? getColors(theme).primary.invertedHover : getColors(theme).primary.hover);
934
- });
935
- var StyledImage$8 = styled(Image).withConfig({
936
- displayName: "PromotionCard__StyledImage",
937
- componentId: "sc-1p1egy3-1"
938
- })(templateObject_3$i || (templateObject_3$i = __makeTemplateObject(["\n width: 100%;\n height: 100%;\n min-height: 300px;\n\n img {\n height: 100%;\n }\n"], ["\n width: 100%;\n height: 100%;\n min-height: 300px;\n\n img {\n height: 100%;\n }\n"])));
939
- var IntroContainer = styled.div.withConfig({
940
- displayName: "PromotionCard__IntroContainer",
941
- componentId: "sc-1p1egy3-2"
942
- })(templateObject_4$g || (templateObject_4$g = __makeTemplateObject(["\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow: auto;\n z-index: 1;\n\n padding: ", "px ", "px;\n\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n\n /* required to align items at flex-end in ie11 */\n &:before {\n content: '';\n display: block;\n flex: 1 0 0px;\n }\n\n @media ", " {\n padding: ", "px ", "px;\n }\n"], ["\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n overflow: auto;\n z-index: 1;\n\n padding: ", "px ", "px;\n\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n align-items: flex-start;\n\n /* required to align items at flex-end in ie11 */\n &:before {\n content: '';\n display: block;\n flex: 1 0 0px;\n }\n\n @media ", " {\n padding: ", "px ", "px;\n }\n"])), spacings.spacer, spacings.nudge * 3, mq.medium, spacings.nudge * 5, spacings.spacer);
943
- var StyledTitle = styled(Title$6).withConfig({
944
- displayName: "PromotionCard__StyledTitle",
945
- componentId: "sc-1p1egy3-3"
946
- })(templateObject_5$e || (templateObject_5$e = __makeTemplateObject(["\n max-width: ", ";\n"], ["\n max-width: ", ";\n"])), function (_a) {
947
- var clampTitle = _a.clampTitle;
948
- return clampTitle && 13 / 28 * spacings.wrapper + 'px';
949
- });
950
- var ExternalIconHolder = styled.span.withConfig({
951
- displayName: "PromotionCard__ExternalIconHolder",
952
- componentId: "sc-1p1egy3-4"
953
- })(templateObject_6$a || (templateObject_6$a = __makeTemplateObject(["\n margin-left: ", "px;\n\n & > * {\n display: inline-block;\n }\n"], ["\n margin-left: ", "px;\n\n & > * {\n display: inline-block;\n }\n"])), spacings.nudge * 2);
954
- var Icon$2 = styled.div.withConfig({
955
- displayName: "PromotionCard__Icon",
956
- componentId: "sc-1p1egy3-5"
957
- })(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject(["\n ", ";\n ", ";\n\n position: absolute;\n top: ", "px;\n left: ", "px;\n\n & > * {\n ", ";\n ", ";\n }\n\n color: ", ";\n"], ["\n ", ";\n ", ";\n\n position: absolute;\n top: ", "px;\n left: ", "px;\n\n & > * {\n ", ";\n ", ";\n }\n\n color: ", ";\n"])), withRange([60, 100], 'height'), withRange([60, 100], 'width'), spacings.nudge * 3, spacings.nudge * 3, withRange([60, 100], 'height'), withRange([60, 100], 'width'), function (_a) {
958
- var theme = _a.theme;
959
- return getColors(theme).text.inverted;
960
- });
961
- var PromotionCard = forwardRef(function (_a, ref) {
962
- var isInverted = _a.isInverted,
963
- image = _a.image,
964
- title = _a.title,
965
- titleAs = _a.titleAs,
966
- superTitle = _a.superTitle,
967
- superTitleAs = _a.superTitleAs,
968
- href = _a.href,
969
- link = _a.link,
970
- externalLinkIcon = _a.externalLinkIcon,
971
- icon = _a.icon,
972
- className = _a.className; // fallback for older versions
973
-
974
- var linkObj = link;
975
-
976
- if (href && !link) {
977
- linkObj = {
978
- href: href,
979
- isExternal: false
980
- };
981
- }
982
-
983
- var externalIconString = ReactDOMServer.renderToString(React__default.createElement(ExternalIconHolder, null, externalLinkIcon || React__default.createElement(External, null)));
984
- return React__default.createElement(View$6, __assign({
985
- ref: ref,
986
- clickable: !!href || !!link
987
- }, linkObj, {
988
- className: className
989
- }), React__default.createElement(StyledImage$8, __assign({}, image, {
990
- isInverted: isInverted,
991
- coverSpace: true
992
- })), icon && React__default.createElement(Icon$2, null, icon({
993
- isInverted: isInverted
994
- })), title && React__default.createElement(IntroContainer, null, React__default.createElement(StyledTitle, {
995
- colorMode: "onImage",
996
- superTitle: superTitle,
997
- superTitleAs: superTitleAs,
998
- title: (linkObj === null || linkObj === void 0 ? void 0 : linkObj.isExternal) ? title + externalIconString : title,
999
- titleAs: titleAs || 'div',
1000
- clampTitle: true
1001
- })));
1002
- });
1003
- PromotionCard.displayName = 'PromotionCard';
1004
- var templateObject_1$q, templateObject_2$l, templateObject_3$i, templateObject_4$g, templateObject_5$e, templateObject_6$a, templateObject_7$7;
1005
-
1006
- var Card$1 = styled(PromotionCard).withConfig({
1007
- displayName: "CrossPromotion__Card",
1008
- componentId: "sc-1jmsp4-0"
1009
- })(templateObject_1$p || (templateObject_1$p = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n\n height: ", ";\n\n flex: 1 0 auto;\n\n & + & {\n margin-top: ", "px;\n }\n"], ["\n display: flex;\n flex-direction: row;\n flex-wrap: nowrap;\n\n height: ", ";\n\n flex: 1 0 auto;\n\n & + & {\n margin-top: ", "px;\n }\n"])), function (_a) {
1010
- var isMain = _a.isMain;
1011
- return isMain && '100%';
1012
- }, gridSettings.gutter);
1013
-
1014
- var CrossPromotion = function (_a) {
1015
- var anchorId = _a.anchorId,
1016
- main = _a.main,
1017
- aside = _a.aside,
1018
- bgMode = _a.bgMode,
1019
- isMirrored = _a.isMirrored,
1020
- externalLinkIcon = _a.externalLinkIcon;
1021
- var colors = useLibTheme().colors;
1022
- var isInverted = bgMode === 'inverted';
1023
- return React.createElement(Section, {
1024
- addSeperation: true,
1025
- anchorId: anchorId,
1026
- bgColor: isInverted ? colors.sectionBg.dark : bgMode ? colors.sectionBg.medium : colors.sectionBg.light,
1027
- bgMode: mapToBgMode(bgMode, false, isMirrored)
1028
- }, React.createElement(Wrapper, {
1029
- clampWidth: "normal",
1030
- addWhitespace: true
1031
- }, aside ? isMirrored ? React.createElement(Grid.Row, null, React.createElement(Grid.Col, {
1032
- semilarge: {
1033
- span: 6 / 12
1034
- }
1035
- }, main && main.map(function (card, i) {
1036
- return React.createElement(Card$1, __assign({
1037
- key: i,
1038
- isMain: true
1039
- }, card, {
1040
- externalLinkIcon: externalLinkIcon,
1041
- isInverted: isInverted
1042
- }));
1043
- })), React.createElement(Grid.Col, {
1044
- semilarge: {
1045
- span: 6 / 12
1046
- }
1047
- }, aside.map(function (card, i) {
1048
- return React.createElement(Card$1, __assign({
1049
- key: i
1050
- }, card, {
1051
- externalLinkIcon: externalLinkIcon,
1052
- isInverted: isInverted
1053
- }));
1054
- }))) : React.createElement(Grid.Row, null, React.createElement(Grid.Col, {
1055
- semilarge: {
1056
- span: 6 / 12
1057
- }
1058
- }, aside.map(function (card, i) {
1059
- return React.createElement(Card$1, __assign({
1060
- key: i
1061
- }, card, {
1062
- externalLinkIcon: externalLinkIcon,
1063
- isInverted: isInverted
1064
- }));
1065
- })), React.createElement(Grid.Col, {
1066
- semilarge: {
1067
- span: 6 / 12
1068
- }
1069
- }, main && main.map(function (card, i) {
1070
- return React.createElement(Card$1, __assign({
1071
- key: i,
1072
- isMain: true
1073
- }, card, {
1074
- externalLinkIcon: externalLinkIcon,
1075
- isInverted: isInverted
1076
- }));
1077
- }))) : main && React.createElement(Grid.Row, null, main.map(function (card, i) {
1078
- return React.createElement(Grid.Col, {
1079
- semilarge: {
1080
- span: (card.size === 'half' ? 6 : 12) / 12
1081
- },
1082
- key: i
1083
- }, React.createElement(Card$1, __assign({
1084
- key: i
1085
- }, card, {
1086
- externalLinkIcon: externalLinkIcon,
1087
- isInverted: isInverted
1088
- })));
1089
- }))));
1090
- };
1091
- var CrossPromotion$1 = withLibTheme(CrossPromotion);
1092
- var templateObject_1$p;
1093
-
1094
- var View$5 = styled.div.withConfig({
1095
- displayName: "Fact__View",
1096
- componentId: "sc-elpxk2-0"
1097
- })(templateObject_1$o || (templateObject_1$o = __makeTemplateObject([""], [""])));
1098
- var ImageContainer$2 = styled.div.withConfig({
1099
- displayName: "Fact__ImageContainer",
1100
- componentId: "sc-elpxk2-1"
1101
- })(templateObject_2$k || (templateObject_2$k = __makeTemplateObject(["\n display: flex;\n justify-content: ", ";\n margin-bottom: ", "px;\n max-width: 100%;\n"], ["\n display: flex;\n justify-content: ", ";\n margin-bottom: ", "px;\n max-width: 100%;\n"])), function (_a) {
1102
- var isCentered = _a.isCentered;
1103
- return isCentered ? 'center' : 'flex-start';
1104
- }, spacings.nudge * 3);
1105
- var StyledImage$7 = styled(Image).withConfig({
1106
- displayName: "Fact__StyledImage",
1107
- componentId: "sc-elpxk2-2"
1108
- })(templateObject_3$h || (templateObject_3$h = __makeTemplateObject(["\n overflow: hidden;\n border-radius: ", ";\n"], ["\n overflow: hidden;\n border-radius: ", ";\n"])), function (_a) {
1109
- var theme = _a.theme;
1110
- return getGlobals(theme).sections.edgeRadius;
1111
- });
1112
- var Content$4 = styled.div.withConfig({
1113
- displayName: "Fact__Content",
1114
- componentId: "sc-elpxk2-3"
1115
- })(templateObject_4$f || (templateObject_4$f = __makeTemplateObject(["\n text-align: ", ";\n\n & > * + * {\n margin-top: ", "px;\n }\n"], ["\n text-align: ", ";\n\n & > * + * {\n margin-top: ", "px;\n }\n"])), function (_a) {
1116
- var isCentered = _a.isCentered;
1117
- return isCentered && 'center';
1118
- }, spacings.nudge * 3);
1119
- var Title$3 = styled(Copy).withConfig({
1120
- displayName: "Fact__Title",
1121
- componentId: "sc-elpxk2-4"
1122
- })(templateObject_5$d || (templateObject_5$d = __makeTemplateObject([""], [""])));
1123
- var SubTitle = styled(Copy).withConfig({
1124
- displayName: "Fact__SubTitle",
1125
- componentId: "sc-elpxk2-5"
1126
- })(templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject([""], [""])));
1127
- var Text$4 = styled(Copy).withConfig({
1128
- displayName: "Fact__Text",
1129
- componentId: "sc-elpxk2-6"
1130
- })(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject(["\n ", " + & {\n margin-top: ", "px;\n }\n"], ["\n ", " + & {\n margin-top: ", "px;\n }\n"])), SubTitle, spacings.nudge);
1131
- var Fact = forwardRef(function (_a, ref) {
1132
- var _b = _a.isInverted,
1133
- isInverted = _b === void 0 ? false : _b,
1134
- _c = _a.isCentered,
1135
- isCentered = _c === void 0 ? false : _c,
1136
- title = _a.title,
1137
- subTitle = _a.subTitle,
1138
- text = _a.text,
1139
- image = _a.image,
1140
- className = _a.className;
1141
- return React__default.createElement(View$5, {
1142
- ref: ref,
1143
- className: className
1144
- }, (image === null || image === void 0 ? void 0 : image.small) && React__default.createElement(ImageContainer$2, {
1145
- isCentered: isCentered
1146
- }, React__default.createElement(StyledImage$7, {
1147
- isInverted: isInverted,
1148
- small: image.small,
1149
- medium: image.medium,
1150
- semilarge: image.semilarge,
1151
- large: image.large,
1152
- xlarge: image.xlarge,
1153
- alt: image.alt,
1154
- coverSpace: image.coverSpace,
1155
- ratios: image.ratios,
1156
- showPlaceholder: image.showPlaceholder
1157
- })), React__default.createElement(Content$4, {
1158
- isCentered: isCentered
1159
- }, title && React__default.createElement(Title$3, {
1160
- type: "copy-b",
1161
- size: "big",
1162
- isInverted: isInverted,
1163
- "data-sheet": "title"
1164
- }, title), subTitle && React__default.createElement(SubTitle, {
1165
- type: "copy-b",
1166
- isInverted: isInverted,
1167
- "data-sheet": "subtitle"
1168
- }, subTitle), text && React__default.createElement(Text$4, {
1169
- type: "copy",
1170
- isInverted: isInverted,
1171
- "data-sheet": "text",
1172
- innerHTML: text
1173
- })));
1174
- });
1175
- Fact.displayName = 'Fact';
1176
- var templateObject_1$o, templateObject_2$k, templateObject_3$h, templateObject_4$f, templateObject_5$d, templateObject_6$9, templateObject_7$6;
1177
-
1178
- var FactFill = styled.div.withConfig({
1179
- displayName: "FactGrid__FactFill",
1180
- componentId: "sc-114y2fo-0"
1181
- })(templateObject_1$n || (templateObject_1$n = __makeTemplateObject(["\n display: none;\n\n @media ", " {\n display: block;\n }\n"], ["\n display: none;\n\n @media ", " {\n display: block;\n }\n"])), mq.large);
1182
-
1183
- var FactGrid = function (_a) {
1184
- var anchorId = _a.anchorId,
1185
- _b = _a.columns,
1186
- columns = _b === void 0 ? 3 : _b,
1187
- facts = _a.facts,
1188
- bgMode = _a.bgMode,
1189
- isCentered = _a.isCentered;
1190
- var colors = useLibTheme().colors;
1191
- var factCount = (facts === null || facts === void 0 ? void 0 : facts.length) || 0;
1192
- var isInverted = bgMode === 'inverted';
1193
- var cardRefs = useEqualSheetHeight({
1194
- listLength: factCount,
1195
- identifiers: ['[data-sheet="title"]', '[data-sheet="subtitle"]'],
1196
- responsive: {
1197
- small: 1,
1198
- medium: columns < 3 ? columns : 3,
1199
- semilarge: columns < 4 ? columns : 4,
1200
- large: columns,
1201
- xlarge: columns
1202
- }
1203
- }).sheetRefs;
1204
- return React__default.createElement(Section, {
1205
- addSeperation: true,
1206
- anchorId: anchorId,
1207
- bgColor: isInverted ? colors.sectionBg.dark : bgMode ? colors.sectionBg.medium : colors.sectionBg.light,
1208
- bgMode: mapToBgMode(bgMode)
1209
- }, React__default.createElement(Wrapper, {
1210
- clampWidth: "normal",
1211
- addWhitespace: true
1212
- }, React__default.createElement(Grid.Row, null, facts && facts.map(function (fact, i) {
1213
- if ((fact === null || fact === void 0 ? void 0 : fact.title) || (fact === null || fact === void 0 ? void 0 : fact.subTitle) || (fact === null || fact === void 0 ? void 0 : fact.image) || (fact === null || fact === void 0 ? void 0 : fact.text)) {
1214
- return React__default.createElement(Grid.Col, {
1215
- key: i,
1216
- medium: {
1217
- span: 4 / 12
1218
- },
1219
- semilarge: columns > 3 ? {
1220
- span: 3 / 12
1221
- } : {
1222
- span: 4 / 12
1223
- },
1224
- large: {
1225
- span: 12 / columns / 12
1226
- }
1227
- }, React__default.createElement(Fact, __assign({
1228
- key: i,
1229
- ref: cardRefs[i]
1230
- }, fact, {
1231
- isCentered: isCentered,
1232
- isInverted: isInverted
1233
- })));
1234
- } else {
1235
- return React__default.createElement(Grid.Col, {
1236
- key: i,
1237
- medium: {
1238
- span: 4 / 12
1239
- },
1240
- semilarge: columns > 3 ? {
1241
- span: 3 / 12
1242
- } : {
1243
- span: 4 / 12
1244
- },
1245
- large: {
1246
- span: 12 / columns / 12
1247
- }
1248
- }, React__default.createElement(FactFill, {
1249
- ref: cardRefs[i],
1250
- key: i
1251
- }));
1252
- }
1253
- }))));
1254
- };
1255
- var FactGrid$1 = withLibTheme(FactGrid);
1256
- var templateObject_1$n;
1257
-
1258
- var FactsContainer = styled.ul.withConfig({
1259
- displayName: "FactList__FactsContainer",
1260
- componentId: "sc-elh0vj-0"
1261
- })(templateObject_1$m || (templateObject_1$m = __makeTemplateObject(["\n padding: 0;\n margin: 0;\n\n list-style-type: none;\n\n & > * + * {\n margin-top: ", "px;\n }\n"], ["\n padding: 0;\n margin: 0;\n\n list-style-type: none;\n\n & > * + * {\n margin-top: ", "px;\n }\n"])), spacings.nudge);
1262
- var FactItem = styled.li.withConfig({
1263
- displayName: "FactList__FactItem",
1264
- componentId: "sc-elh0vj-1"
1265
- })(templateObject_2$j || (templateObject_2$j = __makeTemplateObject(["\n padding: ", "px;\n\n background: ", ";\n\n display: flex;\n flex-direction: row;\n align-items: ", ";\n\n @media ", " {\n padding: ", "px;\n }\n"], ["\n padding: ", "px;\n\n background: ", ";\n\n display: flex;\n flex-direction: row;\n align-items: ", ";\n\n @media ", " {\n padding: ", "px;\n }\n"])), spacings.nudge * 2, function (_a) {
1266
- var theme = _a.theme,
1267
- hasBack = _a.hasBack;
1268
- return hasBack ? getColors(theme).elementBg.light : getColors(theme).elementBg.medium;
1269
- }, function (_a) {
1270
- var hasText = _a.hasText;
1271
- return hasText ? 'flex-start' : 'center';
1272
- }, mq.medium, spacings.nudge * 3);
1273
- var Icon$1 = styled.img.withConfig({
1274
- displayName: "FactList__Icon",
1275
- componentId: "sc-elh0vj-2"
1276
- })(templateObject_3$g || (templateObject_3$g = __makeTemplateObject(["\n margin-right: ", "px;\n display: block;\n max-width: ", "px;\n\n @media ", " {\n margin-right: ", "px;\n }\n"], ["\n margin-right: ", "px;\n display: block;\n max-width: ", "px;\n\n @media ", " {\n margin-right: ", "px;\n }\n"])), spacings.nudge * 3, spacings.nudge * 5, mq.medium, spacings.spacer);
1277
- var ContentBlock = styled.div.withConfig({
1278
- displayName: "FactList__ContentBlock",
1279
- componentId: "sc-elh0vj-3"
1280
- })(templateObject_4$e || (templateObject_4$e = __makeTemplateObject(["\n & > * + * {\n margin-top: ", "px;\n }\n"], ["\n & > * + * {\n margin-top: ", "px;\n }\n"])), spacings.nudge * 2);
1281
- var Description$2 = styled(Copy).withConfig({
1282
- displayName: "FactList__Description",
1283
- componentId: "sc-elh0vj-4"
1284
- })(templateObject_5$c || (templateObject_5$c = __makeTemplateObject(["\n max-width: 880px;\n"], ["\n max-width: 880px;\n"])));
1285
-
1286
- var FactList = function (_a) {
1287
- var anchorId = _a.anchorId,
1288
- facts = _a.facts,
1289
- icon = _a.icon,
1290
- bgMode = _a.bgMode;
1291
- var colors = useLibTheme().colors;
1292
- var isInverted = bgMode === 'inverted';
1293
- var hasBack = isInverted || bgMode === 'full';
1294
- return React__default.createElement(Section, {
1295
- addSeperation: true,
1296
- anchorId: anchorId,
1297
- bgColor: isInverted ? colors.sectionBg.dark : bgMode === 'full' ? colors.sectionBg.medium : colors.sectionBg.light,
1298
- bgMode: mapToBgMode(bgMode, true)
1299
- }, React__default.createElement(Wrapper, {
1300
- clampWidth: "normal",
1301
- addWhitespace: true
1302
- }, facts && React__default.createElement(FactsContainer, null, facts.map(function (_a, i) {
1303
- var label = _a.label,
1304
- text = _a.text;
1305
- return React__default.createElement(FactItem, {
1306
- key: i,
1307
- hasText: !!text,
1308
- hasBack: hasBack
1309
- }, icon && React__default.createElement(Icon$1, {
1310
- src: icon.src,
1311
- alt: icon.alt || ''
1312
- }), React__default.createElement(ContentBlock, null, label && React__default.createElement(Copy, {
1313
- type: "copy-b"
1314
- }, label), text && React__default.createElement(Description$2, {
1315
- type: "copy",
1316
- innerHTML: text
1317
- })));
1318
- }))));
1319
- };
1320
- var FactList$1 = withLibTheme(FactList);
1321
- var templateObject_1$m, templateObject_2$j, templateObject_3$g, templateObject_4$e, templateObject_5$c;
1322
-
1323
- var View$4 = styled.div.withConfig({
1324
- displayName: "Feature__View",
1325
- componentId: "sc-d7vugh-0"
1326
- })(templateObject_1$l || (templateObject_1$l = __makeTemplateObject(["\n min-width: 270px;\n padding-bottom: ", "px;\n text-align: ", ";\n\n & > * + * {\n margin-top: ", "px;\n }\n"], ["\n min-width: 270px;\n padding-bottom: ", "px;\n text-align: ", ";\n\n & > * + * {\n margin-top: ", "px;\n }\n"])), spacings.nudge, function (_a) {
1327
- var isCentered = _a.isCentered;
1328
- return isCentered && 'center';
1329
- }, spacings.spacer);
1330
- var TitleLink = styled(Link).withConfig({
1331
- displayName: "Feature__TitleLink",
1332
- componentId: "sc-d7vugh-1"
1333
- })(templateObject_3$f || (templateObject_3$f = __makeTemplateObject(["\n display: inline-block;\n ", "\n\n color: ", ";\n text-decoration: none;\n\n ", "\n"], ["\n display: inline-block;\n ", "\n\n color: ", ";\n text-decoration: none;\n\n ", "\n"])), copyStyle('copy-b', 'big'), function (_a) {
1334
- var theme = _a.theme,
1335
- isInverted = _a.isInverted;
1336
- return isInverted ? getFonts(theme)['copy-b'].big.colorInverted : getFonts(theme)['copy-b'].big.color;
1337
- }, function (_a) {
1338
- var href = _a.href,
1339
- isInverted = _a.isInverted,
1340
- theme = _a.theme;
1341
- return !href && css(templateObject_2$i || (templateObject_2$i = __makeTemplateObject(["\n &:hover {\n color: ", ";\n }\n "], ["\n &:hover {\n color: ", ";\n }\n "])), isInverted ? getFonts(theme)['copy-b'].big.colorInverted : getFonts(theme)['copy-b'].big.color);
1342
- });
1343
- var ImageContainer$1 = styled(Link).withConfig({
1344
- displayName: "Feature__ImageContainer",
1345
- componentId: "sc-d7vugh-2"
1346
- })(templateObject_4$d || (templateObject_4$d = __makeTemplateObject(["\n display: flex;\n justify-content: ", ";\n width: 100%;\n"], ["\n display: flex;\n justify-content: ", ";\n width: 100%;\n"])), function (_a) {
1347
- var isCentered = _a.isCentered;
1348
- return isCentered ? 'center' : 'flex-start';
1349
- });
1350
- var StyledImage$6 = styled(Image).withConfig({
1351
- displayName: "Feature__StyledImage",
1352
- componentId: "sc-d7vugh-3"
1353
- })(templateObject_5$b || (templateObject_5$b = __makeTemplateObject(["\n overflow: hidden;\n border-radius: ", ";\n"], ["\n overflow: hidden;\n border-radius: ", ";\n"])), function (_a) {
1354
- var theme = _a.theme;
1355
- return getGlobals(theme).sections.edgeRadius;
1356
- });
1357
- var ArticleContent = styled.div.withConfig({
1358
- displayName: "Feature__ArticleContent",
1359
- componentId: "sc-d7vugh-4"
1360
- })(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject(["\n text-align: ", ";\n\n & > * + * {\n margin-top: ", "px;\n }\n\n @media ", " {\n & > * {\n max-width: 95%;\n margin-right: ", ";\n margin-left: ", ";\n }\n }\n"], ["\n text-align: ", ";\n\n & > * + * {\n margin-top: ", "px;\n }\n\n @media ", " {\n & > * {\n max-width: 95%;\n margin-right: ", ";\n margin-left: ", ";\n }\n }\n"])), function (_a) {
1361
- var isCentered = _a.isCentered;
1362
- return isCentered && 'center';
1363
- }, spacings.nudge * 2, mq.medium, function (_a) {
1364
- var isCentered = _a.isCentered;
1365
- return isCentered && 'auto';
1366
- }, function (_a) {
1367
- var isCentered = _a.isCentered;
1368
- return isCentered && 'auto';
1369
- });
1370
- var Action = styled.div.withConfig({
1371
- displayName: "Feature__Action",
1372
- componentId: "sc-d7vugh-5"
1373
- })(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject(["\n max-width: 100%;\n"], ["\n max-width: 100%;\n"])));
1374
- var Feature = forwardRef(function (_a, ref) {
1375
- var title = _a.title,
1376
- description = _a.description,
1377
- intro = _a.intro,
1378
- text = _a.text,
1379
- link = _a.link,
1380
- image = _a.image,
1381
- _b = _a.isInverted,
1382
- isInverted = _b === void 0 ? false : _b,
1383
- _c = _a.isCentered,
1384
- isCentered = _c === void 0 ? false : _c,
1385
- action = _a.action,
1386
- className = _a.className;
1387
- return React__default.createElement(View$4, {
1388
- ref: ref,
1389
- isCentered: isCentered,
1390
- className: className
1391
- }, (image === null || image === void 0 ? void 0 : image.small) && React__default.createElement(ImageContainer$1, __assign({}, link, {
1392
- isCentered: isCentered
1393
- }), React__default.createElement(StyledImage$6, {
1394
- small: image.small,
1395
- medium: image.medium,
1396
- semilarge: image.semilarge,
1397
- large: image.large,
1398
- xlarge: image.xlarge,
1399
- alt: image.alt,
1400
- ratios: image.ratios,
1401
- coverSpace: image.coverSpace === undefined ? true : image.coverSpace,
1402
- isInverted: isInverted
1403
- })), React__default.createElement(TitleLink, __assign({}, link, {
1404
- isInverted: isInverted,
1405
- ariaLabel: title,
1406
- dataSheet: "title"
1407
- }), title), React__default.createElement(Copy, {
1408
- size: "small",
1409
- isInverted: isInverted,
1410
- "data-sheet": "desc",
1411
- innerHTML: description
1412
- }), React__default.createElement(ArticleContent, {
1413
- isCentered: isCentered
1414
- }, React__default.createElement(Copy, {
1415
- type: "copy-b",
1416
- isInverted: isInverted,
1417
- innerHTML: intro,
1418
- "data-sheet": "intro"
1419
- }), React__default.createElement(Copy, {
1420
- type: "copy",
1421
- size: "medium",
1422
- isInverted: isInverted,
1423
- innerHTML: text,
1424
- "data-sheet": "text"
1425
- })), action && React__default.createElement(Action, null, action(isInverted)));
1426
- });
1427
- Feature.displayName = 'Feature';
1428
- var templateObject_1$l, templateObject_2$i, templateObject_3$f, templateObject_4$d, templateObject_5$b, templateObject_6$8, templateObject_7$5;
1429
-
1430
- var FeatureList = function (_a) {
1431
- var anchorId = _a.anchorId,
1432
- features = _a.features,
1433
- bgMode = _a.bgMode,
1434
- _b = _a.isCentered,
1435
- isCentered = _b === void 0 ? false : _b,
1436
- columns = _a.columns;
1437
- var colors = useLibTheme().colors;
1438
- var isInverted = bgMode === 'inverted';
1439
- var featureCount = (features === null || features === void 0 ? void 0 : features.length) || 0;
1440
- var isHalf = useMemo(function () {
1441
- if (columns) {
1442
- return columns === 2;
1443
- } // legacy logic
1444
-
1445
-
1446
- return features && features.length % 2 === 0;
1447
- }, [features, columns]);
1448
- var cardRefs = useEqualSheetHeight({
1449
- listLength: featureCount,
1450
- identifiers: ['[data-sheet="title"]', '[data-sheet="desc"]', '[data-sheet="intro"]', '[data-sheet="text"]'],
1451
- responsive: {
1452
- small: 1,
1453
- medium: 1,
1454
- semilarge: 2,
1455
- large: isHalf ? 2 : 3,
1456
- xlarge: isHalf ? 2 : 3
1457
- }
1458
- }).sheetRefs;
1459
- return React__default.createElement(Section, {
1460
- addSeperation: true,
1461
- anchorId: anchorId,
1462
- bgColor: isInverted ? colors.sectionBg.dark : bgMode ? colors.sectionBg.medium : colors.sectionBg.light,
1463
- bgMode: mapToBgMode(bgMode)
1464
- }, React__default.createElement(Wrapper, {
1465
- addWhitespace: true,
1466
- clampWidth: "normal"
1467
- }, React__default.createElement(Grid.Row, {
1468
- halign: isHalf || featureCount <= 2 ? 'center' : 'left'
1469
- }, features === null || features === void 0 ? void 0 : features.map(function (feature, i) {
1470
- return React__default.createElement(Grid.Col, {
1471
- semilarge: {
1472
- span: 6 / 12
1473
- },
1474
- large: {
1475
- span: isHalf ? 5 / 12 : 4 / 12
1476
- },
1477
- key: i
1478
- }, React__default.createElement(Feature, __assign({
1479
- ref: cardRefs[i]
1480
- }, feature, {
1481
- isCentered: isCentered,
1482
- isInverted: isInverted
1483
- })));
1484
- }))));
1485
- };
1486
- var FeatureList$1 = withLibTheme(FeatureList);
1487
-
1488
- var StyledImage$5 = styled(Image).withConfig({
1489
- displayName: "Gallery__StyledImage",
1490
- componentId: "sc-1c4lgpr-0"
1491
- })(templateObject_1$k || (templateObject_1$k = __makeTemplateObject(["\n width: 100%;\n border-radius: ", ";\n overflow: hidden;\n\n picture > img {\n width: 100%;\n height: 100%;\n }\n"], ["\n width: 100%;\n border-radius: ", ";\n overflow: hidden;\n\n picture > img {\n width: 100%;\n height: 100%;\n }\n"])), function (_a) {
1492
- var theme = _a.theme;
1493
- return getGlobals(theme).sections.edgeRadius;
1494
- });
1495
-
1496
- var Gallery = function (_a) {
1497
- var anchorId = _a.anchorId,
1498
- bgMode = _a.bgMode,
1499
- images = _a.images;
1500
- var colors = useLibTheme().colors;
1501
- var isInverted = bgMode === 'inverted';
1502
- return React__default.createElement(Section, {
1503
- addSeperation: true,
1504
- anchorId: anchorId,
1505
- bgColor: isInverted ? colors.sectionBg.dark : bgMode ? colors.sectionBg.medium : colors.sectionBg.light,
1506
- bgMode: mapToBgMode(bgMode)
1507
- }, React__default.createElement(Wrapper, {
1508
- addWhitespace: true
1509
- }, React__default.createElement(Grid.Row, null, images === null || images === void 0 ? void 0 : images.map(function (img, i) {
1510
- return React__default.createElement(Grid.Col, {
1511
- key: i,
1512
- semilarge: {
1513
- span: img.isFull ? 12 / 12 : 6 / 12
1514
- }
1515
- }, React__default.createElement(StyledImage$5, __assign({}, img, {
1516
- coverSpace: true,
1517
- isInverted: isInverted
1518
- })));
1519
- }))));
1520
- };
1521
- var Gallery$1 = withLibTheme(Gallery);
1522
- var templateObject_1$k;
1523
-
1524
- var Poster$2 = function (_a) {
1525
- var isInverted = _a.isInverted,
1526
- videoUrl = _a.videoUrl,
1527
- images = _a.images,
1528
- focus = _a.focus,
1529
- kenBurnsZoom = _a.kenBurnsZoom,
1530
- kenBurnsZoomPoint = _a.kenBurnsZoomPoint,
1531
- kenBurnsInterval = _a.kenBurnsInterval,
1532
- onImageChange = _a.onImageChange,
1533
- className = _a.className,
1534
- children = _a.children;
1535
-
1536
- switch (true) {
1537
- case !!videoUrl:
1538
- {
1539
- return React__default.createElement(HeaderVideo, {
1540
- isInverted: isInverted,
1541
- videoUrl: videoUrl,
1542
- focus: focus,
1543
- placeholderImg: images === null || images === void 0 ? void 0 : images[0],
1544
- className: className
1545
- }, children);
1546
- }
1547
-
1548
- case images && images.length > 1:
1549
- {
1550
- return React__default.createElement(HeaderKenBurns, {
1551
- images: images || [],
1552
- zoom: kenBurnsZoom,
1553
- zoomPoint: kenBurnsZoomPoint,
1554
- interval: kenBurnsInterval,
1555
- onImageChange: onImageChange,
1556
- className: className
1557
- }, children);
1558
- }
1559
- // single image
1560
-
1561
- case images && images.length === 1:
1562
- {
1563
- return React__default.createElement(HeaderPoster, {
1564
- isInverted: isInverted,
1565
- bgImage: images === null || images === void 0 ? void 0 : images[0],
1566
- focus: focus,
1567
- className: className
1568
- }, children);
1569
- }
1570
-
1571
- default:
1572
- {
1573
- return React__default.createElement("div", null, children);
1574
- }
1575
- }
1576
- };
1577
-
1578
- var genHeightStyles = function (isFull) {
1579
- return css(templateObject_2$h || (templateObject_2$h = __makeTemplateObject(["\n // Doing some crazy shit to calculate curent navbar height in CSS\n ", "\n"], ["\n // Doing some crazy shit to calculate curent navbar height in CSS\n ", "\n"])), function (_a) {
1580
- var theme = _a.theme; // navbar main only
1581
-
1582
- var mainIdent = generateNavbarIdent({
1583
- pageFlow: 'beforeContent',
1584
- hasMain: true
1585
- }); // navbar main and top
1586
-
1587
- var mainTopIdent = generateNavbarIdent({
1588
- pageFlow: 'beforeContent',
1589
- hasMain: true,
1590
- hasTop: true
1591
- }); // navbar main and bottom
1592
-
1593
- var mainBottomIdent = generateNavbarIdent({
1594
- pageFlow: 'beforeContent',
1595
- hasMain: true,
1596
- hasBottom: true
1597
- }); // full navbar with all bars
1598
-
1599
- var fullIdent = generateNavbarIdent({
1600
- pageFlow: 'beforeContent',
1601
- hasTop: true,
1602
- hasMain: true,
1603
- hasBottom: true
1604
- });
1605
- var navMainHeight = getFullNavbarHeights(theme, mainIdent).large;
1606
- var navMainTopHeight = getFullNavbarHeights(theme, mainTopIdent).large;
1607
- var navMainBottomHeight = getFullNavbarHeights(theme, mainBottomIdent).large;
1608
- var navFullHeight = getFullNavbarHeights(theme, fullIdent).large;
1609
-
1610
- var mapToSelector = function (idents) {
1611
- return idents.map(function (id) {
1612
- return "[data-navbar-ident*='".concat(id, "']");
1613
- }).join('');
1614
- };
1615
-
1616
- var refHeight = isFull ? '100vh' : '80vh';
1617
- return css(templateObject_1$j || (templateObject_1$j = __makeTemplateObject(["\n & > ", " {\n min-height: 500px;\n height: ", ";\n }\n\n // with main navbar element\n header", " + & {\n & > ", " {\n height: calc(", " - ", "px);\n }\n }\n\n // with main and top navbar elements\n header", " + & {\n & > ", " {\n height: calc(", " - ", "px);\n }\n }\n\n // with main and bottom navbar elements\n header", " + & {\n & > ", " {\n height: calc(", " - ", "px);\n }\n }\n\n // with all navbar elements\n header", " + & {\n & > ", " {\n height: calc(", " - ", "px);\n }\n }\n\n @media ", " {\n // with main navbar element\n header", " + & {\n & > ", " {\n height: calc(", " - ", "px);\n }\n }\n\n // with main and top navbar elements\n header", " + & {\n & > ", " {\n height: calc(", " - ", "px);\n }\n }\n\n // with main and bottom navbar elements\n header", " + & {\n & > ", " {\n height: calc(\n ", " - ", "px\n );\n }\n }\n\n // with all navbar elements\n header", " + & {\n & > ", " {\n height: calc(", " - ", "px);\n }\n }\n }\n "], ["\n & > ", " {\n min-height: 500px;\n height: ", ";\n }\n\n // with main navbar element\n header", " + & {\n & > ", " {\n height: calc(", " - ", "px);\n }\n }\n\n // with main and top navbar elements\n header", " + & {\n & > ", " {\n height: calc(", " - ", "px);\n }\n }\n\n // with main and bottom navbar elements\n header", " + & {\n & > ", " {\n height: calc(", " - ", "px);\n }\n }\n\n // with all navbar elements\n header", " + & {\n & > ", " {\n height: calc(", " - ", "px);\n }\n }\n\n @media ", " {\n // with main navbar element\n header", " + & {\n & > ", " {\n height: calc(", " - ", "px);\n }\n }\n\n // with main and top navbar elements\n header", " + & {\n & > ", " {\n height: calc(", " - ", "px);\n }\n }\n\n // with main and bottom navbar elements\n header", " + & {\n & > ", " {\n height: calc(\n ", " - ", "px\n );\n }\n }\n\n // with all navbar elements\n header", " + & {\n & > ", " {\n height: calc(", " - ", "px);\n }\n }\n }\n "])), StyledPoster, refHeight, mapToSelector(mainIdent.split('-')), StyledPoster, refHeight, navMainHeight[0], mapToSelector(mainTopIdent.split('-')), StyledPoster, refHeight, navMainTopHeight[0], mapToSelector(mainBottomIdent.split('-')), StyledPoster, refHeight, navMainBottomHeight[0], mapToSelector(fullIdent.split('-')), StyledPoster, refHeight, navFullHeight[0], mq.semilarge, mapToSelector(mainIdent.split('-')), StyledPoster, refHeight, navMainHeight[1], mapToSelector(mainTopIdent.split('-')), StyledPoster, refHeight, navMainTopHeight[1], mapToSelector(mainBottomIdent.split('-')), StyledPoster, refHeight, navMainBottomHeight[1], mapToSelector(fullIdent.split('-')), StyledPoster, refHeight, navFullHeight[1]);
1618
- });
1619
- };
1620
-
1621
- var HeaderSection = styled(Section).withConfig({
1622
- displayName: "Header__HeaderSection",
1623
- componentId: "sc-12uexfr-0"
1624
- })(templateObject_3$e || (templateObject_3$e = __makeTemplateObject(["\n position: relative;\n ", "\n\n header + & {\n ", "\n ", "\n }\n"], ["\n position: relative;\n ", "\n\n header + & {\n ", "\n ", "\n }\n"])), genHeightStyles(true), withRange([0], 'padding-top'), withRange([0], 'margin-top'));
1625
- var HeaderSectionSmall = styled(Section).withConfig({
1626
- displayName: "Header__HeaderSectionSmall",
1627
- componentId: "sc-12uexfr-1"
1628
- })(templateObject_4$c || (templateObject_4$c = __makeTemplateObject(["\n position: relative;\n ", "\n\n header + & {\n ", "\n ", "\n }\n"], ["\n position: relative;\n ", "\n\n header + & {\n ", "\n ", "\n }\n"])), genHeightStyles(false), withRange([0], 'padding-top'), withRange([0], 'margin-top'));
1629
- var StyledPoster = styled(Poster$2).withConfig({
1630
- displayName: "Header__StyledPoster",
1631
- componentId: "sc-12uexfr-2"
1632
- })(templateObject_5$a || (templateObject_5$a = __makeTemplateObject(["\n position: relative;\n height: 100vh;\n max-height: 1300px;\n max-width: ", "px;\n margin: 0 auto;\n"], ["\n position: relative;\n height: 100vh;\n max-height: 1300px;\n max-width: ", "px;\n margin: 0 auto;\n"])), spacings.wrapperLarge);
1633
- var Overlay$1 = styled.div.withConfig({
1634
- displayName: "Header__Overlay",
1635
- componentId: "sc-12uexfr-3"
1636
- })(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject(["\n display: ", ";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: ", ";\n z-index: 2;\n\n @media ", " {\n display: block;\n }\n"], ["\n display: ", ";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n background: ", ";\n z-index: 2;\n\n @media ", " {\n display: block;\n }\n"])), function (_a) {
1637
- var textOnImage = _a.textOnImage;
1638
- return textOnImage ? 'block' : 'none';
1639
- }, function (_a) {
1640
- var bgValue = _a.bgValue;
1641
- return bgValue && bgValue;
1642
- }, mq.medium);
1643
- var Content$3 = styled.div.withConfig({
1644
- displayName: "Header__Content",
1645
- componentId: "sc-12uexfr-4"
1646
- })(templateObject_8$1 || (templateObject_8$1 = __makeTemplateObject(["\n display: none;\n max-width: ", "px;\n margin: 0 auto;\n\n ", "\n\n @media ", " {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: ", ";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n padding: ", "px;\n z-index: 2;\n\n & > * {\n margin-top: ", "px;\n max-width: 880px;\n }\n }\n"], ["\n display: none;\n max-width: ", "px;\n margin: 0 auto;\n\n ", "\n\n @media ", " {\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: ", ";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n padding: ", "px;\n z-index: 2;\n\n & > * {\n margin-top: ", "px;\n max-width: 880px;\n }\n }\n"])), spacings.wrapper, function (_a) {
1647
- var textOnImage = _a.textOnImage,
1648
- isCentered = _a.isCentered;
1649
- return textOnImage && css(templateObject_7$4 || (templateObject_7$4 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: ", ";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n padding: ", "px;\n z-index: 2;\n\n & > * {\n margin-top: ", "px;\n max-width: 880px;\n }\n "], ["\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: ", ";\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n padding: ", "px;\n z-index: 2;\n\n & > * {\n margin-top: ", "px;\n max-width: 880px;\n }\n "])), isCentered && 'center', spacings.spacer, spacings.spacer);
1650
- }, mq.medium, function (_a) {
1651
- var isCentered = _a.isCentered;
1652
- return isCentered && 'center';
1653
- }, spacings.spacer * 2, spacings.spacer);
1654
- var ContentMobile = styled.div.withConfig({
1655
- displayName: "Header__ContentMobile",
1656
- componentId: "sc-12uexfr-5"
1657
- })(templateObject_9$1 || (templateObject_9$1 = __makeTemplateObject(["\n padding: ", "px ", "px;\n\n & > * + * {\n margin-top: ", "px;\n }\n\n @media ", " {\n display: none;\n }\n"], ["\n padding: ", "px ", "px;\n\n & > * + * {\n margin-top: ", "px;\n }\n\n @media ", " {\n display: none;\n }\n"])), spacings.spacer, spacings.nudge * 2, spacings.spacer, mq.medium);
1658
- var Title$2 = styled(Heading).withConfig({
1659
- displayName: "Header__Title",
1660
- componentId: "sc-12uexfr-6"
1661
- })(templateObject_10$1 || (templateObject_10$1 = __makeTemplateObject(["\n text-align: ", ";\n\n @media ", " {\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 3; /* number of lines to show */\n line-clamp: 3;\n -webkit-box-orient: vertical;\n }\n"], ["\n text-align: ", ";\n\n @media ", " {\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 3; /* number of lines to show */\n line-clamp: 3;\n -webkit-box-orient: vertical;\n }\n"])), function (_a) {
1662
- var isCentered = _a.isCentered;
1663
- return isCentered && 'center';
1664
- }, mq.medium);
1665
- var Text$3 = styled(Copy).withConfig({
1666
- displayName: "Header__Text",
1667
- componentId: "sc-12uexfr-7"
1668
- })(templateObject_11$1 || (templateObject_11$1 = __makeTemplateObject(["\n text-align: ", ";\n\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 4; /* number of lines to show */\n line-clamp: 4;\n -webkit-box-orient: vertical;\n"], ["\n text-align: ", ";\n\n overflow: hidden;\n text-overflow: ellipsis;\n display: -webkit-box;\n -webkit-line-clamp: 4; /* number of lines to show */\n line-clamp: 4;\n -webkit-box-orient: vertical;\n"])), function (_a) {
1669
- var isCentered = _a.isCentered;
1670
- return isCentered && 'center';
1671
- });
1672
- var StyledActions$4 = styled(Actions).withConfig({
1673
- displayName: "Header__StyledActions",
1674
- componentId: "sc-12uexfr-8"
1675
- })(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject(["\n @media ", " {\n display: block;\n text-align: ", ";\n }\n"], ["\n @media ", " {\n display: block;\n text-align: ", ";\n }\n"])), mq.medium, function (_a) {
1676
- var isCentered = _a.isCentered;
1677
- return isCentered && 'center';
1678
- });
1679
-
1680
- var Header = function (_a) {
1681
- var anchorId = _a.anchorId,
1682
- _b = _a.size,
1683
- size = _b === void 0 ? 'full' : _b,
1684
- _c = _a.focusPoint,
1685
- focusPoint = _c === void 0 ? ['center', 'center'] : _c,
1686
- isCentered = _a.isCentered,
1687
- title = _a.title,
1688
- titleAs = _a.titleAs,
1689
- text = _a.text,
1690
- primaryAction = _a.primaryAction,
1691
- secondaryAction = _a.secondaryAction,
1692
- videoUrl = _a.videoUrl,
1693
- images = _a.images,
1694
- customImgOverlay = _a.customImgOverlay,
1695
- _d = _a.kenBurnsZoom,
1696
- kenBurnsZoom = _d === void 0 ? 1.08 : _d,
1697
- _e = _a.kenBurnsZoomPoint,
1698
- kenBurnsZoomPoint = _e === void 0 ? [0.5, 0.5] : _e,
1699
- _f = _a.kenBurnsInterval,
1700
- kenBurnsInterval = _f === void 0 ? 10000 : _f,
1701
- onImageChange = _a.onImageChange,
1702
- bgMode = _a.bgMode,
1703
- textOnImage = _a.textOnImage;
1704
-
1705
- var _g = useLibTheme(),
1706
- globals = _g.globals,
1707
- colors = _g.colors;
1708
-
1709
- var isInverted = bgMode === 'inverted';
1710
- var hasContent = title || text || primaryAction || secondaryAction;
1711
- var overlay = hasContent ? customImgOverlay || globals.sections.imageTextGradient : undefined;
1712
- var Section = size === 'full' ? HeaderSection : HeaderSectionSmall;
1713
- return React__default.createElement(Section, {
1714
- addSeperation: true,
1715
- anchorId: anchorId,
1716
- bgColor: isInverted ? colors.sectionBg.dark : bgMode ? colors.sectionBg.medium : colors.sectionBg.light,
1717
- bgMode: mapToBgMode(bgMode, true)
1718
- }, React__default.createElement(StyledPoster, {
1719
- isInverted: isInverted,
1720
- images: images,
1721
- videoUrl: videoUrl,
1722
- kenBurnsInterval: kenBurnsInterval,
1723
- kenBurnsZoom: kenBurnsZoom,
1724
- kenBurnsZoomPoint: kenBurnsZoomPoint,
1725
- onImageChange: onImageChange,
1726
- focus: focusPoint
1727
- }, hasContent && React__default.createElement(React__default.Fragment, null, React__default.createElement(Overlay$1, {
1728
- bgValue: overlay,
1729
- textOnImage: textOnImage
1730
- }), React__default.createElement(Content$3, {
1731
- isCentered: isCentered,
1732
- textOnImage: textOnImage
1733
- }, title && React__default.createElement(Title$2, {
1734
- isInverted: true,
1735
- size: "heading-1",
1736
- isCentered: isCentered,
1737
- renderAs: titleAs,
1738
- innerHTML: title
1739
- }), text && React__default.createElement(Text$3, {
1740
- isInverted: true,
1741
- isCentered: isCentered,
1742
- type: "copy-b",
1743
- size: "big",
1744
- innerHTML: text
1745
- }), (primaryAction || secondaryAction) && React__default.createElement(StyledActions$4, {
1746
- isCentered: isCentered,
1747
- primary: primaryAction && primaryAction(true),
1748
- secondary: secondaryAction && secondaryAction(true)
1749
- })))), hasContent && !textOnImage && React__default.createElement(ContentMobile, null, title && React__default.createElement(Title$2, {
1750
- size: "heading-1",
1751
- isCentered: isCentered,
1752
- renderAs: titleAs,
1753
- innerHTML: title,
1754
- isInverted: isInverted
1755
- }), text && React__default.createElement(Text$3, {
1756
- type: "copy-b",
1757
- size: "big",
1758
- isCentered: isCentered,
1759
- innerHTML: text,
1760
- isInverted: isInverted
1761
- }), (primaryAction || secondaryAction) && React__default.createElement(StyledActions$4, {
1762
- isCentered: isCentered,
1763
- primary: primaryAction && primaryAction(isInverted),
1764
- secondary: secondaryAction && secondaryAction(isInverted)
1765
- })));
1766
- };
1767
- var Header$1 = withLibTheme(Header);
1768
- var templateObject_1$j, templateObject_2$h, templateObject_3$e, templateObject_4$c, templateObject_5$a, templateObject_6$7, templateObject_7$4, templateObject_8$1, templateObject_9$1, templateObject_10$1, templateObject_11$1, templateObject_12$1;
1769
-
1770
- var StyledSection = styled(Section).withConfig({
1771
- displayName: "IconList__StyledSection",
1772
- componentId: "sc-10wpi8n-0"
1773
- })(templateObject_1$i || (templateObject_1$i = __makeTemplateObject(["\n margin: 0 auto;\n\n @media ", " {\n margin: ", ";\n\n text-align: ", ";\n }\n"], ["\n margin: 0 auto;\n\n @media ", " {\n margin: ", ";\n\n text-align: ", ";\n }\n"])), mq.semilarge, function (_a) {
1774
- var isCentered = _a.isCentered;
1775
- return isCentered ? '0 auto' : '0';
1776
- }, function (_a) {
1777
- var isCentered = _a.isCentered;
1778
- return isCentered ? 'center' : 'left';
1779
- });
1780
- var ItemContainer = styled.div.withConfig({
1781
- displayName: "IconList__ItemContainer",
1782
- componentId: "sc-10wpi8n-1"
1783
- })(templateObject_2$g || (templateObject_2$g = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n text-align: center;\n\n &:not(:last-child) {\n margin-bottom: ", "px;\n }\n\n @media ", " {\n justify-content: ", ";\n }\n"], ["\n display: flex;\n flex-direction: row;\n flex-wrap: wrap;\n text-align: center;\n\n &:not(:last-child) {\n margin-bottom: ", "px;\n }\n\n @media ", " {\n justify-content: ", ";\n }\n"])), spacings.spacer, mq.semilarge, function (_a) {
1784
- var isCentered = _a.isCentered;
1785
- return isCentered ? 'center' : 'flex-start';
1786
- });
1787
- var Items$1 = styled.ul.withConfig({
1788
- displayName: "IconList__Items",
1789
- componentId: "sc-10wpi8n-2"
1790
- })(templateObject_3$d || (templateObject_3$d = __makeTemplateObject(["\n display: ", ";\n align-items: center;\n justify-content: ", ";\n\n flex-wrap: wrap;\n padding: 0;\n margin: 0;\n margin-top: -", "px;\n margin-left: -", "px;\n\n list-style: none;\n\n @media ", " {\n margin-top: -", "px;\n margin-left: -", "px;\n\n & > * {\n flex: 0 1 auto;\n }\n }\n"], ["\n display: ", ";\n align-items: center;\n justify-content: ", ";\n\n flex-wrap: wrap;\n padding: 0;\n margin: 0;\n margin-top: -", "px;\n margin-left: -", "px;\n\n list-style: none;\n\n @media ", " {\n margin-top: -", "px;\n margin-left: -", "px;\n\n & > * {\n flex: 0 1 auto;\n }\n }\n"])), function (_a) {
1791
- var isVisible = _a.isVisible;
1792
- return isVisible ? 'flex' : 'block';
1793
- }, function (_a) {
1794
- var isCentered = _a.isCentered;
1795
- return isCentered ? 'center' : 'flex-start';
1796
- }, spacings.nudge * 2, spacings.nudge * 2, mq.medium, spacings.spacer, spacings.spacer);
1797
- var Item$1 = styled.li.withConfig({
1798
- displayName: "IconList__Item",
1799
- componentId: "sc-10wpi8n-3"
1800
- })(templateObject_4$b || (templateObject_4$b = __makeTemplateObject(["\n padding-top: ", "px;\n padding-left: ", "px;\n\n display: ", ";\n\n & > img {\n width: 100%;\n }\n\n @media ", " {\n padding-top: ", "px;\n padding-left: ", "px;\n\n & > img {\n width: auto;\n }\n }\n\n @media ", " {\n display: ", ";\n }\n\n @media ", " {\n display: ", ";\n }\n"], ["\n padding-top: ", "px;\n padding-left: ", "px;\n\n display: ", ";\n\n & > img {\n width: 100%;\n }\n\n @media ", " {\n padding-top: ", "px;\n padding-left: ", "px;\n\n & > img {\n width: auto;\n }\n }\n\n @media ", " {\n display: ", ";\n }\n\n @media ", " {\n display: ", ";\n }\n"])), spacings.nudge * 2, spacings.nudge * 2, function (_a) {
1801
- var index = _a.index,
1802
- isVisible = _a.isVisible;
1803
- return isVisible || index < 6 ? 'block' : 'none';
1804
- }, mq.medium, spacings.spacer, spacings.spacer, mq.semilarge, function (_a) {
1805
- var index = _a.index,
1806
- isVisible = _a.isVisible;
1807
- return isVisible || index < 8 ? 'block' : 'none';
1808
- }, mq.large, function (_a) {
1809
- var index = _a.index,
1810
- isVisible = _a.isVisible;
1811
- return isVisible || index < 10 ? 'block' : 'none';
1812
- });
1813
- var ItemLink = styled(Link).withConfig({
1814
- displayName: "IconList__ItemLink",
1815
- componentId: "sc-10wpi8n-4"
1816
- })(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject(["\n display: block;\n outline-color: ", ";\n"], ["\n display: block;\n outline-color: ", ";\n"])), function (_a) {
1817
- var theme = _a.theme,
1818
- isInverted = _a.isInverted;
1819
- return isInverted ? getColors(theme).primary.inverted : getColors(theme).primary.default;
1820
- });
1821
- var ShowMore = styled.div.withConfig({
1822
- displayName: "IconList__ShowMore",
1823
- componentId: "sc-10wpi8n-5"
1824
- })(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject(["\n display: ", ";\n\n background: none;\n border: none;\n text-align: ", ";\n\n @media ", " {\n display: ", ";\n }\n\n @media ", " {\n display: ", ";\n }\n"], ["\n display: ", ";\n\n background: none;\n border: none;\n text-align: ", ";\n\n @media ", " {\n display: ", ";\n }\n\n @media ", " {\n display: ", ";\n }\n"])), function (_a) {
1825
- var itemCount = _a.itemCount;
1826
- return itemCount && itemCount > 6 ? 'block' : 'none';
1827
- }, function (_a) {
1828
- var isCentered = _a.isCentered;
1829
- return isCentered ? 'center' : 'left';
1830
- }, mq.semilarge, function (_a) {
1831
- var itemCount = _a.itemCount;
1832
- return itemCount && itemCount > 8 ? 'block' : 'none';
1833
- }, mq.large, function (_a) {
1834
- var itemCount = _a.itemCount;
1835
- return itemCount && itemCount > 10 ? 'block' : 'none';
1836
- });
1837
- var StyledActions$3 = styled(Actions).withConfig({
1838
- displayName: "IconList__StyledActions",
1839
- componentId: "sc-10wpi8n-6"
1840
- })(templateObject_7$3 || (templateObject_7$3 = __makeTemplateObject(["\n margin-top: ", "px;\n\n @media ", " {\n display: block;\n text-align: ", ";\n }\n"], ["\n margin-top: ", "px;\n\n @media ", " {\n display: block;\n text-align: ", ";\n }\n"])), spacings.spacer, mq.medium, function (_a) {
1841
- var isCentered = _a.isCentered;
1842
- return isCentered && 'center';
1843
- });
1844
-
1845
- var IconList = function (_a) {
1846
- var anchorId = _a.anchorId,
1847
- items = _a.items,
1848
- _b = _a.isCentered,
1849
- isCentered = _b === void 0 ? false : _b,
1850
- primaryAction = _a.primaryAction,
1851
- secondaryAction = _a.secondaryAction,
1852
- toggle = _a.toggle,
1853
- _c = _a.showLessText,
1854
- showLessText = _c === void 0 ? 'show less' : _c,
1855
- _d = _a.showMoreText,
1856
- showMoreText = _d === void 0 ? 'show more' : _d,
1857
- enableToggle = _a.enableToggle,
1858
- bgMode = _a.bgMode;
1859
- var colors = useLibTheme().colors;
1860
- var isInverted = bgMode === 'inverted';
1861
-
1862
- var _e = useState(!enableToggle),
1863
- showMore = _e[0],
1864
- setShowMore = _e[1];
1865
-
1866
- var handleToggleClick = function () {
1867
- setShowMore(function (prev) {
1868
- return !prev;
1869
- });
1870
- };
1871
-
1872
- return React__default.createElement(StyledSection, {
1873
- addSeperation: true,
1874
- anchorId: anchorId,
1875
- bgColor: isInverted ? colors.sectionBg.dark : bgMode ? colors.sectionBg.medium : colors.sectionBg.light,
1876
- bgMode: mapToBgMode(bgMode, true),
1877
- isCentered: isCentered
1878
- }, React__default.createElement(Wrapper, {
1879
- clampWidth: "normal",
1880
- addWhitespace: true
1881
- }, React__default.createElement(ItemContainer, {
1882
- isCentered: isCentered
1883
- }, React__default.createElement(Items$1, {
1884
- isVisible: !showMore ? true : showMore === true,
1885
- isCentered: isCentered
1886
- }, items === null || items === void 0 ? void 0 : items.map(function (_a, i) {
1887
- var src = _a.src,
1888
- link = _a.link,
1889
- alt = _a.alt,
1890
- ratio = _a.ratio,
1891
- showPlaceholder = _a.showPlaceholder;
1892
- return React__default.createElement(Item$1, {
1893
- isVisible: showMore,
1894
- index: i,
1895
- key: i
1896
- }, React__default.createElement(ItemLink, __assign({}, link, {
1897
- isInverted: isInverted,
1898
- ariaLabel: alt
1899
- }), React__default.createElement(Image, {
1900
- "data-img-loaded": false,
1901
- isInverted: isInverted,
1902
- small: src,
1903
- alt: alt,
1904
- ratios: ratio ? {
1905
- small: ratio
1906
- } : undefined,
1907
- showPlaceholder: showPlaceholder
1908
- })));
1909
- }))), enableToggle && React__default.createElement(ShowMore, {
1910
- isCentered: isCentered,
1911
- itemCount: (items === null || items === void 0 ? void 0 : items.length) || 0
1912
- }, toggle ? toggle({
1913
- isInverted: isInverted,
1914
- showLessText: showLessText,
1915
- showMoreText: showMoreText,
1916
- isToggled: showMore,
1917
- clickHandler: handleToggleClick,
1918
- additionalProps: {
1919
- 'aria-pressed': showMore
1920
- }
1921
- }) : React__default.createElement(Pointer.View, {
1922
- as: "button",
1923
- isInverted: isInverted,
1924
- "aria-pressed": showMore,
1925
- onClick: function () {
1926
- return handleToggleClick();
1927
- }
1928
- }, React__default.createElement(Pointer.Label, null, showMore ? showLessText : showMoreText))), (primaryAction || secondaryAction) && React__default.createElement(StyledActions$3, {
1929
- isCentered: isCentered,
1930
- primary: primaryAction && primaryAction(isInverted),
1931
- secondary: secondaryAction && secondaryAction(isInverted)
1932
- })));
1933
- };
1934
- var IconList$1 = withLibTheme(IconList);
1935
- var templateObject_1$i, templateObject_2$g, templateObject_3$d, templateObject_4$b, templateObject_5$9, templateObject_6$6, templateObject_7$3;
1936
-
1937
- var List$1 = styled.ul.withConfig({
1938
- displayName: "IndexList__List",
1939
- componentId: "sc-9my0y5-0"
1940
- })(templateObject_1$h || (templateObject_1$h = __makeTemplateObject(["\n margin: 0;\n padding: 0;\n list-style: none;\n\n max-width: 880px;\n\n & > li + li {\n border-top: 1px solid\n ", ";\n }\n\n & > li:first-child {\n border-top: 1px solid\n ", ";\n }\n\n & > li:last-child {\n border-bottom: 1px solid\n ", ";\n }\n"], ["\n margin: 0;\n padding: 0;\n list-style: none;\n\n max-width: 880px;\n\n & > li + li {\n border-top: 1px solid\n ", ";\n }\n\n & > li:first-child {\n border-top: 1px solid\n ", ";\n }\n\n & > li:last-child {\n border-bottom: 1px solid\n ", ";\n }\n"])), function (_a) {
1941
- var theme = _a.theme,
1942
- hasBg = _a.hasBg,
1943
- isInverted = _a.isInverted;
1944
- return hasBg && !isInverted ? getColors(theme).elementBg.light : getColors(theme).elementBg.medium;
1945
- }, function (_a) {
1946
- var theme = _a.theme,
1947
- hasBg = _a.hasBg,
1948
- isInverted = _a.isInverted;
1949
- return hasBg && !isInverted ? getColors(theme).elementBg.light : getColors(theme).elementBg.medium;
1950
- }, function (_a) {
1951
- var theme = _a.theme,
1952
- hasBg = _a.hasBg,
1953
- isInverted = _a.isInverted;
1954
- return hasBg && !isInverted ? getColors(theme).elementBg.light : getColors(theme).elementBg.medium;
1955
- });
1956
- var ListItem$1 = styled.li.withConfig({
1957
- displayName: "IndexList__ListItem",
1958
- componentId: "sc-9my0y5-1"
1959
- })(templateObject_2$f || (templateObject_2$f = __makeTemplateObject([""], [""])));
1960
- var IndexLink = styled(Link).withConfig({
1961
- displayName: "IndexList__IndexLink",
1962
- componentId: "sc-9my0y5-2"
1963
- })(templateObject_3$c || (templateObject_3$c = __makeTemplateObject(["\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n padding: ", "px 0;\n\n ", "\n"], ["\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n padding: ", "px 0;\n\n ", "\n"])), spacings.nudge, copyStyle('copy', 'big'));
1964
- var LinkLabel = styled.span.withConfig({
1965
- displayName: "IndexList__LinkLabel",
1966
- componentId: "sc-9my0y5-3"
1967
- })(templateObject_4$a || (templateObject_4$a = __makeTemplateObject(["\n display: inline-block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"], ["\n display: inline-block;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
1968
- var IconWrapper = styled.span.withConfig({
1969
- displayName: "IndexList__IconWrapper",
1970
- componentId: "sc-9my0y5-4"
1971
- })(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject(["\n display: inline-block;\n\n margin-left: ", "px;\n"], ["\n display: inline-block;\n\n margin-left: ", "px;\n"])), spacings.nudge * 2);
1972
-
1973
- var IndexList = function (_a) {
1974
- var anchorId = _a.anchorId,
1975
- items = _a.items,
1976
- bgMode = _a.bgMode,
1977
- customIcon = _a.customIcon,
1978
- scrollToOffset = _a.scrollToOffset;
1979
-
1980
- var _b = useLibTheme(),
1981
- colors = _b.colors,
1982
- theme = _b.theme;
1983
-
1984
- var setTargetPos = useScrollTo(500);
1985
- var semilarge = useMediaQueries().semilarge;
1986
-
1987
- var _c = useState(0),
1988
- topOffset = _c[0],
1989
- setTopOffset = _c[1];
1990
-
1991
- var isInverted = bgMode === 'inverted';
1992
- var hasBg = bgMode === 'full';
1993
-
1994
- var handleLinkClick = function (ev) {
1995
- var _a;
1996
-
1997
- if (!(ev === null || ev === void 0 ? void 0 : ev.currentTarget)) return;
1998
- ev.preventDefault();
1999
- var href = ev.currentTarget.getAttribute('href');
2000
- if (!href) return;
2001
- var target = document.getElementById(((_a = href.split('#')) === null || _a === void 0 ? void 0 : _a[1]) || href);
2002
-
2003
- if (target) {
2004
- setTargetPos(target.getBoundingClientRect().top + window.scrollY - (scrollToOffset || topOffset));
2005
- }
2006
-
2007
- if (window) {
2008
- var url = new URL(window.location);
2009
- url.hash = href.split('#')[1];
2010
- window.history.pushState({}, '', url);
2011
- }
2012
- };
2013
-
2014
- useEffect(function () {
2015
- if (scrollToOffset) return; // if header is defined get navbar height and generate top offset
2016
-
2017
- var header = document.querySelector('header[data-navbar-ident]');
2018
- var navbarIdent = header === null || header === void 0 ? void 0 : header.getAttribute('data-navbar-ident');
2019
- if (!navbarIdent) return;
2020
- var isStickable = getNavbarState(navbarIdent).isStickable;
2021
- if (!isStickable) return; // calculate offset from navbar height
2022
-
2023
- var navbarHeights = getFullNavbarHeights(theme, navbarIdent);
2024
- if (semilarge) setTopOffset(navbarHeights.small[1] + spacings.spacer);else setTopOffset(navbarHeights.small[0] + spacings.spacer);
2025
- }, [theme, semilarge, scrollToOffset]);
2026
- return React__default.createElement(Section, {
2027
- addSeperation: true,
2028
- anchorId: anchorId,
2029
- bgColor: isInverted ? colors.sectionBg.dark : hasBg ? colors.sectionBg.medium : colors.sectionBg.light,
2030
- bgMode: mapToBgMode(bgMode, true)
2031
- }, React__default.createElement(Wrapper, {
2032
- addWhitespace: true
2033
- }, React__default.createElement(List$1, {
2034
- hasBg: hasBg,
2035
- isInverted: isInverted
2036
- }, items === null || items === void 0 ? void 0 : items.map(function (item, i) {
2037
- return React__default.createElement(ListItem$1, {
2038
- key: i
2039
- }, React__default.createElement(IndexLink, __assign({}, item.link, {
2040
- isInverted: isInverted,
2041
- onClick: handleLinkClick
2042
- }), React__default.createElement(LinkLabel, null, item.label), React__default.createElement(IconWrapper, null, customIcon ? customIcon({
2043
- isInverted: isInverted
2044
- }) : React__default.createElement(ArrowDown, null))));
2045
- }))));
2046
- };
2047
- var IndexList$1 = withLibTheme(IndexList);
2048
- var templateObject_1$h, templateObject_2$f, templateObject_3$c, templateObject_4$a, templateObject_5$8;
2049
-
2050
- var Intro$1 = function (_a) {
2051
- var anchorId = _a.anchorId,
2052
- title = _a.title,
2053
- titleAs = _a.titleAs,
2054
- _b = _a.titleSize,
2055
- titleSize = _b === void 0 ? 'heading-2' : _b,
2056
- superTitle = _a.superTitle,
2057
- superTitleAs = _a.superTitleAs,
2058
- abstract = _a.abstract,
2059
- text = _a.text,
2060
- primaryAction = _a.primaryAction,
2061
- secondaryAction = _a.secondaryAction,
2062
- _c = _a.isCentered,
2063
- isCentered = _c === void 0 ? false : _c,
2064
- _d = _a.isStackable,
2065
- isStackable = _d === void 0 ? false : _d,
2066
- bgMode = _a.bgMode,
2067
- image = _a.image;
2068
- var colors = useLibTheme().colors;
2069
- var isInverted = bgMode === 'inverted'; // set default ratio settings
2070
-
2071
- if (image && !(image === null || image === void 0 ? void 0 : image.ratios)) {
2072
- image.ratios = {
2073
- small: {
2074
- h: 1,
2075
- w: 1
2076
- }
2077
- };
2078
- }
2079
-
2080
- return React__default.createElement(Section, {
2081
- addSeperation: true,
2082
- anchorId: anchorId,
2083
- isStackable: isStackable,
2084
- bgColor: isInverted ? colors.sectionBg.dark : bgMode ? colors.sectionBg.medium : colors.sectionBg.light,
2085
- bgMode: mapToBgMode(bgMode)
2086
- }, React__default.createElement(Wrapper, {
2087
- clampWidth: "normal",
2088
- addWhitespace: true
2089
- }, React__default.createElement(IntroBlock, {
2090
- title: title,
2091
- titleAs: titleAs,
2092
- titleSize: titleSize,
2093
- superTitle: superTitle,
2094
- superTitleAs: superTitleAs,
2095
- abstract: abstract,
2096
- text: text,
2097
- colorMode: isInverted ? 'inverted' : 'default',
2098
- secondaryAction: secondaryAction,
2099
- primaryAction: primaryAction,
2100
- isCentered: isCentered,
2101
- image: image,
2102
- clampTitle: true,
2103
- clampAbstract: true,
2104
- clampText: true
2105
- })));
2106
- };
2107
- var Intro$2 = withLibTheme(Intro$1);
2108
-
2109
- var MapSection = styled(Section).withConfig({
2110
- displayName: "Map__MapSection",
2111
- componentId: "sc-6qc5jb-0"
2112
- })(templateObject_1$g || (templateObject_1$g = __makeTemplateObject(["\n position: relative;\n min-height: 500px;\n z-index: 0;\n"], ["\n position: relative;\n min-height: 500px;\n z-index: 0;\n"])));
2113
- var MapContainer = styled.div.withConfig({
2114
- displayName: "Map__MapContainer",
2115
- componentId: "sc-6qc5jb-1"
2116
- })(templateObject_3$b || (templateObject_3$b = __makeTemplateObject(["\n position: relative;\n top: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n z-index: 0;\n\n height: 100%;\n min-height: 230px;\n\n @media ", " {\n position: absolute;\n /** \n calculate width of 6 grid cols (grid width = viewport width without wrapper paddings)\n and add left or right wrapper padding afterwards\n */\n width: calc(\n ", " + ", "px\n );\n left: ", ";\n right: ", ";\n }\n\n @media ", " {\n width: calc(50% - ", "px ", "px);\n }\n\n @media ", " {\n width: calc(\n ", "px - ", "px +\n ", "px\n );\n\n left: ", ";\n right: ", ";\n\n ", ";\n }\n"], ["\n position: relative;\n top: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n z-index: 0;\n\n height: 100%;\n min-height: 230px;\n\n @media ", " {\n position: absolute;\n /** \n calculate width of 6 grid cols (grid width = viewport width without wrapper paddings)\n and add left or right wrapper padding afterwards\n */\n width: calc(\n ", " + ", "px\n );\n left: ", ";\n right: ", ";\n }\n\n @media ", " {\n width: calc(50% - ", "px ", "px);\n }\n\n @media ", " {\n width: calc(\n ", "px - ", "px +\n ", "px\n );\n\n left: ", ";\n right: ", ";\n\n ", ";\n }\n"])), mq.semilarge, getGridWidth({
2117
- cols: 6,
2118
- gridWidth: "100% - ".concat(wrapperWhitespace * 2, "px ")
2119
- }), wrapperWhitespace, function (_a) {
2120
- var isMirrored = _a.isMirrored;
2121
- return isMirrored ? 'auto' : '0';
2122
- }, function (_a) {
2123
- var isMirrored = _a.isMirrored;
2124
- return isMirrored ? '0' : 'auto';
2125
- }, mq.xlarge, gridSettings.gutter, wrapperWhitespace, mq.xxlarge, spacings.wrapperLarge / 2, gridSettings.gutter, wrapperWhitespace, function (_a) {
2126
- var isMirrored = _a.isMirrored;
2127
- return isMirrored ? 'auto' : '50%';
2128
- }, function (_a) {
2129
- var isMirrored = _a.isMirrored;
2130
- return isMirrored ? '50%' : 'auto';
2131
- }, function (_a) {
2132
- var isMirrored = _a.isMirrored;
2133
- return css(templateObject_2$e || (templateObject_2$e = __makeTemplateObject(["\n transform: translateX(\n calc(\n ", "\n (", "px)\n )\n );\n "], ["\n transform: translateX(\n calc(\n ", "\n (", "px)\n )\n );\n "])), isMirrored ? "(100% + ".concat(gridSettings.gutter, "px) - ") : "(-100% - ".concat(gridSettings.gutter, "px) + "), wrapperWhitespace);
2134
- });
2135
- var CardWrapper = styled(Wrapper).withConfig({
2136
- displayName: "Map__CardWrapper",
2137
- componentId: "sc-6qc5jb-2"
2138
- })(templateObject_4$9 || (templateObject_4$9 = __makeTemplateObject(["\n pointer-events: none;\n"], ["\n pointer-events: none;\n"])));
2139
- var CardContainer = styled.div.withConfig({
2140
- displayName: "Map__CardContainer",
2141
- componentId: "sc-6qc5jb-3"
2142
- })(templateObject_5$7 || (templateObject_5$7 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n position: relative;\n width: 100%;\n pointer-events: all;\n\n ", "\n\n @media ", " {\n ", "\n }\n"], ["\n display: flex;\n flex-direction: row;\n position: relative;\n width: 100%;\n pointer-events: all;\n\n ", "\n\n @media ", " {\n ", "\n }\n"])), function (_a) {
2143
- var theme = _a.theme;
2144
- return withRange(getGlobals(theme).sections.seperation.padding.default, 'padding-bottom');
2145
- }, mq.semilarge, function (_a) {
2146
- var theme = _a.theme;
2147
- return withRange(getGlobals(theme).sections.seperation.padding.default, 'padding-top');
2148
- });
2149
- var InfoCardView = styled.div.withConfig({
2150
- displayName: "Map__InfoCardView",
2151
- componentId: "sc-6qc5jb-4"
2152
- })(templateObject_6$5 || (templateObject_6$5 = __makeTemplateObject(["\n min-height: 100px;\n pointer-events: all;\n\n flex: 1 0 80%;\n max-width: 80%;\n\n & > * + * {\n margin-top: ", "px;\n }\n"], ["\n min-height: 100px;\n pointer-events: all;\n\n flex: 1 0 80%;\n max-width: 80%;\n\n & > * + * {\n margin-top: ", "px;\n }\n"])), spacings.spacer);
2153
- var CardHeader = styled.div.withConfig({
2154
- displayName: "Map__CardHeader",
2155
- componentId: "sc-6qc5jb-5"
2156
- })(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject(["\n display: flex;\n"], ["\n display: flex;\n"])));
2157
- var ContactList = styled.ul.withConfig({
2158
- displayName: "Map__ContactList",
2159
- componentId: "sc-6qc5jb-6"
2160
- })(templateObject_8 || (templateObject_8 = __makeTemplateObject(["\n padding: 0;\n list-style-type: none;\n color: ", ";\n\n li {\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 0;\n margin: 0;\n }\n\n li + li {\n margin-top: ", "px;\n }\n\n span:first-child {\n flex: 0 0 30px;\n max-width: 30px;\n\n & > * {\n max-width: 100%;\n }\n }\n"], ["\n padding: 0;\n list-style-type: none;\n color: ", ";\n\n li {\n display: flex;\n flex-direction: row;\n align-items: center;\n padding: 0;\n margin: 0;\n }\n\n li + li {\n margin-top: ", "px;\n }\n\n span:first-child {\n flex: 0 0 30px;\n max-width: 30px;\n\n & > * {\n max-width: 100%;\n }\n }\n"])), function (_a) {
2161
- var theme = _a.theme,
2162
- isInverted = _a.isInverted;
2163
- return isInverted ? getColors(theme).text.inverted : getColors(theme).text.default;
2164
- }, spacings.nudge * 3);
2165
- var ContactListLink = styled(Link).withConfig({
2166
- displayName: "Map__ContactListLink",
2167
- componentId: "sc-6qc5jb-7"
2168
- })(templateObject_9 || (templateObject_9 = __makeTemplateObject(["\n display: block;\n\n ", "\n color: ", ";\n\n * + & {\n margin-left: ", "px;\n }\n"], ["\n display: block;\n\n ", "\n color: ", ";\n\n * + & {\n margin-left: ", "px;\n }\n"])), copyStyle('copy-b', 'big'), function (_a) {
2169
- var theme = _a.theme,
2170
- isInverted = _a.isInverted;
2171
- return isInverted ? getFonts(theme)['copy-b'].big.colorInverted : getFonts(theme)['copy-b'].big.color;
2172
- }, spacings.nudge * 1.5);
2173
- var AddressContainer = styled.div.withConfig({
2174
- displayName: "Map__AddressContainer",
2175
- componentId: "sc-6qc5jb-8"
2176
- })(templateObject_11 || (templateObject_11 = __makeTemplateObject(["\n display: -ms-grid;\n display: grid;\n\n ", "\n\n & > * + * {\n margin-left: ", "px;\n }\n"], ["\n display: -ms-grid;\n display: grid;\n\n ", "\n\n & > * + * {\n margin-left: ", "px;\n }\n"])), function (_a) {
2177
- var hasIcon = _a.hasIcon;
2178
- return css(templateObject_10 || (templateObject_10 = __makeTemplateObject(["\n -ms-grid-columns: ", " 1fr;\n grid-template-columns: ", " 1fr;\n -ms-grid-rows: ", " 1fr;\n grid-auto-rows: ", " 1fr;\n "], ["\n -ms-grid-columns: ", " 1fr;\n grid-template-columns: ", " 1fr;\n -ms-grid-rows: ", " 1fr;\n grid-auto-rows: ", " 1fr;\n "])), hasIcon ? 'min-content' : '', hasIcon ? 'min-content' : '', hasIcon ? 'min-content' : '', hasIcon ? 'min-content' : '');
2179
- }, spacings.nudge * 2);
2180
-
2181
- var CompanyInfo = function (_a) {
2182
- var isInverted = _a.isInverted,
2183
- companyName = _a.companyName,
2184
- address = _a.address,
2185
- customIcon = _a.customIcon;
2186
- return React__default.createElement(AddressContainer, {
2187
- hasIcon: !!customIcon
2188
- }, customIcon && React__default.createElement("span", null, " ", customIcon(), " "), React__default.createElement("div", null, React__default.createElement(Copy, {
2189
- type: "copy-b",
2190
- size: "big",
2191
- isInverted: isInverted
2192
- }, companyName), address && React__default.createElement(Copy, {
2193
- type: "copy-b",
2194
- size: "big",
2195
- isInverted: isInverted
2196
- }, React__default.createElement("div", null, address.street), React__default.createElement("div", null, "".concat(address.postalCode, " ").concat(address.city)), React__default.createElement("div", null, address.country))));
2197
- };
2198
-
2199
- var Desc = styled(Copy).withConfig({
2200
- displayName: "Map__Desc",
2201
- componentId: "sc-6qc5jb-9"
2202
- })(templateObject_12 || (templateObject_12 = __makeTemplateObject(["\n @media ", " {\n margin-top: ", "px;\n }\n"], ["\n @media ", " {\n margin-top: ", "px;\n }\n"])), mq.semilarge, spacings.spacer * 2.5);
2203
-
2204
- var LocationInfoCard = function (_a) {
2205
- var _b, _c, _d, _e, _f;
2206
-
2207
- var isInverted = _a.isInverted,
2208
- title = _a.title,
2209
- titleAs = _a.titleAs,
2210
- superTitle = _a.superTitle,
2211
- superTitleAs = _a.superTitleAs,
2212
- companyName = _a.companyName,
2213
- address = _a.address,
2214
- addressIcon = _a.addressIcon,
2215
- contact = _a.contact,
2216
- description = _a.description;
2217
- var colors = useLibTheme().colors;
2218
- var addressIconContent = addressIcon ? addressIcon({
2219
- isInverted: isInverted
2220
- }) : React__default.createElement(LocationPin, {
2221
- iconColor: isInverted ? colors.text.inverted : colors.text.default
2222
- });
2223
- var phoneIconContent = ((_b = contact === null || contact === void 0 ? void 0 : contact.telephone) === null || _b === void 0 ? void 0 : _b.icon) ? contact.telephone.icon({
2224
- isInverted: isInverted
2225
- }) : React__default.createElement(Phone, null);
2226
- var mailIconContent = ((_c = contact === null || contact === void 0 ? void 0 : contact.email) === null || _c === void 0 ? void 0 : _c.icon) ? contact.email.icon({
2227
- isInverted: isInverted
2228
- }) : React__default.createElement(Mail, null);
2229
- return React__default.createElement(InfoCardView, null, React__default.createElement(CardHeader, null, React__default.createElement(IntroBlock, {
2230
- colorMode: isInverted ? 'inverted' : 'default',
2231
- title: title,
2232
- titleAs: titleAs,
2233
- superTitle: superTitle,
2234
- superTitleAs: superTitleAs
2235
- })), companyName && React__default.createElement(CompanyInfo, {
2236
- companyName: companyName || '',
2237
- address: address,
2238
- customIcon: addressIconContent ? function () {
2239
- return addressIconContent;
2240
- } : undefined,
2241
- isInverted: isInverted
2242
- }), contact && React__default.createElement(ContactList, {
2243
- isInverted: isInverted
2244
- }, ((_d = contact === null || contact === void 0 ? void 0 : contact.telephone) === null || _d === void 0 ? void 0 : _d.label) && React__default.createElement("li", null, phoneIconContent && React__default.createElement("span", null, phoneIconContent), React__default.createElement(ContactListLink, {
2245
- isInverted: isInverted,
2246
- href: "tel:".concat(contact.telephone.link || contact.telephone.label)
2247
- }, (_e = contact.telephone) === null || _e === void 0 ? void 0 : _e.label)), ((_f = contact === null || contact === void 0 ? void 0 : contact.email) === null || _f === void 0 ? void 0 : _f.label) && React__default.createElement("li", null, mailIconContent && React__default.createElement("span", null, mailIconContent), React__default.createElement(ContactListLink, {
2248
- isInverted: isInverted,
2249
- href: "mailto:".concat((contact === null || contact === void 0 ? void 0 : contact.email.link) || contact.email.label)
2250
- }, contact === null || contact === void 0 ? void 0 : contact.email.label))), React__default.createElement(Desc, {
2251
- isInverted: isInverted,
2252
- innerHTML: description
2253
- }));
2254
- };
2255
-
2256
- var Controls = styled.div.withConfig({
2257
- displayName: "Map__Controls",
2258
- componentId: "sc-6qc5jb-10"
2259
- })(templateObject_13 || (templateObject_13 = __makeTemplateObject(["\n flex: 1 0 20%;\n max-width: 20%;\n display: flex;\n flex-direction: column;\n align-self: flex-start;\n margin-left: auto;\n text-align: right;\n\n & > * + * {\n margin-top: ", "px;\n }\n"], ["\n flex: 1 0 20%;\n max-width: 20%;\n display: flex;\n flex-direction: column;\n align-self: flex-start;\n margin-left: auto;\n text-align: right;\n\n & > * + * {\n margin-top: ", "px;\n }\n"])), spacings.nudge);
2260
- var FylToCtrlContainer = styled.button.withConfig({
2261
- displayName: "Map__FylToCtrlContainer",
2262
- componentId: "sc-6qc5jb-11"
2263
- })(templateObject_14 || (templateObject_14 = __makeTemplateObject(["\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1000;\n background: none;\n border: none;\n margin: 0;\n padding: 0;\n\n margin-top: ", "px;\n margin-right: ", "px;\n color: ", ";\n\n cursor: pointer;\n"], ["\n position: absolute;\n top: 0;\n right: 0;\n z-index: 1000;\n background: none;\n border: none;\n margin: 0;\n padding: 0;\n\n margin-top: ", "px;\n margin-right: ", "px;\n color: ", ";\n\n cursor: pointer;\n"])), spacings.spacer, spacings.spacer, function (_a) {
2264
- var theme = _a.theme;
2265
- return getColors(theme).elementBg.dark;
2266
- });
2267
-
2268
- var Map = function (_a) {
2269
- var anchorId = _a.anchorId,
2270
- bgMode = _a.bgMode,
2271
- _b = _a.isMirrored,
2272
- isMirrored = _b === void 0 ? false : _b,
2273
- provider = _a.provider,
2274
- attribution = _a.attribution,
2275
- _c = _a.center,
2276
- center = _c === void 0 ? [51.505, -0.09] : _c,
2277
- _d = _a.zoom,
2278
- zoom = _d === void 0 ? 5 : _d,
2279
- flyToZoom = _a.flyToZoom,
2280
- initialLocation = _a.initialLocation,
2281
- locations = _a.locations,
2282
- _e = _a.allMarkersOnInit,
2283
- allMarkersOnInit = _e === void 0 ? false : _e,
2284
- fitBoundsPadding = _a.fitBoundsPadding,
2285
- flyToControl = _a.flyToControl,
2286
- controlNext = _a.controlNext,
2287
- controlPrev = _a.controlPrev;
2288
- var colors = useLibTheme().colors;
2289
-
2290
- var _f = useState(initialLocation || ''),
2291
- activeLocationId = _f[0],
2292
- setActiveLocationId = _f[1];
2293
-
2294
- var _g = useState(false),
2295
- isDirty = _g[0],
2296
- setIsDirty = _g[1];
2297
-
2298
- var activeLocation = useMemo(function () {
2299
- return locations === null || locations === void 0 ? void 0 : locations.find(function (l) {
2300
- return l.id === activeLocationId;
2301
- });
2302
- }, [activeLocationId, locations]);
2303
- var hasBg = bgMode === 'full';
2304
- var isInverted = bgMode === 'inverted';
2305
- var defaultMarker = {
2306
- size: [28, 28],
2307
- anchor: [14, 28],
2308
- sizeActive: [70, 70],
2309
- anchorActive: [35, 70],
2310
- url: getSVGDataImg(React__default.createElement(LocationPin, null))
2311
- };
2312
-
2313
- var _h = useLeafletMap({
2314
- url: provider,
2315
- attribution: attribution,
2316
- center: center,
2317
- zoom: zoom,
2318
- activeMarkerId: activeLocationId,
2319
- markers: locations === null || locations === void 0 ? void 0 : locations.map(function (_a) {
2320
- var id = _a.id,
2321
- position = _a.position,
2322
- icon = _a.icon;
2323
- return {
2324
- id: id,
2325
- position: position,
2326
- icon: icon || defaultMarker,
2327
- isInteractive: true
2328
- };
2329
- }),
2330
- fitBoundsPadding: fitBoundsPadding,
2331
- onMarkerClick: setActiveLocationId
2332
- }),
2333
- isLoaded = _h.isLoaded,
2334
- setMapContainer = _h.setContainer,
2335
- flyToActive = _h.flyToActive,
2336
- showAllMarkers = _h.showAllMarkers;
2337
-
2338
- var goToNext = function () {
2339
- setActiveLocationId(function (prev) {
2340
- if (!locations) return prev;
2341
- var currentIndex = locations.findIndex(function (l) {
2342
- return l.id === activeLocationId;
2343
- });
2344
- if (currentIndex === -1) return prev; // get new index
2345
-
2346
- var newIndex = (currentIndex + 1) % locations.length;
2347
- return locations[newIndex].id;
2348
- });
2349
- };
2350
-
2351
- var goToPrevious = function () {
2352
- setActiveLocationId(function (prev) {
2353
- if (!locations) return prev;
2354
- var currentIndex = locations.findIndex(function (l) {
2355
- return l.id === activeLocationId;
2356
- });
2357
- if (currentIndex === -1) return prev; // get new index
2358
-
2359
- var newIndex = currentIndex - 1 < 0 ? locations.length - 1 : currentIndex - 1;
2360
- return locations[newIndex].id;
2361
- });
2362
- };
2363
-
2364
- useEffect(function () {
2365
- if (isLoaded && !isDirty) {
2366
- if (allMarkersOnInit) showAllMarkers();
2367
- } else {
2368
- flyToActive(flyToZoom);
2369
- }
2370
- }, [activeLocationId, allMarkersOnInit, flyToActive, flyToZoom, initialLocation, isDirty, isLoaded, showAllMarkers]);
2371
- useEffect(function () {
2372
- if (!isDirty && activeLocationId !== initialLocation) setIsDirty(true);
2373
- }, [activeLocationId, initialLocation, isDirty]);
2374
- return React__default.createElement(MapSection, {
2375
- anchorId: anchorId,
2376
- bgColor: isInverted ? colors.sectionBg.dark : hasBg ? colors.sectionBg.medium : colors.sectionBg.light,
2377
- bgMode: mapToBgMode(bgMode, true)
2378
- }, locations && generateLocalBusiness(locations), React__default.createElement(MapContainer, {
2379
- ref: setMapContainer,
2380
- isMirrored: isMirrored
2381
- }, flyToControl && React__default.createElement(FylToCtrlContainer, {
2382
- onClick: function (ev) {
2383
- ev.stopPropagation();
2384
- flyToActive(flyToZoom);
2385
- }
2386
- }, flyToControl)), React__default.createElement(CardWrapper, {
2387
- addWhitespace: true,
2388
- clampWidth: "normal"
2389
- }, React__default.createElement(Grid.Row, null, React__default.createElement(Grid.Col, {
2390
- semilarge: {
2391
- span: 6 / 12,
2392
- move: (isMirrored ? 6 : 0) / 12
2393
- }
2394
- }), React__default.createElement(Grid.Col, {
2395
- semilarge: {
2396
- span: 6 / 12,
2397
- move: (isMirrored ? -6 : 0) / 12
2398
- }
2399
- }, React__default.createElement(CardContainer, {
2400
- isMirrored: isMirrored
2401
- }, isValidArray(locations, false) && React__default.createElement(React__default.Fragment, null, activeLocation && React__default.createElement(LocationInfoCard, __assign({}, activeLocation, {
2402
- isInverted: isInverted
2403
- })), locations.length > 1 && React__default.createElement(Controls, null, controlNext ? controlNext({
2404
- isInverted: isInverted,
2405
- isActive: true,
2406
- clickHandler: goToNext,
2407
- name: 'control_next_head'
2408
- }) : React__default.createElement(Control$1, {
2409
- isInverted: isInverted,
2410
- isDisabled: false,
2411
- onClick: goToNext
2412
- }, React__default.createElement(ArrowRightGhost, null)), controlPrev ? controlPrev({
2413
- isInverted: isInverted,
2414
- isActive: true,
2415
- clickHandler: goToPrevious,
2416
- name: 'control_prev_head'
2417
- }) : React__default.createElement(Control$1, {
2418
- isInverted: isInverted,
2419
- isDisabled: false,
2420
- onClick: goToPrevious
2421
- }, React__default.createElement(ArrowLeftGhost, null)))))))));
2422
- };
2423
- var Map$1 = withLibTheme(Map);
2424
- var templateObject_1$g, templateObject_2$e, templateObject_3$b, templateObject_4$9, templateObject_5$7, templateObject_6$5, templateObject_7$2, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14;
2425
-
2426
- var View$3 = styled(Link).withConfig({
2427
- displayName: "NavBlock__View",
2428
- componentId: "sc-7v33be-0"
2429
- })(templateObject_1$f || (templateObject_1$f = __makeTemplateObject(["\n display: -ms-grid;\n display: grid;\n\n -ms-grid-columns: ", ";\n grid-template-columns: ", ";\n -ms-grid-rows: min-content 1fr;\n grid-auto-rows: min-content 1fr;\n\n cursor: pointer;\n text-decoration: none;\n color: ", ";\n\n outline-color: ", ";\n\n transition: all ease-in-out 0.2s;\n\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n color: ", ";\n }\n }\n"], ["\n display: -ms-grid;\n display: grid;\n\n -ms-grid-columns: ", ";\n grid-template-columns: ", ";\n -ms-grid-rows: min-content 1fr;\n grid-auto-rows: min-content 1fr;\n\n cursor: pointer;\n text-decoration: none;\n color: ", ";\n\n outline-color: ", ";\n\n transition: all ease-in-out 0.2s;\n\n @media (hover: hover) and (pointer: fine) {\n &:hover {\n color: ", ";\n }\n }\n"])), function (_a) {
2430
- var hasIcon = _a.hasIcon;
2431
- return hasIcon ? 'min-content 1fr' : '1fr';
2432
- }, function (_a) {
2433
- var hasIcon = _a.hasIcon;
2434
- return hasIcon ? 'min-content 1fr' : '1fr';
2435
- }, function (_a) {
2436
- var theme = _a.theme,
2437
- isInverted = _a.isInverted;
2438
- return isInverted ? getColors(theme).primary.inverted : getColors(theme).primary.default;
2439
- }, function (_a) {
2440
- var theme = _a.theme,
2441
- isInverted = _a.isInverted;
2442
- return isInverted ? getColors(theme).primary.inverted : getColors(theme).primary.default;
2443
- }, function (_a) {
2444
- var theme = _a.theme,
2445
- isInverted = _a.isInverted;
2446
- return isInverted ? getColors(theme).primary.invertedHover : getColors(theme).primary.hover;
2447
- });
2448
- var MainLabel = styled.div.withConfig({
2449
- displayName: "NavBlock__MainLabel",
2450
- componentId: "sc-7v33be-1"
2451
- })(templateObject_2$d || (templateObject_2$d = __makeTemplateObject(["\n display: flex;\n align-items: center;\n margin-left: ", ";\n"], ["\n display: flex;\n align-items: center;\n margin-left: ", ";\n"])), function (_a) {
2452
- var hasIcon = _a.hasIcon;
2453
- return hasIcon && "".concat(spacings.nudge * 3, "px");
2454
- });
2455
- var Text$2 = styled(Copy).withConfig({
2456
- displayName: "NavBlock__Text",
2457
- componentId: "sc-7v33be-2"
2458
- })(templateObject_3$a || (templateObject_3$a = __makeTemplateObject(["\n margin-top: ", "px;\n margin-left: ", ";\n"], ["\n margin-top: ", "px;\n margin-left: ", ";\n"])), function (_a) {
2459
- var hasIcon = _a.hasIcon;
2460
- return hasIcon ? spacings.nudge : spacings.nudge * 2;
2461
- }, function (_a) {
2462
- var hasIcon = _a.hasIcon;
2463
- return hasIcon && "".concat(spacings.nudge * 3, "px");
2464
- });
2465
- var Icon = styled.div.withConfig({
2466
- displayName: "NavBlock__Icon",
2467
- componentId: "sc-7v33be-3"
2468
- })(templateObject_4$8 || (templateObject_4$8 = __makeTemplateObject(["\n display: flex;\n align-items: center;\n\n & > * {\n height: 48px;\n width: 48px;\n }\n"], ["\n display: flex;\n align-items: center;\n\n & > * {\n height: 48px;\n width: 48px;\n }\n"])));
2469
- var Title$1 = styled(Copy).withConfig({
2470
- displayName: "NavBlock__Title",
2471
- componentId: "sc-7v33be-4"
2472
- })(templateObject_5$6 || (templateObject_5$6 = __makeTemplateObject(["\n display: inline-block;\n"], ["\n display: inline-block;\n"])));
2473
- var TitleIcon = styled.span.withConfig({
2474
- displayName: "NavBlock__TitleIcon",
2475
- componentId: "sc-7v33be-5"
2476
- })(templateObject_6$4 || (templateObject_6$4 = __makeTemplateObject(["\n display: inline-block;\n margin-left: ", "px;\n\n @media ", " {\n margin-left: ", "px;\n }\n"], ["\n display: inline-block;\n margin-left: ", "px;\n\n @media ", " {\n margin-left: ", "px;\n }\n"])), spacings.nudge * 2, mq.medium, spacings.nudge * 3);
2477
-
2478
- var NavBlock = function (_a) {
2479
- var _b = _a.isInverted,
2480
- isInverted = _b === void 0 ? false : _b,
2481
- title = _a.title,
2482
- text = _a.text,
2483
- link = _a.link,
2484
- customIcon = _a.customIcon,
2485
- customTitleIcon = _a.customTitleIcon,
2486
- className = _a.className;
2487
- return React__default.createElement(View$3, __assign({}, link, {
2488
- isInverted: isInverted,
2489
- hasIcon: !!customIcon,
2490
- className: className
2491
- }), customIcon ? React__default.createElement(Icon, null, customIcon({})) : '', React__default.createElement(MainLabel, {
2492
- hasIcon: !!customIcon
2493
- }, title && React__default.createElement(Title$1, {
2494
- textColor: "inherit",
2495
- size: "medium",
2496
- type: "copy-b"
2497
- }, title, title && customTitleIcon && React__default.createElement(TitleIcon, null, customTitleIcon({
2498
- isInverted: isInverted
2499
- })))), text && React__default.createElement(React__default.Fragment, null, React__default.createElement("span", null), React__default.createElement(Text$2, {
2500
- size: "small",
2501
- isInverted: isInverted,
2502
- innerHTML: text,
2503
- hasIcon: !!customIcon
2504
- })));
2505
- };
2506
- var templateObject_1$f, templateObject_2$d, templateObject_3$a, templateObject_4$8, templateObject_5$6, templateObject_6$4;
2507
-
2508
- var List = styled.ul.withConfig({
2509
- displayName: "NavList__List",
2510
- componentId: "sc-1lrkz0q-0"
2511
- })(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n margin: 0;\n margin-top: -", "px;\n margin-left: -", "px;\n padding: 0;\n list-style: none;\n\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n flex-wrap: wrap;\n\n @media ", " {\n margin-top: -", "px;\n }\n"], ["\n margin: 0;\n margin-top: -", "px;\n margin-left: -", "px;\n padding: 0;\n list-style: none;\n\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n flex-wrap: wrap;\n\n @media ", " {\n margin-top: -", "px;\n }\n"])), spacings.spacer, spacings.spacer, mq.medium, spacings.spacer * 2);
2512
- var ListItem = styled.li.withConfig({
2513
- displayName: "NavList__ListItem",
2514
- componentId: "sc-1lrkz0q-1"
2515
- })(templateObject_2$c || (templateObject_2$c = __makeTemplateObject(["\n padding-top: ", "px;\n padding-left: ", "px;\n flex: 1 0 100%;\n\n @media ", " {\n flex: 0 0 50%;\n max-width: 50%;\n padding-top: ", "px;\n }\n\n @media ", " {\n flex: 0 0 33.33%;\n max-width: 33.33%;\n }\n\n // print version\n @media print {\n flex: 0 0 50%;\n max-width: 50%;\n padding-top: ", "px;\n }\n"], ["\n padding-top: ", "px;\n padding-left: ", "px;\n flex: 1 0 100%;\n\n @media ", " {\n flex: 0 0 50%;\n max-width: 50%;\n padding-top: ", "px;\n }\n\n @media ", " {\n flex: 0 0 33.33%;\n max-width: 33.33%;\n }\n\n // print version\n @media print {\n flex: 0 0 50%;\n max-width: 50%;\n padding-top: ", "px;\n }\n"])), spacings.spacer, spacings.spacer, mq.medium, spacings.spacer * 2, mq.large, spacings.spacer * 2);
2516
-
2517
- var NavList = function (_a) {
2518
- var anchorId = _a.anchorId,
2519
- items = _a.items,
2520
- bgMode = _a.bgMode,
2521
- customTitleIcon = _a.customTitleIcon;
2522
- var colors = useLibTheme().colors;
2523
- var isInverted = bgMode === 'inverted';
2524
- var hasBg = bgMode === 'full';
2525
- return React__default.createElement(Section, {
2526
- addSeperation: true,
2527
- anchorId: anchorId,
2528
- bgColor: isInverted ? colors.sectionBg.dark : hasBg ? colors.sectionBg.medium : colors.sectionBg.light,
2529
- bgMode: mapToBgMode(bgMode, true)
2530
- }, React__default.createElement(Wrapper, {
2531
- addWhitespace: true
2532
- }, React__default.createElement(List, null, items === null || items === void 0 ? void 0 : items.map(function (item, i) {
2533
- return React__default.createElement(ListItem, {
2534
- key: i
2535
- }, React__default.createElement(NavBlock, __assign({}, item, {
2536
- isInverted: isInverted,
2537
- customTitleIcon: customTitleIcon
2538
- })));
2539
- }))));
2540
- };
2541
- var NavList$1 = withLibTheme(NavList);
2542
- var templateObject_1$e, templateObject_2$c;
2543
-
2544
- var CARD_MIN_WIDTH = 240;
2545
- var CARD_MAX_WIDTH = 440;
2546
- var MEDIA_QUERIES = {
2547
- medium: '(min-width: 36.5em)',
2548
- semilarge: '(min-width: 54.75em)',
2549
- large: '(min-width: 73em)',
2550
- xlarge: '(min-width: 90em)'
2551
- };
2552
- var View$2 = styled.li.withConfig({
2553
- displayName: "NumberList__View",
2554
- componentId: "sc-ehx754-0"
2555
- })(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n text-align: ", ";\n\n & > * {\n margin: ", ";\n margin-right: auto;\n }\n\n & > * + * {\n margin-top: ", "px;\n }\n"], ["\n text-align: ", ";\n\n & > * {\n margin: ", ";\n margin-right: auto;\n }\n\n & > * + * {\n margin-top: ", "px;\n }\n"])), function (_a) {
2556
- var isCentered = _a.isCentered;
2557
- return isCentered ? 'center' : 'left';
2558
- }, function (_a) {
2559
- var isCentered = _a.isCentered;
2560
- return isCentered ? '0 auto' : 0;
2561
- }, spacings.nudge * 3);
2562
- var ImageContainer = styled.div.withConfig({
2563
- displayName: "NumberList__ImageContainer",
2564
- componentId: "sc-ehx754-1"
2565
- })(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\n display: flex;\n justify-content: ", ";\n margin-bottom: ", "px;\n max-width: 100%;\n"], ["\n display: flex;\n justify-content: ", ";\n margin-bottom: ", "px;\n max-width: 100%;\n"])), function (_a) {
2566
- var isCentered = _a.isCentered;
2567
- return isCentered ? 'center' : 'flex-start';
2568
- }, spacings.nudge * 3);
2569
- var StyledImage$4 = styled(Image).withConfig({
2570
- displayName: "NumberList__StyledImage",
2571
- componentId: "sc-ehx754-2"
2572
- })(templateObject_3$9 || (templateObject_3$9 = __makeTemplateObject(["\n overflow: hidden;\n border-radius: ", ";\n"], ["\n overflow: hidden;\n border-radius: ", ";\n"])), function (_a) {
2573
- var theme = _a.theme;
2574
- return getGlobals(theme).sections.edgeRadius;
2575
- });
2576
- var Label = styled(Copy).withConfig({
2577
- displayName: "NumberList__Label",
2578
- componentId: "sc-ehx754-3"
2579
- })(templateObject_4$7 || (templateObject_4$7 = __makeTemplateObject([""], [""])));
2580
- var Text$1 = styled(Copy).withConfig({
2581
- displayName: "NumberList__Text",
2582
- componentId: "sc-ehx754-4"
2583
- })(templateObject_5$5 || (templateObject_5$5 = __makeTemplateObject([""], [""])));
2584
- var NumberListCard = forwardRef(function (_a, ref) {
2585
- var image = _a.image,
2586
- label = _a.label,
2587
- digit = _a.digit,
2588
- isInverted = _a.isInverted,
2589
- isCentered = _a.isCentered,
2590
- text = _a.text,
2591
- className = _a.className;
2592
- var colors = useLibTheme().colors;
2593
- return React__default.createElement(View$2, {
2594
- ref: ref,
2595
- isCentered: isCentered,
2596
- className: className
2597
- }, (image === null || image === void 0 ? void 0 : image.small) && React__default.createElement(ImageContainer, {
2598
- isCentered: isCentered
2599
- }, React__default.createElement(StyledImage$4, {
2600
- isInverted: isInverted,
2601
- small: image.small,
2602
- medium: image.medium,
2603
- semilarge: image.semilarge,
2604
- large: image.large,
2605
- xlarge: image.xlarge,
2606
- alt: image.alt,
2607
- coverSpace: image.coverSpace,
2608
- ratios: image.ratios,
2609
- showPlaceholder: image.showPlaceholder
2610
- })), React__default.createElement(Callout, {
2611
- "data-sheet": "digit",
2612
- size: "mediumBold",
2613
- renderAs: "div",
2614
- isInverted: isInverted
2615
- }, digit), React__default.createElement(Label, {
2616
- type: "copy-b",
2617
- size: "big",
2618
- textColor: isInverted ? colors.primary.inverted : colors.primary.default,
2619
- "data-sheet": "label"
2620
- }, label), text && React__default.createElement(Text$1, {
2621
- type: "copy",
2622
- size: "medium",
2623
- isInverted: isInverted,
2624
- "data-sheet": "text",
2625
- innerHTML: text
2626
- }));
2627
- });
2628
- NumberListCard.displayName = 'NumberListCard';
2629
- var CardList = styled.ul.withConfig({
2630
- displayName: "NumberList__CardList",
2631
- componentId: "sc-ehx754-5"
2632
- })(templateObject_6$3 || (templateObject_6$3 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n flex-wrap: wrap;\n justify-content: flex-start;\n align-items: center;\n\n list-style: none;\n padding: 0;\n margin: 0;\n margin-left: -", "px;\n margin-top: -", "px;\n\n & > * {\n flex: 0 0 100%;\n width: 100%;\n min-width: ", "px;\n max-width: ", "px;\n padding-left: ", "px;\n padding-top: ", "px;\n }\n\n @media ", " {\n flex-direction: row;\n justify-content: center;\n align-items: flex-start;\n\n margin-top: -", "px;\n\n & > * {\n flex: 0 0 50%;\n padding-top: ", "px;\n }\n\n & > li:first-child:nth-last-child(1) {\n /* -or- li:only-child { */\n flex: 0 0 100%;\n }\n }\n\n @media ", " {\n & > * {\n flex: 0 0 33.33%;\n }\n\n /* one item */\n & > li:first-child:nth-last-child(1) {\n /* -or- li:only-child { */\n flex: 0 0 100%;\n }\n\n /* two items */\n & > li:first-child:nth-last-child(2),\n & > li:first-child:nth-last-child(2) ~ li {\n flex: 0 0 50%;\n }\n }\n\n @media ", " {\n & > * {\n flex: 0 0 25%;\n }\n\n /* one item */\n & > li:first-child:nth-last-child(1) {\n /* -or- li:only-child { */\n flex: 0 0 100%;\n }\n\n /* two items */\n & > li:first-child:nth-last-child(2),\n & > li:first-child:nth-last-child(2) ~ li {\n flex: 0 0 50%;\n }\n\n /* three items */\n & > li:first-child:nth-last-child(3),\n & > li:first-child:nth-last-child(3) ~ li {\n flex: 0 0 33.33%;\n }\n }\n"], ["\n display: flex;\n flex-direction: column;\n flex-wrap: wrap;\n justify-content: flex-start;\n align-items: center;\n\n list-style: none;\n padding: 0;\n margin: 0;\n margin-left: -", "px;\n margin-top: -", "px;\n\n & > * {\n flex: 0 0 100%;\n width: 100%;\n min-width: ", "px;\n max-width: ", "px;\n padding-left: ", "px;\n padding-top: ", "px;\n }\n\n @media ", " {\n flex-direction: row;\n justify-content: center;\n align-items: flex-start;\n\n margin-top: -", "px;\n\n & > * {\n flex: 0 0 50%;\n padding-top: ", "px;\n }\n\n & > li:first-child:nth-last-child(1) {\n /* -or- li:only-child { */\n flex: 0 0 100%;\n }\n }\n\n @media ", " {\n & > * {\n flex: 0 0 33.33%;\n }\n\n /* one item */\n & > li:first-child:nth-last-child(1) {\n /* -or- li:only-child { */\n flex: 0 0 100%;\n }\n\n /* two items */\n & > li:first-child:nth-last-child(2),\n & > li:first-child:nth-last-child(2) ~ li {\n flex: 0 0 50%;\n }\n }\n\n @media ", " {\n & > * {\n flex: 0 0 25%;\n }\n\n /* one item */\n & > li:first-child:nth-last-child(1) {\n /* -or- li:only-child { */\n flex: 0 0 100%;\n }\n\n /* two items */\n & > li:first-child:nth-last-child(2),\n & > li:first-child:nth-last-child(2) ~ li {\n flex: 0 0 50%;\n }\n\n /* three items */\n & > li:first-child:nth-last-child(3),\n & > li:first-child:nth-last-child(3) ~ li {\n flex: 0 0 33.33%;\n }\n }\n"])), spacings.spacer, spacings.nudge * 6, CARD_MIN_WIDTH + spacings.spacer, CARD_MAX_WIDTH + spacings.spacer, spacings.spacer, spacings.nudge * 6, MEDIA_QUERIES.medium, spacings.nudge * 10, spacings.nudge * 10, MEDIA_QUERIES.semilarge, MEDIA_QUERIES.large);
2633
-
2634
- var NumberList = function (_a) {
2635
- var anchorId = _a.anchorId,
2636
- items = _a.items,
2637
- bgMode = _a.bgMode,
2638
- _b = _a.isCentered,
2639
- isCentered = _b === void 0 ? true : _b;
2640
- var theme = useContext(ThemeContext);
2641
- var isInverted = bgMode === 'inverted';
2642
- var hasBg = bgMode === 'full';
2643
- var numbersRef = useEqualSheetHeight({
2644
- listLength: (items === null || items === void 0 ? void 0 : items.length) || 0,
2645
- identifiers: ['[data-sheet="digit"]', '[data-sheet="label"]', '[data-sheet="text"]'],
2646
- responsive: {
2647
- small: 1,
2648
- medium: 2,
2649
- semilarge: 3,
2650
- large: 4,
2651
- xlarge: 4
2652
- },
2653
- customMediaQueries: MEDIA_QUERIES
2654
- }).sheetRefs;
2655
- return React__default.createElement(Section, {
2656
- addSeperation: true,
2657
- anchorId: anchorId,
2658
- bgColor: isInverted ? getColors(theme).sectionBg.dark : hasBg ? getColors(theme).sectionBg.medium : getColors(theme).sectionBg.light,
2659
- bgMode: mapToBgMode(bgMode, true)
2660
- }, React__default.createElement(Wrapper, {
2661
- addWhitespace: true
2662
- }, React__default.createElement(CardList, null, items === null || items === void 0 ? void 0 : items.map(function (item, i) {
2663
- return React__default.createElement(NumberListCard, __assign({
2664
- key: i,
2665
- ref: numbersRef[i]
2666
- }, item, {
2667
- isInverted: isInverted,
2668
- isCentered: isCentered
2669
- }));
2670
- }))));
2671
- };
2672
- var NumberList$1 = withLibTheme(NumberList);
2673
- var templateObject_1$d, templateObject_2$b, templateObject_3$9, templateObject_4$7, templateObject_5$5, templateObject_6$3;
2674
-
2675
- var View$1 = styled.section.withConfig({
2676
- displayName: "ParallaxBackground__View",
2677
- componentId: "sc-g8idp4-0"
2678
- })(templateObject_1$c || (templateObject_1$c = __makeTemplateObject(["\n position: relative;\n width: 100vw;\n z-index: -1;\n"], ["\n position: relative;\n width: 100vw;\n z-index: -1;\n"])));
2679
- var Parallax = styled.div.withConfig({
2680
- displayName: "ParallaxBackground__Parallax",
2681
- componentId: "sc-g8idp4-1"
2682
- })(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n position: absolute;\n top: 0;\n left: 0;\n margin-left: 0;\n width: 100%;\n"], ["\n position: absolute;\n top: 0;\n left: 0;\n margin-left: 0;\n width: 100%;\n"])));
2683
- var Content$2 = styled.div.withConfig({
2684
- displayName: "ParallaxBackground__Content",
2685
- componentId: "sc-g8idp4-2"
2686
- })(templateObject_3$8 || (templateObject_3$8 = __makeTemplateObject(["\n margin-left: ", ";\n margin-right: ", ";\n\n width: ", ";\n\n max-width: ", "px;\n overflow: hidden;\n\n & > * {\n width: ", ";\n }\n"], ["\n margin-left: ", ";\n margin-right: ", ";\n\n width: ", ";\n\n max-width: ", "px;\n overflow: hidden;\n\n & > * {\n width: ", ";\n }\n"])), function (_a) {
2687
- var hAlign = _a.hAlign;
2688
- return (hAlign === 'right' || hAlign === 'center') && 'auto';
2689
- }, function (_a) {
2690
- var hAlign = _a.hAlign;
2691
- return (hAlign === 'left' || hAlign === 'center') && 'auto';
2692
- }, function (_a) {
2693
- var contentWidth = _a.contentWidth;
2694
- return contentWidth ? contentWidth === -1 ? 'auto' : contentWidth * 100 + '%' : undefined;
2695
- }, spacings.wrapperLarge, function (_a) {
2696
- var contentWidth = _a.contentWidth;
2697
- return contentWidth !== -1 && '100%';
2698
- });
2699
- var StyledImage$3 = styled(Image).withConfig({
2700
- displayName: "ParallaxBackground__StyledImage",
2701
- componentId: "sc-g8idp4-3"
2702
- })(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject(["\n max-width: ", ";\n float: ", ";\n ", "\n"], ["\n max-width: ", ";\n float: ", ";\n ", "\n"])), function (_a) {
2703
- var coverSpace = _a.coverSpace;
2704
- return !coverSpace && 'none';
2705
- }, function (_a) {
2706
- var hAlign = _a.hAlign;
2707
- return hAlign === 'left' || hAlign === 'right' ? hAlign : undefined;
2708
- }, function (_a) {
2709
- var coverSpace = _a.coverSpace,
2710
- hAlign = _a.hAlign;
2711
- return !coverSpace && hAlign === 'center' && css(templateObject_4$6 || (templateObject_4$6 = __makeTemplateObject(["\n transform: translateX(-50%);\n margin-left: 50%;\n "], ["\n transform: translateX(-50%);\n margin-left: 50%;\n "])));
2712
- });
2713
-
2714
- var ParallaxBackground = function (_a) {
2715
- var image = _a.image,
2716
- _b = _a.hAlign,
2717
- hAlign = _b === void 0 ? 'left' : _b,
2718
- _c = _a.contentWidth,
2719
- contentWidth = _c === void 0 ? 1 : _c,
2720
- _d = _a.moveRatio,
2721
- moveRatio = _d === void 0 ? 0.2 : _d,
2722
- _e = _a.direction,
2723
- direction = _e === void 0 ? 'up' : _e,
2724
- className = _a.className;
2725
-
2726
- var _f = useState(false),
2727
- isLoaded = _f[0],
2728
- setIsLoaded = _f[1];
2729
-
2730
- var _g = useState(0),
2731
- yTransform = _g[0],
2732
- setYTransform = _g[1]; // const cRef = useRef<HTMLDivElement>(null);
2733
-
2734
-
2735
- var _h = useState(null),
2736
- cRef = _h[0],
2737
- setContainerRef = _h[1];
2738
-
2739
- var parallaxRef = useRef(null);
2740
- var width = 1;
2741
-
2742
- if (typeof contentWidth === 'string') {
2743
- switch (contentWidth) {
2744
- case '1/4':
2745
- {
2746
- width = 0.25;
2747
- break;
2748
- }
2749
-
2750
- case 'half':
2751
- {
2752
- width = 0.5;
2753
- break;
2754
- }
2755
-
2756
- case '3/4':
2757
- {
2758
- width = 0.75;
2759
- break;
2760
- }
2761
-
2762
- case 'auto':
2763
- {
2764
- width = -1;
2765
- break;
2766
- }
2767
-
2768
- default:
2769
- case 'full':
2770
- {
2771
- width = 1;
2772
- break;
2773
- }
2774
- }
2775
- } else if (!isNaN(contentWidth)) {
2776
- width = contentWidth;
2777
- }
2778
-
2779
- useEffect(function () {
2780
- setIsLoaded(true);
2781
- }, []);
2782
- useEffect(function () {
2783
- var prevEl = cRef === null || cRef === void 0 ? void 0 : cRef.previousElementSibling;
2784
-
2785
- if (prevEl) {
2786
- var bgIdent = prevEl.dataset.bgIdent;
2787
- var stackIdent = prevEl.dataset.stackIdent;
2788
-
2789
- if (bgIdent) {
2790
- // set data background from previous element
2791
- cRef === null || cRef === void 0 ? void 0 : cRef.setAttribute('data-bg-ident', bgIdent);
2792
- }
2793
-
2794
- if (stackIdent) {
2795
- // set data stack flag from previous element
2796
- cRef === null || cRef === void 0 ? void 0 : cRef.setAttribute('data-stack-ident', stackIdent);
2797
- }
2798
- }
2799
- }, [cRef]);
2800
- useEffect(function () {
2801
- var handleScroll = function () {
2802
- if (!cRef) return;
2803
- var containerPos = cRef.getBoundingClientRect().top;
2804
- var ratio = containerPos * moveRatio;
2805
- var offset = ratio * (direction === 'up' ? 1 : -1);
2806
- setYTransform(offset);
2807
- };
2808
-
2809
- handleScroll();
2810
- window.addEventListener('scroll', handleScroll);
2811
- return function () {
2812
- window.removeEventListener('scroll', handleScroll);
2813
- };
2814
- }, [cRef, direction, moveRatio]);
2815
- return React__default.createElement(React__default.Fragment, null, isLoaded && React__default.createElement(View$1, {
2816
- ref: setContainerRef,
2817
- "data-bg-ident": "transparent"
2818
- }, React__default.createElement(Parallax, {
2819
- ref: parallaxRef,
2820
- style: {
2821
- transform: "translate3d(0px, ".concat(yTransform, "px, 0px)")
2822
- },
2823
- className: className
2824
- }, React__default.createElement(Content$2, {
2825
- hAlign: hAlign,
2826
- contentWidth: width
2827
- }, image && React__default.createElement(StyledImage$3, __assign({
2828
- hAlign: hAlign,
2829
- coverSpace: width !== -1
2830
- }, image))))));
2831
- };
2832
- var templateObject_1$c, templateObject_2$a, templateObject_3$8, templateObject_4$6, templateObject_5$4;
2833
-
2834
- var Container = styled.figure.withConfig({
2835
- displayName: "Poster__Container",
2836
- componentId: "sc-k1cv7v-0"
2837
- })(templateObject_1$b || (templateObject_1$b = __makeTemplateObject(["\n position: relative;\n width: 100%;\n max-height: 550px;\n padding: 0;\n margin: 0;\n\n &:after {\n content: ", ";\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background: ", ";\n pointer-events: none;\n z-index: 0;\n }\n"], ["\n position: relative;\n width: 100%;\n max-height: 550px;\n padding: 0;\n margin: 0;\n\n &:after {\n content: ", ";\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n background: ", ";\n pointer-events: none;\n z-index: 0;\n }\n"])), function (_a) {
2838
- var hasContent = _a.hasContent;
2839
- return hasContent && '""';
2840
- }, function (_a) {
2841
- var theme = _a.theme,
2842
- verticallyCentered = _a.verticallyCentered;
2843
- return verticallyCentered ? getGlobals(theme).sections.imageTextGradientCentered : getGlobals(theme).sections.imageTextGradient;
2844
- });
2845
- var StyledImage$2 = styled(Image).withConfig({
2846
- displayName: "Poster__StyledImage",
2847
- componentId: "sc-k1cv7v-1"
2848
- })(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject(["\n img {\n height: 550px;\n }\n"], ["\n img {\n height: 550px;\n }\n"])));
2849
- var Intro = styled(IntroBlock).withConfig({
2850
- displayName: "Poster__Intro",
2851
- componentId: "sc-k1cv7v-2"
2852
- })(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject(["\n position: absolute;\n bottom: ", ";\n top: ", ";\n left: 50%;\n right: 0;\n max-height: 100%;\n max-width: ", "px;\n\n padding: ", "px;\n z-index: 1;\n\n transform: ", ";\n"], ["\n position: absolute;\n bottom: ", ";\n top: ", ";\n left: 50%;\n right: 0;\n max-height: 100%;\n max-width: ", "px;\n\n padding: ", "px;\n z-index: 1;\n\n transform: ", ";\n"])), function (_a) {
2853
- var verticallyCentered = _a.verticallyCentered;
2854
- return !verticallyCentered && '0';
2855
- }, function (_a) {
2856
- var verticallyCentered = _a.verticallyCentered;
2857
- return verticallyCentered && '50%';
2858
- }, spacings.wrapper, wrapperWhitespace + spacings.nudge * 2, function (_a) {
2859
- var verticallyCentered = _a.verticallyCentered;
2860
- return verticallyCentered ? 'translate(-50%, -50%)' : 'translateX(-50%)';
2861
- });
2862
-
2863
- var Poster = function (_a) {
2864
- var anchorId = _a.anchorId,
2865
- _b = _a.width,
2866
- width = _b === void 0 ? 'content' : _b,
2867
- title = _a.title,
2868
- titleAs = _a.titleAs,
2869
- superTitle = _a.superTitle,
2870
- superTitleAs = _a.superTitleAs,
2871
- text = _a.text,
2872
- primaryAction = _a.primaryAction,
2873
- secondaryAction = _a.secondaryAction,
2874
- image = _a.image,
2875
- verticallyCentered = _a.verticallyCentered,
2876
- horizontallyCentered = _a.horizontallyCentered;
2877
- var isCentered = verticallyCentered && horizontallyCentered;
2878
- return React__default.createElement(Section, {
2879
- anchorId: anchorId,
2880
- bgColor: "image",
2881
- bgMode: "full"
2882
- }, React__default.createElement(Wrapper, {
2883
- clampWidth: width === 'content' ? 'normal' : 'large'
2884
- }, React__default.createElement(Container, {
2885
- hasContent: !!title || !!text,
2886
- verticallyCentered: verticallyCentered
2887
- }, React__default.createElement(StyledImage$2, __assign({}, image, {
2888
- coverSpace: true,
2889
- ratios: undefined
2890
- })), title && React__default.createElement(Intro, {
2891
- verticallyCentered: verticallyCentered,
2892
- horizontallyCentered: horizontallyCentered,
2893
- renderAs: "figcaption",
2894
- colorMode: "onImage",
2895
- title: title,
2896
- titleAs: titleAs,
2897
- superTitle: superTitle,
2898
- superTitleAs: superTitleAs,
2899
- text: text,
2900
- secondaryAction: secondaryAction,
2901
- primaryAction: primaryAction,
2902
- clampTitle: true,
2903
- maxTitleLines: 3,
2904
- clampText: true,
2905
- maxTextLines: 4,
2906
- isCentered: horizontallyCentered || isCentered
2907
- }))));
2908
- };
2909
- var Poster$1 = withLibTheme(Poster);
2910
- var templateObject_1$b, templateObject_2$9, templateObject_3$7;
2911
-
2912
- var ItemList = styled.ul.withConfig({
2913
- displayName: "PriceList__ItemList",
2914
- componentId: "sc-to452u-0"
2915
- })(templateObject_1$a || (templateObject_1$a = __makeTemplateObject(["\n margin: 0;\n padding: 0;\n list-style: none;\n\n & > * + * {\n margin-top: ", "px;\n }\n"], ["\n margin: 0;\n padding: 0;\n list-style: none;\n\n & > * + * {\n margin-top: ", "px;\n }\n"])), spacings.nudge);
2916
- var ItemBlock = styled.li.withConfig({
2917
- displayName: "PriceList__ItemBlock",
2918
- componentId: "sc-to452u-1"
2919
- })(templateObject_2$8 || (templateObject_2$8 = __makeTemplateObject(["\n max-width: 100%;\n padding: ", "px;\n\n background: ", ";\n\n & > * + * {\n margin-top: ", "px;\n }\n\n @media ", " {\n padding: ", "px;\n }\n"], ["\n max-width: 100%;\n padding: ", "px;\n\n background: ", ";\n\n & > * + * {\n margin-top: ", "px;\n }\n\n @media ", " {\n padding: ", "px;\n }\n"])), spacings.nudge * 2, function (_a) {
2920
- var theme = _a.theme,
2921
- hasBg = _a.hasBg;
2922
- return hasBg ? getColors(theme).elementBg.light : getColors(theme).elementBg.medium;
2923
- }, spacings.nudge * 2, mq.semilarge, spacings.nudge * 3);
2924
- var ListHead = styled.div.withConfig({
2925
- displayName: "PriceList__ListHead",
2926
- componentId: "sc-to452u-2"
2927
- })(templateObject_3$6 || (templateObject_3$6 = __makeTemplateObject(["\n display: flex;\n justify-content: space-between;\n\n & > * + * {\n margin-left: ", "px;\n }\n"], ["\n display: flex;\n justify-content: space-between;\n\n & > * + * {\n margin-left: ", "px;\n }\n"])), spacings.nudge * 2);
2928
- var Title = styled(Copy).withConfig({
2929
- displayName: "PriceList__Title",
2930
- componentId: "sc-to452u-3"
2931
- })(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["\n max-width: 880px;\n"], ["\n max-width: 880px;\n"])));
2932
- var Price = styled(Copy).withConfig({
2933
- displayName: "PriceList__Price",
2934
- componentId: "sc-to452u-4"
2935
- })(templateObject_5$3 || (templateObject_5$3 = __makeTemplateObject(["\n white-space: nowrap;\n"], ["\n white-space: nowrap;\n"])));
2936
- var Description$1 = styled(Copy).withConfig({
2937
- displayName: "PriceList__Description",
2938
- componentId: "sc-to452u-5"
2939
- })(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n max-width: 880px;\n"], ["\n max-width: 880px;\n"])));
2940
- var PriceBlock = function (_a) {
2941
- var text = _a.text,
2942
- price = _a.price,
2943
- _b = _a.hasBg,
2944
- hasBg = _b === void 0 ? false : _b,
2945
- title = _a.title;
2946
- return React__default.createElement(ItemBlock, {
2947
- hasBg: hasBg
2948
- }, React__default.createElement(ListHead, null, title && React__default.createElement(Title, {
2949
- type: "copy-b"
2950
- }, title), price && React__default.createElement(Price, {
2951
- type: "copy-b"
2952
- }, price)), text && React__default.createElement(Description$1, {
2953
- type: "copy",
2954
- innerHTML: text
2955
- }));
2956
- };
2957
-
2958
- var PriceList = function (_a) {
2959
- var anchorId = _a.anchorId,
2960
- bgMode = _a.bgMode,
2961
- items = _a.items;
2962
- var colors = useLibTheme().colors;
2963
- var isInverted = bgMode === 'inverted';
2964
- var hasBack = isInverted || bgMode === 'full';
2965
- return React__default.createElement(Section, {
2966
- addSeperation: true,
2967
- anchorId: anchorId,
2968
- bgColor: isInverted ? colors.sectionBg.dark : bgMode === 'full' ? colors.sectionBg.medium : colors.sectionBg.light,
2969
- bgMode: mapToBgMode(bgMode, true)
2970
- }, React__default.createElement(Wrapper, {
2971
- addWhitespace: true
2972
- }, React__default.createElement(ItemList, null, items === null || items === void 0 ? void 0 : items.map(function (item, i) {
2973
- return React__default.createElement(PriceBlock, __assign({
2974
- key: i
2975
- }, item, {
2976
- hasBg: hasBack
2977
- }));
2978
- }))));
2979
- };
2980
- var PriceList$1 = withLibTheme(PriceList);
2981
- var templateObject_1$a, templateObject_2$8, templateObject_3$6, templateObject_4$5, templateObject_5$3, templateObject_6$2;
2982
-
2983
- var View = styled.div.withConfig({
2984
- displayName: "PriceTag__View",
2985
- componentId: "sc-wnisbz-0"
2986
- })(templateObject_1$9 || (templateObject_1$9 = __makeTemplateObject(["\n padding: ", "px;\n\n border: 1px solid transparent;\n border-radius: ", ";\n\n background: ", ";\n\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n text-align: ", ";\n\n & > * + * {\n margin-top: ", "px;\n }\n"], ["\n padding: ", "px;\n\n border: 1px solid transparent;\n border-radius: ", ";\n\n background: ", ";\n\n display: flex;\n flex-direction: column;\n justify-content: flex-start;\n text-align: ", ";\n\n & > * + * {\n margin-top: ", "px;\n }\n"])), spacings.spacer, function (_a) {
2987
- var theme = _a.theme;
2988
- return getGlobals(theme).sections.edgeRadius;
2989
- }, function (_a) {
2990
- var theme = _a.theme,
2991
- hasBg = _a.hasBg,
2992
- isInverted = _a.isInverted,
2993
- isHighlighted = _a.isHighlighted;
2994
- return isInverted ? isHighlighted ? getColors(theme).primary.inverted : getColors(theme).elementBg.medium : isHighlighted ? getColors(theme).primary.default : hasBg ? getColors(theme).elementBg.light : getColors(theme).elementBg.medium;
2995
- }, function (_a) {
2996
- var isCentered = _a.isCentered;
2997
- return isCentered ? 'center' : 'left';
2998
- }, spacings.nudge * 3);
2999
- var StyledActions$2 = styled(Actions).withConfig({
3000
- displayName: "PriceTag__StyledActions",
3001
- componentId: "sc-wnisbz-1"
3002
- })(templateObject_2$7 || (templateObject_2$7 = __makeTemplateObject(["\n display: block;\n margin-top: auto;\n padding-top: ", "px;\n text-align: center;\n"], ["\n display: block;\n margin-top: auto;\n padding-top: ", "px;\n text-align: center;\n"])), spacings.spacer);
3003
- var PriceTag = forwardRef(function (_a, ref) {
3004
- var superTitle = _a.superTitle,
3005
- title = _a.title,
3006
- text = _a.text,
3007
- action = _a.action,
3008
- isInverted = _a.isInverted,
3009
- isCentered = _a.isCentered,
3010
- isHighlighted = _a.isHighlighted,
3011
- hasBackground = _a.hasBackground,
3012
- className = _a.className;
3013
- var inverted = isHighlighted ? !isInverted : false;
3014
- return React__default.createElement(View, {
3015
- ref: ref,
3016
- isInverted: isInverted,
3017
- isCentered: isCentered,
3018
- isHighlighted: isHighlighted,
3019
- hasBg: hasBackground,
3020
- className: className
3021
- }, superTitle && React__default.createElement(Copy, {
3022
- type: "copy-b",
3023
- size: "big",
3024
- isInverted: inverted,
3025
- innerHTML: superTitle,
3026
- "data-sheet": "superTitle"
3027
- }), title && React__default.createElement(Callout, {
3028
- renderAs: "div",
3029
- size: "big",
3030
- isInverted: inverted,
3031
- innerHTML: title,
3032
- "data-sheet": "title"
3033
- }), text && React__default.createElement(Copy, {
3034
- size: "medium",
3035
- isInverted: inverted,
3036
- innerHTML: text,
3037
- "data-sheet": "desc"
3038
- }), React__default.createElement(StyledActions$2, {
3039
- mode: "cover",
3040
- primary: action && action({
3041
- isInverted: inverted,
3042
- isHighlighted: isHighlighted
3043
- })
3044
- }));
3045
- });
3046
- PriceTag.displayName = 'PriceTag';
3047
- var templateObject_1$9, templateObject_2$7;
3048
-
3049
- var Tag = styled(PriceTag).withConfig({
3050
- displayName: "PriceTable__Tag",
3051
- componentId: "sc-1n6x4b3-0"
3052
- })(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n min-height: 500px;\n"], ["\n min-height: 500px;\n"])));
3053
- var Items = styled.div.withConfig({
3054
- displayName: "PriceTable__Items",
3055
- componentId: "sc-1n6x4b3-1"
3056
- })(templateObject_2$6 || (templateObject_2$6 = __makeTemplateObject(["\n display: flex;\n justify-content: center;\n flex-wrap: wrap;\n\n margin-top: -", "px;\n margin-left: -", "px;\n\n & > * {\n flex: 1 1 25%;\n min-width: 286px;\n max-width: 320px;\n margin-top: ", "px;\n margin-left: ", "px;\n }\n\n @media ", " {\n & > * {\n max-width: 286px;\n }\n }\n"], ["\n display: flex;\n justify-content: center;\n flex-wrap: wrap;\n\n margin-top: -", "px;\n margin-left: -", "px;\n\n & > * {\n flex: 1 1 25%;\n min-width: 286px;\n max-width: 320px;\n margin-top: ", "px;\n margin-left: ", "px;\n }\n\n @media ", " {\n & > * {\n max-width: 286px;\n }\n }\n"])), gridSettings.gutter, gridSettings.gutter, gridSettings.gutter, gridSettings.gutter, mq.large);
3057
-
3058
- var PriceTable = function (_a) {
3059
- var anchorId = _a.anchorId,
3060
- items = _a.items,
3061
- isCentered = _a.isCentered,
3062
- bgMode = _a.bgMode;
3063
- var isInverted = bgMode === 'inverted';
3064
- var hasBg = bgMode === 'full';
3065
- var priceTagCount = (items === null || items === void 0 ? void 0 : items.length) || 0;
3066
- var colors = useLibTheme().colors;
3067
- var cardRefs = useEqualSheetHeight({
3068
- listLength: priceTagCount,
3069
- identifiers: ['[data-sheet="superTitle"]', '[data-sheet="title"]', '[data-sheet="desc"]'],
3070
- responsive: {
3071
- small: 1,
3072
- medium: 1,
3073
- semilarge: 2,
3074
- large: 3,
3075
- xlarge: 3
3076
- }
3077
- }).sheetRefs;
3078
- return React__default.createElement(Section, {
3079
- addSeperation: true,
3080
- anchorId: anchorId,
3081
- bgColor: isInverted ? colors.sectionBg.dark : hasBg ? colors.sectionBg.medium : colors.sectionBg.light,
3082
- bgMode: mapToBgMode(bgMode)
3083
- }, React__default.createElement(Wrapper, {
3084
- addWhitespace: true
3085
- }, React__default.createElement(Items, null, items === null || items === void 0 ? void 0 : items.map(function (item, i) {
3086
- return React__default.createElement(Tag, __assign({
3087
- key: i,
3088
- ref: cardRefs[i]
3089
- }, item, {
3090
- isInverted: isInverted,
3091
- isCentered: isCentered,
3092
- hasBackground: hasBg
3093
- }));
3094
- }))));
3095
- };
3096
- var PriceTable$1 = withLibTheme(PriceTable);
3097
- var templateObject_1$8, templateObject_2$6;
3098
-
3099
- var Content$1 = styled.figure.withConfig({
3100
- displayName: "Quote__Content",
3101
- componentId: "sc-135tfv0-0"
3102
- })(templateObject_1$7 || (templateObject_1$7 = __makeTemplateObject(["\n margin: 0;\n padding: 0;\n\n & > * + * {\n margin-top: ", "px;\n }\n\n @media ", " {\n max-width: 960px;\n margin: 0 auto;\n }\n"], ["\n margin: 0;\n padding: 0;\n\n & > * + * {\n margin-top: ", "px;\n }\n\n @media ", " {\n max-width: 960px;\n margin: 0 auto;\n }\n"])), spacings.spacer, mq.medium);
3103
- var Text = styled(Callout).withConfig({
3104
- displayName: "Quote__Text",
3105
- componentId: "sc-135tfv0-1"
3106
- })(templateObject_2$5 || (templateObject_2$5 = __makeTemplateObject(["\n text-align: center;\n margin-left: 0;\n margin-right: 0;\n padding: 0;\n"], ["\n text-align: center;\n margin-left: 0;\n margin-right: 0;\n padding: 0;\n"])));
3107
- var Source = styled(Copy).withConfig({
3108
- displayName: "Quote__Source",
3109
- componentId: "sc-135tfv0-2"
3110
- })(templateObject_3$5 || (templateObject_3$5 = __makeTemplateObject(["\n text-align: center;\n margin-left: 0;\n margin-right: 0;\n padding: 0;\n"], ["\n text-align: center;\n margin-left: 0;\n margin-right: 0;\n padding: 0;\n"])));
3111
-
3112
- var Quote = function (_a) {
3113
- var anchorId = _a.anchorId,
3114
- bgMode = _a.bgMode,
3115
- text = _a.text,
3116
- source = _a.source,
3117
- citeUrl = _a.citeUrl;
3118
- var colors = useLibTheme().colors;
3119
- var isInverted = bgMode === 'inverted';
3120
- return React__default.createElement(Section, {
3121
- addSeperation: true,
3122
- anchorId: anchorId,
3123
- bgColor: isInverted ? colors.sectionBg.dark : bgMode === 'full' ? colors.sectionBg.medium : colors.sectionBg.light,
3124
- bgMode: mapToBgMode(bgMode, true)
3125
- }, React__default.createElement(Wrapper, {
3126
- clampWidth: "normal",
3127
- addWhitespace: true
3128
- }, React__default.createElement(Content$1, null, text && React__default.createElement(Text, __assign({
3129
- size: "small",
3130
- renderAs: "blockquote",
3131
- isInverted: isInverted,
3132
- innerHTML: text
3133
- }, {
3134
- cite: citeUrl
3135
- })), source && React__default.createElement(Source, {
3136
- isInverted: isInverted,
3137
- renderAs: "figcaption",
3138
- innerHTML: source
3139
- }))));
3140
- };
3141
- var Quote$1 = withLibTheme(Quote);
3142
- var templateObject_1$7, templateObject_2$5, templateObject_3$5;
3143
-
3144
- var ImageWrapper = styled(Wrapper).withConfig({
3145
- displayName: "SimpleImage__ImageWrapper",
3146
- componentId: "sc-1f8mjuo-0"
3147
- })(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["\n display: flex;\n justify-content: ", ";\n"], ["\n display: flex;\n justify-content: ", ";\n"])), function (_a) {
3148
- var hAlign = _a.hAlign;
3149
-
3150
- switch (hAlign) {
3151
- case 'center':
3152
- return 'center';
3153
-
3154
- case 'right':
3155
- return 'flex-end';
3156
-
3157
- default:
3158
- return 'flex-start';
3159
- }
3160
- });
3161
-
3162
- var SimpleImage = function (_a) {
3163
- var anchorId = _a.anchorId,
3164
- image = _a.image,
3165
- _b = _a.hAlign,
3166
- hAlign = _b === void 0 ? 'left' : _b,
3167
- bgMode = _a.bgMode,
3168
- isStackable = _a.isStackable;
3169
- var theme = useContext(ThemeContext);
3170
- var isInverted = bgMode === 'inverted';
3171
- var hasBg = bgMode === 'full';
3172
- return React__default.createElement(Section, {
3173
- addSeperation: true,
3174
- anchorId: anchorId,
3175
- isStackable: isStackable,
3176
- bgColor: isInverted ? getColors(theme).sectionBg.dark : hasBg ? getColors(theme).sectionBg.medium : getColors(theme).sectionBg.light,
3177
- bgMode: mapToBgMode(bgMode)
3178
- }, React__default.createElement(ImageWrapper, {
3179
- hAlign: hAlign
3180
- }, image && React__default.createElement(Image, __assign({}, image))));
3181
- };
3182
- var SimpleImage$1 = withLibTheme(SimpleImage);
3183
- var templateObject_1$6;
3184
-
3185
- var Cards = styled.ul.withConfig({
3186
- displayName: "SocialWall__Cards",
3187
- componentId: "sc-ggztu7-0"
3188
- })(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject(["\n display: flex;\n flex-wrap: wrap;\n margin: 0;\n padding: 0;\n list-style: none;\n\n margin-top: -", "px;\n margin-left: -", "px;\n\n & > * {\n flex: 1 1 100%;\n margin-top: ", "px;\n margin-left: ", "px;\n }\n\n @media ", " {\n & > * {\n flex: 1 1 calc(50% - ", "px);\n max-width: calc(50% - ", "px);\n }\n }\n\n @media ", " {\n & > * {\n flex: 1 1 calc(", "% - ", "px);\n max-width: calc(", "% - ", "px);\n }\n }\n"], ["\n display: flex;\n flex-wrap: wrap;\n margin: 0;\n padding: 0;\n list-style: none;\n\n margin-top: -", "px;\n margin-left: -", "px;\n\n & > * {\n flex: 1 1 100%;\n margin-top: ", "px;\n margin-left: ", "px;\n }\n\n @media ", " {\n & > * {\n flex: 1 1 calc(50% - ", "px);\n max-width: calc(50% - ", "px);\n }\n }\n\n @media ", " {\n & > * {\n flex: 1 1 calc(", "% - ", "px);\n max-width: calc(", "% - ", "px);\n }\n }\n"])), spacings.spacer, spacings.spacer, spacings.spacer, spacings.spacer, mq.medium, gridSettings.gutter, gridSettings.gutter, mq.large, 1 / 3 * 100, gridSettings.gutter, 1 / 3 * 100, gridSettings.gutter);
3189
- var Item = styled.li.withConfig({
3190
- displayName: "SocialWall__Item",
3191
- componentId: "sc-ggztu7-1"
3192
- })(templateObject_2$4 || (templateObject_2$4 = __makeTemplateObject(["\n display: block;\n position: relative;\n padding: 0;\n"], ["\n display: block;\n position: relative;\n padding: 0;\n"])));
3193
- var Card = styled(Link).withConfig({
3194
- displayName: "SocialWall__Card",
3195
- componentId: "sc-ggztu7-2"
3196
- })(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject(["\n position: relative;\n display: block;\n text-decoration: none;\n color: '#fff';\n outline-color: ", ";\n\n border-radius: ", ";\n overflow: hidden;\n\n &:before {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: ", ";\n\n opacity: 0;\n pointer-events: none;\n z-index: 1;\n transition: opacity 0.2s ease-in-out;\n }\n\n &:hover {\n &:before {\n opacity: 1;\n pointer-events: all;\n }\n }\n\n &:focus {\n &:before {\n opacity: 1;\n pointer-events: all;\n }\n }\n"], ["\n position: relative;\n display: block;\n text-decoration: none;\n color: '#fff';\n outline-color: ", ";\n\n border-radius: ", ";\n overflow: hidden;\n\n &:before {\n content: '';\n position: absolute;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background: ", ";\n\n opacity: 0;\n pointer-events: none;\n z-index: 1;\n transition: opacity 0.2s ease-in-out;\n }\n\n &:hover {\n &:before {\n opacity: 1;\n pointer-events: all;\n }\n }\n\n &:focus {\n &:before {\n opacity: 1;\n pointer-events: all;\n }\n }\n"])), function (_a) {
3197
- var theme = _a.theme,
3198
- isInverted = _a.isInverted;
3199
- return isInverted ? getColors(theme).primary.inverted : getColors(theme).primary.default;
3200
- }, function (_a) {
3201
- var theme = _a.theme;
3202
- return getGlobals(theme).sections.edgeRadius;
3203
- }, function (_a) {
3204
- var theme = _a.theme,
3205
- isInverted = _a.isInverted;
3206
- return isInverted ? getColors(theme).secondary.inverted : getColors(theme).secondary.default;
3207
- });
3208
- var StyledImage$1 = styled(Image).withConfig({
3209
- displayName: "SocialWall__StyledImage",
3210
- componentId: "sc-ggztu7-3"
3211
- })(templateObject_4$4 || (templateObject_4$4 = __makeTemplateObject(["\n display: block;\n height: 100%;\n z-index: 0;\n"], ["\n display: block;\n height: 100%;\n z-index: 0;\n"])));
3212
- var TextContainer = styled.div.withConfig({
3213
- displayName: "SocialWall__TextContainer",
3214
- componentId: "sc-ggztu7-4"
3215
- })(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject(["\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100%;\n transform: translate(-50%, -50%);\n text-align: center;\n\n padding: ", "px;\n\n opacity: 0;\n pointer-events: none;\n z-index: 2;\n transition: opacity 0.2s ease-in-out;\n\n & > * + * {\n margin-top: ", "px;\n }\n\n ", ":hover & {\n opacity: 1;\n pointer-events: all;\n }\n\n ", ":focus & {\n opacity: 1;\n pointer-events: all;\n }\n"], ["\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100%;\n transform: translate(-50%, -50%);\n text-align: center;\n\n padding: ", "px;\n\n opacity: 0;\n pointer-events: none;\n z-index: 2;\n transition: opacity 0.2s ease-in-out;\n\n & > * + * {\n margin-top: ", "px;\n }\n\n ", ":hover & {\n opacity: 1;\n pointer-events: all;\n }\n\n ", ":focus & {\n opacity: 1;\n pointer-events: all;\n }\n"])), spacings.nudge * 2, spacings.nudge * 2, Card, Card);
3216
- var FollowUs = styled(Heading).withConfig({
3217
- displayName: "SocialWall__FollowUs",
3218
- componentId: "sc-ggztu7-5"
3219
- })(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n text-transform: uppercase;\n"], ["\n text-transform: uppercase;\n"])));
3220
- var InstagramIcon = styled.div.withConfig({
3221
- displayName: "SocialWall__InstagramIcon",
3222
- componentId: "sc-ggztu7-6"
3223
- })(templateObject_7$1 || (templateObject_7$1 = __makeTemplateObject(["\n position: absolute;\n left: 20px;\n bottom: 20px;\n color: ", ";\n z-index: 2;\n\n & > * {\n fill: #fff;\n\n ", ":hover & {\n color: ", ";\n }\n }\n"], ["\n position: absolute;\n left: 20px;\n bottom: 20px;\n color: ", ";\n z-index: 2;\n\n & > * {\n fill: #fff;\n\n ", ":hover & {\n color: ", ";\n }\n }\n"])), function (_a) {
3224
- var theme = _a.theme;
3225
- return getColors(theme).text.inverted;
3226
- }, Card, function (_a) {
3227
- var theme = _a.theme;
3228
- return getColors(theme).text.inverted;
3229
- });
3230
-
3231
- var SocialWall = function (_a) {
3232
- var anchorId = _a.anchorId,
3233
- items = _a.items,
3234
- hashTag = _a.hashTag,
3235
- followUs = _a.followUs,
3236
- socialIcon = _a.socialIcon,
3237
- bgMode = _a.bgMode;
3238
- var colors = useLibTheme().colors;
3239
- var isInverted = bgMode === 'inverted';
3240
- var hasBg = bgMode === 'full';
3241
- return React__default.createElement(Section, {
3242
- anchorId: anchorId,
3243
- bgColor: isInverted ? colors.sectionBg.dark : hasBg ? colors.sectionBg.medium : colors.sectionBg.light,
3244
- bgMode: mapToBgMode(bgMode, true),
3245
- addSeperation: true
3246
- }, React__default.createElement(Wrapper, {
3247
- addWhitespace: true
3248
- }, React__default.createElement(Cards, null, items === null || items === void 0 ? void 0 : items.map(function (item, i) {
3249
- var _a;
3250
-
3251
- return React__default.createElement(Item, {
3252
- key: i
3253
- }, React__default.createElement(Card, __assign({
3254
- isExternal: true
3255
- }, item.link, {
3256
- isInverted: isInverted,
3257
- ariaLabel: (_a = item === null || item === void 0 ? void 0 : item.image) === null || _a === void 0 ? void 0 : _a.alt
3258
- }), item.image && React__default.createElement(StyledImage$1, __assign({}, item.image, {
3259
- coverSpace: true,
3260
- ratios: {
3261
- small: {
3262
- w: 1,
3263
- h: 1
3264
- }
3265
- },
3266
- isInverted: isInverted
3267
- })), React__default.createElement(TextContainer, null, React__default.createElement(FollowUs, {
3268
- size: "super",
3269
- isInverted: true
3270
- }, followUs ? followUs : 'Follow Us On Instagram'), hashTag && React__default.createElement(Heading, {
3271
- size: "heading-2",
3272
- isInverted: true
3273
- }, hashTag)), React__default.createElement(InstagramIcon, null, socialIcon || React__default.createElement(Instagram, null))));
3274
- }))));
3275
- };
3276
- var SocialWall$1 = withLibTheme(SocialWall);
3277
- var templateObject_1$5, templateObject_2$4, templateObject_3$4, templateObject_4$4, templateObject_5$2, templateObject_6$1, templateObject_7$1;
3278
-
3279
- var TableWrapper = styled(Wrapper).withConfig({
3280
- displayName: "Table__TableWrapper",
3281
- componentId: "sc-16ge7gg-0"
3282
- })(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n & > * + * {\n margin-top: ", "px;\n }\n"], ["\n & > * + * {\n margin-top: ", "px;\n }\n"])), spacings.spacer);
3283
-
3284
- var Table = function (_a) {
3285
- var anchorId = _a.anchorId,
3286
- bgMode = _a.bgMode,
3287
- tableItems = _a.tableItems;
3288
- var colors = useLibTheme().colors;
3289
- var isInverted = bgMode === 'inverted';
3290
- var hasBg = bgMode === 'full' || isInverted;
3291
- return React__default.createElement(Section, {
3292
- addSeperation: true,
3293
- anchorId: anchorId,
3294
- bgColor: isInverted ? colors.sectionBg.dark : hasBg ? colors.sectionBg.medium : colors.sectionBg.light,
3295
- bgMode: mapToBgMode(bgMode, true)
3296
- }, React__default.createElement(TableWrapper, null, tableItems.map(function (item, i) {
3297
- return React__default.createElement(TableBlock, __assign({
3298
- key: i
3299
- }, item, {
3300
- isInverted: isInverted,
3301
- hasBack: hasBg
3302
- }));
3303
- })));
3304
- };
3305
- var Table$1 = withLibTheme(Table);
3306
- var templateObject_1$4;
3307
-
3308
- var Figure = styled.figure.withConfig({
3309
- displayName: "Teaser__Figure",
3310
- componentId: "sc-euyj1p-0"
3311
- })(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject(["\n display: flex;\n flex-direction: column;\n position: relative;\n height: 100%;\n width: 100%;\n margin: 0;\n padding: 0;\n\n & > * + * {\n margin-top: ", "px;\n }\n\n @media ", " {\n & > * + * {\n margin-top: ", "px;\n }\n }\n"], ["\n display: flex;\n flex-direction: column;\n position: relative;\n height: 100%;\n width: 100%;\n margin: 0;\n padding: 0;\n\n & > * + * {\n margin-top: ", "px;\n }\n\n @media ", " {\n & > * + * {\n margin-top: ", "px;\n }\n }\n"])), spacings.nudge, mq.semilarge, spacings.nudge * 2);
3312
- var StyledImage = styled(Image).withConfig({
3313
- displayName: "Teaser__StyledImage",
3314
- componentId: "sc-euyj1p-1"
3315
- })(templateObject_2$3 || (templateObject_2$3 = __makeTemplateObject(["\n position: relative;\n width: 100%;\n height: 100%;\n\n @media ", " {\n border-radius: ", ";\n overflow: hidden;\n }\n"], ["\n position: relative;\n width: 100%;\n height: 100%;\n\n @media ", " {\n border-radius: ", ";\n overflow: hidden;\n }\n"])), mq.semilarge, function (_a) {
3316
- var theme = _a.theme;
3317
- return getGlobals(theme).sections.edgeRadius;
3318
- });
3319
- var Video$3 = styled(VideoBlock).withConfig({
3320
- displayName: "Teaser__Video",
3321
- componentId: "sc-euyj1p-2"
3322
- })(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject(["\n display: ", ";\n width: 100%;\n height: 100%;\n"], ["\n display: ", ";\n width: 100%;\n height: 100%;\n"])), function (_a) {
3323
- var isVisible = _a.isVisible;
3324
- return isVisible ? 'block' : 'none';
3325
- });
3326
- var Description = styled(Copy).withConfig({
3327
- displayName: "Teaser__Description",
3328
- componentId: "sc-euyj1p-3"
3329
- })(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject(["\n display: block;\n\n @media ", " {\n padding-left: ", "px;\n padding-right: ", "px;\n margin-left: ", ";\n margin-right: ", ";\n max-width: ", ";\n\n color: ", ";\n }\n\n @media ", " {\n max-width: ", ";\n }\n"], ["\n display: block;\n\n @media ", " {\n padding-left: ", "px;\n padding-right: ", "px;\n margin-left: ", ";\n margin-right: ", ";\n max-width: ", ";\n\n color: ", ";\n }\n\n @media ", " {\n max-width: ", ";\n }\n"])), mq.semilarge, spacings.nudge * 2, spacings.nudge * 2, function (_a) {
3330
- var isMirrored = _a.isMirrored;
3331
- return isMirrored && 'auto';
3332
- }, function (_a) {
3333
- var isMirrored = _a.isMirrored;
3334
- return !isMirrored && 'auto';
3335
- }, function (_a) {
3336
- var isSplitted = _a.isSplitted;
3337
- return isSplitted && '81.5%';
3338
- }, function (_a) {
3339
- var theme = _a.theme,
3340
- isInverted = _a.isInverted,
3341
- isSplitted = _a.isSplitted;
3342
- return isInverted && !isSplitted ? getFonts(theme).copy.small.colorInverted : getFonts(theme).copy.small.color;
3343
- }, mq.xlarge, function (_a) {
3344
- var isSplitted = _a.isSplitted;
3345
- return isSplitted && '69.5%';
3346
- });
3347
- var StyledActions$1 = styled(Actions).withConfig({
3348
- displayName: "Teaser__StyledActions",
3349
- componentId: "sc-euyj1p-4"
3350
- })(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject(["\n &:not(:first-child) {\n margin-top: ", "px;\n }\n"], ["\n &:not(:first-child) {\n margin-top: ", "px;\n }\n"])), spacings.spacer);
3351
-
3352
- var Teaser = function (_a) {
3353
- var anchorId = _a.anchorId,
3354
- _b = _a.isMirrored,
3355
- isMirrored = _b === void 0 ? false : _b,
3356
- bgMode = _a.bgMode,
3357
- superTitle = _a.superTitle,
3358
- superTitleAs = _a.superTitleAs,
3359
- title = _a.title,
3360
- titleAs = _a.titleAs,
3361
- image = _a.image,
3362
- video = _a.video,
3363
- description = _a.description,
3364
- text = _a.text,
3365
- primaryAction = _a.primaryAction,
3366
- secondaryAction = _a.secondaryAction;
3367
- var colors = useLibTheme().colors;
3368
- var isInverted = bgMode === 'inverted' || bgMode === 'inverted-splitted';
3369
- var isSplitted = bgMode === 'splitted' || bgMode === 'inverted-splitted';
3370
- var hasVideo = isValidArray(video === null || video === void 0 ? void 0 : video.urls, false);
3371
- var viewRef = useRef(null);
3372
-
3373
- var _c = useState(!(image === null || image === void 0 ? void 0 : image.small) || false),
3374
- isLoaded = _c[0],
3375
- setLoaded = _c[1];
3376
-
3377
- var _d = useState(false),
3378
- isVideoActive = _d[0],
3379
- setVideoActive = _d[1];
3380
-
3381
- var isObserverSupported = useObserverSupport();
3382
- useUpdateEffect(function () {
3383
- if (!viewRef.current || !hasVideo) return;
3384
-
3385
- if (!isObserverSupported) {
3386
- setVideoActive(true);
3387
- return;
3388
- }
3389
-
3390
- var observer = new IntersectionObserver(function (entries, observer) {
3391
- var entry = entries[0];
3392
-
3393
- if (entry.isIntersecting) {
3394
- observer.unobserve(entry.target);
3395
- setVideoActive(true);
3396
- }
3397
- }, {
3398
- rootMargin: '200px 0px 200px 0px'
3399
- });
3400
- var viewEl = viewRef.current;
3401
- observer.observe(viewEl);
3402
- return function () {
3403
- if (viewEl) observer.unobserve(viewEl);
3404
- };
3405
- }, [isObserverSupported]);
3406
- return React__default.createElement(Section, {
3407
- addSeperation: true,
3408
- anchorId: anchorId,
3409
- bgColor: isInverted ? colors.sectionBg.dark : bgMode ? colors.sectionBg.medium : colors.sectionBg.light,
3410
- bgMode: mapToTeaserBgMode(bgMode, false, isMirrored)
3411
- }, React__default.createElement(Wrapper, {
3412
- addWhitespace: true,
3413
- clampWidth: "normal"
3414
- }, React__default.createElement(Grid.Row, {
3415
- valign: "center"
3416
- }, React__default.createElement(Grid.Col, {
3417
- semilarge: {
3418
- span: 6 / 12,
3419
- move: (isMirrored ? 6 : 0) / 12
3420
- },
3421
- xlarge: {
3422
- span: 7 / 12,
3423
- move: (isMirrored ? 5 : 0) / 12
3424
- }
3425
- }, ((image === null || image === void 0 ? void 0 : image.small) || hasVideo) && React__default.createElement(Figure, {
3426
- ref: viewRef
3427
- }, (image === null || image === void 0 ? void 0 : image.small) && (!video || !isLoaded) && React__default.createElement(StyledImage, __assign({}, image, {
3428
- isInverted: isInverted,
3429
- coverSpace: true
3430
- })), hasVideo && React__default.createElement(Video$3, {
3431
- urls: isVideoActive ? video === null || video === void 0 ? void 0 : video.urls : undefined,
3432
- muted: true,
3433
- autoPlay: true,
3434
- loop: true,
3435
- onCanPlayThrough: function () {
3436
- return setLoaded(true);
3437
- },
3438
- ratios: video === null || video === void 0 ? void 0 : video.aspectRatios,
3439
- isVisible: isLoaded,
3440
- isInverted: isInverted
3441
- }), description && React__default.createElement(Description, {
3442
- size: "small",
3443
- renderAs: "figcaption",
3444
- isInverted: isInverted,
3445
- isSplitted: isSplitted,
3446
- isMirrored: isMirrored,
3447
- innerHTML: description
3448
- }))), React__default.createElement(Grid.Col, {
3449
- semilarge: {
3450
- span: 6 / 12,
3451
- move: (isMirrored ? -6 : 0) / 12
3452
- },
3453
- xlarge: {
3454
- span: 5 / 12,
3455
- move: (isMirrored ? -7 : 0) / 12
3456
- }
3457
- }, React__default.createElement(IntroBlock, {
3458
- titleHyphens: true,
3459
- title: title,
3460
- titleAs: titleAs,
3461
- superTitle: superTitle,
3462
- superTitleAs: superTitleAs,
3463
- text: text,
3464
- colorMode: isInverted ? 'inverted' : 'default'
3465
- }), (primaryAction || secondaryAction) && React__default.createElement(StyledActions$1, {
3466
- primary: primaryAction && primaryAction(isInverted),
3467
- secondary: secondaryAction && secondaryAction(isInverted)
3468
- })))));
3469
- };
3470
-
3471
- var mapToTeaserBgMode = function (mode, preventSplit, isMirrored) {
3472
- if (preventSplit === void 0) {
3473
- preventSplit = false;
3474
- }
3475
-
3476
- if (isMirrored === void 0) {
3477
- isMirrored = false;
3478
- }
3479
-
3480
- switch (mode) {
3481
- case 'full':
3482
- return 'full';
3483
-
3484
- case 'inverted':
3485
- return 'inverted';
3486
-
3487
- case 'splitted':
3488
- {
3489
- if (!preventSplit) return isMirrored ? 'larger-left' : 'larger-right';else return undefined;
3490
- }
3491
-
3492
- case 'inverted-splitted':
3493
- {
3494
- if (!preventSplit) return isMirrored ? 'larger-left' : 'larger-right';else return undefined;
3495
- }
3496
-
3497
- default:
3498
- return undefined;
3499
- }
3500
- };
3501
- var Teaser$1 = withLibTheme(Teaser);
3502
- var templateObject_1$3, templateObject_2$3, templateObject_3$3, templateObject_4$3, templateObject_5$1;
3503
-
3504
- /**
3505
- * calculate single grid col from relative content wrapper
3506
- * (grid width = wrapper width without paddings)
3507
- * */
3508
-
3509
- var getGridColOfContent = function () {
3510
- return css(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), getGridWidth({
3511
- cols: 1,
3512
- gridWidth: "".concat(spacings.wrapper - wrapperWhitespace * 2, "px ")
3513
- }));
3514
- };
3515
-
3516
- var WideVideo = styled(VideoBlock).withConfig({
3517
- displayName: "TeaserWide__WideVideo",
3518
- componentId: "sc-cnpuar-0"
3519
- })(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject(["\n display: ", ";\n position: relative;\n top: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n\n min-height: 400px;\n object-fit: cover;\n border-radius: ", ";\n\n @media ", " {\n position: absolute;\n /** \n calculate width of 6 grid cols (grid width = viewport width without wrapper paddings)\n and add left or right wrapper padding afterwards\n */\n width: calc(\n ", " + ", "px\n );\n left: ", ";\n right: ", ";\n }\n\n @media ", " {\n /** \n calculate width of 1 grid cols\n and add left or right wrapper padding afterwards. Then add this to 50% of current\n viewport width.\n */\n width: calc(50% + ", " + ", "px);\n }\n\n @media ", " {\n /** \n calculate width of 1 grid cols\n and add left or right wrapper padding afterwards. Then add this to 50% of large wrapper width.\n */\n width: calc(\n ", "px + ", " +\n ", "px\n );\n\n left: ", ";\n right: ", ";\n\n ", ";\n }\n"], ["\n display: ", ";\n position: relative;\n top: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n height: 100%;\n\n min-height: 400px;\n object-fit: cover;\n border-radius: ", ";\n\n @media ", " {\n position: absolute;\n /** \n calculate width of 6 grid cols (grid width = viewport width without wrapper paddings)\n and add left or right wrapper padding afterwards\n */\n width: calc(\n ", " + ", "px\n );\n left: ", ";\n right: ", ";\n }\n\n @media ", " {\n /** \n calculate width of 1 grid cols\n and add left or right wrapper padding afterwards. Then add this to 50% of current\n viewport width.\n */\n width: calc(50% + ", " + ", "px);\n }\n\n @media ", " {\n /** \n calculate width of 1 grid cols\n and add left or right wrapper padding afterwards. Then add this to 50% of large wrapper width.\n */\n width: calc(\n ", "px + ", " +\n ", "px\n );\n\n left: ", ";\n right: ", ";\n\n ", ";\n }\n"])), function (_a) {
3520
- var isVisible = _a.isVisible;
3521
- return isVisible ? 'block' : 'none';
3522
- }, function (_a) {
3523
- var theme = _a.theme;
3524
- return getGlobals(theme).sections.edgeRadius;
3525
- }, mq.semilarge, getGridWidth({
3526
- cols: 6,
3527
- gridWidth: "100% - ".concat(wrapperWhitespace * 2, "px ")
3528
- }), wrapperWhitespace, function (_a) {
3529
- var isMirrored = _a.isMirrored;
3530
- return isMirrored ? 'auto' : '0';
3531
- }, function (_a) {
3532
- var isMirrored = _a.isMirrored;
3533
- return isMirrored ? '0' : 'auto';
3534
- }, mq.xlarge, getGridColOfContent(), wrapperWhitespace, mq.xxlarge, spacings.wrapperLarge / 2, getGridColOfContent(), wrapperWhitespace, function (_a) {
3535
- var isMirrored = _a.isMirrored;
3536
- return isMirrored ? 'auto' : '50%';
3537
- }, function (_a) {
3538
- var isMirrored = _a.isMirrored;
3539
- return isMirrored ? '50%' : 'auto';
3540
- }, function (_a) {
3541
- var isMirrored = _a.isMirrored;
3542
- return css(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject(["\n transform: translateX(\n calc(\n ", "\n (", " + ", "px)\n )\n );\n "], ["\n transform: translateX(\n calc(\n ", "\n (", " + ", "px)\n )\n );\n "])), isMirrored ? '100% - ' : '-100% + ', getGridColOfContent(), wrapperWhitespace);
3543
- });
3544
- var WideImage = styled(Image).withConfig({
3545
- displayName: "TeaserWide__WideImage",
3546
- componentId: "sc-cnpuar-1"
3547
- })(templateObject_5 || (templateObject_5 = __makeTemplateObject(["\n position: relative;\n top: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n\n height: 100%;\n min-height: 400px;\n\n img {\n height: 100%;\n }\n\n @media ", " {\n position: absolute;\n /** \n calculate width of 6 grid cols (grid width = viewport width without wrapper paddings)\n and add left or right wrapper padding afterwards\n */\n width: calc(\n ", " + ", "px\n );\n left: ", ";\n right: ", ";\n }\n\n @media ", " {\n /** \n calculate width of 1 grid cols\n and add left or right wrapper padding afterwards. Then add this to 50% of current\n viewport width.\n */\n width: calc(50% + ", " + ", "px);\n }\n\n @media ", " {\n /** \n calculate width of 1 grid cols\n and add left or right wrapper padding afterwards. Then add this to 50% of large wrapper width.\n */\n width: calc(\n ", "px + ", " +\n ", "px\n );\n\n left: ", ";\n right: ", ";\n\n ", ";\n }\n"], ["\n position: relative;\n top: 0;\n left: 0;\n bottom: 0;\n width: 100%;\n\n height: 100%;\n min-height: 400px;\n\n img {\n height: 100%;\n }\n\n @media ", " {\n position: absolute;\n /** \n calculate width of 6 grid cols (grid width = viewport width without wrapper paddings)\n and add left or right wrapper padding afterwards\n */\n width: calc(\n ", " + ", "px\n );\n left: ", ";\n right: ", ";\n }\n\n @media ", " {\n /** \n calculate width of 1 grid cols\n and add left or right wrapper padding afterwards. Then add this to 50% of current\n viewport width.\n */\n width: calc(50% + ", " + ", "px);\n }\n\n @media ", " {\n /** \n calculate width of 1 grid cols\n and add left or right wrapper padding afterwards. Then add this to 50% of large wrapper width.\n */\n width: calc(\n ", "px + ", " +\n ", "px\n );\n\n left: ", ";\n right: ", ";\n\n ", ";\n }\n"])), mq.semilarge, getGridWidth({
3548
- cols: 6,
3549
- gridWidth: "100% - ".concat(wrapperWhitespace * 2, "px ")
3550
- }), wrapperWhitespace, function (_a) {
3551
- var isMirrored = _a.isMirrored;
3552
- return isMirrored ? 'auto' : '0';
3553
- }, function (_a) {
3554
- var isMirrored = _a.isMirrored;
3555
- return isMirrored ? '0' : 'auto';
3556
- }, mq.xlarge, getGridColOfContent(), wrapperWhitespace, mq.xxlarge, spacings.wrapperLarge / 2, getGridColOfContent(), wrapperWhitespace, function (_a) {
3557
- var isMirrored = _a.isMirrored;
3558
- return isMirrored ? 'auto' : '50%';
3559
- }, function (_a) {
3560
- var isMirrored = _a.isMirrored;
3561
- return isMirrored ? '50%' : 'auto';
3562
- }, function (_a) {
3563
- var isMirrored = _a.isMirrored;
3564
- return css(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject(["\n transform: translateX(\n calc(\n ", "\n (", " + ", "px)\n )\n );\n "], ["\n transform: translateX(\n calc(\n ", "\n (", " + ", "px)\n )\n );\n "])), isMirrored ? '100% - ' : '-100% + ', getGridColOfContent(), wrapperWhitespace);
3565
- });
3566
- var Content = styled.div.withConfig({
3567
- displayName: "TeaserWide__Content",
3568
- componentId: "sc-cnpuar-2"
3569
- })(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", "\n\n @media ", " {\n ", "\n }\n"], ["\n ", "\n\n @media ", " {\n ", "\n }\n"])), function (_a) {
3570
- var theme = _a.theme;
3571
- return withRange(getGlobals(theme).sections.seperation.padding.default, 'padding-bottom');
3572
- }, mq.semilarge, function (_a) {
3573
- var theme = _a.theme;
3574
- return withRange(getGlobals(theme).sections.seperation.padding.default, 'padding-top');
3575
- });
3576
- var StyledActions = styled(Actions).withConfig({
3577
- displayName: "TeaserWide__StyledActions",
3578
- componentId: "sc-cnpuar-3"
3579
- })(templateObject_7 || (templateObject_7 = __makeTemplateObject(["\n &:not(:first-child) {\n margin-top: ", "px;\n }\n"], ["\n &:not(:first-child) {\n margin-top: ", "px;\n }\n"])), spacings.spacer);
3580
-
3581
- var TeaserWide = function (_a) {
3582
- var anchorId = _a.anchorId,
3583
- _b = _a.isMirrored,
3584
- isMirrored = _b === void 0 ? false : _b,
3585
- superTitle = _a.superTitle,
3586
- superTitleAs = _a.superTitleAs,
3587
- title = _a.title,
3588
- titleAs = _a.titleAs,
3589
- image = _a.image,
3590
- video = _a.video,
3591
- text = _a.text,
3592
- primaryAction = _a.primaryAction,
3593
- secondaryAction = _a.secondaryAction,
3594
- bgMode = _a.bgMode;
3595
- var colors = useLibTheme().colors;
3596
- var isInverted = bgMode === 'inverted';
3597
- var hasBg = bgMode === 'full';
3598
- var hasVideo = isValidArray(video === null || video === void 0 ? void 0 : video.urls, false);
3599
- var viewRef = useRef(null);
3600
-
3601
- var _c = useState(!(image === null || image === void 0 ? void 0 : image.small) || false),
3602
- isLoaded = _c[0],
3603
- setLoaded = _c[1];
3604
-
3605
- var _d = useState(false),
3606
- isVideoActive = _d[0],
3607
- setVideoActive = _d[1];
3608
-
3609
- var isObserverSupported = useObserverSupport();
3610
- useUpdateEffect(function () {
3611
- if (!viewRef.current || !hasVideo) return;
3612
-
3613
- if (!isObserverSupported) {
3614
- setVideoActive(true);
3615
- return;
3616
- }
3617
-
3618
- var observer = new IntersectionObserver(function (entries, observer) {
3619
- var entry = entries[0];
3620
-
3621
- if (entry.isIntersecting) {
3622
- observer.unobserve(entry.target);
3623
- setVideoActive(true);
3624
- }
3625
- }, {
3626
- rootMargin: '200px 0px 200px 0px'
3627
- });
3628
- var viewEl = viewRef.current;
3629
- observer.observe(viewEl);
3630
- return function () {
3631
- if (viewEl) observer.unobserve(viewEl);
3632
- };
3633
- }, [isObserverSupported]);
3634
- return React__default.createElement(Section, {
3635
- ref: viewRef,
3636
- anchorId: anchorId,
3637
- bgColor: isInverted ? colors.sectionBg.dark : hasBg ? colors.sectionBg.medium : colors.sectionBg.light,
3638
- bgMode: mapToBgMode(bgMode, true)
3639
- }, (image === null || image === void 0 ? void 0 : image.small) && (!video || !isLoaded) && React__default.createElement(WideImage, __assign({
3640
- coverSpace: true
3641
- }, image, {
3642
- isMirrored: isMirrored,
3643
- isInverted: isInverted
3644
- })), hasVideo && React__default.createElement(WideVideo, {
3645
- urls: isVideoActive ? video === null || video === void 0 ? void 0 : video.urls : undefined,
3646
- muted: true,
3647
- autoPlay: true,
3648
- loop: true,
3649
- onCanPlayThrough: function () {
3650
- return setLoaded(true);
3651
- },
3652
- isVisible: isLoaded,
3653
- isInverted: isInverted,
3654
- isMirrored: isMirrored,
3655
- ratios: video === null || video === void 0 ? void 0 : video.aspectRatios
3656
- }), React__default.createElement(Wrapper, {
3657
- clampWidth: "normal",
3658
- addWhitespace: true
3659
- }, React__default.createElement(Grid.Row, {
3660
- valign: "center"
3661
- }, React__default.createElement(Grid.Col, {
3662
- semilarge: {
3663
- span: 6 / 12,
3664
- move: (isMirrored ? 6 : 0) / 12
3665
- },
3666
- xlarge: {
3667
- span: 7 / 12,
3668
- move: (isMirrored ? 5 : 0) / 12
3669
- }
3670
- }), React__default.createElement(Grid.Col, {
3671
- semilarge: {
3672
- span: 6 / 12,
3673
- move: (isMirrored ? -6 : 0) / 12
3674
- },
3675
- xlarge: {
3676
- span: 5 / 12,
3677
- move: (isMirrored ? -7 : 0) / 12
3678
- }
3679
- }, React__default.createElement(Content, null, React__default.createElement(IntroBlock, {
3680
- titleHyphens: true,
3681
- title: title,
3682
- titleAs: titleAs,
3683
- superTitle: superTitle,
3684
- superTitleAs: superTitleAs,
3685
- text: text,
3686
- colorMode: isInverted ? 'inverted' : 'default'
3687
- }), (primaryAction || secondaryAction) && React__default.createElement(StyledActions, {
3688
- primary: primaryAction && primaryAction(isInverted),
3689
- secondary: secondaryAction && secondaryAction(isInverted)
3690
- }))))));
3691
- };
3692
- var TeaserWide$1 = withLibTheme(TeaserWide);
3693
- var templateObject_1$2, templateObject_2$2, templateObject_3$2, templateObject_4$2, templateObject_5, templateObject_6, templateObject_7;
3694
-
3695
- var TimelineBlock = styled.div.withConfig({
3696
- displayName: "Timeline__TimelineBlock",
3697
- componentId: "sc-em4o0o-0"
3698
- })(templateObject_1$1 || (templateObject_1$1 = __makeTemplateObject(["\n position: relative;\n\n @media ", " {\n text-align: ", ";\n }\n\n &:after {\n content: '';\n width: 10px;\n height: 10px;\n\n box-sizing: content-box;\n border: 2px solid\n ", ";\n border-radius: 50%;\n\n background: ", ";\n\n position: absolute;\n top: 16px;\n left: 0px;\n\n transition: all 0.2s ease-in-out;\n\n @media ", " {\n left: ", ";\n right: ", ";\n transform: translateX(\n ", "\n );\n }\n }\n\n &:before {\n content: '';\n display: block;\n position: absolute;\n width: 2px;\n min-height: 160px;\n height: 100%;\n background: ", ";\n left: 5px;\n\n @media ", " {\n left: 50%;\n transform: translateX(-50%);\n }\n }\n\n &:first-child {\n padding-top: 0;\n\n &:before {\n top: 16px;\n }\n }\n"], ["\n position: relative;\n\n @media ", " {\n text-align: ", ";\n }\n\n &:after {\n content: '';\n width: 10px;\n height: 10px;\n\n box-sizing: content-box;\n border: 2px solid\n ", ";\n border-radius: 50%;\n\n background: ", ";\n\n position: absolute;\n top: 16px;\n left: 0px;\n\n transition: all 0.2s ease-in-out;\n\n @media ", " {\n left: ", ";\n right: ", ";\n transform: translateX(\n ", "\n );\n }\n }\n\n &:before {\n content: '';\n display: block;\n position: absolute;\n width: 2px;\n min-height: 160px;\n height: 100%;\n background: ", ";\n left: 5px;\n\n @media ", " {\n left: 50%;\n transform: translateX(-50%);\n }\n }\n\n &:first-child {\n padding-top: 0;\n\n &:before {\n top: 16px;\n }\n }\n"])), mq.large, function (_a) {
3699
- var isSwitched = _a.isSwitched;
3700
- return isSwitched ? 'left' : 'right';
3701
- }, function (_a) {
3702
- var theme = _a.theme,
3703
- isInverted = _a.isInverted;
3704
- return isInverted ? getColors(theme).elementBg.light : getColors(theme).elementBg.dark;
3705
- }, function (_a) {
3706
- var theme = _a.theme,
3707
- isActive = _a.isActive,
3708
- isInverted = _a.isInverted;
3709
- return isActive ? isInverted ? getColors(theme).elementBg.light : getColors(theme).elementBg.dark : isInverted ? getColors(theme).elementBg.dark : getColors(theme).elementBg.light;
3710
- }, mq.large, function (_a) {
3711
- var isSwitched = _a.isSwitched;
3712
- return !isSwitched ? '50%' : 'auto';
3713
- }, function (_a) {
3714
- var isSwitched = _a.isSwitched;
3715
- return isSwitched && '50%';
3716
- }, function (_a) {
3717
- var isSwitched = _a.isSwitched;
3718
- return isSwitched ? '50%' : '-50%';
3719
- }, function (_a) {
3720
- var theme = _a.theme,
3721
- isInverted = _a.isInverted;
3722
- return isInverted ? getColors(theme).elementBg.light : getColors(theme).elementBg.dark;
3723
- }, mq.large);
3724
- var TimelineText = styled.div.withConfig({
3725
- displayName: "Timeline__TimelineText",
3726
- componentId: "sc-em4o0o-1"
3727
- })(templateObject_2$1 || (templateObject_2$1 = __makeTemplateObject(["\n position: relative;\n padding-left: ", "px;\n padding-bottom: ", "px;\n\n @media ", " {\n max-width: 50%;\n\n margin-left: ", ";\n margin-right: ", ";\n\n padding: ", ";\n }\n\n &:first-child {\n padding-top: 0;\n }\n\n & > * + * {\n margin-top: ", "px;\n }\n"], ["\n position: relative;\n padding-left: ", "px;\n padding-bottom: ", "px;\n\n @media ", " {\n max-width: 50%;\n\n margin-left: ", ";\n margin-right: ", ";\n\n padding: ", ";\n }\n\n &:first-child {\n padding-top: 0;\n }\n\n & > * + * {\n margin-top: ", "px;\n }\n"])), spacings.nudge * 3 + 2, spacings.spacer, mq.large, function (_a) {
3728
- var isSwitched = _a.isSwitched;
3729
- return isSwitched && '50%';
3730
- }, function (_a) {
3731
- var isSwitched = _a.isSwitched;
3732
- return !isSwitched && '50%';
3733
- }, function (_a) {
3734
- var isSwitched = _a.isSwitched;
3735
- return isSwitched ? "".concat(spacings.spacer, "px 0 ").concat(spacings.spacer * 1.75, "px ").concat(spacings.spacer, "px") : "".concat(spacings.spacer, "px ").concat(spacings.spacer, "px ").concat(spacings.spacer * 1.75, "px 0");
3736
- }, spacings.nudge * 2);
3737
- var ItemTitle = styled(Heading).withConfig({
3738
- displayName: "Timeline__ItemTitle",
3739
- componentId: "sc-em4o0o-2"
3740
- })(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject([""], [""])));
3741
- var ItemTextBlock = styled(Copy).withConfig({
3742
- displayName: "Timeline__ItemTextBlock",
3743
- componentId: "sc-em4o0o-3"
3744
- })(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject([""], [""])));
3745
-
3746
- var Timeline = function (_a) {
3747
- var anchorId = _a.anchorId,
3748
- bgMode = _a.bgMode,
3749
- items = _a.items;
3750
- var theme = useContext(ThemeContext);
3751
- var isInverted = bgMode === 'inverted';
3752
- var hasBg = bgMode === 'full';
3753
-
3754
- var _b = useState([]),
3755
- targetRefs = _b[0],
3756
- setTargetRefs = _b[1];
3757
-
3758
- var observerSupported = useObserverSupport();
3759
- var observerRef = useRef(null);
3760
-
3761
- var _c = useState(0),
3762
- activeItem = _c[0],
3763
- setActiveItem = _c[1];
3764
-
3765
- useEffect(function () {
3766
- if (observerSupported && targetRefs && targetRefs.length > 0) {
3767
- var options = {
3768
- rootMargin: '-50% 0% -50% 0%',
3769
- threshold: 0
3770
- };
3771
- observerRef.current = new IntersectionObserver(function (entries) {
3772
- entries.forEach(function (entry) {
3773
- if (entry.isIntersecting) {
3774
- var index = targetRefs === null || targetRefs === void 0 ? void 0 : targetRefs.findIndex(function (t) {
3775
- return t.current === entry.target;
3776
- });
3777
- setActiveItem(index);
3778
- }
3779
- });
3780
- }, options);
3781
-
3782
- for (var i = 0; i < targetRefs.length; i++) {
3783
- observerRef.current.observe(targetRefs[i].current);
3784
- }
3785
- }
3786
-
3787
- return function () {
3788
- var _a;
3789
-
3790
- (_a = observerRef.current) === null || _a === void 0 ? void 0 : _a.disconnect();
3791
- };
3792
- }, [targetRefs, observerSupported]);
3793
- useEffect(function () {
3794
- setTargetRefs(function () {
3795
- return Array(items === null || items === void 0 ? void 0 : items.length).fill(null).map(function (_, i) {
3796
- return targetRefs[i] || createRef();
3797
- });
3798
- }); // eslint-disable-next-line react-hooks/exhaustive-deps
3799
- }, [items === null || items === void 0 ? void 0 : items.length]);
3800
- return React__default.createElement(Section, {
3801
- anchorId: anchorId,
3802
- bgColor: isInverted ? getColors(theme).sectionBg.dark : hasBg ? getColors(theme).sectionBg.medium : 'transparent',
3803
- bgMode: mapToBgMode(bgMode, true),
3804
- addSeperation: true
3805
- }, React__default.createElement(Wrapper, {
3806
- addWhitespace: true
3807
- }, items && items.map(function (item, i) {
3808
- return React__default.createElement(TimelineBlock, {
3809
- ref: targetRefs[i],
3810
- isActive: activeItem === i,
3811
- isSwitched: i % 2 === 0,
3812
- isInverted: isInverted,
3813
- key: i
3814
- }, React__default.createElement(TimelineText, {
3815
- isSwitched: i % 2 === 0
3816
- }, React__default.createElement(ItemTitle, {
3817
- size: "heading-2",
3818
- textColor: isInverted ? getColors(theme).text.inverted : getColors(theme).text.default
3819
- }, item.label), React__default.createElement(ItemTextBlock, {
3820
- type: "copy-b",
3821
- size: "big",
3822
- isInverted: isInverted
3823
- }, item.title), React__default.createElement(ItemTextBlock, {
3824
- innerHTML: item.text,
3825
- isInverted: isInverted
3826
- })));
3827
- })));
3828
- };
3829
- var Timeline$1 = withLibTheme(Timeline);
3830
- var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1;
3831
-
3832
- var Video$1 = function (_a) {
3833
- var anchorId = _a.anchorId,
3834
- bgMode = _a.bgMode,
3835
- bgImage = _a.bgImage,
3836
- embedId = _a.embedId,
3837
- playIcon = _a.playIcon,
3838
- consentText = _a.consentText,
3839
- consentAction = _a.consentAction;
3840
- var colors = useLibTheme().colors;
3841
- var isInverted = bgMode === 'inverted';
3842
- return React__default.createElement(Section, {
3843
- anchorId: anchorId,
3844
- bgColor: isInverted ? colors.sectionBg.dark : bgMode ? colors.sectionBg.medium : colors.sectionBg.light,
3845
- bgMode: mapToBgMode(bgMode),
3846
- addSeperation: true
3847
- }, React__default.createElement(Wrapper, {
3848
- addWhitespace: true
3849
- }, React__default.createElement(VideoCard, {
3850
- bgImage: bgImage,
3851
- embedId: embedId,
3852
- playIcon: playIcon,
3853
- consentText: consentText,
3854
- consentAction: consentAction
3855
- })));
3856
- };
3857
- var Video$2 = withLibTheme(Video$1);
3858
-
3859
- var VideoContainer = styled.div.withConfig({
3860
- displayName: "RawVideo__VideoContainer",
3861
- componentId: "sc-ylrujv-0"
3862
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n cursor: pointer;\n"], ["\n position: relative;\n cursor: pointer;\n"])));
3863
- var Overlay = styled.div.withConfig({
3864
- displayName: "RawVideo__Overlay",
3865
- componentId: "sc-ylrujv-1"
3866
- })(templateObject_2 || (templateObject_2 = __makeTemplateObject(["\n position: relative;\n padding-top: ", ";\n background: ", ";\n\n background-image: ", ";\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n\n border-radius: ", ";\n overflow: hidden;\n\n @media ", " {\n text-align: left;\n\n background-image: ", ";\n }\n\n @media ", " {\n background-image: ", ";\n }\n\n @media ", " {\n background-image: ", ";\n }\n\n @media ", " {\n background-image: ", ";\n }\n\n &:after {\n content: '';\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n pointer-events: none;\n\n background: linear-gradient(\n 358.19deg,\n rgba(29, 34, 35, 0.52) 12.37%,\n rgba(29, 34, 35, 0) 59.02%\n );\n }\n"], ["\n position: relative;\n padding-top: ", ";\n background: ", ";\n\n background-image: ", ";\n background-size: cover;\n background-repeat: no-repeat;\n background-position: center;\n\n border-radius: ", ";\n overflow: hidden;\n\n @media ", " {\n text-align: left;\n\n background-image: ", ";\n }\n\n @media ", " {\n background-image: ", ";\n }\n\n @media ", " {\n background-image: ", ";\n }\n\n @media ", " {\n background-image: ", ";\n }\n\n &:after {\n content: '';\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n bottom: 0;\n right: 0;\n pointer-events: none;\n\n background: linear-gradient(\n 358.19deg,\n rgba(29, 34, 35, 0.52) 12.37%,\n rgba(29, 34, 35, 0) 59.02%\n );\n }\n"])), "calc(100% / (16 / 9))", function (_a) {
3867
- var theme = _a.theme,
3868
- isInverted = _a.isInverted;
3869
- return isInverted ? getGlobals(theme).sections.imagePlaceholderBg.inverted : getGlobals(theme).sections.imagePlaceholderBg.default;
3870
- }, function (_a) {
3871
- var bgImage = _a.bgImage;
3872
- return (bgImage === null || bgImage === void 0 ? void 0 : bgImage.small) && "url(\"".concat(bgImage.small, "\")");
3873
- }, function (_a) {
3874
- var theme = _a.theme;
3875
- return getGlobals(theme).sections.edgeRadius;
3876
- }, mq.medium, function (_a) {
3877
- var bgImage = _a.bgImage;
3878
- return (bgImage === null || bgImage === void 0 ? void 0 : bgImage.medium) && "url(\"".concat(bgImage.medium, "\")");
3879
- }, mq.semilarge, function (_a) {
3880
- var bgImage = _a.bgImage;
3881
- return (bgImage === null || bgImage === void 0 ? void 0 : bgImage.semilarge) && "url(\"".concat(bgImage.semilarge, "\")");
3882
- }, mq.large, function (_a) {
3883
- var bgImage = _a.bgImage;
3884
- return (bgImage === null || bgImage === void 0 ? void 0 : bgImage.large) && "url(\"".concat(bgImage.large, "\")");
3885
- }, mq.xlarge, function (_a) {
3886
- var bgImage = _a.bgImage;
3887
- return (bgImage === null || bgImage === void 0 ? void 0 : bgImage.xlarge) && "url(\"".concat(bgImage.xlarge, "\")");
3888
- });
3889
- var VideoControls = styled.button.withConfig({
3890
- displayName: "RawVideo__VideoControls",
3891
- componentId: "sc-ylrujv-2"
3892
- })(templateObject_3 || (templateObject_3 = __makeTemplateObject(["\n display: block;\n border: none;\n background: none;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n color: ", ";\n z-index: 1;\n padding: 0;\n\n cursor: pointer;\n\n & > * {\n opacity: 0.8;\n transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;\n height: 80px;\n width: 80px;\n\n color: ", ";\n }\n\n ", ":hover > & > * {\n transform: scale(1.05);\n opacity: 1;\n }\n\n ", ":active > & > * {\n transform: scale(0.95);\n opacity: 1;\n }\n\n &:focus {\n outline: 2px solid ", ";\n border-radius: 50%;\n opacity: 1;\n\n & > * {\n color: ", ";\n }\n }\n\n &:focus:not(:focus-visible) {\n outline: none;\n box-shadow: none;\n }\n"], ["\n display: block;\n border: none;\n background: none;\n position: absolute;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%);\n color: ", ";\n z-index: 1;\n padding: 0;\n\n cursor: pointer;\n\n & > * {\n opacity: 0.8;\n transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;\n height: 80px;\n width: 80px;\n\n color: ", ";\n }\n\n ", ":hover > & > * {\n transform: scale(1.05);\n opacity: 1;\n }\n\n ", ":active > & > * {\n transform: scale(0.95);\n opacity: 1;\n }\n\n &:focus {\n outline: 2px solid ", ";\n border-radius: 50%;\n opacity: 1;\n\n & > * {\n color: ", ";\n }\n }\n\n &:focus:not(:focus-visible) {\n outline: none;\n box-shadow: none;\n }\n"])), function (_a) {
3893
- var theme = _a.theme;
3894
- return getColors(theme).elementBg.light;
3895
- }, function (_a) {
3896
- var theme = _a.theme;
3897
- return getColors(theme).elementBg.dark;
3898
- }, Overlay, Overlay, function (_a) {
3899
- var theme = _a.theme;
3900
- return getColors(theme).primary.default;
3901
- }, function (_a) {
3902
- var theme = _a.theme;
3903
- return getColors(theme).primary.default;
3904
- });
3905
- var Video = styled(VideoBlock).withConfig({
3906
- displayName: "RawVideo__Video",
3907
- componentId: "sc-ylrujv-3"
3908
- })(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n opacity: ", ";\n pointer-events: ", ";\n"], ["\n opacity: ", ";\n pointer-events: ", ";\n"])), function (_a) {
3909
- var isVisible = _a.isVisible;
3910
- return isVisible ? 1 : 0;
3911
- }, function (_a) {
3912
- var isVisible = _a.isVisible;
3913
- return isVisible ? 'all' : 'none';
3914
- });
3915
-
3916
- var RawVideo = function (_a) {
3917
- var anchorId = _a.anchorId,
3918
- bgMode = _a.bgMode,
3919
- videoUrls = _a.videoUrls,
3920
- placeholderImg = _a.placeholderImg,
3921
- playIcon = _a.playIcon,
3922
- autoplay = _a.autoplay,
3923
- loop = _a.loop;
3924
- var colors = useLibTheme().colors;
3925
- var isInverted = bgMode === 'inverted';
3926
-
3927
- var _b = useState(autoplay || false),
3928
- isStarted = _b[0],
3929
- setIsStarted = _b[1];
3930
-
3931
- return React__default.createElement(Section, {
3932
- anchorId: anchorId,
3933
- bgColor: isInverted ? colors.sectionBg.dark : bgMode ? colors.sectionBg.medium : colors.sectionBg.light,
3934
- bgMode: mapToBgMode(bgMode),
3935
- addSeperation: true
3936
- }, React__default.createElement(Wrapper, {
3937
- addWhitespace: true
3938
- }, React__default.createElement(VideoContainer, {
3939
- onClick: function () {
3940
- if (isValidArray(videoUrls, false)) {
3941
- setIsStarted(true);
3942
- }
3943
- }
3944
- }, isStarted && React__default.createElement(Video, {
3945
- isVisible: isStarted || !(placeholderImg === null || placeholderImg === void 0 ? void 0 : placeholderImg.small),
3946
- controls: !autoplay,
3947
- autoPlay: true,
3948
- loop: loop,
3949
- muted: autoplay,
3950
- ratios: {
3951
- small: 16 / 9
3952
- },
3953
- urls: videoUrls,
3954
- isInverted: isInverted
3955
- }), !isStarted && React__default.createElement(Overlay, {
3956
- bgImage: placeholderImg,
3957
- isInverted: isInverted
3958
- }, React__default.createElement(VideoControls, null, playIcon || React__default.createElement(Play, {
3959
- iconColor: "#000"
3960
- }))))));
3961
- };
3962
- var RawVideo$1 = withLibTheme(RawVideo);
3963
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
3964
-
3965
- export { Accordion$1 as Accordion, AlertList$1 as AlertList, Article$1 as Article, CallToAction$1 as CallToAction, CardList$2 as CardList, ComparisonSlider$1 as ComparisonSlider, CrossPromotion$1 as CrossPromotion, FactGrid$1 as FactGrid, FactList$1 as FactList, FeatureList$1 as FeatureList, Gallery$1 as Gallery, Header$1 as Header, IconList$1 as IconList, IndexList$1 as IndexList, Intro$2 as Intro, Map$1 as Map, NavList$1 as NavList, NumberList$1 as NumberList, ParallaxBackground, Poster$1 as Poster, PriceList$1 as PriceList, PriceTable$1 as PriceTable, Quote$1 as Quote, RawVideo$1 as RawVideo, SimpleImage$1 as SimpleImage, SocialWall$1 as SocialWall, Table$1 as Table, Teaser$1 as Teaser, TeaserWide$1 as TeaserWide, Timeline$1 as Timeline, Video$2 as Video };
3966
- //# sourceMappingURL=sections.js.map