System.register(["./index-legacy-DQdImDha.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BWPgT9-g.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-IFFYkvEY.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BtQUnlS_.js?v=1773287522785","./useLoading-legacy-IiShPpjk.js?v=1773287522785","./useTableData-legacy-3kc3lnk4.js?v=1773287522785","./useTableColumns-legacy-DP6ypvsQ.js?v=1773287522785","./naive-ui-legacy-BW82sq8q.js?v=1773287522785","./vue-core-legacy-Cn1vuJ3s.js?v=1773287522785","./prismjs-legacy-BN0FEcG9.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-BQ2Kqzbl.js?v=1773287522785","./data-legacy-B9xdUIE5.js?v=1773287522785","./index-legacy-hh1mlQOF.js?v=1773287522785","./copy-legacy-CoXPjkKf.js?v=1773287522785","./index-legacy-DgZ0-E4f.js?v=1773287522785","./index.vue_vue_type_script_setup_true_lang-legacy-B9P08_gB.js?v=1773287522785","./index-legacy-BFkuWVH1.js?v=1773287522785"],(function(e,t){"use strict";var i,l,n,a,o,s,r,d,c,u,k,p,_,y,w,g,x,h,m,v,j,b,D,N,f,W,C,P,R,$,U;return{setters:[e=>{i=e.bm,l=e.v,n=e.w,a=e.bE,o=e.ar,s=e.bF,r=e.n,d=e.x,c=e.P,u=e.bG},e=>{k=e._},e=>{p=e._},e=>{_=e._},e=>{y=e.u},e=>{w=e.u},e=>{g=e.u},e=>{x=e.B,h=e.a2},e=>{m=e.k,v=e.R,j=e.e,b=e.a0,D=e.w,N=e.$,f=e.a8,W=e.a9,C=e.S,P=e.X,R=e.j,$=e.aa,U=e.a3},null,null,null,null,null,null,null,null],execute:function(){e("default",m({__name:"index",setup(e){const m=U((()=>c((()=>t.import("./index-legacy-Baftkn1n.js?v=1773287522785")),void 0))),{t:L}=v(),S=i(),T=l(L("Docker.Network.index_1")),B=()=>{T.show=!0},K=()=>{o({title:L("Docker.Network.index_2"),content:()=>b("span",{class:"text-error"},[L("Docker.Network.index_13")]),onConfirm:async()=>{await u(),A()}})},z=j({page:1,pageSize:10}),{keys:E,columns:F,table:G}=w([{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])=>`${e}: ${t}`)).join(", ")),t||"--"}},{key:"time",title:L("Docker.Network.index_8"),width:"12%",minWidth:140,render:e=>n(e.time)},g({width:70,options:e=>[{label:L("Public.Btn.Del"),onClick:()=>{X(e)}}]})]),O=[{key:"del",type:"confirm",label:"Please choose del",confirm:{title:L("Docker.Network.index_10"),desc:L("Docker.Network.index_11"),api:e=>a({id:e.id},!1),done:()=>{A()},columns:[{key:"name",title:L("Docker.Network.index_3"),width:"80%",ellipsis:{tooltip:!0}}]}}],X=e=>{o({title:L("Docker.Network.index_12",[e.name]),content:()=>b("span",{class:"text-error"},[L("Docker.Network.index_14",[e.name])]),onConfirm:async()=>{await a({id:e.id}),A()}})},{loading:Y,setLoading:q}=y(),A=async()=>{try{q(!0);const{message:e}=await s();G.data=r(e)?e:[],G.total=G.data.length}finally{E.value=[],q(!1)}};return D((()=>S.isRefresh),(e=>{e&&(S.setRefresh(!1),A())})),A(),(e,t)=>{const i=x,l=_,n=p,a=k,o=d,s=h;return N(),f(s,{class:"p-16px"},{default:W((()=>[b(a,null,{toolsLeft:W((()=>[b(i,{type:"primary",onClick:B},{default:W((()=>[R($(e.$t("Docker.Network.index_1")),1)])),_:1}),b(i,{onClick:K},{default:W((()=>[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(E),"onUpdate:checkedRowKeys":t[2]||(t[2]=e=>P(E)?E.value=e:null),"is-page":!0,loading:C(Y),columns:C(F),data:C(G).data},{pagePrefix:W((()=>[b(l,{"checked-row-keys":C(E),"onUpdate:checkedRowKeys":t[0]||(t[0]=e=>P(E)?E.value=e:null),data:C(G).data,options:O},null,8,["checked-row-keys","data"])])),_:1},8,["page","checked-row-keys","loading","columns","data"])])),_:1}),b(o,{show:C(T).show,"onUpdate:show":t[3]||(t[3]=e=>C(T).show=e),title:C(T).title,width:600,"min-height":276,footer:!0,component:C(m)},null,8,["show","title","component"])])),_:1})}}}))}}}));
