{"version":3,"file":"Button.CjNFHYCU.mjs","names":[],"sources":["https:/framerusercontent.com/modules/rzCd5HLos5PTvRHBje0g/WzJVDky5wsYWQ7rMbnW1/Button.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";import{motion}from\"framer-motion\";import{addPropertyControls,ControlType}from\"framer\";import{resolveLinkUrlParams}from\"https://framer.com/m/useLinkResolver-n9qB.js@BKq62hIDUfEeoyPH8iB1\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/docs/guides/auto-sizing\n *\n * @framerSupportedLayoutWidth any\n * @framerSupportedLayoutHeight any\n */// NOTE: This Is the Correct Button we use EVERYWHERE\nexport default function Button(props){const{title,color,fill,isOutline,gradient,radius,padding,style,fontSize,onClick,linkurl,attachSponsor,sponsorAsSlug,isNewQueryParam,openNewTab,scrollToId}=props;const resolvedLinkUrl=resolveLinkUrlParams(linkurl,scrollToId,sponsorAsSlug,isNewQueryParam);const resolveButtonGradient=()=>{switch(gradient){case\"promptings\":return\"linear-gradient(281deg, #00e0e0 0%, rgb(5, 197, 235) 100%)\";case\"portal\":return\"linear-gradient()\";default:return fill;}};const shouldResolveLink=attachSponsor||scrollToId;const resolveButtonLink=()=>shouldResolveLink?resolvedLinkUrl:linkurl;return /*#__PURE__*/_jsx(motion.a,{style:{cursor:\"pointer\",textDecoration:\"none\",display:\"block\"},href:resolveButtonLink(),target:openNewTab?\"_blank\":\"initial\",children:/*#__PURE__*/_jsx(motion.div,{style:{...style,...containerStyle},children:/*#__PURE__*/_jsx(motion.div,{style:{padding:padding,borderRadius:radius,background:gradient!==\"none\"?resolveButtonGradient():isOutline?\"transparent\":fill,color:color,border:isOutline?`2px solid ${fill}`:\"none\",fontSize:fontSize,fontWeight:\"bold\",cursor:\"pointer\"},whileHover:{scale:1.01},children:title})})});}Button.defaultProps={background:{solid:\"#09F\",gradient:\"promptings\"},title:\"New Button\",link:{url:\"/opportunity\",shouldOpenNewTab:false,isSponsorQueryParam:false,isLinkDynamic:true,sponsorIDType:\"param\",paramStartType:\"?\",scrollToId:\"\"}};addPropertyControls(Button,{title:{title:\"Title\",type:ControlType.String},padding:{title:\"Padding\",defaultValue:\"15px 30px\",type:ControlType.String},fontSize:{title:\"Font Size Override\",defaultValue:\"18px\",type:ControlType.String},radius:{title:\"Radius\",defaultValue:13,type:ControlType.Number},color:{title:\"Text Color\",type:ControlType.Color,defaultValue:\"#FFF\"},fill:{title:\"Fill\",type:ControlType.Color},isOutline:{title:\"Outline Button\",type:ControlType.Boolean,defaultValue:false},gradient:{title:\"Gradient Background\",type:ControlType.Enum,defaultValue:\"none\",displaySegmentedControl:true,segmentedControlDirection:\"vertical\",options:[\"none\",\"promptings\"],optionTitles:[\"No Gradient\",\"Promptings Gradient\"]},linkurl:{type:ControlType.String,defaultValue:\"https://app.sendoutcards.com/?client=promptings&affiliatejoin\",description:\"Supports both full url and /pagename slugs, to use a full url the value of this field must start with http or https:// \"},scrollToId:{type:ControlType.String,defaultValue:\"\",description:\"Will insert scrollTo has to the end of the formated url\"},attachSponsor:{type:ControlType.Boolean,defaultValue:true},sponsorAsSlug:{type:ControlType.Boolean,defaultValue:false,description:\"If true the sponsor will be placed at the end of the url with a /122485\"},isNewQueryParam:{type:ControlType.Boolean,defaultValue:false},openNewTab:{type:ControlType.Boolean,defaultValue:true}});const containerStyle={display:\"flex\",justifyContent:\"start\",alignItems:\"center\",overflow:\"hidden\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"Button\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"any\",\"framerSupportedLayoutHeight\":\"any\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./Button.map"],"mappings":"wQAOA,SAAwB,EAAO,EAAM,CAAC,GAAK,CAAC,QAAM,QAAM,OAAK,YAAU,WAAS,SAAO,UAAQ,QAAM,WAAS,UAAQ,UAAQ,gBAAc,gBAAc,kBAA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