1import{a1 as C,f as O,T as P,cj as B,cT as G,t as V,di as L,dA as w,j as A,z,B as h,C as c,D as r,E as a,N as i,J as u,O as F,F as f,G as U,H as M,K as I,a7 as R,as as J}from"./index-OS-oTnyi.js";import K from"./SyTooltip-CBae19bE.js";import{S as W}from"./SocialMediaIcons-Cqk51leY.js";import{_ as Y}from"./stadium-yiOG6sR2.js";import"./popper.esm-CQxDyeIW.js";const q={name:"TeamHeader",components:{SdpStreamlineIcon:C,SyTooltip:K,SocialMediaIcons:W},props:{teamHeader:{type:Object,default:()=>({})},menuSocials:{type:Object,default:()=>({})},teamDetails:{type:Object,default:()=>({})}},setup(m){const n=O(),e=A(()=>n.checkIfIsLeagueSite),{teamDetails:t}=P(m),p=(o,_,l)=>({result:_??"-",code:L(o,l,w.CODE),label:L(o,l,w.NAME)}),g=A(()=>{var o;return((o=t.value)==null?void 0:o.siteDisplayName)||""});return{isEmpty:V,teamName:g,isLeagueSite:e,openExternalUrl:G,composeField:p,displayGenericTeamLogo:B}}},Q={class:"team-header-root"},X={class:"team-header bg-gradient-to-r from-primary-dark to-primary-base"},Z={class:"team-header-container"},$={class:"team-header-team items-center"},ee={class:"team-header-team-img"},ae=["src"],te={class:"team-header-team-info"},se={class:"team-header-team-name"},oe={key:0,class:"team-header-team-est"},ie={key:1,class:"team-header-team-arena"},ne=["href"],ce={class:"team-header-stats-container"},re={class:"team-header-stats-spot-container flex"},de={class:"team-header-stats-spot-heading"},le={class:"team-header-stats-spot-data"},me={class:"team-header-stats-spot-heading"},_e={class:"team-header-social-media"};function he(m,n,e,t,p,g){var v,S,y,T,D,b,N,E,k,x;const o=h("sdp-streamline-icon"),_=h("sy-tooltip"),l=h("social-media-icons");return c(),r("div",Q,[a("div",X,[a("div",Z,[a("div",$,[a("div",ee,[a("img",{class:"team-header-team-img-logo",src:(v=e.teamDetails)==null?void 0:v.icon,alt:"",onError:n[0]||(n[0]=(...s)=>t.displayGenericTeamLogo&&t.displayGenericTeamLogo(...s))},null,40,ae)]),a("div",te,[a("h1",se,i(t.teamName),1),(y=(S=e.teamDetails)==null?void 0:S.info)!=null&&y.founded?(c(),r("p",oe," EST: "+i(((D=(T=e.teamDetails)==null?void 0:T.info)==null?void 0:D.founded)||"-"),1)):u("",!0),(b=e.teamDetails)!=null&&b.arenaName?(c(),r("p",ie,[n[1]||(n[1]=a("img",{src:Y,alt:"",class:"arena-icon"},null,-1)),F(" "+i(((N=e.teamDetails)==null?void 0:N.arenaName)||"-"),1)])):u("",!0),t.isLeagueSite?(c(),r("a",{key:2,class:"team-header-team-url",href:(E=e.teamDetails)==null?void 0:E.publicUrl,target:"_blank",rel:"noopener noreferrer"},[f(o,{class:"link-icon",icon:"expandArrow",size:15}),F(" "+i((k=e.teamDetails)!=null&&k.publicUrl?m.$t("teamProfile.teamWebsite"):"-"),1)],8,ne)):u("",!0)])]),a("div",ce,[a("div",re,[(c(!0),r(U,null,M((x=e.teamHeader)==null?void 0:x.stats,(s,j)=>(c(),r("div",{key:j,class:"team-header-stats-spot"},[f(_,{class:"cursor-pointer"},{content:I(()=>{var d;return[a("p",me,i(t.composeField(s.field,s.value,(d=e.teamHeader)==null?void 0:d.statisticsProvider).label),1)]}),default:I(()=>{var d,H;return[a("p",de,i(t.composeField(s.field,s.value,(d=e.teamHeader)==null?void 0:d.statisticsProvider).code),1),a("div",le,i(t.composeField(s.field,s.value,(H=e.teamHeader)==null?void 0:H.statisticsProvider).result),1)]}),_:2},1024)]))),128))])]),R(a("div",_e,[f(l,{icons:e.menuSocials,"is-font-sub-header":!0,"icon-white":!0,"heading-size":"heading 4","heading-color":"text-white","icon-custom-class":"text-center","heading-level":"h2"},null,8,["icons"])],512),[[J,!t.isEmpty(e.menuSocials)]])])])])}const Se=z(q,[["render",he],["__scopeId","data-v-59330388"]]);export{Se as default};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.