{"version":3,"file":"HomeHover.BORikD97.mjs","names":["__esmMin","init_npm_react_18_3_1","init_ssg_sandbox_shims","window","c","init_jsx_runtime","ce","animate","init_framer_motion_DhsWWWsN","RenderTarget","init_framer_BL70qLPA","homeHover","media","cleanup","setup","fn","selector","originalTransform","el","originalShadow","baseShadow","active","enter","leave","Component","props","withHomePricingHover","withHomeROIHover","withHomeAudioHover","init_HomeHover"],"sources":["https:/framerusercontent.com/modules/w6cHmRqrZpIi6bt6cI7G/XSaUX0e438a0wMk5AbXf/HomeHover.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import*as React from\"react\";import{animate}from\"framer-motion\";import{RenderTarget}from\"framer\";// Applied only to existing Home instances. Shared components remain unchanged.\nfunction homeHover(Component,selector){return function HomeHover(props){React.useEffect(()=>{if(RenderTarget.current()===RenderTarget.canvas)return;const media=window.matchMedia(\"(hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference)\");const cleanup=[];const setup=()=>{cleanup.splice(0).forEach(fn=>fn());if(!media.matches)return;document.querySelectorAll(selector).forEach(el=>{const originalTransform=el.style.transform;const originalShadow=el.style.boxShadow;const baseShadow=getComputedStyle(el).boxShadow;let active;const enter=()=>{active?.stop();active=animate(el,{y:-10,scale:1.04,rotateX:-3,rotateY:6,boxShadow:\"0px 18px 38px 0px rgba(0,205,234,0.28)\"},{type:\"spring\",duration:.45,bounce:.25});};const leave=()=>{active?.stop();active=animate(el,{y:0,scale:1,rotateX:0,rotateY:0,boxShadow:baseShadow===\"none\"?\"0px 0px 0px 0px rgba(0,205,234,0)\":baseShadow},{type:\"spring\",duration:.45,bounce:.25});};el.addEventListener(\"mouseenter\",enter);el.addEventListener(\"mouseleave\",leave);cleanup.push(()=>{active?.stop();el.removeEventListener(\"mouseenter\",enter);el.removeEventListener(\"mouseleave\",leave);el.style.transform=originalTransform;el.style.boxShadow=originalShadow;});});};setup();media.addEventListener(\"change\",setup);return()=>{media.removeEventListener(\"change\",setup);cleanup.forEach(fn=>fn());};},[]);return /*#__PURE__*/_jsx(Component,{...props});};}export function withHomePricingHover(Component){return homeHover(Component,\".cz-pricing article, .cz-pricing button, .cz-pricing a.cta\");}export function withHomeROIHover(Component){return homeHover(Component,\".czroi .panel, .czroi .stat, .czroi .startup, .czroi .cta\");}export function withHomeAudioHover(Component){return homeHover(Component,\".cz-demo-player .cd-shell, .cz-demo-player .cd-play\");}\nexport const __FramerMetadata__ = {\"exports\":{\"withHomePricingHover\":{\"type\":\"reactHoc\",\"name\":\"withHomePricingHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHomeAudioHover\":{\"type\":\"reactHoc\",\"name\":\"withHomeAudioHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withHomeROIHover\":{\"type\":\"reactHoc\",\"name\":\"withHomeROIHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./HomeHover.map"],"mappings":"A,mOACA,SAASW,EAAU,EAAU,EAAS,CAAC,OAAO,SAAmB,EAAM,CAA2vC,OAA1vCL,MAAoB,CAAC,GAAGG,EAAa,QAAQ,IAAIA,EAAa,OAAO,OAAO,IAAMG,EAAMT,EAAO,WAAW,gFAAgF,EAAQU,EAAQ,CAAC,EAAQC,MAAU,CAACD,EAAQ,OAAO,CAAC,CAAC,CAAC,QAAQ,GAAIE,EAAG,CAAC,EAAMH,EAAM,SAAe,SAAS,iBAAiBI,CAAQ,CAAC,CAAC,QAAQ,GAAI,CAAC,IAAMC,EAAkBC,EAAG,MAAM,UAAgBC,EAAeD,EAAG,MAAM,UAAgBE,EAAW,iBAAiBF,CAAE,CAAC,CAAC,UAAcG,EAAaC,MAAU,CAACD,GAAQ,KAAK,EAAE,EAAOd,EAAQW,EAAG,CAAC,EAAE,IAAI,MAAM,KAAK,QAAQ,GAAG,QAAQ,EAAE,UAAU,wCAAwC,EAAE,CAAC,KAAK,SAAS,SAAS,IAAI,OAAO,GAAG,CAAC,CAA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