1import{a as N,b as T,e as W}from"./index-b6d711a0.js";import{s as y}from"./pinia-6b6791ea.js";import{l as A,r as l,c as V,Q as c,U as s,V as q,R as k,u as f,a1 as R,F as M,$ as F,a6 as U,S as d,W as S,X,Y as D}from"./vue-ed527c81.js";const G="/assets/bg_light-cd0471fb.png",P="/assets/gold-0bb4aefa.png",Q="/assets/light1-3f3b58da.png",Y="/assets/light2-96095025.png",j="/assets/cry-45442551.png",H="/assets/money2-c74efec9.png",w=a=>(X("data-v-f19b6eb0"),a=a(),D(),a),J={class:"turntable-position"},K={class:"turntable-main"},O=U('<img class="bg-light" src="'+G+'" alt="" data-v-f19b6eb0><img class="gold" src="'+P+'" alt="" data-v-f19b6eb0><div class="light-container" data-v-f19b6eb0><img src="'+Q+'" class="light-image" data-v-f19b6eb0><img src="'+Y+'" class="light-image" data-v-f19b6eb0></div>',3),Z={class:"prize-list"},tt={class:"prize-type"},et={key:0,style:{"font-size":".5rem"}},st=w(()=>s("img",{src:j,alt:""},null,-1)),at=[st],ot={key:1},nt=w(()=>s("img",{src:H,alt:""},null,-1)),rt=[nt],it=A({__name:"Wheel",props:{isRotating:{type:Boolean,default:0,required:!1},count:{type:Number,default:0,required:!1}},emits:["onBeginRotate","onRotationEnd"],setup(a,{expose:$,emit:b}){const z=N(),I=T();let{userInfo:x}=y(z);y(I);const g=360,_=l(!1),n={duration:4e3,circle:8,mode:"ease-in-out"};let u=l(0);l(null);let h=l([]),p=l([]);const B=t=>{p.value=C(t)},C=t=>{const o=[],e=t.length,r=g/e;return t.forEach((i,m)=>{const v=-(m*r);i.style=`-webkit-transform: rotate(${v}deg); 2 transform: translateX(-50%) rotate(${v}deg);`,o.push(m*r)}),h.value=o,t};$({rotating:()=>{const t=p.value.map((i,m)=>i.rewardType==="random"?m:-1).filter(i=>i!==-1),o=Math.floor(Math.random()*t.length),e=t[o],r=u.value+n.circle*g+h.value[e]-u.value%g;u.value=r,setTimeout(()=>{b("onRotationEnd")},n.duration)},init:B,animation:()=>{_.value=!0}});const L=V(()=>` 3 -webkit-transition: transform ${n.duration}ms ${n.mode}; 4 transition: transform ${n.duration}ms ${n.mode}; 5 transform: translate(-50%, -50%) rotate(${u.value}deg); 6 `),E=()=>{b("onBeginRotate")};return(t,o)=>(d(),c("div",J,[s("div",K,[O,s("div",{class:q(["wheel-pointer",{"pointer-animate-bounce":_.value,"wheel-pointer-scale":a.count&&!a.isRotating}]),onAnimationend:o[0]||(o[0]=e=>_.value=!1),onClick:E},[s("p",null,k(f(x).token?a.count:"1"),1)],34),s("div",{class:"wheel-bg",style:R(f(L))},[s("div",Z,[(d(!0),c(M,null,F(f(p),(e,r)=>(d(),c("div",{class:"prize-item",key:r,style:R(e.style)},[s("div",tt,[s("p",null,k(e.amount),1),e.rewardType=="none"?(d(),c("p",et,at)):S("",!0),e.rewardType=="random"?(d(),c("p",ot,rt)):S("",!0)])],4))),128))])],4)])]))}});const gt=W(it,[["__scopeId","data-v-f19b6eb0"]]);export{gt as W};
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.