1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9682],{10428:(e,t,a)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/change-email/[token]/[email]",function(){return a(25447)}])},25447:(e,t,a)=>{"use strict";a.r(t),a.d(t,{__N_SSP:()=>A,default:()=>P});var n=a(18153),s=a(57396),i=a(88818),r=a(48011),l=a(14232),o=a(29579),c=a(4970),d=a(40514),u=a(17597),h=a(14e3),m=a(26977),p=a(34827),w=a(89099),f=a(19537),g={name:"l30ftp",styles:"font-size:24px;line-height:120%;font-weight:700"},_={name:"1e0ao27",styles:"margin-top:33px"},y={name:"yz1nei",styles:"margin-top:16px"},k={name:"cgjwfr",styles:"margin-top:16px;width:100%"};let E={callAlertAction:f.H},v=(0,r.Ng)(e=>({}),E)(function(e){let{callAlertAction:t,...a}=e,s=(0,h.useParams)(),[i,r]=(0,l.useState)(""),[f,E]=(0,l.useState)(""),[v,A]=(0,l.useState)(!1),P=(0,w.useRouter)(),Y=(0,l.useCallback)(e=>{if(e.which===m.A.Enter){var t;null==(t=document.getElementById("submit"))||t.click()}},[]);(0,l.useEffect)(()=>{var e;return document.addEventListener("keydown",Y),null==(e=document.getElementById("shapesxr-password"))||e.focus(),()=>{document.removeEventListener("keydown",Y)}},[]);let S=async()=>{if(!(i.length<8)||(E("Password must contain at least 8 characters"),0)){let e;A(!0);try{e=await (0,p.A)({url:"auth/email/change_to_email",method:"POST",headers:{token:s.token},data:i}),await P.replace("/set-token/".concat(e.data.refreshToken,"?redirect=").concat(encodeURIComponent("/"))),t({type:"green",title:"Email updated",description:"Youâve initiated the session with ".concat(s.email)})}catch(e){A(!1),E("Unable to update your email. Please try again")}}};return(0,n.FD)("div",{...a,children:[(0,n.Y)("p",{css:g,children:"Enter your new password to change email"}),(0,n.Y)(o.A,{id:"shapesxr-email",css:_,leftIcon:(0,n.Y)(c.A,{size:20}),value:s.email,disabled:!0}),(0,n.Y)(o.A,{id:"shapesxr-password",isError:!!f,error:f,css:y,isPassword:!0,leftIcon:(0,n.Y)(d.A,{size:20}),value:i,onChange:e=>{r(e),E("")}}),(0,n.Y)(u.A,{css:k,loading:v,onClick:S,id:"submit",size:"l",children:"Confirm"})]})});var A=!0;function P(e){let{serverSideProps:t}=e;return(0,n.Y)(s.A,{serverSideProps:t,allowUnauth:!0,children:(0,n.Y)(i.A,{serverSideProps:t,isTrial:!1,children:(0,n.Y)(v,{})})})}},62415:()=>{}},e=>{e.O(0,[7396,636,6593,8792],()=>e(e.s=10428)),_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.