import { Component } from '@angular/core' ; import { take , throttleTime } from 'rxjs/operators' ; import { MultiFactorAuthService } from '../../services/multi-factor-auth-service' ; import { AbstractMFAFormComponent } from '../abstract/abstract-mfa-form.component' ; /**
 * MFA input form for TOTP.
 */ @ Component ( { selector : 'm-multiFactorAuth__totp' , templateUrl : './totp.component.html' , styleUrls : [ '../mfa-panel.component.ng.scss' ] , } ) export class MultiFactorAuthTOTPComponent extends AbstractMFAFormComponent { constructor ( public service ) { super ( service ) ; } returns { void } public onVerifyClick ( ) { this . service . completeMultiFactor ( this . code ) ; } returns { void } public onRecoveryCodeClick ( ) { this . activePanel$ . next ( 'totp-recovery' ) ; } }