{"version":3,"file":"VerticalShift.C1T5cCMh.mjs","names":["useRef"],"sources":["https:/framerusercontent.com/modules/ki9Y6Ez94Y3bXM8WNFCQ/xbbgZZVB2PD0pgt8LySj/VerticalShift.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useRef}from\"react\";import{useTransform,useScroll}from\"framer-motion\";// Vertical shift override for horizontal scrolling elements\n// When element enters from right and leaves from left, it shifts downward\nexport function withVerticalShift100vh(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const elementRef=useRef(null);const{scrollXProgress}=useScroll({target:elementRef,axis:\"x\",offset:[\"start end\",\"end start\"]});// Transform from 0 to 100vh (using vh units for responsive design)\nconst y=useTransform(scrollXProgress,[0,1],[\"0vh\",\"100vh\"]);return /*#__PURE__*/_jsx(Component,{ref:node=>{if(typeof ref===\"function\")ref(node);else if(ref)ref.current=node;elementRef.current=node;},...props,style:{...props.style,y}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withVerticalShift100vh\":{\"type\":\"reactHoc\",\"name\":\"withVerticalShift100vh\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./VerticalShift.map"],"mappings":"iLAEA,SAAgB,EAAuB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,IAAM,EAAWA,EAAO,KAAK,CAAM,CAAC,mBAAiB,EAAU,CAAC,OAAO,EAAW,KAAK,IAAI,OAAO,CAAC,YAAY,YAAY,CAAC,CAAC,CACtN,EAAE,EAAa,EAAgB,CAAC,EAAE,EAAE,CAAC,CAAC,MAAM,QAAQ,CAAC,CAAC,OAAoB,EAAK,EAAU,CAAC,IAAI,GAAM,CAAI,OAAO,GAAM,WAAW,EAAI,EAAK,CAAS,IAAI,EAAI,QAAQ,GAAK,EAAW,QAAQ,GAAO,GAAG,EAAM,MAAM,CAAC,GAAG,EAAM,MAAM,IAAE,CAAC,CAAC,EAAG,kBAHlM,IAAqC,IAAkD"}