PageSourceSearch

https://rohitpatil.me/_next/static/chunks/pages/forgot-password-dde66f63b1e81d71.js

js rohitpatil.me collected 2026-09-28 07:15:31 UTC 2,673 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9461],{24086:(e,s,t)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/forgot-password",function(){return t(42003)}])},42003:(e,s,t)=>{"use strict";t.r(s),t.d(s,{__N_SSP:()=>p,default:()=>j});var l=t(37876),a=t(89099),r=t(14232),n=t(39312),i=t(34321),o=t(89311),c=t(68827),d=t(21639),u=t(83872),x=t(95726),m=t(16495),f=t(59243);let g={title:"Peerlist | Forget Password"};function h(){let e=new n.A,s=(0,a.useRouter)(),[t,h]=(0,r.useState)(!1),[p,j]=(0,r.useState)(""),_=async t=>{var l,a,r,n;t.preventDefault();let o=null==(l=t.target.elements.email)?void 0:l.value;if(""===o.trim())return void j(c.A.AUTH.emptyEmail);h(!0),e.set("email",o,{path:"/"});try{await i.$$.forgotPasswordRequest({email:o}),sessionStorage.getItem(m.STORAGE_KEYS.RE_VERIFY)&&sessionStorage.removeItem(m.STORAGE_KEYS.RE_VERIFY),h(!1),s.push({pathname:m.APP_PATHS.forgotPasswordConfirmation})}catch(e){j((null==e?void 0:e.response)?null==e||null==(n=e.response)||null==(r=n.data)||null==(a=r.error)?void 0:a.message:c.A.GLOBAL.wrong),h(!1)}};return(0,r.useEffect)(()=>()=>{h(!1),j("")},[]),(0,l.jsx)(f.A.ScreenLayout,{metaData:g,children:(0,l.jsxs)("div",{className:"flex flex-col gap-0 lg:gap-10 justify-center lg:items-center lg:h-screen",children:[(0,l.jsx)(f.A.FormCard,{children:(0,l.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-2 items-center",children:[(0,l.jsx)("span",{className:"text-gray-500",children:(0,l.jsx)(u.ResetPasswordIcon,{size:40})}),(0,l.jsx)(o.default.SemiBoldText,{lg:!0,className:"text-center",children:"Forgot Password"}),(0,l.jsx)(o.default.NormalText,{xs:!0,className:"text-center",children:"Please enter the email associated with your account."})]}),(0,l.jsx)("form",{onSubmit:_,children:(0,l.jsxs)("div",{className:"flex flex-col gap-6",children:[(0,l.jsxs)("div",{className:"flex flex-col gap-1",children:[(0,l.jsx)(x.Ay,{id:"email",label:"Email",type:"email",placeholder:"[email protected]",onChange:()=>{p&&j()}}),p?(0,l.jsx)(o.default.ErrorText,{children:p}):null]}),(0,l.jsx)(d.Ay.Carbon,{className:"flex items-center justify-center gap-1 mx-auto group",type:"submit",loading:t,disabled:t,iconRight:(0,l.jsx)("span",{className:"group-hover:translate-x-1 transition-all block",children:(0,l.jsx)(u.ArrowRightIcon,{})}),children:"Next"})]})})]})}),(0,l.jsxs)(o.default.MutedText,{sm:!0,className:"text-center",children:["Remember password?"," ",(0,l.jsx)(f.A.TextLink,{link:m.APP_PATHS.login,text:"Log In"})]})]})})}h.getLayout=function(e){return(0,l.jsx)("div",{children:e})};var p=!0;let j=h}},e=>{e.O(0,[636,6593,8792],()=>e(e.s=24086)),_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.