import{L as v,M as k,Z as T}from"./DThBoNQI.js";import{f as S,D as w,g as _,c as B,o,d as t,t as i,b as j,a as y,u as a,n as m}from"./tXL-a5uR.js";const z={class:"bg-theme-background-light teams-header bg-theme-background-light border-theme-border grid h-[60px] w-full w-full grid-cols-1 items-center gap-4 rounded-t-[10px] border p-[5px] sm:grid-cols-3"},N={class:"team-name-home s-text-paragraph-bold text-theme-muted-light hidden text-center sm:block"},D={class:"score flex items-center justify-evenly gap-2 sm:justify-center sm:gap-2"},C={class:"team-name-home s-text-paragraph-bold text-theme-muted-light hidden text-center sm:block"},E=S({__name:"STeamsHeader",props:{info:{type:Object,required:!1,default:()=>({})}},setup(e){const l=e,n=w("siteBucket"),r=w("siteDefaultPersonImage"),s=_(()=>+l.info.homeTeamScore<+l.info.visitingteamscore);return(f,c)=>{var g,h,d,p,u,f,x,b;return o(),B("div",z,[t("p",N,i(e.info.homeTeamName),1),t("div",D,[(o(),j(k,{key:e.info.homeTeam.code,alt:"",class:"h-[24px] min-w-[24px] object-contain",images:[{breakpoint:0,image:(h=(g=e.info)==null?void 0:g.homeTeam)!=null&&h.logo?a(v)({url:(p=(d=e.info)==null?void 0:d.homeTeam)==null?void 0:p.logo,bucket:a(n)}):a(r),width:200,height:200}]},null,8,["images"])),t("div",{class:m(["s-team__team-score s-text-title-large mr-3 ml-4",s.value?"text-theme-muted":"text-theme-safe"])},i(e.info.homeTeamScore),3),y(T,{class:m(["min-w-[18px]",s.value?"text-theme-elevated":"text-theme-safe"]),name:"icon-carat-left",size:"small"},null,8,["class"]),c[0]||(c[0]=t("span",{class:"text-theme-safe-light s-text-regular-bold"},"Final",-1)),y(T,{class:m(["min-w-[18px]",s.value?"text-theme-safe":"text-theme-elevated"]),name:"icon-carat-right",size:"small"},null,8,["class"]),t("div",{class:m(["s-team__opponent-score s-text-title-large mr-4 ml-3",s.value?"text-theme-safe":"text-theme-muted"])},i(e.info.visitingTeamScore),3),(o(),j(k,{key:e.info.visitingTeam.code,alt:"",class:"h-[24px] min-w-[24px] object-contain",images:[{breakpoint:0,image:(f=(u=e.info)==null?void 0:u.visitingTeam)!=null&&f.logo?a(v)({url:(b=(x=e.info)==null?void 0:x.visitingTeam)==null?void 0:b.logo,bucket:a(n)}):a(r),width:200,height:200}]},null,8,["images"]))]),t("p",C,i(e.info.visitingTeamName),1)])}}});export{E as default};