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AI,CACHsD,eAAgB,SACdC,EACAC,GAEAd,GAAe,UAAKT,EAAgBsB,KAEtCE,SAAU,W,OAAMzB,EAASC,EAAaC,EAAgBC,IACtD1B,MAAO,CACLiD,QAAS,OACTZ,cAAe,SACfnC,OAAQ,EACRD,SAAU,K,WAGZ,SAACmC,EAAAA,EAAG,C,UACF,SAACc,EAAW,C,SAAC,0BAEdlB,GACC,UAACmB,EAAa,C,WACZ,UAACC,IAAC,C,UAAC,6BAC0BpB,EAAO,+DAGpC,SAACoB,IAAC,C,SAAC,oIAML,yBAEF,SAAC9D,EAAa,KACd,SAACoB,EAAoB,CAACC,YAAaA,KACnC,SAACK,EAAS,CAACC,WAAYA,aAO3BiC,EAAcG,EAAAA,GAAAA,GAAAA,WAAS,C,6BAATA,C,KACT,SAACC,G,IAAUA,EAAW,IAAXA,OAAW,QAAXA,EAAAA,EAAMC,aAAK,IAAXD,GAAoB,QAApBA,EAAAA,EAAaE,eAAO,OAAW,QAA/BF,EAAAA,EAAsBG,iBAAS,WAA/BH,EAAoB,EAAc,OAWlDH,EAAgBE,EAAAA,GAAAA,IAAAA,WAAU,C,6BAAVA,C,KAOhB/B,EAAkB+B,EAAAA,GAAAA,EAAAA,WAAQ,C,6BAARA,C,KAMX,SAACC,G,OAAUA,EAAMC,MAAMC,QAAQE,KAAK,MAI3C9C,GAAeyC,EAAAA,EAAAA,IAAOM,EAAAA,GAAO,Y,6BAAdN,C,KAarBvB,EAAoB8B,UAAW,EAE/B,c","sources":["webpack://_N_E/?1a06","webpack://_N_E/./src/lib/utils/methods.tsx","webpack://_N_E/./src/pages/auth/forgot-password.tsx"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/auth/forgot-password\",\n function () {\n return require(\"private-next-pages/auth/forgot-password.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/auth/forgot-password\"])\n });\n }\n ","import { message } from 'antd';\n\nimport { IUserAttributes } from '@lib/types/authUser.types';\n\nimport { US_ETHNICITY_MAP } from './constants';\n\n// legacy - unmodified\nexport const validatePassword = (\n password: string,\n additionalChecks: { label: string; value: string }[] = [],\n badPasswords?: {\n [password: string]: boolean | { label: string; value: string };\n }\n): boolean | { label: string; value: string } => {\n password = password.toLowerCase().trim();\n\n const BAD_PASSWORD_MAP = Object.assign({}, badPasswords);\n const pieces = [];\n\n let BAD_PASSWORD = null;\n\n for (const addtlValue of additionalChecks) {\n addtlValue.value = addtlValue.value?.toLowerCase().trim();\n if (addtlValue.value) {\n BAD_PASSWORD_MAP[addtlValue?.value] = addtlValue;\n pieces.push(addtlValue);\n\n const adjusted_value = addtlValue?.value?.replace(/\\W/gi, '-');\n const splitValue = adjusted_value ? adjusted_value.split('-') : [];\n for (const sect of splitValue) {\n BAD_PASSWORD_MAP[sect] = addtlValue;\n BAD_PASSWORD_MAP[sect?.replace(/\\d/gi, '')] = addtlValue;\n if (sect.length > 2) {\n pieces.push({ ...addtlValue, value: sect });\n }\n if (sect?.replace(/\\d/gi, '').length > 2) {\n pieces.push({ ...addtlValue, value: sect?.replace(/\\d/gi, '') });\n }\n }\n }\n }\n\n const passwordPieces = password?.replace(/\\d/gi, '-')?.split('-');\n passwordPieces?.forEach((piece) => {\n const foundPiece = pieces.find(\n (subPiece) =>\n subPiece.value.trim().toLowerCase() == piece.trim().toLowerCase() ||\n piece.includes(subPiece.value.trim().toLowerCase())\n );\n if (foundPiece) {\n BAD_PASSWORD = foundPiece;\n }\n });\n\n const ADJ_PW = password?.replace(/\\d/gi, '')?.replace(/\\W/gi, '');\n\n if (BAD_PASSWORD_MAP[password]) {\n BAD_PASSWORD = BAD_PASSWORD_MAP[password];\n }\n\n if (BAD_PASSWORD_MAP[ADJ_PW]) {\n BAD_PASSWORD = BAD_PASSWORD_MAP[ADJ_PW];\n }\n\n return BAD_PASSWORD;\n};\n\nexport const displayError = (ish: string): void => {\n message.error(ish.replace(/[\\S]* failed with error/, ''), 3);\n};\n\nexport const getAttributesFromURL = (url: string): IUserAttributes => {\n const queryString = url?.split('?')[1];\n const params = queryString?.split('&');\n return params?.reduce((prev, param) => {\n const [key, value] = param?.split('=');\n prev[key] = decodeURIComponent(value);\n return prev;\n }, {});\n};\n\n// stricter than parseInt()\nexport const parseNumericString = (input: string) => {\n // use parseInt with radix 10 to ensure decimal numbers are parsed correctly\n const parsedValue = parseInt(input, 10);\n\n // check if the entire string consists of numerical characters\n if (!isNaN(parsedValue) && String(parsedValue) === input) {\n return parsedValue;\n } else {\n return NaN;\n }\n};\n\nexport const getStatus = (\n status: string | null,\n statuses: {\n text: string;\n abbrev: string;\n value: string;\n ukText?: string;\n ukAbbrev?: string;\n }[],\n isAbbrev: boolean,\n isUk = false\n): string => {\n const { abbrev, ukAbbrev } = statuses.find(\n ({ value }) => value === status\n ) || {\n abbrev: '',\n };\n const { text, ukText } = statuses.find(({ value }) => value === status) || {\n text: '',\n };\n\n const finalAbbrev = isUk && ukAbbrev ? ukAbbrev : abbrev;\n const finalText = isUk && ukText ? ukText : text;\n return isAbbrev ? finalAbbrev : finalText;\n};\n\n\nexport const formatEthnicityString = (ethnicity?: string) => {\n if(!ethnicity || typeof ethnicity !== \"string\") return \"\";\n \n return US_ETHNICITY_MAP[ethnicity] || ethnicity;\n}","import { Row, message } from 'antd';\nimport { Auth } from 'aws-amplify';\nimport Link from 'next/link';\nimport { ReactElement, useState } from 'react';\nimport styled from 'styled-components';\n\nimport { EverysetLogo } from '@assets/img';\nimport SaaSLogo from '@assets/img/SaaSLogo';\nimport { Button } from '@components/Button';\nimport { Form } from '@components/Form';\nimport { Input } from '@components/Input';\nimport { displayError } from '@lib/utils/methods';\nimport { useClientEnvironmentContext } from 'context/ClientEnvironmentContext/ClientEnvironmentContext';\n\ninterface IFieldValues {\n email?: string;\n}\n\nconst EmailFormItem = (): ReactElement => (\n