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AgC,SAAW,4BAA4B,QAAU,2BAA2B,YAAc,+BAA+B,eAAiB,kCAAkC,WAAa,8BAA8B,aAAe,gCAAgC,YAAc,+BAA+B,UAAY,6BAA6B,iBAAmB,oCAAoC,cAAgB,iCAAiC,OAAS,0BAA0B,cAAgB,iCAAiC,YAAc,+BAA+B,eAAiB,kCAAkC,kBAAoB,qCAAqC,aAAe,gC","sources":["containers/LoginPage/LoginForm.js","containers/LoginPage/index.js","containers/LoginPage/validations.js","webpack://vnc-designer/./src/containers/LoginPage/LoginPage.module.scss?e678"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {Form, Formik} from 'formik';\nimport PasswordField from '../../components/Forms/PasswordField';\nimport Button from '../../components/Buttons/Button';\nimport {InputField} from \"../../components/Forms\";\nimport {loginSchema} from \"./validations\";\nimport styles from './LoginPage.module.scss';\nimport SocialButton from \"../../components/SocialButtons\";\nimport { ReactComponent as GoogleIcon } from '../../../src/assets/icons/googleIcon.svg';\nimport { ReactComponent as LinkedInIcon } from '../../../src/assets/icons/linkedInIcon.svg';\nimport { ReactComponent as MicrosoftIcon } from '../../../src/assets/icons/microsoft_login.svg';\nimport { useLinkedIn } from 'react-linkedin-login-oauth2';\nimport config from '../../config';\n\n\nexport default function LoginForm({onSubmit, isPending, microsoftLogin, redirectToForgot, handleSignInClick, onGoogleSignIn, onLinkedInSignIn, email}) {\n const handleOnSubmit = (values) => {\n const {email, password} = values;\n onSubmit(email, password);\n };\n\n const { linkedInLogin } = useLinkedIn({\n clientId: config.linkedInClientId,\n redirectUri: `${window.location.origin}/linkedin`,\n scope: \"profile email openid\",\n onSuccess: (code) => {\n onLinkedInSignIn(code);\n },\n onError: (error) => {\n console.error(error);\n },\n });\n\n return (\n
\n \n {({isValid, dirty, setFieldValue}) => (\n
\n \n
\n setFieldValue('password', val.replace(/^\\s+/, ''))}\n autocomplete={!email}\n />\n
\n \n
\n redirectToForgot()} className={styles.btnSignUp}>Forgot Password?\n
\n
\n \n \n

Sign in with Google

\n
\n
\n \n \n

Sign in with Linkedin

\n
\n
\n \n \n

Sign in with Microsoft

\n
\n
\n
\n

Don't have an account? Sign Up

\n
\n \n )}\n \n
\n );\n}\n\nLoginForm.propTypes = {\n onSubmit: PropTypes.func,\n isPending: PropTypes.bool,\n};\n","import React, {useCallback, useState} from 'react';\nimport {useDispatch, useSelector} from 'react-redux';\nimport LoginForm from './LoginForm';\nimport {makeIsRegisteredUser, makeSelectIsLoginPending} from \"../../store/auth/selectors\";\nimport styles from './LoginPage.module.scss';\nimport {Grid} from \"@mui/material\";\nimport PersonLogin from '../../assets/images/PersonLogin.png';\nimport PersonRegister from '../../assets/images/personRegister.png';\nimport {ReactComponent as VncLogoLogin} from '../../assets/icons/vncLogoLogin.svg';\nimport {ReactComponent as Star} from '../../assets/icons/Star.svg';\nimport { login, onGoogleSignUpSaga, onLinkedInSignUpSaga, registerSuccess } from '../../store/auth/actions'\nimport {useGoogleLogin} from '@react-oauth/google';\nimport history from \"../../utils/history\";\nimport {FORGOT_PASSWORD, REGISTER} from \"../../routesConstants\";\nimport authService from \"../../services/AuthService\";\n\nfunction LoginPage({location}) {\n\n const paramEmail = window.location.search.split('email=')[1];\n const email = location?.state?.email;\n\n const [loginFormShow, setLoginFormShow] = useState(true);\n\n const dispatch = useDispatch();\n\n const isLoginPending = useSelector(makeSelectIsLoginPending());\n const submitLoginForm = useCallback(\n (...args) => dispatch(login(...args)),\n [dispatch]\n );\n\n const handleSignInClick = () => {\n history.push(REGISTER)\n }\n\n const loginGoogle = useGoogleLogin({\n onSuccess: tokenResponse => {\n dispatch(onGoogleSignUpSaga(tokenResponse))\n },\n });\n const onGoogleSignIn = () => {\n loginGoogle()\n }\n const handleLogin = async () => {\n const res = await authService.authMicrosoft();\n window.location.href = res;\n };\n\n const onLinkedInSignIn = useCallback(\n (...args) => dispatch(onLinkedInSignUpSaga(...args)),\n [dispatch]\n );\n\n const redirectToForgot = useCallback(() => {\n history.push(FORGOT_PASSWORD)\n },[])\n\n return (\n
\n \n \n
\n
\n \n

\n {'Log into StratifyPro'}\n

\n \n\n
\n
\n
\n \n
\n {'promo'}\n
\n

\n You're About to
Enter Strategy
Paradise.\n

\n

