{"version":3,"sources":["pages/auth/SignIn/ModalSendConfirm/styles.js","pages/auth/SignIn/ModalSendConfirm/index.js","pages/auth/SignIn/styles.js","pages/auth/SignIn/index.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/classCallCheck.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createClass.js","../node_modules/babel-preset-react-app/node_modules/@babel/runtime/helpers/esm/createForOfIteratorHelper.js","components/LoadingFullScreen/styles.js","components/LoadingFullScreen/index.js","store/modules/recaptcha/actions.js","../node_modules/react-google-recaptcha/lib/esm/recaptcha.js","../node_modules/react-async-script/lib/esm/async-script-loader.js","../node_modules/react-google-recaptcha/lib/esm/recaptcha-wrapper.js","../node_modules/react-google-recaptcha/lib/esm/index.js","components/RecaptchaGoogle/styles.js","components/RecaptchaGoogle/index.js"],"names":["ContainerBody","styled","div","ModalSendConfirm","isOpen","setModaIsOpen","email","t","useTranslation","dispatch","useDispatch","Modal","maxWidth","title","onClose","Button","color","variant","size","onClick","resendEmailConfirmation","defaultProps","handleModalisOpen","Container","Form","form","Header","SignIn","history","useHistory","schema","Yup","shape","i18n","required","password","min","useState","emailNotConfirmed","setEmailNotConfirmed","modaIsOpen","reCaptchaValue","useSelector","recaptcha","isLoading","state","common","useForm","resolver","yupResolver","register","handleSubmit","errors","formState","watch","reset","watchEmail","useEffect","LoadingFullScreen","active","onSubmit","data","event","preventDefault","signInRequest","tokenReCaptcha","resetCaptcha","toast","warn","id","Input","label","placeholder","marginBottom","error","message","maxLength","type","className","to","push","style","width","_classCallCheck","instance","Constructor","TypeError","_defineProperties","target","props","i","length","descriptor","enumerable","configurable","writable","Object","defineProperty","key","_createClass","protoProps","staticProps","prototype","_createForOfIteratorHelper","o","allowArrayLike","it","Symbol","iterator","Array","isArray","F","s","n","done","value","e","_e","f","err","normalCompletion","didErr","step","next","_e2","Background","backgroundFull","getRecaptcha","payload","types","SET_RECAPTCHA","disableRecaptcha","DISABLE_RECAPTCHA","disabled","RESET_RECAPTCHA","resetRef","_extends","assign","arguments","source","hasOwnProperty","call","apply","this","_assertThisInitialized","self","ReferenceError","ReCAPTCHA","_React$Component","subClass","superClass","_this","handleExpired","bind","handleErrored","handleChange","handleRecaptchaRef","create","constructor","__proto__","_proto","getValue","grecaptcha","undefined","_widgetId","getResponse","getWidgetId","execute","_executeRequested","executeAsync","_this2","Promise","resolve","reject","executionResolve","executionReject","onExpired","onErrored","token","onChange","explicitRender","render","wrapper","document","createElement","sitekey","callback","theme","tabindex","stoken","hl","badge","captcha","appendChild","componentDidMount","componentDidUpdate","componentWillUnmount","delayOfCaptchaIframeRemoving","temporaryNode","body","display","firstChild","setTimeout","removeChild","elem","_this$props","childProps","excluded","sourceKeys","keys","indexOf","_objectWithoutPropertiesLoose","React","ref","Component","displayName","propTypes","PropTypes","string","isRequired","func","object","oneOf","number","SCRIPT_MAP","idCount","callbackName","makeAsyncScriptLoader","getScriptURL","options","RecaptchaWrapper","window","recaptchaOptions","useRecaptchaNet","globalName","WrappedComponent","wrappedComponentName","name","AsyncScriptLoader","_Component","context","__scriptURL","asyncScriptLoaderGetScriptLoaderID","__scriptLoaderID","setupScriptURL","asyncScriptLoaderHandleLoad","setState","asyncScriptOnLoad","asyncScriptLoaderTriggerOnScriptLoaded","mapEntry","loaded","Error","obsKey","observers","_this3","scriptURL","_options","scriptId","entry","errored","script","attribute","src","async","attributes","setAttribute","callObserverFuncAndRemoveObserver","observersMap","onload","observer","onerror","removeOnUnmount","allScripts","getElementsByTagName","parentNode","forwardedRef","ForwardedComponent","forwardRef","hoistStatics","SITE_KEY_RECAPCTHA","process","toLowerCase","ReCaptchaGoogle","component","createRef","languageApp","getI18n","language","changeLanguage","useMemo","handleCaPtcha","handleDisable","current"],"mappings":"gRAEaA,EAAgBC,IAAOC,IAAV,2V,OCQpBC,EAAmB,SAAC,GAAsC,IAApCC,EAAmC,EAAnCA,OAAQC,EAA2B,EAA3BA,cAAeC,EAAY,EAAZA,MACzCC,EAAMC,cAA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B1H,EAASyD,aAAa,MACrB,CAAC8N,IAGF,cAACzQ,EAAD,UACE,cAAC,EAAD,CACEuK,GAAIkG,EACJ3E,IAAKsE,EACLlG,QAAS8F,EACTpG,SAAU,SAAChE,GACT+K,EAAc/K,GACdgL,GAAc,IAEhBnH,UAAW,WACTkH,EAAc,MACdC,GAAc","file":"static/js/107.7c2cbdda.chunk.js","sourcesContent":["import styled from 'styled-components';\n\nexport const ContainerBody = styled.div`\n padding: var(--spacement-medium);\n > p {\n font-style: normal;\n font-weight: normal;\n font-size: 14px;\n line-height: 143%;\n display: flex;\n align-items: center;\n letter-spacing: 0.018em;\n color: #5a5d68;\n\n > span {\n font-weight: bold;\n margin-left: 5px;\n }\n }\n`;\n","import React from 'react';\nimport { useTranslation } from 'react-i18next';\nimport { useDispatch } from 'react-redux';\nimport PropTypes from 'prop-types';\nimport Modal, { ModalFooter } from '~/components/Modal';\nimport { resendEmailConfirmation } from '~/store/modules/auth/actions';\nimport Button from '~/components/Button';\n\nimport * as S from './styles';\n\nconst ModalSendConfirm = ({ isOpen, setModaIsOpen, email }) => {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n\n const handleModalisOpen = () => {\n setModaIsOpen(false);\n };\n\n const handleSendConfirmationEmail = () => {\n dispatch(resendEmailConfirmation({ email }));\n setModaIsOpen(false);\n };\n\n return (\n \n \n \n {t('signin.modal_send_confirm_email.text_hello')}{' '}\n {email}\n \n\n {t('signin.modal_send_confirm_email.text_steps')}\n \n\n \n \n {t('Reenviar email de ativação')}\n \n \n \n );\n};\n\nModalSendConfirm.propTypes = {\n isOpen: PropTypes.bool,\n setModaIsOpen: PropTypes.func,\n email: PropTypes.string,\n};\n\nModalSendConfirm.defaultProps = {\n isOpen: false,\n setModaIsOpen: ModalSendConfirm.handleModalisOpen,\n email: '',\n};\n\nexport default ModalSendConfirm;\n","import styled from 'styled-components';\n\nexport const Container = styled.div`\n background: #fff;\n box-shadow: 0px 2px 4px rgba(24, 39, 75, 0.12),\n 0px 4px 4px rgba(24, 39, 75, 0.08);\n border-radius: 4px;\n width: 350px;\n height: max-content;\n display: flex;\n flex-direction: column;\n justify-content: center;\n\n .container_links {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n margin-top: 20px;\n margin-bottom: 20px;\n font-weight: 500;\n font-size: 0.875rem;\n line-height: 1%;\n letter-spacing: -0.02em;\n font-feature-settings: 'ss01' on;\n color: #102693;\n }\n\n .containerButtons {\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n margin-top: var(--spacement-medium);\n }\n`;\n\nexport const Form = styled.form`\n padding: 24px;\n font-weight: 200;\n color: var(--neutral-3);\n`;\n\nexport const Header = styled.div`\n border-bottom: 1.5px solid rgba(24, 39, 75, 0.08);\n padding: 24px;\n font-size: 1.5rem;\n font-weight: 700;\n color: var(--neutral-4);\n`;\n","import React, { useEffect, useState } from 'react';\nimport { useHistory, Link } from 'react-router-dom';\nimport { useTranslation } from 'react-i18next';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { useForm } from 'react-hook-form';\nimport { yupResolver } from '@hookform/resolvers/yup';\n\nimport * as Yup from 'yup';\nimport Button from '~/components/Button';\nimport Input from '~/components/Input';\nimport ModalSendConfirm from './ModalSendConfirm';\nimport { toast } from '../../../components/CustomToast';\n\nimport { signInRequest } from '~/store/modules/auth/actions';\nimport { resetCaptcha } from '~/store/modules/recaptcha/actions';\nimport ReCaptchaGoogle from '~/components/RecaptchaGoogle';\n\nimport * as S from './styles';\n\nimport i18n from '~/translations/i18n';\nimport LoadingFullScreen from '~/components/LoadingFullScreen';\n\nconst SignIn = () => {\n const { t } = useTranslation();\n const dispatch = useDispatch();\n const history = useHistory();\n\n const schema = Yup.object().shape({\n email: Yup.string()\n .email(i18n.t('form.invalid_email'))\n .required(i18n.t('form.required_email')),\n password: Yup.string()\n .min(6, i18n.t('form.min_password'))\n .required(i18n.t('form.required_password')),\n });\n\n const [emailNotConfirmed, setEmailNotConfirmed] = useState(false);\n const [modaIsOpen, setModaIsOpen] = useState(false);\n\n const { reCaptchaValue } = useSelector(({ recaptcha }) => recaptcha);\n const { isLoading } = useSelector((state) => state.common);\n\n const {\n register,\n handleSubmit,\n formState: { errors },\n watch,\n reset,\n } = useForm({\n resolver: yupResolver(schema),\n });\n\n const watchEmail = watch('email');\n\n useEffect(() => {\n if (emailNotConfirmed) {\n setModaIsOpen(true);\n setEmailNotConfirmed(false);\n }\n }, [emailNotConfirmed]);\n\n const handleToCreateAccount = () => {\n history.push('/signup');\n };\n\n const handleSignIn = (data, event) => {\n event.preventDefault();\n\n if (!reCaptchaValue && process.env.REACT_APP_ENV === 'PROD') {\n toast.warn(t('error.invalid_captcha'));\n return;\n }\n\n const { email, password } = data;\n\n dispatch(\n signInRequest(\n {\n email,\n password,\n tokenReCaptcha: reCaptchaValue,\n },\n setEmailNotConfirmed\n )\n );\n\n dispatch(resetCaptcha(true));\n reset({ email, password });\n };\n\n return (\n <>\n \n \n \n {t('signin.login')}\n \n \n \n\n \n\n \n {t('signin.forgot_password')}\n {t('signin.forgot_email')}\n \n\n {process.env.REACT_APP_ENV === 'PROD' && }\n\n \n \n {t('signin.create_account')}\n \n\n \n {t('buttons.confirm')}\n \n \n \n \n\n \n >\n );\n};\n\nexport default SignIn;\n","export default function _classCallCheck(instance, Constructor) {\n if (!(instance instanceof Constructor)) {\n throw new TypeError(\"Cannot call a class as a function\");\n }\n}","function _defineProperties(target, props) {\n for (var i = 0; i < props.length; i++) {\n var descriptor = props[i];\n descriptor.enumerable = descriptor.enumerable || false;\n descriptor.configurable = true;\n if (\"value\" in descriptor) descriptor.writable = true;\n Object.defineProperty(target, descriptor.key, descriptor);\n }\n}\n\nexport default function _createClass(Constructor, protoProps, staticProps) {\n if (protoProps) _defineProperties(Constructor.prototype, protoProps);\n if (staticProps) _defineProperties(Constructor, staticProps);\n return Constructor;\n}","import unsupportedIterableToArray from \"@babel/runtime/helpers/esm/unsupportedIterableToArray\";\nexport default function _createForOfIteratorHelper(o, allowArrayLike) {\n var it;\n\n if (typeof Symbol === \"undefined\" || o[Symbol.iterator] == null) {\n if (Array.isArray(o) || (it = unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === \"number\") {\n if (it) o = it;\n var i = 0;\n\n var F = function F() {};\n\n return {\n s: F,\n n: function n() {\n if (i >= o.length) return {\n done: true\n };\n return {\n done: false,\n value: o[i++]\n };\n },\n e: function e(_e) {\n throw _e;\n },\n f: F\n };\n }\n\n throw new TypeError(\"Invalid attempt to iterate non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n }\n\n var normalCompletion = true,\n didErr = false,\n err;\n return {\n s: function s() {\n it = o[Symbol.iterator]();\n },\n n: function n() {\n var step = it.next();\n normalCompletion = step.done;\n return step;\n },\n e: function e(_e2) {\n didErr = true;\n err = _e2;\n },\n f: function f() {\n try {\n if (!normalCompletion && it[\"return\"] != null) it[\"return\"]();\n } finally {\n if (didErr) throw err;\n }\n }\n };\n}","import styled from 'styled-components';\n\nexport const Background = styled.div`\n width: 100vw;\n height: 100vh;\n position: fixed;\n top: 0;\n left: 0;\n z-index: 99999;\n display: ${(props) => (props.active ? 'grid' : 'none')};\n place-items: center;\n\n &:after {\n background: var(--absolute-white);\n content: '';\n display: block;\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n opacity: 0.3;\n }\n`;\n","import React from 'react';\r\nimport PropTypes from 'prop-types';\r\n\r\nimport { Background } from './styles';\r\nimport { Loader } from '../Button/styles';\r\n\r\nexport default function LoadingFullScreen({ active, backgroundFull }) {\r\n return (\r\n \r\n \r\n \r\n );\r\n}\r\n\r\nLoadingFullScreen.propTypes = {\r\n active: PropTypes.bool,\r\n};\r\n\r\nLoadingFullScreen.defaultProps = {\r\n active: false,\r\n};\r\n","import types from './types';\n\nexport const getRecaptcha = (payload) => ({\n type: types.SET_RECAPTCHA,\n payload: {\n reCaptchaValue: payload,\n },\n});\n\nexport const disableRecaptcha = (payload) => ({\n type: types.DISABLE_RECAPTCHA,\n payload: {\n disabled: payload,\n },\n});\n\nexport const resetCaptcha = (payload) => ({\n type: types.RESET_RECAPTCHA,\n payload: {\n resetRef: payload,\n },\n});\n","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError(\"this hasn't been initialised - super() hasn't been called\"); } return self; }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\n\nvar ReCAPTCHA =\n/*#__PURE__*/\nfunction (_React$Component) {\n _inheritsLoose(ReCAPTCHA, _React$Component);\n\n function ReCAPTCHA() {\n var _this;\n\n _this = _React$Component.call(this) || this;\n _this.handleExpired = _this.handleExpired.bind(_assertThisInitialized(_this));\n _this.handleErrored = _this.handleErrored.bind(_assertThisInitialized(_this));\n _this.handleChange = _this.handleChange.bind(_assertThisInitialized(_this));\n _this.handleRecaptchaRef = _this.handleRecaptchaRef.bind(_assertThisInitialized(_this));\n return _this;\n }\n\n var _proto = ReCAPTCHA.prototype;\n\n _proto.getValue = function getValue() {\n if (this.props.grecaptcha && this._widgetId !== undefined) {\n return this.props.grecaptcha.getResponse(this._widgetId);\n }\n\n return null;\n };\n\n _proto.getWidgetId = function getWidgetId() {\n if (this.props.grecaptcha && this._widgetId !== undefined) {\n return this._widgetId;\n }\n\n return null;\n };\n\n _proto.execute = function execute() {\n var grecaptcha = this.props.grecaptcha;\n\n if (grecaptcha && this._widgetId !== undefined) {\n return grecaptcha.execute(this._widgetId);\n } else {\n this._executeRequested = true;\n }\n };\n\n _proto.executeAsync = function executeAsync() {\n var _this2 = this;\n\n return new Promise(function (resolve, reject) {\n _this2.executionResolve = resolve;\n _this2.executionReject = reject;\n\n _this2.execute();\n });\n };\n\n _proto.reset = function reset() {\n if (this.props.grecaptcha && this._widgetId !== undefined) {\n this.props.grecaptcha.reset(this._widgetId);\n }\n };\n\n _proto.handleExpired = function handleExpired() {\n if (this.props.onExpired) {\n this.props.onExpired();\n } else {\n this.handleChange(null);\n }\n };\n\n _proto.handleErrored = function handleErrored() {\n if (this.props.onErrored) {\n this.props.onErrored();\n }\n\n if (this.executionReject) {\n this.executionReject();\n delete this.executionResolve;\n delete this.executionReject;\n }\n };\n\n _proto.handleChange = function handleChange(token) {\n if (this.props.onChange) {\n this.props.onChange(token);\n }\n\n if (this.executionResolve) {\n this.executionResolve(token);\n delete this.executionReject;\n delete this.executionResolve;\n }\n };\n\n _proto.explicitRender = function explicitRender() {\n if (this.props.grecaptcha && this.props.grecaptcha.render && this._widgetId === undefined) {\n var wrapper = document.createElement(\"div\");\n this._widgetId = this.props.grecaptcha.render(wrapper, {\n sitekey: this.props.sitekey,\n callback: this.handleChange,\n theme: this.props.theme,\n type: this.props.type,\n tabindex: this.props.tabindex,\n \"expired-callback\": this.handleExpired,\n \"error-callback\": this.handleErrored,\n size: this.props.size,\n stoken: this.props.stoken,\n hl: this.props.hl,\n badge: this.props.badge\n });\n this.captcha.appendChild(wrapper);\n }\n\n if (this._executeRequested && this.props.grecaptcha && this._widgetId !== undefined) {\n this._executeRequested = false;\n this.execute();\n }\n };\n\n _proto.componentDidMount = function componentDidMount() {\n this.explicitRender();\n };\n\n _proto.componentDidUpdate = function componentDidUpdate() {\n this.explicitRender();\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n if (this._widgetId !== undefined) {\n this.delayOfCaptchaIframeRemoving();\n this.reset();\n }\n };\n\n _proto.delayOfCaptchaIframeRemoving = function delayOfCaptchaIframeRemoving() {\n var temporaryNode = document.createElement(\"div\");\n document.body.appendChild(temporaryNode);\n temporaryNode.style.display = \"none\"; // move of the recaptcha to a temporary node\n\n while (this.captcha.firstChild) {\n temporaryNode.appendChild(this.captcha.firstChild);\n } // delete the temporary node after reset will be done\n\n\n setTimeout(function () {\n document.body.removeChild(temporaryNode);\n }, 5000);\n };\n\n _proto.handleRecaptchaRef = function handleRecaptchaRef(elem) {\n this.captcha = elem;\n };\n\n _proto.render = function render() {\n // consume properties owned by the reCATPCHA, pass the rest to the div so the user can style it.\n\n /* eslint-disable no-unused-vars */\n var _this$props = this.props,\n sitekey = _this$props.sitekey,\n onChange = _this$props.onChange,\n theme = _this$props.theme,\n type = _this$props.type,\n tabindex = _this$props.tabindex,\n onExpired = _this$props.onExpired,\n onErrored = _this$props.onErrored,\n size = _this$props.size,\n stoken = _this$props.stoken,\n grecaptcha = _this$props.grecaptcha,\n badge = _this$props.badge,\n hl = _this$props.hl,\n childProps = _objectWithoutPropertiesLoose(_this$props, [\"sitekey\", \"onChange\", \"theme\", \"type\", \"tabindex\", \"onExpired\", \"onErrored\", \"size\", \"stoken\", \"grecaptcha\", \"badge\", \"hl\"]);\n /* eslint-enable no-unused-vars */\n\n\n return React.createElement(\"div\", _extends({}, childProps, {\n ref: this.handleRecaptchaRef\n }));\n };\n\n return ReCAPTCHA;\n}(React.Component);\n\nexport { ReCAPTCHA as default };\nReCAPTCHA.displayName = \"ReCAPTCHA\";\nReCAPTCHA.propTypes = {\n sitekey: PropTypes.string.isRequired,\n onChange: PropTypes.func,\n grecaptcha: PropTypes.object,\n theme: PropTypes.oneOf([\"dark\", \"light\"]),\n type: PropTypes.oneOf([\"image\", \"audio\"]),\n tabindex: PropTypes.number,\n onExpired: PropTypes.func,\n onErrored: PropTypes.func,\n size: PropTypes.oneOf([\"compact\", \"normal\", \"invisible\"]),\n stoken: PropTypes.string,\n hl: PropTypes.string,\n badge: PropTypes.oneOf([\"bottomright\", \"bottomleft\", \"inline\"])\n};\nReCAPTCHA.defaultProps = {\n onChange: function onChange() {},\n theme: \"light\",\n type: \"image\",\n tabindex: 0,\n size: \"normal\",\n badge: \"bottomright\"\n};","function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }\n\nfunction _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }\n\nfunction _inheritsLoose(subClass, superClass) { subClass.prototype = Object.create(superClass.prototype); subClass.prototype.constructor = subClass; subClass.__proto__ = superClass; }\n\nimport { Component, createElement, forwardRef } from \"react\";\nimport PropTypes from \"prop-types\";\nimport hoistStatics from \"hoist-non-react-statics\";\nvar SCRIPT_MAP = {}; // A counter used to generate a unique id for each component that uses the function\n\nvar idCount = 0;\nexport default function makeAsyncScript(getScriptURL, options) {\n options = options || {};\n return function wrapWithAsyncScript(WrappedComponent) {\n var wrappedComponentName = WrappedComponent.displayName || WrappedComponent.name || \"Component\";\n\n var AsyncScriptLoader =\n /*#__PURE__*/\n function (_Component) {\n _inheritsLoose(AsyncScriptLoader, _Component);\n\n function AsyncScriptLoader(props, context) {\n var _this;\n\n _this = _Component.call(this, props, context) || this;\n _this.state = {};\n _this.__scriptURL = \"\";\n return _this;\n }\n\n var _proto = AsyncScriptLoader.prototype;\n\n _proto.asyncScriptLoaderGetScriptLoaderID = function asyncScriptLoaderGetScriptLoaderID() {\n if (!this.__scriptLoaderID) {\n this.__scriptLoaderID = \"async-script-loader-\" + idCount++;\n }\n\n return this.__scriptLoaderID;\n };\n\n _proto.setupScriptURL = function setupScriptURL() {\n this.__scriptURL = typeof getScriptURL === \"function\" ? getScriptURL() : getScriptURL;\n return this.__scriptURL;\n };\n\n _proto.asyncScriptLoaderHandleLoad = function asyncScriptLoaderHandleLoad(state) {\n var _this2 = this;\n\n // use reacts setState callback to fire props.asyncScriptOnLoad with new state/entry\n this.setState(state, function () {\n return _this2.props.asyncScriptOnLoad && _this2.props.asyncScriptOnLoad(_this2.state);\n });\n };\n\n _proto.asyncScriptLoaderTriggerOnScriptLoaded = function asyncScriptLoaderTriggerOnScriptLoaded() {\n var mapEntry = SCRIPT_MAP[this.__scriptURL];\n\n if (!mapEntry || !mapEntry.loaded) {\n throw new Error(\"Script is not loaded.\");\n }\n\n for (var obsKey in mapEntry.observers) {\n mapEntry.observers[obsKey](mapEntry);\n }\n\n delete window[options.callbackName];\n };\n\n _proto.componentDidMount = function componentDidMount() {\n var _this3 = this;\n\n var scriptURL = this.setupScriptURL();\n var key = this.asyncScriptLoaderGetScriptLoaderID();\n var _options = options,\n globalName = _options.globalName,\n callbackName = _options.callbackName,\n scriptId = _options.scriptId; // check if global object already attached to window\n\n if (globalName && typeof window[globalName] !== \"undefined\") {\n SCRIPT_MAP[scriptURL] = {\n loaded: true,\n observers: {}\n };\n } // check if script loading already\n\n\n if (SCRIPT_MAP[scriptURL]) {\n var entry = SCRIPT_MAP[scriptURL]; // if loaded or errored then \"finish\"\n\n if (entry && (entry.loaded || entry.errored)) {\n this.asyncScriptLoaderHandleLoad(entry);\n return;\n } // if still loading then callback to observer queue\n\n\n entry.observers[key] = function (entry) {\n return _this3.asyncScriptLoaderHandleLoad(entry);\n };\n\n return;\n }\n /*\n * hasn't started loading\n * start the \"magic\"\n * setup script to load and observers\n */\n\n\n var observers = {};\n\n observers[key] = function (entry) {\n return _this3.asyncScriptLoaderHandleLoad(entry);\n };\n\n SCRIPT_MAP[scriptURL] = {\n loaded: false,\n observers: observers\n };\n var script = document.createElement(\"script\");\n script.src = scriptURL;\n script.async = true;\n\n for (var attribute in options.attributes) {\n script.setAttribute(attribute, options.attributes[attribute]);\n }\n\n if (scriptId) {\n script.id = scriptId;\n }\n\n var callObserverFuncAndRemoveObserver = function callObserverFuncAndRemoveObserver(func) {\n if (SCRIPT_MAP[scriptURL]) {\n var mapEntry = SCRIPT_MAP[scriptURL];\n var observersMap = mapEntry.observers;\n\n for (var obsKey in observersMap) {\n if (func(observersMap[obsKey])) {\n delete observersMap[obsKey];\n }\n }\n }\n };\n\n if (callbackName && typeof window !== \"undefined\") {\n window[callbackName] = function () {\n return _this3.asyncScriptLoaderTriggerOnScriptLoaded();\n };\n }\n\n script.onload = function () {\n var mapEntry = SCRIPT_MAP[scriptURL];\n\n if (mapEntry) {\n mapEntry.loaded = true;\n callObserverFuncAndRemoveObserver(function (observer) {\n if (callbackName) {\n return false;\n }\n\n observer(mapEntry);\n return true;\n });\n }\n };\n\n script.onerror = function () {\n var mapEntry = SCRIPT_MAP[scriptURL];\n\n if (mapEntry) {\n mapEntry.errored = true;\n callObserverFuncAndRemoveObserver(function (observer) {\n observer(mapEntry);\n return true;\n });\n }\n };\n\n document.body.appendChild(script);\n };\n\n _proto.componentWillUnmount = function componentWillUnmount() {\n // Remove tag script\n var scriptURL = this.__scriptURL;\n\n if (options.removeOnUnmount === true) {\n var allScripts = document.getElementsByTagName(\"script\");\n\n for (var i = 0; i < allScripts.length; i += 1) {\n if (allScripts[i].src.indexOf(scriptURL) > -1) {\n if (allScripts[i].parentNode) {\n allScripts[i].parentNode.removeChild(allScripts[i]);\n }\n }\n }\n } // Clean the observer entry\n\n\n var mapEntry = SCRIPT_MAP[scriptURL];\n\n if (mapEntry) {\n delete mapEntry.observers[this.asyncScriptLoaderGetScriptLoaderID()];\n\n if (options.removeOnUnmount === true) {\n delete SCRIPT_MAP[scriptURL];\n }\n }\n };\n\n _proto.render = function render() {\n var globalName = options.globalName; // remove asyncScriptOnLoad from childProps\n\n var _this$props = this.props,\n asyncScriptOnLoad = _this$props.asyncScriptOnLoad,\n forwardedRef = _this$props.forwardedRef,\n childProps = _objectWithoutPropertiesLoose(_this$props, [\"asyncScriptOnLoad\", \"forwardedRef\"]); // eslint-disable-line no-unused-vars\n\n\n if (globalName && typeof window !== \"undefined\") {\n childProps[globalName] = typeof window[globalName] !== \"undefined\" ? window[globalName] : undefined;\n }\n\n childProps.ref = forwardedRef;\n return createElement(WrappedComponent, childProps);\n };\n\n return AsyncScriptLoader;\n }(Component); // Note the second param \"ref\" provided by React.forwardRef.\n // We can pass it along to AsyncScriptLoader as a regular prop, e.g. \"forwardedRef\"\n // And it can then be attached to the Component.\n\n\n var ForwardedComponent = forwardRef(function (props, ref) {\n return createElement(AsyncScriptLoader, _extends({}, props, {\n forwardedRef: ref\n }));\n });\n ForwardedComponent.displayName = \"AsyncScriptLoader(\" + wrappedComponentName + \")\";\n ForwardedComponent.propTypes = {\n asyncScriptOnLoad: PropTypes.func\n };\n return hoistStatics(ForwardedComponent, WrappedComponent);\n };\n}","import ReCAPTCHA from \"./recaptcha\";\nimport makeAsyncScriptLoader from \"react-async-script\";\nvar callbackName = \"onloadcallback\";\nvar globalName = \"grecaptcha\";\n\nfunction getOptions() {\n return typeof window !== \"undefined\" && window.recaptchaOptions || {};\n}\n\nfunction getURL() {\n var dynamicOptions = getOptions();\n var hostname = dynamicOptions.useRecaptchaNet ? \"recaptcha.net\" : \"www.google.com\";\n return \"https://\" + hostname + \"/recaptcha/api.js?onload=\" + callbackName + \"&render=explicit\";\n}\n\nexport default makeAsyncScriptLoader(getURL, {\n callbackName: callbackName,\n globalName: globalName\n})(ReCAPTCHA);","import RecaptchaWrapper from \"./recaptcha-wrapper\";\nimport ReCAPTCHA from \"./recaptcha\";\nexport default RecaptchaWrapper;\nexport { ReCAPTCHA };","import styled from 'styled-components';\n\nexport const Container = styled.div`\n width: 100%;\n`;\n","import React, { useEffect, useMemo } from 'react';\nimport ReCAPTCHA from 'react-google-recaptcha';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { getI18n } from 'react-i18next';\nimport {\n getRecaptcha,\n disableRecaptcha,\n resetCaptcha,\n} from '../../store/modules/recaptcha/actions';\nimport { Container } from './styles';\n\nconst SITE_KEY_RECAPCTHA =\n process.env.REACT_APP_ENV?.toLowerCase() === 'dev' ||\n process.env.REACT_APP_ENV?.toLowerCase() === 'test'\n ? '6Lf2f7YqAAAAAMslMGjwIrCS7CqlPCRYzejjLufh'\n : '6LdUGqAaAAAAANhwx9wrLgp3JhNsDusTHj4f4DH6';\n\nconst ReCaptchaGoogle = () => {\n const component = React.createRef();\n const languageApp = getI18n().language;\n\n const changeLanguage = useMemo(() => getI18n().language, [languageApp]);\n\n const recaptcha = useSelector((state) => state.recaptcha);\n\n const dispatch = useDispatch();\n\n const handleCaPtcha = (value) => {\n dispatch(getRecaptcha(value));\n };\n\n const handleDisable = (value) => {\n dispatch(disableRecaptcha(value));\n };\n\n useEffect(() => {\n if (recaptcha?.resetRef) {\n component.current.reset();\n dispatch(getRecaptcha(null));\n dispatch(disableRecaptcha(true));\n dispatch(resetCaptcha(false));\n }\n });\n\n useEffect(() => {\n dispatch(disableRecaptcha(true));\n dispatch(resetCaptcha(true));\n }, [changeLanguage]);\n\n return (\n \n {\n handleCaPtcha(value);\n handleDisable(false);\n }}\n onExpired={() => {\n handleCaPtcha(null);\n handleDisable(true);\n }}\n />\n \n );\n};\n\nexport default ReCaptchaGoogle;\n"],"sourceRoot":""}
\n {t('signin.modal_send_confirm_email.text_hello')}{' '}\n {email}\n
{t('signin.modal_send_confirm_email.text_steps')}