Build 533169stable
Module 107997
808 characters · in 33645dc6ae61c139.jsDependencies
Source Raw
function(e,t,n){n.d(t,{L:()=>x});var i=n(64700),s=n(311907),l=n(573648),r=n(941314),a=n(362490),o=n(429913),d=n(933297),c=n(962173),u=n(652215),m=n(985018),g=n(452832);let _=[u.fg2.LEAGUE_OF_LEGENDS,u.fg2.RIOT_GAMES];function x(){let e=(0,s.bG)([c.A],()=>c.A.getAccounts().find(e=>_.includes(e.type))?.type),t=null!=e?l.A.get(e):null,n=(0,o.h)(t?.replacedBy),{canStartAuthorization:u,hasAlreadyLinked:x,fetched:h}=(0,a.RD)(n),A=m.intl.string(g.default["1S6oAo"]),p=r.A.useConfig({location:"RiotDeprecationInlineNotice"}).enabled;return i.useMemo(()=>p&&null!=t&&u&&n?.connectionEntrypointUrl!=null&&!x&&h?{type:d.lT.INLINE_NOTICE,noticeType:"info",useText:()=>m.intl.format(g.default.DeOsIl,{connectionName:t.name,applicationName:A,connectionEntrypointUrl:n.connectionEntrypointUrl})}:null,[t,A,n,u,p,x,h])}}