| 
						
						
							
								
							
						
						
					 | 
					@ -28,6 +28,7 @@ import { Subject, Subscription } from 'rxjs'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { takeUntil } from 'rxjs/operators'; | 
					 | 
					 | 
					import { takeUntil } from 'rxjs/operators'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { GfCreateOrUpdateActivityDialogComponent } from './create-or-update-activity-dialog/create-or-update-activity-dialog.component'; | 
					 | 
					 | 
					import { GfCreateOrUpdateActivityDialogComponent } from './create-or-update-activity-dialog/create-or-update-activity-dialog.component'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					import { CreateOrUpdateActivityDialogParams } from './create-or-update-activity-dialog/interfaces/interfaces'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { GfImportActivitiesDialogComponent } from './import-activities-dialog/import-activities-dialog.component'; | 
					 | 
					 | 
					import { GfImportActivitiesDialogComponent } from './import-activities-dialog/import-activities-dialog.component'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					import { ImportActivitiesDialogParams } from './import-activities-dialog/interfaces/interfaces'; | 
					 | 
					 | 
					import { ImportActivitiesDialogParams } from './import-activities-dialog/interfaces/interfaces'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -245,11 +246,14 @@ export class GfActivitiesPageComponent implements OnDestroy, OnInit { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  } | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  public onImport() { | 
					 | 
					 | 
					  public onImport() { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    const dialogRef = this.dialog.open(GfImportActivitiesDialogComponent, { | 
					 | 
					 | 
					    const dialogRef = this.dialog.open< | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      GfImportActivitiesDialogComponent, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      ImportActivitiesDialogParams | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    >(GfImportActivitiesDialogComponent, { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      data: { | 
					 | 
					 | 
					      data: { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        deviceType: this.deviceType, | 
					 | 
					 | 
					        deviceType: this.deviceType, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        user: this.user | 
					 | 
					 | 
					        user: this.user | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					      } as ImportActivitiesDialogParams, | 
					 | 
					 | 
					      }, | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					      height: this.deviceType === 'mobile' ? '98vh' : undefined, | 
					 | 
					 | 
					      height: this.deviceType === 'mobile' ? '98vh' : undefined, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      width: this.deviceType === 'mobile' ? '100vw' : '50rem' | 
					 | 
					 | 
					      width: this.deviceType === 'mobile' ? '100vw' : '50rem' | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    }); | 
					 | 
					 | 
					    }); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -268,12 +272,15 @@ export class GfActivitiesPageComponent implements OnDestroy, OnInit { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  } | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  public onImportDividends() { | 
					 | 
					 | 
					  public onImportDividends() { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    const dialogRef = this.dialog.open(GfImportActivitiesDialogComponent, { | 
					 | 
					 | 
					    const dialogRef = this.dialog.open< | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      GfImportActivitiesDialogComponent, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      ImportActivitiesDialogParams | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    >(GfImportActivitiesDialogComponent, { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      data: { | 
					 | 
					 | 
					      data: { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        activityTypes: ['DIVIDEND'], | 
					 | 
					 | 
					        activityTypes: ['DIVIDEND'], | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        deviceType: this.deviceType, | 
					 | 
					 | 
					        deviceType: this.deviceType, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        user: this.user | 
					 | 
					 | 
					        user: this.user | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					      } as ImportActivitiesDialogParams, | 
					 | 
					 | 
					      }, | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					      height: this.deviceType === 'mobile' ? '98vh' : undefined, | 
					 | 
					 | 
					      height: this.deviceType === 'mobile' ? '98vh' : undefined, | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      width: this.deviceType === 'mobile' ? '100vw' : '50rem' | 
					 | 
					 | 
					      width: this.deviceType === 'mobile' ? '100vw' : '50rem' | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    }); | 
					 | 
					 | 
					    }); | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -306,18 +313,18 @@ export class GfActivitiesPageComponent implements OnDestroy, OnInit { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  } | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  public openUpdateActivityDialog(aActivity: Activity) { | 
					 | 
					 | 
					  public openUpdateActivityDialog(aActivity: Activity) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					    const dialogRef = this.dialog.open( | 
					 | 
					 | 
					    const dialogRef = this.dialog.open< | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					      GfCreateOrUpdateActivityDialogComponent, | 
					 | 
					 | 
					      GfCreateOrUpdateActivityDialogComponent, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					      { | 
					 | 
					 | 
					      CreateOrUpdateActivityDialogParams | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        data: { | 
					 | 
					 | 
					    >(GfCreateOrUpdateActivityDialogComponent, { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					          activity: aActivity, | 
					 | 
					 | 
					      data: { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					          accounts: this.user?.accounts, | 
					 | 
					 | 
					        activity: aActivity, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					          user: this.user | 
					 | 
					 | 
					        accounts: this.user?.accounts, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        }, | 
					 | 
					 | 
					        user: this.user | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        height: this.deviceType === 'mobile' ? '98vh' : '80vh', | 
					 | 
					 | 
					      }, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        width: this.deviceType === 'mobile' ? '100vw' : '50rem' | 
					 | 
					 | 
					      height: this.deviceType === 'mobile' ? '98vh' : '80vh', | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					      } | 
					 | 
					 | 
					      width: this.deviceType === 'mobile' ? '100vw' : '50rem' | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					    ); | 
					 | 
					 | 
					    }); | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    dialogRef | 
					 | 
					 | 
					    dialogRef | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      .afterClosed() | 
					 | 
					 | 
					      .afterClosed() | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -350,26 +357,26 @@ export class GfActivitiesPageComponent implements OnDestroy, OnInit { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      .subscribe((user) => { | 
					 | 
					 | 
					      .subscribe((user) => { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        this.updateUser(user); | 
					 | 
					 | 
					        this.updateUser(user); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        const dialogRef = this.dialog.open( | 
					 | 
					 | 
					        const dialogRef = this.dialog.open< | 
				
			
			
				
				
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					          GfCreateOrUpdateActivityDialogComponent, | 
					 | 
					 | 
					          GfCreateOrUpdateActivityDialogComponent, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					          { | 
					 | 
					 | 
					          CreateOrUpdateActivityDialogParams | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            data: { | 
					 | 
					 | 
					        >(GfCreateOrUpdateActivityDialogComponent, { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					              accounts: this.user?.accounts, | 
					 | 
					 | 
					          data: { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					              activity: { | 
					 | 
					 | 
					            accounts: this.user?.accounts, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                ...aActivity, | 
					 | 
					 | 
					            activity: { | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                accountId: aActivity?.accountId, | 
					 | 
					 | 
					              ...aActivity, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                date: new Date(), | 
					 | 
					 | 
					              accountId: aActivity?.accountId, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                id: null, | 
					 | 
					 | 
					              date: new Date(), | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                fee: 0, | 
					 | 
					 | 
					              id: null, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                type: aActivity?.type ?? 'BUY', | 
					 | 
					 | 
					              fee: 0, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					                unitPrice: null | 
					 | 
					 | 
					              type: aActivity?.type ?? 'BUY', | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					              }, | 
					 | 
					 | 
					              unitPrice: null | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
					              user: this.user | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					            }, | 
					 | 
					 | 
					            }, | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					            height: this.deviceType === 'mobile' ? '98vh' : '80vh', | 
					 | 
					 | 
					            user: this.user | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					            width: this.deviceType === 'mobile' ? '100vw' : '50rem' | 
					 | 
					 | 
					          }, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					          } | 
					 | 
					 | 
					          height: this.deviceType === 'mobile' ? '98vh' : '80vh', | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					        ); | 
					 | 
					 | 
					          width: this.deviceType === 'mobile' ? '100vw' : '50rem' | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        }); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        dialogRef | 
					 | 
					 | 
					        dialogRef | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          .afterClosed() | 
					 | 
					 | 
					          .afterClosed() | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					
  |