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AA,EAAAA,KAAA,QACEG,UAAU,cACVG,MAAO,CAAE2F,MAAO,UAAWC,WAAY,OACvCC,QAASA,KACPhF,EAAS,kBAAkB,EAC3BjB,SACH,wBAKHiD,EAAAA,EAAAA,MAACvC,EAAAA,EAAAA,KAAS,CAACT,UAAU,OAAMD,SAAA,EACzBF,EAAAA,EAAAA,KAACoG,EAAAA,GAAM,CACLC,SAAS,SACT/F,MAAO,CAAEC,OAAQ,OAAQoD,UAAW,KAAM2C,aAAc,MACxDnG,UAAWK,EAAW,+BAAiC,sBACvDuE,KAAK,UACLK,KAAK,QACL5E,SAAUA,EAASN,SACpB,cAGDiD,EAAAA,EAAAA,MAAA,KAAGhD,UAAU,6CAA6CG,MAAO,CAAEgG,aAAc,MAAOpG,SAAA,CAAC,0BAEvFF,EAAAA,EAAAA,KAAA,QACEG,UAAU,mBACVG,MAAO,CAAE2F,MAAO,UAAWC,WAAY,OACvCC,QAASA,KACPhF,EAAS,UAAU,EACnBjB,SACH,iDAYnBF,EAAAA,EAAAA,KAAA,OACEG,UAAY,iCAAgCc,EAA0B,UAAX,UAC3DX,MAAO,CAAE8C,SAAU,UAAWlD,UAE9BF,EAAAA,EAAAA,KAACD,EAAY,QAIrB,C,sEC5NIwG,E,MAA0B,GAA4B,KAE1DA,EAAwBC,KAAK,CAACC,EAAOC,GAAI,uNAAwN,GAAG,CAAC,QAAU,EAAE,QAAU,CAAC,0CAA0C,MAAQ,GAAG,SAAW,gGAAgG,eAAiB,CAAC,wNAAwN,WAAa,MAEnrB,S,kCCPA,QAAe,IAA0B,sC,mCCAzC,QAAe,IAA0B,sC,mCCAzC,QAAe,IAA0B,sC,mCCAzC,QAAe,IAA0B,sC","sources":["webpack://bnkd_web/./src/pages/Login/login.less?d75a","webpack://bnkd_web/./src/pages/Login/splashscreen.jsx","webpack://bnkd_web/./src/pages/Login/index.js","webpack://bnkd_web/./src/pages/Login/login.less","webpack://bnkd_web/./src/assets/images/Logo.svg","webpack://bnkd_web/./src/assets/images/image-1.png","webpack://bnkd_web/./src/assets/images/image-2.png","webpack://bnkd_web/./src/assets/images/image.png"],"sourcesContent":["\n import API from \"!../../../node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js\";\n import domAPI from \"!../../../node_modules/style-loader/dist/runtime/styleDomAPI.js\";\n import insertFn from \"!../../../node_modules/style-loader/dist/runtime/insertBySelector.js\";\n import setAttributes from \"!../../../node_modules/style-loader/dist/runtime/setAttributesWithoutAttributes.js\";\n import insertStyleElement from \"!../../../node_modules/style-loader/dist/runtime/insertStyleElement.js\";\n import styleTagTransformFn from \"!../../../node_modules/style-loader/dist/runtime/styleTagTransform.js\";\n import content, * as namedExport from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/less-loader/dist/cjs.js!./login.less\";\n \n \n\nvar options = {};\n\noptions.styleTagTransform = styleTagTransformFn;\noptions.setAttributes = setAttributes;\n\n options.insert = insertFn.bind(null, \"head\");\n \noptions.domAPI = domAPI;\noptions.insertStyleElement = insertStyleElement;\n\nvar update = API(content, options);\n\n\n\nexport * from \"!!../../../node_modules/css-loader/dist/cjs.js!../../../node_modules/less-loader/dist/cjs.js!./login.less\";\n export default content && content.locals ? content.locals : undefined;\n","import bnkdWhite from '../../assets/images/bnkdwhite.png'\nimport './login.less'\nconst SplashScreen=()=>{\nreturn(\n <>\n
\n \n\n
\n \n)\n}\nexport default SplashScreen;","import React, { useState, useEffect } from 'react';\nimport Button from 'antd/es/button';\nimport Input from 'antd/es/input';\nimport Form from 'antd/es/form';\nimport { useNavigate } from 'react-router-dom';\nimport '../../pages/Signup/signup.less';\nimport img1 from '../../assets/images/image.png';\nimport img2 from '../../assets/images/image-1.png';\nimport img3 from '../../assets/images/image-2.png';\n//import logo from '../../assets/images/bnkdlogo.png'\nimport logo from '../../assets/images/Logo.svg';\nimport { Carousel } from 'antd';\nimport { signinapi } from '../../api/detailsapi';\nimport SplashScreen from './splashscreen';\nimport { useSelector } from 'react-redux';\nimport { useDispatch } from 'react-redux';\nimport { addUser } from '../../store/loginslice/LoginSlice';\nimport { handleRouting } from '../../common/helper/handleRouting';\n\nfunction Login() {\n const [disabled, setDisabled] = useState(true);\n const [form] = Form.useForm();\n const images = [img1, img2, img3];\n const [splashScreen, setSplashScreen] = useState(true);\n const navigate = useNavigate();\n\n const dispatch = useDispatch();\n useEffect(() => {\n setTimeout(() => {\n setSplashScreen(false);\n }, 1000);\n }, []);\n\n useEffect(() => {\n const urlParams = new URLSearchParams(window.location.search);\n const impersonationToken = urlParams.get('token');\n\n if (impersonationToken) {\n window.history.replaceState({}, document.title, window.location.pathname);\n\n doSignIn({ impersonationToken });\n }\n }, []);\n\n const onFinish = (values) => {\n const body = {\n email: values.email,\n password: values.password,\n };\n doSignIn(body);\n };\n\n const doSignIn = async (values) => {\n setDisabled(true);\n const response = await signinapi(values);\n if (response?.data?.status === 200) {\n localStorage.setItem('token', response.data.output.accessToken);\n dispatch(addUser(response.data.output));\n if (response.data.output.accessToken) {\n handleRouting(response.data.output?.screen, response.data.output?.isPaid, navigate);\n }\n }\n if (response?.data?.status === 400) {\n // message.success()\n }\n };\n\n const handleFormChange = () => {\n const hasErrors =\n !form.isFieldsTouched(true) || form.getFieldsError().filter(({ errors }) => errors.length).length > 0;\n setDisabled(hasErrors);\n };\n\n return (\n <>\n \n
\n
\n
\n \n {images.map((data, ind) => (\n
\n \n
\n ))}\n
\n
\n
\n\n
\n
\n
\n \n
\n
\n

