wp-seo-metabox-350.min.js
5 KB
!function a(b,c,d){function e(g,h){if(!c[g]){if(!b[g]){var i="function"==typeof require&&require;if(!h&&i)return i(g,!0);if(f)return f(g,!0);var j=new Error("Cannot find module '"+g+"'");throw j.code="MODULE_NOT_FOUND",j}var k=c[g]={exports:{}};b[g][0].call(k.exports,function(a){var c=b[g][1][a];return e(c?c:a)},k,k.exports,a,b,c,d)}return c[g].exports}for(var f="function"==typeof require&&require,g=0;g<d.length;g++)e(d[g]);return e}({1:[function(a,b,c){"use strict";function d(a){return console.error("ystClean is deprecated since Yoast SEO 3.0, use YoastSEO.js functionality instead."),a}function e(a,b){return console.error("ystFocusKwTest is deprecated since Yoast SEO 3.0, use YoastSEO.js functionality instead."),""}function f(a){return console.error("ystRemoveLowerCaseDiacritics is deprecated since Yoast SEO 3.0, use YoastSEO.js functionality instead."),a}function g(){console.error("ystTestFocusKw is deprecated since Yoast SEO 3.0, use YoastSEO.js functionality instead.")}function h(a,b){console.error("ystReplaceVariables is deprecated since Yoast SEO 3.0, use YoastSEO.js functionality instead."),b(a)}function i(a,b){console.error("ystAjaxReplaceVariables is deprecated since Yoast SEO 3.0, use YoastSEO.js functionality instead.")}function j(a){console.error("ystUpdateTitle is deprecated since Yoast SEO 3.0, use YoastSEO.js functionality instead.")}function k(a){return console.error("ystSanitizeTitle is deprecated since Yoast SEO 3.0, use YoastSEO.js functionality instead."),a}function l(){console.error("ystUpdateDesc is deprecated since Yoast SEO 3.0, use YoastSEO.js functionality instead.")}function m(a){return console.error("ystSanitizeDesc is deprecated since Yoast SEO 3.0, use YoastSEO.js functionality instead."),a}function n(a){return console.error("ystTrimDesc is deprecated since Yoast SEO 3.0, use YoastSEO.js functionality instead."),a}function o(){console.error("ystUpdateURL is deprecated since Yoast SEO 3.0, use YoastSEO.js functionality instead.")}function p(a,b){return console.error("ystBoldKeywords is deprecated since Yoast SEO 3.0, use YoastSEO.js functionality instead."),a}function q(){console.error("ystUpdateSnippet is deprecated since Yoast SEO 3.0, use YoastSEO.js functionality instead.")}function r(a){return console.error("ystEscapeFocusKw is deprecated since Yoast SEO 3.0, use YoastSEO.js functionality instead."),a}!function(a){function b(){a("#yoast_wpseo_meta-robots-noindex").select2({width:"100%",language:wpseoSelect2Locale}),a("#yoast_wpseo_meta-robots-adv").select2({width:"100%",language:wpseoSelect2Locale})}function c(){var b,c,d=a("#wpseo-add-keyword-popup-button"),e=d.text();tb_show(e,"#TB_inline?width=650&height=350&inlineId=wpseo-add-keyword-popup","group"),b=a("#TB_window"),c=a("#TB_closeWindowButton"),b.css({width:680,height:235,"margin-left":-340}),b.attr({role:"dialog","aria-labelledby":"TB_ajaxWindowTitle","aria-describedby":"TB_ajaxContent"}).on("keydown",function(a){var b;9===a.which&&(b=a.target.id,"wpseo-add-keyword-popup-button"!==b||a.shiftKey?"TB_closeWindowButton"===b&&a.shiftKey&&(d.focus(),a.preventDefault()):(c.focus(),a.preventDefault()))}),a("body").on("thickbox:removed",function(){a(".wpseo-add-keyword").focus()})}function d(){1===a("#wpseo-add-keyword-popup").length&&a(".wpseo-add-keyword").on("click",c)}window.wpseo_init_tabs=function(){jQuery(".wpseo-metabox-tabs-div").length>0&&jQuery(".wpseo-metabox-tabs").on("click","a.wpseo_tablink",function(a){a.preventDefault(),jQuery(".wpseo-meta-section.active .wpseo-metabox-tabs li").removeClass("active"),jQuery(".wpseo-meta-section.active .wpseotab").removeClass("active");var b=jQuery(jQuery(this).attr("href"));b.addClass("active"),jQuery(this).parent("li").addClass("active"),jQuery(this).hasClass("scroll")&&jQuery("html, body").animate({scrollTop:jQuery(b).offset().top},500)}),jQuery(".wpseo-meta-section").length>0&&(jQuery("#wpseo-meta-section-content").addClass("active"),jQuery(".wpseo-metabox-sidebar li").filter(function(){return"#wpseo-meta-section-content"===jQuery(this).find(".wpseo-meta-section-link").attr("href")}).addClass("active"),jQuery("a.wpseo-meta-section-link").click(function(a){a.preventDefault(),jQuery(".wpseo-metabox-sidebar li").removeClass("active"),jQuery(".wpseo-meta-section").removeClass("active");var b=jQuery(jQuery(this).attr("href"));b.addClass("active"),jQuery(this).parent("li").addClass("active")})),jQuery(".wpseo-heading").hide(),jQuery(".wpseo-metabox-tabs").show()},jQuery(document).ready(function(){jQuery(".wpseo-meta-section").each(function(a,b){jQuery(b).find(".wpseo-metabox-tabs li:first").addClass("active"),jQuery(b).find(".wpseotab:first").addClass("active")}),window.wpseo_init_tabs(),d(),b()})}(jQuery),window.ystClean=d,window.ystFocusKwTest=e,window.ystRemoveLowerCaseDiacritics=f,window.ystTestFocusKw=g,window.ystReplaceVariables=h,window.ystAjaxReplaceVariables=i,window.ystUpdateTitle=j,window.ystSanitizeTitle=k,window.ystUpdateDesc=l,window.ystSanitizeDesc=m,window.ystTrimDesc=n,window.ystUpdateURL=o,window.ystBoldKeywords=p,window.ystUpdateSnippet=q,window.ystEscapeFocusKw=r},{}]},{},[1]);