!function(){"use strict";var e;e=function(){if(Joomla.getOptions("js-extensions-update")){var e=Joomla.getOptions("js-extensions-update"),n=function(e,n){var t=document.getElementById("plg_quickicon_extensionupdate"),a=[].slice.call(t.querySelectorAll("span.j-links-link"));t&&t.classList.add(e),a.length&&a.forEach((function(e){e.innerHTML=Joomla.sanitizeHtml(n)}))};Joomla.enqueueRequest({url:e.ajaxUrl,method:"GET",promise:!0}).then((function(e){var t=e.responseText,a=JSON.parse(t);Array.isArray(a)?0===a.length?n("success",Joomla.Text._("PLG_QUICKICON_EXTENSIONUPDATE_UPTODATE")):n("danger",Joomla.Text._("PLG_QUICKICON_EXTENSIONUPDATE_UPDATEFOUND").replace("%s",'<span class="badge text-dark bg-light">'+a.length+"</span>")):n("danger",Joomla.Text._("PLG_QUICKICON_EXTENSIONUPDATE_ERROR"))})).catch((function(){n("danger",Joomla.Text._("PLG_QUICKICON_EXTENSIONUPDATE_ERROR"))}))}},window.addEventListener("load",(function(){setTimeout(e,330)}))}();