PageSourceSearch

https://www.screambox.com/_next/static/chunks/pages/preview/channel/[channel-name]-284f63045a0edc81.js

js screambox.com collected 2026-10-02 06:47:08 UTC 8,150 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2864,571,4003],{86056:function(e,n,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/preview/channel/[channel-name]",function(){return t(8045)}])},65646:function(e,n,t){"use strict";var a=t(85893),s=t(89755),i=t.n(s);t(67294);var o=t(68777);n.Z=function(e){return(0,a.jsx)(r,{children:(0,a.jsxs)(l,{children:[(0,a.jsx)(u,{children:(0,a.jsx)(i(),{src:"../../images/errorpage.png",width:"45",height:"40",alt:"invalid-img-png"})}),(0,a.jsxs)(h,{children:[(0,a.jsx)(c,{children:"Invalid Token"}),(0,a.jsx)(d,{children:"Invalid or expired token. Please request a new one."})]})]})})};let r=o.ZP.div.withConfig({componentId:"sc-d24c3394-0"})(["height:90vh;display:flex;justify-content:center;align-items:center;"]),l=o.ZP.div.withConfig({componentId:"sc-d24c3394-1"})(["display:flex;flex-direction:column;justify-content:center;align-items:center;border:1px solid rgb(101,101,101);background:#181818;border-radius:8px;padding:2rem;"]),c=o.ZP.h1.withConfig({componentId:"sc-d24c3394-2"})(["color:#fff;text-align:center;"]),d=o.ZP.p.withConfig({componentId:"sc-d24c3394-3"})(["color:#bcbcbc;text-align:center;"]),u=o.ZP.div.withConfig({componentId:"sc-d24c3394-4"})([""]),h=o.ZP.div.withConfig({componentId:"sc-d24c3394-5"})(["margin-top:1.25rem;"])},79888:function(e,n,t){"use strict";var a=t(83300),s=t.n(a),i=t(2568),o=t.n(i),r=t(32415),l=t(45312),c=t(67294),d=t(33299);t(11196);var u=t(46013);let h=e=>{try{return new URL(e),!0}catch(e){return!1}};n.Z=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],[t,a]=(0,c.useState)(null),[i,g]=(0,c.useState)(!0),[m,f]=(0,c.useState)(null),{data:p,status:x}=(0,d.useSession)(),v=(0,c.useMemo)(()=>e?n?(0,r.tY)(e):e:null,[e,n]),y=(0,c.useMemo)(()=>{if(!v)return null;let e={"Content-Type":"application/json",cauth:o()(l.appTag),"mp-tag":(0,r.VZ)(v)};if(!e.cauth||!e["mp-tag"])return null;let n="authenticated"===x?sessionStorage.getItem("proxy-session-token"):null;if("unauthenticated"===x&&sessionStorage.getItem("proxy-session-token")&&sessionStorage.removeItem("proxy-session-token"),n)try{let t=(0,u.P)(n,e.cauth,e["mp-tag"]);return{...e,...t}}catch(e){console.error("useFetch: ❌ Failed to generate security headers",e)}else console.log("useFetch: ⚠️  No session token available, using basic headers only");return e},[v,x]);return(0,c.useEffect)(()=>{if(!v){f("No URL provided or invalid URL"),g(!1);return}if(!h(v)){f("Invalid URL format"),g(!1);return}if(!y){f("Failed to generate request headers"),g(!1);return}f(null),g(!0);let e=new AbortController,n=!1,t=setTimeout(()=>{n=!0,e.abort()},6e4),i=async()=>{try{let n=await s()(l.apiGetURL,{headers:y,next:{revalidate:3600},signal:e.signal,credentials:"include"});if(!n.ok){if(401===n.status)throw console.log("\uD83D\uDD12 Received 401 - clearing session token and retrying"),sessionStorage.removeItem("proxy-session-token"),Error("Authentication failed - session expired");throw Error("HTTP error! status: ".concat(n.status))}let t=await n.json();if(!t||!t.data||!t.data.data)throw Error("Invalid response structure from server");let i=(0,r.pe)(t.data.data).toString(),o=JSON.parse(i);a(o)}catch(e){if("AbortError"===e.name){n&&f("Request timeout");return}console.error("\uD83D\uDEA8 Fetch error:",e),f(e.message||"An error occurred")}finally{(!e.signal.aborted||n)&&g(!1),clearTimeout(t)}};return"loading"===x?g(!0):"authenticated"===x?i():"unauthenticated"===x&&g(!0),()=>{clearTimeout(t),e.signal.aborted||e.abort()}},[v,y,x]),{data:t,isLoading:i,error:m}}},8045:function(e,n,t){"use strict";t.r(n),t.d(n,{__N_SSP:function(){return y}});var a=t(85893),s=t(11163),i=t(2664),o=t(67294),r=t(79888),l=t(89755),c=t.n(l),d=t(94504),u=t.n(d),h=t(22024),g=t(60520),m=t(85323),f=t(32415),p=t(37205),x=t(61730),v=t(65646),y=!0;n.default=(0,s.withRouter)((0,i.$j)()(function(e){let n=(0,s.useRouter)(),{store:t}=(0,o.useContext)(i.ET),[l,d]=(0,o.useState)(!1),[y,j]=(0,o.useState)(!0),w=n.query["channel-name"];(0,f.d8)("redirectpath","channel/"+w);let b=(0,x.Z)("(min-width : 700px)"),_=e.channelimg,k=e.channelimgDim,N=e.bg_image,I=e.channelUrl&&e.channelUrl,E=null;if(I){let{data:e,isLoading:n,error:t}=(0,r.Z)(I,!1);E=e}function P(){d(!1),j(!0)}(0,o.useEffect)(()=>((0,f.jx)("home",!1),(0,f.jx)("livetv",!1),(0,f.jx)("movies",!1),(0,f.jx)("shows",!1),(0,f.jx)("watchlist",!1),(0,f.jx)("genres",!1),(0,f.jx)("find",!1),(0,f.jx)("login",!1),()=>{(0,f.jx)("home",!1)}),[]),(0,o.useEffect)(()=>{(0,f.Sl)(e);let n=document.getElementById("header-nav"),t=document.getElementById("separatorLine"),a=document.getElementById("footer"),s=document.getElementById("matchpoint_footer");return document.getElementById("main-container"),n&&(n.style.display="none"),t&&(t.style.display="none"),a&&s&&(a.style.display="none",s.style.display="none"),()=>{n&&(n.style.display="flex"),t&&(t.style.display="block"),a&&(a.style.display="block")}},[e]);let S=300,C=200,L=(0,f.Mj)(k,!0);if(S=L.width,C=L.height,"success"!==e.dmsStatus)return(0,a.jsx)(h.nl,{});
1if(e&&e.findPreviewValueURL&&"failure"==e.findPreviewValueURL.result||!e.findPreviewValueURL)return(0,a.jsx)(v.Z,{});if(!E)return(0,a.jsx)(g.VG,{});if(E&&0===Object.keys(E.subCategories).length||void 0===E)return(0,a.jsxs)("div",{className:u().channelBackground,style:{backgroundImage:"linear-gradient(transparent 30%, black 90%),url(".concat(N,")")},children:[(0,a.jsx)("div",{className:u().channelLogo,children:_&&(0,a.jsx)(c(),{src:"/"+_,height:C,width:S,alt:"channel-logo"})}),(0,a.jsx)("div",{className:"noData-nopadding",style:{minHeight:"300px"},children:(0,a.jsx)(h.Oe,{})})]});if(E&&e.urls){let n=E.subCategories;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsxs)("div",{className:"channel-promo-new fadeInOut ",style:{position:"relative"},children:[y&&!l&&e.promo_url&&b?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)("div",{className:"channel-video fadeInOut",children:(0,a.jsx)(p.Z,{mediaUrl:e.promo_url,shrinkLogo:()=>{},animateChannelLogo:()=>{let e=document.getElementById("channel-logo-cont");e&&setTimeout(()=>{e.classList.add("channel-video-logo")},500)},showMuteButton:!0,isLooped:!1,videoReplayFunc:function(){d(!0),j(!1)}})}),(0,a.jsx)("div",{id:"channel-logo-cont",className:"channel-logo",children:(0,a.jsx)(c(),{src:"/"+_,height:C,width:S,alt:"channel-logo"})}),(0,a.jsx)("div",{className:"black-shadow-channel-logo"})]}):(0,a.jsxs)("div",{className:"",children:[(0,a.jsx)("div",{className:"fadeInOut",children:(0,a.jsx)("div",{className:"channel-promo-bg",style:{backgroundImage:"linear-gradient(transparent 80%, black 99%),url(".concat(N,")"),position:"relative",height:"70vh",width:"100%",backgroundSize:"cover"}})}),(0,a.jsx)("div",{className:b?"channel-video-logo-center":"channel-video-logo-mobile",style:{height:"100%"},children:(0,a.jsx)(c(),{className:"",src:"/"+_,height:b?C:200,width:b?S:300,alt:"channel-logo"})})]}),l&&(0,a.jsx)("div",{className:"mute-button-div replay-channel-promo",style:{bottom:"28px"},onClick:()=>P(),children:(0,a.jsx)(c(),{src:"//images/icons/reload.png",onClick:()=>P(),alt:"replay",width:20,height:20,priority:!0})})]}),(0,a.jsx)("div",{className:"channel-shelves",children:(0,a.jsx)(m.default,{isPreviewShelf:!0,urls:e.urls,showChannel:!1,subCategories:n,dataFrom:"channel",channelName:w,divClass:"",subType:e&&e.planStatus&&e.planStatus.plan?e.planStatus.plan:"NO_PLAN",...e})})]})}return E&&e.urls?(0,a.jsx)(h.nl,{}):(0,a.jsx)("div",{})}))},94504:function(e){e.exports={channelBackground:"channelPage_channelBackground__2yNG9",channelLogo:"channelPage_channelLogo__cxwCf","cat-title-medium":"channelPage_cat-title-medium__AETec",noData:"channelPage_noData__JM6QW"}},83300:function(e,n){"use strict";var t=function(){if("undefined"!=typeof self)return self;if("undefined"!=typeof window)return window;if(void 0!==t)return t;throw Error("unable to locate global object")}();e.exports=n=t.fetch,t.fetch&&(n.default=t.fetch.bind(t)),n.Headers=t.Headers,n.Request=t.Request,n.Response=t.Response}},function(e){e.O(0,[9412,1758,6595,5675,7444,9732,3127,206,6481,2888,9774,179],function(){return e(e.s=86056)}),_N_E=e.O()}]);

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.