{"version":3,"file":"AutoScroll.Cur4tdVp.mjs","names":[],"sources":["https:/framerusercontent.com/modules/pID7uLpkD3cBoWU3eekN/H33xHcDni8fSftiKjhbd/AutoScroll.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";/**\n * AUTO-SCROLL TO #ABOUT\n * Applied to the top-level Frame of the Residences page.\n */export function withAutoScroll(Component){return props=>{useEffect(()=>{// Delay of 1.2 seconds to allow Hero animations to load\nconst timer=setTimeout(()=>{// We are now targeting the specific ID \"about\"\nconst target=document.getElementById(\"about\");if(target){target.scrollIntoView({behavior:\"smooth\",block:\"start\"});}},2500);return()=>clearTimeout(timer);},[]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withAutoScroll\":{\"type\":\"reactHoc\",\"name\":\"withAutoScroll\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AutoScroll.map"],"mappings":"kHAGG,SAAgB,EAAe,EAAU,CAAC,MAAO,KAAQ,MAAc,CAC1E,IAAM,EAAM,eAAe,CAC3B,IAAM,EAAO,SAAS,eAAe,QAAQ,CAAI,GAAQ,EAAO,eAAe,CAAC,SAAS,SAAS,MAAM,QAAQ,CAAC,EAAI,KAAK,CAAC,UAAU,aAAa,EAAM,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,CAAC,mBALlK,IAA6B"}