import{_ as k}from"./index-BGYvyLDv.js?v=1773287522785";import{m as c,g_ as v,n as x}from"./index-BTglIPU2.js?v=1773287522785";import{_ as y}from"./index.vue_vue_type_script_setup_true_lang-CvXX-Kf9.js?v=1773287522785";import{k as C,R as h,r as m,x as L,$ as d,Z as R,a0 as b,S as s,X as w,_ as B,a8 as N,ak as V,n as $}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import"./naive-ui--dJnpVcV.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./index-BDlR_GtR.js?v=1773287522785";import"./useLoading-CZ2gSAW7.js?v=1773287522785";import"./index-DIKmrNCq.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785";const A={class:"flex h-full"},D={class:"flex-1 p-16px overflow-hidden"},z=C({__name:"index",props:{id:{default:""}},emits:["close"],setup(p,{emit:u}){const f=p,_=u,{t:n}=h(),e=m(f.id),l=L([]),i=m(),r=()=>{$(()=>{var a;(a=i.value)==null||a.getContent()})};return(async()=>{const a=c.loading(n("Public.Api.Load",[n("Docker.Container.log.index_27")]));try{const{message:o}=await v();x(o)&&o.length>0?(l.value=o.map(t=>({key:t.id,label:t.name})),e.value||(e.value=o[0].id)):(c.error(n("Docker.Container.log.index_28")),_("close"))}finally{a.close()}})(),(a,o)=>{const t=k;return d(),R("div",A,[b(t,{value:s(e),"onUpdate:value":[o[0]||(o[0]=g=>w(e)?e.value=g:null),r],class:"w-auto h-full","pane-padding":"0px",data:s(l),onClickSelf:r},null,8,["value","data"]),B("div",D,[s(e)?(d(),N(y,{key:0,ref_key:"logRef",ref:i,id:s(e)},null,8,["id"])):V("",!0)])])}}});export{z as default};
