|
1
|
|
-!function(t){var o={};function n(a){if(o[a])return o[a].exports;var e=o[a]={i:a,l:!1,exports:{}};return t[a].call(e.exports,e,e.exports,n),e.l=!0,e.exports}n.m=t,n.c=o,n.d=function(t,o,a){n.o(t,o)||Object.defineProperty(t,o,{enumerable:!0,get:a})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,o){if(1&o&&(t=n(t)),8&o)return t;if(4&o&&"object"==typeof t&&t&&t.__esModule)return t;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:t}),2&o&&"string"!=typeof t)for(var e in t)n.d(a,e,function(o){return t[o]}.bind(null,e));return a},n.n=function(t){var o=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(o,"a",o),o},n.o=function(t,o){return Object.prototype.hasOwnProperty.call(t,o)},n.p="",n(n.s=194)}({194:function(t,o,n){"use strict";n.r(o);var a=n(22),e=n.n(a);!function(t){function o(t,o,n){e.a.post(ajaxurl,{action:"wpseo_set_ignore",option:t,_wpnonce:n},(function(n){n&&(e()("#"+o).hide(),e()("#hidden_ignore_"+t).val("ignore"))}))}function n(){t("#wp-admin-bar-root-default > li").off("mouseenter.yoastalertpopup mouseleave.yoastalertpopup"),t(".yoast-issue-added").fadeOut(200)}function a(o,n){if(t(".yoast-notification-holder").off("click",".restore").off("click",".dismiss"),void 0!==n.html){n.html&&(o.closest(".yoast-container").html(n.html),s());var a=t("#wp-admin-bar-wpseo-menu"),e=a.find(".yoast-issue-counter");e.length||(a.find("> a:first-child").append('<div class="yoast-issue-counter"/>'),e=a.find(".yoast-issue-counter")),e.html(n.total),0===n.total?e.hide():e.show(),t("#toplevel_page_wpseo_dashboard .update-plugins").removeClass().addClass("update-plugins count-"+n.total),t("#toplevel_page_wpseo_dashboard .plugin-count").html(n.total)}}function s(){var o=t(".yoast-notification-holder");o.on("click",".dismiss",(function(){var o=t(this),n=o.closest(".yoast-notification-holder");o.closest(".yoast-container").append('<div class="yoast-container-disabled"/>'),t.post(ajaxurl,{action:"yoast_dismiss_notification",notification:n.attr("id"),nonce:n.data("nonce"),data:o.data("json")||n.data("json")},a.bind(this,n),"json")})),o.on("click",".restore",(function(){var o=t(this),n=o.closest(".yoast-notification-holder");o.closest(".yoast-container").append('<div class="yoast-container-disabled"/>'),t.post(ajaxurl,{action:"yoast_restore_notification",notification:n.attr("id"),nonce:n.data("nonce"),data:n.data("json")},a.bind(this,n),"json")}))}function i(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 l(){window.wpseoScrollableTables=t(".yoast-table-scrollable"),window.wpseoScrollableTables.length&&window.wpseoScrollableTables.each((function(){var o=t(this);if(!o.data("scrollContainer")){var n=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);n.find(".yoast-table-scrollable__hint").text(wpseoAdminGlobalL10n.scrollable_table_hint),o.data("scrollContainer",a),o.data("scrollHint",n),o.appendTo(a.find(".yoast-table-scrollable__inner")),i(o)}}))}e()(document).ready((function(){e()(".yoast-dismissible").on("click",".yoast-notice-dismiss",(function(){var t=e()(this).parent();return e.a.post(ajaxurl,{action:t.attr("id").replace(/-/g,"_"),_wpnonce:t.data("nonce"),data:t.data("json")}),e.a.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")),n=o.is(":visible");e()(o).slideToggle(200,(function(){t.attr("aria-expanded",!n)}))})),e()("#robotsmessage button").on("click",(function(){o("search_engines_discouraged_notice","robotsmessage",e()(this).data("nonce"))}))})),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(){i(t(this))}))})),t(window).on({"Yoast:YoastTabsMounted":function(){setTimeout((function(){l()}),100)},"Yoast:YoastTabsSelected":function(){setTimeout((function(){l()}),100)}}),t(document).ready((function(){t(".yoast-issue-added").on("mouseenter mouseleave",(function(t){t.stopPropagation(),n()})).fadeIn(),t("#wp-admin-bar-root-default > li").on("mouseenter.yoastalertpopup mouseleave.yoastalertpopup",n),setTimeout(n,3e3),s(),function(){var t=e()(".wpseo-js-premium-indicator"),o=t.find("svg");if(t.hasClass("wpseo-premium-indicator--no")){var n=o.find("path"),a=t.css("backgroundColor");n.css("fill",a)}o.css("display","block"),t.css({backgroundColor:"transparent",width:"20px",height:"20px"})}(),l()}))}(e.a)},22:function(t,o){t.exports=window.jQuery}}); |
|
1
|
+(()=>{"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())})(); |