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,CAAAA,EAAAA,EAAAA,SAAAA,EAAU,KACR,GAAI4I,GAAaC,CAAAA,MAAAA,EAAAA,KAAAA,EAAAA,EAAalH,QAAQ,IAAK,GAAI,CAC7C,IAAMoI,EAAiBlK,SAASmK,cAAc,CAACnB,EAAYlH,QAAQ,EAC/DoI,GACFA,EAAeE,cAAc,CAAC,CAAEC,SAAU,QAAS,EAEvD,CACF,EAAG,CAACtB,EAAWC,EAAYlH,QAAQ,CAAC,EAGlC,GAAAM,EAAA8B,IAAA,EAACoG,EAAAA,CAAUA,CAAAA,CACT1N,MAAOoN,EACPO,OAAQf,EACRgB,WAAYf,EACZgB,WAAYf,EACZE,cAAeA,EACfC,WAAYA,EACZC,WAAYA,EACZY,SAAUtB,EAAYnH,MAAM,CAC5BgH,WAAYA,EACZ0B,aAAY,GACZpB,OAAQA,YAER,GAAAnH,EAAAC,GAAA,EAACuI,EAAAA,CAAcA,CAAAA,CAAE,GAAGvB,EAAWpH,MAAM,GAEpCkH,MAAAA,EAAAA,KAAAA,EAAAA,EAAiB0B,GAAG,CAAC,CAACC,EAASC,IAC9B,GAAA3I,EAAAC,GAAA,EAAC2I,EAAAA,CAAqBA,CAAAA,CAEpBF,QAASA,GADJ,WAAavO,MAAA,CAAFwO,KAInBzB,GAAiB,GAAAlH,EAAAC,GAAA,EAAC4I,EAAAA,CAAYA,CAAAA,CAAE,GAAG3B,EAAcrH,MAAM,KAG9D","sources":["webpack://_N_E/?3208","webpack://_N_E/./components/countdown-bar/index.tsx","webpack://_N_E/./components/hero-teaser-home/index.tsx","webpack://_N_E/./pages/docfleck/index.tsx","webpack://_N_E/"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/docfleck\",\n function () {\n return require(\"private-next-pages/docfleck/index.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/docfleck\"])\n });\n }\n ","\"use client\";\n\nimport CloseIcon from \"@mui/icons-material/Close\";\nimport { Button, Typography } from \"@mui/material\";\nimport { useTheme } from \"@mui/material/styles\";\nimport useMediaQuery from \"@mui/material/useMediaQuery\";\nimport { Box } from \"@mui/system\";\n\nimport { useEffect, useRef, useState } from \"react\";\n\nimport { ICountdownBannerFields } from \"../../@types/generated/contentful\";\nimport useContentSectionThemeContext from \"../../hooks/useContentSectionThemeContext\";\nimport useLink from \"../../hooks/useLink\";\nimport { ContentSectionThemeContext } from \"../../utils/contexts\";\nimport { withHttps } from \"../../utils/helperFunctions\";\n\nconst CountdownBar: React.FC = (countdownBarFields) => {\n const {\n button,\n title,\n countdownEnd,\n description,\n backgroundColor,\n image,\n buttonColor,\n } = countdownBarFields;\n\n const Ref = useRef(null);\n const theme = useTheme();\n const isSmallScreen = useMediaQuery(theme.breakpoints.down(\"md\"));\n\n const themeContextProvider = useContentSectionThemeContext(backgroundColor);\n const fontColor = useContentSectionThemeContext(backgroundColor).textColor;\n const buttonTextColor = useContentSectionThemeContext(buttonColor).textColor;\n\n const [timeString, setTimeString] = useState(\"\");\n const [currentTime, setCurrentTime] = useState(0);\n const [timeOffset, setTimeOffset] = useState(0);\n const [isClosed, setIsClosed] = useState(false);\n const [isVisible, setIsVisible] = useState(false);\n const [isCmpVisible, setIsCmpVisible] = useState(false);\n const [isOvertime, setIsOvertime] = useState(false);\n\n const endDate = new Date(countdownEnd as string).getTime();\n\n const fetchServerTime = async () =>\n await fetch(\"/api/time\")\n .then((res) => res.json())\n .then((data) => {\n setCurrentTime(parseInt(data.time));\n if (typeof window != \"undefined\") {\n setTimeOffset(window.performance.now());\n }\n handleScroll();\n });\n\n const handleScroll = () => {\n const { innerHeight } = window;\n const { scrollHeight, scrollTop } = document.documentElement;\n const isAtBottom = scrollHeight - innerHeight <= scrollTop + 5;\n\n setIsCmpVisible(isCmpBoxVisible());\n setIsVisible(!isAtBottom);\n };\n\n useEffect(() => {\n fetchServerTime();\n\n window.addEventListener(\"scroll\", handleScroll);\n\n clearTimer();\n\n return () => {\n window.removeEventListener(\"scroll\", handleScroll);\n };\n }, []);\n\n useEffect(() => {\n clearTimer();\n }, [currentTime]);\n\n const updateTimer = () => {\n setIsCmpVisible(isCmpBoxVisible());\n\n const now = window.performance.now();\n if (!isOvertime && now - timeOffset > 3000) {\n fetchServerTime();\n }\n\n const total =\n endDate - (currentTime + window.performance.now() - timeOffset);\n const seconds = Math.floor((total / 1000) % 60);\n const minutes = Math.ceil((total / 1000 / 60) % 60);\n const hours = Math.floor((total / 1000 / 60 / 60) % 24);\n const days = Math.floor(total / 1000 / 60 / 60 / 24);\n\n setIsOvertime(total < 0);\n\n return {\n total,\n days,\n hours,\n minutes,\n seconds,\n };\n };\n\n const isCmpBoxVisible = () => {\n let cmpBox = document.querySelector(\"#cmpwrapper\");\n if (!cmpBox) return false;\n let shadowRoot = cmpBox.shadowRoot;\n if (!shadowRoot) return false;\n let box = shadowRoot.querySelector(\"#cmpbox\") as any;\n if (!box) return false;\n return box.style.display != \"none\";\n };\n\n const startTimer = () => {\n let { total, hours, days, minutes, seconds } = updateTimer();\n if (total >= 0) {\n setTimeString(\n `Angebot endet in ${formatPeriod(days, \"Tage\")} ${formatPeriod(\n hours,\n \"Stunde\"\n )} ${formatPeriod(minutes, \"Minute\")}!`\n );\n }\n };\n\n const clearTimer = () => {\n startTimer();\n if (Ref.current) clearInterval(Ref.current);\n const interval = setInterval(() => {\n startTimer();\n }, 1000);\n Ref.current = interval as any;\n };\n\n let ctaButton;\n const { getLinkProps } = useLink();\n\n if (button) {\n const { link, internal, label, type, ...rest } = button.fields;\n\n const { href, linkTarget } = getLinkProps(link.fields);\n ctaButton = (\n \n {button?.fields.label}\n \n );\n }\n\n const timerElement = (\n \n {timeString}\n \n );\n const closeButton = (\n setIsClosed(true)}\n sx={{\n position: \"absolute\",\n width: \"48px!important\",\n height: \"48px!important\",\n minWidth: \"48px!important\",\n margin: 0,\n backgroundColor,\n borderRadius: \"24px\",\n transform: \"translate(0,-50%)\",\n cursor: \"pointer\",\n right: { xs: \"8px\", md: \"24px\" },\n top: 0,\n \"&:hover\": {\n backgroundColor,\n },\n }}\n >\n \n \n );\n\n const textBox = (\n \n {image && (\n \n )}\n \n \n {title}\n \n {description && (\n \n {description}\n \n )}\n \n \n );\n\n return (\n \n 5000) &&\n !isClosed &&\n !isCmpVisible &&\n !isOvertime &&\n isVisible\n ? \"none\"\n : \"translateY(calc(100% + 24px))\",\n transition: \"transform 1s ease-out\",\n boxShadow: \"0px 2px 4px 1px black\",\n }}\n >\n {textBox}\n \n {isSmallScreen && (\n \n {button && ctaButton}\n \n )}\n {timerElement}\n {!isSmallScreen && (\n {button && ctaButton}\n )}\n \n {closeButton}\n \n \n );\n};\n\nexport default CountdownBar;\n\nfunction formatPeriod(amount: number, label: string): string {\n return amount > 0 ? `${amount} ${label}${amount > 1 ? \"n\" : \"\"}` : \"\";\n}\n","\"use client\";\n\nimport { Options } from \"@contentful/rich-text-react-renderer\";\nimport { BLOCKS } from \"@contentful/rich-text-types\";\nimport { Box, SxProps, Theme, Typography } from \"@mui/material\";\nimport { useTheme } from \"@mui/material/styles\";\n\nimport {\n ImageLoaderPropsWithConfig,\n imageConfigDefault,\n} from \"next/dist/shared/lib/image-config\";\nimport defaultLoader from \"next/dist/shared/lib/image-loader\";\n\nimport { IHeroTeaserHomeFields } from \"../../@types/generated/contentful\";\nimport { withHttps } from \"../../utils/helperFunctions\";\nimport RichTextRenderer from \"../content-section/helper/richTextRenderer\";\nimport CTAButton from \"../cta-button\";\n\n// Overloading default richtext options to display subtext as white\nconst richtextOptions: Options = {\n renderNode: {\n [BLOCKS.PARAGRAPH]: (node, children) => (\n \n {children}\n \n ),\n },\n};\n\n/**\n * Component renders a teaser with up to three background images and a CTA\n * @param {IHeroTeaserHomeFields} props contentful hero teaser home props\n * @returns JSX.Element\n */\nconst HeroTeaserHome = ({\n headline,\n imageSm,\n imageMd,\n imageXl,\n subtext,\n button,\n}: IHeroTeaserHomeFields) => {\n const theme = useTheme();\n\n let heroTeaserHomeStyle: SxProps = {\n width: \"100%\",\n height: \"100%\",\n display: \"flex\",\n alignItems: \"end\",\n justifyContent: \"flex-end\",\n flexDirection: \"colummn\",\n position: \"relative\",\n aspectRatio: {\n xs: \"9/16\",\n sm: \"4/3\",\n lg: \"16/9\",\n },\n \"@supports not (aspect-ratio: 9/16)\": {\n [theme.breakpoints.down(\"sm\")]: {\n height: \"736px\",\n \"> div\": {\n alignSelf: \"flex-end\",\n },\n },\n [theme.breakpoints.between(\"sm\", \"md\")]: {\n height: \"736px\",\n \"> div\": {\n alignSelf: \"flex-end\",\n },\n },\n },\n maxHeight: 736,\n };\n\n const imageLoader = (src: string, width: number) => {\n return defaultLoader({\n src: withHttps(src),\n width,\n config: {\n ...imageConfigDefault,\n domains: [\"images.ctfassets.net\", \"cdn.shopify.com\"],\n },\n } as ImageLoaderPropsWithConfig);\n };\n\n const heroTeaserHomeContentContainerStyle = {\n maxWidth: theme.breakpoints.values.lg,\n boxSizing: \"border-box\",\n paddingX: theme.spacing(2),\n paddingY: theme.spacing(4),\n marginTop: theme.spacing(8),\n textAlign: \"left\",\n padding: {\n xs: theme.spacing(4, 2),\n md: theme.spacing(14, 14, 14, 14),\n },\n marginX: \"auto\",\n zIndex: 1,\n };\n\n const heroTeaserHomeContentLimitingContainerStyle = {\n maxWidth: theme.breakpoints.values.sm,\n backgroundColor:\n theme.components?.HeroTeaserHomeContentContainer.backgroundColor,\n padding: theme.components?.HeroTeaserHomeContentContainer.padding,\n };\n\n return (\n \n \n \n \n \n \n \n \n \n {headline}\n \n\n {subtext && (\n \n )}\n\n {button && (\n \n \n \n )}\n \n \n \n );\n};\n\nexport default HeroTeaserHome;\n","import safeStringify from \"fast-safe-stringify\";\n\nimport type { GetStaticProps, NextPage } from \"next\";\n\nimport React, { useEffect } from \"react\";\n\nimport { ContentfulNavigation } from \"../../@types/contentfulNavigation\";\nimport { IHomepageFields } from \"../../@types/generated/contentful\";\nimport ContentSectionWrapper from \"../../components/content-section-wrapper\";\nimport CountdownBar from \"../../components/countdown-bar\";\nimport HeroTeaserHome from \"../../components/hero-teaser-home\";\nimport PageLayout from \"../../components/page/layout\";\nimport getContentfulHomepage from \"../../utils/contentful/getContentfulHomepage\";\nimport generateTitle from \"../../utils/page/generateTitle\";\nimport getJointPageProperties, {\n JointPageProperties,\n} from \"../../utils/page/getJointPageProperties\";\nimport { DOC_FLECK_TENANT_NAME } from \"../../utils/tenant-names\";\n\ninterface HomepageProps {\n homepage: IHomepageFields;\n isPreview: boolean;\n previewData: any;\n navigation: ContentfulNavigation;\n jointPageProperties: JointPageProperties;\n}\n\nconst Home: NextPage = ({\n homepage,\n isPreview,\n previewData,\n navigation,\n jointPageProperties,\n}) => {\n const { contentSections, seoMetadata, heroTeaser, countdownHome, tenant } =\n homepage;\n const {\n fields: { title },\n } = seoMetadata;\n const { footerProps } = jointPageProperties;\n const {\n logoDark,\n logoLight,\n titleSuffix,\n bannerVisible,\n bannerIcon,\n bannerText,\n } = jointPageProperties.siteSettings;\n\n const fullTitle = generateTitle(title, titleSuffix);\n\n useEffect(() => {\n if (isPreview && previewData?.internal !== \"\") {\n const previewElement = document.getElementById(previewData.internal);\n if (previewElement) {\n previewElement.scrollIntoView({ behavior: \"smooth\" });\n }\n }\n }, [isPreview, previewData.internal]);\n\n return (\n \n \n\n {contentSections?.map((section, i) => (\n \n ))}\n {countdownHome && }\n \n );\n};\n\nexport default Home;\n\n/**\n * This function gets called at build time on server-side to\n * statically pre-fetch the sections rendered on the page\n * @returns props: { homepage } - will be passed to page as props\n */\nexport const getStaticProps: GetStaticProps = async (\n context\n) => {\n const [homepage, jointPageProperties] = await Promise.all([\n getContentfulHomepage({\n isPreview: context.preview || false,\n previewData: context.previewData,\n slug: `${DOC_FLECK_TENANT_NAME}/start`,\n }),\n getJointPageProperties(context, DOC_FLECK_TENANT_NAME),\n ]);\n\n if (!homepage) {\n return { notFound: true };\n }\n\n const propsData = safeStringify({\n homepage: homepage.fields,\n isPreview: context.preview || false,\n previewData: context.previewData || {\n env: process.env.NEXT_PUBLIC_CONTENTFUL_ENV,\n internal: \"\",\n },\n navigation: jointPageProperties.navigation,\n jointPageProperties,\n theme: DOC_FLECK_TENANT_NAME,\n });\n\n const props = JSON.parse(propsData);\n\n // pass page data to the page via props\n return {\n props,\n };\n};\n"],"names":["window","__NEXT_P","push","__webpack_require__","formatPeriod","amount","label","concat","__webpack_exports__","Z","ctaButton","button","title","countdownEnd","description","backgroundColor","image","buttonColor","countdownBarFields","Ref","useRef","theme","useTheme","isSmallScreen","useMediaQuery","breakpoints","down","themeContextProvider","useContentSectionThemeContext","fontColor","textColor","buttonTextColor","timeString","setTimeString","useState","currentTime","setCurrentTime","timeOffset","setTimeOffset","isClosed","setIsClosed","isVisible","setIsVisible","isCmpVisible","setIsCmpVisible","isOvertime","setIsOvertime","endDate","Date","getTime","fetchServerTime","fetch","then","res","json","parseInt","data","time","performance","now","handleScroll","innerHeight","scrollHeight","scrollTop","document","documentElement","isCmpBoxVisible","useEffect","addEventListener","clearTimer","removeEventListener","updateTimer","total","seconds","Math","floor","minutes","ceil","hours","days","cmpBox","querySelector","shadowRoot","box","style","display","startTimer","current","clearInterval","interval","setInterval","getLinkProps","useLink","link","internal","type","rest","fields","href","linkTarget","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","jsx","Button","id","variant","color","target","className","sx","boxShadow","timerElement","Typography","fontSize","xs","md","textAlign","closeButton","onClick","position","width","height","minWidth","margin","borderRadius","transform","cursor","right","top","CloseIcon","textBox","jsxs","Box","justifyContent","alignItems","boxSizing","flexDirection","paddingRight","component","alt","src","withHttps","file","url","marginLeft","marginRight","mt","spacing","maxWidth","ContentSectionThemeContext","Provider","value","bottom","left","padding","pt","pb","zIndex","transition","mb","my","richtextOptions","renderNode","BLOCKS","PARAGRAPH","node","children","marginBottom","headline","imageSm","imageMd","imageXl","subtext","param","heroTeaserHomeStyle","aspectRatio","sm","lg","alignSelf","between","maxHeight","imageLoader","defaultLoader","config","imageConfigDefault","domains","heroTeaserHomeContentContainerStyle","values","paddingX","paddingY","marginTop","marginX","heroTeaserHomeContentLimitingContainerStyle","components","HeroTeaserHomeContentContainer","picture","source","srcSet","media","img","objectFit","objectPosition","RichTextRenderer","richTextDocument","options","CTAButton","HeroTeaserHomeButton","homepage","isPreview","previewData","navigation","jointPageProperties","contentSections","seoMetadata","heroTeaser","countdownHome","tenant","footerProps","logoDark","logoLight","titleSuffix","bannerVisible","bannerIcon","bannerText","siteSettings","fullTitle","generateTitle","previewElement","getElementById","scrollIntoView","behavior","PageLayout","footer","logoHeader","logoFooter","metadata","enableFading","HeroTeaserHome","map","section","i","ContentSectionWrapper","CountdownBar"],"sourceRoot":""}