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AAKjN,GAAG,IAAI+E,EAAE,EAAEA,EAAEU,EAAEjY,OAAOuX,IAAID,EAAEW,EAAEV,GAAG,GAAGF,EAAE0C,QAAQzC,KAAKU,EAAEV,GAAG9E,EAAE8E,IAAI,OAAOU,EAAk8Y0H,CAA8BlN,EAAE,CAAC,OAAO,iBAAiB,WAAW,cAAc,WAAW,0BAA0B,aAAa,GAAG8E,EAAE,CAAC+D,EAAW/D,IAAImB,GAAY,GAAI,IAAIT,EAAE,CAAC,WAAW,UAAU,cAAc,UAAU,SAAS,QAAQ,WAAW,YAAYC,EAAEb,EAAS,GAAGG,GAAGS,EAAE9X,SAAQ,SAASsS,GAAG,cAAcyF,EAAEzF,MAAK6E,EAAEC,EAAEW,GAAGD,EAAE1H,QAAO,SAASkC,GAAG,OAAO,MAAM6E,EAAE7a,MAAMgW,IAAI6E,EAAE7a,MAAMgW,KAAK+E,EAAE/E,MAAKxS,QAAQyY,GAAY,QAASpB,EAAEH,EAAMyI,cAAc,QAAQvI,EAAS,CAAChZ,IAAIwZ,KAAKmH,WAAWxH,IAAI,IAAImB,EAAE,CAAC0F,QAAQxG,KAAKwG,QAAQ7L,OAAOqF,KAAKrF,QAAQ,OAAOqF,KAAKuF,YAAYzgB,OAAO6a,EAAEjI,UAAUiI,EAAEqI,WAAWlH,EAAE7b,SAAS+a,KAAK/a,SAAS6b,EAAEmG,QAAQjH,KAAKiH,QAAQnG,EAAE2F,YAAYzG,KAAKyG,aAAa,MAAM9G,EAAE3a,QAAQ8b,EAAE9b,MAAMgb,KAAKhb,QAAQya,EAAEH,EAAM2I,aAAaxI,EAAEqB,IAAIlG,EAAp6P,CAAu6P0E,EAAM4I,WAAW9I,EAAOC,QAAQgF,G","sources":["webpack://_N_E/./node_modules/date-fns/esm/compareAsc/index.js","webpack://_N_E/./node_modules/date-fns/esm/differenceInCalendarYears/index.js","webpack://_N_E/./node_modules/date-fns/esm/differenceInYears/index.js","webpack://_N_E/?a930","webpack://_N_E/./src/assets/icons/FlagCircleUk.tsx","webpack://_N_E/./src/components/Input/DateTextInput.tsx","webpack://_N_E/./src/components/Modal/Modal.tsx","webpack://_N_E/./src/components/UnstyledButton/UnstyledButton.tsx","webpack://_N_E/./src/hooks/shared/useModalVisibility.ts","webpack://_N_E/./src/lib/utils/methods.tsx","webpack://_N_E/./src/lib/utils/stringHelper.ts","webpack://_N_E/./src/lib/utils/constants/selectedCountry.ts","webpack://_N_E/./src/views/auth/signup/SignupPageContext.tsx","webpack://_N_E/./src/assets/icons/FlagCircleUsa.tsx","webpack://_N_E/./src/views/auth/signup/AccountCreation/Header/AccountCreationHeader.tsx","webpack://_N_E/./src/views/auth/signup/AccountCreation/LegalChecks/LegalChecks.tsx","webpack://_N_E/./src/views/auth/signup/AccountCreation/AccountCreation.tsx","webpack://_N_E/./src/components/ThankyouModal/ThankyouModal.tsx","webpack://_N_E/./src/views/auth/signup/CountrySelection/BirthDatePicker/BirthDatePicker.tsx","webpack://_N_E/./src/views/auth/signup/CountrySelection/CountryFlags/CountryFlags.tsx","webpack://_N_E/./src/views/auth/signup/CountrySelection/CountrySelection.tsx","webpack://_N_E/./src/pages/auth/signup.tsx","webpack://_N_E/./src/views/auth/signup/styles.tsx","webpack://_N_E/./node_modules/react-input-mask/index.js","webpack://_N_E/./node_modules/react-input-mask/lib/react-input-mask.production.min.js"],"sourcesContent":["import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name compareAsc\n * @category Common Helpers\n * @summary Compare the two dates and return -1, 0 or 1.\n *\n * @description\n * Compare the two dates and return 1 if the first date is after the second,\n * -1 if the first date is before the second or 0 if dates are equal.\n *\n * @param {Date|Number} dateLeft - the first date to compare\n * @param {Date|Number} dateRight - the second date to compare\n * @returns {Number} the result of the comparison\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // Compare 11 February 1987 and 10 July 1989:\n * const result = compareAsc(new Date(1987, 1, 11), new Date(1989, 6, 10))\n * //=> -1\n *\n * @example\n * // Sort the array of dates:\n * const result = [\n * new Date(1995, 6, 2),\n * new Date(1987, 1, 11),\n * new Date(1989, 6, 10)\n * ].sort(compareAsc)\n * //=> [\n * // Wed Feb 11 1987 00:00:00,\n * // Mon Jul 10 1989 00:00:00,\n * // Sun Jul 02 1995 00:00:00\n * // ]\n */\n\nexport default function compareAsc(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n var diff = dateLeft.getTime() - dateRight.getTime();\n\n if (diff < 0) {\n return -1;\n } else if (diff > 0) {\n return 1; // Return 0 if diff is 0; return NaN if diff is NaN\n } else {\n return diff;\n }\n}","import toDate from \"../toDate/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name differenceInCalendarYears\n * @category Year Helpers\n * @summary Get the number of calendar years between the given dates.\n *\n * @description\n * Get the number of calendar years between the given dates.\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of calendar years\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many calendar years are between 31 December 2013 and 11 February 2015?\n * const result = differenceInCalendarYears(\n * new Date(2015, 1, 11),\n * new Date(2013, 11, 31)\n * )\n * //=> 2\n */\n\nexport default function differenceInCalendarYears(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n return dateLeft.getFullYear() - dateRight.getFullYear();\n}","import toDate from \"../toDate/index.js\";\nimport differenceInCalendarYears from \"../differenceInCalendarYears/index.js\";\nimport compareAsc from \"../compareAsc/index.js\";\nimport requiredArgs from \"../_lib/requiredArgs/index.js\";\n/**\n * @name differenceInYears\n * @category Year Helpers\n * @summary Get the number of full years between the given dates.\n *\n * @description\n * Get the number of full years between the given dates.\n *\n * @param {Date|Number} dateLeft - the later date\n * @param {Date|Number} dateRight - the earlier date\n * @returns {Number} the number of full years\n * @throws {TypeError} 2 arguments required\n *\n * @example\n * // How many full years are between 31 December 2013 and 11 February 2015?\n * const result = differenceInYears(new Date(2015, 1, 11), new Date(2013, 11, 31))\n * //=> 1\n */\n\nexport default function differenceInYears(dirtyDateLeft, dirtyDateRight) {\n requiredArgs(2, arguments);\n var dateLeft = toDate(dirtyDateLeft);\n var dateRight = toDate(dirtyDateRight);\n var sign = compareAsc(dateLeft, dateRight);\n var difference = Math.abs(differenceInCalendarYears(dateLeft, dateRight)); // Set both dates to a valid leap year for accurate comparison when dealing\n // with leap days\n\n dateLeft.setFullYear(1584);\n dateRight.setFullYear(1584); // Math.abs(diff in full years - diff in calendar years) === 1 if last calendar year is not full\n // If so, result must be decreased by 1 in absolute value\n\n var isLastYearNotFull = compareAsc(dateLeft, dateRight) === -sign;\n var result = sign * (difference - Number(isLastYearNotFull)); // Prevent negative zero\n\n return result === 0 ? 0 : result;\n}","\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/auth/signup\",\n function () {\n return require(\"private-next-pages/auth/signup.tsx\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/auth/signup\"])\n });\n }\n ","import { SVGProps } from 'react';\n\nconst FlagCircleUk = ({\n width = '32',\n height = '32',\n ...otherProps\n}: SVGProps): JSX.Element => (\n \n \n \n \n \n \n \n \n \n \n \n \n \n);\n\nexport default FlagCircleUk;\n","import type { InputProps } from 'antd';\nimport InputMask from 'react-input-mask';\n\nimport { Input } from './Input';\n\nexport type DateTextInputProps = InputProps & {\n maskFormat?: string;\n};\n\nexport const DateTextInput = (props: DateTextInputProps): JSX.Element => {\n return (\n \n {(inputProps) => }\n \n );\n};\n","import type { ModalProps as AntModalProps } from 'antd';\nimport { Modal as AntModal } from 'antd';\nimport styled from 'styled-components';\n\nimport { Close } from '@assets/icons';\n\ntype ModalProps = AntModalProps & {\n closeIconColor?: string;\n};\n\nconst Modal = (props: ModalProps): JSX.Element => {\n return (\n }\n {...props}\n />\n );\n};\n\nconst StyledModal = styled(AntModal)`\n max-height: 85vh;\n height: 100%;\n top: 42px;\n\n .ant-modal-header {\n border-bottom: 1px solid ${({ theme }) => theme.palette.greyscale[3]};\n margin-bottom: 0;\n padding: 16px 24px;\n }\n\n .ant-modal-content {\n display: flex;\n flex-direction: column;\n max-height: 100%;\n border-radius: 4px;\n box-shadow: 1px 1px 7px 1px rgba(64, 64, 64, 0.25);\n padding: 0;\n\n .ant-modal-close:hover {\n background-color: unset;\n }\n }\n\n .ant-modal-body {\n overflow: scroll;\n overflow-y: auto;\n overflow-x: auto;\n max-height: 85vh;\n padding: 16px 24px;\n height: 100%;\n font-size: ${(props) => props.theme.palette.textFontSize[7]};\n }\n\n .ant-modal-footer {\n border-top: 1px solid ${(props) => props.theme.palette.greyscale[3]};\n padding: 16px 24px;\n margin-top: 0; // this will allow content body to go up to the footer\n\n display: flex;\n justify-content: flex-end;\n }\n`;\n\nconst StyledCloseIcon = styled(Close)`\n &:hover {\n path {\n stroke: ${({ theme }) => theme.palette.greyscale[7]};\n }\n }\n\n path {\n transition: stroke 0.2s;\n }\n`;\n\nexport { Modal };\n","import { ButtonHTMLAttributes, forwardRef } from 'react';\nimport styled from 'styled-components';\n\nexport const UnstyledButton = forwardRef<\n HTMLButtonElement,\n ButtonHTMLAttributes\n>((props = {}, ref) => (\n \n {props?.children ?? null}\n \n));\nUnstyledButton.displayName = 'UnstyledButton';\n\nconst SyledButton = styled.button`\n background: none;\n border: none;\n padding: 0;\n margin: 0;\n cursor: pointer;\n outline: none;\n display: flex;\n flex-direction: column;\n`;\n","import { useState } from 'react';\n\nexport type UseModalVisibilityHookReturn = {\n isVisible: boolean;\n showModal: () => void;\n hideModal: () => void;\n};\n\nexport const useModalVisibility = (\n initiallyVisible = false\n): UseModalVisibilityHookReturn => {\n const [isVisible, setIsVisible] = useState(initiallyVisible);\n\n const showModal = () => setIsVisible(true);\n const hideModal = () => setIsVisible(false);\n\n return { isVisible, showModal, hideModal };\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 { format, isAfter, isValid, parse as parseDate } from 'date-fns';\nimport dayjs from 'dayjs';\nimport { parse, ParsedQs } from 'qs';\n\nexport const FORMATTED_PHONE_REGEX = /^\\(\\d{3}\\) \\d{3}-\\d{4}$/g;\nexport const FORMATTED_PHONE_REGEX_UK = /^\\d{5} \\d{6}$/g;\nexport const ZIP_CODE_REGEX = /^\\d{5}$/;\n\nexport const formatNumberUk = (\n rawNumber: string | number | readonly string[]\n): string | null => {\n const validInput = rawNumber && typeof rawNumber === 'string';\n if (!validInput) return null;\n\n let digitString = rawNumber.replace(/\\D/g, '');\n if (digitString.length > 5) {\n digitString = digitString.slice(0, 5) + ' ' + digitString.slice(5);\n }\n return digitString;\n};\n\nexport const formattedNumber = (\n number: string | number | readonly string[]\n): string => {\n const unformattedNumber = (formattedNumber) => {\n if (typeof formattedNumber === 'string') {\n const num = parseInt(formattedNumber.replace(/\\D/g, ''), 10);\n return !num ? '' : num;\n }\n return '';\n };\n\n if (!number || typeof number !== 'string') return null;\n\n number = unformattedNumber(number).toString();\n\n if (number === 'NaN') {\n return '';\n }\n\n const firstThree = number.substr(0, 3);\n const midThree = number.substr(3, 3);\n const lastFour = number.substr(6, 4);\n\n if (number.length < 4) {\n return number;\n } else if (number.length < 7) {\n return `(${firstThree}) ${midThree}`;\n }\n return `(${firstThree}) ${midThree}-${lastFour}`;\n};\n\nexport const normalizedNumber = (number: string): string => {\n if (!number) return null;\n if (new RegExp(FORMATTED_PHONE_REGEX).test(formattedNumber(number)))\n return number.replaceAll(/[() -]/g, '');\n return number;\n};\n\nexport const buildFullAddress = (\n line1: string,\n line2: string,\n separator = '#'\n): string => {\n if (line2) {\n return `${line1} ${separator}${line2}`;\n }\n return line1;\n};\n\nexport const isValidNumber = (value: unknown): boolean => {\n return typeof value === 'number' && !!(value || value === 0);\n};\n\nexport const getUploadLabel = (\n minimumUploads: unknown,\n maximumUploads: unknown\n): string => {\n if (isValidNumber(minimumUploads) && isValidNumber(maximumUploads))\n return ' (Upload ' + (minimumUploads + '-' + maximumUploads) + ')';\n if (isValidNumber(minimumUploads)) return ' (Upload ' + minimumUploads + ')';\n return '';\n};\n\nexport const getUrlQueryParams = (routerAsPath: string): ParsedQs => {\n const queryString = routerAsPath.split('?')[1] ?? '';\n\n return parse(queryString);\n};\n\nexport const truncateString = (str: string, num: number): string => {\n if (str.length <= num) {\n return str;\n }\n return str.slice(0, num) + '...';\n};\n\nexport const truncateFileName = (str: string, num: number): string => {\n if (str.length <= num) {\n return str;\n }\n const extension = str.split('.').pop();\n return str.slice(0, num - extension.length - 1) + '...' + extension;\n};\n\nexport function checkEmailValid(email: string): boolean {\n const emailRegex = /^\\w+([.+-]*\\w+)*@\\w+([.-]?\\w+)*(\\.\\w{2,3})+$/;\n return emailRegex.test(email);\n}\n\nexport const capitalize = (str = ''): string =>\n str.charAt(0).toUpperCase() + str.slice(1);\n\nexport const capitalizeWords = (str: string): string => {\n return str\n .split(' ')\n .map((word) => capitalize(word))\n .join(' ');\n};\n\n// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types\nexport const getDisplayNumber = (rawPhone?: string, isUkUser = false) => {\n if (!isUkUser) return rawPhone;\n\n return formatNumberUk(rawPhone);\n};\n\nexport const getIsValidUkDate = (rawDate?: string) => {\n if (!rawDate) return false;\n\n const parsedDate = parseDate(rawDate, 'dd/MM/yyyy', new Date());\n\n const isValidDate =\n isValid(parsedDate) &&\n format(parsedDate, 'dd/MM/yyyy') === rawDate &&\n !isAfter(parsedDate, new Date());\n\n return isValidDate;\n};\n\nexport const apiDateToUkDate = (apiDate?: string): string => {\n if (!apiDate) return null;\n\n const parsedDate = parseDate(apiDate, 'yyyy-MM-dd', new Date());\n\n const isValidDate =\n isValid(parsedDate) && format(parsedDate, 'yyyy-MM-dd') === apiDate;\n\n if (!isValidDate) return null;\n\n return format(parsedDate, 'dd/MM/yyyy');\n};\n\nexport const ukDateToApiDate = (ukDate?: string) => {\n if (!ukDate) return null;\n\n const parsedDate = parseDate(ukDate, 'dd/MM/yyyy', new Date());\n\n const isValidDate =\n isValid(parsedDate) && format(parsedDate, 'dd/MM/yyyy') === ukDate;\n\n if (!isValidDate) return null;\n\n return format(parsedDate, 'yyyy-MM-dd');\n};\n\nexport const formatSpolightViewPin = (\n rawPin?: string | number | readonly string[]\n) => {\n if (!rawPin) return null;\n if (!(typeof rawPin === 'string')) return null;\n return rawPin.replace(/[^0-9-]/g, '');\n};\n\nexport const getIsValidUkPhoneNumber = (rawPhoneInput: string): boolean => {\n if (!rawPhoneInput) return false;\n\n return new RegExp(FORMATTED_PHONE_REGEX_UK).test(\n formatNumberUk(rawPhoneInput)\n );\n};\n\nexport const bgLastUpdatedToUk = (dateString?: string) => {\n if (!dateString) return dateString;\n\n const parsedDate = parseDate(dateString, 'MM/dd/yy h:mm a', new Date());\n\n const isValidDate = isValid(parsedDate);\n\n if (!isValidDate) return dateString;\n\n return format(parsedDate, 'dd/MM/yyyy h:mm a');\n};\n\nexport const bookingDateToUk = (\n dateString?: string,\n customFormat = 'EEE, d MMM'\n) => {\n if (!dateString) return dateString;\n\n const parsedDate = parseDate(dateString, 'yyyy-MM-dd', new Date());\n\n const isValidDate = isValid(parsedDate);\n\n if (!isValidDate) return dateString;\n\n return format(parsedDate, customFormat);\n};\n\nexport const formatCallTime = (apiDateTime?: string) => {\n if (!apiDateTime) return apiDateTime;\n const rawResult = dayjs(apiDateTime).format('h:mm A');\n return rawResult === INVALID_DATE_DAY_JS ? apiDateTime : rawResult;\n};\n\nexport const cancelDateToUk = (dateString?: string) => {\n if (!dateString) return dateString;\n\n const rawResult = dayjs(dateString).format('ddd, D MMM. h:mm A');\n return rawResult === INVALID_DATE_DAY_JS ? dateString : rawResult;\n};\n\nexport const currentDateToUk = (dateString?: string) => {\n if (!dateString) return dateString;\n\n const rawResult = dayjs(dateString).format('D/M/YYYY h:mm A');\n return rawResult === INVALID_DATE_DAY_JS ? dateString : rawResult;\n};\n\nexport const INVALID_DATE_DAY_JS = 'Invalid Date';\n\nexport const removeCharacterFromString = (str: string, character: string) => {\n if (typeof str !== 'string') return str;\n return str.split(character).join('');\n};\n\nexport const removeCommasFromString = (str: string) => {\n return removeCharacterFromString(str, ',');\n};\n","export const SELECTED_COUNTRY_USA = 'US';\nexport const SELECTED_COUNTRY_UK = 'UK';\n","import {\n createContext,\n useCallback,\n useContext,\n useMemo,\n useState,\n} from 'react';\nimport type { ReactNode } from 'react';\n\nimport {\n SELECTED_COUNTRY_UK,\n SELECTED_COUNTRY_USA,\n} from '@lib/utils/constants/selectedCountry';\n\ntype Props = {\n children: ReactNode;\n};\n\ntype ContextValue = {\n currentPage: SignupPageType;\n setCurrentPage: ReactStateUpdater;\n selectedCountry: SelectedCountryType;\n setSelectedCountry: ReactStateUpdater;\n isUkSelected: boolean;\n isUsaSelected: boolean;\n goToCountrySelection: () => void;\n birthDateString: string | undefined;\n setBirthDateString: ReactStateUpdater;\n};\n\nconst SignupPageContext = createContext({\n currentPage: 'country_selection',\n selectedCountry: null,\n isUkSelected: false,\n isUsaSelected: false,\n} as ContextValue);\n\ntype SignupPageType = 'account_creation' | 'country_selection';\n\nexport const SignupPageProvider = ({ children }: Props): JSX.Element => {\n const [birthDateString, setBirthDateString] = useState();\n const [currentPage, setCurrentPage] =\n useState('country_selection');\n\n const [selectedCountry, setSelectedCountry] =\n useState(null);\n\n const isUkSelected = useMemo(\n () => selectedCountry === SELECTED_COUNTRY_UK,\n [selectedCountry]\n );\n const isUsaSelected = useMemo(\n () => selectedCountry === SELECTED_COUNTRY_USA,\n [selectedCountry]\n );\n\n const goToCountrySelection = useCallback(\n () => setCurrentPage('country_selection'),\n []\n );\n\n return (\n \n {children}\n \n );\n};\n\nexport const useSignupPageContext = (): ContextValue =>\n useContext(SignupPageContext);\n","import { SVGProps } from 'react';\n\nconst FlagCircleUsa = ({\n width = '32',\n height = '32',\n ...otherProps\n}: SVGProps): JSX.Element => (\n \n \n \n \n \n \n \n \n \n \n \n \n);\n\nexport default FlagCircleUsa;\n","import { ReactNode } from 'react';\nimport styled from 'styled-components';\n\nimport FlagCircleUk from '@assets/icons/FlagCircleUk';\nimport FlagCircleUsa from '@assets/icons/FlagCircleUsa';\nimport { EverysetLogo } from '@assets/img';\nimport SaaSLogo from '@assets/img/SaaSLogo';\nimport { Button } from '@components/Button';\nimport {\n SELECTED_COUNTRY_UK,\n SELECTED_COUNTRY_USA,\n} from '@lib/utils/constants/selectedCountry';\nimport { useSignupPageContext } from '@views/auth/signup/SignupPageContext';\nimport { useClientEnvironmentContext } from 'context/ClientEnvironmentContext/ClientEnvironmentContext';\n\nexport const AccountCreationHeader = (): JSX.Element => {\n const { selectedCountry, goToCountrySelection } = useSignupPageContext();\n const { isEveryset } = useClientEnvironmentContext();\n\n return (\n \n {isEveryset ? (\n
\n \n
\n ) : (\n
\n \n
\n )}\n \n {selectedCountry && flagMapper[selectedCountry]}\n Change country\n \n
\n );\n};\n\nconst StyledHeader = styled.div`\n height: 40px;\n width: 100%;\n display: flex;\n align-items: end;\n justify-content: space-between;\n\n .logo-container {\n height: 100%;\n width: 144px;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n`;\n\nconst flagMapper: Record = {\n [SELECTED_COUNTRY_UK]: ,\n [SELECTED_COUNTRY_USA]: ,\n};\n\nconst StyledChangeCountryButton = styled(Button)`\n &.ant-btn.ant-btn-default {\n width: 130px;\n height: 24px;\n border: 1px solid ${({ theme }) => theme.palette.stroke[0]};\n display: flex;\n justify-content: center;\n align-items: center;\n gap: 4px;\n padding: 0;\n border-radius: 3px;\n\n span.button-text {\n font-weight: 600;\n font-size: 12px;\n line-height: 16px;\n color: ${({ theme }) => theme.palette.text[0]};\n }\n }\n`;\n","import { ReactNode } from 'react';\nimport { Checkbox } from 'antd';\nimport { useClientEnvironmentContext } from 'context/ClientEnvironmentContext/ClientEnvironmentContext';\nimport styled from 'styled-components';\n\nimport { Form } from '@components/Form';\n\nimport { useSignupPageContext } from '../../SignupPageContext';\n\nexport const LegalChecks = (): JSX.Element => {\n const { isUkSelected } = useSignupPageContext();\n const { isAlessiHartigan, getPrivacyPolicyLink, getTermsOfServiceLink } =\n useClientEnvironmentContext();\n const privacyPolicyLink = getPrivacyPolicyLink(isUkSelected);\n const termsOfServiceLink = getTermsOfServiceLink(isUkSelected);\n const checkList = isUkSelected\n ? getLegalChecksUK(isAlessiHartigan, privacyPolicyLink, termsOfServiceLink)\n : getLegalChecksUSA(\n isAlessiHartigan,\n privacyPolicyLink,\n termsOfServiceLink\n );\n\n return (\n \n {checkList.map(({ name, content }, index) => (\n \n ))}\n \n );\n};\n\nconst StyledContainer = styled.div`\n display: flex;\n flex-direction: column;\n gap: 12px;\n`;\n\ntype CheckboxFormItemProps = {\n name: string;\n content: ReactNode;\n};\nconst CheckboxFormItem = ({ name, content }: CheckboxFormItemProps) => (\n {\n if (!checked) {\n throw new Error();\n }\n },\n },\n ]}\n >\n {content}\n \n);\n\nconst StyledLink = styled.a`\n font-size: 12px;\n color: ${(props) => props.theme?.palette?.link?.[0]};\n`;\n\nconst StyledCheckboxFormItem = styled(Form.Item)`\n &.ant-form-item {\n margin: 0;\n\n .ant-form-item-explain-error {\n margin: 4px 0 0;\n }\n\n .ant-form-item-control-input {\n min-height: unset;\n }\n\n .ant-checkbox-wrapper {\n width: 100%;\n display: flex;\n gap: 5px;\n align-items: center;\n\n ::after {\n height: 16px;\n }\n\n span {\n padding: 0;\n font-size: 12px;\n line-height: 16px;\n }\n\n .ant-checkbox {\n top: 0;\n width: 16px;\n height: 16px;\n display: flex;\n justify-content: center;\n align-items: center;\n .ant-checkbox-inner {\n width: 14px;\n height: 14px;\n border-radius: 2px;\n transform: scale(1.125);\n }\n }\n }\n }\n`;\n\nconst getLegalChecksUSA = (\n isAlessiHartigan: boolean,\n privacyPolicyLink: string,\n termsOfServiceLink: string\n): CheckboxFormItemProps[] => {\n return [\n {\n name: 'eligibility',\n content: 'I am legally eligible to work in the United States',\n },\n {\n name: 'terms',\n content: (\n
\n I agree to the{' '}\n \n {isAlessiHartigan ? 'Terms of Use' : 'Terms of Service'}\n {' '}\n and have read and acknowledge our{' '}\n \n Privacy Policy\n \n
\n ),\n },\n ];\n};\n\nconst getLegalChecksUK = (\n isAlessiHartigan: boolean,\n privacyPolicyLink: string,\n termsOfServiceLink: string\n): CheckboxFormItemProps[] => {\n return [\n {\n name: 'eligibility',\n content: 'I am legally allowed to work in the UK',\n },\n {\n name: 'insurance-number',\n content: 'I have a National Insurance Number',\n },\n {\n name: 'age',\n content: 'I am over the age of 16 (GCSE completed)',\n },\n {\n name: 'terms',\n content: (\n
\n I confirm I have read and accept the{' '}\n \n Privacy Policy\n {' '}\n and{' '}\n \n {isAlessiHartigan ? 'Terms of Use' : 'Terms of Service'}\n \n
\n ),\n },\n ];\n};\n","import { ReactElement, useEffect, useMemo, useState } from 'react';\nimport Link from 'next/link';\nimport { NextRouter, useRouter } from 'next/router';\nimport { Divider, message,Row, Tooltip } from 'antd';\nimport { Auth } from 'aws-amplify';\nimport { format, isValid, parse, set } from 'date-fns';\nimport { useDispatch, useSelector } from 'react-redux';\nimport styled from 'styled-components';\n\nimport { Checkmark, Close, GoogleLogo } from '@assets/icons';\nimport { CognitoHostedUIIdentityProvider } from '@aws-amplify/auth';\nimport { Button } from '@components/Button';\nimport { Form } from '@components/Form';\nimport { Input, PasswordInput } from '@components/Input';\nimport { UsersCommandApi } from '@lib/api/endpoints/users';\nimport { useAuth } from '@lib/auth';\nimport { setTempUserInfo } from '@lib/redux.lib/slices/appSlice';\nimport { RootState } from '@lib/redux.lib/store';\nimport { displayError, validatePassword } from '@lib/utils/methods';\nimport { checkEmailValid } from '@lib/utils/stringHelper';\n\nimport { useSignupPageContext } from '../SignupPageContext';\nimport { StyledGapContainer } from '../styles';\n\nimport { AccountCreationHeader } from './Header/AccountCreationHeader';\nimport { LegalChecks } from './LegalChecks/LegalChecks';\n\nexport const AccountCreation = (): ReactElement => {\n const { isUkSelected, selectedCountry, birthDateString } =\n useSignupPageContext();\n\n const birthday = useMemo(\n () => (isUkSelected ? parseUkBirthDateString(birthDateString) : null),\n [isUkSelected, birthDateString]\n );\n\n const [form] = Form.useForm();\n const [fieldValues, setFieldValues] = useState({});\n const [commonPasswords, setCommonPasswords] =\n useState<{ [password: string]: boolean }>(null);\n const [passwordErrorMsg, setPasswordErrorMsg] = useState('');\n const [signUpLoading, setSignUpLoading] = useState(false);\n const router = useRouter();\n const redirectTo = router.query?.redirectTo;\n const userNeedsNewPassword = !!router.query?.newPasswordRequired;\n const tempUserInfo = useSelector(\n (state: RootState) => state.app.user.tempUser\n );\n const dispatch = useDispatch();\n const { logout } = useAuth()\n\n useEffect(() => {\n const validateUserWithTempPwdInfo = () => {\n if (userNeedsNewPassword) {\n if (!tempUserInfo) {\n router.push('/auth/login'); \n return;\n }\n\n const email = tempUserInfo?.challengeParam?.userAttributes?.['email'];\n \n if (!email) {\n router.push('/auth/login');\n return;\n }\n\n setFieldValues({ email });\n }\n };\n\n validateUserWithTempPwdInfo();\n }, [tempUserInfo, userNeedsNewPassword, router]);\n\n // On Component Mount - get list of common passwords\n useEffect(() => {\n fetch(\n 'https://app-constants.s3.us-west-2.amazonaws.com/badpassword.json'\n ).then((res) => res.json().then((result) => setCommonPasswords(result)));\n }, []);\n\n const emailLowerCase = fieldValues?.email?.toLowerCase()?.trim();\n\n // TODO: optimize needed -- but necessary on each render for last two password checks\n const isPasswordBad = fieldValues?.password\n ? validatePassword(\n fieldValues.password,\n [{ label: 'Email', value: emailLowerCase }],\n commonPasswords\n )\n : true;\n\n const passwordCheckResults = passwordChecks(\n fieldValues?.password,\n isPasswordBad\n );\n\n const getIsPasswordValid = (password: string) => {\n const isPasswordBad = password\n ? validatePassword(\n password,\n [{ label: 'Email', value: emailLowerCase }],\n commonPasswords\n )\n : true;\n\n const passwordCheckResults = passwordChecks(password, isPasswordBad);\n\n return passwordStrength(passwordCheckResults);\n };\n\n const setPasswordErrMsg = (skipValidation = false) => {\n if (skipValidation) return setPasswordErrorMsg('');\n\n const isPasswordBad = fieldValues.password\n ? validatePassword(\n fieldValues.password,\n [{ label: 'Email', value: emailLowerCase }],\n commonPasswords\n )\n : true;\n const passwordCheckResults = passwordChecks(\n fieldValues.password,\n isPasswordBad\n );\n const isPasswordValid = passwordStrength(passwordCheckResults);\n if (!isPasswordValid || !fieldValues.password) {\n setPasswordErrorMsg(\n !fieldValues.password\n ? 'Password is required!'\n : 'Password does not meet all the requirements'\n );\n } else setPasswordErrorMsg('');\n };\n\n const checkList: Array = isUkSelected\n ? ['eligibility', 'age', 'insurance-number', 'terms']\n : ['eligibility', 'terms'];\n const isAllLegalChecked = checkList.every((check) => !!fieldValues[check]);\n\n const isSignupButtonDisabled =\n !getIsPasswordValid(fieldValues.password) ||\n signUpLoading ||\n !isAllLegalChecked ||\n !getIsEmailValid(fieldValues.email);\n\n return (\n \n \n\n
\n {\n // changedValues - only update changed value\n // values - update all fields\n setFieldValues({ ...fieldValues, ...changedValues });\n }}\n >\n {/* form items must produce a single child element */}\n {\n !userNeedsNewPassword && (\n \n )\n }\n\n \n
\n \n \n {passwordErrorMsg}\n \n
\n\n \n
\n\n \n \n \n signUp({\n fieldValues,\n isPasswordBad,\n setSignUpLoading: (loading: boolean) =>\n setSignUpLoading(loading),\n router,\n redirectTo: redirectTo as string,\n selectedCountry,\n birthday,\n userNeedsNewPassword,\n tempUserInfo,\n logout,\n dispatch,\n })\n }\n >\n Sign up\n \n \n \n
\n or\n \n \n
\n
\n
\n );\n};\n\nconst StyledContainer = styled.div`\n display: flex;\n flex-direction: column;\n gap: 24px;\n max-width: 448px;\n margin: 0 auto;\n padding: 64px 20px 0 20px;\n`;\n\nconst ErrorMsg = styled.p<{ passwordErrorMsg: string }>`\n display: ${({ passwordErrorMsg }) =>\n passwordErrorMsg ? 'inline-block' : 'none'};\n color: ${(props) => props.theme.palette.color[0]};\n margin: 4px 0 0 0;\n font-size: 12px;\n`;\n\ninterface IFieldValues {\n email?: string;\n password?: string;\n secret_key?: string;\n eligibility?: boolean;\n terms?: boolean;\n age?: boolean;\n 'insurance-number'?: boolean;\n}\n\ninterface IPasswordCheck {\n rule: number | boolean;\n text: string;\n}\n\nconst passwordChecks = (\n password: string,\n isPasswordBad: boolean | { label: string; value: string }\n): IPasswordCheck[] => [\n { rule: password?.length >= 8, text: '8 characters minimum' },\n {\n rule: password?.match(/[A-Z]+/)?.length,\n text: 'One uppercase letter',\n },\n {\n rule: password?.match(/[a-z]+/)?.length,\n text: 'One lowercase letter',\n },\n {\n rule: password?.match(/[0-9]+/)?.length,\n text: 'One number',\n },\n {\n rule: !isPasswordBad,\n text: 'Does not include parts of name or email',\n },\n {\n rule: !isPasswordBad,\n text: 'Not a commonly used password (e.g. Password123)',\n },\n];\n\n// // for UI display only\nconst PasswordCheckItems = ({\n passwordCheckResults,\n}: {\n passwordCheckResults: IPasswordCheck[];\n}): ReactElement => {\n return (\n \n {passwordCheckResults?.map((val, index) => (\n \n {val?.rule ? : }\n {val?.text}\n \n ))}{' '}\n \n );\n};\n\n// for actual validation\nconst passwordStrength = (passwordCheckResults: IPasswordCheck[]) => {\n return !passwordCheckResults?.filter((val) => !val?.rule)?.length;\n};\n\ntype SignUpProps = {\n fieldValues: IFieldValues;\n isPasswordBad: boolean | { label: string; value: string };\n setSignUpLoading: (loading: boolean) => void;\n router: NextRouter;\n redirectTo?: string | undefined;\n selectedCountry: SelectedCountryType;\n birthday: string | null;\n userNeedsNewPassword?: boolean;\n tempUserInfo?: any;\n logout: () => void;\n dispatch: any;\n};\nconst signUp = async ({\n fieldValues,\n isPasswordBad,\n setSignUpLoading,\n router,\n redirectTo,\n selectedCountry,\n birthday,\n userNeedsNewPassword,\n tempUserInfo,\n logout,\n dispatch\n}: SignUpProps): Promise => {\n // Set signUpLoading to true to indicate account is being created, and to lock multiple clicks;\n setSignUpLoading(true);\n\n const { email, password } = fieldValues;\n\n try {\n // failsafe if somehow password is still bad on submit\n if (isPasswordBad && typeof isPasswordBad === 'object') {\n throw Error(\n `Please use a stronger password. Passwords cannot contain any pieces of ${\n isPasswordBad?.label\n ? isPasswordBad.label\n : 'commonly used passwords.'\n } `\n );\n }\n\n const username = email?.toLowerCase()?.trim();\n\n if (userNeedsNewPassword) {\n await setNewPassword(tempUserInfo, password, birthday, selectedCountry, router);\n setSignUpLoading(false);\n setTimeout(() => {\n dispatch(setTempUserInfo(null));\n logout();\n }\n , 1000);\n return\n } else {\n // Signup on Cognito\n await Auth.signUp({\n username,\n password,\n clientMetadata: {\n application_id: router?.query?.application_id as string,\n selectedCountry,\n referrer: window?.location.origin,\n birthday,\n },\n });\n }\n\n\n setSignUpLoading(false);\n\n // Change to post-signup instructions on success\n if (router.pathname === '/auth/signup') {\n router.push({\n pathname: '/auth/post-signup',\n query: {\n email: username,\n ...(redirectTo && { redirectTo }),\n },\n });\n }\n } catch (error) {\n console.error(error); // intentional\n if (\n error?.message.toString() ==\n 'PreSignUp failed with error Incorrect Access Code.'\n ) {\n message.error('Incorrect Access Code.', 3);\n return setSignUpLoading(false);\n } else {\n displayError(error?.message);\n return setSignUpLoading(false);\n }\n }\n};\n\ntype SetNewPasswordFn = (\n tempUserInfo: any, \n password: string, \n birthday: string, \n selectedCountry: ProductionCountry, \n router: NextRouter\n) => Promise;\n\nconst setNewPassword: SetNewPasswordFn = async (\n tempUserInfo, \n password, \n birthday, \n selectedCountry, \n router\n) => {\n const userId = tempUserInfo?.challengeParam?.userAttributes?.['custom:castifi_user_id'];\n await Auth.completeNewPassword(\n tempUserInfo,\n password,\n {},\n {\n application_id: router?.query?.application_id as string,\n selectedCountry,\n referrer: window?.location.origin,\n birthday,\n },\n );\n if (birthday) {\n await UsersCommandApi.createUserAppearance(userId, { birthday });\n }\n const signupProperties = {\n selected_country: selectedCountry,\n referrer: window?.location.origin,\n client_id: process.env.NEXT_PUBLIC_CLIENT_ID,\n };\n await UsersCommandApi.create_user_signup_properties(\n userId,\n signupProperties\n );\n\n message.success('Signup successful! New password has been registered', 3);\n}\n\nconst getIsEmailValid = (email: string) => !!(email && checkEmailValid(email));\n\nconst EmailFormItem = (): ReactElement => {\n return (\n {\n if (!email) return Promise.resolve(); // this is already handled in the above rule\n const isValidEmail = checkEmailValid(email);\n if (!isValidEmail) return Promise.reject();\n return Promise.resolve();\n },\n },\n ]}\n >\n \n \n );\n};\nconst PasswordFormItem = ({\n getIsPasswordValid,\n validateStatus,\n setPasswordErrMsg,\n}: {\n getIsPasswordValid: (password: string) => boolean;\n validateStatus: 'validating' | 'error';\n setPasswordErrMsg: (skipValidation?: boolean) => void;\n}): ReactElement => (\n \n setPasswordErrMsg()}\n displayBr={false}\n onChange={(e) =>\n getIsPasswordValid(e.target.value) && setPasswordErrMsg(true)\n }\n />\n \n);\n\nconst StyledFormItem = styled(Form.Item)`\n &.ant-form-item {\n margin-bottom: 0;\n }\n\n .ant-form-item-control {\n display: flex;\n flex-direction: column;\n gap: 4px;\n }\n\n .ant-form-item-explain-error {\n margin: 0;\n }\n`;\nconst StyledInput = styled(Input)`\n &.ant-input {\n height: 32px;\n margin-top: 4px;\n }\n`;\n\nconst StyledPasswordInput = styled(PasswordInput)`\n &.ant-input-password {\n height: 32px;\n margin: 4px 0 0;\n\n .ant-input {\n font-size: 12px;\n }\n }\n`;\n\ntype GoogleButtonProps = {\n selectedCountry: SelectedCountryType;\n birthday: string | null;\n};\nconst GoogleButton = ({\n selectedCountry,\n birthday,\n}: GoogleButtonProps): ReactElement => {\n const isFacebookBrowser =\n navigator?.userAgent?.includes('FB_IAB') ||\n navigator?.userAgent?.includes('FBIOS') ||\n navigator?.userAgent?.includes('FBAV') ||\n navigator?.userAgent?.includes('FBAN');\n\n return (\n \n {\n Auth.federatedSignIn({\n provider: CognitoHostedUIIdentityProvider.Google,\n customState: JSON.stringify({\n signupProperties: { selectedCountry },\n birthday,\n }),\n })\n .then((success) => {\n console.debug('sucess', success);\n })\n .catch((err) => {\n console.debug('ERROR', err);\n });\n }}\n >\n \n Sign up with Google\n \n \n );\n};\n\nconst LoginLink = (): ReactElement => (\n \n Already have an account?{' '}\n Log in here\n \n);\n\nconst StyledLoginLink = styled.p`\n margin: 0;\n font-size: 12px;\n line-height: 15px;\n text-align: center;\n\n > span {\n color: ${({ theme }) => theme.palette.greyscale[7]};\n }\n\n > a {\n text-decoration: none;\n color: ${(props) => props.theme?.palette?.primary?.[0]};\n font-weight: 600;\n }\n`;\n\nconst StyledForm = styled(Form)`\n &.ant-form {\n display: flex;\n flex-direction: column;\n gap: 16px;\n }\n`;\n\nconst PasswordLine = styled(Row)`\n align-items: center;\n font-size: 12px;\n`;\n\nconst StyledDivider = styled(Divider)`\n &.ant-divider {\n margin: 12px 0;\n }\n\n &::before {\n border-block-start-color: ${(props) =>\n props.theme?.palette?.greyscale?.[4]} !important;\n }\n span.ant-divider-inner-text {\n font-size: 12px;\n padding: 0px 10px;\n color: ${(props) =>\n props?.theme ? props.theme?.palette?.greyscale?.[5] : 'inherit'};\n }\n &::after {\n border-block-start-color: ${(props) =>\n props.theme?.palette?.greyscale?.[4]} !important;\n }\n`;\n\nconst SignUpButton = styled(Button)`\n &.ant-btn {\n width: 100%;\n align-items: center;\n justify-content: center;\n margin: 0;\n height: 32px;\n font-size: 12px;\n }\n`;\n\nconst StyledGoogleButton = styled(Button)`\n &.ant-btn.ant-btn-default {\n border: 1px solid ${({ theme }) => theme.palette.stroke[0]};\n width: 100%;\n height: 32px;\n margin: 0 0 20px 0;\n }\n\n span {\n font-size: 12px;\n color: ${({ theme }) => theme.palette.greyscale[7]};\n }\n`;\n\nAccountCreation.isPublic = true;\n\nconst parseUkBirthDateString = (birthdateString: string | undefined) => {\n if (!birthdateString) return null;\n\n const parsedDate = parse(birthdateString, 'dd/MM/yyyy', new Date());\n const isValidDate =\n isValid(parsedDate) && format(parsedDate, 'dd/MM/yyyy') === birthdateString;\n\n if (!isValidDate) return null;\n\n return format(parsedDate, 'MM/dd/yyyy');\n};\n","import { ReactNode } from 'react';\nimport styled from 'styled-components';\n\nimport { Button } from '@components/Button';\nimport { Modal } from '@components/Modal';\nimport { UseModalVisibilityHookReturn } from '@hooks/shared/useModalVisibility';\nimport { useClientEnvironmentContext } from 'context/ClientEnvironmentContext/ClientEnvironmentContext';\n\ntype UnderAgeModalProps = {\n modalVisibility: UseModalVisibilityHookReturn;\n header: string;\n bodyContent: ReactNode;\n};\nexport const ThankyouModal = ({\n modalVisibility: { hideModal, isVisible },\n header,\n bodyContent,\n}: UnderAgeModalProps): JSX.Element => {\n const { clientName, isEveryset, clientDomain } =\n useClientEnvironmentContext();\n\n return (\n \n \n

