{"version":3,"file":"Fix_.B3ya96GG.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/p3eIuWCVCp12LcqandVM/ERPnE8Wi3Hx1Vvkk1Bwq/Fix_.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{useRef}from\"react\";export function withDragScroll(Component){return props=>{const ref=useRef(null);const state=useRef({down:false,moved:false,startX:0,startScroll:0});const onMouseDown=e=>{const el=ref.current;if(!el)return;state.current.down=true;state.current.moved=false;state.current.startX=e.pageX;state.current.startScroll=el.scrollLeft;el.style.cursor=\"grabbing\";el.style.userSelect=\"none\";};const onMouseMove=e=>{const el=ref.current;if(!el||!state.current.down)return;const dx=e.pageX-state.current.startX;if(Math.abs(dx)>3)state.current.moved=true;el.scrollLeft=state.current.startScroll-dx;};const end=()=>{const el=ref.current;if(!el)return;state.current.down=false;el.style.cursor=\"grab\";el.style.removeProperty(\"user-select\");};// block click after a drag, so cards don't fire links on release\nconst onClickCapture=e=>{if(state.current.moved){e.preventDefault();e.stopPropagation();state.current.moved=false;}};return /*#__PURE__*/_jsx(Component,{...props,ref:ref,style:{...props.style,cursor:\"grab\"},onMouseDown:onMouseDown,onMouseMove:onMouseMove,onMouseUp:end,onMouseLeave:end,onClickCapture:onClickCapture});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withDragScroll\":{\"type\":\"reactHoc\",\"name\":\"withDragScroll\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Fix_.map"],"mappings":"kHAAqE,SAAgB,EAAe,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAIA,EAAO,IAAI,EAAQ,EAAMA,EAAO,CAAC,KAAK,GAAM,MAAM,GAAM,OAAO,EAAE,YAAY,CAAC,CAAC,EAAQ,EAAY,GAAG,CAAC,IAAM,EAAG,EAAI,QAAY,IAAU,EAAM,QAAQ,KAAK,GAAK,EAAM,QAAQ,MAAM,GAAM,EAAM,QAAQ,OAAO,EAAE,MAAM,EAAM,QAAQ,YAAY,EAAG,WAAW,EAAG,MAAM,OAAO,WAAW,EAAG,MAAM,WAAW,OAAO,EAAQ,EAAY,GAAG,CAAC,IAAM,EAAG,EAAI,QAAQ,GAAG,CAAC,GAAI,CAAC,EAAM,QAAQ,KAAK,OAAO,IAAM,EAAG,EAAE,MAAM,EAAM,QAAQ,OAAU,KAAK,IAAI,CAAE,EAAE,IAAE,EAAM,QAAQ,MAAM,IAAK,EAAG,WAAW,EAAM,QAAQ,YAAY,CAAG,EAAQ,MAAQ,CAAC,IAAM,EAAG,EAAI,QAAY,IAAU,EAAM,QAAQ,KAAK,GAAM,EAAG,MAAM,OAAO,OAAO,EAAG,MAAM,eAAe,aAAa,EAAE,EAChxB,EAAe,GAAG,CAAI,EAAM,QAAQ,QAAO,EAAE,eAAe,EAAE,EAAE,gBAAgB,EAAE,EAAM,QAAQ,MAAM,GAAO,EAAE,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAU,MAAI,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,MAAM,EAAc,cAAwB,cAAY,UAAU,EAAI,aAAa,EAAmB,gBAAc,CAAC,CAAE,CAAE,iBADtR,IAA0B"}