PageSourceSearch

https://www.stjernen.no/assets/EmbeddedCurrentGameSection-faAPEE4o.js

js stjernen.no collected 2026-10-02 22:09:42 UTC 2,229 bytes, 1 lines download raw bytes

1import{ab as E,bR as w,b4 as x,w as p,j as y,bt as k,r as B,z as R,B as h,C as b,D as I,F as T,I as P}from"./index-BO6Ka_k5.js";import{S as $}from"./SingleGameBox-DCQMy67n.js";import{p as C,e as f,u as S,m as A}from"./embedded-article-sections.tools-Bdvdlk7v.js";import{E as F}from"./EmbeddedSectionEmpty-ChKCwdKg.js";import{a as D,u as H}from"./ArticleHtmlRenderer-CQxpH-c-.js";import{u as L}from"./useEmbeddedSiteTeams-Bhz3obOy.js";import"./TeamNameIcon-DlkAhuz7.js";import"./legacy-style-scoping-DLBkiVNm.js";import"./useListAdSlots-C7nMdGEr.js";const M=E({name:"EmbeddedCurrentGameSection",components:{SingleGameBox:$,EmbeddedSectionEmpty:F},setup(){const o=w(),c=x(),{resolvedPayload:d}=D(),{sectionConfig:G}=H(),{embeddedSiteTeams:u}=L(),r=B(null),a=B(null);let i=0,g=0;p([d,G],async([e,t])=>{var m;const n=++i;if(C(e)!=null){a.value=null;return}const s=typeof(t==null?void 0:t.teamUuid)=="string"?t.teamUuid.trim():"";if(!s){a.value=null;return}try{const l=await c.getUpcomingGamesV2(s);if(n!==i)return;const _=((m=l==null?void 0:l.upcomingGames)==null?void 0:m[0])??null;a.value=_?f(_,u.value):null}catch{a.value=null}},{immediate:!0});const U=y(()=>{const t=C(d.value)??a.value;return t!=null&&t.uuid?f(t,u.value):null});p(U,async e=>{const t=++g;if(!(e!=null&&e.uuid)){r.value=null;return}if(r.value=e,!!S(e))try{const n=await c.getGameInfo(e.uuid);if(t!==g)return;const s=A(n);if(!s)return;const m=f(s,u.value);S(m)||(r.value=m)}catch{}},{immediate:!0});const v=y(()=>{const e=r.value;return e!=null&&e.uuid?{gameData:e,gameCenterRoute:k(e.uuid,e.state,e.ssgtUuid)}:null});return p(v,e=>{var n;const t=(n=e==null?void 0:e.gameData)==null?void 0:n.uuid;t&&o.setGameMetadataByGameUuidsInFeaturedNewsUpcomingGames([t]).catch(()=>{})},{immediate:!0}),{currentGameBox:v}}}),N={key:0,class:"embedded-current-game w-full"};function V(o,c,d,G,u,r){const a=h("single-game-box"),i=h("embedded-section-empty");return o.currentGameBox?(b(),I("div",N,[T(a,{"game-data":o.currentGameBox.gameData,"game-center-route":o.currentGameBox.gameCenterRoute,"custom-fixed-width":"width: 100%;"},null,8,["game-data","game-center-route"])])):(b(),P(i,{key:1}))}const Y=R(M,[["render",V],["__scopeId","data-v-ad585cc5"]]);export{Y 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.