1import{a1 as V,b as z,j as h,e as O,bt as E,y as Q,_ as U,Q as G,aD as Y,I as p,K as f,a4 as L,R as S,af as R,U as n,V as c,aE as H,ag as C,ah as M,aj as b,ai as Z,a8 as x,a9 as ee,B as te,bb as ne,E as J,ac as oe,a2 as ae,C as se,A as j,fq as ie,fr as le,fa as ce,fs as re,ft as ue,bB as de,aL as _e,bE as pe,ae as N,at as ve,l as ge}from"./index-CO-JGXWG.js";import{M as me}from"./MyGameRecord-DL2v3qcY.js";import{F as be}from"./MyGameRecord-DnAflF46.js";import{M as fe}from"./MyGameRecord-Duplluk_.js";import"./index-ss-2epQv.js";import"./MayrecordList-WBgh_ZuC.js";import"./MayrecordList-BcNkiDjT.js";import"./MayrecordList-CW8SuZcf.js";const he=V({__name:"BettingPopup",props:{selectInfo:{type:Object,default:()=>({})},bettingPopupShow:{type:Boolean,default:h(!1)},actionItem:{type:Object,default:()=>({})}},emits:["update:bettingPopupShow","update:selectInfo","clearBetting","submitBetting"],setup(o,{expose:l,emit:u}){l();const e=o,{t:v}=z(),i=h(!1),t=h(!0),s=O(()=>e.actionItem.scopeList||[]),d=h([1,5,10,20,50,100]),r=O({get(){return e.bettingPopupShow||!1},set(y){u("update:bettingPopupShow",y)}}),m=O(()=>Number(e.selectInfo.count)>=1),B=y=>{switch(y){case 1:e.selectInfo.count>1&&(e.selectInfo.count--,w());break;case 2:e.selectInfo.count++,w();break}},P=y=>{y>0&&(e.selectInfo.count=parseInt(y),w())},F=y=>{e.selectInfo.count=y,w()},K=y=>{e.selectInfo.coin=y,w()},$=()=>{i.value=!1,t.value=!0},A=()=>{m.value&&(t.value?u("submitBetting"):E(v("agreePresaleRules")))},w=()=>{e.selectInfo.allCoin=e.selectInfo.coin*e.selectInfo.count},W={t:v,emits:u,isShowPreSale:i,isCheckPreSale:t,props:e,betTypeList:s,multipleList:d,showPopup:r,canSubmit:m,Stepper:B,changeStep:P,TaskCount:F,changeCoin:K,knowPreSale:$,submitBetting:A,setAllCoin:w,get currency(){return Q}};return Object.defineProperty(W,"__isScriptSetup",{enumerable:!1,value:!0}),W}}),ye=o=>(x("data-v-6c7a1db6"),o=o(),ee(),o),ke={class:"Betting__Popup"},Ce={class:"Betting__Popup-head"},Be={class:"Betting__Popup-head-title"},Pe={class:"Betting__Popup-head-selectName"},Te={class:"Betting__Popup-body"},Se={class:"Betting__Popup-body-line"},we={class:"Betting__Popup-body-line-list"},Ie=["onClick"],Le={class:"Betting__Popup-body-line"},Re={class:"Betting__Popup-body-line-btnL"},Ge={class:"Betting__Popup-body-line"},De=ye(()=>n("div",null,null,-1)),Ne={class:"Betting__Popup-body-line-list"},Me=["onClick"],$e={class:"Betting__Popup-body-line"},Ae={class:"Betting__Popup-foot"},We={class:"Betting__Popup-PreSale"},je={class:"Betting__Popup-PreSale-head"},Oe={class:"Betting__Popup-PreSale-body"},Ee={class:"Betting__Popup-PreSale-foot"};function He(o,l,u,e,v,i){const t=G("van-field"),s=G("van-popup"),d=Y("throttle-click");return p(),f(C,null,[L(" ææ³¨å
容 begin "),S(s,{show:e.showPopup,"onUpdate:show":l[6]||(l[6]=r=>e.showPopup=r),position:"bottom",round:!0,"close-on-click-overlay":!1},{default:R(()=>[n("div",ke,[n("div",Ce,[n("div",Be,c(u.actionItem.lotteryName),1),n("div",Pe,[n("span",null,c(e.t("choose")),1),n("span",null,c(u.selectInfo.selectCon),1)])]),n("div",Te,[n("div",Se,[H(c(e.t("amount"))+" ",1),n("div",we,[(p(!0),f(C,null,M(e.betTypeList,(r,m)=>(p(),f("div",{key:m,class:b(["Betting__Popup-body-line-item",{bgcolor:u.selectInfo.coin==r}]),onClick:B=>e.changeCoin(r)},c(r),11,Ie))),128))])]),n("div",Le,[H(c(e.t("numbers"))+" ",1),n("div",Re,[n("div",{class:b(["Betting__Popup-btn",{bgcolor:u.selectInfo.count>0}]),onClick:l[0]||(l[0]=r=>e.Stepper(1))},"-",2),S(t,{class:"Betting__Popup-input",modelValue:u.selectInfo.count,"onUpdate:modelValue":l[1]||(l[1]=r=>u.selectInfo.count=r),type:"digit",maxlength:4,onInput:e.changeStep},null,8,["modelValue"]),n("div",{class:"Betting__Popup-btn bgcolor",onClick:l[2]||(l[2]=r=>e.Stepper(2))},"+")])]),n("div",Ge,[De,n("div",Ne,[(p(!0),f(C,null,M(e.multipleList,(r,m)=>(p(),f("div",{key:m,class:b(["Betting__Popup-body-line-item",{bgcolor:u.selectInfo.count==r}]),onClick:B=>e.TaskCount(r)}," X"+c(r),11,Me))),128))])]),n("div",$e,[n("span",{class:b(["Betting__Popup-agree",{active:e.isCheckPreSale}]),onClick:l[3]||(l[3]=r=>e.isCheckPreSale=!e.isCheckPreSale)},c(e.t("agree")),3),n("span",{onClick:l[4]||(l[4]=r=>e.isShowPreSale=!0),class:"Betting__Popup-preSaleShow"},c(e.t("presaleRules")),1)])]),n("div",Ae,[n("div",{class:"Betting__Popup-foot-c",onClick:l[5]||(l[5]=r=>e.emits("clearBetting"))},c(e.t("cancel")),1),Z((p(),f("div",{class:b(["Betting__Popup-foot-s bgcolor",{disabled:!e.canSubmit}])},[H(c(e.t("totalAmount"))+" "+c(e.currency(u.selectInfo.count*u.selectInfo.coin||0)),1)],2)),[[d,{handler:e.submitBetting,wait:2e3}]])])])]),_:1},8,["show"]),L(" è§åå¼¹å± begin"),S(s,{show:e.isShowPreSale,"onUpdate:show":l[7]||(l[7]=r=>e.isShowPreSale=r),"close-on-click-overlay":!1,round:""},{default:R(()=>[n("div",We,[n("div",je,c(e.t("presaleRules")),1),n("div",Oe,c(o.$t("betPopTXT")),1),n("div",Ee,[n("div",{class:"Betting__Popup-PreSale-foot-btn",onClick:e.knowPreSale},c(e.t("iKonw")),1)])])]),_:1},8,["show"])],64)}const Ve=U(he,[["render",He],["__scopeId","data-v-6c7a1db6"],["__file","/home/jenkins/agent/workspace/AR095-Pages-india-yaarwin/src/components/Home/AllLotteryGames/ChangLong/BettingPopup.vue"]]),q=5,Ue=V({__name:"Bet",setup(o,{expose:l}){l();const u=te.global.t,e=h(!1),v=h({}
1),i=h({coin:0,count:1,allCoin:0,gametype:0,typeid:1,issuenumber:"2020",selecttype:1,selectCon:""}),t=ne([]);let s=null;const d=(a,k,_,g,T)=>{if(t.value[k].action=_,v.value=a,i.value.selectCon=g,i.value.coin=a.scopeList[0],i.value.typeid=a.type,i.value.gametype=a.bettingGameType,a.type>4&&a.type!=30)T=="big"?i.value.selecttype="H":T=="small"?i.value.selecttype="L":i.value.selecttype=T;else{const I={red:10,green:11,violet:12,big:13,small:14};i.value.selecttype=I[T]}i.value.issuenumber=a.issueNumber,e.value=!0},r=h(!1),m=async()=>{if(s&&clearInterval(s),r.value)return;r.value=!0;const a=await j(ie({gameType:-1}));if(r.value=!1,!a)return;const k=a.data.serviceTime;t.value=a.data.list.map(_=>{let g=new Date(k).getTime(),T=new Date(_.startTime).getTime(),I=(g-T)/1e3;return I>_.intervalM*60&&(I=_.intervalM*60),_.scopeList=_.scope.split("|").map(D=>Number(D)),_.passTime=Math.floor(_.intervalM*60-I),_.time1=0,_.time2=Math.floor(_.passTime/60),_.time3=Math.floor(_.passTime%60/10),_.time4=Math.floor(_.passTime%10),_}),s=setInterval(function(){B()},1e3)},B=()=>{const a=t.value.length;let k=!1;for(let _=0;_<a;_++){let g=t.value[_];if(g.passTime<q&&g.issueNumber==v.value.issueNumber&&P(),g.passTime>0)g.time2=Math.floor(g.passTime/60),g.time3=Math.floor(g.passTime%60/10),g.time4=Math.floor(g.passTime%10),g.passTime--;else{k=!1,clearInterval(s),m();break}k=g.time3+g.time4==0}le(t),k&&(clearInterval(s),m())},P=()=>{e.value=!1;let a=t.value.findIndex(k=>JSON.stringify(k)==JSON.stringify(v.value));a!=-1&&(t.value[a].action=0),i.value.coin=v.value.scopeList?v.value.scopeList[0]:0,i.value.count=1,v.value={}},F=()=>{const{typeid:a=0}=i.value;a&&(a<5||a==30?$():a<9?w():A())},K=a=>a<5||a==30?"winGo":a<9?"Fd":"k3",$=async()=>{const a=await j(ce({typeId:i.value.typeid,issuenumber:i.value.issuenumber,amount:i.value.coin,betCount:Number(i.value.count),gameType:i.value.gametype,selectType:i.value.selecttype}));a?.code===0&&(E(u("code"+a.msgCode)),P())},A=async()=>{let{coin:a,count:k,issuenumber:_,gametype:g,selecttype:T,typeid:I}=i.value;const D=await j(re({amount:a,betCount:Number(k),gameType:g.toString(),selectType:T,typeId:I,issuenumber:_}));D?.code===0&&(E(u("code"+D.msgCode)),P())},w=async()=>{let{coin:a,count:k,issuenumber:_,gametype:g,selecttype:T,typeid:I}=i.value;const D={issuenumber:_,typeId:I,amount:a,betCount:Number(k),gameType:g,selectType:T},X=await j(ue(D));X?.code===0&&(E(u("code"+X.msgCode)),P())},W=a=>a=="H"?"B":a.trim()=="L"?"S":a;J(()=>{m()}),oe(()=>{clearInterval(s)}),ae(()=>se().visibility,a=>{m()});const y={t:u,ProhibitBuyTime:q,bettingPopupShow:e,actionItem:v,selectInfo:i,betlist:t,get timeHandle(){return s}
1,set timeHandle(a){s=a},bet:d,GetLongDataLock:r,GetLongData:m,subSubTime:B,clearBetting:P,submitBetting:F,iconType:K,WingetChack:$,K3getChack:A,DgetChack:w,changegameResult:W,Popup:Ve};return Object.defineProperty(y,"__isScriptSetup",{enumerable:!1,value:!0}),y}}),Fe={class:"changLong__C"},Ke={class:"changLong__C-bet"},Je={class:"changLong__C-bet-l"},Xe={class:"num"},qe={class:"time"},ze={class:"other"},Qe={class:"remark"},Ye={class:"issue"},Ze=["onClick"],xe=["onClick"],et=["onClick"],tt=["onClick"],nt=["onClick"],ot=["onClick"],at=["onClick"],st=["onClick"],it=["onClick"],lt=["onClick"],ct=["onClick"];function rt(o,l,u,e,v,i){return p(),f(C,null,[n("div",Fe,[(p(!0),f(C,null,M(e.betlist,(t,s)=>(p(),f("div",Ke,[n("div",Je,[n("div",{class:b(["titel",[e.iconType(t.type)]])},c(t.lotteryName),3),n("div",Xe,[H(c(t.issueNumber)+" ",1),n("span",qe,c(`${t.time1}${t.time2}:${t.time3}${t.time4}`),1)]),n("div",ze,[n("div",Qe,c(t.remark),1),n("div",{class:b(["gameResult","bg-"+t.gameResult])},c(e.changegameResult(t.gameResult)),3),n("div",Ye,c(t.issue)+c(o.$t("betIssues")),1)])]),n("div",{class:b(["changLong__C-bet-r",{disable:t.passTime<e.ProhibitBuyTime}])},[t.gameType==0?(p(),f(C,{key:0},[n("div",{class:b({active:t.action==1}),onClick:d=>e.bet(t,s,1,o.$t("betBig"),"big")},c(o.$t("betBig")),11,Ze),n("div",{class:b({active:t.action==2}),onClick:d=>e.bet(t,s,2,o.$t("betSmall"),"small")},c(o.$t("betSmall")),11,xe)],64)):L("v-if",!0),t.gameType==1?(p(),f(C,{key:1},[n("div",{class:b({active:t.action==1}),onClick:d=>e.bet(t,s,1,o.$t("betRed"),"red")},c(o.$t("betRed")),11,et),n("div",{class:b({active:t.action==2}),onClick:d=>e.bet(t,s,2,o.$t("betGreen"),"green")},c(o.$t("betGreen")),11,tt),n("div",{class:b({active:t.action==3}),onClick:d=>e.bet(t,s,3,o.$t("betViolet"),"violet")},c(o.$t("betViolet")),11,nt)],64)):L("v-if",!0),t.gameType==2?(p(),f(C,{key:2},[n("div",{class:b({active:t.action==1}),onClick:d=>e.bet(t,s,1,o.$t("betOdd"),"O")},c(o.$t("betOdd")),11,ot),n("div",{class:b({active:t.action==2}),onClick:d=>e.bet(t,s,2,o.$t("betEven"),"E")},c(o.$t("betEven")),11,at)],64)):L("v-if",!0),t.gameType==3?(p(),f(C,{key:3},[n("div",{class:b({active:t.action==1}),onClick:d=>e.bet(t,s,1,o.$t("betWithSingle"),"O")},c(o.$t("betWithSingle")),11,st),n("div",{class:b({active:t.action==2}),onClick:d=>e.bet(t,s,2,o.$t("betWithDouble"),"E")},c(o.$t("betWithDouble")),11,it)],64)):L("v-if",!0),t.gameType==4?(p(),f(C,{key:4},[n("div",{class:b({active:t.action==1}),onClick:d=>e.bet(t,s,1,o.$t("betWithBig"),"H")},c(o.$t("betWithBig")),11,lt),n("div",{class:b({active:t.action==2}),onClick:d=>e.bet(t,s,2,o.$t("betWithSmall"),"L")},c(o.$t("betWithSmall")),11,ct)],64)):L("v-if",!0)],2)]))),256))]),S(e.Popup,{bettingPopupShow:e.bettingPopupShow,selectInfo:e.selectInfo,actionItem:e.actionItem,onClearBetting:e.clearBetting,onSubmitBetting:e.submitBetting},null,8,["bettingPopupShow","selectInfo","actionItem"])],64)}const ut=U(Ue,[["render",rt],["__scopeId","data-v-91d808d9"],["__file","/home/jenkins/agent/workspace/AR095-Pages-india-yaarwin/src/components/Home/AllLotteryGames/ChangLong/Bet.vue"]]),dt=V({__name:"BetRecord",setup(o,{expose:l}){l();const u={Win:me,FD:be,K3:fe},e=de(),v=h(),i=h(0),t=h(0),s=h("wingo"),d=O(()=>e[`${s.value}`]),r=h([{name:"WinGo",com:"Win"},{name:"5D Lotre",com:"FD"},{name:"K3Lotre",com:"K3"}]),m=h(1),B=async()=>{i.value===0?(await e.getWinGoData(),s.value="wingo"):i.value===1?(await e.get5DData(),s.value="fiveD"):(await e.getK3Data(),s.value="k3"),m.value=d.value[t.value].typeID,_e(()=>{v.value&&v.value.getData()})};J(async()=>{B()});const P={componentList:u,lottery:e,RecRef:v,gameTab:i,timeTab:t,gameType:s,currentGameTypeList:d,gameList:r,typeid:m,setTypeid:B,get winGoGetMyEmerdList(){return pe}};return Object.defineProperty(P,"__isScriptSetup",{enumerable:!1,value:!0}),P}}),_t={class:"BetRecord__C"},pt=["innerHTML"];function vt(o,l,u,e,v,i){const t=G("van-tab"),s=G("van-tabs");return p(),f("div",_t,[S(s,{class:"BetRecord__C-gameTab",active:e.gameTab,"onUpdate:active":l[1]||(l[1]=d=>e.gameTab=d),onClick:e.setTypeid},{default:R(()=>[(p(!0),f(C,null,M(e.gameList,(d,r)=>(p(),N(t,{key:r,title:d.name},{default:R(()=>[S(s,{class:"BetRecord__C-timeTab",active:e.timeTab,"onUpdate:active":l[0]||(l[0]=m=>e.timeTab=m)},{default:R(()=>[n("template",null,[(p(!0),f(C,null,M(e.currentGameTypeList,(m,B)=>(p(),N(t,{key:B},{title:R(()=>[n("div",{innerHTML:m.typeName.replace(/<br ?\/?>/,"")},null,8,pt)]),_:2},1024))),128))])]),_:2},1032,["active"])]),_:2},1032,["title"]))),128))]),_:1},8,["active"]),(p(),N(ve(e.componentList[e.gameList[e.gameTab].com]),{ref:"RecRef",typeid:e.typeid,"has-head":!1,ApiFun:e.winGoGetMyEmerdList,"go-path-name":"0"},null,8,["typeid","ApiFun"]))])}const gt=U(dt,[["render",vt],["__scopeId","data-v-7c263a55"],["__file","/home/jenkins/agent/workspace/AR095-Pages-india-yaarwin/src/components/Home/AllLotteryGames/ChangLong/BetRecord.vue"]]),mt=V({__name:"index",setup(o,{expose:l}){l();const u=ge(),e=h(0);function v(){u.go(-1)}J(()=>{});const i={router:u,activeTab:e,onClickLeft:v,Bet:ut,BetRecord:gt};return Object.defineProperty(i,"__isScriptSetup",{enumerable:!1,value:!0}),i}}),bt={class:"changLong__C"};function ft(o,l,u,e,v,i){const t=G("NavBar"),s=G("van-tab"),d=G("van-tabs");return p(),f("div",bt,[S(t,{"left-arrow":"",title:o.$t("loongAssistant"),class:"main",onClickLeft:e.onClickLeft},null,8,["title"]),S(d,{class:"changLong__C-tab",active:e.activeTab,"onUpdate:active":l[0]||(l[0]=r=>e.activeTab=r)},{default:R(()=>[S(s,{title:o.$t("latestLoong")},null,8,["title"]),S(s,{title:o.$t("myBet")},null,8,["title"])]),_:1},8,["active"]),e.activeTab==0?(p(),N(e.Bet,{key:0})):(p(),N(e.BetRecord,{key:1}))])}const wt=U(mt,[["render",ft],["__scopeId","data-v-6aad721b"],["__file","/home/jenkins/agent/workspace/AR095-Pages-india-yaarwin/src/views/home/AllLotteryGames/ChangLong/index.vue"]]);export{wt as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.