import { Component , HostListener } from '@angular/core' ; import { BehaviorSubject } from 'rxjs' ; import { SettingsTwoFactorV2Service , TwoFactorSetupPanel , } from './two-factor-v2.service' ; /**
 * Base component, used to display header and panels.
 */ @ Component ( { selector : 'm-settings__twoFactorBase--V2' , templateUrl : './two-factor-v2-base.component.html' , styleUrls : [ './two-factor-v2-base.component.ng.scss' ] , } ) export class SettingsTwoFactorV2BaseComponent { @ HostListener ( 'window:popstate' , [ '$event' ] ) onPopState ( $event ) { this . onBackPress ( ) ; } returns { BehaviorSubject < TwoFactorSetupPanel > } get activePanel$ ( ) : BehaviorSubject < TwoFactorSetupPanel > { return this . service . activePanel$ ; } constructor ( private service ) { } returns { void } public onBackPress ( ) { this . service . reset ( ) ; } }