const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["js/GoldCoinCanvas-CoHPbnt6.js","js/index-xnhGKCfe.js","css/index-BarkczBl.css","css/GoldCoinCanvas-CtnzxSg3.css","js/FireworkCanvas-DJSbWfV3.js","css/FireworkCanvas-BzRQPwI3.css","js/RegisterLucky-BKpzisO3.js","js/currency-DTUBf2lI.js","css/RegisterLucky-818G_7XF.css","js/MultiplierRulesDialog-Dt8ij0Bd.js","css/MultiplierRulesDialog-WzRnxcjV.css"])))=>i.map(i=>d[i]);
import{b7 as J,t as K,u as Q,d as Z,aY as c,aT as i,a$ as e,aS as v,b9 as m,r as I,bg as _,c as $,b0 as o,ba as t,aV as R,bc as ee,N as x,a_ as A,aW as h,d8 as te,f as oe,aX as se}from"./index-xnhGKCfe.js";import{c as ae}from"./currency-DTUBf2lI.js";const le={class:"luckyPop"},ne={key:0},ie={class:"title"},ue={class:"text"},ce={class:"btn"},de={key:0,class:"openBox"},re={class:"amountTitle"},pe={class:"rewardCont"},ve={class:"tit"},me={class:"tit-text"},_e={class:"winCont"},fe={class:"winText"},ke={class:"multiplier"},ye={class:"tips"},Ce={class:"rewardCont"},Ie={class:"rewardComp"},Re={class:"winCont"},he={class:"winText"},we=J({__name:"LuckyPopup",props:{popupInfo:{default:()=>({maxRewardAmount:0,maxBounsMultiplier:0})}},emits:["receiveReward"],setup(u,{expose:F,emit:G}){const W=R(()=>h(()=>import("./GoldCoinCanvas-CoHPbnt6.js"),__vite__mapDeps([0,1,2,3]))),z=R(()=>h(()=>import("./FireworkCanvas-DJSbWfV3.js"),__vite__mapDeps([4,1,2,5]))),B=R(()=>h(()=>import("./RegisterLucky-BKpzisO3.js"),__vite__mapDeps([6,1,2,7,8]))),H=R(()=>h(()=>import("./MultiplierRulesDialog-Dt8ij0Bd.js"),__vite__mapDeps([9,1,2,10]))),S=K(),U=oe(),{t:s}=Q(),w=G,{getARGameAndPlatWalletList:X}=Z(),r=I(!1),p=u,T=I(),n=I(1),f=I(!1),V=$(()=>{var a;return((a=p.popupInfo)==null?void 0:a.doubleMode)===1}),d=$(()=>{var a;return((a=p.popupInfo)==null?void 0:a.doubleActivityType)>0}),Y=()=>{var a;(a=T.value)==null||a.stopRain(),n.value=2},j=()=>{S.push({name:"recharge"}),E()},E=()=>{w("receiveReward",1)},b=async()=>{if(r.value)return;r.value=!0;const{orderNo:a}=p.popupInfo,{code:l}=await te({orderNo:a});l===0?(U.success(s("t246")),localStorage.removeItem("lucky_data"),await X(),r.value=!1,w("receiveReward")):(l===11&&(localStorage.removeItem("lucky_data"),w("receiveReward")),r.value=!1)},q=async()=>{const{doubleMode:a,doubleConfigId:l,isDouble:k,isCompleted:y,isForceClaim:C}=p.popupInfo;k?a===2?(C||E(),S.push({name:"luckyDetail",params:{doubleConfigId:l}})):y?n.value=4:n.value=3:b()};return F({changeState:()=>{const{isCompleted:a}=p.popupInfo;d.value?a?n.value=4:n.value=3:n.value=2}}),(a,l)=>{var k,y,C,L,D,P,M,N,O;return i(),c(_,null,[e("section",le,[n.value===1?(i(),c(_,{key:0},[d.value?(i(),c("div",ne,[e("div",ie,o(t(s)("t947")),1),e("p",ue,o(t(s)("t948")),1),l[3]||(l[3]=e("div",{class:"boxImg"},[e("div",{class:"boxGift boxSwing"})],-1))])):(i(),v(t(B),{key:1,multiplier:(k=u.popupInfo)==null?void 0:k.maxBounsMultiplier,amount:(y=u.popupInfo)==null?void 0:y.maxRewardAmount,basicAmount:(C=u.popupInfo)==null?void 0:C.basicRewardAmount,openState:n.value},null,8,["multiplier","amount","basicAmount","openState"])),e("div",ce,[e("div",{onClick:Y},o(d.value?t(s)("t1223"):t(s)("t1224")),1)])],64)):n.value===2?(i(),c(_,{key:1},[d.value?(i(),c("div",de,[l[4]||(l[4]=e("div",{class:"gifBoxOpen"},null,-1)),e("div",re,o(t(ae)((L=u.popupInfo)==null?void 0:L.basicRewardAmount)),1)])):(i(),v(t(B),{key:1,multiplier:(D=u.popupInfo)==null?void 0:D.maxBounsMultiplier,amount:(P=u.popupInfo)==null?void 0:P.maxRewardAmount,basicAmount:(M=u.popupInfo)==null?void 0:M.basicRewardAmount,openState:n.value},null,8,["multiplier","amount","basicAmount","openState"])),e("div",{class:ee(["btn",{delayShow:!d.value}])},[e("div",{onClick:q},o(t(s)("t631")),1)],2)],64)):n.value===3?(i(),c(_,{key:2},[e("div",pe,[e("div",ve,o(t(s)("t949")),1),e("p",me,o(t(s)("t950")),1),e("div",_e,[e("div",fe,o(t(s)("t951")),1),e("div",ke,[e("span",null,o((N=u.popupInfo)==null?void 0:N.maxBounsMultiplier)+" x",1),V.value?(i(),v(A,{key:0,name:"icon_nva_help2",iconClass:"helpIcon",onClick:l[0]||(l[0]=g=>f.value=!0)})):m("",!0)]),e("i",null,o(t(s)("t952")),1)]),e("p",ye,o(t(s)("t953")),1),V.value?(i(),c("div",{key:0,class:"ruleEntry",onClick:l[1]||(l[1]=g=>f.value=!0)},[e("span",null,o(t(s)("t1383")),1),x(A,{name:"icon_left2",iconClass:"chev"})])):m("",!0)]),e("div",{class:"luckyBtn",onClick:j},o(t(s)("t954")),1),e("div",{class:"luckyBtn claim",onClick:b},o(t(s)("t955")),1),x(t(H),{modelValue:f.value,"onUpdate:modelValue":l[2]||(l[2]=g=>f.value=g)},null,8,["modelValue"])],64)):n.value===4?(i(),c(_,{key:3},[e("div",Ce,[e("div",Ie,[x(A,{name:"icon_ac_confirm",class:"rightIcon"}),e("p",null,o(t(s)("t956")),1)]),e("div",Re,[e("div",he,o(t(s)("t951")),1),e("span",null,o((O=u.popupInfo)==null?void 0:O.maxBounsMultiplier)+" x",1),e("i",null,o(t(s)("t952")),1)])]),e("div",{class:"luckyBtn",onClick:b},o(t(s)("t957")),1)],64)):m("",!0)]),d.value&&n.value===1?(i(),v(t(W),{key:0,ref_key:"goldCoin",ref:T},null,512)):m("",!0),n.value===2&&!d.value?(i(),v(t(z),{key:1,class:"delayShow"})):m("",!0)],64)}}}),Ae=se(we,[["__scopeId","data-v-d129db6c"]]);export{Ae as default};
