import{_ as e}from"./index245.js?v=1764233927359";import{m as a,gk as s,x as l}from"./page_layout.js?v=1764233927359";import{_ as o}from"./index.vue_vue_type_script_setup_true_lang21.js?v=1764233927359";import{k as t,P as i,r as n,x as r,R as p,V as u,W as d,S as m,U as _,ak as c,a2 as v,an as f,n as x}from"./vue.js?v=1764233927359";import"./naive.js?v=1764233927359";import"./common.js?v=1764233927359";import"./__commonjsHelpers__.js?v=1764233927359";import"./public.js?v=1764233927359";import"./index.js?v=1764233927359";import"./index178.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang.js?v=1764233927359";const g={class:"flex h-full"},j={class:"flex-1 p-16px overflow-hidden"},k=t({__name:"index",props:{id:{default:""}},emits:["close"],setup(t,{emit:k}){const y=t,h=k,{t:C}=i(),b=n(y.id),w=r([]),D=n(),P=()=>{x(()=>{var e;null==(e=D.value)||e.getContent()})};return(async()=>{const e=a.loading(C("Public.Api.Load",[C("Docker.Container.log.index_27")]));try{const{message:e}=await s();l(e)&&e.length>0?(w.value=e.map(e=>({key:e.id,label:e.name})),b.value||(b.value=e[0].id)):(a.error(C("Docker.Container.log.index_28")),h("close"))}finally{e.close()}})(),(a,s)=>{const l=e;return u(),p("div",g,[d(l,{value:_(b),"onUpdate:value":[s[0]||(s[0]=e=>c(b)?b.value=e:null),P],class:"w-auto h-full","pane-padding":"0px",data:_(w),onClickSelf:P},null,8,["value","data"]),m("div",j,[_(b)?(u(),v(o,{key:0,ref_key:"logRef",ref:D,id:_(b)},null,8,["id"])):f("",!0)])])}}});export{k as default};
