"use strict";(globalThis.webpackChunkinfinity_hitab_client=globalThis.webpackChunkinfinity_hitab_client||[]).push([[3974],{93974:(t,i,e)=>{e.r(i),e.d(i,{default:()=>y});var s=e(8929),a=e(57268),r=e(29445),o=e(94209),l=e(6594),n=e(45069);const c={class:"invite-record h-full py-[40px]"},p={class:"hi-scroll mt-[20px] h-[calc(100%-20px)] px-[70px]"},d={class:"w-full border-[1px] border-color-b2"},x=(0,a._)("thead",{class:"bg-color-b2 bg-opacity-40 text-color-t3"},[(0,a._)("tr",{class:"h-[32px] text-left"},[(0,a._)("th",{class:"px-[12px]"},"User"),(0,a._)("th",{class:"px-[12px]"},"Reward"),(0,a._)("th",{class:"px-[12px]"},"Time")])],-1),g={class:"font-ali-55 text-color-t3"},h={key:0,class:"h-[40px] border-t-[1px] border-color-b2"},b=[(0,a._)("td",{class:"text-center",colspan:"3"},"No invitation record",-1)],_={class:"px-[12px]"},v={class:"px-[12px]"},u={class:"px-[12px]"},y=(0,a.aZ)({__name:"invite-record",setup(t){const i=(0,n.o)(),e=(0,l.t)(),y=async()=>{await e.getInviteList(e.inviteListMeta.pageNo+1)};return(t,l)=>{const n=s.Z,L=(0,a.up)("van-list");return(0,a.wg)(),(0,a.iD)("section",c,[(0,a.Wm)(n,{class:"px-[70px]",title:"Invitation record",onBack:l[0]||(l[0]=t=>(0,r.SU)(i).settingHomeView="backup")}),(0,a._)("div",p,[(0,a.Wm)(L,{loading:(0,r.SU)(e).inviteListMeta.loading,"onUpdate:loading":l[1]||(l[1]=t=>(0,r.SU)(e).inviteListMeta.loading=t),error:(0,r.SU)(e).inviteListMeta.error,"onUpdate:error":l[2]||(l[2]=t=>(0,r.SU)(e).inviteListMeta.error=t),"loading-text":"loading...","error-text":"Request error, please reload",finished:(0,r.SU)(e).inviteListMeta.finished,onLoad:y},{default:(0,a.w5)((()=>[(0,a._)("table",d,[x,(0,a._)("tbody",g,[(0,r.SU)(e).inviteListMeta.finished&&0===(0,r.SU)(e).inviteListList.length?((0,a.wg)(),(0,a.iD)("tr",h,b)):((0,a.wg)(!0),(0,a.iD)(a.HY,{key:1},(0,a.Ko)((0,r.SU)(e).inviteListList,((t,i)=>((0,a.wg)(),(0,a.iD)("tr",{key:i,class:"h-[40px] border-t-[1px] border-color-b2"},[(0,a._)("td",_,(0,o.toDisplayString)(t.email),1),(0,a._)("td",v,(0,o.toDisplayString)("+"+t.reward+"day"),1),(0,a._)("td",u,(0,o.toDisplayString)(t._time),1)])))),128))])])])),_:1},8,["loading","error","finished"])])])}}})}}]);