Build 545032stable
Module 968309
1,763 characters · in no known chunkDependencies
Source Raw
function(e,t,n){"use strict";n.d(t,{A:()=>u});var i=n(627968);n(64700);var r=n(192308),s=n(573648),a=n(123917),o=n(738104),l=n(652215);function u(e){var t,u,c,d;let{platformType:_,location:f,overrideUrl:h,successRedirect:p}=e;(_===l.fg2.LEAGUE_OF_LEGENDS&&(_=l.fg2.RIOT_GAMES),_===l.fg2.CRUNCHYROLL)?(t=[f??"unknown"],(0,r.openModalLazy)(async()=>{let{default:e}=await Promise.all([n.e("39552"),n.e("29484"),n.e("61935"),n.e("36335"),n.e("64610"),n.e("85990"),n.e("37620")]).then(n.bind(n,320490));return n=>(0,i.jsx)(e,{analyticsLocation:t,...n})})):_===l.fg2.XBOX?(u=[f??"unknown"],(0,r.openModalLazy)(async()=>{let{default:e}=await Promise.all([n.e("39552"),n.e("70164"),n.e("95429"),n.e("98189"),n.e("98965"),n.e("30221"),n.e("48370"),n.e("36335"),n.e("64610"),n.e("85990"),n.e("5674"),n.e("57906")]).then(n.bind(n,669801));return t=>(0,i.jsx)(e,{analyticsLocation:u,...t})})):_===l.fg2.PLAYSTATION||_===l.fg2.PLAYSTATION_STAGING?(c=[f??"unknown"],d=_,(0,r.openModalLazy)(async()=>{let{default:e}=await Promise.all([n.e("39552"),n.e("98965"),n.e("36335"),n.e("64610"),n.e("85990"),n.e("5674"),n.e("17587")]).then(n.bind(n,293758));return t=>(0,i.jsx)(e,{analyticsLocation:c,platformType:d,...t})})):_===l.fg2.DOMAIN?(0,r.openModalLazy)(async()=>{let{default:e}=await Promise.all([n.e("44463"),n.e("97893"),n.e("37687"),n.e("94048")]).then(n.bind(n,110819));return t=>(0,i.jsx)(e,{analyticsLocation:[f??"unknown"],...t})}):s.A.get(_)?.isFederated===!0?(0,r.openModalLazy)(async()=>{let{default:e}=await n.e("10645").then(n.bind(n,61492));return t=>(0,i.jsx)(e,{platformType:_,location:f,successRedirect:p,...t})}):null!=h?(0,a.h)({shouldConfirm:!0,href:h,onConfirm:()=>{(0,o.d)(_,{location:f,successRedirect:p},h)}}):(0,o.d)(_,{location:f,successRedirect:p})}}