{"version":3,"file":"FormulaExternalProjectLink.B_vk-1-e.mjs","names":["useState","startTransition"],"sources":["https:/framerusercontent.com/modules/MMGm9N5gc24kqQBJjtF2/9ac0RjXk3H4EsHi41iDU/FormulaExternalProjectLink.js"],"sourcesContent":["// User request: Modify to a compact visible editorial external text link (\"View the site ↗\"), keeping safe external link behavior, accessible label, restrained hover/focus affordance, reduced-motion support, and configurable controls.\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{startTransition,useEffect,useState}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */export default function FormulaExternalProjectLink(props){const{href=\"https://rocksolidinnovations.net\",ariaLabel=\"Visit Rock Solid Innovations website (opens in a new tab)\",text=\"View the site\",focusOutlineColor=\"#F5F5F5\",textColor=\"#F5F5F5\"}=props;const[isActive,setIsActive]=useState(false);const[reducedMotion,setReducedMotion]=useState(false);useEffect(()=>{if(typeof window!==\"undefined\"&&typeof window.matchMedia===\"function\"){const mediaQuery=window.matchMedia(\"(prefers-reduced-motion: reduce)\");const applyPreference=()=>{startTransition(()=>setReducedMotion(mediaQuery.matches));};applyPreference();if(typeof mediaQuery.addEventListener===\"function\"){mediaQuery.addEventListener(\"change\",applyPreference);return()=>mediaQuery.removeEventListener(\"change\",applyPreference);}if(typeof mediaQuery.addListener===\"function\"){mediaQuery.addListener(applyPreference);return()=>mediaQuery.removeListener(applyPreference);}}},[]);return /*#__PURE__*/_jsxs(\"a\",{href:href,target:\"_blank\",rel:\"noopener noreferrer\",\"aria-label\":ariaLabel,style:{position:\"relative\",display:\"inline-flex\",alignItems:\"center\",gap:6,width:\"max-content\",minWidth:\"max-content\",minHeight:44,cursor:\"pointer\",background:\"transparent\",textDecoration:\"none\",borderRadius:8,outline:\"none\",boxSizing:\"border-box\",padding:\"10px 0\",color:textColor,fontFamily:'\"Clash Display\", sans-serif',fontSize:14,lineHeight:\"1em\",fontWeight:600,letterSpacing:\"-0.01em\",textUnderlineOffset:3,textDecorationLine:isActive?\"underline\":\"none\",textDecorationThickness:\"1px\",transition:reducedMotion?\"none\":\"text-decoration-color 180ms ease, box-shadow 180ms ease\"},onMouseEnter:()=>startTransition(()=>setIsActive(true)),onMouseLeave:()=>startTransition(()=>setIsActive(false)),onFocus:event=>{startTransition(()=>setIsActive(true));event.currentTarget.style.boxShadow=`inset 0 0 0 2px ${focusOutlineColor}`;},onBlur:event=>{startTransition(()=>setIsActive(false));event.currentTarget.style.boxShadow=\"none\";},children:[/*#__PURE__*/_jsx(\"span\",{children:text}),/*#__PURE__*/_jsx(\"span\",{\"aria-hidden\":\"true\",style:{display:\"inline-block\",transform:isActive&&!reducedMotion?\"translateX(1px) translateY(-1px)\":\"translateX(0) translateY(0)\",transition:reducedMotion?\"none\":\"transform 180ms ease\"},children:\"↗\"})]});}addPropertyControls(FormulaExternalProjectLink,{href:{type:ControlType.Link,title:\"Href\",defaultValue:\"https://rocksolidinnovations.net\"},ariaLabel:{type:ControlType.String,title:\"Aria Label\",defaultValue:\"Visit Rock Solid Innovations website (opens in a new tab)\"},text:{type:ControlType.String,title:\"Text\",defaultValue:\"View the site\"},focusOutlineColor:{type:ControlType.Color,title:\"Focus\",defaultValue:\"#F5F5F5\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#F5F5F5\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"FormulaExternalProjectLink\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"any\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./FormulaExternalProjectLink.map"],"mappings":"6MAIG,SAAwB,EAA2B,EAAM,CAAC,GAAK,CAAC,OAAK,mCAAmC,YAAU,4DAA4D,OAAK,gBAAgB,oBAAkB,UAAU,YAAU,WAAW,EAAW,CAAC,EAAS,GAAaA,EAA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