import{i as _,c as h}from"./app-Ba7ZqSpq.js";import{o as e,g as l,a,u as n,f as d,h as o,t as u,F as r,D as i,n as c}from"./app-SC54XQDl.js";function p(){_(this)}const P=a("h5",null,"我的套餐",-1),y={class:"mt-4"},m={key:0,class:"grey"},g={key:0},k={key:1},f={key:0,class:"red"},x={key:1,class:"green"},v=a("h5",{class:"group-header"},"所有套餐",-1),R={class:"ui table selectable celled"},C=a("th",{class:"three wide"},[d("功能  "),a("br"),d("  ")],-1),T=a("br",null,null,-1),b={key:0},D={key:1},L=a("br",null,null,-1),B={key:2},E={key:3},Y=a("td",null,"全球线路",-1),I={key:0,class:"green"},N=a("td",null,"国内省份线路",-1),S={key:0,class:"green"},V=a("td",null,"ISP运营商线路",-1),w={key:0,class:"green"},F=a("td",null,"健康检查",-1),z={key:0,class:"green"},H=a("td",null,"最小TTL",-1),j={key:0},q={key:1,class:"grey"},A=a("td",null,"域名数量限制",-1),G={key:0},J={key:1,class:"grey"},K=a("td",null,"单域名记录数限制",-1),M={key:0},O={key:1,class:"grey"},Q=a("td",null,"单记录负载均衡条数限制",-1),U={key:0},W={key:1,class:"grey"},X=a("td",null,"自定义线路数量限制",-1),Z={key:0},$={key:1,class:"grey"},ss={key:0},ns=a("td",null,null,-1),es=["href"],os={__name:"index",setup(ls){const s=h(new p);return(ts,as)=>(e(),l(r,null,[P,a("div",y,[n(s).userPlan==null?(e(),l("span",m,[d("你尚未开通套餐服务"),n(s).plans.length>0?(e(),l("span",g,"，请选择下方套餐购买")):o("",!0),d("。")])):o("",!0),n(s).userPlan!=null?(e(),l("div",k,[n(s).userPlan.isExpired?(e(),l("span",f,"当前套餐："+u(n(s).userPlan.plan.name)+"   状态：已于"+u(n(s).userPlan.dayTo)+"过期。",1)):o("",!0),n(s).userPlan.isExpired?o("",!0):(e(),l("span",x,"当前套餐："+u(n(s).userPlan.plan.name)+"，有效期至："+u(n(s).userPlan.dayTo),1))])):o("",!0)]),v,a("table",R,[a("thead",null,[a("tr",null,[C,(e(!0),l(r,null,i(n(s).plans,t=>(e(),l("th",{class:c({active:n(s).userPlan!=null&&n(s).userPlan.plan!=null&&t.id==n(s).userPlan.plan.id})},[d(u(t.name),1),T,t.id>0?(e(),l("span",b,u(t.monthlyPrice)+"元/月",1)):(e(),l("span",D," ")),L,t.id>0?(e(),l("span",B,u(t.yearlyPrice)+"元/年",1)):(e(),l("span",E," "))],2))),256))])]),a("tr",null,[Y,(e(!0),l(r,null,i(n(s).plans,t=>(e(),l("td",{class:c({active:n(s).userPlan!=null&&n(s).userPlan.plan!=null&&t.id==n(s).userPlan.plan.id})},[t.config.supportCountryRoutes?(e(),l("span",I,"Y")):o("",!0)],2))),256))]),a("tr",null,[N,(e(!0),l(r,null,i(n(s).plans,t=>(e(),l("td",{class:c({active:n(s).userPlan!=null&&n(s).userPlan.plan!=null&&t.id==n(s).userPlan.plan.id})},[t.config.supportChinaProvinceRoutes?(e(),l("span",S,"Y")):o("",!0)],2))),256))]),a("tr",null,[V,(e(!0),l(r,null,i(n(s).plans,t=>(e(),l("td",{class:c({active:n(s).userPlan!=null&&n(s).userPlan.plan!=null&&t.id==n(s).userPlan.plan.id})},[t.config.supportISPRoutes?(e(),l("span",w,"Y")):o("",!0)],2))),256))]),a("tr",null,[F,(e(!0),l(r,null,i(n(s).plans,t=>(e(),l("td",{class:c({active:n(s).userPlan!=null&&n(s).userPlan.plan!=null&&t.id==n(s).userPlan.plan.id})},[t.config.supportHealthCheck?(e(),l("span",z,"Y")):o("",!0)],2))),256))]),a("tr",null,[H,(e(!0),l(r,null,i(n(s).plans,t=>(e(),l("td",{class:c({active:n(s).userPlan!=null&&n(s).userPlan.plan!=null&&t.id==n(s).userPlan.plan.id})},[t.config.minTTL>0?(e(),l("span",j,u(t.config.minTTL)+"秒",1)):(e(),l("span",q,"不限"))],2))),256))]),a("tr",null,[A,(e(!0),l(r,null,i(n(s).plans,t=>(e(),l("td",{class:c({active:n(s).userPlan!=null&&n(s).userPlan.plan!=null&&t.id==n(s).userPlan.plan.id})},[t.config.maxDomains>0?(e(),l("span",G,u(t.config.maxDomains)+"个",1)):(e(),l("span",J,"不限"))],2))),256))]),a("tr",null,[K,(e(!0),l(r,null,i(n(s).plans,t=>(e(),l("td",{class:c({active:n(s).userPlan!=null&&n(s).userPlan.plan!=null&&t.id==n(s).userPlan.plan.id})},[t.config.maxRecordsPerDomain>0?(e(),l("span",M,u(t.config.maxRecordsPerDomain)+"个",1)):(e(),l("span",O,"不限"))],2))),256))]),a("tr",null,[Q,(e(!0),l(r,null,i(n(s).plans,t=>(e(),l("td",{class:c({active:n(s).userPlan!=null&&n(s).userPlan.plan!=null&&t.id==n(s).userPlan.plan.id})},[t.config.maxLoadBalanceRecordsPerRecord>0?(e(),l("span",U,u(t.config.maxLoadBalanceRecordsPerRecord)+"个",1)):(e(),l("span",W,"不限"))],2))),256))]),a("tr",null,[X,(e(!0),l(r,null,i(n(s).plans,t=>(e(),l("td",{class:c({active:n(s).userPlan!=null&&n(s).userPlan.plan!=null&&t.id==n(s).userPlan.plan.id})},[t.config.maxCustomRoutes>0?(e(),l("span",Z,u(t.config.maxCustomRoutes)+"个",1)):(e(),l("span",$,"不限"))],2))),256))]),n(s).userPlan==null||n(s).userPlan.isExpired?(e(),l("tr",ss,[ns,(e(!0),l(r,null,i(n(s).plans,t=>(e(),l("td",null,[t.id>0?(e(),l("a",{key:0,href:"/ns/plans/buy?planId="+t.id},"购买",8,es)):o("",!0)]))),256))])):o("",!0)])],64))}};export{os as default};
