1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./common.BSR0NvxZ.js","./vendor.C61Te74E.js","./common.BJY3lnRD.css","./page-article-details-mobile.RnnjJLyN.css","./page-article-details-desktop.DZzpxgsc.css"])))=>i.map(i=>d[i]); 2import{bm as P,aa as d,M as u,b0 as I,ab as s,aI as h,aO as _,ac as U,b5 as R,bj as V,O as n,aZ as F,J as B,V as J,Y as q,I as C,aJ as G,$ as c,_ as L}from"./vendor.C61Te74E.js";import{a as S,bx as O,aM as $,b as W,b9 as Y,c9 as N,bb as Z,ca as K,b7 as Q,b8 as X,aN as ee,u as te,bD as ae}from"./common.BSR0NvxZ.js";const se={},le={class:"space-y-10"},oe={class:"flex w-full flex-col space-y-3 px-4"};function re(r,e){return d(),u("div",le,[e[1]||(e[1]=I('<div class="flex w-full flex-col space-y-3"><div class="skeleton-loader aspect-[16/9] w-full"></div><div class="px-4"><div class="skeleton-loader h-6 w-full"></div><div class="skeleton-loader mb-4 mt-3 h-6 w-2/3"></div><div class="skeleton-loader mt-4 h-6 w-1/3"></div></div></div>',1)),s("div",oe,[(d(),u(h,null,_([1,2,3],a=>s("div",{key:a,class:"flex w-full flex-row space-x-4"},e[0]||(e[0]=[s("div",{class:"skeleton-loader h-6 w-full"},null,-1)]))),64))]),e[2]||(e[2]=s("div",{class:"flex w-full flex-col space-y-6 px-4"},[s("div",{class:"skeleton-loader aspect-[16/9] w-full"})],-1))])}const T=P(se,[["render",re]]),he=Object.freeze(Object.defineProperty({__proto__:null,default:T},Symbol.toStringTag,{value:"Module"})),ie={},ne={class:"page-content max-w-[960px] space-y-12 px-4"},ce={class:"flex w-full flex-col gap-3"},de={class:"flex grow flex-col space-y-5 pb-24"};function ue(r,e){return d(),u("div",ne,[e[2]||(e[2]=I('<div class="flex flex-row gap-8"><div class="flex w-full flex-col gap-2"><div class="skeleton-loader aspect-[16/9] w-full"></div><div class="skeleton-loader h-8 w-full"></div><div class="skeleton-loader h-8 w-full"></div><div class="skeleton-loader h-6 w-1/4"></div></div></div>',1)),s("div",ce,[(d(),u(h,null,_([1,2,3],a=>s("div",{key:a,class:"skeleton-loader h-6 w-full"})),64)),e[0]||(e[0]=s("div",{class:"skeleton-loader h-6 w-1/4"},null,-1))]),s("div",de,[(d(),u(h,null,_([1,2,3],a=>s("div",{key:a,class:"flex w-full flex-row space-x-7"},e[1]||(e[1]=[s("div",{class:"skeleton-loader h-[150px] w-[240px]"},null,-1),s("div",{class:"flex grow flex-col space-y-2"},[s("div",{class:"skeleton-loader h-6 w-full"}),s("div",{class:"skeleton-loader h-6 w-full"})],-1)]))),64))])])}const j=P(ie,[["render",ue]]),_e=Object.freeze(Object.defineProperty({__proto__:null,default:j},Symbol.toStringTag,{value:"Module"})),pe=U("articleDetailsPage",{state:()=>({articleDetails:{data:null,loading:!1,error:null}}),actions:{async fetchArticleDetails(r){const{$apiFetch:e}=S(),a=$();this.articleDetails.loading=!0;try{const l=await e("/v1/news/article",{method:"GET",params:{refId:r},baseURL:a.public.sportyMediaApiHost});return l.data?this.articleDetails.data=O([l.data])[0]:this.articleDetails.data=null,this.articleDetails}catch(l){throw this.articleDetails.error=l.message,l}finally{this.articleDetails.loading=!1}},async postViewRequest(r){const{$apiFetch:e}=S(),a=$();await e("v1/news/interact/view",{method:"POST",body:{refId:r,type:"article"},baseURL:a.public.sportyMediaApiHost})}}});function fe(r){const e=pe(),a=R(),{feBaseUrl:l,brandDisplayName:p}=W(),{locale:m}=V(),v=p,f=n(()=>String(a.params.id)),w=async()=>(e.$reset(),await e.fetchArticleDetails(f.value)),{isFetching:b}=Y("article-details-page",w,{fetchOnLogin:!0}),t=n(()=>e.articleDetails.data||{}),E=n(()=>O(t.value.related||[])),A=n(()=>t.value?t.value.tags?[...t.value.tags.team,...t.value.tags.league]||[]:[]:[]),y=n(()=>{const i=r?"medium":"large",o=r?"xl":"2xl";return Z(t.value,i,o)||N}),x=n(()=>F.sanitize(t.value.body)),M=n(()=>{if(!t.value?.id)return{};const i=`${p} | ${t.value.headline}`,o=`${l}${a.path}`,g=y.value||"",D=K({article:t.value,canonicalUrl:o,imageUrl:g||void 0,publisherName:p,publisherLogoUrl:`${l}/icon.webp`}),z=Q({canonicalUrl:o,feBaseUrl:l,pageName:i,pageDescription:t.value.teaser,siteName:v,inLanguage:m.value,primaryEntity:D?{data:D,kind:"article"}:void 0}),H=[{src:"https://platform.twitter.com/widgets.js",async:!0},{src:"https://www.instagram.com/embed.js",async:!0},{key:"article-news-jsonld",type:"application/ld+json",innerHTML:X(z)}];return{title:i,link:[{rel:"canonical",href:o},...g?[{key:"article-hero-lcp",rel:"preload",as:"image",href:g,fetchpriority:"high"}]:[]],meta:[{name:"description",content:t.value.teaser},{property:"og:title",content:i},{property:"og:description",content:t.value.teaser},{property:"og:image",content:g},{property:"og:url",content:o}],script:H}});ee(M);const k=async()=>{await q(),setTimeout(()=>{window.twttr&&window.twttr.widgets.load(),window.instgrm&&window.instgrm.Embeds.process()},100)};return B(async()=>{await k(),e.postViewRequest(f.value)}),J(x,async()=>{await k()}),{isFetching:b,article:t,thumbnailUrl:y,sanitizedHtml:x,relatedNews:E,tagsData:A,onLoadImgError:i=>{const o=i.target;o.dataset.errorHandled||(o.dataset.errorHandled="true",o.src=N)}}}const ge=C({__name:"index",setup(r){const{isMobile:e}=te(),{isFetching:a,article:l,thumbnailUrl:p,onLoadImgError:m,sanitizedHtml:v,relatedNews:f,tagsData:w}=fe(e);return(b,t)=>(d(),u("div",null,[G(ae,{mobile:()=>L(()=>import("./page-article-details-mobile.C0Lks55M.js"),__vite__mapDeps([0,1,2,3]),import.meta.url),desktop:()=>L(()=>import("./page-article-details-desktop.B3j23ow8.js"),__vite__mapDeps([0,1,2,4]),import.meta.url),"mobile-skeleton":T,"desktop-skeleton":j,"page-props":{isFetching:c(a),article:c(l),thumbnailUrl:c(p),onLoadImgError:c(m),sanitizedHtml:c(v),relatedNews:c(f),tagsData:c(w)}},null,8,["page-props"])]))}}),be=Object.freeze(Object.defineProperty({__proto__:null,default:ge},Symbol.toStringTag,{value:"Module"}));
2export{T as S,j as a,_e as b,be as i,he as s};
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.