| 
						
						
							
								
							
						
						
					 | 
					@ -61,6 +61,8 @@ export class GfHomeOverviewComponent implements OnDestroy, OnInit { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  public showDetails = false; | 
					 | 
					 | 
					  public showDetails = false; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  public unit: string; | 
					 | 
					 | 
					  public unit: string; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  public user: User; | 
					 | 
					 | 
					  public user: User; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					  private graph_type: string; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					  public graph_unit: string; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  private unsubscribeSubject = new Subject<void>(); | 
					 | 
					 | 
					  private unsubscribeSubject = new Subject<void>(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -97,6 +99,11 @@ export class GfHomeOverviewComponent implements OnDestroy, OnInit { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    this.unit = this.showDetails ? this.user.settings.baseCurrency : '%'; | 
					 | 
					 | 
					    this.unit = this.showDetails ? this.user.settings.baseCurrency : '%'; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    this.graph_type = !this.showDetails | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      ? 'netPerformanceInPercentageWithCurrencyEffect' | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      : (localStorage.getItem('home_overview_graph_type') ?? | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        'netPerformanceInPercentageWithCurrencyEffect'); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    this.impersonationStorageService | 
					 | 
					 | 
					    this.impersonationStorageService | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      .onChangeHasImpersonation() | 
					 | 
					 | 
					      .onChangeHasImpersonation() | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					      .pipe(takeUntil(this.unsubscribeSubject)) | 
					 | 
					 | 
					      .pipe(takeUntil(this.unsubscribeSubject)) | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					@ -131,14 +138,21 @@ export class GfHomeOverviewComponent implements OnDestroy, OnInit { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        this.errors = errors; | 
					 | 
					 | 
					        this.errors = errors; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        this.performance = performance; | 
					 | 
					 | 
					        this.performance = performance; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					        this.historicalDataItems = chart.map( | 
					 | 
					 | 
					        const graph_multiplier = | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					          ({ date, netPerformanceInPercentageWithCurrencyEffect }) => { | 
					 | 
					 | 
					          this.graph_type === 'netPerformanceInPercentageWithCurrencyEffect' | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            ? 100 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            : 1; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        this.graph_unit = | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					          this.graph_type === 'netPerformanceInPercentageWithCurrencyEffect' | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            ? '%' | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					            : this.unit; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					        this.historicalDataItems = chart.map((item) => { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          return { | 
					 | 
					 | 
					          return { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					              date, | 
					 | 
					 | 
					            date: item.date, | 
				
			
			
				
				
			
		
	
		
		
			
				
					
					 | 
					 | 
					              value: netPerformanceInPercentageWithCurrencyEffect * 100 | 
					 | 
					 | 
					            value: item[this.graph_type] * graph_multiplier | 
				
			
			
				
				
			
		
	
		
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					          }; | 
					 | 
					 | 
					          }; | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					          } | 
					 | 
					 | 
					        }); | 
				
			
			
				
				
			
		
	
		
		
			
				
					 | 
					 | 
					        ); | 
					 | 
					 | 
					 | 
				
			
			
		
	
		
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					        if ( | 
					 | 
					 | 
					        if ( | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					          this.deviceType === 'mobile' && | 
					 | 
					 | 
					          this.deviceType === 'mobile' && | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
							
								
							
						
					 | 
					@ -155,4 +169,12 @@ export class GfHomeOverviewComponent implements OnDestroy, OnInit { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					
 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					    this.changeDetectorRef.markForCheck(); | 
					 | 
					 | 
					    this.changeDetectorRef.markForCheck(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					  } | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					  public onMetricClick(selectedgraph_type: string): void { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    if (this.graph_type !== selectedgraph_type) { | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      this.graph_type = selectedgraph_type; | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      localStorage.setItem('home_overview_graph_type', this.graph_type); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					      this.update(); | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					    } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					 | 
					 | 
					 | 
					  } | 
				
			
			
		
	
		
		
			
				
					 | 
					 | 
					} | 
					 | 
					 | 
					} | 
				
			
			
		
	
	
		
		
			
				
					| 
						
						
						
					 | 
					
  |