import{V as P,a0 as z,r as m,F as V,W as v,m as B,p as _,$ as u,ao as I,aj as k,Z as T,ad as G,o as g,X as S,Y as E,an as F}from"./common.modules-adc6b33e.js";import{bf as H,A as Z,dZ as U,_ as W}from"./page-activity-ActivityDetail-b9249b49.js";import{M as X}from"./MayrecordList-9592f54e.js";import{K as Y}from"./page-main-BetRecords-273e3827.js";import"./native/index-0b5e3b14.js";import"./en-8e350547.js";import"./page-activity-DailySignIn-37493f03.js";import"./page-activity-Championship-4cc13bf8.js";import"./page-home-AllGames-46186fc1.js";window.getBuildInfo=function(){return{buildTime:"4/17/2025, 12:09:57 PM",branch:" commitId:8bf9f27a915f5dcd9b9436e446b585b05218b863"}};const $={class:"BettingRecordK3__C"},q={class:"BettingRecordK3__C-head"},J={class:"BettingRecordK3__C-nav"},Q=["innerHTML"],O={class:"BettingRecordK3__C-list"},ee={key:0,class:"BettingRecordK3__C-foot"},te={class:"BettingRecordK3__C-foot-page"},oe=P({__name:"index",setup(x){const C=z(),b=H(),h=m(Y),L=m([]),K=m(0),d=m(1),y=m(4),A=p=>{w.value=p.name,d.value=1,f()},w=m(0),f=async()=>{const p=await Z(U({pageSize:20,pageNo:d.value,typeId:w.value})),o=(p==null?void 0:p.data.list)||[];for(let a=0;o.length>a;a++){let i=o[a].gameType.split(","),e=o[a].selectType.split(",");for(let n=0;i.length>n;n++)if(i[n]=="1"||i[n]=="2"||i[n]=="3")o[a].gameType="1",o[a].oneList=e;else if(i[n]=="5"||i[n]=="6"){let l=[],c=[],r=[];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 s=e[t].split("|");s.pop(),s.shift(),l.push(s.join())}if(e[t]==":11:"||e[t]==":22:"||e[t]==":33:"||e[t]==":44:"||e[t]==":55:"||e[t]==":66:"){let s=e[t].split(":");s.pop(),s.shift(),c.push(s.join())}if(e[t]==":1:"||e[t]==":2:"||e[t]==":3:"||e[t]==":4:"||e[t]==":5:"||e[t]==":6:"){let s=e[t].split(":");s.pop(),s.shift(),r.push(s.join())}}o[a].gameType="2",o[a].oneList=l,o[a].towList=!!R(c,r),o[a].towListArr=R(c,r)}else if(i[n]=="7"||i[n]=="8"){let l=[],c=!1;for(let r=0;e.length>r;r++){if(e[r]=="|111|"||e[r]=="|222|"||e[r]=="|333|"||e[r]=="|444|"||e[r]=="|555|"||e[r]=="|666|"){let t=e[r].split("|");t.pop(),t.shift(),l.push(t.join())}e[r]=="|AAA|"&&(c=!0),o[a].oneList=l,o[a].towList=c,o[a].gameType="3"}}else if(i[n]=="9"||i[n]=="10"||i[n]=="4"){let l=[],c=!1,r=[];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 s=e[t].split("|");s.pop(),s.shift(),l.push(s.join())}if(e[t]=="|ABC|"&&(c=!0),e[t]==".1."||e[t]==".2."||e[t]==".3."||e[t]==".4."||e[t]==".5."||e[t]==".6."){let s=e[t].split(".");s.pop(),s.shift(),r.push(s.join())}}o[a].oneList=l,o[a].towList=c,o[a].threeList=r,o[a].gameType="4"}}L.value=o||[],y.value=(p==null?void 0:p.data.totalPage)||0},R=(p,o)=>{let a=[];for(var i=0;p.length>i;i++){let n=p[i],l=[];for(var e=0;o.length>e;e++)l.push(o[e]);if(l.length>0){let c=l.sort().join(",");a.push(n+"|"+c)}}return a.sort()},N=async()=>{await b.getK3Data(),h.value=b.getK3,w.value=h.value[0].typeID,await f()};function j(){C.go(-1)}const M=()=>{d.value--,f()},D=()=>{d.value++,f()};return V(()=>{N()}),(p,o)=>{const a=v("NavBar"),i=v("van-tab"),e=v("van-tabs"),n=v("van-icon");return g(),B("div",$,[_("div",q,[u(a,{"left-arrow":"",onClickLeft:j,class:"main",title:"K3 Lotre"})]),_("div",J,[u(e,{active:K.value,"onUpdate:active":o[0]||(o[0]=l=>K.value=l),onClickTab:A},{default:I(()=>[(g(!0),B(S,null,E(h.value,(l,c)=>(g(),F(i,{key:c,name:l.typeID},{title:I(()=>[_("div",{innerHTML:l.typeName.replace(/<br ?\/?>/,"")},null,8,Q)]),_:2},1032,["name"]))),128))]),_:1},8,["active"])]),_("div",O,[u(X,{mayrecord:L.value},null,8,["mayrecord"])]),L.value.length?(g(),B("div",ee,[_("div",{class:k(["BettingRecordK3__C-foot-previous",{disabled:d.value<=1}]),onClick:M},[u(n,{name:"arrow-left",class:"BettingRecordK3__C-icon",size:"20"})],2),_("div",te,T(d.value)+"/"+T(y.value),1),_("div",{class:k(["BettingRecordK3__C-foot-next",{disabled:d.value>=y.value}]),onClick:D},[u(n,{name:"arrow",class:"BettingRecordK3__C-icon",size:"20"})],2)])):G("v-if",!0)])}}});const _e=W(oe,[["__scopeId","data-v-c228f246"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/views/home/AllLotteryGames/BettingRecordK3/index.vue"]]);export{_e as default};
//# sourceMappingURL=index-f9e725a0.js.map
