PageSourceSearch

https://tsat.tv/_next/static/chunks/9467-d1c3310ab675e749.js

js tsat.tv collected 2026-10-01 23:54:34 UTC 134,566 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9467],{74159:function(e,t,i){"use strict";var l=i(85893),a=i(67294),o=i(11163),n=i(578),s=i.n(n);t.Z=e=>{let{adClientId:t,adUnitId:i,width:n,height:r}=e,d=(0,a.useRef)(null),c=(0,o.useRouter)(),u=()=>{if(d.current){d.current.innerHTML="";let e=document.createElement("ins");e.style.display="inline-block",e.style.width=n,e.style.height=r,e.className="adsbygoogle",e.setAttribute("data-ad-client",t),e.setAttribute("data-ad-slot",i),e.setAttribute("data-adtest","off"),d.current.appendChild(e),window.adsbygoogle&&(window.adsbygoogle=window.adsbygoogle||[]).push({});let l=()=>{},a=setInterval(()=>{l()},3e3);setTimeout(()=>{clearInterval(a),l()},1e4)}};return(0,a.useEffect)(()=>(u(),()=>{d.current&&(d.current.innerHTML="")}),[c.asPath]),(0,l.jsx)("div",{ref:d,className:"".concat(s().gadsElement," ").concat("")})}},66158:function(e,t,i){"use strict";var l=i(85893),a=i(67294),o=i(84781);t.Z=e=>{let{data:t,isDataTruncate:i,customClass:n,styles:s}=e,[r,d]=(0,a.useState)(!1);return(0,l.jsx)("div",{className:n,onClick:()=>{d(!r)},dangerouslySetInnerHTML:(()=>
1{if(!t)return{__html:""};if((0,o.FP)(t))return{__html:t};let e=i?r?t:t.length>200?t.slice(0,200)+"... ":t:t;return{__html:e+(t.length>200&&i?'<span class="'.concat(s.readMore,'">').concat(r?" Show Less":" Read More","</span>"):"")}})()})}},60866:function(e,t,i){"use strict";var l=i(85893),a=i(19269),o=i.n(a);t.Z=e=>{let{type:t}=e;if("button"==t)return(0,l.jsx)("div",{className:"".concat(o().btn_loader),children:(0,l.jsx)("div",{className:"".concat(o().icon)})})}},3899:function(e,t,i){"use strict";var l=i(85893),a=i(19269),o=i.n(a),n=i(66353);t.Z=()=>(0,l.jsx)("div",{className:"".concat(o().page_loader),children:(0,l.jsx)("img",{className:"".concat(o().icon," rotate"),src:"".concat(n.Z.PageLoader.loader),alt:"rotate"})})},53068:function(e,t,i){"use strict";i.d(t,{i:function(){return a}});var l=i(67294);let a=()=>{let[e,t]=(0,l.useState)({height:0,width:0});return(0,l.useEffect)(()=>{let e=()=>{t({height:window.innerWidth,width:window.innerWidth})};return e(),window.addEventListener("resize",e),()=>{window.removeEventListener("resize",e)}},[]),e}},411:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return eK},default:function(){return ez}});var l=i(85893),a=i(67294),o=i(16732),n=i(11163),s=i(84781),r=i(57686),d=i(83677),c=i(93208),u=i(54999),v=i.n(u),p=i(41664),m=i.n(p);i(76268),i(72048),i(84940),i(80333);var h=i(25675),_=i.n(h),y=i(46066);i(84640),i(19678);var g=i(47874),f=i(81123),b=i.n(f);let w=e=>{let{item:t}=e;return(0,l.jsx)("div",{className:"".concat(v().imgContainer," ").concat(v()[t.customClass]),children:(0,l.jsx)(_(),{fill:!0,sizes:"100vw",loader:e=>{let{src:t}=e;return t},src:""!==t.imageUrl?t.imageUrl:"".concat(g.e.staticImagesPath,"default-banner.png"),id:"img_bannerImg_".concat(t.id),className:v().img_responsive,alt:"Banner ".concat(t.id),onError:e=>{let{currentTarget:t}=e;t.onerror=null,t.srcset="".concat(g.e.staticImagesPath,"default-banner.png")}})})};var x=e=>{let{streamPath:t,streamEnd:i,item:n}=e,s=(0,a.useRef)(null),r=(0,a.useRef)(null),d=(0,a.useRef)(),[c,u]=(0,a.useState)(!0),[v,p]=(0,a.useState)(!1),{state:{shakaCardHoverState:m}}=(0,o.oR)(),[h,_]=(0,a.useState)(!1),y=sessionStorage.getItem("isMutedSessionStored");(0,a.useEffect)(()=>(g(),()=>{f()}),[null==t?void 0:t.streamUrl]),(0,a.useEffect)(()=>{if(m){var e;null==s||null===(e=s.current)||void 0===e||e.pause()}return()=>{var e;h&&(null==s||null===(e=s.current)||void 0===e||e.play())}},[m]),(0,a.useEffect)(()=>{let e=new IntersectionObserver(k,{root:null,rootMargin:"0px",threshold:.5});return s.current&&e.observe(s.current),()=>{s.current&&e.unobserve(s.current)}},[m]);let g=()=>{d.current=new(b()).util.EventManager,b().polyfill.installAll(),b().Player.isBrowserSupported()?r.current=new(b()).Player(s.current):console.log("Shaka Player is not supported in this browser."),x(t.streamUrl)},f=()=>{p(!1),d.current&&d.current.removeAll(),r.current&&r.current.destroy()},x=e=>{var t,l;r.current.attach(s.current,!0),r.current.configure({disablePictureInPicture:!0}),e.includes(".m3u8")&&(r.current.getNetworkingEngine().registerRequestFilter(function(e,t){e===b().net.NetworkingEngine.RequestType.SEGMENT&&(t.method="GET")}),r.current.configure({streaming:{lowLatencyMode:!0,inaccurateManifestTolerance:0,rebufferingGoal:.01,segmentPrefetchLimit:2}})),r.current.load(e).then(function(){var e,t;m?null==s||null===(e=s.current)||void 0===e||e.pause():(null===(t=s.current)||void 0===t||t.play(),"false"==y?(s.current.muted=!1,u(!1)):s.current.muted=c)}).catch(e=>{console.error("Error code",e.code,"object",e),i()}),null===(t=s.current)||void 0===t||t.addEventListener("ended",function(){i(!0)}),null==d||null===(l=d.current)||void 0===l||l.listenOnce(s.current,"timeupdate",()=>{p(!0)}),r.current.addEventListener("error",e=>S(e))},S=e=>{let t=e.detail;console.error("Shaka Player error:",t),i()},k=e=>{e.forEach(e=>{var t,i;e.isIntersecting?(_(!0),(null==s?void 0:null===(t=s.current)||void 0===t?void 0:t.src)===""?g():((null==r?void 0:r.current)||g(),setTimeout(()=>{var e;null==s||null===(e=s.current)||void 0===e||e.play()},300))):(_(!1),null==s||null===(i=s.current)||void 0===i||i.pause())})};return(0,l.jsxs)(l.Fragment,{children:[!v&&(0,l.jsx)(w,{item:n}),(0,l.jsx)(j,{isVideoStarted:v,toggleMute:e=>{null==e||e.preventDefault();let t=!c;u(t),sessionStorage.setItem("isMutedSessionStored",t),(null==r?void 0:r.current)&&(s.current.muted=t)},videoRef:s,muted:c})]})};let j=a.memo(e=>{let{isVideoStarted:t,toggleMute:i,videoRef:a,muted:o}=e;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("video",{style:{width:"100%",visibility:t?"visible":"hidden"},ref:a,disablePictureInPicture:!0}),(0,l.jsx)("img",{className:"".concat(v().player_mute),onClick:e=>i(e),src:"".concat(g.e.staticImagesPath).concat(o?"volume-mute.svg":"volume-unmute.svg"),width:"30",alt:"unmute",style:{visibility:t?"visible":"hidden"}},o?"volume-mute":"volume-unmute")]})}),S=e=>{let{item:t}=e,i=t.isInternal?"_self":"_blank";return(0,l.jsx)(m(),{href:t.target.path,prefetch:!1,target:i,"aria-label":"banner",children:e.children})};var k=e=>{let{bannerslist:t}=e,{state:{SystemConfig:i,userDetails:n,SystemFeature:r,PageData:d,localLang:u},dispatch:p}=(0,o.oR)(),[m,h]=(0,a.useState)([]),[_,g]=(0,a.useState)(null),f=(0,a.useRef)(null),b=(0,a.useRef)(null),j=(0,a.useRef)(null),k=window.innerWidth,[T,N]=(0,a.useState)([]),I=(0,a.useRef)(null),[C,P]=(0,a.useState)(30);(0,a.useEffect)(()=>
1{if(I.current){let e=I.current.scrollWidth,t=I.current.parentElement.offsetWidth;P((e+t)/100)}},[T]),(0,a.useEffect)(()=>{var e,t;(null==i?void 0:null===(e=i.configs)||void 0===e?void 0:e.flashMessages)&&N(JSON.parse(null===(t=i.configs)||void 0===t?void 0:t.flashMessages))},[i]),(0,a.useEffect)(()=>{if(t){let e=null==t?void 0:t.map(e=>{var t,i;return{...e,imageUrl:D(e.imageUrl),videoAvilable:!!(null===(i=e.params)||void 0===i?void 0:null===(t=i.streamUrl)||void 0===t?void 0:t.length)}});h(e),sessionStorage.setItem("isMutedSessionStored",!0)}},[t]);let D=e=>{try{return e?(0,c.ZY)(e):""}catch(e){}},E=()=>{(0,s.uG)().width>991&&M()},R=e=>{f.current&&(f.current.style.display=e)},A=()=>{setTimeout(()=>{B(0)},100)},B=e=>{var t,i;g(null),clearTimeout(j.current),j.current=null;let l=(0,s.uG)();0===e&&window.addEventListener("resize",E);let a=m[e];(null==a?void 0:a.videoAvilable)&&l.width>991?(null==b||null===(t=b.current)||void 0===t||t.slickPause(),j.current=setTimeout(()=>{var e;null==b||null===(e=b.current)||void 0===e||e.slickPause(),g(a)},3e3)):null==b||null===(i=b.current)||void 0===i||i.slickPlay()},M=()=>{var e,t,i,l,a;g(null),R("block"),null==b||null===(l=b.current)||void 0===l||l.slickGoTo((null==b?void 0:null===(i=b.current)||void 0===i?void 0:null===(t=i.innerSlider)||void 0===t?void 0:null===(e=t.state)||void 0===e?void 0:e.currentSlide)+1,!0),null==b||null===(a=b.current)||void 0===a||a.slickPlay()};if(m&&0==m.length)return(0,l.jsx)(l.Fragment,{});let Z="16px";return(0,l.jsxs)("div",{className:v().banners_wrap,children:[(0,l.jsx)("span",{className:v().banner_bottom_gradient}),(0,l.jsx)("div",{className:v().banner_cont,id:"banner_cont",children:(0,l.jsx)(y.Z,{dots:!0,infinite:!0,speed:500,fade:!0,autoplay:!0,autoplaySpeed:5e3,afterChange:e=>B(e),onInit:()=>A(),appendDots:e=>(0,l.jsx)("div",{id:"slickDots",children:(0,l.jsxs)("ul",{children:[" ",e," "]})}),ref:b,children:m.map(e=>{var t,i;return(0,l.jsx)("div",{children:(0,l.jsxs)(S,{item:e,children:[!_&&(0,l.jsx)(w,{item:e}),_&&e.videoAvilable&&e.id===(null==_?void 0:_.id)&&(null==_?void 0:null===(t=_.params)||void 0===t?void 0:t.streamUrl)&&(0,l.jsx)("div",{className:"".concat(v().JWPlayers_parent," ").concat(v().img_remvZIndex),style:{height:.4375*k+"px"},children:(0,l.jsx)(x,{item:e,streamPath:{streamUrl:null==_?void 0:null===(i=_.params)||void 0===i?void 0:i.streamUrl,imageUrl:e.imageUrl,isbannerVideo:_},streamEnd:M})})]})},e.id)})})}),(0,l.jsx)("div",{className:"".concat(v().marquee_container),children:(0,l.jsx)("span",{style:{width:"100%",display:"block"},children:T&&(null==T?void 0:T.length)>0&&(0,l.jsxs)("div",{style:{width:"100%",overflow:"hidden",whiteSpace:"nowrap",boxSizing:"border-box",position:"relative",fontSize:"16px",lineHeight:"1.2"},children:[(0,l.jsx)("div",{ref:I,style:{display:"inline-flex",alignItems:"center",marginLeft:"25px",animation:"scroll ".concat(C,"s linear infinite"),animationDelay:"1s",fontSize:Z,lineHeight:"1.2"},onMouseOver:e=>e.currentTarget.style.animationPlayState="paused",onMouseOut:e=>e.currentTarget.style.animationPlayState="running",children:T.map((e,t)=>(null==e?void 0:e.text)&&(0,l.jsxs)("span",{style:{display:"flex",alignItems:"center",marginRight:"20px"},children:[e.image&&""!==e.image.trim()&&(0,l.jsx)("img",{src:e.image,alt:"",style:{width:"50px",height:"50px"}}),(0,l.jsx)("a",{href:e.target,target:"_blank",rel:"noopener noreferrer",style:{fontWeight:"500",whiteSpace:"nowrap",color:"white",fontSize:Z,lineHeight:"1.2"},children:e.text}),(0,l.jsx)("span",{style:{width:"5px",height:"5px",borderRadius:"5px",marginLeft:"20px",marginBottom:"1px",backgroundColor:"white",display:(null==T?void 0:T.length)===t+1?"none":"block"}})]},t))}),(0,l.jsx)("style",{children:"\n            @keyframes scroll {\n               0% { transform: translateX(0%); }   /* start off right */\n              100% { transform: translateX(-100%); } /* move fully left */\n            }\n          "})]})})})]})},T=i(11216),N=i(79887),I=i(15111),C=i.n(I),P=i(68146),D=i(48414),E=i(34581),R=i(69968),A=i(47156),B=i(99221),M=e=>{var t,i,r,u,v,p,m,h,_,y,f,b,w,x;let{gridData:j}=e,{state:{PageData:S,SystemConfig:k},dispatch:T}=(0,o.oR)(),I=(0,n.useRouter)(),[M,Z]=(0,a.useState)({}),[L,U]=(0,a.useState)(0),[F,O]=(0,a.useState)(0),[q,V]=(0,a.useState)((null==j?void 0:null===(r=j.section)||void 0===r?void 0:null===(i=r.sectionData)||void 0===i?void 0:null===(t=i.data[0])||void 0===t?void 0:t.cardType)?null==j?void 0:null===(p=j.section)||void 0===p?void 0:null===(v=p.sectionData)||void 0===v?void 0:null===(u=v.data[0])||void 0===u?void 0:u.cardType:"sheet_poster"),{mutate:J,data:W,isLoading:G}=(0,d.Z)(),{mutate:H,data:K}=(0,d.Z)(),[z,Y]=(0,a.useState)({}),[X,Q]=(0,a.useState)(),[ee,et]=(0,a.useState)(null),[ei,el]=(0,a.useState)(!1),{mutate:ea,data:eo}=(0,R.Z)(),en=(0,a.useRef)({started:!1}),es=(0,P.fe)(),er=I.asPath.replace("/",""),[ed,ec]=(0,a.useState)(!1);(0,a.useEffect)(()=>{j&&ev(j)},[j,q]),(0,a.useEffect)(()=>{var e,t,i,l,a,o,n,s,r,d,c;if(null==W?void 0:null===(e=W.data)||void 0===e?void 0:e.status){let e=JSON.parse(JSON.stringify(M));(null==W?void 0:null===(i=W.data)||void 0===i?void 0:null===(t=i.response[0])||void 0===t?void 0:t.data)&&(null==W?void 0:null===(a=W.data)||void 0===a?void 0:null===(l=a.response[0])||void 0===l?void 0:l.data.length)>0?(e.section.sectionData.data=[...null===(n=M.section)||void 0===n?void 0:null===(o=n.sectionData)||void 0===o?void 0:o.data,...null==W?void 0:null===(r=W.data)||void 0===r?void 0:null===(s=r.response[0])||void 0===s?void 0:s.data],e.hasMoreData=null==W?void 0:null===(d=W.data)||void 0===d?void 0:d.response[0].hasMoreData,e.offset=null==W?void 0:null===(c=W.data)||void 0===c?void 0:c.response[0].lastIndex):e.hasMoreData=!1,Z(e)}W&&setTimeout(()=>{en.current.started=!1},200)},[W]),(0,a.useEffect)(()=>{var e;(null==eo?void 0:null===(e=eo.data)||void 0===e?void 0:e.status)&&Z(e=>{let t=e.section.sectionData.data.filter((e,t)=>
1t!==ee);return{...e,section:{...e.section,sectionData:{...e.section.sectionData,data:t}}}})},[eo]);let eu=()=>{var e,t,i,l;let a=window.innerWidth,o={...(0,P.Wh)(q)},n=Object.keys(o).filter(e=>e<=a);if(n){let i=n.sort((e,t)=>t-e);return U(null===(e=o[i[0]])||void 0===e?void 0:e.gridPadding),O(null===(t=o[i[0]])||void 0===t?void 0:t.cardPaddingGrid),{cardsToShow:o[i[0]].cardsPerGridRow,cardPadding:o[i[0]].cardPaddingGrid,gridPadding:o[i[0]].gridPadding}}{let e=Object.keys(o).sort((e,t)=>e-t);return U(null===(i=o[e[0]])||void 0===i?void 0:i.gridPadding),O(null===(l=o[e[0]])||void 0===l?void 0:l.cardPaddingGrid),{cardsToShow:o[e[0]].cardsPerGridRow,cardPadding:o[e[0]].cardPaddingGrid,gridPadding:o[e[0]].gridPadding}}},ev=e=>{var t,i,l,a,o,n,s,r,d,c,u,v,p,m,h;let _=JSON.parse(JSON.stringify(e)),y=(null==_?void 0:null===(l=_.section)||void 0===l?void 0:null===(i=l.sectionData)||void 0===i?void 0:null===(t=i.data[0])||void 0===t?void 0:t.cardType)||(null==_?void 0:null===(o=_.searchResults)||void 0===o?void 0:null===(a=o.data[0])||void 0===a?void 0:a.cardType),g=(0,P.TP)(q);Q(eu());let f=(document.body.clientWidth-2*(null===(n=eu())||void 0===n?void 0:n.gridPadding)-(null===(s=eu())||void 0===s?void 0:s.cardsToShow)*(2*(null===(r=eu())||void 0===r?void 0:r.cardPadding)))/(null===(d=eu())||void 0===d?void 0:d.cardsToShow);_.width=f,_.height=f*g,(null==_?void 0:null===(u=_.section)||void 0===u?void 0:null===(c=u.sectionData)||void 0===c?void 0:c.hasMoreData)==!0?(_.hasMoreData=!0,_.offset=null==_?void 0:null===(p=_.section)||void 0===p?void 0:null===(v=p.sectionData)||void 0===v?void 0:v.lastIndex):(_.hasMoreData=!1,_.offset=null==_?void 0:null===(h=_.section)||void 0===h?void 0:null===(m=h.sectionData)||void 0===m?void 0:m.lastIndex),V(es.includes(y)?y:"sheet_poster"),Z(_)},ep=(0,a.useCallback)(()=>{if(M&&(null==M?void 0:M.hasMoreData)){let e={path:(0,s.mn)(I.asPath),count:24,code:M.contentCode,offset:M.offset},t="https://api-apac.revlet.net/service/api/v1/section/data?"+(0,s.Yo)(e);try{J(t)}catch(e){}}},[j,M.contentCode,M.offset,J,I.asPath]);(0,a.useEffect)(()=>{let e=(0,A.X)(c._R,S),t=e&&Object.entries(e).map((e,t)=>{let[i,l]=e;return{index:t+1,indexV:parseInt(i),...l}});Y({adDataArray:t,adsData:e})},[S,X]),(0,a.useEffect)(()=>{let e=()=>{let e=document.documentElement.scrollHeight-window.innerHeight-window.scrollY,t=window.scrollY;null!==e&&e<window.innerHeight&&t>150&&!1===en.current.started&&(ep(),en.current.started=!0)};return document.addEventListener("scroll",e),()=>{document.removeEventListener("scroll",e)}},[ep]);let em=(e,t,i)=>{if(e.preventDefault(),ed){var l;let e="https://api-apac.revlet.net/service/api/auth/user/favourite/item?path="+(null==t?void 0:null===(l=t.target)||void 0===l?void 0:l.path)+"&action=2";H(e),el(!0)}else{et(i);let e={viewType:"continue_watching",pagePath:t.target.path};ea({url:"https://api-apac.revlet.net/service/api/v1/delete/view/archive",apiData:e})}},eh=e=>{var t,i,l,a;return!(null==z?void 0:null===(i=z.adDataArray)||void 0===i?void 0:null===(t=i[(e+1)/(null==X?void 0:X.cardsToShow)-1])||void 0===t?void 0:t.bottom)&&!(null==z?void 0:null===(a=z.adDataArray)||void 0===a?void 0:null===(l=a[(e+1)/X.cardsToShow-1])||void 0===l?void 0:l.top)};return(0,l.jsx)(E.Z,{children:(0,l.jsxs)("div",{className:"".concat(C().listHome," listHome"),children:["details"!=S.info.pageType&&(0,l.jsx)("div",{className:"".concat(C().listTitle),style:{padding:"0 ".concat(L+F,"px")},children:(0,l.jsxs)("h1",{children:[null===(h=M.section)||void 0===h?void 0:null===(m=h.sectionInfo)||void 0===m?void 0:m.name,er==k.configs.favouritesTargetPath&&(null===(y=g.e)||void 0===y?void 0:null===(_=y.favorite)||void 0===_?void 0:_.edit)&&(0,l.jsx)("span",{className:"".concat(C().favBtnEdit),onClick:()=>{ed?(ei&&T({type:o.Nw.ls,payload:!0}),ec(!1),el(!1)):ec(!0)},children:(0,l.jsx)("p",{children:ed?"Done":"Edit"})})]})}),(0,l.jsxs)("div",{className:"".concat(C().listItems),style:{padding:"0 ".concat(L-2,"px")},children:[M&&(null==M?void 0:null===(b=M.section)||void 0===b?void 0:null===(f=b.sectionData)||void 0===f?void 0:f.data.map((e,t)=>{var i;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"".concat(C().cardItem),style:{margin:"".concat(F,"px")},children:(0,l.jsx)(N.Z,{removeCard:em,sectionInfo:{sectionData:M.section,index:t},pagedata:S,item:e,cardType:q,cWidth:M.width,CHeight:M.height,sectionData:j.section,favEditButton:ed},e.target.path)},e.target.path),(t+1)%X.cardsToShow==0&&z&&(0,l.jsx)("div",{style:{width:"100%"},children:eh(t)&&(0,l.jsx)(B.Z,{adData:null==z?void 0:null===(i=z.adDataArray)||void 0===i?void 0:i[(t+1)/(null==X?void 0:X.cardsToShow)-1]})})]})})),M&&(null===(w=M.searchResults)||void 0===w?void 0:w.data.map((e,t)=>{var i;return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{className:"".concat(C().cardItem),style:{margin:"".concat(F,"px")},children:(0,l.jsx)(N.Z,{pagedata:S,item:e,cardType:q,cWidth:M.width,CHeight:M.height,sectionData:j.section},t)},t),(t+1)%X.cardsToShow==0&&z&&(0,l.jsx)("div",{style:{width:"100%"},children:eh(t)&&(0,l.jsx)(B.Z,{adData:null==z?void 0:null===(i=z.adDataArray)||void 0===i?void 0:i[(t+1)/(null==X?void 0:X.cardsToShow)-1]})})]})}))]}),G&&(0,l.jsx)("div",{children:(0,l.jsx)(D.Z,{custom:!0,type:["list"]})}),(null===(x=z.adsData)||void 0===x?void 0:x.bottom.bottom)&&!M.hasMoreData&&(0,l.jsx)(B.Z,{adData:z.adsData.bottom})]})})},Z=i(93566),L=i.n(Z),U=i(40044),F=i(90852),O=i(74815),q=i(22955),V=i(66353),J=e=>{var t,i,r,u,v,p,m,h,_,y;let{suggestionCardData:g,cHeight:f}=e,{state:{NotificationBar:b,localLang:w},dispatch:x}=(0,o.oR)(),j=(0,n.useRouter)(),{mutate:S,data:k}=(0,d.Z)(),T=(0,s.mn)(j.asPath),[N,I]=(0,a.useState)(g),[C,P]=(0,a.useState)();(0,a.useEffect)(()=>{var e;T===(null===(e=N.target)||void 0===e?void 0:e.path)&&D(N)},[N]),(0,a.useEffect)(()=>{var e,t,i;if((null==k?void 0:null===(e=k.data)||void 0===e?void 0:e.response)&&(null===(t=k.data)||void 0===t?void 0:t.status)){let e=(0,s.yz)(null==k?void 0:null===(i=k.data)||void 0===i?void 0:i.response);window.open(e)}},[k]);let D=e=>{var t,i;(null==e?void 0:null===(i=e.display)||void 0===i?void 0:null===(t=i.markers)||void 0===t?void 0:t.length)>
10&&e.display.markers.forEach(t=>{"badge"===t.markerType&&(e.display.badgeMarker=t,e.display.bgColor=E(t.bgColor),e.display.textColor=E(t.textColor))}),P(e)},E=e=>{if(!e)return null;try{return"#"+e.substring(2)}catch(e){}},R=()=>{var e,t,i;if(sessionStorage.setItem("isInternalNaviagtion",!0),N.template){let e={};e.target_path=N.target.path;let t=(0,c.g7)();t.length>0?t.map(t=>{N.template===t.code&&(e.assignedTemplate=t,setTemplateData(e),setIsBottomLayoutOpen(!0))}):x({type:o.Nw.o4,payload:{message:"Sorry template not found."}})}else(null==N?void 0:null===(t=N.target)||void 0===t?void 0:null===(e=t.pageAttributes)||void 0===e?void 0:e.isDeeplinking)=="true"?A(N.target.path):j.push(null==N?void 0:null===(i=N.target)||void 0===i?void 0:i.path)},A=e=>{let t="https://api-apac.revlet.net/service/api/v1/page/deeplink?"+(0,s.Yo)({path:e});try{S(t)}catch(e){}};return(0,l.jsx)("div",{className:"".concat(L().card_row," ").concat(T===(null===(t=N.target)||void 0===t?void 0:t.path)?"".concat(L().active):""),children:(0,l.jsxs)("div",{className:"".concat(L().overlay_poster_mobile_grid),onClick:()=>{var e;(null===(e=N.target.pageAttributes)||void 0===e?void 0:e.isDeeplinking)=="true"?A(N.target.path):R()},children:[(0,l.jsxs)("div",{className:"".concat(L().overlay_poster_left),children:[(0,l.jsx)("img",{src:(0,c.ZY)(null==N?void 0:null===(i=N.display)||void 0===i?void 0:i.imageUrl),alt:"video",height:f,onError:e=>{let{currentTarget:t}=e;t.onerror=null,t.src="".concat(V.Z.defaultdetails)}}),T===(null===(r=N.target)||void 0===r?void 0:r.path)&&!!(null==C?void 0:null===(u=C.display)||void 0===u?void 0:u.badgeMarker)&&(0,l.jsx)("span",{className:"".concat(L().badge_marker),style:{backgroundColor:null==C?void 0:null===(v=C.display)||void 0===v?void 0:v.bgColor,color:null==C?void 0:null===(p=C.display)||void 0===p?void 0:p.textColor},children:null==C?void 0:C.display.badgeMarker.value})]}),(0,l.jsx)("div",{className:"".concat(L().overlay_poster_right),children:(0,l.jsxs)("div",{className:"".concat(L().card_info),children:[T===(null===(m=N.target)||void 0===m?void 0:m.path)&&(0,l.jsx)("p",{className:"".concat(L().live_marker),children:q.IA[w].Watching_Now}),(0,l.jsx)("h2",{className:"".concat(L().title),children:null==N?void 0:N.display.title}),(0,l.jsxs)("span",{className:"".concat(L().subTitle),children:[null==N?void 0:null===(h=N.display)||void 0===h?void 0:h.subtitle1,!!(null==C?void 0:null===(_=C.display)||void 0===_?void 0:_.badgeMarker)&&(0,l.jsxs)("span",{children:["\xa0 | \xa0"," ",(0,l.jsx)("span",{className:"".concat(L().live_heart)}),null==C?void 0:null===(y=C.display)||void 0===y?void 0:y.badgeMarker.value]})]})]})})]})})},W=i(19755),G=i.n(W);i(59894),i(3600);var H=e=>{let{playerSuggestionsData:t,tabsData:i,lefthandHeight:r}=e,{state:{PageData:u}}=(0,o.oR)(),[v,p]=(0,a.useState)([]),[m,h]=(0,a.useState)(0),[_,y]=(0,a.useState)(0),g=(0,n.useRouter)(),{mutate:f,data:b}=(0,d.Z)(),{mutate:w,data:x}=(0,d.Z)(),[j,S]=(0,a.useState)({}),[k,T]=(0,a.useState)(!1),N=(0,a.useRef)({started:!1}),I=(0,a.useRef)(null),C=(0,s.mn)(g.asPath),P=()=>{var e,t,i,l,a,o,n,r;if((null===(t=v[m])||void 0===t?void 0:null===(e=t.section)||void 0===e?void 0:e.sectionData.hasMoreData)===!0){let e=(0,s.mn)(g.asPath),t={path:"/"!==e&&""!==e&&e?e:"home",code:null===(i=v[m])||void 0===i?void 0:i.contentCode,offset:null===(o=v[m])||void 0===o?void 0:null===(a=o.section)||void 0===a?void 0:null===(l=a.sectionData)||void 0===l?void 0:l.lastIndex},d=null===(r=v[m])||void 0===r?void 0:null===(n=r.section)||void 0===n?void 0:n.sectionData;if((null==d?void 0:d.hasMoreData)===!0){let e="".concat("https://api-apac.revlet.net","/service/api/v1/section/data?").concat((0,s.Yo)(t));try{w(e)}catch(e){}}}},D=e=>{let{scrollTop:t,scrollHeight:i,clientHeight:l}=e.currentTarget;t+l>=i-100&&!N.current.started&&(N.current.started=!0,P())};(0,a.useEffect)(()=>{k&&(N.current.started=!1,T(!1))},[k]),(0,a.useEffect)(()=>{y("100%")},[]);let E=()=>{for(let e=0;e<t.length;e+=1)if(t[e].contentCode===i.selectedTab){h(e);break}};(0,a.useEffect)(()=>{t&&(p(t),E())},[t]),(0,a.useEffect)(()=>(setTimeout(()=>{try{var e;null===(e=G()("#contentLeft"))||void 0===e||e.mCustomScrollbar("destroy"),window.innerWidth>=768&&G()(()=>{G()("#contentLeft").css("height",r+"px"),G()("#contentLeft").mCustomScrollbar({theme:"dark-2",scrollInertia:1e3,scrollEasing:"linear",scrollbarPosition:"inside",mouseWheel:{scrollAmount:200},callbacks:{onScroll:()=>{window.scrollBy(0,5),window.scrollBy(0,-5)},onInit:()=>{setTimeout(()=>{let e=document.getElementById("liveCard_scroll");G()("#contentLeft").mCustomScrollbar("scrollTo",e)},300)},onTotalScroll:e=>{N.current.started||(N.current.started=!0,P())},onTotalScrollOffset:100}})})}catch(e){console.log(e)}},50),()=>{try{var e;null===(e=G()("#contentLeft"))||void 0===e||e.mCustomScrollbar("destroy")}catch(e){console.log(e)}}),[t,k]),(0,a.useEffect)(()=>{var e,t,i;let l=(0,s.mn)(g.asPath),a={path:"/"!==l&&""!==l&&l?l:"home",code:null===(e=v[m])||void 0===e?void 0:e.contentCode},o=null===(i=v[m])||void 0===i?void 0:null===(t=i.section)||void 0===t?void 0:t.sectionData;if((null==o?void 0:o.hasMoreData)===!0&&(null==o?void 0:o.data.length)===0&&(null==o?void 0:o.lastIndex)===-1){let e="".concat("https://api-apac.revlet.net","/service/api/v1/section/d
1ata?").concat((0,s.Yo)(a));try{f(e)}catch(e){}}},[m,v,f,g.asPath]),(0,a.useEffect)(()=>{if(b){var e,t;let i=[...v];(null===(e=i[m])||void 0===e?void 0:e.section)&&(i[m].section.sectionData=null==b?void 0:null===(t=b.data)||void 0===t?void 0:t.response[0],p(i))}},[b]),(0,a.useEffect)(()=>{let e=(0,A.X)(c._R,u);S(e)},[u]),(0,a.useEffect)(()=>{if(x){var e,t;if(null===(e=v[m])||void 0===e?void 0:e.section){let e=(null==x?void 0:null===(t=x.data)||void 0===t?void 0:t.response[0])||{data:[]};e.data=[...v[m].section.sectionData.data,...e.data],v[m].section.sectionData=e,p([...v])}}},[x]);let R={"& button":{alignItems:"flex-start",color:"#858585"},["& .".concat(F.Z.scrollButtons)]:{"&.Mui-disabled":{opacity:.3}},"& .MuiTab-root.Mui-selected":{background:"hsla(0,0%,100%,.06)"}};return(0,a.useEffect)(()=>{if(I.current){let e=I.current.querySelector('[tabindex="0"]');e&&setTimeout(()=>{e.scrollIntoView({behavior:"smooth",inline:"center",block:"center"}),window.scrollTo(0,0)},400)}},[m]),(0,l.jsxs)("div",{className:"".concat(L().playerSuggestionsMain),children:[(0,l.jsx)("div",{className:"".concat(L().tabs),children:v.length>0&&(0,l.jsx)(O.Z,{orientation:"horizontal",variant:"scrollable",ref:I,onChange:(e,t)=>
1{h(t),T(!0)},value:m,sx:R,TabIndicatorProps:{sx:{left:"0",display:"none"}},children:null==v?void 0:v.map(e=>{var t,i;return(0,l.jsx)(U.Z,{label:null==e?void 0:null===(i=e.section)||void 0===i?void 0:null===(t=i.sectionInfo)||void 0===t?void 0:t.name,className:"tabs_btn support"},null==e?void 0:e.contentCode)})})}),(0,l.jsx)("div",{id:"contentLeft",children:(0,l.jsx)("div",{className:"".concat(L().tabsData),children:null==v?void 0:v.map((e,t)=>{var i,a,o,n;return(0,l.jsx)(l.Fragment,{children:m===t&&(0,l.jsx)("div",{className:"".concat(m===t?"".concat(L().active):"".concat(L().inactive)),children:(0,l.jsx)("div",{className:"".concat(L().content," "),onScroll:D,children:(null==e?void 0:null===(a=e.section)||void 0===a?void 0:null===(i=a.sectionData)||void 0===i?void 0:i.data.length)>0&&(null==e?void 0:null===(n=e.section)||void 0===n?void 0:null===(o=n.sectionData)||void 0===o?void 0:o.data.map(e=>{var t,i;return(0,l.jsxs)("div",{id:"".concat(C===(null===(t=e.target)||void 0===t?void 0:t.path)?"liveCard_scroll":""),children:[(0,l.jsx)(J,{suggestionCardData:e},null==e?void 0:null===(i=e.target)||void 0===i?void 0:i.path),(null==j?void 0:j[index+1])&&(0,l.jsx)(B.Z,{adData:j[index+1]})]})}))})},(null==e?void 0:e.contentCode)+m)})})})})]})},K=i(5152),z=i.n(K),Y=i(12761),X=i(66158);let Q=z()(()=>i.e(2648).then(i.bind(i,63194)),{loadableGenerated:{webpack:()=>[63194]}}),ee=z()(()=>Promise.all([i.e(5265),i.e(1539)]).then(i.bind(i,85265)),{loadableGenerated:{webpack:()=>[85265]}});var et=e=>{var t;let{playerMetaData:i}=e,{state:{PageData:r,userDetails:u,localLang:v},dispatch:p}=(0,o.oR)(),[m,h]=(0,a.useState)({}),[_,y]=(0,a.useState)({}),{mutate:f,data:b}=(0,d.Z)(),[w,x]=(0,a.useState)(null),[j,S]=(0,a.useState)(!1),[k,T]=(0,a.useState)(!1),N=(0,n.useRouter)(),[I,C]=(0,a.useState)(""),P={};(0,a.useEffect)(()=>{var e,t;let l={};if(null==i||null===(t=i.content)||void 0===t||null===(e=t.dataRows)||void 0===e||e.map(e=>{"content"===e.rowDataType&&e.elements.map(e=>{var t;if((null==e?void 0:e.elementSubtype)==="title"&&(l.title=null==e?void 0:e.data),(null==e?void 0:e.elementType)==="description"&&(l.description=null==e?void 0:e.data),(null==e?void 0:e.elementSubtype)==="subtitle"){let i=null==e?void 0:e.data;i=null===(t=i)||void 0===t?void 0:t.split("|"),l.subtitle=i}(null==e?void 0:e.elementSubtype)==="pgrating"&&(l.pgrating=null==e?void 0:e.data),(null==e?void 0:e.elementSubtype)==="imdb"&&(l.imdb=null==e?void 0:e.data),(null==e?void 0:e.elementSubtype)==="cast"&&(null==e?void 0:e.elementType)=="text"&&(l.castcrew=null==e?void 0:e.data),(null==e?void 0:e.elementType)==="image"&&(l.channel_img=Z(null==e?void 0:e.data)),(null==e?void 0:e.elementType)=="tvguide"&&((null==e?void 0:e.elementSubtype)=="tvguide"||(null==e?void 0:e.elementSubtype)=="")&&T(!0)})}),!l.castcrew){let e=r.data.filter(e=>"section"==e.paneType&&"actor"==e.section.sectionInfo.dataType);if(null==e?void 0:e.length){let t=e[0].section.sectionData.data.map(e=>e.display.title);t.length&&(P.castcrew=t.join())}}C(l)},[i]),(0,a.useEffect)(()=>{u?x(!0):x(!1)},[u]);let D=()=>{h({})},E=()=>{p({type:o.Nw.t3,payload:N.asPath}),D(),N.push("/signin")},R=()=>{var e;h({type:"share",isActive:!0,targetpath:(0,s.mn)(N.asPath),img:"".concat(null===(e=g.e)||void 0===e?void 0:e.appLogo),closeTarget:D,analyticsObj:{...M()}})},A=()=>{var e,t,i;h({type:"signin",isActive:!0,title1:null===(e=q.C[v])||void 0===e?void 0:e.To_access_this_feature_please_sign_in,yesButton1:null===(t=q.C[v])||void 0===t?void 0:t.Sign_In,yesButtonType:"primary",yesButtonTarget1:E,noButton1:null===(i=q.C[v])||void 0===i?void 0:i.Cancel,noButtontarget1:D,noButtonType:"secondary",close:!0,closeTarget:D})};(0,a.useEffect)(()=>{let e=r.pageButtons.isFavourite;y({..._,isFavourite:e})},[r]),(0,a.useEffect)(()=>{var e,t,i;if(null==b?void 0:null===(e=b.data)||void 0===e?void 0:e.status){let e=_.isFavourite?2:1;_.isFavourite=1===e,y({..._}),(0,Y.qP)("favorite",M()),p({type:o.Nw.o4,payload:{message:null==b?void 0:null===(i=b.data)||void 0===i?void 0:null===(t=i.response)||void 0===t?void 0:t.message}})}},[b]);let B=()=>{if(w)try{let e=_.isFavourite?2:1,t="https://api-apac.revlet.net"+"/service/api/auth/user/favourite/item?path=".concat(N.asPath.slice(1),"&action=").concat(e);f(t)}catch(e){console.error("Error:",e)}else A()},M=()=>{var e,t,i,l,a,o,n,s,d,c,u,v,p,m,h,_,y,g;let f={asset_title:null==I?void 0:I.title,banner_title:null==I?void 0:I.title,media_type:(null==r?void 0:null===(t=r.info)||void 0===t?void 0:null===(e=t.pageAttributes)||void 0===e?void 0:e.mediaContentType)||"-1",genre:(null==r?void 0:null===(l=r.info)||void 0===l?void 0:null===(i=l.pageAttributes)||void 0===i?void 0:i.genre)||"-1",channel_partner:(null==r?void 0:null===(o=r.info)||void 0===o?void 0:null===(a=o.pageAttributes)||void 0===a?void 0:a.networkName)||"-1"};return(null==r?void 0:null===(s=r.info)||void 0===s?void 0:null===(n=s.pageAttributes)||void 0===n?void 0:n.tvShowName)&&(f.series_name=null==r?void 0:null===(m=r.info)||void 0===m?void 0:null===(p=m.pageAttributes)||void 0===p?void 0:p.tvShowName),(null==r?void 0:null===(c=r.info)||void 0===c?void 0:null===(d=c.pageAttributes)||void 0===d?void 0:d.seasonSeqNo)&&(f.season_number=null==r?void 0:null===(_=r.info)||void 0===_?void 0:null===(h=_.pageAttributes)||void 0===h?void 0:h.seasonSeqNo),(null==r?void 0:null===(v=r.info)||void 0===v?void 0:null===(u=v.pageAttributes)||void 0===u?void 0:u.episodeSeqNo)&&(f.episode_number=null==r?void 0:null===(g=r.info)||void 0===g?void 0:null===(y=g.pageAttributes)||void 0===y?void 0:y.episodeSeqNo),f},Z=e=>{try{return e?(0,c.ZY)(e):""}catch(e){}};return(0,l.jsxs)("div",{className:"".concat(L().player_data),children:[(0,l.jsxs)("div",{className:"".concat(L().channel_desc),children:[I&&(0,l.jsxs)("div",{className:" ".concat(L().headerTitle),children:[(null==I?void 0:I.channel_img)&&(0,l.jsx)(l.Fragment,{children:(0,l.jsx)("img",{className:" ".concat(L().channel_logo),src:null==I?void 0:I.channel_img})}),(0,l.jsxs)("div",{className:"".concat(L().player_desc_left),children:[(0,l.jsx)("h1",{className:"".concat(L().title),children:null==I?void 0:I.title}),(0,l.jsxs)("span",{children:[(0,l.jsx)("p",{className:"".concat(L().subtitle),children:null==I?void 0:null===(t=I.subtitle)||void 0===t?void 0:t.join(" | ")}),(null==I?void 0:I.pgrating)&&(0,l.jsx)("p",{className:"".concat(L().pgrating),
1children:null==I?void 0:I.pgrating}),(null==I?void 0:I.imdb)&&(0,l.jsxs)("p",{className:"".concat(L().imdb),children:[(0,l.jsx)("img",{"_ngcontent-and-c58":"",alt:"imdb",src:"https://d2ivesio5kogrp.cloudfront.net/static/watcho/images/imdb.png",loading:"lazy",decoding:"async"}),null==I?void 0:I.imdb]})]})]})]}),(0,l.jsx)("div",{className:"".concat(L().player_desc_right),children:(0,l.jsxs)("div",{className:"".concat(r.pageButtons.showFavouriteButton&&r.shareInfo.isSharingAllowed?"".concat(L().divider):""),children:[(0,l.jsx)("div",{className:"".concat(L().fav),children:r.pageButtons.showFavouriteButton&&(0,l.jsx)("span",{className:" ".concat(L().button," "),onClick:()=>B(),children:_.isFavourite?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("img",{src:"".concat(V.Z.playerDescription.favoriteActive),alt:"fav-active"}),(0,l.jsx)("span",{className:"".concat(L().fancy_tool_tip),children:q.C[v].Favourited})," "]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("img",{src:"".concat(V.Z.playerDescription.favorite),alt:"favourite"}),(0,l.jsx)("span",{className:"".concat(L().fancy_tool_tip),children:q.C[v].Favourite})]})},"fav-button")}),r.shareInfo.isSharingAllowed&&(0,l.jsx)("div",{className:"".concat(L().share),children:(0,l.jsxs)("span",{className:"".concat(L().button),onClick:()=>R(),children:[(0,l.jsx)("img",{src:"".concat(V.Z.playerDescription.share)}),(0,l.jsx)("span",{className:"".concat(L().fancy_tool_tip),children:q.C[v].Share})]})})]})})]}),I.description&&(0,l.jsx)("div",{className:"".concat(L().channel_desc_new),children:(0,l.jsx)(X.Z,{data:I.description,isDataTruncate:!0,customClass:L().description,styles:L()})}),(k||!!I.castcrew)&&(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("div",{className:"".concat(L().castDetails),children:[k&&(0,l.jsx)("button",{onClick:()=>{N.push("/tvguide")},children:q.C[v].explore_tv_guide}),!!I.castcrew&&(0,l.jsxs)("p",{children:[(0,l.jsxs)("span",{children:[q.C[v].Cast," :"]}),null==I?void 0:I.castcrew]})]})}),m.isActive&&"favourite"!=m.type&&"share"!=m.type&&(0,l.jsx)(Q,{popupData:m}),m.isActive&&"share"===m.type&&(0,l.jsx)(ee,{popupData:m})]})},ei=i(1558),el=i(85518),ea=i(16250),eo=i(16115),en=i(3899),es=i(85186),er=i(22430),ed=i(64666),ec=i(66720),eu=i(50594),ev=i(48524),ep=i.n(ev),em=i(61044),eh=e=>{let{otpData:t,returnBack:i,isOpen:a}=e,{state:{userDetails:n,localLang:s},dispatch:r}=(0,o.oR)(),d=(0,es.Z)({palette:{mode:"dark"}}),c=()=>{i()};return(0,l.jsx)(er.Z,{theme:d,children:(0,l.jsx)(ed.Z,{open:a,children:(0,l.jsx)("div",{className:"".concat(ep().modal_parent),children:(0,l.jsx)("div",{className:"".concat(ep().modal_popup),children:(0,l.jsx)("div",{className:"".concat(ep().main_modal),children:(0,l.jsx)("div",{className:"".concat(ep().modal_size),children:(0,l.jsxs)(ec.ZP,{children:[(0,l.jsx)("div",{className:"".concat(ep().title),children:(0,l.jsx)(eu.Z,{className:"".concat(ep().cross_icon),onClick:c})}),(0,l.jsx)("div",{children:(0,l.jsx)("div",{className:"".concat(ep().updateEmail_cont),children:!!t&&(0,l.jsx)(em.default,{otpData:t,callbacksuccess:e=>{n.isEmailVerified=!0,r({type:o.Nw.$V,payload:{...n}}),r({type:o.Nw.o4,payload:{message:null==e?void 0:e.message}}),r({type:o.Nw.ls,payload:!0}),c()},returnBack:i})})})]})})})})})})})},e_=i(73935);let ey=z()(()=>i.e(2648).then(i.bind(i,63194)),{loadableGenerated:{webpack:()=>[63194]}}),eg=z()(()=>i.e(5415).then(i.bind(i,44637)),{loadableGenerated:{webpack:()=>[44637]},ssr:!1}),ef=z()(()=>Promise.all([i.e(5212),i.e(4631)]).then(i.bind(i,15212)),{loadableGenerated:{webpack:()=>[15212]}}),eb=e=>{let{button:t,btnHandler:i}=e,a=()=>{i(t)};if("button"==t.elementType)return(0,l.jsx)(l.Fragment,{children:(0,l.jsxs)("button",{onClick:()=>a(),className:"primary ".concat(L()[t.data]," ").concat(t.data),children:["  ",t.data," ",e.children]})})};var ew=e=>{var t,i,u,v,p,h,_,y,f,b,w,x,j,S,k,T,N,I,C,P,D;let E,{streamPath:A,setVideoBgImage:B}=e,{state:{PageData:M,userDetails:Z,navigateFrom:U,SystemFeature:F,playerUtils:O,SystemConfig:J,localLang:W},dispatch:G}=(0,o.oR)(),{mutate:H,data:K}=(0,d.Z)(),{mutate:z,data:X}=(0,R.Z)(),[Q,ee]=(0,a.useState)({}),et=(0,a.useRef)(null),[es,er]=(0,a.useState)(null),ed=(0,n.useRouter)(),ec=(0,a.useRef)(null),eu=(0,a.useRef)({}),[ev,ep]=(0,a.useState)(!0),[em,ew]=(0,a.useState)([]),ex=(0,a.useRef)(null),[ej,eS]=(0,a.useState)(!1),[ek,eT]=(0,a.useState)(!1),eN=(0,a.useRef)(null),{mutate:eI,data:eC}=(0,R.Z)(),{mutate:eP,data:eD}=(0,R.Z)(),[eE,eR]=(0,a.useState)({status:!1}),eA=(0,a.useRef)(!0),eB=(0,a.useRef)(!1),eM=(0,a.useRef)(null),[eZ,eL]=(0,a.useState)(),[eU,eF]=(0,a.useState)({}),[eO,eq]=(0,a.useState)({}),eV=(0,a.useRef)(!1),eJ=(0,a.useRef)(3),eW=(0,a.useRef)(0),eG=[],eH=(0,a.useRef)(null),eK=(0,a.useRef)(null),ez=(0,a.useRef)(!1),[eY,eX]=(0,a.useState)(!1),[e$,eQ]=(0,a.useState)([]),[e0,e1]=(0,a.useState)([]),[e2,e4]=(0,a.useState)(""),[e5,e6]=(0,a.useState)(!1),[e3,e8]=(0,a.useState)(!1),[e9,e7]=(0,a.useState)(!1),[te,tt]=(0,a.useState)(!1),[ti,tl]=(0,a.useState)(!1),[ta,to]=(0,a.useState)({}),[tn,ts]=(0,a.useState)(!1),[tr,td]=(0,a.useState)(!1),[tc,tu]=(0,a.useState)(!1),{mutate:tv,data:tp}=(0,d.Z)(),[tm,th]=(0,a.useState)({}),[t_,ty]=(0,a.useState)(!1);(0,a.useRef)(!0);let[tg,tf]=(0,a.useState)(0),[tb,tw]=(0,a.useState)(!1),[tx,tj]=(0,a.useState)(!1),[tS,tk]=(0,a.useState)(!1),[tT,tN]=(0,a.useState)(!1),[tI,tC]=(0,a.useState)(0),[tP,tD]=(0,a.useState)({enabled:!1,data:{}}),[tE,tR]=(0,a.useState)({}),[tA,tB]=(0,a.useState)(!1),{mutate:tM,data:tZ}=(0,d.Z)(),{mutate:tL,data:tU}=(0,R.Z)();D=()=>{sessionStorage.clear()},(0,a.useEffect)(()=>{let e=e=>{"function"==typeof D&&D()};return window.addEventListener("beforeunload",e),()=>{window.removeEventListener("beforeunload",e)}},[D]),(0,a.useEffect)(()=>{var e,t,i,l,a;if((null==F?void 0:null===(t=F.encryptApisList)||void 0===t?void 0:null===(e=t.fields)||void 0===e?void 0:e.payment)==="true"){let e=null==tU?void 0:null===(i=tU.data)||void 0===i?void 0:i.data;if(e)try{(e=JSON.parse((0,s.ow)(e))).status?tD({enabled:!0,data:e.response}):G({type:o.Nw.o4,payload:{message:null===(l=e.error)||void 0===l?void 0:l.message}})}catch(e){}}else{let e=null==tU?void 0:tU.data;e&&(e.status?tD({enabled:!0,data:e.response}):G({type:o.Nw.o4,payload:{message:null===(a=e.error)||void 0===a?void 0:a.message}}))}},[tU]),(0,a.useEffect)(()=>{var e,t,i,l,a,o,n,s,r,d,c;if(null==tZ?void 0:null===(e=tZ.data)||void 0===e?void 0:e.status){let e={},{data:u}=tZ;if(tR(u.response[0]),e.userSelectedPack=null===(l=u.response)||void 0===l?void 0:null===(i=l[0])||void 0===i?void 0:null===(t=i.packageInfo)||void 0===t?void 0:t.packages[0],e.masterPack=null===(n=u.response)||void 0===n?void 0:null===(o=n[0])||void 0===o?void 0:null===(a=o.packageInfo)||void 0===a?void 0:a.master,e.suppGateWays=null===(r=u.response)||void 0===r?void 0:null===(s=r[0])||void 0===s?void 0:s.supportedGateway,e.package_type=2,"razorpay"==e.suppGateWays[0].code)tF(e);else if("stripe"==e.suppGateWays[0].code){let t="/buy/order-summary/".concat(null===(c=u.response[0].packageInfo)||void 0===c?void 0:null===(d=c.packages[0])||void 0===d?void 0:d.id);ed.push({pathname:t,query:{path:ed.asPath.replace("/",""),package_type:"2",gateway:e.suppGateWays[0].code}},t)}}},[tZ]);let tF=e=>{var t,i;let l={gateway:"razorpay",packages:e.userSelectedPack.id.toString()};if((null==F?void 0:null===(i=F.encryptApisList)||void 0===i?void 0:null===(t=i.fields)||void 0===t?void 0:t.payment)=="true"){let e={data:(0,s.q6)(JSON.stringify(l)),metadata:(0,s.q6)(JSON.stringify({request:"order/checkout"}))};tO("".concat("https://api-apac.revlet.net","/service/api/v1/send"),e)}else tO("".concat("https://api-apac.revlet.net","/payment/api/v1/order/checkout"),l)},tO=(e,t)=>{tL({url:e,apiData:t})},tq=(0,ei.rV)("isloggedin"),tV=(0,ei.rV)("last_channel_info")||"";(0,a.useEffect)(()=>{let e={playerSrc:"https://cdn.jwplayer.com/libraries/T8XVFHIt.js",playerKey:"jTL7dlu7ybUI5NZnDdVgb1laM8/Hj3ftIJ5Vqg=="};if(void 0===window.jwplayer){let t=document.createElement("script");t.src=null==e?void 0:e.playerSrc,t.type="text/javascript",t.onload=()=>{window.jwplayer.key=null==e?void 0:e.playerKey},document.body.appendChild(t)}return()=>{try{var e,t,i;(null===(t=window)||void 0===t?void 0:null===(e=t.jwplayer())||void 0===e?void 0:e.getFullscreen())&&(null===(i=window.jwplayer())||void 0===i||i.setFullscreen(!1))}catch(e){}}},[]),(0,a.useEffect)(()=>{O&&O.startover&&(eB.current=O.startover,G({type:o.Nw.jr,payload:{}}))},[O]),(0,a.useEffect)(()=>{var e;(null==J?void 0:null===(e=J.configs)||void 0===e?void 0:e.videoQualitySettings)&&(eK.current=JSON.parse(J.configs.videoQualitySettings),eK.current&&t$(eK.current))},[J]),(0,a.useEffect)(()=>{var e,t,i,l;return(null===(t=g.e)||void 0===t?void 0:null===(e=t.adsSupport)||void 0===e?void 0:e.jioAds)&&eX(!0),(null===(l=ex.current)||void 0===l?void 0:null===(i=l.style)||void 0===i?void 0:i.height)&&(ex.current.style.height=.5625*ex.current.clientWidth+"px"),()=>{var e,t,i,l,a,o,n;try{(null===(t=eM.current.pageAttributes)||void 0===t?void 0:t.isLive)==="true"?(0,ei.LS)("last_channel_info",ed.asPath):(0,ei.wz)("last_channel_info"),ec.current&&(null===(a=ec.current)||void 0===a||a.handlePlayEndedByUser()),eM.current&&(null===(l=eM.current)||void 0===l?void 0:null===(i=l.response)||void 0===i?void 0:i.sessionInfo)&&t4(eM.current.response.sessionInfo.streamPollKey),(null==eN?void 0:eN.current)&&clearInterval(eN.current)}catch(e){}if(null===(e=window)||void 0===e?void 0:e.jwplayer)try{null===(o=window)||void 0===o||o.jwplayer(et.current).stop(),null===(n=window)||void 0===n||n.jwplayer(et.current).remove(),eY&&ik()}catch(e){console.log(e)}}},[]),(0,a.useEffect)(()=>{ex.current&&(ex.current.style.height=.5625*ex.current.clientWidth+"px")},[ek]),(0,a.useEffect)(()=>{var e,t,i,l,a,o,n,s,r,d;let c=!1;null==M||null===(e=M.data)||void 0===e||e.map(e=>{var t;(null==e?void 0:e.paneType)==="content"&&(null==e||null===(t=e.content)||void 0===t||t.dataRows.map(e=>{(null==e?void 0:e.rowDataType)==="button"&&(c=!0,ew(e.elements))}))}),M&&((null==M?void 0:null===(t=M.streamStatus)||void 0===t?void 0:t.hasAccess)||(null==M?void 0:null===(i=M.streamStatus)||void 0===i?void 0:i.trailerStreamStatus)&&(null==M?void 0:M.info.attributes.playerType)=="trailer"||(null==M?void 0:null===(l=M.streamStatus)||void 0===l?void 0:l.previewStreamStatus)&&(null==M?void 0:M.info.attributes.playerType)=="preview"?(ep(!1),ee(M),(null==M?void 0:null===(o=M.streamStatus)||void 0===o?void 0:o.previewStreamStatus)&&(null==M?void 0:M.info.attributes.playerType)=="preview"&&tl(!0),t8(),eT(""),eS(""),er((0,ei.rV)("LocationData")),(null==M?void 0:null===(s=M.info)||void 0===s?void 0:null===(n=s.attributes)||void 0===n?void 0:n.showNextButton)=="true"&&tJ()):(ep(!0),eT(null==M?void 0:null===(r=M.streamStatus)||void 0===r?void 0:r.message),(null==M?void 0:null===(d=M.streamStatus)||void 0===d?void 0:d.errorCode)!=-15||c||ew([{elementSubtype:"verify_email",data:"Verify Email",id:64,target:"verify_email",elementType:"button"}]))),null==M||null===(a=M.data)||void 0===a||a.map(e=>{var t;(null==e?void 0:e.paneType)==="content"&&(null==e||null===(t=e.content)||void 0===t||t.dataRows.map(e=>{(null==e?void 0:e.rowDataType)==="button"&&(ew(e.elements),e.elements.length&&e.elements.forEac
1h(e=>{var t,i,l,a,o,n,s,r,d,c,u,v,p,m,h;(null==e?void 0:e.elementSubtype)=="signup"||(null==e?void 0:e.elementSubtype)=="signin"?(eS(null==M?void 0:null===(i=M.info)||void 0===i?void 0:null===(t=i.attributes)||void 0===t?void 0:t.ContentAccessErrorMessage),eT((null==M?void 0:null===(a=M.info)||void 0===a?void 0:null===(l=a.attributes)||void 0===l?void 0:l.SignAndSignupErrorMessage)||(null==M?void 0:null===(o=M.streamStatus)||void 0===o?void 0:o.message))):"subscribe"==e.elementSubtype?(eS(null==M?void 0:null===(s=M.info)||void 0===s?void 0:null===(n=s.attributes)||void 0===n?void 0:n.ContentAccessErrorMessage),eT((null==M?void 0:null===(d=M.info)||void 0===d?void 0:null===(r=d.attributes)||void 0===r?void 0:r.SubscribeErrorMessage)||(null==M?void 0:null===(c=M.streamStatus)||void 0===c?void 0:c.message))):"rent"==e.elementSubtype&&(eS(null==M?void 0:null===(v=M.info)||void 0===v?void 0:null===(u=v.attributes)||void 0===u?void 0:u.ContentAccessErrorMessage),eT((null==M?void 0:null===(m=M.info)||void 0===m?void 0:null===(p=m.attributes)||void 0===p?void 0:p.RentErrorMessage)||(null==M?void 0:null===(h=M.streamStatus)||void 0===h?void 0:h.message)))}))}))})},[M]),(0,a.useEffect)(()=>{eY&&ih()},[eY]),(0,a.useEffect)(()=>{var e;es&&(null==es?void 0:null===(e=es.data)||void 0===e?void 0:e.analyticsInfo)&&tW()},[es]);let tJ=()=>{var e,t,i,l,a;to({...ta,displayStatus:!1});let o="https://api-apac.revlet.net"+(eM.current&&(null===(e=eM.current)||void 0===e?void 0:e.analyticsInfo)&&(null===(i=eM.current)||void 0===i?void 0:null===(t=i.analyticsInfo)||void 0===t?void 0:t.dataType)=="epg"&&(null===(a=eM.current)||void 0===a?void 0:null===(l=a.analyticsInfo)||void 0===l?void 0:l.contentType)=="vod"?"/service/api/v1/next/epgs?":"/service/api/v1/next/videos?")+(0,s.Yo)({path:A,count:"1"});try{tv(o)}catch(e){}},tW=()=>{var e,t,i,l,a,o,n,s,r;if(es&&(null==es?void 0:null===(e=es.data)||void 0===e?void 0:e.analyticsInfo)){let e={analytics_id:"efce63488b621a3ea0bbdc19f42a5ff6",authKey:null==es?void 0:null===(t=es.data)||void 0===t?void 0:t.analyticsInfo.authKey,trueIp:null==es?void 0:null===(i=es.data)||void 0===i?void 0:i.ipInfo.trueIP,clientId:null==es?void 0:null===(l=es.data)||void 0===l?void 0:l.ipInfo.trueIP},d={appVersion:"",connectionType:"",clientIP:null==es?void 0:null===(a=es.data)||void 0===a?void 0:a.ipInfo.trueIP,NWProvider:""};ec.current=null===(n=window)||void 0===n?void 0:null===(o=n.VideoAnalyticsPlugin)||void 0===o?void 0:o.load(e),null===(s=ec.current)||void 0===s||s.setPlayerMetaData({playerName:"jwplayer",playerVersion:"jw_8_14"}),null===(r=ec.current)||void 0===r||r.setClientMetaData(d)}},tG=e=>{var t,i,l,a,o,n,s,d,c,u;let v={CDNetwork:e?null==e?void 0:null===(i=e.streams)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.streamType:"",navigationFrom:U||M.info.path,metaId:e?e.analyticsInfo.dataKey:"",metaMap:"",a1:e&&e.analyticsInfo.customData?e.analyticsInfo.customData:"",a2:"",syp:"watcho"},p={userId:Z?Z.userId:"",profileId:(null==Z?void 0:Z.profileId)?null==Z?void 0:Z.profileId:"",boxId:(0,r.g$)(),deviceType:"web",deviceClient:!!ec&&(null===(l=ec.current)||void 0===l?void 0:l.getBrowserName()),deviceOS:!!ec&&(null===(a=ec.current)||void 0===a?void 0:a.getPlatForm()),deviceId:"5",isSubscribed:Z&&M&&(null==M?void 0:null===(o=M.streamStatus)||void 0===o?void 0:o.hasAccess)?"1":"0"},m={autoplay:!0,productName:"tsat",streamURL:e?null==e?void 0:null===(s=e.streams)||void 0===s?void 0:null===(n=s[0])||void 0===n?void 0:n.url.split("?")[0]:"",contentType:e?e.analyticsInfo.contentType:""};ec.current&&(null===(d=ec.current)||void 0===d||d.setContentMetaData(v),null===(c=ec.current)||void 0===c||c.setUserMetaData(p),null===(u=ec.current)||void 0===u||u.setVideoMetaData(m))},tH=()=>{var e,t,i,l,a,o,n,s,r,d;let c=Math.round(window.jwplayer().getDuration()-window.jwplayer().getPosition()),u=null==tp?void 0:null===(t=tp.data)||void 0===t?void 0:null===(e=t.response)||void 0===e?void 0:e.data;if(null==u?void 0:u.length){tf(c);let e=(null==M?void 0:null===(l=M.info)||void 0===l?void 0:null===(i=l.attributes)||void 0===i?void 0:i.creditsStartTime)?parseInt(null==M?void 0:null===(o=M.info)||void 0===o?void 0:null===(a=o.attributes)||void 0===a?void 0:a.creditsStartTime):null,t=(null==J?void 0:null===(n=J.configs)||void 0===n?void 0:n.nextVideoDisplaySeconds)?parseInt(null==J?void 0:null===(s=J.configs)||void 0===s?void 0:s.nextVideoDisplaySeconds):null;window.jwplayer().getPosition()>10&&(null==M?void 0:null===(d=M.info)||void 0===d?void 0:null===(r=d.attributes)||void 0===r?void 0:r.showNextButton)=="true"&&!ti?(tl(!1),to(e=>({...e,displayStatus:!0}))):to(e=>({...e,displayStatus:!1})),(e&&e<window.jwplayer().getPosition()||!e&&t&&t>=c)&&!ti?(tw(!0),tl(!1),to(e=>({...e,displayStatus:!1}))):tw(!1)}};(0,a.useEffect)(()=>{var e,t,i,l;(null==tp?void 0:tp.data)?to({...ta,nextVideoTargetPath:null==tp?void 0:null===(l=tp.data)||void 0===l?void 0:null===(i=l.response)||void 0===i?void 0:null===(t=i.data[0])||void 0===t?void 0:null===(e=t.target)||void 0===e?void 0:e.path,displayStatus:!1}):to({...ta,displayStatus:!1})},[tp]),(0,a.useEffect)(()=>{var e,t,i,l,a,o,n,s,r,d,c,u,v,p,m;(null==K?void 0:null===(e=K.data)||void 0===e?void 0:e.status)?(ep(!1),eM.current=null==K?void 0:null===(i=K.data)||void 0===i?void 0:i.response,ic(K.data)):(null==K?void 0:null===(t=K.data)||void 0===t?void 0:t.status)!=void 0&&(eT(null==K?void 0:null===(a=K.data)||void 0===a?void 0:null===(l=a.error)||void 0===l?void 0:l.message),ep(!0),((null==K?void 0:null===(n=K.data)||void 0===n?void 0:null===(o=n.error)||void 0===o?void 0:o.code)==-820||(null==K?void 0:null===(r=K.data)||void 0===r?void 0:null===(s=r.error)||void 0===s?void 0:s.code)==-821||(null==K?void 0:null===(c=K.data)||void 0===c?void 0:null===(d=c.error)||void 0===d?void 0:d.code)==-823)&&eq({isActive:!0,code:null==K?void 0:null===(v=K.data)||void 0===v?void 0:null===(u=v.error)||void 0===u?void 0:u.code,errorMessage:null==K?void 0:null===(m=K.data)||void 0===m?void 0:null===(p=m.error)||void 0===p?void 0:p.message,closeTarget:()=>ed.back()}))},[K]),(0,a.useEffect)(()=>
1{if(eC&&!eC.data.status){var e,t,i,l,a,o,n;eR({status:!0,title:null==eC?void 0:null===(t=eC.data)||void 0===t?void 0:null===(e=t.error)||void 0===e?void 0:e.message,description:null==eC?void 0:null===(a=eC.data)||void 0===a?void 0:null===(l=a.error)||void 0===l?void 0:null===(i=l.details)||void 0===i?void 0:i.description,code:null==eC?void 0:null===(n=eC.data)||void 0===n?void 0:null===(o=n.error)||void 0===o?void 0:o.code});try{window.jwplayer().stop(),clearInterval(eN.current)}catch(e){}}},[eC]);let tK=()=>{ed.push("/")};(0,a.useEffect)(()=>{var e,t,i,l,a,o,n;if(null==X?void 0:X.data){let r=JSON.parse((0,s.ow)(null==X?void 0:null===(e=X.data)||void 0===e?void 0:e.data));r.status?(eT(""),eS(""),ep(!1),eM.current=null==r?void 0:r.response,ic(r)):(eT(null==r?void 0:null===(t=r.error)||void 0===t?void 0:t.message),ep(!0),((null==r?void 0:null===(i=r.error)||void 0===i?void 0:i.code)==-820||(null==r?void 0:null===(l=r.error)||void 0===l?void 0:l.code)==-821||(null==r?void 0:null===(a=r.error)||void 0===a?void 0:a.code)==-823)&&eq({isActive:!0,code:null==r?void 0:null===(o=r.error)||void 0===o?void 0:o.code,errorMessage:null==r?void 0:null===(n=r.error)||void 0===n?void 0:n.message,closeTarget:()=>ed.back()}))}},[X]),(0,a.useEffect)(()=>{tx&&tb&&ia()},[tx,tb]),(0,a.useState)(()=>{""!=e2&&window.jwplayer().pause()},[e2,e0,e$]);let tz=()=>{var e,t,i,l,a,o,n,r,d,c,u,v,p,m,h,_,y,g,f,b,w,x,j;let S=null==M?void 0:null===(e=M.data)||void 0===e?void 0:e.reduce((e,t)=>{var i;return(null==t?void 0:t.paneType)==="content"&&(null===(i=t.content.dataRows)||void 0===i||i.forEach(t=>{"content"===t.rowDataType&&t.elements.forEach(t=>{switch(null==t?void 0:t.elementSubtype){case"title":e.title=t.data;break;case"pgrating":e.pgrating=t.data}})})),e},{}),k=null===(i=window)||void 0===i?void 0:null===(t=i.jwplayer())||void 0===t?void 0:t.getPosition(),T=null===(a=window)||void 0===a?void 0:null===(l=a.jwplayer())||void 0===l?void 0:l.getDuration(),N={...(0,s.ke)(),asset_title:null==S?void 0:S.title,banner_title:null==S?void 0:S.title,media_type:(null===(n=eM.current)||void 0===n?void 0:null===(o=n.pageAttributes)||void 0===o?void 0:o.mediaContentType)||"-1",genre:(null===(d=eM.current)||void 0===d?void 0:null===(r=d.pageAttributes)||void 0===r?void 0:r.genre)||(null==S?void 0:S.pgrating)||"-1",channel_partner:(null===(u=eM.current)||void 0===u?void 0:null===(c=u.pageAttributes)||void 0===c?void 0:c.networkName)||"-1",video_play_duration:"".concat(Math.round(k/T*100),"%")||0};return(null===(p=eM.current)||void 0===p?void 0:null===(v=p.pageAttributes)||void 0===v?void 0:v.tvShowName)&&(N.series_name=null===(f=eM.current)||void 0===f?void 0:null===(g=f.pageAttributes)||void 0===g?void 0:g.tvShowName),(null===(h=eM.current)||void 0===h?void 0:null===(m=h.pageAttributes)||void 0===m?void 0:m.seasonSeqNo)&&(N.season_number=null===(w=eM.current)||void 0===w?void 0:null===(b=w.pageAttributes)||void 0===b?void 0:b.seasonSeqNo),(null===(y=eM.current)||void 0===y?void 0:null===(_=y.pageAttributes)||void 0===_?void 0:_.episodeSeqNo)&&(N.episode_number=null===(j=eM.current)||void 0===j?void 0:null===(x=j.pageAttributes)||void 0===x?void 0:x.episodeSeqNo),N},tY=e=>{eX(e)},tX=e=>{let t=document.querySelector(".jw-error-msg");t&&(t.style.display="flex");let{adSpots:i,cuepoints:l}=i_();eA.current=!0;let a={playlist:e,advertising:ir(),primary:"html5",width:"100%",autostart:!0,preload:"auto",pipIcon:"disabled",aspectratio:"16:9",floating:!1,intl:{en:{notLive:"Go Live"}},captions:{fontSize:10,backgroundOpacity:0},logo:{hide:"false",position:"bottom-right"},events:{ready:e=>{var t,a,o;B(),0==eW.current&&(ec.current&&(null===(a=ec.current)||void 0===a||a.thumbnailVideoClick()),ec.current&&(null===(o=ec.current)||void 0===o||o.handlePlayerLoad()));let n=document.querySelector(".videospinner");n?n.style.display="none":document.querySelector(".jw-preview").innerHTML+="<div class='videospinner' style='display: none'><span class='loader'></span></div>",(null===(t=eM.current.pageAttributes)||void 0===t?void 0:t.isLive)==="true"?(tu(!1),""!=tV&&tk(!0)):tu(!0),eY&&setTimeout(()=>{var e,t;let a=document.getElementById("player-wrap-jio");$("#player_div").append(a),(null==i?void 0:null===(e=i[0])||void 0===e?void 0:e.length)&&(eB.current||eM.current.streamStatus.seekPositionInMillis<=6e5)?ig(l):tY(!1),(null==i?void 0:null===(t=i[1])||void 0===t?void 0:t.length)&&ib(l)},500)},play:e=>{var t,i,l,a,o,n,s,r,d,c;
1(0,Y.qP)("video_play",tz()),!ez.current&&(null==eK?void 0:null===(t=eK.current)||void 0===t?void 0:t.length)>0&&Z&&setTimeout(()=>{tQ()},5e3),eV.current=!0,(tm.pgRatingTitle||tm.pgRatingSubtitle)&&t0(),(null===(i=eM.current.pageAttributes)||void 0===i?void 0:i.isLive)==="true"&&""!=tV&&tk(!0);try{t1()}catch(e){}(null==eM?void 0:null===(a=eM.current)||void 0===a?void 0:null===(l=a.streamStatus)||void 0===l?void 0:l.previewStreamStatus)&&(tl(!0),il(!0),$(".jw-slider-time").hide(),$(".jw-display-controls .jw-display-icon-rewind").css("visibility","hidden"),$(".jw-controlbar .jw-icon-rewind").hide(),$(".jw-icon-cast").css("visibility","hidden"),$("#frwdIcon").css("visibility","hidden"),tt(!0),document.querySelectorAll(".jwplayer").forEach(e=>{e.addEventListener("keydown",e=>e.stopImmediatePropagation(),!0)}));let u=document.getElementsByClassName("jw-controlbar")[0],v=document.getElementsByClassName("jw-button-container")[0],p=document.getElementById("playerButtons"),m=document.getElementById("player_div"),h=document.getElementById("nextVideoTooltip");h&&!ti&&m.insertBefore(h,m.lastChild),p&&u.insertBefore(p,u.firstChild),el.tq&&(ts(!0),v.insertBefore(document.createElement("div"),v.firstChild)),t5(),(null===(o=eu.current)||void 0===o?void 0:o.isVideoPlaying)||(ec.current&&(null===(r=ec.current)||void 0===r||r.handlePlayStarted()),eu.current.isVideoPlaying=!0),(null===(n=eu.current)||void 0===n?void 0:n.isVideoBuffering)&&(ec.current&&(null===(d=ec.current)||void 0===d||d.handleBufferEnd()),eu.current.isVideoBuffering=!1),(null===(s=eu.current)||void 0===s?void 0:s.isVideoPaused)&&(ec.current&&(null===(c=ec.current)||void 0===c||c.handleResume()),eu.current.isVideoPaused=!1)},fullscreen:e=>{try{t1()}catch(e){}},resize:e=>{if(window.jwplayer().getFullscreen()){let e=document.getElementById("frwdIcon");e&&e.classList.add("fullScreen_t")}else{let e=document.getElementById("frwdIcon");e&&e.classList.remove("fullScreen_t")}try{t1()}catch(e){}},pause:e=>{var t,i;(null===(t=eu.current)||void 0===t?void 0:t.isVideoPaused)||(ec.current&&(null===(i=ec.current)||void 0===i||i.handlePause()),eu.current.isVideoPaused=!0),ti&&il(!1),(0,Y.qP)("video_pause",tz())},buffer:e=>{var t;ec.current&&(null===(t=ec.current)||void 0===t||t.handleBufferStart()),eu.current.isVideoBuffering=!0,ti&&il(!1)},seek:e=>{var t;ec.current&&(null===(t=ec.current)||void 0===t||t.handleSeek({STPosition:Math.floor(1e3*e.position),ETPosition:Math.floor(1e3*e.offset)}))},seeked:e=>{},complete:e=>{var t,i,l,a,o,n;eW.current=0,ec.current&&(null===(t=ec.current)||void 0===t||t.handlePlayCompleted()),tj(!0),eY&&iT();let s=null==eM?void 0:null===(l=eM.current)||void 0===l?void 0:null===(i=l.streamStatus)||void 0===i?void 0:i.previewStreamStatus;if(s)try{(null===(o=window)||void 0===o?void 0:null===(a=o.jwplayer())||void 0===a?void 0:a.getFullscreen())&&(null===(n=window.jwplayer())||void 0===n||n.setFullscreen(!1))}catch(e){console.log(e)}},error:e=>{var t,i,l,a,o,n,s,r,d;if(eV.current&&(eW.current=0),++eW.current,eW.current<=eJ.current&&(null==M?void 0:null===(i=M.info)||void 0===i?void 0:null===(t=i.attributes)||void 0===t?void 0:t.isLive)&&(null==M?void 0:null===(a=M.info)||void 0===a?void 0:null===(l=a.attributes)||void 0===l?void 0:l.isLive)=="true")document.querySelector(".videospinner").style.display="flex",document.querySelector(".jw-error-msg").style.display="none",eV.current=!1,setTimeout(()=>{tX(eG)},5e3);else{eW.current=0;let t=document.getElementsByClassName("jw-controls-backdrop")[0],i=document.getElementById("playerButtons");i&&(t.insertBefore(i,t.firstChild),el.tq&&(td(!0),ts(!0),t.insertBefore(t,t.firstChild))),eM.current&&(null===(n=eM.current)||void 0===n?void 0:null===(o=n.response)||void 0===o?void 0:o.sessionInfo)&&t4(eM.current.response.sessionInfo.streamPollKey)(!!ec.current)&&(null===(s=ec.current)||void 0===s||s.thumbnailVideoClick()),ec.current&&(null===(r=ec.current)||void 0===r||r.handlePlayerLoad()),ec.current&&(null===(d=ec.current)||void 0===d||d.handleError({errorMsg:e&&e.message?e.message:"network error"}))}},setupError:e=>{var t,i;B(),eM.current&&(null===(i=eM.current)||void 0===i?void 0:null===(t=i.response)||void 0===t?void 0:t.sessionInfo)&&t4(eM.current.response.sessionInfo.streamPollKey)},cast:e=>{},levelsChanged:e=>{},time:e=>{var t,a,o,n,s;let r=(null==eM?void 0:null===(a=eM.current)||void 0===a?void 0:null===(t=a.streamStatus)||void 0===t?void 0:t.previewStreamStatus)&&(null==M?void 0:null===(n=M.info)||void 0===n?void 0:null===(o=n.attributes)||void 0===o?void 0:o.playerType)==="preview";e.position>0&&e.position>
160&&"Infinity"!=window.jwplayer().getDuration()&&!r?e6(!0):e.position<0&&e.position<-50?e8(!0):(e6(!1),e8(!1));let d=eM.current;d.pageAttributes.introStartTime<=Math.round(e.currentTime)&&Math.round(e.currentTime)<d.pageAttributes.introEndTime?e7(!0):(e.currentTime,d.pageAttributes.introEndTime,e7(!1)),tH(),Math.round(e.currentTime)>0&&4>=Math.round(e.currentTime)?ty(!0):ty(!1),eY&&(null==i?void 0:null===(s=i[1])||void 0===s?void 0:s.length)&&iw(l),r&&($(".jw-slider-time").hide(),$(".jw-display-controls .jw-display-icon-rewind").css("visibility","hidden"),$(".jw-controlbar .jw-icon-rewind").hide(),$(".fastBtn").hide())},firstFrame:()=>{var e,t;if((null===(e=g.e.settings)||void 0===e?void 0:e.ccToggleType)&&(null===(t=g.e.settings)||void 0===t?void 0:t.ccToggleType)!=="none"){let e=(0,ei.rV)("closedCaption");e?iN():window.jwplayer().setCurrentCaptions(0)}},beforePlay:()=>{},mute:e=>{},volume:e=>{},adStarted:e=>{t3("adStarted",e.adposition)},adSkipped:e=>{t3("adSkipped",e.adposition),""!=tV&&tk(!0)},adPlay:e=>{t3("adStarted",e.adposition)},adComplete:e=>{t3("adComplete",e.adposition)},adError:e=>{t3("adError",e.adposition)},autostartNotAllowed:e=>{},captionsList:e=>{}}};window.jwplayer&&setTimeout(()=>{var e,t;null===(t=window)||void 0===t||null===(e=t.jwplayer(et.current))||void 0===e||e.setup(a)},200)},t$=e=>{let t=(0,ei.rV)("selectedBitRate");e.map((e,i)=>{t==e.displayTitle&&(eH.current=e.maxBitRate)})},tQ=()=>{var e,t;let i=!!window.jwplayer()&&!!(null===(e=window.jwplayer())||void 0===e?void 0:e.getQualityLevels())&&(null===(t=window.jwplayer())||void 0===t?void 0:t.getQualityLevels()),l=!1;if(ez.current=!0,eH.current){for(let e=0;e<i.length;e++)if(i[e].bitrate/1e3<=eH.current){window.jwplayer().setCurrentQuality(e),l=!0;break}!1==l&&window.jwplayer().setCurrentQuality(i.length-1)}else window.jwplayer().setCurrentQuality(0)},t0=()=>{try{let e=document.getElementById("inside_player_data");document.getElementById("player_div").append(e)}catch(e){console.log(e)}},t1=()=>{document.querySelector(".jw-button-container").querySelector("#frwdIcon"),document.querySelector(".jw-display-icon-next").style.visibility="visible",document.querySelector(".jw-icon-next").style.display="none";let e=document.getElementById("frwdIcon");e&&(e.style.display="block",e.style.pointerEvents="all",window&&window.innerWidth<420?$(".jw-display-icon-next .jw-icon-next").after(e):$(".jw-controlbar .jw-icon-next").after(e))},t2=()=>{var e;let t=eM.current;if((null==t?void 0:t.sessionInfo.streamPollKey)==void 0)return;let i=new FormData;i.append("poll_key",null==t?void 0:null===(e=t.sessionInfo)||void 0===e?void 0:e.streamPollKey);try{eI({url:"https://api-apac.revlet.net/service/api/v1/stream/poll",apiData:i})}catch(e){console.log(e)}},t4=e=>{var t=new FormData;t.append("poll_key",e);try{eP({url:"https://api-apac.revlet.net/service/api/v1/stream/session/end",apiData:t})}catch(e){}},t5=()=>{var e;let t=eM.current;(null==t?void 0:t.sessionInfo)&&(eN.current=setInterval(()=>{try{t2()}catch(e){console.log(e)}},null==t?void 0:null===(e=t.sessionInfo)||void 0===e?void 0:e.pollIntervalInMillis)),!0==eA.current&&!1==eB.current?(eA.current=!1,t6()):eA.current=!1,!0==eB.current&&(eB.current=!1)},t6=()=>{let e=eM.current;e.streamStatus.seekPositionInMillis>0&&window.jwplayer().seek(e.streamStatus.seekPositionInMillis/1e3)},t3=(e,t)=>{var i,l,a;let o;switch(o="pre"==t?"preRoll":"post"==t?"postRoll":"midRoll",e){case"adStarted":tN(!0),ec&&(null===(i=ec.current)||void 0===i||i.handleAdStarted({adType:o}));break;case"adComplete":tN(!1),ec&&(null===(l=ec.current)||void 0===l||l.handleAdCompleted({adType:o}));break;case"adSkipped":tN(!1),ec&&(null===(a=ec.current)||void 0===a||a.handleAdSkipped({adType:o}));break;case"adPlay":tN(!0);break;case"adError":tN(!1)}},t8=e=>{var t,i,l,a,o,n,r,d,c,u;(null==eM?void 0:eM.current)&&(null==eM?void 0:null===(i=eM.current)||void 0===i?void 0:null===(t=i.response)||void 0===t?void 0:t.sessionInfo)&&t4(eM.current.response.sessionInfo.streamPollKey);let v="https://api-apac.revlet.net",p={path:(null==M?void 0:M.streamStatus.streamType)=="preview"?"".concat(A,"&stream_type=preview"):A};if(e&&(p.pin=e),(null==F?void 0:null===(a=F.encryptApisList)||void 0===a?void 0:null===(l=a.fields)||void 0===l?void 0:l.stream)=="true"){(null==M?void 0:null===(n=M.info)||void 0===n?void 0:null===(o=n.attributes)||void 0===o?void 0:o.playerType)=="trailer"&&(p.stream_type="trailer");let e={data:(0,s.q6)(JSON.stringify(p)),metadata:(0,s.q6)(JSON.stringify({request:"page/stream"}))};v+="/service/api/v1/send";try{z({url:v,apiData:e})}catch(e){}}else{(null==M?void 0:null===(d=M.info)||void 0===d?void 0:null===(r=d.attributes)||void 0===r?void 0:r.playerType)=="trailer"&&(p.stream_type="trailer")||(null==M?void 0:null===(u=M.info)||void 0===u?void 0:null===(c=u.attributes)||void 0===c?void 0:c.playerType)=="preview"&&(p.stream_type="preview"),v+="/service/api/v1/page/stream?"+(0,s.Yo)(p);try{H(v)}catch(e){}}},t9=()=>{try{window.jwplayer().seek(0)}catch(e){console.log(e)}},t7=()=>
1{ed.push(tV)},ie=()=>{var e;tC(0),ti&&(clearInterval(E),null===(e=window)||void 0===e||e.jwplayer(et.current).stop())};(0,a.useEffect)(()=>{let e=eM.current;if(e){var t;let i=(null==e?void 0:null===(t=e.streamStatus)||void 0===t?void 0:t.totalDurationInMillis)/1e3;tC(parseInt(e.streams[0].params.duration<i?e.streams[0].params.duration:i))}},[K]);let it=()=>{try{var e,t,i;(null===(t=window)||void 0===t?void 0:null===(e=t.jwplayer())||void 0===e?void 0:e.getFullscreen())&&(null===(i=window.jwplayer())||void 0===i||i.setFullscreen(!1))}catch(e){console.log(e)}},ii=()=>{$(".jw-display-icon-container.jw-display-icon-display.jw-reset").css("visibility","hidden")},il=e=>{e?E=setInterval(()=>{tC(e=>(0>=Math.floor(e)&&(ie(),tt(!1),tl(!1),it(),ii()),e-1))},1e3):clearInterval(E)},ia=()=>{eW.current=0,ta.nextVideoTargetPath&&ed.push(ta.nextVideoTargetPath)},io=()=>{window.jwplayer().seek(-15),e8(!1)},is=e=>{var t=[];if(!e||!e.ccList)return[];for(var i=0;i<e.ccList.length;i++){let l={file:(0,c.ZY)(e.ccList[i].filePath),label:e.ccList[i].language,kind:"captions"};t.push(l)}return t},ir=()=>{var e,t,i,l,a,o,n,r,d,c,u,v,p,m,h,_,y,g;let f=[],b={},w=Q.adUrlResponse.adUrlTypes.filter(e=>"postUrl"==e.urlType||"postRollUrl"==e.urlType||"midRollUrl"==e.urlType||"midUrl"==e.urlType||"preUrl"==e.urlType||"preRollUrl"==e.urlType),x=w&&w[0]&&w[0].attributes&&w[0].attributes.adTag?w[0].attributes.adTag:"googima";for(let t of(b.preloadAds=!0,b.vpaidmode="insecure",b.client="vmap"==x?"googima":x,null==Q?void 0:null===(e=Q.adUrlResponse)||void 0===e?void 0:e.adUrlTypes)){if(void 0!=t.url&&(t.url=t.url.replace("{{WIDTH}}","__player-width__"),t.url=t.url.replace("{{HEIGHT}}","__player-height__"),t.url=t.url.replace("{{ENCODED_URL}}",encodeURI(window.location.href)),(null===(l=Q.info)||void 0===l?void 0:null===(i=l.attributes)||void 0===i?void 0:i.contentId)&&(t.url=t.url.replace("{{CONTENT_ID}}",Q.info.attributes.contentId)),Q.title&&(t.url=t.url.replace("{{CONTENT_TITLE}}",encodeURI(Q.title))),(null==es?void 0:null===(o=es.data)||void 0===o?void 0:null===(a=o.ipInfo)||void 0===a?void 0:a.trueIP)&&(t.url=t.url.replace("{{IP}}",null===(n=es.data)||void 0===n?void 0:n.ipInfo.trueIP)),(null==es?void 0:null===(d=es.data)||void 0===d?void 0:null===(r=d.ipInfo)||void 0===r?void 0:r.latitude)&&(t.url=t.url.replace("{{LAT}}",null===(c=es.data)||void 0===c?void 0:c.ipInfo.latitude)),(null==es?void 0:null===(v=es.data)||void 0===v?void 0:null===(u=v.ipInfo)||void 0===u?void 0:u.longitude)&&(t.url=t.url.replace("{{LON}}",null===(p=es.data)||void 0===p?void 0:p.ipInfo.longitude)),t.url=t.url.replace("{{USER_AGENT}}","__device-ua__"),t.url=t.url.replace("{{DNT}}",""),t.url=t.url.replace("{{US_PRIVACY}}",0)),"vmap"==x){b.schedule=t.url;break}if(("preRollUrl"==t.urlType||"preUrl"==t.urlType)&&void 0!=t.url)f.push({tag:t.url.replace("{{CACHEBUSTER}}",new Date().getTime()+(0,s.vJ)()).replace("{{CORRELATOR}}",new Date().getTime()+(0,s.vJ)()),offset:"pre"});else if(("postRollUrl"==t.urlType||"postUrl"==t.urlType)&&void 0!=t.url&&"true"!=Q.info.attributes.isLive)f.push({tag:t.url.replace("{{CACHEBUSTER}}",new Date().getTime()+(0,s.vJ)()).replace("{{CORRELATOR}}",new Date().getTime()+(0,s.vJ)()),offset:"post"});else if(("midRollUrl"==t.urlType||"midUrl"==t.urlType)&&(null===(h=Q.info)||void 0===h?void 0:null===(m=h.attributes)||void 0===m?void 0:m.isLive)!="true"){if(null===(y=t.position)||void 0===y?void 0:null===(_=y.adplaypositions)||void 0===_?void 0:_.length)(null===(g=t.position)||void 0===g?void 0:g.adplaypositions.split(",")).forEach(e=>
1{e=Math.round(parseInt(e.trim())),f.push({tag:t.url.replace("{{CACHEBUSTER}}",new Date().getTime()+(0,s.vJ)()).replace("{{CORRELATOR}}",new Date().getTime()+(0,s.vJ)()),offset:e})});else if(t.position&&(t.position.interval||t.position.offset)&&(t.position.offset?f.push({tag:t.url.replace("{{CACHEBUSTER}}",new Date().getTime()+(0,s.vJ)()).replace("{{CORRELATOR}}",new Date().getTime()+(0,s.vJ)()),offset:parseInt(t.position.offset)}):t.position.offset=0,t.position.interval)){let e=parseInt(t.position.offset);if(Q.streamStatus&&Q.streamStatus.totalDurationInMillis){let i=Math.round(Math.abs(Q.streamStatus.totalDurationInMillis/1e3));for(e+=parseInt(t.position.interval),t.position.maxCount=t.position.maxCount||10;i>=e&&f.length<t.position.maxCount;)f.push({tag:t.url.replace("{{CACHEBUSTER}}",new Date().getTime()+(0,s.vJ)()).replace("{{CORRELATOR}}",new Date().getTime()+(0,s.vJ)()),offset:e}),e+=parseInt(t.position.interval)}}}}return"vmap"!=x&&(b.schedule=f),(null==eM?void 0:null===(t=eM.current.streams[0].params)||void 0===t?void 0:t.daiAssetKey)&&(b.client="dai"),console.log(b),b},id=e=>{if(void 0!=e){var t,i,l,a,o,n,d,c,u,v,p;e=e.replace("{{cb}}",new Date().getTime()).replace("{{ua}}",window.navigator.userAgent).replace("{{did}}",(0,r.g$)()).replace("{{ENCODED_URL}}",encodeURI(window.location.href)).replace("{{USER_AGENT}}",window.navigator.userAgent).replace("{{CACHEBUSTER}}",new Date().getTime()+(0,s.vJ)()).replace("{{CORRELATOR}}",new Date().getTime()+(0,s.vJ)()),(null==es?void 0:null===(i=es.data)||void 0===i?void 0:null===(t=i.ipInfo)||void 0===t?void 0:t.trueIP)&&(e=e.replace("{{IP}}",null===(l=es.data)||void 0===l?void 0:l.ipInfo.trueIP)),(null==es?void 0:null===(o=es.data)||void 0===o?void 0:null===(a=o.ipInfo)||void 0===a?void 0:a.latitude)&&(e=e.replace("{{LAT}}",null===(n=es.data)||void 0===n?void 0:n.ipInfo.latitude)),(null==es?void 0:null===(c=es.data)||void 0===c?void 0:null===(d=c.ipInfo)||void 0===d?void 0:d.longitude)&&(e=e.replace("{{LON}}",null===(u=es.data)||void 0===u?void 0:u.ipInfo.longitude)),(null===(p=Q.info)||void 0===p?void 0:null===(v=p.attributes)||void 0===v?void 0:v.contentId)&&(e=e.replace("{{CONTENT_ID}}",Q.info.attributes.contentId)),Q.title&&(e=e.replace("{{CONTENT_TITLE}}",encodeURI(Q.title)))}return e},ic=e=>{var t,i,l,a,o,n,s,r,d,c,u,v,p,m,h;if(!e)return;let _=[];if((null==eO?void 0:eO.isActive)&&eq({}),((null==e?void 0:null===(t=e.response)||void 0===t?void 0:t.pageAttributes.pgRatingTitle)||(null==e?void 0:null===(i=e.response)||void 0===i?void 0:i.pageAttributes.pgRatingSubtitle))&&th({pgRatingTitle:null==e?void 0:null===(s=e.response)||void 0===s?void 0:s.pageAttributes.pgRatingTitle,pgRatingSubtitle:null==e?void 0:null===(r=e.response)||void 0===r?void 0:r.pageAttributes.pgRatingSubtitle}),null==e?void 0:null===(a=e.response)||void 0===a?void 0:null===(l=a.streams)||void 0===l?void 0:l.length)for(let t of(tG(null==e?void 0:e.response),e.response.streams))if("fairplay"==t.streamType&&"manorama_max"==t.attributes.partnerCode)t.keys.licenseKey=t.keys.licenseKey.replace("http:","https:"),_.push({file:id(t.url),drm:{fairplay:{certificateUrl:(null===(d=t.keys)||void 0===d?void 0:d.certificate)?null===(c=t.keys)||void 0===c?void 0:c.certificate:"/assets/fairplay.cer",processSpcUrl:t.keys.licenseKey,licenseRequestHeaders:[{name:"Content-type",value:"application/x-www-form-urlencoded"}],extractContentId:function(e){if(cid=e,e.indexOf("skd://")>-1)return e.substring(e.indexOf("skd://")+6);throw"Invalid Content ID format. The format of the Content ID must be the following: skd://xxx where xxx is the Key ID in hex format."},licenseResponseType:"text",licenseRequestMessage:function(e,t){return"spc="+Utility.base64EncodeUint8Array(e)+"&assetId="+cid.split("//")[1]},extractKey:function(e){return Utility.base64DecodeUint8Array(e)}}}});else if("fairplay"==t.streamType&&"manorama_max"!=t.attributes.partnerCode)t.keys.licenseKey=t.keys.licenseKey.replace("http:","https:"),_.push({file:id(t.url),drm:{fairplay:{certificateUrl:(null===(u=t.keys)||void 0===u?void 0:u.certificate)?null===(v=t.keys)||void 0===v?void 0:v.certificate:"/assets/fairplay.cer",processSpcUrl:t.keys.licenseKey,licenseRequestHeaders:[{name:"Content-type",value:"application/octet-stream"}]}}});else if("widevine"==t.streamType)t.keys.licenseKey=t.keys.licenseKey.replace("http:","https:"),_.push({file:id(t.url),drm:{widevine:{url:t.keys.licenseKey}}});else if("playready"==t.streamType)t.keys.licenseKey=t.keys.licenseKey.replace("http:","https:"),_.push({file:id(t.url),drm:{playready:{url:t.keys.licenseKey}}});else if(0==t.keys.licenseKey.length&&t.url.includes(".mpd"))_.push({file:id(t.url)});else{let e={file:id(t.url),default:!1,label:"0",preload:"metadata",sParams:t.params,subType:t.streamType,onXhrOpen:function(e,i){var l,a;e.setRequestHeader("sessionid",null===(l=t.params)||void 0===l?void 0:l.sessionid),e.setRequestHeader("token",null===(a=t.params)||void 0===a?void 0:a.token)}};(null===(p=t.params)||void 0===p?void 0:p.sessionid)||(null===(m=t.params)||void 0===m?void 0:m.token)||delete e.onXhrOpen,e.type="hls","etvwin"===Q.info.attributes.networkName&&"true"===Q.info.attributes.isLive&&(e.withCredentials=!0),_.push(e)}let y=_.filter(e=>"hls"==e.type);if(y.length>0){_=_.filter(e=>"hls"!=e.type);let e=y.filter(e=>"akamai"!=e.subType),t=y.filter(e=>"akamai"==e.subType);0==t.length?(void 0!=e[0].onXhrOpen&&(delete e[0].onXhrOpen,e[0].file=e[0].file+"?sessionid="+e[0].sParams.sessionid+"&token="+(null===(h=e[0].sParams)||void 0===h?void 0:h.token),delete e[0].sParams),_.push(e[0])):_.push(t[0])}let g=[{sources:_,tracks:(null==e?void 0:e.response)&&(null==e?void 0:null===(o=e.response.streams[0])||void 0===o?void 0:o.closeCaptions)?is(null==e?void 0:null===(n=e.response)||void 0===n?void 0:n.streams[0].closeCaptions):[]}];if(null==e?void 0:e.response.streams[0].params.daiAssetKey){let t={assetKey:null==e?void 0:e.response.streams[0].params.daiAssetKey};g[0].daiSetting=t}eG=g,tX(g)},iu=()=>{var e,t;let i=null===(e=window)||void 0===e?void 0:e.jwplayer().getPosition();null===(t=window)||void 0===t||t.jwplayer().seek(i+10)},iv=()=>{var e,t;let i=eM.current;null===(t=window)||void 0===t||t.jwplayer().seek(parseInt(null==i?void 0:null===(e=i.pageAttributes)||void 0===e?void 0:e.introEndTime)),e7(!1)},ip=(e,t)=>{var i,l,a,n,s,r,d,c;if(G({type:o.Nw.t3,payload:ed.asPath}),null==e?void 0:null===(i=e.properties)||void 0===i?void 0:i.showPopUp)eF({isActive:null==e?void 0:null===(l=e.properties)||void 0===l?void 0:l.showPopUp,topImg:null==e?void 0:null===(a=e.properties)||void 0===a?void 0:a.showPopUp,topImgValue:"http://mobond.yuppcdn.net/cf1/static/slt/images/payment-failure.svg",title1:null==e?void 0:null===(n=e.properties)||void 0===n?void 0:n.title,title2:null==e?void 0:null===(s=e.properties)||void 0===s?void 0:s.subtitle,yesButtonTarget1:im,yesButton1:"Cancel",
1yesButtonType:"primary",close:!0,closeTarget:im});else if("subscribe"===e.target)ed.push("/buy/packages-list");else if("verify_email"===e.target)tq?eL({from:"player",verification:"email",context:"verify_email",data:{title1:"".concat(q.Dw[W].Otp_sent_to_your_email," ").concat(Z.email.slice(0,5),"******").concat(Z.email.substring(8)),mobile:Z.phoneNumber,email:Z.email}}):ed.push("/signin");else if("rent"===e.target){if((null===(c=g.e)||void 0===c?void 0:null===(d=c.packageSettings)||void 0===d?void 0:null===(r=d.paymentGateway)||void 0===r?void 0:r.typeOfPayment)=="internal"){let e=ed.asPath.replace("/",""),t=new URLSearchParams({path:e,package_type:2,skip_package_content:!0}).toString(),i="".concat("https://api-apac.revlet.net").concat("/package/api/v1/","packages/info/for/content?").concat(t);tM(i)}else G({type:o.Nw.t3,payload:ed.asPath}),ed.push({pathname:"/buy/packages-list",query:{_rent:ed.asPath.slice(1)}})}else if("rent"===e.target){let e=ed.asPath.replace("/",""),t=new URLSearchParams({path:e,package_type:2,skip_package_content:!0}).toString(),i="".concat("https://api-apac.revlet.net").concat("/package/api/v1/","packages/info/for/content?").concat(t);tM(i)}else"verify_email"===e.target?tq?eL({from:"player",verification:"email",context:"verify_email",data:{title1:"".concat(q.Dw[W].Otp_sent_to_your_email," ").concat(Z.email.slice(0,5),"******").concat(Z.email.substring(8)),mobile:Z.phoneNumber,email:Z.email}}):ed.push("/signin"):ed.push("/"+(null==e?void 0:e.target))},im=()=>{eF({})},ih=()=>{var e;let t=sessionStorage.getItem("isInternalNaviagtion")||!1;null===(e=JioAds)||void 0===e||e.setConfiguration({logLevel:"debug",initialUnMute:t}),iS()},i_=()=>{var e;let t=[],i=[];if(!eY)return{adSpots:t,cuepoints:i};let{adUrlResponse:l}=M;return l&&(null==l?void 0:l.adUrlTypes)&&(null==l?void 0:null===(e=l.adUrlTypes)||void 0===e?void 0:e.length)!==0?(l.adUrlTypes.forEach(e=>{var l,a;(null===(l=e.attributes)||void 0===l?void 0:l.adTag)==="jio"&&"preUrl"===e.urlType?(eX(!0),t[0]=e.url):(null===(a=e.attributes)||void 0===a?void 0:a.adTag)==="jio"&&"midUrl"===e.urlType&&(eX(!0),t[1]=e.url,i=iy(e.position))}),e1(t),{adSpots:t,cuepoints:i}):(eX(!1),[])},iy=e=>{var t;let i=[];if(!(null==M?void 0:null===(t=M.streamStatus)||void 0===t?void 0:t.totalDurationInMillis))return i;let l=Math.round(Math.abs(M.streamStatus.totalDurationInMillis/1e3)),a=e.offset?parseInt(e.offset):0;if(e.interval)for(;l>=a;)i.push({begin:a,cueType:"custom",text:""}),a+=parseInt(e.interval);return eQ(i),i},ig=e=>{window.jwplayer().pause(),$(".jw-wrapper").hide(),e4("pre"),eX(!0);let t=!!M.info.attributes&&"trailer"==M.info.attributes.playerType;M.streamStatus.seekPositionInMillis>0&&!t&&e.length>1&&e.forEach(e=>{e.begin<M.streamStatus.seekPositionInMillis/1e3&&!e.istrigger?(e.istrigger=!0,eY&&ij()):e.begin<M.streamStatus.seekPositionInMillis/1e3&&(e.istrigger=!0)})},ib=e=>{var t,i;e.length>0&&window.jwplayer()&&(null===(i=window)||void 0===i||null===(t=i.jwplayer())||void 0===t||t.addCues(e))},iw=e=>{null==e||e.forEach(e=>{var t;e.begin<(null===(t=window)||void 0===t?void 0:t.jwplayer().getPosition())&&!e.istrigger?(e.istrigger=!0,eY&&ij()):e.begin<window.jwplayer().getPosition()&&(e.istrigger=!0)})},ix=()=>{e4(""),eX(!1),$(".jw-wrapper").show(),window.jwplayer(et.current).play(),setTimeout(()=>{window.jwplayer(et.current).play()},1e3)},ij=()=>{eX(!0),window.jwplayer(et.current).pause(),$(".jw-wrapper").hide(),e4("mid")},iS=()=>{JioAds.onAdRender=function(e){window.jwplayer()&&window.jwplayer(et.current).pause()},JioAds.onMediaURLReady=function(){},JioAds.onAdPrepared=function(e,t){},JioAds.onAdMediaStart=function(e,t){},JioAds.onAdChange=function(e,t){},JioAds.onAdMediaEnd=function(e,t,i){ix()},JioAds.onAdSkipped=function(e,t,i){ix()},JioAds.onAdClosed=function(){ix()},JioAds.onAdFailedToLoad=function(e,t){ix()},JioAds.onMediaURLFailedToLoad=function(e,t){ix()}},ik=()=>{let e=e=>{e.stopImmediatePropagation()};window.stopImmediatePropagation=e,window.addEventListener("visibilitychange",e,!0);try{JioAds.closeAd("ins-unique-1"),JioAds.closeAd("ins-unique-2")}catch(e){console.log(e)}},iT=()=>
1{e$.forEach(e=>{e.istrigger=!1}),eQ(e$)},iN=()=>{var e,t;if((null===(e=g.e.settings)||void 0===e?void 0:e.ccToggleType)&&(null===(t=g.e.settings)||void 0===t?void 0:t.ccToggleType)!=="none"){let e=window.jwplayer().getCaptionsList(),t=e.findIndex(e=>{var t;return(null===(t=e.language)||void 0===t?void 0:t.toLowerCase())==="en"});-1!==t?window.jwplayer().setCurrentCaptions(t):window.jwplayer().setCurrentCaptions(1)}};return(0,l.jsxs)(l.Fragment,{children:[tA&&(0,l.jsx)(en.Z,{}),tr&&(0,l.jsx)("button",{className:"".concat(tr?"".concat(L().errBack):""),onClick:()=>ed.back(),children:(0,l.jsx)("img",{src:"".concat(V.Z.jwPlayer.helpBackArrow),alt:"back"})}),!ev&&(0,l.jsxs)("div",{className:"".concat(L().player),children:[(0,l.jsx)("div",{ref:et,id:"player_div",children:" "}),(0,l.jsxs)("div",{className:"plyr_fullscreen ".concat(L().player_buttons),id:"playerButtons",children:[tn&&!tr&&(0,l.jsx)("button",{className:"".concat(L().playerBack," playerBack ").concat(tr?"".concat(L().errBack):""),onClick:()=>ed.back(),children:(0,l.jsx)("img",{src:"".concat(V.Z.jwPlayer.helpBackArrow),alt:"back"})}),e5&&!tT&&(0,l.jsx)("button",{className:"".concat(L().start_over),onClick:()=>t9(),children:q.uf[W].Start_Over}),tS&&!tT&&(0,l.jsx)("button",{className:"".concat(L().start_over),onClick:()=>t7(),children:q.uf[W].Last_Channel}),e3&&!tT&&(0,l.jsx)("button",{className:"".concat(L().start_over),onClick:()=>io(),children:q.uf[W].Go_Live}),e9&&!tT&&(0,l.jsx)("button",{className:"".concat(L().start_over),onClick:()=>iv(),children:q.uf[W].Skip_intro}),ta&&(null==ta?void 0:ta.displayStatus)&&!ti&&!tT&&(0,l.jsx)("button",{className:"".concat(L().next_episode),onClick:()=>ia(),children:null==M?void 0:null===(i=M.info)||void 0===i?void 0:null===(t=i.attributes)||void 0===t?void 0:t.nextButtonTitle})]}),!!t_&&tm&&(!!tm.pgRatingTitle||!!tm.pgRatingSubtitle)&&(0,l.jsx)("div",{id:"inside_player_data",children:(0,l.jsxs)("div",{className:" Rating  ".concat(t_?"show":""),children:[(0,l.jsx)("div",{className:"rectanglePG"}),(0,l.jsx)("div",{className:"pgRatingTitle",children:tm.pgRatingTitle}),(0,l.jsx)("div",{className:"pgRatingSub",children:tm.pgRatingSubtitle})]})}),te&&(0,e_.createPortal)((0,l.jsx)("div",{id:"preview_data",className:"".concat(L().preview_timer),children:"Preview ends in : ".concat("".concat(Math.floor(tI/60),":").concat(tI%60<10?"0":"").concat(tI%60))}),document.getElementById("player_div")),(null==eM?void 0:null===(v=eM.current)||void 0===v?void 0:null===(u=v.streamStatus)||void 0===u?void 0:u.previewStreamStatus)&&tI<=0&&!te&&(0,l.jsxs)("div",{className:"".concat(L().errorSec),children:[(0,l.jsx)("div",{children:null===(h=eM.current)||void 0===h?void 0:null===(p=h.streamStatus)||void 0===p?void 0:p.message}),(0,l.jsx)("div",{children:em.length>0&&em.filter(e=>"preview"!==e.elementSubtype).map(e=>(0,l.jsx)(eb,{button:e,btnHandler:ip},e.id))})]}),(0,l.jsx)("div",{id:"nextVideoTooltip",children:tb&&(0,l.jsx)(m(),{prefetch:!1,href:(null==tp?void 0:null===(b=tp.data)||void 0===b?void 0:null===(f=b.response)||void 0===f?void 0:null===(y=f.data[0])||void 0===y?void 0:null===(_=y.target)||void 0===_?void 0:_.path)||"/",children:(0,l.jsxs)("div",{className:"".concat(L().nextVideoContainer," nextVideoContainer"),children:[(0,l.jsxs)("div",{className:L().nxtLeft,children:[(0,l.jsx)("img",{alt:"video",src:(e=>{try{return e?(0,c.ZY)(e):""}catch(e){}})(null==tp?void 0:null===(S=tp.data)||void 0===S?void 0:null===(j=S.response)||void 0===j?void 0:null===(x=j.data[0])||void 0===x?void 0:null===(w=x.display)||void 0===w?void 0:w.imageUrl)}),(0,l.jsx)("div",{className:L().playButton,children:(0,l.jsx)("span",{className:L().playButtonText,children:(0,l.jsx)("div",{className:L().loading,children:(0,l.jsx)("div",{className:L().innerShadow,children:(0,l.jsx)(ea.Z,{fontSize:"large",sx:{color:eo.Z.white}})})})})})]}),(0,l.jsxs)("div",{className:L().nxtRight,children:[(0,l.jsxs)("span",{children:[(null===(k=q.uf[W])||void 0===k?void 0:k.Up_Next_In)||"Up next in"," ",tg," ",(null===(T=q.uf[W])||void 0===T?void 0:T.Sec)||"sec"]}),(0,l.jsx)("h4",{children:null==tp?void 0:null===(P=tp.data)||void 0===P?void 0:null===(C=P.response)||void 0===C?void 0:null===(I=C.data[0])||void 0===I?void 0:null===(N=I.display)||void 0===N?void 0:N.title})]})]})})}
1),!ev&&!!eE&&(null==eE?void 0:eE.status)&&(0,l.jsx)("div",{className:"".concat(L().sessionClosed),children:(0,l.jsxs)("div",{className:"".concat(L().sessionClosedText),children:[(0,l.jsxs)("div",{children:[(0,l.jsxs)("h5",{children:[" ",eE.title," "]}),(0,l.jsx)("p",{children:eE.description})]}),(null==eE?void 0:eE.code)=="-4001"?(0,l.jsx)("div",{onClick:()=>ed.push("/settings"),children:(0,l.jsx)("button",{children:q.uf[W].View_Active_Screens||"View Active Screens"})}):(0,l.jsx)("div",{onClick:()=>tK(),children:(0,l.jsx)("button",{children:q.uf[W].Close_player})})]})})]}),(0,l.jsx)("div",{id:"player-wrap-jio",children:eY&&e0.length>0&&(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("div",{class:L().adsStreamContainer,id:"my-instream-video-container",style:{zIndex:eY?"":"-1"}}),eY&&"pre"==e2&&(0,l.jsx)("ins",{id:"ins-unique-1","data-adspot-key":e0[0],"data-source":"www.reeldrama.com","data-container-id":"my-instream-video-container"}),eY&&"mid"==e2&&(0,l.jsx)("ins",{id:"ins-unique-2","data-adspot-key":e0[1],"data-source":"www.reeldrama.com","data-container-id":"my-instream-video-container"})]})}),ev&&(0,l.jsxs)("div",{className:"".concat(L().errorSec),ref:ex,children:[(0,l.jsx)("button",{className:"".concat(L().playerBack),onClick:()=>ed.back(),children:(0,l.jsx)("img",{src:"".concat(V.Z.jwPlayer.helpBackArrow),alt:"back"})}),(0,l.jsxs)("div",{children:[" ",ej," "]}),(0,l.jsxs)("div",{children:[" ",ek," "]}),(0,l.jsx)("div",{children:em.length>0&&em.filter(e=>"preview"!==e.elementSubtype).map(e=>(0,l.jsx)(eb,{button:e,btnHandler:ip},e.id))})]}),(0,l.jsx)(l.Fragment,{children:tc&&(0,l.jsx)("div",{className:"".concat(L().forwardIcon),onClick:()=>iu(),id:"frwdIcon",children:(0,l.jsxs)("span",{className:te||tT?"".concat(L().frd_icon_hide):"".concat(L().frd_icon),children:[(0,l.jsx)("img",{src:"".concat(V.Z.jwPlayer.forwardIcon)}),(0,l.jsx)("span",{className:"".concat(L().tooltip," tooltip"),children:"Forward 10 Seconds"})]})})}),(null==eU?void 0:eU.isActive)&&(0,l.jsx)(ey,{popupData:eU}),tP.enabled&&(0,l.jsx)(eg,{razorpayData:tP.data,activePackage:tE,paymentCancelled:()=>{tD({enabled:!1,data:{}})}}),(null==eO?void 0:eO.isActive)&&(0,l.jsx)(ef,{isParentalPopup:!0,popupData:eO,validatePincodeCallBack:t8}),!!eZ&&(0,l.jsx)(eh,{isOpen:!0,otpData:eZ,returnBack:()=>eL()})]})},ex=i(74159),ej=()=>{var e,t,i,s,r,d,u,v,p,m,h,y;let{state:{PageData:g}}=(0,o.oR)(),{back:f}=(0,n.useRouter)(),[b,w]=(0,a.useState)(""),[x,j]=(0,a.useState)(""),[S,k]=(0,a.useState)(""),[T,N]=(0,a.useState)(!1),[I,C]=(0,a.useState)(!0),[P,D]=(0,a.useState)(""),E=(0,a.useRef)(null),R=(0,a.useRef)(null),[A,B]=(0,a.useState)(500);(0,a.useEffect)(()=>{if(g){var e,t,i,l;(null==g?void 0:null===(e=g.tabsInfo)||void 0===e?void 0:e.showTabs)&&(null==g?void 0:null===(t=g.tabsInfo)||void 0===t?void 0:t.tabs.length)>0&&w(null==g?void 0:g.tabsInfo),null==g||null===(i=g.data)||void 0===i||i.map(e=>{(null==e?void 0:e.paneType)==="content"&&j(e)});let a=void 0==g.info.attributes.showOnPlayer||0==g.info.attributes.showOnPlayer.length?[]:g.info.attributes.showOnPlayer.split();k([...null==g?void 0:null===(l=g.data)||void 0===l?void 0:l.filter(e=>{var t,i;if((null==e?void 0:e.paneType)==="section"&&!(a.includes(e.section.sectionInfo.code)||(null==e?void 0:null===(i=e.section)||void 0===i?void 0:null===(t=i.sectionInfo)||void 0===t?void 0:t.dataType)=="actor"||e.section.sectionData.params&&"true"==e.section.sectionData.params.showOnPlayer))return e})]),M(),Z()}E.current&&R.current&&B(E.current.clientHeight+R.current.clientHeight+120)},[g]);let M=()=>{var e,t;((null==g?void 0:null===(e=g.info)||void 0===e?void 0:e.pageType)==="player"||(null==g?void 0:null===(t=g.info)||void 0===t?void 0:t.pageType)==="details")&&window.innerWidth<=991&&N(!0)},Z=()=>{var e;let t="";null==g||null===(e=g.data)||void 0===e||e.map(e=>{var i;(null==e?void 0:e.paneType)==="content"&&(t=(0,c.ZY)(null==e?void 0:null===(i=e.content)||void 0===i?void 0:i.backgroundImage))}),D(t)};return(0,l.jsxs)("div",{className:"".concat(L().playerHome," ").concat(T?L().removeMarginTop:""),children:[(0,l.jsx)("div",{className:L().player_left_ad,children:(0,l.jsx)(ex.Z,{adClientId:null===(i=c._R)||void 0===i?void 0:null===(t=i.configs)||void 0===t?void 0:null===(e=t.bannerAdUnitIdWeb)||void 0===e?void 0:e.split("/")[0],adUnitId:null===(d=c._R)||void 0===d?void 0:null===(r=d.configs)||void 0===r?void 0:null===(s=r.bannerAdUnitIdWeb)||void 0===s?void 0:s.split("/")[1],width:"120px",height:"600px",displayAd:window.innerWidth>992})}),(0,l.jsxs)("div",{className:"".concat(L().playerLeft," playerLeftSec"),children:[(0,l.jsxs)("div",{className:"".concat(L().playerSection," ").concat(T?L().playerFixed:""),ref:E,children:[I&&(0,l.jsx)(_(),{loader:e=>{let{src:t}=e;return t},className:"".concat(L().bgImg),fill:!0,src:P,alt:"image",onError:e=>{let{currentTarget:t}=e;t.onerror=null,t.srcset="".concat(V.Z.lazyimage16x9)}}),(0,l.jsx)(ew,{setVideoBgImage:()=>{C(!1)},streamPath:null==g?void 0:null===(u=g.info)||void 0===u?void 0:u.path})]}
1),(0,l.jsx)("div",{className:"".concat(L().playerDesMain),ref:R,children:(0,l.jsx)(et,{playerMetaData:x})})]}),(0,l.jsxs)("div",{className:"".concat(L().playerRight),children:[(0,l.jsx)(ex.Z,{adClientId:null===(p=c._R)||void 0===p?void 0:null===(v=p.configs.bannerAdUnitIdPlayerWeb)||void 0===v?void 0:v.split("/")[0],adUnitId:null===(y=c._R)||void 0===y?void 0:null===(h=y.configs)||void 0===h?void 0:null===(m=h.bannerAdUnitIdPlayerWeb)||void 0===m?void 0:m.split("/")[1],width:"300px",height:"250px"}),(0,l.jsx)(H,{lefthandHeight:A,playerSuggestionsData:S,tabsData:b})]})]})},eS=i(70675),ek=i(67058),eT=i.n(ek),eN=i(53068),eI=function(e){var t,i,n,s,r,d,c,u,v,p,h,_,y,f,b,w,x,j,S,k,T,N,I,C,P,D;let{detailsObj:E,addToFavourite:R,navigateTo:A,navigateToSignIn:B,shareDataSet:M}=e,{state:{PageData:Z,localLang:L}}=(0,o.oR)(),U=(null==E?void 0:null===(i=E.buttons)||void 0===i?void 0:null===(t=i.elements)||void 0===t?void 0:t.length)>0?null==E?void 0:null===(n=E.buttons)||void 0===n?void 0:n.elements:[];return(0,l.jsxs)(l.Fragment,{children:[(0,l.jsxs)(a.Fragment,{children:[(0,l.jsx)("div",{className:"".concat(eT().resume_now_mobile),children:null==U?void 0:null===(s=U.elements)||void 0===s?void 0:s.map(e=>{var t,i;return"resume"==e.elementSubtype&&(0,l.jsxs)("button",{type:"button",className:"btn ".concat(eT().buttons," ").concat(eT().resume_now,"  ").concat(eT().seekBarResume," primary br2"),onClick:t=>A(e,t),children:[(0,l.jsx)("img",{src:"".concat(null===(i=V.Z)||void 0===i?void 0:null===(t=i.tvShowDetails)||void 0===t?void 0:t.resumeIcon),alt:"resume"}),e.data,(0,l.jsx)("span",{className:"".concat(eT().seek_bar," "),children:(0,l.jsx)("span",{className:"".concat(eT().seek_position," "),style:{width:"".concat(e.seekedValue,"%")}})})]})})}),(0,l.jsx)("div",{className:"".concat(eT().actions," ").concat(eT().mobile),children:null==U?void 0:U.map(e=>(0,l.jsxs)(a.Fragment,{children:[("trailer"==e.elementSubtype||"signin"==e.elementSubtype&&"trailer"==e.data.toLowerCase())&&(0,l.jsxs)("button",{type:"button",className:" ".concat(eT().buttons," ").concat(eT().trailer,"  br2"),onClick:t=>A(e,t),children:[(0,l.jsx)("img",{className:"".concat(eT().trailer_image),src:"".concat(V.Z.tvShowDetails.trailerIcon),alt:"trailer"}),e.data]}),"signin"==e.elementSubtype&&"trailer"!=e.data.toLowerCase()&&(0,l.jsx)("button",{type:"button",onClick:B,className:" ".concat(eT().buttons," ").concat(eT().signin," primary br2"),children:e.data}),"signup"==e.elementSubtype&&(0,l.jsx)(m(),{href:"/signup",prefetch:!1,children:(0,l.jsx)("button",{type:"button",className:"btn ".concat(eT().buttons," ").concat(eT().signup," primary br2"),children:e.data})}),"watchnow"==e.elementSubtype&&(0,l.jsx)("button",{type:"button",className:"btn ".concat(eT().buttons," ").concat(eT().watchnow," primary br2"),onClick:t=>A(e,t),children:e.data}),"watchlive"==e.elementSubtype&&(0,l.jsx)("button",{type:"button",className:"btn ".concat(eT().buttons," ").concat(eT().watchnow," primary br2"),onClick:t=>A(e,t),children:e.data}),"startover"==e.elementSubtype&&(0,l.jsx)("button",{type:"button",className:"".concat(eT().buttons," ").concat(eT().startover," primary br2"),onClick:t=>A(e,t),children:e.data}),"resume"==e.elementSubtype&&(0,l.jsxs)("button",{type:"button",className:"btn ".concat(eT().buttons," ").concat(eT().resume," ").concat(eT().seekBarResume," primary br2"),onClick:t=>A(e,t),children:[(0,l.jsx)("img",{src:"".concat(V.Z.tvShowDetails.resumeIcon),alt:"resume"}),e.data,(0,l.jsx)("span",{className:"".concat(eT().seek_bar," "),children:(0,l.jsx)("span",{className:"".concat(eT().seek_position," "),style:{width:"".concat(e.seekedValue,"%")}})})]}),"watch_latest_episode"==e.elementSubtype&&(0,l.jsx)(m(),{href:"/",children:(0,l.jsxs)("button",{type:"button",className:"btn ".concat(eT().buttons," ").concat(eT().watch_latest_episode," primary br2"),onClick:t=>A(e,t),children:[(0,l.jsx)("img",{alt:"button",src:V.Z.tvShowDetails.resumeIcon}),"\xa0 ",e.data]})}),"rent"==e.elementSubtype&&(0,l.jsx)("button",{type:"button",className:"btn ".concat(eT().buttons," ").concat(eT().rent," primary br2"),onClick:t=>A(e,t),children:e.data}),"subscribe"==e.elementSubtype&&(0,l.jsx)(m(),{href:"/",children:(0,l.jsx)("button",{type:"button",className:"btn ".concat(eT().buttons," ").concat(eT().subscribe," primary br2"),onClick:t=>A(e,t),children:e.data})})]},null==e?void 0:e.id))}),(0,l.jsxs)("div",{className:"".concat(eT().mobile_share_controls),children:[(null==E?void 0:E.showFavouriteButton)&&(0,l.jsx)("button",{type:"button",className:"mobile_button ".concat(eT().buttons," ").concat(eT().fav," br2"),onClick:R,children:(null==E?void 0:E.isFavourite)?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("img",{alt:"fav",className:eT().active_fav_icon,src:null===(d=V.Z)||void 0===d?void 0:null===(r=d.tvShowDetail
1s)||void 0===r?void 0:r.favoriteActive}),(0,l.jsx)("span",{className:"btn_text ".concat(eT().fav_text),children:null===(u=q.sh)||void 0===u?void 0:null===(c=u[L])||void 0===c?void 0:c.Mobile.Favourited})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("img",{alt:"fav",className:eT().fav_icon,src:V.Z.tvShowDetails.favorite}),(0,l.jsx)("span",{className:"btn_text ".concat(eT().fav_text),children:null===(h=q.sh)||void 0===h?void 0:null===(p=h[L])||void 0===p?void 0:null===(v=p.Mobile)||void 0===v?void 0:v.Favourite})]})},"fav-button"),(null==Z?void 0:null===(_=Z.shareInfo)||void 0===_?void 0:_.isSharingAllowed)&&(0,l.jsxs)(l.Fragment,{children:[(null==E?void 0:E.showFavouriteButton)&&(0,l.jsx)("span",{className:eT().line}),(0,l.jsxs)("button",{type:"button",className:"mobile_button ".concat(eT().buttons," ").concat(eT().share," br2"),onClick:M,children:[(0,l.jsx)("img",{src:"".concat(null===(f=V.Z)||void 0===f?void 0:null===(y=f.tvShowDetails)||void 0===y?void 0:y.share),alt:"share"}),(0,l.jsx)("span",{className:"btn_text ".concat(eT().fav_text," ").concat(eT().fancy_tool_tip),children:null===(w=q.sh)||void 0===w?void 0:null===(b=w[L])||void 0===b?void 0:b.Share})]})]})]})]},"mobileActions"),(0,l.jsx)(a.Fragment,{children:(0,l.jsxs)("div",{className:"".concat(eT().actions),children:[null==U?void 0:U.map(e=>(0,l.jsxs)(a.Fragment,{children:[("trailer"==e.elementSubtype||"signin"==e.elementSubtype&&"trailer"==e.data.toLowerCase())&&(0,l.jsxs)("button",{type:"button",className:" ".concat(eT().buttons," ").concat(eT().trailer,"  br2"),onClick:t=>A(e,t),children:[(0,l.jsx)("img",{className:"".concat(eT().trailer_image),src:"".concat(V.Z.tvShowDetails.trailerIcon),alt:"trailer"}),e.data]}),"signin"==e.elementSubtype&&"trailer"!=e.data.toLowerCase()&&(0,l.jsx)("button",{type:"button",onClick:B,className:" ".concat(eT().buttons," ").concat(eT().signin," primary br2"),children:e.data}),"signup"==e.elementSubtype&&(0,l.jsx)(m(),{href:"/signup",prefetch:!1,children:(0,l.jsx)("button",{type:"button",className:"btn ".concat(eT().buttons," ").concat(eT().signup," primary br2"),children:e.data})}),"watchnow"==e.elementSubtype&&(0,l.jsx)("button",{type:"button",className:"btn ".concat(eT().buttons," ").concat(eT().watchnow," primary br2"),onClick:t=>A(e,t),children:e.data}),"watchlive"==e.elementSubtype&&(0,l.jsx)("button",{type:"button",className:"btn ".concat(eT().buttons," ").concat(eT().watchnow," primary br2"),onClick:t=>A(e,t),children:e.data}),"startover"==e.elementSubtype&&(0,l.jsx)("button",{type:"button",className:"".concat(eT().buttons," ").concat(eT().startover," primary br2"),onClick:t=>A(e,t),children:e.data}),"resume"==e.elementSubtype&&(0,l.jsxs)("button",{type:"button",className:"btn ".concat(eT().buttons," ").concat(eT().resume," ").concat(eT().seekBarResume," primary br2"),onClick:t=>A(e,t),children:[(0,l.jsx)("img",{src:"".concat(V.Z.tvShowDetails.resumeIcon),alt:"resume"}),e.data,(0,l.jsx)("span",{className:"".concat(eT().seek_bar," "),children:(0,l.jsx)("span",{className:"".concat(eT().seek_position," "),style:{width:"".concat(e.seekedValue,"%")}})})]}),"watch_latest_episode"==e.elementSubtype&&(0,l.jsx)(m(),{href:"/",children:(0,l.jsxs)("button",{type:"button",className:"btn ".concat(eT().buttons," ").concat(eT().watch_latest_episode," primary br2"),onClick:t=>A(e,t),children:[(0,l.jsx)("img",{alt:"button",src:V.Z.tvShowDetails.resumeIcon}),"\xa0 ",e.data]})}),"rent"==e.elementSubtype&&(0,l.jsx)("button",{type:"button",className:"btn ".concat(eT().buttons," ").concat(eT().rent," primary br2"),onClick:t=>A(e,t),children:e.data}),"subscribe"==e.elementSubtype&&(0,l.jsx)(m(),{href:"/",children:(0,l.jsx)("button",{type:"button",className:"btn ".concat(eT().buttons," ").concat(eT().subscribe," primary br2"),onClick:t=>A(e,t),children:e.data})})]},null==e?void 0:e.id)),(null==E?void 0:E.showFavouriteButton)&&(null===(j=g.e)||void 0===j?void 0:null===(x=j.detailsPage)||void 0===x?void 0:x.favType)==1&&(0,l.jsx)("button",{type:"button",className:" ".concat(eT().buttons," ").concat(eT().fav1," br2"),onClick:R,children:E.isFavourite?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("img",{className:eT().active_fav_icon,src:V.Z.tvShowDetail
1s.favoriteActive,alt:"favourite"}),(0,l.jsx)("span",{className:"".concat(eT().fancy_tool_tip),children:q.sh[L].Fancy_tool_tip.Favourited})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("img",{className:"".concat(eT().fav_icon),src:"".concat(V.Z.tvShowDetails.favorite),alt:"favourite"}),(0,l.jsx)("span",{className:"".concat(eT().fancy_tool_tip),children:q.sh[L].Fancy_tool_tip.Favourite})," "]})},"fav-button"),E.showFavouriteButton&&(null===(k=g.e)||void 0===k?void 0:null===(S=k.detailsPage)||void 0===S?void 0:S.favType)==2&&(0,l.jsx)("button",{type:"button",className:" ".concat(eT().buttons," ").concat(eT().fav2," br2"),onClick:R,children:E.isFavourite?(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("img",{className:eT().active_fav_icon,src:V.Z.tvShowDetails.favoriteActive,alt:"favourite"}),(0,l.jsx)("span",{className:eT().fav_text,children:null===(T=q.sh)||void 0===T?void 0:T[L].Favourited})]}):(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("img",{className:eT().fav_icon,src:V.Z.tvShowDetails.favorite,alt:"favourite"}),(0,l.jsx)("span",{className:eT().fav_text,children:null===(I=q.sh)||void 0===I?void 0:null===(N=I[L])||void 0===N?void 0:N.Favourite})]})},"fav-button"),(null==Z?void 0:null===(C=Z.shareInfo)||void 0===C?void 0:C.isSharingAllowed)&&(0,l.jsxs)("button",{type:"button",className:"".concat(eT().buttons," ").concat(eT().share," br2"),onClick:e=>A({elementSubtype:"Share"},e),children:[(0,l.jsx)("img",{src:"".concat(V.Z.tvShowDetails.share),alt:"share"}),(0,l.jsx)("span",{className:eT().fancy_tool_tip,children:null===(D=q.sh)||void 0===D?void 0:null===(P=D[L])||void 0===P?void 0:P.Share})]}),(null==E?void 0:E.expiryInfo)&&(0,l.jsxs)("p",{className:eT().expiry_info,children:[E.expiryInfo[0],(0,l.jsx)("span",{className:"".concat(eT().time_stamp),children:E.expiryInfo[1]})]})]})},"desktopActions")]})};let eC=z()(()=>i.e(2648).then(i.bind(i,63194)),{loadableGenerated:{webpack:()=>[63194]}}),eP=z()(()=>Promise.all([i.e(5265),i.e(1539)]).then(i.bind(i,85265)),{loadableGenerated:{webpack:()=>[85265]}}),eD=z()(()=>i.e(5415).then(i.bind(i,44637)),{loadableGenerated:{webpack:()=>[44637]},ssr:!1});var eE=e=>{let{showSections:t,sectionData:i}=e,{state:{PageData:r,userDetails:u,SystemFeature:v,localLang:p},dispatch:m}=(0,o.oR)(),[h,y]=(0,a.useState)({}),[f,b]=(0,a.useState)({}),[w,j]=(0,a.useState)(null),[S,k]=(0,a.useState)(""),[N,I]=(0,a.useState)(!1),{mutate:C,data:P}=(0,d.Z)(),D=(0,n.useRouter)(),[E,A]=(0,a.useState)({enabled:!1,data:{}}),{mutate:B,data:M}=(0,d.Z)(),{mutate:Z,data:L}=(0,d.Z)(),{mutate:U,data:F}=(0,d.Z)(),{mutate:O,data:J}=(0,R.Z)(),[W,G]=(0,a.useState)({}),H=(0,eN.i)();(0,a.useEffect)(()=>{var e,t,i,l,a;if((null==v?void 0:null===(t=v.encryptApisList)||void 0===t?void 0:null===(e=t.fields)||void 0===e?void 0:e.payment)==="true"){let e=null==J?void 0:null===(i=J.data)||void 0===i?void 0:i.data;if(e)try{(e=JSON.parse((0,s.ow)(e))).status?A({enabled:!0,data:e.response}):m({type:o.Nw.o4,payload:{message:null===(l=e.error)||void 0===l?void 0:l.message}})}catch(e){console.log(e)}}else{let e=null==J?void 0:J.data;e&&(e.status?A({enabled:!0,data:e.response}):m({type:o.Nw.o4,payload:{message:null===(a=e.error)||void 0===a?void 0:a.message}}))}},[J]),(0,a.useEffect)(()=>{var e,t,i,l,a,o,n,s,r,d,c,u,v,p,m,h,_,y,g,f,b;if(null==F?void 0:null===(e=F.data)||void 0===e?void 0:e.status){let e={},{data:w}=F;if(G(null==w?void 0:null===(t=w.response)||void 0===t?void 0:t[0]),e.userSelectedPack=null===(o=w.response)||void 0===o?void 0:null===(a=o[0])||void 0===a?void 0:null===(l=a.packageInfo)||void 0===l?void 0:null===(i=l.packages)||void 0===i?void 0:i[0],e.masterPack=null===(r=w.response)||void 0===r?void 0:null===(s=r[0])||void 0===s?void 0:null===(n=s.packageInfo)||void 0===n?void 0:n.master,e.suppGateWays=null===(c=w.response)||void 0===c?void 0:null===(d=c[0])||void 0===d?void 0:d.supportedGateway,e.package_type=2,(null===(u=e.suppGateWays)||void 0===u?void 0:u[0].code)=="razorpay")K(e);else if((null==e?void 0:null===(p=e.suppGateWays)||void 0===p?void 0:null===(v=p[0])||void 0===v?void 0:v.code)=="stripe"){let t="/buy/order-summary/".concat(null==w?void 0:null===(g=w.response)||void 0===g?void 0:null===(y=g[0])||void 0===y?void 0:null===(_=y.packageInfo)||void 0===_?void 0:null===(h=_.packages)||void 0===h?void 0:null===(m=h[0])||void 0===m?void 0:m.id);D.push({pathname:t,query:{path:D.asPath.replace("/",""),package_type:e.package_type,gateway:null==e?void 0:null===(b=e.suppGateWays)||void 0===b?void 0:null===(f=b[0])||void 0===f?void 0:f.code}},t)}}},[F]);let K=e=>{var t,i;let l={gateway:"razorpay",packages:e.userSelectedPack.id.toString()};if((null==v?void 0:null===(i=v.encryptApisList)||void 0===i?void 0:null===(t=i.fields)||void 0===t?void 0:t.payment)=="true"){let e={data:(0,s.q6)(JSON.stringify(l)),metadata:(0,s.q6)(JSON.stringify({request:"order/checkout"}))};z("".concat("https://api-apac.revlet.net","/service/api/v1/send"),e)}else z("".concat("https://api-apac.revlet.net","/payment/api/v1/order/checkout"),l)},z=(e,t)=>{O({url:e,apiData:t})};(0,a.useEffect)(()=>{var e,t,i,l,a;if(null==M?void 0:M.data){if(null==M?void 0:null===(e=M.data)||void 0===e?void 0:e.status){let e=ec(null==M?void 0:M.data.response);window.open(e)}else(null==M?void 0:null===(t=M.data)||void 0===t?void 0:t.error)&&(null==M?void 0:null===(l=M.data)||void 0===l?void 0:null===(i=l.error)||void 0===i?void 0:i.code)===401||console.warn(null==M?void 0:null===(a=M.data)||void 0===a?void 0:a.error)}return window.addEventListener("resize",em),()=>window.removeEventListener("resize",em)},[M]),(0,a.useEffect)(()=>{ee()},[r]),(0,a.useEffect)(()=>{u?j(!0):j(!1)},[u]),(0,a.useEffect)(()=>{var e,t,i,l;(null==L?void 0:null===(l=L.data)||void 0===l?void 0:null===(i=l.response)||void 0===i?void 0:null===(t=i.streams)||void 0===t?void 0:null===(e=t[0])||void 0===e?void 0:e.url)&&setTimeout(()=>{var e,t,i;k(null==L?void 0:null===(i=L.data)||void 0===i?void 0:null===(t=i.response)||void 0===t?void 0:null===(e=t.streams[0])||void 0===e?void 0:e.url),em()},3e3)},[L]);let Q=()=>{var e,t,i,l,a,o,n,s,d,c,u,v,p,m,_,y,g,f;let b={asset_title:h.title,banner_title:h.title,media_type:(null==r?void 0:null===(t=r.info)||void 0===t?void 0:null===(e=t.attributes)||void 0===e?void 0:e.mediaContentType)||"-1",genre:(null==r?void 0:null===(l=r.info)||void 0===l?void 0:null===(i=l.attributes)||void 0===i?void 0:i.genre)||"-1",channel_partner:(null==r?void 0:null===(o=r.info)||void 0===o?void 0:null===(a=o.attributes)||void 0===a?void 0:a.networkName)||"-1"};return(null==r?void 0:null===(s=r.info)||void 0===s?void 0:null===(n=s.attributes)||void 0===n?void 0:n.tvShowName)&&(b.series_name=null==r?void 0:null===(m=r.info)||void 0===m?void 0:null===(p=m.attributes)||void 0===p?void 0:p.tvShowName),(null==r?void 0:null===(c=r.info)||void 0===c?void 0:null===(d=c.attributes)||void 0===d?void 0:d.seasonSeqNo)&&(b.season_number=null==r?void 0:null===(y=r.info)||void 0===y?void 0:null===(_=y.attributes)||void 0===_?void 0:_.seasonSeqNo),(null==r?void 0:null===(v=r.info)||void 0===v?void 0:null===(u=v.attributes)||void 0===u?void 0:u.episodeSeqNo)&&(b.episode_number=null==r?void 0:null===(f=r.
1info)||void 0===f?void 0:null===(g=f.attributes)||void 0===g?void 0:g.episodeSeqNo),b},ee=()=>{var e,t;let i={};r.data.map(e=>{if("content"===e.paneType){let t=e.content.backgroundImage;i.title=e.content.title,i.BgImage=el(t)}}),null==r||r.data.map(e=>{var t;null===(t=e.content)||void 0===t||t.dataRows.map(e=>{e.elements.map(e=>{"partnerIcon"==e.elementSubtype&&(i.partnerIcon=el(e.data)),"subtitle"===e.elementSubtype&&(i.subtitle=e.data),"pgrating"===e.elementSubtype&&(i.pgrating=e.data),"imdb"===e.elementSubtype&&(i.imdb=e.data),"resume"===e.elementSubtype&&(e.seekedValue=et(r.info.attributes.watchedPosition))})})}),null==r||r.data.map(e=>{var t;null===(t=e.content)||void 0===t||t.dataRows.map(e=>{"button"===e.rowDataType&&(i.buttons=e)})}),null==r||r.data.map(e=>{var t;null===(t=e.content)||void 0===t||t.dataRows.map(e=>{e.elements.map(e=>{"description"===e.elementType?i.description=e.data:"text"==e.elementType&&("rentalinfo"==e.elementSubtype?i.rentalinfo=e.data:"expiryInfo"==e.elementSubtype&&(i.expiryInfo=e.data.split("@")))})})});let l=r.data.filter(e=>"section"==e.paneType&&"actor"==e.section.sectionInfo.dataType);if(null==l?void 0:l.length){let e=l[0].section.sectionData.data.map(e=>e.display.title);e.length&&(i.castcrew=e.join())}i.showFavouriteButton=null===(e=r.pageButtons)||void 0===e?void 0:e.showFavouriteButton,i.isFavourite=null===(t=r.pageButtons)||void 0===t?void 0:t.isFavourite,ei(i),y(i)},et=e=>{try{if("0"!=e&&"1"!=e){var t=(100*parseFloat(e)).toString().substring(0,2);return parseInt(t)}if("1"!=e)return 100;return 0}catch(e){}},ei=e=>{try{var t;let i=null==e?void 0:null===(t=e.buttons)||void 0===t?void 0:t.elements.find(e=>"trailer"===e.elementSubtype);if(null==i?void 0:i.target){let{api:e}={location:"https://api-apac.revlet.net",api:"https://api-apac.revlet.net",search:"https://api-apac.revlet.net",tenantCode:"tsat",product:"tsat",isSupported:!0},t="".concat(e,"/service/api/v1/page/stream?path=").concat(null==i?void 0:i.target,"&stream_type=trailer");Z(t)}}catch(e){console.error("Error fetching movie trailer:",e)}};function el(e){try{return e?(0,c.ZY)(e):""}catch(e){}}let ea=()=>{m({type:o.Nw.t3,payload:D.asPath}),es(),D.push("/signin")},eo=()=>{m({type:o.Nw.t3,payload:D.asPath}),es(),D.push("/signup")},es=()=>{b({})},er=()=>{var e,t,i;b({type:"signin",isActive:!0,title1:null===(e=q.sh[p])||void 0===e?void 0:e.To_access_this_feature_please_sign_in,yesButton1:null===(t=q.sh[p])||void 0===t?void 0:t.Sign_In,yesButtonType:"primary",yesButtonTarget1:ea,noButton1:null===(i=q.sh[p])||void 0===i?void 0:i.Cancel,noButtontarget1:es,noButtonType:"secondary",close:!0,closeTarget:es})},ed=(e,t)=>{var i,l,a,n,r,d,c,u,v,h,_,y,f,x,j;t.preventDefault();let S=Q(),k=e.elementSubtype;if("Share"===k)b({type:"share",isActive:!0,targetpath:(0,s.mn)(D.asPath),img:"".concat(V.Z.logo),closeTarget:es,analyticsObj:S}),(0,Y.qP)("share",S);else if("watchnow"==k)(0,Y.qP)("play_button_clicked",S),(null==e?void 0:null===(i=e.properties)||void 0===i?void 0:i.isDeeplinking)==="true"?B("https://api-apac.revlet.net"+"/service/api/v1/page/deeplink?path=".concat(e.target)):D.push(e.target);else if("subscribe"===k)(null==e?void 0:null===(l=e.properties)||void 0===l?void 0:l.showPopUp)==="true"?b({type:"payment",isActive:(null==e?void 0:null===(a=e.properties)||void 0===a?void 0:a.showPopUp)==="true",topImg:(null==e?void 0:null===(n=e.properties)||void 0===n?void 0:n.showPopUp)==="true",topImgValue:"http://mobond.yuppcdn.net/cf1/static/slt/images/payment-failure.svg",title1:null==e?void 0:null===(r=e.properties)||void 0===r?void 0:r.title,title2:null==e?void 0:null===(d=e.properties)||void 0===d?void 0:d.subtitle,yesButtonTarget1:es,yesButton1:"Cancel",yesButtonType:"primary",close:!0,closeTarget:es}):(m({type:o.Nw.t3,payload:D.asPath}),D.push("/buy/packages-list"));else if("resume"==k)(0,Y.qP)("play_button_clicked",S),(null==e?void 0:null===(c=e.properties)||void 0===c?void 0:c.isDeeplinking)==="true"?B("https://api-apac.revlet.net"+"/service/api/v1/page/deeplink?path=".concat(e.target)):D.push(e.target);else if("startover"==k)(0,Y.qP)("play_button_clicked",S),(null==e?void 0:null===(u=e.properties)||void 0===u?void 0:u.isDeeplinking)==="true"?B("https://api-apac.revlet.net"+"/service/api/v1/page/deeplink?path=".concat(e.target)):(m({type:o.Nw.jr,payload:{startover:!0}}),D.push(e.target));else if("rent"==k){if(m({type:o.Nw.t3,payload:D.asPath}),!1===w){let e={type:"signin",isActive:!0,title1:null===(y=q.sh[p])||void 0===y?void 0:y.To_access_this_feature_please_sign_in,title2:null===(f=q.sh[p])||void 0===f?void 0:f.Sign_in_or_Join,yesButton1:null===(x=q.sh[p])||void 0===x?void 0:x.Sign_In,yesButtonType:"primary",yesButtonTarget1:ea,noButton1:null===(j=q.rL[p])||void 0===j?void 0:j.Sign_Up,noButtontarget1:eo,noButtonType:"secondary",close:!0,closeTarget:es};b(e)}else if((null===(_=g.e)||void 0===_?void 0:null===(h=_.packageSettings)||void 0===h?void 0:null===(v=h.paymentGateway)||void 0===v?void 0:v.typeOfPayment)=="internal"){let e=D.asPath.replace("/",""),t=new URLSearchParams({path:e,package_type:2,skip_package_content:!0}).toString(),i="".concat("https://api-apac.revlet.net").concat("/package/api/v1/","packages/info/for/content?").concat(t);U(i)}else m({type:o.Nw.t3,payload:D.asPath}),D.push({pathname:"/buy/packages-list",query:{_rent:D.asPath.slice(1)}})}else D.push(e.target)},ec=e=>{var t,i;if(void 0!=e&&""!=e){try{e=JSON.parse(e)}catch(e){}if((null===(t=e)||void 0===t?void 0:t.url)&&0!=e.url.length)return e.url;if(null===(i=e)||void 0===i?void 0:i.contentCode){let t=e.contentCode.includes("//")?e.contentCode.split("//")[1]:e.contentCode;return"https://".concat(t)}}};(0,a.useEffect)(()=>{var e,t,i;if(null==P?void 0:null===(e=P.data)||void 0===e?void 0:e.status){let e=h.isFavourite?2:1;h.isFavourite=1===e,y({...h}),(0,Y.qP)("favorite",Q()),m({type:o.Nw.o4,payload:{message:null==P?void 0:null===(i=P.data)||void 0===i?void 0:null===(t=i.response)||void 0===t?void 0:t.message}})}},[P]);let eu=()=>{if(w)try{let e=h.isFavourite?2:1,t="https://api-apac.revlet.net"+"/service/api/auth/user/favourite/item?path=".concat(D.asPath.slice(1),"&action=").concat(e);C(t)}catch(e){console.error("Error:",e)}else er()},ev=e=>{let{src:t}=e;return t},ep=()=>{k("")},em=()=>{(0,s.uG)().width<991&&ep()};return(0,l.jsxs)(l.Fragment,{children:[N&&(0,l.jsx)(en.Z,{}),(0,l.jsxs)("div",{className:"".concat(eT().tvshow_details_page),children:[E.enabled&&(0,l.jsx)(eD,{razorpayData:E.data,activePackage:W,paymentCancelled:()=>{A({enabled:!1,data:{}})}}),(0,l.jsx)("div",{className:"".concat(eT().gradient_mask)}),(0,l.jsx)("div",{className:"".concat(eT().gradient_mask2)}),!S&&(0,l.jsx)(_(),{fill:!0,className:"".concat(eT().image),loader:ev,src:(null==h?void 0:h.BgImage)?h.BgImage:V.Z.tvGuide.TvguideDefaultImg,alt:"bg"}),S&&(0,l.jsx)(x,{item:{imageUrl:null==h?void 0:h.BgImage,customClass:"tvShowTrailerimage"},streamPath:{streamUrl:S,imageUrl:null==h?void 0:h.BgImage,isbannerVideo:!0},streamEnd:ep}),h.partnerIcon&&(0,l.jsx)(_(),{fill:!0,loader:ev,className:"".concat(eT().partnerIcon),src:h.partnerIcon,alt:"image"}),(0,l.jsxs)("div",{className:"".concat(eT().mobile_info_top),children:[(0,l.jsx)("div",{className:"".concat(eT().gradient_mask)}),(0,l.jsx)("div",{className:"".concat(eT().gradient_mask2)}
1),(0,l.jsx)("button",{className:"".concat(eT().detailsBack),onClick:()=>D.back(),children:(0,l.jsx)("img",{src:"".concat(V.Z.tvShowDetails.helpBackArrow),alt:"back"})}),(0,l.jsx)("img",{className:"".concat(eT().img_responsive," ").concat(eT().abs_image," "),src:h.BgImage?h.BgImage:V.Z.tvGuide.TvguideDefaultImg})]}),(0,l.jsx)("div",{className:"container-fluid ".concat(eT().details),children:(0,l.jsxs)("div",{className:" ".concat(eT().details_left),children:[(0,l.jsxs)("div",{className:" ".concat(eT().details_header),children:[h.partnerIcon&&(0,l.jsx)(_(),{fill:!0,loader:ev,className:"".concat(eT().partnerIcon_mobile),src:h.partnerIcon,alt:"image"}),(0,l.jsx)("h1",{className:"".concat(eT().title),children:h.title}),(0,l.jsxs)("div",{className:"".concat(eT().subtitle),children:[(0,l.jsx)("span",{children:h.subtitle}),h.pgrating&&(0,l.jsxs)("span",{children:["\xa0 | \xa0",(0,l.jsx)("span",{className:"".concat(eT().pgrating),children:h.pgrating})]}),h.imdb&&(0,l.jsxs)("span",{children:["\xa0 | \xa0",(0,l.jsxs)("span",{className:"".concat(eT().imdb),children:[(0,l.jsx)("img",{src:"".concat(V.Z.tvShowDetails.imdb),alt:"IMDB"}),h.imdb]})]})]}),H.width<=767&&(0,l.jsx)(eI,{detailsObj:h,navigateTo:ed,addToFavourite:eu,shareDataSet:()=>{var e;b({type:"share",isActive:!0,targetpath:(0,s.mn)(D.asPath),img:"".concat(null===(e=g.e)||void 0===e?void 0:e.appLogo),closeTarget:es,analyticsObj:{...Q()}})},navigateToSignIn:ea}),h.description&&(0,l.jsx)("div",{className:"".concat(eT().descDiv),children:(0,l.jsx)(X.Z,{data:null==h?void 0:h.description,isDataTruncate:!0,customClass:eT().description,styles:eT()})}),h.castcrew&&(0,l.jsx)("div",{className:"".concat(eT().castDiv),children:(0,l.jsx)(eS.ZP,{children:(0,l.jsxs)("p",{className:"".concat(eT().casting),children:[(0,l.jsx)("span",{className:"".concat(eT().castTitle),children:q.sh[p].Cast_Crew+" :"}),h.castcrew]})})}),"true"==t&&(0,l.jsx)(T.Z,{sectionData:i,PageData:r})]}),H.width>767&&(0,l.jsx)(eI,{detailsObj:h,navigateTo:ed,addToFavourite:eu,navigateToSignIn:ea}),!!h.rentalinfo&&(0,l.jsxs)("p",{className:"".concat(eT().rent_info),children:[(0,l.jsx)("img",{src:"".concat(g.e.staticImagesPath,"pack-info-icon.svg"),alt:"Rentel Info"}),h.rentalinfo]})]})}),f.isActive&&"favourite"!=f.type&&"share"!=f.type&&(0,l.jsx)(eC,{popupData:f}),f.isActive&&"share"===f.type&&(0,l.jsx)(eP,{popupData:f})]})]})},eR=i(50598),eA=i.n(eR),eB=()=>{var e,t,i;let{state:{PageData:n}}=(0,o.oR)(),[s,r]=(0,a.useState)({}),[d,c]=(0,a.useState)([]),[u,v]=(0,a.useState)(0);(0,a.useEffect)(()=>{n&&p(n.tabsInfo)},[n]);let p=e=>{for(let t=0;t<e.tabs.length;t++)if(e.tabs[t].code===e.selectedTab){v(t);break}r({...e}),c(n.data.filter(e=>"section"===e.paneType))},m={padding:"0 55px","& button":{alignItems:"flex-start",color:"#858585"},["& .".concat(F.Z.scrollButtons)]:{"&.Mui-disabled":{opacity:.3}},customTabsStyle:{"& .MuiTabScrollButton-root:first-child::before":{content:"'L'"},"& .MuiTabScrollButton-root:last-child::after":{content:"'R'"}}};return(0,l.jsxs)("div",{className:"tabsHome ".concat(eA().tabsHome," ").concat((null==n?void 0:null===(e=n.info)||void 0===e?void 0:e.pageType)=="details"&&(null==n?void 0:null===(i=n.info)||void 0===i?void 0:null===(t=i.attributes)||void 0===t?void 0:t.contentType)=="contentchannel"&&"".concat(eA().noDetails)),children:[(null==s?void 0:s.tabs)&&(0,l.jsx)(O.Z,{className:"".concat(eA().tabsInner1),orientation:"horizantal",variant:"scrollable",onChange:(e,t)=>
1{v(t)},value:u,sx:m,TabIndicatorProps:{sx:{left:"0",backgroundColor:"$primary.color"}},children:null==s?void 0:s.tabs.map((e,t)=>(0,l.jsx)(U.Z,{label:u==t?(0,l.jsx)("h1",{style:{fontSize:"0.875rem",fontWeight:"normal"},className:eA().activeTab,children:e.title}):(0,l.jsx)(l.Fragment,{children:e.title}),className:"tabs_btn support"},t))}),(0,l.jsx)("div",{children:d&&d.map((e,t)=>(0,l.jsx)("div",{className:"".concat(eA().tabsInner,"  ").concat(u==t?"".concat(eA().active):"".concat(eA().inactive)),children:(0,l.jsx)(M,{gridData:e})},t))})]})},eM=i(78892),eZ=i.n(eM),eL=i(45108),eU=i.n(eL),eF=()=>{let{state:{PageData:e,userDetails:t}}=(0,o.oR)(),[i,n]=(0,a.useState)({});(0,a.useEffect)(()=>{s()},[e]);let s=()=>{var t;let i={};null==e||null===(t=e.data)||void 0===t||t.map(e=>{var t,l,a;(null==e?void 0:e.paneType)==="content"&&(null==e||null===(a=e.content)||void 0===a||null===(l=a.dataRows[0])||void 0===l||null===(t=l.elements)||void 0===t||t.map(e=>{(null==e?void 0:e.elementSubtype)==="bgImage"&&(i.bgImage=(0,c.ZY)(e.data)),(null==e?void 0:e.elementSubtype)==="title"&&(i.title=e.data)}))}),n(i)};return(0,l.jsx)("div",{className:"".concat(eU().network_details),children:(0,l.jsx)("img",{className:" ".concat(eU().image),src:i.bgImage,onError:e=>{let{currentTarget:t}=e;t.onerror=null,t.src="".concat(V.Z.defaultdetails)}})})},eO=i(35107),eq=i(99328),eV=i.n(eq),eJ=i(6514),eW=e=>{var t;let{onClose:i}=e,{state:{SystemConfig:n}}=(0,o.oR)(),[s,r]=(0,a.useState)(),[d,c]=(0,a.useState)(!0),[u,v]=(0,a.useState)(),[p,m]=(0,a.useState)(24);(0,a.useEffect)(()=>{var e,t;window.addEventListener("resize",h),h();let i=JSON.parse((null==n?void 0:null===(e=n.configs)||void 0===e?void 0:e.interstitialStaticPopup)?null==n?void 0:null===(t=n.configs)||void 0===t?void 0:t.interstitialStaticPopup:"");r(i);let l=3600*p;(null==i?void 0:i.frequency)==="app-launch"&&(l=21600);let a=(null==i?void 0:i.popupFrequencyIntervalInSecs)?null==i?void 0:i.popupFrequencyIntervalInSecs:l;return(0,ei.LS)("socialpop",Math.floor(Date.now()/1e3)+a),()=>{window.removeEventListener("resize",h)}},[n]);let h=()=>{v(_())},_=()=>({width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}),y=(e,t)=>{"true"===t||!0===t?window.open(e,"_self"):window.open(e,"_blank")},f=e=>({background:e.backgroundColor,color:e.titleColor});return(0,l.jsx)("div",{children:(0,l.jsx)(ed.Z,{open:d,"aria-labelledby":"responsive-dialog-title",className:"promotional_modal_dialog ",PaperProps:{sx:{overflow:"hidden"}},children:(0,l.jsx)(eJ.Z,{sx:{overflow:"hidden",p:0},children:(0,l.jsxs)("div",{className:" ".concat(eV().promotional_popup),children:[(0,l.jsx)("img",{className:"".concat(eV().banner),alt:"Giri Bapu Ji",src:(null==u?void 0:u.width)>990?null==s?void 0:s.backGroundImagePathWeb:null==s?void 0:s.backGroundImagePathMobile},(null==u?void 0:u.width)>990?"webImg":"Mobile Img"),(0,l.jsx)("button",{className:"".concat(eV().close_icon),onClick:()=>{i()},children:(0,l.jsx)("img",{src:"".concat(g.e.staticImagesPath,"lan-popup-close.png"),alt:"lang_close"})}),(0,l.jsx)("div",{className:"".concat(eV().confirmation),onClick:()=>(null==s?void 0:s.targetPath)&&y(null==s?void 0:s.targetPath,null==s?void 0:s.isInternal),children:(0,l.jsxs)("div",{className:"".concat(eV().socialPopup),children:[(0,l.jsxs)("h1",{className:"".concat(eV().title),children:[null==s?void 0:s.title," "]}),(null==u?void 0:u.width)>990&&(0,l.jsxs)("h3",{className:"sub_title",children:[null==s?void 0:s.subtitle," "]}),(0,l.jsx)("div",{className:"".concat(eV().social_media),children:null==s?void 0:null===(t=s.buttons)||void 0===t?void 0:t.map((e,t)=>(0,l.jsxs)(l.Fragment,{children:[(0,l.jsx)("img",{width:"42",src:e.imagePath}),(null==u?void 0:u.width)>=990?(0,l.jsx)("button",{onClick:()=>y(null==e?void 0:e.targetPath,e.isInternal),style:f(e),children:null==e?void 0:e.titleWeb}):(0,l.jsx)("button",{onClick:()=>y(null==e?void 0:e.targetPath,e.isInternal),style:f(e),children:null==e?void 0:e.title})]}))}),(null==u?void 0:u.width)<991&&(0,l.jsx)("h3",{className:"".concat(eV().sub_title),children:null==s?void 0:s.subtitle})]})})]})})})})},eG=e=>{var t,i,c,u,v,p,m,h,_,y;let{state:{SystemFeature:f,SystemConfig:b,PageRefresh:w,userDetails:x,localLang:j},dispatch:S}=(0,o.oR)(),[N,I]=(0,a.useState)({}),[C,P]=(0,a.useState)({}),[E,R]=(0,a.useState)({}),[A,B]=(0,a.useState)(null),[Z,L]=(0,a.useState)({}),{mutate:U,data:F,isLoading:O,isError:V,error:J,refetch:W}
1=(0,d.Z)(),{mutate:G,data:H,isLoading:K}=(0,d.Z)(),[z,Y]=(0,a.useState)(!1),X=(0,n.useRouter)(),Q=X.asPath.replace("/","");(0,a.useEffect)(()=>{let e=X.asPath;I({path:(0,s.mn)(e),query:(0,s.vl)(e)}),ee((0,s.mn)(e)),et()},[X.asPath,b,f]),(0,a.useEffect)(()=>{!0==w&&(ee((0,s.mn)(X.asPath)),S({type:o.Nw.ls,payload:!1}))},[w]),(0,a.useEffect)(()=>{var e,t,i,l,a,n,s,d,c,u,v,p,m,h,_,y,g,f,w,x,j,k,T,N,I,C,D,E,A,M,Z,U,O,q,V,J,W,G,H,K;(null==F?void 0:F.data)&&(S({type:o.Nw.mY,payload:null}),(null==F?void 0:null===(e=F.data)||void 0===e?void 0:e.status)?(null==F?void 0:null===(l=F.data)||void 0===l?void 0:null===(i=l.response)||void 0===i?void 0:null===(t=i.errorResponse)||void 0===t?void 0:t.code)===404||(null==F?void 0:null===(s=F.data)||void 0===s?void 0:null===(n=s.response)||void 0===n?void 0:null===(a=n.errorResponse)||void 0===a?void 0:a.code)===-4||(null==F?void 0:null===(u=F.data)||void 0===u?void 0:null===(c=u.response)||void 0===c?void 0:null===(d=c.errorResponse)||void 0===d?void 0:d.code)===-113?(P({}),S({type:o.Nw.dt,payload:{}}),(null==F?void 0:null===(p=F.data)||void 0===p?void 0:null===(v=p.response)||void 0===v?void 0:v.errorResponse)&&(Q==b.configs.favouritesTargetPath?B({message:"",code:"-2022"}):(null==F?void 0:null===(h=F.data)||void 0===h?void 0:null===(m=h.response)||void 0===m?void 0:m.data.length)===0?B({message:"",code:"-1"}):Q==(null==b?void 0:null===(_=b.configs)||void 0===_?void 0:_.myPurchasesTargetPathWeb)?B({message:"",code:"-2023"}):B({message:null==F?void 0:null===(g=F.data)||void 0===g?void 0:null===(y=g.response)||void 0===y?void 0:y.errorResponse.message,code:""+(null==F?void 0:null===(w=F.data)||void 0===w?void 0:null===(f=w.response)||void 0===f?void 0:f.errorResponse.code)}))):(P({...null==F?void 0:null===(x=F.data)||void 0===x?void 0:x.response}),S({type:o.Nw.dt,payload:null==F?void 0:null===(j=F.data)||void 0===j?void 0:j.response}),(null==F?void 0:null===(N=F.data)||void 0===N?void 0:null===(T=N.response)||void 0===T?void 0:null===(k=T.info)||void 0===k?void 0:k.pageType)=="list"&&R((null==F?void 0:null===(Z=F.data)||void 0===Z?void 0:null===(M=Z.response)||void 0===M?void 0:M.data.filter(e=>"section"===e.paneType&&e.section.sectionData.data.length))[0]),(null==F?void 0:null===(D=F.data)||void 0===D?void 0:null===(C=D.response)||void 0===C?void 0:null===(I=C.tabsInfo)||void 0===I?void 0:I.showTabs)==!0&&L((null==F?void 0:null===(O=F.data)||void 0===O?void 0:null===(U=O.response)||void 0===U?void 0:U.data.filter(e=>"section"===e.paneType&&e.contentCode))[0]),(null==F?void 0:null===(A=F.data)||void 0===A?void 0:null===(E=A.response)||void 0===E?void 0:E.data.length)===0&&B({message:"",code:"-1"})):(P({}),S({type:o.Nw.dt,payload:{}}),(null==F?void 0:null===(q=F.data)||void 0===q?void 0:q.error)&&(null==F?void 0:null===(J=F.data)||void 0===J?void 0:null===(V=J.error)||void 0===V?void 0:V.code)===401?(0,r.qP)():B({message:null==F?void 0:null===(G=F.data)||void 0===G?void 0:null===(W=G.error)||void 0===W?void 0:W.message,code:""+(null==F?void 0:null===(K=F.data)||void 0===K?void 0:null===(H=K.error)||void 0===H?void 0:H.code)})))},[F]),(0,a.useEffect)(()=>{var e,t,i,l,a,n,s,d,c,u,v,p,m,h,_,y,g,f,b,w;if(null==H?void 0:H.data){if(S({type:o.Nw.mY,payload:null}),null==H?void 0:null===(e=H.data)||void 0===e?void 0:e.status){if((null==H?void 0:null===(l=H.data)||void 0===l?void 0:null===(i=l.response)||void 0===i?void 0:null===(t=i.errorResponse)||void 0===t?void 0:t.code)===404||(null==H?void 0:null===(s=H.data)||void 0===s?void 0:null===(n=s.response)||void 0===n?void 0:null===(a=n.errorResponse)||void 0===a?void 0:a.code)===-4||(null==H?void 0:null===(u=H.data)||void 0===u?void 0:null===(c=u.response)||void 0===c?void 0:null===(d=c[0])||void 0===d?void 0:d.data.length)==0)P({}),S({type:o.Nw.dt,payload:{}}),B({message:"",code:"-2022"});else{let e={data:[{paneType:"section",section:{sectionData:null==H?void 0:null===(v=H.data)||void 0===v?void 0:v.response[0],sectionInfo:{name:null===(p=q.cP[j])||void 0===p?void 0:p.My_Watchlist}}}],info:{pageType:"list"}};P(e),S({type:o.Nw.dt,payload:e}),(null==e?void 0:null===(m=e.info)||void 0===m?void 0:m.pageType)=="list"&&R(null==e?void 0:e.data[0])}}else P({}),S({type:o.Nw.dt,payload:{}}),(null==H?void 0:null===(h=H.data)||void 0===h?void 0:h.error)&&(null==H?void 0:null===(y=H.data)||void 0===y?void 0:null===(_=y.error)||void 0===_?void 0:_.code)===401?(0,r.qP)():B({message:null==H?void 0:null===(f=H.data)||void 0===f?void 0:null===(g=f.error)||void 0===g?void 0:g.message,code:""+(null==H?void 0:null===(w=H.data)||void 0===w?void 0:null===(b=w.error)||void 0===b?void 0:b.code)})}},[H]),(0,a.useEffect)(()=>{!0==V&&(P({}),S({type:o.Nw.dt,payload:{}}),B({message:"Something went wrong, Please check the network connection",code:"5000"}))},[V]);let ee=async e=>{var t,i;if(!b||e.includes("[..."))return;if(P({}),B(null),(null===(t=g.e)||void 0===t?void 0:t.isOldFavourite)&&(null==b?void 0:null===(i=b.configs)||void 0===i?void 0:i.favouritesTargetPath)==e){G("".concat("https://api-apac.revlet.net","/service/api/auth/user/favourites/list"));return}let l="https://api-apac.revlet.net/service/api/v1/page/content?"+(0,s.Yo)({path:"/"!=e&&""!=e&&e?e:"home",count:40});try{U(l)}catch(e){}},et=()=>{var e;if(null==b?void 0:null===(e=b.configs)||void 0===e?void 0:e.interstitialStaticPopup){let e=(0,ei.rV)("socialpop");e=parseInt(e,10);let t=Math.floor(Date.now()/1e3),i=X.asPath;(""==(i=(0,s.mn)(i))||"home"==i)&&(!(0,ei.rV)("socialpop")||e<t)&&Y(!0)}},el=()=>{Y(!1)};return O||K?(0,l.jsx)("div",{children:(0,l.jsx)(D.Z,{pagePath:N.path})}):A?(0,l.jsx)(eO.Z,{detailsInfo:A}):(0,l.jsxs)("div",{className:"".concat(eZ().dynamicMain),children:[(null==C?void 0:null===(t=C.info)||void 0===t?void 0:t.pageType)==="content"&&(0,l.jsxs)("div",{children:[(0,l.jsx)(k,{bannerslist:null==C?void 0:C.banners}),(0,l.jsx)("div",{className:(null==C?void 0:C.banners.length)===0?"".concat(eZ().no_banners):"",children:(0,l.jsx)(T.Z,{})})]}),(null==C?void 0:null===(i=C.info)||void 0===i?void 0:i.pageType)==="list"&&(0,l.jsxs)("div",{children:[(0,l.jsx)(k,{bannerslist:null==C?void 0:C.banners}),(0,l.jsx)("div",{className:"".concat(eZ().listGrid),children:(0,l.jsx)(M,{gridData:E})})]}),(null==C?void 0:null===(c=C.info)||void 0===c?void 0:c.pageType)==="player"&&(0,l.jsxs)("div",{children:[(0,l.jsx)(k,{bannerslist:null==C?void 0:C.banners}),(0,l.jsx)(ej,{}),(0,l.jsx)("div",{className:"".concat(eZ().playerBottomSections),children:(0,l.jsx)(T.Z,{})})]}),(null==C?void 0:null===(u=C.info)||void 0===u?void 0:u.pageType)==="details"&&(0,l.jsxs)("div",{children:[(0,l.jsx)(k,{bannerslist:null==C?void 0:C.banners}),(null==C?void 0:null===(p=C.info)||void 0===p?void 0:null===(v=p.attributes)||void 0===v?void 0:v.contentType)=="network"?(0,l.jsx)(eF,{}):(null==C?void 0:null===(h=C.info)||void 0===h?void 0:null===(m=h.attributes)||void 0===m?void 0:m.contentType)=="contentchannel"?(0,l.jsx)(l.Fragment,{}):(0,l.jsx)(eE,{}),(null==C?void 0:null===(_=C.tabsInfo)||void 0===_?void 0:_.showTabs)&&(0,l.jsx)(eB,{}),!(null==C?void 0:null===(y=C.tabsInfo)||void 0===y?void 0:y.showTabs)&&(0,l.jsx)("div",{className:eZ().sectionTvShow,children:(0,l.jsx)(T.Z,{sectionData:null==C?void 0:C.data,PageData:C})})]}),z&&(0,l.jsx)(eW,{onClose:()=>el()})]})},eH=i(31615),eK=!0;function ez(e){let{seodata:t}=e;return(0,l.jsxs)(l.Fragment,{children:[t&&(0,l.jsx)(eH.Z,{seodata:t}),(0,l.jsx)(eG,{})]})}},54999:function(e){e.exports={primaryColor:"#e11c1b",whiteColor:"#fff",bodyColor:"#141414",banner_cont:"SlickBanners_banner_cont__XI2fn",banners_wrap:"SlickBanners_banners_wrap__CbRqN",swiper:"SlickBanners_swiper__dvtg4",img_responsive:"SlickBanners_img_responsive__EIwuM",img_aplyZIndex:"SlickBanners_img_aplyZIndex__IXNUW",JWPlayers_parent:"SlickBanners_JWPlayers_parent__4_E8e",imgContainer:"SlickBanners_imgContainer__Ylb_8",prev:"SlickBanners_prev__AXvxP",next:"SlickBanners_next__QUeJO",customPaginationClass:"SlickBanners_customPaginationClass__xTuKv",videoCustomPaginationClass:"SlickBanners_videoCustomPaginationClass__8gXuW",player_mute:"SlickBanners_player_mute__Q24sz",tvShowTrailerimage:"SlickBanners_tvShowTrailerimage__Dpjd6",marquee_container:"SlickBanners_marquee_container__P3j_5"}},78892:function(e){e.exports={primaryColor:"#e11c1b",whiteColor:"#fff",bodyColor:"#141414",dynamicMain:"dynamic_dynamicMain__zkUnU",playerBottomSections:"dynamic_playerBottomSections__ZEjVZ",listGrid:"dynamic_listGrid__VuBdi",sectionTvShow:"dynamic_
1sectionTvShow__9a5GP"}},15111:function(e){e.exports={primaryColor:"#e11c1b",whiteColor:"#fff",bodyColor:"#141414",listHome:"grid_listHome__Z_nDc",listTitle:"grid_listTitle__bg3xb",favBtnEdit:"grid_favBtnEdit__Q75U4",listItems:"grid_listItems__0yLK0",cardItem:"grid_cardItem__dT0n6",listTitleBox:"grid_listTitleBox__gUoez",back:"grid_back__7sAOa",gridAd:"grid_gridAd__AZmhv"}},19269:function(e){e.exports={primaryColor:"#e11c1b",whiteColor:"#fff",bodyColor:"#141414",page_loader:"loader_page_loader__F3T2W",icon:"loader_icon__ZnJXA",spin:"loader_spin__WhEv_",btn_loader:"loader_btn_loader__jC8_k"}},45108:function(e){e.exports={primaryColor:"#e11c1b",whiteColor:"#fff",bodyColor:"#141414",network_details:"networkDetails_network_details__MIA_P"}},93566:function(e){e.exports={primaryColor:"#e11c1b",whiteColor:"#fff",bodyColor:"#141414",removeMarginTop:"player_removeMarginTop__uil0_",player_left_ad:"player_player_left_ad__zuU1e",player_right_ad:"player_player_right_ad__x6jZ9",playerHome:"player_playerHome__asTHw",playerFixed:"player_playerFixed__FmKYX",playerSection:"player_playerSection__TtBui",preview_timer:"player_preview_timer__d8Nnz",playerDesMain:"player_playerDesMain__LtTW_",title:"player_title__HOwYR",description:"player_description__EBUXN",subtitle:"player_subtitle__ulkBc",cast_crew:"player_cast_crew__3wTKT",player_data:"player_player_data__4ScIT",channel_desc:"player_channel_desc__1xbQ8",headerTitle:"player_headerTitle__JmLFm",channel_logo:"player_channel_logo__8vUNO",player_desc_left:"player_player_desc_left__Vc9dx",pgrating:"player_pgrating__MpHKL",player_desc_right:"player_player_desc_right__YnhP3",button:"player_button__c1c1_",fancy_tool_tip:"player_fancy_tool_tip__RTqtQ",share:"player_share__SkN7v",divider:"player_divider__whoKf",fav:"player_fav__i9Un5",channel_desc_new:"player_channel_desc_new__0JKve",readMore:"player_readMore__fdDbU",playerLeft:"player_playerLeft__xouK8",back_btn:"player_back_btn__5bhtp",playerRight:"player_playerRight__hXDcI",playerSuggestionsMain:"player_playerSuggestionsMain__J_hib",tabs:"player_tabs__77ze3",tabsData:"player_tabsData__rF_GO",active:"player_active__TSyWG",inactive:"player_inactive__In3Dw",content:"player_content__yZcK7",card_row:"player_card_row__MtgVL",overlay_poster_right:"player_overlay_poster_right__oGshh",overlay_poster_left:"player_overlay_poster_left__B1s3C",badge_marker:"player_badge_marker__crSsF",left:"player_left__Bx2VP",overlay_poster_mobile_grid:"player_overlay_poster_mobile_grid__GnsF_",card_info:"player_card_info__ZIRMX",live_marker:"player_live_marker__9SpB0",subTitle:"player_subTitle__IJcQ1",live_heart:"player_live_heart__eemQH",player_buttons:"player_player_buttons___3NIW",start_over:"player_start_over__lt2di",playerBack:"player_playerBack___5kxg",next_episode:"player_next_episode__RqACI",errorSec:"player_errorSec__kFa2_",player:"player_player__M2bNr",sessionClosed:"player_sessionClosed__HWXhS",sessionClosedText:"player_sessionClosedText___P3JV",errBack:"player_errBack__G2lgZ",forwardIcon:"player_forwardIcon__Z8iwL",tooltip:"player_tooltip__Ic9L2",frd_icon_hide:"player_frd_icon_hide__g5G0p",frd_icon:"player_frd_icon__ZOnR0",hello:"player_hello__1F_Uk",nextVideoContainer:"player_nextVideoContainer__l6HDG",nxtLeft:"player_nxtLeft__PooYF",playButton:"player_playButton__Ti06e",playButtonText:"player_playButtonText__nitFf",loading:"player_loading__NiR0Y",innerShadow:"player_innerShadow__iXT3R",nxtRight:"player_nxtRight__QEhQ9",bgImg:"player_bgImg__xcq2T",castDetails:"player_castDetails__oKCHn",adsStreamContainer:"player_adsStreamContainer__zMByT"}},99328:function(e){e.exports={primaryColor:"#e11c1b",whiteColor:"#fff",bodyColor:"#141414",promotional_popup:"promotional-popup_promotional_popup__eaxhP",banner:"promotional-popup_banner__To_dM",close_icon:"promotional-popup_close_icon__kAYmp",confirmation:"promotional-popup_confirmation__YzTMD",close:"promotional-popup_close__plmI_",btn_row:"promotional-popup_btn_row__TPutW",btn:"promotional-popup_btn__EFdjY","btn-border":"promotional-popup_btn-border__yUtz3",showimage:"promotional-popup_showimage__xU9y0",success:"promotional-popup_success__Yj_dO",failure:"promotional-popup_failure__lDR03","popup-confirm":"promotional-popup_popup-confirm__9SlTW",socialPopup:"promotional-popup_socialPopup__uV3MB",social_media:"promotional-popup_social_media__LY3UQ"}},67058:function(e){e.exports={primaryColor:"#e11c1b",whiteColor:"#fff",bodyColor:"#141414",tvshow_details_page:"tvshowDetail
1s_tvshow_details_page__HyGCn",detailsBack:"tvshowDetails_detailsBack__ZlZWl",partnerIcon:"tvshowDetails_partnerIcon__4HGDB",image:"tvshowDetails_image__kwW_P",gradient_mask:"tvshowDetails_gradient_mask__6UAPG",gradient_mask2:"tvshowDetails_gradient_mask2__o9b5R",details:"tvshowDetails_details__B4nJN",details_left:"tvshowDetails_details_left__trw39",details_header:"tvshowDetails_details_header__RK0Bd",partnerIcon_mobile:"tvshowDetails_partnerIcon_mobile__7II43",title:"tvshowDetails_title__IdEC0",subtitle:"tvshowDetails_subtitle__XOOiR",subtitle_text:"tvshowDetails_subtitle_text__HibN5",pgrating:"tvshowDetails_pgrating__TyPdp",imdb:"tvshowDetails_imdb__LVU_A",descDiv:"tvshowDetails_descDiv__Knbah",description:"tvshowDetails_description__DQYRA",readMore:"tvshowDetails_readMore__Cwiom",castDiv:"tvshowDetails_castDiv__bdSsA",casting:"tvshowDetails_casting__gCK8k",mobile_share_controls:"tvshowDetails_mobile_share_controls__s5yjN",buttons:"tvshowDetails_buttons__Y1rWZ",line:"tvshowDetails_line__AJxf_",resume_now_mobile:"tvshowDetail
1s_resume_now_mobile__xV2E_",actions:"tvshowDetails_actions__ZY5K3",signin:"tvshowDetails_signin__b_gE4",rent:"tvshowDetails_rent__usWnQ",trailer:"tvshowDetails_trailer__qFzj4",trailer_image:"tvshowDetails_trailer_image__1AzzJ",watchnow:"tvshowDetails_watchnow__q3TKK",resume:"tvshowDetails_resume__XO76B",startover:"tvshowDetails_startover__nAmuW",fav1:"tvshowDetails_fav1__n_aB6",active_fav_icon:"tvshowDetails_active_fav_icon__Tiy7Z",fav_icon:"tvshowDetails_fav_icon___3cPr",fancy_tool_tip:"tvshowDetails_fancy_tool_tip__Fk_gR",fav2:"tvshowDetails_fav2__gT0EC",share:"tvshowDetails_share__vAhKy",mobile:"tvshowDetails_mobile__LgE_3",expiry_info:"tvshowDetails_expiry_info__XHfGm",time_stamp:"tvshowDetails_time_stamp__ty_Xy",rent_info:"tvshowDetails_rent_info__bdzR4",mobile_info_top:"tvshowDetails_mobile_info_top__tl7Jo",overlay_info:"tvshowDetails_overlay_info__nG2hs",main_title:"tvshowDetails_main_title__iASbo",type_subtitle:"tvshowDetails_type_subtitle__Vb6RT",abs_image:"tvshowDetails_abs_image__vZ1w_",seekBarResume:"tvshowDetail
1s_seekBarResume__PWK8q",seek_bar:"tvshowDetails_seek_bar__8f8r1",seek_position:"tvshowDetails_seek_position__VrCtY"}},50598:function(e){e.exports={primaryColor:"#e11c1b",whiteColor:"#fff",bodyColor:"#141414",tabsHome:"tvshowtabs_tabsHome__OdRJo",tabsInner:"tvshowtabs_tabsInner__WFiJU",active:"tvshowtabs_active__ylMUa",inactive:"tvshowtabs_inactive__780lZ",noDetails:"tvshowtabs_noDetails__xXbzd",tabsInner1:"tvshowtabs_tabsInner1__OC59n",activeTab:"tvshowtabs_activeTab__VdsJr"}},48524:function(e){e.exports={primaryColor:"#e11c1b",whiteColor:"#fff",bodyColor:"#141414",modal_popup:"verify-otp-popup_modal_popup__Aykt2",main_modal:"verify-otp-popup_main_modal___qgWV",modal_size:"verify-otp-popup_modal_size__Ru2wj",title:"verify-otp-popup_title__SZ2gP",cross_icon:"verify-otp-popup_cross_icon__xJuq3",updateEmail_cont:"verify-otp-popup_updateEmail_cont__gRMVP",title_inner:"verify-otp-popup_title_inner__bJuWO",popup_title:"verify-otp-popup_popup_title__7B0j2",p_title:"verify-otp-popup_p_title__4G054",sub_heading:"verify-otp-popup_sub_heading__oUlOH",forgot:"verify-otp-popup_forgot__Y7YfC",valid_error:"verify-otp-popup_valid_error__Rrs0j",inline:"verify-otp-popup_inline__4rEYU",mobileNumber:"verify-otp-popup_mobileNumber__YvbhJ",has_country_code:"verify-otp-popup_has_country_code__1vdZd",text_danger1:"verify-otp-popup_text_danger1__tPpo_",button:"verify-otp-popup_button__fHzwO"}}}]);

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.