PageSourceSearch

https://placar.com.br/_next/static/chunks/2693-33d4b156482b6208.js

js placar.com.br collected 2026-10-01 11:51:43 UTC 31,769 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2693],{6490:(e,t,a)=>{a.d(t,{Accordion:()=>m,AccordionContent:()=>h,AccordionItem:()=>u,AccordionTrigger:()=>x});var r=a(25594),l=a(60376),s=a(37414),n=a(95155),o=a(12115),i=a(35260),c=a(53999),d=a(66474);let m=i.bL,u=o.forwardRef((e,t)=>{var{className:a}=e,l=(0,s._)(e,["className"]);return(0,n.jsx)(i.q7,(0,r._)({ref:t,className:(0,c.cn)(" bg-white/5 dark:bg-neutral-900/5 backdrop-blur-sm transition-all",a)},l))});u.displayName="AccordionItem";let x=o.forwardRef((e,t)=>{var{className:a,children:o,headerAs:m="h3"}=e,u=(0,s._)(e,["className","children","headerAs"]);let x=(0,n.jsxs)(i.l9,(0,l._)((0,r._)({ref:t,className:(0,c.cn)("flex ",a)},u),{children:[(0,n.jsx)(d.A,{className:"h-5 w-5 text-neutral-1000 dark:text-neutral-50 transition-transform duration-300 group-data-[state=open]:rotate-180","aria-hidden":"true"}),(0,n.jsx)("span",{className:"flex items-center gap-2 ",children:o})]}));return"div"===m?(0,n.jsx)(i.Y9,{asChild:!0,children:(0,n.jsx)("div",{className:"flex w-full",children:x})}):(0,n.jsx)(i.Y9,{className:"flex w-full",children:x})});x.displayName=i.l9.displayName;let h=o.forwardRef((e,t)=>{var{className:a,children:o}=e,d=(0,s._)(e,["className","children"]);return(0,n.jsx)(i.UC,(0,l._)((0,r._)({ref:t,className:(0,c.cn)("overflow-hidden text-sm data-[state=closed]:animate-accordion-up data-[state=open]:animate-accordion-down",a)},d),{children:(0,n.jsx)("div",{className:"px-0 pb-4",children:o})}))});h.displayName=i.UC.displayName},22693:(e,t,a)=>{a.r(t),a.d(t,{MatchDateCarousel:()=>w});var r=a(25594),l=a(60376),s=a(95155),n=a(12115),o=a(12220),i=a(29593),c=a(97477),d=a(64045),m=a(88145),u=a(37777),x=a(6490);let h={Acre:"AC",Alagoas:"AL",Amapá:"AP",Amazonas:"AM",Bahia:"BA",Ceará:"CE","Distrito Federal":"DF","Esp\xedrito Santo":"ES",Goiás:"GO",Maranhão:"MA","Mato Grosso":"MT","Mato Grosso do Sul":"MS","Minas Gerais":"MG",Pará:"PA",Paraíba:"PB",Paraná:"PR",Pernambuco:"PE",Piauí:"PI","Rio de Janeiro":"RJ","Rio Grande do Norte":"RN","Rio Grande do Sul":"RS",Rondônia:"RO",Roraima:"RR","Santa Catarina":"SC","S\xe3o Paulo":"SP",Sergipe:"SE",Tocantins:"TO"};function f(e){var t,a,r,l,n,f,g,p,b;let{match:y}=e,j=null!=(l=null==(t=y.broadcasts)?void 0:t.filter(e=>e.is_confirmed))?l:[],v=i.c9.fromISO(y.match_datetime_utc,{zone:"utc"}).setZone("America/Sao_Paulo"),w=null==(a=y.venue)?void 0:a.name,N=null==(r=y.venue)?void 0:r.city,k=v.toFormat("HH:mm"),C=!!y.postponed&&"Played"!==y.status&&"Playing"!==y.status,_="",A="";if(N){let e=N.split(", ");_=e[0]||"",A=e[1]||""}return(0,s.jsxs)("div",{className:"font-sans relative flex flex-col min-w-[300px] lg:min-w-[398px] items-center justify-between py-4 mb-6 bg-white dark:bg-neutral-800 rounded-md shadow-sm overflow-hidden",children:[(0,s.jsxs)("div",{className:"absolute top-0 left-0 right-0 flex h-1.5",children:[(0,s.jsx)("div",{className:"flex-1 ".concat("bg-primary-main")}),(0,s.jsx)("div",{className:"flex-1 ".concat("bg-green")})]}),(0,s.jsx)("div",{className:"relative w-full flex justify-start px-3 mb-2",children:(0,s.jsx)("p",{className:"text-xs lg:text-[16px] py-1 font-semibold text-foreground text-right  truncate",children:y.season.name})}),(0,s.jsxs)(c.u,{href:y.liveUrl,className:"block w-full px-4 ",children:[" ",(0,s.jsxs)("div",{className:"flex items-start justify-between w-full max-w-xl mx-auto",children:[" ",(0,s.jsxs)("div",{className:"flex items-center justify-center flex-col w-[25%]",children:[(0,s.jsx)(o.FallbackImage,{type:"TEAM",src:y.home_team.logo,alt:y.home_team.name,width:32,height:32,className:"w-10 h-10 object-contain"}),(0,s.jsx)("span",{className:"text-xs lg:text-[12px] py-1 text-foreground text-center truncate",children:y.home_team.name})]}),("Fixture"===y.status||C)&&(0,s.jsxs)("div",{className:"text-xs text-[#000] dark:text-neutral-50 text-center px-4 w-[50%]",children:[w&&(0,s.jsx)("span",{className:"font-bold truncate",children:w}),w&&(_||A)&&(0,s.jsx)("span",{className:"mx-1",children:(0,s.jsx)("br",{})}),_&&(0,s.jsx)("span",{className:"font-medium",children:_}),_&&A&&(0,s.jsx)("span",{className:"mx-1",children:"/"}),A&&(0,s.jsx)("span",{className:"font-medium",children:null!=(n=h[A])?n:A}),(w||_||A)&&(k||C)&&(0,s.jsx)("span",{className:"mx-1",children:(0,s.jsx)("br",{})}),C?(0,s.jsx)("span",{className:"font-bold uppercase",children:"Adiado"}):k&&(0,s.jsx)("span",{className:"font-bold",children:k})]}),"Played"===y.status&&(0,s.jsx)("div",{className:"flex flex-col items-center justify-center mx-2 w-[50%]",children:(0,s.jsxs)("div",{className:"flex items-center font-bold text-h2 text-foreground",children:[(0,s.jsx)("span",{children:null!=(f=y.home_team_score)?f:"-"}),(0,s.jsx)("span",{className:"text-sh3 font-normal text-foreground mx-4",children:"x"}),(0,s.jsx)("span",{children:null!=(g=y.away_team_score)?g:"-"})]})}),"Playing"===y.status&&(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center mx-2 w-[50%]",children:[(0,s.jsx)("div",{className:"inline-block bg-primary-main text-black text-xs font-semibold px-2 py-1 mb-4 rounded-full",children:"00:00"}),(0,s.jsxs)("div",{className:"flex items-center font-bold text-h2 text-foreground",children:[(0,s.jsx)("span",{children:null!=(p=y.home_team_score)?p:"-"}),(0,s.jsx)("span",{className:"text-sh3 font-normal text-foreground mx-4",children:"x"}),(0,s.jsx)("span",{children:null!=(b=y.away_team_score)?b:"-"})]})]}),(0,s.jsxs)("div",{className:"flex items-center justify-center flex-col w-[25%]",children:[(0,s.jsx)(o.FallbackImage,{type:"TEAM",src:y.away_team.logo,alt:y.away_team.name,width:32,height:32,className:"w-10 h-10 object-contain"}),(0,s.jsx)("span",{className:"text-sm lg:text-[12px] py-1 text-foreground text-center truncate",title:y.away_team.name,children:y.away_team.name})]})]})]})," ",j.length>0&&(0,s.jsx)("div",{className:"mt-1 w-full border-t border-border pt-3 px-2",children:(0,s.jsx)(x.Accordion,{type:"single",collapsible:!0,className:"w-full",children:(0,s.jsxs)(x.AccordionItem,{value:"broadcasts",children:[(0,s.jsx)(x.AccordionTrigger,{headerAs:"div",className:"text-center justify-center text-t5 font-semibold text-neutral-1000 dark:text-neutral-50",children:"Onde Assistir"}),(0,s.jsx)(x.AccordionContent,{children:(0,s.jsx)("div",{className:"mt-3 flex flex-col items-start justify-center gap-2",children:(0,s.jsx)("div",{className:"flex items-center justify-start gap-2 flex-wrap",children:(0,s.jsx)(u.Bc,{children:j.map(e=>(0,s.jsxs)(u.m_,{children:[(0,s.jsx)(u.k$,{asChild:!0,children:(0,s.jsxs)(m.E,{variant:"secondary",className:"font-semibold cursor-default bg-gray-100 dark:bg-gray-800 rounded-full text-black dark:text-white px-4 py-2",children:[(0,s.jsx)(d.A,{className:"h-[18px!important] w-[18px!important] me-1 text-green"}),e.broadcaster.name]})}),e.observation&&(0,s.jsx)(u.ZI,{children:(0,s.jsx)("p",{children:e.observation})})]},e.id))})})})})]})})})]})}var g=a(39442),p=a(66474),b=a(6874),y=a.n(b),j=a(35695),v=a(53999);function w(e){var t,a,c,d,m,u,x;let{matches:h,variant:b="full",maxMatchesPerDate:w=99}
1=e,[N,k]=(0,n.useState)(0),C=(0,n.useRef)(null),{ref:_,handlers:A}=(0,g.h)(),S=(0,j.useRouter)(),M=(0,j.usePathname)(),P=(0,j.useSearchParams)(),L=(0,n.useRef)(null),I=(0,n.useRef)(null),E=(0,n.useMemo)(()=>{let e={};return h.forEach(t=>{var a;let r=i.c9.fromISO(t.match_datetime_utc,{zone:"utc"}).setZone("America/Sao_Paulo").toISODate(),l=t.season.name;r&&l&&(null!=e[r]||(e[r]={}),null!=(a=e[r])[l]||(a[l]=[]),e[r][l].some(e=>e.id===t.id)||e[r][l].push(t))}),Object.values(e).forEach(e=>{Object.values(e).forEach(e=>{e.sort((e,t)=>new Date(e.match_datetime_utc).getTime()-new Date(t.match_datetime_utc).getTime())})}),e},[h]),O=null!=(a=i.c9.local().setZone("America/Sao_Paulo").toISODate())?a:i.c9.local().toFormat("yyyy-LL-dd"),R=null==M?void 0:M.startsWith("/onde-assistir"),T=(0,n.useMemo)(()=>{var e;if(!M)return null;let t=M.match(/^\/onde-assistir\/(\d{4}-\d{2}-\d{2})/);return null!=(e=null==t?void 0:t[1])?e:null},[M]),F=null!=T?T:O,D=(0,n.useMemo)(()=>{if("full"===b&&R){let e=i.c9.fromISO(F,{zone:"America/Sao_Paulo"}),t=e.isValid?e:i.c9.local().setZone("America/Sao_Paulo"),a=[];for(let e=-7;e<=7;e+=1){let r=t.plus({days:e}).toISODate();r&&a.push(r)}return a}return Object.keys(E).sort((e,t)=>new Date(e).getTime()-new Date(t).getTime())},[E,b,R,F]),z=D[N],B=(e,t)=>{"number"==typeof t&&k(t),ey(!0),"full"===b&&R&&V(et,$,"push",e)},Z=(0,n.useMemo)(()=>D.findIndex(e=>e===O),[D,O]),H=null!=z?z:F,U=(0,n.useMemo)(()=>new URLSearchParams(P.toString()),[P]),G=(e,t)=>{let a=t.toString();return a?"/onde-assistir/".concat(e,"?").concat(a):"/onde-assistir/".concat(e)},V=function(e,t){let a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"replace",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:H;if(!R)return;let l=new URLSearchParams(P.toString());e?l.set("team",e):l.delete("team"),t?l.set("champ",(0,v.e)(t)):l.delete("champ");let s=G(r,l);if("replace"===a)return void S.replace(s,{scroll:!1});S.push(s)},W=G(null!=z?z:O,U),q=(0,n.useMemo)(()=>{let e=new Set;return Object.values(E).forEach(t=>{Object.keys(t).forEach(t=>e.add(t))}),Array.from(e)},[E]);(0,n.useEffect)(()=>{if(!D.length)return;let e=-1;T&&(e=D.findIndex(e=>e===T));let t=i.c9.local().setZone("America/Sao_Paulo").toISODate();-1===e&&(e=D.findIndex(e=>e===t)),-1===e&&(e=D.findIndex(e=>i.c9.fromISO(e).endOf("day").toMillis()>=i.c9.local().startOf("day").toMillis())),k(e>=0?e:0)},[D,T]),(0,n.useEffect)(()=>{if(!C.current)return;let e=C.current.children[N];null==e||e.scrollIntoView({behavior:"smooth",inline:"center"})},[N]);let J=(0,n.useCallback)(e=>{var t,a,r;let l=[];if(!z)return l;if("full"===b){let r=null!=(a=null==(t=E[z])?void 0:t[e])?a:[];return[...r.filter(e=>"Playing"===e.status),...r.filter(e=>"Playing"!==e.status)].slice(0,w)}for(let t of D.filter(e=>e>=z)){let a=null==(r=E[t])?void 0:r[e];if(a){for(let e of[...a.filter(e=>"Playing"===e.status),...a.filter(e=>"Playing"!==e.status)])if(l.push(e),l.length>=w)return l}}return l},[z,b,E,w,D]),X=(0,n.useMemo)(()=>{let e=new Map;return q.forEach(t=>{e.set(t,J(t))}),e},[q,J]),Y=(0,n.useMemo)(()=>q.map(e=>{var t;let a=null!=(t=X.get(e))?t:[];return{name:e,hasLive:a.some(e=>"Playing"===e.status),nextTime:a[0]?new Date(a[0].match_datetime_utc).getTime():1/0}}).filter(e=>e.nextTime!==1/0).sort((e,t)=>e.hasLive!==t.hasLive?e.hasLive?-1:1:e.nextTime-t.nextTime),[q,X]),[$,K]=(0,n.useState)(null),[Q,ee]=(0,n.use
1State)(!1),[et,ea]=(0,n.useState)(null),[er,el]=(0,n.useState)(!1),[es,en]=(0,n.useState)(!1),[eo,ei]=(0,n.useState)(!1),ec=(0,n.useMemo)(()=>{let e=new Map;return h.forEach(t=>{var a,r;(null==(a=t.home_team)?void 0:a.id)&&e.set(t.home_team.id,{id:t.home_team.id,name:t.home_team.name,logo:t.home_team.logo,country:t.home_team.country}),(null==(r=t.away_team)?void 0:r.id)&&e.set(t.away_team.id,{id:t.away_team.id,name:t.away_team.name,logo:t.away_team.logo,country:t.home_team.country})}),Array.from(e.values()).sort((e,t)=>e.name.localeCompare(t.name,"pt-BR"))},[h]),ed=(0,n.useMemo)(()=>ec.filter(e=>"Brasil"===e.country),[ec]),em=(0,n.useMemo)(()=>ec.filter(e=>e.country&&"Brasil"!==e.country),[ec]),eu=e=>{ea(e),el(!1),en(!1),V(e,$)},ex=e=>{K(e),ee(!1),ei(!1),V(et,e)},eh=()=>{K(null),ee(!1),ei(!1),ea(null),el(!1),en(!1),V(null,null)},ef=et?null!=(c=null==(t=ec.find(e=>e.id===et))?void 0:t.name)?c:"Time filtrado":"Todos os times",eg=$?null!=(d=q.find(e=>e===$||(0,v.e)(e)===$))?d:"Campeonato filtrado":"Todos os campeonatos",ep=e=>$===e||(0,v.e)(e)===$;(0,n.useEffect)(()=>{var e;if("full"!==b||!R)return;let t=P.get("team"),a=P.get("champ"),r=a?null!=(e=q.find(e=>(0,v.e)(e)===a))?e:a:null;ea(null!=t?t:null),K(r)},[b,R,P,q]),(0,n.useEffect)(()=>{let e=I.current,t=L.current,a=a=>{let r=a.target;e&&!e.contains(r)&&el(!1),t&&!t.contains(r)&&ee(!1)};return document.addEventListener("mousedown",a),()=>{document.removeEventListener("mousedown",a)}},[]),(0,n.useEffect)(()=>{if("full"===b){if(es||eo){document.body.style.overflow="hidden";return}return document.body.style.overflow="",()=>{document.body.style.overflow=""}}},[b,es,eo]),(0,n.useEffect)(()=>{if("full"===b)return;let e=Y.slice(0,6);if(!e.length)return void K(null);$&&e.some(e=>e.name===$)||K(e[0].name)},[b,z,Y,$]);let[eb,ey]=(0,n.useState)(!1),ej="full"!==b||eb?z:null;function ev(e){let t=J(e);return et?t.filter(e=>e.home_team.id===et||e.away_team.id===et):t}if(!D.length)return(0,s.jsx)("section",{className:"mb-4 p-4 bg-white dark:bg-neutral-900 rounded-lg shadow-sm text-center text-text-secondary",children:"N\xe3o h\xe1 jogos marcados ou resultados para exibi\xe7\xe3o."});let ew="full"!==b||Object.keys(null!=(m=E[z])?m:{}).some(e=>(!$||ep(e))&&ev(e).length>0);return(0,s.jsxs)("section",{className:"mb-6",children:["full"===b&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)("div",{className:"flex flex-col items-stretch justify-between gap-2 sm:flex-row sm:items-center",children:[(0,s.jsx)("h3",{className:"mb-4 text-2xl font-bold leading-tight text-gray-900 dark:text-gray-100 sm:text-[30px] sm:leading-8",children:"Onde Assistir"}),(0,s.jsxs)("div",{className:"flex flex-col items-stretch gap-2 sm:flex-row sm:items-center sm:gap-4",children:[(0,s.jsxs)("div",{ref:I,className:"relative my-1 w-full sm:my-3 sm:w-auto",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>{if(window.innerWidth<640)return void en(!0);el(e=>!e)},className:"flex w-full items-center justify-between gap-2 rounded-md border border-gray-300 dark:border-gray-700 bg-white dark:bg-neutral-900 px-4 py-2 text-sm font-semibold text-gray-800 dark:text-gray-200 sm:w-auto",children:[ef,(0,s.jsx)(p.A,{className:"h-4 w-4"})]}),er&&(0,s.jsx)("div",{className:"absolute left-0 z-20 mt-2 hidden min-w-[360px] rounded-md border bg-white dark:bg-neutral-900 shadow-lg sm:block",children:(0,s.jsxs)("ul",{className:"py-2 max-h-72 overflow-auto grid grid-cols-1",children:[ed.length>0&&(0,s.jsxs)("li",{children:[(0,s.jsx)("p",{className:"px-4 py-1 text-xs font-semibold uppercase text-gray-400 dark:text-gray-500",children:"Times do Brasil"}),(0,s.jsx)("div",{className:"grid grid-cols-6 gap-1 px-2",children:ed.map(e=>{var t;return(0,s.jsx)("button",{onClick:()=>eu(e.id),className:"flex items-center justify-center rounded-md p-2 hover:bg-gray-100 dark:hover:bg-gray-800",children:(0,s.jsx)(o.FallbackImage,{src:null!=(t=e.logo)?t:"/images/team-placeholder.png",alt:e.name,width:40,height:40,className:"object-contain"})},e.id)})})]}),em.length>0&&(0,s.jsxs)("li",{children:[(0,s.jsx)("p",{className:"px-4 py-1 text-xs font-semibold uppercase text-gray-400 dark:text-gray-500",children:"Times Internacionais"}),(0,s.jsx)("div",{className:"grid grid-cols-6 gap-1 px-2",children:em.map(e=>{var t;return(0,s.jsx)("button",{onClick:()=>eu(e.id),className:"flex items-center justify-center rounded-md p-2 hover:bg-gray-100 dark:hover:bg-gray-800",children:(0,s.jsx)(o.FallbackImage,{src:null!=(t=e.logo)?t:"/images/team-placeholder.png",alt:e.name,width:40,height:40,className:"object-contain"})},e.id)})})]})]})})]}),(0,s.jsxs)("div",{ref:L,className:"relative my-1 w-full sm:my-3 sm:w-auto",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>
1{if(window.innerWidth<640)return void ei(!0);ee(e=>!e)},className:"\n                    flex w-full items-center justify-between gap-2\n                    rounded-md \n                    bg-white dark:bg-neutral-900 px-4 py-2 sm:w-auto\n                    text-sm font-semibold text-gray-900 dark:text-gray-100\n                    hover:bg-gray-50 dark:hover:bg-gray-900\n                    focus:outline-none\n                    cursor-pointer\n                    border border-gray-300 dark:border-gray-700\n                  ",children:[eg,(0,s.jsx)(p.A,{className:"h-4 w-4 transition-transform ".concat(Q?"rotate-180":"")})]}),Q&&(0,s.jsx)("div",{className:" absolute left-0 z-20 mt-2 hidden min-w-[260px] sm:block rounded-md border border-gray-200 dark:border-gray-700 bg-white dark:bg-neutral-900 shadow-lg ",children:(0,s.jsxs)("ul",{className:"py-2",children:["full"===b&&(0,s.jsx)("li",{children:(0,s.jsx)("button",{onClick:()=>ex(null),className:"\n                            w-full text-left px-4 py-2 text-sm\n                            transition-colors\n                            cursor-pointer\n                            ".concat(null===$?"bg-green/10 text-green font-semibold":"text-gray-800 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-800","\n                          "),children:"Todos os campeonatos"})}),("full"===b?q.map(e=>({name:e})):Object.keys(ej?E[ej]:null!=E?E:{}).map(e=>({name:e}))).map(e=>{var t,a;let{name:r}=e,l="full"===b?null!=(t=X.get(r))?t:[]:ej?E[ej]:null!=(a=null==E?void 0:E[r])?a:[];if("full"!==b&&!l.length)return null;let n=ep(r);return(0,s.jsx)("li",{children:(0,s.jsx)("button",{onClick:()=>ex(r),className:"\n                                w-full text-left px-4 py-2 text-sm\n                                transition-colors\n                                cursor-pointer\n                                ".concat(n?"bg-green/10 text-green font-semibold":"text-gray-800 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-800","\n                              "),children:r})},r)})]})})]}),(0,s.jsx)("div",{className:"relative my-1 w-full sm:my-3 sm:w-auto",children:(0,s.jsx)("button",{onClick:eh,className:"\n                    w-full text-left px-0 py-2 text-sm underline sm:px-4\n                    transition-colors\n                    cursor-pointer\n                    ".concat(null===$?" text-green font-semibold hover:bg-green/10":"text-gray-800 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-800","\n                  "),children:"Limpar Filtro"})}),-1===Z&&(0,s.jsx)("button",{type:"button",onClick:()=>B(O),className:"text-[#899E05] text-sm font-semibold hover:underline cursor-pointer",children:"Hoje"})]})]}),es&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button","aria-label":"Fechar sele\xe7\xe3o de times",onClick:()=>en(!1),className:"fixed inset-0 z-40 bg-black/40"}),(0,s.jsxs)("div",{className:"fixed inset-x-0 bottom-0 z-50 rounded-t-xl bg-white dark:bg-neutral-900 p-4 sm:hidden",children:[(0,s.jsxs)("div",{className:"mb-3 flex items-center justify-between",children:[(0,s.jsx)("h4",{className:"text-base font-semibold text-gray-900 dark:text-gray-100",children:"Times"}),(0,s.jsxs)("div",{className:"flex items-center gap-3",children:[(0,s.jsx)("button",{type:"button",onClick:eh,className:"text-sm text-[#899E05] underline",children:"Limpar"}),(0,s.jsx)("button",{type:"button",onClick:()=>en(!1),className:"text-sm text-gray-700 dark:text-gray-300",children:"Fechar"})]})]}),(0,s.jsxs)("div",{className:"max-h-[75vh] space-y-4 overflow-y-auto pb-4",children:[ed.length>0&&(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"mb-2 text-xs font-semibold uppercase text-gray-400 dark:text-gray-500",children:"Times do Brasil"}),(0,s.jsx)("div",{className:"grid grid-cols-4 gap-2",children:ed.map(e=>{var t;return(0,s.jsx)("button",{onClick:()=>eu(e.id),className:"flex items-center justify-center rounded-md p-2 hover:bg-gray-100 dark:hover:bg-gray-800",children:(0,s.jsx)(o.FallbackImage,{src:null!=(t=e.logo)?t:"/images/team-placeholder.png",alt:e.name,width:40,height:40,className:"object-contain"})},e.id)})})]}),em.length>0&&(0,s.jsxs)("div",{children:[(0,s.jsx)("p",{className:"mb-2 text-xs font-semibold uppercase text-gray-400 dark:text-gray-500",children:"Times Internacionais"}),(0,s.jsx)("div",{className:"grid grid-cols-4 gap-2",children:em.map(e=>{var t;return(0,s.jsx)("button",{onClick:()=>eu(e.id),className:"flex items-center justify-center rounded-md p-2 hover:bg-gray-100 dark:hover:bg-gray-800",children:(0,s.jsx)(o.FallbackImage,{src:null!=(t=e.logo)?t:"/images/team-placeholder.png",alt:e.name,width:40,height:40,className:"object-contain"})},e.id)})})]})]})]})]}),eo&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("button",{type:"button","aria-label":"Fechar sele\xe7\xe3o de campeonatos",onClick:()=>ei(!1),className:"fixed inset-0 z-40 bg-black/40"}),(0,s.jsxs)("div",{className:"fixed inset-x-0 bottom-0 z-50 rounded-t-xl bg-white dark:bg-neutral-900 p-4 sm:hidden",children:[(0,s.jsxs)("div",{className:"mb-3 flex items-center justify-between",children:[(0,s.jsx)("h4",{className:"text-base font-semibold text-gray-900 dark:text-gray-100",children:"Campeonatos"}),(0,s.jsx)("button",{type:"button",onClick:()=>ei(!1),className:"text-sm text-gray-700 dark:text-gray-300",children:"Fechar"})]}),(0,s.jsxs)("div",{className:"max-h-[60vh] overflow-y-auto pb-4",children:[(0,s.jsx)("button",{onClick:()=>ex(null),className:"mb-1 w-full rounded-md px-2 py-2 text-left text-sm hover:bg-gray-100 dark:hover:bg-gray-800",children:"Todos os campeonatos"}),q.map(e=>{var t;return(null!=(t=X.get(e))?t:[]).length||e===$?(0,s.jsx)("button",{onClick:()=>ex(e),className:"mb-1 w-full rounded-md px-2 py-2 text-left text-sm hover:bg-gray-100 dark:hover:bg-gray-800",children:e},e):null})]})]})]}),(0,s.jsxs)("div",{className:"flex items-center gap-2 py-2 mb-2",children:[(0,s.jsx)("button",{type:"button",onClick:()=>{let e=i.c9.fromISO(H,{zone:"America/Sao_Paulo"});if(!e.isValid)return;
1let t=e.minus({days:1}).toISODate();if(!t)return;let a=D.findIndex(e=>e===t);B(t,a>=0?a:void 0)},className:"p-2 rounded-full hover:bg-neutral-100 dark:hover:bg-neutral-800 cursor-pointer hidden md:block","aria-label":"Dia anterior",children:(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",className:"rotate-180",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M21.0459 12.7959L14.2959 19.5459C14.0846 19.7573 13.7979 19.876 13.4991 19.876C13.2002 19.876 12.9135 19.7573 12.7022 19.5459C12.4908 19.3346 12.3721 19.048 12.3721 18.7491C12.3721 18.4502 12.4908 18.1635 12.7022 17.9522L17.5312 13.125H3.75C3.45163 13.125 3.16548 13.0065 2.9545 12.7955C2.74353 12.5845 2.625 12.2984 2.625 12C2.625 11.7016 2.74353 11.4155 2.9545 11.2045C3.16548 10.9935 3.45163 10.875 3.75 10.875H17.5312L12.7041 6.04501C12.4927 5.83367 12.374 5.54702 12.374 5.24814C12.374 4.94925 12.4927 4.66261 12.7041 4.45126C12.9154 4.23992 13.2021 4.12119 13.5009 4.12119C13.7998 4.12119 14.0865 4.23992 14.2978 4.45126L21.0478 11.2013C21.1527 11.3059 21.2359 11.4303 21.2926 11.5672C21.3493 11.7041 21.3784 11.8508 21.3782 11.999C21.3781 12.1472 21.3486 12.2939 21.2916 12.4306C21.2346 12.5674 21.1511 12.6915 21.0459 12.7959Z",fill:"#899E05"})})}),(0,s.jsx)("div",{ref:C,className:"flex-grow flex overflow-x-auto scrollbar-hide",children:(0,s.jsx)("div",{className:"flex gap-2 py-2",children:D.map((e,t)=>{let a=i.c9.fromISO(e).setLocale("pt-BR"),r=a.toFormat("ccc").replace(".",""),l=r.charAt(0).toUpperCase()+r.slice(1),n=t===N;return(0,s.jsxs)("button",{onClick:()=>B(e,t),className:"\n                        flex flex-col items-center justify-center\n                        min-w-[56px] h-[64px]\n                        rounded-md\n                        text-center\n                        transition-all\n                        p-2\n                        cursor-pointer\n                        ".concat(n?"bg-[#8BAE1A] border-[#8BAE1A] text-white":"bg-white dark:bg-neutral-900  text-[#1E293B] hover:bg-gray-50 dark:hover:bg-gray-900","\n                      "),children:[(0,s.jsx)("span",{className:"text-base font-bold leading-none",children:a.toFormat("dd/MM")}),(0,s.jsx)("hr",{className:"h-[1px] w-full bg-gray-100 dark:bg-gray-800 border-0 block my-1"}),(0,s.jsx)("span",{className:"\n                          text-[11px] leading-none mt-1\n                          ".concat(n?"text-white/90":"text-gray-500 dark:text-gray-400","\n                        "),children:l})]},e)})})}),(0,s.jsx)("button",{type:"button",onClick:()=>{let e=i.c9.fromISO(H,{zone:"America/Sao_Paulo"});if(!e.isValid)return;let t=e.plus({days:1}).toISODate();if(!t)return;let a=D.findIndex(e=>e===t);B(t,a>=0?a:void 0)},className:"p-2 rounded-full hover:bg-neutral-100 dark:hover:bg-neutral-800 cursor-pointer hidden md:block","aria-label":"Proximo dia",children:(0,s.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M21.0459 12.7959L14.2959 19.5459C14.0846 19.7573 13.7979 19.876 13.4991 19.876C13.2002 19.876 12.9135 19.7573 12.7022 19.5459C12.4908 19.3346 12.3721 19.048 12.3721 18.7491C12.3721 18.4502 12.4908 18.1635 12.7022 17.9522L17.5312 13.125H3.75C3.45163 13.125 3.16548 13.0065 2.9545 12.7955C2.74353 12.5845 2.625 12.2984 2.625 12C2.625 11.7016 2.74353 11.4155 2.9545 11.2045C3.16548 10.9935 3.45163 10.875 3.75 10.875H17.5312L12.7041 6.04501C12.4927 5.83367 12.374 5.54702 12.374 5.24814C12.374 4.94925 12.4927 4.66261 12.7041 4.45126C12.9154 4.23992 13.2021 4.12119 13.5009 4.12119C13.7998 4.12119 14.0865 4.23992 14.2978 4.45126L21.0478 11.2013C21.1527 11.3059 21.2359 11.4303 21.2926 11.5672C21.3493 11.7041 21.3784 11.8508 21.3782 11.999C21.3781 12.1472 21.3486 12.2939 21.2916 12.4306C21.2346 12.5674 21.1511 12.6915 21.0459 12.7959Z",fill:"#899E05"})})})]})]}),(0,s.jsxs)("div",{className:"bg-white dark:bg-neutral-900",children:["home"===b&&(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"flex justify-between items-center",children:[(0,s.jsx)("h3",{className:"mb-4 text-2xl font-bold leading-tight text-neutral-1000 dark:text-neutral-50 sm:text-[30px] sm:leading-8",children:"Onde Assistir"}),(0,s.jsxs)("div",{className:"relative inline-block my-3",children:[(0,s.jsxs)("button",{type:"button",onClick:()=>ee(e=>!e),className:"\n                    flex items-center gap-2\n                    rounded-md \n                    bg-white dark:bg-neutral-900 px-4 py-2\n                    text-sm font-semibold text-gray-900 dark:text-gray-100\n                    hover:bg-gray-50 dark:hover:bg-gray-900\n                    focus:outline-none\n                    cursor-pointer\n                    ".concat("home"===b?"":"border border-gray-300 dark:border-gray-700","\n                  "),children:[eg,(0,s.jsx)(p.A,{className:"h-4 w-4 transition-transform ".concat(Q?"rotate-180":"")})]}),Q&&(0,s.jsx)("div",{className:" absolute left-0 z-20 mt-2 min-w-[260px] rounded-md border border-gray-200 dark:border-gray-700 bg-white dark:bg-neutral-900 shadow-lg ",children:(0,s.jsx)("ul",{className:"py-2",children:("home"===b?Y.slice(0,6):Object.keys(null!=(u=E[z])?u:{}).map(e=>({name:e}))).map(e=>{let{name:t}=e;if(!ev(t).length)return null;let a=ep(t);return(0,s.jsx)("li",{children:(0,s.jsx)("button",{onClick:()=>ex(t),className:"\n                                w-full text-left px-4 py-2 text-sm\n                                transition-colors\n                                cursor-pointer\n                                ".concat(a?"bg-green/10 text-green font-semibold":"text-gray-800 dark:text-gray-200 hover:bg-gray-100 dark:hover:bg-gray-800","\n                              "),children:t})},t)})})})]})]})}),("home"===b?Y.slice(0,6):Object.keys(null!=(x=E[z])?x:{}).map(e=>({name:e}))).map(e=>{let{name:t}=e;if("full"===b&&$&&!ep(t)||"home"===b&&t!==$)return null;let a=ev(t);return a.length?(0,s.jsxs)(s.Fragment,{children:["full"===b&&(0,s.jsx)("h3",{className:"mb-4 text-2xl font-bold leading-tight text-headings sm:text-[30px] sm:leading-8",children:t}),(0,s.jsx)("div",{className:"mb-0",children:"home"===b?(0,s.jsxs)("div",{className:"relative lg:w-[calc(100%+((100vw-1200px)/2))] xl:-ms-[16px]",children:[(0,s.jsx)("div",{className:"pointer-events-none absolute right-0 top-0 h-full w-12 bg-gradient-to-l from-background to-transparent"}),(0,s.jsx)("div",(0,l._)((0,r._)({ref:_},A),{className:" flex gap-2 px-4 overflow-x-auto select-none touch-p
1an-x scrollbar-hide ",children:a.map(e=>(0,s.jsx)(f,{match:e},e.id))}))]}):(0,s.jsx)("div",{className:" grid gap-4 grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 ",children:a.map(e=>(0,s.jsx)(f,{match:e},e.id))})},t)]}):null}),"full"===b&&!ew&&(0,s.jsxs)("div",{className:"flex flex-col items-center justify-center gap-2 py-16 text-center",children:[(0,s.jsx)("p",{className:"text-lg font-semibold text-gray-900 dark:text-gray-100",children:"Nenhum jogo nesta data"}),(0,s.jsx)("p",{className:"max-w-md text-sm text-gray-500 dark:text-gray-400",children:et||$?"N\xe3o h\xe1 jogos para os filtros selecionados neste dia. Tente outra data ou limpe o filtro.":"N\xe3o h\xe1 jogos marcados para o dia selecionado. Use as datas acima para navegar."}),(et||$)&&(0,s.jsx)("button",{type:"button",onClick:eh,className:"mt-2 text-sm font-semibold text-[#899E05] underline",children:"Limpar filtro"})]}),"home"===b&&(0,s.jsxs)(y(),{href:W,prefetch:!1,className:"text-[#545861] dark:text-neutral-400 flex items-center",children:[(0,s.jsx)("span",{className:"me-3",children:"Ver mais jogos"}),(0,s.jsx)("svg",{width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,s.jsx)("path",{d:"M17.5383 10.6626L11.9133 16.2876C11.7372 16.4637 11.4983 16.5626 11.2492 16.5626C11.0001 16.5626 10.7613 16.4637 10.5852 16.2876C10.409 16.1114 10.3101 15.8726 10.3101 15.6235C10.3101 15.3744 10.409 15.1356 10.5852 14.9594L14.6094 10.9368H3.125C2.87636 10.9368 2.6379 10.838 2.46209 10.6622C2.28627 10.4864 2.1875 10.2479 2.1875 9.99928C2.1875 9.75064 2.28627 9.51218 2.46209 9.33637C2.6379 9.16055 2.87636 9.06178 3.125 9.06178H14.6094L10.5867 5.03678C10.4106 4.86066 10.3117 4.62179 10.3117 4.37272C10.3117 4.12365 10.4106 3.88478 10.5867 3.70866C10.7628 3.53254 11.0017 3.43359 11.2508 3.43359C11.4999 3.43359 11.7387 3.53254 11.9148 3.70866L17.5398 9.33366C17.6273 9.42087 17.6966 9.5245 17.7438 9.63858C17.7911 9.75266 17.8153 9.87495 17.8152 9.99844C17.815 10.1219 17.7905 10.2442 17.7430 10.3581C17.6955 10.4721 17.6259 10.5756 17.5383 10.6626Z",fill:"#545861"})})]})]})]})}},37777:(e,t,a)=>{a.d(t,{Bc:()=>m,ZI:()=>h,k$:()=>x,m_:()=>u});var r=a(71043),l=a(87607),s=a(25594),n=a(60376),o=a(37414),i=a(95155);a(12115);var c=a(34099),d=a(53999);function m(e){var{delayDuration:t=0}=e,a=(0,o._)(e,["delayDuration"]);return(0,i.jsx)(c.Kq,(0,s._)({"data-slot":"tooltip-provider",delayDuration:t},a))}function u(e){var t=(0,r._)({},(0,l._)(e));return(0,i.jsx)(m,{children:(0,i.jsx)(c.bL,(0,s._)({"data-slot":"tooltip"},t))})}function x(e){var t=(0,r._)({},(0,l._)(e));return(0,i.jsx)(c.l9,(0,s._)({"data-slot":"tooltip-trigger"},t))}function h(e){var{className:t,sideOffset:a=0,children:r}=e,l=(0,o._)(e,["className","sideOffset","children"]);return(0,i.jsx)(c.ZL,{children:(0,i.jsxs)(c.UC,(0,n._)((0,s._)({"data-slot":"tooltip-content",sideOffset:a,className:(0,d.cn)("bg-accent-cyan-calm text-text-on-primary animate-in fade-in-0 zoom-in-95 data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=closed]:zoom-out-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2 z-50 w-fit origin-(--radix-tooltip-content-transform-origin) rounded-md px-3 py-1.5 text-xs text-balance",t)},l),{children:[r,(0,i.jsx)(c.i3,{className:"bg-accent-cyan-calm fill-foreground z-50 size-2.5 translate-y-[calc(-50%_-_2px)] rotate-45 rounded-[2px]"})]}))})}},39442:(e,t,a)=>{a.d(t,{h:()=>l});var r=a(12115);function l(){let e=(0,r.useRef)(null),t=(0,r.useRef)(!1),a=(0,r.useRef)(0),l=(0,r.useRef)(0),s=(0,r.useRef)(!1);return{ref:e,handlers:{onMouseDown:r=>{e.current&&(t.current=!0,s.current=!1,a.current=r.pageX-e.current.offsetLeft,l.current=e.current.scrollLeft)},onMouseLeave:()=>{t.current=!1},onMouseUp:()=>{t.current=!1},onMouseMove:r=>{if(!t.current||!e.current)return;r.preventDefault(),s.current=!0;let n=(r.pageX-e.current.offsetLeft-a.current)*1.2;e.current.scrollLeft=l.current-n},onClickCapture:e=>{s.current&&(e.stopPropagation(),e.preventDefault(),s.current=!1)}}}}}}]);

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.