{"version":3,"file":"JoinButton_1.Df-633TY.mjs","names":[],"sources":["https:/framerusercontent.com/modules/pGaCDjcNMZ5RboViL868/ZPEVS92oL2EoqzB3ofsY/JoinButton_1.js"],"sourcesContent":["// Welcome to Code in Framer\n// Get Started: https://www.framer.com/docs/guides/\n/**\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 */ import{jsx as _jsx}from\"react/jsx-runtime\";import{addPropertyControls,ControlType}from\"framer\";const click=typeForm=>{window.dataLayer=window.dataLayer||[];function gtag(){//@ts-ignore\ndataLayer.push(arguments);}//@ts-ignore\ngtag(\"js\",new Date);//@ts-ignore\ngtag(\"config\",\"AW-11061117681\");try{window.fbq(\"track\",\"InitiateCheckout\");window.umami.track(\"ApplyStart\");}catch(error){console.log(error);}const source=new URLSearchParams(window.location.search).get(\"utm_source\")||\"organic\";// This is deprecated\n// fetch(\"https://api.dreamshot.bg/api/proxy\", {\n//     method: \"POST\",\n//     headers: {\n//         \"Content-Type\": \"application/json\",\n//     },\n//     body: JSON.stringify({\n//         agent: navigator.userAgent,\n//         event: \"ApplyStart\",\n//     }),\n// })\n// This is now sent trough Zapier\n// fetch(\"https://api.dreamshot.bg/api/proxy\", {\n//     method: \"POST\",\n//     headers: {\n//         \"Content-Type\": \"application/json\",\n//     },\n//     body: JSON.stringify({\n//         agent: navigator.userAgent,\n//         event: \"InitiateCheckout\",\n//     }),\n// })\nwindow.open(`${typeForm}${window.location.search}#agent=${navigator.userAgent}`,\"_blank\");};export default function JoinButton(props){// This is a React component containing an Example component\n// - Replace <Example /> with your own code\n// - Find inspiration: https://www.framer.com/developers/\nreturn /*#__PURE__*/ _jsx(\"div\",{onClick:()=>{click(props.typeForm);// window.open(props.typeForm)\n},style:containerStyle,children:props.text});};addPropertyControls(JoinButton,{text:{title:\"text\",type:ControlType.String,defaultValue:\"Apply now\"},typeForm:{title:\"Link\",type:ControlType.String}});// Styles are written in object syntax\n// Learn more: https://reactjs.org/docs/dom-elements.html#style\nconst containerStyle={height:50,display:\"flex\",justifyContent:\"center\",alignItems:\"center\",overflow:\"hidden\",backgroundColor:\"white\",color:\"black\",borderRadius:30,fontFamily:\"Poppins\",fontSize:14,fontWeight:\"bold\",textTransform:\"uppercase\",cursor:\"pointer\"};\nexport const __FramerMetadata__ = {\"exports\":{\"default\":{\"type\":\"reactComponent\",\"name\":\"JoinButton\",\"slots\":[],\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./JoinButton_1.map"],"mappings":"4KAiC4F,SAAwB,EAAW,EAAM,CAGrI,OAAqB,EAAK,MAAM,CAAC,YAAY,CAAC,EAAM,EAAM,SAAS,EACjE,MAAM,EAAe,SAAS,EAAM,KAAK,CAAC,0BA7BG,IAAoD,CAAM,EAAM,GAAU,CAAC,EAAO,UAAU,EAAO,WAAW,EAAE,CAAC,SAAS,GAAM,CAC/K,UAAU,KAAK,UAAU,CACzB,EAAK,KAAK,IAAI,KAAK,CACnB,EAAK,SAAS,iBAAiB,CAAC,GAAG,CAAC,EAAO,IAAI,QAAQ,mBAAmB,CAAC,EAAO,MAAM,MAAM,aAAa,OAAQ,EAAM,CAAC,QAAQ,IAAI,EAAM,CAAe,IAAI,gBAAgB,EAAO,SAAS,OAAO,CAAC,IAAI,aAAa,CAsBxN,EAAO,KAAK,GAAG,IAAW,EAAO,SAAS,OAAO,SAAS,EAAU,YAAY,SAAS,EAI1C,EAAoB,EAAW,CAAC,KAAK,CAAC,MAAM,OAAO,KAAK,EAAY,OAAO,aAAa,YAAY,CAAC,SAAS,CAAC,MAAM,OAAO,KAAK,EAAY,OAAO,CAAC,CAAC,CAE/L,EAAe,CAAC,OAAO,GAAG,QAAQ,OAAO,eAAe,SAAS,WAAW,SAAS,SAAS,SAAS,gBAAgB,QAAQ,MAAM,QAAQ,aAAa,GAAG,WAAW,UAAU,SAAS,GAAG,WAAW,OAAO,cAAc,YAAY,OAAO,UAAU"}