(self.webpackChunk=self.webpackChunk||[]).push([[2846,5697],{15697:(t,e,o)=>{"use strict";o.r(e),o.d(e,{OddsRangeFilter:()=>Z,default:()=>S});var n=o(12139),r=o(16575),i=o(85782),a=o(46062),l=o.n(a),s=o(44036),d=o.n(s),c=o(96793),p=o.n(c),u=o(17892),m=o.n(u),g=o(11173),h=o.n(g),v=o(42464),b=o.n(v),y=o(10862),T=o.n(y),f={};f.styleTagTransform=b(),f.setAttributes=m(),f.insert=p().bind(null,"head"),f.domAPI=d(),f.insertStyleElement=h(),l()(T(),f),T()&&T().locals&&T().locals;var _=o(56753);const k="odds-range-filter",x=(0,i.dG)(k);function O(t){return null!=t&&t.length?t[1]===1/0?[t[0],5]:t:[1,5]}function Z({onFilterApply:t,value:e}){const[o,a]=(0,n.eJ)((null==e?void 0:e.length)>0),[l,s]=(0,n.eJ)(O(e));(0,n.d4)((()=>{O(e)}),[e]);const d=(0,n.Ye)((()=>`${l[0].toFixed(2)} - ${l[1].toFixed(2)}${5===l[1]?"+":""}`),[l]);return(0,_.tZ)("div",{className:k,children:(0,_.BX)("div",{className:x("wrapper"),children:[(0,_.BX)("div",{className:x("title"),children:[(0,_.tZ)(r.vN,{tkey:"SPORT.ODDS_RANGE"}),(0,_.BX)("span",{className:"title__value",children:[": ",d]})]}),(0,_.tZ)(r.U2,{min:1,max:5,step:.01,onChange:t=>{s([t[0],t[1]]),a(t.length>0)},value:l}),(0,_.BX)("div",{className:x("buttons"),children:[(0,_.tZ)("button",{className:(0,i.O5)(x("buttons"),"apply"),disabled:!o,onClick:()=>{t&&t(5===l[1]?[l[0],1/0]:l)},children:(0,_.tZ)(r.vN,{tkey:"_APPLY"})}),(0,_.tZ)("button",{className:(0,i.O5)(x("buttons"),"reset"),disabled:!o,onClick:()=>{s([1,5]),a(!1),t&&t([])},children:(0,_.tZ)(r.vN,{tkey:"_RESET"})})]})]})})}const S=Z},82846:(t,e,o)=>{"use strict";o.r(e),o.d(e,{SportLanding:()=>At,default:()=>It});var n=o(12139),r=o(56747),i=o(58059),a=o(82762),l=o(96e3),s=o(16575),d=o(85782),c=o(58061),p=o(72709),u=o(20),m=o(47009),g=o(99054),h=o(77984),v=o(12335),b=o(44955),y=o(15697),T=o(46062),f=o.n(T),_=o(44036),k=o.n(_),x=o(96793),O=o.n(x),Z=o(17892),S=o.n(Z),R=o(11173),E=o.n(R),N=o(42464),P=o.n(N),A=o(64679),I=o.n(A),C={};C.styleTagTransform=P(),C.setAttributes=S(),C.insert=O().bind(null,"head"),C.domAPI=k(),C.insertStyleElement=E(),f()(I(),C),I()&&I().locals&&I().locals;var U=o(56753);const w=function({name:t}){return(0,U.tZ)("div",{className:"competition-header",children:(0,U.tZ)("h2",{className:"competition-header__name",children:t})})};function $({competition:t,markets:e,sportRef:o,categoryId:T}){var f;(0,c.TK)();const{userLanguage:_}=(0,n.qp)(l.AZ),k=(0,r.k6)(),[x,O]=(0,n.eJ)(t),[Z,S]=(0,n.eJ)(e[0]),[R,E]=(0,n.eJ)(!!t),N=(0,c.VP)({market:Z}),P=(0,n.sO)(N.getValue()),A=(0,n.sO)(null==t?void 0:t.name),I=(0,n.sO)(!1),[C,$]=(0,n.eJ)(!1),[M,B,z]=(0,c.CU)(!1,a.LoaderMode.Skeleton),{setOddsRangeFilterData:L,oddsRange:J,setOddsRange:G,oddsRangeFilterResult:H,showOddsRangeFilter:X}=(0,c.s)([{competitions:[t]}]),K=(0,c.Kx)(),V=()=>!t||I.current,F=({market:t})=>({locale:_,sportId:o,competitionId:null==x?void 0:x.id,marketId:null==t?void 0:t.id,isGroup:K.get("isGroup")}),Y=()=>{const{market:t}=P.current;return S(t),$(!0),u.E},j=t=>i.jV.getEvents(t,{mode:z.current,connector:B}).pipe((0,m.K)(Y)),D=t=>{var e;P.current=N.getValue();const o=null==t||null==(e=t.data.categories[0])?void 0:e.competitions[0];A.current=(null==o?void 0:o.name)||A.current,O(o),S(P.current.market||(null==t?void 0:t.data.markets[0])),E(!0),L(null==t?void 0:t.data.categories)};(0,n.d4)((()=>{S(e[0])}),[t]),(0,n.d4)((()=>{const t=N.pipe((0,g.h)(V),(0,h.U)(F),(0,v.w)(j)).subscribe(D);return()=>t.unsubscribe()}),[_,t,e,o,T]);const q=t=>(0,d.oK)(k,t);return(0,p._p)(x),(0,n.d4)((()=>{var t;H&&O(null==(t=H[0])?void 0:t.competitions[0])}),[H]),R&&(0,U.BX)("div",{className:"category-competition",children:[(0,U.tZ)(w,{name:A.current}),(0,U.tZ)(s.cO,{options:e,selected:Z,resetChange:C,onChange:t=>(({market:t=Z})=>{$(!1),t!==Z&&(I.current=!0),N.next({market:t})})({market:t}),type:"markets"}),(0,U.tZ)(s.Od,{visible:M&&X&&!(null==e||!e.length),type:a.SkeletonType.OddsRangeFilter,fixedHeight:100,splitter:!(null==e||!e.length),children:!(null==e||!e.length)&&X&&(0,U.BX)(U.HY,{children:[(0,U.tZ)("hr",{className:"horizontal-line"}),(0,U.tZ)(y.default,{onFilterApply:t=>{G(t)},value:J})]})}),(0,U.tZ)(s.Od,{visible:M,type:a.SkeletonType.EventsModule,children:null!=x&&null!=(f=x.groupedEvents)&&f.length?null==x?void 0:x.groupedEvents.map((t=>(0,U.tZ)(s.Lj,{title:t.formattedDate,events:t.events,market:Z,onEventClick:q,onOddsClick:(t,e,n)=>{(0,b.Ul)({type:a.BetType.PRE_MATCH,event:t,market:e,outcome:n,sportId:o,categoryId:T,competitionId:x.id})}},t.date))):(0,U.tZ)(s.$J,{messageKey:J.length?"SPORT.EMPTY_ODDS_FILTER":"SPORT.NO_CATEGORY_EVENTS"})})]})}function M({sport:t}){(0,c.TK)();const{userLanguage:e}=(0,n.qp)(l.AZ),o=(0,r.UO)(),[d,u]=(0,n.eJ)(),[m,g]=(0,n.eJ)(),h=(0,c.Kx)(),[v,b,y]=(0,c.CU)(!0,a.LoaderMode.Skeleton);return(0,n.d4)((()=>{const t=i.jV.getEvents({locale:e,sportId:h.get("sportRef"),categoryId:h.get("categoryId"),isGroup:h.get("isGroup")},{mode:y.current,connector:b}).subscribe((t=>{u(t.data.categories),g(t.data.markets)}));return()=>t.unsubscribe()}),[o.id,e]),(0,p._A)(d),(0,U.tZ)(s.Od,{visible:v,type:a.SkeletonType.CategoryMatches,children:(0,U.tZ)("div",{className:"category-events",children:null!=d&&d.length?d.map((e=>e.competitions.map((o=>(0,U.tZ)($,{sportRef:t.providerId,categoryId:e.id,competition:o,markets:m},o.id))))):0===(null==d?void 0:d.length)&&(0,U.BX)(U.HY,{children:[(0,U.tZ)("hr",{className:"horizontal-line"}),(0,U.tZ)(s.$J,{messageKey:"SPORT.NO_EVENTS"})]})})})}function B({sport:t}){(0,c.TK)();const{userLanguage:e}=(0,n.qp)(l.AZ),o=(0,r.UO)(),[d,u]=(0,n.eJ)(),m=(0,c.Kx)(),[g,h,v]=(0,c.CU)(!0,a.LoaderMode.Skeleton),y=(0,n.Ye)((()=>{var t,e;if(!d)return!1;const o=null==(t=d[0])?void 0:t.competitions;return 1===d.length&&1===(null==o?void 0:o.length)&&1===(null==(e=o[0].outrights)?void 0:e.length)}),[d]);return(0,n.d4)((()=>{const t=i.jV.getOutrightEvents({sportId:m.get("sportRef"),categoryId:m.get("categoryId"),isGroup:m.get("isGroup")},{mode:v.current,connector:h}).subscribe((t=>{var e;u((null==t||null==(e=t.data)?void 0:e.categories)||[])}));return()=>t.unsubscribe()}),[o.id,e]),(0,p._A)(d),(0,U.tZ)(s.Od,{visible:g,type:a.SkeletonType.CategoryOutrights,children:(0,U.tZ)("div",{className:"category-outrights",children:null!=d&&d.length?(0,U.tZ)("div",{className:"category-outrights__list",children:(T=d,T.map((e=>e.competitions.map((o=>(0,U.BX)("div",{className:"category-outrights__league",children:[(0,U.tZ)(w,{name:o.name}),(0,U.tZ)(s.Uu,{outrights:o.outrights,open:y,oddsClick:(n,r)=>(0,b.Ul)({type:a.BetType.OUTRIGHT,outright:n,outcome:r,sportId:t.providerId,categoryId:e.id,competitionId:o.id})})]},o.id))))))}):0===(null==d?void 0:d.length)&&(0,U.BX)(U.HY,{children:[(0,U.tZ)("hr",{className:"horizontal-line"}),(0,U.tZ)(s.$J,{messageKey:"SPORT.NO_OUTRIGHT_EVENTS"})]})})});var T}var z=o(94689),L=o.n(z),J={};function G(){const t=(0,r.$B)(),e=(0,r.TH)(),o=(0,c.qM)(),n=[{title:o("SPORT.MATCHES"),targetUri:`${t.url}${e.search}`,exact:!0},{title:o("SPORT.OUTRIGHTS"),targetUri:`${t.url}${a.APP_ROUTES.sportOutrights}${e.search}`}];return(0,U.tZ)("div",{className:"competition-tabs",children:(0,U.tZ)(s.AG,{type:"competition-tabs",items:n})})}function H({title:t,landingTab:e=""}){const o=(0,r.k6)(),n=(0,r.$B)();return(0,U.tZ)("div",{className:"sport-subheader",children:(0,U.tZ)(s.mr,{title:t,onBack:()=>{o.push(`${a.APP_ROUTES.sport}/${n.params.sportName}/${e}`)},bgColor:"light"})})}J.styleTagTransform=P(),J.setAttributes=S(),J.insert=O().bind(null,"head"),J.domAPI=k(),J.insertStyleElement=E(),f()(L(),J),L()&&L().locals&&L().locals;var X=o(12322),K=o.n(X),V={};function F({sport:t}){const e=(0,r.$B)(),o=(0,c.Kx)(),i=(0,n.Ye)((()=>{var e;return null==(e=t.tabs.find((t=>"COMPETITIONS"===t.type)))?void 0:e.segment}),[t]);return(0,U.BX)("div",{className:"category-events-page",children:[(0,U.tZ)(H,{title:o.get("name"),landingTab:i}),(0,U.BX)("main",{children:[(0,U.tZ)(G,{}),(0,U.BX)(r.rs,{children:[(0,U.tZ)(r.AW,{path:`${e.path}`,exact:!0,render:()=>(0,U.tZ)(M,{sport:t})}),(0,U.tZ)(r.AW,{path:`${e.path}${a.APP_ROUTES.sportOutrights}`,render:()=>(0,U.tZ)(B,{sport:t})}),(0,U.tZ)(r.AW,{path:"*",children:(0,U.tZ)(r.l_,{to:e.url})})]})]})]})}V.styleTagTransform=P(),V.setAttributes=S(),V.insert=O().bind(null,"head"),V.domAPI=k(),V.insertStyleElement=E(),f()(K(),V),K()&&K().locals&&K().locals;var Y=o(34796),j=o.n(Y),D={};function q({sport:t}){var e;(0,c.TK)();const{userLanguage:o}=(0,n.qp)(l.AZ),g=(0,r.k6)(),T=(0,c.Kx)(),f=(0,r.UO)(),[_,k]=(0,n.eJ)(),[x,O]=(0,n.eJ)(null),[Z,S]=(0,n.eJ)(),[R,E]=(0,n.eJ)(10),[N,P]=(0,n.eJ)(!1),[A,I]=(0,n.eJ)(null),C=(0,c.VP)({market:null,limit:10}),w=(0,n.sO)(C.getValue()),[$,M]=(0,n.eJ)(!1),[B,z,L]=(0,c.CU)(!!R,a.LoaderMode.Skeleton),[J,G]=(0,n.eJ)(!1),{setOddsRangeFilterData:H,oddsRange:X,setOddsRange:K,oddsRangeFilterResult:V,showOddsRangeFilter:F}=(0,c.s)(),Y=({market:t=A,limit:e=R})=>{M(!1),e!==R&&E(e),C.next({market:t,limit:e})},j=({market:t,limit:e})=>({locale:o,sportId:T.get("sportRef"),competitionId:T.get("competitionId"),marketId:null==t?void 0:t.id,isGroup:T.get("isGroup"),limit:e}),D=()=>{const{market:t}=w.current;return I(t),M(!0),u.E},q=t=>(L.current=t.limit?a.LoaderMode.Skeleton:a.LoaderMode.Spinner,i.jV.getEvents(t,{mode:L.current,connector:z}).pipe((0,m.K)(D))),W=t=>{var e,o;w.current=C.getValue();const n=null==t?void 0:t.data,r=null==n||null==(e=n.categories[0])?void 0:e.competitions[0];k(r),O(null==n?void 0:n.markets),I(w.current.market||(null==n?void 0:n.markets[0])),S(null==n||null==(o=n.categories[0])?void 0:o.id),P(null==t?void 0:t.pagination.hasMore),null!=t&&t.pagination.hasMore||(G(!0),H(null==n?void 0:n.categories))};(0,n.d4)((()=>{const t=C.pipe((0,h.U)(j),(0,v.w)(q)).subscribe(W);return()=>t.unsubscribe()}),[t,f.id,o]);const Q=t=>(0,d.oK)(g,t);return(0,n.d4)((()=>{var t;V&&k(null==(t=V[0])?void 0:t.competitions[0])}),[V]),(0,p._p)(_),(0,U.BX)("div",{className:"competition-events",children:[(0,U.tZ)(s.Od,{visible:B&&!(null!=x&&x.length),fixedHeight:38,type:a.SkeletonType.Selector,children:!(null==x||!x.length)&&(0,U.BX)(U.HY,{children:[(0,U.tZ)("hr",{className:"horizontal-line"}),(0,U.tZ)(s.cO,{options:x,selected:A,resetChange:$,onChange:t=>Y({market:t}),type:"markets"})]})}),(0,U.tZ)(s.Od,{visible:B&&F&&!(null==x||!x.length),type:a.SkeletonType.OddsRangeFilter,fixedHeight:100,splitter:!(null==x||!x.length),children:!(null==x||!x.length)&&F&&(0,U.BX)(U.HY,{children:[(0,U.tZ)("hr",{className:"horizontal-line"}),(0,U.tZ)(y.OddsRangeFilter,{onFilterApply:t=>{K(t),J||Y({limit:null})},value:X})]})}),(0,U.tZ)(s.Od,{visible:B,type:a.SkeletonType.LeagueMatches,children:null!=_&&null!=(e=_.groupedEvents)&&e.length?(0,U.BX)(U.HY,{children:[_.groupedEvents.map((e=>(0,U.tZ)(s.Lj,{title:e.formattedDate,events:e.events,market:A,onEventClick:Q,onOddsClick:(e,o,n)=>{(0,b.Ul)({type:a.BetType.PRE_MATCH,event:e,market:o,outcome:n,sportId:t.providerId,categoryId:Z,competitionId:_.id})}},e.date))),N&&(0,U.tZ)(s.og,{onClick:()=>Y({limit:null})})]}):!B&&(!_||!_.groupedEvents.length)&&(0,U.BX)(U.HY,{children:[(0,U.tZ)("hr",{className:"horizontal-line"}),(0,U.tZ)(s.$J,{messageKey:X.length?"SPORT.EMPTY_ODDS_FILTER":"SPORT.NO_COMPETITION_EVENTS"})]})})]})}function W({sport:t}){var e,o;(0,c.TK)();const{userLanguage:d}=(0,n.qp)(l.AZ),u=(0,r.UO)(),[m,g]=(0,n.eJ)(),[h,v]=(0,n.eJ)(10),[y,T]=(0,n.eJ)(!1),f=(0,c.Kx)(),[_,k,x]=(0,c.CU)(!!h,h?a.LoaderMode.Skeleton:a.LoaderMode.Spinner),[O,Z]=(0,n.eJ)(!1);(0,n.d4)((()=>{if(!O){const t=i.jV.getOutrightEvents({sportId:f.get("sportRef"),competitionId:f.get("competitionId"),isGroup:f.get("isGroup"),limit:h},{mode:x.current,connector:k}).subscribe({next:t=>{T(t.pagination.hasMore),g(t)},error:()=>{Z(!0)}});return()=>t.unsubscribe()}}),[u.id,h,O,d]);const S=null==m||null==(e=m.data)||null==(o=e.categories)?void 0:o[0],R=null==S?void 0:S.competitions[0],E=(null==R?void 0:R.outrights)||[];return(0,p.tw)(E),(0,U.tZ)(s.Od,{visible:_,type:a.SkeletonType.LeagueOutrights,children:(0,U.tZ)("div",{className:"competition-outrights",children:null!=E&&E.length?(0,U.BX)(U.HY,{children:[(0,U.tZ)(s.Uu,{outrights:E,open:1===E.length,oddsClick:(e,o)=>{(0,b.Ul)({type:a.BetType.OUTRIGHT,outright:e,outcome:o,sportId:t.providerId,categoryId:S.id,competitionId:R.id})}}),y&&(0,U.tZ)(s.og,{onClick:()=>{Z(!1),v(null)}})]}):0===(null==E?void 0:E.length)&&(0,U.BX)(U.HY,{children:[(0,U.tZ)("hr",{className:"horizontal-line"}),(0,U.tZ)(s.$J,{messageKey:"SPORT.NO_OUTRIGHT_EVENTS"})]})})})}function Q({sport:t}){const e=(0,r.$B)(),o=(0,c.Kx)(),i=(0,n.Ye)((()=>{var e;return null==(e=t.tabs.find((t=>"COMPETITIONS"===t.type)))?void 0:e.segment}),[t]);return(0,U.BX)("div",{className:"competition-page",children:[(0,U.tZ)(H,{title:o.get("name"),landingTab:i}),(0,U.BX)("main",{children:[(0,U.tZ)(G,{}),(0,U.BX)(r.rs,{children:[(0,U.tZ)(r.AW,{path:`${e.path}`,exact:!0,render:()=>(0,U.tZ)(q,{sport:t})}),(0,U.tZ)(r.AW,{path:`${e.path}${a.APP_ROUTES.sportOutrights}`,render:()=>(0,U.tZ)(W,{sport:t})}),(0,U.tZ)(r.AW,{path:"*",children:(0,U.tZ)(r.l_,{to:e.url})})]})]})]})}D.styleTagTransform=P(),D.setAttributes=S(),D.insert=O().bind(null,"head"),D.domAPI=k(),D.insertStyleElement=E(),f()(j(),D),j()&&j().locals&&j().locals;var tt=o(35104),et=o(81121),ot=o(79115),nt=o(62286),rt=o.n(nt),it={};it.styleTagTransform=P(),it.setAttributes=S(),it.insert=O().bind(null,"head"),it.domAPI=k(),it.insertStyleElement=E(),f()(rt(),it),rt()&&rt().locals&&rt().locals;const at=function({competitions:t,sportRef:e}){const o=(0,r.k6)(),n=(0,r.UO)(),i=`${a.APP_ROUTES.sport}/${n.sportName}`;return(0,U.tZ)("div",{className:"competitions-list",children:t.map((t=>(0,U.BX)("div",{className:"competition",onClick:()=>(t=>{const n=(0,d.mS)({sportRef:e,competitionId:t.id,name:t.name,isGroup:t.isGroup}),r=(l=t.eventCount,s=t.outrightCount,!l&&s?a.APP_ROUTES.sportOutrights:"");var l,s;o.push(`${i}${a.APP_ROUTES.sportCompetition}/${t.id}${r}?${n}`)})(t),children:[(0,U.tZ)("span",{className:"competition__name",children:t.name}),(0,U.tZ)("span",{className:"competition__view-all",children:(0,U.tZ)(s.pv,{value:t.eventCount+t.outrightCount})})]},t.id)))})};var lt=o(72978),st=o.n(lt),dt={};dt.styleTagTransform=P(),dt.setAttributes=S(),dt.insert=O().bind(null,"head"),dt.domAPI=k(),dt.insertStyleElement=E(),f()(st(),dt),st()&&st().locals&&st().locals;const ct=function({name:t,eventCount:e,onCategoryClick:o}){const n=(0,c.qM)();return(0,U.BX)("div",{className:"sport-category",children:[(0,U.tZ)("p",{className:"sport-category__name",children:null===t?n("SPORT.INTERNATIONAL"):t}),(0,U.tZ)("span",{className:"sport-category__view-all",onClick:o,children:(0,U.tZ)(s.pv,{value:e})})]})};var pt=o(19427),ut=o.n(pt),mt={};mt.styleTagTransform=P(),mt.setAttributes=S(),mt.insert=O().bind(null,"head"),mt.domAPI=k(),mt.insertStyleElement=E(),f()(ut(),mt),ut()&&ut().locals&&ut().locals;const gt=function({providerId:t}){const[e,o]=(0,n.eJ)([]),[p,u]=(0,n.eJ)([]),[m,g,v]=(0,c.CU)(!0,a.LoaderMode.Skeleton),b=(0,c.qM)(),y=(0,r.k6)(),T=(0,r.UO)(),{userLanguage:f}=(0,n.qp)(l.AZ);(0,n.d4)((()=>{const e=i.jV.getCompetitions(t,{mode:v.current,connector:g}).pipe((0,h.U)((t=>t.categories))).subscribe(_);return()=>e.unsubscribe()}),[t,f]);const _=t=>{const e=[],n=[];t.forEach((t=>{const o=[],r=[];t.competitions.forEach((t=>{t.featured?o.push(t):r.push(t)})),r.length>0&&e.push(Object.assign({},t,{competitions:r})),o.length>0&&n.push(Object.assign({},t,{competitions:o}))})),o(e),u(n)},k=e=>{const o=(0,d.mS)({sportRef:t,categoryId:e.id,name:e.name,isGroup:e.isGroup}),n=!e.eventCount&&e.outrightCount?a.APP_ROUTES.sportOutrights:"",r=`${a.APP_ROUTES.sport}/${T.sportName}`;y.push(`${r}${a.APP_ROUTES.sportCategory}/${e.id}${n}?${o}`)};return(0,U.BX)("div",{className:"sport-competitions",children:[(0,U.BX)(s.Od,{visible:m,type:a.SkeletonType.EventsGroup,children:[!(!e.length||!p.length)&&(0,U.tZ)("h2",{className:"sport-competitions__section-title",children:(0,U.tZ)(s.vN,{tkey:"SPORT.TOP_LEAGUES"})}),p&&(null==p?void 0:p.map((e=>(0,U.tZ)(s.UQ,{open:1===p.length,title:(0,U.tZ)(ct,{name:e.name,eventCount:e.eventCount+e.outrightCount,onCategoryClick:()=>k(e)}),children:(0,U.tZ)(at,{sportRef:t,competitions:e.competitions})},e.id)))),!(!e.length||!p.length)&&(0,U.tZ)("h2",{className:"sport-competitions__section-title",children:(0,U.tZ)(s.vN,{tkey:"SPORT.COUNTRIES"})}),e&&(null==e?void 0:e.map((o=>(0,U.tZ)(s.UQ,{open:1===e.length,title:(0,U.tZ)(ct,{name:o.name,eventCount:o.eventCount+o.outrightCount,onCategoryClick:()=>k(o)}),children:(0,U.tZ)(at,{sportRef:t,competitions:o.competitions})},o.id))))]}),!e.length&&!p.length&&(0,U.tZ)("p",{className:"no-competitions",children:b("SPORT.NO_EVENTS")})]})};var ht=o(71298),vt=o.n(ht),bt={};function yt({tabs:t}){const e=(0,r.UO)(),o=t.map((t=>({title:t.title,targetUri:`${a.APP_ROUTES.sport}/${e.sportName}/${t.segment}`})));return(0,U.tZ)("div",{className:"sport-tabs",children:(0,U.tZ)(s.AG,{items:o,type:"sport-tabs",spinButtons:!0})})}bt.styleTagTransform=P(),bt.setAttributes=S(),bt.insert=O().bind(null,"head"),bt.domAPI=k(),bt.insertStyleElement=E(),f()(vt(),bt),vt()&&vt().locals&&vt().locals;var Tt=o(4208),ft=o.n(Tt),_t={};_t.styleTagTransform=P(),_t.setAttributes=S(),_t.insert=O().bind(null,"head"),_t.domAPI=k(),_t.insertStyleElement=E(),f()(ft(),_t),ft()&&ft().locals&&ft().locals;const kt=tt.NZ.upcomingEventsTab.initialLimit,xt=(0,d.dG)("upcoming-tab"),Ot=function({providerId:t,preSelectedMarketTypeRef:e}){var o;(0,c.TK)();const{userLanguage:r}=(0,n.qp)(l.AZ),[g,y]=(0,n.eJ)({markets:[],categories:[]}),[T,f]=(0,n.eJ)(new Date),[_,k]=(0,n.eJ)(null),[x,O]=(0,n.eJ)(!1),[Z,S]=(0,n.eJ)(kt),[R,E]=(0,n.eJ)(!1),{setOddsRangeFilterData:N,oddsRange:P,setOddsRange:A,oddsRangeFilterResult:I,showOddsRangeFilter:C}=(0,c.s)(),w=(0,c.VP)({market:_,date:T,limit:Z}),$=(0,n.sO)(w.getValue()),[M,B,z]=(0,c.CU)(!!Z,a.LoaderMode.Skeleton);(0,n.d4)((()=>{e&&K({id:e})}),[e]);const L=({date:t=T,market:e=_,limit:o=Z})=>{E(!1),t!==T&&(f(t),z.current=a.LoaderMode.Skeleton),e!==_&&(z.current=a.LoaderMode.Skeleton),o!==Z&&(S(o),z.current=o?a.LoaderMode.Skeleton:a.LoaderMode.Spinner),w.next({date:t,market:e,limit:o})},J=({date:e,market:o,limit:n})=>({sportId:t,date:d._I.getLocalDateISOString(e),marketId:null==o?void 0:o.id,limit:n,locale:r}),G=()=>{const{date:t,market:e,limit:o}=$.current;return f(t),k(e),S(o),E(!0),u.E},H=t=>i.jV.getUpcomingEvents(t,{mode:z.current,connector:B}).pipe((0,m.K)(G)),X=t=>{var o;if($.current=w.getValue(),e){const o=t.data.markets.find((t=>t.id===e));e=null,o?k(o):K(t.data.markets[0])}else k($.current.market||t.data.markets[0]);null!=t&&null!=(o=t.pagination)&&o.hasMore||N(null==t?void 0:t.data.categories),y(t.data),O(t.pagination.hasMore)};(0,n.d4)((()=>{const t=w.pipe((0,h.U)(J),(0,v.w)(H)).subscribe(X);return()=>t.unsubscribe()}),[r,t]);const K=t=>L({market:t});(0,p._A)(null==g?void 0:g.categories),(0,n.d4)((()=>{I&&y(Object.assign({},g,{categories:I}))}),[I]);const V={value:P,isShown:C,onApply:t=>{A(t),Z&&L({limit:null})}};return(0,U.BX)(U.HY,{children:[(0,U.tZ)(s.gV,{className:xt("calendar"),selectedDate:T,daysCount:tt.NZ.upcomingEventsTab.maxDays,onSelect:t=>L({date:t,limit:P.length?null:kt,market:null})}),(0,U.tZ)(s.OY,{isLoading:M,matches:g,onOddsClick:e=>{(0,b.Ul)({type:a.BetType.PRE_MATCH,event:e.event,market:e.market,outcome:e.outcome,categoryId:e.category.id,competitionId:e.competition.id,sportId:t})},selectedMarket:_,showMarketSelector:!0,restore:R,onMarketChange:K,oddsRangeFilterConfig:V,noEventsMessageKey:null!=g&&null!=(o=g.markets)&&o.length&&P.length?"SPORT.EMPTY_ODDS_FILTER":"SPORT.NO_EVENTS"}),x&&!M&&(0,U.tZ)(s.og,{onClick:()=>L({limit:null})})]})};function Zt({sport:t}){const e=(0,r.UO)(),o=(0,c.Kx)(),i=(0,r.k6)(),p=o.get("marketTypeRef");let u={couponId:o.get("couponId"),marketTypeRef:p};return(0,d.xb)(u)&&(u=null),(0,n.d4)((()=>{var n,r;if(null==(n=t.tabs)||!n.length)return void i.push(a.APP_ROUTES.home);const s=(c=t.tabs,(p=e.tabName)&&c.find((t=>t.segment===p)));var c,p;if(!s){const n=o.get("fallBackPage");if(n)i.replace(a.APP_ROUTES[n]);else{const o=t.tabs[0];i.replace(`${a.APP_ROUTES.sport}/${e.sportName}/${o.segment}`)}}const u=(0,l.Ag)((0,d.H$)((null==s?void 0:s.type)||(null==(r=t.tabs[0])?void 0:r.type),tt.NZ.defaults.pageTitle),{sportName:(0,d.Il)(e.sportName,l.b$.current),brand:tt.NZ.defaults.pageTitle});document.title=u}),[t.tabs,e.tabName,l.b$.current]),(0,U.BX)("main",{className:"sport-details-page",children:[(0,U.tZ)(yt,{tabs:t.tabs}),((e,o)=>{const n=null==e?void 0:e.toUpperCase();switch(n){case"COMPETITIONS":return(0,U.tZ)(gt,{providerId:o});case"UPCOMING_MATCHES":return(0,U.tZ)(Ot,{preSelectedMarketTypeRef:p,providerId:o});case"COUPONS":return(0,U.BX)(U.HY,{children:[(0,U.tZ)("hr",{className:"horizontal-line"}),(0,U.tZ)(et.Z,{preSelectedParams:u,moduleType:n,sports:[t],eventsNumber:10,showViewMoreLink:!1,showSportSelector:!1,showHeader:!1})]});case"HIGHLIGHTS":return(0,U.tZ)(ot.Z,{moduleType:n,sports:[t],preSelectedMarketTypeRef:p,eventsNumber:10,showSportSelector:!1,showTitle:!1,showViewMoreLink:!1});default:return(0,U.tZ)(s.Od,{visible:!0,type:a.SkeletonType.Loader})}})(e.tabName,t.providerId)]})}var St=o(705),Rt=o.n(St),Et={};Et.styleTagTransform=P(),Et.setAttributes=S(),Et.insert=O().bind(null,"head"),Et.domAPI=k(),Et.insertStyleElement=E(),f()(Rt(),Et),Rt()&&Rt().locals&&Rt().locals;const Nt="sport-landing",Pt=(0,d.dG)(Nt);function At(){const t=(0,r.$B)(),e=(0,r.k6)(),[o,d]=(0,n.eJ)(null),{userLanguage:c}=(0,n.qp)(l.AZ),p=(0,n.Ye)((()=>{var t,e;const n=null==o||null==(t=o.modules)||null==(e=t.find((t=>"STATIC_BLOCK"===t.type)))?void 0:e.items;return null!=n&&n.length?n:[]}),[o]);return(0,n.d4)((()=>{const o=t.url;d(null);const n=i.JA.getSport(o,{disableErrorNotification:!0}).subscribe({next:d,error:()=>{console.warn(`Can't find sport with targetUri '${o}'`),e.push(a.APP_ROUTES.home)}});return()=>n.unsubscribe()}),[t.url,c]),(0,U.tZ)(s.Od,{visible:!o,type:a.SkeletonType.SportLanding,children:o&&(0,U.BX)("div",{className:Nt,children:[(0,U.BX)(r.rs,{children:[(0,U.tZ)(r.AW,{path:`${t.path}${a.APP_ROUTES.sportCompetition}${a.APP_ROUTES_PARAMS.id}`,render:()=>(0,U.tZ)(Q,{sport:o})}),(0,U.tZ)(r.AW,{path:`${t.path}${a.APP_ROUTES.sportCategory}${a.APP_ROUTES_PARAMS.id}`,render:()=>(0,U.tZ)(F,{sport:o})}),(0,U.tZ)(r.AW,{path:`${t.path}${a.APP_ROUTES_PARAMS.tabName}`,render:()=>(0,U.tZ)(Zt,{sport:o})})]}),null!=p&&p.length?(0,U.tZ)("div",{className:Pt("static"),children:p.map((t=>(0,U.tZ)("div",{dangerouslySetInnerHTML:{__html:t.htmlMarkup}},t.key)))}):null]})})}const It=At},10862:t=>{t.exports=[[t.id,'.odds-range-filter{display:flex;width:100%;padding:5px}.odds-range-filter__wrapper{display:flex;flex-direction:column;justify-content:space-around;align-items:center;width:100%;height:90px;background-color:var(--color-brand-8);padding:8px 10px;border-radius:4px}.odds-range-filter__title{font-size:12px;font-weight:700;text-transform:uppercase}.odds-range-filter__title__value{color:var(--color-brand-background)}.odds-range-filter__buttons{display:flex;justify-content:center;align-items:center}.odds-range-filter__buttons--apply,.odds-range-filter__buttons--reset{display:flex;justify-content:center;align-items:center;width:121px;height:28px;border:0;border-radius:4px;font-size:12px;color:var(--color-white);font-family:"Roboto Condensed",sans-serif;font-weight:700;cursor:pointer}.odds-range-filter__buttons--apply:disabled,.odds-range-filter__buttons--reset:disabled{background-color:var(--color-range-slider-button-disabled);cursor:default}.odds-range-filter__buttons--apply{margin-right:10px;background-color:var(--color-brand-background)}.odds-range-filter__buttons--reset{background-color:var(--color-raisin-black)}',"",""]]},12322:t=>{t.exports=[[t.id,".category-events-page .competition-tabs{padding-bottom:9px}","",""]]},64679:t=>{t.exports=[[t.id,".competition-header{display:flex;min-height:32px;width:100%;align-items:center;justify-content:space-between;background-color:var(--color-neutral-220);padding:0 12px}.competition-header__name{font-size:16px;font-weight:700}","",""]]},34796:t=>{t.exports=[[t.id,".competition-events .horizontal-selector{margin-bottom:4px}","",""]]},94689:t=>{t.exports=[[t.id,".competition-tabs{padding:9px 12px 5px}.competition-tabs .horizontal-menu--competition-tabs .horizontal-menu__item{font-size:12px;display:flex;align-items:center;height:28px;padding:6px 8px;text-decoration:none;background-color:var(--color-brand-8);color:var(--color-primary-text);margin-right:4px;border-radius:4px}.competition-tabs .horizontal-menu--competition-tabs .horizontal-menu__item--active{color:var(--color-brand-text);background-color:var(--color-brand-background)}","",""]]},62286:t=>{t.exports=[[t.id,".competitions-list .competition{font-size:14px;padding:0 18px 0 16px;line-height:40px;border-top:1px solid var(--color-neutral-150);display:flex;align-items:center;justify-content:space-between;color:var(--color-primary-text);cursor:pointer}.competitions-list .competition__name{text-transform:capitalize;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.competitions-list .arrow-icon{font-size:16px}","",""]]},72978:t=>{t.exports=[[t.id,".sport-category{display:flex;width:100%;align-items:center;justify-content:space-between;padding-left:4px}.sport-category__name{font-size:13px;font-weight:700;color:var(--color-primary-text)}","",""]]},19427:t=>{t.exports=[[t.id,'.sport-competitions{margin-top:4px}.sport-competitions__section-title{color:var(--color-primary-text);font-family:"Roboto Condensed",sans-serif;font-size:18px;font-weight:700;padding:10px}.sport-competitions .accordion__header{border-top:1px solid var(--color-white);height:34px;padding-right:18px;background-color:var(--color-sport-competitions-header-background)}.sport-competitions .accordion__header .arrow-icon__glyph{fill:var(--color-primary-text)}.sport-competitions .accordion .competitions-list .competition__name{font-size:13px}.sport-competitions .accordion .sport-category__view-all .event-number{color:var(--color-primary-text)}.no-competitions{text-align:center;padding:16px 0}',"",""]]},705:t=>{t.exports=[[t.id,".sport-landing__static{padding:16px 12px}.sport-landing .view-all-button{border-bottom:1px solid var(--color-secondary-background)}","",""]]},71298:t=>{t.exports=[[t.id,".sport-tabs .horizontal-menu--sport-tabs{padding:9px 0 5px}.sport-tabs .horizontal-menu--sport-tabs .horizontal-menu__item{position:relative;display:block;flex:0 1 auto;font-size:12px;font-weight:400;height:28px;line-height:28px;color:var(--color-neutral-1000);text-decoration:none;white-space:nowrap;max-width:170px;overflow:hidden;text-overflow:ellipsis;text-align:center;border-radius:4px;padding:0 8px;background-color:var(--color-brand-8)}.sport-tabs .horizontal-menu--sport-tabs .horizontal-menu__item--active{font-weight:400;color:var(--color-brand-text);background:var(--color-brand-background)}.sport-tabs .horizontal-menu--sport-tabs .horizontal-menu__title{display:block;height:30px;white-space:nowrap}.sport-tabs .horizontal-menu--sport-tabs .horizontal-scroll-box__wrapper{padding:0 10px}.sport-tabs .horizontal-menu--sport-tabs .horizontal-scroll-box__body{display:flex;align-items:stretch}.sport-tabs .horizontal-menu--sport-tabs .horizontal-scroll-box__item{margin:0 2px}.sport-tabs .horizontal-menu--sport-tabs .horizontal-scroll-box .menu-scroll-button{position:relative;z-index:1;height:28px;background-image:linear-gradient(to left, var(--color-primary-background) 55%, transparent);padding-bottom:0}.sport-tabs .horizontal-menu--sport-tabs .horizontal-scroll-box .menu-scroll-button .arrow-icon{font-size:10px;color:var(--color-neutral-1000)}","",""]]},4208:t=>{t.exports=[[t.id,".upcoming-tab__calendar--extra-margin{margin-bottom:8px}","",""]]}}]);