2bf7a6af7f34dc41c41293ee35eabd37e6ae5e7ca8ab737709b8223c80edeb0a.json 22 KB

1
  1. {"ast":null,"code":"import { Validators } from '@angular/forms';\nimport { MustMatch } from '../shared/validator/confirm-password.validator';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"@angular/router\";\nimport * as i2 from \"src/app/services/auth.service\";\nimport * as i3 from \"@angular/forms\";\nimport * as i4 from \"@angular/material/icon\";\nimport * as i5 from \"@angular/platform-browser\";\nimport * as i6 from \"@angular/common\";\nimport * as i7 from \"@angular/material/button\";\nimport * as i8 from \"@angular/material/input\";\nimport * as i9 from \"@angular/material/form-field\";\nimport * as i10 from \"@angular/material/card\";\nimport * as i11 from \"@angular/material/progress-bar\";\nimport * as i12 from \"@angular/material/datepicker\";\nfunction RegisterComponent_mat_progress_bar_5_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelement(0, \"mat-progress-bar\", 36);\n }\n}\nfunction RegisterComponent_mat_error_31_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"mat-error\");\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r1 = i0.ɵɵnextContext();\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate1(\" \", ctx_r1.getErrorLastname(), \" \");\n }\n}\nfunction RegisterComponent_mat_error_34_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"mat-error\");\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r2 = i0.ɵɵnextContext();\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate1(\" \", ctx_r2.getErrorFirstname(), \" \");\n }\n}\nfunction RegisterComponent_mat_error_38_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"mat-error\");\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r3 = i0.ɵɵnextContext();\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate1(\" \", ctx_r3.getErrorPhonenumber(), \" \");\n }\n}\nfunction RegisterComponent_mat_error_47_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"mat-error\");\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r5 = i0.ɵɵnextContext();\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate1(\" \", ctx_r5.getErrorDate(), \" \");\n }\n}\nfunction RegisterComponent_mat_error_51_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"mat-error\");\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r6 = i0.ɵɵnextContext();\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate1(\" \", ctx_r6.getErrorAdress(), \" \");\n }\n}\nfunction RegisterComponent_mat_error_55_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"mat-error\");\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r7 = i0.ɵɵnextContext();\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate1(\" \", ctx_r7.getErrorEmail(), \" \");\n }\n}\nfunction RegisterComponent_mat_error_61_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"mat-error\");\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r8 = i0.ɵɵnextContext();\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate1(\" \", ctx_r8.getErrorPassword(), \" \");\n }\n}\nfunction RegisterComponent_mat_error_67_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"mat-error\");\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r9 = i0.ɵɵnextContext();\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate1(\" \", ctx_r9.getErrorConfirmPassword(), \" \");\n }\n}\nfunction RegisterComponent_mat_error_79_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"mat-error\", 37);\n i0.ɵɵtext(1);\n i0.ɵɵelementEnd();\n }\n if (rf & 2) {\n const ctx_r10 = i0.ɵɵnextContext();\n i0.ɵɵadvance(1);\n i0.ɵɵtextInterpolate1(\" \", ctx_r10.getErrorTerms(), \" \");\n }\n}\nconst googleLogoURL = \"../assets/img/social/google+.svg\";\nconst facebookLogoURL = \"../assets/img/social/facebook.svg\";\nexport let RegisterComponent = /*#__PURE__*/(() => {\n class RegisterComponent {\n constructor(router, authService, formBuilder, matIconRegistry, domSanitizer) {\n this.router = router;\n this.authService = authService;\n this.formBuilder = formBuilder;\n this.matIconRegistry = matIconRegistry;\n this.domSanitizer = domSanitizer;\n this.submitted = false;\n this.loading = false;\n this.hide = true;\n this.matIconRegistry.addSvgIcon(\"googleLogo\", this.domSanitizer.bypassSecurityTrustResourceUrl(googleLogoURL)), this.matIconRegistry.addSvgIcon(\"facebookLogo\", this.domSanitizer.bypassSecurityTrustResourceUrl(facebookLogoURL));\n const currentYear = new Date().getFullYear();\n this.maxDate = new Date(currentYear - 10, 11, 31);\n }\n ngOnInit() {\n this.createForm();\n }\n createForm() {\n let emailregex = /^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/;\n let caracereregex = /^[a-zA-ZàáâäãåąčćęèéêëėįìíîïłńòóôöõøùúûüųūÿýżźñçčšžÀÁÂÄÃÅĄĆČĖĘÈÉÊËÌÍÎÏĮŁŃÒÓÔÖÕØÙÚÛÜŲŪŸÝŻŹÑßÇŒÆČŠŽ∂ð ,.'-]+$/;\n let adressregex = /^[A-z0-9À-ž\\s ,.'-]+$/;\n let phonenumberregex = /^(?:(?:\\+|00)33|0)\\s*[1-9](?:[\\s.-]*\\d{2}){4}$/;\n let dateregex = /^((31(?!\\ (Feb(ruary)?|Apr(il)?|June?|(Sep(?=\\b|t)t?|Nov)(ember)?)))|((30|29)(?!\\ Feb(ruary)?))|(29(?=\\ Feb(ruary)?\\ (((1[6-9]|[2-9]\\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00)))))|(0?[1-9])|1\\d|2[0-8])\\ (Jan(uary)?|Feb(ruary)?|Ma(r(ch)?|y)|Apr(il)?|Ju((ly?)|(ne?))|Aug(ust)?|Oct(ober)?|(Sep(?=\\b|t)t?|Nov|Dec)(ember)?)\\ ((1[6-9]|[2-9]\\d)\\d{2})$/;\n this.formGroup = this.formBuilder.group({\n lastname: [null, [Validators.required, Validators.pattern(caracereregex)]],\n firstname: [null, [Validators.required, Validators.pattern(caracereregex)]],\n phonenumber: [null, [Validators.required, Validators.pattern(phonenumberregex)]],\n birthday: [null, [Validators.required]],\n terms: [false, Validators.requiredTrue],\n adress: [null, [Validators.required, Validators.pattern(adressregex)]],\n email: [null, [Validators.required, Validators.pattern(emailregex)]],\n password: [null, [Validators.required, this.checkPassword]],\n confirmPassword: [null, Validators.required]\n }, {\n validator: MustMatch('password', 'confirmPassword')\n });\n }\n checkPasswords(group) {\n let pass = group.controls.password.value;\n let confirmPass = group.controls.confirmPassword.value;\n return pass === confirmPass ? null : {\n notSame: true\n };\n }\n getErrorLastname() {\n return this.formGroup.get('lastname').hasError('required') ? 'Nom requis' : this.formGroup.get('lastname').hasError('pattern') ? 'Nom non valide' : 'Nom non valide';\n }\n getErrorFirstname() {\n return this.formGroup.get('firstname').hasError('required') ? 'Prénom requis' : this.formGroup.get('firstname').hasError('pattern') ? 'Prénom non valide' : 'Prénom non valide';\n }\n getErrorPhonenumber() {\n return this.formGroup.get('phonenumber').hasError('required') ? 'Numéro de téléphone requis' : this.formGroup.get('phonenumber').hasError('pattern') ? 'Numéro de téléphone non valide' : '';\n }\n getErrorAdress() {\n return this.formGroup.get('adress').hasError('required') ? 'adresse requise' : this.formGroup.get('adress').hasError('pattern') ? 'Prénom non valide' : 'Prénom non valide';\n }\n getErrorDate() {\n return this.formGroup.get('birthday').hasError('required') ? 'Date de naissance requise' : this.formGroup.get('birthday').hasError('pattern') ? 'Date de naissance non valide' : '';\n }\n getErrorTerms() {\n return this.formGroup.get('terms').hasError('required') ? 'Please accept the terms' : this.formGroup.get('terms').hasError('pattern') ? 'terms not accepted' : '';\n }\n getErrorConfirmPassword() {\n return this.formGroup.get('confirmPassword').hasError('required') ? 'Confirmation mot de passe requise' : this.formGroup.hasError('MustMatch') ? '' : 'Les mots de passe saisis ne sont pas identiques';\n }\n checkPassword(control) {\n let enteredPassword = control.value;\n let passwordCheck = /^(?=.*[A-Z])(?=.*[a-z])(?=.{8,})/;\n return !passwordCheck.test(enteredPassword) && enteredPassword ? {\n 'requirements': true\n } : null;\n }\n getErrorEmail() {\n return this.formGroup.get('email').hasError('required') ? 'Adresse email requise' : this.formGroup.get('email').hasError('pattern') ? 'Adresse email non valide' : '';\n }\n getErrorPassword() {\n return this.formGroup.get('password').hasError('required') ? 'Mot de passe requis' : this.formGroup.get('password').hasError('requirements') ? 'Le mot de passe doit comporter au moins 8 caractères, une lettre majuscule, une lettre majuscule' : '';\n }\n get f() {\n return this.formGroup.controls;\n }\n // openSnackBar(message : string) {\n // this.snackBar.open(message, 'action', {\n // duration: 5000,\n // });\n // }\n //google signIn\n signInWithGoogle() {\n this.authService.signInWithGoogle().subscribe(_user => {\n // Redirection après l'authentification réussie avec Google\n this.router.navigate(['/auth']);\n }, error => {\n console.log(error);\n // Gérer l'erreur\n });\n }\n // this.authService.signGoogle().subscribe(\n // data=> {\n // console.log(data); \n // this.router.navigate(['/auth']);\n // },\n // error=> {\n // console.log(error);\n // });\n signUp() {\n this.submitted = true;\n if (this.formGroup.invalid) {\n return;\n }\n this.loading = true;\n this.authService.signUP(this.formGroup.value).subscribe(data => {\n // this.router.navigate([this.returnUrl]);\n console.log(data);\n this.loading = false;\n this.router.navigate(['/auth']);\n }, err => {\n this.loading = false;\n console.log(err.error.message);\n this.authService.openSnackBar(err.error.message);\n });\n console.log(this.formGroup.value);\n }\n static #_ = this.ɵfac = function RegisterComponent_Factory(t) {\n return new (t || RegisterComponent)(i0.ɵɵdirectiveInject(i1.Router), i0.ɵɵdirectiveInject(i2.AuthService), i0.ɵɵdirectiveInject(i3.FormBuilder), i0.ɵɵdirectiveInject(i4.MatIconRegistry), i0.ɵɵdirectiveInject(i5.DomSanitizer));\n };\n static #_2 = this.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n type: RegisterComponent,\n selectors: [[\"app-register\"]],\n decls: 87,\n vars: 18,\n consts: [[1, \"container\", \"navtop\"], [1, \"row\", \"justify-content-center\"], [1, \"col-11\", \"col-lg-7\"], [3, \"formGroup\", \"ngSubmit\"], [\"class\", \"row \", \"mode\", \"indeterminate\", 4, \"ngIf\"], [\"mat-raised-button\", \"\", 1, \"col-10\", \"col-lg-5\", \"mr-lg-2\", \"mb-2\", \"googlelogin\", 2, \"background-color\", \"#AD0505\", \"color\", \"white\", 3, \"click\"], [1, \"row\", \"mt-1\", \"ml-3\"], [\"svgIcon\", \"googleLogo\", 1, \"ml-2\"], [1, \"ml-2\", \"marginButton\"], [\"mat-raised-button\", \"\", 1, \"col-10\", \"col-lg-5\", \"ml-lg-2\", \"mb-2\", \"facebooklogin\", 2, \"background-color\", \"#2121A1\", \"color\", \"white\"], [\"svgIcon\", \"facebookLogo\", 1, \"ml-2\"], [1, \"col-4\"], [1, \"col-1\"], [1, \"col-5\"], [\"matInput\", \"\", \"placeholder\", \"Nom :\", \"formControlName\", \"lastname\", \"required\", \"\"], [4, \"ngIf\"], [\"matInput\", \"\", \"placeholder\", \"Pr\\u00E9nom :\", \"formControlName\", \"firstname\", \"required\", \"\"], [1, \"col-10\"], [\"matInput\", \"\", \"placeholder\", \"Num\\u00E9ro de t\\u00E9l\\u00E9phone :\", \"formControlName\", \"phonenumber\", \"required\", \"\"], [\"matInput\", \"\", \"disabled\", \"true\", \"formControlName\", \"birthday\", \"required\", \"\", 3, \"matDatepicker\", \"max\", \"click\"], [\"matSuffix\", \"\", 3, \"for\"], [\"touchUi\", \"\", \"disabled\", \"false\"], [\"picker\", \"\"], [\"matInput\", \"\", \"placeholder\", \"Adresse :\", \"formControlName\", \"adress\", \"required\", \"\"], [\"matInput\", \"\", \"placeholder\", \"Adresse email :\", \"formControlName\", \"email\", \"required\", \"\"], [\"matInput\", \"\", \"placeholder\", \"Mot de passe :\", \"formControlName\", \"password\", \"required\", \"\", 3, \"type\"], [\"matSuffix\", \"\", 3, \"click\"], [\"matInput\", \"\", \"placeholder\", \"Confirmer le mot de passe :\", \"formControlName\", \"confirmPassword\", \"required\", \"\", 3, \"type\"], [1, \"stay-signed\", \"in\", \"checkbox-container\"], [1, \"terms\"], [\"type\", \"checkbox\", \"formControlName\", \"terms\"], [\"href\", \"#\", 2, \"color\", \"rgb(0, 81, 168)\", \"background-color\", \"rgb(255, 255, 255)\"], [\"style\", \"color: rgb(170, 19, 8); background-color: rgb(255, 255, 255);\", 4, \"ngIf\"], [1, \"row\", \"justify-content-center\", \"mt-3\"], [\"mat-raised-button\", \"\", \"color\", \"primary\", \"type\", \"submit\", 1, \"col-6\", \"color-theme\"], [\"routerLink\", \"/login\", 1, \"ml-1\", 2, \"color\", \"rgb(0, 81, 168)\", \"background-color\", \"rgb(255, 255, 255)\"], [\"mode\", \"indeterminate\", 1, \"row\"], [2, \"color\", \"rgb(170, 19, 8)\", \"background-color\", \"rgb(255, 255, 255)\"]],\n template: function RegisterComponent_Template(rf, ctx) {\n if (rf & 1) {\n const _r11 = i0.ɵɵgetCurrentView();\n i0.ɵɵelementStart(0, \"div\", 0)(1, \"div\", 1)(2, \"mat-card\", 2)(3, \"mat-card-content\")(4, \"form\", 3);\n i0.ɵɵlistener(\"ngSubmit\", function RegisterComponent_Template_form_ngSubmit_4_listener() {\n return ctx.signUp();\n });\n i0.ɵɵtemplate(5, RegisterComponent_mat_progress_bar_5_Template, 1, 0, \"mat-progress-bar\", 4);\n i0.ɵɵelementStart(6, \"h1\", 1)(7, \"b\");\n i0.ɵɵtext(8, \"Inscription\");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(9, \"div\", 1)(10, \"button\", 5);\n i0.ɵɵlistener(\"click\", function RegisterComponent_Template_button_click_10_listener() {\n return ctx.signInWithGoogle();\n });\n i0.ɵɵelementStart(11, \"div\", 6);\n i0.ɵɵelement(12, \"mat-icon\", 7);\n i0.ɵɵelementStart(13, \"p\", 8);\n i0.ɵɵtext(14, \"Se connecter avec Google\");\n i0.ɵɵelementEnd()()();\n i0.ɵɵelementStart(15, \"button\", 9)(16, \"div\", 6);\n i0.ɵɵelement(17, \"mat-icon\", 10);\n i0.ɵɵelementStart(18, \"p\", 8);\n i0.ɵɵtext(19, \"Se connecter avec Facebook\");\n i0.ɵɵelementEnd()()()();\n i0.ɵɵelementStart(20, \"div\", 1)(21, \"div\", 11);\n i0.ɵɵelement(22, \"hr\");\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(23, \"div\", 12)(24, \"p\");\n i0.ɵɵtext(25, \"ou\");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(26, \"div\", 11);\n i0.ɵɵelement(27, \"hr\");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(28, \"div\", 1)(29, \"mat-form-field\", 13);\n i0.ɵɵelement(30, \"input\", 14);\n i0.ɵɵtemplate(31, RegisterComponent_mat_error_31_Template, 2, 1, \"mat-error\", 15);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(32, \"mat-form-field\", 13);\n i0.ɵɵelement(33, \"input\", 16);\n i0.ɵɵtemplate(34, RegisterComponent_mat_error_34_Template, 2, 1, \"mat-error\", 15);\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(35, \"div\", 1)(36, \"mat-form-field\", 17);\n i0.ɵɵelement(37, \"input\", 18);\n i0.ɵɵtemplate(38, RegisterComponent_mat_error_38_Template, 2, 1, \"mat-error\", 15);\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(39, \"div\", 1)(40, \"mat-form-field\", 17)(41, \"mat-label\");\n i0.ɵɵtext(42, \"Date de naissance :\");\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(43, \"input\", 19);\n i0.ɵɵlistener(\"click\", function RegisterComponent_Template_input_click_43_listener() {\n i0.ɵɵrestoreView(_r11);\n const _r4 = i0.ɵɵreference(46);\n return i0.ɵɵresetView(_r4.open());\n });\n i0.ɵɵelementEnd();\n i0.ɵɵelement(44, \"mat-datepicker-toggle\", 20)(45, \"mat-datepicker\", 21, 22);\n i0.ɵɵtemplate(47, RegisterComponent_mat_error_47_Template, 2, 1, \"mat-error\", 15);\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(48, \"div\", 1)(49, \"mat-form-field\", 17);\n i0.ɵɵelement(50, \"input\", 23);\n i0.ɵɵtemplate(51, RegisterComponent_mat_error_51_Template, 2, 1, \"mat-error\", 15);\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(52, \"div\", 1)(53, \"mat-form-field\", 17);\n i0.ɵɵelement(54, \"input\", 24);\n i0.ɵɵtemplate(55, RegisterComponent_mat_error_55_Template, 2, 1, \"mat-error\", 15);\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(56, \"div\", 1)(57, \"mat-form-field\", 17);\n i0.ɵɵelement(58, \"input\", 25);\n i0.ɵɵelementStart(59, \"mat-icon\", 26);\n i0.ɵɵlistener(\"click\", function RegisterComponent_Template_mat_icon_click_59_listener() {\n return ctx.hide = !ctx.hide;\n });\n i0.ɵɵtext(60);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(61, RegisterComponent_mat_error_61_Template, 2, 1, \"mat-error\", 15);\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(62, \"div\", 1)(63, \"mat-form-field\", 17);\n i0.ɵɵelement(64, \"input\", 27);\n i0.ɵɵelementStart(65, \"mat-icon\", 26);\n i0.ɵɵlistener(\"click\", function RegisterComponent_Template_mat_icon_click_65_listener() {\n return ctx.hide = !ctx.hide;\n });\n i0.ɵɵtext(66);\n i0.ɵɵelementEnd();\n i0.ɵɵtemplate(67, RegisterComponent_mat_error_67_Template, 2, 1, \"mat-error\", 15);\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(68, \"div\", 1)(69, \"span\", 28)(70, \"label\", 29);\n i0.ɵɵelement(71, \"input\", 30);\n i0.ɵɵtext(72, \" J'ai lu et j'accepte \");\n i0.ɵɵelementStart(73, \"a\", 31);\n i0.ɵɵtext(74, \" les conditions g\\u00E9n\\u00E9rales d'utilisation \");\n i0.ɵɵelementEnd();\n i0.ɵɵtext(75, \" et j'ai pris connaissance de la \");\n i0.ɵɵelementStart(76, \"a\", 31);\n i0.ɵɵtext(77, \" politique de confidentialit\\u00E9.\");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(78, \"label\", 29);\n i0.ɵɵtemplate(79, RegisterComponent_mat_error_79_Template, 2, 1, \"mat-error\", 32);\n i0.ɵɵelementEnd()()();\n i0.ɵɵelementStart(80, \"div\", 33)(81, \"button\", 34);\n i0.ɵɵtext(82, \"S'inscrire\");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(83, \"p\", 33);\n i0.ɵɵtext(84, \"Vous avez un compte?\");\n i0.ɵɵelementStart(85, \"a\", 35);\n i0.ɵɵtext(86, \"Se connecter\");\n i0.ɵɵelementEnd()()()()()()();\n }\n if (rf & 2) {\n const _r4 = i0.ɵɵreference(46);\n i0.ɵɵadvance(4);\n i0.ɵɵproperty(\"formGroup\", ctx.formGroup);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", ctx.loading);\n i0.ɵɵadvance(26);\n i0.ɵɵproperty(\"ngIf\", !ctx.formGroup.controls[\"lastname\"].valid || ctx.formGroup.controls[\"lastname\"].touched);\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"ngIf\", !ctx.formGroup.controls[\"firstname\"].valid || ctx.formGroup.controls[\"firstname\"].touched);\n i0.ɵɵadvance(4);\n i0.ɵɵproperty(\"ngIf\", !ctx.formGroup.controls[\"phonenumber\"].valid || ctx.formGroup.controls[\"phonenumber\"].touched);\n i0.ɵɵadvance(5);\n i0.ɵɵproperty(\"matDatepicker\", _r4)(\"max\", ctx.maxDate);\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"for\", _r4);\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"ngIf\", !ctx.formGroup.controls[\"birthday\"].valid || ctx.formGroup.controls[\"birthday\"].touched);\n i0.ɵɵadvance(4);\n i0.ɵɵproperty(\"ngIf\", !ctx.formGroup.controls[\"adress\"].valid || ctx.formGroup.controls[\"adress\"].touched);\n i0.ɵɵadvance(4);\n i0.ɵɵproperty(\"ngIf\", !ctx.formGroup.controls[\"email\"].valid || ctx.formGroup.controls[\"email\"].touched);\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"type\", ctx.hide ? \"password\" : \"text\");\n i0.ɵɵadvance(2);\n i0.ɵɵtextInterpolate(ctx.hide ? \"visibility_off\" : \"visibility\");\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", !ctx.formGroup.controls[\"password\"].valid || ctx.formGroup.controls[\"password\"].touched);\n i0.ɵɵadvance(3);\n i0.ɵɵproperty(\"type\", ctx.hide ? \"password\" : \"text\");\n i0.ɵɵadvance(2);\n i0.ɵɵtextInterpolate(ctx.hide ? \"visibility_off\" : \"visibility\");\n i0.ɵɵadvance(1);\n i0.ɵɵproperty(\"ngIf\", !ctx.formGroup.controls[\"password\"].valid || ctx.formGroup.controls[\"password\"].touched);\n i0.ɵɵadvance(12);\n i0.ɵɵproperty(\"ngIf\", !ctx.formGroup.controls[\"terms\"].valid || ctx.formGroup.controls[\"terms\"].touched);\n }\n },\n dependencies: [i6.NgIf, i1.RouterLink, i7.MatButton, i4.MatIcon, i8.MatInput, i9.MatFormField, i9.MatLabel, i9.MatError, i9.MatSuffix, i10.MatCard, i10.MatCardContent, i11.MatProgressBar, i12.MatDatepicker, i12.MatDatepickerInput, i12.MatDatepickerToggle, i3.ɵNgNoValidate, i3.DefaultValueAccessor, i3.CheckboxControlValueAccessor, i3.NgControlStatus, i3.NgControlStatusGroup, i3.RequiredValidator, i3.FormGroupDirective, i3.FormControlName],\n styles: [\".navtop[_ngcontent-%COMP%]{margin-top:7em;margin-bottom:3em}.marginButton[_ngcontent-%COMP%]{margin-bottom:0!important}.terms[_ngcontent-%COMP%]{display:inline-block;margin-inline:4.5rem;margin-top:.5rem}.test[_ngcontent-%COMP%]{display:block;margin-left:3.5rem}.checkbox[_ngcontent-%COMP%]{display:block;margin-right:3.5rem}\"]\n });\n }\n return RegisterComponent;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}