1import{u as k,b,a as L,cO as U,d as D,en as S,eM as $,bT as B,bS as E}from"./common.BSR0NvxZ.js";import{I,O as u,aa as o,M as a,aJ as n,aE as f,ab as t,$ as s,aL as m,aK as c,aD as _}from"./vendor.C61Te74E.js";const A={class:"flex h-full min-h-[100vh] w-full flex-col overflow-auto"},N={class:"flex flex-grow flex-col"},P={key:0},C={class:"flex flex-col px-4 py-8"},j={class:"relative"},F=["src"],V={key:0,class:"absolute left-0 top-0 flex h-full w-full items-center justify-center"},O=["src","alt"],G={class:"w-full py-3"},M={class:"text-xl font-medium text-primary"},R=["href"],z={class:"align-center my-10 flex justify-center gap-4"},J={class:"mt-auto bg-footer py-1 text-center text-xs text-secondary"},Y=I({__name:"index",props:{isFetching:{type:Boolean},news:{},thumbnailUrl:{},newsDetailURL:{},googlePlayUrl:{},appStoreUrl:{},onLoadImgError:{type:Function}},setup(r){const{isIos:i}=k(),{brandDisplayName:h}=b(),{$tr:w}=L(),y=u(()=>r.news.source==="video"),g=u(()=>i?r.appStoreUrl:r.googlePlayUrl);return(e,l)=>{const v=U,d=D,x=B;return o(),a("div",A,[n(d,{to:"/",class:"z-30 flex h-m-header-h flex-shrink-0 items-center justify-center bg-header"},{default:f(()=>[n(v,{"with-link":!1,class:"ml-[4px] w-[142px]",type:"white"})]),_:1}),t("div",N,[e.isFetching?m("",!0):(o(),a("div",P,[t("div",C,[n(d,{to:e.newsDetailURL},{default:f(()=>[t("div",j,[(o(),a("img",{key:e.news.id,src:e.thumbnailUrl,class:"aspect-[16/9] w-full bg-type1 object-cover",alt:"article-image",onError:l[0]||(l[0]=(...p)=>e.onLoadImgError&&e.onLoadImgError(...p))},null,40,F)),s(y)?(o(),a("div",V,[t("img",{src:s(S),class:"inset-0 m-auto h-12 w-12",alt:s(w)("play_video","Play video")},null,8,O)])):m("",!0)]),t("div",G,[t("h2",M,c(e.news.headline),1),n($,{data:e.news,class:"mt-4","show-sport":!1},null,8,["data"])])]),_:1},8,["to"]),t("div",null,[t("a",{href:s(g),target:"_blank",class:"mt-4 inline-block w-full rounded-sm bg-button-active px-4 py-4 text-center font-[500] text-absolute-light",onClick:l[1]||(l[1]=p=>e.$trackEvent("App_Download_Link_Clicked",{app_type:s(i)?"iOS":"Android"}))}," Get "+c(s(h))+" APP ",9,R)]),t("div",z,[s(i)?(o(),_(x,{key:0,class:"!w-[25vw]","store-url":e.appStoreUrl,"show-version":""},null,8,["store-url"])):(o(),_(E,{key:1,class:"!w-[25vw]","store-url":e.googlePlayUrl,"show-version":""},null,8,["store-url"]))])])]))]),t("p",J," © "+c(new Date().getFullYear())+" Sporty Group ",1)])}}});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.