!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"),o=[].slice.call(t.querySelectorAll("span.j-links-link"));t&&t.classList.add(e),o.length&&o.forEach((function(e){e.innerHTML=Joomla.sanitizeHtml(n)}))};Joomla.request({url:e.ajaxUrl,method:"GET",data:"",perform:!0,onSuccess:function(e){var t=JSON.parse(e);Array.isArray(t)?0===t.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">'+t.length+"</span>")):n("danger",Joomla.Text._("PLG_QUICKICON_EXTENSIONUPDATE_ERROR"))},onError:function(){n("danger",Joomla.Text._("PLG_QUICKICON_EXTENSIONUPDATE_ERROR"))}})}},window.addEventListener("load",(function(){setTimeout(e,330)}))}();