1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9742],{62705:function(e,r,t){var a=t(55639).Symbol;e.exports=a},44239:function(e,r,t){var a=t(62705),n=t(89607),o=t(2333),s=a?a.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":s&&s in Object(e)?n(e):o(e)}},31957:function(e,r,t){var a="object"==typeof t.g&&t.g&&t.g.Object===Object&&t.g;e.exports=a},89607:function(e,r,t){var a=t(62705),n=Object.prototype,o=n.hasOwnProperty,s=n.toString,i=a?a.toStringTag:void 0;e.exports=function(e){var r=o.call(e,i),t=e[i];try{e[i]=void 0;var a=!0}catch(e){}var n=s.call(e);return a&&(r?e[i]=t:delete e[i]),n}},2333:function(e){var r=Object.prototype.toString;e.exports=function(e){return r.call(e)}},5569:function(e){e.exports=function(e,r){return function(t){return e(r(t))}}},55639:function(e,r,t){var a=t(31957),n="object"==typeof self&&self&&self.Object===Object&&self,o=a||n||Function("return this")();e.exports=o},1469:function(e){var r=Array.isArray;e.exports=r},37005:function(e){e.exports=function(e){return null!=e&&"object"==typeof e}},27627:function(e,r,t){(window.__NEXT_P=window.__NEXT_P||[]).push(["/forgot-password",function(){return t(61536)}])},22611:function(e,r,t){"use strict";t.d(r,{Z:function(){return s}});var a=t(85893),n=t(80044);t(67294);var o=t(46015);function s(){let{values:e,errors:r,handleChange:t}=(0,n.u6)();return(0,a.jsx)(n.l0,{className:"space-y-5 md:space-y-8",children:(0,a.jsx)(o.Z,{type:"email",name:"email",label:"Email",error:!!r.email,explainer:r.email,value:e.email,onChange:t})})}},95562:function(e,r,t){"use strict";t.d(r,{Z:function(){return o}});var a=t(85893);t(67294);var n=t(90512);function o(e){let{type:r="h3",text:t,children:o,customClass:s,isBlueBrand:i=!1}=e,l=o||t,c=(0,n.Z)({"text-gray-700":!i,"text-blue-brand":i},"not-italic font-sans font-bold");return({h1:(0,a.jsx)("h1",{className:"text-4xl leading-[3.25rem] ".concat(c," ").concat(s),children:l}),h2:(0,a.jsx)("h2",{className:"text-3xl leading-[2.625rem] ".concat(c," ").concat(s),children:l}),h3:(0,a.jsx)("h3",{className:"text-2xl leading-8 ".concat(c," ").concat(s),children:l}),h4:(0,a.jsx)("h4",{className:"text-xl leading-[1.625rem] ".concat(c," ").concat(s),children:l}),h5:(0,a.jsx)("h5",{className:"text-xsm leading-[1.125rem] ".concat(c," ").concat(s),children:l})})[r]}},41824:function(e,r,t){"use strict";t.d(r,{Z:function(){return a.Z}});var a=t(95562)},46015:function(e,r,t){"use strict";t.d(r,{Z:function(){return l}});var a=t(85893),n=t(90512),o=t(67294),s=t(28453);let i=(0,o.memo)(e=>{let{onBlur:r,onChange:t,onClick:o,onFocus:i,onKeyUp:l,onKeyDown:c,open:d,required:u,type:m,value:f,name:h,label:b,placeholder:x,error:p,explainer:g,reversed:y,disabled:v,removeMargin:j,autocomplete:w,parentClass:N,helperText:_,customClassName:Z,readOnly:k}=e;return(0,a.jsxs)("div",{className:(0,n.Z)("flex flex-col mx-0 mt-0 mb-0 w-full ".concat(N),{"m-0":j}),children:[(0,a.jsxs)("div",{className:"flex justify-between",children:[b&&(0,a.jsx)(s.Z,{label:b,required:u}),_&&(0,a.jsx)("div",{children:_})]}),(0,a.jsx)("input",{readOnly:k,type:m,value:f,autoComplete:w,name:h,placeholder:x,onClick:o,onFocus:i,onBlur:r,onKeyUp:l,onKeyDown:c,onChange:t,disabled:v,className:(0,n.Z)(p&&"border border-solid border-red-logo placeholder:text-red-logo placeholder:opacity-50",!p&&"hover:border hover:border-solid border-gray-200 hover:border-gray-400 active:focus:border active:focus:border-solid active:focus:border-brand-blue placeholder:text-gray-300",y&&"border-none hover:border-none active:focus:border-none",d&&"rounded-none border-gray-400","disabled:bg-gray-100 disabled:cursor-not-allowed disabled:border disabled:border-solid disabled:border-gray-200 disabled:hover:border-gray-200"," border-solid border box-border h-12 py-2 px-3 w-full rounded m-0 shadow-none outline-0 font-sans text-sm transition-all "+Z)}),g&&(0,a.jsx)("div",{className:(0,n.Z)(y&&"text-white",p&&"text-red-logo","text-sm leading-none px-0 pb-0 pt-2 font-sans text-[gray-700]"),children:g})]})});i.displayName="Input";var l=i},28453:function(e,r,t){"use strict";t.d(r,{Z:function(){return o}});var a=t(85893);let n=(0,t(67294).memo)(e=>{let{label:r,required:t}=e;return(0,a.jsxs)("label",{className:"font-sans text-gray-700 not-italic text-sm leading-5 mb-[2px]",children:[r,t&&(0,a.jsx)("span",{className:"text-red-500",children:"*"})," "]})});n.displayName="Label";var o=n},82124:function(e,r,t){"use strict";t.d(r,{b:function(){return a}});let a=(e,r)=>{let t={};switch(e){case"auth/invalid-email":case"auth/user-not-found":case"auth/wrong-password":t={form_error:"We do not recognize that email and password combination. Please check the email and password you entered and try again."};break;case"auth/email-not-verified":t={form_error:"Email not verified."};break;case"auth/too-many-requests":t={form_error:"Too many attempts! Please try again later."};break;case"auth/requires-recent-login":t={form_error:"You need to log in again, before making any changes to your account."};break;case"auth/invalid-action-code":t={form_error:"Invalid reset code."};break;case"auth/email-already-in-use":t={email:"This email address is unavailable. Please try another or contact us for help."};break;case"auth/invalid-custom-token":case"auth/internal-error":t={form_error:"The email address associated with your Clinician's Brief account has successfully been changed. Please log out and log back in with your updated email address for access."};break;default:t={form_error:r}}return t}},61536:function(e,r,t){"use strict";t.r(r),t.d(r,{default:function(){return p}});var a=t(85893),n=t(90512),o=t(80044),s=t(67294),i=t(70152),l=t(62878),c=t(22611),d=t(30339),u=t(46717),m=t(41824),f=t(8329),h=t(82124),b=t(11163),x=t(2282);function p(){let e=(0,b.useRouter)(),{authenticated:r,isLoading:t}
1=(0,x.o7)(),[p,g]=(0,s.useState)(!0),[y,v]=(0,s.useState)(!0),j=async(e,r)=>{try{await (0,i.MI)({email:e.email,email_type:"Reset Password"}),v(!1)}catch(e){"Email not found."!==e.message?r.setErrors((0,h.b)(e.code,"Error sending password reset, Please try again later.")):v(!1)}};return(0,s.useEffect)(()=>{t||(r?e.push("/"):g(!1))},[r,t,e]),(0,a.jsx)(f.Z,{head:{ogTitle:"Forgot Your Password? | Clinician's Brief"},children:!p&&(0,a.jsx)("div",{className:"flex items-center justify-center p-10",children:(0,a.jsxs)("div",{className:"relative w-auto mx-1 shadow-action-block-shadow md:w-[41.25rem]",children:[(0,a.jsx)("div",{className:"h-2 w-full bg-red-gradient"}),(0,a.jsx)("div",{className:(0,n.Z)("w-full p-14 space-y-8"),children:y?(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.Z,{type:"h1",text:"Reset your password.",customClass:"text-red-logo"}),(0,a.jsx)(m.Z,{type:"h3",text:"Forgot your password? Just enter your email address below and we'll send you an email to reset your password."}),(0,a.jsx)(o.J9,{validationSchema:u.MD,initialValues:{email:"",form_error:""},validateOnChange:!1,validateOnBlur:!1,onSubmit:j,enableReinitialize:!0,children:e=>{let{isSubmitting:r,errors:t,submitForm:n}=e;return(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(c.Z,{}),t.form_error&&(0,a.jsx)(d.zG,{message:t.form_error,customClass:"!mt-4 !mb-0",type:"error"}),(0,a.jsx)(l.Z,{disabled:r,loading:r,onClick:n,type:"submit",text:"RESET YOUR PASSWORD"})]})}})]}):(0,a.jsxs)(a.Fragment,{children:[(0,a.jsx)(m.Z,{type:"h3",text:"If an account with this email address exists, a password reset link will be emailed."}),(0,a.jsx)(l.Z,{href:"/users/login",type:"submit",text:"Return to Sign In"})]})})]})})})}}},function(e){e.O(0,[8330,5424,8329,6717,2888,9774,179],function(){return e(e.s=27627)}),_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.