{"version":3,"file":"ScrollToHashWithParams.4_ASiwvg.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/oFmp5YlgTYgv7Sbhk8gy/a4OICEVzCrdaPSQIi9dY/ScrollToHashWithParams.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export function ScrollToHashWithParams(){useEffect(()=>{const rawHash=window.location.hash;const hash=rawHash.split(\"?\")[0];if(hash===\"#contato\"){const scrollToSection=()=>{const element=document.querySelector(hash);if(element){element.scrollIntoView({behavior:\"smooth\"});}};scrollToSection();setTimeout(scrollToSection,400);}},[]);return null;}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withScrollToHashWithParams(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...ScrollToHashWithParams(props)});};}withScrollToHashWithParams.displayName=\"ScrollToHashWithParams\";\nexport const __FramerMetadata__ = {\"exports\":{\"withScrollToHashWithParams\":{\"type\":\"reactHoc\",\"name\":\"withScrollToHashWithParams\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ScrollToHashWithParams\":{\"type\":\"override\",\"name\":\"ScrollToHashWithParams\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollToHashWithParams.map"],"mappings":"wLAAwE,SAAgB,GAAwB,CAAoS,OAAnS,MAAc,CAAoC,IAAM,EAA3B,EAAO,SAAS,KAAwB,MAAM,IAAI,CAAC,GAAG,GAAG,IAAO,WAAW,CAAC,IAAM,MAAoB,CAAC,IAAM,EAAQ,SAAS,cAAc,EAAK,CAAI,GAAS,EAAQ,eAAe,CAAC,SAAS,SAAS,CAAC,EAAI,GAAiB,CAAC,WAAW,EAAgB,IAAI,GAAI,EAAE,CAAC,CAAQ,KAAyJ,SAAgB,EAA2B,EAAE,CAAC,MAAO,KAAQ,EAA+BA,EAAwC,CAAQC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAuB,EAAM,CAAC,CAAC,uBAAxsB,IAA6B,IAA4e,CAAmM,EAA2B,YAAY"}