PageSourceSearch

https://app.sundancetv.com/code/js/chunks/gigya-account-page.144574489b2a9eebba9a.js

js sundancetv.com collected 2026-09-24 20:33:26 UTC 6,457 bytes, 3 lines download raw bytes

1(()=>{(function(){try{var d=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},s=new d.Error().stack;s&&(d._sentryDebugIds=d._sentryDebugIds||{},d._sentryDebugIds[s]="35dbf4b7-629c-4a15-96a5-2a1e0fd04577",d._sentryDebugIdIdentifier="sentry-dbid-35dbf4b7-629c-4a15-96a5-2a1e0fd04577")}catch(e){}})();(self.webpackChunkdice_web=self.webpackChunkdice_web||[]).push([[65318],{17754:((d,s,e)=>{e.d(s,{Q:()=>n});var t=e(97963);const n=(o,l)=>{const g=(0,t.WI)(l);return o===(g==null?void 0:g.sub)}}),27416:((d,s,e)=>{e.d(s,{h:()=>n});var t=e(86364);const n=()=>(0,t.d4)(o=>o.services.session.user.isGuest)}),30404:((d,s,e)=>{e.d(s,{T:()=>n});var t=e(2275);const n=async(o,l,g)=>{if(!o||!l)throw new Error("missing scriptUrl or apiKey");const v=window.IdpManager;if(v)return v;try{await(0,t.jc)(o);const m=window.IdpManager,y={apiKey:l,locale:g};return m.init(y),await m.onReady()}catch(m){throw new Error(m)}}}),32148:((d,s,e)=>{e.d(s,{j:()=>o});var t=e(47117),n=e(95789);const o=l=>{if(!l)return!1;const g=l.get(n.O5.redirectUrl),v=l.get(n.O5.bundleId);return(0,t.zy)(v)&&!!g}}),34460:((d,s,e)=>{e.d(s,{Iz:()=>t,Pq:()=>n,aH:()=>o});
1const t={dismiss:"dismiss",logout:"logout"},n=["sorrySomethingWentWrong"],o="Escape",l={tv:"TV",web:"WEB"}}),45733:((d,s,e)=>{e.d(s,{C:()=>t});const t="use_token_exchange",n="authentication_provider_name"}),47117:((d,s,e)=>{e.d(s,{GI:()=>S,Jo:()=>M,Xc:()=>v,gM:()=>A,lq:()=>y,zy:()=>m});var t=e(71342),n=e(82879),o=e(95789);const l=new Map([[n.q.LOGIN,"login_ott-custom-standard-login"],[n.q.SIGNUP,"signup_ott-custom-standard-register-free"],[n.q.SIGNIN_TO_WATCH,"login_ott-custom-standard-login"],[n.q.PURCHASE,"purchase_ott-custom-standard-register-premium"]]),g=new Map([["dce.realmadrid",l]]),v=(a,r,c)=>{if(!c)return r;const i=g.get(a);if(!i)return r;const u=i.get(c);return r+`&itm_campaign=${u}`},m=a=>{var r,c,i,u;const E=(c=(r=window.APPS)==null?void 0:r.ANDROID)==null?void 0:c.deepLinkUrlPrefix,R=(u=(i=window.APPS)==null?void 0:i.IOS)==null?void 0:u.deepLinkUrlPrefix;return!!a&&[E,R].includes(a)},y=a=>({redirectUrl:a.get(o.O5.redirectUrl)||void 0,bundleId:a.get(o.O5.bundleId)||void 0,selectedLicence:a.get(o.O5.selectedLicence)||void 0,licenceId:a.get(o.O5.licenceId)||void 0}),M=(a,r)=>{const{redirectUrl:c,bundleId:i,selectedLicence:u,licenceId:E}=r;return c&&a.set(o.O5.redirectUrl,c),i&&a.set(o.O5.bundleId,i),u&&a.set(o.O5.selectedLicence,u),E&&a.set(o.O5.licenceId,E),a},A=(a,r)=>{const{redirectUrl:c,bundleId:i,selectedLicence:u,licenceId:E}=r;return!c&&!i&&!u&&!E?a:(0,t.k4)(a,{[o.O5.redirectUrl]:c,[o.O5.bundleId]:i,[o.O5.selectedLicence]:u,[o.O5.licenceId]:E})},S=()=>{var a,r,c,i;return(i=(c=(r=(a=window.RAW_REALM_SETTINGS)==null?void 0:a.mfaConfigurations)==null?void 0:r.filter(u=>u.action==="FIREBASE_APP_CHECK"))==null?void 0:c[0])==null?void 0:i.projectKey}}),69260:((d,s,e)=>{e.d(s,{t:()=>o});var t=e(2275),n=e(95789);const o=(l,g)=>{const v=l.get(n.O5.redirectUrl);if((0,t.Im)(g)){window.location.href=v;return}const m=new URLSearchParams;Object.entries(g).forEach(([y,M])=>m.set(y,M)),window.location.href=`${v}?${m.toString()}`}}),72029:((d,s,e)=>{e.r(s),e.d(s,{GigyaAccountPage:()=>E,default:()=>R});var t=e(96540),n=e(56347),o=e(23154),l=e(58562),g=e(64759),v=e(59530),m=e(21975),y=e(85401),M=e(2275),A=e(34460),S=e(32148),a=e(30404),r=e(86364);const c=()=>(0,r.d4)(p=>p.services.app.previousLocation);var i=e(69260),u=e(96763);const E=({clientId:p,logoutAndGenerateGuestSession:f})=>{const I=(0,n.W6)(),O=(0,n.zy)(),[L,C]=(0,t.useState)(!1),[D,G]=t.useState(!1),{sorrySomethingWentWrong:U}=(0,l.b0)(A.Pq),H=c(),{activeLocale:h}=t.useContext(o.LabelsContext),{routes:w,defaultMenuParams:T}=t.useContext(v.P),W=window,N=new URLSearchParams(O.search);t.useEffect(()=>(F(),window.addEventListener("click",$),document.addEventListener("keydown",B),()=>{window.removeEventListener("click",$),document.removeEventListener("keydown",B),b()}),[]),t.useEffect(()=>{L&&j()},[L]);const B=P=>P.key===A.aH&&K(),K=()=>{(0,S.j)(N)?(0,i.t)(N,{action:A.Iz.dismiss}):H?I.goBack():(0,y.OS)(T,w,I)},$=P=>{var x,z;(z=(x=P.target).closest)!=null&&z.call(x,".idp-dialog-close-button")&&K()},b=()=>{var P,x;(P=document.getElementById("idp-modal-wrapper"))==null||P.remove(),(x=document.getElementsByClassName("gigya-screen-dialog")[0])==null||x.remove()},j=()=>{W.IdpManager.showProfile({modal:!0}),W.IdpManager.getEventEmitter().on("logout",async()=>{(0,S.j)(N)?(f(),(0,i.t)(N,{action:A.Iz.logout})):(0,M.mH)(w[m.xW.LOGOUT],I)})},F=async()=>{try{const P=(h==null?void 0:h.split("_")[0])||"en";await(0,a.T)(window.ENV_CONF.GYGIA_AUTH,p,P),C(!0)}catch(P){u.warn("Failed to initialise IDP Manager for gigya account page:",P),G(!0)}};return!L&&!D?t.createElement(g.A,{useRealmColor:!0}):t.createElement(t.Fragment,null,D&&t.createElement("p",{className:"input--error"},U.value))},R=E}),77953:((d,s,e)=>{e.r(s),e.d(s,{GigyaAccountPage:()=>R,default:()=>p});var t=e(96540),n=e(56347),o=e(59530),l=e(57320),g=e(21975),v=e(97963),m=e(85401),y=e(2275),M=e(56016),A=e(27416),S=e(17754),a=e(87992),r=e(95789),c=e(45733);const i=f=>{const I=new URLSearchParams(f.search),O=encodeURIComponent(I.get(r.O5.redirectUrl)),L=I.get(c.C),C=I.get(r.O5.bundleId);if(O&&C){const D=`${c.C}=${L}`,G=`${r.O5.redirectUrl}=${O}`,U=`${r.O5.bundleId}=${C}`;return`?${D}&${G}&${U}`}return`?from=${f.pathname}`};var u=e(96379);const E=f=>{var I;return(I=f==null?void 0:f.some(O=>O.name===u.Kg.GIGYA))!=null?I:!1},R=()=>{var f,I;const O=(0,n.W6)(),{defaultMenuParams:L,routes:C}=t.useContext(o.P),D=(0,A.h)(),G=(0,n.zy)(),U=(0,M.Z3)(),H=(0,v.Iz)(),h=U==null?void 0:U.find(T=>T.authProvider.name===H),w=t.useCallback(async()=>{var T;if(!E(U))return(0,m.OS)(L,C,O),null;const W=localStorage.getItem(l.h0),B=new URLSearchParams(G.search).get(a.v),K=(0,S.Q)(B,W);if(!W||D||B&&!K){K||await((T=h==null?void 0:h.logoutWithGigyaAndGenerateGuestSession)==null?void 0:T.call(h));const $=i(G),b=`${C[g.xW.LOGIN]}/gigya${$}`;return(0,y.mH)(b,O),null}},[]);return t.useEffect(()=>{w()},[w]),(I=(f=h==null?void 0:h.getAccountPage)==null?void 0:f.call(h))!=null?I:null},p=e.j==33524?R:null}),82879:((d,s,e)=>{e.d(s,{q:()=>t});var t=(n=>(n.LOGIN="login",n.SIGNUP="signup",n.PURCHASE="purchase",n.SIGNIN_TO_WATCH="signin_to_wat
1ch",n))(t||{})}),87992:((d,s,e)=>{e.d(s,{v:()=>t});const t="exid"})}]);})();
2
3//# sourceMappingURL=gigya-account-page.144574489b2a9eebba9a.js.map

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.