1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5127],{25127:function(e,t,n){n.r(t);var r=n(49937),o=n(99743),a=n(80540);t.default=e=>{let{data:t,setStyle:n}=e,[i,s]=(0,o.useState)(!1),[c,l]=(0,o.useState)(0),[u,d]=(0,o.useState)(t),p=()=>{l(Math.floor(Math.random()*t.length)),s(!0)};return(0,o.useEffect)(()=>{d(t.map(e=>({completeOption:e.text,option:e.text.length>=30?e.text.substring(0,30).trimEnd()+"...":e.text})))},[t]),(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)("div",{align:"center",className:"roulette-container",children:[(0,r.jsx)(a.Wheel,{mustStartSpinning:i,spinDuration:[.2],prizeNumber:c,data:u,outerBorderColor:["#ccc"],outerBorderWidth:[9],innerBorderColor:["#f2f2f2"],radiusLineColor:["tranparent"],radiusLineWidth:[1],textColors:["#f5f5f5"],textDistance:60,fontSize:[12],backgroundColors:["#a5d7e7","#92c5dc","#7fb5d6","#6ca4d0","#5893ca","#4582c3","#3a72b1","#3161a0","#2a5696","#234b8c","#1c3e7a","#17346b","#12295c","#0d1f4d","#091640","#050e21"],onStopSpinning:()=>{s(!1),n(u[c].completeOption)}}),(0,r.jsx)("button",{className:"button roulette-button",onClick:p,children:"SPIN"})]}),(0,r.jsx)("br",{}),(0,r.jsx)("button",{className:"prize-message",onClick:p,disabled:i,children:i?"Spinning...":u[c].completeOption})]})}}}]);
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.