import{V as z,Q as F,r as i,a0 as G,O as j,F as D,W as v,m as c,$ as l,N as T,ao as h,p as s,X as w,Y as C,o as r,aj as E,Z as d,ap as M}from"./common.modules-adc6b33e.js";import{N as O}from"./page-home-AllGames-46186fc1.js";import{A as S,ay as P,ca as Q,_ as U}from"./page-activity-ActivityDetail-b9249b49.js";import"./native/index-0b5e3b14.js";import"./en-8e350547.js";window.getBuildInfo=function(){return{buildTime:"4/17/2025, 12:09:57 PM",branch:" commitId:8bf9f27a915f5dcd9b9436e446b585b05218b863"}};const W={class:"x-page"},X={class:"x-page-list"},Y={class:"title"},Z={class:"box"},q={class:"sum"},H={class:"num"},J=z({__name:"index",setup(k){const{t:a}=F(),L=i(null),m=i(0),_=i(0),x=e=>{_.value=e.item.codeType,window.scroll({top:0})},N=e=>parseFloat(e),R=G(),I=[{name:a("lottery"),img:"lottery",id:1,codeType:0},{name:a("live"),img:"video",id:6,codeType:2},{name:a("sport"),img:"sport",id:5,codeType:3},{name:a("chess"),img:"chess",id:7,codeType:4},{name:a("electric"),img:"slot",id:4,codeType:1}],n=i([{type:"rebateratelist",title:a("commissionTitle1"),content:[]},{type:"dianzilist",title:a("commissionTitle2"),content:[]},{type:"shixunlist",title:a("commissionTitle3"),content:[]},{type:"tiyulist",title:a("commissionTitle4"),content:[]},{type:"chesslist",title:a("commissionTitle5"),content:[]}]),y=j([]);let b=i([]);const B=async()=>{const e=await S(P());e&&(e.data.forEach(t=>{t.state===1&&y.push({id:t.id,isShow:t.state===1,title:a("code"+t.typeNameCode),img:t.categoryImg,key:t.categoryCode.toLocaleLowerCase()})}),b.value=I.filter(t=>y.some(u=>t.id===u.id)))},$=async()=>{try{const e=await Q();n.value[0].content=e.rebateratelist,n.value[1].content=e.dianzilist,n.value[2].content=e.shixunlist,n.value[3].content=e.tiyulist,n.value[4].content=e.chesslist}catch{}};return D(()=>{$(),B()}),(e,t)=>{const u=v("NavBar"),f=v("svg-icon"),A=v("van-sticky");return r(),c("div",W,[l(u,{title:e.$t("rebateRatio"),"left-arrow":"",onClickLeft:t[0]||(t[0]=o=>T(R).go(-1))},null,8,["title"]),l(A,{"offset-top":46,container:L.value,class:"bet-container-sticky"},{default:h(()=>[s("div",null,[l(O,{list:T(b),active:m.value,"onUpdate:active":t[1]||(t[1]=o=>m.value=o),tabClassName:"tabs",onOnClickTab:x,activeClassName:"tab_active",ref:"tabRefs",tabItemClassName:"funtab_item"},{default:h(({item:o,index:p})=>[s("div",{class:E(["tab_item",{tab_active:p===m.value}])},[l(f,{name:o.img},null,8,["name"]),s("span",null,d(o.name),1)],2)]),_:1},8,["list","active"])])]),_:1},8,["container"]),s("div",X,[(r(!0),c(w,null,C(n.value[_.value].content,(o,p)=>(r(),c("div",{class:"item",key:p},[s("div",Y,[M(d(e.$t("rebateLevel"))+" ",1),s("span",null,"L"+d(o.rebate_Lv),1)]),s("div",Z,[(r(!0),c(w,null,C(o.rebateLevels,(g,V)=>(r(),c("div",{class:"li",key:V},[l(f,{name:"round",class:"img"}),s("div",null,[s("span",q,d(e.$t("lowerRrebate",[g.levelId])),1),s("span",H,d(N(g.amount))+"%",1)])]))),128))])]))),128))])])}}});const oe=U(J,[["__scopeId","data-v-a6a0c110"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/views/promotion/RebateRatio/index.vue"]]);export{oe as default};
//# sourceMappingURL=page-promotion-RebateRatio-63be99bd.js.map
