import{U as I,P as x,$ as E,r as G,N as D,E as P,V as g,ai as H,m,Z as _,M as i,p as e,an as V,Y as o,am as W,W as w,X as N,v as T,t as F,o as r,aj as k}from"./common.modules-7ef9f935.js";import{L as j,bp as u,bq as z,br as R,c as h,g as B,_ as U}from"./page-activity-ActivityDetail-6651511c.js";import{E as X}from"./page-activity-Championship-f257e4a3.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 n=j.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:l}=x(),M=E(),v=G(0),q=[{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: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}),Y=a=>{const t=Z.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&&F({message:a.msg,wordBreak:"break-word"}),t&&(c.list=t.gameStatis,c.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(q,s=>_(L,{title:s.title},null,8,["title"])),64))]),_:1},8,["active"])]),e("div",O,[e("h1",null,o(i(h)(c.sumBetAmount||0)),1),e("span",null,o(a.$t("totalBetAmount")),1)]),e("div",Q,[c.list.length===0?(r(),W(X,{key:0,style:{"margin-top":"40px"}})):(r(),m("div",ee,[(r(!0),m(w,null,N(c.list,(s,$)=>(r(),m("div",{class:"gamestats-container-item",key:$},[e("h1",null,[k(e("img",te,null,512),[[f,i(B)("main",Y(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","/var/lib/jenkins/workspace/web-印度-ar050-daman-01/src/views/main/GameStats/index.vue"]]);export{de as default};
//# sourceMappingURL=page-main-GameStats-602d5ce2.js.map
