yoastWebpackJsonp([14],{2158:function(e,t,n){"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){jQuery.ajax({type:"GET",url:f.restApi.root+f.restApi.endpoint,beforeSend:function(e){e.setRequestHeader("X-WP-Nonce",f.restApi.nonce)},success:function(n){var r=parseInt(n,10);if(0!==r)return e.update(r),void o(e,t);e.complete(),t()}})}function a(){return new Promise(function(e){o(new y(f.amount),e)})}function i(){m=!0,(0,p.default)(f.l10n.calculationCompleted),jQuery("#reindexLinks").html(f.message.indexingCompleted),tb_remove()}function s(){(0,p.default)(f.l10n.calculationInProgress);var e=[];e.push(a()),Promise.all(e).then(i)}function u(){jQuery("#general-tab").click(),!1===m&&jQuery("#openLinkIndexing").click()}function l(){var e=!1;jQuery(".yoast-js-calculate-index-links--all ").on("click",function(){!1===e&&(s(),e=!0)}),jQuery("#noticeRunLinkIndex").click(u),-1!==window.location.href.indexOf("&reIndexLinks=1")&&jQuery(u)}var c=function(){function e(e,t){for(var n=0;n]+>/g," "),o===e&&(e+=" "),o=e,r&&"assertive"===t?r.textContent=e:n&&(n.textContent=e)};e.exports=s}},[2158]);