import{V as L,Q as x,a0 as G,r as E,O as D,F,W as g,ak as H,m,$ as _,N as i,p as e,ao as P,Z as o,an as V,X as w,Y as k,w as N,u as W,o as r,af as T}from"./common.modules-adc6b33e.js";import{K as j,bo as u,bp as z,bq as R,c as h,g as B,_ as K}from"./page-activity-ActivityDetail-b9249b49.js";import{E as O}from"./page-activity-Championship-4cc13bf8.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 n=j.global.t;n("lottery"),n("electronic"),n("sport"),n("live"),n("chess"),n("fishing"),n("miniGame");const Q=[{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"}],U={class:"gamestats-container"},X={class:"gamestats-container-header"},Z={class:"gamestats-container-banner"},J={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=L({__name:"index",setup(A){const{t:l}=x(),q=G(),v=E(0),M=[{title:l("today"),records:"hello"},{title:l("yesterday"),records:"hello"},{title:l("thisWeek"),records:"hello"},{title:l("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:N(t.start*1e3).format("YYYY-MM-DD HH:mm:ss"),endDate:N(t.end*1e3).format("YYYY-MM-DD HH:mm:ss")}},y=D({startDate:d(0).startDate,endDate:d(0).endDate}),Y=a=>{const t=Q.find(p=>a.gameTypeName.toLowerCase()===p.typeName);return t==null?void 0:t.icon},c=D({list:[],sumBetAmount:0}),b=async()=>{const[a,t]=await z(R(y));a&&W({message:a.msg,wordBreak:"break-word"}),t&&(c.list=t.gameStatis,c.sumBetAmount=t.sumBetAmount)};F(()=>{b()});const C=a=>{y.startDate=d(a).startDate,y.endDate=d(a).endDate,b()};return(a,t)=>{const p=g("NavBar"),S=g("van-tab"),$=g("van-tabs"),f=H("lazy");return r(),m("div",U,[_(p,{title:a.$t("gameStats"),"left-arrow":"",onClickLeft:t[0]||(t[0]=s=>i(q).go(-1))},null,8,["title"]),e("div",X,[_($,{active:v.value,"onUpdate:active":t[1]||(t[1]=s=>v.value=s),type:"card",onChange:C},{default:P(()=>[(r(),m(w,null,k(M,s=>_(S,{title:s.title},null,8,["title"])),64))]),_:1},8,["active"])]),e("div",Z,[e("h1",null,o(i(h)(c.sumBetAmount||0)),1),e("span",null,o(a.$t("totalBetAmount")),1)]),e("div",J,[c.list.length===0?(r(),V(O,{key:0,style:{"margin-top":"40px"}})):(r(),m("div",ee,[(r(!0),m(w,null,k(c.list,(s,I)=>(r(),m("div",{class:"gamestats-container-item",key:I},[e("h1",null,[T(e("img",te,null,512),[[f,i(B)("main",Y(s))]]),e("span",null,o(s.gameTypeName),1)]),e("div",ae,[T(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=K(oe,[["__scopeId","data-v-0fabbe57"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/views/main/GameStats/index.vue"]]);export{de as default};
//# sourceMappingURL=page-main-GameStats-b99c1243.js.map
