{"version":3,"file":"CtaMLG.ChjB7jya.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,iBAEvH,SAAS,GAAkB,CAAC,IAAM,EAAM,SAAS,OAAO,MAAM,iBAAiB,GAAG,CAAC,EAAM,OAAO,KAAK,IAAM,EAAQ,mBAAmB,EAAM,IAAI,OAAO,EAAQ,MAAM,KAAK,EAAI,KAAM,EAAO,SAAS,cAAc,2CAAiD,EAAa,SAAS,cAAc,6CAAmD,EAAa,SAAS,cAAc,6CAAmD,EAAQ,SAAS,cAAc,sCAAsC,GAAG,EAAO,CAAC,IAAM,EAAU,IAAsB,GAAc,IAAW,EAAa,MAAM,GAAc,GAAc,OAAO,QAAU,KAAa,QAAQ,kBAAiB,EAAa,MAAM,QAAQ,mBAAsB,IAAS,EAAQ,MAAM,EAAO,SAAS,MAAM,EAAO,OACzwB,CACD,EAAO,EAAc,CAAC,GAAG,EAAM,KAAK,KAAK,QAAQ,EAAY,MAAM,CAAC,GAAG,EAAM,MAAM,OAAO,UAAU,CAAC,CAAC,OAAoB,EAAK,EAAU,CAAC,GAAG,EAAc,CAAG,CAAE"}