'use strict';dotclear.dbSpamsCount=()=>{const params={f:'getSpamsCount',xd_check:dotclear.nonce,};$.get('services.php',params,(data)=>{if($('rsp[status=failed]',data).length>0){window.console.log('Dotclear REST server error');}else{const nb=$('rsp>count',data).attr('ret');if(nb!=dotclear.dbSpamsCount_Counter){let icon=$('#dashboard-main #icons p a[href="comments.php?status=-2"]');if(icon.length){const nb_label=icon.children('span.db-icon-title-spam');if(nb_label.length){nb_label.text(nb);}}else if(nb!=''){icon=$('#dashboard-main #icons p a[href="comments.php"]');if(icon.length){const xml=` <a href="comments.php?status=-2"><span class="db-icon-title-spam">${nb}</span></a>`;icon.after(xml);}}
dotclear.dbSpamsCount_Counter=nb;}}});};$(()=>{const icon_spam=$('#dashboard-main #icons p a[href="comments.php"]');if(icon_spam.length){dotclear.dbSpamsCount();dotclear.dbSpamsCount_Timer=setInterval(dotclear.dbSpamsCount,60*1000);}});