PageSourceSearch

https://www.vfl.de/_nuxt/DMYKa-r7.js

js vfl.de collected 2026-09-24 09:51:30 UTC 9,649 bytes, 1 lines download raw bytes

1import{d as F,x as f,J as A,k as g,L as B,ab as V,c as n,b as e,t as c,h as T,u as i,n as M,y as r,i as d,F as z,j as E,p as K,l as y,s as Y,a as s,_ as J}from"./Bomn_LlY.js";import"./DUqdNKwg.js";import{i as U}from"./BlHxBZhM.js";import{d as q}from"./B_XkP313.js";import{c as S,h as Q}from"./_upxUUEW.js";import{u as W}from"./BcvoHssc.js";import{s as X}from"./Dm6wOJih.js";const Z={class:"max-w-screen h-full pt-5 md:pt-20 lg:pt-36"},_={class:"pb-1 text-center text-xl uppercase"},tt={class:"grid h-full auto-rows-min grid-cols-6 flex-col px-2 pb-5 sm:auto-rows-fr sm:grid-cols-3 sm:grid-rows-6 sm:gap-x-6 lg:px-24"},et={class:"col-span-2 justify-self-end sm:col-span-1 sm:row-span-2"},at={class:"mt-5 flex w-40 items-center justify-center sm:mb-10 lg:w-60 lg:justify-between xl:w-80"},st={class:"hidden font-headline text-7xl text-white lg:inline xl:text-8xl"},nt={class:"relative col-span-2 w-full py-5 sm:col-span-1 sm:row-span-4 md:pt-0 xl:px-8"},ct={class:"flex h-20 w-full flex-col items-center justify-center bg-primary sm:h-28 md:h-40 xl:h-52"},lt={class:"spacing relative z-20 text-4xl font-bold text-white sm:text-5xl md:text-7xl lg:text-8xl 2xl:text-[9rem]/[8rem]"},it={key:0},mt={key:1},ot={key:2},ht={key:0,class:"py-2 font-headline"},dt={key:1,class:"py-2"},rt={key:0},ut={key:1},ft={key:2,class:"flex flex-row items-center justify-around gap-1 py-2 sm:justify-center sm:gap-5"},xt={class:"flex items-center gap-1 text-red-600"},yt={key:0,class:"text-sm font-normal text-black/60 sm:text-lg lg:text-xl"},gt={class:"z-20 hidden w-full pt-2 text-center text-2xl text-white md:block"},vt={key:0},kt={class:"col-span-2 justify-self-start sm:col-span-1 sm:row-span-2"},wt={class:"mt-5 flex w-40 items-center justify-center sm:mb-10 lg:w-60 lg:justify-between xl:w-80"},bt={class:"hidden font-headline text-7xl text-white lg:inline xl:text-8xl"},Tt={key:0,class:"col-span-6 h-[10.5rem] pt-10 text-center text-4xl sm:hidden"},Mt={key:0},pt={key:1},Nt={class:"relative h-32 min-h-0 overflow-y-auto md:h-60"},Gt={key:0,class:"sticky top-0 z-20 size-full bg-matchcenter"},jt={key:0},Dt={class:"w-1/5 text-end"},Ht={class:"relative h-32 min-h-0 overflow-y-auto md:h-60"},Lt={key:0,class:"sticky top-0 z-20 size-full bg-matchcenter"},zt={class:"w-1/5"},Et={key:0},St={class:"col-span-6 flex min-h-32 flex-col justify-center gap-5 sm:col-span-1 sm:row-span-2 lg:justify-start"},It={class:"flex w-full flex-col items-center justify-center"},Ct={class:"pb-3 text-sm"},Pt={key:1,class:"text-xl uppercase lg:text-2xl xl:text-3xl"},Ot={key:2,class:"text-xl uppercase"},$t={key:3,class:"text-md flex uppercase lg:text-xl"},Rt=F({__name:"matchcenterSlide",props:{match:{},selectedMatch:{}},emits:["updateMatch"],setup(t,{emit:I}){f.extend(U),f.extend(q);const C=I,{tickerPreMatchTime:P}=A().public,v=g(f()),p=g(!1),O=()=>{C("updateMatch"),p.value=!0},k=g(void 0),w=g(void 0),{getImageUrl:N}=W(),u=y(()=>{if(t.selectedMatch.matchplan?.MatchId!==t.match.matchplan?.MatchId)return;if(t.match.matchstate!=="upcoming")return{days:"00",hours:"00",minutes:"00"};if(t.match.matchplan?.MatchDateFixed==="false")return;const a=f(t.match.matchplan?.PlannedKickoffTime).diff(v.value),h=l=>String(Math.floor(l)).padStart(2,"0");if(a<=0){const l=f.duration(Math.abs(a)),x=b=>b!==0?`-${h(b)}`:h(b);return{days:x(l.asDays()),hours:x(l.hours()),minutes:x(l.minutes())}}const m=f.duration(a);return m.days()===0&&m.hours()===0&&m.minutes()===P/60-1&&!p.value&&O(),{days:h(m.asDays()),hours:h(m.hours()),minutes:h(m.minutes())}}),G=y(()=>t.match.matchstate!=="live"||!t.match.ticker?.game_start?null:t.match.ticker.half_time!==null&&t.match.ticker.second_half_time_start===null?"Halbzeit":t.match.ticker.second_half_time_start!==null?j(t.match.ticker.second_half_time_start,46,90):j(t.match.ticker.game_start,1,45)),j=(o,a,h)=>{const m=f(o),x=v.value.diff(m,"minute")+a;return x>h?`${h} + ${x-h}. Min`:`${x}. Min`},D=y(()=>t.match.matchplan?.HomeTeamName.toLowerCase().includes("vfl osnabrück")),$=y(()=>L(t.match.matchplan?.HomeTeamId)),R=y(()=>L(t.match.matchplan?.GuestTeamId)),H=(o,a)=>o.TeamId===a==(o.EventType!=="OwnGoal"),L=o=>!o||!t.match.matchevents?[]:(Array.isArray(t.match.matchevents?.GameSection)?t.match.matchevents?.GameSection:[t.match.matchevents?.GameSection]).flatMap(m=>m.Goals?Array.isArray(m.Goals.Event)?m.Goals.Event.filter(l=>H(l,o)):H(m.Goals.Event,o)?[m.Goals.Event]:[]:[]).flatMap(m=>(m.MinuteOfPlay=Q(m.MinuteOfPlay),m))??[];return B(()=>
1{if(t.match.matchstate!=="upcoming"&&t.match.matchstate!=="live")return;const o=X(()=>{v.value=f()},6e4);V(()=>clearInterval(o))}),(o,a)=>{const h=Y,m=J;return s(),n("div",Z,[e("div",_,c(t.match?.matchplan?.HomeTeamName)+" - "+c(t.match?.matchplan?.GuestTeamName),1),e("div",tt,[e("div",et,[e("div",at,[e("span",st,c(t.match?.matchplan?.HomeTeamThreeLetterCode),1),T(h,{src:!i(D)&&t.match.opponentLogo?t.match.opponentLogo:i(N)(t.match?.matchplan?.HomeTeamName),alt:`Logo ${t.match?.matchplan?.HomeTeamName}`,width:"288",class:"size-20 object-contain sm:size-28 xl:size-36"},null,8,["src","alt"])])]),e("div",nt,[e("div",ct,[e("div",lt,[t.match.matchstate==="finished"&&t.match.matchinfos?.General?(s(),n("span",it,c(t.match.matchinfos?.General?t.match.matchinfos?.General.Result:""),1)):t.match.matchstate==="live"&&t.match.ticker?.scores?(s(),n("span",mt,c(t.match.ticker?.scores.home)+" : "+c(t.match.ticker?.scores.guest),1)):(s(),n("span",ot," : "))])]),e("div",{class:M(["w-full bg-white text-center text-xl text-primary lg:text-3xl",{"hidden sm:block":t.match.matchstate==="upcoming"}])},[t.match.matchstate==="finished"||t.match.matchstate==="live"&&t.match.ticker&&t.match.ticker?.game_end!==null?(s(),n("div",ht," ENDSTAND ")):t.match.matchstate==="upcoming"?(s(),n("div",dt,[t.match.matchplan?.MatchDateFixed==="false"?(s(),n("div",rt," NICHT TERMINIERT ")):i(u)?(s(),n("div",ut,[a[0]||(a[0]=e("span",{class:"font-bold"},"T ",-1)),r(" "+c(i(u)?.days)+" ",1),a[1]||(a[1]=e("span",{class:"font-bold"}," | S ",-1)),r(" "+c(i(u)?.hours)+" ",1),a[2]||(a[2]=e("span",{class:"font-bold"}," | M ",-1)),r(" "+c(i(u)?.minutes),1)])):d("",!0)])):t.match.matchstate==="live"&&t.match.ticker?.game_start!==null&&t.match.ticker?.game_end===null||t.match.matchstate==="live"&&!t.match.ticker?(s(),n("div",ft,[e("div",xt,[T(m,{name:"mdi:circle-slice-8",class:"animate-pulse"}),a[3]||(a[3]=r(" LIVE ",-1))]),i(G)?(s(),n("span",yt,c(i(G)),1)):d("",!0)])):d("",!0)],2),e("div",gt,[t.match.matchstate==="finished"&&t.match.matchevents?.GameSection.find(l=>l.Name==="firstHalf")?.Result?(s(),n("span",vt," ( "+c(t.match.matchevents?.GameSection.find(l=>l.Name==="firstHalf")?.Result)+" ) ",1)):d("",!0)])]),e("div",kt,[e("div",wt,[T(h,{src:i(D)&&t.match.opponentLogo?t.match.opponentLogo:i(N)(t.match?.matchplan?.GuestTeamName),alt:`Logo ${t.match?.matchplan?.GuestTeamName}`,width:"288",class:"size-20 object-contain sm:size-28 xl:size-36"},null,8,["src","alt"]),e("span",bt,c(t.match?.matchplan?.GuestTeamThreeLetterCode),1)])]),t.match.matchstate==="upcoming"?(s(),n("div",Tt,[t.match.matchplan?.MatchDateFixed==="false"?(s(),n("div",Mt," NICHT TERMINIERT ")):i(u)?(s(),n("div",pt,[a[4]||(a[4]=e("span",{class:"font-bold"},"T ",-1)),r(" "+c(i(u)?.days)+" ",1),a[5]||(a[5]=e("span",{class:"font-bold"}," | S ",-1)),r(" "+c(i(u)?.hours)+" ",1),a[6]||(a[6]=e("span",{class:"font-bold"}," | M ",-1)),r(" "+c(i(u)?.minutes),1)])):d("",!0)])):d("",!0),e("div",{class:M(["col-span-3 w-full justify-self-end pr-2 sm:col-span-1 sm:row-span-4 sm:pr-0 lg:w-80",{"hidden sm:block":t.match.matchstate==="upcoming"}])},[e("div",Nt,[i(k)&&i(k).offsetHeight>=240?(s(),n("div",Gt)):d("",!0),e("div",{ref_key:"goalsHomeDiv",ref:k,class:"absolute inset-x-0 top-0 z-10 w-full"},[(s(!0),n(z,null,E(i($),l=>(s(),n("div",{key:JSON.stringify(l),class:"flex w-full justify-end border-b-2 border-white py-2 text-base uppercase last:border-none lg:text-lg xl:text-xl"},[e("span",null,[r(c(l.PlayerLastName),1),l.EventType==="OwnGoal"?(s(),n("span",jt," (ET)")):d("",!0)]),e("span",Dt,c(l.MinuteOfPlay)+"'",1)]))),128))],512)])],2),e("div",{class:M(["col-span-3 w-full pl-2 sm:col-span-1 sm:row-span-4 sm:pl-0 lg:w-80",{"hidden sm:block":t.match.matchstate==="upcoming"}])},[e("div",Ht,[i(w)&&i(w).offsetHeight>=240?(s(),n("div",Lt)):d("",!0),e("div",{ref_key:"goalsGuestDiv",ref:w,class:"absolute inset-x-0 top-0 z-10 w-full"},[(s(!0),n(z,null,E(i(R),l=>(s(),n("div",{key:JSON.stringify(l),class:"flex border-b-2 border-white py-2 text-base uppercase last:border-none lg:text-lg xl:text-xl"},[e("span",zt,c(l.MinuteOfPlay)+"'",1),e("span",null,[r(c(l.PlayerLastName),1),l.EventType==="OwnGoal"?(s(),n("span",Et," (ET)")):d("",!0)])]))),128))],512)])],2),e("div",St,[e("div",It,[i(S)(t.match.matchplan?.CompetitionName,t.match.c
1ompetitionLogo)?(s(),K(h,{key:0,src:i(S)(t.match.matchplan?.CompetitionName,t.match.competitionLogo),alt:t.match.matchplan?.CompetitionName,width:"128",class:"size-16 object-contain"},null,8,["src","alt"])):d("",!0),e("span",Ct,c(t.match.matchplan?.CompetitionName),1),t.match.matchplan?.MatchDay?(s(),n("span",Pt,c(t.match.matchplan?.MatchDay)+". Spieltag ",1)):d("",!0),t.match.matchplan?.MatchDateFixed==="false"?(s(),n("span",Ot," nicht terminiert ")):(s(),n("div",$t,[r(c(o.$dayjs(t.match.matchplan?.PlannedKickoffTime).format("DD.MM.YYYY"))+" ",1),a[7]||(a[7]=e("span",{class:"px-1"},"|",-1)),e("span",null,c(o.$dayjs(t.match.matchplan?.PlannedKickoffTime).format("HH:mm"))+" Uhr",1),a[8]||(a[8]=e("span",{class:"px-1"},"|",-1)),r(" "+c(o.$dayjs(t.match.matchplan?.PlannedKickoffTime).locale("de").format("dddd")),1)]))])])])])}}}),Ut=Object.assign(Rt,{__name:"MatchcenterSlide"});export{Ut 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.