import{C as N,N as P,r as n,R as w,D as u,E as d,F as t,ay as B,K as _,M as i,al as y,ar as D,am as v,I as s}from"./common.modules-7b90237f.js";import{E as b}from"./page-activity-Bonus-9d46271c.js";import{M as z}from"./MayrecordList-ddd08056.js";import{A,ea as E,_ as x}from"./page-activity-ActivityDetail-27bd7cf0.js";const F={class:"MyGameRecord__C"},S={key:0,class:"MyGameRecord__C-head"},V={class:"MyGameRecord__C-body"},q={key:1,class:"MyGameRecord__C-body-empty"},H={key:1,class:"MyGameRecord__C-foot"},I={class:"MyGameRecord__C-foot-page"},L=N({__name:"MyGameRecord",props:{typeid:{type:Number,required:!0},goPathName:{type:String,required:!0},hasHead:{type:Boolean,required:!0,default:!0}},setup(g,{expose:f}){const m=g,C=P(),l=n(4),M=n(20),a=n(1),r=n([]),R=o=>{C.push({name:o})},h=()=>{a.value--,c()},G=()=>{a.value++,c()},c=async(o=!1)=>{if(m.typeid==null)return;o&&(a.value=1);const e=await A(E({pageSize:M.value,pageNo:a.value,typeId:m.typeid}));r.value=(e==null?void 0:e.data.list)||[],l.value=(e==null?void 0:e.data.totalPage)||0};return f({getData:c}),w(()=>{c()}),(o,e)=>{const k=u("svg-icon"),p=u("van-icon");return s(),d("div",F,[o.hasHead?(s(),d("div",S,[t("div",{class:"MyGameRecord__C-head-moreB",onClick:e[0]||(e[0]=$=>R(o.goPathName))},[B(_(o.$t("more"))+" ",1),i(k,{name:"rightCircle"})])])):y("v-if",!0),t("div",V,[r.value.length?(s(),D(z,{key:0,mayrecord:r.value},null,8,["mayrecord"])):(s(),d("div",q,[i(b)]))]),r.value.length?(s(),d("div",H,[t("div",{class:v(["MyGameRecord__C-foot-previous",{disabled:a.value<=1}]),onClick:h},[i(p,{name:"arrow-left",class:"MyGameRecord__C-icon",size:"20"})],2),t("div",I,_(a.value)+"/"+_(l.value),1),t("div",{class:v(["MyGameRecord__C-foot-next",{disabled:a.value>=l.value}]),onClick:G},[i(p,{name:"arrow",class:"MyGameRecord__C-icon",size:"20"})],2)])):y("v-if",!0)])}}});const O=x(L,[["__scopeId","data-v-36ddca8e"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/components/Home/AllLotteryGames/FD/MyGameRecord.vue"]]);export{O as F};
