{"version":3,"file":"PulseButton_1.Cfg7emSn.mjs","names":[],"sources":["https:/framerusercontent.com/modules/fvXXBn3w8AzdBkWWYADb/BiK2pyxZZujMzGs1G8pg/PulseButton_1.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType,useIsStaticRenderer}from\"framer\";import{motion}from\"framer-motion\";/**\n * Pulse Button\n *\n * @framerIntrinsicWidth 160\n * @framerIntrinsicHeight 50\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight auto\n */export default function PulseButton(props){const{text=\"Click Me\",icon,iconSize=20,iconGap=8,font,textColor=\"#FFFFFF\",backgroundColor=\"#0099FF\",pulseColor=\"#0099FF\",borderRadius=\"50px\",padding=\"12px 24px 12px 24px\",onTap,glow=true,pulseIntensity=1.5,variant=\"Ripple\",speed=1,style,className,link,openInNewTab=true}=props;const isRipple=variant===\"Ripple\";const isScale=variant===\"Scale\";const isShadow=variant===\"Shadow\";const isStatic=useIsStaticRenderer();// --- Ripple timing (adjusted by speed) ---\nconst baseRippleDuration=2;const baseRippleInterval=.6;const rippleDuration=baseRippleDuration/speed;const rippleInterval=baseRippleInterval/speed;const ringCount=Math.max(1,Math.ceil(rippleDuration/rippleInterval));const ripplePeriod=ringCount*rippleInterval;const rippleRepeatDelay=Math.max(0,ripplePeriod-rippleDuration);const scaleValue=1+(pulseIntensity-1)*.1;const animationProps=isScale?{scale:[1,scaleValue,1],transition:{duration:2/speed,repeat:Infinity,ease:\"easeInOut\"}}:isShadow?{boxShadow:[`0 0 0px ${pulseColor}`,`0 0 ${10*pulseIntensity}px ${pulseColor}`,`0 0 0px ${pulseColor}`],transition:{duration:2/speed,repeat:Infinity,ease:\"easeInOut\"}}:undefined;const hoverProps=isScale?{scale:scaleValue+.05,filter:\"brightness(1.1)\",boxShadow:`0 0 25px ${pulseColor}`,transition:{type:\"spring\",stiffness:400,damping:25}}:isShadow?{scale:1.02,y:-1,filter:\"brightness(1.1)\",boxShadow:`0 0 30px ${pulseColor}`,transition:{type:\"spring\",stiffness:400,damping:25}}:{scale:1.05,filter:\"brightness(1.1)\",boxShadow:`0 0 25px ${pulseColor}`,transition:{type:\"spring\",stiffness:400,damping:25}};const tapProps=isScale?{scale:.95,filter:\"brightness(0.9)\",boxShadow:`0 0 10px ${pulseColor}`,transition:{type:\"spring\",stiffness:400,damping:25}}:isShadow?{scale:.98,y:0,filter:\"brightness(0.95)\",boxShadow:`0 0 15px ${pulseColor}`,transition:{type:\"spring\",stiffness:400,damping:25}}:{scale:.95,filter:\"brightness(0.9)\",boxShadow:`0 0 10px ${pulseColor}`,transition:{type:\"spring\",stiffness:400,damping:25}};const handleTap=event=>{if(onTap)onTap(event);if(link&&typeof window!==\"undefined\"){if(openInNewTab){window.open(link,\"_blank\",\"noopener,noreferrer\");}else{window.open(link,\"_self\");}}};return /*#__PURE__*/_jsxs(\"div\",{className:className,style:{...style,width:\"100%\",height:\"auto\",display:\"flex\",justifyContent:\"center\",alignItems:\"center\",position:\"relative\"},children:[!isStatic&&isRipple&&Array.from({length:ringCount}).map((_,i)=>/*#__PURE__*/_jsx(motion.div,{style:{position:\"absolute\",inset:0,borderRadius:borderRadius,backgroundColor:pulseColor,zIndex:0,pointerEvents:\"none\",willChange:\"transform, opacity\",transformOrigin:\"center center\",backfaceVisibility:\"hidden\",WebkitBackfaceVisibility:\"hidden\"},transformTemplate:(latest,generated)=>`translateZ(0px) ${generated}`,initial:{scale:1,opacity:.35},animate:{scale:pulseIntensity,opacity:0},transition:{duration:rippleDuration,ease:\"easeOut\",repeat:Infinity,repeatDelay:rippleRepeatDelay,delay:i*rippleInterval}},i)),isStatic?/*#__PURE__*/_jsxs(\"button\",{onClick:handleTap,style:{position:\"relative\",zIndex:1,background:backgroundColor,color:textColor,border:\"none\",borderRadius:borderRadius,padding:padding,cursor:\"pointer\",width:\"100%\",height:\"auto\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:`${iconGap}px`,boxShadow:glow&&!isShadow?`0 0 20px ${pulseColor}`:\"none\",...font},children:[/*#__PURE__*/_jsx(\"svg\",{width:iconSize,height:iconSize,viewBox:\"0 0 24 24\",fill:\"currentColor\",style:{flexShrink:0},children:/*#__PURE__*/_jsx(\"path\",{d:\"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893A11.821 11.821 0 0020.465 3.488\"})}),/*#__PURE__*/_jsx(\"span\",{children:text})]}):/*#__PURE__*/_jsxs(motion.button,{onTap:handleTap,whileHover:hoverProps,whileTap:tapProps,animate:animationProps,transition:{type:\"spring\",stiffness:220,damping:22},style:{position:\"relative\",zIndex:1,background:backgroundColor,color:textColor,border:\"none\",borderRadius:borderRadius,padding:padding,cursor:\"pointer\",width:\"100%\",height:\"auto\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",gap:`${iconGap}px`,boxShadow:glow&&!isShadow?`0 0 20px ${pulseColor}`:\"none\",...font},children:[/*#__PURE__*/_jsx(\"svg\",{width:iconSize,height:iconSize,viewBox:\"0 0 24 24\",fill:\"currentColor\",style:{flexShrink:0},children:/*#__PURE__*/_jsx(\"path\",{d:\"M17.472 14.382c-.297-.149-1.758-.867-2.03-.967-.273-.099-.471-.148-.67.15-.197.297-.767.966-.94 1.164-.173.199-.347.223-.644.075-.297-.15-1.255-.463-2.39-1.475-.883-.788-1.48-1.761-1.653-2.059-.173-.297-.018-.458.13-.606.134-.133.298-.347.446-.52.149-.174.198-.298.298-.497.099-.198.05-.371-.025-.52-.075-.149-.669-1.612-.916-2.207-.242-.579-.487-.5-.669-.51-.173-.008-.371-.01-.57-.01-.198 0-.52.074-.792.372-.272.297-1.04 1.016-1.04 2.479 0 1.462 1.065 2.875 1.213 3.074.149.198 2.096 3.2 5.077 4.487.709.306 1.262.489 1.694.625.712.227 1.36.195 1.871.118.571-.085 1.758-.719 2.006-1.413.248-.694.248-1.289.173-1.413-.074-.124-.272-.198-.57-.347m-5.421 7.403h-.004a9.87 9.87 0 01-5.031-1.378l-.361-.214-3.741.982.998-3.648-.235-.374a9.86 9.86 0 01-1.51-5.26c.001-5.45 4.436-9.884 9.888-9.884 2.64 0 5.122 1.03 6.988 2.898a9.825 9.825 0 012.893 6.994c-.003 5.45-4.437 9.884-9.885 9.884m8.413-18.297A11.815 11.815 0 0012.05 0C5.495 0 .16 5.335.157 11.892c0 2.096.547 4.142 1.588 5.945L.057 24l6.305-1.654a11.882 11.882 0 005.683 1.448h.005c6.554 0 11.89-5.335 11.893-11.893A11.821 11.821 0 0020.465 3.488\"})}),/*#__PURE__*/_jsx(\"span\",{children:text})]})]});}addPropertyControls(PulseButton,{variant:{type:ControlType.Enum,title:\"Variant\",options:[\"Ripple\",\"Scale\",\"Shadow\"],defaultValue:\"Ripple\"},text:{type:ControlType.String,title:\"Label\",defaultValue:\"Click Me\"},icon:{type:ControlType.ResponsiveImage,title:\"Icon\"},iconSize:{type:ControlType.Number,title:\"Icon Size\",defaultValue:20,min:12,max:48,step:2,displayStepper:true,hidden:({icon})=>!icon},iconGap:{type:ControlType.Number,title:\"Icon Gap\",defaultValue:8,min:0,max:24,step:2,displayStepper:true,hidden:({icon})=>!icon},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:\"16px\",variant:\"Bold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"}},textColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#FFFFFF\"},backgroundColor:{type:ControlType.Color,title:\"Background\",defaultValue:\"#0099FF\"},pulseColor:{type:ControlType.Color,title:\"Pulse Color\",defaultValue:\"#0099FF\"},pulseIntensity:{type:ControlType.Number,title:\"Intensity\",defaultValue:1.5,min:1.1,max:3,step:.1,displayStepper:true},speed:{type:ControlType.Number,title:\"Speed\",defaultValue:1,min:.5,max:2,step:.1,displayStepper:true},borderRadius:{type:ControlType.BorderRadius,title:\"Radius\",defaultValue:\"50px\"},padding:{type:ControlType.Padding,title:\"Padding\",defaultValue:\"12px 24px 12px 24px\"},glow:{type:ControlType.Boolean,title:\"Glow\",defaultValue:true},onTap:{type:ControlType.EventHandler},link:{type:ControlType.Link,title:\"Link\",defaultValue:\"\"},openInNewTab:{type:ControlType.Boolean,title:\"New Tab\",description:\"Built by Matthias \\xd6lschlegel 💪\\n[Explore more components](https://framer.link/fsd2pgh)\",defaultValue:true,enabledTitle:\"Yes\",disabledTitle:\"No\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"PulseButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerIntrinsicHeight\":\"50\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerContractVersion\":\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