import{_ as g}from"./index-lEMZglLp.js?v=1773287522785";import{ao as f,m as c,ip as k}from"./index-BTglIPU2.js?v=1773287522785";import{u as x}from"./useSocket-DTHwGZgK.js?v=1773287522785";import{k as w,t as b,R as S,r as h,$ as I,Z as v,a0 as T,S as B}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./data-BVsViUMm.js?v=1773287522785";const D={class:"h-400px bg-#282c34 rounded-b-4px"},Z=w({__name:"index",props:{row:{}},emits:["close"],setup(n,{emit:l}){const m=n,r=l,i=b(m,"row"),{t:o}=S(),t=h("Start pulling the image...\n"),{send:u,close:p}=x("/ws_model",{onMessage:(_,a)=>{const e=a.data;if(f(e)&&(t.value+=e,e.includes("successful")||e.includes("failed"))){const s={status:e.includes("successful"),msg:e.includes("successful")?o("Docker.Template.index_19"):o("Docker.Template.index_20")};s.status?(c.success(s.msg),r("close")):c.error(s.msg),p()}}}),d=()=>{u({model_index:"btdocker",mod_name:"compose",def_name:"get_pull_log",ws_callback:111})};return(async()=>(await k({template_id:i.value.id}),d()))(),(_,a)=>{const e=g;return I(),v("div",D,[T(e,{log:B(t)},null,8,["log"])])}}});export{Z as default};
