{"version":3,"file":"StickyCallButton.DpvU6gPE.mjs","names":[],"sources":["https:/framerusercontent.com/modules/w7CxlGphD1beMDFAeZMZ/SOKs5HjmPUut8W7iRKcj/StickyCallButton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * Sticky Call Button\n *\n * A fixed call button that stays visible while scrolling and links to a phone number.\n *\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 60\n *\n * @framerSupportedLayoutWidth fixed\n * @framerSupportedLayoutHeight auto\n */export default function StickyCallButton(props){const{phoneNumber=\"+14078100096\",buttonText=\"Call Now\",backgroundColor=\"#22CC66\",textColor=\"#FFFFFF\",position=\"bottom-right\",bottomOffset=24,sideOffset=24,borderRadius=50,font,showIcon=true,padding=16,shadow=true,linkMode=\"phone\",link=\"https://framer.com\"}=props;const getPositionStyles=()=>{const base={position:\"fixed\",bottom:bottomOffset,zIndex:9999};switch(position){case\"bottom-left\":return{...base,left:sideOffset};case\"bottom-center\":return{...base,left:\"50%\",transform:\"translateX(-50%)\"};case\"bottom-right\":default:return{...base,right:sideOffset};}};const href=linkMode===\"link\"?link:`tel:${phoneNumber}`;return /*#__PURE__*/_jsxs(\"a\",{href:href,style:{...getPositionStyles(),display:\"flex\",alignItems:\"center\",gap:8,padding:`${padding}px ${padding*1.5}px`,backgroundColor,color:textColor,borderRadius,textDecoration:\"none\",cursor:\"pointer\",boxShadow:shadow?\"0 4px 12px rgba(0, 0, 0, 0.15)\":\"none\",transition:\"transform 0.2s ease, box-shadow 0.2s ease\",...font},onMouseEnter:e=>{e.currentTarget.style.transform=position===\"bottom-center\"?\"translateX(-50%) scale(1.05)\":\"scale(1.05)\";e.currentTarget.style.boxShadow=shadow?\"0 6px 16px rgba(0, 0, 0, 0.2)\":\"none\";},onMouseLeave:e=>{e.currentTarget.style.transform=position===\"bottom-center\"?\"translateX(-50%)\":\"scale(1)\";e.currentTarget.style.boxShadow=shadow?\"0 4px 12px rgba(0, 0, 0, 0.15)\":\"none\";},target:linkMode===\"link\"?\"_blank\":undefined,rel:linkMode===\"link\"?\"noreferrer\":undefined,\"aria-label\":linkMode===\"link\"?`Open link ${link}`:`Call ${phoneNumber}`,children:[showIcon&&/*#__PURE__*/_jsx(\"svg\",{width:\"20\",height:\"20\",viewBox:\"0 0 24 24\",fill:\"none\",stroke:textColor,strokeWidth:\"2\",strokeLinecap:\"round\",strokeLinejoin:\"round\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z\"})}),/*#__PURE__*/_jsx(\"span\",{children:buttonText})]});}addPropertyControls(StickyCallButton,{linkMode:{type:ControlType.Enum,title:\"Action\",options:[\"phone\",\"link\"],optionTitles:[\"Call\",\"Open Link\"],defaultValue:\"phone\",displaySegmentedControl:true},phoneNumber:{type:ControlType.String,title:\"Phone Number\",defaultValue:\"+14078100096\",placeholder:\"+14078100096\",hidden:({linkMode})=>linkMode===\"link\"},link:{type:ControlType.Link,title:\"Link\",defaultValue:\"https://framer.com\",hidden:({linkMode})=>linkMode!==\"link\"},buttonText:{type:ControlType.String,title:\"Button Text\",defaultValue:\"Call Now\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#22CC66\"},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},position:{type:ControlType.Enum,title:\"Position\",options:[\"bottom-left\",\"bottom-right\",\"bottom-center\"],optionTitles:[\"Bottom Left\",\"Bottom Right\",\"Bottom Center\"],defaultValue:\"bottom-right\",displaySegmentedControl:true},bottomOffset:{type:ControlType.Number,title:\"Bottom Offset\",defaultValue:24,min:0,max:200,step:4,unit:\"px\"},sideOffset:{type:ControlType.Number,title:\"Side Offset\",defaultValue:24,min:0,max:200,step:4,unit:\"px\",hidden:({position})=>position===\"bottom-center\"},borderRadius:{type:ControlType.Number,title:\"Border Radius\",defaultValue:50,min:0,max:100,step:1,unit:\"px\"},padding:{type:ControlType.Number,title:\"Padding\",defaultValue:16,min:4,max:40,step:4,unit:\"px\"},showIcon:{type:ControlType.Boolean,title:\"Show Icon\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},shadow:{type:ControlType.Boolean,title:\"Shadow\",defaultValue:true,enabledTitle:\"On\",disabledTitle:\"Off\"},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"StickyCallButton\",\"slots\":[],\"annotations\":{\"framerIntrinsicHeight\":\"60\",\"framerSupportedLayoutHeight\":\"auto\",\"framerContractVersion\":\"1\",\"framerIntrinsicWidth\":\"200\",\"framerSupportedLayoutWidth\":\"fixed\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./StickyCallButton.map"],"mappings":"8JAUG,SAAwB,EAAiB,EAAM,CAAC,GAAK,CAAC,cAAY,eAAe,aAAW,WAAW,kBAAgB,UAAU,YAAU,UAAU,WAAS,eAAe,eAAa,GAAG,aAAW,GAAG,eAAa,GAAG,OAAK,WAAS,GAAK,UAAQ,GAAG,SAAO,GAAK,WAAS,QAAQ,OAAK,sBAAsB,EAAsW,OAAoB,EAAM,IAAI,CAAC,KAA3E,IAAW,OAAO,EAAK,OAAO,IAAuD,MAAM,CAAC,QAApX,CAAC,IAAM,EAAK,CAAC,SAAS,QAAQ,OAAO,EAAa,O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