1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[4619],{32611:function(e,t,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/a/auth/forgot-password",function(){return n(23030)}])},23030:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return x}});var r=n(85893),i=n(67294),o=n(11163),s=n(57592),a=n(52765),l=n(6406),c=n(68013),u=n(10440),d=n(22017),p=n(99229),h=n(65716),f=n(23346);function x(){let e=(0,o.useRouter)(),{email:t}=e.query,[n,x]=(0,i.useState)(""),{signIn:L}=(0,p.zq)(),g=(0,h.Z)(),{enqueueSnackbar:m}=(0,f.Z)();(0,i.useEffect)(()=>{"string"==typeof t&&x(t)},[t]);let w=e=>{m(e,{variant:"error",autoHideDuration:5e3})},C=async t=>{if(t.preventDefault(),g("click",{component_type:"link",object:"forgot_your_password",context:"log_in_form"}),!n){w("Please enter your email address");return}if(!/^[A-Z0-9._%+-]+@[A-Z0-9.-]+\.[A-Z]{2,20}$/i.test(n)){w("Please enter a valid email address");return}try{await L.create({strategy:"reset_password_email_code",identifier:n}),await e.push({pathname:"/a/auth/forgot-password/verify",query:{email:n}})}catch(e){var r,i,o,s;console.error("error",null==e?void 0:null===(i=e.errors)||void 0===i?void 0:null===(r=i[0])||void 0===r?void 0:r.longMessage),w((null==e?void 0:null===(s=e.errors)||void 0===s?void 0:null===(o=s[0])||void 0===o?void 0:o.message)||"Failed to reset password")}};return(0,r.jsx)(s.Z,{children:(0,r.jsx)("form",{onSubmit:C,className:"w-full",children:(0,r.jsxs)(a.Ht,{gap:"20px",children:[(0,r.jsx)(u.Z,{title:"Forgot your password?",backAction:()=>e.push("/a/auth")}),(0,r.jsx)("div",{className:"text-gray-500",children:"Enter the email address associated with your account, and weâll email you a code to reset your password."}),(0,r.jsx)(d.SP,{children:(0,r.jsx)(l.Z,{type:"email",placeholder:"Email",value:n,onChange:e=>x(e.target.value),required:!0})}),(0,r.jsx)(c.Z,{text:"Send reset link",type:"submit",fullWidth:!0})]})})})}},10440:function(e,t,n){"use strict";n.d(t,{Z:function(){return a}});var r=n(85893),i=n(88095),o=n(95589),s=n(52765);function a(e){let{title:t,backAction:n}=e;return(0,r.jsxs)(l,{hasArrow:!n,children:[n&&(0,r.jsx)(s.lM,{height:"32px",width:"32px",cursor:"pointer",onClick:n,background:"#F5F7F9",borderRadius:"50%",children:(0,r.jsx)(c,{})}),(0,r.jsx)(o.x,{tAlign:"center",fWeight:600,fSize:"21px",children:t})]})}let l=i.ZP.div.withConfig({componentId:"sc-de840812-0"})(["display:grid;grid-template-columns:1fr auto 1fr;",""],e=>{let{hasArrow:t}=e;return t&&(0,i.iv)(["grid-template-columns:auto;"])}),c=()=>(0,r.jsxs)("svg",{width:"8",height:"12",viewBox:"0 0 8 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,r.jsx)("path",{d:"M0.999999 5.99999L6.14238 10.8619C6.33706 11.046 6.6593 11.046 6.85399 10.8619C7.04867 10.6779 7.04867 10.3732 6.85399 10.1891L2.42322 5.99999L6.85399 1.81085C7.04867 1.62678 7.04867 1.32211 6.85399 1.13804C6.6593 0.953976 6.33706 0.953976 6.14238 1.13804L0.999999 5.99999Z",fill:"#5E696A"}),(0,r.jsx)("path",{d:"M0.999999 5.99999L0.656491 5.63667C0.556599 5.73112 0.499999 5.86252 0.499999 5.99999C0.499999 6.13746 0.556599 6.26887 0.656491 6.36331L0.999999 5.99999ZM6.14238 10.8619L6.48589 10.4986L6.14238 10.8619ZM6.85399 10.1891L7.19749 9.82582L6.85399 10.1891ZM2.42322 5.99999L2.07971 5.63667L1.69543 5.99999L2.07971 6.36331L2.42322 5.99999ZM6.85399 1.81085L7.19749 2.17417H7.19749L6.85399 1.81085ZM6.14238 1.13804L5.79887 0.774723L6.14238 1.13804ZM0.656491 6.36331L5.79887 11.2253L6.48589 10.4986L1.34351 5.63667L0.656491 6.36331ZM5.79887 11.2253C6.1863 11.5916 6.81006 11.5916 7.19749 11.2253L6.51048 10.4986C6.51215 10.497 6.51272 10.4972 6.51064 10.498C6.50823 10.4989 6.50386 10.5 6.49818 10.5C6.49251 10.5 6.48813 10.4989 6.48572 10.498C6.48365 10.4972 6.48422 10.497 6.48589 10.4986L5.79887 11.2253ZM7.19749 11.2253C7.60084 10.8439 7.60084 10.2072 7.19749 9.82582L6.51048 10.5525C6.50865 10.5507 6.50561 10.547 6.50325 10.5414C6.50105 10.5362 6.5 10.5308 6.5 10.5255C6.5 10.5203 6.50105 10.5148 6.50325 10.5097C6.50561 10.5041 6.50865 10.5004 6.51048 10.4986L7.19749 11.2253ZM7.19749 9.82582L2.76672 5.63667L2.07971 6.36331L6.51048 10.5525L7.19749 9.82582ZM2.76672 6.36331L7.19749 2.17417L6.51048 1.447
153L2.07971 5.63667L2.76672 6.36331ZM7.19749 2.17417C7.60084 1.79282 7.60084 1.15607 7.19749 0.774723L6.51048 1.50137C6.50865 1.49963 6.50561 1.49587 6.50325 1.49033C6.50105 1.48514 6.5 1.47972 6.5 1.47445C6.5 1.46918 6.50105 1.46375 6.50325 1.45856C6.50561 1.45302 6.50865 1.44926 6.51048 1.44753L7.19749 2.17417ZM7.19749 0.774723C6.81006 0.408416 6.1863 0.408416 5.79887 0.774723L6.48589 1.50137C6.48422 1.50294 6.48365 1.50276 6.48572 1.50198C6.48813 1.50106 6.49251 1.49999 6.49818 1.49999C6.50386 1.49999 6.50823 1.50106 6.51064 1.50198C6.51272 1.50276 6.51215 1.50294 6.51048 1.50137L7.19749 0.774723ZM5.79887 0.774723L0.656491 5.63667L1.34351 6.36331L6.48589 1.50137L5.79887 0.774723Z",fill:"#5E696A"})]})},57592:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(85893),i=n(9008),o=n.n(i),s=n(4298),a=n.n(s),l=n(17280),c=n(88095),u=n(14428),d=n(22017),p=n(11163),h=n(11752),f=n.n(h);function x(e){let{children:t}=e,{asPath:n}=(0,p.useRouter)(),{RAILS_URL:i}=f()().publicRuntimeConfig;return(0,r.jsxs)(l.Z,{hideFooter:!0,hideNav:!0,white:!0,children:[(0,r.jsxs)(o(),{children:[(0,r.jsx)("meta",{name:"robots",content:"noindex"}),(0,r.jsx)("link",{rel:"canonical",href:"".concat(i).concat(n)},"canonical")]}),(0,r.jsx)(a(),{strategy:"afterInteractive",src:"https://connect.facebook.net/en_US/sdk.js",crossOrigin:"anonymous"}),(0,r.jsx)(a(),{strategy:"afterInteractive",src:"https://appleid.cdn-apple.com/appleauth/static/jsapi/appleid/1/en_US/appleid.auth.js"}),(0,r.jsx)(L,{children:(0,r.jsx)(d.cX,{children:t})})]})}let L=c.ZP.div.withConfig({componentId:"sc-735b36d0-0"})(["padding-top:90px;display:flex;flex-flow:column;width:420px;margin:auto;","{padding:70px 22px 0 22px;width:auto;}"],u.$m)},95589:function(e,t,n){"use strict";n.d(t,{x:function(){return a}});var r=n(88095),i=n(14428),o=n(50043);let s=e=>{let{fWeight:t,fSize:n,lHeight:i,color:o,tTransform:s,cursor:a,tAlign:l,textDecoration:c,opacity:u}=e;return(0,r.iv)(["font-weight:",";font-size:",";line-height:",";color:",";text-transform:",";cursor:",";text-align:",";opacity:",";text-decoration:",";"],t,n,i,o,s,a,l,u,c)},a=(0,r.ZP)(o.x).withConfig({componentId:"sc-fbbb656e-0"})(["",";","{",";}","{",";}"],e=>s(e),i.Ag,e=>{let{mdMin:t={}}=e;return s(t)},i.$m,e=>{let{smMax:t={}}=e;return s(t)})}},function(e){e.O(0,[916,575,6882,2283,7668,7816,5610,1735,7769,6992,1070,7280,2017,2888,9774,179],function(){return e(e.s=32611)}),_N_E=e.O()}]); 2//# sourceMappingURL=forgot-password-2f58c259d00490c0.js.map
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.