1import{_ as ye}from"./Dm8OMLvm.js";import{_ as xe}from"./BtRmz3nF.js";import{g as X,_ as ve,a as be,f as we}from"./B-d1rciU.js";import{d as se,u as _e,f as d,g as e,F as w,r as C,k as t,h as c,j as _,x as $,l as ke,e as r,t as g,i as E,I as U,z as i,y as $e,_ as oe,D as Le,E as Ne,w as Ce,c as Z}from"./COr6DqSn.js";import{i as S,_ as Se}from"./DFMKhhuA.js";import{_ as ae}from"./DKf46uul.js";import{c as H,a as Te,_ as Ie}from"./CZSSMcg7.js";import{m as ee,_ as Ve,u as Fe,b as qe}from"./B1-B8ksm.js";import{_ as ze}from"./DN3euNfD.js";import{g as O,a as Ae}from"./BSnC_W77.js";import{a as M,f as te}from"./B2wLvTTg.js";import{a as Re}from"./DLsGeBod.js";import{_ as Ee}from"./BAT7cOvO.js";import{_ as Me}from"./k980NgMI.js";import{_ as Ue}from"./DF9Xxrgy.js";import{u as Be}from"./B6GwRlVA.js";const Pe={key:0,class:"mt-2 animate-pulse"},We={class:"overflow-hidden rounded-md border border-secondary-light/60"},je={class:"w-full"},He={class:"bg-row"},Oe={key:1,class:"mt-2 rounded-md border border-secondary-light/60 p-6 text-center text-sm text-secondary-dark"},De={key:2,class:"mt-2 rounded-md border border-secondary-light/60 p-6 text-center text-sm text-secondary-dark"},Ye={key:3,class:"mt-2 flex flex-col gap-y-2 md:mt-6"},Ke={key:0,class:"flex flex-wrap items-center gap-x-4 gap-y-2"},Ge=["aria-label","onClick"],Je={class:"flex flex-col overflow-hidden rounded-md border border-secondary-light/60"},Qe={class:"scroll-hidden relative overflow-x-auto"},Xe={class:"w-full min-w-[700px] border-collapse"},Ze={class:"w-14 bg-body py-3 pl-6 pr-3"},et={class:"sticky left-0 z-10 w-14 bg-body px-3 py-3"},tt={class:"px-3 py-3 text-left text-xs font-bold text-secondary-dark"},st={class:"whitespace-nowrap px-3 py-3 text-right text-xs font-bold text-black_base"},ot={class:"flex items-center justify-end gap-x-2"},at={class:"relative whitespace-nowrap py-3 pl-6 pr-2 align-middle"},nt={class:"text-xs text-secondary-dark"},lt={class:"sticky left-0 z-10 bg-body px-3 py-3 align-middle"},rt={class:"min-w-40 px-3 py-3 align-middle"},it={class:"flex w-full flex-col"},ct={class:"flex items-center gap-x-2"},dt={class:"flex items-center gap-x-1 text-[10px] text-secondary-dark lg:text-xs"},pt={class:"whitespace-nowrap"},mt={class:"whitespace-nowrap"},ut={class:"px-3 py-3 align-middle"},gt={class:"text-xs uppercase text-secondary-dark"},ft={class:"min-w-40 px-3 py-3 align-middle"},ht={class:"whitespace-nowrap px-3 py-3 align-middle"},yt={class:"flex min-w-[4.5rem] flex-col gap-y-1"},xt={class:"block text-right text-xs"},vt={class:"whitespace-nowrap py-3 pl-3 pr-6 align-middle"},bt={class:"flex min-w-[4.5rem] flex-col gap-y-1"},wt={class:"block text-right text-xs"},_t={class:"whitespace-nowrap px-2 py-3"},kt={class:"text-xs text-secondary-dark"},$t={key:0,"aria-hidden":"true"},Lt={colspan:"7",class:"p-0"},Nt={class:"relative h-0"},Ct={class:"pointer-events-auto flex flex-col gap-x-4 gap-y-3 p-4 px-6 md:flex-row md:items-center"},St={class:"flex items-center gap-x-4"},Tt=se({__name:"InfluencersLiveTable",props:{influencers:{},total:{},page:{},pageSize:{},max:{},platform:{},language:{},country:{},channelType:{},pending:{type:Boolean},error:{type:Boolean}},emits:["set-page","clear-filter","reset-filters"],setup(m){const p=m,q=_e("contactModalOpen");function x(){q.value=!0}const V=i(()=>Math.max(1,Math.ceil(p.total/p.pageSize))),f=i(()=>{const o=[];return p.platform&&o.push({key:"platform",label:Re(p.platform)}),p.language&&o.push({key:"language",label:p.language.toUpperCase()}),p.country&&o.push({key:"country",label:H(p.country)}),p.channelType&&o.push({key:"channelType",label:O(p.channelType)}),o}),T=i(()=>p.page>1?p.influencers.slice(0,3):p.influencers),k=$e(null),F=i(()=>k.value?k.value.offsetHeight*3:120);return(o,a)=>{const h=oe,v=Se,z=ae,B=Te,L=Ie,N=Ve,P=ze;return m.pending?(r(),d("div",Pe,[e("div",We,[e("table",je,[e("thead",null,[e("tr",He,[(r(),d(w,null,C(7,s=>e("th",{key:s,class:"px-3 py-3"},[...a[2]||(a[2]=[e("div",{class:"h-3 w-16 rounded bg-secondary-light/40"},null,-1)])])),64))])]),e("tbody",null,[(r(),d(w,null,C(8,s=>e("tr",{key:s,class:"border-b border-dashed border-secondary-light/60 last:border-0"},[a[4]||(a[4]=e("td",{class:"px-3 py-3"}
1,[e("div",{class:"h-3 w-4 rounded bg-secondary-light/30"})],-1)),a[5]||(a[5]=e("td",{class:"px-3 py-3"},[e("div",{class:"h-8 w-8 rounded-full bg-secondary-light/30"})],-1)),a[6]||(a[6]=e("td",{class:"min-w-36 px-3 py-3"},[e("div",{class:"mb-1 h-3 w-32 rounded bg-secondary-light/30"}),e("div",{class:"h-2 w-20 rounded bg-secondary-light/20"})],-1)),(r(),d(w,null,C(4,u=>e("td",{key:u,class:"px-3 py-3 text-right"},[...a[3]||(a[3]=[e("div",{class:"ml-auto h-3 w-12 rounded bg-secondary-light/30"},null,-1)])])),64))])),64))])])])])):m.error?(r(),d("div",Oe," Failed to load live streams. ")):m.influencers.length?(r(),d("div",Ye,[t(f).length?(r(),d("div",Ke,[(r(!0),d(w,null,C(t(f),s=>(r(),d("div",{key:s.key,class:"flex h-7 items-center gap-x-1.5 rounded-full border border-primary bg-primary/10 px-2.5 text-xs text-primary"},[e("span",null,g(s.label),1),e("button",{type:"button",class:"flex items-center text-primary transition-colors hover:text-primary/80","aria-label":`Remove ${s.label} filter`,onClick:u=>o.$emit("clear-filter",s.key)},[c(h,{name:"close",class:"h-2.5 w-2.5","aria-label":""})],8,Ge)]))),128)),e("button",{type:"button",class:"flex items-center gap-x-1 text-xs text-secondary-dark transition-colors hover:text-black_base",onClick:a[0]||(a[0]=s=>o.$emit("reset-filters"))},[c(h,{name:"reload",class:"h-3 w-3","aria-label":""}),a[7]||(a[7]=_(" Reset filters ",-1))])])):$("",!0),e("div",Je,[e("div",Qe,[e("table",Xe,[e("thead",null,[e("tr",null,[e("th",Ze,[c(h,{name:"checklist",class:"mx-auto h-4 w-4 text-secondary-dark","aria-label":"Rank"})]),e("th",et,[c(h,{name:"image-fill",class:"mx-auto h-4 w-4 text-secondary-dark","aria-label":"Avatar"})]),a[9]||(a[9]=e("th",{class:"px-3 py-3 text-left text-xs font-bold text-secondary-dark lg:w-1/5"}," Channel ",-1)),e("th",tt,[c(h,{name:"language-fill",class:"mx-auto h-4 w-4 text-secondary-dark","aria-label":"Language"})]),a[10]||(a[10]=e("th",{class:"px-3 py-3 text-left text-xs font-bold text-secondary-dark lg:w-2/5"}," Stream Status ",-1)),e("th",st,[e("div",ot,[c(h,{name:"chevron-down",class:"h-3 w-3 text-secondary-dark","aria-label":"Sorted by live viewers"}),a[8]||(a[8]=_(" Live Viewers ",-1))])]),a[11]||(a[11]=e("th",{class:"whitespace-nowrap py-3 pl-3 pr-6 text-right text-xs font-bold text-secondary-dark"}," Followers ",-1))])]),e("tbody",null,[(r(!0),d(w,null,C(t(T),(s,u)=>(r(),d("tr",{key:`${s.platform}-${s.channelName}`,class:"border-b border-dashed border-secondary-light/60 last:border-0"},[e("td",at,[a[12]||(a[12]=e("div",{class:"absolute left-0 top-0 flex h-full w-4 items-center justify-center bg-red/10 text-red"},[e("span",{class:"-rotate-90 text-[10px] font-bold"},"LIVE")],-1)),e("span",nt,g(("globalRank"in o?o.globalRank:t(X))(u,{page:m.page,pageSize:m.pageSize})),1)]),e("td",lt,[c(v,{src:s.avatarUrl?s.avatarUrl.replace("300x300","50x50"):null,alt:s.displayName,width:32,height:32,lazy:"","img-class":"rounded-full","wrapper-class":"!w-8 !h-8 rounded-full bg-secondary-light/30","fallback-icon":"user-fill",platform:s.platform},null,8,["src","alt","platform"])]),e("td",rt,[e("div",it,[e("div",ct,[c(z,{to:("influencerUrl"in o?o.influencerUrl:t(S))(s.slug,s.platform),class:"link-transition-black whitespace-nowrap text-xs font-bold lg:text-sm"},{default:E(()=>[_(g(s.displayName),1)]),_:2},1032,["to"]),s.country?(r(),U(B,{key:0,code:s.country,title:("countryName"in o?o.countryName:t(H))(s.country),class:"shrink-0 overflow-hidden rounded-sm"},null,8,["code","title"])):$("",!0),s.channelType?(r(),U(L,{key:1,content:("genderLabel"in o?o.genderLabel:t(O))(s.channelType)},{default:E(()=>[c(h,{name:("genderIcon"in o?o.genderIcon:t(Ae))(s.channelType),class:"!h-3 !w-3 shrink-0 text-secondary","aria-label":("genderLabel"in o?o.genderLabel:t(O))(s.channelType)},null,8,["name","aria-label"])]),_:2},1032,["content"])):$("",!0)]),e("div",dt,[e("span",pt,g(("formatNumber"in o?o.formatNumber:t(M))(s.followers))+" Followers",1),s.country?(r(),d(w,{key:0},[a[13]||(a[13]=e("span",{"aria-hidden":"true"},"â¢",-1)),e("span",mt,g(("countryName"in o?o.countryName:t(H))(s.country)),1)],64)):$("",!0)])])]),e("td",ut,[e("p",gt,g(s.streamLanguage||"â"),1)]),e("td",ft,[c(z,{to:("influencerUrl"in o?o.influencerUrl:t
1(S))(s.slug,s.platform),class:"link-transition-black block max-w-xs truncate text-xs font-bold"},{default:E(()=>[_(g(s.streamStatus||"â"),1)]),_:2},1032,["to"])]),e("td",ht,[e("div",yt,[e("span",xt,g(s.liveViewers?("formatNumber"in o?o.formatNumber:t(M))(s.liveViewers,"full"):"â"),1),c(N,{percentage:m.max.liveViewers?s.liveViewers/m.max.liveViewers*100:0,color:("metricColor"in o?o.metricColor:t(ee))("live_viewers"),"height-class":"h-0.5",position:"right"},null,8,["percentage","color"])])]),e("td",vt,[e("div",bt,[e("span",wt,g(s.followers?("formatNumber"in o?o.formatNumber:t(M))(s.followers,"full"):"â"),1),c(N,{percentage:m.max.followers?s.followers/m.max.followers*100:0,color:("metricColor"in o?o.metricColor:t(ee))("followers"),"height-class":"h-0.5",position:"right"},null,8,["percentage","color"])])])]))),128)),m.page>1?(r(),d(w,{key:0},[(r(),d(w,null,C(3,s=>e("tr",{key:`locked-${s}`,ref_for:!0,ref:s===2?u=>{k.value=u}:void 0,class:"border-b border-dashed border-secondary-light/60 last:border-0"},[e("td",_t,[e("span",kt,g(("globalRank"in o?o.globalRank:t(X))(t(T).length+s-1,{page:m.page,pageSize:m.pageSize})),1)]),a[15]||(a[15]=e("td",{class:"px-3 py-3"},[e("div",{class:"h-8 w-8 rounded-full bg-secondary-light/30"})],-1)),a[16]||(a[16]=e("td",{class:"px-3 py-3"}
1,[e("div",{class:"h-2 w-1/2 rounded bg-secondary-light/30"})],-1)),(r(),d(w,null,C(4,u=>e("td",{key:u,class:"px-3 py-3 text-right"},[...a[14]||(a[14]=[e("div",{class:"ml-auto h-2 w-10 rounded bg-secondary-light/30"},null,-1)])])),64))])),64)),t(k)?(r(),d("tr",$t,[e("td",Lt,[e("div",Nt,[e("div",{class:"absolute left-0 right-0 flex flex-col items-center justify-center gap-x-4 gap-y-2 bg-gradient-to-t from-white from-40% to-transparent p-4 md:flex-row",style:ke({top:`-${t(F)}px`,bottom:0})},[e("div",Ct,[e("div",St,[c(h,{name:"lock-fill",class:"!h-7 !w-7 shrink-0 text-secondary-dark/60","aria-label":"Locked"}),a[17]||(a[17]=e("p",{class:"text-pretty text-xs text-secondary-dark lg:text-sm"},[_(" Delve into the realm of chess influencers and unlock the power of audience statistic. "),e("br"),_(" Discover the secrets to engaging your viewers ")],-1))]),e("button",{type:"button",class:"btn btn-primary !h-8 whitespace-nowrap !rounded-md text-xs",onClick:x}," Contact us ")])],4)])])])):$("",!0)],64)):$("",!0)])])])]),c(P,{page:m.page,"total-pages":t(V),"locked-page-from":3,onSetPage:a[1]||(a[1]=s=>o.$emit("set-page",s))},null,8,["page","total-pages"])])):(r(),d("div",De," No live chess streams right now. "))}}}),It=Object.assign(Tt,{__name:"InfluencersLiveTable"}),Vt={class:"full-bleed influencers-hero -mt-4",style:{background:"#2a2933"}},Ft={class:"mx-auto w-full max-w-screen-2xl px-4 sm:px-6 lg:px-10"},qt={class:"grid gap-x-6 py-8 md:pt-12 lg:grid-cols-2"},zt={class:"mb-6 flex flex-col gap-y-3"},At={key:0,class:"max-w-xl text-sm leading-6 text-white/75"},Rt={class:"mt-8"},Et={class:"grid grid-cols-12 gap-6 md-max:grid-cols-1"},Mt={class:"col-span-9 flex flex-col gap-y-6 md-max:col-span-1"},Ut={class:"col-span-3 flex flex-col gap-y-6 md-max:col-span-1"},Bt={key:1,class:"mt-6 flex animate-pulse flex-col gap-y-2"},D="Top Live Chess Streams Right Now - Live Viewers Ranking â Chess Watch",R="Who is streaming chess right now? Live ranking of chess channels on Twitch, YouTube and Kick by current viewers, updated in real time. Filter by platform, language and country.",os=se({__name:"live",async setup(m){let p,q;const x=Le(),V=Ne(),f=Fe(),T=i(()=>{const l=String(x.query.platform||"");return l==="twitch"||l==="youtube"||l==="kick"?l:""}),k=i(()=>{const l=String(x.query.channelType||"");return l==="male"||l==="female"||l==="organization"?l:""}),F=i(()=>String(x.query.language||"")),o=i(()=>String(x.query.country||"")),a=i(()=>{const l=parseInt(String(x.query.page||"1"),10);return Number.isFinite(l)&&l>=1?l:1}),h=i(()=>({platform:T.value||void 0,channelType:k.value||void 0,language:F.value||void 0,country:o.value||void 0,page:a.value>1?a.value:void 0})),{data:v,pending:z,error:B}=([p,q]=Ce(()=>Be("/api/influencers/live",{query:h,key:"influencers-live"},"$X61VIhwYoV")),p=await p,q(),p),L=i(()=>v.value?.influencers??[]),N=i(()=>v.value?.total??0),P=i(()=>v.value?.pageSize??20),s=i(()=>v.value?.max??{liveViewers:1,followers:1}),u=i(()=>v.value?.options??{languages:[],countries:[]}),I=i(()=>v.value?.leaderboards??null),Y=i(()=>v.value?.latestNews??[]),K=i(()=>{if(!N.value)return"";const l=L.value[0],n=`${N.value} ${N.value===1?"channel is":"channels are"} streaming chess live right now`;return l&&l.liveViewers>0?`${n}, led by ${l.displayName} with ${te(l.liveViewers)} live viewers.`:`${n}.`}),G=i(()=>{const l=L.value.slice(0,5).map(b=>({name:b.displayName,to:S(b.slug,b.platform)})),n=L.value[0],y=I.value?.followers??[],A=y.map(b=>({name:b.displayName,to:S(b.slug,b.platform)}));return[{question:"Who is streaming chess right now?",answer:l.length?"The biggest live chess streams by current viewers are:":"No tracked channel is live in the Chess category at the moment â check back soon or browse the all-time ranking below.",list:l,listType:"ol"},{question:"What is the biggest live chess stream right now?",answer:n&&n.liveViewers>0?`<a class="link-transition-primary" href="${S(n.slug,n.platform)}">${n.displayName}</a> currently leads with ${te(n.liveViewers)} live viewers in the Chess category.`:"No tracked channel is live in the Chess category at the moment."},{question:"How often is this live ranking updated?",answer:"Chess Watch scans live chess broadcasts on Twitch, YouTube and Kick continuously â a channel appears here within minutes of going live in the Chess category, and viewer counts reflect the latest scan."},{question:"Who is the most followed chess streamer?",answer:y[0]?`<a class="link-transition-primary" href="${S(y[0].slug,y[0].platform)}">${y[0].displayName}</a> is the most followed chess streamer with ${M(y[0].followers,"full")} followers.`:"Check out the leaderboard on this page for the most popular chess streamers."},{question:"Who are the top chess streamers of all time?",answer:A.length?"The top 5 chess streamers by followers are:":"See the leaderboards on this page for the most popular chess channels.",list:A,listType:"ol"}]});function W(l,n){V.push({path:"/influencers/live",query:{...x.query,[l]:n||void 0,page:void 0}})}function ne(l){V.push({path:"/influencers/live",query:{...x.query,page:l>1?l:void 0}})}function le(){V.push({path:"/influencers/live"})}const j=i(()=>`${f}/influencers/live`),re=i(()=>JSON.stringify({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:[{"@type":"ListItem",position:1,name:"Home",item:f},{"@type":"ListItem",position:2,name:"Chess Influencers",item:`${f}/influencers`}
1,{"@type":"ListItem",position:3,name:"LIVE streams",item:`${f}/influencers/live`}]})),ie=i(()=>{const l=L.value.slice(0,10).map((n,y)=>({"@type":"ListItem",position:y+1,url:`${f}${S(n.slug,n.platform)}`,name:n.displayName}));return JSON.stringify({"@context":"https://schema.org","@type":"CollectionPage",name:"Live Chess Streams",description:R,url:j.value,mainEntity:{"@type":"ItemList",itemListElement:l}})}),J=i(()=>we(G.value));return Z(()=>({title:D,link:[{rel:"canonical",href:j.value}],script:[{type:"application/ld+json",innerHTML:re.value},{type:"application/ld+json",innerHTML:ie.value},...J.value?[{type:"application/ld+json",innerHTML:J.value}]:[]]})),Z({meta:[{name:"description",content:R},{property:"og:title",content:D},{property:"og:description",content:R},{property:"og:image",content:`${f}/images/meta/ChessWatch_Main_OG.webp`},{property:"og:type",content:"website"},{property:"og:url",content:j},{property:"og:site_name",content:"Chess Watch"},{name:"twitter:card",content:"summary_large_image"},{name:"twitter:title",content:D},{name:"twitter:description",content:R},{name:"twitter:image",content:`${f}/images/meta/ChessWatch_Main_OG.webp`},{name:"robots",content:"index,follow"}]}),(l,n)=>{const y=ye,A=xe,b=ve,ce=It,de=qe,pe=oe,me=ae,ue=be,ge=Ee,fe=Me,he=Ue;return r(),d("div",null,[e("section",Vt,[e("div",Ft,[c(y),n[4]||(n[4]=e("div",{class:"border-t border-white/15"},null,-1)),e("div",qt,[c(A,{class:"mb-3 lg:col-span-2 lg:mb-2",theme:"dark",items:[{label:"Home",to:"/"},{label:"Chess Influencers",to:"/influencers"},{label:"LIVE streams"}]}),e("div",zt,[n[2]||(n[2]=e("h1",{class:"hero-title text-pretty !text-white"},[_(" Top live chess "),e("br"),_(" streams right now ")],-1)),t(K)?(r(),d("p",At,g(t(K)),1)):$("",!0)]),n[3]||(n[3]=e("div",{class:"grid place-content-center text-white/70"},[e("p",{class:"text-balance text-xs"}," Every channel currently live in the Chess category on Twitch, YouTube and Kick, ranked by live viewers and updated in real time. Filter by platform, language, country or channel type, and open any streamer for their full viewership profile. ")],-1))])])]),e("div",Rt,[e("div",Et,[e("div",Mt,[e("div",null,[c(b,{"active-platform":t(T),"active-language":t(F),"active-country":t(o),"active-channel-type":t(k),"active-order":"live_viewers","active-times":"7-days",languages:t(u).languages,countries:t(u).countries,"hide-times":"",onFilter:W,onClearPlatform:n[0]||(n[0]=Q=>W("platform",""))},null,8,["active-platform","active-language","active-country","active-channel-type","languages","countries"]),c(ce,{influencers:t(L),total:t(N),page:t(a),"page-size":t(P),max:t(s),platform:t(T),language:t(F),country:t(o),"channel-type":t(k),pending:t(z),error:!!t(B),onSetPage:ne,onClearFilter:n[1]||(n[1]=Q=>W(Q,"")),onResetFilters:le},null,8,["influencers","total","page","page-size","max","platform","language","country","channel-type","pending","error"])]),n[5]||(n[5]=e("div",{class:"h-px bg-secondary-light/60"},null,-1)),c(de,{title:"Chess LIVE streams FAQ",items:t(G)},null,8,["items"])]),e("div",Ut,[c(me,{to:"/influencers",class:"btn btn-card flex !h-8 !w-full items-center justify-center gap-x-2 !rounded-md !text-sm"},{default:E(()=>[n[6]||(n[6]=_(" All chess streamers ",-1)),c(pe,{name:"arrow-right",class:"h-4 w-4 shrink-0","aria-label":""})]),_:1}),t(I)?(r(),U(ue,{key:0,followers:t(I).followers,"peak-viewers":t(I).peakViewers,"max-followers":t(I).maxFollowers,"max-peak-viewers":t(I).maxPeakViewers},null,8,["followers","peak-viewers","max-followers","max-peak-viewers"])):(r(),d("div",Bt,[...n[7]||(n[7]=[e("div",{class:"h-4 w-28 rounded bg-secondary-light/40"},null,-1),e("div",{class:"h-48 rounded-md bg-secondary-light/20"},null,-1)])])),c(ge),t(Y).length?(r(),U(fe,{key:2,icon:"news-fill",title:"Latest chess news",articles:t(Y),"top-link":{to:"/news",label:"All news"}},null,8,["articles"])):$("",!0)])])]),c(he)])}}});export{os 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.