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AAS,MACT,WAAY,MACZ,OAAQ,MACR,UAAW,MACX,OAAQ,KACR,UAAW,KACX,OAAQ,MACR,UAAW,MACX,UAAW,MACX,aAAc,MACd,QAAS,MACT,WAAY,MACZ,OAAQ,MACR,UAAW,MACX,QAAS,MACT,WAAY,MACZ,QAAS,MACT,aAAc,MACd,gBAAiB,MACjB,WAAY,MACZ,UAAW,KACX,aAAc,KACd,OAAQ,MACR,UAAW,MACX,OAAQ,MACR,UAAW,MACX,OAAQ,KACR,YAAa,MACb,eAAgB,MAChB,UAAW,KACX,OAAQ,MACR,UAAW,MACX,aAAc,MACd,gBAAiB,MACjB,OAAQ,MACR,UAAW,MACX,UAAW,MACX,aAAc,MACd,UAAW,MACX,aAAc,MACd,UAAW,MACX,aAAc,MACd,UAAW,MACX,aAAc,OAIf,SAAS4O,EAAeC,GACvB,IAAI96B,EAAK+6B,EAAsBD,GAC/B,OAAOE,EAAoBh7B,EAC5B,CACA,SAAS+6B,EAAsBD,GAC9B,IAAIE,EAAoBC,EAAEhP,EAAK6O,GAAM,CACpC,IAAI7sB,EAAI,IAAI5P,MAAM,uBAAyBy8B,EAAM,KAEjD,MADA7sB,EAAErO,KAAO,mBACHqO,CACP,CACA,OAAOge,EAAI6O,EACZ,CACAD,EAAena,KAAO,WACrB,OAAOnC,OAAOmC,KAAKuL,EACpB,EACA4O,EAAet1B,QAAUw1B,EACzBG,EAAO18B,QAAUq8B,EACjBA,EAAe76B,GAAK,K","sources":["webpack://app/./client/app/bundles/GuestSignUp/actions.js","webpack://app/./client/app/bundles/GuestSignUp/components/ButtonGroup.jsx","webpack://app/./client/app/bundles/GuestSignUp/components/TrackableButton.jsx","webpack://app/./client/app/bundles/GuestSignUp/constants.js","webpack://app/./client/app/bundles/GuestSignUp/pages.js","webpack://app/./client/app/bundles/GuestSignUp/paths.js","webpack://app/./client/app/bundles/GuestSignUp/routes/Redirector.jsx","webpack://app/./client/app/bundles/GuestSignUp/store/index.js","webpack://app/./client/app/bundles/GuestSignUp/store/reducers.js","webpack://app/./client/app/bundles/HostSignUp/actions.js","webpack://app/./client/app/bundles/HostSignUp/constants.js","webpack://app/./client/app/bundles/HostSignUp/pages.js","webpack://app/./client/app/bundles/HostSignUp/store/index.js","webpack://app/./client/app/bundles/HostSignUp/store/reducers.js","webpack://app/./client/app/bundles/HostSignUp/utilities.js","webpack://app/./client/app/bundles/HostSignUp/validator.js","webpack://app/./client/app/shared/actions.js","webpack://app/./client/app/shared/authUtils.js","webpack://app/./client/app/shared/components/AddressedRoute.jsx","webpack://app/./client/app/shared/components/CriticalContract.jsx","webpack://app/./client/app/shared/components/CustomFormGroup.jsx","webpack://app/./client/app/shared/components/Firebase/FirebaseEmailVerificationCheck.jsx","webpack://app/./client/app/shared/components/Firebase/FirebaseEmailVerificationSend.jsx","webpack://app/./client/app/shared/components/Firebase/FirebaseEmailVerificationUpdate.jsx","webpack://app/./client/app/shared/components/Form.jsx","webpack://app/./client/app/shared/components/FormDate.jsx","webpack://app/./client/app/shared/components/LoadingSpinner.jsx","webpack://app/./client/app/shared/components/Logout.jsx","webpack://app/./client/app/shared/components/RegisteredRoute.jsx","webpack://app/./client/app/shared/components/Translate.jsx","webpack://app/./client/app/shared/components/index.js","webpack://app/./client/app/shared/components/styled/Address.styles.jsx","webpack://app/./client/app/shared/constants.js","webpack://app/./client/app/shared/lou/auth.js","webpack://app/./client/app/shared/profileElementHelpers.js","webpack://app/./client/app/shared/reducers.js","webpack://app/./client/app/shared/simpleEncrypt.js","webpack://app/./client/app/shared/store.js","webpack://app/./client/app/shared/styles.js","webpack://app/./client/app/shared/utilities.js","webpack://app/./client/app/shared/validator.js","webpack://app/./node_modules/moment/locale/ sync ^\\.\\/.*$"],"sourcesContent":["import C from './constants';\nimport P from './paths';\nimport Pages from './pages';\nimport fetch from 'isomorphic-fetch';\nimport axios from 'axios';\nimport FormData from 'form-data';\nimport ReactOnRails from 'react-on-rails';\nimport { buildProfileForm, updateForm } from '../../shared/profileElementHelpers';\nimport { blankOrValue } from '../../shared/utilities';\nimport {\n setNextPage,\n setPage,\n setPages,\n setPreviousPage,\n setProfileElements,\n setAddress\n} from '../../shared/actions';\n\nconst handleErrors = response => {\n const ok = response.ok || response.status === 200\n\n if (!ok) {\n var error = new Error(response.statusText || response.status);\n error.response = response;\n throw error;\n }\n return response;\n};\n\nconst profileSectionToSubmit = (page) => {\n if ([Pages.GUARDIAN_EMERGENCY_PAGE].indexOf(page) > -1) {\n return ['contact'];\n } else if ([Pages.LANGUAGE_NATIONALITY_PAGE].indexOf(page) > -1) {\n return ['personal'];\n } else if ([Pages.PERSONALITY_PROFILE_PAGE].indexOf(page) > -1) {\n return ['personal', 'placement'];\n } else if ([Pages.PETS_CHILDREN_PAGE, Pages.MEDICAL_PAGE].indexOf(page) > -1) {\n return ['preferences'];\n } else if ([Pages.PLACEMENT_PAGE].indexOf(page) > -1) {\n return ['placement'];\n } else if ([Pages.EDUCATION_PAGE].indexOf(page) > -1) {\n return ['education'];\n } else if ([Pages.PRODUCT_PAGE].indexOf(page) > -1){\n return ['preferences', 'service', 'placement']\n } else {\n return null;\n }\n}\n\nexport const backToAddress = () => dispatch => {\n dispatch(setAddress(null))\n dispatch(setPage(Pages.ADDRESS_PAGE))\n}\n\nexport const registerUser = payload => (dispatch, getState) => {\n const formUrl = '/guests.js';\n let form = new FormData();\n let { affiliate, territory, referral, pages, guest_kind, guest_kind_unknown_place } = getState()\n let highSchoolGuestType = territory.guest_types.find(t => t.code == 'high-school-student')\n let highSchoolStudent = highSchoolGuestType && payload.user.guestType == highSchoolGuestType.id\n\n form.append('authenticity_token', ReactOnRails.authenticityToken());\n form.append('affiliate', blankOrValue(payload.affiliate) || '');\n form.append('firebase_id', blankOrValue(payload.firebase_id));\n form.append('user[email]', payload.user.email);\n form.append('user[given_names]', payload.user.givenNames);\n form.append('user[family_name]', payload.user.familyName);\n form.append('user[gender]', blankOrValue(payload.user.gender));\n form.append('user[dob]', payload.user.dob);\n form.append('user[password]', payload.user.password || '');\n form.append('user[guest_attributes][guest_type_id]', payload.user.guestType);\n form.append('user[guest_attributes][signup_method]', 'wizard_v1');\n form.append('user[guest_attributes][territory_id]', territory.id);\n form.append('user[guest_attributes][referred_from]', payload.user.referredFrom);\n form.append('user[guest_attributes][referral_uid]', blankOrValue(referral.referral_uid));\n form.append('user[guest_attributes][kind]', guest_kind || 'standard');\n form.append('guest[profile_elements][placement][intended_start]', payload.user.intendedStart);\n form.append('guest[profile_elements][placement][intended_vacate]', payload.user.intendedVacate || '');\n form.append('guest[profile_elements][placement][airport_pickup_required]', highSchoolStudent && territory.code == 'SRSC' ? 'Yes' : '');\n form.append('guest[profile_elements][personal][nationality]', payload.user.nationality);\n form.append('guest[profile_elements][contact][contact_details][wechat_id]', blankOrValue(payload.user.weChatId));\n form.append('guest[profile_elements][contact][contact_details][phone]', blankOrValue(payload.user.phone));\n\n if (payload.city) {\n form.append('city[id]', blankOrValue(payload.city.id));\n form.append('city[google]', blankOrValue(payload.city.google));\n if (payload.city.coordinates){\n form.append('city[coordinates]', blankOrValue([payload.city.coordinates.lat, payload.city.coordinates.lng]));\n }\n form.append('city[name]', blankOrValue(payload.city.name));\n form.append('city[state]', blankOrValue(payload.city.state));\n form.append('city[postcode]', blankOrValue(payload.city.postcode));\n } else if (payload.place) {\n form.append('place[id]', blankOrValue(payload.place.id));\n form.append('place[google]', blankOrValue(payload.place.google));\n }\n\n const submitForm = async() => {\n return await fetch(formUrl, {\n method: 'post',\n credentials: 'same-origin',\n headers: {'X-Requested-With': 'XMLHttpRequest'},\n body: form\n })\n }\n submitForm()\n .then(handleErrors)\n .then(response => response.json())\n .then(data => {\n dispatch(setUser(data.user))\n dispatch(setProfileElements(data.profile_elements))\n dispatch(setRegistered(true))\n if (data.user.guest.type.code == 'college-student' && territory.code == 'SRSC'){\n dispatch(setPages(pages.filter(p => p != 'education')))\n }\n if (data.user.guest.kind != 'standard'){\n const pagesToSkip = ['product']\n\n if (guest_kind_unknown_place) {\n pagesToSkip.push('personality_profile')\n pagesToSkip.push('education')\n pagesToSkip.push('language_nationality')\n }\n\n dispatch(setPages(pages.filter(p => !pagesToSkip.includes(p))))\n }\n })\n};\n\nexport const authUser = payload => dispatch => {\n const token = payload.token\n const authenticatedUser = async () => {\n return (\n await fetch('/guests/create_authenticated_user', {\n method: 'post',\n credentials: 'same-origin',\n headers: {\n 'X-Requested-With': 'XMLHttpRequest',\n 'Content-Type': 'application/json',\n 'X-CSRF-Token': document.querySelector('meta[name=\"csrf-token\"]').getAttribute('content')\n },\n body: JSON.stringify({ token })\n })\n )\n }\n\n authenticatedUser()\n .then(handleErrors)\n .then(response => response.json())\n .then(data => {\n const user = {\n authId: data.authenticated_user_id,\n email: payload.email,\n password: payload.password\n }\n\n if (data.success) {\n dispatch(setUser(user))\n } else {\n throw new Error(data.message)\n console.log(data.message)\n }\n })\n}\n\nexport const updateVaccinationInfo = payload => dispatch => {\n const data = new FormData();\n data.append('authenticity_token', ReactOnRails.authenticityToken())\n data.append('guest[state]', payload.guest.state)\n data.append('guest[dose_one_on]', payload.guest.doseOneOn)\n data.append('guest[dose_two_on]', payload.guest.doseTwoOn)\n\n const vaccinationInfoSubmit = async () => {\n return await fetch('/guests/update_vaccination_info', {\n method: 'POST',\n credentials: 'same-origin',\n headers: {'X-Requested-With': 'XMLHttpRequest'},\n body: data\n })\n }\n\n vaccinationInfoSubmit()\n .then(handleErrors)\n .then(response => response.json())\n .then(data => {\n dispatch(setVaccinationInfo(data.vaccination))\n })\n .then(() => {\n if (payload.certificate) {\n dispatch(certificateFormSubmit(payload.certificate))\n }\n })\n}\n\nexport const certificateFormSubmit = payload => dispatch => {\n let form = new FormData();\n\n form.append('authenticity_token', ReactOnRails.authenticityToken());\n form.append('guest_id', payload.guest_id);\n form.append('attachment[name]', payload.attachment.name);\n form.append('attachment[kind]', payload.attachment.kind);\n form.append('attachment[file]', payload.attachment.file);\n\n dispatch(setUploadStatus('Uploading'))\n\n const submit = async () => (\n await axios({\n url: '/guests/upload_certificate.js',\n method: 'POST',\n credentials: 'same-origin',\n headers: {'X-Requested-With': 'XMLHttpRequest'},\n onUploadProgress: progressEvent => {\n const percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total)\n\n dispatch(setUploadProgress(percentCompleted))\n if (percentCompleted > 99) dispatch(setUploadStatus('Processing'))\n },\n data: form\n })\n )\n\n submit()\n .then(handleErrors)\n .then(response => response.data)\n .then(data => {\n dispatch(setVaccinationInfo(data.vaccination))\n })\n .then(() => {\n dispatch(setUploadStatus('Success'))\n })\n};\n\n// Submit profile\nexport const guestProfileSubmit = (payload, page, changePage = true) => (dispatch, getState) => new Promise((resolve) => {\n const formUrl = '/profile_element_entries.json'\n const profileElements = getState().profileElements\n const authenticityToken = ReactOnRails.authenticityToken()\n const profileForm = buildProfileForm()\n const profileElementsForPage = profileSectionToSubmit(page).reduce((obj, item) => {\n obj[item] = profileForm[item]\n return obj\n }, {})\n const guestId = getState().user.guest.id\n\n let profileElementEntry = updateForm(profileElementsForPage, payload);\n let form = {\n authenticity_token: authenticityToken,\n admin: false,\n doc_id: guestId,\n doc_type: 'Lobby::Guest',\n profile_element_entry: profileElementEntry\n }\n\n const profileSubmit = async () => {\n return await fetch(formUrl, {\n method: 'POST',\n credentials: 'same-origin',\n headers: {\n 'Accept': 'application/json, text/plain, */*',\n 'Content-Type': 'application/json'\n },\n body: JSON.stringify(form)\n })\n }\n profileSubmit()\n .then(handleErrors)\n .then(response => response.json())\n .then(data => {\n dispatch(setProfileElements(data))\n })\n .then(() => {\n if (changePage){ dispatch(setNextPage(true)) }\n })\n .then(() => resolve())\n})\n\n// Product\nexport const productSubmit = payload => (dispatch, getState) => {\n const formUrl = `/guests/${payload.user.guest.id}/update_product.json`;\n let form = new FormData();\n form.append('authenticity_token', ReactOnRails.authenticityToken());\n form.append('wizard', true);\n form.append('dietary_requirements', payload.dietary_requirements);\n const updateProduct = async() => {\n return await fetch(formUrl, {\n method: 'post',\n credentials: 'same-origin',\n headers: {'X-Requested-With': 'XMLHttpRequest'},\n body: form\n })\n };\n\n dispatch(guestProfileSubmit(payload.profile_elements, Pages.PRODUCT_PAGE, false))\n .then(() => {\n updateProduct()\n .then(handleErrors)\n .then(response => response.json())\n .then(response => {\n dispatch(setProduct(response))\n })\n .then(() => {\n dispatch(setNextPage(true))\n })\n })\n}\n\nexport const departureSubmit = payload => dispatch => {\n const existing = payload.departureId.val || payload.pickupId.val\n const formUrl = existing ? `/guests/update_arrival.js` : `/guests/new_arrival.js`;\n const formMethod = existing ? 'PATCH' : 'post';\n const updateDeparture = async() => {\n return await fetch(formUrl, {\n method: formMethod,\n credentials: 'same-origin',\n headers: {'X-Requested-With': 'XMLHttpRequest'},\n body: form\n })\n };\n let form = new FormData();\n form.append('authenticity_token', ReactOnRails.authenticityToken());\n form.append('place_search_arrival', blankOrValue(payload.departurePlaceName.val))\n form.append('arrival[kind]', 'departure')\n form.append('arrival[place_id]', blankOrValue(payload.departurePlaceId.val))\n form.append('arrival[date]', blankOrValue(payload.departureDate.val))\n form.append('arrival[time(5i)]', blankOrValue(payload.departureTime.val))\n form.append('arrival[vessel_no]', blankOrValue(payload.departureVesselNo.val))\n form.append('arrival[notes]', blankOrValue(payload.departureNotes.val))\n form.append('pickup[kind]', 'departure')\n form.append('pickup[date]', blankOrValue(payload.pickupDate.val))\n form.append('pickup[arrival_time(5i)]', blankOrValue(payload.pickupTime.val))\n form.append('pickup[transport_type]', blankOrValue(payload.pickupTransportType.val))\n form.append('pickup[contact_type]', blankOrValue(payload.pickupContactType.val))\n form.append('pickup[contact_name]', blankOrValue(payload.pickupContactName.val))\n form.append('pickup[contact_phone]', blankOrValue(payload.pickupContactPhone.val))\n form.append('pickup[time(5i)]', blankOrValue(payload.pickupTime.val))\n form.append('pickup[notes]', blankOrValue(payload.pickupNotes.val))\n\n updateDeparture()\n .then(handleErrors)\n .then(response => response.json())\n .then(response => {\n dispatch(setDeparture(response.arrival));\n dispatch(setDeparturePickup(response.pickup));\n dispatch(setNextPage(true));\n })\n};\n\nexport const arrivalSubmit = payload => dispatch => {\n const existing = payload.arrivalId.val || (payload.onshore == 'Yes' && payload.pickupId.val)\n const formUrl = existing ? `/guests/update_arrival.js` : `/guests/new_arrival.js`;\n const formMethod = existing ? 'PATCH' : 'post';\n const updateArrival = async() => {\n return await fetch(formUrl, {\n method: formMethod,\n credentials: 'same-origin',\n headers: {'X-Requested-With': 'XMLHttpRequest'},\n body: form\n })\n };\n let form = new FormData();\n form.append('authenticity_token', ReactOnRails.authenticityToken());\n form.append('place_search_arrival', blankOrValue(payload.arrivalPlaceName.val))\n form.append('arrival[place_id]', blankOrValue(payload.arrivalPlaceId.val))\n form.append('arrival[date]', blankOrValue(payload.arrivalDate.val))\n form.append('arrival[time(5i)]', blankOrValue(payload.arrivalTime.val))\n form.append('arrival[vessel_no]', blankOrValue(payload.arrivalVesselNo.val))\n form.append('arrival[notes]', blankOrValue(payload.arrivalNotes.val))\n form.append('pickup[date]', blankOrValue(payload.pickupDate.val))\n form.append('pickup[arrival_time(5i)]', blankOrValue(payload.pickupTime.val))\n form.append('pickup[transport_type]', blankOrValue(payload.pickupTransportType.val))\n form.append('pickup[contact_type]', blankOrValue(payload.pickupContactType.val))\n form.append('pickup[contact_name]', blankOrValue(payload.pickupContactName.val))\n form.append('pickup[contact_phone]', blankOrValue(payload.pickupContactPhone.val))\n form.append('pickup[place_id]', blankOrValue(payload.pickupPlaceId.val))\n form.append('pickup[place_name]', blankOrValue(payload.pickupPlaceName.val))\n form.append('pickup[time(5i)]', blankOrValue(payload.pickupPickupTime.val))\n form.append('pickup[notes]', blankOrValue(payload.pickupNotes.val))\n form.append('onshore', blankOrValue(payload.onshore == 'Yes'))\n\n updateArrival()\n .then(handleErrors)\n .then(response => response.json())\n .then(response => {\n dispatch(setArrival(response.arrival));\n dispatch(setPickup(response.pickup));\n dispatch(setOnshore(response.onshore));\n dispatch(setNextPage(true));\n })\n};\n\nexport const completeWizard = payload => dispatch => new Promise((resolve) => {\n const url = '/guests/complete_wizard';\n let form = new FormData();\n form.append('authenticity_token', ReactOnRails.authenticityToken());\n fetch(url, {\n method: 'POST',\n credentials: 'same-origin',\n headers: {'X-Requested-With': 'XMLHttpRequest'},\n body: form\n })\n .then(response => response.json())\n .then(response => {\n dispatch(\n setCompleted(true)\n );\n })\n .then(() => resolve())\n})\n\nexport const addPhoto = payload => ( dispatch, getState ) => new Promise((resolve) => {\n const formUrl = `/guest_photos${payload.id ? `/${payload.id}` : ''}.json`\n let form = new FormData();\n form.append('authenticity_token', ReactOnRails.authenticityToken())\n form.append('photo[image]', payload.file)\n form.append('photo[name]', payload.name)\n form.append('photo[description]', payload.description)\n form.append('photo[kind]', payload.kind)\n\n const submitForm = async() => {\n return await fetch(formUrl, {\n method: payload.id ? 'PATCH' : 'POST',\n credentials: 'same-origin',\n headers: {'X-Requested-With': 'XMLHttpRequest'},\n body: form\n })\n }\n submitForm()\n .then(handleErrors)\n .then(response => response.json())\n .then(data => {\n let user = getState().user\n dispatch(setUser({\n ...user,\n guest: {\n ...user.guest,\n photos: data\n }\n }))\n })\n .then(() => resolve())\n})\n\nexport const destroyPhoto = photoId => ( dispatch, getState ) => {\n let user = getState().user\n let reducedPhotos = user.guest.photos.filter(p => p.id != photoId)\n dispatch(setUser({\n ...user,\n guest: {\n ...user.guest,\n photos: reducedPhotos\n }\n }))\n const formUrl = `/guest_photos/${photoId}.json`;\n let form = new FormData();\n form.append('authenticity_token', ReactOnRails.authenticityToken())\n fetch(formUrl, {\n method: 'DELETE',\n credentials: 'same-origin',\n headers: {'X-Requested-With': 'XMLHttpRequest'},\n body: form\n })\n}\n\n// Update page\nexport const updateSignupPage = page => {\n if (page && page != '' && page != 'register'){\n const url = `/guests/signup/update_page`;\n let form = new FormData();\n form.append('page', page);\n fetch(url, {\n method: 'PATCH',\n credentials: 'same-origin',\n headers: {'X-Requested-With': 'XMLHttpRequest'},\n body: form\n });\n }\n};\n\nexport const skipSubmit = payload => dispatch => {\n dispatch(\n setNextPage(true)\n );\n};\n\nexport const goBack = payload => dispatch => {\n dispatch(\n setPreviousPage(true)\n );\n};\n// new constants\n\n// Others\nexport const setAffiliate = (affiliate) =>\n ({\n type: C.SET_AFFILIATE,\n payload: affiliate\n });\n\nexport const setArrival = (arrival) =>\n ({\n type: C.SET_ARRIVAL,\n payload: arrival\n });\n\nexport const setArrivalTimes = (arrival_times) =>\n ({\n type: C.SET_ARRIVAL_TIMES,\n payload: arrival_times\n });\n\nexport const setDeparture = (departure) =>\n ({\n type: C.SET_DEPARTURE,\n payload: departure\n });\n\nexport const setDeparturePickup = (departure_pickup) =>\n ({\n type: C.SET_DEPARTURE_PICKUP,\n payload: departure_pickup\n });\n\nexport const setCompleted = (completed) =>\n ({\n type: C.SET_COMPLETED,\n payload: completed\n });\n\nexport const setGuestKind = (guest_kind) =>\n ({\n type: C.SET_GUEST_KIND,\n payload: guest_kind\n });\n\nexport const setGuestKindUnknownPlace = (unknown_place) =>\n ({\n type: C.SET_GUEST_KIND_UNKNOWN_PLACE,\n payload: unknown_place\n });\n\nexport const setCountryCode = (country_code) =>\n ({\n type: C.SET_COUNTRY_CODE,\n payload: country_code\n });\n\nexport const setEnvironment = (environment) =>\n ({\n type: C.SET_ENVIRONMENT,\n payload: environment\n });\n\nexport const setGuestType = (guestType) =>\n ({\n type: C.SET_GUEST_TYPE,\n payload: guestType\n });\n\nexport const setLocalProfileElements = (local_profile_elements) =>\n ({\n type: C.SET_LOCAL_PROFILE_ELEMENTS,\n payload: local_profile_elements\n });\n\nexport const setPickup = (pickup) =>\n ({\n type: C.SET_PICKUP,\n payload: pickup\n });\n\nexport const setProducts = (products) =>\n ({\n type: C.SET_PRODUCTS,\n payload: products\n });\n\nexport const setProduct = (product) =>\n ({\n type: C.SET_PRODUCT,\n payload: product\n });\n\nexport const setReferral = (referral) =>\n ({\n type: C.SET_REFERRAL,\n payload: referral\n });\n\nexport const setRegistered = (registered) =>\n ({\n type: C.SET_REGISTERED,\n payload: registered\n });\n\nexport const setUser = (user) => ({\n type: C.SET_USER,\n payload: user\n})\n\nexport const setOnshore = (onshore) => ({\n type: C.SET_ONSHORE,\n payload: onshore\n})\n\nexport const setVaccinationInfo = (vaccination_info) =>\n ({\n type: C.SET_VACCINATION_INFO,\n payload: vaccination_info\n })\n\nexport const setVaccinationOptions = (vaccination_options) =>\n ({\n type: C.SET_VACCINATION_OPTIONS,\n payload: vaccination_options\n })\n\nexport const setUploadStatus = status => ({\n type: C.SET_UPLOAD_STATUS,\n payload: { status }\n})\n\nexport const setUploadProgress = progress => ({\n type: C.SET_UPLOAD_PROGRESS,\n payload: { progress }\n})\n\nexport const resetUpload = () => ({ type: C.RESET_UPLOAD })\n","import React, { useState } from 'react';\nimport { useSelector, useDispatch } from 'react-redux';\nimport { injectIntl } from 'react-intl';\nimport Button from 'react-bootstrap/lib/Button';\nimport { defaultMessages } from '../../../libs/i18n/default'\nimport { setPreviousPage, setNextPage } from '../../../shared/actions'\nimport TrackableButton from './TrackableButton'\n\nconst ButtonGroup = ({ intl: { formatMessage }, disableSubmit, submitFunc, back, skip, page }) => {\n const [pressed, setPressed] = useState(false)\n const user = useSelector(state => state.user)\n const dispatch = useDispatch()\n const icon = () => (\n pressed\n ? \n : formatMessage(defaultMessages.clientCommonButtonsContinue)\n )\n\n const submitClick = (e) => {\n setPressed(true)\n submitFunc(e)\n }\n\n const dummyButton = (position = '') => (\n \n )\n\n const backButton = () => (\n typeof back === 'boolean' && back\n ? dispatch(setPreviousPage(true))}/>\n : dummyButton('pull-left')\n )\n\n const skipButton = () => (\n typeof skip === 'boolean' && skip\n ? dispatch(setNextPage(true))}/>\n : dummyButton()\n )\n\n const submitButton = () => (\n typeof submitFunc === 'function'\n ? \n : dummyButton('pull-right')\n )\n\n return (\n
\n
\n
\n {backButton()}\n {submitButton()}\n {skipButton()}\n
\n
\n )\n}\n\nexport default injectIntl(ButtonGroup);\n","import React from 'react';\nimport Button from 'react-bootstrap/lib/Button';\n\nconst TrackableButton = (props) => {\n const clickIt = e => {\n e.preventDefault()\n props.onClick(e)\n // TODO: This is erroring in the browser\n // props.trackEvent(e)\n }\n\n return (\n {props.text}\n )\n};\n\nexport default TrackableButton;\n","const constants = {\n SET_AFFILIATE: \"SET_AFFILIATE\",\n SET_ARRIVAL: \"SET_ARRIVAL\",\n SET_ARRIVAL_TIMES: \"SET_ARRIVAL_TIMES\",\n SET_COMPLETED: \"SET_COMPLETED\",\n SET_COUNTRY_CODE: \"SET_COUNTRY_CODE\",\n SET_ENVIRONMENT: \"SET_ENVIRONMENT\",\n SET_GUEST_TYPE: \"SET_GUEST_TYPE\",\n SET_LOCAL_PROFILE_ELEMENTS: \"SET_LOCAL_PROFILE_ELEMENTS\",\n SET_MARKETING_REFERRERS: \"SET_MARKETING_REFERRERS\",\n SET_PICKUP: \"SET_PICKUP\",\n SET_PRODUCTS: \"SET_PRODUCTS\",\n SET_PRODUCT: \"SET_PRODUCT\",\n SET_REFERRAL: \"SET_REFERRAL\",\n SET_REGISTERED: \"SET_REGISTERED\",\n SET_USER: \"SET_USER\",\n SET_GUEST_KIND: \"SET_GUEST_KIND\",\n SET_GUEST_KIND_UNKNOWN_PLACE: \"SET_GUEST_KIND_UNKNOWN_PLACE\",\n SET_VACCINATION_OPTIONS: \"SET_VACCINATION_OPTIONS\",\n SET_VACCINATION_INFO: \"SET_VACCINATION_INFO\",\n SET_ONSHORE: \"SET_ONSHORE\",\n SET_DEPARTURE: \"SET_DEPARTURE\",\n SET_DEPARTURE_PICKUP: \"SET_DEPARTURE_PICKUP\",\n SET_UPLOAD_STATUS: \"SET_UPLOAD_STATUS\",\n SET_UPLOAD_PROGRESS: \"SET_UPLOAD_PROGRESS\",\n RESET_UPLOAD: \"RESET_UPLOAD\"\n};\n\nexport default constants;\n","const pages = {\n ARRIVAL_PAGE: \"arrival\",\n COMPLETE_PAGE: \"complete\",\n DEPARTURE_PAGE: \"departure\",\n EDUCATION_PAGE: \"education\",\n PERSONALITY_PROFILE_PAGE: \"personality_profile\",\n GUARDIAN_EMERGENCY_PAGE: \"guardian_emergency\",\n LANGUAGE_NATIONALITY_PAGE: \"language_nationality\",\n MEDICAL_PAGE: \"medical\",\n PETS_CHILDREN_PAGE: \"pets_children\",\n PLACEMENT_PAGE: \"placement\",\n PRODUCT_PAGE: \"product\",\n REGISTER_PAGE: \"register\",\n ADDRESS_PAGE: \"address\",\n FIREBASE_REGISTER_FORM_PAGE: \"firebase_register_form\",\n FIREBASE_ACCOUNT_DETAILS_FORM_PAGE: \"firebase_account_details_form\"\n}\nexport default pages\n","const paths = {\n ARRIVAL_PATH: \"/arrival\",\n COMPLETE_PATH: \"/complete\",\n DEPARTURE_PATH: \"/departure\",\n EDUCATION_PATH: \"/education\",\n PERSONALITY_PROFILE_PATH: \"/personality_profile\",\n GUARDIAN_EMERGENCY_PATH: \"/guardian_emergency\",\n LANGUAGE_NATIONALITY_PATH: \"/language_nationality\",\n MEDICAL_PATH: \"/medical\",\n PETS_CHILDREN_PATH: \"/pets_children\",\n PLACEMENT_PATH: \"/placement\",\n PRODUCT_PATH: \"/product\",\n REGISTER_PATH: \"/register\",\n FIREBASE_REGISTER_PATH: \"/firebase_register_form\",\n FIREBASE_ACCOUNT_DETAILS_PATH: \"/firebase_account_details_form\",\n ADDRESS_PATH: \"/\"\n}\n\nexport default paths\n","import Paths from '../paths';\nimport Pages from '../pages';\nimport React from 'react';\nimport { useSelector } from 'react-redux'\nimport { Redirect } from 'react-router-dom';\nimport { updateSignupPage } from '../actions';\n\nconst Redirector = ({ page, this_page }) => {\n const redirect = (page !== this_page)\n const enable_firebase_authentication = useSelector(state => state.territory.enable_firebase_authentication)\n\n const redirectPath = () => {\n switch(page){\n case Pages.ARRIVAL_PAGE : return Paths.ARRIVAL_PATH;\n case Pages.COMPLETE_PAGE : return Paths.COMPLETE_PATH;\n case Pages.EDUCATION_PAGE : return Paths.EDUCATION_PATH;\n case Pages.GUARDIAN_EMERGENCY_PAGE : return Paths.GUARDIAN_EMERGENCY_PATH;\n case Pages.PERSONALITY_PROFILE_PAGE : return Paths.PERSONALITY_PROFILE_PATH;\n case Pages.LANGUAGE_NATIONALITY_PAGE : return Paths.LANGUAGE_NATIONALITY_PATH;\n case Pages.MEDICAL_PAGE : return Paths.MEDICAL_PATH;\n case Pages.PETS_CHILDREN_PAGE : return Paths.PETS_CHILDREN_PATH;\n case Pages.PLACEMENT_PAGE : return Paths.PLACEMENT_PATH;\n case Pages.PRODUCT_PAGE : return Paths.PRODUCT_PATH;\n case Pages.REGISTER_PAGE : return Paths.REGISTER_PATH;\n case Pages.RETURN_LATER_PAGE : return Paths.RETURN_LATER_PATH;\n case Pages.ADDRESS_PAGE : return Paths.ADDRESS_PATH;\n case Pages.DEPARTURE_PAGE : return Paths.DEPARTURE_PATH;\n case Pages.FIREBASE_REGISTER_FORM_PAGE : return Paths.FIREBASE_REGISTER_PATH;\n case Pages.FIREBASE_ACCOUNT_DETAILS_FORM_PAGE : return Paths.FIREBASE_ACCOUNT_DETAILS_PATH;\n default: return enable_firebase_authentication ? Paths.FIREBASE_REGISTER_PATH : Paths.REGISTER_PATH;\n }\n }\n\n if (redirect) {\n updateSignupPage(page);\n return ;\n } else {\n return redirect\n }\n}\n\nexport default Redirector\n","import P from '../pages';\nimport appReducer from './reducers';\nimport thunk from 'redux-thunk';\nimport { createStore, applyMiddleware } from 'redux';\nimport { setPage, setNextPage, setPreviousPage } from '../../../shared/actions';\n\nconst pageNavigator = store => next => action => {\n let result = next(action);\n let {\n page,\n pages,\n terms,\n registered,\n content,\n nextPage,\n previousPage,\n marketing_referrers,\n environment,\n guestType,\n referral,\n products,\n language_options,\n ethnicity_options,\n arrival_times,\n country_code,\n affiliate,\n territoryId,\n territoryCode,\n territory,\n address,\n profileElements\n } = store.getState();\n let placementEntry = profileElements.find(entry => entry.kind === \"placement\");\n let departureTransport = placementEntry?.answers?.departure_transport;\n let next_page, previous_page;\n if (page && pages.length > 0){\n let included_pages = departureTransport == 'Yes' ? pages : pages.filter(page => page !== \"departure\");\n let index = included_pages.indexOf(page);\n let first_page = included_pages[0];\n\n if (index > -1) {\n next_page = included_pages[index+1];\n previous_page = included_pages[index-1];\n }\n\n if (page == P.EDUCATION_PAGE && !pages.includes('education')){\n store.dispatch(setPage(P.PLACEMENT_PAGE))\n } else if (page == P.PRODUCT_PAGE && !pages.includes('product')){\n store.dispatch(setPage(P.GUARDIAN_EMERGENCY_PAGE))\n } else if ((page == P.REGISTER_PAGE || page == P.ADDRESS_PAGE || page == P.FIREBASE_ACCOUNT_DETAILS_FORM_PAGE) && registered) {\n store.dispatch(setPage(P.PRODUCT_PAGE))\n } else if (page != P.ADDRESS_PAGE && !registered && !address && territory.guest_address_check){\n store.dispatch(setPage(P.ADDRESS_PAGE))\n } else if ((page != P.REGISTER_PAGE && page != P.FIREBASE_REGISTER_FORM_PAGE && page != P.FIREBASE_ACCOUNT_DETAILS_FORM_PAGE) && !registered && (address || !territory.guest_address_check)) {\n if (territory.enable_firebase_authentication) {\n store.dispatch(setPage(P.FIREBASE_REGISTER_FORM_PAGE))\n } else {\n store.dispatch(setPage(P.REGISTER_PAGE))\n }\n } else if (nextPage) {\n store.dispatch(setNextPage(false))\n store.dispatch(setPage(next_page))\n } else if (previousPage) {\n store.dispatch(setPreviousPage(false))\n store.dispatch(setPage(previous_page))\n }\n }\n window.gs = store.getState()\n return result;\n};\n\nexport default createStore(\n appReducer,\n applyMiddleware(thunk,pageNavigator)\n)\n","import C from '../constants'\nimport sharedReducers from '../../../shared/reducers'\nimport { combineReducers } from 'redux'\n\nexport const user = (state=null, action) => {\n switch (action.type) {\n case C.SET_PRODUCT:\n return {\n ...state,\n guest: {\n ...state.guest,\n product: action.payload\n }\n }\n case C.SET_ARRIVAL:\n return {\n ...state,\n guest: {\n ...state.guest,\n arrival: action.payload\n }\n }\n case C.SET_PICKUP:\n return {\n ...state,\n guest: {\n ...state.guest,\n pickup: action.payload\n }\n }\n case C.SET_DEPARTURE:\n return {\n ...state,\n guest: {\n ...state.guest,\n departure: action.payload\n }\n }\n case C.SET_DEPARTURE_PICKUP:\n return {\n ...state,\n guest: {\n ...state.guest,\n departure_pickup: action.payload\n }\n }\n case C.SET_USER:\n return action.payload\n default:\n return state\n }\n}\n\nexport const localProfileElements = (state=false, action) =>\n (action.type === C.SET_LOCAL_PROFILE_ELEMENTS) ?\n action.payload :\n state;\n\nexport const registered = (state=false, action) =>\n (action.type === C.SET_REGISTERED) ?\n \taction.payload :\n \tstate;\n\nexport const referral = (state=false, action) =>\n (action.type === C.SET_REFERRAL) ?\n action.payload :\n state\n\nexport const affiliate = (state=false, action) =>\n (action.type === C.SET_AFFILIATE) ?\n \taction.payload :\n \tstate;\n\nexport const environment = (state=false, action) =>\n (action.type === C.SET_ENVIRONMENT) ?\n \taction.payload :\n \tstate;\n\nexport const products = (state=false, action) =>\n (action.type === C.SET_PRODUCTS) ?\n \taction.payload :\n \tstate;\n\nexport const arrival_times = (state=false, action) =>\n (action.type === C.SET_ARRIVAL_TIMES) ?\n \taction.payload :\n \tstate;\n\nexport const completed = (state=false, action) =>\n (action.type === C.SET_COMPLETED) ?\n \taction.payload :\n \tstate\n\nexport const guest_kind = (state=false, action) =>\n (action.type === C.SET_GUEST_KIND) ?\n \taction.payload :\n \tstate\n\nexport const guest_kind_unknown_place = (state=false, action) =>\n (action.type === C.SET_GUEST_KIND_UNKNOWN_PLACE) ?\n \taction.payload :\n \tstate\n\nexport const vaccinationInfo = (state=[], action) => \n (action.type === C.SET_VACCINATION_INFO) ?\n action.payload :\n state\n\nexport const vaccinationOptions = (state=[], action) => \n (action.type === C.SET_VACCINATION_OPTIONS) ?\n action.payload :\n state\n\nexport const onshore = (state = false, action) =>\n (action.type === C.SET_ONSHORE) ?\n action.payload :\n state\n\nexport const uploader = (state = {}, action) => {\n switch (action.type) {\n case C.SET_UPLOAD_PROGRESS:\n return { ...state, progress: action.payload.progress }\n case C.SET_UPLOAD_STATUS:\n return { ...state, status: action.payload.status }\n case C.RESET_UPLOAD:\n return {}\n default:\n return state\n }\n}\n\nconst reducers = {\n localProfileElements,\n environment,\n referral,\n products,\n user,\n registered,\n affiliate,\n arrival_times,\n completed,\n guest_kind,\n guest_kind_unknown_place,\n vaccinationInfo,\n vaccinationOptions,\n onshore,\n uploader\n}\n\nexport default combineReducers({ ...reducers, ...sharedReducers })\n","import C from \"./constants\";\nimport Pages from \"./pages\";\nimport fetch from \"isomorphic-fetch\";\nimport axios from \"axios\"\nimport FormData from \"form-data\";\nimport ReactOnRails from \"react-on-rails\";\nimport { buildProfileForm, updateForm, blankOrValue } from \"./utilities\";\n\nconst handleErrors = response => {\n const ok = response.ok || response.status === 200\n\n if (!ok) {\n var error = new Error(response.statusText || response.status);\n error.response = response;\n throw error;\n }\n\n return response;\n};\n\nexport const updateSchools = payload => dispatch => {\n const formUrl = \"/hosts/update_schools.json\"\n\n const submit = async() => {\n return await fetch(formUrl, {\n method: \"POST\",\n credentials: \"same-origin\",\n headers: {\n \"Accept\": \"application/json, text/plain, */*\",\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify(payload)\n })\n }\n submit()\n .then(handleErrors)\n .then(response => response.json())\n .then(user => {\n dispatch(setUser(user));\n })\n};\n\nexport const guestPackagesSubmit = payload => dispatch => {\n const formUrl = `/hosts/update_products.json`;\n const form = new FormData();\n form.append(\"authenticity_token\", ReactOnRails.authenticityToken());\n form.append(\"host_id\", payload.host_id)\n form.append(\"service_level\", payload.serviceLevel)\n\n const updateAvailableProducts = async() => {\n return await fetch(formUrl, {\n method: \"POST\",\n credentials: \"same-origin\",\n headers: {\"X-Requested-With\": \"XMLHttpRequest\"},\n body: form\n })\n };\n\n updateAvailableProducts()\n .then(handleErrors)\n .then(response => response.json())\n .then(data => {\n dispatch(setProfileElements(data))\n dispatch(setNextPage(true))\n })\n};\n// Photos\nexport const invalidatePhotos = (content) =>\n ({\n type: C.INVALIDATE_PHOTOS,\n payload: content\n });\n\nexport const requestPhotos = (content) =>\n ({\n type: C.REQUEST_PHOTOS,\n payload: content\n });\n\nexport const receivePhotos = (json) => {\n return {\n type: C.RECEIVE_PHOTOS,\n photos: json,\n receivedAt: Date.now()\n };\n};\n\nexport const setUploadProgress = progress => ({\n type: C.SET_UPLOAD_PROGRESS,\n payload: { progress }\n})\n\nexport const setUploadStatus = status => ({\n type: C.SET_UPLOAD_STATUS,\n payload: { status }\n})\n\nexport const resetUpload = () => ({ type: C.RESET_UPLOAD })\n\nexport const fetchPhotos = (state) => dispatch => {\n let document_id = state.user.host.id;\n let document_type = \"Lobby::Host\";\n let url = `/host_photos.json?host_id=${document_id}`;\n\n dispatch(requestPhotos(true));\n\n return fetch(\n url,\n {\n credentials: \"same-origin\",\n headers: {\n \"Accept\": \"application/json, text/plain, */*\",\n \"Content-Type\": \"application/json\"\n }\n })\n .then(response => response.json())\n .then(json => {\n dispatch(receivePhotos(json));\n }\n );\n };\n\nexport const photoFormSubmit = payload => dispatch => {\n const formUrl = payload.form.photo.id ? `/host_photos/${payload.form.photo.id}.js` : \"/host_photos.js\";\n const formMethod = payload.method;\n\n let form = new FormData();\n form.append(\"authenticity_token\", payload.form.authenticity_token);\n form.append(\"host_id\", payload.form.host_id);\n form.append(\"resident_id\", blankOrValue(payload.form.resident_id));\n form.append(\"room_id\", blankOrValue(payload.form.room_id));\n form.append(\"photo[name]\", blankOrValue(payload.form.photo.name));\n form.append(\"photo[description]\", blankOrValue(payload.form.photo.description));\n\n if(payload.form.room_id){\n form.append(\"photo[kind]\", \"student_room\");\n } else {\n form.append(\"photo[kind]\", payload.form.photo.kind);\n }\n\n if(!payload.form.photo.id){\n form.append(\"photo[image]\", payload.form.photo.file);\n }\n\n dispatch(setUploadStatus(\"Uploading\"))\n\n const submit = async () => (\n await axios({\n url: formUrl,\n method: formMethod,\n credentials: \"same-origin\",\n headers: {\"X-Requested-With\": \"XMLHttpRequest\"},\n onUploadProgress: progressEvent => {\n const percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total)\n\n dispatch(setUploadProgress(percentCompleted))\n if (percentCompleted > 99) dispatch(setUploadStatus(\"Processing\"))\n },\n data: form\n })\n )\n\n submit()\n .then(handleErrors)\n .then(response => {\n let subject;\n if (payload.form.resident_id){subject = \"resident\"};\n if (payload.form.room_id){subject = \"room\"};\n\n\n dispatch(resetUpload())\n\n switch (subject) {\n case \"room\":\n dispatch(invalidateRooms());\n dispatch(invalidatePhotos());\n return dispatch(fetchRoomsIfNeeded());\n case \"resident\":\n dispatch(invalidateResidents());\n return dispatch(fetchResidentsIfNeeded());\n default:\n dispatch(invalidatePhotos());\n return dispatch(fetchPhotosIfNeeded());\n }\n })\n};\n\nexport const certificateFormSubmit = payload => dispatch => {\n let form = new FormData();\n\n form.append(\"authenticity_token\", payload.form.authenticity_token);\n form.append(\"host_id\", payload.form.host_id);\n form.append(\"resident_id\", blankOrValue(payload.form.resident_id));\n form.append(\"attachment[name]\", payload.form.attachment.name);\n form.append(\"attachment[kind]\", payload.form.attachment.kind);\n form.append(\"attachment[file]\", payload.form.attachment.file);\n\n dispatch(setUploadStatus(\"Uploading\"))\n\n const submit = async () => (\n await axios({\n url: `/residents/${payload.form.resident_id}/upload_certificate.js`,\n method: \"POST\",\n credentials: \"same-origin\",\n headers: {\"X-Requested-With\": \"XMLHttpRequest\"},\n onUploadProgress: progressEvent => {\n const percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total)\n\n dispatch(setUploadProgress(percentCompleted))\n if (percentCompleted > 99) dispatch(setUploadStatus(\"Processing\"))\n },\n data: form\n })\n )\n\n submit()\n .then(handleErrors)\n .then(() => {\n dispatch(resetUpload())\n\n dispatch(invalidateResidents());\n dispatch(fetchResidentsIfNeeded());\n })\n};\n\nexport const policeVettingFormSubmit = payload => dispatch => {\n let form = new FormData();\n\n form.append(\"authenticity_token\", payload.form.authenticity_token);\n form.append(\"resident_id\", blankOrValue(payload.form.resident_id));\n\n for (var i = 0; i < payload.form.attachments.length; i++) {\n let attachmentData = new FormData()\n\n form.append('id', payload.form.resident_id)\n form.append('host_id', payload.form.host_id)\n form.append('attachments[][name]', payload.form.attachments[i].name)\n form.append('attachments[][kind]', payload.form.attachments[i].kind)\n form.append('attachments[][file]', payload.form.attachments[i].file)\n }\n\n for (var pair of form.entries()) {\n console.log(pair[0]+ ', ' + pair[1]);\n }\n\n dispatch(setUploadStatus(\"Uploading\"))\n\n const submit = async () => (\n await axios({\n url: `/police_vettings/upload_documents`,\n method: \"POST\",\n credentials: \"same-origin\",\n headers: {\"X-Requested-With\": \"XMLHttpRequest\"},\n onUploadProgress: progressEvent => {\n const percentCompleted = Math.round((progressEvent.loaded * 100) / progressEvent.total)\n\n dispatch(setUploadProgress(percentCompleted))\n if (percentCompleted > 99) dispatch(setUploadStatus(\"Processing\"))\n },\n data: form\n })\n )\n\n submit()\n .then(handleErrors)\n .then(() => {\n dispatch(resetUpload())\n\n dispatch(invalidateResidents());\n dispatch(fetchResidentsIfNeeded());\n })\n}\n\nexport const shouldFetchPhotos = (state) => {\n let photos = state.photos;\n if (!photos) {\n return true;\n } else if (photos.isFetching) {\n return false;\n } else {\n return photos.didInvalidate;\n }\n};\n\nexport const fetchPhotosIfNeeded = (subject) => {\n return (dispatch, getState) => {\n\n if (shouldFetchPhotos(getState())) {\n return dispatch(fetchPhotos(getState()));\n }\n };\n};\n// Residents\nexport const invalidateResidents = (content) =>\n ({\n type: C.INVALIDATE_RESIDENTS,\n payload: content\n });\n\nexport const requestResidents = (content) =>\n ({\n type: C.REQUEST_RESIDENTS,\n payload: content\n });\n\nexport const receiveResidents = (json) => {\n return {\n type: C.RECEIVE_RESIDENTS,\n residents: json,\n receivedAt: Date.now()\n };\n};\n\nexport const fetchResidents = () => dispatch => {\n dispatch(requestResidents(true));\n const submit = async() => {\n return await fetch(\n \"/residents.json\",\n {\n credentials: \"same-origin\",\n headers: {\n \"Accept\": \"application/json, text/plain, */*\",\n \"Content-Type\": \"application/json\"\n }\n })\n }\n submit()\n .then(response => response.json())\n .then(json => {\n dispatch(receiveResidents(json));\n });\n };\n\nexport const residentFormSubmit = payload => dispatch => {\n const formUrl = payload.host_resident.id ? `/residents/${payload.host_resident.id}.json` : \"/residents.json\";\n const formMethod = payload.host_resident.id ? \"PUT\" : \"POST\";\n\n fetch(formUrl, {\n method: formMethod,\n credentials: \"same-origin\",\n headers: {\n \"Accept\": \"application/json, text/plain, */*\",\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify( payload )\n })\n .then(handleErrors)\n .then(response => response.json())\n .then(resident => {\n dispatch(fetchResidents());\n })\n};\n\nexport const shouldFetchResidents = (state) => {\n let residents = state.residents;\n if (!residents) {\n return true;\n } else if (residents.isFetching) {\n return false;\n } else {\n return residents.didInvalidate;\n }\n};\n\nexport const fetchResidentsIfNeeded = () => {\n return (dispatch, getState) => {\n if (shouldFetchResidents(getState())) {\n return dispatch(fetchResidents());\n }\n };\n};\n\n// Host\nexport const invalidateHost = (content) => ({\n type: C.INVALIDATE_HOST,\n payload: content\n });\n\nexport const requestHost = (content) => ({\n type: C.REQUEST_HOST,\n payload: content\n });\n\nexport const receiveHost = (json) => {\n return {\n type: C.RECEIVE_HOST,\n host: json,\n receivedAt: Date.now()\n }\n}\n\nexport const shouldFetchHost = (state) => {\n let host = state.host\n if (!host) {\n return true\n } else if (host.isFetching) {\n return false\n } else {\n return host.didInvalidate\n }\n}\n\nexport const fetchHostIfNeeded = () => {\n return (dispatch, getState) => {\n if (shouldFetchHost(getState())) {\n return dispatch(fetchHost())\n }\n }\n}\n\nexport const fetchHost = () => dispatch => {\n dispatch(requestHost(true))\n return fetch(\"/hosts.json\", {\n credentials: \"same-origin\",\n headers: {\n \"Accept\": \"application/json, text/plain, */*\",\n \"Content-Type\": \"application/json\"\n }\n })\n .then(response => response.json())\n .then(json => {\n dispatch(receiveHost(json))\n }\n )\n }\n\nexport const completeWizard = payload => dispatch => {\n const url = \"/hosts/complete_wizard\";\n let form = new FormData();\n form.append(\"authenticity_token\", payload.authenticity_token);\n const submit = async() => {\n return await fetch(url, {\n method: \"POST\",\n credentials: \"same-origin\",\n headers: {\"X-Requested-With\": \"XMLHttpRequest\"},\n body: form\n })\n }\n submit()\n .then(response => response.json())\n .then(response => {\n dispatch(\n setCompleted(true)\n );\n window.location = payload.redirect_url;\n })\n}\n\nexport const withdrawSubmit = payload => dispatch => {\n const url = \"/hosts/withdraw.json\";\n let form = new FormData();\n form.append(\"authenticity_token\", payload.csrf_token);\n fetch(url, {\n method: \"PATCH\",\n credentials: \"same-origin\",\n headers: {\"X-Requested-With\": \"XMLHttpRequest\"},\n body: form\n })\n .then(response => {\n dispatch(\n setWithdrawn(true)\n );\n });\n};\n\nexport const paymentsSubmit = payload => dispatch => {\n fetch(\"/hosts/update_banking.json\", {\n method: \"POST\",\n credentials: \"same-origin\",\n headers: {\n \"Accept\": \"application/json, text/plain, */*\",\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify( payload )\n })\n .then(handleErrors)\n .then(response => response.json())\n .then(user => {\n dispatch(setUser(user));\n })\n .then(dispatch(setNextPage(true)))\n}\n\nexport const referralSubmit = payload => dispatch => {\n const submit = async() => {\n return await fetch(\"/hosts/update_referral.json\", {\n method: \"POST\",\n credentials: \"same-origin\",\n headers: {\n \"Accept\": \"application/json, text/plain, */*\",\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify( payload )\n })\n }\n submit()\n .then(handleErrors)\n .then(response => response.json())\n .then(json => {\n dispatch(setUser(json))\n })\n .then(dispatch(setNextPage(true)))\n}\n\n// Rooms\nexport const invalidateRooms = (content) =>\n ({\n type: C.INVALIDATE_ROOMS,\n payload: content\n });\n\nexport const requestRooms = (content) =>\n ({\n type: C.REQUEST_ROOMS,\n payload: content\n });\n\nexport const receiveRooms = (json) => {\n return {\n type: C.RECEIVE_ROOMS,\n rooms: json,\n receivedAt: Date.now()\n };\n};\n\nexport const fetchRooms = () => dispatch => {\n dispatch(requestRooms(true))\n\n const submit = async() => {\n return await fetch(\"/host_rooms.json\",\n {\n credentials: \"same-origin\",\n headers: {\n \"Accept\": \"application/json, text/plain, */*\",\n \"Content-Type\": \"application/json\"\n }\n }\n )\n }\n submit()\n .then(response => response.json())\n .then(json => {\n dispatch(receiveRooms(json));\n });\n };\n\nexport const roomFormSubmit = payload => dispatch => {\n const formUrl = payload.room.id ? `/host_rooms/${payload.room.id}.json` : \"/host_rooms.json\";\n const formMethod = payload.room.id ? \"PUT\" : \"POST\";\n\n fetch(formUrl, {\n method: formMethod,\n credentials: \"same-origin\",\n headers: {\n \"Accept\": \"application/json, text/plain, */*\",\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify( payload )\n })\n .then(handleErrors)\n .then(response => response.json())\n .then(room => {\n dispatch(fetchRooms());\n })\n};\n\nexport const shouldFetchRooms = (state) => {\n let rooms = state.rooms;\n if (!rooms) {\n return true;\n } else if (rooms.isFetching) {\n return false;\n } else {\n return rooms.didInvalidate;\n }\n};\n\nexport const fetchRoomsIfNeeded = () => {\n return (dispatch, getState) => {\n if (shouldFetchRooms(getState())) {\n return dispatch(fetchRooms());\n }\n };\n};\n\n// Others\nexport const setContent = (content) =>\n ({\n type: C.SET_CONTENT,\n payload: content\n });\n\nexport const setTerms = (terms) =>\n ({\n type: C.SET_TERMS,\n payload: terms\n });\n\nexport const setWithdrawn = (withdrawn) =>\n ({\n type: C.SET_WITHDRAWN,\n payload: withdrawn\n });\n\nexport const setCompleted = (completed) =>\n ({\n type: C.SET_COMPLETED,\n payload: completed\n });\n\nexport const setPage = (page) =>\n ({\n type: C.SET_PAGE,\n payload: page\n });\n\nexport const setEnvironment = (environment) =>\n ({\n type: C.SET_ENVIRONMENT,\n payload: environment\n });\n\nexport const setPages = (pages) =>\n ({\n type: C.SET_PAGES,\n payload: pages\n });\n\nexport const setNextPage = (next_page) =>\n ({\n type: C.SET_NEXT_PAGE,\n payload: next_page\n });\n\n\nexport const setPreviousPage = (previous_page) =>\n ({\n type: C.SET_PREVIOUS_PAGE,\n payload: previous_page\n });\n\nexport const setProfileElements = (profile_elements) =>\n ({\n type: C.SET_PROFILE_ELEMENTS,\n payload: profile_elements\n });\n\nexport const setRequiredFields = (required_fields) =>\n ({\n type: C.SET_REQUIRED_FIELDS,\n payload: required_fields\n });\n\nexport const setResidentVaccinationOptions = (resident_vaccination_options) =>\n ({\n type: C.SET_RESIDENT_VACCINATION_OPTIONS,\n payload: resident_vaccination_options\n });\n\nexport const setLocalProfileElements = (local_profile_elements) =>\n ({\n type: C.SET_LOCAL_PROFILE_ELEMENTS,\n payload: local_profile_elements\n });\n\nexport const setResidents = (residents) =>\n ({\n type: C.SET_RESIDENTS,\n payload: residents\n });\n\nexport const setUser = (user) =>\n ({\n type: C.SET_USER,\n payload: user\n });\n\nexport const setRegistered = (registered) =>\n ({\n type: C.SET_REGISTERED,\n payload: registered\n });\n\nexport const setHolding = (holding) =>\n ({\n type: C.SET_HOLDING,\n payload: holding\n });\n\nexport const setAddress = (address) =>\n ({\n type: C.SET_ADDRESS,\n payload: address\n });\n\nexport const setProceedFromHolding = (proceed_from_holding) =>\n ({\n type: C.SET_PROCEED_FROM_HOLDING,\n payload: proceed_from_holding\n });\n\nexport const setAffiliate = (affiliate) =>\n ({\n type: C.SET_AFFILIATE,\n payload: affiliate\n });\n\nexport const setReferralProgram = (referral_program) =>\n ({\n type: C.SET_REFERRAL_PROGRAM,\n payload: referral_program\n });\n\nexport const setLanguageOptions = (language_options) =>\n ({\n type: C.SET_LANGUAGE_OPTIONS,\n payload: language_options\n });\n\nexport const setEthnicityOptions = (ethnicity_options) =>\n ({\n type: C.SET_ETHNICITY_OPTIONS,\n payload: ethnicity_options\n });\n\nexport const setTerritory = (territory) =>\n ({\n type: C.SET_TERRITORY,\n payload: territory\n });\n\nexport const setMarket = (market) =>\n ({\n type: C.SET_MARKET,\n payload: market\n });\n\nexport const setActiveProfileElements = (active_profile_elements) =>\n ({\n type: C.SET_ACTIVE_PROFILE_ELEMENTS,\n payload: active_profile_elements\n });\n\nexport const acceptTerms = payload => dispatch => {\n dispatch(\n setTerms(true)\n );\n};\n\nexport const backToAddress = () => dispatch => {\n dispatch(setAddress(null))\n dispatch(setPage(Pages.ADDRESS_PAGE))\n}\n\nexport const registerUser = payload => (dispatch, getState) => {\n const formUrl = \"/hosts.js\";\n\n let form = new FormData();\n\n form.append(\"authenticity_token\", payload.csrf_token);\n form.append(\"affiliate\", getState().affiliate || payload.affiliate || '');\n form.append(\"firebase_id\", blankOrValue(payload.firebase_id));\n form.append(\"user[given_names]\", payload.givenNames);\n form.append(\"user[family_name]\", payload.familyName);\n form.append(\"user[host_attributes][phone_mobile]\", payload.phone);\n form.append(\"user[email]\", payload.email);\n form.append(\"user[password]\", payload.password || '');\n form.append(\"user[dob]\", payload.dob);\n form.append(\"user[gender]\", blankOrValue(payload.gender));\n form.append(\"user[host_attributes][referred_from]\", blankOrValue(payload.referredFrom));\n form.append(\"user[host_attributes][territory_id]\", getState().territory.id);\n form.append(\"address[unit_no]\", blankOrValue(payload.address.unit_no));\n form.append(\"address[street_no]\", blankOrValue(payload.address.street_no));\n form.append(\"address[street_name]\", blankOrValue(payload.address.street_name));\n form.append(\"user[host_attributes][address_city]\", blankOrValue(payload.address.city));\n form.append(\"user[host_attributes][address_state]\", blankOrValue(payload.address.state));\n form.append(\"user[host_attributes][address_post_code]\", blankOrValue(payload.address.post_code));\n form.append(\"user[host_attributes][country_code]\", blankOrValue(payload.address.country_code));\n form.append(\"user[host_attributes][coordinates]\", blankOrValue(payload.address.coordinates));\n form.append(\"user[host_attributes][sign_up_method]\", payload.sign_up_method);\n\n const submit = async() => {\n return await fetch(formUrl, {\n method: \"post\",\n credentials: \"same-origin\",\n headers: {\"X-Requested-With\": \"XMLHttpRequest\"},\n body: form\n })\n }\n submit()\n .then(handleErrors)\n .then(response => response.json())\n .then(user => {\n dispatch(\n setUser(user)\n );\n if (user.host.host_referral_program_active == false){\n let new_pages = getState().pages.filter(s => s !== \"referral\");\n dispatch(\n setPages(new_pages)\n )\n };\n if (user.host.assigned_office == false){\n dispatch(\n setHolding(true)\n );\n };\n let marital_status = blankOrValue(payload.maritalStatus)\n if (marital_status){\n dispatch(hostProfileSubmit({\n lifestyle: {\n marital_status: marital_status\n }\n }, false));\n }\n dispatch(\n setRegistered(true)\n );\n })\n};\n\nexport const authFirebaseUser = payload => dispatch => {\n const token = payload.token\n const authenticatedUser = async () => {\n return (\n await fetch('/hosts/create_authenticated_user', {\n method: \"POST\",\n credentials: \"same-origin\",\n headers: {\n \"Accept\": \"application/json, text/plain, */*\",\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify({ token })\n })\n )\n }\n authenticatedUser()\n .then(handleErrors)\n .then(response => response.json())\n .then(data => {\n const user = {\n authId: data.authenticated_user_id,\n email: payload.email,\n password: payload.password\n }\n dispatch(setUser(user))\n })\n};\n\nexport const skipSubmit = payload => dispatch => {\n dispatch(\n setNextPage(true)\n );\n};\n\nexport const goBack = payload => dispatch => {\n dispatch(\n setPreviousPage(true)\n );\n};\n\n// new constants\nexport const conclusionSubmit = payload => dispatch => {\n dispatch(\n setNextPage(true)\n );\n};\nexport const contactSubmit = payload => dispatch => {\n dispatch(\n setNextPage(true)\n );\n};\n\nexport const photoSubmit = payload => dispatch => {\n const formUrl = \"/hosts/submit_photos\";\n const authenticityToken = ReactOnRails.authenticityToken();\n\n let form = new FormData();\n form.append(\"authenticity_token\", authenticityToken);\n\n fetch(formUrl, {\n method: \"PATCH\",\n credentials: \"same-origin\",\n headers: {\"X-Requested-With\": \"XMLHttpRequest\"},\n body: form\n })\n\n dispatch(\n setNextPage(true)\n );\n};\n\nexport const roomsSubmit = payload => dispatch => {\n const formUrl = \"/host_rooms/submit\";\n const authenticityToken = ReactOnRails.authenticityToken();\n\n let form = new FormData();\n form.append(\"authenticity_token\", authenticityToken);\n\n fetch(formUrl, {\n method: \"PATCH\",\n credentials: \"same-origin\",\n headers: {\"X-Requested-With\": \"XMLHttpRequest\"},\n body: form\n })\n};\n\nexport const residentsSubmit = payload => dispatch => {\n const formUrl = \"/residents/submit\";\n const authenticityToken = ReactOnRails.authenticityToken();\n\n let form = new FormData();\n form.append(\"authenticity_token\", authenticityToken);\n\n fetch(formUrl, {\n method: \"PATCH\",\n credentials: \"same-origin\",\n headers: {\"X-Requested-With\": \"XMLHttpRequest\"},\n body: form\n })\n dispatch(\n setNextPage(true)\n );\n};\nexport const profileSubmit = payload => dispatch => {\n dispatch(\n setNextPage(true)\n );\n};\nexport const intervalSubmit = payload => dispatch => {\n dispatch(\n setNextPage(true)\n );\n};\nexport const dietSubmit = payload => dispatch => {\n dispatch(\n setNextPage(true)\n );\n};\nexport const guestPreferencesSubmit = payload => dispatch => {\n dispatch(\n setNextPage(true)\n );\n};\nexport const culturalBackgroundSubmit = payload => dispatch => {\n dispatch(\n setNextPage(true)\n );\n};\nexport const hostProfileSubmit = (payload, set_page = true) => (dispatch, getState) => new Promise((resolve) => {\n const formUrl = \"/profile_element_entries.json\";\n const schema = getState().localProfileElements.schema;\n const profileElements = getState().profileElements;\n const authenticityToken = ReactOnRails.authenticityToken();\n const hostId = getState().user.host.id;\n\n let form = {\n authenticity_token: authenticityToken,\n admin: false,\n doc_id: hostId,\n doc_type: \"Lobby::Host\",\n profile_element_entry: buildProfileForm(schema, profileElements)\n };\n\n form.profile_element_entry = updateForm(form.profile_element_entry, schema, payload);\n\n fetch(formUrl, {\n method: \"POST\",\n credentials: \"same-origin\",\n headers: {\n \"Accept\": \"application/json, text/plain, */*\",\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify( form )\n })\n .then(response => response.json())\n .then(data => {\n dispatch(setProfileElements(data))\n if(set_page){ dispatch(setNextPage(true)) }\n })\n .then(() => resolve())\n})\n\nexport const verifyHostPhoneNumber = () => (dispatch, getState) => new Promise((resolve) => {\n const formUrl = \"/hosts/verify_phone_number\";\n const phoneMobile = getState().user.host.phone_mobile;\n const hostId = getState().user.host.id;\n\n let form = {\n phone_mobile: phoneMobile,\n id: hostId\n };\n\n fetch(\n formUrl,\n {\n method: \"POST\",\n credentials: \"same-origin\",\n headers: {\n \"Accept\": \"application/json, text/plain, */*\",\n \"Content-Type\": \"application/json\"\n },\n body: JSON.stringify(form)\n }\n )\n .then(() => {\n dispatch(setPage(Pages.INFO_PAGE))\n })\n .then(() => resolve())\n})\n\nexport const holdingSubmit = payload => dispatch => {\n dispatch(\n setProceedFromHolding(true)\n );\n};\n\nexport const cancelSubmit = payload => dispatch => {\n};\n\nexport const updateSignupPage = page => {\n if (page && page != \"\" && page != \"register\"){\n const url = `/hosts/signup/update_page`;\n let form = new FormData();\n form.append(\"page\", page);\n fetch(url, {\n method: \"PATCH\",\n credentials: \"same-origin\",\n headers: {\"X-Requested-With\": \"XMLHttpRequest\"},\n body: form\n });\n }\n};\n\nexport const submitPassword = payload => (dispatch) => {\n let form = new FormData();\n form.append(\"authenticity_token\", payload.authenticity_token);\n form.append(\"password\", payload.password);\n const submit = async() => {\n return await fetch(\"/hosts/signup/set_password\", {\n method: \"PATCH\",\n credentials: \"same-origin\",\n headers: {\"X-Requested-With\": \"XMLHttpRequest\"},\n body: form\n })\n }\n submit()\n .then(handleErrors)\n .then(response => response.json())\n .then(user => {\n dispatch(\n setUser(user)\n );\n })\n}\n\nexport const updateAllVaccinationStatus = payload => (dispatch) => {\n let form = new FormData();\n const authenticityToken = ReactOnRails.authenticityToken();\n\n form.append(\"authenticity_token\", authenticityToken);\n form.append(\"vaccination[state]\", payload);\n\n const submit = async() => {\n return await fetch(\"/residents/update_all_vaccination_status\", {\n method: \"PATCH\",\n credentials: \"same-origin\",\n headers: {\"X-Requested-With\": \"XMLHttpRequest\"},\n body: form\n })\n }\n submit()\n .then(handleErrors)\n .then(response => response.json())\n .then(() => {\n dispatch(fetchResidents());\n })\n}\n","const constants = {\n // new constants\n ACCEPT_TERMS: \"ACCEPT_TERMS\",\n CANCEL_SUBMIT: \"CANCEL_SUBMIT\",\n CONCLUSION_SUBMIT: \"CONCLUSION_SUBMIT\",\n CONTACT_SUBMIT: \"CONTACT_SUBMIT\",\n CULTURAL_BACKGROUND_SUBMIT: \"CULTURAL_BACKGROUND_SUBMIT\",\n DIET_SUBMIT: \"DIET_SUBMIT\",\n GO_BACK: \"GO_BACK\",\n GUEST_PACKAGES_SUBMIT: \"GUEST_PACKAGES_SUBMIT\",\n GUEST_PREFERENCES_SUBMIT: \"GUEST_PREFERENCES_SUBMIT\",\n HOLDING_SUBMIT: \"HOLDING_SUBMIT\",\n HOUSE_SUBMIT: \"HOUSE_SUBMIT\",\n FAMILY_INTERESTS_SUBMIT: \"FAMILY_INTERESTS_SUBMIT\",\n REFERENCES_SUBMIT: \"REFERENCES_SUBMIT\",\n INTERVAL_SUBMIT: \"INTERVAL_SUBMIT\",\n NEXT_PAGE: \"NEXT_PAGE\",\n PAYMENTS_SUBMIT: \"PAYMENTS_SUBMIT\",\n PETS_SUBMIT: \"PETS_SUBMIT\",\n PHOTO_SUBMIT: \"PHOTO_SUBMIT\",\n PROFILE_SUBMIT: \"PROFILE_SUBMIT\",\n REFERRAL_SUBMIT: \"REFERRAL_SUBMIT\",\n REGISTER_USER: \"REGISTER_USER\",\n RESIDENTS_SUBMIT: \"RESIDENTS_SUBMIT\",\n ROOMS_SUBMIT: \"ROOMS_SUBMIT\",\n SET_ACTIVE_PROFILE_ELEMENTS: \"SET_ACTIVE_PROFILE_ELEMENTS\",\n SET_ADDRESS: \"SET_ADDRESS\",\n SET_CONTENT: \"SET_CONTENT\",\n SET_ENVIRONMENT: \"SET_ENVIRONMENT\",\n SET_HOLDING: \"SET_HOLDING\",\n SET_NEXT_PAGE: \"SET_NEXT_PAGE\",\n SET_PAGE: \"SET_PAGE\",\n SET_PAGES: \"SET_PAGES\",\n SET_PREVIOUS_PAGE: \"SET_PREVIOUS_PAGE\",\n SET_PROCEED_FROM_HOLDING: \"SET_PROCEED_FROM_HOLDING\",\n SET_PROFILE_ELEMENTS: \"SET_PROFILE_ELEMENTS\",\n SET_REQUIRED_FIELDS: \"SET_REQUIRED_FIELDS\",\n SET_RESIDENT_VACCINATION_OPTIONS: \"SET_RESIDENT_VACCINATION_OPTIONS\",\n SET_RECAPTCHA_SITE_ID: \"SET_RECAPTCHA_SITE_ID\",\n SET_LOCAL_PROFILE_ELEMENTS: \"SET_LOCAL_PROFILE_ELEMENTS\",\n SET_REGISTERED: \"SET_REGISTERED\",\n SET_RESIDENTS: \"SET_RESIDENTS\",\n SET_REFERRAL_PROGRAM: \"SET_REFERRAL_PROGRAM\",\n REQUEST_PHOTOS: \"REQUEST_PHOTOS\",\n RECEIVE_PHOTOS: \"RECEIVE_PHOTOS\",\n INVALIDATE_PHOTOS: \"INVALIDATE_PHOTOS\",\n REQUEST_RESIDENTS: \"REQUEST_RESIDENTS\",\n RECEIVE_RESIDENTS: \"RECEIVE_RESIDENTS\",\n INVALIDATE_RESIDENTS: \"INVALIDATE_RESIDENTS\",\n REQUEST_HOST: \"REQUEST_HOST\",\n RECEIVE_HOST: \"RECEIVE_HOST\",\n INVALIDATE_HOST: \"INVALIDATE_HOST\",\n REQUEST_ROOMS: \"REQUEST_ROOMS\",\n RECEIVE_ROOMS: \"RECEIVE_ROOMS\",\n INVALIDATE_ROOMS: \"INVALIDATE_ROOMS\",\n SET_TERMS: \"SET_TERMS\",\n SET_TERRITORY: \"SET_TERRITORY\",\n SET_MARKET: \"SET_MARKET\",\n SET_AFFILIATE: \"SET_AFFILIATE\",\n SET_USER: \"SET_USER\",\n SET_AUTHENTICATED_USER: \"SET_AUTHENTICATED_USER\",\n SET_WITHDRAWN: \"SET_WITHDRAWN\",\n SKIP_SUBMIT: \"SKIP_SUBMIT\",\n SMOKING_SUBMIT: \"SMOKING_SUBMIT\",\n WITHDRAW_SUBMIT: \"WITHDRAW_SUBMIT\",\n SET_COMPLETED: \"SET_COMPLETED\",\n COMPLETE_WIZARD: \"COMPLETE_WIZARD\",\n SET_LANGUAGE_OPTIONS: \"SET_LANGUAGE_OPTIONS\",\n SET_ETHNICITY_OPTIONS: \"SET_ETHNICITY_OPTIONS\",\n SET_UPLOAD_PROGRESS: \"SET_UPLOAD_PROGRESS\",\n SET_UPLOAD_STATUS: \"SET_UPLOAD_STATUS\",\n RESET_UPLOAD: \"RESET_UPLOAD\",\n SET_ADDRESS_VALIDATIONS: \"SET_ADDRESS_VALIDATIONS\"\n};\n\nexport default constants;\n","const pages = {\n ADDRESS_PAGE: \"address\",\n CONCLUSION_PAGE: \"conclusion\",\n CONTACT_PAGE: \"contact\",\n CULTURAL_BACKGROUND_PAGE: \"cultural_background\",\n DIET_PAGE: \"diet\",\n GUEST_PACKAGES_PAGE: \"guest_packages\",\n GUEST_PREFERENCES_PAGE: \"guest_preferences\",\n GUEST_INTERACTION_LEVEL_PAGE: \"guest_interaction_level\",\n HOUSE_PAGE: \"house\",\n HOUSE_CONTINUED_PAGE: \"house_continued\",\n HOLDING_PAGE: \"holding\",\n INFO_PAGE: \"info\",\n INTERVAL_PAGE: \"interval\",\n PAYMENTS_PAGE: \"payments\",\n PETS_PAGE: \"pets\",\n PHOTO_PAGE: \"photo\",\n PROFILE_PAGE: \"profile\",\n REFERRAL_PAGE: \"referral\",\n REGISTER_PAGE: \"register\",\n RESIDENTS_PAGE: \"residents\",\n ROOMS_PAGE: \"rooms\",\n SMOKING_PAGE: \"smoking\",\n WITHDRAW_PAGE: \"withdraw\",\n PHONE_VERIFICATION_PAGE: \"phone_verification\",\n FAMILY_INTERESTS_PAGE: \"family_interests\",\n REFERENCES_PAGE: \"references\",\n FIREBASE_DETAILS_PAGE: \"firebase_account_details\",\n FIREBASE_REGISTER_PAGE: \"firebase_register\"\n}\n\nexport default pages\n","import C from '../constants';\nimport P from '../pages';\nimport appReducer from './reducers';\nimport thunk from 'redux-thunk';\nimport { createStore, applyMiddleware } from 'redux';\nimport { setPage, setNextPage, setPreviousPage } from '../actions';\n\nconst pageNavigator = store => next => action => {\n\n let result;\n\n // console.groupCollapsed(`dispatching action => ${action.type}`);\n result = next(action);\n let {\n page,\n pages,\n terms,\n registered,\n content,\n environment,\n nextPage,\n previousPage,\n withdrawn,\n referralProgram,\n language_options,\n ethnicity_options,\n holding,\n affiliate,\n proceedFromHolding,\n territory,\n address\n } = store.getState();\n let next_page, previous_page;\n\n if (page && pages){\n let index = pages.indexOf(page);\n let first_page = pages[0];\n const registerOrAddress = (page == P.REGISTER_PAGE || page == P.ADDRESS_PAGE || page == P.FIREBASE_DETAILS_PAGE)\n\n if (index > -1) {\n next_page = pages[index+1];\n previous_page = pages[index-1];\n }\n\n if (page == P.ADDRESS_PAGE && !registered && address && territory.host_address_check) {\n store.dispatch(setPage(P.REGISTER_PAGE))\n }\n else if (registerOrAddress && !terms && registered && !holding) {\n store.dispatch(\n setPage(P.PHONE_VERIFICATION_PAGE)\n );\n }\n else if (registerOrAddress && !terms && registered && holding) {\n store.dispatch(\n setPage(P.HOLDING_PAGE)\n );\n }\n else if (page == P.HOLDING_PAGE && holding && registered && proceedFromHolding) {\n store.dispatch(\n setPage(P.PHONE_VERIFICATION_PAGE)\n );\n }\n else if (page == P.INFO_PAGE && terms && registered) {\n store.dispatch(\n setPage(first_page)\n );\n }\n else if (page == P.INFO_PAGE && withdrawn && registered) {\n store.dispatch(\n setPage(P.WITHDRAW_PAGE)\n );\n }\n else if (page == P.WITHDRAW_PAGE && !withdrawn && registered) {\n store.dispatch(\n setPage(P.PHONE_VERIFICATION_PAGE)\n );\n }\n else if (page == P.REFERRAL_PAGE && !referralProgram) {\n store.dispatch(\n setPage(P.CONTACT_PAGE)\n );\n }\n else if (page == P.PHONE_VERIFICATION_PAGE && nextPage && registered) {\n store.dispatch(setPage(P.INFO_PAGE))\n }\n else if (nextPage) {\n store.dispatch(\n setNextPage(false)\n );\n store.dispatch(\n setPage(next_page)\n );\n }\n else if (previousPage) {\n store.dispatch(\n setPreviousPage(false)\n );\n store.dispatch(\n setPage(previous_page)\n );\n }\n }\n window.gs = store.getState()\n return result;\n};\n\nexport default createStore(\n appReducer,\n applyMiddleware(thunk,pageNavigator)\n)\n","import C from '../constants'\nimport { combineReducers } from 'redux'\nimport sharedReducers from '../../../shared/reducers'\n\nexport const photos = (\n state = {\n isFetching: false,\n didInvalidate: false,\n items: []\n },\n action\n) => {\n switch (action.type) {\n case C.INVALIDATE_PHOTOS:\n return Object.assign({}, state, {\n didInvalidate: true\n })\n case C.REQUEST_PHOTOS:\n return Object.assign({}, state, {\n isFetching: true,\n didInvalidate: false\n })\n case C.RECEIVE_PHOTOS:\n return Object.assign({}, state, {\n isFetching: false,\n didInvalidate: false,\n items: action.photos,\n lastUpdated: action.receivedAt\n })\n default:\n return state\n }\n}\n\nexport const residents = (\n state = {\n isFetching: false,\n didInvalidate: false,\n items: []\n },\n action\n) => {\n switch (action.type) {\n case C.INVALIDATE_RESIDENTS:\n return Object.assign({}, state, {\n didInvalidate: true\n })\n case C.REQUEST_RESIDENTS:\n return Object.assign({}, state, {\n isFetching: true,\n didInvalidate: false\n })\n case C.RECEIVE_RESIDENTS:\n return Object.assign({}, state, {\n isFetching: false,\n didInvalidate: false,\n items: action.residents,\n lastUpdated: action.receivedAt\n })\n default:\n return state\n }\n}\n\nexport const host = (\n state = {\n isFetching: false,\n didInvalidate: false,\n items: []\n },\n action\n) => {\n switch (action.type) {\n case C.INVALIDATE_HOST:\n return Object.assign({}, state, {\n didInvalidate: true\n })\n case C.REQUEST_HOST:\n return Object.assign({}, state, {\n isFetching: true,\n didInvalidate: false\n })\n case C.RECEIVE_HOST:\n return Object.assign({}, state, {\n ...action.host,\n isFetching: false,\n didInvalidate: false,\n lastUpdated: action.receivedAt\n })\n default:\n return state\n }\n}\n\nexport const rooms = (\n state = {\n isFetching: false,\n didInvalidate: false,\n items: []\n },\n action\n) => {\n switch (action.type) {\n case C.INVALIDATE_ROOMS:\n return Object.assign({}, state, {\n didInvalidate: true\n })\n case C.REQUEST_ROOMS:\n return Object.assign({}, state, {\n isFetching: true,\n didInvalidate: false\n })\n case C.RECEIVE_ROOMS:\n return Object.assign({}, state, {\n isFetching: false,\n didInvalidate: false,\n items: action.rooms,\n lastUpdated: action.receivedAt\n })\n default:\n return state\n }\n}\n\nexport const address = (state = null, action) => (\n action.type == C.SET_ADDRESS ? action.payload : state\n)\n\nexport const addressValidations = (state=null, action) => {\n switch (action.type) {\n case C.SET_ADDRESS_VALIDATIONS:\n return action.payload\n default:\n return state\n }\n}\n\nexport const content = (state=null, action) =>\n (action.type === C.SET_CONTENT) ?\n action.payload :\n state\n\nexport const page = (state=null, action) =>\n (action.type === C.SET_PAGE) ?\n action.payload :\n state\n\nexport const pages = (state=[], action) =>\n (action.type === C.SET_PAGES) ?\n action.payload :\n state;\n\nexport const nextPage = (state=false, action) =>\n (action.type === C.SET_NEXT_PAGE) ?\n action.payload :\n state\n\nexport const previousPage = (state=false, action) =>\n (action.type === C.SET_PREVIOUS_PAGE) ?\n action.payload :\n state\n\nexport const terms = (state=null, action) =>\n (action.type === C.SET_TERMS) ?\n action.payload :\n state\n\nexport const user = (state=null, action) =>\n (action.type === C.SET_USER) ?\n \taction.payload :\n \tstate\n\nexport const holding = (state=false, action) =>\n (action.type === C.SET_HOLDING) ?\n \taction.payload :\n \tstate;\n\nexport const environment = (state=false, action) =>\n (action.type === C.SET_ENVIRONMENT) ?\n \taction.payload :\n \tstate;\n\nexport const proceedFromHolding = (state=false, action) =>\n (action.type === C.SET_PROCEED_FROM_HOLDING) ?\n action.payload :\n state;\n\nexport const profileElements = (state=[], action) =>\n (action.type === C.SET_PROFILE_ELEMENTS) ?\n action.payload :\n state;\n\nexport const requiredFields = (state=[], action) =>\n (action.type === C.SET_REQUIRED_FIELDS) ?\n action.payload :\n state;\n\nexport const localProfileElements = (state=false, action) =>\n (action.type === C.SET_LOCAL_PROFILE_ELEMENTS) ?\n action.payload :\n state;\n\nexport const registered = (state=false, action) =>\n (action.type === C.SET_REGISTERED) ?\n \taction.payload :\n \tstate;\n\nexport const territory = (state=false, action) =>\n (action.type === C.SET_TERRITORY) ?\n \taction.payload :\n \tstate;\n\nexport const market = (state=false, action) =>\n (action.type === C.SET_MARKET) ?\n \taction.payload :\n \tstate;\n\nexport const affiliate = (state=false, action) =>\n (action.type === C.SET_AFFILIATE) ?\n \taction.payload :\n \tstate;\n\nexport const referralProgram = (state=false, action) =>\n (action.type === C.SET_REFERRAL_PROGRAM) ?\n \taction.payload :\n \tstate;\n\nexport const language_options = (state=false, action) =>\n (action.type === C.SET_LANGUAGE_OPTIONS) ?\n \taction.payload :\n \tstate;\n\nexport const ethnicity_options = (state=false, action) =>\n (action.type === C.SET_ETHNICITY_OPTIONS) ?\n \taction.payload :\n \tstate;\n\nexport const activeProfileElements = (state=false, action) =>\n (action.type === C.SET_ACTIVE_PROFILE_ELEMENTS) ?\n \taction.payload :\n \tstate;\n\nexport const withdrawn = (state=false, action) =>\n (action.type === C.SET_WITHDRAWN) ?\n \taction.payload :\n \tstate;\n\nexport const completed = (state=false, action) =>\n (action.type === C.SET_COMPLETED) ?\n \taction.payload :\n \tstate\n\nexport const uploader = (state = {}, action) => {\n switch (action.type) {\n case C.SET_UPLOAD_PROGRESS:\n return { ...state, progress: action.payload.progress }\n case C.SET_UPLOAD_STATUS:\n return { ...state, status: action.payload.status }\n case C.RESET_UPLOAD:\n return {}\n default:\n return state\n }\n}\n\nexport const residentVaccinationOptions = (state=[], action) =>\n (action.type === C.SET_RESIDENT_VACCINATION_OPTIONS) ?\n action.payload :\n state;\n\nexport default combineReducers({\n address,\n addressValidations,\n activeProfileElements,\n content,\n page,\n nextPage,\n previousPage,\n proceedFromHolding,\n profileElements,\n requiredFields,\n localProfileElements,\n environment,\n user,\n holding,\n pages,\n photos,\n registered,\n residents,\n rooms,\n affiliate,\n host,\n territory,\n market,\n terms,\n withdrawn,\n referralProgram,\n language_options,\n ethnicity_options,\n completed,\n uploader,\n residentVaccinationOptions,\n recaptchaSiteId: sharedReducers.recaptchaSiteId,\n vaccinationMandatory: sharedReducers.vaccinationMandatory,\n authenticatedUser: sharedReducers.authenticatedUser\n})\n","import { validator } from './validator';\n\nconst filterElement = (profileElements, element) => {\n let home_present = profileElements.some(profile => profile.kind === element);\n return home_present && profileElements.filter(function (profile) {return profile.kind == element})[0];\n}\nexport const generateProfileElementObject = (profileElements, activeProfileElements, defaultAnswer, element, answer, embeddedAnswer='') => {\n let home = filterElement(profileElements, element);\n let response;\n\n if (home && home.answers[answer] != undefined) {\n if (typeof home.answers[answer] === 'object' && embeddedAnswer != '') {\n response = (home.answers[answer][embeddedAnswer] === undefined) ? defaultAnswer : home.answers[answer][embeddedAnswer];\n } else {\n response = home.answers[answer];\n }\n } else {\n response = defaultAnswer;\n }\n return {\n val: response,\n validationKey: activeProfileElements.includes(answer) ? `profile_elements_${element}_${answer}${isPresent(embeddedAnswer) ? `_${embeddedAnswer}` : ''}` : ''\n }\n};\n\nexport const setProfileElementsFromState = (profileElements, defaultAnswer, element, answer, embeddedAnswer='') => {\n let home = filterElement(profileElements, element);\n let response;\n\n if (home && home.answers[answer] != undefined) {\n if (typeof home.answers[answer] === 'object' && embeddedAnswer != '') {\n response = (home.answers[answer][embeddedAnswer] === undefined) ? defaultAnswer : home.answers[answer][embeddedAnswer];\n } else {\n response = home.answers[answer];\n }\n } else {\n response = defaultAnswer;\n }\n return response;\n};\n\nexport const formatDate = date => {\n if(Date.parse(date)){\n var d = new Date(date),\n month = '' + (d.getMonth() + 1),\n day = '' + d.getDate(),\n year = d.getFullYear();\n if (month.length < 2) month = '0' + month;\n if (day.length < 2) day = '0' + day;\n return [year, month, day].join('-');\n }\n}\n\nexport const buildProfileForm = (schema, profileElements) => {\n let form = {};\n let key, keyType, defaultAnswer;\n\n Object.keys(schema).forEach(function(section) {\n form[section] = {};\n Object.keys(schema[section]).forEach(function(sectionItem) {\n keyType = schema[section][sectionItem];\n key = buildProfileKey(schema, section, sectionItem);\n defaultAnswer = (keyType == 'Array' ? [] : '');\n form[section][key] = setProfileElementsFromState(profileElements, defaultAnswer, section, sectionItem);\n });\n });\n return form;\n};\n\nexport const buildProfileKey = (schema, section, sectionItem) => {\n let keyType = schema[section][sectionItem];\n if (typeof keyType === 'object') keyType = 'Object'\n return String(sectionItem + '|' + keyType);\n};\n\nexport const updateProfileField = (form, schema, section, sectionItem, value) => {\n let key = buildProfileKey(schema, section, sectionItem);\n form[section][key] = value;\n return form;\n};\n\nexport const updateForm = (form, schema, payload) => {\n let value;\n Object.keys(payload).forEach(function(section) {\n Object.keys(payload[section]).forEach(function(sectionItem) {\n value = payload[section][sectionItem];\n form = updateProfileField(form, schema, section, sectionItem, value);\n });\n });\n return form;\n};\n\nexport const setElementValue = (element, value) => {\n let ev = new Event('input', { bubbles: true });\n ev.simulated = true;\n $(element).val(value);\n element.dispatchEvent(ev);\n};\n\nexport const setSelectElementValue = (element, value) => {\n let ev = new Event('change', { bubbles: true });\n ev.simulated = true;\n $(element).val(value);\n element.dispatchEvent(ev);\n}\n\nexport const randomChars = (length) => {\n var result = '';\n var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';\n var charactersLength = characters.length;\n for ( var i = 0; i < length; i++ ) {\n result += characters.charAt(Math.floor(Math.random() * charactersLength));\n }\n return result;\n};\n\nexport const blankOrValue = (val) => {\n return val == undefined ? '' : val;\n}\n\nexport const isPresent = (string) => {\n return typeof string === 'string' && string.trim() !== '';\n}\n\nexport const handleSelection = (original, newSelection) => {\n let newSelectionArray;\n\n if(original.includes(newSelection)) {\n newSelectionArray = original.filter(s => s !== newSelection);\n } else {\n newSelectionArray = [...original, newSelection];\n }\n return newSelectionArray\n}\n\nexport const generateResidentElementObject = (field, resident, householdVaccination = null) => {\n if (field.includes('.')) {\n const [key1, key2] = field.split('.')\n\n if (householdVaccination) {\n return {\n val: householdVaccination,\n validationKey: `residents_${field}`\n }\n }\n\n return {\n val: resident[key1] ? resident[key1][key2] : '',\n validationKey: `residents_${field}`\n }\n } else {\n return {\n val: resident[field] || '',\n validationKey: `residents_${field}`\n }\n }\n}\n\nexport const generateRoomElementObject = (field, room) => {\n return {\n val: room[field] || '',\n validationKey: `rooms_${field}`\n }\n}\n\nexport const changeState = async(component, id, val) => {\n let obj = component.state[id]\n let valid = await validator(val, obj.validationKey, component.props.requiredFields)\n obj.val = val\n obj.valid = valid\n if ('showPopover' in obj) { obj.showPopover = !valid }\n component.setState({[id]: obj});\n}\n\nexport const overEighteenYearsAgo = (dateString) => {\n let eighteen_years_ago = new Date(new Date().getFullYear() - 18, new Date().getMonth(), new Date().getDay())\n let date = new Date(dateString)\n return date ? date < eighteen_years_ago : false\n}\n","import parsePhoneNumber, { AsYouType, isPossiblePhoneNumber, isValidPhoneNumber } from 'libphonenumber-js/max'\nimport moment from 'moment';\nimport store from './store'\nimport { isPresent } from './utilities';\nimport C from './constants';\n\nString.prototype.capitalize = function() {\n return this.charAt(0).toUpperCase() + this.slice(1);\n}\n\nexport const validator = async(value, key, requiredFields) => {\n if ( typeof key != 'string' || !key || !requiredFields[key] ){ return null }\n let valid = false;\n const requiredValidations = requiredFields[key].validations\n const validationKeys = requiredValidations ? Object.keys(requiredValidations) : []\n\n const validateString = async() => {\n let regexp = new RegExp(/^[\\w\\s\\-\\\\,\\/'àâçéèêëîïôûùüÿñæœ]{2,}$/);\n return regexp.test(value);\n }\n\n const validateBoolean = async() => {\n return typeof value === 'boolean'\n }\n\n const validatePassword = async() => {\n let regexp = new RegExp(/^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{8,}$/);\n return regexp.test(value);\n }\n\n const validateName = async() => {\n let regexp = new RegExp(/^[a-zA-Z \\-\\']{2,40}$/); //Letters only, no special characters, spaces permitted, 2-40 character length\n return regexp.test(value);\n }\n\n const validatePhone = async() => {\n const { phone_country_code } = store.getState().territory\n const asYouType = new AsYouType(phone_country_code)\n\n asYouType.input(value)\n\n return asYouType.isValid()\n }\n\n const validatePresence = async() => {\n if (!value) { return false }\n let present;\n switch(typeof value){\n case 'string':\n present = isPresent(value)\n break\n case 'boolean':\n present = true\n break\n default:\n present = value && value.length > 0\n break\n }\n return present\n }\n\n const validatePlace = async () => {\n const { code } = store.getState().territory\n\n if (typeof value === 'object' && code === 'SRSC') {\n const { state, postcode } = value\n\n return new Promise(async(resolve) => {\n let formUrl = `/validate_address.json?state=${state}&postcode=${postcode}`;\n await fetch(formUrl, {\n method: 'GET',\n credentials: 'same-origin',\n headers: {'X-Requested-With': 'XMLHttpRequest'}\n })\n .then(response => response.json())\n .then(data => {\n store.dispatch({\n type: C.SET_ADDRESS_VALIDATIONS,\n payload: data\n })\n\n resolve(data.postcode && data.state)\n })\n })\n }\n\n return isPresent(value)\n }\n\n const validateDate = async() => {\n if (typeof value != 'string'){ return null }\n if (value == null || value == '') { return false }\n const momentDate = moment(value)\n const maxDate = moment().add(3, 'years')\n let conditions = requiredValidations['date']\n let date = new Date(value)\n let latestDate = new Date(conditions.latest_date)\n let earliestDate = new Date(conditions.earliest_date)\n\n if (momentDate.isAfter(maxDate)) {\n $(\"#formgroup-dob\").popover('show');\n return false\n } else if (earliestDate && date < earliestDate) {\n $(\"#formgroup-dob\").popover('show');\n return false\n } else if (latestDate && date > latestDate) {\n $(\"#formgroup-dob\").popover('show');\n return false\n } else {\n $(\"#formgroup-dob\").popover('hide');\n return true\n }\n }\n\n const validateEmailFormat = async() => {\n var regexp = new RegExp(/^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/)\n return regexp.test(value);\n }\n\n const validateEmailUnique = async() => {\n return new Promise(async(resolve) => {\n let formUrl = `/validate_email.json?email=${value}`;\n await fetch(formUrl, {\n method: 'GET',\n credentials: 'same-origin',\n headers: {'X-Requested-With': 'XMLHttpRequest'}\n })\n .then(response => response.json())\n .then(data => resolve(data.valid))\n })\n }\n\n const validate = async() => {\n return new Promise(async(resolve) => {\n if (validationKeys.length > 0){\n for (let key of validationKeys){\n switch(key){\n case 'email_format':\n valid = await validateEmailFormat()\n break;\n case 'email_unique':\n valid = await validateEmailUnique()\n break;\n case 'name':\n valid = await validateName()\n break;\n case 'phone':\n valid = await validatePhone()\n break;\n case 'date':\n valid = await validateDate()\n break;\n case 'string':\n valid = await validateString()\n break;\n case 'boolean':\n valid = await validateBoolean()\n break;\n case 'password':\n valid = await validatePassword()\n break;\n case 'place':\n valid = await validatePlace()\n break;\n default:\n valid = false\n break;\n }\n if (!valid) { break; }\n }\n } else {\n valid = await validatePresence()\n }\n resolve(valid)\n }).then(() => valid)\n }\n\n return await validate()\n}\n\nexport const fieldsToValidate = (state) => {\n return(\n Object.keys(state).filter((key) => {\n return typeof state[key] == 'object' && isPresent(state[key].validationKey)\n })\n )\n}\n\nexport const pageValid = (state, requiredFields) => {\n let valid = true\n fieldsToValidate(state).forEach((field) => {\n let requiresValidation = typeof requiredFields[state[field].validationKey] == 'object'\n if(requiresValidation && state[field].valid != true){\n valid = false\n }\n })\n return valid\n}\n\nexport const executeValidations = (component) => {\n fieldsToValidate(component.state).forEach(async(field) => {\n let valid = await validator(\n component.state[field].val,\n component.state[field].validationKey,\n component.props.requiredFields\n )\n let obj = component.state[field]\n obj.valid = valid\n component.setState({[field]: obj});\n })\n}\n\nexport const shouldValidateProfileElement = (component, element) => {\n return component.props.activeProfileElements.includes(element)\n}\n\nexport const toggleValidations = async(component, validationEnabled, dependentField, id, validationKey) => {\n if (dependentField){\n validationEnabled = validationEnabled && shouldValidateProfileElement(component, dependentField)\n }\n let obj = component.state[id]\n obj.val = validationEnabled ? obj.val : ''\n obj.validationKey = validationEnabled ? validationKey : ''\n obj.valid = validationEnabled ? await validator(obj.val, validationKey, component.props.requiredFields) : ''\n component.setState({[id]: obj});\n}\n","import C from './constants';\n\nexport const setActiveProfileElements = (active_profile_elements) => ({\n type: C.SET_ACTIVE_PROFILE_ELEMENTS,\n payload: active_profile_elements\n})\n\nexport const setAddress = (address) => ({\n type: C.SET_ADDRESS,\n payload: address\n})\n\nexport const setContent = (content) => ({\n type: C.SET_CONTENT,\n payload: content\n})\n\nexport const setEthnicityOptions = (ethnicity_options) => ({\n type: C.SET_ETHNICITY_OPTIONS,\n payload: ethnicity_options\n})\n\nexport const setLanguageOptions = (language_options) => ({\n type: C.SET_LANGUAGE_OPTIONS,\n payload: language_options\n})\n\nexport const setNextPage = (next_page) => ({\n type: C.SET_NEXT_PAGE,\n payload: next_page\n})\n\nexport const setPage = (page) => ({\n type: C.SET_PAGE,\n payload: page\n})\n\nexport const setPages = (pages) => ({\n type: C.SET_PAGES,\n payload: pages\n})\n\nexport const setPreviousPage = (previous_page) => ({\n type: C.SET_PREVIOUS_PAGE,\n payload: previous_page\n})\n\nexport const setProfileElements = (profile_elements) => ({\n type: C.SET_PROFILE_ELEMENTS,\n payload: profile_elements\n})\n\nexport const setRequiredFields = (required_fields) => ({\n type: C.SET_REQUIRED_FIELDS,\n payload: required_fields\n})\n\nexport const setTerritory = (territory) => ({\n type: C.SET_TERRITORY,\n payload: territory\n})\n\nexport const setMarket = (market) => ({\n type: C.SET_MARKET,\n payload: market\n})\n\nexport const setRecaptchaSiteId = (site_id) =>\n ({\n type: C.SET_RECAPTCHA_SITE_ID,\n payload: site_id\n });\n\nexport const setVaccinationMandatory = (vaccination_mandatory) =>\n ({\n type: C.SET_VACCINATION_MANDATORY,\n payload: vaccination_mandatory \n });\n\nexport const setAuthenticatedUser = (authenticatedUser) =>\n ({\n type: C.SET_AUTHENTICATED_USER,\n payload: authenticatedUser\n });\n","import {encrypt} from \"./simpleEncrypt\"\n\nconst generatePublicClientToken = (apiKey, offset, secret) => {\n return encrypt(secret, \"a2xhcgAAAAAAAAAA\", `${apiKey}||${offset}`)\n}\n\nexport { generatePublicClientToken }\n","import React from 'react'\nimport { Route, Redirect } from 'react-router-dom'\nimport { useSelector } from 'react-redux'\n\nconst AddressedRoute = ({ component: Component, ...rest }) => {\n const address = useSelector(state => state.address)\n const territory = useSelector(state => state.territory)\n const userType = window.location.pathname.includes('hosts') ? 'host' : 'guest'\n const signupCheckEnabled = territory[`${userType}_address_check`]\n \n return(\n (\n address || !signupCheckEnabled\n ? \n : \n )} />\n )\n}\n\nexport default AddressedRoute\n","import React, { useState } from 'react'\nimport ReactMarkdown from 'react-markdown';\nimport { Checkbox, ControlLabel, FormGroup, Modal, Button, Well } from 'react-bootstrap';\n\nconst CriticalContract = ({ contract, contractAccepted }) => {\n const [showModal, setShowModal] = useState(false)\n const [accepted, setAccepted] = useState(false)\n const [submitDisabled, setSubmitDisabled] = useState(true)\n\n const handleContractClicked = (e) => {\n if (accepted){\n setAccepted(false)\n contractAccepted(false)\n } else {\n e.preventDefault()\n setShowModal(true)\n }\n }\n\n const checkAllRead = (e) => {\n let target = e.target.scrollHeight - e.target.clientHeight - 20\n if (e.target.scrollTop >= target){\n setSubmitDisabled(false)\n } else {\n setSubmitDisabled(true)\n }\n }\n\n const accept = () => {\n setAccepted(true)\n contractAccepted(true)\n setShowModal(false)\n setSubmitDisabled(true)\n }\n\n const modal = () => (\n setShowModal(false)}>\n \n {contract.title}\n \n \n \n \n accept()}\n disabled={submitDisabled}>\n Accept\n \n \n \n
\n \n
\n
\n
\n )\n\n return(\n <>\n \n { handleContractClicked(e) }}>\n Check here to read and accept our {contract.title}\n \n \n {modal()}\n \n )\n}\n\nexport default CriticalContract\n","import React, { useState, useEffect } from 'react';\nimport { useSelector } from 'react-redux';\nimport FormGroup from 'react-bootstrap/lib/FormGroup';\nimport ReactHtmlParser from 'react-html-parser';\nimport { get } from 'lodash';\n\nconst CustomFormGroup = ({ field, containerStyle, containerClass, extraClass, children, className, ...remainingProps }) => {\n const [topOffset, setTopOffset] = useState('0px')\n const [iconHeight, setIconHeight] = useState('34')\n const [controlLabelHeight, setControlLabelHeight] = useState('30')\n const [marginBottom, setMarginBottom] = useState('0')\n const requiredFields = useSelector(state => state.requiredFields)\n const validationKey = get(field, 'validationKey', null)\n const validationKeyValid = validationKey && (\n typeof validationKey == 'boolean' && validationKey == true ||\n requiredFields[validationKey]\n )\n const container = React.createRef()\n\n useEffect(() => {\n if (!container) { return }\n let cont = $(container.current)\n let newOffset = (cont.outerHeight() / 2) - (iconHeight / 2) - (marginBottom / 2)\n let controlLabelExists = React.Children.toArray(children).filter(c => c.props.bsClass == 'control-label').length > 0\n if (controlLabelExists) { newOffset += (controlLabelHeight / 2) }\n setTopOffset(`${newOffset}px`)\n }, [field])\n\n const valid = () => (\n typeof field.valid === 'boolean' && field.valid\n )\n\n const showAsterisk = () => (\n validationKeyValid\n )\n\n const shouldValidate = () => (\n validationKeyValid &&\n (typeof field.val == 'boolean' || field.val) &&\n typeof field.valid === 'boolean'\n )\n\n const icon = () => {\n let klass = get(field, 'loading', null) ? 'fa-circle-notch fa-spin fa-blue' : ''\n if (shouldValidate()){\n klass = valid() ? 'fa-check-circle' : 'fa-times-circle'\n }\n return(\n {\n if (ele) { ele.style.setProperty('top', topOffset, 'important') }\n }}>\n \n \n )\n }\n\n const formGroupClass = () => {\n let klass = ''\n if (shouldValidate()){\n klass = valid() ? 'has-success' : 'has-error'\n }\n return(`form-group has-feedback ${klass}`)\n }\n\n const validationMessage = () => (\n shouldValidate() &&\n !valid() &&\n
\n { ReactHtmlParser(get(field, `errors.${field.failedValidation}`, '')) }\n
\n )\n\n const profileElementActive = () => {\n let activeProfileElements = get(useSelector(state => state.user), 'guest.type.guest_profile_elements', [])\n return (\n !Object.keys(field).includes('profileElement') ||\n (typeof field.profileElement === 'boolean' && field.profileElement == true) ||\n (typeof field.profileElement === 'string' && activeProfileElements.includes(field.profileElement))\n )\n }\n\n const dependencyMet = () => (\n !Object.keys(field).includes('dependencyMet') ||\n field.dependencyMet()\n )\n\n const fieldActive = () => (\n profileElementActive() && dependencyMet()\n )\n\n const validationLabel = () => (\n validationKeyValid && field.validationLabel\n )\n\n const updatedChildren = () => (\n React.Children.map(children, child => {\n if(!child) { return }\n if(child.props.bsClass != 'control-label'){ return child }\n let asterisk = showAsterisk() ? '*' : ''\n return (\n React.cloneElement(child, {\n children: ReactHtmlParser(`${child.props.children} ${asterisk} ${validationLabel() || ''}`)\n })\n )\n })\n )\n\n return (\n fieldActive() &&\n
\n \n {icon()}\n {updatedChildren()}\n {validationMessage()}\n \n
\n );\n}\nexport default React.memo(CustomFormGroup)\n","import PropTypes from 'prop-types';\nimport { useDispatch } from 'react-redux';\nimport React, { useEffect, useRef, useState } from 'react';\nimport { defaultMessages } from '../../../libs/i18n/default';\nimport { setAuthenticatedUser } from '../../../shared/actions'\nimport FirebaseEmailVerificationSend from './FirebaseEmailVerificationSend'\nimport FirebaseEmailVerificationUpdate from './FirebaseEmailVerificationUpdate'\n\nconst FirebaseEmailVerificationCheck = ({ intl, intl: { formatMessage }, subject, onEmailVerified }) => {\n const dispatch = useDispatch()\n const [timer, setTimer] = useState(0);\n const [resendLocked, setResendLocked] = useState(false)\n const [loading, setLoading] = useState(true)\n const [loadingText, setLoadingText] = useState('Loading')\n const [updating, setUpdating] = useState(false)\n const [error, setError] = useState(null)\n const resendButtonRef = useRef()\n\n const sendGenerateTokenRequest = async () => {\n if (resendLocked) return;\n\n const urlParams = new URLSearchParams(window.location.search);\n\n resendButtonRef.current.classList.add('disabled');\n\n await fetch('/users/generate_verification_token', {\n method: 'post',\n credentials: 'same-origin',\n headers: {\n 'X-Requested-With': 'XMLHttpRequest',\n 'Content-Type': 'application/json',\n 'X-CSRF-Token': document.querySelector('meta[name=\"csrf-token\"]').getAttribute('content')\n },\n body: JSON.stringify({ subject: subject, query: urlParams.toString() })\n })\n\n setTimer(30);\n setResendLocked(true);\n }\n\n useEffect(() => {\n const resendButton = document.getElementById('resendVerification');\n\n resendButtonRef.current = resendButton\n resendButton.addEventListener('click', sendGenerateTokenRequest);\n\n return () => {\n resendButton.removeEventListener('click', sendGenerateTokenRequest);\n };\n }, [])\n\n useEffect(() => {\n const queryString = window.location.search\n const urlParams = new URLSearchParams(queryString)\n const oobCode = urlParams.get('oobCode')\n\n if (!oobCode) {\n setLoading(false)\n sendGenerateTokenRequest()\n } else {\n setLoadingText(formatMessage(defaultMessages.clientFirebaseEmailVerificationVerifying))\n\n fetch('/users/verify_code', {\n method: 'post',\n credentials: 'same-origin',\n headers: {\n 'X-Requested-With': 'XMLHttpRequest',\n 'Content-Type': 'application/json',\n 'X-CSRF-Token': document.querySelector('meta[name=\"csrf-token\"]').getAttribute('content')\n },\n body: JSON.stringify({ code: oobCode })\n }).then(async (resp) => {\n const data = await resp.json()\n\n if (data.success) {\n dispatch(setAuthenticatedUser(data.authenticated_user));\n onEmailVerified()\n } else {\n setLoading(false)\n setError(formatMessage(defaultMessages.clientFirebaseEmailVerificationVerifyFailure))\n }\n })\n }\n }, [])\n\n useEffect(() => {\n if (loading) return\n if (!resendLocked) return\n\n const intervalId = setInterval(() => {\n setTimer(prevTimer => prevTimer - 1);\n }, 1000);\n\n return () => {\n clearInterval(intervalId);\n };\n }, [resendLocked]);\n\n useEffect(() => {\n if (loading) return\n if (timer > 0) return\n\n resendButtonRef.current.classList.remove('disabled');\n setResendLocked(false)\n }, [timer])\n\n return (\n <>\n {updating ? (\n \n ) : (\n \n )}\n \n )\n}\n\nFirebaseEmailVerificationCheck.propTypes = {\n page: PropTypes.string,\n intl: PropTypes.object,\n content: PropTypes.object\n};\n\nexport default FirebaseEmailVerificationCheck;\n","import PropTypes from 'prop-types';\nimport React, { useEffect, useRef } from 'react';\nimport { useSelector } from 'react-redux';\nimport ReactHtmlParser from 'react-html-parser';\nimport { defaultMessages } from '../../../libs/i18n/default';\nimport LoadingSpinner from '../LoadingSpinner';\n\nconst FirebaseEmailVerificationSend = ({\n intl: { formatMessage },\n setUpdating,\n sendGenerateTokenRequest,\n timer,\n error,\n loading,\n loadingText\n}) => {\n const authenticatedUser = useSelector(state => state.authenticatedUser)\n const incorrectEmailRef = useRef()\n const resendButtonRef = useRef()\n\n const updateIncorrectEmail = () => {\n setUpdating(true)\n }\n\n useEffect(() => {\n const resendButton = document.getElementById('resendVerification');\n\n resendButtonRef.current = resendButton\n resendButton.addEventListener('click', sendGenerateTokenRequest);\n\n return () => {\n resendButton.removeEventListener('click', sendGenerateTokenRequest);\n };\n }, [])\n\n useEffect(() => {\n const incorrectEmail = document.getElementById('incorrectEmail');\n\n incorrectEmailRef.current = incorrectEmail\n incorrectEmail.addEventListener('click', updateIncorrectEmail);\n\n return () => {\n incorrectEmail.removeEventListener('click', updateIncorrectEmail);\n };\n }, [])\n\n return (\n <>\n {loading && }\n
\n {error && (\n
\n {error}\n
\n )}\n
\n \n
\n

{formatMessage(defaultMessages.clientFirebaseEmailVerificationHeader)}

\n {ReactHtmlParser(formatMessage(defaultMessages.clientFirebaseEmailVerificationInstructions, { email: authenticatedUser.email }))}\n
\n {ReactHtmlParser(formatMessage(defaultMessages.clientFirebaseEmailVerificationIncorrectEmail))}\n {ReactHtmlParser(formatMessage(defaultMessages.clientFirebaseEmailVerificationResend))}\n {timer > 0 && (\n Resend available in {timer} seconds.\n )}\n
\n \n )\n}\n\nFirebaseEmailVerificationSend.propTypes = {\n page: PropTypes.string,\n intl: PropTypes.object,\n content: PropTypes.object\n};\n\nexport default FirebaseEmailVerificationSend;\n","import PropTypes from 'prop-types';\nimport { useSelector, useDispatch } from 'react-redux';\nimport React, { useRef, useState } from 'react';\nimport { ControlLabel } from 'react-bootstrap';\nimport { setAuthenticatedUser } from '../../../shared/actions'\nimport { defaultMessages } from '../../../libs/i18n/default';\nimport { updateEmail } from '../../lou/auth';\n\nconst FirebaseEmailVerificationUpdate = ({ intl: { formatMessage }, setUpdating, subject }) => {\n const dispatch = useDispatch()\n const authenticatedUser = useSelector(state => state.authenticatedUser)\n const [email, setEmail] = useState(authenticatedUser.email)\n const [password, setPassword] = useState('')\n const [submitting, setSubmitting] = useState(false)\n const [error, setError] = useState(null)\n const [success, setSuccess] = useState(null)\n const errorTimeoutRef = useRef()\n\n const camelize = (str) => {\n return str.replace(/(?:^\\w|[A-Z]|\\b\\w|\\s+)/g, (match, index) => {\n if (+match === 0) return \"\";\n return index === 0 ? match.toLowerCase() : match.toUpperCase();\n });\n };\n\n const onSubmit = async e => {\n e.preventDefault()\n\n setSubmitting(true)\n\n const data = await updateEmail(email, password, subject)\n\n if (data.success) {\n dispatch(setAuthenticatedUser(data.authenticated_user));\n setSuccess(true)\n\n setTimeout(() => {\n setUpdating(false)\n setSubmitting(false)\n }, 4000)\n } else {\n let message;\n\n if (typeof data.message === 'string') {\n setError(data.message)\n } else if (data.message.message.includes('TOO_MANY_ATTEMPTS_TRY_LATER')) {\n message = 'clientErrorsAuthTooManyRequests'\n setError(formatMessage(defaultMessages[message]))\n } else {\n message = `clientErrorsUpdate ${data.message.message.toLowerCase().split('_').join(' ')}`\n message = camelize(message)\n setError(formatMessage(defaultMessages[message]))\n }\n\n setSubmitting(false)\n\n clearTimeout(errorTimeoutRef.current)\n errorTimeoutRef.current = setTimeout(() => {\n setError('')\n }, 5000)\n }\n }\n\n return (\n <>\n
\n

Update your email address

\n
\n {error && (\n
\n {error}\n
\n )}\n {success && (\n
\n {formatMessage(defaultMessages.clientFirebaseEmailVerificationUpdateSuccess)}\n
\n )}\n
\n {formatMessage(defaultMessages.clientCommonEmail)}\n setEmail(e.target.value)}\n style={{ marginBottom: 20 }}\n required\n />\n {formatMessage(defaultMessages.clientCommonConfirmPassword)}\n setPassword(e.target.value)}\n required\n />\n {password && email === authenticatedUser.email && (\n
\n

Please change your email address to be able to update

\n
\n )}\n
\n \n setUpdating(false)}\n disabled={submitting}\n >\n Cancel\n \n
\n \n \n )\n}\n\nFirebaseEmailVerificationUpdate.propTypes = {\n page: PropTypes.string,\n intl: PropTypes.object,\n content: PropTypes.object\n};\n\nexport default FirebaseEmailVerificationUpdate;\n","import React from 'react'\nimport Redirector from '../../bundles/GuestSignUp/routes/Redirector'\nimport ButtonGroup from '../../bundles/GuestSignUp/components/ButtonGroup'\nimport { setPreviousPage } from '../actions'\nimport { useDispatch } from 'react-redux';\n\nexport default ({ page, thisPage, back, skip, submitFunc, disableSubmit, children }) => (\n
\n \n
\n {children}\n \n \n
\n)\n","import React, { useState, useEffect } from 'react';\nimport FormControl from 'react-bootstrap/lib/FormControl';\nimport { defaultMessages } from '../../libs/i18n/default';\nimport { injectIntl } from 'react-intl';\nimport { get } from 'lodash';\n\nconst FormDate = ({ date, intl: { formatMessage }, formDateId, setDate }) => {\n const [formDate, setFormDate] = useState(new Date(date))\n const paddedDate = (d) => (d && String(d).padStart(2, '0'))\n const dateValid = formDate && formDate.toString() != 'Invalid Date'\n const initialDay = dateValid ? formDate.getDate() : ''\n const initialMonth = dateValid ? paddedDate(formDate.getMonth() + 1) : ''\n const initialYear = dateValid ? formDate.getFullYear() : ''\n\n const months = [\n \"January\",\n \"February\",\n \"March\",\n \"April\",\n \"May\",\n \"June\",\n \"July\",\n \"August\",\n \"September\",\n \"October\",\n \"November\",\n \"December\"\n ]\n\n const monthOptions = () => (\n [\n ,\n ...months.map((m, i) => (\n \n ))\n ]\n )\n\n const updateDate = e => {\n e.preventDefault()\n\n try {\n let day = $(`#${formDateId}_day`).val().padStart(2, '0')\n let month = $(`#${formDateId}_month`).val().padStart(2, '0')\n let year = $(`#${formDateId}_year`).val()\n\n let dateString = `${year}-${month}-${day}`;\n setDate(dateString)\n\n if (datesValid(year, month, day)) {\n let date = new Date(year, parseInt(month - 1), day);\n\n if (date == 'Invalid Date') throw new Error()\n\n setFormDate(new Date(date))\n }\n } catch (err) {\n resetDate()\n }\n }\n\n const datesValid = (year, month, day) => (\n validYear(year) &&\n validDay(day) &&\n validMonth(month)\n )\n\n const resetDate = () => {\n setFormDate(null)\n setDate(null)\n }\n\n const validDay = (d) => (\n new RegExp(/^\\d?\\d{1}$/).test(d)\n )\n\n const validYear = (y) => (\n new RegExp(/^\\d{4}$/).test(y)\n )\n\n const validMonth = (m) => (\n new RegExp(/^(1[012]|0?[1-9])$/).test(m)\n )\n\n return (\n
\n \n\n \n {monthOptions()}\n \n\n \n
\n )\n}\n\nexport default injectIntl(FormDate)\n","import React from \"react\";\n\nconst LoadingSpinner = ({ label = 'Loading' }) => {\n return (\n
\n
\n

