{"version":3,"file":"Scroll.eF9XpWhy.mjs","names":["_Fragment"],"sources":["https:/framerusercontent.com/modules/t91oc0Hb0qolBpmGVx0U/wM6Cgmc2TAGIgSQmdSDB/Scroll.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs,Fragment as _Fragment}from\"react/jsx-runtime\";import{forwardRef}from\"react\";export function withTouchScroll(Component){return props=>/*#__PURE__*/_jsx(Component,{...props,style:{...props.style,touchAction:\"pan-y\",WebkitOverflowScrolling:\"touch\",overscrollBehavior:\"contain\"}});}export function withPortfolioTextScroll(Component){const hiddenScrollbarClass=\"framer-portfolio-text-scroll-hidden\";return /*#__PURE__*/forwardRef(function WithPortfolioTextScroll(props,ref){const isDesktopOrTablet=typeof window!==\"undefined\"?window.innerWidth>=810:false;const handleWheelCapture=event=>{if(isDesktopOrTablet){event.stopPropagation();}if(typeof props.onWheelCapture===\"function\"){props.onWheelCapture(event);}};const handleWheel=event=>{if(isDesktopOrTablet){event.stopPropagation();}if(typeof props.onWheel===\"function\"){props.onWheel(event);}};return /*#__PURE__*/_jsxs(_Fragment,{children:[isDesktopOrTablet?/*#__PURE__*/_jsx(\"style\",{children:`\n                        .${hiddenScrollbarClass} {\n                            scrollbar-width: none;\n                        }\n                        .${hiddenScrollbarClass}::-webkit-scrollbar {\n                            display: none;\n                            width: 0;\n                            height: 0;\n                        }\n                    `}):null,/*#__PURE__*/_jsx(Component,{...props,ref:ref,onWheelCapture:handleWheelCapture,onWheel:handleWheel,className:isDesktopOrTablet?[props.className,hiddenScrollbarClass].filter(Boolean).join(\" \"):props.className,style:{...props.style,...isDesktopOrTablet?{overflowY:\"auto\",overflowX:\"hidden\",overscrollBehavior:\"contain\",WebkitOverflowScrolling:\"touch\"}:null}})]});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withPortfolioTextScroll\":{\"type\":\"reactHoc\",\"name\":\"withPortfolioTextScroll\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withTouchScroll\":{\"type\":\"reactHoc\",\"name\":\"withTouchScroll\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Scroll.map"],"mappings":"yIAA6G,SAAgB,EAAgB,EAAU,CAAC,MAAO,IAAoB,EAAK,EAAU,CAAC,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,YAAY,QAAQ,wBAAwB,QAAQ,mBAAmB,SAAS,CAAC,CAAC,CAAE,CAAC,SAAgB,EAAwB,EAAU,CAAC,IAAM,EAAqB,sCAAsC,OAAoB,EAAW,SAAiC,EAAM,EAAI,CAAC,IAAM,EAAyB,IAAS,QAAY,EAAO,YAAY,IAAgB,EAAmB,GAAO,CAAI,GAAmB,EAAM,gBAAgB,EAAM,OAAO,EAAM,gBAAiB,YAAY,EAAM,eAAe,CAAK,CAAG,EAAQ,EAAY,GAAO,CAAI,GAAmB,EAAM,gBAAgB,EAAM,OAAO,EAAM,SAAU,YAAY,EAAM,QAAQ,CAAK,CAAG,EAAE,OAAoB,EAAMA,EAAU,CAAC,SAAS,CAAC,EAA+B,EAAK,QAAQ,CAAC,SAAS;2BACp7B,EAAqB;;;2BAGrB,EAAqB;;;;;qBAK3B,CAAC,EAAE,KAAkB,EAAK,EAAU,CAAC,GAAG,EAAU,MAAI,eAAe,EAAmB,QAAQ,EAAY,UAAU,EAAkB,CAAC,EAAM,UAAU,CAAoB,CAAC,CAAC,OAAO,OAAO,CAAC,CAAC,KAAK,GAAG,EAAE,EAAM,UAAU,MAAM,CAAC,GAAG,EAAM,MAAM,GAAG,EAAkB,CAAC,UAAU,OAAO,UAAU,SAAS,mBAAmB,UAAU,wBAAwB,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAE,CAAC,CAAE,qBAT5T,IAA8B"}