{"version":3,"file":"SmoothScrollFix.2okLBpAp.mjs","names":[],"sources":["https:/framerusercontent.com/modules/OvZM9OcoCLg8LXZ70iUk/8Po9ez6SwQn76EBYfBT0/SmoothScrollFix.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";export function forceCrossPageSmoothScroll(Component){return props=>{useEffect(()=>{const hash=window.location.hash;if(hash){// Préservation de l'état du routeur Framer\nconst routerState=window.history.state;// Blocage du saut natif\nwindow.history.replaceState(routerState,\"\",window.location.pathname);window.scrollTo(0,0);// Délai pour laisser le DOM se générer avant le smooth scroll\nsetTimeout(()=>{const target=document.querySelector(hash);if(target){target.scrollIntoView({behavior:\"smooth\"});// Restauration propre de l'URL\nwindow.history.replaceState(routerState,\"\",window.location.pathname+hash);}},150);}},[]);return /*#__PURE__*/_jsx(Component,{...props});};}\nexport const __FramerMetadata__ = {\"exports\":{\"forceCrossPageSmoothScroll\":{\"type\":\"reactHoc\",\"name\":\"forceCrossPageSmoothScroll\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./SmoothScrollFix.map"],"mappings":"gIAAwE,SAAgB,EAA2B,EAAU,CAAC,MAAO,KAAQ,MAAc,CAAC,IAAM,EAAK,EAAO,SAAS,KAAK,GAAG,EAAK,CACpM,IAAM,EAAY,EAAO,QAAQ,MACjC,EAAO,QAAQ,aAAa,EAAY,GAAG,EAAO,SAAS,QAAQ,EAAE,EAAO,SAAS,EAAE,CAAC,EACxF,eAAe,CAAC,IAAM,EAAO,SAAS,cAAc,CAAI,EAAK,IAAQ,EAAO,eAAe,CAAC,SAAS,QAAQ,CAAC,EAC9G,EAAO,QAAQ,aAAa,EAAY,GAAG,EAAO,SAAS,SAAS,CAAI,EAAG,EAAE,GAAG,CAAE,CAAC,EAAE,CAAC,CAAC,EAAsB,EAAK,EAAU,CAAC,GAAG,CAAK,CAAC,EAAI,qBAJhG,IAA6B"}