"use strict";(globalThis.webpackChunkinfinity_hitab_client=globalThis.webpackChunkinfinity_hitab_client||[]).push([[3968],{13968:(t,i,o)=>{o.r(i),o.d(i,{default:()=>k});var e=o(8929),l=o(57268),r=o(29445),s=o(94209),n=o(6594),a=o(63477),c=o(45069);const p={class:"bill-history h-full py-[40px]"},d={class:"hi-scroll mt-[20px] h-[calc(100%-20px)] px-[70px]"},b={class:"w-full border-[1px] border-color-b2"},x={class:"font-ali-55 text-color-t3"},u={key:0,class:"h-[40px] border-t-[1px] border-color-b2"},g=[(0,l._)("td",{class:"text-center",colspan:"3"},"No billing history",-1)],h=["onClick"],_={class:"px-[12px] text-left text-color-t2"},y={class:"px-[12px] text-right"},f={class:"px-[12px] text-right"},S={class:"inline-flex items-center"},U=(0,l._)("i",{class:"iconfont icon-more_icon ml-[12px] text-color-t3 opacity-0 transition-opacity group-hover:opacity-100"},null,-1),k=(0,l.aZ)({__name:"bill-history",setup(t){const i=(0,c.o)(),o=(0,n.t)(),k=async()=>{await o.getSubRecord()};return(t,n)=>{const c=e.Z,m=(0,l.up)("van-list");return(0,l.wg)(),(0,l.iD)("section",p,[(0,l.Wm)(c,{class:"px-[70px]",title:"Billing history",onBack:n[0]||(n[0]=t=>(0,r.SU)(i).settingHomeView="subInfo")}),(0,l._)("div",d,[(0,l.Wm)(m,{loading:(0,r.SU)(o).subListMeta.loading,"onUpdate:loading":n[1]||(n[1]=t=>(0,r.SU)(o).subListMeta.loading=t),error:(0,r.SU)(o).subListMeta.error,"onUpdate:error":n[2]||(n[2]=t=>(0,r.SU)(o).subListMeta.error=t),"loading-text":"loading...","error-text":"Request error, please reload",finished:(0,r.SU)(o).subListMeta.finished,onLoad:k},{default:(0,l.w5)((()=>[(0,l._)("table",b,[(0,l._)("tbody",x,[(0,r.SU)(o).subListMeta.finished&&0===(0,r.SU)(o).billingList.length?((0,l.wg)(),(0,l.iD)("tr",u,g)):((0,l.wg)(!0),(0,l.iD)(l.HY,{key:1},(0,l.Ko)((0,r.SU)(o).billingList,(t=>((0,l.wg)(),(0,l.iD)("tr",{key:t.id,class:"group h-[40px] cursor-pointer border-t-[1px] border-color-b2 text-center",onClick:i=>{return o=t,void(0,a.Yo)(o.invoiceUrl,!0);var o}},[(0,l._)("td",_,(0,s.toDisplayString)(t.plan),1),(0,l._)("td",y,(0,s.toDisplayString)(t.amount),1),(0,l._)("td",f,[(0,l._)("div",S,[(0,l._)("span",null,(0,s.toDisplayString)(t._time),1),U])])],8,h)))),128))])])])),_:1},8,["loading","error","finished"])])])}}})}}]);