Build 590738stable
Module 97649
822 characters · in ad693420e093decf.jsDependencies
Source Raw
function(e,t,a){a.r(t),a.d(t,{default:()=>f});var l=a(477900),c=a(582128),n=a(492462),r=a(806163),p=a(13202),i=a(77468),o=a(459789),s=a(652215);function u(e){let{platformType:t}=e,a=(0,r.W6)();return c.useEffect(()=>{let{code:e,state:l}=n.parse(window.location.search),c=`${s.BVt.CONNECTIONS_ERROR(t)}${window.location.search}`;null==e||null==l?a.replace(c):i.A.linkDispatchAuthCallback(t,{code:e,state:l}).then(e=>{let{status:l}=e;204===l?a.replace(s.BVt.CONNECTIONS_SUCCESS(t)):a.replace(c)},()=>{a.replace(c)})},[a,t]),(0,l.jsx)(o.VerifyAccountLoading,{platformType:t})}let f=function(e){let{match:t}=e,a=t.params.type,{two_way_link_type:c}=n.parse(window.location.search);return[s.fg2.XBOX,s.fg2.PLAYSTATION_STAGING,s.fg2.PLAYSTATION,s.fg2.CRUNCHYROLL].includes(a)&&c===p.I.DESKTOP?(0,l.jsx)(u,{platformType:a}):null}}