1import{e as K,p as M,r as O,o as r,c as o,a as s,b as A,w as F,F as i,L as h,G as l,A as G,z as g,W as j,d as W,$ as Q,a0 as R}from"./index.a8b11f73.mjs";import X from"./SGlossary.es.f61228ab.mjs";import{s as Y}from"./_plugin-vue_export-helper.es.f875bd67.mjs";import"./SExpansionPanel.vue_vue_type_script_setup_true_lang.es.e3d5f5d7.mjs";const q=t=>(Q("data-v-e3e8388e"),t=t(),R(),t),Z={class:"s-game-bug-card__postgame-content__results-container mt-[32px] grid overflow-auto md:mt-[16px]"},ee={class:"s-table-header__column text-theme-muted s-text-small-bold light-theme-color-bg-background relative select-none whitespace-nowrap border-l-2 border-solid !uppercase"},ae=q(()=>s("th",{class:"!text-theme-safe stats w-[20%] border-solid !uppercase !shadow-none"},[s("span",{class:"sr-only"},"Team")],-1)),te={class:"!text-theme-safe stats w-[20%]"},se={class:"s-table-header__column-wrapper s-table-header__column-wrapper--left !text-theme-safe-light s-text-regular-bold text-center"},re=q(()=>s("th",null,[s("div",{class:"s-table-header__column-wrapper s-table-header__column-wrapper--left !text-theme-safe-light s-text-regular-bold text-center"}," Total ")],-1)),le={class:"!border-theme-border border-left flex rounded-tl-md"},oe={class:"mx-auto flex items-center gap-2 sm:ml-0 sm:mr-2"},me={class:"h-[21px] w-[21px]"},ne={class:"text-theme-safe s-text-regular hidden whitespace-nowrap sm:block"},ie={class:"s-table-body_cell s-text-regular min-w-[40px] text-center w-[20%]"},de={class:"s-table-body_cell s-text-regular-bold !bg-theme-surface-light !border-theme-border border-right min-w-[40px] rounded-tr-md text-center w-[20%]"},ce={class:"last"},he={class:"!border-theme-border border-left flex rounded-bl-md"},pe={class:"mx-auto flex items-center gap-2 sm:ml-0 sm:mr-2"},ge={class:"h-[21px] w-[21px]"},ue={class:"text-theme-safe s-text-regular hidden whitespace-nowrap sm:block"},be={class:"s-table-body_cell s-text-regular min-w-[40px] text-center w-[20%]"},ye={class:"s-table-body_cell s-text-regular-bold !bg-theme-surface-light !border-theme-border border-right min-w-[40px] rounded-br-md text-center w-[20%]"},xe={class:"text-theme-safe s-text-regular my-[20px] block"},fe={class:"text-theme-brand-light font-bold"},we=["href"],Ne={key:1},Te={class:"text-theme-brand-light font-bold"},ke=["href"],ve={key:1},_e=K({__name:"SGameBugCardBoxScoreHockeyV2",props:{stats:{type:Object}},setup(t){const u=t,y=M.getConfig(),J={Date:"date",Location:"location",Attendance:"attendance",Officials:"officials",Start:"start",Time:"duration"},p=x=>{let n=[],d="",m=[],c="";return u.stats.scores.forEach(e=>{e.homeOrVisitor==="H"?n.filter(a=>a.playerName===e.playerName).length===0?n.push({playerName:e.playerName,playerUrl:u.stats.homeTeam.players.find(a=>a.checkName==e.playerName).playerUrl,goals:1}):n.forEach(a=>{a.playerName===e.playerName&&(a.goals+=1)}):m.filter(a=>a.playerName===e.playerName).length===0?m.push({playerName:e.playerName,playerUrl:u.stats.visitingTeam.players.find(a=>a.checkName==e.playerName).playerUrl,goals:1}):m.forEach(a=>{a.playerName===e.playerName&&(a.goals+=1)})}),n.sort((e,a)=>a.goals-e.goals).forEach((e,a)=>{a+1==n.length?d+=`${e.playerName} (${e.goals})`:d+=`${e.playerName} (${e.goals}); `}),m.sort((e,a)=>a.goals-e.goals).forEach((e,a)=>{a+1==m.length?c+=`${e.playerName} (${e.goals})`:c+=`${e.playerName} (${e.goals}); `}),x==="home"?n:m};return(x,n)=>{var c;const d=O("s-image-resized"),m=O("s-table");return r(),o(i,null,[s("div",Z,[A(m,{"header-class":"light-theme-color-bg-background","header-text-class":"!text-theme-safe-light",theme:"light-theme",columns:[],class:"score-summary-table s-table-white","min-width":"20rem",hideDefaultHeader:!0,stickyColumns:"1"},{"table-header-row-slot":F(()=>[s("tr",ee,[ae,(r(!0),o(i,null,h(t.stats.periods,e=>(r(),o("th",te,[s("div",se,l(e),1)]))),256)),re])]),"table-body-slot":F(()=>{var e,a,f,w,N,T,k,v,_,$,S,I,U,E,B,C,V,H,P,z,D,L;return[s("tbody",null,[s("tr",null,[s("td",le,[s("div",oe,[s("div",me,[(r(),G(d,{key:t.stats.homeTeam.code,alt:t.stats.homeTeamName,images:[{breakpoint:0,image:(a=(e=t.stats)==null?void 0:e.homeTeam)!=null&&a.logo?g(j)((w=(f=t.stats)==null?void 0:f.homeTeam)==null?void 0:w.logo):g(y).defaultPersonImage,width:200,height:200}],"aria-hidden":"true"},null,8,["alt","images"]))])]),s("span",ne,l((N=t.stats)==null?void 0:N.homeTeamName),1)]),(r(!0),o(i,null,h((v=(k=(T=t.stats)==null?void 0:T.homeTeam)==null?void 0:k.scoringSummary)==null?void 0:v.periods,b=>(r(),o("td",ie,l(b.score),1))),256)),s("td",de,l((S=($=(_=t.stats)==null?void 0:_.homeTeam)==null?void 0:$.scoringSummary)==null?void 0:S.score),1)]),s("tr",ce,[s("td",he,[s("div",pe,[
1s("div",ge,[(r(),G(d,{key:t.stats.visitingTeam.code,alt:t.stats.visitingTeamName,images:[{breakpoint:0,image:(U=(I=t.stats)==null?void 0:I.visitingTeam)!=null&&U.logo?g(j)((B=(E=t.stats)==null?void 0:E.visitingTeam)==null?void 0:B.logo):g(y).defaultPersonImage,width:200,height:200}],"aria-hidden":"true"},null,8,["alt","images"]))])]),s("span",ue,l((C=t.stats)==null?void 0:C.visitingTeamName),1)]),(r(!0),o(i,null,h((P=(H=(V=t.stats)==null?void 0:V.visitingTeam)==null?void 0:H.scoringSummary)==null?void 0:P.periods,b=>(r(),o("td",be,l(b.score),1))),256)),s("td",ye,l((L=(D=(z=t.stats)==null?void 0:z.visitingTeam)==null?void 0:D.scoringSummary)==null?void 0:L.score),1)])])]}),_:1})]),s("p",xe,[s("span",fe,l(t.stats.homeTeam.id)+": ",1),(r(!0),o(i,null,h(p("home"),(e,a)=>(r(),o("span",null,[e.playerUrl?(r(),o("a",{key:0,class:"text-theme-link-light s-text-regular !underline",href:e.playerUrl},l(e.playerName),9,we)):(r(),o("span",Ne,l(e.playerName),1)),W(" ("+l(e.goals)+")"+l(a===p("home")-1?"":"; "),1)]))),256)),s("span",Te,l(t.stats.visitingTeam.id)+": ",1),(r(!0),o(i,null,h(p("visiting"),(e,a)=>(r(),o("span",null,[e.playerUrl?(r(),o("a",{key:0,class:"text-theme-link-light s-text-regular !underline",href:e.playerUrl},l(e.playerName),9,ke)):(r(),o("span",ve,l(e.playerName),1)),W(" ("+l(e.goals)+")"+l(a===p("home")-1?"":"; "),1)]))),256))]),A(X,{class:"game-information !bg-theme-surface border-theme-border mt-4 border-b border-t border-r border-l",headerText:"Game Information",grids:"2",game:t.stats.venue,gameInfo:J,historyPath:(c=t.stats)==null?void 0:c.opponentHistoryPath},null,8,["game","historyPath"])],64)}}}),Ee=Y(_e,[["__scopeId","data-v-e3e8388e"]]);export{Ee 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.