1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1196],{46034:function(e,t,i){"use strict";i.r(t);var n=i(85893),l=i(67294),a=i(90217),o=i.n(a),s=i(4975),r=i(73484),d=i(11163),c=i(6437),u=i(25675),v=i.n(u);t.default=()=>{let{state:{PageData:e,navigateFrom:t},dispatch:i}=(0,s.oR)(),[a,u]=(0,l.useState)({});function getImagePath(e){try{return e?(0,r.ZY)(e):""}catch(e){}}let detailObject=()=>{let t={};e.data.map(e=>{if("content"===e.paneType){var i,n,l,a,o,s,r;(null==e?void 0:null===(l=e.content)||void 0===l?void 0:null===(n=l.dataRows)||void 0===n?void 0:null===(i=n[0])||void 0===i?void 0:i.elements.length)>0&&(null==e||null===(r=e.content)||void 0===r||null===(s=r.dataRows)||void 0===s||null===(o=s[0])||void 0===o||null===(a=o.elements)||void 0===a||a.map(e=>{"bgImage"===e.elementSubtype&&(t.backgroundImage=getImagePath(e.data)),"artistImage"===e.elementSubtype&&(t.artistImage=getImagePath(e.data)),"title"===e.elementSubtype&&(t.title=e.data),"subtitle"===e.elementSubtype&&(t.subtitle=e.data)}))}}),u(t)};(0,l.useEffect)(()=>{detailObject()},[e]);let p=(0,d.useRouter)(),onback=()=>{p.back()};return(0,n.jsxs)("div",{className:"".concat(o().content_partner_section),children:[(0,n.jsx)("img",{onClick:onback,className:"".concat(o().backArrow),src:"".concat(c.Z.mobileHeader.artistBackImg),alt:"Back Icon"}),(0,n.jsx)("img",{onClick:onback,className:"".concat(o().backArrow," ").concat(o().mobile),src:"".concat(c.Z.mobileHeader.leftArrow),alt:"Back Icon"}),(0,n.jsxs)("div",{className:"".concat(o().partner_banner),children:[(0,n.jsx)("div",{className:"".concat(o().artist_details_background),children:(null==a?void 0:a.backgroundImage)&&(0,n.jsx)(v(),{className:" ".concat(o().desktop_background_image),alt:null==a?void 0:a.title,src:getImagePath(a.backgroundImage),fill:!0,onError:e=>{let{currentTarget:t}=e;t.onerror=null,t.srcset="".concat(c.Z.defaultbanner)}})}),(0,n.jsxs)("div",{className:"".concat(o().artist_details),children:[(0,n.jsx)("img",{src:getImagePath(null==a?void 0:a.artistImage),alt:"partner_bannr"}),(0,n.jsxs)("div",{className:"".concat(o().detailsText),children:[(0,n.jsx)("h2",{className:"".concat(o().title),children:null==a?void 0:a.title}),(0,n.jsx)("p",{children:null==a?void 0:a.subtitle})]})]})]})]})}},335:function(e,t,i){"use strict";var n=i(85893),l=i(67294),a=i(94313);t.Z=e=>{let{data:t,isDataTruncate:i,customClass:o,styles:s}=e,[r,d]=(0,l.useState)(!1);return(0,n.jsx)("div",{className:o,onClick:()=>{d(!r)},dangerouslySetInnerHTML:(()=>
1{if(!t)return{__html:""};if((0,a.FP)(t))return{__html:t};let e=i?r?t:t.length>220?t.slice(0,220)+"... ":t:t;return{__html:e+(t.length>220&&i?'<span class="'.concat(s.readMore,'">').concat(r?" Show Less":" Read More","</span>"):"")}})()})}},80425:function(e,t,i){"use strict";var n=i(85893),l=i(50181),a=i.n(l);t.Z=e=>{let{type:t}=e;if("button"==t)return(0,n.jsx)("div",{className:"".concat(a().btn_loader),children:(0,n.jsx)("div",{className:"".concat(a().icon)})})}},44341:function(e,t,i){"use strict";i.d(t,{Z:function(){return l}});let n="https://d3pzsvccentnu6.cloudfront.net/images/",l={logo:"/logo.png",mobilelogo:"/logo.png",defaultbanner:n+"default-banner.png",defaultdetails:n+"default-details.png",defaultMoviePoster:n+"default-movie-poster.png",lazyimage16x9:n+"default-details.png",goldlogo:n+"logo-gold.png",defaultProfilePic:n+"profile-pic1.svg",bottomLayout:{favoriteActive:n+"watchlist-selected.svg",favorite:n+"watchlist-white.svg",share:n+"share-white.svg"},card:{favoriteActive:n+"watchlist-selected.svg",favorite:n+"watchlist-white.svg",share:n+"share-white.svg",watchlistSelected:n+"watchlist-selected.svg",watchlistWhite:n+"watchlist-white.svg",shareWhite:n+"share-white.svg",premiumWhite:n+"premium_tick_white.svg"},changePassword:{arrowBack:n+"arrow-back.svg",leftArrow:n+"leftarrow_circle.png"},footer:{androidTv:n+"multi-device-android-tv.svg",fireTv:n+"multi-device-fire-tv.svg",lGTv:n+"multi-device-lg.svg",samsungTv:n+"multi-device-samsung.svg",appleTv:n+"multi-device-apple-tv.svg",rokuTv:n+"multi-device-roku-tv.svg",iosDevice:n+"multi-device-ios-2-new.svg",androidDevice:n+"multi-device-android-mobile-new.svg",lgtv:n+"LG.svg",samsungtv:n+"Samsung.svg"},socialIcons:{facebook:n+"ott-facebook-follow.svg",instagram:n+"ott-instagram-follow.svg",twitter:n+"share-twitter-follow-new.svg",youtube:n+"ott-youtube-follow.svg",linkedin:n+"linked-in.svg",pintrest:n+"share-pintrest-follow.svg",whatsapp:n+"whatsapp.png"},sharePopUp:{facebook:n+"share-facebook-follow.svg",twitter:n+"share-twitter-follow.png",linkedin:n+"share-linkedin-follow.svg",pintrest:n+"share-pintrest-follow.svg",whatsapp:n+"whatsapp.png"},desktopHeader:{headerFilter:n+"header-filter.svg",languageSelectionIcon:n+"language-selection-icon.svg",languagePrimarycolorIcon:n+"language-selection-hover-icon.svg",headerAbout:n+"header-about.svg",lockIcon:n+"lock-icon.svg",headerMailSupport:n+"header-support-mail.svg",searchIcon:n+"search-icon.svg",profileImage:n+"profile-pic1.svg",content_lag_tal:n+"content_lag_tal.png",content_lag_tel:n+"content_lag_tel.png",language_circle:n+"language_circle.svg",search_circle:n+"search_circle.svg",search_img:n+"bottom-menu-search-default.svg",language_hover:n+"language-selection-hover-icon.svg",search_hover:n+"bottom-menu-search-hover.svg"},mobileHeader:{searchIcon:n+"search-icon.svg",leftArrow:n+"leftarrow_circle.png",close_btn:n+"close_btn.svg"},PageLoader:{loader:n+"loadingicon.png"},mbDwnldHeader:{closeIcon:n+"lan-popup-close.png",appStore:n+"app_store.svg",playStore:n+"google_play.svg"},myAccount:{helpBackArrow:n+"help-back-arrow.svg",defaultProfilePic:n+"profile-pic1.svg",lockIcon:n+"lock-icon.svg",userProfilePic:n+"user-profile-pic1.svg",searchIcon:n+"search-icon.svg"},checkOut:{payLock:n+"pay-lock.png"},payments:{paymentSuccess:n+"payment-success-n.svg",adfree:n+"add-free-limited-adds-icon.png",gift:n+"gift_icon.png"},pageNotFound:{noFavourites:n+"no-fav.svg",emptyCart:n+"empty-cart.png",back:n+"back-arrow.svg",errorImage:n+"error-img.svg"},jwPlayer:{helpBackArrow:n+"help-back-arrow.svg",forwardIcon:n+"forward-icon-test.svg"},support:{helpBackArrow:n+"help-back-arrow.svg"},playerDescription:{favoriteActive:n+"Watchlist_Selected.svg",favorite:n+"watchlist-white.svg",share:n+"share-white.svg"},search:{searchIcon:n+"search-icon.svg",searchShort:n+"search-short.svg"},popup:{closeIcon:n+"lan-popup-close.png",selectedEmoji:n+"emoji_selected.png"},packages:{back:n+"back-arrow.svg",rightArrowback:n+"right_arrow_back.svg",packagesTag:n+"plan_tag.svg",currentPackagesTag:n+"current_plan_tag.svg",emptyCard:n+"empty_cart_icon.png"},subscriptionModal:{paymentSuccess:n+"payment-failure.svg",paymentFailure:n+"payment-success-icon.svg"},profile:{editProfile:n+"edit-profile.svg",lockIcon:n+"lock-icon.svg",profilelockIcon:n+"profile-lock-icon.svg",addProfile:n+"add_profile.svg",back:n+"back-arrow.svg",userProfilePic:n+"user-profile-pic1.svg",deleteIcon:n+"delete-icon.svg"},viewRestrictions:{parentalLock:n+"parental-lock.svg",closeIcon:n+"lan-popup-close.png",back:n+"back.svg"},countryDropDown:{closeIcon:n+"lan-popup-close.png"},shorts:{mute:n+"Volume_mute.svg",unmute:n+"Volume_unmute.svg",play:n+"play.svg",pause:n+"pause.svg"},socialLogins:{apple:n+"apple_icon.svg",facebook:n+"facebook_icon.svg",google:n+"google-icon.svg",mobile:{apple:n+"apple-login-icon.svg",facebook:n+"fb_btn.png",google:n+"google_btn.png"}},settings:{lockIcon:n+"lock-icon.svg",back:n+"back.svg",download:n+"download.svg",edit_icon:n+"edit_icon.svg",phone_icon:n+"phone_icon.svg",password_icon:n+"password_icon.svg",email_icon:n+"email_icon.svg",deleteIcon:n+"delete_icon.svg"},sections:{back:n+"arrow-back.svg"},tvGuide:{rightArrow:n+"right-arrow.svg",leftArrow:n+"left-arrow.png"}
1,tvShowDetails:{imdb:n+"imdb.png",trailerIcon:n+"trailer-icon-web.svg",favoriteActive:n+"Watchlist_Selected.svg",favorite:n+"watchlist-white.svg",crownicon:n+"crown_icon.svg",share:n+"share.svg",watchlistSelected:n+"watchlist-selected.svg",watchlistWhite:n+"watchlist-white.svg",shareWhite:n+"share.svg",packageInfo:n+"pack-info-icon.svg",helpBackArrow:n+"help-back-arrow.svg",premiumOrange:n+"premium_tick_orange.svg",Dolby:n+"Doldy_Logo.svg",like:n+"like.svg",liked:n+"liked.svg",dislike:n+"dislike.svg",disliked:n+"disliked.svg",Notabletolike:n+"not_liked.svg",notabletodislike:n+"not_disliked.svg",watchnow:n+"watchnow.svg",mobileBackArrow:n+"mobile-back-arrow.svg",comingSoon:n+"coming_soon.svg"},sidemenu:{myaccount:n+"sidemenu_myaccount.svg",settings:n+"sidemenu_settings.svg",activateTV:n+"sidemenu_activatetv.svg",manageDevices:n+"sidemenu_managedevices.svg",contactUs:n+"sidemenu_contactus.svg",termsAndConditions:n+"sidemenu_termsndconditions.svg",privacyAndPolicy:n+"sidemenu_privacy.svg",faqs:n+"sidemenu_faq.svg",signOut:n+"sidemenu_signout.svg",menu_divider:n+"menu_divider_line.svg",star_active:n+"star_active.svg"},forgotpassword:{success:n+"success_tickmark.svg"},countrylistpopup:{countrylistpopupdivider:n+"country_list_divider.svg"},checkout:{backArrow:n+"leftarrow_circle.png"},managedevices:{vertical_divider_line:n+"vertical_divider_line.svg"},password:{password_eye_slashed:n+"password_eye_slashed.svg",password_eye:n+"password_eye.svg"},paymentModal:{mastercard_thumb:n+"mastercard_thumb.png",visa_thumb:n+"visa_thumb.png",amex_thumb:n+"amex_thumb.png",rupay_thumb:n+"rupay_thumb.png",gpay_thumb:n+"gpay_thumb.png",phonepe_thumb:n+"phonepe_thumb.png",paytm_thumb:n+"paytm_thumb.png",upi_thumb:n+"upi_thumb.png",google_play:n+"google_play.png",shield_logo:n+"shield_logo.svg",close_icon:n+"bottom_overlay_closebtn.svg"},subscriptionFailure:{failure_icon:n+"failure_icon.svg"}}},98329:function(e,t,i){"use strict";i.r(t),i.d(t,{__N_SSP:function(){return eM},default:function(){return DynamicPage}});var n,l,a=i(85893),o=i(67294),s=i(4975),r=i(11163),d=i(94313),c=i(43825),u=i(49855),v=i(73484),p=i(77363),g=i.n(p),m=i(41664),_=i.n(m);i(60439),i(61555),i(19360),i(7025);var y=i(25675),h=i.n(y),f=i(46066);i(49321),i(16780);var b=i(29417),w=i(81123),k=i.n(w),x=i(47071),S=i.n(x),j=i(6437),P=i(38606),I=i(39332),T=i(58014),N=i(62817),C=i(5152),D=i.n(C);let A=D()(()=>i.e(5017).then(i.bind(i,57615)),{loadableGenerated:{webpack:()=>[57615]}}),BannerImage=e=>{var t,i,n,l;let{index:r,item:c,addToFavourite:u,isFromSlick:p}=e,{dispatch:g,state:{localLang:m,userDetails:_}}=(0,s.oR)(),[y,f]=(0,o.useState)({}),getImagePath=e=>{try{return e?(0,v.ZY)(e):""}catch(e){}},[w,k]=(0,o.useState)({});(0,o.useEffect)(()=>{let e={};if(c){var t,i,n,l;e.isFavourite=null==c?void 0:c.isFavourite,null==c||null===(i=c.hover)||void 0===i||null===(t=i.elements)||void 0===t||t.map((t,i)=>{"titleImage"===t.key&&t.value&&(e.titleImage=t.value),"pgRating"===t.key&&t.value&&(e.pgRating=t.value),"subtitle1"===t.key&&t.value&&(e.subtitle1=t.value),"bannerButtonText"===t.key&&t.value&&(e.bannerButtonText=t.value)}),e.genre=null==c?void 0:null===(l=c.target)||void 0===l?void 0:null===(n=l.pageAttributes)||void 0===n?void 0:n.genre,k(e)}},[c]);let x=(0,I.useRouter)(),handleEvent=(e,t,i)=>{var n,l,a,o,r,c,u,v,p,m,y,h,b,k,S,j,I,N,C,D;if(e.preventDefault(),(0,P.qP)("click_event",{button_label:(null===(n=i[0])||void 0===n?void 0:n.toUpperCase())+(null==i?void 0:null===(l=i.substring(1))||void 0===l?void 0:l.replace(/\s+/g,"_").toLowerCase()),content_name:null==t?void 0:null===(a=t.display)||void 0===a?void 0:a.title,content_type:null==t?void 0:null===(r=t.target)||void 0===r?void 0:null===(o=r.pageAttributes)||void 0===o?void 0:o.contentType,content_partner_name:null==t?void 0:null===(u=t.target)||void 0===u?void 0:null===(c=u.pageAttributes)||void 0===c?void 0:c.networkName,content_genre:null==t?void 0:null===(m=t.target)||void 0===m?void 0:null===(p=m.pageAttributes)||void 0===p?void 0:null===(v=p.genre)||void 0===v?void 0:v.replace(/[â¢]/g,","),tab:(0,T.rV)("tab")||"Home",rail_name:"top_banner"}),(null==w?void 0:w.bannerButtonText)==="Sign In"&&(0,P.qP)("Onboarding_Started",{ctEventDataParam:{content_id:null==t?void 0:null===(k=t.target)||void 0===k?void 0:null===(b=k.pageAttributes)||void 0===b?void 0:b.id,content_title:null==t?void 0:null===(S=t.display)||void 0===S?void 0:S.title,content_genre:(null==t?void 0:null===(N=t.target)||void 0===N?void 0:null===(I=N.pageAttributes)||void 0===I?void 0:null===(j=I.genre)||void 0===j?void 0:j.replace(/[â¢]/g,","))||"NA"}}),g({type:s.Nw.t3,payload:"/"}),(null==t?void 0:null===(y=t.target)||void 0===y?void 0:y.path)==="buy/packages-list"&&(null==_?void 0:null===(h=_.packages)||void 0===h?void 0:h.length)>0){let e=(0,d.$i)(null==_?void 0:_.packages);e?f({isActive:!0,type:"upgradePlan",title1:e,yesButton1:"OK",yesButtonType:"primary",yesButtonTarget1:handleClose,close:!0,closeTarget:handleClose}):x.push((null==t?void 0:null===(C=t.target)||void 0===C?void 0:C.path)||"/signin")}else x.push((null==t?void 0:null===(D=t.target)||void 0===D?void 0:D.path)||"/signin")},handleClose=()=>{f({})};return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"".concat(S().imgContainer," ").concat(S()[c.customClass]," \n ").concat(p?S().firstBanner:""),children:[(0,a.jsx)(h(),{fill:!0,sizes:"100vw",loader:e=>{let{src:t}=e;return t},src:(null==c?void 0:null===(t=c.display)||void 0===t?void 0:t.imageUrl)||(null==c?void 0:c.imageUrl)?getImagePath((null===(i=c.display)||void 0===i?void 0:i.imageUrl)||c.imageUrl):"".concat(b.e.staticImagesPath,"default-banner.png"),id:"img_bannerImg_".concat(c.id),className:S().img_responsive,alt:"Banner ".concat(c.id),onError:e=>{let{currentTarget:t}=e;t.onerror=null,t.srcset="".concat(b.e.staticImagesPath,"default-banner.png")}}),(0,a.jsx)("div",{className:"banner_data",children:(0,a.jsxs)("div",{className:S().banner_about,children:[(null==w?void 0:w.titleImage)&&(0,a.jsx)("span",{children:(0,a.jsx)("img",{src:getImagePath(null==w?void 0:w.titleImage),alt:"banner_previewimage"})}),(0,a.jsxs)("div",{className:S().banner_description,children:[(null==w?void 0:w.pgRating)&&(0,a.jsx)("span",{className:S().movie_agelimit,children:null==w?void 0:w.pgRating}),(null==w?void 0:w.genre)&&(()=>{var e;let t=null==w?void 0:null===(e=w.genre)||void 0===e?void 0:e.split(/ ⢠|,/),i=window.innerWidth<768?t.slice(0,1):t;return i.map((e,t)=>e&&(0,a.jsxs)(o.Fragment,{children:["\xa0 ⢠\xa0",(0,a.jsx)("span",{children:e})]},t))})(),(null==w?void 0:w.subtitle1)&&(()=>{var e,t;let i=null==w?void 0:null===(t=w.subtitle1)||void 0===t?void 0:null===(e=t.replace(/ ⢠/g," | "))||void 0===e?void 0:e.split(" | ");(null==w?void 0:w.pgRating)===(null==i?void 0:i[i.length-1])&&(i=null==i?void 0:i.slice(0,i.length-1)),i=null==i?void 0:i.slice(0,3);let n=i.filter(e=>e==Number(e));return(0,a.jsx)(a.Fragment,{children:n.length>0&&(0,a.jsxs)(o.Fragment,{children:["\xa0 ⢠\xa0",(0,a.jsx)("span",{children:n[0]})]},r)})})()]}),(0,a.jsxs)("div",{className:S().banner_buttons,children:[(null==w?void 0:w.bannerButtonText)&&(0,a.jsxs)("button",{className:S().watchnow_btntxt,onClick:e=>handleEvent(e,c,null==w?void 0:w.bannerButtonText),children:[(null==w?void 0:w.bannerButtonText)==="Subscribe"&&(0,a.jsx)("img",{className:S().crownicon,src:"".concat(j.Z.tvShowDetail
1s.crownicon),alt:"crown_icon"}),"\xa0",(null==w?void 0:w.bannerButtonText)==="Watch Now"&&(0,a.jsx)("img",{src:"".concat(j.Z.tvShowDetails.watchnow),alt:"watchnow"}),(0,a.jsx)("span",{children:null==w?void 0:w.bannerButtonText})]}),(0,a.jsx)("button",{className:S().mybingelist_btn,onClick:e=>u(e,c,r),children:(null==c?void 0:c.isFavourite)==!0?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{src:"".concat(j.Z.tvShowDetails.watchlistSelected),alt:"favourite"}),(0,a.jsx)("span",{className:S().fancy_tool_tip,children:null===N.sh||void 0===N.sh?void 0:null===(n=N.sh[m])||void 0===n?void 0:n.Favourited})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{src:"".concat(j.Z.tvShowDetails.favorite),alt:"favourite"}),(0,a.jsx)("span",{className:S().fancy_tool_tip,children:null===N.sh||void 0===N.sh?void 0:null===(l=N.sh[m])||void 0===l?void 0:l.Favourite})]})})]})]})})]}),y.isActive&&"upgradePlan"===y.type&&(0,a.jsx)(A,{popupData:y})]})};var ShakaBannerVideo_component=e=>{let{streamPath:t,streamEnd:i,item:n}=e,l=(0,o.useRef)(null),r=(0,o.useRef)(null),d=(0,o.useRef)(),[c,u]=(0,o.useState)(!0),[v,p]=(0,o.useState)(!1),{state:{shakaCardHoverState:g}}=(0,s.oR)(),[m,_]=(0,o.useState)(!1),y=sessionStorage.getItem("isMutedSessionStored"),h=(0,o.useRef)(!1);(0,o.useEffect)(()=>(initiateShakaPlayer(),()=>{destroyPlayer()}),[null==t?void 0:t.streamUrl]),(0,o.useEffect)(()=>{if(g){var e;null==l||null===(e=l.current)||void 0===e||e.pause()}return()=>{var e;m&&!h.current&&(null==l||null===(e=l.current)||void 0===e||e.play())}},[g]),(0,o.useEffect)(()=>{{let handleResize=()=>b(window.innerWidth);return window.addEventListener("resize",handleResize),()=>window.removeEventListener("resize",handleResize)}},[]);let[f,b]=(0,o.useState)(window.innerWidth);(0,o.useEffect)(()=>{let e=new IntersectionObserver(handleIntersection,{root:null,rootMargin:"0px",threshold:.5});return l.current&&e.observe(l.current),()=>{l.current&&e.unobserve(l.current)}},[g]);let initiateShakaPlayer=()=>{d.current=new(k()).util.EventManager,k().polyfill.installAll(),k().Player.isBrowserSupported()?r.current=new(k()).Player(l.current):console.log("Shaka Player is not supported in this browser."),loadStream(t.streamUrl)},destroyPlayer=()=>{p(!1),d.current&&d.current.removeAll(),r.current&&r.current.destroy()},loadStream=e=>{var t,n;r.current.attach(l.current,!0),r.current.configure({disablePictureInPicture:!0}),l.current.setAttribute("playsInline",""),l.current.setAttribute("webkit-playsinline","true"),l.current.setAttribute("x5-playsinline","true"),l.current.muted=!0,l.current.autoplay=!0,e.includes(".m3u8")&&(r.current.getNetworkingEngine().registerRequestFilter(function(e,t){e===k().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;if(g)null==l||null===(e=l.current)||void 0===e||e.pause();else{try{l.current.play().catch(e=>{console.warn("Safari autoplay blocked, waiting for user gesture",e);let resumePlay=()=>{var e;null===(e=l.current)||void 0===e||e.play(),window.removeEventListener("touchstart",resumePlay),window.removeEventListener("click",resumePlay)};window.addEventListener("touchstart",resumePlay),window.addEventListener("click",resumePlay)})}catch(e){console.warn("Play error:",e)}h.current||null===(t=l.current)||void 0===t||t.play(),"false"==y?(l.current.muted=!1,u(!1)):l.current.muted=c}}).catch(e=>{console.error("Error code",e.code,"object",e),i()}),null===(t=l.current)||void 0===t||t.addEventListener("ended",function(){h.current=!0,l.current.pause(),l.current.currentTime=0,p(!1)}),null==d||null===(n=d.current)||void 0===n||n.listenOnce(l.current,"timeupdate",()=>{p(!0)}),r.current.addEventListener("error",e=>handleShakaPlayerError(e))},handleShakaPlayerError=e=>{let t=e.detail;console.error("Shaka Player error:",t),i()},handleIntersection=e=>{e.forEach(e=>{var t,i;e.isIntersecting&&!h.current?(_(!0),(null==l?void 0:null===(t=l.current)||void 0===t?void 0:t.src)===""?initiateShakaPlayer():((null==r?void 0:r.current)||initiateShakaPlayer(),setTimeout(()=>{var e;h.current||null==l||null===(e=l.current)||void 0===e||e.play()},300))):(_(!1),null==l||null===(i=l.current)||void 0===i||i.pause())})};return(0,a.jsxs)(a.Fragment,{children:[!v&&(0,a.jsx)(BannerImage,{item:n,isFromSlick:!0}),(0,a.jsx)(E,{isVideoStarted:v,toggleMute:e=>{null==e||e.preventDefault();let t=!c;u(t),sessionStorage.setItem("isMutedSessionStored",t),(null==r?void 0:r.current)&&(l.current.muted=t)},videoRef:l,muted:c})]})};let E=o.memo(e=>{let{isVideoStarted:t,toggleMute:i,videoRef:n,muted:l}=e;return(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("video",{ref:n,style:{width:"100%",visibility:t?"visible":"hidden"}
1,playsInline:!0,muted:!0,autoPlay:!0,preload:"auto","webkit-playsinline":"true","x5-playsinline":"true",disablePictureInPicture:!0,className:"".concat(g().video_content)})})});var B=i(72120);let BannerWrappper=e=>{let{item:t}=e,i=t.isInternal?"_self":"_blank",n=(0,r.useRouter)(),sendAnalytics=e=>{var t;(0,P.qP)("banner_clicked",{TopNavigationName:localStorage.getItem("tab")||"Home",contentTitle:(null==e?void 0:e.title)&&e.title.trim()?e.title:"NA",redirection_link:null==e?void 0:null===(t=e.target)||void 0===t?void 0:t.path}),sendMyrecoAnalytics()},sendMyrecoAnalytics=()=>{var t,i;let l=0,a=null==e?void 0:e.index;l=(null==l?void 0:l.toString())||"",a=(null==a?void 0:a.toString())||"";let o={contentPath:null==e?void 0:null===(i=e.item)||void 0===i?void 0:null===(t=i.target)||void 0===t?void 0:t.path.replace(/^\/+/,""),carouselPosition:l,contentPosition:a,trackingId:"",originName:"Banner"},s={dataType:"",pagePath:null==n?void 0:n.asPath};(0,B.aB)(o,s)};return(0,a.jsx)("div",{target:i,"aria-label":"banner",onClick:()=>sendAnalytics(t),children:e.children})};var SlickBanners_component=e=>{let{bannerslist:t}=e,[i,n]=(0,o.useState)([]),[l,s]=(0,o.useState)(null),r=(0,o.useRef)(null),c=(0,o.useRef)(null),u=(0,o.useRef)(null),p=window.innerWidth;(0,o.useEffect)(()=>{if(t){let e=null==t?void 0:t.map(e=>{var t,i;return{...e,imageUrl:getImagePath(e.imageUrl),videoAvilable:!!(null===(i=e.params)||void 0===i?void 0:null===(t=i.previewUrl)||void 0===t?void 0:t.length)}});n(e),sessionStorage.setItem("isMutedSessionStored",!0)}},[t]);let getImagePath=e=>{try{return e?(0,v.ZY)(e):""}catch(e){}},cntrlImgdisplay=e=>{r.current&&(r.current.style.display=e)},onInitalization=()=>{setTimeout(()=>{checkIsVideoAvailable(0)},100)},checkIsVideoAvailable=e=>{var t,n;s(null),clearTimeout(u.current),u.current=null,(0,d.uG)();let l=i[e];(null==l?void 0:l.videoAvilable)?(null==c||null===(t=c.current)||void 0===t||t.slickPause(),u.current=setTimeout(()=>{var e;null==c||null===(e=c.current)||void 0===e||e.slickPause(),s(l)},3e3)):null==c||null===(n=c.current)||void 0===n||n.slickPlay()},streamEnded=()=>{var e,t,i,n,l;s(null),cntrlImgdisplay("block"),null==c||null===(n=c.current)||void 0===n||n.slickGoTo((null==c?void 0:null===(i=c.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==c||null===(l=c.current)||void 0===l||l.slickPlay()};return i&&0==i.length?(0,a.jsx)(a.Fragment,{}):(0,a.jsx)("div",{className:g().banners_wrap,children:(0,a.jsx)("div",{className:g().banner_cont,id:"banner_cont",children:(0,a.jsx)(f.Z,{dots:!0,infinite:!0,speed:500,fade:!0,autoplay:!0,autoplaySpeed:5e3,afterChange:e=>checkIsVideoAvailable(e),onInit:()=>onInitalization(),appendDots:e=>(0,a.jsx)("div",{id:"slickDots",style:{display:"none"},children:(0,a.jsxs)("ul",{children:[" ",e," "]})}),ref:c,children:i.map(e=>{var t,i;return(0,a.jsx)("div",{children:(0,a.jsxs)(BannerWrappper,{item:e,children:[!l&&(0,a.jsx)(BannerImage,{item:e,isFromSlick:!0}),l&&e.videoAvilable&&e.id===(null==l?void 0:l.id)&&(null==l?void 0:null===(t=l.params)||void 0===t?void 0:t.previewUrl)&&(0,a.jsx)("div",{className:"".concat(g().JWPlayers_parent," ").concat(g().img_remvZIndex),style:{height:.37*p+"px"},children:(0,a.jsx)(ShakaBannerVideo_component,{item:e,streamPath:{streamUrl:null==l?void 0:null===(i=l.params)||void 0===i?void 0:i.previewUrl,imageUrl:e.imageUrl,isbannerVideo:l},streamEnd:streamEnded})})]})},e.id)})})})})};let CenterBanner_component_BannerWrappper=e=>{var t,i,n,l,o;let{item:s,index:r}=e,d=(s.isInternal,"_self"),c=null==s?void 0:null===(t=s.target)||void 0===t?void 0:t.path;return window.innerWidth>=768&&(null==s?void 0:null===(n=s.target)||void 0===n?void 0:null===(i=n.pageAttributes)||void 0===i?void 0:i.detailPagePath)&&(c=null==s?void 0:null===(o=s.target)||void 0===o?void 0:null===(l=o.pageAttributes)||void 0===l?void 0:l.detailPagePath),(0,a.jsx)(_(),{href:c||"/",target:d,onClick:()=>{var e,t,i,n,l,a,o,d;(0,T.LS)("playerSource","home_banner"),(0,T.LS)("contentSectionName","banner"),(0,P.qP)("top_banner_clicked",{content_name:null==s?void 0:null===(e=s.display)||void 0===e?void 0:e.title,content_type:null==s?void 0:null===(i=s.target)||void 0===i?void 0:null===(t=i.pageAttributes)||void 0===t?void 0:t.contentType,content_partner_name:null==s?void 0:null===(l=s.target)||void 0===l?void 0:null===(n=l.pageAttributes)||void 0===n?void 0:n.networkName,content_genre:null==s?void 0:null===(d=s.target)||void 0===d?void 0:null===(o=d.pageAttributes)||void 0===o?void 0:null===(a=o.genre)||void 0===a?void 0:a.replace(/[â¢]/g,","),tab:(0,T.rV)("tab")||"Home",rail_name:"top_banner",ctEventDataParam:{tab:(0,T.rV)("tab")||"Home",category_name:"banner",category_postion:r||"0"}})},children:e.children})};
1var CenterBanner_component=e=>{let{bannerslist:t,addToFavourite:i}=e,[n,l]=(0,o.useState)([]),[s,r]=(0,o.useState)(null),c=(0,o.useRef)(null),u=(0,o.useRef)(null),v=(0,o.useRef)(null),[p,g]=(0,o.useState)(!1),[m,_]=(0,o.useState)(0),y=(0,o.useRef)(null);(0,o.useEffect)(()=>{let e=y.current;if(!e)return;let t=n.length,i=m-Math.floor(2.5);i=Math.min(i=Math.max(0,i),t-5);let l=16*i;e.style.transform="translateX(-".concat(l,"px)")},[m,n.length]),(0,o.useEffect)(()=>{var e,i,n;if(t&&(null===(e=Object)||void 0===e?void 0:e.keys(t).length)>0){let e=null==t?void 0:t.map(e=>({...e,videoAvilable:(null==e?void 0:e.videoAvilable)||!1}));l(e),sessionStorage.setItem("isMutedSessionStored",!0),(null===(n=Object)||void 0===n?void 0:null===(i=n.keys(t))||void 0===i?void 0:i.length)===1&&g(!0)}},[t]);let handleResize=()=>{(0,d.uG)().width>991&&streamEnded()},cntrlImgdisplay=e=>{c.current&&(c.current.style.display=e)},onInitalization=()=>{setTimeout(()=>{checkIsVideoAvailable(0)},100)},checkIsVideoAvailable=e=>{var t,i;r(null),clearTimeout(v.current),v.current=null;let l=(0,d.uG)();0===e&&window.addEventListener("resize",handleResize);let a=null==n?void 0:n[e];(null==a?void 0:a.videoAvilable)&&l.width>991?(null==u||null===(t=u.current)||void 0===t||t.slickPause(),v.current=setTimeout(()=>{var e;null==u||null===(e=u.current)||void 0===e||e.slickPause(),r(a)},3e3)):null==u||null===(i=u.current)||void 0===i||i.slickPlay()},streamEnded=()=>{var e;r(null),cntrlImgdisplay("block"),null==u||null===(e=u.current)||void 0===e||e.slickPlay()};return n&&0==n.length?(0,a.jsx)(a.Fragment,{}):(0,a.jsxs)("div",{className:"banners_wrap",children:[(0,a.jsx)("span",{className:S().banner_bottom_gradient}),(0,a.jsx)("div",{className:S().banner_cont,id:"banner_cont",children:(0,a.jsx)(f.Z,{className:"center",centerMode:!0,infinite:!p,centerPadding:"300px",slidesToShow:1,slidesToScroll:1,dots:!0,lazyLoad:!1,autoplay:!0,speed:500,beforeChange:(e,t)=>
1{_(t),checkIsVideoAvailable(t)},appendDots:()=>(0,a.jsx)("div",{className:S().slickdots,style:{width:"".concat(80,"px"),overflow:"hidden",margin:"0 auto",position:"absolute",left:"50%",transform:"translateX(-50%)"},children:(0,a.jsx)("ul",{ref:y,style:{display:"flex",transition:"transform 0.3s ease",padding:0,margin:0,listStyle:"none",position:"relative",top:"5px"},children:n.map((e,t)=>{let i=t===m;return(0,a.jsx)("li",{onClick:()=>{var e;return null===(e=u.current)||void 0===e?void 0:e.slickGoTo(t)},style:{display:"inline-block",margin:"0 4px",cursor:"pointer"},children:(0,a.jsx)("button",{className:"dot-btn",style:{background:i?"#fff":"#888",transform:i?"scale(1.5)":"scale(1)",transition:"transform 0.3s ease, background-color 0.3s ease",width:"10px",height:"10px",borderRadius:"50%",border:"none",padding:"0",cursor:"pointer"}})},t)})})}),onInit:()=>onInitalization(),customPaging:e=>(0,a.jsx)("button",{children:e+1}),responsive:[{breakpoint:1024,settings:{slidesToShow:1,slidesToScroll:1,centerPadding:"0px"}},{breakpoint:600,settings:{slidesToShow:1,slidesToScroll:1,centerPadding:"0px"}},{breakpoint:480,settings:{className:"center",centerMode:!0,infinite:!p,centerPadding:"40px",slidesToShow:1,slidesToScroll:1}}],ref:u,children:null==n?void 0:n.map((e,t)=>{var n,l;return(0,a.jsx)("div",{children:(0,a.jsx)(CenterBanner_component_BannerWrappper,{item:e,index:t,children:s&&e.videoAvilable&&e.id===(null==s?void 0:s.id)&&(null==s?void 0:null===(n=s.params)||void 0===n?void 0:n.streamUrl)?(0,a.jsx)("div",{className:"".concat(S().JWPlayers_parent," ").concat(S().img_remvZIndex),children:(0,a.jsx)(ShakaBannerVideo_component,{item:e,streamPath:{streamUrl:null==s?void 0:null===(l=s.params)||void 0===l?void 0:l.streamUrl,imageUrl:e.imageUrl,isbannerVideo:s},streamEnd:streamEnded})}):(0,a.jsx)(BannerImage,{item:e,addToFavourite:i,index:t})})},t)})})})]})},R=i(70717),V=i(7342),M=i(98959),L=i.n(M),F=i(83467),O=i(7026),Z=i(32381),U=i(30327),q=i(44341),grid_component=e=>{var t,i,n,l,c,v,p,g,m,y,h,f,b;let{gridData:w}=e,{state:{PageData:k,SystemConfig:x},dispatch:S}=(0,s.oR)(),j=(0,r.useRouter)(),[P,I]=(0,o.useState)({}),[T,N]=(0,o.useState)(0),[C,D]=(0,o.useState)(0),[A,E]=(0,o.useState)((null==w?void 0:null===(n=w.section)||void 0===n?void 0:null===(i=n.sectionData)||void 0===i?void 0:null===(t=i.data[0])||void 0===t?void 0:t.cardType)?null==w?void 0:null===(v=w.section)||void 0===v?void 0:null===(c=v.sectionData)||void 0===c?void 0:null===(l=c.data[0])||void 0===l?void 0:l.cardType:"content_poster"),[B,M]=(0,o.useState)(null==w?void 0:null===(g=w.section)||void 0===g?void 0:null===(p=g.sectionData)||void 0===p?void 0:p.data[0]),{mutate:W,data:J,isLoading:H}=(0,u.Z)(),{mutate:z,data:G}=(0,u.Z)(),[K,Y]=(0,o.useState)(null),[Q,X]=(0,o.useState)(!1),{mutate:ee,data:et}=(0,U.Z)(),ei=(0,o.useRef)({started:!1}),en=(0,F.fe)(),el=j.asPath.replace("/",""),[ea,eo]=(0,o.useState)(!1);(0,o.useEffect)(()=>{w&&prepareSections(w);let handleResize=()=>{w&&prepareSections(w)};return window.addEventListener("resize",handleResize),()=>{window.removeEventListener("resize",handleResize)}},[w,A]),(0,o.useEffect)(()=>{var e,t,i,n,l,a,o,s,r,d,c;if(null==J?void 0:null===(e=J.data)||void 0===e?void 0:e.status){let e=JSON.parse(JSON.stringify(P));(null==J?void 0:null===(i=J.data)||void 0===i?void 0:null===(t=i.response[0])||void 0===t?void 0:t.data)&&(null==J?void 0:null===(l=J.data)||void 0===l?void 0:null===(n=l.response[0])||void 0===n?void 0:n.data.length)>0?(e.section.sectionData.data=[...null===(o=P.section)||void 0===o?void 0:null===(a=o.sectionData)||void 0===a?void 0:a.data,...null==J?void 0:null===(r=J.data)||void 0===r?void 0:null===(s=r.response[0])||void 0===s?void 0:s.data],e.hasMoreData=null==J?void 0:null===(d=J.data)||void 0===d?void 0:d.response[0].hasMoreData,e.offset=null==J?void 0:null===(c=J.data)||void 0===c?void 0:c.response[0].lastIndex):e.hasMoreData=!1,I(e)}J&&setTimeout(()=>{ei.current.started=!1},200)},[J]),(0,o.useEffect)(()=>{var e;(null==et?void 0:null===(e=et.data)||void 0===e?void 0:e.status)&&I(e=>{let t=e.section.sectionData.data.filter((e,t)=>
1t!==K);return{...e,section:{...e.section,sectionData:{...e.section.sectionData,data:t}}}})},[et]);let noOfCardsInRow=()=>{var e,t,i,n;let l=window.innerWidth,a={...(0,F.Wh)(A,B)},o=Object.keys(a).filter(e=>e<=l);if(o){let i=o.sort((e,t)=>t-e);return N(null===(e=a[i[0]])||void 0===e?void 0:e.gridPadding),D(null===(t=a[i[0]])||void 0===t?void 0:t.cardPaddingGrid),{cardsToShow:a[i[0]].cardsPerGridRow,cardPadding:a[i[0]].cardPaddingGrid,gridPadding:a[i[0]].gridPadding}}{let e=Object.keys(a).sort((e,t)=>e-t);return N(null===(i=a[e[0]])||void 0===i?void 0:i.gridPadding),D(null===(n=a[e[0]])||void 0===n?void 0:n.cardPaddingGrid),{cardsToShow:a[e[0]].cardsPerGridRow,cardPadding:a[e[0]].cardPaddingGrid,gridPadding:a[e[0]].gridPadding}}},prepareSections=e=>{var t,i,n,l,a,o,s,r,d,c,u,v,p,g,m;let _=JSON.parse(JSON.stringify(e)),y=(null==_?void 0:null===(n=_.section)||void 0===n?void 0:null===(i=n.sectionData)||void 0===i?void 0:null===(t=i.data[0])||void 0===t?void 0:t.cardType)||(null==_?void 0:null===(a=_.searchResults)||void 0===a?void 0:null===(l=a.data[0])||void 0===l?void 0:l.cardType),h=(0,F.TP)(A),f=(document.body.clientWidth-2*(null===(o=noOfCardsInRow())||void 0===o?void 0:o.gridPadding)-(null===(s=noOfCardsInRow())||void 0===s?void 0:s.cardsToShow)*(2*(null===(r=noOfCardsInRow())||void 0===r?void 0:r.cardPadding)))/(null===(d=noOfCardsInRow())||void 0===d?void 0:d.cardsToShow);_.width=f,_.height=f*h,(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===(m=_.section)||void 0===m?void 0:null===(g=m.sectionData)||void 0===g?void 0:g.lastIndex),E(en.includes(y)?y:"content_poster"),I(_)},es=(0,o.useCallback)(()=>{if(P&&(null==P?void 0:P.hasMoreData)){let e={path:(0,d.mn)(j.asPath),count:24,code:P.contentCode,offset:P.offset},t="https://lukentv-api.revlet.net/service/api/v1/section/data?"+(0,d.Yo)(e);try{W(t)}catch(e){}}},[w,P.contentCode,P.offset,W,j.asPath]);(0,o.useEffect)(()=>{let scrollHandler=()=>{let e=document.documentElement.scrollHeight-window.innerHeight-window.scrollY,t=window.scrollY;null!==e&&e<window.innerHeight&&t>150&&!1===ei.current.started&&(es(),ei.current.started=!0)};return document.addEventListener("scroll",scrollHandler),()=>{document.removeEventListener("scroll",scrollHandler)}},[es]);let removedCard=(e,t,i)=>{if(e.preventDefault(),ea){var n;let e="https://lukentv-api.revlet.net/service/api/auth/user/favourite/item?path="+(null==t?void 0:null===(n=t.target)||void 0===n?void 0:n.path)+"&action=2";z(e),X(!0)}else{Y(i);let e={viewType:"continue_watching",pagePath:t.target.path};ee({url:"https://lukentv-api.revlet.net/service/api/v1/delete/view/archive",apiData:e})}};return(0,a.jsx)(Z.Z,{children:(0,a.jsxs)("div",{className:"".concat(L().listHome," ").concat("/live-tv"==j.asPath?L().liveTv:""," listHome"),children:["details"!=k.info.pageType&&"/live-tv"!=j.asPath&&(0,a.jsxs)("div",{className:"".concat(L().listTitle),style:{padding:"0 ".concat(T+C,"px")},children:["/movies"!==j.asPath&&"/tv-shows"!==j.asPath&&"/section/stingray-all-live-channels"!==j.asPath&&(0,a.jsx)(_(),{href:"/","aria-label":"Back Navigation",children:(0,a.jsx)("img",{src:"".concat(q.Z.profile.back)})}),(0,a.jsxs)("h1",{children:[null===(y=P.section)||void 0===y?void 0:null===(m=y.sectionInfo)||void 0===m?void 0:m.name,el==x.configs.favouritesTargetPath&&(0,a.jsx)("span",{className:"".concat(L().favBtnEdit),onClick:()=>{ea?(Q&&S({type:s.Nw.ls,payload:!0}),eo(!1),X(!1)):eo(!0)},children:(0,a.jsx)("p",{children:ea?"Done":"Edit"})})]})]}),(null==w?void 0:w.contentCode)!=="recommendations"&&(0,a.jsxs)("div",{className:"".concat(L().listItems),style:{padding:"0 ".concat(T-2,"px")},children:[P&&(null==P?void 0:null===(f=P.section)||void 0===f?void 0:null===(h=f.sectionData)||void 0===h?void 0:h.data.map((e,t)=>(0,a.jsx)("div",{className:"".concat(L().cardItem," ").concat("/live-tv"==j.asPath?L().live_card:""),style:{margin:"".concat(C,"px")}
1,children:(0,a.jsx)(V.Z,{removeCard:removedCard,sectionInfo:{sectionData:P.section,index:t},pagedata:k,item:e,cardType:A,cWidth:P.width,CHeight:P.height,sectionData:w.section,favEditButton:ea,eleIndex:t,originMedium:"C"},e.target.path)},e.target.path))),P&&(null===(b=P.searchResults)||void 0===b?void 0:b.data.map((e,t)=>(0,a.jsx)("div",{className:"".concat(L().cardItem),style:{margin:"".concat(C,"px")},children:(0,a.jsx)(V.Z,{pagedata:k,item:e,cardType:A,cWidth:P.width,CHeight:P.height,sectionData:w.section,eleIndex:t,originMedium:"C"},t)},t)))]}),H&&(0,a.jsx)("div",{children:(0,a.jsx)(O.Z,{custom:!0,type:["list"]})}),(null==w?void 0:w.contentCode)=="recommendations"&&(0,a.jsx)(R.Z,{})]})})},W=i(89306),J=i.n(W),H=i(40044),z=i(90852),G=i(79136),suggestionCard_component=e=>{var t,i,n,l,c,p,g,m;let{suggestionCardData:_,cHeight:y,eleIndex:h}=e,{state:{NotificationBar:f,localLang:b},dispatch:w}=(0,s.oR)(),k=(0,r.useRouter)(),{mutate:x,data:S}=(0,u.Z)(),P=(0,d.mn)(k.asPath),[I,T]=(0,o.useState)(_),[C,D]=(0,o.useState)();(0,o.useEffect)(()=>{var e;P===(null===(e=I.target)||void 0===e?void 0:e.path)&&prepareMarkers(I)},[I]),(0,o.useEffect)(()=>{var e,t,i;if((null==S?void 0:null===(e=S.data)||void 0===e?void 0:e.response)&&(null===(t=S.data)||void 0===t?void 0:t.status)){let e=(0,d.yz)(null==S?void 0:null===(i=S.data)||void 0===i?void 0:i.response);window.open(e)}},[S]);let prepareMarkers=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)>0&&e.display.markers.forEach(t=>{"badge"===t.markerType&&(e.display.badgeMarker=t,e.display.bgColor=getColorCode(t.bgColor),e.display.textColor=getColorCode(t.textColor))}),D(e)},getColorCode=e=>{if(!e)return null;try{return"#"+e.substring(2)}catch(e){}},myRecoAnalytics=()=>{let e={trackingId:getItem("myRecotrackingid")||""};(0,B.aB)(e)},openProgInfoPopUp=()=>{var e,t,i;if(setTimeout(()=>{null!=h&&(0,B.Yo)(h)},1e3),sessionStorage.setItem("isInternalNaviagtion",!0),I.template){let e={};e.target_path=I.target.path;let t=(0,v.g7)();t.length>0?t.map(t=>{I.template===t.code&&(e.assignedTemplate=t,setTemplateData(e),setIsBottomLayoutOpen(!0))}):w({type:s.Nw.o4,payload:{message:"Sorry template not found."}})}else(null==I?void 0:null===(t=I.target)||void 0===t?void 0:null===(e=t.pageAttributes)||void 0===e?void 0:e.isDeeplinking)=="true"?getDeeplinkInfo(I.target.path):k.push(null==I?void 0:null===(i=I.target)||void 0===i?void 0:i.path)},getDeeplinkInfo=e=>{let t="https://lukentv-api.revlet.net/service/api/v1/page/deeplink?"+(0,d.Yo)({path:e});try{x(t)}catch(e){}};return(0,a.jsx)("div",{className:"".concat(J().card_row," ").concat(P===(null===(t=I.target)||void 0===t?void 0:t.path)?"".concat(J().active):""),children:(0,a.jsxs)("div",{className:"".concat(J().overlay_poster_mobile_grid),onClick:()=>{var e,t,i;(null===(e=I.target.pageAttributes)||void 0===e?void 0:e.isDeeplinking)=="true"?((null==I?void 0:null===(i=I.target)||void 0===i?void 0:null===(t=i.pageAttributes)||void 0===t?void 0:t.contentType)==="tvshowepisode"&&myRecoAnalytics(I),getDeeplinkInfo(I.target.path)):openProgInfoPopUp()},children:[(0,a.jsxs)("div",{className:"".concat(J().overlay_poster_left),children:[(0,a.jsx)("img",{src:(0,v.ZY)(null==I?void 0:null===(i=I.display)||void 0===i?void 0:i.imageUrl),alt:"video",height:y,onError:e=>{let{currentTarget:t}=e;t.onerror=null,t.src="".concat(j.Z.defaultdetails)}}),P===(null===(n=I.target)||void 0===n?void 0:n.path)&&!!(null==C?void 0:null===(l=C.display)||void 0===l?void 0:l.badgeMarker)&&(0,a.jsx)("span",{className:"".concat(J().badge_marker),children:null==C?void 0:C.display.badgeMarker.value})]}),(0,a.jsx)("div",{className:"".concat(J().overlay_poster_right),children:(0,a.jsxs)("div",{className:"".concat(J().card_info),children:[P===(null===(c=I.target)||void 0===c?void 0:c.path)&&(0,a.jsx)("p",{className:"".concat(J().live_marker),children:N.IA[b].Watching_Now}),(0,a.jsx)("h2",{className:"".concat(J().title),children:null==I?void 0:I.display.title}),(0,a.jsxs)("span",{className:"".concat(J().subTitle),children:[null==I?void 0:null===(p=I.display)||void 0===p?void 0:p.subtitle1,!!(null==C?void 0:null===(g=C.display)||void 0===g?void 0:g.badgeMarker)&&(0,a.jsxs)("span",{children:["\xa0 | \xa0"," ",(0,a.jsx)("span",{className:"".concat(J().live_heart)}),null==C?void 0:null===(m=C.display)||void 0===m?void 0:m.badgeMarker.value]})]})]})})]})})},playerSuggestions_component=e=>{let{playerSuggestionsData:t,tabsData:i,lefthandHeight:n}=e,[l,s]=(0,o.useState)([]),[c,v]=(0,o.useState)(0),[p,g]=(0,o.useState)(0),m=(0,r.useRouter)(),{mutate:_,data:y}=(0,u.Z)(),{mutate:h,data:f}=(0,u.Z)(),[b,w]=(0,o.useState)(!1),k=(0,o.useRef)({started:!1}),x=(0,o.useRef)(null),S=(0,d.mn)(m.asPath),pagination=()=>{var e,t,i,n,a,o,s,r;if(console.log("Pagination called"),(null===(t=l[c])||void 0===t?void 0:null===(e=t.section)||void 0===e?void 0:e.sectionData.hasMoreData)===!0){let e=(0,d.mn)(m.asPath),t={path:"/"!==e&&""!==e&&e?e:"home",code:null===(i=l[c])||void 0===i?void 0:i.contentCode,offset:null===(o=l[c])||void 0===o?void 0:null===(a=o.section)||void 0===a?void 0:null===(n=a.sectionData)||void 0===n?void 0:n.lastIndex},u=null===(r=l[c])||void 0===r?void 0:null===(s=r.section)||void 0===s?void 0:s.sectionData;if((null==u?void 0:u.hasMoreData)===!0){let e="".concat("https://lukentv-api.revlet.net","/service/api/v1/section/d
1ata?").concat((0,d.Yo)(t));try{h(e)}catch(e){}}}},handleScroll=e=>{let{scrollTop:t,scrollHeight:i,clientHeight:n}=e.currentTarget;t+n>=i-100&&!k.current.started&&(k.current.started=!0,pagination())};(0,o.useEffect)(()=>{b&&(k.current.started=!1,w(!1))},[b]),(0,o.useEffect)(()=>{g("100%")},[]);let perpareSelectedSections=()=>{for(let e=0;e<t.length;e+=1)if(t[e].contentCode===i.selectedTab){v(e);break}};(0,o.useEffect)(()=>{t&&(s(t),perpareSelectedSections())},[t]),(0,o.useEffect)(()=>(setTimeout(()=>{try{var e;null===(e=$("#contentLeft"))||void 0===e||e.mCustomScrollbar("destroy"),window.innerWidth>=768&&$(()=>{$("#contentLeft").css("height",n+"px"),$("#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");$("#contentLeft").mCustomScrollbar("scrollTo",e)},300)},onTotalScroll:e=>{k.current.started||(k.current.started=!0,pagination())},onTotalScrollOffset:100}})})}catch(e){console.log(e)}},50),()=>{try{var e;null===(e=$("#contentLeft"))||void 0===e||e.mCustomScrollbar("destroy")}catch(e){console.log(e)}}),[t,b]),(0,o.useEffect)(()=>{var e,t,i;let n=(0,d.mn)(m.asPath),a={path:"/"!==n&&""!==n&&n?n:"home",code:null===(e=l[c])||void 0===e?void 0:e.contentCode},o=null===(i=l[c])||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://lukentv-api.revlet.net","/service/api/v1/section/data?").concat((0,d.Yo)(a));try{_(e)}catch(e){}}},[c,l,_,m.asPath]),(0,o.useEffect)(()=>{if(y){var e,t;let i=[...l];(null===(e=i[c])||void 0===e?void 0:e.section)&&(i[c].section.sectionData=null==y?void 0:null===(t=y.data)||void 0===t?void 0:t.response[0],s(i))}},[y]),(0,o.useEffect)(()=>{if(f){var e,t;if(null===(e=l[c])||void 0===e?void 0:e.section){let e=(null==f?void 0:null===(t=f.data)||void 0===t?void 0:t.response[0])||{data:[]};e.data=[...l[c].section.sectionData.data,...e.data],l[c].section.sectionData=e,s([...l]),k.current.started=!1}}},[f]);let j={"& button":{alignItems:"flex-start",color:"#858585"},["& .".concat(z.Z.scrollButtons)]:{"&.Mui-disabled":{opacity:.3}},"& .MuiTab-root.Mui-selected":{background:"hsla(0,0%,100%,.06)"}};return(0,o.useEffect)(()=>{if(x.current){let e=x.current.querySelector('[tabindex="0"]');e&&setTimeout(()=>{e.scrollIntoView({behavior:"smooth",inline:"center",block:"center"}),window.scrollTo(0,0)},400)}},[c]),(0,o.useEffect)(()=>{var e,t,i;(null===(i=l[c])||void 0===i?void 0:null===(t=i.section)||void 0===t?void 0:null===(e=t.sectionData)||void 0===e?void 0:e.hasMoreData)&&pagination()},[l]),(0,a.jsxs)("div",{className:"".concat(J().playerSuggestionsMain),children:[(0,a.jsx)("div",{className:"".concat(J().tabs),children:l.length>0&&(0,a.jsx)(G.Z,{orientation:"horizontal",variant:"scrollable",ref:x,onChange:(e,t)=>
1{v(t),w(!0)},value:c,sx:j,TabIndicatorProps:{sx:{left:"0",display:"none"}},children:null==l?void 0:l.map(e=>{var t,i;return(0,a.jsx)(H.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,a.jsx)("div",{id:"contentLeft",children:(0,a.jsx)("div",{className:"".concat(J().tabsData),children:null==l?void 0:l.map((e,t)=>{var i,n,l,o;return(0,a.jsx)(a.Fragment,{children:c===t&&(0,a.jsx)("div",{className:"".concat(c===t?"".concat(J().active):"".concat(J().inactive)),children:(0,a.jsx)("div",{className:"".concat(J().content," "),onScroll:handleScroll,children:(null==e?void 0:null===(n=e.section)||void 0===n?void 0:null===(i=n.sectionData)||void 0===i?void 0:i.data.length)>0&&(null==e?void 0:null===(o=e.section)||void 0===o?void 0:null===(l=o.sectionData)||void 0===l?void 0:l.data.map((e,t)=>{var i,n;return(0,a.jsx)("div",{id:"".concat(S===(null===(i=e.target)||void 0===i?void 0:i.path)?"liveCard_scroll":""),children:(0,a.jsx)(suggestionCard_component,{suggestionCardData:e,eleIndex:t},null==e?void 0:null===(n=e.target)||void 0===n?void 0:n.path)})}))})},(null==e?void 0:e.contentCode)+c)})})})})]})},K=i(335);let Y=D()(()=>i.e(5017).then(i.bind(i,57615)),{loadableGenerated:{webpack:()=>[57615]}}),Q=D()(()=>Promise.all([i.e(8438),i.e(976)]).then(i.bind(i,58438)),{loadableGenerated:{webpack:()=>[58438]}});var playerDescription_component=e=>{var t,i,n,l,c,p,g,m,_,y,h;let{playerMetaData:f,showGoAdFreeBtn:w}=e,{state:{PageData:k,userDetails:x,localLang:S,SystemConfig:I},dispatch:C}=(0,s.oR)(),D=(null===(n=(0,T.rV)("systemConfigs"))||void 0===n?void 0:null===(i=n.data)||void 0===i?void 0:null===(t=i.configs)||void 0===t?void 0:t.castCrewOrder)?JSON.parse(null===(p=(0,T.rV)("systemConfigs"))||void 0===p?void 0:null===(c=p.data)||void 0===c?void 0:null===(l=c.configs)||void 0===l?void 0:l.castCrewOrder):[],[A,E]=(0,o.useState)({}),[B,R]=(0,o.useState)({}),{mutate:V,data:M}=(0,u.Z)(),[L,F]=(0,o.useState)(null),[O,Z]=(0,o.useState)(!1),[U,q]=(0,o.useState)(!1),[W,H]=(0,o.useState)({}),z=(0,r.useRouter)(),[G,X]=(0,o.useState)(""),ee={};(0,o.useEffect)(()=>{var e,t;let i={};if(null==f||null===(t=f.content)||void 0===t||null===(e=t.dataRows)||void 0===e||e.map(e=>{"content"===e.rowDataType&&e.elements.map(e=>{if((null==e?void 0:e.elementSubtype)==="title"&&(i.title=null==e?void 0:e.data),(null==e?void 0:e.elementType)==="description"&&(i.description=null==e?void 0:e.data),(null==e?void 0:e.elementSubtype)==="premium"&&(i.premium=null==e?void 0:e.data),(null==e?void 0:e.elementSubtype)==="subtitle"){let t=null==e?void 0:e.data;t=null==t?void 0:t.split("|"),i.subtitle=t}(null==e?void 0:e.elementSubtype)==="pgrating"&&(i.pgrating=null==e?void 0:e.data),(null==e?void 0:e.elementSubtype)==="imdb"&&(i.imdb=null==e?void 0:e.data),(null==e?void 0:e.elementSubtype)==="cast"&&(null==e?void 0:e.elementType)=="text"&&(i.castcrew=null==e?void 0:e.data),(null==e?void 0:e.elementType)==="image"&&(i.channel_img=getImagePath(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)=="")&&q(!0)})}),!i.castcrew){let e=k.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&&(ee.castcrew=t.join())}}X(i)},[f]),(0,o.useEffect)(()=>{var e;let t={};null==k||null===(e=k.data)||void 0===e||e.map(e=>{if(null==e?void 0:e.contentCode.includes("content_actors")){var i,n;null==e||null===(n=e.section)||void 0===n||null===(i=n.sectionData)||void 0===i||i.data.map(e=>{t[null==e?void 0:e.display.subtitle1]=null==e?void 0:e.display.title})}}),H(t)},[k]),(0,o.useEffect)(()=>{x?F(!0):F(!1)},[x]);let handleClose=()=>{E({})},navigateToSignIn=()=>{C({type:s.Nw.t3,payload:z.asPath}),handleClose(),z.push("/signin")},shareDataSet=()=>{E({type:"share",isActive:!0,targetpath:(0,d.mn)(z.asPath),img:"".concat(null===b.e||void 0===b.e?void 0:b.e.appLogo),closeTarget:handleClose,anal
1yticsObj:{...analyticsData()}})},popupDataSet=()=>{var e,t,i;E({type:"signin",isActive:!0,title1:null===(e=N.C[S])||void 0===e?void 0:e.To_access_this_feature_please_sign_in,yesButton1:null===(t=N.C[S])||void 0===t?void 0:t.Sign_In,yesButtonType:"primary",yesButtonTarget1:navigateToSignIn,noButton1:null===(i=N.C[S])||void 0===i?void 0:i.Cancel,noButtontarget1:handleClose,noButtonType:"secondary",close:!0,closeTarget:handleClose})};(0,o.useEffect)(()=>{let e=k.pageButtons.isFavourite;R({...B,isFavourite:e})},[k]),(0,o.useEffect)(()=>{var e,t,i;if(null==M?void 0:null===(e=M.data)||void 0===e?void 0:e.status){let e=B.isFavourite?2:1;B.isFavourite=1===e,R({...B}),C({type:s.Nw.o4,payload:{message:null==M?void 0:null===(i=M.data)||void 0===i?void 0:null===(t=i.response)||void 0===t?void 0:t.message}}),(0,P.qP)("favorite",analyticsData())}},[M]);let addToFavourite=()=>{if(L)try{let e=B.isFavourite?2:1,t="https://lukentv-api.revlet.net"+"/service/api/auth/user/favourite/item?path=".concat(z.asPath.slice(1),"&action=").concat(e);V(t)}catch(e){console.error("Error:",e)}else popupDataSet()},analyticsData=()=>{var e,t,i,n,l,a,o,s,r,d,c,u,v,p,g,m,_,y,h,f,b,w,x,S;let j={asset_title:null==G?void 0:G.title,content_title:null==G?void 0:G.title,content_type:(null==k?void 0:null===(t=k.info)||void 0===t?void 0:null===(e=t.pageAttributes)||void 0===e?void 0:e.mediaContentType)||"-1",genre:(null==k?void 0:null===(n=k.info)||void 0===n?void 0:null===(i=n.pageAttributes)||void 0===i?void 0:i.genre)||"-1",content_partner:(null==k?void 0:null===(a=k.info)||void 0===a?void 0:null===(l=a.pageAttributes)||void 0===l?void 0:l.networkName)||"-1",isFree:!0,contentDuration:"",featuring:(null==k?void 0:null===(u=k.data)||void 0===u?void 0:null===(c=u[0])||void 0===c?void 0:null===(d=c.content)||void 0===d?void 0:null===(r=d.dataRows)||void 0===r?void 0:null===(s=r[3])||void 0===s?void 0:null===(o=s.elements)||void 0===o?void 0:o[0].data)||"NA"};return(null==k?void 0:null===(p=k.info)||void 0===p?void 0:null===(v=p.pageAttributes)||void 0===v?void 0:v.tvShowName)&&(j.series_name=null==k?void 0:null===(f=k.info)||void 0===f?void 0:null===(h=f.pageAttributes)||void 0===h?void 0:h.tvShowName),(null==k?void 0:null===(m=k.info)||void 0===m?void 0:null===(g=m.pageAttributes)||void 0===g?void 0:g.seasonSeqNo)&&(j.season_number=null==k?void 0:null===(w=k.info)||void 0===w?void 0:null===(b=w.pageAttributes)||void 0===b?void 0:b.seasonSeqNo),(null==k?void 0:null===(y=k.info)||void 0===y?void 0:null===(_=y.pageAttributes)||void 0===_?void 0:_.episodeSeqNo)&&(j.episode_number=null==k?void 0:null===(S=k.info)||void 0===S?void 0:null===(x=S.pageAttributes)||void 0===x?void 0:x.episodeSeqNo),j},getImagePath=e=>{try{return e?(0,v.ZY)(e):""}catch(e){}};return(()=>{var e;let t=null==I?void 0:null===(e=I.configs)||void 0===e?void 0:e.signinPopupAdFreePlanUpgrade;if(t)try{let e="string"==typeof t?JSON.parse(t):t;return(null==e?void 0:e.goAdFreeButtonText)||""}catch(e){return""}})(),(0,a.jsxs)("div",{className:"".concat(J().player_data),children:[(0,a.jsxs)("div",{className:"".concat(J().channel_desc),children:[G&&(0,a.jsxs)("div",{className:" ".concat(J().headerTitle),children:[(null==G?void 0:G.channel_img)&&(0,a.jsx)(a.Fragment,{children:(0,a.jsx)("img",{className:" ".concat(J().channel_logo),src:null==G?void 0:G.channel_img})}),(0,a.jsxs)("div",{className:"".concat(J().player_desc_left),children:[(0,a.jsx)("h1",{className:"".concat(J().title),children:null==G?void 0:G.title}),(0,a.jsxs)("span",{children:[(null==G?void 0:G.pgrating)&&(0,a.jsx)("p",{className:"".concat(J().pgrating),children:null==G?void 0:G.pgrating}),(null==G?void 0:G.premium)&&(0,a.jsxs)("span",{className:J().span1,children:[(0,a.jsxs)("p",{className:"".concat(J().pgrating),children:[(0,a.jsx)("img",{src:"https://d5sqt4swzv7w9.cloudfront.net/images/bottom-menu-Shorts-active.svg"}),null==G?void 0:G.premium]}),(0,a.jsx)("span",{className:J().pipe,children:"|\xa0"})]}),(0,a.jsx)("p",{className:"".concat(J().subtitle),children:null==G?void 0:null===(g=G.subtitle)||void 0===g?void 0:g.filter(e=>null==e?void 0:e.trim()).join(" ⢠")}),(null==G?void 0:G.imdb)&&(0,a.jsxs)("p",{className:"".concat(J().imdb),children:[(0,a.jsx)("img",{"_ng
1content-and-c58":"",alt:"imdb",src:"https://d2ivesio5kogrp.cloudfront.net/static/watcho/images/imdb.png",loading:"lazy",decoding:"async"}),null==G?void 0:G.imdb]})]})]})]}),(0,a.jsx)("div",{className:"".concat(J().player_desc_right),children:(0,a.jsxs)("div",{className:"".concat(J().playerButtons," ").concat(k.pageButtons.showFavouriteButton&&k.shareInfo.isSharingAllowed?"".concat(J().divider):""),children:[(0,a.jsx)("div",{className:"".concat(J().fav),children:k.pageButtons.showFavouriteButton&&(null==k?void 0:null===(_=k.info)||void 0===_?void 0:null===(m=_.attributes)||void 0===m?void 0:m.mediaContentType)!="Live TV"&&(0,a.jsx)("span",{className:" ".concat(J().button," "),onClick:()=>addToFavourite(),children:B.isFavourite?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{className:"".concat(J().fav_active_icon),src:"".concat(j.Z.playerDescription.favoriteActive," "),alt:"fav-active"})," ",(0,a.jsx)("span",{className:"".concat(J().mob_bookmark_text),children:N.C[S].Favourited})," "]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{src:"".concat(j.Z.playerDescription.favorite),alt:"favourite"})," ",(0,a.jsx)("span",{className:"".concat(J().mob_bookmark_text),children:N.C[S].Favourite})]})},"fav-button")}),k.shareInfo.isSharingAllowed&&k.pageButtons.showFavouriteButton&&(null==k?void 0:null===(h=k.info)||void 0===h?void 0:null===(y=h.attributes)||void 0===y?void 0:y.mediaContentType)!="Live TV"&&(0,a.jsx)("span",{className:J().pipe1,children:"|"}),k.shareInfo.isSharingAllowed&&(0,a.jsx)("div",{className:"".concat(J().share),children:(0,a.jsxs)("span",{className:"".concat(J().button),onClick:()=>shareDataSet(),children:[(0,a.jsx)("img",{src:"".concat(j.Z.playerDescription.share)}),(0,a.jsx)("span",{className:"".concat(J().fancy_tool_tip),children:N.C[S].Share})]})})]})})]}),G.description&&(0,a.jsx)("div",{className:"".concat(J().channel_desc_new),children:(0,a.jsx)(K.Z,{data:G.description,isDataTruncate:!0,customClass:J().description,styles:J()})}),(U||!!G.castcrew)&&(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("div",{className:"".concat(J().castDetails),children:[U&&(0,a.jsx)("button",{onClick:()=>{z.push("/tvguide")},children:N.C[S].explore_tv_guide}),(0,a.jsx)("p",{className:J().credits,children:(0,a.jsx)("b",{children:"Credits"})}),null==D?void 0:D.map(e=>{if(W[e.title])return(0,a.jsxs)("p",{children:[(0,a.jsxs)("span",{children:[null==e?void 0:e.title,":"]}),W[e.title]]})}),(0,a.jsx)("p",{})]})}),A.isActive&&"favourite"!=A.type&&(0,a.jsx)(Y,{popupData:A}),A.isActive&&"share"===A.type&&(0,a.jsx)(Q,{popupData:A})]})},X=i(85518),ee=i(16250),et=i(16115),ei=i(56946),en=i(73935),el=i(85186),ea=i(68445),eo=i(64666),es=i(66720),er=i(50594),ed=i(29206),ec=i.n(ed),eu=i(92601),verify_otp_popup_component=e=>{let{otpData:t,returnBack:i,isOpen:n}=e,{state:{userDetails:l,localLang:o},dispatch:r}=(0,s.oR)(),d=(0,el.Z)({palette:{mode:"dark"}}),closePopup=()=>{i()};return(0,a.jsx)(ea.Z,{theme:d,children:(0,a.jsx)(eo.Z,{open:n,children:(0,a.jsx)("div",{className:"".concat(ec().modal_parent),children:(0,a.jsx)("div",{className:"".concat(ec().modal_popup),children:(0,a.jsx)("div",{className:"".concat(ec().main_modal),children:(0,a.jsx)("div",{className:"".concat(ec().modal_size),children:(0,a.jsxs)(es.ZP,{children:[(0,a.jsx)("div",{className:"".concat(ec().title),children:(0,a.jsx)(er.Z,{className:"".concat(ec().cross_icon),onClick:closePopup})}),(0,a.jsx)("div",{children:(0,a.jsx)("div",{className:"".concat(ec().updateEmail_cont),children:!!t&&(0,a.jsx)(eu.default,{otpData:t,callbacksuccess:e=>{l.isEmailVerified=!0,r({type:s.Nw.$V,payload:{...l}}),r({type:s.Nw.o4,payload:{message:null==e?void 0:e.message}}),r({type:s.Nw.ls,payload:!0}),closePopup()},returnBack:i})})})]})})})})})})})},ev=i(83454);let ep=null===b.e||void 0===b.e?void 0:null===(n=b.e.supportedVideoAnalytics)||void 0===n?void 0:n.isV2AnalyticsSupport,eg=null===b.e||void 0===b.e?void 0:null===(l=b.e.supportedVideoAnalytics)||void 0===l?void 0:l.isVideoGraphAnalyticsSupport,loadPlayerAnalytics=function(e){var t,i,n,l,a,o,s,r,d;let u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,v=arguments.length>2?arguments[2]:void 0;if(eg&&window.VideoAnalyticsPlugins&&v){let r={HbRate:null===(t=e.anal
1yticsInfo)||void 0===t?void 0:t.hbRateInMillis,clientId:(0,c.g$)(),authKey:null===(i=e.analyticsInfo)||void 0===i?void 0:i.authKey,trueIp:null===(n=e.ipInfo)||void 0===n?void 0:n.trueIP,timeStamp:null===(l=e.analyticsInfo)||void 0===l?void 0:l.serverTime,trueIp:null===(a=e.ipInfo)||void 0===a?void 0:a.trueIP,subCategory:(null==u?void 0:null===(o=u.analyticsInfo)||void 0===o?void 0:o.customData)&&JSON.parse(null===(s=u.analyticsInfo)||void 0===s?void 0:s.customData).subCategory||"-1",grouplistName:(null==u?void 0:u.pageAttributes)&&u.pageAttributes.tvShowName||"-1",environment:"live"};return window.VideoAnalyticsPlugins.load(r),window.VideoAnalyticsPlugins}if(ep&&window.VideoAnalyticsPlugin)return null===(d=window)||void 0===d||null===(r=d.VideoAnalyticsPlugin)||void 0===r||r.load(e),window.VideoAnalyticsPlugin},setPlayerAnalyticsMetaData=(e,t,i,n,l)=>{var a,o,s,r,d,u,v,p,g,m,_,y,h,f,b,w,k,x,S,j,P,I,N,C,D,A,E,B,R,V,M,L,F,O,Z,U,q,W,J,H,z,G,K,Y,Q,ee,et,ei;if(eg&&window.VideoAnalyticsPlugins){let j=null===(a=window.VideoAnalyticsPlugins)||void 0===a?void 0:a.analyticsMetaData(),P=null==i?void 0:null===(s=i.data)||void 0===s?void 0:null===(o=s.filter(e=>"content"==e.paneType)[0])||void 0===o?void 0:o.content.title,I={};"tvshowepisode"==i.info.attributes.contentType||"web_series_episode"==i.info.attributes.contentType?(I.episode=i.info.attributes.episodeSeqNo,I.season=i.info.attributes.seasonSeqNo,I.autoplay=!0):(I.episode="-1",I.season="-1",I.autoplay=!1),Object.keys(j).length>0&&(j.locationData={hbRate:e.analyticsInfo.hbRateInMillis,authKey:e.analyticsInfo.authKey,clientId:(0,c.g$)(),vendorId:"Heartland+",countryName:e.ipInfo.country,state:e.ipInfo.region,city:e.ipInfo.city,trueIp:e.ipInfo.trueIP,environment:"live"},j.playerMetaData={playerName:"jwplayer",playerVersion:"jw_8_14"},j.clientMetaData={appVersion:ev.env.version||"1.0.0",connectionType:"",clientIP:e.ipInfo.trueIP,NWProvider:"",ISProvider:"",deviceType:X.tq?"mobileweb":"web",deviceClient:X.KC,deviceId:X.tq?"61":"5",deviceOS:X.BF,deviceOSVersion:X.MM,deviceBrand:X.B3,deviceModel:X.N7,profileID:(null==l?void 0:l.profileId)?null==l?void 0:l.profileId:""},j.contentMetaData={channelId:(null===(r=t.analyticsInfo)||void 0===r?void 0:r.customData)&&JSON.parse(t.analyticsInfo.customData).channelId||"-1",channelName:t.analyticsInfo.customData&&JSON.parse(t.analyticsInfo.customData).networkName||"-1",programId:t.pageAttributes&&t.pageAttributes.contentID||"-1",programName:P||"-1",genre:t.pageAttributes&&t.pageAttributes.genre||"-1",contentType:t.pageAttributes&&t.pageAttributes.contentType||"-1",subCategory:t.analyticsInfo.customData&&JSON.parse(t.analyticsInfo.customData).subCategory||"-1",datCDNetworkaType:t.analyticsInfo.dataType||"-1",dataType:t?t.analyticsInfo.dataType:"-1",dataKey:(null===(d=t.analyticsInfo)||void 0===d?void 0:d.dataKey)||"-1",metaDataID:(null===(u=t.analyticsInfo)||void 0===u?void 0:u.dataKey)||"-1",CDNetwork:t?null==t?void 0:null===(p=t.streams)||void 0===p?void 0:null===(v=p[0])||void 0===v?void 0:v.streamType:"-1",navigationFrom:n||i.info.path,lang:t.pageAttributes&&t.pageAttributes.language||"-1",grouplistName:(null==t?void 0:t.pageAttributes)&&t.pageAttributes.tvShowName||"-1",isSubscribed:l&&i&&(null==i?void 0:null===(g=i.streamStatus)||void 0===g?void 0:g.hasAccess)?"1":"0",epgStartTime:t.pageAttributes.startTime||"-1",epgEndTime:t.pageAttributes.endTime||"-1",attribute1:(null==t?void 0:null===(m=t.analyticsInfo)||void 0===m?void 0:m.customData)?JSON.stringify(JSON.parse(null==t?void 0:null===(_=t.analyticsInfo)||void 0===_?void 0:_.customData)):"-1",attribute2:JSON.stringify({trackingId:(null===(y=(0,T.rV)("myRecoObj"))||void 0===y?void 0:y.trackingId)||"-1",contentPath:(null===(h=(0,T.rV)("myRecoObj"))||void 0===h?void 0:h.contentPath)||"-1",contentPosition:(null===(f=(0,T.rV)("myRecoObj"))||void 0===f?void 0:f.contentPosition)||"-1",originSource:"AppOpen",carouselPosition:(null===(b=(0,T.rV)("myRecoObj"))||void 0===b?void 0:b.carouselPosition)||"-1",originName:(null===(w=(0,T.rV)("sectionInfo"))||void 0===w?void 0:w.name)||"-1",contentId:(null==t?void 0:t.pageAttributes)&&t.pageAttributes.id,contentType:(null==t?void 0:t.pageAttributes)&&t.pageAttributes.contentType,sourceTab:(0,T.rV)("tab"),originMedium:(null===(k=(0,T.rV)("myRecoAnalyticsData"))||void 0===k?void 0:k.originMedium)||"-1"}),attribute3:"-1"},j.userMetaData={userId:(null==l?void 0:l.userId)||"-1",profileId:(null==l?void 0:l.profileId)?null==l?void 0:l.profileId:"",boxId:(0,c.g$)()||"-1",partnerId:t.analyticsInfo.customData&&JSON.parse(t.analyticsInfo.customData).networkId||"-1",partnerName:t.analyticsInfo.customData?JSON.parse(t.analyticsInfo.customData).networkName:"-1"},j.videoMetaData={autoplay:I.autoplay,videoList:"",productName:"lukentv",streamURL:t?null==t?void 0:null===(S=t.streams)||void 0===S?void 0:null===(x=S[0])||void 0===x?void 0:x.url.split("?")[0]:"",seasonNumber:I.season,episodeNumber:I.episode,isPromotional:"0",vodNumber:"true"==t.pageAttributes.isLive?"-1":"1"}),window.VideoAnalyticsPlugins.setMetaData(j)}else if(ep&&window.VideoAnalyticsPlugin){let a={appVersion:"",connectionType:"",clientIP:null==e?void 0:null===(j=e.data)||void 0===j?void 0:j.ipInfo.trueIP,NWProvider:"",profileID:(null==l?void 0:l.profileId)?null==l?void 0:l.profileId:""},o=t.analyticsInfo.customData;o.pollKey="001";let s={CDNetwork:t?null==t?void 0:null===(I=t.streams)||void 0===I?void 0:null===(P=I[0])||void 0===P?void 0:P.streamType:"",navigationFrom:n||i.info.path,metaId:t?t.analyticsInfo.dataKey:"",metaMap:"",a1:t&&t.analyticsInfo.customData?o:"",a2:{trackingId:(null===(N=(0,T.rV)("myRecoObj"))||void 0===N?void 0:N.trackingId)||"-1",contentPath:(null===(C=(0,T.rV)("myRecoObj"))||void 0===C?void 0:C.contentPath)||"-1",contentPosition:(null===(D=(0,T.rV)("myRecoObj"))||void 0===D?void 0:D.contentPosition)||"-1",originSource:"AppOpen",carouselPosition:(null===(A=(0,T.rV)("myRecoObj"))||void 0===A?void 0:A.carouselPosition)||"-1",originName:(null===(E=(0,T.rV)("sectionInfo"))||void 0===E?void 0:E.name)||"-1",contentId:(null==t?void 0:t.pageAttributes)&&t.pageAttributes.contentID,contentType:(null==t?void 0:t.pageAttributes)&&t.pageAttributes.contentType,sourceTab:(0,T.rV)("tab"),originMedium:(null===(B=(0,T.rV)("myRecoAnalyticsData"))||void 0===B?void 0:B.originMedium)||"-1"},syp:"chaupal"},r={userId:l?l.userId:"",profileId:(null==l?void 0:l.profileId)?null==l?void 0:l.profileId:"",boxId:(0,c.g$)(),deviceType:"web",deviceClient:!!window.VideoAnalyticsPlugin&&(null===(M=window)||void 0===M?void 0:null===(V=M.videoAnalyticsPlugin)||void 0===V?void 0:null===(R=V.current)||void 0===R?void 0:R.getBrowserName()),deviceOS:!!(null===(L=window)||void 0===L?void 0:L.VideoAnalyticsPlugin)&&(null===(Z=window)||void 0===Z?void 0:null===(O=Z.videoAnalyticsPlugin)||void 0===O?void 0:null===(F=O.current)||void 0===F?void 0:F.getPlatForm()),deviceId:"5",isSubscribed:l&&i&&(null==i?void 0:null===(U=i.streamStatus)||void 0===U?void 0:U.hasAccess)?"1":"0"},d={autoplay:!0,productName:"lukentv",streamURL:t?null==t?void 0:null===(W=t.streams)||void 0===W?void 0:null===(q=W[0])||void 0===q?void 0:q.url.split("?")[0]:"",contentType:t?t.analyticsInfo.contentType:""};null===(H=window)||void 0===H||null===(J=H.VideoAnalyticsPlugin)||void 0===J||J.setPlayerMetaData({playerName:"jwplayer",playerVersion:"jw_8_14"}),null===(G=window)||void 0===G||null===(z=G.VideoAnalyticsPlugin)||void 0===z||z.setClientMetaData(a),null===(Y=window)||void 0===Y||null===(K=Y.VideoAnalyticsPlugin)||void 0===K||K.setContentMetaData(s),null===(ee=window)||void 0===ee||null===(Q=ee.VideoAnalyticsPlugin)||void 0===Q||Q.setUserMetaData(r),null===(ei=window)||void 0===ei||null===(et=ei.VideoAnalyticsPlugin)||void 0===et||et.setVideoMetaData(d)}},sendPlayerAnalytics=function(e){var t,i,n,l,a,o,s,r,d,c,u,v,p,g,m,_,y,h,f,b,w,k,x,S,j,P,I,T,N,C,D,A,E,B,R,V,M,L,F,O,Z,U,q,W,J,H,z,G,K,Y,Q,X,ee,et,ei,en,el,ea,eo,es,er,ed,ec,eu,ev,em,e_,ey,eh,ef,eb,ew;let ek=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,ex=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;if((null==ex?void 0:ex.current)===!0){eg&&(null===(i=window)||void 0===i||null===(t=i.VideoAnalyticsPlugins)||void 0===t||t.CompleteHandler(ek,window.playerSetup)),ep&&(null===(l=window)||void 0===l||null===(n=l.VideoAnalyticsPlugin)||void 0===n||n.handlePlayCompleted()),eg&&(null===(o=window)||void 0===o||null===(a=o.VideoAnalyticsPlugins)||void 0===a||a.handlePlayEndedByUser()),ep&&(null===(r=window)||void 0===r||null===(s=r.VideoAnalyticsPlugin)||void 0===s||s.handlePlayEndedByUser());return}switch(e){case"initialBitRate":eg&&(null===(c=window)||void 0===c||null===(d=c.VideoAnalyticsPlugins)||void 0===d||d.initialplayerSetBitRate(window.playerSetup)),ep&&(null===(v=window)||void 0===v||null===(u=v.VideoAnalyticsPlugin)||void 0===u||u.initialplayerSetBitRate());break;case"thumbnailVideoClick":eg&&(null===(g=window)||void 0===g||null===(p=g.VideoAnalyticsPlugins)||void 0===p||p.thumbnailVideoClick()),ep&&(null===(_=window)||void 0===_||null===(m=_.VideoAnalyticsPlugin)||void 0===m||m.thumbnailVideoClick());break;case"handlePlayerLoad":eg&&(null===(h=window)||void 0===h||null===(y=h.VideoAnalyticsPlugins)||void 0===y||y.handlePlayerLoad()),ep&&(null===(b=window)||void 0===b||null===(f=b.VideoAnalyticsPlugin)||void 0===f||f.handlePlayerLoad());break;
1case"play":eg&&(null===(k=window)||void 0===k||null===(w=k.VideoAnalyticsPlugins)||void 0===w||w.playHandler(ek,window.playerSetup));break;case"playEvent":eg&&(null===(S=window)||void 0===S||null===(x=S.VideoAnalyticsPlugins)||void 0===x||x.OnBufferHandler(ek,window.playerSetup)),ep&&(null===(P=window)||void 0===P||null===(j=P.VideoAnalyticsPlugin)||void 0===j||j.handleBufferEnd());break;case"resumeEvent":eg&&(null===(T=window)||void 0===T||null===(I=T.VideoAnalyticsPlugins)||void 0===I||I.handleResume()),ep&&(null===(C=window)||void 0===C||null===(N=C.VideoAnalyticsPlugin)||void 0===N||N.handleResume());break;case"pauseEvent":eg&&(null===(A=window)||void 0===A||null===(D=A.VideoAnalyticsPlugins)||void 0===D||D.pauseHandler(ek,window.playerSetup)),ep&&(null===(B=window)||void 0===B||null===(E=B.VideoAnalyticsPlugin)||void 0===E||E.handlePause());break;case"bufferEvent":eg&&(null===(V=window)||void 0===V||null===(R=V.VideoAnalyticsPlugins)||void 0===R||R.OnBufferHandler(ek,window.playerSetup)),ep&&(null===(L=window)||void 0===L||null===(M=L.VideoAnalyticsPlugin)||void 0===M||M.handleBufferStart());break;case"bitRateEvent":eg&&(null===(O=window)||void 0===O||null===(F=O.VideoAnalyticsPlugins)||void 0===F||F.playerSetBitRateHandler(ek,window.playerSetup));break;case"seek":eg&&(null===(U=window)||void 0===U||null===(Z=U.VideoAnalyticsPlugins)||void 0===Z||Z.onSeekHandler(ek)),ep&&(null===(W=window)||void 0===W||null===(q=W.VideoAnalyticsPlugin)||void 0===q||q.handleSeek({STPosition:Math.floor(1e3*ek.position),ETPosition:Math.floor(1e3*ek.offset)}));break;case"completeEvent":eg&&(null===(H=window)||void 0===H||null===(J=H.VideoAnalyticsPlugins)||void 0===J||J.CompleteHandler(ek,window.playerSetup)),ep&&(null===(G=window)||void 0===G||null===(z=G.VideoAnalyticsPlugin)||void 0===z||z.handlePlayCompleted());break;case"errorEvent":eg&&(null===(Y=window)||void 0===Y||null===(K=Y.VideoAnalyticsPlugins)||void 0===K||K.OnErrorHandler(ek)),ep&&(null===(X=window)||void 0===X||null===(Q=X.VideoAnalyticsPlugin)||void 0===Q||Q.handleError({errorMsg:ek&&ek.message?ek.message:"network error"}));break;case"bitRateChangeEvent":eg&&(null===(et=window)||void 0===et||null===(ee=et.VideoAnalyticsPlugins)||void 0===ee||ee.handleBitRateChange(ek,window.playerSetup)),ep&&(null===(en=window)||void 0===en||null===(ei=en.VideoAnalyticsPlugin)||void 0===ei||ei.handleBitRateChange());break;case"adStartEvent":eg&&(null===(ea=window)||void 0===ea||null===(el=ea.VideoAnalyticsPlugins)||void 0===el||el.handleAdStarted({adType:ek})),ep&&(null===(es=window)||void 0===es||null===(eo=es.VideoAnalyticsPlugin)||void 0===eo||eo.handleAdStarted({adType:ek}));break;case"adCompleteEvent":eg&&(null===(ed=window)||void 0===ed||null===(er=ed.VideoAnalyticsPlugins)||void 0===er||er.handleAdCompleted({adType:ek})),ep&&(null===(eu=window)||void 0===eu||null===(ec=eu.VideoAnalyticsPlugin)||void 0===ec||ec.handleAdCompleted({adType:ek}));break;case"adSkipEvent":eg&&(null===(em=window)||void 0===em||null===(ev=em.VideoAnalyticsPlugins)||void 0===ev||ev.handleAdSkipped({adType:ek})),ep&&(null===(ey=window)||void 0===ey||null===(e_=ey.VideoAnalyticsPlugin)||void 0===e_||e_.handleAdSkipped({adType:ek}));break;case"handlePlayEndedByUserEvent":eg&&(null===(ef=window)||void 0===ef||null===(eh=ef.VideoAnalyticsPlugins)||void 0===eh||eh.handlePlayEndedByUser()),ep&&(null===(ew=window)||void 0===ew||null===(eb=ew.VideoAnalyticsPlugin)||void 0===eb||eb.handlePlayEndedByUser())}},em=D()(()=>i.e(5017).then(i.bind(i,57615)),{loadableGenerated:{webpack:()=>[57615]}}),e_=D()(()=>i.e(6678).then(i.bind(i,16678)),{loadableGenerated:{webpack:()=>[16678]}}),ey=D()(()=>i.e(5868).then(i.bind(i,93463)),{loadableGenerated:{webpack:()=>[93463]},ssr:!1}),eh=D()(()=>
1Promise.all([i.e(7520),i.e(6526)]).then(i.bind(i,27520)),{loadableGenerated:{webpack:()=>[27520]}}),ButtonWrapper=e=>{let{button:t,btnHandler:i}=e,btnClick=()=>{i(t)};if("button"==t.elementType)return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("button",{onClick:()=>btnClick(),className:"primary ".concat(J()[t.data]," ").concat(t.data),children:[" ",t.data," ",e.children]})})};var jw_playerold_component=e=>{var t,i,n,l,p,g,m,y,h,f,w,k,x,S,I,C,D,A,E,B,R,V,M,L,F,O;let Z,{streamPath:q,setVideoBgImage:W,setShowGoAdFreeBtn:H}=e,{state:{PageData:z,userDetails:G,navigateFrom:K,SystemFeature:Y,playerUtils:Q,SystemConfig:el,localLang:ea},dispatch:eo}=(0,s.oR)(),{mutate:es,data:er}=(0,u.Z)(),{mutate:ed,data:ec}=(0,U.Z)(),[eu,ev]=(0,o.useState)({}),ep=(0,o.useRef)(null),[eg,ef]=(0,o.useState)((0,T.rV)("LocationData")||{}),eb=(0,r.useRouter)();(0,o.useRef)(null);let ew=(0,o.useRef)(null),ek=(0,o.useRef)(null),ex=(0,o.useRef)({}),[eS,ej]=(0,o.useState)(!0),[eP,eI]=(0,o.useState)([]),eT=(0,o.useRef)(null),[eN,eC]=(0,o.useState)(!1),[eD,eA]=(0,o.useState)(!1),eE=(0,o.useRef)(null),{mutate:eB,data:eR}=(0,U.Z)(),{mutate:eV,data:eM}=(0,U.Z)(),[eL,eF]=(0,o.useState)({status:!1}),eO=(0,o.useRef)(!0),eZ=(0,o.useRef)(!1),eU=(0,o.useRef)(null),[eq,eW]=(0,o.useState)(),[eJ,eH]=(0,o.useState)(!1),[ez,eG]=(0,o.useState)({}),[eK,eY]=(0,o.useState)(!1),[eQ,eX]=(0,o.useState)({}),e$=(0,o.useRef)(!1),e0=(0,o.useRef)(3),e1=(0,o.useRef)(0),e2=[],e3=(0,o.useRef)(null),e5=(0,o.useRef)(null),e6=(0,o.useRef)(!1),e7=(0,o.useRef)(!1),e4=(0,o.useRef)(!1),e8=(0,o.useRef)(!1),e9=(0,o.useRef)(null),te=(0,o.useRef)(null),tt=(0,o.useRef)(!1),[ti,tn]=(0,o.useState)(!1),[tl,ta]=(0,o.useState)([]),[to,ts]=(0,o.useState)([]),[tr,td]=(0,o.useState)(""),[tc,tu]=(0,o.useState)(!1),[tv,tp]=(0,o.useState)(!1),[tg,tm]=(0,o.useState)(!1),[t_,ty]=(0,o.useState)(!1),[th,tf]=(0,o.useState)(!1),[tb,tw]=(0,o.useState)(!1),[tk,tx]=(0,o.useState)(!1),[tS,tj]=(0,o.useState)({}),[tP,tI]=(0,o.useState)(!1),[tT,tN]=(0,o.useState)(!1),[tC,tD]=(0,o.useState)(!1),{mutate:tA,data:tE}=(0,u.Z)(),[tB,tR]=(0,o.useState)({}),[tV,tM]=(0,o.useState)(!1);(0,o.useRef)(!0);let[tL,tF]=(0,o.useState)(0),[tO,tZ]=(0,o.useState)(!1),[tU,tq]=(0,o.useState)(!1),[tW,tJ]=(0,o.useState)(!1),[tH,tz]=(0,o.useState)(0),[tG,tK]=(0,o.useState)(!1),[tY,tQ]=(0,o.useState)(""),[tX,t$]=(0,o.useState)({enabled:!1,data:{}}),[t0,t1]=(0,o.useState)({}),[t2,t3]=(0,o.useState)(!1),{mutate:t5,data:t6}=(0,u.Z)(),{mutate:t7,data:t4}=(0,U.Z)(),[t8,t9]=(0,o.useState)(!1),[ie,it]=(0,o.useState)(!1),ii=(0,o.useRef)(null),il=(0,o.useRef)(0);O=()=>{sessionStorage.clear()},(0,o.useEffect)(()=>{let eventListener=e=>{"function"==typeof O&&O()};return window.addEventListener("beforeunload",eventListener),()=>{window.removeEventListener("beforeunload",eventListener)}},[O]),(0,o.useEffect)(()=>{let handleFullscreenChange=()=>{tK(null!==document.fullscreenElement)};return document.addEventListener("fullscreenchange",handleFullscreenChange),()=>{document.removeEventListener("fullscreenchange",handleFullscreenChange)}},[]),(0,o.useEffect)(()=>(t8&&(ii.current=setInterval(()=>{il.current=il.current+1},1e3)),()=>{t8&&(postRecoData({onWatchTimer:il.current,path:eb.asPath}),clearInterval(ii.current),ii.current=null,il.current=0)}),[t8]),(0,o.useEffect)(()=>{var e,t,i,n,l;if((null==Y?void 0:null===(t=Y.encryptApisList)||void 0===t?void 0:null===(e=t.fields)||void 0===e?void 0:e.payment)==="true"){let e=null==t4?void 0:null===(i=t4.data)||void 0===i?void 0:i.data;if(e)try{(e=JSON.parse((0,d.ow)(e))).status?t$({enabled:!0,data:e.response}):eo({type:s.Nw.o4,payload:{message:null===(n=e.error)||void 0===n?void 0:n.message}})}catch(e){}}else{let e=null==t4?void 0:t4.data;e&&(e.status?t$({enabled:!0,data:e.response}):eo({type:s.Nw.o4,payload:{message:null===(l=e.error)||void 0===l?void 0:l.message}}))}},[t4]),(0,o.useEffect)(()=>{var e,t,i,n,l,a,o,s,r,d,c;if(null==t6?void 0:null===(e=t6.data)||void 0===e?void 0:e.status){let e={},{data:u}=t6;if(t1(u.response[0]),e.userSelectedPack=null===(n=u.response)||void 0===n?void 0:null===(i=n[0])||void 0===i?void 0:null===(t=i.packageInfo)||void 0===t?void 0:t.packages[0],e.masterPack=null===(o=u.response)||void 0===o?void 0:null===(a=o[0])||void 0===a?void 0:null===(l=a.packageInfo)||void 0===l?void 0:l.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)proceedToPayRazor(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);eb.push({pathname:t,query:{path:eb.asPath.replace("/",""),package_type:"2",gateway:e.suppGateWays[0].code}},t)}}},[t6]);let proceedToPayRazor=e=>{var t,i;let n={gateway:"razorpay",packages:e.userSelectedPack.id.toString()};if((null==Y?void 0:null===(i=Y.encryptApisList)||void 0===i?void 0:null===(t=i.fields)||void 0===t?void 0:t.payment)=="true"){let e={data:(0,d.q6)(JSON.stringify(n)),metadata:(0,d.q6)(JSON.stringify({request:"order/checkout"}))};postPaymentData("".concat("https://lukentv-api.revlet.net","/service/api/v1/send"),e)}else postPaymentData("".concat("https://lukentv-api.revlet.net","/payment/api/v1/order/checkout"),n)};(0,o.useEffect)(()=>(addForwardIcons(),()=>{let e=document.getElementById("frwdIcon");e&&(e.style.display="none",e.style.pointerEvents="all")}),[tC]);let postPaymentData=(e,t)=>{t7({url:e,apiData:t})},ia=(0,T.rV)("isloggedin"),io=(0,T.rV)("last_channel_info")!=eb.asPath&&(0,T.rV)("last_channel_info")||"";(0,o.useEffect)(()=>{let e={playerSrc:"https://cdn.jwplayer.com/libraries/UOy0Li5w.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,o.useEffect)(()=>{Q&&Q.startover&&(eZ.current=Q.startover,eo({type:s.Nw.jr,payload:{}}))},[Q]),(0,o.useEffect)(()=>{var e;(null==el?void 0:null===(e=el.configs)||void 0===e?void 0:e.videoQualitySettings)&&(e5.current=JSON.parse(el.configs.videoQualitySettings),e5.current&&getSelectedBitrate(e5.current))},[el]),(0,o.useEffect)(()=>{var e,t,i;return(null===b.e||void 0===b.e?void 0:null===(e=b.e.adsSupport)||void 0===e?void 0:e.jioAds)&&tn(!0),(null===(i=eT.current)||void 0===i?void 0:null===(t=i.style)||void 0===t?void 0:t.height)&&(eT.current.style.height=.5625*eT.current.clientWidth+"px"),()=>{var e,t,i,n,l,a,o,s;try{(null===(t=eU.current.pageAttributes)||void 0===t?void 0:t.isLive)==="true"?(0,T.LS)("last_channel_info",eb.asPath):(0,T.wz)("last_channel_info"),sendPlayerAnalytics("handlePlayEndedByUserEvent"),ew.current&&(null===(l=playerInstanceRef.current)||void 0===l||l.stop(),null===(a=playerInstanceRef.current)||void 0===a||a.remove()),eU.current&&(null===(n=eU.current)||void 0===n?void 0:null===(i=n.response)||void 0===i?void 0:i.sessionInfo)&&endActiveStream(eU.current.response.sessionInfo.streamPollKey),(null==eE?void 0:eE.current)&&clearInterval(eE.current)}catch(e){}if(null===(e=window)||void 0===e?void 0:e.jwplayer)try{null===(o=window)||void 0===o||o.jwplayer(ep.current).stop(),null===(s=window)||void 0===s||s.jwplayer(ep.current).remove(),ti&&distroyJioVideo()}catch(e){console.log(e)}}},[]),(0,o.useEffect)(()=>{eT.current&&(eT.current.style.height=.5625*eT.current.clientWidth+"px")},[eD]),(0,o.useEffect)(()=>{var e,t,i,n,l,a,o,s,r,d;let c=!1;null==z||null===(e=z.data)||void 0===e||e.map(e=>{var t,i,n;(null==e?void 0:e.paneType)==="content"&&(null==e||null===(i=e.content)||void 0===i||i.dataRows.map(e=>{(null==e?void 0:e.rowDataType)==="button"&&(c=!0,eI(e.elements))})),!tY&&(null==e?void 0:null===(t=e.content)||void 0===t?void 0:t.t
1itle)&&tQ(null==e?void 0:null===(n=e.content)||void 0===n?void 0:n.title)}),z&&((null==z?void 0:null===(t=z.streamStatus)||void 0===t?void 0:t.hasAccess)||(null==z?void 0:null===(i=z.streamStatus)||void 0===i?void 0:i.trailerStreamStatus)&&(null==z?void 0:z.info.attributes.playerType)=="trailer"||(null==z?void 0:null===(n=z.streamStatus)||void 0===n?void 0:n.previewStreamStatus)&&(null==z?void 0:z.info.attributes.playerType)=="preview"?(ej(!1),ev(z),(null==z?void 0:null===(a=z.streamStatus)||void 0===a?void 0:a.previewStreamStatus)&&(null==z?void 0:z.info.attributes.playerType)=="preview"&&tx(!0),getStream(),eA(""),eC(""),ef((0,T.rV)("LocationData")),(null==z?void 0:null===(s=z.info)||void 0===s?void 0:null===(o=s.attributes)||void 0===o?void 0:o.showNextButton)=="true"&&getNextEpisodePre()):(ej(!0),eA(null==z?void 0:null===(r=z.streamStatus)||void 0===r?void 0:r.message),(null==z?void 0:null===(d=z.streamStatus)||void 0===d?void 0:d.errorCode)!=-15||c||eI([{elementSubtype:"verify_email",data:"Verify Email",id:64,target:"verify_email",elementType:"button"}]))),null==z||null===(l=z.data)||void 0===l||l.map(e=>{if((null==e?void 0:e.paneType)==="content"){var t;null==e||null===(t=e.content)||void 0===t||t.dataRows.map(e=>{(null==e?void 0:e.rowDataType)==="button"&&(eI(e.elements),e.elements.length&&e.elements.forEach(e=>{var t,i,n,l,a,o,s,r,d,c,u,v,p,g,m;(null==e?void 0:e.elementSubtype)=="signup"||(null==e?void 0:e.elementSubtype)=="signin"?(eC(null==z?void 0:null===(i=z.info)||void 0===i?void 0:null===(t=i.attributes)||void 0===t?void 0:t.ContentAccessErrorMessage),eA((null==z?void 0:null===(l=z.info)||void 0===l?void 0:null===(n=l.attributes)||void 0===n?void 0:n.SignAndSignupErrorMessage)||(null==z?void 0:null===(a=z.streamStatus)||void 0===a?void 0:a.message))):"subscribe"==e.elementSubtype?(eC(null==z?void 0:null===(s=z.info)||void 0===s?void 0:null===(o=s.attributes)||void 0===o?void 0:o.ContentAccessErrorMessage),eA((null==z?void 0:null===(d=z.info)||void 0===d?void 0:null===(r=d.attributes)||void 0===r?void 0:r.SubscribeErrorMessage)||(null==z?void 0:null===(c=z.streamStatus)||void 0===c?void 0:c.message))):"rent"==e.elementSubtype&&(eC(null==z?void 0:null===(v=z.info)||void 0===v?void 0:null===(u=v.attributes)||void 0===u?void 0:u.ContentAccessErrorMessage),eA((null==z?void 0:null===(g=z.info)||void 0===g?void 0:null===(p=g.attributes)||void 0===p?void 0:p.RentErrorMessage)||(null==z?void 0:null===(m=z.streamStatus)||void 0===m?void 0:m.message)))}))})}})},[z]),(0,o.useEffect)(()=>{ti&&jioConfig()},[ti]),(0,o.useEffect)(()=>{var e;eg&&(null==eg?void 0:null===(e=eg.data)||void 0===e?void 0:e.analyticsInfo)&&initAnalytics()},[eg]);let getNextEpisodePre=()=>{var e,t,i,n,l;tj({...tS,displayStatus:!1});let a="https://lukentv-api.revlet.net"+(eU.current&&(null===(e=eU.current)||void 0===e?void 0:e.analyticsInfo)&&(null===(i=eU.current)||void 0===i?void 0:null===(t=i.analyticsInfo)||void 0===t?void 0:t.dataType)=="epg"&&(null===(l=eU.current)||void 0===l?void 0:null===(n=l.analyticsInfo)||void 0===n?void 0:n.contentType)=="vod"?"/service/api/v1/next/epgs?":"/service/api/v1/next/videos?")+(0,d.Yo)({path:q,count:"1"});try{tA(a)}catch(e){}};(0,o.useEffect)(()=>{eL&&(io&&tJ(!1),tS&&tj(!1),tC&&tD(!1),tg&&tm(!1),removePlayerIcons())},[eL]);let initAnalytics=function(){var e,t,i,n,l,a;let o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(eg&&(null==eg?void 0:null===(e=eg.data)||void 0===e?void 0:e.analyticsInfo)){let e={analytics_id:"41aa7c90eb2b7b19e1e5e1ea8edbda1d",authKey:null==eg?void 0:null===(t=eg.data)||void 0===t?void 0:t.analyticsInfo.authKey,trueIp:null==eg?void 0:null===(i=eg.data)||void 0===i?void 0:i.ipInfo.trueIP,clientId:null==eg?void 0:null===(n=eg.data)||void 0===n?void 0:n.ipInfo.trueIP};console.log(null===b.e||void 0===b.e?void 0:b.e.supportedVideoAnalytics),(null===b.e||void 0===b.e?void 0:null===(l=b.e.supportedVideoAnalytics)||void 0===l?void 0:l.isV2AnalyticsSupport)&&(ew.current=loadPlayerAnalytics(e,null,!1)),(null===b.e||void 0===b.e?void 0:null===(a=b.e.supportedVideoAnalytics)||void 0===a?void 0:a.isVideoGraphAnalyticsSupport)&&(ek.current=loadPlayerAnalytics(null==eg?void 0:eg.data,o,!0))}};(0,o.useEffect)(()=>{eL&&(io&&tJ(!1),tS&&tj(!1),tC&&tD(!1),tg&&tm(!1),removePlayerIcons())},[eL]);let nextVideoCheck=()=>{var e,t,i,n,l,a,o,s,r,d;let c=Math.round(window.jwplayer().getDuration()-window.jwplayer().getPosition()),u=null==tE?void 0:null===(t=tE.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==z?void 0:null===(n=z.info)||void 0===n?void 0:null===(i=n.attributes)||void 0===i?void 0:i.creditsStartTime)?parseInt(null==z?void 0:null===(a=z.info)||void 0===a?void 0:null===(l=a.attributes)||void 0===l?void 0:l.creditsStartTime):null,t=(null==el?void 0:null===(o=el.configs)||void 0===o?void 0:o.nextVideoDisplaySeconds)?parseInt(null==el?void 0:null===(s=el.configs)||void 0===s?void 0:s.nextVideoDisplaySeconds):null;window.jwplayer().getPosition()>10&&(null==z?void 0:null===(d=z.info)||void 0===d?void 0:null===(r=d.attributes)||void 0===r?void 0:r.showNextButton)=="true"&&!tk?(tx(!1),tj(e=>({...e,displayStatus:!0}))):tj(e=>({...e,displayStatus:!1})),(e&&e<window.jwplayer().getPosition()||!e&&t&&t>=c)&&!tk?((0,P.qP)("autoplay",analyticsData({eventName:"autoplay"})),tZ(!0),tx(!1),tj(e=>({...e,displayStatus:!1}))):tZ(!1)}};(0,o.useEffect)(()=>
1{if(null==tE?void 0:tE.data){var e,t,i,n;tj({...tS,nextVideoTargetPath:null==tE?void 0:null===(n=tE.data)||void 0===n?void 0:null===(i=n.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})}else tj({...tS,displayStatus:!1})},[tE]),(0,o.useEffect)(()=>{eL&&(io&&tJ(!1),removePlayerIcons())},[eL]),(0,o.useEffect)(()=>{var e,t,i,n,l,a,o,s,r,d,c,u,v,p,g,m;initAnalytics(null==er?void 0:null===(e=er.data)||void 0===e?void 0:e.response),(null==er?void 0:null===(t=er.data)||void 0===t?void 0:t.status)?(ej(!1),eU.current=null==er?void 0:null===(n=er.data)||void 0===n?void 0:n.response,initStreamData(er.data)):(null==er?void 0:null===(i=er.data)||void 0===i?void 0:i.status)!=void 0&&(eA(null==er?void 0:null===(a=er.data)||void 0===a?void 0:null===(l=a.error)||void 0===l?void 0:l.message),ej(!0),((null==er?void 0:null===(s=er.data)||void 0===s?void 0:null===(o=s.error)||void 0===o?void 0:o.code)==-820||(null==er?void 0:null===(d=er.data)||void 0===d?void 0:null===(r=d.error)||void 0===r?void 0:r.code)==-821||(null==er?void 0:null===(u=er.data)||void 0===u?void 0:null===(c=u.error)||void 0===c?void 0:c.code)==-823)&&eX({isActive:!0,code:null==er?void 0:null===(p=er.data)||void 0===p?void 0:null===(v=p.error)||void 0===v?void 0:v.code,errorMessage:null==er?void 0:null===(m=er.data)||void 0===m?void 0:null===(g=m.error)||void 0===g?void 0:g.message,closeTarget:()=>eb.back()}))},[er]);let navigateToSignIn=()=>{eo({type:s.Nw.t3,payload:eb.asPath}),handleClose(),eb.push("/signin")};(0,o.useEffect)(()=>{if(eR&&!eR.data.status){var e,t,i,n,l,a,o;eF({status:!0,title:null==eR?void 0:null===(t=eR.data)||void 0===t?void 0:null===(e=t.error)||void 0===e?void 0:e.message,description:null==eR?void 0:null===(l=eR.data)||void 0===l?void 0:null===(n=l.error)||void 0===n?void 0:null===(i=n.details)||void 0===i?void 0:i.description,code:null==eR?void 0:null===(o=eR.data)||void 0===o?void 0:null===(a=o.error)||void 0===a?void 0:a.code});try{window.jwplayer().stop(),clearInterval(eE.current)}catch(e){}}},[eR]);let closePlayer=()=>{eb.push("/")},handlePlansPopupAfterAd=()=>{var e;let t;if(!G||!G.userId){try{let e=window.jwplayer(ep.current);e&&"playing"!==e.getState()&&e.play(!0)}catch(e){}return}let i=sessionStorage.getItem("plansPopupShown");if("true"===i){try{let e=window.jwplayer(ep.current);e.play(!0)}catch(e){}return}let n=null==el?void 0:null===(e=el.configs)||void 0===e?void 0:e.signinPopupAdFreePlanUpgrade;if(!n)return;try{t="string"==typeof n?JSON.parse(n):n}catch(e){return}sessionStorage.setItem("plansPopupShown","true"),setTimeout(()=>{try{let e=window.jwplayer(ep.current);e&&"playing"===e.getState()&&e.pause(!0)}catch(e){}},300);let l={type:"plans",isActive:!0,topImg:!0,topImgValue:t.imageUrl,title1:t.title1,title2:t.title2,yesButton1:"close",yesButtonType:"primary",yesButtonTarget1:handleClose,noButton1:t.plansButtonText,noButtonType:"secondary",noButtonTarget1:()=>{eY({}),eb.push("/buy/packages-list")},close:!0,closeTarget:handleClose};eY(l)};(0,o.useEffect)(()=>{if(null==eK?void 0:eK.isActive)try{let e=window.jwplayer(ep.current);e.pause(!0)}catch(e){}},[eK]);let is=(0,o.useRef)(!1),handleSigninPopupLogic=()=>{var e,t,i,n;let l;if(G||is.current)return;let a=null==el?void 0:null===(e=el.configs)||void 0===e?void 0:e.signinPopupAdFreePlanUpgrade;if(!a)return;try{l="string"==typeof a?JSON.parse(a):a}catch(e){return}let o=Number(l.popupAfterVideoViews||5),s=Number(l.popupsPerDay||3),r=new Date().toDateString(),d=Number(localStorage.getItem("videoViews")||0),c=Number(localStorage.getItem("signinPopupCount")||0);if(localStorage.getItem("signinPopupDate")!==r&&(c=0,localStorage.setItem("signinPopupDate",r),localStorage.setItem("signinPopupCount","0")),d+=1,localStorage.setItem("videoViews",d.toString()),(d-1)%o==0&&1!==d&&c<s){is.current=!0,c+=1,localStorage.setItem("signinPopupCount",c.toString());try{window.jwplayer&&ep.current&&window.jwplayer(ep.current).pause()}catch(e){console.log("Pause failed",e)}let e={type:"signin",isActive:!0,title1:null===(t=N.C[ea])||void 0===t?void 0:t.To_access_this_feature_please_sign_in,yesButton1:null===(i=N.C[ea])||void 0===i?void 0:i.Cancel,yesButtonType:"secondary",yesButtonTarget1:handleClose,noButton1:null===(n=N.C[ea])||void 0===n?void 0:n.Sign_In,noButtontarget1:navigateToSignIn,noButtonType:"primary",close:!0,closeTarget:handleClose};eG(e)}};(0,o.useEffect)(()=>
1{if(null==ec?void 0:ec.data){var e,t,i,n,l,a,o;let s=JSON.parse((0,d.ow)(null==ec?void 0:null===(e=ec.data)||void 0===e?void 0:e.data));s.status?(eA(""),eC(""),ej(!1),eU.current=null==s?void 0:s.response,initStreamData(s)):(eA(null==s?void 0:null===(t=s.error)||void 0===t?void 0:t.message),ej(!0),((null==s?void 0:null===(i=s.error)||void 0===i?void 0:i.code)==-820||(null==s?void 0:null===(n=s.error)||void 0===n?void 0:n.code)==-821||(null==s?void 0:null===(l=s.error)||void 0===l?void 0:l.code)==-823)&&eX({isActive:!0,code:null==s?void 0:null===(a=s.error)||void 0===a?void 0:a.code,errorMessage:null==s?void 0:null===(o=s.error)||void 0===o?void 0:o.message,closeTarget:()=>eb.back()}))}},[ec]),(0,o.useEffect)(()=>{tU&&tO&&nextEpisode()},[tU,tO]),(0,o.useState)(()=>{""!=tr&&window.jwplayer().pause()},[tr,to,tl]);let branchData=()=>{var e,t,i,n,l,a,o,s,r,d,c,u,v,p,g,m,_,y,h;let f=null==z?void 0:null===(e=z.data)||void 0===e?void 0:e.reduce((e,t)=>{if((null==t?void 0:t.paneType)==="content"){var i;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}})})}return e},{}),b={contentType:null==z?void 0:null===(i=z.info)||void 0===i?void 0:null===(t=i.attributes)||void 0===t?void 0:t.contentType,contentId:null==z?void 0:null===(l=z.info)||void 0===l?void 0:null===(n=l.attributes)||void 0===n?void 0:n.contentID,contentTitle:null==f?void 0:f.title,content_genre:(null===(o=eU.current)||void 0===o?void 0:null===(a=o.pageAttributes)||void 0===a?void 0:a.genre)||(null==f?void 0:f.pgrating)||"-1"};return(null===(r=eU.current)||void 0===r?void 0:null===(s=r.pageAttributes)||void 0===s?void 0:s.tvShowName)&&(b.series_name=null===(g=eU.current)||void 0===g?void 0:null===(p=g.pageAttributes)||void 0===p?void 0:p.tvShowName),(null===(c=eU.current)||void 0===c?void 0:null===(d=c.pageAttributes)||void 0===d?void 0:d.seasonSeqNo)&&(b.season_number=null===(_=eU.current)||void 0===_?void 0:null===(m=_.pageAttributes)||void 0===m?void 0:m.seasonSeqNo),(null===(v=eU.current)||void 0===v?void 0:null===(u=v.pageAttributes)||void 0===u?void 0:u.episodeSeqNo)&&(b.episode_number=null===(h=eU.current)||void 0===h?void 0:null===(y=h.pageAttributes)||void 0===y?void 0:y.episodeSeqNo),b},analyticsData=()=>{var e,t,i,n,l,a,o,s,r,d,c,u,v,p,g,m,_,y,h,f,b,w,k,x,S,j,P,I,T,N,C,D,A,E,B;let R=null==z?void 0:null===(e=z.data)||void 0===e?void 0:e.reduce((e,t)=>{if((null==t?void 0:t.paneType)==="content"){var i;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}})})}return e},{}),V=null===(i=window)||void 0===i?void 0:null===(t=i.jwplayer())||void 0===t?void 0:t.getPosition(),M=null===(l=window)||void 0===l?void 0:null===(n=l.jwplayer())||void 0===n?void 0:n.getDuration(),L={contentTitle:null==R?void 0:R.title,ContentGenre:(null===(o=eU.current)||void 0===o?void 0:null===(a=o.pageAttributes)||void 0===a?void 0:a.genre)||(null==R?void 0:R.pgrating)||"NA",channel_partner:(null===(r=eU.current)||void 0===r?void 0:null===(s=r.pageAttributes)||void 0===s?void 0:s.networkName)||"-1",studioName:(null===(c=eU.current)||void 0===c?void 0:null===(d=c.pageAttributes)||void 0===d?void 0:d.networkName)||"NA",contentType:(null==z?void 0:null===(v=z.info)||void 0===v?void 0:null===(u=v.attributes)||void 0===u?void 0:u.contentType)||"NA",contentId:(null==z?void 0:null===(g=z.info)||void 0===g?void 0:null===(p=g.attributes)||void 0===p?void 0:p.contentID)||"NA",CCenabled:window.jwplayer().getCaptionsList()>1?"true":"false",playbackspeed:(null===(_=window)||void 0===_?void 0:null===(m=_.jwPlayer)||void 0===m?void 0:m.getPlaybackRate)||"NA",bufferTime:(null===(h=window)||void 0===h?void 0:null===(y=h.jwPlayer)||void 0===y?void 0:y.getBuffer())||"NA",watchtedTime:M-(M-V)||0,producer:"",isCasting:"true",isFree:(null===(b=eU.current)||void 0===b?void 0:null===(f=b.analyticsInfo)||void 0===f?void 0:f.packageType)=="free",seekStartt
1:(null===(k=window)||void 0===k?void 0:null===(w=k.jwplayer())||void 0===w?void 0:w.getPosition())||0};return(null===(S=eU.current)||void 0===S?void 0:null===(x=S.pageAttributes)||void 0===x?void 0:x.tvShowName)&&(L.series_name=null===(C=eU.current)||void 0===C?void 0:null===(N=C.pageAttributes)||void 0===N?void 0:N.tvShowName),(null===(P=eU.current)||void 0===P?void 0:null===(j=P.pageAttributes)||void 0===j?void 0:j.seasonSeqNo)&&(L.season_number=null===(A=eU.current)||void 0===A?void 0:null===(D=A.pageAttributes)||void 0===D?void 0:D.seasonSeqNo),(null===(T=eU.current)||void 0===T?void 0:null===(I=T.pageAttributes)||void 0===I?void 0:I.episodeSeqNo)&&(L.episode_number=null===(B=eU.current)||void 0===B?void 0:null===(E=B.pageAttributes)||void 0===E?void 0:E.episodeSeqNo),L},setJioAdState=e=>{tn(e)},playerBackButton=()=>{var e,t,i,n;let l=null===(t=window)||void 0===t?void 0:null===(e=t.jwplayer)||void 0===e?void 0:e.call(t,ep.current);if(null==l?void 0:null===(i=l.getFullscreen)||void 0===i?void 0:i.call(l)){l.setFullscreen(!1);return}try{let e=l||(null===(n=window)||void 0===n?void 0:n.jwplayer());console.log("%c Line:1065 \uD83C\uDF2E playerJw","color:#3f7cff",e);let t=null==e?void 0:e.getDuration(),i=null==e?void 0:e.getPosition();if((-1===t||t===1/0)&&(t=0),t>0){let e=i/t*100;(0,P.qP)("video_stream",analyticsData("ended",{completed:"".concat(Math.floor(e),"%"),duration:Math.floor(t),duration_viewed:Math.floor(i)}))}}catch(e){}eb.back()},startPlay=e=>{let t=document.querySelector(".jw-error-msg");t&&(t.style.display="flex");let i=document.createElement("div");console.log("%c Line:1099 \uD83C\uDF6A titlediv","color:#33a5ff",i),i.className="".concat(J().player_title," fullscreentitlediv"),i.id="fullscreentitlediv",i.onclick=playerBackButton,i.innerHTML="<img\n className=".concat(J().detail_back,'\n src="https://dk25kpz5k9ky9.cloudfront.net/images/back_arrow_player_page.svg"\n alt="back_btn"\n style="width:35px;height:35px;background: transparent url(\'img/ic_arrow_back.png\') 0% 0% no-repeat padding-box;"\n /><h2 style="font: var(--unnamed-font-style-normal) normal var(--unnamed-font-weight-bold) 42px/63px var(--unnamed-font-family-roboto);font-weight:bold;font-size:24px;">').concat(tY,"</h2>");let{adSpots:n,cuepoints:l}=checkJioAds();eO.current=!0;let a={playlist:e,advertising:getAdDada(),primary:"html5",width:"100%",autostart:!0,preload:"auto",pipIcon:"disabled",aspectratio:"16:9",floating:!1,playbackRates:[.5,.75,1,1.5,2],intl:{en:{notLive:"Go Live"}},captions:{fontSize:10,backgroundOpacity:0},logo:{hide:"false",position:"bottom-right"},events:{ready:e=>{var t,i,a,o,s;if(window.jwplayer())try{let e=null===(s=window)||void 0===s?void 0:null===(o=s.jwplayer)||void 0===o?void 0:o.call(s),t=e.getContainer();if(!t)return;let i=0,preventDoubleTapFullscreen=e=>{e.preventDefault(),e.stopImmediatePropagation()};t.addEventListener("dblclick",preventDoubleTapFullscreen,!0),t.addEventListener("touchend",e=>{let t=Date.now();t-i<=300&&preventDoubleTapFullscreen(e),i=t},!0),t.addEventListener("click",e=>{var t,i,n,l,a,o,s,r,d,c,u,v,p,g,m,_;let y="";(null===(i=e.target)||void 0===i?void 0:null===(t=i.classList)||void 0===t?void 0:t.contains("jw-settings-close"))?y="Video Quality Popup Cancelled":(null===(l=e.target)||void 0===l?void 0:null===(n=l.classList)||void 0===n?void 0:n.contains("jw-icon-settings"))&&(y="settings"),y&&(0,P.qP)("player_actions",{...analyticsData(y),ctEventDataParam:{content_type:(null==z?void 0:null===(o=z.info)||void 0===o?void 0:null===(a=o.attributes)||void 0===a?void 0:a.contentType)||"NA",action:y,player_type:getPlayerType(playerScreenRef.current),content_partner_name:(null===(r=eU.current)||void 0===r?void 0:null===(s=r.pageAttributes)||void 0===s?void 0:s.networkName)||"Chaupal",content_title:(null==z?void 0:null===(c=z.info)||void 0===c?void 0:null===(d=c.attributes)||void 0===d?void 0:d.tvShowName)||tY||(null==z?void 0:null===(p=z.data)||void 0===p?void 0:null===(v=p[0])||void 0===v?void 0:null===(u=v.content)||void 0===u?void 0:u.title)||"",content_genre:(null===(_=e
1U.current)||void 0===_?void 0:null===(m=_.pageAttributes)||void 0===m?void 0:null===(g=m.genre)||void 0===g?void 0:g.replace(/[â¢]/g,","))||"NA",tab:(0,T.rV)("tab")||"Home",category_name:(0,T.rV)("contentSectionName")}})})}catch(e){}else document.getElementById("fullscreentitlediv")&&document.getElementById("fullscreentitlediv").remove();W(),0==e1.current&&(sendPlayerAnalytics("thumbnailVideoClick"),sendPlayerAnalytics("handlePlayerLoad"));let r=document.querySelector(".videospinner");r?r.style.display="none":document.querySelector(".jw-preview").innerHTML+="<div class='videospinner' style='display: none'><span class='loader'></span></div>",(null===(t=eU.current.pageAttributes)||void 0===t?void 0:t.isLive)==="true"?tD(!1):(null===(a=eU.current)||void 0===a?void 0:null===(i=a.analyticsInfo)||void 0===i?void 0:i.contentType)==="live"?tD(!1):tD(!0),ti&&setTimeout(()=>{var e,t;let i=document.getElementById("player-wrap-jio");$("#player_div").append(i),(null==n?void 0:null===(e=n[0])||void 0===e?void 0:e.length)&&(eZ.current||eU.current.streamStatus.seekPositionInMillis<=6e5)?managePreRole(l):setJioAdState(!1),(null==n?void 0:null===(t=n[1])||void 0===t?void 0:t.length)&&addCuePoints(l)},500)},play:e=>{var t,i,n,l,a,o,s,r;tt.current&&(tt.current=!1,ex.current.isVideoBuffering=!1,sendPlayerAnalytics("bufferEvent",{type:"end"})),window.getTotalVideoLength=()=>{var e,t;let i=null===(t=window)||void 0===t?void 0:null===(e=t.jwplayer(ep.current))||void 0===e?void 0:e.getDuration();return i<0||void 0===i||null==i?"-1":1e3*i},(0,P.qP)("Play",analyticsData({event:"play"})),sendPlayerAnalytics("play"),(0,P.Oj)("Play Started",branchData()),!e6.current&&(null==e5?void 0:null===(t=e5.current)||void 0===t?void 0:t.length)>0&&G&&setTimeout(()=>{adjustVideoQuality()},5e3),e$.current=!0,(tB.pgRatingTitle||tB.pgRatingSubtitle)&&addPgRating(),(null===(i=eU.current.pageAttributes)||void 0===i?void 0:i.isLive)==="true"&&""!=io&&tJ(!0);try{addForwardIcons()}catch(e){}(null==eU?void 0:null===(l=eU.current)||void 0===l?void 0:null===(n=l.streamStatus)||void 0===n?void 0:n.previewStreamStatus)&&(tx(!0),showPreview(!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"),tw(!0),document.querySelectorAll(".jwplayer").forEach(e=>{e.addEventListener("keydown",e=>e.stopImmediatePropagation(),!0)}));let d=document.getElementsByClassName("jw-controlbar")[0],c=document.getElementsByClassName("jw-button-container")[0],u=document.getElementById("playerButtons"),v=document.getElementById("player_div"),p=document.getElementById("nextVideoTooltip");console.log(p,tk,v.lastChild),p&&tk&&(null==v||v.insertBefore(p,v.lastChild)),u&&(null==d||d.insertBefore(u,d.firstChild)),X.tq&&(tI(!0),null==c||c.insertBefore(document.createElement("div"),c.firstChild)),playEvent(),(null===(a=ex.current)||void 0===a?void 0:a.isVideoPaused)&&(sendPlayerAnalytics("resumeEvent"),ex.current.isVideoPaused=!1);let g=JSON.parse((null==el?void 0:null===(o=el.configs)||void 0===o?void 0:o.waterMarkInfoOnPlayer)||"{}").supportedContentTypes,m=(null==eU?void 0:null===(r=eU.current)||void 0===r?void 0:null===(s=r.pageAttributes)||void 0===s?void 0:s.contentType)||"";g.includes(m)&&addWaterMark()},fullscreen:e=>{try{addForwardIcons()}catch(e){}let t=document.getElementById("player_div"),n=document.getElementById("fullscreentitlediv");e.fullscreen?!n&&t&&t.appendChild(i):n&&n.remove()},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{addForwardIcons()}catch(e){}},visualQuality:e=>{var t,i,n;let l=(null==e?void 0:e.bitrate)||(null==e?void 0:null===(t=e.level)||void 0===t?void 0:t.bitrate);if(te.current!==l){if(te.current=l,!e8.current||(null===(i=ex.current)||void 0===i?void 0:i.isVideoPaused)||(null===(n=ex.current)||void 0===n?void 0:n.isVideoBuffering)){e9.current=e;return}sendPlayerAnalytics("bitRateEvent",e)}},pause:e=>{var t;(null===(t=ex.current)||void 0===t?void 0:t.isVideoPaused)||((0,P.qP)("Pause",analyticsData({eventName:"video_stopped"})),sendPlayerAnalytics("pauseEvent",e),ex.current.isVideoPaused=!0),tk&&showPreview(!1)},buffer:e=>{var t;e7.current||(e7.current=!0,ex.current.isVideoBuffering=!0,sendPlayerAnalytics("bufferEvent",e)),tt.current||(tt.current=!0,ex.current.isVideoBuffering=!0,sendPlayerAnalytics("bufferEvent",e)),tk&&showPreview(!1),(null===(t=eU.current.pageAttributes)||void 0===t?void 0:t.isLive)==="true"&&""!=io&&tJ(!1)},playbackRateChanged:()=>{},seek:e=>{sendPlayerAnalytics("seek",e);let t=analyticsData();t.seekStart=Math.floor(e.position),t.seekEnd=Math.floor(e.offset),(0,P.qP)("seek",t),tt.current=!1,e4.current=!1},seeked:e=>{},complete:e=>{var t,i,n,l,a;e1.current=0,sendPlayerAnalytics("completeEvent",e),(0,P.qP)("Play Ended",analyticsData()),(0,P.Oj)("Play Ended",branchData()),tq(!0),ti&&resetAdSpot();let o=null==eU?void 0:null===(i=eU.current)||void 0===i?void 0:null===(t=i.streamStatus)||void 0===t?void 0:t.previewStreamStatus;if(o)try{(null===(l=window)||void 0===l?void 0:null===(n=l.jwplayer())||void 0===n?void 0:n.getFullscreen())&&(null===(a=window.jwplayer())||void 0===a||a.setFullscreen(!1))}catch(e){console.log(e)}},error:e=>{var t,i,n,l,a,o;if(sendPlayerAnalytics("errorEvent",e),e$.current&&(e1.current=0),++e1.current,e1.current<=e0.current&&(null==z?void 0:null===(i=z.info)||void 0===i?void 0:null===(t=i.attributes)||void 0===t?void 0:t.isLive)&&(null==z?void 0:null===(l=z.info)||void 0===l?void 0:null===(n=l.attributes)||void 0===n?void 0:n.isLive)=="true")document.querySelector(".videospinner").style.display="flex",document.querySelector(".jw-error-msg").style.display="none",e$.current=!1,setTimeout(()=>{startPlay(e2)},5e3);else{e1.current=0;let e=document.getElementsByClassName("jw-controls-backdrop")[0],t=document.getElementById("playerButtons");t&&(null==e||e.insertBefore(t,e.firstChild),X.tq&&(tN(!0),tI(!0),null==e||e.insertBefore(e,e.firstChild))),eU.current&&(null===(o=eU.current)||void 0===o?void 0:null===(a=o.response)||void 0===a?void 0:a.sessionInfo)&&endActiveStream(eU.current.response.sessionInfo.streamPollKey),sendPlayerAnalytics("thumbnailVideoClick"),sendPlayerAnalytics("handlePlayerLoad")}},setupError:e=>{var t,i;W(),eU.current&&(null===(i=eU.current)||void 0===i?void 0:null===(t=i.response)||void 0===t?void 0:t.sessionInfo)&&endActiveStream(eU.current.response.sessionInfo.streamPollKey)},cast:e=>{(0,P.qP)("cast",{currentScreen:"player"})},levelsChanged:e=>{},time:e=>{var t,a,o,s,r,d,c,u;let v=(null==eU?void 0:null===(a=eU.current)||void 0===a?void 0:null===(t=a.streamStatus)||void 0===t?void 0:t.previewStreamStatus)&&(null==z?void 0:null===(s=z.info)||void 0===s?void 0:null===(o=s.attributes)||void 0===o?void 0:o.playerType)==="preview";e7.current&&!e4.current&&"playing"===window.jwplayer().getState()&&(e4.current=!0,ex.current.isVideoBuffering=!1,sendPlayerAnalytics("playEvent"),e8.current||((0,P.qP)("video_play",analyticsData()),sendPlayerAnalytics("play",e),(0,P.Oj)("Play Started",branchData()),e8.current=!0,ex.current.isVideoPlaying=!0,eO.current=!1),e9.current&&(sendPlayerAnalytics("bitRateEvent",e9.current),e9.current=null)),e.position>0&&e.position>
160&&"Infinity"!=window.jwplayer().getDuration()&&!v?tm(!0):e.position<0&&e.position<-50?ty(!0):(tm(!1),ty(!1));let p=eU.current;if(p.pageAttributes.introStartTime<=Math.round(e.currentTime)&&Math.round(e.currentTime)<p.pageAttributes.introEndTime?tf(!0):(e.currentTime,p.pageAttributes.introEndTime,tf(!1)),nextVideoCheck(),Math.round(e.currentTime)>0&&4>=Math.round(e.currentTime)){tM(!0);let e=document.getElementById("fullscreentitlediv");e&&e.remove()}else{tM(!1);let e=document.getElementById("fullscreentitlediv");(null===(c=window)||void 0===c?void 0:null===(d=c.jwplayer())||void 0===d?void 0:d.getFullscreen())&&!e&&(null===(u=document.getElementById("player_div"))||void 0===u||u.appendChild(i))}ti&&(null==n?void 0:null===(r=n[1])||void 0===r?void 0:r.length)&&manageMidRole(l),v&&($(".jw-slider-time").hide(),$(".jw-display-controls .jw-display-icon-rewind").css("visibility","hidden"),$(".jw-controlbar .jw-icon-rewind").hide(),$(".fastBtn").hide()),setCurrentPosition(Math.round(e.currentTime))},firstFrame:()=>{var e,t;if(handleSigninPopupLogic(),(null===(e=b.e.settings)||void 0===e?void 0:e.ccToggleType)&&(null===(t=b.e.settings)||void 0===t?void 0:t.ccToggleType)!=="none"){let e=(0,T.rV)("closedCaption");e?setCaptions():window.jwplayer().setCurrentCaptions(0)}},beforePlay:e=>{e7.current||(e7.current=!0,ex.current.isVideoBuffering=!0,sendPlayerAnalytics("bufferEvent",e))},mute:e=>{},volume:e=>{},adStarted:e=>{adEvents("adStarted",e.adposition),it(!0),""!=io&&tJ(!1),tj(!1),tm(!1)},adSkipped:e=>{adEvents("adSkipped",e.adposition),""!=io&&tJ(!0)},adPlay:e=>{adEvents("adStarted",e.adposition)},adComplete:e=>{adEvents("adComplete",e.adposition),""!=io&&tJ(!0),(null==e?void 0:e.adposition)==="pre"&&(handlePlansPopupAfterAd(),addGoAdFreeTextButton(),getGoAdFreeButtonText(),H(!0))},autostartNotAllowed:e=>{if(!tc){var t;tu(!0);let e=null===(t=window)||void 0===t?void 0:t.jwplayer(ep.current);e&&(e.setMute(!0),e.play(!0))}},captionsList:e=>{}}};window.jwplayer&&setTimeout(()=>{var e,t;window.playerSetup=null===(t=window)||void 0===t?void 0:null===(e=t.jwplayer(ep.current))||void 0===e?void 0:e.setup(a)},200)},getSelectedBitrate=e=>{let t=(0,T.rV)("selectedBitRate");e.map((e,i)=>{t==e.displayTitle&&(e3.current=e.maxBitRate)})},adjustVideoQuality=()=>{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()),n=!1;if(e6.current=!0,e3.current){for(let e=0;e<i.length;e++)if(i[e].bitrate/1e3<=e3.current){window.jwplayer().setCurrentQuality(e),n=!0;break}!1==n&&window.jwplayer().setCurrentQuality(i.length-1)}else window.jwplayer().setCurrentQuality(0)},addPgRating=()=>{try{let e=document.getElementById("inside_player_data");document.getElementById("player_div").append(e)}catch(e){console.log(e)}},addWaterMark=()=>{let e=document.getElementById("player_div"),t=document.getElementById("watermark");e.append(t)},addForwardIcons=()=>{let e=document.querySelector(".jw-button-container");if(!e){console.error("Element with class '.jw-button-container' not found.");return}e.querySelector("#frwdIcon");let t=document.querySelector(".jw-display-icon-next"),i=document.querySelector(".jw-icon-next");t&&(t.style.visibility="visible"),i&&(i.style.display="none");let n=document.getElementById("frwdIcon");n&&(n.style.display="block",window&&window.innerWidth<420?$(".jw-display-icon-next .jw-icon-next").after(n):$(".jw-controlbar .jw-icon-next").after(n))},concurrenceStreamRequest=()=>{var e;let t=eU.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{eB({url:"https://lukentv-api.revlet.net/service/api/v1/stream/poll",apiData:i})}catch(e){console.log(e)}},endActiveStream=e=>{var t=new FormData;t.append("poll_key",e);try{eV({url:"https://lukentv-api.revlet.net/service/api/v1/stream/session/end",apiData:t})}catch(e){}};(0,o.useEffect)(()=>{if(!0==eJ&&"true"!=eu.info.attributes.isLive){let e=new Set,t=setInterval(()=>{var t,i,n,l;let a=null===(i=window)||void 0===i?void 0:null===(t=i.jwplayer())||void 0===t?void 0:t.getPosition(),o=null===(l=window)||void 0===l?void 0:null===(n=l.jwplayer())||void 0===n?void 0:n.getDuration();if(o>0){let t=Math.round(a/o*100);[25,50,75,100].includes(t)&&!e.has(t)&&[25,50,75,100].map(i=>{i==t&&((0,P.qP)("watched",analyticsData({eventName:"watched"})),e.add(t))})}},50);return()=>{clearInterval(t)}}},[eJ]);let playEvent=()=>{eH(!0);let e=eU.current;if(null==e?void 0:e.sessionInfo){var t;eE.current=setInterval(()=>
1{try{concurrenceStreamRequest()}catch(e){console.log(e)}},null==e?void 0:null===(t=e.sessionInfo)||void 0===t?void 0:t.pollIntervalInMillis)}!0==eO.current&&!1==eZ.current?(eO.current=!1,resumePlayBack()):eO.current=!1,!0==eZ.current&&(eZ.current=!1)},resumePlayBack=()=>{let e=eU.current;e.streamStatus.seekPositionInMillis>0&&window.jwplayer().seek(e.streamStatus.seekPositionInMillis/1e3)},adEvents=(e,t)=>{let i;switch(i="pre"==t?"preRoll":"post"==t?"postRoll":"midRoll",e){case"adStarted":sendPlayerAnalytics("adStartEvent",i),it(!0);break;case"adComplete":sendPlayerAnalytics("adCompleteEvent",i);break;case"adSkipped":sendPlayerAnalytics("adSkipEvent",i)}},getStream=e=>{var t,i,n,l,a,o,s,r,c,u;(null==eU?void 0:eU.current)&&(null==eU?void 0:null===(i=eU.current)||void 0===i?void 0:null===(t=i.response)||void 0===t?void 0:t.sessionInfo)&&endActiveStream(eU.current.response.sessionInfo.streamPollKey);let v="https://lukentv-api.revlet.net",p={path:(null==z?void 0:z.streamStatus.streamType)=="preview"?"".concat(q,"&stream_type=preview"):q};if(e&&(p.pin=e),(null==Y?void 0:null===(l=Y.encryptApisList)||void 0===l?void 0:null===(n=l.fields)||void 0===n?void 0:n.stream)=="true"){(null==z?void 0:null===(o=z.info)||void 0===o?void 0:null===(a=o.attributes)||void 0===a?void 0:a.playerType)=="trailer"&&(p.stream_type="trailer");let e={data:(0,d.q6)(JSON.stringify(p)),metadata:(0,d.q6)(JSON.stringify({request:"page/stream"}))};v+="/service/api/v1/send";try{ed({url:v,apiData:e})}catch(e){}}else{(null==z?void 0:null===(r=z.info)||void 0===r?void 0:null===(s=r.attributes)||void 0===s?void 0:s.playerType)=="trailer"&&(p.stream_type="trailer")||(null==z?void 0:null===(u=z.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,d.Yo)(p);try{es(v)}catch(e){}}},startOver=()=>{try{window.jwplayer().seek(0)}catch(e){console.log(e)}},goToLastChannel=()=>{eb.push(io)},stopPlayer=()=>{var e;tz(0),tk&&(clearInterval(Z),null===(e=window)||void 0===e||e.jwplayer(ep.current).stop())};(0,o.useEffect)(()=>{let e=eU.current;if(e){var t;let i=(null==e?void 0:null===(t=e.streamStatus)||void 0===t?void 0:t.totalDurationInMillis)/1e3;tz(parseInt(e.streams[0].params.duration<i?e.streams[0].params.duration:i))}},[er]);let exitFullScreen=()=>{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)}},removePlayerIcons=()=>{},showPreview=e=>{e?Z=setInterval(()=>{tz(e=>(0>=Math.floor(e)&&(stopPlayer(),tw(!1),tx(!1),exitFullScreen(),removePlayerIcons()),e-1))},1e3):clearInterval(Z)},nextEpisode=()=>{var e,t,i,n,l;e1.current=0;let a=(null==tS?void 0:tS.nextVideoTargetPath)||(null==tE?void 0:null===(l=tE.data)||void 0===l?void 0:null===(n=l.response)||void 0===n?void 0:null===(i=n.data)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:null===(e=t.target)||void 0===e?void 0:e.path);if(!a)return;let o=a.startsWith("/")?a:"/".concat(a);eb.push(o)},golive=()=>{window.jwplayer().seek(-15),ty(!1)},processCaptions=e=>{var t=[];if(!e||!e.ccList)return[];for(var i=0;i<e.ccList.length;i++){let n={file:(0,v.ZY)(e.ccList[i].filePath),label:e.ccList[i].language,kind:"captions"};t.push(n)}return t},getAdDada=()=>{var e,t,i,n,l,a,o,s,r,c,u,v,p,g,m,_,y,h;let f=[],b={};for(let t of null==eu?void 0:null===(e=eu.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===(a=eu.info)||void 0===a?void 0:null===(l=a.attributes)||void 0===l?void 0:l.contentId)&&(t.url=t.url.replace("{{CONTENT_ID}}",eu.info.attributes.contentId)),eu.title&&(t.url=t.url.replace("{{CONTENT_TITLE}}",encodeURI(eu.title))),t.url=t.url.replace("{{CONTENT_URL}}",eu.info.path),(null==eg?void 0:null===(s=eg.data)||void 0===s?void 0:null===(o=s.ipInfo)||void 0===o?void 0:o.trueIP)&&(t.url=t.url.replace("{{IP}}",null===(r=eg.data)||void 0===r?void 0:r.ipInfo.trueIP)),(null==eg?void 0:null===(u=eg.data)||void 0===u?void 0:null===(c=u.ipInfo)||void 0===c?void 0:c.latitude)&&(t.url=t.url.replace("{{LAT}}",null===(v=eg.data)||void 0===v?void 0:v.ipInfo.latitude)),(null==eg?void 0:null===(g=eg.data)||void 0===g?void 0:null===(p=g.ipInfo)||void 0===p?void 0:p.longitude)&&(t.url=t.url.replace("{{LON}}",null===(m=eg.data)||void 0===m?void 0:m.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),t.url=t.url.replace("{{POD_MAX_DUR}}",90),t.url=t.url.replace("{{POD_AD_SLOTS}}",1)),("preRollUrl"==t.urlType||"preUrl"==t.urlType)&&void 0!=t.url)f.push({tag:t.url.replace("{{CACHEBUSTER}}",new Date().getTime()+(0,d.vJ)()).replace("{{CORRELATOR}}",new Date().getTime()+(0,d.vJ)()),offset:"pre"});else if(("postRollUrl"==t.urlType||"postUrl"==t.urlType)&&void 0!=t.url&&"true"!=eu.info.attributes.isLive)f.push({tag:t.url.replace("{{CACHEBUSTER}}",new Date().getTime()+(0,d.vJ)()).replace("{{CORRELATOR}}",new Date().getTime()+(0,d.vJ)()),offset:"post"});else if(("midRollUrl"==t.urlType||"midUrl"==t.urlType)&&(null===(n=eu.info)||void 0===n?void 0:null===(i=n.attributes)||void 0===i?void 0:i.isLive)!="true"){if(null===(y=t.position)||void 0===y?void 0:null===(_=y.adplaypositions)||void 0===_?void 0:_.length)(null===(h=t.position)||void 0===h?void 0:h.adplaypositions.split(",")).forEac
1h(e=>{e=Math.round(parseInt(e.trim())),f.push({tag:t.url.replace("{{CACHEBUSTER}}",new Date().getTime()+(0,d.vJ)()).replace("{{CORRELATOR}}",new Date().getTime()+(0,d.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,d.vJ)()).replace("{{CORRELATOR}}",new Date().getTime()+(0,d.vJ)()),offset:parseInt(t.position.offset)}):t.position.offset=0,t.position.interval)){let e=parseInt(t.position.offset);if(eu.streamStatus&&eu.streamStatus.totalDurationInMillis){let i=Math.round(Math.abs(eu.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,d.vJ)()).replace("{{CORRELATOR}}",new Date().getTime()+(0,d.vJ)()),offset:e}),e+=parseInt(t.position.interval)}}}let w=eu.adUrlResponse.adUrlTypes.filter(e=>"postUrl"==e.urlType||"postRollUrl"==e.urlType||"midRollUrl"==e.urlType||"midUrl"==e.urlType||"preUrl"==e.urlType||"preRollUrl"==e.urlType);return b.client=w&&w[0]&&w[0].attributes&&w[0].attributes.adTag?w[0].attributes.adTag:"googima",b.preloadAds=!0,b.schedule=f,(null==eU?void 0:null===(t=eU.current.streams[0].params)||void 0===t?void 0:t.daiAssetKey)&&(b.client="dai"),console.log("%c Line:2164 \uD83E\uDD5A advertising","color:#ffdd4d",b),b},macroReplace=e=>{if(void 0!=e){var t,i,n,l,a,o,s,r,u,v,p;e=e.replace("{{cb}}",new Date().getTime()).replace("{{ua}}",window.navigator.userAgent).replace("{{did}}",(0,c.g$)()).replace("{{ENCODED_URL}}",encodeURI(window.location.href)).replace("{{USER_AGENT}}",window.navigator.userAgent).replace("{{CACHEBUSTER}}",new Date().getTime()+(0,d.vJ)()).replace("{{CORRELATOR}}",new Date().getTime()+(0,d.vJ)()),(null==eg?void 0:null===(i=eg.data)||void 0===i?void 0:null===(t=i.ipInfo)||void 0===t?void 0:t.trueIP)&&(e=e.replace("{{IP}}",null===(n=eg.data)||void 0===n?void 0:n.ipInfo.trueIP)),(null==eg?void 0:null===(a=eg.data)||void 0===a?void 0:null===(l=a.ipInfo)||void 0===l?void 0:l.latitude)&&(e=e.replace("{{LAT}}",null===(o=eg.data)||void 0===o?void 0:o.ipInfo.latitude)),(null==eg?void 0:null===(r=eg.data)||void 0===r?void 0:null===(s=r.ipInfo)||void 0===s?void 0:s.longitude)&&(e=e.replace("{{LON}}",null===(u=eg.data)||void 0===u?void 0:u.ipInfo.longitude)),(null===(p=eu.info)||void 0===p?void 0:null===(v=p.attributes)||void 0===v?void 0:v.contentId)&&(e=e.replace("{{CONTENT_ID}}",eu.info.attributes.contentId)),eu.title&&(e=e.replace("{{CONTENT_TITLE}}",encodeURI(eu.title)))}return e},initStreamData=e=>{var t,i,n,l,a,o,s,r,d,c,u,v,p,g,m;if(!e)return;let _=[];if((null==eQ?void 0:eQ.isActive)&&eX({}),((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))&&tR({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===(l=e.response)||void 0===l?void 0:null===(n=l.streams)||void 0===n?void 0:n.length)for(let t of(setPlayerAnalyticsMetaData(null==eg?void 0:eg.data,null==e?void 0:e.response,z,K,G),e.response.streams))if("fairplay"==t.streamType&&"manorama_max"==t.attributes.partnerCode)t.keys.licenseKey=t.keys.licenseKey.replace("http:","https:"),_.push({file:macroReplace(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:macroReplace(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:macroReplace(t.url),drm:{widevine:{url:t.keys.licenseKey}}});else if("playready"==t.streamType)t.keys.licenseKey=t.keys.licenseKey.replace("http:","https:"),_.push({file:macroReplace(t.url),drm:{playready:{url:t.keys.licenseKey}}});else if(0==t.keys.licenseKey.length&&t.url.includes(".mpd"))_.push({file:macroReplace(t.url)});else{let e={file:macroReplace(t.url),default:!1,label:"0",preload:"metadata",sParams:t.params,subType:t.streamType,onXhrOpen:function(e,i){var n,l;e.setRequestHeader("sessionid",null===(n=t.params)||void 0===n?void 0:n.sessionid),e.setRequestHeader("token",null===(l=t.params)||void 0===l?void 0:l.token)}};(null===(p=t.params)||void 0===p?void 0:p.sessionid)||(null===(g=t.params)||void 0===g?void 0:g.token)||delete e.onXhrOpen,e.type="hls","etvwin"===eu.info.attributes.networkName&&"true"===eu.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===(m=e[0].sParams)||void 0===m?void 0:m.token),delete e[0].sParams),_.push(e[0])):_.push(t[0])}let h=[{sources:_,tracks:(null==e?void 0:e.response)&&(null==e?void 0:null===(a=e.response.streams[0])||void 0===a?void 0:a.closeCaptions)?processCaptions(null==e?void 0:null===(o=e.response)||void 0===o?void 0:o.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};h[0].daiSetting=t}e2=h,startPlay(h)},forwardClick=()=>{var e,t;let i=document.getElementById("player_div");if((null==i?void 0:i.classList.contains("jw-flag-user-inactive"))||tb)return;let n=null===(e=window)||void 0===e?void 0:e.jwplayer().getPosition();null===(t=window)||void 0===t||t.jwplayer().seek(n+10)},skipIntro=()=>{var e,t;let i=eU.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)),tf(!1)},btnHandler=(e,t)=>{var i,n,l,a,o,r,d;if(eo({type:s.Nw.t3,payload:eb.asPath}),null==e?void 0:null===(i=e.properties)||void 0===i?void 0:i.showPopUp)eG({isActive:null==e?void 0:null===(n=e.properties)||void 0===n?void 0:n.showPopUp,topImg:null==e?void 0:null===(l=e.properties)||void 0===l?void 0:l.showPopUp,topImgValue:"http://mobond.yuppcdn.net/cf1/static/slt/images/payment-failure.svg",title1:null==e?void 0:null===(a=e.properties)||void 0===a?void 0:a.title,title2:null==e?void 0:null===(o=e.properties)||void 0===o?void 0:o.subtitle,yesButtonTarget1:handleClose,yesButton1:"Cancel",
1yesButtonType:"primary",close:!0,closeTarget:handleClose});else if("subscribe"===e.target)eb.push("/buy/packages-list");else if("verify_email"===e.target)ia?eW({from:"player",verification:"email",context:"verify_email",data:{title1:"".concat(N.Dw[ea].Otp_sent_to_your_email," ").concat(G.email.slice(0,5),"******").concat(G.email.substring(8)),mobile:G.phoneNumber,email:G.email}}):eb.push("/signin");else if("rent"===e.target){if((null===b.e||void 0===b.e?void 0:null===(d=b.e.packageSettings)||void 0===d?void 0:null===(r=d.paymentGateway)||void 0===r?void 0:r.typeOfPayment)=="internal"){let e=eb.asPath.replace("/",""),t=new URLSearchParams({path:e,package_type:2,skip_package_content:!0}).toString(),i="".concat("https://lukentv-api.revlet.net").concat("/package/api/v1/","packages/info/for/content?").concat(t);t5(i)}else eo({type:s.Nw.t3,payload:eb.asPath}),eb.push({pathname:"/buy/packages-list",query:{_rent:eb.asPath.slice(1)}})}else if("rent"===e.target){let e=eb.asPath.replace("/",""),t=new URLSearchParams({path:e,package_type:2,skip_package_content:!0}).toString(),i="".concat("https://lukentv-api.revlet.net").concat("/package/api/v1/","packages/info/for/content?").concat(t);t5(i)}else"verify_email"===e.target?ia?eW({from:"player",verification:"email",context:"verify_email",data:{title1:"".concat(N.Dw[ea].Otp_sent_to_your_email," ").concat(G.email.slice(0,5),"******").concat(G.email.substring(8)),mobile:G.phoneNumber,email:G.email}}):eb.push("/signin"):eb.push("/"+(null==e?void 0:e.target))},handleClose=()=>{eG({}),eY({});try{let e=window.jwplayer(ep.current);e.play(!0)}catch(e){}},jioConfig=()=>{let e=sessionStorage.getItem("isInternalNaviagtion")||!1;JioAds.setConfiguration({logLevel:"debug",initialUnMute:e}),initJioAds()},checkJioAds=()=>{var e;let t=[],i=[];if(!ti)return{adSpots:t,cuepoints:i};let{adUrlResponse:n}=z;return n&&(null==n?void 0:n.adUrlTypes)&&(null==n?void 0:null===(e=n.adUrlTypes)||void 0===e?void 0:e.length)!==0?(n.adUrlTypes.forEach(e=>{var n,l;(null===(n=e.attributes)||void 0===n?void 0:n.adTag)==="jio"&&"preUrl"===e.urlType?(tn(!0),t[0]=e.url):(null===(l=e.attributes)||void 0===l?void 0:l.adTag)==="jio"&&"midUrl"===e.urlType&&(tn(!0),t[1]=e.url,i=manageCuePoints(e.position))}),ts(t),{adSpots:t,cuepoints:i}):(tn(!1),[])},manageCuePoints=e=>{var t;let i=[];if(!(null==z?void 0:null===(t=z.streamStatus)||void 0===t?void 0:t.totalDurationInMillis))return i;let n=Math.round(Math.abs(z.streamStatus.totalDurationInMillis/1e3)),l=e.offset?parseInt(e.offset):0;if(e.interval)for(;n>=l;)i.push({begin:l,cueType:"custom",text:""}),l+=parseInt(e.interval);return ta(i),i},managePreRole=e=>{window.jwplayer().pause(),window.jwplayer().setControls(!1),$(".jw-wrapper").hide(),td("pre"),tn(!0);let t=!!z.info.attributes&&"trailer"==z.info.attributes.playerType;z.streamStatus.seekPositionInMillis>0&&!t&&e.length>1&&e.forEach(e=>{e.begin<z.streamStatus.seekPositionInMillis/1e3&&!e.istrigger?(e.istrigger=!0,ti&&playMidRoleAds()):e.begin<z.streamStatus.seekPositionInMillis/1e3&&(e.istrigger=!0)})},addCuePoints=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))},manageMidRole=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,ti&&playMidRoleAds()):e.begin<window.jwplayer().getPosition()&&(e.istrigger=!0)})},resumeVideoPlay=()=>{td(""),tn(!1),$(".jw-wrapper").show(),window.jwplayer(ep.current).play(),window.jwplayer(ep.current).setControls(!0),setTimeout(()=>{window.jwplayer(ep.current).play()},1e3)},playMidRoleAds=()=>{tn(!0),window.jwplayer(ep.current).pause(),window.jwplayer(ep.current).setControls(!1),$(".jw-wrapper").hide(),td("mid")},initJioAds=()=>{JioAds.onAdRender=function(e){console.log("ad render"),window.jwplayer()&&window.jwplayer(ep.current).pause()},JioAds.onMediaURLReady=function(){console.log("ad preparing 2")},JioAds.onAdPrepared=function(e,t){console.log("ad preparing 3")},JioAds.onAdMediaStart=function(e,t){console.log("CB: onAdMediaStart",e,t)},JioAds.onAdChange=function(e,t){console.log("CB: onAdChange",e,t)},JioAds.onAdMediaEnd=function(e,t,i){console.log("CB: onAdMediaEnd",e,i),resumeVideoPlay()},JioAds.onAdSkipped=function(e,t,i){console.log("CB: ad skiped",e,
1i),resumeVideoPlay()},JioAds.onAdClosed=function(){resumeVideoPlay()},JioAds.onAdFailedToLoad=function(e,t){resumeVideoPlay()},JioAds.onMediaURLFailedToLoad=function(e,t){resumeVideoPlay()}},distroyJioVideo=()=>{try{JioAds.closeAd("ins-unique-1"),JioAds.closeAd("ins-unique-2")}catch(e){console.log(e)}},resetAdSpot=()=>{tl.forEach(e=>{e.istrigger=!1}),ta(tl)},setCaptions=()=>{var e,t;if((null===(e=b.e.settings)||void 0===e?void 0:e.ccToggleType)&&(null===(t=b.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)}},addGoAdFreeTextButton=()=>{var e;let t;if(!G||!G.userId)return;let i=null==el?void 0:null===(e=el.configs)||void 0===e?void 0:e.signinPopupAdFreePlanUpgrade;if(!i)return;try{t="string"==typeof i?JSON.parse(i):i}catch(e){return}let n=null==t?void 0:t.goAdFreeButtonText;n&&setTimeout(()=>{let e=document.querySelector("#player_div .jw-controlbar .jw-button-container");if(!e||document.getElementById("go-ad-free-text-btn"))return;let t=document.createElement("button");t.id="go-ad-free-text-btn",t.innerText=n,t.className="jw-button jw-reset go-ad-free-text-btn",t.onclick=()=>{eb.push("/buy/packages-list")};let i=e.querySelector(".jw-icon-cc");i?e.insertBefore(t,i):e.appendChild(t)},500)},ir=JSON.parse((null==el?void 0:null===(t=el.configs)||void 0===t?void 0:t.waterMarkInfoOnPlayer)||"{}"),id=ir.supportedContentTypes||[],ic=ir.defaultImagePath||"",iu=(null==eU?void 0:null===(n=eU.current)||void 0===n?void 0:null===(i=n.pageAttributes)||void 0===i?void 0:i.contentType)||"";return(0,a.jsxs)(a.Fragment,{children:[t2&&(0,a.jsx)(ei.Z,{}),tT&&(0,a.jsx)("button",{className:"".concat(tT?"".concat(J().errBack):""),onClick:()=>eb.back(),children:(0,a.jsx)("img",{src:"".concat(j.Z.jwPlayer.helpBackArrow),alt:"back"})}),!eS&&(0,a.jsxs)("div",{className:"".concat(J().player),children:[(0,a.jsx)("div",{ref:ep,id:"player_div",children:" "}),(0,a.jsxs)("div",{className:"plyr_fullscreen ".concat(J().player_buttons),id:"playerButtons",children:[tP&&!tT&&(0,a.jsx)("button",{className:"".concat(J().playerBack," playerBack ").concat(tT?"".concat(J().errBack):""),onClick:()=>eb.back(),children:(0,a.jsx)("img",{src:"".concat(j.Z.jwPlayer.helpBackArrow),alt:"back"})}),tg&&(0,a.jsx)("button",{className:"".concat(J().start_over),onClick:()=>startOver(),children:N.uf[ea].Start_Over}),tW&&(null==eU?void 0:null===(p=eU.current)||void 0===p?void 0:null===(l=p.pageAttributes)||void 0===l?void 0:l.contentType)==="tvshowepisode"&&(0,a.jsx)("button",{className:"".concat(J().start_over),onClick:()=>goToLastChannel(),children:N.uf[ea].Last_Channel}),t_&&(0,a.jsx)("button",{className:"".concat(J().start_over),onClick:()=>golive(),children:N.uf[ea].Go_Live}),th&&(0,a.jsx)("button",{className:"".concat(J().start_over),onClick:()=>skipIntro(),children:N.uf[ea].Skip_intro}),tS&&(null==tS?void 0:tS.displayStatus)&&!tk&&(0,a.jsx)("button",{className:"".concat(J().next_episode),onClick:()=>nextEpisode(),children:null==z?void 0:null===(m=z.info)||void 0===m?void 0:null===(g=m.attributes)||void 0===g?void 0:g.nextButtonTitle})]}),(0,a.jsx)("div",{id:"watermark",children:id.includes(iu)&&(0,a.jsx)("div",{className:tG?J().fullScreenWaterMark:J().watermark,children:(0,a.jsx)("img",{src:ic,alt:"Network Logo",className:J().network_logo})})}),!!tV&&tB&&(!!tB.pgRatingTitle||!!tB.pgRatingSubtitle)&&(0,a.jsx)("div",{id:"inside_player_data",children:(0,a.jsxs)("div",{className:" Rating ".concat(tV?"show":""),children:[(0,a.jsx)("div",{className:"rectanglePG"}),(0,a.jsx)("div",{className:"pgRatingTitle",children:tB.pgRatingTitle}),(0,a.jsx)("div",{className:"pgRatingSub",children:tB.pgRatingSubtitle})]})}),id.includes(iu)&&(0,a.jsx)("div",{className:J().watermark,children:(0,a.jsx)("img",{src:ic,alt:"Network Logo",className:J().network_logo})}),tb&&(0,en.createPortal)((0,a.jsx)("div",{id:"preview_data",className:"".concat(J().preview_timer),children:"Preview ends in : ".concat("".concat(Math.floor(tH/60),":").concat(tH%60<10?"0":"").concat(tH%60))}),document.getElementById("player_div")),(null==eU?void 0:null===(h=eU.current)||void 0===h?void 0:null===(y=h.streamStatus)||void 0===y?void 0:y.previewStreamStatus)&&tH<=0&&!tb&&(0,a.jsxs)("div",{className:"".concat(J().errorSec),children:[(0,a.jsx)("div",{children:null===(w=eU.current)||void 0===w?void 0:null===(f=w.streamStatus)||void 0===f?void 0:f.message}),(0,a.jsx)("div",{children:eP.length>0&&eP.filter(e=>"preview"!==e.elementSubtype).map(e=>(0,a.jsx)(ButtonWrapper,{button:e,btnHandler:btnHandler},e.id))})]}),(0,a.jsx)("div",{id:"nextVideoTooltip",children:tO&&(0,a.jsx)(_(),{href:(null==tE?void 0:null===(I=tE.data)||void 0===I?void 0:null===(S=I.response)||void 0===S?void 0:null===(x=S.data[0])||void 0===x?void 0:null===(k=x.target)||void 0===k?void 0:k.path)||"/",children:(0,a.jsxs)("div",{className:"".concat(J().nextVideoContainer," nextVideoContainer"),children:[(0,a.jsxs)("div",{className:J().nxtLeft,children:[(0,a.jsx)("img",{alt:"video",src:(e=>{try{return e?(0,v.ZY)(e):""}catch(e){}})(null==tE?void 0:null===(E=tE.data)||void 0===E?void 0:null===(A=E.response)||void 0===A?void 0:null===(D=A.data[0])||void 0===D?void 0:null===(C=D.display)||void 0===C?void 0:C.imageUrl)}),(0,a.jsx)("div",{className:J().playButton,children:(0,a.jsx)("span",{className:J().playButtonText,children:(0,a.jsx)("div",{className:J().loading,children:(0,a.jsx)("div",{className:J().innerShadow,children:(0,a.jsx)(ee.Z,{fontSize:"large",sx:{color:et.Z.white}})})})})})]}),(0,a.jsxs)("div",{className:J().nxtRight,children:[(0,a.jsxs)("span",{children:[(null===(B=N.uf[ea])||void 0===B?void 0:B.Up_Next_In)||"Up next in"," ",tL," ",(null===(R=N.uf[ea])||void 0===R?void 0:R.Sec)||"sec"]}),(0,a.jsx)("h4",{children:null==tE?void 0:null===(F=tE.data)||void 0===F?void 0:null===(L=F.response)||void 0===L?void 0:null===(M=L.data[0])||void 0===M?void 0:null===(V=M.display)||void 0===V?void 0:V.title})]})]})})}),!eS&&!!eL&&(null==eL?void 0:eL.status)&&(0,a.jsx)("div",{className:"".concat(J().sessionClosed),children:(0,a.jsxs)("div",{className:"".concat(J().sessionClosedText),children:[(0,a.jsxs)("div",{children:[(0,a.jsxs)("h5",{children:[" ",eL.title," "]}),(0,a.jsx)("p",{children:eL.description})]}),(null==eL?void 0:eL.code)=="-4001"?(0,a.jsx)("div",{onClick:()=>eb.push("/settings"),children:(0,a.jsx)("button",{children:N.uf[ea].View_Active_Screens||"View Active Screens"})}):(0,a.jsx)("div",{onClick:()=>closePlayer(),children:(0,a.jsx)("button",{children:N.uf[ea].Close_player})})]})})]}),(0,a.jsx)("div",{id:"player-wrap-jio",children:ti&&to.length>0&&(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{class:J().adsStreamContainer,id:"my-instream-video-container",style:{zIndex:ti?"":"-1"}}),ti&&"pre"==tr&&(0,a.jsx)("ins",{id:"ins-unique-1","data-adspot-key":to[0],"data-source":"www.reeldrama.com","data-container-id":"my-instream-video-container"}),ti&&"mid"==tr&&(0,a.jsx)("ins",{id:"ins-unique-2","data-adspot-key":to[1],"data-source":"www.reeldrama.com","data-container-id":"my-instream-video-container"})]})}),eS&&(0,a.jsxs)("div",{className:"".concat(J().errorSec),ref:eT,children:[(0,a.jsx)("button",{className:"".concat(J().playerBack),onClick:()=>eb.back(),children:(0,a.jsx)("img",{src:"".concat(j.Z.jwPlayer.helpBackArrow),alt:"back"})}),(0,a.jsxs)("div",{children:[" ",eN," "]}),(0,a.jsxs)("div",{children:[" ",eD," "]}),(0,a.jsx)("div",{children:eP.length>0&&eP.filter(e=>"preview"!==e.elementSubtype).map(e=>(0,a.jsx)(ButtonWrapper,{button:e,btnHandler:btnHandler},e.id))})]}),(0,a.jsx)(a.Fragment,{children:tC?(0,a.jsx)("div",{className:"".concat(J().forwardIcon),onClick:()=>forwardClick(),id:"frwdIcon",children:(0,a.jsxs)("span",{className:tb?"".concat(J().frd_icon_hide):"".concat(J().frd_icon),children:[(0,a.jsx)("img",{src:"".concat(j.Z.jwPlayer.forwardIcon),className:tG?J().fullScreen:J().default}),(0,a.jsx)("span",{className:"".concat(J().tooltip," tooltip"),children:"Forward 10 Seconds"})]})}):null}),(null==ez?void 0:ez.isActive)&&(0,a.jsx)(em,{popupData:ez}),(null==eK?void 0:eK.isActive)&&document.getElementById("player_div")&&(0,en.createPortal)((0,a.jsx)(e_,{showSvodPopup:eK}),document.getElementById("player_div")),tX.enabled&&(0,a.jsx)(ey,{razorpayData:tX.data,activePackage:t0,paymentCancelled:()=>{t$({enabled:!1,data:{}})}}),(null==eQ?void 0:eQ.isActive)&&(0,a.jsx)(eh,{isParentalPopup:!0,popupData:eQ,validatePincodeCallBack:getStream}
1),!!eq&&(0,a.jsx)(verify_otp_popup_component,{isOpen:!0,otpData:eq,returnBack:()=>eW()})]})},playerold_component=()=>{var e;let{state:{PageData:t}}=(0,s.oR)(),{back:i}=(0,r.useRouter)(),[n,l]=(0,o.useState)(""),[d,c]=(0,o.useState)(""),[u,p]=(0,o.useState)(""),[g,m]=(0,o.useState)(!1),[_,y]=(0,o.useState)(!0),[f,b]=(0,o.useState)(""),w=(0,o.useRef)(null),k=(0,o.useRef)(null),[x,S]=(0,o.useState)(500),[P,I]=(0,o.useState)(!1);(0,o.useEffect)(()=>{if(t){var e,i,n,a;(null==t?void 0:null===(e=t.tabsInfo)||void 0===e?void 0:e.showTabs)&&(null==t?void 0:null===(i=t.tabsInfo)||void 0===i?void 0:i.tabs.length)>0&&l(null==t?void 0:t.tabsInfo),null==t||null===(n=t.data)||void 0===n||n.map(e=>{(null==e?void 0:e.paneType)==="content"&&c(e)});let o=void 0==t.info.attributes.showOnPlayer||0==t.info.attributes.showOnPlayer.length?[]:t.info.attributes.showOnPlayer.split();p([...null==t?void 0:null===(a=t.data)||void 0===a?void 0:a.filter(e=>{var t,i;if((null==e?void 0:e.paneType)==="section"&&!(o.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})]),mobileDesign(),getBackgroundImage()}w.current&&k.current&&S(w.current.clientHeight+k.current.clientHeight+120)},[t]);let mobileDesign=()=>{var e,i;((null==t?void 0:null===(e=t.info)||void 0===e?void 0:e.pageType)==="player"||(null==t?void 0:null===(i=t.info)||void 0===i?void 0:i.pageType)==="details")&&window.innerWidth<=991&&m(!0)},getBackgroundImage=()=>{var e;let i="";null==t||null===(e=t.data)||void 0===e||e.map(e=>{if((null==e?void 0:e.paneType)==="content"){var t;i=(0,v.ZY)(null==e?void 0:null===(t=e.content)||void 0===t?void 0:t.backgroundImage)}}),b(i)};return(0,a.jsxs)("div",{className:"".concat(J().playerHome," ").concat(g?J().removeMarginTop:""),children:[(0,a.jsxs)("div",{className:"".concat(J().playerLeft," playerLeftSec"),children:[(0,a.jsxs)("div",{className:"".concat(J().playerSection," ").concat(g?J().playerFixed:""),ref:w,children:[_&&(0,a.jsx)(h(),{loader:e=>{let{src:t}=e;return t},className:"".concat(J().bgImg),fill:!0,src:f,alt:"image",onError:e=>{let{currentTarget:t}=e;t.onerror=null,t.srcset="".concat(j.Z.lazyimage16x9)}}),(0,a.jsx)(jw_playerold_component,{setVideoBgImage:()=>{y(!1)},streamPath:null==t?void 0:null===(e=t.info)||void 0===e?void 0:e.path,setShowGoAdFreeBtn:I})]}),(0,a.jsx)("div",{className:"".concat(J().playerDesMain),ref:k,children:(0,a.jsx)(playerDescription_component,{playerMetaData:d,showGoAdFreeBtn:P})})]}),(0,a.jsx)("div",{className:"".concat(J().playerRight),children:(0,a.jsx)(playerSuggestions_component,{lefthandHeight:x,playerSuggestionsData:u,tabsData:n})})]})};i(70675);var ef=i(662),eb=i.n(ef);let useWindowSize=()=>{let[e,t]=(0,o.useState)({height:0,width:0});return(0,o.useEffect)(()=>{let updateWindowSize=()=>{t({height:window.innerWidth,width:window.innerWidth})};return updateWindowSize(),window.addEventListener("resize",updateWindowSize),()=>{window.removeEventListener("resize",updateWindowSize)}},[]),e};
1var tvshowDetailsActions_component=function(e){var t,i,n,l,r,d,c,u,v,p,g,m,y,h,f;let{detailsObj:w,addToFavourite:k,navigateTo:x,navigateToSignIn:S,shareDataSet:P,likedcontent:I}=e,{state:{PageData:T,localLang:C,userDetails:D}}=(0,s.oR)(),A=(null==w?void 0:null===(i=w.buttons)||void 0===i?void 0:null===(t=i.elements)||void 0===t?void 0:t.length)>0?null==w?void 0:null===(n=w.buttons)||void 0===n?void 0:n.elements:[],E=null==w?void 0:null===(r=w.buttons)||void 0===r?void 0:null===(l=r.elements)||void 0===l?void 0:l.filter(e=>"resume"===e.elementSubtype),B=!0;(null==E?void 0:E.length)>0&&(B=!1);let R=useWindowSize();return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)(o.Fragment,{children:[(0,a.jsx)("div",{className:"".concat(eb().resume_now_mobile),children:null==A?void 0:null===(d=A.elements)||void 0===d?void 0:d.map(e=>"resume"==e.elementSubtype&&(0,a.jsxs)("button",{type:"button",className:"btn ".concat(eb().buttons," ").concat(eb().resume_now," ").concat(eb().seekBarResume," primary br2"),onClick:t=>x(e,t),children:[e.data,(0,a.jsx)("span",{className:"".concat(eb().seek_bar," "),children:(0,a.jsx)("span",{className:"".concat(eb().seek_position," "),style:{width:"".concat(e.seekedValue,"%")}})})]}))}),(0,a.jsx)("div",{className:"".concat(eb().actions," ").concat(eb().mobile),children:null==A?void 0:A.map(e=>(0,a.jsxs)(o.Fragment,{children:[("trailer"==e.elementSubtype||"signin"==e.elementSubtype&&"trailer"==e.data.toLowerCase())&&(0,a.jsx)("button",{type:"button",className:" ".concat(eb().buttons," ").concat(eb().trailer," br2"),onClick:t=>x(e,t),children:e.data}),"signin"==e.elementSubtype&&"trailer"!=e.data.toLowerCase()&&(0,a.jsx)("button",{type:"button",onClick:S,className:" ".concat(eb().buttons," ").concat(eb().signin," primary br2"),children:e.data}),"signup"==e.elementSubtype&&(0,a.jsx)(_(),{href:"/signup",children:(0,a.jsx)("button",{type:"button",className:"btn ".concat(eb().buttons," ").concat(eb().signup," primary br2"),children:e.data})}),"watchnow"==e.elementSubtype&&(0,a.jsx)("button",{type:"button",className:"btn ".concat(eb().buttons," ").concat(eb().watchnow," primary br2"),onClick:t=>x(e,t),children:e.data}),"watchlive"==e.elementSubtype&&(0,a.jsx)("button",{type:"button",className:"btn ".concat(eb().buttons," ").concat(eb().watchnow," primary br2"),onClick:t=>x(e,t),children:e.data}),"startover"==e.elementSubtype&&(0,a.jsx)("button",{type:"button",className:"".concat(eb().buttons," ").concat(eb().startover," primary br2"),onClick:t=>x(e,t),children:e.data}),"resume"==e.elementSubtype&&(0,a.jsxs)("button",{type:"button",className:"btn ".concat(eb().buttons," ").concat(eb().resume," ").concat(eb().seekBarResume," primary br2"),onClick:t=>x(e,t),children:[e.data,(0,a.jsx)("span",{className:"".concat(eb().seek_bar," "),children:(0,a.jsx)("span",{className:"".concat(eb().seek_position," "),style:{width:"".concat(e.seekedValue,"%")}})})]}),"watch_latest_episode"==e.elementSubtype&&(0,a.jsx)(_(),{href:"/",children:(0,a.jsxs)("button",{type:"button",className:"btn ".concat(eb().buttons," ").concat(eb().watch_latest_episode," primary br2"),onClick:t=>x(e,t),children:[(0,a.jsx)("img",{alt:"button",src:j.Z.tvShowDetails.watchnow}),"\xa0",e.data]})}),"rent"==e.elementSubtype&&(0,a.jsx)("button",{type:"button",className:"btn ".concat(eb().buttons," ").concat(eb().rent," primary br2"),onClick:t=>x(e,t),children:e.data}),"buy"==e.elementSubtype&&(0,a.jsx)("button",{type:"button",className:"btn ".concat(eb().buttons," ").concat(eb().rent," primary br2"),onClick:t=>x(e,t),children:e.data}),!!D&&B&&"subscribe"==e.elementSubtype&&(0,a.jsx)(_(),{href:"/",children:(0,a.jsxs)("button",{type:"button",className:"btn ".concat(eb().buttons," ").concat(eb().subscribe," primary br2"),onClick:t=>x(e,t),children:["Start Free Trial"!=e.data,e.data]})})]},null==e?void 0:e.id))}),R.width<767&&(0,a.jsx)(a.Fragment,{children:(null==w?void 0:w.expiryInfo)&&(0,a.jsxs)("p",{className:eb().expiry_info,children:[(0,a.jsx)("img",{src:"".concat(b.e.staticImagesPath,"pack-info-icon.svg"),alt:"Rentel Info"}),w.expiryInfo[0],(0,a.jsx)("span",{className:"".concat(eb().time_stamp),children:w.expiryInfo[1]})]})}),!!w.rentalinfo&&(0,a.jsxs)("p",{className:"".concat(eb().rent_info," ").concat(eb().rent_info_mobile),children:[(0,a.jsx)("img",{src:"".concat(b.e.staticImagesPath,"pack-info-icon.svg"),alt:"Rentel Info"}),w.rentalinfo]}),!1]},"mobileActions"),(0,a.jsx)(o.Fragment,{children:(0,a.jsxs)("div",{className:"".concat(eb().actions),children:[null==A?void 0:A.map(e=>(0,a.jsxs)(o.Fragment,{children:[("trailer"==e.elementSubtype||"signin"==e.elementSubtype&&"trailer"==e.data.toLowerCase())&&(0,a.jsx)("button",{type:"button",className:" ".concat(eb().buttons," ").concat(eb().trailer," br2"),onClick:t=>x(e,t),children:e.data}),"signin"==e.elementSubtype&&"trailer"!=e.data.toLowerCase()&&(0,a.jsx)("button",{type:"button",onClick:S,className:" ".concat(eb().buttons," ").concat(eb().signin," primary br2"),children:e.data}),"signup"==e.elementSubtype&&(0,a.jsx)(_(),{href:"/signup",children:(0,a.jsx)("button",{type:"button",className:"btn ".concat(eb().buttons," ").concat(eb().signup," primary br2"),children:e.data})}),"watchnow"==e.elementSubtype&&(0,a.jsxs)("button",{type:"button",className:"btn ".concat(eb().buttons," ").concat(eb().watchnow," primary-btn br2"),onClick:t=>x(e,t),children:[(0,a.jsx)("img",{alt:"button",src:j.Z.tvShowDetail
1s.watchnow}),"\xa0",e.data]}),"watchlive"==e.elementSubtype&&(0,a.jsxs)("button",{type:"button",className:"btn ".concat(eb().buttons," ").concat(eb().watchnow," primary br2"),onClick:t=>x(e,t),children:[e.data,"\xa0",(0,a.jsx)("img",{alt:"button",src:j.Z.tvShowDetails.watchnow})]}),"startover"==e.elementSubtype&&(0,a.jsxs)("button",{type:"button",className:"".concat(eb().buttons," ").concat(eb().startover," primary br2"),onClick:t=>x(e,t),children:[e.data,"\xa0",(0,a.jsx)("img",{alt:"button",src:j.Z.tvShowDetails.watchnow})]}),"resume"==e.elementSubtype&&(0,a.jsxs)("button",{type:"button",className:"btn ".concat(eb().buttons," ").concat(eb().resume," ").concat(eb().seekBarResume," primary br2"),onClick:t=>x(e,t),children:[e.data,"\xa0",(0,a.jsx)("img",{alt:"button",src:j.Z.tvShowDetails.watchnow}),(0,a.jsx)("span",{className:"".concat(eb().seek_bar," "),children:(0,a.jsx)("span",{className:"".concat(eb().seek_position," "),style:{width:"".concat(e.seekedValue,"%")}})})]}),"watch_latest_episode"==e.elementSubtype&&(0,a.jsx)(_(),{href:"/",children:(0,a.jsxs)("button",{type:"button",className:"btn ".concat(eb().buttons," ").concat(eb().watch_latest_episode," primary br2"),onClick:t=>x(e,t),children:[e.data,"\xa0",(0,a.jsx)("img",{alt:"button",src:j.Z.tvShowDetails.watchnow})]})}),"rent"==e.elementSubtype&&(0,a.jsx)("button",{type:"button",className:"btn ".concat(eb().buttons," ").concat(eb().rent," primary br2"),onClick:t=>x(e,t),children:e.data}),"buy"==e.elementSubtype&&(0,a.jsx)("button",{type:"button",className:"btn ".concat(eb().buttons," ").concat(eb().rent," primary br2"),onClick:t=>x(e,t),children:e.data}),!!D&&B&&"subscribe"==e.elementSubtype&&(0,a.jsx)(_(),{href:"/",children:(0,a.jsxs)("button",{type:"button",className:"btn ".concat(eb().buttons," ").concat(eb().subscribe," primary br2"),onClick:t=>x(e,t),children:["Start Free Trial"!=e.data&&(0,a.jsx)("img",{className:eb().crownicon,src:j.Z.tvShowDetails.watchnow,alt:"crown_icon"}),e.data]})})]},null==e?void 0:e.id)),(null==w?void 0:w.showFavouriteButton)&&(null===b.e||void 0===b.e?void 0:null===(c=b.e.detailsPage)||void 0===c?void 0:c.favType)==1&&(0,a.jsx)("button",{type:"button",className:" ".concat(eb().buttons," ").concat(eb().fav1," br2"),onClick:k,children:w.isFavourite?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{className:eb().active_fav_icon,src:j.Z.tvShowDetails.favoriteActive,alt:"favourite"}),(0,a.jsx)("span",{className:"".concat(eb().fav_text),children:N.sh[C].watchlistSelected})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{className:"".concat(eb().fav_icon),src:"".concat(j.Z.tvShowDetails.watchlistWhite),alt:"favourite"}),(0,a.jsx)("span",{className:"".concat(eb().fav_text),children:N.sh[C].Favourite})," "]})},"fav-button"),w.showFavouriteButton&&(null===b.e||void 0===b.e?void 0:null===(u=b.e.detailsPage)||void 0===u?void 0:u.favType)==2&&(0,a.jsx)("button",{type:"button",className:"".concat(eb().buttons," ").concat(eb().share," br2"),onClick:k,children:w.isFavourite?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{className:eb().active_fav_icon,src:j.Z.tvShowDetails.watchlistSelected,alt:"favourite"}),(0,a.jsx)("span",{className:eb().fancy_tool_tip,children:null===N.sh||void 0===N.sh?void 0:N.sh[C].Favourited})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{className:eb().fav_icon,src:j.Z.tvShowDetails.watchlistWhite,alt:"favourite"}),(0,a.jsx)("span",{className:eb().fancy_tool_tip,children:null===N.sh||void 0===N.sh?void 0:null===(v=N.sh[C])||void 0===v?void 0:v.Favourite})]})}),(null==w?void 0:w.showLikeButton)&&(0,a.jsxs)("button",{type:"button",className:"".concat(eb().buttons," ").concat(eb().like_and_dislike," br2"),children:[(0,a.jsx)("button",{type:"button",onClick:()=>I(1===w.reactionType?"0":"1",1===w.reactionType?"I_like_it_removed":"I_like_it_added"),style:{background:"none"},className:eb().lyk_dislyk_btn,children:"1"==w.reactionType?(0,a.jsxs)("button",{className:eb().btns,children:[(0,a.jsx)("img",{src:"".concat(j.Z.tvShowDetails.liked),className:eb().share_icon,alt:"share"}),(0,a.jsx)("span",{className:eb().fancy_tool_tip,children:null===N.sh||void 0===N.sh?void 0:null===(p=N.sh[C])||void 0===p?void 0:p.Liked})]}):(0,a.jsxs)("button",{className:eb().btns,children:[(0,a.jsx)("img",{src:"".concat(j.Z.tvShowDetail
1s.Notabletolike),className:eb().share_icon,alt:"share"}),(0,a.jsx)("span",{className:eb().fancy_tool_tip,children:null===N.sh||void 0===N.sh?void 0:null===(g=N.sh[C])||void 0===g?void 0:g.Like})]})}),(0,a.jsx)("button",{type:"button",onClick:()=>I(-1==w.reactionType?"0":"-1",-1==w.reactionType?"Not_for_me_removed":"Not_for_me_added"),style:{background:"none"},className:eb().lyk_dislyk_btn,children:"-1"==w.reactionType?(0,a.jsxs)("button",{className:eb().btns,children:[(0,a.jsx)("img",{src:"".concat(j.Z.tvShowDetails.disliked),className:eb().share_icon,alt:"share"}),(0,a.jsx)("span",{className:eb().fancy_tool_tip,children:null===N.sh||void 0===N.sh?void 0:null===(m=N.sh[C])||void 0===m?void 0:m.Disliked})]}):(0,a.jsxs)("button",{className:eb().btns,children:[(0,a.jsx)("img",{src:"".concat(j.Z.tvShowDetails.notabletodislike),className:eb().share_icon,alt:"share"}),(0,a.jsx)("span",{className:eb().fancy_tool_tip,children:null===N.sh||void 0===N.sh?void 0:null===(y=N.sh[C])||void 0===y?void 0:y.Dislike})]})})]}),(null==T?void 0:null===(h=T.shareInfo)||void 0===h?void 0:h.isSharingAllowed)&&(0,a.jsxs)("button",{type:"button",className:"".concat(eb().buttons," ").concat(eb().share," br2"),onClick:e=>x({elementSubtype:"Share"},e),children:[(0,a.jsx)("img",{src:"".concat(j.Z.tvShowDetails.share),className:eb().share_icon,alt:"share"}),(0,a.jsx)("span",{className:eb().fancy_tool_tip,children:null===N.sh||void 0===N.sh?void 0:null===(f=N.sh[C])||void 0===f?void 0:f.Share})]}),(null==w?void 0:w.expiryInfo)&&(0,a.jsxs)("p",{className:eb().expiry_info,children:[(0,a.jsx)("img",{src:"".concat(b.e.staticImagesPath,"pack-info-icon.svg"),alt:"Rentel Info"}),w.expiryInfo[0],(0,a.jsx)("span",{className:"".concat(eb().time_stamp),children:w.expiryInfo[1]})]}),(null==w?void 0:w.coming_soon)&&(0,a.jsxs)("p",{className:eb().coming_soon_section,children:[(0,a.jsx)("img",{src:"".concat(j.Z.tvShowDetails.comingSoon)}),w.coming_soon]})]})},"desktopActions")]})};let ew=D()(()=>i.e(5017).then(i.bind(i,57615)),{loadableGenerated:{webpack:()=>[57615]}}),ek=D()(()=>Promise.all([i.e(8438),i.e(976)]).then(i.bind(i,58438)),{loadableGenerated:{webpack:()=>[58438]}}),ex=D()(()=>i.e(5868).then(i.bind(i,93463)),{loadableGenerated:{webpack:()=>[93463]},ssr:!1});
1var tvshowDetails_component=()=>{var e,t,i,n,l,c,p,g,m,_,y,f,w,k,x;let{state:{PageData:S,userDetails:I,SystemFeature:C,localLang:D},dispatch:A}=(0,s.oR)(),[E,R]=(0,o.useState)({}),[V,M]=(0,o.useState)({}),[L,F]=(0,o.useState)(null),[O,Z]=(0,o.useState)(""),[q,W]=(0,o.useState)(!1),J=(null===(i=(0,T.rV)("systemConfigs"))||void 0===i?void 0:null===(t=i.data)||void 0===t?void 0:null===(e=t.configs)||void 0===e?void 0:e.castCrewOrder)?JSON.parse(null===(c=(0,T.rV)("systemConfigs"))||void 0===c?void 0:null===(l=c.data)||void 0===l?void 0:null===(n=l.configs)||void 0===n?void 0:n.castCrewOrder):[],[H,z]=(0,o.useState)({}),{mutate:G,data:Y}=(0,u.Z)(),{mutate:Q,data:X}=(0,u.Z)(),ee=(0,r.useRouter)(),[et,en]=(0,o.useState)({enabled:!1,data:{}}),{mutate:el,data:ea}=(0,u.Z)(),{mutate:eo,data:es}=(0,u.Z)(),{mutate:er,data:ed}=(0,u.Z)(),{mutate:ec,data:eu}=(0,U.Z)(),[ev,ep]=(0,o.useState)({}),[eg,em]=(0,o.useState)({}),[e_,ey]=(0,o.useState)(null),[eh,ef]=(0,o.useState)(""),eS=useWindowSize(),ej=(0,o.useRef)(!1);(0,T.LS)("playertitle",null==E?void 0:E.title),(0,o.useEffect)(()=>{var e;let t={};null==S||null===(e=S.data)||void 0===e||e.map(e=>{if((null==e?void 0:e.contentCode.includes("movie_actors"))||(null==e?void 0:e.contentCode.includes("content_actors"))){var i,n;null==e||null===(n=e.section)||void 0===n||null===(i=n.sectionData)||void 0===i||i.data.map(e=>{var i;t[null==e?void 0:e.display.subtitle1]||(t[null==e?void 0:e.display.subtitle1]=[]),null===(i=t[null==e?void 0:e.display.subtitle1])||void 0===i||i.push(null==e?void 0:e.display.title)})}}),z(t)},[S]),(0,o.useEffect)(()=>{var e,t,i,n,l;if((null==C?void 0:null===(t=C.encryptApisList)||void 0===t?void 0:null===(e=t.fields)||void 0===e?void 0:e.payment)==="true"){let e=null==eu?void 0:null===(i=eu.data)||void 0===i?void 0:i.data;if(e)try{(e=JSON.parse((0,d.ow)(e))).status?en({enabled:!0,data:e.response}):A({type:s.Nw.o4,payload:{message:null===(n=e.error)||void 0===n?void 0:n.message}})}catch(e){console.log(e)}}else{let e=null==eu?void 0:eu.data;e&&(e.status?en({enabled:!0,data:e.response}):A({type:s.Nw.o4,payload:{message:null===(l=e.error)||void 0===l?void 0:l.message}}))}},[eu]),(0,o.useEffect)(()=>{var e,t,i,n;if(null==ed?void 0:null===(e=ed.data)||void 0===e?void 0:e.status){let e={},{data:l}=ed;l.response.forEach(t=>{if("razorpay"==t.supportedGateway[0].code||"stripe"==t.supportedGateway[0].code){var i,n,l;ep(t),e.userSelectedPack=null==t?void 0:null===(n=t.packageInfo)||void 0===n?void 0:null===(i=n.packages)||void 0===i?void 0:i[0],e.masterPack=null==t?void 0:null===(l=t.packageInfo)||void 0===l?void 0:l.master,e.suppGateWays=null==t?void 0:t.supportedGateway}}),(null==e?void 0:e.userSelectedPack)&&(0,T.LS)("packagesInfo",null==e?void 0:e.userSelectedPack),e.package_type=2,(null===(t=e.suppGateWays)||void 0===t?void 0:t[0].code)=="razorpay"?proceedToPayRazor(e):(null==e?void 0:null===(n=e.suppGateWays)||void 0===n?void 0:null===(i=n[0])||void 0===i?void 0:i.code)=="stripe"&&handleOrderSummaryRedirection(ed)}},[ed]);let handleOrderSummaryRedirection=e=>{var t,i;let n={},l=null==e?void 0:null===(t=e.data)||void 0===t?void 0:t.response;if(l.forEach((t,i)=>{var l,a,o,s;(null==t?void 0:null===(a=t.packageInfo)||void 0===a?void 0:null===(l=a.packages)||void 0===l?void 0:l.length)>0&&(null==t||null===(s=t.packageInfo)||void 0===s||null===(o=s.packages)||void 0===o||o.forEach((l,a)=>{var o,s,r,d,c,u;(null==t?void 0:null===(s=t.supportedGateway)||void 0===s?void 0:null===(o=s[0])||void 0===o?void 0:o.code)==="stripe"&&(n={...null==e?void 0:null===(r=e.data)||void 0===r?void 0:r.response,packageInfo:null==e?void 0:null===(u=e.data)||void 0===u?void 0:null===(c=u.response)||void 0===c?void 0:null===(d=c[i])||void 0===d?void 0:d.packageInfo,supportedGateway:t.supportedGateway,activ_pkg_indx:a,plan_index:i,planId:l.id})}))}),(null===(i=Object.keys(n))||void 0===i?void 0:i.length)>0){let e={activ_pkg_indx:n.activ_pkg_indx,active_plan_index:n.plan_index,activePackage:n,activePackageId:n.planId};(0,T.LS)("packageUtil",JSON.stringify(e)),A({type:s.Nw.mY,payload:e});let t="/buy/order-summary/".concat(n.planId);ee.push(t)}},proceedToPayRazor=e=>{var t,i;let n={gateway:"razorpay",packages:e.userSelectedPack.id.toString()};if((null==C?void 0:null===(i=C.encryptApisList)||void 0===i?void 0:null===(t=i.fields)||void 0===t?void 0:t.payment)=="true"){let e={data:(0,d.q6)(JSON.stringify(n)),metadata:(0,d.q6)(JSON.stringify({request:"order/checkout"}))};postPaymentData("".concat("https://lukentv-api.revlet.net","/service/api/v1/send"),e)}else postPaymentData("".concat("https://lukentv-api.revlet.net","/payment/api/v1/order/checkout"),n)},postPaymentData=(e,t)=>{ec({url:e,apiData:t})};(0,o.useEffect)(()=>
1{if(null==ea?void 0:ea.data){var e,t,i,n,l;if(null==ea?void 0:null===(e=ea.data)||void 0===e?void 0:e.status){let e=getDeeplinkInfo(null==ea?void 0:ea.data.response);window.open(e),(0,B.hZ)({onWatchTimer:1,contentPath:eh})}else(null==ea?void 0:null===(t=ea.data)||void 0===t?void 0:t.error)&&(null==ea?void 0:null===(n=ea.data)||void 0===n?void 0:null===(i=n.error)||void 0===i?void 0:i.code)===401||console.warn(null==ea?void 0:null===(l=ea.data)||void 0===l?void 0:l.error)}return window.addEventListener("resize",handleResize),()=>window.removeEventListener("resize",handleResize)},[ea]),(0,o.useEffect)(()=>{detailObject()},[S]),(0,o.useEffect)(()=>{if(Object.keys(E).length>0&&!ej.current){var e,t,i,n,l,a,o,s;(0,P.qP)("Content_Viewed",{ctEventDataParam:{content_type:null==S?void 0:null===(t=S.info)||void 0===t?void 0:null===(e=t.attributes)||void 0===e?void 0:e.mediaContentType,content_title:null==E?void 0:E.title,content_id:null==S?void 0:null===(n=S.info)||void 0===n?void 0:null===(i=n.attributes)||void 0===i?void 0:i.id,content_genre:(null==S?void 0:null===(a=S.info)||void 0===a?void 0:null===(l=a.attributes)||void 0===l?void 0:l.genre)||"NA",category_name:(0,T.rV)("contentSectionName"),content_language:(null==S?void 0:null===(s=S.info)||void 0===s?void 0:null===(o=s.attributes)||void 0===o?void 0:o.language)||"NA"}}),ej.current=!0}},[E]),(0,o.useEffect)(()=>{I?F(!0):F(!1)},[I]);let isValidStreamURL=e=>{try{let t=new URL(e);return"https:"===t.protocol&&!!t.hostname}catch(e){return!1}};(0,o.useEffect)(()=>{var e,t,i,n,l,a,o,s;(null==es?void 0:null===(n=es.data)||void 0===n?void 0:null===(i=n.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)&&isValidStreamURL(null==es?void 0:null===(s=es.data)||void 0===s?void 0:null===(o=s.response)||void 0===o?void 0:null===(a=o.streams)||void 0===a?void 0:null===(l=a[0])||void 0===l?void 0:l.url)&&setTimeout(()=>{var e,t,i;Z(null==es?void 0:null===(i=es.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),handleResize()},3e3)},[es]);let analyticsData=function(){var e,t,i,n,l,a,o;let s=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"NA";return{button_label:s,content_name:E.title,content_type:(null==S?void 0:null===(t=S.info)||void 0===t?void 0:null===(e=t.attributes)||void 0===e?void 0:e.mediaContentType)||"NA",content_genre:(null==S?void 0:null===(l=S.info)||void 0===l?void 0:null===(n=l.attributes)||void 0===n?void 0:null===(i=n.genre)||void 0===i?void 0:i.replace(/[â¢]/g,","))||"NA",content_partner_name:(null==S?void 0:null===(o=S.info)||void 0===o?void 0:null===(a=o.attributes)||void 0===a?void 0:a.networkName)||"NA",tab:(0,T.rV)("tab")||"Home",rail_name:"NA"}},detailObject=()=>{var e,t,i,n,l,a,o,s;let r={};S.data.map(e=>{"content"===e.paneType&&(r.title=e.content.title)}),null==S||S.data.map(e=>{var t;null===(t=e.content)||void 0===t||t.dataRows.map(e=>{e.elements.map(e=>{"partnerIcon"==e.elementSubtype&&(r.partnerIcon=getImagePath(e.data)),"subtitle"===e.elementSubtype&&(r.subtitle=e.data),"pgrating"===e.elementSubtype&&(r.pgrating=e.data),"premium"===e.elementSubtype&&(r.premium=e.data),"advisory"===e.elementSubtype&&(r.advisory=e.data),"bgImage"===e.elementSubtype&&e.data&&(r.BgImage=getImagePath(e.data)),"streamQuality"===e.elementSubtype&&(r.streamQuality=e.data),"audioQuality"===e.elementSubtype&&(r.audioQuality=e.data),"imdb"===e.elementSubtype&&(r.imdb=e.data),"resume"===e.elementSubtype&&(e.seekedValue=getSeekValue(S.info.attributes.watchedPosition))})})}),null==S||S.data.map(e=>{var t;null===(t=e.content)||void 0===t||t.dataRows.map(e=>{"button"===e.rowDataType&&(r.buttons=e)})}),null==S||S.data.map(e=>{var t;null===(t=e.content)||void 0===t||t.dataRows.map(t=>{t.elements.map(e=>{"description"===e.elementType?r.description=e.data:"text"==e.elementType?"rentalinfo"==e.elementSubtype?r.rentalinfo=e.data:"expiryInfo"==e.elementSubtype?r.expiryInfo=e.data.split("@"):"coming_soon"==e.elementSubtype&&(r.coming_soon=e.data):"image"==e.elementType&&e.data&&"titleImage"==e.elementSubtype&&(r.titleimage=e.data)}),!r.BgImage&&e.content.backgroundImage&&(r.BgImage=getImagePath(e.content.backgroundImage))})});let d=S.data.filter(e=>"section"==e.paneType&&"actor"==e.section.sectionInfo.dataType);if(null==d?void 0:d.length){let e=d[0].section.sectionData.data.map(e=>e.display.title);e.length&&(r.castcrew=e.join())}r.showFavouriteButton=null===(e=S.pageButtons)||void 0===e?void 0:e.showFavouriteButton,r.isFavourite=null===(t=S.pageButtons)||void 0===t?void 0:t.isFavourite,r.showLikeButton=null===(n=S.pageButtons)||void 0===n?void 0:null===(i=n.userLike)||void 0===i?void 0:i.showLikeButton,r.isLiked=null===(a=S.pageButtons)||void 0===a?void 0:null===(l=a.userLike)||void 0===l?void 0:l.isLiked,r.reactionType=null==S?void 0:null===(s=S.pageButtons)||void 0===s?void 0:null===(o=s.userLike)||void 0===o?void 0:o.reactionType,fetch
1MovieTrailer(r),R(r)},getSeekValue=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){}},fetchMovieTrailer=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://lukentv-api.revlet.net",api:"https://lukentv-api.revlet.net",search:"https://lukentv-searchapi.revlet.net",pgURL:"https://lukentv-api.revlet.net",guideURL:"https://lukentv-api.revlet.net",tenantCode:"lukentv",product:"lukentv",isSupported:!0},t="".concat(e,"/service/api/v1/page/stream?path=").concat(null==i?void 0:i.target,"&stream_type=trailer");eo(t)}}catch(e){console.error("Error fetching movie trailer:",e)}};function getImagePath(e){try{return e?(0,v.ZY)(e):""}catch(e){}}let navigateToSignIn=()=>{var e,t,i,n;(0,P.qP)("click_event",analyticsData("Sign_in")),A({type:s.Nw.t3,payload:ee.asPath}),handleClose(),ee.push("/signin"),(0,P.qP)("Onboarding_Started",{ctEventDataParam:{content_id:(null==S?void 0:null===(t=S.info)||void 0===t?void 0:null===(e=t.attributes)||void 0===e?void 0:e.id)||"NA",content_title:(null==E?void 0:E.title)||"NA",content_genre:(null==S?void 0:null===(n=S.info)||void 0===n?void 0:null===(i=n.attributes)||void 0===i?void 0:i.genre)||"NA"}})},handleClose=()=>{M({})},popupDataSet=()=>{var e,t,i,n;M({type:"signin",isActive:!0,title1:null===(e=N.sh[D])||void 0===e?void 0:e.Save_Your_Favourites,title2:null===(t=N.sh[D])||void 0===t?void 0:t.To_access_this_feature_please_sign_in,yesButton1:null===(i=N.sh[D])||void 0===i?void 0:i.Cancel,yesButtonType:"secondary",yesButtonTarget1:handleClose,noButton1:null===(n=N.sh[D])||void 0===n?void 0:n.Sign_In,noButtontarget1:navigateToSignIn,noButtonType:"primary",close:!0,closeTarget:handleClose})},navigateTo=(e,t)=>{var i,n,l,a,o,r,c,u,v,p,g,m,_,y,h,f,w,k,x,C,B,R,V,F,O,Z,U,q,W;t.preventDefault();let J=analyticsData(),H=e.elementSubtype;if(ef(e.target),"Share"===H)M({type:"share",isActive:!0,targetpath:(0,d.mn)(ee.asPath),img:"".concat(j.Z.logo),closeTarget:handleClose,anal
1yticsObj:J}),(0,P.qP)("click_event",analyticsData("Share")),(0,P.qP)("Content_Shared",{ctEventDataParam:{content_id:(null==S?void 0:null===(n=S.info)||void 0===n?void 0:null===(i=n.attributes)||void 0===i?void 0:i.contentID)||(null==S?void 0:null===(a=S.info)||void 0===a?void 0:null===(l=a.attributes)||void 0===l?void 0:l.id)||"NA",content_title:null==E?void 0:E.title,content_type:null==S?void 0:null===(r=S.info)||void 0===r?void 0:null===(o=r.attributes)||void 0===o?void 0:o.contentType,category_name:(0,T.rV)("contentSectionName"),content_genre:null==S?void 0:null===(u=S.info)||void 0===u?void 0:null===(c=u.attributes)||void 0===c?void 0:c.genre,content_language:(null==S?void 0:null===(p=S.info)||void 0===p?void 0:null===(v=p.attributes)||void 0===v?void 0:v.language)||"NA",episode_number:null==S?void 0:null===(m=S.info)||void 0===m?void 0:null===(g=m.attributes)||void 0===g?void 0:g.episodeSeqNo,episode_title:null==E?void 0:E.title,season_number:null==S?void 0:null===(y=S.info)||void 0===y?void 0:null===(_=y.attributes)||void 0===_?void 0:_.seasonSeqNo,medium:"social"}});else if("watchnow"==H)(0,P.qP)("click_event",analyticsData("Watch_now")),(null==e?void 0:null===(h=e.properties)||void 0===h?void 0:h.isDeeplinking)==="true"?el("https://lukentv-api.revlet.net"+"/service/api/v1/page/deeplink?path=".concat(e.target)):ee.push(e.target);else if("subscribe"===H){if((0,P.qP)("click_event",analyticsData("Subscribe")),(null==e?void 0:null===(f=e.properties)||void 0===f?void 0:f.showPopUp)==="true")M({type:"payment",isActive:(null==e?void 0:null===(w=e.properties)||void 0===w?void 0:w.showPopUp)==="true",topImg:(null==e?void 0:null===(k=e.properties)||void 0===k?void 0:k.showPopUp)==="true",topImgValue:"http://mobond.yuppcdn.net/cf1/static/slt/images/payment-failure.svg",title1:null==e?void 0:null===(x=e.properties)||void 0===x?void 0:x.title,title2:null==e?void 0:null===(C=e.properties)||void 0===C?void 0:C.subtitle,yesButtonTarget1:handleClose,yesButton1:"Cancel",yesButtonType:"primary",close:!0,closeTarget:handleClose});else if((null==I?void 0:null===(B=I.packages)||void 0===B?void 0:B.length)>0){let e=(0,d.$i)(null==I?void 0:I.packages);e?M({isActive:!0,type:"upgradePlan",title1:e,yesButton1:"OK",yesButtonType:"primary",yesButtonTarget1:handleClose,close:!0,closeTarget:handleClose}):(A({type:s.Nw.t3,payload:ee.asPath}),ee.push("/buy/packages-list"))}else A({type:s.Nw.t3,payload:ee.asPath}),ee.push("/buy/packages-list")}else if("resume"==H)(0,P.qP)("click_event",analyticsData("Resume")),(null==e?void 0:null===(R=e.properties)||void 0===R?void 0:R.isDeeplinking)==="true"?el("https://lukentv-api.revlet.net"+"/service/api/v1/page/deeplink?path=".concat(e.target)):ee.push(e.target);else if("startover"==H)(0,P.qP)("click_event",analyticsData("Start_over")),(null==e?void 0:null===(V=e.properties)||void 0===V?void 0:V.isDeeplinking)==="true"?el("https://lukentv-api.revlet.net"+"/service/api/v1/page/deeplink?path=".concat(e.target)):(A({type:s.Nw.jr,payload:{startover:!0}}),ee.push(e.target));else if("rent"==H||"buy"==H){if(A({type:s.Nw.t3,payload:ee.asPath}),!1===L){let e={type:"signin",isActive:!0,title1:null===(Z=N.sh[D])||void 0===Z?void 0:Z.To_access_this_feature_please_sign_in,yesButton1:"Close",yesButtonType:"primary",yesButtonTarget1:handleClose,noButton1:null===(U=N.rL[D])||void 0===U?void 0:U.Sign_In,noButtontarget1:navigateToSignIn,noButtonType:"secondary",close:!0,closeTarget:handleClose};M(e)}else if((null===b.e||void 0===b.e?void 0:null===(O=b.e.packageSettings)||void 0===O?void 0:null===(F=O.paymentGateway)||void 0===F?void 0:F.typeOfPayment)=="internal"){let t=ee.asPath.replace("/",""),i=(null==e?void 0:null===(q=e.properties)||void 0===q?void 0:q.packageType)?null==e?void 0:null===(W=e.properties)||void 0===W?void 0:W.packageType:2,n=new URLSearchParams({path:t,package_type:i,skip_package_content:!0}).toString(),l="".concat("https://lukentv-api.revlet.net").concat("/package/api/v1/","packages/info/for/content?").concat(n);er(l)}else A({type:s.Nw.t3,payload:ee.asPath}),ee.push({pathname:"/buy/packages-list",query:{_rent:ee.asPath.slice(1)}})}else"trailer"==H?(0,P.qP)("click_event",analyticsData("Trailer")):"signin"==H&&(0,P.qP)("click_event",analyticsData("Sign_in")),ee.push(e.target)},shareDataSet=()=>{var e,t,i,n,l,a,o,s,r,c,u,v,p,g,m,_;let y={type:"share",isActive:!0,targetpath:(0,d.mn)(ee.asPath),img:"".concat(null===b.e||void 0===b.e?void 0:b.e.appLogo),closeTarget:handleClose,anal
1yticsObj:{...analyticsData()}};(0,P.qP)("Content_Shared",{ctEventDataParam:{content_id:(null==S?void 0:null===(t=S.info)||void 0===t?void 0:null===(e=t.attributes)||void 0===e?void 0:e.contentID)||(null==S?void 0:null===(n=S.info)||void 0===n?void 0:null===(i=n.attributes)||void 0===i?void 0:i.id)||"NA",content_title:null==E?void 0:E.title,content_type:null==S?void 0:null===(a=S.info)||void 0===a?void 0:null===(l=a.attributes)||void 0===l?void 0:l.contentType,category_name:(0,T.rV)("contentSectionName"),content_genre:null==S?void 0:null===(s=S.info)||void 0===s?void 0:null===(o=s.attributes)||void 0===o?void 0:o.genre,content_language:(null==S?void 0:null===(c=S.info)||void 0===c?void 0:null===(r=c.attributes)||void 0===r?void 0:r.language)||"NA",episode_number:null==S?void 0:null===(v=S.info)||void 0===v?void 0:null===(u=v.attributes)||void 0===u?void 0:u.episodeSeqNo,episode_title:null==S?void 0:null===(g=S.info)||void 0===g?void 0:null===(p=g.attributes)||void 0===p?void 0:p.tvShowName,season_number:null==S?void 0:null===(_=S.info)||void 0===_?void 0:null===(m=_.attributes)||void 0===m?void 0:m.seasonSeqNo,medium:"social"}}),M(y)},getDeeplinkInfo=e=>{if(void 0!=e&&""!=e){try{e=JSON.parse(e)}catch(e){}if((null==e?void 0:e.url)&&0!=e.url.length)return e.url;if(null==e?void 0:e.contentCode){let t=e.contentCode.includes("//")?e.contentCode.split("//")[1]:e.contentCode;return"https://".concat(t)}}};(0,o.useEffect)(()=>{var e,t,i,n,l,a,o,s,r,d,c,u,v,p,g,m,_;if(null==Y?void 0:null===(e=Y.data)||void 0===e?void 0:e.status){let e=E.isFavourite?2:1;E.isFavourite=1===e,R({...E}),1==E.isFavourite?(0,P.qP)("click_event",analyticsData("Watchlist_added")):(0,P.qP)("click_event",analyticsData("Watchlist_removed")),1==E.isFavourite?(0,P.qP)("Added_to_Watchlist",{ctEventDataParam:{content_id:null==S?void 0:null===(i=S.info)||void 0===i?void 0:null===(t=i.attributes)||void 0===t?void 0:t.id,content_title:null==E?void 0:E.title,content_type:null==S?void 0:null===(l=S.info)||void 0===l?void 0:null===(n=l.attributes)||void 0===n?void 0:n.contentType,category_name:(0,T.rV)("contentSectionName"),content_genre:null==S?void 0:null===(o=S.info)||void 0===o?void 0:null===(a=o.attributes)||void 0===a?void 0:a.genre,content_language:(null==S?void 0:null===(r=S.info)||void 0===r?void 0:null===(s=r.attributes)||void 0===s?void 0:s.language)||"NA"}}):(0,P.qP)("Removed_from_Watchlist",{ctEventDataParam:{content_id:null==S?void 0:null===(c=S.info)||void 0===c?void 0:null===(d=c.attributes)||void 0===d?void 0:d.id,content_title:null==E?void 0:E.title,content_type:null==S?void 0:null===(v=S.info)||void 0===v?void 0:null===(u=v.attributes)||void 0===u?void 0:u.contentType,category_name:(0,T.rV)("contentSectionName"),content_genre:null==S?void 0:null===(g=S.info)||void 0===g?void 0:null===(p=g.attributes)||void 0===p?void 0:p.genre,content_language:(null==S?void 0:null===(_=S.info)||void 0===_?void 0:null===(m=_.attributes)||void 0===m?void 0:m.language)||"NA"}})}},[Y]),(0,o.useEffect)(()=>{var e,t,i,n,l,a,o,s,r;if(null==X?void 0:null===(e=X.data)||void 0===e?void 0:e.status){let e=parseInt(e_,10),d=1===e;R(t=>{var i,n;return{...t,isLiked:d,reactionType:e,message:null==X?void 0:null===(n=X.data)||void 0===n?void 0:null===(i=n.response)||void 0===i?void 0:i.message}});let c="";1===e?c="Content_Liked":-1===e&&(c="Content_Disliked"),c&&(0,P.qP)(c,{ctEventDataParam:{content_id:null==S?void 0:null===(i=S.info)||void 0===i?void 0:null===(t=i.attributes)||void 0===t?void 0:t.id,content_title:null==E?void 0:E.title,content_type:null==S?void 0:null===(l=S.info)||void 0===l?void 0:null===(n=l.attributes)||void 0===n?void 0:n.contentType,category_name:(0,T.rV)("contentSectionName"),content_genre:null==S?void 0:null===(o=S.info)||void 0===o?void 0:null===(a=o.attributes)||void 0===a?void 0:a.genre,content_language:(null==S?void 0:null===(r=S.info)||void 0===r?void 0:null===(s=r.attributes)||void 0===s?void 0:s.language)||"NA"}})}},[X]);let addToFavourite=()=>{if(L)try{let e=E.isFavourite?2:1,t="https://lukentv-api.revlet.net"+"/service/api/auth/user/favourite/item?path=".concat(ee.asPath.slice(1),"&action=").concat(e);G(t)}catch(e){console.error("Error:",e)}else popupDataSet()},likedcontent=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if(L)try{ey(e);let i="https://lukentv-api.revlet.net"+"/service/api/auth/user/like?path=".concat(ee.asPath.slice(1),"&action=").concat(e);Q(i),t&&(0,P.qP)("click_event",analyticsData(t))}catch(e){console.error("Error:",e)}else popupDataSet()},loaderProp=e=>{let{src:t}=e;return t},streamEnded=()=>{Z("")},handleResize=()=>{(0,d.uG)().width<991&&streamEnded()};return(0,a.jsxs)(a.Fragment,{children:[q&&(0,a.jsx)(ei.Z,{}),(0,a.jsxs)("div",{className:"".concat(eb().tvshow_details_page),children:[et.enabled&&(0,a.jsx)(ex,{razorpayData:et.data,activePackage:ev,paymentCancelled:()=>{en({enabled:!1,data:{}})}}),(0,a.jsx)("div",{className:"".concat(eb().gradient_mask)}),(0,a.jsx)("div",{className:"".concat(eb().gradient_mask2)}),!O&&(0,a.jsx)(h(),{fill:!0,className:"".concat(eb().image),loader:loaderProp,src:E.BgImage,alt:"bg"}),O&&(0,a.jsx)(ShakaBannerVideo_component,{item:{imageUrl:null==E?void 0:E.BgImage,customClass:"tvShowTrailerimage"},streamPath:{streamUrl:O,imageUrl:null==E?void 0:E.BgImage,isbannerVideo:!0},streamEnd:streamEnded}),(null==E?void 0:E.titleimage)&&(0,a.jsx)(h(),{fill:!0,loader:loaderProp,className:"".concat(eb().partnerIcon),src:getImagePath(E.titleimage),alt:"detail_titleimage"}),(0,a.jsxs)("div",{className:"".concat(eb().mobile_info_top),children:[(0,a.jsx)("div",{className:"".concat(eb().gradient_mask)}),(0,a.jsx)("div",{className:"".concat(eb().gradient_mask2)}
1),(0,a.jsx)("button",{className:"".concat(eb().detailsBack),onClick:()=>ee.back(),children:(0,a.jsx)("img",{src:"".concat(j.Z.tvShowDetails.mobileBackArrow),alt:"back"})}),(0,a.jsx)("img",{className:"".concat(eb().img_responsive," ").concat(eb().abs_image," "),src:E.BgImage}),null==E?void 0:null===(g=E.buttons)||void 0===g?void 0:null===(p=g.elements)||void 0===p?void 0:p.map(e=>"trailer"==e.elementSubtype&&(0,a.jsx)("button",{className:"".concat(eb().watch_trailer),onClick:t=>navigateTo(e,t),children:e.data}))]}),(0,a.jsx)("div",{className:"container-fluid ".concat(eb().details),children:(0,a.jsxs)("div",{className:" ".concat(eb().details_left),children:[E.titleimage?(0,a.jsx)(h(),{fill:!0,loader:loaderProp,className:"".concat(eb().partnerIcon_mobile),src:getImagePath(E.titleimage),alt:"image"}):(0,a.jsx)(a.Fragment,{}),(0,a.jsxs)("div",{className:" ".concat(eb().details_header),children:[eS.width>767&&(0,a.jsxs)("div",{className:"".concat(eb().subtitle),children:[(0,a.jsx)("h1",{className:"".concat(eb().main_title),children:E.title}),(0,a.jsxs)("div",{className:"".concat(eb().contentType),children:[E.pgrating&&(0,a.jsx)("span",{children:(0,a.jsx)("span",{className:"".concat(eb().pgrating),children:E.pgrating})}),E.premium&&(0,a.jsx)("span",{children:(0,a.jsx)("span",{className:"".concat(eb().pgrating),children:E.premium})}),E.streamQuality&&(0,a.jsx)("span",{children:(0,a.jsx)("span",{className:"".concat(eb().pgrating),children:E.streamQuality})}),E.audioQuality&&(0,a.jsx)("span",{children:(0,a.jsxs)("span",{className:"".concat(eb().pgrating),children:[(0,a.jsx)("img",{src:"".concat(j.Z.tvShowDetails.Dolby)}),E.audioQuality]})}),E.subtitle&&(0,a.jsx)("span",{className:"".concat(eb().content_lang),children:E.subtitle.replace(/\|/g," ⢠")})]}),E.imdb&&(0,a.jsxs)("span",{children:["\xa0 | \xa0",(0,a.jsxs)("span",{className:"".concat(eb().imdb),children:[(0,a.jsx)("img",{src:"".concat(j.Z.tvShowDetails.imdb),alt:"IMDB"}),E.imdb]})]}),E.advisory&&(0,a.jsx)("div",{className:"".concat(eb().descDiv),children:E.advisory})]}),eS.width<=767&&(0,a.jsxs)("div",{className:"".concat(eb().subtitle),children:[(0,a.jsx)("h1",{className:"".concat(eb().title),children:E.title}),E.pgrating&&(0,a.jsx)("span",{children:(0,a.jsx)("span",{className:"".concat(eb().pgrating),children:E.pgrating})})]}),eS.width<=767&&(0,a.jsxs)("div",{className:"".concat(eb().details_middle),children:[E.subtitle&&(0,a.jsx)("span",{className:"".concat(eb().subtitle2),children:E.subtitle.replace(/\|/g," ⢠")}),eS.width<=767&&(0,a.jsx)(tvshowDetailsActions_component,{detailsObj:E,navigateTo:navigateTo,addToFavourite:addToFavourite,likedcontent:likedcontent,shareDataSet:shareDataSet,navigateToSignIn:navigateToSignIn}),E.description&&(0,a.jsx)("div",{className:"".concat(eb().descDiv),children:(0,a.jsx)(K.Z,{data:null==E?void 0:E.description,isDataTruncate:!0,customClass:eb().description,styles:eb()})})]}),(0,a.jsxs)("div",{className:"".concat(eb().mobile_share_controls),children:[(null==E?void 0:E.showFavouriteButton)&&(0,a.jsx)("button",{type:"button",className:"mobile_button ".concat(eb().buttons," ").concat(eb().fav," br2"),onClick:addToFavourite,children:(null==E?void 0:E.isFavourite)?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{alt:"fav",className:eb().active_fav_icon,src:null===j.Z||void 0===j.Z?void 0:null===(m=j.Z.tvShowDetails)||void 0===m?void 0:m.watchlistSelected}),(0,a.jsx)("span",{className:"btn_text ".concat(eb().fav_text," ").concat(eb().fav_text_active),children:null===N.sh||void 0===N.sh?void 0:null===(_=N.sh[D])||void 0===_?void 0:_.Mobile.Favourited})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{alt:"fav",className:eb().fav_icon,src:j.Z.tvShowDetails.favorite}),(0,a.jsx)("span",{className:"btn_text ".concat(eb().fav_text),children:null===N.sh||void 0===N.sh?void 0:null===(f=N.sh[D])||void 0===f?void 0:null===(y=f.Mobile)||void 0===y?void 0:y.Favourite})]})},"fav-button"),(null==E?void 0:E.showLikeButton)&&(0,a.jsxs)("div",{className:eb().likeContainer,children:[(0,a.jsxs)("button",{type:"button",className:"".concat(eb().buttons," ").concat(eb().like_and_dislike," br2 ").concat("1"==E.reactionType?eb().active:""," ").concat(eb().likeBtn),onClick:()=>likedcontent(1===E.reactionType?"0":"1",1===E.reactionType?"I_like_it_removed":"I_like_it_added"),children:["1"==E.reactionType?(0,a.jsx)("img",{src:"".concat(j.Z.tvShowDetail
1s.liked),className:eb().share_icon,alt:"share"}):(0,a.jsx)("img",{src:"".concat(j.Z.tvShowDetails.Notabletolike),className:eb().share_icon,alt:"share"}),(0,a.jsx)("span",{className:"btn_text ".concat(eb().fav_text),children:"I like it"})]}),(0,a.jsxs)("button",{type:"button",className:"".concat(eb().buttons," ").concat(eb().like_and_dislike," br2 ").concat("-1"==E.reactionType?eb().active:""," ").concat(eb().disLikeBtn),onClick:()=>likedcontent(-1==E.reactionType?"0":"-1",-1==E.reactionType?"Not_for_me_removed":"Not_for_me_added"),children:["-1"==E.reactionType?(0,a.jsx)("img",{src:"".concat(j.Z.tvShowDetails.disliked),className:eb().share_icon,alt:"share"}):(0,a.jsx)("img",{src:"".concat(j.Z.tvShowDetails.notabletodislike),className:eb().share_icon,alt:"share"}),(0,a.jsx)("span",{className:"btn_text ".concat(eb().fav_text),children:"Not for me"})]})]}),(null==S?void 0:null===(w=S.shareInfo)||void 0===w?void 0:w.isSharingAllowed)&&(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("button",{type:"button",className:"mobile_button ".concat(eb().buttons," ").concat(eb().share," br2"),onClick:shareDataSet,children:[(0,a.jsx)("img",{src:"".concat(null===j.Z||void 0===j.Z?void 0:null===(k=j.Z.tvShowDetails)||void 0===k?void 0:k.share),alt:"share"}),(0,a.jsx)("span",{className:"btn_text ".concat(eb().fav_text," ").concat(eb().fancy_tool_tip),children:null===N.sh||void 0===N.sh?void 0:null===(x=N.sh[D])||void 0===x?void 0:x.Share})]})})]}),eS.width<=767&&(0,a.jsxs)("div",{className:"".concat(eb().subtitle1),children:[E.premium&&(0,a.jsx)("span",{children:(0,a.jsx)("span",{className:"".concat(eb().pgrating),children:E.premium})}),E.streamQuality&&(0,a.jsx)("span",{children:(0,a.jsx)("span",{className:"".concat(eb().pgrating),children:E.streamQuality})}),E.audioQuality&&(0,a.jsx)("span",{children:(0,a.jsxs)("span",{className:"".concat(eb().pgrating),children:[(0,a.jsx)("img",{src:"".concat(j.Z.tvShowDetails.Dolby)}),E.audioQuality]})})]}),eS.width<=767&&(null==E?void 0:E.coming_soon)&&(0,a.jsxs)("p",{className:eb().coming_soon_section_mobile,children:[(0,a.jsx)("img",{src:"".concat(j.Z.tvShowDetails.comingSoon)}),E.coming_soon]}),eS.width>776&&(0,a.jsx)(a.Fragment,{children:E.description&&(0,a.jsx)("div",{className:"".concat(eb().descDiv),children:(0,a.jsx)(K.Z,{data:null==E?void 0:E.description,isDataTruncate:!0,customClass:eb().description,styles:eb()})})}),E.castcrew&&eS.width>767&&(0,a.jsx)("div",{className:"".concat(eb().castDiv),children:(0,a.jsxs)("p",{className:"".concat(eb().casting),children:[(0,a.jsx)("p",{className:"".concat(eb().casting_hd),children:"Credits"}),null==J?void 0:J.map(e=>{var t,i,n,l,s;let r=(null==e?void 0:null===(t=e.title)||void 0===t?void 0:t.charAt(0).toUpperCase())+(null==e?void 0:null===(i=e.title)||void 0===i?void 0:i.slice(1));if((null==H?void 0:H[r])&&(null==H?void 0:null===(n=H[r])||void 0===n?void 0:n.length)>0){let t=(null==e?void 0:e.title)==="actor"?6:4;return(0,a.jsx)(a.Fragment,{children:(0,a.jsxs)("p",{className:"".concat(eb().castingInfo),children:[(0,a.jsxs)("span",{children:[r," : "]}),"\xa0",null===(s=H[r])||void 0===s?void 0:null===(l=s.slice(0,t))||void 0===l?void 0:l.map((e,i)=>{var n,l;return(0,a.jsxs)(o.Fragment,{children:[e,i!==(null===(l=H[r])||void 0===l?void 0:null===(n=l.slice(0,t))||void 0===n?void 0:n.length)-1&&", "]},i)})]},r)})}return null})]})}),eS.width>767&&(0,a.jsx)(tvshowDetailsActions_component,{detailsObj:E,navigateTo:navigateTo,addToFavourite:addToFavourite,likedcontent:likedcontent,navigateToSignIn:navigateToSignIn})]}),!!E.rentalinfo&&(0,a.jsxs)("p",{className:"".concat(eb().rent_info),children:[(0,a.jsx)("img",{src:"".concat(b.e.staticImagesPath,"pack-info-icon.svg"),alt:"Rentel Info"}),E.rentalinfo]})]})}),V.isActive&&"favourite"!=V.type&&"share"!=V.type&&(0,a.jsx)(ew,{popupData:V}),V.isActive&&"share"===V.type&&(0,a.jsx)(ek,{popupData:V})]})]})},eS=i(66272),ej=i.n(eS),series_episodes_component=e=>{var t,i,n,l,c,p,g,m,_,y;let{suggestionCardData:h,cHeight:f,eleIndex:b}=e,{state:{localLang:w},dispatch:k}=(0,s.oR)(),x=(0,r.useRouter)(),{mutate:S,data:P}=(0,u.Z)(),I=(0,d.mn)(x.asPath),[T,C]=(0,o.useState)(h),[D,A]=(0,o.useState)(),E="";h&&(null==h||null===(y=h.hover)||void 0===y||null===(_=y.elements)||void 0===_||_.map(e=>
1{"description"===e.key&&e.value&&!E&&(E=e.value)})),(0,o.useEffect)(()=>{var e;I===(null===(e=T.target)||void 0===e?void 0:e.path)&&prepareMarkers(T)},[T]),(0,o.useEffect)(()=>{var e,t,i;if((null==P?void 0:null===(e=P.data)||void 0===e?void 0:e.response)&&(null===(t=P.data)||void 0===t?void 0:t.status)){let e=(0,d.yz)(null==P?void 0:null===(i=P.data)||void 0===i?void 0:i.response);window.open(e)}},[P]);let prepareMarkers=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)>0&&e.display.markers.forEach(t=>{"badge"===t.markerType&&(e.display.badgeMarker=t,e.display.bgColor=getColorCode(t.bgColor),e.display.textColor=getColorCode(t.textColor))}),A(e)},getColorCode=e=>{if(!e)return null;try{return"#"+e.substring(2)}catch(e){}},openProgInfoPopUp=()=>{var e,t,i;if(setTimeout(()=>{null!=b&&(0,B.Yo)(b)},1e3),sessionStorage.setItem("isInternalNaviagtion",!0),T.template){let e={};e.target_path=T.target.path;let t=(0,v.g7)();t.length>0?t.map(t=>{T.template===t.code&&(e.assignedTemplate=t,setTemplateData(e),setIsBottomLayoutOpen(!0))}):k({type:s.Nw.o4,payload:{message:"Sorry template not found."}})}else(null==T?void 0:null===(t=T.target)||void 0===t?void 0:null===(e=t.pageAttributes)||void 0===e?void 0:e.isDeeplinking)=="true"?getDeeplinkInfo(T.target.path):x.push(null==T?void 0:null===(i=T.target)||void 0===i?void 0:i.path)},getDeeplinkInfo=e=>{let t="https://lukentv-api.revlet.net/service/api/v1/page/deeplink?"+(0,d.Yo)({path:e});try{S(t)}catch(e){}},[R,V]=(0,o.useState)(!1);return(0,a.jsx)("div",{className:"".concat(J().episodes_card_row," ").concat(I===(null===(t=T.target)||void 0===t?void 0:t.path)?"".concat(J().active):""),children:(0,a.jsxs)("div",{className:"".concat(J().overlay_poster_mobile_grid),onClick:()=>{var e;(null===(e=T.target.pageAttributes)||void 0===e?void 0:e.isDeeplinking)=="true"?getDeeplinkInfo(T.target.path):openProgInfoPopUp()},children:[(0,a.jsxs)("div",{className:"".concat(J().overlay_poster_left),children:[(0,a.jsx)("img",{src:(0,v.ZY)(null==T?void 0:null===(i=T.display)||void 0===i?void 0:i.imageUrl),alt:"video",height:f,onError:e=>{let{currentTarget:t}=e;t.onerror=null,t.src="".concat(j.Z.defaultdetails)}}),I===(null===(n=T.target)||void 0===n?void 0:n.path)&&!!(null==D?void 0:null===(l=D.display)||void 0===l?void 0:l.badgeMarker)&&(0,a.jsx)("span",{className:"".concat(J().badge_marker),children:null==D?void 0:D.display.badgeMarker.value})]}),(0,a.jsx)("div",{className:"".concat(J().overlay_poster_right),children:(0,a.jsxs)("div",{className:"".concat(J().card_info),children:[I===(null===(c=T.target)||void 0===c?void 0:c.path)&&(0,a.jsx)("p",{className:"".concat(J().live_marker),children:N.IA[w].Watching_Now}),(0,a.jsx)("h2",{className:"".concat(J().title),children:null==T?void 0:T.display.title}),(0,a.jsxs)("span",{className:"".concat(J().subTitle),children:[null==T?void 0:null===(p=T.display)||void 0===p?void 0:p.subtitle1,!!(null==D?void 0:null===(g=D.display)||void 0===g?void 0:g.badgeMarker)&&(0,a.jsxs)("span",{children:["\xa0 | \xa0"," ",(0,a.jsx)("span",{className:"".concat(J().live_heart)}),null==D?void 0:null===(m=D.display)||void 0===m?void 0:m.badgeMarker.value]})]})]})})]})})},grid_episodes_component=e=>{var t,i,n,l,c,v,p,g,m,_,y,h,f,b,w,k;let{gridData:x}=e,{state:{PageData:S,SystemConfig:j},dispatch:P}=(0,s.oR)(),I=(0,r.useRouter)(),[T,N]=(0,o.useState)({}),[C,D]=(0,o.useState)(0),[A,E]=(0,o.useState)(0),[B,M]=(0,o.useState)((null==x?void 0:null===(n=x.section)||void 0===n?void 0:null===(i=n.sectionData)||void 0===i?void 0:null===(t=i.data[0])||void 0===t?void 0:t.cardType)?null==x?void 0:null===(v=x.section)||void 0===v?void 0:null===(c=v.sectionData)||void 0===c?void 0:null===(l=c.data[0])||void 0===l?void 0:l.cardType:"sheet_poster"),[q,W]=(0,o.useState)(null==x?void 0:null===(g=x.section)||void 0===g?void 0:null===(p=g.sectionData)||void 0===p?void 0:p.data[0]),{mutate:J,data:H,isLoading:z}=(0,u.Z)(),{mutate:G,data:K}=(0,u.Z)(),[Y,Q]=(0,o.useState)(null),[X,ee]=(0,o.useState)(!1),{mutate:et,data:ei}=(0,U.Z)(),en=(0,o.useRef)({started:!1}),el=(0,F.fe)(),ea=I.asPath.replace("/",""),[eo,es]=(0,o.useState)(!1);(0,o.useEffect)(()=>{x&&prepareSections(x)},[x,B]),(0,o.useEffect)(()=>{var e,t,i,n,l,a,o,s,r,d,c;if(null==H?void 0:null===(e=H.data)||void 0===e?void 0:e.status){let e=JSON.parse(JSON.stringify(T));(null==H?void 0:null===(i=H.data)||void 0===i?void 0:null===(t=i.response[0])||void 0===t?void 0:t.data)&&(null==H?void 0:null===(l=H.data)||void 0===l?void 0:null===(n=l.response[0])||void 0===n?void 0:n.data.length)>0?(e.section.sectionData.data=[...null===(o=T.section)||void 0===o?void 0:null===(a=o.sectionData)||void 0===a?void 0:a.data,...null==H?void 0:null===(r=H.data)||void 0===r?void 0:null===(s=r.response[0])||void 0===s?void 0:s.data],e.hasMoreData=null==H?void 0:null===(d=H.data)||void 0===d?void 0:d.response[0].hasMoreData,e.offset=null==H?void 0:null===(c=H.data)||void 0===c?void 0:c.response[0].lastIndex):e.hasMoreData=!1,N(e)}H&&setTimeout(()=>{en.current.started=!1},200)},[H]),(0,o.useEffect)(()=>{var e;(null==ei?void 0:null===(e=ei.data)||void 0===e?void 0:e.status)&&N(e=>{let t=e.section.sectionData.data.filter((e,t)=>
1t!==Y);return{...e,section:{...e.section,sectionData:{...e.section.sectionData,data:t}}}})},[ei]);let noOfCardsInRow=()=>{var e,t,i,n;let l=window.innerWidth,a={...(0,F.Wh)(B,q)},o=Object.keys(a).filter(e=>e<=l);if(o){let i=o.sort((e,t)=>t-e);return D(null===(e=a[i[0]])||void 0===e?void 0:e.gridPadding),E(null===(t=a[i[0]])||void 0===t?void 0:t.cardPaddingGrid),{cardsToShow:a[i[0]].cardsPerGridRow,cardPadding:a[i[0]].cardPaddingGrid,gridPadding:a[i[0]].gridPadding}}{let e=Object.keys(a).sort((e,t)=>e-t);return D(null===(i=a[e[0]])||void 0===i?void 0:i.gridPadding),E(null===(n=a[e[0]])||void 0===n?void 0:n.cardPaddingGrid),{cardsToShow:a[e[0]].cardsPerGridRow,cardPadding:a[e[0]].cardPaddingGrid,gridPadding:a[e[0]].gridPadding}}},prepareSections=e=>{var t,i,n,l,a,o,s,r,d,c,u,v,p,g,m;let _=JSON.parse(JSON.stringify(e)),y=(null==_?void 0:null===(n=_.section)||void 0===n?void 0:null===(i=n.sectionData)||void 0===i?void 0:null===(t=i.data[0])||void 0===t?void 0:t.cardType)||(null==_?void 0:null===(a=_.searchResults)||void 0===a?void 0:null===(l=a.data[0])||void 0===l?void 0:l.cardType),h=(0,F.TP)(B),f=(document.body.clientWidth-2*(null===(o=noOfCardsInRow())||void 0===o?void 0:o.gridPadding)-(null===(s=noOfCardsInRow())||void 0===s?void 0:s.cardsToShow)*(2*(null===(r=noOfCardsInRow())||void 0===r?void 0:r.cardPadding)))/(null===(d=noOfCardsInRow())||void 0===d?void 0:d.cardsToShow);_.width=f,_.height=f*h,(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===(m=_.section)||void 0===m?void 0:null===(g=m.sectionData)||void 0===g?void 0:g.lastIndex),M(el.includes(y)?y:"sheet_poster"),N(_)},er=(0,o.useCallback)(()=>{if(T&&(null==T?void 0:T.hasMoreData)){let e={path:(0,d.mn)(I.asPath),count:24,code:T.contentCode,offset:T.offset},t="https://lukentv-api.revlet.net/service/api/v1/section/data?"+(0,d.Yo)(e);try{J(t)}catch(e){}}},[x,T.contentCode,T.offset,J,I.asPath]);(0,o.useEffect)(()=>{let scrollHandler=()=>{let e=document.documentElement.scrollHeight-window.innerHeight-window.scrollY,t=window.scrollY;null!==e&&e<window.innerHeight&&t>150&&!1===en.current.started&&(er(),en.current.started=!0)};return document.addEventListener("scroll",scrollHandler),()=>{document.removeEventListener("scroll",scrollHandler)}},[er]);let removedCard=(e,t,i)=>{if(e.preventDefault(),eo){var n;let e="https://lukentv-api.revlet.net/service/api/auth/user/favourite/item?path="+(null==t?void 0:null===(n=t.target)||void 0===n?void 0:n.path)+"&action=2";G(e),ee(!0)}else{Q(i);let e={viewType:"continue_watching",pagePath:t.target.path};et({url:"https://lukentv-api.revlet.net/service/api/v1/delete/view/archive",apiData:e})}};return(0,a.jsx)(Z.Z,{children:(0,a.jsxs)("div",{className:"".concat(L().listHome," listHome"),children:["details"!=S.info.pageType&&(0,a.jsx)("div",{className:"".concat(L().listTitle),style:{padding:"0 ".concat(C+A,"px")},children:(0,a.jsxs)("h1",{children:[null===(_=T.section)||void 0===_?void 0:null===(m=_.sectionInfo)||void 0===m?void 0:m.name,ea==j.configs.favouritesTargetPath&&(0,a.jsx)("span",{className:"".concat(L().favBtnEdit),onClick:()=>{eo?(X&&P({type:s.Nw.ls,payload:!0}),es(!1),ee(!1)):es(!0)},children:(0,a.jsx)("p",{children:eo?"Done":"Edit"})})]})}),!(null==x?void 0:x.contentCode.includes("you-may-also-like"))&&(null==x?void 0:null===(y=x.tabsInfo)||void 0===y?void 0:y.showTabs)&&(0,a.jsx)("div",{className:"".concat(L().listItems),style:{padding:"0 ".concat(C-2,"px")},children:T&&(null==T?void 0:null===(f=T.section)||void 0===f?void 0:null===(h=f.sectionData)||void 0===h?void 0:h.data.map((e,t)=>(0,a.jsx)("div",{className:"".concat(L().cardItem),style:{margin:"".concat(A,"px")},children:(0,a.jsx)(V.Z,{removeCard:removedCard,sectionInfo:{sectionData:T.section,index:t},pagedata:S,item:e,cardType:B,cWidth:T.width,CHeight:T.height,sectionData:x.section,favEditButton:eo},e.target.path)},e.target.path)))}
1),!(null==x?void 0:x.contentCode.includes("you-may-also-like"))&&!(null==x?void 0:null===(b=x.tabsInfo)||void 0===b?void 0:b.showTabs)&&(0,a.jsx)("div",{className:"".concat(L().episodeslistItems),children:T&&(null==T?void 0:null===(k=T.section)||void 0===k?void 0:null===(w=k.sectionData)||void 0===w?void 0:w.data.map((e,t)=>(0,a.jsx)("div",{className:"".concat(L().episodescardItem),style:{margin:"".concat(A,"px")},children:(0,a.jsx)(series_episodes_component,{suggestionCardData:e,eleIndex:t})},e.target.path)))}),z&&(0,a.jsx)("div",{children:(0,a.jsx)(O.Z,{custom:!0,type:["list"]})}),(null==x?void 0:x.contentCode.includes("you-may-also-like"))&&(0,a.jsx)(R.Z,{})]})})},tvshowtabs_component=()=>{let{state:{PageData:e}}=(0,s.oR)(),[t,i]=(0,o.useState)({}),[n,l]=(0,o.useState)([]),[r,d]=(0,o.useState)(0),[c,u]=(0,o.useState)(0),[v,p]=(0,o.useState)([]);(0,o.useEffect)(()=>{e&&prepareTabsData(e.tabsInfo)},[e]);let g={padding:"0 55px","& button":{alignItems:"flex-start",color:"#858585"},["& .".concat(z.Z.scrollButtons)]:{"&.Mui-disabled":{opacity:.3}},customTabsStyle:{"& .MuiTabScrollButton-root:first-child::before":{content:"'L'"},"& .MuiTabScrollButton-root:last-child::after":{content:"'R'"}}},prepareTabsData=t=>{for(let e=0;e<t.tabs.length;e++)if(t.tabs[e].code===t.selectedTab){d(e);break}i({...t});let n=e.data.filter(e=>"section"===e.paneType&&"content_actors"!=e.contentCode&&"recommendations"!==e.contentCode),a=e.data.filter(e=>"section"===e.paneType&&"recommendations"===e.contentCode);p(a),l(n)};return(0,a.jsxs)("div",{className:"tabsHome ".concat(ej().tabsHome),children:[(null==t?void 0:t.tabs)&&(0,a.jsx)(G.Z,{className:"".concat(ej().tabsInner1),orientation:"horizantal",variant:"scrollable",onChange:(e,t)=>
1{d(t)},value:r,sx:g,TabIndicatorProps:{sx:{left:"0",backgroundColor:"$primary.color"}},children:null==t?void 0:t.tabs.map((t,i)=>{var n,l;return(0,a.jsx)(H.Z,{label:r==i?(0,a.jsx)("h2",{style:{fontSize:"0.875rem",fontWeight:"normal"},children:(null==e?void 0:null===(l=e.info)||void 0===l?void 0:null===(n=l.attributes)||void 0===n?void 0:n.networkCode)=="freedomtv"&&freedomChannelPageTabsTitles&&freedomChannelPageTabsTitles[t.title]?freedomChannelPageTabsTitles[t.title]:t.title}):(0,a.jsx)(a.Fragment,{children:t.title}),className:"tabs_btn support"},i)})}),n.map((e,i)=>{var n;return(0,a.jsx)("div",{className:"".concat(ej().tabsInner," ").concat(r===i||(null==t?void 0:null===(n=t.tabs)||void 0===n?void 0:n.length)===1?ej().active:ej().inactive),children:window.innerWidth<=767?(0,a.jsx)(grid_episodes_component,{gridData:e}):(0,a.jsx)(grid_component,{gridData:e})},i)}),v.length>0&&(0,a.jsx)("div",{className:ej().youmayLike,children:(0,a.jsx)(grid_component,{gridData:v[0]})}),(0,a.jsx)("div",{})]})},eP=i(73988),eI=i.n(eP),eT=i(91967),eN=i.n(eT),networkDetails_component=()=>{let{state:{PageData:e,userDetails:t}}=(0,s.oR)(),[i,n]=(0,o.useState)({});(0,o.useEffect)(()=>{getBackgroundImage()},[e]);let getBackgroundImage=()=>{var t;let i={};null==e||null===(t=e.data)||void 0===t||t.map(e=>{if((null==e?void 0:e.paneType)==="content"){var t,n,l;null==e||null===(l=e.content)||void 0===l||null===(n=l.dataRows[0])||void 0===n||null===(t=n.elements)||void 0===t||t.map(e=>{(null==e?void 0:e.elementSubtype)==="bgImage"&&(i.bgImage=(0,v.ZY)(e.data)),(null==e?void 0:e.elementSubtype)==="title"&&(i.title=e.data)})}}),n(i)};return(0,a.jsx)("div",{className:"".concat(eN().network_details),children:(0,a.jsx)("img",{className:" ".concat(eN().image),src:i.bgImage,onError:e=>{let{currentTarget:t}=e;t.onerror=null,t.src="".concat(j.Z.defaultdetails)}})})},eC=i(91098),eD=i(13676),eA=i.n(eD),eE=i(6514),promotional_popup_component=e=>{var t;let{onClose:i}=e,{state:{SystemConfig:n}}=(0,s.oR)(),[l,r]=(0,o.useState)(),[d,c]=(0,o.useState)(!0),[u,v]=(0,o.useState)(),[p,g]=(0,o.useState)(24);(0,o.useEffect)(()=>{var e,t;window.addEventListener("resize",handleResize),handleResize();let i=(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(JSON.parse(i));let l=(null==i?void 0:i.popupFrequencyIntervalInSecs)?null==i?void 0:i.popupFrequencyIntervalInSecs:3600*p;return(0,T.LS)("socialpop",Math.floor(Date.now()/1e3)+l),()=>{window.removeEventListener("resize",handleResize)}},[n]);let handleResize=()=>{v(getResolution())},getResolution=()=>({width:window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,height:window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight}),navogateTo=(e,t)=>{"true"===t||!0===t?window.open(e,"_self"):window.open(e,"_blank")},buttonClasses=e=>({background:e.backgroundColor,color:e.titleColor});return(0,a.jsx)("div",{children:(0,a.jsx)(eo.Z,{open:d,"aria-labelledby":"responsive-dialog-title",className:"promotional_modal_dialog ",children:(0,a.jsx)(eE.Z,{children:(0,a.jsxs)("div",{className:" ".concat(eA().promotional_popup),children:[(0,a.jsx)("img",{className:"".concat(eA().banner),alt:"Giri Bapu Ji",src:(null==u?void 0:u.width)>990?null==l?void 0:l.backGroundImagePathWeb:null==l?void 0:l.backGroundImagePathMobile},(null==u?void 0:u.width)>990?"webImg":"Mobile Img"),(0,a.jsx)("button",{className:"".concat(eA().close_icon),onClick:()=>{i()},children:(0,a.jsx)("img",{src:"".concat(b.e.staticImagesPath,"lan-popup-close.png"),alt:"lang_close"})}),(0,a.jsx)("div",{className:"".concat(eA().confirmation),onClick:()=>(null==l?void 0:l.targetPath)&&navogateTo(null==l?void 0:l.targetPath,null==l?void 0:l.isInternal),children:(0,a.jsxs)("div",{className:"".concat(eA().socialPopup),children:[(0,a.jsxs)("h1",{className:"".concat(eA().title),children:[null==l?void 0:l.title," "]}),(null==u?void 0:u.width)>990&&(0,a.jsxs)("h3",{className:"sub_title",children:[null==l?void 0:l.subt
1itle," "]}),(0,a.jsx)("div",{className:"".concat(eA().social_media),children:null==l?void 0:null===(t=l.buttons)||void 0===t?void 0:t.map((e,t)=>(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("img",{width:"42",src:e.imagePath}),(null==u?void 0:u.width)>=990?(0,a.jsx)("button",{onClick:()=>navogateTo(null==e?void 0:e.targetPath,e.isInternal),style:buttonClasses(e),children:null==e?void 0:e.titleWeb}):(0,a.jsx)("button",{onClick:()=>navogateTo(null==e?void 0:e.targetPath,e.isInternal),style:buttonClasses(e),children:null==e?void 0:e.title})]}))}),(null==u?void 0:u.width)<991&&(0,a.jsx)("h3",{className:"".concat(eA().sub_title),children:null==l?void 0:l.subtitle})]})})]})})})})},eB=i(46034);let eR=D()(()=>i.e(5017).then(i.bind(i,57615)),{loadableGenerated:{webpack:()=>[57615]}});var dynamic_component=e=>{var t,i,n,l,v,p,g,m,_,y,h;let{state:{SystemFeature:f,SystemConfig:w,PageRefresh:k,userDetails:x,localLang:S},dispatch:j}=(0,s.oR)(),[I,C]=(0,o.useState)({}),[D,A]=(0,o.useState)({}),[E,B]=(0,o.useState)({}),[V,M]=(0,o.useState)(null),[L,F]=(0,o.useState)({}),[Z,U]=(0,o.useState)([]),[q,W]=(0,o.useState)(!1),[J,H]=(0,o.useState)({}),[z,G]=(0,o.useState)([]),[K,Y]=(0,o.useState)({}),{mutate:Q,data:X,isLoading:ee,isError:et,error:ei,refetch:en}=(0,u.Z)(),{mutate:el,data:ea,isLoading:eo}=(0,u.Z)(),{mutate:es,data:er}=(0,u.Z)(),[ed,ec]=(0,o.useState)(!1),eu=(0,r.useRouter)(),ev=eu.asPath.replace("/","");(0,o.useEffect)(()=>{let e=eu.asPath;C({path:(0,d.mn)(e),query:(0,d.vl)(e)}),getPageData((0,d.mn)(e)),openSocialPopup(),(0,T.vf)("lastPaymentResponse")&&(0,T.wz)("lastPaymentResponse")},[eu.asPath,w,f]),(0,o.useEffect)(()=>{!0==k&&(getPageData((0,d.mn)(eu.asPath)),j({type:s.Nw.ls,payload:!1}))},[k]),(0,o.useEffect)(()=>{if(null==X?void 0:X.data){var e,t,i,n,l,a,o,r,d,u,v,p,g,m,_,y,h,f,b,k,x,S,P,I,T,N,C,D,E,R,V,L,O,Z,U,q,W,J,H,z;j({type:s.Nw.mY,payload:null}),(null==X?void 0:null===(e=X.data)||void 0===e?void 0:e.status)?(null==X?void 0:null===(n=X.data)||void 0===n?void 0:null===(i=n.response)||void 0===i?void 0:null===(t=i.errorResponse)||void 0===t?void 0:t.code)===404||(null==X?void 0:null===(o=X.data)||void 0===o?void 0:null===(a=o.response)||void 0===a?void 0:null===(l=a.errorResponse)||void 0===l?void 0:l.code)===-4||(null==X?void 0:null===(u=X.data)||void 0===u?void 0:null===(d=u.response)||void 0===d?void 0:null===(r=d.errorResponse)||void 0===r?void 0:r.code)===-113?(A({}),j({type:s.Nw.dt,payload:{}}),(null==X?void 0:null===(p=X.data)||void 0===p?void 0:null===(v=p.response)||void 0===v?void 0:v.errorResponse)&&(ev==w.configs.favouritesTargetPath?M({message:"",code:"-2022"}):(null==X?void 0:null===(m=X.data)||void 0===m?void 0:null===(g=m.response)||void 0===g?void 0:g.data.length)===0?M({message:"",code:"-1"}):ev==(null==w?void 0:null===(_=w.configs)||void 0===_?void 0:_.myPurchasesTargetPathWeb)?M({message:"",code:"-2023"}):M({message:null==X?void 0:null===(h=X.data)||void 0===h?void 0:null===(y=h.response)||void 0===y?void 0:y.errorResponse.message,code:""+(null==X?void 0:null===(b=X.data)||void 0===b?void 0:null===(f=b.response)||void 0===f?void 0:f.errorResponse.code)}))):(A({...null==X?void 0:null===(k=X.data)||void 0===k?void 0:k.response}),j({type:s.Nw.dt,payload:null==X?void 0:null===(x=X.data)||void 0===x?void 0:x.response}),(null==X?void 0:null===(I=X.data)||void 0===I?void 0:null===(P=I.response)||void 0===P?void 0:null===(S=P.info)||void 0===S?void 0:S.pageType)=="list"&&B((null==X?void 0:null===(V=X.data)||void 0===V?void 0:null===(R=V.response)||void 0===R?void 0:R.data.filter(e=>"section"===e.paneType&&e.section.sectionData.data.length))[0]),(null==X?void 0:null===(C=X.data)||void 0===C?void 0:null===(N=C.response)||void 0===N?void 0:null===(T=N.tabsInfo)||void 0===T?void 0:T.showTabs)==!0&&F((null==X?void 0:null===(O=X.data)||void 0===O?void 0:null===(L=O.response)||void 0===L?void 0:L.data.filter(e=>"section"===e.paneType&&e.contentCode))[0]),(null==X?void 0:null===(E=X.data)||void 0===E?void 0:null===(D=E.response)||void 0===D?void 0:D.data.length)===0&&M({message:"",code:"-1"})):(A({}),j({type:s.Nw.dt,payload:{}}),(null==X?void 0:null===(Z=X.data)||void 0===Z?void 0:Z.error)&&(null==X?void 0:null===(q=X.data)||void 0===q?void 0:null===(U=q.error)||void 0===U?void 0:U.code)===401?(0,c.qP)():M({message:null==X?void 0:null===(J=X.data)||void 0===J?void 0:null===(W=J.error)||void 0===W?void 0:W.message,code:""+(null==X?void 0:null===(z=X.data)||void 0===z?void 0:null===(H=z.error)||void 0===H?void 0:H.code)}))}},[X]),(0,o.useEffect)(()=>
1{if(null==ea?void 0:ea.data){var e,t,i,n,l,a,o,r,d,u,v,p,g,m,_,y,h,f,b,w;if(j({type:s.Nw.mY,payload:null}),null==ea?void 0:null===(e=ea.data)||void 0===e?void 0:e.status){if((null==ea?void 0:null===(n=ea.data)||void 0===n?void 0:null===(i=n.response)||void 0===i?void 0:null===(t=i.errorResponse)||void 0===t?void 0:t.code)===404||(null==ea?void 0:null===(o=ea.data)||void 0===o?void 0:null===(a=o.response)||void 0===a?void 0:null===(l=a.errorResponse)||void 0===l?void 0:l.code)===-4||(null==ea?void 0:null===(u=ea.data)||void 0===u?void 0:null===(d=u.response)||void 0===d?void 0:null===(r=d[0])||void 0===r?void 0:r.data.length)==0)A({}),j({type:s.Nw.dt,payload:{}}),M({message:"",code:"-2022"});else{let e={data:[{paneType:"section",section:{sectionData:null==ea?void 0:null===(v=ea.data)||void 0===v?void 0:v.response[0],sectionInfo:{name:null===(p=N.cP[S])||void 0===p?void 0:p.My_Watchlist}}}],info:{pageType:"list"}};A(e),j({type:s.Nw.dt,payload:e}),(null==e?void 0:null===(g=e.info)||void 0===g?void 0:g.pageType)=="list"&&B(null==e?void 0:e.data[0])}}else A({}),j({type:s.Nw.dt,payload:{}}),(null==ea?void 0:null===(m=ea.data)||void 0===m?void 0:m.error)&&(null==ea?void 0:null===(y=ea.data)||void 0===y?void 0:null===(_=y.error)||void 0===_?void 0:_.code)===401?(0,c.qP)():M({message:null==ea?void 0:null===(f=ea.data)||void 0===f?void 0:null===(h=f.error)||void 0===h?void 0:h.message,code:""+(null==ea?void 0:null===(w=ea.data)||void 0===w?void 0:null===(b=w.error)||void 0===b?void 0:b.code)})}},[ea]),(0,o.useEffect)(()=>{!0==et&&(A({}),j({type:s.Nw.dt,payload:{}}),M({message:"Something went wrong, Please check the network connection",code:"5000"}))},[et]);let getPageData=async e=>{var t;if(!w||e.includes("[..."))return;if(A({}),M(null),(null===b.e||void 0===b.e?void 0:b.e.isOldFavourite)&&(null==w?void 0:null===(t=w.configs)||void 0===t?void 0:t.favouritesTargetPath)==e){el("".concat("https://lukentv-api.revlet.net","/service/api/auth/user/favourites/list"));return}let i="https://lukentv-api.revlet.net/service/api/v1/page/content?"+(0,d.Yo)({path:"/"!=e&&""!=e&&e?e:"home",count:24});try{Q(i)}catch(e){}},openSocialPopup=()=>{var e;if(null==w?void 0:null===(e=w.configs)||void 0===e?void 0:e.interstitialStaticPopup){let e=(0,T.rV)("socialpop");e=parseInt(e,10);let t=Math.floor(Date.now()/1e3),i=eu.asPath;(""==(i=(0,d.mn)(i))||"home"==i)&&(!(0,T.rV)("socialpop")||e<t)&&ec(!0)}},togglePromotionalModal=()=>{ec(!1)};(0,o.useEffect)(()=>{if(U([]),null==D?void 0:D.data){let e=D.data.find(e=>{var t,i,n,l;return(null==e?void 0:null===(l=e.section)||void 0===l?void 0:null===(n=l.sectionData)||void 0===n?void 0:null===(i=n.data)||void 0===i?void 0:null===(t=i[0])||void 0===t?void 0:t.cardType)==="banner_poster"&&e.section.sectionData.data.length});U(e||[])}},[D,eu.asPath]),(0,o.useEffect)(()=>{var e,t,i;let n=null==Z?void 0:null===(i=Z.section)||void 0===i?void 0:null===(t=i.sectionData)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.reduce((e,t,i)=>{var n,l,a,o,s,r;let d=null==t?void 0:null===(l=t.hover)||void 0===l?void 0:null===(n=l.elements)||void 0===n?void 0:n.some(e=>"isFavourite"===e.key&&"true"===e.value),c=(null==t?void 0:null===(a=t.target)||void 0===a?void 0:a.path)||(null==t?void 0:null===(r=t.hover)||void 0===r?void 0:null===(s=r.elements)||void 0===s?void 0:null===(o=s.find(e=>"favouriteTargetPath"===e.key))||void 0===o?void 0:o.value)||"";return e[i]={isFavourite:d,favouriteTargetPath:c},e},{});Y(n||{})},[Z]),(0,o.useEffect)(()=>{if(G([]),Object.keys(K).length>0){var e,t,i;let n=null==Z?void 0:null===(i=Z.section)||void 0===i?void 0:null===(t=i.sectionData)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.map((e,t)=>{var i,n,l,a;return{...e,isFavourite:null===(i=K[t])||void 0===i?void 0:i.isFavourite,favouriteTargetPath:null===(n=K[t])||void 0===n?void 0:n.favouriteTargetPath,params:null==Z?void 0:null===(a=Z.section)||void 0===a?void 0:null===(l=a.sectionData)||void 0===l?void 0:l.params}});G(n)}},[K,Z]),(0,o.useEffect)(()=>{x?((0,T.rV)("ProfileDetails")||((0,P.Sm)(x),(0,T.LS)("ProfileDetails",!0)),W(!0)):W(!1)},[x]);let addToFavourite=(e,t,i)=>{if(e.preventDefault(),q)try{var n,l,a,o,s,r,d,c,u,v,p,g,m,_,y,h,f,b,w,k,x,S,j,I,N,C,D,A;let e=2,E="";e=(null==t?void 0:t.isFavourite)==!0?2:1,E=null==t?void 0:t.favouriteTargetPath;let B=(null==t?void 0:t.isFavourite)==!0?"Watchlist_removed":"Watchlist_added";(null==t?void 0:t.isFavourite)==!0?(0,P.qP)("Removed_from_Watchlist",{ctEventDataParam:{content_id:(null==t?void 0:null===(l=t.target)||void 0===l?void 0:null===(n=l.pageAttributes)||void 0===n?void 0:n.id)||"NA",content_title:(null==t?void 0:null===(a=t.display)||void 0===a?void 0:a.title)||"
1NA",content_type:(null==t?void 0:null===(s=t.target)||void 0===s?void 0:null===(o=s.pageAttributes)||void 0===o?void 0:o.contentType)||"NA",category_name:(null==t?void 0:t.cardType)||"NA",content_genre:(null==t?void 0:null===(c=t.target)||void 0===c?void 0:null===(d=c.pageAttributes)||void 0===d?void 0:null===(r=d.genre)||void 0===r?void 0:r.replace(/[â¢]/g,","))||"NA",content_language:(null==t?void 0:null===(v=t.target)||void 0===v?void 0:null===(u=v.pageAttributes)||void 0===u?void 0:u.language)||"NA"}}):(0,P.qP)("Added_to_Watchlist",{ctEventDataParam:{content_id:(null==t?void 0:null===(g=t.target)||void 0===g?void 0:null===(p=g.pageAttributes)||void 0===p?void 0:p.id)||"NA",content_title:(null==t?void 0:null===(m=t.display)||void 0===m?void 0:m.title)||"NA",content_type:(null==t?void 0:null===(y=t.target)||void 0===y?void 0:null===(_=y.pageAttributes)||void 0===_?void 0:_.contentType)||"NA",category_name:(null==t?void 0:t.cardType)||"NA",content_genre:(null==t?void 0:null===(b=t.target)||void 0===b?void 0:null===(f=b.pageAttributes)||void 0===f?void 0:null===(h=f.genre)||void 0===h?void 0:h.replace(/[â¢]/g,","))||"NA",content_language:(null==t?void 0:null===(k=t.target)||void 0===k?void 0:null===(w=k.pageAttributes)||void 0===w?void 0:w.language)||"NA"}}),(0,P.qP)("click_event",{button_label:B,content_name:null==t?void 0:null===(x=t.display)||void 0===x?void 0:x.title,content_type:null==t?void 0:null===(j=t.target)||void 0===j?void 0:null===(S=j.pageAttributes)||void 0===S?void 0:S.contentType,content_partner_name:null==t?void 0:null===(N=t.target)||void 0===N?void 0:null===(I=N.pageAttributes)||void 0===I?void 0:I.networkName,content_genre:null==t?void 0:null===(A=t.target)||void 0===A?void 0:null===(D=A.pageAttributes)||void 0===D?void 0:null===(C=D.genre)||void 0===C?void 0:C.replace(/[â¢]/g,","),tab:(0,T.rV)("tab")||"Home",rail_name:"top_banner"});let R="https://lukentv-api.revlet.net"+"/service/api/auth/user/favourite/item?path=".concat(E,"&action=").concat(e);es(R),1===e?Y({...K,[i]:{isFavourite:!0,favouriteTargetPath:E}}):Y({...K,[i]:{isFavourite:!1,favouriteTargetPath:E}})}catch(e){console.error("Error:",e)}else popupDataSet()};(0,o.useEffect)(()=>{var e,t;null==er||null===(e=er.data)||void 0===e||e.status,null==er||null===(t=er.data)||void 0===t||t.error},[er]);let popupDataSet=()=>{var e,t,i,n;H({type:"signin",isActive:!0,title1:null===(e=N.D2[S])||void 0===e?void 0:e.Save_Your_Favourites,title2:null===(t=N.D2[S])||void 0===t?void 0:t.To_access_this_feature_please_sign_in,yesButton1:null===(i=N.D2[S])||void 0===i?void 0:i.Cancel,yesButtonType:"secondary",yesButtonTarget1:handleClose,noButton1:null===(n=N.D2[S])||void 0===n?void 0:n.Sign_In,noButtontarget1:navigateToSignIn,noButtonType:"primary",close:!0,closeTarget:handleClose})},navigateToSignIn=()=>{j({type:s.Nw.t3,payload:eu.asPath}),handleClose(),eu.push("/signin")},handleClose=()=>{H({})};if(ee||eo)return(0,a.jsx)("div",{children:(0,a.jsx)(O.Z,{pagePath:I.path})});if(V)return(0,a.jsx)(eC.Z,{detailsInfo:V});let ep=(0,T.rV)("tab");return(0,a.jsxs)("div",{className:"".concat(eI().dynamicMain),children:[(null==D?void 0:null===(t=D.info)||void 0===t?void 0:t.pageType)==="content"&&(0,a.jsxs)("div",{children:["RetroTV"===ep||"/retrotv"===window.location.pathname?(null==D?void 0:null===(i=D.banners)||void 0===i?void 0:i.length)>0?(0,a.jsx)(SlickBanners_component,{bannerslist:D.banners}):(0,a.jsx)(SlickBanners_component,{bannerslist:z}):(0,a.jsx)(CenterBanner_component,{bannerslist:z,addToFavourite:addToFavourite}),(0,a.jsx)("div",{className:z&&(null===(l=Object)||void 0===l?void 0:null===(n=l.keys(z))||void 0===n?void 0:n.length)!=0?"":"".concat(eI().no_banners),children:(0,a.jsx)(R.Z,{})})]}),(null==D?void 0:null===(v=D.info)||void 0===v?void 0:v.pageType)==="list"&&(0,a.jsxs)("div",{children:[(0,a.jsx)(CenterBanner_component,{bannerslist:z,addToFavourite:addToFavourite}),(0,a.jsx)("div",{className:"".concat(eI().listGrid),children:(0,a.jsx)(grid_component,{gridData:E})})]}),(null==D?void 0:null===(p=D.info)||void 0===p?void 0:p.pageType)==="player"&&(0,a.jsxs)("div",{children:[(0,a.jsx)(CenterBanner_component,{bannerslist:z,addToFavourite:addToFavourite}),(0,a.jsx)(playerold_component,{})]}),(null==D?void 0:null===(g=D.info)||void 0===g?void 0:g.pageType)==="details"&&(0,a.jsxs)("div",{children:[(0,a.jsx)(CenterBanner_component,{bannerslist:z,addToFavourite:addToFavourite}),(null==D?void 0:null===(m=D.info)||void 0===m?void 0:m.code)=="artist-detail"?(0,a.jsx)(eB.default,{}):(null==D?void 0:null===(y=D.info)||void 0===y?void 0:null===(_=y.attributes)||void 0===_?void 0:_.contentType)=="network"?(0,a.jsx)(networkDetails_component,{}
1):(0,a.jsx)(tvshowDetails_component,{}),(null==D?void 0:null===(h=D.tabsInfo)||void 0===h?void 0:h.showTabs)==!0?(0,a.jsx)(tvshowtabs_component,{}):(0,a.jsx)(R.Z,{fromTvShowDetails:!0})]}),ed&&(0,a.jsx)(promotional_popup_component,{onClose:()=>togglePromotionalModal()}),J.isActive&&"signin"==J.type&&(0,a.jsx)(eR,{popupData:J})]})},eV=i(79561),eM=!0;function DynamicPage(e){let{seodata:t}=e;return(0,a.jsxs)(a.Fragment,{children:[t&&(0,a.jsx)(eV.Z,{seodata:t}),(0,a.jsx)(dynamic_component,{})]})}},90217:function(e){e.exports={primaryColor:"#d13338",whiteColor:"#fff",bodyColor:"#000",content_partner_section:"artist_content_partner_section__8mlBk",artist_details_background:"artist_artist_details_background__EzXMD",desktop_background_image:"artist_desktop_background_image__TYHjd",backArrow:"artist_backArrow__I89wJ",mobile:"artist_mobile__GwBpY",partner_banner:"artist_partner_banner__WiiX7",artist_details:"artist_artist_details__j9qIl",detailsText:"artist_detailsText__0r_CE",title:"artist_title__QTBBQ",backnav_section:"artist_backnav_section__73d3W"}},47071:function(e){e.exports={primaryColor:"#d13338",whiteColor:"#fff",bodyColor:"#000",banner_cont:"CenterBanners_banner_cont__m94su",banners_wrap:"CenterBanners_banners_wrap__BGaiw",swiper:"CenterBanners_swiper__OAaYT",img_responsive:"CenterBanners_img_responsive__9O1Xl",img_aplyZIndex:"CenterBanners_img_aplyZIndex__wuJ6Z",banner_about:"CenterBanners_banner_about___HEyY",banner_description:"CenterBanners_banner_description__YweSN",movie_agelimit:"CenterBanners_movie_agelimit__Jhj_s",banner_buttons:"CenterBanners_banner_buttons__ddaf2",watchnow_btntxt:"CenterBanners_watchnow_btntxt__Nnpv5",crownicon:"CenterBanners_crownicon__K5Seq",mybingelist_btn:"CenterBanners_mybingelist_btn__nmMk9",fancy_tool_tip:"CenterBanners_fancy_tool_tip__8mCdU",JWPlayers_parent:"CenterBanners_JWPlayers_parent__fYMu2",firstBanner:"CenterBanners_firstBanner__lA2Ls",imgContainer:"CenterBanners_imgContainer__C16mr",next_btn:"CenterBanners_next_btn__bMIJ6",prev_btn:"CenterBanners_prev_btn__V_9cM",prev:"CenterBanners_prev__IuY24",next:"CenterBanners_next__tjFcg",customPaginationClass:"CenterBanners_customPaginationClass__0mEAb",videoCustomPaginationClass:"CenterBanners_videoCustomPaginationClass__MhVq4",Player_Container:"CenterBanners_Player_Container__uhAWQ",ShakaVideoPlayer:"CenterBanners_ShakaVideoPlayer__ZMRfc",player_mute:"CenterBanners_player_mute__IKH38",tvShowTrailerimage:"CenterBanners_tvShowTrailerimage__ovnNh"}},77363:function(e){e.exports={primaryColor:"#d13338",whiteColor:"#fff",bodyColor:"#000",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",video_content:"SlickBanners_video_content__W5iF_",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"}},73988:function(e){e.exports={primaryColor:"#d13338",whiteColor:"#fff",bodyColor:"#000",dynamicMain:"dynamic_dynamicMain__zkUnU",playerBottomSections:"dynamic_playerBottomSections__ZEjVZ",listGrid:"dynamic_listGrid__VuBdi"}},98959:function(e){e.exports={primaryColor:"#d13338",whiteColor:"#fff",bodyColor:"#000",listHome:"grid_listHome__Z_nDc",liveTv:"grid_liveTv__c3mFM",listTitle:"grid_listTitle__bg3xb",favBtnEdit:"grid_favBtnEdit__Q75U4",listItems:"grid_listItems__0yLK0",cardItem:"grid_cardItem__dT0n6",live_card:"grid_live_card___ogex",listTitleBox:"grid_listTitleBox__gUoez",back:"grid_back__7sAOa",episodeslistItems:"grid_episodeslistItems__M5g56",episodescardItem:"grid_episodescardItem__ITYZF"}},91967:function(e){e.exports={primaryColor:"#d13338",whiteColor:"#fff",bodyColor:"#000",network_details:"networkDetails_network_details__MIA_P"}},89306:function(e){e.exports={primaryColor:"#d13338",whiteColor:"#fff",bodyColor:"#000",removeMarginTop:"player_removeMarginTop__uil0_",playerHome:"player_playerHome__asTHw",playerFixed:"player_playerFixed__FmKYX",playerSection:"player_playerSection__TtBui",preview_timer:"player_preview_timer__d8Nnz",playerDe
1sMain:"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",span1:"player_span1__QKjXw",pipe:"player_pipe__4d7Bq",pgrating:"player_pgrating__MpHKL",player_desc_right:"player_player_desc_right__YnhP3",goAdFree:"player_goAdFree__Ei_RH",goAdFreeBtn:"player_goAdFreeBtn__l_XUk",button:"player_button__c1c1_",mob_bookmark_text:"player_mob_bookmark_text__bhhMP",share:"player_share__SkN7v",fancy_tool_tip:"player_fancy_tool_tip__RTqtQ",divider:"player_divider__whoKf",fav:"player_fav__i9Un5",pipe1:"player_pipe1__zoZqK",playerButtons:"player_playerButtons__47PzT",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",fullScreen:"player_fullScreen__3PdZ6",default:"player_default__0Ztm8",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",credits:"player_credits__vgq4y",adsStreamContainer:"player_adsStreamContainer__zMByT",watermark:"player_watermark__QgluE",fullScreenWaterMark:"player_fullScreenWaterMark__79dQt",player_title:"player_player_title__G5t30",episodes_card_row:"player_episodes_card_row__rzf3c",expanded:"player_expanded__zYIj7",toggle:"player_toggle__cBJJH"}},13676:function(e){e.exports={primaryColor:"#d13338",whiteColor:"#fff",bodyColor:"#000",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"}},662:function(e){e.exports={primaryColor:"#d13338",whiteColor:"#fff",bodyColor:"#000",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",partnerIcon_mobile:"tvshowDetails_partnerIcon_mobile__7II43",main_title:"tvshowDetails_main_title__iASbo",content_lang:"tvshowDetails_content_lang__GMtQy",details_header:"tvshowDetails_details_header__RK0Bd",title:"tvshowDetails_title__IdEC0",subtitle:"tvshowDetails_subtitle__XOOiR",subtitle_text:"tvshowDetails_subtitle_text__HibN5",pgrating:"tvshowDetails_pgrating__TyPdp",imdb:"tvshowDetails_imdb__LVU_A",contentType:"tvshowDetails_contentType__IMXpd",details_middle:"tvshowDetails_details_middle__8tMsn",subtitle2:"tvshowDetails_subtitle2__pOX6s",descDiv:"tvshowDetails_descDiv__Knbah",description:"tvshowDetails_description__DQYRA",mobile_share_controls:"tvshowDetails_mobile_share_controls__s5yjN",subtitle1:"tvshowDetail
1s_subtitle1___yoOa",coming_soon_section_mobile:"tvshowDetails_coming_soon_section_mobile__CtsQd",readMore:"tvshowDetails_readMore__Cwiom",castDiv:"tvshowDetails_castDiv__bdSsA",casting:"tvshowDetails_casting__gCK8k",casting_hd:"tvshowDetails_casting_hd__KlEIT",castingInfo:"tvshowDetails_castingInfo__5DRed",cast_details:"tvshowDetails_cast_details__zx5A7",buttons:"tvshowDetails_buttons__Y1rWZ",active:"tvshowDetails_active__UZMLl",fav_text_active:"tvshowDetails_fav_text_active__iBUwK",like_button:"tvshowDetails_like_button__NZJX1",dislike_button:"tvshowDetails_dislike_button__ROlPq",resume_now_mobile:"tvshowDetails_resume_now_mobile__xV2E_",actions:"tvshowDetails_actions__ZY5K3",watchlist:"tvshowDetails_watchlist__wMDmy",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:"tvshowDetail
1s_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",share_icon:"tvshowDetails_share_icon__2YCqj",like_and_dislike:"tvshowDetails_like_and_dislike__6hiwj",lyk_dislyk_btn:"tvshowDetails_lyk_dislyk_btn__MqiZ5",btns:"tvshowDetails_btns__V48Sz",crownicon:"tvshowDetails_crownicon__FRxGj",mobile:"tvshowDetails_mobile__LgE_3",coming_soon_section:"tvshowDetails_coming_soon_section__3iuMd",expiry_info:"tvshowDetails_expiry_info__XHfGm",time_stamp:"tvshowDetails_time_stamp__ty_Xy",rent_info:"tvshowDetails_rent_info__bdzR4",rent_info_mobile:"tvshowDetails_rent_info_mobile__ayyH_",mobile_info_top:"tvshowDetails_mobile_info_top__tl7Jo",watch_trailer:"tvshowDetails_watch_trailer__3xwO4",overlay_info:"tvshowDetails_overlay_info__nG2hs",type_subtitle:"tvshowDetails_type_subtitle__Vb6RT",abs_image:"tvshowDetails_abs_image__vZ1w_",seekBarResume:"tvshowDetails_seekBarResume__PWK8q",seek_bar:"tvshowDetails_seek_bar__8f8r1",seek_position:"tvshowDetail
1s_seek_position__VrCtY",likeContainer:"tvshowDetails_likeContainer__m_IDg",likeBtn:"tvshowDetails_likeBtn__x7mjc",disLikeBtn:"tvshowDetails_disLikeBtn__jNQRg"}},66272:function(e){e.exports={primaryColor:"#d13338",whiteColor:"#fff",bodyColor:"#000",tabsHome:"tvshowtabs_tabsHome__OdRJo",tabsInner:"tvshowtabs_tabsInner__WFiJU",active:"tvshowtabs_active__ylMUa",inactive:"tvshowtabs_inactive__780lZ",seasontitles:"tvshowtabs_seasontitles__CYpLw",contentTabs:"tvshowtabs_contentTabs___GEw_",contenttab_button:"tvshowtabs_contenttab_button__pmX6y",tabsInner1:"tvshowtabs_tabsInner1__OC59n",activeTab:"tvshowtabs_activeTab__VdsJr"}},29206:function(e){e.exports={primaryColor:"#d13338",whiteColor:"#fff",bodyColor:"#000",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_t
1itle:"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.