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