{"version":3,"file":"PrimaryButton.BOSjTReD.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/PxsXmG5QABJRg21lYRgv/w8azYvCNyxT78O8kCIhq/PrimaryButton.js"],"sourcesContent":["// Interactive button with arrow animations - arrow appears before text on hover, after text when not hovered\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";/**\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function PrimaryButton(props){const{text,link,backgroundColor,textColor,borderRadius,font}=props;const[isHovered,setIsHovered]=useState(false);const handleClick=()=>{if(link&&typeof window!==\"undefined\"){if(link.startsWith(\"http\")||link.startsWith(\"https\")){window.open(link,\"_blank\");}else{// For internal pages, use pushState for proper navigation\nif(link.startsWith(\"/\")){window.history.pushState({},\"\",link);window.dispatchEvent(new PopStateEvent(\"popstate\"));}else{// Relative links\nwindow.location.href=link;}}}};return /*#__PURE__*/_jsxs(\"button\",{onClick:handleClick,style:{backgroundColor,color:textColor,borderRadius:`${borderRadius}px`,border:\"none\",padding:\"16px 32px\",cursor:\"pointer\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",minWidth:\"max-content\",width:\"100%\",position:\"relative\",overflow:\"hidden\",transition:\"all 0.3s ease\",...font},onMouseEnter:e=>{setIsHovered(true);e.currentTarget.style.opacity=\"0.9\";e.currentTarget.style.transform=\"translateY(-1px)\";},onMouseLeave:e=>{setIsHovered(false);e.currentTarget.style.opacity=\"1\";e.currentTarget.style.transform=\"translateY(0px)\";},onMouseDown:e=>{e.currentTarget.style.transform=\"translateY(0px)\";},children:[/*#__PURE__*/_jsx(\"div\",{style:{opacity:isHovered?1:0,transform:isHovered?\"translateX(0)\":\"translateX(-10px)\",transition:\"all 0.3s ease\",display:\"flex\",alignItems:\"center\",marginRight:isHovered?\"8px\":\"0px\",width:isHovered?\"16px\":\"0px\"},children:/*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 12h14M12 5l7 7-7 7\"})})}),/*#__PURE__*/_jsx(\"span\",{style:{whiteSpace:\"nowrap\",transition:\"all 0.3s ease\"},children:text}),/*#__PURE__*/_jsx(\"div\",{style:{opacity:isHovered?0:1,transform:isHovered?\"translateX(10px)\":\"translateX(0)\",transition:\"all 0.3s ease\",display:\"flex\",alignItems:\"center\",marginLeft:isHovered?\"0px\":\"8px\",width:isHovered?\"0px\":\"16px\"},children:/*#__PURE__*/_jsx(\"svg\",{width:\"16\",height:\"16\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:\"currentColor\",strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 12h14M12 5l7 7-7 7\"})})})]});}addPropertyControls(PrimaryButton,{text:{type:ControlType.String,title:\"Button Text\",defaultValue:\"Let's talk\"},link:{type:ControlType.Link,title:\"Link\"},backgroundColor:{type:ControlType.Color,title:\"Background Color\",defaultValue:\"#000000\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:50,min:0,max:100,unit:\"px\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"16px\",variant:\"Bold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PrimaryButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./PrimaryButton.map"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