const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/index179.js?v=1763625242172","js/index.vue_vue_type_script_setup_true_lang.js?v=1763625242172","js/vue.js?v=1763625242172","js/__commonjsHelpers__.js?v=1763625242172","js/naive.js?v=1763625242172","js/common.js?v=1763625242172","js/index99.js?v=1763625242172","js/page_layout.js?v=1763625242172","js/public.js?v=1763625242172","css/public.css?v=1763625242172","css/page_layout.css?v=1763625242172","css/index14.css?v=1763625242172"])))=>i.map(i=>d[i]);
import{bU as e,a9 as t,c9 as i,ca as o,x as a,a as s,cb as n}from"./page_layout.js?v=1763625242172";import{_ as r}from"./index.js?v=1763625242172";import{_ as l}from"./index.vue_vue_type_script_setup_true_lang5.js?v=1763625242172";import{e as d,c,f as p,d as k,p as _,h as m}from"./public.js?v=1763625242172";import{_ as w}from"./index.vue_vue_type_script_setup_true_lang12.js?v=1763625242172";import{dS as u,aC as h}from"./naive.js?v=1763625242172";import{k as y,P as x,e as f,w as g,R as D,a2 as v,a3 as N,X as b,j,a4 as W,V as C,aj as P,_ as R}from"./vue.js?v=1763625242172";import"./common.js?v=1763625242172";import"./__commonjsHelpers__.js?v=1763625242172";import"./index.vue_vue_type_script_setup_true_lang6.js?v=1763625242172";const U=y({__name:"index",setup(y){const U=R((()=>s((()=>import("./index179.js?v=1763625242172")),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])))),{t:L}=x(),E=e(),K=d(L("Docker.Network.index_1")),O=()=>{K.show=!0},S=()=>{_({title:L("Docker.Network.index_2"),content:()=>b("span",{class:"text-error"},[L("Docker.Network.index_13")]),onConfirm:async()=>{await n(),X()}})},T=f({page:1,pageSize:10}),{keys:V,columns:$,table:z}=c([{type:"selection",width:40},{key:"name",title:L("Docker.Network.index_3"),width:"14%",minWidth:120,ellipsis:{tooltip:!0}},{key:"driver",title:L("Docker.Network.index_4"),minWidth:100,ellipsis:{tooltip:!0},render:e=>e.driver||"--"},{key:"subnet",title:L("Docker.Network.index_5"),minWidth:120,ellipsis:{tooltip:!0},render:e=>e.subnet||"--"},{key:"gateway",title:L("Docker.Network.index_6"),minWidth:120,ellipsis:{tooltip:!0},render:e=>e.gateway||"--"},{key:"subnetv6",title:L("Docker.Network.index_16"),minWidth:120,ellipsis:{tooltip:!0},render:e=>e.subnetv6||"--"},{key:"gatewayv6",title:L("Docker.Network.index_17"),minWidth:120,ellipsis:{tooltip:!0},render:e=>e.gatewayv6||"--"},{key:"labels",title:L("Docker.Network.index_7"),minWidth:120,width:"16%",ellipsis:{tooltip:{arrowPointToCenter:!0}},render:e=>{let t="";return e.labels&&(t=Object.entries(e.labels).map((([e,t])=>"".concat(e,": ").concat(t))).join(", ")),t||"--"}},{key:"time",title:L("Docker.Network.index_8"),width:"12%",minWidth:140,render:e=>t(e.time)},p({width:70,options:e=>[{label:L("Public.Btn.Del"),onClick:()=>{B(e)}}]})]),A=[{key:"del",type:"confirm",label:"Please choose del",confirm:{title:L("Docker.Network.index_10"),desc:L("Docker.Network.index_11"),api:e=>i({id:e.id},!1),done:()=>{X()},columns:[{key:"name",title:L("Docker.Network.index_3"),width:"80%",ellipsis:{tooltip:!0}}]}}],B=e=>{_({title:L("Docker.Network.index_12",[e.name]),content:()=>b("span",{class:"text-error"},[L("Docker.Network.index_14",[e.name])]),onConfirm:async()=>{await i({id:e.id}),X()}})},{loading:H,setLoading:I}=k(),X=async()=>{try{I(!0);const{message:e}=await o();z.data=a(e)?e:[],z.total=z.data.length}finally{V.value=[],I(!1)}};return g((()=>E.isRefresh),(e=>{e&&(E.setRefresh(!1),X())})),X(),(e,t)=>{const i=h,o=w,a=m,s=l,n=r,d=u;return D(),v(d,{class:"p-16px"},{default:N((()=>[b(s,null,{toolsLeft:N((()=>[b(i,{type:"primary",onClick:O},{default:N((()=>[j(W(e.$t("Docker.Network.index_1")),1)])),_:1}),b(i,{onClick:S},{default:N((()=>[j(W(e.$t("Docker.Network.index_2")),1)])),_:1})])),table:N((()=>[b(a,{page:C(T),"onUpdate:page":t[1]||(t[1]=e=>P(T)?T.value=e:null),"checked-row-keys":C(V),"onUpdate:checkedRowKeys":t[2]||(t[2]=e=>P(V)?V.value=e:null),"is-page":!0,loading:C(H),columns:C($),data:C(z).data},{pagePrefix:N((()=>[b(o,{"checked-row-keys":C(V),"onUpdate:checkedRowKeys":t[0]||(t[0]=e=>P(V)?V.value=e:null),data:C(z).data,options:A},null,8,["checked-row-keys","data"])])),_:1},8,["page","checked-row-keys","loading","columns","data"])])),_:1}),b(n,{show:C(K).show,"onUpdate:show":t[3]||(t[3]=e=>C(K).show=e),title:C(K).title,width:600,"min-height":276,footer:!0,component:C(U)},null,8,["show","title","component"])])),_:1})}}});export{U as default};
