if(console.log("reCAPTCHA version :",id_recaptcha_version),"v2"==id_recaptcha_version){function e(){null==id_recaptcha_site_id?console.log("reCAPTCHA Site ID undefined."):jQuery(".id_recaptcha_placeholder").length>0&&(jQuery('input[name="wp-submit"], button.idc_reg_submit').attr("disabled","disabled"),jQuery.each(jQuery(".id_recaptcha_placeholder"),function(e,t){jQuery(this).attr("id","id_recaptcha_placeholder-"+e),jQuery(this).closest("form").attr("id"),grecaptcha.render("id_recaptcha_placeholder-"+e,{sitekey:id_recaptcha_site_id,size:"normal"})}))}function t(){jQuery('input[name="wp-submit"], button.idc_reg_submit').removeAttr("disabled")}}jQuery(document).ready(function(){jQuery(".md-requiredlogin").length>0&&jQuery('.md-requiredlogin input[name="wp-submit"]').on("click",function(e){return e.preventDefault(),grecaptcha.ready(function(){grecaptcha.execute(id_recaptcha_site_id,{action:"submit"}).then(function(e){jQuery("#loginform #wp-submit").val("Logging In...").css({opacity:"0.5"}),jQuery("#loginform").append('<input type="hidden" name="g-recaptcha-response" value="'+e+'" />'),jQuery("#loginform").submit()})}),!1}),jQuery("form[name='reg-form']").length>0&&(jQuery("form[name='reg-form'] #id-reg-submit").attr("type","button"),jQuery("form[name='reg-form'] #id-reg-submit").on("click",function(e){return e.preventDefault(),grecaptcha.ready(function(){grecaptcha.execute(id_recaptcha_site_id,{action:"submit"}).then(function(e){jQuery("form[name='reg-form'] #id-reg-submit").css({opacity:"0.5"}).html("Registering..."),jQuery("#registration-form-extra-fields").append('<input type="hidden" name="g-recaptcha-response" value="'+e+'" />'),jQuery("form[name='reg-form']").submit()})}),!1}))});