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,EAAOpK,QAAU,EAAjB,S","sources":["webpack://_N_E/?9154","webpack://_N_E/./api/auth.ts","webpack://_N_E/./hooks/useCountdown.ts","webpack://_N_E/./layout/AuthLayout.tsx","webpack://_N_E/./node_modules/next/dist/client/link.js","webpack://_N_E/./src/components/modules/auth/ForgotPassword.tsx","webpack://_N_E/./pages/auth/forgot-password.tsx","webpack://_N_E/./src/schema/index.ts","webpack://_N_E/./node_modules/next/link.js"],"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 { httpRequest } from \".\";\nimport { Account, ResponseDataInterface } from \"../model\";\nimport {\n ForgotPassword,\n LoginFields,\n ResendEmail,\n ResetPassword,\n UserRegistrationFields,\n VerifyEmailFields\n} from \"../model/auth.model\";\nimport { apiRoutes } from \"../src/routes\";\nimport { pathToUrl } from \"../src/routes/router\";\n\nexport const registerUser = async (\n payload: UserRegistrationFields\n): Promise> => {\n const data = await httpRequest>({\n method: \"post\",\n url: pathToUrl(apiRoutes.register),\n data: payload\n });\n return data;\n};\n\nexport const loginUser = async (\n payload: LoginFields\n): Promise> => {\n const data = await httpRequest>({\n method: \"post\",\n url: pathToUrl(apiRoutes.login),\n data: payload\n });\n return data;\n};\n\nexport const verifyEmail = async (\n payload: VerifyEmailFields\n): Promise> => {\n const data = await httpRequest>({\n method: \"get\",\n url: pathToUrl(apiRoutes.verifyEmail, { token: payload.token }),\n data: payload\n });\n return data;\n};\n\nexport const resendEmail = async (\n payload: ResendEmail\n): Promise> => {\n const data = await httpRequest>({\n method: \"post\",\n url: pathToUrl(apiRoutes.resendToken),\n data: payload\n });\n return data;\n};\n\nexport const forgotPassword = async (\n payload: ForgotPassword\n): Promise> => {\n const data = await httpRequest>({\n method: \"post\",\n url: pathToUrl(apiRoutes.forgotPassword),\n data: payload\n });\n return data;\n};\n\nexport const resetPassword = async (\n payload: ResetPassword\n): Promise> => {\n const data = await httpRequest>({\n method: \"patch\",\n url: pathToUrl(apiRoutes.resetPassword),\n data: payload\n });\n return data;\n};\n","import * as React from \"react\";\n\nexport const useCountdown = () => {\n const [timeLeft, setTimeLeft] = React.useState(\"\");\n const [isActive, setIsActive] = React.useState(false);\n\n const startTimer = (duration: number) => {\n setIsActive(true);\n let timer = duration,\n minutes,\n seconds;\n const interval = setInterval(() => {\n minutes = parseInt((timer / 60).toString(), 10);\n seconds = parseInt((timer % 60).toString(), 10);\n\n minutes = minutes < 10 ? \"0\" + minutes : minutes;\n seconds = seconds < 10 ? \"0\" + seconds : seconds;\n\n setTimeLeft(minutes + \":\" + seconds);\n\n if (--timer < 0) {\n clearInterval(interval);\n setIsActive(false);\n }\n }, 1000);\n };\n\n const restartTimer = () => {\n setTimeLeft(\"00:00\");\n setIsActive(false);\n };\n\n return {\n timeLeft,\n isActive,\n startTimer,\n restartTimer\n };\n};\n","import Image from \"next/image\";\n// import Link from \"next/link\";\nimport React from \"react\";\n\nexport default function AuthLayout({ children }: any) {\n return (\n
\n
\n \n\n {/*
\n \n Business\n \n \n \n Talent\n \n \n
*/}\n
\n\n
{children}
\n
\n );\n}\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nexports.default = void 0;\nvar _react = _interopRequireDefault(require(\"react\"));\nvar _router = require(\"../shared/lib/router/router\");\nvar _router1 = require(\"./router\");\nvar _useIntersection = require(\"./use-intersection\");\nfunction _interopRequireDefault(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nconst prefetched = {\n};\nfunction prefetch(router, href, as, options) {\n if (typeof window === 'undefined' || !router) return;\n if (!(0, _router).isLocalURL(href)) return;\n // Prefetch the JSON page if asked (only in the client)\n // We need to handle a prefetch error here since we may be\n // loading with priority which can reject but we don't\n // want to force navigation since this is only a prefetch\n router.prefetch(href, as, options).catch((err)=>{\n if (process.env.NODE_ENV !== 'production') {\n // rethrow to show invalid URL errors\n throw err;\n }\n });\n const curLocale = options && typeof options.locale !== 'undefined' ? options.locale : router && router.locale;\n // Join on an invalid URI character\n prefetched[href + '%' + as + (curLocale ? '%' + curLocale : '')] = true;\n}\nfunction isModifiedEvent(event) {\n const { target } = event.currentTarget;\n return target && target !== '_self' || event.metaKey || event.ctrlKey || event.shiftKey || event.altKey || event.nativeEvent && event.nativeEvent.which === 2;\n}\nfunction linkClicked(e, router, href, as, replace, shallow, scroll, locale) {\n const { nodeName } = e.currentTarget;\n // anchors inside an svg have a lowercase nodeName\n const isAnchorNodeName = nodeName.toUpperCase() === 'A';\n if (isAnchorNodeName && (isModifiedEvent(e) || !(0, _router).isLocalURL(href))) {\n // ignore click for browser’s default behavior\n return;\n }\n e.preventDefault();\n // replace state instead of push if prop is present\n router[replace ? 'replace' : 'push'](href, as, {\n shallow,\n locale,\n scroll\n });\n}\nfunction Link(props) {\n if (process.env.NODE_ENV !== 'production') {\n function createPropError(args) {\n return new Error(`Failed prop type: The prop \\`${args.key}\\` expects a ${args.expected} in \\`\\`, but got \\`${args.actual}\\` instead.` + (typeof window !== 'undefined' ? \"\\nOpen your browser's console to view the Component stack trace.\" : ''));\n }\n // TypeScript trick for type-guarding:\n const requiredPropsGuard = {\n href: true\n };\n const requiredProps = Object.keys(requiredPropsGuard);\n requiredProps.forEach((key)=>{\n if (key === 'href') {\n if (props[key] == null || typeof props[key] !== 'string' && typeof props[key] !== 'object') {\n throw createPropError({\n key,\n expected: '`string` or `object`',\n actual: props[key] === null ? 'null' : typeof props[key]\n });\n }\n } else {\n // TypeScript trick for type-guarding:\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const _ = key;\n }\n });\n // TypeScript trick for type-guarding:\n const optionalPropsGuard = {\n as: true,\n replace: true,\n scroll: true,\n shallow: true,\n passHref: true,\n prefetch: true,\n locale: true\n };\n const optionalProps = Object.keys(optionalPropsGuard);\n optionalProps.forEach((key)=>{\n const valType = typeof props[key];\n if (key === 'as') {\n if (props[key] && valType !== 'string' && valType !== 'object') {\n throw createPropError({\n key,\n expected: '`string` or `object`',\n actual: valType\n });\n }\n } else if (key === 'locale') {\n if (props[key] && valType !== 'string') {\n throw createPropError({\n key,\n expected: '`string`',\n actual: valType\n });\n }\n } else if (key === 'replace' || key === 'scroll' || key === 'shallow' || key === 'passHref' || key === 'prefetch') {\n if (props[key] != null && valType !== 'boolean') {\n throw createPropError({\n key,\n expected: '`boolean`',\n actual: valType\n });\n }\n } else {\n // TypeScript trick for type-guarding:\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n const _ = key;\n }\n });\n // This hook is in a conditional but that is ok because `process.env.NODE_ENV` never changes\n // eslint-disable-next-line react-hooks/rules-of-hooks\n const hasWarned = _react.default.useRef(false);\n if (props.prefetch && !hasWarned.current) {\n hasWarned.current = true;\n console.warn('Next.js auto-prefetches automatically based on viewport. The prefetch attribute is no longer needed. More: https://nextjs.org/docs/messages/prefetch-true-deprecated');\n }\n }\n const p = props.prefetch !== false;\n const router = (0, _router1).useRouter();\n const { href , as } = _react.default.useMemo(()=>{\n const [resolvedHref, resolvedAs] = (0, _router).resolveHref(router, props.href, true);\n return {\n href: resolvedHref,\n as: props.as ? (0, _router).resolveHref(router, props.as) : resolvedAs || resolvedHref\n };\n }, [\n router,\n props.href,\n props.as\n ]);\n let { children , replace , shallow , scroll , locale } = props;\n if (typeof children === 'string') {\n children = /*#__PURE__*/ _react.default.createElement(\"a\", null, children);\n }\n // This will return the first child, if multiple are provided it will throw an error\n let child;\n if (process.env.NODE_ENV === 'development') {\n try {\n child = _react.default.Children.only(children);\n } catch (err) {\n throw new Error(`Multiple children were passed to with \\`href\\` of \\`${props.href}\\` but only one child is supported https://nextjs.org/docs/messages/link-multiple-children` + (typeof window !== 'undefined' ? \" \\nOpen your browser's console to view the Component stack trace.\" : ''));\n }\n } else {\n child = _react.default.Children.only(children);\n }\n const childRef = child && typeof child === 'object' && child.ref;\n const [setIntersectionRef, isVisible] = (0, _useIntersection).useIntersection({\n rootMargin: '200px'\n });\n const setRef = _react.default.useCallback((el)=>{\n setIntersectionRef(el);\n if (childRef) {\n if (typeof childRef === 'function') childRef(el);\n else if (typeof childRef === 'object') {\n childRef.current = el;\n }\n }\n }, [\n childRef,\n setIntersectionRef\n ]);\n _react.default.useEffect(()=>{\n const shouldPrefetch = isVisible && p && (0, _router).isLocalURL(href);\n const curLocale = typeof locale !== 'undefined' ? locale : router && router.locale;\n const isPrefetched = prefetched[href + '%' + as + (curLocale ? '%' + curLocale : '')];\n if (shouldPrefetch && !isPrefetched) {\n prefetch(router, href, as, {\n locale: curLocale\n });\n }\n }, [\n as,\n href,\n isVisible,\n locale,\n p,\n router\n ]);\n const childProps = {\n ref: setRef,\n onClick: (e)=>{\n if (process.env.NODE_ENV !== 'production') {\n if (!e) {\n throw new Error(`Component rendered inside next/link has to pass click event to \"onClick\" prop.`);\n }\n }\n if (child.props && typeof child.props.onClick === 'function') {\n child.props.onClick(e);\n }\n if (!e.defaultPrevented) {\n linkClicked(e, router, href, as, replace, shallow, scroll, locale);\n }\n }\n };\n childProps.onMouseEnter = (e)=>{\n if (child.props && typeof child.props.onMouseEnter === 'function') {\n child.props.onMouseEnter(e);\n }\n if ((0, _router).isLocalURL(href)) {\n prefetch(router, href, as, {\n priority: true\n });\n }\n };\n // If child is an tag and doesn't have a href attribute, or if the 'passHref' property is\n // defined, we specify the current 'href', so that repetition is not needed by the user\n if (props.passHref || child.type === 'a' && !('href' in child.props)) {\n const curLocale = typeof locale !== 'undefined' ? locale : router && router.locale;\n // we only render domain locales if we are currently on a domain locale\n // so that locale links are still visitable in development/preview envs\n const localeDomain = router && router.isLocaleDomain && (0, _router).getDomainLocale(as, curLocale, router && router.locales, router && router.domainLocales);\n childProps.href = localeDomain || (0, _router).addBasePath((0, _router).addLocale(as, curLocale, router && router.defaultLocale));\n }\n return(/*#__PURE__*/ _react.default.cloneElement(child, childProps));\n}\nvar _default = Link;\nexports.default = _default;\n\n//# sourceMappingURL=link.js.map","import React, { useState } from \"react\";\nimport { forgotPassword } from \"../../../../api/auth\";\nimport { formatApiErrors } from \"@/src/lib/utils/helpers\";\nimport BaseInput from \"../../ui/BaseInput\";\nimport AuthLayout from \"../../../../layout/AuthLayout\";\nimport { useFormUtil } from \"../../../../hooks/useFormUtil\";\nimport { forgotPasswordSchema } from \"../../../schema\";\nimport useCustomHookForm from \"../../../../hooks/useCustomHookForm\";\nimport { useMutation } from \"@tanstack/react-query\";\nimport { useCountdown } from \"../../../../hooks/useCountdown\";\nimport Link from \"next/link\";\n\nexport default function ForgotPassword() {\n const { isActive, timeLeft, startTimer } = useCountdown();\n const [resetLinkSent, setResetLinkSent] = useState(false);\n\n const {\n register,\n handleSubmit,\n getValues,\n formState: { errors }\n } = useCustomHookForm(forgotPasswordSchema);\n\n const { mutate, isPending: isLoading } = useMutation({\n mutationFn: forgotPassword,\n onSuccess: () => {\n startTimer(59);\n setResetLinkSent(true);\n },\n onError: (error: any) => {\n setDefaultErrors(formatApiErrors(error?.response?.data?.errors));\n }\n });\n\n const sendResetLink = (data: any) => {\n mutate(data);\n };\n\n const { defaultErrors, setDefaultErrors } = useFormUtil(\n forgotPasswordSchema.fields\n );\n\n return (\n \n {resetLinkSent ? (\n
\n
\n

We sent you a reset link

\n\n

\n We've sent an email to {getValues(\"email\")}{\" \"}\n with a link to reset your password\n

\n\n {isActive && timeLeft && timeLeft !== \"00:00\" && (\n

\n Resend email in{\" \"}\n {timeLeft}\n

\n )}\n\n sendResetLink({ email: getValues(\"email\") })}\n >\n Resend Link\n \n\n

\n Not your account?{\" \"}\n setResetLinkSent(false)}\n >\n Change Email\n \n

\n
\n
\n ) : (\n
\n )}\n \n );\n}\n","import React from \"react\";\nimport ForgotPassword from \"../../src/components/modules/auth/ForgotPassword\";\nimport { GetServerSidePropsContext } from \"next\";\nimport { requireAuthentication } from \"../../src/lib/utils/requireAuthentication\";\n\nexport default function forgotPassword() {\n return ;\n}\n\nexport const getServerSideProps = requireAuthentication(\n async (context: GetServerSidePropsContext) => {\n return {\n props: {}\n };\n }\n);\n","import * as yup from \"yup\";\nimport { NIGERIA_CODE } from \"../lib/constants\";\n\nexport const onboardBusinessSchema = yup.object().shape({\n account_type: yup.string(),\n business_name: yup.string().required(\"Business name is required\"),\n email: yup.string().email(\"Invalid email\").required(\"Email is required\"),\n password: yup\n .string()\n .required(\"Password is required\")\n .matches(\n /^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[@$!.%*?&])[A-Za-z\\d@$!%*?&.]{8,}$/,\n \"Password must contain at least 8 characters, one uppercase letter, one lowercase letter, one number, and one special character (.@$!%*?&)\"\n ),\n phone: yup\n .string()\n .required(\"Phone number is required\")\n .matches(\n /^\\+\\d{1,4}\\d+$/,\n \"Phone number must start with a country code (e.g., +1234567890). Select a country from the\"\n ),\n discovery_method: yup.string().required(\"Discovery method is required\")\n});\n\nexport const onboardTalentSchema = yup.object().shape({\n account_type: yup.string(),\n first_name: yup.string().required(\"First name is required\"),\n last_name: yup.string().required(\"Last name is required\"),\n email: yup.string().email(\"Invalid email\").required(\"Email is required\"),\n password: yup\n .string()\n .required(\"Password is required\")\n .matches(\n /^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[@$!.%*?&])[A-Za-z\\d@$!%*?&.]{8,}$/,\n \"Password must contain at least 8 characters, one uppercase letter, one lowercase letter, one number, and one special character (.@$!%*?&)\"\n ),\n phone: yup\n .string()\n .required(\"Phone number is required\")\n .matches(\n /^\\+\\d{1,4}\\d+$/,\n \"Phone number must start with a country code (e.g., +1234567890). Select a country from the\"\n ),\n discovery_method: yup.string().required(\"Discovery method is required\")\n});\n\nexport const forgotPasswordSchema = yup.object().shape({\n email: yup.string().email(\"Invalid email\").required(\"Email is required\")\n});\n\nexport const resetPasswordSchema = yup.object().shape({\n password: yup\n .string()\n .required(\"Password is required\")\n .matches(\n /^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[@$!.%*?&])[A-Za-z\\d@$!%*?&.]{8,}$/,\n \"Password must contain at least 8 characters, one uppercase letter, one lowercase letter, one number, and one special character (.@$!%*?&)\"\n ),\n confirm_password: yup\n .string()\n .required(\"Confirm password is required\")\n .oneOf([yup.ref(\"password\"), null], \"Passwords must match\")\n});\n\nexport const loginSchema = yup.object().shape({\n email: yup.string().email(\"Invalid email\").required(\"Email is required\"),\n password: yup.string().required(\"Password is required\")\n});\n\nexport const businessComplianceSetupSchema = yup.object().shape({\n first_name: yup\n .string()\n .required(\"First name is required\")\n .typeError(\"First name is required\"),\n last_name: yup\n .string()\n .required(\"Last name is required\")\n .typeError(\"Last name is required\"),\n email: yup.string().email(\"Invalid email\").required(\"Email is required\"),\n phone: yup\n .string()\n .required(\"Phone number is required\")\n .matches(\n /^\\+\\d{1,4}\\d+$/,\n \"Phone number must start with a country code (e.g., +1234567890). Select a country from the\"\n ),\n id_type: yup.string().required(\"ID type is required\"),\n identification: yup.mixed().required(\"ID is required\"),\n incorporation_country: yup\n .string()\n .required(\"Incorporation country is required\"),\n business_name: yup\n .string()\n .required(\"Business name is required\")\n .typeError(\"Business name is required\"),\n rc_number: yup.string().when([\"incorporation_country\"], {\n is: (incorporation_country: string) =>\n incorporation_country === NIGERIA_CODE,\n then: yup.string().required(\"RC number is required\")\n }),\n kyc_status: yup.string().required(\"KYC status is required\"),\n business_sector: yup.string().required(\"Business sector is required\"),\n certificate: yup.mixed().required(\"Certificate is required\")\n});\n\nexport const talentComplianceSetupSchema = yup.object().shape({\n id_type: yup.string().required(\"ID type is required\"),\n identification: yup.mixed().required(\"ID is required\"),\n country_of_residence: yup\n .string()\n .required(\"Country of residence is required\"),\n nationality: yup.string().required(\"Nationality is required\")\n});\n\nexport const teamSetupSchema = yup.object().shape({\n name: yup.string().required(\"Team name is required\"),\n description: yup.string().required(\"Team description is required\")\n});\n\nexport const talentSetupSchema = yup.object().shape({\n last_name: yup.string().required(\"Last name is required\"),\n first_name: yup.string().required(\"First name is required\"),\n email: yup.string().email(\"Invalid email\").required(\"Email is required\"),\n phone: yup\n .string()\n .nullable()\n .matches(\n /^\\+\\d{1,4}\\d+$/,\n \"Phone number must start with a country code (e.g., +1234567890). Select a country from the list\"\n ),\n start_date: yup.string().required(\"Start date is required\"),\n role: yup.string().required(\"Role is required\"),\n team_id: yup.string().nullable(),\n employment_type: yup.string().required(\"Employment type is required\"),\n currency: yup.string().required(\"Currency is required\"),\n amount: yup\n .number()\n .min(0)\n .required(\"Amount is required\")\n .typeError(\"Amount must be a number\")\n});\n\nexport const talentUploadSchema = yup.object().shape({\n file: yup.mixed().required(\"File is required\")\n});\n\nexport const newDocumentSchema = yup.object().shape({\n id_type: yup.string().required(\"Document type is required\"),\n identification: yup.mixed().required(\"File is required\")\n});\n","module.exports = require('./dist/client/link')\n"],"names":["window","__NEXT_P","push","registerUser","payload","data","httpRequest","method","url","pathToUrl","apiRoutes","loginUser","verifyEmail","token","resendEmail","forgotPassword","resetPassword","useCountdown","React","timeLeft","setTimeLeft","isActive","setIsActive","startTimer","duration","minutes","seconds","timer","interval","setInterval","parseInt","toString","clearInterval","restartTimer","AuthLayout","children","div","className","Image","src","alt","height","width","exports","obj","_react","require","__esModule","default","_router","_router1","_useIntersection","prefetched","prefetch","router","href","as","options","isLocalURL","catch","err","curLocale","locale","_default","props","child","p","useRouter","useMemo","resolveHref","resolvedHref","resolvedAs","replace","shallow","scroll","createElement","childRef","Children","only","ref","useIntersection","rootMargin","setIntersectionRef","isVisible","setRef","useCallback","el","current","useEffect","shouldPrefetch","isPrefetched","childProps","onClick","e","defaultPrevented","currentTarget","nodeName","toUpperCase","event","target","metaKey","ctrlKey","shiftKey","altKey","nativeEvent","which","isModifiedEvent","preventDefault","linkClicked","onMouseEnter","priority","passHref","type","localeDomain","isLocaleDomain","getDomainLocale","locales","domainLocales","addBasePath","addLocale","defaultLocale","cloneElement","ForgotPassword","useState","resetLinkSent","setResetLinkSent","useCustomHookForm","forgotPasswordSchema","register","handleSubmit","getValues","errors","formState","useMutation","mutationFn","onSuccess","onError","error","setDefaultErrors","formatApiErrors","response","mutate","isLoading","isPending","sendResetLink","useFormUtil","defaultErrors","h3","strong","button","data-loading","email","form","onSubmit","BaseInput","label","placeholder","id","Link","a","onboardBusinessSchema","yup","shape","account_type","business_name","required","password","matches","phone","discovery_method","onboardTalentSchema","first_name","last_name","resetPasswordSchema","confirm_password","oneOf","loginSchema","businessComplianceSetupSchema","typeError","id_type","identification","incorporation_country","rc_number","when","is","NIGERIA_CODE","then","kyc_status","business_sector","certificate","talentComplianceSetupSchema","country_of_residence","nationality","teamSetupSchema","name","description","talentSetupSchema","nullable","start_date","role","team_id","employment_type","currency","amount","min","talentUploadSchema","file","module"],"sourceRoot":""}