Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ngx-captcha

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-captcha - npm Package Compare versions

Comparing version 4.0.0 to 4.0.1

2

bundles/ngx-captcha.umd.min.js

@@ -1,2 +0,2 @@

!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-captcha",["exports","@angular/core","@angular/forms","@angular/common"],e):e(t["ngx-captcha"]={},t.ng.core,t.ng.forms,t.ng.common)}(this,function(t,o,e,n){"use strict";var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var p={InvisibleReCaptcha:0,ReCaptcha2:1};p[p.InvisibleReCaptcha]="InvisibleReCaptcha",p[p.ReCaptcha2]="ReCaptcha2";var a=function(){function t(t,e,n,r){this.renderer=t,this.zone=e,this.injector=n,this.globalConfig=r,this.setupAfterLoad=!1,this.windowOnLoadCallbackProperty="ngx_onload_callback_"+this.getPseudoUniqueNumber(),this.globalReCaptchaProperty="grecaptcha",this.captchaElemPrefix="ngx_captcha_id_",this.type="image",this.tabIndex=0,this.success=new o.EventEmitter,this.load=new o.EventEmitter,this.ready=new o.EventEmitter,this.resetCaptchaAfterSuccess=!1,this.isLoaded=!1}return t.prototype.ngAfterViewInit=function(){this.control=this.injector.get(e.NgControl).control},t.prototype.getGlobalSiteKey=function(){if(this.globalConfig){if(this.recaptchaType===p.InvisibleReCaptcha){if(!this.globalConfig.invisibleCaptchaSiteKey)throw Error("SiteKey for invisible reCaptcha is not set!");return this.globalConfig.invisibleCaptchaSiteKey instanceof Function?this.globalConfig.invisibleCaptchaSiteKey():this.globalConfig.invisibleCaptchaSiteKey}if(this.recaptchaType===p.ReCaptcha2){if(!this.globalConfig.reCaptcha2SiteKey)throw Error("SiteKey for reCaptcha2 is not set!");return this.globalConfig.reCaptcha2SiteKey instanceof Function?this.globalConfig.reCaptcha2SiteKey():this.globalConfig.reCaptcha2SiteKey}throw Error("Unsupported captcha type '"+this.recaptchaType+"'!")}},t.prototype.ngOnChanges=function(t){this.siteKey?this.siteKey instanceof Function?this._siteKey=this.siteKey():this._siteKey=this.siteKey:this._siteKey=this.getGlobalSiteKey(),this.setupComponent()},t.prototype.ngOnDestroy=function(){window[this.windowOnLoadCallbackProperty]={},window[this.globalReCaptchaProperty]={}},t.prototype.getResponse=function(){return this.reCaptchaApi.getResponse(this.captchaId)},t.prototype.getCaptchaId=function(){return this.captchaId},t.prototype.resetCaptcha=function(){var t=this;this.zone.run(function(){t.onChange(null),t.onTouched(null)}),this.reCaptchaApi.reset(this.captchaId)},t.prototype.getCurrentResponse=function(){return this.currentResponse},t.prototype.reloadCaptcha=function(){this.setupComponent()},t.prototype.ensureCaptchaElem=function(t){var e=document.getElementById(t);if(!e)throw Error("Captcha element with id '"+t+"' was not found");this.captchaElem=e},t.prototype.renderReCaptcha=function(){this.captchaId=this.reCaptchaApi.render(this.captchaElemId,this.getCaptchaProperties()),this.ready.next()},t.prototype.handleCallback=function(t){var e=this;this.currentResponse=t,this.success.next(t),this.zone.run(function(){e.onChange(t),e.onTouched(t)}),this.resetCaptchaAfterSuccess&&this.resetCaptcha()},t.prototype.ensureReCaptchaScript=function(){window[this.globalReCaptchaProperty]={},this.reCaptchaApi={},this.registerReCaptchaScript()},t.prototype.registerReCaptchaScript=function(){var t=document.createElement("script");t.innerHTML="",t.src="https://www.google.com/recaptcha/api.js?onload="+this.windowOnLoadCallbackProperty+"&render=explicit"+this.getLanguageParam(),t.async=!0,t.defer=!0,this.captchaScriptElem.nativeElement.appendChild(t)},t.prototype.getLanguageParam=function(){return this.hl?"&hl="+this.hl:""},t.prototype.getPseudoUniqueNumber=function(){return(new Date).getUTCMilliseconds()+Math.floor(9999*Math.random())},t.prototype.isReCaptchaApiDefined=function(){return!!window[this.globalReCaptchaProperty]},t.prototype.setupComponent=function(){var t=this;this.captchaSpecificSetup(),this.createAndSetCaptchaElem(),window[this.windowOnLoadCallbackProperty]=function(){return t.zone.run(t.onloadCallback.bind(t))},this.ensureReCaptchaScript()},t.prototype.onloadCallback=function(){if(this.reCaptchaApi=grecaptcha,!this.reCaptchaApi)throw Error("ReCaptcha Api was not initialized correctly");this.isLoaded=!0,this.load.next(),this.renderReCaptcha(),this.setupAfterLoad&&(this.setupAfterLoad=!1,this.setupComponent())},t.prototype.generateNewElemId=function(){return this.captchaElemPrefix+this.getPseudoUniqueNumber()},t.prototype.createAndSetCaptchaElem=function(){if(this.captchaElemId=this.generateNewElemId(),!this.captchaElemId)throw Error("Captcha elem Id is not set");this.captchaWrapperElem.nativeElement.innerHTML="";var t=this.renderer.createElement("div");t.id=this.captchaElemId,this.renderer.appendChild(this.captchaWrapperElem.nativeElement,t),this.ensureCaptchaElem(this.captchaElemId)},t.prototype.writeValue=function(t){},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.propDecorators={siteKey:[{type:o.Input}],type:[{type:o.Input}],hl:[{type:o.Input}],tabIndex:[{type:o.Input}],success:[{type:o.Output}],load:[{type:o.Output}],ready:[{type:o.Output}],captchaWrapperElem:[{type:o.ViewChild,args:["captchaWrapperElem"]}],captchaScriptElem:[{type:o.ViewChild,args:["captchaScriptElem"]}]},t}(),c=function(){},s=function(a){function t(t,e,n,r){var i=a.call(this,t,e,n,r)||this;return i.renderer=t,i.zone=e,i.injector=n,i.globalConfig=r,i.windowOnErrorCallbackProperty="ngx_captcha_error_callback",i.windowOnExpireCallbackProperty="ngx_captcha_expire_callback",i.theme="light",i.size="normal",i.expire=new o.EventEmitter,i.error=new o.EventEmitter,i.recaptchaType=p.ReCaptcha2,i}return i(t,a),t.prototype.ngOnChanges=function(t){a.prototype.ngOnChanges.call(this,t)},t.prototype.ngOnDestroy=function(){a.prototype.ngOnDestroy.call(this),window[this.windowOnErrorCallbackProperty]={},window[this.windowOnExpireCallbackProperty]={}},t.prototype.captchaSpecificSetup=function(){this.registerCallbacks()},t.prototype.getCaptchaProperties=function(){var e=this;return{sitekey:this._siteKey,callback:function(t){return e.zone.run(function(){return e.handleCallback(t)})},"expired-callback":function(){return e.zone.run(function(){return e.handleExpireCallback()})},"error-callback":function(){return e.zone.run(function(){return e.handleErrorCallback()})},theme:this.theme,type:this.type,size:this.size,tabindex:this.tabIndex}},t.prototype.registerCallbacks=function(){window[this.windowOnErrorCallbackProperty]=this.handleErrorCallback.bind(this),window[this.windowOnExpireCallbackProperty]=this.handleExpireCallback.bind(this)},t.prototype.handleErrorCallback=function(){var t=this;this.zone.run(function(){t.onChange(null),t.onTouched(null)}),this.error.next()},t.prototype.handleExpireCallback=function(){this.expire.next(),this.resetCaptcha()},t.decorators=[{type:o.Component,args:[{selector:"ngx-recaptcha2",template:"\n <div #captchaScriptElem></div>\n <div #captchaWrapperElem></div>",providers:[{provide:e.NG_VALUE_ACCESSOR,useExisting:o.forwardRef(function(){return t}),multi:!0}]}]}],t.ctorParameters=function(){return[{type:o.Renderer2},{type:o.NgZone},{type:o.Injector},{type:c,decorators:[{type:o.Optional}]}]},t.propDecorators={theme:[{type:o.Input}],size:[{type:o.Input}],hl:[{type:o.Input}],expire:[{type:o.Output}],error:[{type:o.Output}]},t}(a),h=function(a){function t(t,e,n,r){var i=a.call(this,t,e,n,r)||this;return i.renderer=t,i.zone=e,i.injector=n,i.globalConfig=r,i.size="invisible",i.badge="bottomright",i.recaptchaType=p.InvisibleReCaptcha,i}return i(t,a),t.prototype.ngOnChanges=function(t){a.prototype.ngOnChanges.call(this,t)},t.prototype.execute=function(){this.reCaptchaApi.execute(this.captchaId)},t.prototype.captchaSpecificSetup=function(){},t.prototype.getCaptchaProperties=function(){var e=this;return{sitekey:this._siteKey,callback:function(t){return e.zone.run(function(){return e.handleCallback(t)})},badge:this.badge,type:this.type,tabindex:this.tabIndex,size:this.size}},t.decorators=[{type:o.Component,args:[{selector:"ngx-invisible-recaptcha",template:"\n <div #captchaScriptElem></div>\n <div #captchaWrapperElem></div>",providers:[{provide:e.NG_VALUE_ACCESSOR,useExisting:o.forwardRef(function(){return t}),multi:!0}]}]}],t.ctorParameters=function(){return[{type:o.Renderer2},{type:o.NgZone},{type:o.Injector},{type:c,decorators:[{type:o.Optional}]}]},t.propDecorators={badge:[{type:o.Input}],hl:[{type:o.Input}]},t}(a),l=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[{provide:c,useValue:t}]}},e.decorators=[{type:o.NgModule,args:[{imports:[n.CommonModule],declarations:[s,h],exports:[s,h]}]}],e}();t.ReCaptcha2Component=s,t.InvisibleReCaptchaComponent=h,t.NgxCaptchaConfig=c,t.NgxCaptchaModule=l,t.ɵa=a,Object.defineProperty(t,"__esModule",{value:!0})});
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@angular/forms"),require("@angular/common")):"function"==typeof define&&define.amd?define("ngx-captcha",["exports","@angular/core","@angular/forms","@angular/common"],e):e(t["ngx-captcha"]={},t.ng.core,t.ng.forms,t.ng.common)}(this,function(t,a,e,n){"use strict";var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var p={InvisibleReCaptcha:0,ReCaptcha2:1};p[p.InvisibleReCaptcha]="InvisibleReCaptcha",p[p.ReCaptcha2]="ReCaptcha2";var o=function(){function t(t,e,n,r){this.renderer=t,this.zone=e,this.injector=n,this.globalConfig=r,this.setupAfterLoad=!1,this.windowOnLoadCallbackProperty="ngx_onload_callback_"+this.getPseudoUniqueNumber(),this.globalReCaptchaProperty="grecaptcha",this.captchaElemPrefix="ngx_captcha_id_",this.type="image",this.tabIndex=0,this.success=new a.EventEmitter,this.load=new a.EventEmitter,this.ready=new a.EventEmitter,this.resetCaptchaAfterSuccess=!1,this.isLoaded=!1}return t.prototype.ngAfterViewInit=function(){this.control=this.injector.get(e.NgControl).control},t.prototype.getGlobalSiteKey=function(){if(this.globalConfig){if(this.recaptchaType===p.InvisibleReCaptcha){if(!this.globalConfig.invisibleCaptchaSiteKey)throw Error("SiteKey for invisible reCaptcha is not set!");return this.globalConfig.invisibleCaptchaSiteKey instanceof Function?this.globalConfig.invisibleCaptchaSiteKey():this.globalConfig.invisibleCaptchaSiteKey}if(this.recaptchaType===p.ReCaptcha2){if(!this.globalConfig.reCaptcha2SiteKey)throw Error("SiteKey for reCaptcha2 is not set!");return this.globalConfig.reCaptcha2SiteKey instanceof Function?this.globalConfig.reCaptcha2SiteKey():this.globalConfig.reCaptcha2SiteKey}throw Error("Unsupported captcha type '"+this.recaptchaType+"'!")}},t.prototype.ngOnChanges=function(t){this.siteKey?this.siteKey instanceof Function?this._siteKey=this.siteKey():this._siteKey=this.siteKey:this._siteKey=this.getGlobalSiteKey(),this.setupComponent()},t.prototype.ngOnDestroy=function(){window[this.windowOnLoadCallbackProperty]={},window[this.globalReCaptchaProperty]={}},t.prototype.getResponse=function(){return this.reCaptchaApi.getResponse(this.captchaId)},t.prototype.getCaptchaId=function(){return this.captchaId},t.prototype.resetCaptcha=function(){var t=this;this.zone.run(function(){t.onChange(null),t.onTouched(null)})},t.prototype.getCurrentResponse=function(){return this.currentResponse},t.prototype.reloadCaptcha=function(){this.setupComponent()},t.prototype.ensureCaptchaElem=function(t){var e=document.getElementById(t);if(!e)throw Error("Captcha element with id '"+t+"' was not found");this.captchaElem=e},t.prototype.renderReCaptcha=function(){this.captchaId=this.reCaptchaApi.render(this.captchaElemId,this.getCaptchaProperties()),this.ready.next()},t.prototype.handleCallback=function(t){var e=this;this.currentResponse=t,this.success.next(t),this.zone.run(function(){e.onChange(t),e.onTouched(t)}),this.resetCaptchaAfterSuccess&&this.resetCaptcha()},t.prototype.ensureReCaptchaScript=function(){window[this.globalReCaptchaProperty]={},this.reCaptchaApi={},this.registerReCaptchaScript()},t.prototype.registerReCaptchaScript=function(){var t=document.createElement("script");t.innerHTML="",t.src="https://www.google.com/recaptcha/api.js?onload="+this.windowOnLoadCallbackProperty+"&render=explicit"+this.getLanguageParam(),t.async=!0,t.defer=!0,this.captchaScriptElem.nativeElement.appendChild(t)},t.prototype.getLanguageParam=function(){return this.hl?"&hl="+this.hl:""},t.prototype.getPseudoUniqueNumber=function(){return(new Date).getUTCMilliseconds()+Math.floor(9999*Math.random())},t.prototype.isReCaptchaApiDefined=function(){return!!window[this.globalReCaptchaProperty]},t.prototype.setupComponent=function(){var t=this;this.captchaSpecificSetup(),this.createAndSetCaptchaElem(),window[this.windowOnLoadCallbackProperty]=function(){return t.zone.run(t.onloadCallback.bind(t))},this.ensureReCaptchaScript()},t.prototype.onloadCallback=function(){if(this.reCaptchaApi=grecaptcha,!this.reCaptchaApi)throw Error("ReCaptcha Api was not initialized correctly");this.isLoaded=!0,this.load.next(),this.renderReCaptcha(),this.setupAfterLoad&&(this.setupAfterLoad=!1,this.setupComponent())},t.prototype.generateNewElemId=function(){return this.captchaElemPrefix+this.getPseudoUniqueNumber()},t.prototype.createAndSetCaptchaElem=function(){if(this.captchaElemId=this.generateNewElemId(),!this.captchaElemId)throw Error("Captcha elem Id is not set");this.captchaWrapperElem.nativeElement.innerHTML="";var t=this.renderer.createElement("div");t.id=this.captchaElemId,this.renderer.appendChild(this.captchaWrapperElem.nativeElement,t),this.ensureCaptchaElem(this.captchaElemId)},t.prototype.writeValue=function(t){},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.propDecorators={siteKey:[{type:a.Input}],type:[{type:a.Input}],hl:[{type:a.Input}],tabIndex:[{type:a.Input}],success:[{type:a.Output}],load:[{type:a.Output}],ready:[{type:a.Output}],captchaWrapperElem:[{type:a.ViewChild,args:["captchaWrapperElem"]}],captchaScriptElem:[{type:a.ViewChild,args:["captchaScriptElem"]}]},t}(),c=function u(){},s=function(o){function t(t,e,n,r){var i=o.call(this,t,e,n,r)||this;return i.renderer=t,i.zone=e,i.injector=n,i.globalConfig=r,i.windowOnErrorCallbackProperty="ngx_captcha_error_callback",i.windowOnExpireCallbackProperty="ngx_captcha_expire_callback",i.theme="light",i.size="normal",i.expire=new a.EventEmitter,i.error=new a.EventEmitter,i.recaptchaType=p.ReCaptcha2,i}return i(t,o),t.prototype.ngOnChanges=function(t){o.prototype.ngOnChanges.call(this,t)},t.prototype.ngOnDestroy=function(){o.prototype.ngOnDestroy.call(this),window[this.windowOnErrorCallbackProperty]={},window[this.windowOnExpireCallbackProperty]={}},t.prototype.captchaSpecificSetup=function(){this.registerCallbacks()},t.prototype.getCaptchaProperties=function(){var e=this;return{sitekey:this._siteKey,callback:function(t){return e.zone.run(function(){return e.handleCallback(t)})},"expired-callback":function(){return e.zone.run(function(){return e.handleExpireCallback()})},"error-callback":function(){return e.zone.run(function(){return e.handleErrorCallback()})},theme:this.theme,type:this.type,size:this.size,tabindex:this.tabIndex}},t.prototype.registerCallbacks=function(){window[this.windowOnErrorCallbackProperty]=this.handleErrorCallback.bind(this),window[this.windowOnExpireCallbackProperty]=this.handleExpireCallback.bind(this)},t.prototype.handleErrorCallback=function(){var t=this;this.zone.run(function(){t.onChange(null),t.onTouched(null)}),this.error.next()},t.prototype.handleExpireCallback=function(){this.expire.next(),this.resetCaptcha()},t.decorators=[{type:a.Component,args:[{selector:"ngx-recaptcha2",template:"\n <div #captchaScriptElem></div>\n <div #captchaWrapperElem></div>",providers:[{provide:e.NG_VALUE_ACCESSOR,useExisting:a.forwardRef(function(){return t}),multi:!0}]}]}],t.ctorParameters=function(){return[{type:a.Renderer2},{type:a.NgZone},{type:a.Injector},{type:c,decorators:[{type:a.Optional}]}]},t.propDecorators={theme:[{type:a.Input}],size:[{type:a.Input}],hl:[{type:a.Input}],expire:[{type:a.Output}],error:[{type:a.Output}]},t}(o),h=function(o){function t(t,e,n,r){var i=o.call(this,t,e,n,r)||this;return i.renderer=t,i.zone=e,i.injector=n,i.globalConfig=r,i.size="invisible",i.badge="bottomright",i.recaptchaType=p.InvisibleReCaptcha,i}return i(t,o),t.prototype.ngOnChanges=function(t){o.prototype.ngOnChanges.call(this,t)},t.prototype.execute=function(){this.reCaptchaApi.execute(this.captchaId)},t.prototype.captchaSpecificSetup=function(){},t.prototype.getCaptchaProperties=function(){var e=this;return{sitekey:this._siteKey,callback:function(t){return e.zone.run(function(){return e.handleCallback(t)})},badge:this.badge,type:this.type,tabindex:this.tabIndex,size:this.size}},t.decorators=[{type:a.Component,args:[{selector:"ngx-invisible-recaptcha",template:"\n <div #captchaScriptElem></div>\n <div #captchaWrapperElem></div>",providers:[{provide:e.NG_VALUE_ACCESSOR,useExisting:a.forwardRef(function(){return t}),multi:!0}]}]}],t.ctorParameters=function(){return[{type:a.Renderer2},{type:a.NgZone},{type:a.Injector},{type:c,decorators:[{type:a.Optional}]}]},t.propDecorators={badge:[{type:a.Input}],hl:[{type:a.Input}]},t}(o),l=function(){function e(){}return e.forRoot=function(t){return{ngModule:e,providers:[{provide:c,useValue:t}]}},e.decorators=[{type:a.NgModule,args:[{imports:[n.CommonModule],declarations:[s,h],exports:[s,h]}]}],e}();t.ReCaptcha2Component=s,t.InvisibleReCaptchaComponent=h,t.NgxCaptchaConfig=c,t.NgxCaptchaModule=l,t.ɵa=o,Object.defineProperty(t,"__esModule",{value:!0})});
//# sourceMappingURL=ngx-captcha.umd.min.js.map
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -157,3 +157,2 @@ import { ElementRef, EventEmitter, Input, Output, ViewChild, } from '@angular/core';

});
this.reCaptchaApi.reset(this.captchaId);
}

