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