{"version":3,"file":"CtaButtons.Buvf4PSH.mjs","names":["useCallback"],"sources":["https:/framerusercontent.com/modules/J6WHK2b0gZVS0r9cDf0Z/IYSRrHmAKkTZH1HrFltw/CtaButtons.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useCallback}from\"react\";// User request: Update CtaButtons so buttons keep row layout on desktop/tablet, but automatically stack vertically as full-width buttons on phone widths to avoid clipping, while preserving existing controls/defaults and visual styling.\n// Added `vertical` prop: when true the buttons stack (primary above secondary), left-aligned, at natural width — used to demote the secondary CTA below the primary on the enterprise hero. Defaults false (row) so existing instances are unaffected.\n/**\n * CtaButtons — primary (filled) + secondary buttons, side by side on one line,\n * rounded-rectangle shape, each with a hover lift + colour. The secondary is an\n * outline by default (secondaryBg = transparent); set secondaryBg to an opaque\n * colour when the hero has an image/busy backdrop that would show through it.\n * Set `vertical` to stack the secondary below the primary.\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 360\n * @framerIntrinsicHeight 52\n */const RAD=10;const CSS=`\n.cta-row a{font-family:'Hanken Grotesk',sans-serif;text-decoration:none;display:inline-flex;align-items:center;justify-content:center;border-radius:${RAD}px;font-weight:600;font-size:15px;line-height:1;cursor:pointer;white-space:nowrap;transition:transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease, filter .18s ease, border-color .18s ease}\n.cta-primary{color:var(--pc);background:var(--accent);padding:14px 24px;box-shadow:0 6px 18px rgba(90,96,208,0.35)}\n.cta-primary:hover{transform:translateY(-2px);filter:brightness(1.08);box-shadow:0 12px 28px rgba(90,96,208,0.50)}\n.cta-primary:active{transform:translateY(0)}\n.cta-secondary{color:var(--sc);background:var(--sbg);padding:13px 22px;border:1px solid var(--sb)}\n.cta-secondary:hover{transform:translateY(-2px);border-color:var(--sbh);filter:brightness(var(--sbr))}\n.cta-secondary:active{transform:translateY(0)}\n@media (max-width: 640px){\n  .cta-row{flex-direction:column;align-items:stretch}\n  .cta-row a{width:100%;box-sizing:border-box}\n}\n`;export default function CtaButtons(props){const{primaryLabel=\"Try for Free\",primaryUrl=\"#\",secondaryLabel=\"See how it works\",secondaryUrl=\"/how-it-works\",showSecondary=true,primaryOpenInNewTab=false,secondaryOpenInNewTab=false,vertical=false,accent=\"rgb(90,96,208)\",primaryText=\"#ffffff\",secondaryText=\"rgb(15,15,16)\",secondaryBg=\"transparent\",onDark=false}=props;const sb=onDark?\"rgba(255,255,255,0.24)\":\"rgba(15,15,16,0.20)\";const sbh=onDark?\"rgba(255,255,255,0.48)\":\"rgba(15,15,16,0.42)\";const sbr=onDark?\"1.12\":\"0.97\";const vars={\"--accent\":accent,\"--pc\":primaryText,\"--sc\":secondaryText,\"--sb\":sb,\"--sbh\":sbh,\"--sbg\":secondaryBg,\"--sbr\":sbr};const normalizePathname=useCallback(pathname=>{if(!pathname)return\"/\";return pathname.length>1?pathname.replace(/\\/+$/,\"\"):pathname;},[]);const shouldHandleSmoothScroll=useCallback((href,e)=>{if(typeof window===\"undefined\"||typeof document===\"undefined\")return false;// NOTE: deliberately no e.defaultPrevented check — Framer's client-side\n// router intercepts same-site anchor clicks at the capture phase and\n// preventDefaults them WITHOUT scrolling to the hash target, so by the\n// time this bubble-phase handler runs the event is always \"handled\".\n// For same-page #hash links we must scroll regardless.\nif(e.button!==0)return false;if(e.metaKey||e.ctrlKey||e.shiftKey||e.altKey)return false;if(!href)return false;try{const resolved=new URL(href,window.location.origin);const current=new URL(window.location.href);if(!resolved.hash)return false;if(resolved.origin!==current.origin)return false;if(normalizePathname(resolved.pathname)!==normalizePathname(current.pathname)){return false;}return true;}catch{return false;}},[normalizePathname]);const handleCtaClick=useCallback((href,openInNewTab,e)=>{if(openInNewTab)return;if(!shouldHandleSmoothScroll(href,e))return;e.preventDefault();const hash=new URL(href,window.location.origin).hash;const targetId=decodeURIComponent(hash.slice(1));const target=targetId?document.getElementById(targetId):null;if(!target)return;target.scrollIntoView({behavior:\"smooth\",block:\"start\"});if(window.location.hash!==hash){window.history.replaceState(null,\"\",hash);}},[shouldHandleSmoothScroll]);return /*#__PURE__*/_jsxs(\"div\",{className:\"cta-row\",style:{position:\"relative\",display:\"flex\",flexDirection:vertical?\"column\":\"row\",flexWrap:\"nowrap\",alignItems:vertical?\"flex-start\":\"center\",gap:12,...vars,...props.style},children:[/*#__PURE__*/_jsx(\"style\",{dangerouslySetInnerHTML:{__html:CSS}}),/*#__PURE__*/_jsx(\"link\",{href:\"https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500;600;700&display=swap\",rel:\"stylesheet\"}),/*#__PURE__*/_jsx(\"a\",{className:\"cta-primary\",href:primaryUrl,target:primaryOpenInNewTab?\"_blank\":undefined,rel:primaryOpenInNewTab?\"noreferrer noopener\":undefined,onClick:e=>handleCtaClick(primaryUrl,primaryOpenInNewTab,e),children:primaryLabel}),showSecondary&&/*#__PURE__*/_jsx(\"a\",{className:\"cta-secondary\",href:secondaryUrl,target:secondaryOpenInNewTab?\"_blank\":undefined,rel:secondaryOpenInNewTab?\"noreferrer noopener\":undefined,onClick:e=>handleCtaClick(secondaryUrl,secondaryOpenInNewTab,e),children:secondaryLabel})]});}addPropertyControls(CtaButtons,{primaryLabel:{type:ControlType.String,title:\"Primary\",defaultValue:\"Try for Free\"},primaryUrl:{type:ControlType.String,title:\"Primary URL\",defaultValue:\"#\"},primaryOpenInNewTab:{type:ControlType.Boolean,title:\"Primary New Tab\",defaultValue:false},secondaryLabel:{type:ControlType.String,title:\"Secondary\",defaultValue:\"See how it works\"},secondaryUrl:{type:ControlType.String,title:\"Secondary URL\",defaultValue:\"/how-it-works\"},secondaryOpenInNewTab:{type:ControlType.Boolean,title:\"Secondary New Tab\",defaultValue:false},showSecondary:{type:ControlType.Boolean,title:\"Secondary?\",defaultValue:true},vertical:{type:ControlType.Boolean,title:\"Stack vertical\",defaultValue:false},accent:{type:ControlType.Color,title:\"Accent\",defaultValue:\"rgb(90,96,208)\"},primaryText:{type:ControlType.Color,title:\"Primary text\",defaultValue:\"#ffffff\"},secondaryText:{type:ControlType.Color,title:\"Secondary text\",defaultValue:\"rgb(15,15,16)\"},secondaryBg:{type:ControlType.Color,title:\"Secondary fill\",defaultValue:\"transparent\"},onDark:{type:ControlType.Boolean,title:\"On dark\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CtaButtons\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CtaButtons.map"],"mappings":"0LAwBE,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,eAAa,eAAe,aAAW,IAAI,iBAAe,mBAAmB,eAAa,gBAAgB,gBAAc,GAAK,sBAAoB,GAAM,wBAAsB,GAAM,WAAS,GAAM,SAAO,iBAAiB,cAAY,UAAU,gBAAc,gBAAgB,cAAY,cAAc,SAAO,IAAO,EAA0K,EAAK,CAAC,WAAW,EAAO,OAAO,EAAY,OAAO,EAAc,OAA3N,EAAO,yBAAyB,sBAAqM,QAArK,EAAO,yBAAyB,sBAAiJ,QAAQ,EAAY,QAArI,EAAO,OAAO,MAAkI,EAAQ,EAAkBA,EAAY,GAAe,EAA0B,EAAS,OAAO,EAAE,EAAS,QAAQ,OAAO,EAAE,EAAE,EAAzD,IAAoE,CAAC,CAAC,EAAQ,EAAyBA,GAAa,EAAK,IAAI,CAKhvB,GAL2vB,IAAS,QAAa,OAAO,SAAW,KAKx3B,EAAE,SAAS,GAAkB,EAAE,SAAS,EAAE,SAAS,EAAE,UAAU,EAAE,QAAuB,CAAC,EAAK,MAAO,GAAM,GAAG,CAAC,IAAM,EAAS,IAAI,IAAI,EAAK,EAAO,SAAS,MAAM,EAAQ,EAAQ,IAAI,IAAI,EAAO,SAAS,IAAI,EAA+K,MAA7F,EAA7E,CAAC,EAAS,MAAqB,EAAS,SAAS,EAAQ,QAAuB,EAAk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