const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/index179.js?v=1764233927359","js/index.vue_vue_type_script_setup_true_lang.js?v=1764233927359","js/vue.js?v=1764233927359","js/__commonjsHelpers__.js?v=1764233927359","js/naive.js?v=1764233927359","js/common.js?v=1764233927359","js/index99.js?v=1764233927359","js/page_layout.js?v=1764233927359","js/public.js?v=1764233927359","css/public.css?v=1764233927359","css/page_layout.css?v=1764233927359","css/index14.css?v=1764233927359"])))=>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=1764233927359";import{_ as r}from"./index.js?v=1764233927359";import{_ as l}from"./index.vue_vue_type_script_setup_true_lang5.js?v=1764233927359";import{e as d,c,f as p,p as k,d as _,h as m}from"./public.js?v=1764233927359";import{_ as w}from"./index.vue_vue_type_script_setup_true_lang12.js?v=1764233927359";import{aC as u,dS as h}from"./naive.js?v=1764233927359";import{k as y,P as x,e as f,W as g,w as D,a2 as v,V as N,a3 as b,U as j,ak as W,j as C,a4 as P,_ as U}from"./vue.js?v=1764233927359";import"./common.js?v=1764233927359";import"./__commonjsHelpers__.js?v=1764233927359";import"./index.vue_vue_type_script_setup_true_lang6.js?v=1764233927359";const R=y({__name:"index",setup(y){const R=U(()=>s(()=>import("./index179.js?v=1764233927359"),__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=()=>{k({title:L("Docker.Network.index_2"),content:()=>g("span",{class:"text-error"},[L("Docker.Network.index_13")]),onConfirm:async()=>{await n(),q()}})},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:()=>{q()},columns:[{key:"name",title:L("Docker.Network.index_3"),width:"80%",ellipsis:{tooltip:!0}}]}}],B=e=>{k({title:L("Docker.Network.index_12",[e.name]),content:()=>g("span",{class:"text-error"},[L("Docker.Network.index_14",[e.name])]),onConfirm:async()=>{await i({id:e.id}),q()}})},{loading:H,setLoading:I}=_(),q=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 D(()=>E.isRefresh,e=>{e&&(E.setRefresh(!1),q())}),q(),(e,t)=>{const i=u,o=w,a=m,s=l,n=r,d=h;return N(),v(d,{class:"p-16px"},{default:b(()=>[g(s,null,{toolsLeft:b(()=>[g(i,{type:"primary",onClick:O},{default:b(()=>[C(P(e.$t("Docker.Network.index_1")),1)]),_:1}),g(i,{onClick:S},{default:b(()=>[C(P(e.$t("Docker.Network.index_2")),1)]),_:1})]),table:b(()=>[g(a,{page:j(T),"onUpdate:page":t[1]||(t[1]=e=>W(T)?T.value=e:null),"checked-row-keys":j(V),"onUpdate:checkedRowKeys":t[2]||(t[2]=e=>W(V)?V.value=e:null),"is-page":!0,loading:j(H),columns:j($),data:j(z).data},{pagePrefix:b(()=>[g(o,{"checked-row-keys":j(V),"onUpdate:checkedRowKeys":t[0]||(t[0]=e=>W(V)?V.value=e:null),data:j(z).data,options:A},null,8,["checked-row-keys","data"])]),_:1},8,["page","checked-row-keys","loading","columns","data"])]),_:1}),g(n,{show:j(K).show,"onUpdate:show":t[3]||(t[3]=e=>j(K).show=e),title:j(K).title,width:600,"min-height":276,footer:!0,component:j(R)},null,8,["show","title","component"])]),_:1})}}});export{R as default};
