import{V as O,Q as P,a0 as V,r as w,P as D,w as d,O as j,M as z,W as u,ak as A,m as v,$ as l,N as r,p as s,X as E,Y as Q,Z as F,an as b,o as i,aj as G,af as J}from"./common.modules-adc6b33e.js";import{bg as U,_ as W}from"./page-activity-ActivityDetail-b9249b49.js";import{S as X}from"./showResult-3b4d72f2.js";import{u as Z}from"./use4D.hook-861a13a1.js";import{E as q}from"./page-activity-Championship-4cc13bf8.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 H={class:"LR"},K={class:"lotterys"},ee=["onClick"],te={alt:""},ae={class:"date"},se={class:"dateBox"},oe={class:"result"},ne=O({__name:"index",setup(h){const{typeList:m,getTypeList:Y,gameResultByType:p,gameResultByTypeO:f}=Z();Y();const{t:B}=P(),C=V(),y=w(0),c=D(()=>m.value?m.value.slice(1):[]),{minDate:x,maxDate:g}=U(0),L=d(g).startOf("day"),o=w(!1),t=j({type:0,date:L.format("YYYY-MM-DD")});z(()=>c,()=>{c.value.length>0&&(t.type=c.value[0].typeId,p(t))},{deep:!0,immediate:!0});const I=D(()=>d(t.date).format("YYYY-MM-DD")+" "+B(`${d(t.date).format("dddd")}`)),M=a=>{o.value=!1,t.date=d(a).format("YYYY-MM-DD"),p(t)};function N(a,e){y.value=e,t.type=a.typeId,p(t)}return(a,e)=>{const R=u("NavBar"),k=u("svg-icon"),S=u("ArSelect"),T=u("van-calendar"),$=A("lazy");return i(),v("div",H,[l(R,{"left-arrow":"",onClickLeft:e[0]||(e[0]=()=>r(C).back()),title:a.$t("d4Tip2")},null,8,["title"]),s("div",K,[(i(!0),v(E,null,Q(c.value,(n,_)=>(i(),v("div",{class:G(["main",{active:y.value===_}]),onClick:le=>N(n,_),key:_},[J(s("img",te,null,512),[[$,n.typeImg]])],10,ee))),128))]),s("div",ae,[s("div",se,[l(k,{name:"arrLeft"}),l(S,{onClickSelect:e[1]||(e[1]=n=>o.value=!0),selectName:I.value},null,8,["selectName"]),l(k,{name:"arrLeft"})])]),s("div",oe,[s("h1",null,F(a.$t("betResult")),1),JSON.stringify(r(f))!=="{}"?(i(),b(X,{key:0,data:r(f)},null,8,["data"])):(i(),b(q,{key:1}))]),l(T,{show:o.value,"onUpdate:show":e[2]||(e[2]=n=>o.value=n),onCancel:e[3]||(e[3]=()=>o.value=!1),onConfirm:M,"min-date":r(x),"max-date":r(g)},null,8,["show","min-date","max-date"])])}}});const _e=W(ne,[["__scopeId","data-v-d1d6b410"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/views/home/AllLotteryGames/4DLotteryResults/index.vue"]]);export{_e as default};
//# sourceMappingURL=index-1959f0bb.js.map