\n Join the Program and
Discover a new path to
strategy execution success\n

\n
\n
\n
\n \n \n \n \n \n

4.9/5

\n
\n
\n
\n
\n
\n
\n );\n}\n\nexport default LoginPage;\n","\nimport { object, string } from 'yup';\n\nexport const loginSchema = object({\n email: string().email().required(),\n password: string().required(),\n});\n\nexport const registerSchema = object({\n name: string().required(),\n email: string().required(),\n password: string().required(),\n});\n\nexport const invitationSchema = object({\n name: string().required(),\n email: string().required(),\n});\n\nexport const healthOfYourPlanSchema = object({\n scorecardId: string().required(),\n title: string().required(),\n});\n\nexport const currentStateOfKpiSchema = object({\n kpiId: string().required(),\n date: string().required(),\n title: string().required(),\n});\n","// extracted by mini-css-extract-plugin\nexport default {\"titleText\":\"LoginPage_titleText__t--NM\",\"btn\":\"LoginPage_btn__cZUev\",\"rightContentWrapper\":\"LoginPage_rightContentWrapper__PCBUV\",\"microsoftWrapper\":\"LoginPage_microsoftWrapper__6RgWu\",\"socialText\":\"LoginPage_socialText__YWAXi\",\"wrapper\":\"LoginPage_wrapper__-+Wjb\",\"confirmationText\":\"LoginPage_confirmationText__iFHR0\",\"subConfirmationText\":\"LoginPage_subConfirmationText__zvJHe\",\"logoWrapper\":\"LoginPage_logoWrapper__cjkad\",\"socialWrapperInner\":\"LoginPage_socialWrapperInner__liFQi\",\"socialWrapper\":\"LoginPage_socialWrapper__McTSX\",\"forgotWrapper\":\"LoginPage_forgotWrapper__bw-tX\",\"promoImage\":\"LoginPage_promoImage__UMLyP\",\"starContentWrapper\":\"LoginPage_starContentWrapper__fL5wp\",\"startsWrapper\":\"LoginPage_startsWrapper__E5Bl4\",\"scoreText\":\"LoginPage_scoreText__GW6T+\",\"subtitleText\":\"LoginPage_subtitleText__G9H24\",\"passWrapper\":\"LoginPage_passWrapper__MtvkZ\",\"emailWrapper\":\"LoginPage_emailWrapper__VNKXO\",\"descText\":\"LoginPage_descText__4uWIp\",\"backBtn\":\"LoginPage_backBtn__LZI5k\",\"backBtnText\":\"LoginPage_backBtnText__iG7zl\",\"loginTitleText\":\"LoginPage_loginTitleText__-1Myw\",\"verifyText\":\"LoginPage_verifyText__nGPUj\",\"rightWrapper\":\"LoginPage_rightWrapper__ADsst\",\"leftWrapper\":\"LoginPage_leftWrapper__CvR0s\",\"btnSignUp\":\"LoginPage_btnSignUp__0bxO1\",\"separatorWrapper\":\"LoginPage_separatorWrapper__yD23-\",\"socialBtnText\":\"LoginPage_socialBtnText__FdOtj\",\"orText\":\"LoginPage_orText__9kGRm\",\"separatorLine\":\"LoginPage_separatorLine__DXwmf\",\"mainWrapper\":\"LoginPage_mainWrapper__xor9T\",\"loginLeftStyle\":\"LoginPage_loginLeftStyle__7ld6t\",\"loginSubTitleText\":\"LoginPage_loginSubTitleText__jYVek\",\"imageWrapper\":\"LoginPage_imageWrapper__4NOPh\"};"],"names":["LoginForm","_ref","onSubmit","isPending","microsoftLogin","redirectToForgot","handleSignInClick","onGoogleSignIn","onLinkedInSignIn","email","linkedInLogin","useLinkedIn","clientId","config","linkedInClientId","redirectUri","concat","window","location","origin","scope","onSuccess","code","onError","error","console","_jsx","className","styles","mainWrapper","children","Formik","initialValues","password","validationSchema","loginSchema","values","validateOnMount","_ref2","isValid","dirty","setFieldValue","_jsxs","Form","InputField","name","placeholder","required","passWrapper","PasswordField","onChange","val","replace","autocomplete","Button","alt","disabled","type","title","isLarge","forgotWrapper","onClick","btnSignUp","socialWrapper","SocialButton","GoogleIcon","socialText","socialWrapperInner","LinkedInIcon","MicrosoftIcon","width","height","descText","_location$state","paramEmail","search","split","state","loginFormShow","setLoginFormShow","useState","dispatch","useDispatch","isLoginPending","useSelector","makeSelectIsLoginPending","submitLoginForm","useCallback","login","arguments","loginGoogle","useGoogleLogin","tokenResponse","onGoogleSignUpSaga","onLinkedInSignUpSaga","history","push","FORGOT_PASSWORD","Grid","container","spacing","item","xs","md","lg","leftWrapper","style","VncLogoLogin","loginTitleText","async","res","authService","authMicrosoft","href","REGISTER","rightWrapper","promoImage","src","PersonLogin","PersonRegister","rightContentWrapper","titleText","subtitleText","starContentWrapper","startsWrapper","Star","marginRight","scoreText","object","string","invitationSchema","scorecardId","kpiId","date"],"sourceRoot":""}