import{U as P,$ as z,r as m,E,V as v,m as w,p as _,Z as f,an as I,ah as k,Y as T,ad as V,o as g,W as G,X as S,am as H}from"./common.modules-7ef9f935.js";import{aY as U,A as X,dX as Y,_ as F}from"./page-activity-ActivityDetail-6651511c.js";import{M as W}from"./MayrecordList-87e72b47.js";import{K as Z}from"./page-main-BetRecords-9a8052fd.js";import"./native/index-1870b44d.js";import"./en-fc63d25a.js";import"./page-activity-DailySignIn-ca25ffbf.js";import"./page-activity-Championship-f257e4a3.js";import"./page-home-AllGames-2e11b3d4.js";window.getBuildInfo=function(){return{buildTime:"3/28/2025, 7:06:51 PM",branch:"origin/masterBranch/main commitId:afb5d46f657248d3137decf21a49f44fbff20383"}};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=U(),h=m(Z),L=m([]),K=m(0),d=m(1),y=m(4),A=p=>{B.value=p.name,d.value=1,u()},B=m(0),u=async()=>{const p=await X(Y({pageSize:20,pageNo:d.value,typeId:B.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,B.value=h.value[0].typeID,await u()};function j(){C.go(-1)}const M=()=>{d.value--,u()},D=()=>{d.value++,u()};return E(()=>{N()}),(p,o)=>{const a=v("NavBar"),i=v("van-tab"),e=v("van-tabs"),n=v("van-icon");return g(),w("div",$,[_("div",q,[f(a,{"left-arrow":"",onClickLeft:j,class:"main",title:"K3 Lotre"})]),_("div",J,[f(e,{active:K.value,"onUpdate:active":o[0]||(o[0]=l=>K.value=l),onClickTab:A},{default:I(()=>[(g(!0),w(G,null,S(h.value,(l,c)=>(g(),H(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,[f(W,{mayrecord:L.value},null,8,["mayrecord"])]),L.value.length?(g(),w("div",ee,[_("div",{class:k(["BettingRecordK3__C-foot-previous",{disabled:d.value<=1}]),onClick:M},[f(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},[f(n,{name:"arrow",class:"BettingRecordK3__C-icon",size:"20"})],2)])):V("v-if",!0)])}}});const _e=F(oe,[["__scopeId","data-v-c228f246"],["__file","/var/lib/jenkins/workspace/web-印度-ar050-daman-01/src/views/home/AllLotteryGames/BettingRecordK3/index.vue"]]);export{_e as default};
//# sourceMappingURL=index-354ef4c1.js.map
