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