1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[137],{95698:function(e,t,i){(window.__NEXT_P=window.__NEXT_P||[]).push(["/tvguide",function(){return i(69748)}])},29567:function(e,t,i){"use strict";var n=i(85893),r=i(67294),l=i(91114),a=i.n(l);t.Z=function(e){var t,i,l,d,o,s;let{program:c,channel_left:u,setPaddingfromGuide:v,openProgram:_}=e,m=(0,r.useRef)(null),g=(0,r.useRef)(null);function p(){m.current&&u&&(m.current.getBoundingClientRect().left<u?g.current&&(g.current.style.paddingLeft="".concat(u-m.current.getBoundingClientRect().left,"px")):g.current&&(g.current.style.paddingLeft="0px"))}return(0,r.useEffect)(()=>{m.current&&g.current&&v&&v(p)},[u]),(0,n.jsx)("div",{onClick:()=>_(c),className:"".concat(a().title_wrapper+" "+(-1===c.id&&a().no_program)," ").concat(parseInt(null==c?void 0:null===(l=c.display)||void 0===l?void 0:null===(i=l.markers)||void 0===i?void 0:null===(t=i.startTime)||void 0===t?void 0:t.value)<new Date().getTime()&&parseInt(null==c?void 0:null===(s=c.display)||void 0===s?void 0:null===(o=s.markers)||void 0===o?void 0:null===(d=o.endTime)||void 0===d?void 0:d.value)>new Date().getTime()?"".concat(a().active_program):""),ref:m,children:(0,n.jsx)("p",{ref:g,children:c.display.title})})}},69748:function(e,t,i){"use strict";let n;i.r(t),i.d(t,{__N_SSP:function(){return C},default:function(){return R}});var r=i(85893),l=i(67294),a=i(76256),d=i.n(a),o=i(84781),s=i(83677),c=i(57686),u=i(93208),v=i(5152),_=i.n(v),m=i(16732),g=i(11163),p=i(22955),f=i(66353),h=i(47874),b=i(48414),y=i(29567),w=i(66724);let T=_()(()=>Promise.all([i.e(1664),i.e(5928),i.e(9990),i.e(5675),i.e(7533),i.e(6631),i.e(7236),i.e(3086)]).then(i.bind(i,47236)),{loadableGenerated:{webpack:()=>[47236]}}),x=_()(()=>Promise.all([i.e(5928),i.e(1997)]).then(i.bind(i,20569)),{loadableGenerated:{webpack:()=>[20569]}});function N(){return{display:{markers:{startTime:{value:""},endTime:{value:""}},title:"Program info is not available"},id:-1,metadata:{},target:{path:""}}}let j=e=>{let{isSelectedTab:t,tab:i,datesScrollTo:n,tabsLeft:a,setDateListeners:o,tabsRight:s,handleTabClick:c,id:u}=e,v=(0,l.useRef)(null);(0,l.useEffect)(()=>{t&&v.current&&n(v.current.getBoundingClientRect().right,v.current.getBoundingClientRect().right+2*v.current.clientWidth,u),o&&o(_)},[a,s,t]);let _=(e,t)=>!!v.current&&("prev"===e&&v.current.getBoundingClientRect().right>a||"next"===e&&v.current.getBoundingClientRect().right<s)&&(t(e,v.current.clientWidth),!0);return(0,r.jsx)("div",{className:"".concat(d().tab," ").concat(t?d().active_tab_title:""),ref:v,id:u,onClick:()=>c(i,v.current.getBoundingClientRect().left,v.current.getBoundingClientRect().right),children:(0,r.jsx)("span",{className:"".concat(d().tab_title),children:"Today"===i.title?i.title:"".concat(i.title,",").concat(i.subtitle)})})},k=[],S=[];var L=()=>{var e,t,i,a,v,_,L,G,C,R,E,D,P,B,M,I,Z,H,W,Y;let A=(null===(t=h.e)||void 0===t?void 0:null===(e=t.tvGuide)||void 0===e?void 0:e.dates)?(0,o.Nh)():(0,o.bw)(),{mutate:V,data:O}=(0,s.Z)(),{mutate:z,data:F}=(0,s.Z)(),{mutate:q,data:K,isLoading:J}=(0,s.Z)(),{dispatch:U,state:{Session:X,localLang:Q,SystemConfig:$}}=(0,m.oR)(),ee=(0,g.useRouter)(),[et,ei]=(0,l.useState)(0),[en,er]=(0,l.useState)(void 0),[el,ea]=(0,l.useState)([]),[ed,eo]=(0,l.useState)([]),[es,ec]=(0,l.useState)([]),[eu,ev]=(0,l.useState)([]),[e_,em]=(0,l.useState)(0),[eg,ep]=(0,l.useState)(!1),[ef,eh]=(0,l.useState)(!1),[eb,ey]=(0,l.useState)(!1),[ew,eT]=(0,l.useState)({}),[ex,eN]=(0,l.useState)([]),[ej,ek]=(0,l.useState)(""),[eS,eL]=(0,l.useState)(null),[eG,eC]=(0,l.useState)(""),[eR,eE]=(0,l.useState)(!1),eD=window.innerWidth<=991?.1:.15,[eP,eB]=(0,l.useState)(!1),{scrolledToppx:eM}=(0,w.Z)(),[eI,eZ]=(0,l.useState)(!1),eH=(0,l.useRef)(null),eW=(0,l.useRef)(null),eY=(0,l.useRef)(null),eA=(0,l.useRef)(),eV=(0,l.useRef)({paginationStarted:!1,isempty:!1}),eO=(0,l.useRef)(null),ez=(0,l.useRef)(null),eF=(0,l.useRef)(null),eq=(0,l.useRef)(null),eK=window&&(null===(i=window)||void 0===i?void 0:i.innerHeight)>760?Math.floor((null===(a=window)||void 0===a?void 0:a.innerHeight)/60):12,eJ=()=>{var e,t;let i;ee.asPath.includes("?")?(i=!!(null==ee?void 0:ee.asPath.split("?"))&&(null==ee?void 0:ee.asPath.split("?")[1].includes("="))&&"".concat(null==ee?void 0:ee.asPath.split("?")[1].split("=")[0],"=").concat(null==ee?void 0:ee.asPath.split("?")[1].split("=")[1]),e
1k(null==ee?void 0:ee.asPath.split("?")[1].split("=")[1])):ek("");let n=i?"".concat("https://api-apac.revlet.net","/service/api/v1/tvguide/channels?").concat(i):"".concat("https://api-apac.revlet.net","/service/api/v1/tvguide/channels");try{eo([]),ec([]),(null===(t=h.e)||void 0===t?void 0:null===(e=t.tvGuide)||void 0===e?void 0:e.dates)||(eW.current&&(eW.current.style.marginLeft="0px",eW.current.style.display="none"),eY.current&&(eY.current.style.marginLeft="0px",eY.current.style.display="none")),eV.current.paginationStarted=!1,eV.current.isempty=!1,V(n)}catch(e){}},eU=e=>{let t="".concat("https://api-apac.revlet.net","/service/api/v1/static/tvguide?").concat((0,o.Yo)(e));try{q(t)}catch(e){}};function eX(){eH.current&&eW.current&&(eH.current.scrollLeft=0,eW.current.style.left="0px",eY.current&&(eY.current.style.left="0px"))}function eQ(){window.innerWidth<=991?ei(180):ei(270)}(0,l.useEffect)(()=>{$&&(eQ(),tl());let e=window.matchMedia("(orientation: portrait)");return e.addEventListener("change",eX),()=>{k=[],S=[],e.removeEventListener("change",eX)}},[$]),(0,l.useEffect)(()=>{null!==eM&&(eM>=200?eB(!0):eB(!1))},[eM]),(0,l.useEffect)(()=>{var e,t;(null===(t=h.e)||void 0===t?void 0:null===(e=t.tvGuide)||void 0===e?void 0:e.dates)||e8()},[eS]),(0,l.useEffect)(()=>{$&&eJ()},[$,ee.asPath]),(0,l.useEffect)(()=>{var e;return e9(),window.addEventListener("resize",eQ),null===(e=eH.current)||void 0===e||e.addEventListener("scroll",e3),()=>{var e;window.removeEventListener("resize",eQ),null===(e=eH.current)||void 0===e||e.removeEventListener("scroll",e3)}},[et]),(0,l.useEffect)(()=>{var e;return null==eH||null===(e=eH.current)||void 0===e||e.addEventListener("scroll",e$),U({type:m.Nw.dt,payload:{}}),()=>{var e;null==eH||null===(e=eH.current)||void 0===e||e.removeEventListener("scroll",e$)}},[]);let e$=()=>{let e=0,t=window.innerWidth<=767?180:540;if(window.innerWidth<=1024){var i,n,r;(e=Math.abs(Math.abs(parseInt(null==eW?void 0:null===(n=eW.current)||void 0===n?void 0:null===(i=n.style)||void 0===i?void 0:i.marginLeft))-(null==eH?void 0:null===(r=eH.current)||void 0===r?void 0:r.scrollLeft)))&&(e<=0||e>t)?eh(!1):eh(!0)}};(0,l.useEffect)(()=>(window.addEventListener("scroll",e6),!1===J&&e9(),()=>{window.removeEventListener("scroll",e6)}),[ed,es,J]),(0,l.useEffect)(()=>{var e,t;return(null===(t=h.e)||void 0===t?void 0:null===(e=t.tvGuide)||void 0===e?void 0:e.dates)&&(null==en?void 0:en.title)=="Today"&&(eI||e8()),eA.current=setInterval(()=>{e7(en)},1e3),()=>{eA.current&&(clearInterval(eA.current),eA.current=void 0)}},[eu,es,eS]),(0,l.useEffect)(()=>{if(X){var e,t,i,n,r;F&&F.data&&!0===F.data.status?eN(null==F?void 0:null===(t=F.data)||void 0===t?void 0:null===(e=t.response)||void 0===e?void 0:e.filters):(eV.current.paginationStarted=!0,(null==F?void 0:null===(i=F.data)||void 0===i?void 0:i.status)===!1&&(null==F?void 0:null===(r=F.data)||void 0===r?void 0:null===(n=r.error)||void 0===n?void 0:n.code)===401&&(0,c.qP)())}},[F,X]),(0,l.useEffect)(()=>{var e,t,i,n,r,l,a,d,o;if(X){if(O&&O.data&&!0===O.data.status){eC("");let d=O.data.response.data.slice(0,eK),o=d.map(e=>e.id);ea(O.data.response.data),ev(O.data.response.tabs);let s=null===(e=O.data.response.tabs)||void 0===e?void 0:e.filter(e=>e.isSelected)[0];if(null===(i=h.e)||void 0===i?void 0:null===(t=i.tvGuide)||void 0===t?void 0:t.dates)er(s),eU({start_time:s.startTime,end_time:s.endTime,page:0,channel_ids:o.join(",")});else{let e=(null===(r=h.e)||void 0===r?void 0:null===(n=r.tvGuide)||void 0===n?void 0:n.time)=="24"?new Date().setMinutes(0,0,0):new Date().setHours(0,0,0,0),t=(null===(a=h.e)||void 0===a?void 0:null===(l=a.tvGuide)||void 0===l?void 0:l.time)=="24"?new Date(new Date(e).getTime()+864e5).getTime():new Date().setHours(23,59,59);s.startTime=e,s.endTime=t,er(s),eU({start_time:e,end_time:t,page:0,channel_ids:o.join(",")})}eV.current.paginationStarted=!0,eV.current.isempty=!1}else eV.current.paginationStarted=!1,eV.current.isempty=!0,eC(null==O?void 0:null===(o=O.data)||void 0===o?void 0:null===(d=o.error)||void 0===d?void 0:d.message)}},[O,X]),(0,l.useEffect)(()=>{var e,t,i,n,r,l,a,d,o,s,u,v;if(X){if(K&&K.data&&!0===K.data.status){if(eo([...ed,...el.slice(0,eK)]),!(null===(r=h.e)||void 0===r?void 0:null===(n=r.tvGuide)||void 0===n?void 0:n.dates)){let e=setTimeout(()=>{eW.current&&(eW.current.style.display="block"),eY.current&&(eY.current.style.display="block"),clearTimeout(e),e=void 0},1e3)}if(ea([...el.slice(eK,el.length)]),K.data.response.data){let e=function(e,t,i){for(let I=0;I<e.length;I++){var n,r,l,a,d,o,s,c,u,v,_,m,g,p,f,b,y,w,T,x,j,k,S,L,G,C,R,E,D,P,B,M;let Z=[];for(let R=0;R<e[I].programs.length;R++){let E=N();if(0==R){let i=Number(null===(r=e[I].programs[R].display.markers)||void 0===r?void 0:null===(n=r.startTime)||void 0===n?void 0:n.value);t&&i>t?((null===(d=E.display.markers)||void 0===d?void 0:d.startTime)&&(E.display.markers.startTime.value=t.toString()),(null===(o=E.display.markers)||void 0===o?void 0:o.endTime)&&(E.display.markers.endTime.value=i.toString()),Z.push(E)):(null===(a=h.e)||void 0===a?void 0:null===(l=a.tvGuide)||void 0===l?void 0:l.dates)||!t||!(i<t)||(e[I].programs[R].display.markers.startTime.value=t.toString()),Z.push(e[I].programs[R])}else if(R==e[I].programs.length-1){let t=Number(null===(c=e[I].programs[R-1].display.markers)||void 0===c?void 0:null===(s=c.startTime)||void 0===s?void 0:s.value),n=Number(null===(v=e[I].programs[R-1].display.markers)||void 0===v?void 0:null===(u=v.endTime)||void 0===u?void 0:u.value),r=Number(null===(m=e[I].programs[R].display.markers)||void 0===m?void 0:null===(_=m.startTime)||void 0===_?void 0:_.value);r-n>1e3&&((null===(f=E.display.markers)||void 0===f?void 0:f.startTime)&&(E.display.markers.startTime.value=n.toString()),(null===(b=E.display.markers)||void 0===b?void 0:b.endTime)&&(E.display.markers.endTime.value=r.toString()),Z.push(E)),t!==r&&Z.push(e[I].programs[R]);let l=Number(null===(p=e[I].programs[R].display.markers)||void 0===p?void 0:null===(g=p.endTime)||void 0===g?void 0:g.value);i&&l<i&&((null===(y=E.display.markers)||void 0===y?void 0:y.startTime)&&(E.display.markers.startTime.value=l.toString()),(null===(w=E.display.markers)||void 0===w?void 0:w.endTime)&&(E.display.markers.endTime.value=i.toString()),Z.push(E))}else{let t=Number(null===(x=e[I].programs[R-1].display.markers)||void 0===x?void 0:null===(T=x.startTime)||void 0===T?void 0:T.value),i=Number(null===(k=e[I].programs[R-1].display.markers)||void 0===k?void 0:null===(j=k.endTime)||void 0===j?void 0:j.value),n=Number(null===(L=e[I].programs[R].display.markers)||void 0===L?void 0:null===(S=L.startTime)||void 0===S?void 0:S.value);n-i>2e3&&((null===(G=E.display.markers)||void 0===G?void 0:G.startTime)&&(E.display.markers.startTime.value=i.toString()),(null===(C=E.display.markers)||void 0===C?void 0:C.endTime)&&(E.display.markers.endTime.value=n.toString()),Z.push(E)),t!==n&&Z.push(e[I].programs[R])}}if(0===e[I].programs.length){if(null===(E=h.e)||void 0===E?void 0:null===(R=E.tvGuide)||void 0===R?void 0:R.dates){let e=N();(null===(D=e.display.markers)||void 0===D?void 0:D.startTime)&&(e.display.markers.startTime.value=null==t?void 0:t.toString()),(null===(P=e.display.markers)||void 0===P?void 0:P.endTime)&&(e.display.markers.endTime.value=null==i?void 0:i.toString()),Z.push(e)}else{let e=N();(null===(B=e.display.markers)||void 0===B?void 0:B.startTime)&&(e.display.markers.startTime.value=null==t?void 0:t.toString()),(null===(M=e.display.markers)||void 0===M?void 0:M.endTime)&&(e.display.markers.endTime.value=null==i?void 0:i.toString()),Z.push(e)}}e[I].programs=Z}return e}(K.data.response.data,en.startTime,en.endTime);(null===(a=h.e)||void 0===a?void 0:null===(l=a.tvGuide)||void 0===l?void 0:l.dates)||eL(parseInt(null===(v=e[0])||void 0===v?void 0:null===(u=v.programs[0])||void 0===u?void 0:null===(s=u.display)||void 0===s?void 0:null===(o=s.markers)||void 0===o?void 0:null===(d=o.startTime)||void 0===d?void 0:d.value)),ec([...es,...e])}em(e_+1)}else(null==K?void 0:null===(e=K.data)||void 0===e?void 0:e.error)&&(null==K?void 0:null===(i=K.data)||void 0===i?void 0:null===(t=i.error)||void 0===t?void 0:t.code)===401&&(0,c.qP)();eV.current.paginationStarted=!1}},[K]),(0,l.useEffect)(()=>{X&&en&&e2()},[eg]);let e0=e=>{k.push(e)};function e1(e){S.push(e)}function e3(){eH.current&&eW.current&&(eW.current.style.left="".concat(-eH.current.scrollLeft,"px"),e9()),eH.current&&eY.current&&(eY.current.style.left="".concat(-eH.current.scrollLeft,"px"))}function e6(){document.documentElement.scrollHeight-window.innerHeight-window.scrollY<400&&!1===eV.current.paginationStarted&&!1===eV.current.isempty&&el.length>0&&(eV.current.paginationStarted=!0,0===el.slice(eK,el.length).length&&(eV.current.isempty=!0),void 0!=n&&(clearTimeout(n),n=void 0),n=setTimeout(()=>{e2()},300))}function e2(){var e,t,i,n,r,l;if(null===(t=h.e)||void 0===t?void 0:null===(e=t.tvGuide)||void 0===e?void 0:e.dates){let e=el.slice(0,eK),t=e.map(e=>e.id);eU({start_time:en.startTime,end_time:en.endTime,page:e_,channel_ids:t.join(",")})}else{let e=[];el.slice(0,eK).map(t=>e.push(t.id));let t=(null===(n=h.e)||void 0===n?void 0:null===(i=n.tvGuide)||void 0===i?void 0:i.time)=="24"?new Date().setMinutes(0,0,0):new Date().setHours(0,0,0,0),a=(null===(l=h.e)||void 0===l?void 0:null===(r=l.tvGuide)||void 0===r?void 0:r.time)=="24"?new Date(new Date(t).getTime()+864e5).getTime():new Date().setHours(23,59,59);!!el.length>0&&eU({start_time:t,end_time:a,page:e_,channel_ids:e.join(",")})}}
1function e9(){k.forEach(e=>{e()})}function e5(){var e,t;(null===(t=h.e)||void 0===t?void 0:null===(e=t.tvGuide)||void 0===e?void 0:e.dates)&&eZ(!0),eH.current&&eH.current.scrollWidth-eH.current.scrollLeft!==eH.current.clientWidth&&(eH.current.scrollLeft+=2*et,eh(!1)),eF.current&&(eF.current.scrollWidth-eF.current.scrollLeft!==eF.current.clientWidth?(eF.current.scrollLeft+=2*et,eh(!1)):U({type:m.Nw.o4,payload:{message:"Sorry You Reached day end Time"}})),e$()}function e4(){var e,t;(null===(t=h.e)||void 0===t?void 0:null===(e=t.tvGuide)||void 0===e?void 0:e.dates)&&eZ(!0),eH.current&&0!==eH.current.scrollLeft&&(eH.current.scrollLeft-=2*et,eh(!1)),eF.current&&en.startTime<new Date().getTime()&&(0!==eF.current.scrollLeft?(eF.current.scrollLeft-=2*et,eh(!1)):U({type:m.Nw.o4,payload:{message:"Sorry You Reached day start Time"}})),e$()}function e7(e){var t,i;if(null===(i=h.e)||void 0===i?void 0:null===(t=i.tvGuide)||void 0===t?void 0:t.dates){let t=new Date().getTime();if(eW.current&&(null==e?void 0:e.startTime)){let i=(t-(null==e?void 0:e.startTime))/1e3/60,n=i*et/30;eW.current.style.marginLeft="".concat(n,"px"),eY.current.style.marginLeft="".concat(n,"px")}}else{let e=parseInt(new Date().getTime()-eS)/1e3*eD;eW.current&&(eW.current.style.marginLeft="".concat(e,"px")),eY.current&&(eY.current.style.marginLeft="".concat(e,"px"))}}function e8(){var e,t;if(null===(t=h.e)||void 0===t?void 0:null===(e=t.tvGuide)||void 0===e?void 0:e.dates){if((null==en?void 0:en.title)==="Today"){let e=new Date().getTime(),t=(e-(null==en?void 0:en.startTime))/1e3/60,i=t%30;t-=i,eH.current&&(eH.current.scrollLeft=t*et/30,eh(!0)),eF.current&&(eF.current.scrollLeft=t*et/30)}else if((null==eu?void 0:eu.length)>0){let e=eu.filter(e=>e.isSelected)[0];if(er(e),ea([...ed.concat(el)]),eo([]),ec([]),ep(!eg),eV.current.paginationStarted=!1,eV.current.isempty=!0,"Today"===e.title){let t=new Date().getTime(),i=(t-(null==e?void 0:e.startTime))/1e3/60,n=i%30;i-=n,eH.current&&(eH.current.scrollLeft=i*et/30,eh(!1)),eA.current||(eW.current.style.display="block",eA.current=setInterval(()=>{e7(e)},1e3))}}}else if(eS){let e=new Date().getTime(),t=(e-eS)/1e3/60,i=t%30;t-=i,eH.current&&(eH.current.scrollLeft=t*et/30),eF.current&&(eF.current.scrollLeft=t*et/30),eh(!0)}}function te(e,t){"next"===e&&eO.current&&(eO.current.scrollLeft+=3*t),"prev"===e&&eO.current&&(eO.current.scrollLeft-=3*t)}function tt(e,t,i){var n;null===(n=document.getElementById(i))||void 0===n||n.scrollIntoView(),window.scroll(0,-50),eO.current&&e>eO.current.getBoundingClientRect().right&&(eO.current.scrollLeft=t),ez.current&&(e>ez.current.getBoundingClientRect().right?ez.current.scrollLeft=t:ez.current.scrollLeft=6*ez.current.getBoundingClientRect().right)}function ti(e){for(let t=0;t<S.length;t++){let i=S[t](e,te);if(i)break}}function tn(e,t,i){var n,r;window.scrollTo(0,0),er(e),eZ(!1),ea([...ed.concat(el)]),eo([]),ec([]),ep(!eg),eV.current.paginationStarted=!1,eV.current.isempty=!1,eF.current.scrollLeft=0,"Today"===e.title?(eW.current.style.display="block",eY.current.style.display="block",eA.current||(eh(!0),eA.current=setInterval(()=>{e7(e)},1e3))):(eh(!1),eA.current&&(eW.current.style.display="block",eY.current.style.display="block",clearInterval(eA.current),eA.current=void 0));let l=Math.abs(i)-Math.abs(t);t<(null===(n=eO.current)||void 0===n?void 0:n.getBoundingClientRect().left)?eO.current.scrollLeft=i+2*l:i>(null===(r=eO.current)||void 0===r?void 0:r.getBoundingClientRect().right)&&(eO.current.scrollLeft=t-2*l)}let tr=e=>{var t,i;if(e.template){let t={};t.target_path=e.target.path;let i=(0,u.g7)();i.length>0?i.map(i=>{e.template===i.code&&(t.assignedTemplate=i,eT(t),ey(!0))}):U({type:m.Nw.o4,payload:{message:"Sorry template not found."}})}else(null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.path)===""?U({type:m.Nw.o4,payload:{message:"Sorry Program Information not avaliable"}}):ee.push(null==e?void 0:null===(i=e.target)||void 0===i?void 0:i.path)},tl=()=>{try{z("".concat("https://api-apac.revlet.net","/service/api/v1/page/content?path=tvguide&count=30"))}catch(e){}};return(0,r.jsxs)("div",{className:"".concat(d().tvguide_container," ").concat(h.e.tvGuide.filter?d().filtersActive:""," ").concat(h.e.tvGuide.dates?"":d().onlyTime),children:[h.e.tvGuide.filter&&(0,r.jsxs)("div",{className:"".concat(d().tvgudie_header),children:[(0,r.jsx)("h1",{className:"".concat(d().title),children:" Tv Guide "}),(0,r.jsxs)("button",{className:"".concat(d().filterbtn),type:"button",onClick:()=>{eE(!0)},children:["Apply Filters \xa0",(0,r.jsx)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"10",height:"6",viewBox:"0 0 10 6",children:(0,r.jsx)("path",{id:"Path_2983","data-name":"Path 2983",d:"M0,8.825,3.709,5,0,1.175,1.142,0,6,5,1.142,10Z",transform:"translate(10) rotate(90)",fill:"#fff",opacity:"0.85"})})]})]}),(null===(_=h.e)||void 0===_?void 0:null===(v=_.tvGuide)||void 0===v?void 0:v.dates)&&(0,r.jsx)("div",{className:"".concat(d().tabs_inner," ").concat(d().tabs_inner_mobileweb),ref:ez,children:eu.length>0&&eu.map((e,t)=>{var i,n;return(0,r.jsx)(j,{id:"id-".concat(t),isSelectedTab:en.subtitle===e.subtitle,tab:e,datesScrollTo:tt,tabsLeft:null===(i=ez.current)||void 0===i?void 0:i.getBoundingClientRect().left,setDateListeners:e1,tabsRight:null===(n=ez.current)||void 0===n?void 0:n.getBoundingClientRect().right,handleTabClick:tn},"id-".concat(t))})}),((null===(G=h.e)||void 0===G?void 0:null===(L=G.tvGuide)||void 0===L?void 0:L.dates)&&eu.length>0||es.length>0&&eu.length>0)&&(0,r.jsxs)("div",{className:"".concat(d().tabs_container," ").concat(eP?"".concat(d().tabs_container_fixed):""),children:[(null===(R=h.e)||void 0===R?void 0:null===(C=R.tvGuide)||void 0===C?void 0:C.dates)&&(0,r.jsxs)("div",{className:"".concat(d().tabs_top_container),children:[(0,r.jsx)("div",{className:"".concat(d().tabs_prev),onClick:()=>ti("prev"),children:(0,r.jsx)("img",{alt:"right_arrow",src:"".concat(f.Z.tvGuide.rightArrow)})}),(0,r.jsx)("div",{className:"".concat(d().tabs_next),onClick:()=>ti("next"),children:(0,r.jsx)("img",{alt:"left_arrow",src:"".concat(f.Z.tvGuide.rightArrow)})}),(0,r.jsx)("div",{className:"".concat(d().tabs_inner),ref:eO,children:eu.length>0&&eu.map((e,t)=>{var i,n;return(0,r.jsx)(j,{id:"id-".concat(t),isSelectedTab:en.subtitle===e.subtitle,tab:e,datesScrollTo:tt,tabsLeft:null===(i=eO.current)||void 0===i?void 0:i.getBoundingClientRect().left,setDateListeners:e1,tabsRight:null===(n=eO.current)||void 0===n?void 0:n.getBoundingClientRect().right,handleTabClick:tn},"id-".concat(t))})})]}),(0,r.jsxs)("div",{className:"".concat(d().tabs_bottom_container),children:[(0,r.jsx)("div",{className:"".concat(d().guide_left_top),children:(0,r.jsx)("div",{className:"".concat(d().go_live_div),onClick:()=>e8(),children:(0,r.jsxs)("div",{className:"".concat(d().go_live).concat(!0!==ef?" ".concat(d().active):""),children:[(0,r.jsx)("span",{className:"".concat(d().go_live_circle),children:"\xa0"}),p.rd[Q].Go_Live]})})}),(0,r.jsxs)("div",{className:"".concat(d().times),children:[(0,r.jsxs)("div",{className:"".concat(d().times_inner),ref:eF,children:[(0,r.jsx)("span",{className:"".concat(d().live_text),ref:eY,children:p.rd[Q].Live}),A.map((e,t)=>(0,r.jsx)("div",{className:"".concat(d().time),children:e},t))]}),(0,r.jsxs)("div",{className:"".concat(d().guide_arrows_container),children:[(0,r.jsx)("div",{className:"".concat(d().arrow," ").concat(d().left_arrow),onClick:e4}),(0,r.jsx)("div",{className:"".concat(d().arrow," ").concat(d().right_arrow),onClick:e5})]})]})]})]}),(0,r.jsxs)("div",{className:"".concat(d().guide_container),children:[(0,r.jsxs)("div",{className:"".concat(d().guide_left),children:[(0,r.jsx)("div",{className:"".concat(d().guide_left_top)}),(0,r.jsxs)("div",{className:"".concat(d().guide_left_bottom),children:[(!(null===(D=h.e)||void 0===D?void 0:null===(E=D.tvGuide)||void 0===E?void 0:E.dates)&&es.length>0||(null===(B=h.e)||void 0===B?void 0:null===(P=B.tvGuide)||void 0===P?void 0:P.dates))&&(0,r.jsx)("div",{className:"".concat(d().go_live_div),onClick:()=>e8(),children:(0,r.jsxs)("div",{className:"".concat(d().go_live).concat(!0!==ef?" ".concat(d().active):""),children:[(0,r.jsx)("span",{className:"".concat(d().go_live_circle),children:"\xa0"}),p.rd[Q].Go_Live]})}),(0,r.jsx)("div",{className:"".concat(d().channels_container),children:ed.map((e,t)=>(0,r.jsx)("div",{className:"".concat(d().channel),children:(0,r.jsx)("img",{src:"".concat((0,u.ZY)(e.display.imageUrl)),alt:""})},t))})]})]}),(0,r.jsx)("div",{className:"".concat(d().guide_right),children:(0,r.jsxs)("div",{className:"".concat(d().guide_programs_wrapper),children:[(0,r.jsxs)("div",{className:"".concat(d().guide_programs_container),ref:eH,children:[(!(null===(I=h.e)||void 0===I?void 0:null===(M=I.tvGuide)||void 0===M?void 0:M.dates)&&es.length>0||(null===(H=h.e)||void 0===H?void 0:null===(Z=H.tvGuide)||void 0===Z?void 0:Z.dates))&&(0,r.jsx)("div",{className:"".concat(d().times),children:(0,r.jsx)("div",{className:"".concat(d().times_inner),ref:eq,children:null==A?void 0:A.map((e,t)=>(0,r.jsx)("div",{className:"".concat(d().time),children:e},t))})}),(0,r.jsx)("div",{className:"".concat(d().programs_data_container),children:es.map((e,t)=>(0,r.jsx)("div",{className:"".concat(d().programs_inner_container),children:e.programs.map((e,t)=>{var i,n,l,a,o,s,c,u,v,_,m;return(0,r.jsx)("div",{className:"".concat(d().program," ").concat(parseInt(null==e?void 0:null===(l=e.display)||void 0===l?void 0:null===(n=l.markers)||void 0===n?void 0:null===(i=n.startTime)||void 0===i?void 0:i.value)<new Date().getTime()&&parseInt(null==e?void 0:null===(s=e.display)||void 0===s?void 0:null===(o=s.markers)||void 0===o?void 0:null===(a=o.endTime)||void 0===a?void 0:a.value)>new Date().getTime()?"".concat(d().active_program):""),style:{width:"".concat(function(e,t){if(e&&t){var i,n,r,l,a,d;(null===(n=h.e)||void 0===n?void 0:null===(i=n.tvGuide)||void 0===i?void 0:i.dates)&&(en.endTime&&Number(t)>Number(en.endTime)&&(t=en.endTime.toString()),en.startTime&&Number(e)<Number(en.startTime)&&(e=en.startTime.toString()));let o=t,s=en.endTime;(null===(l=h.e)||void 0===l?void 0:null===(r=l.tvGuide)||void 0===r?void 0:r.dates)||(s=(null===(d=h.e)||void 0===d?void 0:null===(a=d.tvGuide)||void 0===a?void 0:a.time)=="24"?new Date(new Date().setMinutes(0,0,0)+864e5).getTime():new Date().setHours(23,59,59)),t>s&&(o=s);let c=Number(o)-Number(e),u=c/1e3/60*et/30;return u}return 0}(null===(u=e.display.markers)||void 0===u?void 0:null===(c=u.startTime)||void 0===c?void 0:c.value,
1null===(_=e.display.markers)||void 0===_?void 0:null===(v=_.endTime)||void 0===v?void 0:v.value),"px")},children:(0,r.jsx)(y.Z,{program:e,openProgram:tr,channel_left:null===(m=eH.current)||void 0===m?void 0:m.getBoundingClientRect().left,setPaddingfromGuide:e0})},t)})},t))})]}),(null===(Y=h.e)||void 0===Y?void 0:null===(W=Y.tvGuide)||void 0===W?void 0:W.dates)&&(0,r.jsxs)("div",{className:"".concat(d().guide_arrows_container),children:[(0,r.jsx)("div",{className:"".concat(d().arrow," ").concat(d().left_arrow),onClick:e4}),(0,r.jsx)("div",{className:"".concat(d().arrow," ").concat(d().right_arrow),onClick:e5})]}),(0,r.jsx)("div",{className:"".concat(d().live_bar),ref:eW,children:(0,r.jsx)("div",{className:"".concat(d().live_bar_inner),children:(0,r.jsx)("span",{className:"".concat(d().live_text),children:p.rd[Q].Live})})})]})})]}),es.length<=0&&!!eG&&(0,r.jsx)("h3",{className:d().errMsg,children:eG}),J&&(0,r.jsx)(b.Z,{pagePath:"tvguide"}),eb&&(0,r.jsx)(T,{open:eb,onClose:()=>ey(!1),templateData:ew}),eR&&(0,r.jsx)(x,{tvguidefilters:ex,closeFilterModal:()=>{eE(!1)}})]})},G=i(31615),C=!0;function R(e){let{seodata:t}=e,[i,n]=(0,l.useState)(!1);return(0,l.useEffect)(()=>{n(!0)},[]),i?(0,r.jsxs)(r.Fragment,{children:[(0,r.jsx)(G.Z,{seodata:t}),(0,r.jsx)(L,{})]}):null}},91114:function(e){e.exports={primaryColor:"#e11c1b",whiteColor:"#fff",bodyColor:"#141414",title_wrapper:"ProgramTab_title_wrapper__eHNtD",no_program:"ProgramTab_no_program__ZUPUY"}},76256:function(e){e.exports={primaryColor:"#e11c1b",whiteColor:"#fff",bodyColor:"#141414",tvguide_container:"tvguide_tvguide_container__GKgxy",filtersActive:"tvguide_filtersActive___lT7Q",filter_section:"tvguide_filter_section__JhkTO",filter_data:"tvguide_filter_data__0GbaV",filter_active:"tvguide_filter_active__51Jeu",tvgudie_header:"tvguide_tvgudie_header__2VOsA",title:"tvguide_title__Wsnsl",filterbtn:"tvguide_filterbtn__9uzRa",tabs_container:"tvguide_tabs_container__7_aH_",tabs_container_fixed:"tvguide_tabs_container_fixed__4jb8T",tabs_top_container:"tvguide_tabs_top_container__0W55f",tabs_next:"tvguide_tabs_next__kkco_",tabs_prev:"tvguide_tabs_prev__MmOY3",tabs_inner:"tvguide_tabs_inner__yVvqV",tab:"tvguide_tab__J8HK3",active_tab_title:"tvguide_active_tab_title__aVHG3",tab_title:"tvguide_tab_title__VxdYa",tabs_bottom_container:"tvguide_tabs_bottom_container__d62Su",guide_left_top:"tvguide_guide_left_top__Rvqr3",go_live_div:"tvguide_go_live_div__cD2PC",go_live:"tvguide_go_live__Nrwca",active:"tvguide_active__YAfzS",go_live_circle:"tvguide_go_live_circle__v2jPg",times:"tvguide_times__gZlEc",live_text:"tvguide_live_text__cuVau",times_inner:"tvguide_times_inner__D9EGF",time:"tvguide_time__jPAx4",guide_arrows_container:"tvguide_guide_arrows_container___QuC9",arrow:"tvguide_arrow__36g2v",left_arrow:"tvguide_left_arrow__pjO03",right_arrow:"tvguide_right_arrow__1xcLa",guide_container:"tvguide_guide_container__daooa",guide_left:"tvguide_guide_left__65y1C",guide_left_bottom:"tvguide_guide_left_bottom__M5psi",channels_container:"tvguide_channels_container__eeneN",channel:"tvguide_channel__6oZT1",guide_right:"tvguide_guide_right__miosb",guide_programs_wrapper:"tvguide_guide_programs_wrapper__b0IGj",guide_programs_container:"tvguide_guide_programs_container__Mbnhc",programs_data_container:"tvguide_programs_data_container___SaT6",programs_inner_container:"tvguide_programs_inner_container__rHGdV",program:"tvguide_program__EK_mE",active_program:"tvguide_active_program__Mrz9L",live_bar:"tvguide_live_bar__w0vFM",live_bar_inner:"tvguide_live_bar_inner__ljW1B",tabs_inner_mobileweb:"tvguide_tabs_inner_mobileweb__56rKZ",errMsg:"tvguide_errMsg__Xj7eY"}}},function(e){e.O(0,[2329,9774,2888,179],function(){return e(e.s=95698)}),_N_E=e.O()}]);
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.