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A,CAAK,CAAE,CAAGoC,EACdpC,EAAMG,QAAQ,CAAC,aACjB8B,CAAAA,EAAQzH,IAAI,CAAG4H,EAAKC,SAAS,EAG3BrC,EAAMG,QAAQ,CAAC,gCACjB8B,CAAAA,EAAQ9I,KAAK,CAAGiJ,EAAKC,SAAS,EAG5BrC,EAAMG,QAAQ,CAAC,iBACjB8B,CAAAA,EAAQK,YAAY,CAAGF,EAAKC,SAAS,EAGnCrC,EAAMG,QAAQ,CAAC,gBACjB8B,CAAAA,EAAQM,WAAW,CAAGH,EAAKC,SAAS,EAGlCrC,EAAMG,QAAQ,CAAC,gBACjB8B,CAAAA,EAAQjI,QAAQ,CAAGoI,EAAKC,SAAS,CAErC,GACIL,EAAKE,OAAO,CAAC,EAAE,CAACM,QAAQ,EAAE,KACPR,EAAAA,EAArB,GAAM,CAAEvH,IAAAA,CAAG,CAAEC,IAAAA,CAAG,CAAE,QAAGsH,CAAAA,EAAAA,EAAKE,OAAO,CAAC,EAAE,GAAfF,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,OAAAA,CAAAA,EAAAA,EAAiBQ,QAAQ,GAAzBR,KAAAA,IAAAA,EAAAA,KAAAA,EAAAA,EAA2BS,QAAQ,CACxDR,EAAQxH,GAAG,CAAGA,EACdwH,EAAQvH,GAAG,CAAGA,CAChB,CAGF,OAAOuH,CACT,wEE/CAS,EAAAC,OAAA,EAAkB","sources":["webpack://_N_E/?2d66","webpack://_N_E/./components/Checkbox/Checkbox.tsx","webpack://_N_E/./components/Checkbox/index.tsx","webpack://_N_E/./components/Tag/Tag.tsx","webpack://_N_E/./components/Tag/index.tsx","webpack://_N_E/./pages/register/teacher.js","webpack://_N_E/./redux/geographies/actions.js","webpack://_N_E/./util/api/external/google/location.js","webpack://_N_E/./node_modules/react-phone-number-input/style.css","webpack://_N_E/./components/Tag/Tag.module.css"],"sourcesContent":["\n (window.__NEXT_P = window.__NEXT_P || []).push([\n \"/register/teacher\",\n function () {\n return require(\"private-next-pages/register/teacher.js\");\n }\n ]);\n if(module.hot) {\n module.hot.dispose(function () {\n window.__NEXT_P.push([\"/register/teacher\"])\n });\n }\n ","import clsx from 'clsx';\nimport type { CheckboxProps } from './Checkbox.types';\nimport { CheckIcon } from 'icons/outline';\n\nexport const Checkbox = (props: CheckboxProps) => {\n const {\n id,\n checked,\n value,\n text,\n disabled,\n checkboxClassName,\n subLabel,\n className,\n ...rootProps\n } = props;\n return (\n 0 },\n )}\n >\n \n\n \n \n \n\n
\n {text && (\n \n {text}\n \n )}\n {subLabel && (\n {subLabel}\n )}\n
\n \n );\n};\n\nCheckbox.displayName = 'Checkbox';\n","export { Checkbox } from './Checkbox';\nexport type { CheckboxProps } from './Checkbox.types';\n","import clsx from 'clsx';\nimport classes from './Tag.module.css';\nimport type { TagProps } from './Tag.types';\n\n/**\n * The tag component is used to display a label or keyword. It can be used to\n * display information about an item, such as a list of requirements, or to display\n * a keyword referring to the item, such as \"required\" or \"preferred\".\n */\nexport const Tag = (props: TagProps) => {\n const { size = 'large', variant = 'neutral', children, className, title, ...rootProps } = props;\n return (\n \n {children}\n \n );\n};\n\nTag.displayName = 'Tag';\n","export { Tag } from './Tag';\nexport type { TagProps } from './Tag.types';\n","import LoggedOutOnly from 'components/auth/LoggedOutOnly';\nimport { Button } from 'components/Button';\nimport ErrorBlock from 'components/forms/errorBlock';\nimport OnboardingLayout from 'components/layouts/Onboarding';\nimport { Select, SelectOption } from 'components/Select';\nimport { Tag } from 'components/Tag';\nimport { TextField } from 'components/TextField';\nimport filter from 'lodash/filter';\nimport map from 'lodash/map';\nimport Head from 'next/head';\nimport Link from 'next/link';\nimport { useRouter } from 'next/router';\nimport { useEffect, useState } from 'react';\nimport { Controller, useForm } from 'react-hook-form';\nimport {\n formatPhoneNumber,\n formatPhoneNumberIntl,\n isPossiblePhoneNumber,\n} from 'react-phone-number-input';\nimport PhoneInput from 'react-phone-number-input/react-hook-form-input';\nimport 'react-phone-number-input/style.css';\nimport { useDispatch, useSelector } from 'react-redux';\nimport { register as registerAccount } from 'redux/account/actions';\nimport { fetchGeographies } from 'redux/geographies/actions';\nimport { getCityState } from 'util/api/external/google/location';\nimport { cleanUpInputValue, formatZipCode, removeExtraSpaces } from 'util/formatting/string';\nimport { isValidZipCode } from 'util/validations';\nimport { Checkbox } from '../../components/Checkbox';\nimport validator from 'validator';\nimport { useBrand } from 'contexts/BrandContext';\n\nexport default function SchoolRegisterForm() {\n const { accountErrors, loading: accountLoading } = useSelector((state) => state.account);\n const geographies = useSelector((state) => state.geographies);\n const dispatch = useDispatch();\n const router = useRouter();\n const [loading, setLoading] = useState(false);\n const { brand } = useBrand();\n\n const createAccount = async (data) => {\n setLoading(true);\n\n try {\n let {\n zip_code,\n first_name,\n last_name,\n email,\n phone_number,\n remember_me,\n password,\n geography_id,\n } = data;\n\n const response = await getCityState(zip_code);\n const { city, state, lat, lng } = response;\n const formatted_phone_number = formatPhoneNumberIntl(phone_number);\n phone_number = formatPhoneNumber(phone_number);\n\n const signUpParams = {\n email,\n remember_me,\n password,\n user_profile_attributes: {\n zip_code,\n lat,\n lng,\n phone_number,\n formatted_phone_number,\n first_name,\n last_name,\n state,\n city,\n geography_id,\n },\n };\n await dispatch(registerAccount('teacher', signUpParams));\n setLoading(false);\n } catch (e) {\n console.error(e);\n const { zip_code, first_name, last_name, email, phone_number, remember_me, password } = data;\n\n const signUpParams = {\n email,\n remember_me,\n password,\n user_profile_attributes: {\n zip_code,\n phone_number,\n first_name,\n last_name,\n state: 'New York',\n geography_id,\n },\n };\n await dispatch(registerAccount('teacher', signUpParams));\n setLoading(false);\n }\n };\n\n const {\n register,\n handleSubmit,\n control,\n formState: { errors },\n } = useForm();\n\n const onSubmit = (data) => {\n createAccount(data);\n };\n\n useEffect(() => {\n const { indeed } = router.query;\n sessionStorage.setItem('indeedResume', indeed == 'true' ? true : false);\n }, [router.query]);\n\n useEffect(() => {\n dispatch(fetchGeographies());\n }, []);\n\n const activeGeographies = map(\n filter(geographies.geographies, (geography) => geography.userProfileRegisterable),\n (geography) => ({\n id: geography.id,\n value: geography.id,\n children: geography.descriptiveLabel,\n }),\n );\n\n return (\n \n \n
\n \n Sign Up - {brand?.name}\n \n\n

\n Start Application\n

\n\n
\n \n
\n
\n
\n \n !value.match(/[!@#$%^&*()_+=\\[\\]{};:\"\\\\|,.<>\\/?]+/) ||\n '✋ First name cannot contain symbols',\n },\n onBlur: cleanUpInputValue(),\n setValueAs: removeExtraSpaces,\n })}\n error={Boolean(errors?.first_name)}\n />\n {errors?.first_name && (\n \n {errors.first_name.message}\n \n )}\n
\n
\n \n !value.match(/[!@#$%^&*()_+=\\[\\]{};:\"\\\\|,.<>\\/?]+/) ||\n '✋ Last name cannot contain symbols',\n },\n onBlur: cleanUpInputValue(),\n setValueAs: removeExtraSpaces,\n })}\n error={Boolean(errors?.last_name)}\n />\n {errors?.last_name && (\n \n {errors.last_name.message}\n \n )}\n
\n (\n <>\n {\n onChange({\n target: {\n value,\n },\n });\n }}\n selectedOption={activeGeographies.find(\n (geography) => geography.id === value,\n )}\n error={Boolean(errors?.geography_id)}\n >\n {activeGeographies.map((geography) => (\n \n {geography.children}\n \n ))}\n \n {errors?.geography_id && (\n \n {errors.geography_id.message}\n \n )}\n \n )}\n />\n
\n \n !value.match(/[!@#$%^&*()_+=\\[\\]{};:'\"\\\\|,.<>\\/?]+/) ||\n '✋ Zip code cannot contain symbols',\n validZipCode: (value) =>\n isValidZipCode(value) ||\n '✋ Valid zip code formats are XXXXX or XXXXX-XXXX',\n },\n onBlur: (event) => {\n event.target.value = formatZipCode(event.target.value);\n },\n setValueAs: formatZipCode,\n })}\n error={Boolean(errors?.zip_code)}\n />\n {errors?.zip_code && (\n \n {errors.zip_code.message}\n \n )}\n
\n
\n \n isPossiblePhoneNumber(value) || '✋ Please enter a valid phone number',\n setValueAs: removeExtraSpaces,\n }}\n />\n {errors?.phone_number && (\n \n {errors.phone_number.message}\n \n )}\n
\n
\n \n validator.isEmail(value) || '✋ Please enter a valid email address',\n noSymbols: (value) =>\n !value.match(/[!#$%^&*()=\\[\\]{};:'\"\\\\|,<>\\/?]+/) ||\n '✋ Email cannot contain symbols',\n },\n onBlur: cleanUpInputValue(),\n setValueAs: removeExtraSpaces,\n })}\n error={Boolean(errors?.email)}\n />\n {errors?.email && (\n \n {errors.email.message}\n \n )}\n
\n
\n \n {errors?.password && (\n \n {errors.password.message}\n \n )}\n
\n
\n\n
\n (\n
\n \n By signing up, you agree to our\n \n \n   Terms of Service\n \n \n   and \n \n \n Privacy Policy.\n \n \n \n }\n />\n {error && (\n \n {error.message}\n \n )}\n
\n )}\n />\n
\n\n
\n \n
\n\n
\n \n
\n
\n
\n\n
\n
\n Already have an account? \n \n \n Sign in here\n \n \n
\n {brand?.removeSchoolSignup ? null : (\n
\n Are you an employer? \n \n \n Sign up here\n \n \n
\n )}\n
\n
\n
\n
\n );\n}\n","import { Geography, GeographyOption } from 'util/resources';\nimport { hiringHeroConfigsLoadSuccesss } from 'redux/hiring_hero_configs';\nimport * as types from './types';\n\nfunction startLoadGeographies() {\n return { type: types.GEOGRAPHIES_LOAD_START };\n}\n\nfunction startLoadCurrentGeography() {\n return { type: types.CURRENT_GEOGRAPHY_LOAD_START };\n}\n\nfunction successLoadCurrentGeography(payload) {\n return { type: types.CURRENT_GEOGRAPHY_LOAD_SUCCESS, payload };\n}\n\nfunction failureLoadCurrentGeography(payload) {\n return { type: types.CURRENT_GEOGRAPHY_LOAD_FAILURE, payload };\n}\n\nfunction successLoadGeographies(payload) {\n return { type: types.GEOGRAPHIES_LOAD_SUCCESS, payload };\n}\nfunction successLoadSuggestedGeography(payload) {\n return { type: types.GEOGRAPHY_SUGGESTED_LOAD_SUCCESS, payload };\n}\nfunction successLoadGeographyLocations(payload) {\n return { type: types.GEOGRAPHIES_LOCATIONS_LOAD_SUCCESS, payload };\n}\nfunction failureLoadGeographyLocations(payload) {\n return { type: types.GEOGRAPHIES_LOCATIONS_LOAD_FAILURE, payload };\n}\nfunction failureLoadGeographies(payload) {\n return { type: types.GEOGRAPHIES_LOAD_FAILURE, payload };\n}\n\nfunction startLoadGeographyOptions() {\n return { type: types.GEOGRAPHY_OPTIONS_LOAD_START };\n}\nfunction successLoadGeographyOptions(payload) {\n return { type: types.GEOGRAPHY_OPTIONS_LOAD_SUCCESS, payload };\n}\n\nfunction failureLoadGeographyOptions(payload) {\n return { type: types.GEOGRAPHY_OPTION_LOAD_FAILURE, payload };\n}\n\nexport function fetchGeographies() {\n return async (dispatch) => {\n dispatch(startLoadGeographies());\n\n try {\n const geographiesCollection = await Geography.includes('hiring_hero_configs').all();\n const geographies = geographiesCollection.all();\n dispatch(successLoadGeographies(geographies));\n const { closestGeography } = geographiesCollection.meta();\n\n if (closestGeography) {\n const geography = geographies.find((geography) => closestGeography.id === geography.id);\n const hiringHeroConfigs = geography.hiringHeroConfigs().toArray();\n dispatch(successLoadSuggestedGeography(closestGeography));\n dispatch(hiringHeroConfigsLoadSuccesss(hiringHeroConfigs));\n }\n } catch (e) {\n console.error(e);\n dispatch(failureLoadGeographies());\n }\n };\n}\n\nexport function fetchGeographyOptions(category) {\n return async (dispatch, getState) => {\n const { employer, currentUserProfile } = getState();\n dispatch(startLoadGeographyOptions());\n\n const geographyId = employer.employer.geographyId || currentUserProfile.geography.id;\n try {\n const options = await GeographyOption.where({\n category,\n geography_id: geographyId,\n })\n .includes('geography')\n .all();\n\n const userProfileRegisterableGeos = options\n .all()\n .filter((opt) => opt.geography()?.userProfileRegisterable);\n\n dispatch(successLoadGeographyOptions(userProfileRegisterableGeos));\n } catch (e) {\n console.error(e);\n dispatch(failureLoadGeographyOptions());\n }\n };\n}\n\nexport function fetchCurrentGeography() {\n return async (dispatch, getState) => {\n const { employer, currentUserProfile } = getState();\n dispatch(startLoadCurrentGeography());\n\n const geographyId = employer.employer.geographyId || currentUserProfile.geography.id;\n try {\n const geo = await Geography.includes('profile_questions').find(geographyId);\n\n dispatch(successLoadCurrentGeography(geo));\n } catch (e) {\n console.error(e);\n dispatch(failureLoadCurrentGeography());\n }\n };\n}\n\nexport function fetchGeographyOptionLocations(geography_id = '') {\n return async (dispatch) => {\n try {\n let options;\n if (geography_id) {\n options = await GeographyOption.where({\n category: 'location',\n geography_id: geography_id,\n }).all();\n } else {\n options = await GeographyOption.includes('geography')\n .where({\n category: 'location',\n })\n .all();\n }\n\n dispatch(successLoadGeographyLocations(options.all()));\n } catch (e) {\n console.error(e);\n dispatch(failureLoadGeographyLocations());\n }\n };\n}\n","export async function callGoogle(zipCode) {\n var date = new Date();\n\n const response = await fetch(\n \"https://maps.googleapis.com/maps/api/geocode/json?address=\" +\n zipCode +\n \"&key=AIzaSyANRjtipx5m9FdoFrYcJikOCuNrtV45BHY&type=json&_=\" +\n date.getTime()\n );\n\n return await response.json();\n}\n\nexport async function getCityState(zipCode) {\n const json = await callGoogle(zipCode);\n const address = {};\n\n if (json.results.length) {\n json.results[0].address_components.map((item) => {\n const { types } = item;\n if (types.includes(\"locality\")) {\n address.city = item.long_name;\n }\n\n if (types.includes(\"administrative_area_level_1\")) {\n address.state = item.long_name;\n }\n\n if (types.includes(\"neighborhood\")) {\n address.neighborhood = item.long_name;\n }\n\n if (types.includes(\"sublocality\")) {\n address.sublocality = item.long_name;\n }\n\n if (types.includes(\"postal_code\")) {\n address.zip_code = item.long_name;\n }\n });\n if (json.results[0].geometry) {\n const { lat, lng } = json.results[0]?.geometry?.location;\n address.lat = lat;\n address.lng = lng;\n }\n }\n\n return address;\n}\n\nexport async function getLatLong(address) {\n const json = await callGoogle(address);\n if (!json.results.length) {\n return { lat: -1, lng: -1 };\n }\n return json.results[0]?.geometry?.location;\n}\n","// extracted by mini-css-extract-plugin","// extracted by mini-css-extract-plugin\nmodule.exports = {\"root\":\"Tag_root__xuIDG\",\"small\":\"Tag_small__Nmmlb\",\"large\":\"Tag_large__kzz_S\",\"neutral\":\"Tag_neutral__BWKHU\",\"info\":\"Tag_info__hKgO6\",\"warning\":\"Tag_warning__TXkHP\",\"danger\":\"Tag_danger__4iy9k\",\"success\":\"Tag_success__ohS1E\"};"],"names":["window","__NEXT_P","push","__webpack_require__","Checkbox","id","checked","value","text","disabled","checkboxClassName","subLabel","className","rootProps","props","jsx_runtime","jsxs","label","clsx","length","jsx","input","type","readOnly","div","CheckIcon","span","displayName","Tag","size","variant","children","title","classes","undefined","SchoolRegisterForm","accountErrors","loading","accountLoading","useSelector","state","account","geographies","dispatch","useDispatch","router","useRouter","setLoading","useState","brand","useBrand","createAccount","data","zip_code","first_name","last_name","email","phone_number","remember_me","password","geography_id","city","lat","lng","getCityState","formatted_phone_number","formatPhoneNumberIntl","formatPhoneNumber","signUpParams","user_profile_attributes","registerAccount","e","console","error","register","handleSubmit","control","formState","errors","useForm","useEffect","indeed","query","sessionStorage","setItem","fetchGeographies","activeGeographies","map","filter","geography","userProfileRegisterable","descriptiveLabel","react_jsx_runtime__WEBPACK_IMPORTED_MODULE_0__","LoggedOutOnly","registration","OnboardingLayout","Head","name","h2","form","onSubmit","defaultValue","TextField","fullWidth","placeholder","required","maxLength","message","validate","noSymbols","match","onBlur","cleanUpInputValue","setValueAs","removeExtraSpaces","Boolean","Controller","rules","render","field","onChange","param","Fragment","Select","target","selectedOption","find","SelectOption","validZipCode","isValidZipCode","event","formatZipCode","PhoneInput","defaultCountry","international","withCountryCallingCode","inputComponent","isPossiblePhoneNumber","validEmail","validator","minLength","fieldState","a","href","rel","ErrorBlock","Button","Link","removeSchoolSignup","types","geographiesCollection","Geography","includes","all","payload","closestGeography","meta","hiringHeroConfigs","toArray","hiringHeroConfigsLoadSuccesss","fetchGeographyOptions","category","getState","employer","currentUserProfile","geographyId","userProfileRegisterableGeos","options","GeographyOption","where","opt","fetchCurrentGeography","geo","fetchGeographyOptionLocations","callGoogle","zipCode","date","Date","response","fetch","getTime","json","address","results","address_components","item","long_name","neighborhood","sublocality","geometry","location","module","exports"],"sourceRoot":""}