System.register(["./page_layout-legacy.js?v=1764830988434","./index-legacy.js?v=1764830988434","./index.vue_vue_type_script_setup_true_lang-legacy5.js?v=1764830988434","./public-legacy.js?v=1764830988434","./index.vue_vue_type_script_setup_true_lang-legacy9.js?v=1764830988434","./naive-legacy.js?v=1764830988434","./vue-legacy.js?v=1764830988434","./common-legacy.js?v=1764830988434","./__commonjsHelpers__-legacy.js?v=1764830988434","./index.vue_vue_type_script_setup_true_lang-legacy6.js?v=1764830988434"],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,b,N,f,j,W,C,P,U,R,$;return{setters:[e=>{i=e.bq,o=e.a9,n=e.bH,l=e.bI,a=e.x,r=e.a,s=e.bJ},e=>{d=e._},e=>{c=e._},e=>{k=e.e,p=e.c,_=e.f,u=e.p,w=e.d,y=e.h},e=>{m=e._},e=>{g=e.aC,h=e.dS},e=>{x=e.k,v=e.P,D=e.e,b=e.W,N=e.w,f=e.a2,j=e.V,W=e.a3,C=e.U,P=e.ak,U=e.j,R=e.a4,$=e._},null,null,null],execute:function(){e("default",x({__name:"index",setup(e){const x=$(()=>r(()=>t.import("./index-legacy180.js?v=1764830988434"),void 0)),{t:S}=v(),H=i(),K=k(S("Docker.Network.index_1")),L=()=>{K.show=!0},q=()=>{u({title:S("Docker.Network.index_2"),content:()=>b("span",{class:"text-error"},[S("Docker.Network.index_13")]),onConfirm:async()=>{await s(),E()}})},z=D({page:1,pageSize:10}),{keys:B,columns:I,table:J}=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:()=>{T(e)}}]})]),O=[{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:()=>{E()},columns:[{key:"name",title:S("Docker.Network.index_3"),width:"80%",ellipsis:{tooltip:!0}}]}}],T=e=>{u({title:S("Docker.Network.index_12",[e.name]),content:()=>b("span",{class:"text-error"},[S("Docker.Network.index_14",[e.name])]),onConfirm:async()=>{await n({id:e.id}),E()}})},{loading:V,setLoading:A}=w(),E=async()=>{try{A(!0);const{message:e}=await l();J.data=a(e)?e:[],J.total=J.data.length}finally{B.value=[],A(!1)}};return N(()=>H.isRefresh,e=>{e&&(H.setRefresh(!1),E())}),E(),(e,t)=>{const i=g,o=m,n=y,l=c,a=d,r=h;return j(),f(r,{class:"p-16px"},{default:W(()=>[b(l,null,{toolsLeft:W(()=>[b(i,{type:"primary",onClick:L},{default:W(()=>[U(R(e.$t("Docker.Network.index_1")),1)]),_:1}),b(i,{onClick:q},{default:W(()=>[U(R(e.$t("Docker.Network.index_2")),1)]),_:1})]),table:W(()=>[b(n,{page:C(z),"onUpdate:page":t[1]||(t[1]=e=>P(z)?z.value=e:null),"checked-row-keys":C(B),"onUpdate:checkedRowKeys":t[2]||(t[2]=e=>P(B)?B.value=e:null),"is-page":!0,loading:C(V),columns:C(I),data:C(J).data},{pagePrefix:W(()=>[b(o,{"checked-row-keys":C(B),"onUpdate:checkedRowKeys":t[0]||(t[0]=e=>P(B)?B.value=e:null),data:C(J).data,options:O},null,8,["checked-row-keys","data"])]),_:1},8,["page","checked-row-keys","loading","columns","data"])]),_:1}),b(a,{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(x)},null,8,["show","title","component"])]),_:1})}}}))}}});
