PageSourceSearch

https://www.sporttv.pt/_nuxt/B02vikLB.js

js sporttv.pt collected 2026-10-01 11:28:22 UTC 3,426 bytes, 1 lines download raw bytes

1import{c as M,k as V,f as B,u as U,a as j,_ as O,D as P}from"./CM_Wyx7H.js";import{_ as F}from"./8B3Wg9e-.js";import{g as H,a as J}from"./Dz0wZwKg.js";import{j as K,a as C,k as g,a4 as Q,O as n,P as a,u as r,W as i,Y as f,Q as b,R as W,X as I,U as x,a2 as D,Z as X}from"./cVuhXwai.js";import{_ as Y}from"./DlAUqK2U.js";import"./BpUn8MyR.js";import"./B1l7X2wM.js";const Z={class:"team-events-page"},q={key:0,class:"team-banner"},z=["src","alt"],G={key:1,class:"events-container"},ee={class:"flex items-center"},te={class:"team-title"},oe={class:"competition-header"},ne=["src"],ae={class:"competition-name"},se={key:0,class:"round-header"},re={key:0,class:"round-name"},ie={class:"round-events"},ce=K({__name:"[teamName]",async setup(ue){let h,L;const v=M().params.teamId,c=C(""),E=C(null),w=C(null),{getToken:l}=V(),{getSetting:S}=B(),k=g(()=>{const s=`banner-${v}`;return S(s)||null}),{data:m,pending:me,error:de,refresh:_e}=([h,L]=Q(async()=>j(`asyncDataTeamEvents-${v}`,async()=>{try{const[s,d]=await Promise.all([H(v),J(v)]);return{teamEvents:s,teamInfo:d}}catch(s){throw console.error("Error loading team data:",s),s}})),h=await h,L(),h);m.value&&(E.value=m.value.teamEvents,w.value=m.value.teamInfo,m.value.teamInfo&&(c.value=m.value.teamInfo.name));const A=g(()=>{if(!E.value)return[];const s=[];let d=null,_=null,o=null,t=null;const y=Date.now()/1e3;return E.value.forEach(e=>{if(!e.date||parseInt(e.date)<y)return;const p=e.competition.id,u=e.round.id;let T=e.round.name;const N=e.round.number;e&&e.stage&&e.stage.type==="league"&&N&&(T=l("GAME_INFO_ROUND",[String(N)])),p!==d?(t&&o&&o.rounds.push(t),o&&s.push(o),d=p,o={competitionId:p,competitionName:e.competition.name,competitionLogo:e.competition.flagImageUrl,rounds:[]},_=u,t={roundName:T??null,roundNumber:N,events:[e]}):u!==_?(t&&o&&o.rounds.push(t),_=u,t={roundName:T??null,roundNumber:N,events:[e]}):t&&t.events.push(e)}),t&&o&&o.rounds.push(t),o&&s.push(o),s}),R=g(()=>`${c.value} - ${l("CALENDAR_TEAM_TITLE",[c.value])}`),$=g(()=>P(k.value));return U({title:R,meta:[{name:"description",content:g(()=>`Veja todos os jogos e eventos de ${c.value}. Calendário completo com datas, adversários e canais de transmissão.`)},{hid:"og:title",property:"og:title",content:R},{hid:"og:image",property:"og:image",content:$},{hid:"og:image:secure_url",property:"og:image:secure_url",content:$}]}),(s,d)=>{const _=O,o=F;return n(),a("div",Z,[r(k)?(n(),a("div",q,[i("img",{src:r(k),alt:`${r(c)} Banner`,class:"banner-image"},null,8,z)])):f("",!0),r(A)&&r(A).length>0?(n(),a("div",G,[i("div",ee,[b(_,{to:"/aderir",class:"buttonPrimary mx-auto"},{default:W(()=>[X(I(r(l)("CALENDAR_TEAM_ADIRA_JA")),1)]),_:1})]),i("div",null,[i("h1",te,I(r(l)("CALENDAR_TEAM_TITLE",[r(c)])),1)]),(n(!0),a(x,null,D(r(A),(t,y)=>(n(),a("div",{key:`comp-${y}`,class:"competition-group"},[i("div",oe,[t.competitionLogo?(n(),a("img",{key:0,src:t.competitionLogo,alt:"Round Icon",class:"round-icon"},null,8,ne)):f("",!0),i("h2",ae,I(t.competitionName),1)]),(n(!0),a(x,null,D(t.rounds,(e,p)=>(n(),a("div",{key:`round-${y}-${p}`,class:"round-group"},[e.roundName?(n(),a("div",se,[e.roundName?(n(),a("span",re,I(r(l)(String(e.roundName))),1)):f("",!0)])):f("",!0),i("div",ie,[(n(!0),a(x,null,D(e.events,u=>(n(),a("div",{key:u.id,class:"event-item"},[b(o,{event:u},null,8,["event"])]))),128))])]))),128))]))),128))])):f("",!0)])}}}),Ie=Y(ce,[["__scopeId","data-v-873f92d4"]]);export{Ie as default};

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.