(n=>{ConvertForms.Helper.onReady(function(){grecaptcha.ready(function(){n.querySelectorAll(".g-v3-recaptcha").forEach(function(e){var t=e.closest(".convertforms"),r=e.dataset.sitekey,a=t.querySelector(".g-recaptcha-response");(t||n).querySelectorAll('textarea[name="g-recaptcha-response"]').forEach(function(e){e.setAttribute("aria-hidden","true"),e.setAttribute("aria-label","reCAPTCHA response")}),t.addEventListener("beforeSubmit",function(e){e.defaultPrevented||""===a.value&&(e.preventDefault(),grecaptcha.execute(r,{action:"convert_forms_"+t.dataset.id+"_submit"}).then(function(e){a.value=e,t.ConvertForms.submit()}))}),t.addEventListener("afterSubmit",function(e){a.value=""})})})})})((window,document));

