1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[401,536],{401(e,t,s){s.d(t,{default:()=>a});var i=s(536);class a{constructor(e){e.addEventListener("click",this.executeTask.bind(this))}executeTask(e){const t=e.target,{task:s,cronKey:a}=t.dataset;t.disabled=!0,t.classList.add("loading"),fetch(`/crons/${s}`,{headers:{Accept:"application/json","X-CRON-KEY":a}}).then(e=>e.json()).then(e=>{t.disabled=!1,t.classList.remove("loading"),(e.error||"error"===e.result)&&window._alert(e.error||e.message),"success"===e.result&&(new i.default(e.message),window.setTimeout(()=>window.location.reload(),1e3))}).catch(e=>{window._alert(e)})}}},536(e,t,s){s.d(t,{default:()=>i});class i{constructor(e,t){this.text=e,t=t||{},this.params={type:t.type||"info",timeout:t.timeout||2500,sticky:t.sticky||!1,closeButton:t.closeButton||!1,loader:t.loader||!1,sound:t.sound||!1},this.init()}init(){var e=this.getNotificationsContainer(),t=this.renderNotification();e.appendChild(t),this.params.closeButton&&this.addCloseButton(),this.params.loader&&this.addLoader(),this.params.sound&&this.playSound(),this.params.sticky||window.setTimeout(function(){this.remove()}.bind(this),this.params.timeout)}getNotificationsContainer(){var e=document.querySelector(".notifications");return e||(e=this.createNotificationsContainer()),e}createNotificationsContainer(){var e=document.createElement("div");return e.classList.add("notifications"),document.body.appendChild(e),e}renderNotification(){return this.element=document.createElement("div"),this.element.classList.add("notification"),this.element.classList.add("alert"),this.element.classList.add("alert-"+this.params.type),this.element.innerHTML=this.text,this.element}addCloseButton(){var e=document.createElement("span");e.classList.add("fa"),e.classList.add("fa-close"),this.element.insertAdjacentElement("afterbegin",e),e.addEventListener("click",function(){this.remove()}.bind(this))}addLoader(){var e=document.createElement("span");e.classList.add("fa"),e.classList.add("fa-spinner"),e.classList.add("fa-spin"),this.element.insertAdjacentElement("afterbegin",e)}playSound(){var e=document.createElement("audio");e.style.display="none",e.autoplay=!0,e.innerHTML='<source src="/assets/sounds/'+this.params.sound+'.mp3" type="audio/mp3">',this.element.appendChild(e)}remove(){this.element.style.opacity=0,window.setTimeout(function(){this.element.parentNode.removeChild(this.element)}.bind(this),400)}}}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.