import{G as M,R as G,r as a,C as I,H as i,I as m,J as t,Q as n,au as f,ao as y,P as C,an as D,N as c,K as P,M as z,at as A}from"./common.modules-8cbc64b2.js";import{br as H,bA as S,ei as V,_ as E}from"./page-activity-ActivityDetail-11971e62.js";import{M as j}from"./MayrecordList-74282d68.js";import{w as F}from"./page-main-BetRecords-1e884b74.js";import"./page-turntable-assets-d6267459.js";import"./native/index-15fb3a5d.js";import"./en-5d34117c.js";import"./page-activity-DailySignIn-aa4b91fa.js";import"./page-activity-Bonus-36161c6d.js";import"./page-home-AllGames-1b3c8b5f.js";const J={class:"BettingRecordWinTrx__C"},K={class:"BettingRecordWinTrx__C-head"},Q={class:"BettingRecordWinTrx__C-nav"},U=["innerHTML"],q={class:"BettingRecordWinTrx__C-list"},O={key:0,class:"BettingRecordWinTrx__C-foot"},X={class:"BettingRecordWinTrx__C-foot-page"},Y=M({__name:"index",setup(Z){const T=G(),p=H(),l=a(F),_=a([]),g=a(0),e=a(1),d=a(0),v=a(4),b=u=>{d.value=u.name,e.value=1,s()},s=async()=>{const[u,o]=await S(V({pageSize:20,pageNo:e.value,typeId:d.value}));_.value=o.list||[],v.value=o.totalPage},B=async()=>{await p.getTrxData(),l.value=p.getTrx,d.value=l.value[0].typeID,s()};function R(){T.go(-1)}const W=()=>{e.value--,s()},k=()=>{e.value++,s()};return I(()=>{B()}),(u,o)=>{const w=i("NavBar"),h=i("van-tab"),L=i("van-tabs"),x=i("van-icon");return c(),m("div",J,[t("div",K,[n(w,{"left-arrow":"",onClickLeft:R,class:"main",title:"Trx Win Go"})]),t("div",Q,[n(L,{active:g.value,"onUpdate:active":o[0]||(o[0]=r=>g.value=r),onClickTab:b},{default:f(()=>[(c(!0),m(P,null,z(l.value,(r,N)=>(c(),A(h,{key:N,name:r.typeID},{title:f(()=>[t("div",{innerHTML:r.typeName.replace(/<br ?\/?>/,"")},null,8,U)]),_:2},1032,["name"]))),128))]),_:1},8,["active"])]),t("div",q,[n(j,{mayrecord:_.value},null,8,["mayrecord"])]),_.value.length?(c(),m("div",O,[t("div",{class:y(["BettingRecordWinTrx__C-foot-previous",{disabled:e.value<=1}]),onClick:W},[n(x,{name:"arrow-left",class:"BettingRecordWinTrx__C-icon",size:"20"})],2),t("div",X,C(e.value)+"/"+C(v.value),1),t("div",{class:y(["BettingRecordWinTrx__C-foot-next",{disabled:e.value>=v.value}]),onClick:k},[n(x,{name:"arrow",class:"BettingRecordWinTrx__C-icon",size:"20"})],2)])):D("v-if",!0)])}}});const le=E(Y,[["__scopeId","data-v-7bbbf1c1"],["__file","/usr/local/jenkins-prod/workspace/ar055-india-bdg/src/views/home/AllLotteryGames/BettingRecordWinTrx/index.vue"]]);export{le as default};
