18 lines
29 KiB
JavaScript
18 lines
29 KiB
JavaScript
import{L as V,W as Ae,_ as Pe,k as Qe,P as Je,r as v,o as Ve,a as qe,c as f,l as h,ac as Ye,b as e,t as o,q as l,G as W,m,ah as Ke,v as we,D as r,n as P,Y as x,Q as D,S as Q,an as Xe,aZ as Ze,j as u,F as C,x as I,a_ as _e,y as J,a7 as et,E as tt}from"./index-CIAVq8iD-1776148658686.js";import{_ as B}from"./coin-Dqu2_ND9-1776148658686.js";import{a as ee,b as xe,s as it}from"./toast-aIWCznBB-1776148658686.js";import{u as nt}from"./index-Dy7GXZRC-1776148658686.js";import{c as ot}from"./appConnector-B5Pbaops-1776148658686.js";import{g as st}from"./imagePaths-Bi1Bwe4Z-1776148658686.js";import{p as lt}from"./imagePreloader-C_QM-Nv8-1776148658686.js";import{h as $,a as te}from"./imageHandler-DstQGL3Z-1776148658686.js";import{f as at}from"./rewardFormatter-Dyjg93my-1776148658686.js";import{g as rt,a as dt,b as ct}from"./activity-Dn8ZkLM2-1776148658686.js";import{B as ke}from"./BackgroundLayer-DJYogygx-1776148658686.js";import{G as vt}from"./GeneralHeader-ClI1i1Ud-1776148658686.js";import{i as p}from"./itemCenter-DveKthYv-1776148658686.js";import{m as yt}from"./MaskLayer-CMaJd7Gb-1776148658686.js";const ut=async()=>{try{return await V("/activity/invite/user/my/invite/code")}catch(y){throw console.error("Failed to fetch get my invite code:",y),console.error("error:"+y.response.errorMsg),y}},gt=async()=>{try{return await V("/activity/invite/user/my-inviter-info")}catch(y){throw console.error("Failed to fetch get my inviter:",y),console.error("error:"+y.response.errorMsg),y}},ft=async y=>{try{return await Ae("/activity/invite/user/bind/invite/code",y)}catch(_){throw console.error("Failed to fetch bind invite code:",_),console.error("error:"+_.response.errorMsg),_}},ht=async()=>{try{return await V("/activity/invite/user/income/statistics")}catch(y){throw console.error("Failed to fetch get my invite income:",y),console.error("error:"+y.response.errorMsg),y}},mt=async()=>{try{return await V("/activity/invite/user/valid/invite/users")}catch(y){throw console.error("Failed to fetch get my invite users:",y),console.error("error:"+y.response.errorMsg),y}},be=async y=>{try{return await Ae("/props-activity/reward/client/map/config-info",y)}catch(_){throw console.error("Failed to fetch get binding user rewards:",_),console.error("error:"+_.response.errorMsg),_}},pt={class:"fullPage"},wt={key:0,class:"loading-container"},_t={key:1,style:{width:"100vw","min-height":"100vh",overflow:"hidden",position:"relative"}},xt={style:{position:"absolute",top:"0",left:"0",width:"100%"}},kt={class:"leftBt"},bt={style:{"padding-top":"130vw",display:"flex","flex-direction":"column",gap:"2vw"}},At={style:{width:"90%",height:"12vw",display:"flex","justify-content":"center","align-items":"center",gap:"4px"}},Ct={style:{"font-weight":"600","font-size":"0.9em"}},It={style:{"font-weight":"590","font-size":"1.1em"}},Bt=["src"],jt={style:{flex:"1","min-height":"0",width:"95%",display:"flex","justify-content":"center","align-items":"center"}},Ut={style:{"font-size":"0.7em","font-weight":"510",color:"#e9e9e9"}},Rt={style:{"min-height":"22.07vw",display:"flex","justify-content":"space-around","align-items":"center"}},St={style:{width:"40%",position:"relative","min-height":"max-content"}},zt=["src"],Mt=["src"],Et={style:{width:"40%",position:"relative"}},Tt=["src"],Dt=["src"],$t={style:{display:"flex","flex-direction":"column",gap:"2vw","padding-bottom":"37vw"}},Gt={style:{"align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"space-around",padding:"2vw"}},Lt={style:{"font-weight":"700","font-size":"0.9em"}},Ft={style:{"font-weight":"600","font-size":"1.1em"}},Nt={style:{"align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"space-around",padding:"2vw"}},Ot={style:{"font-weight":"700","font-size":"0.9em"}},Ht={style:{"font-weight":"600","font-size":"1.1em"}},Wt={style:{"align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"space-around",padding:"2vw"}},Pt={style:{"font-weight":"700","font-size":"0.9em"}},Qt={style:{display:"flex","align-items":"center"}},Jt={src:B,alt:"",style:{display:"block",width:"1.5em"}},Vt={style:{"font-weight":"600","font-size":"1.1em","padding-top":"1vw"}},qt={style:{"align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"space-around",padding:"2vw"}},Yt={style:{"font-weight":"700","font-size":"0.9em"}},Kt={style:{display:"flex","align-items":"center"}},Xt={src:B,alt:"",style:{display:"block",width:"1.5em"}},Zt={style:{"font-weight":"600","font-size":"1.1em","padding-top":"1vw"}},ei=["src"],ti={style:{position:"relative"}},ii={style:{width:"100vw","min-height":"15vw",display:"flex","justify-content":"center","align-items":"center",gap:"13vw"}},ni=["src"],oi=["src"],si={style:{flex:"1","min-height":"0",width:"100%",display:"flex","flex-direction":"column",gap:"4px"}},li={class:"overflow-y-auto",style:{display:"flex","flex-direction":"column",width:"100%",gap:"2vw"}},ai={style:{flex:"1","min-width":"0",display:"flex","justify-content":"space-around","align-items":"center",gap:"8px"}},ri={style:{color:"#ffe601","font-weight":"700"}},di=["src"],ci={style:{flex:"1","min-width":"0","align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"space-around"}},vi={style:{color:"#fff","font-size":"0.9em","font-weight":"860",overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"}},yi={style:{"font-size":"0.8em",color:"#fff","font-weight":"590"}},ui={style:{width:"auto","min-width":"0",display:"flex","align-items":"center"}},gi={src:B,alt:"",style:{display:"block",width:"1.5em","aspect-ratio":"1/1","object-fit":"cover"}},fi={style:{"font-size":"0.9em","font-weight":"700"}},hi={style:{width:"100%","min-width":"0",display:"flex","align-items":"center",gap:"2vw"}},mi={class:"timeBox"},pi={class:"timeText",style:{}},wi={class:"timeText",style:{}},_i={class:"timeText",style:{}},xi={class:"timeText",style:{}},ki=["src"],bi={style:{flex:"1","min-height":"0",width:"100%",display:"flex","flex-direction":"column",gap:"4px"}},Ai={class:"overflow-y-auto",style:{display:"flex","flex-direction":"column",width:"100%",gap:"2vw"}},Ci={style:{flex:"1","min-width":"0",display:"flex","justify-content":"space-around","align-items":"center",gap:"8px"}},Ii={style:{color:"#ffe601","font-weight":"700"}},Bi=["src"],ji={style:{flex:"1","min-width":"0","align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"space-around"}},Ui={style:{color:"#fff","font-size":"0.9em","font-weight":"860",overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"}},Ri={style:{"font-size":"0.8em",color:"#fff","font-weight":"590"}},Si={style:{width:"auto","min-width":"0",display:"flex","align-items":"center"}},zi={src:B,alt:"",style:{display:"block",width:"1.5em","aspect-ratio":"1/1","object-fit":"cover"}},Mi={style:{"font-size":"0.9em","font-weight":"700"}},Ei=["src"],Ti={style:{flex:"1","min-width":"0",display:"flex","justify-content":"space-around","align-items":"center",gap:"8px"}},Di={style:{color:"#ffe601","font-weight":"700"}},$i=["src"],Gi={style:{flex:"1","min-width":"0",display:"flex","flex-direction":"column"}},Li={style:{color:"#fff","font-weight":"860",overflow:"hidden","white-space":"nowrap","text-overflow":"ellipsis"},class:"UserNickname"},Fi={style:{width:"auto","min-width":"0",display:"flex","align-items":"center"}},Ni={src:B,alt:"",style:{display:"block",width:"1.5em","aspect-ratio":"1/1","object-fit":"cover"}},Oi={style:{"font-weight":"700"}},Hi=["src"],Wi={class:"bindingUserCode"},Pi=["src"],Qi={style:{"align-self":"stretch",display:"flex","flex-direction":"column"}},Ji={style:{width:"100%","min-width":"0","aspect-ratio":"1/1",display:"flex","justify-content":"center","align-items":"center"}},Vi=["src","onError"],qi={style:{width:"100%","min-width":"0",flex:"1",display:"flex","justify-content":"center","align-items":"center"}},Yi={style:{width:"100%",display:"flex","flex-direction":"column",gap:"18vw"}},Ki={style:{width:"100%",height:"30vw",display:"flex",gap:"12vw"}},Xi={style:{flex:"1","min-width":"0",height:"100%",display:"flex","flex-direction":"column"}},Zi={style:{width:"100%","min-width":"0","aspect-ratio":"1/1",display:"flex","justify-content":"center","align-items":"center"}},en=["src","onError"],tn={style:{width:"100%","min-width":"0",flex:"1",display:"flex","justify-content":"center","align-items":"center"}},nn={style:{width:"95%",height:"37vw",display:"grid","grid-template-columns":"repeat(2, 1fr)",gap:"5vw"}},on={style:{"align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"space-around",padding:"2vw"}},sn={style:{"font-weight":"700","font-size":"0.9em"}},ln={style:{"font-weight":"600","font-size":"1.1em"}},an={style:{"align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"space-around",padding:"2vw"}},rn={style:{"font-weight":"700","font-size":"0.9em"}},dn={style:{"font-weight":"600","font-size":"1.1em"}},cn={style:{"align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"space-around",padding:"2vw"}},vn={style:{"font-weight":"700","font-size":"0.9em"}},yn={style:{display:"flex","align-items":"center"}},un={src:B,alt:"",style:{display:"block",width:"1.5em"}},gn={style:{"font-weight":"600","font-size":"1.1em","padding-top":"1vw"}},fn={style:{"align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"space-around",padding:"2vw"}},hn={style:{"font-weight":"700","font-size":"0.9em"}},mn={style:{display:"flex","align-items":"center"}},pn={src:B,alt:"",style:{display:"block",width:"1.5em"}},wn={style:{"font-weight":"600","font-size":"1.1em","padding-top":"1vw"}},_n={style:{flex:"1","min-height":"0",width:"100%","border-radius":"8px",background:"rgba(194, 174, 232, 0.2)","backdrop-filter":"blur(1px)",padding:"12px",display:"flex","flex-direction":"column",gap:"4px"}},xn={style:{width:"100%",display:"flex","align-items":"center"}},kn={style:{flex:"1","font-weight":"590","font-size":"0.8em","text-align":"center"}},bn={style:{flex:"1","font-weight":"590",display:"flex","justify-content":"space-between","align-items":"center"}},An={style:{"font-weight":"590","font-size":"0.8em","text-align":"center"}},Cn={style:{flex:"1","font-weight":"590","text-align":"center","font-size":"0.8em"}},In={class:"overflow-y-auto",style:{"align-self":"stretch",width:"100%"}},Bn={style:{width:"100%",display:"flex","align-items":"center"}},jn={style:{flex:"1","font-weight":"590","font-size":"0.8em","text-align":"center"}},Un={style:{flex:"1","font-weight":"590",display:"flex","justify-content":"space-between","align-items":"center"}},Rn={style:{"font-weight":"590","font-size":"0.8em"}},Sn={style:{flex:"1",display:"flex","justify-content":"center","align-items":"center",gap:"4px"}},zn={src:B,alt:"",style:{display:"block",width:"1em"}},Mn={style:{color:"#ffb627","font-size":"1em","font-weight":"590"}},En={style:{flex:"1","min-height":"0",display:"flex",gap:"11vw"}},Tn={style:{flex:"1","align-self":"stretch",display:"flex","flex-direction":"column",gap:"2vw"}},Dn={style:{width:"100%","aspect-ratio":"1/1",display:"flex","justify-content":"center","align-items":"center"}},$n=["src","onError"],Gn={style:{flex:"1",display:"flex","justify-content":"center","align-items":"center"}},Ln={style:{"font-size":"1.3em",color:"#fff","font-weight":"600"}},Fn={style:{position:"fixed",top:"50vh",display:"flex","justify-content":"center",width:"100vw"}},Nn={style:{padding:"12px","border-radius":"8px",background:"rgba(0, 0, 0, 0.4)","font-weight":"600"}},On={__name:"inviteNewUser",setup(y){const _=new URL("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAACXBIWXMAACE4AAAhOAFFljFgAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAADxSURBVHgB7dvBDYJAFEXRHyuhBEuzA+3EWAmlUIJ2MDJCNATy5m1I1H9PwoZhww3Mgh8iAAAAAACllG48joGlOUxfPoZ6LvCOM5S1PrITcV4is1acuhY7O8SXmveX+gp14rJbZGQ8OdUlMiKOQByBOAJxBOIIxBGIIxBHII5AHIE4AnEE4gjEEYgjEKeBOMJ488d/irPHN+lHYz33JKIqywHflnNkZm7SRCJSA5EMRDIQyUAkA5EMRDIQyUAkA5EMRDIQyUAkA5EMRDIQyWBGOkVmRqR7ZNeKFJCRroHJRqS+8DvUWpkGk10AAAAAwO96AiOznp1YXpZWAAAAAElFTkSuQmCC",import.meta.url).href,{t:c}=Qe(),Ce=Je(),S=Q(()=>Ce.selectedLang?.type||"en"),a=i=>S.value==="en"?i:`${i}_${S.value}`,n=i=>st("invitation/inviteNewUser/",i),{copy:Ie,isSupported:Be}=nt(),ie=v(!0),z=v(""),M=v({}),j=v({}),b=v({}),ne=v([]),oe=v([]),se=v(Array(3)),le=v([]),q=v([]),E=v({}),Y=v([]),ae=Q(()=>{if(T.value)return Y.value;if(U.value)return q.value}),w=v("income"),T=v(!0),U=v(!1),L=v(!1),re=i=>{switch(i){case"rankWeek":U.value=!0,T.value=!1;break;case"rankAll":U.value=!1,T.value=!0;break}},F=v(!1),G=v(!1),N=v(!1),K=v(!1),je=Q(()=>F.value||G.value||N.value||L.value),O=()=>{F.value=!1,G.value=!1,N.value=!1,L.value=!1},de=v(0),ce=v(0),ve=v(0),ye=v(0);let H=null;const ue=Q(()=>!j.value||Object.keys(j.value).length===0?null:j.value.inviterInfo?.userId?"privateChat":!j.value.myInfo?.expired&&!j.value.inviterInfo?"enterCode":null),X=v((()=>{const i=new Date,t=new Date(i.getTime()),k=i.getTime()+i.getTimezoneOffset()*6e4,d=new Date(k+8*36e5),s=d.getDay(),A=d.getHours(),g=s===0?6:s-1;let R;return g===0?A>=5?R=7:R=0:R=7-g,t.setDate(t.getDate()+R),t.setHours(5,0,0,0),t.getTime()})()),Z=i=>i<10?`0${i}`:i,ge=()=>{const i=Date.now();let t=X.value-i;t<=0&&(pe(),X.value+=7*864e5,t=X.value-i);const k=Math.floor(t/1e3);de.value=Math.floor(k/(24*3600)),ce.value=Z(Math.floor(k%(24*3600)/3600)),ve.value=Z(Math.floor(k%3600/60)),ye.value=Z(Math.floor(k%60))},Ue=()=>{ge(),H=setInterval(ge,1e3)},fe=i=>["GOLD","DIAMOND","GIFT","FRAGMENTS"].includes(i.type)?i.content:i.type==="DOLLARS"?`$${i.content}`:`${i.quantity}${c("day_unit")}`,he=()=>{if(!M.value?.inviteCode){ee(c("please_wait_loading"));return}Ze("shareDrawer:"+c("share_invitation_message",{code:M.value?.inviteCode}))},Re=i=>{if(Be.value)Ie(i);else{const t=document.createElement("textarea");t.value=i,document.body.appendChild(t),t.select(),document.execCommand("copy"),document.body.removeChild(t)}K.value=!0,setTimeout(()=>{K.value=!1},2e3)},Se=()=>{if(!z.value.trim()){xe(c("please_enter_valid_invitation_code"));return}},ze=async()=>{const i=await ut();i.status&&i.body&&(M.value=i.body)},me=async()=>{const i=await gt();i.status&&i.body&&(j.value=i.body||{})},Me=async()=>{if(!z.value.trim()){xe(c("please_enter_valid_invitation_code"));return}let i={inviteCode:z.value.trim(),inviteType:"REGISTER"};try{(await ft(i)).status?(it(c("invitation_code_bound_successfully")),me()):ee(c("invitation_code_binding_failed")),z.value="",G.value=!1}catch(t){ee(t.errorMsg)}},Ee=async()=>{const i=await ht();i.status&&i.body&&(b.value=i.body)},Te=async()=>{const i=await mt();i.status&&i.body&&(ne.value=i.body)},De=async()=>{const t=await be(["1983474358707736577"]);t.status&&t.body&&(oe.value=t.body["1983474358707736577"])},$e=async()=>{const t=await rt({activityType:14});t.status&&t.body?(E.value=t.body?.currentUserRank,q.value=t.body?.rankingList):(q.value=[],E.value={})},Ge=async()=>{const t=await dt(100,{activityType:14});t.status&&t.body?Y.value=t.body||[]:Y.value=[]},Le=async()=>{const i=await ct("2029443922744954881");i.status&&i.body&&(le.value=i.body.butOneRewards)},Fe=async()=>{[["2029448725407711234"],["2029449081176965121"],["2029449364032438273"]].forEach(async(t,k)=>{const d=await be(t);d.status&&d.body&&(console.log("resRechargeRewards.body.id",d.body[`${t}`]),se.value[k]=d.body[`${t}`])})},Ne=async()=>{const i=[n("bg1New"),n("bg2"),n("bg3"),n("BtBg"),n(a("myCode")),n("copy"),n(a("incomeBtActive")),n(a("incomeBt")),n(a("earningsRankingBtActive")),n(a("earningsRankingBt")),n(a("incomeBg")),n(a("example")),n(a("listBt")),n(a("rankBt")),n(a("rewardBt")),n("rankingBg"),n("timeBg"),n("rankItemBg"),n(a("inviteFriendsBt")),n(a("helpInfo")),n(a("enterCodeBg")),n(a("confirmBt")),n(a("incomeListBg")),n(a("weekRewardBg"))];await lt(i)},pe=async()=>{await Promise.all([ze(),me(),Ee(),Te(),De(),$e(),Ge(),Le(),Fe()])},Oe=async()=>{try{await Promise.all([pe(),Ne()])}catch(i){console.error("预加载过程中发生错误:",i)}finally{ie.value=!1}},He=async()=>{await ot(()=>{Oe()})};return Ve(()=>{Ue(),He()}),qe(()=>{H&&(clearInterval(H),H=null)}),(i,t)=>{const k=Ye,d=Xe("smart-img");return u(),f("div",pt,[ie.value?(u(),f("div",wt,[h(ke,{backgroundImages:[n("bg1New"),n("bg2"),n("bg3")]},null,8,["backgroundImages"]),h(k),e("p",null,o(i.$t("loading"))+"...",1)])):(u(),f("div",_t,[h(ke,{backgroundImages:[n("bg1New"),n("bg2"),n("bg3")]},null,8,["backgroundImages"]),e("div",xt,[h(vt,{isHomePage:!0,showHelp:!0,backImg:l(_),title:l(c)("invitation_to_register"),onHelp:t[0]||(t[0]=s=>F.value=!0)},null,8,["backImg","title"])]),e("div",kt,[ue.value==="enterCode"?(u(),W(p,{key:0,style:{width:"40%","min-height":"15.63vw"},imgUrl:n("BtBg"),contentStyle:"direction: ltr;justify-content: center;inset: 1vw 6vw 0 0.5vw;",onClick:t[1]||(t[1]=s=>G.value=!0)},{default:m(()=>[e("div",{class:D(["enter",`enter_${S.value}`])},o(l(c)("enter_invitation_code")),3)]),_:1},8,["imgUrl"])):ue.value==="privateChat"?(u(),W(p,{key:1,style:{width:"40%","min-height":"15.63vw"},imgUrl:n("BtBg"),contentStyle:"direction: ltr;justify-content: center;inset: 1vw 6vw 0 0.5vw;",onClick:t[2]||(t[2]=s=>l(Ke)(j.value.inviterInfo?.userId))},{default:m(()=>[e("div",{class:D(["contact",`contact_${S.value}`])},o(l(c)("contact_your_inviter")),3)]),_:1},8,["imgUrl"])):we("",!0)]),e("div",bt,[h(p,{style:{"min-height":"141vw"},imgUrl:n(a("myCode")),contentStyle:"padding: 111vw 10vw 17vw;flex-direction: column;justify-content: flex-start;gap: 0vw;"},{default:m(()=>[e("div",At,[e("div",Ct,o(l(c)("my_invitation_code")),1),e("div",It,o(M.value.inviteCode||""),1),M.value.inviteCode?r((u(),f("img",{key:0,src:n("copy"),alt:"",style:{display:"block",width:"1.5em","object-fit":"cover"},onClick:t[3]||(t[3]=s=>Re(M.value.inviteCode||""))},null,8,Bt)),[[d]]):we("",!0)]),e("div",jt,[e("div",Ut,o(l(c)("copy_invitation_code_tip")),1)])]),_:1},8,["imgUrl"]),e("div",Rt,[e("div",St,[r(e("img",{src:n(a("incomeBtActive")),alt:"",style:P([{display:"block",width:"100%"},{opacity:w.value==="income"?1:0}]),onClick:t[4]||(t[4]=s=>w.value="income")},null,12,zt),[[d,void 0,void 0,{noFade:!0}]]),r(e("img",{src:n(a("incomeBt")),alt:"",style:P([{display:"block",width:"100%",position:"absolute",bottom:"0",left:"0"},{opacity:w.value==="income"?0:1}]),onClick:t[5]||(t[5]=s=>w.value="income")},null,12,Mt),[[d,void 0,void 0,{noFade:!0}]])]),e("div",Et,[r(e("img",{src:n(a("earningsRankingBtActive")),alt:"",style:P([{display:"block",width:"100%"},{opacity:w.value==="ranking"?1:0}]),onClick:t[6]||(t[6]=s=>w.value="ranking")},null,12,Tt),[[d,void 0,void 0,{noFade:!0}]]),r(e("img",{src:n(a("earningsRankingBt")),alt:"",style:P([{display:"block",width:"100%",position:"absolute",bottom:"0",left:"0"},{opacity:w.value==="ranking"?0:1}]),onClick:t[7]||(t[7]=s=>w.value="ranking")},null,12,Dt),[[d,void 0,void 0,{noFade:!0}]])])]),r(e("div",$t,[h(p,{style:{"min-height":"100vw"},imgUrl:n(a("incomeBg")),contentStyle:"padding: 44vw 8vw 18vw 7vw;display:grid;grid-template-columns: repeat(2, 1fr);gap: 4vw;"},{default:m(()=>[e("div",{style:{position:"absolute","z-index":"2",width:"22vw",height:"10vw",top:"31vw",right:"6vw"},onClick:t[8]||(t[8]=s=>N.value=!0)}),e("div",Gt,[e("div",Lt,o(l(c)("total_invitations")),1),e("div",Ft,o(b.value.validInviteCount||0),1)]),e("div",Nt,[e("div",Ot,o(l(c)("todays_invitation")),1),e("div",Ht,o(b.value.todayInviteCount||0),1)]),e("div",Wt,[e("div",Pt,o(l(c)("invitation_total_income")),1),e("div",Qt,[r(e("img",Jt,null,512),[[d]]),e("div",Vt,o(b.value.totalIncome||0),1)])]),e("div",qt,[e("div",Yt,o(l(c)("todays_income")),1),e("div",Kt,[r(e("img",Xt,null,512),[[d]]),e("div",Zt,o(b.value.todayIncome||0),1)])])]),_:1},8,["imgUrl"]),r(e("img",{src:n(a("example")),alt:"",style:{position:"relative","z-index":"2",display:"block",width:"100%","object-fit":"cover"}},null,8,ei),[[d]])],512),[[x,w.value=="income"]]),r(e("div",ti,[e("div",ii,[e("div",{style:{width:"35vw","min-width":"0"},onClick:t[9]||(t[9]=s=>re("rankAll"))},[r(e("img",{src:n(a("listBt")),alt:"",class:D({"grayscale-container":!T.value}),style:{width:"100%",display:"block","object-fit":"cover"}},null,10,ni),[[d]])]),e("div",{style:{width:"35vw","min-width":"0"},onClick:t[10]||(t[10]=s=>re("rankWeek"))},[r(e("img",{src:n(a("rankBt")),alt:"",class:D({"grayscale-container":!U.value}),style:{width:"100%",display:"block","object-fit":"cover"}},null,10,oi),[[d]])])]),r(e("div",null,[h(p,{style:{"min-height":"205.33vw"},imgUrl:n("rankingBg"),contentStyle:"padding: 10vw 6vw 10vw;flex-direction: column;justify-content: flex-start;gap:2vw"},{default:m(()=>[e("div",si,[e("div",li,[(u(!0),f(C,null,I(ae.value,(s,A)=>(u(),W(p,{style:{"min-height":"22.33vw"},key:s.userId,imgUrl:n("rankItemBg"),contentStyle:"padding: 0 5vw",lazy:!0,immediate:A<10,rootMargin:"100px",show:T.value,onClick:g=>l(_e)(s.userId)},{default:m(()=>[e("div",ai,[e("div",ri,o(s?.rank),1),e("img",{src:s?.avatar||"",alt:"",style:{display:"block",width:"13vw","aspect-ratio":"1/1","border-radius":"50%","object-fit":"cover"},onError:t[11]||(t[11]=(...g)=>l($)&&l($)(...g))},null,40,di),e("div",ci,[e("div",vi,o(s?.nickname),1),e("div",yi,o(i.$t("user_id_prefix"))+" "+o(s?.account),1)])]),e("div",ui,[r(e("img",gi,null,512),[[d]]),e("div",fi,o(s?.quantity),1)])]),_:2},1032,["imgUrl","immediate","show","onClick"]))),128))])])]),_:1},8,["imgUrl"]),t[20]||(t[20]=e("div",{style:{height:"20vw"}},null,-1))],512),[[x,T.value]]),r(e("div",null,[h(p,{style:{"min-height":"205.33vw"},imgUrl:n("rankingBg"),contentStyle:"padding: 13vw 6vw 10vw;flex-direction: column;justify-content: flex-start;gap:2vw"},{default:m(()=>[e("div",hi,[h(p,{style:{width:"70%","min-width":"0","min-height":"9.87vw"},imgUrl:n("timeBg"),contentStyle:""},{default:m(()=>[e("div",mi,[e("div",pi,o(de.value)+"Day",1),t[21]||(t[21]=e("div",{class:"timeText timeGap"},null,-1)),e("div",wi,o(ce.value),1),t[22]||(t[22]=e("div",{class:"timeText timeGap"},":",-1)),e("div",_i,o(ve.value),1),t[23]||(t[23]=e("div",{class:"timeText timeGap"},":",-1)),e("div",xi,o(ye.value),1)])]),_:1},8,["imgUrl"]),r(e("img",{src:n(a("rewardBt")),alt:"",style:{flex:"1","min-width":"0",display:"block","object-fit":"cover"},onClick:t[12]||(t[12]=s=>L.value=!0)},null,8,ki),[[d]])]),e("div",bi,[e("div",Ai,[(u(!0),f(C,null,I(ae.value,(s,A)=>(u(),W(p,{style:{"min-height":"22.33vw"},key:s.userId,imgUrl:n("rankItemBg"),contentStyle:"padding: 0 5vw",lazy:!0,immediate:A<10,rootMargin:"100px",show:U.value,onClick:g=>l(_e)(s.userId)},{default:m(()=>[e("div",Ci,[e("div",Ii,o(s?.rank),1),e("img",{src:s?.avatar||"",alt:"",style:{display:"block",width:"13vw","aspect-ratio":"1/1","border-radius":"50%","object-fit":"cover"},onError:t[13]||(t[13]=(...g)=>l($)&&l($)(...g))},null,40,Bi),e("div",ji,[e("div",Ui,o(s?.nickname),1),e("div",Ri,o(i.$t("user_id_prefix"))+" "+o(s?.account),1)])]),e("div",Si,[r(e("img",zi,null,512),[[d]]),e("div",Mi,o(s?.quantity),1)])]),_:2},1032,["imgUrl","immediate","show","onClick"]))),128))])])]),_:1},8,["imgUrl"]),t[24]||(t[24]=e("div",{style:{height:"30vw"}},null,-1))],512),[[x,U.value]])],512),[[x,w.value=="ranking"]])]),e("div",{style:{width:"100%",position:"fixed",bottom:"5vw","z-index":"3",display:"flex","justify-content":"center",cursor:"pointer","-webkit-tap-highlight-color":"transparent","-webkit-touch-callout":"none","user-select":"none","touch-action":"manipulation"},onClick:he,onTouchend:he},[r(e("img",{src:n(a("inviteFriendsBt")),alt:"",style:{display:"block",width:"90%","object-fit":"cover","pointer-events":"none"}},null,8,Ei),[[x,w.value=="income"],[d]])],32),r(h(p,{style:{"min-height":"25.33vw",position:"fixed",bottom:"0","z-index":"3"},imgUrl:n("rankItemBg"),contentStyle:"padding: 0 7vw"},{default:m(()=>[e("div",Ti,[e("div",Di,o(E.value.rank||999),1),e("img",{src:E.value.avatar||"",alt:"",style:{display:"block",width:"15vw","aspect-ratio":"1/1","border-radius":"50%","object-fit":"cover"},onError:t[14]||(t[14]=(...s)=>l($)&&l($)(...s))},null,40,$i),e("div",Gi,[e("div",Li,o(E.value.nickname),1)])]),e("div",Fi,[r(e("img",Ni,null,512),[[d]]),e("div",Oi,o(E.value.quantity||0),1)])]),_:1},8,["imgUrl"]),[[x,w.value=="ranking"&&U.value]]),h(yt,{maskLayerShow:je.value,onClick:O},{default:m(()=>[r(e("div",{style:{margin:"20% 0",position:"relative"},onClick:t[15]||(t[15]=J(()=>{},["stop"]))},[r(e("img",{src:n(a("helpInfo")),alt:"",width:"100%",style:{display:"block"}},null,8,Hi),[[d]])],512),[[x,F.value]]),r(e("div",{style:{width:"100vw",padding:"30vw 0 10vw",display:"flex","justify-content":"center","align-items":"center"},onClick:O},[h(p,{style:{width:"100vw","min-height":"240.66vw"},imgUrl:n(a("enterCodeBg")),contentStyle:"padding: 31.5vw 6vw 10vw;display: flex;flex-direction: column;justify-content: flex-start;",onClick:t[17]||(t[17]=J(()=>{},["stop"]))},{default:m(()=>[e("div",Wi,[r(e("input",{"onUpdate:modelValue":t[16]||(t[16]=s=>z.value=s),type:"text",style:{width:"60vw","min-width":"0","align-self":"stretch",color:"white","font-weight":"510",padding:"4px 8px",border:"none",outline:"none","background-color":"transparent"},onKeyup:et(Se,["enter"])},null,544),[[tt,z.value]]),e("img",{src:n(a("confirmBt")),alt:"",style:{display:"block",width:"16vw","object-fit":"contain"},onClick:Me},null,8,Pi)]),e("div",{style:{width:"85vw",height:"28vw",display:"grid","grid-template-columns":"repeat(4, 1fr)",gap:"1.3vw"},class:D(["inviteReward",`inviteReward_${S.value}`])},[(u(!0),f(C,null,I(oe.value,(s,A)=>(u(),f("div",Qi,[e("div",Ji,[e("img",{src:s.cover||"",alt:"",width:"70%",style:{display:"block","object-fit":"cover"},onError:g=>l(te)(g,s.type)},null,40,Vi)]),e("div",qi,o(fe(s)),1)]))),256))],2),e("div",{style:{flex:"1","min-height":"0",width:"85vw",display:"flex","flex-direction":"column"},class:D(["rechargeReward",`rechargeReward_${S.value}`])},[(u(!0),f(C,null,I(se.value,(s,A)=>(u(),f("div",Yi,[e("div",Ki,[(u(!0),f(C,null,I(s,g=>(u(),f("div",Xi,[e("div",Zi,[e("img",{src:g.cover||"",alt:"",width:"70%",style:{display:"block","object-fit":"cover"},onError:R=>l(te)(R,g.type)},null,40,en)]),e("div",tn,o(fe(g)),1)]))),256))])]))),256))],2)]),_:1},8,["imgUrl"])],512),[[x,G.value]]),r(e("div",{style:{width:"100vw",padding:"25vw 0 10vw",display:"flex","flex-direction":"column","justify-content":"center","align-items":"center"},onClick:O},[h(p,{style:{"min-height":"163.33vw"},imgUrl:n(a("incomeListBg")),contentStyle:"padding: 37vw 6.5vw 10vw 5.5vw;flex-direction: column;gap: 4vw;justify-content: flex-start;",onClick:t[18]||(t[18]=J(()=>{},["stop"]))},{default:m(()=>[e("div",nn,[e("div",on,[e("div",sn,o(l(c)("total_invitations")),1),e("div",ln,o(b.value.validInviteCount||0),1)]),e("div",an,[e("div",rn,o(l(c)("todays_invitation")),1),e("div",dn,o(b.value.todayInviteCount||0),1)]),e("div",cn,[e("div",vn,o(l(c)("invitation_total_income")),1),e("div",yn,[r(e("img",un,null,512),[[d]]),e("div",gn,o(b.value.totalIncome||0),1)])]),e("div",fn,[e("div",hn,o(l(c)("todays_income")),1),e("div",mn,[r(e("img",pn,null,512),[[d]]),e("div",wn,o(b.value.todayIncome||0),1)])])]),e("div",_n,[e("div",xn,[e("div",kn,o(l(c)("users")),1),e("div",bn,[t[25]||(t[25]=e("div",{style:{width:"1px",height:"16px",background:`linear-gradient(
|
|
rgba(217, 217, 217, 0) 0%,
|
|
#d9d9d9 50%,
|
|
rgba(217, 217, 217, 0) 100%
|
|
)`}},null,-1)),e("div",An,o(l(c)("unbinding_time")),1),t[26]||(t[26]=e("div",{style:{width:"1px",height:"16px",background:`linear-gradient(
|
|
rgba(217, 217, 217, 0) 0%,
|
|
#d9d9d9 50%,
|
|
rgba(217, 217, 217, 0) 100%
|
|
)`}},null,-1))]),e("div",Cn,o(l(c)("prowide_income")),1)]),e("div",In,[(u(!0),f(C,null,I(ne.value,s=>(u(),f("div",Bn,[e("div",jn,o(l(c)("user_id_prefix"))+o(s.invitedUserAccount||"-"),1),e("div",Un,[t[27]||(t[27]=e("div",{style:{width:"1px",height:"16px",background:`linear-gradient(
|
|
rgba(217, 217, 217, 0) 0%,
|
|
#d9d9d9 50%,
|
|
rgba(217, 217, 217, 0) 100%
|
|
)`}},null,-1)),e("div",Rn,o(s.remainingDays||0)+o(l(c)("day_unit")),1),t[28]||(t[28]=e("div",{style:{width:"1px",height:"16px",background:`linear-gradient(
|
|
rgba(217, 217, 217, 0) 0%,
|
|
#d9d9d9 50%,
|
|
rgba(217, 217, 217, 0) 100%
|
|
)`}},null,-1))]),e("div",Sn,[r(e("img",zn,null,512),[[d]]),e("div",Mn,o(s.provideIncome||0),1)])]))),256))])])]),_:1},8,["imgUrl"])],512),[[x,N.value]]),r(e("div",{style:{width:"100vw",padding:"25vw 0 10vw",display:"flex","flex-direction":"column","justify-content":"center","align-items":"center"},onClick:O},[h(p,{style:{"min-height":"286.13vw"},imgUrl:n(a("weekRewardBg")),contentStyle:"padding: 57vw 15vw 20vw 15vw;flex-direction: column;gap: 40vw;justify-content: flex-start;",onClick:t[19]||(t[19]=J(()=>{},["stop"]))},{default:m(()=>[(u(!0),f(C,null,I(le.value,(s,A)=>(u(),f("div",En,[(u(!0),f(C,null,I(s.rewards,(g,R)=>(u(),f("div",Tn,[e("div",Dn,[e("img",{src:g.cover||"",alt:"",width:"70%",style:{display:"block","object-fit":"cover"},onError:We=>l(te)(We,g.type)},null,40,$n)]),e("div",Gn,[e("div",Ln,o(l(at)(g.type,g)),1)])]))),256))]))),256))]),_:1},8,["imgUrl"])],512),[[x,L.value]])]),_:1},8,["maskLayerShow"]),r(e("div",Fn,[e("div",Nn,o(l(c)("copied_successfully")),1)],512),[[x,K.value]])]))])}}},oo=Pe(On,[["__scopeId","data-v-5d11b611"]]);export{oo as default};
|