import{r as e}from"./rolldown-runtime-BM3Ffeng.js";import{A as t,D as n,E as r,I as i,N as a,P as o,Pt as s,Xt as c,Z as l,et as u,k as d,r as f}from"./vue-vendor-DMUmTARL.js";import{t as p}from"./runtime-env-hwxvm7KE.js";import{t as m}from"./docker-meta-D8eDqkqY.js";import{t as h}from"./RuntimeMountTable-CRdEqYOT.js";var g={key:0,id:`mounts`,class:`scroll-mt-6 rounded-2xl border border-zinc-200/70 bg-white p-5 dark:border-zinc-800 dark:bg-zinc-900 sm:p-6`},_={class:`mb-4 flex items-center justify-between`},v={class:`flex items-center gap-2 text-sm font-semibold text-zinc-900 dark:text-zinc-100`},y={class:`rounded bg-blue-100 px-1.5 py-0.5 text-[10px] font-medium text-blue-700 dark:bg-blue-500/15 dark:text-blue-400`},b=i({__name:`RuntimeMountsSection`,setup(e,{expose:i}){let b=p(),{env:x,loading:S}=f(b),C=m(),{meta:w,loading:T}=f(C),E=r(()=>!!x.value?.inContainer),D=r(()=>S.value&&!x.value||T.value&&!w.value),O=r(()=>{let e=x.value?.runtime||`unknown`;return{docker:`Docker`,podman:`Podman`,kubernetes:`Kubernetes`,containerd:`containerd`,lxc:`LXC`,unknown:`未知`}[e]||e});return i({refresh:async()=>{await Promise.allSettled([b.fetch(),C.fetch()])}}),l(()=>{b.ensureLoaded(),C.ensureLoaded()}),(e,r)=>E.value?(u(),t(`section`,g,[n(`div`,_,[n(`h2`,v,[r[0]||=a(` 挂载映射 `,-1),n(`span`,y,c(O.value),1)]),r[1]||=n(`span`,{class:`text-[11px] text-zinc-400`},`容器卷映射一览`,-1)]),o(h,{flat:``,env:s(x),"docker-meta":s(w),loading:D.value},null,8,[`env`,`docker-meta`,`loading`])])):d(``,!0)}}),x=e({default:()=>S}),S=b;export{x as n,S as t};