import{i as u,c as y}from"./app-Ba7ZqSpq.js";import{_ as h}from"./app-CJzth4gJ.js";import{_ as k}from"./app-DZcB_Zcx.js";import{L as b,s as d}from"./app-Crd12MWL.js";import{N as f}from"./app-CL60OiIv.js";import{N as m}from"./app-B2C_dtYI.js";import{o as t,g as o,b as s,w as i,u as a,h as n,F as v,t as r,f as c,a as p,n as _}from"./app-SC54XQDl.js";import"./app-DHsI_tns.js";import"./app-BZGObKCm.js";import"./app-BPIIxVwk.js";import"./app-PPG0ZS4d.js";import"./app-DgoEZtNT.js";import"./app-Ch8j4za4.js";import"./app-Dw0jKdCD.js";import"./app-DnXuoh8P.js";import"./app-CCkWSX4Q.js";import"./app-C8HFiBxn.js";import"./app-BjSCO7rC.js";import"./app-g-bJrEAS.js";import"./app-DZaelcLs.js";import"./app-D_RBJHM6.js";import"./app-CmrRgGIA.js";import"./app-DyP4Nide.js";import"./app-D9TrJBlL.js";import"./app-_Ovp2dOH.js";import"./app-Dhl-Bw0H.js";import"./app-COidJXl1.js";function g(){u(this)}const x={key:0,class:"comment"},N={key:0},z={key:1},B={key:1},C={key:0},S={key:1,class:"disabled"},T={key:2},U={key:0,class:"small red"},V={key:1,class:"small red"},w={key:0},E={key:1,class:"disabled"},ne={__name:"index",setup(F){const l=y(new g);return(P,$)=>(t(),o(v,null,[s(h,{"active-tab":"index"}),s(f,{secondary:""},{tabs:i(()=>[s(m,{href:"/servers/packages",active:a(l).type=="",name:"可用流量包"},null,8,["active"]),s(m,{href:"/servers/packages?type=all",active:a(l).type=="all",name:"所有流量包"},null,8,["active"])]),_:1}),a(l).userPackages.length==0?(t(),o("p",x,[a(l).type==""?(t(),o("span",N,"暂时还没有可用的流量包。")):n("",!0),a(l).type=="all"?(t(),o("span",z,"暂时还没有流量包。")):n("",!0)])):n("",!0),a(l).userPackages.length>0?(t(),o("div",B,[s(b,{items:a(l).userPackages},{default:i(()=>[s(a(d),{header:"流量包",frozen:"",class:"normal-value-column"},{body:i(({data:e})=>[e.package!=null?(t(),o("span",C,r(e.package.size)+r(e.package.unit.toUpperCase().replace(/(.)B/,"$1iB")),1)):(t(),o("span",S,"[已删除]")),e.isUsedAll||e.isExpired?(t(),o("div",T,[e.isUsedAll?(t(),o("span",U,"已用尽")):e.isExpired?(t(),o("span",V,"已过期")):n("",!0)])):n("",!0)]),_:1}),s(a(d),{header:"区域",class:"value-column"},{body:i(({data:e})=>[e.region!=null?(t(),o("span",w,r(e.region.name),1)):(t(),o("span",E,"[已删除]"))]),_:1}),s(a(d),{header:"有效期",class:"value-column"},{body:i(({data:e})=>[c(r(e.periodCount)+r(e.periodUnitName),1)]),_:1}),s(a(d),{header:"开始日期",class:"date-column"},{body:i(({data:e})=>[c(r(e.dayFrom),1)]),_:1}),s(a(d),{header:"结束日期",class:"date-column"},{body:i(({data:e})=>[c(r(e.dayTo),1)]),_:1}),s(a(d),{header:"已用流量",class:"value-column"},{body:i(({data:e})=>[p("span",{class:_({disabled:e.usedSize=="0B"})},r(e.usedSize),3)]),_:1}),s(a(d),{header:"剩余流量",class:"value-column"},{body:i(({data:e})=>[p("span",{class:_({disabled:e.availableSize=="0B"})},r(e.availableSize),3)]),_:1}),s(a(d),{header:"购买时间",class:"datetime-column"},{body:i(({data:e})=>[c(r(e.createdTime),1)]),_:1})]),_:1},8,["items"]),s(k,{data:a(l).page},null,8,["data"])])):n("",!0)],64))}};export{ne as default};
