(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2943],{32714:function(t,e,n){(window.__NEXT_P=window.__NEXT_P||[]).push(["/user/forgot-password",function(){return n(91780)}])},25247:function(t,e,n){"use strict";var i=n(85893),r=n(67294);e.Z=t=>{let{message:e,politeness:n,className:a,...o}=t,[s,l]=(0,r.useState)("");return(0,r.useEffect)(()=>{let t=e;t===s&&(t+="\xa0"),l(t)},[e]),(0,i.jsx)("div",{"aria-atomic":!0,"aria-live":n,style:a?{}:{position:"absolute",visibility:"visible",overflow:"hidden",display:"block",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",clip:"rect(0px, 0px, 0px, 0px)",clipPath:"polygon(0px 0px, 0px 0px, 0px 0px, 0px 0px)",whiteSpace:"nowrap"},className:a,...o,children:s.length?(0,i.jsx)("p",{children:s}):null})}},29058:function(t,e,n){"use strict";var i=n(85893),r=n(67294),a=n(84677),o=n(56027),s=n(1420);let l=(0,o.ZL)()(()=>({root:{backgroundColor:s.nS,borderRadius:"24px",boxShadow:"none",width:"200px","&:hover, &:focus":{boxShadow:"none",backgroundColor:"#062327"},textTransform:"none","&, .CgHtmlContent &, .CgHtmlContent &:hover":{color:"white",fontWeight:600}}}));e.Z=r.forwardRef(function(t,e){let{size:n="large",className:r=null,...o}=t,{classes:s,cx:c}=l();return(0,i.jsx)(a.Z,{...o,variant:"contained",color:"primary",ref:e,size:n,className:c(s.root,r)})})},72892:function(t,e,n){"use strict";var i=n(85893);n(67294);var r=n(93967),a=n.n(r),o=n(21485),s=n(56027);e.Z=(0,s.D2)(function(t){let{classes:e,className:n,...r}=t;return(0,i.jsx)(o.Z,{...r,className:a()(n,e.font)})},t=>({font:{fontFamily:'"Montserrat", sans-serif',fontSize:"0.8rem",color:t.palette.error.main}}))},89077:function(t,e,n){"use strict";n.d(e,{W:function(){return s}});var i=n(85893);n(67294);var r=n(21485),a=n(56027),o=n(1420);let s=t=>({font:{fontFamily:'"Montserrat", sans-serif',fontSize:34,lineHeight:"38px",fontWeight:600,color:o.$R,[t.breakpoints.down("md")]:{fontSize:28}}}),l=(0,a.ZL)()(s);e.Z=t=>{let{className:e,...n}=t,{classes:a,cx:o}=l();return(0,i.jsx)(r.Z,{component:"h1",className:o(e,a.font),...n})}},80685:function(t,e,n){"use strict";n.d(e,{W:function(){return s}});var i=n(85893);n(67294);var r=n(21485),a=n(56027),o=n(61099);let s=t=>({font:{fontFamily:'"Montserrat", sans-serif',fontSize:28,lineHeight:"30px",fontWeight:400,[t.breakpoints.down("md")]:{fontSize:21}},asH3Styles:{...(0,o.W)(t).font}}),l=(0,a.ZL)()(s);e.Z=t=>{let{styleAsH3:e,className:n,...a}=t,{classes:o,cx:s}=l(),c=e?o.asH3Styles:o.font;return(0,i.jsx)(r.Z,{component:"h2",...a,className:s(n,c)})}},87869:function(t,e,n){"use strict";n.d(e,{W:function(){return o}});var i=n(85893);n(67294);var r=n(21485),a=n(56027);let o=t=>({font:{fontFamily:'"Montserrat", sans-serif',fontSize:18,lineHeight:"21px",fontWeight:400}}),s=(0,a.ZL)()(o);e.Z=t=>{let{className:e,...n}=t,{classes:a,cx:o}=s();return(0,i.jsx)(r.Z,{component:"h4",...n,className:o(e,a.font)})}},27102:function(t,e,n){"use strict";n.d(e,{W:function(){return o}});var i=n(85893);n(67294);var r=n(21485),a=n(56027);let o=t=>({font:{fontFamily:'"Montserrat", sans-serif',fontSize:14,lineHeight:"21px",fontWeight:600}}),s=(0,a.ZL)()(o);e.Z=t=>{let{className:e,...n}=t,{classes:a,cx:o}=s();return(0,i.jsx)(r.Z,{component:"h5",...n,className:o(e,a.font)})}},88210:function(t,e,n){"use strict";n.d(e,{W:function(){return o}});var i=n(85893);n(67294);var r=n(21485),a=n(56027);let o=t=>({font:{fontFamily:'"Montserrat", sans-serif',fontSize:16,lineHeight:"21px",fontWeight:300,marginTop:t.spacing(2.9),marginBottom:t.spacing(2.9)}}),s=(0,a.ZL)()(o);e.Z=(0,a.D2)(t=>{let{className:e,...n}=t,{classes:a,cx:o}=s();return(0,i.jsx)(r.Z,{component:"h6",...n,className:o(e,a.font)})},o)},4457:function(t,e,n){"use strict";var i=n(85893);n(67294);var r=n(56027),a=n(89077),o=n(80685),s=n(61099),l=n(87869),c=n(27102),d=n(88210),u=n(31788),f=n(84136);let g=(0,r.ZL)()(t=>({container:{"& h1":(0,a.W)(t).font,"& h2":(0,o.W)(t).font,"& h3":(0,s.W)(t).font,"& h4":(0,l.W)(t).font,"& h5":(0,c.W)(t).font,"& h6":(0,d.W)(t).font,"&, & p, & ul, & ol":(0,u.W)(t).font,"& a":(0,f.W)(t).font,"& img":{maxWidth:"100%",height:"auto"},"& figure":{marginLeft:0,marginRight:0,"& > img":{display:"block",margin:"0 auto",width:"auto",height:"auto"},"& > figcaption":{fontSize:14,lineHeight:"20px",fontWeight:400,fontStyle:"italic",marginTop:t.spacing(1)}},"& iframe":{width:"100%",aspectRatio:"16/9"},"& .text-align-left":{textAlign:"left"},"& .text-align-right":{textAlign:"right"},"& .text-align-center":{textAlign:"center"},"& .text-align-justify":{textAlign:"justify"},[t.breakpoints.down("lg")]:{"& .align-left, & .align-right, & .align-center":{display:"block",margin:"1em auto"}},[t.breakpoints.up("lg")]:{"& .align-left":{float:"left",margin:"0 1em 1em 0",maxWidth:"50%"},"& .align-right":{float:"right",margin:"0 0 1em 1em",maxWidth:"50%"},"& .align-center":{display:"block",margin:"1em auto"}},display:"flow-root","& > *:first-child":{marginTop:0},"& > *:last-child":{marginBottom:0}}}));e.Z=t=>{let{component:e="div",className:n=null,html:r=null,children:a}=t,{classes:o,cx:s}=g(),l=s("CgHtmlContent",n,o.container),c={};return null!==r&&(c.dangerouslySetInnerHTML={__html:r}),(0,i.jsx)(e,{className:s(l,n),...c,children:a})}},94326:function(t,e,n){"use strict";n.d(e,{Ak:function(){return f},D4:function(){return g},hj:function(){return u},qn:function(){return d},rE:function(){return p}});var i=n(85893);n(67294);var r=n(93967),a=n.n(r),o=n(80685),s=n(12271),l=n(89077),c=n(31754);let d=t=>(0,i.jsx)(l.Z,{gutterBottom:!0,...t}),u=t=>{let{className:e="",...n}=t,{classes:r}=(0,s.Z)();return(0,i.jsx)(c.Z,{elevation:2,className:a()(r.groupedField,e),...n})},f=t=>{let{className:e="",...n}=t,{classes:r}=(0,s.Z)();return(0,i.jsx)(o.Z,{...n,styleAsH3:!0,className:a()(e,r.headerPadding,r.headingH3)})},g=t=>{let{className:e="",...n}=t,{classes:r}=(0,s.Z)();return(0,i.jsx)("div",{...n,className:a()(e,r.standardPadding)})},p=t=>{let{className:e="",...n}=t,{classes:r}=(0,s.Z)();return(0,i.jsx)("div",{...n,className:a()(e,r.headerPadding)})}},12271:function(t,e,n){"use strict";let i=(0,n(56027).ZL)()(t=>({fieldWrapper:{margin:"2rem 0"},button:{marginTop:t.spacing(4)},copyButton:{"body &":{width:"auto"}},groupedField:{boxShadow:"0 2px 4px rgba(0, 0, 0, 0.25)",padding:"0 ".concat(t.spacing(4)," ").concat(t.spacing(2)," ").concat(t.spacing(4)),marginBottom:t.spacing(6),marginTop:t.spacing(6)},ibType:{paddingBottom:t.spacing(2)},headerPadding:{padding:"".concat(t.spacing(4)," 0 ").concat(t.spacing(1)," 0"),"&.MuiFormLabel-root":{padding:"".concat(t.spacing(4)," 0 ").concat(t.spacing(1)," 0")}},standardPadding:{padding:"".concat(t.spacing(4)," 0 ").concat(t.spacing(1))},lastSection:{marginBottom:0},profileStatusSection:{boxShadow:"none",padding:"0",marginTop:0},formSpacer:{display:"flex",justifyContent:"space-between",alignItems:"first baseline",[t.breakpoints.down("md")]:{flexDirection:"column"}},radioGroup:{justifyContent:"space-between",[t.breakpoints.down("md")]:{flexDirection:"column"}},yearField:{flexBasis:"20%"},myRootClass:{flexBasis:"78%"},headingH3:{fontSize:"21px !important",fontWeight:600,lineHeight:"21px !important",[t.breakpoints.down("md")]:{fontSize:"18px !important"},"&.MuiFormLabel-root":{fontWeight:600}},interfaceHeading:{marginBottom:t.spacing(2)},errorMessageContainer:{justifyContent:"space-between","& > div:first-child":{flexBasis:"70%"},"& > div:last-child":{flexBasis:"30%"},[t.breakpoints.down("md")]:{flexDirection:"column-reverse","& > div":{flexBasis:"100%"}}},helperText:{textAlign:"end !important"}}));e.Z=i},69854:function(t,e,n){"use strict";var i=n(85893);n(67294);var r=n(87536),a=n(50720),o=n(46705);e.Z=t=>{let{formContext:e,pickersContext:n=!1,children:s,...l}=t,c=(0,i.jsx)(r.RV,{...e,children:(0,i.jsx)("form",{...l,noValidate:!0,children:s})});return n&&(c=(0,i.jsx)(a._,{dateAdapter:o.H,children:c})),c}},86011:function(t,e,n){"use strict";var i=n(85893);n(67294);var r=n(56027),a=n(31754);let o=(0,r.ZL)()(t=>({paper:{padding:t.spacing(4)}}));e.Z=t=>{let{children:e,className:n=null}=t,{classes:r,cx:s}=o();return(0,i.jsx)(a.Z,{className:s(r.paper,n),children:e})}},91780:function(t,e,n){"use strict";n.r(e),n.d(e,{default:function(){return k}});var i=n(85893),r=n(67294),a=n(86011),o=n(68573),s=n(89077),l=n(11163),c=n(87536),d=n(4318),u=n(40492),f=n(72892),g=n(41664),p=n.n(g),m=n(84136),h=n(29058),x=n(69854),j=n(94326),Z=n(25247),v=n(4457),b=n(91553),y=n(31788),w=(0,b.Z)({remount:!0,isAuthenticated:!0})(t=>{let{isAuthenticated:e}=t,n=(0,l.useRouter)(),a=(0,c.cI)(),{handleSubmit:o,reset:s}=a,[g,b]=(0,r.useState)(!1),[w,S]=(0,r.useState)(!1),[W,k]=(0,r.useState)("");(0,r.useEffect)(()=>{e&&n.push("/user/account")},[e]);let H=async t=>{S(!0),k(""),b(!1);try{await d.Z.post("/user/password?_format=json",t),b(!0)}catch(i){var e,n;let t=null===(n=i.response)||void 0===n?void 0:null===(e=n.data)||void 0===e?void 0:e.message;void 0===W&&(t=i.message),k("Error: "+t)}S(!1),s()};return(0,i.jsxs)(x.Z,{formContext:a,onSubmit:o(H),children:[(0,i.jsx)(j.D4,{children:(0,i.jsxs)(y.Z,{children:["Enter email used in registration. If you have an account, you will receive an email to reset your password. If not, please"," ",(0,i.jsx)(p(),{href:"/user/register",passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(m.Z,{children:"sign up"})})," ","for a new account."]})}),(0,i.jsx)(j.D4,{children:(0,i.jsx)(c.Qr,{render:t=>{let{field:e}=t;return(0,i.jsx)(u.Z,{required:!0,label:"Email",autoFocus:!0,fullWidth:!0,...e})},name:"mail",defaultValue:""})}),(0,i.jsx)(j.D4,{children:(0,i.jsx)(h.Z,{disabled:w,type:"submit",children:"Submit"})}),!!W&&(0,i.jsxs)(j.D4,{children:[(0,i.jsx)(f.Z,{children:W}),(0,i.jsx)(Z.Z,{message:W})]}),g&&(0,i.jsx)(j.D4,{children:(0,i.jsxs)(v.Z,{children:["If you have an account, a password reset message has been sent to your e-mail address. Please click the link in that email to reset your password and log in.",(0,i.jsx)("br",{}),(0,i.jsx)(p(),{href:"/user/login",passHref:!0,legacyBehavior:!0,children:(0,i.jsx)(m.Z,{gutterBottom:!0,children:"Click here to return to login"})})]})})]})}),S=()=>(0,i.jsxs)(a.Z,{children:[(0,i.jsx)(s.Z,{gutterBottom:!0,children:"Forgot Password"}),(0,i.jsx)(o.ZP,{container:!0,children:(0,i.jsx)(o.ZP,{item:!0,sm:12,md:6,lg:5,children:(0,i.jsx)(w,{})})})]}),W=n(34777),k=()=>(0,i.jsxs)(i.Fragment,{children:[(0,i.jsx)(W.Z,{children:"Reset password"}),(0,i.jsx)(S,{})]})}},function(t){t.O(0,[8946,492,6593,2888,9774,179],function(){return t(t.s=32714)}),_N_E=t.O()}]);