!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=(new e.Error).stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="778257c3-bcc0-4085-a197-fcf002f12740",e._sentryDebugIdIdentifier="sentry-dbid-778257c3-bcc0-4085-a197-fcf002f12740")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[54820],{30120:(e,r,d)=>{d.d(r,{KO:()=>a,Qe:()=>s,tV:()=>o});var l=d(494),i=d(37455);let a=(e,r)=>null==e?void 0:e.map(e=>{var d,l,i,a,o,s,t,n;let c=e.provider;return r?{id:c.id,oddsFromId:null!=(t=null!=(s=null==(i=c.liveOddsFrom)?void 0:i.id)?s:null==(a=c.oddsFrom)?void 0:a.id)?t:c.id,fallbackProviderId:null==(o=e.fallbackProvider)?void 0:o.id}:{id:c.id,oddsFromId:null!=(n=null==(d=c.oddsFrom)?void 0:d.id)?n:c.id,fallbackProviderId:null==(l=e.fallbackProvider)?void 0:l.id}}),o=e=>a((0,l.d4)(i.hB),e),s=e=>a((0,l.d4)(i.SM),e)},48600:(e,r,d)=>{d.d(r,{I:()=>l,Z:()=>i});let l=["CA","IT"],i=1},54820:(e,r,d)=>{d.d(r,{A:()=>N});var l=d(6029),i=d(73914),a=d(76356),o=d(90248),s=d(494),t=d(64046),n=d(97340),c=d(37455),u=d(21287),m=d(91201),f=d(48600),v=d(66265),p=d(63831),h=d(67087),k=d(72753),x=d(8785),j=d(74207),b=d(50526);let y=e=>{let{provider:r,market:d}=e,i=(0,h.g3)(),o=(0,x.nu)(d.choices,i).map(e=>(0,x.vT)(e,r.oddsOffset||0)),{ref:s,makeOnClick:n}=(0,t.kW)({type:t.jF.Featured,marketName:d.marketName,isComparison:!0,countryOddsProvider:r,deps:[d.marketName]});return(0,l.jsxs)(a.so,{gap:"sm",ref:s,children:[(0,l.jsx)(a.so,{gap:"sm",flexGrow:1,children:o.map(e=>(0,l.jsx)(p.G,{choice:e,isLive:d.isLive,betSlipLink:(0,x.Iz)(e,d,r),onClick:n(d.marketName,t.ki.OddsValue,r),branded:r.branded,secondary:!0},e.name))}),(0,l.jsx)(j.r,{size:"48x20",selectedProvider:r})]})},g=e=>{let{markets:r,error:d,isLoading:i}=e,o=(0,s.d4)(k.LQ),t=(0,s.d4)(c.hB);return i?(0,l.jsxs)(a.BJ,{gap:"sm",flexGrow:1,children:[null==t?void 0:t.map((e,r)=>(0,l.jsx)(a.az,{h:"lg",py:"2xs"},r)),(0,l.jsx)(a.az,{h:"2xl"})]}):!d&&r&&t&&o?(0,l.jsxs)(a.BJ,{gap:"sm",flexGrow:1,children:[t.map((e,d)=>(0,l.jsx)(y,{provider:e,market:r[d]},e.provider.id)),(0,l.jsxs)(a.so,{justify:f.I.includes(o)?"space-between":"center",align:"center",py:"sm",children:[(0,l.jsx)(v.N,{market:r[0]}),(0,l.jsx)(u.V,{})]}),(0,l.jsx)(b.A,{})]}):null};var I=d(73364);let N=e=>{let{eventId:r,isLive:d,isEleveated:f,isNewOddsComparisonPreview:v}=e,p=(0,s.d4)(c.hB),{odds:h,marketName:k,error:x,isLoading:j}=(0,I.U)(p||[],r,d);return v?(0,l.jsx)(g,{markets:h,marketName:k,error:x,isLoading:j,isLive:d||!1}):j?(0,l.jsx)(a.az,{pt:"[50px]",bg:"surface.s2",br:"lg",elevation:f?"2":void 0,children:null==p?void 0:p.map(e=>(0,l.jsx)(a.az,{h:"[45px]"},e.provider.id))}):x||!h?null:(0,l.jsx)(a.az,{bg:f?"surface.s1":void 0,br:"lg",elevation:f?"2":void 0,children:(0,l.jsxs)(a.so,{direction:"column",bg:"surface.s2",br:"lg",px:"md",pb:"md",children:[(0,l.jsxs)(a.so,{py:"sm",justify:"space-between",align:"center",gap:"2xs",children:[(0,l.jsxs)(a.so,{gap:"2xs",alignSelf:"flex-end",h:"100%",children:[(0,l.jsx)(i.EY,{textStyle:"assistive.default",children:(0,l.jsx)(n.f,{id:"Full time"})}),d&&(0,l.jsx)(i.EY,{textStyle:"assistive.default",color:"status.val",children:(0,l.jsx)(o.A,{id:"live"})})]}),(0,l.jsx)(u.V,{})]}),null==p?void 0:p.map((e,r)=>(0,l.jsx)(m.E,{countryOddsProvider:e,market:h[r],marketName:k,clickType:t.jF.Featured},e.provider.id))]})})}},60604:(e,r,d)=>{d.d(r,{j:()=>y});var l=d(21377),i=d(23291),a=d(932),o=d.n(a),s=d(78383),t=d.n(s),n=d(84285),c=d.n(n),u=d(59018),m=d.n(u),f=d(55729),v=d(494),p=d(45860),h=d(37455),k=d(15578),x=d(30120);async function j(e,r){let d=m()(r),i={},a=await Promise.allSettled(d.map(r=>(0,l.TtD)(l.bnp.allOdds(e,r))));return d.forEach((e,r)=>{"fulfilled"===a[r].status&&(i[e]=a[r].value)}),i}async function b(e){let[r,d]=e,l={},i=!1,a=d.map(e=>e.oddsFromId),o=[],s=!1,t=await j(r,a);if(d.forEach(e=>{t[e.oddsFromId]?(l[e.id]=t[e.oddsFromId],e.oddsFromId!==e.id&&e.oddsMayDiffer&&(i=!0)):e.fallbackProviderId?t[e.fallbackProviderId]?l[e.id]=t[e.fallbackProviderId]:o.push(e.fallbackProviderId):s=!0}),!s&&o.length){let e=await j(r,o);d.forEach(r=>{!l[r.id]&&r.fallbackProviderId&&e[r.oddsFromId]?(l[r.id]=e[r.fallbackProviderId],r.oddsMayDiffer&&(i=!0)):s=!0})}if(s)throw Error("Could not fetch all odds");return{providerOdds:d.map(e=>l[e.id]),oddsMayDiffer:i}}let y=(e,r,d)=>{var l,a,s;let n=(0,v.d4)(h.fq),u=(0,x.KO)(e,d),[m]=(0,i.vQ)(k.z),{data:j,error:y,mutate:g,isLoading:I}=(0,p.Ay)(n&&(null==u?void 0:u.length)?[r,u,d,"ODDS_COMPARISON"]:null,{refreshInterval:6e4,fetcher:b});(0,f.useEffect)(()=>{g()},[d]);let N=new Set;null==j||null==(l=j.providerOdds)||l.forEach(e=>{var r;null==(r=e.markets)||r.forEach(e=>{N.add(e.id)})});let E=[...N];return(0,f.useEffect)(()=>{let e=[];return m&&E.forEach(r=>{if(r){let d=m.Topic.odds.byId(r),l=(0,i.pO)("odds:".concat(r),d,t());e.push(m.subscribe(l))}}),()=>{e.forEach(e=>e())}},[m,null==j||null==(s=j.providerOdds)||null==(a=s[0])?void 0:a.eventId]),(0,f.useEffect)(()=>{let e=e=>{let r=o()(j);if(!r||!r.providerOdds.some(e=>!!e.markets))return;let d=[1,2,3];r.providerOdds.map(r=>{var d;return null==(d=r.markets)?void 0:d.findIndex(r=>r.id===e.id)}).forEach((l,i)=>{void 0!==l&&l>-1&&d.forEach(d=>{let a=e["choice".concat(d,".fractionalValue")];a&&c()(r,"providerOdds.".concat(i,".markets[").concat(l,"].choices[").concat(d-1,"].fractionalValue"),a,o())})}),g(r,!1)};m&&"boolean"!=typeof m&&E.forEach(r=>{if(r){let d=m.Topic.odds.byId(r),l=(0,i.pO)("odds:".concat(r),d,e);m.subscribe(l)}})},[m,j,g]),{data:j,error:y,isLoading:I}}},66265:(e,r,d)=>{d.d(r,{N:()=>n});var l=d(6029),i=d(73914),a=d(76356),o=d(90248),s=d(97340),t=d(48600);let n=e=>{let{market:r}=e;return(0,l.jsxs)(a.so,{gap:"sm",align:"center",children:[r.marketId!==t.Z&&(0,l.jsx)(i.EY,{textStyle:"display.micro",children:(0,l.jsx)(s.f,{id:r.marketName})}),r.choiceGroup&&(0,l.jsx)(i.EY,{textStyle:"display.micro",children:r.choiceGroup}),r.isLive&&(0,l.jsx)(i.EY,{textStyle:"display.micro",color:"status.val",children:(0,l.jsx)(o.A,{id:"live"})})]})}},73364:(e,r,d)=>{d.d(r,{B:()=>n,U:()=>t});var l=d(73914),i=d(60604),a=d(42561);let o=[{marketName:"Full time",choiceGroup:""},{marketName:"Double chance",choiceGroup:""}],s=(e,r,d)=>{let l={};null==e||e.forEach((e,d)=>{var i;null==(i=e.markets)||i.forEach(e=>{l[e.marketName]||(l[e.marketName]={});let i=e.choiceGroup||"";l[e.marketName][i]||(l[e.marketName][i]=[]);let a=l[e.marketName][i][d];a&&(a.isLive===r||e.isLive!==r)||(l[e.marketName][i][d]=e)})});let i=[];return Object.keys(l).forEach(e=>{Object.keys(l[e]).forEach(r=>{(!d||l[e][r].length>=d)&&i.push({marketName:e,choiceGroup:r})})}),{groupedOdds:l,availableMarkets:i}},t=(e,r,d)=>{var l;let{data:a,error:o,isLoading:t}=(0,i.j)(e,r,d),{groupedOdds:n,availableMarkets:c}=s(null==a?void 0:a.providerOdds,d);if(!c.length)return{odds:void 0,marketName:void 0,error:o,isLoading:t};let u=null!=(l=c.find(e=>"Full time"===e.marketName))?l:c[0];return{odds:n[u.marketName][u.choiceGroup],oddsMayDiffer:null==a?void 0:a.oddsMayDiffer,marketName:u.marketName,error:o,isLoading:t}},n=(e,r,d)=>{let{data:t,error:n,isLoading:c}=(0,i.j)(e,r,d),{isDesktopLarge:u}=(0,l.$c)(),{groupedOdds:m,availableMarkets:f}=s(null==t?void 0:t.providerOdds,d),v=o.filter(e=>f.find(r=>r.marketName===e.marketName&&r.choiceGroup===e.choiceGroup)).slice(0,u?2:1),p=new Set;return(v.length||c)&&(null==e?void 0:e.length)?(v.forEach(e=>{m[e.marketName][e.choiceGroup].forEach(e=>{e.choices.forEach(e=>{a.Vj.includes(e.name)&&p.add(e.name)})})}),{odds:null==e?void 0:e.map((e,r)=>v.map(e=>m[e.marketName][e.choiceGroup][r]).filter(Boolean)),markets:v,choiceNames:a.Vj.filter(e=>p.has(e)),error:n,isLoading:c}):{odds:void 0,markets:v,choiceNames:[],error:!0,isLoading:!1}}},91201:(e,r,d)=>{d.d(r,{E:()=>c});var l=d(6029),i=d(76356),a=d(67087),o=d(64046),s=d(8785),t=d(53148),n=d(74207);let c=e=>{let{countryOddsProvider:r,market:d,marketName:c,secondary:u,clickType:m}=e,f=(0,a.g3)(),{ref:v,makeOnClick:p}=(0,o.kW)({type:m,marketName:c,isComparison:!0,countryOddsProvider:r,deps:[c]});if(!(null==d?void 0:d.choices))return null;let h=(0,s.nu)(d.choices,f);return(0,l.jsxs)(i.so,{ref:v,direction:"row",align:"center",pb:"sm",gap:"sm",children:[(0,l.jsx)(n.r,{size:"48x24",selectedProvider:r}),(0,l.jsx)(i.so,{gap:"[5px]",grow:"1",shrink:"1",overflow:"hidden",children:h.map(e=>{if(!c||!d)return;let i=(0,s.vT)(e,r.oddsOffset||0);return(0,l.jsx)(t.i,{choice:i,isLive:d.isLive,countryOddsProvider:r,betSlipLink:(0,s.Iz)(e,d,r),onClick:p(c,o.ki.OddsValue,r),secondary:u},e.name)})})]})}}}]);