PageSourceSearch

https://www.channel5.com/static/js/9758.15693d2a.chunk.js

js channel5.com collected 2026-09-24 08:39:11 UTC 14,879 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkc5_web=self.webpackChunkc5_web||[]).push([[9758],{24662:function(e,t){t.A={headline1:"typography_headline1__7DFaX",headline2:"typography_headline2__C-bnj",headline3:"typography_headline3__2WpRr",headline4:"typography_headline4__i+vWN",headline5:"typography_headline5__pdjMf",subtitle1:"typography_subtitle1__bYi+T",subtitle2:"typography_subtitle2__I00U1",body1:"typography_body1__14axD",body2:"typography_body2__FAixG",button:"typography_button__sJGbq",caption:"typography_caption__nSby2",overline:"typography_overline__WVeAh",sectionTitleLabel:"typography_sectionTitleLabel__Pzwu3",ellipsisText:"typography_ellipsisText__78Gz3"}},31869:function(e,t,n){var i=n(62391),a=n(52235);t.A=function(e){var t,n=(0,i.d4)(a.eb),r=(0,i.d4)(a.Ue)(e);return null===n||void 0===n||null===(t=n.webpages)||void 0===t?void 0:t.metadata.find(function(e){return e.id===r})}},35618:function(e,t,n){n.d(t,{A:function(){return o}});var i=n(9950),a=n(72772),r=n(92243),o=function(e){var t=e.metadata;return t?i.createElement(a.A,null,i.createElement("title",null,t.title),i.createElement("meta",{name:"description",content:t.description}),i.createElement("link",{rel:"canonical",href:"".concat((0,r.pc)()).concat(t.page)})):i.createElement(a.A,null,i.createElement("title",null,"5"))}},59758:function(e,t,n){n.r(t),n.d(t,{default:function(){return fe}});var i=n(80296),a=n(9950),r=n(59713),o=function(e){var t=window.history,n=t[e];t[e]=function(t){var i=n.apply(this,arguments),a=new Event(e.toLowerCase());return a.state=t,window.dispatchEvent(a),i}};r.Bd&&(o("pushState"),o("replaceState"));var l,s,c,u=function(e){var t=window.history,n=t.state,i=t.length,a=window.location;return{trigger:e,state:n,length:i,hash:a.hash,host:a.host,hostname:a.hostname,href:a.href,origin:a.origin,pathname:a.pathname,port:a.port,protocol:a.protocol,search:a.search}},d="function"===typeof Event,m=r.Bd&&d?function(){var e=(0,a.useState)(u("load")),t=e[0],n=e[1];return(0,a.useEffect)(function(){var e=function(){return n(u("popstate"))},t=function(){return n(u("pushstate"))},i=function(){return n(u("replacestate"))};return(0,r.on)(window,"popstate",e),(0,r.on)(window,"pushstate",t),(0,r.on)(window,"replacestate",i),function(){(0,r.AU)(window,"popstate",e),(0,r.AU)(window,"pushstate",t),(0,r.AU)(window,"replacestate",i)}},[]),t}:function(){return{trigger:"load",length:1}},h=n(16673),_=n(90694),f=n(45458),g=n(91212),p=n(10467),v=n(62391),y=n(52235),w=n(9985),A=n(25317),b=n(72122),E=n(32268),S=n(29215),I=n(2803),k=n(87411),L=n(30728),N=function(e){var t=e.children,n=e.title;return a.createElement("div",{className:(0,I.A)("gallery",k.A.mbSm)},a.createElement("div",{className:(0,I.A)("gallery__title heading-2 heading-2--light",L.A.title,k.A.mbSm)},n),a.createElement("div",{className:"gallery__container"},t))},T=n(47089),F=n(62552),C=n(22949),M=n(78902),x=n(49648),O=n(48433),R=n(49916),B="MyList_errorMessage__786uZ",D="MyList_title__d-JcJ",U="MyList_subtitle__H+WJJ",G="MyList_totalCount__5Ei7g",P=n(76198),W="Card_card__n1WWz",z=function(e){var t=e.children;return a.createElement("div",{className:W},t)},j=n(24662),J=function(){return a.createElement("svg",{width:"41",height:"40",viewBox:"0 0 41 40",fill:"none",xmlns:"http://www.w3.org/2000/svg"},a.createElement("rect",{x:"1.5",y:"1",width:"38",height:"38",rx:"19",stroke:"#FBF433",strokeWidth:"2"}),a.createElement("path",{d:"M20.5 11V29",stroke:"#FBF433","stroke-width":"2"}),a.createElement("path",{d:"M29.5 20L11.5 20",stroke:"#FBF433","stroke-width":"2"}))},q=function(e){var t=e.onSignIn,n=(0,v.d4)(y.eb);return a.createElement(a.Fragment,null,n&&a.createElement("div",{className:"gallery__empty"},a.createElement(z,null,a.createElement(J,null),a.createElement("p",{className:(0,I.A)(j.A.heading4,D)},"With My List you'll never be without something to watch."),a.createElement("p",{className:(0,I.A)(j.A.subtitle,U)},"Sign in / Register now and start adding shows to My List"),a.createElement(T.$n,{buttonType:"primary wide",buttonText:n.systemMessages.accountSettings.buttonSignIn,onClick:t,className:j.A.subtitle}))))},K=n(64657),Y=n(25433),X="MobileItemList_thumb__tp5DJ",Z="MobileItemList_title__4ZCb3",H="MobileItemList_removeIconBtn__q9SKe",V=n(93047),Q=["title","titleId"];function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)({}).hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},$.apply(null,arguments)}function ee(e,t){var n=e.title,i=e.titleId,r=function(e,t){if(null==e)return{};var n,i,a=function(e,t){if(null==e)return{};var n={};for(var i in e)if({}.hasOwnProperty.call(e,i)){if(-1!==t.indexOf(i))continue;n[i]=e[i]}return n}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,Q);return a.createElement("svg",$({width:33,height:32,viewBox:"0 0 33 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",ref:t,"aria-labelledby":i},r),n?a.createElement("title",{id:i},n):null,l||(l=a.createElement("rect",{x:.600098,width:32,height:32,rx:16,fill:"#12253F"})),s||(s=a.createElement("rect",{x:1.6001,y:1,width:30,height:30,rx:15,stroke:"white",strokeOpacity:.7,strokeWidth:2})),c||(c=a.createElement("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M16.6005 17.4137L20.9846 21.7977L22.3988 20.3835L18.0148 15.9995L22.3988 11.6154L20.9846 10.2012L16.6005 14.5853L12.2165 10.2012L10.8022 11.6154L15.1863 15.9995L10.8023 20.3835L12.2165 21.7977L16.6005 17.4137Z",fill:"white",fillOpacity:.7})))}var te=a.forwardRef(ee),ne=(n.p,function(e){var t=e.list,n=e.onRemove,i=e.onTileClick;return a.createElement(a.Fragment,null,t.map(function(e){var t=e.asset,r=e.imgUpdated,o=e.title,l=e.contentId,s=e.friendlyName,c=e.showFriendlyName;return a.createElement("div",{className:"gallery__item mobile",key:l},a.createElement(V.N_,{to:(0,w.sp)("/".concat(c||s)),className:X,onClick:function(){return i&&i(e)}},a.createElement(T._V,{src:t,updatedAt:r||void 0,threshold:300,alt:""})),a.createElement("div",{className:(0,I.A)("text-content",k.A.mlDefault)},a.createElement("p",{className:(0,I.A)(k.A.mbXs,Z)},o)),a.createElement("button",{className:H,onClick:function(){return n(l)}},a.createElement(te,null)))}))}),ie=n(46806),ae="GridItems_highlighted__KAeEj",re=function(e){return e[e.Desktop=0]="Desktop",e[e.Mobile=1]="Mobile",e}({}),oe=function(e){var t=e.content,n=e.onRemove,i=e.viewType,r=e.highlightIndex,o=(0,ie.h)(),l=function(e){o({containerType:"Grid",containerId:"my-list",containerName:"My List",tileName:e.showFriendlyName||e.title||""})};return 0===t.length?a.createElement("div",{className:"gallery__empty"},a.createElement(z,null,a.createElement(J,null),a.createElement("p",{className:(0,I.A)(j.A.headline4,D)},"You have no shows in your list"),a.createElement("p",{className:(0,I.A)(j.A.subtitle1,U)},"Start adding shows to My List"))):i===re.Desktop?a.createElement(a.Fragment,null,t.map(function(e,t){return a.createElement("div",{className:"gallery__item",key:e.contentId,onClick:function(){return l(e)}},a.createElement(Y.FA,{type:K.nb.SHOW,size:K.o$.DEFAULT,content:e,removeable:!0,handleRemove:n,classes:{border:r===t?ae:void 0}}))})):a.createElement(ne,{list:t,onRemove:n,onTileClick:l})},le=n(20840),se=n(31869),ce=n(35618),ue=n(26700),de=n(95621),me=n(64485),he=function(e){var t=e.addingShowId,n=e.onSignIn,r=(0,A.O)().removeFavourite,o=(0,v.d4)(O.mB),l=o.isLoggedIn,s=o.loading,c=(0,v.d4)(y.VX),u=(0,v.d4)(y.RI),d=(0,a.useState)(null),m=(0,i.A)(d,2),h=m[0],_=m[1],L=(0,a.useState)(0),D=(0,i.A)(L,2),U=D[0],W=D[1],z=(0,a.useState)(),j=(0,i.A)(z,2),J=j[0],K=j[1],Y=(0,a.useRef)(null),X=(0,b.A)(Y,{root:null,threshold:0}),Z=(0,M.z)(),H=(0,i.A)(Z,1)[0],V=(0,a.useState)(!1),Q=(0,i.A)(V,2),$=Q[0],ee=Q[1],te=(0,se.A)(le.I.MY_LIST),ne=(0,ue.A)(),ie=(0,a.useState)(-1),ae=(0,i.A)(ie,2),he=ae[0],_e=ae[1],fe=(0,me.j)().isKidsModeSet,ge=(0,E.A)(function(){var e=(0,p.A)((0,g.A)().m(function e(t){var n,i,a;return(0,g.A)().w(function(e){for(;;)switch(e.p=e.n){case 0:if(e.p=0,J){e.n=1;break}return e.a(2,void 0);case 1:if(!t){e.n=3;break}return e.n=2,r(t);case 2:a=e.v,e.n=4;break;case 3:a=void 0;
1case 4:return n=a,(i=J.find(function(e){return e.contentId===t}))&&H.eventTracking({name:x.fC.showUnfavourited,category:{primaryCategory:x.mm.favourite}},{showTitle:i.showFriendlyName}),K(function(e){return e&&e.filter(function(e){return e.contentId!==t})}),e.a(2,n);case 5:e.p=5,e.v,ee(!0);case 6:return e.a(2)}},e,null,[[0,5]])}));return function(t){return e.apply(this,arguments)}}(),[J]),pe=(0,i.A)(ge,2)[1],ve=(0,S.A)((0,p.A)((0,g.A)().m(function e(){var t,n,i,a,r;return(0,g.A)().w(function(e){for(;;)switch(e.n){case 0:if(l){e.n=1;break}return e.a(2,[]);case 1:return t=fe?"only":"include",e.n=2,(0,de.b7)(t);case 2:return n=e.v,i=n.total_items,a=n.content,_(i),i!==h&&K(void 0),0===i?K([]):(r=a.map(function(e){return(0,w.qJ)(e,c?c.size:C.uQ.DESKTOP,C.hv.CHANNEL)}),K(function(e){if(!e)return r;var t=r.filter(function(t){return!e.some(function(e){return e.contentId===t.contentId})});return[].concat((0,f.A)(e),(0,f.A)(t))})),H.pageReady(),e.a(2,a)}},e)})),[l,fe,h]),ye=s===F.G.Succeeded||s===F.G.Failed,we=c&&c.size===C.uQ.DESKTOP;return(0,a.useEffect)(function(){X&&X.isIntersecting&&!ve.loading&&W(function(e){return e+12})},[ve.loading,X]),(0,a.useEffect)(function(){var e;[F.G.Idle,F.G.Pending].includes(null===u||void 0===u?void 0:u.loading)||H.pageTracking(x.eW.SITE.FAVOURITES,{childDirected:(null===(e=u.favourites)||void 0===e?void 0:e.child_directed)||!1})},[H,u.loading]),(0,a.useEffect)(function(){ve.error&&ne("My list is unavailable at the moment. Please try again later")},[ve.error,ne]),(0,a.useEffect)(function(){if(l&&t&&J){var e,n=J.length?J.findIndex(function(e){return e.contentId.toString()===t.toString()}):-1;return-1!==n&&(_e(n),e=window.setTimeout(function(){_e(-1)},3e3)),function(){e&&window.clearTimeout(e)}}},[l,J,t]),a.createElement(a.Fragment,null,a.createElement(ce.A,{metadata:te}),a.createElement("h1",{className:R.A.hidden},"My List"),a.createElement(N,{title:a.createElement("span",null,"My List ",h?a.createElement("span",{className:G},"".concat(h," shows")):"")},ve.error?a.createElement("div",{className:(0,I.A)("gallery__empty",B)},"My list is unavaible at the moment. Please try again later."):a.createElement(a.Fragment,null,ye?l&&c?null===h||void 0===J||ve.loading?a.createElement(T.Rh,{type:T.Jp.Tile,number:4,height:we?180:90,className:(0,I.A)(!we&&k.A.mbDefault)}):a.createElement(a.Fragment,null,a.createElement(oe,{content:J,highlightIndex:he,viewType:we?re.Desktop:re.Mobile,onRemove:function(e){pe(e)}}),U+12<h&&a.createElement("div",{ref:Y},a.createElement(T.Rh,{type:T.Jp.Tile,number:1,height:we?180:100}))):a.createElement(q,{onSignIn:n}):null)),a.createElement(P.A,{open:$,onConfirm:function(){return ee(!1)}}))},_e=n(24476),fe=function(){var e=m(),t=(0,h.W6)(),n=new URLSearchParams(e.search),r=(0,a.useState)(n.get("showId")||void 0),o=(0,i.A)(r,1)[0],l=(0,a.useState)(n.get("showTitle")||void 0),s=(0,i.A)(l,1)[0],c=(0,a.useState)(n.get("showFriendlyName")||void 0),u=(0,i.A)(c,1)[0],d=(0,i.A)((0,_.l)({showId:o,showTitle:s,showFriendlyName:u}).add,2),f=d[0],g=d[1],p=(0,_.l)({showId:o,showTitle:s,showFriendlyName:u}).check,y=(0,v.d4)(O.mB),w=y.isLoggedIn,A=y.loading,b=(0,a.useState)(!1),E=(0,i.A)(b,2),S=E[0],I=E[1],k=(0,v.wA)();return(0,a.useEffect)(function(){if(o&&s){if(!w)return;p.loading||p.value||g()}},[g,p.loading,p.value,w,o,s]),(0,a.useEffect)(function(){e.search&&(!f.loading&&f.value||!p.value)&&t.replace({search:"",hash:window.location.hash})},[f.value,t,p.value,f.loading,p.loading,e.search]),(0,a.useEffect)(function(){w&&p&&p.value&&k(O.Ay.actions.setNotifyUserData({title:"Success",message:"This show was added to My List",displayIcon:!0,type:"success"}))},[w,p,k]),(0,a.useEffect)(function(){o&&s&&!A&&!w&&I(!0)},[w,o,s,u,A]),a.createElement(a.Fragment,null,void 0===f.value||f&&f.value?a.createElement(he,{addingShowId:o,onSignIn:function(){return I(!0)}}):null,S&&a.createElement(_e.A,{open:!0,onClose:function(){return I(!1)},signInReason:x.jo.favouritesList}))}},76198:function(e,t,n){n.d(t,{A:function(){return d}});var i=n(9950),a=n(25433),r="RequestFailDialog_requestErrorDialog__573Us",o="RequestFailDialog_modal__
1CfiHh",l=n(92356),s=n(95368),c=n(29613),u=n(2803),d=function(e){var t=e.open,n=e.onConfirm;return t?i.createElement(a.yZ,{open:!0,paperProps:{className:(0,u.A)(o,l.A.modal)}},i.createElement(s.z,{errorCode:c.H.RequestFail,classes:{root:r},onCtaClick:n})):null}},90694:function(e,t,n){n.d(t,{l:function(){return d}});var i=n(91212),a=n(10467),r=n(80296),o=n(78902),l=n(25317),s=n(29215),c=n(32268),u=n(49648),d=function(e){var t=e.showId,n=e.showTitle,d=e.showFriendlyName,m=(0,l.O)(),h=m.getFavourite,_=m.setFavourite,f=m.removeFavourite,g=(0,o.z)(),p=(0,r.A)(g,1)[0],v=(0,s.A)((0,a.A)((0,i.A)().m(function e(){var n,a;return(0,i.A)().w(function(e){for(;;)switch(e.n){case 0:if(!t){e.n=2;break}return e.n=1,h(t);case 1:a=e.v,e.n=3;break;case 2:a=!1;case 3:return n=a,e.a(2,Boolean(n))}},e)})),[t]),y=(0,c.A)((0,a.A)((0,i.A)().m(function e(){return(0,i.A)().w(function(e){for(;;)switch(e.n){case 0:if(!t){e.n=1;break}return e.n=1,f(t);case 1:return t&&p.eventTracking({name:u.fC.showUnfavourited,category:{primaryCategory:u.mm.favourite}},{showTitle:d}),e.a(2,!0)}},e)})),[t]),w=(0,r.A)(y,2),A=w[0],b=w[1],E=(0,c.A)((0,a.A)((0,i.A)().m(function e(){return(0,i.A)().w(function(e){for(;;)switch(e.n){case 0:if(!(t&&n)){e.n=1;break}return e.n=1,_(t,n);case 1:return t&&p.eventTracking({name:u.fC.showFavourited,category:{primaryCategory:u.mm.favourite}},{showTitle:d}),e.a(2,!0)}},e)})),[t,n]),S=(0,r.A)(E,2);return{check:v,add:[S[0],S[1]],remove:[A,b]}}},92356:function(e,t){t.A={headline1:"Settings_headline1__Os5B8",headline2:"Settings_headline2__WKKpS",headline3:"Settings_headline3__FC0Lh",headline4:"Settings_headline4__L5sJI",headline5:"Settings_headline5__tsw68",subtitle1:"Settings_subtitle1__IS8h-",subtitle2:"Settings_subtitle2__XCrwf",body1:"Settings_body1__B3Gfm",body2:"Settings_body2__I+x+p",button:"Settings_button__zEXis",caption:"Settings_caption__9I0jl",overline:"Settings_overline__vS6kt",sectionTitleLabel:"Settings_sectionTitleLabel__0Gec7",ellipsisText:"Settings_ellipsisText__tz0XY",section:"Settings_section__Gbn3m",root:"Settings_root__+h5RS",containerPadding:"Settings_containerPadding__uqgOU",main:"Settings_main__4ZGYt Settings_containerPadding__uqgOU",userInfo:"Settings_userInfo__lBi25",loginButton:"Settings_loginButton__GZQYh",logOutBtn:"Settings_logOutBtn__R9hC8",modalActions:"Settings_modalActions__f9Lni",modalCloseButton:"Settings_modalCloseButton__TyDXb",modalYesNo:"Settings_modalYesNo__e1sUy",footer:"Settings_footer__ZodvG",header:"Settings_header__sS2By",disabled:"Settings_disabled__xrK7h",errorMain:"Settings_errorMain__uEpMQ"}}}]);

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.