{"version":3,"file":"Examples.DdAb_UZJ.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/Xr0IDhiFP9Mg7w8uNXdX/U5XUpNnoxVbIUvq7Dn8C/Examples.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef,useState}from\"react\";export function withPauseOnHover(Component){return /*#__PURE__*/forwardRef((props,ref)=>{const[isHovered,setIsHovered]=useState(false);return /*#__PURE__*/_jsx(Component,{ref:ref,...props,autoPlay:!isHovered,onMouseEnter:event=>{props.onMouseEnter?.(event);setIsHovered(true);},onMouseLeave:event=>{props.onMouseLeave?.(event);setIsHovered(false);}});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withPauseOnHover\":{\"type\":\"reactHoc\",\"name\":\"withPauseOnHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Examples.map"],"mappings":"yHAAkF,SAAgB,EAAiB,EAAU,CAAC,OAAoB,GAAY,EAAM,IAAM,CAAC,GAAK,CAAC,EAAU,GAAcA,EAAS,EAAK,EAAE,OAAoB,EAAK,EAAU,CAAK,MAAI,GAAG,EAAM,SAAS,CAAC,EAAU,aAAa,GAAO,CAAC,EAAM,eAAe,CAAK,EAAE,EAAa,EAAI,CAAE,EAAE,aAAa,GAAO,CAAC,EAAM,eAAe,CAAK,EAAE,EAAa,EAAK,CAAE,CAAC,CAAC,CAAE,CAAC,CAAE,iBAA1Y,IAAuC"}