import{U as I,P as x,$ as G,r as E,N as D,E as P,V as g,ah as H,m,Z as _,M as i,p as e,am as V,Y as o,al as W,W as w,X as N,v as T,t as j,o as r,ai as k}from"./common.modules-219f1756.js";import{L as F,bl as u,bm as z,bn as R,c as h,g as B,_ as U}from"./page-activity-ActivityDetail-346b11b6.js";import{E as X}from"./page-activity-Championship-f7467ceb.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 n=F.global.t;n("lottery"),n("electronic"),n("sport"),n("live"),n("chess"),n("fishing"),n("miniGame");const Z=[{name:n("chess"),type:5,icon:"iconChess",typeName:"chesscard"},{name:n("fishing"),type:3,icon:"iconFishing",typeName:"fish"},{name:n("electronic"),type:2,icon:"iconElectric",typeName:"electronic"},{name:n("lottery"),type:0,icon:"iconLottery",typeName:"lottery"},{name:n("sport"),type:4,icon:"iconPhysics",typeName:"sport"},{name:n("live"),type:5,icon:"iconRealPerson",typeName:"video"},{name:n("miniGame"),type:6,icon:"iconMiniGame",typeName:"smallgame"},{name:n("electronic"),type:2,icon:"iconSlots",typeName:"slot"}],J={class:"gamestats-container"},K={class:"gamestats-container-header"},O={class:"gamestats-container-banner"},Q={class:"gamestats-container-list-wrapper"},ee={key:1,class:"gamestats-container-items"},te={alt:""},ae={class:"gamestats-container-item-content"},ne={alt:""},se={class:"gamestats-container-item-content-list"},oe=I({__name:"index",setup(A){const{t:c}=x(),M=G(),v=E(0),Y=[{title:c("today"),records:"hello"},{title:c("yesterday"),records:"hello"},{title:c("thisWeek"),records:"hello"},{title:c("thisMonth"),records:"hello"}],d=a=>{let t={start:0,end:0};switch(a){case 0:t=u().today;break;case 1:t=u().yesterday;break;case 2:t=u().last7days;break;case 3:t=u().thisMonth;break}return{startDate:T(t.start*1e3).format("YYYY-MM-DD HH:mm:ss"),endDate:T(t.end*1e3).format("YYYY-MM-DD HH:mm:ss")}},y=D({startDate:d(0).startDate,endDate:d(0).endDate}),q=a=>{const t=Z.find(p=>a.gameTypeName.toLowerCase()===p.typeName);return t==null?void 0:t.icon},l=D({list:[],sumBetAmount:0}),b=async()=>{const[a,t]=await z(R(y));a&&j({message:a.msg,wordBreak:"break-word"}),t&&(l.list=t.gameStatis,l.sumBetAmount=t.sumBetAmount)};P(()=>{b()});const C=a=>{y.startDate=d(a).startDate,y.endDate=d(a).endDate,b()};return(a,t)=>{const p=g("NavBar"),L=g("van-tab"),S=g("van-tabs"),f=H("lazy");return r(),m("div",J,[_(p,{title:a.$t("gameStats"),"left-arrow":"",onClickLeft:t[0]||(t[0]=s=>i(M).go(-1))},null,8,["title"]),e("div",K,[_(S,{active:v.value,"onUpdate:active":t[1]||(t[1]=s=>v.value=s),type:"card",onChange:C},{default:V(()=>[(r(),m(w,null,N(Y,s=>_(L,{title:s.title},null,8,["title"])),64))]),_:1},8,["active"])]),e("div",O,[e("h1",null,o(i(h)(l.sumBetAmount||0)),1),e("span",null,o(a.$t("totalBetAmount")),1)]),e("div",Q,[l.list.length===0?(r(),W(X,{key:0,style:{"margin-top":"40px"}})):(r(),m("div",ee,[(r(!0),m(w,null,N(l.list,(s,$)=>(r(),m("div",{class:"gamestats-container-item",key:$},[e("h1",null,[k(e("img",te,null,512),[[f,i(B)("main",q(s))]]),e("span",null,o(s.gameTypeName),1)]),e("div",ae,[k(e("img",ne,null,512),[[f,i(B)("main","gameStatsSteps")]]),e("div",se,[e("div",null,[e("h4",null,o(a.$t("betAmount")),1),e("h5",null,o(i(h)(s.betAmount)),1)]),e("div",null,[e("h4",null,o(a.$t("betTimes")),1),e("h5",null,o(s.betCount),1)]),e("div",null,[e("h4",null,o(a.$t("winningAmount")),1),e("span",null,o(i(h)(s.betWinLossAmount)),1)])])])]))),128))]))])])}}});const de=U(oe,[["__scopeId","data-v-0fabbe57"],["__file","/usr/local/jenkins-prod/workspace/ar077-india-jalwa/src/views/main/GameStats/index.vue"]]);export{de as default};
//# sourceMappingURL=page-main-GameStats-421afff0.js.map
