PageSourceSearch

https://gyg888v1.com/assets/RankingView-1736dafe.js

js gyg888v1.com collected 2026-10-09 22:47:09 UTC 29,319 bytes, 9 lines download raw bytes

1import{f as l}from"./formatCurrency-6618f4c2.js";import{d as L,u as D,o as s,b as a,f as e,t as n,g as t,_ as S,i as P,w as M,l as p,K as J,I as Y,B as W,C as X,cn as V,h as b,F as y,r as F,q as $,x as ue,y as E,aF as T,k as G,V as de,c as N,m as re,P as Re,a as Ie,a7 as Be,N as ie}from"./tazgh-171ujgg0.js";import{_ as _e,a as fe}from"./ticket-520e92bf.js";/* empty css                                                              */import{N as me}from"./Scrollbar-8083e70d.js";import{G as je}from"./GRule-8fe2c6b5.js";import{_ as Ve}from"./LoaderView.vue_vue_type_script_setup_true_lang-3ebb8471.js";const ze={class:"wrap-theme-card"},Ne={class:"inner-theme-card box"},Fe={class:"flex flex-col space-y-2"},Pe={class:"flex justify-between"},Ae={class:"text-[#fff]"},Ee={key:0,class:"theme-color-font text-number"},Le={key:1,class:"theme-color-font"},De={class:"flex justify-between"},Oe={class:"text-[#fff]"},Se={key:0,class:"theme-color-font text-number"},Ue={key:1,class:"theme-color-font"},Te={class:"flex justify-between"},Ge={class:"text-[#fff]"},Ye={key:0,class:"theme-color-font text-number"},qe={key:1,class:"theme-color-font"},Ke={class:"flex justify-between"}
1,Qe={class:"text-[#fff]"},He={key:0,class:"theme-color-font text-number"},Je={key:1,class:"theme-color-font"},We=L({__name:"InfoBanner",props:{currentValue:{}},setup(x){const{t:k}=D(),i=x;return(o,r)=>(s(),a("div",ze,[e("div",Ne,[e("div",Fe,[e("div",Pe,[e("p",Ae,n(t(k)("ranking.depositLifetime")),1),i.currentValue.next_rank.deposit.life_time_status?(s(),a("p",Ee,n(t(l)(i.currentValue.current_value.deposit.life_time))+" / "+n(t(l)(i.currentValue.next_rank.deposit.life_time)),1)):(s(),a("p",Le,"-"))]),e("div",De,[e("p",Oe,n(t(k)("ranking.turnoverLifetime")),1),i.currentValue.next_rank.turnover.life_time_status?(s(),a("p",Se,n(t(l)(i.currentValue.current_value.turnover.life_time))+" / "+n(t(l)(i.currentValue.next_rank.turnover.life_time)),1)):(s(),a("p",Ue,"-"))]),e("div",Te,[e("p",Ge,n(t(k)("ranking.depositMonth")),1),i.currentValue.next_rank.deposit.month_status?(s(),a("p",Ye,n(t(l)(i.currentValue.current_value.deposit.month))+" / "+n(t(l)(i.currentValue.next_rank.deposit.month)),1)):(s(),a("p",qe,"-"))]),e("div",Ke,[e("p",Qe,n(t(k)("ranking.turnoverMonth")),1
1),i.currentValue.next_rank.turnover.month_status?(s(),a("p",He,n(t(l)(i.currentValue.current_value.turnover.month))+" / "+n(t(l)(i.currentValue.next_rank.turnover.month)),1)):(s(),a("p",Je,"-"))])])])]))}});const Xe=S(We,[["__scopeId","data-v-ffac521f"]]),Ze=x=>(W("data-v-cc0e03f0"),x=x(),X(),x),et={class:"wrap-theme-card"},tt={class:"inner-theme-card box"},nt={class:"flex items-center"},st=["src"],at={class:"flex justify-around w-full"},ot={class:"flex flex-col space-y-2 items-center"},rt={class:"text-[#fff] text-2xl font-bold"},it={key:0,class:"text-[#fff] text-lg font-bold"},lt={class:"text-[#fff] text-lg font-bold"},ct={class:"text-[#fff] text-lg font-bold"},ut={class:"flex justify-around w-full"},dt={class:"flex flex-col space-y-2 justify-center items-center"},_t={class:"text-black font-bold"},ft={key:1,class:"flex flex-row space-x-3 items-center"},mt=Ze(()=>e("img",{loading:"lazy",class:"w-5 h-5",src:V},null,-1)),xt={class:"text-[#fff] text-lg text-number"},pt={class:"text-[#fff] text-lg font-bold"},ht={class:"text-[#fff] text-lg font-bold"},kt={class:"wrap-theme-card"},vt={class:"inner-theme-card box"},gt={class:"flex flex-col space-y-2"},bt={class:"flex justify-between"},yt={class:"text-[#fff]"},wt={key:0,class:"text-[#E9B033] text-number"},$t={key:1,class:"text-[#E9B033]"},Ct={class:"flex justify-between"},Mt={class:"text-[#fff]"},Rt={key:0,class:"text-[#E9B033] text-number"},It={key:1,class:"text-[#E9B033]"},Bt={class:"flex justify-between"},jt={class:"text-[#fff]"},Vt={key:0,class:"text-[#E9B033] text-number"},zt={key:1,class:"text-[#E9B033]"},Nt={class:"flex justify-between"},Ft={class:"text-[#fff]"},Pt={key:0,class:"text-[#E9B033] text-number"},At={key:1,class:"text-[#E9B033]"},Et=L({__name:"PopupInfo",props:{show:{type:Boolean,default:!1},rankingInfo:{},minMaxCashback:{},minMaxCommission:{},openBenefits:{}},emits:["close","open-benefits"],setup(x,{emit:k}){const{t:i}=D(),o=k,r=x,g=d=>{typeof r.openBenefits=="function"&&r.openBenefits(d)},u=()=>{o("close")};return(d,m)=>(s(),P(Y,{title:t(i)("ranking.rankUpCondition"),"show-modal":r.show,onClose:u},{content:M(()=>[e("div",et,[e("div",tt,[e("div",nt,[e("img",{loading:"lazy",class:"w-16 h-16",src:r.rankingInfo.img_url},null,8,st),e("div",at,[e("div",ot,[e("p",rt,n(t(i)("ranking.rank"))+" : "+n(r.rankingInfo.title),1),r.rankingInfo.is_multi_reward?p("",!0):(s(),a("p",it,n(t(i)("ranking.nextRankReward")),1)),e("p",lt,n(t(i)("benefits.cashback")),1),e("p",ct,n(t(i)("benefits.commission")),1)])]),e("div",ut,[e("div",dt,[r.rankingInfo.cashback||r.rankingInfo.commission?(s(),P(J,{key:0,id:"btn-getcredit",class:"primary-button w-full",onClick:m[0]||(m[0]=R=>g(r.rankingInfo))},{default:M(()=>[e("p",_t,n(t(i)("benefits.title")),1)]),_:1})):p("",!0),r.rankingInfo.is_multi_reward?p("",!0):(s(),a("div",ft,[mt,e("p",xt,n(t(l)(Math.max(...r.rankingInfo.reward.reward))),1)])),e("p",pt,n(Number(r.minMaxCashback.min*100).toFixed(2))+" - "+n(Number(r.minMaxCashback.max*100).toFixed(2))+"% ",1),e("p",ht,n(Number(r.minMaxCommission.min*100).toFixed(2))+" - "+n(Number(r.minMaxCommission.max*100).toFixed(2))+"% ",1)])])])])]),e("div",kt,[e("div",vt,[e("div",gt,[e("div",bt,[e("p",yt,n(t(i)("ranking.depositLifetime")),1),r.rankingInfo.deposit[0].enable?(s(),a("p",wt,n(t(l)(r.rankingInfo.deposit[0].value)),1)):(s(),a("p",$t,"-"))]),e("div",Ct,[e("p",Mt,n(t(i)("ranking.turnoverLifetime")),1),r.rankingInfo.turnover[0].enable?(s(),a("p",Rt,n(t(l)(r.rankingInfo.turnover[0].value)),1)):(s(),a("p",It,"-"))]),e("div",Bt,[e("p",jt,n(t(i)("ranking.depositMonth")),1),r.rankingInfo.deposit[1].enable?(s(),a("p",Vt,n(t(l)(r.rankingInfo.deposit[1].value)),1)):(s(),a("p",zt,"-"))]),e("div",Nt,[e("p",Ft,n(t(i)("ranking.turnoverMonth")),1
1),r.rankingInfo.turnover[1].enable?(s(),a("p",Pt,n(t(l)(r.rankingInfo.turnover[1].value)),1)):(s(),a("p",At,"-"))])])])])]),_:1},8,["title","show-modal"]))}});const Lt=S(Et,[["__scopeId","data-v-cc0e03f0"]]),Z=x=>(W("data-v-ecbfd577"),x=x(),X(),x),Dt={class:"wrap-theme-card"},Ot={class:"inner-theme-card box"},St={class:"flex flex-row justify-center space-x-12"},Ut=["src"],Tt={class:"flex flex-col space-y-2 justify-center items-center"},Gt={class:"text-[#fff] text-2xl font-bold"},Yt={class:"wrap-theme-card"},qt={class:"inner-theme-card box"},Kt={class:"flex flex-col space-y-2 item-center"},Qt=Z(()=>e("img",{loading:"lazy",src:V},null,-1)),Ht={class:"text-[#fff] w-1/3 text-center"},Jt={class:"text-[#fff] w-1/3 text-center text-number"},Wt=Z(()=>e("img",{loading:"lazy",src:_e},null,-1)),Xt={class:"text-[#fff] w-1/3 text-center"},Zt={class:"text-[#fff] w-1/3 text-center text-number"},en=Z(()=>e("img",{loading:"lazy",src:fe},null,-1)),tn={class:"text-[#fff] w-1/3 text-center"},nn={class:"text-[#fff] w-1/3 text-center text-number"},sn=L({__name:"PopupRewardInfo",props:{show:{type:Boolean,default:!1},rankingInfo:{}},emits:["close"],setup(x,{emit:k}){const{t:i}=D(),o=k,r=x,g=()=>{o("close")};return(u,d)=>(s(),P(Y,{title:t(i)("ranking.rewardDetail"),"show-modal":r.show,onClose:g},{content:M(()=>[e("div",Dt,[e("div",Ot,[e("div",St,[e("img",{loading:"lazy",class:"w-16 h-16",src:r.rankingInfo.img_url},null,8,Ut),e("div",Tt,[e("p",Gt,n(r.rankingInfo.title),1)])])])]),e("div",Yt,[e("div",qt,[e("div",Kt,[b(t(me),{id:"custom-scrollbar",trigger:"none",style:{"max-height":"200px"}},{default:M(()=>[(s(!0),a(y,null,F(r.rankingInfo.multi_reward,m=>{var R;return s(),a("div",{key:m,class:"flex justify-around items-center"},[m.type==="credit"?(s(),a(y,{key:0},[Qt,e("p",Ht,n(t(i)("credit")),1),e("p",Jt,n(t(l)(Math.max(...m.reward))),1)],64)):m.type==="point"?(s(),a(y,{key:1},[Wt,e("p",Xt,n(t(i)("point")),1),e("p",Zt,n(t(l)(Math.max(...m.reward))),1)],64)):m.type==="ticket"?(s(),a(y,{key:2},[en,e("p",tn,n(t(i)("randomBox.ticket")),1),e("p",nn,n((R=m.ticket_reward)==null?void 0:R.reduce((_,I)=>_+I.amount,0)),1)],64)):p("",!0)])}),128))]),_:1})])])])]),_:1},8,["title","show-modal"]))}});const an=S(sn,[["__scopeId","data-v-ecbfd577"]]),q=x=>(W("data-v-ac0a39a7"),x=x(),X(),x),on={class:"relative",id:"ranking-slide"},rn=["onClick"],ln={class:"flex flex-col justify-center items-center space-y-2"},cn=["src"],un={class:"text-[#fff] text-center"},dn={key:0,class:"text-[#fff] text-xs"},_n={class:"flex flex-row space-x-1 items-center"},fn=["onClick"],mn=q(()=>e("img",{loading:"lazy",class:"w-4 h-4",src:V},null,-1)),xn={class:"text-[#fff] text-xs text-number"},pn={key:0,class:"block items-center whitespace-nowrap w-full rounded-md bg-gray-400/10 px-2 my-1 py-1 text-[11px] font-medium text-[#fff] ring-1 ring-inset ring-gray-400/20"},hn={key:0,class:"wrap-theme-card"},kn=["src"],vn={class:"flex flex-col space-y-2 items-center"},gn={class:"text-[#fff] text-xl"},bn={key:1,class:"flex flex-row space-x-1 items-center"},yn=q(()=>e("img",{loading:"lazy",class:"w-4 h-4",src:V},null,-1)),wn={class:"text-[#fff] text-xl text-number"},$n={key:2,class:"inline-flex items-center rounded-md bg-gray-400/10 px-2 py-1 text-xs font-medium text-[#fff] ring-1 ring-inset ring-gray-400/20"},Cn={key:1,class:"flex flex-col w-2/3 space-y-3 relative"},Mn=["onClick"],Rn={class:"flex flex-col justify-center items-center space-y-2"},In=["src"],Bn={class:"text-[#fff] text-xl text-center"},jn={class:"text-[#fff]"},Vn={class:"flex flex-row space-x-1 items-center"},zn=["onClick"],Nn=q(()=>e("img",{loading:"lazy",class:"w-4 h-4",src:V},null,-1)),Fn={class:"text-[#fff] text-xs text-number"},Pn={key:0,class:"inline-flex items-center rounded-md bg-gray-400/10 px-2 py-1 text-xs font-medium text-[#fff] ring-1 ring-inset ring-gray-400/20"},An={key:0,class:"wrap-theme-card"},En=["src"],Ln={class:"text-[#fff] text-3xl font-bold"},Dn={class:"flex flex-col justify-center items-center space-y-1"},On={key:1,class:"flex flex-row space-x-1 items-center"},Sn=q(()=>e("img",{loading:"lazy",class:"w-4 h-4",src:V},null,-1)),Un={class:"text-[#fff] text-2xl text-number font-bold"},Tn={key:2,class:"inline-flex items-center rounded-md bg-gray-400/10 px-2 py-1 text-xs font-medium text-[#fff] ring-1 ring-inset ring-gray-400/20"},Gn=L({__name:"RankBanner",props:{rankingInfo:{},isMobile:{type:Boolean},currentRank:{}},emits:["open-rank","open-reward"],setup(x,{emit:k}){const i=k,{t:o}=D(),r=["#301B05","#07073C","#011F11","#2C0604","#1B042C"],g=x,u=$([]),d=$(),m=$(!0),R=$(!1),_=$(3);ue(()=>{u.value=[...g.rankingInfo],u.value.reverse(),d.value=u.value.pop()});const I=C=>{i("open-rank",C)},B=C=>{i("open-reward",C)},z=(C,w)=>{const f=u.value.length-_.value;m.value=C===0,R.value=C===f};return(C,w)=>g.isMobile?(s(),a(y,{key:0},[e("div",on,[b(t(G),{"slides-per-view":3,"space-between":10,loop:!1,draggable:"","show-dots":!1,"show-arrow":"","on-update:current-index":z},{default:M(()=>[(s(!0),a(y,null,F(u.value,(f,j)=>(s(),a("div",{key:f,class:"wrap-theme-card",style:{height:"175px"}},[e("div",{class:"inner-theme-card box",style:E(`background: ${r[j]}; height: 100%;`),onClick:O=>I(f.ranking)},[e("div",ln,[e("img",{loading:"lazy",class:"max-w-[60px] h-12 mb-0",src:f.img_url}
1,null,8,cn),e("p",un,n(f.title),1),f.is_multi_reward?p("",!0):(s(),a("p",dn,n(t(o)("reward")),1)),e("div",_n,[f.is_multi_reward?(s(),a("u",{key:0,class:"mt-2 text-[#fff] text-xs text-center cursor-pointer",onClick:T(O=>B(f.ranking),["stop"])},n(t(o)("ranking.rewardDetail")),9,fn)):(s(),a(y,{key:1},[mn,e("p",xn,n(t(l)(Math.max(...f.reward.reward))),1)],64))])]),g.currentRank===f.title?(s(),a("span",pn,n(t(o)("ranking.currentRank")),1)):p("",!0)],12,rn)]))),128))]),_:1})]),d.value?(s(),a("div",hn,[e("div",{class:"inner-theme-card",style:E(`background: ${r[r.length-1]};`)},[e("div",{class:"flex flex-row space-x-8 justify-center items-center",onClick:w[1]||(w[1]=f=>I(d.value.ranking))},[e("img",{loading:"lazy",class:"flex w-28 h-16 max-w-[60px]",src:d.value.img_url},null,8,kn),e("div",vn,[e("p",gn,n(d.value.title),1),d.value.is_multi_reward?(s(),a("u",{key:0,class:"mt-2 text-[#fff] text-xs text-center cursor-pointer",onClick:w[0]||(w[0]=T(f=>B(d.value.ranking),["stop"]))},n(t(o)("ranking.rewardDetail")),1)):(s(),a("div",bn,[yn,e("p",wn,n(t(l)(Math.max(...d.value.reward.reward))),1)])),g.currentRank===d.value.title?(s(),a("span",$n,n(t(o)("ranking.currentRank")),1)):p("",!0)])])],4)])):p("",!0)],64)):(s(),a("div",Cn,[b(t(G),{"slides-per-view":_.value,"space-between":15,loop:!1,draggable:"","show-dots":!1,"show-arrow":"","on-update:current-index":z},{default:M(()=>[(s(!0),a(y,null,F(u.value,(f,j)=>(s(),a("div",{key:f,class:"wrap-theme-card",style:{height:"100%"}},[e("div",{class:"inner-theme-card box cursor-pointer",style:E(`background: ${r[j]}; height: 100%;`),onClick:O=>I(f.ranking)},[e("div",Rn,[e("img",{loading:"lazy",class:"max-w-[60px] h-12",src:f.img_url},null,8,In),e("p",Bn,n(f.title),1),e("p",jn,n(t(o)("reward")),1),e("div",Vn,[f.is_multi_reward?(s(),a("u",{key:0,class:"mt-4 text-[#fff] text-xs text-center cursor-pointer",onClick:T(O=>B(f.ranking),["stop"])},n(t(o)("ranking.rewardDetail")),9,zn)):(s(),a(y,{key:1},[Nn,e("p",Fn,n(t(l)(Math.max(...f.reward.reward))),1)],64))]),g.currentRank===f.title?(s(),a("span",Pn,n(t(o)("ranking.currentRank")),1)):p("",!0)])],12,Mn)]))),128))]),_:1},8,["slides-per-view"]),d.value?(s(),a("div",An,[e("div",{class:"inner-theme-card h-32 cursor-pointer",style:E(`background: ${r[0]};`)},[e("div",{class:"flex flex-row h-full space-x-12 justify-center items-center ml-20",onClick:w[3]||(w[3]=f=>I(d.value.ranking))},[e("img",{loading:"lazy",class:"absolute left-12 w-28 h-28",src:d.value.img_url},null,8,En),e("p",Ln,n(d.value.title),1),e("div",Dn,[d.value.is_multi_reward?(s(),a("u",{key:0,class:"text-[#fff] text-center cursor-pointer",onClick:w[2]||(w[2]=T(f=>B(d.value.ranking),["stop"]))},n(t(o)("ranking.rewardDetail")),1)):(s(),a("div",On,[Sn,e("p",Un,n(t(l)(d.value.reward.reward[0])),1)])),g.currentRank===d.value.title?(s(),a("span",Tn,n(t(o)("ranking.currentRank")),1)):p("",!0)])])],4)])):p("",!0)]))}});const le=S(Gn,[["__scopeId","data-v-ac0a39a7"]]),Yn={key:0,class:"ml-5"},qn={class:"wrap-theme-card relative"},Kn={class:"absolute z-10 w-24 -left-7 -top-2"},Qn={class:"wrap-theme-card-circle"},Hn={class:"inner-theme-card-circle box flex justify-center items-center"},Jn=["src"],Wn={class:"inner-theme-card box"},Xn={class:"flex flex-col -mt-2 ml-16 space-y-1"},Zn={class:"flex items-center justify-between"},es={class:"text-white text-lg font-bold"},ts={class:"text-black font-bold"},ns={class:"flex flex-col"},ss={class:"text-white text-xs"},as={key:1,class:"wrap-theme-card"},os={class:"inner-theme-card box h-full"},rs=["src"],is={class:"flex flex-col space-y-3 mt-20"},ls={class:"text-[#fff] text-center text-2xl"},cs={class:"flex justify-center"},us={class:"text-black font-bold"},ds={class:"flex flex-col"},_s={class:"text-white text-xs"},fs={key:0,class:"wrap-theme-card"},ms={class:"inner-theme-card !p-2"},xs={class:"flex justify-between text-[#fff]"},ps={key:1,class:"wrap-theme-card"},hs={class:"inner-theme-card !p-2"},ks={class:"flex justify-between text-[#fff]"},vs={class:"flex flex-col space-y-2"},gs={key:0,class:"flex justify-between"},bs={class:"text-[#fff]"},ys={class:"theme-color-font text-number"},ws={key:1,class:"flex justify-between"},$s={class:"text-[#fff]"},Cs={class:"theme-color-font text-number"},Ms={key:2,class:"flex justify-between"},Rs={class:"text-[#fff]"},Is={class:"theme-color-font text-number"},Bs={key:3,class:"flex justify-between"},js={class:"text-[#fff]"},Vs={class:"theme-color-font text-number"},zs=L({__name:"TopBanner",props:{currentRank:{},currentValue:{},isMobile:{type:Boolean},percent:{},minMaxCashback:{},minMaxCommission:{},openBenefits:{},minMaxCurrentRankCashback:{},minMaxCurrentRankCommission:{}},setup(x){const{t:k}=D(),i=de(),o=x,r=N(()=>{var d;return(d=i.prefix_data)==null?void 0:d.commission}),g=N(()=>{var d;return(d=i.prefix_data)==null?void 0:d.cashback}),u=d=>{typeof o.openBenefits=="function"&&(console.log("🚀 ~ onClickBenefits ~ typeof props.openBenefits:",typeof o.openBenefits),o.openBenefits(d))};return(d,m)=>o.isMobile?(s(),a("div",Yn,[e("div",qn,[e("div",Kn,[e("div",Qn,[e("div",Hn,[e("img",{class:"w-full",loading:"lazy",src:o.currentRank.img_url},null,8,Jn)])])]),e("div",Wn,[e("div",Xn,[e("div",Zn,[e("p",es,n(o.currentRank.title),1),o.currentRank.cashback||o.currentRank.commission?(s(),P(J,{key:0,id:"bt
1n-getcredit",class:"primary-button w-[100px] -mb-3",onClick:m[0]||(m[0]=R=>u(o.currentRank)),style:{"border-radius":"4px",height:"30px"}},{default:M(()=>[e("p",ts,n(t(k)("benefits.title")),1)]),_:1})):p("",!0)]),e("div",ns,[e("p",ss,n(o.percent)+"/100",1),b(t(re),{type:"line",percentage:o.percent,"show-indicator":!1,color:"#E9B033",processing:""},null,8,["percentage"])])])])])])):(s(),a("div",as,[e("div",os,[e("img",{loading:"lazy",class:"absolute top-8 left-1/2 transform -translate-x-1/2 -translate-y-1/2 max-w-[120px] h-24",src:o.currentRank.img_url},null,8,rs),e("div",is,[e("p",ls,n(o.currentRank.title),1),e("div",cs,[o.currentRank.cashback||o.currentRank.commission?(s(),P(J,{key:0,id:"btn-getcredit",class:"primary-button w-[100px]",onClick:m[1]||(m[1]=R=>u(o.currentRank))},{default:M(()=>[e("p",us,n(t(k)("benefits.title")),1)]),_:1})):p("",!0)]),e("div",ds,[e("p",_s,n(o.percent)+"/100",1),b(t(re),{type:"line",percentage:o.percent,"show-indicator":!1,color:"#E9B033",processing:""},null,8,["percentage"])]),g.value.is_reward_ranking?(s(),a("div",fs,[e("div",ms,[e("div",xs,[e("p",null,n(t(k)("benefits.cashback")),1),e("p",null,n(Number(t(l)(o.minMaxCurrentRankCashback.min*100)).toFixed(2))+" - "+n(Number(t(l)(o.minMaxCurrentRankCashback.max*100)).toFixed(2))+"% ",1)])])])):p("",!0),r.value.is_reward_ranking?(s(),a("div",ps,[e("div",hs,[e("div",ks,[e("p",null,n(t(k)("benefits.commission")),1),e("p",null,n(Number(t(l)(o.minMaxCurrentRankCommission.min*100)).toFixed(2))+" - "+n(Number(t(l)(o.minMaxCurrentRankCommission.max*100)).toFixed(2))+"% ",1)])])])):p("",!0),e("div",vs,[o.currentValue.next_rank.deposit.life_time_status?(s(),a("div",gs,[e("p",bs,n(t(k)("ranking.depositLifetime")),1),e("p",ys,n(t(l)(o.currentValue.current_value.deposit.life_time))+" / "+n(t(l)(o.currentValue.next_rank.deposit.life_time)),1)])):p("",!0),o.currentValue.next_rank.turnover.life_time_status?(s(),a("div",ws,[e("p",$s,n(t(k)("ranking.turnoverLifetime")),1),e("p",Cs,n(t(l)(o.currentValue.current_value.turnover.life_time))+" / "+n(t(l)(o.currentValue.next_rank.turnover.life_time)),1)])):p("",!0),o.currentValue.next_rank.deposit.month_status?(s(),a("div",Ms,[e("p",Rs,n(t(k)("ranking.depositMonth")),1),e("p",Is,n(t(l)(o.currentValue.current_value.deposit.month))+" / "+n(t(l)(o.currentValue.next_rank.deposit.month)),1)])):p("",!0),o.currentValue.next_rank.turnover.month_status?(s(),a("div",Bs,[e("p",js,n(t(k)("ranking.turnoverMonth")),1
1),e("p",Vs,n(t(l)(o.currentValue.current_value.turnover.month))+" / "+n(t(l)(o.currentValue.next_rank.turnover.month)),1)])):p("",!0)])])])]))}});const ce=S(zs,[["__scopeId","data-v-6210bf55"]]),Ns={class:"!p-2"},Fs={class:"text-white mb-4 bg-[#1a1b1a] rounded-xl py-4"},Ps={class:"text-center mb-4"},As={class:"flex justify-around items-center"},Es={key:0,class:"flex items-center"},Ls=e("img",{class:"w-[20px]",loading:"lazy",src:V},null,-1),Ds={class:"text-[#fff] w-1/3 text-center text-number pl-2"},Os={key:1,class:"flex items-center"},Ss=e("img",{class:"w-[20px]",loading:"lazy",src:_e},null,-1),Us={class:"text-[#fff] w-1/3 text-center text-number pl-2"},Ts={key:2,class:"flex items-center"},Gs=e("img",{class:"w-[20px]",loading:"lazy",src:fe},null,-1),Ys={class:"text-[#fff] w-1/3 text-center"},qs={key:0,class:"text-[#fff] w-1/3 text-center text-number pl-2"},Ks={key:1,class:"flex items-center"},Qs=e("img",{class:"w-[20px]",loading:"lazy",src:V},null,-1),Hs={class:"text-[#fff] w-1/3 text-center text-number pl-2"},Js={key:1,class:"flex items-center"},Ws=e("img",{class:"w-[20px]",loading:"lazy",src:V},null,-1),Xs={class:"text-[#fff] w-1/3 text-center text-number pl-2"},Zs={class:"grid grid-cols-2 gap-5 text-white"},ea={class:"bg-[#1a1b1a] rounded-xl"},ta={class:"h-[40px] flex items-center justify-center rounded-t-xl text-black font-bold",style:{background:`linear-gradient(
2                                    180deg,
3                                    var(--primary-color-1),
4                                    var(--primary-color-2)
5                                )`}},na={class:"p-5"},sa={class:"primary-color-font"},aa={class:"bg-[#1a1b1a] rounded-xl"},oa={class:"h-[40px] flex items-center justify-center rounded-t-xl text-black font-bold",style:{background:`linear-gradient(
6                                    180deg,
7                                    var(--primary-color-1),
8                                    var(--primary-color-2)
9                                )`}},ra={class:"p-5"},ia={class:"primary-color-font"},la=L({__name:"PopupBenefits",props:{show:{type:Boolean,default:!1},minMaxCashback:{},minMaxCommission:{},dataArrayCashback:{},dataArrayCommission:{},rankingInfo:{}},emits:["close"],setup(x,{emit:k}){const{t:i}=D(),o=k,r=x,g=()=>{o("close")},u=m=>m.reduce((R,_)=>R+_.amount,0);function d(m){return m*100}return(m,R)=>(s(),P(Y,{title:t(i)("benefits.title"),"show-modal":r.show,onClose:g},{content:M(()=>[e("div",Ns,[e("div",Fs,[e("h4",Ps,n(t(i)("ranking.nextRankReward")),1),e("div",As,[r.rankingInfo.multi_reward?(s(),a(y,{key:0},[r.rankingInfo.is_multi_reward?(s(!0),a(y,{key:0},F(r.rankingInfo.multi_reward,_=>(s(),a(y,{key:_},[_.type==="credit"?(s(),a("div",Es,[Ls,e("p",Ds,n(t(l)(Math.max(..._.reward))),1)])):_.type==="point"?(s(),a("div",Os,[Ss,e("p",Us,n(t(l)(Math.max(..._.reward))),1)])):_.type==="ticket"?(s(),a("div",Ts,[Gs,e("p",Ys,n(t(i)("randomBox.ticket")),1),_.ticket_reward?(s(),a("p",qs,n(u(_.ticket_reward)),1)):p("",!0)])):p("",!0)],64))),128)):(s(),a("div",Ks,[Qs,e("p",Hs,n(t(l)(Math.max(...r.rankingInfo.reward.reward))),1)]))],64)):(s(),a("div",Js,[Ws,e("p",Xs,n(t(l)(Math.max(...r.rankingInfo.reward.reward))),1)]))])]),e("div",Zs,[e("div",ea,[e("h4",ta,n(t(i)("benefits.cashback"))+" "+n(d(Number(t(l)(r.minMaxCashback.min))).toFixed(2))+" - "+n(d(Number(t(l)(r.minMaxCashback.max))).toFixed(2))+"% ",1),e("div",na,[(s(!0),a(y,null,F(r.dataArrayCashback,_=>(s(),a("div",{key:_,class:"flex justify-between pb-2"},[e("p",null,n(t(i)(`game.category.${_.name.toLocaleLowerCase()}`)),1),e("p",sa,n(t(l)(_.percent?_.percent*100:0,{},!1))+"% ",1)]))),128))])]),e("div",aa,[e("h4",oa,n(t(i)("benefits.commission"))+" "+n(d(Number(t(l)(r.minMaxCommission.min))).toFixed(2))+" - "+n(d(Number(t(l)(r.minMaxCommission.max))).toFixed(2))+"% ",1),e("div",ra,[(s(!0),a(y,null,F(r.dataArrayCommission,_=>(s(),a("div",{key:_,class:"flex justify-between pb-2"},[e("p",null,n(t(i)(`game.category.${_.name.toLocaleLowerCase()}`)),1),e("p",ia,n(t(l)(_.percent?_.percent*100:0,{},!1))+"% ",1)]))),128))])])])])]),_:1},8,["title","show-modal"]))}}),ca={key:0,class:"p-2 space-y-6"},ua={class:"wrap-banner"},da=["src"],_a={class:"pr-4 space-y-3"},fa={key:0,class:"wrap-theme-card mt-2"},ma={class:"inner-theme-card !p-2"},xa={class:"flex justify-between text-[#fff]"},pa={key:1,class:"wrap-theme-card"},ha={class:"inner-theme-card !p-2"},ka={class:"flex justify-between text-[#fff]"},va={key:0},ga={class:"wrap-banner mb-5"},ba=["src"],ya={class:"flex flex-row space-x-3"},wa={class:"flex justify-center"},Va=L({__name:"RankingView",props:{show:{type:Boolean,default:!1}},emits:["close"],setup(x,{emit:k}){const{t:i}=D(),o=de(),r=Re(),g=$(!1),u=$({}),d=$(!1),m=$(!1),R=$(!1),_=$({}),I=Ie("(max-width: 600px)"),B=$({}),z=$({}),C=$({}),w=$({}),f=$({}),j=$({}),O=k,xe=x,pe=N(()=>r.$state.user),he=N(()=>r.$state.token),ke=N(()=>{var c;return(c=o.prefix_data)==null?void 0:c.commission}),ve=N(()=>{var c;return(c=o.prefix_data)==null?void 0:c.cashback}),K=N(()=>!(u.value.banner_mobile&&u.value.banner_mobile.length===1)),Q=N(()=>!(u.value.banner&&u.value.banner.length===1)),ee=()=>{O("close")};ue(async()=>
9{if(!o.isRankingEnabled){ee();return}g.value=!0,await ge(),g.value=!1,be(),ye()});function te(){return I.value?"auto":"200px"}async function ge(){if(o.isRankingEnabled){g.value=!0;try{const c=await Be.getRanking(pe.value.username,he.value);if(c.message.code===0)c.data&&(u.value=c.data);else throw new Error(c.message.message)}catch(c){console.log(c)}}}const be=()=>{const c=u.value.currentRank.cashback;return c&&(f.value=U(c)),c},ye=()=>{const c=u.value.currentRank.commission;return c&&(j.value=U(c)),c},ne=c=>{const h=u.value.rankInfo.findIndex(v=>v.ranking===c);_.value=u.value.rankInfo[h],ae(_.value),d.value=!0},se=c=>{if(console.log("🚀 ~ onOpenRewardInfo ~ rank:",c),u.value){const h=u.value.rankInfo.findIndex(v=>v.ranking===c);_.value=u.value.rankInfo[h],m.value=!0}},ae=c=>{c&&(c.cashback?(B.value=oe(c.cashback).filter(h=>h.name!=="MUAY"&&h.name!=="UFA"),C.value=U(B.value)):(C.value={min:0,max:0},B.value=null),c.commission?(z.value=oe(c.commission).filter(h=>h.name!=="MUAY"&&h.name!=="UFA"),w.value=U(z.value)):(w.value={min:0,max:0},z.value=null))};function oe(c){const h=Object.keys(c).map(v=>({name:v,percent:c[v].percent}));return h.sort((v,A)=>v.percent-A.percent),h}const U=c=>{const h=Object.keys(c).map(Me=>c[Me].percent),v=Math.min(...h),A=Math.max(...h);return{min:v,max:A}},H=c=>{c.commission||(w.value={min:0,max:0},z.value=null),c.cashback||(C.value={min:0,max:0},B.value=null),_.value=c,ae(c),R.value=!0},we=()=>{d.value=!1},$e=()=>{m.value=!1},Ce=()=>{R.value=!1};return(c,h)=>(s(),a(y,null,[b(Ve,{"is-loading":g.value},null,8,["is-loading"]),b(Y,{title:t(i)("ranking.title"),"show-modal":xe.show,onClose:ee,style:E(t(I)?"":"width: 900px;")},{content:M(()=>[t(I)?(s(),a(y,{key:0},[g.value?p("",!0):(s(),a("div",ca,[e("div",ua,[b(t(G),{draggable:K.value,loop:K.value,touchable:K.value,direction:"horizontal","dot-type":"dot","dot-placement":"bottom"},{default:M(()=>[(s(!0),a(y,null,F(t(I)?u.value.banner_mobile:u.value.banner,(v,A)=>(s(),P(t(ie),{key:A},{default:M(()=>[e("img",{loading:"eager",class:"carousel-img w-full h-full",src:v,style:E(`height: ${te()}`)},null,12,da)]),_:2},1024))),128))]),_:1},8,["draggable","loop","touchable"])]),b(ce,{"is-mobile":!0,"current-value":u.value.currentValue,"current-rank":u.value.currentRank,percent:u.value.percent,minMaxCashback:C.value,minMaxCommission:w.value,minMaxCurrentRankCashback:f.value,minMaxCurrentRankCommission:j.value,openBenefits:H},null,8,["current-value","current-rank","percent","minMaxCashback","minMaxCommission","minMaxCurrentRankCashback","minMaxCurrentRankCommission"]),b(t(me),{id:"custom-scrollbar",trigger:"none",style:{"max-height":"420px"}},{default:M(()=>[e("div",_a,[ve.value.is_reward_ranking?(s(),a("div",fa,[e("div",ma,[e("div",xa,[e("p",null,n(t(i)("benefits.cashback")),1),e("p",null,n(Number(t(l)(f.value.min*100)).toFixed(2))+" - "+n(Number(t(l)(f.value.max*100)).toFixed(2))+"% ",1)])])])):p("",!0),ke.value.is_reward_ranking?(s(),a("div",pa,[e("div",ha,[e("div",ka,[e("p",null,n(t(i)("benefits.commission")),1),e("p",null,n(Number(t(l)(j.value.min*100)).toFixed(2))+" - "+n(Number(t(l)(j.value.max*100)).toFixed(2))+"% ",1)])])])):p("",!0),b(Xe,{"current-value":u.value.currentValue},null,8,["current-value"]),b(le,{"is-mobile":!0,"ranking-info":u.value.rankInfo,"current-rank":u.value.currentRank.title,onOpenRank:h[0]||(h[0]=v=>ne(v)),onOpenReward:h[1]||(h[1]=v=>se(v))},null,8,["ranking-info","current-rank"])])]),_:1})]))],64)):(s(),a(y,{key:1},[g.value?p("",!0):(s(),a("div",va,[e("div",ga,[b(t(G),{draggable:Q.value,loop:Q.value,touchable:Q.value,direction:"horizontal","dot-type":"dot","dot-placement":"bottom"},{default:M(()=>[(s(!0),a(y,null,F(u.value.banner,(v,A)=>(s(),P(t(ie),{key:A},{default:M(()=>[e("img",{loading:"eager",class:"carousel-img w-full h-full",src:v,style:E(`height: ${te()}`)},null,12,ba)]),_:2},1024))),128))]),_:1},8,["draggable","loop","touchable"])]),e("div",ya,[b(ce,{"is-mobile":!1,"current-value":u.value.currentValue,"current-rank":u.value.currentRank,percent:u.value.percent,openBenefits:H,minMaxCashback:C.value,minMaxCommission:w.value,minMaxCurrentRankCashback:f.value,minMaxCurrentRankCommission:j.value},null,8,["current-value","current-rank","percent","minMaxCashback","minMaxCommission","minMaxCurrentRankCashback","minMaxCurrentRankCommission"]),b(le,{"is-mobile":!1,"ranking-info":u.value.rankInfo,"current-rank":u.value.currentRank.title,onOpenRank:h[2]||(h[2]=v=>ne(v)),onOpenReward:h[3]||(h[3]=v=>se(v))},null,8,["ranking-info","current-rank"])])]))],64)),e("div",wa,[b(je,{title:t(i)("condition"),type:"ranking"},null,8,["title"])])]),_:1},8,["title","show-modal","style"]),b(Lt,{show:d.value,"ranking-info":_.value,onClose:we,openBenefits:H,minMaxCashback:C.value,minMaxCommission:w.value},null,8,["show","ranking-info","minMaxCashback","minMaxCommission"]),b(an,{show:m.value,"ranking-info":_.value,onClose:$e},null,8,["show","ranking-info"]),b(la,{show:R.value,onClose:Ce,minMaxCashback:C.value,minMaxCommission:w.value,dataArrayCashback:B.value,dataArrayCommission:z.value,rankingInfo:_.value},null,8,["show","minMaxCashback","minMaxCommission","dataArrayCashback","dataArrayCommission","rankingInfo"])],64))}});
9export{Va as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.