PageSourceSearch

https://www.infofueguina.com/_next/static/chunks/0wqaqcrjwnrq0.js

js infofueguina.com collected 2026-10-02 09:59:34 UTC 79,334 bytes, 1 lines download raw bytes

1(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,823322,e=>{"use strict";let t=(0,e.i(895345).default)("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);e.s(["X",0,t],823322)},26958,e=>{"use strict";var t=e.i(289704),r=e.i(280515);e.s(["CardCoverVideo",0,function(e){let{src:a,poster:n,className:l=""}=e,i=(0,r.useRef)(null),[s,o]=(0,r.useState)(!1);return(0,r.useEffect)(()=>{var e,t;let r=i.current;if(!r||(null==(e=(t=window).matchMedia)?void 0:e.call(t,"(prefers-reduced-motion: reduce)").matches))return;let a=new IntersectionObserver(e=>{let[t]=e;return o(!!(null==t?void 0:t.isIntersecting))},{rootMargin:"200px 0px",threshold:.01});return a.observe(r),()=>a.disconnect()},[]),(0,r.useEffect)(()=>{let e=i.current;e&&(s?e.play().catch(()=>{}):e.pause())},[s]),(0,t.jsx)("video",{ref:i,src:s?a:void 0,poster:n??void 0,muted:!0,loop:!0,playsInline:!0,preload:"none","aria-hidden":"true",tabIndex:-1,className:`pointer-events-none ${l}`})}])},828014,e=>{"use strict";var t=e.i(289704),r=e.i(280515),a=e.i(715445),n=e.i(801647),l=e.i(736264),i=e.i(322426);e.s(["NewsCarousel",0,function(e){let{children:s,mostrarFlechas:o=!1}=e,c=(0,r.useRef)(null),[d,u]=(0,r.useState)(!1),[m,x]=(0,r.useState)(!1),p=(0,l.useLocale)(),h=(0,r.useCallback)(()=>{let e=c.current;e&&(u(e.scrollLeft>4),x(e.scrollLeft+e.clientWidth<e.scrollWidth-4))},[]);function f(e){let t=c.current;t&&t.scrollBy({left:e*t.clientWidth*.8,behavior:"smooth"})}(0,r.useEffect)(()=>{h();let e=c.current;if(e)return e.addEventListener("scroll",h,{passive:!0}),window.addEventListener("resize",h),()=>{e.removeEventListener("scroll",h),window.removeEventListener("resize",h)}},[h]);let g=(0,r.useRef)({startX:0,startScroll:0,activo:!1,movio:!1}),b=(0,r.useRef)(!1);function v(e){let t=c.current,r=g.current;!r.activo||(r.activo=!1,t&&r.movio&&(t.hasPointerCapture(e.pointerId)&&t.releasePointerCapture(e.pointerId),t.style.scrollSnapType="",t.style.scrollBehavior="",t.style.userSelect="",t.style.cursor="",b.current=!0))}function j(e){return`absolute top-1/2 -translate-y-1/2 ${o?"left"===e?"left-1":"right-1":"left"===e?"left-0 -translate-x-1/2":"right-0 translate-x-1/2"} z-10 ${o?"flex opacity-100":"hidden sm:flex opacity-0 group-hover/carousel:opacity-100"} items-center justify-center size-9 rounded-full bg-background border shadow-md text-foreground transition-opacity hover:bg-accent`}let w=d||m;return(0,t.jsxs)("div",{className:"relative group/carousel",children:[(0,t.jsx)("div",{ref:c,onPointerDown:function(e){let t=c.current;t&&"mouse"===e.pointerType&&0===e.button&&(b.current=!1,g.current={startX:e.clientX,startScroll:t.scrollLeft,activo:!0,movio:!1})},onPointerMove:function(e){let t=c.current,r=g.current;if(!t||!r.activo)return;let a=e.clientX-r.startX;if(!r.movio){if(5>Math.abs(a))return;r.movio=!0,t.setPointerCapture(e.pointerId),t.style.scrollSnapType="none",t.style.scrollBehavior="auto",t.style.userSelect="none",t.style.cursor="grabbing"}t.scrollLeft=r.startScroll-a},onPointerUp:v,onPointerCancel:v,onClickCapture:function(e){b.current&&(b.current=!1,e.preventDefault(),e.stopPropagation())},className:`flex w-full min-w-0 max-w-full gap-4 overflow-x-auto snap-x snap-mandatory scroll-smooth pb-1 [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden${w?" cursor-grab":""}`,children:s}),d&&(0,t.jsx)("button",{type:"button","aria-label":(0,i.t)(p,"Anterior","Previous"),onClick:()=>f(-1),className:j("left"),children:(0,t.jsx)(a.ChevronLeft,{className:"size-5"})}),m&&(0,t.jsx)("button",{type:"button","aria-label":(0,i.t)(p,"Siguiente","Next"),onClick:()=>f(1),className:j("right"),children:(0,t.jsx)(n.ChevronRight,{className:"size-5"})})]})}])},867165,e=>{"use strict";let t=(0,e.i(895345).default)("Play",[["polygon",{points:"6 3 20 12 6 21 6 3",key:"1oa8hb"}]]);e.s(["Play",0,t],867165)},472125,e=>{"use strict";var t=e.i(289704),r=e.i(280515),a=e.i(867165),n=e.i(823322),l=e.i(480590),i=e.i(736264),s=e.i(322426);function o(e){let{item:a,onClose:i,locale:o}=e;return(0,r.useEffect)(()=>{function e(e){"Escape"===e.key&&i()}document.addEventListener("keydown",e);let t=document.body.style.overflow;return document.body.style.overflow="hidden",()=>{document.removeEventListener("keydown",e),document.body.style.overflow=t}},[i]),(0,t.jsxs)("div",{className:"fixed inset-0 z-[100] flex items-center justify-center bg-black/90 backdrop-blur-sm",onClick:i,role:"dialog","aria-modal":"true","aria-label":a.titulo,children:[(0,t.jsx)("button",{type:"button","aria-label":(0,s.t)(o,"Cerrar","Close"),onClick:i,className:"absolute top-4 right-4 z-10 flex items-center justify-center size-10 rounded-full bg-white/10 text-white hover:bg-white/20 transition-colors",children:(0,t.jsx)(n.X,{className:"size-5"})}),(0,t.jsxs)("div",{className:"flex max-w-[94vw] flex-col items-center gap-3",onClick:e=>e.stopPropagation(),children:[(0,t.jsx)("div",{className:"relative h-[82vh] max-h-[82vh] aspect-[9/16] max-w-[94vw] rounded-xl overflow-hidden bg-black shadow-2xl",children:a.videoUrl?(0,t.jsx)("video",{src:a.videoUrl,controls:!0,autoPlay:!0,playsInl
1ine:!0,poster:a.thumbnailUrl||void 0,className:"w-full h-full object-contain",children:(0,s.t)(o,"Tu navegador no soporta video HTML5.","Your browser does not support HTML5 video.")}):a.bunnyVideoId?(0,t.jsx)(l.VideoPlayer,{cdnHostname:a.videoCdnHost,videoId:a.bunnyVideoId,autoplay:!0,orientation:"vertical",poster:a.thumbnailUrl,title:a.titulo,className:"absolute inset-0 h-full w-full"}):null}),(0,t.jsxs)("div",{className:"flex flex-wrap items-center justify-center gap-2",children:[(0,t.jsx)("a",{href:a.landingHref,className:"rounded-full bg-white/15 px-4 py-1.5 text-xs font-semibold text-white backdrop-blur-md hover:bg-white/25 transition-colors",children:(0,s.t)(o,"Ver página del video","Go to video page")}),a.articleHref&&(0,t.jsx)("a",{href:a.articleHref,className:"rounded-full bg-white/15 px-4 py-1.5 text-xs font-semibold text-white backdrop-blur-md hover:bg-white/25 transition-colors",children:(0,s.t)(o,"Ver la nota completa","Read the full story")})]})]})]})}e.s(["VerticalVideoCard",0,function(e){let{item:n}=e,[l,c]=(0,r.useState)(!1),[d,u]=(0,r.useState)(!1),m=(0,i.useLocale)(),x=function(e){if(!e||e<=0)return null;let t=Math.floor(e/60);return`${t}:${String(e%60).padStart(2,"0")} Min`}(n.duracion),p=d&&n.previewAnimatedUrl?n.previewAnimatedUrl:n.thumbnailUrl;return(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("button",{type:"button",onClick:()=>c(!0),onMouseEnter:()=>u(!0),onMouseLeave:()=>u(!1),className:"group/card block w-full text-left","aria-label":`${(0,s.t)(m,"Reproducir","Play")}: ${n.titulo}`,children:[(0,t.jsxs)("div",{className:"relative aspect-[9/16] w-full overflow-hidden rounded-lg bg-muted",children:[p?(0,t.jsx)("img",{src:p,alt:n.titulo,loading:"lazy",className:"absolute inset-0 h-full w-full object-cover transition-transform duration-300 group-hover/card:scale-[1.03]"}):(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center bg-gradient-to-b from-black/70 to-black",children:(0,t.jsx)(a.Play,{className:"size-10 text-white/40"})}),(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/40 via-transparent to-transparent"}),(0,t.jsx)("div",{className:"absolute inset-0 flex items-center justify-center opacity-0 group-hover/card:opacity-100 transition-opacity",children:(0,t.jsx)("span",{className:"flex items-center justify-center size-14 rounded-full bg-white/20 backdrop-blur-md",children:(0,t.jsx)(a.Play,{className:"size-6 text-white fill-white ml-0.5"})})}),x&&(0,t.jsx)("span",{className:"absolute bottom-2 right-2 rounded bg-black/70 px-1.5 py-0.5 text-[11px] font-semibold text-white",children:x})]}),(0,t.jsxs)("div",{className:"pt-2",children:[(0,t.jsx)("p",{className:"text-xs font-semibold text-primary",children:n.kicker||"Video"}),(0,t.jsx)("h3",{className:"mt-1 text-sm font-bold leading-snug text-foreground line-clamp-2 group-hover/card:underline decoration-2 underline-offset-2",children:n.titulo})]})]}),l&&(0,t.jsx)(o,{item:n,onClose:()=>c(!1),locale:m})]})}])},506965,e=>{"use strict";var t=e.i(289704),r=e.i(280515),a=e.i(867165),n=e.i(736264),l=e.i(322426),i=e.i(828014);let s="shrink-0 snap-start basis-[72%] sm:basis-[46%] md:basis-[33%] lg:basis-[27%] xl:basis-[23%]";function o(e){let{item:i}=e,[s,o]=(0,r.useState)(!1),[c,d]=(0,r.useState)(!1),u=(0,n.useLocale)();if(s){var m;let e;return(0,t.jsx)("div",{className:"relative aspect-[9/16] w-full overflow-hidden rounded-lg bg-black",children:(0,t.jsx)("iframe",{src:(m=i.id,e=`https://www.youtube.com/embed/${m}?controls=0&rel=0&modestbranding=1&playsinline=1&autoplay=1`,`${e}&origin=${encodeURIComponent(window.location.origin)}`),title:i.titulo||"YouTube video player",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"absolute inset-0 h-full w-full border-0"})})}let x=`https://i.ytimg.com/vi/${i.id}/hqdefault.jpg`,p=c?x:i.thumbnail??x;return(0,t.jsxs)("button",{type:"button",onClick:()=>o(!0),"aria-label":i.titulo?`${(0,l.t)(u,"Reproducir","Play")}: ${i.titulo}`:(0,l.t)(u,"Reproducir video","Play video"),className:"group/card relative block aspect-[9/16] w-full overflow-hidden rounded-lg bg-muted text-left",children:[p?(0,t.jsx)("img",{src:p,alt:i.titulo,loading:"lazy",onError:()=>d(!0),className:"absolute inset-0 h-full w-full object-cover transition-transform duration-300 group-hover/card:scale-[1.03]"}):(0,t.jsx)("div",{className:"absolute inset-0 bg-gradient-to-b from-black/70 to-black"}),(0,t.jsx)("span",{className:"absolute inset-0 bg-gradient-to-t from-black/50 via-trans
1parent to-transparent"}),(0,t.jsx)("span",{className:"absolute inset-0 flex items-center justify-center",children:(0,t.jsx)("span",{className:"flex size-14 items-center justify-center rounded-full bg-black/45 backdrop-blur-sm transition-transform duration-200 group-hover/card:scale-110",children:(0,t.jsx)(a.Play,{className:"ml-0.5 size-6 fill-white text-white"})})})]})}e.s(["ShortsWidget",0,function(e){let{titulo:a,playlist:n,limit:l,mostrarFlechas:c}=e,[d,u]=(0,r.useState)(null);if((0,r.useEffect)(()=>{let e=!1;return fetch(`/api/shorts/${encodeURIComponent(n)}`).then(e=>e.ok?e.json():Promise.reject(Error(`${e.status}`))).then(t=>{e||u((t.items??[]).filter(e=>"string"==typeof(null==e?void 0:e.id)&&""!==e.id))}).catch(()=>{e||u([])}),()=>{e=!0}},[n]),null!==d&&0===d.length)return null;let m=(null==d?void 0:d.slice(0,l))??null;return(0,t.jsxs)("section",{children:[(0,t.jsx)("div",{className:"mb-3 flex items-center justify-between",children:(0,t.jsxs)("span",{className:"inline-flex items-center gap-2",children:[(0,t.jsx)("span",{className:"inline-block h-4 w-1 rounded-full bg-primary"}),(0,t.jsx)("span",{className:"text-sm font-bold uppercase tracking-widest text-foreground",children:a})]})}),(0,t.jsx)(i.NewsCarousel,{mostrarFlechas:c,children:m?m.map(e=>(0,t.jsx)("div",{className:s,children:(0,t.jsx)(o,{item:e})},e.id)):Array.from({length:Math.min(l,6)},(e,r)=>(0,t.jsx)("div",{className:s,children:(0,t.jsx)("div",{className:"aspect-[9/16] w-full animate-pulse rounded-lg bg-muted"})},r))})]})}])},746388,e=>{"use strict";var t=e.i(289704),r=e.i(280515);e.s(["TagBar",0,function(e){let{titulo:a,tags:n}=e,l=(0,r.useRef)(null),i=e=>{var t;return null==(t=l.current)?void 0:t.scrollBy({left:e,behavior:"smooth"})};return 0===n.length?null:(0,t.jsx)("div",{className:"bg-muted py-4 px-2.5 md:px-0",children:(0,t.jsxs)("div",{className:"flex items-center flex-nowrap",children:[a&&(0,t.jsxs)("div",{className:"flex items-center flex-none pr-2 gap-x-3",children:[(0,t.jsx)("span",{className:"inline-flex w-1.5 h-1.5 rounded-full bg-primary animate-pulse"}),(0,t.jsx)("p",{className:"text-xs font-medium uppercase text-primary",children:a})]}),(0,t.jsxs)("div",{className:"relative flex items-center pl-2.5 overflow-hidden grow flex-nowrap",children:[(0,t.jsx)("button",{type:"button","aria-label":"Temas anteriores",onClick:()=>i(-150),className:"inline-flex items-center justify-center px-3",children:(0,t.jsx)("svg",{width:"7",height:"12",viewBox:"0 0 7 12",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"M6 1 1 6l5 5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}),(0,t.jsx)("ul",{ref:l,className:"flex w-full gap-2 overflow-x-auto scroll-smooth whitespace-nowrap [scrollbar-width:none] [&::-webkit-scrollbar]:hidden",children:n.map(e=>(0,t.jsx)("li",{className:"relative flex items-center mr-2 last:mr-0 flex-nowrap gap-x-2",children:(0,t.jsx)("a",{href:e.url,className:"relative block px-4 text-sm font-medium leading-none transition-colors duration-200 whitespace-nowrap hover:text-primary after:content-['•'] after:block after:absolute after:left-full after:top-1/2 after:-translate-y-1/2 after:text-primary",children:e.nombre})},e.id))}),(0,t.jsx)("button",{type:"button","aria-label":"Más temas",onClick:()=>i(150),className:"inline-flex items-center justify-center pl-3 ml-auto",children:(0,t.jsx)("svg",{width:"7",height:"12",viewBox:"0 0 7 12",fill:"none","aria-hidden":"true",children:(0,t.jsx)("path",{d:"m1 1 5 5-5 5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})})]})]})})}])},943377,e=>{"use strict";var t=e.i(289704),r=e.i(823322),a=e.i(736264),n=e.i(322426);function l(e){let t=e.closest(".modulo");if(!t)return;t.hidden=!0;let r=t.closest(".portada-row");r&&!r.querySelector(".modulo:not([hidden]), .news-article, .portada-banner-sticky")&&(r.hidden=!0)}e.s(["CerrarModulo",0,function(e){let{label:i,className:s,iconClassName:o}=e,c=(0,a.useLocale)();return(0,t.jsx)("button",{type:"button","aria-label":i??(0,n.t)(c,"Cerrar","Close"),className:s,onClick:e=>l(e.currentTarget),children:(0,t.jsx)(r.X,{className:o,"aria-hidden":"true"})})},"ocultarModulo",0,l])},40900,e=>{"use strict";var t=e.i(289704),r=e.i(280515),a=e.i(736264),n=e.i(322426);function l(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase()}function i(e){let{variacion:r}=e;
1return"up"===r?(0,t.jsx)("span",{"aria-hidden":!0,className:"slider-monedas__flecha slider-monedas__flecha--up size-0 shrink-0 border-x-[7px] border-x-transparent border-b-[9px] border-b-[#76a97c]"}):"down"===r?(0,t.jsx)("span",{"aria-hidden":!0,className:"slider-monedas__flecha slider-monedas__flecha--down size-0 shrink-0 border-x-[7px] border-x-transparent border-t-[9px] border-t-[#c07272]"}):(0,t.jsx)("svg",{"aria-hidden":!0,className:"slider-monedas__flecha slider-monedas__flecha--equal h-2 w-3 shrink-0",viewBox:"3.75 7.5 16.5 9",fill:"none",stroke:"#009FE3",strokeWidth:"1.5",children:(0,t.jsx)("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M4.499 8.248h15m-15 7.501h15"})})}function s(e){let{hacia:r}=e;return(0,t.jsx)("svg",{"aria-hidden":!0,width:"7",height:"12",viewBox:"0 0 7 12",fill:"none",children:(0,t.jsx)("path",{d:"izquierda"===r?"M6 1 1 6l5 5":"m1 1 5 5-5 5",stroke:"currentColor",strokeWidth:"1.6",strokeLinecap:"round",strokeLinejoin:"round"})})}e.s(["SliderMonedasWidget",0,function(e){let{titulo:o,valores:c,manuales:d}=e,[u,m]=(0,r.useState)(null),x=(0,r.useRef)(null),p=(0,a.useLocale)(),h=(0,n.isEnglish)(p),f=e=>{var t;return null==(t=x.current)?void 0:t.scrollBy({left:e,behavior:"smooth"})};return((0,r.useEffect)(()=>{let e=!1;return fetch("/api/cotizaciones").then(e=>e.ok?e.json():Promise.reject(Error(`${e.status}`))).then(t=>{if(e)return;let r=new Map;for(let e of t.items??[])r.set(l(e.nombre),e);let a=[];for(let e of c){let t=r.get(l(e.nombre));t&&a.push({etiqueta:h&&e.etiquetaEn?e.etiquetaEn:e.etiqueta,display:t.display,variacion:t.variacion})}m([...a,...d])}).catch(()=>{e||m(d.length>0?[...d]:[])}),()=>{e=!0}},[]),null!==u&&0===u.length)?null:(0,t.jsxs)("div",{className:"slider-monedas -mx-4 flex min-h-9 items-center gap-2.5 bg-muted px-4 py-2 text-foreground sm:-mx-6 md:mx-0",children:[(0,t.jsx)("p",{className:"slider-monedas__titulo hidden shrink-0 border-r border-border pr-2.5 text-sm font-semibold leading-none lg:block",children:o??(0,n.t)(p,"Dólar hoy","Dollar rates today")}),(0,t.jsx)("button",{type:"button","aria-label":(0,n.t)(p,"Cotizaciones anteriores","Previous rates"),onClick:()=>f(-150),className:"slider-monedas__nav slider-monedas__nav--prev inline-flex shrink-0 items-center justify-center px-2",children:(0,t.jsx)(s,{hacia:"izquierda"})}),null===u?(0,t.jsx)("div",{className:"flex grow items-center gap-6 overflow-hidden","aria-hidden":!0,children:[0,1,2,3,4].map(e=>(0,t.jsx)("span",{className:"h-3 w-24 shrink-0 animate-pulse rounded bg-muted-foreground/20"},e))}):(0,t.jsx)("div",{ref:x,className:"slider-monedas__track flex grow snap-x items-center gap-6 overflow-x-auto scroll-smooth [scrollbar-width:none] [-ms-overflow-style:none] [&::-webkit-scrollbar]:hidden",children:u.map(e=>(0,t.jsxs)("div",{className:"slider-monedas__item flex shrink-0 snap-start items-center gap-2 first:ml-auto last:mr-auto",children:[(0,t.jsx)(i,{variacion:e.variacion}),(0,t.jsx)("span",{className:"slider-monedas__nombre text-xs font-semibold leading-none text-nowrap",children:e.etiqueta}),(0,t.jsx)("span",{className:"slider-monedas__valor text-xs leading-none text-nowrap",children:e.display})]},e.etiqueta))}),(0,t.jsx)("button",{type:"button","aria-label":(0,n.t)(p,"Más cotizaciones","More rates"),onClick:()=>f(150),className:"slider-monedas__nav slider-monedas__nav--next inline-flex shrink-0 items-center justify-center px-2",children:(0,t.jsx)(s,{hacia:"derecha"})})]})}])},492186,e=>{"use strict";var t=e.i(289704),r=e.i(280515),a=e.i(736264),n=e.i(322426);let l={mx:"es-MX",ar:"es-AR"};function i(e,t){return null===e?null:t?e*(1+t/100):e}e.s(["CotizadorDolarWidget",0,function(e){let{titulo:s,pais:o,valor:c,margenCompra:d,margenVenta:u,decimales:m,mostrarFecha:x,colorFondo:p,colorTexto:h,colorRotulo:f,imagenFondo:g,alto:b,ancho:v,fallbackCompra:j,fallbackVenta:w}=e,[y,N]=(0,r.useState)(void 0),k=(0,a.useLocale)();(0,r.useEffect)(()=>{let e=!1,t=0,r=null!==j||null!==w?{compra:j,venta:w,fix:w,consultadoEn:null}:null,a=()=>{fetch(`/api/cotizaciones/oficial/${o}`).then(e=>e.ok?e.json():Promise.reject(Error(`${e.status}`))).then(a=>{if(e)return;let n=null!==a.compra||null!==a.venta||null!==a.fix;n&&(t=Date.now()),N(e=>n?{compra:a.compra,venta:a.venta,fix:a.fix,consultadoEn:new Date().toISOString()}:e??r)}).catch(()=>{e||N(e=>e??r)})};a();let n=window.setInterval(()=>{e||document.hidden||a()},6e5),l=()=>{!document.hidden&&Date.now()-t>=6e5&&a()};return document.addEventListener("visibilitychange",l),()=>{e=!0,window.clearInterval(n),document.removeEventListener("visibilitychange",l)}},[]);let C=(0,n.isEnglish)(k),S=C?k:l[o]??"es-MX",$=new Intl.NumberFormat(S,{minimumFractionDigits:m,maximumFractionDigits:m}),E={backgroundColor:p,color:h,...g?{backgroundImage:`url(${g})`,backgroundSize:"cover",backgroundPosition:"center"}:{},...b?{height:`${b}px`}:{},...v?{width:`${v}px`,maxWidth:"100%"}:{}};if(null===y)return null;let _="fix"===c?[{rotulo:(0,n.t)(k,"Valor","Rate"),monto:(null==y?void 0:y.fix)??(null==y?void 0:y.venta)??null}]:[{rotulo:(0,n.t)(k,"Compra","Buy"),monto:i((null==y?void 0:y.compra)??null,d)},{rotulo:(0,n.t)(k,"Venta","Sell"),monto:i((null==y?void 0:y.venta)??null,u)}];if(void 0!==y&&_.every(e=>null===e.monto))return null;let T=x&&(null==y?void 0:y.consultadoEn)?new Date(y.consultadoEn).toLocaleDateString(S,{day:"2-digit",month:"2-digit",year:"numeric"}):null;return(0,t.jsxs)("div",{className:"cotizador-dolar flex flex-col justify-center gap-1 px-3 py-2.5 text-center",style:E,children:[(0,t.jsx)("p",{className:"cotizador-dolar__titulo text-sm font-semibold leading-tight",children:s??(0,n.t)(k,"Cotización del dólar","Dollar exchange rate")}),(0,t.jsx)("div",{className:"cotizador-dolar__valores flex items-start justify-center gap-6",children:_.map(e=>(0,t.jsxs)("div",{className:"cotizador-dolar__celda flex flex-col gap-0.5",children:[(0,t.jsx)("span",{className:"cotizador-dolar__rotulo text-xs font-semibold leading-none",style:{color:f},children:e.rotulo}
1),void 0===y?(0,t.jsx)("span",{"aria-hidden":!0,className:"cotizador-dolar__skeleton mt-1 h-4 w-16 animate-pulse rounded bg-current opacity-20"}):(0,t.jsx)("span",{className:"cotizador-dolar__monto text-base font-bold leading-none text-nowrap",children:null!==e.monto?`${C?"$":"$ "}${$.format(e.monto)}`:"—"})]},e.rotulo))}),T&&(0,t.jsxs)("p",{className:"cotizador-dolar__fecha text-[10px] leading-none opacity-70",children:[(0,n.t)(k,"Actualizado","Updated")," ",T]})]})}])},426616,e=>{"use strict";var t=e.i(289704),r=e.i(280515),a=e.i(713784),n=e.i(736264),l=e.i(322426);e.s(["RecirculadorClient",0,function(e){let{titulo:i,items:s,colapsable:o,colapsadoInicial:c}=e,[d,u]=(0,r.useState)(!o),m=(0,n.useLocale)(),x=o&&s.length>c,p=!o||d?s:s.slice(0,c);return(0,t.jsxs)("div",{className:"px-4 py-2.5",children:[(i||x)&&(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 pr-6",children:[i?(0,t.jsx)("h3",{className:"text-xs font-bold uppercase tracking-widest text-foreground",children:i}):(0,t.jsx)("span",{}),x?(0,t.jsxs)("button",{type:"button",onClick:()=>u(e=>!e),"aria-expanded":d,className:"flex shrink-0 items-center gap-1 text-xs font-medium text-muted-foreground",children:[d?(0,l.t)(m,"Ver menos","See less"):(0,l.t)(m,"Ver más","See more"),(0,t.jsx)(a.ChevronDown,{className:`h-4 w-4 transition-transform duration-200 ${d?"":"rotate-180"}`,"aria-hidden":!0})]}):null]}),(0,t.jsx)("ul",{className:"mt-1 divide-y divide-gray-100",children:p.map(e=>(0,t.jsx)("li",{children:(0,t.jsxs)("a",{href:e.href,className:"flex items-center gap-3 py-2.5 active:bg-accent",children:[e.thumb?(0,t.jsx)("img",{src:e.thumb,alt:"",width:72,height:54,loading:"lazy",decoding:"async",className:"h-[54px] w-[72px] shrink-0 rounded object-cover bg-muted"}):null,(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[e.seccionNombre?(0,t.jsx)("span",{className:"block text-[10px] font-semibold uppercase tracking-[0.12em] text-muted-foreground",children:e.seccionNombre}):null,(0,t.jsx)("span",{className:"block text-sm font-medium leading-tight text-foreground line-clamp-2",children:e.headline})]})]})},e.id))})]})}])},712379,e=>{"use strict";var t=e.i(289704),r=e.i(280515),a=e.i(801647);let n=new Set(["1H","2H","HT","ET","BT","P","SUSP","INT","LIVE"]),l=new Set(["FT","AET","PEN"]),i=new Set(["CANC","ABD","AWD","WO","PST"]);function s(e){return n.has(e??"")}function o(e){return l.has(e??"")}let c={TBD:"Por definir",NS:"","1H":"1T",HT:"ET","2H":"2T",ET:"Prórroga",BT:"Pausa",P:"Penales",SUSP:"Susp.",INT:"Interr.",FT:"Final",AET:"Final",PEN:"Final",PST:"Posterg.",CANC:"Cancelado",ABD:"Abandonado",AWD:"Otorgado",WO:"W.O.",LIVE:"En vivo"};function d(e){return e?c[e]??e:""}function u(e){let{nombre:r,logo:a}=e;return(0,t.jsxs)("div",{className:"flex flex-col items-center gap-1 min-w-0",children:[a?(0,t.jsx)("img",{src:a,alt:"",className:"h-10 w-10 object-contain",loading:"lazy"}):null,(0,t.jsx)("div",{className:"text-sm font-semibold text-center leading-tight line-clamp-2",children:r})]})}function m(e){let{amarillas:r,rojas:a,cambios:n,alineacion:l}=e;return(0,t.jsxs)("div",{className:`flex items-center gap-2 text-[11px] text-muted-foreground tabular-nums ${"derecha"===l?"justify-end":""}`,children:[(0,t.jsxs)("span",{title:"Tarjetas amarillas",children:[(0,t.jsx)("span",{className:"inline-block h-2.5 w-2 rounded-[2px] bg-warning align-middle mr-0.5"}),r]}),(0,t.jsxs)("span",{title:"Tarjetas rojas",children:[(0,t.jsx)("span",{className:"inline-block h-2.5 w-2 rounded-[2px] bg-destructive align-middle mr-0.5"}),a]}),(0,t.jsxs)("span",{title:"Cambios",children:["⇄ ",n]})]})}function x(e){let{partido:r,fmtHora:n,fmtDia:l,ahora:i}=e,c=s(r.estadoCorto),x=o(r.estadoCorto),p="NS"===r.estadoCorto||"TBD"===r.estadoCorto,h=null!==r.marcadorLocal&&null!==r.marcadorVisitante,f=function(e,t){if(!["1H","2H","ET","LIVE"].includes(e.estadoCorto??"")||null===e.tiempoTranscurrido)return null;let r=e.tiempoTranscurrido;if(t&&e.actualizadoEn){let a=Math.floor((t-new Date(e.actualizadoEn).getTime())/6e4);a>0&&(r+=a)}let a="1H"===e.estadoCorto?45:"2H"===e.estadoCorto?90:120;return r>a?`${a}+'`:`${r}'`}(r,i),g=r.detalle,b=(null==g?void 0:g.goles.filter(e=>"local"===e.equipo))??[],v=(null==g?void 0:g.goles.filter(e=>"visitante"===e.equipo))??[],j=null!==g&&!p,w=e=>`${e.jugador??"Gol"} ${null!==e.minuto?`${e.minuto}${e.extra?`+${e.extra}`:""}'`:""}${e.penal?" (p)":e.enContra?" (e.c.)":""}`,y=(0,t.jsxs)("div",{className:"rounded-lg border border-border p-3 space-y-2.5",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 text-[11px] text-muted-foreground",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[r.ligaLogo?(0,t.jsx)("img",{src:r.ligaLogo,alt:"",className:"h-4 w-4 object-contain shrink-0",loading:"lazy"}):null,(0,t.jsx)("span",{className:"truncate",children:r.liga})]}),c?(0,t.jsxs)("span",{className:"flex items-center gap-1 shrink-0 rounded-full bg-destructive/10 px-2 py-0.5 font-semibold text-destructive",children:[(0,t.jsx)("span",{className:"inline-block h-1.5 w-1.5 rounded-full bg-destructive animate-pulse"}),d(r.estadoCorto),f?` ${f}`:""]}):(0,t.jsx)("span",{className:"shrink-0 font-medium",children:p?n.format(new Date(r.fechaInicio)):d(r.estadoCorto)})]}),(0,t.jsxs)("div",{className:"grid grid-cols-[1fr_auto_1fr] items-center gap-3",children:[(0,t.jsx)(u,{nombre:r.localNombre,logo:r.localLogo}),(0,t.jsxs)("div",{className:"text-center",children:[h?(0,t.jsxs)("div",{className:"text-3xl font-bold tabular-nums leading-none",children:[r.marcadorLocal,"-",r.marcadorVisitante]}):(0,t.jsx)("div",{className:"text-sm text-muted-foreground",children:"vs"}),p?(0,t.jsx)("div",{className:"text-[11px] text-muted-foreground mt-1 capitalize",children:l.format(new Date(r.fechaInicio))}):null]}),(0,t.jsx)(u,{nombre:r.visitanteNombre,logo:r.visitanteLogo})]}),g&&g.goles.length>0?(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3 text-[11px] text-muted-foreground leading-relaxed",children:[(0,t.jsx)("div",{children:b.map((e,r)=>(0,t.jsxs)("div",{children:["⚽ ",w(e)]},r))}),(0,t.jsx)("div",{className:"text-right",children:v.map((e,r)=>(0,t.jsxs)("div",{children:["⚽ ",w(e)]},r))})]}):null,j?(0,t.jsxs)("div",{className:"grid grid-cols-2 gap-3 border-t border-border/50 pt-2",children:[(0,t.jsx)(m,{amarillas:g.amarillasLocal,rojas:g.rojasLocal,cambios:g.cambiosLocal,alineacion:"izquierda"}),(0,t.jsx)(m,{amarillas:g.amarillasVisitante,rojas:g.rojasVisitante,cambios:g.cambiosVisitante,alineacion:"derecha"})]}):null,(0,t.jsxs)("div",{className:"flex items-center justify-between gap-2 text-[11px] text-muted-foreground",children:[(0,t.jsx)("span",{className:"truncate",children:r.estadio??""}),r.urlNoticia?(0,t.jsxs)("span",{className:"flex items-center shrink-0 font-medium text-primary",children:[x?"Crónica del partido":c?"Seguilo en vivo":"Ver la nota",(0,t.jsx)(a.ChevronRight,{className:"h-3.5 w-3.5"})]}):null]})]});return r.urlNoticia?(0,t.jsx)("a",{href:r.urlNoticia,className:"block hover:bg-accent/40 rounded-lg transition-colors",children:y}):y}function p(e){let{partido:r,fmtHora:n}=e,l=s(r.estadoCorto),i=null!==r.marcadorLocal&&null!==r.marcadorVisitante,o=[r.liga,r.estadio].filter(
1Boolean).join(" · "),c=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"w-12 shrink-0 text-[11px] tabular-nums leading-tight",children:l?(0,t.jsxs)("span",{className:"font-semibold text-destructive",children:[(0,t.jsx)("span",{className:"inline-block h-1.5 w-1.5 rounded-full bg-destructive animate-pulse mr-1 align-middle"}),d(r.estadoCorto)]}):"NS"===r.estadoCorto||"TBD"===r.estadoCorto?(0,t.jsx)("span",{className:"text-muted-foreground",children:n.format(new Date(r.fechaInicio))}):(0,t.jsx)("span",{className:"text-muted-foreground",children:d(r.estadoCorto)})}),(0,t.jsxs)("span",{className:"flex flex-1 items-center justify-end gap-1.5 min-w-0",children:[(0,t.jsx)("span",{className:"truncate text-sm",children:r.localNombre}),r.localLogo?(0,t.jsx)("img",{src:r.localLogo,alt:"",className:"h-5 w-5 object-contain shrink-0",loading:"lazy"}):null]}),(0,t.jsx)("span",{className:"w-12 shrink-0 text-center text-sm font-semibold tabular-nums",children:i?`${r.marcadorLocal} - ${r.marcadorVisitante}`:"vs"}),(0,t.jsxs)("span",{className:"flex flex-1 items-center gap-1.5 min-w-0",children:[r.visitanteLogo?(0,t.jsx)("img",{src:r.visitanteLogo,alt:"",className:"h-5 w-5 object-contain shrink-0",loading:"lazy"}):null,(0,t.jsx)("span",{className:"truncate text-sm",children:r.visitanteNombre})]}),r.urlNoticia?(0,t.jsx)(a.ChevronRight,{className:"h-4 w-4 shrink-0 text-primary","aria-hidden":!0}):(0,t.jsx)("span",{className:"w-4 shrink-0","aria-hidden":!0})]}),u="flex items-center gap-2 py-1.5 px-1 rounded-md";return(0,t.jsx)("li",{className:"border-b border-border/50 last:border-b-0",children:r.urlNoticia?(0,t.jsx)("a",{href:r.urlNoticia,title:o?`${o} — Ver noticia`:"Ver noticia",className:`${u} hover:bg-accent transition-colors`,children:c}):(0,t.jsx)("div",{title:o,className:u,children:c})})}e.s(["AgendaDeportivaClient",0,function(e){let{titulo:a,initial:n,modo:l="lista",timezone:c,locale:d="es-AR",verTodo:u}=e,[m,h]=(0,r.useState)(n),f=(0,r.useRef)(m);f.current=m;let[g,b]=(0,r.useState)(null);(0,r.useEffect)(()=>{if("destacado"!==l)return;b(Date.now());let e=setInterval(()=>b(Date.now()),3e4);return()=>clearInterval(e)},[l]),(0,r.useEffect)(()=>{let e=setInterval(async()=>{var e;let t;if(e=f.current,t=Date.now(),e.some(e=>{var r;if(s(e.estadoCorto))return!0;if(o(e.estadoCorto)||(r=e.estadoCorto,i.has(r??"")))return!1;let a=new Date(e.fechaInicio).getTime();return t>=a-36e5&&t<=a+144e5}))try{let e=await fetch("/api/eventos-deportivos/agenda",{cache:"no-store"});if(!e.ok)return;let t=await e.json();if(!Array.isArray(t.partidos))return;let r=new Map(t.partidos.map(e=>[e.id,e]));h(e=>e.map(e=>{let t=r.get(e.id);return t?{...e,...t}:e}))}catch{}},6e4);return()=>clearInterval(e)},[]);let v=new Intl.DateTimeFormat(d,{weekday:"long",day:"numeric",month:"long",timeZone:c}),j=new Intl.DateTimeFormat(d,{hour:"2-digit",minute:"2-digit",hour12:!1,timeZone:c}),w=v.format(new Date),y=u?(0,t.jsxs)("a",{href:u.href,className:"block text-center text-xs font-bold uppercase tracking-widest text-primary hover:underline pt-1",children:[u.label," →"]}):null;if("destacado"===l&&m[0])return(0,t.jsxs)("div",{className:"space-y-3",children:[a?(0,t.jsx)("h3",{className:"text-xs font-bold uppercase tracking-widest text-foreground",children:a}):null,(0,t.jsx)(x,{partido:m[0],fmtHora:j,fmtDia:v,ahora:g}),y]});let N=[];for(let e of m){let t=v.format(new Date(e.fechaInicio)),r=t===w?"Hoy":t.charAt(0).toUpperCase()+t.slice(1),a=N[N.length-1];a&&a.dia===r?a.partidos.push(e):N.push({dia:r,partidos:[e]})}return(0,t.jsxs)("div",{className:"space-y-3",children:[a?(0,t.jsx)("h3",{className:"text-xs font-bold uppercase tracking-widest text-foreground",children:a}):null,(0,t.jsx)("div",{className:"space-y-4",children:N.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"text-[11px] font-semibold uppercase tracking-wide text-muted-foreground border-b border-border pb-1 mb-1",children:e.dia}),(0,t.jsx)("ul",{children:e.partidos.map(e=>(0,t.jsx)(p,{partido:e,fmtHora:j},e.id))})]},e.dia))}),y]})}],712379)},949362,e=>{"use strict";var t=e.i(289704),r=e.i(280515),a=e.i(801647);let n=new Set(["finished","retired","walk over","walkover","awarded","defaulted"]);function l(e){return"First Player"===e?"primero":"Second Player"===e?"segundo":null}function i(e,t){let r=(e??"").trim().toLowerCase();return n.has(r)?"finalizado":"cancelled"===r||"canceled"===r?"cancelado":"postponed"===r?"postergado":"interrupted"===r||"suspended"===r?"interrumpido":/^set \d/.test(r)||/tie ?break/.test(r)||1===t||"1"===t||!0===t?"en_juego":"por_jugar"}function s(e){let t=/^set (\d+)/i.exec((e??"").trim());return t?Number(t[1]):null}let o=["","1er","2do","3er","4to","5to"],c=["","primer","segundo","tercer","cuarto","quinto"];function d(e,t){let r=i(e,t),a=(e??"").trim().toLowerCase();switch(r){case"en_juego":{if(/tie ?break/.test(a))return"Tie-break";let t=s(e);return t?function(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return`${(t?c:o)[e]??`${e}\xb0`} set`}(t):"En juego"}case"interrumpido":return"suspended"===a?"Suspendido":"Interrumpido";case"finalizado":if("retired"===a)return"Final (retiro)";if("walk over"===a||"walkover"===a)return"W.O.";return"Final";case"cancelado":return"Cancelado";case"postergado":return"Postergado";default:return"Programado"}}function u(e){let t=(e??"").trim();if(!t)return{games:0,tiebreak:null};let[r,a]=t.split("."),n=Number.parseInt(r,10),l=void 0!==a&&""!==a?Number.parseInt(a,10):null;return{games:Number.isFinite(n)?n:0,tiebreak:null!==l&&Number.isFinite(l)?l:null}}function m(e,t,r){let a=i(t,r),n=Array.isArray(e)?e:[],l=new Map;for(let e of n){let t=Number.parseInt(String((null==e?void 0:e.score_set)??""),10);Number.isFinite(t)&&!(t<1)&&l.set(t,{primero:u(e.score_first),segundo:u(e.score_second)})}let o=[...l.keys()].sort((e,t)=>
1e-t);if(("por_jugar"===a||"cancelado"===a||"postergado"===a)&&o.every(e=>l.get(e).primero.games+l.get(e).segundo.games===0))return[];let c=s(t),d="finished"===(t??"").trim().toLowerCase(),m=o[o.length-1];return o.map(e=>{var t,r;let{primero:a,segundo:n}=l.get(e),i=null!==a.tiebreak||null!==n.tiebreak,s=e<m||null!==c&&e<c||d&&e===m||(t=a.games,r=n.games,7===t&&6===r||6===t&&7===r||t>=6&&t-r>=2||r>=6&&r-t>=2),o=null;return s&&(a.games!==n.games?o=a.games>n.games?"primero":"segundo":null!==a.tiebreak&&null!==n.tiebreak&&a.tiebreak!==n.tiebreak&&(o=a.tiebreak>n.tiebreak?"primero":"segundo")),{numero:e,primero:a,segundo:n,completo:s,ganador:o,conTiebreak:i}})}let x={clay:"Polvo de ladrillo","clay (indoor)":"Polvo de ladrillo (cubierto)",hard:"Cemento","hard (indoor)":"Cemento (cubierto)",grass:"Césped",carpet:"Carpeta","carpet (indoor)":"Carpeta (cubierto)"};function p(e){let t=(e??"").trim();if(!t||"null"===t.toLowerCase())return"";let r=t.lastIndexOf(" - ");r>=0&&(t=t.slice(r+3).trim());let a=t.toLowerCase(),n=/^1\/(\d+)-finals?$/.exec(a);if(n){let e=Number(n[1]);return 2===e?"Semifinal":4===e?"Cuartos de final":8===e?"Octavos de final":`${e}avos de final`}if(/^quarter[- ]?finals?$/.test(a))return"Cuartos de final";if(/^semi[- ]?finals?$/.test(a))return"Semifinal";if("final"===a)return"Final";if(/^third place/.test(a)||/^bronze/.test(a))return"Tercer puesto";if(/^round of (\d+)$/.test(a)){let e=Number(/^round of (\d+)$/.exec(a)[1]);return 16===e?"Octavos de final":8===e?"Cuartos de final":`${e/2}avos de final`}return/qualification|qualifying/.test(a)?"Clasificación":/world group/.test(a)?t.replace(/world group/i,"Grupo Mundial"):/group/.test(a)?t.replace(/group/i,"Grupo"):t}function h(e){let t=(e??"").trim();return t?(t=(t=(t=(t=(t=(t=t.replace(/\s+Teams$/i,"")).replace(/^(ATP|WTA)\s+(Davis Cup|Billie Jean King Cup)/i,"$2")).replace(/^Davis Cup/i,"Copa Davis")).replace(/World Group/i,"Grupo Mundial")).replace(/\bGroup\b/i,"Grupo")).replace(/\s+-\s+Qualification$/i," - Clasificación"),/^french open$/i.test(t))?"Roland Garros":t:""}function f(e){let t=(e??"").trim().toLowerCase();return t.startsWith("teams")||"exhibition teams"===t?"equipos":t.startsWith("atp")?"atp":t.startsWith("wta")?"wta":t.startsWith("challenger")?"challenger":t.startsWith("itf")?"itf":t.startsWith("boys")||t.startsWith("girls")?"juveniles":t.startsWith("exhibition")?"exhibicion":"otros"}function g(e){return"equipos"===f(e)}let b={usa:"US","united states":"US","great britain":"GB",england:"GB","czech republic":"CZ","chinese taipei":"TW",korea:"KR","korea, republic of":"KR","republic of korea":"KR",russia:"RU","bosnia & herzegovina":"BA","bosnia and herzegovina":"BA","hong kong":"HK","hong kong, china":"HK",macedonia:"MK","ivory coast":"CI","cote d'ivoire":"CI",turkey:"TR",vietnam:"VN",iran:"IR",syria:"SY",laos:"LA",moldova:"MD",holland:"NL",uae:"AE",kosovo:"XK",palestine:"PS",macau:"MO",curacao:"CW",myanmar:"MM",congo:"CG","dr congo":"CD","cape verde":"CV",swaziland:"SZ"},v={GB:"Gran Bretaña",HK:"Hong Kong",TW:"Taipéi China",CZ:"República Checa",MO:"Macao",PS:"Palestina"},j=null;function w(e){let t=(e??"").trim().toLowerCase();return t?b[t]??(function(){if(j)return j;let e=new Map;try{let t=new Intl.DisplayNames(["en"],{type:"region",fallback:"none"});for(let r=0;r<26;r++)for(let a=0;a<26;a++){let n,l=String.fromCharCode(65+r,65+a);try{n=Intl.getCanonicalLocales(`und-${l}`)[0]}catch{continue}if(n!==`und-${l}`)continue;let i=t.of(l);i&&i!==l&&"Unknown Region"!==i&&e.set(i.toLowerCase(),l)}}catch{}return j=e,e})().get(t)??null:null}function y(e){let t=(e??"").trim(),r=w(t);if(!r)return t;if(v[r])return v[r];try{return new Intl.DisplayNames(["es"],{type:"region"}).of(r)??t}catch{return t}}function N(e){let t=w(e);return t?`https://flagcdn.com/w80/${t.toLowerCase()}.png`:null}var k=e.i(322426);function C(e,t){let r=(("primero"===t?e.primerJugadorNombre:e.segundoJugadorNombre)??"").trim();return g(e.tipoEvento)?y(r):r}function S(e){let{size:r=11,locale:a}=e;return(0,t.jsxs)("svg",{"aria-label":(0,k.t)(a,"Saca","Serving"),role:"img",width:r,height:r,viewBox:"0 0 24 24",className:"shrink-0",children:[(0,t.jsx)("circle",{cx:"12",cy:"12",r:"10.5",fill:"#d4e34a",stroke:"#9aab1f",strokeWidth:"1.5"}),(0,t.jsx)("path",{d:"M3.6 6.6 C8.4 9 8.4 15 3.6 17.4",fill:"none",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round"}),(0,t.jsx)("path",{d:"M20.4 6.6 C15.6 9 15.6 15 20.4 17.4",fill:"none",stroke:"#fff",strokeWidth:"2",strokeLinecap:"round"})]})}function $(e){let{partido:r,lado:a,pais:n,className:l="w-10 h-10 md:w-12 md:h-12"}=e,i=("primero"===a?r.primerJugadorNombre:r.segundoJugadorNombre)??"";if(g(r.tipoEvento)){let e=N(i);return e?(0,t.jsx)("img",{src:e,alt:"",loading:"lazy",className:"w-10 h-7 md:w-12 md:h-8 object-cover rounded-[3px] border border-gray-200 shrink-0"}):(0,t.jsx)("span",{className:"w-10 h-7 md:w-12 md:h-8 rounded-[3px] bg-gray-200 shrink-0"})}let s="primero"===a?r.primerJugadorLogo:r.segundoJugadorLogo,o=n?N(n):null;return(0,t.jsxs)("span",{className:`relative shrink-0 ${l}`,children:[s?(0,t.jsx)("img",{src:s,alt:"",loading:"lazy",className:"w-full h-full rounded-full object-cover bg-gray-100 border border-gray-200"}):(0,t.jsx)("span",{className:"block w-full h-full rounded-full bg-gray-200"}),o?(0,t.jsx)("img",{src:o,alt:"",loading:"lazy",className:"absolute -bottom-0.5 -right-1 w-4 h-3 md:w-5 md:h-3.5 object-cover rounded-[2px] border border-white shadow-sm"}):null]})}function E(e){let{locale:r}=e;return(0,t.jsx)("svg",{"aria-label":(0,k.t)(r,"Ganador","Winner"),role:"img",width:"16",height:"16",viewBox:"0 0 24 24",className:"shrink-0 text-green-600",children:(0,t.jsx)("path",{d:"M5 12.5 L10 17.5 L19 7",fill:"none",stroke:"currentColor",strokeWidth:"3",strokeLinecap:"round",strokeLinejoin:"round"})})}function _(e){let{evento:r,timezone:a,locale:n="es-AR"}=e,o=i(r.estadoCorto,r.enVivo),c=g(r.tipoEvento),u=c?[]:m(r.scores,r.estadoCorto,r.enVivo),b="en_juego"===o?s(r.estadoCorto):null,v="finalizado"===o?l(r.ganad
1or):null,j="en_juego"===o?l(r.saca):null,w=r.previa??null,N=h(r.torneoNombre),_=p(r.torneoRonda),T=r.fechaInicio?new Intl.DateTimeFormat(n,{weekday:"short",day:"numeric",month:"short",...(0,k.isEnglish)(n)?{hour:"numeric",minute:"2-digit",hour12:!0}:{hour:"2-digit",minute:"2-digit",hour12:!1},timeZone:a}).format(new Date(r.fechaInicio)):null,L=[c?null:function(e){let t=(e??"").trim();if(!t)return"";let r=t.toLowerCase(),a=/doubles/.test(r)?"Dobles":"Singles",n=/\bwomen\b|girls/.test(r)?"femenino":/\bmen\b|boys/.test(r)?"masculino":/mix/.test(r)?"mixto":"",l="femenino"===n?" fem.":"masculino"===n?" masc.":"mixto"===n?" mixto":"";switch(f(t)){case"atp":return`ATP \xb7 ${a}`;case"wta":return`WTA \xb7 ${a}`;case"equipos":return`Equipos${n?` \xb7 ${n[0].toUpperCase()}${n.slice(1)}`:""}`;case"challenger":return`Challenger \xb7 ${a}${l}`;case"itf":return`ITF \xb7 ${a}${l}`;case"juveniles":return`Juniors \xb7 ${a}${l}`;case"exhibicion":return"Exhibición";default:return/mixed doubles/.test(r)?"Dobles mixtos":t}}(r.tipoEvento),(x[(r.torneoSuperficie??"").trim().toLowerCase()]??"")||null,"por_jugar"===o?null:T].filter(Boolean),D=e=>{let a=null==w?void 0:w[e],l=v===e,i=null!==v&&!l,s="primero"===e?r.setsPrimerJugador:r.setsSegundoJugador;return(0,t.jsxs)("div",{className:"flex items-center gap-3 py-2.5",children:[(0,t.jsx)($,{partido:r,lado:e,pais:null==a?void 0:a.pais}),(0,t.jsxs)("div",{className:"flex-1 min-w-0",children:[(0,t.jsxs)("div",{className:"flex items-center gap-1.5 min-w-0",children:[(0,t.jsx)("span",{className:`truncate text-sm md:text-lg leading-tight ${l?"font-extrabold text-gray-900":i?"font-semibold text-gray-500":"font-bold text-gray-900"}`,children:C(r,e)}),j===e&&(0,t.jsx)(S,{size:13,locale:n}),l&&(0,t.jsx)(E,{locale:n})]}),!c&&((null==a?void 0:a.ranking)||(null==a?void 0:a.pais))?(0,t.jsx)("p",{className:"text-[11px] md:text-xs text-gray-500 truncate",children:[(null==a?void 0:a.pais)?y(a.pais):null,(null==a?void 0:a.ranking)?(0,k.isEnglish)(n)?`${a.tour??""} No. ${a.ranking}`.trim():`N.\xb0 ${a.ranking} ${a.tour??""}`.trim():null].filter(Boolean).join(" · ")}):null]}),c?(0,t.jsx)("span",{className:`w-10 text-center tabular-nums ${null==s?"text-lg font-light text-gray-300":`text-3xl md:text-4xl font-bold ${i?"text-gray-400":"text-gray-900"}`}`,children:s??"–"}):(0,t.jsxs)("div",{className:"flex items-center gap-1 md:gap-1.5",children:[u.map(r=>{let a="primero"===e?r.primero:r.segundo,n=r.ganador===e,l=b===r.numero&&!r.completo;return(0,t.jsxs)("span",{className:`relative w-7 md:w-9 py-0.5 text-center text-xl md:text-2xl tabular-nums rounded ${l?"bg-gray-900 text-white font-bold":n?"text-gray-900 font-bold":"text-gray-400 font-semibold"}`,children:[a.games,r.conTiebreak&&null!==a.tiebreak&&!n?(0,t.jsx)("sup",{className:"absolute top-0.5 -right-0.5 text-[10px] md:text-xs font-semibold",children:a.tiebreak}):null]},r.numero)}),0===u.length&&"por_jugar"===o?(0,t.jsx)("span",{className:"text-lg md:text-2xl font-light text-gray-300 px-2",children:"–"}):null]})]})};return(0,t.jsxs)("div",{className:"mb-6 bg-white border border-gray-200 rounded-lg overflow-hidden",children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-3 px-4 py-2.5 bg-gray-50 border-b border-gray-200",children:[(0,t.jsx)("div",{className:"flex items-center gap-2 shrink-0",children:"en_juego"===o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsxs)("span",{className:"relative flex h-3 w-3",children:[(0,t.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-red-500 opacity-75"}),(0,t.jsx)("span",{className:"relative inline-flex rounded-full h-3 w-3 bg-red-600"})]}),(0,t.jsxs)("span",{className:"text-sm font-bold uppercase tracking-wider text-red-600",children:[(0,k.t)(n,"En vivo · ","Live · "),d(r.estadoCorto,r.enVivo)]})]}):"finalizado"===o?(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"inline-flex rounded-full h-3 w-3 bg-gray-400"}),(0,t.jsx)("span",{className:"text-sm font-bold uppercase tracking-wider text-gray-600",children:d(r.estadoCorto,r.enVivo)})]}):(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:`inline-flex rounded-full h-3 w-3 ${"por_jugar"===o?"bg-blue-500":"bg-amber-500"}`}),(0,t.jsx)("span",{className:`text-sm font-bold uppercase tracking-wider ${"por_jugar"===o?"text-blue-700":"text-amber-700"}`,children:"por_jugar"===o?T??(0,k.t)(n,"Por jugar","Upcoming"):d(r.estadoCorto,r.enVivo)})]})}),N?(0,t.jsxs)("span",{className:"text-xs text-gray-500 uppercase tracking-wide truncate text-right",children:[N,_?` \xb7 ${_}`:""]}):null]}),(0,t.jsxs)("div",{className:"px-4 divide-y divide-gray-100",children:[D("primero"),D("segundo")]}),L.length>0?(0,t.jsx)("p",{className:"px-4 pb-3 -mt-0.5 text-xs text-gray-500 text-center",children:L.join(" · ")}):null]})}function T(e){return{...e,fechaInicio:new Date(e.fechaInicio),pointbypoint:null,statistics:null,previa:null,
1serie:[]}}function L(e){let{partido:r,fmtHora:n}=e,o=i(r.estadoCorto,r.enVivo),c=g(r.tipoEvento),u=c?[]:m(r.scores,r.estadoCorto,r.enVivo),x="finalizado"===o?l(r.ganador):null,f="en_juego"===o?l(r.saca):null,b="en_juego"===o?s(r.estadoCorto):null,v=T(r),j=[h(r.torneoNombre),p(r.torneoRonda)].filter(Boolean).join(" · "),w=e=>(0,t.jsxs)("span",{className:"flex items-center gap-1.5 min-w-0",children:[(0,t.jsx)($,{partido:v,lado:e,className:"w-5 h-5"}),(0,t.jsx)("span",{className:`truncate text-sm ${x===e?"font-bold":x?"text-muted-foreground":""}`,children:C(v,e)}),f===e?(0,t.jsx)(S,{size:9}):null,(0,t.jsx)("span",{className:"ml-auto flex gap-1 pl-1",children:c?(0,t.jsx)("span",{className:"w-4 text-center text-sm font-semibold tabular-nums",children:("primero"===e?r.setsPrimerJugador:r.setsSegundoJugador)??""}):u.map(r=>{let a="primero"===e?r.primero:r.segundo;return(0,t.jsx)("span",{className:`w-4 text-center text-sm tabular-nums ${b===r.numero&&!r.completo?"font-bold text-destructive":r.ganador===e?"font-semibold":"text-muted-foreground"}`,children:a.games},r.numero)})})]}),y=(0,t.jsxs)(t.Fragment,{children:[(0,t.jsx)("span",{className:"w-12 shrink-0 text-[11px] leading-tight tabular-nums",children:"en_juego"===o?(0,t.jsxs)("span",{className:"font-semibold text-destructive",children:[(0,t.jsx)("span",{className:"mr-1 inline-block h-1.5 w-1.5 animate-pulse rounded-full bg-destructive align-middle"}),d(r.estadoCorto,r.enVivo)]}):"por_jugar"===o?(0,t.jsx)("span",{className:"text-muted-foreground",children:n.format(new Date(r.fechaInicio))}):(0,t.jsx)("span",{className:"text-muted-foreground",children:d(r.estadoCorto,r.enVivo)})}),(0,t.jsxs)("span",{className:"flex min-w-0 flex-1 flex-col gap-0.5",children:[w("primero"),w("segundo")]}),r.urlNoticia?(0,t.jsx)(a.ChevronRight,{className:"h-4 w-4 shrink-0 text-primary","aria-hidden":!0}):(0,t.jsx)("span",{className:"w-4 shrink-0","aria-hidden":!0})]}),N="flex items-center gap-2 rounded-md px-1 py-1.5";return(0,t.jsx)("li",{className:"border-b border-border/50 last:border-b-0",children:r.urlNoticia?(0,t.jsx)("a",{href:r.urlNoticia,title:j?`${j} — Ver la nota`:"Ver la nota",className:`${N} transition-colors hover:bg-accent`,children:y}):(0,t.jsx)("div",{title:j,className:N,children:y})})}e.s(["AgendaTenisClient",0,function(e){let{titulo:n,initial:l,modo:s="lista",timezone:o,locale:c="es-AR"}=e,[d,u]=(0,r.useState)(l),m=(0,r.useRef)(d);(0,r.useEffect)(()=>{m.current=d},[d]),(0,r.useEffect)(()=>{let e=setInterval(async()=>{var e;let t;if(e=m.current,t=Date.now(),e.some(e=>{let r=i(e.estadoCorto,e.enVivo);if("en_juego"===r||"interrumpido"===r)return!0;if("por_jugar"!==r)return!1;let a=new Date(e.fechaInicio).getTime();return t>=a-36e5&&t<=a+288e5}))try{let e=await fetch("/api/eventos-tenis/agenda",{cache:"no-store"});if(!e.ok)return;let t=await e.json();if(!Array.isArray(t.partidos))return;let r=new Map(t.partidos.map(e=>[e.id,e]));u(e=>e.map(e=>({...e,...r.get(e.id)??{}})))}catch{}},6e4);return()=>clearInterval(e)},[]);let x=new Intl.DateTimeFormat(c,{weekday:"long",day:"numeric",month:"long",timeZone:o}),p=new Intl.DateTimeFormat(c,{hour:"2-digit",minute:"2-digit",hour12:!1,timeZone:o}),h=x.format(new Date),f=n?(0,t.jsx)("h3",{className:"text-xs font-bold uppercase tracking-widest text-foreground",children:n}):null;if("destacado"===s&&d[0]){let e=d[0],r=(0,t.jsx)(_,{evento:T(e),timezone:o,locale:c}),n=i(e.estadoCorto,e.enVivo);return(0,t.jsxs)("div",{className:"space-y-3",children:[f,e.urlNoticia?(0,t.jsxs)("a",{href:e.urlNoticia,className:"block rounded-lg transition-opacity hover:opacity-90 [&>div]:mb-2",children:[r,(0,t.jsxs)("span",{className:"flex items-center justify-end text-[11px] font-medium text-primary",children:["finalizado"===n?"Ver la crónica":"en_juego"===n?"Síguelo en vivo":"Ver la nota",(0,t.jsx)(a.ChevronRight,{className:"h-3.5 w-3.5"})]})]}):(0,t.jsx)("div",{className:"[&>div]:mb-0",children:r})]})}let g=[];for(let e of d){let t=x.format(new Date(e.fechaInicio)),r=t===h?"Hoy":t.charAt(0).toUpperCase()+t.slice(1),a=g[g.length-1];a&&a.dia===r?a.partidos.push(e):g.push({dia:r,partidos:[e]})}return(0,t.jsxs)("div",{className:"space-y-3",children:[f,(0,t.jsx)("div",{className:"space-y-4",children:g.map(e=>(0,t.jsxs)("div",{children:[(0,t.jsx)("div",{className:"mb-1 border-b border-border pb-1 text-[11px] font-semibold uppercase tracking-wide text-muted-foreground",children:e.dia}),(0,t.jsx)("ul",{children:e.partidos.map(e=>(0,t.jsx)(L,{partido:e,fmtHora:p},e.id))})]},e.dia))})]})}],949362)},890734,e=>{"use strict";var t=e.i(289704),r=e.i(280515);let a=new Map,n=()=>()=>{};
1e.s(["GrillaTabs",0,function(e){var l;let i,{dias:s,hoy:o,locale:c,timeZone:d,compacto:u=!1,maxPorDia:m=0,maxAltura:x=0,verTodasHref:p=null}=e,h=s.findIndex(e=>e.fecha===o),[f,g]=(0,r.useState)(h>=0?h:0),b=(i=d||"America/Argentina/Buenos_Aires",(0,r.useSyncExternalStore)(n,()=>{let e=a.get(i);return e||(e=function(e){try{let t=new Intl.DateTimeFormat("en-CA",{timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).formatToParts(new Date),r=e=>{var r;return(null==(r=t.find(t=>t.type===e))?void 0:r.value)??"00"};return`${r("year")}-${r("month")}-${r("day")}T${r("hour")}:${r("minute")}`}catch{return""}}(i),a.set(i,e)),e},()=>null)),v=s[f]??s[0],j=(0,r.useRef)(null),w=(0,r.useRef)(null),y=e=>{w.current=e},N=x>0;if((0,r.useEffect)(()=>{var e;let t=j.current;if(!t)return;let r=w.current;if(!r){t.scrollTop=0;return}let a=(null==(e=t.querySelector("thead"))?void 0:e.getBoundingClientRect().height)??0;t.scrollTop=Math.max(0,r.offsetTop-a)},[f,b,N]),!v)return null;let k=v.emisiones,C=k.map(e=>{var t,r,a,n;let l;return t=v.fecha,r=e.hora,!!(a=b)&&`${t}T${r}`<(n=a,Number.isNaN((l=new Date(`${n}:00Z`)).getTime())?n:(l.setUTCMinutes(l.getUTCMinutes()-120),l.toISOString().slice(0,16)))}),S=C.findIndex(e=>!e),$=S>0?S:0,E=(m>0?k.slice($,$+m):k).map((e,t)=>({...e,jugada:C[$+t]??!1})),_=E.length<k.length,T=m>0?null:(null==(l=k[S])?void 0:l.id)??null,L=new Intl.DateTimeFormat(c,{weekday:"short"}),D=new Intl.DateTimeFormat(c,{weekday:"long",day:"numeric",month:"long"}),I="opacity-50",A=N?"relative overflow-y-auto overscroll-contain":void 0,z=N?{maxHeight:`${x}px`}:void 0;return(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("nav",{className:"-mx-4 overflow-x-auto px-4 sm:mx-0 sm:px-0","aria-label":"Días de la grilla",children:(0,t.jsx)("div",{className:"flex min-w-max gap-1",children:s.map((e,r)=>{let a=new Date(`${e.fecha}T12:00:00`),n=L.format(a).replace(".",""),l=r===f;return(0,t.jsxs)("button",{type:"button",onClick:()=>g(r),"aria-current":l?"date":void 0,className:`flex min-w-[64px] flex-col items-center border px-3 py-2 text-center transition-colors ${l?"border-neutral-900 bg-neutral-900 text-white":"border-neutral-300 text-neutral-700 hover:bg-neutral-100"}`,children:[(0,t.jsx)("span",{className:"text-[11px] font-semibold uppercase tracking-wider",children:n}),(0,t.jsx)("span",{className:"text-lg font-bold leading-tight tabular-nums",children:a.getDate()})]},e.fecha)})})}),(0,t.jsxs)("h2",{className:"text-sm font-semibold uppercase tracking-wide text-neutral-500 capitalize",children:[v.fecha===o?"Hoy · ":"",D.format(new Date(`${v.fecha}T12:00:00`))]}),0===E.length?(0,t.jsx)("p",{className:"py-8 text-center text-neutral-500",children:"No hay programación cargada para este día."}):u?(0,t.jsx)("div",{ref:j,className:A,style:z,children:(0,t.jsx)("ul",{className:"divide-y divide-neutral-200 border-y border-neutral-200",children:E.map(e=>(0,t.jsxs)("li",{ref:e.id===T?y:void 0,className:`flex gap-3 py-2.5 ${e.jugada?I:""}`,children:[(0,t.jsx)("span",{className:"w-12 shrink-0 font-bold tabular-nums",children:e.hora}),(0,t.jsxs)("span",{className:"min-w-0",children:[(0,t.jsx)("span",{className:"block font-medium leading-snug",children:e.evento}),(0,t.jsx)("span",{className:"block text-xs text-neutral-500",children:[e.competencia,e.plataforma].filter(Boolean).join(" · ")})]})]},e.id))})}):(0,t.jsx)("div",{ref:j,className:`overflow-x-auto ${A??""}`,style:z,children:(0,t.jsxs)("table",{className:"w-full min-w-[560px] border-collapse text-sm",children:[(0,t.jsx)("thead",{className:N?"sticky top-0 z-10 bg-white shadow-[0_1px_0_0_var(--color-neutral-300)]":void 0,children:(0,t.jsxs)("tr",{className:`text-left text-[11px] uppercase tracking-wider text-neutral-500 ${N?"":"border-b border-neutral-300"}`,children:[(0,t.jsx)("th",{className:"w-20 py-2 pr-3 font-semibold",children:"Hora"}),(0,t.jsx)("th",{className:"w-48 py-2 pr-3 font-semibold",children:"Competencia"}),(0,t.jsx)("th",{className:"py-2 pr-3 font-semibold",children:"Evento"}),(0,t.jsx)("th",{className:"w-56 py-2 font-semibold",children:"Plataforma"})]})}),(0,t.jsx)("tbody",{children:E.map(e=>(0,t.jsxs)("tr",{ref:e.id===T?y:void 0,className:`border-b border-neutral-200 last:border-b-0 ${e.jugada?I:""}`,children:[(0,t.jsx)("td",{className:"py-2.5 pr-3 font-bold tabular-nums",children:e.hora}),(0,t.jsx)("td",{className:"py-2.5 pr-3 text-neutral-600",children:e.competencia}),(0,t.jsx)("td",{className:"py-2.5 pr-3 font-medium",children:e.evento}),(0,t.jsx)("td",{className:"py-2.5 text-neutral-600",children:e.plataforma??""})]},e.id))})]})}),p&&(0,t.jsx)("a",{href:p,className:"inline-block border border-neutral-300 px-4 py-2 text-xs font-semibold uppercase tracking-wide text-neutral-800 transition-colors hover:bg-neutral-100",children:_?"Ver toda la programación":"Ver grilla completa"})]})}])},310126,e=>{"use strict";var t=e.i(289704),r=e.i(280515),a=e.i(867165),n=e.i(828014),l=e.i(322426);function i(e){let{href:r,locale:a}=e;return(0,t.jsx)("div",{className:"flex justify-center",children:(0,t.jsx)("a",{href:r,className:"inline-flex items-center rounded-md border px-4 py-2 text-sm font-medium transition-colors hover:bg-accent",children:(0,l.t)(a,"Ver todos los videos","See all videos")})})}function s(e){let{video:r,activo:n,onPlay:i,locale:s,prioridad:o=!1}=e;return n?(0,t.jsx)("div",{className:"aspect-video w-full overflow-hidden rounded-lg bg-black",children:(0,t.jsx)("iframe",{src:`https://www.youtube-nocookie.com/embed/${r.providerId}?autoplay=1&rel=0`,title:r.titulo,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"h-full w-full border-0"})}):(0,t.jsxs)("button",{type:"button",onClick:i,"aria-label":`${(0,l.t)(s,"Reproducir","Play")}: ${r.titulo}`,className:"group relative block aspect-video w-full overflow-hidden rounded-lg bg-muted",children:[r.thumbnailUrl&&(0,t.jsx)("img",{src:r.thumbnailUrl,alt:"",loading:o?"eager":"lazy",fetchPriority:o?"high":"auto",className:"h-full w-full object-cover transition-transform duration-300 group-hover:scale-[1.03]"}),(0,t.jsx)("span",{className:"absolute inset-0 flex items-center justify-center bg-black/10 transition-colors group-hover:bg-black/25",children:(0,t.jsx)("span",{className:"flex size-14 items-center justify-center rounded-full bg-black/70 text-white shadow-lg transition-transform group-hover:scale-110",children:(0,t.jsx)(a.Play,{className:"ml-0.5 size-6 fill-current"})})})]})}function o(e){let{video:r,fecha:n,horizontal:l=!1,onClick:i}=e;return(0,t.jsxs)("button",{type:"button",onClick:i,className:`group flex w-full gap-3 rounded-lg p-1 text-left transition-colors hover:bg-accent ${l?"flex-col lg:flex-row":"flex-col"}`,children:[(0,t.jsxs)("span",{className:"relative block aspect-video w-full shrink-0 overflow-hidden rounded bg-muted lg:w-32",children:[r.thumbnailUrl&&(0,t.jsx)("img",{src:r.thumbnailUrl,alt:"",loading:"lazy",className:"h-full w-full object-cover"}),(0,t.jsx)("span",{className:"absolute inset-0 flex items-center justify-center opacity-0 transition-opacity group-hover:opacity-100",children:(0,t.jsx)("span",{className:"flex size-8 items-center justify-center rounded-full bg-black/70 text-white",children:(0,t.jsx)(a.Play,{className:"ml-0.5 size-4 fill-current"})})})]}),(0,t.jsxs)("span",{className:"min-w-0 flex-1",children:[(0,t.jsx)("span",{className:"line-clamp-2 block text-sm font-semibold leading-snug",children:r.titulo}),(0,t.jsx)("span",{className:"mt-0.5 block text-xs text-muted-foreground",children:n})]})]})}e.s(["Videoteca",0,function(e){var a;let{videos:l,layout:c="destacado",locale:d,mostrarFlechas:u=!0,verTodosHref:m=null,compacto:x=!1}=e,[p,h]=(0,r.useState)((null==(a=l[0])?void 0:a.id)??null),[f,g]=(0,r.useState)(new Set);if(0===l.length)return null;let b=new Intl.DateTimeFormat(d,{day:"2-digit",month:"short",year:"numeric"});function v(e){g(t=>{let r=new Set(t);return r.add(e),r})}let j=l.find(e=>e.id===p)??l[0],w=l.filter(e=>
1e.id!==j.id);return"destacado"===c?(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsxs)("div",{className:"grid grid-cols-1 gap-4 lg:grid-cols-[minmax(0,2fr)_minmax(0,1fr)]",children:[(0,t.jsxs)("div",{className:"min-w-0 space-y-3",children:[(0,t.jsx)(s,{video:j,activo:f.has(j.id),onPlay:()=>v(j.id),locale:d,prioridad:!0}),(0,t.jsxs)("div",{children:[(0,t.jsx)("h3",{className:"text-lg font-bold leading-snug md:text-xl",children:j.titulo}),(0,t.jsxs)("p",{className:"mt-1 text-xs text-muted-foreground",children:[j.canal?`${j.canal} \xb7 `:"",b.format(new Date(j.fecha))]}),!x&&j.descripcion&&(0,t.jsx)("p",{className:"mt-2 line-clamp-3 text-sm text-muted-foreground",children:j.descripcion})]})]}),w.length>0&&(0,t.jsx)("div",{className:"min-w-0",children:(0,t.jsx)("ul",{className:"flex gap-3 overflow-x-auto pb-2 lg:max-h-[26rem] lg:flex-col lg:overflow-y-auto lg:overflow-x-hidden lg:pb-0 [scrollbar-width:thin]",children:w.map(e=>(0,t.jsx)("li",{className:"w-52 shrink-0 lg:w-auto lg:shrink",children:(0,t.jsx)(o,{video:e,fecha:b.format(new Date(e.fecha)),horizontal:!0,onClick:()=>{h(e.id)}})},e.id))})})]}),m&&(0,t.jsx)(i,{href:m,locale:d})]}):"carrusel"===c?(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)(n.NewsCarousel,{mostrarFlechas:u,children:l.map(e=>(0,t.jsxs)("div",{className:"w-64 shrink-0 snap-start sm:w-72",children:[(0,t.jsx)(s,{video:e,activo:f.has(e.id),onPlay:()=>v(e.id),locale:d}),(0,t.jsx)("h3",{className:"mt-2 line-clamp-2 text-sm font-semibold leading-snug",children:e.titulo}),(0,t.jsx)("p",{className:"mt-0.5 text-xs text-muted-foreground",children:b.format(new Date(e.fecha))})]},e.id))}),m&&(0,t.jsx)(i,{href:m,locale:d})]}):(0,t.jsxs)("div",{className:"space-y-4",children:[(0,t.jsx)("ul",{className:x?"grid grid-cols-2 gap-4":"grid grid-cols-1 gap-5 sm:grid-cols-2 lg:grid-cols-3",children:l.map(e=>(0,t.jsxs)("li",{children:[(0,t.jsx)(s,{video:e,activo:f.has(e.id),onPlay:()=>v(e.id),locale:d}),(0,t.jsx)("h3",{className:"mt-2 line-clamp-2 text-sm font-semibold leading-snug",children:e.titulo}),(0,t.jsxs)("p",{className:"mt-0.5 text-xs text-muted-foreground",children:[e.canal?`${e.canal} \xb7 `:"",b.format(new Date(e.fecha))]})]},e.id))}),m&&(0,t.jsx)(i,{href:m,locale:d})]})}])},773642,e=>{"use strict";var t=e.i(289704),r=e.i(280515),a=e.i(823322),n=e.i(736264),l=e.i(322426);let i=new Set,s=new Set;function o(e){return`sticky-dock-dismissed:${e}`}function c(e){return s.add(e),()=>{s.delete(e)}}e.s(["StickyDockShell",0,function(e){let{titulo:d,children:u,variant:m="bottom-bar",dismissKey:x,posicion:p="derecha",maxWidth:h,className:f,oculto:g=!1}=e,b=(0,r.useCallback)(()=>(function(e){if(i.has(e))return!0;try{return"1"===sessionStorage.getItem(o(e))}catch{return!1}})(x),[x]),v=(0,r.useSyncExternalStore)(c,b,()=>!1),j=(0,n.useLocale)();if(v)return null;let w="corner"===m,y=w?`fixed bottom-2 z-40 ${"izquierda"===p?"left-2":"right-2"}`:"fixed inset-x-0 bottom-0 z-40",N=w?{width:`min(${h??400}px, calc(100vw - 1rem))`}:void 0;return(0,t.jsx)("div",{className:`${y} ${g?"pointer-events-none opacity-0":""} ${f||""}`,style:N,role:"complementary","aria-label":d,"aria-hidden":g||void 0,children:(0,t.jsxs)("div",{className:`relative bg-white shadow-[0_-4px_16px_rgba(0,0,0,0.12)] ring-1 ring-black/10 ${w?"rounded-md overflow-hidden":"mx-auto max-w-screen-sm"}`,children:[!g&&(0,t.jsx)("button",{type:"button",onClick:()=>(function(e){i.add(e);try{sessionStorage.setItem(o(e),"1")}catch{}s.forEach(e=>e())})(x),"aria-label":(0,l.t)(j,"Cerrar","Close"),className:"absolute right-1 top-1 z-10 rounded bg-white/80 p-1 text-muted-foreground hover:text-foreground",children:(0,t.jsx)(a.X,{className:"h-4 w-4","aria-hidden":!0})}),u]})})}])},360710,e=>{"use strict";var t=e.i(289704),r=e.i(280515),a=e.i(802072),n=e.i(522290),l=e.i(732756),i=e.i(773642);let s="640 / 300";e.s(["OutstreamPlayer",0,function(e){let{vastTagUrl:o,titulo:c,presentacion:d,posicion:u,maxAncho:m,reportId:x,custParams:p,idioma:h}=e,f=(0,r.useRef)(null),g=(0,r.useRef)(null),[b,v]=(0,r.useState)("cargando"),j=JSON.stringify(p??null),w=(0,r.useRef)(!1),y=(0,r.useRef)(!1),N=(0,r.useRef)(0),k=(0,r.useCallback)((e,t)=>{w.current||(w.current=!0,(0,n.reportAdOutcome)({videoId:x,position:"preroll",placement:"accompanying",outcome:e,autoplay:!0,muted:!0,...t}))},[x]);if((0,r.useEffect)(()=>{let e=f.current,t=g.current;if(!e||!t)return;y.current=!1,w.current=!1;
1let r=!1,n=null,i=null,s=null,c=null,d=Date.now(),u=()=>{null!==c&&window.clearTimeout(c);try{null==n||n.destroy()}catch{}try{null==i||i.destroy()}catch{}try{null==s||s.destroy()}catch{}},x=(e,t)=>{k(e,t),r||v("terminado"),u()};return(0,l.loadImaSdk)().then(()=>{if(r)return;let l=window.google;if(!(null==l?void 0:l.ima))return x("error");l.ima.settings.setLocale((null==h?void 0:h.slice(0,2))||"es"),l.ima.settings.setDisableCustomPlaybackForIOS10Plus(!0);let u=e.getBoundingClientRect(),p=Math.round(u.width)||m,f=Math.round(u.height)||Math.round(300*m/640);(s=new l.ima.AdDisplayContainer(e,t)).initialize(),(i=new l.ima.AdsLoader(s)).addEventListener(l.ima.AdErrorEvent.Type.AD_ERROR,e=>{var t,r,a;return x("error",{errorCode:(null==e||null==(a=e.getError)||null==(r=a.call(e))||null==(t=r.getErrorCode)?void 0:t.call(r))??0})},!1),i.addEventListener(l.ima.AdsManagerLoadedEvent.Type.ADS_MANAGER_LOADED,e=>{if(r)return;let a=Date.now()-d,i=new l.ima.AdsRenderingSettings;i.restoreCustomPlaybackStateOnAdBreakComplete=!1,(n=e.getAdsManager(t,i)).addEventListener(l.ima.AdErrorEvent.Type.AD_ERROR,e=>{var t,r,n;return x("error",{errorCode:(null==e||null==(n=e.getError)||null==(r=n.call(e))||null==(t=r.getErrorCode)?void 0:t.call(r))??0,loadMs:a})}),n.addEventListener(l.ima.AdEvent.Type.STARTED,()=>{r||(y.current=!0,N.current=a,v("reproduciendo"),null!==c&&window.clearTimeout(c))}),n.addEventListener(l.ima.AdEvent.Type.SKIPPED,()=>x("filled",{loadMs:a,skipped:!0})),n.addEventListener(l.ima.AdEvent.Type.COMPLETE,()=>x("filled",{loadMs:a,completed:!0})),n.addEventListener(l.ima.AdEvent.Type.ALL_ADS_COMPLETED,()=>x("filled",{loadMs:a,completed:!0}));try{n.init(p,f,l.ima.ViewMode.NORMAL),n.setVolume(0),n.start()}catch{x("error",{loadMs:a})}},!1);let g=new l.ima.AdsRequest;g.adTagUrl=(0,a.buildVideoAdTag)(o,{placement:"accompanying",position:"preroll",autoplay:!0,muted:!0,descriptionUrl:window.location.href,language:h??null,custParams:j?JSON.parse(j)??void 0:void 0}),g.linearAdSlotWidth=p,g.linearAdSlotHeight=f,g.nonLinearAdSlotWidth=p,g.nonLinearAdSlotHeight=Math.round(f/3),g.setAdWillAutoPlay(!0),g.setAdWillPlayMuted(!0),g.setContinuousPlayback(!1),i.requestAds(g),c=window.setTimeout(()=>x("timeout"),8e3)}).catch(()=>x("error")),()=>{r=!0,y.current&&k("filled",{loadMs:N.current}),u()}},[o,m,h,j,k]),"terminado"===b)return null;let C="reproduciendo"===b,S=(0,t.jsxs)("div",{className:"relative w-full",style:{aspectRatio:s},children:[(0,t.jsx)("div",{ref:f,className:"absolute inset-0"}),(0,t.jsx)("video",{ref:g,className:"absolute inset-0 h-full w-full object-contain",muted:!0,playsInline:!0,"aria-hidden":!0})]});return"flotante"===d?(0,t.jsx)(i.StickyDockShell,{titulo:c,variant:"corner",dismissKey:x,posicion:u,maxWidth:m,oculto:!C,children:S}):(0,t.jsx)("div",{className:"mx-auto w-full overflow-hidden transition-[height] duration-200",style:{maxWidth:m,height:C?void 0:0,aspectRatio:C?s:void 0},role:"complementary","aria-label":c,children:S})}])},909258,e=>{"use strict";var t=e.i(289704),r=e.i(280515),a=e.i(713784),n=e.i(828014),l=e.i(322426);let i="https://online.caliente.mx/promoRedirect";function s(e,t,r){let a=new URLSearchParams({member:e,campaign:"DEFAULT",channel:"DEFAULT",zone:t,lp:"0"});return r&&a.set("var1",r),`${i}?${a.toString()}`}function o(e,t,r){let a=e.filter(e=>!r||e.tienePartidos).map(e=>({id:e.id,nombre:e.nombre,orden:e.orden+1e3}));return t.forEach((e,t)=>{let r=t+1,n=a.find(t=>t.id===e.id);n?n.orden=r:a.push({id:e.id,nombre:e.nombre,orden:r})}),a.sort((e,t)=>e.orden-t.orden||e.nombre.localeCompare(t.nombre))}function c(e){let{nombre:r,cuota:a,href:n}=e;return(0,t.jsx)("div",{className:"h-full flex-1 basis-1/3 text-center",children:(0,t.jsxs)("a",{href:n,target:"_blank",rel:"noopener sponsored nofollow",className:"flex h-full flex-col items-center justify-center gap-2.5 text-black no-underline",children:[(0,t.jsx)("strong",{className:"block text-[1.1em] [text-shadow:3px_0_1px_#0000001f]",children:r}),(0,t.jsx)("div",{className:"flex aspect-square w-4 items-center justify-center rounded-[3px] bg-[#267bd6] text-[9px] font-extrabold leading-[10px] text-white",children:"0"}),(0,t.jsx)("div",{children:a})]})})}function d(e){let{mensaje:r}=e;return(0,t.jsx)("div",{className:"flex h-[110px] items-center justify-center rounded-[3px] bg-white text-[13px] text-[#585858]",children:r})}e.s(["CalientePartidosWidget",0,function(e){let{member:u,zone:m,promoKey:x,var1Header:p,var
11Footer:h,claseId:f,ligaDefault:g,ligasFijas:b,soloLigasConPartidos:v,idioma:j,colorFooter:w,alto:y,titulo:N,etiquetaHora:k,timezone:C,locale:S}=e,[$,E]=(0,r.useState)(void 0),[_,T]=(0,r.useState)(g),[L,D]=(0,r.useState)(null),I=(0,r.useRef)(null),A=(null==L?void 0:L.liga)===_?L.partidos:void 0,z=JSON.stringify(b);(0,r.useEffect)(()=>{let e=!1,t=JSON.parse(z);return fetch(`/api/caliente/ligas?clase=${encodeURIComponent(f)}&idioma=${encodeURIComponent(j)}`,{signal:AbortSignal.timeout(12e3)}).then(e=>e.ok?e.json():Promise.reject(Error(`${e.status}`))).then(r=>{e||E(o(r.ligas??[],t,v))}).catch(()=>{e||E(o([],t,v))}),()=>{e=!0}},[f,j,v,z]),(0,r.useEffect)(()=>{let e=!1,t=0,r=()=>{fetch(`/api/caliente/partidos/${encodeURIComponent(_)}?idioma=${encodeURIComponent(j)}`,{signal:AbortSignal.timeout(12e3)}).then(e=>e.ok?e.json():Promise.reject(Error(`${e.status}`))).then(r=>{e||(t=Date.now(),D({liga:_,partidos:r.partidos??[]}))}).catch(()=>{e||D(e=>(null==e?void 0:e.liga)===_?e:{liga:_,partidos:[]})})};r();let a=window.setInterval(()=>{e||document.hidden||r()},6e5),n=()=>{!document.hidden&&Date.now()-t>=6e5&&r()};return document.addEventListener("visibilitychange",n),()=>{e=!0,window.clearInterval(a),document.removeEventListener("visibilitychange",n)}},[_,j]);let P=(0,r.useCallback)(e=>{T(e),I.current&&(I.current.open=!1)},[]),R=null==$?void 0:$.find(e=>e.id===_),M=e=>(function(e,t,r,a){if(r){let t=new URLSearchParams({member:e,key:r,LANGUAGE_CODE:"es_MX",BET_REF:a});return`${i}?${t.toString()}`}let n=new URLSearchParams({member:e,campaign:"DEFAULT",channel:"DEFAULT",zone:t,lp:"0",BET_REF:a});return`https://online.caliente.mx/page?${n.toString()}`})(u,m,x,e);return(0,t.jsxs)("section",{"aria-label":N,className:"w-full bg-[#ededed] text-black",style:y?{height:`${y}px`}:void 0,children:[(0,t.jsxs)("div",{className:"relative flex items-center justify-between gap-2 px-2 py-[5px] min-[769px]:justify-center",children:[(0,t.jsx)("a",{href:s(u,m,p),target:"_blank",rel:"noopener sponsored nofollow",className:"shrink-0",children:(0,t.jsx)("img",{src:"/modules/caliente/caliente-header.png",alt:"Caliente",width:1200,height:689,className:"h-[46px] w-auto min-[769px]:h-[60px]"})}),(0,t.jsxs)("div",{className:"z-[99] min-[769px]:absolute min-[769px]:left-0 min-[769px]:top-1/2 min-[769px]:-translate-y-1/2",children:[(0,t.jsx)("span",{className:"mb-[5px] hidden text-[11px] text-[#bb3b31] min-[769px]:block",children:(0,l.t)(S,"Selecciona una liga:","Select a league:")}),(0,t.jsxs)("details",{ref:I,className:"relative",children:[(0,t.jsxs)("summary",{className:"flex w-[190px] cursor-pointer list-none items-center gap-[5px] rounded-[2px] bg-[#3b3b3b] px-2.5 py-1.5 text-[13px] leading-none text-white [&::-webkit-details-marker]:hidden min-[769px]:w-[230px]",children:[(0,t.jsx)("span",{className:"truncate",children:(null==R?void 0:R.nombre)??(0,l.t)(S,"Ligas","Leagues")}),(0,t.jsx)(a.ChevronDown,{className:"ml-auto size-2.5 shrink-0","aria-hidden":!0})]}),(0,t.jsx)("ul",{className:"absolute right-0 z-50 max-h-[166px] w-[190px] overflow-y-auto rounded-b-[2px] bg-[#3b3b3b] text-[13px] shadow-[0_6px_9px_-4px_#0000006e] min-[769px]:left-0 min-[769px]:right-auto min-[769px]:w-[230px]",children:($??[]).map(e=>(0,t.jsx)("li",{className:"border-b border-[#a1a1a1] last:border-b-0",children:(0,t.jsx)("button",{type:"button",onClick:()=>P(e.id),className:`block w-full px-[7px] py-[7px] text-left text-white hover:bg-black hover:text-[#ceff96] ${e.id===_?"bg-black text-[#ceff96]":""}`,children:e.nombre})},e.id))})]})]})]}),(0,t.jsx)("div",{className:"px-2",children:void 0===A?(0,t.jsx)(d,{mensaje:(0,l.t)(S,"Cargando partidos…","Loading matches…")}):0===A.length?(0,t.jsx)(d,{mensaje:(0,l.t)(S,"No hay partidos programados en esta liga.","No matches scheduled in this league.")}):(0,t.jsx)(n.NewsCarousel,{mostrarFlechas:!0,children:A.map(e=>(0,t.jsx)("div",{className:"shrink-0 snap-start basis-full min-[480px]:basis-[calc((100%-1rem)/2)] min-[800px]:basis-[calc((100%-2rem)/3)]",children:(0,t.jsxs)("div",{className:"flex h-full items-center rounded-[3px] bg-white p-[15px] leading-none",children:[(0,t.jsx)(c,{nombre:e.local.nombre,cuota:e.local.cuota,href:M(e.local.betRef)}),(0,t.jsxs)("div",{className:"flex h-full shrink-0 flex-col items-center justify-center gap-[7px] px-1 text-center",children:[(0,t.jsx)("div",{className:"text-[1.3em] font-extrabold text-[#d62926]",children:"VS"}),(0,t.jsx)("div",{className:"text-[9px] uppercase text-[#585858]",children:function(e,t,r,a){let n;if(!e)return"";let i=new Date(e);if(Number.isNaN(i.getTime()))return"";if((0,l.isEnglish)(t))try{let e=new Intl.DateTimeFormat(t,{timeZone:r,day:"numeric",month:"numeric"}).format(i),n=new Intl.DateTimeFormat(t,{timeZone:r,hour:"numeric",minute:"2-digit",hour12:!0}).format(i),l=`${e} - ${n}`;return a?`${l} ${a}`:l}catch{return""}try{n=new Intl.DateTimeFormat(t,{timeZone:r,day:"numeric",month:"numeric",hour:"2-digit",minute:"2-digit",hourCycle:"h23"}).formatToParts(i)}catch{return""}let s=e=>{var t;return(null==(t=n.find(t=>t.type===e))?void 0:t.value)??""},o=s("day"),c=s("month"),d=s("hour"),u=s("minute");
1if(!o||!c||!d)return"";let m=`${o}/${c} - ${d}:${u}`;return a?`${m} ${a}`:m}(e.inicio,S,C,k)}),(0,t.jsxs)("a",{href:M(e.empate.betRef),target:"_blank",rel:"noopener sponsored nofollow",className:"text-black no-underline",children:[e.empate.nombre,": ",e.empate.cuota]})]}),(0,t.jsx)(c,{nombre:e.visitante.nombre,cuota:e.visitante.cuota,href:M(e.visitante.betRef)})]})},e.id))})}),(0,t.jsx)("div",{className:"mt-[15px] flex w-full justify-center",style:{backgroundColor:w},children:(0,t.jsx)("a",{href:s(u,m,h),target:"_blank",rel:"noopener sponsored nofollow",className:"flex w-full items-center justify-center py-2.5",children:(0,t.jsx)("img",{src:"/modules/caliente/caliente-footer.gif",alt:(0,l.t)(S,"Promoción de Caliente","Caliente promotion"),width:936,height:30,className:"h-auto max-w-full"})})})]})}])},490303,e=>{"use strict";var t=e.i(289704),r=e.i(280515),a=e.i(895345);let n=(0,a.default)("Maximize2",[["polyline",{points:"15 3 21 3 21 9",key:"mznyad"}],["polyline",{points:"9 21 3 21 3 15",key:"1avn1i"}],["line",{x1:"21",x2:"14",y1:"3",y2:"10",key:"ota7mn"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]),l=(0,a.default)("Minimize2",[["polyline",{points:"4 14 10 14 10 20",key:"11kfnr"}],["polyline",{points:"20 10 14 10 14 4",key:"rlmsce"}],["line",{x1:"14",x2:"21",y1:"10",y2:"3",key:"o5lafz"}],["line",{x1:"3",x2:"10",y1:"21",y2:"14",key:"1atl0r"}]]);var i=e.i(823322),s=e.i(736264),o=e.i(322426),c=e.i(943377);e.s(["VideoEnVivoWidget",0,function(e){let{youtubeId:a,titulo:d,url:u,etiqueta:m}=e,[x,p]=(0,r.useState)(!1),[h,f]=(0,r.useState)(!1),[g,b]=(0,r.useState)(!1),v=(0,s.useLocale)();if((0,r.useEffect)(()=>{let e,t,r=!1,a=window,n=()=>{r||p(!0)},l=()=>{a.requestIdleCallback?e=a.requestIdleCallback(n,{timeout:2e3}):t=setTimeout(n,300)};return"complete"===document.readyState?l():window.addEventListener("load",l,{once:!0}),()=>{var n;r=!0,window.removeEventListener("load",l),void 0!==e&&(null==(n=a.cancelIdleCallback)||n.call(a,e)),void 0!==t&&clearTimeout(t)}},[]),g)return null;let j=`https://i.ytimg.com/vi/${a}/hqdefault.jpg`;return(0,t.jsx)("section",{className:`video-en-vivo${h?" video-en-vivo--ampliado":""}`,children:(0,t.jsxs)("div",{className:"video-en-vivo__inner",children:[(0,t.jsx)("div",{className:"video-en-vivo__video",children:(0,t.jsx)("div",{className:"video-en-vivo__player",children:x?(0,t.jsx)("iframe",{src:`https://www.youtube.com/embed/${a}?autoplay=1&mute=1&playsinline=1&controls=1&rel=0&modestbranding=1&origin=${encodeURIComponent(window.location.origin)}`,title:d,allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",referrerPolicy:"strict-origin-when-cross-origin",allowFullScreen:!0,className:"video-en-vivo__iframe"}):(0,t.jsx)("img",{src:j,alt:"",loading:"lazy",decoding:"async",className:"video-en-vivo__poster"})})}),(0,t.jsxs)("div",{className:"video-en-vivo__detalles",children:[m&&(0,t.jsxs)("p",{className:"video-en-vivo__estado",children:[(0,t.jsx)("span",{className:"video-en-vivo__punto animate-pulse","aria-hidden":"true"}),m]}),(0,t.jsx)("a",{href:u,className:"video-en-vivo__titulo",children:d})]}),(0,t.jsxs)("div",{className:"video-en-vivo__acciones",children:[(0,t.jsx)("button",{type:"button","aria-label":(0,o.t)(v,"Cerrar el video","Close video"),className:"video-en-vivo__boton video-en-vivo__boton--cerrar",onClick:e=>{(0,c.ocultarModulo)(e.currentTarget),b(!0)},children:(0,t.jsx)(i.X,{className:"video-en-vivo__icono","aria-hidden":"true"})}),(0,t.jsx)("button",{type:"button","aria-label":h?(0,o.t)(v,"Achicar el video","Shrink video"):(0,o.t)(v,"Ampliar el video","Expand video"),"aria-pressed":h,className:"video-en-vivo__boton",onClick:()=>f(e=>!e),children:h?(0,t.jsx)(l,{className:"video-en-vivo__icono video-en-vivo__icono--chico","aria-hidden":"true"}):(0,t.jsx)(n,{className:"video-en-vivo__icono video-en-vivo__icono--chico","aria-hidden":"true"})})]})]})})}],490303)},195370,e=>{"use strict";var t=e.i(289704),r=e.i(280515);e.s(["AdSlot",0,function(e){let{children:a,zoneCode:n,lazyLoad:l=!0,hideBeforeLoad:i=!1,reserveWidth:s,reserveHeight:o,c
1ollapsible:c=!1}=e,d=(0,r.useRef)(null),[u,m]=(0,r.useState)(!l);(0,r.useEffect)(()=>{if(!l||!d.current)return void m(!0);let e=new IntersectionObserver(t=>{let[r]=t;r.isIntersecting&&(m(!0),e.disconnect())},{rootMargin:"200px"});return e.observe(d.current),()=>e.disconnect()},[l]);let x={};return(!u||i)&&(o&&!c&&(x.minHeight=o),s&&(x.maxWidth=s)),(0,t.jsx)("div",{ref:d,"data-ad-slot":n,style:x,children:u?a:null})}])},699431,e=>{"use strict";var t=e.i(289704),r=e.i(280515);function a(e){let t=document.createElement("script");for(let r of Array.from(e.attributes))t.setAttribute(r.name,r.value);return t.textContent=e.textContent,t}e.s(["HtmlAdEmbed",0,function(e){let{html:n}=e,l=(0,r.useRef)(null);return(0,r.useEffect)(()=>{let e=l.current;if(!e)return;e.replaceChildren();let t=document.createElement("template");for(let r of(t.innerHTML=n,Array.from(t.content.childNodes)))e.appendChild(function(e){if(e.nodeType!==Node.ELEMENT_NODE)return e.cloneNode(!0);if("SCRIPT"===e.tagName)return a(e);let t=e.cloneNode(!0);return t.querySelectorAll("script").forEach(e=>e.replaceWith(a(e))),t}(r));return()=>e.replaceChildren()},[n]),(0,t.jsx)("div",{ref:l})}])},7648,e=>{"use strict";var t=e.i(280515),r=e.i(556220);e.s(["GptOutOfPageSlot",0,function(e){let{adUnitPath:a,format:n,slotId:l}=e,i=(0,t.useRef)(!1);return(0,t.useEffect)(()=>{if(!i.current)return i.current=!0,(0,r.registerSlot)({adUnitPath:a,sizes:[],divId:l,format:n,onReady:()=>{},onError:()=>{}}),()=>(0,r.destroySlot)(l)},[a,n,l]),null}])},630058,e=>{"use strict";var t=e.i(289704),r=e.i(280515),a=e.i(556220);e.s(["GptOutOfPageDivSlot",0,function(e){let{adUnitPath:n,slotId:l}=e,i=(0,r.useRef)(!1);return(0,r.useEffect)(()=>{if(!i.current)return i.current=!0,(0,a.registerSlot)({adUnitPath:n,sizes:[],divId:l,format:"oop_clasico",onReady:()=>{},onError:()=>{}}),()=>(0,a.destroySlot)(l)},[n,l]),(0,t.jsx)("div",{id:l,"data-ad-oop":n,style:{position:"fixed",top:0,left:0,width:1,height:1,overflow:"visible",zIndex:0x7fffffff}})}])},988494,e=>{"use strict";var t=e.i(289704),r=e.i(280515),a=e.i(556220),n=e.i(736264),l=e.i(322426);e.s(["InterstitialCustom",0,function(e){let{adUnitPath:i,sizes:s,titulo:o,slotId:c,closeDelaySecs:d=0,autoCloseSecs:u=0,logoUrl:m=null}=e,x=(0,r.useRef)(!1),p=(0,r.useRef)(null),[h,f]=(0,r.useState)("pending"),[g,b]=(0,r.useState)(d<=0),[v,j]=(0,r.useState)(!1),w=(0,r.useId)().replace(/[^a-zA-Z0-9]/g,""),y=`${c}-${w}`,N=(0,l.t)((0,n.useLocale)(),"Saltar publicidad","Skip ad"),k=String.fromCharCode(160),C=`${N}${k}${k}X`,S=(0,r.useCallback)(()=>{f("closed"),(0,a.destroySlot)(y)},[y]);if((0,r.useEffect)(()=>{let e=p.current;e&&!e.open&&e.show()},[]),(0,r.useEffect)(()=>{if(!x.current)return x.current=!0,(0,a.registerSlot)({adUnitPath:i,sizes:s,divId:y,onReady:()=>{},onError:()=>f("closed"),onRendered:e=>f(t=>"closed"===t?t:e?"filled":"closed")}),()=>(0,a.destroySlot)(y)},[i,s,y]),(0,r.useEffect)(()=>{let e=p.current;if("filled"===h&&e&&"function"==typeof e.showModal)try{e.open&&e.close(),e.showModal()}catch{e.open||e.show()}},[h]),(0,r.useEffect)(()=>{if("filled"!==h)return;let e=document.documentElement;return e.setAttribute("data-e80-itt","open"),()=>e.removeAttribute("data-e80-itt")},[h]),(0,r.useEffect)(()=>{if("filled"!==h||g)return;let e=setTimeout(()=>b(!0),1e3*Math.max(0,d));return()=>clearTimeout(e)},[h,g,d]),(0,r.useEffect)(()=>{if("filled"!==h||u<=0)return;let e=window.setTimeout(S,1e3*u);return()=>window.clearTimeout(e)},[h,u,S]),"closed"===h)return null;let $="bg-black px-4 py-2 font-mono text-xs uppercase tracking-widest text-white md:text-sm";return(0,t.jsxs)("dialog",{ref:p,className:`fixed inset-0 z-[2147483647] m-0 hidden h-full max-h-none w-full max-w-none flex-col border-0 bg-white p-0 open:flex backdrop:bg-white ${"filled"===h?"":"invisible pointer-events-none"}`,"aria-label":o,inert:"filled"!==h,onCancel:e=>{e.preventDefault(),g&&S()},children:[(0,t.jsxs)("div",{className:"flex items-center justify-between gap-4 px-4 py-4 md:px-8 md:py-5",children:[m&&!v?(0,t.jsx)("img",{src:m,alt:"",className:"h-6 w-auto md:h-8",onError:()=>j(!0)}):(0,t.jsx)("span",{}),g?(0,t.jsx)("button",{type:"button",onClick:S,"aria-label":N,className:`${$} hover:opacity-75`,children:C}):(0,t.jsx)("span",{"aria-hidden":"true",className:`${$} invisible select-none`,children:C})]}),(0,t.jsx)("div",{className:"flex flex-1 overflow-auto",children:(0,t.jsx)("div",{id:y,className:"m-auto flex items-center justify-center",style:{contain:"layout"}})})]})}])}]);

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.