import{x as S,X as j,j as a,k as s,z as t,A as o,q as r,m as w,l as c,i as P,J as A,v as n,F as d,D as i,B as T,C,_ as F}from"./DKnoDHU8.js";const H={class:"flex items-center justify-center flex-1 fixture-card__completed"},N={class:"relative z-10 flex flex-col flex-1 h-full py-4 card__body"},I={class:"w-full text-center card__meta"},q={key:0,class:"hidden font-bold tracking-wider uppercase text-2xs card__meta-team"},G={class:"hidden text-sm card__meta-venue text-subtle"},R={class:"flex flex-col items-center flex-grow card__fixture-container"},E={key:0,class:"text-sm font-bold tracking-wider uppercase card__fixture-team-meta text-clear"},M={class:"hidden text-sm card__meta-venue--tall text-subtle"},z={class:"flex items-center justify-center w-full h-full gap-4 card__fixture"},B={class:"flex items-center justify-end flex-1 gap-4 card__fixture-team font-heading max-w-[400px]"},D={class:"flex flex-row-reverse items-center card__fixture-team"},J={class:"flex flex-col justify-center w-auto"},L={class:"flex flex-col items-center gap-1 mx-2 mt-4 mb-auto card__match-meta"},W={class:"text-clear text-[12px] card__score-time"},X={key:0},K={key:1},O={key:2},Q={key:3},U={key:4},V={key:5},Y={key:6},Z={class:"text-center font-bold text-xl leading-[1] flex-1 mr-2 after:absolute after:w-[1px] after:content-[''] after:left-0 after:right-0 after:mx-auto after:top-2 after:bottom-2 after:border card__score-score after:border-clear after:opacity-[0.33]"},$={class:"flex-1 text-xl font-bold leading-[1] text-center card__score-score"},ee={key:0,class:"text-clear text-[12px] card__score-ht"},te={class:"text-lg font-bold card__score-ht"},ae={class:"mr-6"},se={class:"ml-6"},oe={class:"flex items-center justify-start flex-1 gap-4 font-heading card__fixture-team card__fixture-team--opposition max-w-[400px]"},re={class:"flex flex-row items-center text-center card__fixture-team--opposition"},le={key:1,class:"pb-4 text-subtle md:hidden"},ie={class:"text-lg font-bold card__score-ht"},ce={class:"mr-6"},ne={class:"ml-6"},me=S({name:"CompletedFixture",__name:"index",props:{squadName:{},home:{},opposition:{},homeCrest:{},oppositionCrest:{},venue:{},period:{},theme:{},postponedReason:{},showTeamSlug:{type:Boolean},homePenalty:{},oppositionPenalty:{},formattedMatchTime:{}},setup(de){const{cardsSecondaryFont:m}=j();return(e,l)=>{var u,_,h,y,b,g,v,k;const x=A,f=F;return a(),s("div",H,[t("div",N,[t("div",I,[e.showTeamSlug?(a(),s("p",q,o(e.squadName),1)):r("",!0),t("p",G,o(e.venue),1)]),t("div",R,[e.showTeamSlug?(a(),s("p",E,o(e.squadName),1)):r("",!0),t("p",M,o(e.venue),1),t("div",z,[t("div",B,[t("div",D,[e.homeCrest?(a(),w(x,{key:0,src:("useGCImage"in e?e.useGCImage:c(P))(!0,256,256,e.homeCrest),class:"w-[74px] h-[74px] object-contain card__fixture-team-crest"},null,8,["src"])):r("",!0),t("div",J,[t("p",{class:n(["w-full px-2 font-bold text-center text-heading-2xl card__fixture-team-name card__fixture-team-name--short",c(m)])},o((u=e.home)==null?void 0:u.teamNameInitials),3),t("p",{class:n(["hidden w-full px-2 text-xl font-bold text-center card__fixture-team-name",c(m)])},o((_=e.home)==null?void 0:_.shortTeamName),3)])])]),t("div",L,[t("div",W,[e.postponedReason?(a(),s("p",X," Postponed ")):e.period&&["FirstHalf","SecondHalf","Live"].includes(e.period)?(a(),s("p",K,o(e.formattedMatchTime),1)):e.period&&["ExtraFirstHalf","ExtraSecondHalf"].includes(e.period)?(a(),s("p",O," ET "+o(e.formattedMatchTime),1)):e.period==="Shootout"?(a(),s("p",Q," Penalties ")):e.period==="HalfTime"?(a(),s("p",U," HT ")):e.period==="FullTime"?(a(),s("p",V," FT ")):e.period==="Abandoned"?(a(),s("p",Y," Abandoned ")):r("",!0)]),t("div",{class:n([{"text-clear bg-surface-high club":(e.theme=="club"||e.theme==="dark"||e.theme==="light")&&e.period!=="Abandoned","bg-black text-white":e.period==="Abandoned"},"relative flex items-center justify-center gap-4 px-3 pt-2 pb-2 rounded-md card__score"])},[t("p",Z,[e.postponedReason?(a(),s(d,{key:0},[i(" P ")],64)):r("",!0),e.period==="Abandoned"?(a(),s(d,{key:1},[i(" - ")],64)):(a(),s(d,{key:2},[i(o((h=e.home)==null?void 0:h.score),1)],64))]),t("p",$,[e.postponedReason?(a(),s(d,{key:0},[i(" P ")],64)):r("",!0),e.period==="Abandoned"?(a(),s(d,{key:1},[i(" - ")],64)):(a(),s(d,{key:2},[i(o((y=e.opposition)==null?void 0:y.score),1)],64))])],2),((b=e.home)==null?void 0:b.halfScore)>=0&&((g=e.opposition)==null?void 0:g.halfScore)>=0?(a(),s("div",ee,[t("p",null,"HT "+o((v=e.home)==null?void 0:v.halfScore)+" - "+o((k=e.opposition)==null?void 0:k.halfScore),1)])):r("",!0),e.homePenalty&&e.oppositionPenalty?(a(),s("div",{key:1,class:n(["hidden pt-8 text-gray-600/70 card__penalities",{"text-white":e.theme==="club"||e.theme==="dark"}])},[l[1]||(l[1]=t("p",{class:"pb-2 text-sm font-normal text-center"}," Penalties ",-1)),t("div",te,[t("p",ae,o(e.homePenalty),1),l[0]||(l[0]=t("p",null,"-",-1)),t("p",se,o(e.oppositionPenalty),1)])],2)):r("",!0)]),t("div",oe,[t("div",re,[e.oppositionCrest?(a(),w(x,{key:0,src:("useGCImage"in e?e.useGCImage:c(P))(!0,256,256,e.oppositionCrest),class:"w-[74px] h-[74px] object-contain card__fixture-team-crest"},null,8,["src"])):r("",!0),T(f,{tag:"h5",class:n(["px-2 font-bold text-center text-heading-2xl card__fixture-team-name--opposition card__fixture-team-name--short",c(m)])},{default:C(()=>{var p;return[i(o((p=e.opposition)==null?void 0:p.teamNameInitials),1)]}),_:1},8,["class"]),T(f,{tag:"h5",class:n(["hidden px-2 text-xl font-bold text-center card__fixture-team-name card__fixture-team-name--opposition",c(m)])},{default:C(()=>{var p;return[i(o((p=e.opposition)==null?void 0:p.shortTeamName),1)]}),_:1},8,["class"])])])]),e.homePenalty&&e.oppositionPenalty?(a(),s("div",le,[l[3]||(l[3]=t("p",{class:"pb-2 text-sm font-normal text-center"}," Penalties ",-1)),t("div",ie,[t("p",ce,o(e.homePenalty),1),l[2]||(l[2]=t("p",null,"-",-1)),t("p",ne,o(e.oppositionPenalty),1)])])):r("",!0)])])])}}});export{me as _};