import{d as x,v as D,u as w,a as S,r as A,c as n,b as _,w as y,n as t,P as C,U as R,e as V,o as r,j as b,I as k,f as l,t as d,T as p,L as v,M as I,J as N,z as E,_ as B}from"./index-FX23dEwE.js";import{g as O}from"./service-B7c_TbF_.js";import{S as T,a as L}from"./SearchUtil-_PbmflM7.js";import"./request-dCC5BMJA.js";const M={class:"__container_services_tabs_distribution"},P=["onClick"],Y=["onClick"],J=x({__name:"distribution",setup($){D(u=>({"49ace5b1":t(C)}));const h=w(),i=S(),f=[{title:"servicesDomain.appName",key:"appName",dataIndex:"appName",width:140,ellipsis:!0},{title:"servicesDomain.instanceCount",key:"instanceCount",dataIndex:"instanceCount",width:100},{title:"servicesDomain.deployClusters",key:"deployClusters",dataIndex:"deployClusters",width:120},{title:"servicesDomain.registryClusters",key:"registryClusters",dataIndex:"registryClusters",width:200}];function g(u){var m,o,s,e;return O({serviceName:(m=i.params)==null?void 0:m.pathId,side:"consumer",version:((o=i.params)==null?void 0:o.version)||"",group:((s=i.params)==null?void 0:s.group)||"",providerAppName:((e=i.query)==null?void 0:e.providerAppName)||"",...u})}const c=A(new T([{label:"servicesDomain.consumerAppName",param:"keywords",placeholder:"consumerAppName",style:{width:"300px"}}],g,f));return c.onSearch(),c.tableStyle={scrollX:"100",scrollY:"367px"},R(E.SEARCH_DOMAIN,c),(u,m)=>{const o=V("a-tag");return r(),n("div",M,[_(L,{"search-domain":c},{bodyCell:y(({column:s,text:e})=>[s.dataIndex==="appName"?(r(),n("span",{key:0,class:"link",onClick:a=>t(h).push("/resources/applications/detail/"+e)},[b("b",null,[_(t(k),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),l(" "+d(e),1)])],8,P)):p("",!0),s.dataIndex==="instanceName"?(r(),n("span",{key:1,class:"link",onClick:a=>t(h).push("/resources/instances/detail/"+e)},[b("b",null,[_(t(k),{style:{"margin-bottom":"-2px"},icon:"material-symbols:attach-file-rounded"}),l(" "+d(e),1)])],8,Y)):p("",!0),s.dataIndex==="deployClusters"?(r(!0),n(v,{key:2},I(e,a=>(r(),N(o,{key:a,color:t(C)},{default:y(()=>[l(d(a),1)]),_:2},1032,["color"]))),128)):p("",!0),s.dataIndex==="registryClusters"?(r(!0),n(v,{key:3},I(e,a=>(r(),N(o,{key:a,color:t(C)},{default:y(()=>[l(d(a),1)]),_:2},1032,["color"]))),128)):p("",!0)]),_:1},8,["search-domain"])])}}}),H=B(J,[["__scopeId","data-v-73c33bbf"]]);export{H as default};
