{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/wEEPFQ0uUutPD9ITIkd0/uou4H2VGvTmP2nbR8wRy/ScrollRestoration.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect}from\"react\";import{Frame}from\"framer\";export function ScrollPreserver(){// Save scroll\nuseEffect(()=>{const save=()=>{sessionStorage.setItem(\"scroll-\"+window.location.pathname,window.scrollY.toString());};window.addEventListener(\"scroll\",save);window.addEventListener(\"beforeunload\",save);return()=>{window.removeEventListener(\"scroll\",save);window.removeEventListener(\"beforeunload\",save);};},[]);// Restore scroll on back\nuseEffect(()=>{const restore=()=>{const y=sessionStorage.getItem(\"scroll-\"+window.location.pathname);if(y){requestAnimationFrame(()=>{window.scrollTo(0,parseInt(y,10));});}};window.addEventListener(\"popstate\",restore);return()=>window.removeEventListener(\"popstate\",restore);},[]);// Invisible but placeable\nreturn /*#__PURE__*/_jsx(Frame,{width:0,height:0,style:{display:\"none\"}});}\nexport const __FramerMetadata__ = {\"exports\":{\"ScrollPreserver\":{\"type\":\"reactComponent\",\"name\":\"ScrollPreserver\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ScrollRestoration.map"],
  "mappings": "kIAAyG,SAASA,GAAiB,CACnI,OAAAC,EAAU,IAAI,CAAC,IAAMC,EAAK,IAAI,CAAC,eAAe,QAAQ,UAAUC,EAAO,SAAS,SAASA,EAAO,QAAQ,SAAS,CAAC,CAAE,EAAE,OAAAA,EAAO,iBAAiB,SAASD,CAAI,EAAEC,EAAO,iBAAiB,eAAeD,CAAI,EAAQ,IAAI,CAACC,EAAO,oBAAoB,SAASD,CAAI,EAAEC,EAAO,oBAAoB,eAAeD,CAAI,CAAE,CAAE,EAAE,CAAC,CAAC,EACrTD,EAAU,IAAI,CAAC,IAAMG,EAAQ,IAAI,CAAC,IAAMC,EAAE,eAAe,QAAQ,UAAUF,EAAO,SAAS,QAAQ,EAAKE,GAAG,sBAAsB,IAAI,CAACF,EAAO,SAAS,EAAE,SAASE,EAAE,EAAE,CAAC,CAAE,CAAC,CAAG,EAAE,OAAAF,EAAO,iBAAiB,WAAWC,CAAO,EAAQ,IAAID,EAAO,oBAAoB,WAAWC,CAAO,CAAE,EAAE,CAAC,CAAC,EACnQE,EAAKC,EAAM,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,QAAQ,MAAM,CAAC,CAAC,CAAE",
  "names": ["ScrollPreserver", "ue", "save", "window", "restore", "y", "p", "Frame"]
}
