{"version":3,"file":"Wrapper.jUkn8fYF.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/6fhwsnY8vGc1Ds6jEh2n/8CmyKkrDaHZapRiyn2dw/Section.js","https:/framerusercontent.com/modules/7O2IZlJOlngzF4WMWubN/irMA46GnkcUr38ylWdKJ/Wrapper.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";const style={scrollSnapAlign:\"start\",scrollSnapStop:\"always\"};export const withScrollSnap=Component=>{return props=>{return /*#__PURE__*/_jsx(Component,{...props,style:style});};};\nexport const __FramerMetadata__ = {\"exports\":{\"withScrollSnap\":{\"type\":\"reactHoc\",\"name\":\"withScrollSnap\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Section.map","import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef,forwardRef}from\"react\";const hideScrollStyle={scrollSnapType:\"y mandatory\",msOverflowStyle:\"none\",scrollbarWidth:\"none\",overflowY:\"auto\",\"&::-webkit-scrollbar\":{display:\"none\"}};export const withJumpToTop=Component=>{return /*#__PURE__*/forwardRef((props,ref)=>{const internalRef=useRef(null);const setRefs=node=>{internalRef.current=node;if(typeof ref===\"function\")ref(node);else if(ref)ref.current=node;};useEffect(()=>{const element=internalRef.current;if(!element)return;const handleWheel=e=>{if(e.deltaY<0){window.scrollTo({top:0,behavior:\"smooth\"});}};element.addEventListener(\"wheel\",handleWheel,{passive:true});return()=>element.removeEventListener(\"wheel\",handleWheel);},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:setRefs,style:{...props.style,...hideScrollStyle}});});};\nexport const __FramerMetadata__ = {\"exports\":{\"withJumpToTop\":{\"type\":\"reactHoc\",\"name\":\"withJumpToTop\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Wrapper.map"],"mappings":"mKAA2C,CAAM,EAAM,CAAC,gBAAgB,QAAQ,eAAe,SAAS,CAAc,EAAe,GAAmB,GAA4B,EAAK,EAAU,CAAC,GAAG,EAAY,QAAM,CAAC,yBCA/K,IAA+C,CAAM,EAAgB,CAAC,eAAe,cAAc,gBAAgB,OAAO,eAAe,OAAO,UAAU,OAAO,uBAAuB,CAAC,QAAQ,OAAO,CAAC,CAAc,EAAc,GAAgC,GAAY,EAAM,IAAM,CAAC,IAAM,EAAYA,EAAO,KAAK,CAAO,EAAQ,GAAM,CAAC,EAAY,QAAQ,EAAQ,OAAO,GAAM,WAAW,EAAI,EAAK,CAAS,IAAI,EAAI,QAAQ,IAA4R,OAArR,MAAc,CAAC,IAAM,EAAQ,EAAY,QAAQ,GAAG,CAAC,EAAQ,OAAO,IAAM,EAAY,GAAG,CAAI,EAAE,OAAO,GAAG,EAAO,SAAS,CAAC,IAAI,EAAE,SAAS,SAAS,CAAC,EAAiE,OAA7D,EAAQ,iBAAiB,QAAQ,EAAY,CAAC,QAAQ,GAAK,CAAC,KAAW,EAAQ,oBAAoB,QAAQ,EAAY,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAM,IAAI,EAAQ,MAAM,CAAC,GAAG,EAAM,MAAM,GAAG,EAAgB,CAAC,CAAC,EAAG"}