{"version":3,"file":"button.C3K2Py5W.mjs","names":["useState"],"sources":["https:/framerusercontent.com/modules/wribKfu84zSnPLvlBOzg/6QR1Hw2J5a7MTnCPaV58/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\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\",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 outerStyle={background:gradientBackground,borderRadius:\"12px\",boxShadow:variant===\"primary\"?isHovered?\"none\":primaryShadow:\"none\",opacity:1,textDecoration:\"none\",display:\"inline-flex\",cursor:\"pointer\",transition:\"box-shadow 0.2s ease, background-color 0.2s ease\",padding:variant===\"plain\"?\"0px\":\"0px 0px 4px 0px\"};const innerWrapStyle={backgroundColor:variant===\"plain\"&&isHovered?\"#212836\":\"rgb(16, 24, 39)\",border:\"1px solid rgba(255, 255, 255, 0.13)\",borderRadius:\"12px\",boxShadow:\"rgba(255, 255, 255, 0.2) 0px 3px 3px 0px inset, rgb(0, 0, 0) 0px -2px 12px 0px inset\",display:\"flex\",alignItems:\"center\",gap:\"8px\",padding:variant===\"plain\"?\"12px 16px\":\"16px 24px\",transition:\"background-color 0.2s ease\"};const textStyle={color:\"rgb(255, 255, 255)\",margin:0,whiteSpace:\"nowrap\",...props.font};const iconStyle={width:\"20px\",height:\"20px\",fill:\"white\"};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\"})});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__*/_jsx(\"a\",{id:uniqueId,href:link,target:openInNewTab?\"_blank\":\"_self\",rel:\"noopener\",style:outerStyle,onMouseEnter:handleMouseEnter,onMouseLeave:handleMouseLeave,onClick:handleClick,children:/*#__PURE__*/_jsxs(\"div\",{style:innerWrapStyle,children:[/*#__PURE__*/_jsx(\"p\",{style:textStyle,children:label}),renderIcon()]})});}addPropertyControls(GradientButton,{variant:{type:ControlType.Enum,title:\"Variant\",options:[\"primary\",\"plain\"],optionTitles:[\"Primary\",\"Plain\"],defaultValue:\"primary\",displaySegmentedControl:true},label:{type:ControlType.String,title:\"Label\",defaultValue:\"Try for free\"},font:{type:ControlType.Font,title:\"Font\",defaultValue:{fontSize:\"16px\",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\"],optionTitles:[\"Arrow Right\",\"Plus\",\"Check\",\"Star\"],defaultValue:\"arrow-right\",hidden:({showIcon})=>!showIcon},uniqueId:{type:ControlType.String,title:\"Unique ID\",defaultValue:\"button-1\"}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"GradientButton\",\"slots\":[],\"annotations\":{\"framerSupportedLayoutHeight\":\"auto\",\"framerSupportedLayoutWidth\":\"auto\",\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./button.map"],"mappings":"4LAIG,SAAwB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