import{d as e,u as l,r as a,s,e as i,J as c,o as r,f as t,P as d,g as n,Y as v,h as o,k as p,X as u,l as f,N as y,z as w,ai as h,aj as k,t as g,A as b,I as _,ad as x,a3 as m,O as A,B as I,C as R,_ as j}from"./index_1730186905.js";import{_ as C}from"./index_173018690533.js";import{u as P}from"./useUserLevel_1730186905.js";const V=e=>(I("data-v-6d6832ac"),e=e(),R(),e),B={class:"page"},L={class:"page-body"},G={class:"container"},M={class:"vip-top flex-ct"},D={class:"left"},T={class:"left-top"},U=V((()=>n("div",null,"VIP Level",-1))),W={class:"version"},z={class:"left-bottom"},S={key:0},E={key:1},J={class:"line"},N={class:"vips flex-sb"},O={class:"right flex-ct"},X={class:"content"},Y={class:"block flex-sb"},q={class:"left flex-ct"},F={class:"right flex-sb"},H=V((()=>n("span",null,"Daily Entry Bonus",-1))),K={class:"block flex-sb"},Q={class:"left flex-ct"},Z={class:"right flex-sb"},$=V((()=>n("span",null,"Weekly Bonus",-1))),ee={class:"block flex-sb"},le={class:"left flex-ct"},ae={class:"right flex-sb"},se=V((()=>n("span",null,"Monthly Bonuses",-1))),ie={class:"block flex-sb"},ce={class:"left flex-ct"},re={class:"right flex-sb"},te=V((()=>n("span",null,"Level Bonuses",-1))),de=j(e({__name:"level",setup(e){const I=l(),R=a([]),{nextLevel:j,levelSpeed:V,poorRecharge:de,currentLevel:ne,levelProp:ve}=P(),oe=s(),pe=i((()=>I.vipInfo)),ue=i((()=>(I.vipInfo.rows?[...I.vipInfo.rows]:[]).length)),fe=e=>{let l=R.value.filter((l=>l._id===e));return l[0]?l[0].iconUrl:"/perfil/jinbi_04.png"},ye=e=>{h(),w.getVipAwardCycle({awardType:e}).then((async l=>{if(0!==l.code)return k(),void g(l.txt);switch(k(),e){case 0:pe.value.isGetDay=!0;break;case 1:pe.value.isGetWeek=!0;break;case 2:pe.value.isGetMonth=!0}await I.getUserInfo(),g("Successfully received")}))},we=e=>{oe.push(e)};return c((async()=>{await(async()=>{let e=[];if(ve.value.dailyAward&&ve.value.dailyAward.length>0&&e.push(ve.value.dailyAward[0].propId),ve.value.weeklyAward&&ve.value.weeklyAward.length>0&&e.push(ve.value.weeklyAward[0].propId),ve.value.monthlyAward&&ve.value.monthlyAward.length>0&&e.push(ve.value.monthlyAward[0].propId),ve.value.award&&ve.value.award.length>0&&e.push(ve.value.award[0].propId),0==e.length)return;const l=await w.getPropsCache({propIds:e});0===l.code&&(R.value=l.data.props)})()})),(e,l)=>{const a=C,s=b,i=_,c=x;return r(),t("div",B,[d(a,{title:"VIP details"}),n("div",L,[n("div",G,[n("div",M,[n("div",D,[n("div",T,[U,n("div",W,"VIP "+v(o(ne).lv),1)]),n("div",z,[o(ne).lv!=ue.value?(r(),t("p",S,v(pe.value&&1===pe.value.vipLevelType?"Recharge":"Bet")+" "+v(o(m)(o(de)/1e4))+" to get to the "+v(o(j).lv),1)):(r(),t("p",E,v(pe.value&&1===pe.value.vipLevelType?"Recharge":"Bet")+" 0 to reach VIP "+v(ue.value),1)),n("div",J,[n("div",{class:"line-p",style:p({width:o(ne).lv!=ue.value?o(V):"100%"})},v(o(ne).lv!=ue.value?o(V)?o(V):"":"100%"),5)]),n("div",N,[n("div",null,"V"+v(o(ne).lv),1),n("div",null," V"+v(o(ne).lv!=ue.value?o(j).lv:o(ne).lv),1)])])]),n("div",O,[d(s,{width:"2rem",src:"perfil/icon01.png"})])]),n("div",{class:"tips flex-ct",onClick:l[0]||(l[0]=e=>we("/introduceVip"))},[u(" Member Privilege "),d(s,{width:"0.4rem",style:{"margin-left":"0.2rem"},src:"perfil/icon_bangzghu.png"})])]),n("div",X,[n("div",Y,[n("div",q,[o(ve).award&&0===o(ve).award.length?(r(),f(s,{key:0,class:"icon",src:"perfil/jinbi_04.png"})):(r(),f(i,{key:1,class:"icon",src:o(A)(fe(o(ve).dailyAward&&o(ve).dailyAward[0].propId))},null,8,["src"]))]),n("div",F,[H,pe.value.isGetDay?(r(),f(c,{key:0,color:"#676e6e",class:"not-received"},{default:y((()=>[u("Received")])),_:1})):(r(),f(c,{key:1,color:"#a9792e",onClick:l[1]||(l[1]=e=>ye(0))},{default:y((()=>[u(" Receive ")])),_:1}))])]),n("div",K,[n("div",Q,[0===o(ve).weeklyAward.length?(r(),f(s,{key:0,class:"icon",src:"perfil/jinbi_04.png"})):(r(),f(i,{key:1,class:"icon",src:o(A)(fe(o(ve).weeklyAward[0]&&o(ve).weeklyAward[0].propId))},null,8,["src"]))]),n("div",Z,[$,pe.value.isGetWeek?(r(),f(c,{key:0,color:"#676e6e",class:"not-received"},{default:y((()=>[u(" Received ")])),_:1})):(r(),f(c,{key:1,color:"#a9792e",onClick:l[2]||(l[2]=e=>ye(1))},{default:y((()=>[u(" Receive ")])),_:1}))])]),n("div",ee,[n("div",le,[0===o(ve).monthlyAward.length?(r(),f(s,{key:0,class:"icon",src:"perfil/jinbi_04.png"})):(r(),f(i,{key:1,class:"icon",src:o(A)(fe(o(ve).monthlyAward[0]&&o(ve).monthlyAward[0].propId))},null,8,["src"]))]),n("div",ae,[se,pe.value.isGetMonth?(r(),f(c,{key:0,color:"#676e6e",class:"not-received"},{default:y((()=>[u(" Received ")])),_:1})):(r(),f(c,{key:1,color:"#a9792e",onClick:l[3]||(l[3]=e=>ye(2))},{default:y((()=>[u(" Receive ")])),_:1}))])]),n("div",ie,[n("div",ce,[o(ve).award&&0===o(ve).award.length?(r(),f(s,{key:0,class:"icon",src:"perfil/jinbi_04.png"})):(r(),f(i,{key:1,class:"icon",src:o(A)(fe(o(ve).award[0]&&o(ve).award[0].propId))},null,8,["src"]))]),n("div",re,[te,d(c,{color:"#a9792e",onClick:l[4]||(l[4]=e=>we("/levelReceive"))},{default:y((()=>[u(" Receive ")])),_:1})])])])])])}}}),[["__scopeId","data-v-6d6832ac"]]);export{de as default};