(window.yoastWebpackJsonp=window.yoastWebpackJsonp||[]).push([[11],{872: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('<div class="yoast-issue-counter"/>'),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('<div class="yoast-container-disabled"/>'),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('<div class="yoast-container-disabled"/>'),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("<div />",{class:"yoast-table-scrollable__hintwrapper",html:"<span class='yoast-table-scrollable__hint' aria-hidden='true' />"}).insertBefore(a),t=o("<div />",{class:"yoast-table-scrollable__container",html:"<div class='yoast-table-scrollable__inner' />"}).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<wpseoConsoleNotifications.length;o++)console.warn(wpseoConsoleNotifications[o])}),jQuery(document).ready(function(){jQuery(".yoast-dismissible").on("click",".yoast-notice-dismiss",function(){var o=jQuery(this).parent();return jQuery.post(ajaxurl,{action:o.attr("id").replace(/-/g,"_"),_wpnonce:o.data("nonce"),data:o.data("json")}),jQuery.post(ajaxurl,{action:"yoast_dismiss_notification",notification:o.attr("id"),nonce:o.data("nonce"),data:o.data("json")}),o.fadeTo(100,0,function(){o.slideUp(100,function(){o.remove()})}),!1}),jQuery(".yoast-help-button").on("click",function(){var o=jQuery(this),a=jQuery("#"+o.attr("aria-controls")),s=a.is(":visible");jQuery(a).slideToggle(200,function(){o.attr("aria-expanded",!s)})})}),window.wpseoDismissTaglineNotice=function(o){jQuery.post(ajaxurl,{action:"wpseo_dismiss_tagline_notice",_wpnonce:o})},window.wpseoSetIgnore=function(o,a,s){jQuery.post(ajaxurl,{action:"wpseo_set_ignore",option:o,_wpnonce:s},function(s){s&&(jQuery("#"+a).hide(),jQuery("#hidden_ignore_"+o).val("ignore"))})},window.wpseoDismissLink=function(o){return jQuery('<a href="'+o+'" type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></a>')},o(window).on("wp-window-resized orientationchange",function(){window.wpseoScrollableTables&&window.wpseoScrollableTables.length&&function(a){a.each(function(){e(o(this))})}(window.wpseoScrollableTables)}),o(window).on({"Yoast:YoastTabsMounted":function(){setTimeout(function(){n()},100)},"Yoast:YoastTabsSelected":function(){setTimeout(function(){n()},100)}}),o(document).ready(function(){o(".yoast-issue-added").on("mouseenter mouseleave",function(o){o.stopPropagation(),a()}).fadeIn(),o("#wp-admin-bar-root-default > li").on("mouseenter.yoastalertpopup mouseleave.yoastalertpopup",a),setTimeout(a,3e3),t(),function(){var o=jQuery(".wpseo-js-premium-indicator"),a=o.find("svg");if(o.hasClass("wpseo-premium-indicator--no")){var s=a.find("path"),t=o.css("backgroundColor");s.css("fill",t)}a.css("display","block"),o.css({backgroundColor:"transparent",width:"20px",height:"20px"})}(),n()})}(jQuery)}},[[872,0]]]);