1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[787],{5787:(e,t,l)=>{l.r(t),l.d(t,{default:()=>p});var a=l(7876),s=l(9947),r=l(5307),n=l(4232),i=l(4587),o=l.n(i);let x=e=>{let{program:t,programs:l}=e,[s,i]=(0,n.useState)(new Date);(0,n.useEffect)(()=>{let e=setInterval(()=>{i(new Date)},1e3);return()=>clearInterval(e)},[]);let{beforeTime:o,afterTime:x}=((e,t)=>{let l=t.getHours(),a=t.getMinutes(),s=e.map(e=>{let{hours:t,minutes:l}=(0,r.c8)(e.time);return{program:e,hours:t,minutes:l}});s.sort((e,t)=>e.hours===t.hours?e.minutes-t.minutes:e.hours-t.hours);let n=null,i=null;for(let e=0;e<s.length;e++){let{hours:t,minutes:r}=s[e],o=60*t+r,x=60*l+a;o<=x?n=s[e]:o>x&&!i&&(i=s[e])}return{beforeTime:n,afterTime:i}})(l,s),p=()=>{let e;if(!o)return!1;let{hours:l,minutes:a}=(0,r.c8)(t.time),s=60*o.hours+o.minutes;e=x?60*x.hours+x.minutes:1439;let n=60*l+a;return n===s&&n<=e};return(0,a.jsx)("div",{className:"relative flex w-full items-start space-x-5 md:max-w-[500px]",children:(0,a.jsxs)("div",{className:"flex gap-[20px]",children:[(0,a.jsx)("span",{className:"flex tracking-[-0.02em] justify-end min-w-[65px] text-[15px] leading-[100%] font-black ".concat(p()?"text-yellow-main":""),children:new Date("1970-01-01T".concat(t.time)).toLocaleTimeString([],{hour:"numeric",minute:"2-digit",hour12:!0})}),(0,a.jsxs)("div",{children:[(0,a.jsx)("p",{className:"text-light-main text-[15px] leading-[100%] font-bold ".concat(p()?"text-yellow-main":""),children:t.title}),(0,a.jsxs)("div",{className:"flex items-center ".concat(t.subtitle?"space-x-3":""),children:[(0,a.jsx)("p",{className:"text-light-main font-normal text-[15px] ".concat(p()?"text-yellow-main":""),children:t.subtitle}),t.live&&(0,a.jsx)("span",{className:"bg-red-main rounded-md my-1 px-[5px] py-[2px] text-[12px] font-black text-white",children:"LIVE"})]})]})]})})},p=e=>{var t;let{programData:l}=e,i=(0,r.al)(),[p,d]=(0,n.useState)(!1);if(!l)return(0,a.jsx)("div",{children:"No data found."});let c=l.component,m=l.fileName||"no image",u=new Date().toISOString().split("T")[0],g=l.schedule.find(e=>e.date===u);null==g||g.programs.sort((e,t)=>{let l=e.time.split(":").map(Number),a=t.time.split(":").map(Number);return l[0]!==a[0]?l[0]-a[0]:l[1]-a[1]});let h=3-((null==l||null==(t=l.focusArea)?void 0:t.zoom)||100)/100*2,f=m.replace(/[^a-zA-Z0-9\-.,]/g,""),v=i?"mobile/".concat(f,"_390"):"desktop/".concat(f,"_1080");return(0,a.jsx)(a.Fragment,{children:g?(0,a.jsxs)("section",{"data-testid":"oneSportChannel",className:"lg:px-[40px] pt-[20px] pb-[40px] min-h-[634px]",children:[(0,a.jsx)("p",{className:"px-[10px] text-[26px] leading-[100%] font-black tracking-[-0.02em] uppercase lg:px-[15px] lg:text-[46px]",children:"One Sports Channel"}),(0,a.jsxs)("section",{className:"mt-[10px] relative mx-2.5 rounded-[16px] lg:mb-0 lg:mx-[0px] lg:h-[530px] lg:w-[1107px]",children:[(0,a.jsx)("div",{className:"bg-blue-main absolute top-0 lg:-right-0 -right-3 h-[70%] md:h-[440px] w-[300px] rounded-[14px]"}),(0,a.jsx)("div",{className:"bg-yellow-main absolute -bottom-3 lg:-bottom-0 lg:-left-0 -left-3 h-[100px] w-[345px] rounded-[14px]"}),(0,a.jsxs)("div",{className:"absolute overflow-hidden inset-0 z-10 rounded-[12px] bg-cover bg-center top-[10px] lg:left-[12px] lg:top-[15px] lg:h-[500px] lg:w-[1080px]",children:[(0,a.jsx)(o(),{src:p?(0,s.pA)("".concat(v,".png")):(0,s.pA)("".concat(v,".webp")),className:"h-full w-auto max-w-none md:h-auto md:w-full",onError:()=>d(!0),priority:!0,alt:m,width:1080,height:500,style:{transform:"scale(".concat(h,")")}}),(0,a.jsx)("div",{className:"absolute inset-0 rounded-[14px]",style:{backgroundColor:"rgba(0, 0, 0, 0.6)"}})]}),(0,a.jsx)("div",{className:"relative z-10 h-full w-full lg:left-[12px] lg:top-[15px] lg:h-[500px] lg:w-[1080px]",children:(0,a.jsxs)("div",{className:"grid h-full w-full grid-cols-1 text-white md:grid-cols-2 dark:text-white",children:[(0,a.jsxs)("div",{className:"flex flex-col items-end p-5 lg:p-0 md:order-2 md:items-end lg:relative lg:top-[30px] lg:right-[30px]",children:[(0,a.jsx)("p",{className:"text-yellow-main text-[28px] leading-[100%] font-bold",children:null==g?void 0:g.dayOfWeek.toUpperCase()}),(0,a.jsx)("p",{className:"text-light-main text-[44px] leading-[100%] font-bold uppercase",children:(0,r.iS)(null==g?void 0:g.date.toUpperCase())})]}),(0,a.jsx)("div",{className:"scrollbar row-span-1 space-y-1 md:row-span-2 md:relative md:top-[50px] h-[400px] md:max-h-[75%] overflow-y-auto md:overflow-y-hidden md:hover:overflow-y-auto",children:null==g?void 0:g.programs.map(e=>(0,a.jsxs)("div",{className:"relative pt-1",children:[(0,a.jsx)("div",{className:"absolute top-0 bottom-0 left-0 w-full ".concat(e.live&&"bg-linear-to-r from-red-500/30 via-trans
1parent to-transparent")}),(0,a.jsx)("div",{className:"px-[10px] lg:pl-[30px]",children:(0,a.jsx)(x,{program:e,programs:null==g?void 0:g.programs})})]},e.id))}),(0,a.jsxs)("div",{className:"flex flex-col items-end p-5 lg:p-0 lg:relative lg:bottom-[30px] lg:right-[30px] md:order-3 md:justify-end",children:[(0,a.jsx)("p",{className:"text-[11px] font-bold text-[rgba(255,255,255,0.8)]",children:"PRESENTED TO YOU BY"}),(0,a.jsx)("h4",{className:"text-[28px] font-bold text-[rgba(255,255,255,0.8)] uppercase",children:c})]})]})})]})]}):(0,a.jsx)(a.Fragment,{})})}}}]);
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.