Files
Lucky_Wheel/apps/client/dist/assets/wheel-luxurygoldwheel-CkWepG8h.js
T

2 lines
3.8 KiB
JavaScript

import{u as _,t as k}from"./wheel-classiccasinowheel-D335SDnp.js";import{d as b,a as o,b as s,e,n as a,u as r,F as c,f as n,t as v,g as G,h as d}from"./vendor-vue-DYkhP7t5.js";const P={class:"relative w-full max-w-[340px] xs:max-w-[380px] sm:max-w-[420px] aspect-square mx-auto select-none"},S={class:"absolute inset-0 rounded-full p-3 shadow-[0_15px_40px_rgba(0,0,0,0.8)]",style:{background:"linear-gradient(135deg, #d4af37 0%, #f3e5ab 25%, #aa7c11 50%, #fdf6c7 75%, #8a6408 100%)"}},B={class:"w-full h-full rounded-full border-2 border-amber-200/60 relative overflow-hidden bg-gradient-to-b from-stone-900 to-black"},C=["d","fill"],L=["transform"],z={x:"150",y:"45","text-anchor":"middle",fill:"#fdf6c7","font-size":"11","font-weight":"700",class:"wheel-slice-text font-sans tracking-wider"},D=["href"],F=["cx","cy"],V=["cx","cy"],N=["cx","cy"],H={class:"absolute -top-3.5 left-1/2 -translate-x-1/2 z-20 pointer-events-none drop-shadow-[0_4px_10px_rgba(212,175,55,0.6)]"},W=b({__name:"LuxuryGoldWheel",props:{segments:{},targetSegmentIndex:{},spinning:{type:Boolean}},emits:["spin-finished"],setup(f,{emit:p}){const u=f,x=p,{wheelStyle:h,pointerStyle:y,getSlicePath:m,getTextRotation:g,pegs:w}=_(u,()=>x("spin-finished"),{radius:138,pegRadius:143});return(I,i)=>(o(),s("div",P,[e("div",S,[e("div",B,[(o(),s("svg",{class:"w-full h-full",style:a(r(h)),viewBox:"0 0 300 300"},[(o(!0),s(c,null,n(f.segments,(t,l)=>(o(),s("g",{key:t.id},[e("path",{d:r(m)(l),fill:t.color||(l%2===0?"#1c1917":"#0c0a09"),stroke:"#d4af37","stroke-width":"1.5"},null,8,C),e("g",{transform:r(g)(l)},[e("text",z,v(r(k)(t.title)),1),t.image?(o(),s("image",{key:0,href:t.image,x:"138",y:"54",width:"24",height:"24"},null,8,D)):G("",!0)],8,L)]))),128)),(o(!0),s(c,null,n(r(w),(t,l)=>(o(),s("g",{key:l},[e("circle",{cx:t.x,cy:t.y,r:"4.2",fill:"#1c1917",stroke:"#aa7c11","stroke-width":"0.7"},null,8,F),e("circle",{cx:t.x,cy:t.y,r:"3.3",fill:"url(#luxuryPeg3D)",stroke:"#fdf6c7","stroke-width":"0.5"},null,8,V),e("circle",{cx:t.x-.9,cy:t.y-1,r:"0.8",fill:"#ffffff",opacity:"0.85"},null,8,N)]))),128)),i[0]||(i[0]=d('<circle cx="150" cy="150" r="30" fill="url(#luxuryGoldGrad)" stroke="#fdf6c7" stroke-width="2"></circle><circle cx="150" cy="150" r="22" fill="#1c1917" stroke="#aa7c11" stroke-width="1"></circle><text x="150" y="156" text-anchor="middle" font-size="14" font-family="serif" font-weight="bold" fill="#fdf6c7">VIP</text><defs><linearGradient id="luxuryGoldGrad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" stop-color="#fdf6c7"></stop><stop offset="50%" stop-color="#d4af37"></stop><stop offset="100%" stop-color="#8a6408"></stop></linearGradient><radialGradient id="luxuryPeg3D" cx="35%" cy="30%" r="70%"><stop offset="0%" stop-color="#ffffff"></stop><stop offset="30%" stop-color="#fdf6c7"></stop><stop offset="70%" stop-color="#d4af37"></stop><stop offset="100%" stop-color="#543d03"></stop></radialGradient></defs>',4))],4))])]),e("div",H,[e("div",{style:a(r(y)),class:"w-9 h-[46px] origin-[50%_12px] will-change-transform"},[...i[1]||(i[1]=[d('<svg width="36" height="46" viewBox="0 0 36 46" fill="none" class="overflow-visible"><path d="M18 46L5 14C3 9 7 3 12 3H24C29 3 33 9 31 14L18 46Z" fill="url(#luxuryPointerGrad)" stroke="#fff" stroke-width="1.2"></path><path d="M18 41L8 14C7 11 9 6 13 6H23C27 6 29 11 28 14L18 41Z" fill="none" stroke="rgba(255,255,255,0.4)" stroke-width="0.8"></path><circle cx="18" cy="12" r="4.5" fill="#1c1917" stroke="#fdf6c7" stroke-width="1.5"></circle><circle cx="17.2" cy="10.8" r="1.1" fill="#ffffff" opacity="0.85"></circle><defs><linearGradient id="luxuryPointerGrad" x1="0" y1="0" x2="1" y2="1"><stop offset="0%" stop-color="#fdf6c7"></stop><stop offset="50%" stop-color="#d4af37"></stop><stop offset="100%" stop-color="#543d03"></stop></linearGradient></defs></svg>',1)])],4)])]))}});export{W as default};