PageSourceSearch

https://ghanda.com/_next/static/chunks/125.a1a273537b2ea732.js

js ghanda.com collected 2026-10-03 21:25:46 UTC 2,087 bytes, 1 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[125],{32125:function(e,s,t){"use strict";t.r(s);var a=t(85893),r=t(67294),n=t(83999),l=t(67152),o=t(276),c=t(8930),i=t(56481),u=t(756),d=t.n(u),m=t(93967),f=t.n(m),x=t(26635),h=t(11163),_=t(41664),p=t.n(_),b=t(31061),j=t(32223);s.default=e=>{let{isPage:s=!1}=e,[t,u]=(0,r.useState)(""),[m,_]=(0,r.useState)(!1),[w,N]=(0,r.useState)(""),[g,y]=(0,r.useState)(!1),[k,E]=(0,r.useState)(!1),S=(0,x.Z)();(0,h.useRouter)();let{setModalView:v,closeModal:C}=(0,l.l8)(),A=async e=>{e.preventDefault(),g||k||(y(!0),G());try{_(!0),N(""),(0,j.re)({name:"ForgotPassword",action:{email:t}}),await S(t),_(!1),(0,b.A)("Password reset email sent!"),s||C()}catch(s){let{errors:e}=s;N(e[0].message),_(!1)}},G=(0,r.useCallback)(()=>{g&&E(!(0,n.G)(t))},[t,g]);return(0,r.useEffect)(()=>{G()},[G]),(0,a.jsxs)("div",{className:f()(d()["form-container"]),children:[(0,a.jsx)("h2",{className:f()(d()["form-container_headertext"]),children:"Forgot your password?"}),(0,a.jsx)("p",{"data-cy":"form-subtext",className:f()(d()["form-container_subtext"]),children:"Enter your email address below!"}),(0,a.jsx)("form",{onSubmit:A,className:"w-full max-w-xs flex flex-col justify-between p-3",children:(0,a.jsxs)("div",{className:"flex flex-col space-y-4",children:[w&&(0,a.jsx)(o.Z,{message:w}),(0,a.jsx)(c.Z,{label:"Email address",onChange:u,type:"email",isError:!!(t&&!(0,n.G)(t))||!!w}),(0,a.jsx)("div",{className:"pt-2 w-full flex flex-col",children:(0,a.jsx)(i.Z,{variant:"primary",type:"submit",loading:m,disabled:k,onClick:()=>v("FORGOT_VIEW"),children:"Reset Password"})}),(0,a.jsx)("span",{className:"text-center text-sm",children:s?(0,a.jsx)(p(),{href:"/login",className:"underline cursor-pointer",children:"Back to login"}):(0,a.jsx)("a",{className:"underline cursor-pointer",onClick:()=>v("LOGIN_VIEW"),children:"Back to login"})})]})})]})}},756:function(e){e.exports={"form-container":"Auth_form-container__T6fX5","form-container_headertext":"Auth_form-container_headertext__bd_2_","form-container_subtext":"Auth_form-container_subtext__5iSzg"}}}]);

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.