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