79 lines
76 KiB
JavaScript
79 lines
76 KiB
JavaScript
import{aB as Bt,W as Ae,L as ye,_ as Re,k as Se,u as ze,J as Me,P as De,aW as Pe,an as Ce,j as d,c as p,l as D,m as q,b as e,q as n,a_ as me,t as r,D as l,F as se,x as ie,v as we,ag as vt,n as ve,S as Q,r as u,o as Xe,a as it,Y as $,G as Ee,X as At,U as tt,Q as Rt,w as ct,aa as zt,ac as Mt,y as te,E as Dt}from"./index-CIAVq8iD-1776148658686.js";import{g as Te}from"./imagePaths-Bi1Bwe4Z-1776148658686.js";import{c as Je}from"./appConnector-B5Pbaops-1776148658686.js";import{p as pe}from"./imagePreloader-C_QM-Nv8-1776148658686.js";import{f as ut}from"./utcFormat-Cl3Lb3s0-1776148658686.js";import{a as oe}from"./toast-aIWCznBB-1776148658686.js";import{h as E}from"./imageHandler-DstQGL3Z-1776148658686.js";import{f as nt}from"./rewardFormatter-Dyjg93my-1776148658686.js";import{i as Y}from"./itemCenter-DveKthYv-1776148658686.js";import{m as Pt}from"./MaskLayer-CMaJd7Gb-1776148658686.js";import{_ as ot}from"./coin-Dqu2_ND9-1776148658686.js";import{B as gt}from"./BackgroundLayer-DJYogygx-1776148658686.js";const Ne=Bt("couple",{state:()=>({fragmentNotEnoughShow:!1,helpShow:!1,topRewardShow:!1,topReward:{},myRanking:{},TipsShow:!1,needCheckInTipsShow:!1,signInSuccessShow:!1,crystal:0,debris:0,rewardShow:!1,reward:{},resultShow:!1,result:[],drawRecordShow:!1,myRecords:[],receiveRecordShow:!1,receiveRecord:[],signInInfo:{},exchangeConfirmShow:!1,exchangeItem:null}),actions:{setResult(s){this.result=s},setMyRecords(s){this.myRecords=s},setRecord(s){this.record=s}}}),Nt=async()=>{try{return await ye("/user/cp-relationship/pair")}catch(s){throw console.error("Failed to get my cp object:",s),console.error("error:"+s.response.errorMsg),s}},Ft=async s=>{try{return await Ae("/user/cp-relationship/send-love-letter",s)}catch(i){throw console.error("Failed to send love letter:",i),console.error("error:"+i.response.errorMsg),i}},Gt=async()=>{try{return await ye("/user/cp-relationship/love-letter-wall")}catch(s){throw console.error("Failed to get love letter wall:",s),console.error("error:"+s.response.errorMsg),s}},Et=async()=>{try{return await ye("/user/cp-relationship/latest-love-letter")}catch(s){throw console.error("Failed to get latest love letter:",s),console.error("error:"+s.response.errorMsg),s}},Xt=async s=>{try{return await ye(`/activity/week-cp-gift/ranking-data?type=${s}`)}catch(i){throw console.error("Failed to get cp ranking:",i),console.error("error:"+i.response.errorMsg),i}},Ht=async()=>{try{return await ye("/activity/week-cp-gift/season-top1")}catch(s){throw console.error("Failed to get cp season top 1:",s),console.error("error:"+s.response.errorMsg),s}},Ot=async s=>{try{return await ye(`/activity/week-cp-gift/list-reward-pool?type=${s}`)}catch(i){throw console.error("Failed to get cp reward pool:",i),console.error("error:"+i.response.errorMsg),i}},rt=async s=>{try{return await ye(`/activity/lottery/my-ticket-count?activityId=${s}`)}catch(i){throw console.error("Failed to get my lottery ticket count:",i),console.error("error:"+i.response.errorMsg),i}},at=async s=>{try{return await Ae(`/user/backpack/client/list/by/user-id?userId=${s.userId}&fragmentsIds=${s.fragmentsIds}`)}catch(i){throw console.error("Failed to get user fragment backpack:",i),console.error("error:"+i.response.errorMsg),i}},Wt=async s=>{try{return await ye(`/activity/lottery/detail/${s}`)}catch(i){throw console.error("Failed to fetch get activity detail:",i),console.error("error:"+i.response.errorMsg),i}},qt=async s=>{try{return await Ae("/activity/lottery/draw",s)}catch(i){throw console.error("Failed to fetch once draw:",i),i}},Vt=async s=>{try{return await Ae("/activity/lottery/multi-draw",s)}catch(i){throw console.error("Failed to fetch multiply draw:",i),i}},Yt=async s=>{try{return await ye(`/activity/lottery/my-records?pageSize=100&activityCode=${s}`)}catch(i){throw console.error("Failed to fetch get draw records:",i),console.error("error:"+i.response.errorMsg),i}},Jt=async s=>{try{return await Ae("/activity/lottery/backpack/logs",s)}catch(i){throw console.error("Failed to fetch get draw backpack logs:",i),console.error("error:"+i.response.errorMsg),i}},Kt=async s=>{try{return await ye(`/props-activity-cnf/client/listActivityResource?sysOrigin=ATYOU&activityType=${s}`)}catch(i){throw console.error("Failed to get activity resource:",i),console.error("error:"+i.response.errorMsg),i}},Qt=async s=>{try{return await Ae("/activity/week-star/exchange",s)}catch(i){throw console.error("Failed to exchange goods:",i),console.error("error:"+i.response.errorMsg),i}},pt=async()=>{try{return await ye("/signin/status")}catch(s){throw console.error("Failed to fetch get my sign in status:",s),console.error("error:"+s.response.errorMsg),s}},Zt=async s=>{try{return await Ae("/signin/check-in",s)}catch(i){throw console.error("Failed to sign in:",i),console.error("error:"+i.response.errorMsg),i}},es=async s=>{try{return await Ae("/signin/supplement",s)}catch(i){throw console.error("Failed to sign in:",i),console.error("error:"+i.response.errorMsg),i}},ts={style:{width:"100%"}},ss={key:0,style:{width:"98vw",height:"80%",position:"relative"}},is={style:{position:"absolute","z-index":"2",inset:"0",display:"flex"}},ns={style:{position:"absolute","z-index":"-1",top:"12vw",left:"0",width:"100%",height:"25vw",display:"flex","justify-content":"center","align-items":"center",gap:"14vw"}},os=["src"],rs=["src"],as={style:{height:"17vw",display:"flex","justify-content":"center","align-items":"center"}},ls={style:{color:"#fff","font-weight":"700"}},cs={style:{"margin-top":"-1vw",height:"5vw",display:"flex","justify-content":"center","align-items":"center"}},ds={style:{width:"76vw",display:"flex","align-items":"center",gap:"2vw"}},us={style:{flex:"1","min-width":"0",display:"flex","justify-content":"center","align-items":"center"}},gs={style:{padding:"0 20%",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap","font-size":"0.9em","font-weight":"600"}},vs={style:{flex:"1","min-width":"0",display:"flex","justify-content":"center","align-items":"center"}},ps={style:{padding:"0 20%",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap","font-size":"0.9em","font-weight":"600"}},fs={key:1,style:{height:"65%",padding:"0 7%",display:"flex","align-items":"center"}},ys=["src"],hs={style:{width:"36vw",position:"relative"}},ws={style:{position:"absolute","z-index":"2",inset:"0",display:"flex"}},ms={style:{width:"100%",padding:"3vw 5vw",height:"80%",display:"flex","justify-content":"space-between","align-items":"center"}},bs=["src"],_s=["src"],xs={style:{flex:"1","min-width":"0",height:"100%",display:"flex","flex-direction":"column","justify-content":"center",gap:"1vw"}},ks={style:{width:"100%",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},$s={style:{width:"100%",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Is={style:{width:"auto","min-width":"0",display:"flex","align-items":"center"}},Ss=["src"],Cs={style:{"font-weight":"700"}},Ts={class:"reward-wrapper"},js={style:{height:"100%",display:"flex","align-items":"center",overflow:"hidden"}},Us={class:"scroll-wrapper"},Ls={class:"scroll-content"},Bs=["onClick"],As=["src"],Rs={style:{"min-width":"0",color:"#fff","white-space":"nowrap"}},zs={__name:"topUser",props:{ranking:{type:String,default:"0"},rankingItem:{type:Object,default:()=>({})},rewards:{type:Object,default:()=>({})}},setup(s){const{t:i}=Se();ze(),Me();const ne=Ne();De();const P=N=>Te("Ranking/Couple/",N),{topRewardShow:B,topReward:R}=Pe(ne),w=s,S=Q(()=>{switch(w.ranking){case"1":return P("top1");case"2":return P("top2-3");case"3":return P("top2-3");default:return P("top2-3")}}),X=Q(()=>w.ranking==="1"),J=N=>{R.value=N,B.value=!0};return(N,m)=>{const z=Ce("smart-img");return d(),p("div",ts,[D(Y,{style:ve({minHeight:s.ranking=="1"?"58.51vw":"39.07vw"}),imgUrl:S.value,flip:!0,contentStyle:"display:block;"},{default:q(()=>[X.value?(d(),p("div",ss,[e("div",is,[e("div",{style:{flex:"1","min-width":"0","align-self":"stretch"},onClick:m[0]||(m[0]=f=>n(me)(s.rankingItem.userId))}),e("div",{style:{flex:"1","min-width":"0","align-self":"stretch"},onClick:m[1]||(m[1]=f=>n(me)(s.rankingItem.cpUserId))})]),e("div",ns,[e("img",{src:s.rankingItem.userAvatar,alt:"",style:{display:"block",width:"25vw","object-fit":"cover","aspect-ratio":"1/1","border-radius":"50%"},onError:m[2]||(m[2]=(...f)=>n(E)&&n(E)(...f)),onClick:m[3]||(m[3]=f=>n(me)(s.rankingItem.userId))},null,40,os),e("img",{src:s.rankingItem.cpUserAvatar,alt:"",style:{display:"block",width:"25vw","object-fit":"cover","aspect-ratio":"1/1","border-radius":"50%"},onError:m[4]||(m[4]=(...f)=>n(E)&&n(E)(...f)),onClick:m[5]||(m[5]=f=>n(me)(s.rankingItem.cpUserId))},null,40,rs)]),m[10]||(m[10]=e("div",{style:{height:"22vw"}},null,-1)),e("div",as,[e("div",ls,r(s.rankingItem.total),1)]),e("div",cs,[e("div",ds,[e("div",us,[e("div",gs,r(s.rankingItem.userNickname||""),1)]),e("div",vs,[e("div",ps,r(s.rankingItem.cpUserNickname||""),1)])])])])):(d(),p("div",fs,[D(Y,{style:{width:"9vw"},class:"rankingBg",imgUrl:P(`top${s.ranking}RankingBg`),flip:!0,contentStyle:""},{default:q(()=>[l(e("img",{src:P(`num${s.ranking}`),alt:"",style:{width:"3vw",display:"block"}},null,8,ys),[[z]])]),_:1},8,["imgUrl"]),e("div",hs,[e("div",ws,[e("div",{style:{flex:"1","min-width":"0","align-self":"stretch"},onClick:m[6]||(m[6]=f=>n(me)(s.rankingItem.userId))}),e("div",{style:{flex:"1","min-width":"0","align-self":"stretch"},onClick:m[7]||(m[7]=f=>n(me)(s.rankingItem.cpUserId))})]),D(Y,{style:{width:"100%","z-index":"1"},imgUrl:P(`top${s.ranking}Frame`),contentStyle:"z-index: -1;"},{default:q(()=>[e("div",ms,[e("img",{src:s.rankingItem.userAvatar,alt:"",style:{display:"block","min-width":"0",width:"10.5vw","object-fit":"cover","aspect-ratio":"1/1","border-radius":"50%"},onError:m[8]||(m[8]=(...f)=>n(E)&&n(E)(...f))},null,40,bs),e("img",{src:s.rankingItem.cpUserAvatar,alt:"",style:{display:"block","min-width":"0",width:"10.5vw","object-fit":"cover","aspect-ratio":"1/1","border-radius":"50%"},onError:m[9]||(m[9]=(...f)=>n(E)&&n(E)(...f))},null,40,_s)])]),_:1},8,["imgUrl"])]),e("div",xs,[e("div",ks,r(s.rankingItem.userNickname||""),1),e("div",$s,r(s.rankingItem.cpUserNickname||""),1)]),e("div",Is,[l(e("img",{src:P("distribution"),alt:"",style:{width:"10vw",display:"block","object-fit":"cover"}},null,8,Ss),[[z]]),e("div",Cs,r(s.rankingItem.total||"0"),1)])])),e("div",Ts,[e("div",js,[e("div",Us,[(d(),p(se,null,ie(2,f=>e("div",Ls,[(d(!0),p(se,null,ie(s.rewards.activityRewardProps,(L,M)=>(d(),p("div",{key:M,style:{"align-self":"stretch",display:"flex","align-items":"center",padding:"0 1vw"},onClick:H=>J(L)},[L.cover!=""?(d(),p("img",{key:0,src:L.cover,alt:"",style:{"min-width":"0",display:"block",width:"10vw","object-fit":"cover"}},null,8,As)):we("",!0),e("div",Rs,r(n(nt)(L.type,L)),1),m[11]||(m[11]=vt(" , ",-1))],8,Bs))),128))])),64))])])])]),_:1},8,["style","imgUrl"])])}}},Ms=Re(zs,[["__scopeId","data-v-76730eb3"]]),Ds={style:{padding:"4vw 0"}},Ps={style:{"min-height":"18.54vw",width:"100vw",padding:"0 4vw",display:"flex","justify-content":"space-between","align-items":"center",gap:"10vw"}},Ns=["src"],Fs=["src"],Gs=["src"],Es=["src"],Xs={style:{display:"flex","justify-content":"center","align-items":"center"}},Hs={class:"timeBox"},Os={class:"timeText",style:{}},Ws={class:"timeText",style:{}},qs={class:"timeText",style:{}},Vs={class:"timeText",style:{}},Ys={style:{display:"flex","justify-content":"center","align-items":"center"}},Js={class:"timeBox"},Ks={class:"timeText",style:{}},Qs={class:"timeText",style:{}},Zs={class:"timeText",style:{}},ei={class:"timeText",style:{}},ti={style:{position:"relative",display:"flex","flex-direction":"column",gap:"2vw"}},si=["src"],ii=["src"],ni={style:{"margin-top":"2vw",display:"flex","flex-direction":"column",gap:"2vw"}},oi={class:"rankingText"},ri=["src"],ai={style:{width:"36vw"}},li={style:{width:"100%",padding:"3vw 5vw",height:"80%",display:"flex","justify-content":"space-between","align-items":"center",position:"relative"}},ci={style:{position:"absolute","z-index":"9",inset:"0",display:"flex","justify-content":"center","align-items":"center"}},di=["onClick"],ui=["onClick"],gi={style:{position:"absolute",inset:"0",display:"flex","justify-content":"center","align-items":"center"}},vi=["src"],pi=["src"],fi=["src"],yi={style:{flex:"1","min-width":"0",height:"100%",display:"flex","flex-direction":"column","justify-content":"center",gap:"1vw"}},hi={style:{width:"100%",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},wi={style:{width:"100%",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},mi={style:{width:"auto","min-width":"0",display:"flex","align-items":"center"}},bi=["src"],_i={style:{"font-weight":"700"}},xi={__name:"Ranking",setup(s){const{t:i}=Se();ze(),Me();const ne=Ne(),P=De(),B=Q(()=>P.selectedLang?.type||"en"),R=u(!0),w=v=>Te("Ranking/Couple/",v),S=v=>B.value==="ar"?`${v}_ar`:v,{helpShow:X,myRanking:J}=Pe(ne),N=u(0),m=u(0),z=u(0),f=u(0);let L=null;const M=u(0),H=u(0),b=u(0),h=u(0);let F=null;const I=u((()=>{const v=new Date,c=new Date(v.getTime()),j=v.getTime()+v.getTimezoneOffset()*6e4,W=new Date(j+8*36e5),V=W.getDay(),_e=W.getHours(),Be=V===0?6:V-1;let ce;return Be===0?_e>=5?ce=7:ce=0:ce=7-Be,c.setDate(c.getDate()+ce),c.setHours(5,0,0,0),c.getTime()})()),C=v=>v<10?`0${v}`:v,K=()=>{const v=Date.now();let c=I.value-v;c<=0&&(Ue(),I.value+=7*864e5,c=I.value-v);const j=Math.floor(c/1e3);N.value=Math.floor(j/(24*3600)),m.value=C(Math.floor(j%(24*3600)/3600)),z.value=C(Math.floor(j%3600/60)),f.value=C(Math.floor(j%60))},T=()=>{K(),_(),L=setInterval(K,1e3),F=setInterval(_,1e3)},Z=()=>{const v=new Date,c=[[1,20],[2,19],[3,21],[4,20],[5,21],[6,22],[7,23],[8,23],[9,23],[10,23],[11,22],[12,22]],j=new Date(v.getTime()+480*60*1e3),W=j.getUTCFullYear(),V=j.getUTCMonth()+1,_e=j.getUTCDate(),Be=j.getUTCHours();let ce=null,st=W;for(let xe=0;xe<c.length;xe++){const[he,ke]=c[xe];if(V<he||V===he&&_e<ke||V===he&&_e===ke&&Be<5){ce=[he,ke];break}}return ce||(ce=[1,20],st=W+1),Date.UTC(st,ce[0]-1,ce[1],5,0,0)-480*60*1e3},_=()=>{const v=Date.now();let c=t.value-v;c<=0&&(t.value=Z(),c=t.value-v);const j=Math.floor(c/1e3),W=Math.floor(j/(24*3600));M.value=W;const V=Math.floor(j%(24*3600)/3600);H.value=C(V);const _e=Math.floor(j%3600/60);b.value=C(_e);const Be=j%60;h.value=C(Be)},t=u(Z()),y=u(!0),g=u(!1),U=v=>{switch(v){case"weekly":if(y.value)return;y.value=!0,g.value=!1,Oe(),ee();break;case"season":if(g.value)return;y.value=!1,g.value=!0,Oe(),ee();break}},A=u([]),G=Q(()=>{let v=JSON.parse(JSON.stringify(A.value));return g.value?v[0].activityRewardProps.push({cover:"",content:"Banner*30Days",quantity:0,type:"GIFT"},{cover:"",content:"ID: 7 digits * 1",quantity:0,type:"GIFT"}):(v[0]?.activityRewardProps.push({cover:new URL("/assets/coin-lz3Tp0nX-177614866144.png",import.meta.url).href,content:i("heartbeat_value_points_4_percent",{amount:je(Number(re.value[0]?.totalNumber)*.04)}),quantity:0,type:"GIFT"},{cover:"",content:"Homepage Ad* 7 days",quantity:0,type:"GIFT"}),v[1]?.activityRewardProps.push({cover:new URL("/assets/coin-lz3Tp0nX-177614866144.png",import.meta.url).href,content:i("heartbeat_value_points_3_percent",{amount:je(Number(re.value[1]?.totalNumber)*.03)}),quantity:0,type:"GIFT"}),v[2]?.activityRewardProps.push({cover:new URL("/assets/coin-lz3Tp0nX-177614866144.png",import.meta.url).href,content:i("heartbeat_value_points_2_percent",{amount:je(Number(re.value[2]?.totalNumber)*.02)}),quantity:0,type:"GIFT"})),v}),O=u(null),ae=u([]),fe=u([]),Ke=Q(()=>[...ae.value,...fe.value]),re=Q(()=>{let v=[...ae.value];if(ae.value.length<3){let c=Array.from({length:3-ae.value.length},()=>({rank:"",userAvatar:"",userId:"",userNickname:"",userSex:"",cpUserAvatar:"",cpUserId:"",cpUserNickname:"",cpUserSex:"",total:"0",totalNumber:"0"}));v.push(...c)}return v}),le=Q(()=>ae.value.filter((v,c)=>c>=3)),He=v=>String(v).split(""),be=v=>/^[0-9]$/.test(v)?w(`num${v}`):"",je=v=>{if(typeof v!="number"||isNaN(v))return"0";const c=Math.abs(v);if(c>=1e6){const j=v/1e6;return(Math.round(j*100)/100).toFixed(2)+"M"}else if(c>=1e3){const j=v/1e3;return(Math.round(j*100)/100).toFixed(2)+"K"}else return Math.floor(v).toString()},Oe=async()=>{let v=y.value?"WEEK":"SEASON";try{const c=await Xt(v);c.status&&c.body&&(ae.value=c.body.thisWeekUserTop||[],J.value=c.body.thisUser||{})}catch(c){oe(c.response.errorMsg)}},ee=async()=>{let v=y.value?"WEEK_CP_GIFT":"SEASON_CP_GIFT";try{const c=await Ot(v);if(c.status&&c.body){let j=c.body;A.value=c.body||[]}}catch(c){oe(c.response.errorMsg)}},Fe=At(()=>{},1e3),Ge=new IntersectionObserver(v=>{v.forEach(c=>{c.intersectionRatio>0&&Ke.value.length!=0&&(console.log("触发RankingLoadmore加载"),Fe())})}),Ue=async()=>{await Promise.all([Oe(),ee()])},We=async()=>{const v=[],c=[];B.value=="en"?await pe(v):B.value=="ar"&&await pe(c)},qe=async()=>{try{await Promise.all([Ue(),We()]),console.log("预加载完成,初始化数据成功")}catch(v){console.error("预加载过程中发生错误:",v)}finally{R.value=!1}},Le=async()=>{await Je(()=>{qe()})};return Xe(()=>{T(),Le(),O.value&&(console.log("监控加载模块"),Ge.observe(O.value))}),it(()=>{L&&(clearInterval(L),L=null),F&&(clearInterval(F),F=null)}),(v,c)=>{const j=Ce("smart-img");return d(),p("div",Ds,[e("div",Ps,[e("div",{style:{flex:"1","min-width":"0"},onClick:c[0]||(c[0]=W=>U("weekly"))},[l(e("img",{src:w(S("rankingWeeklyBtActive")),alt:"",style:{width:"100%",display:"block","object-fit":"cover"}},null,8,Ns),[[$,y.value],[j]]),l(e("img",{src:w(S("rankingWeeklyBt")),alt:"",style:{width:"100%",display:"block","object-fit":"cover"}},null,8,Fs),[[$,!y.value],[j]])]),e("div",{style:{flex:"1","min-width":"0"},onClick:c[1]||(c[1]=W=>U("season"))},[l(e("img",{src:w(S("rankingSeasonBtActive")),alt:"",style:{width:"100%",display:"block","object-fit":"cover"}},null,8,Gs),[[$,g.value],[j]]),l(e("img",{src:w(S("rankingSeasonBt")),alt:"",style:{width:"100%",display:"block","object-fit":"cover"}},null,8,Es),[[$,!g.value],[j]])])]),D(Y,{style:{"min-height":"31.33vw"},imgUrl:w("timeBg"),contentStyle:"inset:0 0 4vw;"},{default:q(()=>[l(e("div",Xs,[e("div",Hs,[e("div",Os,r(N.value)+"D",1),c[5]||(c[5]=e("div",{class:"timeText timeGap"},null,-1)),e("div",Ws,r(m.value),1),c[6]||(c[6]=e("div",{class:"timeText timeGap"},":",-1)),e("div",qs,r(z.value),1),c[7]||(c[7]=e("div",{class:"timeText timeGap"},":",-1)),e("div",Vs,r(f.value),1)])],512),[[$,y.value]]),l(e("div",Ys,[e("div",Js,[e("div",Ks,r(M.value)+"D",1),c[8]||(c[8]=e("div",{class:"timeText timeGap"},null,-1)),e("div",Qs,r(H.value),1),c[9]||(c[9]=e("div",{class:"timeText timeGap"},":",-1)),e("div",Zs,r(b.value),1),c[10]||(c[10]=e("div",{class:"timeText timeGap"},":",-1)),e("div",ei,r(h.value),1)])],512),[[$,g.value]])]),_:1},8,["imgUrl"]),e("div",ti,[l(e("img",{src:w("helpBt"),alt:"",class:"helpBt",onClick:c[2]||(c[2]=W=>X.value=!0)},null,8,si),[[j]]),D(Y,{style:{width:"9vw"},class:"rankingBg",imgUrl:w("top1RankingBg"),flip:!0,contentStyle:""},{default:q(()=>[l(e("img",{src:w("num1"),alt:"",style:{width:"3vw",display:"block"}},null,8,ii),[[j]])]),_:1},8,["imgUrl"]),e("div",ni,[(d(),p(se,null,ie(3,(W,V)=>D(Ms,{style:ve({minHeight:V==0?"58.51vw":"39.07vw"}),ranking:V+1+"",rankingItem:re.value[V]||{},rewards:G.value[V]||{}},null,8,["style","ranking","rankingItem","rewards"])),64))]),(d(!0),p(se,null,ie(le.value,W=>(d(),Ee(Y,{style:{"min-height":"25.92vw"},imgUrl:w("rankingItemBg"),flip:!0,contentStyle:"padding: 0 5%;justify-content: flex-start;"},{default:q(()=>[D(Y,{style:{width:"9vw"},imgUrl:w("top1RankingBg"),flip:!0,contentStyle:""},{default:q(()=>[e("div",oi,[(d(!0),p(se,null,ie(He(W.rank),(V,_e)=>l((d(),p("img",{src:be(V),style:{display:"block",width:"3vw","object-fit":"cover"}},null,8,ri)),[[j]])),256))])]),_:2},1032,["imgUrl"]),e("div",ai,[e("div",li,[e("div",ci,[e("div",{style:{flex:"1","min-width":"0","align-self":"stretch"},onClick:V=>n(me)(W.userId)},null,8,di),e("div",{style:{flex:"1","min-width":"0","align-self":"stretch"},onClick:V=>n(me)(W.cpUserId)},null,8,ui)]),e("div",gi,[l(e("img",{src:w("rankingCoupleSign"),alt:"",style:{width:"15vw",display:"block","object-fit":"cover"}},null,8,vi),[[j]])]),e("img",{src:W.userAvatar||"",alt:"",style:{display:"block","min-width":"0",width:"12vw","object-fit":"cover","aspect-ratio":"1/1","border-radius":"50%",border:"1px solid #fefa9f"},onError:c[3]||(c[3]=(...V)=>n(E)&&n(E)(...V))},null,40,pi),e("img",{src:W.cpUserAvatar||"",alt:"",style:{display:"block","min-width":"0",width:"12vw","object-fit":"cover","aspect-ratio":"1/1","border-radius":"50%",border:"1px solid #fefa9f"},onError:c[4]||(c[4]=(...V)=>n(E)&&n(E)(...V))},null,40,fi)])]),e("div",yi,[e("div",hi,r(W.userNickname||""),1),e("div",wi,r(W.cpUserNickname||""),1)]),e("div",mi,[l(e("img",{src:w("distribution"),alt:"",style:{width:"10vw",display:"block","object-fit":"cover"}},null,8,bi),[[j]]),e("div",_i,r(W.total||"0"),1)])]),_:2},1032,["imgUrl"]))),256))])])}}},ki=Re(xi,[["__scopeId","data-v-0d80e4d6"]]),$i=["src"],Ii={style:{width:"100%",height:"71vw","align-self":"stretch",margin:"68.5vw 0 0",padding:"0 15vw",display:"grid","grid-template-columns":"repeat(3, 1fr)","grid-template-rows":"repeat(3, 1fr)",direction:"ltr"}},Si=["src","alt"],Ci={style:{"font-size":"0.8em","font-weight":"700",color:"#ff3b76"}},Ti=["src"],ji={style:{"grid-area":"2 / 2",display:"flex","justify-content":"center","align-items":"center",gap:"1vw"}},Ui=["src"],Li={style:{"font-size":"1.5em","font-weight":"600",color:"#fff"}},Bi={style:{height:"12vw",display:"flex","justify-content":"space-between",gap:"14vw"},class:"drawBts"},Ai={key:0,style:{width:"100%",height:"100%",display:"flex","justify-content":"center","align-items":"center",gap:"1vw"}},Ri=["src"],zi={key:1,style:{width:"100%",height:"100%",display:"flex","justify-content":"center","align-items":"center",gap:"1vw"}},Mi={src:ot,alt:"",style:{display:"block",width:"3em","object-fit":"cover"}},Di={key:0,style:{width:"100%",height:"100%",display:"flex","justify-content":"center","align-items":"center",gap:"1vw"}},Pi=["src"],Ni={key:1,style:{width:"100%",height:"100%",display:"flex","justify-content":"center","align-items":"center",gap:"1vw"}},Fi={src:ot,alt:"",style:{display:"block",width:"3em","object-fit":"cover"}},Gi={__name:"lottery",setup(s){const{t:i}=Se();ze(),Me();const ne=Ne(),P=De(),B=Q(()=>P.selectedLang?.type||"en"),R=u(!0),w=g=>Te("Ranking/Couple/",g),{crystal:S,debris:X,resultShow:J,result:N,drawRecordShow:m,myRecords:z}=Pe(ne),f=u({}),L=u(!1),M=u(0),H=g=>{switch(g){case"result":J.value=!0;break;case"history":m.value=!0;break}},b=g=>[{gridArea:"1/1"},{gridArea:"1/2"},{gridArea:"1/3"},{gridArea:"2/3"},{gridArea:"3/3"},{gridArea:"3/2"},{gridArea:"3/1"},{gridArea:"2/1"}][g],h=g=>(console.log("开始抽奖动画"),new Promise(U=>{M.value=-1;let A=200,G=0,O=0,ae=1;const fe=()=>{M.value=(M.value+1)%f.value.prizeList.length,console.log("当前索引:",M.value),M.value===g&&A>200?setTimeout(()=>{U()},500):(M.value===f.value.prizeList.length-1&&G++,G<ae?A-=20:(M.value===f.value.prizeList.length-1&&O++,O>2&&(A+=20)),setTimeout(fe,A))};fe()})),F=async(g=1)=>{if(L.value)return;L.value=!0;let U={activityId:"2004471533988167125",drawCount:g,needCoins:g>S.value};try{if(g==1){const A=await qt(U);if(A.status&&A.body){N.value=[A.body];const G=A.body,O=f.value.prizeList.findIndex(ae=>ae.prizeName==G?.prize.prizeName);console.log("index:",O),T(),await h(O)}}else{const A=await Vt(U);if(A.status&&A.body){N.value=A.body.results;let G=f.value.prizeList.findIndex(O=>O.prizeName==N.value[0]?.prize.prizeName);console.log("index:",G),T(),await h(G)}}H("result"),L.value=!1}catch(A){oe(A.response.errorMsg),L.value=!1}},x=async()=>{const g=await Yt("67125");g.status&&g.body&&(z.value=g.body?.records||[],H("history"))},I=async()=>{const g=await Wt("67125");g.status&&g.body?f.value=g.body:f.value={}},C=async()=>{try{const g=await rt("2004471533988167125");g.status&&(S.value=g.body||0)}catch(g){oe(g.response.errorMsg)}},K=async()=>{try{const g=await at({userId:tt(),fragmentsIds:["2011710323414081538"]});g.status&&(X.value=g.body?.[0]?.quantity||0)}catch(g){oe(g.response.errorMsg)}},T=async()=>{await C(),await K()},Z=async()=>{await Promise.all([I()])},_=async()=>{const g=[],U=[];B.value=="en"?await pe(g):B.value=="ar"&&await pe(U)},t=async()=>{try{await Promise.all([Z(),_()]),console.log("预加载完成,初始化数据成功")}catch(g){console.error("预加载过程中发生错误:",g)}finally{R.value=!1}},y=async()=>{await Je(()=>{t()})};return Xe(()=>{y()}),(g,U)=>{const A=Ce("smart-img");return d(),p("div",null,[D(Y,{style:{"min-height":"181.6vw"},imgUrl:w("lotteryBg"),contentStyle:"flex-direction: column;justify-content: flex-start;gap: 5vw"},{default:q(()=>[l(e("img",{src:w("historyBt"),alt:"",style:{width:"8vw",position:"absolute",top:"40vw",right:"4vw"},onClick:x},null,8,$i),[[A]]),e("div",Ii,[(d(!0),p(se,null,ie(f.value.prizeList,(G,O)=>(d(),p("div",{style:ve([{display:"flex","flex-direction":"column","justify-content":"center","align-items":"center",position:"relative"},[b(O)]])},[e("img",{src:G.prizeImage||"",alt:G.prizeName||"",width:"50%",style:{display:"block"}},null,8,Si),e("div",Ci,r(G.prizeName),1),l(e("img",{src:w("prizeActiveFrame"),alt:"",style:{display:"block",width:"105%",position:"absolute",transform:"translate(-50%, -50%)",top:"50%",left:"50%"}},null,8,Ti),[[$,M.value===O],[A]])],4))),256)),e("div",ji,[l(e("img",{src:w("crystal"),alt:"",style:{display:"block",width:"8vw","object-fit":"cover"}},null,8,Ui),[[A]]),e("div",Li,"*"+r(n(S)),1)])]),e("div",Bi,[e("div",{style:{width:"25vw",height:"100%"},onClick:U[0]||(U[0]=G=>F(1))},[n(S)>=1?(d(),p("div",Ai,[l(e("img",{src:w("crystal"),alt:"",style:{display:"block",width:"3em","object-fit":"cover"}},null,8,Ri),[[A]]),U[2]||(U[2]=e("div",{style:{color:"#fff","font-size":"1.2em","font-weight":"600","text-shadow":"0 1px 0 #8b00d1"}}," *1 ",-1))])):(d(),p("div",zi,[l(e("img",Mi,null,512),[[A]]),U[3]||(U[3]=e("div",{style:{color:"#fff","font-size":"1.2em","font-weight":"600","text-shadow":"0 1px 0 #8b00d1"}}," *1000 ",-1))]))]),e("div",{style:{width:"25vw",height:"100%"},onClick:U[1]||(U[1]=G=>F(10))},[n(S)>=10?(d(),p("div",Di,[l(e("img",{src:w("crystal"),alt:"",style:{display:"block",width:"3em","object-fit":"cover"}},null,8,Pi),[[A]]),U[4]||(U[4]=e("div",{style:{color:"#fff","font-size":"1.2em","font-weight":"600","text-shadow":"0 1px 0 #8b00d1"}}," *10 ",-1))])):(d(),p("div",Ni,[l(e("img",Fi,null,512),[[A]]),U[5]||(U[5]=e("div",{style:{color:"#fff","font-size":"1.2em","font-weight":"600","text-shadow":"0 1px 0 #8b00d1"}}," *9000 ",-1))]))])])]),_:1},8,["imgUrl"])])}}},Ei=Re(Gi,[["__scopeId","data-v-47582b29"]]),Xi={style:{width:"100%",position:"relative"}},Hi={style:{width:"100%","min-width":"0","aspect-ratio":"1/0.95",display:"flex","justify-content":"center","align-items":"center"}},Oi=["src"],Wi={style:{"margin-top":"-0.5vw",display:"flex","justify-content":"center","align-items":"center"}},qi={style:{"font-size":"0.5em","font-weight":"600",color:"#ff3b76"}},Vi={key:0,style:{"margin-left":"1vw",width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center",color:"#ff79a1","font-size":"0.7em","font-weight":"600"}},Yi={key:1,style:{width:"100%",height:"100%",display:"flex","align-items":"center","justify-content":"center"}},Ji={key:0,src:ot,alt:"",style:{width:"1.3em","min-width":"0",display:"block","object-fit":"cover"}},Ki={style:{"font-size":"0.8em",color:"#ff79a1","font-weight":"600"}},Qi={style:{color:"#ff79a1","font-weight":"600"}},Zi={style:{display:"flex","justify-content":"center","align-items":"center"}},en={src:ot,alt:"",style:{width:"1.3em","min-width":"0",display:"block","object-fit":"cover"}},tn={style:{color:"#ff79a1","font-weight":"600"}},sn={__name:"signInItem",props:{rewards:{type:Object,default:()=>({})},currentDayIndex:{type:Number,default:0}},setup(s){const{t:i}=Se();ze(),Me();const ne=Ne(),{crystal:P,debris:B,TipsShow:R,needCheckInTipsShow:w,signInSuccessShow:S,signInInfo:X}=Pe(ne);De();const J=x=>Te("Ranking/Couple/",x),N=s,m=Q(()=>{let x=N.rewards?.addActivityPropsGroup?.activityRewardProps;return N.rewards?.lotteryTicketCount>0?[...x,{type:"TICKET",cover:J("crystal"),content:N.rewards.lotteryTicketCount}]:x}),z=Q(()=>{switch(m.value.length){case 1:return"display:flex;justify-content:center;align-items:center;width: 18vw;";case 2:return"display: grid;grid-template-columns: repeat(2, 1fr);grid-template-rows: repeat(2, 1fr);";case 3:return"display: grid;grid-template-columns: repeat(2, 1fr);grid-template-rows: repeat(2, 1fr);";case 4:return"display: grid;grid-template-columns: repeat(2, 1fr);grid-template-rows: repeat(2, 1fr);";default:return"display: grid;grid-template-columns: repeat(2, 1fr);grid-template-rows: repeat(2, 1fr);"}}),f=x=>{let I=m.value.length,C=[];switch(I){case 1:C=[];break;case 2:C=[{gridArea:"1/1",position:"relative",top:"2vw"},{gridArea:"2/2"}];break;case 3:C=[{gridArea:"1/1",position:"relative",left:"2vw"},{gridArea:"2/1",position:"relative"},{gridArea:"2/2",position:"relative",left:"2vw",bottom:"2vw"}];break;case 4:C=[{gridArea:"1/1"},{gridArea:"1/2"},{gridArea:"2/1"},{gridArea:"2/2"}];break;default:C=[];break}return C[x]},L=async()=>{try{const x=await pt();x.status&&(X.value=x.body||{})}catch(x){oe(x.response.errorMsg)}},M=async()=>{try{const x=await rt("2004471533988167125");x.status&&(P.value=x.body||0)}catch(x){oe(x.response.errorMsg)}},H=async()=>{try{let x=await at({userId:getUserId(),fragmentsIds:["2011710323414081538"]});x.status&&(B.value=x.body?.[0]?.quantity||0)}catch(x){oe(x.response.errorMsg)}},b=()=>{L(),M(),H()},h=async x=>{if(!x.isSigned)try{(await Zt({dayIndex:x.dayIndex})).status&&(S.value=!0,b())}catch(I){I.response.errorCode==500?R.value=!0:I.response.errorCode==3287?w.value=!0:oe(I.response.errorMsg)}},F=async x=>{try{(await es({dayIndex:x})).status&&(S.value=!0,b())}catch(I){I.response.errorCode==500?R.value=!0:I.response.errorCode==3283?w.value=!0:oe(I.response.errorMsg)}};return(x,I)=>{const C=Ce("smart-img");return d(),p("div",Xi,[D(Y,{style:{"min-height":"50.6vw"},imgUrl:J("rewardBg"),flip:!0,contentStyle:"inset: 4vw 6vw 10vw;",class:Rt({"grayscale-container":s.rewards.dayIndex>s.currentDayIndex||s.rewards.dayIndex<s.currentDayIndex&&!s.rewards.isSigned})},{default:q(()=>[e("div",{style:ve([{width:"100%",height:"100%"},z.value])},[(d(!0),p(se,null,ie(m.value,(K,T)=>(d(),Ee(Y,{style:ve([{"min-height":"19.3vw"},f(T)]),imgUrl:J("rewardGoodsBg"),flip:!0,contentStyle:"flex-direction: column;justify-content: space-between;align-items: center;"},{default:q(()=>[e("div",Hi,[e("img",{src:K.cover,alt:"",style:{width:"50%",display:"block","object-fit":"cover"}},null,8,Oi)]),e("div",Wi,[e("div",qi,r(n(nt)(K.type,K)),1)])]),_:2},1032,["imgUrl","style"]))),256))],4),e("div",{style:{position:"absolute",bottom:"-10vw",width:"60%",height:"10vw"},onClick:I[0]||(I[0]=K=>h(s.rewards))},[s.rewards.isSigned?(d(),p("div",Vi,r(n(i)("sign_in_received")),1)):(d(),p("div",Yi,[s.rewards.isPaid?l((d(),p("img",Ji,null,512)),[[C]]):we("",!0),e("div",Ki,r(s.rewards.isPaid?s.rewards.paidCost:n(i)("sign_in_free")),1)]))])]),_:1},8,["imgUrl","class"]),s.rewards.dayIndex<s.currentDayIndex&&!s.rewards.isSigned?(d(),p("div",{key:0,style:{position:"absolute",inset:"0",display:"flex","justify-content":"center","align-items":"center"},onClick:I[1]||(I[1]=K=>F(s.rewards.dayIndex))},[D(Y,{style:{width:"80%","min-height":"28vw"},imgUrl:J("makeUpBtBg"),contentStyle:"inset: 0;flex-direction: column;"},{default:q(()=>[e("div",Qi,r(n(i)("sign_in_make_up")),1),e("div",Zi,[l(e("img",en,null,512),[[C]]),e("div",tn,"*"+r(s.rewards.paidCost+500),1)])]),_:1},8,["imgUrl"])])):we("",!0)])}}},nn=Re(sn,[["__scopeId","data-v-1e172a39"]]),on={class:"timeBox"},rn={class:"timeText",style:{}},an={class:"timeText",style:{}},ln={class:"timeText",style:{}},cn={class:"timeText",style:{}},dn={style:{position:"relative",padding:"0 2vw 4vw",display:"grid","grid-template-columns":"repeat(2, 1fr)",gap:"4vw"}},un={style:{position:"absolute",top:"0",left:"0",width:"100%",height:"100%","pointer-events":"none","z-index":"1"}},gn=["src"],vn={__name:"signIn",setup(s){const{t:i}=Se();ze(),Me();const ne=Ne(),{signInInfo:P}=Pe(ne),B=De(),R=Q(()=>B.selectedLang?.type||"en"),w=u(!0),S=_=>Te("Ranking/Couple/",_),X=_=>R.value==="ar"?`${_}_ar`:_,J=u(0),N=u(0),m=u(0),z=u(0);let f=null;const M=u((()=>{const _=new Date,t=new Date(_.getTime()),y=_.getTime()+_.getTimezoneOffset()*6e4,g=new Date(y+8*36e5),U=g.getDay(),A=g.getHours(),G=U===0?6:U-1;let O;return G===0?A>=5?O=7:O=0:O=7-G,t.setDate(t.getDate()+O),t.setHours(5,0,0,0),t.getTime()})()),H=_=>_<10?`0${_}`:_,b=()=>{const _=Date.now();let t=M.value-_;t<=0&&(C(),M.value+=7*864e5,t=M.value-_);const y=Math.floor(t/1e3);J.value=Math.floor(y/(24*3600)),N.value=H(Math.floor(y%(24*3600)/3600)),m.value=H(Math.floor(y%3600/60)),z.value=H(Math.floor(y%60))},h=()=>{b(),f=setInterval(b,1e3)},F=_=>[{gridArea:"1/1"},{gridArea:"1/2"},{gridArea:"2/2"},{gridArea:"2/1"},{gridArea:"3/1"},{gridArea:"3/2"},{gridArea:"4/2"}][_],x=Q(()=>{const _=P.value?.dailyConfigs||[],t=[];for(let y=0;y<_.length-1;y++){const g=R.value==="ar";switch(y){case 0:t.push({style:g?"top: 10.6%; right: calc(50%);transform: scaleX(-1) translateX(-50%)":"top: 10.6%; left: calc(50%); transform: translateX(-50%);"});break;case 1:t.push({style:g?"top: calc(10.6% * 2 + 4.5vw); right: 70%; transform: scaleX(-1) rotate(90deg);":"top: calc(10.6% * 2 + 4.5vw); left: 75%; transform: translateX(-50%) rotate(90deg);"});break;case 2:t.push({style:g?"top: calc(10.6% * 3 + 4.5vw + 5.5vw); right: 50%; transform: scaleX(-1) translateX(-50%) rotate(180deg);":"top: calc(10.6% * 3 + 4.5vw + 5.5vw); left: 50%; transform: translateX(-50%) rotate(180deg);"});break;case 3:t.push({style:g?"top: calc(10.6% * 4 + 4.5vw * 2 + 4vw); right: 20%; transform: scaleX(-1) rotate(90deg);":"top: calc(10.6% * 4 + 4.5vw * 2 + 4vw); left: 25%; transform: translateX(-50%) rotate(90deg);"});break;case 4:t.push({style:g?"top: calc(10.6% * 5 + 4.5vw * 2 + 4vw * 2); right: 50%; transform: scaleX(-1) translateX(-50%);":"top: calc(10.6% * 5 + 4.5vw * 2 + 4vw * 2); left: 50%; transform: translateX(-50%);"});break;case 5:t.push({style:g?"top: calc(10.6% * 6 + 4.5vw * 3 + 4vw * 2); right: 70%; transform: scaleX(-1) rotate(90deg);":"top: calc(10.6% * 6 + 4.5vw * 3 + 4vw * 2); left: 75%; transform: translateX(-50%) rotate(90deg);"});break}}return t}),I=async()=>{try{const _=await pt();_.status&&(P.value=_.body||{})}catch(_){throw console.error("Failed to get sign in status:",_),_}},C=async()=>{await Promise.all([I()])},K=async()=>{const _=[],t=[];R.value=="en"?await pe(_):R.value=="ar"&&await pe(t)},T=async()=>{try{await Promise.all([C(),K()]),console.log("预加载完成,初始化数据成功")}catch(_){console.error("预加载过程中发生错误:",_)}finally{w.value=!1}},Z=async()=>{await Je(()=>{T()})};return Xe(()=>{Z(),h()}),it(()=>{f&&(clearInterval(f),f=null)}),(_,t)=>{const y=Ce("smart-img");return d(),p("div",null,[D(Y,{style:{"min-height":"126.7vw"},imgUrl:S(X("checkInRule")),contentStyle:"inset: 8vw 28vw 105vw;"},{default:q(()=>[e("div",on,[e("div",rn,r(J.value)+"D",1),t[0]||(t[0]=e("div",{class:"timeText timeGap"},null,-1)),e("div",an,r(N.value),1),t[1]||(t[1]=e("div",{class:"timeText timeGap"},":",-1)),e("div",ln,r(m.value),1),t[2]||(t[2]=e("div",{class:"timeText timeGap"},":",-1)),e("div",cn,r(z.value),1)])]),_:1},8,["imgUrl"]),e("div",dn,[(d(!0),p(se,null,ie(n(P).dailyConfigs,(g,U)=>(d(),Ee(nn,{key:U,rewards:g,currentDayIndex:n(P).currentDayIndex,style:ve(F(U))},null,8,["rewards","currentDayIndex","style"]))),128)),e("div",un,[(d(!0),p(se,null,ie(x.value,(g,U)=>l((d(),p("img",{key:"arrow-"+U,src:S("arrowRight"),style:ve([g.style,{position:"absolute",width:"8vw","object-fit":"contain"}]),alt:"arrow"},null,12,gn)),[[y]])),128))])])])}}},pn=Re(vn,[["__scopeId","data-v-8b38b5e9"]]),fn={style:{padding:"0 4vw",display:"grid","grid-template-columns":"repeat(3, 1fr)",gap:"2vw"}},yn={style:{width:"100%","min-width":"0","aspect-ratio":"1/0.95",display:"flex","justify-content":"center","align-items":"center"}},hn=["src"],wn={class:"conditions"},mn=["onClick"],bn=["src"],_n={__name:"exchange",setup(s){const{t:i}=Se();ze(),Me();const ne=Ne(),P=De(),B=Q(()=>P.selectedLang?.type||"en"),R=u(!0),w=h=>Te("Ranking/Couple/",h),{debris:S,fragmentNotEnoughShow:X,exchangeConfirmShow:J,exchangeItem:N}=Pe(ne),m=u([]),z=async()=>{try{const h=await Kt("APRIL_ACTIVITY_FRAGMENT");h.status&&(m.value=h.body||[])}catch(h){oe(h.response.errorMsg)}},f=async h=>{if(S.value<JSON.parse(h.rule.jsonData).need_fragments){X.value=!0;return}N.value={userId:tt(),propsGroupId:h.rule.id,fragmentsId:"2011710323414081538"},J.value=!0},L=async()=>{await Promise.all([z()])},M=async()=>{const h=[],F=[];B.value=="en"?await pe(h):B.value=="ar"&&await pe(F)},H=async()=>{try{await Promise.all([L(),M()]),console.log("预加载完成,初始化数据成功")}catch(h){console.error("预加载过程中发生错误:",h)}finally{R.value=!1}},b=async()=>{await Je(()=>{H()})};return Xe(()=>{b()}),(h,F)=>{const x=Ce("smart-img");return d(),p("div",fn,[(d(!0),p(se,null,ie(m.value,I=>(d(),Ee(Y,{style:{"min-height":"35.3vw"},key:I.id,imgUrl:w("goodsItem"),contentStyle:"flex-direction: column;justify-content: space-between;align-items: center;"},{default:q(()=>[e("div",yn,[e("img",{src:I.propsGroup?.activityRewardProps?.[0].cover,alt:"",style:{width:"70%",display:"block","object-fit":"cover"}},null,8,hn)]),e("div",wn,[e("div",{style:{"font-size":"1em","font-weight":"800",background:`linear-gradient(
|
||
180deg,
|
||
#ffdf6b 31.61%,
|
||
#ffe562 36.73%,
|
||
#fff 52.37%,
|
||
#ffe562 58.67%,
|
||
#ffa615 72.2%
|
||
)`,"background-clip":"text","-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"},onClick:C=>f(I)}," *"+r(n(nt)(I.propsGroup?.activityRewardProps?.[0]?.type,I.propsGroup?.activityRewardProps?.[0]))+"/ "+r(JSON.parse(I.rule.jsonData).need_fragments),9,mn),l(e("img",{src:w("debris"),alt:"",style:{display:"block",width:"1em","object-fit":"cover"}},null,8,bn),[[x]])])]),_:2},1032,["imgUrl"]))),128))])}}},xn=Re(_n,[["__scopeId","data-v-bec4ae7f"]]),kn={style:{padding:"4vw 0 8vw"}},$n={style:{"min-height":"13.33vw",width:"100vw",padding:"0 4vw",display:"flex","justify-content":"space-between","align-items":"center",gap:"2vw"}},In=["src"],Sn=["src"],Cn=["src"],Tn=["src"],jn=["src"],Un=["src"],Ln={style:{position:"relative"}},Bn=["src"],An={style:{display:"flex","align-items":"center",gap:"1vw"}},Rn=["src"],zn={style:{"font-size":"2em","font-weight":"600",color:"#ff79a1"}},Mn={style:{display:"flex","align-items":"center",gap:"1vw"}},Dn=["src"],Pn={style:{"font-size":"2em","font-weight":"600",color:"#ff79a1"}},Nn={__name:"Gameplay",setup(s){const{t:i}=Se();ze(),Me();const ne=Ne(),P=De(),B=Q(()=>P.selectedLang?.type||"en"),R=u(!0),w=T=>Te("Ranking/Couple/",T),S=T=>B.value==="ar"?`${T}_ar`:T,{crystal:X,debris:J,receiveRecordShow:N,receiveRecord:m}=Pe(ne),z=u(!0),f=u(!1),L=u(!1),M=T=>{switch(T){case"lottery":z.value=!0,f.value=!1,L.value=!1;break;case"signIn":z.value=!1,f.value=!0,L.value=!1;break;case"exchange":z.value=!1,f.value=!1,L.value=!0;break}},H=async()=>{try{const T=await rt("2004471533988167125");T.status&&(X.value=T.body||0)}catch(T){oe(T.response.errorMsg)}},b=async()=>{try{const T=await at({userId:tt(),fragmentsIds:["2011710323414081538"]});T.status&&(J.value=T.body?.[0]?.quantity||0)}catch(T){oe(T.response.errorMsg)}},h=async()=>{const T=await Jt({pageSize:100,pageNum:1});T.status&&T.body&&(m.value=T.body?.records||[],N.value=!0)},F=()=>{h()},x=async()=>{await Promise.all([H(),b()])},I=async()=>{const T=[],Z=[];B.value=="en"?await pe(T):B.value=="ar"&&await pe(Z)},C=async()=>{try{await Promise.all([x(),I()]),console.log("预加载完成,初始化数据成功")}catch(T){console.error("预加载过程中发生错误:",T)}finally{R.value=!1}},K=async()=>{await Je(()=>{C()})};return Xe(()=>{K()}),(T,Z)=>{const _=Ce("smart-img");return d(),p("div",kn,[e("div",$n,[e("div",{style:{flex:"1","min-width":"0"},onClick:Z[0]||(Z[0]=t=>M("lottery"))},[l(e("img",{src:w(S("gameLotteryBtActive")),alt:"",style:{width:"100%",display:"block","object-fit":"cover"}},null,8,In),[[$,z.value],[_]]),l(e("img",{src:w(S("gameLotteryBt")),alt:"",style:{width:"100%",display:"block","object-fit":"cover"}},null,8,Sn),[[$,!z.value],[_]])]),e("div",{style:{flex:"1","min-width":"0"},onClick:Z[1]||(Z[1]=t=>M("signIn"))},[l(e("img",{src:w(S("gameSignInBtActive")),alt:"",style:{width:"100%",display:"block","object-fit":"cover"}},null,8,Cn),[[$,f.value],[_]]),l(e("img",{src:w(S("gameSignInBt")),alt:"",style:{width:"100%",display:"block","object-fit":"cover"}},null,8,Tn),[[$,!f.value],[_]])]),e("div",{style:{flex:"1","min-width":"0"},onClick:Z[2]||(Z[2]=t=>M("exchange"))},[l(e("img",{src:w(S("gameExchangeBtActive")),alt:"",style:{width:"100%",display:"block","object-fit":"cover"}},null,8,jn),[[$,L.value],[_]]),l(e("img",{src:w(S("gameExchangeBt")),alt:"",style:{width:"100%",display:"block","object-fit":"cover"}},null,8,Un),[[$,!L.value],[_]])])]),e("div",Ln,[l(e("img",{src:w("historyBt"),alt:"",style:{width:"8vw",position:"absolute","z-index":"2",top:"0vw",right:"4vw"},onClick:F},null,8,Bn),[[_]]),D(Y,{style:{"min-height":"75.78vw",position:"relative","z-index":"1"},imgUrl:w(S("myPropsBg")),contentStyle:"inset: 28vw 17vw 25vw;justify-content:space-between;"},{default:q(()=>[e("div",An,[l(e("img",{src:w("crystal"),alt:"",style:{display:"block",width:"15vw","object-fit":"cover"}},null,8,Rn),[[_]]),e("div",zn,":"+r(n(X)),1)]),e("div",Mn,[l(e("img",{src:w("debris"),alt:"",style:{display:"block",width:"15vw","object-fit":"cover"}},null,8,Dn),[[_]]),e("div",Pn,":"+r(n(J)),1)])]),_:1},8,["imgUrl"])]),l(D(Ei,{style:{"margin-top":"-35vw"}},null,512),[[$,z.value]]),l(D(pn,null,null,512),[[$,f.value]]),l(D(xn,null,null,512),[[$,L.value]])])}}},Fn={style:{position:"relative",width:"100%",height:"32vw",overflow:"hidden","pointer-events":"none"}},Gn=["onAnimationend"],En={style:{position:"relative",display:"flex","align-items":"center",gap:"2vw"}},Xn={style:{position:"absolute",inset:"0",display:"flex","justify-content":"center","align-items":"center"}},Hn=["src"],On=["src"],Wn=["src"],qn={style:{"white-space":"nowrap","font-weight":"700",color:"#ff69ad"}},Vn={__name:"Barrage",props:{barrageList:{type:Array,required:!0,default:()=>[]},maxItems:{type:Number,default:4},loopInterval:{type:Number,default:2e3}},setup(s){const{locale:i,t:ne}=Se(),P=b=>Te("Ranking/Couple/",b),B=s,R=u([[],[]]),w=u(0),S=u(0),X=Q(()=>R.value.filter(b=>b.length>0)),J=b=>{const h=i.value==="ar";return{animationDuration:`${b.duration}s`,animationDelay:`${b.delay}s`,"--start-pos":`${b.startPos}px`,borderRadius:"200px",background:"radial-gradient(44.73% 89.31% at 30.77% 68.52%, rgba(149, 255, 250, 0.70) 0%, rgba(149, 255, 250, 0.00) 100%), radial-gradient(57.68% 103.36% at 65.38% 100%, #8EB2FF 0%, rgba(142, 178, 255, 0.00) 100%), radial-gradient(390.09% 113.35% at 100% 0%, #CFAFFF 0%, rgba(207, 175, 255, 0.00) 100%), radial-gradient(189.62% 90.06% at 5.38% 7.41%, #FFCCC1 0%, rgba(255, 204, 193, 0.00) 100%), #FFF",border:"1px solid rgba(0, 0, 0, 0.05)",...h?{right:"0",left:"auto",transform:"translateX(-100vw)"}:{left:"0",right:"auto",transform:"translateX(100vw)"}}},N=b=>{const h=b.content.length;return{duration:Math.min(5+h*.1,10),startPos:0}},m=b=>{const h=R.value.reduce((F,x,I)=>x.length<R.value[F].length?I:F,0);R.value[h].length<B.maxItems&&R.value[h].push({...b,id:w.value++,delay:0,...N(b)})},z=()=>{R.value.forEach(b=>{for(let h=b.length-1;h>=0;h--)b[h].completed&&b.splice(h,1)})},f=b=>{R.value.forEach(h=>{const F=h.find(x=>x.id===b);F&&(F.completed=!0)})},L=()=>{if(B.barrageList.length===0)return null;const b=B.barrageList[S.value];return S.value=(S.value+1)%B.barrageList.length,{...b}};let M=null;const H=()=>{M=setInterval(()=>{z();const b=L();b&&m(b)},B.loopInterval)};return Xe(()=>{H()}),it(()=>{clearInterval(M)}),ct(()=>B.barrageList,b=>{S.value=0,clearInterval(M),b.length!==0&&H()},{deep:!0}),(b,h)=>{const F=Ce("smart-img");return d(),p("div",Fn,[(d(!0),p(se,null,ie(X.value,(x,I)=>(d(),p("div",{key:I,style:ve([{position:"absolute",width:"100%",height:"50px"},{top:`calc(${I} * 16vw)`}])},[(d(!0),p(se,null,ie(x,C=>(d(),p("div",{key:C.id,class:"barrage-item",style:ve([{position:"absolute","border-radius":"26px",padding:"8px",display:"flex","align-items":"center",gap:"2vw","backdrop-filter":"blur(1px)"},J(C)]),onAnimationend:K=>f(C.id)},[e("div",En,[e("div",Xn,[l(e("img",{src:P("coupleSign"),alt:"",style:{width:"5vw",display:"block","object-fit":"cover"}},null,8,Hn),[[F]])]),e("img",{src:C.senderAvatar||"",alt:"",style:{width:"8vw","border-radius":"50%",display:"block","aspect-ratio":"1/1","object-fit":"cover"},onError:h[0]||(h[0]=(...K)=>n(E)&&n(E)(...K))},null,40,On),e("img",{src:C.receiverAvatar||"",alt:"",style:{width:"8vw","border-radius":"50%",display:"block","aspect-ratio":"1/1","object-fit":"cover"},onError:h[1]||(h[1]=(...K)=>n(E)&&n(E)(...K))},null,40,Wn)]),e("div",qn,r(C.content),1)],44,Gn))),128))],4))),128))])}}},Yn=Re(Vn,[["__scopeId","data-v-e867e898"]]),Jn={class:"fullPage"},Kn={class:"loading-container"},Qn={style:{width:"100vw","min-height":"100vh",overflow:"hidden",position:"relative"}},Zn={style:{position:"relative","z-index":"2","margin-top":"150vw"}},eo={style:{"min-height":"68.2vw",display:"flex","justify-content":"center","align-items":"center"}},to=["src"],so={style:{width:"100%",height:"73%","min-width":"0",display:"flex",overflow:"hidden"},class:"scrollX"},io=["onClick"],no={key:1,style:{position:"absolute",inset:"0","z-index":"20",display:"flex","justify-content":"center","align-items":"center","pointer-events":"none"}},oo=["onClick"],ro=["onClick"],ao={style:{position:"relative",width:"100%",height:"100%"}},lo={style:{position:"relative","z-index":"-1",top:"26%",left:"0",width:"100%",height:"50%",display:"flex","justify-content":"center","align-items":"center",gap:"16%"}},co=["src"],uo=["src"],go={style:{"min-width":"0",display:"flex","justify-content":"center","align-items":"center"}},vo={style:{"border-radius":"12px",border:"1.325px solid #fff6e0",background:"linear-gradient(270deg, #ffcc46 0.03%, #ffdb7b 99.97%)","box-shadow":`0 -2.649px 3.974px 0 rgba(255, 241, 205, 0.48) inset,
|
||
0 5.298px 7.947px 0 #fff1cd inset`,display:"flex","flex-direction":"column","justify-content":"center","align-items":"center",padding:"1vw 5vw"}},po={style:{"font-size":"1.2em",color:"#fe649b","font-weight":"700"}},fo={style:{"font-size":"0.9em",color:"#fe649b","font-weight":"700"}},yo={style:{"min-height":"31.18vw",width:"100vw",padding:"0 10vw",display:"flex","justify-content":"center","align-items":"center",gap:"10vw"}},ho=["src"],wo=["src"],mo=["src"],bo=["src"],_o={style:{height:"25vw"}},xo={style:{width:"100vw",position:"fixed",bottom:"0","z-index":"2"}},ko={style:{width:"10vw",display:"flex","justify-content":"center","align-items":"center"}},$o=["src"],Io={style:{width:"36vw"}},So={style:{width:"100%",padding:"3vw 5vw",height:"80%",display:"flex","justify-content":"space-between","align-items":"center"}},Co=["src"],To=["src"],jo={style:{flex:"1","min-width":"0",height:"100%",display:"flex","flex-direction":"column","justify-content":"center",gap:"1vw"}},Uo={style:{width:"100%",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Lo={style:{width:"100%",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"}},Bo={style:{width:"auto","min-width":"0",display:"flex","align-items":"center"}},Ao=["src"],Ro={style:{"font-weight":"700"}},zo={key:1,style:{"border-radius":"16px 16px 0 0",background:`radial-gradient(
|
||
171.8% 117.34% at 34.23% 104.78%,
|
||
rgba(255, 188, 221, 0) 0%,
|
||
#ffbcdd 100%
|
||
),
|
||
linear-gradient(303deg, rgba(255, 255, 255, 0) 0%, #ff4656 91.85%),
|
||
linear-gradient(292deg, #ff3bc4 0%, rgba(255, 255, 255, 0) 100.5%), #fff`,padding:"24px 12px 24px 12px",display:"flex","justify-content":"center","align-items":"center",gap:"2vw"}},Mo={style:{"font-size":"0.8em","font-weight":"700",color:"#fff"}},Do={style:{position:"fixed",bottom:"0",width:"100%"}},Po={style:{margin:"0","font-size":"1.2em","font-weight":"600",color:"#fff","margin-bottom":"4vw"}},No={key:0,style:{display:"flex","flex-direction":"column","align-items":"center",gap:"4vw"}},Fo=["onClick"],Go={class:"couple-item-info"},Eo=["src"],Xo={style:{flex:"1","min-width":"0"}},Ho={style:{"font-size":"0.9em","text-overflow":"ellipsis",overflow:"hidden","white-space":"nowrap"}},Oo={style:{"font-size":"0.8em",color:"rgba(255, 255, 255, 0.6)"}},Wo={style:{width:"10.8%","min-width":"0","align-self":"stretch",display:"flex","justify-content":"center","align-items":"center"}},qo={key:0,style:{width:"30%","aspect-ratio":"1/1","border-radius":"50%",background:"linear-gradient(152deg, #f5a8b7 7.01%, #d61f3f 92.99%)"}},Vo=["disabled"],Yo={key:1,style:{display:"flex","flex-direction":"column","align-items":"center",gap:"4vw"}},Jo=["src"],Ko={style:{color:"rgba(0, 0, 0, 0.4)","font-size":"1em","font-weight":"700"}},Qo={style:{"font-size":"1.1em","font-weight":"700"}},Zo={style:{"font-size":"0.8em","font-weight":"500"}},er={style:{width:"100%",display:"flex","justify-content":"space-around","align-items":"center"}},tr={style:{width:"60vw",padding:"2vw",display:"flex","justify-content":"center","align-items":"center","border-radius":"8px",background:"rgba(255, 255, 255, 0.4)","backdrop-filter":"blur(32px)"}},sr={style:{"font-size":"0.8em","font-weight":"700",color:"#fff"}},ir={style:{width:"60vw",padding:"2vw",display:"flex","justify-content":"center","align-items":"center","border-radius":"8px",background:"rgba(255, 255, 255, 0.4)","backdrop-filter":"blur(32px)"}},nr={style:{"font-size":"0.8em","font-weight":"700",color:"#fff"}},or={style:{width:"60vw",padding:"2vw",display:"flex","justify-content":"center","align-items":"center","border-radius":"8px",background:"rgba(255, 255, 255, 0.4)","backdrop-filter":"blur(32px)"}},rr={style:{"font-size":"0.8em","font-weight":"700",color:"#fff"}},ar={style:{width:"100%",display:"flex","align-items":"center",gap:"2vw"}},lr=["src"],cr={style:{flex:"1","min-width":"0","align-self":"stretch",display:"flex","flex-direction":"column","justify-content":"center",gap:"1vw"}},dr={style:{"min-width":"0",color:"#ff79a1","font-size":"0.9em","font-weight":"700","text-overflow":"ellipsis",overflow:"hidden","white-space":"nowrap"}},ur={style:{"font-size":"0.8em","font-weight":"500",color:"#ff79a1"}},gr={class:"scrollY",style:{flex:"1",width:"100%",color:"#ff79a1","font-weight":"600","white-space":"pre-wrap","overflow-y":"auto"}},vr={style:{width:"100%",display:"flex","justify-content":"space-between","align-items":"center"}},pr={style:{width:"8vw","align-self":"stretch",display:"flex","justify-content":"center","align-items":"center"}},fr=["src"],yr=["src"],hr={style:{width:"8vw","align-self":"stretch",display:"flex","justify-content":"center","align-items":"center"}},wr=["src"],mr={style:{width:"100%",height:"5vw","text-align":"center","font-size":"0.9em","font-weight":"590",position:"relative",color:"#ff79a1"}},br={key:0,class:"resultNum"},_r={style:{width:"100%",height:"100%","overflow-y":"auto",display:"flex","flex-direction":"column",gap:"8px"},class:"scrollY"},xr={style:{"border-radius":"12px",border:"2px solid #fff",background:`linear-gradient(
|
||
264deg,
|
||
rgba(255, 220, 220, 0.4) 10.17%,
|
||
rgba(255, 151, 151, 0.4) 60.22%,
|
||
rgba(255, 220, 220, 0.4) 103.12%
|
||
)`,"box-shadow":`0 36.858px 13.981px 0 rgba(255, 106, 106, 0.02),
|
||
0 20.335px 12.71px 0 rgba(255, 106, 106, 0.08),
|
||
0 8.897px 8.897px 0 rgba(255, 106, 106, 0.13),
|
||
0 2.542px 5.084px 0 rgba(255, 106, 106, 0.15)`,"backdrop-filter":"blur(4.5px)",display:"flex",padding:"12px","justify-content":"space-between","align-items":"center"}},kr={style:{display:"flex","align-items":"center",gap:"4px"}},$r=["src"],Ir={style:{"font-weight":"590","font-size":"0.9em",direction:"ltr","text-align":"left"}},Sr={style:{"font-weight":"510","font-size":"0.8em",direction:"ltr","text-align":"left"}},Cr={style:{width:"100%",height:"100%","overflow-y":"auto",display:"flex","flex-direction":"column",gap:"8px"},class:"scrollY"},Tr={style:{"border-radius":"12px",border:"2px solid #fff",background:`linear-gradient(
|
||
264deg,
|
||
rgba(255, 220, 220, 0.4) 10.17%,
|
||
rgba(255, 151, 151, 0.4) 60.22%,
|
||
rgba(255, 220, 220, 0.4) 103.12%
|
||
)`,"box-shadow":`0 36.858px 13.981px 0 rgba(255, 106, 106, 0.02),
|
||
0 20.335px 12.71px 0 rgba(255, 106, 106, 0.08),
|
||
0 8.897px 8.897px 0 rgba(255, 106, 106, 0.13),
|
||
0 2.542px 5.084px 0 rgba(255, 106, 106, 0.15)`,"backdrop-filter":"blur(4.5px)",display:"flex",padding:"12px","justify-content":"space-between","align-items":"center"}},jr={style:{"min-width":"0",display:"flex","align-items":"center",gap:"4px"}},Ur=["src"],Lr=["src"],Br={style:{"min-width":"0","font-weight":"590","font-size":"0.9em",direction:"ltr","text-align":"left"}},Ar={style:{"min-width":"0","font-weight":"510","font-size":"0.8em",direction:"ltr","text-align":"left"}},Rr={style:{color:"rgba(0, 0, 0, 0.4)","font-size":"0.8em","font-weight":"500"}},zr={style:{width:"100%",display:"flex","justify-content":"space-around","align-items":"center"}},Mr=["src"],Dr={style:{"font-size":"2em","font-weight":"700",background:`linear-gradient(
|
||
180deg,
|
||
#ffdf6b 31.61%,
|
||
#ffe562 36.73%,
|
||
#fff 52.37%,
|
||
#ffe562 58.67%,
|
||
#ffa615 72.2%
|
||
)`,"background-clip":"text","-webkit-background-clip":"text","-webkit-text-fill-color":"transparent"}},Pr=["src"],Nr={style:{width:"60vw",padding:"2vw",display:"flex","justify-content":"center","align-items":"center","border-radius":"8px",background:"rgba(255, 255, 255, 0.4)","backdrop-filter":"blur(32px)"}},Fr={style:{"font-size":"0.8em","font-weight":"700",color:"#fff"}},Gr={style:{position:"relative",width:"100%"}},Er=["placeholder"],Xr={style:{position:"absolute",bottom:"8px",right:"12px","font-size":"0.8em",color:"rgba(0, 0, 0, 0.4)","font-weight":"500",background:"transparent","z-index":"1"}},Hr={style:{width:"100%",display:"flex","align-items":"center",gap:"1vw"}},Or={key:0,style:{width:"0.8em","aspect-ratio":"1/1","border-radius":"50%",background:"linear-gradient(152deg, #f5a8b7 7.01%, #d61f3f 92.99%)"}},Wr={style:{flex:"1","min-width":"0",color:"rgba(0, 0, 0, 0.4)","font-size":"0.8em","font-weight":"500"}},qr={style:{width:"100%",display:"flex","justify-content":"space-around","align-items":"center"}},Vr={__name:"index",setup(s){const{t:i}=Se(),ne=ze();Me();const P=Ne(),{fragmentNotEnoughShow:B,helpShow:R,topRewardShow:w,topReward:S,myRanking:X,crystal:J,debris:N,TipsShow:m,needCheckInTipsShow:z,signInSuccessShow:f,rewardShow:L,reward:M,resultShow:H,result:b,drawRecordShow:h,myRecords:F,receiveRecordShow:x,receiveRecord:I,exchangeConfirmShow:C,exchangeItem:K}=Pe(P),T=De(),Z=Q(()=>T.selectedLang?.type||"en"),_=u(!0),t=o=>Te("Ranking/Couple/",o),y=o=>Z.value==="ar"?`${o}_ar`:o,g=o=>String(o).split(""),U=o=>/^[0-9]$/.test(o)?t(`num${o}`):"",A=u([]),G=u(!0),O=u(!1),ae=o=>{switch(o){case"ranking":G.value=!0,O.value=!1;break;case"gamePlay":G.value=!1,O.value=!0;break}},fe=u({}),Ke=u([]),re=u({}),le=u(""),He=u(0),be=u(0),je=u([]),Oe=u("0"),ee=u(0),Fe=u(0),Ge=u(0),Ue=u(!1),We=u(!1),qe=u(0),Le=u(!1),v=u([{name:"Aquarius",time:"2026.1.20-2.18",bgUrl:t("AquariusCoupleFrame")},{name:"Pisces",time:"2026.2.19-3.20",bgUrl:t("PiscesCoupleFrame")},{name:"Aries",time:"2026.3.21-4.19",bgUrl:t("AriesCoupleFrame")},{name:"Taurus",time:"2026.4.20-5.20",bgUrl:t("")},{name:"Gemini",time:"2026.5.21-6.21",bgUrl:t("")},{name:"Cancer",time:"2026.6.22-7.22",bgUrl:t("")},{name:"Leo",time:"2026.7.23-8.22",bgUrl:t("")},{name:"Virgo",time:"2026.8.23-9.22",bgUrl:t("")},{name:"Libra",time:"2026.9.23-10.22",bgUrl:t("")},{name:"Scorpio",time:"2026.10.23-11.21",bgUrl:t("")},{name:"Sagittarius",time:"2026.11.22-12.21",bgUrl:t("")},{name:"Capricorn",time:"2026.12.22-1.19",bgUrl:t("")}]),c=(o,a)=>{const de=Date.now();Ue.value||We.value||Le.value||de-qe.value<100||o&&(Le.value=!0,qe.value=de,me(o),setTimeout(()=>{Le.value=!1},50))},j=(o,a)=>{const de=Date.now();Le.value||ee.value==o||We.value||de-qe.value<100||(Le.value=!0,We.value=!0,ee.value=o,qe.value=de,Be(),setTimeout(()=>{We.value=!1,Le.value=!1},800))},W=o=>{Fe.value=o.touches[0].clientX,Ue.value=!1},V=o=>{if(!o.touches||o.touches.length===0)return;Ge.value=o.touches[0].clientX;const a=Ge.value-Fe.value;Math.abs(a)>10&&(Ue.value=!0)},_e=o=>{if(!Fe.value){Ue.value=!1;return}o.changedTouches&&o.changedTouches.length>0&&(Ge.value=o.changedTouches[0].clientX);const a=50,de=Ge.value-Fe.value,ue=de<-a,k=de>a;ue&&ee.value>0?j(ee.value-1):k&&ee.value<je.value.length-1&&j(ee.value+1),Fe.value=0,Ge.value=0,Ue.value=!1},Be=()=>{const de=42*ee.value;Oe.value=de+"vw"},ce=o=>{re.value.account===o.account?re.value={}:re.value=o},st=()=>{if(!le.value.trim()){He.value=0;return}le.value.length>80&&(le.value=le.value.slice(0,80)),He.value=le.value.length},Ve=u(!1),xe=u(!1),he=u(!1),ke=u(!1),Qe=u(!1),ft=Q(()=>B.value||R.value||w.value||Ve.value||xe.value||he.value||m.value||Qe.value||z.value||f.value||L.value||H.value||h.value||x.value||C.value),yt=Q(()=>B.value||R.value||w.value||Ve.value||he.value||m.value||Qe.value||z.value||f.value||L.value||H.value||h.value||x.value||C.value),lt=o=>{switch(o){case"myCouple":$e(),xe.value=!0;break;case"writeLetter":$e(),he.value=!0;break;case"confirm":if(!le.value.trim())return;$e(),Qe.value=!0;break;case"tips":Ye(),m.value=!0;break;default:$e();break}},$e=()=>{B.value=!1,R.value=!1,w.value=!1,Ve.value=!1,xe.value=!1,he.value=!1,m.value=!1,Qe.value=!1,z.value=!1,f.value=!1,H.value=!1,h.value=!1,x.value=!1,C.value=!1},Ze=u(null),et=u(null);ct(()=>z.value,o=>{o&&(Ze.value&&clearTimeout(Ze.value),Ze.value=setTimeout(()=>{z.value=!1},1500))}),ct(()=>f.value,o=>{o&&(et.value&&clearTimeout(et.value),et.value=setTimeout(()=>{f.value=!1},1500))});const Ye=()=>{$e(),re.value={},le.value="",He.value=0,ke.value=!1},dt=zt(()=>{ht()},1e3),ht=async()=>{if(re.value.account)try{await Ft({receiverId:re.value.id,content:le.value,isPublic:ke.value?1:0}),Ye()}catch(o){o.response.errorCode==5e3&&(Ye(),lt("tips"))}},wt=()=>{ne.push("/recharge")},mt=async()=>{const o=await Gt();o.status&&o.body&&(A.value=o.body)},bt=async()=>{const o=await Ht();o.status&&o.body&&(Array.isArray(o.body)&&o.body.length>0?je.value=o.body:je.value=[{}])},_t=async()=>{const o=await Et();o.status&&o.body&&(fe.value=o.body,fe.value.id&&(Ve.value=!0))},xt=async()=>{const o=await Nt();o.status&&o.body&&(Ke.value=o.body)},kt=async()=>{try{const o=await rt("2004471533988167125");o.status&&(J.value=o.body||0)}catch(o){oe(o.response.errorMsg)}},$t=async()=>{try{const o=await at({userId:tt(),fragmentsIds:["2011710323414081538"]});o.status&&(N.value=o.body?.[0]?.quantity||0)}catch(o){oe(o.response.errorMsg)}},It=()=>{kt(),$t()},St=async()=>{try{(await Qt(K.value)).status&&(It(),K.value=null,C.value=!1)}catch(o){console.log("error:",o),showWarning(o.response.errorMsg)}},Ct=async()=>{await Promise.all([mt(),_t(),xt(),bt()])},Tt=async()=>{const o=[t("bg1"),t("bg2"),t("bg3"),t("bg4"),t("bg5"),t("coupleSign"),t(y("letterBg")),t(y("historyTopBg")),t("AquariusCoupleFrame"),t("PiscesCoupleFrame"),t(y("rankingBtActive")),t(y("rankingBt")),t(y("gamePlayBtActive")),t(y("gamePlayBt")),t(y("rankingWeeklyBtActive")),t(y("rankingWeeklyBt")),t(y("rankingSeasonBtActive")),t(y("rankingSeasonBt")),t(y("gameLotteryBtActive")),t(y("gameLotteryBt")),t(y("gameSignInBtActive")),t(y("gameSignInBt")),t(y("gameExchangeBtActive")),t(y("gameExchangeBt")),t("timeBg"),t("helpBt"),t("top1"),t("top2-3"),t("top2RankingBg"),t("top2Frame"),t("top3RankingBg"),t("top3Frame"),t("rankingCoupleSign"),t("rankingItemBg"),t("distribution"),t("num0"),t("num1"),t("num2"),t("num3"),t("num4"),t("num5"),t("num6"),t("num7"),t("num8"),t("num9"),t("myRankingBg"),t("distribution"),t(y("lastLetterBg"))];await pe(o)},jt=async()=>{try{await Promise.all([Ct(),Tt()]),console.log("预加载完成,初始化数据成功")}catch(o){console.error("预加载过程中发生错误:",o)}finally{_.value=!1}},Ut=async()=>{await pe([])},Lt=async()=>{await Je(()=>{jt()})};return Xe(()=>{Lt(),Ut()}),it(()=>{Ze.value&&clearTimeout(Ze.value),et.value&&clearTimeout(et.value)}),(o,a)=>{const de=Mt,ue=Ce("smart-img");return d(),p("div",Jn,[l(e("div",Kn,[D(gt,{backgroundImages:[t("bg1"),t("bg2"),t("bg3")]},null,8,["backgroundImages"]),D(de),e("p",null,r(o.$t("loading"))+"...",1)],512),[[$,_.value]]),l(e("div",Qn,[D(gt,{backgroundImages:[t("bg1"),t("bg2"),t("bg3"),t("bg4"),t("bg5")]},null,8,["backgroundImages"]),e("div",Zn,[D(Yn,{style:{display:"block",width:"100vw",height:"30vw"},barrageList:A.value},null,8,["barrageList"]),e("div",eo,[l(e("img",{src:t(y("letterBg")),alt:"",style:{width:"90%"},onClick:a[0]||(a[0]=k=>xe.value=!0)},null,8,to),[[ue]])]),D(Y,{style:{"min-height":"104.83vw"},imgUrl:t(y("historyTopBg")),contentStyle:"inset: 30vw 9vw 27vw;flex-direction: column;gap:2vw"},{default:q(()=>[e("div",so,[e("div",{class:"topList",style:ve([{left:Oe.value},{"touch-action":"pan-x"}]),onTouchstart:W,onTouchmove:V,onTouchend:_e},[a[30]||(a[30]=e("div",{style:{width:"9vw","min-width":"0","flex-shrink":"0"}},null,-1)),(d(!0),p(se,null,ie(je.value,(k,ge)=>(d(),Ee(Y,{key:`couple-${k.userId||ge}`,style:ve([{"z-index":"1","min-width":"0","flex-shrink":"0",transition:"all 0.8s ease"},{width:ge===ee.value?"60vw":"40vw",zIndex:ge===ee.value?20:1}]),imgUrl:v.value[ge]?.bgUrl,contentStyle:""},{default:q(()=>[ge!==ee.value?(d(),p("div",{key:0,style:{position:"absolute",inset:"0","z-index":"9","pointer-events":"auto"},onClick:te(Ie=>j(ge),["stop"])},null,8,io)):we("",!0),ge===ee.value?(d(),p("div",no,[e("div",{style:{flex:"1","min-width":"0","align-self":"stretch","pointer-events":"auto"},onClick:te(Ie=>c(k.userId),["stop"])},null,8,oo),e("div",{style:{flex:"1","min-width":"0","align-self":"stretch","pointer-events":"auto"},onClick:te(Ie=>c(k.cpUserId),["stop"])},null,8,ro)])):we("",!0),e("div",ao,[e("div",lo,[e("img",{src:k?.userAvatar||"",alt:"",style:{display:"block",height:"100%","object-fit":"cover","aspect-ratio":"1/1","border-radius":"50%"},onError:a[1]||(a[1]=(...Ie)=>n(E)&&n(E)(...Ie))},null,40,co),e("img",{src:k?.cpUserAvatar||"",alt:"",style:{display:"block",height:"100%","object-fit":"cover","aspect-ratio":"1/1","border-radius":"50%"},onError:a[2]||(a[2]=(...Ie)=>n(E)&&n(E)(...Ie))},null,40,uo)])])]),_:2},1032,["style","imgUrl"]))),128)),a[31]||(a[31]=e("div",{style:{width:"9vw","min-width":"0","flex-shrink":"0"}},null,-1))],36)]),e("div",go,[e("div",vo,[e("div",po," Season"+r(ee.value+1),1),e("div",fo,r(v.value[ee.value]?.time),1)])])]),_:1},8,["imgUrl"]),e("div",yo,[e("div",{style:{flex:"1","min-width":"0"},onClick:a[3]||(a[3]=k=>ae("ranking"))},[l(e("img",{src:t(y("rankingBtActive")),alt:"",style:{width:"100%",display:"block","object-fit":"cover"}},null,8,ho),[[$,G.value],[ue]]),l(e("img",{src:t(y("rankingBt")),alt:"",style:{width:"100%",display:"block","object-fit":"cover"}},null,8,wo),[[$,!G.value],[ue]])]),e("div",{style:{flex:"1","min-width":"0"},onClick:a[4]||(a[4]=k=>ae("gamePlay"))},[l(e("img",{src:t(y("gamePlayBtActive")),alt:"",style:{width:"100%",display:"block","object-fit":"cover"}},null,8,mo),[[$,O.value],[ue]]),l(e("img",{src:t(y("gamePlayBt")),alt:"",style:{width:"100%",display:"block","object-fit":"cover"}},null,8,bo),[[$,!O.value],[ue]])])]),l(D(ki,null,null,512),[[$,G.value]]),l(D(Nn,null,null,512),[[$,O.value]])]),l(e("div",_o,null,512),[[$,G.value]]),l(e("div",xo,[n(X)?.cpUserId?(d(),Ee(Y,{key:0,style:{width:"100%"},flip:!0,imgUrl:t("myRankingBg"),contentStyle:"padding: 0 5%;justify-content: flex-start;"},{default:q(()=>[e("div",ko,[(d(!0),p(se,null,ie(g(n(X).rank||999),(k,ge)=>l((d(),p("img",{src:U(k),style:{display:"block",width:"3vw","object-fit":"cover"}},null,8,$o)),[[ue]])),256))]),e("div",Io,[e("div",So,[e("img",{src:n(X).userAvatar||"",alt:"",style:{display:"block","min-width":"0",width:"12vw","object-fit":"cover","aspect-ratio":"1/1","border-radius":"50%",border:"1px solid #fefa9f"},onError:a[5]||(a[5]=(...k)=>n(E)&&n(E)(...k))},null,40,Co),e("img",{src:n(X).cpUserAvatar||"",alt:"",style:{display:"block","min-width":"0",width:"12vw","object-fit":"cover","aspect-ratio":"1/1","border-radius":"50%",border:"1px solid #fefa9f"},onError:a[6]||(a[6]=(...k)=>n(E)&&n(E)(...k))},null,40,To)])]),e("div",jo,[e("div",Uo,r(n(X).userNickname||""),1),e("div",Lo,r(n(X).cpUserNickname||""),1)]),e("div",Bo,[l(e("img",{src:t("distribution"),alt:"",style:{width:"10vw",display:"block","object-fit":"cover"}},null,8,Ao),[[ue]]),e("div",Ro,r(n(X).total||"0"),1)])]),_:1},8,["imgUrl"])):(d(),p("div",zo,[e("div",Mo,r(n(i)("no_relationship")),1),e("div",{style:{"font-size":"0.8em",color:"#e14f69","font-weight":"700","box-sizing":"border-box","border-bottom":"1px solid #e14f69"},onClick:a[7]||(a[7]=k=>n(me)(n(tt)()))},r(n(i)("go_add_cp")),1)]))],512),[[$,G.value]]),D(Pt,{maskLayerShow:ft.value,onClick:$e},{default:q(()=>[l(e("div",Do,[e("div",{style:{"border-radius":"16px 16px 0 0",background:`radial-gradient(
|
||
171.8% 117.34% at 34.23% 104.78%,
|
||
rgba(255, 188, 221, 0) 0%,
|
||
#ffbcdd 100%
|
||
),
|
||
linear-gradient(303deg, rgba(255, 255, 255, 0) 0%, #ff4656 91.85%),
|
||
linear-gradient(292deg, #ff3bc4 0%, rgba(255, 255, 255, 0) 100.5%), #fff`,"max-height":"80vh",overflow:"hidden",display:"flex","flex-direction":"column","align-items":"center",gap:"10px",padding:"20px"},onClick:a[10]||(a[10]=te(()=>{},["stop"]))},[e("div",Po,r(n(i)("my_couple")),1),Ke.value.length>0?(d(),p("div",No,[(d(!0),p(se,null,ie(Ke.value,(k,ge)=>(d(),p("div",{key:ge,style:{position:"relative"},onClick:Ie=>ce(k.cpUserProfile)},[D(Y,{imgUrl:t("coupleItem"),flip:!0,contentStyle:"justify-content: space-between;"},{default:q(()=>[e("div",Go,[e("img",{src:k?.cpUserProfile.userAvatar||"",alt:"",style:{width:"3em","aspect-ratio":"1/1","border-radius":"50%"},onError:a[8]||(a[8]=(...Ie)=>n(E)&&n(E)(...Ie))},null,40,Eo),e("div",Xo,[e("div",Ho,r(k?.cpUserProfile.userNickname),1),e("div",Oo," ID:"+r(k?.cpUserProfile.account),1)])]),e("div",Wo,[re.value.account===k?.cpUserProfile.account?(d(),p("div",qo)):we("",!0)])]),_:2},1032,["imgUrl"])],8,Fo))),128)),e("button",{style:ve([{width:"80%",padding:"12px 16px",border:"none",color:"#fff","font-weight":"600"},re.value.account?"border-radius: 200px;background: linear-gradient(180deg, #FFACBB 0%, rgba(255, 172, 187, 0.00) 58.38%), #FF4768;box-shadow: 0 1px 4.5px 0 rgba(0, 0, 0, 0.10), -1px 0 5px 0 rgba(255, 255, 255, 0.70) inset, -3.5px 0 7.5px 0 rgba(255, 255, 255, 0.20) inset, 1px 0 5px 0 rgba(255, 255, 255, 0.70) inset, 3.5px 0 7.5px 0 rgba(255, 255, 255, 0.20) inset;":"border-radius: 32px;background: linear-gradient(135deg, rgba(162, 162, 162, 0.50) 2.82%, rgba(100, 100, 100, 0.50) 99.15%);"]),disabled:!re.value.account,onClick:a[9]||(a[9]=k=>lt("writeLetter"))},r(n(i)("send_love_letter")),13,Vo)])):(d(),p("div",Yo,[e("img",{src:t("noCoupleSign"),alt:"",style:{width:"50%",display:"block"}},null,8,Jo),e("p",Ko,r(n(i)("no_couples")),1)]))])],512),[[$,xe.value]]),l(e("div",{style:{width:"100vw",height:"100vh",display:"flex","justify-content":"center","align-items":"center"},onClick:$e},[l(e("div",{style:{width:"90%","border-radius":"12px",background:`radial-gradient(
|
||
171.8% 117.34% at 34.23% 104.78%,
|
||
rgba(255, 188, 221, 0) 0%,
|
||
#ffbcdd 100%
|
||
),
|
||
linear-gradient(303deg, rgba(255, 255, 255, 0) 0%, #ff4656 91.85%),
|
||
linear-gradient(292deg, #ff3bc4 0%, rgba(255, 255, 255, 0) 100.5%), #fff`,padding:"20px",display:"flex","flex-direction":"column","align-items":"center",gap:"2vw"},onClick:a[12]||(a[12]=te(()=>{},["stop"]))},[e("h3",Qo,r(n(i)("love_letter_title")),1),e("div",Zo,r(n(i)("spend_5000_coins_confess")),1),e("div",er,[e("div",{style:{padding:"12px 20px","border-radius":"200px",background:"linear-gradient(180deg, #ffacbb 0%, rgba(255, 172, 187, 0) 58.38%), #ff879c","box-shadow":`-1px 0 5px 0 rgba(255, 255, 255, 0.7) inset,
|
||
-3.5px 0 7.5px 0 rgba(255, 255, 255, 0.2) inset,
|
||
1px 0 5px 0 rgba(255, 255, 255, 0.7) inset,
|
||
3.5px 0 7.5px 0 rgba(255, 255, 255, 0.2) inset`,"backdrop-filter":"blur(5000px)","font-weight":"800"},onClick:Ye},r(n(i)("cancel")),1),e("div",{style:{padding:"12px 20px","border-radius":"200px",background:"linear-gradient(180deg, #ffacbb 0%, rgba(255, 172, 187, 0) 58.38%), #ff4768","box-shadow":`0 1px 4.5px 0 rgba(0, 0, 0, 0.1),
|
||
-1px 0 5px 0 rgba(255, 255, 255, 0.7) inset,
|
||
-3.5px 0 7.5px 0 rgba(255, 255, 255, 0.2) inset,
|
||
1px 0 5px 0 rgba(255, 255, 255, 0.7) inset,
|
||
3.5px 0 7.5px 0 rgba(255, 255, 255, 0.2) inset`,"font-weight":"800"},onClick:a[11]||(a[11]=(...k)=>n(dt)&&n(dt)(...k))},r(n(i)("confirm")),1)])],512),[[$,Qe.value]]),l(e("div",{style:{display:"flex","justify-content":"center",width:"100vw"},onClick:a[13]||(a[13]=te(()=>{},["stop"]))},[e("div",tr,[e("div",sr,r(n(i)("insufficient_wallet_balance")),1),e("div",{style:{"font-size":"0.8em",color:"#e14f69","font-weight":"700","box-sizing":"border-box","border-bottom":"1px solid #e14f69"},onClick:wt},r(n(i)("recharge_now")),1)])],512),[[$,n(m)]]),l(e("div",{style:{display:"flex","justify-content":"center",width:"100vw"},onClick:a[14]||(a[14]=te(()=>{},["stop"]))},[e("div",ir,[e("div",nr,r(n(i)("consecutive_check_in_reward")),1)])],512),[[$,n(z)]]),l(e("div",{style:{display:"flex","justify-content":"center",width:"100vw"},onClick:a[15]||(a[15]=te(()=>{},["stop"]))},[e("div",or,[e("div",rr,r(n(i)("check_in_successful")),1)])],512),[[$,n(f)]]),Ve.value?(d(),Ee(Y,{key:0,imgUrl:t(y("lastLetterBg")),contentStyle:`inset: 30vw 17vw 27vw;
|
||
flex-direction: column;
|
||
justify-content: flex-start;
|
||
align-items: center;
|
||
gap:2vw`,onClick:a[16]||(a[16]=te(()=>{},["stop"]))},{default:q(()=>[e("div",ar,[e("img",{src:fe.value.senderAvatar,alt:"",style:{display:"block","min-width":"0",width:"4em","aspect-ratio":"1/1","border-radius":"50%"}},null,8,lr),e("div",cr,[e("div",dr,r(fe.value.senderNickname),1),e("div",ur," ID:"+r(fe.value.senderAccount),1)])]),e("div",gr,r(fe.value.content),1)]),_:1},8,["imgUrl"])):we("",!0),l(e("div",{style:{position:"relative",width:"90%"},onClick:a[19]||(a[19]=te(()=>{},["stop"]))},[D(Y,{imgUrl:t("resultBg"),contentStyle:`inset: 37vw 15vw 16vw;
|
||
flex-direction: column;
|
||
justify-content: space-between;
|
||
gap:2vw`},{default:q(()=>[e("div",vr,[e("div",pr,[l(e("img",{class:"flipImg",src:t("resultBack"),alt:"",style:{display:"block",width:"80%","object-fit":"cover"},onClick:a[17]||(a[17]=k=>be.value--)},null,8,fr),[[$,n(b).length>1&&be.value>0]])]),e("img",{src:n(b)[be.value]?.prize?.prizeImage,alt:"",width:"45%",style:{display:"block"}},null,8,yr),e("div",hr,[l(e("img",{class:"flipImg",src:t("resultNext"),alt:"",style:{display:"block",width:"80%","object-fit":"cover"},onClick:a[18]||(a[18]=k=>be.value++)},null,8,wr),[[ue],[$,n(b).length>1&&be.value+1<n(b).length]])])]),e("div",mr,[vt(r(n(i)("you_get"))+" "+r(n(b)[be.value]?.prize?.prizeName)+" ",1),n(b).length>1?(d(),p("div",br,r(be.value+1)+" / "+r(n(b).length),1)):we("",!0)]),e("div",{style:{width:"30vw",height:"10vw"},onClick:$e})]),_:1},8,["imgUrl"])],512),[[$,n(H)]]),l(e("div",{style:{position:"relative",width:"95%"},onClick:a[20]||(a[20]=te(()=>{},["stop"]))},[D(Y,{imgUrl:t(y("recordBg")),contentStyle:"padding: 28vw 12vw 25vw;"},{default:q(()=>[e("div",_r,[(d(!0),p(se,null,ie(n(F),(k,ge)=>(d(),p("div",xr,[e("div",kr,[e("img",{src:k?.prize?.prizeImage||"",alt:"",style:{width:"10vw","min-width":"0","object-fit":"cover",display:"block"}},null,8,$r),e("div",Ir,r(k?.prize?.prizeName),1)]),e("div",Sr,r(n(ut)(k.drawTime)),1)]))),256))])]),_:1},8,["imgUrl"])],512),[[$,n(h)]]),l(e("div",{style:{position:"relative",width:"95%"},onClick:a[21]||(a[21]=te(()=>{},["stop"]))},[D(Y,{imgUrl:t("myPropsLogBg"),contentStyle:"padding: 28vw 12vw 25vw;"},{default:q(()=>[e("div",Cr,[(d(!0),p(se,null,ie(n(I),(k,ge)=>(d(),p("div",Tr,[e("div",jr,[k.itemType=="cp_fragment"?(d(),p("img",{key:0,src:t("debris"),alt:"",style:{width:"10vw","min-width":"0","object-fit":"cover",display:"block"}},null,8,Ur)):k.itemType=="lottery_ticket"?(d(),p("img",{key:1,src:t("crystal"),alt:"",style:{width:"10vw","min-width":"0","object-fit":"cover",display:"block"}},null,8,Lr)):we("",!0),e("div",Br,r(k.changeType==2?"-":"+")+r(k.changeAmount),1)]),e("div",Ar,r(n(ut)(k.createdAt)),1)]))),256))])]),_:1},8,["imgUrl"])],512),[[$,n(x)]]),l(e("div",{style:{"border-radius":"12px",background:"#fff",padding:"20px",display:"flex","flex-direction":"column","align-items":"center",gap:"2vw"},onClick:a[22]||(a[22]=te(()=>{},["stop"]))},[e("div",Rr,r(n(i)("confirm_item_exchange")),1),e("div",zr,[e("div",{style:{padding:"12px 20px","border-radius":"24px",border:"1px solid #e6e6e6",color:"rgba(0, 0, 0, 0.4)","font-weight":"800"},onClick:Ye},r(n(i)("cancel")),1),e("div",{style:{padding:"12px 20px","border-radius":"24px",background:"linear-gradient(180deg, #ffacbb 0%, rgba(255, 172, 187, 0) 58.38%), #ff4768","box-shadow":`0 1px 4.5px 0 rgba(0, 0, 0, 0.1),
|
||
-1px 0 5px 0 rgba(255, 255, 255, 0.7) inset,
|
||
-3.5px 0 7.5px 0 rgba(255, 255, 255, 0.2) inset,
|
||
1px 0 5px 0 rgba(255, 255, 255, 0.7) inset,
|
||
3.5px 0 7.5px 0 rgba(255, 255, 255, 0.2) inset`,color:"rgba(255, 255, 255, 0.8)","font-weight":"800"},onClick:St},r(n(i)("confirm")),1)])],512),[[$,n(C)]]),l(e("div",{style:{width:"90%",position:"relative","border-radius":"12px",background:`radial-gradient(
|
||
171.8% 117.34% at 34.23% 104.78%,
|
||
rgba(255, 188, 221, 0) 0%,
|
||
#ffbcdd 100%
|
||
),
|
||
linear-gradient(303deg, rgba(255, 255, 255, 0) 0%, #ff4656 91.85%),
|
||
linear-gradient(292deg, #ff3bc4 0%, rgba(255, 255, 255, 0) 100.5%), #fff`,padding:"20px",display:"flex","flex-direction":"column","align-items":"center",gap:"2vw"},onClick:a[23]||(a[23]=te(()=>{},["stop"]))},[e("div",{style:{position:"absolute",top:"2vw",right:"5vw",color:"#ff4668","font-size":"3em"},onClick:$e}," x "),l(e("img",{src:n(S).cover,alt:"",style:{width:"60%",display:"block","object-fit":"cover"}},null,8,Mr),[[ue]]),e("div",Dr,r(n(nt)(n(S).type,n(S))),1)],512),[[$,n(w)]]),l(e("div",{onClick:a[24]||(a[24]=te(()=>{},["stop"]))},[D(Y,{imgUrl:t(y("helpBg")),contentStyle:"inset: 30vw 18vw 28vw;overflow-y: auto;display:block;"},{default:q(()=>[l(e("img",{src:t(y("helpInfoNew")),alt:"",style:{display:"block",width:"100%","object-fit":"cover","margin-bottom":"6vw"}},null,8,Pr),[[ue]])]),_:1},8,["imgUrl"])],512),[[$,n(R)]]),l(e("div",{style:{display:"flex","justify-content":"center",width:"100vw"},onClick:a[25]||(a[25]=te(()=>{},["stop"]))},[e("div",Nr,[e("div",Fr,r(n(i)("not_enough_pieces")),1)])],512),[[$,n(B)]]),l(e("div",{style:{width:"90%","border-radius":"12px",background:"#fff",padding:"20px",display:"flex","flex-direction":"column","align-items":"center",gap:"2vw"},onClick:a[29]||(a[29]=te(()=>{},["stop"]))},[a[32]||(a[32]=e("h3",{style:{color:"rgba(0, 0, 0, 0.8)","font-size":"1.1em","font-weight":"700"}},"Tips",-1)),e("div",Gr,[l(e("textarea",{"onUpdate:modelValue":a[26]||(a[26]=k=>le.value=k),onInput:st,placeholder:n(i)("love_letter_placeholder"),maxlength:"80",style:{width:"100%","min-height":"10vh","border-radius":"8px",border:"1px solid #e6e6e6",padding:"2vw 2vw 18px",color:"black",outline:"none",resize:"vertical"}},null,40,Er),[[Dt,le.value]]),e("div",Xr,r(He.value)+"/80 ",1)]),e("div",Hr,[e("div",{style:{width:"1.5em","aspect-ratio":"1/1","border-radius":"50%",border:"2px solid rgba(0, 0, 0, 0.4)",display:"flex","justify-content":"center","align-items":"center"},onClick:a[27]||(a[27]=k=>ke.value=!ke.value)},[ke.value?(d(),p("div",Or)):we("",!0)]),e("div",Wr,r(n(i)("publish_love_letter")),1)]),e("div",qr,[e("div",{style:{padding:"12px 20px","border-radius":"24px",border:"1px solid #e6e6e6",color:"rgba(0, 0, 0, 0.4)","font-weight":"800"},onClick:Ye},r(n(i)("cancel")),1),e("div",{style:{padding:"12px 20px","border-radius":"24px",background:"linear-gradient(180deg, #ffacbb 0%, rgba(255, 172, 187, 0) 58.38%), #ff4768","box-shadow":`0 1px 4.5px 0 rgba(0, 0, 0, 0.1),
|
||
-1px 0 5px 0 rgba(255, 255, 255, 0.7) inset,
|
||
-3.5px 0 7.5px 0 rgba(255, 255, 255, 0.2) inset,
|
||
1px 0 5px 0 rgba(255, 255, 255, 0.7) inset,
|
||
3.5px 0 7.5px 0 rgba(255, 255, 255, 0.2) inset`,color:"rgba(255, 255, 255, 0.8)","font-weight":"800"},onClick:a[28]||(a[28]=k=>lt("confirm"))},r(n(i)("confirm")),1)])],512),[[$,he.value]])],512),[[$,yt.value]])]),_:1},8,["maskLayerShow"])],512),[[$,!_.value]])])}}},aa=Re(Vr,[["__scopeId","data-v-ab0bd398"]]);export{aa as default};
|