PageSourceSearch

https://www.infobae.com/pf/dist/components/combinations/sport_module.chunk.js?d=4447&mxId=00000000

js infobae.com collected 2026-09-24 07:37:48 UTC 126,670 bytes, 1 lines download raw bytes

1"use strict";(this.webpackChunkFusion_components=this.webpackChunkFusion_components||[]).push([[734],{1861:function(e,t,r){r.r(t),r.d(t,{default:function(){return j}});var a=r(9894),s=r.n(a),n=(r(809),r(1445)),o=r(7382),i=r(7312),l=r(4766);var c=()=>(0,l.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",fill:"none",viewBox:"0 0 14 14",children:(0,l.jsx)("path",{fill:"#555",d:"M6.594 0h.818c.234.027.468.048.701.09 1.465.247 2.737.872 3.789 1.923 1.574 1.573 2.269 3.482 2.063 5.694-.138 1.498-.73 2.824-1.74 3.943-1.32 1.463-2.977 2.253-4.95 2.343a6.7 6.7 0 0 1-3.85-.976C1.614 11.904.501 10.297.11 8.202.062 7.94.034 7.672 0 7.405v-.817c.014-.097.02-.2.034-.296C.2 4.788.777 3.455 1.794 2.33A6.87 6.87 0 0 1 5.797.109c.261-.047.53-.075.798-.109m-.02 3.132v-.748c0-.076-.021-.124-.09-.158-.543-.289-1.08-.584-1.623-.873a.23.23 0 0 0-.165-.007 6 6 0 0 0-2.4 1.759c-.027.034-.048.103-.034.144q.186.908.392 1.814c.014.055.062.11.11.137.399.2.804.392 1.203.59.069.035.11.028.172-.013.784-.577 1.575-1.147 2.359-1.724a.23.23 0 0 0 .075-.158c.007-.247 0-.502 0-.749zm5.204.055s-.048-.075-.082-.116A6 6 0 0 0 9.35 1.353a.3.3 0 0 0-.186 0c-.543.282-1.072.577-1.615.859-.076.041-.104.082-.104.165v1.477c0 .089.028.137.097.192.783.563 1.56 1.133 2.344 1.704.069.048.117.054.193.013.385-.192.763-.384 1.155-.563.096-.048.13-.11.151-.2.076-.363.151-.72.234-1.078.055-.24.103-.48.158-.742zM2.386 5.983c-.481.529-.963 1.044-1.43 1.56a.2.2 0 0 0-.042.116c.11.982.434 1.89.99 2.714.028.04.09.082.138.082.585.034 1.176.069 1.76.09a.23.23 0 0 0 .158-.076c.248-.289.489-.577.73-.873.034-.041.047-.117.034-.165-.317-.906-.633-1.813-.956-2.713a.2.2 0 0 0-.096-.117c-.42-.213-.846-.419-1.286-.632zm4.627 4.074h-1.45c-.083 0-.131.02-.186.089q-.362.444-.736.88c-.055.06-.062.116-.034.198.165.502.323 1.003.488 1.505a.22.22 0 0 0 .124.123c1.072.323 2.145.364 3.231.083a.23.23 0 0 0 .152-.124c.26-.543.508-1.085.763-1.628.034-.075.027-.117-.02-.178-.248-.29-.49-.578-.737-.866-.034-.041-.117-.069-.172-.076H7.013zm4.614-4.074c-.433.213-.853.412-1.265.625a.3.3 0 0 0-.117.138c-.323.893-.64 1.792-.963 2.685-.027.07-.027.124.028.186.24.282.474.563.722.838.034.041.11.069.158.062.653-.124 1.306-.254 1.96-.378.096-.02.144-.062.192-.144a6.2 6.2 0 0 0 .701-1.958c.076-.412.076-.412-.213-.728l-.027-.028c-.392-.426-.784-.851-1.176-1.284z"})}),d=r(2237);var u=()=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",fill:"none",viewBox:"0 0 14 14",children:[(0,l.jsx)("path",{fill:"#fff",d:"M0 7a6.999 6.999 0 1 0 14 0c0-3.867-3.133-7-7-7C3.139 0-.006 3.139 0 7"}),(0,l.jsx)("path",{fill:"#555",d:"M0 7C0 3.139 3.144-.006 7 0c3.867 0 7 3.139 7 7s-3.139 7-7 7c-3.867 0-7-3.139-7-7m.655.243c.062 3.426 3.037 6.102 6.102 6.096.13-1.76.796-3.29 2.05-4.538s2.782-1.914 4.538-2.038C13.25 3.342 10.36.694 7.237.66c-.13 1.756-.79 3.28-2.032 4.528C3.952 6.44 2.427 7.113.655 7.238zm6.768 6.108c3.399-.22 5.792-3.026 5.916-5.922-3.02.073-5.82 2.755-5.916 5.922M.66 6.605c1.824-.153 3.32-.903 4.488-2.292C6.035 3.257 6.508 2.038 6.6.655 3.36.858.835 3.477.66 6.599z"})]});var p=()=>(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",fill:"none",viewBox:"0 0 14 14",children:[(0,l.jsx)("g",{clipPath:"url(#clip0_10255_547)",children:(0,l.jsx)("path",{fill:"#555",d:"M7 0a7.01 7.01 0 0 0-7 7c.35 9.275 13.65 9.27 14 0a7.007 7.007 0 0 0-7-7m0 1.167a5.84 5.84 0 0 1 5.425 3.697l-4.244.849a6.25 6.25 0 0 1-2.444 0L1.57 4.88A5.84 5.84 0 0 1 7 1.167M1.167 7.062l2.423.485a2.33 2.33 0 0 1 1.595 1.177l.364.673c.184.34.28.721.281 1.108v2.212a5.84 5.84 0 0 1-4.66-5.655zm7 5.655v-2.21c0-.386.097-.767.28-1.108l.365-.672a2.33 2.33 0 0 1 1.595-1.178l2.426-.487a5.84 5.84 0 0 1-4.666 5.655"})}),(0,l.jsx)("defs",{children:(0,l.jsx)("clipPath",{id:"clip0_10255_547",children:(0,l.jsx)("path",{fill:"#fff",d:"M0 0h14v14H0z"})})})]});const m=({sport:e={}})=>{const t={futbol:(0,l.jsx)(c,{}),tenis:(0,l.jsx)(u,{}),f1:(0,l.jsx)(p,{})},r=e=>{const{date:t,time:r}=(0,d.U$)(e);return(0,l.jsxs)("div",{className:"card-calendar-status",children:[(0,l.jsx)("p",{className:"card-calendar-status-date",children:t}),(0,l.jsxs)("p",{className:"card-calendar-status-time",children:[r,"hs"]})]})},a=e=>{const{date:t}=(0,d.U$)(e);return(0,l.jsxs)("div",{className:"card-calendar-status",children:[(0,l.jsx)("p",{className:"card-calendar-status-end",children:"FIN"}),(0,l.jsx)("p",{className:"card-calendar-status-date",children:t})]})},s=(e,t)=>{const s={Fixture:r(t),Played:a(t),Playing:(0,l.jsx)("div",{className:"card-calendar-status",children:(0,l.jsxs)("div",{className:"card-calendar-status-live minute-by-minute-marker minute-by-minute-marker-first-border-red",children:[(0,l.jsx)("div",{className:"minute-by-minute-marker-red",children:(0,l.jsx)("div",{className:"minute-by-minute-marker-bg-red"})}),(0,l.jsx)("p",{children:"EN VIVO"})]})}),"Pre-Carrera":r(t),default:r(t)};return s?.[e]||s.default},n=(e={},t)=>{const{nombreLocal:r="",logoLocal:a="",defaultLogo:s}=e||{},{nombreVisitante:n="",logoVisitante:o=""}=t||{};return(0,l.jsxs)("div",{className:"card-calendar-teams",children:[(0,l.jsxs)("div",{className:"card-calendar-team",children:[(0,l.jsx)("img",{className:"card-calendar-imgs",src:a,alt:"logo-local",onError:e=>{e.target.src=s}})," ",(0,l.jsx)("p",{children:r})]}),(0,l.jsxs)("div",{className:"card-calendar-team",children:[(0,l.jsx)("img",{className:"card-calendar-imgs",src:o,alt:"logo-local",onError:e=>{e.target.src=s}})," ",(0,l.jsx)("p",{children:n})]})]})},o=()=>{const{deporte:r="",estado:a="",fechaCompleta:o="",liga:i="",local:{codigo:c="",logo:u=""}={},visitante:{codigo:p="",logo:m=""}={}}=e||{},g={nombreLocal:c,logoLocal:u,defaultLogo:d.vR},h={nombreVisitante:p,logoVisitante:m,defaultLogo:d.vR};return(0,l.jsxs)("div",{className:`card-calendar soccer ${a?.toLowerCase()}`,children:[(0,l.jsxs)("div",{className:"card-calendar-title",children:[t[r]," ",(0,l.jsx)("p",{children:i})]}),(0,l.jsxs)("div",{className:"card-calendar-info",children:[n(g,h),s(a,o)]})]})},i=()=>{const{deporte:r="",estado:a="",fechaOficial:o="",torneo:{competencia:{nombre:i=""}={}}={},participantes:{a:[c]=[],b:[u]=[]}={}}=e||{},{nombre:p="Sin definir",logo:m=""}=c||{},{nombre:g="Sin definir",logo:h=""}=u||{},f={nombreLocal:p,logoLocal:m,defaultLogo:d.Uy},b={nombreVisitante:g,logoVisitante:h,defaultLogo:d.Uy};return(0,l.jsxs)("div",{className:`card-calendar tennis ${a?.toLowerCase()}`,children:[(0,l.jsxs)("div",{className:"card-calendar-title",children:[t[r]," ",(0,l.jsx)("p",{children:i})]}),(0,l.jsxs)("div",{className:"card-calendar-info",children:[n(f,b),s(a,o)]})]})},m=()=>{const{deporte:r="",estado:a="",inicio:n=""}=e||{};return(0,l.jsxs)("div",{className:`card-calendar tennis ${a?.toLowerCase()}`,children:[(0,l.jsxs)("div",{className:"card-calendar-title",children:[t[r]," ",(0,l.jsx)("p",{children:"F1"})]}),(0,l.jsxs)("div",{className:"card-calendar-info",children:[(0,l.jsx)("p",{className:"card-calendar-race",children:"Clasificación"}),s(a,n)]})]})};return(()=>{const{deporte:t="default"}=e||{},r={futbol:o(),tenis:i(),f1:m(),default:null};return r?.[t]||r.default})()};m.propTypes={sport:s().shape({})};var g=m,h=r(6222);function f(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?f(Object(r),!0).forEach(function(t){v(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):f(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function v(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const w=({data:e=[],customFields:t={}})=>{const{showTitleButton:r=!0,textTitleButton:a="Ir a ligas",urlTitleButton:s=""}=t||{},c=(0,i.O2)(),u=()=>(0===e.length?[]:e?.sort((e,t)=>(d.Ux?.[e.estado]||d.Ux.default)-(d.Ux?.[t.estado]||d.Ux.default))||[]).map((e,t)=>(0,l.jsx)(o.qr,{className:"calendar-swipper-item",children:(0,l.jsx)(g,{sport:e})},t)),p={freeMode:!0,loop:!1,modules:[n.Ij,n.Vx,n.Jq],navigation:{nextEl:`.next-sport-${c}`,prevEl:`.prev-sport-${c}`},slidesPerView:"auto",spaceBetween:8};return(0,l.jsxs)("div",{className:"all-sports-calendar-ctn",children:[(0,l.jsxs)("div",{className:"title-calendar-ctn",children:[(0,l.jsx)("p",{className:"title-calendar",children:"Calendario deportivo"}),r?(0,l.jsxs)("a",{className:"title-button",href:s,children:[a," ",(0,l.jsx)(h.i3,{})]}):null]}),(0,l.jsxs)(o.RC,b(b({className:"all-sports-calendar"},p),{},{children:[(0,l.jsx)("div",{className:"shadow-left"}),u(),(0,l.jsx)("div",{className:"shadow-right"})]}))]})};w.propTypes={customFields:s().shape({}),data:s().array};var j=w},7246:function(e,t,r){r.r(t),r.d(t,{default:function(){return A}});var a=r(809),s=r(9894),n=r.n(s),o=r(3704),i=r(8418),l=r(6222),c=r(8393),d=r(4508),u=r(4766);const p=({country:e="",customFields:t={},overrides:r={}})=>{if(!t||!Object.keys(t).length||!e)return null;const{adRedirectUrlArgentina:a=r.adRedirectUrlArgentina||"",adUrlArgentina:s=r.adUrlArgentina||"",adRedirectUrlColombia:n=r.adRedirectUrlColombia||"",adUrlColombia:o=r.adUrlColombia||"","adRedirectUrlEspaña":i=r.adRedirectUrlEspaña||"","adUrlEspaña":l=r.adUrlEspaña||"",adRedirectUrlMexico:c=r.adRedirectUrlMexico||"",adUrlMexico:d=r.adUrlMexico||"",adRedirectUrlPeru:p=r.adRedirectUrlPeru||"",adUrlPeru:m=r.adUrlPeru||"",adRedirectUrlMundo:g=r.adRedirectUrlMundo||"",adUrlMundo:h=r.adUrlMundo||""}=t||{},f={argentina:{adUrl:s,adRedirectUrl:a},colombia:{adUrl:o,adRedirectUrl:n},espana:{adUrl:l,adRedirectUrl:i},mexico:{adUrl:d,adRedirectUrl:c},peru:{adUrl:m,adRedirectUrl:p},america:{adUrl:h,adRedirectUrl:g}},{adRedirectUrl:b="",adUrl:v=""}=f[e.toLowerCase()]||f.america;if(!v.length||!b.length)return null;return v&&b?(0,u.jsx)("a",{href:b,className:"ad-logo",children:(0,u.jsx)("img",{src:v,alt:"ad logo",loading:"lazy",fetchPriority:"low",decoding:"async"})}):v?(0,u.jsx)("img",{className:"ad-logo",src:v,alt:"ad logo"}):null};p.propTypes={country:n().string,customFields:n().object,overrides:n().object};var m=p;const g=({label:e="VER AGENDA POR GRUPO",redirect:t="https://www.infobae.com/",showCalendarCta:r=!1})=>r&&t&&e?(0,u.jsx)("div",{className:"ctn-calendar-more-button",children:(0,u.jsxs)("a",{href:t,target:"_blank",rel:"noreferrer","aria-label":`${e} (abre en nueva pestaña)`,className:"calendar-more-button",children:[e,(0,u.jsx)(l.i3,{})]})}):null;g.propTypes={label:n().string,redirect:n().string,showCalendarCta:n().bool};var h=g;const f=({direction:e="",onClick:t=()=>{},disabled:r=!1})=>(0,u.jsx)(l.HK,{role:"button",tabIndex:0,"aria-label":"left"===e?"Previous group":"Next group",className:`calendar-arrow-${e}${r?"":" active"}`,onClick:t,onKeyDown:e=>{"Enter"!==e.key&&" "!==e.key||t()}});f.propTypes={direction:n().string,onClick:n().func,disabled:n().bool};const b=({calendarCtaLabel:e="",calendarCtaUrl:t="",country:r="",customFields:a={},dataGroup:s=[],fallbackShield:n="https://storage.googleapis.com/marcadores-opta/escudos/world/default.svg",groupLabel:o="Grupo",groupsLength:i=0,index:l=0,indiceGroup:p=0,isWorldCupTheme:g=!1,jornadaLabel:b="JORNADA",overrides:v={},setIndex:w=()=>{},showCalendarCta:j=!1,showCalendarStadiumName:y=!1,showTooltip:x=!1,teamShortName:N="iniciales",theme:O="",weeks:S=["1","2","3"]})=>{const{showLogoAd:C=v?.showLogoAd}=a||{},T=(e=[])=>{if(!e||!e.length)return null;const t=(0,c.gf)(e);if(!Array.isArray(t)||0===t.length)return null;const r=e?.[0]?.match?.group?.slice(-1)||"";return(0,u.jsxs)("div",{className:"calendar-group-header-main",children:[(0,u.jsxs)("p",{className:"calendar-group-name",children:[o," ",(0,u.jsx)("b",{className:"calendar-group-letter",children:r})]}),(0,u.jsx)("div",{className:"calendar-group-imgs",children:t.map((e,t)=>(0,u.jsx)("div",{className:"calendar-group-wrapper-img",children:(0,u.jsx)("img",{alt:"team",className:"calendar-group-img",onError:e=>{const t=e.currentTarget;t.onerror=null,t.src=n},src:e,loading:"lazy",decoding:"async",fetchPriority:"low"})},t))})]})},P=(e=[],t="")=>e.length?e.filter(e=>e?.match?.week===t).map((e,t)=>(0,u.jsx)(d.A,{data:e?.match,fallbackShield:n,showCalendarStadiumName:y,showTooltip:x,teamShortName:N,theme:O},t)):null,D=()=>{l>0&&w(e=>e-1)},A=()=>{l<i-1&&w(e=>e+1)};return(0,u.jsxs)("div",{className:"calendar-group",children:[s&&s.length&&Array.isArray(s)?(0,u.jsxs)("div",{className:"calendar-group-header",children:[(0,u.jsx)(f,{direction:"left",onClick:D,disabled:0===l}),T(s),(0,u.jsx)(f,{direction:"right",onClick:A,disabled:l===i-1})]}):null,((e=[])=>e.length&&Array.isArray(S)?(0,u.jsx)("div",{className:"calendar-stages",children:S.map(t=>(0,u.jsxs)("div",{className:"calendar-stage",children:[(0,u.jsxs)("h2",{className:"calendar-stage-title",children:[b," ",t]}),(0,u.jsx)("div",{className:"calendar-stage-matches",children:P(e,t)})]},t))}):null)(s),j?(0,u.jsx)(h,{calendarCtaLabel:e,calendarCtaUrl:t,showCalendarCta:j}):null,C&&g?(0,u.jsx)(m,{country:r,customFields:a,overrides:v}):null]},p)};b.propTypes={calendarCtaLabel:n().string,calendarCtaUrl:n().string,country:n().string,customFields:n().object,dataGroup:n().array,fallbackShield:n().string,groupLabel:n().string,groupsLength:n().number,index:n().number,indiceGroup:n().number,isWorldCupTheme:n().bool,jornadaLabel:n().string,overrides:n().object,setIndex:n().func,showCalendarCta:n().bool,showCalendarStadiumName:n().bool,showTooltip:n().bool,teamShortName:n().string,theme:n().string,weeks:n().arrayOf(n().string)};var v=b;const w=["Dom","Lun","Mar","Mie","Jue","Vie","Sab"],j=["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"],y=(e=[])=>{const t=[],r=[],a=new Set;
1return Array.isArray(e)&&(e.forEach(e=>{if(!(e&&e.date&&e.matches&&e.matches.length))return;const s=e.date,n=((e="")=>/^\d{4}-\d{2}-\d{2}T$/.test(e)?new Date(`${e}00:00:00Z`).getTime():new Date(e||"").getTime())(e.matches[0]?.fullDate);if(!n||"Invalid Date"===s)return;const o=new Date(n),i=o.getDate(),l=o.getMonth(),c=j[l],d=`${i}-${l}`;if(a.has(d))return;a.add(d);const u=w[o.getDay()];t.includes(c)||t.push(c),r.push({dayNumber:i,month:c,weekDay:u,date:s,months:j})}),r.sort((e,t)=>{const r=j.indexOf(e.month),a=j.indexOf(t.month);return r!==a?r-a:e.dayNumber-t.dayNumber}),t.sort((e,t)=>j.indexOf(e)-j.indexOf(t))),{getMonths:t,dataCalendar:r}},x=({calendarCtaLabel:e="VER AGENDA POR GRUPO",calendarCtaUrl:t="",country:r="",customFields:s={},data:n={},isWorldCupTheme:o=!1,overrides:i={},showCalendarCta:l=!1,showCalendarStadiumName:c=!1,showTooltip:p=!1,teamShortName:g="iniciales",theme:f=""})=>{const[b,v]=(0,a.useState)(""),[w,x]=(0,a.useState)(""),[N,O]=(0,a.useState)(""),[S,C]=(0,a.useState)(0),[T,P]=(0,a.useState)(0),[D,A]=(0,a.useState)(!1),[E,k]=(0,a.useState)(!1),U=(0,a.useRef)(null),L=(0,a.useRef)(null),R=(0,a.useRef)(!1),M=(0,a.useRef)(0),$=(0,a.useRef)(0),{getMonths:F,dataCalendar:V}=y(n),{showLogoAd:I=i?.showLogoAd||!1}=s||{},B=(e,t)=>b===e&&w===t?"selected":"",G=(e,t,r)=>{E||(v(e),x(t),O(r))},z=e=>e.touches&&e.touches.length>0?e.touches[0].clientX:e.clientX,q=e=>{const t=z(e);R.current=!0,M.current=t,$.current=S,k(!1),e.preventDefault&&e.preventDefault()},H=(0,a.useCallback)(e=>{if(!R.current)return;const t=z(e),r=M.current-t;Math.abs(r)>5&&(k(!0),e.preventDefault&&e.preventDefault(),C(()=>{const e=$.current+r;return e<0?.3*e:e>T?T+.3*(e-T):e}))},[T]),_=(0,a.useCallback)(()=>{R.current&&(R.current=!1,C(e=>e<0?0:e>T?T:e),k(!1))},[T]),W=e=>V.filter(t=>t.month===e).map((e,t)=>(0,u.jsxs)("div",{className:`slider-calendar-day ${B(e.month,e.dayNumber)}`,onClick:()=>G(e.month,e.dayNumber,e.date),onKeyDown:t=>{"Enter"!==t.key&&" "!==t.key||G(e.month,e.dayNumber,e.date)},role:"button",tabIndex:0,"aria-label":`Seleccionar ${e.dayNumber} de ${e.month}`,children:[(0,u.jsx)("p",{className:"slider-calendar-day-name",children:e.weekDay}),(0,u.jsx)("p",{className:"slider-calendar-day-number",children:e.dayNumber})]},`slider-day-${t}`)),Z=n.find(e=>e.date===N),J=()=>{if(!V||0===V.length)return;let e=new Date;const t={"Mundial 2026":{init:new Date(2026,5,10),end:new Date(2026,6,19)},"Mundial de clubes 2025":{init:new Date(2025,5,14),end:new Date(2025,6,14)}},{init:r,end:a}=t[f]||{};if(!r||!a)return;e<r?e=r:e>a&&(e=a);const s=parseInt(e.getDate(),10),n=e.getMonth(),o=((e,t)=>{const r=e=>V.find(r=>r.dayNumber===e&&r.month===t);let a=0,s=r(e);for(;!s&&e+a<31;)a+=1,s=r(e+a);for(a=0;!s&&e-a>0;)a+=1,s=r(e-a);return s})(s,j[n]),i=o?.month||F[0],l=o?.dayNumber||V[0]?.dayNumber,c=o?.date||V[0]?.date;v(i),x(l),O(c)};(0,a.useEffect)(()=>{n&&n.length>0&&J()},[n]),(0,a.useEffect)(()=>{if(U?.current&&L?.current){const e=L.current.scrollWidth-U.current.offsetWidth;P(e>0?e:0)}},[U,L,V,F]),(0,a.useEffect)(()=>(document.addEventListener("mousemove",H),document.addEventListener("mouseup",_),()=>{document.removeEventListener("mousemove",H),document.removeEventListener("mouseup",_)}),[H,_]);return(0,a.useEffect)(()=>{n&&n.length>0&&(J(),A(!0))},[n]),(0,a.useEffect)(()=>{if(D&&w&&b){const e=requestAnimationFrame(()=>{(()=>{if(!U.current||!L.current)return;const e=U.current.querySelector(".slider-calendar-day.selected");if(!e)return;const t=U.current.getBoundingClientRect(),r=e.getBoundingClientRect(),a=t.left+t.width/2,s=r.left+r.width/2,n=S+(s-a);C(Math.max(0,Math.min(T,n)))})()});return()=>cancelAnimationFrame(e)}},[w,b,D]),(0,a.useEffect)(()=>{n&&n.length>0&&A(!0)},[n]),(0,u.jsxs)("div",{className:"slider",children:[(0,u.jsx)("div",{className:"slider-ctn",children:(0,u.jsx)("div",{className:"slider-calendar-ctn",ref:U,children:(0,u.jsx)("button",{className:"slider-calendar-slide",ref:L,style:{transform:`translateX(-${S}px)`,transition:E?"none":"transform .25s cubic-bezier(.4, 0, .2, 1)",cursor:E?"grabbing":"grab",userSelect:"none",WebkitUserSelect:"none"},onTouchStart:q,onTouchMove:H,onTouchEnd:_,onMouseDown:q,onDragStart:e=>e.preventDefault(),children:F.map((e,t)=>(0,u.jsxs)("div",{className:"slider-calendar-month",children:[(0,u.jsxs)("div",{className:"slider-calendar-month-ctn",children:[(0,u.jsx)("p",{className:"slider-calendar-month-name",children:e}),(0,u.jsx)("div",{className:"slider-calendar-month-line"})]}),(0,u.jsx)("div",{className:"slider-calendar-days-ctn",children:W(e)})]},`slider-month-${t}`))})})}),(0,u.jsx)("div",{className:"slider-cards",children:Z?.matches?.map((e,t)=>(0,u.jsx)(d.A,{data:e,showCalendarStadiumName:c,showTooltip:p,teamShortName:g,theme:f},t))}),l?(0,u.jsx)(h,{calendarCtaLabel:e,calendarCtaUrl:t,showCalendarCta:l}):null,I&&o?(0,u.jsx)(m,{country:r,customFields:s,overrides:i}):null]})};x.propTypes={calendarCtaLabel:n().string,calendarCtaUrl:n().string,country:n().string,customFields:n().object,data:n().array,isWorldCupTheme:n().bool,overrides:n().object,showCalendarCta:n().bool,showCalendarStadiumName:n().bool,showTooltip:n().bool,teamShortName:n().string,theme:n().string,type:n().string};var N=x,O=r(9856),S=r(9525);function C(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?C(Object(r),!0).forEach(function(t){P(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):C(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function P(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const D=({customFields:e={},overrides:t={}})=>{const{calendarCtaLabel:r=t.calendarCtaLabel||"",calendarCtaUrl:s=t.calendarCtaUrl||"",calendarType:n=t.calendarType||"",detailsOfLeague:l=t.detailsOfLeague||{},generalTitle:c=t.generalTitle||"",groupedData:d=t.groupedData||[],groupedMatches:p=t.groupedMatches||[],initialGroup:m=t.initialGroup||null,logoAdUrl:g=t.logoAdUrl||"",logoAdUrlRedirect:h=t.logoAdUrlRedirect||"",redirectButtonText:f=t.redirectButtonText||"",redirectButtonUrl:b=t.redirectButtonUrl||"",showCalendarCta:w=t.showCalendarCta||!1,showCalendarStadiumName:j=t.showCalendarStadiumName||!1,showLogoAd:y=t.showLogoAd||!1,showLogoLiga:x=t.showLogoLiga||!1,showRedirectButton:C=t.showRedirectButton||!1,showTitle:P=t.showTitle||!1,showTooltip:D=t.showTooltip||!1,teamShortName:A=t.teamShortName||"iniciales",theme:E=t.theme||"Mundial de clubes 2025"}=e||{},k=t.isArticle||!1,U="Mundial 2026"===E,{timeZone:L=""}=(0,a.useContext)(O.A)||{},R=(0,S.GP)(L)||"",M=parseInt(m,10),$=Number.isNaN(M)?0:M-1,[F,V]=(0,a.useState)($),{ligaAsociada:I="",ligaAsociadaLogo:B="",logo:G="",nombre:z=""}=l||{},q=T(T({},l),{},{nombre:I||z||"",logo:B||G||""}),{settings:H={}}=(0,o.A)({componentSettings:`agenda-${n}`,ttlSelect:"1-year",url:"https://storage.googleapis.com/arc-buckets/sports/world-cup-config.json"}),{generalTitle:_="",logoAdUrl:W="",logoAdUrlRedirect:Z="",redirectButtonText:J="",redirectButtonUrl:Y="",showLogoAd:K=!1,showLogoLiga:X=!1,showRedirectButton:Q=!1,showTitle:ee=!1}=H||{},te={data:q,generalTitle:c||_,logoAdUrl:g||W,logoAdUrlRedirect:h||Z,redirectButtonText:f||J,redirectButtonUrl:b||Y,showLogoAd:!U&&(y??K),showLogoLiga:x??X,showRedirectButton:C??Q,showTitle:P??ee,theme:E},re=()=>{if(!p||!p.length)return null;const a=p[F]||[];if(!Array.isArray(a)||0===a.length)return(0,u.jsxs)("h3",{children:["Por favor, seleccioná un grupo dentro del rango permitido. El grupo seleccionado (",F+1,") no está disponible."]});const s={"Mundial de clubes 2025":{groupLabel:"Grupo",jornadaLabel:"JORNADA"},"Mundial 2026":{groupLabel:"Grupo",jornadaLabel:"FECHA"}};return(0,u.jsx)(v,{calendarCtaLabel:r,calendarCtaUrl:f,country:R,customFields:e,dataGroup:a,groupLabel:s[E]?.groupLabel||"Grupo",groupsLength:p.length,index:F,indiceGroup:F,isWorldCupTheme:U,jornadaLabel:s[E]?.jornadaLabel||"JORNADA",overrides:t,setIndex:V,showCalendarCta:w,showCalendarStadiumName:j,showTooltip:D,teamShortName:A,theme:E})},ae=U?" ctn-theme-mundial-2026":" ctn-theme-mundial-clubes-2025";(0,a.useEffect)(()=>{"undefined"!=typeof window&&U&&null===m&&(()=>{if(!(p&&p.length&&Array.isArray(p)&&U))return;const e=e=>e?e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase():"",t=e(R),r=p.findIndex((r=[])=>r&&r.length&&Array.isArray(r)?!!r.find(({match:r={}})=>{const a=e(r?.home?.phrase),s=e(r?.away?.phrase);return a.includes(t)||s.includes(t)}):V(0));V(-1!==r?r:0)})()},[R]);const se=k?" has-article":" not-article";return(0,u.jsxs)("div",{className:`ctn-slider-general-agenda${ae}${se}`,children:[P?(0,u.jsx)(i.A,T({},te)):null,"general"===n?d&&d.length?(0,u.jsx)(N,{calendarCtaLabel:r,calendarCtaUrl:s,country:R,customFields:e,data:d,isWorldCupTheme:U,overrides:t,showCalendarCta:w,showCalendarStadiumName:j,showTooltip:D,theme:E}):null:(0,u.jsx)("div",{className:"calendar",children:(0,u.jsx)("div",{className:"calendar-ctn",children:re()})})]})};D.propTypes={customFields:n().shape({calendarCtaLabel:n().string,calendarCtaUrl:n().string,detailsOfLeague:n().shape({}),generalTitle:n().string,groupedData:n().array,groupedMatches:n().array,initialGroup:n().number,logoAdUrl:n().string,logoAdUrlRedirect:n().string,logoUrl:n().string,redirectButtonText:n().string,redirectButtonUrl:n().string,
1showCalendarCta:n().bool,showCalendarStadiumName:n().bool,showLogoAd:n().bool,showLogoLiga:n().bool,showRedirectButton:n().bool,showTitle:n().string,showTooltip:n().bool,teamShortName:n().string,theme:n().string}),overrides:n().shape({})};var A=D},4508:function(e,t,r){r(809);var a=r(9894),s=r.n(a),n=r(8393),o=r(2237),i=r(213),l=r(4766);const c=({fallbackShield:e="",logo:t="",name:r="",showTooltip:a=!1,tooltip:s=""})=>(0,l.jsxs)("div",{className:"calendar-match-flag",children:[(0,l.jsx)("div",{className:"calendar-match-wrapper-img",children:(0,l.jsx)("img",{className:"calendar-match-img",src:t,alt:r,loading:"lazy",decoding:"async",fetchPriority:"low",onError:t=>{const r=t.currentTarget;r.onerror=null,r.src=e}})}),(0,l.jsxs)("div",{className:"text-team-sga",children:[r,a&&r?.length&&s?.length?(0,l.jsx)(i.A,{text:s}):null]})]});c.propTypes={fallbackShield:s().string,logo:s().string,name:s().string,showTooltip:s().bool,tooltip:s().string};const d=({data:e={},fallbackShield:t="https://storage.googleapis.com/marcadores-opta/escudos/world/default.svg",showCalendarStadiumName:r=!1,showTooltip:a=!1,teamShortName:s="iniciales",theme:i=""})=>{const{home:{code:d="",phrase:u="",goalsMatch:p=null,penal:m=null}={},away:{code:g="",phrase:h="",goalsMatch:f=null,penal:b=null}={},fullDate:v="",state:w="",estadio:j={}}=e||{},{nombreCorto:y=""}=j||{},x="Por Definir",N=()=>{const e=(e=null)=>null===e?null:(0,l.jsxs)("span",{className:"penalty-score",children:["(",e,")"]});return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)("div",{className:"calendar-match-result-home",children:[e(m),(0,l.jsx)("p",{children:p||0})]}),(0,l.jsx)("p",{children:"-"}),(0,l.jsxs)("div",{className:"calendar-match-result-away",children:[(0,l.jsx)("p",{children:f||0}),e(b)]})]})},O=()=>(0,l.jsxs)("div",{className:"calendar-match-info",children:[(0,l.jsx)("p",{className:"calendar-match-prev-date",children:o.P9[w]||""}),(0,l.jsx)("div",{className:"calendar-match-result",children:N()}),(0,l.jsx)("p",{className:"calendar-match-group",children:(0,n.Z_)(e)})]}),S={Suspended:O(),Played:O(),Playing:(0,l.jsxs)("div",{className:"calendar-match-info",children:[(0,l.jsxs)("div",{className:"calendar-match-live",children:[(0,l.jsx)("div",{className:"calendar-match-live-ring blinker-live-white",children:(0,l.jsx)("div",{className:"calendar-match-live-d
1ot blinker-live-red"})}),(0,l.jsx)("p",{className:"calendar-match-prev-date",children:"EN VIVO"})]}),(0,l.jsx)("div",{className:"calendar-match-result",children:N()}),(0,l.jsx)("p",{className:"calendar-match-group",children:(0,n.Z_)(e)})]}),NextMatch:(()=>{if(!v)return null;const t=()=>{const e=(0,n.$h)(v);return e?(0,l.jsxs)("b",{children:[e," hs"]}):""},r=()=>(0,l.jsx)("p",{className:"calendar-match-group",children:(0,n.Z_)(e)}),a=()=>(0,l.jsx)("div",{className:"calendar-match-prox-date",children:(0,l.jsxs)("p",{children:[(0,n.Lv)(v),(0,l.jsx)("br",{}),t()]})}),s={"Mundial 2026":()=>(0,l.jsxs)(l.Fragment,{children:[r(),a()]}),"Mundial de clubes 2025":()=>(0,l.jsxs)(l.Fragment,{children:[a(),r()]})};return(0,l.jsx)("div",{className:"calendar-match-info",children:s[i]()})})()},{awayCode:C="",homeCode:T=""}=((e=[],t=[])=>{let r="",a="";return r=0===e?.length?n.VT[u]||x:d,a=0===t?.length?n.VT[h]||x:g,{homeCode:r,awayCode:a}})(d,g)||{},P={home:{iniciales:T,"nombre largo":u},away:{iniciales:C,"nombre largo":h}};return(0,l.jsxs)("div",{className:"ctn-calendar-match",children:[(0,l.jsxs)("div",{className:"calendar-match",children:[(0,l.jsx)(c,{fallbackShield:t,logo:e?.home?.logo,name:P.home[s],tooltip:P.home["nombre largo"],showTooltip:a}),S[w]||S.NextMatch,(0,l.jsx)(c,{fallbackShield:t,logo:e?.away?.logo,name:P.away[s],tooltip:P.away["nombre largo"],showTooltip:a})]}),r?(0,l.jsx)("p",{className:"calendar-stadium",children:y}):null]})};d.propTypes={data:s().object.isRequired,fallbackShield:s().string,showCalendarStadiumName:s().bool,showTooltip:s().bool,teamShortName:s().string,theme:s().string},t.A=d},9318:function(e,t,r){r.r(t),r.d(t,{default:function(){return f}});var a=r(809),s=r(9894),n=r.n(s),o=r(2237),i=r(4766);const l=({team:e=[],score:t=[],type:r="Single",isWinner:a=null})=>{if(Array.isArray(e)&&0===e.length)return null;const{nombre:s="",logo:n=o.Uy}=e?.[0]||{},l=`bx-mt${!1===a?" bx-mt-loser":""}`;return(0,i.jsxs)("div",{className:l,children:[(0,i.jsxs)("div",{className:"bx-mt-player",children:[(0,i.jsx)("img",{className:"bx-mt-player-logo",src:n,alt:s,width:"16px",height:"16px",loading:"lazy",decoding:"async",onError:e=>{e.target.onerror=null,e.target.src=o.Uy}}),(0,i.jsx)("span",{className:"bx-mt-player-name",children:s})]}),(0,i.jsx)("div",{className:"bx-mt-score",children:"string"==typeof s&&"sin definir"===s.toLowerCase()?["-","-","-"].map((e,t)=>(0,i.jsx)("div",{className:"bx-mt-score-set",children:e},`${s}-${t}-${e}`)):Array.isArray(t)&&0!==t?.length?t.map((e={},t)=>{const{set:r="",tiebreak:a=""}=e||{};return(0,i.jsxs)("div",{className:"bx-mt-score-set",children:[r," ",(0,i.jsx)("span",{className:"bx-mt-score-tie-break",children:a})]},`${s}-${t}-${r}`)}):""})]})};l.propTypes={team:n().object,score:n().array,type:n().string,isWinner:n().oneOfType([n().bool,n().oneOf([null])])};var c=l,d=r(7312);const u=({match:e={},isPhaseFinal:t=!1})=>{const{ganador:r=null,tipo:a="Single",participantes:s={},puntajes:n={}}=e||{};if((0,d.RI)(e)||(0,d.RI)(s))return null;const o=Object.keys(s),l=r,u=`mt-container${t?" final-phase":""}${l?" has-winner":""}`;return(0,i.jsx)("div",{className:u,children:(()=>{if(2!==o?.length)return null;const[e,t]=o||[],d=l&&r===e,u=l&&r===t;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(c,{team:s[e],score:n[e],type:a,isWinner:d}),(0,i.jsx)(c,{team:s[t],score:n[t],type:a,isWinner:u})]})})()})};u.propTypes={match:n().object,isPhaseFinal:n().bool};var p=u,m=r(4935),g=r(225);const h=({phases:e={}})=>{if((0,d.RI)(e))return null;const[t,r]=(0,a.useState)(1),s=Object.keys(e),n=s?.reverse(),o=s?.length,[l,c]=(0,a.useState)(o),u=` current-round-${t} rounds-${o}`,h=1===t?" disabled":"",f=t===o||t===l?" disabled":"";return(0,a.useEffect)(()=>{if("undefined"==typeof window||"undefined"==typeof document)return;const e=document.querySelector(".draws-body");if(e){const t=e.offsetWidth;c(t>624&&t<933?o-1:t>=933?o-2:o)}},[o]),(0,i.jsxs)("div",{className:"draws-container",children:[(0,i.jsx)("button",{className:"draws-controls draws-controls-prev",onClick:()=>{1!==t&&r(e=>e-1)},children:(0,i.jsx)(g.A,{classes:`draws-controls-prev-arrow${h}`})}),(0,i.jsx)("div",{className:"draws-body",children:(0,i.jsx)("div",{className:`draws-wrapper${u}`,children:n.map((r,a)=>((e,r,a)=>{if(0===e?.length)return null;const s=r===o||"string"==typeof a&&"final"===a.toLowerCase(),n=`draws-round round-${r}${t===r?" current":""}${t+1===r?" next":""}${t-1===r?" prev":""}${t+2===r?" next2":""}${t+3===r?" next3":""}${t>r?" before":""}${r===o?" last":""}${r===o-1?" second-last":""}${r===o-2?" third-last":""}`;return(0,i.jsxs)("div",{className:n,children:[(0,i.jsx)("div",{className:"draws-round-title",children:a}),(0,i.jsx)("div",{className:"draws-round-content",children:e.map((e,t)=>(0,i.jsx)("div",{className:"draw-container",children:(0,i.jsx)(p,{match:e,isPhaseFinal:s})},`key-round${r}-draw${t}`))})]},`key-${a}-${r}`)})(e[r],a+1,r))})}),(0,i.jsx)("button",{className:"draws-controls draws-controls-next",onClick:()=>{t!==o&&t!==l&&r(e=>e+1)},children:(0,i.jsx)(m.A,{classes:`draws-controls-next-arrow${f}`})})]})};h.propTypes={phases:n().object};var f=h},7447:function(e,t,r){r.d(t,{A:function(){return v}});var a=r(9894),s=r.n(a),n=r(809),o=r(1564),i=r(6749),l=r(6222),c=r(5561),d=r(4766);const u={grupos:{id:"default",nombre:"Configuración Predeterminada",desktop:["POS","EQUIPOS","PTS","PJ","PG","PE","PP","GC","GF"],mobile:["POS","EQUIPOS","PTS","PJ","PG","PE","PP","GC","GF"]},observaciones:""},p=({fasedegrupos:e=[],priorityGroup:t="",showRanking:r=!1,showTableStatus:a=!0})=>{const s=e.flatMap(e=>(e.grupos||[]).filter(e=>
1e?.equipos?.length)),[i,p]=(0,n.useState)(()=>(0,c.fw)(t,s.length));if(!s.length)return null;const m=s[i],g=e?.find(e=>e?.grupos?.some(e=>e.nombre===m.nombre))?.detallesRanking||[],h=[{grupos:[m],detallesRanking:g}],f=i===s.length-1?" disabled":"",b=0===i?" disabled":"";return(0,d.jsxs)("div",{className:"ctn-league-datails ctn-mundial-groups",children:[(0,d.jsxs)("div",{className:"mundial-groups-header",children:[m?.nombre?(0,d.jsx)("h3",{className:"mundial-groups-title",children:m?.nombre||""}):null,(0,d.jsxs)("div",{className:"mundial-groups-nav",children:[(0,d.jsx)("button",{"aria-label":"Grupo anterior",className:`mundial-groups-nav-btn-left${b}`,disabled:0===i,onClick:()=>p(e=>e-1),children:(0,d.jsx)(l.i3,{})}),(0,d.jsx)("button",{"aria-label":"Grupo siguiente",className:`mundial-groups-nav-btn-right${f}`,disabled:i===s.length-1,onClick:()=>p(e=>e+1),children:(0,d.jsx)(l.i3,{})})]})]}),(0,d.jsx)(o.A,{config:u,grupos:h,isChain:!0,showRanking:r,showTableStatus:a})]})};p.propTypes={fasedegrupos:s().array,priorityGroup:s().string,showRanking:s().bool,showTableStatus:s().bool};var m=p;function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function f(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const b=({cardsSwiperConfig:e={},data:t={},isSlider:r=!1,latestNewsTitle:a="",priorityGroup:s="",showRanking:n=!0,showTableStatus:l=!0,theme:u="Default"})=>{const{fasedegrupos:p=[],stories:g=[],config:f={}}=t||{};if(!p.length||!Array.isArray(p))return(0,d.jsx)(d.Fragment,{});const b=p?.some(e=>e?.grupos?.length)||!1,v=p?.some(e=>e?.grupos?.some(e=>e?.equipos.length))||!1,w=p.length>0&&p[0].grupos.length>1,j=w?"GRUPOS":"POSICIONES";if(!p.length||!b||!v)return(0,d.jsx)(i.A,{stories:g,title:a});if("Mundial 2026"===u&&w)return(0,d.jsx)(m,{fasedegrupos:p,priorityGroup:s,showRanking:n,showTableStatus:l});const y=()=>{if(!r||!s)return e;const t=(0,c.iw)(p),a=(0,c.fw)(s,t);return h(h({},e),{},{initialSlide:a})},x=()=>(0,d.jsx)(o.A,{cardsSwiperConfig:y(),config:f,grupos:p,isChain:!0,isSlider:r,showRanking:n,showTableStatus:l});return r?(0,d.jsx)("div",{className:"ctn-league-datails",children:x()}):(0,d.jsxs)("div",{className:"ctn-league-datails",children:[(0,d.jsx)("h3",{className:"soccer-title",children:j}),x()]})};b.propTypes={cardsSwiperConfig:s().object,data:s().shape({fasedegrupos:s().array,stories:s().array}),isSlider:s().bool,latestNewsTitle:s().string,priorityGroup:s().string,showRanking:s().bool,showTableStatus:s().bool,showTableTitle:s().bool,theme:s().oneOf(["Default","Mundial 2026"])};var v=b},9532:function(e,t,r){r.r(t),r.d(t,{default:function(){return z}});var a=r(809),s=r.n(a),n=r(9894),o=r.n(n),i=r(1445),l=r(7382),c=r(7312),d=r(6749),u=r(3704),p=r(8522),m=r(3710),g=r(2237),h=r(3925),f=r(4766);function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function v(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach(function(t){w(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEac
1h(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function w(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const j=({data:e={},latestNewsTitle:t="",theme:r="Default",title:a="",typeContent:s="all"})=>{const{partidos:n=[],stories:o=[]}=e||{};if(!n.length||!Array.isArray(n))return(0,f.jsx)(d.A,{stories:o,title:t});return(0,f.jsxs)("div",{className:"ctn-calendar-datails",children:["fixture"===s?(0,f.jsx)("h3",{className:"soccer-title",children:a||"PRÓXIMOS PARTIDOS"}):"played"===s?(0,f.jsx)("h3",{className:"soccer-title",children:a||"ÚLTIMOS RESULTADOS"}):"today"===s?(0,f.jsxs)("h3",{className:"soccer-title-world-cup",children:[(0,f.jsx)(h.A,{}),a||"Juegan hoy"]}):(0,f.jsx)("h3",{className:"soccer-title",children:a||"AGENDA DEPORTIVA"}),(0,f.jsx)("div",{className:"sport-calendar-match-ctn",children:(()=>{if(0===n.length)return null;const e=(0,c.pC)(n);return(()=>{if("fixture"===s||"played"===s)return n;if("today"===s)return e;return[...n.filter(e=>"Playing"===e.estado),...n]})().map(e=>{const{fechaCompleta:t="",id:a=""}=e||{},n=new Date(t),o=n.getFullYear(),i=n.getMonth()+1,l=n.getDate(),c=`${String(n.getHours()).padStart(2,"0")}:${String(n.getMinutes()).padStart(2,"0")}:00`,d=`${l.toString().padStart(2,"0")}/${i.toString().padStart(2,"0")}/${o}`,{day:u,dayName:p,monthName:h}=(0,g.Rl)(d),b={day:u,dayName:p,monthName:h};return(0,f.jsx)(m.A,{date:b,match:v(v({},e),{},{localTime:c}),theme:r,typeContent:s},a)})})()})]})};j.propTypes={data:o().object,latestNewsTitle:o().string,theme:o().string,title:o().string,typeContent:o().string};var y=j,x=r(8418),N=r(7447),O=r(125),S=r(124);const C=({data:e={},latestNewsTitle:t="",theme:r="Default",title:a=""})=>{const{estadisticas:s=[],stories:n=[]}=e||{};if(!s.length)return(0,f.jsx)(d.A,{stories:n,title:t});const o=a||("Mundial 2026"===r?"Goleadores":"GOLEADORES"),i="Mundial 2026"===r?S.$z:S.zf,l=()=>{if(!i||0===i.length)return null;const e=i.map(e=>(0,f.jsx)("p",{className:"ctn-raking-header-item",children:e},`soccer-ranking-header-${e}`));return"Mundial 2026"===r?(0,f.jsx)(f.Fragment,{}):(0,f.jsx)("div",{className:"ctn-raking-header",children:e})},c=()=>s.map((e,t)=>{const{equipo:{logo:a="",nombre:s=""}={},goles:{valor:n=""},nombreCamiseta:o="",partidosJugados:{valor:l=""}={}}=e||{};return(0,f.jsxs)("div",{className:"ctn-raking-scorer",children:[i.includes("Jugador")?(0,f.jsx)("p",{className:"ctn-raking-scorer-item",children:o}):"",i.includes("Equipo")?"Mundial 2026"===r?"Mundial 2026"!==r?null:(0,f.jsxs)("div",{className:"ctn-raking-scorer-item",children:[(0,f.jsx)("img",{alt:"scorer-shield",className:"ctn-raking-scorer-shieled",decoding:"async",fetchPriority:"low",loading:"lazy",src:a}),(0,f.jsx)("p",{children:s})]}):(0,f.jsx)("div",{className:"ctn-raking-scorer-item",children:(0,f.jsx)("img",{alt:"scorer-shield",className:"ctn-raking-scorer-shieled",decoding:"async",fetchPriority:"low",loading:"lazy",src:a})}):null,i.includes("PJ")?(0,f.jsx)("p",{className:"ctn-raking-scorer-item",children:l}):"",(()=>{if(!i.includes("Goles"))return"";const e=0===t?" ctn-raking-scorer-first-item":"";return(0,f.jsx)("p",{className:`ctn-raking-scorer-item${e}`,children:n})})()]})});return(0,f.jsxs)("div",{className:"ctn-raking-datails",children:["Mundial 2026"===r?(0,f.jsxs)("h3",{className:"soccer-title-world-cup",children:[(0,f.jsx)("img",{alt:"Top Scorers Icon",className:"top-scorers-icon",decoding:"async",fetchPriority:"low",loading:"lazy",src:"https://infobae-static.infobae.com/assets/images/sports/soccer/icons/top-performers-ball-black.svg"}),o]}):(0,f.jsx)("h3",{className:"soccer-title",children:o}),(0,f.jsxs)("div",{className:"ctn-raking-container",children:[l(),c()]})]})};C.propTypes={data:o().object,latestNewsTitle:o().string,theme:o().string,title:o().string};var T=C,P=r(5561);const D=e=>e?.logos?.primario||P.VC,A=e=>P.GO[e]||e||"",E=e=>{if(!e)return"";const t=new Date(e);return Number.isNaN(t.getTime())?"":`${t.getDate()} ${P.KR[t.getMonth()]}`},k=e=>{const t=e?.golesDePenal;return t?(0,f.jsx)("span",{className:"card-road-penal",children:`(${t})`}):null},U=e=>{const t=e?.goles??"-";return(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("span",{className:"card-road-goals",children:t}),k(e)]})},L=({match:e={}})=>{const{fechaCompleta:t="",etapa:r="",local:a={},visitante:s={}}=e||{},n=((e={})=>{const{ganador:t="",local:r={},visitante:a={}}=e||{};if("home"===t)return"visitor";if("away"===t)return"local";if("draw"===t)return null;const s=e=>(Number(e?.goles)||0)+(Number(e?.golesDePenal)||0),n=s(r),o=s(a);return n===o?null:n<o?"local":"visitor"})(e),o=(e,t)=>{const r=t===n?" lose":"";return(0,f.jsxs)("div",{className:`card-road-team-${t}${r}`,children:[(0,f.jsxs)("div",{className:"road-team",children:[(0,f.jsx)("img",{alt:e?.nombre||e?.codigo||"",className:"card-road-flag",loading:"lazy",onError:e=>{e.target.src=P.VC},src:D(e)}),(0,f.jsx)("p",{className:"card-road-team-code",children:e?.codigo||""})]}),(0,f.jsx)("div",{className:"card-road-score",children:U(e)})]})};return(0,f.jsxs)("div",{className:"card-road",children:[(0,f.jsxs)("div",{className:"card-road-header",children:[(0,f.jsx)("p",{className:"card-road-date",children:E(t)}),"-",(0,f.jsx)("p",{className:"card-road-stage",children:A(r)})]}),(0,f.jsxs)("div",{className:"card-road-body",children:[o(a,"local"),(0,f.jsx)("div",{className:"card-road-separator"}),o(s,"visitor")]})]})};L.propTypes={match:o().object};var R=L;const M=e=>e?.logos?.secundario||e?.logos?.primario||P.VC,$=({data:e={},selectedMatchId:t="",title:r=""})=>{const n=r||"Camino a la final",{caminoFinal:o=[]}=e||{},{etapa:i="",local:l={},visitante:c={},caminoLocal:d=[],caminoVisitante:u=[]}=((e,t)=>Array.isArray(e)&&e.length?e.find(e=>e?.id===t)||e[0]:null)(o,t),p=(0,a.useRef)(null),m=e=>((e=[])=>[...e].sort((e,t)=>
1new Date(t.fechaCompleta).getTime()-new Date(e.fechaCompleta).getTime()))(e).map(e=>{const t=((e={})=>`${e.fechaCompleta}-${e?.local?.codigo}-${e?.visitante?.codigo}`)(e);return(0,f.jsxs)(s().Fragment,{children:[(0,f.jsx)(R,{match:e}),(0,f.jsx)("div",{className:"card-road-card-separator"})]},t)});return(0,f.jsxs)("div",{className:"ctn-road-to-final",children:[(0,f.jsxs)("div",{className:"road-to-final-top",children:[(0,f.jsxs)("div",{className:"road-title",children:[(0,f.jsx)("img",{alt:"Icono camino a la final",className:"road-to-final-icon",decoding:"async",loading:"lazy",src:P.uH}),(0,f.jsx)("h3",{className:"road-to-final-title",children:n})]}),(0,f.jsx)("p",{className:"road-to-final-section",children:i})]}),(0,f.jsxs)("div",{className:"teams-table-title",children:[(0,f.jsxs)("div",{className:"local-team",children:[(0,f.jsx)("img",{alt:l.nombre,className:"road-to-final-flag",loading:"lazy",onError:e=>{e.target.src=P.VC},src:M(l)}),(0,f.jsx)("p",{className:"road-to-final-team-name",children:l.codigo})]}),(0,f.jsxs)("div",{className:"visitor-team",children:[(0,f.jsx)("p",{className:"road-to-final-team-name",children:c.codigo}),(0,f.jsx)("img",{alt:c.nombre,className:"road-to-final-flag",loading:"lazy",onError:e=>{e.target.src=P.VC},src:M(c)})]})]}),(0,f.jsxs)("div",{className:"road-to-final-table-body",ref:p,children:[(0,f.jsx)("div",{className:"column-local",children:m(d)}),(0,f.jsx)("div",{className:"column-visitor",children:m(u)})]})]})};$.propTypes={data:o().object,selectedMatchId:o().string,title:o().string};var F=$;function V(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function I(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?V(Object(r),!0).forEach(function(t){B(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):V(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function B(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const G=e=>{const{overrides:t={}}=e||{},r=t.blockOne||"",s=t.blockThree||"",n=t.blockTwo||"",o=t.caminoFinal||[],m=t.roadToFinalMatchId||"",g=t.config||{},h=(0,P.M3)(t?.topPerformers)||{},b=t.fasedegrupos||[],v=t.liga||{},w=t.partidosHoy||[],j=t.partidosJugados||[],S=t.partidosProximos||[],C=t.stories||[],D=S||t.partidos,A=t.priorityGroup||"",E=t.showRanking??!1,k=t.theme||"Default",U=t.generalTitle||"",L=t.logoAdUrl||"",R=t.logoAdUrlRedirect||"",M=t.redirectButtonText||"",$=t.redirectButtonUrl||"",V=t.showArrowIcon||!1,B=t.showLeftIcon||!0,G=t.showLogoAd||!1,z=t.showLogoLiga||!1,q=t.showRedirectButton||!1,H=t.showTitle||!1,_={latestNews:t.titleLatestNews||"",latestResults:t.titleLatestResults||"",roadToFinal:t.titleRoadTofinal||"",sportsAgenda:t.titleSportsAgenda||"",todayMatches:t.titleTodayMatches||"",topScorers:t.titleTopScorers||"",upcomingMatches:t.titleUpcomingMatches||""},W={Default:"","Mundial 2026":" theme-mundial-2026"}[k]??"",{settings:Z={}}=(0,u.A)({componentSettings:"soccer-event-summary",ttlSelect:"1-year",url:"https://storage.googleapis.com/arc-buckets/sports/world-cup-config.json"}),J=(0,a.useRef)(null),[Y,K]=(0,a.useState)(!1),[X,Q]=(0,a.useState)(!0),[ee,te]=(0,a.useState)(!1),{isMobile:re}=(0,p.A)(),ae=(0,c.O2)(),se=e=>"Sports agenda"===e?(0,f.jsx)(y,{data:{partidos:D,stories:C},latestNewsTitle:_.latestNews,theme:k,title:_.sportsAgenda,typeContent:"all"}):"Top scorers"===e?(0,f.jsx)(T,{data:{estadisticas:h,stories:C},latestNewsTitle:_.latestNews,theme:k,title:_.topScorers}):"Soccer Table"===e?(0,f.jsx)(O.default,{data:{fasedegrupos:b,stories:C,config:g},latestNewsTitle:_.latestNews,priorityGroup:A,showRanking:E,theme:k,withWrapper:!1}):"Latest news"===e?(0,f.jsx)(d.A,{stories:C,title:_.latestNews}):"Upcoming matches"===e?(0,f.jsx)(y,{data:{partidos:S,stories:C},latestNewsTitle:_.latestNews,theme:k,title:_.upcomingMatches,typeContent:"fixture"}):"Latest results"===e?(0,f.jsx)(y,{data:{partidos:j,stories:C},latestNewsTitle:_.latestNews,theme:k,title:_.latestResults,typeContent:"played"}):"Today's Matches"===e?(0,f.jsx)(y,{data:{partidos:w,stories:C},latestNewsTitle:_.latestNews,theme:k,title:_.todayMatches,typeContent:"today"}):"Road to the final"===e?(0,f.jsx)(F,{data:{caminoFinal:o},selectedMatchId:m,theme:k,title:_.roadToFinal}):(0,f.jsx)(f.Fragment,{}
1),ne={autoplay:!1,a11y:{prevSlideMessage:"Diapositiva anterior",nextSlideMessage:"Diapositiva siguiente"},modules:[i.Vx,i.Jq,i.U1],navigation:{nextEl:`.next-slider-bfc-${ae}`,prevEl:`.prev-slider-bfc-${ae}`},slidesPerView:"auto",freeMode:{enabled:!0,sticky:!1,momentumBounce:!1,momentumVelocityRatio:.1,minimumVelocity:.02},watchOverflow:!0,resistance:!0,resistanceRatio:0,touchRatio:1,touchAngle:45,simulateTouch:!0,threshold:5,loop:!1,allowTouchMove:!0},oe={data:v,generalTitle:U||Z?.generalTitle,logoAdUrl:L,logoAdUrlRedirect:R,redirectButtonText:M||Z?.redirectButtonText,redirectButtonUrl:$||Z?.redirectButtonUrl,showArrowIcon:V??Z?.showArrowIcon,showLeftIcon:B??Z?.showLeftIcon,showLogoAd:G??Z?.showLogoAd,showLogoLiga:z??Z?.showLogoLiga,showRedirectButton:q??Z?.showRedirectButton,showTitle:H??Z?.showTitle,showWorldCup2026TitleTabs:!1,theme:k??Z?.theme},ie=()=>(0,f.jsx)(x.A,I({},oe)),le=()=>(0,f.jsxs)(f.Fragment,{children:[(0,f.jsx)("div",{className:`block-one${W}`,children:"Sports agenda"===r||"Top scorers"===r||"Soccer Table"===r||"Latest news"===r||"Upcoming matches"===r||"Latest results"===r||"Today's Matches"===r||"Road to the final"===r?se(r):(0,f.jsx)(N.A,{data:{fasedegrupos:b,stories:C,config:g},latestNewsTitle:_.latestNews,showRanking:E,theme:k})}),(0,f.jsx)("div",{className:`block-two${W}`,children:"Sports agenda"===n||"Top scorers"===n||"Soccer Table"===n||"Latest news"===n||"Upcoming matches"===n||"Latest results"===n||"Today's Matches"===n||"Road to the final"===n?se(n):(0,f.jsx)(y,{data:{partidos:D,stories:C},latestNewsTitle:_.latestNews,theme:k,title:_.sportsAgenda})}),(0,f.jsx)("div",{className:`block-three${W}`,children:"Sports agenda"===s||"Top scorers"===s||"Soccer Table"===s||"Latest news"===s||"Upcoming matches"===s||"Latest results"===s||"Today's Matches"===s||"Road to the final"===s?se(s):(0,f.jsx)(T,{data:{estadisticas:h,stories:C},latestNewsTitle:_.latestNews,theme:k,title:_.topScorers})})]}),ce=e=>{Q(e.isBeginning),te(e.isEnd)};(0,a.useEffect)(()=>{if(!J?.current||re||"undefined"==typeof window)return;const e=()=>{try{const e=J.current,t=e.querySelector(".block-three");if(!t)return;const r=e.getBoundingClientRect(),a=t.getBoundingClientRect().right>r.right;K(a)}catch(e){console.log("Error en checkOverflow de SoccerEventSummary:",e?.message||e||"Error no especificado")}},t=new ResizeObserver(e);return t.observe(J.current),e(),()=>{try{t.disconnect()}catch(e){console.log("Error en useEffect de SoccerEventSummary:",e?.message||e||"Error no especificado")}}},[re]);const de=`ctn-soccer-leagues-events${W}`;return(0,f.jsx)("div",{className:de,children:!Y||re?(0,f.jsxs)(f.Fragment,{children:[ie(),(0,f.jsx)("div",{className:"ctn-soccer-static",ref:J,children:le()})]}):Y&&!re?(0,f.jsxs)(f.Fragment,{children:[ie(),(0,f.jsx)("div",{ref:J,className:"soccer-swiper-ctn",children:(0,f.jsxs)(l.RC,I(I({},ne),{},{onSwiper:ce,onProgress:ce,children:[Y&&!X&&(0,f.jsx)("div",{className:"shadow-left"}),(0,f.jsx)(l.qr,{style:{width:"auto"},children:le()}),Y&&!ee&&(0,f.jsx)("div",{className:"shadow-right"})]}))})]}):(0,f.jsx)(f.Fragment,{})})};G.propTypes={overrides:o().shape({})};var z=G},6418:function(e,t,r){r.r(t);var a=r(809),s=r(3993),n=r(9894),o=r.n(n),i=r(3673),l=r(7168),c=r(2072),d=r(7055),u=r(2237),p=r(3717),m=r(4766);const g=e=>{const{customFields:t={},overrides:r={}}=e,{showEventViewSlider:n=r.showEventViewSlider,showCategoryFilter:o=r.showCategoryFilter,showCalendar:g=r.showCalendar,showDatesSwiper:h=r.showDatesSwiper,showNews:f=r.showNews,sport:b=r.sport}=t,v=r.storiesData||[],w=r.dropdown1||[],j=r.dropdown2||{},y=r.tabs||[],x=r.deportes||[],N=r.ligas||[],[O,S]=(0,a.useState)(!1),C={data:r.data||{},showCalendar:g,showDatesSwiper:h},T=()=>{if(!o)return null;const{nombre:e="Competencias",id:t="",url:r="",devUrl:a="http://localhost/pf/deportes/resultados/tenis/?_website=infobae",stagingUrl:i="https://infobae-infobae-staging.web.arc-cdn.net/deportes/resultados/tenis/",sandboxUrl:l=""}=w||{},c={label:(0,m.jsx)("span",{className:"option-category",children:e}),value:w?.id,name:w?.nombre,id:t,url:(0,u.gn)(s.ENVIRONMENT,r,a,i,l)},{nombre:p="",id:g="",url:h="",devUrl:f="http://localhost/pf/deportes/resultados/tenis/?_website=infobae",stagingUrl:v="https://infobae-infobae-staging.web.arc-cdn.net/deportes/resultados/tenis/",sandboxUrl:O=""}=j||{},S={label:(0,m.jsx)("span",{children:p}),value:g,name:p,id:g,url:(0,u.gn)(s.ENVIRONMENT,h,f,v,O)},C={sportSlug:b,showLeagueSlider:!0,isLoading:!1,showEventViewSlider:n,dataSliderEvents:y,ligas:N,defaultCategoryDropdownOption:c,defaultFilterDropdownOption:S,temporadas:x||[],data:{ligas:N,temporadas:x}};return(0,m.jsx)("div",{className:"sport-leagues-header-title",children:(0,m.jsx)(d.default,{overrides:C})})},P=()=>{if(0===v.length||!f)return null;const e=O?"-show-all":"-show-none",t="sports-calendar-news",r={stories:v};return(0,m.jsxs)("div",{className:`${t} ${t}${e}`,children:[(0,m.jsx)(i.default,{overrides:r}),(0,m.jsxs)("button",{className:"sports-calendar-news-button",onClick:()=>S(e=>!e),children:[O?"Mostrar menos":"Ver todo",O?(0,m.jsx)(l.A,{}):(0,m.jsx)(c.A,{})]})]})};return(0,m.jsx)("div",{className:"ctn-tenis-global-calendar",children:(0,m.jsxs)(m.Fragment,{children:[T(),(0,m.jsx)(p.A,{overrides:C}),P()]})})};g.propTypes={overrides:o().shape({}),customFields:o().shape({showEventViewSlider:o().bool.tag({defaultValue:!0,name:"Show event view slider"}),showCategoryFilter:o().bool.tag({name:"Show category filter",defaultValue:!0}),showCalendar:o().bool.tag({defaultValue:!0,name:"Show calendar"}
1),showDatesSwiper:o().bool.tag({defaultValue:!0,name:"Show dates swiper"}),showNews:o().bool.tag({defaultValue:!1,name:"Show news"}),sport:o().string.tag({defaultValue:"tenis",name:"Sport name"}),contentFeedLimit:o().number.tag({defaultValue:24,min:24,name:"Content feed limit for news"})})},t.default=g},5356:function(e,t,r){r.r(t);r(809);var a=r(9894),s=r.n(a),n=r(4508),o=r(8418),i=r(4766);function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function c(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach(function(t){d(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function d(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const u=({overrides:e={},matches:t=[],detailsOfLeague:r={}})=>{const{generalTitle:a=e.generalTitle||"",logoAdUrl:s=e.logoAdUrl||"",logoAdUrlRedirect:l=e.logoAdUrlRedirect||"",redirectButtonText:d=e.buttonText||"",showFeature:u=e.showFeature||!0,showLogoAd:p=e.showLogoAd||!1,showLogoLiga:m=e.showLogoLiga||!0,showRedirectButton:g=e.showRedirectButton||!1,showTitle:h=e.showTitle||!0}=e||{};if(!u)return null;const f=new Date,b=f.getFullYear(),v=`${String(f.getMonth()+1).padStart(2,"0")}/${String(f.getDate()).padStart(2,"0")}/${b}`,w=t.find(e=>e.date>=v),j=c(c({},r),{},{nombre:r?.ligaAsociada||"",logo:r?.ligaAsociadaLogo||""});return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(o.A,{data:j,generalTitle:a,logoAdUrl:s,logoAdUrlRedirect:l,redirectButtonText:d,showLogoAd:p,showLogoLiga:m,showRedirectButton:g,showTitle:h}),w?.matches?.map((e,t)=>(0,i.jsx)(n.A,{data:e},t))]})};u.propTypes={overrides:s().shape({}),customFields:s().shape({showFeature:s().bool.tag({defaultValue:!0,name:"Show Feature"}),showTitle:s().bool.tag({defaultValue:!0,name:"Show Title"}),showLogoLiga:s().bool.tag({defaultValue:!0,name:"Show League Logo"}),showLogoAd:s().bool.tag({defaultValue:!1,name:"Show Ad Logo"}),showRedirectButton:s().bool.tag({defaultValue:!1,name:"Show Redirect Button"}),generalTitle:s().string.tag({name:"General Title"}),logoAdUrl:s().string.tag({name:"Ad Logo URL"}),logoAdUrlRedirect:s().string.tag({name:"Ad Logo URL Redirect"}),redirectButtonText:s().string.tag({name:"Button Text"}),idLeague:s().string.tag({name:"Id League",formPlugin:"LeaguesIdSoccerPlugin"})}),matches:s().shape({}),detailsOfLeague:s().shape({})},t.default=u},9301:function(e,t,r){r.r(t),r.d(t,{default:function(){return k}});var a=r(809),s=r(9894),n=r.n(s),o=r(2469),i=r(3068),l=r(5520),c=r(4766);const d=(e=[])=>Array.isArray(e)?e.filter(e=>"string"==typeof e&&e.trim()).map(e=>({key:e.toLowerCase().replace(/\s+/g,"_"),label:e})):[],u=(e,t,r,a,s,n,o,i,d)=>{if(!t||"object"!=typeof t)return null;if(!e)return t[r];return(0,c.jsxs)(c.Fragment,{children:[i?(0,c.jsx)("img",{className:"pos-tm-shield",src:(0,l.Gv)(t,d)||a,alt:t.nombre,loading:"lazy",onError:e=>{e.target.src=a,e.target.onerror=null}}):null,(0,c.jsx)("span",{className:"",children:(()=>{const{showCodigoDesktop:e=!0,showNombreCortoDesktop:r=!1,showCodigoMobile:a=!0,showNombreCortoMobile:i=!1}=s||{};return n?e?t.codigo:r?t.nombreCorto:t.nombre:o?a?t.codigo:i?t.nombreCorto:t.nombre:t?.codigo||t?.nombreCorto||t?.nombre||""})()})]})};var p=r(7312);function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function g(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const h=({columns:e=[],rows:t=[],limit:r=0,className:a={},columnWidths:s={},showRankingDetails:n=!0})=>{if(!Array.isArray(e)||!Array.isArray(t))return null;const o=t.slice(0,r>0?r:t.length),l=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?m(Object(r),!0).forEach(function(t){g(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},{cell:"table-cell",container:"table-container-default",header:"table-header",headerCell:"table-header-cell",ranking:"table-ranking-cell",row:"table-row"}),d=()=>({display:"grid",gridTemplateColumns:e.map(e=>{const t=s[e.key]??i.nm[e.key];return"string"==typeof t?t:"1fr"}).join(" ")}),u=t=>e.map(e=>{if("pos"===e.key){const{positionNumber:r="-",color:a="",hasRaking:s=!1}=t[e.key]||{},o=s&&n,i=o?{backgroundColor:(0,p.qh)(a,.05),border:`1px solid ${a}`}:{},d=o?` ${l.ranking}`:"";return(0,c.jsx)("div",{style:i,className:`${l.cell}${d}`,children:r??"-"},e.key)}return(0,c.jsx)("div",{className:l.cell,children:t[e.key]??"-"},e.key)});return(0,c.jsxs)("div",{className:`${l.container} ${a}`,children:[(0,c.jsx)("div",{className:l.header,style:d(),children:e.map(e=>(0,c.jsx)("div",{className:l.headerCell,children:e.label},e.key))}),o.map((t,r)=>e.length?(0,c.jsx)("div",{className:`${l.row} ${r%2==0?"even":""}`,style:d(),children:u(t)},r):null)]})};h.propTypes={columns:n().array,rows:n().array,limit:n().number,hiddenRows:n().array,device:n().string,className:n().object,columnWidths:n().object,showRankingDetails:n().bool};var f=r(3925);const b=({customUrlButtonAgenda:e="",groupName:t="",isThirdPlaceRanking:r=!1,showTitleTable:a=!0,tableTitle:s="",theme:n=i.a0.DEFAULT})=>{const o=s||t;if(!a||!o)return null;if(n===i.a0.WORLDCUP){const t=()=>r?null:(0,c.jsx)("a",{href:e,className:"pos-tbl-wc-shd-button",children:(0,c.jsx)("div",{className:"pos-tbl-wc-shd-button-icon-left",children:(0,c.jsx)(f.A,{})})});return(0,c.jsxs)("div",{className:"pos-tbl-wc-shd",children:[(0,c.jsx)("span",{className:"pos-tbl-wc-shd-text",children:o}),t()]})}return(0,c.jsxs)("div",{className:"pos-tbl-shd",children:[(0,c.jsx)("span",{className:"pos-tbl-shd-text",children:o}),(0,c.jsx)("div",{className:"pos-tbl-shd-divider"})]})};b.propTypes={customTextButtonAgenda:n().string,customUrlButtonAgenda:n().string,groupName:n().string,isThirdPlaceRanking:n().bool,showTitleTable:n().bool,tableTitle:n().string,theme:n().string};var v=b;const w=({customTextButtonAgenda:e="",customUrlButtonAgenda:t="",data:r=[],errorIcon:s="",header:n=[],ignoreLeaderboard:o=[],isDesktop:l=!1,isGrouped:p=!1,isMobile:m=!1,isPageView:g=!1,isTablet:f=!1,maxTableRows:b=0,nameDisplayConfig:w={},showTeamShield:j=!0,useSecondaryFlag:y=!1,showTitleTable:x=!0,tableTitle:N="",theme:O="",showRankingDetails:S=!0})=>{const C=(e,t)=>((e=[],t=[],r,a={},s=!0,n=!1,o=!0,l=!1)=>{const c=Object.entries(i.gS).reduce((e,[t,r])=>(e[r]=t,e),{});return e.map(e=>{const d={};return Array.isArray(t)?(t.forEach(({key:t})=>{const p=c[t];if("pos"===t){const c=p&&Object.prototype.hasOwnProperty.call(e,p)?u(i.h9.includes(p),e,p,r,a,s,n,o,l):"";d[t]={positionNumber:c,hasRaking:""!==e.estadoRanking,color:e.colorEstadoRanking||""}}else d[t]=p&&Object.prototype.hasOwnProperty.call(e,p)?u(i.h9.includes(p),e,p,r,a,s,n,o,l):""}),d):d})})(e,t,s,w,l,f||m,j,y),T=(e,t)=>(0,c.jsx)(h,{className:i.F6[O],columnWidths:i.nm,columns:e,limit:b,rows:t,showRankingDetails:S});return(()=>{if(!r?.length)return null;if(p)return((a=[])=>{if(!r?.length||!a?.length||!Array.isArray(a))return null;const s=d(n);return o.includes(a.id)&&!g?null:a.map((r,a)=>r.grupos.map((r,n)=>{const o=r.nombre===i.bi;return(0,c.jsxs)("div",{className:"pos-tbl-group",children:[(0,c.jsx)(v,{groupName:r?.nombre,showTitleTable:x,tableTitle:N,theme:O,customTextButtonAgenda:e,customUrlButtonAgenda:t,isThirdPlaceRanking:o}),T(s,C(r?.equipos,s))]},`${a}-${n}`)}))})(r);const s=r[0]?.grupos[0]?.equipos||[],l=d(n);return(0,c.jsxs)(a.Fragment,{children:[(0,c.jsx)(v,{showTitleTable:x,tableTitle:N,theme:O}),T(l,C(s,l))]})})()};w.propTypes={customTextButtonAgenda:n().string,customUrlButtonAgenda:n().string,data:n().array,errorIcon:n().string,header:n().arrayOf(n().string),ignoreLeaderboard:n().array,isDesktop:n().bool,isGrouped:n().bool,isMobile:n().bool,isPageView:n().bool,isTablet:n().bool,maxTableRows:n().number,nameDisplayConfig:n().shape({}),showTeamShield:n().bool,useSecondaryFlag:n().bool,showTitleTable:n().bool,tableTitle:n().string,theme:n().string,
1showRankingDetails:n().bool};var j=w,y=r(4321),x=r(8522);function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function O(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach(function(t){S(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function S(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var C=({customFields:e={},overrides:t={}})=>{const{seasonId:r=t.seasonId||"",showPositionsTable:s=t.showPositionsTable??!0,showTitleTable:n=t.showTitleTable??!0,sport:o=t.sport||"soccer"}=e,c=t?.teamNameDisplayTypeMobile,d=t?.teamNameDisplayTypeDesktop,u=t.tableTitle||"",p=t.data||[],m=t.showThirdPlaceRanking??!0,g=t.config||{},h=t.ignoreLeaderboard||[],f=t.isPageView??!1,b=t.isGrouped??!1,v=t.maxTableRows||0,w=t.showTeamShield??!0,j=t.useSecondaryFlag??!1,N=t.customTextButtonAgenda||"Ver Agenda",S=t.customUrlButtonAgenda||"https://www.infobae.com/mundial-2026/agenda/",{contextPath:C,deployment:T}=(0,y.useFusionContext)(),{isMobile:P,isTablet:D,isDesktop:A}=(0,x.A)(),E=T(`${C}/resources/icons/default-shield.svg`),{tableHeadColumnInMobile:k,tableHeadColumnInDesktop:U}=(0,l.pK)(g),L=(0,a.useMemo)(()=>(0,l.eb)({isMobile:P,isTablet:D,isDesktop:A,tableHeadColumnInMobile:k,tableHeadColumnInDesktop:U}),[P,D,A,g]),R=(0,a.useMemo)(()=>["Pos","Equipos",...L.map(e=>e.toLocaleUpperCase())],[L]),M=(0,a.useMemo)(()=>({showCodigoDesktop:"codigo"===d,showCodigoMobile:"codigo"===c,showNombreCortoDesktop:"nombreCorto"===d,showNombreCortoMobile:"nombreCorto"===c,showNombreDesktop:"nombre"===d,showNombreMobile:"nombre"===c}),[d,c]),$=(0,a.useMemo)(()=>m?p:p.map(e=>{if(!Array.isArray(e?.grupos))return e;const t=e.grupos.filter(e=>e?.nombre!==i.bi);return 0===t.length?null:O(O({},e),{},{grupos:t})}).filter(Boolean),[p,m]),F=Boolean(r&&o&&s&&$.length);return{customTextButtonAgenda:N,customUrlButtonAgenda:S,data:$,errorIcon:E,header:R,ignoreLeaderboard:h,isDesktop:A,isGrouped:b,isMobile:P,isPageView:f,isReady:F,isTablet:D,maxTableRows:v,nameDisplayConfig:M,showTeamShield:w,useSecondaryFlag:j,showTitleTable:n,tableTitle:u}};const T=["isPageView","data"];function P(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function D(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?P(Object(r),!0).forEach(function(t){A(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):P(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function A(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const E=({customFields:e={},overrides:t={}})=>{const r=t.theme??i.a0.DEFAULT,s=t.showRankingDetails??!0,n=C({customFields:e,overrides:t});if((0,a.useEffect)(()=>{r===i.a0.WORLDCUP&&(0,o.A)([300,500,700])},[r]),!n.isReady)return null;const{isPageView:l,data:d}=n,u=function(e,t){if(null==e)return{};var r,a,s=function(e,t){if(null==e)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;r[a]=e[a]}return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}(n,T),p=i.F6[r]||"",m=l?"position-table-single":"";return(0,c.jsxs)("div",{className:`pos-tbl-ctn ${p} ${m}`.trim(),children:[(0,c.jsx)(j,D(D({},u),{},{data:d,theme:r,showRankingDetails:s})),(()=>{if(!d||0===d.length||!s)return null;const e=d.find(e=>e?.observaciones)?.observaciones||"",t=d.flatMap(e=>e.detallesRanking||[]).filter((e,t,r)=>t===r.findIndex(t=>t?.estados===e?.estados&&t?.color===e?.color));if(0===t.length)return null;const r=t.map((e,t)=>{if(!e)return null;const r={backgroundColor:e.color||""};return(0,c.jsxs)("div",{children:[(0,c.jsx)("div",{className:"pos-tbl-status-circle",style:r}),(0,c.jsx)("span",{className:"pos-tbl-status-text",children:e?.estados})]},t)});return(0,c.jsxs)("div",{className:"pos-tbl-status",children:[(0,c.jsx)("div",{className:"pos-tbl-status-panel-right",children:r}),e?(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("div",{className:"pos-tbl-status-divider"}),(0,c.jsxs)("p",{className:"pos-tbl-status-panel-left",children:[(0,c.jsx)("span",{children:"OBSERVACIONES:"}),(0,c.jsxs)("span",{children:["* ",e]})]})]}):null]})})()]})};E.propTypes={overrides:n().shape({}
1),customFields:n().shape({seasonId:n().string,showPositionsTable:n().bool,showTitleTable:n().bool,sport:n().string})};var k=E},125:function(e,t,r){r.r(t);r(809);var a=r(9894),s=r.n(a),n=r(7447),o=r(4766);const i={Default:"","Mundial 2026":" theme-mundial-2026"},l=e=>{const{containerClassName:t="ctn-soccer-table-chain",data:r,latestNewsTitle:a,overrides:s={},priorityGroup:l,showRanking:c,theme:d,withWrapper:u=!0}=e||{},p=r||{fasedegrupos:s.fasedegrupos||[],stories:s.stories||[],config:s.config||{}},{fasedegrupos:m=[],stories:g=[],config:h={}}=p,f=l??s.priorityGroup??"",b=c??s.showRanking??!1,v=d??s.theme??"Default",w=a??s.latestNewsTitle??"",j=i[v]??"",y=t??s.containerClassName??"";if(!m.length||!Array.isArray(m))return(0,o.jsx)(o.Fragment,{});const x=(0,o.jsx)(n.A,{data:{fasedegrupos:m,stories:g,config:h},latestNewsTitle:w,priorityGroup:f,showRanking:b,theme:v});if(!u)return x;const N=`${y}${j}`.trim();return(0,o.jsx)("div",{className:N||void 0,children:(0,o.jsx)("div",{className:"ctn-soccer-static",children:(0,o.jsx)("div",{className:`block-one${j}`,children:x})})})};l.propTypes={containerClassName:s().string,data:s().shape({fasedegrupos:s().array,stories:s().array,config:s().object}),latestNewsTitle:s().string,overrides:s().shape({}),priorityGroup:s().string,showRanking:s().bool,theme:s().oneOf(["Default","Mundial 2026"]),withWrapper:s().bool},t.default=l},1535:function(e,t,r){r.r(t);var a=r(809),s=r(9894),n=r.n(s),o=r(1445),i=r(7312),l=r(7447),c=r(8418),d=r(6222),u=r(4634),p=r(3704),m=r(4766);function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const f=e=>{const{overrides:t={}}=e||{},r=t.fasedegrupos||[],s=t.generalTitle||"",n=t.liga||{},f=t.logoAdUrl||"",b=t.logoAdUrlRedirect||"",v=t.redirectButtonText||"",w=t.redirectButtonUrl||"",j=t.showLogoAd||!1,y=t.showLogoLiga||!1,x=t.showRedirectButton||!1,N=t.showTitle||!1,O=(0,i.O2)(),S=(0,a.useRef)(null),[C,T]=(0,a.useState)(!0),[P,D]=(0,a.useState)(!1),A=e=>{D(e.isEnd),T(e.isBeginning)},{settings:E={}}=(0,p.A)({componentSettings:"sliderGroups",ttlSelect:"1-year",url:"https://storage.googleapis.com/arc-buckets/sports/world-cup-config.json"}),k={data:n,generalTitle:s||E?.generalTitle,logoAdUrl:f||E?.logoAdUrl,logoAdUrlRedirect:b||E?.logoAdUrlRedirect,redirectButtonText:v||E?.redirectButtonText,redirectButtonUrl:w||E?.redirectButtonUrl,showLogoAd:j??E?.showLogoAd,showLogoLiga:y??E?.showLogoLiga,showRedirectButton:x??E?.showRedirectButton,showTitle:N??E?.showTitle},U=()=>(0,m.jsx)(c.A,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){h(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}({},k)),L={autoplay:!1,a11y:{prevSlideMessage:"Diapositiva anterior",nextSlideMessage:"Diapositiva siguiente"},modules:[o.Vx,o.Jq,o.U1],navigation:{nextEl:`.next-slider-${O}`,prevEl:`.prev-slider-${O}`},slidesPerView:"auto",freeMode:{enabled:!0,minimumVelocity:.02,momentumBounce:!1,momentumVelocityRatio:.1,sticky:!1},allowTouchMove:!0,loop:!1,resistance:!0,resistanceRatio:0,simulateTouch:!0,spaceBetween:16,threshold:5,touchAngle:45,touchRatio:1,watchOverflow:!0,onSwiper:e=>{S.current=e,A(e)},onSlideChange:e=>{A(e)},onTouchMove:e=>{A(e)},onNavigationNext:e=>{A(e)},onNavigationPrev:e=>{A(e)}},R=C?" disabled":"",M=P?" disabled":"";return(0,m.jsx)(u.A,{clases:"ctn-soccer-tables-slider",children:(0,m.jsxs)(m.Fragment,{children:[U(),(0,m.jsxs)("div",{className:"soccer-swiper-ctn",children:[(0,m.jsxs)("div",{className:"ctn-prev-arrow",children:[!C&&(0,m.jsx)("div",{className:"shadow-left"}),(0,m.jsx)(d.Lm,{classes:`prev-arrow prev-slider-${O} ${R}`})]}),(0,m.jsx)(l.A,{cardsSwiperConfig:L,data:{fasedegrupos:r},isSlider:!0,showTableStatus:!1,showTitle:!1}),(0,m.jsxs)("div",{className:"ctn-next-arrow",children:[!P&&(0,m.jsx)("div",{className:"shadow-right"}),(0,m.jsx)(d._1,{classes:`next-arrow next-slider-${O} ${M}`})]})]})]})})};f.propTypes={overrides:n().shape({})},t.default=f},5018:function(e,t,r){r.r(t),r.d(t,{default:function(){return m}});r(809);var a=r(3993),s=r(9894),n=r.n(s),o=r(2237),i=r(1950),l=r(7382),c=r(4766);const d=e=>{const{category:t=[]}=e||{};if(!t.length)return null;const r=(e,t)=>e?(0,c.jsx)("img",{alt:`Logo ${t}`,className:"sport-leagues-chip-logo",loading:"lazy",onError:e=>{e.target.src=o.vR},src:e}):null;return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(l.RC,{slidesPerView:"auto",spaceBetween:6,grabCursor:!0,className:"leagues-swiper",children:t.map(e=>{const{devUrl:t="",id:s="",logo:n="",nombre:i="",url:d="",stagingUrl:u=""}=e||{};return(0,c.jsx)(l.qr,{children:(0,c.jsxs)("a",{type:"button",className:"sport-leagues-chip",alt:i,href:(0,o.gn)(a.ENVIRONMENT,d,t,u,""),children:[r(n,i),i]},s)},s)})}),(0,c.jsx)("div",{className:"leagues-swiper-divider"})]})};d.propTypes={category:n().array,showSeeAll:n().bool,redirectionOfLinks:n().object};var u=d;const p=({customFields:e={},overrides:t={}})=>{const{showEventViewSlider:r=t.showEventViewSlider||!1,showCategoryAndFilter:s=t.showCategoryAndFilter||!0,showHomeBorder:n=t.showHomeBorder||!1}=e||{},l=t.category||[],d=t.filter||[],p=t.defaultCategoryDropdownOption||{},m=t.defaultFilterDropdownOption||{},g=t.sliderEvents||[],h=(e="",t="")=>t.length?(0,c.jsx)("img",{alt:`Logo de ${e}`,className:"sport-title-only-image",loading:"lazy",src:t,onError:e=>{e.target.src=o.vR}}
1):null,f=(e="",t="")=>e?(0,c.jsxs)("span",{className:t.length?"":"option-category",children:[h(e,t),(0,c.jsx)("b",{children:e})]}):null,b=((e=[])=>{if(!e?.length)return[];return e.map((e={})=>{if("object"!=typeof e)return{};const{id:t="",nombre:r="",logo:s="",url:n="",devUrl:i="",stagingUrl:l="",sandboxUrl:c=""}=e||{};return{label:f(r,s),value:t,name:r,id:t,url:(0,o.gn)(a.ENVIRONMENT,n,i,l,c)}})})(l)||[],v=((e=[])=>{if(!Array.isArray(e)||0===e.length)return[];return e.map((e={})=>{const{activo:t=!0,"año":r="",nombre:s="",url:n="",devUrl:i="",stagingUrl:l="",sandboxUrl:d=""}=e||{},u=t?"":"disabled-button";return{label:(0,c.jsx)("span",{className:u,children:r||s}),name:r||s,value:r||s,activo:t,url:(0,o.gn)(a.ENVIRONMENT,n,i,l,d)}})})(d)||[],w=(e={})=>{if(!e)return null;const{activo:t=!0,url:r=""}=e||{activo:!0,url:""};if(!t)return null;if(void 0!==window){const{location:e={}}=window||{};e.href=r}return null};return(()=>{const e=n?s?"ctn-border-home":"ctn-only-leagues-slider":"";return(0,c.jsxs)("div",{className:`sport-header-wrapper ${e} ctn-sport-category-filter`,children:[s?(0,c.jsxs)("div",{className:"sport-title-ctn",children:[b?.length&&"string"!=typeof p?.label&&p?.label?(0,c.jsx)("div",{className:"sport-title-container-leagues",children:(0,c.jsx)(i.A,{options:b,onChange:w,label:p.label,classInput:"container-select-season",isAutoSized:!0})}):null,(0,c.jsx)("div",{className:"sport-title-container-seasons",children:(0,c.jsx)("div",{className:"container-select-season",children:(0,c.jsx)(i.A,{options:v,onChange:w,label:m?.label,isAutoSized:!0})})})]}):null,!r&&g.length>0?null:(0,c.jsx)(u,{category:g})]})})()};p.label="Sport Category Filter",p.propTypes={overrides:n().shape({}),customFields:n().shape({showEventViewSlider:n().bool.tag({name:"Show League Slider",defaultValue:!1}),showCategoryAndFilter:n().bool.tag({name:"Show Selectors",defaultValue:!0}),showHomeBorder:n().bool.tag({name:"Show Borders",defaultValue:!1})})};var m=p},4746:function(e,t,r){r.r(t),r.d(t,{default:function(){return x}});var a=r(809),s=r(3993),n=r(9894),o=r.n(n),i=r(7055),l=r(4766);const c=(...e)=>{const t=e.find(e=>Array.isArray(e)&&e.length>0);if(t)return t;const r=e.find(e=>e&&"object"==typeof e&&Object.keys(e).length>0);return r?Object.values(r):[]};var d=e=>{const{sport:t=""}=e||{};if(!["tenis","f1","nfl","nba","futbol"].includes(t))return null;const r=(e=>{const{overrides:t={}}=e||{},{sportSlug:r="",showCategoryFilter:a=!1,showEventViewSlider:s=!1,defaultCategoryDropdownOption:n={},defaultFilterDropdownOption:o={},sportsEventData:i={}}=t||{},{competencias:l={},deportes:d={},dropdown1Options:u=[],dropdown2Options:p=[],ligas:m=[]}=i||{};return{sportSlug:r,showCategoryFilter:a,showEventViewSlider:s,isCurrentView1:!0,defaultCategoryDropdownOption:n,defaultFilterDropdownOption:o,category:c(m,u,l),filter:c(p,d),isLoading:!1}})(e);return(0,l.jsx)("div",{className:"sport-leagues-header-title",children:(0,l.jsx)(i.default,{overrides:r})})},u=r(2237);const p=(e,t)=>{if(!e.length)return null;return e.map(({id:e="",nombre:r="",logo:a="",url:n="",devUrl:o="",stagingUrl:i="",sandboxUrl:c=""})=>(0,l.jsxs)("a",{className:"sport-leagues-logo-info",alt:r,href:(0,u.gn)(s.ENVIRONMENT,n,o,i,c),children:[(0,l.jsx)("img",{src:a,alt:r,className:"sport-leagues-logo",onError:e=>"tenis"===t?(e.target.src=u.Uy,null):(e.target.src=u.vR,null)}),r]},e))};var m=e=>{const{sport:t="soccer",overrides:r={}}=e||{},{ligasAgrupadas:a=[]}=r.sportsEventData||{};return a.map(({agrupacion:e="",ligas:r=[]},a)=>(0,l.jsxs)("div",{children:[(0,l.jsx)("h3",{children:e}),(0,l.jsx)("div",{className:"league-tournament-box",children:p(r,t)})]},a))},g=r(8588),h=r(5650);var f=function(){return(0,l.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"19",height:"19",fill:"none",viewBox:"0 0 19 19",className:"feed-column-icon",children:[(0,l.jsx)("rect",{width:"17",height:"17",x:"1",y:"1.437",rx:"8.5"}),(0,l.jsx)("path",{fill:"#F68E01",d:"M14.26 9.435c-.323-.325-2.569-2.547-3.371-3.35-.178-.177-.386-.262-.64-.208a.612.612 0 00-.487.463c-.07.247 0 .471.186.664.71.702 2.284 2.276 2.284 2.276H5.156a.655.655 0 100 1.312h7.083s-1.574 1.574-2.284 2.276a.649.649 0 00-.185.664c.07.247.24.401.486.463.255.054.463-.031.64-.209.803-.794 3.372-3.348 3.372-3.348.31-.309.31-.
1687 0-1.003h-.007z"})]})},b=r(9689);const v=({overrides:e={},sport:t="",countdown:r=null,setCountdown:a})=>{const{sportsEventData:n={}}=e||{},{competencias:o=[],carreras:i=[]}=n||{};let c=!0,d=!0;const p=()=>(0,l.jsxs)("div",{className:"sport-leagues-tournament-live minute-by-minute-marker minute-by-minute-marker-first-border-red",children:[(0,l.jsx)("div",{className:"minute-by-minute-marker-red",children:(0,l.jsx)("div",{className:"minute-by-minute-marker-bg-red"})}),(0,l.jsx)("p",{children:"En vivo"})]}),m={"In Progress":p(),Break:p(),Cancelled:"Cancelado",Completed:"Finalizado",Delayed:"Demorado",Postponed:"Postergado",Scheduled:"Próximamente",Suspended:"Suspendido",default:"","En Progreso":p(),"Pre-Carrera":"Próxima Fecha",Cancelado:"Cancelado",Demorado:"Demorado",Finalizado:(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)(b.A,{})," Finalizada"]}),Normal:p(),Postergado:"Postergado",Suspendido:"Suspendido"},v=e=>{!r&&d&&(a(()=>e),d=!1)},w=e=>{v(e),c=!1},j=e=>{const{id:t="",logo:a={},nombre:n="",pais:o="",paisLogo:i="",torneo:{devUrl:d="",estado:p="",fin:h="",inicio:b="",sandboxUrl:j="",stagingUrl:y="",tipo:x="",url:N=""}={}}=e||{},{id:O,torneo:{estado:S=""}={}}=r||{};if(O===t)return null;return(0,l.jsxs)("a",{className:"sport-leagues-tournament"+("In Progress"===p||"Break"===p?" live":"Completed"===p?" completed":"Scheduled"===p&&c?" scheduled":""),href:(0,u.gn)(s.ENVIRONMENT,N,d,y,j),children:[(0,l.jsx)("img",{alt:"tournament-logo",className:"sport-leagues-tournament-logo",decoding:"async",fetchPriority:"low",loading:"lazy",src:a}),(0,l.jsxs)("div",{className:"sport-leagues-tournament-info",children:[(0,l.jsxs)("div",{className:"sport-leagues-tournament-info-top",children:[(0,l.jsx)("p",{className:"sport-leagues-tournament-info-name",children:n}),(0,l.jsx)("p",{className:"sport-leagues-tournament-info-type",children:x})]}),(0,l.jsxs)("div",{className:"sport-leagues-tournament-info-middle",children:[(0,l.jsx)("img",{alt:"country-logo",className:"sport-leagues-tournament-info-pais-logo",decoding:"async",fetchPriority:"low",loading:"lazy",onError:e=>(e.target.src=u.Uy,null),src:i}),(0,l.jsx)("p",{className:"sport-leagues-tournament-info-pais",children:o})]}),(0,l.jsxs)("div",{className:"sport-leagues-tournament-info-bottom",children:[(0,l.jsxs)("div",{className:"sport-leagues-tournament-date",children:[(0,l.jsx)("p",{className:"sport-leagues-tournament-info-type-date",children:(0,g.rq)(b.replace("Z",""),h.replace("Z",""))}),""===p?null:"Scheduled"!==p||c?"Scheduled"===p&&c&&(w(e),"Scheduled"===S)?null:("In Progress"!==p&&"Break"!==p||v(e),(0,l.jsx)("p",{className:"sport-leagues-tournament-info-type-status",children:m[p]})):null]}),(0,l.jsx)(f,{})]})]})]},t)},y=e=>{const{circuito:{nombreOficial:t="",area:a="",logo:n=""}={},devUrl:o="",estado:i="",fin:d={},id:p="",inicio:g="",numero:f="",sandboxUrl:b="",stagingUrl:j="",url:y=""}=e||{},{id:x="",estado:N=""}=r||{};if(x===p)return null;return(0,l.jsxs)("a",{className:"sport-leagues-tournament"+("En Progreso"===i||"Normal"===i?" live":"Finalizado"===i?" completed":"Pre-Carrera"===i&&c?" scheduled":""),href:(0,u.gn)(s.ENVIRONMENT,y,o,j,b),children:[(0,l.jsx)("img",{className:"sport-leagues-tournament-logo",src:n,alt:"tournament-logo"}),(0,l.jsxs)("div",{className:"sport-leagues-tournament-info",children:[(0,l.jsx)("div",{className:"sport-leagues-tournament-info-middle",children:(0,l.jsx)("p",{className:"sport-leagues-tournament-info-pais",children:h.EH[a]||a})}),(0,l.jsx)("div",{className:"sport-leagues-tournament-info-top",children:(0,l.jsx)("p",{className:"sport-leagues-tournament-info-name",children:t})}),(0,l.jsx)("div",{className:"sport-leagues-tournament-info-bottom",children:(0,l.jsxs)("div",{className:"sport-leagues-tournament-date",children:[(0,l.jsx)("p",{className:"sport-leagues-tournament-info-type-date",children:(0,h.rq)(g.replace("Z",""),d.replace("Z",""))}),""===i?null:"Pre-Carrera"!==i||c?"Pre-Carrera"===i&&c&&(w(e),"Pre-Carrera"===N)?null:("En Progreso"!==i&&"Normal"!==i||v(e),(0,l.jsx)("p",{className:"sport-leagues-tournament-info-type-status",children:m[i]})):null]})})]}),(0,l.jsxs)("div",{className:"sport-leagues-tournament-race-number",children:["R",f]})]},p)};return(0,l.jsx)("div",{className:"sport-leagues-grouped-events-"+("f1"===t?"f1":"tennis"),children:((e=[],r=[])=>e.length||r.length?"f1"===t?r.length?r?.map(y):null:e.length?e.map(j):null:null)(o,i)})};v.propTypes={countdown:o().object,overrides:o().object,setCountdown:o().func,sport:o().string};var w=v,j=r(6222);const y=e=>{const{overrides:t={}}=e||{}
1,{showCategoryFilter:r=!0,showEventViewSlider:n=!0,showFeature:o=!0,sport:i="tennis",sportsEventData:c={}}=t||{},p=i,[f,b]=(0,a.useState)(null),v={"En Progreso":(0,l.jsxs)("div",{className:"sport-leagues-tournament-live minute-by-minute-marker minute-by-minute-marker-first-border-red",children:[(0,l.jsx)("div",{className:"minute-by-minute-marker-red",children:(0,l.jsx)("div",{className:"minute-by-minute-marker-bg-red"})}),(0,l.jsx)("p",{children:"En vivo"})]}),"Pre-Carrera":"Próxima Fecha",Scheduled:"Próximamente"},y=()=>{if(["futbol","soccer","nfl","nba"].includes(p)){const e=(0,u.s_)(p,c);return(0,l.jsx)(m,{sport:i,overrides:{sportsEventData:e}})}return(0,l.jsx)(w,{countdown:f,overrides:{sportsEventData:c},setCountdown:b,sport:i})},x=(e,t=!0)=>""===e?null:t?(0,l.jsx)("p",{className:"sport-leagues-countdown-info-type-status",children:v["En Progreso"]}):(0,l.jsx)("p",{className:"sport-leagues-countdown-info-type-status",children:v[e]}),N=(e,t=!0)=>{const{circuito:{logo:r="",area:a=""}={},estado:s="",fin:n="",inicio:o="",logo:c,nombre:d="",torneo:{tipo:u="",inicio:p="",fin:m="",estado:f=""}={}}=e||{},b=s||f||"";return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("img",{className:"sport-leagues-countdown-logo",src:r||c,alt:"countdown-logo"}),(0,l.jsxs)("div",{className:"sport-leagues-countdown-info",children:[(0,l.jsxs)("div",{className:"sport-leagues-countdown-info-top",children:[(0,l.jsx)("p",{className:"sport-leagues-countdown-info-pais",children:h.EH[a]||a||d}),(0,l.jsx)("p",{className:"sport-leagues-countdown-info-name",children:u||d})]}),(0,l.jsx)("div",{className:"sport-leagues-countdown-info-bottom",children:(0,l.jsxs)("div",{className:"sport-leagues-countdown-date",children:[(()=>{if(t)return null;const e="f1"===i?(0,h.rq)(o.replace("Z",""),n.replace("Z","")):(0,g.rq)(p.replace("Z",""),m.replace("Z",""));return(0,l.jsx)("p",{className:"sport-leagues-countdown-info-type-date",children:e})})(),x(b,t)]})})]})]})},O=e=>"number"!=typeof e||Number.isNaN(e)?0:e,S=(e=!0,t={},r={})=>{const{days:a=0,hours:n=0,minutes:o=0}=t||{},{url:c="",devUrl:d="",sandboxUrl:p="",stagingUrl:m=""}=r||{};if(e){const e="f1"===i?"Ver más":"Ir al torneo",t=(0,u.gn)(s.ENVIRONMENT,c,d,m,p);return(0,l.jsxs)("a",{className:"sport-leagues-countdown-button",href:t,children:[e," ",(0,l.jsx)(j.i3,{})]})}return(0,l.jsxs)("div",{className:"sport-leagues-countdown-time",children:[(0,l.jsxs)("div",{className:"sport-leagues-countdown-days",children:[(0,l.jsx)("div",{className:"sport-leagues-countdown-count",children:O(a)})," DÍAS"]}),(0,l.jsxs)("div",{className:"sport-leagues-countdown-hours",children:[(0,l.jsx)("div",{className:"sport-leagues-countdown-count",children:O(n)})," HS"]}),(0,l.jsxs)("div",{className:"sport-leagues-countdown-minutes",children:[(0,l.jsx)("div",{className:"sport-leagues-countdown-count",children:O(o)})," MIN"]})]})};return(0,l.jsxs)("div",{className:"sport-leagues ctn-sport-events",children:[(()=>{if(!r)return null;const{dropdown1:e=!1,dropdown2:t=!1,dropdown1Active:a=!1,dropdown2Active:o=!1}=c||{},{nombre:m="",id:g="",url:h="",devUrl:f="",stagingUrl:b="",sandboxUrl:v=""}=a||e||{},w={label:(0,l.jsx)("span",{className:"option-category",children:m}),value:g,name:m,id:g,url:(0,u.gn)(s.ENVIRONMENT,h,f,b,v)},{nombre:j="",id:y="",url:x="",devUrl:N="",stagingUrl:O="",sandboxUrl:S=""}=o||t||{},C={label:(0,l.jsx)("span",{children:j}),value:y,name:j,id:y,url:(0,u.gn)(s.ENVIRONMENT,x,N,O,S)},T={sportSlug:p,showCategoryFilter:r,showEventViewSlider:n,defaultCategoryDropdownOption:w,defaultFilterDropdownOption:C,sportsEventData:c,isLoading:!1};return(0,l.jsx)(d,{sport:i,overrides:T})})(),(()=>{if(!f)return null;const e=f||{},{primeraCarrera:t="",primerPartido:r="",torneo:{url:a="",devUrl:n="",sandboxUrl:o="",stagingUrl:i=""}={},url:c="",devUrl:d="",sandboxUrl:m="",stagingUrl:g=""}=e||{},h=c||a||"",b=d||n||"",v=m||o||"",w=g||i||"",j={url:h,devUrl:b,sandboxUrl:v,stagingUrl:w},y=t||r||"",{days:x=0,hours:O=0,minutes:C=0}=(0,u.vi)(y),T=0===x&&0===O&&0===C,P={days:x,hours:O,minutes:C},D=T?" live":" scheduled",A=(0,u.gn)(s.ENVIRONMENT,h,b,w,v);return T?(0,l.jsx)("div",{className:"sport-leagues-countdown-ctn",children:(0,l.jsxs)("div",{className:`sport-leagues-countdown ${p}${D}`,children:[(0,l.jsx)("div",{className:"sport-leagues-countdown-detail",children:N(e,T)}),S(T,P,j)]})}):(0,l.jsx)("div",{className:"sport-leagues-countdown-ctn",children:(0,l.jsxs)("a",{className:`sport-leagues-countdown ${p}${D}`,href:A,children:[(0,l.jsx)("div",{className:"sport-leagues-countdown-detail",children:N(e,T)}),S(T,P,j)]})})})(),(()=>{if(!o)return null;const e={tenis:"tennis",f1:"f1",nfl:"nfl",nba:"nba",soccer:"soccer"}[i]||"soccer";return(0,l.jsx)("div",{className:`sport-leagues-logos-ctn ctn-competition-${e}`,children:y()})})()]})};y.label="Sport Formats",y.propTypes={overrides:o().shape({})};var x=y},808:function(e,t,r){r.r(t),r.d(t,{default:function(){return O}});var a=r(809),s=r(9894),n=r.n(s),o=r(7382),i=r(1445),l=r(3082),c=r(3642),d=r
1(5365),u=r(4766);const p=({data:e=[]})=>{if(!Array.isArray(e)||0===e.length)return null;return(0,u.jsxs)("div",{className:"ctn-sport-agenda",children:[(0,u.jsx)(l.A,{title:"AGENDA DEPORTIVA"}),(0,u.jsx)("div",{className:"ctn-tenis-event-overview",children:e.map((e,t)=>{const r=(e=>{const{fechaOficial:t="",hora:r,estado:a="",ronda:s={},participantes:n={a:[],b:[]},puntajes:o={},ganador:i=""}=e||{};return{ronda:s,localTime:(0,d.nS)(t).time,estado:a,hora:r,participantes:n,puntajes:o,ganador:i}})(e);return(0,u.jsx)(c.A,{match:r},t)})})]})};p.propTypes={data:n().arrayOf(n().shape({fechaOficial:n().string,estado:n().string,ronda:n().object,participantes:n().object,puntajes:n().object,hora:n().string})),detalle:n().object};var m=p;const g=({data:e={}})=>{const{duracion:t="",locacion:r="",premio:a=0,premioMoneda:s="USD",superficie:n=""}=e||{};if(!(t||r||a||s||n))return null;return(0,u.jsxs)("div",{className:"ctn-tournament-details",children:[(0,u.jsx)(l.A,{title:"DETALLE DEL TORNEO"}),(()=>{if(!(t||r||a||s||n))return null;const e=new Intl.NumberFormat("en-US",{style:"currency",currency:s}).format(a),o=(e,t)=>(0,u.jsxs)("div",{className:"details-list-row",children:[(0,u.jsxs)("dt",{children:[e,":"]}),(0,u.jsx)("dd",{children:t})]});return(0,u.jsxs)("dl",{className:"details-list",children:[o("Duración",t),o("Locación",r),o("Superficie",n),o("Premio",e)]})})()]})};g.propTypes={data:n().object};var h=g,f=r(6749),b=r(7312),v=r(8522),w=r(8418);function j(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function y(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?j(Object(r),!0).forEach(function(t){x(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):j(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function x(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const N=e=>{const{overrides:t={}}=e||{},{blockOne:r="",blockTwo:s="",blockThree:n="",competencia:l="",detalle:c={},generalTitle:d="",logoAdUrl:p="",logoAdUrlRedirect:g="",partidos:j=[],redirectButtonText:x="",redirectButtonUrl:N="",showLogoAd:O=!1,showLogoLiga:S=!1,showRedirectButton:C=!1,showTitle:T=!1,stories:P=[]}=t,D=(0,a.useRef)(null),[A,E]=(0,a.useState)(!1),{isMobile:k}=(0,v.A)(),U=(0,b.O2)(),L=e=>"Sports agenda"===e?(0,u.jsx)(m,{data:j}):"Latest news"===e?(0,u.jsx)(f.A,{stories:P}):"Tournament details"===e?(0,u.jsx)(h,{data:c}):(0,u.jsx)(u.Fragment,{}),R={autoplay:!1,a11y:{prevSlideMessage:"Diapositiva anterior",nextSlideMessage:"Diapositiva siguiente"},modules:[i.Vx,i.Jq,i.U1],navigation:{nextEl:`.next-slider-bfc-${U}`,prevEl:`.prev-slider-bfc-${U}`},slidesPerView:"auto",freeMode:{enabled:!0,sticky:!1,momentumBounce:!1,momentumVelocityRatio:.1,minimumVelocity:.02},watchOverflow:!0,resistance:!0,resistanceRatio:0,touchRatio:1,touchAngle:45,simulateTouch:!0,threshold:5,loop:!1,allowTouchMove:!0},M=()=>(0,u.jsx)(w.A,{data:l,generalTitle:d,logoAdUrl:p,logoAdUrlRedirect:g,redirectButtonText:x,redirectButtonUrl:N,showLogoAd:O,showLogoLiga:S,showRedirectButton:C,showTitle:T}),$=()=>(0,u.jsxs)(u.Fragment,{children:[(0,u.jsx)("div",{className:"block-one",children:"Sports agenda"===r||"Latest news"===r||"Tournament details"===r?L(r):(0,u.jsx)(h,{data:c})}),(0,u.jsx)("div",{className:"block-two",children:"Sports agenda"===s||"Latest news"===s||"Tournament details"===s?L(s):(0,u.jsx)(m,{data:j})}),(0,u.jsx)("div",{className:"block-three",children:"Sports agenda"===n||"Latest news"===n||"Tournament details"===n?L(n):(0,u.jsx)(f.A,{stories:P})})]});return(0,a.useEffect)(()=>
1{if(!D?.current||k||"undefined"==typeof window)return;const e=()=>{try{const e=D.current,t=e.querySelector(".block-three");if(!t)return;const r=e.getBoundingClientRect(),a=t.getBoundingClientRect().right>r.right;E(a)}catch(e){console.log("Error en checkOverflow de TennisEventSummary:",e?.message||e||"Error no especificado")}},t=new ResizeObserver(e);return t.observe(D.current),e(),()=>{try{t.disconnect()}catch(e){console.log("Error en useEffect de TennisEventSummary:",e?.message||e||"Error no especificado")}}},[k]),(0,u.jsx)("div",{className:"ctn-tennis-tournaments-events",children:!A||k?(0,u.jsxs)(u.Fragment,{children:[M(),(0,u.jsx)("div",{className:"ctn-tennis-static",ref:D,children:$()})]}):A&&!k?(0,u.jsxs)(u.Fragment,{children:[M(),(0,u.jsx)("div",{ref:D,className:"tennis-swiper-ctn",children:(0,u.jsxs)(o.RC,y(y({},R),{},{children:[A&&(0,u.jsx)("div",{className:"shadow-left"}),(0,u.jsx)(o.qr,{style:{width:"auto"},children:$()}),A&&(0,u.jsx)("div",{className:"shadow-right"})]}))})]}):(0,u.jsx)(u.Fragment,{})})};N.propTypes={overrides:n().shape({})};var O=N},4314:function(e,t,r){r.r(t),r.d(t,{default:function(){return C}});var a=r(809),s=r(3993),n=r(9894),o=r.n(n),i=r(3673),l=r(7168),c=r(2072),d=r(7055),u=r(2237),p=r(4375),m=r(9216),g=r(8588),h=r(9525),f=r(9856),b=r(4766);const v=["dia","diaUTC"];function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function j(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach(function(t){y(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function y(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const x=(0,a.lazy)(()=>r.e(734).then(r.bind(r,942))),N=e=>{const{overrides:t={}}=e,{timeZone:r}=(0,a.useContext)(f.A),s=(0,h.GP)(r)||"",n=new Date,o=n.getFullYear(),i=n.getMonth()+1,l=n.getDate(),c=`${o}-${i.toString().padStart(2,"0")}-${l.toString().padStart(2,"0")}`,d=(0,p.useContent)({source:"sport-event-scheduler",query:{sport:"tenis",event_date:c}}),{data:u={},isLoading:w=!0}=d||{isLoading:!0},{partidos:y=[]}=u||{partidos:[]};if(!Array.isArray(y))return null;const N=y.map(e=>{const t=(0,g.aY)(e.competenciaData,c);return j(j({},e),{},{competenciaData:t})}),O=(0,b.jsx)(m.A,{id:"TennisCalendarModule",skeletonStyle:{height:"400px"}});if("undefined"==typeof window||w)return O;const S=t.data.dias.map(e=>{const{dia:t="",diaUTC:r=""}=e,a=function(e,t){if(null==e)return{};var r,a,s=function(e,t){if(null==e)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;r[a]=e[a]}return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}(e,v);return{dia:t,diaUTC:r,disponible:(s?a[`disponible${s.toLowerCase()}`]:a.disponibleutc)||!1}})||[];const C=j(j({},e),{},{overrides:j(j({today:c,groupedCompetitions:N},t),{},{data:j(j({},t.data),{},{dias:S})})});return(0,b.jsx)(a.Suspense,{fallback:O,children:(0,b.jsx)(x,j({},C))})};N.propTypes={overrides:o().shape({})};var O=N;const S=e=>{const{customFields:t={},overrides:r={}}=e,{showEventViewSlider:n=r.showEventViewSlider,showCategoryFilter:o=r.showCategoryFilter,showCalendar:p=r.showCalendar,showDatesSwiper:m=r.showDatesSwiper,showNews:g=r.showNews,sport:h=r.sport}=t,f=r.storiesData||[],v=r.dropdown1||[],w=r.dropdown2||{},j=r.tabs||[],y=r.competencias||{},x=r.deportes||[],[N,S]=(0,a.useState)(!1),C={data:r.data||{}
1,showCalendar:p,showDatesSwiper:m},T=()=>{if(!o)return null;const{nombre:e="Competencias",id:t="",url:r="",devUrl:a="http://localhost/pf/deportes/resultados/tenis/?_website=infobae",stagingUrl:i="https://infobae-infobae-staging.web.arc-cdn.net/deportes/resultados/tenis/",sandboxUrl:l=""}=v||{},c={label:(0,b.jsx)("span",{className:"option-category",children:e}),value:v?.id,name:v?.nombre,id:t,url:(0,u.gn)(s.ENVIRONMENT,r,a,i,l)},{nombre:p="Tenis",id:m="",url:g="",devUrl:f="http://localhost/pf/deportes/resultados/tenis/?_website=infobae",stagingUrl:N="https://infobae-infobae-staging.web.arc-cdn.net/deportes/resultados/tenis/",sandboxUrl:O=""}=w||{},S={label:(0,b.jsx)("span",{children:p}),value:m,name:p,id:m,url:(0,u.gn)(s.ENVIRONMENT,g,f,N,O)},C={sportSlug:h,showLeagueSlider:!0,isLoading:!1,showEventViewSlider:n,dataSliderEvents:j,defaultCategoryDropdownOption:c,defaultFilterDropdownOption:S,category:y||[],filter:x||[]};return(0,b.jsx)("div",{className:"sport-leagues-header-title",children:(0,b.jsx)(d.default,{overrides:C})})},P=()=>{if(0===f.length||!g)return null;const e=N?"-show-all":"-show-none",t="sports-calendar-news",r={stories:f};return(0,b.jsxs)("div",{className:`${t} ${t}${e}`,children:[(0,b.jsx)(i.default,{overrides:r}),(0,b.jsxs)("button",{className:"sports-calendar-news-button",onClick:()=>S(e=>!e),children:[N?"Mostrar menos":"Ver todo",N?(0,b.jsx)(l.A,{}):(0,b.jsx)(c.A,{})]})]})};return(0,b.jsx)("div",{className:"ctn-tenis-global-calendar",children:(0,b.jsxs)(b.Fragment,{children:[T(),(0,b.jsx)(O,{overrides:C}),P()]})})};S.propTypes={overrides:o().shape({}),customFields:o().shape({showEventViewSlider:o().bool.tag({defaultValue:!0,name:"Show event view slider"}),showCategoryFilter:o().bool.tag({name:"Show Category Filter",defaultValue:!0}),showCalendar:o().bool.tag({defaultValue:!0,name:"Show Calendar"}),showDatesSwiper:o().bool.tag({defaultValue:!0,name:"Show dates swiper"}),showNews:o().bool.tag({defaultValue:!1,name:"Show News"}),sport:o().string.tag({defaultValue:"tenis",name:"Sport name"}),contentFeedLimit:o().number.tag({defaultValue:24,min:24,name:"Content feed limit for news"})})};var C=S},3925:function(e,t,r){r(809);var a=r(4766);t.A=({type:e=""})=>"error"===e?(0,a.jsxs)("svg",{width:"40",height:"40",viewBox:"0 0 40 40",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,a.jsx)("g",{clipPath:"url(#clip0_6749_13898)",children:(0,a.jsx)("path",{d:"M26.1783 22.8529L22.3567 26.6746L26.1783 30.4963C2
16.83 31.1479 26.83 32.2013 26.1783 32.8529C25.8533 33.1779 25.4267 33.3413 25 33.3413C24.5733 33.3413 24.1467 33.1779 23.8217 32.8529L20 29.0313L16.1783 32.8529C15.8533 33.1779 15.4267 33.3413 15 33.3413C14.5733 33.3413 14.1467 33.1779 13.8217 32.8529C13.17 32.2013 13.17 31.1479 13.8217 30.4963L17.6433 26.6746L13.8217 22.8529C13.17 22.2013 13.17 21.1479 13.8217 20.4963C14.4733 19.8446 15.5267 19.8446 16.1783 20.4963L20 24.3179L23.8217 20.4963C24.4733 19.8446 25.5267 19.8446 26.1783 20.4963C26.83 21.1479 26.83 22.2013 26.1783 22.8529ZM40 11.6746V31.6746C40 36.2696 36.2617 40.0079 31.6667 40.0079H8.33333C3.73833 40.0079 0 36.2696 0 31.6746V11.6746C0 7.0796 3.73833 3.34127 8.33333 3.34127H10V1.6746C10 0.752935 10.7467 0.00793457 11.6667 0.00793457C12.5867 0.00793457 13.3333 0.752935 13.3333 1.6746V3.34127H26.6667V1.6746C26.6667 0.752935 27.4133 0.00793457 28.3333 0.00793457C29.2533 0.00793457 30 0.752935 30 1.6746V3.34127H31.6667C36.2617 3.34127 40 7.0796 40 11.6746ZM3.33333 11.6746V13.3413H36.6667V11.6746C36.6667 8.91793 34.4233 6.6746 31.6667 6.6746H8.33333C5.57667 6.6746 3.33333 8.91793 3.33333 11.6746ZM36.6667 31.6746V16.6746H3.33333V31.6746C3.33333 34.4313 5.57667 36.6746 8.33333 36.6746H31.6667C34.4233 36.6746 36.6667 34.4313 36.6667 31.6746Z",fill:"#D5D5D5"})}),(0,a.jsx)("defs",{children:(0,a.jsx)("clipPath",{id:"clip0_6749_13898",children:(0,a.jsx)("rect",{width:"40",height:"40",fill:"white",transform:"translate(0 0.00793457)"})})})]}):(0,a.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 18 18",fill:"none",children:(0,a.jsx)("path",{d:"M13.6708 0C14.1116 0 14.2701 0.355823 14.2469 0.700043C14.2314 0.959175 14.2469 1.22217 14.2469 1.50451C14.3358 1.50451 14.3977 1.50451 14.4595 1.50451C14.9699 1.50451 15.4802 1.49678 15.9867 1.50451C17.104 1.53159 17.9932 2.43275 17.9971 3.55436C18.001 7.685 18.001 11.8156 17.9971 15.9463C17.9971 17.0872 17.0808 18 15.9364 18C11.3086 18 6.68464 18 2.05681 18C1.37636 18 0.827364 17.7061 0.409816 17.1685C0.189443 16.8861 0.0889223 16.5496 0 16.2093C0.00386619 11.9085 0.0270633 3.25269 0.0347957 3.22174C0.259035 2.15041 1.0516 1.50451 2.14573 1.50451C2.55555 1.50451 2.96537 1.50451 3.37132 1.50451C3.49117 1.50451 3.61488 1.50451 3.75407 1.50451C3.75407 1.22217 3.76567 0.959175 3.75407 0.700043C3.73474 0.359691 3.86232 0.00386764 4.3224 0.00386764C4.78247 0.00386764 4.90619 0.40997 4.88686 0.75419C4.8714 0.997851 4.88686 1.24151 4.88686 1.49678H13.1296C13.1296 1.24151 13.1412 0.997851 13.1296 0.75419C13.1102 0.40997 13.2417 0.00386764 13.6824 0.00386764L13.6708 0ZM16.872 7.13966H1.12893V7.34465C1.12893 10.168 1.12893 12.9914 1.12893 15.8148C1.12893 16.5032 1.50008 16.8745 2.19213 16.8745C6.73103 16.8745 11.2699 16.8745 15.8088 16.8745C16.5009 16.8745 16.8759 16.5032 16.8759 15.8148C16.8759 12.9914 16.8759 10.168 16.8759 7.34465V7.13966H16.872ZM4.89073 2.63386C4.89073 2.69961 4.88299 2.75376 4.88299 2.80404C4.88299 3.1792 4.89073 3.55436 4.88299 3.92952C4.87526 4.26214 4.62783 4.50193 4.31466 4.50193C4.0015 4.50193 3.76567 4.25441 3.7618 3.92179C3.75793 3.67426 3.7618 3.4306 3.7618 3.18307C3.7618 3.00516 3.7618 2.82338 3.7618 2.64933C3.71927 2.6416 3.70381 2.63386 3.68448 2.63386C3.16254 2.63386 2.64061 2.63 2.12254 2.63386C1.52328 2.63386 1.13666 3.02836 1.13666 3.62785C1.13666 4.36657 1.13666 5.10529 1.13666 5.84401C1.13666 5.89428 1.14439 5.94456 1.14826 5.99871H16.8836C16.8836 5.20198 16.8836 4.41685 16.8836 3.63171C16.8836 3.03223 16.497 2.6416 15.8978 2.63773C15.4068 2.63773 14.9157 2.63773 14.4209 2.63773C14.3706 2.63773 14.3204 2.64547 14.2546 2.6532C14.2546 3.08251 14.2546 3.49635 14.2546 3.91018C14.2546 4.25827 14.0227 4.5058 13.7018 4.50967C13.377 4.50967 13.1373 4.26214 13.1296 3.90632C13.1257 3.55049 13.1296 3.1908 13.1296 2.83498C13.1296 2.7731 13.1257 2.71122 13.1218 2.64547H4.89073V2.63386Z",fill:"#777777"})})},9689:function(e,t,r){var a=r(9894),s=r.n(a),n=(r(809),r(4766));const o=({width:e="12",height:t="12"})=>(0,n.jsxs)("svg",{xmlns:"http://www.w3.org/2000/svg",width:e,height:t,fill:"none",viewBox:"0 0 12 12",className:"race-flag",children:[(0,n.jsxs)("g",{fill:"#000",clipPath:"url(#clip0_9915_3664)",children:[(0,n.jsx)("path",{d:"M12 2.939v.073l-2.343 6.56c-.146-.21-.259-.444-.422-.642-1.498-1.826-3.905-.333-5.793-.87a2.26 2.26 0 0 1-1.062-.673L.723 12 0 11.76v-.049L4.208 0c.3.606.76 1.14 1.388 1.38 1.93.737 4.535-.994 6.054 1.014.13.171.224.373.352.545zM7.195 5.977c.445-.024.92-.004 1.36.048l-.4 1.154c.207.092.432.137.635.242.184.095.369.24.526.378l.426-1.154a2.4 2.4 0 0 0-.846-.523c-.062-.022-.303
1-.06-.315-.11l.457-1.247c.21.048.418.113.613.212.202.103.371.27.57.37l.424-1.27c-.337-.278-.72-.504-1.15-.577l.397-1.153-.039-.032a6.6 6.6 0 0 0-1.32-.04L8.11 3.453c.447-.063.91-.012 1.36.024l-.448 1.287c-.46-.083-.92-.079-1.383-.049.15-.42.306-.838.446-1.262-.479.02-.953.09-1.43.121.136-.386.282-.771.399-1.165-.453.054-.91.016-1.361-.039-.146.382-.282.77-.42 1.156a2.3 2.3 0 0 1-.595-.198l-.601-.386-.44 1.252c.327.297.731.527 1.167.596.02.022-.076.277-.093.33-.09.26-.204.648-.317.886-.012.024-.02.063-.049.069a2.6 2.6 0 0 1-.889-.384c-.052-.034-.252-.23-.291-.196l-.393 1.131c.319.327.753.527 1.188.62l.4-1.163a6.2 6.2 0 0 0 1.381.046c-.138.386-.286.772-.398 1.166l1.415-.148c.158-.375.296-.775.436-1.163z"}),(0,n.jsx)("path",{d:"M6.656 3.571c-.15.42-.313.836-.445 1.263.476-.015.953-.091 1.43-.122-.15.42-.294.845-.446 1.265-.477.024-.972.115-1.453.145.15-.42.31-.838.446-1.262-.455 0-.908.018-1.36-.049.135-.434.292-.86.446-1.286.472.089.908.078 1.382.048z"})]}),(0,n.jsx)("defs",{children:(0,n.jsx)("clipPath",{id:"clip0_9915_3664",children:(0,n.jsx)("path",{fill:"#fff",d:"M0 0h12v12H0z"})})})]});o.propTypes={height:s().string,width:s().string},t.A=o},6858:function(e,t,r){r(809);var a=r(9894),s=r.n(a),n=r(4766);const o=({icon:e,titleMessage:t,bottomMessage:r,className:a})=>(0,n.jsxs)("div",{className:`not-found-league ${a}`,children:[t,e,(0,n.jsx)("p",{className:"not-found-league-bold",children:r})]});o.propTypes={bottomMessage:s().string,className:s().string,icon:s().node,titleMessage:s().string},t.A=o},1962:function(e,t,r){r.r(t);var a=r(809),s=r(9894),n=r.n(s),o=r(832),i=r(6222),l=r(7312),c=r(2237),d=r(152),u=r(5365),p=r(6858),m=r(3925),g=r(124),h=r(3710),f=r(2482),b=r(4766);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach(function(t){j(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function j(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const y=e=>{const{overrides:t={}}=e||{},{showCalendar:r,showOneLeague:s=!1,showDatesSwiper:n}=t,{groupedCompetitions:v=[],data:j={},today:y}=t||{},{"años":x=[],dias:N=[],meses:O=[],ligas:S=[]}=j||{},[C,T]=(0,a.useState)(null),[P,D]=(0,a.useState)(null),[A,E]=(0,a.useState)(!1),[k,U]=(0,a.useState)(void 0),[L,R]=(0,a.useState)(v||[]),[M,$]=(0,a.useState)(y);if(!(Array.isArray(v)&&Array.isArray(N)&&Array.isArray(O)&&Array.isArray(x)&&y?.length))return null;const F=(0,l.O2)(),V=N.filter(e=>e.disponible).map(e=>new Date(e.diaLocal)),{closestPastOrCurrent:I}=(0,c.eV)(N),B=(e="")=>"left"===e?(0,b.jsx)(i.gD,{className:`prev-arrow prev-slider-${F}`}):(0,b.jsx)(i.Ef,{className:`next-arrow next-slider-${F}`}),G=e=>(0,b.jsxs)(b.Fragment,{children:[B("left"),(0,b.jsx)("div",{className:"sport-calendar-swiper",children:(0,b.jsx)(o.A,{activeDateIndex:C,calendar:N,closestDateIndex:e,setActiveDay:D,setActiveDateIndex:T,setDisabledBtn:E,sliderGUID:F,pickerDateSelected:k})}),B("right")]}),z=(e=[],t="")=>e.map(e=>{const r=(0,g.aY)(e.competenciaData,t);return w(w({},e),{},{competenciaData:r})}),q=(e="")=>{U(e),(async(e="")=>{const{partidos:t=[],fullDateEvent:r=""}=await(0,g.qE)(e,c.US,c.Mq);
1if(""===r||!Array.isArray(t))return null;const a=z(t,r),s=N.findIndex(e=>e.dia===r)||0;t.length>0?R(a):R([]),$(r),D({dia:r}),T(s)})(e)},H=()=>{const e=x.map(e=>parseInt(e,10)),t=P?.dia?(0,g.th)(P.dia):M&&!P?.dia?(0,g.th)(M):null;return t?(0,b.jsx)("div",{className:"sport-calendar-picker-wrapper",children:(0,b.jsx)(d.A,{availableDays:V,months:O,onChange:q,value:t,yearsAvailable:e})}):null},_=(e,t="")=>(0,b.jsx)("p",{className:`sport-calendar-full-date${t}`,children:e}),W=(e,t)=>e?(0,b.jsx)("img",{src:e,alt:t,height:"22",width:"22",loading:"lazy",onError:e=>{e.target.src=c.vR}}):null,Z=(e,t)=>{const r=P?P?.dia:M,a=(0,f.Rl)({dia:r},c.US,c.Mq);return(0,b.jsx)(h.A,{match:e,date:a},t)};return(0,a.useEffect)(()=>{if(N.length>0&&!P){const{closestDateIndex:e}=(0,c.D6)(N),t=N.length>0?0:-1;T(-1===e?t:e)}},[N]),(0,a.useEffect)(()=>{null!==P&&(async e=>{if(s){const{calendario:t=[]}=j||{},r=[{competenciaData:[...t]}];if(V.length<15){const e=[];V.map(t=>{const a=String(t.getDate()).padStart(2,"0"),s=String(t.getMonth()+1).padStart(2,"0"),n=`${t.getFullYear()}-${s}-${a}`;return e.push(...z(r,n))}),R(e)}else{const t=z(r,e);R(t)}}else{const{partidos:t=[]}=await(0,g.fD)(e),r=z(t,e);R(r)}})(P.dia)},[P]),(0,a.useEffect)(()=>{I!==M&&(D({dia:I}),I||D({dia:N?.[0]?.dia||""}))},[I]),(0,b.jsxs)("div",{className:"sport-calendar",children:[(()=>{if(!n)return null;if(V.length<15)return null;const e=N.findIndex(e=>e.dia===I)||0;return(0,b.jsxs)("div",{className:"sport-calendar-swipper-wrapper",children:[G(e),H()]})})(),(()=>{if(!r)return null;if(!L.length)return(()=>{if(!k)return null;const e=k.toISOString(),{longDay:t=""}=(0,u.nS)(e)||{longDay:""},r=`No existe competencia para el ${t}`;return(0,b.jsx)(p.A,{icon:(0,b.jsx)(m.A,{type:"error"}),titleMessage:r,className:"error-notice-tennis"})})();const e=P?P?.dia:M,{formattedDate:t=""}=(0,f.Rl)({dia:e},c.US,c.Mq);return(0,b.jsxs)(b.Fragment,{children:[(()=>{if(s&&V.length<15){const e=V?.[0]||"",t=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0"),a=`${e.getFullYear()}-${r}-${t}`,{formattedDate:s=""}=(0,f.Rl)({dia:a},c.US,c.Mq);return _(s)}return _(t)})(),(0,b.jsx)("div",{className:"sport-calendar-matches-all",children:((e=[])=>Array.isArray(e)?e.map(({competenciaData:e=[],competitionId:t="",leagueName:r="",logo:a=""},n)=>{if(0===e.length)return null;const o=()=>(0,b.jsxs)(b.Fragment,{children:[W(a,r),r]});return(0,b.jsxs)(b.Fragment,{children:[(()=>{if(0===n||V.length>=15)return null;const e=V?.[n]||"",t=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0"),a=`${e.getFullYear()}-${r}-${t}`,{formattedDate:s=""}=(0,f.Rl)({dia:a},c.US,c.Mq);return _(s," sport-calendar-full-date-view2")})(),(0,b.jsxs)("div",{className:"sport-calendar-league",children:[(()=>{if(s)return null;const{url:e=""}=S.find(e=>e.id===t)||{};return e?(0,b.jsx)("a",{className:"sport-calendar-league-detail",href:e,children:o()}):(0,b.jsx)("div",{className:"sport-calendar-league-detail",children:o()})})(),(i=e,i.sort((e,t)=>new Date(e.fechaCompleta)-new Date(t.fechaCompleta)).map(Z))]},t)]});var i}):null)(L)})]})})()]})};y.propTypes={overrides:n().shape({})},t.default=y},3717:function(e,t,r){var a=r(809),s=r(9894),n=r.n(s),o=r(4375),i=r(9216),l=r(9525),c=r(9856),d=r(124),u=r(2237),p=r(4766);const m=["dia","diaUTC"];function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function h(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach(function(t){f(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function f(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const b=(0,a.lazy)(()=>r.e(734).then(r.bind(r,1962))),v=e=>{const{overrides:t={}}=e,{showOneLeague:r=!1,data:{calendario:s=[]}={}}=t||{},{timeZone:n}=(0,a.useContext)(c.A),g=(0,l.GP)(n)||"",f=new Date,v=f.getFullYear(),w=f.getMonth()+1,j=f.getDate(),y=`${v}-${w.toString().padStart(2,"0")}-${j.toString().padStart(2,"0")}`,x=r?{data:{partidos:[{competenciaData:[...s]}]},isLoading:!1,sportSlug:"futbol"}
1:(0,o.useContent)({source:"sport-event-scheduler",query:{sport:"futbol",event_date:y}}),{data:N={},isLoading:O=!0}=x||{isLoading:!0},{partidos:S=[]}=N||{partidos:[]};if(!Array.isArray(S))return null;const C=(e=[],t="")=>e.map(e=>{const r=(0,d.aY)(e.competenciaData,t);return h(h({},e),{},{competenciaData:r})}),T=C(S,y),P=(0,p.jsx)(i.A,{id:"SoccerCalendarModule",skeletonStyle:{height:"800px"}});if("undefined"==typeof window||O)return P;const D=t.data.dias.map(e=>{const{dia:t="",diaUTC:r=""}=e,a=function(e,t){if(null==e)return{};var r,a,s=function(e,t){if(null==e)return{};var r={};for(var a in e)if({}.hasOwnProperty.call(e,a)){if(-1!==t.indexOf(a))continue;r[a]=e[a]}return r}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(a=0;a<n.length;a++)r=n[a],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}(e,m);return{dia:t,diaUTC:r,disponible:(g?a[`disponible${g.toLowerCase()}`]:a.disponibleutc)||!1,diaLocal:(0,u.ko)(r,g)}})||[];const A=D.filter(e=>e.disponible).map(e=>new Date(e.diaLocal)),E=[];A.map(e=>{const t=String(e.getDate()).padStart(2,"0"),r=String(e.getMonth()+1).padStart(2,"0"),a=`${e.getFullYear()}-${r}-${t}`;return E.push(...C(S,a))});const k=A.length<15&&r?E:T,U=h(h({},e),{},{overrides:h(h({today:y,groupedCompetitions:k},t),{},{data:h(h({},t.data),{},{dias:D})})});return(0,p.jsx)(a.Suspense,{fallback:P,children:(0,p.jsx)(b,h({},U))})};v.propTypes={overrides:n().shape({})},t.A=v},3642:function(e,t,r){r.d(t,{A:function(){return g}});r(809);var a=r(9894),s=r.n(a),n=r(2237),o=r(4766);const i=({playerData:e})=>{const{isWinner:t,name:r="",flag:a="",scores:s=[],state:i=""}=e,l="Fixture"!==i,c=l&&!(void 0===t||!0===t)?"-loser":"",d=l?"margin":"";return(0,o.jsx)("div",{className:"tennis-score-card",children:(0,o.jsxs)("div",{className:`tennis-player-row${c}`,children:[(0,o.jsxs)("div",{className:"tennis-player-name",children:[(0,o.jsx)("p",{children:r}),(0,o.jsx)("img",{className:"tennis-player-flag",src:a,alt:`${r} flag`,onError:e=>{e.target.src=n.Uy}})]}),(0,o.jsxs)("div",{className:"tennis-player-scores",children:[s.map(({value:e="-",tieBreak:t,isSetWinner:r=!1},a)=>(0,o.jsxs)("span",{className:"tennis-player-score "+(r?"tennis-set-winner":""),children:["number"==typeof e?e:"-",null!=t&&(0,o.jsx)("span",{className:"tennis-player-score-tie-break",children:`(${t})`})]},a)),(()=>{const e=t?"◄":"";return(0,o.jsx)("span",{className:`tennis-player-arrow ${d}`,children:e})})()]})]})})};i.propTypes={playerData:s().shape({isWinner:s().bool,name:s().string,flag:s().string,scores:s().array,showArrow:s().bool,state:s().string})};var l=i,c=r(5365);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function u(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach(function(t){p(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function p(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const m=({match:e})=>{const{ronda:t={},localTime:r="",estado:a="",hora:s="",tipo:i="single"}=e,{localPlayer:d,visitorPlayer:p}=(0,c.qc)(e,i),m=["Fixture"].includes(a),g=["Playing"].includes(a),h=()=>{if(m)return(()=>{let e=r?.slice(0,5),t="date";return s||(e="Horario a confirmar",t="nodate"),(0,o.jsx)("div",{className:"tennis-player-card-time-tag",children:s?(0,o.jsxs)("p",{className:`tennis-player-card-time-${t}`,children:[e," hs"]}):e})})();const e=n.P9[a],t=g?"-red":"";return(0,o.jsxs)("div",{className:"sport-calendar-match-played",children:[g?(0,o.jsx)("div",{className:"story-card-ring blinker-live-white",children:(0,o.jsx)("div",{className:"story-card-dot blinker-live-red"})}):null,(0,o.jsx)("p",{className:`sport-calendar-match-played-state${t}`,children:e})]})};return(0,o.jsxs)("div",{className:"tennis-match-card",children:[(0,o.jsxs)("div",{className:"tennis-player-card-header",children:[(0,o.jsx)("span",{className:"tennis-match-card-title",children:t.titulo}),h()]}),(0,o.jsxs)("div",{className:"tennis-player-card-wrapper",children:[(0,o.jsx)(l,{playerData:u(u({},d),{},{state:a})}),(0,o.jsx)(l,{playerData:u(u({},p),{},{state:a})})]})]})};m.propTypes={match:s().shape({ronda:s().shape({titulo:s().string}),localTime:s().string,estado:s().string,hora:s().string,tipo:s().string})};var g=m},3082:function(e,t,r){var a=r(9894),s=r.n(a),n=(r(809),r(4766));const o=({title:e})=>(0,n.jsx)("h3",{className:"tennis-title",children:e});o.propTypes={title:s().string},t.A=o},6749:function(e,t,r){var a=r(9894),s=r.n(a),n=(r(809),r(3082)),o=r(3673),i=r(4766);const l=({stories:e=[],title:t=""})=>
1{if(!Array.isArray(e))return null;const r={stories:e,storyCardsNumber:"1",imageAspectRatio:"3:4"};return(0,i.jsxs)("div",{className:"ctn-latest-news",children:[(0,i.jsx)(n.A,{title:t||"ÚLTIMAS NOTICIAS"}),(0,i.jsx)("div",{className:"ctn-latest-stories",children:(0,i.jsx)(o.default,{overrides:r})})]})};l.propTypes={stories:s().array,title:s().string},t.A=l},942:function(e,t,r){r.r(t);var a=r(809),s=r(9894),n=r.n(s),o=r(832),i=r(6222),l=r(7312),c=r(2237),d=r(152),u=r(8588),p=r(3642),m=r(5365),g=r(6858),h=r(3925),f=r(2482),b=r(4766);function v(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function w(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?v(Object(r),!0).forEach(function(t){j(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):v(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function j(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const y=e=>{const{overrides:t={}}=e||{},{showCalendar:r}=t,{showDatesSwiper:s}=t,{groupedCompetitions:n=[],data:v={},today:j}=t||{},{"años":y=[],dias:x=[],meses:N=[]}=v||{},[O,S]=(0,a.useState)(null),[C,T]=(0,a.useState)(null),[P,D]=(0,a.useState)(!1),[A,E]=(0,a.useState)(void 0),[k,U]=(0,a.useState)(n||[]),[L,R]=(0,a.useState)(j);if(!(Array.isArray(n)&&Array.isArray(x)&&Array.isArray(N)&&Array.isArray(y)&&j?.length))return null;const M=(0,l.O2)(),{closestPastOrCurrent:$}=(0,c.eV)(x),F=(e="")=>"left"===e?(0,b.jsx)(i.gD,{className:`prev-arrow prev-slider-${M}`}):(0,b.jsx)(i.Ef,{className:`next-arrow next-slider-${M}`}),V=e=>(0,b.jsxs)(b.Fragment,{children:[F("left"),(0,b.jsx)("div",{className:"sport-calendar-swiper",children:(0,b.jsx)(o.A,{activeDateIndex:O,calendar:x,closestDateIndex:e,setActiveDay:T,setActiveDateIndex:S,setDisabledBtn:D,sliderGUID:M,pickerDateSelected:A})}),F("right")]}),I=(e=[],t="")=>e.map(e=>{const r=(0,u.aY)(e.competenciaData,t);return w(w({},e),{},{competenciaData:r})}),B=(e="")=>{E(e),(async(e="")=>{const{partidos:t=[],fullDateEvent:r=""}=await(0,u._w)(e,c.US,c.Mq);
1if(""===r||!Array.isArray(t))return null;const a=I(t,r),s=x.findIndex(e=>e.dia===r)||0;t.length>0?U(a):U([]),R(r),T({dia:r}),S(s)})(e)},G=()=>{const e=y.map(e=>parseInt(e,10)),t=C?.dia?(0,u.nO)(C.dia):L&&!C?.dia?(0,u.nO)(L):null;return t?(0,b.jsx)("div",{className:"sport-calendar-picker-wrapper",children:(0,b.jsx)(d.A,{value:t,onChange:B,yearsAvailable:e,months:N})}):null},z=(e="",t="")=>(0,b.jsxs)("div",{className:"tennis-competition-title-logo",children:[(0,b.jsx)("img",{src:t,alt:e,className:"tennis-competition-logo"}),(0,b.jsx)("h3",{children:e})]});return(0,a.useEffect)(()=>{if(x.length>0&&!C){const{closestDateIndex:e}=(0,c.D6)(x),t=x.length>0?0:-1;S(-1===e?t:e)}},[x]),(0,a.useEffect)(()=>{null!==C&&(async e=>{const{partidos:t=[]}=await(0,u.fl)(e),r=I(t,e);U(r)})(C.dia)},[C]),(0,a.useEffect)(()=>{$!==L&&T({dia:$})},[$]),(0,b.jsxs)("div",{className:"sport-calendar",children:[(()=>{if(!s)return null;const e=x.findIndex(e=>e.dia===$)||0;return(0,b.jsxs)("div",{className:"sport-calendar-swipper-wrapper",children:[V(e),G()]})})(),(()=>{if(!r)return null;if(!k.length)return(()=>{if(!A)return null;const e=A.toISOString(),{longDay:t=""}=(0,m.nS)(e)||{longDay:""},r=`No existe competencia para el ${t}`;return(0,b.jsx)(g.A,{icon:(0,b.jsx)(h.A,{type:"error"}),titleMessage:r,className:"error-notice-tennis"})})();const e=C?C?.dia:L,{formattedDate:t=""}=(0,f.Rl)({dia:e},c.US,c.Mq);return(0,b.jsxs)(b.Fragment,{children:[(a=t,(0,b.jsx)("p",{className:"sport-calendar-full-date",children:a})),((e=[])=>Array.isArray(e)?e.map(({competenciaData:e=[],torneo:t={}})=>{const{id:r="",competencia:a=""}=t,{nombre:s="",logo:n=""}=a||{};return(0,b.jsxs)("div",{className:"ctn-tenis-event-overview",children:[z(`${s}`,n),(0,b.jsx)("div",{className:"ctn-tenis-event-overview",children:(0,b.jsx)("div",{className:"tennis-calendar-accordion-content",children:e.map((e,t)=>(0,b.jsx)(p.A,{match:e},t))})})]},r)}):null)(k)]});var a})()]})};y.propTypes={overrides:n().shape({})},t.default=y},152:function(e,t,r){var a=r(809),s=r.n(a),n=r(9894),o=r.n(n),i=r(5921),l=r(3925),c=r(2237),d=r(4766);const u=r(8388),{default:p}=u["react-datepicker"],m=s().forwardRef(({onClick:e,value:t},r)=>{const a=t?.split(","),s=`${a[0]?.slice(0,3)} ${a[1]}`;return(0,d.jsx)(i.A,{handleBlur:()=>{},handleChange:()=>{},handleClick:e,icon:(0,d.jsx)(l.A,{}),iconPlacement:"start",ref:r,value:s,label:""})});m.displayName="InputDate";const g=(e=[],t=()=>{},r="",a="")=>{if(1===e?.length)return null;return(0,d.jsx)("select",{id:a,className:"date-picker-calendar-select",value:r,onChange:t,children:e?.map(e=>(0,d.jsx)("option",{value:e,children:e},e))})},h=e=>{const{onChange:t,value:r,yearsAvailable:a=[],months:s=[],availableDays:n=[]}=e;return(0,d.jsx)(p,{autoComplete:"off",className:"field-input",customInput:(0,d.jsx)(m,{}),dateFormat:"MMM, yyyy",dropdownMode:"select",includeDates:n,locale:c.Hg,onChange:t,renderCustomHeader:({date:e,changeYear:t,changeMonth:r})=>{const n=s,o=a,i=new Date(e),l=s[i.getMonth()],c=i.getFullYear();return(0,d.jsxs)("div",{style:{margin:10,display:"flex",justifyContent:"center",gap:"16px"},children:[g(n,({target:{value:e}})=>{r(s.indexOf(e))},l,"month"),g(o,({target:{value:e}})=>{t(e)},c,"year")]})},selected:r,showMonthDropdown:!0,showPopperArrow:!0,showYearDropdown:!0})};h.propTypes={availableDays:o().array,errorFlag:o().bool,fieldName:o().string,isGlobalCalendar:o().bool,months:o().array,onChange:o().func,onChangeBirthday:o().func,onSelect:o().func,pickerDates:o().shape({}),placeholder:o().string,step:o().number,text:o().string,value:o().instanceOf(Date),yearsAvailable:o().array},t.A=h},832:function(e,t,r){r.d(t,{A:function(){return b}});var a=r(809),s=r(9894),n=r.n(s),o=r(1445),i=r(7382),l=r(2237),c=r(2482),d=r(4766);const u=({activeDateIndex:e="",date:t="",onClick:r=()=>{},position:a=""})=>{const s=e===a?" sport-calendar-date-active":"",{day:n="",dayName:o="",monthName:i="",year:u=""}=(0,c.Rl)(t,l.US,l.Mq),p=!1===t?.disponible;return(0,d.jsxs)("button",{className:`sport-calendar-date${s} ${p?"non-available-day":""} `,disabled:p,onClick:()=>{r(t,a)},type:"button",children:[(0,d.jsxs)("p",{className:"sport-calendar-date-name",children:[o," ",n]}),(0,d.jsxs)("p",{className:"sport-calendar-date-day",children:[i," ",u]})]})};u.propTypes={date:n().string,activeDateIndex:n().number,position:n().number,onClick:n().func};var p=u;function m(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),r.push.apply(r,a)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};
1t%2?m(Object(r),!0).forEach(function(t){h(e,t,r[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):m(Object(r)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))})}return e}function h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var a=r.call(e,t||"default");if("object"!=typeof a)return a;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const f=({activeDateIndex:e,setActiveDay:t=()=>{},setActiveDateIndex:r=()=>{},calendar:s=[],closestDateIndex:n,sliderGUID:l="",setDisabledBtn:c=()=>{},pickerDateSelected:u=""})=>{if(!Array.isArray(s))return null;const m=(0,a.useRef)(null),h=((e=[],t)=>{if(!Array.isArray(e)||0===e.length)return"";const r=((e="")=>{if(!e)return"";const t=new Date(e),r=String(t.getDate()).padStart(2,"0"),a=String(t.getMonth()+1).padStart(2,"0");return`${t.getFullYear()}-${a}-${r}`})(t),a=new Date(r),s=e.map(e=>({original:e.dia,diff:Math.abs(a-new Date(e.dia))})).sort((e,t)=>e.diff-t.diff);return s[0]?.original||""})(s,u),f=-1===e?s.findIndex(e=>e.dia===h):e,b=(0,a.useMemo)(()=>({onSlideChange:e=>{const{isEnd:t}=e;t&&c(t),s&&s?.length>0&&e?.visibleSlidesIndexes&&c(e?.visibleSlidesIndexes?.includes(s?.length-1))},a11y:{prevSlideMessage:"Fecha anterior",nextSlideMessage:"Fecha siguiente"},slidesPerView:"auto",spaceBetween:6,slidesPerGroup:1,modules:[o.Vx,o.Jq],navigation:{nextEl:`.next-slider-${l}`,prevEl:`.prev-slider-${l}`},autoplay:!1,initialSlide:n,centeredSlides:!0,shortSwipes:!1,longSwipesRatio:.3,longSwipesMs:100,watchOverflow:!0,watchSlidesProgress:!0,centeredSlidesBounds:!0}),[n,s]);(0,a.useEffect)(()=>{if(m?.current&&m?.current?.swiper&&s){const e=m?.current?.swiper;s?.length-1===e.activeIndex&&c(!0)}},[n]),(0,a.useEffect)(()=>{m?.current&&m.current.swiper.slideTo(f,500,!0)},[e]);const v=(e="",a)=>{e.disponible&&(t(e),r(a))};return(0,d.jsx)(i.RC,g(g({className:"sport-calendar-agenda-swiper",ref:m},b),{},{children:(()=>{if(!s.length>0)return null;return s.map((t,r)=>(0,d.jsx)(i.qr,{children:(0,d.jsx)(p,{activeDateIndex:e,date:t,onClick:v,position:r})},r))})()}))};f.propTypes={activeDateIndex:n().number,closestDateIndex:n().number,calendar:n().array,isMobile:n().bool,setActiveDay:n().func,setDisabledBtn:n().func,setActiveDateIndex:n().func,sliderGUID:n().string,pickerDateSelected:n().date};var b=f}}]);

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.