import{i as c,c as _}from"./app-BT68AfZ-.js";import{_ as p}from"./app-CdmRJDoZ.js";import{T as f}from"./app-BkWUIifj.js";import{D as h}from"./app-DNL2FXPk.js";import{o as a,g as n,b as i,u as e,w as l,F as d,a as s,t as r,h as m,n as x,f as u,D as b}from"./app-DA7OTM4Q.js";import"./app-scFtFqL8.js";import"./app-DREBJ-ou.js";import"./app-CWBL8eTX.js";import"./app-CnGe5nlE.js";import"./app-OC5wWJiS.js";import"./app-BX4pd6U-.js";import"./app-Bhreb6Cm.js";import"./app-CQwVTjAx.js";function g(){c(this)}const k=s("td",{class:"title"},"域名",-1),y=s("td",null,"状态",-1),C={key:0,class:"red"},N=s("td",null,"所属分组",-1),T={key:0,class:"label-group"},D=["href"],V={key:1,class:"disabled"},H={__name:"index",setup(v){const t=_(new g);return(w,B)=>(a(),n(d,null,[i(p,{ctx:e(t),activeTab:"index"},null,8,["ctx"]),i(h,null,{default:l(()=>[s("tbody",null,[s("tr",null,[k,s("td",null,r(e(t).domain.name),1)]),s("tr",null,[y,s("td",null,[e(t).domain.isOn?m("",!0):(a(),n("span",C,"已停用")),e(t).domain.isOn?(a(),n("span",{key:1,class:x({green:e(t).domain.status=="verified",red:e(t).domain.status=="rejected"||e(t).domain.status=="forbidden"})},r(e(t).domain.statusName),3)):m("",!0),u("     ")])]),s("tr",null,[N,s("td",null,[e(t).domain.groups.length>0?(a(),n("div",T,[(a(!0),n(d,null,b(e(t).domain.groups,o=>(a(),n("a",{href:"/ns/domains?userId="+o.userId+"&groupId="+o.id},[i(f,{outlined:"",class:"blue"},{default:l(()=>[u(r(o.name),1)]),_:2},1024)],8,D))),256))])):(a(),n("span",V,"暂时没有分组"))])])])]),_:1})],64))}};export{H as default};
