{"version":3,"file":"ButtonHover.C91fOYOB.mjs","names":["forwardRef","_jsx","__esmMin","init_ssg_sandbox_shims","c","J","init_jsx_runtime","init_npm_react_18_3_1","window","make","hover","Component","props","ref","spring","withPrimaryHover","withSecondaryHover","withCardHover","withSecondaryHoverLight","withScrollToUse","go","el","init_ButtonHover"],"sources":["https:/framerusercontent.com/modules/hDyda6uFUy3ZBCVghHRK/xofkAVPNNinHRU2hUMWY/ButtonHover.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{forwardRef}from\"react\";/*\n * Hover and press states for the homepage buttons.\n *\n * withPrimaryHover: filled buttons (\"Get the app\"). Lifts 2px, picks up a soft\n *   green shadow and brightens slightly.\n * withSecondaryHover: outline buttons (\"See how it works\", \"See what it could\n *   add up to\"). Lifts 2px and fills with a faint green tint.\n * withSecondaryHoverLight: outline buttons on dark backgrounds. Same lift with\n *   a faint white tint.\n *\n * All three press down a touch on tap. Spring is quick so it feels responsive,\n * not bouncy.\n */const spring={type:\"spring\",stiffness:500,damping:32};function make(hover){return Component=>/*#__PURE__*/forwardRef(function ButtonHover(props,ref){return /*#__PURE__*/_jsx(Component,{...props,ref:ref,whileHover:hover,whileTap:{scale:.97,y:0},transition:spring});});}export function withPrimaryHover(Component){return make({y:-2,boxShadow:\"0px 10px 24px -8px rgba(15, 77, 66, 0.45)\",filter:\"brightness(1.06)\"})(Component);}export function withSecondaryHover(Component){return make({y:-2,backgroundColor:\"rgba(16, 92, 78, 0.08)\"})(Component);}/*\n * withCardHover: clickable white cards in the hero (QR card, protection bar).\n * Lifts 3px and the shadow deepens, so it reads as clickable without moving\n * much. Press is gentler than on buttons.\n */export function withCardHover(Component){return /*#__PURE__*/forwardRef(function CardHover(props,ref){return /*#__PURE__*/_jsx(Component,{...props,ref:ref,whileHover:{y:-3,boxShadow:\"0px 1px 0px 0px rgba(0, 63, 58, 0.08), 0px 18px 36px -6px rgba(0, 63, 58, 0.16)\"},whileTap:{scale:.99,y:0},transition:spring});});}export function withSecondaryHoverLight(Component){return make({y:-2,backgroundColor:\"rgba(255, 255, 255, 0.12)\"})(Component);}/*\n * withScrollToUse: outline button that scrolls down to the \"Using Chest at …\"\n * section (element ID \"use\") on brand pages. A plain \"#use\" link sends people\n * to the homepage on CMS pages, so this scrolls in code instead.\n */export function withScrollToUse(Component){return /*#__PURE__*/forwardRef(function ScrollToUse(props,ref){const go=()=>{const el=document.getElementById(\"use\");if(!el)return;window.scrollTo({top:el.getBoundingClientRect().top+window.scrollY-90,behavior:\"smooth\"});};return /*#__PURE__*/_jsx(Component,{...props,ref:ref,role:\"button\",tabIndex:0,style:{...props.style,cursor:\"pointer\"},onClick:go,onKeyDown:e=>(e.key===\"Enter\"||e.key===\" \")&&(e.preventDefault(),go()),whileHover:{y:-2,backgroundColor:\"rgba(16, 92, 78, 0.08)\"},whileTap:{scale:.97,y:0},transition:spring});});}\nexport const __FramerMetadata__ = {\"exports\":{\"withSecondaryHoverLight\":{\"type\":\"reactHoc\",\"name\":\"withSecondaryHoverLight\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withScrollToUse\":{\"type\":\"reactHoc\",\"name\":\"withScrollToUse\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withSecondaryHover\":{\"type\":\"reactHoc\",\"name\":\"withSecondaryHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withCardHover\":{\"type\":\"reactHoc\",\"name\":\"withCardHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"withPrimaryHover\":{\"type\":\"reactHoc\",\"name\":\"withPrimaryHover\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./ButtonHover.map"],"mappings":"A,gIAYyD,SAASS,EAAKC,EAAM,CAAC,MAAOC,IAAwBX,gBAAW,SAAqBY,EAAMC,EAAI,CAAC,MAAoBZ,gBAAKU,EAAU,CAAC,GAAGC,EAAUC,MAAI,WAAWH,EAAM,SAAS,CAAC,MAAM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