var C=(h,w,i)=>new Promise((m,x)=>{var y=a=>{try{u(i.next(a))}catch(r){x(r)}},c=a=>{try{u(i.throw(a))}catch(r){x(r)}},u=a=>a.done?m(a.value):Promise.resolve(a.value).then(y,c);u((i=i.apply(h,w)).next())});import{d as V,s as j,r as $,f as k,g as e,z as F,B as f,_ as L,D as _,o as v,h as t,F as p,j as S,G as q,L as o,M as l,H as P,I as R,n as A,N as G,O as g,R as M,l as U,q as H}from"./index-C8qz7c0N.js";import{_ as O}from"./wd-navbar.CJYSDs2G.js";import{_ as Q}from"./wd-img.r8J420F3.js";import{_ as Z}from"./wd-divider.eBrgGbsh.js";import{_ as J}from"./z-paging.Dxcf6OUf.js";import{u as K}from"./useZPaging.DLVc1w-R.js";import{r as W}from"./wallet.DtqW6x-g.js";const X="/static/icons/top-nav.png",Y=V({name:"TopChampions",__name:"topChampions",setup(h){const i=j().safeAreaInsets,m=$(null);K(m);function x(a){return{0:"#DEA90B",1:"#5E719E",2:"#D47128"}[a]||"#A5ADBD"}function y(a){return a+1}const c=$({users:{list:[]},updateTime:""});function u(a,r){return C(this,null,function*(){try{const d=yield W({size:r,page:a,type:1});c.value=d.data,m.value.complete(d.data.users.list)}catch(d){m.value.complete(!1)}})}return(a,r)=>{const d=f(_("wd-icon"),L),s=S,E=f(_("wd-navbar"),O),D=U,B=G,N=f(_("wd-img"),Q),I=f(_("wd-divider"),Z),z=f(_("z-paging"),J),T=F("layout-default-uni");return v(),k(T,null,{default:e(()=>[t(z,{ref_key:"paging",ref:m,modelValue:p(c).users.list,"onUpdate:modelValue":r[1]||(r[1]=n=>p(c).users.list=n),"use-page-scroll":"",onQuery:u},{top:e(()=>{var n;return[t(s,{class:"relative from-[#FA2B19] to-[#FE6232] bg-gradient-to-br",style:A({paddingTop:`${(n=p(i))==null?void 0:n.top}px`})},{default:e(()=>[t(E,{bordered:!1,"custom-class":"bg-transparent!"},{left:e(()=>[t(d,{name:"thin-arrow-left",color:"#fff",size:"32rpx",onClick:r[0]||(r[0]=()=>p(M)())})]),title:e(()=>[t(s,{class:"text-white font-bold text-32rpx!"},{default:e(()=>[o(l(a.$t("topChampions.title")),1)]),_:1})]),_:1}),t(D,{src:X,class:"absolute bottom-12rpx right-12rpx h-166.27rpx w-180rpx"})]),_:1},8,["style"])]}),default:e(()=>[t(s,null,{default:e(()=>[t(s,{class:"py-22rpx text-center text-22rpx text-#5C5C5C"},{default:e(()=>[o(l(p(c).updateTime||"-")+" Update ",1)]),_:1}),(v(!0),q(P,null,R(p(c).users.list,(n,b)=>(v(),k(s,{key:b,class:"relative mb-20rpx flex items-center justify-between bg-white p-24rpx"},{default:e(()=>[t(s,{class:"absolute left-24rpx top-0 h-52rpx w-48rpx flex items-center justify-center rounded-4rpx text-20rpx text-white font-bold",style:A({backgroundColor:x(b),clipPath:"polygon(0 0, 100% 0, 100% 70%, 50% 100%, 0 70%)"})},{default:e(()=>[t(s,{class:"flex flex-col items-center leading-none"},{default:e(()=>[t(B,{class:"text-16rpx"},{default:e(()=>[o(l(a.$t("topChampions.top")),1)]),_:1}),t(B,{class:"text-18rpx"},{default:e(()=>[o(l(y(b)),1)]),_:2},1024)]),_:2},1024)]),_:2},1032,["style"]),t(s,{class:"w-30% flex flex-col items-center justify-center text-center font-bold"},{default:e(()=>[t(N,{width:"80rpx",height:"80rpx","custom-class":"mb-3px",round:"",src:n.headPic},null,8,["src"]),t(s,{class:"mb-3px text-24rpx"},{default:e(()=>[o(l(n.name),1)]),_:2},1024),t(s,{class:"text-24rpx"},{default:e(()=>[o(" V"+l(n.vipLevel),1)]),_:2},1024)]),_:2},1024),t(I,{"custom-class":"h-80rpx! mx-40rpx!",color:"#A4A4A4",vertical:"",dashed:""}),t(s,{class:"grid grid-cols-2 flex-1 gap-24rpx"},{default:e(()=>[t(s,{class:"flex flex-col items-center"},{default:e(()=>[t(s,{class:"mb-3px text-22rpx text-#5B5B5B"},{default:e(()=>[o(l(a.$t("topChampions.invitedFriends")),1)]),_:1}),t(s,{class:"text-24rpx font-bold"},{default:e(()=>[o(l(p(g)(n.inviteNum,0)),1)]),_:2},1024)]),_:2},1024),t(s,{class:"flex flex-col items-center"},{default:e(()=>[t(s,{class:"mb-3px text-22rpx text-#5B5B5B"},{default:e(()=>[o(l(a.$t("topChampions.l7dEarnings")),1)]),_:1}),t(s,{class:"text-24rpx text-[var(--wot-color-theme)] font-bold"},{default:e(()=>[o(l(p(g)(n.l7DEarnings)),1)]),_:2},1024)]),_:2},1024),t(s,{class:"flex flex-col items-center"},{default:e(()=>[t(s,{class:"mb-3px text-22rpx text-#5B5B5B"},{default:e(()=>[o(l(a.$t("topChampions.teamMembers")),1)]),_:1}),t(s,{class:"text-24rpx font-bold"},{default:e(()=>[o(l(p(g)(n.teamNum,0)),1)]),_:2},1024)]),_:2},1024),t(s,{class:"flex flex-col items-center"},{default:e(()=>[t(s,{class:"mb-3px text-22rpx text-#5B5B5B"},{default:e(()=>[o(l(a.$t("topChampions.joinedGroups")),1)]),_:1}),t(s,{class:"text-24rpx font-bold"},{default:e(()=>[o(l(p(g)(n.groupNum,0)),1)]),_:2},1024)]),_:2},1024)]),_:2},1024)]),_:2},1024))),128))]),_:1})]),_:1},8,["modelValue"])]),_:1})}}}),pe=H(Y,[["__scopeId","data-v-01501e5a"]]);export{pe as default};
