1"use strict";(self.webpackChunkflashscore=self.webpackChunkflashscore||[]).push([[59053],{57406(e,t,a){a.d(t,{M:()=>s,d:()=>i});class s{constructor(e,t){this.tabs=void 0,this.content=void 0,this.tabs=e,this.content=t}getTabs(){return this.tabs}getContent(){return this.content}}class i{constructor(){this.tabs=[],this.content=[]}addTab(e){return this.tabs.push(e),this}addSubTabOrContent(e){return this.content.push(e),this}build(){return new s(this.tabs,this.content)}}},20930(e,t,a){a.r(t),a.d(t,{default:()=>f});var s=a(57406);class i{constructor(e,t,a,s,i,r){this.shortName=void 0,this.fullName=void 0,this.rowCount=void 0,this.selected=void 0,this.url=void 0,this.tabIdentification=void 0,this.shortName=e,this.fullName=t,this.rowCount=a,this.selected=s,this.url=i,this.tabIdentification=r}getShortName(){return this.shortName}getFullName(){return this.fullName}getRowCount(){return this.rowCount}getSelected(){return this.selected}getUrl(){return this.url}getTabIdentification(){return this.tabIdentification}getTabLabel(){return this.fullName}getClassName(){return"tabs__tab"}}class r extends i{getClassName(){return"subTabs__tab"}getTabLabel(){return this.getFullName()}}class n{constructor(){this.shortName="",this.fullName="",this.tabIdentification="",this.rowCount=0,this.selected=!1,this.url=""}setShortName(e){return this.shortName=e,this}setFullName(e){return this.fullName=e,this}setTabIdentification(e){return this.tabIdentification=e,this}setRowCount(e){return this.rowCount=e,this}setSelected(e){return this.selected=e,this}setUrl(e){return this.url=e,this}build(){return new i(this.shortName,this.fullName,this.rowCount,this.selected,this.url,this.tabIdentification)}}class d extends n{build(){return new r(this.shortName,this.fullName,this.rowCount,this.selected,this.url,this.tabIdentification)}}var l=a(77102),h=a(30085),o=a(27757);var u=e=>e.change?function(e){switch(e){case h._z.UP:return o.q.UP;case h._z.DOWN:return o.q.DOWN}}(e.change.type):c(e),c=e=>{var{value:t,opening:a}=e;if(Number(t)!==Number(a))return Number(t)>Number(a)?o.q.UP:o.q.DOWN};class O{constructor(e,t,a,s,i,r,n,d,l,h,o,u,c){this.bookmakerId=void 0,this.bookmakerImageUrl=void 0,this.bookmakerName=void 0,this.bookmakerShowTextInsteadOfLogo=void 0,this.hasLiveOdds=void 0,this.handicapValue=void 0,this.handicapTypeId=void 0,this.oddValue1=void 0,this.oddValue2=void 0,this.oddValue3=void 0,this.odd1Available=void 0,this.odd2Available=void 0,this.odd3Available=void 0,this.bookmakerId=e,this.bookmakerImageUrl=t,this.bookmakerName=a,this.bookmakerShowTextInsteadOfLogo=s,this.hasLiveOdds=i,this.handicapValue=r,this.handicapTypeId=n,this.oddValue1=d,this.oddValue2=l,this.oddValue3=h,this.odd1Available=o,this.odd2Available=u,this.odd3Available=c}getBookmakerId(){return this.bookmakerId}getBookmakerImageUrl(){return this.bookmakerImageUrl}getBookmakerName(){return this.bookmakerName}getShowTextInsteadOfLogo(){return this.bookmakerShowTextInsteadOfLogo}getHasLiveOdds(){return this.hasLiveOdds}getHandicapValue(){return this.handicapValue}getHandicapTypeId(){return this.handicapTypeId}getOddValue1(){return this.oddValue1}getOddValue2(){return this.oddValue2}getOddValue3(){return this.oddValue3}getOdd1Available(){return this.odd1Available}getOdd2Available(){return this.odd2Available}getOdd3Available(){return this.odd3Available}}class b{constructor(){this.bookmakerId=-1,this.bookmakerImageUrl="",this.bookmakerShowTextInsteadOfLogo=!1,this.bookmakerName="",this.hasLiveOdds=!1,this.handicapValue=null,this.handicapTypeId=null,this.oddValue1=null,this.oddValue2=null,this.oddValue3=null,this.odd1Available=!0,this.odd2Available=!0,this.odd3Available=!0}setBookmakerId(e){return this.bookmakerId=e,this}setBookmakerImageUrl(e){return this.bookmakerImageUrl=e,this}setShowTextInsteadOfLogo(e){return this.bookmakerShowTextInsteadOfLogo=e,this}setBookmakerName(e){return this.bookmakerName=e,this}setHasLiveOdds(e){return this.hasLiveOdds=e,this}setHandicapValue(e){return this.handicapValue=e,this}setHandicapTypeId(e){return this.handicapTypeId=e,this}setOddValue1(e){return this.oddValue1=e,this}setOddValue2(e){return this.oddValue2=e,this}setOddValue3(e){return this.oddValue3=e,this}setOdd1Available(e){return this.odd1Available=e,this}setOdd2Available(e){return this.odd2Available=e,this}setOdd3Available(e){return this.odd3Available=e,this}build(){return new O(this.bookmakerId,this.bookmakerImageUrl,this.bookmakerName,this.bookmakerShowTextInsteadOfLogo,this.hasLiveOdds,this.handicapValue,this.handicapTypeId,this.oddValue1,this.oddValue2,this.oddValue3,this.odd1Available,this.odd2Available,this.odd3Available)}}var A={value:a(98488).uO,active:!1},v=e=>{var{eventParticipantId:t}=e;return t};function p(e){return{homeIds:e.home.map(v),awayIds:e.away.map(v)}}function _(e,t){return t.find(t=>{var a;return e.includes(null!=(a=t.eventParticipantId)?a:"")})||A}var I=a(8920),N=a(66509);class m{constructor(e,t){this.header=void 0,this.rows=void 0,this.header=e,this.rows=t}getHeader(){return this.header}getRows(){return this.rows}}class T{constructor(e){this.headerBuilder=void 0,this.rows=[],this.headerBuilder=e}addRow(e){return this.rows.push(e),this}build(){return new m(this.headerBuilder.build(),this.rows)}}var S=a(86829),R=a(14390);class D{constructor(e,t,a,s){this.handicap=void 0,this.label1=void 0,this.label2=void 0,this.label3=void 0,this.handicap=e,this.label1=t,this.label2=a,this.label3=s}getHandicap(){return this.handicap}getLabel1(){return this.label1}getLabel2(){return this.label2}getLabel3(){return this.label3}}class g{constructor(){this.handicap=null,this.label1=null,this.label2=null,this.label3=null}setHandicap(e){return this.handicap=e,this}setLabel1(e){return this.label1=e,this}setLabel2(e){return this.label2=e,this}setLabel3(e){return this.label3=e,this}build(){return new D(this.handicap,this.label1,this.label2,this.label3)}}var k=a(44687),w=a(85121),E=a(83656),C=a(11272),L=a(49560);const f=class{constructor(e,t,a,s,i,r,n,d,l,h,o){this.trans=void 0,this.participantData=void 0,this.tabNames=void 0,this.subTabNames=void 0,this.defaultBettingType=void 0,this.defaultScopeType=void 0,this.sportId=void 0,this.isUsHandicap=void 0,this.swappedParticipants=void 0,this.bettingTypesConfig=void 0,this.isEventLive=void 0,this.IDENTIFIER_DELIMITER="÷",this.trans=e,this.participantData=t,this.tabNames=a,this.subTabNames=s,this.defaultBettingType=i,this.defaultScopeType=r,this.sportId=n,this.isUsHandicap=d,this.swappedParticipants=l,this.bettingTypesConfig=h,this.isEventLive=o}sortBySequence(e){return function(t,a){return e.indexOf(t)-e.indexOf(a)}}eventOddItem2ArrowAndValue(e){var t,a,s=u(e),i=parseFloat(null!=(t=e.value)?t:""),r=parseFloat(null!=(a=e.opening)?a:"");return new l.C(isNaN(i)?"":i,isNaN(r)?"":r,s?L.fZ[s]:null)}setOddsValues(e,t,a){var s,{homeIds:i,awayIds:r}=p(this.participantData);switch(a){case w.a.HOME_DRAW_AWAY:case w.a.EUROPEAN_HANDICAP:case w.a.DOUBLE_CHANCE:var n=_(i,t),d=function(e){return e.find(e=>!e.eventParticipantId)||A}(t),l=_(r,t);e.setOddValue1(this.eventOddItem2ArrowAndValue(n)).setOdd1Available(n.active).setOddValue2(this.eventOddItem2ArrowAndValue(d)).setOdd2Available(d.active).setOddValue3(this.eventOddItem2ArrowAndValue(l)).setOdd3Available(l.active);break;case w.a.DRAW_NO_BET:case w.a.HOME_AWAY:case w.a.ASIAN_HANDICAP:case w.a.TO_QUALIFY:var o=_(i,t),u=_(r,t);e.setOddValue2(this.eventOddItem2ArrowAndValue(o)).setOdd2Available(o.active).setOddValue3(this.eventOddItem2ArrowAndValue(u)).setOdd3Available(u.active);break;case w.a.OVER_UNDER:var c,O,b=null!=(c=t.find(e=>e.selection===h._u.OVER))?c:A,v=null!=(O=t.find(e=>e.selection===h._u.UNDER))?O:A;e.setOddValue2(this.eventOddItem2ArrowAndValue(b)).setOdd2Available(b.active).setOddValue3(this.eventOddItem2ArrowAndValue(v)).setOdd3Available(v.active);break;case w.a.HALF_TIME_FULL_TIME:case w.a.CORRECT_SCORE:var N,m=null!=(N=t[0])?N:A;e.setOddValue3(this.eventOddItem2ArrowAndValue(m)).setOdd3Available(m.active);break;case w.a.ODD_OR_EVEN:var T,S,R=null!=(T=t.find(e=>e.selection===h._u.ODD))?T:A,D=null!=(S=t.find(e=>e.selection===h._u.EVEN))?S:A;e.setOddValue2(this.eventOddItem2ArrowAndValue(R)).setOdd2Available(R.active).setOddValue3(this.eventOddItem2ArrowAndValue(D)).setOdd3Available(D.active);break;case w.a.BOTH_TEAMS_TO_SCORE:var g,k,E=null!=(g=t.find(e=>e.bothTeamsToScore))?g:A,C=null!=(k=t.find(e=>!e.bothTeamsToScore))?k:A;e.setOddValue2(this.eventOddItem2ArrowAndValue(E)).setOdd2Available(E.active).setOddValue3(this.eventOddItem2ArrowAndValue(C)).setOdd3Available(C.active)}var L=null!=(s=t[0])?s:A;switch(a){case w.a.ASIAN_HANDICAP:e.setHandicapTypeId(this.isUsHandicap?I.r.GOALS:I.r.RUNS);case w.a.OVER_UNDER:case w.a.EUROPEAN_HANDICAP:case w.a.HALF_TIME_FULL_TIME:case w.a.CORRECT_SCORE:e.setHandicapValue(String(this.getHandicapValue(L,a)||L.winner||L.score||""))}return e}
1sortHandicapsDependingOnType(e,t){switch(t){case w.a.OVER_UNDER:case w.a.ASIAN_HANDICAP:case w.a.EUROPEAN_HANDICAP:return[...e].sort((e,t)=>{var a,s,i=(null==(a=this.getHandicapDefinition(e))?void 0:a.type)===h.kc.SETS;return i!==((null==(s=this.getHandicapDefinition(t))?void 0:s.type)===h.kc.SETS)?i?-1:1:parseFloat(e)-parseFloat(t)});case w.a.HALF_TIME_FULL_TIME:return[...e].sort(this.sortBySequence(["1/1","1/X","1/2","X/1","X/X","X/2","2/1","2/X","2/2"]));case w.a.CORRECT_SCORE:return(0,N.s)([...e]);default:throw new Error("Don't know how to sort type "+t+" handicaps")}}getHandicapValue(e,t){var a;if(!e.handicap)return null;var{awayIds:s}=p(this.participantData),i=s.includes(null!=(a=e.eventParticipantId)?a:"");return(t!==w.a.OVER_UNDER&&this.swappedParticipants?-1:1)*(i?-1:1)*parseFloat(e.handicap.value)}getHandicapIdentifier(e,t){return e&&e.handicap?""+this.getHandicapValue(e,t)+this.IDENTIFIER_DELIMITER+e.handicap.type:null}getHandicapDefinition(e){if(!e)return null;var[t,a]=e.split(this.IDENTIFIER_DELIMITER);return{value:t,type:a}}getTables(e,t,a,s,i){var r=(0,S.PT)((0,S.pG)(t),!0),n=(0,S.ig)(r,e.filter(e=>e.bettingType===a&&e.bettingScope===s));switch(a){case w.a.HOME_DRAW_AWAY:case w.a.DRAW_NO_BET:case w.a.HOME_AWAY:case w.a.DOUBLE_CHANCE:case w.a.ODD_OR_EVEN:case w.a.BOTH_TEAMS_TO_SCORE:case w.a.TO_QUALIFY:var d=new T(this.getTableHeader(a));return n.map(e=>{var s=(0,R.O)(t,e.bookmakerId);s&&d.addRow(this.setOddsValues((new b).setBookmakerId(e.bookmakerId).setBookmakerImageUrl((0,E.e)(e.bookmakerId,i)).setShowTextInsteadOfLogo(Boolean(null==t?void 0:t.logoToTextOddsComparison)).setBookmakerName(s.bookmaker.name).setHasLiveOdds(e.hasLiveBettingOffers),e.odds,a).build())}),[d.build()];case w.a.OVER_UNDER:case w.a.ASIAN_HANDICAP:case w.a.EUROPEAN_HANDICAP:case w.a.HALF_TIME_FULL_TIME:case w.a.CORRECT_SCORE:var l=n.reduce((e,t)=>{var{odds:s}=t;return s.reduce((e,t)=>e.add(this.getHandicapIdentifier(t,a)||t.winner||t.score||""),e)},new Set);return this.sortHandicapsDependingOnType(l,a).map(e=>{var s,r=new T(this.getTableHeader(a,null==(s=this.getHandicapDefinition(e))?void 0:s.type));return n.map(s=>{var n=(0,R.O)(t,s.bookmakerId);if(n){var d=s.odds.filter(t=>(this.getHandicapIdentifier(t,a)||t.winner||t.score)===e);d.length&&r.addRow(this.setOddsValues((new b).setBookmakerId(s.bookmakerId).setBookmakerImageUrl((0,E.e)(s.bookmakerId,i)).setShowTextInsteadOfLogo(Boolean(null==t?void 0:t.logoToTextOddsComparison)).setBookmakerName(n.bookmaker.name).setHasLiveOdds(s.hasLiveBettingOffers),d,a).build())}}),r.build()})}}getTableHeader(e,t){switch(e){case w.a.HOME_DRAW_AWAY:return(new g).setLabel1(this.trans.translate("TRANS_ODDS_COMPARISON_1")).setLabel2(this.trans.translate("TRANS_ODDS_COMPARISON_X")).setLabel3(this.trans.translate("TRANS_ODDS_COMPARISON_2"));case w.a.DRAW_NO_BET:case w.a.TO_QUALIFY:if(this.isUsHandicap&&this.swappedParticipants){var[a,s]=(0,k.WM)(this.isUsHandicap,this.swappedParticipants,!1);return(new g).setLabel2(this.trans.translate(a)).setLabel3(this.trans.translate(s))}return(new g).setLabel2(this.trans.translate("TRANS_ODDS_COMPARISON_1")).setLabel3(this.trans.translate("TRANS_ODDS_COMPARISON_2"));case w.a.HOME_AWAY:var[i,r]=(0,k.WM)(this.isUsHandicap,this.swappedParticipants,!1);return(new g).setLabel2(this.trans.translate(i)).setLabel3(this.trans.translate(r));case w.a.OVER_UNDER:return(new g).setHandicap(this.trans.translate((0,C.Q)(this.sportId,t,"TRANS_ODDS_COMPARISON_TOTAL"))).setLabel2(this.trans.translate("TRANS_ODDS_COMPARISON_OVER")).setLabel3(this.trans.translate("TRANS_ODDS_COMPARISON_UNDER"));case w.a.ASIAN_HANDICAP:var[n,d]=(0,k.WM)(this.isUsHandicap,this.swappedParticipants,!1);return(new g).setHandicap(this.trans.translate((0,C.Q)(this.sportId,t,(0,k.Io)(this.isUsHandicap,this.sportId)))).setLabel2(this.trans.translate(n)).set
1Label3(this.trans.translate(d));case w.a.EUROPEAN_HANDICAP:return(new g).setHandicap(this.trans.translate((0,C.Q)(this.sportId,t,"TRANS_ODDS_COMPARISON_HANDICAP"))).setLabel1(this.trans.translate("TRANS_ODDS_COMPARISON_1")).setLabel2(this.trans.translate("TRANS_ODDS_COMPARISON_X")).setLabel3(this.trans.translate("TRANS_ODDS_COMPARISON_2"));case w.a.DOUBLE_CHANCE:return(new g).setLabel1(this.trans.translate("TRANS_ODDS_COMPARISON_10")).setLabel2(this.trans.translate("TRANS_ODDS_COMPARISON_12")).setLabel3(this.trans.translate("TRANS_ODDS_COMPARISON_02"));case w.a.HALF_TIME_FULL_TIME:return(new g).setHandicap(this.trans.translate("TRANS_ODDS_COMPARISON_HT_FT_SHORT")).setLabel3(this.trans.translate("TRANS_ODDS_COMPARISON_1"));case w.a.CORRECT_SCORE:return(new g).setHandicap(this.trans.translate("TRANS_ODDS_COMPARISON_CORRECT_SCORE_SHORT")).setLabel3(this.trans.translate("TRANS_ODDS_COMPARISON_1"));case w.a.ODD_OR_EVEN:return(new g).setLabel2(this.trans.translate("TRANS_ODDS_COMPARISON_ODD")).setLabel3(this.trans.translate("TRANS_ODDS_COMPARISON_EVEN"));case w.a.BOTH_TEAMS_TO_SCORE:return(new g).setLabel2(this.trans.translate("TRANS_ODDS_COMPARISON_YES")).setLabel3(this.trans.translate("TRANS_ODDS_COMPARISON_NO"))}}setTabNameByBettingType(e,t){var a=L.SY[t],{fullName:s,urlName:i,shortName:r}=this.tabNames[a];return e.setTabIdentification(a).setShortName(r).setFullName(s).setUrl(i).setSelected(a===this.defaultBettingType)}setSubTabNameByBettingScope(e,t){var a=L.oK[t],{urlName:s,fullName:i}=this.subTabNames[a];return e.setTabIdentification(a).setFullName(i).setUrl(s).setSelected(a===this.defaultScopeType)}parse(e,t,a){var i,r=e.reduce((e,t)=>{var a,{bettingScope:s,bettingType:i}=t;return e.has(i)||e.set(i,new Set),null==(a=e.get(i))||a.add(s),e},new Map),l=this.isEventLive?"live_odds":"prematch_odds";return[...r.keys()].sort(this.sortBySequence(null!=(i=this.bettingTypesConfig[this.sportId][l].odds_tab)?i:[])).reduce((i,l)=>{i.addTab(this.setTabNameByBettingType(new n,l).build());var h=r.get(l);if(h){var o=new s.d;
1[...h].sort(this.sortBySequence(L.Sm)).forEach((s,i)=>{var r=this.getTables(e,t,l,s,a);o.addTab(this.setSubTabNameByBettingScope(new d,s).setRowCount(r.reduce((e,t)=>e+t.getRows().length,0)).build()),o.addSubTabOrContent(r)}),i.addSubTabOrContent(o.build())}return i},new s.d).build()}}}}]);
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.