{
  "version": 3,
  "sources": ["ssg:https://framerusercontent.com/modules/FnLRlmXijo1JNl0x04OZ/FrSDChi64VmrWvqyJvAg/New_hubspot_button.js"],
  "sourcesContent": ["import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";/**\n * These annotations control how your component sizes\n * Learn more: https://www.framer.com/developers/#code-components-auto-sizing\n *\n * @framerSupportedLayoutWidth auto\n * @framerSupportedLayoutHeight auto\n */export default function New_hubspot_button(props){const onClick=()=>{const params=new URLSearchParams(window.location.search);window.location.href=`https://share.hsforms.com/${props.code}${params.get(\"utm_source\")?`?utm_source=${params.get(\"utm_source\")}`:\"\"}${params.get(\"utm_medium\")?`&utm_medium=${params.get(\"utm_medium\")}`:\"\"}${params.get(\"utm_campaign\")?`&utm_campaign=${params.get(\"utm_campaign\")}`:\"\"}${params.get(\"utm_adset\")?`&utm_adset=${params.get(\"utm_adset\")}`:\"\"}${params.get(\"utm_content\")?`&utm_content=${params.get(\"utm_content\")}`:\"\"}`;};// Determine the width based on the selected option\nlet widthStyle;switch(props.widthOption){case\"fill\":widthStyle=\"100%\";break;case\"fit\":widthStyle=\"auto\";break;case\"fixed\":widthStyle=props.fixedWidth?`${props.fixedWidth}px`:\"200px\";break;case\"relative\":widthStyle=props.relativeWidth?`${props.relativeWidth}%`:\"50%\";break;default:widthStyle=\"auto\";break;}const containerStyle={background:\"linear-gradient(180deg,#009494 0%,rgb(0,128,128) 100%)\",padding:`${props.paddingTop}px ${props.paddingRight}px ${props.paddingBottom}px ${props.paddingLeft}px`,color:\"#fff\",fontSize:props.fontSize,borderRadius:\"12px\",border:\"solid 1px\",fontFamily:\"Hanken Grotesk\",fontWeight:\"500\",display:\"flex\",gap:\"8px\",lineHeight:\"20.6px\",alignItems:\"center\",cursor:\"pointer\",borderColor:\"#00D1D1\",width:widthStyle};return /*#__PURE__*/_jsx(\"button\",{style:containerStyle,className:\"course-cta\",onClick:onClick,children:\"Request Free Demo\"});}// Add property controls to make the `code`, `widthOption`, `fixedWidth`, `relativeWidth`, `fontSize`, and padding props editable in Framer UI\naddPropertyControls(New_hubspot_button,{code:{type:ControlType.String,title:\"Code\",defaultValue:\"188DzhHtUShCHcuFhrv2OHwrj4xe\"},widthOption:{type:ControlType.Enum,title:\"Width Option\",options:[\"fill\",\"fit\",\"fixed\",\"relative\"],optionTitles:[\"Fill\",\"Fit\",\"Fixed\",\"Relative\"],defaultValue:\"fit\"},fixedWidth:{type:ControlType.Number,title:\"Fixed Width (px)\",defaultValue:200,min:50,max:1e3,hidden(props){return props.widthOption!==\"fixed\";}},relativeWidth:{type:ControlType.Number,title:\"Relative Width (%)\",defaultValue:50,min:1,max:100,hidden(props){return props.widthOption!==\"relative\";}},fontSize:{type:ControlType.Number,title:\"Font Size\",defaultValue:16,min:8,max:48},paddingTop:{type:ControlType.Number,title:\"Padding Top (px)\",defaultValue:12,min:0,max:50},paddingRight:{type:ControlType.Number,title:\"Padding Right (px)\",defaultValue:28,min:0,max:50},paddingBottom:{type:ControlType.Number,title:\"Padding Bottom (px)\",defaultValue:12,min:0,max:50},paddingLeft:{type:ControlType.Number,title:\"Padding Left (px)\",defaultValue:28,min:0,max:50}});\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"New_hubspot_button\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\",\"framerSupportedLayoutWidth\":\"auto\",\"framerSupportedLayoutHeight\":\"auto\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./New_hubspot_button.map"],
  "mappings": "8GAAAA,IAMkB,SAARC,EAAoCC,EAAM,CAAC,IAAMC,EAAQ,IAAI,CAAC,IAAMC,EAAO,IAAI,gBAAgB,OAAO,SAAS,MAAM,EAAE,OAAO,SAAS,KAAK,6BAA6BF,EAAM,OAAOE,EAAO,IAAI,YAAY,EAAE,eAAeA,EAAO,IAAI,YAAY,IAAI,KAAKA,EAAO,IAAI,YAAY,EAAE,eAAeA,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