!function(e){"use strict";var a=function(a){var n=window.jnews.loginregister;a&&e("#jeg_loginform form").find("h3").html(a.message),e.magnificPopup.open({type:"inline",removalDelay:500,midClick:!0,mainClass:"mfp-zoom-out",items:{src:"#jeg_loginform"},callbacks:{beforeOpen:function(){this.st.mainClass="mfp-zoom-out",e("body").removeClass("jeg_show_menu")},change:function(){var a=this.content.find(".g-recaptcha"),t=this.content.find("form").data("type"),o=a.data("sitekey");this.content.find(".form-message p").remove(),n.validateCaptcha=!1,1==jnewsoption.recaptcha&&a.length&&(a.hasClass("loaded")?grecaptcha.reset(n.captcha[t]):(n.captcha[t]=grecaptcha.render(a.get(0),{sitekey:o,callback:n.validateResponse.bind(n)}),e(a).addClass("loaded")))}}})};e(document).on("ready",(function(){e(".jeg_login_required").on("click",(function(e){e.preventDefault(),a()}))}))}(jQuery);