PageSourceSearch

https://www.sunnxt.com/_next/static/chunks/6071-47eb288b88818262.js

js sunnxt.com collected 2026-09-27 20:57:16 UTC 35,647 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[6071],{6071:function(e,t,n){"use strict";n.d(t,{Z:function(){return A}});var a=n(6835),r=n(9499),l=n(29),s=n(7794),i=n.n(s),o=n(7294),c=(n(1421),n(5675)),u=n.n(c),d=n(732),v=n(5658),m=n(8233),f=n(1664),p=n.n(f),h=(n(5783),n(1663)),g=n(2714),b=n(5516),x=n(5893);function w(){return(0,x.jsxs)("div",{className:"min-h-screen bg-black text-white animate-pulse",children:[(0,x.jsxs)("div",{className:"relative w-full aspect-[16/7] bg-gray-900",children:[(0,x.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black via-black/70 to-transparent"}),(0,x.jsxs)("div",{className:"absolute bottom-6 left-6 md:bottom-10 md:left-10 z-10 max-w-xl space-y-4",children:[(0,x.jsx)("div",{className:"w-40 h-12 bg-gray-700 rounded"}),(0,x.jsxs)("div",{className:"flex gap-3",children:[(0,x.jsx)("div",{className:"h-12 w-40 bg-gray-700 rounded-lg"}),(0,x.jsx)("div",{className:"h-12 w-48 bg-gray-600 rounded-lg"})]}),(0,x.jsxs)("div",{className:"space-y-3 mt-4",children:[(0,x.jsx)("div",{className:"h-5 w-80 bg-gray-700 rounded"}),(0,x.jsx)("div",{className:"h-5 w-96 bg-gray-600 rounded"})]})]}),(0,x.jsxs)("div",{className:"absolute bottom-6 right-6 md:bottom-10 md:right-10 z-10 w-[25rem] h-[15rem] rounded-xl bg-gray-800 border border-white/10 flex flex-col justify-between p-4",children:[(0,x.jsx)("div",{className:"flex-1 flex items-center justify-center",children:(0,x.jsx)("div",{className:"h-6 w-40 bg-gray-600 rounded"})}),(0,x.jsxs)("div",{className:"space-y-2",children:[(0,x.jsx)("div",{className:"h-4 w-48 bg-gray-700 rounded mx-auto"}),(0,x.jsx)("div",{className:"h-4 w-36 bg-gray-600 rounded mx-auto"})]})]})]}),(0,x.jsx)("div",{className:"px-6 mt-6 pl-10",children:(0,x.jsx)("div",{className:"flex gap-6",children:[1,2,3,4].map((function(e){return(0,x.jsx)("div",{className:"h-6 w-20 bg-gray-700 rounded"},e)}))})}),(0,x.jsx)("div",{className:"px-6 mt-6 pl-10",children:(0,x.jsx)("div",{className:"flex gap-6 overflow-hidden",children:[1,2,3,4,5].map((function(e){return(0,x.jsxs)("div",{className:" w-[calc((100vw-6rem)/4.5)] aspect-[16/9] bg-gray-800 rounded-xl flex-shrink-0 relative ",children:[(0,x.jsx)("div",{className:"absolute top-3 left-3 h-10 w-24 bg-gray-700 rounded"}),(0,x.jsx)("div",{className:"absolute bottom-3 left-1/2 -translate-x-1/2 h-8 w-32 bg-gray-600 rounded-lg"})]},e)}))})})]})}var _=n(5518),y=_.tq?100:130,j=500;function N(e){e.closeprogramguide;var t=e.activeChannelId,n=e.activeChannelData,a=(0,o.useState)([]),r=a[0],l=a[1],s=(0,o.useState)(null),i=s[0],c=s[1],u=(0,o.useState)(null),f=u[0],p=u[1],h=(0,o.useRef)(null),g=(0,o.useState)(!1),b=g[0],w=g[1],_=(0,o.useState)(!1),N=_[0],k=_[1],S=function(){var e=h.current;if(e){var t=e.scrollLeft,n=e.scrollWidth,a=e.clientWidth;w(t>5),k(t+a<n-5)}};(0,o.useEffect)((function(){var e=h.current;if(e)return S(),e.addEventListener("scroll",S),function(){return e.removeEventListener("scroll",S)}}),[r]);return(0,o.useEffect)((function(){if(t){var e=(0,d.tN)().split("T")[0],n=new Date((0,d.tN)());v.default.getChannelEPG(100,e,t).then((function(e){var t,a=((null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.results)||[]).filter((function(e){return Date.parse(e.endDate)>Date.parse(n)}));l(a)}))}}),[t]),t?(0,x.jsxs)("div",{className:"w-full bg-[#212121] lg:bg-black text-white mt-6 px-2 lg:px-6 pb-6 pl-2 lg:pl-10 relative",children:[(0,x.jsx)("div",{className:"flex items-center justify-between py-3 hidden md:flex",children:(0,x.jsx)("h3",{className:"text-lg font-semibold",children:"Channel EPG"})}),(0,x.jsxs)("div",{className:"flex items-start gap-4",children:[(0,x.jsxs)("div",{className:"relative w-[6.8rem] lg:w-[12rem] shrink-0 border-[2px] border-white/30 rounded-xl flex items-center justify-center bg-[#212121] lg:bg-black",style:{height:y},children:[(null===n||void 0===n?void 0:n.images)&&(0,x.jsx)("img",{src:(0,m.Z)(n.images.values,"mdpi","thumbnail"),className:"h-[5rem] object-contain",alt:n.globalServiceName}),(0,x.jsxs)("div",{className:"absolute bottom-2 right-2 flex items-center gap-1 bg-black/70 px-2 py-[2px] rounded-md",children:[(0,x.jsxs)("span",{className:"relative flex h-2 w-2",children:[(0,x.jsx)("span",{className:"animate-ping absolute inline-flex h-full w-full rounded-full bg-red-600 opacity-75"}),(0,x.jsx)("span",{className:"relative inline-flex rounded-full h-2 w-2 bg-red-600"})]}),(0,x.jsx)("span",{className:"text-[10px] text-white font-semibold tracking-wide",children:"Live"})]})]}),b&&(0,x.jsx)("div",{className:"hidden md:flex absolute left-0 top-1/2 -translate-y-1/2 z-20  bg-gradient-to-r from-black/90 via-black/30 flex items-center justify-center h-[8rem] w-[3rem] rounded-r-md cursor-pointer",onClick:function(){var e;null===(e=h.current)||void 0===e||e.scrollBy({left:-400,behavior:"smooth"})},children:(0,x.jsx)("img",{src:"/images/Icons/Left_arrow.svg",className:"w-[2rem] h-[3rem]"})}),(0,x.jsx)("div",{className:"relative flex-1 overflow-hidden",children:(0,x.jsx)("div",{ref:h,className:"flex gap-3 overflow-x-auto scrollbar-hide pb-2",children:r.map((function(e,t){var n,a=(new Date(e.endDate)-new Date(e.startDate))/6e4/60*350,r=Math.min(a,j),l=new Date>=new Date(e.startDate)&&new Date<=new Date(e.endDate);return(0,x.jsx)("div",{className:"relative flex-shrink-0",style:{width:r,height:y},onMouseEnter:function(e){p(t);var n=e.currentTarget.getBoundingClientRect().right+j>window.innerWidth;c(n)},onMouseLeave:function(){p(null),c(!1)},children:(0,x.jsxs)("div",{className:"\n    absolute top-0 rounded-xl border-0 lg:border-2 lg:border-[2px] border-white/30\n    flex overflow-hidden transition-all duration-300 bg-black\n    ".concat(f===t?"z-20 shadow-2xl":"z-0","\n    ").concat(i&&f===t?"flex-row-reverse":"","\n  "),style:{height:y,width:f===t?j:r,left:f===t&&i?r-j:0},children:[f===t&&(null===(n=e.images)||void 0===n?void 0:n.values)&&(0,x.jsx)("img",{src:(0,m.Z)(e.images.values,"mdpi","coverposter"),className:"h-full object-cover",style:{width:200},alt:e.generalInfo.title}),(0,x.jsxs)("div",{className:"flex-1 flex flex-col justify-center p-0 lg:p-3 text-center space-x-1",children:[(0,x.jsx)("p",{className:"text-md font-semibold line-clamp-1 p-1",children:e.generalInfo.title}),(0,x.jsxs)("p",{className:"text-sm opacity-70 mt-1 p-1",children:[(0,d.Fc)(e.startDate)," \u2013 ",(0,d.Fc)(e.endDate)]}),f===t&&l&&(0,x.jsx)("span",{className:"text-xs text-yellow-400 mt-1",children:"Watch Live \u2192"})]})]})},t)}))})}),N&&(0,x.jsx)("div",{className:"hidden md:flex absolute right-0 top-1/2 -translate-y-1/2 z-20 bg-gradient-to-l from-black/90 via-black/30 flex items-center justify-center h-[8rem] w-[3rem] rounded-l-md cursor-pointer",onClick:function(){var e;null===(e=h.current)||void 0===e||e.scrollBy({left:400,behavior:"smooth"})},children:(0,x.jsx)("img",{src:"/images/Icons/Right_arrow.svg",className:"w-[2rem] h-[3rem]"})})]})]}):null}n(2371);var k=n(1163),S=n(5152);function I(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
1t%2?I(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):I(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O=n.n(S)()((function(){return Promise.all([n.e(379),n.e(8627)]).then(n.bind(n,8627))}),{ssr:!1,loadableGenerated:{webpack:function(){return[8627]}}}),P=o.forwardRef((function(e,t){return(0,x.jsx)(O,E(E({},e),{},{forwardedRef:t}))}));P.displayName="ShakaPlayerWrapper";var C=n(1388),L=n(6388),D=n(775),R=n(8645),T=n(431),Z=n(3895);function G(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(e);t&&(a=a.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,a)}return n}function z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?G(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e){var t,n,r,s,c,f,y,j=(0,o.useState)(""),S=j[0],I=j[1],E=(0,o.useState)(""),O=(E[0],E[1],(0,o.useState)(1)),P=O[0],G=O[1],A=(0,o.useRef)(null),U=(0,o.useState)(0),W=(U[0],U[1],(0,o.useState)("")),B=W[0],M=W[1],V=(0,o.useState)(""),F=V[0],q=V[1],J=(0,o.useState)(""),K=J[0],H=J[1],X=(0,o.useState)(!1),Q=X[0],Y=X[1],$=(0,o.useState)(!1),ee=$[0],te=$[1],ne=(0,o.useState)(!1),ae=(ne[0],ne[1]),re=(0,o.useState)(""),le=(re[0],re[1]),se=(0,k.useRouter)(),ie=(0,o.useState)(e.contentId),oe=ie[0],ce=ie[1],ue=(0,o.useState)([]),de=ue[0],ve=ue[1],me=(0,o.useRef)({}),fe=(0,o.useState)(""),pe=fe[0],he=fe[1],ge=(0,o.useState)({}),be=ge[0],xe=ge[1],we=(0,o.useRef)(null),_e=(0,o.useRef)(null),ye=(0,o.useContext)(D.Z),je=(ye.showSignin,ye.setShowSignin),Ne=(0,o.useState)(!1),ke=Ne[0],Se=Ne[1],Ie=(0,o.useState)(!0),Ee=Ie[0],Oe=Ie[1],Pe=(0,o.useState)("CHECKING"),Ce=Pe[0],Le=Pe[1];(0,o.useEffect)((function(){var t=function(){var t=(0,l.Z)(i().mark((function t(){var n,a;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return n=(0,d.tN)().split("T")[0],a={},t.next=4,Promise.all(e.channelList.map(function(){var e=(0,l.Z)(i().mark((function e(t){var r,l,s,o,c,u,m;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.generalInfo._id.split("_")[0],e.prev=1,e.next=4,v.default.getChannelEPG(50,n,r);case 4:null!==(o=e.sent)&&void 0!==o&&null!==(l=o.data)&&void 0!==l&&null!==(s=l.results)&&void 0!==s&&s.length&&(c=o.data.results,u=(0,d.vj)(c,(0,d.tN)()),m=c.findIndex((function(e){var t;return e.generalInfo._id===(null===u||void 0===u||null===(t=u.generalInfo)||void 0===t?void 0:t._id)})),a[r]={currentProgram:u||null,nextProgram:m>-1&&c[m+1]||null}),e.next=11;break;case 8:e.prev=8,e.t0=e.catch(1),console.error("EPG failed for",r);case 11:case"end":return e.stop()}}),e,null,[[1,8]])})));return function(t){return e.apply(this,arguments)}}()));case 4:xe((function(e){return z(z({},e),a)}));case 5:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}();t()}),[e.channelList]),(0,o.useEffect)((function(){var t=function(){var t=(0,l.Z)(i().mark((function t(){var n,a,r,l,s;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.prev=0,r=(0,d.tN)().split("T")[0],t.next=4,v.default.getChannelEPG(50,r,e.contentId);case 4:(null===(l=t.sent)||void 0===l||null===(n=l.data)||void 0===n||null===(a=n.results)||void 0===a?void 0:a.length)>0&&(ve(l.data.results),s=l.data.results.find((function(t){return t.generalInfo._id.split("_")[0]===e.contentId}))||l.data.results[0],I(s),q({contentData:s}),M(s.generalInfo._id.split("_")[0]),ce(s.generalInfo._id.split("_")[0])),t.next=11;break;case 8:t.prev=8,t.t0=t.catch(0),console.error("EPG fetch failed",t.t0);case 11:case"end":return t.stop()}}),t,null,[[0,8]])})));return function(){return t.apply(this,arguments)}}();t()}),[e.contentId]),(0,o.useEffect)((function(){de.length>0&&Re(de)}),[de,oe]),(0,o.useEffect)((function(){var t,n,a;if(""!==(t=(0,d.lT)("properties"))&&(void 0!=(null===(n=t)||void 0===n?void 0:n.isKafkaEnabledInfo)&&null!=(null===(a=t)||void 0===a?void 0:a.isKafkaEnabledInfo)))try{"true"==JSON.parse(t.isKafkaEnabledInfo).isKafkaEnabled_web&&null!=JSON.parse(t.isKafkaEnabledInfo).web_info&&void 0!=JSON.parse(t.isKafkaEnabledInfo).web_info&&(me.current=JSON.parse(t.isKafkaEnabledInfo).web_info)}catch(s){console.error("Invalid JSON",s)}if(se&&se.query&&"AIRTELXT"==se.query.source&&sessionStorage.setItem("isAirtelXTUser",!0),se&&se.query&&"VIMTV"==se.query.source&&sessionStorage.setItem("isVI
1MTVUser",!0),y=JSON.parse(localStorage.getItem("toggleState")||"{}"),"/live"!==se.asPath&&null!==y&&void 0!==y&&G(y.i),e.isChannelListLoad&&(H("Play"),Y(!0)),te(!1),setTimeout((function(){if(!_.G6){var e=document.getElementsByClassName("cssforVideoJS");Array.from(e).forEach((function(e){e.remove()}))}}),500),setTimeout((0,l.Z)(i().mark((function e(){var t,n,a,r;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==(t=JSON.parse(localStorage.getItem("movData")))||void 0==t){e.next=15;break}if("Network Issue","true"!=(null===(n=me.current)||void 0===n?void 0:n.contentplayed)){e.next=14;break}return e.prev=4,e.next=7,(0,b.ry)(t.contentData,t.mediaCurrent,t.videoDuration,t.videoCurrent,t.watchedTime,t.start_time,t.end_time,t.reason,t.IP,t.seekRange,t.adsCount,t.unique_cust_id);case 7:200==(null===(r=e.sent)||void 0===r||null===(a=r.data)||void 0===a?void 0:a.code)&&localStorage.removeItem("movData"),e.next=14;break;case 11:e.prev=11,e.t0=e.catch(4),console.error("kafka contentPlayed failed:",e.t0);case 14:sessionStorage.removeItem("totalwatchtime");case 15:case"end":return e.stop()}}),e,null,[[4,11]])}))),2e3),"/live"==se.asPath){var r={contentposition:1,carouselposition:1,tab:"Live Tv",source:"List",sourcedetails:"Tamil",contentId:e.contentId};sessionStorage.setItem("contentEventData_v1",JSON.stringify(r))}}),[e.channelData]),(0,o.useEffect)((function(){return sessionStorage.removeItem("isPaidContent"),v.default.getMediaLinks(e.contentId,1,!1).then((function(t){if(t&&200===t.status){var n=(0,C.Z)(t.data.response,"A3s68aORSgHs$71P");null!==n&&200===n.code&&"SUCCESS"===n.status&&n.results.length>0&&(void 0!==n.results[0].videos?"ERR_GUEST_USER"===n.results[0].videos.status||"ERR_NON_LOGGED_USER"===n.results[0].videos.status?v.default.getContentDetails(e.contentId).then((function(e){var t,n,a,r;e&&e.data&&e.data.results.length>0&&("avod"==(null===(t=e.data.results)||void 0===t||null===(n=t[0])||void 0===n||null===(a=n.generalInfo)||void 0===a||null===(r=a.contentRights)||void 0===r?void 0:r[0])?(he("Watch Now"),Le("LOGIN")):(Le("SUBSCRIBE"),he("Subscribe to Watch"),sessionStorage.setItem("isPaidContent","true")))})):"ERR_USER_NOT_SUBSCRIBED"===n.results[0].videos.status||"ERR_UPGRADE_PREMIUM"===n.results[0].videos.status?(Le("SUBSCRIBE"),he("Subscribe to Watch"),sessionStorage.setItem("isPaidContent","true")):(he("Watch Now"),Le("ALLOW")):he("Watch Now"))}else he("Watch Now")})),H("Play"),Y(!0),function(){var e=window.player;!_.G6&&e?e.destroy():console.log("Shaka Player instance not found on window object.")}}),[e.contentId]);(0,o.useEffect)((function(){_e.current&&(_e.current.scrollLeft=0),Se(!1),setTimeout((function(){var e=_e.current;e&&Oe(e.scrollWidth>e.clientWidth)}),100)}),[e.channelList]);var De=function(t,n){G(t),localStorage.setItem("toggleState",JSON.stringify({i:t,lan:n})),e.getChannelListByLanguage(n,!1),le(n)},Re=function(e){if(Array.isArray(e)&&0!==e.length){var t=null,n=(0,d.vj)(e,(0,d.tN)());null!==n&&void 0!==n&&n.generalInfo&&(t=n,ae(!1)),!t&&oe&&(t=e.find((function(e){return e.generalInfo._id.split("_")[0]===oe})),ae(!0)),t||(t=e[0],ae(!0));var a=t.generalInfo._id.split("_")[0];if(I(t),q({contentData:t}),M(a),ce(a),"undefined"!==typeof clevertap)sessionStorage.getItem("prevPath")?sessionStorage.removeItem("prevPath"):((0,b.lM)(t),setTimeout((function(){(0,b.Vt)(t),(0,L.bv)("content_click",t)}),1500))}},Te=function(){"pause"==K&&A.current.clickPlayPauseButton(!0);var e=document.getElementById("player");if(e){var t=window.videojs(e);setTimeout((function(){t.reset()}),1e3)}var n=window.player;!_.G6&&n?n.destroy():console.log("Shaka Player instance not found on window object.")},Ze=function(){var t=(0,l.Z)(i().mark((function t(){var n;return i().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("/"!==se.asPath&&sessionStorage.setItem("redirectAfterLogin",se.asPath),"CHECKING"!==Ce){t.next=3;break}return t.abrupt("return");case 3:if(!_.tq){t.next=6;break}return null!==localStorage.getItem("Logged-in")&&void 0!==localStorage.getItem("Logged-in")&&"true"===localStorage.getItem("Logged-in")?(0,d.Tq)(e.contentId):je(!0),t.abrupt("return");case 6:if("LOGIN"!==Ce){t.next=9;break}return je(!0),t.abrupt("return");case 9:if("SUBSCRIBE"!==Ce){t.next=13;break}return t.next=12,Ge(!0);case 12:return t.abrupt("return");case 13:"ALLOW"===Ce&&(n=e.contentId,sessionStorage.setItem("fromWatchNow","true"),se.pu
1sh("/player/".concat(n)));case 14:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),Ge=function(){var e=(0,l.Z)(i().mark((function e(t){var n,a,r,l,s,o,c;return i().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n="",n=(0,d.lT)("properties"),a=(0,d.lT)("userSubscriptions"),null===localStorage.getItem("Logged-in")||void 0===localStorage.getItem("Logged-in")||"true"!==localStorage.getItem("Logged-in")){e.next=18;break}return e.next=6,(0,T.rZ)();case 6:if(e.t1=e.sent,e.t0="India"==e.t1,!e.t0){e.next=10;break}e.t0="true"==(null===(r=n)||void 0===r?void 0:r.enableNewSubscriptionFlow_IN);case 10:if(!e.t0){e.next=15;break}(0,b.hm)((0,d.kg)(),"na","na","na"),se.push("/subscription/plans"),e.next=16;break;case 15:"true"==(null===(l=n)||void 0===l?void 0:l.enableNewSubscriptionFlow_INT)?((0,b.hm)((0,d.kg)(),"na","na","na"),se.push("/subscription/plans")):v.default.billingNewPackages("",t&&null!==(s=null===a||void 0===a?void 0:a.userType)&&void 0!==s?s:"").then((function(e){e.data&&200===e.data.code&&"SUCCESS"===e.data.status?void 0!=e.data.ui.action&&"htmlOfferPage"==e.data.ui.action&&void 0!=e.data.ui.redirect&&""!=e.data.ui.action&&((0,b.hm)((0,d.kg)(),"na","na","na"),window.location=e.data.ui.redirect):console.log("Error : ",e.data.message)}));case 16:e.next=30;break;case 18:return e.next=20,(0,T.rZ)();case 20:if(e.t3=e.sent,e.t2="India"==e.t3,!e.t2){e.next=24;break}e.t2="true"==(null===(o=n)||void 0===o?void 0:o.enableNewSubscriptionFlow_IN);case 24:if(!e.t2){e.next=29;break}(0,b.hm)((0,d.kg)(),"na","na","na"),se.push("/subscription/plans"),e.next=30;break;case 29:"true"==(null===(c=n)||void 0===c?void 0:c.enableNewSubscriptionFlow_INT)?se.push("/subscription/plans"):je(!0);case 30:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),ze=null===(t=be[B])||void 0===t?void 0:t.nextProgram,Ae=null!==ze&&void 0!==ze&&null!==(n=ze.images)&&void 0!==n&&n.values?(0,m.Z)(ze.images.values,"mdpi","coverposter"):"";return(0,x.jsxs)(x.Fragment,{children:[e.channelList.length>0&&S?(0,x.jsxs)("div",{className:"min-h-auto bg-black text-white",children:[(0,x.jsxs)("div",{className:"relative w-full  aspect-[16/11]  smd:aspect-[16/9] lg:aspect-[16/8.4] bg-black overflow-hidden",children:[(0,x.jsx)("div",{id:"videojsPlayerDiv",className:"absolute inset-0 z-0 relative",children:(0,x.jsx)("div",{className:"video-wrapper",children:(0,x.jsx)("div",{className:"poster show'}",style:{backgroundImage:"url(".concat(function(e){var t=(0,m.Z)(e.values,"mdpi","coverposter");return""!=t?t:Z.Z.src}(F.contentData.images),")")}})})}),(0,x.jsxs)("div",{className:"absolute bottom-4 left-0 right-0 px-2 lg:px-4 \nflex flex-col items-center text-center\nmd:items-start md:text-left md:bottom-10 md:left-6\nz-20 space-y-3 md:space-y-4",children:[(0,x.jsx)("div",{className:"w-14 md:w-40 absolute left-2 lg:left-5 bottom-10 md:bottom-40",children:(0,x.jsx)("img",{src:(0,m.Z)((null===(r=S.images)||void 0===r?void 0:r.values)||[],"mdpi","thumbnail"),alt:S.globalServiceName,className:"w-full object-contain"})}),(0,x.jsxs)("div",{className:"flex gap-2 md:gap-3 justify-start w-full mt-2",children:[Q?(0,x.jsxs)("button",{onClick:function(){Ze()},className:"\nflex items-center gap-2\npx-3 md:px-6\npy-1 md:py-2\nmin-w-[5rem] md:min-w-[9rem]\ntext-[11px] md:text-base\nrounded-lg\nbg-white text-black\nfont-semibold \njustify-center\ntext-xs md:text-lg\n",children:[(0,x.jsx)("img",{src:"/images/Icons/play_btn_hover.svg",className:"w-4 md:w-5"}),pe]}):(0,x.jsxs)("button",{onClick:function(){return A.current.clickPlayPauseButton()},className:"\nflex items-center gap-2 md:gap-3\npx-3 md:px-6\npy-2 md:py-3\nmin-w-[7rem] md:min-w-[12rem]\njustify-center\nrounded-lg\nbg-white/20\nbackdrop-blur\nhover:bg-white/30\nfont-semibold\ntext-xs md:text-base\n",children:[(0,x.jsx)("img",{src:"pause"===K?g.Z.src:h.Z.src,className:"w-4 md:w-5"}),K]}),(0,x.jsxs)("button",{onClick:function(){te(!0),setTimeout((function(){var e;null===(e=we.current)||void 0===e||e.scrollIntoView({behavior:"smooth",block:"start"})}),100)},className:" flex items-center gap-2 md:gap-3 px-4 md:px-6 py-1 md:py-3 min-w-[5rem] md:min-w-[12rem] justify-center rounded-lg bg-white/20 backdrop-blur hover:bg-white/30 font-semibold text-sm md:text-base ",children:[(0,x.jsx)("img",{src:"/images/cdp_icons/ex
1plore_epg.svg",alt:"Explore EPG",className:"w-4 md:w-5"}),"Explore EPG"]})]}),(0,x.jsxs)("div",{className:"hidden md:block text-md space-y-2 max-w-2xl",children:[(0,x.jsxs)("div",{className:"flex items-center gap-4 text-white",children:[(0,x.jsx)("p",{className:"text-lg font-semibold whitespace-nowrap",children:S.globalServiceName}),(0,x.jsx)("span",{className:"opacity-60",children:"|"}),(0,x.jsxs)("p",{className:"truncate",children:[(0,x.jsx)("span",{className:"text-lg",children:"Now Showing :"})," ",(0,x.jsx)("span",{className:"font-medium text-lg",children:null===(s=S.generalInfo)||void 0===s?void 0:s.title})]})]}),(0,x.jsxs)("div",{className:"flex items-center gap-4 text-white/65",children:[(0,x.jsxs)("p",{className:"text-lg whitespace-nowrap",children:[(0,d.Fc)(S.startDate)," \u2013 ",(0,d.Fc)(S.endDate)]}),(0,x.jsx)("span",{className:"opacity-50",children:"|"}),(0,x.jsxs)("p",{className:"truncate",children:[(0,x.jsx)("span",{className:"opacity-80 text-lg",children:"Up Next :"})," ",(0,x.jsx)("span",{className:"font-medium text-lg",children:S.nextProgram})]})]})]})]}),!_.tq&&(0,x.jsxs)("div",{className:" flex\nabsolute bottom-12 smd:bottom-8 right-2 smd:right-4 lg:right-10 z-20 w-[9rem] h-[6rem] lg:w-[16rem] lg:h-[9rem] rounded-xl overflow-hidden border border-white/20 bg-black/40 backdrop-blur-sm\n",children:[Ae&&(0,x.jsx)("img",{src:Ae,alt:"Coming Up Next",className:"absolute inset-0 w-full h-full object-cover"}),(0,x.jsx)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/95 via-black/70 to-transparent"}),(0,x.jsxs)("div",{className:"relative z-10 flex flex-col justify-end p-6 text-white w-full justify-center items-center text-center",children:[(0,x.jsx)("span",{className:"uppercase tracking-wide text-sm font-semibold opacity-90 mb-1",children:"Up Next"}),(0,x.jsx)("span",{className:"text-xl font-semibold truncate",children:null===ze||void 0===ze||null===(c=ze.generalInfo)||void 0===c?void 0:c.title}),(0,x.jsxs)("span",{className:"text-sm opacity-80 mt-1",children:[(0,d.Fc)(null===ze||void 0===ze?void 0:ze.startDate)," \u2013 ",(0,d.Fc)(null===ze||void 0===ze?void 0:ze.endDate)]})]})]}),(0,x.jsx)("div",{className:" absolute bottom-0 left-0 w-full  h-[52%] bg-gradient-to-t from-black via-black/20 to-transparent pointer-events-none z-[5] opacity-100 transition-opacity duration-200 "})]}),(0,x.jsx)("div",{className:"px-2 md:px-2 lg:px-4 md:px-6 mt-4 md:mt-6 lg:pl-10 sticky top-0 bg-black z-30",children:(0,x.jsxs)("div",{className:"relative",children:[(0,x.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-[3px] bg-white/30"}),(0,x.jsx)("div",{className:"flex items-center gap-6 text-base md:text-lg relative overflow-x-auto no-scrollbar pt-2",children:e.languages&&e.languages.map((function(e,t){var n=P=="".concat(t+1),a=e.term.charAt(0).toUpperCase()+e.term.slice(1).toLowerCase();return(0,x.jsxs)("button",{onClick:function(){return De("".concat(t+1),"".concat(e.term))},className:"relative pb-3 transition-colors duration-200 whitespace-nowrap font-semibold ".concat(n?"text-yellow-400 font-medium":"text-white/60 hover:text-white"),children:[a,n&&(0,x.jsx)("span",{className:"absolute left-0 bottom-0 w-full h-[3px] bg-yellow-400"})]},t)}))})]})}),(0,x.jsx)("div",{className:"md:px-6 md:mt-6 pt-4",children:(0,x.jsxs)("div",{className:"max-w-[100vw] overflow-hidden relative",children:[ke&&(0,x.jsx)("div",{className:"hidden md:flex absolute left-0 top-1/2 -translate-y-1/2 z-20  bg-gradient-to-r from-black/90 via-black/30  items-center justify-center  h-[8rem] w-[3rem] rounded-r-md cursor-pointer",onClick:function(){var e;null===(e=_e.current)||void 0===e||e.scrollBy({left:-500,behavior:"smooth"})},children:(0,x.jsx)("img",{src:"/images/Icons/Left_arrow.svg",className:"w-[2rem] h-[3rem]"})}),(0,x.jsx)("div",{ref:_e,onScroll:function(){var e=_e.current;if(e){var t=e.scrollLeft,n=e.scrollWidth,a=e.clientWidth;Se(t>5),Oe(t+a<n-5)}},className:" flex gap-6 overflow-x-auto overflow-y-hidden scroll-smooth hide-scrollbar py-2 pb-4 pl-5 pr-6 ",children:e.channelList.map((function(e,t){var n,a,r=e.generalInfo._id.split("_")[0],l=B===r,s=be[r],i=null!==s&&void 0!==s&&null!==(n=s.currentProgram)&&void 0!==n&&null!==(a=n.images)&&void 0!==a&&a.values?(0,m.Z)(s.currentProgram.images.values,"mdpi","thumbnail"):null;return(0,x.jsx)("div",{className:"shrink-0",onClick:function(){var n;return(0,d.AF)(t,e.generalInfo._id,1,"List",null===e||void 0===e||null===(n=e.content)||void 0===n?void 0:n.language[0])},style:{pointerEvents:l?"none":"auto"},children:(0,x.jsx)(p(),{href:"/live/".concat((0,d.lV)(e.globalServiceName||e.generalInfo.title),"-").concat(e.content.language||"","-live/").concat(r,"/").concat((0,d.lV)(e.globalServiceName||e.generalInfo.title)),children:(0,x.jsx)("a",{onClick:Te,children:(0,x.jsxs)("div",{className:"\n                                relative overflow-hidden\n                                w-[7rem] md:w-[9rem] lg:w-[13rem]\n                                aspect-square\n                                rounded-xl\n                                bg-[###]\n                                ".concat(l?"ring-2 ring-yellow-400":"border-[3px] border-white/30","\n                                cursor-pointer\n                              "),children:[(0,x.jsx)("div",{className:"absolute inset-0 flex items-center justify-center p-6",children:(0,x.jsx)("div",{className:"w-[90%] h-[90%] flex items-center justify-center",children:i&&(0,x.jsx)("img",{src:i,alt:"Channel",className:"max-w-full max-h-full object-contain"})})}),(0,x.jsx)("div",{className:"relative z-10 w-full h-full overflow-hidden rounded-lg",children:e.generalInfo.contentRights&&e.generalInfo.contentRights.length>0&&"avod"===e.generalInfo.contentRights[0]&&(0,x.jsx)("div",{className:" absolute top-[clamp(6px,0.5vw,10px)] right-[clamp(0px,0vw,10px)] w-[clamp(35px,6vw,50px)] h-[clamp(30px,4vw,40px)] transition-all duration-100 ease-in-out z-[50] ",children:(0,x.jsx)(u(),{src:"/images/Icons/Free_tag.png",alt:"free_badge",layout:"fill",className:"object-cover !rounded-none"})})}),(0,x.jsxs)("div",{className:"absolute bottom-1 right-1 flex items-center gap-1 text-[10px] px-2 py-[3px] rounded-full bg-black/70 text-white",children:[(0,x.jsxs)("span",{className:"relative flex h-2 w-2",children:[(0,x.jsx)("span",{className:"absolute inline-flex h-full w-full rounded-full bg-red-400 opacity-75 animate-ping"}),(0,x.jsx)("span",{className:"relative inline-flex h-2 w-2 rounded-full bg-red-500"})]}),"Live"]})]})})})},t)}))}),Ee&&(0,x.jsx)("div",{className:"hidden md:flex absolute right-0 top-1/2 -translate-y-1/2 z-20 bg-gradient-to-l from-black/90 via-black/30 items-center justify-center h-[8rem] w-[3rem] rounded-l-md cursor-pointer",onClick:function(){var e;null===(e=_e.current)||void 0===e||e.scrollBy({left:500,behavior:"smooth"})},children:(0,x.jsx)("img",{src:"/images/Icons/Right_arrow.svg",className:"w-[2rem] h-[3rem]"})})]})}),ee&&(_.tq?(0,x.jsxs)("div",{className:"fixed inset-0 z-[999999] flex items-end ",children:[(0,x.jsx)("div",{className:"absolute inset-0 bg-black/70",onClick:function(){return te(!1)}}),(0,x.jsxs)("div",{className:"relative w-full max-h-[50vh] bg-[#212121] lg:bg-black rounded-t-2xl overflow-y-auto animate-epgSlide",children:[(0,x.jsxs)("div",{className:"flex items-center justify-between px-4 py-3",children:[(0,x.jsx)("h3",{className:"text-white text-md font-semibold",children:null===S||void 0===S?void 0:S.globalServiceName}),(0,x.jsx)("button",{onClick:function(){return te(!1)},className:"text-white/70 hover:text-white text-xl",children:"\u2715"})]}),(0,x.jsx)(N,{closeprogramguide:te,activeChannelId:B,activeChannelData:S}
1)]})]}):(0,x.jsx)("div",{ref:we,className:"relative overflow-visible z-[99999999] bg/white",children:(0,x.jsx)(N,{closeprogramguide:te,activeChannelId:B,activeChannelData:S})}))]}):(0,x.jsx)(w,{}),(null===(f=e.channelList)||void 0===f?void 0:f.length)>0&&Object.keys(be).length>0&&(0,x.jsx)(R.Z,{channelList:e.channelList,playingOtherchannelListdata:Object.fromEntries(Object.entries(be).map((function(e){var t=(0,a.Z)(e,2);return[t[0],t[1].currentProgram]}))),carouselTitle:"Playing Now On Other Channels",noLiveTv:!e.channelList||0===e.channelList.length})]})}},3579:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n=l.default,r={loading:function(e){e.error,e.isLoading;return e.pastDelay,null}};e instanceof Promise?r.loader=function(){return e}:"function"===typeof e?r.loader=e:"object"===typeof e&&(r=a({},r,e));!1;(r=a({},r,t)).loadableGenerated&&delete(r=a({},r,r.loadableGenerated)).loadableGenerated;if("boolean"===typeof r.ssr&&!r.suspense){if(!r.ssr)return delete r.ssr,s(n,r);delete r.ssr}return n(r)},t.noSSR=s;var a=n(6495).Z,r=n(2648).Z,l=(r(n(7294)),r(n(3668)));function s(e,t){return delete t.webpack,delete t.modules,e(t)}("function"===typeof t.default||"object"===typeof t.default&&null!==t.default)&&"undefined"===typeof t.default.__esModule&&(Object.defineProperty(t.default,"__esModule",{value:!0}),Object.assign(t.default,t),e.exports=t.default)},3982:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.LoadableContext=void 0;var a=(0,n(2648).Z)(n(7294)).default.createContext(null);t.LoadableContext=a},3668:function(e,t,n){"use strict";var a=n(3227),r=n(8361);function l(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"===typeof e)return s(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return s(e,t)}(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var a=0,r=function(){};return{s:r,n:function(){return a>=e.length?{done:!0}:{done:!1,value:e[a++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var l,i=!0,o=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return i=e.done,e},e:function(e){o=!0,l=e},f:function(){try{i||null==n.return||n.return()}finally{if(o)throw l}}}}function s(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,a=new Array(t);n<t;n++)a[n]=e[n];return a}Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=n(6495).Z,o=(0,n(2648).Z)(n(7294)),c=n(3982),u=n(7294).useSyncExternalStore,d=[],v=[],m=!1;function f(e){var t=e(),n={loading:!0,loaded:null,error:null};return n.promise=t.then((function(e){return n.loading=!1,n.loaded=e,e})).catch((function(e){throw n.loading=!1,n.error=e,e})),n}var p=function(){function e(t,n){a(this,e),this._loadFn=t,this._opts=n,this._callbacks=new Set,this._delay=null,this._timeout=null,this.retry()}return r(e,[{key:"promise",value:function(){return this._res.promise}},{key:"retry",value:function(){var e=this;this._clearTimeouts(),this._res=this._loadFn(this._opts.loader),this._state={pastDelay:!1,timedOut:!1};var t=this._res,n=this._opts;t.loading&&("number"===typeof n.delay&&(0===n.delay?this._state.pastDelay=!0:this._delay=setTimeout((function(){e._update({pastDelay:!0})}),n.delay)),"number"===typeof n.timeout&&(this._timeout=setTimeout((function(){e._update({timedOut:!0})}),n.timeout))),this._res.promise.then((function(){e._update({}),e._clearTimeouts()})).catch((function(t){e._update({}),e._clearTimeouts()})),this._update({})}},{key:"_update",value:function(e){this._state=i({},this._state,{error:this._res.error,loaded:this._res.loaded,loading:this._res.loading},e),this._callbacks.forEach((function(e){return e()}))}},{key:"_clearTimeouts",value:function(){clearTimeout(this._delay),clearTimeout(this._timeout)}},{key:"getCurrentValue",value:function(){return this._state}},{key:"subscribe",value:function(e){var t=this;return this._callbacks.add(e),function(){t._callbacks.delete(e)}}}]),e}();function h(e){return function(e,t){var n=Object.assign({loader:null,loading:null,delay:200,timeout:null,webpack:null,modules:null,suspense:!1},t);n.suspense&&(n.lazy=o.default.lazy(n.loader));var a=null;function r(){if(!a){var t=new p(e,n);a={getCurrentValue:t.getCurrentValue.bind(t),subscribe:t.subscribe.bind(t),retry:t.retry.bind(t),promise:t.promise.bind(t)}}return a.promise()}if(!m){var s=n.webpack?n.webpack():n.modules;s&&v.push((function(e){var t,n=l(s);try{for(n.s();!(t=n.n()).done;){var a=t.value;if(-1!==e.indexOf(a))return r()}}catch(i){n.e(i)}finally{n.f()}}))}function d(){r();var e=o.default.useContext(c.LoadableContext);
1e&&Array.isArray(n.modules)&&n.modules.forEach((function(t){e(t)}))}var f=n.suspense?function(e,t){return d(),o.default.createElement(n.lazy,i({},e,{ref:t}))}:function(e,t){d();var r=u(a.subscribe,a.getCurrentValue,a.getCurrentValue);return o.default.useImperativeHandle(t,(function(){return{retry:a.retry}}),[]),o.default.useMemo((function(){return r.loading||r.error?o.default.createElement(n.loading,{isLoading:r.loading,pastDelay:r.pastDelay,timedOut:r.timedOut,error:r.error,retry:a.retry}):r.loaded?o.default.createElement((t=r.loaded)&&t.__esModule?t.default:t,e):null;var t}),[e,r])};return f.preload=function(){return r()},f.displayName="LoadableComponent",o.default.forwardRef(f)}(f,e)}function g(e,t){for(var n=[];e.length;){var a=e.pop();n.push(a(t))}return Promise.all(n).then((function(){if(e.length)return g(e,t)}))}h.preloadAll=function(){return new Promise((function(e,t){g(d).then(e,t)}))},h.preloadReady=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return new Promise((function(t){var n=function(){return m=!0,t()};g(v,e).then(n,n)}))},window.__NEXT_PRELOADREADY=h.preloadReady;var b=h;t.default=b},1421:function(e){e.exports={livetv:"livetv_livetv__R_PjQ",livetv_data:"livetv_livetv_data__I_kVs",livetv_detail:"livetv_livetv_detail__3H843",livetv_videoplayer:"livetv_livetv_videoplayer__iLlbr",livetv_channels_data:"livetv_livetv_channels_data__Wfycb",livetv_description_data:"livetv_livetv_description_data__o94XG",contentTitlelive:"livetv_contentTitlelive__47kzu",livetv_play:"livetv_livetv_play__3kIQb",livetv_play_button:"livetv_livetv_play_button__J_Cz8",explore:"livetv_explore__8XENs",explore_button:"livetv_explore_button__VJIb7",explore_epg_title:"livetv_explore_epg_title__sY9xH",live_tabs:"livetv_live_tabs__6I_md",bloc_tabs:"livetv_bloc_tabs__VMluf",tabs_button:"livetv_tabs_button__t7aG5",active_tabs:"livetv_active_tabs__c26ya",content_tabs_carousels:"livetv_content_tabs_carousels__2QrU8",content_tabs:"livetv_content_tabs__enjCJ",active_content:"livetv_active_content__dWmT2",channels:"livetv_channels__BhPqu",active:"livetv_active__2fomU",livetv_channels_titles:"livetv_livetv_channels_titles__qLE0j",videoplayer:"livetv_videoplayer__bmd_Y",live_playingnow:"livetv_live_playingnow__1rC0X"}},5152:function(e,t,n){e.exports=n(3579)}}]);

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.