import{i as c,c as _}from"./app-Ba7ZqSpq.js";import{_ as p}from"./app-DhIf-bPn.js";import{T as f}from"./app-DoVkxbmA.js";import{D as h}from"./app-ZeVDYyDS.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-SC54XQDl.js";import"./app-CL60OiIv.js";import"./app-D9TrJBlL.js";import"./app-_Ovp2dOH.js";import"./app-BjSCO7rC.js";import"./app-Dhl-Bw0H.js";import"./app-B2C_dtYI.js";import"./app-COidJXl1.js";import"./app-C2mBgI5Z.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};
