1import{a as J,b as K}from"./chunk-LTSQNGW4.js";import{b as W,c as U}from"./chunk-GZXWBLDX.js";import{b as T,g as N,h as L,i as R,j as A,k as B,m as q,q as D}from"./chunk-SYMMHUDK.js";import{a as y,h as O,i as F}from"./chunk-OJN5SAVN.js";import{a as j,b as G,e as H}from"./chunk-AGXY5RHB.js";import"./chunk-AAP46BYF.js";import{n as k,va as z,wa as V,ya as I}from"./chunk-FHAXE5UL.js";import{Eb as n,Fb as e,Gb as C,Kb as M,Nb as b,Pb as m,Zb as i,_a as a,_b as P,bc as v,cc as w,dc as E,fc as S,ga as _,jb as d,ka as x,qb as p,sa as u,ta as g,ub as h,zb as c}from"./chunk-4LN5X2PU.js";import"./chunk-2WH2EVR6.js";function Q(t,s){t&1&&(n(0,"div",7)(1,"mat-icon"),i(2,"mark_email_read"),e(),n(3,"div")(4,"strong"),i(5,"Email envoy\xE9"),e(),n(6,"p"),i(7," Si un compte existe pour cet email, un lien de r\xE9initialisation vient d'\xEAtre envoy\xE9. Pensez \xE0 v\xE9rifier vos spams. "),e()()(),n(8,"a",8)(9,"mat-icon"),i(10,"arrow_back"),e(),i(11," Retour \xE0 la connexion "),e())}function X(t,s){if(t&1&&(n(0,"p",12),i(1),e()),t&2){let o=m(2);a(),P(o.error())}}function Y(t,s){t&1&&(C(0,"mat-spinner",15),n(1,"span"),i(2,"Envoi\u2026"),e())}function Z(t,s){t&1&&(n(0,"span"),i(1,"Envoyer le lien"),e())}function $(t,s){if(t&1){let o=M();n(0,"form",9),b("ngSubmit",function(){u(o);let r=m();return g(r.submit())}),n(1,"mat-form-field",10)(2,"mat-label"),i(3,"Email"),e(),n(4,"input",11),E("ngModelChange",function(r){u(o);let f=m();return w(f.email,r)||(f.email=r),g(r)}),e()(),p(5,X,2,1,"p",12),n(6,"button",13),p(7,Y,3,0)(8,Z,2,0,"span"),e(),n(9,"a",14)(10,"mat-icon"),i(11,"arrow_back"),e(),i(12," Retour \xE0 la connexion "),e()()}if(t&2){let o=m();a(4),v("ngModel",o.email),a(),c(o.error()?5:-1),a(),h("disabled",o.loading()||!o.email),a(),c(o.loading()?7:8)}}var xe=(()=>{class t{constructor(){this.auth=_(I),this.email="",this.loading=d(!1),this.error=d(null),this.sent=d(!1)}submit(){this.email&&(this.error.set(null),this.loading.set(!0),this.auth.requestPasswordReset(this.email).subscribe({next:()=>{this.loading.set(!1),this.sent.set(!0)},error:()=>{this.loading.set(!1),this.error.set("Une erreur est survenue. Veuillez r\xE9essayer.")}}))}static{this.\u0275fac=function(l){return new(l||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-forgot-password"]],standalone:!0,features:[S],decls:12,vars:1,consts:[[1,"auth"],[1,"auth__panel"],["routerLink","/login",1,"brand"],[1,"brand__name"],[1,"auth__head"],[1,"muted"],["novalidate","",1,"auth__form"],["role","status",1,"ok"],["mat-stroked-button","","routerLink","/login",1,"back"],["novalidate","",1,"auth__form",3,"ngSubmit"],["appearance","outline"],["matInput","","type","email","name","email","autocomplete","email","required","","autofocus","",3,"ngModelChange","ngModel"],["role","alert",1,"error"],["mat-flat-button","","color","primary","type","submit",1,"submit",3,"disabled"],["routerLink","/login",1,"link"],["diameter","16"]],template:function(l,r){l&1&&(n(0,"div",0)(1,"div",1)(2,"a",2)(3,"span",3),i(4,"Snowbolt"),e()(),n(5,"div",4)(6,"h1"),i(7,"Mot de passe oubli\xE9"),e(),n(8,"p",5),i(9," Entrez votre email, nous vous enverrons un lien pour r\xE9initialiser votre mot de passe. "),e()(),p(10,Q,12,0)(11,$,13,4,"form",6),e()()),l&2&&(a(10),c(r.sent()?10:11))},dependencies:[D,B,T,N,L,q,A,R,k,H,G,j,F,O,y,V,z,U,W,K,J],styles:[".auth[_ngcontent-%COMP%]{min-height:100vh;display:grid;place-items:center;background:#f7f7fb;padding:2.4rem}.auth__panel[_ngcontent-%COMP%]{width:min(48rem,100%);background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 4px 12px #0f172a14,0 2px 4px #0f172a0a;padding:4rem 3.2rem;display:flex;flex-direction:column;gap:2.4rem}.brand__name[_ngcontent-%COMP%]{font-size:2rem;font-weight:600;color:#0f172a}.auth__head[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-family:Inter,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-weight:600;margin:0;line-height:1.15;color:#0f172a;letter-spacing:-.01em;font-size:3rem;margin:1.2rem 0 .8rem}@media (min-width: 768px){.auth__head[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3.6rem}}.auth__head[_ngcontent-%COMP%] .muted[_ngcontent-%COMP%]{color:#64748b;font-size:1.6rem}.auth__form[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:1.2rem}.submit[_ngcontent-%COMP%]{margin-top:.8rem;gap:.8rem}.link[_ngcontent-%COMP%]{align-self:center;margin-top:1.2rem;display:inline-flex;align-items:center;gap:.4rem;color:#475569;font-size:1.5rem;font-weight:500;text-decoration:none}.link[_ngcontent-%COMP%]:hover{color:#1d4ed8}.back[_ngcontent-%COMP%]{align-self:flex-start;gap:.8rem}.error[_ngcontent-%COMP%]{font-size:1.3rem;color:#b91c1c;background:#fef2f2;padding:1.2rem 1.6rem;border:1px solid rgba(239,68,68,.25);border-radius:10px}.ok[_ngcontent-%COMP%]{display:flex;gap:1.2rem;align-items:flex-start;padding:1.6rem;background:#ecfdf5;border:1px solid rgba(16,185,129,.3);color:#047857;border-radius:10px}.ok[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{flex-shrink:0;color:#047857;font-size:24px;width:24px;height:24px;line-height:24px;overflow:visible}.ok[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{display:block;font-size:1.6rem;font-weight:600}.ok[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:.4rem 0 0;font-size:1.5rem;color:#475569}"]})}}return t})();export{xe as ForgotPasswordComponent};
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.