{"version":3,"file":"LearnMoreButton.DIVjrpSA.mjs","names":["useState","startTransition"],"sources":["https:/framerusercontent.com/modules/fFo0fOnbrQE1IuExYoZL/H3vVkgPEWhfvLNbtQXhZ/LearnMoreButton.js"],"sourcesContent":["// CTA Switch with hover color change matching attached images\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * CTA Switch with hover color change\n *\n * @framerIntrinsicWidth 160\n * @framerIntrinsicHeight 38\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight fixed\n */export default function LearnMoreButton(props){const{label,textColor,iconColor,hoverTextColor,hoverIconColor,font,style,arrowStyle,customSVG}=props;const[hover,setHover]=useState(false);function renderArrow(){const color=hover?hoverIconColor:iconColor;const size=props.iconSize;if(arrowStyle===\"chevron\"){return /*#__PURE__*/_jsxs(\"svg\",{width:size,height:size,viewBox:\"0 0 32 32\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{display:\"block\",minWidth:size,minHeight:size},children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"16\",cy:\"16\",r:\"15.5\",stroke:color,strokeWidth:\"1.5\",fill:\"none\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M12 16H20M20 16L17 13M20 16L17 19\",stroke:color,strokeWidth:\"2.2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",style:{transition:\"transform 0.25s cubic-bezier(.4,1.5,.5,1)\",transform:hover?\"scaleX(1.35)\":\"scaleX(1)\",transformOrigin:\"16px 16px\"}})]});}else if(arrowStyle===\"filled\"){return /*#__PURE__*/_jsxs(\"svg\",{width:size,height:size,viewBox:\"0 0 32 32\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",style:{display:\"block\",minWidth:size,minHeight:size},children:[/*#__PURE__*/_jsx(\"circle\",{cx:\"16\",cy:\"16\",r:\"15.5\",stroke:color,strokeWidth:\"1.5\",fill:\"none\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M12 16H20M20 16L17 13M20 16L17 19\",fill:color,stroke:color,strokeWidth:\"2.2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",style:{transition:\"transform 0.25s cubic-bezier(.4,1.5,.5,1)\",transform:hover?\"scaleX(1.35)\":\"scaleX(1)\",transformOrigin:\"16px 16px\"}})]});}else if(arrowStyle===\"custom\"&&customSVG){return /*#__PURE__*/_jsx(\"span\",{style:{display:\"block\",width:size,height:size,minWidth:size,minHeight:size},dangerouslySetInnerHTML:{__html:customSVG}});}// fallback\nreturn null;}return /*#__PURE__*/_jsxs(\"button\",{type:\"button\",style:{position:\"relative\",display:\"flex\",alignItems:\"center\",gap:props.gap,background:\"transparent\",border:\"none\",padding:props.buttonPadding,margin:0,cursor:\"pointer\",outline:\"none\",minWidth:0,minHeight:0,width:\"100%\",height:props.buttonHeight},\"aria-label\":label,onMouseEnter:()=>startTransition(()=>setHover(true)),onMouseLeave:()=>startTransition(()=>setHover(false)),onClick:()=>{if(props.link){if(typeof window!==\"undefined\"){window.open(props.link,\"_blank\");}}},children:[/*#__PURE__*/_jsx(\"span\",{style:{color:hover?hoverTextColor:textColor,...font,fontWeight:700,fontSize:font.fontSize,lineHeight:font.lineHeight,letterSpacing:font.letterSpacing,fontFamily:font.fontFamily,minWidth:0,minHeight:0,whiteSpace:\"nowrap\"},children:label}),renderArrow()]});}addPropertyControls(LearnMoreButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Learn More\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#0A2C43\"},iconColor:{type:ControlType.Color,title:\"Icon Color\",defaultValue:\"#B07A53\"},hoverTextColor:{type:ControlType.Color,title:\"Hover Text\",defaultValue:\"#B07A53\"},hoverIconColor:{type:ControlType.Color,title:\"Hover Icon\",defaultValue:\"#B07A53\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:18,variant:\"Bold\",letterSpacing:0,lineHeight:\"38px\"}},buttonHeight:{type:ControlType.Number,title:\"Button Height\",defaultValue:38,min:24,max:80,unit:\"px\"},buttonPadding:{type:ControlType.Number,title:\"Button Padding\",defaultValue:0,min:0,max:32,unit:\"px\"},gap:{type:ControlType.Number,title:\"Gap\",defaultValue:8,min:0,max:32,unit:\"px\"},iconSize:{type:ControlType.Number,title:\"Icon Size\",defaultValue:32,min:16,max:64,unit:\"px\"},arrowStyle:{type:ControlType.Enum,title:\"Arrow Style\",options:[\"chevron\",\"filled\",\"custom\"],optionTitles:[\"Chevron\",\"Filled\",\"Custom SVG\"],defaultValue:\"chevron\"},customSVG:{type:ControlType.String,title:\"Custom SVG\",defaultValue:\"\",displayTextArea:true,hidden:props=>props.arrowStyle!==\"custom\"},link:{type:ControlType.Link,title:\"Link\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"LearnMoreButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicHeight\":\"38\",\"framerIntrinsicWidth\":\"160\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./LearnMoreButton.map"],"mappings":"iMASG,SAAwB,EAAgB,EAAM,CAAC,GAAK,CAAC,QAAM,YAAU,YAAU,iBAAe,iBAAe,OAAK,QAAM,aAAW,aAAW,EAAW,CAAC,EAAM,GAAUA,EAAS,GAAM,CAAC,SAAS,GAAa,CAAC,IAAM,EAAM,EAAM,EAAe,EAAgB,EAAK,EAAM,SAChR,OAD4R,IAAa,UAA+B,EAAM,MAAM,CAAC,MAAM,EAAK,OAAO,EAAK,QAAQ,YAAY,KAAK,OAAO,MAAM,6BAA6B,MAAM,CAAC,QAAQ,QAAQ,SAAS,EAAK,UAAU,EAAK,CAAC,SAAS,CAAc,EAAK,SAAS,CAAC,GAAG,KAAK,GAAG,KAAK,EAA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