{"version":3,"file":"button.DM057ccd.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/wribKfu84zSnPLvlBOzg/DH1FO9XSrBF2fKZPf3Kb/button.js"],"sourcesContent":["// GradientButton component with two variants: primary (shadow disappears on hover) and plain (background changes to #212836 on hover)\nimport{jsx as _jsx,jsxs as _jsxs}from\"react/jsx-runtime\";import{useState,startTransition}from\"react\";import{addPropertyControls,ControlType}from\"framer\";import{useTracking}from\"framer\";/**\n * @framerSupportedLayoutWidth auto-exact-size\n * @framerSupportedLayoutHeight auto\n */export default function GradientButton(props){const{variant=\"primary\",label=\"Try for free\",link=\"https://app.newdays.ai/auth/signup\",showIcon=true,icon=\"arrow-right\",iconPosition=\"right\",uniqueId=\"button-1\",openInNewTab=false}=props;const track=useTracking();const[isHovered,setIsHovered]=useState(false);const handleMouseEnter=()=>{startTransition(()=>setIsHovered(true));};const handleMouseLeave=()=>{startTransition(()=>setIsHovered(false));};const handleClick=()=>{track(uniqueId);};const gradientBackground=\"linear-gradient(65.08deg, rgb(235, 31, 220) 0%, rgb(243, 105, 119) 47.57%, rgb(252, 183, 24) 97.6%)\";const primaryShadow=\"rgba(247, 112, 28, 0.34) 0px 3px 7px 0px, rgba(232, 90, 68, 0.29) 0px 13px 13px 0px, rgba(249, 87, 101, 0.17) 0px 28px 17px 0px, rgba(232, 90, 68, 0.05) 0px 50px 20px 0px, rgba(216, 65, 116, 0.01) 0px 79px 22px 0px\";const glowGradient=\"linear-gradient(45deg, #EB1FDC -5px, #F36977 50%, #FCB718 calc(100% + 5px))\";const outerStyle={background:variant===\"glow\"?\"transparent\":gradientBackground,borderRadius:\"12px\",boxShadow:variant===\"primary\"?isHovered?\"none\":primaryShadow:\"none\",opacity:1,textDecoration:\"none\",display:\"inline-flex\",width:\"100%\",cursor:\"pointer\",transition:\"box-shadow 0.2s ease, background-color 0.2s ease\",padding:variant===\"plain\"||variant===\"glow\"?\"0px\":\"0px 0px 4px 0px\",position:variant===\"glow\"?\"relative\":undefined};const glowOverlayStyle={position:\"absolute\",top:\"-2px\",left:\"-2px\",bottom:\"-2px\",right:\"-2px\",background:glowGradient,borderRadius:\"12px\",filter:\"blur(10px)\",zIndex:1};const innerWrapStyle={background:variant===\"glow\"?glowGradient:undefined,backgroundColor:variant===\"glow\"?undefined:variant===\"plain\"&&isHovered?\"#212836\":\"rgb(16, 24, 39)\",border:variant===\"glow\"?\"1.5px solid rgba(255, 255, 255, 0.85)\":\"1px solid rgba(255, 255, 255, 0.13)\",borderRadius:\"12px\",boxShadow:variant===\"glow\"?\"none\":\"rgba(255, 255, 255, 0.2) 0px 3px 3px 0px inset, rgb(0, 0, 0) 0px -2px 12px 0px inset\",display:\"flex\",alignItems:\"center\",justifyContent:\"center\",flex:1,gap:\"8px\",padding:variant===\"plain\"?\"12px 16px\":\"16px 24px\",transition:\"background-color 0.2s ease\",position:variant===\"glow\"?\"relative\":undefined,zIndex:variant===\"glow\"?2:undefined};const textStyle={color:\"rgb(255, 255, 255)\",margin:0,whiteSpace:\"nowrap\",...props.font};const iconStyle={width:\"20px\",height:\"20px\"};const renderIcon=()=>{if(!showIcon)return null;switch(icon){case\"arrow-right\":return /*#__PURE__*/_jsx(\"svg\",{style:iconStyle,viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 12h14m-7-7l7 7-7 7\",stroke:\"white\",strokeWidth:\"2\",fill:\"none\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});case\"plus\":return /*#__PURE__*/_jsx(\"svg\",{style:iconStyle,viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M12 5v14m-7-7h14\",stroke:\"white\",strokeWidth:\"2\",fill:\"none\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});case\"check\":return /*#__PURE__*/_jsx(\"svg\",{style:iconStyle,viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M20 6L9 17l-5-5\",stroke:\"white\",strokeWidth:\"2\",fill:\"none\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});case\"star\":return /*#__PURE__*/_jsx(\"svg\",{style:iconStyle,viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z\",stroke:\"white\",strokeWidth:\"2\",fill:\"white\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});case\"check-badge\":return /*#__PURE__*/_jsxs(\"svg\",{style:iconStyle,viewBox:\"0 0 24 24\",children:[/*#__PURE__*/_jsx(\"defs\",{children:/*#__PURE__*/_jsxs(\"mask\",{id:\"check-badge-mask\",children:[/*#__PURE__*/_jsx(\"rect\",{width:\"24\",height:\"24\",fill:\"white\"}),/*#__PURE__*/_jsx(\"path\",{d:\"M7.5 12l3 3 5.5-6.5\",stroke:\"black\",strokeWidth:\"2.5\",fill:\"none\",strokeLinecap:\"round\",strokeLinejoin:\"round\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"19\",cy:\"5\",r:\"4.5\",fill:\"black\"})]})}),/*#__PURE__*/_jsx(\"circle\",{cx:\"11\",cy:\"13\",r:\"10\",fill:\"white\",mask:\"url(#check-badge-mask)\"}),/*#__PURE__*/_jsx(\"circle\",{cx:\"19\",cy:\"5\",r:\"3\",fill:\"white\"})]});default:return /*#__PURE__*/_jsx(\"svg\",{style:iconStyle,viewBox:\"0 0 24 24\",children:/*#__PURE__*/_jsx(\"path\",{d:\"M5 12h14m-7-7l7 7-7 7\",stroke:\"white\",strokeWidth:\"2\",fill:\"none\",strokeLinecap:\"round\",strokeLinejoin:\"round\"})});}};return /*#__PURE__*/_jsxs(\"a\",{id:uniqueId,href:link,target:openInNewTab?\"_blank\":\"_self\",rel:\"noopener\",style:outerStyle,onMouseEnter:handleMouseEnter,onMouseLeave:handleMouseLeave,onClick:handleClick,children:[variant===\"glow\"&&/*#__PURE__*/_jsx(\"div\",{style:glowOverlayStyle}),/*#__PURE__*/_jsxs(\"div\",{style:innerWrapStyle,children:[iconPosition===\"left\"&&renderIcon(),/*#__PURE__*/_jsx(\"p\",{style:textStyle,children:label}),iconPosition===\"right\"&&renderIcon()]})]});}addPropertyControls(GradientButton,{variant:{type:ControlType.Enum,title:\"Variant\",options:[\"primary\",\"plain\",\"glow\"],optionTitles:[\"Primary\",\"Plain\",\"Glow\"],defaultValue:\"primary\",displaySegmentedControl:true},label:{type:ControlType.String,title:\"Label\",defaultValue:\"Try for free\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"20px\",variant:\"Semibold\",letterSpacing:\"-0.01em\",lineHeight:\"1em\"},controls:\"extended\",defaultFontType:\"sans-serif\"},link:{type:ControlType.Link,title:\"Link\",defaultValue:\"https://app.newdays.ai/auth/signup\"},openInNewTab:{type:ControlType.Boolean,title:\"Open in New Tab\",defaultValue:false,enabledTitle:\"Yes\",disabledTitle:\"No\"},showIcon:{type:ControlType.Boolean,title:\"Show Icon\",defaultValue:true,enabledTitle:\"Show\",disabledTitle:\"Hide\"},icon:{type:ControlType.Enum,title:\"Icon\",options:[\"arrow-right\",\"plus\",\"check\",\"star\",\"check-badge\"],optionTitles:[\"Arrow Right\",\"Plus\",\"Check\",\"Star\",\"Check Badge\"],defaultValue:\"arrow-right\",hidden:({showIcon})=>!showIcon},iconPosition:{type:ControlType.Enum,title:\"Icon Position\",options:[\"left\",\"right\"],optionTitles:[\"Left\",\"Right\"],defaultValue:\"right\",displaySegmentedControl:true,hidden:({showIcon})=>!showIcon},uniqueId:{type:ControlType.String,title:\"Unique ID\",defaultValue:\"button-1\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GradientButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto-exact-size\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=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