1import{_ as I}from"./_plugin-vue_export-helper.DCyA4Sjg.js";import{aF as b,aO as d,az as $,aA as N,aB as i,aI as u,aG as y,aJ as x,aL as S,aH as n,aS as v,aV as B,ay as D}from"./entry.18Ab6wtJ.js";import{_ as M}from"./Image.vue.P4G8NEVC.js";import{i as T}from"./playerUtil.WZtGKQJ8.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},c=new o.Error().stack;c&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[c]="5c32b76d-19bb-440c-9656-3971c7b61be1",o._sentryDebugIdIdentifier="sentry-dbid-5c32b76d-19bb-440c-9656-3971c7b61be1")}catch{}})();const L={},P={class:"h-8 w-8 bg-primary-foreground absolute rounded-full text-white text-lg font-bold flex items-center justify-center font-sans"};function U(o,c){return d(),b("div",P," C ")}const V=I(L,[["render",U]]),j={class:"bg-white flex flex-col justify-end relative rounded"},z={class:"relative p-4 pb-0"},O={key:0,class:"flex flex-col items-center bg-white rounded"},E={class:"grow text-primary-foreground text-lg leading-none pt-4 mb-2 uppercase font-bebas-neue"},F={class:"relative player-card-position grow text-primary-foreground-subtle text-base leading-none pb-3 flex w-full px-4 justify-center items-center"},R={class:"p-2"},q=$({__name:"PlayerCard",props:{player:{}},setup(o){const c=N(),g=D(),_=o,f=i(()=>_.player),m=i(()=>f.value.heroMedia),w=i(()=>{var e,t,a,s,r,l;return((t=(e=m.value)==null?void 0:e.content)==null?void 0:t.imageThumbnail)||((s=(a=m.value)==null?void 0:a.content)==null?void 0:s.image)||((l=(r=g.public.teams)==null?void 0:r[0])==null?void 0:l.silhouette)}),p=i(()=>{var e,t,a;return(a=(t=(e=_.player)==null?void 0:e.content)==null?void 0:t.find(s=>s.contentType==="CUSTOM"))==null?void 0:a.customContent}),C=i(()=>{var e,t,a,s,r;return((r=(s=(a=(t=(e=_.player)==null?void 0:e.content)==null?void 0:t.find(l=>l.contentType==="CUSTOM"))==null?void 0:a.customContent)==null?void 0:s.hasProfile_select)==null?void 0:r.toLowerCase())!=="no"}),h=i(()=>{var e,t;return`${(e=p.value)==null?void 0:e.playerFirstName_string} ${(t=p.value)==null?void 0:t.playerLastName_string}`}),k=i(()=>{var e;return(e=p.value)==null?void 0:e.position_select});return(e,t)=>{var l;const a=V,s=M,r=B;return d(),b("div",j,[u("figure",z,[n(T)(n(f))?(d(),x(a,{key:0,class:"-translate-y-1/2 translate-x-1/2 top-4 right-4"})):y("",!0),S(s,{src:n(w),alt:n(m).title,lazy:!1,sizes:["300"]},null,8,["src","alt"]),t[0]||(t[0]=u("div",{class:"absolute bottom-0 h-1/5 w-[calc(100%-2rem)]",style:{background:"linear-gradient(180deg, transparent 0%, white 100%)"}},null,-1))]),n(p)?(d(),b("div",O,[u("div",E,v(n(h)),1),u("div",F,[u("span",R,v(n(k)),1)])])):y("",!0),n(C)?(d(),x(r,{key:1,"aria-label":`player ${n(h)}`,class:"absolute w-full h-full top-0 left-0",to:`/teams/${(l=n(c).params)==null?void 0:l.teamSlug}/player/${n(f).slug}`},null,8,["aria-label","to"])):y("",!0)])}}});export{q as _};
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.