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,UACPO,UAAW,IACXkC,UAEFC,EAAAA,EAAAA,KAAA,UAAQsG,QAASrH,EAAM0D,UAAU5C,SAAC,sBAEpCC,EAAAA,EAAAA,KAAC0E,EAAgB,CACf7E,MAAO,CAAEhC,UAAWoB,EAAM6B,YAAc,IAAM,GAAK,IAAKf,UAExDC,EAAAA,EAAAA,KAACuG,EAAAA,EAAS,CAACC,MAAOtB,EAAUuB,SAAUC,QAAQC,IAAKC,OAAQ,UAG7D5G,EAAAA,EAAAA,KAACwE,EAAa,CACZ9D,SAAyC,IAA/B+B,OAAOpD,OAAOkD,GAAMwD,SAAiBpF,EAC/CA,QAASA,EAAQZ,SAEhBY,EAAU,YAAc,aAIhC,C","sources":["routers/auth/login/form.js","routers/auth/login/index.js","routers/auth/login/mfaCard.js"],"sourcesContent":["import React from \"react\";\nimport { Form, Input, Icon, Button } from \"antd\";\nimport styled from \"styled-components\";\nimport { appColors } from \"../../../utils/styles/colors\";\n// import { loginEvent } from \"../../../juneAnalytics/juneEvents\";\n// import { useJune } from \"../../../juneAnalytics/juneHooks\";\n// import { AnalyticsBrowser } from '@june-so/analytics-next';\n// import juneEvents from \"../../../juneAnalytics/juneEvents\";\n\nconst themeColor = \"#F6BC1C\";\nconst buttonStyle = {\n width: \"100%\",\n color: \"#fff\",\n fontWeight: \"bold\",\n textTransform: \"uppercase\",\n backgroundColor: appColors.purple,\n borderColor: appColors.purple,\n marginTop: 5,\n marginBottom: 5,\n};\nconst inalaStyle={\n width: \"100%\",\n color: \"#fff\",\n fontWeight: \"bold\",\n textTransform: \"uppercase\",\n backgroundColor: \"#83c444\",\n borderColor: \"#83c444\",\n marginTop: 5,\n marginBottom: 5,\n}\nconst disabledStyle = {\n ...buttonStyle,\n color: \"rgb(166 165 165)\",\n backgroundColor: \"#dddddd\",\n borderColor: \"#dddddd\",\n cursor: \"not-allowed\",\n};\n\nconst ButtonWraper = styled.div`\n .anticon-loading {\n font-size: 14px;\n font-weight: bold;\n color: #027cff;\n }\n }\n`;\n\nclass LoginForm extends React.Component {\n state = {\n isHidePassword: true,\n };\n\n // handleEvent = (username) => {\n // // let analytics = AnalyticsBrowser.load({ writeKey: \"6EMoKeCRrlRUnLXR\" });\n // // analytics.identify(\"USER_ID\", { username });\n // // analytics.track(\"User_Login\");\n // juneEvents.loginEvent(username);\n // };\n\n handleSubmit = (e) => {\n e.preventDefault();\n this.props.form.validateFields((err, values) => {\n if (!err) {\n // alert(JSON.stringify(values));\n // let { username } = values;\n // this.handleEvent(username);\n this.props.onLoginSubmit(values);\n }\n });\n };\n\n render() {\n const { getFieldDecorator, isHidePassword } = this.props.form;\n return (\n \n \n {getFieldDecorator(\"username\", {\n rules: [\n { required: true, message: \"Please input your email address!\" },\n ],\n })(\n }\n placeholder=\"Email\"\n disabled={this.props.loading}\n />\n )}\n \n \n {getFieldDecorator(\"password\", {\n rules: [{ required: true, message: \"Please input your password!\" }],\n })(\n // }\n // type={isHidePassword ? \"password\" : undefined}\n // placeholder=\"Password\"\n // disabled={this.props.loading}\n // Icon={\"eye\"}\n // />\n }\n placeholder=\"Password\"\n disabled={this.props.loading}\n />\n )}\n \n 600 ? 0 : 0 }}>\n \n Forgot password\n \n \n \n Login\n \n \n \n \n );\n }\n}\n\nconst WrappedNormalLoginForm = Form.create({ name: \"normal_login\" })(LoginForm);\n\nexport default WrappedNormalLoginForm;\n","import React, { Component } from \"react\";\nimport { connect } from \"react-redux\";\nimport { withRouter } from \"react-router-dom\";\nimport { Card } from \"antd\";\nimport styled from \"styled-components\";\nimport LoginForm from \"./form\";\nimport MfaCArd from \"./mfaCard\";\n\n// import logo from \"../../../assets/images/logo.png\";\nimport logo from \"../../../assets/images/logo2.png\";\nimport backgroundImage from \"../../../assets/images/imagee.png\";\nimport { login } from \"../../../actions/auth\";\nimport Spin from \"../../../atoms/Loaders\";\nimport imageExporter from \"../../../assets/images/imageExporter\";\nimport svgExporter from \"../../../assets/svgs/svgExporter\";\n\nconst MfaWrapper = styled.div`\n margin-top: 130px;\n`;\n\nconst {\n auth: { login: loginBackground },\n logo: { LogoWithTagline }\n} = imageExporter;\n\nexport class Login extends Component {\n state = {\n loggedIn: false,\n mfaVerification: false,\n loading: false,\n };\n\n submitLogin = ({ username, password }) => {\n this.setState({\n loggedIn: true,\n mfaVerification: true,\n username,\n password,\n loading: true,\n });\n this.props.login(username, password);\n };\n logIn = (code) => {\n const { username, password } = this.state;\n const verificationCode = Object.values(code).join(\"\");\n this.props.login(username, \"\", \"\", verificationCode);\n };\n resendOtp = () => {\n const { username, password } = this.state;\n this.props.login(username, password);\n };\n render() {\n const { mfaRequired, mfaType, MFAQRCode } = this.props;\n // const mfaRequired = true\n return (\n \n 600 ? 550 : \"90%\")) ||\n (this.props.windowWidth > 600 ? 500 : \"90%\"),\n height:\n (mfaRequired && 550) ||\n (this.props.windowWidth > 600 ? 400 : 350),\n border: \"0px solid\",\n // display:'flex',\n // flexDirection:'column',\n // alignItems:'center',\n // margin: \"auto\",\n // position: \"relative\",\n // top: 120,\n padding: 15,\n borderRadius: this.props.windowWidth > 600 ? 0 : 10,\n boxShadow:\n \"0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19)\",\n }}\n >\n {this.props.loading && !mfaRequired && }\n\n {!this.props.loading && (\n \n \n {!mfaRequired && !this.props.loading && (\n 600 ? \"90%\" : \"100%\",\n }}\n >\n this.props.login(username, password)}\n />\n \n )}\n \n )}\n\n {mfaRequired && (\n
\n \n
\n )}\n \n \n );\n }\n}\n\nconst mapStateToProps = ({\n auth: { loading, mfaRequired, mfaType, MFAQRCode },\n sites,\n}) => ({\n loading,\n mfaRequired,\n mfaType,\n MFAQRCode,\n windowWidth: sites.windowWidth,\n});\nconst mapDispatchToProps = { login };\n\nexport default withRouter(connect(mapStateToProps, mapDispatchToProps)(Login));\n","import React, { useRef, useState, useEffect, useMemo } from \"react\";\nimport { Button, Input, Spin } from \"antd\";\nimport { LockFilled } from \"@ant-design/icons\";\nimport styled from \"styled-components\";\nimport _ from \"lodash\";\nimport Countdown from \"antd/lib/statistic/Countdown\";\nimport moment from \"moment\";\nimport ReactCodeInput from \"react-code-input\";\nimport Loaders from \"../../../atoms/Loaders\";\n\nconst InputWrapper = styled.div`\n display: flex;\n justifiy-content: center;\n gap: 15px;\n align-items: center;\n .ant-input {\n margin: 10px;\n height: 50px;\n width: 50px;\n font-size: 35px;\n color:#f6bc1c;\n font-weight: bolder\n &:focus {\n border-color: #ffff1c;\n }\n &:hover {\n border-color: #ffff1c;\n }\n }\n`;\nconst ButtonWrapper = styled(Button)`\n width: 100%;\n height:45px\n top: 70px;\n border-color: #f6bc1c\n background: #f6bc1c;\n color: black;\n font-size: larger;\n font-weight: 600;\n`;\n\nconst CountdownWrapper = styled.div`\n .ant-statistic-content {\n margin: 0 auto;\n // margin-top: 80px;\n width: 60px;\n height: 60px;\n background-color: #f6bc1c;\n text-align: center;\n border-radius: 100px;\n .ant-statistic-content-value {\n padding: 11px;\n display: inline-block;\n }\n }\n`;\n\nexport default (props) => {\n const { loading,mfaType, MFAQRCode } = props;\n const [code, setCode] = useState({});\n const [verify, setVerifying] = useState(\"Verify\");\n const [countDown, setCountDown] = useState(5);\n\n const inputOneRef = useRef();\n const inputTwoRef = useRef();\n const inputThreeRef = useRef();\n const inputFourRef = useRef();\n const inputFiveRef = useRef();\n const inputSixRef = useRef();\n\n const deadline = useMemo(() => moment.now() + 1000 * 60, [props]);\n\n // const InputStyle={\n // 'font-size': props.windowWidth>600?'30px':'20px',\n // 'color': '#f6bc1c',\n // 'font-weight': 'bold',\n // 'width':props.windowWidth>600?'13%':'15%',\n // 'height':props.windowWidth>600?55:45,\n // }\n const InputStyle = {\n fontFamily: \"monospace\",\n margin: props.windowWidth > 600 ? 5 : 3,\n MozAppearance: \"textfield\",\n width: props.windowWidth > 600 ? \"65px\" : \"13%\",\n borderRadius: \"3px\",\n fontSize: props.windowWidth > 600 ? \"30px\" : \"20px\",\n height: props.windowWidth > 600 ? \"60px\" : \"45px\",\n paddingLeft: \"7px\",\n // backgroundColor: 'black',\n color: \"#f6bc1c\",\n border: \"1px solid lightgray\",\n };\n\n const prop = {\n inputStyle: {\n fontFamily: \"monospace\",\n margin: \"4px\",\n // MozAppearance: 'textfield',\n width: \"55px\",\n borderRadius: \"3px\",\n fontSize: \"14px\",\n height: \"60px\",\n paddingLeft: \"7px\",\n // backgroundColor: 'black',\n color: \"#f6bc1c\",\n border: \"1px solid black\",\n },\n };\n \n useEffect(() => {\n const codeInserted =\n Object.values(code).filter((digit) => digit).length == 6;\n // const codeInserted = code.length === 6;\n if (codeInserted) {\n // alert(code)\n setVerifying(\"Verifying\");\n props.onLoginSubmit(code);\n }\n }, [code]);\n\n if (mfaType == \"googleAuthenticator\") {\n return (\n \n \n {MFAQRCode ? (\n <>\n \n Scan QRcode with Google Authenticator to enable MFA\n \n \n \n ) : (\n \n To finish signing in, enter the code from your MFA device below\n \n )}\n \n \n MFA Code\n \n \n \n\n {\n verify === \"Verifying\" && \n }\n {/* \n {verify}\n */}\n \n \n );\n }\n\n return (\n \n \n {/* {JSON.stringify({ mfaType: mfaType, MFAQRCode: MFAQRCode })} */}\n {/*
\n \n
*/}\n \n \n\n {/* inputStyle={{InputStyle}} */}\n\n {/* {\n setCode((prev) => ({ ...prev, firstDigit: value }));\n inputTwoRef.current.focus({\n cursor: \"start\",\n });\n }}\n />\n {\n setCode((prev) => ({ ...prev, secondDigit: value }));\n value\n ? inputThreeRef.current.focus({\n cursor: \"start\",\n })\n : inputOneRef.current.focus({\n cursor: \"start\",\n });\n }}\n />\n {\n setCode((prev) => ({ ...prev, thirdDigit: value }));\n value\n ? inputFourRef.current.focus({\n cursor: \"start\",\n })\n : inputTwoRef.current.focus({\n cursor: \"start\",\n });\n }}\n />\n {\n setCode((prev) => ({ ...prev, fourthDigit: value }));\n value\n ? inputFiveRef.current.focus({\n cursor: \"start\",\n })\n : inputThreeRef.current.focus({\n cursor: \"start\",\n });\n }}\n />\n {\n setCode((prev) => ({ ...prev, fifthDigit: value }));\n value\n ? inputSixRef.current.focus({\n cursor: \"start\",\n })\n : inputFourRef.current.focus({\n cursor: \"start\",\n });\n }}\n />\n {\n setCode((prev) => ({ ...prev, sixDigit: value }));\n !value &&\n inputFiveRef.current.focus({\n cursor: \"start\",\n });\n }}\n /> */}\n \n
\n \n Enter Verification code, sent over email{\" \"}\n \n
\n \n Resend code ?\n \n 600 ? 50 : 40 }}\n >\n \n \n\n \n {loading ? \"Verifying\" :(\"Verify\")}\n \n \n );\n};\n"],"names":["buttonStyle","width","color","fontWeight","textTransform","backgroundColor","appColors","purple","borderColor","marginTop","marginBottom","inalaStyle","disabledStyle","cursor","ButtonWraper","styled","div","_templateObject","_taggedTemplateLiteral","LoginForm","React","constructor","arguments","state","isHidePassword","handleSubmit","e","preventDefault","this","props","form","validateFields","err","values","onLoginSubmit","render","getFieldDecorator","_jsxs","Form","onSubmit","className","style","border","children","_jsx","Item","rules","required","message","Input","prefix","Icon","type","placeholder","disabled","loading","Password","top","windowWidth","float","textDecoration","href","Button","htmlType","isInala","create","name","auth","login","loginBackground","logo","LogoWithTagline","imageExporter","Login","Component","loggedIn","mfaVerification","submitLogin","_ref","username","password","setState","logIn","code","verificationCode","Object","join","resendOtp","mfaRequired","mfaType","MFAQRCode","height","display","alignItems","justifyContent","backgroundImage","concat","backgroundSize","backgroundPosition","backgroundRepeat","backgroundAttachment","Card","bordered","padding","borderRadius","boxShadow","Spin","flexDirection","src","alt","MfaCArd","mapDispatchToProps","withRouter","connect","_ref2","sites","ButtonWrapper","_templateObject2","CountdownWrapper","_templateObject3","setCode","useState","verify","setVerifying","countDown","setCountDown","deadline","useRef","useMemo","moment","InputStyle","fontFamily","margin","MozAppearance","fontSize","paddingLeft","useEffect","filter","digit","length","_Fragment","ReactCodeInput","fields","inputStyle","onChange","Loaders","onClick","Countdown","value","onFinish","console","log","format"],"sourceRoot":""}