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EAAIsI,UAEpBJ,EAAeW,UAAU7I,EAAIsI,WAGxBQ,EAAAA,IAA2Bd","sources":["Atoms/Image/Image.tsx","Atoms/Links/IconLink.tsx","Organisms/Blocks/SmallHeroBlock.tsx","Organisms/Blocks/EventBlock.tsx","Pages/EventPage/EventOverviewPage.tsx","Shared/Hooks/useOnScreen.js"],"sourcesContent":["import React, { useRef } from 'react';\r\nimport useOnScreen from 'Shared/Hooks/useOnScreen';\r\n\r\ntype PropType = {\r\n src: string;\r\n alt: string;\r\n imgFit?: boolean;\r\n onLoad?: () => void;\r\n usePlaceHolder?: boolean;\r\n title?: string;\r\n fixedWidth?: number;\r\n fixedHeight?: number;\r\n externalRef?: React.RefObject;\r\n};\r\n\r\nconst Image = ({\r\n src,\r\n alt = '',\r\n onLoad,\r\n usePlaceHolder,\r\n title = '',\r\n fixedWidth,\r\n fixedHeight,\r\n externalRef,\r\n}: PropType) => {\r\n const ref = useRef(null);\r\n const onScreen = useOnScreen({ ref: externalRef ? externalRef : ref });\r\n\r\n return onScreen ? (\r\n \r\n ) : usePlaceHolder ? (\r\n
\r\n ) : (\r\n \r\n );\r\n};\r\n\r\nexport default Image;\r\n","import KexIconLoader, { LoadableIcons } from 'Kex/KexIconLoader';\r\nimport KexLink from 'Kex/KexLink';\r\nimport { useState } from 'react';\r\nimport {\r\n animateUnderlineActive,\r\n animateUnderlineNotActive,\r\n} from 'Shared/Common/animateUnderline';\r\nimport { styled } from 'stitches.config';\r\ntype PropTypes = {\r\n whiteText?: boolean;\r\n underline?: boolean;\r\n onClick?: (x?: () => void) => void;\r\n href?: string;\r\n children: string | undefined;\r\n focused?: true;\r\n color?: string;\r\n type?: keyof typeof LoadableIcons;\r\n};\r\n\r\nfunction IconLink({\r\n whiteText = false,\r\n onClick,\r\n href,\r\n children,\r\n focused,\r\n color,\r\n type,\r\n ...rest\r\n}: PropTypes) {\r\n const [linkIsHovered, setLinkIsHovered] = useState(false);\r\n const Icon = KexIconLoader(type ?? 'Arrow');\r\n return (\r\n setLinkIsHovered(true)}\r\n onMouseLeave={() => setLinkIsHovered(false)}\r\n >\r\n \r\n \r\n {children}\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst StyledKexLink = styled(KexLink, {\r\n width: 'fit-content',\r\n display: 'flex',\r\n});\r\n\r\nconst IconWrapper = styled('div', {\r\n display: 'flex',\r\n alignItems: 'center',\r\n m: 'auto',\r\n ml: 2,\r\n});\r\n\r\nconst StyledLinkWrapper = styled('div', {\r\n width: 'fit-content',\r\n});\r\n\r\nconst Text = styled('span', {\r\n m: 'auto',\r\n '&:nth-child(n)[data-whitetext=\"true\"]': { color: '$pureWhite' },\r\n ...animateUnderlineNotActive,\r\n variants: {\r\n linkIsHovered: {\r\n true: {\r\n ...animateUnderlineActive,\r\n },\r\n },\r\n },\r\n});\r\n\r\nexport default styled(IconLink);\r\n","import { H1 } from 'Atoms/Typography/Headings/Heading';\r\nimport ImageModel from 'Models/Assets/ImageModel.interface';\r\nimport { applyEditModeAttr } from 'Shared/Common/Helpers';\r\nimport useMedia from 'Shared/Hooks/useMedia';\r\nimport { styled } from 'stitches.config';\r\nimport { mediaQueryTypes } from 'Theme/Settings/mediaQueries';\r\nimport ContentContainer from 'Molecules/ContentContainer/ContentContainer';\r\n\r\ntype HeroModuleType = {\r\n image: ImageModel;\r\n inEditMode?: boolean;\r\n header?: string;\r\n overlay?: boolean;\r\n};\r\n\r\nfunction SmallHeroBlock({\r\n header,\r\n inEditMode,\r\n image,\r\n overlay = false,\r\n}: HeroModuleType) {\r\n const isMobile = useMedia(mediaQueryTypes.mediaMaxMedium);\r\n\r\n return (\r\n \r\n \r\n \r\n \r\n \r\n {header}\r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nconst ImageContainer = styled('div', {\r\n position: 'relative',\r\n display: 'flex',\r\n backgroundRepeat: 'no-repeat',\r\n backgroundSize: 'cover',\r\n color: '$heroTextPrimary',\r\n h: 54,\r\n '@mediaMinLarge': {\r\n h: 75,\r\n },\r\n variants: {\r\n overlay: {\r\n true: {\r\n '&:before': {\r\n position: 'absolute',\r\n content: '\"\"',\r\n top: 0,\r\n right: 0,\r\n bottom: 0,\r\n left: 0,\r\n backgroundColor: '$colors$backgroundPrimary',\r\n opacity: 0.4,\r\n },\r\n },\r\n },\r\n },\r\n});\r\n\r\nconst HeroWrapper = styled('div', {\r\n display: 'flex',\r\n height: '100%',\r\n alignItems: 'flex-end',\r\n});\r\n\r\nconst TextContainer = styled('div', {\r\n position: 'relative',\r\n display: 'flex',\r\n flexDirection: 'column',\r\n w: '100%',\r\n justifyContent: 'end',\r\n mt: 11,\r\n mb: 8,\r\n maxW: '$maxWidthMobile',\r\n '@mediaMinLarge': {\r\n mx: 0,\r\n maxW: 187,\r\n mb: 16,\r\n },\r\n});\r\n\r\nexport default SmallHeroBlock;\r\n","import XHtmlArea from 'Molecules/XHtmlArea/XHtmlArea';\r\nimport { applyEditModeAttr } from 'Shared/Common/Helpers';\r\nimport useMedia from 'Shared/Hooks/useMedia';\r\nimport { styled } from 'stitches.config';\r\nimport { mediaQueryTypes } from 'Theme/Settings/mediaQueries';\r\nimport { baseHeadingStyle } from 'Atoms/Typography/Headings/BaseHeadingStyle';\r\nimport Image from 'Atoms/Image/Image';\r\nimport { useRef } from 'react';\r\nimport IconLink from 'Atoms/Links/IconLink';\r\nimport EventPageModel from 'Models/Pages/EventPage/EventPageModel.interface';\r\nimport { useTranslationData } from 'Shared/Providers/TranslationProvider';\r\n\r\ntype PropTypes = {\r\n content: EventPageModel;\r\n};\r\n\r\nfunction EventBlock({\r\n content: {\r\n heading,\r\n image,\r\n bodyText,\r\n introText,\r\n inEditMode,\r\n url,\r\n isFullyBooked,\r\n startDate,\r\n },\r\n}: PropTypes) {\r\n const isMobile = useMedia(mediaQueryTypes.mediaMaxSmall);\r\n const lazyLoadRef = useRef(null);\r\n const {\r\n eventLabels: { readMore, fullyBooked },\r\n } = useTranslationData();\r\n\r\n return (\r\n \r\n \r\n \r\n {image && (\r\n \r\n {isFullyBooked && {fullyBooked} }\r\n \r\n \r\n )}\r\n\r\n \r\n \r\n {startDate} \r\n\r\n \r\n {heading}\r\n \r\n \r\n \r\n \r\n \r\n {readMore}\r\n \r\n \r\n \r\n \r\n \r\n \r\n );\r\n}\r\n\r\nexport default EventBlock;\r\n\r\nconst CC = styled('div', {\r\n w: '100%',\r\n mx: 'auto',\r\n py: 0,\r\n});\r\n\r\nconst Ribbon = styled('div', {\r\n px: 4,\r\n py: 2,\r\n l: -2,\r\n t: 2,\r\n backgroundColor: '$primaryLight1',\r\n color: '$primary4',\r\n fontFamily: '$fontSecondary500',\r\n position: 'absolute',\r\n});\r\n\r\nconst Root = styled('div', {\r\n h: '100%',\r\n width: '100%',\r\n display: 'flex',\r\n justifyContent: 'center',\r\n mb: 4,\r\n '@mediaMinLarge': {\r\n mb: 20,\r\n },\r\n});\r\n\r\nconst SubHeadingWrapper = styled('div', {\r\n mb: 2,\r\n fs: 6,\r\n color: '$primaryLight3',\r\n lineHeight: '$lh133',\r\n});\r\n\r\nconst BodyWrapper = styled('div', {\r\n mb: 8,\r\n});\r\n\r\nconst Column = styled('div', {\r\n display: 'flex',\r\n flexDirection: 'column',\r\n marginLeft: 'auto',\r\n width: 'auto',\r\n '@mediaMinLarge': {\r\n g: 8,\r\n flexDirection: 'row',\r\n },\r\n});\r\n\r\nconst ImageArea = styled('div', {\r\n width: '100%',\r\n display: 'flex',\r\n position: 'relative',\r\n order: 0,\r\n flexGrow: 0,\r\n flexShrink: 0,\r\n '& img': {\r\n height: 'inherit',\r\n width: 'inherit',\r\n objectFit: 'cover',\r\n aspectRatio: '16/9',\r\n },\r\n height: '238px',\r\n '@mediaMinMedium': {\r\n height: '332px',\r\n },\r\n '@mediaMinLarge': {\r\n w: '528px',\r\n },\r\n});\r\n\r\nconst TextContainer = styled('div', {\r\n display: 'flex',\r\n pt: 5,\r\n mr: 8,\r\n w: '100%',\r\n color: '$textPrimary',\r\n p: 4,\r\n pl: 0,\r\n '@mediaMinLarge': {\r\n alignItems: 'start',\r\n p: 0,\r\n },\r\n});\r\n\r\nconst TextWrapper = styled('div', {\r\n wordBreak: 'break-word',\r\n '@mediaMinLarge': {\r\n width: '416px',\r\n },\r\n width: 'auto',\r\n});\r\n\r\nconst Heading = styled('h2', {\r\n ...baseHeadingStyle,\r\n fs: 12,\r\n lineHeight: '$lh116',\r\n fontFamily: '$fontPrimary400',\r\n mt: 0,\r\n mb: 4,\r\n});\r\n","import EventOverviewPageModel from 'Models/Pages/EventPage/EventOverviewPageModel.interface';\r\nimport ContentContainer from 'Molecules/ContentContainer/ContentContainer';\r\nimport EventBlock from 'Organisms/Blocks/EventBlock';\r\nimport SmallHeroBlock from 'Organisms/Blocks/SmallHeroBlock';\r\nimport useCurrentPage from 'Shared/Hooks/useCurrentPage';\r\nimport { styled } from 'stitches.config';\r\n\r\nfunction EventOverviewPage() {\r\n const { noEventText, events, heroImage, heroHeader } =\r\n useCurrentPage();\r\n\r\n return (\r\n <>\r\n {heroImage && (\r\n \r\n )}\r\n \r\n \r\n {events.length === 0 &&

{noEventText}

}\r\n {events.map((event) => (\r\n \r\n ))}\r\n
\r\n
\r\n \r\n );\r\n}\r\n\r\nconst Root = styled('div', {\r\n p: 4,\r\n mt: 8,\r\n '@mediaMinLarge': {\r\n py: 16,\r\n mt: 4,\r\n },\r\n});\r\n\r\nexport default EventOverviewPage;\r\n","import { useState, useEffect } from 'react';\r\nimport PropTypes from 'prop-types';\r\nimport { IS_SERVER_CONTEXT } from '../Configs/EnvConfig';\r\n\r\nconst useOnScreen = ({ ref, rootMargin = '0px', once = true }) => {\r\n const [isIntersecting, setIntersecting] = useState(false);\r\n const [observerObject, setObserverObject] = useState(false);\r\n\r\n useEffect(() => {\r\n const elm = ref.current;\r\n const observer = new IntersectionObserver(\r\n ([entry]) => {\r\n setIntersecting(entry.isIntersecting);\r\n },\r\n {\r\n rootMargin,\r\n }\r\n );\r\n if (elm) {\r\n observer.observe(elm);\r\n }\r\n setObserverObject(observer);\r\n return () => {\r\n !Object.isEmpty(elm) && observer.unobserve(elm);\r\n };\r\n }, [ref, rootMargin]);\r\n\r\n if (\r\n once &&\r\n isIntersecting &&\r\n observerObject &&\r\n !Object.isEmpty(ref.current)\r\n ) {\r\n observerObject.unobserve(ref.current);\r\n }\r\n\r\n return IS_SERVER_CONTEXT ? true : isIntersecting;\r\n};\r\n\r\nuseOnScreen.propTypes /* remove-proptypes */ = {\r\n ref: PropTypes.shape({ current: PropTypes.element }),\r\n rootMargin: PropTypes.string,\r\n once: PropTypes.bool,\r\n};\r\n\r\nexport default useOnScreen;\r\n"],"names":["src","alt","onLoad","usePlaceHolder","title","fixedWidth","fixedHeight","externalRef","ref","useRef","onScreen","useOnScreen","width","height","StyledKexLink","styled","KexLink","display","IconWrapper","alignItems","m","ml","StyledLinkWrapper","Text","color","animateUnderlineNotActive","variants","linkIsHovered","true","animateUnderlineActive","whiteText","onClick","href","children","type","focused","rest","useState","setLinkIsHovered","Icon","KexIconLoader","onMouseOver","onMouseLeave","fontFamily","underlined","size","rotateLeft","ImageContainer","position","backgroundRepeat","backgroundSize","h","overlay","content","top","right","bottom","left","backgroundColor","opacity","HeroWrapper","TextContainer","flexDirection","w","justifyContent","mt","mb","maxW","mx","header","inEditMode","image","isMobile","useMedia","mediaQueryTypes","css","backgroundImage","mobileSrc","H1","applyEditModeAttr","heading","introText","bodyText","url","isFullyBooked","startDate","lazyLoadRef","useTranslationData","eventLabels","readMore","fullyBooked","Root","CC","Column","ImageArea","Ribbon","Image","TextWrapper","SubHeadingWrapper","Heading","BodyWrapper","XHtmlArea","lineHeight","IconLink","py","px","l","t","fs","marginLeft","g","order","flexGrow","flexShrink","objectFit","aspectRatio","pt","mr","p","pl","wordBreak","baseHeadingStyle","useCurrentPage","noEventText","events","heroImage","heroHeader","SmallHeroBlock","ContentContainer","noPadding","length","map","event","pageId","rootMargin","once","isIntersecting","setIntersecting","observerObject","setObserverObject","useEffect","elm","current","observer","IntersectionObserver","entry","observe","Object","isEmpty","unobserve","IS_SERVER_CONTEXT"],"sourceRoot":""}