!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="f213e01e-c230-4977-a722-bc70c39795c4",e._sentryDebugIdIdentifier="sentry-dbid-f213e01e-c230-4977-a722-bc70c39795c4")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7229],{2496:(e,t,i)=>{i.d(t,{A:()=>s});var r=i(6029),d=i(76356),l=i(55729),n=i(41735);let s=(0,l.forwardRef)((e,t)=>{var i;let{children:l,onClick:s,"data-testid":a,countryOddsProvider:o}=e,c=null==o?void 0:o.provider,{colors:u}=(0,n.useTheme)(),x=null==c||null==(i=c.colors)?void 0:i.primary,v=x?"linear-gradient(90deg, ".concat(x,", ").concat(u.overlay.darken1,", ").concat(x,")"):void 0,f=c?{background:v}:{};return(0,r.jsxs)(d.az,{position:"relative",bg:c?void 0:"surface.s2",br:"lg",ref:t,onClick:s,cursor:s?"pointer":void 0,style:f,children:[c&&(0,r.jsx)(d.az,{w:"100%",h:"100%",position:"absolute",bg:"surface.s1",style:{opacity:.8},br:"lg"}),(0,r.jsx)(d.az,{position:"relative",p:"md",children:l})]})})},16214:(e,t,i)=>{i.d(t,{O:()=>v});var r=i(6029),d=i(494),l=i(62859),n=i(5546),s=i(17693),a=i(46430),o=i(49821),c=i(2294),u=i(2496),x=i(85304);let v=e=>{var t;let{eventId:i,isLive:v}=e,f=(0,n.Ae)(),{allEventOdds:h,error:k}=(0,a.k)(f,i,v),y=(0,d.d4)(c.y$),{ref:j,makeOnClick:p}=(0,o.kW)({countryOddsProvider:f,type:o.jF.Additional,marketName:null==h||null==(t=h[0])?void 0:t.marketName,location:l.cb.AdditionalOddsTab});return k?null:h?(0,r.jsx)(u.A,{ref:j,countryOddsProvider:f,children:h.map((e,t,i)=>{var d;return(0,r.jsx)(x.A,{selectedProvider:f,market:e,hideMarketName:(null==(d=i[t-1])?void 0:d.marketId)===e.marketId,onClick:p(e.marketName,o.ki.OddsValue),first:0===t,showRegulationImages:y},e.id)})}):(0,r.jsx)(s.t,{provider:f})}},17693:(e,t,i)=>{i.d(t,{t:()=>n});var r=i(6029),d=i(18612),l=i(2496);function n(e){let{hasCTA:t=!0,provider:i}=e,n=!t;return(0,r.jsx)(l.A,{countryOddsProvider:i,children:(0,r.jsxs)(d.D,{height:n?66:84,style:{display:"block",margin:"auto"},uniqueKey:"odds-cl",children:[(0,r.jsx)("rect",{x:0,y:0,width:46,height:15}),(0,r.jsx)("rect",{x:0,y:23,width:"32%",height:36}),(0,r.jsx)("rect",{x:"34%",y:23,width:"32%",height:36}),(0,r.jsx)("rect",{x:"68%",y:23,width:"32%",height:36}),t&&(0,r.jsx)("rect",{x:"calc(100% - 60px)",y:"calc(100% - 14px)",width:60,height:14})]})})}},34965:(e,t,i)=>{i.d(t,{A:()=>g});var r=i(6029),d=i(4967),l=i(55729),n=i(62827),s=i(21377),a=i(44194),o=i(90248),c=i(45860),u=i(54409),x=i(8960),v=i(70591),f=i(49821),h=i(61836),k=i(30479),y=i(76356);function j(e){let{"data-testid":t,children:i}=e;return(0,r.jsx)(y.so,{justify:"space-between",align:"center",borderRadius:"sm",py:"sm",px:"lg",mt:"sm",bg:"surface.s1",children:i})}var p=i(96003);function m(e){let{eventId:t,providerId:i,location:y,setCtaType:m}=e,{data:b}=(0,c.Ay)(s.bnp.betBoost(t,i)),[g,A]=(0,n.yR)(p.x,{}),[C,I]=(0,l.useState)(!1),O={boostId:t.toString()},E=(0,x.d)();return((0,l.useEffect)(()=>{b&&b.betBoost.betBoosts.length>0&&E?(I(!0),g[i]||A({...g,[i]:(0,d.ZV)()})):I(!1)},[i,b,E]),(0,l.useEffect)(()=>{m(e=>({...e,[f.fl.BetBoostButton]:{isActive:!!C}}))},[C]),C)?(0,r.jsxs)(j,{children:[(0,r.jsxs)(a.EY,{display:"block",color:"neutrals.nLv2",textStyle:"assistive.default",lineHeight:"[16px]",children:[(0,r.jsx)(o.A,{id:"check_available_boosts",values:{boosts:"Boosts"}})," "]}),(0,r.jsx)(v.N_,{routeKey:"betting",hash:(0,k.HL)(O),onClick:()=>{A({...g,[i]:(0,d.ZV)()}),(0,h.ke)({action:"click",location:y,type:"bet_boost_button"})},children:(0,r.jsxs)(a.$n,{size:"tertiary",variant:"clear",children:["Bet Boost",(0,r.jsx)(u.CCT,{})]})})]}):null}function b(e){let{providerId:t,signUpLink:i,onClick:s,setCtaType:c}=e,[u,x]=(0,n.yR)(p.J,{});return((0,l.useEffect)(()=>{c(e=>({...e,[f.fl.AffiliateButton]:{isActive:!!i}}))},[!!i]),(0,l.useEffect)(()=>{!u[t]&&i&&x({...u,[t]:(0,d.ZV)()})},[t]),i)?(0,r.jsxs)(j,{children:[(0,r.jsx)(a.EY,{display:"block",color:"neutrals.nLv2",textStyle:"assistive.default",lineHeight:"[16px]",children:(0,r.jsx)(o.A,{id:"odds_cta_text"})}),(0,r.jsx)(y.I4.a,{target:"_blank",rel:"nofollow noopener noreferrer",href:i,onClick:s,children:(0,r.jsx)(a.$n,{size:"tertiary",variant:"clear",children:(0,r.jsx)(o.A,{id:"claim_your_bonus_button"})})})]}):null}function g(e){let{countryOddsProvider:t,eventId:i,location:s,setCtaType:a,onSignUpClick:o}=e,c=null==t?void 0:t.provider.id,u=null==t?void 0:t.signupLink,x=null==t?void 0:t.branded,[v]=(0,n.yR)(p.J,{}),[f]=(0,n.yR)(p.x,{}),[h,k]=(0,l.useState)(!0);if((0,l.useEffect)(()=>{c&&x&&k(!!v[c]&&1e3*v[c]+10*d.d_<=1e3*(0,d.ZV)())},[c]),!c||!x)return null;let y=!!f[c]&&1e3*f[c]+30*d.d_<=1e3*(0,d.ZV)();return!h&&u?(0,r.jsx)(b,{signUpLink:u,providerId:c,setCtaType:a,onClick:o}):y?null:(0,r.jsx)(m,{eventId:i,providerId:c,location:s,setCtaType:a})}},46430:(e,t,i)=>{i.d(t,{k:()=>h});var r=i(21377),d=i(932),l=i.n(d),n=i(78383),s=i.n(n),a=i(84285),o=i.n(a),c=i(55729),u=i(45860),x=i(80925),v=i(39196),f=i(70351);let h=(e,t,i)=>{let[d,n]=(0,x.Z)(e,i);return function(e,t,i,d){let[n]=(0,f.A)(),a={refreshInterval:6e4,fetcher:r.nk6.fetchOddsWithFallback},{data:x,error:h,mutate:k}=(0,u.Ay)(e&&(i||d)?[e,i,d]:null,a);(0,c.useEffect)(()=>{k()},[t]);let y=null==x?void 0:x.markets,j=null==y?void 0:y.map(e=>e.id);return(0,c.useEffect)(()=>{let e=[];return n&&(null==j||j.forEach(t=>{let i=n.Topic.odds.byId(t),r=(0,v.p)("odds:".concat(t),i,s());e.push(n.subscribe(r))})),()=>{e.forEach(e=>e())}},[n,null==x?void 0:x.eventId]),(0,c.useEffect)(()=>{let e=e=>{let t=l()(x);if(!(null==t?void 0:t.markets))return;let i=t.markets.findIndex(t=>t.id===e.id);i>-1&&[1,2,3].forEach(r=>{let d=e["choice".concat(r,".fractionalValue")];d&&o()(t,"markets[".concat(i,"].choices[").concat(r-1,"].fractionalValue"),d,l())}),k(t,!1)};n&&"boolean"!=typeof n&&(null==j||j.forEach(t=>{let i=n.Topic.odds.byId(t),r=(0,v.p)("odds:".concat(t),i,e);n.subscribe(r)}))},[n,x,k]),{allEventOdds:y,error:h}}(t,i,d,n)}},47229:(e,t,i)=>{i.d(t,{f9:()=>E,J7:()=>S,t1:()=>I.t}),i(16214);var r=i(6029),d=i(44194),l=i(76356),n=i(90112),s=i(9127),a=i(55729),o=i(90248),c=i(494),u=i(62859),x=i(22648),v=i(62213),f=i(5546),h=i(61836),k=i(10794),y=i(98095),j=i(46430),p=i(85517),m=i(49821),b=i(2294),g=i(34965),A=i(2496),C=i(85304),I=i(17693),O=i(44450);let E=e=>{var t;let{eventId:i,isLive:E}=e,w=(0,c.d4)(k.LQ),[_,N]=(0,a.useState)({}),[F,S]=(0,a.useState)(!1),[T,P]=(0,a.useState)(null),B=(0,c.d4)(b.y$),{event:V,location:L}=(0,a.useContext)(u.y$),z=(0,f.F0)(V),{hasAdBlock:R}=(0,y.j)();i!==T&&(S(!1),P(i));let{featuredOdds:W,hasMoreOdds:$,error:D}=(0,p.A)(z,i,E),{allEventOdds:Y}=(0,j.k)(z,F?i:void 0,E),Z=$&&(L!==u.cb.Widget||w&&v.fe.includes(w)),{ref:H,makeOnClick:M}=(0,m.kW)({type:m.jF.Featured,marketName:null==W?void 0:W.marketName,activeCTA:_,countryOddsProvider:z}),{makeOnClick:X}=(0,m.kW)({type:m.jF.Additional,location:u.cb.AdditionalOdds,countryOddsProvider:z});return D?null:W?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsxs)(A.A,{countryOddsProvider:z,children:[(0,r.jsx)(C.A,{selectedProvider:z,ref:H,market:W,onClick:M(W.marketName,m.ki.OddsValue),first:!0,showRegulationImages:B,showLiveLabel:!0}),(0,r.jsx)(n.N,{initial:!1,children:F&&(Y?(0,r.jsx)(s.m.div,{initial:{height:0},animate:{height:"auto"},exit:{height:0},style:{overflow:"hidden"},transition:{duration:.3,ease:"easeInOut"},children:Y.filter(e=>e.id!==W.id).map((e,t,i)=>{var d;let l=W.marketId===e.marketId&&0===t;return(0,r.jsx)(a.Fragment,{children:(0,r.jsx)(C.A,{selectedProvider:z,market:e,hideMarketName:(null==(d=i[t-1])?void 0:d.marketId)===e.marketId||l,onClick:X(e.marketName,m.ki.OddsValue)})},e.id)})}):(0,r.jsx)(x.a,{delay:300}))}),(0,r.jsx)(l.so,{justify:"flex-end",align:"center",children:Z&&(0,r.jsx)(l.az,{onClick:()=>{S(!F)},cursor:"pointer",children:(0,r.jsx)(d.EY,{textStyle:"assistive.default",color:"primary.default",truncate:!0,children:(0,r.jsx)(o.A,{id:F?"show_less":"odds.additionalOdds"})})})}),!R&&(null==z||null==(t=z.provider)?void 0:t.id)&&(0,r.jsx)(g.A,{eventId:i,countryOddsProvider:z,location:L,setCtaType:N,onSignUpClick:()=>(0,h.Fe)({id:i,category:W.marketName,location:L,provider:null==z?void 0:z.provider.slug,position:m.ki.AffiliateButton,type:m.jF.Featured})})]}),(0,r.jsx)(O.A,{})]}):(0,r.jsx)(I.t,{hasCTA:!!Z,provider:z})};var w=i(99064),_=i(77988),N=i(41618);let F=e=>{let{eventId:t,isLive:i,isOpen:n,title:s,isCompliance:v,onClose:h}=e,[y,p]=(0,a.useState)(!1),{event:b}=(0,a.useContext)(u.y$),g=(0,c.d4)(k.LQ),A=(0,f.F0)(b),{allEventOdds:I,error:O}=(0,j.k)(A,t,i),{makeOnClick:E}=(0,m.kW)({type:m.jF.Additional,location:u.cb.AdditionalOdds,countryOddsProvider:A});return((0,a.useEffect)(()=>{let e=setTimeout(()=>p(!0),300);return I&&(clearTimeout(e),p(!0)),()=>clearTimeout(e)},[!!I]),O)?null:y?(0,r.jsxs)(w.Xn,{isOpen:n,onClose:h,blurBackground:v,children:[(0,r.jsx)(w.Xn.Header,{children:(0,r.jsxs)(l.so,{justify:"space-between",align:"center",children:[(0,r.jsx)(d.EY,{textStyle:"display.large",children:s||(0,r.jsx)(o.A,{id:"odds.additionalOdds"})}),(0,r.jsx)(N.r,{selectedProvider:A,size:"48x24"})]})}),(0,r.jsx)(w.Xn.Content,{children:(0,r.jsx)(l.az,{p:"lg",children:I?I.map((e,t)=>{var i;return(0,r.jsx)(C.A,{selectedProvider:A,onClick:E(e.marketName,m.ki.OddsValue),market:e,secondary:!0,centerMarketName:!0,hideMarketName:(null==(i=I[t-1])?void 0:i.marketId)===e.marketId},e.id)}):(0,r.jsx)(x.a,{})})}),(v||"DE"===g)&&(0,r.jsx)(w.Xn.Footer,{children:(0,r.jsx)(d.EY,{display:"block",textAlign:"center",w:"100%",px:"lg",py:"sm",children:(0,r.jsx)(_.A,{provider:A})})})]}):null},S=e=>{let{eventId:t,isLive:i}=e,n=(0,c.d4)(k.LQ),{event:s,location:x}=(0,a.useContext)(u.y$),{hasAdBlock:j}=(0,y.j)(),[b,E]=(0,a.useState)(!1),[w,_]=(0,a.useState)({}),N=(0,f.F0)(s),{featuredOdds:S,hasMoreOdds:T,error:P}=(0,p.A)(N,t,i),{ref:B,makeOnClick:V}=(0,m.kW)({countryOddsProvider:N,type:m.jF.Featured,marketName:null==S?void 0:S.marketName,activeCTA:w}),L=T&&n&&v.fe.includes(n);return P||!N?null:S?(0,r.jsxs)(l.az,{bg:"surface.s1",br:"lg",elevation:"2",children:[(0,r.jsxs)(A.A,{countryOddsProvider:N,children:[(0,r.jsx)(C.A,{selectedProvider:N,market:S,onClick:V(S.marketName,m.ki.OddsValue),ref:B,first:!0}),(0,r.jsx)(l.so,{justify:"flex-end",align:"center",children:L&&(0,r.jsx)(l.az,{onClick:()=>{E(!0)},cursor:"pointer",children:(0,r.jsx)(d.EY,{textStyle:"assistive.default",color:"primary.default",children:(0,r.jsx)(o.A,{id:"odds.additionalOdds"})})})}),!j&&(0,r.jsx)(g.A,{countryOddsProvider:N,eventId:t,location:x,setCtaType:_,onSignUpClick:()=>(0,h.Fe)({id:t,category:S.marketName,location:u.cb.EventPage,provider:null==N?void 0:N.provider.slug,position:m.ki.AffiliateButton,type:m.jF.Featured})})]}),(0,r.jsx)(O.A,{}),(0,r.jsx)(F,{eventId:t,isLive:i,isOpen:b,onClose:()=>E(!1),isCompliance:!0})]}):(0,r.jsx)(I.t,{hasCTA:!!L,provider:N})}}}]);