1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3560],{23560:(e,t,a)=>{a.r(t),a.d(t,{WidgetDailyLiveScore:()=>N,widgetDailyLiveScoreMapper:()=>k.n});var l=a(6029),s=a(93732),n=a(42030),i=a(81997),r=a(35019),c=a(52226),o=a(64101),d=a.n(o),m=a(20017),x=a(93613),h=a(38983),g=a(17673),u=a(69374);function b(e,t){return"https://media.api.idalgo.idalgo-hosting.com/Sport/Football/Team/Logo/svg/logo_0.svg"===e?t:e}let f=({team:e,isLongName:t})=>{let a=b(e.logoUrl,e.logoPngXs);return(0,l.jsxs)("div",{className:"flex min-h-24 w-full flex-row items-center justify-between px-8 py-4",children:[(0,l.jsxs)("div",{className:"flex items-center gap-4",children:[(0,l.jsx)(g._,{src:a,alt:"",className:"mr-2 size-24"}),(0,l.jsx)("h4",{className:"text-12 text-content-900 dark:text-white",children:t?(0,l.jsx)("abbr",{className:"no-underline",title:e.name,children:e.shortName}):e.name})]}),(0,l.jsx)("span",{className:"text-14 font-semibold text-content-900 dark:text-white",children:e.score})]})},j=({match:e,isLast:t,numberOfMatches:a})=>{let n=!!e.link?.customLink&&""!==e.link.label,r=new Date(e.startsAt).toLocaleTimeString("fr-BE",{hour:"2-digit",minute:"2-digit",timeZone:"Europe/Brussels"}),o=b(e.homeTeam.logoUrl,e.homeTeam.logoPngXs),m=b(e.awayTeam.logoUrl,e.awayTeam.logoPngXs),x=({desktop:x=!0})=>{var b,j;let N,k,p,w,v;return(0,l.jsxs)("div",{className:d()(` 2 ${x?"hidden lg:block":"lg:hidden"} 3 ${!t&&"border-r dark:border-gray-500"} 4 `),children:[(b=e.homeTeam.name,j=e.awayTeam.name,N=1!==a&&(!x&&a>1?b.length>=14||j.length>=14:2===a?b.length+j.length>=30:3===a?b.length+j.length>=20:4!==a||b.length+j.length>=15),k=e.homeTeam,p=e.awayTeam,w=`${k?.name};${p?.name}`,v=e.link?.matchLink?s.N:"div",x?(0,l.jsxs)(v,{href:e.link?.matchLink||void 0,className:d()(` 5 flex items-center justify-center py-8 6 ${(0,u.h)({within:!0})} 7 `),...(0,c.xU)().clickRecord({area:"link",labelArea:w,eventEntity:i.bO.WIDGET}),children:[(0,l.jsx)("h4",{className:"mx-4 text-12 text-content-900 dark:text-white",children:N?(0,l.jsx)("abbr",{className:"no-underline",title:k.name,children:k.shortName}):k.name}),(0,l.jsx)(g._,{src:o,alt:"",className:"mx-4 size-20"}),(0,l.jsxs)("span",{className:"text-16 font-semibold text-content-900 dark:text-white",children:[" ",k.score]}),(0,l.jsx)("span",{className:"mx-4 text-content-900 dark:text-white",children:"-"}),(0,l.jsx)("span",{className:"text-16 font-semibold text-content-900 dark:text-white",children:p.score}),(0,l.jsx)(g._,{src:m,alt:"",className:"mx-4 size-20"}),(0,l.jsx)("h4",{className:"mx-4 text-12 text-content-900 dark:text-white",children:N?(0,l.jsx)("abbr",{className:"no-underline",title:p.name,children:p.shortName}):p.name})]}):e.link?.matchLink?(0,l.jsxs)(s.N,{href:e.link?.matchLink||void 0,...(0,c.xU)().clickRecord({area:"link",labelArea:w,eventEntity:i.bO.WIDGET}),children:[(0,l.jsx)(f,{team:k,isLongName:N}),(0,l.jsx)(f,{team:p,isLongName:N})]}):(0,l.jsxs)("div",{children:[(0,l.jsx)(f,{team:k,isLongName:N}),(0,l.jsx)(f,{team:p,isLongName:N})]})),(0,l.jsx)("div",{className:"border-b border-navy-blue-500"}),(0,l.jsxs)("div",{className:"flex justify-between gap-6 px-8 py-4",children:[(0,l.jsxs)("div",{className:"flex gap-8",children:[(0,l.jsx)("h4",{className:"text-12 text-content-900 dark:text-white",children:a<=2&&x?(0,l.jsx)("span",{children:e.competition.name}):(0,l.jsx)("abbr",{className:"no-underline",title:e.competition.name,children:e.competition.shortName})}),(0,l.jsx)("time",{dateTime:e.startsAt,"aria-label":`Heure du match : ${r}`,className:d()(`${n?"hidden":"block"} text-12 font-semibold text-heading-900 lg:block dark:text-white`),children:r})]}),n&&(0,l.jsxs)("div",{className:"flex justify-center gap-6",children:["LIVE"===e.status&&(0,l.jsx)("span",{className:"text-12",role:"img","aria-label":"Live",children:"\uD83D\uDD34"}),(0,l.jsxs)(s.N,{href:e.link?.customLink,className:d()(` 8 group flex items-center justify-center hover:underline lg:gap-4 9 ${(0,u.h)({})} 10 `),...(0,c.xU)().clickRecord({area:"link",labelArea:e.link?.customLink||"",eventEntity:i.bO.WIDGET}),children:[(0,l.jsx)("h4",{className:"text-12 font-semibold text-navy-blue-500 dark:text-navy-blue-100",children:e.link.label}),(0,l.jsx)(h.I,{iconName:"ChevronRightIcon",className:"inline-block size-12 filter-(--filter-navy-blue-500) transition-all duration-300 group-hover:translate-x-2 dark:filter-(--filter-navy-blue-100)",ariaHidden:!0})]})]})]})]})};return(0,l.jsxs)(l.Fragment,{children:[x({desktop:!0}),x({desktop:!1})]})},N=({matches:e,index:t})=>{if(0===e.length)return null;let a=e.slice(0,4),o="Comp\xe9titions du jour",g=i.bO.WIDGET,b=(0,c._S)(g),f={...(0,r.T)((0,c.xU)().entity(g),(0,c.xU)().contextRecord({widget_id:n.ak,widget_order:t,widget_title:o,widget_source:i.Wz.EDITORIAL,widget_type:m.a.DAILY_LIVE_SCORE,widget_layout:n.f6}),b)};return(0,l.jsx)(x.fI,{as:x.rJ.SECTION,"aria-label":o,...f,children:(0,l.jsxs)(x.mc,{as:x.rJ.LIST,className:"flex flex-row bg-card-light shadow-md dark:bg-navy-blue-800",children:[a.map((e,t)=>{let s=t>1?"hidden lg:block":"",n="LIVE"===e.status;return(0,l.jsx)("li",{className:d()(` 11 flex-1 12 ${n&&"outline-2 -outline-offset-2 outline-red"} 13 ${s} 14 `),children:(0,l.jsx)(j,{match:e,isLast:t===a.length-1,numberOfMatches:a.length})},t)}),(0,l.jsx)("li",{className:"flex w-67 lg:w-151",children:(0,l.jsxs)(s.N,{href:"/sport/direct/score_center",className:d()(` 15 group 16 flex 17 w-full 18 flex-col 19 justify-center 20 gap-2 21 bg-navy-blue-500 22 text-right 23 text-white 24 lg:flex-row 25 lg:items-center 26 lg:gap-4 27 dark:bg-navy-blue-700 28 ${(0,u.h)({within:!0})} 29 `),...(0,c.xU)().clickRecord({area:"button",labelArea:"Scores en direct",eventEntity:i.bO.WIDGET}),children:[(0,l.jsxs)("span",{className:"self-center text-12 font-bold text-white lg:text-16",children:["Scores ",(0,l.jsx)("br",{}),"en direct"]}),(0,l.jsx)(h.I,{iconName:"ChevronRightIcon",className:"inline-block size-20 self-end filter-(--filter-white) transition-all duration-300 group-hover:translate-x-4 lg:self-ce
29nter",ariaHidden:!0})]})})]})})};var k=a(10648)}}]);
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.