System.register(["./page_layout-legacy.js?v=1753954525509","./index-legacy.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy4.js?v=1753954525509","./public-legacy.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy11.js?v=1753954525509","./naive-legacy.js?v=1753954525509","./vue-legacy.js?v=1753954525509","./common-legacy.js?v=1753954525509","./__commonjsHelpers__-legacy.js?v=1753954525509","./index.vue_vue_type_script_setup_true_lang-legacy7.js?v=1753954525509"],(function(e,t){"use strict";var i,o,n,l,a,r,s,d,c,k,p,_,u,w,y,g,h,m,x,v,D,b,N,f,j,W,C,P,R,U,$;return{setters:[e=>{i=e.bg,o=e.X,n=e.bP,l=e.bQ,a=e.w,r=e.a,s=e.bR},e=>{d=e._},e=>{c=e._},e=>{k=e.e,p=e.b,_=e.h,u=e.c,w=e.q,y=e.f},e=>{g=e._},e=>{h=e.cD,m=e.ay},e=>{x=e.k,v=e.P,D=e.e,b=e.w,N=e.U,f=e.a1,j=e.a2,W=e.Q,C=e.j,P=e.a3,R=e.X,U=e.ah,$=e._},null,null,null],execute:function(){e("default",x({__name:"index",setup(e){const x=$((()=>r((()=>t.import("./index-legacy173.js?v=1753954525509")),void 0))),{t:K}=v(),L=i(),Q=k(K("Docker.Network.index_1")),S=()=>{Q.show=!0},X=()=>{w({title:K("Docker.Network.index_2"),content:()=>W("span",{class:"text-error"},[K("Docker.Network.index_13")]),onConfirm:async()=>{await s(),F()}})},q=D({page:1,pageSize:10}),{keys:z,columns:B,table:H}=p([{type:"selection",width:40},{key:"name",title:K("Docker.Network.index_3"),width:"14%",minWidth:120,ellipsis:{tooltip:!0}},{key:"driver",title:K("Docker.Network.index_4"),minWidth:100,ellipsis:{tooltip:!0},render:e=>e.driver||"--"},{key:"subnet",title:K("Docker.Network.index_5"),minWidth:120,ellipsis:{tooltip:!0},render:e=>e.subnet||"--"},{key:"gateway",title:K("Docker.Network.index_6"),minWidth:120,ellipsis:{tooltip:!0},render:e=>e.gateway||"--"},{key:"subnetv6",title:K("Docker.Network.index_16"),minWidth:120,ellipsis:{tooltip:!0},render:e=>e.subnetv6||"--"},{key:"gatewayv6",title:K("Docker.Network.index_17"),minWidth:120,ellipsis:{tooltip:!0},render:e=>e.gatewayv6||"--"},{key:"labels",title:K("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])=>`${e}: ${t}`)).join(", ")),t||"--"}},{key:"time",title:K("Docker.Network.index_8"),width:"12%",minWidth:140,render:e=>o(e.time)},_({width:70,options:e=>[{label:K("Public.Btn.Del"),onClick:()=>{T(e)}}]})]),O=[{key:"del",type:"confirm",label:"Please choose del",confirm:{title:K("Docker.Network.index_10"),desc:K("Docker.Network.index_11"),api:e=>n({id:e.id},!1),done:()=>{F()},columns:[{key:"name",title:K("Docker.Network.index_3"),width:"80%",ellipsis:{tooltip:!0}}]}}],T=e=>{w({title:K("Docker.Network.index_12",[e.name]),content:()=>W("span",{class:"text-error"},[K("Docker.Network.index_14",[e.name])]),onConfirm:async()=>{await n({id:e.id}),F()}})},{loading:A,setLoading:E}=u(),F=async()=>{try{E(!0);const{message:e}=await l();H.data=a(e)?e:[],H.total=H.data.length}finally{z.value=[],E(!1)}};return b((()=>L.isRefresh),(e=>{e&&(L.setRefresh(!1),F())})),F(),(e,t)=>{const i=m,o=g,n=y,l=c,a=d,r=h;return N(),f(r,{class:"p-16px"},{default:j((()=>[W(l,null,{toolsLeft:j((()=>[W(i,{type:"primary",onClick:S},{default:j((()=>[C(P(e.$t("Docker.Network.index_1")),1)])),_:1}),W(i,{onClick:X},{default:j((()=>[C(P(e.$t("Docker.Network.index_2")),1)])),_:1})])),table:j((()=>[W(n,{page:R(q),"onUpdate:page":t[1]||(t[1]=e=>U(q)?q.value=e:null),"checked-row-keys":R(z),"onUpdate:checkedRowKeys":t[2]||(t[2]=e=>U(z)?z.value=e:null),"is-page":!0,loading:R(A),columns:R(B),data:R(H).data},{pagePrefix:j((()=>[W(o,{"checked-row-keys":R(z),"onUpdate:checkedRowKeys":t[0]||(t[0]=e=>U(z)?z.value=e:null),data:R(H).data,options:O},null,8,["checked-row-keys","data"])])),_:1},8,["page","checked-row-keys","loading","columns","data"])])),_:1}),W(a,{show:R(Q).show,"onUpdate:show":t[3]||(t[3]=e=>R(Q).show=e),title:R(Q).title,width:600,"min-height":276,footer:!0,component:R(x)},null,8,["show","title","component"])])),_:1})}}}))}}}));
