1import{b as C,Z as R,r as i,c as k,f as e,F as v,ad as S}from"../vendors/vendor-stable.B-qaYwd4.js";import{X as g,ar as T,Z as I,dg as j,eS as D,eT as L,ek as c}from"./commonChunk.Bo5m7T9v.js";import{f as E}from"./surprise.BW8p8-dg.js";import{V as N}from"./1_PromotionChunk.CZQOk67D.js";import{u as U}from"./useRewardTips.BLBEL50j.js";import{u as A}from"./useShake.9HXB7Ano.js";import{u as B}from"./index.DRTDgB7Z.js";import"./vendorChunk.B0S1SHvJ.js";import{L as n}from"./1_SearchGameChunk.C8I_9c7p.js";import{T as F}from"./TitleContentIndex.DQ0JroOy.js";import"./1_AgentCenterChunk.BcMqaFYF.js";import"./0_WithdrawChunk.DcnP-cLh.js";import"./0_EntryLoginRegisterChunk.BcAljXYF.js";import"./0_RechargeDialogsChunk.OBVzrONx.js";import"../vendors/vendor-swiper.BdYoNCW0.js";import"./1_MineChunk.DsXpSE_2.js";const P="_idle_hle6d_101",V="_result_hle6d_105",q="_animation_hle6d_106",Z="_iconText_hle6d_114",z="_text_hle6d_121",K="_hand_hle6d_125",M="_shake_hle6d_133",O="_keepUp_hle6d_157",a={"open-animation":"_open-animation_hle6d_91","lucky-draw":"_lucky-draw_hle6d_95",idle:P,result:V,animation:q,iconText:Z,text:z,hand:K,shake:M,"shake-icon":"_shake-icon_hle6d_138","shake-text":"_shake-text_hle6d_143",keepUp:O},[X]=g("pages-dialogs-surprise-reward-lucky-draw"),ce=C({name:X,props:{isCovered:{type:Boolean,default:!1}},emits:["openReward"],setup(u,{emit:d}){const{t:m}=R(),r=B(),t=i(!1),o=i(!1),p=i(!1),l=U(),{start:x}=A({threshold:12,interval:1500,enableVibrate:!0,onShake(){_()}}),_=async()=>{if(t.value)return;const s=await l.surpriseRewardReceive();if(!(!s||s.error&&!l.isDataExpired.value)){if(l.isDataExpired.value){d("openReward");return}t.value=!0,r.showCloseButton=!1,await c(2e3),o.value=!0,await c(3e3),d("openReward")}},f=k(()=>!t.value&&!o.value),h=k(()=>{var y;const s=N(r.popupBonusCateogry),b=((y=r.surpriseRewardItem)==null?void 0:y.logReward)||0;return{key:s,text:E(s,b)}}),w=async()=>{await c(1500),p.value=!0};return()=>e("div",{class:a["open-animation"],onClick:x},[f.value&&e(F,null,null),e("div",{class:a["lucky-draw"]},[!t.value&&!o.value&&e(v,null,[e(n,{class:a.idle,key:"idle",loop:!0,paused:u.isCovered,animationPath:"/lobby_asset/common/common/event/ywjx/animated/drawlots/lottie/ywjx-cq-idle.json",onClick:_},null),e(n,{class:a.hand,loop:!0,paused:u.isCovered,animationPath:"/lobby_asset/common/common/event/ywjx/animated/shouzi.json"},null),e("div",{class:a.shake},[e(T,{class:a["shake-icon"],src:"/lobby_asset/common/common/common/Shake.svg"},null),e("div",{class:a["shake-text"]},[m("lobby.surprise.clickDraw")])])]),t.value&&!o.value&&e(n,{class:a.animation,key:"animation",loop:!0,animationPath:"/lobby_asset/common/common/event/ywjx/animated/drawlots/lottie/ywjx-cq-yao.json"},null),o.value&&e(v,null,[e(n,{class:a.result,key:"result",onInit:w,onDataFailed:w,animationPath:"/lobby_asset/common/common/event/ywjx/animated/drawlots/lottie/lottie_ywjx_chouqian_win.json"},null),e(S,{name:I.Fade},{default:()=>[p.value&&(h.value.key===j.KeepUp?e("span",{class:a.keepUp},[m("lobby.surprise.keepup")]):e(D,{type:L.Surprise,autoScrollLimit:6,class:a.iconText,isVertical:!0,detail:h.value,textClass:a.text},null))]})])])])}});export{ce 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.