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

react-google-recaptcha-ultimate

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-google-recaptcha-ultimate - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

dist/cjs/jsx-runtime-1bc47fc1.js

4

dist/cjs/components/GoogleReCaptchaCheckbox.js

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("../context/useGoogleReCaptcha.js"),r=require("../utils/helpers/removeGoogleReCaptchaContainer.js"),o=require("../utils/hooks/useIsomorphicLayoutEffect.js"),n=require("../jsx-runtime-4cf02145.js");function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}require("../context/GoogleReCaptchaContext.js");var u=["id","onChange","action","language"];function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r,o,n={},i=Object.keys(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var s=function(i){var c=i.id,l=void 0===c?"google-recaptcha-checkbox-container":c,s=i.onChange,p=i.action,b=i.language,y=f(i,u),g=t.useGoogleReCaptcha(),m=g.siteKey,j=g.render,v=g.language,O=e.useRef(null);return o.useIsomorphicLayoutEffect((function(){if(j){var e=document.createElement("div"),t=a(a({sitekey:m,callback:s},(null!=b?b:v)&&{hl:null!=b?b:v}),y);return j(e,p?a(a({},t),{},{action:p}):t),O.current&&O.current.appendChild(e),function(){r.removeGoogleReCaptchaContainer(l)}}}),[j,b,s,l,m,y.size,p,y.theme]),n.jsxRuntimeExports.jsx("div",a({id:l,ref:O},y))};exports.GoogleReCaptchaCheckbox=s,exports.default=s;
/* @license react-google-recaptcha-ultimate v1.1.1 */
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("react"),t=require("../context/useGoogleReCaptcha.js"),r=require("../utils/helpers/removeGoogleReCaptchaContainer.js"),o=require("../utils/hooks/useIsomorphicLayoutEffect.js"),n=require("../jsx-runtime-1bc47fc1.js");function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}require("../context/GoogleReCaptchaContext.js");var u=["id","onChange","action","language"];function c(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,o)}return r}function a(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?c(Object(r),!0).forEach((function(t){l(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):c(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function l(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!==i(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){if(null==e)return{};var r,o,n=function(e,t){if(null==e)return{};var r,o,n={},i=Object.keys(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(o=0;o<i.length;o++)r=i[o],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var s=function(i){var c=i.id,l=void 0===c?"google-recaptcha-checkbox-container":c,s=i.onChange,p=i.action,b=i.language,y=f(i,u),g=t.useGoogleReCaptcha(),m=g.siteKey,j=g.render,v=g.language,O=e.useRef(null);return o.useIsomorphicLayoutEffect((function(){if(j){var e=document.createElement("div"),t=a(a({sitekey:m,callback:s},(null!=b?b:v)&&{hl:null!=b?b:v}),y);return j(e,p?a(a({},t),{},{action:p}):t),O.current&&O.current.appendChild(e),function(){r.removeGoogleReCaptchaContainer(l)}}}),[j,b,s,l,m,y.size,p,y.theme]),n.jsxRuntimeExports.jsx("div",a({id:l,ref:O},y))};exports.GoogleReCaptchaCheckbox=s,exports.default=s;
//# sourceMappingURL=GoogleReCaptchaCheckbox.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
"use strict";var e=require("./GoogleReCaptchaCheckbox.js");require("react"),require("../context/useGoogleReCaptcha.js"),require("../context/GoogleReCaptchaContext.js"),require("../utils/helpers/removeGoogleReCaptchaContainer.js"),require("../utils/hooks/useIsomorphicLayoutEffect.js"),require("../jsx-runtime-4cf02145.js"),exports.GoogleReCaptchaCheckbox=e.GoogleReCaptchaCheckbox;
/* @license react-google-recaptcha-ultimate v1.1.1 */
"use strict";var e=require("./GoogleReCaptchaCheckbox.js");require("react"),require("../context/useGoogleReCaptcha.js"),require("../context/GoogleReCaptchaContext.js"),require("../utils/helpers/removeGoogleReCaptchaContainer.js"),require("../utils/hooks/useIsomorphicLayoutEffect.js"),require("../jsx-runtime-1bc47fc1.js"),exports.GoogleReCaptchaCheckbox=e.GoogleReCaptchaCheckbox;
//# sourceMappingURL=index.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
"use strict";var e=require("react").createContext({googleReCaptcha:{},siteKey:"",language:"",isLoading:!0,executeV3:function(){throw Error("GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")},executeV2Invisible:function(){throw Error("GoogleReCaptchaContext has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")},reset:function(){throw Error("GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")},getResponse:function(){throw Error("GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")},render:function(){throw Error("GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")}}),o=e.Provider,t=e.Consumer;exports.GoogleReCaptchaContext=e,exports.GoogleReCaptchaContextConsumer=t,exports.GoogleReCaptchaContextProvider=o;
//# sourceMappingURL=GoogleReCaptchaContext.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
"use strict";var e=require("react"),t=require("../utils/helpers/checkGoogleReCaptchaInjected.js"),r=require("../utils/helpers/hideGoogleReCaptchaBadge.js"),n=require("../utils/helpers/injectGoogleReCaptchaScript.js"),o=require("../utils/helpers/removeGoogleReCaptchaBadge.js"),i=require("../utils/helpers/removeGoogleReCaptchaContainer.js"),a=require("../utils/helpers/removeGoogleReCaptchaScript.js"),c=require("./GoogleReCaptchaContext.js"),u=require("../jsx-runtime-4cf02145.js");function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),c=new _(n||[]);return o(a,"_invoke",{value:G(e,r,c)}),a}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var v="suspendedStart",d="suspendedYield",y="executing",g="completed",b={};function m(){}function w(){}function j(){}var x={};s(x,a,(function(){return this}));var O=Object.getPrototypeOf,E=O&&O(O(q([])));E&&E!==r&&n.call(E,a)&&(x=E);var L=j.prototype=m.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(o,i,a,c){var u=h(e[o],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function G(t,r,n){var o=v;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=R(c,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=h(t,r,n);if("normal"===l.type){if(o=n.done?g:d,l.arg===b)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=g,n.method="throw",n.arg=l.arg)}}}function R(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,R(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function q(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(l(t)+" is not iterable")}return w.prototype=j,o(L,"constructor",{value:j,configurable:!0}),o(j,"constructor",{value:w,configurable:!0}),w.displayName=s(j,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,j):(e.__proto__=j,s(e,u,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},S(C.prototype),s(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new C(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(L),s(L,u,"Generator"),s(L,a,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=q,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:q(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function v(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function d(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){v(i,n,o,a,c,"next",e)}function c(e){v(i,n,o,a,c,"throw",e)}a(void 0)}))}}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}require("../utils/helpers/generateGoogleReCaptchaHiddenBadgeStyles.js"),require("../utils/helpers/generateGoogleReCaptchaScriptSrc.js");exports.GoogleReCaptchaProvider=function(l){var s=l.type,h=l.siteKey,v=l.language,g=l.scriptProps,b=l.isEnterprise,m=void 0!==b&&b,w=l.host,j=l.children,x=l.explicit,O=l.onLoad,E=l.onError,L=y(e.useState(!0),2),S=L[0],C=L[1],G=y(e.useState(),2),R=G[0],P=G[1];e.useEffect((function(){var e;if(!h)throw new Error("Google ReCaptcha site key not provided");var c=null!==(e=null==g?void 0:g.id)&&void 0!==e?e:"google-recaptcha-script",u=t.checkGoogleReCaptchaInjected(c),l=function(){var e,t=m?null===(e=window.grecaptcha)||void 0===e?void 0:e.enterprise:window.grecaptcha;if(t){if(x||t.ready(d(p().mark((function e(){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(P(t),!O){e.next=4;break}return e.next=4,O(t);case 4:C(!0);case 5:case"end":return e.stop()}}),e)})))),x){var n=f(f({size:"v3"===s||"v2-invisible"===s?"invisible":"normal"},("v3"===s||"v2-invisible"===s)&&{badge:"bottomright"}),{},{sitekey:h},x);if(!u)("v3"===s||"v2-invisible"===s)&&"hidden"===(null==x?void 0:x.badge)&&r.hideGoogleReCaptchaBadge();t.ready(d(p().mark((function e(){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(x.container&&t.render(x.container,n,!!x.inherit),P(t),!O){e.next=5;break}return e.next=5,O(t);case 5:C(!0);case 6:case"end":return e.stop()}}),e)}))))}}else E&&E()};return window.onGoogleReCaptchaLoad=l,u?l():n.injectGoogleReCaptchaScript(f(f(f(f({isEnterprise:m,host:w},("v3"===s||"v2-invisible"===s)&&(null==x?void 0:x.badge)&&{badge:"hidden"===(null==x?void 0:x.badge)?"bottomright":null==x?void 0:x.badge}),v&&{hl:v}),{},{render:("v3"===s||"v2-invisible"===s)&&null!=x&&x.container||"v2-checkbox"===s?"explicit":h},g),{},{onload:l,id:c})),function(){null==R||R.reset(),u||a.removeGoogleReCaptchaScript(c),"v3"!==s&&"v2-invisible"!==s||null!=x&&x.container||null==x||!x.badge?o.removeGoogleReCaptchaBadge():i.removeGoogleReCaptchaContainer("google-recaptcha-container")}}),[m,v,w]);var k=e.useCallback((function(e){if(null==R||!R.execute)throw new Error("Google ReCaptcha has not been loaded");return R.execute(h,{action:e})}),[R]),_=e.useCallback((function(e){if(null==R||!R.execute)throw new Error("Google ReCaptcha has not been loaded");return R.execute(e)}),[R]),q=e.useMemo((function(){return f({googleReCaptcha:R,siteKey:h,isLoading:S,executeV2Invisible:_,executeV3:k,reset:null==R?void 0:R.reset,getResponse:null==R?void 0:R.getResponse,render:null==R?void 0:R.render},v&&{language:v})}),[h,R,S,v]);return u.jsxRuntimeExports.jsx(c.GoogleReCaptchaContextProvider,{value:q,children:j})};
/* @license react-google-recaptcha-ultimate v1.1.1 */
"use strict";var e=require("react"),t=require("../utils/helpers/checkGoogleReCaptchaInjected.js"),r=require("../utils/helpers/hideGoogleReCaptchaBadge.js"),n=require("../utils/helpers/injectGoogleReCaptchaScript.js"),o=require("../utils/helpers/removeGoogleReCaptchaBadge.js"),i=require("../utils/helpers/removeGoogleReCaptchaContainer.js"),a=require("../utils/helpers/removeGoogleReCaptchaScript.js"),c=require("./GoogleReCaptchaContext.js"),u=require("../jsx-runtime-1bc47fc1.js");function l(e){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},l(e)}function s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function f(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?s(Object(r),!0).forEach((function(t){h(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function h(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==l(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===l(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(e,t,r){e[t]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{s({},"")}catch(e){s=function(e,t,r){return e[t]=r}}function f(e,t,r,n){var i=t&&t.prototype instanceof m?t:m,a=Object.create(i.prototype),c=new _(n||[]);return o(a,"_invoke",{value:G(e,r,c)}),a}function h(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=f;var v="suspendedStart",d="suspendedYield",y="executing",g="completed",b={};function m(){}function w(){}function j(){}var x={};s(x,a,(function(){return this}));var O=Object.getPrototypeOf,E=O&&O(O(q([])));E&&E!==r&&n.call(E,a)&&(x=E);var L=j.prototype=m.prototype=Object.create(x);function S(e){["next","throw","return"].forEach((function(t){s(e,t,(function(e){return this._invoke(t,e)}))}))}function C(e,t){function r(o,i,a,c){var u=h(e[o],e,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(f)&&n.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,c)}),(function(e){r("throw",e,a,c)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(e,n){function o(){return new t((function(t,o){r(e,n,t,o)}))}return i=i?i.then(o,o):o()}})}function G(t,r,n){var o=v;return function(i,a){if(o===y)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=R(c,n);if(u){if(u===b)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var l=h(t,r,n);if("normal"===l.type){if(o=n.done?g:d,l.arg===b)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=g,n.method="throw",n.arg=l.arg)}}}function R(t,r){var n=r.method,o=t.iterator[n];if(o===e)return r.delegate=null,"throw"===n&&t.iterator.return&&(r.method="return",r.arg=e,R(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),b;var i=h(o,t.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,b;var a=i.arg;return a?a.done?(r[t.resultName]=a.value,r.next=t.nextLoc,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,b):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,b)}function P(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function k(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function _(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(P,this),this.reset(!0)}function q(t){if(t||""===t){var r=t[a];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return i.next=i}}throw new TypeError(l(t)+" is not iterable")}return w.prototype=j,o(L,"constructor",{value:j,configurable:!0}),o(j,"constructor",{value:w,configurable:!0}),w.displayName=s(j,u,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,j):(e.__proto__=j,s(e,u,"GeneratorFunction")),e.prototype=Object.create(L),e},t.awrap=function(e){return{__await:e}},S(C.prototype),s(C.prototype,c,(function(){return this})),t.AsyncIterator=C,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new C(f(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},S(L),s(L,u,"Generator"),s(L,a,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},t.values=q,_.prototype={constructor:_,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function o(n,o){return c.type="throw",c.arg=t,r.next=n,o&&(r.method="next",r.arg=e),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,b):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),b},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),k(r),b}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;k(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={iterator:q(t),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=e),b}},t}function v(e,t,r,n,o,i,a){try{var c=e[i](a),u=c.value}catch(e){return void r(e)}c.done?t(u):Promise.resolve(u).then(n,o)}function d(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){v(i,n,o,a,c,"next",e)}function c(e){v(i,n,o,a,c,"throw",e)}a(void 0)}))}}function y(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==t);u=!0);}catch(e){l=!0,o=e}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(e,t)||function(e,t){if(!e)return;if("string"==typeof e)return g(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(e,t)}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}require("../utils/helpers/generateGoogleReCaptchaHiddenBadgeStyles.js"),require("../utils/helpers/generateGoogleReCaptchaScriptSrc.js");exports.GoogleReCaptchaProvider=function(l){var s=l.type,h=l.siteKey,v=l.language,g=l.scriptProps,b=l.isEnterprise,m=void 0!==b&&b,w=l.host,j=l.children,x=l.explicit,O=l.onLoad,E=l.onError,L=y(e.useState(!0),2),S=L[0],C=L[1],G=y(e.useState(),2),R=G[0],P=G[1];e.useEffect((function(){var e;if(!h)throw new Error("Google ReCaptcha site key not provided");var c=null!==(e=null==g?void 0:g.id)&&void 0!==e?e:"google-recaptcha-script",u=t.checkGoogleReCaptchaInjected(c),l=function(){var e,t=m?null===(e=window.grecaptcha)||void 0===e?void 0:e.enterprise:window.grecaptcha;if(t){if(x||t.ready(d(p().mark((function e(){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(P(t),!O){e.next=4;break}return e.next=4,O(t);case 4:C(!0);case 5:case"end":return e.stop()}}),e)})))),x){var n=f(f({size:"v3"===s||"v2-invisible"===s?"invisible":"normal"},("v3"===s||"v2-invisible"===s)&&{badge:"bottomright"}),{},{sitekey:h},x);if(!u)("v3"===s||"v2-invisible"===s)&&"hidden"===(null==x?void 0:x.badge)&&r.hideGoogleReCaptchaBadge();t.ready(d(p().mark((function e(){return p().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(x.container&&t.render(x.container,n,!!x.inherit),P(t),!O){e.next=5;break}return e.next=5,O(t);case 5:C(!0);case 6:case"end":return e.stop()}}),e)}))))}}else E&&E()};return window.onGoogleReCaptchaLoad=l,u?l():n.injectGoogleReCaptchaScript(f(f(f(f({isEnterprise:m,host:w},("v3"===s||"v2-invisible"===s)&&(null==x?void 0:x.badge)&&{badge:"hidden"===(null==x?void 0:x.badge)?"bottomright":null==x?void 0:x.badge}),v&&{hl:v}),{},{render:("v3"===s||"v2-invisible"===s)&&null!=x&&x.container||"v2-checkbox"===s?"explicit":h},g),{},{onload:l,id:c})),function(){null==R||R.reset(),u||a.removeGoogleReCaptchaScript(c),"v3"!==s&&"v2-invisible"!==s||null!=x&&x.container||null==x||!x.badge?o.removeGoogleReCaptchaBadge():i.removeGoogleReCaptchaContainer("google-recaptcha-container")}}),[m,v,w]);var k=e.useCallback((function(e){if(null==R||!R.execute)throw new Error("Google ReCaptcha has not been loaded");return R.execute(h,{action:e})}),[R]),_=e.useCallback((function(e){if(null==R||!R.execute)throw new Error("Google ReCaptcha has not been loaded");return R.execute(e)}),[R]),q=e.useMemo((function(){return f({googleReCaptcha:R,siteKey:h,isLoading:S,executeV2Invisible:_,executeV3:k,reset:null==R?void 0:R.reset,getResponse:null==R?void 0:R.getResponse,render:null==R?void 0:R.render},v&&{language:v})}),[h,R,S,v]);return u.jsxRuntimeExports.jsx(c.GoogleReCaptchaContextProvider,{value:q,children:j})};
//# sourceMappingURL=GoogleReCaptchaProvider.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
"use strict";var e=require("./GoogleReCaptchaProvider.js"),r=require("./useGoogleReCaptcha.js"),o=require("./withGoogleReCaptcha.js");require("react"),require("../utils/helpers/checkGoogleReCaptchaInjected.js"),require("../utils/helpers/hideGoogleReCaptchaBadge.js"),require("../utils/helpers/generateGoogleReCaptchaHiddenBadgeStyles.js"),require("../utils/helpers/injectGoogleReCaptchaScript.js"),require("../utils/helpers/generateGoogleReCaptchaScriptSrc.js"),require("../utils/helpers/removeGoogleReCaptchaBadge.js"),require("../utils/helpers/removeGoogleReCaptchaContainer.js"),require("../utils/helpers/removeGoogleReCaptchaScript.js"),require("./GoogleReCaptchaContext.js"),require("../jsx-runtime-4cf02145.js"),exports.GoogleReCaptchaProvider=e.GoogleReCaptchaProvider,exports.useGoogleReCaptcha=r.useGoogleReCaptcha,exports.withGoogleReCaptcha=o.withGoogleReCaptcha;
/* @license react-google-recaptcha-ultimate v1.1.1 */
"use strict";var e=require("./GoogleReCaptchaProvider.js"),r=require("./useGoogleReCaptcha.js"),o=require("./withGoogleReCaptcha.js");require("react"),require("../utils/helpers/checkGoogleReCaptchaInjected.js"),require("../utils/helpers/hideGoogleReCaptchaBadge.js"),require("../utils/helpers/generateGoogleReCaptchaHiddenBadgeStyles.js"),require("../utils/helpers/injectGoogleReCaptchaScript.js"),require("../utils/helpers/generateGoogleReCaptchaScriptSrc.js"),require("../utils/helpers/removeGoogleReCaptchaBadge.js"),require("../utils/helpers/removeGoogleReCaptchaContainer.js"),require("../utils/helpers/removeGoogleReCaptchaScript.js"),require("./GoogleReCaptchaContext.js"),require("../jsx-runtime-1bc47fc1.js"),exports.GoogleReCaptchaProvider=e.GoogleReCaptchaProvider,exports.useGoogleReCaptcha=r.useGoogleReCaptcha,exports.withGoogleReCaptcha=o.withGoogleReCaptcha;
//# sourceMappingURL=index.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
"use strict";var e=require("react"),t=require("./GoogleReCaptchaContext.js");exports.useGoogleReCaptcha=function(){return e.useContext(t.GoogleReCaptchaContext)};
//# sourceMappingURL=useGoogleReCaptcha.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
"use strict";require("react");var e=require("./GoogleReCaptchaContext.js"),t=require("../jsx-runtime-4cf02145.js");function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===r(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}exports.withGoogleReCaptcha=function(r){var n=function(n){return t.jsxRuntimeExports.jsx(e.GoogleReCaptchaContextConsumer,{children:function(e){return t.jsxRuntimeExports.jsx(r,o(o({},n),{},{googleReCaptcha:e}))}})};return n.displayName="withGoogleReCaptcha(".concat(r.displayName||r.name||"Component",")"),n};
/* @license react-google-recaptcha-ultimate v1.1.1 */
"use strict";require("react");var e=require("./GoogleReCaptchaContext.js"),t=require("../jsx-runtime-1bc47fc1.js");function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function o(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?n(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===r(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}exports.withGoogleReCaptcha=function(r){var n=function(n){return t.jsxRuntimeExports.jsx(e.GoogleReCaptchaContextConsumer,{children:function(e){return t.jsxRuntimeExports.jsx(r,o(o({},n),{},{googleReCaptcha:e}))}})};return n.displayName="withGoogleReCaptcha(".concat(r.displayName||r.name||"Component",")"),n};
//# sourceMappingURL=withGoogleReCaptcha.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
"use strict";var e=require("./components/GoogleReCaptchaCheckbox.js"),o=require("./context/GoogleReCaptchaProvider.js"),t=require("./context/useGoogleReCaptcha.js"),r=require("./context/withGoogleReCaptcha.js"),a=require("./utils/helpers/generateGoogleReCaptchaHiddenBadgeStyles.js"),s=require("./utils/helpers/generateGoogleReCaptchaScriptSrc.js");require("react"),require("./utils/helpers/removeGoogleReCaptchaContainer.js"),require("./utils/hooks/useIsomorphicLayoutEffect.js"),require("./jsx-runtime-4cf02145.js"),require("./utils/helpers/checkGoogleReCaptchaInjected.js"),require("./utils/helpers/hideGoogleReCaptchaBadge.js"),require("./utils/helpers/injectGoogleReCaptchaScript.js"),require("./utils/helpers/removeGoogleReCaptchaBadge.js"),require("./utils/helpers/removeGoogleReCaptchaScript.js"),require("./context/GoogleReCaptchaContext.js"),exports.GoogleReCaptchaCheckbox=e.GoogleReCaptchaCheckbox,exports.GoogleReCaptchaProvider=o.GoogleReCaptchaProvider,exports.useGoogleReCaptcha=t.useGoogleReCaptcha,exports.withGoogleReCaptcha=r.withGoogleReCaptcha,exports.generateGoogleReCaptchaHiddenBadgeStyles=a.generateGoogleReCaptchaHiddenBadgeStyles,exports.generateGoogleReCaptchaScriptSrc=s.generateGoogleReCaptchaScriptSrc;
/* @license react-google-recaptcha-ultimate v1.1.1 */
"use strict";var e=require("./components/GoogleReCaptchaCheckbox.js"),o=require("./context/GoogleReCaptchaProvider.js"),t=require("./context/useGoogleReCaptcha.js"),r=require("./context/withGoogleReCaptcha.js"),a=require("./utils/helpers/generateGoogleReCaptchaHiddenBadgeStyles.js"),s=require("./utils/helpers/generateGoogleReCaptchaScriptSrc.js");require("react"),require("./utils/helpers/removeGoogleReCaptchaContainer.js"),require("./utils/hooks/useIsomorphicLayoutEffect.js"),require("./jsx-runtime-1bc47fc1.js"),require("./utils/helpers/checkGoogleReCaptchaInjected.js"),require("./utils/helpers/hideGoogleReCaptchaBadge.js"),require("./utils/helpers/injectGoogleReCaptchaScript.js"),require("./utils/helpers/removeGoogleReCaptchaBadge.js"),require("./utils/helpers/removeGoogleReCaptchaScript.js"),require("./context/GoogleReCaptchaContext.js"),exports.GoogleReCaptchaCheckbox=e.GoogleReCaptchaCheckbox,exports.GoogleReCaptchaProvider=o.GoogleReCaptchaProvider,exports.useGoogleReCaptcha=t.useGoogleReCaptcha,exports.withGoogleReCaptcha=r.withGoogleReCaptcha,exports.generateGoogleReCaptchaHiddenBadgeStyles=a.generateGoogleReCaptchaHiddenBadgeStyles,exports.generateGoogleReCaptchaScriptSrc=s.generateGoogleReCaptchaScriptSrc;
//# sourceMappingURL=index.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
"use strict";exports.checkGoogleReCaptchaInjected=function(c){return!!document.querySelector("#".concat(c))||!!document.querySelector('script[src*="/recaptcha/"]:not([src*="gstatic"])')};
//# sourceMappingURL=checkGoogleReCaptchaInjected.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
"use strict";exports.generateGoogleReCaptchaHiddenBadgeStyles=function(){return".grecaptcha-badge{display: none !important;}"};
//# sourceMappingURL=generateGoogleReCaptchaHiddenBadgeStyles.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
"use strict";function e(r){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(r)}function r(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function t(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?r(Object(o),!0).forEach((function(r){n(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}function n(r,t,n){return(t=function(r){var t=function(r,t){if("object"!==e(r)||null===r)return r;var n=r[Symbol.toPrimitive];if(void 0!==n){var o=n.call(r,t||"default");if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(r)}(r,"string");return"symbol"===e(t)?t:String(t)}(t))in r?Object.defineProperty(r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[t]=n,r}exports.generateGoogleReCaptchaScriptSrc=function(e){var r=e.host,n=void 0===r?"google.com":r,o=e.isEnterprise,c=e.render,i=e.hl,u=e.badge,a=new URLSearchParams(t(t(t({},i&&{hl:i}),u&&{badge:u}),{},{render:c})),p=o?"enterprise.js":"api.js";return"https://www.".concat(n,"/recaptcha/").concat(p,"?").concat(a)};
/* @license react-google-recaptcha-ultimate v1.1.1 */
"use strict";function e(r){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e(r)}function r(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);r&&(n=n.filter((function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable}))),t.push.apply(t,n)}return t}function t(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?r(Object(o),!0).forEach((function(r){n(e,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(o,r))}))}return e}function n(r,t,n){return(t=function(r){var t=function(r,t){if("object"!==e(r)||null===r)return r;var n=r[Symbol.toPrimitive];if(void 0!==n){var o=n.call(r,t||"default");if("object"!==e(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(r)}(r,"string");return"symbol"===e(t)?t:String(t)}(t))in r?Object.defineProperty(r,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):r[t]=n,r}exports.generateGoogleReCaptchaScriptSrc=function(e){var r=e.host,n=void 0===r?"google.com":r,o=e.isEnterprise,i=void 0!==o&&o,c=e.render,u=e.hl,a=e.badge,p=new URLSearchParams(t(t(t({},u&&{hl:u}),a&&{badge:a}),{},{render:c})),b=i?"enterprise.js":"api.js";return"https://www.".concat(n,"/recaptcha/").concat(b,"?").concat(p)};
//# sourceMappingURL=generateGoogleReCaptchaScriptSrc.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
"use strict";var e=require("./generateGoogleReCaptchaHiddenBadgeStyles.js");exports.hideGoogleReCaptchaBadge=function(){var t=document.createElement("style");t.innerHTML=e.generateGoogleReCaptchaHiddenBadgeStyles(),document.body.appendChild(t)};
//# sourceMappingURL=hideGoogleReCaptchaBadge.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
"use strict";var e=require("./checkGoogleReCaptchaInjected.js"),o=require("./generateGoogleReCaptchaHiddenBadgeStyles.js"),a=require("./generateGoogleReCaptchaScriptSrc.js"),t=require("./hideGoogleReCaptchaBadge.js"),r=require("./injectGoogleReCaptchaScript.js"),c=require("./removeGoogleReCaptchaBadge.js"),p=require("./removeGoogleReCaptchaContainer.js"),g=require("./removeGoogleReCaptchaScript.js");exports.checkGoogleReCaptchaInjected=e.checkGoogleReCaptchaInjected,exports.generateGoogleReCaptchaHiddenBadgeStyles=o.generateGoogleReCaptchaHiddenBadgeStyles,exports.generateGoogleReCaptchaScriptSrc=a.generateGoogleReCaptchaScriptSrc,exports.hideGoogleReCaptchaBadge=t.hideGoogleReCaptchaBadge,exports.injectGoogleReCaptchaScript=r.injectGoogleReCaptchaScript,exports.removeGoogleReCaptchaBadge=c.removeGoogleReCaptchaBadge,exports.removeGoogleReCaptchaContainer=p.removeGoogleReCaptchaContainer,exports.GSTATIC_URL=g.GSTATIC_URL,exports.removeGoogleReCaptchaScript=g.removeGoogleReCaptchaScript;
//# sourceMappingURL=index.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
"use strict";var r=require("./generateGoogleReCaptchaScriptSrc.js"),e=["onload","appendTo","isEnterprise","host","render","badge","hl"];function t(r,e){return function(r){if(Array.isArray(r))return r}(r)||function(r,e){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var n,o,i,a,l=[],u=!0,c=!1;try{if(i=(t=t.call(r)).next,0===e){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=i.call(t)).done)&&(l.push(n.value),l.length!==e);u=!0);}catch(r){c=!0,o=r}finally{try{if(!u&&null!=t.return&&(a=t.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(r,e)||function(r,e){if(!r)return;if("string"==typeof r)return n(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);"Object"===t&&r.constructor&&(t=r.constructor.name);if("Map"===t||"Set"===t)return Array.from(r);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n(r,e)}(r,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function o(r,e){if(null==r)return{};var t,n,o=function(r,e){if(null==r)return{};var t,n,o={},i=Object.keys(r);for(n=0;n<i.length;n++)t=i[n],e.indexOf(t)>=0||(o[t]=r[t]);return o}(r,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(n=0;n<i.length;n++)t=i[n],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(r,t)&&(o[t]=r[t])}return o}exports.injectGoogleReCaptchaScript=function(n){var i=n.onload,a=n.appendTo,l=void 0===a?"head":a,u=n.isEnterprise,c=void 0!==u&&u,f=n.host,s=n.render,p=n.badge,d=n.hl,y=o(n,e),b=r.generateGoogleReCaptchaScriptSrc({host:f,isEnterprise:c,render:s,hl:d,badge:p}),h=document.createElement("script");Object.entries(y).forEach((function(r){var e,n=t(r,2),o=n[0],i=n[1];h.setAttribute(o,null!==(e=null==i?void 0:i.toString())&&void 0!==e?e:"")})),h.src=b,h.onload=i,document[l].appendChild(h)};
//# sourceMappingURL=injectGoogleReCaptchaScript.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
"use strict";exports.removeGoogleReCaptchaBadge=function(){var e=document.querySelector(".grecaptcha-badge");e&&e.parentNode&&document.body.removeChild(e.parentNode)};
//# sourceMappingURL=removeGoogleReCaptchaBadge.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
"use strict";exports.removeGoogleReCaptchaContainer=function(e){var t=document.getElementById(e);if(t)for(;t.lastChild;)t.lastChild.remove()};
//# sourceMappingURL=removeGoogleReCaptchaContainer.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
"use strict";var e="https://www.gstatic.com/recaptcha/releases";exports.GSTATIC_URL=e,exports.removeGoogleReCaptchaScript=function(c){window.___grecaptcha_cfg=void 0;var t=document.querySelector("#".concat(c));t&&t.remove();var r=document.querySelector('script[src^="'.concat(e,'"]'));r&&r.remove()};
//# sourceMappingURL=removeGoogleReCaptchaScript.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
"use strict";var e=require("./useIsomorphicLayoutEffect.js");require("react"),exports.useIsomorphicLayoutEffect=e.useIsomorphicLayoutEffect;
//# sourceMappingURL=index.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
"use strict";var e=require("react"),t="undefined"!=typeof window?e.useLayoutEffect:e.useEffect;exports.useIsomorphicLayoutEffect=t;
//# sourceMappingURL=useIsomorphicLayoutEffect.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
"use strict";var e=require("./helpers/checkGoogleReCaptchaInjected.js"),o=require("./helpers/generateGoogleReCaptchaHiddenBadgeStyles.js"),r=require("./helpers/generateGoogleReCaptchaScriptSrc.js"),a=require("./helpers/hideGoogleReCaptchaBadge.js"),t=require("./helpers/injectGoogleReCaptchaScript.js"),c=require("./helpers/removeGoogleReCaptchaBadge.js"),p=require("./helpers/removeGoogleReCaptchaContainer.js"),h=require("./helpers/removeGoogleReCaptchaScript.js"),s=require("./hooks/useIsomorphicLayoutEffect.js"),g=require("./types/index.js");require("react"),exports.checkGoogleReCaptchaInjected=e.checkGoogleReCaptchaInjected,exports.generateGoogleReCaptchaHiddenBadgeStyles=o.generateGoogleReCaptchaHiddenBadgeStyles,exports.generateGoogleReCaptchaScriptSrc=r.generateGoogleReCaptchaScriptSrc,exports.hideGoogleReCaptchaBadge=a.hideGoogleReCaptchaBadge,exports.injectGoogleReCaptchaScript=t.injectGoogleReCaptchaScript,exports.removeGoogleReCaptchaBadge=c.removeGoogleReCaptchaBadge,exports.removeGoogleReCaptchaContainer=p.removeGoogleReCaptchaContainer,exports.GSTATIC_URL=h.GSTATIC_URL,exports.removeGoogleReCaptchaScript=h.removeGoogleReCaptchaScript,exports.useIsomorphicLayoutEffect=s.useIsomorphicLayoutEffect,exports.GoogleReCaptcha=g.GoogleReCaptcha;
//# sourceMappingURL=index.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
"use strict";exports.GoogleReCaptcha=undefined;
//# sourceMappingURL=index.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
import e from"react";import{useGoogleReCaptcha as t}from"../context/useGoogleReCaptcha.js";import{removeGoogleReCaptchaContainer as r}from"../utils/helpers/removeGoogleReCaptchaContainer.js";import{useIsomorphicLayoutEffect as n}from"../utils/hooks/useIsomorphicLayoutEffect.js";import{j as o}from"../jsx-runtime-93ea8bed.js";import"../context/GoogleReCaptchaContext.js";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var c=["id","onChange","action","language"];function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=function(i){var u=i.id,a=void 0===u?"google-recaptcha-checkbox-container":u,p=i.onChange,s=i.action,b=i.language,m=f(i,c),y=t(),g=y.siteKey,j=y.render,O=y.language,v=e.useRef(null);return n((function(){if(j){var e=document.createElement("div"),t=l(l({sitekey:g,callback:p},(null!=b?b:O)&&{hl:null!=b?b:O}),m);return j(e,s?l(l({},t),{},{action:s}):t),v.current&&v.current.appendChild(e),function(){r(a)}}}),[j,b,p,a,g,m.size,s,m.theme]),o.jsx("div",l({id:a,ref:v},m))};export{p as GoogleReCaptchaCheckbox,p as default};
/* @license react-google-recaptcha-ultimate v1.1.1 */
import e from"react";import{useGoogleReCaptcha as t}from"../context/useGoogleReCaptcha.js";import{removeGoogleReCaptchaContainer as r}from"../utils/helpers/removeGoogleReCaptchaContainer.js";import{useIsomorphicLayoutEffect as n}from"../utils/hooks/useIsomorphicLayoutEffect.js";import{j as o}from"../jsx-runtime-e05e946c.js";import"../context/GoogleReCaptchaContext.js";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}var c=["id","onChange","action","language"];function u(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function l(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?u(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):u(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function a(e,t,r){return(t=function(e){var t=function(e,t){if("object"!==i(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==i(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===i(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function f(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var p=function(i){var u=i.id,a=void 0===u?"google-recaptcha-checkbox-container":u,p=i.onChange,s=i.action,b=i.language,m=f(i,c),y=t(),g=y.siteKey,j=y.render,O=y.language,v=e.useRef(null);return n((function(){if(j){var e=document.createElement("div"),t=l(l({sitekey:g,callback:p},(null!=b?b:O)&&{hl:null!=b?b:O}),m);return j(e,s?l(l({},t),{},{action:s}):t),v.current&&v.current.appendChild(e),function(){r(a)}}}),[j,b,p,a,g,m.size,s,m.theme]),o.jsx("div",l({id:a,ref:v},m))};export{p as GoogleReCaptchaCheckbox,p as default};
//# sourceMappingURL=GoogleReCaptchaCheckbox.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
export{GoogleReCaptchaCheckbox}from"./GoogleReCaptchaCheckbox.js";import"react";import"../context/useGoogleReCaptcha.js";import"../context/GoogleReCaptchaContext.js";import"../utils/helpers/removeGoogleReCaptchaContainer.js";import"../utils/hooks/useIsomorphicLayoutEffect.js";import"../jsx-runtime-93ea8bed.js";
/* @license react-google-recaptcha-ultimate v1.1.1 */
export{GoogleReCaptchaCheckbox}from"./GoogleReCaptchaCheckbox.js";import"react";import"../context/useGoogleReCaptcha.js";import"../context/GoogleReCaptchaContext.js";import"../utils/helpers/removeGoogleReCaptchaContainer.js";import"../utils/hooks/useIsomorphicLayoutEffect.js";import"../jsx-runtime-e05e946c.js";
//# sourceMappingURL=index.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
import{createContext as e}from"react";var o=e({googleReCaptcha:{},siteKey:"",language:"",isLoading:!0,executeV3:function(){throw Error("GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")},executeV2Invisible:function(){throw Error("GoogleReCaptchaContext has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")},reset:function(){throw Error("GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")},getResponse:function(){throw Error("GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")},render:function(){throw Error("GoogleReCaptcha Context has not yet been implemented, if you are using useGoogleReCaptcha hook, make sure the hook is called inside component wrapped by GoogleRecaptchaProvider")}}),t=o.Provider,a=o.Consumer;export{o as GoogleReCaptchaContext,a as GoogleReCaptchaContextConsumer,t as GoogleReCaptchaContextProvider};
//# sourceMappingURL=GoogleReCaptchaContext.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
import t from"react";import{checkGoogleReCaptchaInjected as e}from"../utils/helpers/checkGoogleReCaptchaInjected.js";import{hideGoogleReCaptchaBadge as r}from"../utils/helpers/hideGoogleReCaptchaBadge.js";import{injectGoogleReCaptchaScript as n}from"../utils/helpers/injectGoogleReCaptchaScript.js";import{removeGoogleReCaptchaBadge as o}from"../utils/helpers/removeGoogleReCaptchaBadge.js";import{removeGoogleReCaptchaContainer as i}from"../utils/helpers/removeGoogleReCaptchaContainer.js";import{removeGoogleReCaptchaScript as a}from"../utils/helpers/removeGoogleReCaptchaScript.js";import{GoogleReCaptchaContextProvider as c}from"./GoogleReCaptchaContext.js";import{j as u}from"../jsx-runtime-93ea8bed.js";import"../utils/helpers/generateGoogleReCaptchaHiddenBadgeStyles.js";import"../utils/helpers/generateGoogleReCaptchaScriptSrc.js";function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function h(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==l(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===l(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new _(n||[]);return o(a,"_invoke",{value:P(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var v="suspendedStart",y="suspendedYield",d="executing",g="completed",m={};function b(){}function w(){}function j(){}var x={};s(x,a,(function(){return this}));var O=Object.getPrototypeOf,E=O&&O(O(N([])));E&&E!==r&&n.call(E,a)&&(x=E);var L=j.prototype=b.prototype=Object.create(x);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function G(t,e){function r(o,i,a,c){var u=h(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function P(e,r,n){var o=v;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=h(e,r,n);if("normal"===l.type){if(o=n.done?g:y,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=g,n.method="throw",n.arg=l.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(l(e)+" is not iterable")}return w.prototype=j,o(L,"constructor",{value:j,configurable:!0}),o(j,"constructor",{value:w,configurable:!0}),w.displayName=s(j,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,j):(t.__proto__=j,s(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},S(G.prototype),s(G.prototype,c,(function(){return this})),e.AsyncIterator=G,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new G(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(L),s(L,u,"Generator"),s(L,a,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(R),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;R(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function v(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function y(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){v(i,n,o,a,c,"next",t)}function c(t){v(i,n,o,a,c,"throw",t)}a(void 0)}))}}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var m=function(l){var s=l.type,h=l.siteKey,v=l.language,g=l.scriptProps,m=l.isEnterprise,b=void 0!==m&&m,w=l.host,j=l.children,x=l.explicit,O=l.onLoad,E=l.onError,L=d(t.useState(!0),2),S=L[0],G=L[1],P=d(t.useState(),2),k=P[0],C=P[1];t.useEffect((function(){var t;if(!h)throw new Error("Google ReCaptcha site key not provided");var c=null!==(t=null==g?void 0:g.id)&&void 0!==t?t:"google-recaptcha-script",u=e(c),l=function(){var t,e=b?null===(t=window.grecaptcha)||void 0===t?void 0:t.enterprise:window.grecaptcha;if(e){if(x||e.ready(y(p().mark((function t(){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(C(e),!O){t.next=4;break}return t.next=4,O(e);case 4:G(!0);case 5:case"end":return t.stop()}}),t)})))),x){var n=f(f({size:"v3"===s||"v2-invisible"===s?"invisible":"normal"},("v3"===s||"v2-invisible"===s)&&{badge:"bottomright"}),{},{sitekey:h},x);if(!u)("v3"===s||"v2-invisible"===s)&&"hidden"===(null==x?void 0:x.badge)&&r();e.ready(y(p().mark((function t(){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(x.container&&e.render(x.container,n,!!x.inherit),C(e),!O){t.next=5;break}return t.next=5,O(e);case 5:G(!0);case 6:case"end":return t.stop()}}),t)}))))}}else E&&E()};return window.onGoogleReCaptchaLoad=l,u?l():n(f(f(f(f({isEnterprise:b,host:w},("v3"===s||"v2-invisible"===s)&&(null==x?void 0:x.badge)&&{badge:"hidden"===(null==x?void 0:x.badge)?"bottomright":null==x?void 0:x.badge}),v&&{hl:v}),{},{render:("v3"===s||"v2-invisible"===s)&&null!=x&&x.container||"v2-checkbox"===s?"explicit":h},g),{},{onload:l,id:c})),function(){null==k||k.reset(),u||a(c),"v3"!==s&&"v2-invisible"!==s||null!=x&&x.container||null==x||!x.badge?o():i("google-recaptcha-container")}}),[b,v,w]);var R=t.useCallback((function(t){if(null==k||!k.execute)throw new Error("Google ReCaptcha has not been loaded");return k.execute(h,{action:t})}),[k]),_=t.useCallback((function(t){if(null==k||!k.execute)throw new Error("Google ReCaptcha has not been loaded");return k.execute(t)}),[k]),N=t.useMemo((function(){return f({googleReCaptcha:k,siteKey:h,isLoading:S,executeV2Invisible:_,executeV3:R,reset:null==k?void 0:k.reset,getResponse:null==k?void 0:k.getResponse,render:null==k?void 0:k.render},v&&{language:v})}),[h,k,S,v]);return u.jsx(c,{value:N,children:j})};export{m as GoogleReCaptchaProvider};
/* @license react-google-recaptcha-ultimate v1.1.1 */
import t from"react";import{checkGoogleReCaptchaInjected as e}from"../utils/helpers/checkGoogleReCaptchaInjected.js";import{hideGoogleReCaptchaBadge as r}from"../utils/helpers/hideGoogleReCaptchaBadge.js";import{injectGoogleReCaptchaScript as n}from"../utils/helpers/injectGoogleReCaptchaScript.js";import{removeGoogleReCaptchaBadge as o}from"../utils/helpers/removeGoogleReCaptchaBadge.js";import{removeGoogleReCaptchaContainer as i}from"../utils/helpers/removeGoogleReCaptchaContainer.js";import{removeGoogleReCaptchaScript as a}from"../utils/helpers/removeGoogleReCaptchaScript.js";import{GoogleReCaptchaContextProvider as c}from"./GoogleReCaptchaContext.js";import{j as u}from"../jsx-runtime-e05e946c.js";import"../utils/helpers/generateGoogleReCaptchaHiddenBadgeStyles.js";import"../utils/helpers/generateGoogleReCaptchaScriptSrc.js";function l(t){return l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l(t)}function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function f(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){h(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}function h(t,e,r){return(e=function(t){var e=function(t,e){if("object"!==l(t)||null===t)return t;var r=t[Symbol.toPrimitive];if(void 0!==r){var n=r.call(t,e||"default");if("object"!==l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===l(e)?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function p(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */p=function(){return e};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function s(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{s({},"")}catch(t){s=function(t,e,r){return t[e]=r}}function f(t,e,r,n){var i=e&&e.prototype instanceof b?e:b,a=Object.create(i.prototype),c=new _(n||[]);return o(a,"_invoke",{value:P(t,r,c)}),a}function h(t,e,r){try{return{type:"normal",arg:t.call(e,r)}}catch(t){return{type:"throw",arg:t}}}e.wrap=f;var v="suspendedStart",y="suspendedYield",d="executing",g="completed",m={};function b(){}function w(){}function j(){}var x={};s(x,a,(function(){return this}));var O=Object.getPrototypeOf,E=O&&O(O(N([])));E&&E!==r&&n.call(E,a)&&(x=E);var L=j.prototype=b.prototype=Object.create(x);function S(t){["next","throw","return"].forEach((function(e){s(t,e,(function(t){return this._invoke(e,t)}))}))}function G(t,e){function r(o,i,a,c){var u=h(t[o],t,i);if("throw"!==u.type){var s=u.arg,f=s.value;return f&&"object"==l(f)&&n.call(f,"__await")?e.resolve(f.__await).then((function(t){r("next",t,a,c)}),(function(t){r("throw",t,a,c)})):e.resolve(f).then((function(t){s.value=t,a(s)}),(function(t){return r("throw",t,a,c)}))}c(u.arg)}var i;o(this,"_invoke",{value:function(t,n){function o(){return new e((function(e,o){r(t,n,e,o)}))}return i=i?i.then(o,o):o()}})}function P(e,r,n){var o=v;return function(i,a){if(o===d)throw new Error("Generator is already running");if(o===g){if("throw"===i)throw a;return{value:t,done:!0}}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=k(c,n);if(u){if(u===m)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=d;var l=h(e,r,n);if("normal"===l.type){if(o=n.done?g:y,l.arg===m)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(o=g,n.method="throw",n.arg=l.arg)}}}function k(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,k(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),m;var i=h(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,m;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,m):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,m)}function C(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function R(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function _(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(C,this),this.reset(!0)}function N(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(n.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(l(e)+" is not iterable")}return w.prototype=j,o(L,"constructor",{value:j,configurable:!0}),o(j,"constructor",{value:w,configurable:!0}),w.displayName=s(j,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===w||"GeneratorFunction"===(e.displayName||e.name))},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,j):(t.__proto__=j,s(t,u,"GeneratorFunction")),t.prototype=Object.create(L),t},e.awrap=function(t){return{__await:t}},S(G.prototype),s(G.prototype,c,(function(){return this})),e.AsyncIterator=G,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new G(f(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},S(L),s(L,u,"Generator"),s(L,a,(function(){return this})),s(L,"toString",(function(){return"[object Generator]"})),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function t(){for(;r.length;){var n=r.pop();if(n in e)return t.value=n,t.done=!1,t}return t.done=!0,t}},e.values=N,_.prototype={constructor:_,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(R),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function o(n,o){return c.type="throw",c.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],c=a.completion;if("root"===a.tryLoc)return o("end");if(a.tryLoc<=this.prev){var u=n.call(a,"catchLoc"),l=n.call(a,"finallyLoc");if(u&&l){if(this.prev<a.catchLoc)return o(a.catchLoc,!0);if(this.prev<a.finallyLoc)return o(a.finallyLoc)}else if(u){if(this.prev<a.catchLoc)return o(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return o(a.finallyLoc)}}}},abrupt:function(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),R(r),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;R(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:N(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),m}},e}function v(t,e,r,n,o,i,a){try{var c=t[i](a),u=c.value}catch(t){return void r(t)}c.done?e(u):Promise.resolve(u).then(n,o)}function y(t){return function(){var e=this,r=arguments;return new Promise((function(n,o){var i=t.apply(e,r);function a(t){v(i,n,o,a,c,"next",t)}function c(t){v(i,n,o,a,c,"throw",t)}a(void 0)}))}}function d(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var r=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=r){var n,o,i,a,c=[],u=!0,l=!1;try{if(i=(r=r.call(t)).next,0===e){if(Object(r)!==r)return;u=!1}else for(;!(u=(n=i.call(r)).done)&&(c.push(n.value),c.length!==e);u=!0);}catch(t){l=!0,o=t}finally{try{if(!u&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(l)throw o}}return c}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return g(t,e);var r=Object.prototype.toString.call(t).slice(8,-1);"Object"===r&&t.constructor&&(r=t.constructor.name);if("Map"===r||"Set"===r)return Array.from(t);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return g(t,e)}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function g(t,e){(null==e||e>t.length)&&(e=t.length);for(var r=0,n=new Array(e);r<e;r++)n[r]=t[r];return n}var m=function(l){var s=l.type,h=l.siteKey,v=l.language,g=l.scriptProps,m=l.isEnterprise,b=void 0!==m&&m,w=l.host,j=l.children,x=l.explicit,O=l.onLoad,E=l.onError,L=d(t.useState(!0),2),S=L[0],G=L[1],P=d(t.useState(),2),k=P[0],C=P[1];t.useEffect((function(){var t;if(!h)throw new Error("Google ReCaptcha site key not provided");var c=null!==(t=null==g?void 0:g.id)&&void 0!==t?t:"google-recaptcha-script",u=e(c),l=function(){var t,e=b?null===(t=window.grecaptcha)||void 0===t?void 0:t.enterprise:window.grecaptcha;if(e){if(x||e.ready(y(p().mark((function t(){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(C(e),!O){t.next=4;break}return t.next=4,O(e);case 4:G(!0);case 5:case"end":return t.stop()}}),t)})))),x){var n=f(f({size:"v3"===s||"v2-invisible"===s?"invisible":"normal"},("v3"===s||"v2-invisible"===s)&&{badge:"bottomright"}),{},{sitekey:h},x);if(!u)("v3"===s||"v2-invisible"===s)&&"hidden"===(null==x?void 0:x.badge)&&r();e.ready(y(p().mark((function t(){return p().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(x.container&&e.render(x.container,n,!!x.inherit),C(e),!O){t.next=5;break}return t.next=5,O(e);case 5:G(!0);case 6:case"end":return t.stop()}}),t)}))))}}else E&&E()};return window.onGoogleReCaptchaLoad=l,u?l():n(f(f(f(f({isEnterprise:b,host:w},("v3"===s||"v2-invisible"===s)&&(null==x?void 0:x.badge)&&{badge:"hidden"===(null==x?void 0:x.badge)?"bottomright":null==x?void 0:x.badge}),v&&{hl:v}),{},{render:("v3"===s||"v2-invisible"===s)&&null!=x&&x.container||"v2-checkbox"===s?"explicit":h},g),{},{onload:l,id:c})),function(){null==k||k.reset(),u||a(c),"v3"!==s&&"v2-invisible"!==s||null!=x&&x.container||null==x||!x.badge?o():i("google-recaptcha-container")}}),[b,v,w]);var R=t.useCallback((function(t){if(null==k||!k.execute)throw new Error("Google ReCaptcha has not been loaded");return k.execute(h,{action:t})}),[k]),_=t.useCallback((function(t){if(null==k||!k.execute)throw new Error("Google ReCaptcha has not been loaded");return k.execute(t)}),[k]),N=t.useMemo((function(){return f({googleReCaptcha:k,siteKey:h,isLoading:S,executeV2Invisible:_,executeV3:R,reset:null==k?void 0:k.reset,getResponse:null==k?void 0:k.getResponse,render:null==k?void 0:k.render},v&&{language:v})}),[h,k,S,v]);return u.jsx(c,{value:N,children:j})};export{m as GoogleReCaptchaProvider};
//# sourceMappingURL=GoogleReCaptchaProvider.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
export{GoogleReCaptchaProvider}from"./GoogleReCaptchaProvider.js";export{useGoogleReCaptcha}from"./useGoogleReCaptcha.js";export{withGoogleReCaptcha}from"./withGoogleReCaptcha.js";import"react";import"../utils/helpers/checkGoogleReCaptchaInjected.js";import"../utils/helpers/hideGoogleReCaptchaBadge.js";import"../utils/helpers/generateGoogleReCaptchaHiddenBadgeStyles.js";import"../utils/helpers/injectGoogleReCaptchaScript.js";import"../utils/helpers/generateGoogleReCaptchaScriptSrc.js";import"../utils/helpers/removeGoogleReCaptchaBadge.js";import"../utils/helpers/removeGoogleReCaptchaContainer.js";import"../utils/helpers/removeGoogleReCaptchaScript.js";import"./GoogleReCaptchaContext.js";import"../jsx-runtime-93ea8bed.js";
/* @license react-google-recaptcha-ultimate v1.1.1 */
export{GoogleReCaptchaProvider}from"./GoogleReCaptchaProvider.js";export{useGoogleReCaptcha}from"./useGoogleReCaptcha.js";export{withGoogleReCaptcha}from"./withGoogleReCaptcha.js";import"react";import"../utils/helpers/checkGoogleReCaptchaInjected.js";import"../utils/helpers/hideGoogleReCaptchaBadge.js";import"../utils/helpers/generateGoogleReCaptchaHiddenBadgeStyles.js";import"../utils/helpers/injectGoogleReCaptchaScript.js";import"../utils/helpers/generateGoogleReCaptchaScriptSrc.js";import"../utils/helpers/removeGoogleReCaptchaBadge.js";import"../utils/helpers/removeGoogleReCaptchaContainer.js";import"../utils/helpers/removeGoogleReCaptchaScript.js";import"./GoogleReCaptchaContext.js";import"../jsx-runtime-e05e946c.js";
//# sourceMappingURL=index.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
import t from"react";import{GoogleReCaptchaContext as o}from"./GoogleReCaptchaContext.js";var r=function(){return t.useContext(o)};export{r as useGoogleReCaptcha};
//# sourceMappingURL=useGoogleReCaptcha.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
import"react";import{GoogleReCaptchaContextConsumer as t}from"./GoogleReCaptchaContext.js";import{j as r}from"../jsx-runtime-93ea8bed.js";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function o(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,o)}return e}function n(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?o(Object(e),!0).forEach((function(r){i(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):o(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function i(t,r,o){return(r=function(t){var r=function(t,r){if("object"!==e(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,r||"default");if("object"!==e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===e(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}var c=function(e){var o=function(o){return r.jsx(t,{children:function(t){return r.jsx(e,n(n({},o),{},{googleReCaptcha:t}))}})};return o.displayName="withGoogleReCaptcha(".concat(e.displayName||e.name||"Component",")"),o};export{c as withGoogleReCaptcha};
/* @license react-google-recaptcha-ultimate v1.1.1 */
import"react";import{GoogleReCaptchaContextConsumer as t}from"./GoogleReCaptchaContext.js";import{j as r}from"../jsx-runtime-e05e946c.js";function e(t){return e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},e(t)}function o(t,r){var e=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);r&&(o=o.filter((function(r){return Object.getOwnPropertyDescriptor(t,r).enumerable}))),e.push.apply(e,o)}return e}function n(t){for(var r=1;r<arguments.length;r++){var e=null!=arguments[r]?arguments[r]:{};r%2?o(Object(e),!0).forEach((function(r){i(t,r,e[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(e)):o(Object(e)).forEach((function(r){Object.defineProperty(t,r,Object.getOwnPropertyDescriptor(e,r))}))}return t}function i(t,r,o){return(r=function(t){var r=function(t,r){if("object"!==e(t)||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var n=o.call(t,r||"default");if("object"!==e(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===r?String:Number)(t)}(t,"string");return"symbol"===e(r)?r:String(r)}(r))in t?Object.defineProperty(t,r,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[r]=o,t}var c=function(e){var o=function(o){return r.jsx(t,{children:function(t){return r.jsx(e,n(n({},o),{},{googleReCaptcha:t}))}})};return o.displayName="withGoogleReCaptcha(".concat(e.displayName||e.name||"Component",")"),o};export{c as withGoogleReCaptcha};
//# sourceMappingURL=withGoogleReCaptcha.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
export{GoogleReCaptchaCheckbox}from"./components/GoogleReCaptchaCheckbox.js";export{GoogleReCaptchaProvider}from"./context/GoogleReCaptchaProvider.js";export{useGoogleReCaptcha}from"./context/useGoogleReCaptcha.js";export{withGoogleReCaptcha}from"./context/withGoogleReCaptcha.js";export{generateGoogleReCaptchaHiddenBadgeStyles}from"./utils/helpers/generateGoogleReCaptchaHiddenBadgeStyles.js";export{generateGoogleReCaptchaScriptSrc}from"./utils/helpers/generateGoogleReCaptchaScriptSrc.js";import"react";import"./utils/helpers/removeGoogleReCaptchaContainer.js";import"./utils/hooks/useIsomorphicLayoutEffect.js";import"./jsx-runtime-93ea8bed.js";import"./utils/helpers/checkGoogleReCaptchaInjected.js";import"./utils/helpers/hideGoogleReCaptchaBadge.js";import"./utils/helpers/injectGoogleReCaptchaScript.js";import"./utils/helpers/removeGoogleReCaptchaBadge.js";import"./utils/helpers/removeGoogleReCaptchaScript.js";import"./context/GoogleReCaptchaContext.js";
/* @license react-google-recaptcha-ultimate v1.1.1 */
export{GoogleReCaptchaCheckbox}from"./components/GoogleReCaptchaCheckbox.js";export{GoogleReCaptchaProvider}from"./context/GoogleReCaptchaProvider.js";export{useGoogleReCaptcha}from"./context/useGoogleReCaptcha.js";export{withGoogleReCaptcha}from"./context/withGoogleReCaptcha.js";export{generateGoogleReCaptchaHiddenBadgeStyles}from"./utils/helpers/generateGoogleReCaptchaHiddenBadgeStyles.js";export{generateGoogleReCaptchaScriptSrc}from"./utils/helpers/generateGoogleReCaptchaScriptSrc.js";import"react";import"./utils/helpers/removeGoogleReCaptchaContainer.js";import"./utils/hooks/useIsomorphicLayoutEffect.js";import"./jsx-runtime-e05e946c.js";import"./utils/helpers/checkGoogleReCaptchaInjected.js";import"./utils/helpers/hideGoogleReCaptchaBadge.js";import"./utils/helpers/injectGoogleReCaptchaScript.js";import"./utils/helpers/removeGoogleReCaptchaBadge.js";import"./utils/helpers/removeGoogleReCaptchaScript.js";import"./context/GoogleReCaptchaContext.js";
//# sourceMappingURL=index.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
var c=function(c){return!!document.querySelector("#".concat(c))||!!document.querySelector('script[src*="/recaptcha/"]:not([src*="gstatic"])')};export{c as checkGoogleReCaptchaInjected};
//# sourceMappingURL=checkGoogleReCaptchaInjected.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
var a=function(){return".grecaptcha-badge{display: none !important;}"};export{a as generateGoogleReCaptchaHiddenBadgeStyles};
//# sourceMappingURL=generateGoogleReCaptchaHiddenBadgeStyles.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},r(e)}function e(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function t(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?e(Object(o),!0).forEach((function(e){n(r,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===r(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=function(r){var e=r.host,n=void 0===e?"google.com":e,o=r.isEnterprise,i=r.render,c=r.hl,u=r.badge,a=new URLSearchParams(t(t(t({},c&&{hl:c}),u&&{badge:u}),{},{render:i})),b=o?"enterprise.js":"api.js";return"https://www.".concat(n,"/recaptcha/").concat(b,"?").concat(a)};export{o as generateGoogleReCaptchaScriptSrc};
/* @license react-google-recaptcha-ultimate v1.1.1 */
function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(r){return typeof r}:function(r){return r&&"function"==typeof Symbol&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r},r(e)}function e(r,e){var t=Object.keys(r);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(r);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),t.push.apply(t,n)}return t}function t(r){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?e(Object(o),!0).forEach((function(e){n(r,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(r,Object.getOwnPropertyDescriptors(o)):e(Object(o)).forEach((function(e){Object.defineProperty(r,e,Object.getOwnPropertyDescriptor(o,e))}))}return r}function n(e,t,n){return(t=function(e){var t=function(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==r(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===r(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var o=function(r){var e=r.host,n=void 0===e?"google.com":e,o=r.isEnterprise,i=void 0!==o&&o,c=r.render,u=r.hl,a=r.badge,b=new URLSearchParams(t(t(t({},u&&{hl:u}),a&&{badge:a}),{},{render:c})),f=i?"enterprise.js":"api.js";return"https://www.".concat(n,"/recaptcha/").concat(f,"?").concat(b)};export{o as generateGoogleReCaptchaScriptSrc};
//# sourceMappingURL=generateGoogleReCaptchaScriptSrc.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
import{generateGoogleReCaptchaHiddenBadgeStyles as e}from"./generateGoogleReCaptchaHiddenBadgeStyles.js";var t=function(){var t=document.createElement("style");t.innerHTML=e(),document.body.appendChild(t)};export{t as hideGoogleReCaptchaBadge};
//# sourceMappingURL=hideGoogleReCaptchaBadge.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
export{checkGoogleReCaptchaInjected}from"./checkGoogleReCaptchaInjected.js";export{generateGoogleReCaptchaHiddenBadgeStyles}from"./generateGoogleReCaptchaHiddenBadgeStyles.js";export{generateGoogleReCaptchaScriptSrc}from"./generateGoogleReCaptchaScriptSrc.js";export{hideGoogleReCaptchaBadge}from"./hideGoogleReCaptchaBadge.js";export{injectGoogleReCaptchaScript}from"./injectGoogleReCaptchaScript.js";export{removeGoogleReCaptchaBadge}from"./removeGoogleReCaptchaBadge.js";export{removeGoogleReCaptchaContainer}from"./removeGoogleReCaptchaContainer.js";export{GSTATIC_URL,removeGoogleReCaptchaScript}from"./removeGoogleReCaptchaScript.js";
//# sourceMappingURL=index.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
import{generateGoogleReCaptchaScriptSrc as r}from"./generateGoogleReCaptchaScriptSrc.js";var e=["onload","appendTo","isEnterprise","host","render","badge","hl"];function t(r,e){return function(r){if(Array.isArray(r))return r}(r)||function(r,e){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var n,o,i,l,a=[],u=!0,c=!1;try{if(i=(t=t.call(r)).next,0===e){if(Object(t)!==t)return;u=!1}else for(;!(u=(n=i.call(t)).done)&&(a.push(n.value),a.length!==e);u=!0);}catch(r){c=!0,o=r}finally{try{if(!u&&null!=t.return&&(l=t.return(),Object(l)!==l))return}finally{if(c)throw o}}return a}}(r,e)||function(r,e){if(!r)return;if("string"==typeof r)return n(r,e);var t=Object.prototype.toString.call(r).slice(8,-1);"Object"===t&&r.constructor&&(t=r.constructor.name);if("Map"===t||"Set"===t)return Array.from(r);if("Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t))return n(r,e)}(r,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(r,e){(null==e||e>r.length)&&(e=r.length);for(var t=0,n=new Array(e);t<e;t++)n[t]=r[t];return n}function o(r,e){if(null==r)return{};var t,n,o=function(r,e){if(null==r)return{};var t,n,o={},i=Object.keys(r);for(n=0;n<i.length;n++)t=i[n],e.indexOf(t)>=0||(o[t]=r[t]);return o}(r,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(r);for(n=0;n<i.length;n++)t=i[n],e.indexOf(t)>=0||Object.prototype.propertyIsEnumerable.call(r,t)&&(o[t]=r[t])}return o}var i=function(n){var i=n.onload,l=n.appendTo,a=void 0===l?"head":l,u=n.isEnterprise,c=void 0!==u&&u,f=n.host,s=n.render,d=n.badge,p=n.hl,y=o(n,e),b=r({host:f,isEnterprise:c,render:s,hl:p,badge:d}),h=document.createElement("script");Object.entries(y).forEach((function(r){var e,n=t(r,2),o=n[0],i=n[1];h.setAttribute(o,null!==(e=null==i?void 0:i.toString())&&void 0!==e?e:"")})),h.src=b,h.onload=i,document[a].appendChild(h)};export{i as injectGoogleReCaptchaScript};
//# sourceMappingURL=injectGoogleReCaptchaScript.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
var e=function(){var e=document.querySelector(".grecaptcha-badge");e&&e.parentNode&&document.body.removeChild(e.parentNode)};export{e as removeGoogleReCaptchaBadge};
//# sourceMappingURL=removeGoogleReCaptchaBadge.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
var e=function(e){var t=document.getElementById(e);if(t)for(;t.lastChild;)t.lastChild.remove()};export{e as removeGoogleReCaptchaContainer};
//# sourceMappingURL=removeGoogleReCaptchaContainer.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
var c="https://www.gstatic.com/recaptcha/releases",e=function(e){window.___grecaptcha_cfg=void 0;var r=document.querySelector("#".concat(e));r&&r.remove();var t=document.querySelector('script[src^="'.concat(c,'"]'));t&&t.remove()};export{c as GSTATIC_URL,e as removeGoogleReCaptchaScript};
//# sourceMappingURL=removeGoogleReCaptchaScript.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
export{useIsomorphicLayoutEffect}from"./useIsomorphicLayoutEffect.js";import"react";
//# sourceMappingURL=index.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
import{useLayoutEffect as e,useEffect as o}from"react";var r="undefined"!=typeof window?e:o;export{r as useIsomorphicLayoutEffect};
//# sourceMappingURL=useIsomorphicLayoutEffect.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
export{checkGoogleReCaptchaInjected}from"./helpers/checkGoogleReCaptchaInjected.js";export{generateGoogleReCaptchaHiddenBadgeStyles}from"./helpers/generateGoogleReCaptchaHiddenBadgeStyles.js";export{generateGoogleReCaptchaScriptSrc}from"./helpers/generateGoogleReCaptchaScriptSrc.js";export{hideGoogleReCaptchaBadge}from"./helpers/hideGoogleReCaptchaBadge.js";export{injectGoogleReCaptchaScript}from"./helpers/injectGoogleReCaptchaScript.js";export{removeGoogleReCaptchaBadge}from"./helpers/removeGoogleReCaptchaBadge.js";export{removeGoogleReCaptchaContainer}from"./helpers/removeGoogleReCaptchaContainer.js";export{GSTATIC_URL,removeGoogleReCaptchaScript}from"./helpers/removeGoogleReCaptchaScript.js";export{useIsomorphicLayoutEffect}from"./hooks/useIsomorphicLayoutEffect.js";export{GoogleReCaptcha}from"./types/index.js";import"react";
//# sourceMappingURL=index.js.map

@@ -1,3 +0,3 @@

/* @license react-google-recaptcha-ultimate v1.1.0 */
/* @license react-google-recaptcha-ultimate v1.1.1 */
var r;export{r as GoogleReCaptcha};
//# sourceMappingURL=index.js.map

@@ -56,3 +56,3 @@ import React, { ComponentProps } from 'react';

host?: GoogleReCaptcha.Host;
isEnterprise: boolean;
isEnterprise?: boolean;
render: string;

@@ -59,0 +59,0 @@ hl?: string;

{
"name": "react-google-recaptcha-ultimate",
"version": "1.1.0",
"version": "1.1.1",
"description": "Tool that easily and quickly add Google ReCaptcha for your website or application\n",

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

Sorry, the diff of this file is not supported yet

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