@@ -179,3 +178,4 @@ /**

ensureCaptchaElem(captchaElemId) {
const /** @type {?} */ captchaElem = document.getElementById(captchaElemId);
/** @type {?} */
const captchaElem = document.getElementById(captchaElemId);
if (!captchaElem) {

@@ -226,3 +226,4 @@ throw Error(`Captcha element with id '${captchaElemId}' was not found`);

registerReCaptchaScript() {
const /** @type {?} */ script = document.createElement('script');
/** @type {?} */
const script = document.createElement('script');
script.innerHTML = '';

@@ -314,4 +315,4 @@ script.src =

this.captchaWrapperElem.nativeElement.innerHTML = '';
// create new wrapper for captcha
const /** @type {?} */ newElem = this.renderer.createElement('div');
/** @type {?} */
const newElem = this.renderer.createElement('div');
newElem.id = this.captchaElemId;

@@ -357,3 +358,3 @@ this.renderer.appendChild(this.captchaWrapperElem.nativeElement, newElem);

};
function BaseReCaptchaComponent_tsickle_Closure_declarations() {
if (false) {
/**

@@ -497,2 +498,2 @@ * Form Control to be enable usage in reactive forms

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1yZWNhcHRjaGEuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6Im5nOi8vbmd4LWNhcHRjaGEvIiwic291cmNlcyI6WyJsaWIvYmFzZS1yZWNhcHRjaGEuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7QUFBQSxPQUFPLEVBRUwsVUFBVSxFQUNWLFlBQVksRUFDWixLQUFLLEVBSUwsTUFBTSxFQUdOLFNBQVMsR0FDVixNQUFNLGVBQWUsQ0FBQztBQUV2QixPQUFPLEVBQUUsYUFBYSxFQUFFLE1BQU0sdUJBQXVCLENBQUM7QUFFdEQsT0FBTyxFQUFxQyxTQUFTLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQzs7OztBQUk5RSxNQUFNOzs7Ozs7O0lBbUhGLFlBQ2MsUUFBbUIsRUFDbkIsSUFBWSxFQUNaLFFBQWtCLEVBQ2xCLFlBQSt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cnRpZXMoKTogYW55O1xyXG5cclxuICAgIC8qKlxyXG4gICAgICogVXNlZCBmb3IgY2FwdGNoYSBzcGVjaWZpYyBzZXR1cFxyXG4gICAgKi9cclxuICAgIHByb3RlY3RlZCBhYnN0cmFjdCBjYXB0Y2hhU3BlY2lmaWNTZXR1cCgpOiB2b2lkO1xyXG5cclxuICAgIHByaXZhdGUgZ2V0R2xvYmFsU2l0ZUtleSgpOiBzdHJpbmcge1xyXG4gICAgICAgIGlmICh0aGlzLmdsb2JhbENvbmZpZykge1xyXG4gICAgICAgICAgICAvLyBJbnZpc2libGUgY2FwdGNoYVxyXG4gICAgICAgICAgICBpZiAodGhpcy5yZWNhcHRjaGFUeXBlID09PSBSZUNhcHRjaGFUeXBlLkludmlzaWJsZVJlQ2FwdGNoYSkge1xyXG4gICAgICAgICAgICAgICAgaWYgKCF0aGlzLmdsb2JhbENvbmZpZy5pbnZpc2libGVDYXB0Y2hhU2l0ZUtleSkge1xyXG4gICAgICAgICAgICAgICAgICAgIHRocm93IEVycm9yKGBTaXRlS2V5IGZvciBpbnZpc2libGUgcmVDYXB0Y2hhIGlzIG5vdCBzZXQhYCk7XHJcbiAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuZ2xvYmFsQ29uZmlnLmludmlzaWJsZUNhcHRjaGFTaXRlS2V5IGluc3RhbmNlb2YgRnVuY3Rpb24pIHtcclxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5nbG9iYWxDb25maWcuaW52aXNpYmxlQ2FwdGNoYVNpdGVLZXkoKTtcclxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuZ2xvYmFsQ29uZmlnLmludmlzaWJsZUNhcHRjaGFTaXRlS2V5O1xyXG4gICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgIC8vIHJlY2FwdGNoYSAyXHJcbiAgICAgICA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SBDb250cm9sVmFsdWVBY2Nlc3NvciBpbnRlcmZhY2Ugd2UgbmVlZCB0byBpbXBsZW1lbnQgdGhpcyBtZXRob2RcclxuICAgICAqIEhvd2V2ZXIgYXMgd2UgZG9uJ3Qgd2FudCB0byB1cGRhdGUgdGhlIHJlY2FwdGNoYSwgdGhpcyBkb2Vzbid0IG5lZWQgdG8gYmUgaW1wbGVtZW50ZWRcclxuICAgICAqL1xyXG4gICAgcHVibGljIHdyaXRlVmFsdWUob2JqOiBhbnkpOiB2b2lkIHsgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgICogVGhpcyBtZXRob2QgaGVscHMgdXMgdGllIHRvZ2V0aGVyIHJlY2FwdGNoYSBhbmQgb3VyIGZvcm1Db250cm9sIHZhbHVlc1xyXG4gICAgICovXHJcbiAgICBwdWJsaWMgcmVnaXN0ZXJPbkNoYW5nZShmbjogYW55KTogdm9pZCB7XHJcbiAgICAgICAgdGhpcy5vbkNoYW5nZSA9IGZuO1xyXG4gICAgfVxyXG5cclxuICAgIC8qKlxyXG4gICAgKiBBdCBzb21lIHBvaW50IHdlIG1pZ2h0IGJlIGludGVyZXN0ZWQgd2hldGhlciB0aGUgdXNlciBoYXMgdG91Y2hlZCBvdXIgY29tcG9uZW50XHJcbiAgICAqL1xyXG4gICAgcHVibGljIHJlZ2lzdGVyT25Ub3VjaGVkKGZuOiBhbnkpOiB2b2lkIHtcclxuICAgICAgICB0aGlzLm9uVG91Y2hlZCA9IGZuO1xyXG4gICAgfVxyXG59XHJcblxyXG4iXX0=
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -5,0 +5,0 @@ export { ReCaptcha2Component } from './recaptcha-2.component';

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -94,3 +94,3 @@ import { Component, Input, Optional, Renderer2, NgZone, Injector, forwardRef } from '@angular/core';

};
function InvisibleReCaptchaComponent_tsickle_Closure_declarations() {
if (false) {
/**

@@ -97,0 +97,0 @@ * This size representing invisible captcha

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -5,0 +5,0 @@ import { CommonModule } from '@angular/common';

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -144,3 +144,3 @@ import { Component, EventEmitter, Input, Optional, Output, Renderer2, NgZone, Injector, forwardRef, } from '@angular/core';

};
function ReCaptcha2Component_tsickle_Closure_declarations() {
if (false) {
/**

@@ -147,0 +147,0 @@ * Name of the global expire callback

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -11,5 +11,5 @@ /** @enum {number} */

export { ReCaptchaType };
ReCaptchaType[ReCaptchaType.InvisibleReCaptcha] = "InvisibleReCaptcha";
ReCaptchaType[ReCaptchaType.ReCaptcha2] = "ReCaptcha2";
ReCaptchaType[ReCaptchaType.InvisibleReCaptcha] = 'InvisibleReCaptcha';
ReCaptchaType[ReCaptchaType.ReCaptcha2] = 'ReCaptcha2';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjYXB0Y2hhLXR5cGUuZW51bS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1jYXB0Y2hhLyIsInNvdXJjZXMiOlsibGliL3JlY2FwdGNoYS10eXBlLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIFJlQ2FwdGNoYVR5cGUge1xyXG5cclxuICAgIEludmlzaWJsZVJlQ2FwdGNoYSxcclxuICAgIFJlQ2FwdGNoYTJcclxufVxyXG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjYXB0Y2hhLXR5cGUuZW51bS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1jYXB0Y2hhLyIsInNvdXJjZXMiOlsibGliL3JlY2FwdGNoYS10eXBlLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0lBRUkscUJBQWtCO0lBQ2xCLGFBQVU7Ozs0QkFEVixrQkFBa0I7NEJBQ2xCLFVBQVUiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBSZUNhcHRjaGFUeXBlIHtcclxuXHJcbiAgICBJbnZpc2libGVSZUNhcHRjaGEsXHJcbiAgICBSZUNhcHRjaGEyXHJcbn1cclxuIl19
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -9,11 +9,9 @@ /**

export function INgxCaptchaConfig() { }
function INgxCaptchaConfig_tsickle_Closure_declarations() {
/** @type {?|undefined} */
INgxCaptchaConfig.prototype.reCaptcha2SiteKey;
/** @type {?|undefined} */
INgxCaptchaConfig.prototype.invisibleCaptchaSiteKey;
}
/** @type {?|undefined} */
INgxCaptchaConfig.prototype.reCaptcha2SiteKey;
/** @type {?|undefined} */
INgxCaptchaConfig.prototype.invisibleCaptchaSiteKey;
export class NgxCaptchaConfig {
}
function NgxCaptchaConfig_tsickle_Closure_declarations() {
if (false) {
/** @type {?} */

@@ -25,2 +23,2 @@ NgxCaptchaConfig.prototype.reCaptcha2SiteKey;

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjYXB0Y2hhLmNvbmZpZy5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1jYXB0Y2hhLyIsInNvdXJjZXMiOlsibGliL3JlY2FwdGNoYS5jb25maWcudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7QUFLQ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wdGNoYUNvbmZpZyB7XHJcblxyXG4gICAgcHVibGljIHJlQ2FwdGNoYTJTaXRlS2V5Pzogc3RyaW5nIHwgKCgpID0+IHN0cmluZyk7XHJcbiAgICBwdWJsaWMgaW52aXNpYmxlQ2FwdGNoYVNpdGVLZXk/OiBzdHJpbmcgfCAoKCkgPT4gc3RyaW5nKTtcclxufVxyXG4iXX0=
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -5,0 +5,0 @@ /**

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -5,0 +5,0 @@ /*

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -186,3 +186,2 @@ import { ElementRef, EventEmitter, Input, Output, ViewChild, } from '@angular/core';

});
this.reCaptchaApi.reset(this.captchaId);
};

@@ -226,3 +225,4 @@ /**

function (captchaElemId) {
var /** @type {?} */ captchaElem = document.getElementById(captchaElemId);
/** @type {?} */
var captchaElem = document.getElementById(captchaElemId);
if (!captchaElem) {

@@ -306,3 +306,4 @@ throw Error("Captcha element with id '" + captchaElemId + "' was not found");

function () {
var /** @type {?} */ script = document.createElement('script');
/** @type {?} */
var script = document.createElement('script');
script.innerHTML = '';

@@ -419,4 +420,4 @@ script.src =

this.captchaWrapperElem.nativeElement.innerHTML = '';
// create new wrapper for captcha
var /** @type {?} */ newElem = this.renderer.createElement('div');
/** @type {?} */
var newElem = this.renderer.createElement('div');
newElem.id = this.captchaElemId;

@@ -480,3 +481,3 @@ this.renderer.appendChild(this.captchaWrapperElem.nativeElement, newElem);

export { BaseReCaptchaComponent };
function BaseReCaptchaComponent_tsickle_Closure_declarations() {
if (false) {
/**

@@ -620,2 +621,2 @@ * Form Control to be enable usage in reactive forms

//# sourceMappingURL=data:application/json;base64,eyJ2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B0Y2hhU3BlY2lmaWNTZXR1cCgpOiB2b2lkO1xyXG5cclxuICAgIHByaXZhdGUgZ2V0R2xvYmFsU2l0ZUtleSgpOiBzdHJpbmcge1xyXG4gICAgICAgIGlmICh0aGlzLmdsb2JhbENvbmZpZykge1xyXG4gICAgICAgICAgICAvLyBJbnZpc2libGUgY2FwdGNoYVxyXG4gICAgICAgICAgICBpZiAodGhpcy5yZWNhcHRjaGFUeXBlID09PSBSZUNhcHRjaGFUeXBlLkludmlzaWJsZVJlQ2FwdGNoYSkge1xyXG4gICAgICAgICAgICAgICAgaWYgKCF0aGlzLmdsb2JhbENvbmZpZy5pbnZpc2libGVDYXB0Y2hhU2l0ZUtleSkge1xyXG4gICAgICAgICAgICAgICAgICAgIHRocm93IEVycm9yKGBTaXRlS2V5IGZvciBpbnZpc2libGUgcmVDYXB0Y2hhIGlzIG5vdCBzZXQhYCk7XHJcbiAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuZ2xvYmFsQ29uZmlnLmludmlzaWJsZUNhcHRjaGFTaXRlS2V5IGluc3RhbmNlb2YgRnVuY3Rpb24pIHtcclxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5nbG9iYWxDb25maWcuaW52aXNpYmxlQ2FwdGNoYVNpdGVLZXkoKTtcclxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuZ2xvYmFsQ29uZmlnLmludmlzaWJsZUNhcHRjaGFTaXRlS2V5O1xyXG4gICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgICAgIC8vIHJlY2FwdGNoYSAyXHJcbiAgICAgICAgICAgIH0gZWxzZSBpZiAodGhpcy5yZWNhcHRjaGFUeXBlID09PSBSZUNhcHRjaGFUeXBlLlJlQ2FwdGNoYTIpIHtcclxuICAgICAgICAgICAgICAgIGlmICghdGhpcy5nbG9iYWxDb25maWcucmVD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Q2FwdGNoYVNpdGVLZXkgaW5zdGFuY2VvZiBGdW5jdGlvbikge1xyXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLmdsb2JhbENvbmZpZy5pbnZpc2libGVDYXB0Y2hhU2l0ZUtleSgpO1xyXG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5nbG9iYWxDb25maWcuaW52aXNpYmxlQ2FwdGNoYVNpdGVLZXk7XHJcbiAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgLy8gcmVjYXB0Y2hhIDJcclxuICAgICAgICAgICAgfSBlbHNlIGlmICh0aGlzLnJlY2FwdGNoYVR5cGUgPT09IFJlQ2FwdGNoYVR5cGUuUmVDYXB0Y2hhMikge1xyXG4gICAgICAgICAgICAgICAgaWYgKCF0aGlzLmdsb2JhbENvbmZpZy5yZUNhcHRjaGEyU2l0ZUtleSkge1xyXG4gICAgICAgICAgICAgICAgICAgIHRocm93IEVycm9yKGBTaXRlS2V5IGZvciByZUNhcHRjaGEyIGlzIG5vdCBzZXQhYCk7XHJcbiAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuZ2xvYmFsQ29uZmlnLnJlQ2FwdGNoYTJTaXRlS2V5IGluc3RhbmNlb2YgRnVuY3Rpb24pIHtcclxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5nbG9iYWxDb25maWcucmVDYXB0Y2hhMlNpdGVLZXkoKTtcclxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuZ2xvYmFsQ29uZmlnLnJlQ2FwdGNoYTJTaXRlS2V5O1xyXG4gICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgICAgIHRocm93IEVycm9yKGBVbnN1cHBvcnRlZCBj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ICAgICAgICB0aGlzLmVuc3VyZUNhcHRjaGFFbGVtKHRoaXMuY2FwdGNoYUVsZW1JZCk7XHJcbiAgICB9XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiBUbyBiZSBhbGlnbmVkIHdpdGggdGhlIENvbnRyb2xWYWx1ZUFjY2Vzc29yIGludGVyZmFjZSB3ZSBuZWVkIHRvIGltcGxlbWVudCB0aGlzIG1ldGhvZFxyXG4gICAgICogSG93ZXZlciBhcyB3ZSBkb24ndCB3YW50IHRvIHVwZGF0ZSB0aGUgcmVjYXB0Y2hhLCB0aGlzIGRvZXNuJ3QgbmVlZCB0byBiZSBpbXBsZW1lbnRlZFxyXG4gICAgICovXHJcbiAgICBwdWJsaWMgd3JpdGVWYWx1ZShvYmo6IGFueSk6IHZvaWQgeyB9XHJcblxyXG4gICAgLyoqXHJcbiAgICAgKiBUaGlzIG1ldGhvZCBoZWxwcyB1cyB0aWUgdG9nZXRoZXIgcmVjYXB0Y2hhIGFuZCBvdXIgZm9ybUNvbnRyb2wgdmFsdWVzXHJcbiAgICAgKi9cclxuICAgIHB1YmxpYyByZWdpc3Rlck9uQ2hhbmdlKGZuOiBhbnkpOiB2b2lkIHtcclxuICAgICAgICB0aGlzLm9uQ2hhbmdlID0gZm47XHJcbiAgICB9XHJcblxyXG4gICAgLyoqXHJcbiAgICAqIEF0IHNvbWUgcG9pbnQgd2UgbWlnaHQgYmUgaW50ZXJlc3RlZCB3aGV0aGVyIHRoZSB1c2VyIGhhcyB0b3VjaGVkIG91ciBjb21wb25lbnRcclxuICAgICovXHJcbiAgICBwdWJsaWMgcmVnaXN0ZXJPblRvdWNoZWQoZm46IGFueSk6IHZvaWQge1xyXG4gICAgICAgIHRoaXMub25Ub3VjaGVkID0gZm47XHJcbiAgICB9XHJcbn1cclxuXHJcbiJdfQ==
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -5,0 +5,0 @@ export { ReCaptcha2Component } from './recaptcha-2.component';

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -113,3 +113,3 @@ import * as tslib_1 from "tslib";

export { InvisibleReCaptchaComponent };
function InvisibleReCaptchaComponent_tsickle_Closure_declarations() {
if (false) {
/**

@@ -116,0 +116,0 @@ * This size representing invisible captcha

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -5,0 +5,0 @@ import { CommonModule } from '@angular/common';

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -172,3 +172,3 @@ import * as tslib_1 from "tslib";

export { ReCaptcha2Component };
function ReCaptcha2Component_tsickle_Closure_declarations() {
if (false) {
/**

@@ -175,0 +175,0 @@ * Name of the global expire callback

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -11,5 +11,5 @@ /** @enum {number} */

export { ReCaptchaType };
ReCaptchaType[ReCaptchaType.InvisibleReCaptcha] = "InvisibleReCaptcha";
ReCaptchaType[ReCaptchaType.ReCaptcha2] = "ReCaptcha2";
ReCaptchaType[ReCaptchaType.InvisibleReCaptcha] = 'InvisibleReCaptcha';
ReCaptchaType[ReCaptchaType.ReCaptcha2] = 'ReCaptcha2';
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjYXB0Y2hhLXR5cGUuZW51bS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1jYXB0Y2hhLyIsInNvdXJjZXMiOlsibGliL3JlY2FwdGNoYS10eXBlLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IiIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCBlbnVtIFJlQ2FwdGNoYVR5cGUge1xyXG5cclxuICAgIEludmlzaWJsZVJlQ2FwdGNoYSxcclxuICAgIFJlQ2FwdGNoYTJcclxufVxyXG4iXX0=
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjYXB0Y2hhLXR5cGUuZW51bS5qcyIsInNvdXJjZVJvb3QiOiJuZzovL25neC1jYXB0Y2hhLyIsInNvdXJjZXMiOlsibGliL3JlY2FwdGNoYS10eXBlLmVudW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7O0lBRUkscUJBQWtCO0lBQ2xCLGFBQVU7Ozs0QkFEVixrQkFBa0I7NEJBQ2xCLFVBQVUiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgZW51bSBSZUNhcHRjaGFUeXBlIHtcclxuXHJcbiAgICBJbnZpc2libGVSZUNhcHRjaGEsXHJcbiAgICBSZUNhcHRjaGEyXHJcbn1cclxuIl19
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -9,8 +9,6 @@ /**

export function INgxCaptchaConfig() { }
function INgxCaptchaConfig_tsickle_Closure_declarations() {
/** @type {?|undefined} */
INgxCaptchaConfig.prototype.reCaptcha2SiteKey;
/** @type {?|undefined} */
INgxCaptchaConfig.prototype.invisibleCaptchaSiteKey;
}
/** @type {?|undefined} */
INgxCaptchaConfig.prototype.reCaptcha2SiteKey;
/** @type {?|undefined} */
INgxCaptchaConfig.prototype.invisibleCaptchaSiteKey;
var NgxCaptchaConfig = /** @class */ (function () {

@@ -22,3 +20,3 @@ function NgxCaptchaConfig() {

export { NgxCaptchaConfig };
function NgxCaptchaConfig_tsickle_Closure_declarations() {
if (false) {
/** @type {?} */

@@ -30,2 +28,2 @@ NgxCaptchaConfig.prototype.reCaptcha2SiteKey;

//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVjYXB0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YUNvbmZpZyB7XHJcbiAgICByZUNhcHRjaGEyU2l0ZUtleT86IHN0cmluZyB8ICgoKSA9PiBzdHJpbmcpO1xyXG4gICAgaW52aXNpYmxlQ2FwdGNoYVNpdGVLZXk/OiBzdHJpbmcgfCAoKCkgPT4gc3RyaW5nKTtcclxufVxyXG5cclxuZXhwb3J0IGNsYXNzIE5neENhcHRjaGFDb25maWcgaW1wbGVtZW50cyBJTmd4Q2FwdGNoYUNvbmZpZyB7XHJcblxyXG4gICAgcHVibGljIHJlQ2FwdGNoYTJTaXRlS2V5Pzogc3RyaW5nIHwgKCgpID0+IHN0cmluZyk7XHJcbiAgICBwdWJsaWMgaW52aXNpYmxlQ2FwdGNoYVNpdGVLZXk/OiBzdHJpbmcgfCAoKCkgPT4gc3RyaW5nKTtcclxufVxyXG4iXX0=
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -5,0 +5,0 @@ /**

/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -5,0 +5,0 @@ /*

@@ -7,3 +7,3 @@ import { EventEmitter, Input, Output, ViewChild, Component, Optional, Renderer2, NgZone, Injector, forwardRef, NgModule } from '@angular/core';

* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -15,8 +15,8 @@ /** @enum {number} */

};
ReCaptchaType[ReCaptchaType.InvisibleReCaptcha] = "InvisibleReCaptcha";
ReCaptchaType[ReCaptchaType.ReCaptcha2] = "ReCaptcha2";
ReCaptchaType[ReCaptchaType.InvisibleReCaptcha] = 'InvisibleReCaptcha';
ReCaptchaType[ReCaptchaType.ReCaptcha2] = 'ReCaptcha2';
/**
* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -172,3 +172,2 @@ /**

});
this.reCaptchaApi.reset(this.captchaId);
}

@@ -194,3 +193,4 @@ /**

ensureCaptchaElem(captchaElemId) {
const /** @type {?} */ captchaElem = document.getElementById(captchaElemId);
/** @type {?} */
const captchaElem = document.getElementById(captchaElemId);
if (!captchaElem) {

@@ -241,3 +241,4 @@ throw Error(`Captcha element with id '${captchaElemId}' was not found`);

registerReCaptchaScript() {
const /** @type {?} */ script = document.createElement('script');
/** @type {?} */
const script = document.createElement('script');
script.innerHTML = '';

@@ -329,4 +330,4 @@ script.src =

this.captchaWrapperElem.nativeElement.innerHTML = '';
// create new wrapper for captcha
const /** @type {?} */ newElem = this.renderer.createElement('div');
/** @type {?} */
const newElem = this.renderer.createElement('div');
newElem.id = this.captchaElemId;

@@ -375,3 +376,3 @@ this.renderer.appendChild(this.captchaWrapperElem.nativeElement, newElem);

* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -383,3 +384,3 @@ class NgxCaptchaConfig {

* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -523,3 +524,3 @@ class ReCaptcha2Component extends BaseReCaptchaComponent {

* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -613,3 +614,3 @@ class InvisibleReCaptchaComponent extends BaseReCaptchaComponent {

* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -651,3 +652,3 @@ class NgxCaptchaModule {

* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -657,3 +658,3 @@

* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -663,3 +664,3 @@

* @fileoverview added by tsickle
* @suppress {checkTypes} checked by tsc
* @suppress {checkTypes,extraRequire,uselessCode} checked by tsc
*/

@@ -669,2 +670,2 @@

//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibmd4LWNhcHRjaGEuanMubWFwIiwic291cmNlcyI6WyJuZzovL25neC1jYXB0Y2hhL2xpYi9iYXNlLXJlY2FwdGNoYS5jb21wb25lbnQudHMiLCJuZzovL25neC1jYXB0Y2hhL2xpYi9yZWNhcHRjaGEuY29uZmlnLnRzIiwibmc6Ly9uZ3gtY2FwdGNoYS9saWIvcmVjYXB0Y2hhLTIuY29tcG9uZW50LnRzIiwibmc6Ly9uZ3gtY2FwdGNoYS9saWIvaW52aXNpYmxlLXJlY2FwdGNoYS5jb21wb25lbnQudHMiLCJuZzovL25neC1jYXB0Y2hhL2xpYi9uZ3gtY2FwdGNoYS5tb2R1bGUudHMiXSwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHtcclxuICBBZnRlclZpZXdJbml0LFxyXG4gIEVsZW1lbnRSZWYsXHJcbiAgRXZlbnRFbWl0dGVyLCBJbmplY3RvcixcclxuICBJbnB1dCxcclxuICBOZ1pvbmUsXHJcbiAgT25DaGFuZ2VzLFxyXG4gIE9uRGVzdHJveSxcclxuICBPdXRwdXQsXHJcbiAgUmVuZGVyZXIyLFxyXG4gIFNpbXBsZUNoYW5nZXMsXHJcbiAgVmlld0NoaWxkLFxyXG59IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xyXG5cclxuaW1wb3J0IHsgUmVDYXB0Y2hhVHlwZSB9IGZyb20gJy4vcmVjYXB0Y2hhLXR5cGUuZW51bSc7XHJcbmltcG9ydCB7IE5neENhcHRjaGFDb25maWcgfSBmcm9tICcuL3JlY2FwdGNoYS5jb25maWcnO1xyXG5pbXBvcnQgeyBDb250cm9sVmFsdWVBY2Nlc3NvciwgRm9ybUNvbnRyb2wsIE5nQ29udHJvbCB9IGZyb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Ghpcy5nbG9iYWxDb25maWcuaW52aXNpYmxlQ2FwdGNoYVNpdGVLZXkgaW5zdGFuY2VvZiBGdW5jdGlvbikge1xyXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLmdsb2JhbENvbmZpZy5pbnZpc2libGVDYXB0Y2hhU2l0ZUtleSgpO1xyXG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5nbG9iYWxDb25maWcuaW52aXNpYmxlQ2FwdGNoYVNpdGVLZXk7XHJcbiAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgLy8gcmVjYXB0Y2hhIDJcclxuICAgICAgICAgICAgfSBlbHNlIGlmICh0aGlzLnJlY2FwdGNoYVR5cGUgPT09IFJlQ2FwdGNoYVR5cGUuUmVDYXB0Y2hhMikge1xyXG4gICAgICAgICAgICAgICAgaWYgKCF0aGlzLmdsb2JhbENvbmZpZy5yZUNhcHRjaGEyU2l0ZUtleSkge1xyXG4gICAgICAgICAgICAgICAgICAgIHRocm93IEVycm9yKGBTaXRlS2V5IGZvciByZUNhcHRjaGEyIGlzIG5vdCBzZXQhYCk7XHJcbiAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICAgICAgaWYgKHRoaXMuZ2xvYmFsQ29uZmlnLnJlQ2FwdGNoYTJTaXRlS2V5IGluc3RhbmNlb2YgRnVuY3Rpb24pIHtcclxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5nbG9iYWxDb25maWcucmVDYXB0Y2hhMlNpdGVLZXkoKTtcclxuICAgICAgICAgICAgICAgIH0gZWxzZSB7XHJcbiAgICAgICAgICAgICAgICAgICAgcmV0dXJuIHRoaXMuZ2xvYmFsQ29uZmlnLnJlQ2FwdGNoYTJTaXRlS2V5O1xyXG4gICAgICAgICAgICAgICAgfVxyXG5cclxuICAgICAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgICAgI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ENvbmZpZy5pbnZpc2libGVDYXB0Y2hhU2l0ZUtleTtcclxuICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICAvLyByZWNhcHRjaGEgMlxyXG4gICAgICAgICAgICB9IGVsc2UgaWYgKHRoaXMucmVjYXB0Y2hhVHlwZSA9PT0gUmVDYXB0Y2hhVHlwZS5SZUNhcHRjaGEyKSB7XHJcbiAgICAgICAgICAgICAgICBpZiAoIXRoaXMuZ2xvYmFsQ29uZmlnLnJlQ2FwdGNoYTJTaXRlS2V5KSB7XHJcbiAgICAgICAgICAgICAgICAgICAgdGhyb3cgRXJyb3IoYFNpdGVLZXkgZm9yIHJlQ2FwdGNoYTIgaXMgbm90IHNldCFgKTtcclxuICAgICAgICAgICAgICAgIH1cclxuXHJcbiAgICAgICAgICAgICAgICBpZiAodGhpcy5nbG9iYWxDb25maWcucmVDYXB0Y2hhMlNpdGVLZXkgaW5zdGFuY2VvZiBGdW5jdGlvbikge1xyXG4gICAgICAgICAgICAgICAgICAgIHJldHVybiB0aGlzLmdsb2JhbENvbmZpZy5yZUNhcHRjaGEyU2l0ZUtleSgpO1xyXG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcclxuICAgICAgICAgICAgICAgICAgICByZXR1cm4gdGhpcy5nbG9iYWxDb25maWcucmVDYXB0Y2hhMlNpdGVLZXk7XHJcbiAgICAgICAgICAgICAgICB9XHJcblxyXG4gICAgICAgICAgICB9IGVsc2Uge1xyXG4gICAgICAgICAgICAgICAgdGhyb3cgRXJyb3IoYFVuc3VwcG9ydGVkIGNhcHRjaGEgdHlwZSAnJHt0aGlzLnJlY2FwdGNoYVR5cGV9JyFgKTtcclxuICAgICAgICAgICAgfVxyXG4gICAgICAgIH1cclxuICAgIH1cclxuXHJcblxyXG4gICAgbmdPbkNoYW5nZXMoY2hhbmdlczogU2ltcGxlQ2hhbmdlcyk6IHZvaWQge1xyXG4gICAgICAgIGlmICghdGhpcy5zaXRlS2V5KSB7XHJcbiAg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FBUSxFQUFFLE1BQU07aUJBQ2pCO2FBQ0Y7U0FDRixDQUFDO0tBQ0g7OztZQXpCRixRQUFRLFNBQUM7Z0JBQ1IsT0FBTyxFQUFFO29CQUNQLFlBQVk7aUJBQ2I7Z0JBQ0QsWUFBWSxFQUFFO29CQUNaLG1CQUFtQjtvQkFDbkIsMkJBQTJCO2lCQUM1QjtnQkFDRCxPQUFPLEVBQUU7b0JBQ1AsbUJBQW1CO29CQUNuQiwyQkFBMkI7aUJBQzVCO2FBQ0Y7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7OyJ9

@@ -97,4 +97,4 @@ import { AfterViewInit, ElementRef, EventEmitter, Injector, NgZone, OnChanges, OnDestroy, Renderer2, SimpleChanges } from '@angular/core';

/**
* Required by ControlValueAccessor
*/
* Required by ControlValueAccessor
*/
protected onChange: (value: string) => void;

@@ -101,0 +101,0 @@ protected onTouched: (value: string) => void;

{
"name": "ngx-captcha",
"version": "4.0.0",
"version": "4.0.1",
"license": "MIT",

@@ -5,0 +5,0 @@ "repository": {

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc