1import B from"./Dc7hieMG.js";import{d as I,R as T,dy as A,I as m,a7 as N,T as V,E as _,J as O,a1 as P,aU as U,o as w,z as v,w as y,f as E,h as F,i as n,G as L,bD as j,P as q,q as G}from"./0oBQEnfg.js";import{M as J}from"./DMUesaRw.js";import{u as $}from"./CNpNAKGW.js";import"./BXuSz8sX.js";import"./DjKJqAo0.js";import"./Dp72XNWy.js";import"./C1uPtRit.js";import"./CJk5Hk4g.js";import"./DhVNyPwm.js";import"./CrVxVEKS.js";import"./cQFw-cgz.js";import"./Ch91eRw5.js";import"./oL6mvKDz.js";import"./Q5MxxTSG.js";const H={class:"main-box-wheel flex-center"},K=I({__name:"Wheel",props:{numberWheel:{}},setup(Q){const{open:b,close:g}=T(),{refresh:k,currentWheel:r,isWheelAvailable:c,wheelPrizeData:t,startSpin:M}=A(),{globalSkin:x}=$(),C=m(()=>`url(${N(x.value.wheelModalBg,{width:880,height:1800})}) top center/ cover no-repeat`),{theme:R}=V(),{public:{baseImageUrl:S}}=j(),u=_(null),p=m(()=>({project:R,wheels:r.value||null,baseImageUrl:S})),d=async()=>{c.value&&await M()},i=_(null),W=()=>{i.value&&(clearTimeout(i.value),i.value=null)},z=()=>{r.value&&d()},D=()=>{var s,l;k();const o={coins:0,entries:0,freespin:0},f={coins:"coins",entries:"entries",freespin:"freespin"};(l=(s=t.value)==null?void 0:s.prizes)==null||l.forEach(e=>{var h;const a=f[e==null?void 0:e.type];a&&(o[a]=(e==null?void 0:e.type)==="freespin"?((h=e==null?void 0:e.data)==null?void 0:h.amount)??e.value:e.value)}),setTimeout(()=>{b("LazyOModalDailyRewardsCongrats",{prizes:o}),g("LazyOModalDailyRewardsWheel")},1e3)};return O(()=>t.value,()=>{var o;t.value&&((o=u.value)==null||o.handleShowPrize(t.value))}),P(z),U(W),(o,f)=>{const s=B,l=q,e=J;return w(),v(e,{class:"wheel-modal",variant:"multi-layout",modifiers:["mob-full"],"data-tid":"dailyRewards_modal_wheel",background:n(C)},{content:y(()=>[E("div",H,[F(l,null,{default:y(()=>{var a;return[n(p).wheels?(w(),v(s,{id:"dailyWheel",ref_key:"wheelRef",ref:u,key:(a=n(r))==null?void 0:a.id,class:"flex-center wheel-wrapper",isActive:n(c),"inbound-config":n(p),wheelClick:d,entriesFormatter:!0,onSpinFinished:D},null,8,["isActive","inbound-config"])):L("",!0)]}),_:1})])]),_:1},8,["background"])}}}),de=G(K,[["__scopeId","data-v-c6b7a192"]]);export{de 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.