1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7417],{9548:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/complete-profile",function(){return s(99894)}])},26830:(e,t,s)=>{"use strict";s.d(t,{J:()=>n,a:()=>r});let n=(e,t)=>({event:e,interaction_type:"form",name:"signin",step_name:"signin",step_number:1,length:1,...null!=t&&{error_type:t}}),r=e=>({event:e,interaction_type:"authentication"})},69551:(e,t,s)=>{"use strict";s.d(t,{s:()=>n});let n=()=>({isReady:!0,params:Object.fromEntries(new URLSearchParams(window.location.search).entries())})},99894:(e,t,s)=>{"use strict";s.r(t),s.d(t,{__N_SSG:()=>C,default:()=>P});var n=s(6029),r=s(81278),a=s(55729),i=s(41372),l=s(29991),o=s(7203),c=s(39448),u=s(4464),_=s(70158),p=s(2173),m=s(43646),d=s(87270);let f="complete_profile";var b=s(26830),h=s(32784),x=s(63587),w=s(29719),k=s(18181),S=s(78026),g=s(69551),E=s(46231),y=s(71449),C=!0;let P=()=>{let e=(0,h.Y)(),t=(0,x.l)(),{replace:s}=(0,r.useRouter)(),[C,P]=(0,a.useState)(!1),[j,N]=(0,a.useState)(),O=(0,E.Ci)(e),{rolloutCampusItalianExtraFieldsCompleteProfile:R}=(0,m.U)(),{trackFailedSubmit:v,trackLogin:U}=(()=>{let{dispatch:e}=(0,i._)();return{trackFailedSubmit:(0,a.useCallback)(t=>{let s;e((s=d.Mx.FORM_ERROR,{event:s,name:f,interaction_type:"form",step_name:f,step_number:1,length:1,error_type:t}))()},[e]),trackLogin:(0,a.useCallback)(()=>{e((0,b.a)(d.Mx.LOGIN))()},[e])}})();(0,a.useEffect)(()=>{let{isReady:e,params:t}=(0,g.s)();if(e){let{codefromemail:e}=t;N("string"==typeof e?e:void 0)}},[N]);let F=(0,a.useCallback)(async n=>{try{await (0,k.z)({...n,code:j,locale:e}),t("completeProfile.successMessage",S.x.SUCCESS),(0,w.D4)(),U(),s(y.bQ.Home)}catch{P(!0),v("backend_error")}},[j,e,v,U,t,s]),L=(0,_.aU)({country:O,extraFields:R});return(0,n.jsxs)(p.g,{size:"small",cta:"",children:[(0,n.jsx)(c.h,{content:(0,n.jsx)(u.p,{id:"completeProfile.title"})}),(0,n.jsx)(i.U,{extend:L.extendsEvent,children:(0,n.jsx)(l.O,{formConfig:L,onSubmit:F,submitLabelId:"completeProfile.setPasswordButton",enableTracking:!0})}),C&&(0,n.jsx)(o.F,{content:(0,n.jsx)(u.p,{id:"completeProfile.impossibleToSetPassword"})})]})}}},e=>{e.O(0,[1909,6844,9991,5854,636,6593,8792],()=>e(e.s=9548)),_N_E=e.O()}]);
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.