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