import{V as x,a0 as C,ak as D,o as r,m as c,p as u,af as E,N as O,Z as j,Q as U,r as f,c5 as W,W as y,$ as s,ao as T,X as g,Y as b}from"./common.modules-adc6b33e.js";import{g as X,_ as I}from"./page-activity-ActivityDetail-b9249b49.js";import"./native/index-0b5e3b14.js";import"./en-8e350547.js";window.getBuildInfo=function(){return{buildTime:"4/17/2025, 12:09:57 PM",branch:" commitId:8bf9f27a915f5dcd9b9436e446b585b05218b863"}};const z={class:"lotteryGamesList__container"},P={alt:""},R={class:"lotteryGamesList__container-item__time"},F=x({__name:"index",props:{gamesList:{type:Object,default:()=>{}}},setup(_){const e=C();function m(){e.push({name:"AllLotteryGames-VietnamLottery"})}return(t,v)=>{const l=D("lazy");return r(),c("div",z,[u("div",{class:"lotteryGamesList__container-item",onClick:m},[E(u("img",P,null,512),[[l,O(X)("home/AllLotteryGames","cover")]]),u("span",R,j(_.gamesList.title),1)])])}}});const H=I(F,[["__scopeId","data-v-22e2ba37"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/components/Home/AllLotteryGames/index.vue"]]),M={class:"lotteryGames__container"},G=46+90+35+16,B=16+28,Q=x({__name:"index",setup(_){const{t:e}=U(),m=C(),t=f(0),v=f(0),l=f(null),N=[{title:e("all"),value:"all"},{title:"Win Go",value:"winGo"},{title:e("Lotre4d"),value:"4DLottery"},{title:"Lottery",value:"lottery"},{title:"Xổ số",value:"lotteryVi"},{title:"Xổ số",value:"lotteryVi"}],L=[{title:e("all"),value:"all"},{title:e("minites1"),value:"60"},{title:e("minites3"),value:"180"},{title:e("minites5"),value:"300"},{title:e("minites10"),value:"600"},{title:e("minitesLong"),value:"long"}];function S(){m.go(-1)}function V(a){return a===t.value?t.value:-1}const{direction:h}=W(l,{onSwipeStart:()=>{d()},onSwipe:d,onSwipeEnd:()=>{d()}});function d(){const a=document.getElementById(`gamesList-${t.value}`);if(a){const{top:i,bottom:p}=a.getBoundingClientRect();p-G-B<0?h.value==="UP"&&(t.value=t.value+1):i-G-B>0&&h.value==="DOWN"&&(t.value=t.value-1)}}function $(){A()}function A(){const a=document.getElementById(`gamesList-${t.value}`);a&&l.value.scrollTo({top:a.offsetTop-G,behavior:"smooth"})}return(a,i)=>{const p=y("NavBar"),k=y("van-tab"),w=y("van-tabs");return r(),c("div",M,[s(p,{"left-arrow":"",title:a.$t("lottery"),onClickLeft:S},null,8,["title"]),s(w,{class:"lotteryGames__container-tabBar mgt10",active:t.value,"onUpdate:active":i[0]||(i[0]=n=>t.value=n),onClickTab:$,type:"card",color:"transparent",background:"transparent"},{default:T(()=>[(r(),c(g,null,b(N,(n,o)=>s(k,{name:o,key:o,title:n.title},null,8,["name","title"])),64))]),_:1},8,["active"]),s(w,{class:"lotteryGames__container-timeTab",active:v.value,"onUpdate:active":i[1]||(i[1]=n=>v.value=n),color:"#ff7172",background:"#fff"},{default:T(()=>[(r(),c(g,null,b(L,(n,o)=>s(k,{name:o,key:o,title:n.title},null,8,["name","title"])),64))]),_:1},8,["active"]),u("div",{class:"lotteryGames__container-list",ref_key:"allGamesContainer",ref:l},[(r(),c(g,null,b(L,(n,o)=>s(H,{"games-list":n,active:V(o),key:o,id:`gamesList-${o}`},null,8,["games-list","active","id"])),64))],512)])}}});const K=I(Q,[["__scopeId","data-v-147ae92c"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/views/home/AllLotteryGames/index.vue"]]);export{K as default};
//# sourceMappingURL=index-2bdd2e29.js.map
