Files
Lucky_Wheel/apps/client/dist/assets/wheel-crystalicewheel-BJbsr9tW.js
T
2026-09-15 17:26:42 +03:30

2 lines
2.8 KiB
JavaScript

import{u as w,t as k}from"./wheel-classiccasinowheel-DHnlMe5J.js";import{d as b,a as s,b as o,e as t,n as d,u as l,F as f,f as c,t as v,g as C,h as S}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"},$={class:"absolute inset-0 rounded-full p-2.5 shadow-[0_0_30px_rgba(56,189,248,0.45)]",style:{background:"linear-gradient(145deg, #e0f2fe, #38bdf8, #0284c7)"}},F={class:"w-full h-full rounded-full border-2 border-sky-100 relative overflow-hidden bg-[#082f49]/40 backdrop-blur-sm"},z=["d","fill"],L=["transform"],N={x:"150",y:"45","text-anchor":"middle",fill:"#f0f9ff","font-size":"11","font-weight":"700",class:"wheel-slice-text font-sans"},V=["href"],D=["points"],G={class:"absolute -top-3 left-1/2 -translate-x-1/2 z-20 pointer-events-none drop-shadow-[0_0_10px_#7dd3fc]"},W=b({__name:"CrystalIceWheel",props:{segments:{},targetSegmentIndex:{},spinning:{type:Boolean}},emits:["spin-finished"],setup(a,{emit:h}){const p=a,u=h,{wheelStyle:m,pointerStyle:x,getSlicePath:y,getTextRotation:_,pegs:g}=w(p,()=>u("spin-finished"),{radius:138,pegRadius:143}),n=["#0ea5e9","#38bdf8","#7dd3fc","#0284c7","#e0f2fe","#0369a1"];return(I,r)=>(s(),o("div",B,[t("div",$,[t("div",F,[(s(),o("svg",{class:"w-full h-full",style:d(l(m)),viewBox:"0 0 300 300"},[(s(!0),o(f,null,c(a.segments,(e,i)=>(s(),o("g",{key:e.id},[t("path",{d:l(y)(i),fill:e.color||n[i%n.length],stroke:"#e0f2fe","stroke-width":"1.2",opacity:"0.92"},null,8,z),t("g",{transform:l(_)(i)},[t("text",N,v(l(k)(e.title)),1),e.image?(s(),o("image",{key:0,href:e.image,x:"138",y:"54",width:"24",height:"24"},null,8,V)):C("",!0)],8,L)]))),128)),(s(!0),o(f,null,c(l(g),(e,i)=>(s(),o("g",{key:i},[t("polygon",{points:`${e.x},${e.y-4.5} ${e.x+2.4},${e.y+2.2} ${e.x-2.4},${e.y+2.2}`,fill:"#e0f2fe",stroke:"#7dd3fc","stroke-width":"0.6",opacity:"0.95"},null,8,D)]))),128)),r[0]||(r[0]=S('<circle cx="150" cy="150" r="30" fill="url(#iceCore)" stroke="#e0f2fe" stroke-width="2"></circle><circle cx="150" cy="150" r="16" fill="#0369a1" stroke="#bae6fd" stroke-width="1.5"></circle><text x="150" y="156" text-anchor="middle" font-size="14">❄️</text><defs><radialGradient id="iceCore" cx="40%" cy="35%" r="65%"><stop offset="0%" stop-color="#e0f2fe"></stop><stop offset="55%" stop-color="#38bdf8"></stop><stop offset="100%" stop-color="#0369a1"></stop></radialGradient></defs>',4))],4))])]),t("div",G,[t("div",{style:d(l(x)),class:"w-8 h-[42px] origin-[50%_10px] will-change-transform"},[...r[1]||(r[1]=[t("svg",{width:"32",height:"42",viewBox:"0 0 32 42",fill:"none"},[t("path",{d:"M16 42L4 12C2 7 6 2 11 2H21C26 2 30 7 28 12L16 42Z",fill:"#38bdf8",stroke:"#e0f2fe","stroke-width":"1.5"}),t("circle",{cx:"16",cy:"10",r:"4",fill:"#e0f2fe",stroke:"#0284c7","stroke-width":"1"})],-1)])],4)])]))}});export{W as default};