import{U as k,$ as N,r as n,G as w,V as f,m as i,p as t,an as P,Y as u,Z as d,ac as g,al as B,ag as C,o as s}from"./common.modules-219f1756.js";import{E as z}from"./page-activity-Championship-f7467ceb.js";import{M as A}from"./MayrecordList-84464425.js";import{bm as V,_ as q}from"./page-activity-ActivityDetail-346b11b6.js";window.getBuildInfo=function(){return{buildTime:"3/15/2025, 9:01:28 PM",branch:" commitId:c8ca98fce6fc864cab311715d288030620d0dc9f"}};const x={class:"MyGameRecord__C"},I={key:0,class:"MyGameRecord__C-head"},S={class:"MyGameRecord__C-body"},E={key:1,class:"MyGameRecord__C-body-empty"},F={key:1,class:"MyGameRecord__C-foot"},H={class:"MyGameRecord__C-foot-page"},T=k({__name:"MyGameRecord",props:{typeid:{type:Number,required:!0},ApiFun:{type:Function,required:!0},goPathName:{type:String,required:!0},hasHead:{type:Boolean,required:!0,default:!0}},setup(p,{expose:y}){const l=p,G=N(),m=n(4),M=n(20),a=n(1),c=n([]),h=o=>{G.push({name:o})},R=()=>{a.value--,r()},b=()=>{a.value++,r()},r=async(o=!1)=>{if(l.typeid==null)return;o&&(a.value=1);const[_,e]=await V(l.ApiFun({pageSize:M.value,pageNo:a.value,typeId:l.typeid}));e&&(c.value=(e==null?void 0:e.list)||[],m.value=(e==null?void 0:e.totalPage)||0)};return y({getData:r}),w(()=>{r()}),(o,_)=>{const e=f("svg-icon"),v=f("van-icon");return s(),i("div",x,[o.hasHead?(s(),i("div",I,[t("div",{class:"MyGameRecord__C-head-moreB",onClick:_[0]||(_[0]=$=>h(o.goPathName))},[P(u(o.$t("more"))+" ",1),d(e,{name:"rightCircle"})])])):g("v-if",!0),t("div",S,[c.value.length?(s(),B(A,{key:0,mayrecord:c.value},null,8,["mayrecord"])):(s(),i("div",E,[d(z)]))]),c.value.length?(s(),i("div",F,[t("div",{class:C(["MyGameRecord__C-foot-previous",{disabled:a.value<=1}]),onClick:R},[d(v,{name:"arrow-left",class:"MyGameRecord__C-icon",size:"20"})],2),t("div",H,u(a.value)+"/"+u(m.value),1),t("div",{class:C(["MyGameRecord__C-foot-next",{disabled:a.value>=m.value}]),onClick:b},[d(v,{name:"arrow",class:"MyGameRecord__C-icon",size:"20"})],2)])):g("v-if",!0)])}}});const U=q(T,[["__scopeId","data-v-4b21e13b"],["__file","/usr/local/jenkins-prod/workspace/ar077-india-jalwa/src/components/Home/AllLotteryGames/WinGo/MyGameRecord.vue"]]);export{U as M};
//# sourceMappingURL=MyGameRecord-851f4c3d.js.map
