import{U as k,$ as N,r as c,G as w,V as f,m as i,p as t,ao as B,Y as u,Z as d,ad as g,am as P,ah as h,o as s}from"./common.modules-7ef9f935.js";import{E as A}from"./page-activity-Championship-f257e4a3.js";import{M as q}from"./MayrecordList-70b8c8b5.js";import{bq as z,_ as V}from"./page-activity-ActivityDetail-6651511c.js";window.getBuildInfo=function(){return{buildTime:"3/28/2025, 7:06:51 PM",branch:"origin/masterBranch/main commitId:afb5d46f657248d3137decf21a49f44fbff20383"}};const x={class:"MyGameRecord__C"},E={key:0,class:"MyGameRecord__C-head"},I={class:"MyGameRecord__C-body"},S={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,C=N(),m=c(4),G=c(20),a=c(1),r=c([]),M=o=>{C.push({name:o})},b=()=>{a.value--,n()},R=()=>{a.value++,n()},n=async(o=!1)=>{if(l.typeid==null)return;o&&(a.value=1);const[_,e]=await z(l.ApiFun({pageSize:G.value,pageNo:a.value,typeId:l.typeid}));e&&(r.value=(e==null?void 0:e.list)||[],m.value=(e==null?void 0:e.totalPage)||0)};return y({getData:n}),w(()=>{n()}),(o,_)=>{const e=f("svg-icon"),v=f("van-icon");return s(),i("div",x,[o.hasHead?(s(),i("div",E,[t("div",{class:"MyGameRecord__C-head-moreB",onClick:_[0]||(_[0]=$=>M(o.goPathName))},[B(u(o.$t("more"))+" ",1),d(e,{name:"rightCircle"})])])):g("v-if",!0),t("div",I,[r.value.length?(s(),P(q,{key:0,mayrecord:r.value},null,8,["mayrecord"])):(s(),i("div",S,[d(A)]))]),r.value.length?(s(),i("div",F,[t("div",{class:h(["MyGameRecord__C-foot-previous",{disabled:a.value<=1}]),onClick:b},[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:h(["MyGameRecord__C-foot-next",{disabled:a.value>=m.value}]),onClick:R},[d(v,{name:"arrow",class:"MyGameRecord__C-icon",size:"20"})],2)])):g("v-if",!0)])}}});const U=V(T,[["__scopeId","data-v-4b21e13b"],["__file","/var/lib/jenkins/workspace/web-印度-ar050-daman-01/src/components/Home/AllLotteryGames/WinGo/MyGameRecord.vue"]]);export{U as M};
//# sourceMappingURL=MyGameRecord-92dfb960.js.map
