1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7382],{80425:function(e,t,l){"use strict";var i=l(85893),o=l(50181),n=l.n(o);t.Z=e=>{let{type:t}=e;if("button"==t)return(0,i.jsx)("div",{className:"".concat(n().btn_loader),children:(0,i.jsx)("div",{className:"".concat(n().icon)})})}},30498:function(e,t,l){"use strict";var i=l(85893),o=l(67294),n=l(58014),a=l(11163),r=l(92122);let isMobileDevice=e=>["Mobi","Android","iPhone","iPad","iPod","Windows Phone","Mobile"].some(t=>e.includes(t)),parseUserAgent=e=>{for(let{name:t,pattern:l}of[{name:"Chrome",pattern:/Chrome\/(\d+(\.\d+)*)/},{name:"Firefox",pattern:/Firefox\/(\d+(\.\d+)*)/},{name:"Safari",pattern:/Version\/(\d+(\.\d+)*) Safari/},{name:"Edge",pattern:/Edg\/(\d+(\.\d+)*)/},{name:"IE",pattern:/MSIE (\d+(\.\d+)*)/},{name:"IE",pattern:/Trident\/.*; rv:(\d+(\.\d+)*)/},{name:"Opera Mini",pattern:/Opera Mini\/(\d+(\.\d+)*)/},{name:"Opera Mobile",pattern:/Opera Mobi\/(\d+(\.\d+)*)/},{name:"Android Browser",pattern:/Android (\d+(\.\d+)*)/},{name:"IE Mobile",pattern:/MSIE (\d+(\.\d+)*)/},{name:"Edge Mobile",pattern:/Edg\/(\d+(\.\d+)*)/}]){let i=e.match(l);if(i)return{browserName:t,browserVersion:i[1],isMobile:isMobileDevice(e)}}return{browserName:"",browserVersion:"",isMobile:!1}};t.Z=()=>{let e=(0,a.useRouter)(),{state:{SystemConfig:t}}=(0,r.oR)(),[l,d]=(0,o.useState)(""),s=(0,o.useRef)(null),fetchVideoData=async()=>{try{var e;let l=null==t?void 0:null===(e=t.configs)||void 0===e?void 0:e.webHstreamJsonUrl;if(!l)return;let i=navigator.userAgent,{browserName:o,browserVersion:a,isMobile:r}=parseUserAgent(i),s="device_id=".concat(r?61:5)+"&box_id=".concat((0,n.rV)("boxId"))+"&ip=".concat((0,n.rV)("trueIP"))+"&ua=".concat(i)+"&country_code=".concat((0,n.rV)("country"))+"&app_name=YuppTV"+"&browser_name=".concat(o)+"&browser_version=".concat(a),u=l.includes("?")?"".concat(l,"&").concat(s):"".concat(l,"?").concat(s),v=await fetch(u),c=await v.json();if(c.length>0){let e=Math.floor(Math.random()*c.length);d(c[e].chsurl)}}catch(e){console.error("Error fetching stream:",e)}};return(0,o.useEffect)(()=>{fetchVideoData()},[e.query]),(0,o.useEffect)(()=>{if(!l)return;let e="gload_test";if(s.current&&window.jwplayer){try{s.current.load([{file:l}]),s.current.play()}catch(e){console.error("Error updating JWPlayer:",e)}return}let t=document.getElementById("jwplayerScript");t||((t=document.createElement("script")).id="jwplayerScript",t.src="https://yuppstatic.akamaized.net/staticstorage/jwplayer/jwplayer-8.33.2/jwplayer.js?v=1",t.async=!0,document.body.appendChild(t));let i=setInterval(()=>{window.jwplayer&&document.getElementById(e)&&(clearInterval(i),window.jwplayer.key="jTL7dlu7ybUI5NZnDdVgb1laM8/Hj3ftIJ5Vqg==",s.current=window.jwplayer(e).setup({playlist:[{file:l}],autostart:!0,mute:!0,preload:"auto",width:1,height:1,playsinline:!0,related:{displayMode:"none"},generateSEOMetadata:!1}),window.hPlayer=s.current)},50);return()=>{if(clearInterval(i),s.current){try{s.current.remove()}catch(e){}s.current=null,window.hPlayer=null}}},[l]),(0,o.useEffect)(()=>{let handleConnectionChange=()=>{navigator.onLine&&window.hPlayer&&(window.hPlayer.load([{file:l}]),window.hPlayer.play())};return window.addEventListener("online",handleConnectionChange),window.addEventListener("offline",handleConnectionChange),()=>{window.removeEventListener("online",handleConnectionChange),window.removeEventListener("offline",handleConnectionChange)}},[l]),(0,i.jsx)("div",{style:{position:"fixed",bottom:"10px",right:"10px",width:"48px",height:"48px",background:"transparent",opacity:.01,zIndex:999999},children:(0,i.jsx)("div",{id:"gload_test",style:{width:"100%",height:"100%"}})})}},9295:function(e,t,l){"use strict";l.d(t,{Z:function(){return jw_player_component}});var i,o,n=l(85893),a=l(49855),r=l(30327),d=l(73484),s=l(94313),u=l(67294),v=l(92122),c=l(58014),p=l(89306),y=l(19465),_=l.n(y),m=l(19755),f=l.n(m),g=l(11163),w=l(29417),h=l(43825),b=l(41664),S=l.n(b),P=l(85518),I=l(62817),k=l(5152),T=l.n(k),A=l(16250),x=l(16115),j=l(6437),E=l(56946),C=l(73935),R=l(72120);l(25675);var N=l(38606),V=l(85186),D=l(68445),L=l(64666),M=l(66720),B=l(50594),O=l(29206),U=l.n(O),q=l(92601),verify_otp_popup_component=e=>{let{otpData:t,returnBack:l,isOpen:i}=e,{state:{userDetails:o,localLang:a},dispatch:r}=(0,v.oR)(),d=(0,V.Z)({palette:{mode:"dark"}}),closePopup=()=>{l()};return(0,n.jsx)(D.Z,{theme:d,children:(0,n.jsx)(L.Z,{open:i,children:(0,n.jsx)("div",{className:"".concat(U().modal_parent),children:(0,n.jsx)("div",{className:"".concat(U().modal_popup),children:(0,n.jsx)("div",{className:"".concat(U().main_modal),children:(0,n.jsx)("div",{className:"".concat(U().modal_size),children:(0,n.jsxs)(M.ZP,{children:[(0,n.jsx)("div",{className:"".concat(U().title),children:(0,n.jsx)(B.Z,{className:"".concat(U().cross_icon),onClick:closePopup})}),(0,n.jsx)("div",{children:(0,n.jsx)("div",{className:"".concat(U().updateEmail_cont),children:!!t&&(0,n.jsx)(q.default,{otpData:t,callbacksuccess:e=>{o.isEmailVerified=!0,r({type:v.Nw.$V,payload:{...o}}),r({type:v.Nw.o4,payload:{message:null==e?void 0:e.message}}),r({type:v.Nw.ls,payload:!0}),closePopup()},returnBack:l})})})]})})})})})})})},F=l(83454);let J=null===w.e||void 0===w.e?void 0:null===(i=w.e.supportedVideoAnalytics)||void 0===i?void 0:i.isV2AnalyticsSupport,K=null===w.e||void 0===w.e?void 0:null===(o=w.e.supportedVideoAnalytics)||void 0===o?void 0:o.isVideoGraphAnalyticsSupport,loadPlayerAnalytics=function(e){var t,l,i,o,n,a,r,d,s,u;let v=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,c=arguments.length>2?arguments[2]:void 0;if(K&&window.VideoAnalyticsPlugins&&c){let s={HbRate:null===(t=e.anal
1yticsInfo)||void 0===t?void 0:t.hbRateInMillis,clientId:(0,h.g$)(),authKey:null===(l=e.analyticsInfo)||void 0===l?void 0:l.authKey,trueIp:null===(i=e.ipInfo)||void 0===i?void 0:i.trueIP,timeStamp:null===(o=e.analyticsInfo)||void 0===o?void 0:o.serverTime,trueIp:null===(n=e.ipInfo)||void 0===n?void 0:n.trueIP,subCategory:(null==v?void 0:null===(a=v.analyticsInfo)||void 0===a?void 0:a.customData)&&JSON.parse(null===(r=v.analyticsInfo)||void 0===r?void 0:r.customData).subCategory||"-1",grouplistName:(null==v?void 0:v.pageAttributes)&&(null==v?void 0:null===(d=v.pageAttributes)||void 0===d?void 0:d.tvShowName)||"-1",environment:"live"};return window.VideoAnalyticsPlugins.load(s),window.VideoAnalyticsPlugins}if(J&&window.VideoAnalyticsPlugin)return console.log("hello1"),null===(u=window)||void 0===u||null===(s=u.VideoAnalyticsPlugin)||void 0===s||s.load(e),window.VideoAnalyticsPlugin},setPlayerAnalyticsMetaData=(e,t,l,i,o,n,a)=>{var r,d,s,u,v,p,y,_,m,f,g,w,b,S,I,k,T,A,x,j,E,C,R,N,V,D,L,M,B,O,U,q,H,Z,z,W,G,Q,Y,X,$,ee,et,el,ei,eo,en,ea,er,ed,es,eu,ev,ec,ep,ey,e_,em,ef,eg,ew,eh,eb,eS,eP,eI,ek,eT,eA,ex,ej,eE,eC,eR;if(K&&window.VideoAnalyticsPlugins){let i=null===(r=window.VideoAnalyticsPlugins)||void 0===r?void 0:r.analyticsMetaData(),J=a||(null==t?void 0:null===(d=t.pageAttributes)||void 0===d?void 0:d.isLive)=="true"?null==l?void 0:null===(u=l.info)||void 0===u?void 0:null===(s=u.attributes)||void 0===s?void 0:s.liveProgramName:null==l?void 0:null===(p=l.data)||void 0===p?void 0:null===(v=p.filter(e=>"content"==e.paneType)[0])||void 0===v?void 0:v.content.title,K=(null==l?void 0:null===(_=l.info)||void 0===_?void 0:null===(y=_.attributes)||void 0===y?void 0:y.isLive)=="true"?null==l?void 0:null===(f=l.info)||void 0===f?void 0:null===(m=f.attributes)||void 0===m?void 0:m.programId:null==t?void 0:null===(g=t.pageAttributes)||void 0===g?void 0:g.programId,ed={},es=(0,c.rV)("tab_viewed")||"";localStorage.getItem("tab");let eu=(0,c.rV)("contentSectionName")||"",ev="-1",ec=eu;if(es)try{let e=JSON.parse(es);if(e&&null!=e.tab){let t=(null==e?void 0:e.tab)||"-1";ec=(ev=t.includes("_")?t.split("_")[0]:t).includes("search")?"".concat(ev):eu?"".concat(ev,"|").concat(eu):"".concat(ev)}}catch(e){console.error("Failed to parse tab_viewed:",e)}if("tvshowepisode"==l.info.attributes.contentType||"web_series_episode"==l.info.attributes.contentType?(ed.episode=l.info.attributes.episodeSeqNo,ed.season=l.info.attributes.seasonSeqNo,ed.autoplay=!0):"epg"==l.info.attributes.contentType?ed.autoplay=!0:(ed.episode="-1",ed.season="-1",ed.autoplay=!1),Object.keys(i).length>0){i.locationData={hbRate:null==e?void 0:null===(w=e.analyticsInfo)||void 0===w?void 0:w.hbRateInMillis,authKey:null==e?void 0:null===(b=e.analyticsInfo)||void 0===b?void 0:b.authKey,clientId:(0,h.g$)(),vendorId:"YuppTV",countryName:null==e?void 0:null===(S=e.ipInfo)||void 0===S?void 0:S.country,state:null==e?void 0:null===(I=e.ipInfo)||void 0===I?void 0:I.region,city:null==e?void 0:null===(k=e.ipInfo)||void 0===k?void 0:k.city,trueIp:null==e?void 0:null===(T=e.ipInfo)||void 0===T?void 0:T.trueIP,environment:"live"},i.playerMetaData={playerName:"jwplayer",playerVersion:"jw_8_14"},i.clientMetaData={appVersion:F.env.version||"1.0.0",connectionType:"",clientIP:null==e?void 0:null===(A=e.ipInfo)||void 0===A?void 0:A.trueIP,NWProvider:"",ISProvider:"",deviceType:P.tq?"mobileweb":"web",deviceClient:P.KC,deviceId:P.tq?"61":"5",deviceOS:P.BF,deviceOSVersion:P.MM,deviceBrand:P.B3,deviceModel:P.N7,profileID:(null==o?void 0:o.profileId)?null==o?void 0:o.profileId:""},i.contentMetaData={channelId:(null==t?void 0:null===(x=t.analyticsInfo)||void 0===x?void 0:x.customData)&&JSON.parse(null==t?void 0:t.analyticsInfo.customData).channelId||"-1",channelName:(null==t?void 0:null===(j=t.analyticsInfo)||void 0===j?void 0:j.customData)&&(null===(E=JSON.parse(null==t?void 0:null===(C=t.analyticsInfo)||void 0===C?void 0:C.customData).customDataEPGFields)||void 0===E?void 0:E.channelName)||"-1",programId:K||"-1",programName:J||"-1",genre:(null==t?void 0:t.pageAttributes)&&(null==t?void 0:null===(R=t.pageAttributes)||void 0===R?void 0:R.genre)||"-1",contentType:(null==t?void 0:t.pageAttributes)&&((null==t?void 0:null===(N=t.pageAttributes)||void 0===N?void 0:N.isLive)=="true"?"live":(null==l?void 0:null===(D=l.info)||void 0===D?void 0:null===(V=D.attributes)||void 0===V?void 0:V.playerType)=="trailer"?"Trailer":null==t?void 0:t.pageAttributes.contentType),subCategory:t.analyticsInfo.customData&&JSON.parse(t.analyticsInfo.customData).subCategory||"-1",datCDNetworkaType:t.analyticsInfo.dataType||"-1",dataType:(null==l?void 0:null===(M=l.info)||void 0===M?void 0:null===(L=M.attributes)||void 0===L?void 0:L.playerType)=="trailer"?"trailer":(null==t?void 0:null===(B=t.pageAttributes)||void 0===B?void 0:B.isLive)=="true"?"channel_live":t?t.analyticsInfo.dataType:"-1",dataKey:(null===(O=t.analyticsInfo)||void 0===O?void 0:O.dataKey)||"-1",metaDataID:(null===(U=t.analyticsInfo)||void 0===U?void 0:U.dataKey)||"-1",CDNetwork:t?null==t?void 0:null===(H=t.streams)||void 0===H?void 0:null===(q=H[0])||void 0===q?void 0:q.streamType:"-1",navigationFrom:ec||ev,lang:(null==t?void 0:t.pageAttributes)&&(null==t?void 0:null===(Z=t.pageAttributes)||void 0===Z?void 0:Z.language)||"
1-1",grouplistName:(null==t?void 0:t.pageAttributes)&&(null==t?void 0:null===(z=t.pageAttributes)||void 0===z?void 0:z.tvShowName)||"-1",isSubscribed:o&&l&&(null==l?void 0:null===(W=l.streamStatus)||void 0===W?void 0:W.hasAccess)?"1":"0",epgStartTime:(null==l?void 0:null===(Q=l.info)||void 0===Q?void 0:null===(G=Q.attributes)||void 0===G?void 0:G.startTime)||"-1",epgEndTime:(null==l?void 0:null===(X=l.info)||void 0===X?void 0:null===(Y=X.attributes)||void 0===Y?void 0:Y.endTime)||"-1",attribute1:(null==t?void 0:null===($=t.analyticsInfo)||void 0===$?void 0:$.customData)?JSON.stringify(JSON.parse(null==t?void 0:null===(ee=t.analyticsInfo)||void 0===ee?void 0:ee.customData)):"-1",attribute2:"-1",attribute3:JSON.stringify({"app-platform":"FUSION","app-platform-ver":"1.0"})},i.userMetaData={userId:(null==o?void 0:o.userId)||"-1",profileId:(null==o?void 0:o.profileId)?null==o?void 0:o.profileId:"",boxId:(0,h.g$)()||"-1",partnerId:t.analyticsInfo.customData&&JSON.parse(t.analyticsInfo.customData).networkId||"-1",partnerName:t.analyticsInfo.customData?JSON.parse(t.analyticsInfo.customData).networkName:"-1"};let a=null!==(er=localStorage.getItem("maintab"))&&void 0!==er?er:"",r=null===(ei=(0,c.rV)("LocationData"))||void 0===ei?void 0:null===(el=ei.data)||void 0===el?void 0:null===(et=el.ipInfo)||void 0===et?void 0:et.countryCode,d=a.includes("fast-tv")||"IN"===r?"yupp-fasttv":"yupptv";i.videoMetaData={autoplay:n,videoList:"",productName:d,streamURL:t?null==t?void 0:null===(en=t.streams)||void 0===en?void 0:null===(eo=en[0])||void 0===eo?void 0:eo.url.split("?")[0]:"",seasonNumber:ed.season,episodeNumber:ed.episode,isPromotional:"0",vodNumber:(null==t?void 0:null===(ea=t.pageAttributes)||void 0===ea?void 0:ea.isLive)=="true"?"-1":"1"}}window.VideoAnalyticsPlugins.setMetaData(i)}else if(J&&window.VideoAnalyticsPlugin){let n={appVersion:"",connectionType:"",clientIP:null==e?void 0:null===(ed=e.data)||void 0===ed?void 0:ed.ipInfo.trueIP,NWProvider:"",profileID:(null==o?void 0:o.profileId)?null==o?void 0:o.profileId:""},a={CDNetwork:t?null==t?void 0:null===(eu=t.streams)||void 0===eu?void 0:null===(es=eu[0])||void 0===es?void 0:es.streamType:"",navigationFrom:i||l.info.path,metaId:t?t.analyticsInfo.dataKey:"",metaMap:"",a1:t&&(null==t?void 0:null===(ev=t.analyticsInfo)||void 0===ev?void 0:ev.customData)?null==t?void 0:null===(ec=t.analyticsInfo)||void 0===ec?void 0:ec.customData:"",a2:"",syp:"yupptv"},r={userId:o?o.userId:"",profileId:(null==o?void 0:o.profileId)?null==o?void 0:o.profileId:"",boxId:(0,h.g$)(),deviceType:"web",deviceClient:!!window.VideoAnalyticsPlugin&&(null===(e_=window)||void 0===e_?void 0:null===(ey=e_.videoAnalyticsPlugin)||void 0===ey?void 0:null===(ep=ey.current)||void 0===ep?void 0:ep.getBrowserName()),deviceOS:!!(null===(em=window)||void 0===em?void 0:em.VideoAnalyticsPlugin)&&(null===(ew=window)||void 0===ew?void 0:null===(eg=ew.videoAnalyticsPlugin)||void 0===eg?void 0:null===(ef=eg.current)||void 0===ef?void 0:ef.getPlatForm()),deviceId:"5",isSubscribed:o&&l&&(null==l?void 0:null===(eh=l.streamStatus)||void 0===eh?void 0:eh.hasAccess)?"1":"0"},d={autoplay:!0,productName:"yupptv",streamURL:t?null==t?void 0:null===(eS=t.streams)||void 0===eS?void 0:null===(eb=eS[0])||void 0===eb?void 0:eb.url.split("?")[0]:"",contentType:t?t.analyticsInfo.contentType:""};null===(eI=window)||void 0===eI||null===(eP=eI.VideoAnalyticsPlugin)||void 0===eP||eP.setPlayerMetaData({playerName:"jwplayer",playerVersion:"jw_8_14"}),null===(eT=window)||void 0===eT||null===(ek=eT.VideoAnalyticsPlugin)||void 0===ek||ek.setClientMetaData(n),null===(ex=window)||void 0===ex||null===(eA=ex.VideoAnalyticsPlugin)||void 0===eA||eA.setContentMetaData(a),null===(eE=window)||void 0===eE||null===(ej=eE.VideoAnalyticsPlugin)||void 0===ej||ej.setUserMetaData(r),null===(eR=window)||void 0===eR||null===(eC=eR.VideoAnalyticsPlugin)||void 0===eC||eC.setVideoMetaData(d)}},sendPlayerAnalytics=function(e){var t,l,i,o,n,a,r,d,s,u,v,c,p,y,_,m,f,g,w,h,b,S,P,I,k,T,A,x,j,E,C,R,N,V,D,L,M,B,O,U,q,F,H,Z,z,W,G,Q,Y,X,$,ee,et,el,ei,eo,en,ea,er,ed,es,eu,ev,ec,ep,ey,e_,em,ef,eg;let ew=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;switch(e){case"initialBitRate":K&&(null===(l=window)||void 0===l||null===(t=l.VideoAnalyticsPlugins)||void 0===t||t.initialplayerSetBitRate(window.playerSetup)),J&&(null===(o=window)||void 0===o||null===(i=o.VideoAnalyticsPlugin)||void 0===i||i.initialplayerSetBitRate());break;case"thumbnailVideoClick":K&&(null===(a=window)||void 0===a||null===(n=a.VideoAnalyticsPlugins)||void 0===n||n.thumbnailVideoClick()),J&&(null===(d=window)||void 0===d||null===(r=d.VideoAnalyticsPlugin)||void 0===r||r.thumbnailVideoClick());break;case"handlePlayerLoad":K&&(null===(u=window)||void 0===u||null===(s=u.VideoAnalyticsPlugins)||void 0===s||s.handlePlayerLoad()),J&&(null===(c=window)||void 0===c||null===(v=c.VideoAnalyticsPlugin)||void 0===v||v.handlePlayerLoad());break;case"defaultaudioTracks":K&&(null===(y=window)||void 0===y||null===(p=y.VideoAnalyticsPlugins)||void 0===p||p.setAudioLanguage({audioLanguage:ew}));break;case"audioTracks":K&&(null===(m=window)||void 0===m||null===(_=m.VideoAnalyticsPlugins)||void 0===_||_.audioTracksHandler(ew,window.playerSetup));break;case"audioTrackChanged":K&&(null===(g=window)||void 0===g||null===(f=g.VideoAnalyticsPlugins)||void 0===f||f.audioTrackChangedH
1andler(ew,window.playerSetup));break;case"play":K&&(null===(h=window)||void 0===h||null===(w=h.VideoAnalyticsPlugins)||void 0===w||w.playHandler(ew,window.playerSetup));break;case"playEvent":K&&(null===(S=window)||void 0===S||null===(b=S.VideoAnalyticsPlugins)||void 0===b||b.OnBufferHandler(ew,window.playerSetup)),K&&(null===(I=window)||void 0===I||null===(P=I.VideoAnalyticsPlugins)||void 0===P||P.handleBufferEnd()),J&&(null===(T=window)||void 0===T||null===(k=T.VideoAnalyticsPlugin)||void 0===k||k.handleBufferEnd());break;case"resumeEvent":K&&(null===(x=window)||void 0===x||null===(A=x.VideoAnalyticsPlugins)||void 0===A||A.handleResume()),J&&(null===(E=window)||void 0===E||null===(j=E.VideoAnalyticsPlugin)||void 0===j||j.handleResume());break;case"pauseEvent":K&&(null===(R=window)||void 0===R||null===(C=R.VideoAnalyticsPlugins)||void 0===C||C.pauseHandler(ew,window.playerSetup)),J&&(null===(V=window)||void 0===V||null===(N=V.VideoAnalyticsPlugin)||void 0===N||N.handlePause());break;case"bufferEvent":K&&(null===(L=window)||void 0===L||null===(D=L.VideoAnalyticsPlugins)||void 0===D||D.OnBufferHandler(ew,window.playerSetup)),J&&(null===(B=window)||void 0===B||null===(M=B.VideoAnalyticsPlugin)||void 0===M||M.handleBufferStart());break;case"bitRateEvent":K&&(null===(U=window)||void 0===U||null===(O=U.VideoAnalyticsPlugins)||void 0===O||O.playerSetBitRateHandler(ew,window.playerSetup));break;case"seek":K&&(null===(F=window)||void 0===F||null===(q=F.VideoAnalyticsPlugins)||void 0===q||q.onSeekHandler(ew)),J&&(null===(Z=window)||void 0===Z||null===(H=Z.VideoAnalyticsPlugin)||void 0===H||H.handleSeek({STPosition:Math.floor(1e3*ew.position),ETPosition:Math.floor(1e3*ew.offset)}));break;case"completeEvent":K&&(null===(W=window)||void 0===W||null===(z=W.VideoAnalyticsPlugins)||void 0===z||z.CompleteHandler(ew,window.playerSetup)),J&&(null===(Q=window)||void 0===Q||null===(G=Q.VideoAnalyticsPlugin)||void 0===G||G.handlePlayCompleted());break;case"errorEvent":K&&(null===(X=window)||void 0===X||null===(Y=X.VideoAnalyticsPlugins)||void 0===Y||Y.OnErrorHandler(ew)),J&&(null===(ee=window)||void 0===ee||null===($=ee.VideoAnalyticsPlugin)||void 0===$||$.handleError({errorMsg:ew&&ew.message?ew.message:"network error"}));break;case"bitRateChangeEvent":K&&(null===(el=window)||void 0===el||null===(et=el.VideoAnalyticsPlugins)||void 0===et||et.handleBitRateChange(ew,window.playerSetup)),J&&(null===(eo=window)||void 0===eo||null===(ei=eo.VideoAnalyticsPlugin)||void 0===ei||ei.handleBitRateChange());break;case"adStartEvent":K&&(null===(ea=window)||void 0===ea||null===(en=ea.VideoAnalyticsPlugins)||void 0===en||en.handleAdStarted({adType:ew})),J&&(null===(ed=window)||void 0===ed||null===(er=ed.VideoAnalyticsPlugin)||void 0===er||er.handleAdStarted({adType:ew}));break;case"adCompleteEvent":K&&(null===(eu=window)||void 0===eu||null===(es=eu.VideoAnalyticsPlugins)||void 0===es||es.handleAdCompleted(ew,{adType:ew})),J&&(null===(ec=window)||void 0===ec||null===(ev=ec.VideoAnalyticsPlugin)||void 0===ev||ev.handleAdCompleted({adType:ew}));break;case"adSkipEvent":J&&(null===(ey=window)||void 0===ey||null===(ep=ey.VideoAnalyticsPlugin)||void 0===ep||ep.handleAdSkipped({adType:ew}));break;case"handlePlayEndedByUserEvent":K&&(null===(em=window)||void 0===em||null===(e_=em.VideoAnalyticsPlugins)||void 0===e_||e_.handlePlayEndedByUser()),J&&(null===(eg=window)||void 0===eg||null===(ef=eg.VideoAnalyticsPlugin)||void 0===ef||ef.handlePlayEndedByUser())}};var H=l(30498),Z=l(4298),z=l.n(Z),W=l(83454);let G=_(),Q=T()(()=>l.e(5647).then(l.bind(l,57615)),{loadableGenerated:{webpack:()=>[57615]}}),Y=T()(()=>l.e(5984).then(l.bind(l,35984)),{loadableGenerated:{webpack:()=>[35984]},ssr:!1}),X=T()(()=>Promise.all([l.e(7520),l.e(6526)]).then(l.bind(l,27520)),{loadableGenerated:{webpack:()=>[27520]}}),ButtonWrapper=e=>{let{button:t,btnHandler:l}=e,btnClick=()=>{l(t)};if("button"==t.elementType)return(0,n.jsx)(n.Fragment,{children:(0,n.jsxs)("button",{onClick:()=>btnClick(),className:"primary ".concat(G[t.data]," ").concat(t.data),children:[" ",t.data," ",e.children]})})};var jw_player_component=e=>{var t,l,i,o,p,y,_,m,b,k,T,V,D,L,M,B,O,U,q,F,J,K,Z,$,ee,et,el,ei,eo,en,ea,er,ed,es,eu,ev,ec,ep,ey,e_,em,ef,eg,ew,eh,eb,eS,eP;let eI,{streamPath:ek,setVideoBgImage:eT,setPlayerMetaData:eA}
1=e,{state:{PageData:ex,userDetails:ej,navigateFrom:eE,SystemFeature:eC,playerUtils:eR,SystemConfig:eN,localLang:eV,Location:eD},dispatch:eL}=(0,v.oR)(),eM=null==ej?void 0:null===(t=ej.profileParentalDetails)||void 0===t?void 0:t.filter(e=>(null==e?void 0:e.profileId)==(null==ej?void 0:ej.profileId)),{mutate:eB,data:eO}=(0,a.Z)(),{mutate:eU,data:eq}=(0,r.Z)(),[eF,eJ]=(0,u.useState)({}),eK=(0,u.useRef)(null),[eH,eZ]=(0,u.useState)((0,c.rV)("LocationData")||{}),ez=(0,g.useRouter)();(0,u.useRef)(null);let eW=(0,u.useRef)(null),eG=(0,u.useRef)(null),eQ=(0,u.useRef)({isVideoPlaying:!1,isVideoBuffering:!1,isVideoPaused:!1,lastPosition:0}),[eY,eX]=(0,u.useState)(!0),[e$,e0]=(0,u.useState)([]),e1=(0,u.useRef)(null),[e5,e2]=(0,u.useState)(!1),[e3,e6]=(0,u.useState)(!1),e4=(0,u.useRef)(null),{mutate:e8,data:e9}=(0,r.Z)(),{mutate:e7,data:te}=(0,r.Z)(),[tt,tl]=(0,u.useState)({status:!1}),ti=(0,u.useRef)(!0),to=(0,u.useRef)(!1),tn=(0,u.useRef)(null),[ta,tr]=(0,u.useState)(),[td,ts]=(0,u.useState)(!1),[tu,tv]=(0,u.useState)(!1),[tc,tp]=(0,u.useState)({}),[ty,t_]=(0,u.useState)({}),tm=(0,u.useRef)(!1),tf=(0,u.useRef)(3),tg=(0,u.useRef)(0),tw=(0,u.useRef)(null),th=(0,u.useRef)(null),tb=(0,u.useRef)(!1),tS=(0,u.useRef)(!0),tP=(0,u.useRef)(!1),tI=(0,u.useRef)(null),tk=(0,u.useRef)(!1),{mutate:tT,data:tA}=(0,a.Z)(),{mutate:tx,data:tj}=(0,a.Z)(),[tE,tC]=(0,u.useState)(!1),[tR,tN]=(0,u.useState)([]),[tV,tD]=(0,u.useState)([]),[tL,tM]=(0,u.useState)(""),tB=(0,u.useRef)(!1),[tO,tU]=(0,u.useState)(!1),[tq,tF]=(0,u.useState)(!1),[tJ,tK]=(0,u.useState)(!1),[tH,tZ]=(0,u.useState)(!1),[tz,tW]=(0,u.useState)(!1),[tG,tQ]=(0,u.useState)(!1),[tY,tX]=(0,u.useState)({}),[t$,t0]=(0,u.useState)(!1),[t1,t5]=(0,u.useState)(!1),[t2,t3]=(0,u.useState)(!1),{mutate:t6,data:t4}=(0,a.Z)(),[t8,t9]=(0,u.useState)({}),[t7,le]=(0,u.useState)(!1);(0,u.useRef)(!0);let[lt,ll]=(0,u.useState)(0),[li,lo]=(0,u.useState)(!1),[ln,la]=(0,u.useState)(!1),[lr,ld]=(0,u.useState)(!1),[ls,lu]=(0,u.useState)(0),[lv,lc]=(0,u.useState)(!1),lp=(0,u.useRef)(!1),[ly,l_]=(0,u.useState)(!1),[lm,lf]=(0,u.useState)(""),[lg,lw]=(0,u.useState)(!1),[lh,lb]=(0,u.useState)(!1),[lS,lP]=(0,u.useState)(null),[lI,lk]=(0,u.useState)(!1),[lT,lA]=(0,u.useState)(""),[lx,lj]=(0,u.useState)(null),[lE,lC]=(0,u.useState)(""),[lR,lN]=(0,u.useState)([]),[lV,lD]=(0,u.useState)(!1),lL=null==eN?void 0:null===(l=eN.configs)||void 0===l?void 0:l.contentLanguageData;if("string"==typeof lL)try{lL=JSON.parse(lL)}catch(e){console.error("Failed to parse contentLanguageData:",e)}let lM=(null==lL?void 0:lL.items)||[],lB=[...lM,{title:"Hindi",code:"HIN",langImage:"",actorImage:""},{title:"English",code:"ENG",langImage:"",actorImage:""},{title:"Malayalam",code:"MAL",langImage:"",actorImage:""}],lO=(null==ex?void 0:null===(y=ex.data[0])||void 0===y?void 0:null===(p=y.content)||void 0===p?void 0:null===(o=p.dataRows[1])||void 0===o?void 0:null===(i=o.elements[0])||void 0===i?void 0:i.data)||"",lU=null==lB?void 0:lB.find(e=>{var t;return lO.toLowerCase().includes(null==e?void 0:null===(t=e.title)||void 0===t?void 0:t.toLowerCase())}),[lq,lF]=(0,u.useState)({enabled:!1,data:{}}),[lJ,lK]=(0,u.useState)({}),[lH,lZ]=(0,u.useState)(!1),{mutate:lz,data:lW}=(0,a.Z)(),{mutate:lG,data:lQ}=(0,r.Z)(),[lY,lX]=(0,u.useState)(!1),[l$,l0]=(0,u.useState)(!1),[l1,l5]=(0,u.useState)(""),l2=(0,u.useRef)(null),l3=(0,u.useRef)(0),l6=["4k_dolby","dolby","HD","SD","adaptivedvr"],flushWatchTimer=()=>{l3.current>0&&((0,R.hZ)({onWatchTimer:l3.current,path:ez.asPath}),clearInterval(l2.current),l2.current=null,l3.current=0)};eS=()=>{sessionStorage.clear()},(0,u.useEffect)(()=>{let eventListener=e=>{"function"==typeof eS&&eS()};return window.addEventListener("beforeunload",eventListener),()=>{window.removeEventListener("beforeunload",eventListener)}},[eS]);let[l4,l8]=(0,u.useState)("carousel");(0,c.rV)("playerSource")&&(l8((0,c.rV)("playerSource")),(0,c.wz)("playerSource"));let l9=0;(0,u.useEffect)(()=>{let handleFullscreenChange=()=>{lc(null!==document.fullscreenElement)};return document.addEventListener("fullscreenchange",handleFullscreenChange),()=>{document.removeEventListener("fullscreenchange",handleFullscreenChange)}},[]),(0,u.useEffect)(()=>(lY&&(l2.current=setInterval(()=>{l3.current=l3.current+1},1e3)),()=>{flushWatchTimer()}),[lY]),(0,u.useEffect)(()=>{let onFlushPlayerWatchTimer=()=>flushWatchTimer();return window.addEventListener("flushPlayerWatchTimer",onFlushPlayerWatchTimer),()=>{window.removeEventListener("flushPlayerWatchTimer",onFlushPlayerWatchTimer)}},[]),(0,u.useEffect)(()=>{var e,t,l,i,o;if((null==eC?void 0:null===(t=eC.encryptApisList)||void 0===t?void 0:null===(e=t.fields)||void 0===e?void 0:e.payment)==="true"){let e=null==lQ?void 0:null===(l=lQ.data)||void 0===l?void 0:l.data;if(e)try{(e=JSON.parse((0,s.ow)(e))).status?lF({enabled:!0,data:e.response}):eL({type:v.Nw.o4,payload:{message:null===(i=e.error)||void 0===i?void 0:i.message}})}catch(e){}}else{let e=null==lQ?void 0:lQ.data;e&&(e.status?lF({enabled:!0,data:e.response}):eL({type:v.Nw.o4,payload:{message:null===(o=e.error)||void 0===o?void 0:o.message}}))}},[lQ]),(0,u.useEffect)(()=>{var e,t,l,i,o,n,a,r,d,s,u;if(null==lW?void 0:null===(e=lW.data)||void 0===e?void 0:e.status){let e={},{data:v}=lW;if(lK(v.response[0]),e.userSelectedPack=null===(i=v.response)||void 0===i?void 0:null===(l=i[0])||void 0===l?void 0:null===(t=l.packageInfo)||void 0===t?void 0:t.packages[0],e.masterPack=null===(a=v.response)||void 0===a?void 0:null===(n=a[0])||void 0===n?void 0:null===(o=n.packageInfo)||void 0===o?void 0:o.master,e.suppGateWays=null===(d=v.response)||void 0===d?void 0:null===(r=d[0])||void 0===r?void 0:r.supp
1ortedGateway,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===(u=v.response[0].packageInfo)||void 0===u?void 0:null===(s=u.packages[0])||void 0===s?void 0:s.id);ez.push({pathname:t,query:{path:ez.asPath.replace("/",""),package_type:"2",gateway:e.suppGateWays[0].code}},t)}}},[lW]);let proceedToPayRazor=e=>{var t,l;let i={gateway:"razorpay",packages:e.userSelectedPack.id.toString()};if((null==eC?void 0:null===(l=eC.encryptApisList)||void 0===l?void 0:null===(t=l.fields)||void 0===t?void 0:t.payment)=="true"){let e={data:(0,s.q6)(JSON.stringify(i)),metadata:(0,s.q6)(JSON.stringify({request:"order/checkout"}))};postPaymentData("".concat("https://prod-api.yupptv.com","/service/api/v1/send"),e)}else postPaymentData("".concat("https://prod-api.yupptv.com","/payment/api/v1/order/checkout"),i)};(0,u.useEffect)(()=>(addForwardIcons(),()=>{let e=document.getElementById("frwdIcon");e&&(e.style.display="none",e.style.pointerEvents="none")}),[t2]);let postPaymentData=(e,t)=>{lG({url:e,apiData:t})},l7=(0,c.rV)("isloggedin"),ie=(0,c.rV)("last_channel_info")!=ez.asPath&&(0,c.rV)("last_channel_info")||"";(0,u.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,l;(null===(t=window)||void 0===t?void 0:null===(e=t.jwplayer())||void 0===e?void 0:e.getFullscreen())&&(null===(l=window.jwplayer())||void 0===l||l.setFullscreen(!1))}catch(e){}}},[]),(0,u.useEffect)(()=>{eR&&eR.startover&&(to.current=eR.startover,eL({type:v.Nw.jr,payload:{}}))},[eR]),(0,u.useEffect)(()=>{var e;(null==eN?void 0:null===(e=eN.configs)||void 0===e?void 0:e.videoQualitySettings)&&(th.current=JSON.parse(eN.configs.videoQualitySettings),th.current&&getSelectedBitrate(th.current))},[eN]),(0,u.useEffect)(()=>{var e,t,l;return(null===w.e||void 0===w.e?void 0:null===(e=w.e.adsSupport)||void 0===e?void 0:e.jioAds)&&tC(!0),(null===(l=e1.current)||void 0===l?void 0:null===(t=l.style)||void 0===t?void 0:t.height)&&(e1.current.style.height=.5625*e1.current.clientWidth+"px"),()=>{var e,t,l,i,o,n,a;try{(null===(t=tn.current.pageAttributes)||void 0===t?void 0:t.isLive)==="true"?(0,c.LS)("last_channel_info",ez.asPath):(0,c.wz)("last_channel_info"),sendPlayerAnalytics("handlePlayEndedByUserEvent"),ctPlayerEnd(),eW.current&&(null===(i=playerInstanceRef.current)||void 0===i||i.stop(),null===(o=playerInstanceRef.current)||void 0===o||o.remove()),tn.current&&(null===(l=tn.current)||void 0===l?void 0:l.sessionInfo)&&(endActiveStream(tn.current.sessionInfo.streamPollKey),(0,c.wz)("streamPollKey")),(null==e4?void 0:e4.current)&&clearInterval(e4.current)}catch(e){}if(null===(e=window)||void 0===e?void 0:e.jwplayer)try{null===(n=window)||void 0===n||n.jwplayer(eK.current).stop(),null===(a=window)||void 0===a||a.jwplayer(eK.current).remove(),playerSetup&&(playerSetup.stop(),playerSetup.remove()),tE&&distroyJioVideo()}catch(e){}}},[]),(0,u.useEffect)(()=>{e1.current&&(e1.current.style.height=.5625*e1.current.clientWidth+"px")},[e3]),(0,u.useEffect)(()=>{var e,t,l,i,o,n,a,r,d,s;let u=!1;if(null==ex||null===(e=ex.data)||void 0===e||e.map(e=>{if((null==e?void 0:e.paneType)==="content"){var t,l,i;null==e||null===(t=e.content)||void 0===t||t.dataRows.map(e=>{(null==e?void 0:e.rowDataType)==="button"&&(u=!0,e0(e.elements))}),!l1&&(null==e?void 0:null===(l=e.content)||void 0===l?void 0:l.title)&&l5(null==e?void 0:null===(i=e.content)||void 0===i?void 0:i.title)}}),ex){if((null==ex?void 0:null===(t=ex.streamStatus)||void 0===t?void 0:t.hasAccess)||(null==ex?void 0:null===(l=ex.streamStatus)||void 0===l?void 0:l.trailerStreamStatus)&&(null==ex?void 0:ex.info.attributes.playerType)=="trailer"||(null==ex?void 0:null===(i=ex.streamStatus)||void 0===i?void 0:i.previewStreamStatus)&&(null==ex?void 0:ex.info.attributes.playerType)=="preview"){eX(!1),eJ(ex),(null==ex?void 0:null===(n=ex.streamStatus)||void 0===n?void 0:n.previewStreamStatus)&&(null==ex?void 0:ex.info.attributes.playerType)=="preview"&&tQ(!0);let e=(0,c.rV)("streamPollKey");e&&(endActiveStream(e),(0,c.wz)("streamPollKey")),getStream(),e6(""),e2(""),eZ((0,c.rV)("LocationData")),(null==ex?void 0:null===(r=ex.info)||void 0===r?void 0:null===(a=r.attributes)||void 0===a?void 0:a.showNextButton)=="true"&&getNextEpisodePre()}else eX(!0),e6(null==ex?void 0:null===(d=ex.streamStatus)||void 0===d?void 0:d.message),lb(!0),(null==ex?void 0:null===(s=ex.streamStatus)||void 0===s?void 0:s.errorCode)!=-15||u||e0([{elementSubtype:"verify_email",data:"Verify Email",id:64,target:"verify_email",elementType:"button"}])}null==ex||null===(o=ex.data)||void 0===o||o.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"&&(e0(e.elements),e.elements.length&&e.elements.forEac
1h(e=>{var t,l,i,o,n,a,r,d,s,u,v,c,p,y,_,m,f,g,w;(null==e?void 0:e.elementSubtype)=="signup"||(null==e?void 0:e.elementSubtype)=="signin"?(e2(null==ex?void 0:null===(l=ex.info)||void 0===l?void 0:null===(t=l.attributes)||void 0===t?void 0:t.ContentAccessErrorMessage),e6((null==ex?void 0:null===(o=ex.info)||void 0===o?void 0:null===(i=o.attributes)||void 0===i?void 0:i.SignAndSignupErrorMessage)||(null==ex?void 0:null===(n=ex.streamStatus)||void 0===n?void 0:n.message))):"subscribe"==e.elementSubtype?(e2(null==ex?void 0:null===(r=ex.info)||void 0===r?void 0:null===(a=r.attributes)||void 0===a?void 0:a.ContentAccessErrorMessage),(null==ex?void 0:null===(s=ex.info)||void 0===s?void 0:null===(d=s.attributes)||void 0===d?void 0:d.isPreviewAvailable)==="true"?e6(errorMsg(null==ex?void 0:null===(v=ex.info)||void 0===v?void 0:null===(u=v.attributes)||void 0===u?void 0:u.SubscribeErrorMessage,"player")||(null==ex?void 0:null===(c=ex.streamStatus)||void 0===c?void 0:c.message)):(startPlay(""),(null==ex?void 0:null===(p=ex.streamStatus)||void 0===p?void 0:p.errorCode)===-16&&e6(null==ex?void 0:null===(y=ex.streamStatus)||void 0===y?void 0:y.message))):"rent"==e.elementSubtype&&(e2(null==ex?void 0:null===(m=ex.info)||void 0===m?void 0:null===(_=m.attributes)||void 0===_?void 0:_.ContentAccessErrorMessage),e6((null==ex?void 0:null===(g=ex.info)||void 0===g?void 0:null===(f=g.attributes)||void 0===f?void 0:f.RentErrorMessage)||(null==ex?void 0:null===(w=ex.streamStatus)||void 0===w?void 0:w.message)))}))})}})},[ex]),(0,u.useEffect)(()=>{tE&&jioConfig()},[tE]),(0,u.useEffect)(()=>{var e;eH&&(null==eH?void 0:null===(e=eH.data)||void 0===e?void 0:e.analyticsInfo)&&initAnalytics()},[eH]);let getNextEpisodePre=()=>{tX({...tY,displayStatus:!1});let e="https://prod-api.yupptv.com"+(ez.asPath.includes("channels")?"/service/api/v1/next/epgs?":"/service/api/v1/next/videos?")+(0,s.Yo)({path:ek,count:"1"});try{t6(e)}catch(e){}};(0,u.useEffect)(()=>{tt&&(ie&&ld(!1),tY&&tX(!1),tq&&tF(!1),removePlayerIcons())},[tt]);let initAnalytics=function(){var e,t,l,i,o,n;let a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(eH&&(null==eH?void 0:null===(e=eH.data)||void 0===e?void 0:e.analyticsInfo)){let e={analytics_id:"41aa7c90eb2b7b19e1e5e1ea8edbda1d",authKey:null==eH?void 0:null===(t=eH.data)||void 0===t?void 0:t.analyticsInfo.authKey,trueIp:null==eH?void 0:null===(l=eH.data)||void 0===l?void 0:l.ipInfo.trueIP,clientId:null==eH?void 0:null===(i=eH.data)||void 0===i?void 0:i.ipInfo.trueIP};(null===w.e||void 0===w.e?void 0:null===(o=w.e.supportedVideoAnalytics)||void 0===o?void 0:o.isV2AnalyticsSupport)&&(eW.current=loadPlayerAnalytics(e,null,!1)),(null===w.e||void 0===w.e?void 0:null===(n=w.e.supportedVideoAnalytics)||void 0===n?void 0:n.isVideoGraphAnalyticsSupport)&&(eG.current=loadPlayerAnalytics(null==eH?void 0:eH.data,a,!0))}};(0,u.useEffect)(()=>{if(tt){ie&&ld(!1),tY&&tX(!1);let e=document.getElementById("frwdIcon");e&&(e.style.display="none"),tq&&tF(!1),removePlayerIcons()}},[tt]);let errorMsg=(e,t)=>{var l,i;let o=parseInt(null==ex?void 0:null===(i=ex.info)||void 0===i?void 0:null===(l=i.attributes)||void 0===l?void 0:l.previewDurationInMins);if(e&&o&&e.includes(o.toString())){let l="";if(o>=60){let e=Math.floor(o/60);l="".concat(e," minute").concat(e>1?"s":"")}else l="".concat(o," second").concat(o>1?"s":"");let i=e.replace(o.toString(),l);if("preview"==t&&i.toLowerCase().includes("subscribe")){let e=i.split(/(subscribe)/i);return e.map((e,t)=>"subscribe"===e.toLowerCase()?(0,n.jsx)("button",{onClick:()=>handleSubscribe(),style:{backgroundColor:"#f47000",color:"#fff",border:"none",padding:"6px 12px",borderRadius:"4px",cursor:"pointer"},children:"Subscribe"},t):(0,n.jsx)("span",{children:e},t))}return i}},handleSubscribe=()=>{var e,t,l,i;let o=null===(e=ex.info.attributes)||void 0===e?void 0:e.language,n=null==tn?void 0:null===(l=tn.current)||void 0===l?void 0:null===(t=l.pageAttributes)||void 0===t?void 0:t.language,a=null!==(i=null==o?void 0:o.toLowerCase())&&void 0!==i?i:null==n?void 0:n.toLowerCase(),r=a?"".concat(a,"packages"):null;ez.push(r)},nextVideoCheck=(e,t)=>{var l,i,o,n,a,r,d,s,u,v,c;if(!tB.current||!Number.isFinite(e)||e<=0)return;let p="number"==typeof t?t:0,y=Math.max(0,Math.round(e-p)),_=null==t4?void 0:null===(i=t4.data)||void 0===i?void 0:null===(l=i.response)||void 0===l?void 0:l.data;if(!(null==_?void 0:_.length))return;ll(y);let m=(null==ex?void 0:null===(n=ex.info)||void 0===n?void 0:null===(o=n.attributes)||void 0===o?void 0:o.creditsStartTime)?parseInt(null==ex?void 0:null===(r=ex.info)||void 0===r?void 0:null===(a=r.attributes)||void 0===a?void 0:a.creditsStartTime):null,f=(null==eN?void 0:null===(d=eN.configs)||void 0===d?void 0:d.nextVideoDisplaySeconds)?parseInt(null==eN?void 0:null===(s=eN.configs)||void 0===s?void 0:s.nextVideoDisplaySeconds):30;if(m&&p<m){tX(e=>({...e,displayStatus:!1})),li&&lo(!1);return}let g=y<=f;if(g||m&&p>=m){if(!tG){let e=(null===(u=eQ.current)||void 0===u?void 0:u.lastPosition)||0;p>=e?(li||((0,N.qP)("autoplay",analyticsData({eventName:"autoplay"})),lo(!0)),(null==ex?void 0:null===(c=ex.info)||void 0===c?void 0:null===(v=c.attributes)||void 0===v?void 0:v.showNextButton)==="true"&&tX(e=>({...e,displayStatus:!0}))):(tX(e=>({...e,displayStatus:!1})),lo(!1))}}else tX(e=>({...e,displayStatus:!1})),li&&lo(!1);eQ.current.lastPosition=p};(0,u.useEffect)(()=>
1{if(null==t4?void 0:t4.data){var e,t,l,i;tX({...tY,nextVideoTargetPath:null==t4?void 0:null===(i=t4.data)||void 0===i?void 0:null===(l=i.response)||void 0===l?void 0:null===(t=l.data[0])||void 0===t?void 0:null===(e=t.target)||void 0===e?void 0:e.path,displayStatus:!1})}else tX({...tY,displayStatus:!1})},[t4]),(0,u.useEffect)(()=>{tt&&(ie&&ld(!1),removePlayerIcons())},[tt]),(0,u.useEffect)(()=>{var e,t,l,i,o,n,a,r,d,s,u,v,p,y,_,m,f,g,w,h,b,S,P,I;if(initAnalytics(null==eO?void 0:null===(e=eO.data)||void 0===e?void 0:e.response),null==eO?void 0:null===(t=eO.data)||void 0===t?void 0:t.status){eX(!1),tn.current=null==eO?void 0:null===(i=eO.data)||void 0===i?void 0:i.response;let e=null==eO?void 0:null===(a=eO.data)||void 0===a?void 0:null===(n=a.response)||void 0===n?void 0:null===(o=n.sessionInfo)||void 0===o?void 0:o.streamPollKey;e&&((0,c.LS)("streamPollKey",e),lP(e)),initStreamData(eO.data)}else(null==eO?void 0:null===(l=eO.data)||void 0===l?void 0:l.status)!=void 0&&((null==ex?void 0:null===(d=ex.info)||void 0===d?void 0:null===(r=d.attributes)||void 0===r?void 0:r.playerType)!=="preview"?e6(null==eO?void 0:null===(u=eO.data)||void 0===u?void 0:null===(s=u.error)||void 0===s?void 0:s.message):e6((null==ex?void 0:null===(p=ex.info)||void 0===p?void 0:null===(v=p.attributes)||void 0===v?void 0:v.SignAndSignupErrorMessage)||(null==ex?void 0:null===(y=ex.streamStatus)||void 0===y?void 0:y.message)),eX(!0),lb(!0),((null==eO?void 0:null===(m=eO.data)||void 0===m?void 0:null===(_=m.error)||void 0===_?void 0:_.code)==-820||(null==eO?void 0:null===(g=eO.data)||void 0===g?void 0:null===(f=g.error)||void 0===f?void 0:f.code)==-821||(null==eO?void 0:null===(h=eO.data)||void 0===h?void 0:null===(w=h.error)||void 0===w?void 0:w.code)==-823)&&t_({isActive:!0,code:null==eO?void 0:null===(S=eO.data)||void 0===S?void 0:null===(b=S.error)||void 0===b?void 0:b.code,errorMessage:null==eO?void 0:null===(I=eO.data)||void 0===I?void 0:null===(P=I.error)||void 0===P?void 0:P.message,userProfiles:null==eM?void 0:eM[0],closeTarget:()=>ez.back()}))},[eO]),(0,u.useEffect)(()=>{if(e9&&!e9.data.status){var e,t,l,i,o,n,a;tl({status:!0,title:null==e9?void 0:null===(t=e9.data)||void 0===t?void 0:null===(e=t.error)||void 0===e?void 0:e.message,description:null==e9?void 0:null===(o=e9.data)||void 0===o?void 0:null===(i=o.error)||void 0===i?void 0:null===(l=i.details)||void 0===l?void 0:l.description,code:null==e9?void 0:null===(a=e9.data)||void 0===a?void 0:null===(n=a.error)||void 0===n?void 0:n.code});try{window.jwplayer().stop(),clearInterval(e4.current)}catch(e){}}},[e9]);let closePlayer=()=>{ez.push("/")};(0,u.useEffect)(()=>{if(null==eq?void 0:eq.data){var e,t,l,i,o,n,a,r,d,u,v,p,y,_;let m=JSON.parse((0,s.ow)(null==eq?void 0:null===(e=eq.data)||void 0===e?void 0:e.data));if(m.status){eX(!1),tn.current=null==m?void 0:m.response,initAnalytics(null==m?void 0:m.response);let e=null==m?void 0:null===(l=m.response)||void 0===l?void 0:null===(t=l.sessionInfo)||void 0===t?void 0:t.streamPollKey;e&&((0,c.LS)("streamPollKey",e),lP(e)),initStreamData(m)}else(null==ex?void 0:null===(o=ex.info)||void 0===o?void 0:null===(i=o.attributes)||void 0===i?void 0:i.playerType)!=="preview"?e6(null==m?void 0:null===(n=m.error)||void 0===n?void 0:n.message):e6((null==ex?void 0:null===(r=ex.info)||void 0===r?void 0:null===(a=r.attributes)||void 0===a?void 0:a.SignAndSignupErrorMessage)||(null==ex?void 0:null===(d=ex.streamStatus)||void 0===d?void 0:d.message)),eX(!0),lb(!0),((null==m?void 0:null===(u=m.error)||void 0===u?void 0:u.code)==-820||(null==m?void 0:null===(v=m.error)||void 0===v?void 0:v.code)==-821||(null==m?void 0:null===(p=m.error)||void 0===p?void 0:p.code)==-823)&&t_({isActive:!0,code:null==m?void 0:null===(y=m.error)||void 0===y?void 0:y.code,errorMessage:null==m?void 0:null===(_=m.error)||void 0===_?void 0:_.message,closeTarget:()=>ez.back(),userProfile:null==eM?void 0:eM[0]})}},[eq]),(0,u.useEffect)(()=>{ln&&li&&nextEpisode()},[ln,li]),(0,u.useState)(()=>{""!=tL&&window.jwplayer().pause()},[tL,tV,tR]);let analyticsData=function(){var e,t,l,i,o,n,a,r,d,s,u,v,p,y,_,m;let f=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"play",g=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},w=null==ex?void 0:null===(e=ex.data)||void 0===e?void 0:e.reduce((e,t)=>
1{if((null==t?void 0:t.paneType)==="content"){var l;null===(l=t.content.dataRows)||void 0===l||l.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},{});null===(l=window)||void 0===l||null===(t=l.jwplayer())||void 0===t||t.getPosition(),null===(o=window)||void 0===o||null===(i=o.jwplayer())||void 0===i||i.getDuration();let h=(0,c.rV)("contentSectionName"),b={content_name:(null==w?void 0:w.title)||"NA",content_genre:(null===(r=tn.current)||void 0===r?void 0:null===(a=r.pageAttributes)||void 0===a?void 0:null===(n=a.genre)||void 0===n?void 0:n.replace(/[â¢]/g,","))||(null==w?void 0:w.pgrating)||"NA",content_partner_name:(null===(s=tn.current)||void 0===s?void 0:null===(d=s.pageAttributes)||void 0===d?void 0:d.networkName)||"-1",content_type:((null==ex?void 0:null===(v=ex.info)||void 0===v?void 0:null===(u=v.attributes)||void 0===u?void 0:u.isLive)=="true"?"Live":null==ex?void 0:null===(y=ex.info)||void 0===y?void 0:null===(p=y.attributes)||void 0===p?void 0:p.contentType)||"NA",content_category:(0,c.rV)("maintab")||"premium",tab:(0,c.rV)("currentTab")};return Object.keys(g).length>0?((null==g?void 0:g.completed)&&(b["% completed"]=null==g?void 0:g.completed),(null==g?void 0:g.duration_viewed)&&(b.duration_viewed=null==g?void 0:g.duration_viewed),(null==g?void 0:g.duration)&&(b.content_duration=null==g?void 0:g.duration),b.audio_language=(null==lU?void 0:lU.title)||"NA",b.carousel_name="search"==(0,c.rV)("currentTab")?"NA":"Top Banner"==h?"NA":h,b.device_type=window.innerWidth>1024?"Desktop":"Mobile",b.source="search"==(0,c.rV)("currentTab")?"search":"Top Banner"==h?"top_banner":l4,b["tv show name"]="tvshows"==(0,c.rV)("currentTab")?null==w?void 0:w.title:(null===(m=tn.current)||void 0===m?void 0:null===(_=m.pageAttributes)||void 0===_?void 0:_.tvShowName)||"NA",b.content_language=(null==lU?void 0:lU.title)||"NA"):(b.action=f,b.player_type="full"),b},setJioAdState=e=>{tC(e)},gotoLivePage=()=>{var e,t;ez.push(null==tn?void 0:null===(t=tn.current)||void 0===t?void 0:null===(e=t.pageAttributes)||void 0===e?void 0:e.targetPath)},languagesFilterByKey=(e,t)=>{let l=new Set;return e.filter(e=>!l.has(e[t])&&(l.add(e[t]),!0))},languageRememberance=(e,t)=>{let l=localStorage.getItem("audio track"),i=document.querySelector("#jw-player-settings-submenu-audioTracks .jw-settings-submenu-items");if(void 0!==i&&"undefined"!==i&&null!==i){let e=Array.from(i.querySelectorAll("button")),t=new Set;l&&""!==l&&e.forEach(e=>e.classList.remove("jw-settings-item-active")),e.forEach(e=>{let i=e.getAttribute("aria-label"),o=i?i.trim():"";t.has(o)?e.remove():(t.add(o),l&&""!==l&&o.toLowerCase()===l.toLowerCase()&&e.classList.add("jw-settings-item-active"))})}if(languagesFilterByKey(e,"language"),null!=l){var o,n;let i=e.reduce((e,t,i)=>(t.name===l&&(e=i),e),-1);i>0&&t&&(null===(n=window)||void 0===n||null===(o=n.jwplayer("player_div"))||void 0===o||o.setCurrentAudioTrack(i))}},it=(0,u.useRef)(!1),il=(0,u.useRef)(null),ii=(0,u.useRef)(null),io=(0,u.useRef)(null);(0,u.useEffect)(()=>{lx&&(io.current=lx)},[lx]);let getCurrentEndTime=()=>{var e,t,l,i,o;let n=(null===(l=io.current)||void 0===l?void 0:null===(t=l.info)||void 0===t?void 0:null===(e=t.attributes)||void 0===e?void 0:e.endTime)||(null==eF?void 0:null===(o=eF.info)||void 0===o?void 0:null===(i=o.attributes)||void 0===i?void 0:i.endTime);return Number(n)},getIsLive=()=>{var e,t,l,i,o;return(null===(l=io.current)||void 0===l?void 0:null===(t=l.info)||void 0===t?void 0:null===(e=t.attributes)||void 0===e?void 0:e.isLive)||(null==eF?void 0:null===(o=eF.info)||void 0===o?void 0:null===(i=o.attributes)||void 0===i?void 0:i.isLive)},getNextprogramData=()=>{var e;let t={path:(0,s.mn)(ez.asPath)},l=null==eN?void 0:null===(e=eN.configs)||void 0===e?void 0:e.liveplayernextprogramscount,i=l?JSON.parse(l):{},o=i.default;tx("https://prod-api.yupptv.com/service/api/v1/get/live/channel/next/programs?"+(0,s.Yo)(t)+"&count="+o)},ia=(0,u.useRef)(null),ir=(0,u.useRef)(null);(0,u.useEffect)(()=>{var e,t,l;if(!(null==tj?void 0:null===(e=tj.data)||void 0===e?void 0:e.status))return;let i=(null==tj?void 0:null===(l=tj.data)||void 0===l?void 0:null===(t=l.response)||void 0===t?void 0:t.data)||[];
1if(!i.length)return;let updateCurrentProgram=()=>{var e,t;let l=Date.now(),o=i.find(e=>l>=e.startTime&&l<e.endTime);if(!o)return;let n=null==o?void 0:null===(t=o.pageContent)||void 0===t?void 0:null===(e=t.data)||void 0===e?void 0:e.find(e=>(null==e?void 0:e.paneType)==="content");n&&(eA(e=>{var t,l;return null==e||null===(l=e.info)||void 0===l||null===(t=l.attributes)||void 0===t||t.programId,{...n,programStartTime:o.startTime,programEndTime:o.endTime}}),lj(null==o?void 0:o.pageContent))};updateCurrentProgram(),ir.current=setInterval(updateCurrentProgram,1e3);let o=i[i.length-1];if(o){let e=Math.max(0,o.endTime-Date.now());console.log("Current schedule ends at:",new Date(o.endTime)),ia.current=setTimeout(()=>{console.log("Fetching next schedule..."),getNextprogramData()},e)}return()=>{ir.current&&clearInterval(ir.current),ia.current&&clearTimeout(ia.current)}},[tj]),(0,u.useEffect)(()=>{var e,t;if(!(null==tA?void 0:null===(e=tA.data)||void 0===e?void 0:e.status))return;let l=tA.data.response,i=null==l?void 0:null===(t=l.data)||void 0===t?void 0:t.find(e=>(null==e?void 0:e.paneType)==="content");if(i){let e={...i};eA(e),lj(l)}},[tA]);let id=(0,u.useRef)(!1);(0,u.useEffect)(()=>{if(!0===id.current){var e,t,l,i;if(!lx)return;let o=null==lx?void 0:null===(t=lx.info)||void 0===t?void 0:null===(e=t.attributes)||void 0===e?void 0:e.programId,n=null==lx?void 0:null===(i=lx.info)||void 0===i?void 0:null===(l=i.attributes)||void 0===l?void 0:l.liveProgramName;if(!o||!n)return;il.current;let a=il.current!==o;a&&(il.current=o,it.current=!1,lA(n),setPlayerAnalyticsMetaData(null==eH?void 0:eH.data,lE,lx,eE,ej,!0),sendPlayerAnalytics("thumbnailVideoClick"),sendPlayerAnalytics("handlePlayerLoad"),sendPlayerAnalytics("play"),id.current=!1)}},[lx]);let programChange=e=>{let t=Date.now(),l=getCurrentEndTime();if(l){if(t<l-2e3){it.current=!1;return}it.current||(it.current=!0,ii.current&&clearTimeout(ii.current),sendPlayerAnalytics("completeEvent",e),id.current=!0)}},is=(0,u.useRef)(!1),startPlay=e=>{var t,l,i,o,n,a,r;let d;let s=document.querySelector(".jw-error-msg");s&&(s.style.display="flex");let u=document.createElement("div");u.className="".concat(G.player_title," fullscreentitlediv"),u.id="fullscreentitlediv",u.onclick=playerBackButton;let v=ez.asPath.includes("embed");v||(u.innerHTML='<img class="detail_back" \n src="https://yuppstatic.akamaized.net/yupptv/yupptv_migration/web/back_arrow_player_page.svg"\n alt="back_btn"\n style="width:35px;height:35px;z-index: 200;position: absolute;top: 25px;cursor: pointer;left: 25px;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(l1,"</h2>"));let{adSpots:p,cuepoints:y}=checkJioAds();if(ti.current=!0,tS.current=!0,!e||!Array.isArray(e)&&"object"!=typeof e){console.error("Invalid stream:",e);return}if(Array.isArray(e)||(e=[e]),!e[0]||!e[0].sources){console.error("Missing sources in stream
1:",e);return}let _=null!==(i=e[0].sources.filter(e=>{var t;return!!(null==e?void 0:null===(t=e.drm)||void 0===t?void 0:t.widevine)}))&&void 0!==i?i:[];if(e[0].sources.forEach(e=>{var t;(null==e?void 0:null===(t=e.drm)||void 0===t?void 0:t.widevine)||_.push(e)}),e[0].sources=_,tI.current=e,null===(l=e[0])||void 0===l||null===(t=l.sources)||void 0===t||t.length,tP.current)try{null===(n=window)||void 0===n||null===(o=n.jwplayer())||void 0===o||o.load(e),null===(r=window)||void 0===r||null===(a=r.jwplayer())||void 0===a||a.play()}catch(e){console.error("Failed to load stream:",e)}else{let t={playlist:e,advertising:getAdDada(),primary:"html5",width:"100%",autostart:!0,preload:"auto",pipIcon:!0,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"},cast:{appid:lp.current?"7A227AE1":""},events:{meta:()=>{let e=window.jwplayer&&window.jwplayer((null==eK?void 0:eK.current)||"player_div");languageRememberance(e.getAudioTracks(),!0)},ready:e=>{var t,l,i,o,n,a,r,d,s;if(l0(!0),window.jwplayer()?document.getElementById("player_div")&&document.getElementById("player_div").appendChild(u):document.getElementById("fullscreentitlediv")&&document.getElementById("fullscreentitlediv").remove(),eT(),!tk.current){if((null==ex?void 0:null===(n=ex.info)||void 0===n?void 0:null===(o=n.attributes)||void 0===o?void 0:o.contentType)!=="movie"||(null==ex?void 0:null===(r=ex.info)||void 0===r?void 0:null===(a=r.attributes)||void 0===a?void 0:a.contentType)!=="tvshowepisode"){let e=null==ex?void 0:null===(s=ex.info)||void 0===s?void 0:null===(d=s.attributes)||void 0===d?void 0:d.language,t=e?e[0].toUpperCase()+e.slice(1).toLowerCase():"-1";(0,c.wz)("audiolan"),(0,c.LS)("audiolan",t),sendPlayerAnalytics("defaultaudioTracks",t)}sendPlayerAnalytics("thumbnailVideoClick"),sendPlayerAnalytics("handlePlayerLoad"),tk.current=!0}let v=document.querySelector(".videospinner");v?v.style.display="none":document.querySelector(".jw-preview").innerHTML+="<div class='videospinner' style='display: none'><span class='loader'></span></div>",(null===(t=tn.current.pageAttributes)||void 0===t?void 0:t.isLive)==="true"?(t3(!1),""!=ie&&ld(!0)):(null===(i=tn.current)||void 0===i?void 0:null===(l=i.analyticsInfo)||void 0===l?void 0:l.contentType)==="live"?t3(!1):t3(!0),tE&&setTimeout(()=>{var e,t;let l=document.getElementById("player-wrap-jio");f()("#player_div").append(l),(null==p?void 0:null===(e=p[0])||void 0===e?void 0:e.length)&&(to.current||tn.current.streamStatus.seekPositionInMillis<=6e5)?managePreRole(y):setJioAdState(!1),(null==p?void 0:null===(t=p[1])||void 0===t?void 0:t.length)&&addCuePoints(y)},500)},play:e=>{var t,l,i,o,n,a,r,d,s,u,v,c,p,y,_,m;tB.current=!0,attachPlayerButtons(),to.current&&startOver(),window.getTotalVideoLength=()=>{var e,t;let l=null===(t=window)||void 0===t?void 0:null===(e=t.jwplayer(eK.current))||void 0===e?void 0:e.getDuration();return l<0||void 0===l||null==l?"-1":1e3*l},lX(!0),tS.current&&((0,N.qP)("player_actions",analyticsData("play")),tS.current=!1),sendPlayerAnalytics("play"),!tb.current&&(null==th?void 0:null===(t=th.current)||void 0===t?void 0:t.length)>0&&ej&&setTimeout(()=>{adjustVideoQuality()},5e3),tm.current=!0,(t8.pgRatingTitle||t8.pgRatingSubtitle)&&addPgRating(),(null===(l=tn.current.pageAttributes)||void 0===l?void 0:l.isLive)==="true"&&""!=ie&&ld(!0);try{if(((c={location:"https://prod-api.yupptv.com",api:"https://prod-api.yupptv.com",search:"https://prod-searchapi.yupptv.com",pgURL:"https://prod-api.yupptv.com",guideURL:"https://prod-guideapi.yupptv.com",tenantCode:"yupptv",product:"yupptv",isSupported:!0},void 0===c)?void 0:c.tenantCode)==="yupptv"){let e=null===(y=tn.current)||void 0===y?void 0:null===(p=y.analyticsInfo)||void 0===p?void 0:p.dataType,t=null===(m=tn.current)||void 0===m?void 0:null===(_=m.analyticsInfo)||void 0===_?void 0:_.contentType;"epg"===e&&"vod"===t?lw(!0):lw(!1)}addForwardIcons()}catch(e){}(null==tn?void 0:null===(o=tn.current)||void 0===o?void 0:null===(i=o.streamStatus)||void 0===i?void 0:i.previewStreamStatus)&&(tQ(!0),showPreview(!0),f()(".jw-display-controls .jw-display-icon-rewind").css("visibility","hidden"),f()(".jw-controlbar .jw-icon-rewind").hide(),f()(".jw-icon-cast").css("visibility","hidden"),f()("#frwdIcon").css("visibility","hidden"),tW(!0),document.querySelectorAll(".jwplayer").forEach(e
1=>{e.addEventListener("keydown",e=>e.stopImmediatePropagation(),!0)}));let g=document.getElementsByClassName("jw-controlbar")[0],w=document.getElementsByClassName("jw-button-container")[0],h=document.getElementById("playerButtons"),b=document.getElementById("player_div"),S=document.getElementById("nextVideoTooltip");S&&tG&&(null==b||b.insertBefore(S,b.lastChild)),h&&(null==g||g.insertBefore(h,g.firstChild)),t0(!0),null==w||w.insertBefore(document.createElement("div"),w.firstChild),playEvent(),(null===(n=eQ.current)||void 0===n?void 0:n.isVideoPlaying)||(sendPlayerAnalytics("playEvent",e),eQ.current.isVideoPlaying=!0),(null===(a=eQ.current)||void 0===a?void 0:a.isVideoBuffering)&&(sendPlayerAnalytics("bufferEvent",e),eQ.current.isVideoBuffering=!1),(null===(r=eQ.current)||void 0===r?void 0:r.isVideoPaused)&&(sendPlayerAnalytics("resumeEvent"),eQ.current.isVideoPaused=!1),(null==eN?void 0:null===(d=eN.configs)||void 0===d?void 0:d.waterMarkInfoOnPlayer)&&JSON.parse(null==eN?void 0:null===(s=eN.configs)||void 0===s?void 0:s.waterMarkInfoOnPlayer).supportedContentTypes,null==tn||null===(v=tn.current)||void 0===v||null===(u=v.pageAttributes)||void 0===u||u.contentType,addWaterMark(),is.current||"true"!==getIsLive()||(is.current=!0,getNextprogramData(e))},fullscreen:e=>{},resize:e=>{if(window.jwplayer().getFullscreen()){let e=document.getElementById("frwdIcon");e&&e.classList.add("fullScreen_t")}else{let e=document.getElementById("frwdIcon");e&&e.classList.remove("fullScreen_t")}},visualQuality:e=>{sendPlayerAnalytics("bitRateEvent",e)},pause:e=>{var t;tB.current=!1,(null===(t=eQ.current)||void 0===t?void 0:t.isVideoPaused)||((0,N.qP)("player_actions",analyticsData("pause")),sendPlayerAnalytics("pauseEvent",e),eQ.current.isVideoPaused=!0,tS.current=!0),tG&&showPreview(!1)},buffer:e=>{var t;sendPlayerAnalytics("bufferEvent",e),eQ.current.isVideoBuffering=!0,tG&&showPreview(!1),(null===(t=tn.current.pageAttributes)||void 0===t?void 0:t.isLive)==="true"&&""!=ie&&ld(!1)},playbackRateChanged:e=>{sendPlayerAnalytics("bufferEvent",e)},audioTracks:e=>{let t=window.jwplayer&&window.jwplayer((null==eK?void 0:eK.current)||"player_div"),l=[];l=t.getAudioTracks();let i=t.getCurrentAudioTrack(),o="";if(l.length>0){if(i>=0){var n;o=null===(n=l[i])||void 0===n?void 0:n.name}else{let e=l.find(e=>e.defaulttrack)||l[0];o=null==e?void 0:e.name}}(0,c.wz)("audiolan"),(0,c.LS)("audiolan",o),sendPlayerAnalytics("audioTracks",e)},audioTrackChanged:e=>{var t,l;void 0===d&&(d=null===(l=e.tracks)||void 0===l?void 0:l.reduce((e,t)=>(!0===t.defaulttrack&&(e=t.name),e),"")),localStorage.setItem("audio track",e.tracks[e.currentTrack].name),(0,c.wz)("audiolan"),(0,c.LS)("audiolan",null==e?void 0:null===(t=e.tracks[null==e?void 0:e.currentTrack])||void 0===t?void 0:t.name),languageRememberance(e.tracks,!1),sendPlayerAnalytics("audioTrackChanged",e)},seek:e=>{tB.current=!1,sendPlayerAnalytics("seek",e),e.position>e.offset&&(tX(e=>({...e,displayStatus:!1})),lo(!1));let t=analyticsData();t.seekStart=Math.floor(e.position),t.seekEnd=Math.floor(e.offset),e.position-e.offset>=9&&e.position-e.offset<=11&&(0,N.qP)("player_actions",analyticsData("rewind"))},seeked:e=>{},complete:e=>{var t,l,i,o,n,a,r,d,s;tg.current=0,tS.current=!0,sendPlayerAnalytics("completeEvent",e);let u=window.jwplayer().getDuration();(-1===u||u===1/0)&&(u=0),(0,N.qP)("video_stream",analyticsData("ended",{completed:"100",duration:Math.floor(u),duration_viewed:Math.floor(u)})),la(!0);let v=null==t4?void 0:null===(l=t4.data)||void 0===l?void 0:null===(t=l.response)||void 0===t?void 0:t.data;(null==v?void 0:v.length)&&!tG&&setTimeout(()=>{nextEpisode()},500),tE&&resetAdSpot();let c=null==tn?void 0:null===(o=tn.current)||void 0===o?void 0:null===(i=o.streamStatus)||void 0===i?void 0:i.previewStreamStatus;if(c){tW(!1),eX(!0);try{(null===(d=window)||void 0===d?void 0:null===(r=d.jwplayer())||void 0===r?void 0:r.getFullscreen())&&(null===(s=window.jwplayer())||void 0===s||s.setFullscreen(!1))}catch(e){console.log(e)}}!ez.asPath.includes("channels")||(null===(a=tn.current)||void 0===a?void 0:null===(n=a.analyticsInfo)||void 0===n?void 0:n.contentType)==="live"||(null==tY?void 0:tY.displayStatus)||gotoLivePage()},error:e=>{var t,l,i,o,n;if(lb(!0),sendPlayerAnalytics("errorEvent",e),tm.current&&(tg.current=0),++tg.current,tg.current<=tf.current&&(null==ex?void 0:null===(l=ex.info)||void 0===l?void 0:null===(t=l.attributes)||void 0===t?void 0:t.isLive)&&(null==ex?void 0:null===(o=ex.info)||void 0===o?void 0:null===(i=o.attributes)||void 0===i?void 0:i.isLive)=="true")document.querySelector(".videospinner").style.display="flex",document.querySelector(".jw-error-msg").style.display="none",tm.current=!1,setTimeout(()=>{try{var e,t,l,i;null===(t=window)||void 0===t||null===(e=t.jwplayer())||void 0===e||e.load(tI.current),null===(i=window)||void 0===i||null===(l=i.jwplayer())||void 0===l||l.play()}catch(e){console.error("Failed to retry playback:",e)}},5e3);else{tg.current=0;let e=document.getElementsByClassName("jw-controls-backdrop")[0],t=document.getElementById("playerButtons");t&&(null==e||e.insertBefore(t,e.firstChild),P.tq&&(t5(!0),t0(!0),null==e||e.insertBefore(e,e.firstChild))),tn.current&&(null===(n=tn.current)||void 0===n?void 0:n.sessionInfo)&&endActiveStream(tn.current.sessionInfo.streamPollKey)}},setupError:e=>{var t;lb(!0),eT(),tn.current&&(null===(t=tn.current)||void 0===t?void 0:t.sessionInfo)&&endActiveStream(tn.current.sessionInfo.streamPollKey)},cast:e=>{if(ly||((0,N.qP)("cast",{currentScreen:"player"}),l_(!0)),null==e?void 0:e.active){let e=document.querySelectorAll(".jw-display-icon-container .jw-icon-rewind");window.innerWidth>
1480&&e&&e.forEach(e=>{e.style.display="none"});let t=document.getElementById("frwdIcon");t&&window.innerWidth>=480&&(t.style.display="none")}},levelsChanged:e=>{},time:e=>{var t,l,i,o,n,a,r,d,s,v,c,_,m,g;if(!tB.current)return;let w="number"==typeof e.position?e.position:(null===(i=(o=window).jwplayer)||void 0===i?void 0:null===(l=i.call(o))||void 0===l?void 0:null===(t=l.getPosition)||void 0===t?void 0:t.call(l))||0,h="number"==typeof e.duration?e.duration:(null===(r=(d=window).jwplayer)||void 0===r?void 0:null===(a=r.call(d))||void 0===a?void 0:null===(n=a.getDuration)||void 0===n?void 0:n.call(a))||NaN;eQ.current.lastPosition=w;let b=(null==tn?void 0:null===(v=tn.current)||void 0===v?void 0:null===(s=v.streamStatus)||void 0===s?void 0:s.previewStreamStatus)&&(null==ex?void 0:null===(_=ex.info)||void 0===_?void 0:null===(c=_.attributes)||void 0===c?void 0:c.playerType)==="preview";w>0&&w>60&&Number.isFinite(h)&&!b?tF(!0):w<0&&w<-50?tK(!0):(tF(!1),tK(!1)),nextVideoCheck(h,w);let S=Math.round(e.currentTime||w||0),P=tn.current||{pageAttributes:{}};P.pageAttributes.introStartTime<=S&&S<P.pageAttributes.introEndTime?tZ(!0):(e.currentTime,P.pageAttributes.introEndTime,tZ(!1));let I=Date.now();if(I-l9>900&&(l9=I,nextVideoCheck(h,w)),Math.round(e.currentTime)>0&&4>=Math.round(e.currentTime)){le(!0);let e=document.getElementById("fullscreentitlediv");e&&e.remove()}else{le(!1);let e=document.getElementById("fullscreentitlediv");e||null===(g=document.getElementById("player_div"))||void 0===g||g.appendChild(u)}tE&&(null==p?void 0:null===(m=p[1])||void 0===m?void 0:m.length)&&manageMidRole(y),b&&(f()(".jw-display-controls .jw-display-icon-rewind").css("visibility","hidden"),f()(".jw-controlbar .jw-icon-rewind").hide(),f()(".jw-icon-cast").css("visibility","hidden"),f()("#frwdIcon").css("visibility","hidden"),tW(!0),document.querySelectorAll(".jwplayer").forEach(e=>{e.addEventListener("keydown",e=>e.stopImmediatePropagation(),!0)})),"true"===getIsLive()&&programChange(e)},firstFrame:()=>{var e,t;if(tB.current=!0,attachPlayerButtons(),sendPlayerAnalytics(),(null===(e=w.e.settings)||void 0===e?void 0:e.ccToggleType)&&(null===(t=w.e.settings)||void 0===t?void 0:t.ccToggleType)!=="none"){let e=(0,c.rV)("closedCaption");e?setCaptions():window.jwplayer().setCurrentCaptions(0)}},beforePlay:()=>{},mute:e=>{(null==e?void 0:e.mute)?(0,N.qP)("player_actions",analyticsData("mute")):(0,N.qP)("player_actions",analyticsData("unmute"))},volume:e=>{},adStarted:e=>{var t;adEvents("adStarted",e.adposition),(null===(t=tn.current.pageAttributes)||void 0===t?void 0:t.isLive)==="true"&&""!=ie&&ld(!1)},adSkipped:e=>{var t;adEvents("adSkipped",e.adposition),(null===(t=tn.current.pageAttributes)||void 0===t?void 0:t.isLive)==="true"&&""!=ie&&ld(!0)},adPlay:e=>{adEvents("adStarted",e.adposition)},adRequest:e=>{var t;(null===(t=tn.current.pageAttributes)||void 0===t?void 0:t.isLive)==="true"&&""!=ie&&ld(!1)},adLoaded:e=>{var t;(null===(t=tn.current.pageAttributes)||void 0===t?void 0:t.isLive)==="true"&&""!=ie&&ld(!1)},adImpression:e=>{},adBreakStart:e=>{var t;(null===(t=tn.current.pageAttributes)||void 0===t?void 0:t.isLive)==="true"&&""!=ie&&ld(!1)},adBreakEnd:e=>{var t;(null===(t=tn.current.pageAttributes)||void 0===t?void 0:t.isLive)==="true"&&""!=ie&&ld(!1)},adPause:e=>{var t;(null===(t=tn.current.pageAttributes)||void 0===t?void 0:t.isLive)==="true"&&""!=ie&&ld(!1)},adError:e=>{var t;(null===(t=tn.current.pageAttributes)||void 0===t?void 0:t.isLive)==="true"&&""!=ie&&ld(!1)},adClick:e=>{},adComplete:e=>{var t;adEvents("adComplete",e.adposition),(null===(t=tn.current.pageAttributes)||void 0===t?void 0:t.isLive)==="true"&&""!=ie&&ld(!1)},autostartNotAllowed:e=>{if(!tu){var t;tv(!0);let e=null===(t=window)||void 0===t?void 0:t.jwplayer();e&&(e.setMute(!0),e.play(!0))}},captionsList:e=>{},captionsChanged:e=>{(null==e?void 0:e.track)>=1?(0,N.qP)("player_actions",analyticsData("ccenabled")):(0,N.qP)("player_actions",analyticsData("ccdisabled"))}}};if(window.jwplayer){setTimeout(()=>{try{var e,l;window.playerSetup=null===(l=window)||void 0===l?void 0:null===(e=l.jwplayer(eK.current))||void 0===e?void 0:e.setup(t)}catch(e){}},200);let e=window.hPlayer;if(null!=e)try{e.stop()}catch(e){console.warn("Failed to stop prior hPlayer instance:",e)}}}};(0,u.useEffect)(()=>()=>{tP.current=!1,tI.current=null,tk.current=!1},[]);let getSelectedBitrate=e=>{let t=(0,c.rV)("selectedBitRate");e.map((e,l)=>
1{t==e.displayTitle&&(tw.current=e.maxBitRate)})},adjustVideoQuality=()=>{var e,t,l;let i=!!window.jwplayer()&&"function"==typeof!!window.jwplayer().getQualityLevels&&(null===(e=window.jwplayer())||void 0===e?void 0:e.getQualityLevels()),o=!1;if(tb.current=!0,tw.current){for(let e=0;e<i.length;e++)if(i[e].bitrate/1e3<=tw.current){window.jwplayer().setCurrentQuality(e),o=!0;break}!1==o&&window.jwplayer().setCurrentQuality(i.length-1)}else"function"==typeof!!(null===(t=window.jwplayer())||void 0===t?void 0:t.setCurrentQuality)&&(null===(l=window.jwplayer())||void 0===l||l.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)},attachPlayerButtons=()=>{if(!tB.current)return;let e=document.querySelector(".jw-controlbar"),t=document.getElementById("playerButtons");e&&t&&!e.contains(t)&&e.insertBefore(t,e.firstChild)},addForwardIcons=()=>{var e;let t=document.querySelector(".jw-button-container");if(!t){console.error("Element with class '.jw-button-container' not found.");return}let l=null===(e=document)||void 0===e?void 0:e.getElementById("frwdIcon");if(!l){console.error("Forward icon '#frwdIcon' not found.");return}l.style.display="block",l.style.pointerEvents="all";let i=document.querySelector(".jw-display-icon-next"),o=document.querySelector(".jw-controlbar .jw-icon-next");if(i&&(i.style.visibility="visible"),o&&(o.style.display="none"),window.innerWidth<420){let e=document.querySelector(".jw-display-icon-next .jw-icon-next");e&&e.parentNode?e.parentNode.insertBefore(l,e.nextSibling):console.warn("Mobile target '.jw-display-icon-next .jw-icon-next' not found or has no parent.")}else{let e=document.querySelector(".jw-controlbar .jw-icon-next");e&&e.parentNode?e.parentNode.insertBefore(l,e.nextSibling):console.warn("Desktop target '.jw-controlbar .jw-icon-next' not found or has no parent.")}},concurrenceStreamRequest=()=>{var e;let t=tn.current;if((null==t?void 0:t.sessionInfo.streamPollKey)==void 0)return;let l=new FormData;l.append("poll_key",null==t?void 0:null===(e=t.sessionInfo)||void 0===e?void 0:e.streamPollKey);try{e8({url:"https://prod-api.yupptv.com/service/api/v1/stream/poll",apiData:l})}catch(e){console.log(e)}},endActiveStream=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,l=new FormData;l.append("poll_key",e);try{await e7({url:"https://prod-api.yupptv.com/service/api/v1/stream/session/end",apiData:l}),lP(null),(0,c.wz)("streamPollKey")}catch(l){if(t>0)return console.warn("Failed to end poll, retrying...",t),await new Promise(e=>setTimeout(e,1e3)),endActiveStream(e,t-1);console.error("Failed to end poll after retrying.",l)}};(0,u.useEffect)(()=>{let e="true"===(0,c.rV)("isloggedin");e&&(!ej||!ej.userId)&&lS&&endActiveStream(lS).then(()=>{lP(null),(0,c.wz)("streamPollKey")}).catch(e=>{console.warn("Signout session end failed:",e),lP(null)})},[null==ej?void 0:ej.userId,lS]),(0,u.useEffect)(()=>{if(!0==td&&"true"!=eF.info.attributes.isLive){let e=new Set,t=setInterval(()=>{var t,l,i,o;let n=null===(l=window)||void 0===l?void 0:null===(t=l.jwplayer())||void 0===t?void 0:t.getPosition(),a=null===(o=window)||void 0===o?void 0:null===(i=o.jwplayer())||void 0===i?void 0:i.getDuration();if(a>0){let t=Math.round(n/a*100);[25,50,75,100].includes(t)&&!e.has(t)&&[25,50,75,100].map(l=>{l==t&&((0,N.qP)("watched",analyticsData({eventName:"watched"})),e.add(t))})}},50);return()=>{clearInterval(t)}}},[td]);let playEvent=()=>{ts(!0);let e=tn.current;if(null==e?void 0:e.sessionInfo){var t;e4.current=setInterval(()=>{try{concurrenceStreamRequest()}catch(e){console.log(e)}},null==e?void 0:null===(t=e.sessionInfo)||void 0===t?void 0:t.pollIntervalInMillis)}!0==ti.current&&!1==to.current?(ti.current=!1,resumePlayBack()):ti.current=!1,!0==to.current&&(to.current=!1)},resumePlayBack=()=>{let e=tn.current;e.streamStatus.seekPositionInMillis>0&&window.jwplayer().seek(e.streamStatus.seekPositionInMillis/1e3)},adEvents=(e,t)=>{let l;switch(l="pre"==t?"preRoll":"post"==t?"postRoll":"midRoll",e){case"adStarted":sendPlayerAnalytics("adStartEvent",l);break;case"adComplete":sendPlayerAnalytics("adCompleteEvent",l);break;case"adSkipped":sendPlayerAnalytics("adSkipEvent",l)}},filterDeviceSupportedFeatures=e=>{let t=l6.indexOf(e);return -1!==t?l6.slice(t).join(","):""},getStream=async e=>{var t,l,i,o,n,a,r,d,u,v,p,y,_,m,f,g;let w=null!==(d=localStorage.getItem("maintab"))&&void 0!==d?d:"",h=w.includes("fast-tv")||(null==eD?void 0:null===(t=eD.ipInfo)||void 0===t?void 0:t.countryCode)==="IN"?null==eN?void 0:null===(l=eN.configs)||void 0===l?void 0:l.freestreamSourceValue:null==eN?void 0:null===(i=eN.configs)||void 0===i?void 0:i.premiumtvSourceValue,b=lS||(0,c.rV)("streamPollKey")||(null==tn?void 0:null===(n=tn.current)||void 0===n?void 0:null===(o=n.sessionInfo)||void 0===o?void 0:o.streamPollKey);if(b)try{await endActiveStream(b),lP(null),(0,c.wz)("streamPollKey")}catch(e){console.warn("Failed to end previous stream session:",e),lP(null),(0,c.wz)("streamPollKey")}let S="https://prod-api.yupptv.com",P=(0,s.cd)(),I=filterDeviceSupportedFeatures(P),k={path:(null==ex?void 0:ex.streamStatus.streamType)=="preview"?"".concat(ek,"&stream_type=preview"):ek,device_supported_features:I};if(e&&(k.pin=e),(null==eC?void 0:null===(r=eC.encryptApisList)||void 0===r?void 0:null===(a=r.fields)||void 0===a?void 0:a.stream)==="true"){(null==ex?void 0:null===(v=ex.info)||void 0===v?void 0:null===(u=v.attributes)||void 0===u?void 0:u.playerType)=="trailer"&&(k.stream_type="trailer")||(null==ex?void 0:null===(y=ex.info)||void 0===y?void 0:null===(p=y.attributes)||void 0===p?void 0:p.playerType)=="preview"&&(k.stream_type="preview");let e={data:(0,s.q6)(JSON.stringify(k)),metadata:(0,s.q6)(JSON.stringify({request:"page/stream"}))};S+="/service/api/v1/send";try{eU({url:S,apiData:e})}catch(e){}}else{(null==ex?void 0:null===(m=ex.info)||void 0===m?void 0:null===(_=m.attributes)||void 0===_?void 0:_.playerType)=="trailer"&&(k.stream_type="trailer")||(null==ex?void 0:null===(g=ex.info)||void 0===g?void 0:null===(f=g.attributes)||void 0===f?void 0:f.playerType)=="preview"&&(k.stream_type="preview"),k.sourceFrom=h,S+="/service/api/v1/page/stream?"+(0,s.Yo)(k);try{eB(S)}catch(e){}}},startOver=()=>{try{window.jwplayer().seek(0)}catch(e){console.log(e)}},goToLastChannel=()=>{ez.push(ie)},stopPlayer=()=>{var e;lu(0),tG&&(clearInterval(eI),null===(e=window)||void 0===e||e.jwplayer(eK.current).stop())};(0,u.useEffect)(()=>{let e=tn.current;if(e){var t,l,i,o,n;let a=(null==e?void 0:null===(t=e.streamStatus)||void 0===t?void 0:t.totalDurationInMillis)/1e3;lu(parseInt((null==e?void 0:null===(i=e.streams[0])||void 0===i?void 0:null===(l=i.params)||void 0===l?void 0:l.duration)<a?null==e?void 0:null===(n=e.streams[0])||void 0===n?void 0:null===(o=n.params)||void 0===o?void 0:o.duration:a))}},[eO]),(0,u.useEffect)(()=>{let e=tn.current;if(e){var t,l,i,o,n;let a=(null==e?void 0:null===(t=e.streamStatus)||void 0===t?void 0:t.totalDurationInMillis)/1e3;lu(parseInt((null==e?void 0:null===(i=e.streams[0])||void 0===i?void 0:null===(l=i.params)||void 0===l?void 0:l.duration)<a?null==e?void 0:null===(n=e.streams[0])||void 0===n?void 0:null===(o=n.params)||void 0===o?void 0:o.duration:a))}},[eq]);let exitFullScreen=()=>{try{var e,t,l;(null===(t=window)||void 0===t?void 0:null===(e=t.jwplayer())||void 0===e?void 0:e.getFullscreen())&&(null===(l=window.jwplayer())||void 0===l||l.setFullscreen(!1))}catch(e){console.log(e)}},removePlayerIcons=()=>{document.querySelectorAll(".jw-display-icon-container.jw-display-icon-display.jw-reset")&&document.querySelectorAll(".jw-display-icon-container.jw-display-icon-display.jw-reset").forEach(e
1=>e.style.visibility="hidden")},showPreview=e=>{e?eI=setInterval(()=>{lu(e=>(0>=Math.floor(e)&&(stopPlayer(),tW(!1),tQ(!1),exitFullScreen(),removePlayerIcons()),e-1))},1e3):clearInterval(eI)},nextEpisode=()=>{(0,c.LS)("autoplay","true"),tg.current=0,tY.nextVideoTargetPath&&ez.push(tY.nextVideoTargetPath)},playerBackButton=()=>{var e,t,l;try{let t=null===(e=window)||void 0===e?void 0:e.jwplayer(),l=null==t?void 0:t.getDuration(),i=null==t?void 0:t.getPosition();if((-1===l||l===1/0)&&(l=0),l>0){let e=i/l*100;(0,N.qP)("video_stream",analyticsData("ended",{completed:"".concat(Math.floor(e)),duration:Math.floor(l),duration_viewed:Math.floor(i)}))}}catch(e){}let i=localStorage.getItem("playerExitOnBack");!0==i||"true"==i?(ez.replace("/"),localStorage.removeItem("playerExitOnBack")):(null===(l=document)||void 0===l?void 0:null===(t=l.referrer)||void 0===t?void 0:t.includes("yupptv"))?(localStorage.removeItem("playerExitOnBack"),ez.back()):ez.replace("/")},ctPlayerEnd=()=>{try{var e;let t=null===(e=window)||void 0===e?void 0:e.jwplayer(),l=null==t?void 0:t.getDuration(),i=null==t?void 0:t.getPosition();if((-1===l||l===1/0)&&(l=0),l>0){let e=i/l*100;(0,N.qP)("video_stream",analyticsData("ended",{completed:"".concat(Math.floor(e)),duration:Math.floor(l),duration_viewed:Math.floor(i)}))}}catch(e){}};(0,u.useEffect)(()=>(ez.beforePopState(()=>{let e=sessionStorage.getItem("playerExitOnBack");return"true"!==e||(sessionStorage.removeItem("playerExitOnBack"),ez.replace("/"),!1)}),()=>{ez.beforePopState(()=>!0)}),[ez]),(0,u.useEffect)(()=>{let e="true"===(0,c.rV)("autoplay");e&&(0,c.wz)("autoplay"),lk(e)},[]);let handleonbackbutton=()=>{!0==(0,c.rV)("popupcomponent")?(ez.push("/"),(0,c.wz)("popupcomponent")):ez.back()},processCaptions=e=>{var t=[];if(!e||!e.ccList)return[];for(var l=0;l<e.ccList.length;l++){let i={file:(0,d.ZY)(e.ccList[l].filePath),label:e.ccList[l].language,kind:"captions"};t.push(i)}return t},getAdDada=()=>{var e,t,l,i,o,n,a,r,d,u,v,c,p,y,_,m,f,g,w,h;let b=[],S={};for(let t of null==eF?void 0:null===(e=eF.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===(r=eF.info)||void 0===r?void 0:null===(a=r.attributes)||void 0===a?void 0:a.contentId)&&(t.url=t.url.replace("{{CONTENT_ID}}",eF.info.attributes.contentId)),eF.title&&(t.url=t.url.replace("{{CONTENT_TITLE}}",encodeURI(eF.title))),(null==eH?void 0:null===(u=eH.data)||void 0===u?void 0:null===(d=u.ipInfo)||void 0===d?void 0:d.trueIP)&&(t.url=t.url.replace("{{IP}}",null===(v=eH.data)||void 0===v?void 0:v.ipInfo.trueIP)),(null==eH?void 0:null===(p=eH.data)||void 0===p?void 0:null===(c=p.ipInfo)||void 0===c?void 0:c.latitude)&&(t.url=t.url.replace("{{LAT}}",null===(y=eH.data)||void 0===y?void 0:y.ipInfo.latitude)),(null==eH?void 0:null===(m=eH.data)||void 0===m?void 0:null===(_=m.ipInfo)||void 0===_?void 0:_.longitude)&&(t.url=t.url.replace("{{LON}}",null===(f=eH.data)||void 0===f?void 0:f.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)),("preRollUrl"==t.urlType||"preUrl"==t.urlType)&&void 0!=t.url)b.push({tag:t.url.replace("{{CACHEBUSTER}}",new Date().getTime()+(0,s.vJ)()).replace("{{CORRELATOR}}",new Date().getTime()+(0,s.vJ)()),offset:"pre"});else if(("postRollUrl"==t.urlType||"postUrl"==t.urlType)&&void 0!=t.url&&"true"!=eF.info.attributes.isLive)b.push({tag:t.url.replace("{{CACHEBUSTER}}",new Date().getTime()+(0,s.vJ)()).replace("{{CORRELATOR}}",new Date().getTime()+(0,s.vJ)()),offset:"post"});else if(("midRollUrl"==t.urlType||"midUrl"==t.urlType)&&(null===(n=eF.info)||void 0===n?void 0:null===(o=n.attributes)||void 0===o?void 0:o.isLive)!="true"){if(null===(w=t.position)||void 0===w?void 0:null===(g=w.adplaypositions)||void 0===g?void 0:g.length)(null===(h=t.position)||void 0===h?void 0:h.adplaypositions.split(",")).forEach(e=>{e=Math.round(parseInt(e.trim())),b.push({tag:t.url.replace("{{CACHEBUSTER}}",new Date().getTime()+(0,s.vJ)()).replace("{{CORRELATOR}}",new Date().getTime()+(0,s.vJ)()),offset:e})});else if(t.position&&(t.position.interval||t.position.offset)&&(t.position.offset?b.push({tag:t.url.replace("{{CACHEBUSTER}}",new Date().getTime()+(0,s.vJ)()).replace("{{CORRELATOR}}",new Date().getTime()+(0,s.vJ)()),offset:parseInt(t.position.offset)}):t.position.offset=0,t.position.interval)){let e=parseInt(t.position.offset);if(eF.streamStatus&&eF.streamStatus.totalDurationInMillis){let l=Math.round(Math.abs(eF.streamStatus.totalDurationInMillis/1e3));for(e+=parseInt(t.position.interval),t.position.maxCount=t.position.maxCount||10;l>=e&&b.length<t.position.maxCount;)b.push({tag:t.url.replace("{{CACHEBUSTER}}",new Date().getTime()+(0,s.vJ)()).replace("{{CORRELATOR}}",new Date().getTime()+(0,s.vJ)()),offset:e}),e+=parseInt(t.position.interval)}}}let P=eF.adUrlResponse.adUrlTypes.filter(e=>"postUrl"==e.urlType||"postRollUrl"==e.urlType||"midRollUrl"==e.urlType||"midUrl"==e.urlType||"preUrl"==e.urlType||"preRollUrl"==e.urlType);return S.client=P&&P[0]&&P[0].attributes&&P[0].attributes.adTag?P[0].attributes.adTag:"googima",S.preloadAds=!0,S.schedule=b,(null==tn?void 0:null===(i=tn.current)||void 0===i?void 0:null===(l=i.streams[0])||void 0===l?void 0:null===(t=l.params)||void 0===t?void 0:t.daiAssetKey)&&(S.client="dai"),S.totalAdLength=0,S},macroReplace=e=>{if(void 0!=e){var t,l,i,o,n,a,r,d,u,v,c;e=e.replace("{{cb}}",new Date().getTime()).replace("{{ua}}",window.navigator.userAgent).replace("{{did}}",(0,h.g$)()).replace("{{ENCODED_URL}}",encodeURI(window.location.href)).replace("{{USER_AGENT}}",window.navigator.userAgent).replace("{{CACHEBUSTER}}",new Date().getTime()+(0,s.vJ)()).replace("{{CORRELATOR}}",new Date().getTime()+(0,s.vJ)()),(null==eH?void 0:null===(l=eH.data)||void 0===l?void 0:null===(t=l.ipInfo)||void 0===t?void 0:t.trueIP)&&(e=e.replace("{{IP}}",null===(i=eH.data)||void 0===i?void 0:i.ipInfo.trueIP)),(null==eH?void 0:null===(n=eH.data)||void 0===n?void 0:null===(o=n.ipInfo)||void 0===o?void 0:o.latitude)&&(e=e.replace("{{LAT}}",null===(a=eH.data)||void 0===a?void 0:a.ipInfo.latitude)),(null==eH?void 0:null===(d=eH.data)||void 0===d?void 0:null===(r=d.ipInfo)||void 0===r?void 0:r.longitude)&&(e=e.replace("{{LON}}",null===(u=eH.data)||void 0===u?void 0:u.ipInfo.longitude)),(null===(c=eF.info)||void 0===c?void 0:null===(v=c.attributes)||void 0===v?void 0:v.contentId)&&(e=e.replace("{{CONTENT_ID}}",eF.info.attributes.contentId)),eF.title&&(e=e.replace("{{CONTENT_TITLE}}",encodeURI(eF.title)))}return e},initStreamData=e=>{var t,l,i,o,n,a,r,d,s,u,v,c,p,y,_,m,f,g,w,h,b,S,P,I,k;if(!e)return;let T=[];
1if((null==ty?void 0:ty.isActive)&&t_({}),((null==e?void 0:null===(t=e.response)||void 0===t?void 0:t.pageAttributes.pgRatingTitle)||(null==e?void 0:null===(l=e.response)||void 0===l?void 0:l.pageAttributes.pgRatingSubtitle))&&t9({pgRatingTitle:null==e?void 0:null===(c=e.response)||void 0===c?void 0:c.pageAttributes.pgRatingTitle,pgRatingSubtitle:null==e?void 0:null===(p=e.response)||void 0===p?void 0:p.pageAttributes.pgRatingSubtitle}),null==e?void 0:null===(o=e.response)||void 0===o?void 0:null===(i=o.streams)||void 0===i?void 0:i.length){lC(null==e?void 0:e.response),setPlayerAnalyticsMetaData(null==eH?void 0:eH.data,null==e?void 0:e.response,ex,eE,ej,lI);let t=(null==e?void 0:null===(y=e.response)||void 0===y?void 0:y.streams).slice().sort((e,t)=>{var l,i;let o=(null==e?void 0:null===(l=e.params)||void 0===l?void 0:l.quality)||"",n=(null==t?void 0:null===(i=t.params)||void 0===i?void 0:i.quality)||"",a=l6.indexOf(o),r=l6.indexOf(n),d=-1===a?l6.length:a,s=-1===r?l6.length:r;return d-s}),l=t&&(null==t?void 0:t.length)>0?t:null==e?void 0:null===(_=e.response)||void 0===_?void 0:_.streams;for(let e of l)if("fairplay"==e.streamType&&"manorama_max"==e.attributes.partnerCode)e.keys.licenseKey=e.keys.licenseKey.replace("http:","https:"),T.push({file:macroReplace(e.url),drm:{fairplay:{certificateUrl:(null===(m=e.keys)||void 0===m?void 0:m.certificate)?null===(f=e.keys)||void 0===f?void 0:f.certificate:"/assets/fairplay.cer",processSpcUrl:e.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"==e.streamType&&"manorama_max"!=e.attributes.partnerCode)e.keys.licenseKey=e.keys.licenseKey.replace("http:","https:"),T.push({file:macroReplace(e.url),drm:{fairplay:{certificateUrl:(null===(g=e.keys)||void 0===g?void 0:g.certificate)?null===(w=e.keys)||void 0===w?void 0:w.certificate:"/assets/fairplay.cer",processSpcUrl:e.keys.licenseKey,licenseRequestHeaders:[{name:"Content-type",value:"application/octet-stream"}]}}});else if("widevine"==e.streamType)e.keys.licenseKey=e.keys.licenseKey.replace("http:","https:"),lp.current=!0,T.push({file:macroReplace(e.url),drm:{widevine:{url:e.keys.licenseKey}}});else if("playready"==e.streamType)e.keys.licenseKey=e.keys.licenseKey.replace("http:","https:"),T.push({file:macroReplace(e.url),drm:{playready:{url:e.keys.licenseKey}}});else if(0==e.keys.licenseKey.length&&e.url.includes(".mpd"))T.push({file:macroReplace(e.url)});else{lp.current=!1;let t={file:macroReplace(e.url),default:!1,label:"0",preload:"metadata",sParams:e.params,subType:e.streamType,onXhrOpen:function(t,l){var i,o;t.setRequestHeader("sessionid",null===(i=e.params)||void 0===i?void 0:i.sessionid),t.setRequestHeader("token",null===(o=e.params)||void 0===o?void 0:o.token)}};(null===(h=e.params)||void 0===h?void 0:h.sessionid)||(null===(b=e.params)||void 0===b?void 0:b.token)||delete t.onXhrOpen,t.type="hls","etvwin"===eF.info.attributes.networkName&&"true"===eF.info.attributes.isLive&&(t.withCredentials=!0),T.push(t)}}let A=T.filter(e=>"hls"==e.type);if(A.length>0){T=T.filter(e=>"hls"!=e.type);let e=A.filter(e=>"akamai"!=e.subType),t=A.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===(S=e[0].sParams)||void 0===S?void 0:S.token),delete e[0].sParams),T.push(e[0])):T.push(t[0])}let x=[{sources:T,tracks:[...(null==e?void 0:null===(a=e.response)||void 0===a?void 0:null===(n=a.streams[0])||void 0===n?void 0:n.closeCaptions)?processCaptions(e.response.streams[0].closeCaptions):[],...(null==e?void 0:null===(d=e.response)||void 0===d?void 0:null===(r=d.streams[0])||void 0===r?void 0:r.thumbnailSeekPreview)?[{file:e.response.streams[0].thumbnailSeekPreview,kind:"thumbnails"}]:[]]}];if(null==e?void 0:null===(v=e.response)||void 0===v?void 0:null===(u=v.streams[0])||void 0===u?void 0:null===(s=u.params)||void 0===s?void 0:s.daiAssetKey){let t={assetKey:null==e?void 0:null===(k=e.response)||void 0===k?void 0:null===(I=k.streams[0])||void 0===I?void 0:null===(P=I.params)||void 0===P?void 0:P.daiAssetKey};x[0].daiSetting=t}startPlay(x)},forwardClick=()=>{var e,t;let l=null===(e=window)||void 0===e?void 0:e.jwplayer().getPosition();null===(t=window)||void 0===t||t.jwplayer().seek(l+10),(0,N.qP)("player_actions",analyticsData("forward"))},skipIntro=()=>{var e,t;let l=tn.current;null===(t=window)||void 0===t||t.jwplayer().seek(parseInt(null==l?void 0:null===(e=l.pageAttributes)||void 0===e?void 0:e.introEndTime)),tZ(!1)},btnHandler=(e,t)=>{var l,i,o,n,a,r,d,s,u,c,p;if(eL({type:v.Nw.t3,payload:ez.asPath}),null==e?void 0:null===(l=e.properties)||void 0===l?void 0:l.showPopUp)tp({isActive:null==e?void 0:null===(i=e.properties)||void 0===i?void 0:i.showPopUp,topImg:null==e?void 0:null===(o=e.properties)||void 0===o?void 0:o.showPopUp,topImgValue:"http://mobond.yuppcdn.net/cf1/static/slt/images/payment-failure.svg",title1:null==e?void 0:null===(n=e.properties)||void 0===n?void 0:n.title,title2:null==e?void 0:null===(a=e.properties)||void 0===a?void 0:a.subtitle,yesButtonTarget1:handleClose,yesButton1:"Cancel",
1yesButtonType:"primary",close:!0,closeTarget:handleClose});else if("subscribe"===e.elementSubtype){let e=null===(r=ex.info.attributes)||void 0===r?void 0:r.language,t=null==tn?void 0:null===(s=tn.current)||void 0===s?void 0:null===(d=s.pageAttributes)||void 0===d?void 0:d.language,l=null!==(u=null==e?void 0:e.toLowerCase())&&void 0!==u?u:null==t?void 0:t.toLowerCase();ez.push(l?"".concat(l,"packages"):null)}else if("verify_email"===e.target)l7?tr({from:"player",verification:"email",context:"verify_email",data:{title1:"".concat(I.Dw[eV].Otp_sent_to_your_email," ").concat(ej.email.slice(0,5),"******").concat(ej.email.substring(8)),mobile:ej.phoneNumber,email:ej.email}}):ez.push("/signin");else if("rent"===e.target){if((null===w.e||void 0===w.e?void 0:null===(p=w.e.packageSettings)||void 0===p?void 0:null===(c=p.paymentGateway)||void 0===c?void 0:c.typeOfPayment)=="internal"){let e=ez.asPath.replace("/",""),t=new URLSearchParams({path:e,package_type:2,skip_package_content:!0}).toString(),l="".concat("https://prod-api.yupptv.com").concat(W.env.packageURL,"packages/info/for/content?").concat(t);lz(l)}else eL({type:v.Nw.t3,payload:ez.asPath}),ez.push({pathname:"allpackages",query:{_rent:ez.asPath.slice(1)}})}else if("rent"===e.target){let e=ez.asPath.replace("/",""),t=new URLSearchParams({path:e,package_type:2,skip_package_content:!0}).toString(),l="".concat("https://prod-api.yupptv.com").concat(W.env.packageURL,"packages/info/for/content?").concat(t);lz(l)}else if("verify_email"===e.target)l7?tr({from:"player",verification:"email",context:"verify_email",data:{title1:"".concat(I.Dw[eV].Otp_sent_to_your_email," ").concat(ej.email.slice(0,5),"******").concat(ej.email.substring(8)),mobile:ej.phoneNumber,email:ej.email}}):ez.push("/signin");else{{let t=window.self!==window.top,l=ez.asPath.includes("/embed/");if(t&&l){let t=new URLSearchParams(window.location.search),l=t.get("parentOrigin");if(!l&&document.referrer)try{l=new URL(document.referrer).origin}catch(e){}l||(l=window.location.origin),window.open(l+"/"+(null==e?void 0:e.target),"_top");return}}ez.push("/"+(null==e?void 0:e.target))}},handleClose=()=>{tp({})},jioConfig=()=>{let e=sessionStorage.getItem("isInternalNaviagtion")||!1;JioAds.setConfiguration({logLevel:"debug",initialUnMute:e}),initJioAds()},checkJioAds=()=>{var e;let t=[],l=[];if(!tE)return{adSpots:t,cuepoints:l};let{adUrlResponse:i}=ex;return i&&(null==i?void 0:i.adUrlTypes)&&(null==i?void 0:null===(e=i.adUrlTypes)||void 0===e?void 0:e.length)!==0?(i.adUrlTypes.forEach(e=>{var i,o;(null===(i=e.attributes)||void 0===i?void 0:i.adTag)==="jio"&&"preUrl"===e.urlType?(tC(!0),t[0]=e.url):(null===(o=e.attributes)||void 0===o?void 0:o.adTag)==="jio"&&"midUrl"===e.urlType&&(tC(!0),t[1]=e.url,l=manageCuePoints(e.position))}),tD(t),{adSpots:t,cuepoints:l}):(tC(!1),[])},manageCuePoints=e=>{var t;let l=[];if(!(null==ex?void 0:null===(t=ex.streamStatus)||void 0===t?void 0:t.totalDurationInMillis))return l;let i=Math.round(Math.abs(ex.streamStatus.totalDurationInMillis/1e3)),o=e.offset?parseInt(e.offset):0;if(e.interval)for(;i>=o;)l.push({begin:o,cueType:"custom",text:""}),o+=parseInt(e.interval);return tN(l),l},managePreRole=e=>{window.jwplayer().pause(),window.jwplayer().setControls(!1),f()(".jw-wrapper").hide(),tM("pre"),tC(!0);let t=!!ex.info.attributes&&"trailer"==ex.info.attributes.playerType;ex.streamStatus.seekPositionInMillis>0&&!t&&e.length>1&&e.forEach(e=>{e.begin<ex.streamStatus.seekPositionInMillis/1e3&&!e.istrigger?(e.istrigger=!0,tE&&playMidRoleAds()):e.begin<ex.streamStatus.seekPositionInMillis/1e3&&(e.istrigger=!0)})},addCuePoints=e=>{var t,l;e.length>0&&window.jwplayer()&&(null===(l=window)||void 0===l||null===(t=l.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,tE&&playMidRoleAds()):e.begin<window.jwplayer().getPosition()&&(e.istrigger=!0)})},resumeVideoPlay=()=>{tM(""),tC(!1),f()(".jw-wrapper").show(),window.jwplayer(eK.current).play(),window.jwplayer(eK.current).setControls(!0),setTimeout(()=>{window.jwplayer(eK.current).play()},1e3)},playMidRoleAds=()=>{tC(!0),window.jwplayer(eK.current).pause(),window.jwplayer(eK.current).setControls(!1),f()(".jw-wrapper").hide(),tM("mid")},initJioAds=()=>{JioAds.onAdRender=function(e){console.log("ad render"),window.jwplayer()&&window.jwplayer(eK.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,l){console.log("CB: onAdMediaEnd",e,l),resumeVideoPlay()},JioAds.onAdSkipped=function(e,t,l){console.log("CB: ad skiped",e,l),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=()=>
1{tR.forEach(e=>{e.istrigger=!1}),tN(tR)},setCaptions=()=>{var e,t;if((null===(e=w.e.settings)||void 0===e?void 0:e.ccToggleType)&&(null===(t=w.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)}},iu=(null==eN?void 0:null===(_=eN.configs)||void 0===_?void 0:_.waterMarkInfoOnPlayer)?JSON.parse(null==eN?void 0:null===(m=eN.configs)||void 0===m?void 0:m.waterMarkInfoOnPlayer).supportedContentTypes:"";(null==eN?void 0:null===(b=eN.configs)||void 0===b?void 0:b.waterMarkInfoOnPlayer)&&JSON.parse(null==eN?void 0:null===(k=eN.configs)||void 0===k?void 0:k.waterMarkInfoOnPlayer).defaultImagePath;let iv=null==tn?void 0:null===(V=tn.current)||void 0===V?void 0:null===(T=V.pageAttributes)||void 0===T?void 0:T.contentType;return(0,n.jsxs)(n.Fragment,{children:[lh?(null==eN?void 0:null===(D=eN.configs)||void 0===D?void 0:D.ishplayerenabled)=="1"&&(0,n.jsx)(H.Z,{}):"",lH&&(0,n.jsx)(E.Z,{}),t1&&(0,n.jsx)("button",{className:"".concat(t1?"".concat(G.errBack):""),onClick:()=>ez.back(),children:(0,n.jsx)("img",{src:"".concat(j.Z.jwPlayer.helpBackArrow),alt:"back"})}),!eY&&(0,n.jsxs)("div",{className:"".concat(G.player),children:[(0,n.jsx)("div",{ref:eK,id:"player_div",children:" "}),(0,n.jsxs)("div",{className:"plyr_fullscreen ".concat(G.player_buttons),id:"playerButtons",children:[l$&&tq&&(0,n.jsx)("button",{className:"".concat(G.start_over),onClick:()=>startOver(),children:I.uf[eV].Start_Over}),(null==ex?void 0:null===(M=ex.info)||void 0===M?void 0:null===(L=M.attributes)||void 0===L?void 0:L.playerType)!=="preview"&&lr&&(0,n.jsx)("button",{className:"".concat(G.start_over),onClick:()=>goToLastChannel(),children:I.uf[eV].Last_Channel}),tH&&(0,n.jsx)("button",{className:"".concat(G.start_over),onClick:()=>skipIntro(),children:I.uf[eV].Skip_intro}),l$&&tY&&(null==tY?void 0:tY.displayStatus)&&!tG&&(0,n.jsx)("button",{className:"".concat(G.next_episode),onClick:()=>nextEpisode(),children:null==ex?void 0:null===(O=ex.info)||void 0===O?void 0:null===(B=O.attributes)||void 0===B?void 0:B.nextButtonTitle}),lg&&(0,n.jsx)("div",{className:"".concat(G.startover_golive),children:(0,n.jsx)("div",{className:"".concat(G.gotolive),onClick:()=>gotoLivePage(),children:"Go live"})})]}),iu.includes(iv)&&(0,n.jsx)("div",{id:"watermark"}),!!t7&&t8&&(!!t8.pgRatingTitle||!!t8.pgRatingSubtitle)&&(0,n.jsx)("div",{id:"inside_player_data",children:(0,n.jsxs)("div",{className:" Rating ".concat(t7?"show":""),children:[(0,n.jsx)("div",{className:"rectanglePG"}),(0,n.jsx)("div",{className:"pgRatingTitle",children:t8.pgRatingTitle}),(0,n.jsx)("div",{className:"pgRatingSub",children:t8.pgRatingSubtitle})]})}),tz&&(0,C.createPortal)((0,n.jsx)("div",{id:"preview_data",className:"".concat(G.preview_timer),children:(0,n.jsxs)(n.Fragment,{children:["Preview ends in: ",(eP=ls,"".concat(Math.floor(eP/60),":").concat(eP%60<10?"0":"").concat(eP%60))," ",(0,n.jsx)("img",{src:"https://yuppstatic.akamaized.net/yupptv/yupptv_migration/web/preview_icon.png",alt:"info_icon",style:{width:"30px",height:"30px",verticalAlign:"middle",marginRight:"14px"}}),errorMsg(null==ex?void 0:null===(q=ex.info)||void 0===q?void 0:null===(U=q.attributes)||void 0===U?void 0:U.BeforePreviewPlay,"preview")]})}),document.getElementById("player_div")),(null==tn?void 0:null===(J=tn.current)||void 0===J?void 0:null===(F=J.streamStatus)||void 0===F?void 0:F.previewStreamStatus)&&ls<=0&&!tz&&(0,n.jsxs)("div",{className:"".concat(G.errorSec),children:[(null==ex?void 0:null===(Z=ex.info)||void 0===Z?void 0:null===(K=Z.attributes)||void 0===K?void 0:K.playerType)==="preview"&&(0,n.jsx)("div",{children:null==ex?void 0:null===(ee=ex.info)||void 0===ee?void 0:null===($=ee.attributes)||void 0===$?void 0:$.SignAndSignupErrorMessage}),(null==ex?void 0:null===(el=ex.info)||void 0===el?void 0:null===(et=el.attributes)||void 0===et?void 0:et.playerType)!=="preview"&&(0,n.jsx)("div",{children:null===(eo=tn.current)||void 0===eo?void 0:null===(ei=eo.streamStatus)||void 0===ei?void 0:ei.message}),(0,n.jsx)("div",{children:e$.length>0&&e$.filter(e=>"preview"!==e.elementSubtype).map(e=>(0,n.jsx)(ButtonWrapper,{button:e,btnHandler:btnHandler},e.id))})]}),li&&(0,n.jsx)("div",{className:G.nextvideothumbnail,id:"nextVideoTooltip",children:(0,n.jsx)(S(),{href:(null==t4?void 0:null===(ed=t4.data)||void 0===ed?void 0:null===(er=ed.response)||void 0===er?void 0:null===(ea=er.data[0])||void 0===ea?void 0:null===(en=ea.target)||void 0===en?void 0:en.path)||"/",children:(0,n.jsxs)("div",{className:"".concat(G.nextVideoContainer," nextVideoContainer"),children:[(0,n.jsxs)("div",{className:G.nxtLeft,children:[(0,n.jsx)("img",{alt:"video",src:(e=>{try{return e?(0,d.ZY)(e):""}catch(e){}})(null==t4?void 0:null===(ec=t4.data)||void 0===ec?void 0:null===(ev=ec.response)||void 0===ev?void 0:null===(eu=ev.data[0])||void 0===eu?void 0:null===(es=eu.display)||void 0===es?void 0:es.imageUrl),onError:e=>{e.currentTarget.onerror=null,e.currentTarget.src="https://yuppstatic.akamaized.net/yupptv/yupptv_migration/web/thumbnail_placeholders/tvshows_default.png"}}),(0,n.jsx)("div",{className:"".concat(G.overlay_nextprogarm)})]}),(0,n.jsxs)("div",{className:"".concat(G.nxtRight),children:[(0,n.jsx)("div",{className:G.playButton,children:(0,n.jsx)("span",{className:G.playButtonText,children:(0,n.jsx)("div",{className:G.loading,children:(0,n.jsx)("div",{className:G.innerShadow,children:(0,n.jsx)(A.Z,{fontSize:"large",sx:{color:x.Z.white}})})})})}
1),(0,n.jsxs)("span",{children:[(null===(ep=I.uf[eV])||void 0===ep?void 0:ep.Up_Next_In)||"Up next in"," ",lt," ",(null===(ey=I.uf[eV])||void 0===ey?void 0:ey.Sec)||"sec"]}),(0,n.jsx)("h4",{children:null==t4?void 0:null===(eg=t4.data)||void 0===eg?void 0:null===(ef=eg.response)||void 0===ef?void 0:null===(em=ef.data[0])||void 0===em?void 0:null===(e_=em.display)||void 0===e_?void 0:e_.title})]})]})})}),!eY&&!!tt&&(null==tt?void 0:tt.status)&&(0,n.jsx)("div",{className:"".concat(G.sessionClosed),children:(0,n.jsxs)("div",{className:"".concat(G.sessionClosedText),children:[(0,n.jsxs)("div",{children:[(0,n.jsxs)("h5",{children:[" ",tt.title," "]}),(0,n.jsx)("p",{children:tt.description})]}),(null==tt?void 0:tt.code)=="-4001"?(0,n.jsx)("div",{onClick:()=>ez.push("/settings"),children:(0,n.jsx)("button",{children:I.uf[eV].View_Active_Screens||"View Active Screens"})}):(0,n.jsx)("div",{onClick:()=>closePlayer(),children:(0,n.jsx)("button",{children:I.uf[eV].Close_player})})]})})]}),(0,n.jsx)("div",{id:"player-wrap-jio",children:tE&&tV.length>0&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("div",{class:G.adsStreamContainer,id:"my-instream-video-container",style:{zIndex:tE?"":"-1"}}),tE&&"pre"==tL&&(0,n.jsx)("ins",{id:"ins-unique-1","data-adspot-key":tV[0],"data-source":"www.reeldrama.com","data-container-id":"my-instream-video-container"}),tE&&"mid"==tL&&(0,n.jsx)("ins",{id:"ins-unique-2","data-adspot-key":tV[1],"data-source":"www.reeldrama.com","data-container-id":"my-instream-video-container"})]})}),!1,eY&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("button",{style:{display:ez.asPath.includes("embed")&&"none"},className:"".concat(G.playerBack," "),onClick:()=>handleonbackbutton(),children:(0,n.jsx)("img",{src:"".concat(j.Z.jwPlayer.helpBackArrow),alt:"back"})}),(0,n.jsxs)("div",{className:"".concat(G.errorSec),ref:e1,children:[(0,n.jsxs)("div",{children:[" ",e5," "]}),(0,n.jsxs)("div",{children:[" ",e3," "]}),(0,n.jsx)("div",{className:"".concat(G.errorbtns),children:e$.length>0&&e$.filter(e=>"preview"!==e.elementSubtype).map(e=>(0,n.jsx)(ButtonWrapper,{button:e,btnHandler:btnHandler},e.id))})]})]}),!(null==ej?void 0:null===(ew=ej.packages)||void 0===ew?void 0:ew.length)&&(0,n.jsxs)(n.Fragment,{children:[(0,n.jsx)("ins",{className:"0ff20918","data-key":"c0720d1dd22512dc5fb99e66c0d9f5bd","data-cp-lang":null==ex?void 0:null===(eb=ex.info)||void 0===eb?void 0:null===(eh=eb.attributes)||void 0===eh?void 0:eh.langCode}),(0,n.jsx)(z(),{src:"https://aj2031.online/00fbc63a.js",strategy:"afterInteractive"})]}),(0,n.jsx)(n.Fragment,{children:t2?(0,n.jsx)("div",{className:"".concat(G.forwardIcon),onClick:()=>forwardClick(),id:"frwdIcon",children:(0,n.jsxs)("span",{className:tz?"".concat(G.frd_icon_hide):"".concat(G.frd_icon),children:[(0,n.jsx)("img",{src:"".concat(j.Z.jwPlayer.forwardIcon),className:lv?G.fullScreen:G.default}),(0,n.jsx)("span",{className:"".concat(G.tooltip," tooltip"),children:"Forward 10 Seconds"})]})}):null}),(null==tc?void 0:tc.isActive)&&(0,n.jsx)(Q,{popupData:tc}),lq.enabled&&(0,n.jsx)(Y,{razorpayData:lq.data,activePackage:lJ,paymentCancelled:()=>{lF({enabled:!1,data:{}})}}),(null==ty?void 0:ty.isActive)&&(0,n.jsx)(X,{isParentalPopup:!0,popupData:ty,validatePincodeCallBack:getStream}),!!ta&&(0,n.jsx)(verify_otp_popup_component,{isOpen:!0,otpData:ta,returnBack:()=>tr()})]})}},19465:function(e){e.exports={primaryColor:"#f47000",whiteColor:"var(--white-color, #fff)",bodyColor:"var(--body-color, #000)",removeMarginTop:"player_removeMarginTop__tLS7B",startover_golive:"player_startover_golive__wJ5bA",playerHome:"player_playerHome__ajscI",playerFixed:"player_playerFixed__ie5YW",playerSection:"player_playerSection__xE1PM",playeroverlay:"player_playeroverlay__rGeCw",preview_timer:"player_preview_timer__YFM8z",bgImg:"player_bgImg__QlOdO",playerDesMain:"player_playerDesMain__yFZQD",title:"player_title__Gd_6X",description:"player_description__P5cAY",subtitle:"player_subtitle__CelP_",live_dot:"player_live_dot__g1PJP",cast_crew:"player_cast_crew__OTiTL",player_data:"player_player_data__jrjlS",channel_desc:"player_channel_desc__Z_UO0",headerTitle:"player_headerTitle__Pci6j",channel_logo:"player_channel_logo__xwKUX",player_desc_left:"player_player_desc_left__sAn1c",span1:"player_span1__pHEG5",pipe:"player_pipe__O9A9b",pgrating:"player_pgrating__KrORd",player_desc_right:"player_player_desc_right__CV8As",button:"player_button__dC3rI",fav_active_icon:"player_fav_active_icon__qIcRZ",mob_bookmark_text:"player_mob_bookmark_text__q7mAe",share:"player_share__FGnBG",fancy_tool_tip:"player_fancy_tool_tip__6XvwH",divider:"player_divider__tfOYZ",fav:"player_fav__DIuSL",pipe1:"player_pipe1__Fi5tu",channel_desc_
1new:"player_channel_desc_new__IMmyC",readMore:"player_readMore__olHFI",network_logo:"player_network_logo__kd2lP",playerLeft:"player_playerLeft__3myrg",back_btn:"player_back_btn__Eoc0g",playerRight:"player_playerRight__qh5GG",playerSuggestionsMain:"player_playerSuggestionsMain__ZeuSu",tabs:"player_tabs__b6_fQ",suggestionhead:"player_suggestionhead__gFdJ1",active_tab:"player_active_tab__Kuw1Z",tab_defalut:"player_tab_defalut__mBs4c",tabsData:"player_tabsData__Oo5n6",active:"player_active__e4pTq",inactive:"player_inactive__yWgNZ",content:"player_content__GmT9E",card_row:"player_card_row__cUZLw",overlay_poster_right:"player_overlay_poster_right__vOE_6",overlay_poster_left:"player_overlay_poster_left__v8cq8",badge_marker:"player_badge_marker__Tqer3",left:"player_left__16B0o",overlay_poster_mobile_grid:"player_overlay_poster_mobile_grid__yzTda",card_info:"player_card_info__la_Nf",live_marker:"player_live_marker__psu7V",subTitle:"player_subTitle__GUCvY",live_heart:"player_live_heart__8_vG5",gotolive:"player_gotolive__4KgQO",imdbcontent:"player_imdbcontent__8XIq_",player_buttons:"player_player_buttons__v0Z_D",start_over:"player_start_over__50Ypt",playerBack:"player_playerBack__P_IwW",next_episode:"player_next_episode__HigO6",errorSec:"player_errorSec__B9Vii",errorbtns:"player_errorbtns__NIrE_",premium_icon:"player_premium_icon__OYvr8",player:"player_player__6MZ_I",sessionClosed:"player_sessionClosed__u_3x4",sessionClosedText:"player_sessionClosedText__nK73n",errBack:"player_errBack__6OwRr",forwardIcon:"player_forwardIcon__Ts3Qc",tooltip:"player_tooltip___Psvt",frd_icon:"player_frd_icon__cfG7J",hello:"player_hello__8kCte",nodatafound:"player_nodatafound__mTux6",nextvideothumbnail:"player_nextvideothumbnail__B0ZK5",nxtLeft:"player_nxtLeft__v46DK",nxtRight:"player_nxtRight__ySRbW",overlay_nextprogarm:"player_overlay_nextprogarm__XpfgU"}},89306:function(e){e.exports={primaryColor:"#f47000",whiteColor:"var(--white-color, #fff)",bodyColor:"var(--body-color, #000)",removeMarginTop:"player_removeMarginTop__uil0_",playerHome:"player_playerHome__asTHw",playerFixed:"player_playerFixed__FmKYX",playerSection:"player_playerSection__TtBui",preview_timer:"player_preview_timer__d8Nnz",playerDesMain:"player_playerDesMain__LtTW_",title:"player_title__HOwYR",description:"player_description__EBUXN",subtitle:"player_subtitle__ulkBc",cast_crew:"player_cast_crew__3wTKT",player_data:"player_player_data__4ScIT",channel_desc:"player_channel_desc__1xbQ8",headerTitle:"player_headerTitle__JmLFm",channel_logo:"player_channel_logo__8vUNO",player_desc_left:"player_player_desc_left__Vc9dx",span1:"player_span1__QKjXw",pipe:"player_pipe__4d7Bq",pgrating:"player_pgrating__MpHKL",player_desc_right:"player_player_desc_right__YnhP3",button:"player_button__c1c1_",fav_active_icon:"player_fav_active_icon__rq6gx",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",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",notAvailablePlayer:"player_notAvailablePlayer__nHwcz",noavailableerrormsg:"player_noavailableerrormsg__ZjNML",errorbtns:"player_errorbtns__RN_67"}},29206:function(e){e.exports={primaryColor:"#f47000",whiteColor:"var(--white-color, #fff)",bodyColor:"var(--body-color, #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.