/home/skemvmse/www/wp-content/plugins/wordpress-seo/js/dist/admin-global.js
(()=>{"use strict";var t={n:o=>{var e=o&&o.__esModule?()=>o.default:()=>o;return t.d(e,{a:e}),e},d:(o,e)=>{for(var a in e)t.o(e,a)&&!t.o(o,a)&&Object.defineProperty(o,a,{enumerable:!0,get:e[a]})},o:(t,o)=>Object.prototype.hasOwnProperty.call(t,o)};const o=window.jQuery;var e=t.n(o);const a={fresh:"#2c3338",light:"#fff",modern:"#1e1e1e",blue:"#4796b3",coffee:"#46403c",ectoplasm:"#413256",midnight:"#26292c",ocean:"#627c83",sunrise:"#be3631"},n="fresh";!function(t){function o(t,o,a){const n=new FormData,s={action:"wpseo_set_ignore",option:t,_wpnonce:a};for(const[t,o]of Object.entries(s))n.append(t,o);return fetch(ajaxurl,{method:"POST",body:n}).then((a=>(a&&(e()("#"+o).hide(),e()("#hidden_ignore_"+t).val("ignore")),a)))}function s(){t("#wp-admin-bar-root-default > li").off("mouseenter.yoastalertpopup mouseleave.yoastalertpopup"),t(".yoast-issue-added").fadeOut(200)}function i(o,e){if(t(".yoast-notification-holder").off("click",".restore").off("click",".dismiss"),void 0!==e.html){e.html&&(o.closest(".yoast-container").html(e.html),r());var a=t("#wp-admin-bar-wpseo-menu"),n=a.find(".yoast-issue-counter");n.length||(a.find("> a:first-child").append('<div class="yoast-issue-counter"/>'),n=a.find(".yoast-issue-counter")),n.html(e.total),0===e.total?n.hide():n.show(),t("#toplevel_page_wpseo_dashboard .update-plugins").removeClass().addClass("update-plugins count-"+e.total),t("#toplevel_page_wpseo_dashboard .plugin-count").html(e.total)}}function r(){var o=t(".yoast-notification-holder");o.on("click",".dismiss",(function(){var o=t(this),e=o.closest(".yoast-notification-holder");o.closest(".yoast-container").append('<div class="yoast-container-disabled"/>'),t.post(ajaxurl,{action:"yoast_dismiss_notification",notification:e.attr("id"),nonce:e.data("nonce"),data:o.data("json")||e.data("json")},i.bind(this,e),"json")})),o.on("click",".restore",(function(){var o=t(this),e=o.closest(".yoast-notification-holder");o.closest(".yoast-container").append('<div class="yoast-container-disabled"/>'),t.post(ajaxurl,{action:"yoast_restore_notification",notification:e.attr("id"),nonce:e.data("nonce"),data:e.data("json")},i.bind(this,e),"json")}))}function l(t){t.is(":hidden")||(t.outerWidth()>t.parent().outerWidth()?(t.data("scrollHint").addClass("yoast-has-scroll"),t.data("scrollContainer").addClass("yoast-has-scroll")):(t.data("scrollHint").removeClass("yoast-has-scroll"),t.data("scrollContainer").removeClass("yoast-has-scroll")))}function c(){window.wpseoScrollableTables=t(".yoast-table-scrollable"),window.wpseoScrollableTables.length&&window.wpseoScrollableTables.each((function(){var o=t(this);if(!o.data("scrollContainer")){var e=t("<div />",{class:"yoast-table-scrollable__hintwrapper",html:"<span class='yoast-table-scrollable__hint' aria-hidden='true' />"}).insertBefore(o),a=t("<div />",{class:"yoast-table-scrollable__container",html:"<div class='yoast-table-scrollable__inner' />"}).insertBefore(o);e.find(".yoast-table-scrollable__hint").text(wpseoAdminGlobalL10n.scrollable_table_hint),o.data("scrollContainer",a),o.data("scrollHint",e),o.appendTo(a.find(".yoast-table-scrollable__inner")),l(o)}}))}e()(document).ready((function(){e()(".yoast-dismissible").on("click",".yoast-notice-dismiss",(function(){var t=e()(this).parent();return e().post(ajaxurl,{action:t.attr("id").replace(/-/g,"_"),_wpnonce:t.data("nonce"),data:t.data("json")}),e().post(ajaxurl,{action:"yoast_dismiss_notification",notification:t.attr("id"),nonce:t.data("nonce"),data:t.data("json")}),t.fadeTo(100,0,(function(){t.slideUp(100,(function(){t.remove()}))})),!1})),e()(".yoast-help-button").on("click",(function(){var t=e()(this),o=e()("#"+t.attr("aria-controls")),a=o.is(":visible");e()(o).slideToggle(200,(function(){t.attr("aria-expanded",!a)}))})),e()("button#robotsmessage-dismiss-button").on("click",(function(){o("search_engines_discouraged_notice","robotsmessage",e()(this).data("nonce")).then((()=>{window.location.href.includes("page=wpseo_dashboard")&&window.location.reload()}))}))})),window.wpseoSetIgnore=o,window.wpseoDismissLink=function(t){return e()('<a href="'+t+'" type="button" class="notice-dismiss"><span class="screen-reader-text">Dismiss this notice.</span></a>')},t(window).on("wp-window-resized orientationchange",(function(){window.wpseoScrollableTables&&window.wpseoScrollableTables.length&&window.wpseoScrollableTables.each((function(){l(t(this))}))})),t(window).on({"Yoast:YoastTabsMounted":function(){setTimeout((function(){c()}),100)},"Yoast:YoastTabsSelected":function(){setTimeout((function(){c()}),100)}}),t(document).ready((function(){var o,i;t(".yoast-issue-added").on("mouseenter mouseleave",(function(t){t.stopPropagation(),s()})).fadeIn(),t("#wp-admin-bar-root-default > li").on("mouseenter.yoastalertpopup mouseleave.yoastalertpopup",s),setTimeout(s,3e3),r(),function(){const t=(e=document.body.className,o=function(t){if("string"!=typeof t)return n;const o=t.match(/admin-color-(\w+)/);return o?o[1]:n}(e),a[o]||a[n]);var o,e;document.documentElement.style.setProperty("--yoast-adminbar-submenu-bg",t)}(),function(){const t=e()(".wpseo-js-premium-indicator"),o=t.find("svg");if(t.hasClass("wpseo-premium-indicator--no")){const e=o.find("path"),a=t.css("backgroundColor");e.css("fill",a)}o.css("display","block"),t.css({backgroundColor:"transparent",width:"20px",height:"20px"})}(),c(),function(){const t=e()(".yoast-issue-counter .yoast-issues-count").first(),o=e()("#toplevel_page_wpseo_dashboard .plugin-count");if(t.text()===o.first().text())return;const a=e()("#toplevel_page_wpseo_dashboard .update-plugins"),n=e()(".yoast-issue-counter .screen-reader-text").first(),s=e()("#toplevel_page_wpseo_dashboard .update-plugins .screen-reader-text");if(t.length)return o.text(t.text()),a.removeClass().addClass("update-plugins count-"+t.text()),void s.text(n.text());o.text("0"),a.removeClass().addClass("update-plugins count-0"),s.remove()}(),(o=t('a[href="admin.php?page=wpseo_upgrade_sidebar"]')).length&&o.attr("target","_blank"),(i=t("a[href$='admin.php?page=wpseo_brand_insights']")).length&&i.each((function(){t(this).attr("target","_blank")})),function(){var o=t("a[href$='admin.php?page=wpseo_brand_insights_premium']");o.length&&o.each((function(){t(this).attr("target","_blank")}))}()}))}(e())})();