{"version":3,"file":"static/js/23.4e088546.chunk.js","sources":["utils/formHelpers.js","layouts/public-layout/styles.js","components/public-layout/legal/styles.js","components/public-layout/legal/Legal.js","layouts/public-layout/PublicLayout.js","components/public-layout/heading/styles.js","components/public-layout/heading/Heading.js","utils/deviceHelpers.js","components/public-layout/logo/styles.js","components/public-layout/logo/Logo.js","components/utils/delayed/Delayed.js","../node_modules/react-cookie/es6/withCookies.js","components/register-form/styles.js","components/register-form/RegisterForm.js","pages/register/Register.js"],"sourceRoot":"","sourcesContent":["export function clearSelected(element) {\n document.getElementById(element).selectedIndex = -1\n}\n\nexport function addUnloader() {\n window.addEventListener(\"beforeunload\", handleOnBeforeUnload, { capture: true })\n}\n\nexport function removeUnloader() {\n window.removeEventListener(\"beforeunload\", handleOnBeforeUnload, { capture: true })\n}\n\nexport function handleOnBeforeUnload(event) {\n if (event) event.preventDefault()\n return (event.returnValue = \"\")\n}\n","import styled, { createGlobalStyle, css } from \"styled-components\"\nimport breakpoint from \"styled-components-breakpoint\"\n\nexport const GlobalStyles = createGlobalStyle`\n * {\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n }\n\n html {\n height: 100vh;\n width: 100%;\n font-size: 16px;\n font-family: ${(props) => props.theme.fonts.body.family}, sans-serif;\n font-weight: ${(props) => props.theme.fonts.body.weight};\n }\n\n @supports (-webkit-touch-callout: none) {\n html {\n height: -webkit-fill-available !important;\n }\n }\n\n h1, h2, h3, h4, h5, h6 {\n font-family: ${(props) => props.theme.fonts.headings.family}, sans-serif;\n font-weight: ${(props) => props.theme.fonts.headings.weight};\n }\n\n h1 { font-size: calc(2.25rem * 1.1); }\n h2 { font-size: calc(2rem * 1.1); }\n\n body {\n margin: 0;\n padding: 0;\n\n ${breakpoint(\"desktop\")`\n overflow-x: hidden;\n `}\n }\n\n #root {\n background: #fff;\n }\n`\n\nexport const Page = styled.div`\n color: ${(props) => props.theme.colors.body};\n min-height: calc(100vh - 2rem);\n padding: 1.2rem;\n\n @supports (-webkit-touch-callout: none) {\n min-height: -webkit-fill-available !important;\n }\n\n ${breakpoint(\"tablet\")`\n max-width: 600px\n padding: 2rem;\n `}\n\n ${breakpoint(\"desktop\")`\n min-height: calc(100vh - 6rem);\n padding: 3rem;\n `}\n`\n\nexport const Container = styled.div`\n max-width: 500px;\n width: 100%;\n padding: 1.5rem 1.5rem 0rem 1.5rem;\n\n ${breakpoint(\"tablet\")`\n padding: 0;\n `}\n`\nexport const LoginBackground = styled.div`\n display: none;\n\n ${(props) => css`\n background-color: ${props.theme.colors.primary};\n background-image: url(\"${props.theme.images.background}\");\n background-size: cover;\n background-position: center 20%;\n min-height: 100%;\n width: 50%;\n height: 100vh;\n position: sticky;\n top: 0;\n `}\n\n ${breakpoint(\"desktop\")`\n display: block;\n `}\n`\n\nexport const BackgroundWrapper = styled.div`\n max-width: 33%;\n\n ${breakpoint(\"tablet\") &&\n css`\n display: hidden;\n `}\n display: hidden;\n`\n\nexport const MainWrapper = styled.div`\n width: 100%;\n display: grid;\n`\n\nexport const BodyWrapper = styled.div`\n display: flex;\n min-height: 100vh;\n`\nexport const ContentWrapper = styled.div`\n height: 100%;\n width: 100%;\n margin: 1rem 0;\n display: flex;\n justify-content: center;\n align-items: center;\n line-height: 1.5rem;\n\n ${breakpoint(\"desktop\")`\n margin: 4rem 0;\n `}\n`\n","import styled from \"styled-components\"\nimport breakpoint from \"styled-components-breakpoint\"\n\nexport const Container = styled.footer`\n color: #717171;\n display: flex;\n height: 100%;\n justify-content: center;\n width: -webkit-fill-available;\n text-align: center;\n padding: 0 1rem 0rem 1rem;\n margin-top: 1rem;\n\n a {\n color: inherit;\n }\n\n ${breakpoint(\"tablet\")`\n padding: 0 4rem;\n margin-top: 0;\n `}\n`\n\nexport const P = styled.p`\n display: inline-block;\n align-self: flex-end;\n font-size: 14px;\n text-align: left;\n line-height: 16.7px;\n\n ${breakpoint(\"tablet\")`\n text-align: center;\n margin-bottom: 1rem;\n margin-top: 1rem;\n `}\n`\n","import React, { Component } from \"react\"\nimport BrandContext from \"@context/BrandContext\"\nimport { Container, P } from \"./styles\"\n\nclass Legal extends Component {\n static contextType = BrandContext\n\n render() {\n return (\n \n

\n © 2001 - {new Date().getFullYear()} All Rights Reserved. {this.context.friendlyName} is a registered\n trademark of Smaller Earth.
\n
\n

\n
\n )\n }\n}\n\nexport default Legal\n","import React, { Fragment } from \"react\"\nimport { GlobalStyles, Container, LoginBackground, MainWrapper, ContentWrapper, BodyWrapper } from \"./styles\"\nimport Legal from \"@localComponents/public-layout/legal\"\nimport Head from \"@localComponents/head\"\nimport { EnvironmentRibbon } from \"@smaller-earth/postcard-components\"\nimport { getEnvironment } from \"@helpers/siteHelpers\"\nimport { capitalize } from \"@helpers/stringHelpers\"\n\nconst environment = getEnvironment()\n\nconst PublicLayout = ({ title, children }) => (\n \n \n \n {environment !== \"production\" && }\n \n \n \n \n {children}\n \n \n \n \n \n)\n\nexport default PublicLayout\n","import styled from \"styled-components\"\n\nexport const StyledHeading = styled.h1`\n margin-bottom: 1.5rem;\n font-size: 1.5rem;\n font-family: ${(props) => props.theme.fonts.headings.family}, sans-serif;\n font-weight: ${(props) => props.theme.fonts.headings.weight};\n line-height: 33.6px;\n text-wrap: balance;\n`\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\nimport { StyledHeading } from \"./styles\"\n\nconst Heading = ({ title }) => {title}\n\nHeading.propTypes = {\n title: PropTypes.string.isRequired\n}\n\nexport default Heading\n","import { isMobile, isTablet } from \"react-device-detect\"\n\nexport function userAgent() {\n return navigator.userAgent.substring(0, 255)\n}\n\nexport function deviceType() {\n if (isMobile) return \"mobile\"\n else if (isTablet) return \"tablet\"\n else return \"desktop\"\n}\n","import styled from \"styled-components\"\nimport breakpoint from \"styled-components-breakpoint\"\n\nexport const Container = styled.div`\n width: 55%;\n min-height: 64px;\n max-width: 240px;\n margin-bottom: 3rem;\n\n img {\n max-height: 64px;\n max-width: 300px;\n }\n\n ${breakpoint(\"tablet\")`\n width: 100%;\n max-width: 350px;\n `}\n\n ${breakpoint(\"desktop\")`\n max-width: 400px;\n `}\n`\n","import React, { Component } from \"react\"\nimport BrandContext from \"@context/BrandContext\"\nimport { Container } from \"./styles\"\n\nclass Logo extends Component {\n static contextType = BrandContext\n\n render() {\n return (\n \n {this.context.friendlyName}\n \n )\n }\n}\n\nexport default Logo\n","import React from \"react\"\nimport PropTypes from \"prop-types\"\n\nclass Delayed extends React.Component {\n constructor(props) {\n super(props)\n this.state = { hidden: true }\n }\n\n componentDidMount() {\n setTimeout(() => {\n this.setState({ hidden: false })\n }, this.props.waitBeforeShow)\n }\n\n render() {\n return this.state.hidden ? \"\" : this.props.children\n }\n}\n\nDelayed.propTypes = {\n waitBeforeShow: PropTypes.number.isRequired\n}\n\nexport default Delayed\n","var __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport * as React from 'react';\nimport hoistStatics from 'hoist-non-react-statics';\nimport { Consumer } from './CookiesContext';\nexport default function withCookies(WrappedComponent) {\n // @ts-ignore\n const name = WrappedComponent.displayName || WrappedComponent.name;\n class CookieWrapper extends React.Component {\n constructor() {\n super(...arguments);\n this.onChange = () => {\n // Make sure to update children with new values\n this.forceUpdate();\n };\n }\n listen() {\n this.props.cookies.addChangeListener(this.onChange);\n }\n unlisten(cookies) {\n (cookies || this.props.cookies).removeChangeListener(this.onChange);\n }\n componentDidMount() {\n this.listen();\n }\n componentDidUpdate(prevProps) {\n if (prevProps.cookies !== this.props.cookies) {\n this.unlisten(prevProps.cookies);\n this.listen();\n }\n }\n componentWillUnmount() {\n this.unlisten();\n }\n render() {\n const _a = this.props, { forwardedRef, cookies } = _a, restProps = __rest(_a, [\"forwardedRef\", \"cookies\"]);\n const allCookies = cookies.getAll();\n return (React.createElement(WrappedComponent, Object.assign({}, restProps, { ref: forwardedRef, cookies: cookies, allCookies: allCookies })));\n }\n }\n CookieWrapper.displayName = `withCookies(${name})`;\n CookieWrapper.WrappedComponent = WrappedComponent;\n const ForwardedComponent = React.forwardRef((props, ref) => {\n return (React.createElement(Consumer, null, (cookies) => (React.createElement(CookieWrapper, Object.assign({ cookies: cookies }, props, { forwardedRef: ref })))));\n });\n ForwardedComponent.displayName = CookieWrapper.displayName;\n ForwardedComponent.WrappedComponent = CookieWrapper.WrappedComponent;\n return hoistStatics(ForwardedComponent, WrappedComponent);\n}\n","import styled, { css } from \"styled-components\"\nimport breakpoint from \"styled-components-breakpoint\"\nimport Button from \"../button\"\n\nexport const FormGroup = styled.div``\n\nexport const ForgotPassword = styled(Button)`\n color: ${(props) => props.theme.colors.primary};\n text-decoration: none;\n font-size: 1rem;\n font-weight: 500;\n\n ${breakpoint(\"tablet\")`\n text-align: right;\n `}\n`\n\nexport const Terms = styled.p`\n margin: 0;\n margin-bottom: 1rem;\n font-size: 0.8rem;\n`\n\nexport const StyledLabel = styled.label`\n margin-bottom: 8px;\n font-size: 1rem;\n text-align: left;\n color: #414141;\n font-weight: 400;\n line-height: 150%;\n\n ${(props) => props.marginLess && \"margin-bottom: 0;\"}\n`\nexport const StyledArrow = styled.span`\n color: ${(props) => props.theme.colors.brand};\n font-weight: 300;\n &:hover {\n cursor: pointer;\n }\n`\n\nexport const ProgressWrapper = styled.div`\n height: 1.5rem;\n margin-bottom: 2rem;\n`\n\nexport const ProgressGrid = styled.div`\n display: grid;\n grid-template-columns: repeat(6, minmax(0, 1fr));\n`\n\nexport const Grid1 = styled.div`\n grid-column: span 1 / span 1;\n`\nexport const Grid4 = styled.div`\n grid-column: span 4 / span 4;\n`\n\nexport const CenterText = styled.div`\n text-align: center;\n`\n\nexport const ArrowIcon = styled.span`\n svg {\n width: 1.5rem;\n height: 1.5rem;\n }\n`\n\nexport const ProgressCircle = styled.span`\n margin: 0 0.5rem;\n svg {\n width: 0.5rem;\n height: 0.5rem;\n color: #d9d9d9;\n\n ${(props) =>\n !!props.current &&\n css`\n color: ${(props) => props.theme.colors.brand};\n `}\n }\n`\n\nexport const NameGrid = styled.div`\n display: block;\n\n ${breakpoint(\"tablet\")`\n display: grid;\n gap: 1rem;\n grid-template-columns: repeat(2, minmax(0, 1fr));\n `}\n`\n\nexport const A = styled.a`\n color: inherit;\n`\nexport const SignUpWrapper = styled.div`\n margin-top: 1.5rem;\n\n button {\n font-weight: 500;\n }\n`\n\nexport const LoadingWrapper = styled.div`\n display: flex;\n justify-content: center;\n margin-top: 1rem;\n`\n\nexport const StyledButton = styled(Button)`\n height: 3rem;\n font-weight: 500;\n font-size: 1rem;\n color: #fff;\n`\n\nexport const ErrorNoticeBox = styled.div`\n color: #ff2230;\n padding: 12px 16px;\n border-radius: 8px;\n display: flex;\n margin-bottom: 24px;\n background: rgba(255, 34, 48, 0.05);\n`\nexport const ErrorNoticeBoxContent = styled.div`\n margin-left: 0.5rem;\n`\n","import React, { Component } from \"react\"\nimport { instanceOf } from \"prop-types\"\nimport { Grid, RadioButtons, ErrorNotice, PlainDateField } from \"@smaller-earth/postcard-components\"\nimport {\n Form,\n FieldGroup,\n TextField,\n PasswordField,\n SelectField,\n PhoneSelect,\n ButtonGroup,\n ValidatedFieldGroup\n} from \"@localComponents/forms\"\nimport Heading from \"@localComponents/public-layout/heading\"\nimport {\n FormGroup,\n ForgotPassword,\n StyledLabel,\n StyledArrow,\n ProgressWrapper,\n ProgressGrid,\n Grid1,\n Grid4,\n CenterText,\n ArrowIcon,\n ProgressCircle,\n NameGrid,\n A,\n SignUpWrapper,\n LoadingWrapper,\n StyledButton,\n ErrorNoticeBox,\n ErrorNoticeBoxContent\n} from \"./styles\"\nimport LoadingSpinner from \"@localComponents/loading-spinner\"\nimport { withAlert } from \"react-alert\"\nimport { withRouter } from \"react-router-dom\"\nimport { withCookies, Cookies } from \"react-cookie\"\n\nimport BrandContext from \"@context/BrandContext\"\nimport { getRequest, postRequest, prepareParams } from \"@helpers/apiHelpers\"\nimport { getBrand, getTheme } from \"@helpers/siteHelpers\"\nimport { gendersForSelect } from \"@helpers/dataHelpers\"\nimport { validateField } from \"@helpers/validationHelpers\"\nimport { deviceType, userAgent } from \"@helpers/deviceHelpers\"\n\nimport moment from \"moment\"\nimport queryString from \"query-string\"\n\nimport { FontAwesomeIcon } from \"@fortawesome/react-fontawesome\"\nimport { faCircle } from \"@fortawesome/free-solid-svg-icons\"\nimport { faArrowLeft } from \"@fortawesome/pro-light-svg-icons\"\nimport { faExclamationCircle } from \"@fortawesome/pro-regular-svg-icons\"\nimport Logo from \"@localComponents/public-layout/logo\"\nimport { addUnloader, removeUnloader } from \"@helpers/formHelpers\"\nimport Delayed from \"@localComponents/utils/delayed\"\nimport { trackEvent } from \"fathom-client\"\n\nclass RegisterForm extends Component {\n static contextType = BrandContext\n\n constructor(props) {\n super(props)\n\n const params = queryString.parse(this.props.location.search)\n const { programme_id, channel_id, country_code, ref } = params\n\n this.state = {\n first_name: \"\",\n last_name: \"\",\n email: \"\",\n password: \"\",\n enc_pw: \"\",\n contact: {},\n gender: \"\",\n gender_info: \"\",\n student_status: null,\n showGenderInfo: false,\n locked_country_id: null,\n english_level: \"\",\n countries: [],\n phone_codes: [],\n dob: null,\n channel_id: channel_id || getBrand().id,\n programme_id: programme_id,\n country_code: country_code,\n referring_ref: ref,\n submitting: false,\n redirecting: false,\n view: \"step1\",\n programme_name: \"\",\n dob_error: \"\",\n brand_color: getTheme().colors.brand,\n enable_student_status_on_registration: false,\n enable_english_language_level_on_registration: false,\n enable_citizenship_on_registration: false,\n minimum_age: null,\n minimum_age_date: null,\n pageErrors: {},\n existing_channel_name: \"\",\n agree_to_whatsapp_communications: false,\n data_changed: false,\n date_format: navigator.language === \"en-US\" ? \"MM/DD/YYYY\" : \"DD/MM/YYYY\",\n loading: true,\n english_language_level_options: [],\n original_url_params:\n programme_id && channel_id && country_code\n ? `programme_id=${programme_id}&channel_id=${channel_id}&country_code=${country_code}`\n : null\n }\n }\n\n componentDidMount() {\n this.getRegistrationData()\n }\n\n componentDidUpdate() {\n if (!this.state.data_changed || this.state.redirecting) return\n addUnloader()\n }\n\n componentWillUnmount() {\n removeUnloader()\n }\n\n getRegistrationData() {\n const { programme_id, channel_id, country_code } = this.state\n const full_registration_params =\n programme_id && channel_id && country_code\n ? `programme_id=${programme_id}&channel_id=${channel_id}&country_code=${country_code}`\n : null\n\n getRequest(`/registrations/data_for_registration_form?${full_registration_params}`, \"\", null, null, \"v2\")\n .then((data) => {\n this.setState({\n ...data,\n locked_country_id: data.suggested_country_id,\n country_of_citizenship_id: data.suggested_country_id,\n contact: {\n country_phone_code: data.suggested_country_phone_code\n },\n loading: false\n })\n })\n .catch(() => {\n removeUnloader()\n window.location.href = `https://${getBrand().links.baseWithoutProtocol}/apply/not-supported`\n })\n }\n\n getUpdatedRegistrationData() {\n const { programme_id, channel_id, country_code } = this.state\n const full_registration_params =\n programme_id && channel_id && country_code\n ? `programme_id=${programme_id}&channel_id=${channel_id}&country_code=${country_code}`\n : null\n\n getRequest(`/registrations/data_for_updated_registration_form?${full_registration_params}`, \"\", null, null, \"v2\")\n .then((data) => {\n this.setState({\n ...data,\n contact: {\n country_phone_code: data.suggested_country_phone_code\n },\n loading: false\n })\n })\n .catch((e) => {\n console.error(e)\n })\n }\n\n handleInputChange = (name, value) => {\n // specific for analytics tracking, do not remove\n if (name === \"english_level\") {\n // set in data layer\n window.dataLayer = window.dataLayer || []\n window.dataLayer.push({\n english_level: value\n })\n }\n\n // specific for analytics tracking, do not remove\n if (name === \"student_status\") {\n // set in data layer\n window.dataLayer = window.dataLayer || []\n window.dataLayer.push({\n student: value === \"Yes\"\n })\n }\n\n this.setState({ [name]: value, data_changed: true }, () => {\n if (name === \"gender\" && value === \"x\") {\n this.setState({ showGenderInfo: true })\n } else if (name === \"gender\") {\n this.setState({ showGenderInfo: false, gender_info: \"\" })\n } else if (name === \"student_status\") {\n this.setState((prevState) => {\n delete prevState.pageErrors[name]\n return {\n pageErrors: {\n ...prevState.pageErrors\n }\n }\n })\n } else if (name === \"locked_country_id\") {\n // switch country code\n const newCountry = this.state.countries.find((country) => country.id.toString() === value.toString())\n if (newCountry) {\n this.setState(\n {\n country_code: newCountry.country_code\n },\n () => {\n this.getUpdatedRegistrationData()\n }\n )\n }\n }\n })\n }\n\n handleContactChange = (name, value) => {\n this.setState((prevProps) => ({\n contact: {\n ...prevProps.contact,\n [name.replace(\"contact_\", \"\")]: value\n }\n }))\n }\n\n handleSubmit = (event) => {\n event.preventDefault()\n\n this.setState({ submitting: true }, this.progress)\n }\n\n handleForgotPassword = (event) => {\n event.preventDefault()\n\n this.setState({ view: \"step1ForgottenPassword\" })\n }\n\n progress = () => {\n this.state.view === \"step1\" && this.submitStep1()\n this.state.view === \"step2\" && this.submitStep2()\n this.state.view === \"step3\" && this.submitStep3()\n\n this.state.view === \"step1ExistingUser\" && this.submitStep1ExistingUser()\n this.state.view === \"step1ForgottenPassword\" && this.submitStep1ForgottenPassword()\n }\n\n submitStep1 = () => {\n const that = this\n\n this.validateStep1().then(async function () {\n if (Object.values(that.state.pageErrors).flat().length === 0) {\n that.setState({ loading: true }, () => {\n that.checkExistingEmail()\n })\n } else {\n that.setState({ submitting: false })\n }\n })\n }\n\n validateStep1 = async () => {\n let pageErrors = {}\n\n pageErrors[\"email\"] = validateField(this.state.email, {\n validations: [\"required\"],\n friendlyName: \"Email address\"\n })\n\n this.setState({\n pageErrors: pageErrors\n })\n }\n\n validateStep2 = async () => {\n if (this.state.enc_pw) return\n const programme_fields = {\n enable_student_status_on_registration: \"student_status\",\n enable_english_language_level_on_registration: \"english_level\",\n enable_citizenship_on_registration: \"country_of_citizenship_id\"\n }\n\n const required_fields = [\"first_name\", \"last_name\", \"dob\", \"gender\", \"gender_info\", \"locked_country_id\"]\n let pageErrors = {}\n\n Object.entries(programme_fields).forEach(([key, value]) => {\n if (this.state[key]) required_fields.push(value)\n })\n\n required_fields.forEach((field) => {\n switch (field) {\n case \"first_name\":\n pageErrors[field] = validateField(this.state[field], {\n validations: [\"required\"],\n friendlyName: \"First name\"\n })\n break\n case \"last_name\":\n pageErrors[field] = validateField(this.state[field], {\n validations: [\"required\"],\n friendlyName: \"Last name\"\n })\n break\n case \"dob\":\n pageErrors[field] = validateField(this.state[field], {\n validations: [\"required\", \"date\", \"dob\"],\n minDate: this.state.minimum_age_date,\n minAge: this.state.minimum_age,\n friendlyName: \"Date of birth\"\n })\n break\n case \"gender\":\n pageErrors[field] = validateField(this.state[field], {\n validations: [\"required\"],\n friendlyName: \"Gender\"\n })\n break\n case \"gender_info\":\n if (this.state.gender === \"x\") {\n pageErrors[field] = validateField(this.state[field], {\n validations: [\"required\"],\n friendlyName: \"Gender further information\"\n })\n }\n break\n case \"locked_country_id\":\n pageErrors[field] = validateField(this.state[field], {\n validations: [\"required\"],\n friendlyName: \"Country\"\n })\n break\n case \"student_status\":\n pageErrors[field] = validateField(this.state[field], {\n validations: [\"required\"],\n friendlyName: \"Student status\"\n })\n break\n case \"english_level\":\n pageErrors[field] = validateField(this.state[field], {\n validations: [\"required\"],\n friendlyName: \"English language level\"\n })\n break\n case \"country_of_citizenship_id\":\n pageErrors[field] = validateField(this.state[field], {\n validations: [\"required\"],\n friendlyName: \"Country of citizenship\"\n })\n break\n default:\n break\n }\n })\n\n this.setState({\n pageErrors: pageErrors\n })\n }\n\n validateStep3 = async () => {\n let required_fields = [\"email\", \"password\", \"contact\"]\n\n let pageErrors = {}\n\n if (this.state.enc_pw) return\n\n required_fields.forEach((field) => {\n switch (field) {\n case \"email\":\n pageErrors[field] = validateField(this.state[field], {\n validations: [\"required\"],\n friendlyName: \"Email address\"\n })\n break\n case \"password\":\n pageErrors[field] = validateField(this.state[field], {\n validations: [\"required\", \"password\"],\n friendlyName: \"Password\"\n })\n break\n case \"contact\":\n pageErrors[(\"contact\", \"minLength\")] = validateField(this.state[field].contact, {\n validations: [\"required\"],\n friendlyName: \"Mobile/Cell\",\n minLength: 6\n })\n pageErrors[\"contact_country_phone_code\"] = validateField(this.state[field].country_phone_code, {\n validations: [\"required\"],\n friendlyName: \"Country code\"\n })\n break\n default:\n break\n }\n })\n\n this.setState({\n pageErrors: pageErrors\n })\n }\n\n submitStep2 = async () => {\n const { date_format } = this.state\n const that = this\n\n this.validateStep2().then(async function () {\n if (Object.values(that.state.pageErrors).flat().length === 0) {\n that.setState({ loading: true })\n const hasExistingApplicationForProgramme = await that._hasExistingApplicationForProgramme(\n that.state.programme_id\n )\n if (hasExistingApplicationForProgramme) {\n that.props.alert.error(\"You already have an application for this program. Please login to continue.\")\n that._redirectToLogin()\n }\n\n const date = moment(that.state.dob, date_format).format(\"DD/MM/YYYY\")\n\n if (that.state.dob) {\n const result = await that._checkAppropriateAge(date, that.state.programme_id)\n if (result.passed) {\n that.setState({ dob_error: \"\" })\n } else {\n that.setState({ dob_error: result.error_message, submitting: false, loading: false })\n return\n }\n }\n\n that.setState({ view: \"step3\", submitting: false, loading: false })\n trackEvent(\"step2 completed\")\n } else {\n that.setState({ submitting: false, loading: false })\n }\n })\n }\n\n submitStep3 = async () => {\n const { date_format, referring_ref } = this.state\n const newUser = !this.state.enc_pw\n const that = this\n\n if (newUser) {\n const result = await this.checkExistingEmail()\n if (!!result) return\n }\n\n this.validateStep3().then(async function () {\n if (Object.values(that.state.pageErrors).flat().length === 0) {\n that.setState({ loading: true })\n const password = that.state.enc_pw ? atob(that.state.enc_pw) : that.state.password\n\n let ga_obj\n if (typeof window.trafficSrcCookie !== \"undefined\") {\n let ga_datum = window.trafficSrcCookie.getCookie()\n if (ga_datum) {\n ga_obj = JSON.stringify(ga_datum)\n }\n }\n\n // referral info\n let referring_domain, referring_path\n if (referring_ref && referring_ref.length > 0) {\n referring_domain = referring_ref\n } else if (document.referrer && document.referrer.length > 0) {\n try {\n const referrer_url = new URL(document.referrer)\n referring_domain = referrer_url.hostname.replace(\"www.\", \"\")\n referring_path = referrer_url.path\n } catch (e) {}\n }\n\n const data = {\n params: {\n ...prepareParams(that.state, [\"programme_id\", \"channel_id\"]),\n referring_domain: referring_domain,\n referring_path: referring_path,\n ga_obj: ga_obj\n },\n submitted_data: {\n general_your_first_name: that.state.first_name,\n general_your_last_name: that.state.last_name,\n locked_country_id: that.state.locked_country_id,\n gender: that.state.gender,\n gender_info: that.state.gender_info,\n dob: moment(that.state.dob, date_format).format(\"DD/MM/YYYY\"),\n registration_device: deviceType(),\n registration_user_agent: userAgent(),\n registration_phone_number: that.state.contact[\"contact\"],\n registration_country_phone_code: that.state.contact[\"country_phone_code\"],\n general_email_address: that.state.email,\n password: password,\n password_confirmation: password,\n general_marketing_channel: \"yes\",\n general_marketing_se: \"yes\",\n english_level: that.state.english_level,\n student_status: that.state.student_status,\n country_of_citizenship_id: that.state.country_of_citizenship_id,\n agree_to_whatsapp_communications: that.state.agree_to_whatsapp_communications\n }\n }\n\n postRequest(`/registrations`, \"\", JSON.stringify(data), null, \"v2\")\n .then((data) => {\n if (data.access_token) {\n // track event\n trackEvent(\"step3 completed\")\n that.setState({ redirecting: true })\n that._authenticate(data)\n } else {\n that.props.alert.error(\"Your registration could not be completed. Please try again.\")\n that.setState({ submitting: false, loading: false })\n }\n })\n .catch((error) => {\n that.props.alert.error(error.message)\n that.setState({ submitting: false, loading: false })\n })\n } else {\n that.setState({ submitting: false, loading: false })\n }\n })\n }\n\n submitStep1ExistingUser = () => {\n // login\n const encodedPassword = btoa(this.state.password)\n\n postRequest(\n `/registrations/password_check`,\n \"\",\n JSON.stringify({ email: this.state.email, password: encodedPassword })\n )\n .then((data) => {\n if (data.valid_password) {\n this.setState({ enc_pw: encodedPassword }, this._forwardToStep2or3)\n } else {\n this.setState({ login_error: \"Password not recognised\", submitting: false, loading: false })\n }\n })\n .catch((error) => {\n this.props.alert.error(error.message)\n this.setState({ submitting: false, loading: false })\n })\n }\n\n submitStep1ForgottenPassword = () => {\n // send reset password email\n postRequest(`/sessions/password_reset`, \"\", JSON.stringify({ email: this.state.email }))\n .then((data) => {\n this.props.alert.success(data.message)\n this.setState({ view: \"step1ExistingUser\", submitting: false })\n })\n .catch((error) => {\n this.props.alert.error(error.message)\n this.setState({ submitting: false })\n })\n }\n\n _forwardToStep2or3 = () => {\n if (this.state.enc_pw) {\n this.submitStep2()\n } else {\n this.setState({ view: \"step2\", submitting: false, loading: false })\n trackEvent(\"step1 completed\")\n }\n }\n\n goBack = () => {\n window.scrollTo(0, 0)\n this.setState((prevState) => {\n return {\n view: prevState.view === \"step3\" ? \"step2\" : \"step1\"\n }\n })\n }\n\n _checkAppropriateAge = async (dob, programme_id) => {\n return postRequest(\n `/registrations/programme_age_check`,\n \"\",\n JSON.stringify({ dob: dob, programme_id: programme_id })\n )\n }\n\n _hasExistingApplicationForProgramme = async (programme_id) => {\n const result = await postRequest(\n `/registrations/applications_check`,\n \"\",\n JSON.stringify({ email: this.state.email })\n ).catch((error) => {\n this.props.alert.error(error.message)\n })\n\n if (!result) {\n this.setState({ submitting: false, loading: false, view: \"step1\" })\n return false\n }\n\n const apps = result.application_containers\n return apps.length > 0 && apps.map((x) => x.programme_id.toString()).includes(programme_id.toString())\n }\n\n checkExistingEmail = async () => {\n const newUser = !this.state.enc_pw\n const result = await postRequest(\n `/registrations/email_check`,\n \"\",\n JSON.stringify({ email: this.state.email, channel_id: this.state.channel_id }),\n null,\n \"v2\"\n ).catch((error) => {\n this.props.alert.error(error.message)\n this.setState({ submitting: false, loading: false })\n })\n\n if (!result) {\n this.setState({ submitting: false, loading: false, view: \"step1\" })\n return false\n }\n\n let foundEmail = false\n if (result.user_exists) {\n foundEmail = true\n\n if (newUser) {\n this.setState({\n view: \"step1ExistingUser\",\n submitting: false,\n first_name: result.first_name,\n existing_channel_name: result.existing_channel_name,\n loading: false\n })\n }\n } else {\n if (this.state.view !== \"step3\") {\n this._forwardToStep2or3()\n }\n }\n\n return foundEmail\n }\n\n _redirectToLogin = () => {\n const { original_url_params } = this.state\n this.props.history.push(`/login/?${original_url_params}`)\n }\n\n _authenticate = (data) => {\n let authState = {\n isAuthenticated: true,\n user: data\n }\n const { cookies } = this.props\n cookies.set(\"authState\", authState, { path: \"/\" })\n if (data.client_token) cookies.set(\"client_token\", data.client_token, { path: \"/\" })\n\n removeUnloader()\n if (data.show_welcome) {\n window.location.href = \"/welcome\"\n } else {\n window.location.href = \"/\"\n }\n }\n\n countriesForSelect = () => this.state.countries.map((x) => [x.id, x.country])\n phoneCodesForSelect = () => this.state.phone_codes.map((x) => [x.phone_code, x.phone_code])\n\n render() {\n const {\n email,\n first_name,\n last_name,\n password,\n contact,\n gender,\n gender_info,\n showGenderInfo,\n locked_country_id,\n dob,\n english_level,\n student_status,\n country_of_citizenship_id,\n submitting,\n view,\n programme_name,\n login_error,\n dob_error,\n enable_student_status_on_registration,\n enable_english_language_level_on_registration,\n enable_citizenship_on_registration,\n minimum_age,\n minimum_age_date,\n pageErrors,\n existing_channel_name,\n agree_to_whatsapp_communications,\n english_language_level_options\n } = this.state\n const {\n handleInputChange,\n handleContactChange,\n handleSubmit,\n handleForgotPassword,\n countriesForSelect,\n phoneCodesForSelect,\n goBack\n } = this\n const { setTitle } = this.props\n\n const progress = (\n \n \n \n {view !== \"step1\" && (\n goBack()}>\n \n \n \n \n )}\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n )\n\n let title = view === \"step1\" ? `Sign up for ${programme_name}` : \"\"\n const step1 = (\n
\n \n\n \n\n \n \n \n Email Address\n \n \n \n \n \n \n \n \n \n \n )\n\n title = view === \"step1ExistingUser\" ? `Welcome back, ${first_name}.` : title\n const step1ExistingUser = (\n
\n \n \n {!!existing_channel_name && (\n

\n We've noticed your {existing_channel_name} registration. Guess what? This new project is also part of the\n Smaller Earth family. No need for a new account; your {existing_channel_name} login is all you need.{\" \"}\n

\n )}\n\n {login_error && (\n \n
\n \n
\n {login_error}\n
\n )}\n\n \n \n Password\n \n \n\n \n \n \n \n )\n\n title = view === \"step1ForgottenPassword\" ? \"Password Reset\" : title\n const step1ForgottenPassword = (\n
\n \n \n \n \n Email Address *\n \n \n\n \n \n \n \n \n )\n\n title = view === \"step2\" ? `Sign up for ${programme_name}` : title\n const newUser = !this.state.enc_pw\n\n const step2 = (\n <>\n
\n \n \n \n <>\n \n \n First Name *\n \n \n \n \n\n \n Last Name *\n \n \n \n \n \n\n \n Date of Birth *\n \n \n \n {dob_error && }\n \n\n \n Gender *\n \n \n \n \n\n {!!showGenderInfo && (\n \n Gender Further Information *\n \n \n \n \n )}\n\n \n Country *\n \n \n \n \n\n {enable_citizenship_on_registration && (\n \n Country of Citizenship *\n \n \n \n \n )}\n\n {enable_student_status_on_registration && (\n \n Are you a full-time student? *\n \n \n \n \n )}\n\n {enable_english_language_level_on_registration && (\n \n English Language Level *\n \n \n \n \n )}\n \n\n \n \n \n \n {newUser && progress}\n \n \n )\n\n title = view === \"step3\" ? `Sign up for ${programme_name}` : title\n const step3 = (\n <>\n
\n \n \n \n {newUser && (\n <>\n \n Email Address\n \n \n \n \n\n \n Mobile/Cell *\n\n \n \n \n handleInputChange(input.target.name, input.target.checked)}\n id=\"agree_to_whatsapp_communications\"\n />\n \n Send me application updates, notifications and special offers via WhatsApp.\n \n \n\n \n Password *\n \n \n \n \n \n )}\n\n \n We take your privacy seriously and will only use your information to provide the products and services you\n have signed up for. “We” refers to Smaller Earth Group which owns and operates all of the Smaller Earth\n brands including {getBrand().friendlyName}. For full details, read our{\" \"}\n \n Privacy Policy\n {\" \"}\n and \n \n Website Terms of Service\n \n .\n \n\n \n \n \n \n \n \n {newUser && progress}\n \n )\n\n let titleTagTitle = title\n if (view === \"step2\" || view === \"step3\") {\n titleTagTitle = `${title} | Step ${view.slice(-1)}`\n }\n setTitle(titleTagTitle)\n\n const { loading } = this.state\n\n return (\n <>\n {!!loading ? (\n \n \n \n \n \n ) : (\n <>\n {view === \"step1\" && step1}\n {view === \"step1ExistingUser\" && step1ExistingUser}\n {view === \"step1ForgottenPassword\" && step1ForgottenPassword}\n {view === \"step2\" && step2}\n {view === \"step3\" && step3}\n \n )}\n \n )\n }\n}\n\nRegisterForm.propTypes = {\n cookies: instanceOf(Cookies).isRequired\n}\n\nexport default withCookies(withRouter(withAlert()(RegisterForm)))\n","import React, { useContext, useState } from \"react\"\nimport { withAlert } from \"react-alert\"\nimport BrandContext from \"@context/BrandContext\"\nimport PublicLayout from \"@layouts/public-layout\"\nimport RegisterForm from \"@localComponents/register-form\"\n\nconst Register = (props) => {\n const brand = useContext(BrandContext)\n const [title, setTitle] = useState(brand.apply)\n\n return (\n \n \n \n )\n}\n\nexport default withAlert()(Register)\n"],"names":["addUnloader","window","addEventListener","handleOnBeforeUnload","capture","removeUnloader","removeEventListener","event","preventDefault","returnValue","GlobalStyles","createGlobalStyle","_templateObject","_taggedTemplateLiteral","props","theme","fonts","body","family","weight","headings","breakpoint","_templateObject2","Container","styled","div","_templateObject3","colors","_templateObject4","_templateObject5","_templateObject6","_templateObject7","LoginBackground","_templateObject8","css","_templateObject9","primary","images","background","_templateObject10","MainWrapper","_templateObject11","_templateObject12","_templateObject13","BodyWrapper","_templateObject14","ContentWrapper","_templateObject15","_templateObject16","footer","P","p","Legal","_Component","_inherits","_super","_createSuper","_classCallCheck","apply","arguments","_createClass","key","value","_jsx","children","_jsxs","Date","getFullYear","this","context","friendlyName","Component","contextType","BrandContext","environment","getEnvironment","PublicLayout","_ref","title","Fragment","Head","EnvironmentRibbon","capitalize","StyledHeading","h1","Heading","userAgent","navigator","substring","deviceType","isMobile","isTablet","Logo","src","concat","name","alt","Delayed","_React$Component","_this","call","state","hidden","_this2","setTimeout","setState","waitBeforeShow","React","__rest","s","e","t","Object","prototype","hasOwnProperty","indexOf","getOwnPropertySymbols","i","length","propertyIsEnumerable","withCookies","WrappedComponent","displayName","CookieWrapper","onChange","forceUpdate","cookies","addChangeListener","removeChangeListener","listen","prevProps","unlisten","_a","forwardedRef","restProps","allCookies","getAll","assign","ref","ForwardedComponent","Consumer","hoistStatics","FormGroup","ForgotPassword","Button","StyledLabel","label","marginLess","StyledArrow","span","brand","ProgressWrapper","ProgressGrid","Grid1","Grid4","CenterText","ArrowIcon","ProgressCircle","current","NameGrid","A","a","_templateObject17","SignUpWrapper","_templateObject18","LoadingWrapper","_templateObject19","StyledButton","_templateObject20","ErrorNoticeBox","_templateObject21","ErrorNoticeBoxContent","_templateObject22","RegisterForm","handleInputChange","_this$setState","dataLayer","push","english_level","student","_defineProperty","showGenderInfo","gender_info","prevState","pageErrors","_objectSpread","newCountry","countries","find","country","id","toString","country_code","getUpdatedRegistrationData","handleContactChange","contact","replace","handleSubmit","submitting","progress","handleForgotPassword","view","submitStep1","submitStep2","submitStep3","submitStep1ExistingUser","submitStep1ForgottenPassword","that","_assertThisInitialized","validateStep1","then","_asyncToGenerator","_regeneratorRuntime","mark","_callee","wrap","_context","prev","next","values","flat","loading","checkExistingEmail","stop","_callee2","_context2","validateField","email","validations","validateStep2","_callee3","programme_fields","required_fields","_context3","enc_pw","abrupt","enable_student_status_on_registration","enable_english_language_level_on_registration","enable_citizenship_on_registration","entries","forEach","_ref4","_ref5","_slicedToArray","field","minDate","minimum_age_date","minAge","minimum_age","gender","validateStep3","_callee4","_context4","minLength","country_phone_code","_callee6","date_format","_context6","_callee5","date","result","_context5","_hasExistingApplicationForProgramme","programme_id","sent","alert","error","_redirectToLogin","moment","dob","format","_checkAppropriateAge","passed","dob_error","error_message","trackEvent","_callee8","_this$state","referring_ref","newUser","_context8","_callee7","password","ga_obj","ga_datum","referring_domain","referring_path","referrer_url","data","_context7","atob","trafficSrcCookie","getCookie","JSON","stringify","document","referrer","URL","hostname","path","params","prepareParams","submitted_data","general_your_first_name","first_name","general_your_last_name","last_name","locked_country_id","registration_device","registration_user_agent","registration_phone_number","registration_country_phone_code","general_email_address","password_confirmation","general_marketing_channel","general_marketing_se","student_status","country_of_citizenship_id","agree_to_whatsapp_communications","postRequest","access_token","redirecting","_authenticate","catch","message","encodedPassword","btoa","valid_password","_forwardToStep2or3","login_error","success","goBack","scrollTo","_ref11","_callee9","_context9","_x","_x2","_ref12","_callee10","apps","_context10","application_containers","map","x","includes","_x3","_callee11","foundEmail","_context11","channel_id","user_exists","existing_channel_name","original_url_params","history","authState","isAuthenticated","user","set","client_token","show_welcome","location","href","countriesForSelect","phoneCodesForSelect","phone_codes","phone_code","queryString","parse","search","getBrand","programme_name","brand_color","getTheme","data_changed","language","english_language_level_options","getRegistrationData","_this$state2","full_registration_params","getRequest","suggested_country_id","suggested_country_phone_code","links","baseWithoutProtocol","_this3","_this$state3","console","_this$state4","setTitle","onClick","FontAwesomeIcon","icon","faArrowLeft","faCircle","step1","Form","Grid","gap","FieldGroup","ValidatedFieldGroup","errorMessages","TextField","type","autocomplete","autoFocus","ButtonGroup","text","disabled","step1ExistingUser","faExclamationCircle","PasswordField","required","link","inline","step1ForgottenPassword","step2","_Fragment","PlainDateField","ErrorNotice","SelectField","blank","options","gendersForSelect","maxLength","RadioButtons","textColor","step3","style","marginBottom","PhoneSelect","codesName","selectValue","textValue","contactErrorMessages","contactCountryErrorMessages","checkboxGrid","brandBackground","checked","input","target","htmlFor","rel","titleTagTitle","slice","LoadingSpinner","withRouter","withAlert","useContext","_useState","useState","_useState2"],"mappings":";;qIAIO,SAASA,IACdC,OAAOC,iBAAiB,eAAgBC,EAAsB,CAAEC,SAAS,GAC3E,CAEO,SAASC,IACdJ,OAAOK,oBAAoB,eAAgBH,EAAsB,CAAEC,SAAS,GAC9E,CAEO,SAASD,EAAqBI,GAEnC,OADIA,GAAOA,EAAMC,iBACTD,EAAME,YAAc,EAC9B,CAfA,qG,6ICGaC,EAAeC,YAAiBC,MAAAC,YAAA,+nBAU1B,SAACC,GAAK,OAAKA,EAAMC,MAAMC,MAAMC,KAAKC,MAAM,IACxC,SAACJ,GAAK,OAAKA,EAAMC,MAAMC,MAAMC,KAAKE,MAAM,IAUxC,SAACL,GAAK,OAAKA,EAAMC,MAAMC,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