1import{L as f}from"./Logo-BNzG4Hdg.js";import{_ as g,T as p,B as c,C as h,D as _,c as i,o as n,e as o,f as t,r as a,x as v,w as y,g as P}from"./app-6TUkk-lE.js";const V={components:{TwValidationErrors:_,TwEmail:h,TwInput:c,TwButton:p,Logo:f},data:()=>({ValidationErrorMessage:null,LoadingResettingPassword:!1,sent:!1,email:null,errors:null}),methods:{async resetPassword(){try{this.ValidationErrorMessage=null,this.LoadingResettingPassword=!0,this.errors=null;const{data:e}=await axios.post("/forgot-password",{email:this.email});this.$notify(e.message),this.sent=!0,this.LoadingResettingPassword=!1}catch(e){throw console.error(e),this.LoadingResettingPassword=!1,e.response&&(this.ValidationErrorMessage=e.response.data),e}}}},b={class:"min-h-screen flex flex-col justify-center items-center pt-6 sm:pt-0 p-4"},x={class:"w-full sm:max-w-md mt-6 px-6 py-4 bg-white shadow-md overflow-hidden rounded-lg"},E={class:"flex items-center justify-end mt-4"},L={key:1};function R(e,s,k,M,T,l){const d=a("logo"),m=a("tw-email"),u=a("tw-validation-errors"),w=a("tw-button");return n(),i("div",b,[o(d),t("div",x,[e.sent?(n(),i("div",L,[...s[4]||(s[4]=[t("p",{class:"text-gray-600"}," Please check your inbox. ",-1)])])):(n(),i("form",{key:0,onSubmit:s[1]||(s[1]=v((...r)=>l.resetPassword&&l.resetPassword(...r),["prevent"]))},[t("div",null,[s[2]||(s[2]=t("label",{class:"block font-medium text-sm text-gray-500",for:"email"}," Email ",-1)),o(m,{id:"email",modelValue:e.email,"onUpdate:modelValue":s[0]||(s[0]=r=>e.email=r),disabled:e.LoadingResettingPassword,name:"email",required:"required",autofocus:"autofocus"},null,8,["modelValue","disabled"])]),o(u,{"validation-result-error":e.ValidationErrorMessage},null,8,["validation-result-error"]),t("div",E,[o(w,{type:"submit",size:"sm",variant:"primary",loading:e.LoadingResettingPassword},{default:y(()=>[...s[3]||(s[3]=[P(" Send Password-Reset E-Mail ",-1)])]),_:1},8,["loading"])])],32))])])}const N=g(V,[["render",R]]);export{N as default}; 2//# sourceMappingURL=ForgotPassword-K28Q22_M.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.