import{U as j,$ as z,r as y,G as E,V as w,m as v,p as f,ao as V,Y as L,Z as g,ad as b,am as x,ah as k,o as u}from"./common.modules-7ef9f935.js";import{E as S}from"./page-activity-Championship-f257e4a3.js";import{M as q}from"./MayrecordList-87e72b47.js";import{A as H,dX as $,_ as D}from"./page-activity-ActivityDetail-6651511c.js";window.getBuildInfo=function(){return{buildTime:"3/28/2025, 7:06:51 PM",branch:"origin/masterBranch/main commitId:afb5d46f657248d3137decf21a49f44fbff20383"}};const K={class:"MyGameRecord__C"},U={key:0,class:"MyGameRecord__C-head"},X={class:"MyGameRecord__C-body"},Y={key:1,class:"MyGameRecord__C-body-empty"},Z={key:1,class:"MyGameRecord__C-foot"},F={class:"MyGameRecord__C-foot-page"},J=j({__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,A=z(),C=y(4),I=y(20),m=y(1),_=y([]),N=c=>{A.push({name:c})},B=()=>{m.value--,h()},T=()=>{m.value++,h()},h=async(c=!1)=>{if(R.typeid==null)return;c&&(m.value=1);const r=await H($({pageSize:I.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=P(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},P=(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:h}),E(()=>{h()}),(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=>N(c.goPathName))},[V(L(c.$t("more"))+" ",1),g(s,{name:"rightCircle"})])])):b("v-if",!0),f("div",X,[_.value.length?(u(),x(q,{key:0,mayrecord:_.value},null,8,["mayrecord"])):(u(),v("div",Y,[g(S)]))]),_.value.length?(u(),v("div",Z,[f("div",{class:k(["MyGameRecord__C-foot-previous",{disabled:m.value<=1}]),onClick:B},[g(o,{name:"arrow-left",class:"MyGameRecord__C-icon",size:"20"})],2),f("div",F,L(m.value)+"/"+L(C.value),1),f("div",{class:k(["MyGameRecord__C-foot-next",{disabled:m.value>=C.value}]),onClick:T},[g(o,{name:"arrow",class:"MyGameRecord__C-icon",size:"20"})],2)])):b("v-if",!0)])}}});const te=D(J,[["__scopeId","data-v-cffd8c9f"],["__file","/var/lib/jenkins/workspace/web-印度-ar050-daman-01/src/components/Home/AllLotteryGames/K3/MyGameRecord.vue"]]);export{te as M};
//# sourceMappingURL=MyGameRecord-aa970c52.js.map
