{"version":3,"file":"Examples.DNmlfTbP.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx","__esmMin","init_npm_react_18_3_1","oe","init_jsx_runtime","c","ce","init_framer_CaDWdxiz","DataObserverContext","FixOverflow","setOverflowStyles","observer","withFixOverflow","C","props","init_Examples"],"sources":["https:/framerusercontent.com/modules/3tfHpIHYEpdEZR0jN3yA/g3HaWcWCQ4sLEWHkX1QC/Examples.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export function FixOverflow(){useEffect(()=>{// Função que configura overflow do body e elementos específicos\nconst setOverflowStyles=()=>{document.body.style.overflowX=\"hidden\";document.body.style.overflowY=\"visible\";const stickyElements=document.querySelectorAll(\".sticky-element\");stickyElements.forEach(element=>{element.style.overflow=\"visible\";element.style.position=\"sticky\";element.style.top=\"0\";});};setOverflowStyles()// Chama a função ao carregar o override\n;// Adiciona event listener para mudanças no DOM\nconst observer=new MutationObserver(setOverflowStyles);observer.observe(document.body,{attributes:true,childList:true,subtree:true});// Cleanup ao desmontar\nreturn()=>observer.disconnect();},[]);return{};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withFixOverflow(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...FixOverflow(props)});};}withFixOverflow.displayName=\"FixOverflow\";\nexport const __FramerMetadata__ = {\"exports\":{\"withFixOverflow\":{\"type\":\"reactHoc\",\"name\":\"withFixOverflow\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"FixOverflow\":{\"type\":\"override\",\"name\":\"FixOverflow\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"A,0KAAwE,SAAgBU,GAAa,CAI/D,OAJgEH,MAAc,CACpH,IAAMI,MAAsB,CAAC,SAAS,KAAK,MAAM,UAAU,SAAS,SAAS,KAAK,MAAM,UAAU,UAA4E,SAApC,iBAAiB,iBAAgC,CAAC,CAAC,QAAQ,GAAS,CAAC,EAAQ,MAAM,SAAS,UAAU,EAAQ,MAAM,SAAS,SAAS,EAAQ,MAAM,IAAI,GAAI,CAAC,CAAE,EAAEA,EAAkB,EAE7T,IAAMC,EAAS,IAAI,iBAAiBD,CAAiB,EACrD,OADuDC,EAAS,QAAQ,SAAS,KAAK,CAAC,WAAW,GAAK,UAAU,GAAK,QAAQ,EAAI,CAAC,MACzHA,EAAS,WAAW,CAAE,EAAE,CAAC,CAAC,EAAQ,CAAC,CAAE,CAAoJ,SAAgBC,EAAgB,EAAE,CAAC,MAAO,KAAQT,EAA+BJ,CAAuC,EAASC,EAAKa,EAAE,CAAC,GAAGC,EAAM,GAAGL,EAAYK,CAAK,CAAC,CAAC,EAAI,C,0CAAC,EAAgB,YAAY,a"}