HEX
Server: Apache/2.4.54 (Debian)
System: Linux a5825d2beacc 4.15.0-197-generic #208-Ubuntu SMP Tue Nov 1 17:23:37 UTC 2022 x86_64
User: root (0)
PHP: 8.1.14
Disabled: NONE
Upload Files
File: /var/www/html/wp-content/plugins/wordpress-seo/js/dist/wp-seo-reindex-links-910.min.js
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<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}(),d=n(813),p=function(e){return e&&e.__esModule?e:{default:e}}(d),f=yoastReindexLinksData.data,m=!1,y=function(){function e(t){r(this,e),this.element=jQuery("#wpseo_count_index_links"),this.progressbarTarget=jQuery("#wpseo_index_links_progressbar").progressbar({value:0}),this.total=parseInt(t,10),this.totalProcessed=0}return c(e,[{key:"update",value:function(e){this.totalProcessed+=e;var t=this.totalProcessed*(100/this.total);this.progressbarTarget.progressbar("value",Math.round(t)),this.element.html(this.totalProcessed)}},{key:"complete",value:function(){this.progressbarTarget.progressbar("value",100)}}]),e}();jQuery(l)},813:function(e,t){var n,r,o="",a=function(e){e=e||"polite";var t=document.createElement("div");t.id="a11y-speak-"+e,t.className="a11y-speak-region";return t.setAttribute("style","clip: rect(1px, 1px, 1px, 1px); position: absolute; height: 1px; width: 1px; overflow: hidden; word-wrap: normal;"),t.setAttribute("aria-live",e),t.setAttribute("aria-relevant","additions text"),t.setAttribute("aria-atomic","true"),document.querySelector("body").appendChild(t),t};!function(e){if("complete"===document.readyState||"loading"!==document.readyState&&!document.documentElement.doScroll)return e();document.addEventListener("DOMContentLoaded",e)}(function(){n=document.getElementById("a11y-speak-polite"),r=document.getElementById("a11y-speak-assertive"),null===n&&(n=a("polite")),null===r&&(r=a("assertive"))});var i=function(){for(var e=document.querySelectorAll(".a11y-speak-region"),t=0;t<e.length;t++)e[t].textContent=""},s=function(e,t){i(),e=e.replace(/<[^<>]+>/g," "),o===e&&(e+=" "),o=e,r&&"assertive"===t?r.textContent=e:n&&(n.textContent=e)};e.exports=s}},[2158]);