!function(e){e(document).ready(function(){var t=setInterval(function(){e().updateLinkIndexStatus(t)},3e3)}),e.fn.updateLinkIndexStatus=function(i){$old_progress_value=parseFloat(e("#ilj_batch_progress").text()),e.ajax({url:ilj_ajax_object.ajaxurl,type:"POST",data:{action:"ilj_render_batch_info"}}).done(function(t){$batch_build_info=t,e("#ilj_batch_status").text($batch_build_info.status),e("#ilj-index-status").length&&e("#ilj-index-status").text($batch_build_info.status),e("#progressbar>div").animate({width:$batch_build_info.progress+"%"},{duration:1e3,easing:"swing"}),$old_progress_value!=$batch_build_info.progress&&e({Counter:$old_progress_value}).animate({Counter:$batch_build_info.progress},{duration:1e3,easing:"swing",step:function(){e("#ilj_batch_progress").text(Math.ceil(this.Counter)+"%")},always:function(){e("#ilj_batch_progress").text(Math.ceil($batch_build_info.progress)+"%")}}),1==$batch_build_info.is_complete&&(clearInterval(i),t=$batch_build_info,e(".button.ilj-index-rebuild").length&&(e(".button.ilj-index-rebuild").removeClass("hidden"),e(".button.ilj-index-restart-rebuild").addClass("hidden"),e("#ilj-index-rebuild-spinner").remove(),e("#ilj-index-rebuild-message").html("")),e("#ilj-linkindex-count").length)&&""!=t&&(e("#ilj-linkindex-count").html(t.linkindex_count),e("#ilj-configured-keywords-count").html(t.keywords_count),e("#ilj-last-built").html(t.last_built))})}}(jQuery);