{"version":3,"file":"InitialScroll.DgrRYc_c.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/y8gk3EtAeHU0qphgh0xF/pipMtnebxznRiUolxBki/InitialScroll.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useEffect,useRef}from\"react\";// Use this for the pages where you want to start at the RIGHT\nexport function ScrollToEnd(Component){return props=>{const ref=useRef(null);useEffect(()=>{if(ref.current){// We use a small timeout to ensure Framer has finished\n// calculating the layout before we move the scrollbar\nsetTimeout(()=>{const element=ref.current;element.scrollLeft=element.scrollWidth;},50);}},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:ref,style:{...props.style,overflowX:\"auto\"}});};}// Use this for the pages where you want to start in the MIDDLE\nexport function ScrollToCenter(Component){return props=>{const ref=useRef(null);useEffect(()=>{if(ref.current){setTimeout(()=>{const element=ref.current;const centerX=(element.scrollWidth-element.clientWidth)/2;element.scrollLeft=centerX;},50);}},[]);return /*#__PURE__*/_jsx(Component,{...props,ref:ref,style:{...props.style,overflowX:\"auto\"}});};}\nexport const __FramerMetadata__ = {\"exports\":{\"ScrollToEnd\":{\"type\":\"reactHoc\",\"name\":\"ScrollToEnd\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"ScrollToCenter\":{\"type\":\"reactHoc\",\"name\":\"ScrollToCenter\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./InitialScroll.map"],"mappings":"yHACA,SAAgB,EAAY,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAIA,EAAO,KAAK,CAEkB,OAFjB,MAAc,CAAI,EAAI,SAEnG,eAAe,CAAC,IAAM,EAAQ,EAAI,QAAQ,EAAQ,WAAW,EAAQ,aAAc,GAAG,EAAI,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAU,MAAI,MAAM,CAAC,GAAG,EAAM,MAAM,UAAU,OAAO,CAAC,CAAC,EAC5L,SAAgB,EAAe,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAIA,EAAO,KAAK,CAA4K,OAA3K,MAAc,CAAI,EAAI,SAAS,eAAe,CAAC,IAAM,EAAQ,EAAI,QAAkE,EAAQ,YAAnD,EAAQ,YAAY,EAAQ,aAAa,GAA+B,GAAG,EAAI,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,GAAG,EAAU,MAAI,MAAM,CAAC,GAAG,EAAM,MAAM,UAAU,OAAO,CAAC,CAAC,mBAJ9S,IAAoC"}