@blateral/b.kit 2.3.0-beta.1.3 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/base/icons/Icons.d.ts +66 -0
- package/lib/components/base/icons/Icons.d.ts.map +1 -0
- package/{types → lib}/components/fields/FilterField.d.ts.map +1 -1
- package/lib/components/sections/NumberList.d.ts +36 -0
- package/lib/components/sections/NumberList.d.ts.map +1 -0
- package/{types → lib}/components/sections/header/Header.d.ts +3 -3
- package/lib/components/sections/header/Header.d.ts.map +1 -0
- package/lib/components/sections/navigation/menu/variations/MenuFlyout.d.ts.map +1 -0
- package/lib/components/sections/navigation/menu/variations/MenuLarge.d.ts.map +1 -0
- package/{types → lib}/components/typography/Callout.d.ts +2 -2
- package/lib/components/typography/Callout.d.ts.map +1 -0
- package/lib/index.d.ts +158 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.es.js +2 -0
- package/lib/index.es.js.map +1 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -0
- package/{types → lib}/utils/styles.d.ts +8 -1
- package/lib/utils/styles.d.ts.map +1 -0
- package/{types → lib}/utils/useEqualSheetHeight.d.ts +9 -2
- package/lib/utils/useEqualSheetHeight.d.ts.map +1 -0
- package/{types → lib}/utils/useMediaQuery.d.ts +4 -0
- package/{types → lib}/utils/useMediaQuery.d.ts.map +1 -1
- package/package.json +5 -19
- package/base/package.json +0 -7
- package/blocks/package.json +0 -7
- package/buttons/package.json +0 -7
- package/cjs/Actions-6dd616e0.js +0 -2
- package/cjs/Actions-6dd616e0.js.map +0 -1
- package/cjs/Bdot-d898ba3b.js +0 -2
- package/cjs/Bdot-d898ba3b.js.map +0 -1
- package/cjs/Button-72747f63.js +0 -2
- package/cjs/Button-72747f63.js.map +0 -1
- package/cjs/ButtonGhost-046437c5.js +0 -2
- package/cjs/ButtonGhost-046437c5.js.map +0 -1
- package/cjs/Callout-2713f870.js +0 -2
- package/cjs/Callout-2713f870.js.map +0 -1
- package/cjs/Checkbox-14000bf0.js +0 -2
- package/cjs/Checkbox-14000bf0.js.map +0 -1
- package/cjs/ClockFilled-2483aa4a.js +0 -2
- package/cjs/ClockFilled-2483aa4a.js.map +0 -1
- package/cjs/Control-eead1a4c.js +0 -2
- package/cjs/Control-eead1a4c.js.map +0 -1
- package/cjs/Copy-e860efe7.js +0 -2
- package/cjs/Copy-e860efe7.js.map +0 -1
- package/cjs/FilterField-497e998f.js +0 -2
- package/cjs/FilterField-497e998f.js.map +0 -1
- package/cjs/Image-d9681be0.js +0 -2
- package/cjs/Image-d9681be0.js.map +0 -1
- package/cjs/LanguageSwitcher-47e25e95.js +0 -2
- package/cjs/LanguageSwitcher-47e25e95.js.map +0 -1
- package/cjs/LibThemeProvider-fb99fd6d.js +0 -2
- package/cjs/LibThemeProvider-fb99fd6d.js.map +0 -1
- package/cjs/Link-70143bb7.js +0 -2
- package/cjs/Link-70143bb7.js.map +0 -1
- package/cjs/Navigation-3f5d6088.js +0 -2
- package/cjs/Navigation-3f5d6088.js.map +0 -1
- package/cjs/POICard-9911980e.js +0 -2
- package/cjs/POICard-9911980e.js.map +0 -1
- package/cjs/Pointer-3588eadf.js +0 -2
- package/cjs/Pointer-3588eadf.js.map +0 -1
- package/cjs/SocialList-da77e994.js +0 -2
- package/cjs/SocialList-da77e994.js.map +0 -1
- package/cjs/TableBlock-080c9c2e.js +0 -2
- package/cjs/TableBlock-080c9c2e.js.map +0 -1
- package/cjs/VideoCard-1fa209fc.js +0 -2
- package/cjs/VideoCard-1fa209fc.js.map +0 -1
- package/cjs/Wrapper-3b9c9e89.js +0 -2
- package/cjs/Wrapper-3b9c9e89.js.map +0 -1
- package/cjs/arrays-c272ed59.js +0 -2
- package/cjs/arrays-c272ed59.js.map +0 -1
- package/cjs/base.js +0 -2
- package/cjs/base.js.map +0 -1
- package/cjs/blocks.js +0 -2
- package/cjs/blocks.js.map +0 -1
- package/cjs/buttons.js +0 -2
- package/cjs/buttons.js.map +0 -1
- package/cjs/clamp-bd21d587.js +0 -2
- package/cjs/clamp-bd21d587.js.map +0 -1
- package/cjs/concat-f387d848.js +0 -2
- package/cjs/concat-f387d848.js.map +0 -1
- package/cjs/cookies.js +0 -2
- package/cjs/cookies.js.map +0 -1
- package/cjs/fields.js +0 -2
- package/cjs/fields.js.map +0 -1
- package/cjs/footer.js +0 -2
- package/cjs/footer.js.map +0 -1
- package/cjs/hexRgbConverter-91b28aea.js +0 -2
- package/cjs/hexRgbConverter-91b28aea.js.map +0 -1
- package/cjs/hooks.js +0 -2
- package/cjs/hooks.js.map +0 -1
- package/cjs/icons.js +0 -2
- package/cjs/icons.js.map +0 -1
- package/cjs/index.js +0 -2
- package/cjs/index.js.map +0 -1
- package/cjs/navigation-bf154e6e.js +0 -2
- package/cjs/navigation-bf154e6e.js.map +0 -1
- package/cjs/navigation.js +0 -2
- package/cjs/navigation.js.map +0 -1
- package/cjs/sections.js +0 -2
- package/cjs/sections.js.map +0 -1
- package/cjs/sections_news.js +0 -2
- package/cjs/sections_news.js.map +0 -1
- package/cjs/statusFormatter-0393122b.js +0 -2
- package/cjs/statusFormatter-0393122b.js.map +0 -1
- package/cjs/styles-0f1a0aea.js +0 -2
- package/cjs/styles-0f1a0aea.js.map +0 -1
- package/cjs/typography.js +0 -2
- package/cjs/typography.js.map +0 -1
- package/cjs/urlParams-1d03b5a6.js +0 -2
- package/cjs/urlParams-1d03b5a6.js.map +0 -1
- package/cjs/useCookieConsent-0bf94751.js +0 -2
- package/cjs/useCookieConsent-0bf94751.js.map +0 -1
- package/cjs/useGeolocation-4d38150b.js +0 -2
- package/cjs/useGeolocation-4d38150b.js.map +0 -1
- package/cjs/useIE-aef9decc.js +0 -2
- package/cjs/useIE-aef9decc.js.map +0 -1
- package/cjs/useMediaQuery-d4f81f88.js +0 -2
- package/cjs/useMediaQuery-d4f81f88.js.map +0 -1
- package/cjs/useMounted-0bba9869.js +0 -2
- package/cjs/useMounted-0bba9869.js.map +0 -1
- package/cjs/useObserverSupport-5ab320dd.js +0 -2
- package/cjs/useObserverSupport-5ab320dd.js.map +0 -1
- package/cjs/useUpdateEffect-4d233e2c.js +0 -2
- package/cjs/useUpdateEffect-4d233e2c.js.map +0 -1
- package/cookies/package.json +0 -7
- package/esm/Actions-73e13c48.js +0 -57
- package/esm/Actions-73e13c48.js.map +0 -1
- package/esm/Bdot-30b047cc.js +0 -24
- package/esm/Bdot-30b047cc.js.map +0 -1
- package/esm/Button-678be396.js +0 -115
- package/esm/Button-678be396.js.map +0 -1
- package/esm/ButtonGhost-6673a07e.js +0 -112
- package/esm/ButtonGhost-6673a07e.js.map +0 -1
- package/esm/Callout-439308f6.js +0 -99
- package/esm/Callout-439308f6.js.map +0 -1
- package/esm/Checkbox-a365d733.js +0 -135
- package/esm/Checkbox-a365d733.js.map +0 -1
- package/esm/ClockFilled-8784ddac.js +0 -1793
- package/esm/ClockFilled-8784ddac.js.map +0 -1
- package/esm/Control-e61c9395.js +0 -52
- package/esm/Control-e61c9395.js.map +0 -1
- package/esm/Copy-3444d005.js +0 -270
- package/esm/Copy-3444d005.js.map +0 -1
- package/esm/FilterField-f423b4d1.js +0 -4907
- package/esm/FilterField-f423b4d1.js.map +0 -1
- package/esm/Image-82417953.js +0 -193
- package/esm/Image-82417953.js.map +0 -1
- package/esm/LanguageSwitcher-a53094d3.js +0 -70
- package/esm/LanguageSwitcher-a53094d3.js.map +0 -1
- package/esm/LibThemeProvider-90a5375f.js +0 -115
- package/esm/LibThemeProvider-90a5375f.js.map +0 -1
- package/esm/Link-ee8a48ed.js +0 -60
- package/esm/Link-ee8a48ed.js.map +0 -1
- package/esm/Navigation-ece0ff0d.js +0 -1664
- package/esm/Navigation-ece0ff0d.js.map +0 -1
- package/esm/POICard-d8832988.js +0 -917
- package/esm/POICard-d8832988.js.map +0 -1
- package/esm/Pointer-da4d0977.js +0 -111
- package/esm/Pointer-da4d0977.js.map +0 -1
- package/esm/SocialList-7c00c70e.js +0 -61
- package/esm/SocialList-7c00c70e.js.map +0 -1
- package/esm/TableBlock-0bbde956.js +0 -218
- package/esm/TableBlock-0bbde956.js.map +0 -1
- package/esm/VideoCard-2557407b.js +0 -187
- package/esm/VideoCard-2557407b.js.map +0 -1
- package/esm/Wrapper-f4a70e30.js +0 -420
- package/esm/Wrapper-f4a70e30.js.map +0 -1
- package/esm/arrays-65b644ef.js +0 -17
- package/esm/arrays-65b644ef.js.map +0 -1
- package/esm/base.js +0 -10
- package/esm/base.js.map +0 -1
- package/esm/blocks.js +0 -22
- package/esm/blocks.js.map +0 -1
- package/esm/buttons.js +0 -12
- package/esm/buttons.js.map +0 -1
- package/esm/clamp-12d37b65.js +0 -10
- package/esm/clamp-12d37b65.js.map +0 -1
- package/esm/concat-ab3c66f2.js +0 -40
- package/esm/concat-ab3c66f2.js.map +0 -1
- package/esm/cookies.js +0 -270
- package/esm/cookies.js.map +0 -1
- package/esm/fields.js +0 -187
- package/esm/fields.js.map +0 -1
- package/esm/footer.js +0 -300
- package/esm/footer.js.map +0 -1
- package/esm/hexRgbConverter-edb91624.js +0 -36
- package/esm/hexRgbConverter-edb91624.js.map +0 -1
- package/esm/hooks.js +0 -527
- package/esm/hooks.js.map +0 -1
- package/esm/icons.js +0 -4
- package/esm/icons.js.map +0 -1
- package/esm/index.js +0 -7
- package/esm/index.js.map +0 -1
- package/esm/navigation-49280321.js +0 -132
- package/esm/navigation-49280321.js.map +0 -1
- package/esm/navigation.js +0 -159
- package/esm/navigation.js.map +0 -1
- package/esm/sections.js +0 -7126
- package/esm/sections.js.map +0 -1
- package/esm/sections_news.js +0 -1018
- package/esm/sections_news.js.map +0 -1
- package/esm/statusFormatter-9be0fbff.js +0 -255
- package/esm/statusFormatter-9be0fbff.js.map +0 -1
- package/esm/styles-5f78e59d.js +0 -462
- package/esm/styles-5f78e59d.js.map +0 -1
- package/esm/typography.js +0 -11
- package/esm/typography.js.map +0 -1
- package/esm/urlParams-882563ce.js +0 -297
- package/esm/urlParams-882563ce.js.map +0 -1
- package/esm/useCookieConsent-db86e5cb.js +0 -339
- package/esm/useCookieConsent-db86e5cb.js.map +0 -1
- package/esm/useGeolocation-c81e3efc.js +0 -471
- package/esm/useGeolocation-c81e3efc.js.map +0 -1
- package/esm/useIE-a9c56989.js +0 -15
- package/esm/useIE-a9c56989.js.map +0 -1
- package/esm/useMediaQuery-43629cbb.js +0 -109
- package/esm/useMediaQuery-43629cbb.js.map +0 -1
- package/esm/useMounted-1e4cc87b.js +0 -12
- package/esm/useMounted-1e4cc87b.js.map +0 -1
- package/esm/useObserverSupport-02bce7f5.js +0 -19
- package/esm/useObserverSupport-02bce7f5.js.map +0 -1
- package/esm/useUpdateEffect-824c0c84.js +0 -18
- package/esm/useUpdateEffect-824c0c84.js.map +0 -1
- package/fields/package.json +0 -7
- package/footer/package.json +0 -7
- package/hooks/package.json +0 -7
- package/icons/package.json +0 -7
- package/navigation/package.json +0 -7
- package/sections/news/package.json +0 -7
- package/sections/package.json +0 -7
- package/types/base.d.ts +0 -5
- package/types/base.d.ts.map +0 -1
- package/types/blocks.d.ts +0 -18
- package/types/blocks.d.ts.map +0 -1
- package/types/buttons.d.ts +0 -6
- package/types/buttons.d.ts.map +0 -1
- package/types/components/sections/NumberList.d.ts +0 -31
- package/types/components/sections/NumberList.d.ts.map +0 -1
- package/types/components/sections/header/Header.d.ts.map +0 -1
- package/types/components/sections/navigation/menu/variations/MenuFlyout.d.ts.map +0 -1
- package/types/components/sections/navigation/menu/variations/MenuLarge.d.ts.map +0 -1
- package/types/components/typography/Callout.d.ts.map +0 -1
- package/types/cookies.d.ts +0 -3
- package/types/cookies.d.ts.map +0 -1
- package/types/fields.d.ts +0 -14
- package/types/fields.d.ts.map +0 -1
- package/types/footer.d.ts +0 -4
- package/types/footer.d.ts.map +0 -1
- package/types/hooks.d.ts +0 -35
- package/types/hooks.d.ts.map +0 -1
- package/types/icons.d.ts +0 -66
- package/types/icons.d.ts.map +0 -1
- package/types/index.d.ts +0 -18
- package/types/index.d.ts.map +0 -1
- package/types/navigation.d.ts +0 -10
- package/types/navigation.d.ts.map +0 -1
- package/types/sections.d.ts +0 -42
- package/types/sections.d.ts.map +0 -1
- package/types/sections_news.d.ts +0 -10
- package/types/sections_news.d.ts.map +0 -1
- package/types/typography.d.ts +0 -6
- package/types/typography.d.ts.map +0 -1
- package/types/utils/styles.d.ts.map +0 -1
- package/types/utils/useEqualSheetHeight.d.ts.map +0 -1
- package/typography/package.json +0 -7
- /package/{types → lib}/components/base/Grid.d.ts +0 -0
- /package/{types → lib}/components/base/Grid.d.ts.map +0 -0
- /package/{types → lib}/components/base/Section.d.ts +0 -0
- /package/{types → lib}/components/base/Section.d.ts.map +0 -0
- /package/{types → lib}/components/base/Wrapper.d.ts +0 -0
- /package/{types → lib}/components/base/Wrapper.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/AngleDown.d.ts +0 -0
- /package/{types → lib}/components/base/icons/AngleDown.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/AngleLeft.d.ts +0 -0
- /package/{types → lib}/components/base/icons/AngleLeft.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/AngleRight.d.ts +0 -0
- /package/{types → lib}/components/base/icons/AngleRight.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/AngleUp.d.ts +0 -0
- /package/{types → lib}/components/base/icons/AngleUp.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/ArrowDown.d.ts +0 -0
- /package/{types → lib}/components/base/icons/ArrowDown.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/ArrowLeft.d.ts +0 -0
- /package/{types → lib}/components/base/icons/ArrowLeft.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/ArrowLeftGhost.d.ts +0 -0
- /package/{types → lib}/components/base/icons/ArrowLeftGhost.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/ArrowLeftRight.d.ts +0 -0
- /package/{types → lib}/components/base/icons/ArrowLeftRight.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/ArrowRight.d.ts +0 -0
- /package/{types → lib}/components/base/icons/ArrowRight.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/ArrowRightGhost.d.ts +0 -0
- /package/{types → lib}/components/base/icons/ArrowRightGhost.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/ArrowUp.d.ts +0 -0
- /package/{types → lib}/components/base/icons/ArrowUp.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/BoxArrowUpRight.d.ts +0 -0
- /package/{types → lib}/components/base/icons/BoxArrowUpRight.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/CalendarToday.d.ts +0 -0
- /package/{types → lib}/components/base/icons/CalendarToday.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/Category.d.ts +0 -0
- /package/{types → lib}/components/base/icons/Category.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/Check.d.ts +0 -0
- /package/{types → lib}/components/base/icons/Check.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/Clock.d.ts +0 -0
- /package/{types → lib}/components/base/icons/Clock.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/ClockFilled.d.ts +0 -0
- /package/{types → lib}/components/base/icons/ClockFilled.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/Computer.d.ts +0 -0
- /package/{types → lib}/components/base/icons/Computer.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/Cross.d.ts +0 -0
- /package/{types → lib}/components/base/icons/Cross.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/CrossSmall.d.ts +0 -0
- /package/{types → lib}/components/base/icons/CrossSmall.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/CurrentLocation.d.ts +0 -0
- /package/{types → lib}/components/base/icons/CurrentLocation.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/DateRange.d.ts +0 -0
- /package/{types → lib}/components/base/icons/DateRange.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/DeleteForever.d.ts +0 -0
- /package/{types → lib}/components/base/icons/DeleteForever.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/External.d.ts +0 -0
- /package/{types → lib}/components/base/icons/External.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/Filter.d.ts +0 -0
- /package/{types → lib}/components/base/icons/Filter.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/FlyTo.d.ts +0 -0
- /package/{types → lib}/components/base/icons/FlyTo.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/Info.d.ts +0 -0
- /package/{types → lib}/components/base/icons/Info.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/Language.d.ts +0 -0
- /package/{types → lib}/components/base/icons/Language.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/LocationPin.d.ts +0 -0
- /package/{types → lib}/components/base/icons/LocationPin.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/LocationSearch.d.ts +0 -0
- /package/{types → lib}/components/base/icons/LocationSearch.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/Magnifier.d.ts +0 -0
- /package/{types → lib}/components/base/icons/Magnifier.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/Mail.d.ts +0 -0
- /package/{types → lib}/components/base/icons/Mail.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/Map.d.ts +0 -0
- /package/{types → lib}/components/base/icons/Map.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/MenuBurger.d.ts +0 -0
- /package/{types → lib}/components/base/icons/MenuBurger.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/Minus.d.ts +0 -0
- /package/{types → lib}/components/base/icons/Minus.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/Money.d.ts +0 -0
- /package/{types → lib}/components/base/icons/Money.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/MyLocation.d.ts +0 -0
- /package/{types → lib}/components/base/icons/MyLocation.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/Person.d.ts +0 -0
- /package/{types → lib}/components/base/icons/Person.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/Phone.d.ts +0 -0
- /package/{types → lib}/components/base/icons/Phone.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/Place.d.ts +0 -0
- /package/{types → lib}/components/base/icons/Place.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/Play.d.ts +0 -0
- /package/{types → lib}/components/base/icons/Play.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/Plus.d.ts +0 -0
- /package/{types → lib}/components/base/icons/Plus.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/Route.d.ts +0 -0
- /package/{types → lib}/components/base/icons/Route.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/Star.d.ts +0 -0
- /package/{types → lib}/components/base/icons/Star.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/ToggleOff.d.ts +0 -0
- /package/{types → lib}/components/base/icons/ToggleOff.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/ToggleOn.d.ts +0 -0
- /package/{types → lib}/components/base/icons/ToggleOn.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/UnfoldMore.d.ts +0 -0
- /package/{types → lib}/components/base/icons/UnfoldMore.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/files/Excel.d.ts +0 -0
- /package/{types → lib}/components/base/icons/files/Excel.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/files/Image.d.ts +0 -0
- /package/{types → lib}/components/base/icons/files/Image.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/files/Pdf.d.ts +0 -0
- /package/{types → lib}/components/base/icons/files/Pdf.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/files/PowerPoint.d.ts +0 -0
- /package/{types → lib}/components/base/icons/files/PowerPoint.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/files/UploadFile.d.ts +0 -0
- /package/{types → lib}/components/base/icons/files/UploadFile.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/files/Word.d.ts +0 -0
- /package/{types → lib}/components/base/icons/files/Word.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/files/Zip.d.ts +0 -0
- /package/{types → lib}/components/base/icons/files/Zip.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/socials/Facebook.d.ts +0 -0
- /package/{types → lib}/components/base/icons/socials/Facebook.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/socials/Instagram.d.ts +0 -0
- /package/{types → lib}/components/base/icons/socials/Instagram.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/socials/LinkedIn.d.ts +0 -0
- /package/{types → lib}/components/base/icons/socials/LinkedIn.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/socials/Twitter.d.ts +0 -0
- /package/{types → lib}/components/base/icons/socials/Twitter.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/socials/Xing.d.ts +0 -0
- /package/{types → lib}/components/base/icons/socials/Xing.d.ts.map +0 -0
- /package/{types → lib}/components/base/icons/socials/Youtube.d.ts +0 -0
- /package/{types → lib}/components/base/icons/socials/Youtube.d.ts.map +0 -0
- /package/{types → lib}/components/base/nl2br.d.ts +0 -0
- /package/{types → lib}/components/base/nl2br.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/Actions.d.ts +0 -0
- /package/{types → lib}/components/blocks/Actions.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/Alert.d.ts +0 -0
- /package/{types → lib}/components/blocks/Alert.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/Bdot.d.ts +0 -0
- /package/{types → lib}/components/blocks/Bdot.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/CookieConsent.d.ts +0 -0
- /package/{types → lib}/components/blocks/CookieConsent.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/EventBlock.d.ts +0 -0
- /package/{types → lib}/components/blocks/EventBlock.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/Fact.d.ts +0 -0
- /package/{types → lib}/components/blocks/Fact.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/Feature.d.ts +0 -0
- /package/{types → lib}/components/blocks/Feature.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/Image.d.ts +0 -0
- /package/{types → lib}/components/blocks/Image.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/InfoList.d.ts +0 -0
- /package/{types → lib}/components/blocks/InfoList.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/IntroBlock.d.ts +0 -0
- /package/{types → lib}/components/blocks/IntroBlock.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/JobCard.d.ts +0 -0
- /package/{types → lib}/components/blocks/JobCard.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/LanguageSwitcher.d.ts +0 -0
- /package/{types → lib}/components/blocks/LanguageSwitcher.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/NavBlock.d.ts +0 -0
- /package/{types → lib}/components/blocks/NavBlock.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/NewsCard.d.ts +0 -0
- /package/{types → lib}/components/blocks/NewsCard.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/POICard.d.ts +0 -0
- /package/{types → lib}/components/blocks/POICard.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/POIFacts.d.ts +0 -0
- /package/{types → lib}/components/blocks/POIFacts.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/PriceTag.d.ts +0 -0
- /package/{types → lib}/components/blocks/PriceTag.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/PromotionCard.d.ts +0 -0
- /package/{types → lib}/components/blocks/PromotionCard.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/SocialList.d.ts +0 -0
- /package/{types → lib}/components/blocks/SocialList.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/TableBlock.d.ts +0 -0
- /package/{types → lib}/components/blocks/TableBlock.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/Tag.d.ts +0 -0
- /package/{types → lib}/components/blocks/Tag.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/Title.d.ts +0 -0
- /package/{types → lib}/components/blocks/Title.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/VideoBlock.d.ts +0 -0
- /package/{types → lib}/components/blocks/VideoBlock.d.ts.map +0 -0
- /package/{types → lib}/components/blocks/VideoCard.d.ts +0 -0
- /package/{types → lib}/components/blocks/VideoCard.d.ts.map +0 -0
- /package/{types → lib}/components/buttons/Button.d.ts +0 -0
- /package/{types → lib}/components/buttons/Button.d.ts.map +0 -0
- /package/{types → lib}/components/buttons/ButtonGhost.d.ts +0 -0
- /package/{types → lib}/components/buttons/ButtonGhost.d.ts.map +0 -0
- /package/{types → lib}/components/buttons/Control.d.ts +0 -0
- /package/{types → lib}/components/buttons/Control.d.ts.map +0 -0
- /package/{types → lib}/components/buttons/Pointer.d.ts +0 -0
- /package/{types → lib}/components/buttons/Pointer.d.ts.map +0 -0
- /package/{types → lib}/components/debug/DebugLines.d.ts +0 -0
- /package/{types → lib}/components/debug/DebugLines.d.ts.map +0 -0
- /package/{types → lib}/components/examples/hooks/ArrayHookExample.d.ts +0 -0
- /package/{types → lib}/components/examples/hooks/ArrayHookExample.d.ts.map +0 -0
- /package/{types → lib}/components/examples/hooks/IntervalHookExample.d.ts +0 -0
- /package/{types → lib}/components/examples/hooks/IntervalHookExample.d.ts.map +0 -0
- /package/{types → lib}/components/fields/Checkbox.d.ts +0 -0
- /package/{types → lib}/components/fields/Checkbox.d.ts.map +0 -0
- /package/{types → lib}/components/fields/CompactForm.d.ts +0 -0
- /package/{types → lib}/components/fields/CompactForm.d.ts.map +0 -0
- /package/{types → lib}/components/fields/Datepicker.d.ts +0 -0
- /package/{types → lib}/components/fields/Datepicker.d.ts.map +0 -0
- /package/{types → lib}/components/fields/FileUpload.d.ts +0 -0
- /package/{types → lib}/components/fields/FileUpload.d.ts.map +0 -0
- /package/{types → lib}/components/fields/FilterField.d.ts +0 -0
- /package/{types → lib}/components/fields/FormField.d.ts +0 -0
- /package/{types → lib}/components/fields/FormField.d.ts.map +0 -0
- /package/{types → lib}/components/fields/LocationField.d.ts +0 -0
- /package/{types → lib}/components/fields/LocationField.d.ts.map +0 -0
- /package/{types → lib}/components/fields/Radio.d.ts +0 -0
- /package/{types → lib}/components/fields/Radio.d.ts.map +0 -0
- /package/{types → lib}/components/fields/SearchInput.d.ts +0 -0
- /package/{types → lib}/components/fields/SearchInput.d.ts.map +0 -0
- /package/{types → lib}/components/fields/SelectDropdown.d.ts +0 -0
- /package/{types → lib}/components/fields/SelectDropdown.d.ts.map +0 -0
- /package/{types → lib}/components/fields/Textarea.d.ts +0 -0
- /package/{types → lib}/components/fields/Textarea.d.ts.map +0 -0
- /package/{types → lib}/components/fields/Textfield.d.ts +0 -0
- /package/{types → lib}/components/fields/Textfield.d.ts.map +0 -0
- /package/{types → lib}/components/sections/Accordion.d.ts +0 -0
- /package/{types → lib}/components/sections/Accordion.d.ts.map +0 -0
- /package/{types → lib}/components/sections/AlertList.d.ts +0 -0
- /package/{types → lib}/components/sections/AlertList.d.ts.map +0 -0
- /package/{types → lib}/components/sections/Article.d.ts +0 -0
- /package/{types → lib}/components/sections/Article.d.ts.map +0 -0
- /package/{types → lib}/components/sections/CallToAction.d.ts +0 -0
- /package/{types → lib}/components/sections/CallToAction.d.ts.map +0 -0
- /package/{types → lib}/components/sections/CardList.d.ts +0 -0
- /package/{types → lib}/components/sections/CardList.d.ts.map +0 -0
- /package/{types → lib}/components/sections/ComparisonSlider.d.ts +0 -0
- /package/{types → lib}/components/sections/ComparisonSlider.d.ts.map +0 -0
- /package/{types → lib}/components/sections/CrossPromotion.d.ts +0 -0
- /package/{types → lib}/components/sections/CrossPromotion.d.ts.map +0 -0
- /package/{types → lib}/components/sections/FactGrid.d.ts +0 -0
- /package/{types → lib}/components/sections/FactGrid.d.ts.map +0 -0
- /package/{types → lib}/components/sections/FactList.d.ts +0 -0
- /package/{types → lib}/components/sections/FactList.d.ts.map +0 -0
- /package/{types → lib}/components/sections/FeatureList.d.ts +0 -0
- /package/{types → lib}/components/sections/FeatureList.d.ts.map +0 -0
- /package/{types → lib}/components/sections/Gallery.d.ts +0 -0
- /package/{types → lib}/components/sections/Gallery.d.ts.map +0 -0
- /package/{types → lib}/components/sections/IconList.d.ts +0 -0
- /package/{types → lib}/components/sections/IconList.d.ts.map +0 -0
- /package/{types → lib}/components/sections/IndexList.d.ts +0 -0
- /package/{types → lib}/components/sections/IndexList.d.ts.map +0 -0
- /package/{types → lib}/components/sections/Intro.d.ts +0 -0
- /package/{types → lib}/components/sections/Intro.d.ts.map +0 -0
- /package/{types → lib}/components/sections/Map.d.ts +0 -0
- /package/{types → lib}/components/sections/Map.d.ts.map +0 -0
- /package/{types → lib}/components/sections/NavList.d.ts +0 -0
- /package/{types → lib}/components/sections/NavList.d.ts.map +0 -0
- /package/{types → lib}/components/sections/NewsletterForm.d.ts +0 -0
- /package/{types → lib}/components/sections/NewsletterForm.d.ts.map +0 -0
- /package/{types → lib}/components/sections/ParallaxBackground.d.ts +0 -0
- /package/{types → lib}/components/sections/ParallaxBackground.d.ts.map +0 -0
- /package/{types → lib}/components/sections/Poster.d.ts +0 -0
- /package/{types → lib}/components/sections/Poster.d.ts.map +0 -0
- /package/{types → lib}/components/sections/PriceList.d.ts +0 -0
- /package/{types → lib}/components/sections/PriceList.d.ts.map +0 -0
- /package/{types → lib}/components/sections/PriceTable.d.ts +0 -0
- /package/{types → lib}/components/sections/PriceTable.d.ts.map +0 -0
- /package/{types → lib}/components/sections/Quote.d.ts +0 -0
- /package/{types → lib}/components/sections/Quote.d.ts.map +0 -0
- /package/{types → lib}/components/sections/RawVideo.d.ts +0 -0
- /package/{types → lib}/components/sections/RawVideo.d.ts.map +0 -0
- /package/{types → lib}/components/sections/SimpleImage.d.ts +0 -0
- /package/{types → lib}/components/sections/SimpleImage.d.ts.map +0 -0
- /package/{types → lib}/components/sections/SocialWall.d.ts +0 -0
- /package/{types → lib}/components/sections/SocialWall.d.ts.map +0 -0
- /package/{types → lib}/components/sections/Table.d.ts +0 -0
- /package/{types → lib}/components/sections/Table.d.ts.map +0 -0
- /package/{types → lib}/components/sections/Teaser.d.ts +0 -0
- /package/{types → lib}/components/sections/Teaser.d.ts.map +0 -0
- /package/{types → lib}/components/sections/TeaserWide.d.ts +0 -0
- /package/{types → lib}/components/sections/TeaserWide.d.ts.map +0 -0
- /package/{types → lib}/components/sections/Timeline.d.ts +0 -0
- /package/{types → lib}/components/sections/Timeline.d.ts.map +0 -0
- /package/{types → lib}/components/sections/Video.d.ts +0 -0
- /package/{types → lib}/components/sections/Video.d.ts.map +0 -0
- /package/{types → lib}/components/sections/events/EventDetail.d.ts +0 -0
- /package/{types → lib}/components/sections/events/EventDetail.d.ts.map +0 -0
- /package/{types → lib}/components/sections/events/EventList.d.ts +0 -0
- /package/{types → lib}/components/sections/events/EventList.d.ts.map +0 -0
- /package/{types → lib}/components/sections/events/EventOverview.d.ts +0 -0
- /package/{types → lib}/components/sections/events/EventOverview.d.ts.map +0 -0
- /package/{types → lib}/components/sections/footer/Footer.d.ts +0 -0
- /package/{types → lib}/components/sections/footer/Footer.d.ts.map +0 -0
- /package/{types → lib}/components/sections/footer/partials/FooterBottomBar.d.ts +0 -0
- /package/{types → lib}/components/sections/footer/partials/FooterBottomBar.d.ts.map +0 -0
- /package/{types → lib}/components/sections/footer/partials/FooterColumn.d.ts +0 -0
- /package/{types → lib}/components/sections/footer/partials/FooterColumn.d.ts.map +0 -0
- /package/{types → lib}/components/sections/footer/partials/index.d.ts +0 -0
- /package/{types → lib}/components/sections/footer/partials/index.d.ts.map +0 -0
- /package/{types → lib}/components/sections/footer/skeletons/FooterArticle.d.ts +0 -0
- /package/{types → lib}/components/sections/footer/skeletons/FooterArticle.d.ts.map +0 -0
- /package/{types → lib}/components/sections/footer/skeletons/FooterBottomGrid.d.ts +0 -0
- /package/{types → lib}/components/sections/footer/skeletons/FooterBottomGrid.d.ts.map +0 -0
- /package/{types → lib}/components/sections/footer/skeletons/index.d.ts +0 -0
- /package/{types → lib}/components/sections/footer/skeletons/index.d.ts.map +0 -0
- /package/{types → lib}/components/sections/form/DynamicForm.d.ts +0 -0
- /package/{types → lib}/components/sections/form/DynamicForm.d.ts.map +0 -0
- /package/{types → lib}/components/sections/form/renderer/areaRenderer.d.ts +0 -0
- /package/{types → lib}/components/sections/form/renderer/areaRenderer.d.ts.map +0 -0
- /package/{types → lib}/components/sections/form/renderer/datepickerRenderer.d.ts +0 -0
- /package/{types → lib}/components/sections/form/renderer/datepickerRenderer.d.ts.map +0 -0
- /package/{types → lib}/components/sections/form/renderer/fieldGroupRenderer.d.ts +0 -0
- /package/{types → lib}/components/sections/form/renderer/fieldGroupRenderer.d.ts.map +0 -0
- /package/{types → lib}/components/sections/form/renderer/fieldRenderer.d.ts +0 -0
- /package/{types → lib}/components/sections/form/renderer/fieldRenderer.d.ts.map +0 -0
- /package/{types → lib}/components/sections/form/renderer/locationRenderer.d.ts +0 -0
- /package/{types → lib}/components/sections/form/renderer/locationRenderer.d.ts.map +0 -0
- /package/{types → lib}/components/sections/form/renderer/selectRenderer.d.ts +0 -0
- /package/{types → lib}/components/sections/form/renderer/selectRenderer.d.ts.map +0 -0
- /package/{types → lib}/components/sections/form/renderer/uploadRenderer.d.ts +0 -0
- /package/{types → lib}/components/sections/form/renderer/uploadRenderer.d.ts.map +0 -0
- /package/{types → lib}/components/sections/form/validators/areaValidator.d.ts +0 -0
- /package/{types → lib}/components/sections/form/validators/areaValidator.d.ts.map +0 -0
- /package/{types → lib}/components/sections/form/validators/datepickerValidator.d.ts +0 -0
- /package/{types → lib}/components/sections/form/validators/datepickerValidator.d.ts.map +0 -0
- /package/{types → lib}/components/sections/form/validators/fieldGroupValidator.d.ts +0 -0
- /package/{types → lib}/components/sections/form/validators/fieldGroupValidator.d.ts.map +0 -0
- /package/{types → lib}/components/sections/form/validators/fieldValidator.d.ts +0 -0
- /package/{types → lib}/components/sections/form/validators/fieldValidator.d.ts.map +0 -0
- /package/{types → lib}/components/sections/form/validators/locationValidator.d.ts +0 -0
- /package/{types → lib}/components/sections/form/validators/locationValidator.d.ts.map +0 -0
- /package/{types → lib}/components/sections/form/validators/selectValidator.d.ts +0 -0
- /package/{types → lib}/components/sections/form/validators/selectValidator.d.ts.map +0 -0
- /package/{types → lib}/components/sections/form/validators/uploadValidator.d.ts +0 -0
- /package/{types → lib}/components/sections/form/validators/uploadValidator.d.ts.map +0 -0
- /package/{types → lib}/components/sections/header/HeaderKenBurns.d.ts +0 -0
- /package/{types → lib}/components/sections/header/HeaderKenBurns.d.ts.map +0 -0
- /package/{types → lib}/components/sections/header/HeaderPoster.d.ts +0 -0
- /package/{types → lib}/components/sections/header/HeaderPoster.d.ts.map +0 -0
- /package/{types → lib}/components/sections/header/HeaderVideo.d.ts +0 -0
- /package/{types → lib}/components/sections/header/HeaderVideo.d.ts.map +0 -0
- /package/{types → lib}/components/sections/jobs/JobArticle.d.ts +0 -0
- /package/{types → lib}/components/sections/jobs/JobArticle.d.ts.map +0 -0
- /package/{types → lib}/components/sections/jobs/JobList.d.ts +0 -0
- /package/{types → lib}/components/sections/jobs/JobList.d.ts.map +0 -0
- /package/{types → lib}/components/sections/navigation/NavBar.d.ts +0 -0
- /package/{types → lib}/components/sections/navigation/NavBar.d.ts.map +0 -0
- /package/{types → lib}/components/sections/navigation/Navigation.d.ts +0 -0
- /package/{types → lib}/components/sections/navigation/Navigation.d.ts.map +0 -0
- /package/{types → lib}/components/sections/navigation/menu/Menu.d.ts +0 -0
- /package/{types → lib}/components/sections/navigation/menu/Menu.d.ts.map +0 -0
- /package/{types → lib}/components/sections/navigation/menu/variations/MenuFlyout.d.ts +0 -0
- /package/{types → lib}/components/sections/navigation/menu/variations/MenuLarge.d.ts +0 -0
- /package/{types → lib}/components/sections/navigation/partials/MenuFooter.d.ts +0 -0
- /package/{types → lib}/components/sections/navigation/partials/MenuFooter.d.ts.map +0 -0
- /package/{types → lib}/components/sections/navigation/partials/MenuHeader.d.ts +0 -0
- /package/{types → lib}/components/sections/navigation/partials/MenuHeader.d.ts.map +0 -0
- /package/{types → lib}/components/sections/navigation/partials/NavBarBottom.d.ts +0 -0
- /package/{types → lib}/components/sections/navigation/partials/NavBarBottom.d.ts.map +0 -0
- /package/{types → lib}/components/sections/navigation/partials/NavBarMain.d.ts +0 -0
- /package/{types → lib}/components/sections/navigation/partials/NavBarMain.d.ts.map +0 -0
- /package/{types → lib}/components/sections/navigation/partials/NavBarTop.d.ts +0 -0
- /package/{types → lib}/components/sections/navigation/partials/NavBarTop.d.ts.map +0 -0
- /package/{types → lib}/components/sections/navigation/partials/index.d.ts +0 -0
- /package/{types → lib}/components/sections/navigation/partials/index.d.ts.map +0 -0
- /package/{types → lib}/components/sections/navigation/skeletons/BarBreadCrumbs.d.ts +0 -0
- /package/{types → lib}/components/sections/navigation/skeletons/BarBreadCrumbs.d.ts.map +0 -0
- /package/{types → lib}/components/sections/navigation/skeletons/BarColumn.d.ts +0 -0
- /package/{types → lib}/components/sections/navigation/skeletons/BarColumn.d.ts.map +0 -0
- /package/{types → lib}/components/sections/navigation/skeletons/BarLogo.d.ts +0 -0
- /package/{types → lib}/components/sections/navigation/skeletons/BarLogo.d.ts.map +0 -0
- /package/{types → lib}/components/sections/navigation/skeletons/BarMenuToggle.d.ts +0 -0
- /package/{types → lib}/components/sections/navigation/skeletons/BarMenuToggle.d.ts.map +0 -0
- /package/{types → lib}/components/sections/navigation/skeletons/BarNavList.d.ts +0 -0
- /package/{types → lib}/components/sections/navigation/skeletons/BarNavList.d.ts.map +0 -0
- /package/{types → lib}/components/sections/navigation/skeletons/index.d.ts +0 -0
- /package/{types → lib}/components/sections/navigation/skeletons/index.d.ts.map +0 -0
- /package/{types → lib}/components/sections/news/NewsAuthorCard.d.ts +0 -0
- /package/{types → lib}/components/sections/news/NewsAuthorCard.d.ts.map +0 -0
- /package/{types → lib}/components/sections/news/NewsFooter.d.ts +0 -0
- /package/{types → lib}/components/sections/news/NewsFooter.d.ts.map +0 -0
- /package/{types → lib}/components/sections/news/NewsImages.d.ts +0 -0
- /package/{types → lib}/components/sections/news/NewsImages.d.ts.map +0 -0
- /package/{types → lib}/components/sections/news/NewsIntro.d.ts +0 -0
- /package/{types → lib}/components/sections/news/NewsIntro.d.ts.map +0 -0
- /package/{types → lib}/components/sections/news/NewsList.d.ts +0 -0
- /package/{types → lib}/components/sections/news/NewsList.d.ts.map +0 -0
- /package/{types → lib}/components/sections/news/NewsOverview.d.ts +0 -0
- /package/{types → lib}/components/sections/news/NewsOverview.d.ts.map +0 -0
- /package/{types → lib}/components/sections/news/NewsTable.d.ts +0 -0
- /package/{types → lib}/components/sections/news/NewsTable.d.ts.map +0 -0
- /package/{types → lib}/components/sections/news/NewsText.d.ts +0 -0
- /package/{types → lib}/components/sections/news/NewsText.d.ts.map +0 -0
- /package/{types → lib}/components/sections/news/NewsVideo.d.ts +0 -0
- /package/{types → lib}/components/sections/news/NewsVideo.d.ts.map +0 -0
- /package/{types → lib}/components/sections/pois/PointOfInterestDetail.d.ts +0 -0
- /package/{types → lib}/components/sections/pois/PointOfInterestDetail.d.ts.map +0 -0
- /package/{types → lib}/components/sections/pois/PointOfInterestMap.d.ts +0 -0
- /package/{types → lib}/components/sections/pois/PointOfInterestMap.d.ts.map +0 -0
- /package/{types → lib}/components/sections/pois/PointOfInterestOverview.d.ts +0 -0
- /package/{types → lib}/components/sections/pois/PointOfInterestOverview.d.ts.map +0 -0
- /package/{types → lib}/components/typography/Copy.d.ts +0 -0
- /package/{types → lib}/components/typography/Copy.d.ts.map +0 -0
- /package/{types → lib}/components/typography/Heading.d.ts +0 -0
- /package/{types → lib}/components/typography/Heading.d.ts.map +0 -0
- /package/{types → lib}/components/typography/Link.d.ts +0 -0
- /package/{types → lib}/components/typography/Link.d.ts.map +0 -0
- /package/{types → lib}/utils/LibThemeProvider.d.ts +0 -0
- /package/{types → lib}/utils/LibThemeProvider.d.ts.map +0 -0
- /package/{types → lib}/utils/arrays.d.ts +0 -0
- /package/{types → lib}/utils/arrays.d.ts.map +0 -0
- /package/{types → lib}/utils/backgroundImage.d.ts +0 -0
- /package/{types → lib}/utils/backgroundImage.d.ts.map +0 -0
- /package/{types → lib}/utils/clamp.d.ts +0 -0
- /package/{types → lib}/utils/clamp.d.ts.map +0 -0
- /package/{types → lib}/utils/concat.d.ts +0 -0
- /package/{types → lib}/utils/concat.d.ts.map +0 -0
- /package/{types → lib}/utils/cookie-consent/cookie.d.ts +0 -0
- /package/{types → lib}/utils/cookie-consent/cookie.d.ts.map +0 -0
- /package/{types → lib}/utils/cookie-consent/mutations.d.ts +0 -0
- /package/{types → lib}/utils/cookie-consent/mutations.d.ts.map +0 -0
- /package/{types → lib}/utils/cookie-consent/useCookieConsent.d.ts +0 -0
- /package/{types → lib}/utils/cookie-consent/useCookieConsent.d.ts.map +0 -0
- /package/{types → lib}/utils/dataURI.d.ts +0 -0
- /package/{types → lib}/utils/dataURI.d.ts.map +0 -0
- /package/{types → lib}/utils/escape.d.ts +0 -0
- /package/{types → lib}/utils/escape.d.ts.map +0 -0
- /package/{types → lib}/utils/filters.d.ts +0 -0
- /package/{types → lib}/utils/filters.d.ts.map +0 -0
- /package/{types → lib}/utils/fontLoading.d.ts +0 -0
- /package/{types → lib}/utils/fontLoading.d.ts.map +0 -0
- /package/{types → lib}/utils/formFieldText.d.ts +0 -0
- /package/{types → lib}/utils/formFieldText.d.ts.map +0 -0
- /package/{types → lib}/utils/getLinkIcon.d.ts +0 -0
- /package/{types → lib}/utils/getLinkIcon.d.ts.map +0 -0
- /package/{types → lib}/utils/hexRgbConverter.d.ts +0 -0
- /package/{types → lib}/utils/hexRgbConverter.d.ts.map +0 -0
- /package/{types → lib}/utils/menuHooks.d.ts +0 -0
- /package/{types → lib}/utils/menuHooks.d.ts.map +0 -0
- /package/{types → lib}/utils/navigation.d.ts +0 -0
- /package/{types → lib}/utils/navigation.d.ts.map +0 -0
- /package/{types → lib}/utils/statusFormatter.d.ts +0 -0
- /package/{types → lib}/utils/statusFormatter.d.ts.map +0 -0
- /package/{types → lib}/utils/storyHelpers.d.ts +0 -0
- /package/{types → lib}/utils/storyHelpers.d.ts.map +0 -0
- /package/{types → lib}/utils/structuredData.d.ts +0 -0
- /package/{types → lib}/utils/structuredData.d.ts.map +0 -0
- /package/{types → lib}/utils/types.d.ts +0 -0
- /package/{types → lib}/utils/types.d.ts.map +0 -0
- /package/{types → lib}/utils/urlParams.d.ts +0 -0
- /package/{types → lib}/utils/urlParams.d.ts.map +0 -0
- /package/{types → lib}/utils/useArray.d.ts +0 -0
- /package/{types → lib}/utils/useArray.d.ts.map +0 -0
- /package/{types → lib}/utils/useDebounce.d.ts +0 -0
- /package/{types → lib}/utils/useDebounce.d.ts.map +0 -0
- /package/{types → lib}/utils/useFontsLoaded.d.ts +0 -0
- /package/{types → lib}/utils/useFontsLoaded.d.ts.map +0 -0
- /package/{types → lib}/utils/useGeolocation.d.ts +0 -0
- /package/{types → lib}/utils/useGeolocation.d.ts.map +0 -0
- /package/{types → lib}/utils/useIE.d.ts +0 -0
- /package/{types → lib}/utils/useIE.d.ts.map +0 -0
- /package/{types → lib}/utils/useImgPreload.d.ts +0 -0
- /package/{types → lib}/utils/useImgPreload.d.ts.map +0 -0
- /package/{types → lib}/utils/useInterval.d.ts +0 -0
- /package/{types → lib}/utils/useInterval.d.ts.map +0 -0
- /package/{types → lib}/utils/useItemHeight.d.ts +0 -0
- /package/{types → lib}/utils/useItemHeight.d.ts.map +0 -0
- /package/{types → lib}/utils/useLazyInput.d.ts +0 -0
- /package/{types → lib}/utils/useLazyInput.d.ts.map +0 -0
- /package/{types → lib}/utils/useLeafletMap.d.ts +0 -0
- /package/{types → lib}/utils/useLeafletMap.d.ts.map +0 -0
- /package/{types → lib}/utils/useMounted.d.ts +0 -0
- /package/{types → lib}/utils/useMounted.d.ts.map +0 -0
- /package/{types → lib}/utils/useObserverSupport.d.ts +0 -0
- /package/{types → lib}/utils/useObserverSupport.d.ts.map +0 -0
- /package/{types → lib}/utils/usePageScroll.d.ts +0 -0
- /package/{types → lib}/utils/usePageScroll.d.ts.map +0 -0
- /package/{types → lib}/utils/useParams.d.ts +0 -0
- /package/{types → lib}/utils/useParams.d.ts.map +0 -0
- /package/{types → lib}/utils/usePoster.d.ts +0 -0
- /package/{types → lib}/utils/usePoster.d.ts.map +0 -0
- /package/{types → lib}/utils/usePrevious.d.ts +0 -0
- /package/{types → lib}/utils/usePrevious.d.ts.map +0 -0
- /package/{types → lib}/utils/useResizeThrottle.d.ts +0 -0
- /package/{types → lib}/utils/useResizeThrottle.d.ts.map +0 -0
- /package/{types → lib}/utils/useScroll.d.ts +0 -0
- /package/{types → lib}/utils/useScroll.d.ts.map +0 -0
- /package/{types → lib}/utils/useScrollIntoView.d.ts +0 -0
- /package/{types → lib}/utils/useScrollIntoView.d.ts.map +0 -0
- /package/{types → lib}/utils/useScrollThrottle.d.ts +0 -0
- /package/{types → lib}/utils/useScrollThrottle.d.ts.map +0 -0
- /package/{types → lib}/utils/useScrollTo.d.ts +0 -0
- /package/{types → lib}/utils/useScrollTo.d.ts.map +0 -0
- /package/{types → lib}/utils/useTimeout.d.ts +0 -0
- /package/{types → lib}/utils/useTimeout.d.ts.map +0 -0
- /package/{types → lib}/utils/useTouch.d.ts +0 -0
- /package/{types → lib}/utils/useTouch.d.ts.map +0 -0
- /package/{types → lib}/utils/useUpdateEffect.d.ts +0 -0
- /package/{types → lib}/utils/useUpdateEffect.d.ts.map +0 -0
|
@@ -1,297 +0,0 @@
|
|
|
1
|
-
import { _ as __assign, e as __spreadArray } from './ClockFilled-8784ddac.js';
|
|
2
|
-
import { useState, useEffect, useRef, useCallback, createRef } from 'react';
|
|
3
|
-
import { u as useMediaQuery } from './useMediaQuery-43629cbb.js';
|
|
4
|
-
import { c as concat } from './concat-ab3c66f2.js';
|
|
5
|
-
|
|
6
|
-
var useFontsLoaded = function () {
|
|
7
|
-
var _a = useState(false),
|
|
8
|
-
allFontsLoaded = _a[0],
|
|
9
|
-
setFontLoaded = _a[1];
|
|
10
|
-
|
|
11
|
-
useEffect(function () {
|
|
12
|
-
var waitForFonts = function () {
|
|
13
|
-
var _a, _b;
|
|
14
|
-
|
|
15
|
-
(_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 () {
|
|
16
|
-
setFontLoaded(true);
|
|
17
|
-
});
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
if (document.fonts === undefined) setFontLoaded(undefined);else waitForFonts();
|
|
21
|
-
}, []);
|
|
22
|
-
return allFontsLoaded;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
var useResizeThrottle = function (timeout, callback) {
|
|
26
|
-
if (timeout === void 0) {
|
|
27
|
-
timeout = 0;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
var _a = useState(null),
|
|
31
|
-
throttledState = _a[0],
|
|
32
|
-
setThrottledState = _a[1];
|
|
33
|
-
|
|
34
|
-
var timeoutRef = useRef(-1);
|
|
35
|
-
var lastState = useRef({
|
|
36
|
-
clientWidth: 0,
|
|
37
|
-
clientHeight: 0,
|
|
38
|
-
innerHeight: 0,
|
|
39
|
-
innerWidth: 0
|
|
40
|
-
});
|
|
41
|
-
|
|
42
|
-
var updateResizeState = function () {
|
|
43
|
-
if (typeof window === 'undefined' || typeof document === 'undefined') {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
lastState.current = {
|
|
48
|
-
clientWidth: document.documentElement.clientWidth,
|
|
49
|
-
clientHeight: document.documentElement.clientHeight,
|
|
50
|
-
innerHeight: window.innerHeight,
|
|
51
|
-
innerWidth: window.innerWidth
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
useEffect(function () {
|
|
56
|
-
if (typeof window === 'undefined') return;
|
|
57
|
-
|
|
58
|
-
var handleResize = function () {
|
|
59
|
-
updateResizeState();
|
|
60
|
-
|
|
61
|
-
if (timeoutRef.current === -1) {
|
|
62
|
-
timeoutRef.current = window.setTimeout(function () {
|
|
63
|
-
callback === null || callback === void 0 ? void 0 : callback(lastState.current);
|
|
64
|
-
setThrottledState(lastState.current);
|
|
65
|
-
timeoutRef.current = -1;
|
|
66
|
-
}, timeout);
|
|
67
|
-
}
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
updateResizeState();
|
|
71
|
-
callback === null || callback === void 0 ? void 0 : callback(lastState.current);
|
|
72
|
-
setThrottledState(lastState.current);
|
|
73
|
-
window.addEventListener('resize', handleResize);
|
|
74
|
-
return function () {
|
|
75
|
-
window.removeEventListener('resize', handleResize);
|
|
76
|
-
};
|
|
77
|
-
}, [callback, timeout]);
|
|
78
|
-
return throttledState;
|
|
79
|
-
};
|
|
80
|
-
|
|
81
|
-
// useEqualSheetHeight
|
|
82
|
-
// ********************
|
|
83
|
-
|
|
84
|
-
var useEqualSheetHeight = function (props) {
|
|
85
|
-
var defaultResponsive = __assign({
|
|
86
|
-
small: 1,
|
|
87
|
-
medium: 1,
|
|
88
|
-
semilarge: 2,
|
|
89
|
-
large: 3,
|
|
90
|
-
xlarge: 3
|
|
91
|
-
}, props.responsive);
|
|
92
|
-
|
|
93
|
-
var mqs = ['small', 'medium', 'semilarge', 'large', 'xlarge'];
|
|
94
|
-
var currentMq = useMediaQuery(mqs);
|
|
95
|
-
var itemsPerRow = currentMq ? defaultResponsive[currentMq] : defaultResponsive.small;
|
|
96
|
-
|
|
97
|
-
var _a = useState([]),
|
|
98
|
-
sheetRefs = _a[0],
|
|
99
|
-
setSheetRefs = _a[1];
|
|
100
|
-
|
|
101
|
-
var fontsLoaded = useFontsLoaded();
|
|
102
|
-
var setHeights = useCallback(function (heights, selector, refs) {
|
|
103
|
-
var makeRows = function (result, _, index, arr) {
|
|
104
|
-
// make new row after 3 items
|
|
105
|
-
if (index % itemsPerRow === 0) {
|
|
106
|
-
result.push(arr.slice(index, index + itemsPerRow));
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
return result;
|
|
110
|
-
}; // put item heights in 2-dimensional array to sort them in rows
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
var heightsInRows = heights.reduce(makeRows, []);
|
|
114
|
-
heightsInRows.forEach(function (rowHeights, y) {
|
|
115
|
-
var validHeights = rowHeights.filter(function (height) {
|
|
116
|
-
return height !== null;
|
|
117
|
-
});
|
|
118
|
-
var highest = validHeights.slice().sort(function (vA, vB) {
|
|
119
|
-
if (vA && vB) {
|
|
120
|
-
if (vA > vB) return -1;
|
|
121
|
-
return 1;
|
|
122
|
-
} else return 0;
|
|
123
|
-
})[0]; // set height of all items in row to the highest value
|
|
124
|
-
|
|
125
|
-
if (rowHeights.length > 1 && highest) {
|
|
126
|
-
for (var x = 0; x < rowHeights.length; x++) {
|
|
127
|
-
var index = x + y * itemsPerRow;
|
|
128
|
-
var el = refs[index].current.querySelector(selector);
|
|
129
|
-
el === null || el === void 0 ? void 0 : el.setAttribute('style', "height: ".concat(highest, "px"));
|
|
130
|
-
}
|
|
131
|
-
}
|
|
132
|
-
});
|
|
133
|
-
}, [itemsPerRow]); // Throttle viewport resize event for performance
|
|
134
|
-
|
|
135
|
-
var resizeState = useResizeThrottle(props.resizeThrottleTimeout !== undefined ? props.resizeThrottleTimeout : 400);
|
|
136
|
-
useEffect(function () {
|
|
137
|
-
var resize = function (refs) {
|
|
138
|
-
return function () {
|
|
139
|
-
var identifierSizes = new Map(); // create identifier map
|
|
140
|
-
|
|
141
|
-
for (var i = 0; i < props.identifiers.length; i++) {
|
|
142
|
-
identifierSizes.set(props.identifiers[i], []);
|
|
143
|
-
} // set height values
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
refs.filter(function (ref) {
|
|
147
|
-
return ref.current;
|
|
148
|
-
}).forEach(function (_a) {
|
|
149
|
-
var current = _a.current; // get height for each element
|
|
150
|
-
|
|
151
|
-
props.identifiers.forEach(function (id) {
|
|
152
|
-
var element = current.querySelector(id);
|
|
153
|
-
var prevHeights = identifierSizes.get(id);
|
|
154
|
-
var height = null;
|
|
155
|
-
|
|
156
|
-
if (element) {
|
|
157
|
-
element.removeAttribute('style');
|
|
158
|
-
height = element.getBoundingClientRect().height;
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
if (prevHeights) {
|
|
162
|
-
identifierSizes.set(id, __spreadArray(__spreadArray([], prevHeights, true), [height], false));
|
|
163
|
-
}
|
|
164
|
-
});
|
|
165
|
-
}); // set heights for each identifier
|
|
166
|
-
|
|
167
|
-
identifierSizes.forEach(function (value, key) {
|
|
168
|
-
setHeights(value, key, refs);
|
|
169
|
-
});
|
|
170
|
-
};
|
|
171
|
-
};
|
|
172
|
-
|
|
173
|
-
var resizeHandler = resize(sheetRefs);
|
|
174
|
-
resizeHandler();
|
|
175
|
-
}, [props.identifiers, resizeState, setHeights, sheetRefs, fontsLoaded]);
|
|
176
|
-
var triggerCalculation = useCallback(function () {
|
|
177
|
-
setSheetRefs(function (prev) {
|
|
178
|
-
return Array(props.listLength).fill(null).map(function (_, i) {
|
|
179
|
-
return prev[i] || createRef();
|
|
180
|
-
});
|
|
181
|
-
});
|
|
182
|
-
}, [props.listLength]);
|
|
183
|
-
useEffect(function () {
|
|
184
|
-
setSheetRefs(function (prev) {
|
|
185
|
-
return Array(props.listLength).fill(null).map(function (_, i) {
|
|
186
|
-
return prev[i] || createRef();
|
|
187
|
-
});
|
|
188
|
-
});
|
|
189
|
-
}, [props.listLength]);
|
|
190
|
-
return {
|
|
191
|
-
sheetRefs: sheetRefs,
|
|
192
|
-
triggerCalculation: triggerCalculation
|
|
193
|
-
};
|
|
194
|
-
};
|
|
195
|
-
|
|
196
|
-
var useScrollTo = function (fallbackScrollDuration) {
|
|
197
|
-
var startTime = useRef(-1);
|
|
198
|
-
var firstPos = useRef(0);
|
|
199
|
-
|
|
200
|
-
var _a = useState(undefined),
|
|
201
|
-
targetPos = _a[0],
|
|
202
|
-
setTargetPos = _a[1];
|
|
203
|
-
|
|
204
|
-
var outQuad = function (n) {
|
|
205
|
-
return n * (2 - n);
|
|
206
|
-
};
|
|
207
|
-
|
|
208
|
-
useEffect(function () {
|
|
209
|
-
if (targetPos === undefined) return;
|
|
210
|
-
|
|
211
|
-
if ('scrollBehavior' in document.documentElement.style) {
|
|
212
|
-
window.scroll({
|
|
213
|
-
top: targetPos,
|
|
214
|
-
left: 0,
|
|
215
|
-
behavior: 'smooth'
|
|
216
|
-
});
|
|
217
|
-
setTargetPos(undefined);
|
|
218
|
-
} else {
|
|
219
|
-
var animate_1 = function (timestamp) {
|
|
220
|
-
if (startTime.current === -1) {
|
|
221
|
-
startTime.current = timestamp || new Date().getTime();
|
|
222
|
-
}
|
|
223
|
-
|
|
224
|
-
var elapsed = timestamp - startTime.current;
|
|
225
|
-
var progress = elapsed / fallbackScrollDuration;
|
|
226
|
-
var easeProgress = +outQuad(progress).toFixed(2);
|
|
227
|
-
var newPos = targetPos === 0 ? firstPos.current - firstPos.current * easeProgress : firstPos.current + targetPos * easeProgress; // scroll to new position
|
|
228
|
-
|
|
229
|
-
window.scrollTo(0, newPos);
|
|
230
|
-
|
|
231
|
-
if (targetPos > 0 && newPos >= firstPos.current + targetPos || targetPos < 0 && newPos <= firstPos.current + targetPos || targetPos === 0 && newPos <= 0) {
|
|
232
|
-
cancelAnimationFrame(startTime.current);
|
|
233
|
-
startTime.current = -1;
|
|
234
|
-
setTargetPos(undefined);
|
|
235
|
-
} else {
|
|
236
|
-
window.requestAnimationFrame(animate_1);
|
|
237
|
-
}
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
cancelAnimationFrame(startTime.current);
|
|
241
|
-
startTime.current = -1;
|
|
242
|
-
firstPos.current = window.pageYOffset || document.documentElement.scrollTop;
|
|
243
|
-
window.requestAnimationFrame(animate_1);
|
|
244
|
-
}
|
|
245
|
-
}, [targetPos, fallbackScrollDuration]);
|
|
246
|
-
return setTargetPos;
|
|
247
|
-
};
|
|
248
|
-
|
|
249
|
-
var isSupported = typeof window !== 'undefined' && 'URLSearchParams' in window;
|
|
250
|
-
var getUrlParams = function () {
|
|
251
|
-
var obj = {};
|
|
252
|
-
if (!isSupported) return obj;
|
|
253
|
-
var paramsObj = Object.fromEntries(new URLSearchParams(window.location.search));
|
|
254
|
-
|
|
255
|
-
for (var param in paramsObj) {
|
|
256
|
-
var value = paramsObj[param];
|
|
257
|
-
|
|
258
|
-
if (typeof value === 'string') {
|
|
259
|
-
value = decodeURIComponent(value);
|
|
260
|
-
}
|
|
261
|
-
|
|
262
|
-
obj[param] = value;
|
|
263
|
-
}
|
|
264
|
-
|
|
265
|
-
return obj;
|
|
266
|
-
};
|
|
267
|
-
var setUrlParam = function (key, value) {
|
|
268
|
-
if (!isSupported || typeof value !== 'string' && typeof value !== 'number') {
|
|
269
|
-
return;
|
|
270
|
-
}
|
|
271
|
-
|
|
272
|
-
var params = getUrlParams();
|
|
273
|
-
params[key] = value.toString();
|
|
274
|
-
var currentParams = new URLSearchParams(window.location.search);
|
|
275
|
-
|
|
276
|
-
for (var param in params) {
|
|
277
|
-
currentParams.set(param, encodeURIComponent(params[param]));
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
updateUrl(currentParams);
|
|
281
|
-
};
|
|
282
|
-
var deleteUrlParam = function (key) {
|
|
283
|
-
if (!isSupported) return;
|
|
284
|
-
var currentParams = new URLSearchParams(window.location.search);
|
|
285
|
-
currentParams.delete(key);
|
|
286
|
-
updateUrl(currentParams);
|
|
287
|
-
};
|
|
288
|
-
|
|
289
|
-
var updateUrl = function (params) {
|
|
290
|
-
if (!params) return;
|
|
291
|
-
var queries = params.toString();
|
|
292
|
-
var url = queries ? concat([location.pathname, queries + location.hash], '?') : location.pathname + location.hash;
|
|
293
|
-
window.history.replaceState({}, '', url);
|
|
294
|
-
};
|
|
295
|
-
|
|
296
|
-
export { useFontsLoaded as a, useScrollTo as b, useResizeThrottle as c, deleteUrlParam as d, getUrlParams as g, setUrlParam as s, useEqualSheetHeight as u };
|
|
297
|
-
//# sourceMappingURL=urlParams-882563ce.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"urlParams-882563ce.js","sources":["../src/utils/useFontsLoaded.ts","../src/utils/useResizeThrottle.ts","../src/utils/useEqualSheetHeight.ts","../src/utils/useScrollTo.ts","../src/utils/urlParams.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","import { useEffect, useRef, useState } from 'react';\n\nexport const useScrollTo = (fallbackScrollDuration: number) => {\n const startTime = useRef<number>(-1);\n const firstPos = useRef<number>(0);\n const [targetPos, setTargetPos] = useState<number | undefined>(undefined);\n\n const outQuad = (n: number) => {\n return n * (2 - n);\n };\n\n useEffect(() => {\n if (targetPos === undefined) return;\n if ('scrollBehavior' in document.documentElement.style) {\n window.scroll({\n top: targetPos,\n left: 0,\n behavior: 'smooth',\n });\n setTargetPos(undefined);\n } else {\n const animate = (timestamp: number) => {\n if (startTime.current === -1) {\n startTime.current = timestamp || new Date().getTime();\n }\n\n const elapsed = timestamp - startTime.current;\n const progress = elapsed / fallbackScrollDuration;\n const easeProgress = +outQuad(progress).toFixed(2);\n\n const newPos =\n targetPos === 0\n ? firstPos.current - firstPos.current * easeProgress\n : firstPos.current + targetPos * easeProgress;\n\n // scroll to new position\n window.scrollTo(0, newPos);\n\n if (\n (targetPos > 0 && newPos >= firstPos.current + targetPos) ||\n (targetPos < 0 && newPos <= firstPos.current + targetPos) ||\n (targetPos === 0 && newPos <= 0)\n ) {\n cancelAnimationFrame(startTime.current);\n startTime.current = -1;\n setTargetPos(undefined);\n } else {\n window.requestAnimationFrame(animate);\n }\n };\n\n cancelAnimationFrame(startTime.current);\n startTime.current = -1;\n firstPos.current =\n window.pageYOffset || document.documentElement.scrollTop;\n window.requestAnimationFrame(animate);\n }\n }, [targetPos, fallbackScrollDuration]);\n\n return setTargetPos;\n};\n","import { concat } from './concat';\n\nconst isSupported =\n typeof window !== 'undefined' && 'URLSearchParams' in window;\n\nexport const getUrlParams = () => {\n const obj: Record<string, string> = {};\n if (!isSupported) return obj;\n\n const paramsObj = Object.fromEntries(\n new URLSearchParams(window.location.search)\n );\n\n for (const param in paramsObj) {\n let value = paramsObj[param];\n if (typeof value === 'string') {\n value = decodeURIComponent(value);\n }\n obj[param] = value;\n }\n\n return obj;\n};\n\nexport const setUrlParam = (key: string, value: string | number) => {\n if (\n !isSupported ||\n (typeof value !== 'string' && typeof value !== 'number')\n ) {\n return;\n }\n\n const params = getUrlParams();\n params[key] = value.toString();\n\n const currentParams = new URLSearchParams(window.location.search);\n for (const param in params) {\n currentParams.set(param, encodeURIComponent(params[param]));\n }\n\n updateUrl(currentParams);\n};\n\nexport const deleteUrlParam = (key: string) => {\n if (!isSupported) return;\n const currentParams = new URLSearchParams(window.location.search);\n currentParams.delete(key);\n\n updateUrl(currentParams);\n};\n\nconst updateUrl = (params: URLSearchParams) => {\n if (!params) return;\n\n const queries = params.toString();\n const url = queries\n ? concat([location.pathname, queries + location.hash], '?')\n : location.pathname + location.hash;\n\n window.history.replaceState({}, '', url);\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","useScrollTo","fallbackScrollDuration","startTime","firstPos","targetPos","setTargetPos","outQuad","n","style","scroll","top","left","behavior","animate_1","timestamp","Date","getTime","elapsed","progress","easeProgress","toFixed","newPos","scrollTo","cancelAnimationFrame","requestAnimationFrame","pageYOffset","scrollTop","isSupported","getUrlParams","obj","paramsObj","Object","fromEntries","URLSearchParams","location","search","param","decodeURIComponent","setUrlParam","params","toString","currentParams","encodeURIComponent","updateUrl","deleteUrlParam","delete","queries","url","pathname","hash","history","replaceState"],"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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AAMc,IAAAA,aAAa,GAAG,IAAIR,eAAJ,CAAoBhH,MAAM,CAACiH,QAAP,CAAgBC,MAApC,CAAtB,CAAA;AACAM,EAAAA,aAAa,CAACI,MAAd,CAAqBtD,GAArB,CAAA,CAAA;AAEAoD,EAAAA,SAAS,CAACF,aAAD,CAAT,CAAA;AACH,EANM;;AAQP,IAAME,SAAS,GAAG,UAACJ,MAAD,EAAwB;AACtC,EAAI,IAAA,CAACA,MAAL,EAAa,OAAA;AAEb,EAAA,IAAMO,OAAO,GAAGP,MAAM,CAACC,QAAP,EAAhB,CAAA;AACA,EAAMO,IAAAA,GAAG,GAAGD,OAAO,GACbxE,MAAM,CAAC,CAAC4D,QAAQ,CAACc,QAAV,EAAoBF,OAAO,GAAGZ,QAAQ,CAACe,IAAvC,CAAD,EAA+C,GAA/C,CADO,GAEbf,QAAQ,CAACc,QAAT,GAAoBd,QAAQ,CAACe,IAFnC,CAAA;AAIAhI,EAAAA,MAAM,CAACiI,OAAP,CAAeC,YAAf,CAA4B,EAA5B,EAAgC,EAAhC,EAAoCJ,GAApC,CAAA,CAAA;AACH,CATD;;;;"}
|
|
@@ -1,339 +0,0 @@
|
|
|
1
|
-
import { _ as __assign } from './ClockFilled-8784ddac.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-db86e5cb.js.map
|