@blateral/b.kit 2.2.5 → 2.3.0-beta.1.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/base/package.json +7 -0
- package/blocks/package.json +7 -0
- package/buttons/package.json +7 -0
- package/cookies/package.json +7 -0
- package/fields/package.json +7 -0
- package/hooks/package.json +7 -0
- package/icons/package.json +7 -0
- package/lib/cjs/Actions-487104b2.js +2 -0
- package/lib/cjs/Actions-487104b2.js.map +1 -0
- package/lib/cjs/Bdot-760e0e3a.js +2 -0
- package/lib/cjs/Bdot-760e0e3a.js.map +1 -0
- package/lib/cjs/ButtonGhost-e9644acd.js +2 -0
- package/lib/cjs/ButtonGhost-e9644acd.js.map +1 -0
- package/lib/cjs/Callout-2713f870.js +2 -0
- package/lib/cjs/Callout-2713f870.js.map +1 -0
- package/lib/cjs/Checkbox-14000bf0.js +2 -0
- package/lib/cjs/Checkbox-14000bf0.js.map +1 -0
- package/lib/cjs/ClockFilled-2483aa4a.js +2 -0
- package/lib/cjs/ClockFilled-2483aa4a.js.map +1 -0
- package/lib/cjs/Control-23259241.js +2 -0
- package/lib/cjs/Control-23259241.js.map +1 -0
- package/lib/cjs/Copy-e860efe7.js +2 -0
- package/lib/cjs/Copy-e860efe7.js.map +1 -0
- package/lib/cjs/FilterField-569d60e5.js +2 -0
- package/lib/cjs/FilterField-569d60e5.js.map +1 -0
- package/lib/cjs/LibThemeProvider-fb99fd6d.js +2 -0
- package/lib/cjs/LibThemeProvider-fb99fd6d.js.map +1 -0
- package/lib/cjs/Link-70143bb7.js +2 -0
- package/lib/cjs/Link-70143bb7.js.map +1 -0
- package/lib/cjs/Navigation-ebb27a9b.js +2 -0
- package/lib/cjs/Navigation-ebb27a9b.js.map +1 -0
- package/lib/cjs/SocialList-79ddf9d6.js +2 -0
- package/lib/cjs/SocialList-79ddf9d6.js.map +1 -0
- package/lib/cjs/Wrapper-3b9c9e89.js +2 -0
- package/lib/cjs/Wrapper-3b9c9e89.js.map +1 -0
- package/lib/cjs/arrays-c272ed59.js +2 -0
- package/lib/cjs/arrays-c272ed59.js.map +1 -0
- package/lib/cjs/base.js +2 -0
- package/lib/cjs/base.js.map +1 -0
- package/lib/cjs/blocks.js +2 -0
- package/lib/cjs/blocks.js.map +1 -0
- package/lib/cjs/buttons.js +2 -0
- package/lib/cjs/buttons.js.map +1 -0
- package/lib/cjs/clamp-bd21d587.js +2 -0
- package/lib/cjs/clamp-bd21d587.js.map +1 -0
- package/lib/cjs/concat-f387d848.js +2 -0
- package/lib/cjs/concat-f387d848.js.map +1 -0
- package/lib/cjs/cookies.js +2 -0
- package/lib/cjs/cookies.js.map +1 -0
- package/lib/cjs/fields.js +2 -0
- package/lib/cjs/fields.js.map +1 -0
- package/lib/cjs/hexRgbConverter-91b28aea.js +2 -0
- package/lib/cjs/hexRgbConverter-91b28aea.js.map +1 -0
- package/lib/cjs/hooks.js +2 -0
- package/lib/cjs/hooks.js.map +1 -0
- package/lib/cjs/icons.js +2 -0
- package/lib/cjs/icons.js.map +1 -0
- package/lib/cjs/index.js +2 -0
- package/lib/cjs/index.js.map +1 -0
- package/lib/cjs/navigation-bf154e6e.js +2 -0
- package/lib/cjs/navigation-bf154e6e.js.map +1 -0
- package/lib/cjs/navigation.js +2 -0
- package/lib/cjs/navigation.js.map +1 -0
- package/lib/cjs/sections.js +2 -0
- package/lib/cjs/sections.js.map +1 -0
- package/lib/cjs/styles-0f1a0aea.js +2 -0
- package/lib/cjs/styles-0f1a0aea.js.map +1 -0
- package/lib/cjs/typography.js +2 -0
- package/lib/cjs/typography.js.map +1 -0
- package/lib/cjs/urlParams-51ce7168.js +2 -0
- package/lib/cjs/urlParams-51ce7168.js.map +1 -0
- package/lib/cjs/useCookieConsent-0bf94751.js +2 -0
- package/lib/cjs/useCookieConsent-0bf94751.js.map +1 -0
- package/lib/cjs/useGeolocation-4d38150b.js +2 -0
- package/lib/cjs/useGeolocation-4d38150b.js.map +1 -0
- package/lib/cjs/useMediaQuery-d4f81f88.js +2 -0
- package/lib/cjs/useMediaQuery-d4f81f88.js.map +1 -0
- package/lib/cjs/useMounted-0bba9869.js +2 -0
- package/lib/cjs/useMounted-0bba9869.js.map +1 -0
- package/lib/cjs/useObserverSupport-5ab320dd.js +2 -0
- package/lib/cjs/useObserverSupport-5ab320dd.js.map +1 -0
- package/lib/cjs/useUpdateEffect-4d233e2c.js +2 -0
- package/lib/cjs/useUpdateEffect-4d233e2c.js.map +1 -0
- package/lib/esm/Actions-59bdbbf7.js +310 -0
- package/lib/esm/Actions-59bdbbf7.js.map +1 -0
- package/lib/esm/Bdot-a103eeef.js +1141 -0
- package/lib/esm/Bdot-a103eeef.js.map +1 -0
- package/lib/esm/ButtonGhost-422fd723.js +220 -0
- package/lib/esm/ButtonGhost-422fd723.js.map +1 -0
- package/lib/esm/Callout-03ad4c6e.js +99 -0
- package/lib/esm/Callout-03ad4c6e.js.map +1 -0
- package/lib/esm/Checkbox-76c2576b.js +135 -0
- package/lib/esm/Checkbox-76c2576b.js.map +1 -0
- package/lib/esm/ClockFilled-cff5900e.js +1793 -0
- package/lib/esm/ClockFilled-cff5900e.js.map +1 -0
- package/lib/esm/Control-52ff8784.js +157 -0
- package/lib/esm/Control-52ff8784.js.map +1 -0
- package/lib/esm/Copy-d2be4fb7.js +270 -0
- package/lib/esm/Copy-d2be4fb7.js.map +1 -0
- package/lib/esm/FilterField-b1a28df7.js +4906 -0
- package/lib/esm/FilterField-b1a28df7.js.map +1 -0
- package/lib/esm/LibThemeProvider-17012395.js +115 -0
- package/lib/esm/LibThemeProvider-17012395.js.map +1 -0
- package/lib/esm/Link-42f0b80f.js +60 -0
- package/lib/esm/Link-42f0b80f.js.map +1 -0
- package/lib/esm/Navigation-fae92776.js +1663 -0
- package/lib/esm/Navigation-fae92776.js.map +1 -0
- package/lib/esm/SocialList-385cde53.js +307 -0
- package/lib/esm/SocialList-385cde53.js.map +1 -0
- package/lib/esm/Wrapper-38c912a6.js +420 -0
- package/lib/esm/Wrapper-38c912a6.js.map +1 -0
- package/lib/esm/arrays-65b644ef.js +17 -0
- package/lib/esm/arrays-65b644ef.js.map +1 -0
- package/lib/esm/base.js +10 -0
- package/lib/esm/base.js.map +1 -0
- package/lib/esm/blocks.js +17 -0
- package/lib/esm/blocks.js.map +1 -0
- package/lib/esm/buttons.js +10 -0
- package/lib/esm/buttons.js.map +1 -0
- package/lib/esm/clamp-12d37b65.js +10 -0
- package/lib/esm/clamp-12d37b65.js.map +1 -0
- package/lib/esm/concat-ab3c66f2.js +40 -0
- package/lib/esm/concat-ab3c66f2.js.map +1 -0
- package/lib/esm/cookies.js +269 -0
- package/lib/esm/cookies.js.map +1 -0
- package/lib/esm/fields.js +186 -0
- package/lib/esm/fields.js.map +1 -0
- package/lib/esm/hexRgbConverter-edb91624.js +36 -0
- package/lib/esm/hexRgbConverter-edb91624.js.map +1 -0
- package/lib/esm/hooks.js +526 -0
- package/lib/esm/hooks.js.map +1 -0
- package/lib/esm/icons.js +4 -0
- package/lib/esm/icons.js.map +1 -0
- package/lib/esm/index.js +7 -0
- package/lib/esm/index.js.map +1 -0
- package/lib/esm/navigation-e135836f.js +132 -0
- package/lib/esm/navigation-e135836f.js.map +1 -0
- package/lib/esm/navigation.js +157 -0
- package/lib/esm/navigation.js.map +1 -0
- package/lib/esm/sections.js +8566 -0
- package/lib/esm/sections.js.map +1 -0
- package/lib/esm/styles-eca3acc8.js +462 -0
- package/lib/esm/styles-eca3acc8.js.map +1 -0
- package/lib/esm/typography.js +11 -0
- package/lib/esm/typography.js.map +1 -0
- package/lib/esm/urlParams-c16d7370.js +308 -0
- package/lib/esm/urlParams-c16d7370.js.map +1 -0
- package/lib/esm/useCookieConsent-cd262961.js +339 -0
- package/lib/esm/useCookieConsent-cd262961.js.map +1 -0
- package/lib/esm/useGeolocation-c99d76bd.js +471 -0
- package/lib/esm/useGeolocation-c99d76bd.js.map +1 -0
- package/lib/esm/useMediaQuery-07eee3f4.js +109 -0
- package/lib/esm/useMediaQuery-07eee3f4.js.map +1 -0
- package/lib/esm/useMounted-1e4cc87b.js +12 -0
- package/lib/esm/useMounted-1e4cc87b.js.map +1 -0
- package/lib/esm/useObserverSupport-02bce7f5.js +19 -0
- package/lib/esm/useObserverSupport-02bce7f5.js.map +1 -0
- package/lib/esm/useUpdateEffect-824c0c84.js +18 -0
- package/lib/esm/useUpdateEffect-824c0c84.js.map +1 -0
- package/lib/types/base.d.ts +5 -0
- package/lib/types/base.d.ts.map +1 -0
- package/lib/types/blocks.d.ts +18 -0
- package/lib/types/blocks.d.ts.map +1 -0
- package/lib/types/buttons.d.ts +6 -0
- package/lib/types/buttons.d.ts.map +1 -0
- package/lib/{components → types/components}/base/Grid.d.ts +0 -0
- package/lib/types/components/base/Grid.d.ts.map +1 -0
- package/lib/{components → types/components}/base/Section.d.ts +0 -0
- package/lib/types/components/base/Section.d.ts.map +1 -0
- package/lib/{components → types/components}/base/Wrapper.d.ts +0 -0
- package/lib/types/components/base/Wrapper.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/AngleDown.d.ts +0 -0
- package/lib/types/components/base/icons/AngleDown.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/AngleLeft.d.ts +0 -0
- package/lib/types/components/base/icons/AngleLeft.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/AngleRight.d.ts +0 -0
- package/lib/types/components/base/icons/AngleRight.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/AngleUp.d.ts +0 -0
- package/lib/types/components/base/icons/AngleUp.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/ArrowDown.d.ts +0 -0
- package/lib/types/components/base/icons/ArrowDown.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/ArrowLeft.d.ts +0 -0
- package/lib/types/components/base/icons/ArrowLeft.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/ArrowLeftGhost.d.ts +0 -0
- package/lib/types/components/base/icons/ArrowLeftGhost.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/ArrowLeftRight.d.ts +0 -0
- package/lib/types/components/base/icons/ArrowLeftRight.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/ArrowRight.d.ts +0 -0
- package/lib/types/components/base/icons/ArrowRight.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/ArrowRightGhost.d.ts +0 -0
- package/lib/types/components/base/icons/ArrowRightGhost.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/ArrowUp.d.ts +0 -0
- package/lib/types/components/base/icons/ArrowUp.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/BoxArrowUpRight.d.ts +0 -0
- package/lib/types/components/base/icons/BoxArrowUpRight.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/CalendarToday.d.ts +0 -0
- package/lib/types/components/base/icons/CalendarToday.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/Category.d.ts +0 -0
- package/lib/types/components/base/icons/Category.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/Check.d.ts +0 -0
- package/lib/types/components/base/icons/Check.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/Clock.d.ts +0 -0
- package/lib/types/components/base/icons/Clock.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/ClockFilled.d.ts +0 -0
- package/lib/types/components/base/icons/ClockFilled.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/Computer.d.ts +0 -0
- package/lib/types/components/base/icons/Computer.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/Cross.d.ts +0 -0
- package/lib/types/components/base/icons/Cross.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/CrossSmall.d.ts +0 -0
- package/lib/types/components/base/icons/CrossSmall.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/CurrentLocation.d.ts +0 -0
- package/lib/types/components/base/icons/CurrentLocation.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/DateRange.d.ts +0 -0
- package/lib/types/components/base/icons/DateRange.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/DeleteForever.d.ts +0 -0
- package/lib/types/components/base/icons/DeleteForever.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/External.d.ts +0 -0
- package/lib/types/components/base/icons/External.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/Filter.d.ts +0 -0
- package/lib/types/components/base/icons/Filter.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/FlyTo.d.ts +0 -0
- package/lib/types/components/base/icons/FlyTo.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/Info.d.ts +0 -0
- package/lib/types/components/base/icons/Info.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/Language.d.ts +0 -0
- package/lib/types/components/base/icons/Language.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/LocationPin.d.ts +0 -0
- package/lib/types/components/base/icons/LocationPin.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/LocationSearch.d.ts +0 -0
- package/lib/types/components/base/icons/LocationSearch.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/Magnifier.d.ts +0 -0
- package/lib/types/components/base/icons/Magnifier.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/Mail.d.ts +0 -0
- package/lib/types/components/base/icons/Mail.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/Map.d.ts +0 -0
- package/lib/types/components/base/icons/Map.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/MenuBurger.d.ts +0 -0
- package/lib/types/components/base/icons/MenuBurger.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/Minus.d.ts +0 -0
- package/lib/types/components/base/icons/Minus.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/Money.d.ts +0 -0
- package/lib/types/components/base/icons/Money.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/MyLocation.d.ts +0 -0
- package/lib/types/components/base/icons/MyLocation.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/Person.d.ts +0 -0
- package/lib/types/components/base/icons/Person.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/Phone.d.ts +0 -0
- package/lib/types/components/base/icons/Phone.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/Place.d.ts +0 -0
- package/lib/types/components/base/icons/Place.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/Play.d.ts +0 -0
- package/lib/types/components/base/icons/Play.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/Plus.d.ts +0 -0
- package/lib/types/components/base/icons/Plus.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/Route.d.ts +0 -0
- package/lib/types/components/base/icons/Route.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/Star.d.ts +0 -0
- package/lib/types/components/base/icons/Star.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/ToggleOff.d.ts +0 -0
- package/lib/types/components/base/icons/ToggleOff.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/ToggleOn.d.ts +0 -0
- package/lib/types/components/base/icons/ToggleOn.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/UnfoldMore.d.ts +0 -0
- package/lib/types/components/base/icons/UnfoldMore.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/files/Excel.d.ts +0 -0
- package/lib/types/components/base/icons/files/Excel.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/files/Image.d.ts +0 -0
- package/lib/types/components/base/icons/files/Image.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/files/Pdf.d.ts +0 -0
- package/lib/types/components/base/icons/files/Pdf.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/files/PowerPoint.d.ts +0 -0
- package/lib/types/components/base/icons/files/PowerPoint.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/files/UploadFile.d.ts +0 -0
- package/lib/types/components/base/icons/files/UploadFile.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/files/Word.d.ts +0 -0
- package/lib/types/components/base/icons/files/Word.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/files/Zip.d.ts +0 -0
- package/lib/types/components/base/icons/files/Zip.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/socials/Facebook.d.ts +0 -0
- package/lib/types/components/base/icons/socials/Facebook.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/socials/Instagram.d.ts +0 -0
- package/lib/types/components/base/icons/socials/Instagram.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/socials/LinkedIn.d.ts +0 -0
- package/lib/types/components/base/icons/socials/LinkedIn.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/socials/Twitter.d.ts +0 -0
- package/lib/types/components/base/icons/socials/Twitter.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/socials/Xing.d.ts +0 -0
- package/lib/types/components/base/icons/socials/Xing.d.ts.map +1 -0
- package/lib/{components → types/components}/base/icons/socials/Youtube.d.ts +0 -0
- package/lib/types/components/base/icons/socials/Youtube.d.ts.map +1 -0
- package/lib/{components → types/components}/base/nl2br.d.ts +0 -0
- package/lib/types/components/base/nl2br.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/Actions.d.ts +0 -0
- package/lib/types/components/blocks/Actions.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/Alert.d.ts +0 -0
- package/lib/types/components/blocks/Alert.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/Bdot.d.ts +0 -0
- package/lib/types/components/blocks/Bdot.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/CookieConsent.d.ts +0 -0
- package/lib/types/components/blocks/CookieConsent.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/EventBlock.d.ts +0 -0
- package/lib/types/components/blocks/EventBlock.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/Fact.d.ts +0 -0
- package/lib/types/components/blocks/Fact.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/Feature.d.ts +0 -0
- package/lib/types/components/blocks/Feature.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/Image.d.ts +0 -0
- package/lib/types/components/blocks/Image.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/InfoList.d.ts +0 -0
- package/lib/types/components/blocks/InfoList.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/IntroBlock.d.ts +0 -0
- package/lib/types/components/blocks/IntroBlock.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/JobCard.d.ts +0 -0
- package/lib/types/components/blocks/JobCard.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/LanguageSwitcher.d.ts +0 -0
- package/lib/types/components/blocks/LanguageSwitcher.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/NavBlock.d.ts +0 -0
- package/lib/types/components/blocks/NavBlock.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/NewsCard.d.ts +0 -0
- package/lib/types/components/blocks/NewsCard.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/POICard.d.ts +0 -0
- package/lib/types/components/blocks/POICard.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/POIFacts.d.ts +0 -0
- package/lib/types/components/blocks/POIFacts.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/PriceTag.d.ts +0 -0
- package/lib/types/components/blocks/PriceTag.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/PromotionCard.d.ts +0 -0
- package/lib/types/components/blocks/PromotionCard.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/SocialList.d.ts +0 -0
- package/lib/types/components/blocks/SocialList.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/TableBlock.d.ts +0 -0
- package/lib/types/components/blocks/TableBlock.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/Tag.d.ts +0 -0
- package/lib/types/components/blocks/Tag.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/Title.d.ts +0 -0
- package/lib/types/components/blocks/Title.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/VideoBlock.d.ts +0 -0
- package/lib/types/components/blocks/VideoBlock.d.ts.map +1 -0
- package/lib/{components → types/components}/blocks/VideoCard.d.ts +0 -0
- package/lib/types/components/blocks/VideoCard.d.ts.map +1 -0
- package/lib/{components → types/components}/buttons/Button.d.ts +0 -0
- package/lib/types/components/buttons/Button.d.ts.map +1 -0
- package/lib/{components → types/components}/buttons/ButtonGhost.d.ts +0 -0
- package/lib/types/components/buttons/ButtonGhost.d.ts.map +1 -0
- package/lib/{components → types/components}/buttons/Control.d.ts +0 -0
- package/lib/types/components/buttons/Control.d.ts.map +1 -0
- package/lib/{components → types/components}/buttons/Pointer.d.ts +0 -0
- package/lib/types/components/buttons/Pointer.d.ts.map +1 -0
- package/lib/{components → types/components}/debug/DebugLines.d.ts +0 -0
- package/lib/types/components/debug/DebugLines.d.ts.map +1 -0
- package/lib/{components → types/components}/examples/hooks/ArrayHookExample.d.ts +0 -0
- package/lib/types/components/examples/hooks/ArrayHookExample.d.ts.map +1 -0
- package/lib/{components → types/components}/examples/hooks/IntervalHookExample.d.ts +0 -0
- package/lib/types/components/examples/hooks/IntervalHookExample.d.ts.map +1 -0
- package/lib/{components → types/components}/fields/Checkbox.d.ts +0 -0
- package/lib/types/components/fields/Checkbox.d.ts.map +1 -0
- package/lib/{components → types/components}/fields/CompactForm.d.ts +0 -0
- package/lib/types/components/fields/CompactForm.d.ts.map +1 -0
- package/lib/{components → types/components}/fields/Datepicker.d.ts +0 -0
- package/lib/types/components/fields/Datepicker.d.ts.map +1 -0
- package/lib/{components → types/components}/fields/FileUpload.d.ts +0 -0
- package/lib/types/components/fields/FileUpload.d.ts.map +1 -0
- package/lib/{components → types/components}/fields/FilterField.d.ts +0 -0
- package/lib/types/components/fields/FilterField.d.ts.map +1 -0
- package/lib/{components → types/components}/fields/FormField.d.ts +0 -0
- package/lib/types/components/fields/FormField.d.ts.map +1 -0
- package/lib/{components → types/components}/fields/LocationField.d.ts +0 -0
- package/lib/types/components/fields/LocationField.d.ts.map +1 -0
- package/lib/{components → types/components}/fields/Radio.d.ts +0 -0
- package/lib/types/components/fields/Radio.d.ts.map +1 -0
- package/lib/{components → types/components}/fields/SearchInput.d.ts +0 -0
- package/lib/types/components/fields/SearchInput.d.ts.map +1 -0
- package/lib/{components → types/components}/fields/SelectDropdown.d.ts +0 -0
- package/lib/types/components/fields/SelectDropdown.d.ts.map +1 -0
- package/lib/{components → types/components}/fields/Textarea.d.ts +0 -0
- package/lib/types/components/fields/Textarea.d.ts.map +1 -0
- package/lib/{components → types/components}/fields/Textfield.d.ts +0 -0
- package/lib/types/components/fields/Textfield.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/Accordion.d.ts +0 -0
- package/lib/types/components/sections/Accordion.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/AlertList.d.ts +0 -0
- package/lib/types/components/sections/AlertList.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/Article.d.ts +0 -0
- package/lib/types/components/sections/Article.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/CallToAction.d.ts +0 -0
- package/lib/types/components/sections/CallToAction.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/CardList.d.ts +0 -0
- package/lib/types/components/sections/CardList.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/ComparisonSlider.d.ts +0 -0
- package/lib/types/components/sections/ComparisonSlider.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/CrossPromotion.d.ts +0 -0
- package/lib/types/components/sections/CrossPromotion.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/FactGrid.d.ts +0 -0
- package/lib/types/components/sections/FactGrid.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/FactList.d.ts +0 -0
- package/lib/types/components/sections/FactList.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/FeatureList.d.ts +0 -0
- package/lib/types/components/sections/FeatureList.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/Gallery.d.ts +0 -0
- package/lib/types/components/sections/Gallery.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/IconList.d.ts +0 -0
- package/lib/types/components/sections/IconList.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/IndexList.d.ts +0 -0
- package/lib/types/components/sections/IndexList.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/Intro.d.ts +0 -0
- package/lib/types/components/sections/Intro.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/Map.d.ts +0 -0
- package/lib/types/components/sections/Map.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/NavList.d.ts +0 -0
- package/lib/types/components/sections/NavList.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/NewsletterForm.d.ts +0 -0
- package/lib/types/components/sections/NewsletterForm.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/NumberList.d.ts +0 -0
- package/lib/types/components/sections/NumberList.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/ParallaxBackground.d.ts +0 -0
- package/lib/types/components/sections/ParallaxBackground.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/Poster.d.ts +0 -0
- package/lib/types/components/sections/Poster.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/PriceList.d.ts +0 -0
- package/lib/types/components/sections/PriceList.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/PriceTable.d.ts +0 -0
- package/lib/types/components/sections/PriceTable.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/Quote.d.ts +0 -0
- package/lib/types/components/sections/Quote.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/RawVideo.d.ts +0 -0
- package/lib/types/components/sections/RawVideo.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/SimpleImage.d.ts +0 -0
- package/lib/types/components/sections/SimpleImage.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/SocialWall.d.ts +0 -0
- package/lib/types/components/sections/SocialWall.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/Table.d.ts +0 -0
- package/lib/types/components/sections/Table.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/Teaser.d.ts +0 -0
- package/lib/types/components/sections/Teaser.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/TeaserWide.d.ts +0 -0
- package/lib/types/components/sections/TeaserWide.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/Timeline.d.ts +0 -0
- package/lib/types/components/sections/Timeline.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/Video.d.ts +0 -0
- package/lib/types/components/sections/Video.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/events/EventDetail.d.ts +0 -0
- package/lib/types/components/sections/events/EventDetail.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/events/EventList.d.ts +0 -0
- package/lib/types/components/sections/events/EventList.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/events/EventOverview.d.ts +0 -0
- package/lib/types/components/sections/events/EventOverview.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/footer/Footer.d.ts +0 -0
- package/lib/types/components/sections/footer/Footer.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/footer/partials/FooterBottomBar.d.ts +0 -0
- package/lib/types/components/sections/footer/partials/FooterBottomBar.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/footer/partials/FooterColumn.d.ts +0 -0
- package/lib/types/components/sections/footer/partials/FooterColumn.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/footer/partials/index.d.ts +0 -0
- package/lib/types/components/sections/footer/partials/index.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/footer/skeletons/FooterArticle.d.ts +0 -0
- package/lib/types/components/sections/footer/skeletons/FooterArticle.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/footer/skeletons/FooterBottomGrid.d.ts +0 -0
- package/lib/types/components/sections/footer/skeletons/FooterBottomGrid.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/footer/skeletons/index.d.ts +0 -0
- package/lib/types/components/sections/footer/skeletons/index.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/form/DynamicForm.d.ts +0 -0
- package/lib/types/components/sections/form/DynamicForm.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/form/renderer/areaRenderer.d.ts +0 -0
- package/lib/types/components/sections/form/renderer/areaRenderer.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/form/renderer/datepickerRenderer.d.ts +0 -0
- package/lib/types/components/sections/form/renderer/datepickerRenderer.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/form/renderer/fieldGroupRenderer.d.ts +0 -0
- package/lib/types/components/sections/form/renderer/fieldGroupRenderer.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/form/renderer/fieldRenderer.d.ts +0 -0
- package/lib/types/components/sections/form/renderer/fieldRenderer.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/form/renderer/locationRenderer.d.ts +0 -0
- package/lib/types/components/sections/form/renderer/locationRenderer.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/form/renderer/selectRenderer.d.ts +0 -0
- package/lib/types/components/sections/form/renderer/selectRenderer.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/form/renderer/uploadRenderer.d.ts +0 -0
- package/lib/types/components/sections/form/renderer/uploadRenderer.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/form/validators/areaValidator.d.ts +0 -0
- package/lib/types/components/sections/form/validators/areaValidator.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/form/validators/datepickerValidator.d.ts +0 -0
- package/lib/types/components/sections/form/validators/datepickerValidator.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/form/validators/fieldGroupValidator.d.ts +0 -0
- package/lib/types/components/sections/form/validators/fieldGroupValidator.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/form/validators/fieldValidator.d.ts +0 -0
- package/lib/types/components/sections/form/validators/fieldValidator.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/form/validators/locationValidator.d.ts +0 -0
- package/lib/types/components/sections/form/validators/locationValidator.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/form/validators/selectValidator.d.ts +0 -0
- package/lib/types/components/sections/form/validators/selectValidator.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/form/validators/uploadValidator.d.ts +0 -0
- package/lib/types/components/sections/form/validators/uploadValidator.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/header/Header.d.ts +0 -0
- package/lib/types/components/sections/header/Header.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/header/HeaderKenBurns.d.ts +0 -0
- package/lib/types/components/sections/header/HeaderKenBurns.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/header/HeaderPoster.d.ts +0 -0
- package/lib/types/components/sections/header/HeaderPoster.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/header/HeaderVideo.d.ts +0 -0
- package/lib/types/components/sections/header/HeaderVideo.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/jobs/JobArticle.d.ts +0 -0
- package/lib/types/components/sections/jobs/JobArticle.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/jobs/JobList.d.ts +0 -0
- package/lib/types/components/sections/jobs/JobList.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/navigation/NavBar.d.ts +0 -0
- package/lib/types/components/sections/navigation/NavBar.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/navigation/Navigation.d.ts +0 -0
- package/lib/types/components/sections/navigation/Navigation.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/navigation/menu/Menu.d.ts +0 -0
- package/lib/types/components/sections/navigation/menu/Menu.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/navigation/menu/variations/MenuFlyout.d.ts +0 -0
- package/lib/types/components/sections/navigation/menu/variations/MenuFlyout.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/navigation/menu/variations/MenuLarge.d.ts +0 -0
- package/lib/types/components/sections/navigation/menu/variations/MenuLarge.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/navigation/partials/MenuFooter.d.ts +0 -0
- package/lib/types/components/sections/navigation/partials/MenuFooter.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/navigation/partials/MenuHeader.d.ts +0 -0
- package/lib/types/components/sections/navigation/partials/MenuHeader.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/navigation/partials/NavBarBottom.d.ts +0 -0
- package/lib/types/components/sections/navigation/partials/NavBarBottom.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/navigation/partials/NavBarMain.d.ts +0 -0
- package/lib/types/components/sections/navigation/partials/NavBarMain.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/navigation/partials/NavBarTop.d.ts +0 -0
- package/lib/types/components/sections/navigation/partials/NavBarTop.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/navigation/partials/index.d.ts +0 -0
- package/lib/types/components/sections/navigation/partials/index.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/navigation/skeletons/BarBreadCrumbs.d.ts +0 -0
- package/lib/types/components/sections/navigation/skeletons/BarBreadCrumbs.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/navigation/skeletons/BarColumn.d.ts +0 -0
- package/lib/types/components/sections/navigation/skeletons/BarColumn.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/navigation/skeletons/BarLogo.d.ts +0 -0
- package/lib/types/components/sections/navigation/skeletons/BarLogo.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/navigation/skeletons/BarMenuToggle.d.ts +0 -0
- package/lib/types/components/sections/navigation/skeletons/BarMenuToggle.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/navigation/skeletons/BarNavList.d.ts +0 -0
- package/lib/types/components/sections/navigation/skeletons/BarNavList.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/navigation/skeletons/index.d.ts +0 -0
- package/lib/types/components/sections/navigation/skeletons/index.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/news/NewsAuthorCard.d.ts +0 -0
- package/lib/types/components/sections/news/NewsAuthorCard.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/news/NewsFooter.d.ts +0 -0
- package/lib/types/components/sections/news/NewsFooter.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/news/NewsImages.d.ts +0 -0
- package/lib/types/components/sections/news/NewsImages.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/news/NewsIntro.d.ts +0 -0
- package/lib/types/components/sections/news/NewsIntro.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/news/NewsList.d.ts +0 -0
- package/lib/types/components/sections/news/NewsList.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/news/NewsOverview.d.ts +0 -0
- package/lib/types/components/sections/news/NewsOverview.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/news/NewsTable.d.ts +0 -0
- package/lib/types/components/sections/news/NewsTable.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/news/NewsText.d.ts +0 -0
- package/lib/types/components/sections/news/NewsText.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/news/NewsVideo.d.ts +0 -0
- package/lib/types/components/sections/news/NewsVideo.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/pois/PointOfInterestDetail.d.ts +0 -0
- package/lib/types/components/sections/pois/PointOfInterestDetail.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/pois/PointOfInterestMap.d.ts +0 -0
- package/lib/types/components/sections/pois/PointOfInterestMap.d.ts.map +1 -0
- package/lib/{components → types/components}/sections/pois/PointOfInterestOverview.d.ts +0 -0
- package/lib/types/components/sections/pois/PointOfInterestOverview.d.ts.map +1 -0
- package/lib/{components → types/components}/typography/Callout.d.ts +0 -0
- package/lib/types/components/typography/Callout.d.ts.map +1 -0
- package/lib/{components → types/components}/typography/Copy.d.ts +0 -0
- package/lib/types/components/typography/Copy.d.ts.map +1 -0
- package/lib/{components → types/components}/typography/Heading.d.ts +0 -0
- package/lib/types/components/typography/Heading.d.ts.map +1 -0
- package/lib/{components → types/components}/typography/Link.d.ts +0 -0
- package/lib/types/components/typography/Link.d.ts.map +1 -0
- package/lib/types/cookies.d.ts +3 -0
- package/lib/types/cookies.d.ts.map +1 -0
- package/lib/types/fields.d.ts +14 -0
- package/lib/types/fields.d.ts.map +1 -0
- package/lib/types/hooks.d.ts +35 -0
- package/lib/types/hooks.d.ts.map +1 -0
- package/lib/types/icons.d.ts +66 -0
- package/lib/types/icons.d.ts.map +1 -0
- package/lib/types/index.d.ts +18 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/navigation.d.ts +10 -0
- package/lib/types/navigation.d.ts.map +1 -0
- package/lib/types/sections.d.ts +55 -0
- package/lib/types/sections.d.ts.map +1 -0
- package/lib/types/typography.d.ts +6 -0
- package/lib/types/typography.d.ts.map +1 -0
- package/lib/{utils → types/utils}/LibThemeProvider.d.ts +0 -0
- package/lib/types/utils/LibThemeProvider.d.ts.map +1 -0
- package/lib/{utils → types/utils}/arrays.d.ts +0 -0
- package/lib/types/utils/arrays.d.ts.map +1 -0
- package/lib/{utils → types/utils}/backgroundImage.d.ts +0 -0
- package/lib/types/utils/backgroundImage.d.ts.map +1 -0
- package/lib/{utils → types/utils}/clamp.d.ts +0 -0
- package/lib/types/utils/clamp.d.ts.map +1 -0
- package/lib/{utils → types/utils}/concat.d.ts +0 -0
- package/lib/types/utils/concat.d.ts.map +1 -0
- package/lib/{utils → types/utils}/cookie-consent/cookie.d.ts +0 -0
- package/lib/types/utils/cookie-consent/cookie.d.ts.map +1 -0
- package/lib/{utils → types/utils}/cookie-consent/mutations.d.ts +0 -0
- package/lib/types/utils/cookie-consent/mutations.d.ts.map +1 -0
- package/lib/{utils → types/utils}/cookie-consent/useCookieConsent.d.ts +0 -0
- package/lib/types/utils/cookie-consent/useCookieConsent.d.ts.map +1 -0
- package/lib/{utils → types/utils}/dataURI.d.ts +0 -0
- package/lib/types/utils/dataURI.d.ts.map +1 -0
- package/lib/{utils → types/utils}/escape.d.ts +0 -0
- package/lib/types/utils/escape.d.ts.map +1 -0
- package/lib/{utils → types/utils}/filters.d.ts +0 -0
- package/lib/types/utils/filters.d.ts.map +1 -0
- package/lib/{utils → types/utils}/fontLoading.d.ts +0 -0
- package/lib/types/utils/fontLoading.d.ts.map +1 -0
- package/lib/{utils → types/utils}/formFieldText.d.ts +0 -0
- package/lib/types/utils/formFieldText.d.ts.map +1 -0
- package/lib/{utils → types/utils}/getLinkIcon.d.ts +0 -0
- package/lib/types/utils/getLinkIcon.d.ts.map +1 -0
- package/lib/{utils → types/utils}/hexRgbConverter.d.ts +0 -0
- package/lib/types/utils/hexRgbConverter.d.ts.map +1 -0
- package/lib/{utils → types/utils}/menuHooks.d.ts +0 -0
- package/lib/types/utils/menuHooks.d.ts.map +1 -0
- package/lib/{utils → types/utils}/navigation.d.ts +0 -0
- package/lib/types/utils/navigation.d.ts.map +1 -0
- package/lib/{utils → types/utils}/statusFormatter.d.ts +0 -0
- package/lib/types/utils/statusFormatter.d.ts.map +1 -0
- package/lib/{utils → types/utils}/storyHelpers.d.ts +0 -0
- package/lib/types/utils/storyHelpers.d.ts.map +1 -0
- package/lib/{utils → types/utils}/structuredData.d.ts +0 -0
- package/lib/types/utils/structuredData.d.ts.map +1 -0
- package/lib/{utils → types/utils}/styles.d.ts +0 -0
- package/lib/types/utils/styles.d.ts.map +1 -0
- package/lib/{utils → types/utils}/types.d.ts +0 -0
- package/lib/types/utils/types.d.ts.map +1 -0
- package/lib/{utils → types/utils}/urlParams.d.ts +0 -0
- package/lib/types/utils/urlParams.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useArray.d.ts +0 -0
- package/lib/types/utils/useArray.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useDebounce.d.ts +0 -0
- package/lib/types/utils/useDebounce.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useEqualSheetHeight.d.ts +0 -0
- package/lib/types/utils/useEqualSheetHeight.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useFontsLoaded.d.ts +0 -0
- package/lib/types/utils/useFontsLoaded.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useGeolocation.d.ts +0 -0
- package/lib/types/utils/useGeolocation.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useIE.d.ts +0 -0
- package/lib/types/utils/useIE.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useImgPreload.d.ts +0 -0
- package/lib/types/utils/useImgPreload.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useInterval.d.ts +0 -0
- package/lib/types/utils/useInterval.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useItemHeight.d.ts +0 -0
- package/lib/types/utils/useItemHeight.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useLazyInput.d.ts +0 -0
- package/lib/types/utils/useLazyInput.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useLeafletMap.d.ts +0 -0
- package/lib/types/utils/useLeafletMap.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useMediaQuery.d.ts +0 -0
- package/lib/types/utils/useMediaQuery.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useMounted.d.ts +0 -0
- package/lib/types/utils/useMounted.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useObserverSupport.d.ts +0 -0
- package/lib/types/utils/useObserverSupport.d.ts.map +1 -0
- package/lib/{utils → types/utils}/usePageScroll.d.ts +0 -0
- package/lib/types/utils/usePageScroll.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useParams.d.ts +0 -0
- package/lib/types/utils/useParams.d.ts.map +1 -0
- package/lib/{utils → types/utils}/usePoster.d.ts +0 -0
- package/lib/types/utils/usePoster.d.ts.map +1 -0
- package/lib/{utils → types/utils}/usePrevious.d.ts +0 -0
- package/lib/types/utils/usePrevious.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useResizeThrottle.d.ts +0 -0
- package/lib/types/utils/useResizeThrottle.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useScroll.d.ts +0 -0
- package/lib/types/utils/useScroll.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useScrollIntoView.d.ts +0 -0
- package/lib/types/utils/useScrollIntoView.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useScrollThrottle.d.ts +0 -0
- package/lib/types/utils/useScrollThrottle.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useScrollTo.d.ts +0 -0
- package/lib/types/utils/useScrollTo.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useTimeout.d.ts +0 -0
- package/lib/types/utils/useTimeout.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useTouch.d.ts +0 -0
- package/lib/types/utils/useTouch.d.ts.map +1 -0
- package/lib/{utils → types/utils}/useUpdateEffect.d.ts +0 -0
- package/lib/types/utils/useUpdateEffect.d.ts.map +1 -0
- package/navigation/package.json +7 -0
- package/package.json +18 -5
- package/sections/package.json +7 -0
- package/typography/package.json +7 -0
- package/lib/components/base/Grid.d.ts.map +0 -1
- package/lib/components/base/Section.d.ts.map +0 -1
- package/lib/components/base/Wrapper.d.ts.map +0 -1
- package/lib/components/base/icons/AngleDown.d.ts.map +0 -1
- package/lib/components/base/icons/AngleLeft.d.ts.map +0 -1
- package/lib/components/base/icons/AngleRight.d.ts.map +0 -1
- package/lib/components/base/icons/AngleUp.d.ts.map +0 -1
- package/lib/components/base/icons/ArrowDown.d.ts.map +0 -1
- package/lib/components/base/icons/ArrowLeft.d.ts.map +0 -1
- package/lib/components/base/icons/ArrowLeftGhost.d.ts.map +0 -1
- package/lib/components/base/icons/ArrowLeftRight.d.ts.map +0 -1
- package/lib/components/base/icons/ArrowRight.d.ts.map +0 -1
- package/lib/components/base/icons/ArrowRightGhost.d.ts.map +0 -1
- package/lib/components/base/icons/ArrowUp.d.ts.map +0 -1
- package/lib/components/base/icons/BoxArrowUpRight.d.ts.map +0 -1
- package/lib/components/base/icons/CalendarToday.d.ts.map +0 -1
- package/lib/components/base/icons/Category.d.ts.map +0 -1
- package/lib/components/base/icons/Check.d.ts.map +0 -1
- package/lib/components/base/icons/Clock.d.ts.map +0 -1
- package/lib/components/base/icons/ClockFilled.d.ts.map +0 -1
- package/lib/components/base/icons/Computer.d.ts.map +0 -1
- package/lib/components/base/icons/Cross.d.ts.map +0 -1
- package/lib/components/base/icons/CrossSmall.d.ts.map +0 -1
- package/lib/components/base/icons/CurrentLocation.d.ts.map +0 -1
- package/lib/components/base/icons/DateRange.d.ts.map +0 -1
- package/lib/components/base/icons/DeleteForever.d.ts.map +0 -1
- package/lib/components/base/icons/External.d.ts.map +0 -1
- package/lib/components/base/icons/Filter.d.ts.map +0 -1
- package/lib/components/base/icons/FlyTo.d.ts.map +0 -1
- package/lib/components/base/icons/Icons.d.ts +0 -66
- package/lib/components/base/icons/Icons.d.ts.map +0 -1
- package/lib/components/base/icons/Info.d.ts.map +0 -1
- package/lib/components/base/icons/Language.d.ts.map +0 -1
- package/lib/components/base/icons/LocationPin.d.ts.map +0 -1
- package/lib/components/base/icons/LocationSearch.d.ts.map +0 -1
- package/lib/components/base/icons/Magnifier.d.ts.map +0 -1
- package/lib/components/base/icons/Mail.d.ts.map +0 -1
- package/lib/components/base/icons/Map.d.ts.map +0 -1
- package/lib/components/base/icons/MenuBurger.d.ts.map +0 -1
- package/lib/components/base/icons/Minus.d.ts.map +0 -1
- package/lib/components/base/icons/Money.d.ts.map +0 -1
- package/lib/components/base/icons/MyLocation.d.ts.map +0 -1
- package/lib/components/base/icons/Person.d.ts.map +0 -1
- package/lib/components/base/icons/Phone.d.ts.map +0 -1
- package/lib/components/base/icons/Place.d.ts.map +0 -1
- package/lib/components/base/icons/Play.d.ts.map +0 -1
- package/lib/components/base/icons/Plus.d.ts.map +0 -1
- package/lib/components/base/icons/Route.d.ts.map +0 -1
- package/lib/components/base/icons/Star.d.ts.map +0 -1
- package/lib/components/base/icons/ToggleOff.d.ts.map +0 -1
- package/lib/components/base/icons/ToggleOn.d.ts.map +0 -1
- package/lib/components/base/icons/UnfoldMore.d.ts.map +0 -1
- package/lib/components/base/icons/files/Excel.d.ts.map +0 -1
- package/lib/components/base/icons/files/Image.d.ts.map +0 -1
- package/lib/components/base/icons/files/Pdf.d.ts.map +0 -1
- package/lib/components/base/icons/files/PowerPoint.d.ts.map +0 -1
- package/lib/components/base/icons/files/UploadFile.d.ts.map +0 -1
- package/lib/components/base/icons/files/Word.d.ts.map +0 -1
- package/lib/components/base/icons/files/Zip.d.ts.map +0 -1
- package/lib/components/base/icons/socials/Facebook.d.ts.map +0 -1
- package/lib/components/base/icons/socials/Instagram.d.ts.map +0 -1
- package/lib/components/base/icons/socials/LinkedIn.d.ts.map +0 -1
- package/lib/components/base/icons/socials/Twitter.d.ts.map +0 -1
- package/lib/components/base/icons/socials/Xing.d.ts.map +0 -1
- package/lib/components/base/icons/socials/Youtube.d.ts.map +0 -1
- package/lib/components/base/nl2br.d.ts.map +0 -1
- package/lib/components/blocks/Actions.d.ts.map +0 -1
- package/lib/components/blocks/Alert.d.ts.map +0 -1
- package/lib/components/blocks/Bdot.d.ts.map +0 -1
- package/lib/components/blocks/CookieConsent.d.ts.map +0 -1
- package/lib/components/blocks/EventBlock.d.ts.map +0 -1
- package/lib/components/blocks/Fact.d.ts.map +0 -1
- package/lib/components/blocks/Feature.d.ts.map +0 -1
- package/lib/components/blocks/Image.d.ts.map +0 -1
- package/lib/components/blocks/InfoList.d.ts.map +0 -1
- package/lib/components/blocks/IntroBlock.d.ts.map +0 -1
- package/lib/components/blocks/JobCard.d.ts.map +0 -1
- package/lib/components/blocks/LanguageSwitcher.d.ts.map +0 -1
- package/lib/components/blocks/NavBlock.d.ts.map +0 -1
- package/lib/components/blocks/NewsCard.d.ts.map +0 -1
- package/lib/components/blocks/POICard.d.ts.map +0 -1
- package/lib/components/blocks/POIFacts.d.ts.map +0 -1
- package/lib/components/blocks/PriceTag.d.ts.map +0 -1
- package/lib/components/blocks/PromotionCard.d.ts.map +0 -1
- package/lib/components/blocks/SocialList.d.ts.map +0 -1
- package/lib/components/blocks/TableBlock.d.ts.map +0 -1
- package/lib/components/blocks/Tag.d.ts.map +0 -1
- package/lib/components/blocks/Title.d.ts.map +0 -1
- package/lib/components/blocks/VideoBlock.d.ts.map +0 -1
- package/lib/components/blocks/VideoCard.d.ts.map +0 -1
- package/lib/components/buttons/Button.d.ts.map +0 -1
- package/lib/components/buttons/ButtonGhost.d.ts.map +0 -1
- package/lib/components/buttons/Control.d.ts.map +0 -1
- package/lib/components/buttons/Pointer.d.ts.map +0 -1
- package/lib/components/debug/DebugLines.d.ts.map +0 -1
- package/lib/components/examples/hooks/ArrayHookExample.d.ts.map +0 -1
- package/lib/components/examples/hooks/IntervalHookExample.d.ts.map +0 -1
- package/lib/components/fields/Checkbox.d.ts.map +0 -1
- package/lib/components/fields/CompactForm.d.ts.map +0 -1
- package/lib/components/fields/Datepicker.d.ts.map +0 -1
- package/lib/components/fields/FileUpload.d.ts.map +0 -1
- package/lib/components/fields/FilterField.d.ts.map +0 -1
- package/lib/components/fields/FormField.d.ts.map +0 -1
- package/lib/components/fields/LocationField.d.ts.map +0 -1
- package/lib/components/fields/Radio.d.ts.map +0 -1
- package/lib/components/fields/SearchInput.d.ts.map +0 -1
- package/lib/components/fields/SelectDropdown.d.ts.map +0 -1
- package/lib/components/fields/Textarea.d.ts.map +0 -1
- package/lib/components/fields/Textfield.d.ts.map +0 -1
- package/lib/components/sections/Accordion.d.ts.map +0 -1
- package/lib/components/sections/AlertList.d.ts.map +0 -1
- package/lib/components/sections/Article.d.ts.map +0 -1
- package/lib/components/sections/CallToAction.d.ts.map +0 -1
- package/lib/components/sections/CardList.d.ts.map +0 -1
- package/lib/components/sections/ComparisonSlider.d.ts.map +0 -1
- package/lib/components/sections/CrossPromotion.d.ts.map +0 -1
- package/lib/components/sections/FactGrid.d.ts.map +0 -1
- package/lib/components/sections/FactList.d.ts.map +0 -1
- package/lib/components/sections/FeatureList.d.ts.map +0 -1
- package/lib/components/sections/Gallery.d.ts.map +0 -1
- package/lib/components/sections/IconList.d.ts.map +0 -1
- package/lib/components/sections/IndexList.d.ts.map +0 -1
- package/lib/components/sections/Intro.d.ts.map +0 -1
- package/lib/components/sections/Map.d.ts.map +0 -1
- package/lib/components/sections/NavList.d.ts.map +0 -1
- package/lib/components/sections/NewsletterForm.d.ts.map +0 -1
- package/lib/components/sections/NumberList.d.ts.map +0 -1
- package/lib/components/sections/ParallaxBackground.d.ts.map +0 -1
- package/lib/components/sections/Poster.d.ts.map +0 -1
- package/lib/components/sections/PriceList.d.ts.map +0 -1
- package/lib/components/sections/PriceTable.d.ts.map +0 -1
- package/lib/components/sections/Quote.d.ts.map +0 -1
- package/lib/components/sections/RawVideo.d.ts.map +0 -1
- package/lib/components/sections/SimpleImage.d.ts.map +0 -1
- package/lib/components/sections/SocialWall.d.ts.map +0 -1
- package/lib/components/sections/Table.d.ts.map +0 -1
- package/lib/components/sections/Teaser.d.ts.map +0 -1
- package/lib/components/sections/TeaserWide.d.ts.map +0 -1
- package/lib/components/sections/Timeline.d.ts.map +0 -1
- package/lib/components/sections/Video.d.ts.map +0 -1
- package/lib/components/sections/events/EventDetail.d.ts.map +0 -1
- package/lib/components/sections/events/EventList.d.ts.map +0 -1
- package/lib/components/sections/events/EventOverview.d.ts.map +0 -1
- package/lib/components/sections/footer/Footer.d.ts.map +0 -1
- package/lib/components/sections/footer/partials/FooterBottomBar.d.ts.map +0 -1
- package/lib/components/sections/footer/partials/FooterColumn.d.ts.map +0 -1
- package/lib/components/sections/footer/partials/index.d.ts.map +0 -1
- package/lib/components/sections/footer/skeletons/FooterArticle.d.ts.map +0 -1
- package/lib/components/sections/footer/skeletons/FooterBottomGrid.d.ts.map +0 -1
- package/lib/components/sections/footer/skeletons/index.d.ts.map +0 -1
- package/lib/components/sections/form/DynamicForm.d.ts.map +0 -1
- package/lib/components/sections/form/renderer/areaRenderer.d.ts.map +0 -1
- package/lib/components/sections/form/renderer/datepickerRenderer.d.ts.map +0 -1
- package/lib/components/sections/form/renderer/fieldGroupRenderer.d.ts.map +0 -1
- package/lib/components/sections/form/renderer/fieldRenderer.d.ts.map +0 -1
- package/lib/components/sections/form/renderer/locationRenderer.d.ts.map +0 -1
- package/lib/components/sections/form/renderer/selectRenderer.d.ts.map +0 -1
- package/lib/components/sections/form/renderer/uploadRenderer.d.ts.map +0 -1
- package/lib/components/sections/form/validators/areaValidator.d.ts.map +0 -1
- package/lib/components/sections/form/validators/datepickerValidator.d.ts.map +0 -1
- package/lib/components/sections/form/validators/fieldGroupValidator.d.ts.map +0 -1
- package/lib/components/sections/form/validators/fieldValidator.d.ts.map +0 -1
- package/lib/components/sections/form/validators/locationValidator.d.ts.map +0 -1
- package/lib/components/sections/form/validators/selectValidator.d.ts.map +0 -1
- package/lib/components/sections/form/validators/uploadValidator.d.ts.map +0 -1
- package/lib/components/sections/header/Header.d.ts.map +0 -1
- package/lib/components/sections/header/HeaderKenBurns.d.ts.map +0 -1
- package/lib/components/sections/header/HeaderPoster.d.ts.map +0 -1
- package/lib/components/sections/header/HeaderVideo.d.ts.map +0 -1
- package/lib/components/sections/jobs/JobArticle.d.ts.map +0 -1
- package/lib/components/sections/jobs/JobList.d.ts.map +0 -1
- package/lib/components/sections/navigation/NavBar.d.ts.map +0 -1
- package/lib/components/sections/navigation/Navigation.d.ts.map +0 -1
- package/lib/components/sections/navigation/menu/Menu.d.ts.map +0 -1
- package/lib/components/sections/navigation/menu/variations/MenuFlyout.d.ts.map +0 -1
- package/lib/components/sections/navigation/menu/variations/MenuLarge.d.ts.map +0 -1
- package/lib/components/sections/navigation/partials/MenuFooter.d.ts.map +0 -1
- package/lib/components/sections/navigation/partials/MenuHeader.d.ts.map +0 -1
- package/lib/components/sections/navigation/partials/NavBarBottom.d.ts.map +0 -1
- package/lib/components/sections/navigation/partials/NavBarMain.d.ts.map +0 -1
- package/lib/components/sections/navigation/partials/NavBarTop.d.ts.map +0 -1
- package/lib/components/sections/navigation/partials/index.d.ts.map +0 -1
- package/lib/components/sections/navigation/skeletons/BarBreadCrumbs.d.ts.map +0 -1
- package/lib/components/sections/navigation/skeletons/BarColumn.d.ts.map +0 -1
- package/lib/components/sections/navigation/skeletons/BarLogo.d.ts.map +0 -1
- package/lib/components/sections/navigation/skeletons/BarMenuToggle.d.ts.map +0 -1
- package/lib/components/sections/navigation/skeletons/BarNavList.d.ts.map +0 -1
- package/lib/components/sections/navigation/skeletons/index.d.ts.map +0 -1
- package/lib/components/sections/news/NewsAuthorCard.d.ts.map +0 -1
- package/lib/components/sections/news/NewsFooter.d.ts.map +0 -1
- package/lib/components/sections/news/NewsImages.d.ts.map +0 -1
- package/lib/components/sections/news/NewsIntro.d.ts.map +0 -1
- package/lib/components/sections/news/NewsList.d.ts.map +0 -1
- package/lib/components/sections/news/NewsOverview.d.ts.map +0 -1
- package/lib/components/sections/news/NewsTable.d.ts.map +0 -1
- package/lib/components/sections/news/NewsText.d.ts.map +0 -1
- package/lib/components/sections/news/NewsVideo.d.ts.map +0 -1
- package/lib/components/sections/pois/PointOfInterestDetail.d.ts.map +0 -1
- package/lib/components/sections/pois/PointOfInterestMap.d.ts.map +0 -1
- package/lib/components/sections/pois/PointOfInterestOverview.d.ts.map +0 -1
- package/lib/components/typography/Callout.d.ts.map +0 -1
- package/lib/components/typography/Copy.d.ts.map +0 -1
- package/lib/components/typography/Heading.d.ts.map +0 -1
- package/lib/components/typography/Link.d.ts.map +0 -1
- package/lib/index.d.ts +0 -158
- package/lib/index.d.ts.map +0 -1
- package/lib/index.es.js +0 -2
- package/lib/index.es.js.map +0 -1
- package/lib/index.js +0 -2
- package/lib/index.js.map +0 -1
- package/lib/utils/LibThemeProvider.d.ts.map +0 -1
- package/lib/utils/arrays.d.ts.map +0 -1
- package/lib/utils/backgroundImage.d.ts.map +0 -1
- package/lib/utils/clamp.d.ts.map +0 -1
- package/lib/utils/concat.d.ts.map +0 -1
- package/lib/utils/cookie-consent/cookie.d.ts.map +0 -1
- package/lib/utils/cookie-consent/mutations.d.ts.map +0 -1
- package/lib/utils/cookie-consent/useCookieConsent.d.ts.map +0 -1
- package/lib/utils/dataURI.d.ts.map +0 -1
- package/lib/utils/escape.d.ts.map +0 -1
- package/lib/utils/filters.d.ts.map +0 -1
- package/lib/utils/fontLoading.d.ts.map +0 -1
- package/lib/utils/formFieldText.d.ts.map +0 -1
- package/lib/utils/getLinkIcon.d.ts.map +0 -1
- package/lib/utils/hexRgbConverter.d.ts.map +0 -1
- package/lib/utils/menuHooks.d.ts.map +0 -1
- package/lib/utils/navigation.d.ts.map +0 -1
- package/lib/utils/statusFormatter.d.ts.map +0 -1
- package/lib/utils/storyHelpers.d.ts.map +0 -1
- package/lib/utils/structuredData.d.ts.map +0 -1
- package/lib/utils/styles.d.ts.map +0 -1
- package/lib/utils/types.d.ts.map +0 -1
- package/lib/utils/urlParams.d.ts.map +0 -1
- package/lib/utils/useArray.d.ts.map +0 -1
- package/lib/utils/useDebounce.d.ts.map +0 -1
- package/lib/utils/useEqualSheetHeight.d.ts.map +0 -1
- package/lib/utils/useFontsLoaded.d.ts.map +0 -1
- package/lib/utils/useGeolocation.d.ts.map +0 -1
- package/lib/utils/useIE.d.ts.map +0 -1
- package/lib/utils/useImgPreload.d.ts.map +0 -1
- package/lib/utils/useInterval.d.ts.map +0 -1
- package/lib/utils/useItemHeight.d.ts.map +0 -1
- package/lib/utils/useLazyInput.d.ts.map +0 -1
- package/lib/utils/useLeafletMap.d.ts.map +0 -1
- package/lib/utils/useMediaQuery.d.ts.map +0 -1
- package/lib/utils/useMounted.d.ts.map +0 -1
- package/lib/utils/useObserverSupport.d.ts.map +0 -1
- package/lib/utils/usePageScroll.d.ts.map +0 -1
- package/lib/utils/useParams.d.ts.map +0 -1
- package/lib/utils/usePoster.d.ts.map +0 -1
- package/lib/utils/usePrevious.d.ts.map +0 -1
- package/lib/utils/useResizeThrottle.d.ts.map +0 -1
- package/lib/utils/useScroll.d.ts.map +0 -1
- package/lib/utils/useScrollIntoView.d.ts.map +0 -1
- package/lib/utils/useScrollThrottle.d.ts.map +0 -1
- package/lib/utils/useScrollTo.d.ts.map +0 -1
- package/lib/utils/useTimeout.d.ts.map +0 -1
- package/lib/utils/useTouch.d.ts.map +0 -1
- package/lib/utils/useUpdateEffect.d.ts.map +0 -1
|
@@ -0,0 +1,471 @@
|
|
|
1
|
+
import { useRef, useEffect, useCallback, useState, useMemo } from 'react';
|
|
2
|
+
import { e as __spreadArray, _ as __assign, f as __awaiter, g as __generator } from './ClockFilled-cff5900e.js';
|
|
3
|
+
|
|
4
|
+
var useTimeout = function (callback, delay) {
|
|
5
|
+
var callbackRef = useRef(callback);
|
|
6
|
+
var timeoutRef = useRef();
|
|
7
|
+
useEffect(function () {
|
|
8
|
+
callbackRef.current = callback;
|
|
9
|
+
}, [callback]);
|
|
10
|
+
var set = useCallback(function () {
|
|
11
|
+
timeoutRef.current = window.setTimeout(function () {
|
|
12
|
+
var _a;
|
|
13
|
+
|
|
14
|
+
return (_a = callbackRef.current) === null || _a === void 0 ? void 0 : _a.call(callbackRef);
|
|
15
|
+
}, delay);
|
|
16
|
+
}, [delay]);
|
|
17
|
+
var clear = useCallback(function () {
|
|
18
|
+
timeoutRef.current && window.clearTimeout(timeoutRef.current);
|
|
19
|
+
}, []);
|
|
20
|
+
useEffect(function () {
|
|
21
|
+
set();
|
|
22
|
+
return clear;
|
|
23
|
+
}, [delay, set, clear]);
|
|
24
|
+
var reset = useCallback(function () {
|
|
25
|
+
clear();
|
|
26
|
+
set();
|
|
27
|
+
}, [clear, set]);
|
|
28
|
+
return {
|
|
29
|
+
clear: clear,
|
|
30
|
+
reset: reset
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
var useDebounce = function (callback, delay, deps) {
|
|
35
|
+
var _a = useTimeout(callback, delay),
|
|
36
|
+
clear = _a.clear,
|
|
37
|
+
reset = _a.reset;
|
|
38
|
+
|
|
39
|
+
useEffect(reset, __spreadArray(__spreadArray([], deps, true), [reset], false)); // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
40
|
+
|
|
41
|
+
useEffect(clear, []);
|
|
42
|
+
return {
|
|
43
|
+
clear: clear,
|
|
44
|
+
reset: reset
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
var useLazyInput = function (callback, initial, delay) {
|
|
49
|
+
if (delay === void 0) {
|
|
50
|
+
delay = 600;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
var _a = useState(initial),
|
|
54
|
+
value = _a[0],
|
|
55
|
+
setValue = _a[1];
|
|
56
|
+
|
|
57
|
+
var clear = useDebounce(function () {
|
|
58
|
+
return callback === null || callback === void 0 ? void 0 : callback(value);
|
|
59
|
+
}, delay, [value]).clear;
|
|
60
|
+
var update = useCallback(function (value, withoutDelay) {
|
|
61
|
+
if (withoutDelay === void 0) {
|
|
62
|
+
withoutDelay = false;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
setValue(value);
|
|
66
|
+
|
|
67
|
+
if (withoutDelay) {
|
|
68
|
+
clear();
|
|
69
|
+
callback === null || callback === void 0 ? void 0 : callback(value);
|
|
70
|
+
} // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
71
|
+
|
|
72
|
+
}, []);
|
|
73
|
+
var forceUpdate = useCallback(function () {
|
|
74
|
+
clear();
|
|
75
|
+
callback === null || callback === void 0 ? void 0 : callback(value);
|
|
76
|
+
}, [callback, clear, value]);
|
|
77
|
+
return {
|
|
78
|
+
update: update,
|
|
79
|
+
value: value,
|
|
80
|
+
forceUpdate: forceUpdate
|
|
81
|
+
};
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
var useLeafletMap = function (settings) {
|
|
85
|
+
var _a = useState(null),
|
|
86
|
+
container = _a[0],
|
|
87
|
+
setContainer = _a[1];
|
|
88
|
+
|
|
89
|
+
var _b = useState(null),
|
|
90
|
+
L = _b[0],
|
|
91
|
+
setLeaflet = _b[1];
|
|
92
|
+
|
|
93
|
+
var _c = useState(null),
|
|
94
|
+
map = _c[0],
|
|
95
|
+
setMap = _c[1];
|
|
96
|
+
|
|
97
|
+
var _d = useState(null),
|
|
98
|
+
markersLayerGroup = _d[0],
|
|
99
|
+
setMarkersLayerGroup = _d[1];
|
|
100
|
+
|
|
101
|
+
var prevMarkerId = useRef(null);
|
|
102
|
+
|
|
103
|
+
var _e = useState(false),
|
|
104
|
+
isLoaded = _e[0],
|
|
105
|
+
setLoaded = _e[1];
|
|
106
|
+
|
|
107
|
+
var isRenderedRef = useRef(false);
|
|
108
|
+
var lastValidCenter = useRef(null);
|
|
109
|
+
var mapSettings = useMemo(function () {
|
|
110
|
+
// removing undefined keys
|
|
111
|
+
Object.keys(settings).forEach(function (key) {
|
|
112
|
+
if (settings[key] === undefined) {
|
|
113
|
+
delete settings[key];
|
|
114
|
+
}
|
|
115
|
+
});
|
|
116
|
+
return __assign({
|
|
117
|
+
center: [0, 0],
|
|
118
|
+
zoom: 2.5,
|
|
119
|
+
touchZoom: true,
|
|
120
|
+
scrollWheelZoom: false,
|
|
121
|
+
showZoomControls: true,
|
|
122
|
+
zoomControlPosition: 'topleft',
|
|
123
|
+
onlyScrollOnFocus: true,
|
|
124
|
+
url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
|
|
125
|
+
attribution: '© <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',
|
|
126
|
+
markers: [],
|
|
127
|
+
fitBoundsPadding: [20, 20]
|
|
128
|
+
}, settings);
|
|
129
|
+
}, [settings]);
|
|
130
|
+
useEffect(function () {
|
|
131
|
+
if (!container) return;
|
|
132
|
+
|
|
133
|
+
var init = function () {
|
|
134
|
+
return __awaiter(void 0, void 0, void 0, function () {
|
|
135
|
+
var leaflet, map, group;
|
|
136
|
+
return __generator(this, function (_a) {
|
|
137
|
+
switch (_a.label) {
|
|
138
|
+
case 0:
|
|
139
|
+
if (L || !container || isRenderedRef.current) return [2
|
|
140
|
+
/*return*/
|
|
141
|
+
];
|
|
142
|
+
isRenderedRef.current = true;
|
|
143
|
+
return [4
|
|
144
|
+
/*yield*/
|
|
145
|
+
, import('leaflet')];
|
|
146
|
+
|
|
147
|
+
case 1:
|
|
148
|
+
leaflet = _a.sent();
|
|
149
|
+
if (!leaflet) return [2
|
|
150
|
+
/*return*/
|
|
151
|
+
]; // set leaflet state
|
|
152
|
+
|
|
153
|
+
setLeaflet(leaflet);
|
|
154
|
+
map = leaflet.map(container, {
|
|
155
|
+
center: mapSettings.center,
|
|
156
|
+
zoom: mapSettings.zoom,
|
|
157
|
+
touchZoom: mapSettings.touchZoom,
|
|
158
|
+
scrollWheelZoom: mapSettings.scrollWheelZoom,
|
|
159
|
+
zoomControl: false,
|
|
160
|
+
minZoom: mapSettings.minZoom,
|
|
161
|
+
maxZoom: mapSettings.maxZoom
|
|
162
|
+
});
|
|
163
|
+
|
|
164
|
+
if (mapSettings.showZoomControls) {
|
|
165
|
+
leaflet.control.zoom({
|
|
166
|
+
position: mapSettings.zoomControlPosition
|
|
167
|
+
}).addTo(map);
|
|
168
|
+
} // activate map scrolling on focus
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
map.once('focus', function () {
|
|
172
|
+
if (mapSettings.onlyScrollOnFocus) {
|
|
173
|
+
map.scrollWheelZoom.enable();
|
|
174
|
+
}
|
|
175
|
+
}); // deactivate map scrolling on focus is lost
|
|
176
|
+
|
|
177
|
+
map.once('blur', function () {
|
|
178
|
+
if (mapSettings.onlyScrollOnFocus) {
|
|
179
|
+
map.scrollWheelZoom.disable();
|
|
180
|
+
}
|
|
181
|
+
});
|
|
182
|
+
map.on('click', function (ev) {
|
|
183
|
+
var _a;
|
|
184
|
+
|
|
185
|
+
(_a = mapSettings.onClick) === null || _a === void 0 ? void 0 : _a.call(mapSettings, ev, map.getZoom());
|
|
186
|
+
}); // set map state
|
|
187
|
+
|
|
188
|
+
setMap(map); // add map layer from map provider
|
|
189
|
+
|
|
190
|
+
leaflet.tileLayer(mapSettings.url, {
|
|
191
|
+
attribution: mapSettings.attribution
|
|
192
|
+
}).addTo(map);
|
|
193
|
+
group = new leaflet.FeatureGroup();
|
|
194
|
+
group.addTo(map);
|
|
195
|
+
setMarkersLayerGroup(group);
|
|
196
|
+
return [2
|
|
197
|
+
/*return*/
|
|
198
|
+
];
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
});
|
|
202
|
+
};
|
|
203
|
+
|
|
204
|
+
init();
|
|
205
|
+
}, [L, container, mapSettings, mapSettings.attribution, mapSettings.center, mapSettings.onlyScrollOnFocus, mapSettings.scrollWheelZoom, mapSettings.touchZoom, mapSettings.url, mapSettings.zoom]);
|
|
206
|
+
useEffect(function () {
|
|
207
|
+
var _a;
|
|
208
|
+
|
|
209
|
+
if (!map || !markersLayerGroup) return;
|
|
210
|
+
markersLayerGroup.clearLayers();
|
|
211
|
+
(_a = mapSettings.markers) === null || _a === void 0 ? void 0 : _a.forEach(function (_a) {
|
|
212
|
+
var _b, _c;
|
|
213
|
+
|
|
214
|
+
var position = _a.position,
|
|
215
|
+
icon = _a.icon,
|
|
216
|
+
id = _a.id,
|
|
217
|
+
isInteractive = _a.isInteractive;
|
|
218
|
+
if (!(icon === null || icon === void 0 ? void 0 : icon.url) || !(icon === null || icon === void 0 ? void 0 : icon.size) || !position) return;
|
|
219
|
+
var isActive = id === mapSettings.activeMarkerId;
|
|
220
|
+
var markerIcon = L.icon({
|
|
221
|
+
iconUrl: icon.url,
|
|
222
|
+
iconSize: isActive ? icon.sizeActive : icon.size,
|
|
223
|
+
// shadowSize: [50, 64], // size of the shadow
|
|
224
|
+
iconAnchor: isActive ? icon.anchorActive : icon === null || icon === void 0 ? void 0 : icon.anchor // point of the icon which will correspond to marker's location
|
|
225
|
+
// shadowAnchor: [4, 62], // the same for the shadow
|
|
226
|
+
// popupAnchor: [0, -16], // point from which the popup should open relative to the iconAnchor
|
|
227
|
+
|
|
228
|
+
});
|
|
229
|
+
var marker = L.marker(L.latLng(position[0], position[1]), {
|
|
230
|
+
icon: markerIcon,
|
|
231
|
+
riseOnHover: true,
|
|
232
|
+
interactive: isInteractive
|
|
233
|
+
}).addTo(map);
|
|
234
|
+
|
|
235
|
+
if (isInteractive) {
|
|
236
|
+
marker.on('click', function () {
|
|
237
|
+
var _a;
|
|
238
|
+
|
|
239
|
+
(_a = mapSettings.onMarkerClick) === null || _a === void 0 ? void 0 : _a.call(mapSettings, id);
|
|
240
|
+
});
|
|
241
|
+
} // add marker to markers layer
|
|
242
|
+
|
|
243
|
+
|
|
244
|
+
markersLayerGroup.addLayer(marker);
|
|
245
|
+
|
|
246
|
+
if (L && map && markersLayerGroup) {
|
|
247
|
+
if (!isLoaded) {
|
|
248
|
+
// on first load
|
|
249
|
+
(_b = mapSettings.onReady) === null || _b === void 0 ? void 0 : _b.call(mapSettings);
|
|
250
|
+
setLoaded(true);
|
|
251
|
+
|
|
252
|
+
if (mapSettings.activeMarkerId) {
|
|
253
|
+
prevMarkerId.current = mapSettings.activeMarkerId;
|
|
254
|
+
}
|
|
255
|
+
} else {
|
|
256
|
+
// check if active marker changed
|
|
257
|
+
if (mapSettings.activeMarkerId && mapSettings.activeMarkerId !== (prevMarkerId === null || prevMarkerId === void 0 ? void 0 : prevMarkerId.current)) {
|
|
258
|
+
prevMarkerId.current = mapSettings.activeMarkerId;
|
|
259
|
+
(_c = mapSettings.onActiveMarkerChanged) === null || _c === void 0 ? void 0 : _c.call(mapSettings, {
|
|
260
|
+
markerId: mapSettings.activeMarkerId
|
|
261
|
+
});
|
|
262
|
+
}
|
|
263
|
+
}
|
|
264
|
+
}
|
|
265
|
+
});
|
|
266
|
+
|
|
267
|
+
var handleMapMove = function () {
|
|
268
|
+
var _a, _b, _c;
|
|
269
|
+
|
|
270
|
+
if (!map) return;
|
|
271
|
+
if (!mapSettings.restrictToMarkersArea) return;
|
|
272
|
+
var markersBounds = (_a = markersLayerGroup === null || markersLayerGroup === void 0 ? void 0 : markersLayerGroup.getBounds()) === null || _a === void 0 ? void 0 : _a.pad(0.3);
|
|
273
|
+
if (!markersBounds || !markersBounds.isValid()) return;
|
|
274
|
+
var northEdge = markersBounds.getNorth();
|
|
275
|
+
var eastEdge = markersBounds.getEast();
|
|
276
|
+
var southEdge = markersBounds.getSouth();
|
|
277
|
+
var westEdge = markersBounds.getWest();
|
|
278
|
+
var center = map.getCenter();
|
|
279
|
+
var newLat = null;
|
|
280
|
+
var newLng = null; // on latitude overshoot
|
|
281
|
+
|
|
282
|
+
if ((center.lat < southEdge || center.lat > northEdge) && lastValidCenter.current) {
|
|
283
|
+
newLat = (_b = lastValidCenter.current) === null || _b === void 0 ? void 0 : _b.lat;
|
|
284
|
+
} // on longitude overshoot
|
|
285
|
+
|
|
286
|
+
|
|
287
|
+
if ((center.lng < westEdge || center.lng > eastEdge) && lastValidCenter.current) {
|
|
288
|
+
newLng = (_c = lastValidCenter.current) === null || _c === void 0 ? void 0 : _c.lng;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
if (newLng !== null || newLat !== null) {
|
|
292
|
+
if (newLng !== null) center.lng = newLng;
|
|
293
|
+
if (newLat !== null) center.lat = newLat;
|
|
294
|
+
map.panTo(center, {
|
|
295
|
+
animate: false
|
|
296
|
+
});
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
lastValidCenter.current = center;
|
|
300
|
+
}; // if set restrict map movement to markers
|
|
301
|
+
|
|
302
|
+
|
|
303
|
+
if (mapSettings.restrictToMarkersArea) {
|
|
304
|
+
var markersBounds = markersLayerGroup === null || markersLayerGroup === void 0 ? void 0 : markersLayerGroup.getBounds();
|
|
305
|
+
|
|
306
|
+
if (markersBounds.isValid()) {
|
|
307
|
+
map.on('drag', handleMapMove);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
return function () {
|
|
312
|
+
lastValidCenter.current = null;
|
|
313
|
+
map === null || map === void 0 ? void 0 : map.off('drag', handleMapMove);
|
|
314
|
+
};
|
|
315
|
+
}, [L, isLoaded, map, mapSettings, mapSettings.markers, markersLayerGroup]);
|
|
316
|
+
/**
|
|
317
|
+
* Adjust zoom to show all markers
|
|
318
|
+
*/
|
|
319
|
+
|
|
320
|
+
var showAllMarkers = useCallback(function () {
|
|
321
|
+
if (map && markersLayerGroup) {
|
|
322
|
+
map.fitBounds(markersLayerGroup.getBounds(), {
|
|
323
|
+
padding: L.point(mapSettings.fitBoundsPadding)
|
|
324
|
+
});
|
|
325
|
+
}
|
|
326
|
+
}, [L, map, mapSettings.fitBoundsPadding, markersLayerGroup]);
|
|
327
|
+
/**
|
|
328
|
+
* Pan and zoom to active marker position on map
|
|
329
|
+
* @param zoom
|
|
330
|
+
*/
|
|
331
|
+
|
|
332
|
+
var flyToActive = useCallback(function (zoom) {
|
|
333
|
+
var _a;
|
|
334
|
+
|
|
335
|
+
var mapZoom = zoom || mapSettings.zoom;
|
|
336
|
+
var marker = (_a = mapSettings.markers) === null || _a === void 0 ? void 0 : _a.find(function (m) {
|
|
337
|
+
return m.id === mapSettings.activeMarkerId;
|
|
338
|
+
});
|
|
339
|
+
if (marker) map === null || map === void 0 ? void 0 : map.flyTo(marker.position, mapZoom);
|
|
340
|
+
}, [map, mapSettings.activeMarkerId, mapSettings.markers, mapSettings.zoom]);
|
|
341
|
+
/**
|
|
342
|
+
* Pan and zoom to marker position on map
|
|
343
|
+
* @param position
|
|
344
|
+
* @param zoom
|
|
345
|
+
*/
|
|
346
|
+
|
|
347
|
+
var flyToPosition = useCallback(function (position, zoom) {
|
|
348
|
+
var mapZoom = zoom || mapSettings.zoom;
|
|
349
|
+
if (position) map === null || map === void 0 ? void 0 : map.flyTo(position, mapZoom);else flyToActive(mapZoom);
|
|
350
|
+
}, [flyToActive, map, mapSettings.zoom]);
|
|
351
|
+
/**
|
|
352
|
+
* Pan to marker position on map
|
|
353
|
+
* @param position
|
|
354
|
+
*/
|
|
355
|
+
|
|
356
|
+
var panToPosition = useCallback(function (position) {
|
|
357
|
+
if (position) map === null || map === void 0 ? void 0 : map.panTo(position);
|
|
358
|
+
}, [map]);
|
|
359
|
+
/** Recalculate map size */
|
|
360
|
+
|
|
361
|
+
var recalculateMapSize = useCallback(function () {
|
|
362
|
+
map === null || map === void 0 ? void 0 : map.invalidateSize();
|
|
363
|
+
}, [map]);
|
|
364
|
+
var getCurrentZoom = useCallback(function () {
|
|
365
|
+
return (map === null || map === void 0 ? void 0 : map.getZoom()) || mapSettings.zoom;
|
|
366
|
+
}, [map, mapSettings.zoom]);
|
|
367
|
+
return {
|
|
368
|
+
setContainer: setContainer,
|
|
369
|
+
flyToActive: flyToActive,
|
|
370
|
+
flyToPosition: flyToPosition,
|
|
371
|
+
panToPosition: panToPosition,
|
|
372
|
+
showAllMarkers: showAllMarkers,
|
|
373
|
+
recalculateMapSize: recalculateMapSize,
|
|
374
|
+
getCurrentZoom: getCurrentZoom,
|
|
375
|
+
isLoaded: isLoaded
|
|
376
|
+
};
|
|
377
|
+
};
|
|
378
|
+
|
|
379
|
+
var useGeolocation = function (enableHighAccuracy, autostart) {
|
|
380
|
+
if (enableHighAccuracy === void 0) {
|
|
381
|
+
enableHighAccuracy = true;
|
|
382
|
+
}
|
|
383
|
+
|
|
384
|
+
if (autostart === void 0) {
|
|
385
|
+
autostart = true;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
var _a = useState(),
|
|
389
|
+
isSupported = _a[0],
|
|
390
|
+
setIsSupported = _a[1];
|
|
391
|
+
|
|
392
|
+
var _b = useState(),
|
|
393
|
+
isEnabled = _b[0],
|
|
394
|
+
setIsEnabled = _b[1];
|
|
395
|
+
|
|
396
|
+
var _c = useState(),
|
|
397
|
+
location = _c[0],
|
|
398
|
+
setLocation = _c[1];
|
|
399
|
+
|
|
400
|
+
var _d = useState(),
|
|
401
|
+
error = _d[0],
|
|
402
|
+
setError = _d[1];
|
|
403
|
+
|
|
404
|
+
var watchRef = useRef();
|
|
405
|
+
useEffect(function () {
|
|
406
|
+
setIsSupported('geolocation' in navigator);
|
|
407
|
+
}, []);
|
|
408
|
+
var cancel = useCallback(function () {
|
|
409
|
+
setIsEnabled(false);
|
|
410
|
+
|
|
411
|
+
if (watchRef.current) {
|
|
412
|
+
navigator.geolocation.clearWatch(watchRef.current);
|
|
413
|
+
}
|
|
414
|
+
}, []);
|
|
415
|
+
useEffect(function () {
|
|
416
|
+
if (!autostart || !('geolocation' in navigator)) {
|
|
417
|
+
return;
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
cancel();
|
|
421
|
+
navigator.geolocation.watchPosition(handleSuccess, handleError, {
|
|
422
|
+
enableHighAccuracy: enableHighAccuracy
|
|
423
|
+
});
|
|
424
|
+
setIsEnabled(true);
|
|
425
|
+
var watch = watchRef.current;
|
|
426
|
+
return function () {
|
|
427
|
+
if (watch) {
|
|
428
|
+
setIsEnabled(false);
|
|
429
|
+
navigator.geolocation.clearWatch(watch);
|
|
430
|
+
}
|
|
431
|
+
};
|
|
432
|
+
}, [autostart, cancel, enableHighAccuracy]);
|
|
433
|
+
var reset = useCallback(function () {
|
|
434
|
+
return new Promise(function (resolve, reject) {
|
|
435
|
+
cancel();
|
|
436
|
+
setIsEnabled(false);
|
|
437
|
+
navigator.geolocation.watchPosition(function (position) {
|
|
438
|
+
handleSuccess(position);
|
|
439
|
+
resolve(position);
|
|
440
|
+
}, function (err) {
|
|
441
|
+
handleError(err);
|
|
442
|
+
reject(err);
|
|
443
|
+
}, {
|
|
444
|
+
enableHighAccuracy: enableHighAccuracy
|
|
445
|
+
});
|
|
446
|
+
setIsEnabled(true);
|
|
447
|
+
});
|
|
448
|
+
}, [cancel, enableHighAccuracy]);
|
|
449
|
+
|
|
450
|
+
var handleSuccess = function (position) {
|
|
451
|
+
setLocation(position);
|
|
452
|
+
};
|
|
453
|
+
|
|
454
|
+
var handleError = function (error) {
|
|
455
|
+
setIsEnabled(false);
|
|
456
|
+
console.log(error);
|
|
457
|
+
setError(error);
|
|
458
|
+
};
|
|
459
|
+
|
|
460
|
+
return {
|
|
461
|
+
isSupported: isSupported,
|
|
462
|
+
isEnabled: isEnabled,
|
|
463
|
+
location: location,
|
|
464
|
+
error: error,
|
|
465
|
+
reset: reset,
|
|
466
|
+
cancel: cancel
|
|
467
|
+
};
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
export { useDebounce as a, useLazyInput as b, useLeafletMap as c, useGeolocation as d, useTimeout as u };
|
|
471
|
+
//# sourceMappingURL=useGeolocation-c99d76bd.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useGeolocation-c99d76bd.js","sources":["../../src/utils/useTimeout.ts","../../src/utils/useDebounce.ts","../../src/utils/useLazyInput.ts","../../src/utils/useLeafletMap.tsx","../../src/utils/useGeolocation.ts"],"sourcesContent":["import { useCallback, useEffect, useRef } from 'react';\n\nconst useTimeout = (callback: () => void, delay: number) => {\n const callbackRef = useRef(callback);\n const timeoutRef = useRef<number>();\n\n useEffect(() => {\n callbackRef.current = callback;\n }, [callback]);\n\n const set = useCallback(() => {\n timeoutRef.current = window.setTimeout(\n () => callbackRef.current?.(),\n delay\n );\n }, [delay]);\n\n const clear = useCallback(() => {\n timeoutRef.current && window.clearTimeout(timeoutRef.current);\n }, []);\n\n useEffect(() => {\n set();\n return clear;\n }, [delay, set, clear]);\n\n const reset = useCallback(() => {\n clear();\n set();\n }, [clear, set]);\n\n return { clear, reset };\n};\n\nexport default useTimeout;\n","import { DependencyList, useEffect } from 'react';\nimport useTimeout from './useTimeout';\n\nconst useDebounce = (\n callback: () => void,\n delay: number,\n deps: DependencyList\n) => {\n const { clear, reset } = useTimeout(callback, delay);\n\n useEffect(reset, [...deps, reset]);\n\n // eslint-disable-next-line react-hooks/exhaustive-deps\n useEffect(clear, []);\n\n return {\n clear,\n reset,\n };\n};\n\nexport default useDebounce;\n","import { useCallback, useState } from 'react';\nimport useDebounce from './useDebounce';\n\nconst useLazyInput = (\n callback: (value: string) => void,\n initial: string,\n delay = 600\n) => {\n const [value, setValue] = useState<string>(initial);\n const { clear } = useDebounce(() => callback?.(value), delay, [value]);\n\n const update = useCallback((value: string, withoutDelay = false) => {\n setValue(value);\n if (withoutDelay) {\n clear();\n callback?.(value);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n const forceUpdate = useCallback(() => {\n clear();\n callback?.(value);\n }, [callback, clear, value]);\n\n return {\n update,\n value,\n forceUpdate,\n };\n};\n\nexport default useLazyInput;\n","import { useCallback, useEffect, useMemo, useRef, useState } from 'react';\nimport {\n FeatureGroup,\n LatLng,\n LeafletMouseEvent,\n Map,\n Marker,\n MarkerOptions,\n} from 'leaflet';\n\nexport interface LeafletMapSettings {\n center: [number, number];\n zoom: number;\n minZoom?: number;\n maxZoom?: number;\n touchZoom: boolean;\n scrollWheelZoom: boolean;\n onlyScrollOnFocus: boolean;\n url: string;\n attribution: string;\n markers: Array<LeafletMapMarker>;\n activeMarkerId?: string;\n fitBoundsPadding: [number, number];\n restrictToMarkersArea?: boolean;\n showZoomControls?: boolean;\n zoomControlPosition?: 'bottomleft' | 'bottomright' | 'topleft' | 'topright';\n onMarkerClick?: (markerId: string) => void;\n onActiveMarkerChanged?: (props: { markerId: string }) => void;\n onReady?: () => void;\n onClick?: (ev: LeafletMouseEvent, currentZoom: number) => void;\n}\n\nexport interface LeafletMapMarker {\n id: string;\n position: [number, number];\n isInteractive?: boolean;\n icon?: {\n url: string;\n size: [number, number];\n anchor: [number, number];\n\n sizeActive: [number, number];\n anchorActive: [number, number];\n };\n popup?: {\n text: string;\n };\n}\n\nconst useLeafletMap = (settings: Partial<LeafletMapSettings>) => {\n const [container, setContainer] = useState<HTMLElement | null>(null);\n const [L, setLeaflet] = useState<any>(null);\n const [map, setMap] = useState<Map | null>(null);\n const [markersLayerGroup, setMarkersLayerGroup] =\n useState<FeatureGroup<any> | null>(null);\n const prevMarkerId = useRef<string | null>(null);\n const [isLoaded, setLoaded] = useState<boolean>(false);\n const isRenderedRef = useRef<boolean>(false);\n\n const lastValidCenter = useRef<LatLng | null>(null);\n\n const mapSettings: LeafletMapSettings = useMemo(() => {\n // removing undefined keys\n Object.keys(settings).forEach((key) => {\n if (settings[key] === undefined) {\n delete settings[key];\n }\n });\n\n return {\n center: [0, 0],\n zoom: 2.5,\n touchZoom: true,\n scrollWheelZoom: false,\n showZoomControls: true,\n zoomControlPosition: 'topleft',\n onlyScrollOnFocus: true,\n url: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',\n attribution:\n '© <a href=\"http://osm.org/copyright\">OpenStreetMap</a> contributors',\n markers: [],\n fitBoundsPadding: [20, 20], // 0 = TopLeft, 1 = BottomRight\n ...settings,\n };\n }, [settings]);\n\n useEffect(() => {\n if (!container) return;\n\n const init = async () => {\n if (L || !container || isRenderedRef.current) return;\n isRenderedRef.current = true;\n\n // init leaflet\n const leaflet = await import('leaflet');\n if (!leaflet) return;\n\n // set leaflet state\n setLeaflet(leaflet);\n\n // setup map\n const map = leaflet.map(container, {\n center: mapSettings.center,\n zoom: mapSettings.zoom,\n touchZoom: mapSettings.touchZoom,\n scrollWheelZoom: mapSettings.scrollWheelZoom,\n zoomControl: false,\n minZoom: mapSettings.minZoom,\n maxZoom: mapSettings.maxZoom,\n });\n\n if (mapSettings.showZoomControls) {\n leaflet.control\n .zoom({\n position: mapSettings.zoomControlPosition,\n })\n .addTo(map);\n }\n\n // activate map scrolling on focus\n map.once('focus', () => {\n if (mapSettings.onlyScrollOnFocus) {\n map.scrollWheelZoom.enable();\n }\n });\n\n // deactivate map scrolling on focus is lost\n map.once('blur', () => {\n if (mapSettings.onlyScrollOnFocus) {\n map.scrollWheelZoom.disable();\n }\n });\n\n map.on('click', (ev) => {\n mapSettings.onClick?.(ev as LeafletMouseEvent, map.getZoom());\n });\n\n // set map state\n setMap(map);\n\n // add map layer from map provider\n leaflet\n .tileLayer(mapSettings.url, {\n attribution: mapSettings.attribution,\n })\n .addTo(map);\n\n // setup layer for markers\n const group = new leaflet.FeatureGroup();\n group.addTo(map);\n\n setMarkersLayerGroup(group);\n };\n\n init();\n }, [\n L,\n container,\n mapSettings,\n mapSettings.attribution,\n mapSettings.center,\n mapSettings.onlyScrollOnFocus,\n mapSettings.scrollWheelZoom,\n mapSettings.touchZoom,\n mapSettings.url,\n mapSettings.zoom,\n ]);\n\n useEffect(() => {\n if (!map || !markersLayerGroup) return;\n\n markersLayerGroup.clearLayers();\n mapSettings.markers?.forEach(\n ({ position, icon, id, isInteractive }) => {\n if (!icon?.url || !icon?.size || !position) return;\n const isActive = id === mapSettings.activeMarkerId;\n\n const markerIcon = L.icon({\n iconUrl: icon.url,\n\n iconSize: isActive ? icon.sizeActive : icon.size, // size of the icon\n // shadowSize: [50, 64], // size of the shadow\n iconAnchor: isActive ? icon.anchorActive : icon?.anchor, // point of the icon which will correspond to marker's location\n // shadowAnchor: [4, 62], // the same for the shadow\n // popupAnchor: [0, -16], // point from which the popup should open relative to the iconAnchor\n });\n\n const marker: Marker = L.marker(\n L.latLng(position[0], position[1]),\n {\n icon: markerIcon,\n riseOnHover: true,\n interactive: isInteractive,\n } as MarkerOptions\n ).addTo(map);\n\n if (isInteractive) {\n marker.on('click', () => {\n mapSettings.onMarkerClick?.(id);\n });\n }\n\n // add marker to markers layer\n markersLayerGroup.addLayer(marker);\n\n if (L && map && markersLayerGroup) {\n if (!isLoaded) {\n // on first load\n mapSettings.onReady?.();\n setLoaded(true);\n if (mapSettings.activeMarkerId) {\n prevMarkerId.current = mapSettings.activeMarkerId;\n }\n } else {\n // check if active marker changed\n if (\n mapSettings.activeMarkerId &&\n mapSettings.activeMarkerId !== prevMarkerId?.current\n ) {\n prevMarkerId.current = mapSettings.activeMarkerId;\n\n mapSettings.onActiveMarkerChanged?.({\n markerId: mapSettings.activeMarkerId,\n });\n }\n }\n }\n }\n );\n\n const handleMapMove = () => {\n if (!map) return;\n if (!mapSettings.restrictToMarkersArea) return;\n\n const markersBounds = markersLayerGroup?.getBounds()?.pad(0.3);\n if (!markersBounds || !markersBounds.isValid()) return;\n\n const northEdge = markersBounds.getNorth();\n const eastEdge = markersBounds.getEast();\n const southEdge = markersBounds.getSouth();\n const westEdge = markersBounds.getWest();\n\n const center = map.getCenter();\n let newLat: number | null = null;\n let newLng: number | null = null;\n\n // on latitude overshoot\n if (\n (center.lat < southEdge || center.lat > northEdge) &&\n lastValidCenter.current\n ) {\n newLat = lastValidCenter.current?.lat;\n }\n\n // on longitude overshoot\n if (\n (center.lng < westEdge || center.lng > eastEdge) &&\n lastValidCenter.current\n ) {\n newLng = lastValidCenter.current?.lng;\n }\n\n if (newLng !== null || newLat !== null) {\n if (newLng !== null) center.lng = newLng;\n if (newLat !== null) center.lat = newLat;\n\n map.panTo(center, { animate: false });\n }\n\n lastValidCenter.current = center;\n };\n\n // if set restrict map movement to markers\n if (mapSettings.restrictToMarkersArea) {\n const markersBounds = markersLayerGroup?.getBounds();\n\n if (markersBounds.isValid()) {\n map.on('drag', handleMapMove);\n }\n }\n\n return () => {\n lastValidCenter.current = null;\n map?.off('drag', handleMapMove);\n };\n }, [L, isLoaded, map, mapSettings, mapSettings.markers, markersLayerGroup]);\n\n /**\n * Adjust zoom to show all markers\n */\n const showAllMarkers = useCallback(() => {\n if (map && markersLayerGroup) {\n map.fitBounds(markersLayerGroup.getBounds(), {\n padding: L.point(mapSettings.fitBoundsPadding),\n });\n }\n }, [L, map, mapSettings.fitBoundsPadding, markersLayerGroup]);\n\n /**\n * Pan and zoom to active marker position on map\n * @param zoom\n */\n const flyToActive = useCallback(\n (zoom?: number) => {\n const mapZoom = zoom || mapSettings.zoom;\n const marker = mapSettings.markers?.find(\n (m) => m.id === mapSettings.activeMarkerId\n );\n if (marker) map?.flyTo(marker.position, mapZoom);\n },\n [map, mapSettings.activeMarkerId, mapSettings.markers, mapSettings.zoom]\n );\n\n /**\n * Pan and zoom to marker position on map\n * @param position\n * @param zoom\n */\n const flyToPosition = useCallback(\n (position?: [number, number], zoom?: number) => {\n const mapZoom = zoom || mapSettings.zoom;\n\n if (position) map?.flyTo(position, mapZoom);\n else flyToActive(mapZoom);\n },\n [flyToActive, map, mapSettings.zoom]\n );\n\n /**\n * Pan to marker position on map\n * @param position\n */\n const panToPosition = useCallback(\n (position?: [number, number]) => {\n if (position) map?.panTo(position);\n },\n [map]\n );\n\n /** Recalculate map size */\n const recalculateMapSize = useCallback(() => {\n map?.invalidateSize();\n }, [map]);\n\n const getCurrentZoom = useCallback(() => {\n return map?.getZoom() || mapSettings.zoom;\n }, [map, mapSettings.zoom]);\n\n return {\n setContainer,\n flyToActive,\n flyToPosition,\n panToPosition,\n showAllMarkers,\n recalculateMapSize,\n getCurrentZoom,\n isLoaded,\n };\n};\n\nexport default useLeafletMap;\n","import { useCallback, useEffect, useRef, useState } from 'react';\n\nconst useGeolocation = (enableHighAccuracy = true, autostart = true) => {\n const [isSupported, setIsSupported] = useState<boolean>();\n const [isEnabled, setIsEnabled] = useState<boolean>();\n const [location, setLocation] = useState<GeolocationPosition>();\n const [error, setError] = useState<GeolocationPositionError>();\n const watchRef = useRef<number | null>();\n\n useEffect(() => {\n setIsSupported('geolocation' in navigator);\n }, []);\n\n const cancel = useCallback(() => {\n setIsEnabled(false);\n if (watchRef.current) {\n navigator.geolocation.clearWatch(watchRef.current);\n }\n }, []);\n\n useEffect(() => {\n if (!autostart || !('geolocation' in navigator)) {\n return;\n }\n\n cancel();\n navigator.geolocation.watchPosition(handleSuccess, handleError, {\n enableHighAccuracy,\n });\n setIsEnabled(true);\n const watch = watchRef.current;\n\n return () => {\n if (watch) {\n setIsEnabled(false);\n navigator.geolocation.clearWatch(watch);\n }\n };\n }, [autostart, cancel, enableHighAccuracy]);\n\n const reset = useCallback(() => {\n return new Promise<GeolocationPosition>((resolve, reject) => {\n cancel();\n setIsEnabled(false);\n navigator.geolocation.watchPosition(\n (position) => {\n handleSuccess(position);\n resolve(position);\n },\n (err) => {\n handleError(err);\n reject(err);\n },\n {\n enableHighAccuracy,\n }\n );\n setIsEnabled(true);\n });\n }, [cancel, enableHighAccuracy]);\n\n const handleSuccess = (position: GeolocationPosition) => {\n setLocation(position);\n };\n\n const handleError = (error: GeolocationPositionError) => {\n setIsEnabled(false);\n console.log(error);\n\n setError(error);\n };\n\n return { isSupported, isEnabled, location, error, reset, cancel };\n};\n\nexport default useGeolocation;\n"],"names":["useTimeout","callback","delay","callbackRef","useRef","timeoutRef","useEffect","current","set","useCallback","window","setTimeout","_a","call","clear","clearTimeout","reset","useDebounce","deps","__spreadArray","useLazyInput","initial","useState","value","setValue","update","withoutDelay","forceUpdate","useLeafletMap","settings","container","setContainer","_b","L","setLeaflet","_c","map","setMap","_d","markersLayerGroup","setMarkersLayerGroup","prevMarkerId","_e","isLoaded","setLoaded","isRenderedRef","lastValidCenter","mapSettings","useMemo","Object","keys","forEach","key","undefined","__assign","center","zoom","touchZoom","scrollWheelZoom","showZoomControls","zoomControlPosition","onlyScrollOnFocus","url","attribution","markers","fitBoundsPadding","init","__awaiter","leaflet","sent","zoomControl","minZoom","maxZoom","control","position","addTo","once","enable","disable","on","ev","onClick","getZoom","tileLayer","group","FeatureGroup","clearLayers","icon","id","isInteractive","size","isActive","activeMarkerId","markerIcon","iconUrl","iconSize","sizeActive","iconAnchor","anchorActive","anchor","marker","latLng","riseOnHover","interactive","onMarkerClick","addLayer","onReady","onActiveMarkerChanged","markerId","handleMapMove","restrictToMarkersArea","markersBounds","getBounds","pad","isValid","northEdge","getNorth","eastEdge","getEast","southEdge","getSouth","westEdge","getWest","getCenter","newLat","newLng","lat","lng","panTo","animate","off","showAllMarkers","fitBounds","padding","point","flyToActive","mapZoom","find","m","flyTo","flyToPosition","panToPosition","recalculateMapSize","invalidateSize","getCurrentZoom","useGeolocation","enableHighAccuracy","autostart","isSupported","setIsSupported","isEnabled","setIsEnabled","location","setLocation","error","setError","watchRef","navigator","cancel","geolocation","clearWatch","watchPosition","handleSuccess","handleError","watch","Promise","resolve","reject","err","console","log"],"mappings":";;;AAEA,IAAMA,UAAU,GAAG,UAACC,QAAD,EAAuBC,KAAvB,EAAoC;AACnD,EAAA,IAAMC,WAAW,GAAGC,MAAM,CAACH,QAAD,CAA1B,CAAA;AACA,EAAMI,IAAAA,UAAU,GAAGD,MAAM,EAAzB,CAAA;AAEAE,EAAAA,SAAS,CAAC,YAAA;AACNH,IAAAA,WAAW,CAACI,OAAZ,GAAsBN,QAAtB,CAAA;AACH,GAFQ,EAEN,CAACA,QAAD,CAFM,CAAT,CAAA;AAIA,EAAA,IAAMO,GAAG,GAAGC,WAAW,CAAC,YAAA;AACpBJ,IAAAA,UAAU,CAACE,OAAX,GAAqBG,MAAM,CAACC,UAAP,CACjB,YAAM;AAAA,MAAA,IAAAC,EAAA,CAAA;;AAAA,MAAA,OAAA,MAAA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emo } from 'react';
|
|
2
|
+
import { m as mq } from './styles-eca3acc8.js';
|
|
3
|
+
|
|
4
|
+
var isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined'; // *****************
|
|
5
|
+
// useBreakpoint
|
|
6
|
+
// *****************
|
|
7
|
+
|
|
8
|
+
var checkMq = function (cmq, checkMqs) {
|
|
9
|
+
return isBrowser && (checkMqs.length <= 0 || checkMqs.indexOf(cmq) > -1) && (cmq !== 'small' ? window.matchMedia(mq[cmq]).matches : true);
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
var getMediaQuery = function (checkMqs) {
|
|
13
|
+
if (checkMq('xxlarge', checkMqs)) {
|
|
14
|
+
return 'xxlarge';
|
|
15
|
+
} else if (checkMq('xlarge', checkMqs)) {
|
|
16
|
+
return 'xlarge';
|
|
17
|
+
} else if (checkMq('large', checkMqs)) {
|
|
18
|
+
return 'large';
|
|
19
|
+
} else if (checkMq('semilarge', checkMqs)) {
|
|
20
|
+
return 'semilarge';
|
|
21
|
+
} else if (checkMq('medium', checkMqs)) {
|
|
22
|
+
return 'medium';
|
|
23
|
+
} else {
|
|
24
|
+
return 'small';
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
var getMediaQueries = function () {
|
|
28
|
+
return {
|
|
29
|
+
small: true,
|
|
30
|
+
medium: window.matchMedia(mq['medium']).matches,
|
|
31
|
+
semilarge: window.matchMedia(mq['semilarge']).matches,
|
|
32
|
+
large: window.matchMedia(mq['large']).matches,
|
|
33
|
+
xlarge: window.matchMedia(mq['xlarge']).matches,
|
|
34
|
+
xxlarge: window.matchMedia(mq['xxlarge']).matches
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
|
|
38
|
+
var isEqual = function (currentMqs, newMqs) {
|
|
39
|
+
var isDifferent = false;
|
|
40
|
+
|
|
41
|
+
for (var key in mq) {
|
|
42
|
+
if (currentMqs[key] !== newMqs[key]) {
|
|
43
|
+
isDifferent = true;
|
|
44
|
+
break;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
return !isDifferent;
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
var useMediaQueries = function () {
|
|
52
|
+
var _a = useState({
|
|
53
|
+
small: true,
|
|
54
|
+
medium: false,
|
|
55
|
+
semilarge: false,
|
|
56
|
+
large: false,
|
|
57
|
+
xlarge: false,
|
|
58
|
+
xxlarge: false
|
|
59
|
+
}),
|
|
60
|
+
mediaQueries = _a[0],
|
|
61
|
+
setMediaQueries = _a[1];
|
|
62
|
+
|
|
63
|
+
useEffect(function () {
|
|
64
|
+
var handleResize = function () {
|
|
65
|
+
var newMediaQueries = getMediaQueries();
|
|
66
|
+
setMediaQueries(function (prev) {
|
|
67
|
+
if (!isEqual(prev, newMediaQueries)) {
|
|
68
|
+
return newMediaQueries;
|
|
69
|
+
} else return prev;
|
|
70
|
+
});
|
|
71
|
+
};
|
|
72
|
+
|
|
73
|
+
window.addEventListener('resize', handleResize);
|
|
74
|
+
setMediaQueries(getMediaQueries());
|
|
75
|
+
return function () {
|
|
76
|
+
return window.removeEventListener('resize', handleResize);
|
|
77
|
+
};
|
|
78
|
+
}, []);
|
|
79
|
+
return mediaQueries;
|
|
80
|
+
};
|
|
81
|
+
var useMediaQuery = function (mqs) {
|
|
82
|
+
var checkMqs = useMemo(function () {
|
|
83
|
+
return mqs || [];
|
|
84
|
+
}, [mqs]);
|
|
85
|
+
|
|
86
|
+
var _a = useState(),
|
|
87
|
+
mediaQuery = _a[0],
|
|
88
|
+
setMediaQuery = _a[1];
|
|
89
|
+
|
|
90
|
+
useEffect(function () {
|
|
91
|
+
var handleResize = function () {
|
|
92
|
+
var newMediaQuery = getMediaQuery(checkMqs);
|
|
93
|
+
|
|
94
|
+
if (newMediaQuery !== mediaQuery) {
|
|
95
|
+
setMediaQuery(newMediaQuery);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
window.addEventListener('resize', handleResize);
|
|
100
|
+
setMediaQuery(getMediaQuery(checkMqs));
|
|
101
|
+
return function () {
|
|
102
|
+
return window.removeEventListener('resize', handleResize);
|
|
103
|
+
};
|
|
104
|
+
}, [checkMqs, mediaQuery]);
|
|
105
|
+
return mediaQuery;
|
|
106
|
+
};
|
|
107
|
+
|
|
108
|
+
export { useMediaQueries as a, getMediaQuery as g, isBrowser as i, useMediaQuery as u };
|
|
109
|
+
//# sourceMappingURL=useMediaQuery-07eee3f4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useMediaQuery-07eee3f4.js","sources":["../../src/utils/useMediaQuery.ts"],"sourcesContent":["import { useEffect, useMemo, useState } from 'react';\nimport { MediaQueryType, mq } from './styles';\n\nexport const isBrowser =\n typeof window !== 'undefined' && typeof window.document !== 'undefined';\n\n// *****************\n// useBreakpoint\n// *****************\nconst checkMq = (cmq: MediaQueryType, checkMqs: MediaQueryType[]) => {\n return (\n isBrowser &&\n (checkMqs.length <= 0 || checkMqs.indexOf(cmq) > -1) &&\n (cmq !== 'small' ? window.matchMedia(mq[cmq]).matches : true)\n );\n};\n\nexport const getMediaQuery = (checkMqs: MediaQueryType[]): MediaQueryType => {\n if (checkMq('xxlarge', checkMqs)) {\n return 'xxlarge';\n } else if (checkMq('xlarge', checkMqs)) {\n return 'xlarge';\n } else if (checkMq('large', checkMqs)) {\n return 'large';\n } else if (checkMq('semilarge', checkMqs)) {\n return 'semilarge';\n } else if (checkMq('medium', checkMqs)) {\n return 'medium';\n } else {\n return 'small';\n }\n};\n\nexport const getMediaQueries = (): { [key in MediaQueryType]: boolean } => {\n return {\n small: true,\n medium: window.matchMedia(mq['medium']).matches,\n semilarge: window.matchMedia(mq['semilarge']).matches,\n large: window.matchMedia(mq['large']).matches,\n xlarge: window.matchMedia(mq['xlarge']).matches,\n xxlarge: window.matchMedia(mq['xxlarge']).matches,\n };\n};\n\nconst isEqual = (\n currentMqs: { [key in MediaQueryType]: boolean },\n newMqs: { [key in MediaQueryType]: boolean }\n) => {\n let isDifferent = false;\n\n for (const key in mq) {\n if (currentMqs[key] !== newMqs[key]) {\n isDifferent = true;\n break;\n }\n }\n\n return !isDifferent;\n};\n\nexport const useMediaQueries = () => {\n const [mediaQueries, setMediaQueries] = useState<\n { [key in MediaQueryType]: boolean }\n >({\n small: true,\n medium: false,\n semilarge: false,\n large: false,\n xlarge: false,\n xxlarge: false,\n });\n\n useEffect(() => {\n const handleResize = () => {\n const newMediaQueries = getMediaQueries();\n setMediaQueries((prev) => {\n if (!isEqual(prev, newMediaQueries)) {\n return newMediaQueries;\n } else return prev;\n });\n };\n\n window.addEventListener('resize', handleResize);\n setMediaQueries(getMediaQueries());\n\n return () => window.removeEventListener('resize', handleResize);\n }, []);\n\n return mediaQueries;\n};\n\nexport const useMediaQuery = (mqs?: MediaQueryType[]) => {\n const checkMqs = useMemo(() => mqs || [], [mqs]);\n const [mediaQuery, setMediaQuery] = useState<MediaQueryType | undefined>();\n\n useEffect(() => {\n const handleResize = () => {\n const newMediaQuery = getMediaQuery(checkMqs);\n\n if (newMediaQuery !== mediaQuery) {\n setMediaQuery(newMediaQuery);\n }\n };\n\n window.addEventListener('resize', handleResize);\n setMediaQuery(getMediaQuery(checkMqs));\n\n return () => window.removeEventListener('resize', handleResize);\n }, [checkMqs, mediaQuery]);\n\n return mediaQuery;\n};\n"],"names":["isBrowser","window","document","checkMq","cmq","checkMqs","length","indexOf","matchMedia","mq","matches","getMediaQuery","getMediaQueries","small","medium","semilarge","large","xlarge","xxlarge","isEqual","currentMqs","newMqs","isDifferent","key","useMediaQueries","_a","useState","mediaQueries","setMediaQueries","useEffect","handleResize","newMediaQueries","prev","addEventListener","removeEventListener","useMediaQuery","mqs","useMemo","mediaQuery","setMediaQuery","newMediaQuery"],"mappings":";;;AAGaA,IAAAA,SAAS,GAClB,OAAOC,MAAP,KAAkB,WAAlB,IAAiC,OAAOA,MAAM,CAACC,QAAd,KAA2B;AAGhE;AACA;;AACA,IAAMC,OAAO,GAAG,UAACC,GAAD,EA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