(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[11],{874:function(o,a,s){"use strict";!function(o){function a(){o("#wp-admin-bar-root-default > li").off("mouseenter.yoastalertpopup mouseleave.yoastalertpopup"),o(".yoast-issue-added").fadeOut(200)}function s(a,s){if(o(".yoast-alert-holder").off("click",".restore").off("click",".dismiss"),void 0!==s.html){s.html&&(a.closest(".yoast-container").html(s.html),t());var e=o("#wp-admin-bar-wpseo-menu"),n=e.find(".yoast-issue-counter");n.length||(e.find("> a:first-child").append('
'),n=e.find(".yoast-issue-counter")),n.html(s.total),0===s.total?n.hide():n.show(),o("#toplevel_page_wpseo_dashboard .update-plugins").removeClass().addClass("update-plugins count-"+s.total),o("#toplevel_page_wpseo_dashboard .plugin-count").html(s.total)}}function t(){var a=o(".yoast-alert-holder");a.on("click",".dismiss",function(){var a=o(this),t=a.closest(".yoast-alert-holder");a.closest(".yoast-container").append(''),a.find("span").removeClass("dashicons-no-alt").addClass("dashicons-randomize"),o.post(ajaxurl,{action:"yoast_dismiss_alert",notification:t.attr("id"),nonce:t.data("nonce"),data:t.data("json")},s.bind(this,t),"json")}),a.on("click",".restore",function(){var a=o(this),t=a.closest(".yoast-alert-holder");a.closest(".yoast-container").append(''),a.find("span").removeClass("dashicons-arrow-up").addClass("dashicons-randomize"),o.post(ajaxurl,{action:"yoast_restore_alert",notification:t.attr("id"),nonce:t.data("nonce"),data:t.data("json")},s.bind(this,t),"json")})}function e(o){o.is(":hidden")||(o.outerWidth()>o.parent().outerWidth()?(o.data("scrollHint").addClass("yoast-has-scroll"),o.data("scrollContainer").addClass("yoast-has-scroll")):(o.data("scrollHint").removeClass("yoast-has-scroll"),o.data("scrollContainer").removeClass("yoast-has-scroll")))}function n(){window.wpseoScrollableTables=o(".yoast-table-scrollable"),window.wpseoScrollableTables.length&&window.wpseoScrollableTables.each(function(){var a=o(this);if(!a.data("scrollContainer")){var s=o("",{class:"yoast-table-scrollable__hintwrapper",html:""}).insertBefore(a),t=o("",{class:"yoast-table-scrollable__container",html:""}).insertBefore(a);s.find(".yoast-table-scrollable__hint").text(wpseoAdminGlobalL10n.scrollable_table_hint),a.data("scrollContainer",t),a.data("scrollHint",s),a.appendTo(t.find(".yoast-table-scrollable__inner")),e(a)}})}jQuery(document).ready(function(){if(void 0!==window.wpseoConsoleNotifications&&"undefined"!=typeof console)for(var o=0;o