{"version":3,"file":"NavLink.BVRmc4v3.mjs","names":["p","React.useRef","React.useState","__esmMin","_e","p","c","init_jsx_runtime","ce","init_npm_react_18_3_1","de","useReducedMotion","init_framer_motion_DhsWWWsN","RenderTarget","init_framer_DKtAEkcX","addPropertyControls","ControlType","NavLink","p$1","DEFAULTS","k","incoming","dark","reduce","canvas","ref","on","setOn","el","i","a","b","fs","ink","smooth","still","glow","white","band","WHITE","BAND","CSS","H","init_NavLink"],"sources":["https:/framerusercontent.com/modules/5cSU7cbKGiQreIsnaCRt/MVL1j8femyRQ2fYwPQO1/NavLink.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import*as React from\"react\";import{addPropertyControls,ControlType,RenderTarget}from\"framer\";import{useReducedMotion}from\"framer-motion\";/*\n * NavLink (10 Nov 2026, Header v2 round 3): the text link for the dropdown cards (\"Visit page\",\n * \"Read more\"). Ethan asked to move away from text turning blue on hover. The text stays ink (or\n * white on dark cards) and a thin underline in the logo colours draws in from the left instead,\n * with its right end cut at the same angle as the underline in the Ciptex logo.\n * Round 4 (10 Nov 2026): 2.25px high (was 3), a slower draw-in that eases in and out, and the bar is\n * frosted glass: the logo colours sit still at low strength and a soft glow of full colour wanders\n * along it, so it shimmers instead of sitting at full vibrance.\n * Round 5 (10 Nov 2026): Colour adds White, a frosted white bar with a brighter white glow drifting\n * along it, for dark cards that already carry a gradient (the About us Twilio card), so the card\n * doesn't stack gradient on gradient. Logo stays the default everywhere else.\n * The hover comes from the card the link sits in (the nearest ancestor with a radius), so hovering\n * anywhere on the card draws the line. Place in flow, auto width. Never takes clicks: the card is\n * the link.\n * Round 8 (10 Nov 2026): no resting hairline. Ethan wants no visible line until the card is hovered or\n * focused, so the bar is the only line.\n */const DEFAULTS={text:\"Visit page\",tone:\"Light\",colour:\"Logo\",arrow:true,size:13};// the logo underline: coral into yellow, green, blue\nconst BAND=\"linear-gradient(90deg, #FF715A 0%, #FFD04D 33%, #00AF70 66%, #52ADFF 100%)\";const WHITE=\"linear-gradient(90deg, #FFFFFF, #FFFFFF)\";// the glow wanders along the bar; the colours stay put underneath it\nconst CSS=`@keyframes nl-glint { 0% { -webkit-mask-position: -80% 0; mask-position: -80% 0 } 100% { -webkit-mask-position: 180% 0; mask-position: 180% 0 } }`;const H=2.25// bar height, 0.75px under the first version\n;/**\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n * @framerIntrinsicWidth 90\n * @framerIntrinsicHeight 22\n */export default function NavLink(incoming){const p={...DEFAULTS};for(const k in incoming)if(incoming[k]!==undefined)p[k]=incoming[k];const dark=p.tone===\"Dark\";const reduce=useReducedMotion();const canvas=RenderTarget.current()===RenderTarget.canvas;const ref=React.useRef(null);const[on,setOn]=React.useState(false);React.useEffect(()=>{let el=ref.current?.parentElement||null;for(let i=0;el&&i<6&&getComputedStyle(el).borderTopLeftRadius===\"0px\";i++)el=el.parentElement;if(!el)return;const a=()=>setOn(true),b=()=>setOn(false);el.addEventListener(\"pointerenter\",a);el.addEventListener(\"pointerleave\",b);el.addEventListener(\"focusin\",a);el.addEventListener(\"focusout\",b);return()=>{el.removeEventListener(\"pointerenter\",a);el.removeEventListener(\"pointerleave\",b);el.removeEventListener(\"focusin\",a);el.removeEventListener(\"focusout\",b);};},[]);const fs=Number(p.size)||13;const ink=dark?\"#F3F1EE\":\"#1C1817\";const ease=\"cubic-bezier(0.16, 1, 0.3, 1)\";const smooth=\"cubic-bezier(0.45, 0, 0.2, 1)\"// eases in as well as out, so the draw-in isn't a snap\n;const still=reduce||canvas;const glow=\"linear-gradient(90deg, transparent 0%, #000 50%, transparent 100%)\";const white=p.colour===\"White\";const band=white?WHITE:BAND;return /*#__PURE__*/_jsxs(\"span\",{ref:ref,style:{...incoming.style,position:\"relative\",display:\"inline-flex\",alignItems:\"center\",gap:6,paddingBottom:5,whiteSpace:\"nowrap\",fontFamily:'\"Inter\", system-ui, sans-serif',fontSize:fs,fontWeight:600,letterSpacing:\"-0.005em\",lineHeight:1.2,color:ink,pointerEvents:\"none\"},children:[/*#__PURE__*/_jsx(\"style\",{children:CSS}),p.text,p.arrow?/*#__PURE__*/_jsx(\"svg\",{viewBox:\"0 0 24 24\",width:fs,height:fs,fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",\"aria-hidden\":\"true\",style:{flex:\"none\",transform:on?\"translateX(2px)\":\"none\",transition:`transform 0.5s ${ease}`},children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 12h14M13 6l6 6-6 6\"})}):null,/*#__PURE__*/_jsxs(\"span\",{\"aria-hidden\":\"true\",style:{position:\"absolute\",left:0,right:-3,bottom:0,height:H,clipPath:\"polygon(0 0, calc(100% - 3.5px) 0, 100% 100%, 0 100%)\",transformOrigin:\"0 50%\",transform:on?\"scaleX(1)\":\"scaleX(0)\",opacity:on?1:0,transition:`transform 0.95s ${smooth}, opacity 0.5s ${smooth}`},children:[/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",inset:0,backgroundImage:band,opacity:white?.42:dark?.34:.3,filter:white?undefined:\"saturate(0.6)\"}}),white?null:/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",inset:0,background:dark?\"rgba(255,255,255,0.12)\":\"rgba(255,255,255,0.45)\"}}),/*#__PURE__*/_jsx(\"span\",{style:{position:\"absolute\",inset:0,backgroundImage:band,opacity:white?1:dark?.9:.85,filter:white?undefined:\"saturate(0.9)\",WebkitMaskImage:glow,maskImage:glow,WebkitMaskSize:\"45% 100%\",maskSize:\"45% 100%\",WebkitMaskRepeat:\"no-repeat\",maskRepeat:\"no-repeat\",WebkitMaskPosition:\"50% 0\",maskPosition:\"50% 0\",animation:still?undefined:\"nl-glint 3.8s ease-in-out infinite alternate\"}})]})]});}NavLink.defaultProps=DEFAULTS;addPropertyControls(NavLink,{text:{type:ControlType.String,title:\"Text\"},tone:{type:ControlType.Enum,title:\"Tone\",options:[\"Light\",\"Dark\"],displaySegmentedControl:true},colour:{type:ControlType.Enum,title:\"Colour\",options:[\"Logo\",\"White\"],displaySegmentedControl:true},arrow:{type:ControlType.Boolean,title:\"Arrow\"},size:{type:ControlType.Number,title:\"Size\",min:11,max:16,step:1,unit:\"px\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"NavLink\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"90\",\"framerSupportedLayoutWidth\":\"auto\",\"framerIntrinsicHeight\":\"22\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./NavLink.map"],"mappings":"A,wPAwBG,SAAwBiB,EAAQ,EAAS,CAAC,IAAMjB,EAAE,CAAC,GAAGmB,CAAQ,EAAE,IAAI,IAAMC,KAAKC,EAAYA,EAASD,KAAK,IAAA,KAAU,EAAEA,GAAGC,EAASD,IAAG,IAAME,EAAKtB,EAAE,OAAO,OAAauB,EAAOZ,EAAiB,EAAQa,EAAOX,EAAa,QAAQ,IAAIA,EAAa,OAAaY,EAAIxB,EAAa,IAAI,EAAO,CAACyB,EAAGC,GAAOzB,EAAe,EAAK,EAAEM,MAAoB,CAAC,IAAIoB,EAAGH,EAAI,SAAS,eAAe,KAAK,IAAI,IAAII,EAAE,EAAED,GAAIC,EAAE,GAAG,iBAAiBD,CAAE,CAAC,CAAC,sBAAsB,MAAM,IAAI,EAAGA,EAAG,cAAc,GAAG,CAACA,EAAG,OAAO,IAAME,MAAMH,EAAM,EAAI,EAAEI,MAAMJ,EAAM,EAAK,EAAiJ,OAA/IC,EAAG,iBAAiB,eAAeE,CAAC,EAAEF,EAAG,iBAAiB,eAAeG,CAAC,EAAEH,EAAG,iBAAiB,UAAUE,CAAC,EAAEF,EAAG,iBAAiB,WAAWG,CAAC,MAAY,CAACH,EAAG,oBAAoB,eAAeE,CAAC,EAAEF,EAAG,oBAAoB,eAAeG,CAAC,EAAEH,EAAG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