import{x as W,G as k,a0 as X,j as i,k as n,l as t,B as Y,v as D,E as ,ドルq as v,z as a,F as h,t as g,A as u,a1 as ll}from"./WqIZGAQE.js";const al={class:"basis-1/2 shrink"},el={key:0,class:"w-full flex shrink-0 mx-auto gap-8 items-center max-w-[500px] mb-4 relative"},tl={class:"flex flex-col max-w-[350px] md:basis-1/4 basis-1/2"},sl={class:"overflow-hidden font-bold whitespace-nowrap text-ellipsis max-w-24 md:max-w-none"},il={class:"flex flex-col max-w-[350px] md:basis-1/4 basis-1/2"},nl={class:"overflow-hidden font-bold whitespace-nowrap text-ellipsis max-w-24 md:max-w-none"},dl={class:"shrink-0"},ml={key:2,class:"w-full flex shrink-0 gap-8 items-center max-w-[500px] mx-auto mb-4"},rl={class:"flex flex-col max-w-[350px] md:basis-1/4 basis-1/2"},cl={class:"flex justify-end w-full gap-4"},fl={class:"font-bold"},ol={class:"flex flex-col max-w-[350px] md:basis-1/4 basis-1/2"},ul={class:"flex justify-start w-full gap-4"},xl={class:"font-bold"},vl=ll(W({__name:"index",props:{match:{},theme:{}},setup(U){const E=U,d=k(()=>X(E.match.value||E.match)),p=["Goal","Own","Penalty"],j=["Red"],w=k(()=>{var m,x,r,c,f,o;const e=(r=(x=(m=d.value)==null?void 0:m.teamData)==null?void 0:x[0])==null?void 0:r.teamPlayers;return(o=(f=(c=e==null?void 0:e.map(s=>s.bookings))==null?void 0:c.filter(s=>s!==void 0))==null?void 0:f.flat(1/0))==null?void 0:o.filter(s=>j.includes(s.card))}),b=k(()=>{var m,x,r,c,f,o;const e=(r=(x=(m=d.value)==null?void 0:m.teamData)==null?void 0:x[1])==null?void 0:r.teamPlayers;return(o=(f=(c=e==null?void 0:e.map(s=>s.bookings))==null?void 0:c.filter(s=>s!==void 0))==null?void 0:f.flat(1/0))==null?void 0:o.filter(s=>j.includes(s.card))});return(e,m)=>{var r,c,f,o,s,C,P,S,_,z,B,F,G,H,N,V,q,A,I,M,O,R,Z,J,K,L,Q,T;const x=$;return i(),n("div",al,[t(d)!=null&&(((o=(f=(c=(r=t(d))==null?void 0:r.teamData)==null?void 0:c[0])==null?void 0:f.teamEvents)==null?void 0:o.filter(l=>p.includes(l.type)).length)>0||((S=(P=(C=(s=t(d))==null?void 0:s.teamData)==null?void 0:C[1])==null?void 0:P.teamEvents)==null?void 0:S.filter(l=>p.includes(l.type)).length)>0)?(i(),n("div",el,[Y(x,{pack:"fan",icon:"ball",size:24,class:D([{"text-white":e.theme=="club"||e.theme=="dark"},"m-auto after-border after-border--left"])},null,8,["class"])])):v("",!0),t(d)!=null&&(((F=(B=(z=(_=t(d))==null?void 0:_.teamData)==null?void 0:z[0])==null?void 0:B.teamEvents)==null?void 0:F.filter(l=>p.includes(l.type)).length)>0||((V=(N=(H=(G=t(d))==null?void 0:G.teamData)==null?void 0:H[1])==null?void 0:N.teamEvents)==null?void 0:V.filter(l=>p.includes(l.type)).length)>0)?(i(),n("div",{key:1,class:D(["flex justify-center gap-8 mb-16",{"text-white":e.theme=="club"||e.theme=="dark","text-gray-800":e.theme=="light"}])},[a("div",tl,[(i(!0),n(h,null,g((M=(I=(A=(q=t(d))==null?void 0:q.teamData)==null?void 0:A[0])==null?void 0:I.teamEvents)==null?void 0:M.filter(l=>p.includes(l.type)),(l,y)=>(i(),n("div",{key:y,class:"flex justify-start w-full gap-4 pl-4 md:pl-0"},[a("div",null,u(l.timeString),1),a("div",sl,u(l.displayName),1)]))),128))]),a("div",il,[(i(!0),n(h,null,g((J=(Z=(R=(O=t(d))==null?void 0:O.teamData)==null?void 0:R[1])==null?void 0:Z.teamEvents)==null?void 0:J.filter(l=>p.includes(l.type)),(l,y)=>(i(),n("div",{key:y,class:"flex justify-end w-full gap-4 pr-4 md:pr-0"},[a("div",nl,u(l.displayName),1),a("div",dl,u(l.timeString),1)]))),128))])],2)):v("",!0),t(d)!=null&&(((K=t(w))==null?void 0:K.length)>0||((L=t(b))==null?void 0:L.length)>1)?(i(),n("div",ml,m[0]||(m[0]=[a("div",{class:"h-[1px] bg-gray-200 flex-grow"},null,-1),a("div",null,[a("svg",{class:"w-[24px] h-[24px]",xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 12 12",fill:"none"},[a("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2 10C2 11.1046 2.89543 12 4 12H8C9.10457 12 10 11.1046 10 10V2C10 0.895431 9.10457 0 8 0H4C2.89543 0 2 0.895431 2 2V10Z",fill:"#FE0000"})])],-1),a("div",{class:"h-[1px] bg-gray-200 flex-grow"},null,-1)]))):v("",!0),t(d)!=null&&(((Q=t(w))==null?void 0:Q.length)>0||((T=t(b))==null?void 0:T.length)>1)?(i(),n("div",{key:3,class:D(["flex justify-center gap-8",{"text-white":e.theme=="club"||e.theme=="dark","text-gray-800":e.theme=="light"}])},[a("div",rl,[(i(!0),n(h,null,g(t(w),l=>(i(),n("div",cl,[a("div",fl,u(l==null?void 0:l.bookingSurname),1),a("div",null,u(l==null?void 0:l.min)+"'",1)]))),256))]),a("div",ol,[(i(!0),n(h,null,g(t(b),l=>(i(),n("div",ul,[a("div",xl,u(l==null?void 0:l.bookingSurname),1),a("div",null,u(l==null?void 0:l.min)+"'",1)]))),256))])],2)):v("",!0)])}}}),[["__scopeId","data-v-61f273d4"]]);export{vl as default};
AltStyle
によって変換されたページ
(->オリジナル)
/
アドレス:
モード:
デフォルト
音声ブラウザ
ルビ付き
配色反転
文字拡大
モバイル