import{V as k,a0 as N,r,H as w,W as v,m as d,p as t,ap as P,Z as _,$ as i,ad as f,an as B,aj as g,o as s}from"./common.modules-adc6b33e.js";import{E as z}from"./page-activity-Championship-4cc13bf8.js";import{M as A}from"./MayrecordList-4d944c8f.js";import{A as D,dY as V,_ as x}from"./page-activity-ActivityDetail-b9249b49.js";window.getBuildInfo=function(){return{buildTime:"4/17/2025, 12:09:57 PM",branch:" commitId:8bf9f27a915f5dcd9b9436e446b585b05218b863"}};const E={class:"MyGameRecord__C"},H={key:0,class:"MyGameRecord__C-head"},I={class:"MyGameRecord__C-body"},S={key:1,class:"MyGameRecord__C-body-empty"},q={key:1,class:"MyGameRecord__C-foot"},F={class:"MyGameRecord__C-foot-page"},L=k({__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,h=N(),l=r(4),C=r(20),a=r(1),c=r([]),M=o=>{h.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:C.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 b=v("svg-icon"),y=v("van-icon");return s(),d("div",E,[o.hasHead?(s(),d("div",H,[t("div",{class:"MyGameRecord__C-head-moreB",onClick:e[0]||(e[0]=T=>M(o.goPathName))},[P(_(o.$t("more"))+" ",1),i(b,{name:"rightCircle"})])])):f("v-if",!0),t("div",I,[c.value.length?(s(),B(A,{key:0,mayrecord:c.value},null,8,["mayrecord"])):(s(),d("div",S,[i(z)]))]),c.value.length?(s(),d("div",q,[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",F,_(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/ar079-india-tashanwin/src/components/Home/AllLotteryGames/FD/MyGameRecord.vue"]]);export{Z as F};
//# sourceMappingURL=MyGameRecord-bb369bb8.js.map
