UNPKG

moh-common-lib

Version:

A library of Angular components, services, and styles for B.C. Government Ministry of Health (MoH).

104 lines (103 loc) 2.76 kB
import { OnInit, Renderer2, EventEmitter } from '@angular/core'; import { HttpClient } from '@angular/common/http'; import { RecaptchaDataService } from './recaptcha-data.service'; export declare class RecaptchaComponent implements OnInit { private dataService; private _renderer; private _http; apiBaseUrl: string; nonce: string; publicKey: string; language: string; onValidToken: EventEmitter<string>; errorVerifyAnswer: any; state: CAPTCHA_STATE; constructor(dataService: RecaptchaDataService, _renderer: Renderer2, _http: HttpClient); ngOnInit(): void; resolved(token: string): void; /** * Case where HTTP 200 response code is received by the payload is incorrect or corrupt. * The occurance of this type of case should be rare. * @param payload */ private isValidPayload; private createErrorTextLine; /*************************** ** Translated Messages ** ** *UPDATE REQUIRED* ** ****************************/ translatedMessages: { playAudio: { en: string; zh: string; fr: string; pa: string; }; tryAnotherImg: { en: string; zh: string; fr: string; pa: string; }; userPromptMessage: { en: string; zh: string; fr: string; pa: string; }; incorrectAnswer: { en: string; zh: string; fr: string; pa: string; }; successMessage: { en: string; zh: string; fr: string; pa: string; }; correct: { en: string; zh: string; fr: string; pa: string; }; loadingImage: { en: string; zh: string; fr: string; pa: string; }; browserNotSupportAudio: { en: string; zh: string; fr: string; pa: string; }; verifyingAnswer: { en: string; zh: string; fr: string; pa: string; }; errorRetrievingImg: { en: string; zh: string; fr: string; pa: string; }; errorVerifyingAnswer: { en: string; zh: string; fr: string; pa: string; }; }; } declare enum CAPTCHA_STATE { VERIFYING_TOKEN = 1, SUCCESS_VERIFY_ANSWER_CORRECT = 2, ERROR_VERIFY = 3 } export {};