import{x as u,G as f,j as a,k as s,z as t,A as r,q as i,m as g,l as o,i as _,J as v,v as l,B as c,E as w}from"./BGddUaGe.js";import{_ as b}from"./DwUSRpqx.js";const y={class:"flex items-center flex-1 gap-4 fixture-header__wrapper"},M={key:0,class:"text-sm font-bold head__state text-clear"},k={class:"flex flex-row items-center flex-1 gap-4 fixture-header__content"},S={class:"flex items-center"},j={class:"flex-grow"},z={key:0,class:"hidden text-sm font-bold head__state--tall text-clear"},B={class:"flex flex-col head__meta text-subtle"},C={key:0,class:"text-sm head__date"},H={key:1,class:"text-sm font-bold font-secondary head__time"},O=u({name:"FixtureHeader",__name:"index",props:{dateString:{},timeString:{},competitionCrest:{default:void 0},isHome:{type:Boolean},isResult:{type:Boolean},theme:{},isLive:{type:Boolean},showMatchOrder:{type:Boolean,default:!0}},setup(m){const h=m,n=f(()=>h.isHome?"club bg-surface-high text-clear border border-clear":"light text-accent bg-surface-high border border-accent");return(e,L)=>{const x=v,d=w,p=b;return a(),s("div",{class:l(["flex w-full gap-4 px-6 py-4 fixture-header shadow-inset max-w-[260px] border-r border-r-subtle/50 bg-surface-high",{"max-w-[330px]":e.showMatchOrder}])},[t("div",y,[e.showMatchOrder?(a(),s("p",M,r(e.isLive?"Live Match":e.isResult?"Previous Result":"Upcoming Match"),1)):i("",!0),t("div",k,[t("div",S,[e.competitionCrest?(a(),g(x,{key:0,src:("useGCImage"in e?e.useGCImage:o(_))(!0,96,96,e.competitionCrest),class:"h-[40px] w-auto object-contain object-center head__crest"},null,8,["src"])):i("",!0)]),t("div",{class:l(["items-center justify-center w-[32px] h-[32px] text-md rounded-full head__home-away-small hidden leading-tightest",[o(n)]])},[c(d,{pack:"fan",class:"z-50",icon:e.isHome?"home-icon":"away-icon",size:16},null,8,["icon"])],2),t("div",j,[e.showMatchOrder?(a(),s("p",z,r(e.isLive?"Live Match":e.isResult?"Previous Result":"Upcoming Match"),1)):i("",!0),t("div",B,[e.dateString!=="Invalid DateTime"?(a(),s("span",C,r(e.dateString),1)):i("",!0),e.timeString!=="Invalid DateTime"?(a(),s("span",H,r(e.timeString),1)):i("",!0)])]),t("div",{class:l(["flex items-center justify-center w-[32px] h-[32px] text-md rounded-full head__home-away leading-[1]",[o(n)]])},[c(d,{icon:e.isHome?"home-icon":"away-icon",size:16,pack:"fan",class:"z-50"},null,8,["icon"])],2)]),c(p,{"event-time":"2024-05-18T18:00:00",class:"hidden text-[16px] ml-auto"})])],2)}}});export{O as _};