File: /var/www/html/wp-content/plugins/wordpress-seo/js/dist/wp-seo-admin-global-910.min.js
yoastWebpackJsonp([26],{2149:function(o,a,t){"use strict";!function(o){function a(){if(void 0!==window.wpseoConsoleNotifications&&"undefined"!=typeof console)for(var o=0;o<wpseoConsoleNotifications.length;o++)console.warn(wpseoConsoleNotifications[o])}function t(o){jQuery.post(ajaxurl,{action:"wpseo_dismiss_tagline_notice",_wpnonce:o})}function s(o,a,t){jQuery.post(ajaxurl,{action:"wpseo_set_ignore",option:o,_wpnonce:t},function(t){t&&(jQuery("#"+a).hide(),jQuery("#hidden_ignore_"+o).val("ignore"))})}function e(o){return jQuery('<a href="'+o+'" type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></a>')}function n(){o("#wp-admin-bar-root-default > li").off("mouseenter.yoastalertpopup mouseleave.yoastalertpopup"),o(".yoast-issue-added").fadeOut(200)}function i(){o(".yoast-issue-added").on("mouseenter mouseleave",function(o){o.stopPropagation(),n()}).fadeIn(),o("#wp-admin-bar-root-default > li").on("mouseenter.yoastalertpopup mouseleave.yoastalertpopup",n),setTimeout(n,3e3)}function l(a,t){if(o(".yoast-alert-holder").off("click",".restore").off("click",".dismiss"),void 0!==t.html){t.html&&(a.closest(".yoast-container").html(t.html),r());var s=o("#wp-admin-bar-wpseo-menu"),e=s.find(".yoast-issue-counter");e.length||(s.find("> a:first-child").append('<div class="yoast-issue-counter"/>'),e=s.find(".yoast-issue-counter")),e.html(t.total),0===t.total?e.hide():e.show(),o("#toplevel_page_wpseo_dashboard .update-plugins").removeClass().addClass("update-plugins count-"+t.total),o("#toplevel_page_wpseo_dashboard .plugin-count").html(t.total)}}function r(){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")},l.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")},l.bind(this,t),"json")})}function c(){var o=jQuery(".wpseo-js-premium-indicator"),a=o.find("svg");if(o.hasClass("wpseo-premium-indicator--no")){var t=a.find("path"),s=o.css("backgroundColor");t.css("fill",s)}a.css("display","block"),o.css({backgroundColor:"transparent",width:"20px",height:"20px"})}function d(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 u(a){a.each(function(){d(o(this))})}function p(){window.wpseoScrollableTables=o(".yoast-table-scrollable"),window.wpseoScrollableTables.length&&window.wpseoScrollableTables.each(function(){var a=o(this);if(!a.data("scrollContainer")){var t=o("<div />",{class:"yoast-table-scrollable__hintwrapper",html:"<span class='yoast-table-scrollable__hint' aria-hidden='true' />"}).insertBefore(a),s=o("<div />",{class:"yoast-table-scrollable__container",html:"<div class='yoast-table-scrollable__inner' />"}).insertBefore(a);t.find(".yoast-table-scrollable__hint").text(wpseoAdminGlobalL10n.scrollable_table_hint),a.data("scrollContainer",s),a.data("scrollHint",t),a.appendTo(s.find(".yoast-table-scrollable__inner")),d(a)}})}jQuery(document).ready(a),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")),t=a.is(":visible");jQuery(a).slideToggle(200,function(){o.attr("aria-expanded",!t)})})}),window.wpseoDismissTaglineNotice=t,window.wpseoSetIgnore=s,window.wpseoDismissLink=e,o(window).on("wp-window-resized orientationchange",function(){window.wpseoScrollableTables&&window.wpseoScrollableTables.length&&u(window.wpseoScrollableTables)}),o(window).on({"Yoast:YoastTabsMounted":function(){setTimeout(function(){p()},100)},"Yoast:YoastTabsSelected":function(){setTimeout(function(){p()},100)}}),o(document).ready(function(){i(),r(),c(),p()})}(jQuery)}},[2149]);