{ "version": 3, "sources": ["../javascripts/components/hero/hero-shell.tsx", "../javascripts/components/hero/hero-image.tsx", "../javascripts/components/hero/hero-video.tsx"], "sourcesContent": ["import React, { useEffect, useRef } from 'react';\nimport HeroImage from './hero-image';\nimport HeroVideo from './hero-video';\n\ninterface HeroShellProps {\n modifiers?: string;\n parallax?: boolean;\n video?: string;\n imageDesktop?: string;\n imageMobile?: string;\n children: React.ReactNode;\n}\n\nconst HeroShell = ({\n modifiers,\n parallax,\n video,\n imageDesktop,\n imageMobile,\n children,\n}: HeroShellProps) => {\n const heroRef = useRef(null);\n\n const onScroll = () => {\n if (document.documentElement) {\n const offset = document.documentElement.scrollTop * 0.25;\n if (heroRef.current) heroRef.current.style.transform = `translateY(${offset}px)`;\n }\n };\n\n useEffect(() => {\n if (parallax) {\n window.addEventListener('scroll', onScroll);\n } else {\n window.removeEventListener('scroll', onScroll);\n }\n return () => {\n window.removeEventListener('scroll', onScroll);\n };\n }, [parallax]);\n\n return (\n
\n
\n
\n {!video &&
}\n \n
\n
{children}
\n
\n {!video && }\n
\n );\n};\n\nexport default HeroShell;\n", "import React from 'react';\n\ninterface InnerHTMLStyleProps {\n mediaQuery?: string;\n imageSrc?: string;\n}\n\nconst InnerHTMLStyle = ({ mediaQuery, imageSrc }: InnerHTMLStyleProps) => {\n if (!mediaQuery || !imageSrc) return null;\n\n return (\n \n );\n};\n\ninterface HeroImageProps {\n imageDesktop?: string;\n imageMobile?: string;\n}\n\nconst HeroImage = ({ imageDesktop, imageMobile }: HeroImageProps) => (\n <>\n {imageDesktop && }\n {imageMobile && }\n \n);\n\nexport default HeroImage;\n", "import React from 'react';\n\ninterface HeroVideoProps {\n video?: string;\n}\n\nconst HeroVideo = ({ video }: HeroVideoProps) => {\n if (!video) return null;\n\n return (\n
\n \n \n
\n \n
\n );\n};\n\nexport default HeroVideo;\n"], "mappings": "iDAAA,IAAAA,EAAyC,SCAzC,IAAAC,EAAkB,SAOZC,EAAiB,CAAC,CAAE,WAAAC,E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,QAAA,cAAC,OAAI,eAAcT,GACjB,EAAAS,QAAA,cAAC,OAAI,UAAU,QACb,EAAAA,QAAA,cAAC,OAAI,UAAU,cACZ,CAACP,GAAS,EAAAO,QAAA,cAAC,OAAI,UAAU,wBAAwB,IAAKH,EAAS,EAChE,EAAAG,QAAA,cAACC,EAAA,CAAU,MAAOR,EAAO,CAC3B,EACA,EAAAO,QAAA,cAAC,OAAI,UAAU,gBAAgBJ,CAAS,CAC1C,EACC,CAACH,GAAS,EAAAO,QAAA,cAACE,EAAA,CAAU,aAAcR,EAAc,YAAaC,EAAa,CAC9E,CAEJ,EAEOQ,EAAQb", "names": ["import_react", "import_react", "InnerHTMLStyle", "mediaQuery", "imageSrc", "React", "HeroImage", "imageDesktop", "imageMobile", "hero_image_default", "import_react", "HeroVideo", "video", "React", "hero_video_default", "HeroShell", "modifiers", "parallax", "video", "imageDesktop", "imageMobile", "children", "heroRef", "onScroll", "offset", "React", "hero_video_default", "hero_image_default", "hero_shell_default"] }