import{U as z,P as E,r as i,$ as G,N as M,E as j,V as v,m as c,Z as l,M as T,am as h,p as s,W as w,X as C,o as r,ag as D,Y as d,an as F}from"./common.modules-219f1756.js";import{N as P}from"./page-home-AllGames-8eb8c5f2.js";import{A as S,ax as U,c7 as O,_ as W}from"./page-activity-ActivityDetail-346b11b6.js";import"./native/index-a8a2a0fc.js";import"./en-43c55ab8.js";window.getBuildInfo=function(){return{buildTime:"3/15/2025, 9:01:28 PM",branch:" commitId:c8ca98fce6fc864cab311715d288030620d0dc9f"}};const X={class:"x-page"},Y={class:"x-page-list"},Z={class:"title"},q={class:"box"},H={class:"sum"},J={class:"num"},K=z({__name:"index",setup(k){const{t:a}=E(),x=i(null),m=i(0),_=i(0),L=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=M([]);let f=i([]);const B=async()=>{const e=await S(U());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()})}),f.value=I.filter(t=>y.some(u=>t.id===u.id)))},$=async()=>{try{const e=await O();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 j(()=>{$(),B()}),(e,t)=>{const u=v("NavBar"),b=v("svg-icon"),A=v("van-sticky");return r(),c("div",X,[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:x.value,class:"bet-container-sticky"},{default:h(()=>[s("div",null,[l(P,{list:T(f),active:m.value,"onUpdate:active":t[1]||(t[1]=o=>m.value=o),tabClassName:"tabs",onOnClickTab:L,activeClassName:"tab_active",ref:"tabRefs",tabItemClassName:"funtab_item"},{default:h(({item:o,index:p})=>[s("div",{class:D(["tab_item",{tab_active:p===m.value}])},[l(b,{name:o.img},null,8,["name"]),s("span",null,d(o.name),1)],2)]),_:1},8,["list","active"])])]),_:1},8,["container"]),s("div",Y,[(r(!0),c(w,null,C(n.value[_.value].content,(o,p)=>(r(),c("div",{class:"item",key:p},[s("div",Z,[F(d(e.$t("rebateLevel"))+" ",1),s("span",null,"L"+d(o.rebate_Lv),1)]),s("div",q,[(r(!0),c(w,null,C(o.rebateLevels,(g,V)=>(r(),c("div",{class:"li",key:V},[l(b,{name:"round",class:"img"}),s("div",null,[s("span",H,d(e.$t("lowerRrebate",[g.levelId])),1),s("span",J,d(N(g.amount))+"%",1)])]))),128))])]))),128))])])}}});const oe=W(K,[["__scopeId","data-v-a6a0c110"],["__file","/usr/local/jenkins-prod/workspace/ar077-india-jalwa/src/views/promotion/RebateRatio/index.vue"]]);export{oe as default};
//# sourceMappingURL=page-promotion-RebateRatio-cd080c8b.js.map
