1_N_E=(window.webpackJsonp_N_E=window.webpackJsonp_N_E||[]).push([[68],{"3elN":function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/reset",function(){return t("ENmI")}])},ENmI:function(e,r,t){"use strict";t.r(r);var a=t("q1tI"),n=t.n(a),o=t("BGYt"),s=t("vJKn"),l=t.n(s),u=t("rg98"),i=t("KYPV"),c=t("YFqc"),m=t.n(c),d=t("20a2"),p=t("UGp+"),w=t("X4gC"),f=t("pvl1"),b=t("lm1b"),h=t("2ekl"),y=t("0DLD"),g=t("Xiu9"),x=t("6uqF"),P=t("Nyei"),v=t("BrDt"),C=t("5I6T"),k=n.a.createElement,j={email:"",temporaryPassword:"",newPassword:""},N=p.d().shape({email:p.f().email().required("This is required"),temporaryPassword:p.f().required("This is required"),newPassword:p.f().required("This is required")}),_=function(){var e=Object(a.useState)(!1),r=e[0],t=e[1],n=Object(a.useState)(!1),s=n[0],c=n[1],p=Object(d.useRouter)(),_=p.query.errorMessage||null,E=function(){var e=Object(u.a)(l.a.mark((function e(r,t,a){var n,o;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,v.e.resetPassword(r,t,a);case 3:if(n=e.sent,void 0!==(o=n.status)){e.next=7;break}throw new Error("Please check your email/current password.");case 7:201===o&&(C.b.success("Password successfully updated.",{position:"top-center",style:{fontSize:"16px"}}),p.push("/login")),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),C.b.error("Oops, something went wrong");case 13:case"end":return e.stop()}}),e,null,[[0,10]])})));return function(r,t,a){return e.apply(this,arguments)}}(),S=Object(a.useCallback)((function(){c((function(e){return!e}))}),[]),q=Object(a.useCallback)((function(){t((function(e){return!e}))}),[]),T=function(){var e=Object(u.a)(l.a.mark((function e(r){var t,a,n;return l.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=r.email,a=r.temporaryPassword,n=r.newPassword,E(t,a,n);case 2:case"end":return e.stop()}}),e)})));return function(r){return e.apply(this,arguments)}}(),O=Object(i.c)({onSubmit:T,initialValues:j,validationSchema:N}),B=O.values,D=O.errors,I=O.touched,z=O.handleBlur,A=O.handleChange,X=O.handleSubmit;return k(P.a,{mx:"auto",my:"2rem",boxShadow:"large"},k("form",{className:"content",onSubmit:X},k(x.c,{textAlign:"center",mb:"0.5rem"},"Rest Password"),k(x.e,{fontWeight:"600",fontSize:"12px",color:"gray.800",textAlign:"center",mb:"2.25rem"},"Please contact customer support at [email protected] to get temporary password"),k(g.a,{mb:"0.75rem",name:"email",placeholder:"[email protected]",label:"Email",type:"email",fullwidth:!0,onBlur:z,onChange:A,value:B.email||"",errorText:I.email&&D.email}),k(g.a,{mb:"1rem",name:"temporaryPassword",placeholder:"*********",autoComplete:"on",type:s?"text":"password",label:"Temporary Password",fullwidth:!0,endAdornment:k(b.a,{size:"small",type:"button",p:"0.25rem",mr:"0.25rem",color:s?"gray.700":"gray.600",onClick:S},k(y.a,{variant:"small",defaultcolor:"currentColor"},s?"eye-alt":"eye")),onBlur:z,onChange:A,value:B.temporaryPassword||"",errorText:I.temporaryPassword&&D.temporaryPassword}),k(g.a,{mb:"1rem",name:"newPassword",placeholder:"*********",autoComplete:"on",type:r?"text":"password",label:"New Password",fullwidth:!0,endAdornment:k(b.a,{size:"small",type:"button",p:"0.25rem",mr:"0.25rem",color:r?"gray.700":"gray.600",onClick:q},k(y.a,{variant:"small",defaultcolor:"currentColor"},r?"eye-alt":"eye")),onBlur:z,onChange:A,value:B.newPassword||"",errorText:I.newPassword&&D.newPassword}),k(f.a,{mb:"1.65rem",variant:"contained",color:"secondary",type:"submit",fullwidth:!0},"Submit"),_&&k(w.a,{mb:"1rem"},k(h.a,{width:"200px",mx:"auto"}),k(o.a,{justifyContent:"center",mt:"-14px"},k(x.j,{color:"text.muted",bg:"body.paper",px:"1rem"},k(x.l,{color:"red"},_)))),k(o.a,{justifyContent:"center",mb:"1.25rem"},k(x.h,null,"Don\u2019t have account?"),k(m.a,{href:"/signup"},k("a",null,k(x.f,{ml:"0.5rem",borderBottom:"1px solid",borderColor:"gray.900"},"Sign Up"))))))},E=n.a.createElement;r.default=function(){return E(o.a,{flexDirection:"column",minHeight:"100vh",alignItems:"center",justifyContent:"center"},E(_,null))}}},[["3elN",0,2,6,1,3,4,5,7,8,9,12,16]]]); 2//# sourceMappingURL=reset-806edd8f9ae5d844b9c1.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.