Welcome back!

\n

\n Welcome to BNKD, your trusted membership app for businesses! Generate recurring revenue and foster\n customer loyalty with our easy-to-use platform. Create an account now to unlock a world of benefits\n and rewards!\n

\n
\n \n
Email
\n \n \n \n
Password
\n ({\n validator(_, value) {\n const isContainsUppercase = /^(?=.*[A-Z]).*$/;\n const isContainsLowercase = /^(?=.*[a-z]).*$/;\n const isContainsNumber = /^(?=.*[0-9]).*$/;\n const isContainsSymbol = /^(?=.*[~`!@#$%^&*()--+={}|\\\\:;\"'<>,.?/_₹]).*$/;\n if (value?.length < 8) {\n return Promise.reject(new Error('Must contain minimum of 8 characters.'));\n }\n if (\n !isContainsNumber.test(value) ||\n !isContainsLowercase.test(value) ||\n !isContainsSymbol.test(value) ||\n !isContainsUppercase.test(value)\n ) {\n return Promise.reject(\n new Error('Atleast one uppercase, lowercase, number(0-9), special character.')\n );\n }\n\n return Promise.resolve();\n },\n }),\n ]}\n >\n setPassword(e.target.value)}\n size=\"large\"\n placeholder=\"Password (min.8 character)\"\n className=\"input-field\"\n />\n \n

\n {\n navigate('/forgotpassword');\n }}\n >\n Forgot password?\n \n

\n\n \n \n Continue\n \n

\n Don't have an account?\n {\n navigate('/signup');\n }}\n >\n Create free account\n \n

\n
\n \n
\n
\n
\n
\n
\n \n \n \n \n \n );\n}\n\nexport default Login;\n","// Imports\nimport ___CSS_LOADER_API_SOURCEMAP_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/sourceMaps.js\";\nimport ___CSS_LOADER_API_IMPORT___ from \"../../../node_modules/css-loader/dist/runtime/api.js\";\nvar ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);\n// Module\n___CSS_LOADER_EXPORT___.push([module.id, \".splashscreenimg {\\n width: 100vw;\\n height: 100vh;\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n background-color: #003B5B;\\n}\\n.fade-effect {\\n transition: all 2s ease-in-out;\\n}\\n\", \"\",{\"version\":3,\"sources\":[\"webpack://./src/pages/Login/login.less\"],\"names\":[],\"mappings\":\"AAAA;EACE,YAAA;EACA,aAAA;EACA,aAAA;EACA,uBAAA;EACA,mBAAA;EACA,yBAAA;AACF;AAEA;EACE,8BAAA;AAAF\",\"sourcesContent\":[\".splashscreenimg {\\n width: 100vw;\\n height: 100vh;\\n display: flex;\\n justify-content: center;\\n align-items: center;\\n background-color: #003B5B;\\n}\\n\\n.fade-effect {\\n transition: all 2s ease-in-out;\\n}\"],\"sourceRoot\":\"\"}]);\n// Exports\nexport default ___CSS_LOADER_EXPORT___;\n","export default __webpack_public_path__ + \"c3844e3ab1caf359dea982d741a2c19c.svg\";","export default __webpack_public_path__ + \"cfdcac8562574be15bd27b1e9d77d6d4.png\";","export default __webpack_public_path__ + \"bba0e878d9e00b8c2631d531482d5048.png\";","export default __webpack_public_path__ + \"0cbb64622175af1dc371e7f03c3f6f83.png\";"],"names":["options","styleTagTransform","setAttributes","insert","domAPI","insertStyleElement","SplashScreen","_jsx","_Fragment","children","className","src","bnkdWhite","style","height","disabled","setDisabled","useState","form","Form","images","img1","img2","img3","splashScreen","setSplashScreen","navigate","useNavigate","dispatch","useDispatch","useEffect","setTimeout","impersonationToken","URLSearchParams","window","location","search","get","history","replaceState","document","title","pathname","doSignIn","async","response","signinapi","values","data","status","localStorage","setItem","output","accessToken","addUser","handleRouting","screen","isPaid","_jsxs","overflow","Carousel","autoplay","effect","autoplaySpeed","map","ind","marginTop","logo","name","initialValues","remember","onFinish","body","email","password","autoComplete","layout","onFieldsChange","handleFormChange","hasErrors","isFieldsTouched","getFieldsError","filter","_ref","errors","length","type","rules","message","required","Input","size","placeholder","_ref2","getFieldValue","validator","_","value","Promise","reject","Error","test","resolve","textAlign","color","fontWeight","onClick","Button","htmlType","marginBottom","___CSS_LOADER_EXPORT___","push","module","id"],"sourceRoot":""}