PageSourceSearch

https://www.trulia.com/assets/static/prod/2026ba3f/_next/static/ch…/auth/forgot_password-ec20d5f3442867e5.js

js trulia.com collected 2026-09-24 07:19:34 UTC 5,849 bytes, 13 lines download raw bytes

1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[5984],{37936:(e,t,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/forgot_password",function(){return s(68616)}])},44267:(e,t,s)=>{"use strict";s.d(t,{A:()=>n});var r=s(37876),i=s(61363),a=s(14232);function n(e){let{route:t,children:s,enableSoftRouting:n,...o}=e,l=a.Children.toArray(s).some(e=>(0,a.isValidElement)(e)&&("_blank"===e.props.target||"_new"===e.props.target));return t&&n&&!l?(0,r.jsx)(i.Link,{legacyBehavior:!0,route:t,prefetch:!1,...o,onClick:e=>{let t=!0;return"function"==typeof o.onClick&&(t=o.onClick(e)),!e.metaKey&&!e.ctrlKey&&!e.shiftKey&&(!e.nativeEvent||2!==e.nativeEvent.which)&&t},children:s}):a.Children.map(s,e=>e?(0,a.cloneElement)(e,o):null)}},68616:(e,t,s)=>{"use strict";s.r(t),s.d(t,{default:()=>b});var r=s(95531),i=s(37876),a=s(3219),n=s(18815),o=s(24305),l=s(14232),d=s(81961),c=s(40889),h=s(23404),u=s(30533),p=s(76721),g=s(19081),m=s(33791),w=s(88954),P=s(68719),f=s(79721),y=s(71443),j=s(6),x=s(81124);let k=(0,a.J1)`
2  query WEB_authForgotPasswordPageDetailsLookup {
3    primaryNavigation {
4      ...Header
5    }
6    viewer {
7      ...Viewer
8    }
9  }
10
11  ${n.A.fragments.header}
12  ${o.Viewer}
13`,v={siteSection:"login page",pageDetails:"email form",pageName:"login page: forgot password:email form",pageType:"forgot password",form:"reg:free pass"};class C extends l.Component{static{this.getInitialProps=async e=>{let t=(0,x.Ko)(e.req),{data:s}=await t.query({query:k});return(0,j.j)(s.viewer.loggedIn)||(0,x.$1)(t,{_page:{tracking:{...v,pageLoad:"1"}},primaryNavigation:s.primaryNavigation,viewer:s.viewer})}}constructor(e){super(e),this.handleSubmit=({email:e})=>{let{userActions:t}=this.props,s=!1,r=null;this.props.createAnalyticsEvent(p.c.ACTION,{interactedWith:"button:submit"}).track(),this.setState({isResettingPassword:!0,resetPasswordError:r},async()=>{try{let{data:i}=await t.resetPassword({email:e}),{resetPassword:{success:a,errorMessage:n}}=i;a?s=!0:r=n||this.props.i18n.t("authForgotPasswordPage.errors.generic")}catch(e){r=this.props.i18n.t("authForgotPasswordPage.errors.generic")}finally{this.setState({isResettingPassword:!1,resetPasswordError:r,passwordResetEmailSent:s})}})},this.state={resetPasswordError:null,isResettingPassword:!1,passwordResetEmailSent:!1}}render(){let{isResettingPassword:e,passwordResetEmailSent:t,resetPasswordError:s}=this.state,{primaryNavigation:r,userActions:a,session:o,i18n:l}=this.props,{t:d}=l;return(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(p.a5,{name:"trulia.global.authentication-viewed",version:1,payload:{experience_surface:"forgot_password"}}),(0,i.jsx)(h.A,{children:(0,i.jsx)(n.A,{primaryNavigation:r,userActions:a,viewer:o&&o.viewer})}),(0,i.jsxs)(c.A,{children:[t&&(0,i.jsxs)(u.eFn,{children:[(0,i.jsx)(u.l0$,{children:(0,i.jsx)(u.DZT,{children:d("authForgotPasswordPage.success.heading")})}),(0,i.jsx)(u.BuI,{children:(0,i.jsx)("p",{children:d("authForgotPasswordPage.success.message")})})]}),!t&&(0,i.jsxs)(u.eFn,{children:[(0,i.jsx)(u.l0$,{children:(0,i.jsx)(u.fa4,{width:200,height:50,isInline:!0})}),(0,i.jsx)(u.BuI,{role:"main",children:(0,i.jsx)(u.aCW,{children:(0,i.jsxs)(u.lVW,{onSubmit:this.handleSubmit,children:[(0,i.jsx)(u.DZT,{style:{fontSize:24},children:(0,i.jsxs)("strong",{children:[d("authForgotPasswordPage.heading"),(0,i.jsx)("br",{}),d("authForgotPasswordPage.subheading")]})}),s&&(0,i.jsx)(u.EYj,{color:"alert",children:s}),(0,i.jsx)(u.D0$,{label:d("authForgotPasswordPage.labels.email"),children:(0,i.jsx)(u.pde,{"data-testid":"auth-forgot-password-email-input",name:"email",type:"email",placeholder:d("authForgotPasswordPage.placeholders.emailAddress"),autoComplete:"email"})}),(0,i.jsx)("div",{"data-testid":"auth-forgot-password-email-validator",role:"alert",children:(0,i.jsx)(u.Drx,{name:"email",validationFunction:y.DT,children:d("authForgotPasswordPage.errors.emailRequired")})}),(0,i.jsx)(u.Yqy,{t:"xs"}),(0,i.jsx)(u.jnt,{type:"submit","data-testid":"auth-forgot-password-submit",disabled:e,fill:!0,children:d("authForgotPasswordPage.buttons.submit")})]})})}),(0,i.jsx)(u.rcA,{role:"contentinfo",children:(0,i.jsx)(f.A,{message:d("authForgotPasswordPage.footer.rememberPassword")})})]})]})]})}}C=(0,r.Cg)([(0,g.W)({session:m.IC,tracking:w.fu,userActions:P.y}),(0,p.ED)(v),(0,p.u4)(),(0,r.Sn)("design:type",Function),(0,r.Sn)("design:paramtypes",["u"<typeof Props?Object:Props])],C);let b=(0,d.z)(C)},79721:(e,t,s)=>{"use strict";s.d(t,{A:()=>h});var r=s(95531),i=s(37876),a=s(76721),n=s(44267),o=s(14232),l=s(94053),d=s(81961);class c extends o.Component{static{this.defaultProps={interactedWith:"link:login"}}constructor(e){super(e),this.handleLinkClick=this.handleLinkClick.bind(this)}handleLinkClick(e){let{onClick:t}=this.props;"function"==typeof t&&t(e)}render(){let{redirectPath:e,message:t,i18n:s}=this.props,{t:r}=s,a=(0,l.G)(e),o=t||r("searchResults.sharedComponents.links.logInMessage"),d=(0,i.jsx)("a",{"data-testid":"login-link",href:a,children:r("searchResults.sharedComponents.links.logIn")});return(0,i.jsxs)("div",{children:[o," ",(0,i.jsx)(n.A,{route:a,onClick:this.handleLinkClick,children:d})]})}}(0,r.Cg)([(0,a.u4)(e=>({type:a.c.INTERACTION,interactedWith:e.interactedWith})),(0,r.Sn)("design:type",Function),(0,r.Sn)("design:paramtypes",[void 0]),(0,r.Sn)("design:returntype",void 0)],c.prototype,"handleLinkClick",null),c=(0,r.Cg)([(0,a.u4)(),(0,r.Sn)("design:type",Function),(0,r.Sn)("design:paramtypes",["u"<typeof Props?Object:Props])],c);let h=(0,d.z)(c)},94053:(e,t,s)=>{"use strict";function r(e){if(e)return Array.isArray(e)?e.join("/"):e}function i(e){let t=r(e);return t&&t.trim()?`/login/r/${encodeURIComponent(t)}`:"/login/"}function a(e){let t=r(e);return t&&t.trim()?`/signup/r/${encodeURIComponent(t)}`:"/signup/"}s.d(t,{G:()=>i,f:()=>a})}},e=>{e.O(0,[2750,8815,463,636,6593,8792],()=>e(e.s=37936)),_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.