{"version":3,"file":"Drag.D4ZRUuZ0.mjs","names":["__legacyOverrideHOC_DataObserverContext","_jsx"],"sources":["https:/framerusercontent.com/modules/kJd4jK5J78sbyr6B5kst/6CM0LXZbYDrmX8kObsKc/Drag.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";export function dragMomentum(){const ref=React.useRef(null);const[bounds,setBounds]=React.useState({left:0,right:0});// Measure once after mount\nReact.useEffect(()=>{const el=ref.current;const visibleW=el.offsetWidth;const totalW=el.scrollWidth;setBounds({left:visibleW-totalW,right:0});},[]);return{ref,// motion props for drag + inertia\ndrag:\"x\",dragConstraints:bounds,dragElastic:.2,dragTransition:{// controls how “snappy” it is when you fling\npower:.5,timeConstant:250,bounceStiffness:200,bounceDamping:20},onDragStart:()=>{ref.current.style.cursor=\"grabbing\";},onDragEnd:()=>{ref.current.style.cursor=\"grab\";},// CSS\nstyle:{overflow:\"visible\",whiteSpace:\"nowrap\",cursor:\"grab\",userSelect:\"none\"}};}import{useContext as __legacyOverrideHOC_useContext}from\"react\";import{DataObserverContext as __legacyOverrideHOC_DataObserverContext}from\"framer\";export function withdragMomentum(C){return props=>{__legacyOverrideHOC_useContext(__legacyOverrideHOC_DataObserverContext);return _jsx(C,{...props,...dragMomentum(props)});};}withdragMomentum.displayName=\"dragMomentum\";\nexport const __FramerMetadata__ = {\"exports\":{\"dragMomentum\":{\"type\":\"override\",\"name\":\"dragMomentum\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withdragMomentum\":{\"type\":\"reactHoc\",\"name\":\"withdragMomentum\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Drag.map"],"mappings":"yQAAuE,SAAgB,GAAc,CAAC,IAAM,EAAA,EAAiB,MAAW,CAAC,EAAO,EAAU,CAAA,EAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,EACtC,OAApJ,MAAoB,CAAC,IAAM,EAAG,EAAI,QAAc,EAAS,EAAG,YAAkB,EAAO,EAAG,YAAY,EAAU,CAAC,KAAK,EAAS,EAAO,MAAM,EAAE,CAAG,EAAC,EAAE,EAAQ,CAAC,MAC3J,KAAK,IAAI,gBAAgB,EAAO,YAAY,GAAG,eAAe,CAC9D,MAAM,GAAG,aAAa,IAAI,gBAAgB,IAAI,cAAc,GAAG,CAAC,gBAAgB,CAAC,EAAI,QAAQ,MAAM,OAAO,UAAY,EAAC,cAAc,CAAC,EAAI,QAAQ,MAAM,OAAO,MAAQ,EACvK,MAAM,CAAC,SAAS,UAAU,WAAW,SAAS,OAAO,OAAO,WAAW,OAAO,CAAC,AAAE,CAAmJ,SAAgB,EAAiB,EAAE,CAAC,MAAO,KAAQ,EAA+BA,GAAgDC,EAAK,EAAE,CAAC,GAAG,EAAM,GAAG,EAAa,GAAO,EAAK,6BAAiB,YAAY"}