1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8912],{8912:(t,e,r)=>{"use strict";r.r(e),r.d(e,{default:()=>h});var n=r(60072),o=r(60004),a=r(22751),i=r.n(a),s=r(22684),c=r.n(s),u=r(10366),l=r(90999),p=r.n(l);let h=({winCount:t=0,lossCount:e=0,returnCount:r=0,winPercent:a=0})=>{let{t:s}=(0,u.Bd)("layout"),[l,h]=(0,o.useState)(!1),d=t+e+r,[f,y]=(0,o.useState)({chart:{type:"pie",width:170,height:170},legend:{enabled:!1},credits:{enabled:!1},title:{text:void 0},yAxis:{minPadding:0,maxPadding:0},xAxis:{minPadding:0,maxPadding:0},plotOptions:{pie:{size:160,innerSize:140,shadow:!1,borderColor:"rgba(0,0,0,0)"},series:{states:{hover:{enabled:!0,brightness:0,halo:{opacity:1,size:3,attributes:{"stroke-width":0}},borderColor:void 0,lineWidth:5}}}},tooltip:{enabled:!1},series:[{type:"pie",dataLabels:{enabled:!1},data:[[s("TheBetsAreWon"),t],[s("TheBetsAreNotWon"),e],[s("Refund"),r]],colors:["#20A94A","#D0021B","#F5A623"]}]});return(0,o.useEffect)(()=>{l?h(!0):y(n=>{let o={...n};return o.series&&"pie"===o.series[0].type&&(o.series[0].data=[[s("TheBetsAreWon"),t],[s("TheBetsAreNotWon"),e],[s("Refund"),r]]),o})},[t,e,r]),(0,n.jsxs)("div",{className:p().chart,children:[(0,n.jsxs)("div",{className:p().chartSummary,children:[(0,n.jsxs)("div",{className:p().bets,children:[d," ",(0,n.jsx)("span",{className:p().chartSummaryDescription,children:s("totalBets")})]}),(0,n.jsx)("div",{className:p().line}),(0,n.jsxs)("div",{className:p().winPercent,children:[a,"%"," ",(0,n.jsx)("span",{className:p().chartSummaryDescription,children:s("passed")})]})]}),(0,n.jsx)(c(),{highcharts:i(),options:f})]})}},22684:function(t,e,r){"u">typeof self&&self,t.exports=function(t){var e=[function(t,e,r){"use strict";function n(){return(n=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var r=arguments[e];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(t[n]=r[n])}return t}).apply(this,arguments)}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=Array(e);r<e;r++)n[r]=t[r];return n}function a(t){return(a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}Object.defineProperty(e,"__esModule",{value:!0}),r.d(e,"HighchartsReact",function(){return u});var i=r(1),s=r.n(i),c="u">typeof window?i.useLayoutEffect:i.useEffect,u=Object(i.memo)(Object(i.forwardRef)(function(t,e){var r=Object(i.useRef)(),u=Object(i.useRef)(),l=Object(i.useRef)(t.constructorType),p=Object(i.useRef)(t.highcharts);return c(function(){function e(){var e=t.highcharts||"object"===("u"<typeof window?"undefined":a(window))&&window.Highcharts,n=t.constructorType||"chart";e?e[n]?t.options?u.current=e[n](r.current,t.options,t.callback):console.warn('The "options" property was not passed.'):console.warn('The "constructorType" property is incorrect or some required module is not imported.'):console.warn('The "highcharts" property was not passed.')}if(u.current){if(!1!==t.allowChartUpdate)if(t.constructorType!==l.current||t.highcharts!==p.current)l.current=t.constructorType,p.current=t.highcharts,e();else if(!t.immutable&&u.current){var n,i;(n=u.current).update.apply(n,[t.options].concat(function(t){if(Array.isArray(t))return o(t)}(i=t.updateArgs||[!0,!0])||function(t){if("u">typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(i)||function(t){if(t){if("string"==typeof t)return o(t,void 0);var e=Object.prototype.toString.call(t).slice(8,-1);return"Object"===e&&t.constructor&&(e=t.constructor.name),"Map"===e||"Set"===e?Array.from(t):"Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e)?o(t,void 0):void 0}}(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))}else e()}else e()},[t.options,t.allowChartUpdate,t.updateArgs,t.containerProps,t.highcharts,t.constructorType]),c(function(){return function(){u.current&&(u.current.destroy(),u.current=null)}},[]),Object(i.useImperativeHandle)(e,function(){return{get chart(){return u.current},container:r}},[]),s.a.createElement("div",n({},t.containerProps,{ref:r}))}));e.default=u},function(e,r){e.exports=t}];function r(t){if(n[t])return n[t].exports;var o=n[t]={i:t,l:!1,exports:{}};return e[t].call(o.exports,o,o.exports,r),o.l=!0,o.exports}var n={};return r.m=e,r.c=n,r.d=function(t,e,n){r.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,"a",e),e},r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},r.p="",r(r.s=0)}
1(r(60004))},90999:t=>{t.exports={chart:"AuthorStatisticChart_chart__U9Poa",chartSummary:"AuthorStatisticChart_chartSummary__3m1sM",bets:"AuthorStatisticChart_bets__Lco4A",line:"AuthorStatisticChart_line__JEprp",winPercent:"AuthorStatisticChart_winPercent__Rkn4M",chartSummaryDescription:"AuthorStatisticChart_chartSummaryDescription___7ley"}}}]);
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.