{"version":3,"file":"PathLink.B_0WjTAp.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/MU1jhROyCWw6N5HFP2I9/SvVYRej3DnAL7eP29oSl/PathLink.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";// Colors mirror the Color Styles (code components can't reference Framer tokens directly):\n// light: Accent/primary #3E6B70 -> Copper/deep #8E6732 ; dark: Copper/light #C9923A -> Cream/primary #F5ECD7\nconst PALETTE={light:{base:\"#3E6B70\",hover:\"#8E6732\",ring:\"rgba(62, 107, 112, 0.4)\"},dark:{base:\"#C9923A\",hover:\"#F5ECD7\",ring:\"rgba(245, 236, 215, 0.4)\"}};/**\n * Path Link\n *\n * Standalone \"read this next\" link: Cormorant italic + animated arrow & gap, accent->copper.\n *\n * @framerIntrinsicWidth 240\n * @framerIntrinsicHeight 40\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function PathLink(props){const{label=\"See how we work\",href=\"#\",ground=\"light\",fontSize=27,newTab=false}=props;const c=PALETTE[ground]??PALETTE.light;const[hover,setHover]=useState(false);const[focus,setFocus]=useState(false);const active=hover||focus;const color=active?c.hover:c.base;const underlineColor=active?color:color+\"73\"// ~45% (hex alpha) at rest, full on hover\n;return /*#__PURE__*/_jsxs(\"a\",{href:href,target:newTab?\"_blank\":undefined,rel:newTab?\"noopener noreferrer\":undefined,onMouseEnter:()=>setHover(true),onMouseLeave:()=>setHover(false),onFocus:e=>{try{if(e.target.matches(\":focus-visible\"))setFocus(true);}catch{setFocus(true);}},onBlur:()=>setFocus(false),style:{...props.style,display:\"inline-flex\",alignItems:\"baseline\",gap:active?18:12,width:\"max-content\",maxWidth:\"100%\",fontFamily:\"'Cormorant Garamond', serif\",fontStyle:\"italic\",fontWeight:500,fontSize,lineHeight:1.3,color,textDecoration:\"none\",borderBottom:\"1px solid \"+underlineColor,paddingBottom:1,outline:focus?\"2px solid \"+c.ring:\"none\",outlineOffset:focus?3:0,transition:\"color 200ms ease, border-color 200ms ease, gap 200ms ease, outline-color 200ms ease\",cursor:\"pointer\"},children:[/*#__PURE__*/_jsx(\"span\",{children:label}),/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{fontStyle:\"normal\"},children:\"→\"})]});}addPropertyControls(PathLink,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"See how we work\"},href:{type:ControlType.Link,title:\"Link\"},ground:{type:ControlType.Enum,title:\"Ground\",options:[\"light\",\"dark\"],optionTitles:[\"Light\",\"Dark\"],defaultValue:\"light\",displaySegmentedControl:true},fontSize:{type:ControlType.Number,title:\"Size\",defaultValue:27,min:16,max:48,unit:\"px\"},newTab:{type:ControlType.Boolean,title:\"New Tab\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PathLink\",\"slots\":[],\"annotations\":{\"framerIntrinsicWidth\":\"240\",\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerIntrinsicHeight\":\"40\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PathLink.map"],"mappings":"iLAYG,SAAwB,EAAS,EAAM,CAAC,GAAK,CAAC,QAAM,kBAAkB,OAAK,IAAI,SAAO,QAAQ,WAAS,GAAG,SAAO,IAAO,EAAY,EAAE,EAAQ,IAAS,EAAQ,MAAW,CAAC,EAAM,GAAUA,EAAS,GAAM,CAAM,CAAC,EAAM,GAAUA,EAAS,GAAM,CAAO,EAAO,GAAO,EAAY,EAAM,EAAO,EAAE,MAAM,EAAE,KAAW,EAAe,EAAO,EAAM,EAAM,KACvV,OAAoB,EAAM,IAAI,CAAM,OAAK,OAAO,EAAO,SAAS,IAAA,GAAU,IAAI,EAAO,sBAAsB,IAAA,GAAU,iBAAiB,EAAS,GAAK,CAAC,iBAAiB,EAAS,GAAM,C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