import{aP as e,E as a,aC as l,_ as s}from"./utils-lib.js?v=1761009159";import{B as t}from"./index115.js?v=1761009159";import{c as i,r as o,q as n,v as r,x as c,e as d,B as v,z as u,A as m,y as f,F as p,b0 as b,K as w,N as h,Q as _,bO as g,bN as x,aC as y}from"./base-lib.js?v=1761009159";import"./__commonjsHelpers__.js?v=1761009159";import"./ace.js?v=1761009159";const k={class:"container-dialog docker-container-detail"},j={class:"Table pl-[2rem] w-full h-[50rem] overflow-auto"},C={class:"item"},E={class:"flex-1"},P={class:"item"},N={class:"flex-1"},O={class:"item"},I={class:"flex-1"},S={class:"item"},T={class:"flex-1"},V={class:"inline-block whitespace-pre-line w-[40rem]"},z={class:"h-[54rem] overflow-auto"},B=s(i({__name:"container-detail",setup(s){const{refs:{currentConDetail:i}}=e(),B={mode:"ace/mode/json",theme:a.value?"ace/theme/clouds_midnight":"ace/theme/monokai",wrap:!0,showInvisibles:!1,showFoldWidgets:!1,useSoftTabs:!0,tabSize:2,showPrintMargin:!1,readOnly:!0,fontSize:"12px"},D=o([]),F=o([]),H=o("view");return n(()=>{var e;Object.entries((null==(e=i.value.NetworkSettings)?void 0:e.Ports)||{}).forEach(e=>{let a="";e[1]&&(a+="".concat(e[1][0].HostPort,"--\x3e").concat(e[0]," "),D.value.push(a))}),(()=>{var e;null==(e=i.value.Config)||e.Env.forEach(e=>{const a=e.split("=");F.value.push({key:a[0],value:a[1]})})})()}),(e,a)=>{const s=g,o=x,n=y,M=t,q=l;return r(),c("div",k,[d(q,{type:"card",modelValue:f(H),"onUpdate:modelValue":a[0]||(a[0]=e=>_(H)?H.value=e:null)},{default:v(()=>[d(n,{label:"视图展示",name:"view"},{default:v(()=>{var e,l,t,n;return[u("div",j,[a[6]||(a[6]=u("div",{class:"title text-extraLarge mb-[1rem]"},"容器详情",-1)),u("div",C,[a[1]||(a[1]=u("div",{class:"w-[15%]"},"镜像",-1)),u("div",E,m(f(i).Image||""),1)]),u("div",P,[a[2]||(a[2]=u("div",{class:"w-[15%]"},"端口配置",-1)),u("div",N,[(r(!0),c(p,null,b(f(D),e=>(r(),c("div",{key:e,class:"port"},m(e),1))),128))])]),u("div",O,[a[3]||(a[3]=u("div",{class:"w-[15%]"},"CMD",-1)),u("div",I,m((null==(l=null==(e=f(i).Config)?void 0:e.Cmd)?void 0:l.join(""))||""),1)]),u("div",S,[a[4]||(a[4]=u("div",{class:"w-[15%]"},"ENTERYPOINT",-1)),u("div",T,m((null==(t=f(i).Config)?void 0:t.Entrypoint)?null==(n=f(i).Config)?void 0:n.Entrypoint[0]:""),1)]),u("div",{class:w(["item pt-[2rem]",f(F).length>8?"!items-start":""])},[a[5]||(a[5]=u("div",{class:"w-[10%] sticky left-0 top-0"},"ENV",-1)),d(o,{column:1,border:"",class:"w-full"},{default:v(()=>[(r(!0),c(p,null,b(f(F),e=>(r(),h(s,{key:e.key,label:e.key},{default:v(()=>[u("span",V,m(e.value),1)]),_:2},1032,["label"]))),128))]),_:1})],2)])]}),_:1}),d(n,{label:"文件展示",name:"file"},{default:v(()=>[u("div",z,[d(M,{filePath:f(i).container_info,editorOption:B},null,8,["filePath"])])]),_:1})]),_:1},8,["modelValue"])])}}}),[["__scopeId","data-v-8348c513"]]);export{B as default};
