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