import{r as p,u as e,o as s,g as a,f as n,h as r,t as u}from"./app-DA7OTM4Q.js";const _={key:0},m={key:0,class:"small red"},y={key:0},f={key:1,class:"small red"},h={key:0},k={key:2,class:"small red"},T={key:0},N={__name:"ServerTrafficLimitStatusViewer",props:["modelValue"],setup(d){const c=d,i=function(o){switch(o){case"traffic":return"流量";case"request":return"请求数";case"websocketConnections":return"Websocket连接数"}return"流量"},{status:t,targetTypeName:l}=function(){let o="流量";return c.modelValue!=null&&(o=i(c.modelValue.targetType)),{status:p(c.modelValue),targetTypeName:p(o)}}();return(o,g)=>e(t)!=null?(s(),a("span",_,[e(t).dateType=="day"?(s(),a("span",m,[n("已达到"),e(t).planId>0?(s(),a("span",y,"套餐")):r("",!0),n("当日"+u(e(l))+"限制",1)])):r("",!0),e(t).dateType=="month"?(s(),a("span",f,[n("已达到"),e(t).planId>0?(s(),a("span",h,"套餐")):r("",!0),n("当月"+u(e(l))+"限制",1)])):r("",!0),e(t).dateType=="total"?(s(),a("span",k,[n("已达到"),e(t).planId>0?(s(),a("span",T,"套餐")):r("",!0),n("总体"+u(e(l))+"限制",1)])):r("",!0)])):r("",!0)}};export{N as _};
