import{U as P,$ as z,r as h,G as S,V as w,m as v,p as f,an as V,Y as L,Z as g,ac as k,al as x,ag as b,o as u}from"./common.modules-219f1756.js";import{E}from"./page-activity-Championship-f7467ceb.js";import{M as q}from"./MayrecordList-7fcd3aa2.js";import{A as H,dS as $,_ as D}from"./page-activity-ActivityDetail-346b11b6.js";window.getBuildInfo=function(){return{buildTime:"3/15/2025, 9:01:28 PM",branch:" commitId:c8ca98fce6fc864cab311715d288030620d0dc9f"}};const K={class:"MyGameRecord__C"},U={key:0,class:"MyGameRecord__C-head"},Y={class:"MyGameRecord__C-body"},Z={key:1,class:"MyGameRecord__C-body-empty"},F={key:1,class:"MyGameRecord__C-foot"},J={class:"MyGameRecord__C-foot-page"},Q=P({__name:"MyGameRecord",props:{typeid:{type:Number,required:!0},goPathName:{type:String,required:!0},hasHead:{type:Boolean,required:!0,default:!0}},setup(M,{expose:G}){const R=M,I=z(),C=h(4),N=h(20),m=h(1),_=h([]),A=c=>{I.push({name:c})},T=()=>{m.value--,y()},j=()=>{m.value++,y()},y=async(c=!1)=>{if(R.typeid==null)return;c&&(m.value=1);const r=await H($({pageSize:N.value,pageNo:m.value,typeId:R.typeid})),s=(r==null?void 0:r.data.list)||[];for(let o=0;s.length>o;o++){let i=s[o].gameType.split(","),e=s[o].selectType.split(",");for(let l=0;i.length>l;l++)if(i[l]=="1"||i[l]=="2"||i[l]=="3")s[o].gameType="1",s[o].oneList=e;else if(i[l]=="5"||i[l]=="6"){let d=[],p=[],n=[];for(let t=0;e.length>t;t++){if(e[t]=="|11|"||e[t]=="|22|"||e[t]=="|33|"||e[t]=="|44|"||e[t]=="|55|"||e[t]=="|66|"){let a=e[t].split("|");a.pop(),a.shift(),d.push(a.join())}if(e[t]==":11:"||e[t]==":22:"||e[t]==":33:"||e[t]==":44:"||e[t]==":55:"||e[t]==":66:"){let a=e[t].split(":");a.pop(),a.shift(),p.push(a.join())}if(e[t]==":1:"||e[t]==":2:"||e[t]==":3:"||e[t]==":4:"||e[t]==":5:"||e[t]==":6:"){let a=e[t].split(":");a.pop(),a.shift(),n.push(a.join())}}s[o].gameType="2",s[o].oneList=d,s[o].towList=B(p,n)}else if(i[l]=="7"||i[l]=="8"){let d=[],p=!1;for(let n=0;e.length>n;n++){if(e[n]=="|111|"||e[n]=="|222|"||e[n]=="|333|"||e[n]=="|444|"||e[n]=="|555|"||e[n]=="|666|"){let t=e[n].split("|");t.pop(),t.shift(),d.push(t.join())}e[n]=="|AAA|"&&(p=!0),s[o].oneList=d,s[o].towList=p,s[o].gameType="3"}}else if(i[l]=="9"||i[l]=="10"||i[l]=="4"){let d=[],p=!1,n=[];for(let t=0;e.length>t;t++){if(e[t]=="|1|"||e[t]=="|2|"||e[t]=="|3|"||e[t]=="|4|"||e[t]=="|5|"||e[t]=="|6|"){let a=e[t].split("|");a.pop(),a.shift(),d.push(a.join())}if(e[t]=="|ABC|"&&(p=!0),e[t]==".1."||e[t]==".2."||e[t]==".3."||e[t]==".4."||e[t]==".5."||e[t]==".6."){let a=e[t].split(".");a.pop(),a.shift(),n.push(a.join())}}s[o].oneList=d,s[o].towList=p,s[o].threeList=n,s[o].gameType="4"}}_.value=s||[],C.value=(r==null?void 0:r.data.totalPage)||0},B=(c,r)=>{let s=[];for(var o=0;c.length>o;o++){let e=c[o],l=[];for(var i=0;r.length>i;i++)l.push(r[i]);if(l.length>0){let d=l.sort().join(",");s.push(e+"|"+d)}}return s.sort()};return G({getData:y}),S(()=>{y()}),(c,r)=>{const s=w("svg-icon"),o=w("van-icon");return u(),v("div",K,[c.hasHead?(u(),v("div",U,[f("div",{class:"MyGameRecord__C-head-moreB",onClick:r[0]||(r[0]=i=>A(c.goPathName))},[V(L(c.$t("more"))+" ",1),g(s,{name:"rightCircle"})])])):k("v-if",!0),f("div",Y,[_.value.length?(u(),x(q,{key:0,mayrecord:_.value},null,8,["mayrecord"])):(u(),v("div",Z,[g(E)]))]),_.value.length?(u(),v("div",F,[f("div",{class:b(["MyGameRecord__C-foot-previous",{disabled:m.value<=1}]),onClick:T},[g(o,{name:"arrow-left",class:"MyGameRecord__C-icon",size:"20"})],2),f("div",J,L(m.value)+"/"+L(C.value),1),f("div",{class:b(["MyGameRecord__C-foot-next",{disabled:m.value>=C.value}]),onClick:j},[g(o,{name:"arrow",class:"MyGameRecord__C-icon",size:"20"})],2)])):k("v-if",!0)])}}});const te=D(Q,[["__scopeId","data-v-cffd8c9f"],["__file","/usr/local/jenkins-prod/workspace/ar077-india-jalwa/src/components/Home/AllLotteryGames/K3/MyGameRecord.vue"]]);export{te as M};
//# sourceMappingURL=MyGameRecord-f376f4f2.js.map