{header}

\n
\n \n {bodyContent}\n
\n \n Explore {clientName}\n \n
\n
\n \n );\n};\n\nconst StyledModal = styled(Modal)`\n .ant-modal-close {\n top: 10px;\n right: 14px;\n width: 20px;\n height: 20px;\n\n .ant-modal-close-x {\n width: 100%;\n height: 100%;\n\n svg {\n width: 100%;\n height: 100%;\n path {\n stroke: #ffffff;\n }\n }\n }\n }\n .ant-modal-body {\n padding: 0;\n }\n`;\n\nconst StyledHeader = styled.div<{ isEveryset: boolean }>`\n height: 128px;\n padding: 0 20px;\n display: flex;\n flex-direction: column;\n justify-content: center;\n background: ${({ theme, isEveryset }) =>\n isEveryset\n ? `linear-gradient(96.66deg, #435ce0 3.44%, ${theme.palette.primary[0]} 99.44%)`\n : `linear-gradient(96.66deg, #357ee0 3.44%, ${theme.palette.primary[0]} 99.44%)`};\n\n p {\n margin: 0;\n color: #ffffff;\n font-weight: 700;\n font-size: 24px;\n line-height: 32px;\n text-align: center;\n }\n`;\n\nconst StyledContent = styled.div`\n padding: 24px 20px;\n display: flex;\n flex-direction: column;\n gap: 24px;\n p {\n margin: 0;\n font-size: 14px;\n line-height: 20px;\n text-align: center;\n }\n\n div.button-container {\n display: flex;\n justify-content: center;\n }\n`;\n\nconst StyledButton = styled(Button)`\n &.ant-btn.ant-btn-default {\n border: 1px solid ${({ theme }) => theme.palette.stroke[0]};\n height: 32px;\n background-color: #ffffff;\n box-shadow: none;\n }\n`;\n","import { ChangeEventHandler } from 'react';\nimport styled from 'styled-components';\n\nimport { DateTextInput } from '@components/Input/DateTextInput';\n\ntype BirthDatePickerProps = {\n birthDate?: string;\n onBirthDateChange: ChangeEventHandler;\n ageErrorMessage: string | null;\n showBirthdateValidation: boolean;\n};\nexport const BirthDatePicker = ({\n birthDate,\n onBirthDateChange,\n ageErrorMessage,\n showBirthdateValidation,\n}: BirthDatePickerProps): JSX.Element => (\n \n

\n Date of Birth ({UK_DATE_FORMAT}) *\n

\n \n {showBirthdateValidation && (\n

\n {ageErrorMessage}\n

\n )}\n
\n);\n\nconst UK_DATE_FORMAT = 'DD/MM/YYYY';\n\nconst StyledContainer = styled.div`\n display: flex;\n flex-direction: column;\n gap: 4px;\n\n h3 {\n margin: 0;\n font-weight: 600;\n font-size: 12px;\n line-height: 16px;\n color: ${({ theme }) => theme.palette.text[0]};\n\n span.required {\n color: ${({ theme }) => theme.palette.color[0]};\n }\n }\n`;\n","import { ReactNode, useCallback, useMemo } from 'react';\nimport styled from 'styled-components';\n\nimport FlagCircleUk from '@assets/icons/FlagCircleUk';\nimport FlagCircleUsa from '@assets/icons/FlagCircleUsa';\nimport { UnstyledButton } from '@components/UnstyledButton/UnstyledButton';\nimport {\n SELECTED_COUNTRY_UK,\n SELECTED_COUNTRY_USA,\n} from '@lib/utils/constants/selectedCountry';\n\nimport { useSignupPageContext } from '../../SignupPageContext';\n\nexport const CountryFlags = (): JSX.Element => {\n const { selectedCountry, setSelectedCountry } = useSignupPageContext();\n return (\n \n {FLAG_LIST.map((flag) => (\n \n ))}\n \n );\n};\n\ntype FlagCardProps = FlagCardType & {\n selectedCountry: SelectedCountryType;\n setSelectedCountry: ReactStateUpdater;\n};\nconst FlagCard = ({\n label,\n icon,\n setSelectedCountry,\n value,\n selectedCountry,\n}: FlagCardProps) => {\n const onSelectFlag = useCallback(\n () => setSelectedCountry(value),\n [setSelectedCountry, value]\n );\n const isSelected = useMemo(\n () => selectedCountry === value,\n [selectedCountry, value]\n );\n return (\n \n
{icon}
\n

{label}

\n
\n );\n};\n\ntype FlagCardType = {\n label: string;\n icon: ReactNode;\n value: ProductionCountry;\n};\nconst FLAG_LIST: FlagCardType[] = [\n {\n label: 'United States of America',\n icon: ,\n value: SELECTED_COUNTRY_USA,\n },\n {\n label: 'United Kingdom',\n icon: ,\n value: SELECTED_COUNTRY_UK,\n },\n];\n\nconst StyledContainer = styled.div`\n width: 100%;\n display: flex;\n gap: 16px;\n height: 84px;\n`;\n\ntype StyledFlagCardProps = {\n isSelected: boolean;\n};\nconst StyledFlagCard = styled(UnstyledButton)`\n border: ${({ theme, isSelected }) =>\n isSelected\n ? `2px solid ${theme.palette.primary[0]}`\n : `1px solid ${theme.palette.stroke[0]}`};\n border-radius: 8px;\n gap: 12px;\n justify-content: center;\n flex: 1;\n padding: ${({ isSelected }) => (isSelected ? '0 10px' : '0 11px')};\n background-color: ${({ isSelected, theme }) =>\n isSelected ? theme.palette.color[14] : 'transparent'};\n\n div.flag-icon-container {\n display: flex;\n }\n\n p.country-name {\n margin: 0;\n line-height: 16px;\n font-size: 12px;\n font-weight: 600;\n }\n`;\n","import { ChangeEventHandler, useCallback, useEffect, useMemo, useState } from 'react';\nimport { useRouter } from 'next/router';\nimport { useClientEnvironmentContext } from 'context/ClientEnvironmentContext/ClientEnvironmentContext';\nimport { differenceInYears, format, isAfter, isValid, parse } from 'date-fns';\nimport { useSelector } from 'react-redux';\nimport styled from 'styled-components';\n\nimport { EverysetLogo } from '@assets/img';\nimport SaaSLogo from '@assets/img/SaaSLogo';\nimport { Button } from '@components/Button';\nimport { ThankyouModal } from '@components/ThankyouModal/ThankyouModal';\nimport { useModalVisibility } from '@hooks/shared/useModalVisibility';\nimport { RootState } from '@lib/redux.lib/store';\n\nimport { useSignupPageContext } from '../SignupPageContext';\nimport { StyledGapContainer } from '../styles';\n\nimport { BirthDatePicker } from './BirthDatePicker/BirthDatePicker';\nimport { CountryFlags } from './CountryFlags/CountryFlags';\n\nexport const CountrySelection = (): JSX.Element => {\n const {\n isUkSelected,\n setCurrentPage,\n isUsaSelected,\n birthDateString,\n setBirthDateString,\n } = useSignupPageContext();\n\n const router = useRouter();\n const userNeedsNewPassword = !!router.query?.newPasswordRequired;\n const tempUserInfo = useSelector(\n (state: RootState) => state.app.user.tempUser\n );\n\n useEffect(() => {\n const validateUserWithTempPwdInfo = () => {\n if (userNeedsNewPassword) {\n if (!tempUserInfo) {\n router.push('/auth/login'); \n return;\n }\n\n const email = tempUserInfo?.challengeParam?.userAttributes?.['email'];\n \n if (!email) {\n router.push('/auth/login');\n return;\n }\n }\n };\n\n validateUserWithTempPwdInfo();\n }, [tempUserInfo, userNeedsNewPassword, router]);\n\n const underAgeModalVisibility = useModalVisibility();\n\n const [showBirthdateValidation, setShowBirthdateValidation] = useState(false);\n\n const ageErrorCode = useMemo(\n () => getAgeError(birthDateString),\n [birthDateString]\n );\n const ageErrorMessage = useMemo(() => {\n return errorMessageMapper[ageErrorCode] ?? null;\n }, [ageErrorCode]);\n\n const onBirthDateChange: ChangeEventHandler = useCallback(\n (event) => {\n setShowBirthdateValidation(true);\n setBirthDateString(event.target.value);\n },\n [setBirthDateString]\n );\n\n const isContinueButtonDisabled = useMemo(() => {\n if (isUkSelected) {\n return !!ageErrorMessage;\n }\n if (isUsaSelected) {\n return false;\n }\n return true;\n }, [ageErrorMessage, isUkSelected, isUsaSelected]);\n\n const onContinueButtonClick = useCallback(() => {\n if (ageErrorCode === AGE_ERROR_UNDER_AGE && isUkSelected) {\n underAgeModalVisibility.showModal();\n return;\n }\n setCurrentPage('account_creation');\n }, [setCurrentPage, ageErrorCode, underAgeModalVisibility, isUkSelected]);\n\n const { clientName, isEveryset } = useClientEnvironmentContext();\n\n return (\n \n \n We do not cast anyone 16 years or under in the UK who has not\n completed their last GCSE exam. We would be delighted to invite you\n to register with us once you are of age.\n

\n }\n modalVisibility={underAgeModalVisibility}\n header={`Thank you for your interest in joining ${clientName}!`}\n />\n \n {isEveryset ? : }\n \n \n \n

Where will you be working?

\n

\n You will be asked to verify your work eligibility before you can\n start working.\n

\n
\n \n \n {isUkSelected && (\n \n )}\n \n
\n\n \n Continue\n \n
\n );\n};\n\nconst StyledContainer = styled.div`\n padding: 64px 20px;\n max-width: 448px;\n margin: 0 auto;\n display: flex;\n flex-direction: column;\n gap: 24px;\n color: #000000;\n`;\n\nconst StyledLogoContainer = styled.div`\n display: flex;\n justify-content: center;\n align-items: center;\n height: 60px;\n`;\n\nconst StyledQuestion = styled.div`\n display: flex;\n flex-direction: column;\n gap: 8px;\n\n h2 {\n margin: 0;\n line-height: 20px;\n font-weight: 600;\n font-size: 16px;\n }\n\n p {\n margin: 0;\n font-size: 12px;\n line-height: 16px;\n }\n`;\n\nconst StyledContinueButton = styled(Button)`\n &.ant-btn {\n height: 32px;\n\n > span {\n font-size: 12px;\n }\n\n &:disabled {\n &:hover {\n background: ${({ theme }) => theme.palette.primary[0]};\n border-color: ${({ theme }) => theme.palette.primary[0]};\n }\n }\n }\n`;\n\nconst AGE_ERROR_NO_DATE = 'AGE_ERROR_NO_DATE';\nconst AGE_ERROR_INVALID_DATE = 'AGE_ERROR_INVALID_DATE';\nconst AGE_ERROR_FUTURE_DATE = 'AGE_ERROR_FUTURE_DATE';\nconst AGE_ERROR_UNDER_AGE = 'AGE_ERROR_UNDER_AGE';\n\nconst errorMessageMapper = {\n AGE_ERROR_NO_DATE: 'Please enter your date of birth',\n AGE_ERROR_INVALID_DATE: 'Please enter a valid date',\n AGE_ERROR_FUTURE_DATE: 'Date of Birth can not be in the future',\n};\n\nconst getAgeError = (birthDate: string | undefined) => {\n if (!birthDate) {\n return AGE_ERROR_NO_DATE;\n }\n const parsedDate = parse(birthDate, 'dd/MM/yyyy', new Date());\n const isValidDate =\n isValid(parsedDate) && format(parsedDate, 'dd/MM/yyyy') === birthDate;\n\n if (!isValidDate) {\n return AGE_ERROR_INVALID_DATE;\n }\n\n if (isAfter(parsedDate, new Date())) {\n return AGE_ERROR_FUTURE_DATE;\n }\n\n const age = differenceInYears(new Date(), parsedDate);\n if (age < 16) {\n return AGE_ERROR_UNDER_AGE;\n }\n\n return null;\n};\n","import { AccountCreation } from '@views/auth/signup/AccountCreation/AccountCreation';\nimport { CountrySelection } from '@views/auth/signup/CountrySelection/CountrySelection';\nimport {\n SignupPageProvider,\n useSignupPageContext,\n} from '@views/auth/signup/SignupPageContext';\n\nconst SignupPageContent = () => {\n const { currentPage } = useSignupPageContext();\n if (currentPage === 'account_creation') {\n return ;\n }\n if (currentPage === 'country_selection') {\n return ;\n }\n return null;\n};\n\nconst SignUpPage = (): JSX.Element => (\n \n \n \n);\n\nSignUpPage.isPublic = true;\n\nexport default SignUpPage;\n","import styled from 'styled-components';\n\ntype StyledGapContainerProps = {\n gap: number;\n};\nexport const StyledGapContainer = styled.div`\n display: flex;\n flex-direction: column;\n gap: ${({ gap }) => `${gap}px`};\n`;\n","if (process.env.NODE_ENV === 'production') {\n module.exports = require('./lib/react-input-mask.production.min.js');\n} else {\n module.exports = require('./lib/react-input-mask.development.js');\n}\n","\"use strict\";function _interopDefault(e){return e&&\"object\"==typeof e&&\"default\"in e?e[\"default\"]:e}var React=_interopDefault(require(\"react\")),reactDom=require(\"react-dom\");function _defaults2(e,t){for(var n=Object.getOwnPropertyNames(t),a=0;aa.length&&isPermanentCharacter(e,t.length-1);)t=t.slice(0,t.length-1);return t.length}for(var i=a.length,r=t.length;r>=a.length;r--){var o=t[r];if(!isPermanentCharacter(e,r)&&isAllowedCharacter(e,r,o)){i=r+1;break}}return i}function isFilled(e,t){return getFilledLength(e,t)===e.mask.length}function formatValue(e,t){var n=e.maskChar,a=e.mask,i=e.prefix;if(!n){for((t=insertString(e,\"\",t,0)).lengtho.length&&(o+=l.slice(o.length,s)),t.every(function(e){for(;i=e,isPermanentCharacter(r,a=s)&&i!==l[a];){if(s>=o.length&&(o+=l[s]),t=e,n=s,u&&isPermanentCharacter(r,n)&&t===u)return!0;if(++s>=l.length)return!1}var t,n,a,i;return!isAllowedCharacter(r,s,e)&&e!==u||(s=r.length)return!1;var t,n;return(isAllowedCharacter(a,i,e)||e===o)&&i++,ii.start?h=(c=getInsertStringLength(e,a,u=l.slice(i.start,n.end),f))?i.length:0:l.length=r.length?f=r.length:f=o.length&&f