{"version":3,"file":"BookCallButton.JB0UVYYA.mjs","names":["BookCallButton","useState","startTransition","useState","startTransition"],"sources":["https:/framerusercontent.com/modules/ImyJfkAi8jCm1sBFrIuI/WvMMfZEFJD2xedvJIWGZ/BookCallButton_1.js","https:/framerusercontent.com/modules/3BNpzp9Y8eJ9QbKLEKu2/5Zmw0t70M6sDj21Nk7YY/BookCallButton.js"],"sourcesContent":["// Button fills section, border #153333, rounded corners, center text \"Book a Call\". Hover: fill #153333, text white.\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Full Section Fill Button\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n */export default function BookCallButton(props){const{label,borderColor,fillColor,textColor,hoverTextColor,borderRadius,font,style}=props;const[hover,setHover]=useState(false);return /*#__PURE__*/_jsx(\"button\",{type:\"button\",style:{...style,width:\"100%\",height:\"100%\",minWidth:260,minHeight:64,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",border:`2px solid ${borderColor}`,borderRadius,background:hover?fillColor:\"transparent\",color:hover?hoverTextColor:textColor,cursor:\"pointer\",transition:\"background 0.22s cubic-bezier(.4,0,.2,1), color 0.22s cubic-bezier(.4,0,.2,1)\",outline:\"none\",...font,fontFamily:font?.fontFamily,fontWeight:font?.fontWeight,letterSpacing:font?.letterSpacing,lineHeight:font?.lineHeight,fontStyle:font?.fontStyle,textTransform:\"none\",fontSize:font?.fontSize?`calc(${font.fontSize} * 2)`:\"36px\"},onMouseEnter:()=>startTransition(()=>setHover(true)),onMouseLeave:()=>startTransition(()=>setHover(false)),\"aria-label\":label,children:label.charAt(0).toUpperCase()+label.slice(1)});}addPropertyControls(BookCallButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Book a Call\"},borderColor:{type:ControlType.Color,title:\"Border Color\",defaultValue:\"#153333\"},fillColor:{type:ControlType.Color,title:\"Fill Color\",defaultValue:\"#153333\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#153333\"},hoverTextColor:{type:ControlType.Color,title:\"Hover Text\",defaultValue:\"#fff\"},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:32},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"18px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BookCallButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\"1\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BookCallButton_1.map","// Book a Call button with animated arrow and custom hover color\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Book a Call Button with Animated Arrow\n *\n * @framerIntrinsicWidth 180\n * @framerIntrinsicHeight 48\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight fixed\n */export default function BookCallButton(props){const{label,background,textColor,arrowColor,arrowHoverColor,font,borderRadius,style}=props;const[hover,setHover]=useState(false);return /*#__PURE__*/_jsxs(\"button\",{type:\"button\",style:{...style,width:\"100%\",height:\"100%\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:12,background:hover?\"#153333\":background,color:hover?\"#fff\":textColor,border:\"none\",borderRadius,cursor:\"pointer\",transition:\"background 0.2s, color 0.2s\",outline:\"none\",...font,fontFamily:font.fontFamily,fontSize:font.fontSize,fontWeight:font.fontWeight,letterSpacing:font.letterSpacing,lineHeight:font.lineHeight},\"aria-label\":label,onMouseEnter:()=>startTransition(()=>setHover(true)),onMouseLeave:()=>startTransition(()=>setHover(false)),children:[/*#__PURE__*/_jsx(\"span\",{style:{pointerEvents:\"none\",userSelect:\"none\",color:hover?\"#fff\":textColor},children:label}),/*#__PURE__*/_jsx(\"span\",{style:{display:\"inline-flex\",alignItems:\"center\",transition:\"transform 0.25s cubic-bezier(.4,1.5,.5,1)\",transform:hover?\"translateX(6px)\":\"none\"},children:/*#__PURE__*/_jsx(\"svg\",{width:\"22\",height:\"22\",viewBox:\"0 0 22 22\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",\"aria-hidden\":\"true\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M6 11h10m0 0l-4-4m4 4l-4 4\",stroke:hover?\"#fff\":arrowColor,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",fill:\"none\"})})})]});}addPropertyControls(BookCallButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Book a call\"},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#FFFFFF\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},arrowColor:{type:ControlType.Color,title:\"Arrow Color\",defaultValue:\"#000000\"},arrowHoverColor:{type:ControlType.Color,title:\"Arrow Hover\",defaultValue:\"#153333\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1.2em\"}},borderRadius:{type:ControlType.Number,title:\"Radius\",defaultValue:8,min:0,max:32}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"BookCallButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerIntrinsicHeight\":\"48\",\"framerSupportedLayoutHeight\":\"fixed\",\"framerIntrinsicWidth\":\"180\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./BookCallButton.map"],"mappings":"mLAMG,SAAwBA,EAAe,EA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