PageSourceSearch

https://manojspace.com/_next/static/chunks/pages/forgot-password-confirmation-e53ead1727b87e02.js

js manojspace.com collected 2026-09-30 06:35:57 UTC 3,519 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[8301],{37060:(e,a,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/forgot-password-confirmation",function(){return r(37923)}])},37923:(e,a,r)=>{"use strict";r.r(a),r.d(a,{__N_SSP:()=>N,default:()=>j});var t=r(37876),s=r(39312),l=r(89099),o=r(14232),n=r(2171),i=r(34321),d=r(63819),c=r(89311),u=r(68827),m=r(6827),f=r(41205),p=r(21639),h=r(83872),x=r(95726),w=r(16495),v=r(59243);let g={title:"Peerlist | Set New Password"};function P(e){let{email:a}=e,r=(0,l.useRouter)(),P=(0,n.useDispatch)(),N=new s.A,[j,y]=(0,o.useState)(!1),[A,_]=(0,o.useState)(null),C=async e=>{var t,s,l,o,n,c,p,h,x;e.preventDefault();let v=null==(t=e.target.elements.confirmationCode)?void 0:t.value,g=null==(s=e.target.elements.password)?void 0:s.value,j=null==(l=e.target.elements.confirmPassword)?void 0:l.value,{errorText:A,errorField:C}=f._7.setNewPassword({code:v,password:g,confirmPassword:j});if(A||C)return void _({[C]:A});y(!0);try{await i.$$.forgotPasswordConfirm({email:a,verificationCode:v,password:g});try{let e=await i.$$.login({email:a,password:g});N.remove("email"),d.default.setAuthCookies({id:e.data.data.id,username:null==e||null==(n=e.data)||null==(o=n.data)?void 0:o.profileHandle}),P(m.Yt.updatePrimaryUserData(e.data.data)),r.push(w.APP_PATHS.userProfile({profileHandle:null==e||null==(p=e.data)||null==(c=p.data)?void 0:c.profileHandle}))}catch(e){y(!1),r.push(w.APP_PATHS.login)}return}catch(e){_({apiError:e.response?null==(x=e.response.data)||null==(h=x.error)?void 0:h.message:u.A.GLOBAL.wrong}),y(!1)}},b=()=>{A&&_(null)};return(0,o.useEffect)(()=>()=>{y(!1),_(null)},[]),(0,t.jsx)(v.A.ScreenLayout,{metaData:g,children:(0,t.jsxs)("div",{className:"flex flex-col justify-center lg:items-center lg:h-screen",children:[(0,t.jsxs)(v.A.FormCard,{children:[(0,t.jsxs)("div",{className:"mb-6",children:[(0,t.jsx)(c.default.SemiBoldText,{lg:!0,className:"text-center mb-2",children:"Set New Password"}),(0,t.jsx)(c.default.NormalText,{xs:!0,className:"text-center",children:"We have sent an email with verification code. If you don’t see it, please check your spam folder."})]}),(0,t.jsxs)("form",{onSubmit:C,children:[(0,t.jsx)("div",{className:"mb-6",children:(0,t.jsx)(x.Ay,{id:"confirmationCode",label:"Verification code",type:"text",placeholder:"------",autoComplete:"off",onChange:b,error:null==A?void 0:A.confirmationCode})}),(0,t.jsx)("div",{className:"mb-4",children:(0,t.jsx)(x.Ay,{id:"password",label:"New Password",placeholder:"At least 8 characters",autoComplete:"off",type:"password",onChange:b,error:null==A?void 0:A.password})}),(0,t.jsx)("div",{children:(0,t.jsx)(x.Ay,{id:"confirmPassword",label:"Confirm New Password",autoComplete:"off",type:"password",onChange:b,error:null==A?void 0:A.confirmPassword})}),(0,t.jsx)(p.Ay.Carbon,{className:"flex items-center justify-center gap-1 mt-6 group mx-auto",type:"submit",loading:j,disabled:j,iconRight:(0,t.jsx)("span",{className:"group-hover:translate-x-1 transition-all block",children:(0,t.jsx)(h.ArrowRightIcon,{})}),children:"Set New Password"}),(null==A?void 0:A.apiError)?(0,t.jsx)(c.default.ErrorText,{xs:!0,className:"mt-1",children:A.apiError}):null]})]}),(0,t.jsxs)("p",{className:"text-sm text-gray-500 text-center mt-0 lg:mt-10",children:["Entered wrong email?"," ",(0,t.jsx)(v.A.TextLink,{link:w.APP_PATHS.forgotPassword,text:"Go back"})]})]})})}P.getLayout=function(e){return(0,t.jsx)("div",{children:e})};var N=!0;let j=P}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=37060)),_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.