1import{_ as b,i as v,a as p}from"./DFMKhhuA.js";import{d as k,w as y,k as s,e as i,f as h,g as t,F as N,r as L,I as V,i as c,h as a,t as m,_ as A,n as B,j as _,x as C,z as D}from"./COr6DqSn.js";import{_ as z}from"./DKf46uul.js";import{u as I}from"./B6GwRlVA.js";const U={key:0,class:"flex items-center"},j={class:"flex shrink-0 items-center pr-4 lg:pr-10"},E=["innerHTML"],F={class:"scroll-hidden flex flex-grow items-center overflow-x-auto border-x border-white/30 md-max:border-r-0"},H={class:"flex flex-col leading-tight"},S={class:"whitespace-nowrap font-bold text-white md:text-sm"},T={class:"whitespace-nowrap text-white/60"},M={class:"ml-auto rounded-md bg-white/10 p-2 transition-colors group-hover:bg-white/20"},O=k({__name:"LiveStreamsBar",props:{title:{default:"LIVE chess <br class='md:hidden'> streams"}},async setup(x){let o,d;const{data:w}=([o,d]=y(()=>I("/api/news/live-streams","$zdREKooOHJ")),o=await o,d(),o),r=D(()=>(w.value??[]).slice(0,4));return($,n)=>{const f=b,u=A,l=z;return s(r).length?(i(),h("div",U,[t("div",j,[t("p",{class:"whitespace-nowrap text-xs font-bold text-white lg:text-base",innerHTML:x.title},null,8,E)]),t("div",F,[(i(!0),h(N,null,L(s(r),(e,g)=>(i(),V(l,{key:e.channelName,to:s(v)(e.channelName,e.platform),title:e.channelDisplayName,class:B(["link-transition-white group flex shrink-0 items-center gap-x-3 px-4 py-3 text-xs",g<s(r).length-1?"border-r border-white/30":""])},{default:c(()=>[a(f,{src:e.avatarUrl,alt:e.channelDisplayName,width:32,height:32,"fallback-text":e.channelDisplayName.charAt(0).toUpperCase(),platform:e.platform,"platform-icon-size":24,"platform-outline":"outline-secondary","img-class":"object-cover w-8 h-8 rounded-full","wrapper-class":"w-8 h-8 rounded-full shrink-0"},null,8,["src","alt","fallback-text","platform"]),t("div",H,[t("span",S,m(e.channelDisplayName),1),t("span",T,"Viewers: "+m(e.liveViewers),1)]),t("div",M,[a(u,{name:"arrow-right",class:"text-white"})])]),_:2},1032,["to","title","class"]))),128)),a(l,{to:s(p)(),class:"flex h-9 shrink-0 items-center whitespace-nowrap rounded-xl bg-white/10 px-4 text-sm font-bold text-white transition-colors hover:bg-white/20 md:hidden"},{default:c(()=>[...n[0]||(n[0]=[_(" All streams ",-1)])]),_:1},8,["to"])]),a(l,{to:s(p)(),class:"ml-6 flex h-9 shrink-0 items-center whitespace-nowrap rounded-xl bg-white/10 px-4 text-sm font-bold text-white transition-colors hover:bg-white/20 sm-max:hidden"},{default:c(()=>[...n[1]||(n[1]=[_(" All streams ",-1)])]),_:1},8,["to"])])):C("",!0)}}}),G=Object.assign(O,{__name:"LiveStreamsBar"});export{G as _};
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.