import{C as m,v as f,r as h,N as W,y,D as w,ax as b,I as i,E as r,F as e,au as N,ay as T,K as u,J as R,M as $,a4 as A,G as v,H as C,am as G,x as P,al as S,as as x,W as I,Q as H}from"./common.modules-7b90237f.js";import{c as B,A as M,dU as E,_ as p,G as j}from"./page-activity-ActivityDetail-27bd7cf0.js";const V={class:"Wallet__C"},D={class:"Wallet__C-balance"},U={class:"Wallet__C-balance-l1"},q={class:"Wallet__C-balance-l2"},F={class:"Wallet__C-balance-l3"},z=m({__name:"Wallet",setup(d,{expose:s}){const{t:o}=f(),a=h(0),t=async(n=!0)=>{const l=await M(E());l&&(a.value=(l==null?void 0:l.data.amount)||0,n&&A(o("refreshSuccess")))},c=W(),_=n=>{c.push({name:n})};return y(()=>{t(!1)}),s({getWinsUserAmount:t}),(n,l)=>{const g=w("svg-icon"),L=b("throttle-click");return i(),r("div",V,[e("div",D,[e("div",U,[N((i(),r("div",null,[T(u(R(B)(a.value)),1)])),[[L,{handler:t,wait:2e3}]])]),e("div",q,[$(g,{name:"lottyWallet"}),e("div",null,u(n.$t("walletBalance")),1)]),e("div",F,[e("div",{onClick:l[0]||(l[0]=k=>_("Withdraw"))},u(n.$t("withdraw")),1),e("div",{onClick:l[1]||(l[1]=k=>_("Recharge"))},u(n.$t("recharge")),1)])])])}}});const fe=p(z,[["__scopeId","data-v-7dd1adab"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/components/Home/AllLotteryGames/WinGo/Wallet.vue"]]),J={class:"GameList__C"},K=["onClick"],Q=["innerHTML"],O=m({__name:"GameList",props:{gameList:{type:null,required:!0,default:{type:Array,default:()=>[]}},currentGameIndex:{type:null,required:!0,default:{type:Number,default:0}}},setup(d){const s=d;return(o,a)=>(i(),r("div",J,[(i(!0),r(v,null,C(s.gameList,(t,c)=>(i(),r("div",{key:c,class:G(["GameList__C-item",{active:o.currentGameIndex==c}]),onClick:_=>o.$emit("changeGame",c)},[e("div",{innerHTML:t.typeName},null,8,Q)],10,K))),128))]))}});const ye=p(O,[["__scopeId","data-v-17d56002"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/components/Home/AllLotteryGames/WinGo/GameList.vue"]]),X={class:"TimeLeft__C-PreSale"},Y={class:"TimeLeft__C-PreSale-head"},Z={class:"TimeLeft__C-PreSale-body"},ee=["innerHTML"],te={class:"TimeLeft__C-PreSale-foot"},se=m({__name:"rule",props:{howPlayShow:{type:Boolean,default:!1},gamePresentation:{type:String,default:""}},emits:["close"],setup(d,{emit:s}){const o=d,a=P({get(){return o.howPlayShow||!1},set(t){t||s("close")}});return(t,c)=>{const _=w("van-popup");return i(),r(v,null,[S(" 规则弹层 begin"),$(_,{show:a.value,"onUpdate:show":c[1]||(c[1]=n=>a.value=n),"close-on-click-overlay":!1,round:""},{default:x(()=>[e("div",X,[e("div",Y,u(t.$t("winTrxIndicate")),1),e("div",Z,[e("div",{innerHTML:d.gamePresentation},null,8,ee)]),e("div",te,[e("div",{class:"TimeLeft__C-PreSale-foot-btn",onClick:c[0]||(c[0]=n=>s("close"))},u(t.$t("winTrxClose")),1)])])]),_:1},8,["show"])],2112)}}});const we=p(se,[["__scopeId","data-v-0bba67ea"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/components/Home/AllLotteryGames/WinGo/rule.vue"]]),ae={class:"RecordNav__C"},oe=["onClick"],ne=m({__name:"RecordNav",props:{record:{type:String,default:"GameRecord"}},setup(d){const s=d,{t:o}=f(),a=h([{name:o("gameRecords"),componentName:"GameRecord"},{name:o("chartTrends"),componentName:"Trend"},{name:o("myGameRecords"),componentName:"MyGameRecord"}]);return(t,c)=>(i(),r("div",ae,[(i(!0),r(v,null,C(a.value,(_,n)=>(i(),r("div",{key:n,onClick:l=>t.$emit("changeC",_.componentName),class:G({active:s.record==_.componentName})},u(_.name),11,oe))),128))]))}});const $e=p(ne,[["__scopeId","data-v-72f81e71"],["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/components/Home/AllLotteryGames/WinGo/RecordNav.vue"]]),ce="/assets/mp3/di1-0f3d86cb.mp3",le="/assets/mp3/di2-ad9aa8fb.mp3",ie=["muted"],re=e("source",{src:ce,type:"audio/mpeg"},null,-1),_e=[re],de=["muted"],ue=e("source",{src:le,type:"audio/mpeg"},null,-1),me=[ue],pe=m({__name:"audio",setup(d){const s=h(!1);I(()=>j().visibility,a=>{a===0?s.value=!0:setTimeout(()=>{s.value=!1},500)});const o=()=>{s.value=!0,H(()=>{const a=document.getElementById("voice1"),t=document.getElementById("voice2");a.play(),t.play(),a.pause(),t.pause(),s.value=!1,document.removeEventListener("touchstart",o)})};return y(()=>{document.addEventListener("touchstart",o)}),(a,t)=>(i(),r(v,null,[e("audio",{id:"voice1",muted:s.value},_e,8,ie),e("audio",{id:"voice2",muted:s.value},me,8,de)],64))}}),Ce=p(pe,[["__file","/usr/local/jenkins-prod/workspace/ar079-india-tashanwin/src/components/Home/AllLotteryGames/WinGo/audio.vue"]]);export{ye as G,$e as R,fe as W,Ce as a,we as r};
