@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
@@ -1,339 +0,0 @@
1
- import { _ as __assign } from './ClockFilled-6bae80dc.js';
2
- import { useMemo, useState, useCallback, useEffect } from 'react';
3
- import ReactDOMServer from 'react-dom/server';
4
-
5
- var setCookie = function (_a) {
6
- var name = _a.name,
7
- data = _a.data,
8
- _b = _a.days,
9
- days = _b === void 0 ? -1 : _b,
10
- _c = _a.path,
11
- path = _c === void 0 ? '/' : _c;
12
- var cookieString = "".concat(name, "=");
13
-
14
- try {
15
- var stringifiedData = JSON.stringify(data);
16
- cookieString += encodeURIComponent(stringifiedData);
17
- } catch (err) {
18
- console.warn('Cannot save data to cookie!');
19
- } // specify path
20
-
21
-
22
- cookieString += "; path=".concat(path, ";"); // check if cookie should have lifetime
23
-
24
- if (days >= 0) {
25
- var date = new Date();
26
- date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);
27
- cookieString += " expires=".concat(date.toUTCString(), ";");
28
- }
29
-
30
- document.cookie = cookieString;
31
- };
32
- var getCookie = function (name) {
33
- var cookie = undefined;
34
-
35
- try {
36
- // get cookie value
37
- var b = document.cookie.match('(^|;)\\s*' + name + '\\s*=\\s*([^;]+)');
38
- var cookieValue = b ? b.pop() : '';
39
- cookieValue = cookieValue ? decodeURIComponent(cookieValue) : '';
40
- if (!cookieValue) return;
41
- cookie = {
42
- name: name,
43
- data: JSON.parse(cookieValue)
44
- };
45
- } catch (err) {
46
- console.warn(err);
47
- }
48
-
49
- return cookie;
50
- };
51
- var deleteCookie = function (name) {
52
- setCookie({
53
- name: name,
54
- data: {}
55
- });
56
- };
57
-
58
- var isUrlInWhitelist = function (urlString, whitelist) {
59
- if (whitelist === void 0) {
60
- whitelist = [];
61
- }
62
-
63
- var isInWhiteList = false;
64
-
65
- for (var i = 0; i < whitelist.length; i++) {
66
- if (urlString.indexOf(whitelist[i]) > -1) {
67
- isInWhiteList = true;
68
- break;
69
- }
70
- }
71
-
72
- return isInWhiteList;
73
- };
74
- var bindConsentButtons = function (callback, selectors) {
75
- if (selectors === void 0) {
76
- selectors = [];
77
- }
78
-
79
- var allConsentButtons = document.querySelectorAll(selectors.join(', '));
80
-
81
- for (var i = 0, len = allConsentButtons.length; i < len; i++) {
82
- allConsentButtons[i].addEventListener('click', callback);
83
- }
84
- };
85
- var activateTrackingScripts = function (scriptTypeSelectors) {
86
- var _a;
87
-
88
- if (scriptTypeSelectors === void 0) {
89
- scriptTypeSelectors = [];
90
- }
91
-
92
- var selectors = scriptTypeSelectors.filter(function (selector) {
93
- return selector;
94
- }).map(function (selector) {
95
- return "script[type='text/".concat(selector, "']");
96
- }).join(', ');
97
- var scriptElements = selectors ? document.querySelectorAll(selectors) : [];
98
- var i = scriptElements.length;
99
- var newScriptElements = [];
100
-
101
- while (i--) {
102
- // create new script element to call it
103
- var newScriptElement = document.createElement('script');
104
- newScriptElement.type = 'text/javascript';
105
-
106
- if (scriptElements[i].hasAttribute('src')) {
107
- newScriptElement.src = scriptElements[i].getAttribute('src');
108
- newScriptElement.async = true;
109
- } else {
110
- newScriptElement.innerHTML = scriptElements[i].innerHTML;
111
- } // add new script tags to list
112
-
113
-
114
- newScriptElements.push(newScriptElement); // delete old helper element
115
-
116
- if (scriptElements[i].parentNode) {
117
- // eslint-disable-next-line no-unused-expressions
118
- (_a = scriptElements[i].parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(scriptElements[i]);
119
- }
120
- } // append new script tags
121
-
122
-
123
- i = newScriptElements.length;
124
-
125
- while (i--) {
126
- // append / activate script
127
- document.body.appendChild(newScriptElements[i]);
128
- }
129
- };
130
- var updateConsentStatus = function (content, selectors) {
131
- if (selectors === void 0) {
132
- selectors = [];
133
- }
134
-
135
- if (!content) return;
136
- var statusElements = document.querySelectorAll(selectors.join(', '));
137
-
138
- for (var i = 0, len = statusElements.length; i < len; i++) {
139
- statusElements[i].innerHTML = content;
140
- }
141
- };
142
-
143
- var selectors = {
144
- buttons: {
145
- class: 'cookie-consent-button',
146
- attribute: 'data-consent-button'
147
- },
148
- status: {
149
- class: 'cookie-consent-status',
150
- attribute: 'data-consent-status'
151
- },
152
- script: function (key) {
153
- return "cookie-consent-script-".concat(key);
154
- }
155
- };
156
-
157
- var useCookieConsent = function (props, onSubmit, statusRenderer) {
158
- var settings = useMemo(function () {
159
- return __assign({
160
- cookieName: 'cookie-consent-v2',
161
- lifetime: 365,
162
- initialCookieTypes: {
163
- essentials: {
164
- isEditable: false,
165
- isAccepted: true,
166
- label: 'Essential functionalities'
167
- }
168
- }
169
- }, props); // eslint-disable-next-line react-hooks/exhaustive-deps
170
- }, []);
171
-
172
- var _a = useState(settings.initialCookieTypes),
173
- cookieTypes = _a[0],
174
- setCookieTypes = _a[1];
175
-
176
- var updateStatus = useCallback(function () {
177
- var cookie = getCookie(settings.cookieName);
178
- var statusMsg = '-';
179
-
180
- if (cookie && cookie.data) {
181
- var statusHtml = statusRenderer === null || statusRenderer === void 0 ? void 0 : statusRenderer({
182
- updatedAt: cookie.data.updatedAt,
183
- state: cookieTypes
184
- });
185
-
186
- if (statusHtml) {
187
- statusMsg = ReactDOMServer.renderToStaticMarkup(statusHtml);
188
- }
189
- }
190
-
191
- updateConsentStatus(statusMsg, ["[".concat(selectors.status.attribute, "]"), ".".concat(selectors.status.class)]); // eslint-disable-next-line react-hooks/exhaustive-deps
192
- }, [settings.cookieName]);
193
- useEffect(function () {
194
- var _a;
195
-
196
- var cookie = getCookie(settings.cookieName);
197
-
198
- if (cookie && ((_a = cookie.data) === null || _a === void 0 ? void 0 : _a.types)) {
199
- setCookieTypes(function (prev) {
200
- var cPrev = __assign({}, prev);
201
-
202
- for (var key in cPrev) {
203
- if (!cookie.data.types[key]) continue;
204
- cPrev[key].isAccepted = cookie.data.types[key];
205
- }
206
-
207
- handleScriptActivation(cPrev);
208
- return cPrev;
209
- });
210
- }
211
-
212
- updateStatus();
213
- }, [settings, settings.cookieName, updateStatus]);
214
-
215
- var mapToCookieData = function (types) {
216
- var data = {};
217
- if (!types) return data;
218
-
219
- for (var key in types) {
220
- data[key] = types[key].isAccepted;
221
- }
222
-
223
- return data;
224
- };
225
- /** Accept all types of cookies */
226
-
227
-
228
- var acceptAll = useCallback(function () {
229
- console.info('Accept all cookie types');
230
- setCookieTypes(function (prev) {
231
- var types = __assign({}, prev);
232
-
233
- for (var key in types) {
234
- if (!types[key].isEditable) continue;
235
- types[key].isAccepted = true;
236
- }
237
-
238
- setCookie({
239
- name: settings.cookieName,
240
- data: {
241
- types: mapToCookieData(types),
242
- updatedAt: new Date().getTime()
243
- },
244
- days: settings.lifetime
245
- });
246
- updateStatus();
247
- handleScriptActivation(types);
248
- return types;
249
- });
250
- onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit();
251
- }, [onSubmit, settings.cookieName, settings.lifetime, updateStatus]);
252
- /** Decline all types of cookies (except required ones) */
253
-
254
- var declineAll = useCallback(function () {
255
- console.info('Decline all cookie types');
256
- setCookieTypes(function (prev) {
257
- var types = __assign({}, prev);
258
-
259
- for (var key in types) {
260
- if (!types[key].isEditable) continue;
261
- types[key].isAccepted = false;
262
- }
263
-
264
- setCookie({
265
- name: settings.cookieName,
266
- data: {
267
- types: mapToCookieData(types),
268
- updatedAt: new Date().getTime()
269
- },
270
- days: settings.lifetime
271
- });
272
- updateStatus();
273
- handleScriptActivation(types);
274
- return types;
275
- });
276
- onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit();
277
- }, [onSubmit, settings.cookieName, settings.lifetime, updateStatus]);
278
- /** Accept selected types of cookies */
279
-
280
- var acceptSelected = useCallback(function () {
281
- console.info('Accept selected cookie types');
282
- setCookie({
283
- name: settings.cookieName,
284
- data: {
285
- types: mapToCookieData(cookieTypes),
286
- updatedAt: new Date().getTime()
287
- },
288
- days: settings.lifetime
289
- });
290
- updateStatus();
291
- handleScriptActivation(cookieTypes);
292
- onSubmit === null || onSubmit === void 0 ? void 0 : onSubmit();
293
- }, [cookieTypes, onSubmit, settings.cookieName, settings.lifetime, updateStatus]);
294
-
295
- var handleScriptActivation = function (types) {
296
- if (!types) return; // activate scripts from cookie types
297
-
298
- var acceptedKeys = Object.keys(types).filter(function (key) {
299
- return types[key].isAccepted;
300
- });
301
- activateTrackingScripts(acceptedKeys.map(function (key) {
302
- return selectors.script(key);
303
- }));
304
- };
305
- /** Set or toggle consent status of cookie type */
306
-
307
-
308
- var setConsent = function (type, isAccepted) {
309
- setCookieTypes(function (prev) {
310
- var types = __assign({}, prev);
311
-
312
- if (!types[type] || !types[type].isEditable) return types;
313
-
314
- if (isAccepted !== undefined) {
315
- types[type].isAccepted = isAccepted;
316
- } else {
317
- types[type].isAccepted = !types[type].isAccepted;
318
- }
319
-
320
- return types;
321
- });
322
- };
323
-
324
- var getCookieValue = function () {
325
- return getCookie(settings.cookieName);
326
- };
327
-
328
- return {
329
- cookieTypes: cookieTypes,
330
- acceptAll: acceptAll,
331
- acceptSelected: acceptSelected,
332
- declineAll: declineAll,
333
- setConsent: setConsent,
334
- getCookieValue: getCookieValue
335
- };
336
- };
337
-
338
- export { setCookie as a, bindConsentButtons as b, deleteCookie as d, getCookie as g, isUrlInWhitelist as i, selectors as s, useCookieConsent as u };
339
- //# sourceMappingURL=useCookieConsent-8caef116.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useCookieConsent-8caef116.js","sources":["../src/utils/cookie-consent/cookie.ts","../src/utils/cookie-consent/mutations.ts","../src/utils/cookie-consent/useCookieConsent.tsx"],"sourcesContent":["export interface Cookie<T extends object> {\n name: string;\n data: T;\n}\n\nexport const setCookie = <T extends object>({\n name,\n data,\n days = -1,\n path = '/',\n}: {\n name: string;\n data: T;\n days?: number;\n path?: string;\n}) => {\n let cookieString = `${name}=`;\n\n try {\n const stringifiedData = JSON.stringify(data);\n cookieString += encodeURIComponent(stringifiedData);\n } catch (err) {\n console.warn('Cannot save data to cookie!');\n }\n\n // specify path\n cookieString += `; path=${path};`;\n\n // check if cookie should have lifetime\n if (days >= 0) {\n const date = new Date();\n date.setTime(date.getTime() + days * 24 * 60 * 60 * 1000);\n cookieString += ` expires=${date.toUTCString()};`;\n }\n document.cookie = cookieString;\n};\n\nexport const getCookie = <T extends object>(\n name: string\n): Cookie<T> | undefined => {\n let cookie = undefined;\n\n try {\n // get cookie value\n const b = document.cookie.match(\n '(^|;)\\\\s*' + name + '\\\\s*=\\\\s*([^;]+)'\n );\n let cookieValue = b ? b.pop() : '';\n cookieValue = cookieValue ? decodeURIComponent(cookieValue) : '';\n\n if (!cookieValue) return;\n\n cookie = {\n name: name,\n data: JSON.parse(cookieValue) as T,\n } as Cookie<T>;\n } catch (err) {\n console.warn(err);\n }\n\n return cookie;\n};\n\nexport const deleteCookie = (name: string) => {\n setCookie<any>({ name, data: {} });\n};\n","export const isUrlInWhitelist = (\n urlString: string,\n whitelist: string[] = []\n) => {\n let isInWhiteList = false;\n for (let i = 0; i < whitelist.length; i++) {\n if (urlString.indexOf(whitelist[i]) > -1) {\n isInWhiteList = true;\n break;\n }\n }\n return isInWhiteList;\n};\n\nexport const bindConsentButtons = (\n callback: () => void,\n selectors: string[] = []\n) => {\n const allConsentButtons = document.querySelectorAll(selectors.join(', '));\n\n for (let i = 0, len = allConsentButtons.length; i < len; i++) {\n allConsentButtons[i].addEventListener('click', callback);\n }\n};\n\nexport const activateTrackingScripts = (scriptTypeSelectors: string[] = []) => {\n const selectors = scriptTypeSelectors\n .filter((selector) => selector)\n .map((selector) => `script[type='text/${selector}']`)\n .join(', ');\n\n const scriptElements = selectors\n ? document.querySelectorAll(selectors)\n : [];\n\n let i = scriptElements.length;\n const newScriptElements: HTMLScriptElement[] = [];\n while (i--) {\n // create new script element to call it\n const newScriptElement = document.createElement('script');\n newScriptElement.type = 'text/javascript';\n\n if (scriptElements[i].hasAttribute('src')) {\n newScriptElement.src = scriptElements[i].getAttribute('src')!;\n newScriptElement.async = true;\n } else {\n newScriptElement.innerHTML = scriptElements[i].innerHTML;\n }\n\n // add new script tags to list\n newScriptElements.push(newScriptElement);\n\n // delete old helper element\n if (scriptElements[i].parentNode) {\n // eslint-disable-next-line no-unused-expressions\n scriptElements[i].parentNode?.removeChild(scriptElements[i]);\n }\n }\n\n // append new script tags\n i = newScriptElements.length;\n while (i--) {\n // append / activate script\n document.body.appendChild(newScriptElements[i]);\n }\n};\n\nexport const updateConsentStatus = (\n content: string,\n selectors: string[] = []\n) => {\n if (!content) return;\n const statusElements = document.querySelectorAll(selectors.join(', '));\n\n for (let i = 0, len = statusElements.length; i < len; i++) {\n statusElements[i].innerHTML = content;\n }\n};\n","import React, { useEffect, useState, useMemo, useCallback } from 'react';\nimport ReactDOMServer from 'react-dom/server';\n\nimport { Cookie, getCookie, setCookie } from './cookie';\nimport { activateTrackingScripts, updateConsentStatus } from './mutations';\n\nexport interface CookieType {\n label: string;\n isAccepted: boolean;\n isEditable: boolean;\n}\n\nexport interface CookieTypes {\n [key: string]: CookieType;\n}\n\nexport interface CookieConsentData {\n types: Record<string, boolean>;\n updatedAt: number;\n}\n\nexport interface CookieConsentSettings {\n cookieName?: string;\n initialCookieTypes?: CookieTypes;\n lifetime?: number;\n}\n\nexport const selectors = {\n buttons: {\n class: 'cookie-consent-button',\n attribute: 'data-consent-button',\n },\n status: {\n class: 'cookie-consent-status',\n attribute: 'data-consent-status',\n },\n script: (key: string) => `cookie-consent-script-${key}`,\n};\n\nconst useCookieConsent = (\n props: CookieConsentSettings,\n onSubmit?: () => void,\n statusRenderer?: (props: {\n updatedAt: number;\n state: CookieTypes;\n }) => React.ReactElement\n) => {\n const settings: Required<CookieConsentSettings> = useMemo(() => {\n return {\n cookieName: 'cookie-consent-v2',\n lifetime: 365,\n initialCookieTypes: {\n essentials: {\n isEditable: false,\n isAccepted: true,\n label: 'Essential functionalities',\n },\n },\n ...props,\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const [cookieTypes, setCookieTypes] = useState<CookieTypes>(\n settings.initialCookieTypes\n );\n\n const updateStatus = useCallback(() => {\n const cookie = getCookie(\n settings.cookieName\n ) as Cookie<CookieConsentData>;\n\n let statusMsg = '-';\n\n if (cookie && cookie.data) {\n const statusHtml = statusRenderer?.({\n updatedAt: cookie.data.updatedAt,\n state: cookieTypes,\n });\n if (statusHtml) {\n statusMsg = ReactDOMServer.renderToStaticMarkup(statusHtml);\n }\n }\n\n updateConsentStatus(statusMsg, [\n `[${selectors.status.attribute}]`,\n `.${selectors.status.class}`,\n ]);\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, [settings.cookieName]);\n\n useEffect(() => {\n const cookie = getCookie(\n settings.cookieName\n ) as Cookie<CookieConsentData>;\n\n if (cookie && cookie.data?.types) {\n setCookieTypes((prev) => {\n const cPrev = { ...prev };\n for (const key in cPrev) {\n if (!cookie.data.types[key]) continue;\n cPrev[key].isAccepted = cookie.data.types[key];\n }\n\n handleScriptActivation(cPrev);\n\n return cPrev;\n });\n }\n updateStatus();\n }, [settings, settings.cookieName, updateStatus]);\n\n const mapToCookieData = (types: CookieTypes): Record<string, boolean> => {\n const data = {};\n if (!types) return data;\n\n for (const key in types) {\n data[key] = types[key].isAccepted;\n }\n\n return data;\n };\n\n /** Accept all types of cookies */\n const acceptAll = useCallback(() => {\n console.info('Accept all cookie types');\n\n setCookieTypes((prev) => {\n const types = { ...prev };\n for (const key in types) {\n if (!types[key].isEditable) continue;\n types[key].isAccepted = true;\n }\n\n setCookie<CookieConsentData>({\n name: settings.cookieName,\n data: {\n types: mapToCookieData(types),\n updatedAt: new Date().getTime(),\n },\n days: settings.lifetime,\n });\n\n updateStatus();\n handleScriptActivation(types);\n return types;\n });\n onSubmit?.();\n }, [onSubmit, settings.cookieName, settings.lifetime, updateStatus]);\n\n /** Decline all types of cookies (except required ones) */\n const declineAll = useCallback(() => {\n console.info('Decline all cookie types');\n\n setCookieTypes((prev) => {\n const types = { ...prev };\n for (const key in types) {\n if (!types[key].isEditable) continue;\n types[key].isAccepted = false;\n }\n\n setCookie<CookieConsentData>({\n name: settings.cookieName,\n data: {\n types: mapToCookieData(types),\n updatedAt: new Date().getTime(),\n },\n days: settings.lifetime,\n });\n\n updateStatus();\n handleScriptActivation(types);\n return types;\n });\n onSubmit?.();\n }, [onSubmit, settings.cookieName, settings.lifetime, updateStatus]);\n\n /** Accept selected types of cookies */\n const acceptSelected = useCallback(() => {\n console.info('Accept selected cookie types');\n\n setCookie<CookieConsentData>({\n name: settings.cookieName,\n data: {\n types: mapToCookieData(cookieTypes),\n updatedAt: new Date().getTime(),\n },\n days: settings.lifetime,\n });\n\n updateStatus();\n handleScriptActivation(cookieTypes);\n onSubmit?.();\n }, [\n cookieTypes,\n onSubmit,\n settings.cookieName,\n settings.lifetime,\n updateStatus,\n ]);\n\n const handleScriptActivation = (types: CookieTypes) => {\n if (!types) return;\n\n // activate scripts from cookie types\n const acceptedKeys = Object.keys(types).filter(\n (key) => types[key].isAccepted\n );\n activateTrackingScripts(\n acceptedKeys.map((key) => selectors.script(key))\n );\n };\n\n /** Set or toggle consent status of cookie type */\n const setConsent = (type: keyof CookieTypes, isAccepted?: boolean) => {\n setCookieTypes((prev) => {\n const types = { ...prev };\n if (!types[type] || !types[type].isEditable) return types;\n\n if (isAccepted !== undefined) {\n types[type].isAccepted = isAccepted;\n } else {\n types[type].isAccepted = !types[type].isAccepted;\n }\n\n return types;\n });\n };\n\n const getCookieValue = (): Cookie<CookieConsentData> | undefined => {\n return getCookie(settings.cookieName) as Cookie<CookieConsentData>;\n };\n\n return {\n cookieTypes,\n acceptAll,\n acceptSelected,\n declineAll,\n setConsent,\n getCookieValue,\n };\n};\n\nexport default useCookieConsent;\n"],"names":["setCookie","_a","name","data","_b","days","_c","path","cookieString","concat","stringifiedData","JSON","stringify","encodeURIComponent","err","console","warn","date","Date","setTime","getTime","toUTCString","document","cookie","getCookie","undefined","b","match","cookieValue","pop","decodeURIComponent","parse","deleteCookie","isUrlInWhitelist","urlString","whitelist","isInWhiteList","i","length","indexOf","bindConsentButtons","callback","selectors","allConsentButtons","querySelectorAll","join","len","addEventListener","activateTrackingScripts","scriptTypeSelectors","filter","selector","map","scriptElements","newScriptElements","newScriptElement","createElement","type","hasAttribute","src","getAttribute","async","innerHTML","push","parentNode","removeChild","body","appendChild","updateConsentStatus","content","statusElements","buttons","class","attribute","status","script","key","useCookieConsent","props","onSubmit","statusRenderer","settings","useMemo","__assign","cookieName","lifetime","initialCookieTypes","essentials","isEditable","isAccepted","label","useState","cookieTypes","setCookieTypes","updateStatus","useCallback","statusMsg","statusHtml","updatedAt","state","ReactDOMServer","renderToStaticMarkup","useEffect","types","prev","cPrev","handleScriptActivation","mapToCookieData","acceptAll","info","declineAll","acceptSelected","acceptedKeys","Object","keys","setConsent","getCookieValue"],"mappings":";;;;AAKaA,IAAAA,SAAS,GAAG,UAAmBC,EAAnB,EAUxB;AATG,EAAA,IAAAC,IAAI,UAAJ;AAAA,MACAC,IAAI,UADJ;AAAA,MAEAC,EAAA,GAAAH,EAAA,CAAAI,IAFA;AAAA,MAEAA,IAAI,GAAAD,EAAA,KAAA,KAAA,CAAA,GAAG,CAAC,CAAJ,KAFJ;AAAA,MAGAE,EAAA,GAAAL,EAAA,CAAAM,IAHA;AAAA,MAGAA,IAAI,GAAAD,EAAA,KAAA,KAAA,CAAA,GAAG,GAAH,GAAMA,EAHV,CAAA;AAUA,EAAIE,IAAAA,YAAY,GAAG,EAAGC,CAAAA,MAAH,CAAGP,IAAH,KAAA,CAAnB,CAAA;;AAEA,EAAI,IAAA;AACA,IAAA,IAAMQ,eAAe,GAAGC,IAAI,CAACC,SAAL,CAAeT,IAAf,CAAxB,CAAA;AACAK,IAAAA,YAAY,IAAIK,kBAAkB,CAACH,eAAD,CAAlC,CAAA;AACH,GAHD,CAGE,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AAzB,CAAA;AACH,OAFD,MAEO;AACHc,QAAAA,KAAK,CAAC9C,IAAD,CAAL,CAAYgC,UAAZ,GAAyB,CAACc,KAAK,CAAC9C,IAAD,CAAL,CAAYgC,UAAtC,CAAA;AACH,OAAA;;AAED,MAAA,OAAOc,KAAP,CAAA;AACH,KAXa,CAAd,CAAA;AAYH,GAbD,CAAA;;AAeA,EAAMa,IAAAA,cAAc,GAAG,YAAA;AACnB,IAAA,OAAO5F,SAAS,CAACyD,QAAQ,CAACG,UAAV,CAAhB,CAAA;AACH,GAFD,CAAA;;AAIA,EAAO,OAAA;AACHQ,IAAAA,WAAW,EAAAA,WADR;AAEHgB,IAAAA,SAAS,EAAAA,SAFN;AAGHG,IAAAA,cAAc,EAAAA,cAHX;AAIHD,IAAAA,UAAU,EAAAA,UAJP;AAKHK,IAAAA,UAAU,EAAAA,UALP;AAMHC,IAAAA,cAAc,EAAAA,cAAAA;AANX,GAAP,CAAA;AAQH;;;;"}
@@ -1,196 +0,0 @@
1
- import { _ as __assign, e as __spreadArray } from './ClockFilled-6bae80dc.js';
2
- import { useState, useEffect, useRef, useCallback, createRef } from 'react';
3
- import { u as useMediaQuery } from './useMediaQuery-0d473a9c.js';
4
-
5
- var useFontsLoaded = function () {
6
- var _a = useState(false),
7
- allFontsLoaded = _a[0],
8
- setFontLoaded = _a[1];
9
-
10
- useEffect(function () {
11
- var waitForFonts = function () {
12
- var _a, _b;
13
-
14
- (_b = (_a = document === null || document === void 0 ? void 0 : document.fonts) === null || _a === void 0 ? void 0 : _a.ready) === null || _b === void 0 ? void 0 : _b.then(function () {
15
- setFontLoaded(true);
16
- });
17
- };
18
-
19
- if (document.fonts === undefined) setFontLoaded(undefined);else waitForFonts();
20
- }, []);
21
- return allFontsLoaded;
22
- };
23
-
24
- var useResizeThrottle = function (timeout, callback) {
25
- if (timeout === void 0) {
26
- timeout = 0;
27
- }
28
-
29
- var _a = useState(null),
30
- throttledState = _a[0],
31
- setThrottledState = _a[1];
32
-
33
- var timeoutRef = useRef(-1);
34
- var lastState = useRef({
35
- clientWidth: 0,
36
- clientHeight: 0,
37
- innerHeight: 0,
38
- innerWidth: 0
39
- });
40
-
41
- var updateResizeState = function () {
42
- if (typeof window === 'undefined' || typeof document === 'undefined') {
43
- return;
44
- }
45
-
46
- lastState.current = {
47
- clientWidth: document.documentElement.clientWidth,
48
- clientHeight: document.documentElement.clientHeight,
49
- innerHeight: window.innerHeight,
50
- innerWidth: window.innerWidth
51
- };
52
- };
53
-
54
- useEffect(function () {
55
- if (typeof window === 'undefined') return;
56
-
57
- var handleResize = function () {
58
- updateResizeState();
59
-
60
- if (timeoutRef.current === -1) {
61
- timeoutRef.current = window.setTimeout(function () {
62
- callback === null || callback === void 0 ? void 0 : callback(lastState.current);
63
- setThrottledState(lastState.current);
64
- timeoutRef.current = -1;
65
- }, timeout);
66
- }
67
- };
68
-
69
- updateResizeState();
70
- callback === null || callback === void 0 ? void 0 : callback(lastState.current);
71
- setThrottledState(lastState.current);
72
- window.addEventListener('resize', handleResize);
73
- return function () {
74
- window.removeEventListener('resize', handleResize);
75
- };
76
- }, [callback, timeout]);
77
- return throttledState;
78
- };
79
-
80
- // useEqualSheetHeight
81
- // ********************
82
-
83
- var useEqualSheetHeight = function (props) {
84
- var defaultResponsive = __assign({
85
- small: 1,
86
- medium: 1,
87
- semilarge: 2,
88
- large: 3,
89
- xlarge: 3
90
- }, props.responsive);
91
-
92
- var mqs = ['small', 'medium', 'semilarge', 'large', 'xlarge'];
93
- var currentMq = useMediaQuery(mqs);
94
- var itemsPerRow = currentMq ? defaultResponsive[currentMq] : defaultResponsive.small;
95
-
96
- var _a = useState([]),
97
- sheetRefs = _a[0],
98
- setSheetRefs = _a[1];
99
-
100
- var fontsLoaded = useFontsLoaded();
101
- var setHeights = useCallback(function (heights, selector, refs) {
102
- var makeRows = function (result, _, index, arr) {
103
- // make new row after 3 items
104
- if (index % itemsPerRow === 0) {
105
- result.push(arr.slice(index, index + itemsPerRow));
106
- }
107
-
108
- return result;
109
- }; // put item heights in 2-dimensional array to sort them in rows
110
-
111
-
112
- var heightsInRows = heights.reduce(makeRows, []);
113
- heightsInRows.forEach(function (rowHeights, y) {
114
- var validHeights = rowHeights.filter(function (height) {
115
- return height !== null;
116
- });
117
- var highest = validHeights.slice().sort(function (vA, vB) {
118
- if (vA && vB) {
119
- if (vA > vB) return -1;
120
- return 1;
121
- } else return 0;
122
- })[0]; // set height of all items in row to the highest value
123
-
124
- if (rowHeights.length > 1 && highest) {
125
- for (var x = 0; x < rowHeights.length; x++) {
126
- var index = x + y * itemsPerRow;
127
- var el = refs[index].current.querySelector(selector);
128
- el === null || el === void 0 ? void 0 : el.setAttribute('style', "height: ".concat(highest, "px"));
129
- }
130
- }
131
- });
132
- }, [itemsPerRow]); // Throttle viewport resize event for performance
133
-
134
- var resizeState = useResizeThrottle(props.resizeThrottleTimeout !== undefined ? props.resizeThrottleTimeout : 400);
135
- useEffect(function () {
136
- var resize = function (refs) {
137
- return function () {
138
- var identifierSizes = new Map(); // create identifier map
139
-
140
- for (var i = 0; i < props.identifiers.length; i++) {
141
- identifierSizes.set(props.identifiers[i], []);
142
- } // set height values
143
-
144
-
145
- refs.filter(function (ref) {
146
- return ref.current;
147
- }).forEach(function (_a) {
148
- var current = _a.current; // get height for each element
149
-
150
- props.identifiers.forEach(function (id) {
151
- var element = current.querySelector(id);
152
- var prevHeights = identifierSizes.get(id);
153
- var height = null;
154
-
155
- if (element) {
156
- element.removeAttribute('style');
157
- height = element.getBoundingClientRect().height;
158
- }
159
-
160
- if (prevHeights) {
161
- identifierSizes.set(id, __spreadArray(__spreadArray([], prevHeights, true), [height], false));
162
- }
163
- });
164
- }); // set heights for each identifier
165
-
166
- identifierSizes.forEach(function (value, key) {
167
- setHeights(value, key, refs);
168
- });
169
- };
170
- };
171
-
172
- var resizeHandler = resize(sheetRefs);
173
- resizeHandler();
174
- }, [props.identifiers, resizeState, setHeights, sheetRefs, fontsLoaded]);
175
- var triggerCalculation = useCallback(function () {
176
- setSheetRefs(function (prev) {
177
- return Array(props.listLength).fill(null).map(function (_, i) {
178
- return prev[i] || createRef();
179
- });
180
- });
181
- }, [props.listLength]);
182
- useEffect(function () {
183
- setSheetRefs(function (prev) {
184
- return Array(props.listLength).fill(null).map(function (_, i) {
185
- return prev[i] || createRef();
186
- });
187
- });
188
- }, [props.listLength]);
189
- return {
190
- sheetRefs: sheetRefs,
191
- triggerCalculation: triggerCalculation
192
- };
193
- };
194
-
195
- export { useFontsLoaded as a, useResizeThrottle as b, useEqualSheetHeight as u };
196
- //# sourceMappingURL=useEqualSheetHeight-c18cebd3.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"useEqualSheetHeight-c18cebd3.js","sources":["../src/utils/useFontsLoaded.ts","../src/utils/useResizeThrottle.ts","../src/utils/useEqualSheetHeight.ts"],"sourcesContent":["import { useEffect, useState } from 'react';\n\nexport const useFontsLoaded = () => {\n const [allFontsLoaded, setFontLoaded] = useState<boolean | undefined>(\n false\n );\n\n useEffect(() => {\n const waitForFonts = () => {\n (document as any)?.fonts?.ready?.then(() => {\n setFontLoaded(true);\n });\n };\n\n if ((document as any).fonts === undefined) setFontLoaded(undefined);\n else waitForFonts();\n }, []);\n\n return allFontsLoaded;\n};\n","import { useEffect, useRef, useState } from 'react';\n\nexport interface ResizeState {\n clientWidth: number;\n clientHeight: number;\n innerHeight: number;\n innerWidth: number;\n}\n\nconst useResizeThrottle = (\n timeout = 0,\n callback?: (state: ResizeState) => void\n) => {\n const [throttledState, setThrottledState] =\n useState<ResizeState | null>(null);\n\n const timeoutRef = useRef<number>(-1);\n const lastState = useRef<ResizeState>({\n clientWidth: 0,\n clientHeight: 0,\n innerHeight: 0,\n innerWidth: 0,\n });\n\n const updateResizeState = () => {\n if (typeof window === 'undefined' || typeof document === 'undefined') {\n return;\n }\n\n lastState.current = {\n clientWidth: document.documentElement.clientWidth,\n clientHeight: document.documentElement.clientHeight,\n innerHeight: window.innerHeight,\n innerWidth: window.innerWidth,\n };\n };\n\n useEffect(() => {\n if (typeof window === 'undefined') return;\n\n const handleResize = () => {\n updateResizeState();\n\n if (timeoutRef.current === -1) {\n timeoutRef.current = window.setTimeout(() => {\n callback?.(lastState.current);\n setThrottledState(lastState.current);\n timeoutRef.current = -1;\n }, timeout);\n }\n };\n\n updateResizeState();\n callback?.(lastState.current);\n setThrottledState(lastState.current);\n\n window.addEventListener('resize', handleResize);\n\n return () => {\n window.removeEventListener('resize', handleResize);\n };\n }, [callback, timeout]);\n\n return throttledState;\n};\n\nexport default useResizeThrottle;\n","import {\n useEffect,\n useState,\n MutableRefObject,\n createRef,\n useCallback,\n} from 'react';\nimport { useMediaQuery } from './useMediaQuery';\nimport { useFontsLoaded } from 'utils/useFontsLoaded';\nimport useResizeThrottle from './useResizeThrottle';\n\ninterface ItemsPerRow {\n small?: number;\n medium?: number;\n semilarge?: number;\n large?: number;\n xlarge?: number;\n}\n\ntype Mq = keyof ItemsPerRow;\n\n// ********************\n// useEqualSheetHeight\n// ********************\n\nexport const useEqualSheetHeight = <T extends HTMLElement>(props: {\n listLength: number;\n identifiers: string[];\n responsive?: ItemsPerRow;\n /** Throttle timeout for resize events. Default: 400ms */\n resizeThrottleTimeout?: number;\n}) => {\n const defaultResponsive = {\n small: 1,\n medium: 1,\n semilarge: 2,\n large: 3,\n xlarge: 3,\n ...props.responsive,\n };\n const mqs: Mq[] = ['small', 'medium', 'semilarge', 'large', 'xlarge'];\n const currentMq = useMediaQuery(mqs) as Mq | undefined;\n const itemsPerRow = currentMq\n ? defaultResponsive[currentMq]\n : defaultResponsive.small;\n\n const [sheetRefs, setSheetRefs] = useState<MutableRefObject<T>[]>([]);\n const fontsLoaded = useFontsLoaded();\n\n const setHeights = useCallback(\n (\n heights: (number | null)[],\n selector: string,\n refs: MutableRefObject<T>[]\n ) => {\n const makeRows = (\n result: Array<number | null>[],\n _: number,\n index: number,\n arr: Array<number | null>\n ) => {\n // make new row after 3 items\n if (index % itemsPerRow === 0) {\n result.push(\n arr.slice(index, index + itemsPerRow) as Array<number>\n );\n }\n return result;\n };\n\n // put item heights in 2-dimensional array to sort them in rows\n const heightsInRows = heights.reduce(makeRows, []);\n\n heightsInRows.forEach((rowHeights, y) => {\n const validHeights = rowHeights.filter(\n (height) => height !== null\n ) as number[];\n\n const highest = validHeights.slice().sort((vA, vB) => {\n if (vA && vB) {\n if (vA > vB) return -1;\n return 1;\n } else return 0;\n })[0];\n\n // set height of all items in row to the highest value\n if (rowHeights.length > 1 && highest) {\n for (let x = 0; x < rowHeights.length; x++) {\n const index = x + y * itemsPerRow;\n const el = refs[index].current.querySelector(selector);\n\n el?.setAttribute('style', `height: ${highest}px`);\n }\n }\n });\n },\n [itemsPerRow]\n );\n\n // Throttle viewport resize event for performance\n const resizeState = useResizeThrottle(\n props.resizeThrottleTimeout !== undefined\n ? props.resizeThrottleTimeout\n : 400\n );\n\n useEffect(() => {\n const resize = (refs: MutableRefObject<T>[]) => () => {\n const identifierSizes = new Map<string, Array<number | null>>();\n\n // create identifier map\n for (let i = 0; i < props.identifiers.length; i++) {\n identifierSizes.set(props.identifiers[i], []);\n }\n\n // set height values\n refs.filter((ref) => ref.current).forEach(({ current }) => {\n // get height for each element\n props.identifiers.forEach((id) => {\n const element = current.querySelector(id);\n const prevHeights = identifierSizes.get(id);\n let height: number | null = null;\n\n if (element) {\n element.removeAttribute('style');\n height = element.getBoundingClientRect().height;\n }\n\n if (prevHeights) {\n identifierSizes.set(id, [...prevHeights, height]);\n }\n });\n });\n\n // set heights for each identifier\n identifierSizes.forEach((value, key) => {\n setHeights(value, key, refs);\n });\n };\n\n const resizeHandler = resize(sheetRefs);\n resizeHandler();\n }, [props.identifiers, resizeState, setHeights, sheetRefs, fontsLoaded]);\n\n const triggerCalculation = useCallback(() => {\n setSheetRefs((prev) =>\n Array(props.listLength)\n .fill(null)\n .map((_, i) => prev[i] || createRef())\n );\n }, [props.listLength]);\n\n useEffect(() => {\n setSheetRefs((prev) =>\n Array(props.listLength)\n .fill(null)\n .map((_, i) => prev[i] || createRef())\n );\n }, [props.listLength]);\n\n return {\n sheetRefs,\n triggerCalculation,\n };\n};\n"],"names":["useFontsLoaded","_a","useState","allFontsLoaded","setFontLoaded","useEffect","waitForFonts","_b","document","fonts","ready","then","undefined","useResizeThrottle","timeout","callback","throttledState","setThrottledState","timeoutRef","useRef","lastState","clientWidth","clientHeight","innerHeight","innerWidth","updateResizeState","window","current","documentElement","handleResize","setTimeout","addEventListener","removeEventListener","useEqualSheetHeight","props","defaultResponsive","__assign","small","medium","semilarge","large","xlarge","responsive","mqs","currentMq","useMediaQuery","itemsPerRow","sheetRefs","setSheetRefs","fontsLoaded","setHeights","useCallback","heights","selector","refs","makeRows","result","_","index","arr","push","slice","heightsInRows","reduce","forEach","rowHeights","y","validHeights","filter","height","highest","sort","vA","vB","length","x","el","querySelector","setAttribute","concat","resizeState","resizeThrottleTimeout","resize","identifierSizes","Map","i","identifiers","set","ref","id","element","prevHeights","get","removeAttribute","getBoundingClientRect","value","key","resizeHandler","triggerCalculation","prev","Array","listLength","fill","map","createRef"],"mappings":";;;;AAEO,IAAMA,cAAc,GAAG,YAAA;AACpB,EAAA,IAAAC,EAAA,GAAkCC,QAAQ,CAC5C,KAD4C,CAA1C;AAAA,MAACC,cAAc,GAAAF,EAAA,CAAA,CAAA,CAAf;AAAA,MAAiBG,aAAa,GAAAH,EAAA,CAAA,CAAA,CAA9B,CAAA;;AAINI,EAAAA,SAAS,CAAC,YAAA;AACN,IAAMC,IAAAA,YAAY,GAAG,YAAA;;;AACjB,MAAAC,CAAAA,EAAA,GAAA,CAACN,EAAA,GAAAO,QAAgB,KAAhB,IAAA,IAAAA,QAAQ,KAAR,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,QAAQ,CAAUC,KAAnB,MAA0B,IAA1B,IAA0BR,EAAA,KAAA,KAAA,CAA1B,GAA0B,KAAA,CAA1B,GAA0BA,EAAA,CAAAS,KAA1B,MAAiC,IAAjC,IAAiCH,EAAA,KAAA,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