"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[829],{7637:(t,u,n)=>{n.r(u),n.d(u,{default:()=>a});var e=n(9726),s={class:"console"};const o={props:{taskId:Number},data:function(){return{updateOutput:!0,output:null}},methods:{getOutput:function(){this.updateOutput&&axios.get("/api/gdaemon_tasks/"+this.taskId+"/output").then(function(t){this.output=t.data.output,"working"!==t.data.status&&(this.updateOutput=!1,location.reload())}.bind(this)).catch(function(t){console.log(t),this.updateOutput=!1}.bind(this))}},mounted:function(){this.getOutput(),setInterval(this.getOutput,5e3)}};const a=(0,n(6262).A)(o,[["render",function(t,u,n,o,a,i){return(0,e.uX)(),(0,e.CE)("div",null,[(0,e.Lk)("pre",s,(0,e.v_)(t.output),1)])}]])}}]);