1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-B-kVIXC8.js","assets/index-D-81gIvX.js","assets/index-DRMVa6F2.css","assets/index-DXE9qYuN.css","assets/TableStandingsSkeleton-sR0YcVyp.js","assets/TableStandingsSkeleton-DMPkhvKL.css"])))=>i.map(i=>d[i]); 2import{ab as ie,f as fe,a5 as he,o as oe,C as i,D as m,I as L,Q as be,J as Y,G as U,E as g,F as c,u as n,H as J,aJ as ee,K as te,N as Q,cj as O,s as ae,_ as se,cy as pe,r as C,j as v,b as we,n as ye,a2 as xe,aa as X,z as Ce}from"./index-D-81gIvX.js";import{R as Te,z as ke}from"./helpers-HqOV8sUK.js";import{G as Se}from"./GameTeamStats-D7kzyaWx.js";import{L as ne}from"./LeaderboardList-CaOwng9A.js";import{T as _e}from"./TableStandings-Ca0sTByH.js";import"./article.api-3vDZakxD.js";import"./shop.api-DkXFrWBF.js";import"./fetch-videos-utils-C3ja4Xtw.js";import"./ecal.api-BUfZ0Pdz.js";import"./TeamNameIcon-CDVhhazp.js";const Le={class:"flex flex-col"},Ne={key:0,class:"flex flex-col"},Ee={class:"relative flex flex-col justify-evenly gap-2 overflow-hidden bg-background-xLight px-3",style:{height:"210px"}},Ie={class:"flex flex-1 flex-col gap-1 min-w-0"},je={key:1,class:"overflow-hidden border border-grey-xLight"},Ae={class:"grid grid-cols-[1fr_auto_1fr] gap-3 px-4 py-3 border-b-2 border-grey-xLight bg-background-xLight"},De={class:"flex m-auto w-full justify-center mb-10"},Pe={class:"font-bold uppercase text-center leading-7 text-base sm:text-2xl lg:mr-4"},Ue=["src"],Re=["src"],Be={class:"font-bold uppercase text-center leading-7 text-base sm:text-2xl lg:ml-4"},Ve={key:6,class:"text-grey-xDark text-center py-8 text-sm"},$e=ie({__name:"StatsColumnPanel",props:{sectionConfig:{}},setup(l){const d=ae(()=>se(()=>import("./index-B-kVIXC8.js"),__vite__mapDeps([0,1,2,3]))),j=ae(()=>se(()=>import("./TableStandingsSkeleton-sR0YcVyp.js"),__vite__mapDeps([4,0,1,2,3,5]))),h=e=>e?typeof e=="string"?e:e.moduleName??e.identifier??"":"",y=l,N=fe(),T=e=>{if(!e)return"";const t=N.getSiteTeamInfo(e),a=t==null?void 0:t.ownerInstanceId;return a?pe(e,a):""},E=Te(),{currentRoute:K}=he(),A=C(!1),b=C(null),s=C([]),p=C(""),w=C(null),r=C(null),k=v(()=>{var e;return((e=r.value)==null?void 0:e.stats)??[]}),q=v(()=>{var e;return((e=r.value)==null?void 0:e.provider)??""}),I=v(()=>{var e,t,a,o,u,f,S,_;return{homeTeam:{names:{long:((t=(e=r.value)==null?void 0:e.homeTeam)==null?void 0:t.name)??""},icon:((o=(a=r.value)==null?void 0:a.homeTeam)==null?void 0:o.logo)??""},awayTeam:{names:{long:((f=(u=r.value)==null?void 0:u.awayTeam)==null?void 0:f.name)??""},icon:((_=(S=r.value)==null?void 0:S.awayTeam)==null?void 0:_.logo)??""}}}),H=v(()=>{var e;return b.value?Array.isArray(b.value)?b.value:Array.isArray((e=b.value)==null?void 0:e.list)?b.value.list:[]:[]}),re=e=>{const t=(e??"").trim().split(" ").filter(Boolean);return t.length<=1?{firstName:"",lastName:t[0]??""}:{firstName:t.slice(0,-1).join(" "),lastName:t[t.length-1]}},le=e=>{var u;const{firstName:t,lastName:a}=re(e.fullName),o=(u=e.team)!=null&&u.uuid?N.getSiteTeamInfo(e.team.uuid):void 0;return{uuid:e.uuid,fullName:e.fullName,firstName:t,lastName:a,number:e.jerseyNumber&&e.jerseyNumber!=="N/A"?e.jerseyNumber:void 0,position:e.positionCode,gender:e.gender,media:e.media,statField:Object.values(e.seasonStats??{})[0]??0,team:e.team?{uuid:e.team.uuid,ownerInstanceId:o==null?void 0:o.ownerInstanceId,siteDisplayName:e.team.name,media:e.team.media}:void 0}},de=v(()=>{var e,t;return((t=(e=H.value)==null?void 0:e[0])==null?void 0:t.statisticsProvider)??""}),ue=v(()=>{var a;const e=(a=H.value)==null?void 0:a[0],t=e?Object.keys(e.seasonStats??{})[0]??"":"";return{type:t.toLowerCase(),highlightedField:t,list:H.value.map(le)}}),W=v(()=>{var e,t;return((t=(e=w.value)==null?void 0:e[0])==null?void 0:t.stats)??[]}),ce=v(()=>{var a,o;const e=((o=(a=w.value)==null?void 0:a[0])==null?void 0:o.dataColumns)??[],t=new Set(["Rank","Lag","Team"]);return e.filter(u=>u.type!=="string"&&!t.has(u.name))}),me=v(()=>{var e,t;return((t=(e=w.value)==null?void 0:e[0])==null?void 0:t.provider)??""}),ge=(e,t)=>{var a,o,u,f;return{uuid:(a=e.info)==null?void 0:a.uuid,ownerInstanceId:(o=e.info)==null?void 0:o.ownerInstanceId,siteDisplayName:(u=e.info)==null?void 0:u.siteDisplayName,media:(f=e.info)==null?void 0:f.teamMedia,statField:e[t]??0}},ve=v(()=>{var t,a;const e=((a=(t=ce.value)==null?void 0:t[0])==null?void 0:a.name)??"";return{type:e.toLowerCase(),highlightedField:e,list:W.value.map(o=>ge(o,e))}});return oe(async()=>{var t,a,o,u,f,S,_,R,B,V;const e=((t=y.sectionConfig)==null?void 0:t.ssgtUuid)||((o=(a=y.sectionConfig)==null?void 0:a.seasonSeries
2)==null?void 0:o.uuid);if(e){A.value=!0;try{const{teamUuid:D,scope:$,statType:P,module:F,count:x}=y.sectionConfig,G=e,Z=$==="team"&&(D||((f=(u=y.sectionConfig)==null?void 0:u.team)==null?void 0:f.uuid))||"";if(P==="leaderboard")b.value=await E.getLeaderboard(G,Z,h(F),x??5);else if(P==="team-stats")w.value=await E.getTeamStats(G,h(F),50,Z||void 0);else if(P==="team-h2h"){const M=D||((_=(S=y.sectionConfig)==null?void 0:S.team)==null?void 0:_.uuid)||"",z=((R=y.sectionConfig)==null?void 0:R.awayTeamUuid)||"";M&&z&&(r.value=await E.getPreGameTeamHead2Head(G,M,z))}else{const{tableStandingsData:M,provider:z}=await ke(G,$==="team"?D||((V=(B=y.sectionConfig)==null?void 0:B.team)==null?void 0:V.uuid):void 0);s.value=M??[],p.value=z??""}}finally{A.value=!1}}}),(e,t)=>{var a,o,u,f,S,_,R,B,V,D,$,P,F;return i(),m("div",Le,[(a=l.sectionConfig)!=null&&a.heading?(i(),L(be,{key:0,primary:"",uppercase:"",class:"mb-3",heading:"heading 3","heading-label":l.sectionConfig.heading,"is-section-heading":!0},null,8,["heading-label"])):Y("",!0),A.value?(i(),m(U,{key:1},[((o=l.sectionConfig)==null?void 0:o.statType)==="leaderboard"||((u=l.sectionConfig)==null?void 0:u.statType)==="team-stats"?(i(),m("div",Ne,[g("div",Ee,[c(n(d),{width:"55%",height:22,rounded:!0,animation:"wave"}),c(n(d),{width:"30%",height:13,rounded:!0,animation:"wave"}),c(n(d),{width:40,height:45,rounded:!1,animation:"wave",class:"absolute bottom-0 left-0"}),c(n(d),{width:150,height:150,rounded:!1,animation:"wave",class:"absolute bottom-0 right-0"})]),(i(!0),m(U,null,J((((f=l.sectionConfig)==null?void 0:f.count)??5)-1,x=>(i(),m("div",{key:x,class:"flex items-center gap-3 border-b border-grey-xLight px-1 last:border-b-0",style:{height:"52px"}},[c(n(d),{width:24,height:14,rounded:!0,animation:"wave",class:"shrink-0"}),c(n(d),{type:"square",width:30,height:32,animation:"wave",class:"shrink-0"}),g("div",Ie,[c(n(d),{width:"50%",height:13,rounded:!0,animation:"wave"}),c(n(d),{width:"30%",height:10,rounded:!0,animation:"wave"})]),c(n(d),{width:28,height:16,rounded:!0,animation:"wave",class:"shrink-0"})]))),128))])):((S=l.sectionConfig)==null?void 0:S.statType)==="team-h2h"?(i(),m("div",je,[g("div",Ae,[c(n(d),{width:"70%",height:16,rounded:!0,animation:"wave"}),c(n(d),{width:20,height:14,rounded:!0,animation:"wave"}),c(n(d),{width:"70%",height:16,rounded:!0,animation:"wave",class:"justify-self-end"})]),(i(),m(U,null,J(7,x=>g("div",{key:x,class:"grid grid-cols-[1fr_auto_1fr] gap-3 px-4 py-2 border-b border-grey-xLight last:border-b-0"},[c(n(d),{width:28,height:13,rounded:!0,animation:"wave",class:"justify-self-end"}),c(n(d),{width:24,height:11,rounded:!0,animation:"wave"}),c(n(d),{width:28,height:13,rounded:!0,animation:"wave"})])),64))])):(i(),L(n(j),{key:2}))],64)):((_=l.sectionConfig)==null?void 0:_.statType)==="leaderboard"&&H.value.length?(i(),L(ne,{key:2,stats:ue.value,category:"players",provider:de.value,"hide-view-all-button":""},null,8,["stats","provider"])):((R=l.sectionConfig)==null?void 0:R.statType)==="standings"&&s.value.length?(i(),L(_e,{key:3,"table-standings":s.value,"stats-provider":p.value,"current-route":n(K),"team-name-variant":l.sectionConfig.teamNameVariant??"display"},null,8,["table-standings","stats-provider","current-route","team-name-variant"])):((B=l.sectionConfig)==null?void 0:B.statType)==="team-stats"&&W.value.length?(i(),L(ne,{key:4,stats:ve.value,category:"teams",provider:me.value,"hide-view-all-button":""},null,8,["stats","provider"])):((V=l.sectionConfig)==null?void 0:V.statType)==="team-h2h"&&k.value.length?(i(),m(U,{key:5},[g("div",De,[(i(),L(ee(T((D=l.sectionConfig)==null?void 0:D.teamUuid)?"router-link":"div"),{to:T(($=l.sectionConfig)==null?void 0:$.teamUuid)||void 0,class:"w-2/5 flex flex-col-reverse lg:flex-row justify-end items-center hover:opacity-80 transition-opacity"},{default:te(()=>[g("span",Pe,Q(I.value.homeTeam.names.long),1),g("img",{src:I.value.homeTeam.icon,alt:"",class:"h-16 lg:h-20 m-auto lg:m-0",onError:t[0]||(t[0]=(...x)=>n(O)&&n(O)(...x))},null,40,Ue)]),_:1},8,["to"])),t[2]||(t[2]=g("div",{class:"w-1/5 inline-flex self-center justify-center"},[g("span",{class:"font-bold text-2xl uppercase text-primary-base"},"vs")],-1)),(i(),L(ee(T((P=l.sectionConfig)==null?void 0:P.awayTeamUuid)?"router-link":"div"),{to:T((F=l.sectionConfig)==null?void 0:F.awayTeamUuid)||void 0,class:"w-2/
25 flex flex-col lg:flex-row items-center hover:opacity-80 transition-opacity"},{default:te(()=>[g("img",{src:I.value.awayTeam.icon,alt:"",class:"h-16 lg:h-20 m-auto lg:m-0",onError:t[1]||(t[1]=(...x)=>n(O)&&n(O)(...x))},null,40,Re),g("span",Be,Q(I.value.awayTeam.names.long),1)]),_:1},8,["to"]))]),c(Se,{"team-stats-data":k.value,"statistics-provider":q.value,"is-show-stat-label":!0,"is-show-logo":!1,"team-stats-margin":"mb-6"},null,8,["team-stats-data","statistics-provider"])],64)):A.value?Y("",!0):(i(),m("p",Ve,Q(e.$t("no_data_available")),1))])}}}),Fe={class:"max-w-[1400px] mx-auto px-4 py-6"},He=["aria-label"],Ge=["aria-current","aria-label","onClick"],Me=ie({__name:"StatsSection",props:{sectionConfig:{}},setup(l){const{t:d}=we(),j=l,h=v(()=>{var s;return Array.isArray((s=j.sectionConfig)==null?void 0:s.columns)&&j.sectionConfig.columns.length>0?j.sectionConfig.columns:[j.sectionConfig]}),y=v(()=>({1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4"})[h.value.length]??"md:grid-cols-1"),N=C(null),T=C([]),E=C(0),K=(s,p)=>{T.value[p]=(s==null?void 0:s.$el)??null},A=s=>{const p=T.value[s];p&&p.scrollIntoView({behavior:"smooth",block:"nearest",inline:"start"})},b=()=>{const s=N.value;if(!s||h.value.length<=1)return;const p=s.getBoundingClientRect().left;let w=0,r=1/0;T.value.forEach((k,q)=>{if(!k)return;const I=Math.abs(k.getBoundingClientRect().left-p);I<r&&(r=I,w=q)}),E.value=w};return oe(()=>{ye(()=>{var s;(s=N.value)==null||s.addEventListener("scroll",b,{passive:!0}),b()})}),xe(()=>{var s;(s=N.value)==null||s.removeEventListener("scroll",b)}),(s,p)=>(i(),m("section",Fe,[g("div",{ref_key:"trackEl",ref:N,class:X(["stats-columns flex gap-4 overflow-x-auto snap-x snap-mandatory pb-3 -mx-4 px-4 md:grid md:gap-6 md:overflow-visible md:pb-0 md:mx-0 md:px-0",y.value])},[(i(!0),m(U,null,J(h.value,(w,r)=>(i(),L($e,{key:r,ref_for:!0,ref:k=>K(k,r),class:X(h.value.length>1?"snap-start shrink-0 w-[85vw] md:w-auto":"w-full"),"section-config":w},null,8,["class","section-config"]))),128))],2),h.value.length>1?(i(),m("nav",{key:0,class:"flex justify-center gap-2 mt-3 md:hidden","aria-label":n(d)("slideshow.slideshow_label")},[(i(!0),m(U,null,J(h.value,(w,r)=>(i(),m("button",{key:r,type:"button","aria-current":E.value===r?"true":void 0,"aria-label":n(d)("slideshow.go_to_slide",{slideNumber:r+1,totalSlides:h.value.length}),class:X(["rounded-full transition-all duration-200 focus:outline-none",E.value===r?"bg-primary-base w-4 h-2.5":"bg-grey-light w-2.5 h-2.5 hover:bg-grey-base"]),onClick:k=>A(r)},null,10,Ge))),128))],8,He)):Y("",!0)]))}}),et=Ce(Me,[["__scopeId","data-v-fbbd5f6a"]]);export{et 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.