import{_ as s}from"./index104.js?v=1763625242172";import{h as e,m as o,hG as a}from"./page_layout.js?v=1763625242172";import{C as t}from"./public.js?v=1763625242172";import{k as l,t as c,P as m,r as n,R as r,S as i,X as u,V as d}from"./vue.js?v=1763625242172";import"./naive.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";const p={class:"h-400px bg-#282c34 rounded-b-4px"},_=l({__name:"index",props:{row:{}},emits:["close"],setup(l,{emit:_}){const g=_,f=c(l,"row"),{t:j}=m(),x=n("Start pulling the image...\n"),{send:b,close:k}=t("/ws_model",{onMessage:(s,a)=>{const t=a.data;if(e(t)&&(x.value+=t,t.includes("successful")||t.includes("failed"))){const s={status:t.includes("successful"),msg:t.includes("successful")?j("Docker.Template.index_19"):j("Docker.Template.index_20")};s.status?(o.success(s.msg),g("close")):o.error(s.msg),k()}}});return(async()=>{await a({template_id:f.value.id}),b({model_index:"btdocker",mod_name:"compose",def_name:"get_pull_log",ws_callback:111})})(),(e,o)=>{const a=s;return r(),i("div",p,[u(a,{log:d(x)},null,8,["log"])])}}});export{_ as default};
