1import{aH as j,bf as z,aG as C,aJ as L}from"#entry";import{e as M,g as U,h as A,a as G}from"./DHMnLHBW.js";import{d as P,u as H}from"./B6IS-HvE.js";import{r as J,e as X}from"./CYbb_1rQ.js";import{r as _,j as Y,p as k,e as p,q as r,d as $,f as e,t as o,ac as a,s as K,z as d,X as O,i as g}from"./CNzPmT6J.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"7d0d20f9c7cf27ec217d57ec802a374a5d5272f7"}}catch{}})();try{(function(){var t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},n=new t.Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="611f5f34-8314-4ecd-87d7-2ca200dd53fd",t._sentryDebugIdIdentifier="sentry-dbid-611f5f34-8314-4ecd-87d7-2ca200dd53fd")})()}catch{}const Q={class:"text-xl font-medium leading-6 text-slate-900"},W={key:0,class:"mt-4"},Z={class:"text-sm text-slate-600 mb-4"},ee={for:"email",class:"block text-sm font-medium text-slate-700"},se={class:"mt-1"},te={key:1,class:"mt-4"},oe={class:"text-center"},ae={class:"mx-auto flex items-center justify-center h-12 w-12 rounded-full bg-emerald-100 mb-4"},le={class:"text-lg font-medium text-slate-900 mb-2"},re={class:"text-sm text-slate-600"},fe={__name:"ForgotPassword",setup(t,{expose:n}){const R=_(),i=j(),{user:b}=z(i),u=_(!1),S=C();P("required",J),P("email",X);const V={email:"required|email"},{defineField:T,handleSubmit:q,errors:h,resetForm:v}=H({validationSchema:V}),[f]=T("email"),m=_(!1);function D(){m.value=!0,u.value=!1,i.error=null,v(),b.value?.email&&(f.value=b.value.email)}function E(){m.value=!1,u.value=!1,v()}n({openModal:D,closeModal:E});const w=q(async s=>{try{await i.requestPasswordReset(s.email),u.value=!0}catch(l){console.error("Password reset request failed:",l)}});return(s,l)=>{const y=Y("font-awesome"),I=M,x=U,N=L,B=A,F=G;return p(),k(F,{ref_key:"dialogRef",ref:R,visible:m.value,"onUpdate:visible":l[2]||(l[2]=c=>m.value=c),modal:"",draggable:!1,"dismissable-mask":!0,position:"top",class:"w-sm","pt:root":"overflow-hidden","pt:mask":"pt-24 backdrop-blur-xs","pt:header":"border-b border-slate-200","pt:footer":"bg-slate-100 !p-4 !justify-center"},{header:r(()=>[e("h3",Q,o(s.$t("pages.auth.forgotPassword.title")),1)]),closeicon:r(()=>[d(y,{class:"fa-fw",icon:["fas","xmark"]})]),default:r(()=>[u.value?(p(),$("div",te,[e("div",oe,[e("div",ae,[d(y,{class:"text-emerald-600",icon:["fas","check"]})]),e("h3",le,o(s.$t("pages.auth.forgotPassword.success.title")),1),e("p",re,o(s.$t("pages.auth.forgotPassword.success.subtitle")),1)])])):(p(),$("div",W,[e("p",Z,o(s.$t("pages.auth.forgotPassword.subtitle")),1),e("form",{class:"space-y-4",onSubmit:l[1]||(l[1]=(...c)=>a(w)&&a(w)(...c))},[e("div",null,[e("label",ee,o(s.$t("pages.auth.forgotPassword.form.email")),1),e("div",se,[d(I,{id:"email",modelValue:a(f),"onUpdate:modelValue":l[0]||(l[0]=c=>O(f)?f.value=c:null),invalid:a(h).email,fluid:"",autofocus:"",type:"email",autocomplete:"email"},null,8,["modelValue","invalid"]),d(x,{severity:"error",size:"small",variant:"simple"},{default:r(()=>[g(o(a(h).email),1)]),_:1})])]),a(i).error?(p(),k(x,{key:0,class:"mb-2",severity:"error",size:"small",variant:"error"},{default:r(()=>[g(o(s.$t("pages.auth.forgotPassword.error.generic"))+" ",1),d(N,{to:a(S)("/contact"),class:"underline font-medium"},{default:r(()=>[g(o(s.$t("pages.auth.forgotPassword.error.contactUs")),1)]),_:1},8,["to"])]),_:1})):K("",!0),e("div",null,[d(B,{type:"submit",fluid:"",loading:a(i).loadingResetPassword,disabled:a(i).loadingResetPassword},{default:r(()=>[g(o(s.$t("pages.auth.forgotPassword.form.submit")),1)]),_:1},8,["loading","disabled"])])],32)]))]),_:1},8,["visible"])}}};export{fe as _}; 2//# sourceMappingURL=BjQj9eNS.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.