import{L as C,a1 as A,C as a,D as r,N as t,K as o,O as s,I as i,E as k,f as l,A as v,V as j,F as d,R as c}from"./DTQG1-BY.js";const I={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"},S={class:"w-full text-center card__meta"},T={class:"flex flex-col items-center flex-grow card__fixture-container"},F={class:"flex items-center justify-center w-full h-full gap-4 card__fixture"},R={class:"flex items-end justify-end flex-1 gap-4 card__fixture-team font-heading max-w-[400px]"},G={class:"flex flex-row-reverse items-center card__fixture-team"},q={class:"flex flex-col justify-center w-auto"},P={class:"flex flex-col items-center gap-1 mx-4 mt-4 mb-auto card__match-meta"},z={key:0},B={key:1},D={key:2},E={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 after:border-gray-100/40 card__score-score"},H={class:"flex-1 text-xl font-bold leading-[1] text-center card__score-score"},K={class:"flex items-start justify-start flex-1 gap-4 font-heading card__fixture-team card__fixture-team--opposition max-w-[400px]"},L={class:"flex flex-row items-center card__fixture-team--opposition"},M=C({name:"CompletedFixture",__name:"index",props:{squadName:{},home:{},opposition:{},homeCrest:{},oppositionCrest:{},venue:{},period:{},theme:{},postponedReason:{},showTeamSlug:{type:Boolean}},setup(O){const{cardsSecondaryFont:m}=A();return(e,V)=>{var x,p,h,f,u,_,g,b,y,w;const n=j;return a(),r("div",I,[t("div",N,[t("div",S,[e.showTeamSlug?(a(),r("p",{key:0,class:o(["hidden font-bold tracking-wider uppercase text-2xs card__meta-team",{"text-gray-800":e.theme=="light","text-primary-50":e.theme=="club","text-white":e.theme=="dark"}])},s(e.squadName),3)):i("",!0),t("p",{class:o(["hidden text-sm card__meta-venue",{"text-gray-600":e.theme=="light","text-primary-50":e.theme=="club","text-white":e.theme=="dark"}])},s(e.venue),3)]),t("div",T,[e.showTeamSlug?(a(),r("p",{key:0,class:o(["text-sm font-bold tracking-wider uppercase card__fixture-team-meta",{"text-gray-800":e.theme=="light","text-primary-50":e.theme=="club","text-white":e.theme=="dark"}])},s(e.squadName),3)):i("",!0),t("p",{class:o(["hidden text-sm card__meta-venue--tall",{"text-gray-600":e.theme=="light","text-primary-50":e.theme=="club","text-white":e.theme=="dark"}])},s(e.venue),3),t("div",F,[t("div",R,[t("div",G,[e.homeCrest?(a(),k(n,{key:0,src:("useGCImage"in e?e.useGCImage:l(v))(!0,256,256,e.homeCrest),class:"w-[72px] h-[72px] object-contain card__fixture-team-crest ml-4"},null,8,["src"])):i("",!0),t("div",q,[t("p",{class:o(["w-full px-2 font-bold text-right text-heading-2xl card__fixture-team-name card__fixture-team-name--short",[l(m),{"text-gray-900":e.theme=="light","text-white":e.theme=="club"}]])},s((x=e.home)==null?void 0:x.teamNameInitials),3),t("p",{class:o(["hidden w-full px-2 text-xl font-bold text-right card__fixture-team-name",[l(m),{"text-gray-900":e.theme=="light","text-white":e.theme=="club"}]])},s((p=e.home)==null?void 0:p.shortTeamName),3)])])]),t("div",P,[t("div",{class:o(["text-gray-600/70 text-[12px] card__score-time",{"text-white":e.theme==="club"||e.theme==="dark"}])},[e.postponedReason?(a(),r("p",z," Postponed ")):i("",!0),e.period==="FullTime"?(a(),r("p",B," FT ")):i("",!0),e.period==="Abandoned"?(a(),r("p",D," Abandoned ")):i("",!0)],2),t("div",{class:o([{"bg-primary-800":e.theme=="light"&&e.period!=="Abandoned","bg-primary-500":e.theme==="dark"&&e.period!=="Abandoned","bg-transparent border-gray-100/40 border-2":e.theme=="club"&&e.period!=="Abandoned","bg-black text-white":e.period==="Abandoned"},"relative flex items-center justify-center gap-4 px-3 pt-2 pb-2 text-white rounded-md card__score"])},[t("p",E,[e.postponedReason?(a(),r(d,{key:0},[c(" P ")],64)):i("",!0),e.period==="Abandoned"?(a(),r(d,{key:1},[c(" - ")],64)):(a(),r(d,{key:2},[c(s((h=e.home)==null?void 0:h.score),1)],64))]),t("p",H,[e.postponedReason?(a(),r(d,{key:0},[c(" P ")],64)):i("",!0),e.period==="Abandoned"?(a(),r(d,{key:1},[c(" - ")],64)):(a(),r(d,{key:2},[c(s((f=e.opposition)==null?void 0:f.score),1)],64))])],2),((u=e.home)==null?void 0:u.halfScore)>=0&&((_=e.opposition)==null?void 0:_.halfScore)>=0?(a(),r("div",{key:0,class:o(["text-gray-600/70 text-[12px] card__score-ht",{"text-white":e.theme==="club"||e.theme==="dark"}])},[t("p",null,"HT "+s((g=e.home)==null?void 0:g.halfScore)+" - "+s((b=e.opposition)==null?void 0:b.halfScore),1)],2)):i("",!0)]),t("div",K,[t("div",L,[e.oppositionCrest?(a(),k(n,{key:0,src:("useGCImage"in e?e.useGCImage:l(v))(!0,256,256,e.oppositionCrest),class:"w-[74px] h-[74px] object-contain card__fixture-team-crest mr-4"},null,8,["src"])):i("",!0),t("p",{class:o(["font-bold text-center text-heading-2xl card__fixture-team-name--opposition card__fixture-team-name--short",[l(m),{"text-gray-900":e.theme=="light","text-white":e.theme=="club"}]])},s((y=e.opposition)==null?void 0:y.teamNameInitials),3),t("p",{class:o(["hidden text-xl font-bold text-center card__fixture-team-name card__fixture-team-name--opposition",[l(m),{"text-gray-900":e.theme=="light","text-white":e.theme=="club"}]])},s((w=e.opposition)==null?void 0:w.shortTeamName),3)])])])])])])}}});export{M as _};