1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/BoxScore-DzyfvNg5.js","assets/index-DGVzuMoh.js","assets/index-BsHARRKi.css","assets/sticky-header.util-BjqCVYx0.js","assets/TeamNameIcon-CU7INwCy.js","assets/TeamNameIcon-BsqOuCJ4.css","assets/BoxScore-fcllVEjc.css"])))=>i.map(i=>d[i]); 2import{ab as k,b4 as D,c7 as A,w as x,s as T,_ as U,j as C,r as I,z as w,B as S,C as B,I as E}from"./index-DGVzuMoh.js";import{c as b,d as h,f as G,g,h as P,j as L}from"./embedded-article-sections.tools-Chk3wYrg.js";import{E as $}from"./EmbeddedSectionEmpty-CJZEEaw1.js";import{u as R,a as j}from"./ArticleHtmlRenderer-CaNzrJ7s.js";import{u as F}from"./useEmbeddedSiteTeams-BDmXgZed.js";import"./legacy-style-scoping-DLBkiVNm.js";import"./useListAdSlots-ULHwCIxd.js";const z=k({name:"EmbeddedBoxscoreSection",components:{BoxScore:T(()=>U(()=>import("./BoxScore-DzyfvNg5.js"),__vite__mapDeps([0,1,2,3,4,5,6]))),EmbeddedSectionEmpty:$},setup(){const t=D(),y=A(),{sectionConfig:u}=R(),{resolvedPayload:l}=j(),{embeddedSiteTeams:f}=F(),i=I(null),o=I(null);let d=0,_=0;const v=C(()=>{const e=l.value;return b(e)?e:i.value??e});return x([l,()=>{var e;return(e=u.value)==null?void 0:e.gameUuid}],async([e,r])=>{const p=++d;if(b(e)){i.value=null;return}const s=h(r);if(s)try{const[m,a]=await Promise.all([t.getGameInfo(s),y.getLivePlayerStats(s)]);if(p!==d)return;const c={gameCenterInfo:m,boxScoreData:a};b(c)&&(i.value=c)}catch{}},{immediate:!0}),x([v,f,()=>{var e;return(e=u.value)==null?void 0:e.gameUuid}],async([e,r,p])=>{const s=++_,m=G(e);if(!m){o.value=null;return}let a=g(m.gameCenterInfo,r);if(!P(a)){o.value=null;return}const c=h(p)||L(a);if(c){o.value=null;try{const n=await t.getGameInfo(c);if(s!==_||!(n!=null&&n.homeTeam)||!(n!=null&&n.awayTeam))return;a=g(n,r),P(a)||(o.value=a)}catch{}}},{immediate:!0}),{boxscoreBind:C(()=>{const e=G(v.value);return e?{gameCenterInfo:o.value??g(e.gameCenterInfo,f.value),boxScoreData:e.boxScoreData}:null})}}});function M(t,y,u,l,f,i){const o=S("box-score"),d=S("embedded-section-empty");return t.boxscoreBind?(B(),E(o,{key:0,"game-center-info":t.boxscoreBind.gameCenterInfo,"box-score-data":t.boxscoreBind.boxScoreData,"loading-data":!1,"disable-sticky-header":!0},null,8,["game-center-info","box-score-data"])):(B(),E(d,{key:1}))}const W=w(z,[["render",M]]);export{W 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.