{"version":3,"file":"GlowButton.DILXCoLL.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/nXuWYDbL4mnCPn79s8Aw/E7BmB4EEtYJh2FLGH3mz/GlowButton.js"],"sourcesContent":["import{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";import{useState}from\"react\";/**\n * GLOW BUTTON\n * Pill button that mirrors the hero's AnimatedPill interaction: on hover/focus\n * it fills with the hover color, flips its text to the hover text color, lifts\n * slightly, and blooms a soft glow derived from the hover color via color-mix.\n *\n * @framerSupportedLayoutWidth any-prefer-fixed\n * @framerSupportedLayoutHeight any-prefer-fixed\n * @framerIntrinsicWidth 200\n * @framerIntrinsicHeight 54\n * @framerDisableUnlink\n */export default function GlowButton(props){const{label,link,openInNewTab,background,textColor,hoverColor,hoverTextColor,radius,paddingY,paddingX,fontSize,showArrow,style}=props;const[active,setActive]=useState(false);const glow=`0 10px 34px color-mix(in srgb, ${hoverColor} 42%, transparent), 0 0 20px color-mix(in srgb, ${hoverColor} 58%, transparent)`;const href=link&&typeof link===\"string\"?link:undefined;return /*#__PURE__*/_jsxs(\"a\",{href:href||\"#\",target:openInNewTab?\"_blank\":undefined,rel:openInNewTab?\"noopener noreferrer\":undefined,\"aria-label\":label,onMouseEnter:()=>setActive(true),onMouseLeave:()=>setActive(false),onFocus:()=>setActive(true),onBlur:()=>setActive(false),onClick:e=>{if(!href)e.preventDefault();},style:{display:\"inline-flex\",alignItems:\"center\",justifyContent:\"center\",gap:10,boxSizing:\"border-box\",padding:`${paddingY}px ${paddingX}px`,borderRadius:radius,background:active?hoverColor:background,color:active?hoverTextColor:textColor,boxShadow:active?glow:\"0 0 0 0 rgba(0,0,0,0)\",transform:active?\"translateY(-1px)\":\"translateY(0)\",transition:\"background-color 0.28s ease, color 0.28s ease, box-shadow 0.28s ease, transform 0.28s ease\",fontFamily:\"Inter, -apple-system, BlinkMacSystemFont, sans-serif\",fontWeight:800,fontSize,letterSpacing:\"0.01em\",textDecoration:\"none\",whiteSpace:\"nowrap\",userSelect:\"none\",cursor:href?\"pointer\":\"default\",WebkitTapHighlightColor:\"transparent\",...style},children:[label,showArrow?/*#__PURE__*/_jsx(\"svg\",{width:\"17\",height:\"17\",viewBox:\"0 0 24 24\",fill:\"none\",xmlns:\"http://www.w3.org/2000/svg\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 12H19M19 12L12 5M19 12L12 19\",stroke:active?hoverTextColor:textColor,strokeWidth:\"2.4\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})}):null]});}GlowButton.defaultProps={label:\"View All Events\",link:\"\",openInNewTab:false,background:\"#111111\",textColor:\"#FFFFFF\",hoverColor:\"#E2231A\",hoverTextColor:\"#FFFFFF\",radius:100,paddingY:16,paddingX:24,fontSize:16,showArrow:false};addPropertyControls(GlowButton,{label:{type:ControlType.String,title:\"Label\",defaultValue:\"View All Events\"},link:{type:ControlType.Link,title:\"Link\"},openInNewTab:{type:ControlType.Boolean,title:\"New Tab\",enabledTitle:\"Yes\",disabledTitle:\"No\",defaultValue:false},background:{type:ControlType.Color,title:\"Background\",defaultValue:\"#111111\"},textColor:{type:ControlType.Color,title:\"Text\",defaultValue:\"#FFFFFF\"},hoverColor:{type:ControlType.Color,title:\"Hover Fill\",defaultValue:\"#E2231A\"},hoverTextColor:{type:ControlType.Color,title:\"Hover Text\",defaultValue:\"#FFFFFF\"},radius:{type:ControlType.Number,title:\"Radius\",min:0,max:100,step:1,defaultValue:100},paddingY:{type:ControlType.Number,title:\"Padding Y\",min:6,max:40,step:1,defaultValue:16},paddingX:{type:ControlType.Number,title:\"Padding X\",min:8,max:64,step:1,defaultValue:24},fontSize:{type:ControlType.Number,title:\"Font Size\",min:12,max:24,step:1,defaultValue:16},showArrow:{type:ControlType.Boolean,title:\"Arrow\",enabledTitle:\"Show\",disabledTitle:\"Hide\",defaultValue:false}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GlowButton\",\"slots\":[],\"annotations\":{\"framerDisableUnlink\":\"\",\"framerSupportedLayoutHeight\":\"any-prefer-fixed\",\"framerIntrinsicWidth\":\"200\",\"framerSupportedLayoutWidth\":\"any-prefer-fixed\",\"framerIntrinsicHeight\":\"54\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./GlowButton.map"],"mappings":"iLAWG,SAAwB,EAAW,EAAM,CAAC,GAAK,CAAC,QAAM,OAAK,eAAa,aAAW,YAAU,aAAW,iBAAe,SAAO,WAAS,WAAS,WAAS,YAAU,SAAO,EAAW,CAAC,EAAO,GAAWA,EAAS,EAAK,EAAQ,EAAK,kCAAkC,EAAW,kDAAkD,EAAW,oBAA0B,EAAK,GAAM,OAAO,GAAO,SAAS,EAAK,IAAA,GAAU,OAAoB,EAAM,IAAI,CAAC,KAAK,GAAM,IAAI,OAAO,EAAa,SAAS,IAAA,GAAU,IAAI,EAAa,sBAAsB,IAAA,GAAU,aAAa,EAAM,iBAAiB,EAAU,EAAI,EAAE,iBAAiB,EAAU,EAAK,EAAE,YAAY,EAAU,EAAI,EAAE,WAAW,EAAU,EAAK,EAAE,QAAQ,GAAG,CAAK,GAAK,EAAE,eAAe,CAAE,EAAE,MAAM,CAAC,QAAQ,cAAc,WAAW,SAAS,eAAe,SAAS,IAAI,GAAG,UAAU,aAAa,QAAQ,GAAG,EAAS,KAAK,EAAS,IAAI,aAAa,EAAO,WAAW,EAAO,EAAW,EAAW,MAAM,EAAO,EAAe,EAAU,UAAU,EAAO,EAAK,wBAAwB,UAAU,EAAO,mBAAmB,gBAAgB,WAAW,6FAA6F,WAAW,uDAAuD,WAAW,IAAI,WAAS,cAAc,SAAS,eAAe,OAAO,WAAW,SAAS,WAAW,OAAO,OAAO,EAAK,UAAU,UAAU,wBAAwB,cAAc,GAAG,CAAK,EAAE,SAAS,CAAC,EAAM,EAAuB,EAAK,MAAM,CAAC,MAAM,KAAK,OAAO,KAAK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