{"version":3,"file":"ScreenSwitch.D4MY3FAH.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/7GEEPWrml6CiGRx2ppNR/fH2EaqQSohpKTAq2zbqx/FullPageScroll.js","https:/framerusercontent.com/modules/5Xg6XneZRjdqE9PMB7vd/aGWimMkd3xXnohUzCGfy/ScreenSwitch.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";// Override für den äußeren Scroll-Container\nexport function withScrollSnap(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,scrollSnapType:\"y mandatory\",overflowY:\"scroll\",height:\"100vh\"}});};}// Override für jede einzelne Section\nexport function withSnapSection(Component){return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:{...props.style,scrollSnapAlign:\"start\",scrollSnapStop:\"always\",height:\"100vh\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withSnapSection\":{\"type\":\"reactHoc\",\"name\":\"withSnapSection\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withScrollSnap\":{\"type\":\"reactHoc\",\"name\":\"withScrollSnap\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FullPageScroll.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useState}from\"react\";export function withScreenSwitch(Component){return props=>{const[variant,setVariant]=useState(\"Screen1\");useEffect(()=>{const root=document.querySelector(\"[data-framer-root]\");const sections=[document.querySelector(\"#section-1\"),document.querySelector(\"#section-2\"),document.querySelector(\"#section-3\"),document.querySelector(\"#section-4\"),document.querySelector(\"#section-5\"),document.querySelector(\"#section-6\"),document.querySelector(\"#section-7\"),document.querySelector(\"#section-8\")];if(!root)return;const observer=new IntersectionObserver(entries=>{entries.forEach(entry=>{if(entry.isIntersecting){const index=sections.indexOf(entry.target);if(index===0)setVariant(\"Screen1\");if(index===1)setVariant(\"Screen2\");if(index===2)setVariant(\"Screen3\");if(index===3)setVariant(\"Screen4\");if(index===4)setVariant(\"Screen5\");if(index===2)setVariant(\"Screen6\");if(index===3)setVariant(\"Screen7\");if(index===4)setVariant(\"Screen8\");}});},{root:root,threshold:.5});sections.forEach(s=>s&&observer.observe(s));return()=>observer.disconnect();},[]);return /*#__PURE__*/_jsx(Component,{...props,variant:variant});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withScreenSwitch\":{\"type\":\"reactHoc\",\"name\":\"withScreenSwitch\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScreenSwitch.map"],"mappings":"yHACA,SAAgB,EAAe,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,eAAe,cAAc,UAAU,SAAS,OAAO,QAAQ,CAAC,CAAC,CAC7L,SAAgB,EAAgB,EAAU,CAAC,MAAO,IAA4B,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,gBAAgB,QAAQ,eAAe,SAAS,OAAO,QAAQ,CAAC,CAAC,kBAFnJ,ICAsC,SAAgB,EAAiB,EAAU,CAAC,MAAO,IAAO,CAAC,GAAK,CAAC,EAAQ,GAAYA,EAAS,UAAU,CAAy6B,OAAx6B,MAAc,CAAC,IAAM,EAAK,SAAS,cAAc,qBAAqB,CAAO,EAAS,CAAC,SAAS,cAAc,aAAa,CAAC,SAAS,cAAc,aAAa,CAAC,SAAS,cAAc,aAAa,CAAC,SAAS,cAAc,aAAa,CAAC,SAAS,cAAc,aAAa,CAAC,SAAS,cAAc,aAAa,CAAC,SAAS,cAAc,aAAa,CAAC,SAAS,cAAc,aAAa,CAAC,CAAC,GAAG,CAAC,EAAK,OAAO,IAAM,EAAS,IAAI,qBAAqB,GAAS,CAAC,EAAQ,QAAQ,GAAO,CAAC,GAAG,EAAM,eAAe,CAAC,IAAM,EAAM,EAAS,QAAQ,EAAM,OAAO,CAAI,IAAQ,G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