import{U as V,P as z,r as i,$ as G,N as M,E as D,V as v,m as c,Z as l,M as T,an as h,p as s,W as w,X as C,o as r,ah as F,Y as d,ao as P}from"./common.modules-7ef9f935.js";import{N as S}from"./page-home-AllGames-2e11b3d4.js";import{A as U,ay as j,cb as O,_ as W}from"./page-activity-ActivityDetail-6651511c.js";import"./native/index-1870b44d.js";import"./en-fc63d25a.js";window.getBuildInfo=function(){return{buildTime:"3/28/2025, 7:06:51 PM",branch:"origin/masterBranch/main commitId:afb5d46f657248d3137decf21a49f44fbff20383"}};const X={class:"x-page"},Y={class:"x-page-list"},Z={class:"title"},q={class:"box"},H={class:"sum"},J={class:"num"},K=V({__name:"index",setup(k){const{t:a}=z(),L=i(null),m=i(0),_=i(0),x=e=>{_.value=e.item.codeType,window.scroll({top:0})},N=e=>parseFloat(e),R=G(),B=[{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 I=async()=>{const e=await U(j());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=B.filter(t=>y.some(u=>t.id===u.id)))},A=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 D(()=>{A(),I()}),(e,t)=>{const u=v("NavBar"),b=v("svg-icon"),$=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($,{"offset-top":46,container:L.value,class:"bet-container-sticky"},{default:h(()=>[s("div",null,[l(S,{list:T(f),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:F(["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,[P(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,E)=>(r(),c("div",{class:"li",key:E},[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","/var/lib/jenkins/workspace/web-印度-ar050-daman-01/src/views/promotion/RebateRatio/index.vue"]]);export{oe as default};
//# sourceMappingURL=page-promotion-RebateRatio-de357e89.js.map
