@blateral/b.kit 2.3.0-beta.1.4 → 2.3.1

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 (833) 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/fields/FilterField.d.ts.map +1 -1
  4. package/lib/components/sections/NumberList.d.ts +36 -0
  5. package/lib/components/sections/NumberList.d.ts.map +1 -0
  6. package/{types → lib}/components/sections/header/Header.d.ts +3 -3
  7. package/lib/components/sections/header/Header.d.ts.map +1 -0
  8. package/lib/components/sections/navigation/menu/variations/MenuFlyout.d.ts.map +1 -0
  9. package/lib/components/sections/navigation/menu/variations/MenuLarge.d.ts.map +1 -0
  10. package/{types → lib}/components/typography/Callout.d.ts +2 -2
  11. package/lib/components/typography/Callout.d.ts.map +1 -0
  12. package/lib/index.d.ts +158 -0
  13. package/lib/index.d.ts.map +1 -0
  14. package/lib/index.es.js +2 -0
  15. package/lib/index.es.js.map +1 -0
  16. package/lib/index.js +2 -0
  17. package/lib/index.js.map +1 -0
  18. package/{types → lib}/utils/styles.d.ts +8 -1
  19. package/lib/utils/styles.d.ts.map +1 -0
  20. package/{types → lib}/utils/useEqualSheetHeight.d.ts +9 -2
  21. package/lib/utils/useEqualSheetHeight.d.ts.map +1 -0
  22. package/{types → lib}/utils/useMediaQuery.d.ts +4 -0
  23. package/{types → lib}/utils/useMediaQuery.d.ts.map +1 -1
  24. package/package.json +5 -19
  25. package/base/package.json +0 -7
  26. package/blocks/package.json +0 -7
  27. package/buttons/package.json +0 -7
  28. package/cjs/Actions-6dd616e0.js +0 -2
  29. package/cjs/Actions-6dd616e0.js.map +0 -1
  30. package/cjs/Bdot-d898ba3b.js +0 -2
  31. package/cjs/Bdot-d898ba3b.js.map +0 -1
  32. package/cjs/Button-72747f63.js +0 -2
  33. package/cjs/Button-72747f63.js.map +0 -1
  34. package/cjs/ButtonGhost-046437c5.js +0 -2
  35. package/cjs/ButtonGhost-046437c5.js.map +0 -1
  36. package/cjs/Callout-2713f870.js +0 -2
  37. package/cjs/Callout-2713f870.js.map +0 -1
  38. package/cjs/Checkbox-14000bf0.js +0 -2
  39. package/cjs/Checkbox-14000bf0.js.map +0 -1
  40. package/cjs/ClockFilled-2483aa4a.js +0 -2
  41. package/cjs/ClockFilled-2483aa4a.js.map +0 -1
  42. package/cjs/Control-eead1a4c.js +0 -2
  43. package/cjs/Control-eead1a4c.js.map +0 -1
  44. package/cjs/Copy-e860efe7.js +0 -2
  45. package/cjs/Copy-e860efe7.js.map +0 -1
  46. package/cjs/EventBlock-10b9d78d.js +0 -2
  47. package/cjs/EventBlock-10b9d78d.js.map +0 -1
  48. package/cjs/FileUpload-ece8bb07.js +0 -2
  49. package/cjs/FileUpload-ece8bb07.js.map +0 -1
  50. package/cjs/Filter-d6d90b8b.js +0 -2
  51. package/cjs/Filter-d6d90b8b.js.map +0 -1
  52. package/cjs/FilterField-cf9e2f16.js +0 -2
  53. package/cjs/FilterField-cf9e2f16.js.map +0 -1
  54. package/cjs/Grid-39b12e21.js +0 -2
  55. package/cjs/Grid-39b12e21.js.map +0 -1
  56. package/cjs/Image-d9681be0.js +0 -2
  57. package/cjs/Image-d9681be0.js.map +0 -1
  58. package/cjs/InfoList-577f3c57.js +0 -2
  59. package/cjs/InfoList-577f3c57.js.map +0 -1
  60. package/cjs/LanguageSwitcher-47e25e95.js +0 -2
  61. package/cjs/LanguageSwitcher-47e25e95.js.map +0 -1
  62. package/cjs/LibThemeProvider-fb99fd6d.js +0 -2
  63. package/cjs/LibThemeProvider-fb99fd6d.js.map +0 -1
  64. package/cjs/Link-70143bb7.js +0 -2
  65. package/cjs/Link-70143bb7.js.map +0 -1
  66. package/cjs/Navigation-3f5d6088.js +0 -2
  67. package/cjs/Navigation-3f5d6088.js.map +0 -1
  68. package/cjs/POICard-492bf8d0.js +0 -2
  69. package/cjs/POICard-492bf8d0.js.map +0 -1
  70. package/cjs/Pointer-3588eadf.js +0 -2
  71. package/cjs/Pointer-3588eadf.js.map +0 -1
  72. package/cjs/SocialList-da77e994.js +0 -2
  73. package/cjs/SocialList-da77e994.js.map +0 -1
  74. package/cjs/TableBlock-a5b16e8f.js +0 -2
  75. package/cjs/TableBlock-a5b16e8f.js.map +0 -1
  76. package/cjs/Tag-5c72cc0d.js +0 -2
  77. package/cjs/Tag-5c72cc0d.js.map +0 -1
  78. package/cjs/VideoBlock-301997a9.js +0 -2
  79. package/cjs/VideoBlock-301997a9.js.map +0 -1
  80. package/cjs/VideoCard-405b518a.js +0 -2
  81. package/cjs/VideoCard-405b518a.js.map +0 -1
  82. package/cjs/Wrapper-91748bdb.js +0 -2
  83. package/cjs/Wrapper-91748bdb.js.map +0 -1
  84. package/cjs/arrays-c272ed59.js +0 -2
  85. package/cjs/arrays-c272ed59.js.map +0 -1
  86. package/cjs/base.js +0 -2
  87. package/cjs/base.js.map +0 -1
  88. package/cjs/blocks.js +0 -2
  89. package/cjs/blocks.js.map +0 -1
  90. package/cjs/buttons.js +0 -2
  91. package/cjs/buttons.js.map +0 -1
  92. package/cjs/clamp-bd21d587.js +0 -2
  93. package/cjs/clamp-bd21d587.js.map +0 -1
  94. package/cjs/concat-f387d848.js +0 -2
  95. package/cjs/concat-f387d848.js.map +0 -1
  96. package/cjs/cookies.js +0 -2
  97. package/cjs/cookies.js.map +0 -1
  98. package/cjs/escape-1ef8dd83.js +0 -2
  99. package/cjs/escape-1ef8dd83.js.map +0 -1
  100. package/cjs/fields.js +0 -2
  101. package/cjs/fields.js.map +0 -1
  102. package/cjs/footer.js +0 -2
  103. package/cjs/footer.js.map +0 -1
  104. package/cjs/hexRgbConverter-91b28aea.js +0 -2
  105. package/cjs/hexRgbConverter-91b28aea.js.map +0 -1
  106. package/cjs/hooks.js +0 -2
  107. package/cjs/hooks.js.map +0 -1
  108. package/cjs/icons.js +0 -2
  109. package/cjs/icons.js.map +0 -1
  110. package/cjs/index.js +0 -2
  111. package/cjs/index.js.map +0 -1
  112. package/cjs/navigation-bf154e6e.js +0 -2
  113. package/cjs/navigation-bf154e6e.js.map +0 -1
  114. package/cjs/navigation.js +0 -2
  115. package/cjs/navigation.js.map +0 -1
  116. package/cjs/sections.js +0 -2
  117. package/cjs/sections.js.map +0 -1
  118. package/cjs/sections_events.js +0 -2
  119. package/cjs/sections_events.js.map +0 -1
  120. package/cjs/sections_forms.js +0 -2
  121. package/cjs/sections_forms.js.map +0 -1
  122. package/cjs/sections_jobs.js +0 -2
  123. package/cjs/sections_jobs.js.map +0 -1
  124. package/cjs/sections_news.js +0 -2
  125. package/cjs/sections_news.js.map +0 -1
  126. package/cjs/sections_pois.js +0 -2
  127. package/cjs/sections_pois.js.map +0 -1
  128. package/cjs/statusFormatter-0393122b.js +0 -2
  129. package/cjs/statusFormatter-0393122b.js.map +0 -1
  130. package/cjs/structuredData-0b1278a9.js +0 -2
  131. package/cjs/structuredData-0b1278a9.js.map +0 -1
  132. package/cjs/styles-0f1a0aea.js +0 -2
  133. package/cjs/styles-0f1a0aea.js.map +0 -1
  134. package/cjs/typography.js +0 -2
  135. package/cjs/typography.js.map +0 -1
  136. package/cjs/urlParams-7525f638.js +0 -2
  137. package/cjs/urlParams-7525f638.js.map +0 -1
  138. package/cjs/useCookieConsent-0bf94751.js +0 -2
  139. package/cjs/useCookieConsent-0bf94751.js.map +0 -1
  140. package/cjs/useEqualSheetHeight-cfd4176e.js +0 -2
  141. package/cjs/useEqualSheetHeight-cfd4176e.js.map +0 -1
  142. package/cjs/useGeolocation-d8946470.js +0 -2
  143. package/cjs/useGeolocation-d8946470.js.map +0 -1
  144. package/cjs/useIE-aef9decc.js +0 -2
  145. package/cjs/useIE-aef9decc.js.map +0 -1
  146. package/cjs/useLazyInput-f71c221b.js +0 -2
  147. package/cjs/useLazyInput-f71c221b.js.map +0 -1
  148. package/cjs/useLeafletMap-2e608b01.js +0 -2
  149. package/cjs/useLeafletMap-2e608b01.js.map +0 -1
  150. package/cjs/useMediaQuery-d4f81f88.js +0 -2
  151. package/cjs/useMediaQuery-d4f81f88.js.map +0 -1
  152. package/cjs/useMounted-0bba9869.js +0 -2
  153. package/cjs/useMounted-0bba9869.js.map +0 -1
  154. package/cjs/useObserverSupport-5ab320dd.js +0 -2
  155. package/cjs/useObserverSupport-5ab320dd.js.map +0 -1
  156. package/cjs/useScrollTo-fdd665da.js +0 -2
  157. package/cjs/useScrollTo-fdd665da.js.map +0 -1
  158. package/cjs/useUpdateEffect-4d233e2c.js +0 -2
  159. package/cjs/useUpdateEffect-4d233e2c.js.map +0 -1
  160. package/cookies/package.json +0 -7
  161. package/esm/Actions-3f06c2e9.js +0 -57
  162. package/esm/Actions-3f06c2e9.js.map +0 -1
  163. package/esm/Bdot-fae262fc.js +0 -24
  164. package/esm/Bdot-fae262fc.js.map +0 -1
  165. package/esm/Button-ab1a4e79.js +0 -115
  166. package/esm/Button-ab1a4e79.js.map +0 -1
  167. package/esm/ButtonGhost-5b498dba.js +0 -112
  168. package/esm/ButtonGhost-5b498dba.js.map +0 -1
  169. package/esm/Callout-389fed95.js +0 -99
  170. package/esm/Callout-389fed95.js.map +0 -1
  171. package/esm/Checkbox-957d8f33.js +0 -135
  172. package/esm/Checkbox-957d8f33.js.map +0 -1
  173. package/esm/ClockFilled-6bae80dc.js +0 -1793
  174. package/esm/ClockFilled-6bae80dc.js.map +0 -1
  175. package/esm/Control-57a287dc.js +0 -52
  176. package/esm/Control-57a287dc.js.map +0 -1
  177. package/esm/Copy-fb124972.js +0 -270
  178. package/esm/Copy-fb124972.js.map +0 -1
  179. package/esm/EventBlock-0109da13.js +0 -132
  180. package/esm/EventBlock-0109da13.js.map +0 -1
  181. package/esm/FileUpload-4ba0a672.js +0 -4790
  182. package/esm/FileUpload-4ba0a672.js.map +0 -1
  183. package/esm/Filter-fec6dc5c.js +0 -32
  184. package/esm/Filter-fec6dc5c.js.map +0 -1
  185. package/esm/FilterField-03097694.js +0 -129
  186. package/esm/FilterField-03097694.js.map +0 -1
  187. package/esm/Grid-151498da.js +0 -203
  188. package/esm/Grid-151498da.js.map +0 -1
  189. package/esm/Image-b538f659.js +0 -193
  190. package/esm/Image-b538f659.js.map +0 -1
  191. package/esm/InfoList-616d17fd.js +0 -74
  192. package/esm/InfoList-616d17fd.js.map +0 -1
  193. package/esm/LanguageSwitcher-058e0145.js +0 -70
  194. package/esm/LanguageSwitcher-058e0145.js.map +0 -1
  195. package/esm/LibThemeProvider-a38c5bf1.js +0 -115
  196. package/esm/LibThemeProvider-a38c5bf1.js.map +0 -1
  197. package/esm/Link-0a1e35d6.js +0 -60
  198. package/esm/Link-0a1e35d6.js.map +0 -1
  199. package/esm/Navigation-13dce48c.js +0 -1664
  200. package/esm/Navigation-13dce48c.js.map +0 -1
  201. package/esm/POICard-392a2c3a.js +0 -116
  202. package/esm/POICard-392a2c3a.js.map +0 -1
  203. package/esm/Pointer-bc68154f.js +0 -111
  204. package/esm/Pointer-bc68154f.js.map +0 -1
  205. package/esm/SocialList-4396cad9.js +0 -61
  206. package/esm/SocialList-4396cad9.js.map +0 -1
  207. package/esm/TableBlock-26530c71.js +0 -159
  208. package/esm/TableBlock-26530c71.js.map +0 -1
  209. package/esm/Tag-72424779.js +0 -67
  210. package/esm/Tag-72424779.js.map +0 -1
  211. package/esm/VideoBlock-b3f4ae27.js +0 -624
  212. package/esm/VideoBlock-b3f4ae27.js.map +0 -1
  213. package/esm/VideoCard-3fd368ef.js +0 -160
  214. package/esm/VideoCard-3fd368ef.js.map +0 -1
  215. package/esm/Wrapper-29347885.js +0 -224
  216. package/esm/Wrapper-29347885.js.map +0 -1
  217. package/esm/arrays-65b644ef.js +0 -17
  218. package/esm/arrays-65b644ef.js.map +0 -1
  219. package/esm/base.js +0 -11
  220. package/esm/base.js.map +0 -1
  221. package/esm/blocks.js +0 -26
  222. package/esm/blocks.js.map +0 -1
  223. package/esm/buttons.js +0 -12
  224. package/esm/buttons.js.map +0 -1
  225. package/esm/clamp-12d37b65.js +0 -10
  226. package/esm/clamp-12d37b65.js.map +0 -1
  227. package/esm/concat-ab3c66f2.js +0 -40
  228. package/esm/concat-ab3c66f2.js.map +0 -1
  229. package/esm/cookies.js +0 -270
  230. package/esm/cookies.js.map +0 -1
  231. package/esm/escape-cbff9c25.js +0 -6
  232. package/esm/escape-cbff9c25.js.map +0 -1
  233. package/esm/fields.js +0 -190
  234. package/esm/fields.js.map +0 -1
  235. package/esm/footer.js +0 -301
  236. package/esm/footer.js.map +0 -1
  237. package/esm/hexRgbConverter-edb91624.js +0 -36
  238. package/esm/hexRgbConverter-edb91624.js.map +0 -1
  239. package/esm/hooks.js +0 -531
  240. package/esm/hooks.js.map +0 -1
  241. package/esm/icons.js +0 -4
  242. package/esm/icons.js.map +0 -1
  243. package/esm/index.js +0 -7
  244. package/esm/index.js.map +0 -1
  245. package/esm/navigation-a2998143.js +0 -132
  246. package/esm/navigation-a2998143.js.map +0 -1
  247. package/esm/navigation.js +0 -159
  248. package/esm/navigation.js.map +0 -1
  249. package/esm/sections.js +0 -3914
  250. package/esm/sections.js.map +0 -1
  251. package/esm/sections_events.js +0 -573
  252. package/esm/sections_events.js.map +0 -1
  253. package/esm/sections_forms.js +0 -1405
  254. package/esm/sections_forms.js.map +0 -1
  255. package/esm/sections_jobs.js +0 -508
  256. package/esm/sections_jobs.js.map +0 -1
  257. package/esm/sections_news.js +0 -1023
  258. package/esm/sections_news.js.map +0 -1
  259. package/esm/sections_pois.js +0 -719
  260. package/esm/sections_pois.js.map +0 -1
  261. package/esm/statusFormatter-9be0fbff.js +0 -255
  262. package/esm/statusFormatter-9be0fbff.js.map +0 -1
  263. package/esm/structuredData-87423414.js +0 -117
  264. package/esm/structuredData-87423414.js.map +0 -1
  265. package/esm/styles-f6c54818.js +0 -462
  266. package/esm/styles-f6c54818.js.map +0 -1
  267. package/esm/typography.js +0 -11
  268. package/esm/typography.js.map +0 -1
  269. package/esm/urlParams-9cfdaf71.js +0 -51
  270. package/esm/urlParams-9cfdaf71.js.map +0 -1
  271. package/esm/useCookieConsent-8caef116.js +0 -339
  272. package/esm/useCookieConsent-8caef116.js.map +0 -1
  273. package/esm/useEqualSheetHeight-c18cebd3.js +0 -196
  274. package/esm/useEqualSheetHeight-c18cebd3.js.map +0 -1
  275. package/esm/useGeolocation-f9f073cc.js +0 -95
  276. package/esm/useGeolocation-f9f073cc.js.map +0 -1
  277. package/esm/useIE-a9c56989.js +0 -15
  278. package/esm/useIE-a9c56989.js.map +0 -1
  279. package/esm/useLazyInput-e66fc5be.js +0 -85
  280. package/esm/useLazyInput-e66fc5be.js.map +0 -1
  281. package/esm/useLeafletMap-6dea7a8e.js +0 -300
  282. package/esm/useLeafletMap-6dea7a8e.js.map +0 -1
  283. package/esm/useMediaQuery-0d473a9c.js +0 -109
  284. package/esm/useMediaQuery-0d473a9c.js.map +0 -1
  285. package/esm/useMounted-1e4cc87b.js +0 -12
  286. package/esm/useMounted-1e4cc87b.js.map +0 -1
  287. package/esm/useObserverSupport-02bce7f5.js +0 -19
  288. package/esm/useObserverSupport-02bce7f5.js.map +0 -1
  289. package/esm/useScrollTo-70af34bf.js +0 -57
  290. package/esm/useScrollTo-70af34bf.js.map +0 -1
  291. package/esm/useUpdateEffect-824c0c84.js +0 -18
  292. package/esm/useUpdateEffect-824c0c84.js.map +0 -1
  293. package/fields/package.json +0 -7
  294. package/footer/package.json +0 -7
  295. package/hooks/package.json +0 -7
  296. package/icons/package.json +0 -7
  297. package/navigation/package.json +0 -7
  298. package/sections/events/package.json +0 -7
  299. package/sections/forms/package.json +0 -7
  300. package/sections/jobs/package.json +0 -7
  301. package/sections/news/package.json +0 -7
  302. package/sections/package.json +0 -7
  303. package/sections/pois/package.json +0 -7
  304. package/types/base.d.ts +0 -5
  305. package/types/base.d.ts.map +0 -1
  306. package/types/blocks.d.ts +0 -18
  307. package/types/blocks.d.ts.map +0 -1
  308. package/types/buttons.d.ts +0 -6
  309. package/types/buttons.d.ts.map +0 -1
  310. package/types/components/sections/NumberList.d.ts +0 -31
  311. package/types/components/sections/NumberList.d.ts.map +0 -1
  312. package/types/components/sections/header/Header.d.ts.map +0 -1
  313. package/types/components/sections/navigation/menu/variations/MenuFlyout.d.ts.map +0 -1
  314. package/types/components/sections/navigation/menu/variations/MenuLarge.d.ts.map +0 -1
  315. package/types/components/typography/Callout.d.ts.map +0 -1
  316. package/types/cookies.d.ts +0 -3
  317. package/types/cookies.d.ts.map +0 -1
  318. package/types/fields.d.ts +0 -14
  319. package/types/fields.d.ts.map +0 -1
  320. package/types/footer.d.ts +0 -4
  321. package/types/footer.d.ts.map +0 -1
  322. package/types/hooks.d.ts +0 -35
  323. package/types/hooks.d.ts.map +0 -1
  324. package/types/icons.d.ts +0 -66
  325. package/types/icons.d.ts.map +0 -1
  326. package/types/index.d.ts +0 -18
  327. package/types/index.d.ts.map +0 -1
  328. package/types/navigation.d.ts +0 -10
  329. package/types/navigation.d.ts.map +0 -1
  330. package/types/sections.d.ts +0 -32
  331. package/types/sections.d.ts.map +0 -1
  332. package/types/sections_events.d.ts +0 -4
  333. package/types/sections_events.d.ts.map +0 -1
  334. package/types/sections_forms.d.ts +0 -3
  335. package/types/sections_forms.d.ts.map +0 -1
  336. package/types/sections_jobs.d.ts +0 -3
  337. package/types/sections_jobs.d.ts.map +0 -1
  338. package/types/sections_news.d.ts +0 -10
  339. package/types/sections_news.d.ts.map +0 -1
  340. package/types/sections_pois.d.ts +0 -4
  341. package/types/sections_pois.d.ts.map +0 -1
  342. package/types/typography.d.ts +0 -6
  343. package/types/typography.d.ts.map +0 -1
  344. package/types/utils/styles.d.ts.map +0 -1
  345. package/types/utils/useEqualSheetHeight.d.ts.map +0 -1
  346. package/typography/package.json +0 -7
  347. /package/{types → lib}/components/base/Grid.d.ts +0 -0
  348. /package/{types → lib}/components/base/Grid.d.ts.map +0 -0
  349. /package/{types → lib}/components/base/Section.d.ts +0 -0
  350. /package/{types → lib}/components/base/Section.d.ts.map +0 -0
  351. /package/{types → lib}/components/base/Wrapper.d.ts +0 -0
  352. /package/{types → lib}/components/base/Wrapper.d.ts.map +0 -0
  353. /package/{types → lib}/components/base/icons/AngleDown.d.ts +0 -0
  354. /package/{types → lib}/components/base/icons/AngleDown.d.ts.map +0 -0
  355. /package/{types → lib}/components/base/icons/AngleLeft.d.ts +0 -0
  356. /package/{types → lib}/components/base/icons/AngleLeft.d.ts.map +0 -0
  357. /package/{types → lib}/components/base/icons/AngleRight.d.ts +0 -0
  358. /package/{types → lib}/components/base/icons/AngleRight.d.ts.map +0 -0
  359. /package/{types → lib}/components/base/icons/AngleUp.d.ts +0 -0
  360. /package/{types → lib}/components/base/icons/AngleUp.d.ts.map +0 -0
  361. /package/{types → lib}/components/base/icons/ArrowDown.d.ts +0 -0
  362. /package/{types → lib}/components/base/icons/ArrowDown.d.ts.map +0 -0
  363. /package/{types → lib}/components/base/icons/ArrowLeft.d.ts +0 -0
  364. /package/{types → lib}/components/base/icons/ArrowLeft.d.ts.map +0 -0
  365. /package/{types → lib}/components/base/icons/ArrowLeftGhost.d.ts +0 -0
  366. /package/{types → lib}/components/base/icons/ArrowLeftGhost.d.ts.map +0 -0
  367. /package/{types → lib}/components/base/icons/ArrowLeftRight.d.ts +0 -0
  368. /package/{types → lib}/components/base/icons/ArrowLeftRight.d.ts.map +0 -0
  369. /package/{types → lib}/components/base/icons/ArrowRight.d.ts +0 -0
  370. /package/{types → lib}/components/base/icons/ArrowRight.d.ts.map +0 -0
  371. /package/{types → lib}/components/base/icons/ArrowRightGhost.d.ts +0 -0
  372. /package/{types → lib}/components/base/icons/ArrowRightGhost.d.ts.map +0 -0
  373. /package/{types → lib}/components/base/icons/ArrowUp.d.ts +0 -0
  374. /package/{types → lib}/components/base/icons/ArrowUp.d.ts.map +0 -0
  375. /package/{types → lib}/components/base/icons/BoxArrowUpRight.d.ts +0 -0
  376. /package/{types → lib}/components/base/icons/BoxArrowUpRight.d.ts.map +0 -0
  377. /package/{types → lib}/components/base/icons/CalendarToday.d.ts +0 -0
  378. /package/{types → lib}/components/base/icons/CalendarToday.d.ts.map +0 -0
  379. /package/{types → lib}/components/base/icons/Category.d.ts +0 -0
  380. /package/{types → lib}/components/base/icons/Category.d.ts.map +0 -0
  381. /package/{types → lib}/components/base/icons/Check.d.ts +0 -0
  382. /package/{types → lib}/components/base/icons/Check.d.ts.map +0 -0
  383. /package/{types → lib}/components/base/icons/Clock.d.ts +0 -0
  384. /package/{types → lib}/components/base/icons/Clock.d.ts.map +0 -0
  385. /package/{types → lib}/components/base/icons/ClockFilled.d.ts +0 -0
  386. /package/{types → lib}/components/base/icons/ClockFilled.d.ts.map +0 -0
  387. /package/{types → lib}/components/base/icons/Computer.d.ts +0 -0
  388. /package/{types → lib}/components/base/icons/Computer.d.ts.map +0 -0
  389. /package/{types → lib}/components/base/icons/Cross.d.ts +0 -0
  390. /package/{types → lib}/components/base/icons/Cross.d.ts.map +0 -0
  391. /package/{types → lib}/components/base/icons/CrossSmall.d.ts +0 -0
  392. /package/{types → lib}/components/base/icons/CrossSmall.d.ts.map +0 -0
  393. /package/{types → lib}/components/base/icons/CurrentLocation.d.ts +0 -0
  394. /package/{types → lib}/components/base/icons/CurrentLocation.d.ts.map +0 -0
  395. /package/{types → lib}/components/base/icons/DateRange.d.ts +0 -0
  396. /package/{types → lib}/components/base/icons/DateRange.d.ts.map +0 -0
  397. /package/{types → lib}/components/base/icons/DeleteForever.d.ts +0 -0
  398. /package/{types → lib}/components/base/icons/DeleteForever.d.ts.map +0 -0
  399. /package/{types → lib}/components/base/icons/External.d.ts +0 -0
  400. /package/{types → lib}/components/base/icons/External.d.ts.map +0 -0
  401. /package/{types → lib}/components/base/icons/Filter.d.ts +0 -0
  402. /package/{types → lib}/components/base/icons/Filter.d.ts.map +0 -0
  403. /package/{types → lib}/components/base/icons/FlyTo.d.ts +0 -0
  404. /package/{types → lib}/components/base/icons/FlyTo.d.ts.map +0 -0
  405. /package/{types → lib}/components/base/icons/Info.d.ts +0 -0
  406. /package/{types → lib}/components/base/icons/Info.d.ts.map +0 -0
  407. /package/{types → lib}/components/base/icons/Language.d.ts +0 -0
  408. /package/{types → lib}/components/base/icons/Language.d.ts.map +0 -0
  409. /package/{types → lib}/components/base/icons/LocationPin.d.ts +0 -0
  410. /package/{types → lib}/components/base/icons/LocationPin.d.ts.map +0 -0
  411. /package/{types → lib}/components/base/icons/LocationSearch.d.ts +0 -0
  412. /package/{types → lib}/components/base/icons/LocationSearch.d.ts.map +0 -0
  413. /package/{types → lib}/components/base/icons/Magnifier.d.ts +0 -0
  414. /package/{types → lib}/components/base/icons/Magnifier.d.ts.map +0 -0
  415. /package/{types → lib}/components/base/icons/Mail.d.ts +0 -0
  416. /package/{types → lib}/components/base/icons/Mail.d.ts.map +0 -0
  417. /package/{types → lib}/components/base/icons/Map.d.ts +0 -0
  418. /package/{types → lib}/components/base/icons/Map.d.ts.map +0 -0
  419. /package/{types → lib}/components/base/icons/MenuBurger.d.ts +0 -0
  420. /package/{types → lib}/components/base/icons/MenuBurger.d.ts.map +0 -0
  421. /package/{types → lib}/components/base/icons/Minus.d.ts +0 -0
  422. /package/{types → lib}/components/base/icons/Minus.d.ts.map +0 -0
  423. /package/{types → lib}/components/base/icons/Money.d.ts +0 -0
  424. /package/{types → lib}/components/base/icons/Money.d.ts.map +0 -0
  425. /package/{types → lib}/components/base/icons/MyLocation.d.ts +0 -0
  426. /package/{types → lib}/components/base/icons/MyLocation.d.ts.map +0 -0
  427. /package/{types → lib}/components/base/icons/Person.d.ts +0 -0
  428. /package/{types → lib}/components/base/icons/Person.d.ts.map +0 -0
  429. /package/{types → lib}/components/base/icons/Phone.d.ts +0 -0
  430. /package/{types → lib}/components/base/icons/Phone.d.ts.map +0 -0
  431. /package/{types → lib}/components/base/icons/Place.d.ts +0 -0
  432. /package/{types → lib}/components/base/icons/Place.d.ts.map +0 -0
  433. /package/{types → lib}/components/base/icons/Play.d.ts +0 -0
  434. /package/{types → lib}/components/base/icons/Play.d.ts.map +0 -0
  435. /package/{types → lib}/components/base/icons/Plus.d.ts +0 -0
  436. /package/{types → lib}/components/base/icons/Plus.d.ts.map +0 -0
  437. /package/{types → lib}/components/base/icons/Route.d.ts +0 -0
  438. /package/{types → lib}/components/base/icons/Route.d.ts.map +0 -0
  439. /package/{types → lib}/components/base/icons/Star.d.ts +0 -0
  440. /package/{types → lib}/components/base/icons/Star.d.ts.map +0 -0
  441. /package/{types → lib}/components/base/icons/ToggleOff.d.ts +0 -0
  442. /package/{types → lib}/components/base/icons/ToggleOff.d.ts.map +0 -0
  443. /package/{types → lib}/components/base/icons/ToggleOn.d.ts +0 -0
  444. /package/{types → lib}/components/base/icons/ToggleOn.d.ts.map +0 -0
  445. /package/{types → lib}/components/base/icons/UnfoldMore.d.ts +0 -0
  446. /package/{types → lib}/components/base/icons/UnfoldMore.d.ts.map +0 -0
  447. /package/{types → lib}/components/base/icons/files/Excel.d.ts +0 -0
  448. /package/{types → lib}/components/base/icons/files/Excel.d.ts.map +0 -0
  449. /package/{types → lib}/components/base/icons/files/Image.d.ts +0 -0
  450. /package/{types → lib}/components/base/icons/files/Image.d.ts.map +0 -0
  451. /package/{types → lib}/components/base/icons/files/Pdf.d.ts +0 -0
  452. /package/{types → lib}/components/base/icons/files/Pdf.d.ts.map +0 -0
  453. /package/{types → lib}/components/base/icons/files/PowerPoint.d.ts +0 -0
  454. /package/{types → lib}/components/base/icons/files/PowerPoint.d.ts.map +0 -0
  455. /package/{types → lib}/components/base/icons/files/UploadFile.d.ts +0 -0
  456. /package/{types → lib}/components/base/icons/files/UploadFile.d.ts.map +0 -0
  457. /package/{types → lib}/components/base/icons/files/Word.d.ts +0 -0
  458. /package/{types → lib}/components/base/icons/files/Word.d.ts.map +0 -0
  459. /package/{types → lib}/components/base/icons/files/Zip.d.ts +0 -0
  460. /package/{types → lib}/components/base/icons/files/Zip.d.ts.map +0 -0
  461. /package/{types → lib}/components/base/icons/socials/Facebook.d.ts +0 -0
  462. /package/{types → lib}/components/base/icons/socials/Facebook.d.ts.map +0 -0
  463. /package/{types → lib}/components/base/icons/socials/Instagram.d.ts +0 -0
  464. /package/{types → lib}/components/base/icons/socials/Instagram.d.ts.map +0 -0
  465. /package/{types → lib}/components/base/icons/socials/LinkedIn.d.ts +0 -0
  466. /package/{types → lib}/components/base/icons/socials/LinkedIn.d.ts.map +0 -0
  467. /package/{types → lib}/components/base/icons/socials/Twitter.d.ts +0 -0
  468. /package/{types → lib}/components/base/icons/socials/Twitter.d.ts.map +0 -0
  469. /package/{types → lib}/components/base/icons/socials/Xing.d.ts +0 -0
  470. /package/{types → lib}/components/base/icons/socials/Xing.d.ts.map +0 -0
  471. /package/{types → lib}/components/base/icons/socials/Youtube.d.ts +0 -0
  472. /package/{types → lib}/components/base/icons/socials/Youtube.d.ts.map +0 -0
  473. /package/{types → lib}/components/base/nl2br.d.ts +0 -0
  474. /package/{types → lib}/components/base/nl2br.d.ts.map +0 -0
  475. /package/{types → lib}/components/blocks/Actions.d.ts +0 -0
  476. /package/{types → lib}/components/blocks/Actions.d.ts.map +0 -0
  477. /package/{types → lib}/components/blocks/Alert.d.ts +0 -0
  478. /package/{types → lib}/components/blocks/Alert.d.ts.map +0 -0
  479. /package/{types → lib}/components/blocks/Bdot.d.ts +0 -0
  480. /package/{types → lib}/components/blocks/Bdot.d.ts.map +0 -0
  481. /package/{types → lib}/components/blocks/CookieConsent.d.ts +0 -0
  482. /package/{types → lib}/components/blocks/CookieConsent.d.ts.map +0 -0
  483. /package/{types → lib}/components/blocks/EventBlock.d.ts +0 -0
  484. /package/{types → lib}/components/blocks/EventBlock.d.ts.map +0 -0
  485. /package/{types → lib}/components/blocks/Fact.d.ts +0 -0
  486. /package/{types → lib}/components/blocks/Fact.d.ts.map +0 -0
  487. /package/{types → lib}/components/blocks/Feature.d.ts +0 -0
  488. /package/{types → lib}/components/blocks/Feature.d.ts.map +0 -0
  489. /package/{types → lib}/components/blocks/Image.d.ts +0 -0
  490. /package/{types → lib}/components/blocks/Image.d.ts.map +0 -0
  491. /package/{types → lib}/components/blocks/InfoList.d.ts +0 -0
  492. /package/{types → lib}/components/blocks/InfoList.d.ts.map +0 -0
  493. /package/{types → lib}/components/blocks/IntroBlock.d.ts +0 -0
  494. /package/{types → lib}/components/blocks/IntroBlock.d.ts.map +0 -0
  495. /package/{types → lib}/components/blocks/JobCard.d.ts +0 -0
  496. /package/{types → lib}/components/blocks/JobCard.d.ts.map +0 -0
  497. /package/{types → lib}/components/blocks/LanguageSwitcher.d.ts +0 -0
  498. /package/{types → lib}/components/blocks/LanguageSwitcher.d.ts.map +0 -0
  499. /package/{types → lib}/components/blocks/NavBlock.d.ts +0 -0
  500. /package/{types → lib}/components/blocks/NavBlock.d.ts.map +0 -0
  501. /package/{types → lib}/components/blocks/NewsCard.d.ts +0 -0
  502. /package/{types → lib}/components/blocks/NewsCard.d.ts.map +0 -0
  503. /package/{types → lib}/components/blocks/POICard.d.ts +0 -0
  504. /package/{types → lib}/components/blocks/POICard.d.ts.map +0 -0
  505. /package/{types → lib}/components/blocks/POIFacts.d.ts +0 -0
  506. /package/{types → lib}/components/blocks/POIFacts.d.ts.map +0 -0
  507. /package/{types → lib}/components/blocks/PriceTag.d.ts +0 -0
  508. /package/{types → lib}/components/blocks/PriceTag.d.ts.map +0 -0
  509. /package/{types → lib}/components/blocks/PromotionCard.d.ts +0 -0
  510. /package/{types → lib}/components/blocks/PromotionCard.d.ts.map +0 -0
  511. /package/{types → lib}/components/blocks/SocialList.d.ts +0 -0
  512. /package/{types → lib}/components/blocks/SocialList.d.ts.map +0 -0
  513. /package/{types → lib}/components/blocks/TableBlock.d.ts +0 -0
  514. /package/{types → lib}/components/blocks/TableBlock.d.ts.map +0 -0
  515. /package/{types → lib}/components/blocks/Tag.d.ts +0 -0
  516. /package/{types → lib}/components/blocks/Tag.d.ts.map +0 -0
  517. /package/{types → lib}/components/blocks/Title.d.ts +0 -0
  518. /package/{types → lib}/components/blocks/Title.d.ts.map +0 -0
  519. /package/{types → lib}/components/blocks/VideoBlock.d.ts +0 -0
  520. /package/{types → lib}/components/blocks/VideoBlock.d.ts.map +0 -0
  521. /package/{types → lib}/components/blocks/VideoCard.d.ts +0 -0
  522. /package/{types → lib}/components/blocks/VideoCard.d.ts.map +0 -0
  523. /package/{types → lib}/components/buttons/Button.d.ts +0 -0
  524. /package/{types → lib}/components/buttons/Button.d.ts.map +0 -0
  525. /package/{types → lib}/components/buttons/ButtonGhost.d.ts +0 -0
  526. /package/{types → lib}/components/buttons/ButtonGhost.d.ts.map +0 -0
  527. /package/{types → lib}/components/buttons/Control.d.ts +0 -0
  528. /package/{types → lib}/components/buttons/Control.d.ts.map +0 -0
  529. /package/{types → lib}/components/buttons/Pointer.d.ts +0 -0
  530. /package/{types → lib}/components/buttons/Pointer.d.ts.map +0 -0
  531. /package/{types → lib}/components/debug/DebugLines.d.ts +0 -0
  532. /package/{types → lib}/components/debug/DebugLines.d.ts.map +0 -0
  533. /package/{types → lib}/components/examples/hooks/ArrayHookExample.d.ts +0 -0
  534. /package/{types → lib}/components/examples/hooks/ArrayHookExample.d.ts.map +0 -0
  535. /package/{types → lib}/components/examples/hooks/IntervalHookExample.d.ts +0 -0
  536. /package/{types → lib}/components/examples/hooks/IntervalHookExample.d.ts.map +0 -0
  537. /package/{types → lib}/components/fields/Checkbox.d.ts +0 -0
  538. /package/{types → lib}/components/fields/Checkbox.d.ts.map +0 -0
  539. /package/{types → lib}/components/fields/CompactForm.d.ts +0 -0
  540. /package/{types → lib}/components/fields/CompactForm.d.ts.map +0 -0
  541. /package/{types → lib}/components/fields/Datepicker.d.ts +0 -0
  542. /package/{types → lib}/components/fields/Datepicker.d.ts.map +0 -0
  543. /package/{types → lib}/components/fields/FileUpload.d.ts +0 -0
  544. /package/{types → lib}/components/fields/FileUpload.d.ts.map +0 -0
  545. /package/{types → lib}/components/fields/FilterField.d.ts +0 -0
  546. /package/{types → lib}/components/fields/FormField.d.ts +0 -0
  547. /package/{types → lib}/components/fields/FormField.d.ts.map +0 -0
  548. /package/{types → lib}/components/fields/LocationField.d.ts +0 -0
  549. /package/{types → lib}/components/fields/LocationField.d.ts.map +0 -0
  550. /package/{types → lib}/components/fields/Radio.d.ts +0 -0
  551. /package/{types → lib}/components/fields/Radio.d.ts.map +0 -0
  552. /package/{types → lib}/components/fields/SearchInput.d.ts +0 -0
  553. /package/{types → lib}/components/fields/SearchInput.d.ts.map +0 -0
  554. /package/{types → lib}/components/fields/SelectDropdown.d.ts +0 -0
  555. /package/{types → lib}/components/fields/SelectDropdown.d.ts.map +0 -0
  556. /package/{types → lib}/components/fields/Textarea.d.ts +0 -0
  557. /package/{types → lib}/components/fields/Textarea.d.ts.map +0 -0
  558. /package/{types → lib}/components/fields/Textfield.d.ts +0 -0
  559. /package/{types → lib}/components/fields/Textfield.d.ts.map +0 -0
  560. /package/{types → lib}/components/sections/Accordion.d.ts +0 -0
  561. /package/{types → lib}/components/sections/Accordion.d.ts.map +0 -0
  562. /package/{types → lib}/components/sections/AlertList.d.ts +0 -0
  563. /package/{types → lib}/components/sections/AlertList.d.ts.map +0 -0
  564. /package/{types → lib}/components/sections/Article.d.ts +0 -0
  565. /package/{types → lib}/components/sections/Article.d.ts.map +0 -0
  566. /package/{types → lib}/components/sections/CallToAction.d.ts +0 -0
  567. /package/{types → lib}/components/sections/CallToAction.d.ts.map +0 -0
  568. /package/{types → lib}/components/sections/CardList.d.ts +0 -0
  569. /package/{types → lib}/components/sections/CardList.d.ts.map +0 -0
  570. /package/{types → lib}/components/sections/ComparisonSlider.d.ts +0 -0
  571. /package/{types → lib}/components/sections/ComparisonSlider.d.ts.map +0 -0
  572. /package/{types → lib}/components/sections/CrossPromotion.d.ts +0 -0
  573. /package/{types → lib}/components/sections/CrossPromotion.d.ts.map +0 -0
  574. /package/{types → lib}/components/sections/FactGrid.d.ts +0 -0
  575. /package/{types → lib}/components/sections/FactGrid.d.ts.map +0 -0
  576. /package/{types → lib}/components/sections/FactList.d.ts +0 -0
  577. /package/{types → lib}/components/sections/FactList.d.ts.map +0 -0
  578. /package/{types → lib}/components/sections/FeatureList.d.ts +0 -0
  579. /package/{types → lib}/components/sections/FeatureList.d.ts.map +0 -0
  580. /package/{types → lib}/components/sections/Gallery.d.ts +0 -0
  581. /package/{types → lib}/components/sections/Gallery.d.ts.map +0 -0
  582. /package/{types → lib}/components/sections/IconList.d.ts +0 -0
  583. /package/{types → lib}/components/sections/IconList.d.ts.map +0 -0
  584. /package/{types → lib}/components/sections/IndexList.d.ts +0 -0
  585. /package/{types → lib}/components/sections/IndexList.d.ts.map +0 -0
  586. /package/{types → lib}/components/sections/Intro.d.ts +0 -0
  587. /package/{types → lib}/components/sections/Intro.d.ts.map +0 -0
  588. /package/{types → lib}/components/sections/Map.d.ts +0 -0
  589. /package/{types → lib}/components/sections/Map.d.ts.map +0 -0
  590. /package/{types → lib}/components/sections/NavList.d.ts +0 -0
  591. /package/{types → lib}/components/sections/NavList.d.ts.map +0 -0
  592. /package/{types → lib}/components/sections/NewsletterForm.d.ts +0 -0
  593. /package/{types → lib}/components/sections/NewsletterForm.d.ts.map +0 -0
  594. /package/{types → lib}/components/sections/ParallaxBackground.d.ts +0 -0
  595. /package/{types → lib}/components/sections/ParallaxBackground.d.ts.map +0 -0
  596. /package/{types → lib}/components/sections/Poster.d.ts +0 -0
  597. /package/{types → lib}/components/sections/Poster.d.ts.map +0 -0
  598. /package/{types → lib}/components/sections/PriceList.d.ts +0 -0
  599. /package/{types → lib}/components/sections/PriceList.d.ts.map +0 -0
  600. /package/{types → lib}/components/sections/PriceTable.d.ts +0 -0
  601. /package/{types → lib}/components/sections/PriceTable.d.ts.map +0 -0
  602. /package/{types → lib}/components/sections/Quote.d.ts +0 -0
  603. /package/{types → lib}/components/sections/Quote.d.ts.map +0 -0
  604. /package/{types → lib}/components/sections/RawVideo.d.ts +0 -0
  605. /package/{types → lib}/components/sections/RawVideo.d.ts.map +0 -0
  606. /package/{types → lib}/components/sections/SimpleImage.d.ts +0 -0
  607. /package/{types → lib}/components/sections/SimpleImage.d.ts.map +0 -0
  608. /package/{types → lib}/components/sections/SocialWall.d.ts +0 -0
  609. /package/{types → lib}/components/sections/SocialWall.d.ts.map +0 -0
  610. /package/{types → lib}/components/sections/Table.d.ts +0 -0
  611. /package/{types → lib}/components/sections/Table.d.ts.map +0 -0
  612. /package/{types → lib}/components/sections/Teaser.d.ts +0 -0
  613. /package/{types → lib}/components/sections/Teaser.d.ts.map +0 -0
  614. /package/{types → lib}/components/sections/TeaserWide.d.ts +0 -0
  615. /package/{types → lib}/components/sections/TeaserWide.d.ts.map +0 -0
  616. /package/{types → lib}/components/sections/Timeline.d.ts +0 -0
  617. /package/{types → lib}/components/sections/Timeline.d.ts.map +0 -0
  618. /package/{types → lib}/components/sections/Video.d.ts +0 -0
  619. /package/{types → lib}/components/sections/Video.d.ts.map +0 -0
  620. /package/{types → lib}/components/sections/events/EventDetail.d.ts +0 -0
  621. /package/{types → lib}/components/sections/events/EventDetail.d.ts.map +0 -0
  622. /package/{types → lib}/components/sections/events/EventList.d.ts +0 -0
  623. /package/{types → lib}/components/sections/events/EventList.d.ts.map +0 -0
  624. /package/{types → lib}/components/sections/events/EventOverview.d.ts +0 -0
  625. /package/{types → lib}/components/sections/events/EventOverview.d.ts.map +0 -0
  626. /package/{types → lib}/components/sections/footer/Footer.d.ts +0 -0
  627. /package/{types → lib}/components/sections/footer/Footer.d.ts.map +0 -0
  628. /package/{types → lib}/components/sections/footer/partials/FooterBottomBar.d.ts +0 -0
  629. /package/{types → lib}/components/sections/footer/partials/FooterBottomBar.d.ts.map +0 -0
  630. /package/{types → lib}/components/sections/footer/partials/FooterColumn.d.ts +0 -0
  631. /package/{types → lib}/components/sections/footer/partials/FooterColumn.d.ts.map +0 -0
  632. /package/{types → lib}/components/sections/footer/partials/index.d.ts +0 -0
  633. /package/{types → lib}/components/sections/footer/partials/index.d.ts.map +0 -0
  634. /package/{types → lib}/components/sections/footer/skeletons/FooterArticle.d.ts +0 -0
  635. /package/{types → lib}/components/sections/footer/skeletons/FooterArticle.d.ts.map +0 -0
  636. /package/{types → lib}/components/sections/footer/skeletons/FooterBottomGrid.d.ts +0 -0
  637. /package/{types → lib}/components/sections/footer/skeletons/FooterBottomGrid.d.ts.map +0 -0
  638. /package/{types → lib}/components/sections/footer/skeletons/index.d.ts +0 -0
  639. /package/{types → lib}/components/sections/footer/skeletons/index.d.ts.map +0 -0
  640. /package/{types → lib}/components/sections/form/DynamicForm.d.ts +0 -0
  641. /package/{types → lib}/components/sections/form/DynamicForm.d.ts.map +0 -0
  642. /package/{types → lib}/components/sections/form/renderer/areaRenderer.d.ts +0 -0
  643. /package/{types → lib}/components/sections/form/renderer/areaRenderer.d.ts.map +0 -0
  644. /package/{types → lib}/components/sections/form/renderer/datepickerRenderer.d.ts +0 -0
  645. /package/{types → lib}/components/sections/form/renderer/datepickerRenderer.d.ts.map +0 -0
  646. /package/{types → lib}/components/sections/form/renderer/fieldGroupRenderer.d.ts +0 -0
  647. /package/{types → lib}/components/sections/form/renderer/fieldGroupRenderer.d.ts.map +0 -0
  648. /package/{types → lib}/components/sections/form/renderer/fieldRenderer.d.ts +0 -0
  649. /package/{types → lib}/components/sections/form/renderer/fieldRenderer.d.ts.map +0 -0
  650. /package/{types → lib}/components/sections/form/renderer/locationRenderer.d.ts +0 -0
  651. /package/{types → lib}/components/sections/form/renderer/locationRenderer.d.ts.map +0 -0
  652. /package/{types → lib}/components/sections/form/renderer/selectRenderer.d.ts +0 -0
  653. /package/{types → lib}/components/sections/form/renderer/selectRenderer.d.ts.map +0 -0
  654. /package/{types → lib}/components/sections/form/renderer/uploadRenderer.d.ts +0 -0
  655. /package/{types → lib}/components/sections/form/renderer/uploadRenderer.d.ts.map +0 -0
  656. /package/{types → lib}/components/sections/form/validators/areaValidator.d.ts +0 -0
  657. /package/{types → lib}/components/sections/form/validators/areaValidator.d.ts.map +0 -0
  658. /package/{types → lib}/components/sections/form/validators/datepickerValidator.d.ts +0 -0
  659. /package/{types → lib}/components/sections/form/validators/datepickerValidator.d.ts.map +0 -0
  660. /package/{types → lib}/components/sections/form/validators/fieldGroupValidator.d.ts +0 -0
  661. /package/{types → lib}/components/sections/form/validators/fieldGroupValidator.d.ts.map +0 -0
  662. /package/{types → lib}/components/sections/form/validators/fieldValidator.d.ts +0 -0
  663. /package/{types → lib}/components/sections/form/validators/fieldValidator.d.ts.map +0 -0
  664. /package/{types → lib}/components/sections/form/validators/locationValidator.d.ts +0 -0
  665. /package/{types → lib}/components/sections/form/validators/locationValidator.d.ts.map +0 -0
  666. /package/{types → lib}/components/sections/form/validators/selectValidator.d.ts +0 -0
  667. /package/{types → lib}/components/sections/form/validators/selectValidator.d.ts.map +0 -0
  668. /package/{types → lib}/components/sections/form/validators/uploadValidator.d.ts +0 -0
  669. /package/{types → lib}/components/sections/form/validators/uploadValidator.d.ts.map +0 -0
  670. /package/{types → lib}/components/sections/header/HeaderKenBurns.d.ts +0 -0
  671. /package/{types → lib}/components/sections/header/HeaderKenBurns.d.ts.map +0 -0
  672. /package/{types → lib}/components/sections/header/HeaderPoster.d.ts +0 -0
  673. /package/{types → lib}/components/sections/header/HeaderPoster.d.ts.map +0 -0
  674. /package/{types → lib}/components/sections/header/HeaderVideo.d.ts +0 -0
  675. /package/{types → lib}/components/sections/header/HeaderVideo.d.ts.map +0 -0
  676. /package/{types → lib}/components/sections/jobs/JobArticle.d.ts +0 -0
  677. /package/{types → lib}/components/sections/jobs/JobArticle.d.ts.map +0 -0
  678. /package/{types → lib}/components/sections/jobs/JobList.d.ts +0 -0
  679. /package/{types → lib}/components/sections/jobs/JobList.d.ts.map +0 -0
  680. /package/{types → lib}/components/sections/navigation/NavBar.d.ts +0 -0
  681. /package/{types → lib}/components/sections/navigation/NavBar.d.ts.map +0 -0
  682. /package/{types → lib}/components/sections/navigation/Navigation.d.ts +0 -0
  683. /package/{types → lib}/components/sections/navigation/Navigation.d.ts.map +0 -0
  684. /package/{types → lib}/components/sections/navigation/menu/Menu.d.ts +0 -0
  685. /package/{types → lib}/components/sections/navigation/menu/Menu.d.ts.map +0 -0
  686. /package/{types → lib}/components/sections/navigation/menu/variations/MenuFlyout.d.ts +0 -0
  687. /package/{types → lib}/components/sections/navigation/menu/variations/MenuLarge.d.ts +0 -0
  688. /package/{types → lib}/components/sections/navigation/partials/MenuFooter.d.ts +0 -0
  689. /package/{types → lib}/components/sections/navigation/partials/MenuFooter.d.ts.map +0 -0
  690. /package/{types → lib}/components/sections/navigation/partials/MenuHeader.d.ts +0 -0
  691. /package/{types → lib}/components/sections/navigation/partials/MenuHeader.d.ts.map +0 -0
  692. /package/{types → lib}/components/sections/navigation/partials/NavBarBottom.d.ts +0 -0
  693. /package/{types → lib}/components/sections/navigation/partials/NavBarBottom.d.ts.map +0 -0
  694. /package/{types → lib}/components/sections/navigation/partials/NavBarMain.d.ts +0 -0
  695. /package/{types → lib}/components/sections/navigation/partials/NavBarMain.d.ts.map +0 -0
  696. /package/{types → lib}/components/sections/navigation/partials/NavBarTop.d.ts +0 -0
  697. /package/{types → lib}/components/sections/navigation/partials/NavBarTop.d.ts.map +0 -0
  698. /package/{types → lib}/components/sections/navigation/partials/index.d.ts +0 -0
  699. /package/{types → lib}/components/sections/navigation/partials/index.d.ts.map +0 -0
  700. /package/{types → lib}/components/sections/navigation/skeletons/BarBreadCrumbs.d.ts +0 -0
  701. /package/{types → lib}/components/sections/navigation/skeletons/BarBreadCrumbs.d.ts.map +0 -0
  702. /package/{types → lib}/components/sections/navigation/skeletons/BarColumn.d.ts +0 -0
  703. /package/{types → lib}/components/sections/navigation/skeletons/BarColumn.d.ts.map +0 -0
  704. /package/{types → lib}/components/sections/navigation/skeletons/BarLogo.d.ts +0 -0
  705. /package/{types → lib}/components/sections/navigation/skeletons/BarLogo.d.ts.map +0 -0
  706. /package/{types → lib}/components/sections/navigation/skeletons/BarMenuToggle.d.ts +0 -0
  707. /package/{types → lib}/components/sections/navigation/skeletons/BarMenuToggle.d.ts.map +0 -0
  708. /package/{types → lib}/components/sections/navigation/skeletons/BarNavList.d.ts +0 -0
  709. /package/{types → lib}/components/sections/navigation/skeletons/BarNavList.d.ts.map +0 -0
  710. /package/{types → lib}/components/sections/navigation/skeletons/index.d.ts +0 -0
  711. /package/{types → lib}/components/sections/navigation/skeletons/index.d.ts.map +0 -0
  712. /package/{types → lib}/components/sections/news/NewsAuthorCard.d.ts +0 -0
  713. /package/{types → lib}/components/sections/news/NewsAuthorCard.d.ts.map +0 -0
  714. /package/{types → lib}/components/sections/news/NewsFooter.d.ts +0 -0
  715. /package/{types → lib}/components/sections/news/NewsFooter.d.ts.map +0 -0
  716. /package/{types → lib}/components/sections/news/NewsImages.d.ts +0 -0
  717. /package/{types → lib}/components/sections/news/NewsImages.d.ts.map +0 -0
  718. /package/{types → lib}/components/sections/news/NewsIntro.d.ts +0 -0
  719. /package/{types → lib}/components/sections/news/NewsIntro.d.ts.map +0 -0
  720. /package/{types → lib}/components/sections/news/NewsList.d.ts +0 -0
  721. /package/{types → lib}/components/sections/news/NewsList.d.ts.map +0 -0
  722. /package/{types → lib}/components/sections/news/NewsOverview.d.ts +0 -0
  723. /package/{types → lib}/components/sections/news/NewsOverview.d.ts.map +0 -0
  724. /package/{types → lib}/components/sections/news/NewsTable.d.ts +0 -0
  725. /package/{types → lib}/components/sections/news/NewsTable.d.ts.map +0 -0
  726. /package/{types → lib}/components/sections/news/NewsText.d.ts +0 -0
  727. /package/{types → lib}/components/sections/news/NewsText.d.ts.map +0 -0
  728. /package/{types → lib}/components/sections/news/NewsVideo.d.ts +0 -0
  729. /package/{types → lib}/components/sections/news/NewsVideo.d.ts.map +0 -0
  730. /package/{types → lib}/components/sections/pois/PointOfInterestDetail.d.ts +0 -0
  731. /package/{types → lib}/components/sections/pois/PointOfInterestDetail.d.ts.map +0 -0
  732. /package/{types → lib}/components/sections/pois/PointOfInterestMap.d.ts +0 -0
  733. /package/{types → lib}/components/sections/pois/PointOfInterestMap.d.ts.map +0 -0
  734. /package/{types → lib}/components/sections/pois/PointOfInterestOverview.d.ts +0 -0
  735. /package/{types → lib}/components/sections/pois/PointOfInterestOverview.d.ts.map +0 -0
  736. /package/{types → lib}/components/typography/Copy.d.ts +0 -0
  737. /package/{types → lib}/components/typography/Copy.d.ts.map +0 -0
  738. /package/{types → lib}/components/typography/Heading.d.ts +0 -0
  739. /package/{types → lib}/components/typography/Heading.d.ts.map +0 -0
  740. /package/{types → lib}/components/typography/Link.d.ts +0 -0
  741. /package/{types → lib}/components/typography/Link.d.ts.map +0 -0
  742. /package/{types → lib}/utils/LibThemeProvider.d.ts +0 -0
  743. /package/{types → lib}/utils/LibThemeProvider.d.ts.map +0 -0
  744. /package/{types → lib}/utils/arrays.d.ts +0 -0
  745. /package/{types → lib}/utils/arrays.d.ts.map +0 -0
  746. /package/{types → lib}/utils/backgroundImage.d.ts +0 -0
  747. /package/{types → lib}/utils/backgroundImage.d.ts.map +0 -0
  748. /package/{types → lib}/utils/clamp.d.ts +0 -0
  749. /package/{types → lib}/utils/clamp.d.ts.map +0 -0
  750. /package/{types → lib}/utils/concat.d.ts +0 -0
  751. /package/{types → lib}/utils/concat.d.ts.map +0 -0
  752. /package/{types → lib}/utils/cookie-consent/cookie.d.ts +0 -0
  753. /package/{types → lib}/utils/cookie-consent/cookie.d.ts.map +0 -0
  754. /package/{types → lib}/utils/cookie-consent/mutations.d.ts +0 -0
  755. /package/{types → lib}/utils/cookie-consent/mutations.d.ts.map +0 -0
  756. /package/{types → lib}/utils/cookie-consent/useCookieConsent.d.ts +0 -0
  757. /package/{types → lib}/utils/cookie-consent/useCookieConsent.d.ts.map +0 -0
  758. /package/{types → lib}/utils/dataURI.d.ts +0 -0
  759. /package/{types → lib}/utils/dataURI.d.ts.map +0 -0
  760. /package/{types → lib}/utils/escape.d.ts +0 -0
  761. /package/{types → lib}/utils/escape.d.ts.map +0 -0
  762. /package/{types → lib}/utils/filters.d.ts +0 -0
  763. /package/{types → lib}/utils/filters.d.ts.map +0 -0
  764. /package/{types → lib}/utils/fontLoading.d.ts +0 -0
  765. /package/{types → lib}/utils/fontLoading.d.ts.map +0 -0
  766. /package/{types → lib}/utils/formFieldText.d.ts +0 -0
  767. /package/{types → lib}/utils/formFieldText.d.ts.map +0 -0
  768. /package/{types → lib}/utils/getLinkIcon.d.ts +0 -0
  769. /package/{types → lib}/utils/getLinkIcon.d.ts.map +0 -0
  770. /package/{types → lib}/utils/hexRgbConverter.d.ts +0 -0
  771. /package/{types → lib}/utils/hexRgbConverter.d.ts.map +0 -0
  772. /package/{types → lib}/utils/menuHooks.d.ts +0 -0
  773. /package/{types → lib}/utils/menuHooks.d.ts.map +0 -0
  774. /package/{types → lib}/utils/navigation.d.ts +0 -0
  775. /package/{types → lib}/utils/navigation.d.ts.map +0 -0
  776. /package/{types → lib}/utils/statusFormatter.d.ts +0 -0
  777. /package/{types → lib}/utils/statusFormatter.d.ts.map +0 -0
  778. /package/{types → lib}/utils/storyHelpers.d.ts +0 -0
  779. /package/{types → lib}/utils/storyHelpers.d.ts.map +0 -0
  780. /package/{types → lib}/utils/structuredData.d.ts +0 -0
  781. /package/{types → lib}/utils/structuredData.d.ts.map +0 -0
  782. /package/{types → lib}/utils/types.d.ts +0 -0
  783. /package/{types → lib}/utils/types.d.ts.map +0 -0
  784. /package/{types → lib}/utils/urlParams.d.ts +0 -0
  785. /package/{types → lib}/utils/urlParams.d.ts.map +0 -0
  786. /package/{types → lib}/utils/useArray.d.ts +0 -0
  787. /package/{types → lib}/utils/useArray.d.ts.map +0 -0
  788. /package/{types → lib}/utils/useDebounce.d.ts +0 -0
  789. /package/{types → lib}/utils/useDebounce.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/useMounted.d.ts +0 -0
  807. /package/{types → lib}/utils/useMounted.d.ts.map +0 -0
  808. /package/{types → lib}/utils/useObserverSupport.d.ts +0 -0
  809. /package/{types → lib}/utils/useObserverSupport.d.ts.map +0 -0
  810. /package/{types → lib}/utils/usePageScroll.d.ts +0 -0
  811. /package/{types → lib}/utils/usePageScroll.d.ts.map +0 -0
  812. /package/{types → lib}/utils/useParams.d.ts +0 -0
  813. /package/{types → lib}/utils/useParams.d.ts.map +0 -0
  814. /package/{types → lib}/utils/usePoster.d.ts +0 -0
  815. /package/{types → lib}/utils/usePoster.d.ts.map +0 -0
  816. /package/{types → lib}/utils/usePrevious.d.ts +0 -0
  817. /package/{types → lib}/utils/usePrevious.d.ts.map +0 -0
  818. /package/{types → lib}/utils/useResizeThrottle.d.ts +0 -0
  819. /package/{types → lib}/utils/useResizeThrottle.d.ts.map +0 -0
  820. /package/{types → lib}/utils/useScroll.d.ts +0 -0
  821. /package/{types → lib}/utils/useScroll.d.ts.map +0 -0
  822. /package/{types → lib}/utils/useScrollIntoView.d.ts +0 -0
  823. /package/{types → lib}/utils/useScrollIntoView.d.ts.map +0 -0
  824. /package/{types → lib}/utils/useScrollThrottle.d.ts +0 -0
  825. /package/{types → lib}/utils/useScrollThrottle.d.ts.map +0 -0
  826. /package/{types → lib}/utils/useScrollTo.d.ts +0 -0
  827. /package/{types → lib}/utils/useScrollTo.d.ts.map +0 -0
  828. /package/{types → lib}/utils/useTimeout.d.ts +0 -0
  829. /package/{types → lib}/utils/useTimeout.d.ts.map +0 -0
  830. /package/{types → lib}/utils/useTouch.d.ts +0 -0
  831. /package/{types → lib}/utils/useTouch.d.ts.map +0 -0
  832. /package/{types → lib}/utils/useUpdateEffect.d.ts +0 -0
  833. /package/{types → lib}/utils/useUpdateEffect.d.ts.map +0 -0
