| 1 |
- {"ast":null,"code":"import { EditProfilInfoConnexionComponent } from './edit-profil-info-connexion/edit-profil-info-connexion.component';\nimport { EditProfilInfoUserComponent } from './edit-profil-info-user/edit-profil-info-user.component';\nimport * as i0 from \"@angular/core\";\nimport * as i1 from \"src/app/services/auth.service\";\nimport * as i2 from \"@angular/material/dialog\";\nexport let ProfilComponent = /*#__PURE__*/(() => {\n class ProfilComponent {\n constructor(authService, dialog) {\n this.authService = authService;\n this.dialog = dialog;\n this.authService.user_info.subscribe(x => {\n this.user = x;\n });\n }\n ngOnInit() {}\n //edit info user \n editInfoUser() {\n const dialogRef = this.dialog.open(EditProfilInfoUserComponent, {\n width: '450px',\n height: '280px',\n data: this.user\n });\n dialogRef.afterClosed().subscribe(result => {\n // if (result) {\n // this.bookService.cancelBook(this._book.id).subscribe(\n // response => {\n // this.openDialog()\n // }\n // )\n // }\n });\n }\n editInfoUserConnexion() {\n const dialogRef = this.dialog.open(EditProfilInfoConnexionComponent, {\n width: '450px',\n height: '280px',\n data: this.user\n });\n dialogRef.afterClosed().subscribe(result => {\n // if (result) {\n // this.bookService.cancelBook(this._book.id).subscribe(\n // response => {\n // this.openDialog()\n // }\n // )\n // }\n });\n }\n static #_ = this.ɵfac = function ProfilComponent_Factory(t) {\n return new (t || ProfilComponent)(i0.ɵɵdirectiveInject(i1.AuthService), i0.ɵɵdirectiveInject(i2.MatDialog));\n };\n static #_2 = this.ɵcmp = /*@__PURE__*/i0.ɵɵdefineComponent({\n type: ProfilComponent,\n selectors: [[\"app-profil\"]],\n decls: 65,\n vars: 11,\n consts: [[1, \"container\", \"navtop\"], [1, \"row\", \"justify-content-center\"], [1, \"col-11\", \"col-md-8\"], [1, \"row\"], [1, \"col-md-6\", \"border-right\"], [\"width\", \"120\", \"height\", \"120\", \"src\", \"assets/img/profil/profil.png\", \"alt\", \"\"], [1, \"row\", \"justify-content-center\", \"mb-3\"], [1, \"col-5\"], [1, \"row\", \"justify-content-center\", \"mt-3\"], [\"mat-raised-button\", \"\", \"color\", \"primary\", \"type\", \"submit\", 1, \"col-6\", 3, \"click\"], [1, \"col-md-6\"], [\"mat-raised-button\", \"\", \"color\", \"primary\", 1, \"col-6\", 3, \"click\"]],\n template: function ProfilComponent_Template(rf, ctx) {\n if (rf & 1) {\n i0.ɵɵelementStart(0, \"div\", 0)(1, \"div\", 1)(2, \"mat-card\", 2)(3, \"mat-card-content\")(4, \"div\", 3)(5, \"div\", 4)(6, \"div\", 1);\n i0.ɵɵelement(7, \"img\", 5);\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(8, \"div\", 6)(9, \"p\")(10, \"b\");\n i0.ɵɵtext(11);\n i0.ɵɵelementEnd()()();\n i0.ɵɵelementStart(12, \"div\", 3)(13, \"p\", 7);\n i0.ɵɵtext(14, \" Email : \");\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(15, \"p\", 7);\n i0.ɵɵtext(16);\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(17, \"div\", 3)(18, \"p\", 7);\n i0.ɵɵtext(19, \" Mot de passe : \");\n i0.ɵɵelementEnd();\n i0.ɵɵelementStart(20, \"p\", 7);\n i0.ɵɵtext(21, \"***********\");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(22, \"div\", 8)(23, \"button\", 9);\n i0.ɵɵlistener(\"click\", function ProfilComponent_Template_button_click_23_listener() {\n return ctx.editInfoUserConnexion();\n });\n i0.ɵɵtext(24, \"Modifier\");\n i0.ɵɵelementEnd()()();\n i0.ɵɵelementStart(25, \"div\", 10)(26, \"div\", 3)(27, \"div\", 7)(28, \"p\");\n i0.ɵɵtext(29, \"Nom : \");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(30, \"div\", 7)(31, \"p\");\n i0.ɵɵtext(32);\n i0.ɵɵelementEnd()()();\n i0.ɵɵelementStart(33, \"div\", 3)(34, \"div\", 7)(35, \"p\");\n i0.ɵɵtext(36, \"Pr\\u00E9nom : \");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(37, \"div\", 7)(38, \"p\");\n i0.ɵɵtext(39);\n i0.ɵɵelementEnd()()();\n i0.ɵɵelementStart(40, \"div\", 3)(41, \"div\", 7)(42, \"p\");\n i0.ɵɵtext(43, \"Num\\u00E9ro de t\\u00E9l\\u00E9phone : \");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(44, \"div\", 7)(45, \"p\");\n i0.ɵɵtext(46);\n i0.ɵɵelementEnd()()();\n i0.ɵɵelementStart(47, \"div\", 3)(48, \"div\", 7)(49, \"p\");\n i0.ɵɵtext(50, \"Date de naissance : \");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(51, \"div\", 7)(52, \"p\");\n i0.ɵɵtext(53);\n i0.ɵɵpipe(54, \"date\");\n i0.ɵɵelementEnd()()();\n i0.ɵɵelementStart(55, \"div\", 3)(56, \"div\", 7)(57, \"p\");\n i0.ɵɵtext(58, \"Adresse : \");\n i0.ɵɵelementEnd()();\n i0.ɵɵelementStart(59, \"div\", 7)(60, \"p\");\n i0.ɵɵtext(61);\n i0.ɵɵelementEnd()()();\n i0.ɵɵelementStart(62, \"div\", 8)(63, \"button\", 11);\n i0.ɵɵlistener(\"click\", function ProfilComponent_Template_button_click_63_listener() {\n return ctx.editInfoUser();\n });\n i0.ɵɵtext(64, \"Modifier\");\n i0.ɵɵelementEnd()()()()()()()();\n }\n if (rf & 2) {\n i0.ɵɵadvance(11);\n i0.ɵɵtextInterpolate2(\"\", ctx.user.firstname, \" \", ctx.user.lastname, \"\");\n i0.ɵɵadvance(5);\n i0.ɵɵtextInterpolate(ctx.user.email);\n i0.ɵɵadvance(16);\n i0.ɵɵtextInterpolate(ctx.user.firstname);\n i0.ɵɵadvance(7);\n i0.ɵɵtextInterpolate(ctx.user.lastname);\n i0.ɵɵadvance(7);\n i0.ɵɵtextInterpolate(ctx.user.phonenumber);\n i0.ɵɵadvance(7);\n i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(54, 8, ctx.user.birthday, \"longDate\"));\n i0.ɵɵadvance(8);\n i0.ɵɵtextInterpolate(ctx.user.adress);\n }\n },\n styles: [\".navtop[_ngcontent-%COMP%]{margin-top:8.6em;margin-bottom:4em}\"]\n });\n }\n return ProfilComponent;\n})();","map":null,"metadata":{},"sourceType":"module","externalDependencies":[]}
|