{"version":3,"file":"shared-lib.DF-WLwsV.mjs","names":["useState","useRef","startTransition"],"sources":["https:/framerusercontent.com/modules/ZJ1v9Tucy5SjP5RQOdfF/SnMO5deW2GaOG8sBYGIm/AngelButton_2.js"],"sourcesContent":["// Floating angelic button for white background\n// Shape: rounded pill, medium size (44–56px tall). Fill: gradient blue→pink. Floating idle. Animates gradient/glow on hover/press. \n// @framerSupportedLayoutWidth auto\n// @framerSupportedLayoutHeight auto\nimport{jsx as _jsx}from\"react/jsx-runtime\";import{useState,useRef,useEffect,startTransition}from\"react\";import{addPropertyControls,ControlType,useIsStaticRenderer,RenderTarget}from\"framer\";import{motion}from\"framer-motion\";const gradientA=\"#FFFFFF\";const gradientB=\"#FFFFFF\";/**\n * Floating Angelic Button\n *\n * @framerIntrinsicWidth 168\n * @framerIntrinsicHeight 56\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function AngelButton(props){const{label,font,buttonWidth,buttonHeight,buttonTextColor,backgroundGradient,innerGlowColor,outerGlowColor,onClick,link}=props;const isStatic=useIsStaticRenderer();const[hover,setHover]=useState(false);const[press,setPress]=useState(false);// Angelic blue-pink gradients\nconst bgGradient=Array.isArray(backgroundGradient)&&backgroundGradient.length>1?`linear-gradient(90deg, ${backgroundGradient.join(\", \")})`:gradientA;const bgGradientHover=Array.isArray(backgroundGradient)&&backgroundGradient.length>1?`linear-gradient(90deg, ${backgroundGradient.slice().reverse().join(\", \")})`:gradientB;// Glow & shadow\nconst haloSize=press?10:hover?20:10;const haloAlpha=press?.16:hover?.18:.09;const haloBlur=press?20:hover?32:16;let otherGlow=`0 0 ${haloBlur}px ${haloSize}px ${outerGlowColor}`;let boxShadow=press?`0 2px 8px rgba(0,0,0,0.08), 0 0.5px 18px 5px ${innerGlowColor}, 0 0 0 4px ${innerGlowColor}`:`0 4px 12px rgba(0,0,0,0.06), ${otherGlow}`;// Magnet effect logic (classic default values)\nconst[magnet,setMagnet]=useState({x:0,y:0});const[isHovering,setIsHovering]=useState(false);const ref=useRef(null);useEffect(()=>{if(!isHovering){setMagnet({x:0,y:0});return;}function handleMove(e){if(!ref.current)return;const rect=ref.current.getBoundingClientRect();const cx=rect.left+rect.width/2;const cy=rect.top+rect.height/2;const dx=e.clientX-cx;const dy=e.clientY-cy;// original classic effect: factor 0.17, max 40\nconst dist=Math.sqrt(dx*dx+dy*dy);const max=40;const factor=Math.min(dist,max)/(dist||1);setMagnet({x:dx*factor*.17,y:dy*factor*.17});}window.addEventListener(\"mousemove\",handleMove);return()=>window.removeEventListener(\"mousemove\",handleMove);},[isHovering]);const accessibleFonts={fontFamily:font.fontFamily||undefined,fontWeight:font.fontWeight||500,fontSize:font.fontSize||18,letterSpacing:font.letterSpacing,lineHeight:font.lineHeight};const content=/*#__PURE__*/_jsx(motion.button,{ref:ref,\"aria-label\":label,style:{appearance:\"none\",width:buttonWidth,height:buttonHeight,padding:`0 32px`,borderRadius:1e3,background:bgGradient,border:\"none\",outline:\"none\",color:buttonTextColor,boxShadow,display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSmooth:\"always\",WebkitFontSmoothing:\"antialiased\",cursor:\"pointer\",transition:\"box-shadow 1.4s cubic-bezier(.4,0,.2,1), background 1.4s cubic-bezier(.4,0,.2,1)\",fontFamily:accessibleFonts.fontFamily,fontWeight:accessibleFonts.fontWeight,fontSize:accessibleFonts.fontSize,letterSpacing:accessibleFonts.letterSpacing,lineHeight:accessibleFonts.lineHeight,whiteSpace:\"nowrap\",position:\"relative\",zIndex:1,userSelect:\"none\"},animate:{scale:press?.94:hover?1.05:1,boxShadow,x:magnet.x,y:magnet.y,background:hover?bgGradientHover:bgGradient,filter:isStatic||press||hover?undefined:\"brightness(0.99) contrast(1.01)\"},transition:{duration:press?.17:hover?1.4:1.17,ease:[.34,1.51,.64,1]},onPointerEnter:()=>{startTransition(()=>{setHover(true);setIsHovering(true);});},onPointerLeave:()=>{startTransition(()=>{setHover(false);setPress(false);setIsHovering(false);setMagnet({x:0,y:0});});},onPointerDown:()=>startTransition(()=>setPress(true)),onPointerUp:()=>startTransition(()=>setPress(false)),tabIndex:0,role:\"button\",type:\"button\",onClick:onClick,children:/*#__PURE__*/_jsx(\"span\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:\"100%\",height:\"100%\",textAlign:\"center\",...accessibleFonts,whiteSpace:\"nowrap\",color:buttonTextColor},children:label})});if(RenderTarget.current()===RenderTarget.thumbnail){return /*#__PURE__*/_jsx(\"button\",{\"aria-label\":label,style:{width:buttonWidth,height:buttonHeight,padding:`0 32px`,borderRadius:1e3,background:gradientA,border:\"none\",outline:\"none\",color:\"rgba(0,0,0,0.75)\",boxShadow:\"0 6px 20px rgba(0,0,0,0.06), 0 0 32px 20px rgba(174,207,255,0.24)\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",fontSize:font.fontSize||18,fontWeight:font.fontWeight||500,fontFamily:font.fontFamily,whiteSpace:\"nowrap\",userSelect:\"none\",position:\"relative\"},children:/*#__PURE__*/_jsx(\"span\",{style:{display:\"flex\",alignItems:\"center\",justifyContent:\"center\",width:\"100%\",height:\"100%\",textAlign:\"center\",...accessibleFonts,whiteSpace:\"nowrap\",color:buttonTextColor},children:label})});}return link?/*#__PURE__*/_jsx(\"a\",{href:link,target:\"_blank\",rel:\"noopener noreferrer\",style:{display:\"inline-block\",textDecoration:\"none\",border:0,outline:0},children:content}):content;}addPropertyControls(AngelButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"Get Started\",displayTextArea:true},font:{type:ControlType.Font,title:\"Font\",controls:\"extended\",defaultFontType:\"sans-serif\",defaultValue:{fontSize:18,variant:\"Medium\",letterSpacing:0,lineHeight:\"1.1em\"}},buttonWidth:{type:ControlType.Number,title:\"Width\",defaultValue:168,min:44,max:400,unit:\"px\"},buttonHeight:{type:ControlType.Number,title:\"Height\",defaultValue:56,min:36,max:100,unit:\"px\"},backgroundGradient:{type:ControlType.Array,title:\"Button Gradient Colors\",control:{type:ControlType.Color,defaultValue:\"#FFFFFF\"},maxCount:4,defaultValue:[\"#FFFFFF\",\"#FFFFFF\"]},buttonColor:{type:ControlType.Color,title:\"Button Color\",defaultValue:\"#FFFFFF\",hidden:()=>true},buttonTextColor:{type:ControlType.Color,title:\"Text Color\",defaultValue:\"#000000\"},innerGlowColor:{type:ControlType.Color,title:\"Inner Glow\",defaultValue:\"rgba(0,0,0,0.05)\"},outerGlowColor:{type:ControlType.Color,title:\"Outer Glow\",defaultValue:\"rgba(0,0,0,0.08)\"},onClick:{type:ControlType.EventHandler,title:\"Click\"},link:{type:ControlType.Link,title:\"Link To\",defaultValue:\"\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"AngelButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerIntrinsicWidth\":\"168\",\"framerIntrinsicHeight\":\"56\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./AngelButton_2.map"],"mappings":"mQAYG,SAAwB,EAAY,EAAM,CAAC,GAAK,CAAC,QAAM,OAAK,cAAY,eAAa,kBAAgB,qBAAmB,iBAAe,iBAAe,UAAQ,QAAM,EAAY,EAAS,EAAoB,EAAO,CAAC,EAAM,GAAUA,EAAS,EAAK,EAAO,CAAC,EAAM,GAAUA,EAAS,EAAK,EACtR,EAAW,MAAM,QAAQ,CAAkB,GAAG,EAAmB,OAAO,EAAE,0BAA0B,EAAmB,KAAK,IAAI,EAAE,GAAG,EAAgB,EAAgB,MAAM,QAAQ,CAAkB,GAAG,EAAmB,OAAO,EAAE,0BAA0B,EAAmB,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,KAAK,IAAI,EAAE,GAAG,EACnM,EAAU,OAAnC,EAAM,GAAG,EAAM,GAAG,GAAiC,KAA/H,EAAM,GAAG,EAAM,GAAG,GAA2H,KAAK,IAAqB,EAAU,EAAM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