const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/index-DfTapQ--.js?v=1773287522785","js/index.vue_vue_type_script_setup_true_lang-D8O2mMsP.js?v=1773287522785","js/vue-core-DJjvd5ZC.js?v=1773287522785","js/prismjs-BZPoR7_J.js?v=1773287522785","css/prismjs-D-3FhBe_.css?v=1773287522785","js/naive-ui--dJnpVcV.js?v=1773287522785","js/index-CZps0rIN.js?v=1773287522785","js/index-BTglIPU2.js?v=1773287522785","css/index-DEM1fxGq.css?v=1773287522785","css/index-CdMsogou.css?v=1773287522785","js/check-CNel7fTH.js?v=1773287522785"])))=>i.map(i=>d[i]);
import{bm as B,v as L,w as S,bE as f,ar as y,bF as T,n as U,x as j,P as E,bG as O}from"./index-BTglIPU2.js?v=1773287522785";import{_ as V}from"./index.vue_vue_type_script_setup_true_lang-DgjjuUjT.js?v=1773287522785";import{_ as F}from"./index.vue_vue_type_script_setup_true_lang-BeO8Hyma.js?v=1773287522785";import{_ as I}from"./index.vue_vue_type_script_setup_true_lang-HxsqzSKU.js?v=1773287522785";import{u as K}from"./useLoading-CZ2gSAW7.js?v=1773287522785";import{u as M}from"./useTableData-BmkIKQ_R.js?v=1773287522785";import{u as z}from"./useTableColumns-DDeyYvje.js?v=1773287522785";import{B as G,a2 as H}from"./naive-ui--dJnpVcV.js?v=1773287522785";import{k as X,R as q,e as J,a0 as i,w as Q,$ as Y,a8 as Z,a9 as s,S as n,X as _,j as h,aa as b,a3 as ee}from"./vue-core-DJjvd5ZC.js?v=1773287522785";import"./prismjs-BZPoR7_J.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-B7YvCBmY.js?v=1773287522785";import"./data-BVsViUMm.js?v=1773287522785";import"./index-S15tYq5l.js?v=1773287522785";import"./copy-D-wIKr0q.js?v=1773287522785";import"./index-DIKmrNCq.js?v=1773287522785";import"./index.vue_vue_type_script_setup_true_lang-DeTfbeeM.js?v=1773287522785";import"./index-Cg6fMjw6.js?v=1773287522785";const he=X({__name:"index",setup(te){const x=ee(()=>E(()=>import("./index-DfTapQ--.js?v=1773287522785"),__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]))),{t}=q(),u=B(),c=L(t("Docker.Network.index_1")),g=()=>{c.show=!0},D=()=>{y({title:t("Docker.Network.index_2"),content:()=>i("span",{class:"text-error"},[t("Docker.Network.index_13")]),onConfirm:async()=>{await O(),d()}})},m=J({page:1,pageSize:10}),{keys:a,columns:N,table:l}=M([{type:"selection",width:40},{key:"name",title:t("Docker.Network.index_3"),width:"14%",minWidth:120,ellipsis:{tooltip:!0}},{key:"driver",title:t("Docker.Network.index_4"),minWidth:100,ellipsis:{tooltip:!0},render:e=>e.driver||"--"},{key:"subnet",title:t("Docker.Network.index_5"),minWidth:120,ellipsis:{tooltip:!0},render:e=>e.subnet||"--"},{key:"gateway",title:t("Docker.Network.index_6"),minWidth:120,ellipsis:{tooltip:!0},render:e=>e.gateway||"--"},{key:"subnetv6",title:t("Docker.Network.index_16"),minWidth:120,ellipsis:{tooltip:!0},render:e=>e.subnetv6||"--"},{key:"gatewayv6",title:t("Docker.Network.index_17"),minWidth:120,ellipsis:{tooltip:!0},render:e=>e.gatewayv6||"--"},{key:"labels",title:t("Docker.Network.index_7"),minWidth:120,width:"16%",ellipsis:{tooltip:{arrowPointToCenter:!0}},render:e=>{let o="";return e.labels&&(o=Object.entries(e.labels).map(([p,k])=>"".concat(p,": ").concat(k)).join(", ")),o||"--"}},{key:"time",title:t("Docker.Network.index_8"),width:"12%",minWidth:140,render:e=>S(e.time)},z({width:70,options:e=>[{label:t("Public.Btn.Del"),onClick:()=>{C(e)}}]})]),v=[{key:"del",type:"confirm",label:"Please choose del",confirm:{title:t("Docker.Network.index_10"),desc:t("Docker.Network.index_11"),api:e=>f({id:e.id},!1),done:()=>{d()},columns:[{key:"name",title:t("Docker.Network.index_3"),width:"80%",ellipsis:{tooltip:!0}}]}}],C=e=>{y({title:t("Docker.Network.index_12",[e.name]),content:()=>i("span",{class:"text-error"},[t("Docker.Network.index_14",[e.name])]),onConfirm:async()=>{await f({id:e.id}),d()}})},{loading:W,setLoading:w}=K(),d=async()=>{try{w(!0);const{message:e}=await T();l.data=U(e)?e:[],l.total=l.data.length}finally{a.value=[],w(!1)}};return Q(()=>u.isRefresh,e=>{e&&(u.setRefresh(!1),d())}),d(),(e,o)=>{const p=G,k=I,$=F,P=V,R=j,A=H;return Y(),Z(A,{class:"p-16px"},{default:s(()=>[i(P,null,{toolsLeft:s(()=>[i(p,{type:"primary",onClick:g},{default:s(()=>[h(b(e.$t("Docker.Network.index_1")),1)]),_:1}),i(p,{onClick:D},{default:s(()=>[h(b(e.$t("Docker.Network.index_2")),1)]),_:1})]),table:s(()=>[i($,{page:n(m),"onUpdate:page":o[1]||(o[1]=r=>_(m)?m.value=r:null),"checked-row-keys":n(a),"onUpdate:checkedRowKeys":o[2]||(o[2]=r=>_(a)?a.value=r:null),"is-page":!0,loading:n(W),columns:n(N),data:n(l).data},{pagePrefix:s(()=>[i(k,{"checked-row-keys":n(a),"onUpdate:checkedRowKeys":o[0]||(o[0]=r=>_(a)?a.value=r:null),data:n(l).data,options:v},null,8,["checked-row-keys","data"])]),_:1},8,["page","checked-row-keys","loading","columns","data"])]),_:1}),i(R,{show:n(c).show,"onUpdate:show":o[3]||(o[3]=r=>n(c).show=r),title:n(c).title,width:600,"min-height":276,footer:!0,component:n(x)},null,8,["show","title","component"])]),_:1})}}});export{he as default};
