1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7398],{28083:function(t,e,r){(window.__NEXT_P=window.__NEXT_P||[]).push(["/create-account",function(){return r(62628)}])},62628:function(t,e,r){"use strict";r.r(e),r.d(e,{default:function(){return w}});var n=r(88100),a=r(11163),s=r(67294),c=r(44537),i=r(17161),o=r(77717),u=r(76399),l=r(10395),f=r(66974),h=r(32395);let d=async t=>{if(!t)return null;let e=t.split(/[?&]/)[0];if(!e)return null;try{let t=(0,u.Um)(i.x),r=(0,l.ZP)("getPreRegistrationContactInfo",t.customersCgvsControllerGetEnrollmentContactInfoV1.bind(t));return await r({id:e,xChannel:o.GV,xSessionId:(0,f.W2)()})}catch(e){if(e instanceof l.Lu&&404===e.status)return null;return(0,h.H)("PRE_REGISTRATION_SERVICE_ERROR",{error:e instanceof Error?e.message:String(e),status:e instanceof l.Lu?e.status:void 0,contactId:t}),null}};var y=r(8433),m=r(92250);function w(){let{loginWithRedirect:t,isAuthenticated:e}=(0,n.D3)(),{actions:{enqueueError:r}}=(0,m.Z)(),{query:i,isReady:o,replace:u,basePath:l,pathname:f}=(0,a.useRouter)(),h=(0,c.Y)(),w=(0,s.useRef)(!1),p=Array.isArray(i.c)?i.c[0]:i.c,R=(null==p?void 0:p.split(/[?&]/)[0])||void 0,g=Array.isArray(i.redirect)?i.redirect[0]:i.redirect||"/",_=Array.isArray(i.closeRedirect)?i.closeRedirect[0]:i.closeRedirect||h||"/",E=!!i.used,N=!!i.signin,P=(0,s.useCallback)(t=>{let e;try{e=new URL(t)}catch(r){e=new URL(t.startsWith("/")?t:"/".concat(t),window.location.origin)}
1return R&&e.searchParams.set("c",R),Object.keys(i).forEach(t=>{if("redirect"!==t&&"closeRedirect"!==t&&"used"!==t&&"signin"!==t){let r=i[t];"string"==typeof r?e.searchParams.has(t)||e.searchParams.set(t,r):Array.isArray(r)&&r.length>0&&!e.searchParams.has(t)&&e.searchParams.set(t,r[0])}}),e.pathname+e.search},[R,i]);function A(){let t={};for(let e of Object.values(y.Bj)){let r=i[e];"string"==typeof r?t[e]=r:Array.isArray(r)&&"string"==typeof r[0]&&(t[e]=r[0])}return t}let b=(0,s.useCallback)(async()=>{if(!w.current){w.current=!0;try{let e;let r=new URL(window.location.href);r.searchParams.set("used","1"),window.history.replaceState({},"",r);let n=A(),a=P(g);if(R)try{let t=await d(R);if(t){let r={email:t.email,firstName:t.firstName,lastName:t.lastName,phoneNumber:t.phoneNumber,source:t.source};e=btoa(JSON.stringify(r))}}catch(t){}await t({appState:{target:a},authorizationParams:{...!N&&{screen_hint:"signup",flow:"signup"},isIDP:!0,...n,...e&&{ci:e}}})}catch(n){let{message:t,presentation:e}=n;u("".concat(l,"/").concat(g)),r({message:t,presentation:e})}}},[l,r,t,g,u,N,P,R,A]);return(0,s.useEffect)(()=>{if(!o)return;if(E){u("".concat(l,"/").concat(_));return}if(!e){w.current||b();return}let t=P(g);u("".concat(l).concat(t))},[o,e,E,f,g,_,u,l,b,P]),null}}},function(t){t.O(0,[3419,8931,2888,9774,179],function(){return t(t.s=28083)}),_N_E=t.O()}]); 2//# sourceMappingURL=create-account-dfb79ac4bffffd7b.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.