package/esm/sections.js DELETED
@@ -1,3914 +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-29347885.js';
3
- import { C as Copy, c as copyStyle, H as Heading } from './Copy-fb124972.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-f6c54818.js';
8
- import { w as withLibTheme, u as useLibTheme } from './LibThemeProvider-a38c5bf1.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-151498da.js';
11
- import { L as Link } from './Link-0a1e35d6.js';
12
- import { S as StatusFormatter } from './statusFormatter-9be0fbff.js';
13
- import { u as useEqualSheetHeight } from './useEqualSheetHeight-c18cebd3.js';
14
- import { T as Title$6, a as TableBlock } from './TableBlock-26530c71.js';
15
- import { A as Actions } from './Actions-3f06c2e9.js';
16
- import { I as IntroBlock, H as HeaderPoster, a as HeaderKenBurns, b as HeaderVideo, V as VideoBlock } from './VideoBlock-b3f4ae27.js';
17
- import { I as Image } from './Image-b538f659.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-13dce48c.js';
21
- import { P as Pointer } from './Pointer-bc68154f.js';
22
- import { u as useScrollTo } from './useScrollTo-70af34bf.js';
23
- import { a as useMediaQueries } from './useMediaQuery-0d473a9c.js';
24
- import { C as Control$1 } from './Control-57a287dc.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-389fed95.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-3fd368ef.js';
31
- import './concat-ab3c66f2.js';
32
- import './clamp-12d37b65.js';
33
- import 'react-schemaorg';
34
- import './navigation-a2998143.js';
35
- import './LanguageSwitcher-058e0145.js';
36
- import './useCookieConsent-8caef116.js';
37
- import './ButtonGhost-5b498dba.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$5 = 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$5, 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$8 = 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$4 = 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$8, __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$4, 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 = 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$1 = withLibTheme(CardList);
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$7 = 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$3 = 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$7, __assign({}, image, {
990
- isInverted: isInverted,
991
- coverSpace: true
992
- })), icon && React__default.createElement(Icon$3, 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$1 = 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$6 = 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$3 = 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$1, {
1145
- isCentered: isCentered
1146
- }, React__default.createElement(StyledImage$6, {
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$3, {
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$2 = 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$2, {
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 = 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$5 = 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, __assign({}, link, {
1392
- isCentered: isCentered
1393
- }), React__default.createElement(StyledImage$5, {
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
- "data-sheet": "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$4 = 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$4, __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$2 = 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$2, {
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$2, {
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$1 = 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$1 = 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$1, 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$1, {
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 View$2 = styled.div.withConfig({
2545
- displayName: "NumberList__View",
2546
- componentId: "sc-ehx754-0"
2547
- })(templateObject_1$d || (templateObject_1$d = __makeTemplateObject(["\n text-align: center;\n\n & > * {\n margin: 0 auto;\n }\n\n @media ", " {\n text-align: left;\n\n & > * {\n margin: 0;\n }\n }\n"], ["\n text-align: center;\n\n & > * {\n margin: 0 auto;\n }\n\n @media ", " {\n text-align: left;\n\n & > * {\n margin: 0;\n }\n }\n"])), mq.semilarge);
2548
- var Icon = styled.img.withConfig({
2549
- displayName: "NumberList__Icon",
2550
- componentId: "sc-ehx754-1"
2551
- })(templateObject_2$b || (templateObject_2$b = __makeTemplateObject(["\n display: block;\n max-width: 140px;\n max-height: 140px;\n\n margin-bottom: ", "px;\n"], ["\n display: block;\n max-width: 140px;\n max-height: 140px;\n\n margin-bottom: ", "px;\n"])), spacings.nudge * 2);
2552
- var NumberContainer = styled.div.withConfig({
2553
- displayName: "NumberList__NumberContainer",
2554
- componentId: "sc-ehx754-2"
2555
- })(templateObject_3$9 || (templateObject_3$9 = __makeTemplateObject(["\n max-width: max-content;\n min-height: 90px;\n\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n\n @media ", " {\n min-height: 100px;\n }\n\n /* margin-bottom: ", "px; */\n\n @media ", " {\n min-height: 120px;\n }\n"], ["\n max-width: max-content;\n min-height: 90px;\n\n display: flex;\n flex-direction: column;\n justify-content: center;\n align-items: flex-start;\n\n @media ", " {\n min-height: 100px;\n }\n\n /* margin-bottom: ", "px; */\n\n @media ", " {\n min-height: 120px;\n }\n"])), mq.semilarge, spacings.nudge * 2, mq.large);
2556
- var Number = styled(Callout).withConfig({
2557
- displayName: "NumberList__Number",
2558
- componentId: "sc-ehx754-3"
2559
- })(templateObject_4$7 || (templateObject_4$7 = __makeTemplateObject(["\n max-height: 140px;\n ", "\n\n color: ", ";\n"], ["\n max-height: 140px;\n ", "\n\n color: ", ";\n"])), function (_a) {
2560
- var stringLength = _a.stringLength;
2561
- return stringLength <= 6 ? withRange([72, 120], 'font-size') : stringLength >= 10 ? withRange([33, 42], 'font-size') : withRange([52, 72], 'font-size');
2562
- }, function (_a) {
2563
- var isInverted = _a.isInverted,
2564
- theme = _a.theme;
2565
- return isInverted ? getColors(theme).primary.inverted : getColors(theme).primary.default;
2566
- });
2567
- var Label = styled(Heading).withConfig({
2568
- displayName: "NumberList__Label",
2569
- componentId: "sc-ehx754-4"
2570
- })(templateObject_5$5 || (templateObject_5$5 = __makeTemplateObject(["\n max-width: 80%;\n"], ["\n max-width: 80%;\n"])));
2571
-
2572
- var IconBlock = function (_a) {
2573
- var icon = _a.icon,
2574
- label = _a.label,
2575
- number = _a.number,
2576
- isInverted = _a.isInverted;
2577
- var theme = useContext(ThemeContext);
2578
- var stringLength = number ? number.length : 0;
2579
- return React__default.createElement(View$2, null, icon && React__default.createElement(Icon, {
2580
- src: icon.src,
2581
- alt: icon.alt
2582
- }), React__default.createElement(NumberContainer, {
2583
- height: 0
2584
- }, React__default.createElement(Number, {
2585
- renderAs: "div",
2586
- stringLength: stringLength,
2587
- isInverted: isInverted
2588
- }, number)), React__default.createElement(Label, {
2589
- size: "super",
2590
- textColor: isInverted ? getColors(theme).primary.inverted : getColors(theme).primary.default
2591
- }, label));
2592
- };
2593
-
2594
- var ContentContainer = styled.div.withConfig({
2595
- displayName: "NumberList__ContentContainer",
2596
- componentId: "sc-ehx754-5"
2597
- })(templateObject_6$3 || (templateObject_6$3 = __makeTemplateObject(["\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n flex-wrap: wrap;\n\n margin: -", "px;\n margin-top: -", "px;\n\n @media ", " {\n margin-top: -", "px;\n }\n\n & > * {\n padding: ", "px;\n padding-top: ", "px;\n\n @media ", " {\n padding-top: ", "px;\n }\n\n flex-basis: 100%;\n\n @media ", " {\n flex: 0 0 50%;\n }\n\n @media ", " {\n flex: 0 1 33.33%;\n }\n }\n"], ["\n display: flex;\n flex-direction: row;\n align-items: flex-start;\n justify-content: space-between;\n flex-wrap: wrap;\n\n margin: -", "px;\n margin-top: -", "px;\n\n @media ", " {\n margin-top: -", "px;\n }\n\n & > * {\n padding: ", "px;\n padding-top: ", "px;\n\n @media ", " {\n padding-top: ", "px;\n }\n\n flex-basis: 100%;\n\n @media ", " {\n flex: 0 0 50%;\n }\n\n @media ", " {\n flex: 0 1 33.33%;\n }\n }\n"])), spacings.spacer, spacings.spacer * 2, mq.semilarge, spacings.spacer, spacings.spacer, spacings.spacer * 2, mq.semilarge, spacings.spacer, mq.semilarge, mq.large);
2598
-
2599
- var NumberList = function (_a) {
2600
- var anchorId = _a.anchorId,
2601
- items = _a.items,
2602
- bgMode = _a.bgMode;
2603
- var theme = useContext(ThemeContext);
2604
- var isInverted = bgMode === 'inverted';
2605
- var hasBg = bgMode === 'full';
2606
- return React__default.createElement(Section, {
2607
- addSeperation: true,
2608
- anchorId: anchorId,
2609
- bgColor: isInverted ? getColors(theme).sectionBg.dark : hasBg ? getColors(theme).sectionBg.medium : getColors(theme).sectionBg.light,
2610
- bgMode: mapToBgMode(bgMode, true)
2611
- }, React__default.createElement(Wrapper, {
2612
- addWhitespace: true
2613
- }, React__default.createElement(ContentContainer, null, items === null || items === void 0 ? void 0 : items.map(function (item, i) {
2614
- return React__default.createElement(IconBlock, __assign({}, item, {
2615
- key: i,
2616
- isInverted: isInverted
2617
- }));
2618
- }))));
2619
- };
2620
- var NumberList$1 = withLibTheme(NumberList);
2621
- var templateObject_1$d, templateObject_2$b, templateObject_3$9, templateObject_4$7, templateObject_5$5, templateObject_6$3;
2622
-
2623
- var View$1 = styled.section.withConfig({
2624
- displayName: "ParallaxBackground__View",
2625
- componentId: "sc-g8idp4-0"
2626
- })(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"])));
2627
- var Parallax = styled.div.withConfig({
2628
- displayName: "ParallaxBackground__Parallax",
2629
- componentId: "sc-g8idp4-1"
2630
- })(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"])));
2631
- var Content$2 = styled.div.withConfig({
2632
- displayName: "ParallaxBackground__Content",
2633
- componentId: "sc-g8idp4-2"
2634
- })(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) {
2635
- var hAlign = _a.hAlign;
2636
- return (hAlign === 'right' || hAlign === 'center') && 'auto';
2637
- }, function (_a) {
2638
- var hAlign = _a.hAlign;
2639
- return (hAlign === 'left' || hAlign === 'center') && 'auto';
2640
- }, function (_a) {
2641
- var contentWidth = _a.contentWidth;
2642
- return contentWidth ? contentWidth === -1 ? 'auto' : contentWidth * 100 + '%' : undefined;
2643
- }, spacings.wrapperLarge, function (_a) {
2644
- var contentWidth = _a.contentWidth;
2645
- return contentWidth !== -1 && '100%';
2646
- });
2647
- var StyledImage$3 = styled(Image).withConfig({
2648
- displayName: "ParallaxBackground__StyledImage",
2649
- componentId: "sc-g8idp4-3"
2650
- })(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject(["\n max-width: ", ";\n float: ", ";\n ", "\n"], ["\n max-width: ", ";\n float: ", ";\n ", "\n"])), function (_a) {
2651
- var coverSpace = _a.coverSpace;
2652
- return !coverSpace && 'none';
2653
- }, function (_a) {
2654
- var hAlign = _a.hAlign;
2655
- return hAlign === 'left' || hAlign === 'right' ? hAlign : undefined;
2656
- }, function (_a) {
2657
- var coverSpace = _a.coverSpace,
2658
- hAlign = _a.hAlign;
2659
- 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 "])));
2660
- });
2661
-
2662
- var ParallaxBackground = function (_a) {
2663
- var image = _a.image,
2664
- _b = _a.hAlign,
2665
- hAlign = _b === void 0 ? 'left' : _b,
2666
- _c = _a.contentWidth,
2667
- contentWidth = _c === void 0 ? 1 : _c,
2668
- _d = _a.moveRatio,
2669
- moveRatio = _d === void 0 ? 0.2 : _d,
2670
- _e = _a.direction,
2671
- direction = _e === void 0 ? 'up' : _e,
2672
- className = _a.className;
2673
-
2674
- var _f = useState(false),
2675
- isLoaded = _f[0],
2676
- setIsLoaded = _f[1];
2677
-
2678
- var _g = useState(0),
2679
- yTransform = _g[0],
2680
- setYTransform = _g[1]; // const cRef = useRef<HTMLDivElement>(null);
2681
-
2682
-
2683
- var _h = useState(null),
2684
- cRef = _h[0],
2685
- setContainerRef = _h[1];
2686
-
2687
- var parallaxRef = useRef(null);
2688
- var width = 1;
2689
-
2690
- if (typeof contentWidth === 'string') {
2691
- switch (contentWidth) {
2692
- case '1/4':
2693
- {
2694
- width = 0.25;
2695
- break;
2696
- }
2697
-
2698
- case 'half':
2699
- {
2700
- width = 0.5;
2701
- break;
2702
- }
2703
-
2704
- case '3/4':
2705
- {
2706
- width = 0.75;
2707
- break;
2708
- }
2709
-
2710
- case 'auto':
2711
- {
2712
- width = -1;
2713
- break;
2714
- }
2715
-
2716
- default:
2717
- case 'full':
2718
- {
2719
- width = 1;
2720
- break;
2721
- }
2722
- }
2723
- } else if (!isNaN(contentWidth)) {
2724
- width = contentWidth;
2725
- }
2726
-
2727
- useEffect(function () {
2728
- setIsLoaded(true);
2729
- }, []);
2730
- useEffect(function () {
2731
- var prevEl = cRef === null || cRef === void 0 ? void 0 : cRef.previousElementSibling;
2732
-
2733
- if (prevEl) {
2734
- var bgIdent = prevEl.dataset.bgIdent;
2735
- var stackIdent = prevEl.dataset.stackIdent;
2736
-
2737
- if (bgIdent) {
2738
- // set data background from previous element
2739
- cRef === null || cRef === void 0 ? void 0 : cRef.setAttribute('data-bg-ident', bgIdent);
2740
- }
2741
-
2742
- if (stackIdent) {
2743
- // set data stack flag from previous element
2744
- cRef === null || cRef === void 0 ? void 0 : cRef.setAttribute('data-stack-ident', stackIdent);
2745
- }
2746
- }
2747
- }, [cRef]);
2748
- useEffect(function () {
2749
- var handleScroll = function () {
2750
- if (!cRef) return;
2751
- var containerPos = cRef.getBoundingClientRect().top;
2752
- var ratio = containerPos * moveRatio;
2753
- var offset = ratio * (direction === 'up' ? 1 : -1);
2754
- setYTransform(offset);
2755
- };
2756
-
2757
- handleScroll();
2758
- window.addEventListener('scroll', handleScroll);
2759
- return function () {
2760
- window.removeEventListener('scroll', handleScroll);
2761
- };
2762
- }, [cRef, direction, moveRatio]);
2763
- return React__default.createElement(React__default.Fragment, null, isLoaded && React__default.createElement(View$1, {
2764
- ref: setContainerRef,
2765
- "data-bg-ident": "transparent"
2766
- }, React__default.createElement(Parallax, {
2767
- ref: parallaxRef,
2768
- style: {
2769
- transform: "translate3d(0px, ".concat(yTransform, "px, 0px)")
2770
- },
2771
- className: className
2772
- }, React__default.createElement(Content$2, {
2773
- hAlign: hAlign,
2774
- contentWidth: width
2775
- }, image && React__default.createElement(StyledImage$3, __assign({
2776
- hAlign: hAlign,
2777
- coverSpace: width !== -1
2778
- }, image))))));
2779
- };
2780
- var templateObject_1$c, templateObject_2$a, templateObject_3$8, templateObject_4$6, templateObject_5$4;
2781
-
2782
- var Container = styled.figure.withConfig({
2783
- displayName: "Poster__Container",
2784
- componentId: "sc-k1cv7v-0"
2785
- })(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) {
2786
- var hasContent = _a.hasContent;
2787
- return hasContent && '""';
2788
- }, function (_a) {
2789
- var theme = _a.theme,
2790
- verticallyCentered = _a.verticallyCentered;
2791
- return verticallyCentered ? getGlobals(theme).sections.imageTextGradientCentered : getGlobals(theme).sections.imageTextGradient;
2792
- });
2793
- var StyledImage$2 = styled(Image).withConfig({
2794
- displayName: "Poster__StyledImage",
2795
- componentId: "sc-k1cv7v-1"
2796
- })(templateObject_2$9 || (templateObject_2$9 = __makeTemplateObject(["\n img {\n height: 550px;\n }\n"], ["\n img {\n height: 550px;\n }\n"])));
2797
- var Intro = styled(IntroBlock).withConfig({
2798
- displayName: "Poster__Intro",
2799
- componentId: "sc-k1cv7v-2"
2800
- })(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) {
2801
- var verticallyCentered = _a.verticallyCentered;
2802
- return !verticallyCentered && '0';
2803
- }, function (_a) {
2804
- var verticallyCentered = _a.verticallyCentered;
2805
- return verticallyCentered && '50%';
2806
- }, spacings.wrapper, wrapperWhitespace + spacings.nudge * 2, function (_a) {
2807
- var verticallyCentered = _a.verticallyCentered;
2808
- return verticallyCentered ? 'translate(-50%, -50%)' : 'translateX(-50%)';
2809
- });
2810
-
2811
- var Poster = function (_a) {
2812
- var anchorId = _a.anchorId,
2813
- _b = _a.width,
2814
- width = _b === void 0 ? 'content' : _b,
2815
- title = _a.title,
2816
- titleAs = _a.titleAs,
2817
- superTitle = _a.superTitle,
2818
- superTitleAs = _a.superTitleAs,
2819
- text = _a.text,
2820
- primaryAction = _a.primaryAction,
2821
- secondaryAction = _a.secondaryAction,
2822
- image = _a.image,
2823
- verticallyCentered = _a.verticallyCentered,
2824
- horizontallyCentered = _a.horizontallyCentered;
2825
- var isCentered = verticallyCentered && horizontallyCentered;
2826
- return React__default.createElement(Section, {
2827
- anchorId: anchorId,
2828
- bgColor: "image",
2829
- bgMode: "full"
2830
- }, React__default.createElement(Wrapper, {
2831
- clampWidth: width === 'content' ? 'normal' : 'large'
2832
- }, React__default.createElement(Container, {
2833
- hasContent: !!title || !!text,
2834
- verticallyCentered: verticallyCentered
2835
- }, React__default.createElement(StyledImage$2, __assign({}, image, {
2836
- coverSpace: true,
2837
- ratios: undefined
2838
- })), title && React__default.createElement(Intro, {
2839
- verticallyCentered: verticallyCentered,
2840
- horizontallyCentered: horizontallyCentered,
2841
- renderAs: "figcaption",
2842
- colorMode: "onImage",
2843
- title: title,
2844
- titleAs: titleAs,
2845
- superTitle: superTitle,
2846
- superTitleAs: superTitleAs,
2847
- text: text,
2848
- secondaryAction: secondaryAction,
2849
- primaryAction: primaryAction,
2850
- clampTitle: true,
2851
- maxTitleLines: 3,
2852
- clampText: true,
2853
- maxTextLines: 4,
2854
- isCentered: horizontallyCentered || isCentered
2855
- }))));
2856
- };
2857
- var Poster$1 = withLibTheme(Poster);
2858
- var templateObject_1$b, templateObject_2$9, templateObject_3$7;
2859
-
2860
- var ItemList = styled.ul.withConfig({
2861
- displayName: "PriceList__ItemList",
2862
- componentId: "sc-to452u-0"
2863
- })(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);
2864
- var ItemBlock = styled.li.withConfig({
2865
- displayName: "PriceList__ItemBlock",
2866
- componentId: "sc-to452u-1"
2867
- })(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) {
2868
- var theme = _a.theme,
2869
- hasBg = _a.hasBg;
2870
- return hasBg ? getColors(theme).elementBg.light : getColors(theme).elementBg.medium;
2871
- }, spacings.nudge * 2, mq.semilarge, spacings.nudge * 3);
2872
- var ListHead = styled.div.withConfig({
2873
- displayName: "PriceList__ListHead",
2874
- componentId: "sc-to452u-2"
2875
- })(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);
2876
- var Title = styled(Copy).withConfig({
2877
- displayName: "PriceList__Title",
2878
- componentId: "sc-to452u-3"
2879
- })(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject(["\n max-width: 880px;\n"], ["\n max-width: 880px;\n"])));
2880
- var Price = styled(Copy).withConfig({
2881
- displayName: "PriceList__Price",
2882
- componentId: "sc-to452u-4"
2883
- })(templateObject_5$3 || (templateObject_5$3 = __makeTemplateObject(["\n white-space: nowrap;\n"], ["\n white-space: nowrap;\n"])));
2884
- var Description$1 = styled(Copy).withConfig({
2885
- displayName: "PriceList__Description",
2886
- componentId: "sc-to452u-5"
2887
- })(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject(["\n max-width: 880px;\n"], ["\n max-width: 880px;\n"])));
2888
- var PriceBlock = function (_a) {
2889
- var text = _a.text,
2890
- price = _a.price,
2891
- _b = _a.hasBg,
2892
- hasBg = _b === void 0 ? false : _b,
2893
- title = _a.title;
2894
- return React__default.createElement(ItemBlock, {
2895
- hasBg: hasBg
2896
- }, React__default.createElement(ListHead, null, title && React__default.createElement(Title, {
2897
- type: "copy-b"
2898
- }, title), price && React__default.createElement(Price, {
2899
- type: "copy-b"
2900
- }, price)), text && React__default.createElement(Description$1, {
2901
- type: "copy",
2902
- innerHTML: text
2903
- }));
2904
- };
2905
-
2906
- var PriceList = function (_a) {
2907
- var anchorId = _a.anchorId,
2908
- bgMode = _a.bgMode,
2909
- items = _a.items;
2910
- var colors = useLibTheme().colors;
2911
- var isInverted = bgMode === 'inverted';
2912
- var hasBack = isInverted || bgMode === 'full';
2913
- return React__default.createElement(Section, {
2914
- addSeperation: true,
2915
- anchorId: anchorId,
2916
- bgColor: isInverted ? colors.sectionBg.dark : bgMode === 'full' ? colors.sectionBg.medium : colors.sectionBg.light,
2917
- bgMode: mapToBgMode(bgMode, true)
2918
- }, React__default.createElement(Wrapper, {
2919
- addWhitespace: true
2920
- }, React__default.createElement(ItemList, null, items === null || items === void 0 ? void 0 : items.map(function (item, i) {
2921
- return React__default.createElement(PriceBlock, __assign({
2922
- key: i
2923
- }, item, {
2924
- hasBg: hasBack
2925
- }));
2926
- }))));
2927
- };
2928
- var PriceList$1 = withLibTheme(PriceList);
2929
- var templateObject_1$a, templateObject_2$8, templateObject_3$6, templateObject_4$5, templateObject_5$3, templateObject_6$2;
2930
-
2931
- var View = styled.div.withConfig({
2932
- displayName: "PriceTag__View",
2933
- componentId: "sc-wnisbz-0"
2934
- })(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) {
2935
- var theme = _a.theme;
2936
- return getGlobals(theme).sections.edgeRadius;
2937
- }, function (_a) {
2938
- var theme = _a.theme,
2939
- hasBg = _a.hasBg,
2940
- isInverted = _a.isInverted,
2941
- isHighlighted = _a.isHighlighted;
2942
- 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;
2943
- }, function (_a) {
2944
- var isCentered = _a.isCentered;
2945
- return isCentered ? 'center' : 'left';
2946
- }, spacings.nudge * 3);
2947
- var StyledActions$2 = styled(Actions).withConfig({
2948
- displayName: "PriceTag__StyledActions",
2949
- componentId: "sc-wnisbz-1"
2950
- })(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);
2951
- var PriceTag = forwardRef(function (_a, ref) {
2952
- var superTitle = _a.superTitle,
2953
- title = _a.title,
2954
- text = _a.text,
2955
- action = _a.action,
2956
- isInverted = _a.isInverted,
2957
- isCentered = _a.isCentered,
2958
- isHighlighted = _a.isHighlighted,
2959
- hasBackground = _a.hasBackground,
2960
- className = _a.className;
2961
- var inverted = isHighlighted ? !isInverted : false;
2962
- return React__default.createElement(View, {
2963
- ref: ref,
2964
- isInverted: isInverted,
2965
- isCentered: isCentered,
2966
- isHighlighted: isHighlighted,
2967
- hasBg: hasBackground,
2968
- className: className
2969
- }, superTitle && React__default.createElement(Copy, {
2970
- type: "copy-b",
2971
- size: "big",
2972
- isInverted: inverted,
2973
- innerHTML: superTitle,
2974
- "data-sheet": "superTitle"
2975
- }), title && React__default.createElement(Callout, {
2976
- renderAs: "div",
2977
- size: "big",
2978
- isInverted: inverted,
2979
- innerHTML: title,
2980
- "data-sheet": "title"
2981
- }), text && React__default.createElement(Copy, {
2982
- size: "medium",
2983
- isInverted: inverted,
2984
- innerHTML: text,
2985
- "data-sheet": "desc"
2986
- }), React__default.createElement(StyledActions$2, {
2987
- mode: "cover",
2988
- primary: action && action({
2989
- isInverted: inverted,
2990
- isHighlighted: isHighlighted
2991
- })
2992
- }));
2993
- });
2994
- PriceTag.displayName = 'PriceTag';
2995
- var templateObject_1$9, templateObject_2$7;
2996
-
2997
- var Tag = styled(PriceTag).withConfig({
2998
- displayName: "PriceTable__Tag",
2999
- componentId: "sc-1n6x4b3-0"
3000
- })(templateObject_1$8 || (templateObject_1$8 = __makeTemplateObject(["\n min-height: 500px;\n"], ["\n min-height: 500px;\n"])));
3001
- var Items = styled.div.withConfig({
3002
- displayName: "PriceTable__Items",
3003
- componentId: "sc-1n6x4b3-1"
3004
- })(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);
3005
-
3006
- var PriceTable = function (_a) {
3007
- var anchorId = _a.anchorId,
3008
- items = _a.items,
3009
- isCentered = _a.isCentered,
3010
- bgMode = _a.bgMode;
3011
- var isInverted = bgMode === 'inverted';
3012
- var hasBg = bgMode === 'full';
3013
- var priceTagCount = (items === null || items === void 0 ? void 0 : items.length) || 0;
3014
- var colors = useLibTheme().colors;
3015
- var cardRefs = useEqualSheetHeight({
3016
- listLength: priceTagCount,
3017
- identifiers: ['[data-sheet="superTitle"]', '[data-sheet="title"]', '[data-sheet="desc"]'],
3018
- responsive: {
3019
- small: 1,
3020
- medium: 1,
3021
- semilarge: 2,
3022
- large: 3,
3023
- xlarge: 3
3024
- }
3025
- }).sheetRefs;
3026
- return React__default.createElement(Section, {
3027
- addSeperation: true,
3028
- anchorId: anchorId,
3029
- bgColor: isInverted ? colors.sectionBg.dark : hasBg ? colors.sectionBg.medium : colors.sectionBg.light,
3030
- bgMode: mapToBgMode(bgMode)
3031
- }, React__default.createElement(Wrapper, {
3032
- addWhitespace: true
3033
- }, React__default.createElement(Items, null, items === null || items === void 0 ? void 0 : items.map(function (item, i) {
3034
- return React__default.createElement(Tag, __assign({
3035
- key: i,
3036
- ref: cardRefs[i]
3037
- }, item, {
3038
- isInverted: isInverted,
3039
- isCentered: isCentered,
3040
- hasBackground: hasBg
3041
- }));
3042
- }))));
3043
- };
3044
- var PriceTable$1 = withLibTheme(PriceTable);
3045
- var templateObject_1$8, templateObject_2$6;
3046
-
3047
- var Content$1 = styled.figure.withConfig({
3048
- displayName: "Quote__Content",
3049
- componentId: "sc-135tfv0-0"
3050
- })(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);
3051
- var Text = styled(Callout).withConfig({
3052
- displayName: "Quote__Text",
3053
- componentId: "sc-135tfv0-1"
3054
- })(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"])));
3055
- var Source = styled(Copy).withConfig({
3056
- displayName: "Quote__Source",
3057
- componentId: "sc-135tfv0-2"
3058
- })(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"])));
3059
-
3060
- var Quote = function (_a) {
3061
- var anchorId = _a.anchorId,
3062
- bgMode = _a.bgMode,
3063
- text = _a.text,
3064
- source = _a.source,
3065
- citeUrl = _a.citeUrl;
3066
- var colors = useLibTheme().colors;
3067
- var isInverted = bgMode === 'inverted';
3068
- return React__default.createElement(Section, {
3069
- addSeperation: true,
3070
- anchorId: anchorId,
3071
- bgColor: isInverted ? colors.sectionBg.dark : bgMode === 'full' ? colors.sectionBg.medium : colors.sectionBg.light,
3072
- bgMode: mapToBgMode(bgMode, true)
3073
- }, React__default.createElement(Wrapper, {
3074
- clampWidth: "normal",
3075
- addWhitespace: true
3076
- }, React__default.createElement(Content$1, null, text && React__default.createElement(Text, __assign({
3077
- size: "small",
3078
- renderAs: "blockquote",
3079
- isInverted: isInverted,
3080
- innerHTML: text
3081
- }, {
3082
- cite: citeUrl
3083
- })), source && React__default.createElement(Source, {
3084
- isInverted: isInverted,
3085
- renderAs: "figcaption",
3086
- innerHTML: source
3087
- }))));
3088
- };
3089
- var Quote$1 = withLibTheme(Quote);
3090
- var templateObject_1$7, templateObject_2$5, templateObject_3$5;
3091
-
3092
- var ImageWrapper = styled(Wrapper).withConfig({
3093
- displayName: "SimpleImage__ImageWrapper",
3094
- componentId: "sc-1f8mjuo-0"
3095
- })(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject(["\n display: flex;\n justify-content: ", ";\n"], ["\n display: flex;\n justify-content: ", ";\n"])), function (_a) {
3096
- var hAlign = _a.hAlign;
3097
-
3098
- switch (hAlign) {
3099
- case 'center':
3100
- return 'center';
3101
-
3102
- case 'right':
3103
- return 'flex-end';
3104
-
3105
- default:
3106
- return 'flex-start';
3107
- }
3108
- });
3109
-
3110
- var SimpleImage = function (_a) {
3111
- var anchorId = _a.anchorId,
3112
- image = _a.image,
3113
- _b = _a.hAlign,
3114
- hAlign = _b === void 0 ? 'left' : _b,
3115
- bgMode = _a.bgMode,
3116
- isStackable = _a.isStackable;
3117
- var theme = useContext(ThemeContext);
3118
- var isInverted = bgMode === 'inverted';
3119
- var hasBg = bgMode === 'full';
3120
- return React__default.createElement(Section, {
3121
- addSeperation: true,
3122
- anchorId: anchorId,
3123
- isStackable: isStackable,
3124
- bgColor: isInverted ? getColors(theme).sectionBg.dark : hasBg ? getColors(theme).sectionBg.medium : getColors(theme).sectionBg.light,
3125
- bgMode: mapToBgMode(bgMode)
3126
- }, React__default.createElement(ImageWrapper, {
3127
- hAlign: hAlign
3128
- }, image && React__default.createElement(Image, __assign({}, image))));
3129
- };
3130
- var SimpleImage$1 = withLibTheme(SimpleImage);
3131
- var templateObject_1$6;
3132
-
3133
- var Cards = styled.ul.withConfig({
3134
- displayName: "SocialWall__Cards",
3135
- componentId: "sc-ggztu7-0"
3136
- })(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);
3137
- var Item = styled.li.withConfig({
3138
- displayName: "SocialWall__Item",
3139
- componentId: "sc-ggztu7-1"
3140
- })(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"])));
3141
- var Card = styled(Link).withConfig({
3142
- displayName: "SocialWall__Card",
3143
- componentId: "sc-ggztu7-2"
3144
- })(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) {
3145
- var theme = _a.theme,
3146
- isInverted = _a.isInverted;
3147
- return isInverted ? getColors(theme).primary.inverted : getColors(theme).primary.default;
3148
- }, function (_a) {
3149
- var theme = _a.theme;
3150
- return getGlobals(theme).sections.edgeRadius;
3151
- }, function (_a) {
3152
- var theme = _a.theme,
3153
- isInverted = _a.isInverted;
3154
- return isInverted ? getColors(theme).secondary.inverted : getColors(theme).secondary.default;
3155
- });
3156
- var StyledImage$1 = styled(Image).withConfig({
3157
- displayName: "SocialWall__StyledImage",
3158
- componentId: "sc-ggztu7-3"
3159
- })(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"])));
3160
- var TextContainer = styled.div.withConfig({
3161
- displayName: "SocialWall__TextContainer",
3162
- componentId: "sc-ggztu7-4"
3163
- })(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);
3164
- var FollowUs = styled(Heading).withConfig({
3165
- displayName: "SocialWall__FollowUs",
3166
- componentId: "sc-ggztu7-5"
3167
- })(templateObject_6$1 || (templateObject_6$1 = __makeTemplateObject(["\n text-transform: uppercase;\n"], ["\n text-transform: uppercase;\n"])));
3168
- var InstagramIcon = styled.div.withConfig({
3169
- displayName: "SocialWall__InstagramIcon",
3170
- componentId: "sc-ggztu7-6"
3171
- })(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) {
3172
- var theme = _a.theme;
3173
- return getColors(theme).text.inverted;
3174
- }, Card, function (_a) {
3175
- var theme = _a.theme;
3176
- return getColors(theme).text.inverted;
3177
- });
3178
-
3179
- var SocialWall = function (_a) {
3180
- var anchorId = _a.anchorId,
3181
- items = _a.items,
3182
- hashTag = _a.hashTag,
3183
- followUs = _a.followUs,
3184
- socialIcon = _a.socialIcon,
3185
- bgMode = _a.bgMode;
3186
- var colors = useLibTheme().colors;
3187
- var isInverted = bgMode === 'inverted';
3188
- var hasBg = bgMode === 'full';
3189
- return React__default.createElement(Section, {
3190
- anchorId: anchorId,
3191
- bgColor: isInverted ? colors.sectionBg.dark : hasBg ? colors.sectionBg.medium : colors.sectionBg.light,
3192
- bgMode: mapToBgMode(bgMode, true),
3193
- addSeperation: true
3194
- }, React__default.createElement(Wrapper, {
3195
- addWhitespace: true
3196
- }, React__default.createElement(Cards, null, items === null || items === void 0 ? void 0 : items.map(function (item, i) {
3197
- var _a;
3198
-
3199
- return React__default.createElement(Item, {
3200
- key: i
3201
- }, React__default.createElement(Card, __assign({
3202
- isExternal: true
3203
- }, item.link, {
3204
- isInverted: isInverted,
3205
- ariaLabel: (_a = item === null || item === void 0 ? void 0 : item.image) === null || _a === void 0 ? void 0 : _a.alt
3206
- }), item.image && React__default.createElement(StyledImage$1, __assign({}, item.image, {
3207
- coverSpace: true,
3208
- ratios: {
3209
- small: {
3210
- w: 1,
3211
- h: 1
3212
- }
3213
- },
3214
- isInverted: isInverted
3215
- })), React__default.createElement(TextContainer, null, React__default.createElement(FollowUs, {
3216
- size: "super",
3217
- isInverted: true
3218
- }, followUs ? followUs : 'Follow Us On Instagram'), hashTag && React__default.createElement(Heading, {
3219
- size: "heading-2",
3220
- isInverted: true
3221
- }, hashTag)), React__default.createElement(InstagramIcon, null, socialIcon || React__default.createElement(Instagram, null))));
3222
- }))));
3223
- };
3224
- var SocialWall$1 = withLibTheme(SocialWall);
3225
- var templateObject_1$5, templateObject_2$4, templateObject_3$4, templateObject_4$4, templateObject_5$2, templateObject_6$1, templateObject_7$1;
3226
-
3227
- var TableWrapper = styled(Wrapper).withConfig({
3228
- displayName: "Table__TableWrapper",
3229
- componentId: "sc-16ge7gg-0"
3230
- })(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject(["\n & > * + * {\n margin-top: ", "px;\n }\n"], ["\n & > * + * {\n margin-top: ", "px;\n }\n"])), spacings.spacer);
3231
-
3232
- var Table = function (_a) {
3233
- var anchorId = _a.anchorId,
3234
- bgMode = _a.bgMode,
3235
- tableItems = _a.tableItems;
3236
- var colors = useLibTheme().colors;
3237
- var isInverted = bgMode === 'inverted';
3238
- var hasBg = bgMode === 'full' || isInverted;
3239
- return React__default.createElement(Section, {
3240
- addSeperation: true,
3241
- anchorId: anchorId,
3242
- bgColor: isInverted ? colors.sectionBg.dark : hasBg ? colors.sectionBg.medium : colors.sectionBg.light,
3243
- bgMode: mapToBgMode(bgMode, true)
3244
- }, React__default.createElement(TableWrapper, null, tableItems.map(function (item, i) {
3245
- return React__default.createElement(TableBlock, __assign({
3246
- key: i
3247
- }, item, {
3248
- isInverted: isInverted,
3249
- hasBack: hasBg
3250
- }));
3251
- })));
3252
- };
3253
- var Table$1 = withLibTheme(Table);
3254
- var templateObject_1$4;
3255
-
3256
- var Figure = styled.figure.withConfig({
3257
- displayName: "Teaser__Figure",
3258
- componentId: "sc-euyj1p-0"
3259
- })(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);
3260
- var StyledImage = styled(Image).withConfig({
3261
- displayName: "Teaser__StyledImage",
3262
- componentId: "sc-euyj1p-1"
3263
- })(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) {
3264
- var theme = _a.theme;
3265
- return getGlobals(theme).sections.edgeRadius;
3266
- });
3267
- var Video$3 = styled(VideoBlock).withConfig({
3268
- displayName: "Teaser__Video",
3269
- componentId: "sc-euyj1p-2"
3270
- })(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) {
3271
- var isVisible = _a.isVisible;
3272
- return isVisible ? 'block' : 'none';
3273
- });
3274
- var Description = styled(Copy).withConfig({
3275
- displayName: "Teaser__Description",
3276
- componentId: "sc-euyj1p-3"
3277
- })(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) {
3278
- var isMirrored = _a.isMirrored;
3279
- return isMirrored && 'auto';
3280
- }, function (_a) {
3281
- var isMirrored = _a.isMirrored;
3282
- return !isMirrored && 'auto';
3283
- }, function (_a) {
3284
- var isSplitted = _a.isSplitted;
3285
- return isSplitted && '81.5%';
3286
- }, function (_a) {
3287
- var theme = _a.theme,
3288
- isInverted = _a.isInverted,
3289
- isSplitted = _a.isSplitted;
3290
- return isInverted && !isSplitted ? getFonts(theme).copy.small.colorInverted : getFonts(theme).copy.small.color;
3291
- }, mq.xlarge, function (_a) {
3292
- var isSplitted = _a.isSplitted;
3293
- return isSplitted && '69.5%';
3294
- });
3295
- var StyledActions$1 = styled(Actions).withConfig({
3296
- displayName: "Teaser__StyledActions",
3297
- componentId: "sc-euyj1p-4"
3298
- })(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);
3299
-
3300
- var Teaser = function (_a) {
3301
- var anchorId = _a.anchorId,
3302
- _b = _a.isMirrored,
3303
- isMirrored = _b === void 0 ? false : _b,
3304
- bgMode = _a.bgMode,
3305
- superTitle = _a.superTitle,
3306
- superTitleAs = _a.superTitleAs,
3307
- title = _a.title,
3308
- titleAs = _a.titleAs,
3309
- image = _a.image,
3310
- video = _a.video,
3311
- description = _a.description,
3312
- text = _a.text,
3313
- primaryAction = _a.primaryAction,
3314
- secondaryAction = _a.secondaryAction;
3315
- var colors = useLibTheme().colors;
3316
- var isInverted = bgMode === 'inverted' || bgMode === 'inverted-splitted';
3317
- var isSplitted = bgMode === 'splitted' || bgMode === 'inverted-splitted';
3318
- var hasVideo = isValidArray(video === null || video === void 0 ? void 0 : video.urls, false);
3319
- var viewRef = useRef(null);
3320
-
3321
- var _c = useState(!(image === null || image === void 0 ? void 0 : image.small) || false),
3322
- isLoaded = _c[0],
3323
- setLoaded = _c[1];
3324
-
3325
- var _d = useState(false),
3326
- isVideoActive = _d[0],
3327
- setVideoActive = _d[1];
3328
-
3329
- var isObserverSupported = useObserverSupport();
3330
- useUpdateEffect(function () {
3331
- if (!viewRef.current || !hasVideo) return;
3332
-
3333
- if (!isObserverSupported) {
3334
- setVideoActive(true);
3335
- return;
3336
- }
3337
-
3338
- var observer = new IntersectionObserver(function (entries, observer) {
3339
- var entry = entries[0];
3340
-
3341
- if (entry.isIntersecting) {
3342
- observer.unobserve(entry.target);
3343
- setVideoActive(true);
3344
- }
3345
- }, {
3346
- rootMargin: '200px 0px 200px 0px'
3347
- });
3348
- var viewEl = viewRef.current;
3349
- observer.observe(viewEl);
3350
- return function () {
3351
- if (viewEl) observer.unobserve(viewEl);
3352
- };
3353
- }, [isObserverSupported]);
3354
- return React__default.createElement(Section, {
3355
- addSeperation: true,
3356
- anchorId: anchorId,
3357
- bgColor: isInverted ? colors.sectionBg.dark : bgMode ? colors.sectionBg.medium : colors.sectionBg.light,
3358
- bgMode: mapToTeaserBgMode(bgMode, false, isMirrored)
3359
- }, React__default.createElement(Wrapper, {
3360
- addWhitespace: true,
3361
- clampWidth: "normal"
3362
- }, React__default.createElement(Grid.Row, {
3363
- valign: "center"
3364
- }, React__default.createElement(Grid.Col, {
3365
- semilarge: {
3366
- span: 6 / 12,
3367
- move: (isMirrored ? 6 : 0) / 12
3368
- },
3369
- xlarge: {
3370
- span: 7 / 12,
3371
- move: (isMirrored ? 5 : 0) / 12
3372
- }
3373
- }, ((image === null || image === void 0 ? void 0 : image.small) || hasVideo) && React__default.createElement(Figure, {
3374
- ref: viewRef
3375
- }, (image === null || image === void 0 ? void 0 : image.small) && (!video || !isLoaded) && React__default.createElement(StyledImage, __assign({}, image, {
3376
- isInverted: isInverted,
3377
- coverSpace: true
3378
- })), hasVideo && React__default.createElement(Video$3, {
3379
- urls: isVideoActive ? video === null || video === void 0 ? void 0 : video.urls : undefined,
3380
- muted: true,
3381
- autoPlay: true,
3382
- loop: true,
3383
- onCanPlayThrough: function () {
3384
- return setLoaded(true);
3385
- },
3386
- ratios: video === null || video === void 0 ? void 0 : video.aspectRatios,
3387
- isVisible: isLoaded,
3388
- isInverted: isInverted
3389
- }), description && React__default.createElement(Description, {
3390
- size: "small",
3391
- renderAs: "figcaption",
3392
- isInverted: isInverted,
3393
- isSplitted: isSplitted,
3394
- isMirrored: isMirrored,
3395
- innerHTML: description
3396
- }))), React__default.createElement(Grid.Col, {
3397
- semilarge: {
3398
- span: 6 / 12,
3399
- move: (isMirrored ? -6 : 0) / 12
3400
- },
3401
- xlarge: {
3402
- span: 5 / 12,
3403
- move: (isMirrored ? -7 : 0) / 12
3404
- }
3405
- }, React__default.createElement(IntroBlock, {
3406
- titleHyphens: true,
3407
- title: title,
3408
- titleAs: titleAs,
3409
- superTitle: superTitle,
3410
- superTitleAs: superTitleAs,
3411
- text: text,
3412
- colorMode: isInverted ? 'inverted' : 'default'
3413
- }), (primaryAction || secondaryAction) && React__default.createElement(StyledActions$1, {
3414
- primary: primaryAction && primaryAction(isInverted),
3415
- secondary: secondaryAction && secondaryAction(isInverted)
3416
- })))));
3417
- };
3418
-
3419
- var mapToTeaserBgMode = function (mode, preventSplit, isMirrored) {
3420
- if (preventSplit === void 0) {
3421
- preventSplit = false;
3422
- }
3423
-
3424
- if (isMirrored === void 0) {
3425
- isMirrored = false;
3426
- }
3427
-
3428
- switch (mode) {
3429
- case 'full':
3430
- return 'full';
3431
-
3432
- case 'inverted':
3433
- return 'inverted';
3434
-
3435
- case 'splitted':
3436
- {
3437
- if (!preventSplit) return isMirrored ? 'larger-left' : 'larger-right';else return undefined;
3438
- }
3439
-
3440
- case 'inverted-splitted':
3441
- {
3442
- if (!preventSplit) return isMirrored ? 'larger-left' : 'larger-right';else return undefined;
3443
- }
3444
-
3445
- default:
3446
- return undefined;
3447
- }
3448
- };
3449
- var Teaser$1 = withLibTheme(Teaser);
3450
- var templateObject_1$3, templateObject_2$3, templateObject_3$3, templateObject_4$3, templateObject_5$1;
3451
-
3452
- /**
3453
- * calculate single grid col from relative content wrapper
3454
- * (grid width = wrapper width without paddings)
3455
- * */
3456
-
3457
- var getGridColOfContent = function () {
3458
- return css(templateObject_1$2 || (templateObject_1$2 = __makeTemplateObject(["\n ", "\n "], ["\n ", "\n "])), getGridWidth({
3459
- cols: 1,
3460
- gridWidth: "".concat(spacings.wrapper - wrapperWhitespace * 2, "px ")
3461
- }));
3462
- };
3463
-
3464
- var WideVideo = styled(VideoBlock).withConfig({
3465
- displayName: "TeaserWide__WideVideo",
3466
- componentId: "sc-cnpuar-0"
3467
- })(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) {
3468
- var isVisible = _a.isVisible;
3469
- return isVisible ? 'block' : 'none';
3470
- }, function (_a) {
3471
- var theme = _a.theme;
3472
- return getGlobals(theme).sections.edgeRadius;
3473
- }, mq.semilarge, getGridWidth({
3474
- cols: 6,
3475
- gridWidth: "100% - ".concat(wrapperWhitespace * 2, "px ")
3476
- }), wrapperWhitespace, function (_a) {
3477
- var isMirrored = _a.isMirrored;
3478
- return isMirrored ? 'auto' : '0';
3479
- }, function (_a) {
3480
- var isMirrored = _a.isMirrored;
3481
- return isMirrored ? '0' : 'auto';
3482
- }, mq.xlarge, getGridColOfContent(), wrapperWhitespace, mq.xxlarge, spacings.wrapperLarge / 2, getGridColOfContent(), wrapperWhitespace, function (_a) {
3483
- var isMirrored = _a.isMirrored;
3484
- return isMirrored ? 'auto' : '50%';
3485
- }, function (_a) {
3486
- var isMirrored = _a.isMirrored;
3487
- return isMirrored ? '50%' : 'auto';
3488
- }, function (_a) {
3489
- var isMirrored = _a.isMirrored;
3490
- 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);
3491
- });
3492
- var WideImage = styled(Image).withConfig({
3493
- displayName: "TeaserWide__WideImage",
3494
- componentId: "sc-cnpuar-1"
3495
- })(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({
3496
- cols: 6,
3497
- gridWidth: "100% - ".concat(wrapperWhitespace * 2, "px ")
3498
- }), wrapperWhitespace, function (_a) {
3499
- var isMirrored = _a.isMirrored;
3500
- return isMirrored ? 'auto' : '0';
3501
- }, function (_a) {
3502
- var isMirrored = _a.isMirrored;
3503
- return isMirrored ? '0' : 'auto';
3504
- }, mq.xlarge, getGridColOfContent(), wrapperWhitespace, mq.xxlarge, spacings.wrapperLarge / 2, getGridColOfContent(), wrapperWhitespace, function (_a) {
3505
- var isMirrored = _a.isMirrored;
3506
- return isMirrored ? 'auto' : '50%';
3507
- }, function (_a) {
3508
- var isMirrored = _a.isMirrored;
3509
- return isMirrored ? '50%' : 'auto';
3510
- }, function (_a) {
3511
- var isMirrored = _a.isMirrored;
3512
- 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);
3513
- });
3514
- var Content = styled.div.withConfig({
3515
- displayName: "TeaserWide__Content",
3516
- componentId: "sc-cnpuar-2"
3517
- })(templateObject_6 || (templateObject_6 = __makeTemplateObject(["\n ", "\n\n @media ", " {\n ", "\n }\n"], ["\n ", "\n\n @media ", " {\n ", "\n }\n"])), function (_a) {
3518
- var theme = _a.theme;
3519
- return withRange(getGlobals(theme).sections.seperation.padding.default, 'padding-bottom');
3520
- }, mq.semilarge, function (_a) {
3521
- var theme = _a.theme;
3522
- return withRange(getGlobals(theme).sections.seperation.padding.default, 'padding-top');
3523
- });
3524
- var StyledActions = styled(Actions).withConfig({
3525
- displayName: "TeaserWide__StyledActions",
3526
- componentId: "sc-cnpuar-3"
3527
- })(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);
3528
-
3529
- var TeaserWide = function (_a) {
3530
- var anchorId = _a.anchorId,
3531
- _b = _a.isMirrored,
3532
- isMirrored = _b === void 0 ? false : _b,
3533
- superTitle = _a.superTitle,
3534
- superTitleAs = _a.superTitleAs,
3535
- title = _a.title,
3536
- titleAs = _a.titleAs,
3537
- image = _a.image,
3538
- video = _a.video,
3539
- text = _a.text,
3540
- primaryAction = _a.primaryAction,
3541
- secondaryAction = _a.secondaryAction,
3542
- bgMode = _a.bgMode;
3543
- var colors = useLibTheme().colors;
3544
- var isInverted = bgMode === 'inverted';
3545
- var hasBg = bgMode === 'full';
3546
- var hasVideo = isValidArray(video === null || video === void 0 ? void 0 : video.urls, false);
3547
- var viewRef = useRef(null);
3548
-
3549
- var _c = useState(!(image === null || image === void 0 ? void 0 : image.small) || false),
3550
- isLoaded = _c[0],
3551
- setLoaded = _c[1];
3552
-
3553
- var _d = useState(false),
3554
- isVideoActive = _d[0],
3555
- setVideoActive = _d[1];
3556
-
3557
- var isObserverSupported = useObserverSupport();
3558
- useUpdateEffect(function () {
3559
- if (!viewRef.current || !hasVideo) return;
3560
-
3561
- if (!isObserverSupported) {
3562
- setVideoActive(true);
3563
- return;
3564
- }
3565
-
3566
- var observer = new IntersectionObserver(function (entries, observer) {
3567
- var entry = entries[0];
3568
-
3569
- if (entry.isIntersecting) {
3570
- observer.unobserve(entry.target);
3571
- setVideoActive(true);
3572
- }
3573
- }, {
3574
- rootMargin: '200px 0px 200px 0px'
3575
- });
3576
- var viewEl = viewRef.current;
3577
- observer.observe(viewEl);
3578
- return function () {
3579
- if (viewEl) observer.unobserve(viewEl);
3580
- };
3581
- }, [isObserverSupported]);
3582
- return React__default.createElement(Section, {
3583
- ref: viewRef,
3584
- anchorId: anchorId,
3585
- bgColor: isInverted ? colors.sectionBg.dark : hasBg ? colors.sectionBg.medium : colors.sectionBg.light,
3586
- bgMode: mapToBgMode(bgMode, true)
3587
- }, (image === null || image === void 0 ? void 0 : image.small) && (!video || !isLoaded) && React__default.createElement(WideImage, __assign({
3588
- coverSpace: true
3589
- }, image, {
3590
- isMirrored: isMirrored,
3591
- isInverted: isInverted
3592
- })), hasVideo && React__default.createElement(WideVideo, {
3593
- urls: isVideoActive ? video === null || video === void 0 ? void 0 : video.urls : undefined,
3594
- muted: true,
3595
- autoPlay: true,
3596
- loop: true,
3597
- onCanPlayThrough: function () {
3598
- return setLoaded(true);
3599
- },
3600
- isVisible: isLoaded,
3601
- isInverted: isInverted,
3602
- isMirrored: isMirrored,
3603
- ratios: video === null || video === void 0 ? void 0 : video.aspectRatios
3604
- }), React__default.createElement(Wrapper, {
3605
- clampWidth: "normal",
3606
- addWhitespace: true
3607
- }, React__default.createElement(Grid.Row, {
3608
- valign: "center"
3609
- }, React__default.createElement(Grid.Col, {
3610
- semilarge: {
3611
- span: 6 / 12,
3612
- move: (isMirrored ? 6 : 0) / 12
3613
- },
3614
- xlarge: {
3615
- span: 7 / 12,
3616
- move: (isMirrored ? 5 : 0) / 12
3617
- }
3618
- }), React__default.createElement(Grid.Col, {
3619
- semilarge: {
3620
- span: 6 / 12,
3621
- move: (isMirrored ? -6 : 0) / 12
3622
- },
3623
- xlarge: {
3624
- span: 5 / 12,
3625
- move: (isMirrored ? -7 : 0) / 12
3626
- }
3627
- }, React__default.createElement(Content, null, React__default.createElement(IntroBlock, {
3628
- titleHyphens: true,
3629
- title: title,
3630
- titleAs: titleAs,
3631
- superTitle: superTitle,
3632
- superTitleAs: superTitleAs,
3633
- text: text,
3634
- colorMode: isInverted ? 'inverted' : 'default'
3635
- }), (primaryAction || secondaryAction) && React__default.createElement(StyledActions, {
3636
- primary: primaryAction && primaryAction(isInverted),
3637
- secondary: secondaryAction && secondaryAction(isInverted)
3638
- }))))));
3639
- };
3640
- var TeaserWide$1 = withLibTheme(TeaserWide);
3641
- var templateObject_1$2, templateObject_2$2, templateObject_3$2, templateObject_4$2, templateObject_5, templateObject_6, templateObject_7;
3642
-
3643
- var TimelineBlock = styled.div.withConfig({
3644
- displayName: "Timeline__TimelineBlock",
3645
- componentId: "sc-em4o0o-0"
3646
- })(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) {
3647
- var isSwitched = _a.isSwitched;
3648
- return isSwitched ? 'left' : 'right';
3649
- }, function (_a) {
3650
- var theme = _a.theme,
3651
- isInverted = _a.isInverted;
3652
- return isInverted ? getColors(theme).elementBg.light : getColors(theme).elementBg.dark;
3653
- }, function (_a) {
3654
- var theme = _a.theme,
3655
- isActive = _a.isActive,
3656
- isInverted = _a.isInverted;
3657
- return isActive ? isInverted ? getColors(theme).elementBg.light : getColors(theme).elementBg.dark : isInverted ? getColors(theme).elementBg.dark : getColors(theme).elementBg.light;
3658
- }, mq.large, function (_a) {
3659
- var isSwitched = _a.isSwitched;
3660
- return !isSwitched ? '50%' : 'auto';
3661
- }, function (_a) {
3662
- var isSwitched = _a.isSwitched;
3663
- return isSwitched && '50%';
3664
- }, function (_a) {
3665
- var isSwitched = _a.isSwitched;
3666
- return isSwitched ? '50%' : '-50%';
3667
- }, function (_a) {
3668
- var theme = _a.theme,
3669
- isInverted = _a.isInverted;
3670
- return isInverted ? getColors(theme).elementBg.light : getColors(theme).elementBg.dark;
3671
- }, mq.large);
3672
- var TimelineText = styled.div.withConfig({
3673
- displayName: "Timeline__TimelineText",
3674
- componentId: "sc-em4o0o-1"
3675
- })(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) {
3676
- var isSwitched = _a.isSwitched;
3677
- return isSwitched && '50%';
3678
- }, function (_a) {
3679
- var isSwitched = _a.isSwitched;
3680
- return !isSwitched && '50%';
3681
- }, function (_a) {
3682
- var isSwitched = _a.isSwitched;
3683
- 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");
3684
- }, spacings.nudge * 2);
3685
- var ItemTitle = styled(Heading).withConfig({
3686
- displayName: "Timeline__ItemTitle",
3687
- componentId: "sc-em4o0o-2"
3688
- })(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject([""], [""])));
3689
- var ItemTextBlock = styled(Copy).withConfig({
3690
- displayName: "Timeline__ItemTextBlock",
3691
- componentId: "sc-em4o0o-3"
3692
- })(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject([""], [""])));
3693
-
3694
- var Timeline = function (_a) {
3695
- var anchorId = _a.anchorId,
3696
- bgMode = _a.bgMode,
3697
- items = _a.items;
3698
- var theme = useContext(ThemeContext);
3699
- var isInverted = bgMode === 'inverted';
3700
- var hasBg = bgMode === 'full';
3701
-
3702
- var _b = useState([]),
3703
- targetRefs = _b[0],
3704
- setTargetRefs = _b[1];
3705
-
3706
- var observerSupported = useObserverSupport();
3707
- var observerRef = useRef(null);
3708
-
3709
- var _c = useState(0),
3710
- activeItem = _c[0],
3711
- setActiveItem = _c[1];
3712
-
3713
- useEffect(function () {
3714
- if (observerSupported && targetRefs && targetRefs.length > 0) {
3715
- var options = {
3716
- rootMargin: '-50% 0% -50% 0%',
3717
- threshold: 0
3718
- };
3719
- observerRef.current = new IntersectionObserver(function (entries) {
3720
- entries.forEach(function (entry) {
3721
- if (entry.isIntersecting) {
3722
- var index = targetRefs === null || targetRefs === void 0 ? void 0 : targetRefs.findIndex(function (t) {
3723
- return t.current === entry.target;
3724
- });
3725
- setActiveItem(index);
3726
- }
3727
- });
3728
- }, options);
3729
-
3730
- for (var i = 0; i < targetRefs.length; i++) {
3731
- observerRef.current.observe(targetRefs[i].current);
3732
- }
3733
- }
3734
-
3735
- return function () {
3736
- var _a;
3737
-
3738
- (_a = observerRef.current) === null || _a === void 0 ? void 0 : _a.disconnect();
3739
- };
3740
- }, [targetRefs, observerSupported]);
3741
- useEffect(function () {
3742
- setTargetRefs(function () {
3743
- return Array(items === null || items === void 0 ? void 0 : items.length).fill(null).map(function (_, i) {
3744
- return targetRefs[i] || createRef();
3745
- });
3746
- }); // eslint-disable-next-line react-hooks/exhaustive-deps
3747
- }, [items === null || items === void 0 ? void 0 : items.length]);
3748
- return React__default.createElement(Section, {
3749
- anchorId: anchorId,
3750
- bgColor: isInverted ? getColors(theme).sectionBg.dark : hasBg ? getColors(theme).sectionBg.medium : 'transparent',
3751
- bgMode: mapToBgMode(bgMode, true),
3752
- addSeperation: true
3753
- }, React__default.createElement(Wrapper, {
3754
- addWhitespace: true
3755
- }, items && items.map(function (item, i) {
3756
- return React__default.createElement(TimelineBlock, {
3757
- ref: targetRefs[i],
3758
- isActive: activeItem === i,
3759
- isSwitched: i % 2 === 0,
3760
- isInverted: isInverted,
3761
- key: i
3762
- }, React__default.createElement(TimelineText, {
3763
- isSwitched: i % 2 === 0
3764
- }, React__default.createElement(ItemTitle, {
3765
- size: "heading-2",
3766
- textColor: isInverted ? getColors(theme).text.inverted : getColors(theme).text.default
3767
- }, item.label), React__default.createElement(ItemTextBlock, {
3768
- type: "copy-b",
3769
- size: "big",
3770
- isInverted: isInverted
3771
- }, item.title), React__default.createElement(ItemTextBlock, {
3772
- innerHTML: item.text,
3773
- isInverted: isInverted
3774
- })));
3775
- })));
3776
- };
3777
- var Timeline$1 = withLibTheme(Timeline);
3778
- var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1;
3779
-
3780
- var Video$1 = function (_a) {
3781
- var anchorId = _a.anchorId,
3782
- bgMode = _a.bgMode,
3783
- bgImage = _a.bgImage,
3784
- embedId = _a.embedId,
3785
- playIcon = _a.playIcon,
3786
- consentText = _a.consentText,
3787
- consentAction = _a.consentAction;
3788
- var colors = useLibTheme().colors;
3789
- var isInverted = bgMode === 'inverted';
3790
- return React__default.createElement(Section, {
3791
- anchorId: anchorId,
3792
- bgColor: isInverted ? colors.sectionBg.dark : bgMode ? colors.sectionBg.medium : colors.sectionBg.light,
3793
- bgMode: mapToBgMode(bgMode),
3794
- addSeperation: true
3795
- }, React__default.createElement(Wrapper, {
3796
- addWhitespace: true
3797
- }, React__default.createElement(VideoCard, {
3798
- bgImage: bgImage,
3799
- embedId: embedId,
3800
- playIcon: playIcon,
3801
- consentText: consentText,
3802
- consentAction: consentAction
3803
- })));
3804
- };
3805
- var Video$2 = withLibTheme(Video$1);
3806
-
3807
- var VideoContainer = styled.div.withConfig({
3808
- displayName: "RawVideo__VideoContainer",
3809
- componentId: "sc-ylrujv-0"
3810
- })(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n position: relative;\n cursor: pointer;\n"], ["\n position: relative;\n cursor: pointer;\n"])));
3811
- var Overlay = styled.div.withConfig({
3812
- displayName: "RawVideo__Overlay",
3813
- componentId: "sc-ylrujv-1"
3814
- })(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) {
3815
- var theme = _a.theme,
3816
- isInverted = _a.isInverted;
3817
- return isInverted ? getGlobals(theme).sections.imagePlaceholderBg.inverted : getGlobals(theme).sections.imagePlaceholderBg.default;
3818
- }, function (_a) {
3819
- var bgImage = _a.bgImage;
3820
- return (bgImage === null || bgImage === void 0 ? void 0 : bgImage.small) && "url(\"".concat(bgImage.small, "\")");
3821
- }, function (_a) {
3822
- var theme = _a.theme;
3823
- return getGlobals(theme).sections.edgeRadius;
3824
- }, mq.medium, function (_a) {
3825
- var bgImage = _a.bgImage;
3826
- return (bgImage === null || bgImage === void 0 ? void 0 : bgImage.medium) && "url(\"".concat(bgImage.medium, "\")");
3827
- }, mq.semilarge, function (_a) {
3828
- var bgImage = _a.bgImage;
3829
- return (bgImage === null || bgImage === void 0 ? void 0 : bgImage.semilarge) && "url(\"".concat(bgImage.semilarge, "\")");
3830
- }, mq.large, function (_a) {
3831
- var bgImage = _a.bgImage;
3832
- return (bgImage === null || bgImage === void 0 ? void 0 : bgImage.large) && "url(\"".concat(bgImage.large, "\")");
3833
- }, mq.xlarge, function (_a) {
3834
- var bgImage = _a.bgImage;
3835
- return (bgImage === null || bgImage === void 0 ? void 0 : bgImage.xlarge) && "url(\"".concat(bgImage.xlarge, "\")");
3836
- });
3837
- var VideoControls = styled.button.withConfig({
3838
- displayName: "RawVideo__VideoControls",
3839
- componentId: "sc-ylrujv-2"
3840
- })(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) {
3841
- var theme = _a.theme;
3842
- return getColors(theme).elementBg.light;
3843
- }, function (_a) {
3844
- var theme = _a.theme;
3845
- return getColors(theme).elementBg.dark;
3846
- }, Overlay, Overlay, function (_a) {
3847
- var theme = _a.theme;
3848
- return getColors(theme).primary.default;
3849
- }, function (_a) {
3850
- var theme = _a.theme;
3851
- return getColors(theme).primary.default;
3852
- });
3853
- var Video = styled(VideoBlock).withConfig({
3854
- displayName: "RawVideo__Video",
3855
- componentId: "sc-ylrujv-3"
3856
- })(templateObject_4 || (templateObject_4 = __makeTemplateObject(["\n opacity: ", ";\n pointer-events: ", ";\n"], ["\n opacity: ", ";\n pointer-events: ", ";\n"])), function (_a) {
3857
- var isVisible = _a.isVisible;
3858
- return isVisible ? 1 : 0;
3859
- }, function (_a) {
3860
- var isVisible = _a.isVisible;
3861
- return isVisible ? 'all' : 'none';
3862
- });
3863
-
3864
- var RawVideo = function (_a) {
3865
- var anchorId = _a.anchorId,
3866
- bgMode = _a.bgMode,
3867
- videoUrls = _a.videoUrls,
3868
- placeholderImg = _a.placeholderImg,
3869
- playIcon = _a.playIcon,
3870
- autoplay = _a.autoplay,
3871
- loop = _a.loop;
3872
- var colors = useLibTheme().colors;
3873
- var isInverted = bgMode === 'inverted';
3874
-
3875
- var _b = useState(autoplay || false),
3876
- isStarted = _b[0],
3877
- setIsStarted = _b[1];
3878
-
3879
- return React__default.createElement(Section, {
3880
- anchorId: anchorId,
3881
- bgColor: isInverted ? colors.sectionBg.dark : bgMode ? colors.sectionBg.medium : colors.sectionBg.light,
3882
- bgMode: mapToBgMode(bgMode),
3883
- addSeperation: true
3884
- }, React__default.createElement(Wrapper, {
3885
- addWhitespace: true
3886
- }, React__default.createElement(VideoContainer, {
3887
- onClick: function () {
3888
- if (isValidArray(videoUrls, false)) {
3889
- setIsStarted(true);
3890
- }
3891
- }
3892
- }, isStarted && React__default.createElement(Video, {
3893
- isVisible: isStarted || !(placeholderImg === null || placeholderImg === void 0 ? void 0 : placeholderImg.small),
3894
- controls: !autoplay,
3895
- autoPlay: true,
3896
- loop: loop,
3897
- muted: autoplay,
3898
- ratios: {
3899
- small: 16 / 9
3900
- },
3901
- urls: videoUrls,
3902
- isInverted: isInverted
3903
- }), !isStarted && React__default.createElement(Overlay, {
3904
- bgImage: placeholderImg,
3905
- isInverted: isInverted
3906
- }, React__default.createElement(VideoControls, null, playIcon || React__default.createElement(Play, {
3907
- iconColor: "#000"
3908
- }))))));
3909
- };
3910
- var RawVideo$1 = withLibTheme(RawVideo);
3911
- var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
3912
-
3913
- export { Accordion$1 as Accordion, AlertList$1 as AlertList, Article$1 as Article, CallToAction$1 as CallToAction, CardList$1 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 };
3914
- //# sourceMappingURL=sections.js.map