1(()=>{(function(){try{var l=typeof window!="undefined"?window:typeof global!="undefined"?global:typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:{},r=new l.Error().stack;r&&(l._sentryDebugIds=l._sentryDebugIds||{},l._sentryDebugIds[r]="f7cc0641-c517-4872-b3d8-7b7bfba2428a",l._sentryDebugIdIdentifier="sentry-dbid-f7cc0641-c517-4872-b3d8-7b7bfba2428a")}catch(e){}})();(self.webpackChunkdice_web=self.webpackChunkdice_web||[]).push([[64859],{31941:((l,r,e)=>{e.r(r),e.d(r,{LicenceRedirectPage:()=>g});var d=e(96540),c=e(56347),i=e(59530),P=e(16505),I=e(97963),E=e(85401),M=e(2275),m=e(70023),u=e(95789);const g=()=>{const L=(0,c.zy)(),t=(0,c.W6)(),{routes:s,defaultMenuParams:n}=d.useContext(i.P),o=new URLSearchParams(L.search),a=o.get("extraParams"),_=o.get("code"),O=localStorage.getItem(u.O$),v=localStorage.getItem(u.VL),D=localStorage.getItem(u.mW);d.useEffect(()=>{f()},[]);const f=async()=>{v?(0,m.H)(P.LV,D,a):O?(_&&await U(),localStorage.removeItem(u.O$),(0,M.mH)(O,t,null,null,!0)):(0,E.OS)(n,s,t)},U=async()=>{try{const{authorisationToken:R,refreshToken:A}=await P.LV.post(`${D}/token`,{authorisationCode:_},{useAuth:!1});localStorage.removeItem(u.mW),(0,I.ih)({authorisationToken:R,refreshToken:A})}catch(R){(0,E.OS)(n,s,t)}};return null}}),47117:((l,r,e)=>{e.d(r,{GI:()=>L,Jo:()=>u,Xc:()=>E,gM:()=>g,lq:()=>m,zy:()=>M});var d=e(71342),c=e(82879),i=e(95789);const P=new Map([[c.q.LOGIN,"login_ott-custom-standard-login"],[c.q.SIGNUP,"signup_ott-custom-standard-register-free"],[c.q.SIGNIN_TO_WATCH,"login_ott-custom-standard-login"],[c.q.PURCHASE,"purchase_ott-custom-standard-register-premium"]]),I=new Map([["dce.realmadrid",P]]),E=(t,s,n)=>{if(!n)return s;const o=I.get(t);if(!o)return s;const a=o.get(n);return s+`&itm_campaign=${a}`},M=t=>{var s,n,o,a;const _=(n=(s=window.APPS)==null?void 0:s.ANDROID)==null?void 0:n.deepLinkUrlPrefix,O=(a=(o=window.APPS)==null?void 0:o.IOS)==null?void 0:a.deepLinkUrlPrefix;return!!t&&[_,O].includes(t)},m=t=>({redirectUrl:t.get(i.O5.redirectUrl)||void 0,bundleId:t.get(i.O5.bundleId)||void 0,selectedLicence:t.get(i.O5.selectedLicence)||void 0,licenceId:t.get(i.O5.licenceId)||void 0}),u=(t,s)=>{const{redirectUrl:n,bundleId:o,selectedLicence:a,licenceId:_}=s;return n&&t.set(i.O5.redirectUrl,n),o&&t.set(i.O5.bundleId,o),a&&t.set(i.O5.selectedLicence,a),_&&t.set(i.O5.licenceId,_),t},g=(t,s)=>{const{redirectUrl:n,bundleId:o,selectedLicence:a,licenceId:_}=s;return!n&&!o&&!a&&!_?t:(0,d.k4)(t,{[i.O5.redirectUrl]:n,[i.O5.bundleId]:o,[i.O5.selectedLicence]:a,[i.O5.licenceId]:_})},L=()=>{var t,s,n,o;return(o=(n=(s=(t=window.RAW_REALM_SETTINGS)==null?void 0:t.mfaConfigurations)==null?void 0:s.filter(a=>a.action==="FIREBASE_APP_CHECK"))==null?void 0:n[0])==null?void 0:o.projectKey}}),50953:((l,r,e)=>{e.d(r,{H:()=>c});var d=e(95789);const c=i=>new URLSearchParams(i).get(d.O5.loginOnly)==="true"}),70023:((l,r,e)=>{e.d(r,{H:()=>M});var d=e(95789),c=e(93666),i=e(37871),P=e(82879),I=e(50953),E=e(47117);const M=async(m,u,g,L)=>{let t=`${u}/auth-uri`;const n=new URLSearchParams(window.location.search).get("type")||L,{realm:o}=APP_CONF,a=(0,I.H)(window.location.search),_=!!g&&g.split("&").includes(i.ZP);let O;!n&&(a||_)?O=P.q.LOGIN:O=n!=null?n:P.q.PURCHASE;const v=[g,a?c.TY.SSO_MODE_SIGNIN:null].filter(Boolean).join("&");v&&(t+=`?extraParams=${encodeURIComponent(v)}`);const{authorisationUri:D}=await m.get(t),f=(0,E.Xc)(o,D,O);localStorage.removeItem(d.VL),window.location.href=f}}),82879:((l,r,e)=>{e.d(r,{q:()=>d});var d=(c=>(c.LOGIN="login",c.SIGNUP="signup",c.PURCHASE="purchase",c.SIGNIN_TO_WATCH="signin_to_watch",c))(d||{})})}]);})(); 2 3//# sourceMappingURL=licence-redirect-page.7dad08cde617a4ca919d.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.