{"ast":null,"code":"import { __decorate } from \"tslib\";\nimport __NG_CLI_RESOURCE__0 from \"./profil.component.html?ngResource\";\nimport __NG_CLI_RESOURCE__1 from \"./profil.component.scss?ngResource\";\nimport { EditProfilInfoConnexionComponent } from './edit-profil-info-connexion/edit-profil-info-connexion.component';\nimport { MatDialog } from '@angular/material/dialog';\nimport { EditProfilInfoUserComponent } from './edit-profil-info-user/edit-profil-info-user.component';\nimport { Component } from '@angular/core';\nimport { AuthService } from 'src/app/services/auth.service';\nlet ProfilComponent = 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.ctorParameters = () => [{\n type: AuthService\n }, {\n type: MatDialog\n }];\n};\nProfilComponent = __decorate([Component({\n selector: 'app-profil',\n template: __NG_CLI_RESOURCE__0,\n styles: [__NG_CLI_RESOURCE__1]\n})], ProfilComponent);\nexport { ProfilComponent };","map":{"version":3,"names":["EditProfilInfoConnexionComponent","MatDialog","EditProfilInfoUserComponent","Component","AuthService","ProfilComponent","constructor","authService","dialog","user_info","subscribe","x","user","ngOnInit","editInfoUser","dialogRef","open","width","height","data","afterClosed","result","editInfoUserConnexion","_","__decorate","selector","template","__NG_CLI_RESOURCE__0"],"sources":["C:\\FatboarProject\\angular-client\\src\\app\\components\\auth\\profil\\profil.component.ts"],"sourcesContent":["import { EditProfilInfoConnexionComponent } from './edit-profil-info-connexion/edit-profil-info-connexion.component';\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { EditProfilInfoUserComponent } from './edit-profil-info-user/edit-profil-info-user.component';\r\nimport { User } from './../../../models/userResponse';\r\nimport { Component, OnInit } from '@angular/core';\r\nimport { AuthService } from 'src/app/services/auth.service';\r\n\r\n@Component({\r\n selector: 'app-profil',\r\n templateUrl: './profil.component.html',\r\n styleUrls: ['./profil.component.scss']\r\n})\r\nexport class ProfilComponent implements OnInit {\r\n\r\n \r\n constructor(private authService : AuthService, public dialog: MatDialog)\r\n { this.authService.user_info.subscribe((x) =>{this.user = x});}\r\n\r\n user : User;\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n\r\n\r\n\r\n //edit info user \r\n editInfoUser(): void {\r\n const dialogRef = this.dialog.open( EditProfilInfoUserComponent, {\r\n width: '450px',\r\n height: '280px',\r\n data: this.user\r\n });\r\n\r\n dialogRef.afterClosed().subscribe(result => {\r\n // if (result) {\r\n // this.bookService.cancelBook(this._book.id).subscribe(\r\n // response => {\r\n // this.openDialog()\r\n // }\r\n // )\r\n // }\r\n });\r\n }\r\n\r\n\r\n\r\n editInfoUserConnexion(): void {\r\n const dialogRef = this.dialog.open( EditProfilInfoConnexionComponent, {\r\n width: '450px',\r\n height: '280px',\r\n data: this.user\r\n });\r\n\r\n dialogRef.afterClosed().subscribe(result => {\r\n // if (result) {\r\n // this.bookService.cancelBook(this._book.id).subscribe(\r\n // response => {\r\n // this.openDialog()\r\n // }\r\n // )\r\n // }\r\n });\r\n }\r\n \r\n\r\n\r\n}\r\n"],"mappings":";;;AAAA,SAASA,gCAAgC,QAAQ,mEAAmE;AACpH,SAASC,SAAS,QAAQ,0BAA0B;AACpD,SAASC,2BAA2B,QAAQ,yDAAyD;AAErG,SAASC,SAAS,QAAgB,eAAe;AACjD,SAASC,WAAW,QAAQ,+BAA+B;AA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