{"version":3,"file":"CTA_Link.Dqvm6GyZ.mjs","names":["React.useRef","React.useState","React.useId"],"sources":["https:/framerusercontent.com/modules/33hcXiJajZCzoHgdhUUL/QOE0fbzy8uiWDhA605lJ/CTA_Link.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,Link}from\"framer\";// Sampled spring curve for the underline animation.\nconst curve=[[0,0],[.017,.029],[.034,.095],[.051,.173],[.068,.255],[.085,.333],[.102,.405],[.119,.472],[.136,.531],[.153,.584],[.169,.632],[.186,.674],[.203,.711],[.22,.744],[.237,.774],[.254,.8],[.271,.823],[.288,.843],[.305,.861],[.322,.877],[.339,.891],[.356,.904],[.373,.915],[.39,.925],[.407,.933],[.424,.941],[.441,.948],[.458,.954],[.475,.959],[.492,.964],[.508,.968],[.525,.972],[.542,.975],[.559,.978],[.576,.98],[.593,.983],[.61,.985],[.627,.986],[.644,.988],[.661,.989],[.678,.991],[.695,.992],[.712,.993],[.729,.993],[.746,.994],[.763,.995],[.78,.995],[.797,.996],[.814,.996],[.83,.997],[.847,.997],[.864,.998],[.881,.998],[.898,.998],[.915,.998],[.932,.999],[.949,.999],[.966,.999],[.983,.999],[1,1]];function ease(t){t=Math.max(0,Math.min(1,t));const i=curve.findIndex(p=>p[0]>=t);if(i<=0)return i===0?0:1;const a=curve[i-1],b=curve[i];return a[1]+(b[1]-a[1])*(t-a[0])/(b[0]-a[0]);}/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 160\n * @framerIntrinsicHeight 32\n */export default function UnderlineHoverLink({label=\"LET'S TALK\",link=\"\",newTab=false,font={},color=\"#F5F5F0\",hoverColor=\"#F5F5F0\",lineColor=\"#F5F5F0\",thickness=1,gap=6,speed=1,cursorMode=\"inherit\",style}){const line=React.useRef(null);const frame=React.useRef(0);const scale=React.useRef(1);const hovered=React.useRef(false);const focused=React.useRef(false);const[active,setActive]=React.useState(false);const id=\"underline-\"+React.useId().replace(/[^a-zA-Z0-9]/g,\"\");const cancel=()=>cancelAnimationFrame(frame.current);React.useEffect(()=>cancel,[]);function animate(enter){cancel();const element=line.current;if(!element)return;setActive(enter);if(matchMedia(\"(prefers-reduced-motion: reduce)\").matches){scale.current=1;element.style.transform=\"scaleX(1)\";return;}const start=performance.now(),from=scale.current;const factor=Math.max(.2,speed);const draw=now=>{const t=(now-start)/1e3*factor;let value,origin;if(!enter){origin=\"left\";value=from+(1-from)*ease(t/.3);}else if(t<.3){origin=\"right\";value=from*(1-ease(t/.3));}else{origin=\"left\";value=ease((t-.4)/.4);}scale.current=value;element.style.transformOrigin=origin;element.style.transform=`scaleX(${value})`;if(t<(enter?.8:.3))frame.current=requestAnimationFrame(draw);};frame.current=requestAnimationFrame(draw);}// Framer resolves page references and retains client-side navigation.\n// The transition component can intercept and replay this same anchor.\nreturn /*#__PURE__*/_jsx(Link,{href:link||undefined,openInNewTab:newTab,smoothScroll:true,children:/*#__PURE__*/_jsxs(\"a\",{id:id,rel:newTab?\"noopener noreferrer\":undefined,onPointerEnter:e=>{if(e.pointerType===\"touch\")return;hovered.current=true;if(!focused.current)animate(true);},onPointerLeave:()=>{hovered.current=false;if(!focused.current)animate(false);},onFocus:()=>{focused.current=true;if(!hovered.current)animate(true);},onBlur:()=>{focused.current=false;if(!hovered.current)animate(false);},style:{...style,display:\"inline-flex\",flexDirection:\"column\",alignItems:\"stretch\",width:\"max-content\",maxWidth:\"100%\",height:\"auto\",position:\"relative\",textDecoration:\"none\",fontFamily:\"monospace\",fontSize:20,lineHeight:\"1.2em\",letterSpacing:\"0.06em\",...font,color:active?hoverColor:color,// Respect a cursor supplied by Framer; otherwise inherit from the stack.\ncursor:style?.cursor??cursorMode,gap,transition:\"color 100ms linear\"},children:[/*#__PURE__*/_jsx(\"style\",{children:`#${id}:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }`}),/*#__PURE__*/_jsx(\"span\",{style:{display:\"block\",whiteSpace:\"nowrap\",cursor:\"inherit\"},children:label}),/*#__PURE__*/_jsx(\"span\",{ref:line,\"aria-hidden\":\"true\",style:{display:\"block\",width:\"100%\",height:thickness,flexShrink:0,cursor:\"inherit\",background:lineColor,transform:\"scaleX(1)\",transformOrigin:\"left\"}})]})});}addPropertyControls(UnderlineHoverLink,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"LET'S TALK\"},cursorMode:{type:ControlType.Enum,title:\"Cursor\",options:[\"inherit\",\"pointer\"],optionTitles:[\"Inherit\",\"Pointer\"],defaultValue:\"inherit\",description:\"Inherit uses the Framer or parent stack cursor. Pointer shows the standard hand cursor, even without a link.\"},link:{type:ControlType.Link,title:\"Link\"},newTab:{type:ControlType.Boolean,title:\"New tab\",defaultValue:false},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"monospace\",defaultFontSize:\"20px\",displayFontSize:true},color:{type:ControlType.Color,title:\"Color\",defaultValue:\"#F5F5F0\"},hoverColor:{type:ControlType.Color,title:\"Hover color\",defaultValue:\"#F5F5F0\"},lineColor:{type:ControlType.Color,title:\"Line color\",defaultValue:\"#F5F5F0\"},thickness:{type:ControlType.Number,title:\"Line width\",defaultValue:1,min:1,max:8,step:.5,unit:\"px\"},gap:{type:ControlType.Number,title:\"Line gap\",defaultValue:6,min:0,max:30,unit:\"px\"},speed:{type:ControlType.Number,title:\"Speed\",defaultValue:1,min:.2,max:3,step:.1,description:\"1 matches the reference timing.\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"UnderlineHoverLink\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicHeight\":\"32\",\"framerIntrinsicWidth\":\"160\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CTA_Link.map"],"mappings":"6MAC0sB,SAAS,EAAK,EAAE,CAAC,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