{"version":3,"file":"Examples.DLAP83Fu.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"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":"yPAAwE,SAAgB,GAAa,CAI/D,OAJgE,MAAc,CACpH,IAAM,MAAsB,CAAC,SAAS,KAAK,MAAM,UAAU,SAAS,SAAS,KAAK,MAAM,UAAU,UAAU,IAAM,EAAe,SAAS,iBAAiB,mBAAmB,EAAe,QAAQ,GAAS,CAAC,EAAQ,MAAM,SAAS,UAAU,EAAQ,MAAM,SAAS,SAAS,EAAQ,MAAM,IAAI,GAAK,EAAG,EAAC,IAE3S,IAAM,EAAS,IAAI,iBAAiB,GACpC,OADuD,EAAS,QAAQ,SAAS,KAAK,CAAC,WAAW,GAAK,UAAU,GAAK,QAAQ,GAAK,MACzH,EAAS,YAAc,EAAC,EAAE,EAAQ,EAAE,AAAE,CAAmJ,SAAgB,EAAgB,EAAE,CAAC,MAAO,KAAQ,EAA+BA,GAAgDC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAY,GAAO,EAAK,6BAAgB,YAAY"}