PageSourceSearch

https://www.midnightpulp.com/_next/static/chunks/3127-536a8bf72ff0d2d7.js

js midnightpulp.com collected 2026-10-01 11:37:42 UTC 37,081 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[3127,423],{37205:function(e,t,i){"use strict";var s=i(85893),o=i(67294),a=i(93041),n=i(89755),l=i.n(n),r=i(32415);class d extends o.Component{componentWillUnmount(){this._isMounted=!1;var e=document.getElementById("channelBackgroundVideo");e&&e.remove()}componentDidMount(){let e=this.props.videoReplayFunc,t=document.getElementById("channelBackgroundVideo");if(t&&(t.addEventListener("canplay",()=>{this.props.shrinkLogo(),this.props.animateChannelLogo()}),t.addEventListener("ended",()=>{e()})),this._isMounted=!0,this._isMounted&&a.ZP.isSupported()){var i=document.getElementById("channelBackgroundVideo"),s=new a.ZP;s.detachMedia(),s.loadSource(this.props.src),s.attachMedia(i),s.on(a.ZP.Events.MANIFEST_PARSED,function(){i&&i.play().catch(e=>{console.log(e)})}),s.on(a.ZP.Events.ERROR,function(e,t){if(t.fatal)switch(t.type){case a.ZP.ErrorTypes.NETWORK_ERROR:console.log("fatal network error encountered, try to recover"),s.startLoad();break;case a.ZP.ErrorTypes.MEDIA_ERROR:console.log("fatal media error encountered, try to recover"),s.recoverMediaError();break;default:s.destroy()}})}}componentWillUnmount(){}applicationCallBack(){}play(){this.duration();let e=document.getElementById("v");this.setState({paused:!this.state.paused}),!0==this.state.paused?(e.play().catch(e=>{console.log(e)}),this.setState({paused:!1})):(e.pause(),this.setState({paused:!0}))}duration(){let e=0;try{if(e=document.getElementById("v").duration){let t=(e=e.toFixed()).toHHMMSS();this.setState({length:e,formattedLength:t})}}catch(e){}return e}VideoMuteFunc(){this.setState({isVideoMuted:!this.state.isVideoMuted||!this.state.isVideoMuted});var e=document.getElementById("channelBackgroundVideo");this.props.islogin&&setCookie("isVideoMuted",!this.state.isVideoMuted||!this.state.isVideoMuted),e.muted=!this.state.isVideoMuted||!this.state.isVideoMuted}render(){return(0,s.jsxs)("div",{id:"backVplayer",className:"fadeInVideo",children:[(0,s.jsx)("video",{id:"channelBackgroundVideo",type:"application/x-mpegURL",autoPlay:!0,muted:!0,loop:this.props.runLoop,controls:!1,className:"video-player ".concat("shelves"==this.props.callFrom?"no-shelves-value":"shelves-value"),children:(0,s.jsx)("source",{src:this.props.src,type:"application/x-mpegURL"})}),this.props.showMute&&(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"black-shadow top-value"}),(0,s.jsx)("div",{className:"mute-button-div channel-promo-mute",children:(0,s.jsx)(l(),{src:this.state.isVideoMuted?"//images/player-icons/mute_icon.svg":"//images/player-icons/unmute_icon.svg",onClick:()=>this.VideoMuteFunc(),alt:"Muted",width:40,height:40,id:"promovideo-mute-icon",priority:!0})})]})]})}constructor(e,t){super(e,t),this._isMounted=!1,this.state={length:null,formattedLength:null,currentTime:null,formattedTime:null,isVideoMuted:"false"!=(0,r.ej)("isVideoMuted"),replayVideo:!1},this.play=this.play.bind(this)}}t.Z=function(e){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(d,{src:e.mediaUrl?e.mediaUrl:"",window1:e.window1,shrinkLogo:e.shrinkLogo,showMute:e.showMuteButton,runLoop:e.isLooped,callFrom:e.callFrom,videoReplayFunc:e.videoReplayFunc?e.videoReplayFunc:()=>{},animateChannelLogo:e.animateChannelLogo?e.animateChannelLogo:()=>{}}),(0,s.jsx)("div",{})]})}},80423:function(e,t,i){"use strict";var s=i(85893),o=i(34572),a=i(59047),n=i(83989),l=i(31028),r=i(91639),d=i(11163),c=i(67294),u=i(32415),h=i(58239),p=i(45312);t.Z=e=>{let t="Want to watch this movie?",i="You must be a VIP member to watch this title",m=e.okButtonLabel?e.okButtonLabel:"See plans",g=e.cancelButtonLabel?e.cancelButtonLabel:"No, thanks",v=!1!=e.isCancelBtn||e.isCancelBtn;(0,c.useEffect)(()=>{let e=document.getElementById("main-container");return e&&(e.style.height="0vh"),()=>{e.style.height="auto"}},[]);let _=(0,c.useRef)(!1);(0,c.useEffect)(()=>{if("emailnotification"==e.datafor){let t={ironCookie:(null==e?void 0:e.ironCookie)?e.ironCookie:"",selectedProfile:(null==e?void 0:e.selectedProfile)?e.selectedProfile:"",location_type:"page",event_location_id:"notification_screen",shelves:null},i=(0,u.m1)(t),s=e&&e.urls&&e.urls.logURLV2?(0,u.tY)(e.urls.logURLV2):"";!_.current&&(_.current=!0,p.isVisitPageOn&&(0,h.qe)(s,"VISIT",i))}},[]),e.title&&(t=e.title),e.desc&&(i=e.desc);let f=(0,d.useRouter)();return(0,s.jsx)(o.Z,{open:e.showAlert,closeModal:()=>e.setShowAlert(!1),showCancel:!1,children:(0,s.jsxs)("div",{className:"custom-modal-container fadeInOut",children:[(0,s.jsx)(r.Z,{title:t}),(0,s.jsxs)(n.Z,{children:[(0,s.jsx)(a.Z,{children:i}),(0,s.jsxs)("div",{className:"modal-buttons-new",style:{justifyContent:v?"space-between":"center"},children:[(0,s.jsx)(l.Z,{disabled:!1,onClick:()=>{e.okAction?e.okAction():f.push({pathname:"/plans"})},children:m}),v&&(0,s.jsx)(l.Z,{disabled:!1,onClick:()=>{e.cancelButtonAction&&e.cancelButtonAction(),"emailnotification"==e.datafor?e.setShowAlert(!0):e.setShowAlert(!1)},children:g})]})]})]})})}},63127:function(e,t,i){"use strict";i.d(t,{Z:function(){return F}});var s=i(85893),o=i(67294),a=i(32415),n=i(11163),l=i(45312),r=i(68777),d=i(85639),c=i(89755),u=i.n(c),h=i(91444),p=i(2664),m=i(68741),g=i(15755),v=i(73227),_=i.n(v),f=function(e){let[t,i]=(0,o.useState)(e.addremoveFlag);return(0,o.useEffect)(()=>{i(e.addremoveFlag)},[e.addremoveFlag]),(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(g.Z,{children:(0,s.jsx)("div",{"data-title":t?"Remove from Watchlist":"Add to Watchlist",className:"".concat(l.isDove?"dove-wishlist-button-div":"wishlist-button-div"," \n            ").concat(_().wishlist_tooltip_strip," \n            ").concat(_().fade_self),onClick:()=>{e.addToFav(t),i(!t),(null==e.loggedIn||!1==e.loggedIn)&&i(!1)}
1,children:(0,s.jsx)(u(),{src:t?l.isDove?"//images/icons/dove-doneicon.png":"//images/icons/doneicon.svg":l.isDove?"//images/icons/dove-addicon.png":"//images/icons/addicon.svg",width:"27",height:"27",alt:"watch-button",className:"wishlist-button-image ".concat(l.isDove?"black-image":"")})})})})},b=i(85518),y=i(9479);let x=r.ZP.div.withConfig({componentId:"sc-941aafb0-0"})(["cursor:pointer;transition:",";&:hover{transform:",";img{filter:",";}}"],e=>e.isplaywatchbtnHover&&"transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),\n    box-shadow 0.25s ease",e=>e.isplaywatchbtnHover&&"translateY(-1px) scale(1.04)",l.isDove?"none":l.svgFilter);var w=e=>{let{children:t,...i}=e;return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(x,{isplaywatchbtnHover:l.isplaywatchbtnHover,...i,children:t})})};let j=r.ZP.div.withConfig({componentId:"sc-7f2faa33-0"})(["background-color:",";transition:",";@media (min-width:600px){&:hover{transform:",";}}"],l.isDove?"#f7c1bc":"thearchive"==l.appName?l.channelPrimaryColor:l.menuTextHoverColor,e=>e.isplaywatchbtnHover&&"transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1),\n    box-shadow 0.25s ease",e=>e.isplaywatchbtnHover&&"translateY(-1px) scale(1.04)");var k=function(e){let{children:t,...i}=e;return(0,s.jsx)(j,{isplaywatchbtnHover:l.isplaywatchbtnHover,...i,children:t})};i(41357);var N=function(e){return(0,s.jsx)(s.Fragment,{children:e.itemData&&e.itemData.subscriber_type&&"paid"==e.itemData.subscriber_type?" Subscribe":e.islogin||"registered"!=e.itemData.subscriber_type?"Play":"Register"})},C=i(33299),E=i(58239);let D=!1,R=r.ZP.button.withConfig({componentId:"sc-c1bc17bb-0"})(["background-color:",";cursor:",";"],l.channelPrimaryColor,e=>e.disabled?"not-allowed":"");var V=function(e){var t,i;let{status:r}=(0,C.useSession)(),d=(0,a.ej)("token_name"),c=!1,g=e.ironLogin,v=e.ironCookie,x=e.isHooplaVal,j=e.catdata,V=(0,n.useRouter)(),[I,L]=(0,o.useState)(!1),[S,T]=(0,o.useState)(!1),[M,F]=(0,o.useState)(!1),[A,P]=(0,o.useState)(null),{catdata:B,favupdateurl:Z,watchlistData:H,videoEnd:W}=e,U=B?B.item_id:"",O=B?B.cust:"",q=B?B.title:"",Y=e.buttonW?e.buttonW:"32px",z=e.buttonH?e.buttonH:"32px",{store:G}=(0,o.useContext)(p.ET),{favData:J}=G.getState(),X=e&&e.urls&&e.urls.logURLV2?(0,a.tY)(e.urls.logURLV2):"",K=(null==e?void 0:null===(i=e.ironCookie)||void 0===i?void 0:null===(t=i.user)||void 0===t?void 0:t.status)||"",$=(0,a.IM)(K);async function Q(){try{var e;let t=await roweightData.roweightData;t&&(null===(e=Object.keys(t))||void 0===e?void 0:e.length)>0&&(null==t||t.map(e=>{e.item_id==U&&(e.sub_channel&&"row8"==e.sub_channel.find(e=>"row8"==e)?T(!0):F(!0))}))}catch(e){console.log("ROW EIGHT ERROR")}}e.channelName&&e.channelName.replace("cineverse__","");let ee=!0;e&&(ee=!e.catdata||!e.catdata.is_playback_available||e.catdata.is_playback_available),(0,o.useEffect)(()=>{e.setIsRegValue(I)},[I]),(0,o.useEffect)(()=>{let t=document.getElementById("main-container");return t&&!e.stopScroll?t.style.transform="scale(1)":(t.style.transform="none",t.style.opacity="1",t.style.transition="2s all"),Q(),()=>{t&&(e.stopScroll||(t.style.transform="scale(1)"),t.style.transform="none",t.style.opacity="1",t.style.transition="2s all"),Q()}},[]);let et=t=>{let i=t.catdata,s=!1;if(v&&"PLAN_A"!==v.status&&"paid"==i.subscriber_type&&(s=!0),!g&&i&&"paid"==i.subscriber_type&&(s=!0),v&&v.user&&v.user.status==l.userSubscribed&&(s=!1),s)V.push({pathname:"/plans"});else{let t,s=(0,a.Os)(e);(0,a.d8)("navCat",s),e&&e.catdata&&e.catdata.sub_channel&&e.catdata.sub_channel.includes("row8")&&e.ironCookie&&e.ironCookie.user?e.gettoken_play(i):(document.getElementById("header-nav")&&(document.getElementById("header-nav").style.display="none"),(t=document.getElementById("main-container"))&&(e.stopScroll||(t.style.transform="scale(1.05)"),t.style.opacity="0",t.style.transition="2s all"),V.push({pathname:"/watch/"+U+"/"+(0,a.p7)(q),query:{vod_type:e&&e.catdata&&e.catdata.sub_channel&&e.catdata.sub_channel.includes("row8")?"row8":""}},void 0,{shallow:!0}))}},ei=J?J.favData:null;try{ei&&Object.keys(ei).length>0&&(null==ei||ei.map(e=>{e.item_id==U&&(c=!0)}))}catch(e){console.log(e)}let es=(e,t)=>{(0,h.Am)(t,{className:"custom-toast",position:"bottom-center",autoClose:2e3,hideProgressBar:!0,closeOnClick:!0,pauseOnHover:!0,draggable:!0,type:e,theme:"dark"})};function eo(){if(b.tq){let t={android:()=>/Android/i.test(navigator.userAgent),iOS:()=>/iPhone|iPad|iPod/i.test(navigator.userAgent)};if(t.android()||t.iOS()){if("hoopla"==e.ironCookie.user.partner)(function(e){let t=new XMLHttpRequest;t.open("GET",e),t.setRequestHeader("X-Requested-With","XMLHttpRequest"),t.setRequestHeader("Acce
1ss-Control-Allow-Origin","*"),t.onload=()=>200===t.status,t.send()})((l.isDeepLinkNeeded?l.deepLinkinProtocol:"")+"external/"+e.ironCookie.user.partner+"?data="+d)&&window.location.replace((l.isDeepLinkNeeded?l.deepLinkinProtocol:"")+"details/"+(e&&e.item_id?e.item_id:""));else{window.location.replace((l.isDeepLinkNeeded?l.deepLinkinProtocol:"")+"details/"+(e&&e.item_id?e.item_id:""));let i=l.appLink.appleAppStore;t.android()&&(i=l.appLink.androidAppStore),setTimeout(()=>{window.location.replace(i)},3e3)}}}else!g&&j&&"registered"==j.subscriber_type?L(!0):(W(),e.playButtonClickCallBack&&e.playButtonClickCallBack(),ee&&"live"!==j.type&&et(e))}return v&&j&&"PLAN_A"!==v.status&&j.subscriber_type,!g&&j&&j.subscriber_type,v&&v.user&&v.user.status==l.userSubscribed&&j.subscriber_type,D=!!e.hideButton&&e.hideButton,(0,s.jsx)(s.Fragment,{children:ee?(0,s.jsxs)("div",{className:"button-grup-container",onClick:e=>{"live"==j.type&&((0,a.d8)("navCat","livetv_search"),V.push({pathname:"/livetv/",query:{q:j.item_id}},"/livetv?q="+j.item_id,{shallow:!0}))},children:[j.subscriber_type&&("rental"==j.subscriber_type||"purchase"==j.subscriber_type)?(0,s.jsx)(s.Fragment,{children:(S||M)&&e.ironLogin?j.sub_channel&&j.sub_channel.includes("row8")?(0,s.jsxs)("div",{className:l.isDove?"dove-first-button-div":"first-button-div",children:[(0,s.jsx)("div",{className:"play-button-div-rowEight",onClick:()=>{eo()},children:(0,s.jsx)(u(),{src:l.isDove?"//images/icons/dove_play_svg.svg":"//images/icons/play_svg.svg",width:"30",height:"30",alt:"play-button"})}),(0,s.jsx)("div",{className:"play-text",children:"Play"})]}):(0,s.jsxs)("div",{className:l.isDove?"dove-first-button-div":"first-button-div",children:[(0,s.jsx)(k,{className:l.isDove?"dove-play-button-div":"play-button-div",onClick:()=>{eo()},children:(0,s.jsx)(u(),{src:l.isDove?"//images/icons/dove_play_svg.svg":"//images/icons/play_svg.svg",width:"30",height:"30",alt:"play-button"})}),(0,s.jsx)("div",{className:"play-text",children:"Play"})]}):(0,s.jsx)(s.Fragment,{children:j.sub_channel&&j.sub_channel.includes("row8")?(0,s.jsxs)("button",{className:"row-eight-rent-btn",onClick:()=>{e.setIsRental(!1),e.rentrow8val(j)},children:[(0,s.jsx)(u(),{src:"gorillacomedyplus"==l.appName?"//images/buttons_icon/play-black.png":"//images/buttons_icon/play.png",alt:"rent img",width:14,height:17,className:"play-button-image_new"}),"\xa0\xa0Get"]}):(0,s.jsx)("div",{children:(0,s.jsxs)(R,{className:"thearchive"===l.appName?"btn-txt-color":"rental-rent-btn",onClick:()=>{e.setIsRental(!0),e.rentrow8val(j),e.setProductInfo&&e.setProductInfo(j.products)},disabled:!!x,"data-toggle":"tooltip",title:x?"This title is not available for you.":"",children:[(0,s.jsx)(u(),{src:"gorillacomedyplus"==l.appName?"//images/buttons_icon/play-black.png":"//images/buttons_icon/play.png",alt:"rent img",width:16,height:16,className:l.playButtonClass}),"\xa0\xa0"," ",j.subscriber_type&&("rental"==j.subscriber_type||"purchase"==j.subscriber_type)?"Get":""]})})})}):(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:l.isDove?"dove-first-button-div":"first-button-div",children:[(0,s.jsx)(k,{className:l.isDove?"dove-play-button-div":"play-button-div",onClick:()=>{eo()},children:(0,s.jsx)(u(),{src:l.isDove?"//images/icons/dove_play_svg.svg":"//images/icons/play_svg.svg",width:"34",height:"34",alt:"play-button"})}),(0,s.jsx)("div",{className:"play-text",children:j.is_playback_available&&("paid"==j.subscriber_type||"registered"==j.subscriber_type)&&(!g||v&&v.user.status!=l.userSubscribed)?(0,s.jsx)(N,{itemData:j,islogin:g,userDetails:v}):"Play"})]})}),(0,s.jsxs)("div",{className:"second-button-div",children:["live"==j.type&&(0,s.jsx)("div",{className:"live-icon-modal",children:(0,s.jsx)(u(),{src:"//images/live_small_icon.png",alt:"Cineverse_live",width:"50",height:"50",className:"live-icons-gridoverlay"})}),!D&&(0,s.jsx)("div",{className:A?"events-none":"",children:ee&&j&&"episode"!=j.type&&"live"!==j.type&&(0,s.jsx)(f,{addremoveFlag:c,button1Src:"//images/icons/add.png",favupdateurl:Z,addToFav:t=>{!function(t){if(g){let i=(0,a.Os)(e);(0,a.d8)("navCat",i);let s=(0,a.dx)({props:e,userSubTypeValue:$,catdata:null==e?void 0:e.catdata});t?(0,E.qe)(X,"REMOVE_FROM_WATCHLIST",s):(0,E.qe)(X,"ADD_TO_WATCHLIST",s)}if(!1==g||null==g)e.videoEnd(!0);else{t?es("success","Removed from Watchlist"):es("success","Added to Watchlist"),P(!0);let e=(0,a.tY)(Z||"").replace("__JTV__SUBSCRIBER__ID__",encodeURIComponent(v.user.email)).replace("__JTV__TRUE__FALSE__",t).replace("__JTV__ASSET__IDS__",U).replace("__JTV__CUST__TYPE__",O);(0,a.pv)(e,e=>{if(console.log(e,"\uD83D\uDFE2\uD83D\uDFE2\uD83D\uDFE2\uD83D\uDFE2\uD83D\uDFE2"),e&&"success"==e.result){let e=[];H&&Object.keys(H).length>0&&(e=H.subCategories),e.map((e,t)=>{if("JTV_MY_FAV"==e.type){let t=e?e.url:"";(t=(t=t.replace("__JTV__DEVICE__CODE__",l.devType)).replace("__JTV__SUBSCRIBER__ID__",encodeURIComponent(v.user.email)))&&t.length>0&&(0,a.bf)(t,e=>{G.dispatch({type:m.t.FETCH_FAV_DATA,payload:e||[]}),P(!1)},"",!1,null,r)}})}},r)}}(t)},buttonHeight:z,buttonWidth:Y,loggedIn:e.ironLogin})}),"live"!==j.type&&(0,s.jsx)(w,{children:(0,s.jsx)("div",{"data-title":"More Info",className:"".concat(l.isDove?"dove-info-button-div":"info-button-div"," \n                  ").concat(_().moreinfo_tooltip_strip," \n                  ").concat(_().fadeinfo_self),children:(0,s.jsx)(u(),{src:l.isDove?"//images/icons/dove-infoicon.svg":"//images/icons/infoicon.svg",width:"27",height:"27",alt:"play-button",className:"more-info-image ".concat(l.isDove?"black-image":""),onClick:e.ondetail
1sclick})})})]})]}):(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("div",{className:"not-available-container",children:[(0,s.jsx)(y.Z,{msg:"Not Available"}),(0,s.jsx)(w,{children:(0,s.jsx)("div",{"data-title":"More Info",className:"".concat(l.isDove?"dove-info-button-div":"info-button-div"," \n                ").concat(_().moreinfo_tooltip_strip," \n                ").concat(_().fadeinfo_self),children:(0,s.jsx)(u(),{src:l.isDove?"//images/icons/dove-infoicon.svg":"//images/icons/infoicon.svg",width:"27",height:"27",alt:"play-button",className:"more-info-image ".concat(l.isDove?"black-image":""),onClick:e.ondetailsclick})})})]})})})},I=i(38704),L=function(e){(0,o.useEffect)(()=>()=>{},[]);let{channelUIConfigData:t}=e,{config:i}=l.defaultUiConfig;void 0!==t&&void 0!==t.basic.asset_highlight_color&&t.basic.asset_highlight_color?t.basic.asset_highlight_color:i.basic.asset_highlight_color&&i.basic.asset_highlight_color;let r=(0,n.useRouter)(),{catInfos:c,favData:u,favupdateurl:h}=e,p=t=>{e.hideBgVideoNModal(),e.watchlistModal(t)};return(0,s.jsxs)(S,{className:"modal-feature-div",children:[(0,s.jsx)(I.Z,{endvideo:()=>p(),...e}),e&&e.catInfos&&"channel"==e.catInfos.type?(0,s.jsx)(s.Fragment,{}):(0,s.jsxs)("div",{className:l.isDove?"dove-lower-part":"lower-part",children:[(0,s.jsx)(V,{catdata:c,favData:u,favupdateurl:h,showAlert:(t,i)=>{e.showAlert(t,i)},videoEnd:p,router:r,setIsRegValue:e.setIsRegValue,...e}),(0,s.jsxs)("div",{className:"details-text-cont",children:[c?(0,s.jsx)(s.Fragment,{children:(0,s.jsxs)("p",{className:l.isDove?"dove-feature-paragraph":"feature-paragraph",children:[c.duration&&(0,a.GJ)(c.duration)+(""==c.pub_year?"":" | "),c.pub_year&&(0,s.jsx)("span",{className:l.isDove?"dove-first-year-paragraph":"first-year-paragraph",children:c.pub_year}),"\xa0"," ","episodic"===c.type?c.num_seasons&&c.num_seasons>1?"".concat(c.num_seasons," Seasons"):c.num_episodes>1?"".concat(c.num_episodes," Episodes"):"".concat(c.num_episodes," Episode"):""]})}):(0,s.jsx)(s.Fragment,{}),c.rating_code&&c.rating_code.split(",").map((e,t)=>(0,s.jsxs)("p",{className:l.isDove?"dove-details-text dove-rating":"details-text rating",children:[(0,s.jsx)("span",{className:l.isDove?"dove-rating":"rating",children:e})," "]},"rating"+t))]}),(0,s.jsx)("div",{className:"asset-info-details",children:(0,s.jsx)("p",{className:l.isDove?"dove-card-short-desc-text":"card-short-desc-text",children:(0,s.jsx)(d.Z,{txt:c&&c.small_description?c.small_description.replace("/"," / "):""})})})]})]})};let S=r.ZP.div.withConfig({componentId:"sc-c7d1cdd3-0"})([""]);var T=i(80423);let M=o.memo(e=>{let{catInfos:t,img:i,i:r,favData:d,favupdateurl:c}=e,u=(0,n.useRouter)(),[h,p]=(0,o.useState)(!1),[m,g]=(0,o.useState)(!1),v=e.ironLogin,_=e.ironCookie,f=()=>{b(),clearTimeout(null),p(!1)};(0,o.useEffect)(()=>()=>{b(),clearTimeout(null)},[]);let b=()=>{let e=document.getElementById("asset-bg-video");e&&e.pause();try{let e=document.getElementById("backvideo");e&&e.paused&&e.play()}catch(e){}},y=!1;_&&"PLAN_A"!==_.status&&"paid"==t.subscriber_type&&(y=!0),v||"paid"!=t.subscriber_type||(y=!0),_&&_.user&&_.user.status==l.userSubscribed&&"paid"==t.subscriber_type&&(y=!0);let x=i=>{if(!i.target.className.includes("bg-promo-mute")&&i.target&&i.target.alt&&!i.target.alt.includes("Muted")||i.target.className.includes("video-player-mini")){var s;(0,a.d8)("navCat",e.dataFrom+"__$$__"+e.shelfName),t&&t.type&&"JTV_LEAF"===t.type?(s=e.callFrom,i.target.className.includes("gridOverlay-RoundButton")?i.stopPropagation():u.push({pathname:"/category/"+(0,a.p7)(e.catData.uname)+"/"+(0,a.p7)(t.uname),query:{shelfUrl:t.url,parent_shelf:e.catData.uname,current_shelf:t.name,shelfStyle:t.shelf_style,called_from:s}},"/category/"+(0,a.p7)(e.catData.uname)+"/"+(0,a.p7)(t.uname))):"live"!==t.type&&(i.target.className.includes("gridOverlay-RoundButton")?i.stopPropagation():e&&!0==e.noDetail?(playItemsWithCond(),i.stopPropagation()):(u.push({pathname:"/details/"+t.item_id+"/"+(0,a.p7)(t.title),query:{item_id:t.item_id,cust:t.cust,title:t.title}},"/details/"+t.item_id+"/"+(0,a.p7)(t.title)),(0,a.d8)("redirectpath","details/"+t.item_id+"/"+(0,a.p7)(t.title))))}};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)(L,{img:i,isRow8:!1,showLock:y,catInfos:t,i:r,ondetail
1sclick:e=>x(e),favData:d,favupdateurl:c,showAlert:(t,i)=>{e.showAlert(t,i)},hideBgVideoNModal:()=>{f()},watchlistModal:e=>g(e),setIsRegValue:e.setIsRegValue,...e}),m&&(0,s.jsx)(T.Z,{showAlert:m,setShowAlert:e=>g(e),title:l.dynamicAlertData.AddingWatchlist.title,desc:l.dynamicAlertData.AddingWatchlist.desc,okButtonLabel:l.dynamicAlertData.AddingWatchlist.okButtonLabel,cancelButtonLabel:l.dynamicAlertData.AddingWatchlist.cancelButtonLabel,okAction:()=>u.push({pathname:"/login"})})]})});var F=function(e){let[t,i]=(0,o.useState)(""),[a,n]=(0,o.useState)(0),[r,d]=(0,o.useState)(0),[c,u]=(0,o.useState)(!1),[h,p]=(0,o.useState)({x:0,y:0}),[m,g]=(0,o.useState)(null),v=c&&(null==m?void 0:m.type)!=="channel"?e.cardHeight+100+"px":"",_=function(e,t){let[i,s]=(0,o.useState)(!1);return(0,o.useEffect)(()=>{let t;return e&&!i?t=setTimeout(()=>{s(!0)},10):!e&&i&&(t=setTimeout(()=>{s(!1)},10)),()=>clearTimeout(t)},[e]),i}(c,0);return((0,o.useEffect)(()=>(window&&window.addEventListener("mousemove",e=>{p({x:e.clientX,y:e.clientY})}),()=>{window.removeEventListener("mousemove",()=>{p({x:0,y:0})})}),[]),(0,o.useEffect)(()=>{if(!window)return;let t=h.x;return h.y<80&&e.setisPopupNeeded(!1),(t<=40||t>=window.innerWidth-55)&&e.setisPopupNeeded(!1),()=>{}},[h]),(0,o.useEffect)(()=>{let{innerWidth:t}=window;if(c){if(d(e.position.y+e.position.scrollY-40),e.position.x<=e.cardWidth/2){if(e.position.x<=-(e.cardWidth-e.cardWidth/2-60)){u(!1);return}n(50),i("left center")}else if(e.position.x>=t-e.cardWidth-80){if(e.position.x>t-60-e.cardWidth/2){u(!1);return}e.cardWidth<=250?n(t-50-300-50):n(t-e.cardWidth-100),i("right center")}else{if(e.cardWidth<=250){let t=(350-e.cardWidth)/2;n(e.position.x-t)}else n(e.position.x-25);i("center center")}}else u(!1);return()=>{}},[c]),(0,o.useEffect)(()=>{let t;return e.isPopupNeeded?t=setTimeout(()=>{u(!0),g(e.catInfo)},50):u(!1),()=>{clearTimeout(t)}},[e.catInfo,e.isPopupNeeded]),b.tq||l.isTivoOS)?(0,s.jsx)(s.Fragment,{}):(0,s.jsx)(s.Fragment,{children:_&&(0,s.jsx)("div",{style:{transform:"translate(".concat(a,"px,").concat(r,"px)"),transformOrigin:"".concat(t),cursor:"pointer"},className:"hovered-div",onMouseEnter:()=>{"details_page"!==e.comingFrom&&"RECO_SEARCH"!==e.dataFrom&&"search"!==e.dataFrom&&e&&e.setShelfGridView&&e.setShelfGridView(e.catInfo&&e.catInfo.shelfName)},onMouseLeave:()=>{"details_page"!==e.comingFrom&&"RECO_SEARCH"!==e.dataFrom&&"search"!==e.dataFrom&&e.setShelfGridView(null)},children:(0,s.jsx)("div",{onMouseLeave:()=>{u(!1)},style:{width:e.cardWidth<=250?"350px":e.cardWidth+50+"px",height:{cardHeight:v},animationDuration:"".concat(250,"ms")},className:"text-div ".concat(c?"hovered-div_mounted":"hovered-div_unmounting"),children:m&&(0,s.jsx)(M,{shelfName:m.shelfName?m.shelfName:"",setIsRegValue:e.setIsRegValue,...e,catInfos:m})})})})}},38704:function(e,t,i){"use strict";i.d(t,{Z:function(){return f}});var s=i(85893),o=i(67294),a=i(89755),n=i.n(a),l=i(11163),r=i(45312),d=i(32415),c=i(2664),u=i(68741),h=i(93041),p=i(89914);class m extends o.Component{componentWillUnmount(){this._isMounted=!1,this.video&&this.video.pause(),this.promoBackgroundVideo&&this.promoBackgroundVideo.play()}componentDidMount(){if(this.video=document.getElementById(this.vid),this.video&&(this.video.addEventListener("canplay",()=>{this.props.animateChannelLogo(),this.props.showVideo()}),this.video.muted=this.state.isVideoMuted),this._isMounted=!0,this._isMounted&&h.ZP.isSupported()){this.hls=new h.ZP((null===(e=this.props.src)||void 0===e?void 0:e.endsWith(".m3u8"))?{}:{xhrSetup:function(e,t){t.includes(".ts")||e.setRequestHeader("X-Proxy-Request","internal")}});try{console.log("[BackgroundVideo] Generating proxy URL for:",this.props.src);let e=null;if(this.props.src)this.hls.detachMedia(),e=(0,p.E)(this.props.src),this.hls.loadSource(e),this.hls.attachMedia(this.video);else{console.error("[BackgroundVideo] No CDN URL provided:",this.props.src);return}}catch(e){console.error("[BackgroundVideo] Failed to generate proxy URL:",e.message);return}var e,t=this.props.startTime>=0?this.props.startTime/1e3:600,i=this.props.endTime>=0?this.props.endTime/1e3:660;this.video.currentTime=t;let s=this;this.hls.on(h.ZP.Events.MANIFEST_PARSED,function(){if(s.video){try{s.video.pause()}catch(e){console.log(e)}if(!(s.video.currentTime>0&&!s.video.paused&&!s.video.ended&&s.video.readyState>s.video.HAVE_CURRENT_DATA)){let e=document.getElementById("backvideo");if(e)try{e.pause()}catch(e){}s.video.play().catch(e=>{console.log(e)})}}}),this.video.addEventListener("timeupdate",e=>
1{if(s.video.currentTime>=i){s.video.pause(),s.props.videoEnded();let e=document.getElementById("backvideo");if(e)try{e.play()}catch(e){}}}),this.video.addEventListener("playing",e=>{this.promoBackgroundVideo&&this.promoBackgroundVideo.pause()}),this.video.addEventListener("pause",e=>{}),this.hls.on(h.ZP.Events.ERROR,function(e,t){if(t.fatal)switch(t.type){case h.ZP.ErrorTypes.NETWORK_ERROR:console.log("fatal network error encountered, try to recover"),this.hls.startLoad();break;case h.ZP.ErrorTypes.MEDIA_ERROR:console.log("fatal media error encountered, try to recover"),this.hls.recoverMediaError();break;default:this.hls.destroy()}})}}applicationCallBack(){}play(){this.duration();let e=document.getElementById("v");this.setState({paused:!this.state.paused}),!0==this.state.paused?(e.play().catch(e=>{console.log(e)}),this.setState({paused:!1})):(e.pause(),this.setState({paused:!0}))}duration(){let e=0;try{if(e=document.getElementById("v").duration){let t=(e=e.toFixed()).toHHMMSS();this.setState({length:e,formattedLength:t})}}catch(e){}return e}VideoMuteFunc(){this.setState({isVideoMuted:!this.state.isVideoMuted||!this.state.isVideoMuted});var e=document.getElementById(this.vid);this.props.islogin&&setCookie("isVideoMuted",!this.state.isVideoMuted||!this.state.isVideoMuted),e&&(e.muted=!this.state.isVideoMuted||!this.state.isVideoMuted)}render(){return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{id:"backVplayer",className:"fadeInVideo asset-video",children:(0,s.jsx)("video",{className:"video-player-mini",id:this.vid,type:"application/x-mpegURL",autoPlay:!0,muted:!0,loop:this.props.runLoop,controls:!1,"webkit-playsinline":"true",playsInl
1ine:!0,style:"shelves"==this.props.callFrom?{left:"0%"}:{left:"30%"},children:(0,s.jsx)("source",{src:this.props.src?(0,p.E)(this.props.src):null,type:"application/x-mpegURL"})})}),this.props.showMute&&(0,s.jsx)("div",{className:"bg-promo-mute",onClick:()=>this.VideoMuteFunc(),children:(0,s.jsx)(n(),{src:this.state.isVideoMuted?"//images/icons/volume_mute_svg.svg":"//images/icons/volume_svg.svg",alt:"Muted",width:40,height:40,id:"promovideo-mute-icon",priority:!0,className:"bg-mute-image"})})]})}constructor(e){super(e),this._isMounted=!1,this.state={length:null,formattedLength:null,currentTime:null,formattedTime:null,isVideoMuted:!0,replayVideo:!1},this.play=this.play.bind(this),this.promoBackgroundVideo=document.getElementById("my-bg-video"),this.vid="asset-bg-video"}}var g=function(e){return(0,s.jsx)(s.Fragment,{children:r.isAutoPreView&&e.mediaUrl&&(0,s.jsx)(m,{src:e.mediaUrl?e.mediaUrl:"",window1:e.window1,showMute:e.showMuteButton,runLoop:e.isLooped,callFrom:e.callFrom,animateChannelLogo:e.animateChannelLogo?e.animateChannelLogo:()=>{},showVideo:e.showVideo,videoEnded:e.videoEnded,itemID:e.itemID,catInfo:e.catInfo,isVideoPlayble:e.isVideoPlayble,title:e.title?e.title:"",startTime:e.startTime,endTime:e.endTime})})},v=i(68777),_=i(37205),f=function(e){let t=e&&e.isHooplaVal?e.isHooplaVal:"",{store:i}=(0,o.useContext)(c.ET),a=(0,l.useRouter)(),[h,p]=(0,o.useState)(!1),[m,v]=(0,o.useState)(!1),f=e.orientation?e.orientation:"thumbnail",w=(0,o.useRef)(),j=null;(0,o.useEffect)(()=>(j=setTimeout(()=>{p(!0)},3e3),()=>{clearTimeout(j),clearTimeout(null)}),[]);let{catInfos:k,i:N,showLock:C}=e,E=void 0===k[f]?"//images/".concat(r.appName,"/blank_poster_landscape_sm.jpg"):k[f];if(k.title_image){let e=(0,d.DN)(k.title_image,!1);e.width,e.height}return k&&"channel"==k.type?(0,s.jsx)(y,{onClick:()=>{var t;return t=e.catInfos,void(i.dispatch({type:u.t.FETCH_CHANNEL_DATA,payload:t}),a.push({pathname:"/channel/"+t.uid,query:{name:t.name,uid:t.uid,logo_img:t.logo_url,url:t.genres_nav_url}},"/channel/"+t.uid))},children:(0,s.jsx)("div",{className:"Chnl-img-part",children:(0,s.jsxs)(x,{heightof:e.cardHeight?e.cardHeight:200,children:[(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(_.Z,{mediaUrl:k&&k.promo_url?k.promo_url:"",shrinkLogo:()=>{w.current&&(w.current.classList.add("Chnl-grid-image-fade_scale"),w.current.classList.remove("Chnl-grid-image-fade"),w.current.classList.add("logo_animation_expand"))},isLooped:!0,callFrom:"shelves"})}),(0,s.jsx)("div",{className:"Chnl-grid-image-fade",ref:w,children:(0,s.jsx)(n(),{id:"thumb-channel",className:"channel_bck_img",src:k.logo_url,alt:r.displayAppName,width:200,height:80},N)})]})})}):(0,s.jsxs)("div",{className:"image-part",onClick:t=>e.ondetailsclick(t),children:[C&&!t&&(0,s.jsx)("span",{className:"premium_lock",children:(0,s.jsx)(n(),{src:r.premiumLocksrc,width:27,alt:"lock",height:27,className:"thumbpic"})}),k.title_image&&k.title_image.url?(0,s.jsx)("div",{className:"card-modal-logo-img",children:(0,s.jsx)("div",{className:"inner-card-image-logo",children:(0,s.jsx)(n(),{id:"title-image-"+N,alt:"Cineverse-logo",width:180,height:150,src:k.title_image.url,className:"feature-logo-cont-img"})})}):(0,s.jsx)("div",{className:"title-feature-text",children:k?k.title:""}),(0,s.jsxs)("div",{className:"hovered-cont",children:[(0,s.jsx)(s.Fragment,{children:k.is_playback_available&&h&&(0,s.jsx)(s.Fragment,{children:(0,s.jsx)(g,{mediaUrl:k&&k.promo_info&&k.promo_info.promo_video_url?k.promo_info.promo_video_url:"",isLooped:!1,startTime:k&&k.promo_info&&k.promo_info.promo_start>=0?k.promo_info.promo_start:null,endTime:k&&k.promo_info&&k.promo_info.promo_end>=0?k.promo_info.promo_end:null,showVideo:()=>{var e=document.getElementById("backVplayer");e&&(e.style.zIndex=2)},showMuteButton:!0,videoEnded:()=>{p(!1),v(!1)},itemID:k.item_id,isVideoPlayble:!0})})}),(0,s.jsxs)("div",{className:r.isDove?"dove-grid-image-fade":"grid-image-fade",onClick:e=>{"live"==k.type&&((0,d.d8)("navCat","livetv_search"),a.push({pathname:"/livetv/",query:{q:k.item_id}},"/livetv?q="+k.item_id,{shallow:!0}))},children:[k&&"live"==k.streamtype&&(0,s.jsx)("div",{className:"live-image-xsmall",children:(0,s.jsx)(n(),{src:"//images/live_small_icon.png",alt:"Cineverse_icon",width:"40",height:"40"})}),((null==k?void 0:k.subscriber_type)=="purchase"||"rental"==k.subscriber_type)&&k.sub_channel&&!k.sub_channel.includes("row8")?(0,s.jsx)("div",{className:"rental-image-xsmall",children:(0,s.jsx)(n(),{src:"//images/".concat(r.a
1ppName,"/icons/buy-rent.png"),alt:"Cineverse_icon",width:"40",height:"40"})}):"rental"==k.subscriber_type?k.sub_channel&&k.sub_channel.find(e=>"row8"==e)?(0,s.jsx)("div",{className:"roweight-small-gradient",children:(0,s.jsx)("div",{className:"roweight-image-xsmall",children:(0,s.jsx)(n(),{src:"//images/row8_web_logo.svg",alt:"Cineverse-logo",width:"70",height:"20"})})}):(0,s.jsx)(s.Fragment,{children:(null==k?void 0:k.subscriber_type)&&"rental"==k.subscriber_type&&k.products&&k.products.VOD&&k.products.EST?(0,s.jsx)(b,{children:(0,s.jsx)("div",{className:"rental-image-xsmall",children:(0,s.jsx)(n(),{src:"//images/".concat(r.appName,"/icons/buy-rent.png"),alt:"Cineverse_icon",width:"40",height:"40"})})}):(0,s.jsx)(b,{children:(0,s.jsx)("div",{className:"rental-image-xsmall",children:(0,s.jsx)(n(),{src:"//images/".concat(r.appName,"/icons/buy-rent.png"),alt:"Cineverse-icon",width:"40",height:"40"})})})}):(0,s.jsx)(s.Fragment,{}),(0,s.jsx)(n(),{className:"featurimg",src:k.full_bg_hd?k.full_bg_hd:E,alt:r.displayAppName,width:1280,height:720,loading:"lazy"},N)]})]})]})};let b=v.ZP.div.withConfig({componentId:"sc-dc70c7d0-0"})(["position:absolute;bottom:0;left:0;height:100%;width:100%;z-index:1;border-radius:6px;overflow:hidden;background:#000000;background:-moz-linear-gradient( 134deg,#000000 0%,rgba(0,207,151,0) 40% );background:-webkit-linear-gradient( 134deg,#000000 0%,rgba(0,207,151,0) 40% );background:linear-gradient(134deg,#000000 0%,rgba(0,207,151,0) 40%);"]),y=v.ZP.div.withConfig({componentId:"sc-dc70c7d0-1"})(["background:rgb(0,0,0);background:linear-gradient(0deg,rgb(0 0 0) 0%,rgb(31 31 31) 100%);border-radius:8px !important;border:2px solid "," !important;"],r.channelPrimaryColor),x=v.ZP.div.withConfig({componentId:"sc-dc70c7d0-2"})(["position:relative;height:","px;"],e=>e.heightof?e.heightof+30:200)},85639:function(e,t,i){"use strict";var s=i(85893);i(67294);var o=i(45312);t.Z=e=>{let{channelUIConfigData:t}=e,{config:i}=o.defaultUiConfig,a=void 0!==t&&void 0!==t.home&&t.home.asset_short_detail_text_color?t.home.asset_short_detail_text_color:i.home.asset_short_detail_text_color?i.home.asset_short_detail_text_color:"";return(0,s.jsx)(s.Fragment,{children:(0,s.jsx)("span",{style:{color:a},children:e.txt.length>150?e.txt.substring(0,150).trim()+"...":e.txt})})}},31028:function(e,t,i){"use strict";var s=i(85893);i(67294);var o=i(68777),a=i(45312);let n=o.ZP.button.withConfig({componentId:"sc-7efb6954-0"})(["border-radius:6px;background-color:",";font-size:14px;font-weight:bold;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:center;border:",";color:",";align-text:center;cursor:pointer;min-height:30px;width:45%;&:disabled{opacity:0.3;cursor:not-allowed;}"],e=>a.isDove?"#f7c1bc":e.btnclr?e.btnclr:a.channelPrimaryColor,e=>a.isDove?"2px solid #fff":"0",e=>a.isDove?"#885a5a !important":e.btnclr?"white":a.formbuttonTextColor);t.Z=function(e){let{children:t,...i}=e;return(0,s.jsx)(n,{...i,children:t})}},59047:function(e,t,i){"use strict";var s=i(85893);i(67294);let o=i(68777).ZP.p.withConfig({componentId:"sc-a5c93db1-0"})(["color:rgba(255,255,255,0.78);font-size:12px;font-stretch:normal;font-style:normal;line-height:normal;letter-spacing:normal;text-align:center;"]);t.Z=function(e){let{children:t,...i}=e;return(0,s.jsx)(o,{...i,children:t})}},83989:function(e,t,i){"use strict";var s=i(85893);i(67294);let o=i(68777).ZP.div.withConfig({componentId:"sc-5e878d2a-0"})(["display:flex;flex-direction:column;border-radius:5px;width:100%;padding:0px 68px;justify-content:center;justify-items:center;@media (max-width:550px){padding:0px 20px 40px;}@media (max-width:1200px){padding:0px 35px;}"]);t.Z=function(e){let{children:t,...i}=e;return(0,s.jsx)(o,{...i,children:t})}},41357:function(e,t,i){"use strict";var s=i(85893);i(67294);var o=i(68777),a=i(45312);let n=o.ZP.button.withConfig({componentId:"sc-c5ebd21d-0"})(["background:",";border-radius:",";font-size:16px;border:",";cursor:pointer;width:100px;height:50px;color:",";transition:",";&:disabled{opacity:0.3;}@media (min-width:600px){&:hover{transform:",";opacity:0.8;border:",";}}"],e=>void 0!==e.button_background&&e.button_background?e.button_background:e.isDove?"#f7c1bc":a.channelPrimaryColor,e=>e.isDove?"16px !important":"15px",e=>e.isDove?"2px solid white":"none",e=>e&&e.buttonTexclr?e.isDove?"#885a5a":e.buttonTexclr:e.isDove?"#885a5a":"white",e=>e.isplaywatchbtnHover&&"transform 0.25s cubic-bezier(0.22, 1, 0.36, 1),\n    box-shadow 0.25s ease,\n    opacity 0.25s ease",e=>e.isplaywatchbtnHover&&"translateY(-3px) scale(1.04)",e=>e.isDove?"2px solid #885a5a":"none");t.Z=function(e){let{children:t,...i}=e;return(0,s.jsx)(n,{className:i.className,onClick:()=>i.onClickPlay(),buttonTexclr:a.buttonTextColor,isDove:a.isDove,isplaywatchbtnHover:a.isplaywatchbtnHover,children:t})}},9479:function(e,t,i){"use strict";var s=i(85893);
1i(67294),t.Z=e=>{let t=e.msg?e.msg:"This title is not available in your location.";return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsx)("div",{className:"location-cont-small",children:(0,s.jsx)("div",{className:"location-inner-cont",children:(0,s.jsx)("div",{className:"location-inner-text-small",children:t})})}),(0,s.jsx)("div",{className:"swipe",children:(0,s.jsx)("div",{className:"swipe-confirm-btn"})})]})}},89914:function(e,t,i){"use strict";i.d(t,{E:function(){return a}});var s=i(81354),o=i.n(s);function a(e){let t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(t)return e;if(!e)return console.error("CDN URL is required - no default fallback available"),null;if([".m3u8"].some(t=>null==e?void 0:e.toLowerCase().endsWith(t)),!e.startsWith("http"))return console.error("CDN URL must be a valid HTTP/HTTPS URL"),null;let i=function(e){try{return o().AES.encrypt(e,"d0e5a4cf1b791825734aadfe874b3ccf").toString()}catch(e){return console.error("Failed to encode CDN URL:",e),""}}(e);return"/api/cine-media/master?mdid=".concat(encodeURIComponent(i))}},73227:function(e){e.exports={wishlist_tooltip_strip:"actionshelftooltip_wishlist_tooltip_strip__05T53",fade_self:"actionshelftooltip_fade_self__B2Ad8",moreinfo_tooltip_strip:"actionshelftooltip_moreinfo_tooltip_strip__dAKgb",fadeinfo_self:"actionshelftooltip_fadeinfo_self__28LIm"}}}]);

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.