{"version":3,"file":"TestimonialBlock.CVVSy1rr.mjs","names":["useState","useRef"],"sources":["https:/framerusercontent.com/modules/4CgrlON1JyGuGziRnrVK/iOeclmawmPQZHoLjV78p/TestimonialBlock.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{motion,useMotionValue,useSpring,animate}from\"framer-motion\";import{useRef,useState,useEffect}from\"react\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n * @framerIntrinsicWidth 1300\n * @framerIntrinsicHeight 540\n */export default function TestimonialBlock(props){const{quote=\"We had a $4,000 Wix site that looked like every other HVAC company in town. Three months after Taylor Made rebuilt it, our calls doubled and our average ticket went up 22%. The site sells the company before the customer ever speaks to a tech.\",attribution=\"Marcus C.\",company=\"Cooks Heat & Air \\xb7 Hendersonville, TN\"}=props;const[isMobile,setIsMobile]=useState(false);useEffect(()=>{const c=()=>setIsMobile(window.innerWidth<768);c();window.addEventListener(\"resize\",c);return()=>window.removeEventListener(\"resize\",c);},[]);const ref=useRef(null);const mx=useMotionValue(0);const my=useMotionValue(0);const sx=useSpring(mx,{stiffness:30,damping:22});const sy=useSpring(my,{stiffness:30,damping:22});// Mouse-tracking halo: desktop only — never bind on mobile (prevents touch-scroll jitter)\nuseEffect(()=>{if(isMobile)return;const handle=e=>{if(!ref.current)return;const rect=ref.current.getBoundingClientRect();const x=(e.clientX-rect.left)/rect.width-.5;const y=(e.clientY-rect.top)/rect.height-.5;mx.set(x*30);my.set(y*30);};const node=ref.current;node?.addEventListener(\"mousemove\",handle);return()=>node?.removeEventListener(\"mousemove\",handle);},[isMobile,mx,my]);// Live counters — desktop only. The metrics card section right above this\n// already shows the real per-industry numbers, so on mobile we hide this row\n// entirely (no animation, no layout shift).\nconst[calls,setCalls]=useState(2.1);const[ticket,setTicket]=useState(22);const[time,setTime]=useState(90);useEffect(()=>{if(isMobile)return;// Reset to 0 first so the desktop animation runs its full course\nsetCalls(0);setTicket(0);setTime(0);const c1=animate(0,2.1,{duration:2,delay:.4,repeat:Infinity,repeatType:\"reverse\",repeatDelay:2.5,onUpdate:v=>setCalls(parseFloat(v.toFixed(1)))});const c2=animate(0,22,{duration:2,delay:.6,repeat:Infinity,repeatType:\"reverse\",repeatDelay:2.5,onUpdate:v=>setTicket(Math.floor(v))});const c3=animate(0,90,{duration:2,delay:.8,repeat:Infinity,repeatType:\"reverse\",repeatDelay:2.5,onUpdate:v=>setTime(Math.floor(v))});return()=>{c1.stop();c2.stop();c3.stop();};},[isMobile]);return /*#__PURE__*/_jsxs(\"div\",{ref:ref,style:{position:\"relative\",width:\"100%\",fontFamily:\"'Inter Tight', -apple-system, sans-serif\"},children:[/*#__PURE__*/_jsx(motion.div,{animate:{opacity:[.5,.85,.5]},transition:{duration:4,repeat:Infinity,ease:\"easeInOut\"},style:{position:\"absolute\",inset:-24,background:\"radial-gradient(ellipse at 50% 50%, rgba(30,110,255,0.25) 0%, rgba(30,110,255,0) 60%)\",filter:\"blur(40px)\",pointerEvents:\"none\",zIndex:0,x:isMobile?0:sx,y:isMobile?0:sy}}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",background:\"linear-gradient(135deg, rgba(15,25,60,0.98) 0%, rgba(20,40,90,0.98) 50%, rgba(10,15,40,0.98) 100%)\",backdropFilter:\"blur(24px)\",WebkitBackdropFilter:\"blur(24px)\",border:\"1px solid rgba(77,142,255,0.25)\",borderRadius:20,padding:isMobile?\"40px 28px\":\"72px 64px\",boxShadow:\"0 1px 0 rgba(255,255,255,0.08) inset, 0 30px 80px -20px rgba(30,110,255,0.4), 0 8px 24px -10px rgba(0,0,0,0.5)\",overflow:\"hidden\",zIndex:1,display:\"flex\",flexDirection:\"column\",gap:isMobile?32:48},children:[/*#__PURE__*/_jsx(motion.div,{animate:{x:[\"-100%\",\"200%\"]},transition:{duration:10,repeat:Infinity,ease:\"easeInOut\",repeatDelay:5},style:{position:\"absolute\",top:0,left:0,bottom:0,width:\"30%\",background:\"linear-gradient(to right, transparent, rgba(77,142,255,0.1), transparent)\",pointerEvents:\"none\",transform:\"skewX(-20deg)\"}}),!isMobile&&[...Array(8)].map((_,i)=>/*#__PURE__*/_jsx(FloatingDot,{index:i},i)),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",zIndex:1,display:\"flex\",alignItems:\"flex-start\",gap:isMobile?16:32},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:\"'Fraunces', Georgia, serif\",fontSize:isMobile?80:140,fontStyle:\"italic\",color:\"#4D8EFF\",lineHeight:.5,letterSpacing:\"-0.04em\",opacity:.7,marginTop:isMobile?8:24,flexShrink:0},children:\"“\"}),/*#__PURE__*/_jsx(\"p\",{style:{margin:0,fontFamily:\"'Fraunces', Georgia, serif\",fontSize:isMobile?22:32,fontWeight:300,color:\"rgba(255,255,255,0.95)\",lineHeight:1.35,letterSpacing:\"-0.025em\",maxWidth:920},children:quote})]}),/*#__PURE__*/_jsxs(\"div\",{style:{position:\"relative\",zIndex:1,display:\"flex\",justifyContent:\"space-between\",alignItems:isMobile?\"flex-start\":\"center\",flexWrap:\"wrap\",gap:32,flexDirection:isMobile?\"column\":\"row\"},children:[/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",alignItems:\"center\",gap:16},children:[/*#__PURE__*/_jsx(\"div\",{style:{width:52,height:52,borderRadius:\"50%\",background:\"linear-gradient(135deg, #1E6EFF 0%, #4D8EFF 100%)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontFamily:\"'Fraunces', Georgia, serif\",fontSize:22,fontWeight:400,color:\"#fff\",letterSpacing:\"-0.02em\",flexShrink:0,boxShadow:\"0 8px 20px -4px rgba(30,110,255,0.5)\"},children:\"MC\"}),/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:4},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontSize:16,fontWeight:600,color:\"rgba(255,255,255,0.95)\",letterSpacing:\"-0.01em\"},children:attribution}),/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:\"'JetBrains Mono', monospace\",fontSize:11,color:\"rgba(255,255,255,0.55)\",letterSpacing:\"0.08em\",textTransform:\"uppercase\"},children:company})]})]}),!isMobile&&/*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",gap:32,flexWrap:\"nowrap\"},children:[/*#__PURE__*/_jsx(Stat,{value:`${calls.toFixed(1)}x`,label:\"more calls\"}),/*#__PURE__*/_jsx(Divider,{}),/*#__PURE__*/_jsx(Stat,{value:`+${ticket}%`,label:\"ticket size\"}),/*#__PURE__*/_jsx(Divider,{}),/*#__PURE__*/_jsx(Stat,{value:`${time} days`,label:\"to launch\"})]})]})]})]});}function Stat({value,label}){return /*#__PURE__*/_jsxs(\"div\",{style:{display:\"flex\",flexDirection:\"column\",gap:4,width:96,flexShrink:0},children:[/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:\"'Fraunces', Georgia, serif\",fontSize:26,fontWeight:300,color:\"rgba(255,255,255,0.95)\",letterSpacing:\"-0.03em\",fontVariantNumeric:\"tabular-nums\",lineHeight:1,whiteSpace:\"nowrap\"},children:value}),/*#__PURE__*/_jsx(\"div\",{style:{fontFamily:\"'JetBrains Mono', monospace\",fontSize:9,color:\"rgba(77,142,255,0.85)\",letterSpacing:\"0.12em\",textTransform:\"uppercase\",whiteSpace:\"nowrap\"},children:label})]});}function Divider(){return /*#__PURE__*/_jsx(\"div\",{style:{width:1,background:\"linear-gradient(to bottom, transparent, rgba(255,255,255,0.15), transparent)\",flexShrink:0}});}function FloatingDot({index}){const left=(index*73+12)%100;const top=(index*91+7)%100;const duration=8+index%4;return /*#__PURE__*/_jsx(motion.div,{animate:{y:[-10,10,-10],opacity:[0,.4,0]},transition:{duration,repeat:Infinity,delay:index*.4,ease:\"easeInOut\"},style:{position:\"absolute\",left:`${left}%`,top:`${top}%`,width:2,height:2,background:\"#4D8EFF\",borderRadius:\"50%\",boxShadow:\"0 0 6px #4D8EFF\",pointerEvents:\"none\",zIndex:0}});}addPropertyControls(TestimonialBlock,{quote:{type:ControlType.String,displayTextArea:true,defaultValue:\"We had a $4,000 Wix site that looked like every other HVAC company in town. Three months after Taylor Made rebuilt it, our calls doubled and our average ticket went up 22%. The site sells the company before the customer ever speaks to a tech.\"},attribution:{type:ControlType.String,defaultValue:\"Marcus C.\"},company:{type:ControlType.String,defaultValue:\"Cooks Heat & Air \\xb7 Hendersonville, TN\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"TestimonialBlock\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerIntrinsicHeight\":\"540\",\"framerIntrinsicWidth\":\"1300\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./TestimonialBlock.map"],"mappings":"mRAKG,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,QAAM,qPAAqP,cAAY,YAAY,UAAQ,yCAA4C,EAAW,CAAC,EAAS,GAAaA,EAAS,GAAM,CAAC,MAAc,CAAC,IAAM,MAAM,EAAY,EAAO,WAAW,IAAI,CAAyC,OAAxC,GAAG,CAAC,EAAO,iBAAiB,SAAS,EAAE,KAAW,EAAO,oBAAoB,SAAS,EAAE,EAAG,EAAE,CAAC,CAAC,IAAM,EAAIC,EAAO,KAAK,CAAO,EAAG,EAAe,EAAE,CAAO,EAAG,EAAe,EAAE,CAAO,EAAG,EAAU,EAAG,CAAC,UAAU,GAAG,QAAQ,GAAG,CAAC,CAAO,EAAG,EAAU,EAAG,CAAC,UAAU,GAAG,QAAQ,GAAG,CAAC,CAC7vB,MAAc,CAAC,GAAG,EAAS,OAAO,IAAM,EAAO,GAAG,CAAC,GAAG,CAAC,EAAI,QAAQ,OAAO,IAAM,EAAK,EAAI,QAAQ,uBAAuB,CAAO,GAAG,EAAE,QAAQ,EAAK,MAAM,EAAK,MAAM,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