import{V as P,a0 as z,r as h,H as V,W as b,m as v,p as f,ap as x,Z as L,$ as g,ad as w,an as E,aj as k,o as u}from"./common.modules-adc6b33e.js";import{E as H}from"./page-activity-Championship-4cc13bf8.js";import{M as S}from"./MayrecordList-9592f54e.js";import{A as q,dZ as $,_ as D}from"./page-activity-ActivityDetail-b9249b49.js";window.getBuildInfo=function(){return{buildTime:"4/17/2025, 12:09:57 PM",branch:" commitId:8bf9f27a915f5dcd9b9436e446b585b05218b863"}};const K={class:"MyGameRecord__C"},Z={key:0,class:"MyGameRecord__C-head"},W={class:"MyGameRecord__C-body"},F={key:1,class:"MyGameRecord__C-body-empty"},J={key:1,class:"MyGameRecord__C-foot"},Q={class:"MyGameRecord__C-foot-page"},U=P({__name:"MyGameRecord",props:{typeid:{type:Number,required:!0},goPathName:{type:String,required:!0},hasHead:{type:Boolean,required:!0,default:!0}},setup(M,{expose:R}){const G=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(G.typeid==null)return;c&&(m.value=1);const r=await q($({pageSize:N.value,pageNo:m.value,typeId:G.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 R({getData:y}),V(()=>{y()}),(c,r)=>{const s=b("svg-icon"),o=b("van-icon");return u(),v("div",K,[c.hasHead?(u(),v("div",Z,[f("div",{class:"MyGameRecord__C-head-moreB",onClick:r[0]||(r[0]=i=>A(c.goPathName))},[x(L(c.$t("more"))+" ",1),g(s,{name:"rightCircle"})])])):w("v-if",!0),f("div",W,[_.value.length?(u(),E(S,{key:0,mayrecord:_.value},null,8,["mayrecord"])):(u(),v("div",F,[g(H)]))]),_.value.length?(u(),v("div",J,[f("div",{class:k(["MyGameRecord__C-foot-previous",{disabled:m.value<=1}]),onClick:T},[g(o,{name:"arrow-left",class:"MyGameRecord__C-icon",size:"20"})],2),f("div",Q,L(m.value)+"/"+L(C.value),1),f("div",{class:k(["MyGameRecord__C-foot-next",{disabled:m.value>=C.value}]),onClick:j},[g(o,{name:"arrow",class:"MyGameRecord__C-icon",size:"20"})],2)])):w("v-if",!0)])}}});const te=D(U,[["__scopeId","data-v-cffd8c9f"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/components/Home/AllLotteryGames/K3/MyGameRecord.vue"]]);export{te as M};
//# sourceMappingURL=MyGameRecord-74328d1c.js.map
