2 lines
2.6 KiB
JavaScript
2 lines
2.6 KiB
JavaScript
import{u as w,t as _}from"./wheel-classiccasinowheel-DHnlMe5J.js";import{d as k,a as l,b as i,e,n as f,u as o,F as a,f as c,t as b,g as v}from"./vendor-vue-kYoPQr5S.js";const B={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-2 bg-gradient-to-tr from-cyan-500 via-fuchsia-600 to-blue-600 shadow-[0_0_30px_rgba(0,240,255,0.4)] animate-neon-pulse"},C={class:"w-full h-full rounded-full border-2 border-cyan-400 relative overflow-hidden bg-[#070913]"},F=["d","fill"],z=["transform"],L={x:"150",y:"45","text-anchor":"middle",fill:"#ffffff","font-size":"11","font-weight":"800",class:"wheel-slice-text tracking-wide uppercase font-sans"},N=["href"],P=["cx","cy"],D=["cx","cy"],R={class:"absolute -top-3 left-1/2 -translate-x-1/2 z-20 pointer-events-none drop-shadow-[0_0_12px_#00f0ff]"},E=k({__name:"NeonCyberWheel",props:{segments:{},targetSegmentIndex:{},spinning:{type:Boolean}},emits:["spin-finished"],setup(n,{emit:d}){const u=n,p=d,{wheelStyle:m,pointerStyle:x,getSlicePath:h,getTextRotation:y,pegs:g}=w(u,()=>p("spin-finished"),{radius:138,pegRadius:143});return(V,t)=>(l(),i("div",B,[e("div",S,[e("div",C,[(l(),i("svg",{class:"w-full h-full",style:f(o(m)),viewBox:"0 0 300 300"},[(l(!0),i(a,null,c(n.segments,(s,r)=>(l(),i("g",{key:s.id},[e("path",{d:o(h)(r),fill:s.color||(r%2===0?"#111827":"#1e1b4b"),stroke:"#00f0ff","stroke-width":"1.5","stroke-opacity":"0.8"},null,8,F),e("g",{transform:o(y)(r)},[e("text",L,b(o(_)(s.title)),1),s.image?(l(),i("image",{key:0,href:s.image,x:"138",y:"54",width:"24",height:"24"},null,8,N)):v("",!0)],8,z)]))),128)),(l(!0),i(a,null,c(o(g),(s,r)=>(l(),i("g",{key:r},[e("circle",{cx:s.x,cy:s.y,r:"3.2",fill:"#05070e",stroke:"#00f0ff","stroke-width":"1"},null,8,P),e("circle",{cx:s.x,cy:s.y,r:"1.5",fill:"#00f0ff"},null,8,D)]))),128)),t[0]||(t[0]=e("circle",{cx:"150",cy:"150",r:"32",fill:"#05070e",stroke:"#00f0ff","stroke-width":"2"},null,-1)),t[1]||(t[1]=e("circle",{cx:"150",cy:"150",r:"22",fill:"#1e1b4b",stroke:"#ec4899","stroke-width":"2"},null,-1)),t[2]||(t[2]=e("circle",{cx:"150",cy:"150",r:"10",fill:"#00f0ff",class:"animate-ping",opacity:"0.3"},null,-1)),t[3]||(t[3]=e("circle",{cx:"150",cy:"150",r:"8",fill:"#00f0ff"},null,-1))],4))])]),e("div",R,[e("div",{style:f(o(x)),class:"w-[34px] h-[42px] origin-[50%_10px] will-change-transform"},[...t[4]||(t[4]=[e("svg",{width:"34",height:"42",viewBox:"0 0 34 42",fill:"none",class:"overflow-visible"},[e("path",{d:"M17 42L4 12C2 7 6 2 11 2H23C28 2 32 7 30 12L17 42Z",fill:"#00f0ff",stroke:"#ffffff","stroke-width":"1.5"}),e("circle",{cx:"17",cy:"10",r:"4",fill:"#ff007f"})],-1)])],4)])]))}});export{E as default};
|