{label}

\n
\n )\n}\n\nexport default LoadingSpinner\n","import React from 'react'\nimport { useSelector } from 'react-redux';\nimport { signOut } from \"firebase/auth\";\n\nconst Logout = () => {\n const user = useSelector(state => state.user)\n const userExists = user != null && Object.keys(user).length > 0\n\n const handleLogout = (e) => {\n e.preventDefault()\n\n window.location.replace(\"/logout\")\n }\n\n if (!userExists) return <>\n\n return (\n \n )\n}\n\nexport default Logout\n","import React from 'react'\nimport { Route, Redirect } from 'react-router-dom'\nimport { useSelector } from 'react-redux'\n\nconst RegisteredRoute = ({ component: Component, ...rest }) => {\n const registered = useSelector(state => state.registered)\n\n return(\n (\n registered\n ? \n : \n )} />\n )\n}\n\nexport default RegisteredRoute\n","import React from 'react'\nimport styled from 'styled-components'\n\nconst TranslateContainer = styled.div`\n bottom: 0;\n right: 0;\n position: absolute;\n margin: 1em;\n\n @media (max-width: 900px) {\n position: relative;\n text-align: center;\n }\n`\n\nconst Translate = () => (\n \n
\n \n) \n\nexport default Translate\n","import CustomFormGroup from './CustomFormGroup'\nimport Form from './Form'\nimport FormDate from './FormDate'\nimport CriticalContract from './CriticalContract'\n\nexport {\n CustomFormGroup,\n Form,\n FormDate,\n CriticalContract\n}\n","import styled from \"styled-components\"\nimport FormControl from 'react-bootstrap/lib/FormControl';\nimport Button from 'react-bootstrap/lib/Button';\n\nconst AddressContainer = styled.div.attrs(props => ({\n id: \"address-pre-check\"\n}))`\n padding: 1rem 0rem;\n display: flex;\n flex: 1 1 auto;\n`\n\nconst Row = styled.div`\n justify-content: center;\n display: flex;\n`\n\nconst Title = styled.h1`\n #guest_signup>.container &&,\n #host_signup>.container && {\n font-size: 2.5rem;\n margin-top: 3rem;\n }\n color: #074165;\n font-family: 'Lato Black', sans-serif;\n letter-spacing: 0.8px;\n`\n\nconst SubTitle = styled.h2`\n color: #7E95A1;\n font-family: 'Lato Light', sans-serif;\n letter-spacing: 0.4px;\n text-align: center;\n font-size: 2rem;\n`\n\nconst Logo = styled.img`\n max-width: 190px;\n display: inline-block;\n &:last-child{\n padding-left: 3rem;\n }\n`\n\nconst Search = styled(FormControl).attrs(props => ({\n id: 'addressSearch',\n type: \"text\",\n placeholder: \"Search for your street address\"\n}))`\n margin-bottom: 3rem;\n padding: 1rem 1.8rem;\n height: 100%;\n border-color: #AFBBC4;\n &::placeholder {\n color: #AFBBC4;\n }\n`\n\nconst Seperator = styled.hr`\n width: 100%;\n border-color: #D2DADF;\n margin: 3rem 0rem;\n`\n\nconst Help = styled.h3`\n color: #074165;\n font-family: 'Lato', sans-serif;\n letter-spacing: 0.4px;\n text-align: center;\n font-size: 1.9rem;\n margin-bottom: 3rem;\n`\n\nconst Submit = styled.button.attrs(props => ({\n className: \"btn-info btn-fixed-width\",\n type: \"submit\"\n}))`\n && {\n background-color: #D8203E;\n border-color: #D8203E;\n border-radius: 9999px;\n display: block;\n margin: auto;\n padding: 0.7rem;\n }\n &&:hover {\n background-color: #D8203E;\n border-color: #D8203E;\n }\n`\n\nconst Styles = {\n AddressContainer,\n Row,\n Title,\n SubTitle,\n Search,\n Help,\n Seperator,\n Submit,\n Logo,\n}\n\nexport default Styles","const constants = {\n SET_ACTIVE_PROFILE_ELEMENTS: \"SET_ACTIVE_PROFILE_ELEMENTS\",\n SET_ADDRESS: \"SET_ADDRESS\",\n SET_CONTENT: \"SET_CONTENT\",\n SET_ETHNICITY_OPTIONS: \"SET_ETHNICITY_OPTIONS\",\n SET_LANGUAGE_OPTIONS: \"SET_LANGUAGE_OPTIONS\",\n SET_NEXT_PAGE: \"SET_NEXT_PAGE\",\n SET_PAGE: \"SET_PAGE\",\n SET_PAGES: \"SET_PAGES\",\n SET_PREVIOUS_PAGE: \"SET_PREVIOUS_PAGE\",\n SET_PROFILE_ELEMENTS: \"SET_PROFILE_ELEMENTS\",\n SET_REQUIRED_FIELDS: \"SET_REQUIRED_FIELDS\",\n SET_RESIDENT_VACCINATION_OPTIONS: \"SET_RESIDENT_VACCINATION_OPTIONS\",\n SET_VACCINATION_MANDATORY: \"SET_VACCINATION_MANDATORY\",\n SET_TERRITORY: \"SET_TERRITORY\",\n SET_MARKET: \"SET_MARKET\",\n SET_RECAPTCHA_SITE_ID: \"SET_RECAPTCHA_SITE_ID\",\n SET_AUTHENTICATED_USER: \"SET_AUTHENTICATED_USER\"\n};\n\nexport default constants;\n","import { fetchSignInMethodsForEmail } from \"firebase/auth\";\nimport fetch from \"isomorphic-fetch\";\nimport { generatePublicClientToken } from \"../authUtils\"\n\nconst getAdType = () => {\n const queryString = window.location.search\n const urlParams = new URLSearchParams(queryString)\n const googleAd = urlParams.get(\"_gl\")\n const facebookAd = urlParams.get(\"fbclid\")\n\n if (googleAd) return \"google\"\n if (facebookAd) return \"facebook\"\n\n return null\n}\n\nconst postCreateAuthenticatedUser = async (email, password, subject) => {\n const queryString = window.location.search\n const urlParams = new URLSearchParams(queryString)\n const affiliate = urlParams.get(\"affiliate\")\n const adType = getAdType()\n\n return (\n await fetch(\"/users/create_authenticated_user\", {\n method: \"POST\",\n credentials: \"same-origin\",\n headers: {\n \"X-Requested-With\": \"XMLHttpRequest\",\n \"Content-Type\": \"application/json\",\n \"X-CSRF-Token\": document.querySelector(\"meta[name=\\\"csrf-token\\\"]\").getAttribute(\"content\")\n },\n body: JSON.stringify({ email, password, user_kind: subject, affiliate, ad_type: adType })\n })\n )\n}\n\nconst redirectToLogin = (territory, email) => {\n setTimeout(() => {\n const url = new URL(`${territory.sso_domain}/continue`)\n const params = url.searchParams\n\n params.append(\"from\", window.location.href)\n params.append(\"user\", email)\n params.append(\"redirect\", true)\n params.append(\"callback\", true)\n\n window.location.href = url.toString()\n }, 3000)\n}\n\nconst checkForExistingFirebaseUser = async (territory, email) => {\n try {\n const publicToken = generatePublicClientToken(territory.public_client_api_key, territory.current_time, territory.code)\n const response = await fetch(`${territory.public_host_domain}/api/v2/kookie/core/user_records?email=${email}`, {\n method: \"GET\",\n headers: {\n 'X-Requested-With': 'XMLHttpRequest',\n 'Content-Type': 'application/json',\n 'API-KEY': publicToken,\n 'API-VERSION': '2'\n }\n })\n\n if (!response.ok) { return false }\n\n const payload = await response.json()\n const exists = Array.isArray(payload.data) && payload.data.length > 0\n\n return exists\n } catch(e) {\n console.log(e)\n return false\n }\n}\n\nconst updateEmail = async (email, password, subject) => {\n const response = await fetch(\"/users/update_auth_email\", {\n method: \"POST\",\n credentials: \"same-origin\",\n headers: {\n \"X-Requested-With\": \"XMLHttpRequest\",\n \"Content-Type\": \"application/json\",\n \"X-CSRF-Token\": document.querySelector(\"meta[name=\\\"csrf-token\\\"]\").getAttribute(\"content\")\n },\n body: JSON.stringify({ email, password, subject })\n })\n\n if (!response.ok) { return false }\n\n const data = await response.json()\n\n return data\n}\n\nconst checkForExistingHmsUser = async (territory, email) => {\n try {\n const publicToken = generatePublicClientToken(territory.public_client_api_key, territory.current_time, territory.code)\n const response = await fetch(`${territory.public_host_domain}/api/v2/users?email=${email}`, {\n method: \"GET\",\n headers: {\n 'X-Requested-With': 'XMLHttpRequest',\n 'Content-Type': 'application/json',\n 'API-KEY': publicToken,\n 'API-VERSION': '2'\n }\n })\n\n if (!response.ok) { return false }\n\n const payload = await response.json()\n const exists = Array.isArray(payload.data) && payload.data.length > 0\n\n return exists\n } catch(e) {\n console.log(e)\n return false\n }\n}\n\nexport { redirectToLogin, checkForExistingFirebaseUser, checkForExistingHmsUser, postCreateAuthenticatedUser, updateEmail }\n","import P from '../bundles/GuestSignUp/pages'\nimport { isPresent } from './utilities'\nimport store from './store'\n\nconst filterElement = (profileElements, element) => {\n let home_present = profileElements.some(profile => profile.kind === element);\n return home_present && profileElements.filter(function (profile) {return profile.kind == element})[0];\n}\n\nexport const generateProfileElementObject = (defaultAnswer, element, answer, embeddedAnswer='') => {\n const profileElements = store.getState().profileElements\n const activeProfileElements = store.getState().user.guest.type.guest_profile_elements\n let home = filterElement(profileElements, element);\n let response;\n\n if (home && home.answers[answer] != undefined) {\n if (typeof home.answers[answer] === 'object' && embeddedAnswer != '') {\n response = (home.answers[answer][embeddedAnswer] === undefined) ? defaultAnswer : home.answers[answer][embeddedAnswer];\n } else {\n response = home.answers[answer];\n }\n } else {\n response = defaultAnswer;\n }\n return {\n val: response,\n validationKey: activeProfileElements.includes(answer) ? `profile_elements_${element}_${answer}${isPresent(embeddedAnswer) ? `_${embeddedAnswer}` : ''}` : '',\n profileElement: answer\n }\n};\n\nexport const setProfileElementsFromState = (defaultAnswer, element, answer, embeddedAnswer='') => {\n const { profileElements } = store.getState()\n let home = filterElement(profileElements, element);\n let response;\n\n if (home && home.answers[answer] != undefined) {\n if (typeof home.answers[answer] === 'object' && embeddedAnswer != '') {\n response = (home.answers[answer][embeddedAnswer] === undefined) ? defaultAnswer : home.answers[answer][embeddedAnswer];\n } else {\n response = home.answers[answer];\n }\n } else {\n response = defaultAnswer;\n }\n return response;\n};\n\nexport const buildProfileForm = () => {\n const profileElements = store.getState().profileElements\n const schema = store.getState().localProfileElements.schema\n let form = {};\n let key, keyType, defaultAnswer;\n\n Object.keys(schema).forEach(function(section) {\n form[section] = {};\n Object.keys(schema[section]).forEach(function(sectionItem) {\n keyType = schema[section][sectionItem];\n key = buildProfileKey(schema, section, sectionItem);\n defaultAnswer = (keyType == 'Array' ? [] : '');\n form[section][key] = setProfileElementsFromState(defaultAnswer, section, sectionItem);\n });\n });\n return form;\n};\n\nexport const buildProfileKey = (schema, section, sectionItem) => {\n let keyType = schema[section][sectionItem];\n if(typeof keyType === 'object') keyType = 'Object';\n return String(sectionItem + '|' + keyType);\n};\n\nexport const updateProfileField = (form, schema, section, sectionItem, value) => {\n let key = buildProfileKey(schema, section, sectionItem);\n form[section][key] = value;\n return form;\n};\n\nexport const updateForm = (form, payload) => {\n const schema = store.getState().localProfileElements.schema\n let value;\n Object.keys(payload).forEach(function(section) {\n Object.keys(payload[section]).forEach(function(sectionItem) {\n value = payload[section][sectionItem];\n form = updateProfileField(form, schema, section, sectionItem, value);\n })\n })\n return form;\n};\n","import C from './constants'\n\nexport const address = (state = null, action) => (\n action.type == C.SET_ADDRESS ? action.payload : state\n)\n\nexport const content = (state = null, action) => (\n action.type === C.SET_CONTENT\n ? action.payload\n : state\n)\n\nexport const ethnicityOptions = (state=false, action) => (\n action.type === C.SET_ETHNICITY_OPTIONS\n ? action.payload\n : state\n)\n\nexport const languageOptions = (state=false, action) => (\n action.type === C.SET_LANGUAGE_OPTIONS\n ? action.payload\n : state\n)\n\nexport const page = (state = null, action) => (\n action.type === C.SET_PAGE\n ? action.payload\n : state\n)\n\n\nexport const pages = (state = [], action) => (\n action.type === C.SET_PAGES\n ? action.payload\n : state\n)\n\n\nexport const nextPage = (state = false, action) => (\n action.type === C.SET_NEXT_PAGE\n ? action.payload\n : state\n)\n\n\nexport const previousPage = (state = false, action) => (\n action.type === C.SET_PREVIOUS_PAGE\n ? action.payload\n : state\n)\n\nexport const profileElements = (state = [], action) => (\n action.type === C.SET_PROFILE_ELEMENTS\n ? action.payload\n : state\n)\n\nexport const requiredFields = (state = [], action) => (\n action.type === C.SET_REQUIRED_FIELDS\n ? action.payload\n : state\n)\n\nexport const territory = (state=false, action) => (\n action.type === C.SET_TERRITORY\n ? action.payload\n : state\n)\n\nexport const recaptchaSiteId = (state = '', action) =>\n (action.type === C.SET_RECAPTCHA_SITE_ID) ?\n action.payload :\n state;\n\nexport const vaccinationMandatory = (state=[], action) =>\n (action.type === C.SET_VACCINATION_MANDATORY) ?\n action.payload :\n state;\n\nexport const authenticatedUser = (state={}, action) =>\n (action.type === C.SET_AUTHENTICATED_USER) ?\n action.payload :\n state;\n\nexport default {\n address,\n content,\n ethnicityOptions,\n languageOptions,\n nextPage,\n page,\n pages,\n previousPage,\n profileElements,\n requiredFields,\n territory,\n recaptchaSiteId,\n vaccinationMandatory,\n authenticatedUser\n}\n","import CryptoJS from \"crypto-js\";\nimport {Buffer} from \"buffer\";\n\nconst encrypt = (key_text, iv_text, data) => {\n const key = CryptoJS.SHA256(key_text);\n const iv = CryptoJS.enc.Utf8.parse(iv_text);\n const encrypted = CryptoJS.AES.encrypt(data, key, {iv: iv});\n\n return encrypted.ciphertext.toString(CryptoJS.enc.Base64)\n}\n\nconst decrypt = (key_text, iv_text, data) => {\n const key = CryptoJS.SHA256(key_text);\n const iv = CryptoJS.enc.Utf8.parse(iv_text);\n const decrypted = CryptoJS.AES.decrypt({ ciphertext: CryptoJS.enc.Base64.parse(data) }, key, { iv: iv });\n return decrypted.toString(CryptoJS.enc.Utf8);\n}\n\nconst b64enc = (data) => {\n var b = new Buffer.from(data, \"binary\");\n return b.toString(\"base64\");\n}\n\nexport { encrypt, decrypt, b64enc }\n","import guestStore from '../bundles/GuestSignUp/store'\nimport hostStore from '../bundles/HostSignUp/store'\nexport default window.location.pathname.includes('guests/signup') ? guestStore : hostStore\n","const styles = (page, territory) => {\n const userType = window.location.pathname.includes('hosts') ? 'host' : 'guest'\n const background = territory[`${userType}_background`]\n const addressBackground = `/assets/${userType}_address_background.jpg`\n\n const layout = {\n backgroundImage: `url('${page == 'address' ? addressBackground : background}')`\n }\n\n const container = page == 'address'\n ? {\n display: 'flex',\n flexFlow: 'column',\n justifyContent: 'center',\n height: '100%'\n }\n : {}\n\n return { layout, container }\n}\n\nexport default styles\n","import { validator } from './validator';\nimport { get, flatten } from 'lodash';\nimport store from './store';\nimport { defaultMessages } from '../libs/i18n/default';\n\nexport const objVal = (obj, path) => {\n return !!path.split('.').reduce((obj, prop) => {\n return obj && obj[prop] ? obj[prop] : undefined;\n }, obj)\n}\n\nexport const getAge = dateString => {\n var today = new Date();\n var birthDate = new Date(dateString);\n var age = today.getFullYear() - birthDate.getFullYear();\n var m = today.getMonth() - birthDate.getMonth();\n if (m < 0 || (m === 0 && today.getDate() < birthDate.getDate())) {\n age--;\n }\n return age;\n}\n\nexport const formatDate = date => {\n if(Date.parse(date)){\n var d = new Date(date),\n month = '' + (d.getMonth() + 1),\n day = '' + d.getDate(),\n year = d.getFullYear();\n if (month.length < 2) month = '0' + month;\n if (day.length < 2) day = '0' + day;\n return [year, month, day].join('-');\n }\n}\n\nexport const setElementValue = async(element, value, kind = 'input') => (\n await new Promise((resolve) => {\n if (!element) { return resolve() }\n let type = kind == 'input' ? window.HTMLInputElement.prototype : window.HTMLSelectElement.prototype\n let nativeInputValueSetter = Object.getOwnPropertyDescriptor(type, \"value\").set;\n nativeInputValueSetter.call(element, value);\n\n var ev = new Event(kind, { bubbles: true});\n element.dispatchEvent(ev)\n resolve()\n })\n);\n\nexport const randomChars = (length) => {\n var result = '';\n var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz';\n var charactersLength = characters.length;\n for ( var i = 0; i < length; i++ ) {\n result += characters.charAt(Math.floor(Math.random() * charactersLength));\n }\n return result;\n};\n\nexport const blankOrValue = (val) => {\n return val == undefined ? '' : val;\n}\n\nexport const isPresent = (string) => {\n return typeof string === 'string' && string.trim() !== '';\n}\n\nexport const handleSelection = (original, newSelection) => {\n let newSelectionArray;\n\n if(original.includes(newSelection)) {\n newSelectionArray = original.filter(s => s !== newSelection);\n } else {\n newSelectionArray = [...original, newSelection];\n }\n return newSelectionArray\n}\n\nexport const generateResidentElementObject = (field, resident) => {\n return {\n val: resident[field] || '',\n validationKey: `residents_${field}`\n }\n}\n\nexport const generateRoomElementObject = (field, room) => {\n return {\n val: room[field] || '',\n validationKey: `rooms_${field}`\n }\n}\n\nexport const overEighteenYearsAgo = (dateString) => {\n let eighteen_years_ago = new Date(new Date().getFullYear() - 18, new Date().getMonth(), new Date().getDay())\n let date = new Date(dateString)\n return date ? date < eighteen_years_ago : false\n}\n\nconst buildNewObject = async(stateObject, key, val, resetDependentObject = true) => {\n const activeProfileElements = store.getState().user.guest.type.guest_profile_elements\n let newObject = {...stateObject[key]}\n val = resetDependentObject ? val : newObject.val\n let result = await validator(val, newObject.validationKey)\n newObject.val = val\n newObject.valid = get(result, 'valid')\n newObject.failedValidation = get(result, 'failedValidation')\n return newObject\n}\n\nconst dependentFields = (stateObject, key) => (\n Object.keys(stateObject).filter(k => flatten([get(stateObject[k], 'dependentObj', '')]).includes(key))\n)\n\nexport const changeState = async(stateObject, key, val, callback, resetDependentObject = true) => {\n let newObj = await buildNewObject(stateObject, key, val)\n callback({[key]: newObj})\n let newStateObj = {...stateObject, [key]: newObj}\n dependentFields(newStateObj, key).forEach(async(k) => {\n let newDependentObj = await buildNewObject(newStateObj, k, '', resetDependentObject)\n callback({[k]: newDependentObj})\n })\n}\n\nexport const linkRenderer = ({ href, children }) => (\n {children}\n)\n\nexport const yesNoOptions = (formatMessage, useBooleanValues = true) => {\n return(\n <>\n \n \n \n \n )\n}\n\nexport const optionsFromArray = (options, formatMessage, key = 'key') => (\n [\n ,\n ...options.map(f => (\n \n ))\n ]\n)\n\nexport const camelize = (name) => (\n name.replace(/(?:^\\w|[A-Z]|\\b\\w)/g, (word, index) => (\n index === 0 ? word.toLowerCase() : word.toUpperCase()\n )).replace(/\\s+/g, '')\n);\n","import { isPresent } from './utilities'\nimport moment from 'moment';\nimport V from 'validator'\nimport { get } from 'lodash'\nimport store from './store'\n\nString.prototype.capitalize = function() {\n return this.charAt(0).toUpperCase() + this.slice(1);\n}\n\nexport const validator = async (value, key) => {\n if (typeof key == 'boolean' && key == true) {\n return { valid: !!value, failedValidation: null }\n }\n if (typeof value == 'boolean') {\n return { valid: true, failedValidation: null }\n }\n const requiredFields = store.getState().requiredFields\n let valueValid = value != '' && value != undefined && value != null\n let keyValid = key && requiredFields[key]\n if (!valueValid || !keyValid) { return null }\n\n\n let valid = false;\n let failedValidation = null;\n const requiredValidations = requiredFields[key].validations\n const validationKeys = requiredValidations ? Object.keys(requiredValidations) : []\n\n const validateString = () => {\n let regexp = new RegExp(/^[\\w\\s\\-\\\\,\\/'àâçéèêëîïôûùüÿñæœ]{2,}$/);\n return regexp.test(value);\n }\n\n const validateBoolean = () => {\n let validBoolean = (\n typeof value === 'boolean' ||\n (\n typeof value === 'string' &&\n ['true', 'false'].includes(value)\n )\n )\n return validBoolean || null\n }\n\n const validatePassword = () => {\n let regexp = new RegExp(/^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z]).{8,}$/);\n failedValidation = 'password'\n return regexp.test(value);\n }\n\n const validatePlace = () => {\n failedValidation = 'place'\n return isPresent(value)\n }\n\n const validateName = () => {\n let regexp = new RegExp(/^[a-zA-Z \\-\\']{2,40}$/); //Letters only, no special characters, spaces permitted, 2-40 character length\n return regexp.test(value);\n }\n\n const validatePhone = () => {\n return V.isMobilePhone(value)\n }\n\n const validatePresence = () => {\n if (!value) { return false }\n let present;\n switch (typeof value) {\n case 'string':\n present = isPresent(value)\n break\n case 'boolean':\n present = true\n break\n default:\n present = value && value.length > 0\n break\n }\n return present\n }\n\n const validateDate = () => {\n if (typeof value != 'string') { return null }\n if (value == null || value == '') { return false }\n // Check if date is iso8601 format\n const iso8601Date = new RegExp(/^(?:19|20)[0-9]{2}-(?:(?:0[1-9]|1[0-2])-(?:0[1-9]|1[0-9]|2[0-9])|(?:(?!02)(?:0[1-9]|1[0-2])-(?:30))|(?:(?:0[13578]|1[02])-31))$/)\n if (!iso8601Date.test(value)) { return false }\n const momentDate = moment(value)\n const maxDate = moment().add(3, 'years')\n let conditions = requiredValidations['date']\n let date = new Date(value)\n let latestDate = new Date(conditions.latest_date)\n let earliestDate = new Date(conditions.earliest_date)\n\n if (momentDate.isAfter(maxDate)) {\n failedValidation = 'afterMaxDate'\n return false\n } else if (earliestDate && date < earliestDate) {\n failedValidation = 'lessThanMimimum'\n return false\n } else if (latestDate && date > latestDate) {\n failedValidation = 'greaterThanMaximum'\n return false\n } else {\n return true\n }\n }\n\n const validateEmailFormat = () => {\n var regexp = new RegExp(/^(([^<>()\\[\\]\\\\.,;:\\s@\"]+(\\.[^<>()\\[\\]\\\\.,;:\\s@\"]+)*)|(\".+\"))@((\\[[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\.[0-9]{1,3}\\])|(([a-zA-Z\\-0-9]+\\.)+[a-zA-Z]{2,}))$/)\n failedValidation = 'emailFormat'\n return regexp.test(value);\n }\n\n const validateFile = () => (\n value instanceof File\n )\n\n const validateArray = () => {\n let conditions = requiredValidations['array']\n return value.length >= conditions.minimum_size\n }\n\n const validateEmailUnique = () => {\n failedValidation = 'emailUnique'\n return new Promise(async (resolve) => {\n let formUrl = `/validate_email.json?email=${value}`;\n await fetch(formUrl, {\n method: 'GET',\n credentials: 'same-origin',\n headers: { 'X-Requested-With': 'XMLHttpRequest' }\n })\n .then(response => response.json())\n .then(data => {\n resolve(data.valid)\n })\n })\n }\n\n const validate = async () => {\n return await new Promise(async (resolve) => {\n if (validationKeys.length > 0) {\n for (let key of validationKeys) {\n switch (key) {\n case 'email_format':\n valid = await validateEmailFormat()\n break;\n case 'email_unique':\n valid = await validateEmailUnique()\n break;\n case 'name':\n valid = await validateName()\n break;\n case 'phone':\n valid = await validatePhone()\n break;\n case 'date':\n valid = await validateDate()\n break;\n case 'string':\n valid = await validateString()\n break;\n case 'boolean':\n valid = await validateBoolean()\n break;\n case 'password':\n valid = await validatePassword()\n break;\n case 'file':\n valid = await validateFile()\n break;\n case 'place':\n valid = await validatePlace()\n break;\n case 'array':\n valid = await validateArray()\n break;\n default:\n valid = false\n break;\n }\n if (!valid) { break; }\n }\n } else {\n valid = await validatePresence()\n }\n resolve(valid)\n })\n }\n\n return validate().then(valid => ({ valid: valid, failedValidation: failedValidation }))\n}\n\nexport const fieldsToValidate = (state) => {\n const requiredFields = store.getState().requiredFields\n const activeProfileElements = get(store.getState(), 'user.guest.type.guest_profile_elements', [])\n return (\n typeof state == 'object'\n ? Object.keys(state).filter((key) => {\n let field = state[key]\n if (!field || typeof field != 'object') { return false }\n let profileElement = field.profileElement\n let validationKey = field.validationKey\n let validationKeyExists = (typeof validationKey === 'boolean' && validationKey == true) || (validationKey && typeof requiredFields[validationKey] == 'object')\n let fieldActive = (typeof profileElement === 'boolean' && profileElement == true) || (profileElement && activeProfileElements.includes(profileElement))\n let dependencyMet = typeof field.dependencyMet != 'function' || field.dependencyMet(state[field.dependentObj])\n return validationKeyExists && fieldActive && dependencyMet\n })\n : []\n )\n}\n\nexport const pageValid = (state) => (\n fieldsToValidate(state).every((field) => (state[field].valid == true))\n)\n\nexport const executeValidations = (component) => {\n fieldsToValidate(component.state).forEach(async (field) => {\n let result = await validator(\n component.state[field].val,\n component.state[field].validationKey\n )\n let obj = component.state[field]\n obj.valid = get(result, 'valid')\n obj.failedValidation = get(result, 'failedValidation')\n component.setState({ [field]: obj });\n })\n}\n","var map = {\n\t\"./af\": 42786,\n\t\"./af.js\": 42786,\n\t\"./ar\": 30867,\n\t\"./ar-dz\": 14130,\n\t\"./ar-dz.js\": 14130,\n\t\"./ar-kw\": 96135,\n\t\"./ar-kw.js\": 96135,\n\t\"./ar-ly\": 56440,\n\t\"./ar-ly.js\": 56440,\n\t\"./ar-ma\": 47702,\n\t\"./ar-ma.js\": 47702,\n\t\"./ar-ps\": 20315,\n\t\"./ar-ps.js\": 20315,\n\t\"./ar-sa\": 16040,\n\t\"./ar-sa.js\": 16040,\n\t\"./ar-tn\": 37100,\n\t\"./ar-tn.js\": 37100,\n\t\"./ar.js\": 30867,\n\t\"./az\": 31083,\n\t\"./az.js\": 31083,\n\t\"./be\": 9808,\n\t\"./be.js\": 9808,\n\t\"./bg\": 68338,\n\t\"./bg.js\": 68338,\n\t\"./bm\": 67438,\n\t\"./bm.js\": 67438,\n\t\"./bn\": 8905,\n\t\"./bn-bd\": 76225,\n\t\"./bn-bd.js\": 76225,\n\t\"./bn.js\": 8905,\n\t\"./bo\": 11560,\n\t\"./bo.js\": 11560,\n\t\"./br\": 1278,\n\t\"./br.js\": 1278,\n\t\"./bs\": 80622,\n\t\"./bs.js\": 80622,\n\t\"./ca\": 2468,\n\t\"./ca.js\": 2468,\n\t\"./cs\": 5822,\n\t\"./cs.js\": 5822,\n\t\"./cv\": 50877,\n\t\"./cv.js\": 50877,\n\t\"./cy\": 47373,\n\t\"./cy.js\": 47373,\n\t\"./da\": 24780,\n\t\"./da.js\": 24780,\n\t\"./de\": 59740,\n\t\"./de-at\": 60217,\n\t\"./de-at.js\": 60217,\n\t\"./de-ch\": 60894,\n\t\"./de-ch.js\": 60894,\n\t\"./de.js\": 59740,\n\t\"./dv\": 5300,\n\t\"./dv.js\": 5300,\n\t\"./el\": 50837,\n\t\"./el.js\": 50837,\n\t\"./en-au\": 78348,\n\t\"./en-au.js\": 78348,\n\t\"./en-ca\": 77925,\n\t\"./en-ca.js\": 77925,\n\t\"./en-gb\": 22243,\n\t\"./en-gb.js\": 22243,\n\t\"./en-ie\": 46436,\n\t\"./en-ie.js\": 46436,\n\t\"./en-il\": 47207,\n\t\"./en-il.js\": 47207,\n\t\"./en-in\": 44175,\n\t\"./en-in.js\": 44175,\n\t\"./en-nz\": 76319,\n\t\"./en-nz.js\": 76319,\n\t\"./en-sg\": 31662,\n\t\"./en-sg.js\": 31662,\n\t\"./eo\": 92915,\n\t\"./eo.js\": 92915,\n\t\"./es\": 55655,\n\t\"./es-do\": 55251,\n\t\"./es-do.js\": 55251,\n\t\"./es-mx\": 96112,\n\t\"./es-mx.js\": 96112,\n\t\"./es-us\": 71146,\n\t\"./es-us.js\": 71146,\n\t\"./es.js\": 55655,\n\t\"./et\": 5603,\n\t\"./et.js\": 5603,\n\t\"./eu\": 77763,\n\t\"./eu.js\": 77763,\n\t\"./fa\": 76959,\n\t\"./fa.js\": 76959,\n\t\"./fi\": 11897,\n\t\"./fi.js\": 11897,\n\t\"./fil\": 42549,\n\t\"./fil.js\": 42549,\n\t\"./fo\": 94694,\n\t\"./fo.js\": 94694,\n\t\"./fr\": 94470,\n\t\"./fr-ca\": 63049,\n\t\"./fr-ca.js\": 63049,\n\t\"./fr-ch\": 52330,\n\t\"./fr-ch.js\": 52330,\n\t\"./fr.js\": 94470,\n\t\"./fy\": 5044,\n\t\"./fy.js\": 5044,\n\t\"./ga\": 29295,\n\t\"./ga.js\": 29295,\n\t\"./gd\": 2101,\n\t\"./gd.js\": 2101,\n\t\"./gl\": 38794,\n\t\"./gl.js\": 38794,\n\t\"./gom-deva\": 27884,\n\t\"./gom-deva.js\": 27884,\n\t\"./gom-latn\": 23168,\n\t\"./gom-latn.js\": 23168,\n\t\"./gu\": 95349,\n\t\"./gu.js\": 95349,\n\t\"./he\": 24206,\n\t\"./he.js\": 24206,\n\t\"./hi\": 30094,\n\t\"./hi.js\": 30094,\n\t\"./hr\": 30316,\n\t\"./hr.js\": 30316,\n\t\"./hu\": 22138,\n\t\"./hu.js\": 22138,\n\t\"./hy-am\": 11423,\n\t\"./hy-am.js\": 11423,\n\t\"./id\": 29218,\n\t\"./id.js\": 29218,\n\t\"./is\": 90135,\n\t\"./is.js\": 90135,\n\t\"./it\": 90626,\n\t\"./it-ch\": 10150,\n\t\"./it-ch.js\": 10150,\n\t\"./it.js\": 90626,\n\t\"./ja\": 39183,\n\t\"./ja.js\": 39183,\n\t\"./jv\": 24286,\n\t\"./jv.js\": 24286,\n\t\"./ka\": 12105,\n\t\"./ka.js\": 12105,\n\t\"./kk\": 47772,\n\t\"./kk.js\": 47772,\n\t\"./km\": 18758,\n\t\"./km.js\": 18758,\n\t\"./kn\": 79282,\n\t\"./kn.js\": 79282,\n\t\"./ko\": 33730,\n\t\"./ko.js\": 33730,\n\t\"./ku\": 1408,\n\t\"./ku-kmr\": 90563,\n\t\"./ku-kmr.js\": 90563,\n\t\"./ku.js\": 1408,\n\t\"./ky\": 33291,\n\t\"./ky.js\": 33291,\n\t\"./lb\": 36841,\n\t\"./lb.js\": 36841,\n\t\"./lo\": 55466,\n\t\"./lo.js\": 55466,\n\t\"./lt\": 57010,\n\t\"./lt.js\": 57010,\n\t\"./lv\": 37595,\n\t\"./lv.js\": 37595,\n\t\"./me\": 39861,\n\t\"./me.js\": 39861,\n\t\"./mi\": 35493,\n\t\"./mi.js\": 35493,\n\t\"./mk\": 95966,\n\t\"./mk.js\": 95966,\n\t\"./ml\": 87341,\n\t\"./ml.js\": 87341,\n\t\"./mn\": 5115,\n\t\"./mn.js\": 5115,\n\t\"./mr\": 10370,\n\t\"./mr.js\": 10370,\n\t\"./ms\": 9847,\n\t\"./ms-my\": 41237,\n\t\"./ms-my.js\": 41237,\n\t\"./ms.js\": 9847,\n\t\"./mt\": 72126,\n\t\"./mt.js\": 72126,\n\t\"./my\": 56165,\n\t\"./my.js\": 56165,\n\t\"./nb\": 64924,\n\t\"./nb.js\": 64924,\n\t\"./ne\": 16744,\n\t\"./ne.js\": 16744,\n\t\"./nl\": 93901,\n\t\"./nl-be\": 59814,\n\t\"./nl-be.js\": 59814,\n\t\"./nl.js\": 93901,\n\t\"./nn\": 83877,\n\t\"./nn.js\": 83877,\n\t\"./oc-lnc\": 92135,\n\t\"./oc-lnc.js\": 92135,\n\t\"./pa-in\": 15858,\n\t\"./pa-in.js\": 15858,\n\t\"./pl\": 64495,\n\t\"./pl.js\": 64495,\n\t\"./pt\": 89520,\n\t\"./pt-br\": 57971,\n\t\"./pt-br.js\": 57971,\n\t\"./pt.js\": 89520,\n\t\"./ro\": 96459,\n\t\"./ro.js\": 96459,\n\t\"./ru\": 21793,\n\t\"./ru.js\": 21793,\n\t\"./sd\": 40950,\n\t\"./sd.js\": 40950,\n\t\"./se\": 10490,\n\t\"./se.js\": 10490,\n\t\"./si\": 90124,\n\t\"./si.js\": 90124,\n\t\"./sk\": 64249,\n\t\"./sk.js\": 64249,\n\t\"./sl\": 14985,\n\t\"./sl.js\": 14985,\n\t\"./sq\": 51104,\n\t\"./sq.js\": 51104,\n\t\"./sr\": 49131,\n\t\"./sr-cyrl\": 79915,\n\t\"./sr-cyrl.js\": 79915,\n\t\"./sr.js\": 49131,\n\t\"./ss\": 85893,\n\t\"./ss.js\": 85893,\n\t\"./sv\": 98760,\n\t\"./sv.js\": 98760,\n\t\"./sw\": 91172,\n\t\"./sw.js\": 91172,\n\t\"./ta\": 27333,\n\t\"./ta.js\": 27333,\n\t\"./te\": 23110,\n\t\"./te.js\": 23110,\n\t\"./tet\": 52095,\n\t\"./tet.js\": 52095,\n\t\"./tg\": 27321,\n\t\"./tg.js\": 27321,\n\t\"./th\": 9041,\n\t\"./th.js\": 9041,\n\t\"./tk\": 19005,\n\t\"./tk.js\": 19005,\n\t\"./tl-ph\": 75768,\n\t\"./tl-ph.js\": 75768,\n\t\"./tlh\": 89444,\n\t\"./tlh.js\": 89444,\n\t\"./tr\": 72397,\n\t\"./tr.js\": 72397,\n\t\"./tzl\": 28254,\n\t\"./tzl.js\": 28254,\n\t\"./tzm\": 51106,\n\t\"./tzm-latn\": 30699,\n\t\"./tzm-latn.js\": 30699,\n\t\"./tzm.js\": 51106,\n\t\"./ug-cn\": 9288,\n\t\"./ug-cn.js\": 9288,\n\t\"./uk\": 67691,\n\t\"./uk.js\": 67691,\n\t\"./ur\": 13795,\n\t\"./ur.js\": 13795,\n\t\"./uz\": 6791,\n\t\"./uz-latn\": 60588,\n\t\"./uz-latn.js\": 60588,\n\t\"./uz.js\": 6791,\n\t\"./vi\": 65666,\n\t\"./vi.js\": 65666,\n\t\"./x-pseudo\": 14378,\n\t\"./x-pseudo.js\": 14378,\n\t\"./yo\": 75805,\n\t\"./yo.js\": 75805,\n\t\"./zh-cn\": 83839,\n\t\"./zh-cn.js\": 83839,\n\t\"./zh-hk\": 55726,\n\t\"./zh-hk.js\": 55726,\n\t\"./zh-mo\": 99807,\n\t\"./zh-mo.js\": 99807,\n\t\"./zh-tw\": 74152,\n\t\"./zh-tw.js\": 74152\n};\n\n\nfunction webpackContext(req) {\n\tvar id = webpackContextResolve(req);\n\treturn __webpack_require__(id);\n}\nfunction webpackContextResolve(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\te.code = 'MODULE_NOT_FOUND';\n\t\tthrow e;\n\t}\n\treturn map[req];\n}\nwebpackContext.keys = function webpackContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackContext.resolve = webpackContextResolve;\nmodule.exports = webpackContext;\nwebpackContext.id = 46700;"],"names":["_constants2","_interopRequireDefault","require","_pages2","_isomorphicFetch2","_axios2","_formData2","_reactOnRails2","_profileElementHelpers","_utilities","_actions","obj","__esModule","default","handleErrors","response","ok","status","error","Error","statusText","certificateFormSubmit","exports","dispatch","setAddress","setPage","Pages","ADDRESS_PAGE","payload","getState","form","FormData","affiliate","territory","referral","pages","guest_kind","guest_kind_unknown_place","highSchoolGuestType","guest_types","find","t","code","highSchoolStudent","user","guestType","id","append","ReactOnRails","authenticityToken","blankOrValue","firebase_id","email","givenNames","familyName","gender","dob","password","referredFrom","referral_uid","intendedStart","intendedVacate","nationality","weChatId","phone","city","google","coordinates","lat","lng","name","state","postcode","place","async","fetch","method","credentials","headers","body","submitForm","then","json","data","setUser","setProfileElements","profile_elements","setRegistered","guest","type","setPages","filter","p","kind","pagesToSkip","push","includes","token","document","querySelector","getAttribute","JSON","stringify","authenticatedUser","authId","authenticated_user_id","success","message","doseOneOn","doseTwoOn","vaccinationInfoSubmit","setVaccinationInfo","vaccination","certificate","guest_id","attachment","file","setUploadStatus","axios","url","onUploadProgress","progressEvent","percentCompleted","Math","round","loaded","total","setUploadProgress","submit","guestProfileSubmit","page","changePage","Promise","resolve","profileElements","profileForm","buildProfileForm","profileElementsForPage","GUARDIAN_EMERGENCY_PAGE","indexOf","LANGUAGE_NATIONALITY_PAGE","PERSONALITY_PROFILE_PAGE","PETS_CHILDREN_PAGE","MEDICAL_PAGE","PLACEMENT_PAGE","EDUCATION_PAGE","PRODUCT_PAGE","profileSectionToSubmit","reduce","item","authenticity_token","admin","doc_id","doc_type","profile_element_entry","updateForm","profileSubmit","setNextPage","setArrival","formUrl","dietary_requirements","updateProduct","setProduct","existing","departureId","val","pickupId","formMethod","departurePlaceName","departurePlaceId","departureDate","departureTime","departureVesselNo","departureNotes","pickupDate","pickupTime","pickupTransportType","pickupContactType","pickupContactName","pickupContactPhone","pickupNotes","updateDeparture","setDeparture","arrival","setDeparturePickup","pickup","arrivalId","onshore","arrivalPlaceName","arrivalPlaceId","arrivalDate","arrivalTime","arrivalVesselNo","arrivalNotes","pickupPlaceId","pickupPlaceName","pickupPickupTime","updateArrival","setPickup","setOnshore","setCompleted","description","photos","photoId","reducedPhotos","setPreviousPage","C","SET_AFFILIATE","SET_ARRIVAL","arrival_times","SET_ARRIVAL_TIMES","departure","SET_DEPARTURE","departure_pickup","SET_DEPARTURE_PICKUP","completed","SET_COMPLETED","SET_GUEST_KIND","unknown_place","SET_GUEST_KIND_UNKNOWN_PLACE","country_code","SET_COUNTRY_CODE","environment","SET_ENVIRONMENT","SET_GUEST_TYPE","local_profile_elements","SET_LOCAL_PROFILE_ELEMENTS","SET_PICKUP","products","SET_PRODUCTS","product","SET_PRODUCT","SET_REFERRAL","registered","SET_REGISTERED","SET_USER","SET_ONSHORE","vaccination_info","SET_VACCINATION_INFO","vaccination_options","SET_VACCINATION_OPTIONS","SET_UPLOAD_STATUS","progress","SET_UPLOAD_PROGRESS","RESET_UPLOAD","_react","_react2","_reactRedux","_reactIntl","_Button2","_default","_TrackableButton2","injectIntl","ButtonGroup","intl","formatMessage","disableSubmit","submitFunc","back","skip","pressed","setPressed","useState","useSelector","useDispatch","icon","createElement","className","defaultMessages","clientCommonButtonsContinue","submitClick","e","dummyButton","position","style","visibility","text","clientCommonButtonsBack","onClick","marginLeft","disabled","clientCommonButtonsSkip","props","preventDefault","SET_MARKETING_REFERRERS","ARRIVAL_PAGE","COMPLETE_PAGE","DEPARTURE_PAGE","REGISTER_PAGE","FIREBASE_REGISTER_FORM_PAGE","FIREBASE_ACCOUNT_DETAILS_FORM_PAGE","ARRIVAL_PATH","COMPLETE_PATH","DEPARTURE_PATH","EDUCATION_PATH","PERSONALITY_PROFILE_PATH","GUARDIAN_EMERGENCY_PATH","LANGUAGE_NATIONALITY_PATH","MEDICAL_PATH","PETS_CHILDREN_PATH","PLACEMENT_PATH","PRODUCT_PATH","REGISTER_PATH","FIREBASE_REGISTER_PATH","FIREBASE_ACCOUNT_DETAILS_PATH","ADDRESS_PATH","_paths2","_reactRouterDom","Redirector","this_page","redirect","enable_firebase_authentication","redirectPath","Paths","RETURN_LATER_PAGE","RETURN_LATER_PATH","updateSignupPage","Redirect","to","_reducers2","_reduxThunk2","_redux","createStore","appReducer","applyMiddleware","thunk","store","next","action","next_page","previous_page","result","terms","content","nextPage","previousPage","marketing_referrers","language_options","ethnicity_options","territoryId","territoryCode","address","placementEntry","entry","departureTransport","answers","departure_transport","length","included_pages","index","P","guest_address_check","window","gs","localProfileElements","reducers","vaccinationInfo","vaccinationOptions","uploader","combineReducers","sharedReducers","invalidatePhotos","host_id","serviceLevel","updateAvailableProducts","INVALIDATE_PHOTOS","requestPhotos","REQUEST_PHOTOS","receivePhotos","RECEIVE_PHOTOS","receivedAt","Date","now","resetUpload","fetchPhotos","host","shouldFetchPhotos","photo","resident_id","room_id","subject","invalidateRooms","fetchRoomsIfNeeded","invalidateResidents","fetchResidentsIfNeeded","fetchPhotosIfNeeded","i","attachments","pair","entries","console","log","isFetching","didInvalidate","INVALIDATE_RESIDENTS","requestResidents","REQUEST_RESIDENTS","receiveResidents","RECEIVE_RESIDENTS","residents","fetchResidents","shouldFetchResidents","host_resident","resident","requestHost","INVALIDATE_HOST","REQUEST_HOST","receiveHost","RECEIVE_HOST","shouldFetchHost","fetchHost","location","redirect_url","csrf_token","setWithdrawn","INVALIDATE_ROOMS","requestRooms","REQUEST_ROOMS","receiveRooms","RECEIVE_ROOMS","rooms","fetchRooms","shouldFetchRooms","room","setTerms","SET_CONTENT","SET_TERMS","withdrawn","SET_WITHDRAWN","SET_PAGE","SET_PAGES","SET_NEXT_PAGE","SET_PREVIOUS_PAGE","SET_PROFILE_ELEMENTS","required_fields","SET_REQUIRED_FIELDS","resident_vaccination_options","SET_RESIDENT_VACCINATION_OPTIONS","SET_RESIDENTS","setHolding","holding","SET_HOLDING","SET_ADDRESS","setProceedFromHolding","proceed_from_holding","SET_PROCEED_FROM_HOLDING","hostProfileSubmit","referral_program","SET_REFERRAL_PROGRAM","SET_LANGUAGE_OPTIONS","SET_ETHNICITY_OPTIONS","SET_TERRITORY","market","SET_MARKET","active_profile_elements","SET_ACTIVE_PROFILE_ELEMENTS","unit_no","street_no","street_name","post_code","sign_up_method","host_referral_program_active","new_pages","s","assigned_office","marital_status","maritalStatus","lifestyle","set_page","schema","phone_mobile","INFO_PAGE","ACCEPT_TERMS","CANCEL_SUBMIT","CONCLUSION_SUBMIT","CONTACT_SUBMIT","CULTURAL_BACKGROUND_SUBMIT","DIET_SUBMIT","GO_BACK","GUEST_PACKAGES_SUBMIT","GUEST_PREFERENCES_SUBMIT","HOLDING_SUBMIT","HOUSE_SUBMIT","FAMILY_INTERESTS_SUBMIT","REFERENCES_SUBMIT","INTERVAL_SUBMIT","NEXT_PAGE","PAYMENTS_SUBMIT","PETS_SUBMIT","PHOTO_SUBMIT","PROFILE_SUBMIT","REFERRAL_SUBMIT","REGISTER_USER","RESIDENTS_SUBMIT","ROOMS_SUBMIT","SET_RECAPTCHA_SITE_ID","SET_AUTHENTICATED_USER","SKIP_SUBMIT","SMOKING_SUBMIT","WITHDRAW_SUBMIT","COMPLETE_WIZARD","SET_ADDRESS_VALIDATIONS","CONCLUSION_PAGE","CONTACT_PAGE","CULTURAL_BACKGROUND_PAGE","DIET_PAGE","GUEST_PACKAGES_PAGE","GUEST_PREFERENCES_PAGE","GUEST_INTERACTION_LEVEL_PAGE","HOUSE_PAGE","HOUSE_CONTINUED_PAGE","HOLDING_PAGE","INTERVAL_PAGE","PAYMENTS_PAGE","PETS_PAGE","PHOTO_PAGE","PROFILE_PAGE","REFERRAL_PAGE","RESIDENTS_PAGE","ROOMS_PAGE","SMOKING_PAGE","WITHDRAW_PAGE","PHONE_VERIFICATION_PAGE","FAMILY_INTERESTS_PAGE","REFERENCES_PAGE","FIREBASE_DETAILS_PAGE","FIREBASE_REGISTER_PAGE","referralProgram","proceedFromHolding","first_page","registerOrAddress","host_address_check","items","Object","assign","lastUpdated","addressValidations","requiredFields","activeProfileElements","residentVaccinationOptions","recaptchaSiteId","vaccinationMandatory","_validator","filterElement","element","some","profile","setProfileElementsFromState","defaultAnswer","answer","embeddedAnswer","home","undefined","validationKey","isPresent","buildProfileKey","date","parse","d","month","getMonth","day","getDate","year","getFullYear","join","key","keyType","keys","forEach","section","sectionItem","String","updateProfileField","value","ev","Event","bubbles","simulated","$","dispatchEvent","characters","charAt","floor","random","string","trim","original","newSelection","newSelectionArray","field","householdVaccination","key1","key2","split","component","valid","validator","showPopover","setState","dateString","eighteen_years_ago","getDay","_max","_moment2","_store2","prototype","capitalize","this","toUpperCase","slice","requiredValidations","validations","validationKeys","validateString","RegExp","test","validateBoolean","validatePassword","validateName","validatePhone","phone_country_code","asYouType","AsYouType","input","isValid","validatePlace","validateDate","momentDate","moment","maxDate","add","conditions","latestDate","latest_date","earliestDate","earliest_date","isAfter","popover","validateEmailFormat","validateEmailUnique","present","validatePresence","validate","fieldsToValidate","shouldValidateProfileElement","validationEnabled","dependentField","_constants","site_id","vaccination_mandatory","SET_VACCINATION_MANDATORY","_simpleEncrypt","generatePublicClientToken","apiKey","offset","secret","encrypt","_extends","bind","target","arguments","source","hasOwnProperty","call","apply","AddressedRoute","Component","rest","signupCheckEnabled","pathname","Route","render","_reactMarkdown2","_reactBootstrap","CriticalContract","contract","contractAccepted","showModal","setShowModal","accepted","setAccepted","submitDisabled","setSubmitDisabled","checkAllRead","scrollHeight","clientHeight","scrollTop","Fragment","FormGroup","margin","Checkbox","checked","display","onChange","handleContractClicked","title","Modal","show","onHide","Header","closeButton","Title","Body","Well","onScroll","maxHeight","overflow","replace","textAlign","Button","_FormGroup2","_reactHtmlParser2","_lodash","CustomFormGroup","containerStyle","containerClass","extraClass","children","remainingProps","topOffset","setTopOffset","iconHeight","setIconHeight","controlLabelHeight","setControlLabelHeight","marginBottom","setMarginBottom","get","validationKeyValid","container","React","createRef","useEffect","newOffset","current","outerHeight","Children","toArray","c","bsClass","shouldValidate","profileElementActive","profileElement","dependencyMet","ref","formGroupClass","klass","marginRight","ele","setProperty","map","child","asterisk","cloneElement","ReactHtmlParser","validationLabel","failedValidation","memo","_FirebaseEmailVerificationSend2","_FirebaseEmailVerificationUpdate2","FirebaseEmailVerificationCheck","onEmailVerified","timer","setTimer","resendLocked","setResendLocked","loading","setLoading","loadingText","setLoadingText","updating","setUpdating","setError","resendButtonRef","useRef","sendGenerateTokenRequest","urlParams","URLSearchParams","search","classList","query","toString","resendButton","getElementById","addEventListener","removeEventListener","queryString","oobCode","clientFirebaseEmailVerificationVerifying","resp","setAuthenticatedUser","authenticated_user","clientFirebaseEmailVerificationVerifyFailure","intervalId","setInterval","prevTimer","clearInterval","remove","_LoadingSpinner2","FirebaseEmailVerificationSend","incorrectEmailRef","updateIncorrectEmail","incorrectEmail","label","clientFirebaseEmailVerificationHeader","clientFirebaseEmailVerificationInstructions","clientFirebaseEmailVerificationIncorrectEmail","clientFirebaseEmailVerificationResend","_auth","FirebaseEmailVerificationUpdate","setEmail","setPassword","submitting","setSubmitting","setSuccess","errorTimeoutRef","clientFirebaseEmailVerificationUpdateSuccess","onSubmit","updateEmail","setTimeout","toLowerCase","match","clearTimeout","ControlLabel","clientCommonEmail","required","clientCommonConfirmPassword","placeholder","clientFirebaseEmailVerificationPlaceholdersPasswordEnter","color","_Redirector2","_ButtonGroup2","thisPage","_FormControl2","FormDate","formDateId","setDate","formDate","setFormDate","dateValid","initialDay","initialMonth","padStart","initialYear","months","updateDate","datesValid","parseInt","err","resetDate","validYear","validDay","validMonth","y","m","clientComponentsDateFormDateDay","defaultValue","maxLength","width","padding","componentClass","clientComponentsDateFormDateYear","LoadingSpinner","Logout","userExists","handleLogout","RegisteredRoute","TranslateContainer","styled","div","Translate","_CustomFormGroup2","_Form2","_FormDate2","_CriticalContract2","Form","_styledComponents2","AddressContainer","attrs","Row","h1","SubTitle","h2","Logo","img","Search","FormControl","Seperator","hr","Styles","Help","h3","Submit","button","_isomorphicFetch","_authUtils","redirectToLogin","URL","sso_domain","params","searchParams","href","publicToken","public_client_api_key","current_time","public_host_domain","Array","isArray","adType","getAdType","googleAd","facebookAd","user_kind","ad_type","guest_profile_elements","ethnicityOptions","languageOptions","_cryptoJs","_cryptoJs2","_buffer","key_text","iv_text","CryptoJS","SHA256","iv","enc","Utf8","AES","ciphertext","Base64","decrypt","Buffer","from","_store4","guestStore","hostStore","styles","userType","background","layout","backgroundImage","flexFlow","justifyContent","height","_store","path","prop","today","birthDate","age","HTMLInputElement","HTMLSelectElement","getOwnPropertyDescriptor","set","buildNewObject","stateObject","resetDependentObject","newObject","callback","newObj","newStateObj","dependentFields","k","flatten","newDependentObj","useBooleanValues","clientCommonYesNo","clientCommonAffirmative","clientCommonNegative","options","clientCommonSelectsSelect","f","word","_validator2","valueValid","keyValid","regexp","validateArray","minimum_size","V","isMobilePhone","File","validationKeyExists","fieldActive","dependentObj","every","webpackContext","req","webpackContextResolve","__webpack_require__","o","module"],"sourceRoot":""}