(window.webpackJsonp=window.webpackJsonp||[]).push([[13],{LXPo:function(e,t,n){"use strict";n.d(t,"a",(function(){return C})),n.d(t,"b",(function(){return N}));var r=n("zjfJ"),i=n("ERkP"),o=n("dNoy"),a=n("qdM3"),c=n("7nmT"),s=n.n(c),d=n("aWzz"),p=n.n(d),u=["sitekey","onChange","theme","type","tabindex","onExpired","onErrored","size","stoken","grecaptcha","badge","hl","isolated"];function h(){return(h=Object.assign?Object.assign.bind():function(e){for(var t=1;t=0||(i[n]=e[n]);return i}(e,u));return(i.createElement("div",h({},t,{ref:this.handleRecaptchaRef})))},r}(i.Component);v.displayName="ReCAPTCHA",v.propTypes={sitekey:p.a.string.isRequired,onChange:p.a.func,grecaptcha:p.a.object,theme:p.a.oneOf(["dark","light"]),type:p.a.oneOf(["image","audio"]),tabindex:p.a.number,onExpired:p.a.func,onErrored:p.a.func,size:p.a.oneOf(["compact","normal","invisible"]),stoken:p.a.string,hl:p.a.string,badge:p.a.oneOf(["bottomright","bottomleft","inline"]),isolated:p.a.bool},v.defaultProps={onChange:function(){},theme:"light",type:"image",tabindex:0,size:"normal",badge:"bottomright"};var g=n("oXkQ"),y=n.n(g);function b(){return(b=Object.assign||function(e){for(var t=1;t-1&&t[n].parentNode&&t[n].parentNode.removeChild(t[n]);var r=R[e];r&&(delete r.observers[this.asyncScriptLoaderGetScriptLoaderID()],!0===_.removeOnUnmount&&delete R[e])},a.render=function(){var t=_.globalName,n=this.props,r=(n.asyncScriptOnLoad,n.forwardedRef),o=function(e,t){if(null==e)return{};var n,r,i={},o=Object.keys(e);for(r=0;r=0||(i[n]=e[n]);return i}(n,["asyncScriptOnLoad","forwardedRef"]);return t&&"undefined"!==typeof window&&(o[t]="undefined"!==typeof window[t]?window[t]:void 0),o.ref=r,Object(i.createElement)(e,o)},o}(i.Component),r=Object(i.forwardRef)((function(e,t){return Object(i.createElement)(n,b({},e,{forwardedRef:t}))}));return r.displayName="AsyncScriptLoader("+t+")",r.propTypes={asyncScriptOnLoad:p.a.func},y()(r,e)})(v),w=i.createElement,S=function(e){return e.COMPACT="compact",e.NORMAL="normal",e.INVISIBLE="invisible",e}({}),x=i.forwardRef((function(e,t){var n;return"undefined"!==typeof document&&document.body?s.a.createPortal(w(O,{ref:t,size:e.size,onChange:e.onChange,sitekey:e.siteKey,isolated:!0}),(null===(n=e.containerRef)||void 0===n?void 0:n.current)?e.containerRef.current:document.body):null})),A=i.createElement,C=function(e){return e.LOGIN="LOGIN",e.REGISTER="REGISTRATION",e.FORGOTTEN_PASSWORD="FORGOT_PASSWORD",e.RESET_PASSWORD="RESET_PASSWORD",e.MARKETING_MATERIAL_SIGN_UP="MARKETING_MATERIAL_SIGN_UP",e.ADD_REVIEW="ADD_REVIEW",e.WAITLIST="WAITLIST",e.REFERRAL_EMAIL="REFERRAL_EMAIL",e}({}),k=Object(r.a)(Object(r.a)({},"VISIBLE-RECAPTCHA","V2_VISIBLE"),"INVISIBLE-RECAPTCHA","V2_INVISIBLE"),N=function(e){var t=Object(a.c)(),n=Object(o.f)(),r=i.useRef(),c=i.useRef();return i.useEffect((function(){window.recaptchaOptions={useRecaptchaNet:!!n.enableRecaptchaNet}}),[]),i.useMemo((function(){var i,o,a=null===t||void 0===t?void 0:null===(i=t.rateLimitersFiring)||void 0===i?void 0:i.find((function(t){return t.rateLimitingBucket===e.bucket.toString()})),s=a&&n.listAttackStrategy?null===a||void 0===a?void 0:null===(o=a.captchaBypassAvailable)||void 0===o?void 0:o.find((function(e){return e.type===k[n.listAttackStrategy]})):void 0;return{captcha:(null===s||void 0===s?void 0:s.type)?A(x,{containerRef:e.containerRef,size:"V2_INVISIBLE"===(null===s||void 0===s?void 0:s.type)?S.INVISIBLE:void 0,siteKey:null===s||void 0===s?void 0:s.siteKey,onChange:function(e){e&&c.current&&c.current(e)},ref:r}):null,type:null===s||void 0===s?void 0:s.type,submit:function(e){(null===s||void 0===s?void 0:s.type)&&"V2_VISIBLE"!==(null===s||void 0===s?void 0:s.type)&&r.current?(c.current=e,r.current.reset(),r.current.execute()):e()}}}),[null===t||void 0===t?void 0:t.rateLimitersFiring,e.bucket,n.listAttackStrategy,r,c])}}}]);