PageSourceSearch

https://evo.gg/_nuxt/Bp6F0ZH7.js

js evo.gg collected 2026-10-02 05:48:40 UTC 7,598 bytes, 1 lines download raw bytes

1import tt from"./CPn2lwhw.js";import{u as et,r as y,l as J,s as nt,e as r,f as S,g as n,t as p,i as l,F as w,x as k,U as O,c as D,o as s,n as z,w as st,h as K,y as ot,z as rt}from"./BHOOuIbO.js";import lt from"./YTQJrTFb.js";import at from"./1ukYVYAn.js";import it from"./DdURNF4Q.js";import{D as C,I as ct}from"./J8TyNYb6.js";import{u as ut}from"./CirrsPEC.js";import"./JKvyS0Pp.js";const dt=["textContent"],ft={key:1,class:"info-12 lg:info overflow-hidden rounded-2xl border border-mauve"},mt={class:"flex divide-x divide-mauve border-b border-mauve"},ht=["onClick"],pt=["textContent"],xt={class:""},gt={class:"flex flex-col border-r border-mauve"},vt={class:"grid grow auto-rows-fr grid-cols-1"},_t={class:"block h-[127px]"},bt=["textContent"],yt={class:"absolute inset-0 flex items-center justify-center"},wt={class:"flex w-full flex-col"},kt={class:"grid auto-cols-fr grid-flow-col"},Ct=["textContent"],St={class:"grow"},zt=["href"],Et={class:"relative flex w-full grow items-center justify-center"},It=["src"],jt=["textContent"],$t={key:1,class:"flex size-full items-center justify-center rounded-lg bg-cerulean text-center text-white vertical-rl"},Ot=["textContent"],Dt=["textContent"],Rt={class:"mt-16 flex flex-wrap gap-8 lg:gap-16 lg-max:justify-center"},Nt=["onClick"],Vt={class:"mt-32"},qt={__name:"Schedule",props:{section:{type:Object,default:()=>{}}},setup(x){const{$Draggable:P}=et(),Q=x,R=y(0),v=y([]),N=y([]),h=y([]),G=y(null),L=y(null),W=e=>e?(e=e==null?void 0:e.toLowerCase().replace(/ /g,""),e==="special"?"bg-blue text-white":e==="top24"?"bg-lightblue":e.includes("top")?"bg-midnight text-white":e.includes("pool")?"bg-lochmara text-white":"bg-cerulean"):"bg-cerulean",X=e=>{h.value.includes(e)?h.value=h.value.filter(i=>i!==e):h.value.push(e),M(),U()},Y=e=>e.includes("twitch.tv")?{title:e.replace("https://www.twitch.tv/","").replace("https://twitch.tv/","").replace("@",""),icon:"fa7-brands:twitch"}:e.includes("youtube.com")?{title:e.replace("https://www.youtube.com/","").replace("https://youtube.com/","").replace("channel/","").replace("user/",""),icon:"ri:youtube-fill"}:{title:e.replace("https://","").replace("http://","").replace("www.",""),icon:"ri:link-m"},Z=()=>{v.value=[],ut(Q.section.days).forEach(e=>{const i=[],a=e.cells.sort((t,o)=>{const d=C.fromISO(t.start,{zone:"utc"}),c=C.fromISO(o.start,{zone:"utc"});return d-c});a.forEach((t,o)=>{const d=t.channel;if(i.find(c=>c.link===d))i.find(b=>b.link===d).cells.push(t);else{const c=Y(d);i.push({title:c.title,icon:c.icon,link:d,cells:[t]})}});const u=C.fromISO(a[0].start,{zone:"utc"}),m=C.fromISO(a[a.length-1].end,{zone:"utc"}),_=ct.fromDateTimes(u.startOf("hour"),m.minute!==0?m.endOf("hour"):m.startOf("hour")).splitBy({hours:1}).map(t=>t.start.toFormat("hh:mm a")),g=i.sort((t,o)=>t.title<o.title?-1:t.title>o.title?1:0);v.value.push({heading:e.heading,title:e.title,channels:g,start:u,end:m,offset:u.minute!==0?u.minute:0,hours:_})})},M=()=>{v.value.forEach(e=>{const i=[];let a=0;e.channels.forEach(u=>{const m=e.start,_=e.offset;let g=1;a+=1,u.cells.forEach((t,o)=>{let d=a;const c=C.fromISO(t.start,{zone:"utc"}),b=C.fromISO(t.end,{zone:"utc"}),E=t.game.split("|")[0],V=t.game.split("|")[1];if(c<b){const I=c.diff(m).as("minutes")+1+_,j=b.diff(m).as("minutes")+1+_;!N.value.includes(E)&&V!==void 0&&N.value.push(E);const $=i.filter(B=>{var q,H;if(B.channel===t.channel){const F=(q=B.pos)==null?void 0:q.gridColumnStart,T=(H=B.pos)==null?void 0:H.gridColumnEnd;if(I>=F&&I<T||j>F&&j<=T||I<=F&&j>=T)return!0}return!1});$.length&&a<=$.length+1&&(d=$.length+1+a,g=$.length+1),i.push({channel:t.channel,game:E,round:t.round,small:c.plus({hours:1})>b||!V,style:W(t.round),time:`${c.toFormat("hh:mm a")} - ${b.toFormat("hh:mm a")}`,link:t.channel,avatar:V,pos:{gridRowStart:d,gridColumnStart:I,gridColumnEnd:j},hidden:!h.value.includes(E)&&h.value.length>0}),o===u.cells.length-1&&(a+=g,u.rowCount=g)}})}),e.cells=i,e.rowCount=a})},f=J(()=>v.value[R.value]),A=J(()=>Math.ceil(f.value.end.diff(f.value.start).as("hours")));Z(),M();const U=()=>{P.create(L.value,{type:"x",bounds:G.value,inertia:!0})};return nt(()=>{U()}),(e,i)=>{const a=tt,u=rt,m=lt,_=at,g=it;return s(),r("div",null,[x.section.timezone?(s(),r("p",{key:0,class:"info-12 my-16 text-right",textContent:p(x.section.timezone)},null,8,dt)):S("",!0),l(v).length?(s(),r("div",ft,[n("div",mt,[(s(!0),r(w,null,k(l(v),
1(t,o)=>(s(),r("div",{key:o,class:z(["flex grow items-center justify-center p-16 text-center uppercase duration-300",{"bg-black/10":l(R)===o}]),onClick:d=>R.value=o},[n("p",{textContent:p(t.heading?t.heading:t.title)},null,8,pt)],10,ht))),128))]),n("div",xt,[n("div",{ref_key:"wrapperRef",ref:G,class:"scrollbar w-full"},[n("div",{ref_key:"dragRef",ref:L,class:"flex w-full min-w-[900px] text-center"},[n("div",gt,[i[0]||(i[0]=n("div",{class:"flex h-40 items-center justify-center border-b border-mauve p-16"},[n("p",{class:"text-[8px] lg:text-[12px]"},"TIME")],-1)),n("div",vt,[(s(!0),r(w,null,k(l(f).channels,(t,o)=>(s(),D(u,{key:o,to:t.link,target:"_blank",class:"relative flex items-center justify-center border-b border-mauve duration-300 hover:bg-navy/10",style:O(`grid-row-end: span ${t.rowCount}`)},{default:st(()=>[n("span",_t,[n("p",{class:"h-full text-center text-[10px] vertical-rl",textContent:p(t.title)},null,8,bt)]),n("span",yt,[K(a,{name:t.icon,class:"text-[42px] text-mauve/50"},null,8,["name"])])]),_:2},1032,["to","style"]))),128))])]),n("div",wt,[n("div",kt,[(s(!0),r(w,null,k(l(f).hours,(t,o)=>(s(),r("div",{key:o,class:z(["col-span-1 flex h-40 items-center justify-center border-b border-r border-mauve p-16 last:border-r-0",`col-start-[${o+1}]`])},[n("p",{class:"text-[8px] lg:text-[12px]",textContent:p(t)},null,8,Ct)],2))),128))]),n("div",St,[n("div",{class:"relative grid auto-cols-fr grid-flow-col",style:O(`grid-template-columns: repeat(${l(A)*60}, minmax(0, 1fr))`)},[n("div",{class:"absolute grid size-full",style:O(`grid-template-columns: repeat(${l(A)}, minmax(0, 1fr))`)},[(s(!0),r(w,null,k(l(f).hours.length*(l(f).channels.length+1*l(f).rowCount),t=>(s(),r("div",{key:t,class:z(["h-128 border-b border-r border-mauve last:border-b-0 last:border-r-0",{"border-r-0":t%l(f).hours.length===0}])},null,2))),128))],4),(s(!0),r(w,null,k(l(f).cells,(t,o)=>(s(),r("div",{key:o,class:z(["relative h-128 p-4 text-center",t.hidden?"opacity-0":"opacity-100 duration-300 hover:opacity-90"]),style:O(t.pos)},[t.small?(s(),r("div",$t,[n("p",{class:"text-[8px] lg:text-[10px]",textContent:p(t.game)},null,8,Ot)])):(s(),r("div",{key:0,class:z(["flex size-full flex-col items-center justify-center rounded-lg p-8",t.style])},[t.avatar?(s(),r("a",{key:0,class:"w-full",href:t.link,target:"_blank"},[K(a,{name:"fa7-brands:twitch",class:"ml-auto block text-[16px]"})],8,zt)):S("",!0),n("div",Et,[n("img",{src:t.avatar,class:"relative size-full max-h-64 max-w-256 object-contain"},null,8,It)]),n("p",{class:"text-[8px] lg:text-[12px]",textContent:p(t.round)},null,8,jt)],2))],6))),128))],4)])])],512)],512)])])):S("",!0),x.section.timezone?(s(),r("p",{key:2,class:"info-12 my-16 text-left",textContent:p(x.section.timezone)},null,8,Dt)):S("",!0),n("div",Rt,[(s(!0),r(w,null,k(l(N),t=>(s(),r("button",{key:t,class:"info-12 flex items-center gap-4 roun
1ded-lg border border-mauve px-6 py-4 lg:gap-16 lg:py-4 lg:pl-16 lg:pr-24",onClick:o=>X(t)},[n("span",null,[l(h).includes(t)||l(h).length===0?(s(),D(m,{key:0})):(s(),D(_,{key:1}))]),ot(" "+p(t),1)],8,Nt))),128))]),n("div",Vt,[x.section.body?(s(),D(g,{key:0,class:"text-center !text-black",content:x.section.body},null,8,["content"])):S("",!0)])])}}};export{qt 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.