import{V as k,a0 as N,r as c,H as w,W as f,m as i,p as t,ap as P,Z as u,$ as d,ad as g,an as B,aj as b,o as s}from"./common.modules-adc6b33e.js";import{E as z}from"./page-activity-Championship-4cc13bf8.js";import{M as A}from"./MayrecordList-c95c652e.js";import{bp as V,_ as q}from"./page-activity-ActivityDetail-b9249b49.js";window.getBuildInfo=function(){return{buildTime:"4/17/2025, 12:09:57 PM",branch:" commitId:8bf9f27a915f5dcd9b9436e446b585b05218b863"}};const x={class:"MyGameRecord__C"},H={key:0,class:"MyGameRecord__C-head"},I={class:"MyGameRecord__C-body"},S={key:1,class:"MyGameRecord__C-body-empty"},E={key:1,class:"MyGameRecord__C-foot"},F={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,h=N(),_=c(4),C=c(20),a=c(1),n=c([]),M=o=>{h.push({name:o})},G=()=>{a.value--,r()},R=()=>{a.value++,r()},r=async(o=!1)=>{if(l.typeid==null)return;o&&(a.value=1);const[m,e]=await V(l.ApiFun({pageSize:C.value,pageNo:a.value,typeId:l.typeid}));e&&(n.value=(e==null?void 0:e.list)||[],_.value=(e==null?void 0:e.totalPage)||0)};return y({getData:r}),w(()=>{r()}),(o,m)=>{const e=f("svg-icon"),v=f("van-icon");return s(),i("div",x,[o.hasHead?(s(),i("div",H,[t("div",{class:"MyGameRecord__C-head-moreB",onClick:m[0]||(m[0]=W=>M(o.goPathName))},[P(u(o.$t("more"))+" ",1),d(e,{name:"rightCircle"})])])):g("v-if",!0),t("div",I,[n.value.length?(s(),B(A,{key:0,mayrecord:n.value},null,8,["mayrecord"])):(s(),i("div",S,[d(z)]))]),n.value.length?(s(),i("div",E,[t("div",{class:b(["MyGameRecord__C-foot-previous",{disabled:a.value<=1}]),onClick:G},[d(v,{name:"arrow-left",class:"MyGameRecord__C-icon",size:"20"})],2),t("div",F,u(a.value)+"/"+u(_.value),1),t("div",{class:b(["MyGameRecord__C-foot-next",{disabled:a.value>=_.value}]),onClick:R},[d(v,{name:"arrow",class:"MyGameRecord__C-icon",size:"20"})],2)])):g("v-if",!0)])}}});const Z=q(T,[["__scopeId","data-v-4b21e13b"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/components/Home/AllLotteryGames/WinGo/MyGameRecord.vue"]]);export{Z as M};
//# sourceMappingURL=MyGameRecord-30b4dd1d.js.map
