!function(t){"use strict";var o,n;function e(e){o=e.clientX,n=t("#hack-guardian-toast").offset().left,t(window).width()<800?t("#hack-guardian-toast").css({right:20}):t(document).mousemove(function(e){e=e.clientX-o,e=n+e<t(window).width()-t("#hack-guardian-toast").width()-60?n+e:t(window).width()-t("#hack-guardian-toast").width()-60;e<=20||t("#hack-guardian-toast").css({left:e})})}function i(e){t("#hack-guardian-toast").find(".content > p").replaceWith(easyWP.description[e?"enabled":"disabled"]),t("#hack-guardian-toast").find(".status .info > p").replaceWith(e?"<p>Enabled</p>":"<p>Disabled</p>"),t("#hack-guardian-toast").find("input[type='checkbox']").prop("checked",e),t("#hack-guardian-toast").find(".content").css({height:"144px"})}t(window).on("resize",e),t("#hack-guardian-toast").on("mousedown",e),t(document).mouseup(function(){t(document).off("mousemove")}),t(".tooltip i").replaceWith(function(){var e=t(this).text();return'<a href="https://www.easywp.com/blog/wordpress-site-protector-hackguardian/" title="'+e+'" target="_blank">'+e+"</a>"}),t("#hack-guardian-toast-toggle").on("change",function(){t.post(ajaxurl,{action:"hack_guardian",nonce:easyWP.nonce,enabled:this.checked},function(e){}),t("#hack-guardian-checkbox").prop("checked",this.checked),i(this.checked)}),t("#hack-guardian-checkbox").on("change",function(){t.post(ajaxurl,{action:"hack_guardian",nonce:easyWP.nonce,enabled:this.checked},function(e){}),i(this.checked)}),t("#hack-guardian-accordion-button").on("click",function(){t(this).parent().toggleClass("close")}),"enabled"===easyWP.hackGuardian&&t(document).ready(function(){t("body.plugins-php").find(".page-title-action").remove(),t("body.plugins-php").find(".update-link").replaceWith("<strong>Disable HackGuardian</strong>"),t("body.plugins-php").find(".toggle-auto-update").remove(),t("body.plugins-php").find("select[name='action']").find("option[value='update-selected']").remove(),t("body.plugins-php").find("select[name='action2']").find("option[value='update-selected']").remove(),t("body.plugin-install-php").find(".page-title-action").remove(),t("body.plugin-install-php").find("#doaction").attr("disabled","disabled"),t("body.plugin-install-php").find("select[name='action'").attr("disabled","disabled"),t("body.plugin-install-php").find("#doaction2").attr("disabled","disabled"),t("body.plugin-install-php").find("select[name='action2'").attr("disabled","disabled"),t("body.plugin-install-php").find(".install-now.button").remove(),t("body.plugin-install-php").find(".update-now.button").remove(),t("body.plugin-editor-php").find('form[action="plugin-editor.php"]').remove(),t("body.update-core-php").find('form[action="update-core.php?action=do-core-upgrade"]').remove(),t("body.update-core-php").find('form[action="update-core.php?action=do-plugin-upgrade"]').remove(),t("body.update-core-php").find('form[action="update-core.php?action=do-theme-upgrade"]').remove(),t("body.update-core-php").find('form[action="update-core.php?action=do-translation-upgrade"]').remove(),t("body.themes-php").find(".page-title-action").remove(),t("body.themes-php").find(".button-link").remove(),t("body.themes-php").find("#update-theme").remove(),t("body.theme-install-php").find(".page-title-action").remove(),t(document).on("DOMSubtreeModified",function(){t("body.theme-install-php").find(".theme-install").remove(),t("body.themes-php").find("#update-theme").remove()}),t("body.theme-editor-php").find("#templateside").remove(),t("body.theme-editor-php").find('form[action="theme-editor.php"]').remove(),t("body.import-php").find(".install-now").remove(),t("body.import-php").find(".importer-item:last").find(".importer-action").remove()})}(jQuery);