(window.webpackJsonp=window.webpackJsonp||[]).push([[32],{UxBy:function(e,t,n){"use strict";n.d(t,"a",(function(){return u}));var r=n("mXGw"),c=n.n(r),o=n("XSEl"),a=n("hWgQ"),i=n("rOcY"),u=function(e){var t=e.oddsLabel,n=Object(o.useSelector)((function(e){return e.getIn(["userSettings","settings","offer","oddsFormat"],i.Th.settings.offer.oddsFormat).toUpperCase()===i.dc}));return i.x&&!i.A&&!i.C&&n&&parseFloat(t)?c.a.createElement(a.FormattedNumber,{value:t,minimumFractionDigits:2}):t}},"cE+A":function(e,t,n){"use strict";var r=n("tOpy"),c=n("Qi1R"),o=n("rOcY"),a=n("6l04");t.a=Object(r.createSelector)((function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return Object(a.a)(e,t)}),(function(e){return Object(c.we)(e.reduce((function(e,t){return t.get("allowedBetslipTab")&&t.get("allowedBetslipTab")!==o.Ad.betSlipTypes.acca?e:Object(c.Bd)(e,t.get("odds"))}),1),8)}))},mSD3:function(e,t,n){"use strict";n.r(t);var r=n("mXGw"),c=n.n(r),o=n("XSEl"),a=n("FvK5"),i=n("rOcY"),u=n("Qi1R"),l=n("cE+A"),s=n("I3Ux"),b=n("b/2H"),d=n("uqgc"),f=n("6l04"),p=n("tOpy"),O=n("Y9wm"),g=Object(p.createSelector)(d.a,(function(e){return Object(O.c)(e,i.Ad.betSlipTypes.acca).size})),m=n("ZVog"),j=n("YMdE"),S=n("Pyqn"),w=n("QH1u"),h=n("UxBy"),y=n("wurE"),K=n.n(y),T=n("D5ie"),v=n("uXGu"),E=K.a.span.withConfig({componentId:"sc-1r0tey7-0"})(["font-weight:bold;color:",";padding:",";"],T.W,Object(u.K)(4,0,0,16)),I=K.a.span.withConfig({componentId:"sc-1r0tey7-1"})(["color:",";margin-left:auto;font-weight:bold;padding-top:",";"],T.V,Object(u.K)(4)),B=K()(v.a).attrs((function(){return{fill:T.W,name:"arrow04",size:"xxs"}})).withConfig({componentId:"sc-1r0tey7-2"})(["margin-top:",";padding-left:",";"],Object(u.K)(-2),Object(u.K)(12)),x=K.a.span.withConfig({componentId:"sc-1r0tey7-3"})(["width:",";height:",";text-align:center;line-height:",";font-size:",";font-weight:bold;background-color:",";color:",";border-radius:50%;"],Object(u.K)(64),Object(u.K)(64),Object(u.K)(64),Object(u.K)(28),T.U,T.W),A=K.a.div.withConfig({componentId:"sc-1r0tey7-4"})(["position:fixed;bottom:",";left:50%;transform:translateX(-50%);background-color:",";border-radius:",";display:flex;align-items:center;padding:",";width:",";max-width:90%;z-index:10;"],Object(u.K)(i.w+i.bc+10),T.T,Object(u.K)(40),Object(u.K)(12,16),Object(u.K)(450)),C=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,c=!1,o=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(u){c=!0,o=u}finally{try{!r&&i.return&&i.return()}finally{if(c)throw o}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")};t.default=function(){var e=Object(o.useSelector)((function(e){return Object(b.a)(e).size})),t=Object(o.useSelector)((function(e){return Object(f.a)(e).size})),n=Object(o.useSelector)(g),p=Object(o.useSelector)(l.a),O=Object(o.useSelector)((function(e){return e.getIn(["userSettings","settings","offer","oddsFormat"],i.Th.settings.offer.oddsFormat)})),y=Object(o.useSelector)((function(e){return e.get("notifications",Object(a.Map)())})),K=Object(o.useSelector)(s.a),T=K.allBetsKindIsSP,v=K.commonBetsKindIsRegular,F=Object(o.useSelector)((function(e){return Object(d.a)(e).size})),k=Object(o.useSelector)((function(e){return e.getIn(["betSlip","qbsMode"],null)})),z=Object(o.useSelector)(m.a),M=Object(o.useSelector)((function(e){return e.getIn(["betSlip","betslipToastTrack"],!1)})),R=Object(o.useSelector)((function(e){return e.getIn(["appConfig","featureToggles","enableBettingCalcV2"],!0)})),U=Object(w.a)([j.hc.showModal,j.t.changeTab]),X=C(U,2),L=X[0],V=X[1],Y=Object(r.useState)(!1),D=C(Y,2),Q=D[0],W=D[1],q=Object(r.useRef)(null);Object(r.useEffect)((function(){return Q&&(q.current=setTimeout((function(){q.current=null,W(!1)}),i.Kd)),function(){q.current&&(clearTimeout(q.current),q.current=null)}}),[Q,e]);var G=Object(u.Kc)(y),P=Object(S.a)(n),H=Object(S.a)(M);Object(r.useEffect)((function(){W(!H&&M&&!!P&&n>1&&!k&&t===F&&v&&G)}),[n,G,F,k,M]),Object(r.useEffect)((function(){z&&W(!1)}),[z]);var J=Object(r.useMemo)((function(){return(R?u.R:u.S)({realBetsAmount:n,betsAmount:n,betslipType:i.Ad.betSlipTypes.acca,isOddsDecimal:O.toUpperCase()===i.dc,totalOdds:p,totalStakeValueVisibility:G,emptyBetslip:0===n,allBetsKindIsSP:T,commonBetsKindIsRegular:v})}),[n,p,R]),N=J.betsAmountLabel,Z=J.oddsLabel,$=J.betTypeLabel;return Q?c.a.createElement(A,{onClick:function(){V(i.Ad.betSlipTypes.acca,!0),L("BetSlipModal"),W(!1)}},c.a.createElement(x,null,N),c.a.createElement(E,null,$),c.a.createElement(I,null,c.a.createElement(h.a,{oddsLabel:Z})),c.a.createElement(B,null)):null}}}]);