{"version":3,"file":"CtaMLG.C6MsXg5l.mjs","names":[],"sources":["https:/framerusercontent.com/modules/LoEdCOKY5msM8Yh81FCd/RYlmrebe3KyCQZfFMmHG/CtaMLG.js"],"sourcesContent":["import{jsx as _jsx}from\"react/jsx-runtime\";export function withClass(Component){return props=>{const handleClick=e=>{e.preventDefault()// cancela a navegação de verdade\n;// --- Script de preenchimento e submit do form ---\nfunction getClarityUserId(){const match=document.cookie.match(/_clck=([^;]+)/);if(!match)return null;const decoded=decodeURIComponent(match[1]);return decoded.split(\"^\")[0];}const button=document.querySelector(\".conversionCtaMLG button[type='submit']\");const clarityInput=document.querySelector(\".conversionCtaMLG input[name='clarityId']\");const posthogInput=document.querySelector(\".conversionCtaMLG input[name='posthogId']\");const lpInput=document.querySelector(\".conversionCtaMLG input[name='lp']\");if(button){const clarityId=getClarityUserId();if(clarityInput&&clarityId){clarityInput.value=clarityId;}if(posthogInput&&typeof posthog!==\"undefined\"&&posthog.get_distinct_id){posthogInput.value=posthog.get_distinct_id();}if(lpInput){lpInput.value=window.location.href;}button.click()// envia o form\n;}// --- Fim do script ---\n};const enhancedProps={...props,href:\"/#\",onClick:handleClick,style:{...props.style,cursor:\"pointer\"}};return /*#__PURE__*/_jsx(Component,{...enhancedProps});};}\nexport const __FramerMetadata__ = {\"exports\":{\"withClass\":{\"type\":\"reactHoc\",\"name\":\"withClass\",\"annotations\":{\"framerContractVersion\":\"1\"}},\"__FramerMetadata__\":{\"type\":\"variable\"}}}\n//# sourceMappingURL=./CtaMLG.map"],"mappings":"kKAA2C,SAAgB,EAAU,EAAU,CAAC,MAAO,IAAO,CAAC,IAAM,EAAY,GAAG,CAAC,EAAE,gBAAgB,CAEvI,SAAS,GAAkB,CAAC,IAAM,EAAM,SAAS,OAAO,MAAM,gBAAgB,CAAkE,OAA7D,EAAgC,mBAAmB,EAAM,GAAG,CAAgB,MAAM,IAAI,CAAC,GAA1E,KAA8E,IAAM,EAAO,SAAS,cAAc,0CAA0C,CAAO,EAAa,SAAS,cAAc,4CAA4C,CAAO,EAAa,SAAS,cAAc,4CAA4C,CAAO,EAAQ,SAAS,cAAc,qCAAqC,CAAC,GAAG,EAAO,CAAC,IAAM,EAAU,GAAkB,CAAI,GAAc,IAAW,EAAa,MAAM,GAAc,GAAc,OAAO,QAAU,KAAa,QAAQ,kBAAiB,EAAa,MAAM,QAAQ,iBAAiB,EAAK,IAAS,EAAQ,MAAM,EAAO,SAAS,MAAM,EAAO,OAAO,GAE1wB,EAAc,CAAC,GAAG,EAAM,KAAK,KAAK,QAAQ,EAAY,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,UAAU,CAAC,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAc,CAAC,uBAJlH"}