-
Notifications
You must be signed in to change notification settings - Fork 0
/
5.f4f5cf9345cfb4bc.js
1 lines (1 loc) · 2.43 KB
/
5.f4f5cf9345cfb4bc.js
1
"use strict";(self.webpackChunkfrontend=self.webpackChunkfrontend||[]).push([[5],{5005:(y,s,e)=>{e.r(s),e.d(s,{LoginModule:()=>x,routes:()=>v});var c=e(6814),n=e(5879),h=e(5438),u=e(2296),g=e(5195),p=e(2032),f=e(9157),r=e(6223);function M(t,a){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Merci d'entrer un email valide"),n.qZA())}function L(t,a){1&t&&(n.TgZ(0,"mat-error"),n._uU(1,"Merci d'entrer un mot de passe entre et 20 lettres."),n.qZA())}let C=(()=>{var t;class a{constructor(o){this.authService=o}onLogin(o){o.invalid||this.authService.login(o.value.email,o.value.password)}}return(t=a).\u0275fac=function(o){return new(o||t)(n.Y36(h.e))},t.\u0275cmp=n.Xpm({type:t,selectors:[["app-login"]],decls:16,vars:3,consts:[[3,"ngSubmit"],["loginForm","ngForm"],["matInput","","name","email","ngModel","","type","email","placeholder","E-Mail","required","","email",""],["emailInput","ngModel"],[4,"ngIf"],["type","password","name","password","ngModel","","matInput","","placeholder","Password","required","","minlength","4","maxlength","20"],["passwordInput","ngModel"],[1,"button--centered"],["mat-raised-button","","color","accent","type","submit",3,"disabled"]],template:function(o,T){if(1&o){const d=n.EpF();n.TgZ(0,"mat-card")(1,"p"),n._uU(2,"Login"),n.qZA(),n.TgZ(3,"form",0,1),n.NdJ("ngSubmit",function(){n.CHM(d);const m=n.MAs(4);return n.KtG(T.onLogin(m))}),n.TgZ(5,"mat-form-field"),n._UZ(6,"input",2,3),n.YNc(8,M,2,0,"mat-error",4),n.qZA(),n.TgZ(9,"mat-form-field"),n._UZ(10,"input",5,6),n.YNc(12,L,2,0,"mat-error",4),n.qZA(),n.TgZ(13,"div",7)(14,"button",8),n._uU(15," Login "),n.qZA()()()()}if(2&o){const d=n.MAs(4),l=n.MAs(7),m=n.MAs(11);n.xp6(8),n.Q6J("ngIf",l.invalid&&l.touched),n.xp6(4),n.Q6J("ngIf",m.invalid&&m.touched),n.xp6(2),n.Q6J("disabled",!d.valid)}},dependencies:[c.O5,u.lW,g.a8,p.Nt,f.KE,f.TO,r._Y,r.Fj,r.JJ,r.JL,r.Q7,r.wO,r.nD,r.on,r.On,r.F],styles:["mat-card[_ngcontent-%COMP%]{display:block;width:80vw;margin:auto;margin:2rem auto;padding:1.5rem 0px}mat-form-field[_ngcontent-%COMP%]{display:block;margin:auto;width:100%;min-width:150px;max-width:500px}mat-spinner[_ngcontent-%COMP%]{margin:auto}.button--centered[_ngcontent-%COMP%]{display:block;margin:auto;width:100%;min-width:150px;max-width:500px;text-align:end}"]}),a})();var Z=e(1896);const v=[{path:"",component:C}];let x=(()=>{var t;class a{}return(t=a).\u0275fac=function(o){return new(o||t)},t.\u0275mod=n.oAB({type:t}),t.\u0275inj=n.cJS({imports:[c.ez,Z.Bz.forChild(v),u.ot,g.QW,p.c,r.u5]}),a})()}}]);