import{_ as w,o as f,c as g,b as e,D as a,q as d,t as l,l as v,m as _,r as p,an as b,j as k,y as R,au as x,b1 as I}from"./index-CIAVq8iD-1776148658686.js";import{c as A}from"./appConnector-B5Pbaops-1776148658686.js";import{g as j}from"./imagePaths-Bi1Bwe4Z-1776148658686.js";import{p as N}from"./imagePreloader-C_QM-Nv8-1776148658686.js";import{h as m}from"./imageHandler-DstQGL3Z-1776148658686.js";import{m as z}from"./MaskLayer-CMaJd7Gb-1776148658686.js";const C={style:{position:"relative"}},D=["src"],E=["src"],L={style:{position:"absolute",inset:"28.5% 22%",height:"15%",display:"flex","flex-direction":"column","justify-content":"space-around","align-items":"center"}},S={style:{display:"grid","grid-template-columns":"4fr 6fr"}},T={style:{width:"100%","aspect-ratio":"1/1",position:"relative"}},U=["src"],$={style:{position:"absolute",inset:"0",display:"flex","justify-content":"center","align-items":"center","z-index":"0"}},B=["src"],G={style:{width:"100%","min-width":"0",display:"flex","flex-direction":"column","justify-content":"center",gap:"4px"}},M={style:{"font-weight":"700","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},P={style:{"font-weight":"700","white-space":"nowrap",overflow:"hidden","text-overflow":"ellipsis"}},V={class:"textGold",style:{"font-size":"0.8em","font-weight":"700"}},q=["src"],H=["src"],F=["src"],J=["src"],K=["src"],O=["src"],Q={__name:"RechargeReward",setup(W){const t=o=>j("Activities/RechargeReward/",o),n=p(!1),r=p({account:"",userNickname:"",userAvatar:"",recharge:""}),u=async()=>{const o=await x();if(o.status&&o.body){const s=await I(o.body.id);s.status&&(console.log("resUserInfo:",o.body),r.value={account:o.body.account,userNickname:o.body.userNickname,userAvatar:o.body.userAvatar,recharge:s.body})}},h=()=>{const o=[t("Rewards0"),t("Rewards1"),t("Rewards2"),t("Rewards3"),t("Rewards4"),t("Rewards5"),t("help"),t("helpInfo"),t("frame")];N(o)},y=()=>{A(async()=>{await u(),console.log("页面所需数据获取完成"),await h(),console.log("关键图片预加载完成")})};return f(()=>{y()}),(o,s)=>{const i=b("smart-img");return k(),g("div",null,[e("div",C,[a(e("img",{src:t("Rewards0"),alt:"",style:{width:"100%",display:"block"}},null,8,D),[[i]]),a(e("img",{src:t("help"),alt:"",style:{position:"absolute",top:"2%",right:"4%",display:"block",width:"10vw","aspect-ratio":"1/1","object-fit":"cover"},onClick:s[0]||(s[0]=c=>n.value=!0)},null,8,E),[[i]]),e("div",L,[e("div",S,[e("div",T,[a(e("img",{src:t("frame"),alt:"",style:{width:"100%",display:"block","aspect-ratio":"1/1",position:"relative","z-index":"1"}},null,8,U),[[i]]),e("div",$,[e("img",{src:r.value.userAvatar||"",alt:"",style:{display:"block",width:"60%","border-radius":"50%","aspect-ratio":"1/1","object-fit":"cover"},onError:s[1]||(s[1]=(...c)=>d(m)&&d(m)(...c))},null,40,B)])]),e("div",G,[e("div",M,l(r.value.userNickname),1),e("div",P,l(o.$t("user_id_prefix"))+" "+l(r.value.account),1)])]),e("div",V," Accumulated recharge:$"+l(r.value.recharge),1),s[4]||(s[4]=e("div",{class:"textGold",style:{"font-size":"0.7em","font-weight":"700"}}," *Each user can only claim the reward for this event once. ",-1)),s[5]||(s[5]=e("div",{class:"textGold",style:{"font-size":"0.7em","font-weight":"900"}}," *يمكن لكل مستخدم المطالبة بالمكافأة لهذا الحدث مرة واحدة فقط. ",-1))])]),a(e("img",{src:t("Rewards1"),alt:"",style:{width:"100%",display:"block"}},null,8,q),[[i]]),a(e("img",{src:t("Rewards2"),alt:"",style:{width:"100%",display:"block"}},null,8,H),[[i]]),a(e("img",{src:t("Rewards3"),alt:"",style:{width:"100%",display:"block"}},null,8,F),[[i]]),a(e("img",{src:t("Rewards4"),alt:"",style:{width:"100%",display:"block"}},null,8,J),[[i]]),a(e("img",{src:t("Rewards5"),alt:"",style:{width:"100%",display:"block"}},null,8,K),[[i]]),v(z,{maskLayerShow:n.value,onClick:s[3]||(s[3]=c=>n.value=!1)},{default:_(()=>[e("div",{style:{margin:"20% 0"},onClick:s[2]||(s[2]=R(()=>{},["stop"]))},[a(e("img",{src:t("helpInfo"),alt:"",style:{display:"block",width:"100%"}},null,8,O),[[i]])])]),_:1},8,["maskLayerShow"])])}}},oe=w(Q,[["__scopeId","data-v-9191a27e"]]);export{oe as default};
