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AAAA,MARQ,U,qBCjCjC8C,OAAOgI,SAAWhI,OAAOgI,UAAY,IAAI9H,KAAK,CAC7C,SACA,WACE,OAAO,EAAQ,U,iBCHvB+H,EAAOC,QAAU,CAAC,qBAAuB,sC,gBCAzCD,EAAOC,QAAU,CAAC,OAAS,uBAAuB,KAAO,uB,iBCAzDD,EAAOC,QAAU,CAAC,aAAe,iCAAiC,cAAgB,kCAAkC,iBAAmB,qCAAqC,mBAAqB,uCAAuC,gBAAkB,oCAAoC,iBAAmB,qCAAqC,gBAAkB,oCAAoC,eAAe,iCAAiC,eAAiB,mCAAmC,SAAW,6BAA6B,kBAAkB,oCAAoC,UAAY,8BAA8B,WAAa,+BAA+B,YAAc,gCAAgC,UAAY,8BAA8B,QAAU,8B,iBCAtwBD,EAAOC,QAAU,CAAC,GAAK,eAAe,iBAAmB,6BAA6B,gBAAkB,4BAA4B,6BAA+B,yCAAyC,4BAA8B,wCAAwC,iBAAmB,6BAA6B,cAAgB,0BAA0B,gBAAkB,4BAA4B,eAAiB,6B","sources":["webpack://_N_E/./components/Alert/alert.component.jsx","webpack://_N_E/./components/loader/Loader.jsx","webpack://_N_E/./components/v3/components/Common/OverlayLoader/index.jsx","webpack://_N_E/./public/assets/seekho.png","webpack://_N_E/./components/login-form/Login-Form.component.jsx","webpack://_N_E/./HOC's/withLoggedIn.jsx","webpack://_N_E/./pages/login.jsx","webpack://_N_E/?7666","webpack://_N_E/./components/Alert/alert.module.scss","webpack://_N_E/./components/loader/Loader.module.scss","webpack://_N_E/./components/login-form/Login-Form.module.scss","webpack://_N_E/./styles/v3.module.scss"],"sourcesContent":["import React, { useState, useEffect, useCallback, useRef } from \"react\";\nimport MAlert from \"@mui/material/Alert\";\nimport styles from \"./alert.module.scss\";\nimport { Snackbar } from \"@mui/material\";\nexport default function Alert(props) {\n const [showAlertErrorMessage, setShowAlertErrorMessage] = useState(\n props.alert.message\n );\n\n // ON STATE UPDATE\n useEffect(() => {\n if (props.alert.message) {\n setShowAlertErrorMessage(true);\n } else {\n setShowAlertErrorMessage(false);\n }\n }, [props]);\n\n const closeTheAlertDeleteTheMessage = () => {\n setShowAlertErrorMessage(false);\n props?.setAlert({type: props.alert.type, message: \"\" })\n };\n return (\n
\n {showAlertErrorMessage && (\n \n {\n closeTheAlertDeleteTheMessage();\n }}\n \n severity={props.alert.type}\n >\n {props.alert.message}\n \n \n )}\n
\n );\n}\n","import React from \"react\";\nimport styles from \"./Loader.module.scss\";\n\nexport default function Loader() {\n return (\n
\n
\n );\n}\n","import React from \"react\";\nimport Loader from \"../../../../loader/Loader\";\n\nconst OverlayLoader = ({ className }) => {\n return (\n
\n \n \n
\n \n );\n};\n\nexport default OverlayLoader;\n","export default {\"src\":\"/_next/static/media/seekho.f385cc97.png\",\"height\":117,\"width\":321,\"blurDataURL\":\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAgAAAADCAYAAACuyE5IAAAAU0lEQVR42mNYLntX407w4SwGIPj64R/Pv3//eIFYFIiFgJidYUv5IYcjhQcPNEa9kf3//7/hnz//nIAS9kBsDsQqDP+nMrA+1D3jxcDwn5EBCwAA4cQuquoTZJsAAAAASUVORK5CYII=\",\"blurWidth\":8,\"blurHeight\":3};","import React, { useEffect, useMemo, useState } from \"react\";\nimport { auth, firebase } from \"../../firebase/firebase.utils\";\nimport styles from \"./Login-Form.module.scss\";\nimport IconLogo from \"../../public/assets/seekho.png\";\nimport Image from \"next/image\";\nimport Alert from \"../Alert/alert.component\";\nimport {\n Button,\n CircularProgress,\n InputAdornment,\n TextField,\n} from \"@mui/material\";\nimport { useRouter } from \"next/router\";\nimport useStore from \"../../store/UseStore\";\nimport {\n autoReadSMS,\n generateEncryptedString,\n handleGenerateRandomString,\n handleIsAuthenticated,\n isIPhone,\n} from \"../../utils/utils\";\nimport Cookies from \"js-cookie\";\nimport { axiosPublic } from \"../../api/axiosCustom\";\nimport { apiGateway } from \"../../utils/config\";\nimport useAxiosPrivate from \"../../hooks/useAxiosPrivate\";\nimport {\n handleAutoReadOtpEvent,\n handleClickedContinueAndOTPScreenViewed,\n handleLoginSuccessEvent,\n handleSignInEvents,\n handleWebTrueCallerLoginEvent,\n} from \"../../utils/helperEventFunctions\";\nimport OverlayLoader from \"../v3/components/Common/OverlayLoader\";\n\nconst LoginForm = ({\n addUserInGlobalState,\n setUser,\n user,\n webviewEvent,\n aes_key,\n source_screen,\n truecaller_app_key,\n}) => {\n const [phoneNumber, setPhoneNumber] = useState(\"\");\n const [otp, setOtp] = useState(\"\");\n const [verificationId, setVerificationId] = useState(\"\");\n const [isAlert, setIsAlert] = useState(null);\n const [counter, setCounter] = React.useState(-1);\n const [otpSent, setOtpSent] = useState(false);\n const [isLoading, setIsLoading] = useState(false);\n const [isRecaptcha, setRecaptcha] = useState(false);\n const [phoneNumberIncorrect, setPhoneNumberIncorrect] = useState(false);\n const [otpResendMessage, setOtpResendMessage] = useState(\"OTP Sent\");\n const [verifyTrueCallerLoading, setVerifyTrueCallerLoading] = useState(false);\n const {\n userData,\n setIsUserLoggedIn,\n setUserData,\n setOpenPaymentModal,\n setIsPageRefresh,\n } = useStore();\n const router = useRouter();\n const axiosPrivate = useAxiosPrivate();\n const { fromPath, seriesSlug } = router.query;\n const firebase_uid = user?.uid;\n\n const handleCheckUserAfterLogin = async () => {\n try {\n const url = `${apiGateway}/api/v1/users/me/`;\n const response = await axiosPrivate.get(url);\n if (response?.data) {\n const isPremium = response?.data?.user?.is_premium;\n setIsUserLoggedIn(true);\n setUserData(response?.data?.user);\n setVerifyTrueCallerLoading(false);\n if (isPremium) {\n if (seriesSlug) {\n router.replace(`/video/${seriesSlug}`);\n } else {\n // router.replace(\"/app\");\n window.location.replace(\"/app\");\n }\n } else {\n if (fromPath && fromPath === \"premium\") {\n setOpenPaymentModal(true);\n router.replace(\n `/premium${seriesSlug ? `?seriesSlug=${seriesSlug}` : \"\"}`\n );\n } else {\n router.replace(\"/premium\");\n }\n }\n }\n } catch (error) {\n router.push(\"/\");\n }\n };\n\n const handleSignIn = async () => {\n handleSignInEvents({ firebase_uid, webviewEvent });\n const url = `${apiGateway}/api/v1.1/auth/send-otp/`;\n const payload = {\n phone_number: phoneNumber,\n country_code: \"+91\",\n request_id: generateEncryptedString({ secretKey: aes_key }),\n request_source: \"web\",\n };\n try {\n setIsLoading(true);\n const response = await axiosPublic.post(url, payload);\n if (response?.data) {\n setOtpSent(true);\n setCounter(30);\n setRecaptcha(false);\n setIsLoading(false);\n setVerificationId(response?.data?.verification_id);\n setIsAlert({ type: \"success\", message: response?.data?.message });\n }\n } catch (error) {\n setIsLoading(false);\n setRecaptcha(false);\n setIsAlert({\n type: \"error\",\n message: error.message ?? \"Oops!, OTP send failed.\",\n });\n }\n };\n\n const handleSerializeCookie = async ({ token }) => {\n try {\n const response = await fetch(\"/api/login\", {\n method: \"POST\",\n headers: {\n \"Content-Type\": \"application/json\",\n },\n body: JSON.stringify({\n token,\n }),\n });\n const data = await response.json();\n return data;\n } catch (error) {\n console.log(error);\n }\n };\n\n const handleSetCookies = ({ response }) => {\n if (process.env.NODE_ENV === \"development\") {\n Cookies.set(\"access_token\", response?.data?.access_token, {\n expires: 7,\n });\n Cookies.set(\"refresh_token\", response?.data?.refresh_token, {\n expires: 7,\n });\n }\n Cookies.set(\n \"refresh_token_expiry_seekho\",\n response?.data?.refresh_token_expiry,\n { expires: 7 }\n );\n Cookies.set(\n \"access_token_expiry_seekho\",\n response?.data?.access_token_expiry,\n { expires: 7 }\n );\n Cookies.set(\n \"renew_access_token_before_seekho\",\n response?.data?.renew_access_token_before,\n { expires: 7 }\n );\n Cookies.set(\n \"renew_refresh_token_before_seekho\",\n response?.data?.renew_refresh_token_before,\n { expires: 7 }\n );\n };\n\n // function make user login on firebase and sets required details in localStorage\n const handleCommonVerifier = async ({ response }) => {\n handleSetCookies({ response });\n handleSerializeCookie({ token: response?.data?.access_token }); // Sets the token in cookie for server\n try {\n // Making the user sign in on Firebase\n await firebase\n .auth()\n .signInWithCustomToken(response?.data?.firebase_token);\n // User is signed in, fetch the user details from Firebase\n const currentUser = firebase.auth().currentUser;\n if (currentUser) {\n handleLoginSuccessEvent({ firebase_uid, webviewEvent });\n const user = { accessToken: \"\", uid: \"\" };\n currentUser?.getIdToken().then((data) => {\n if (data) handleCheckUserAfterLogin(data);\n setIsAlert({\n type: \"success\",\n message: \"You logged in successfully\",\n });\n setUser({ accessToken: data, uid: currentUser.uid });\n user.accessToken = data;\n addUserInGlobalState({\n accessToken: data,\n uid: currentUser.uid,\n });\n if (typeof window !== \"undefined\") {\n try {\n localStorage.setItem(\"isLoggedIn\", \"true\");\n localStorage.setItem(\n \"user\",\n JSON.stringify({\n accessToken: data,\n uid: currentUser.uid,\n })\n );\n localStorage.setItem(\"token\", data); // Firebase token\n } catch (storageError) {\n console.warn(\"Failed to access localStorage:\", storageError);\n }\n }\n });\n }\n } catch (error) {\n console.warn(\"Error fetching user details:\", error.message);\n }\n };\n\n const handleOnOTPSubmit = async (autoOtp) => {\n handleClickedContinueAndOTPScreenViewed({ firebase_uid, webviewEvent });\n if (otp?.length === 6) {\n let hostName_endPoint =\n window.location.hostname !== \"localhost\"\n ? \"/api/v1/auth/web/verify-otp/\"\n : \"/api/v1/auth/verify-otp/\";\n\n const url = `${apiGateway}${hostName_endPoint}`;\n let payload = {\n phone_number: phoneNumber,\n country_code: \"+91\",\n verification_id: verificationId,\n otp: otp || autoOtp,\n };\n\n try {\n setIsLoading(true);\n const response = await axiosPublic.post(url, payload);\n if (response?.data) {\n handleCommonVerifier({ response });\n }\n } catch (error) {\n setIsLoading(false);\n if (error && error?.response && error?.response.data) {\n setIsAlert({\n type: \"error\",\n message: error?.response.data?.error_message,\n });\n } else {\n setIsAlert({\n type: \"error\",\n message: `Oops!, ${\n error?.error_message ?? \"Not able to verify otp\"\n }.`,\n });\n }\n }\n } else {\n setIsAlert({ type: \"error\", message: \"OTP Must Be 6 digits\" });\n }\n };\n\n const handleResetToPhoneNumber = () => {\n setOtpSent(false);\n setOtp(null);\n };\n\n useEffect(() => {\n if (counter >= 0) {\n setTimeout(() => setCounter(counter - 1), 1000);\n } else {\n setCounter(-1);\n }\n }, [counter]);\n\n const callBackForOTP = (x) => {\n setOtp(x);\n handleAutoReadOtpEvent({\n source_screen,\n status: \"clicked\",\n webviewEvent,\n });\n };\n\n const handleVerifyWithTrueCaller = async ({ reqNonce }) => {\n try {\n setVerifyTrueCallerLoading(true);\n const url = `${apiGateway}/api/v1/auth/website/truecaller-verify/`;\n const request_id = reqNonce;\n const payload = { request_id };\n const response = await axiosPublic.post(url, payload);\n const userReject = response?.data?.truecaller_status;\n const isReject =\n userReject === \"user_rejected\" || userReject === \"use_another_number\";\n if (response?.status === 200) {\n if (isReject) {\n setVerifyTrueCallerLoading(false);\n handleWebTrueCallerLoginEvent({\n firebase_uid,\n source_screen,\n webviewEvent,\n status: \"Truecaller login rejected\",\n });\n }\n handleCommonVerifier({ response });\n handleWebTrueCallerLoginEvent({\n firebase_uid,\n source_screen,\n status: \"Truecaller login success\",\n webviewEvent,\n });\n return true; // returning true, so that api can be called only once\n }\n } catch (error) {\n console.error(error);\n }\n return false; // returning false, so that api can be called only 3 times\n };\n\n const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms));\n\n const handleCallVerifyWithTrueCaller = async ({ reqNonce }) => {\n const intervals = [1000, 2000, 3000]; // Intervals in milliseconds\n for (let i = 0; i < intervals.length; i++) {\n const success = await handleVerifyWithTrueCaller({ reqNonce });\n if (success) break;\n if (i === intervals.length - 1) {\n // If this is the last attempt and it fails, show alert and set loading to false\n setIsAlert({\n type: \"error\",\n message: \"Truecaller login failed, Try via mobile number\",\n });\n setVerifyTrueCallerLoading(false);\n } else {\n await delay(intervals[i]);\n }\n }\n };\n\n const handleHelper = ({ reqNonce }) => {\n setTimeout(() => {\n if (document.hasFocus()) {\n handleCallVerifyWithTrueCaller({ reqNonce });\n } else {\n handleHelper({ reqNonce });\n }\n }, 600);\n };\n\n const handleOpenTruecallerVerification = () => {\n if (typeof window !== \"undefined\") {\n const reqNonce = handleGenerateRandomString({ length: 20 }); // generating unique a requestId for every login\n const truecallerVerificationURL = `truecallersdk://truesdk/web_verify?requestNonce=${reqNonce}&partnerKey=${truecaller_app_key}&partnerName=Seekho&lang=en&skipOption=useanothermethod`;\n window.location = truecallerVerificationURL;\n\n setTimeout(() => {\n if (document.hasFocus()) {\n // Truecaller app not present on the device\n // Redirect the user to your alternate verification page\n // You can handle this redirection logic here\n } else {\n handleHelper({ reqNonce });\n handleWebTrueCallerLoginEvent({\n firebase_uid,\n source_screen,\n status: \"Truecaller pop up viewed\",\n webviewEvent,\n });\n }\n }, 600);\n }\n };\n\n useMemo(() => {\n if (otp?.length === 6) {\n handleOnOTPSubmit(otp);\n }\n }, [otp]);\n\n useEffect(() => {\n if (otpSent) autoReadSMS(callBackForOTP);\n }, [otpSent]);\n\n useEffect(() => {\n if (!isIPhone()) {\n if (!handleIsAuthenticated()) {\n handleOpenTruecallerVerification();\n }\n }\n }, []);\n\n return (\n
\n {verifyTrueCallerLoading && }\n {isAlert && }\n
\n
\n
\n \n
\n
\n

Sign In

\n
\n
\n \n + 91\n \n ),\n endAdornment: otpSent ? (\n \n \n Change\n \n \n ) : (\n \"\"\n ),\n inputMode: \"numeric\",\n pattern: \"[0-9]*\",\n }}\n error={phoneNumberIncorrect}\n helperText={\n phoneNumberIncorrect ? \"Enter the phone number correctly !\" : \"\"\n }\n placeholder=\"Enter phone number\"\n className={`${styles.textfield_phone} w-75 mx-5 my-2`}\n type={\"number\"}\n value={phoneNumber}\n style={{ color: \"white\" }}\n onChange={(e) => {\n if (e.target.value.length <= 10) setPhoneNumber(e.target.value);\n }}\n disabled={otpSent ? true : false}\n />\n {otpSent && (\n
\n \n {otpResendMessage}\n \n 0 ? \" disabled\" : \"\")}\n style={{\n fontSize: \"0.95rem\",\n color: \"#219425\",\n border: \"none\",\n textDecoration: \"underline\",\n }}\n onClick={() => {\n setCounter(30); // setting resend otp count to 30\n handleSignIn();\n setOtpResendMessage(\"OTP Sent to your number\");\n }}\n >\n Resend OTP {counter > 0 && in {counter} }\n
\n
\n )}\n
\n {otpSent && (\n
\n {\n if (e.target.value.length <= 6) setOtp(e.target.value);\n }}\n />\n
\n )}\n \n {isLoading ? (\n \n ) : (\n \"Continue\"\n )}\n \n
\n
\n This page is protected by Google reCAPTCHA to ensure you're not a\n bot.\n
\n
\n
\n \n );\n};\n\nexport default LoginForm;\n","import { useRouter } from \"next/router\";\nimport { useEffect, useState } from \"react\";\nimport { apiGateway } from \"../utils/config\";\nimport useAxiosPrivate from \"../hooks/useAxiosPrivate\";\nimport OverlayLoader from \"../components/v3/components/Common/OverlayLoader\";\n\nconst withLoggedIn = (WrappedComponent) => {\n const withLoggedIn = (props) => {\n const [isLoading, setIsLoading] = useState(true);\n const router = useRouter();\n const axiosPrivate = useAxiosPrivate();\n\n const handleCheckUser = async () => {\n try {\n setIsLoading(true);\n const url = `${apiGateway}/api/v1/users/me/`;\n const response = await axiosPrivate.get(url);\n if (response?.data) {\n router.back();\n }\n } catch (error) {\n setIsLoading(false);\n }\n };\n\n useEffect(() => {\n handleCheckUser();\n }, []);\n\n return isLoading ? : ;\n };\n\n return withLoggedIn;\n};\n\nexport default withLoggedIn;\n","import React, { useContext, useEffect } from \"react\";\nimport { handleIsAuthenticated } from \"../utils/utils\";\nimport { Context } from \"../store\";\nimport { handleLoginPageViewedEvent } from \"../utils/helperEventFunctions\";\nimport {\n aes_secret_key,\n truecaller_app_key,\n} from \"../utils/constants/env.constants\";\nimport styles from \"../styles/v3.module.scss\";\nimport LoginForm from \"../components/login-form/Login-Form.component\";\nimport withLoggedIn from \"../HOC's/withLoggedIn\";\nimport Head from \"next/head\";\nimport TAGS from \"../public/headJson.json\";\n\nconst Login = (props) => {\n const { user, webviewEvent, source_screen } = props;\n const globalState = useContext(Context);\n\n useEffect(() => {\n if (!handleIsAuthenticated()) {\n handleLoginPageViewedEvent({\n firebase_uid: user?.uid,\n source_screen,\n webviewEvent,\n });\n }\n }, []);\n\n return (\n
\n \n {TAGS.login.title}\n \n \n
\n \n
\n
\n );\n};\n\nexport default withLoggedIn(Login);\n","\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/login\",\n function () {\n return require(\"private-next-pages/login.jsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/login\"])\n });\n }\n ","// extracted by mini-css-extract-plugin\nmodule.exports = {\"alertMessagesSection\":\"alert_alertMessagesSection__GEUrY\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"loader\":\"Loader_loader__ZKOIP\",\"spin\":\"Loader_spin__0HLl0\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"loginwrapper\":\"Login-Form_loginwrapper__QB1eP\",\"loginpageLogo\":\"Login-Form_loginpageLogo__2FMqs\",\"messgae_continer\":\"Login-Form_messgae_continer__VmVV9\",\"login_wrapper_form\":\"Login-Form_login_wrapper_form___4D1Y\",\"loginpage_title\":\"Login-Form_loginpage_title__0egmu\",\"login_form_block\":\"Login-Form_login_form_block__jMAVG\",\"textfield_phone\":\"Login-Form_textfield_phone__wdgnO\",\"Mui-disabled\":\"Login-Form_Mui-disabled__IR_kJ\",\"info_recaptcha\":\"Login-Form_info_recaptcha__kRxDU\",\"logoIcon\":\"Login-Form_logoIcon__AslaQ\",\"bglogin-primary\":\"Login-Form_bglogin-primary__XwcLA\",\"logintext\":\"Login-Form_logintext__q8SUg\",\"greeentext\":\"Login-Form_greeentext__hnkE9\",\"loginheader\":\"Login-Form_loginheader__jweI4\",\"googleBtn\":\"Login-Form_googleBtn__vxm7W\",\"btnName\":\"Login-Form_btnName__MNXV_\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"v3\":\"v3_v3__vaoBs\",\"team_our_section\":\"v3_team_our_section__3Gh8x\",\"desktop_premium\":\"v3_desktop_premium__pZTl_\",\"future_ready_section_desktop\":\"v3_future_ready_section_desktop__7I9PB\",\"future_ready_section_mobile\":\"v3_future_ready_section_mobile__4C5et\",\"loader_container\":\"v3_loader_container__7bHwR\",\"company_stats\":\"v3_company_stats__tN9O6\",\"creator_section\":\"v3_creator_section__MdSg5\",\"mobile_premium\":\"v3_mobile_premium__OCCKU\"};"],"names":["Alert","props","useState","alert","message","showAlertErrorMessage","setShowAlertErrorMessage","useEffect","closeTheAlertDeleteTheMessage","setAlert","type","className","styles","open","autoHideDuration","onClose","anchorOrigin","horizontal","vertical","variant","severity","Loader","addUserInGlobalState","setUser","user","webviewEvent","aes_key","source_screen","truecaller_app_key","phoneNumber","setPhoneNumber","otp","setOtp","verificationId","setVerificationId","isAlert","setIsAlert","React","counter","setCounter","otpSent","setOtpSent","isLoading","setIsLoading","setRecaptcha","phoneNumberIncorrect","otpResendMessage","setOtpResendMessage","verifyTrueCallerLoading","setVerifyTrueCallerLoading","useStore","setIsUserLoggedIn","userData","setUserData","setOpenPaymentModal","router","setIsPageRefresh","useRouter","axiosPrivate","useAxiosPrivate","query","fromPath","seriesSlug","firebase_uid","uid","handleCheckUserAfterLogin","url","apiGateway","get","response","data","isPremium","is_premium","replace","window","location","push","handleSignIn","handleSignInEvents","payload","phone_number","country_code","request_id","generateEncryptedString","secretKey","request_source","axiosPublic","verification_id","handleSerializeCookie","token","fetch","method","headers","body","JSON","stringify","json","console","log","handleSetCookies","Cookies","refresh_token_expiry","expires","access_token_expiry","renew_access_token_before","renew_refresh_token_before","handleCommonVerifier","access_token","firebase","signInWithCustomToken","firebase_token","currentUser","handleLoginSuccessEvent","accessToken","getIdToken","then","localStorage","setItem","storageError","warn","handleOnOTPSubmit","autoOtp","handleClickedContinueAndOTPScreenViewed","length","hostName_endPoint","hostname","error_message","setTimeout","callBackForOTP","x","handleAutoReadOtpEvent","status","handleVerifyWithTrueCaller","reqNonce","userReject","truecaller_status","isReject","handleWebTrueCallerLoginEvent","error","delay","ms","Promise","resolve","handleCallVerifyWithTrueCaller","intervals","i","handleHelper","document","hasFocus","handleOpenTruecallerVerification","handleGenerateRandomString","truecallerVerificationURL","useMemo","autoReadSMS","isIPhone","handleIsAuthenticated","OverlayLoader","loading","src","IconLogo","alt","TextField","InputProps","startAdornment","InputAdornment","position","endAdornment","onClick","style","fontSize","cursor","inputMode","pattern","helperText","placeholder","value","color","onChange","e","target","disabled","border","textDecoration","id","Button","background","CircularProgress","width","height","WrappedComponent","withLoggedIn","handleCheckUser","back","globalState","useContext","Context","handleLoginPageViewedEvent","TAGS","name","content","addUser","aes_secret_key","__NEXT_P","module","exports"],"sourceRoot":""}