{"version":3,"file":"CallToAction.AwrdPnfg.mjs","names":["useRef","useState"],"sources":["https:/framerusercontent.com/modules/nLZB8o25rlRj8rio0o9X/4wEDO0R1BXfWvEUayQJA/CallToAction.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useEffect,useRef,useState,startTransition}from\"react\";/**\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function CallToAction(props){const{heading,subheading,ctaText,ctaIcon,footerText,backgroundColor,headingColor,subheadingColor,ctaBackgroundColor,ctaTextColor,ctaIconColor,footerTextColor,particleColor,showParticles,headingFont,subheadingFont,ctaFont,footerFont,borderRadius}=props;const canvasRef=useRef(null);const[particles,setParticles]=useState([]);const animationFrameRef=useRef();const[isCtaHovered,setIsCtaHovered]=useState(false);// Load Calendly script\nuseEffect(()=>{if(typeof window===\"undefined\")return;// Load Calendly CSS\nconst link=document.createElement(\"link\");link.href=\"https://assets.calendly.com/assets/external/widget.css\";link.rel=\"stylesheet\";document.head.appendChild(link);// Load Calendly JS\nconst script=document.createElement(\"script\");script.src=\"https://assets.calendly.com/assets/external/widget.js\";script.async=true;document.head.appendChild(script);return()=>{document.head.removeChild(link);document.head.removeChild(script);};},[]);useEffect(()=>{if(!showParticles||typeof window===\"undefined\")return;const canvas=canvasRef.current;if(!canvas)return;const ctx=canvas.getContext(\"2d\");if(!ctx)return;const updateCanvasSize=()=>{const parent=canvas.parentElement;if(parent){canvas.width=parent.offsetWidth;canvas.height=parent.offsetHeight;}};updateCanvasSize();const particleCount=80;const newParticles=[];for(let i=0;i<particleCount;i++){newParticles.push({x:Math.random()*canvas.width,y:Math.random()*canvas.height,vx:(Math.random()-.5)*.5,vy:(Math.random()-.5)*.5,size:Math.random()*2+1});}startTransition(()=>setParticles(newParticles));const animate=()=>{ctx.clearRect(0,0,canvas.width,canvas.height);newParticles.forEach(particle=>{particle.x+=particle.vx;particle.y+=particle.vy;if(particle.x<0||particle.x>canvas.width)particle.vx*=-1;if(particle.y<0||particle.y>canvas.height)particle.vy*=-1;ctx.fillStyle=particleColor;ctx.beginPath();ctx.arc(particle.x,particle.y,particle.size,0,Math.PI*2);ctx.fill();});animationFrameRef.current=requestAnimationFrame(animate);};animate();return()=>{if(animationFrameRef.current){cancelAnimationFrame(animationFrameRef.current);}};},[showParticles,particleColor]);return /*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",width:\"100%\",height:\"100%\",backgroundColor,borderRadius,overflow:\"hidden\",display:\"flex\",flexDirection:\"column\",alignItems:\"center\",justifyContent:\"center\",padding:\"60px 40px\"},children:[showParticles&&/*#__PURE__*/_jsx(\"canvas\",{ref:canvasRef,style:{position:\"absolute\",top:0,left:0,width:\"100%\",height:\"100%\",pointerEvents:\"none\"}}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",zIndex:1,display:\"flex\",flexDirection:\"column\",alignItems:\"center\",gap:24,maxWidth:900},children:[/*#__PURE__*/_jsx(\"h1\",{style:{margin:0,color:headingColor,textAlign:\"center\",...headingFont},children:heading}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:subheadingColor,textAlign:\"center\",maxWidth:700,...subheadingFont},children:subheading}),/*#__PURE__*/_jsxs(\"button\",{style:{display:\"flex\",alignItems:\"center\",gap:12,backgroundColor:ctaBackgroundColor,color:ctaTextColor,border:\"none\",borderRadius:50,padding:\"16px 32px\",cursor:\"pointer\",transform:isCtaHovered?\"scale(1.05)\":\"scale(1)\",transition:\"transform 0.2s ease, opacity 0.2s ease\",opacity:isCtaHovered?.9:1,...ctaFont},onMouseEnter:()=>setIsCtaHovered(true),onMouseLeave:()=>setIsCtaHovered(false),onClick:()=>{if(typeof window!==\"undefined\"&&window.Calendly){window.Calendly.initPopupWidget({url:\"https://calendly.com/govconedumeet/discovery-call\"});}},children:[ctaText,/*#__PURE__*/_jsx(\"div\",{style:{width:40,height:40,borderRadius:\"50%\",backgroundColor:ctaIconColor,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:20},children:ctaIcon})]}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,color:footerTextColor,textAlign:\"center\",...footerFont},children:footerText})]})]});}addPropertyControls(CallToAction,{heading:{type:ControlType.String,title:\"Heading\",defaultValue:\"Ready to Win Bigger?\"},subheading:{type:ControlType.String,title:\"Subheading\",defaultValue:\"Whether it's your first federal contract or scaling into multi-million-dollar awards, we're ready when you are. Let's plan your strategy.\",displayTextArea:true},ctaText:{type:ControlType.String,title:\"CTA Text\",defaultValue:\"Book a Call\"},ctaIcon:{type:ControlType.String,title:\"CTA Icon\",defaultValue:\"→\"},footerText:{type:ControlType.String,title:\"Footer Text\",defaultValue:\"No stress, just opportunities.\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#EDE8E0\"},headingColor:{type:ControlType.Color,title:\"Heading Color\",defaultValue:\"#1A1A1A\"},subheadingColor:{type:ControlType.Color,title:\"Subheading Color\",defaultValue:\"#4A4A4A\"},ctaBackgroundColor:{type:ControlType.Color,title:\"CTA Background\",defaultValue:\"#2D4A3E\"},ctaTextColor:{type:ControlType.Color,title:\"CTA Text Color\",defaultValue:\"#FFFFFF\"},ctaIconColor:{type:ControlType.Color,title:\"CTA Icon Color\",defaultValue:\"#FFFFFF\"},footerTextColor:{type:ControlType.Color,title:\"Footer Text Color\",defaultValue:\"#4A4A4A\"},particleColor:{type:ControlType.Color,title:\"Particle Color\",defaultValue:\"rgba(45, 74, 62, 0.15)\"},showParticles:{type:ControlType.Boolean,title:\"Show Particles\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},headingFont:{type:ControlType.Font,title:\"Heading Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"64px\",variant:\"Bold\",letterSpacing:\"-0.02em\",lineHeight:\"1.1em\"}},subheadingFont:{type:ControlType.Font,title:\"Subheading Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"20px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.5em\"}},ctaFont:{type:ControlType.Font,title:\"CTA Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"18px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}},footerFont:{type:ControlType.Font,title:\"Footer Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Regular\",letterSpacing:\"-0.01em\",lineHeight:\"1.3em\"}},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:24,min:0,max:50,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"CallToAction\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"fixed\",\"framerSupportedLayoutHeight\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CallToAction.map"],"mappings":"oNAGG,SAAwB,EAAa,EAAM,CAAC,GAAK,CAAC,UAAQ,aAAW,UAAQ,UAAQ,aAAW,kBAAgB,eAAa,kBAAgB,qBAAmB,eAAa,eAAa,kBAAgB,gBAAc,gBAAc,cAAY,iBAAe,UAAQ,aAAW,gBAAc,EAAY,EAAUA,EAAO,KAAK,CAAM,CAAC,EAAU,GAAcC,EAAS,EAAE,CAAC,CAAO,EAAkBD,GAAQ,CAAM,CAAC,EAAa,GAAiBC,EAAS,GAAM,CAG48B,OAFn5C,MAAc,CAAC,GAAU,IAAS,OAAY,OAC9C,IAAM,EAAK,SAAS,cAAc,OAAO,CAAC,EAAK,KAAK,yDAAyD,EAAK,IAAI,aAAa,SAAS,KAAK,YAAY,EAAK,CAClK,IAAM,EAAO,SAAS,cAAc,SAAS,CAAwH,MAAvH,GAAO,IAAI,wDAAwD,EAAO,MAAM,GAAK,SAAS,KAAK,YAAY,EAAO,KAAW,CAAC,SAAS,KAAK,YAAY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