{"version":3,"file":"Scroll_Reset.IX7Gyeuc.mjs","names":[],"sources":["https:/framerusercontent.com/modules/y6KYlTjq5Ka1rnzxegX6/qUqWBxlVbIby77fh81Lu/Scroll_Reset.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect}from\"react\";// Override: Apply ini ke element paling atas di setiap halaman\n// Setiap kali halaman dimuat, otomatis scroll ke atas\nexport function withScrollToTop(Component){return /*#__PURE__*/forwardRef((props,ref)=>{useEffect(()=>{// Scroll ke atas saat komponen mount (halaman baru dibuka)\nwindow.scrollTo(0,0);// Disable browser scroll restoration\nif(\"scrollRestoration\"in history){history.scrollRestoration=\"manual\";}},[]);return /*#__PURE__*/_jsx(Component,{ref:ref,...props});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withScrollToTop\":{\"type\":\"reactHoc\",\"name\":\"withScrollToTop\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Scroll_Reset.map"],"mappings":"kIAEA,SAAgB,EAAgB,EAAU,CAAC,OAAoB,GAAY,EAAM,KAAO,MAAc,CACtG,EAAO,SAAS,EAAE,EAAE,CACjB,sBAAsB,UAAS,QAAQ,kBAAkB,WAAY,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,CAAC,EAAG,sBAJ1F,IAAwC"}