[{"__symbolic":"module","version":4,"metadata":{"ProfileComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":5,"character":1},"arguments":[{"selector":"auth-profile","template":"\n<form [formGroup]=\"profileForm\" (ngSubmit)=\"update()\" fxLayout=\"column\" fxLayoutAlign=\"space-around center\">\n    <mat-card>\n        <mat-card-header>\n            <mat-card-title>My profile</mat-card-title>\n        </mat-card-header>\n        <mat-card-content fxLayout=\"column\">\n            <mat-form-field>\n                <input matInput placeholder=\"Username\" formControlName=\"username\" [(ngModel)]=\"user.username\"/>\n                <mat-error *ngIf=\"profileForm.controls.username.hasError('required')\">\n                    Username is <strong>required</strong>\n                </mat-error>\n                <mat-error *ngIf=\"profileForm.controls.username.hasError('asyncerror')\">\n                    {{errorUsername}}\n                </mat-error>\n            </mat-form-field>\n            <mat-form-field>\n                <input matInput placeholder=\"Email\" formControlName=\"email\" [(ngModel)]=\"user.email\"/>\n                <mat-error *ngIf=\"profileForm.controls.email.hasError('required')\">\n                    Email is <strong>required</strong>\n                </mat-error>\n                <mat-error *ngIf=\"profileForm.controls.email.hasError('asyncerror')\">\n                    {{errorEmail}}\n                </mat-error>\n            </mat-form-field>\n            <mat-form-field>\n                <input matInput placeholder=\"Firstname\" formControlName=\"firstname\" [(ngModel)]=\"user.first_name\"/>\n                <mat-error *ngIf=\"profileForm.controls.firstname.hasError('asyncerror')\">\n                    {{errorFirstname}}\n                </mat-error>\n            </mat-form-field>\n            <mat-form-field>\n                <input matInput placeholder=\"Lastname\" formControlName=\"lastname\" [(ngModel)]=\"user.last_name\"/>\n                <mat-error *ngIf=\"profileForm.controls.lastname.hasError('asyncerror')\">\n                    {{errorLastname}}\n                </mat-error>\n            </mat-form-field>\n \n            <mat-error *ngIf=\"errorGeneral\">\n                {{errorGeneral}}\n            </mat-error>\n            <div class=\"success\" *ngIf=\"success\">\n                {{success}}\n            </div>\n        </mat-card-content>\n        <mat-card-actions>\n            <button mat-button color=\"primary\" type=\"submit\">\n                Save\n            </button>\n            <button mat-button color=\"primary\" type=\"button\" routerLink=\"/change-password\">\n                Change password\n            </button>\n        </mat-card-actions>\n    </mat-card>\n</form>\n    ","styles":[""]}]}],"members":{"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","module":"./auth.service","name":"AuthService","line":75,"character":37},{"__symbolic":"reference","module":"@angular/forms","name":"FormBuilder","line":75,"character":71}]}],"ngOnInit":[{"__symbolic":"method"}],"update":[{"__symbolic":"method"}]}}}}]