{"version":3,"file":"BackgroundImage.CDXf9_Rb.mjs","names":[],"sources":["https:/framerusercontent.com/modules/bwX0YjIh7g3JzLTTH5Os/2ggVJ53eCO8axDt82Nr9/BackgroundImage.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useEffect,useImperativeHandle}from\"react\";import{useAnimate}from\"framer-motion\";// Learn more: https://www.framer.com/developers/overrides/\nconst offset=1e9;const offsetSpeed=20;export function withConstantOffset(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[container,animate]=useAnimate();useImperativeHandle(ref,()=>container.current,[]);useEffect(()=>{animate(\"div\",{backgroundPosition:`center ${-offset}px`},{duration:offset/offsetSpeed,repeat:Infinity,ease:\"linear\"});},[]);return /*#__PURE__*/_jsx(Component,{ref:container,...props});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withConstantOffset\":{\"type\":\"reactHoc\",\"name\":\"withConstantOffset\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BackgroundImage.map"],"mappings":"iLACsC,SAAgB,EAAmB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,EAAU,GAAS,GAAY,CAA8L,OAA7L,EAAoB,MAAQ,EAAU,QAAQ,EAAE,CAAC,CAAC,MAAc,CAAC,EAAQ,MAAM,CAAC,mBAAmB,UAAU,CAAC,EAAO,IAAI,CAAC,CAAC,SAAS,EAAO,EAAY,OAAO,IAAS,KAAK,SAAS,CAAC,EAAG,EAAE,CAAC,CAAqB,EAAK,EAAU,CAAC,IAAI,EAAU,GAAG,EAAM,CAAC,EAAG,sBADxX,IAA4D,IAAsC,CACvI,EAAO,IAAU,EAAY"}