import{b7 as N,dv as D,aY as n,aT as s,a$ as a,b9 as y,bg as m,bh as b,bc as T,b0 as i,aS as $,a_ as A,b_ as u,ba as o,aZ as B,aX as w,ae as G,bM as x,bN as z,u as O,O as S,r as V,bf as L,N as p,bq as j}from"./index-xnhGKCfe.js";import{P as E}from"./index-97-mhYEo.js";import{L as M}from"./ListCard-DLGywHCA.js";import{c as g}from"./currency-DTUBf2lI.js";import{u as P}from"./useChampoinship-D42gQede.js";import"./pre-D84pmYLY.js";import"./useProtocol-DJp7lFWi.js";const q={class:"rank-list"},F={class:"header-row"},H={class:"rank-cell"},J={key:0},W={key:4},X={key:1,class:"minRank-name"},Y={key:2,class:"highlight2"},Z={key:3,class:"rank-name"},K={key:0},Q={key:4,class:"rank-name"},U={key:1,class:"noCell"},ss={key:0,class:"data-row text-row"},es=N({__name:"RankList",props:{isRank:{type:Boolean},titleList:{},rankListData:{}},setup(k){const c=D(),d=k;return(h,f)=>{const r=A;return s(),n("section",q,[a("div",F,[(s(!0),n(m,null,b(d.titleList,e=>(s(),n("div",{class:T(["header-cell",{"head-name":e.showName}])},i(e.title),3))),256))]),(s(!0),n(m,null,b(k.rankListData,(e,v)=>(s(),n("div",{key:v,class:"data-row"},[(s(!0),n(m,null,b(d.titleList,t=>(s(),n("div",H,[t.key&&e?(s(),n(m,{key:0},[t.key==="ranking"?(s(),n(m,{key:0},[e[t.key]?e[t.key]===1&&d.isRank?(s(),$(r,{key:1,name:"icon_ranking_01",class:"rangIcon"})):e[t.key]===2&&d.isRank?(s(),$(r,{key:2,name:"icon_ranking_02",class:"rangIcon"})):e[t.key]===3&&d.isRank?(s(),$(r,{key:3,name:"icon_ranking_03",class:"rangIcon"})):(s(),n("em",W,i(e[t.key]),1)):(s(),n("em",J,"*"))],64)):t.key==="minRanking"?(s(),n("div",X,[u(" NO."+i(e[t.key])+" ",1),e.maxRanking!==e.minRanking?(s(),n(m,{key:0},[u(" -"+i(e.maxRanking),1)],64)):y("",!0)])):["awardAmount","bonus"].includes(t.key)?(s(),n("span",Y,i(o(g)(e[t.key])),1)):t.showName?(s(),n("div",Z,[t.showName?(s(),n("p",K,i(e.nickName),1)):y("",!0),a("span",null,i(t.isNumber?o(g)(e[t.key]):e[t.key]),1)])):(s(),n("div",Q,i(t.isNumber?o(g)(e[t.key]):e[t.key]),1))],64)):(s(),n("span",U,"--"))]))),256))]))),128)),o(c).rowTip?(s(),n("div",ss,[B(h.$slots,"rowTip",{},void 0,!0)])):y("",!0)])}}}),C=w(es,[["__scopeId","data-v-8b65d7f5"]]),ns={class:"game-cont"},as={class:"game-title"},ts=["onClick"],os=["alt"],is=N({__name:"GameList",props:{gameList:{}},setup(k){const c=k,{onGameJump:d}=G();return(h,f)=>{const r=x("lazy");return s(),n("div",ns,[a("div",as,i(h.$t("t444")),1),a("ul",null,[(s(!0),n(m,null,b(c.gameList,e=>(s(),n("li",{key:e.gameCode,onClick:v=>o(d)(e)},[z(a("img",{alt:e.gameCode},null,8,os),[[r,e.gameImage]])],8,ts))),128))])])}}}),cs=w(is,[["__scopeId","data-v-072e1408"]]),rs={class:"activity-name"},ls={key:0,class:"loading-container"},ds={key:1,class:"championbox"},_s={key:0,class:"condition-area"},ms={class:"section"},us={class:"section-title"},ks={class:"section-content"},hs={class:""},ps={class:"conditions-box"},ys={class:"condition-item"},gs={class:"highlight2"},vs={class:"condition-item"},bs={class:"highlight2"},$s={class:"condition-item"},fs={class:"highlight2"},Ls=N({__name:"detail",setup(k){const{cardItem:c,countdowns:d,getChampionDetail:h,joinNow:f}=P(),{t:r}=O(),e=V(!0);S(async()=>{try{await h()}finally{e.value=!1}});const v=[{title:r("t439"),key:"ranking",isNumber:!1},{title:r("t437"),key:"betAmount",isNumber:!0},{title:r("common.bonus"),key:"bonus",isNumber:!0}],t=[{title:r("t1272"),key:"ranking",isNumber:!1},{title:r("t437"),key:"betAmount",showName:!0,isNumber:!0},{title:r("common.bonus"),key:"bonus",isNumber:!0}];return(_,l)=>{const I=j;return s(),$(E,{class:"activity",isBackHome:!1},{title:L(()=>[a("div",rs,i(_.$t("t503")),1)]),default:L(()=>{var R;return[e.value?(s(),n("div",ls,[p(I,{size:"50px",color:"var(--main_color, #4298EA)",vertical:""})])):o(c)?(s(),n("div",ds,[p(M,{countdowns:o(d),cardItems:o(c)},null,8,["countdowns","cardItems"]),o(c).championOrderInfo?y("",!0):(s(),n("div",_s,[a("section",ms,[a("h2",us,i(_.$t("t435")),1),a("p",ks,[a("span",hs,i(o(c).gameName),1),u(" "+i(_.$t("t436")),1)]),a("div",ps,[a("div",ys,[l[1]||(l[1]=a("span",{class:"diamond"},"◆",-1)),u(" "+i(_.$t("t437"))+" ",1),a("span",gs,i(o(g)(o(c).betAmount)),1)]),a("div",vs,[l[2]||(l[2]=a("span",{class:"diamond"},"◆",-1)),u(" "+i(_.$t("t64"))+" ",1),a("span",bs,i(o(g)(o(c).rechargeAmount)),1)]),a("div",$s,[l[3]||(l[3]=a("span",{class:"diamond"},"◆",-1)),u(" "+i(_.$t("t438"))+" ",1),a("span",fs,i(o(c).bindWalletName),1)])])]),a("button",{class:"join-button",onClick:l[0]||(l[0]=Ns=>o(f)(o(c).id||0))},[a("span",null,i(_.$t("t459")),1)])])),p(C,{titleList:v,isRank:!1,rankListData:[o(c).championOrderInfo]},null,8,["rankListData"]),p(C,{titleList:t,isRank:!0,rankListData:o(c).userRankingList},{rowTip:L(()=>[...l[4]||(l[4]=[u(" Ranking are updated every 10 minutes ",-1)])]),_:1},8,["rankListData"]),p(cs,{gameList:((R=o(c))==null?void 0:R.championGameList)||[]},null,8,["gameList"])])):y("",!0)]}),_:1})}}}),Bs=w(Ls,[["__scopeId","data-v-a9fa38ec"]]);export{Bs as default};
