1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1982,3749,5172],{8232:(e,a,s)=>{"use strict";s.r(a),s.d(a,{default:()=>l});let l=s(83749).ForgotYourPasswordPage},43377:(e,a,s)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/auth/forgot-your-password",function(){return s(8232)}])},61885:(e,a)=>{"use strict";a.mw={prefix:"far",iconName:"paper-plane",icon:[512,512,[61913],"f1d8","M16.1 260.2c-22.6 12.9-20.5 47.3 3.6 57.3L160 376V479.3c0 18.1 14.6 32.7 32.7 32.7c9.7 0 18.9-4.3 25.1-11.8l62-74.3 123.9 51.6c18.9 7.9 40.8-4.5 43.9-24.7l64-416c1.9-12.1-3.4-24.3-13.5-31.2s-23.3-7.5-34-1.4l-448 256zm52.1 25.5L409.7 90.6 190.1 336l1.2 1L68.2 285.7zM403.3 425.4L236.7 355.9 450.8 116.6 403.3 425.4z"]},a.is=a.mw},83749:(e,a,s)=>{"use strict";s.r(a),s.d(a,{ForgotYourPassword:()=>F,ForgotYourPasswordPage:()=>A,default:()=>S});var l=s(87011),t=s(93096),i=s(6029),r=s(55729),o=s(64761),n=s(47623),c=s(82203),d=s.n(c),h=s(95669),m=s.n(h),u=s(81278),p=s(83684),g=s(61885),x=s(89525),j=s(83982),w=s(85558),k=s(48168),y=s(25284),N=s(48252),b=s(61796),f=s(16705),_=s(97606),C=s(58326),v=s.n(C),E=s(70115);let P=(0,n.Ik)().shape({email:(0,n.Yj)().trim().email().required("Required")}),F=e=>{let{closeModal:a}=e,s="function"==typeof a,{query:n,pathname:c,push:h}=(0,u.useRouter)(),[y,C]=(0,r.useState)(!1),[E,F]=(0,r.useState)(""),[S,A]=(0,r.useState)(""),L=(0,r.useMemo)(()=>({email:S||n.email||""}),[S,n.email]),T=(0,r.useCallback)(()=>F(""),[]),Y=(0,r.useCallback)(async e=>{let{email:a}=e;try{let e=(0,b.nz)()+"vendors/".concat(N.A.vendor.id,"/auth/change-password"),s={email:a.toLowerCase().trim()},l=await (0,b.Jo)({Accept:"application/json","Content-Type":"application/json"});l.method="POST",l.body=JSON.stringify(s);let t=await fetch(e,l);t.ok||await (0,b.Ze)(t),A(a),C(!0)}catch(e){F(e.message),console.error(e)}},[]),{t:O}=(0,f.FI)(),q=(0,r.useCallback)(()=>s?a():h("/auth/login"),[a,s,h]),z=(0,r.useCallback)(()=>{C(!1)},[]);return(0,i.jsxs)(x.po,{children:[(0,i.jsxs)(m(),{children:[(0,i.jsx)("title",{children:O("ForgotPass")},"title"),(0,i.jsx)("meta",{property:"og:title",content:O("ForgotPass")},"og:title"),(0,i.jsx)("link",{rel:"canonical",href:N.A.vendor.website+"/auth/forgot-your-password"},"canonical"),(0,i.jsx)("meta",{name:"description",content:O("WeEmailYou")},"description")]}),(0,i.jsx)("img",{alt:"Logo",src:N.A.logomark.url,width:N.A.logomark.width,height:N.A.logomark.height,className:"".concat(v().logo," logomark"),style:{display:s?"block":void 0}}),y?(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h1",{className:"".concat(v().h1," welcomeText"),children:O("CheckYourEmail")}),(0,i.jsx)("p",{className:v().subtitle,children:O("FollowInstructions",{email:S})}),(0,i.jsx)(_.jn,{type:"button",onClick:q,style:{width:"100%"},children:O("Done")}),(0,i.jsx)("p",{className:v().redirect,children:(0,i.jsx)("a",{className:v().a,onClick:z,children:O("Resend")})})]}):(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)("h1",{className:"".concat(v().h1," welcomeText"),children:O("ForgotPass")}),(0,i.jsx)("p",{className:v().subtitle,children:O("WeEmailYou")}),E&&(0,i.jsxs)(k.W_,{style:{maxWidth:288},children:[(0,i.jsx)("strong",{children:"Uh-oh!"})," ",E]}),(0,i.jsx)(o.l1,{initialValues:L,validationSchema:P,validateOnBlur:!1,validateOnChange:!1,onSubmit:Y,enableReinitialize:!0,children:e=>{let{errors:a,isSubmitting:s}=e;return(0,i.jsx)(o.lV,{onChange:T,children:(0,i.jsxs)("div",{className:v().formBox,children:[(0,i.jsx)(x.NE,{children:(0,i.jsx)(j.A,{errors:a.email,children:(0,i.jsx)(x.D0,{name:"email",id:"auth-email",placeholder:"Email","aria-label":"Email"})})}),(0,i.jsxs)(w.b,{Button:_.v5,className:"pump secondaryCta",isSubmitting:s,children:[(0,i.jsx)(p.y,{icon:g.is})," \xa0",O("Send")]})]})})}}),(0,i.jsx)("p",{className:v().redirect,children:(0,i.jsx)(d(),{href:s?{pathname:c,query:(0,t._)((0,l._)({},n),{modal:"login"})}:{pathname:"/auth/login",query:{redirect:n.redirect}},as:s?void 0:{pathname:"/auth/login",query:{redirect:n.redirect}},replace:!0,shallow:!0,className:v().a,children:O("BackToLogin")})})]})]})},S=(0,y.R)(F),A=()=>(0,i.jsx)(E._,{children:(0,i.jsx)(F,{})})}},e=>{e.O(0,[6445,5010,8945,7623,8822,807,8444,1743,943,636,6593,8792],()=>e(e.s=43377)),_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.