').appendTo(captcha_wrapper)))}"3"==window.asproRecaptcha.ver&&element.closest(".captcha-row")&&(element.closest(".captcha-row").style.display="none")}}},captchaHandler=function(){try{return fillEmptyReCAPTCHAFieldsIfLoaded(),window.renderRecaptchaById&&window.asproRecaptcha&&window.asproRecaptcha.key?(findAndReplaceBitrixCaptchaWithReCAPTCHA(),!0):(console.error("Bad captcha keys or module error"),!0)}catch(e){return console.error(e),!0}};BX.addCustomEvent(window,"onRenderCaptcha",(function(e){captchaHandler()})),BX.addCustomEvent(window,"onAjaxSuccess",(function(e){captchaHandler()}))}();