1"use strict";(()=>{(self.webpackChunkweb_v2=self.webpackChunkweb_v2||[]).push([[7811],{46307(N,A,i){i.r(A);var C=i(43059);const s=C.ScheduleTrayModule;i.d(A,["default",0,s])},3088(N,A,i){i.r(A);var C=i(61171),s=i.n(C),U=i(18987),I=i(3795),P=i(43543),D=i(12308),M=i(57261);const g={userdetails:{}},c=async({userdetails:p})=>{try{var a,o,r,f,O;g.user=p||g.user;const b=await m(g.user.authorizationToken);if(g.user={...g.user,...b},localStorage.setItem("profile-authenticated",!0),U.default.set("userStateToken",JSON.stringify(b==null||(a=b.data)===null||a===void 0?void 0:a.userState)),(0,D.setStorageItem)("AuthenticationStore",g),!((O=app_data)===null||O===void 0||(f=O.appcmsMain)===null||f===void 0||(r=f.features)===null||r===void 0||(o=r.spoilerControl)===null||o===void 0)&&o.enable){var E;const w=(0,M.wm)();(0,M.Dv)(g,w),await(0,M.lj)(g==null||(E=g.user)===null||E===void 0?void 0:E.userId,w)}else(0,D.setStorageItem)("AuthenticationStore",g);const u=(0,D.getStorageItem)("AuthenticationStore");return s().publish("AuthenticationStore",u),g.user}catch(b){throw console.error("Error updating authorization store:",b),b}},m=p=>{var a,o,r;let O={site:(r=window)===null||r===void 0||(o=r.app_data)===null||o===void 0||(a=o.site)===null||a===void 0?void 0:a.siteInternalName},E=()=>{};return(0,I.U)({type:"userIdentity",variables:O,cb:E}).then(async b=>(0,P.Sk)())};i.d(A,["AuthorisationStore",0,g,"updateAuthorisationStore",0,c])},47281(N,A,i){i.r(A);var C=i(61171),s=i.n(C);const U=e=>{s().publish("apploading",e)},I=e=>{s().publish("redirect",e)},P=e=>{s().publish("redirect-options",e)},D=e=>{s().subscribe("redirect-options",e)},M=e=>{s().subscribe("update-error-message",e)},g=e=>{s().publish("update-error-message",e)},c=e=>{s().subscribe("video-error",e)},m=e=>{s().publish("video-error",e)},p=e=>{s().publish("user-created",e)},a=e=>{s().subscribe("user-created",e)},o=e=>{s().subscribe("notification-message",e)},r=e=>{s().publish("notification-message",e)},f=e=>{s().subscribe("scroll-into-view",e)},O=e=>{s().publish("scroll-into-view",e)},E=e=>{s().unsubscribe("user-created",e)},b=e=>{s().subscribe("card-disabled",e)},u=e=>{s().subscribe("global-hide-scores",e)},w=e=>{s().publish("global-hide-scores",e)},d=(e,v)=>{s().subscribe(`module-hide-scores-${e}`,v)},t=(e,v)=>{s().publish(`module-hide-scores-${e}`,v)};i.d(A,["enableCardFormEvent",0,b,"publishAppLoading",0,U,"publishErrorUpdate",0,g,"publishGlobalHideScores",0,w,"publishModuleHideScores",0,t,"publishNotificationUpdate",0,r,"publishRedirect",0,I,"publishRedirectWithOptions",0,P,"publishScrollIntoView",0,O,"publishUserCreated",0,p,"publishVideoError",0,m,"subscribeErrorUpdate",0,M,"subscribeGlobalHideScores",0,u,"subscribeModuleHideScores",0,d,"subscribeNotificationUpdate",0,o,"subscribeRedirectWithOptions",0,D,"subscribeScrollIntoView",0,f,"subscribeUserCreated",0,a,"subscribeVideoError",0,c,"unsubscribeUserCreated",0,E])},23823(N,A,i){var C=i(61171),s=i.n(C),U=i(753),I=i(36540);const P=()=>{const m=sessionStorage.getItem("currentPage")||"",p=sessionStorage.getItem("previousPage")||"";return m&&!m.includes("checkout")?`${window.location.origin}${m}`:p&&!p.includes("checkout")?`${window.location.origin}${p}`:window.location.pathname.includes("checkout")?`${window.location.origin}/`:window.location.href},D=m=>{var p,a,o,r,f,O,E;const b=(0,I.O)(sessionStorage.getItem("checkoutInitPageData")),u=(0,I.O)(localStorage.getItem("entitlementToken"));return{pageUrl:(b==null?void 0:b.pageUrl)||((o=window)===null||o===void 0||(a=o.location)===null||a===void 0?void 0:a.href),mvpdProvider:(p=m!=null?m:u==null?void 0:u.mvpd)!==null&&p!==void 0?p:M(),tveProvider:(E=window)===null||E===void 0||(O=E.app_data)===null||O===void 0||(f=O.appcmsPlatform)===null||f===void 0||(r=f.tveSettings)===null||r===void 0?void 0:r.tveProvider}},M=()=>{var m,p,a,o,r,f,O;const E=(0,I.O)(localStorage.getItem("toolboxUserData"));return(m=(p=(a=E==null||(r=E.customer)===null||r===void 0||(o=r.idp)===null||o===void 0?void 0:o.code)!==null&&a!==void 0?a:E==null||(O=E.customer)===null||O===void 0||(f=O.idp)===null||f===void 0?void 0:f.description)!==null&&p!==void 0?p:sessionStorage.getItem("toolboxSelectedMvpdId"))!==null&&m!==void 0?m:null},g=(m,p)=>{const a=D(p),o={ename:U.ANALYTICSEVENTS[m],data:a};s().publish("user-analytics",o)}
1,c=(m,{mvpdProvider:p,error:a,message:o}={})=>{const r={ename:U.ANALYTICSEVENTS[m],data:{...D(p!=null?p:M()),...a!=null||o!=null?{error:a!=null?a:null,message:o!=null?o:null}:{}}};s().publish("user-analytics",r)};i.d(A,["$X",0,g,"GW",0,M,"Ul",0,P,"cB",0,c])},76846(N,A,i){var C=i(61171),s=i.n(C),U=i(44561),I=i(43543),P=i(3088),D=i(92857),M=i(18987),g=i(23823),c=i(12308),m=i(48220),p,a,o,r;const f=(r=window)===null||r===void 0||(o=r.app_data)===null||o===void 0||(a=o.appcmsMain)===null||a===void 0||(p=a.apiConfig)===null||p===void 0?void 0:p.apiBaseUrl,O=window.app_data.appcmsPlatform.tveSettings.tveProvider,E=`mutation ($site: String!, $input: SignInTveInput!) { 2 identitySignInTve(site: $site, input: $input) { 3 userId 4 tveUserId 5 provider 6 providers 7 idpName 8 idpLogo 9 planId 10 } 11 }`,b=({tveUserId:u=null,mvpd:w,zip:d=null,encryptedZip:t=null,path:e="/",resourceIds:v,setIsLoading:n,toolboxAccessToken:h})=>{var S,_,l;if(window.cancel)return;window.cancel=!0;const R=G=>{const B=H=>Math.floor((1+Math.random())*65536).toString(16).substring(1);return B()+B()+"-"+B()+"-"+B()+"-"+B()+"-"+B()+B()+B()};let L=(0,I.IP)(),x=`${f}/graphql`;const y=(0,c.getStorageItem)("AuthenticationStore");let T=y==null?void 0:y.user,W={site:((l=window)===null||l===void 0||(_=l.app_data)===null||_===void 0||(S=_.site)===null||S===void 0?void 0:S.siteInternalName)||null,input:{mvpdProvider:w,provider:w,userId:T==null?void 0:T.userId,idpName:w,email:(T==null?void 0:T.email)||"",platform:"web_browser",device:"web_browser",deviceName:"WEB",deviceId:L,channelIds:v,tveUserId:u||(T==null?void 0:T.userId),toolboxAccessToken:h}};(d!==null||d!==void 0)&&(W.input.adobeMetadata={zip:d}),(t!==null||t!==void 0)&&(W.input.adobeMetadata={...W.input.adobeMetadata,encryptedZip:t}),(0,I.gf)(G=>{var B;let H={"x-api-key":(B=window)===null||B===void 0?void 0:B.xApiKey,authorization:G};if(!h){var K,X,j,Z;(0,g.$X)("TVE_LOGIN_SUCCESS"),(0,g.$X)("TVE_VL_LOGIN_INIT",w),(0,I.iR)({eventName:"tve_vl_login_init",subSection:null,type:"tve",reason:w,status:null,additionalLabel:null,action:"VL Login Init",paymentStatus:null,eventCategory:"Authentication",section:"checkout"}),(0,I.iR)({eventName:"tve_provider_selected",tveProvider:(Z=window)===null||Z===void 0||(j=Z.app_data)===null||j===void 0||(X=j.appcmsPlatform)===null||X===void 0||(K=X.tveSettings)===null||K===void 0?void 0:K.tveProvider,type:"tve",eventCategory:"Authentication",section:"checkout"})}(0,U.Ay)(x,E,W,H).then(z=>{var V,$,k,F;window.cancel=!1;const Q=JSON.parse(sessionStorage.getItem("checkoutInitPageData"));let ee=localStorage.getItem("entitlementToken"),J=JSON.parse(ee),te=(J==null?void 0:J.mvpd)||null,Y={pageUrl:Q==null?void 0:Q.pageUrl,mvpdProvider:te,tveProvider:(F=window)===null||F===void 0||(k=F.app_data)===null||k===void 0||($=k.appcmsPlatform)===null||$===void 0||(V=$.tveSettings)===null||V===void 0?void 0:V.tveProvider};(0,g.$X)("TVE_VL_LOGIN_SUCCESS"),(0,I.iR)({eventName:"tve_vl_login_success",subSection:null,type:"tve",reason:Y==null?void 0:Y.mvpdProvider,status:null,additionalLabel:null,action:"VL Login Success",paymentStatus:null,eventCategory:"Authentication",section:"checkout"});let q=M.default.get("token")&&JSON.parse(M.default.get("token"));const oe=(0,c.getStorageItem)("AuthenticationStore");(0,P.updateAuthorisationStore)({userdetails:{...z==null?void 0:z.identitySignInTve,...J,authorizationToken:q==null?void 0:q.authorizationToken,isSubscribed:(0,m.sm)()}}).then(()=>{s().publish("registerTVE",e)})}).catch(z=>{var V,$,k,F;console.log(z),(0,g.$X)("TVE_VL_LOGIN_FAILURE"),(0,I.iR)({eventName:"tve_vl_login_failure",subSection:null,type:"tve",reason:(F=window)===null||F===void 0||(k=F.app_data)===null||k===void 0||($=k.appcmsPlatform)===null||$===void 0||(V=$.tveSettings)===null||V===void 0?void 0:V.tveProvider,status:null,additionalLabel:null,action:"VL Login Failure",paymentStatus:null,eventCategory:"Authentication",section:"checkout"}),window.cancel=!1,n==null||n(!1),s().publish("apploading",!1),s().publish("update-error-message","error while connecting to TVE")})})};i.d(A,["i",0,b])},92857(N,A,i){var C,s,U,I=i(43543),P=i(12308),D=i(48220);let M="",g="/viewplans",c="/subscription",m="/update";const p="/update";let o=(()=>{var u,w,d,t;let e=(t=window)===null||t===void 0||(d=t.app_data)===null||d===void 0||(w=d.site)===null||w===void 0||(u=w.settings)===null||u===void 0?void 0:u.compliance;return(0,I.ON)(e)})();const r=(u,w,d,t,e)=>b(d).then(v=>v),f=async(u,w)=>{var d;const t=C("AuthenticationStore");let e=t==null?void 0:t.user,v=U(),n=((e==null?void 0:e.email)||(e==null?void 0:e.unverifiedEmail))&&((e==null?void 0:e.unverifiedPhone)||(e==null?void 0:e.phoneNumber))&&!0,h=!!((e!=null&&e.tveProvider||!(e==null||(d=e.tveMetadata)===null||d===void 0)&&d.tveProvider)&&(e!=null&&e.canAuthenticate));return u?v||h?n?"/":m:!1:!u&&h&&n?"/":v?n?"/":m:!1},O=async(u,w,d,t)=>{var e,v;let n=(e=location)===null||e===void 0?void 0:e.pathname,h=await f(w,d),S={managedevices:{routeState:!1,route:"StandaloneManageDevices"},appliedoffers:{routeState:!1,route:"StandaloneAppliedOffer"},personlizationsetup:{routeState:!1,route:"StandalonePersonalization"},"/authentication":{routeState:o.indexOf("/authentication"),route:"/authentication"},"/consent":{routeState:o.indexOf("/consent"),route:"/consent"},"/locate":{routeState:o.indexOf("/locate"),route:"/locate"},"/tve":{routeState:o.indexOf("/tve"),route:"/tve"},"/update":{routeState:o.indexOf("/update"),route:"/update"},"/viewplans":{routeState:o.indexOf("/viewplans"),route:"/viewplans"},"/subscription":{routeState:o.indexOf("/subscription"),route:"/subscription"}};window.onload=()=>{var l;s("routeState",((l=S[n])===null||l===void 0?void 0:l.routeState)+1)},window&&s("routeState",((v=S[n])===null||v===void 0?void 0:v.routeState)+1);let _=o.indexOf(n);return h||(w&&t==g&o[_+1]==c&&_!=-1&&_+2<o.length?o[_+2]:_!=-1&&_+1<o.length?o[_+1]:"/")},E=async u=>{var w,d,t,e,v,n,h;const S=(0,P.getStorageItem)("AuthenticationStore");let _=(0,P.getStorageItem)("isRedirected");
11const l=S==null?void 0:S.user,R=!!((l!=null&&l.tveProvider||!(l==null||(w=l.tveMetadata)===null||w===void 0)&&w.tveProvider)&&(l!=null&&l.canAuthenticate)),L=(0,D.sm)(),x=!!((l!=null&&l.email||l!=null&&l.unverifiedEmail)&&(l!=null&&l.unverifiedPhone||l!=null&&l.phoneNumber)),y=l==null||(t=l.profiles)===null||t===void 0||(d=t[0])===null||d===void 0?void 0:d.isContentPersonalizationViewed;let T=!1,W=_==null?void 0:_.isDetailPage,H=(h=(((n=app_data)===null||n===void 0||(v=n.appcmsPlatform)===null||v===void 0||(e=v.navigation)===null||e===void 0?void 0:e.onBoarding)||[]).filter(K=>K.url===u)[0])===null||h===void 0?void 0:h.isRequired;if(u==="/consent"&&(H=!0),W&&!H)return T=!0,T;if(u==="/tve"&&(T=!!R),u==="/viewplans"||u==="/subscription"){let K=!1;u==="/subscription"&&(K=localStorage.getItem("isMonetisationSkipped")),T=!!((L||R)&&!(_!=null&&_.isUpgradePlan)||JSON.parse(K))}return u==="/update"&&(T=!!x),u==="/personalization"&&(T=!!y),u==="/locate"&&l&&(l!=null&&l.userId)&&await(0,I.vS)()&&(T=!0),T},b=async u=>{var w,d;let t=(0,P.getStorageItem)("isRedirected");if(t!=null&&t.redirect&&!(t!=null&&t.isDetailPage)&&(t!=null&&t.path)||(t==null?void 0:t.redirect)==="FREE_LOGIN"||(t==null?void 0:t.redirect)==="EMAIL_REQUIRED")return(t==null?void 0:t.redirect)==="FREE_LOGIN"||(t==null?void 0:t.redirect)==="EMAIL_REQUIRED"?`${t==null?void 0:t.path}`:t==null?void 0:t.path;if(t!=null&&t.isUpgradePlan)return"viewplans?upgradeplan";if(t!=null&&t.checkForHBA)return"subscription";if(JSON.parse(localStorage.getItem("updateCardStatus")))return"subscription?managecard";const v=(d=window)===null||d===void 0||(w=d.location)===null||w===void 0?void 0:w.pathname,n=o==null?void 0:o.findIndex(_=>_===v);let h=n+1;if(n!=-1&&h<(o==null?void 0:o.length)){if(u&&v==g&&o[n+1]==c){if(n+2>=(o==null?void 0:o.length))return"/";h=n+2}let _=o[h],l=!0;for(;l;)if(l=await E(_),l){if(h+1>=(o==null?void 0:o.length)){if(t!=null&&t.isDetailPage){var S;return(t==null?void 0:t.path)||(t==null||(S=t.contentSubscriptionFlow)===null||S===void 0?void 0:S.path)||"/"}return t!=null&&t.isUpgradePlan&&(t==null?void 0:t.path)||"/"}h++,_=o[h]}return _||"/"}else return"/"};i.d(A,["_",0,p,"e",0,r])},57261(N,A,i){var C=i(19324),s=i(43543),U=i(12308);const I=()=>{var a,o,r,f,O,E,b,u;return!((f=app_data)===null||f===void 0||(r=f.appcmsMain)===null||r===void 0||(o=r.features)===null||o===void 0||(a=o.spoilerControl)===null||a===void 0)&&a.enable?JSON.parse(sessionStorage.getItem("spoilerControlDetails"))||{enable:(u=app_data)===null||u===void 0||(b=u.appcmsMain)===null||b===void 0||(E=b.features)===null||E===void 0||(O=E.spoilerControl)===null||O===void 0?void 0:O.enable,moduleIds:[]}:{}},P=async a=>{var o;sessionStorage.setItem("spoilerControlDetails",JSON.stringify(a));const r=(0,U.getStorageItem)("AuthenticationStore"),f=r==null||(o=r.user)===null||o===void 0?void 0:o.userId;!r||!f||(D(r,a),await M(f,a))},D=(a,o)=>{const r={user:{...a.user,profiles:[{...a.user.profiles[0],spoilerControl:o}]}};(0,U.setStorageItem)("AuthenticationStore",r)},M=async(a,o)=>{try{var r,f,O,E,b;const u=(E=window)===null||E===void 0||(O=E.app_data)===null||O===void 0||(f=O.appcmsMain)===null||f===void 0||(r=f.apiConfig)===null||r===void 0?void 0:r.apiBaseUrl;if(!u||!a)return null;const w=await(0,s.gf)(),d=`${u}/v2/identity/${a}`,t={headers:{Authorization:w,"x-api-key":(b=window)===null||b===void 0?void 0:b.xApiKey}},e={spoilerControl:o};return await C.A.put(d,e,t)}catch(u){return console.error("Updating Spoiler Control Error:",u),null}},g=()=>
11JSON.parse(sessionStorage.getItem("showDetailsEnabled"))||[],c=a=>{sessionStorage.setItem("showDetailsEnabled",JSON.stringify(a))},m=()=>{sessionStorage.removeItem("showDetailsEnabled")},p=a=>{const{enable:o,moduleIds:r=[]}=I()||{};return o?!(Array.isArray(r)?r:[]).some(E=>a.startsWith(E)):!1};i.d(A,["CS",0,p,"Dv",0,D,"Je",0,g,"jv",0,c,"ki",0,P,"lj",0,M,"mZ",0,m,"wm",0,I])},10513(N,A,i){var C,s=i(19324),U=i(43543),I=i(6765),P=i(23823),D,M,g,c;const m=window.app_data.appcmsPlatform.tveSettings.urlScheme,p=window.app_data.appcmsPlatform.tveSettings.toolboxUrl,a=window.app_data.appcmsPlatform.tveSettings.contentProvider,o=(c=window)===null||c===void 0||(g=c.app_data)===null||g===void 0||(M=g.appcmsMain)===null||M===void 0||(D=M.genericMessages)===null||D===void 0?void 0:D.toolboxErrorMessage,r=()=>new URLSearchParams(window.location.search).get("toolbox_user_token"),f=()=>{const e=`${p}/v2/auth/${a}/mso.json`;return(0,s.A)({method:"get",url:e}).then(v=>v)},O=()=>{const e=`${p}/v2/auth/${a}/status.json`;return C({method:"get",url:e}).then(v=>v)},E=(e,v,n)=>{const h=new URLSearchParams({client_id:a,idp:e,return:v,country:n,response_type:"code"}),S=`${p}/v2/auth/${a}/login.html?${h.toString()}`;window.location.href=S},b=async e=>{const v=`${m}/v2/UserServices/device/${e}`,n=await(0,U.gf)();return(0,s.A)({method:"get",url:v,headers:{Authorization:n}}).then(h=>h)},u=async()=>{const e=await JSON.parse(localStorage.getItem("toolboxUserData")),v=window.app_data.appcmsPlatform.tveSettings.resourceID,n=`${m}/v2/UserServices/device/${e.token}/hasAccessTo`,h=await(0,U.gf)();return(0,s.A)({method:"get",url:n,params:{urn:v,action:"view",ip:window.ip},headers:{Authorization:h}}).then(S=>S).catch(S=>{(S.status==410&&S.response.data.error.errorCode=="CP-006"||S.status==404&&S.response.data.error.errorCode=="CP-004")&&(0,U.hO)().then(_=>{localStorage.removeItem("toolboxUserData"),(0,U.gf)(async l=>{let R=(0,I.A)(l),L=R==null?void 0:R.userId;(0,U.Sk)(L,l).then(x=>{var y;(y=location)===null||y===void 0||y.reload()})})})})},w=()=>new Promise((e,v)=>{u().then(n=>{if(n.data.access&&((0,P.cB)("TVE_AUTHZ_SUCCESS",{mvpdProvider:(0,P.GW)()}),e(n)),!n.data.access){var h,S,_,l,R;const L=o||n.data.reason;(0,P.cB)("TVE_AUTHZ_FAILURE",{mvpdProvider:(0,P.GW)(),error:(h=(S=(_=n.data)===null||_===void 0?void 0:_.errorCode)!==null&&S!==void 0?S:(R=n.data)===null||R===void 0||(l=R.error)===null||l===void 0?void 0:l.errorCode)!==null&&h!==void 0?h:null,message:L!=null?L:null}),v(L)}}).catch(n=>{var h,S,_,l,R,L,x,y,T;const W=o||(n==null||(R=n.response)===null||R===void 0||(l=R.data)===null||l===void 0||(_=l.error)===null||_===void 0?void 0:_.message),G={mvpdProvider:(0,P.GW)(),error:(h=n==null||(y=n.response)===null||y===void 0||(x=y.data)===null||x===void 0||(L=x.error)===null||L===void 0?void 0:L.errorCode)!==null&&h!==void 0?h:!(n==null||(T=n.response)===null||T===void 0)&&T.status?String(n.response.status):null,message:(S=W!=null?W:n==null?void 0:n.message)!==null&&S!==void 0?S:null};(0,P.cB)("TVE_AUTHZ_FAILURE",G),(0,P.cB)("TVE_VL_LOGIN_FAILURE",G),v(W)})}),d=async()=>{const e=await JSON.parse(localStorage.getItem("toolboxUserData")),v=`${m}/v2/UserServices/device/${e.token}`,n=await(0,U.gf)();return(0,s.A)({method:"delete",url:v,headers:{Authorization:n}}).then(h=>(localStorage.removeItem("toolboxUserData"),h)).catch(()=>(localStorage.removeItem("toolboxUserData"),!0))},t=async(e,v)=>{const n=await JSON.parse(localStorage.getItem("toolboxUserData")),h=`${m}/v2/DeviceServices/activateDevice`,S=await(0,U.gf)();return(0,s.A)({method:"post",url:h,params:{code:e,userToken:v||n.token},headers:{Authorization:S}}).then(_=>(localStorage.removeItem("toolboxCtvActivationCode"),_)).catch(_=>_)};i.d(A,["$u",0,E,"NW",0,b,"U3",0,r,"du",0,t,"fQ",0,d,"oW",0,w,"pH",0,f])},46054(N,A,i){var C=i(61171),s=i.n(C),U=i(12308),I=i(76846),P=i(23823),D=i(10513),M=i(23870);const g="toolboxAuthZResponse",c="toolboxAuthZDialogDismissed",m="/";let p=!1;const a=d=>{try{return new URL(d,window.location.origin).pathname}catch(t){return d}},o=()=>window.location.pathname.includes("checkout"),r=d=>d||(o()?m:window.location.pathname),f=d=>{const t=(0,U.getStorageItem)("isRedirected");return t!=null&&t.redirect&&(t!=null&&t.path)?t.path:r(d)},O=d=>o()?m:d,E=()=>{const d=new URL(window.location.href);d.searchParams.has("toolbox_user_token")&&(d.searchParams.delete("toolbox_user_token"),window.history.replaceState({},"",d.toString()))},b=(d,t={})=>{const e=d||window.location.pathname;if(a(e)===window.location.pathname){if(t.keepLoading){p=!1;return}window.location.replace(e);return}window.location.href=e},u=async(d={})=>
11{if(typeof window=="undefined"||!(0,M.o6)())return!1;const t=(0,D.U3)();if(!t||p)return!1;p=!0;const e=f(d.fallbackPath),v=O(e);return E(),sessionStorage.removeItem(c),s().publish("apploading",!0),(0,D.NW)(t).then(async n=>{var h,S,_;const l=n==null||(_=n.data)===null||_===void 0||(S=_.customer)===null||S===void 0||(h=S.idp)===null||h===void 0?void 0:h.code;(0,P.$X)("TVE_LOGIN_SUCCESS",l),(0,P.$X)("TVE_VL_LOGIN_INIT",l),localStorage.setItem("toolboxUserData",JSON.stringify(n.data));const R=localStorage.getItem("toolboxCtvActivationCode");return R&&(0,D.du)(decodeURIComponent(R),t),(0,D.oW)().then(L=>{var x,y;sessionStorage.setItem(g,JSON.stringify(L.data)),s().publish("toolbox-authz-updated"),(0,I.i)({tveUserId:n==null||(y=n.data)===null||y===void 0||(x=y.customer)===null||x===void 0?void 0:x.id,mvpd:l,path:e,setIsLoading:d.setIsLoading||(()=>{}),toolboxAccessToken:t})}).catch(async L=>{sessionStorage.setItem(g,JSON.stringify({access:!1,error:typeof L=="string"?L:"Toolbox authorization failed"})),await(0,D.fQ)(),s().publish("toolbox-authz-updated"),b(v,{keepLoading:!0})})}).catch(()=>{(0,P.$X)("TVE_LOGIN_FAILURE"),(0,P.$X)("TVE_VL_LOGIN_FAILURE"),s().publish("apploading",!1),p=!1}),!0},w=d=>{const t=new URLSearchParams(window.location.search),e=t.get("auth"),v=t.get("email"),n=t.get("tveCode");e&&v&&n||b(d)};i.d(A,["handleRegisterTveNavigation",0,w,"handleToolboxAuth",0,u])},89467(N,A,i){i.r(A);var C=i(43543),s=i(47281);const U=({user:I,isSubscribed:P,isTveLoggedIn:D,isCheckout:M,isPurchasingDifferentPlan:g})=>{const c=(0,C.js)();M&&(!g&&(c!=null&&c.SVOD&&(c!=null&&c.TVE)?I&&P&&D:c!=null&&c.SVOD&&!(c!=null&&c.TVE)?I&&P:!(c!=null&&c.SVOD)&&(c!=null&&c.TVE)&&I&&D))&&(0,s.publishRedirect)("/")};i.d(A,["checkUserServiceWithMonetisation",0,U])},55646(N,A,i){i.r(A);var C=i(19324),s=i(47317),U=i(43543),I,P,D,M,g,c,m;let p=(M=window)===null||M===void 0||(D=M.app_data)===null||D===void 0||(P=D.appcmsMain)===null||P===void 0||(I=P.apiConfig)===null||I===void 0?void 0:I.apiBaseUrl,a=(m=window)===null||m===void 0||(c=m.app_data)===null||c===void 0||(g=c.site)===null||g===void 0?void 0:g.siteInternalName,o=`${p}/identity/user?site=${a}`;const r=async()=>{let f=await(0,U.gf)(b=>b),{userId:O}=await(0,s.CX)();if(O){var E;return(await C.A.get(`${o}`,{headers:{authorization:f,"x-api-key":(E=window)===null||E===void 0?void 0:E.xApiKey}})).data}else return new Error("userID not there")};i.d(A,["getUserDetails",0,r])}}]);})();
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.