1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2766],{9788:function(e,t,n){"use strict";n.d(t,{Z:function(){return f}});var a=n(7294),r=n(3935),o=n(8233),s=(n(3895),n(5516)),i=n(732),l=n(6573),c=n(8799),d=n(6388),u=n(5658),p=n(5893);var f=function(e){var t=e.contentDetails,n=e.closeModal,f=e.portalTarget,h=(0,a.useState)(null),m=h[0],v=h[1],g=window.location.pathname.includes("/micro-drama"),x=g?"/images/shorts_icons/fallback/shorts_portrait_fallback.png":"/images/placeholders/placeholder_coverposter.png";(0,a.useEffect)((function(){var e=t.contentData,n=e.images;if(n&&n.values&&n.values.length>0){var a=(0,o.Z)(n.values,"hdpi","thumbnail")||(0,o.Z)(n.values,"mdpi","thumbnail");if(a)return void v(a)}if(g&&e.globalServiceId){var r=e.globalServiceId.replace("GID_","");u.default.shortsGetContentDetails(r).then((function(e){var t,n,a,r,s,i;if(200===(null===e||void 0===e||null===(t=e.data)||void 0===t?void 0:t.code)&&(null===e||void 0===e||null===(n=e.data)||void 0===n||null===(a=n.results)||void 0===a||null===(r=a[0])||void 0===r||null===(s=r.images)||void 0===s||null===(i=s.values)||void 0===i?void 0:i.length)>0){var l=(0,o.Z)(e.data.results[0].images.values,"hdpi","thumbnail")||(0,o.Z)(e.data.results[0].images.values,"mdpi","thumbnail");v(l||x)}else v(x)})).catch((function(){return v(x)}))}else v(x);(0,d.bv)("share",null,{extraInfo:{share_platform:"Facebook, Twitter",share_method:"direct share"}})}),[]);var b=m||x,y=function(){var e,n="avod"===(null===(e=t.contentData.generalInfo.contentRights)||void 0===e?void 0:e[0])?"free":"paid";(0,s.vm)(t.contentData._id,t.contentData.generalInfo.title,"na",n,t.contentData.generalInfo.type,(0,i.fK)(t.contentData.content.language))};return(0,r.createPortal)((0,p.jsxs)(p.Fragment,{children:[(0,p.jsx)("div",{className:"fixed inset-0 bg-black/70 z-[100000]",onClick:n}),(0,p.jsx)("div",{className:"fixed inset-0 z-[100001] flex items-center justify-center px-4",children:(0,p.jsxs)("div",{className:"bg-black/40 backdrop-blur-3xl border border-white/20 text-white w-full max-w-lg rounded-lg p-6 relative shadow-xl",style:{boxShadow:"0 8px 32px rgba(0,0,0,0.6)"},children:[(0,p.jsx)("button",{onClick:n,className:"absolute top-3 right-4 text-3xl hover:text-gray-300",children:"\xd7"}),(0,p.jsx)("div",{className:"text-center mb-4",children:(0,p.jsxs)("p",{className:"text-md font-semibold mt-1",children:["Check out ",(0,p.jsx)("span",{className:"text-[#fce45e]",children:t.contentData.generalInfo.title})," on ",window.location.pathname.includes("/micro-drama")?"Sun NXT Shorts":"Sun NXT"]})}),(0,p.jsxs)("div",{className:"text-center mb-4",children:[(0,p.jsx)("img",{src:b,alt:"share",className:"mx-auto max-h-60 rounded"}),(0,p.jsx)("p",{className:"text-sm mt-3 text-gray-300 line-clamp-3",children:t.contentData.generalInfo.description})]}),(0,p.jsxs)("div",{className:"flex justify-center gap-6 mb-2",children:[(0,p.jsx)(l.Z,{url:window.location.href.replace(/^http:\/\//i,"https://"),quote:"Watch "+t.contentData.generalInfo.title,onClick:y,children:(0,p.jsx)("img",{src:"/images/shorts_icons/facebook_coloured.svg",alt:"facebook",className:"w-8 h-8"})}),(0,p.jsx)(c.Z,{url:window.location.href.replace(/^http:\/\//i,"https://"),title:"Watch "+t.contentData.generalInfo.title,onClick:y,children:(0,p.jsx)("img",{src:"/images/shorts_icons/twitter_coloured.svg",alt:"x",className:"w-8 h-8"})})]})]})})]}),document.fullscreenElement||document.webkitFullscreenElement||f||document.body)}},5012:function(e,t,n){"use strict";n.d(t,{Z:function(){return p}});var a=n(7294),r=n(5675),o=n.n(r),s={src:"/_next/static/media/placeholder_16x90.ef62fec0.png",height:405,width:720,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFCAAAAABd+vKJAAAAK0lEQVR42hXJwQkAIAzF0A5j0oo3cf/Z5EMOgVciqZDZaMm822T6jBhaIB+HzwYIDqq+8QAAAABJRU5ErkJggg=="},i=n(1523),l=n(3895),c=n(1341),d=n(5518),u=n(5893),p=function(e){var t,n,r,p=e.imgPath,f=e.layOut,h=e.altTitle,m=(0,a.useState)(""),v=m[0],g=m[1];if((0,a.useEffect)((function(){g(p)}),[p]),"fill"===f||"promotionFullWidthRailV1"===f||"subscriptionRedirectionRail"===f||"shortsRedirectionRail"==f){var x="promotionFullWidthRailV1"===f||"subscriptionRedirectionRail"===f||"shortsRedirectionRail"==f?d.tq?"25%":"16.66%":void 0;return(0,u.jsx)("div",{style:{position:"relative",width:"100%",height:"fill"===f?"100%":"
10",paddingBottom:x},children:(0,u.jsx)(o(),{src:v||s,alt:h,layout:"fill",objectFit:"contain",onError:function(){return g(s)},unoptimized:!0})})}"banner"==f?(r=s,t=d.tq?"500":"960",n=d.tq?"750":"540",v||g(s)):"promotionFullWidthRailV1"==f||"subscriptionRedirectionRail"==f||"shortsRedirectionRail"==f?(r=s,t="1800",n="300",v||g(s)):"horizontalListMediumItem"==f||"horizontalListBigItem"==f||"rankingRailThumbItemV1"==f||"anchoredRail"==f?(r=i.Z,t="250",n="375",v||g(i.Z)):"weeklyTrendingSmallItem"==f||"continueWatching"==f||"landscapeListSmallItem"==f||"liveChannelsSmall"==f?(r=l.Z,t="640",n="360",v||g(l.Z)):"smallSquareItemV2"==f?(r=l.Z,t="200",n="200",v||g(l.Z)):"channelImg"==f||"nestedCarousel"==f?(r=c.Z,t="200",n="200",v||g(c.Z)):"Singlebanner"==f?(r=c.Z,t="640",n="120",v||(c.Z,function(e){throw new TypeError('"'+e+'" is read-only')}("imgSrc"))):"standardListItem"==f&&(r=l.Z,t="640",n="480");var b="string"===typeof v&&v.startsWith("http");return(0,u.jsx)(o(),{src:v,alt:h,layout:"responsive",width:t,height:n,placeholder:b?void 0:"blur",blurDataURL:b?void 0:r,onError:function(){return g(r)},unoptimized:!0})}},1877:function(e,t,n){"use strict";n.d(t,{m:function(){return l},z:function(){return i}});var a=n(29),r=n(7794),o=n.n(r),s=n(5658),i=function(){var e=(0,a.Z)(o().mark((function e(){var t,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,s.default.getResults();case 3:if("SUCCESS"===(null===(n=e.sent)||void 0===n||null===(t=n.data)||void 0===t?void 0:t.status)){e.next=6;break}return e.abrupt("return",{});case 6:return e.abrupt("return",n.data.results.reduce((function(e,t){var n,a=null===(n=t.generalInfo)||void 0===n?void 0:n._id;return a&&(e[a]=!0),e}),{}));case 9:return e.prev=9,e.t0=e.catch(0),console.error("Failed to load watchlist",e.t0),e.abrupt("return",{});case 13:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}(),l=function(){var e=(0,a.Z)(o().mark((function e(){var t,n;return o().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,s.default.shortsGetWatchlist();case 3:if("SUCCESS"===(null===(n=e.sent)||void 0===n||null===(t=n.data)||void 0===t?void 0:t.status)){e.next=6;break}return e.abrupt("return",{});case 6:return e.abrupt("return",n.data.results.reduce((function(e,t){var n,a,r=t._id||(null===(n=t.generalInfo)||void 0===n?void 0:n._id)||t.contentId;return r&&(e[r]=!0),null!==(a=t.generalInfo)&&void 0!==a&&a._id&&t.generalInfo._id!==r&&(e[t.generalInfo._id]=!0),e}),{}));case 9:return e.prev=9,e.t0=e.catch(0),console.error("Failed to load shorts watchlist",e.t0),e.abrupt("return",{});case 13:case"end":return e.stop()}}),e,null,[[0,9]])})));return function(){return e.apply(this,arguments)}}()},7122:function(e,t,n){"use strict";n.r(t),n.d(t,{__N_SSP:function(){return ve},default:function(){return ge}});var a=n(29),r=n(9499),o=n(7794),s=n.n(o),i=n(6171),l=n(23),c=n(7294),d=n(2777),u=n(2262),p=n(748),f=n(5959),h=n(3553),m=n(7247),v=n(1664),g=n.n(v),x=n(6066),b=n(9761),y=n.n(b),w=n(1341),_=(n(5096),n(5893));function j(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 S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?j(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=(0,m.Z)(e);if(t){var r=(0,m.Z)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return(0,h.Z)(this,n)}}c.Component;
1var N=n(1523),I=n(3895),k=n(7751),C=n(732),A=n(5516),E=n(775),O=n(1877),Z=n(2920),T=n(5658),R=n(6388);function P(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 M(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function B(e){var t,n,o=(0,c.useRef)(null),i=(0,c.useRef)(null),l=(0,c.useContext)(E.Z).setShowSignin,d=(0,c.useState)({}),u=d[0],p=d[1],f=(0,c.useState)(null),h=f[0],m=f[1],v=(0,c.useState)(null),b=v[0],w=v[1],j=(0,c.useState)(window.innerWidth),S=j[0],D=j[1],P=(0,c.useState)(null),B=P[0],U=P[1],L=(0,c.useState)(0),W=L[0],q=L[1],F=window.innerWidth<1024;(0,c.useEffect)((function(){var e=function(){return D(window.innerWidth)};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[]),(0,c.useEffect)((function(){var e=function(){var e=(0,a.Z)(s().mark((function e(){var t;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,O.z)();case 2:t=e.sent,p(t);case 4:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}();e()}),[]);var V=S<=340?2.4:S<=360||S<=375?2.7:S<=420?3.1:S<=480?3.3:S<=640?4.2:S<=768?5.8:S<=1024?6.5:"coverposter"===e.placeholder?6.3:7.1,G=Math.ceil(V),K=W+G-1,Q={dots:!1,infinite:!1,speed:450,slidesToShow:V,slidesToScroll:V>5?3:2,arrows:!1,swipeToSlide:!0,beforeChange:function(e,t){return q(t)}},J=function(e,t,n){try{var a=(null===e||void 0===e?void 0:e.values)&&e.values.find((function(e){return e.profile===t&&e.type===n}));return a?a.link:"thumbnail"===n?N.Z.src:I.Z.src}catch(r){return console.log(r),"thumbnail"===n?N.Z.src:I.Z.src}},Y=function(){var e=document.getElementById("player");e&&window.videojs&&window.videojs(e).pause();var t=document.getElementsByClassName("shaka-video")[0];t&&t.pause()},H=function(){var e=(0,a.Z)(s().mark((function e(t,n){var a,o;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(localStorage.getItem("Logged-in")){e.next=3;break}return l(!0),e.abrupt("return");case 3:return e.next=5,T.default.sendFavoriteStatus(t._id);case 5:200!==(a=e.sent).data.code&&201!==a.data.code||"SUCCESS"!==a.data.status||(o=a.data.message.includes("Added"),p((function(e){return M(M({},e),{},(0,r.Z)({},t._id,o))})),(0,Z.Am)(a.data.message,{position:"bottom-center",autoClose:2e3,hideProgressBar:!0}),(0,R.bv)("watchlist_lifecycle",null,{extraInfo:{login_type:"password",watchlist_state:o?"Added":"Removed"}}),(0,A.UO)(o?"Added":"Removed",n,t._id,(0,C.fK)(t.content.language),(0,C.OT)(t.content.genre),"Banner","Banner",t.globalServiceId||"na"));case 7:case"end":return e.stop()}}),e)})));return function(t,n){return e.apply(this,arguments)}}(),z=(null===(t=e.carouselContents)||void 0===t?void 0:t.length)||0,X=z-G;return(0,_.jsxs)("div",{children:[(0,_.jsx)(Z.Ix,{}),(null===(n=e.carouselContents)||void 0===n?void 0:n.length)>0&&(0,_.jsx)("div",{className:"".concat(y().layout," force-mobile-left-margin-zero pl-2"),children:(0,_.jsxs)("div",{className:"pb-[20px]",children:[(0,_.jsxs)("div",{className:"flex w-full items-center justify-between mb-4 relative",children:["true"!==e.hideTitle&&(0,_.jsx)("span",{className:"text-white text-lg font-semibold",children:e.title}),e.carouselContents.length>7&&"true"!==e.hideTitle&&(0,_.jsx)(g(),{href:(0,k.s1)(e),children:(0,_.jsx)("a",{onClick:function(){var e=JSON.parse(sessionStorage.getItem("contentEventData_v1")||"{}");e&&(e.source="View All"),sessionStorage.setItem("contentEventData_v1",JSON.stringify(e)),setTimeout((function(){(0,A.fh)()}),1500)},children:(0,_.jsx)("div",{className:" right-0 top-0 flex items-center space-x-2 pr-4 cursor-pointer",children:(0,_.jsx)("button",{type:"button",className:"text-white px-2 text-sm font-bold cursor-pointer",children:"View All"})})})})]}),(0,_.jsxs)("div",{className:"".concat(y().carousel_data," overflow-hidden relative mb-3"),children:[(0,_.jsx)("div",{className:"hidden lg:block ",children:z>G&&W>0&&(0,_.jsx)("div",{className:"absolute top-1/2 -translate-y-[50%] bg-gradient-to-r from-black/90 from-[15%] via-black/30 via-[100%] flex items-center justify-center h-[8rem] w-[3rem] z-20 rounded-r-md cursor-pointer",style:{display:"flex"},onClick:function(){var e;return null===(e=o.current)||void 0===e?void 0:e.slickPrev()},children:(0,_.jsx)("img",{src:"/images/Icons/Left_arrow.svg",className:"w-[2rem] h-[3rem] cursor-pointer",alt:"Left Arrow"})})}),(0,_.jsx)(x.Z,M(M({ref:o},Q),{},{className:"!overflow-visible [&_.slick-list]:overflow-visible [&_.slick-track]:flex",children:e.carouselContents.map((function(t,n){var a=B===n,r=null!==B&&B>=K-1,o="group relative mr-2 transition-all duration-200 ease-linear overflow-visible";
1null!==B&&!r&&n>B&&(o+=" translate-x-[clamp(120px,21.5vw,680px)]"),(null!==B&&r&&n<B||null!==B&&r&&a)&&(o+=" -translate-x-[clamp(200px,21.5vw,420px)]");var s=F?{}:{onMouseEnter:function(){clearTimeout(i.current),i.current=setTimeout((function(){return U(n)}),400)},onMouseLeave:function(){clearTimeout(i.current),U(null)}},l=J(t.images,"hdpi","thumbnail"),c=J(t.images,"hdpi","coverposter"),d=(0,C.g9)(t.content.duration,!0),p="w-[clamp(118px,12.8vw,280px)]";return(0,_.jsx)("div",M(M({className:o},s),{},{onClick:function(){(0,C.Eu)(n,t.generalInfo._id,1,"carousel","similar content"),(0,C.AF)(n,t.generalInfo._id,1,"carousel",e.title)},children:(0,_.jsx)("a",{href:(0,k.Ct)(t),className:"block",onClick:Y,children:(0,_.jsxs)("div",{className:"\n relative rounded-lg overflow-visible\n ".concat(p," ").concat("h-[clamp(180px,18.5vw,380px)]","\n ").concat(a?"lg:group-hover:w-[clamp(120px,34.2vw,650px)]":p,"\n transition-[width] duration-150 ease-[
1cubic-bezier(0.23,1,0.32,1)]\n will-change-transform\n "),children:[(0,_.jsx)("img",{src:l,className:"\n absolute inset-0 w-full h-full object-cover rounded-lg\n transition-opacity duration-150\n ".concat(a?"opacity-0":"opacity-100","\n ")}),(0,_.jsx)("img",{src:c,className:"\n absolute inset-0 w-full h-full object-cover rounded-lg\n transition-opacity duration-150\n ".concat(a?"opacity-100":"opacity-0","\n ")}),a&&(0,_.jsxs)("div",{className:"absolute inset-0 bg-gradient-to-t from-black/90 via-black/40 to-transparent flex flex-col justify-end p-4 text-white",children:[(0,_.jsxs)("ul",{className:"flex flex-wrap items-center text-white text-l p-0 m-0 gap-x-2 gap-y-1 mb-2",children:[(0,_.jsx)("li",{children:(0,C.So)(t.content.releaseDate)}),(0,_.jsx)("li",{children:"|"}),(0,_.jsx)("li",{children:(0,C.Yq)(t.content.language)}),(0,_.jsx)("li",{children:"|"}),(0,_.jsx)("li",{children:(0,C.OT)(t.content.genre)}),(0,_.jsx)("li",{children:"|"}),d.totalminutes>0&&(0,_.jsxs)("li",{children:[d.totalminutes," mins"]})]}),(0,_.jsxs)("div",{className:"w-full flex space-x-3",children:[(0,_.jsxs)("div",{className:"\n bg-white/30 hover:bg-white hover:text-black\n w-[20rem] h-[3rem] rounded-[6px]\n border-[0.5px] border-white\n flex items-center justify-center\n font-bold transition-all duration-200\n ".concat(b===n?"bg-white text-black":"","\n "),onMouseEnter:function(){return w(n)},onMouseLeave:function(){return w(null)},children:[(0,_.jsx)("img",{src:b===n?"/images/Icons/play_btn_hover.svg":"/images/Icons/Play.svg",alt:"Play Icon",className:"w-6 h-6 mr-2"}),(0,_.jsx)("span",{className:"text-base font-bold",children:"Watch Now"})]}),(0,_.jsxs)("div",{className:"relative flex items-center",onMouseEnter:function(){return m(n)},onMouseLeave:function(){return m(null)},children:[(0,_.jsx)("div",{className:"\n absolute bottom-[110%] left-1/2 -translate-x-1/2 \n px-3 py-2 rounded-md bg-white font-semibold text-black text-sm\n whitespace-nowrap z-50 \n transition-opacity duration-200\n ".concat(h===n?"opacity-100":"opacity-0","\n "),children:u[t.generalInfo._id]?"Remove from Watchlist":"Add to Watchlist"}),(0,_.jsx)("button",{onClick:function(e){e.stopPropagation(),e.preventDefault(),H(t.generalInfo,t.generalInfo.title)},className:"\n bg-white/30 hover:bg-white w-[2.5rem] h-[3rem]\n rounded-[6px] border-[0.5px] border-white\n flex justify-center items-center\n transition-all duration-200\n ".concat(h===n?"bg-white":"","\n "),children:(0,_.jsx)("img",{src:u[t.generalInfo._id]?h===n?"/images/Icons/Tick_black.svg":"/images/Icons/Tick.svg":h===n?"/images/Icons/Watchlist_hover.svg":"/images/Icons/Wishlist.svg",alt:"watchlist",className:"w-[20px] h-[20px]"})})]})]})]})]})})}),n)}))})),(0,_.jsx)("div",{className:"hidden lg:block",children:z>G&&W<X&&(0,_.jsx)("div",{className:"absolute right-[0%] top-1/2 -translate-y-[50%] bg-gradient-to-l from-black/90 from-[15%] via-black/30 via-[100%] flex items-center justify-center h-[8rem] w-[3rem] z-20 rounded-l-md cursor-pointer",onClick:function(){var e;return null===(e=o.current)||void 0===e?void 0:e.slickNext()},children:(0,_.jsx)("img",{src:"/images/Icons/Right_arrow.svg",className:"w-[2rem] h-[3rem] cursor-pointer",alt:"Right Arrow"})})})]})]})})]})}function U(e){var t=(0,c.useState)(4),n=t[0],a=t[1],r=function(){var e=document.getElementById("player");e&&window.videojs(e).pause();var t=document.getElementsByClassName("shaka-video")[0];t&&t.pause()};return(0,_.jsxs)("div",{className:"overflow-hidden relative p-0 lg:p-4 mb-3",children:[void 0!=e.carouselContents&&e.carouselContents.length>0&&e.carouselContents.slice(0,n).map((function(t,n){var a,o=function(e,t,n){try{var a=void 0!=e.values&&e.values.length>0&&e.values.find((function(e){return e.profile===t&&e.type===n}));return a?a.link:"thumbnail"===n?N.Z.src:I.Z.src}catch(r){console.log(r)}}(t.images,"mdpi",e.placeholder),s=(0,C.g9)(t.content.duration,!0),i=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?e.toString().split(",").map((function(e){return e.trim().charAt(0).toUpperCase()+e.trim().slice(1)})).join(", "):""},l=[{value:(0,C.So)(t.content.releaseDate)},{value:i((0,C.Yq)(t.content.language))},{value:i((0,C.OT)(t.content.genre))},{value:s.totalminutes?"".concat(s.totalminutes," mins"):null},{value:i(t.content.categoryType),bordered:!0}
1,{value:i(t.content.videoQuality),bordered:!0}].filter((function(e){return e.value}));return(0,_.jsxs)("div",{className:"!w-full float-left px-1 flex space-x-4 h-full max-h-1/4 mb-8 ml-1 lg:ml-5",children:[(0,_.jsx)("div",{className:" relative w-[500px] md:w-[260px] lg:w-[320px] aspect-[16/9] sm:aspect-[16/9] rounded-xl overflow-hidden flex-shrink-none lg:flex-shrink-0\n",onClick:function(){(0,C.Eu)(n,t.generalInfo._id,1,"carousel","similar content"),(0,C.AF)(n,t.generalInfo._id,1,"carousel",e.title)},children:(0,_.jsx)("a",{href:"".concat((0,k.Ct)(t)),onClick:r,children:(0,_.jsx)("img",{src:o,alt:t.generalInfo.title,className:"rounded-lg "})})}),(0,_.jsxs)("div",{className:" space-y-1 md:space-y-2 lg:space-y-4 text-white w-full md:w-[60%] px-0",children:[(0,_.jsx)("span",{className:"text-xs md:text-lg lg:text-xl font-bold line-clamp-1",children:t.generalInfo.title}),(0,_.jsx)("ul",{className:"text-white flex flex-wrap text-[10px] md:text-xs lg:text-xs mt-3",children:l.map((function(e,t){return(0,_.jsxs)(c.Fragment,{children:[0!==t&&(0,_.jsx)("li",{className:"mx-1 lg:mx-2",children:"|"}),(0,_.jsx)("li",{className:e.bordered?"border px-3 rounded":"",children:e.value})]},t)}))}),(0,_.jsx)("p",{className:"text-white text-xs md:text-sm lg:text-[16px] line-clamp-3 lg:line-clamp-2",children:null===(a=t.generalInfo)||void 0===a?void 0:a.briefDescription})]})]},n)})),n<e.carouselContents.length&&(0,_.jsx)("div",{className:"flex justify-center mt-6 absolute left-0 right-0 bottom-2",children:(0,_.jsxs)("button",{onClick:function(){return a(e.carouselContents.length)},className:" flex items-center gap-2 px-6 py-3 rounded-full bg-white/20 hover:bg-white/30 text-white font-semibold backdrop-blur-md transition-all duration-300 ",children:[(0,_.jsx)("img",{src:"/images/cdp_icons/viewmore.svg",alt:"view more",className:"w-5 h-5"}),"View More"]})})]})}var L=function(e){e.relatedCast;var t=e.relatedMultimedia,n=e.carouselContents,a=(0,c.useState)(null),r=a[0],o=a[1],s=(0,c.useState)([]),i=s[0],l=s[1],d=(0,c.useState)([]),u=d[0],p=d[1],f=(0,c.useState)([]),h=f[0],m=f[1],v=(0,c.useState)([]),g=(v[0],v[1]),x=((0,c.useRef)(!1),function(e,t,n){try{return null!==e&&void 0!==e&&e.values?e.values.filter((function(e){return e.generalInfo.type===t&&e.publishingHouse.publishingHouseId===n})):[]}catch(a){return console.log(a),[]}});(0,c.useEffect)((function(){var e=x(t,"vod",46),a=x(t,"musicvideo",45),r=x(t,"vod",47);l(e),p(a),m(r),function(){try{if(n.onlyOnSunNXTContent.values.length>0){var e,t=null===n||void 0===n||null===(e=n.onlyOnSunNXTContent)||void 0===e?void 0:e.values;g(t)}}catch(a){console.log(a)}}()}),[t]),(0,c.useEffect)((function(){i.length>0?o(2):u.length>0?o(3):h.length>0&&o(4)}),[i,u,h]);var b=[{id:2,label:"Comedy",data:i,title:"Comedy"},{id:3,label:"Video Songs",data:u,title:"Video Songs"},{id:4,label:"Trailer",data:h,title:"Trailer Videos"}];return(0,_.jsxs)("div",{children:[(0,_.jsx)("div",{className:"flex w-full pl-2 lg:pl-10 bg-black space-x-4 pb-5 pt-3 font-semibold text-sm lg:text-xl gap-4",children:b.map((function(e){return e.data.length>0&&(0,_.jsx)("button",{onClick:function(){return t=e.id,o(t);var t},children:(0,_.jsx)("span",{className:" w-[5rem] pb-1 ".concat(r===e.id?"border-b-2 border-[rgb(252,228,94)] text-white":"border-b-transparent text-[#999999]"),children:e.label})},e.id)}))}),(0,_.jsx)("div",{className:"w-full float-left",children:b.map((function(e){return r===e.id&&e.data.length>0&&(0,_.jsx)(U,{carouselContents:e.data,title:e.title,placeholder:"coverposter",hideTitle:"true"},e.id)}))})]})},W=n(228),q=n.n(W),F=n(3196),V=n.n(F),G=n(6835),K=n(8233),Q=n(5518);function J(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 Y(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 Y(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 o,s=!0,i=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){i=!0,o=e}
1,f:function(){try{s||null==n.return||n.return()}finally{if(i)throw o}}}}function Y(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}function H(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=(0,m.Z)(e);if(t){var r=(0,m.Z)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return(0,h.Z)(this,n)}}var z=function(e){(0,f.Z)(n,e);var t=H(n);function n(e){var o;return(0,d.Z)(this,n),o=t.call(this,e),(0,r.Z)((0,p.Z)(o),"scrollTopEpisodes",(function(){window.scrollTo({top:0,behavior:"smooth"})})),(0,r.Z)((0,p.Z)(o),"getMonthsData",function(){var e=(0,a.Z)(s().mark((function e(t){var n,a,r,i,l,c,d,u,p,f,h,m,v,g,x,b,y,w,_,j,S,D,N,I,k,A,E;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!t||!t.generalInfo.showDisplayTabs){e.next=55;break}if(!t.generalInfo.showDisplayTabs.showDisplayType||"monthly"!==t.generalInfo.showDisplayTabs.showDisplayType){e.next=52;break}o.setState({showMonthWiseEpisodes:!0}),n=t.generalInfo.showDisplayTabs.showDisplayStart,a=""!==t.generalInfo.showDisplayTabs.showDisplayEnd?t.generalInfo.showDisplayTabs.showDisplayEnd:(0,C.tN)().split("T")[0],r=(0,C.Bd)(n,a),i=t.content.startDate.split("T")[0],l=new Date(i),c=r.filter((function(e){return new Date("01 "+e.replace("'","20"))>=new Date(l.getFullYear(),l.getMonth(),1)})),d=t.globalServiceId?t.globalServiceId:t.generalInfo._id,u=[],p=J(c),e.prev=12,p.s();case 14:if((f=p.n()).done){e.next=36;break}return h=f.value,m=h.split("'"),v="01-"+m[0].trim()+"-"+m[1],g=(0,C.HG)(v),x=g.firstDay.getMonth()+1<10?"0"+(g.firstDay.getMonth()+1):g.firstDay.getMonth()+1,b=g.firstDay.getDate()<10?"0"+g.firstDay.getDate():g.firstDay.getDate(),y=g.lastDay.getMonth()+1<10?"0"+(g.lastDay.getMonth()+1):g.lastDay.getMonth()+1,w=g.lastDay.getDate()<10?"0"+g.lastDay.getDate():g.lastDay.getDate(),_=g.firstDay.getFullYear()+""+b+x+"T000000-"+g.lastDay.getFullYear()+w+y+"T235900",e.prev=24,e.next=27,T.default.getEpisodesByMonth(d,1,1,_);case 27:(null===(D=e.sent)||void 0===D||null===(j=D.data)||void 0===j||null===(S=j.results)||void 0===S?void 0:S.length)>0&&u.push(h),e.next=34;break;case 31:e.prev=31,e.t0=e.catch(24),console.error("Error checking month",h,e.t0);case 34:e.next=14;break;case 36:e.next=41;break;case 38:e.prev=38,e.t1=e.catch(12),p.e(e.t1);case 41:return e.prev=41,p.f(),e.finish(41);case 44:N="desc"===t.generalInfo.showDisplayTabs.showDisplayOrder?u.reverse():u,I=new Set(N.map((function(e){return new Date("01 "+e.replace("'","20")).getFullYear()}))),k=Array.from(I).sort((function(e,t){return e-t})),A=o.state.selectedYear&&k.includes(o.state.selectedYear)?o.state.selectedYear:k[k.length-1],E=N.filter((function(e){return new Date("01 "+e.replace("'","20")).getFullYear()===A})),o.setState({allMonthsArray:N,monthsArray:E,yearsArray:k,selectedYear:A,activeIndex:0},(function(){E.length>0&&o.getEpisodesByMonth(E[0])})),e.next=53;break;case 52:o.getEpisodes();case 53:e.next=56;break;case 55:o.getEpisodes();case 56:case"end":return e.stop()}}),e,null,[[12,38,41,44],[24,31]])})));return function(t){return e.apply(this,arguments)}}()),(0,r.Z)((0,p.Z)(o),"getSelectedMonthEpisodes",(function(e,t){o.setState({slickkey:t,activeIndex:t,isEpisodesEmpty:!0}),o.getEpisodesByMonth(e)})),(0,r.Z)((0,p.Z)(o),"monthWiseTabs",(function(){return o.state.monthsArray.map((function(e,t){return(0,_.jsx)("li",{className:"text-white cursor-pointer",onClick:function(){return o.getSelectedMonthEpisodes(e,t)},children:(0,_.jsx)("a",{className:t===o.state.activeIndex?"monthTabActive":"",children:e.split(" ")[0].toUpperCase()})},t+1)}))})),(0,r.Z)((0,p.Z)(o),"getEpisodes",(function(){var e=o.props.contentDat.globalServiceId?o.props.contentDat.globalServiceId:o.props.contentDat.generalInfo._id,t=e.startsWith("GID_")?e:"GID_".concat(e);T.default.getEpisodesByMonth(t,1,500,"").then((function(e){if(e&&e.data&&e.data.results&&0!==e.data.results.length)if("show"!==o.props.contentType&&"season"!=o.props.contentType){var t=e.data.results.filter((function(e){return e.globalServiceId.replace("GID_","")!==e._id}));if(0!==t.length){var n=o.getAllEpisodesArray(t);if(o.setState((function(e){return{monthWiseEpisodesData:t,slickkey:e.slickkey+1}})),o.props.CID&&0!=o.props.CID){var a=n.indexOf(o.props.CID)>0?n.indexOf(o.props.CID):0;o.selectEpisode(o.props.CID,a)}else o.selectEpisode(t[0].generalInfo._id,0)}else o.setState({monthWiseEpisodesData:[]})}else{var r=e.data.results.sort((function(e,t){var n,a;return parseInt((null===(n=e.generalInfo)||void 0===n?void 0:n.tmdbseason_id)||0)-parseInt((null===(a=t.generalInfo)||void 0===a?void 0:a.tmdbseason_id)||0)}));if(0===r.length)return void o.setState({monthWiseEpisodesData:[]});var s=r.sort((function(e,t){var n,a;return parseInt((null===(n=t.generalInfo)||void 0===n?void 0:n.tmdbseason_id)||0)-parseInt((null===(a=e.generalInfo)||void 0===a?void 0:a.tmdbseason_id)||0)}))[0];o.setState({seasonsArray:r,selectedSeasonId:s._id},(function(){o.getEpisodesBySeason(s._id)}))}else o.setState({monthWiseEpisodesData:[]})}))})),(0,r.Z)((0,p.Z)(o),"episodeScrollRight",(function(){document.getElementsByClassName("month_episode_data")&&(document.getElementsByClassName("month_episode_data")[0].scrollLeft+=80)})),(0,r.Z)((0,p.Z)(o),"episodeScrollLeft",(function(){document.getElementsByClassName("month_episode_data")&&(document.getElementsByClassName("month_episode_data")[0].scrollLeft-=80)})),(0,r.Z)((0,p.Z)(o),"getEpisodesBySeason",(function(e){T.default.getEpisodesByMonth("GID_".concat(e),1,500,"").then((function(e){if(e&&e.data&&e.data.results&&e.data.results.length>0){var t=e.data.results.filter((function(e){return e.globalServiceId.replace("GID_","")!==e._id}));o.getAllEpisodesArray(t);o.setState({monthWiseEpisodesData:t}),o.selectEpisode(t[0].generalInfo._id,0)}else o.setState({monthWiseEpisodesData:[]})}))})),(0,r.Z)((0,p.Z)(o),"getSeasonsByMonth",(function(e,t){T.default.getEpisodesByMonth(e,1,30,t).then((function(e){var t,n;if((null===e||void 0===e||null===(t=e.data)||void 0===t||null===(n=t.results)||void 0===n?void 0:n.length)>0){e.data.results;var a=validSeasons[validSeasons.length-1];o.setState({seasonsArray:validSeasons,selectedSeasonId:a._id},(function(){o.getEpisodesBySeason(a._id)}))}else o.setState({monthWiseEpisodesData:[]})}))})),(0,r.Z)((0,p.Z)(o),"getEpisodesByMonth",(function(e){var t=e.split("'"),n="01-"+t[0].trim()+"-"+t[1],a=(0,C.HG)(n),r=a.firstDay.getMonth()+1<10?"0"+(a.firstDay.getMonth()+1):a.firstDay.getMonth()+1,s=a.firstDay.getDate()<10?"0"+a.firstDay.getDate():a.firstDay.getDate(),i=a.lastDay.getMonth()+1<10?"0"+(a.lastDay.getMonth()+1):a.lastDay.getMonth()+1,l=a.lastDay.getDate()<10?"0"+a.lastDay.getDate():a.lastDay.getDate(),c=a.firstDay.getFullYear()+""+s+r+"T000000-"+a.lastDay.getFullYear()+l+i+"T235900",d=o.props.contentDat.globalServiceId?o.props.contentDat.globalServiceId:o.props.contentDat.generalInfo._id;T.default.getEpisodesByMonth(d,1,30,c).then((function(e){if(e&&e.data&&e.data.results&&e.data.results.length>0){var t=e.data.results.filter((function(e){return e.globalServiceId.replace("GID_","")!==e._id}));if(t.length>0){var n=o.getAllEpisodesArray(t);if(o.setState({monthWiseEpisodesData:t}),void 0!==o.props.CID&&null!==o.props.CID&&0!=o.props.CID){var a=n.indexOf(o.props.CID)>0?n.indexOf(o.props.CID):0;o.selectEpisode(o.props.CID,a)}else o.selectEpisode(t[0].generalInfo._id,0)}else{var r=o.state.monthsTabIndex;o.setState({monthWiseEpisodesData:[],monthsTabIndex:r+1,activeIndex:r+1}),o.getEpisodesByMonth(o.state.monthsArray[r+1])}}else if(o.setState({monthWiseEpisodesData:[]}),!1===o.state.isEpisodesEmpty){r=o.state.monthsTabIndex;o.setState({monthsTabIndex:r+1,activeIndex:r+1}),o.getEpisodesByMonth(o.state.monthsArray[r+1])}}))})),(0,r.Z)((0,p.Z)(o),"getAllEpisodesArray",(function(e){var t=e.map((function(e){return e._id}));return o.setState({episodesArray:t}),t})),(0,r.Z)((0,p.Z)(o),"formatEpisodeTitle",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=e.match(/E(\d+)\s*-\s*(.*)/);if(!t)return e;var n=t[1],a=t[2];return"EP - ".concat(n," ( ").concat(a," )")})),(0,r.Z)((0,p.Z)(o),"getYearsBetweenUTC",(function(e,t){for(var n=new Date(e).getUTCFullYear(),a=new Date(t).getUTCFullYear(),r=[],o=n;o<=a;o++)r.push(o);return r})),(0,r.Z)((0,p.Z)(o),"getProgressPercent",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(!t||t<=0)return 0;var n=e/t*100;return Math.min(Math.max(n,0),100)})),(0,r.Z)((0,p.Z)(o),"convertDurationToSeconds",(function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"00:00:00";if(!e)return 0;var t=e.split(":").map(Number),n=(0,G.Z)(t,3),a=n[0],r=void 0===a?0:a,o=n[1],s=void 0===o?0:o,i=n[2],l=void 0===i?0:i;return 3600*r+60*s+l})),(0,r.Z)((0,p.Z)(o),"parseData",(function(){return o.state.monthWiseEpisodesData.map((function(e,t){if(e.globalServiceId.replace("GID_","")!==e._id){var n,a=(0,K.Z)(e.images.values,"mdpi","coverposter");a=""!==a?a:I.Z.src;var r=(0,C.g9)(e.content.duration),s=(null===(n=e.currentUserData)||void 0===n?void 0:n.elapsed_time)||0,i=o.convertDurationToSeconds(e.content.duration),l=o.getProgressPercent(s,i),c="epindex".concat(t),d=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";return e?e.toString().split(",").map((function(e){return e.trim().charAt(0).toUpperCase()+e.trim().slice(1)})).join(", "):""};return(0,_.jsx)("div",{children:(0,_.jsxs)("a",{id:c,className:"flex flex-row gap-2 md:gap-6 mb-6 cursor-pointer",onClick:function(n){n.preventDefault(),o.selectEpisode(e.generalInfo._id,t,!0),o.handleClick(),(0,C.AF)(t,e._id,1,"episode_list","episode click")},children:[(0,_.jsxs)("div",{className:" relative w-[180px] md:w-[250px] lg:w-[320px] rounded-xl overflow-hidden flex-shrink-0\n",children:[(0,_.jsx)("img",{src:a,alt:e.generalInfo.title,className:"rounded-lg w-full"}),l>0&&(0,_.jsx)("div",{className:"absolute left-3 right-3 bottom-1.5 h-1.5 bg-black/60 rounded overflow-hidden",children:(0,_.jsx)("div",{className:"h-full bg-white rounded transition-all duration-300",style:{width:"".concat(l,"%")}})})]}),(0,_.jsxs)("div",{className:"text-white max-w-[900px] space-y-1 md:space-y-2 lg:space-y-3",children:[(0,_.jsx)("h3",{className:"text-xs md:text-xl font-semibold m-0 leading-snug",children:"musicvideo"===e.generalInfo.type?e.generalInfo.title:o.formatEpisodeTitle(e.generalInfo.displayTitle)}),!Q.tq&&(0,_.jsx)("h1",{className:"text-xs lg:text-lg font-medium mt
1-1",children:e.globalServiceName}),(0,_.jsxs)("ul",{className:"flex flex-wrap items-center text-xs md:text-sm text-gray-300 mt-3 gap-x-2",children:[!Q.tq&&(0,_.jsxs)(_.Fragment,{children:[(0,C.So)(e.content.releaseDate)&&(0,_.jsx)(_.Fragment,{children:(0,_.jsx)("li",{children:(0,C.So)(e.content.releaseDate)})}),d((0,C.Yq)(e.content.language))&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("li",{className:"text-gray-500",children:"|"}),(0,_.jsx)("li",{children:d((0,C.Yq)(e.content.language))})]}),d((0,C.OT)(e.content.genre))&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("li",{className:"text-gray-500",children:"|"}),(0,_.jsx)("li",{children:d((0,C.OT)(e.content.genre))})]}),e.content.categoryType&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("li",{className:"text-gray-500",children:"|"}),(0,_.jsx)("li",{className:"px-2 border border-gray-500 rounded-md text-white text-xs",children:d(e.content.categoryType)})]}),e.content.videoQuality&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("li",{className:"text-gray-500",children:"|"}),(0,_.jsx)("li",{className:"px-2 border border-gray-500 rounded-md text-white text-xs",children:d(e.content.videoQuality)})]})]}),(null===r||void 0===r?void 0:r.totalminutes)>0&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("li",{className:"text-gray-500",children:"|"}),(0,_.jsxs)("li",{children:[r.totalminutes," mins"]})]})]}),(0,_.jsx)("h3",{className:"text-xs md:text-lg text-gray-300 mt-1 md:mt-3 line-clamp-3 md:line-clamp-3 lg:line-clamp-2 space-y-1 md:space-y-2 lg:space-y-3",children:e.generalInfo.description}),e.generalInfo.earlyAccess&&(0,_.jsx)("span",{className:"inline-block mt-3 bg-red-600 px-3 py-1 text-xs rounded",children:"EARLY ACCESS"})]})]})},t)}}))})),(0,r.Z)((0,p.Z)(o),"selectEpisode",(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];T.default.getContentDetails(e).then((function(e){e&&e.data&&o.props.getEpisodeData(e.data,t,o.state.episodesArray,n)})),"undefined"!==typeof fbq&&fbq("track","ViewContent"),n&&o.scrollTopEpisodes()})),o.next=o.next.bind((0,p.Z)(o)),o.previous=o.previous.bind((0,p.Z)(o)),o.state={monthsArray:[],yearsArray:[],selectedYear:null,showMonthWiseEpisodes:!1,monthWiseEpisodesData:"",showAllEpisodes:!1,slickkey:1,activeIndex:0,episodesArray:[],monthsTabIndex:0,isEpisodesEmpty:!1,seasonsArray:[],selectedSeasonId:null,allMonthsArray:[]},o}return(0,u.Z)(n,[{key:"next",value:function(){this.slider.slickNext()}},{key:"previous",value:function(){this.slider.slickPrev()}},{key:"componentDidMount",value:function(){this.props&&this.props.contentDat&&this.getMonthsData(this.props.contentDat)}},{key:"handleClick",value:function(){var e=document.getElementById("player");e&&window.videojs(e).pause();var t=document.getElementsByClassName("shaka-video")[0];t?t.pause():console.log("Shaka Player instance not found on window object.")}},{key:"render",value:function(){var e=this;return(0,_.jsx)("div",{className:y().episodes,children:(0,_.jsx)("div",{className:y().layout,children:(0,_.jsxs)("div",{className:y().carousel_body,children:[(0,_.jsx)("div",{className:y().home_carosel_title,children:(0,_.jsx)("span",{className:y().carousel_title,children:"videoalbum"===this.props.contentType?"Video Songs":" "})}),this.state.showMonthWiseEpisodes&&(0,_.jsxs)("div",{className:"flex items-center gap-6 mb-6 ml-2",children:[(0,_.jsx)("select",{value:this.state.selectedYear,onChange:function(t){var n=Number(t.target.value),a=e.state.allMonthsArray.filter((function(e){return Number(new Date("01 "+e.replace("'","20")).getFullYear())===n}));e.setState({selectedYear:n,monthsArray:a,activeIndex:0,monthsTabIndex:0,monthWiseEpisodesData:[]},(function(){a.length>0&&e.getEpisodesByMonth(a[0])}))},style:{background:"#111",color:"white",border:"1px solid #333",padding:"6px 12px",borderRadius:"6px"},children:this.state.yearsArray.map((function(e){return(0,_.jsx)("option",{value:e,children:e},e)}))}),(0,_.jsx)("ul",{className:"month_episode_data",style:{display:"flex",gap:"24px",borderBottom:"1px solid #222"},children:this.monthWiseTabs()})]}),("show"===this.props.contentType||"season"===this.props.contentType)&&this.state.seasonsArray.length>0&&(0,_.jsx)("div",{className:"mb-6",children:(0,_.jsx)("ul",{className:"flex gap-6 pl-2",children:this.state.seasonsArray.slice().sort((function(e,t){var n,a,r=parseInt((null===(n=e.generalInfo)||void 0===n?void 0:n.tmdbseason_id)||0);return parseInt((null===(a=t.generalInfo)||void 0===a?void 0:a.tmdbseason_id)||0)-r})).map((function(t){var n=t._id===e.state.selectedSeasonId,a=null==t.generalInfo.tmdbseason_id,r=null!=t.generalInfo.tmdbseason_id?"Season ".concat(t.generalInfo.tmdbseason_id):"Only on Sunnxt";return(0,_.jsx)("li",{onClick:function(){e.setState({selectedSeasonId:t._id},(function(){return e.getEpisodesBySeason(t._id)}))},className:"\n relative cursor-pointer pb-2\n ".concat(n?"text-white font-semibold border-b-2 border-yellow-400":"text-gray-200 border-b-2 border-transparent","\n "),children:(0,_.jsxs)("span",{className:"relative inline-block",children:[r,a&&(0,_.jsx)("span",{className:y().blink_indicator})]})},t._id)}))})}),(0,_.jsx)("div",{className:"mt-8 ml-2",children:this.state.monthWiseEpisodesData.length>0?(0,_.jsxs)(_.Fragment,{children:[this.parseData().slice(0,this.state.showAllEpisodes?this.state.monthWiseEpisodesData.length:4),this.state.monthWiseEpisodesData.length>4&&!this.state.showAllEpisodes&&(0,_.jsx)("div",{className:"left-0 right-0 flex justify-center mt-4",children:(0,_.jsxs)("button",{onClick:function(){return e.setState({showAllEpisodes:!0})},className:" flex items-center gap-3 px-8 lg:px-10 py-2 lg:py-4 mb-4 text-sm lg:text-xl font-semibold text-white bg-gray-500/50 hover:bg-gray-500/70 rounded-full transition ",children:[(0,_.jsx)("img",{src:"/images/cdp_icons/viewmore.svg",alt:"view more",className:"w-5 h-5"}),"View More"]})})]}):(0,_.jsx)("p",{className:y().nodata_section,children:"No Episodes for selected month"})})]})})})}}]),n}(c.Component),X=(n(993),n(1163)),$=n(1663),ee=n(2714),te=n(235),ne="/_next/static/media/added_to_wat
1chlist.0806a111.png",ae=(n(5783),n(9788)),re=n(8518),oe=n(2371),se=n(1388),ie=n(5012);n(8322),n(2739);function le(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 ce(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?le(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):le(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function de(e){var t=function(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,a=(0,m.Z)(e);if(t){var r=(0,m.Z)(this).constructor;n=Reflect.construct(a,arguments,r)}else n=a.apply(this,arguments);return(0,h.Z)(this,n)}}var ue=function(e){(0,f.Z)(n,e);var t=de(n);function n(e){var a;return(0,d.Z)(this,n),(a=t.call(this,e)).next=a.next.bind((0,p.Z)(a)),a.previous=a.previous.bind((0,p.Z)(a)),a}return(0,u.Z)(n,[{key:"next",value:function(){this.slider&&this.slider.slickNext()}},{key:"previous",value:function(){this.slider&&this.slider.slickPrev()}},{key:"getImageSrc",value:function(e){try{var t=e&&void 0!==e.values&&e.values.length>0&&e.values.find((function(e){return"mdpi"===e.profile&&"squareimage"===e.type}));return t?t.link:w.Z.src}catch(n){return console.log(n),w.Z.src}}},{key:"storeStarCastImg",value:function(e){localStorage.setItem("starCastdata",JSON.stringify(e))}},{key:"getRelatedCast",value:function(){var e=this;return this.props.relatedCast.values.map((function(t,n){if("alt"!==t.types[0].substring(0,3).toLowerCase()){var a=e.getImageSrc(t.images);return(0,_.jsx)("div",{className:"flex flex-col items-center py-1 pr-1 ",onClick:function(){return e.storeStarCastImg(t)},children:(0,_.jsx)(g(),{href:"/actor/profile/".concat(t.name),children:(0,_.jsxs)("a",{className:"text-center block justify-items-center",children:[(0,_.jsx)("img",{src:a,alt:t.name,className:" rounded-lg w-full"}),(0,_.jsx)("div",{className:"text-[10px] font-semibold line-clamp-1",children:t.name}),(0,_.jsx)("div",{className:"text-[10px] opacity-80",children:t.types[0]})]})})},n)}}))}},{key:"render",value:function(){var e=this,t=this.getRelatedCast(),n=0,a=7,r=3;(n=window.innerWidth)<=360?(a=4.1,r=3.5):n<=480?(a=5.5,r=4):n<=768?(a=6.5,r=5):n<=1024?(a=6.5,r=5.5):(a=7,r=6);var o={dots:!1,infinite:!1,speed:500,slidesToShow:a,slidesToScroll:r,arrows:!1};return(0,_.jsxs)("div",{className:"relative items-start",children:[t.length>0&&(0,_.jsx)("h1",{className:"font-bold text-sm mb-2",children:"Cast"}),(0,_.jsx)("div",{className:"overflow-hidden w-full",children:(0,_.jsx)(x.Z,ce(ce({ref:function(t){return e.slider=t}},o),{},{children:t}))})]})}}]),n}(c.Component),pe=n(6576),fe=n(431);function he(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 me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var ve=!0;function ge(e){var t,n,r,o,d,u,p,f,h,m,v,g,x,b,w,j,S,D,N=(0,c.useContext)(E.Z),O=(N.showSignin,N.setShowSignin),P=(0,c.useState)(""),M=P[0],U=P[1],W=(0,c.useState)(""),F=(W[0],W[1]),G=(0,c.useState)(!1),J=G[0],Y=G[1],H=(0,c.useState)([]),le=H[0],ce=H[1],de=(0,c.useState)({contentData:e.contentData.results[0]}),he=de[0],ve=de[1],ge=(0,c.useState)(""),xe=ge[0],be=ge[1],ye=(0,c.useState)(e.contentId),we=(ye[0],ye[1]),_e=(0,c.useState)(e.CID),je=_e[0],Se=_e[1],De=(0,X.useRouter)(),Ne=(0,c.useRef)(null),Ie=(0,c.useState)(!1),ke=Ie[0],Ce=Ie[1],Ae=(0,c.useState)(0),Ee=(Ae[0],Ae[1]),Oe=(0,c.useState)(!1),Ze
1=Oe[0],Te=Oe[1],Re=(0,c.useState)(!1),Pe=Re[0],Me=Re[1],Be=(0,c.useState)([]),Ue=(Be[0],Be[1]),Le=(0,c.useState)(""),We=(Le[0],Le[1]),qe=(0,c.useState)(""),Fe=qe[0],Ve=qe[1],Ge=(0,c.useState)(!1),Ke=Ge[0],Qe=Ge[1],Je=(0,c.useRef)({}),Ye=(0,c.useState)(""),He=Ye[0],ze=Ye[1],Xe=(0,c.useState)({button:!1,popup:!1}),$e=Xe[0],et=Xe[1],tt=(0,c.useState)(!1),nt=tt[0],at=tt[1],rt=(0,c.useState)(e.playbackId),ot=(rt[0],rt[1]),st=(0,c.useRef)(e.playbackId),it=(0,c.useState)("CHECKING"),lt=it[0],ct=it[1],dt=(0,c.useState)(!1),ut=dt[0],pt=dt[1],ft=(0,c.useContext)(pe.Z),ht=(0,c.useRef)(!1),mt=null!==(t=null===e||void 0===e||null===(n=e.contentData)||void 0===n||null===(r=n.results)||void 0===r||null===(o=r[0])||void 0===o||null===(d=o.generalInfo)||void 0===d||null===(u=d.contentRights)||void 0===u?void 0:u[0])&&void 0!==t?t:"",vt=(0,c.useState)(!1),gt=(vt[0],vt[1]),xt=(0,c.useRef)(null),bt=(null===he||void 0===he||null===(p=he.contentData)||void 0===p||null===(f=p.generalInfo)||void 0===f?void 0:f.description)||"",yt=bt.length>120;function wt(){var e=De.query.deeplink_token.split(" ").join("+");T.default.verifyDeepLinkToken(encodeURIComponent(e),!0).then((function(e){"SUCCESS"!==e.data.status||200!==e.data.code&&201!==e.data.code||T.default.getUserProfile().then((function(t){"SUCCESS"===t.data.status&&200===t.data.code?(localStorage.setItem("Logged-in",!0),(0,C.MZ)("userProfile",t.data),T.default.getUserMypackages().then((function(e){if(e&&e.data&&200===e.data.code&&"SUCCESS"===e.data.status){(0,C.MZ)("userSubscriptions",e.data),Qe(!1),sessionStorage.setItem("isDeepLinkUser",!0);sessionStorage.setItem("contentEventData_v1",JSON.stringify({contentposition:1,carouselposition:1,tab:"Home",source:"Deeplink",sourcedetails:"Deeplink"})),De.reload()}}))):"failed"==e.data.status&&console.log("ERROR deeplink failed")}))}))}(0,c.useEffect)((function(){var e=xt.current;e&>(e.scrollHeight>e.clientHeight)}),[he]),(0,c.useEffect)((function(){var t,n,a,r,o;sessionStorage.removeItem("isPaidContent"),ht.current?ht.current=!1:(pt(!1),ve({contentData:e.contentData.results[0]}),Se(e.CID),we(e.contentId),st.current=e.playbackId,ot(e.playbackId),1==(null===e||void 0===e||null===(t=e.contentData)||void 0===t||null===(n=t.results[0])||void 0===n?void 0:n.is_restricted_content_meta)?(ze("This content is not available in your region"),["vodchannel","show","season","episode"].includes(e.contentType)||pt(!0)):T.default.getMediaLinks(e.contentId,1,!1).then((function(t){if(t&&200===t.status){var n,a,r,o,s,i,l,c,d,u=(0,se.Z)(t.data.response,"A3s68aORSgHs$71P");if(null!==u&&200===u.code&&"SUCCESS"===u.status&&u.results.length>0)if(void 0!==u.results[0].videos)if("ERR_GUEST_USER"===u.results[0].videos.status||"ERR_NON_LOGGED_USER"===u.results[0].videos.status)47==(null===(n=e.contentData)||void 0===n||null===(a=n.results)||void 0===a||null===(r=a[0])||void 0===r||null===(o=r.publishingHouse)||void 0===o?void 0:o.publishingHouseId)||"avod"==(null===(s=e.contentData)||void 0===s||null===(i=s.results)||void 0===i||null===(l=i[0])||void 0===l||null===(c=l.generalInfo)||void 0===c||null===(d=c.contentRights)||void 0===d?void 0:d[0])?(ze("Watch Now"),ct("LOGIN")):(ct("SUBSCRIBE"),ze("Subscribe to Watch"),sessionStorage.setItem("isPaidContent","true"));else"ERR_USER_NOT_SUBSCRIBED"===u.results[0].videos.status||"ERR_UPGRADE_PREMIUM"===u.results[0].videos.status?(ct("SUBSCRIBE"),ze("Subscribe to Watch"),sessionStorage.setItem("isPaidContent","true")):(ze("Watch Now"),ct("ALLOW"));else ze("Watch Now")}else ze("Watch Now");["vodchannel","show","season","episode"].includes(e.contentType)||pt(!0)})),1!=(null===(a=e.contentData.results)||void 0===a||null===(r=a[0])||void 0===r||null===(o=r.generalInfo)||void 0===o?void 0:o.isVotingEnabled)&&1!=e.episodeVotingEnabled||et((function(e){return me(me({},e),{},{button:!0})})))}),[e.contentId,De.asPath]),(0,c.useEffect)((function(){return De.beforePopState((function(e){e.url;var t=e.as;return window.location.href=t,!1})),function(){De.beforePopState((function(){return!0}))}}),[De]),(0,c.useEffect)((function(){var e,t,n;if(""!==(e=(0,C.lT)("properties"))&&(void 0!=(null===(t=e)||void 0===t?void 0:t.isKafkaEnabledInfo)&&null!=(null===(n=e)||void 0===n?void 0:n.isKafkaEnabledInfo)))try{"true"==JSON.parse(e.isKafkaEnabledInfo).isKafkaEnabled_web&&null!=JSON.parse(e.isKafkaEnabledInfo).web_info&&void 0!=JSON.parse(e.isKafkaEnabledInfo).web_info&&(Je.current=JSON.parse(e.isKafkaEnabledInfo).web_info)}catch(r){console.error("Invalid JSON",r)}De.query.deeplink_token&&Ve(De.query),De&&De.query&&De.query.source&&sessionStorage.setItem("partnerName",De.query.source),De&&De.query&&"AIRTELXT"==De.query.source&&sessionStorage.setItem("isAirtelXTUser",!0),De&&De.query&&"VIMTV"==De.query.source&&sessionStorage.setItem("isVI
1MTVUser",!0),setTimeout((0,a.Z)(s().mark((function e(){var t,n,a,r;return s().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(null==(t=JSON.parse(localStorage.getItem("movData")))||void 0==t){e.next=17;break}if("Network Issue",!Math.floor(t.watchedTime>0)){e.next=15;break}if("true"!=(null===(n=Je.current)||void 0===n?void 0:n.contentplayed)){e.next=15;break}return e.prev=5,e.next=8,(0,A.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 8:200==(null===(r=e.sent)||void 0===r||null===(a=r.data)||void 0===a?void 0:a.code)&&localStorage.removeItem("movData"),e.next=15;break;case 12:e.prev=12,e.t0=e.catch(5),console.error("kafka contentPlayed failed:",e.t0);case 15:sessionStorage.removeItem("totalwatchtime"),sessionStorage.removeItem("partnerMov");case 17:case"end":return e.stop()}}),e,null,[[5,12]])}))),2e3)}),[]);var _t=function(){var t=(0,a.Z)(s().mark((function t(n){var a,r,o,i,l;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(a="",a=(0,C.lT)("properties"),null===localStorage.getItem("Logged-in")||void 0===localStorage.getItem("Logged-in")||"true"!==localStorage.getItem("Logged-in")){t.next=18;break}return void 0!==ft&&Object.keys(ft).length>0&&void 0!==ft.properties.enableAppsplay&&null!==ft.properties.enableAppsplay&&"true"===ft.properties.enableAppsplay&&void 0!==ft.properties.enableAFSubscriptionEventsPortal&&"true"===ft.properties.enableAFSubscriptionEventsPortal&&AF("pba","event",{eventType:"EVENT",eventValue:{},eventName:"Subscription initiated"}),t.next=6,(0,fe.rZ)();case 6:if(t.t1=t.sent,t.t0="India"==t.t1,!t.t0){t.next=10;break}t.t0="true"==(null===(r=a)||void 0===r?void 0:r.enableNewSubscriptionFlow_IN);case 10:if(!t.t0){t.next=15;break}(0,A.hm)((0,C.kg)(),"na","na","na"),De.push("/subscription/plans"),t.next=16;break;case 15:"true"==(null===(o=a)||void 0===o?void 0:o.enableNewSubscriptionFlow_INT)?((0,A.hm)((0,C.kg)(),"na","na","na"),De.push("/subscription/plans")):T.default.billingNewPackages(void 0!==e.CID&&null!==e.CID&&0!==e.CID?e.CID:e.contentId,null).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,A.hm)((0,C.kg)(),"na","na","na"),window.location=e.data.ui.redirect):console.log("Error : ",e.data.message)}));case 16:t.next=30;break;case 18:return t.next=20,(0,fe.rZ)();case 20:if(t.t3=t.sent,t.t2="India"==t.t3,!t.t2){t.next=24;break}t.t2="true"==(null===(i=a)||void 0===i?void 0:i.enableNewSubscriptionFlow_IN);case 24:if(!t.t2){t.next=29;break}(0,A.hm)((0,C.kg)(),"na","na","na"),De.push("/subscription/plans"),t.next=30;break;case 29:"true"==(null===(l=a)||void 0===l?void 0:l.enableNewSubscriptionFlow_INT)?((0,A.hm)((0,C.kg)(),"na","na","na"),De.push("/subscription/plans")):O(!0);case 30:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),jt=function(){var t=(0,a.Z)(s().mark((function t(){var n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if("/"!==De.asPath&&sessionStorage.setItem("redirectAfterLogin",De.asPath),"CHECKING"!==lt){t.next=3;break}return t.abrupt("return");case 3:if("LOGIN"!==lt){t.next=6;break}return O(!0),t.abrupt("return");case 6:if("SUBSCRIBE"!==lt){t.next=10;break}return t.next=9,_t(!0);case 9:return t.abrupt("return");case 10:"ALLOW"===lt&&(n=st.current&&0!==st.current?st.current:e.playbackId,sessionStorage.setItem("fromWatchNow","true"),De.push("/player/".concat(n)));case 11:case"end":return t.stop()}}),t)})));return function(){return t.apply(this,arguments)}}(),St=function(){if(null!=sessionStorage.getItem("properties")&&void 0!=sessionStorage.getItem("properties")&&sessionStorage.getItem("properties").length>0){(0,C.lT)("properties");return 1==he.contentData.generalInfo.isAtmos?"/images/dolby_atmos_badg_white_img.png":1==he.contentData.generalInfo.isDolby?"/images/dolby_audio_badg_white.png":""}},Dt=function(e){if(null===localStorage.getItem("Logged-in")||void 0===localStorage.getItem("Logged-in"))O(!0);else{var t=he.contentData.generalInfo._id;T.default.sendFavoriteStatus(t,!e).then(function(){var t=(0,a.Z)(s().mark((function t(n){var a,r,o,i,l,c;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(200!==n.data.code&&201!==n.data.code||"SUCCESS"!==n.data.status){t.next=22;break}
1if(a=!e,r="",o=he,Y(!e),!a){t.next=13;break}return(0,Z.Am)(" Added to your watchlist",{position:"bottom-center",autoClose:2e3,hideProgressBar:!0,closeOnClick:!1,pauseOnHover:!1,draggable:!1,progress:0}),r="Added",t.next=10,(0,R.bv)("watchlist_lifecycle",null,{extraInfo:{login_type:"password",watchlist_state:r}});case 10:F(ne),t.next=18;break;case 13:return(0,Z.Am)(" Removed from your watchlist",{position:"bottom-center",autoClose:2e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!1,draggable:!1,progress:0}),r="Removed",t.next=17,(0,R.bv)("watchlist_lifecycle",null,{extraInfo:{login_type:"password",watchlist_state:r}});case 17:F(te.Z.src);case 18:i=null!==o.contentData.globalServiceId&&void 0!==o.contentData.globalServiceId?o.contentData.globalServiceId:"na",l=window.location.pathname.split("/")[1],c=window.location.pathname.split("/")[1],(0,A.UO)(r,o.contentData.generalInfo.title,o.contentData._id,(0,C.fK)(o.contentData.content.language),(0,C.OT)(o.contentData.content.genre),l,c,i);case 22:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}())}},Nt=function(e){var t=(0,K.Z)(e.values,"mdpi","coverposter");return""!=t?t:""};(0,c.useEffect)((function(){(be("Play"),Me(!0),function(e){T.default.getFavoriteStatus(e).then((function(e){if("true"==e.data.favorite)Y(!0),F(t=ne);else{Y(!1);var t=te.Z.src;F(t)}}))}(e.contentId),void 0!==De&&void 0!==De.query&&null!==De.query&&void 0!==De.query.deeplink_token&&null!==De.query.deeplink_token&&function(e){var t=e.split(" ").join("+");T.default.verifyDeepLinkToken(encodeURIComponent(t)).then((function(e){"SUCCESS"!==e.data.status||200!==e.data.code&&201!==e.data.code?"failed"==e.data.status&&400===e.data.code&&Qe(!0):T.default.getUserProfile().then((function(e){if("SUCCESS"===e.data.status&&200===e.data.code){localStorage.setItem("Logged-in",!0),ze("Watch Now"),Ce(!0),(0,C.MZ)("userProfile",e.data),sessionStorage.setItem("isDeepLinkUser",!0),sessionStorage.setItem("contentEventData_v1",JSON.stringify({contentposition:1,carouselposition:1,tab:"Home",source:"Deeplink",sourcedetails:"Deeplink"}));try{JSON.parse(sessionStorage.getItem("contentEventData_v1")||"{}")}catch(o){console.error("Invalid JSON in sessionStorage:",o)}var t=De.query.source;(0,A.Dy)((0,C.kg)(),"na","na","na",t||"na");try{var n,a,r=null===e||void 0===e||null===(n=e.data)||void 0===n||null===(a=n.result)||void 0===a?void 0:a.profile;r?setTimeout((function(){(0,A.hP)(e.data.result,r.mobile_no,r.emails.length>0?r.emails[0].email:"","Success","na")}),500):console.error("Profile not found")}catch(s){console.error("Error in login event:",s)}}}))}))}(De.query.deeplink_token),"undefined"!==typeof clevertap)?sessionStorage.getItem("prevPath")?sessionStorage.removeItem("prevPath"):((0,A.lM)(e.contentData.results[0]),setTimeout((0,a.Z)(s().mark((function t(){var n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return(0,A.Vt)(e.contentData.results[0]),t.next=3,(0,R.bv)("content_click",e.contentData.results[0]);case 3:null!=(n=JSON.parse(sessionStorage.getItem("contentEventData_v1")))&&void 0!=n&&(n.metaInfo=e.contentData.results[0],sessionStorage.setItem("contentEventData_v1",JSON.stringify(n)));case 5:case"end":return t.stop()}}),t)}))),1500)):sessionStorage.getItem("prevPath")?sessionStorage.removeItem("prevPath"):setTimeout((0,a.Z)(s().mark((function t(){var n;return s().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,R.bv)("content_click",e.contentData.results[0]);case 2:null!=(n=JSON.parse(sessionStorage.getItem("contentEventData_v1")))&&void 0!=n&&(n.metaInfo=e.contentData.results[0],sessionStorage.setItem("contentEventData_v1",JSON.stringify(n)));case 4:case"end":return t.stop()}}),t)}))),1500);U(St()),function(e){T.default.getSimilarContentDetails(e,10).then((function(e){var t=e&&e.data&&e.data?e.data.results:[];ce({similarContentData:t})}))}(e.contentId),localStorage.removeItem("contentStarted"),localStorage.removeItem("adResponse"),localStorage.removeItem("starCastdata"),fbq("track","ViewContent")}),[e.contentId,De.asPath]);var It=function(e,t){try{var n;return"cover"===t?(n=void 0!=e.values&&e.values.length>0&&e.values.find((function(e){return"xxhdpi"===e.profile&&"coverposterimage"===e.type})))||(n=void 0!=e.values&&e.values.length>0&&e.values.find((function(e){return"xxhdpi"===e.profile&&"coverposter"===e.type}))):n=void 0!=e.values&&e.values.length>0&&e.values.find((function(e){return"mdpi"===e.profile&&"thumbnail"===e.type})),n?n.link:I.Z.src}catch(a){console.log(a)}},kt=function(){try{if(!localStorage.getItem("Logged-in"))return void O(!0);var e,t,n;(null===he||void 0===he||null===(e=he.contentData)||void 0===e||null===(t=e.relatedMultimedia)||void 0===t||null===(n=t.values)||void 0===n?void 0:n.length)>0&&(sessionStorage.setItem("fromWatchNow","true"),De.push("/player/".concat(he.contentData.relatedMultimedia.values[0]._id)))}catch(a){console.log(a)}};return(0,_.jsxs)("div",{className:"relative bg-black min-h-full flex flex-col justify-between w-full",children:[(0,_.jsx)(i.Z,{isDeepLinkTrue:ke,userCountry:We}),(0,_.jsx)(re.Z,{contentId:e.contentId,seoData:(0,C.Gd)(e.contentData.results[0],e.contentType),CID:je,contentType:e.contentType,contentStructuredData:function(t){var n,a,r,o,s,i,l,c,d,u,p,f,h;return{"@context":"https://schema.org/","@type":t.generalInfo.type,url:"https://"+e.hostName+(0,k.Ct)(e.contentData.results[0]),name:t.generalInfo.title,de
1scription:t.generalInfo.description,genre:(0,C.Qt)(t.content.genre),image:Nt(t.images),actors:(0,C.jG)(t.relatedCast,"Actor"),director:(0,C.jG)(t.relatedCast,"Director"),trailer:{"@type":"VideoObject",name:(null===(n=t.relatedMultimedia)||void 0===n?void 0:n.values.length)>0&&null!==(a=t.relatedMultimedia.values[0].generalInfo)&&void 0!==a&&a.title?t.relatedMultimedia.values[0].generalInfo.title:null!==(r=t.generalInfo)&&void 0!==r&&r.title?null===(o=t.generalInfo)||void 0===o?void 0:o.title:"",description:(null===(s=t.relatedMultimedia)||void 0===s?void 0:s.values.length)>0&&null!==(i=t.relatedMultimedia.values[0].generalInfo)&&void 0!==i&&i.briefDescription?t.relatedMultimedia.values[0].generalInfo.briefDescription:null!==(l=t.generalInfo)&&void 0!==l&&l.briefDescription?null===(c=t.generalInfo)||void 0===c?void 0:c.briefDescription:"",thumbnailUrl:t.relatedMultimedia.values.length>0?Nt(t.relatedMultimedia.values[0].images):Nt(t.images),contentUrl:t.relatedMultimedia.values.length>0?"https://"+e.hostName+(0,k.Ct)(t.relatedMultimedia.values[0]):"https://"+e.hostName+(0,k.Ct)(t),uploadDate:(null===(d=t.relatedMultimedia)||void 0===d||null===(u=d.values)||void 0===u?void 0:u.length)>0&&null!==(p=t.relatedMultimedia.values[0].content)&&void 0!==p&&p.releaseDate?t.relatedMultimedia.values[0].content.releaseDate:null!==(f=t.content)&&void 0!==f&&f.releaseDate?null===(h=t.content)||void 0===h?void 0:h.releaseDate:"",duration:t.relatedMultimedia.values.length>0&&t.relatedMultimedia.values[0].content.duration?t.relatedMultimedia.values[0].content.duration:t.content.duration?t.content.duration:""},potentialAction:[{"@type":"WatchAction",target:"https://"+e.hostName+(0,k.Ct)(e.contentData.results[0])}]}}(e.contentData.results[0]),image:Nt(e.contentData.results[0].images),hostName:e.hostName}),(0,_.jsx)(Z.Ix,{}),(0,_.jsxs)("div",{className:"w-full flex-grow gap-y-2",children:[!Q.tq&&(0,_.jsxs)("div",{className:q().detail_desktop,children:[(0,_.jsx)("div",{className:"relative w-full h-screen mb-3",children:he&&he.contentData&&(0,_.jsxs)("div",{className:"w-full h-full overflow-hidden flex items-end text-white absolute inset-0 bg-cover bg-center ",style:{backgroundImage:"url(".concat(It(he.contentData.images,"cover"),")"),backgroundSize:"cover",backgroundPosition:"top"},children:[(0,_.jsx)("div",{className:" absolute inset-0 w-[80%] pointer-events-none bg-[radial-gradient(100%_64%_at_0%_91%,rgba(0,0,0,0.9)_47%,rgba(0,0,0,0.6)_56%,rgba(0,0,0,0.3)_84%,rgba(0,0,0,0)_99%)]\n"}),(0,_.jsxs)("div",{className:"flex w-3/4 h-1/2 z-10 transform translate-x-8 gap-6 ml-2",children:[(0,_.jsx)("div",{className:"flex-shrink-0 justify-self-end flex items-end pb-3",children:(0,_.jsx)("img",{src:It(he.contentData.images,"thumbnail"),alt:"poster",className:"w-[clamp(190px,12.8vw,280px);] object-cover rounded-xl shadow-lg border-2 border-white/30 "})}),(0,_.jsxs)("div",{className:"flex flex-col space-y-1 xxl:space-y-2 p-2 self-end md:w-3/4 lg:w-1/2 ",children:[(0,_.jsx)(oe.Z,{contentDetails:he,showleftsideContentDetails:"true",className:"!text-xs bg-black"}),(0,_.jsx)(C.ZP,{contentDetails:he}),(0,_.jsxs)("ul",{className:"flex flex-wrap gap-3 text-xs xxl:text-sm opacity-70",children:[(0,_.jsx)("li",{children:(0,C.fK)(he.contentData.content.language)}),(0,_.jsx)("li",{children:"|"}),(0,_.jsx)("li",{children:(0,C.Qt)(he.contentData.content.genre)}),(0,_.jsx)("li",{children:"|"}),(0,_.jsx)("li",{children:(0,C.kq)(he.contentData.content)}),(0,_.jsx)("li",{children:"|"}),"Serials"!==(0,C.Qt)(he.contentData.content.genre)&&(0,_.jsxs)("li",{children:[Math.round((0,C.TV)(he.contentData.content.duration)/60)," Mins"]})]}),(0,_.jsxs)("ul",{className:"flex flex-wrap gap-3 !text-[9px] opacity-70",children:[he.contentData.content.categoryType&&(0,_.jsx)("li",{className:"border-2 border-gray-400 px-1 flex items-center rounded",children:he.contentData.content.categoryType}),he.contentData.subtitles.values.length>0&&(0,_.jsx)("li",{className:"border-2 border-gray-400 px-1 flex items-center rounded",children:"SUB"}),he.contentData.content.videoQuality&&(0,_.jsx)("li",{className:"border-2 border-gray-400 px-1 flex items-center rounded",children:he.contentData.content.videoQuality}),M&&(0,_.jsx)("li",{className:"flex items-center",children:(0,_.jsx)("img",{src:M,alt:"videoQuality",className:"h-3"})})]}),(0,_.jsx)("div",{className:"text-md text-white opacity-80",children:(0,_.jsxs)("p",{className:"inline",children:[(0,_.jsx)("span",{className:"inline",children:nt?bt:yt?bt.slice(0,120)+"...":bt}),yt&&(0,_.jsx)("button",{onClick:function(){return at(!nt)},className:"ml-1 text-xs text-white/70 inline",children:nt?"Less":"More"})]})}),(0,_.jsxs)("div",{className:"flex flex-wrap items-center gap-4 text-sm xxl:text-md mt-1",children:[Pe?(0,_.jsxs)("button",{onClick:jt,disabled:!ut||"CHECKING"===lt,className:"h-8 px-4 bg-white text-black rounded-md flex items-center gap-2 ".concat(ut&&"CHECKING"!==lt?"":"op
1acity-50 cursor-not-allowed"),children:[(0,_.jsx)("img",{src:"/images/cdp_icons/Play_cdp.svg",alt:"playbtn",className:"h-4 w-4"}),(0,_.jsxs)("span",{children:[He,he.contentData.content.serialNo?" Ep ".concat(he.contentData.content.serialNo):""]})]}):(0,_.jsxs)("button",{onClick:function(){return Ne.current.clickPlayPauseButton()},className:"h-8 px-4 bg-white text-black rounded-md flex items-center gap-2",children:[(0,_.jsx)("img",{src:"pause"===xe?ee.Z.src:$.Z.src,alt:xe,className:"h-5 w-5"}),(0,_.jsx)("span",{children:xe.charAt(1).toUpperCase()+xe.slice(1)})]}),Pe&&(null===he||void 0===he||null===(h=he.contentData)||void 0===h||null===(m=h.relatedMultimedia)||void 0===m||null===(v=m.values)||void 0===v?void 0:v.length)>0&&(0,_.jsxs)("button",{className:"h-8 px-4 bg-gray-700 rounded-md flex items-center gap-2",onClick:kt,children:[(0,_.jsx)("img",{src:"/images/cdp_icons/movie_cdp.svg",alt:"trailer",className:"h-6 w-6"}),(0,_.jsx)("span",{children:"Watch Trailer"})]}),$e.button&&(0,_.jsxs)("button",{onClick:function(){(0,R.bv)("voting_form_popup_loaded",null),et((function(e){return me(me({},e),{},{popup:!e.popup})}))},className:" flex items-center justify-center gap-3 border-none rounded-[20px] text-white text-[14px] px-[35px] py-[6px] cursor-pointer relative shadow-[0_4px_12px_rgba(0,0,0,0.8)] bg-[linear-gradient(90deg,#683B6C,#D1204E,#683B6C)] bg-[length:200%_200%] transition-all duration-400 ease-in-out animate-fadePulse ",children:[(0,_.jsx)("span",{className:"w-[10px] h-[10px] bg-[#FFD400] rounded-full"}),"Vote"]}),(0,_.jsxs)("div",{className:"flex gap-3",children:[(0,_.jsxs)("div",{className:"relative group",children:[(0,_.jsxs)("button",{onClick:function(){return Dt(J)},className:"h-8 w-8 bg-gray-700 hover:bg-white rounded-md flex items-center justify-center",children:[(0,_.jsx)("img",{src:J?"/images/Icons/Tick.svg":"/images/cdp_icons/watchlist_new.svg",alt:"watchlist",className:"h-6 w-6 transition-opacity duration-200 group-hover:opacity-0"}),(0,_.jsx)("img",{src:"/images/Icons/Watchlist_hover.svg",alt:"hover",className:"h-6 w-6 absolute transition-opacity duration-200 opacity-0 group-hover:opacity-100"})]}),(0,_.jsx)("div",{className:"absolute bottom-full mb-2 left-1/2 -translate-x-1/2 whitespace-nowrap px-3 py-1 text-xs font-semibold bg-white text-black rounded shadow-md z-50 opacity-0 group-hover:opacity-100 pointer-events-none transition-all duration-200",children:J?"Added":"Add to Watchlist"})]}),(0,_.jsxs)("div",{className:"relative group",children:[(0,_.jsxs)("button",{onClick:function(){return Te(!0)},className:"h-8 w-8 bg-gray-700 hover:bg-white rounded-md flex items-center justify-center",children:[(0,_.jsx)("img",{src:"/images/cdp_icons/share_new.svg",alt:"share",className:"h-6 w-6 transition-opacity duration-200 group-hover:opacity-0"}),(0,_.jsx)("img",{src:"/images/cdp_icons/Black_share.svg",alt:"hover",className:"h-6 w-6 absolute opacity-0 transition-opacity duration-200 group-hover:opacity-100"})]}),(0,_.jsx)("div",{className:"absolute bottom-full mb-2 left-1/2 -translate-x-1/2 whitespace-nowrap px-3 py-1 text-xs font-semibold bg-white text-black rounded shadow-md z-50 opacity-0 group-hover:opacity-100 pointer-events-none transition-all duration-200",children:"Share"})]})]})]}),he.contentData.relatedCast&&(0,_.jsx)("div",{className:"w-[clamp(280px,100%,640px)]",children:(0,_.jsx)("div",{className:"w-full",children:(0,_.jsx)(ue,{relatedCast:he.contentData.relatedCast})})})]})]}),(0,_.jsx)("div",{className:"absolute absolute bottom-0 left-0 w-full h-[35%] bg-gradient-to-t from-black via-black/0 to-transparent"})]})}),e.contentType&&("movie"===e.contentType||"musicvideo"==e.contentType)&&he.contentData.relatedCast&&(0,_.jsx)("div",{className:"relative z-10 ml-8 pl-6 transform translate-y-[90vh] gap-6 text-white"}),Ke&&(0,_.jsx)("div",{className:V().modalOverlay,children:(0,_.jsxs)("div",{className:V().modalContent,children:[(0,_.jsx)("h3",{className:"font-bold mt-2 sm:mt-3 text-xl md:text-3xl text-center mb-8",children:"Device Limit Reached"}),(0,_.jsx)("p",{className:"mt-2 sm:mt-3 text-md md:text-xl text-center mb-8",children:"Your device Limit is reached. Do you want to Add this device and remove one of your other devices ?"}),(0,_.jsx)("div",{className:"flex justify-center space-x-3 text-black font-bold text-lg md:text-xl",children:(0,_.jsx)("button",{className:"h-14 w-40 bg-white/60 hover:bg-white/90 rounded-md",type:"button",onClick:wt,children:"Add Device"})})]})})]}),Q.tq&&(null===he||void 0===he?void 0:he.contentData)&&(0,_.jsxs)("div",{className:"relative w-full min-h-screen bg-black text-white",children:[(0,_.jsxs)("div",{className:"relative",children:[(0,_.jsx)("img",{className:"w-full h-auto object-cover",src:function(e){var t=(0,K.Z)(e.values,"hdpi","thumbnail");return""!=t?t:""}(he.contentData.images),alt:"cover_poster"}),(0,_.jsx)("div",{className:"absolute bottom-0 left-0 right-0 h-[20rem] bg-gradient-to-t from-black/80 to-transparent"})]}),(0,_.jsxs)("div",{className:"absolute bottom-0 left-0 w-full px-2 py-4 z-10",children:[(0,_.jsx)(oe.Z,{contentDetails:he,showleftsideContentDetails:"true"}),(0,_.jsxs)("ul",{className:"flex flex-wrap items-center gap-2 text-xs text-gray-300 mt-2",children:[(0,_.jsx)("li",{children:(0,C.fK)(he.contentData.content.language)}),(0,_.jsx)("li",{children:"\u2022"}),(0,_.jsx)("li",{children:(0,C.Qt)(he.contentData.content.genre)}),(0,_.jsx)("li",{children:"\u2022"}),(0,_.jsx)("li",{children:(0,C.kq)(he.contentData.content)}),"Serials"!==(0,C.Qt)(he.contentData.content.genre)&&(0,_.jsxs)(_.Fragment,{children:[(0,_.jsx)("li",{children:"\u2022"}),(0,_.jsxs)("li",{children:[Math.round((0,C.TV)(he.contentData.content.duration)/60)," Mins"]})]})]}),(0,_.jsxs)("div",{className:"flex flex-wrap gap-2 mt-3 text-xs items-center",children:[he.contentData.content.categoryType&&(0,_.jsx)("span",{className:"px-2 py-1 border border-white/40 rounded",children:he.contentData.content.categoryType}),he.contentData.subtitles.values.length>0&&(0,_.jsx)("span",{className:"px-2 py-1 border border-white/40 rounded",children:"SUB"}),he.contentData.content.videoQuality&&(0,_.jsx)("span",{className:"px-2 py-1 border border-white/40 rounded",children:he.contentData.content.videoQuality}),M&&(0,_.jsx)("img",{src:M,alt:"dolby",className:"h-3 object-contain"})]}),(0,_.jsx)("div",{className:"text-md text-white opacity-80",children:(0,_.jsxs)("p",{className:"inline",children:[(0,_.jsx)("span",{className:"inline",children:nt?bt:yt?bt.slice(0,120)+"...":bt}),yt&&(0,_.jsx)("button",{onClick:function(){return at(!nt)},className:"ml-1 text-xs text-white/70 inline",children:nt?"Less":"More"})]})}),(0,_.jsxs)("div",{className:"flex flex-wrap items-center gap-1 mt-4 text-sm",children:[Pe?(0,_.jsxs)("button",{onClick:function(){ut&&(0,C.B5)(mt,e.contentId,Fe)},disabled:!ut,className:"h-10 px-1 bg-white text-black rounded-md flex items-center gap-2 font-semibold ".concat(ut?"":"op
1acity-50 cursor-not-allowed"),children:[(0,_.jsx)("img",{src:"/images/cdp_icons/Play_cdp.svg",alt:"playbtn",className:"h-4 w-4"}),(0,_.jsxs)("span",{children:[He,he.contentData.content.serialNo?" Ep ".concat(he.contentData.content.serialNo):""]})]}):(0,_.jsxs)("button",{onClick:function(){return(0,C.B5)(mt,e.contentId,Fe)},className:"h-10 px-1 bg-white text-black rounded-md flex items-center gap-2 font-semibold",children:[(0,_.jsx)("img",{src:"pause"===xe?ee.Z.src:$.Z.src,alt:"playpause",className:"h-5 w-5"}),(0,_.jsx)("span",{children:xe.charAt(0).toUpperCase()+xe.slice(1)})]}),Pe&&(null===he||void 0===he||null===(g=he.contentData)||void 0===g||null===(x=g.relatedMultimedia)||void 0===x||null===(b=x.values)||void 0===b?void 0:b.length)>0&&(0,_.jsxs)("button",{className:"h-10 px-1 bg-gray-700 rounded-md flex items-center gap-1",onClick:kt,children:[(0,_.jsx)("img",{src:"/images/cdp_icons/movie_cdp.svg",alt:"trailer",className:"h-6 w-6"}),(0,_.jsx)("span",{children:"Watch Trailer"})]}),$e.button&&(0,_.jsxs)("button",{onClick:function(){(0,R.bv)("voting_form_popup_loaded",null),et((function(e){return me(me({},e),{},{popup:!e.popup})}))},className:" flex items-center justify-center gap-3 border-none rounded-[20px] text-white text-[14px] px-[35px] py-[6px] cursor-pointer relative shadow-[0_4px_12px_rgba(0,0,0,0.8)] bg-[linear-gradient(90deg,#683B6C,#D1204E,#683B6C)] bg-[length:200%_200%] transition-all duration-400 ease-in-out animate-fadePulse ",children:[(0,_.jsx)("span",{className:"w-[10px] h-[10px] bg-[#FFD400] rounded-full"}),"Vote"]}),(0,_.jsx)("button",{onClick:function(){return Dt(J)},className:"h-10 w-8 bg-gray-700 rounded-md flex items-center justify-center",children:(0,_.jsx)("img",{src:J?"/images/Icons/Tick.svg":"/images/cdp_icons/watchlist_new.svg",alt:"watchlist",className:"h-6 w-6"})}),(0,_.jsx)("button",{onClick:function(){return Te(!0)},className:"h-10 w-8 bg-gray-700 rounded-md flex items-center justify-center",children:(0,_.jsx)("img",{src:"/images/cdp_icons/share_new.svg",alt:"share",className:"h-6 w-6"})})]}),he.contentData.relatedCast&&(0,_.jsx)("div",{className:"mt-5 w-full",children:(0,_.jsx)(ue,{relatedCast:he.contentData.relatedCast})})]}),Ke&&(0,_.jsx)("div",{className:V().modalOverlay,children:(0,_.jsxs)("div",{className:V().modalContent,children:[(0,_.jsx)("h3",{className:"font-bold mt-2 sm:mt-3 text-xl md:text-3xl text-center mb-8",children:"Device Limit Reached"}),(0,_.jsx)("p",{className:"mt-2 sm:mt-3 text-md md:text-xl text-center mb-8",children:"Your device Limit is reached. Do you want to Add this device and remove one of your other devices ?"}),(0,_.jsx)("div",{className:"flex justify-center space-x-3 text-black font-bold text-lg md:text-xl",children:(0,_.jsx)("button",{className:"h-14 w-40 bg-white/60 hover:bg-white/90 rounded-md",type:"button",onClick:wt,children:"Add Device"})})]})})]}),e.promoImages&&(0,_.jsx)("div",{className:y().promo_banner,children:(0,_.jsx)("a",{href:e.webPromoUrl,rel:"noopener noreferrer",target:"_blank",onClick:function(){return(0,A.Kd)(e.bannerTitle,"CDP")},children:(0,_.jsx)(ie.Z,{imgPath:e.promoImages,layOut:"promotionFullWidthRailV1",altTitle:"test"})})}),function(){try{var e,t,n,a=(0,C.lT)("userProfile");if(!0===(null===a||void 0===a||null===(e=a.result)||void 0===e||null===(t=e.profile)||void 0===t?void 0:t.isKidProfile))return null;var r=null===ft||void 0===ft||null===(n=ft.properties)||void 0===n?void 0:n.cdp_short_url_redirect;if(r){var o="string"===typeof r?JSON.parse(r):r,s=!0===o.cdp_short_redirect_enabled||"true"===o.cdp_short_redirect_enabled,i=o.web_cdp_short_image;if(s&&i)return(0,_.jsx)("div",{className:y().promo_banner,children:(0,_.jsx)("a",{role:"button",onClick:function(){return De.push("/micro-drama")},style:{cursor:"pointer"},children:(0,_.jsx)(ie.Z,{imgPath:i,layOut:"promotionFullWidthRailV1",altTitle:"Sun NXT Shorts"})})})}}catch(l){console.error("CDP Shorts Debug - Error parsing cdp_short_url_redirect:",l)}return null}(),e.contentType&&("movie"===e.contentType||"musicvideo"==e.contentType)&&he.contentData.relatedCast&&(0,_.jsx)(L,{contentId:e.contentId,carouselContents:he.contentData,relatedCast:he.contentData.relatedCast,relatedMultimedia:he.contentData.relatedMultimedia,placeholder:"Movies"===(0,C.wg)(he.contentData)?"thumbnail":"coverposter"}),e.contentType&&["vodchannel","show","season","episode","videoalbum","vod"].includes(e.contentType)&&("vod"!==e.contentType||47!==(null===(w=e.contentData)||void 0===w||null===(j=w.results)||void 0===j||null===(S=j[0])||void 0===S||null===(D=S.publishingHouse)||void 0===D?void 0:D.publishingHouseId))&&(0,_.jsx)(z,{contentId:e.contentId,contentDat:e.contentData.results[0],getEpisodeData:function(e,t,n){var a,r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];ht.current=!0;var o=e.results[0];Ue(n),we(o.generalInfo._id),Se(o.generalInfo._id),Ee(t),st.current=o._id,ot(o._id),be("Play"),Me(!0),ve({contentData:o}),Y(o.currentUserData.favorite);var s=o.currentUserData.favorite?ne:te.Z.src;
1if(F(s),U(St()),r){var i=(0,k.Ct)(o);i&&"/"!==i&&i!==De.asPath&&De.push(i,void 0,{shallow:!0,scroll:!1})}1==(null===(a=o.generalInfo)||void 0===a?void 0:a.isVotingEnabled)?et((function(e){return me(me({},e),{},{button:!0})})):et((function(e){return me(me({},e),{},{button:!1})})),1==(null===o||void 0===o?void 0:o.is_restricted_content_meta)?(ze("This content is not available in your region"),pt(!0)):T.default.getMediaLinks(o._id,1,!1).then((function(e){if(e&&200===e.status){var t,n,a,r=(0,se.Z)(e.data.response,"A3s68aORSgHs$71P");if(null!==r&&200===r.code&&"SUCCESS"===r.status&&r.results.length>0)if(void 0!==r.results[0].videos)if("ERR_GUEST_USER"===r.results[0].videos.status||"ERR_NON_LOGGED_USER"===r.results[0].videos.status)47==(null===o||void 0===o||null===(t=o.publishingHouse)||void 0===t?void 0:t.publishingHouseId)||"avod"==(null===o||void 0===o||null===(n=o.generalInfo)||void 0===n||null===(a=n.contentRights)||void 0===a?void 0:a[0])?(ze("Watch Now"),ct("LOGIN")):(ct("SUBSCRIBE"),ze("Subscribe to Watch"),sessionStorage.setItem("isPaidContent","true"));else"ERR_USER_NOT_SUBSCRIBED"===r.results[0].videos.status||"ERR_UPGRADE_PREMIUM"===r.results[0].videos.status?(ct("SUBSCRIBE"),ze("Subscribe to Watch"),sessionStorage.setItem("isPaidContent","true")):(ze("Watch Now"),ct("ALLOW"));else ze("Watch Now"),ct("ALLOW");else ze("Watch Now"),ct("ALLOW")}else ze("Watch Now"),ct("ALLOW");pt(!0)}))},contentType:e.contentType,CID:e.CID},e.contentId),(0,_.jsx)(B,{contentId:e.contentId,carouselContents:le.similarContentData,title:"More Like This",placeholder:"Movies"===(0,C.wg)(he.contentData)?"thumbnail":"coverposter"}),Ze&&(0,_.jsx)(ae.Z,{contentDetails:he,closeModal:function(){Te(!1)}})]}),(0,_.jsx)(l.Z,{}),$e.popup&&(0,_.jsx)("div",{className:q().popup_overlay_new,children:(0,_.jsxs)("div",{className:q().popup_new,children:[(0,_.jsx)("img",{src:"/images/closebutton.png",alt:"close",className:q().close_btn,onClick:function(){return et((function(e){return me(me({},e),{},{popup:!e.popup})}))}}),(0,_.jsx)("img",{src:"/images/logo/logo.png",alt:"Logo",className:q().popup_logo_new}),(0,_.jsx)("h3",{className:q().popup_heading_new,children:"VOTING IS NOW LIVE!"}),(0,_.jsxs)("ul",{className:q().popup_list,children:[(0,_.jsx)("li",{children:"Scan the QR code to download the Sun NXT app and vote for your favorite contestants on Sun Singer Junior 2"}),(0,_.jsx)("li",{children:"Voting is available exclusively on the mobile app"})]}),(0,_.jsx)("div",{className:q().popup_images_new,children:(0,_.jsx)("img",{src:"/images/prod_qr_code.png",alt:"qrcode",className:q().popup_qr_new})})]})})]})}},4636:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/[slug]/detail/[...index]",function(){return n(7122)}])},3895:function(e,t){"use strict";t.Z={src:"/_next/static/media/placeholder_coverposter.1708bda7.png",height:203,width:360,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAFBAMAAACKv7BmAAAAJFBMVEUmJiYlJSUkJCQ0NDQyMjIqKiopKSooKCkoKCgnJycmJiYlJSUd5LqWAAAAA3RSTlP9/f0ldDUMAAAAIklEQVR42mNYvXrXboZd27NXMaxu9tzFsHpq1y4GASFBRgCaCQo75EmOIAAAAABJRU5ErkJggg=="}},1341:function(e,t){"use strict";t.Z={src:"/_next/static/media/placeholder_square.6c5ff69b.png",height:240,width:240,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAIBAMAAAA2IaO4AAAAJ1BMVEU0NDQ0NDMzMzMyMjIvLy4uLi4rKysqKiooKCgnJycmJiYlJSUkJCQZ3+EWAAAAMElEQVR42mNYvWrVLoZdq3cBiZ2zVzOsLmbbxbBG0fUUw64Vs3YxrNq9Gyi2atUuAJXFFEB/6fxPAAAAAElFTkSuQmCC"}},1523:function(e,t){"use strict";t.Z={src:"/_next/static/media/placeholder_thumbnail.75670bcf.png",height:360,width:240,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAICAAAAAAUmmrnAAAAJElEQVR42mNQVVNTU2WAkGqqKqpqDKqaBpqqDCo6QBIqgqQGAI/7Bf8/MzZgAAAAAElFTkSuQmCC"}},5096:function(){"use strict"},235:function(e,t){"use strict";t.Z={src:"/_next/static/media/watchlist.cf949b25.png",height:26,width:26,blurDataURL:"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAAICAQAAABuBnYAAAAAYElEQVR42k2KMQ5AQBQFd0WD3cQmTuAIGola5RQu4AAkotHTiErtVK4yYUPyTfMmk6cEgndCCkoq8se1D5aFg5P2+xDT0TPRMGN8SBjZqBm4WHEKjSUlwrCTqT84US35BmyxLld6LT1aAAAAAElFTkSuQmCC"}},228:function(e){e.exports={detail_data:"detail_detail_data__EZ1nC",detail
1:"detail_detail__Y11ZH",player:"detail_player__3avqw",video_description:"detail_video_description__0oskM",arrows_left_section:"detail_arrows_left_section__Lf6CK",selected_arrow_left:"detail_selected_arrow_left__Ohsdc",default_arrow_left:"detail_default_arrow_left__NZhds",contentTitle:"detail_contentTitle__S00Up",seoh1:"detail_seoh1__Qq0m5",video_data:"detail_video_data__dpO5_",video:"detail_video__T64Cv",subtitle:"detail_subtitle__ZOPx7",player_title:"detail_player_title__00abB",player_section:"detail_player_section__5qT1_",videoqualityimg:"detail_videoqualityimg__douXQ",play_button:"detail_play_button__z5wcB",share_data:"detail_share_data__zVLbl",videoplayer:"detail_videoplayer__LvQPx",parental_rating_control:"detail_parental_rating_control__VN0W0",parental_rating_category_type:"detail_parental_rating_category_type__3vST1",parental_rating_category_name:"detail_parental_rating_category_name__DHcL_",detail_tabs:"detail_detail_tabs__LUXxA",bloc_tabs:"detail_bloc_tabs__5UmUh",tabs_button:"detail_tabs_button__LDQtR",active_tabs:"detail_active_tabs__O5wnv",content_tabs_carousels:"detail_content_tabs_carousels__ycica",content_tabs:"detail_content_tabs__wNjlJ",active_content:"detail_active_content__gtZDi",detail_eptitle:"detail_detail_eptitle__O_LHq",box:"detail_box__tpEE_",vote_button:"detail_vote_button__vL9Kv",fadePulse:"detail_fadePulse__VhVfI",yellow_dot:"detail_yellow_dot__
1kSeyZ",detail_desktop:"detail_detail_desktop__kTVvD",detail_mobile:"detail_detail_mobile__VGK3L",popup_overlay_new:"detail_popup_overlay_new__2NVz1",popup_new:"detail_popup_new__Vde6K",popupFade:"detail_popupFade__aQcDb",close_btn:"detail_close_btn__gLBgt",popup_logo_new:"detail_popup_logo_new__9vjfw",popup_heading_new:"detail_popup_heading_new__HqzJW",popup_images_new:"detail_popup_images_new__v0EUb",popup_list:"detail_popup_list__5gjlt",images_flex:"detail_images_flex__KFcvd",no_border:"detail_no_border__lyRTh",popup_img_new:"detail_popup_img_new__y_ef0",popup_qr_new:"detail_popup_qr_new__bEsgv"}},6573:function(e,t,n){"use strict";var a=n(5456),r=n(6459);var o=(0,n(9075).Z)("facebook",(function(e,t){var n=t.quote,o=t.hashtag;return(0,a.Z)(e,"facebook.url"),"https://www.facebook.com/sharer/sharer.php"+(0,r.Z)({u:e,quote:n,hashtag:o})}),(function(e){return{quote:e.quote,hashtag:e.hashtag}}),{windowWidth:550,windowHeight:400});t.Z=o},8799:function(e,t,n){"use strict";var a=n(5456),r=n(6459);var o=(0,n(9075).Z)("twitter",(function(e,t){var n=t.title,o=t.via,s=t.hashtags,i=void 0===s?[]:s,l=t.related,c=void 0===l?[]:l;return(0,a.Z)(e,"twitter.url"),(0,a.Z)(Array.isArray(i),"twitter.hashtags is not an array"),(0,a.Z)(Array.isArray(c),"twitter.related is not an array"),"https://twitter.com/share"+(0,r.Z)({url:e,text:n,via:o,hashtags:i.length>0?i.join(","):void 0,related:c.length>0?c.join(","):void 0})}),(function(e){return{hashtags:e.hashtags,title:e.title,via:e.via,related:e.related}}),{windowWidth:550,windowHeight:400});t.Z=o},9075:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var a=n(7294),r=n(4184),o=n.n(r),s=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function a(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(a.prototype=n.prototype,new a)}}(),i=function(){return i=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},i.apply(this,arguments)},l=function(e,t,n,a){return new(n||(n=Promise))((function(r,o){function s(e){try{l(a.next(e))}catch(t){o(t)}}function i(e){try{l(a.throw(e))}catch(t){o(t)}}function l(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(s,i)}l((a=a.apply(e,t||[])).next())}))},c=function(e,t){var n,a,r,o,s={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return o={next:i(0),throw:i(1),return:i(2)},"function"===typeof Symbol&&(o[Symbol.iterator]=function(){return this}),o;function i(o){return function(i){return function(o){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,a&&(r=2&o[0]?a.return:o[0]?a.throw||((r=a.return)&&r.call(a),0):a.next)&&!(r=r.call(a,o[1])).done)return r;switch(a=0,r&&(o=[2&o[0],r.value]),o[0]){case 0:case 1:r=o;break;case 4:return s.label++,{value:o[1],done:!1};case 5:s.label++,a=o[1],o=[0];continue;case 7:o=s.ops.pop(),s.trys.pop();continue;default:if(!(r=(r=s.trys).length>0&&r[r.length-1])&&(6===o[0]||2===o[0])){s=0;continue}if(3===o[0]&&(!r||o[1]>r[0]&&o[1]<r[3])){s.label=o[1];break}if(6===o[0]&&s.label<r[1]){s.label=r[1],r=o;break}if(r&&s.label<r[2]){s.label=r[2],s.ops.push(o);break}r[2]&&s.ops.pop(),s.trys.pop();continue}o=t.call(e,s)}catch(i){o=[6,i],a=0}finally{n=r=0}if(5&o[0])throw o[1];return{value:o[0]?o[1]:void 0,done:!0}}([o,i])}}},d=function(e,t){var n={};for(var a in e)Object.prototype.hasOwnProperty.call(e,a)&&t.indexOf(a)<0&&(n[a]=e[a]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var r=0;for(a=Object.getOwnPropertySymbols(e);r<a.length;r++)t.indexOf(a[r])<0&&Object.prototype.propertyIsEnumerable.call(e,a[r])&&(n[a[r]]=e[a[r]])}return n},u=function(e){return!!e&&("object"===typeof e||"function"===typeof e)&&"function"===typeof e.then},p=function(e,t){return{left:window.outerWidth/2+(window.screenX||window.screenLeft||0)-e/2,top:window.outerHeight/2+(window.screenY||window.screenTop||0)-t/2}},f=function(e,t){return{top:(window.screen.height-t)/2,left:(window.screen.width-e)/2}};function h(e,t,n){var a=t.height,r=t.width,o=d(t,["height","width"]),s=i({height:a,width:r,location:"no",toolbar:"no",status:"no",directories:"no",menubar:"no",scrollbars:"yes",resizable:"no",centerscreen:"yes",chrome:"yes"},o),l=window.open(e,"",Object.keys(s).map((function(e){return e+"="+s[e]})).join(", "));if(n)var c=window.setInterval((function(){try{(null===l||l.closed)&&(window.clearInterval(c),n(l))}catch(e){console.error(e)}}),1e3);return l}var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.openShareDialog=function(e){var n=t.props,a=n.onShareWindowClose,r=n.windowHeight,o=void 0===r?400:r,s=n.windowPosition,l=void 0===s?"windowCenter":s,c=n.windowWidth,d=void 0===c?550:c;h(e,i({height:o,width:d},"windowCenter"===l?p(d,o):f(d,o)),a)},t.handleClick=function(e){return l(t,void 0,void 0,(function(){var t,n,a,r,o,s,i,l,d,p;return c(this,(function(c){switch(c.label){case 0:return t=this.props,n=t.beforeOnClick,a=t.disabled,r=t.networkLink,o=t.onClick,s=t.url,i=t.openShareDialogOnClick,l=t.opts,d=r(s,l),a?[2]:(e.preventDefault(),n?(p=n(),u(p)?[4,p]:[3,2]):[3,2]);case 1:c.sent(),c.label=2;case 2:return i&&this.openShareDialog(d),o&&o(e,d),[2]}}))}))},t}return s(t,e),t.prototype.render=function(){var e=this.props,t=(e.beforeOnClick,e.children),n=e.className,r=e.disabled,s=e.disabledStyle,l=e.forwardedRef,c=(e.networkLink,e.networkName),u=(e.onShareWindowClose,e.openShareDialogOnClick,e.opts,e.resetButtonStyle),p=e.style,f=(e.url,e.windowHeight,e.windowPosition,e.windowWidth,d(e,["beforeOnClick","children","className","disabled","disabledStyle","forwardedRef","networkLink","networkName","onShareWindowClose","openShareDialogOnClick","opts","resetButtonStyle","style","url","windowHeight","windowPosition","windowWidth"])),h=o()("react-share__ShareButton",{"react-share__ShareButton--disabled":!!r,disabled:!!r},n),m=i(i(u?{backgroundColor:"transparent",border:"none",padding:0,font:"inherit",color:"inherit",curs
1or:"pointer"}:{},p),r&&s);return a.createElement("button",i({},f,{"aria-label":f["aria-label"]||c,className:h,onClick:this.handleClick,ref:l,style:m}),t)},t.defaultProps={disabledStyle:{opacity:.6},openShareDialogOnClick:!0,resetButtonStyle:!0},t}(a.Component),v=m,g=function(){return g=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},g.apply(this,arguments)};var x=function(e,t,n,r){function o(o,s){var i=n(o),l=g({},o);return Object.keys(i).forEach((function(e){delete l[e]})),a.createElement(v,g({},r,l,{forwardedRef:s,networkName:e,networkLink:t,opts:n(o)}))}return o.displayName="ShareButton-"+e,(0,a.forwardRef)(o)}},5456:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var a=function(){var e=function(t,n){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},e(t,n)};return function(t,n){function a(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(a.prototype=n.prototype,new a)}}(),r=function(e){function t(t){var n=e.call(this,t)||this;return n.name="AssertionError",n}return a(t,e),t}(Error);function o(e,t){if(!e)throw new r(t)}},6459:function(e,t,n){"use strict";function a(e){var t=Object.entries(e).filter((function(e){var t=e[1];return void 0!==t&&null!==t})).map((function(e){var t=e[0],n=e[1];return encodeURIComponent(t)+"="+encodeURIComponent(String(n))}));return t.length>0?"?"+t.join("&"):""}n.d(t,{Z:function(){return a}})},748:function(e,t,n){"use strict";function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return a}})},2777:function(e,t,n){"use strict";function a(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:function(){return a}})},2262:function(e,t,n){"use strict";function a(e,t){for(var n=0;n<t.length;n++){var a=t[n];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}function r(e,t,n){return t&&a(e.prototype,t),n&&a(e,n),e}n.d(t,{Z:function(){return r}})},7247:function(e,t,n){"use strict";function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}n.d(t,{Z:function(){return a}})},5959:function(e,t,n){"use strict";function a(e,t){return a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},a(e,t)}function r(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}n.d(t,{Z:function(){return r}})},3553:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var a=n(4027),r=n(748);function o(e,t){if(t&&("object"===a(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,r.Z)(e)}}},function(e){e.O(0,[7536,1664,3087,5675,6655,5810,5516,6388,3856,9656,9585,134,405,9774,2888,179],(function(){return t=4636,e(e.s=t);var t}));var t=e.O();_N_E=t}]);
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.