import{i as u,c as y}from"./app-a6cKceqE.js";import{_ as h}from"./app-BTdips4W.js";import{_ as k}from"./app-BsFusN7_.js";import{L as b,s as d}from"./app-W_y7sflh.js";import{N as f}from"./app-DCd54JMo.js";import{N as m}from"./app-CabATHnR.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-BYcXwl4U.js";import"./app-CJCAnMrx.js";import"./app-Cp3gmk2J.js";import"./app--MWyBMkA.js";import"./app-BG60hdvp.js";import"./app-CNARLpXE.js";import"./app-SxAW7vhf.js";import"./app-D5k1HLu9.js";import"./app-ysQ8KbGS.js";import"./app-BDgR0DSb.js";import"./app-Cc2zXvHs.js";import"./app-DPDEogA0.js";import"./app-aSafd0Me.js";import"./app-BHl80pFw.js";import"./app-Btbk6LWy.js";import"./app-CrkKi1Ag.js";import"./app-u5shTDG_.js";import"./app-MrAtUXr3.js";import"./app-BWSI2Z1R.js";import"./app-DxjODhok.js";import"./app-BhzV4gWo.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};
