1import{X as _,ar as v,ek as p}from"./commonChunk.BvN4rFf3.js";import{u as y}from"./useGenerateDrawItems.BvB_2_aE.js";import{b as f,Z as b,r as h,w as j,f as a}from"../vendors/vendor-stable.g6QIL43z.js";import{u as R}from"./useIntervalAlternation.DoUbTj5C.js";import{u as k}from"./useRewardTips.Gn3h8u62.js";import{C as d}from"./CategoryRewardIndex.CQkOze0v.js";import"./vendorChunk.DSJP3X0C.js";import{L as r}from"./1_SearchGameChunk.DuLjuLFM.js";import{T as q}from"./TitleContentIndex.CxUPqOV4.js";import"./surprise.BF1o59v1.js";import"./1_PromotionChunk.C0Sv47QR.js";import"./1_AgentCenterChunk.2ztTbWIr.js";import"./0_WithdrawChunk.CgkHvDCO.js";import"./0_EntryLoginRegisterChunk.CkGEoR-V.js";import"./0_RechargeDialogsChunk.CL4LCaNH.js";import"../vendors/vendor-swiper.B-3bDDqk.js";import"./1_MineChunk.B-LydRpM.js";import"./index.BKVLtm1Q.js";const C="_image_19q5c_112",I="_txt_19q5c_117",T="_amount_19q5c_131",A="_hand_19q5c_151",D="_winning_19q5c_159",n={"open-animation":"_open-animation_19q5c_91","open-images":"_open-images_19q5c_95","open-image-item":"_open-image-item_19q5c_102",image:C,txt:I,amount:T,hand:A,winning:D,"not-rewarded":"_not-rewarded_19q5c_160"},[E]=_("pages-dialogs-surprise-reward-open-treasure"),W=f({name:E,props:{isCovered:{type:Boolean,default:!1}},emits:["openReward"],setup(m,{emit:l}){const{t:w}=b(),o=h(!1),{list:t,updateListAfterDraw:x}=y(4),s=R({intervalTime:1100,func:e=>e===t.value.length-1?0:e+1}),i=k();j(()=>m.isCovered,e=>e?s.stop():s.changeIntervalTime(1100));const g=async e=>{if(o.value)return;const c=await i.surpriseRewardReceive();if(!(!c||c.error&&!i.isDataExpired.value)){if(i.isDataExpired.value){l("openReward");return}o.value=!0,x(e),await p(2e3),t.value=t.value.map(u=>({...u,status:e.idx===u.idx?"winning":"notRewarded"})),await p(2e3),l("openReward")}};return()=>a("div",{class:n["open-animation"]},[a(q,null,null),a("div",{class:n["open-images"]},[t.value.map(e=>e.status==="unopen"?a("div",{class:n["open-image-item"]},[a(v,{key:e.idx,class:n.image,src:"/lobby_asset/common/common/event/ywjx/box/ywjx_box.png",tag:"div",onClick:()=>g(e)},null),!o.value&&e.idx==s.showIdx.value&&a(r,{class:n.hand,paused:m.isCovered,animationPath:"/lobby_asset/common/common/event/ywjx/animated/shouzi.json"},null),a("span",{class:n.txt},[w("lobby.surprise.clickOpen")])]):e.status==="winning"?a("div",{key:e.idx,class:n["open-image-item"]},[a(r,{class:n.winning,animationPath:"/lobby_asset/common/common/event/ywjx/animated/box/lottie/ywjx-baoxiang-zhongjiang.json"},null),a("span",{class:n.amount},[a(d,{detail:{key:e.bonusEnum,text:e.text}},null)])]):a("div",{key:e.idx,class:n["open-image-item"]},[a(r,{class:n["not-rewarded"],animationPath:"/lobby_asset/common/common/event/ywjx/animated/box/lottie/ywjx-baopxiang-weizhongjiang.json"},null),a("span",{class:n.amount},[a(d,{detail:{key:e.bonusEnum,text:e.text}},null)])]))])])}});export{W 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.