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N,GAAG,OAAOM,EAAEG,KAAK,MAAK,kBAAkBhO,EAAEsQ,MAAM,CAACC,WAAW,yBAAyBC,eAAe,UAAUC,kBAAkBlD,EAAEmD,qBAAqB,EAAEC,eAAe,MAAMC,YAAY5Q,EAAE6Q,gBAAgBC,kBAAiB,EAAGC,SAAS/Q,EAAEgR,eAAe,GAAE,CAAC,SAASsB,EAAEtS,EAAEuN,GAAG,OAAOM,EAAEG,KAAK,MAAK,kBAAkBhO,EAAEsQ,MAAM,CAACC,WAAW,yBAAyBC,eAAe,UAAUC,kBAAkBlD,EAAEmD,qBAAqB,EAAEC,eAAe,MAAMC,YAAY5Q,EAAE6Q,gBAAgBC,kBAAiB,EAAGC,SAAS/Q,EAAEgR,eAAe,GAAE,CAAC,SAASuB,EAAGvS,EAAEuN,EAAEG,GAAG,OAAOG,EAAEG,KAAK,MAAK,kBAAkBhO,EAAEsQ,MAAM,CAACC,WAAW,oBAAoBC,eAAe,UAAUC,kBAAkBlD,EAAEmD,qBAAqB,EAAEC,eAAe,MAAMC,YAAY5Q,EAAE6Q,gBAAgBC,kBAAiB,EAAGC,SAAS/Q,EAAEgR,cAAcC,sBAAsB,CAACuB,eAAe9E,EAAE+E,cAAcC,kBAAkBhF,EAAEiF,iBAAiBC,mBAAmBlF,EAAEmF,mBAAmB,GAAE,CAAC,SAASC,EAAG9S,EAAEuN,GAAG,OAAOM,EAAEG,KAAK,MAAK,kBAAkBhO,EAAEsQ,MAAM3C,EAAE,CAAC4C,WAAW,oBAAoBC,eAAe,UAAUC,kBAAkBlD,EAAEmD,qBAAqB,EAAEC,eAAe,MAAMC,YAAY5Q,EAAE6Q,gBAAgBC,kBAAiB,EAAGC,SAAS/Q,EAAEgR,eAAehR,EAAEgS,eAAe,GAAE,C","sources":["webpack://Oneflare/./client/app/shared/components/PhoneTextField/styled/PhoneTextField.js","webpack://Oneflare/./client/app/shared/components/PhoneTextField/PhoneTextField.jsx","webpack://Oneflare/./client/app/site/Registration/components/styled/Registration.js","webpack://Oneflare/./client/app/shared/services/signup.js","webpack://Oneflare/./client/app/site/Registration/components/RegistrationForm.jsx","webpack://Oneflare/./client/app/site/Registration/index.jsx","webpack://Oneflare/./client/app/packs/registration.js","webpack://Oneflare/./client/app/shared/components/EmailTextField/styled/EmailTextField.js","webpack://Oneflare/./client/app/shared/components/EmailTextField/EmailTextField.jsx","webpack://Oneflare/./client/app/shared/constants/endpoints.js","webpack://Oneflare/./client/app/shared/services/validateEmail.js","webpack://Oneflare/./client/app/shared/services/validatePhoneNumber.js","webpack://Oneflare/./client/app/shared/utils/buildApiUrl.js","webpack://Oneflare/./client/app/shared/utils/fetch.js","webpack://Oneflare/./client/app/shared/utils/oneflareAnalytics/trackPageView.js","webpack://Oneflare/./client/app/shared/utils/oneflareAnalytics/trackUserActions.js","webpack://Oneflare/./client/app/site/BusinessRegistration/constants/validationErrors.js","webpack://Oneflare/./node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.js","webpack://Oneflare/./node_modules/@babel/runtime/helpers/esm/asyncToGenerator.js","webpack://Oneflare/./node_modules/@babel/runtime/helpers/esm/slicedToArray.js","webpack://Oneflare/./node_modules/@babel/runtime/helpers/esm/arrayWithHoles.js","webpack://Oneflare/./node_modules/@babel/runtime/helpers/esm/iterableToArrayLimit.js","webpack://Oneflare/./node_modules/@babel/runtime/helpers/esm/nonIterableRest.js","webpack://Oneflare/./node_modules/@babel/runtime/helpers/esm/taggedTemplateLiteral.js","webpack://Oneflare/./node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.js","webpack://Oneflare/./node_modules/@oneflare/web-analytics/output.mjs"],"sourcesContent":["import styled from 'styled-components';\nimport {\n Textfield,\n Success\n} from '@oneflare/flarekit';\n\nexport const TextFieldStyled = styled(Textfield)`\n margin-bottom: ${ ( {theme} ) => theme.spacing.sm };\n`;\n\nexport const SuccessStyled = styled(Success).attrs(({theme}) => ({\n fill: theme.color.success,\n kind: 'solid'\n}))``;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport * as validationErrors from '../../../site/BusinessRegistration/constants/validationErrors';\nimport validatePhoneNumber from '../../services/validatePhoneNumber';\n\nimport { Loader } from '@oneflare/flarekit';\nimport {\n\tSuccessStyled,\n\tTextFieldStyled\n} from './styled/PhoneTextField';\n\nconst PhoneTextField = ({\n name,\n phone = { value: '', error: '', validated: false, validating: false },\n updatePhone = () => {},\n onFocus = () => {}\n }) => {\n const handlePhoneInvalid = () => {\n updatePhone({\n ...phone,\n error: validationErrors.USER_PHONE_INVALID,\n validating: false\n });\n };\n\n const handlePhoneExists = () => {\n updatePhone({\n ...phone,\n error: validationErrors.USER_PHONE_EXISTS,\n validating: false\n });\n };\n\n const validatePhoneInput = async () => {\n if (!phone.value) return;\n\n updatePhone({ ...phone, validated: false, validating: true });\n\n try {\n const data = await validatePhoneNumber(phone.value, true, 'v6');\n\n if (data.phone_exists) {\n handlePhoneExists();\n } else if (data.valid_phone) {\n updatePhone({ ...phone, error: '', validated: true, validating: false });\n } else {\n handlePhoneInvalid();\n }\n } catch {\n handlePhoneInvalid();\n }\n };\n\n const renderIcon = () => {\n if (phone.validating) return ;\n if (phone.value && !phone.error && phone.validated) return ;\n return null;\n };\n\n return (\n updatePhone({ ...phone, value: e.target.value, validating: false, validated: false, error: '' })}\n onFocus={onFocus}\n />\n );\n};\n\nPhoneTextField.propTypes = {\n name: PropTypes.string.isRequired,\n onFocus: PropTypes.func,\n phone: PropTypes.any.isRequired,\n updatePhone: PropTypes.func.isRequired\n};\n\nexport default PhoneTextField;\n","import styled from 'styled-components';\nimport Oneflare from '@oneflare/flarekit/lib/components/logos/2018/Oneflare';\nimport { media } from '@oneflare/flarekit/lib/libs';\nimport { Textfield, Button, Checkbox, Success, AlertContainer } from '@oneflare/flarekit';\n\nexport const FormStyled = styled.form`\n background: white;\n border-radius: 4px;\n margin: auto;\n max-width: 350px;\n min-height: 500px;\n padding: 30px;\n\n ${media.mdUp`\n margin-top: 50px;\n max-width: 450px;\n `}\n`;\n\nexport const H1Styled = styled.h1`\n color: ${({ theme }) => theme.color.charcoal};\n font-size: 18px;\n font-weight: 600;\n text-align: center;\n`;\n\nexport const LogoStyled = styled(Oneflare)`\n display: block;\n height: 30px;\n margin: auto;\n`\nexport const TextFieldStyled = styled(Textfield)`\n margin-bottom: ${( {theme} ) => theme.spacing.sm };\n`;\n\nexport const CheckboxStyled = styled(Checkbox)`\n .Checkbox__label {\n display: flex;\n justify-content: space-between;\n width: 100%;\n }\n\n .Checkbox__label__text {\n flex: 1;\n font-family: ${({ theme }) => theme.font.primaryRegular};\n font-size: 14px;\n }\n`;\n\nexport const ButtonStyled = styled(Button)`\n display: block;\n margin-bottom: ${( {theme} ) => theme.spacing.sm };\n margin-top: ${( {theme} ) => theme.spacing.md };\n padding-left: 0;\n padding-right: 0;\n width: 100%;\n`;\n\nexport const SuccessStyled = styled(Success).attrs(({theme}) => ({\n fill: theme.color.success,\n kind: 'solid'\n}))``;\n\nexport const LinkStyled = styled.p`\n display: block;\n font-size: 12px;\n margin: 0;\n padding: ${( {theme} ) => theme.spacing.xxs };\n text-align: center;\n`;\n\nexport const AlertContainerStyled = styled(AlertContainer)`\n min-width: 300px;\n top: 10px;\n`;","import { error, json } from '../utils/fetch';\n\nconst signUp = (url, registrationFormData, csrfToken) => {\n const headers = new Headers();\n headers.append('X-CSRF-Token', csrfToken);\n\n const settings = {\n method: 'POST',\n body: registrationFormData,\n headers\n };\n return fetch(url, settings)\n .then(json)\n .catch(error);\n};\n\nexport default signUp;\n","import React, { memo } from 'react';\nimport PropTypes from 'prop-types';\nimport { Anchor } from '@oneflare/flarekit';\n\nimport EmailTextField from '../../../shared/components/EmailTextField/EmailTextField';\nimport PhoneTextField from '../../../shared/components/PhoneTextField/PhoneTextField';\nimport { FormStyled, LogoStyled, H1Styled, TextFieldStyled, ButtonStyled, CheckboxStyled, SuccessStyled, LinkStyled, AlertContainerStyled } from './styled/Registration';\nimport { PageType, useTrackPageView } from '../../../shared/utils/oneflareAnalytics/trackPageView';\nimport { useTrackUserActions } from '../../../shared/utils/oneflareAnalytics/trackUserActions';\n\nimport * as validationErrors from '../../BusinessRegistration/constants/validationErrors';\nimport signUp from '../../../shared/services/signup';\n\nconst formPropTypes = {\n acceptingTeamInvitation: PropTypes.bool,\n business: PropTypes.any,\n claimId: PropTypes.string,\n csrfToken: PropTypes.string.isRequired,\n loginUrl: PropTypes.string.isRequired,\n url: PropTypes.string.isRequired\n};\n\nconst RenderForm = ({ csrfToken, url, acceptingTeamInvitation, business, claimId, loginUrl }) => {\n const {trackAction: trackActionInitiated} = useTrackUserActions('SignUpFormInitiated', 'site:SignUpFormInitiated');\n const {trackAction: trackActionCompleted} = useTrackUserActions('SignUpFormCompleted', 'site:SignUpFormCompleted');\n const alertsRef = React.useRef(null);\n const [form, setForm] = React.useState({\n email: {\n value: business.email || '',\n error: '',\n validated: Boolean(business.email),\n validating: false\n },\n name: business.name || null,\n phone: {\n value: '',\n error: '',\n validated: false,\n validating: false\n },\n password: '',\n marketingConsentConfirmed: false\n });\n const [formInteracted, setFormInteracted] = React.useState(false);\n\n const handleFormTouch = () => {\n if (!formInteracted) {\n trackActionInitiated();\n setFormInteracted(true);\n }\n }\n\n const handleSubmit = async (event) => {\n event.preventDefault();\n const formData = new FormData(event.target);\n signUp(url, formData, csrfToken)\n .then((res) => {\n if (res.status === 'ok') {\n trackActionCompleted();\n }\n \n // Result should be handled in redirect_to page\n window.location = res.redirect_to;\n })\n .catch(error => {\n alertsRef.current.error({\n message: error.message\n });\n })\n };\n\n const updateField = (field, value) => {\n setForm((prev) => ({ ...prev, [field]: value }));\n };\n\n const validatePassword = React.useMemo(() => {\n const PASSWORD_MIN_LENGTH = 8;\n return form.password.length < PASSWORD_MIN_LENGTH ? validationErrors.USER_PASSWORD_INVALID : '';\n }, [form.password]);\n\n const validateName = React.useMemo(() => {\n const NAME_REGEX = /[A-Za-z0-9]+/;\n if (form.name === null) return '';\n if (!form.name) return validationErrors.USER_NAME_REQUIRED;\n if (!NAME_REGEX.test(form.name)) return validationErrors.USER_NAME_INVALID;\n return '';\n }, [form.name]);\n\n const validateForm = React.useMemo(() => {\n return (\n !validateName &&\n !validatePassword &&\n form.email.validated &&\n form.phone.validated\n );\n }, [validateName, validatePassword, form.email.validated, form.phone.validated]);\n\n return (\n \n \n \n
\n \n {acceptingTeamInvitation\n ? `Sign up to join ${business.name} team`\n : 'Create a free account'}\n \n
\n \n \n updateField('name', e.target.value)}\n onFocus={handleFormTouch}\n icon={acceptingTeamInvitation || form.name ? : null}\n />\n updateField('email', email)}\n name=\"user[email]\"\n onFocus={handleFormTouch}\n />\n updateField('phone', phone)}\n name=\"user[phone]\"\n onFocus={handleFormTouch}\n />\n : null}\n value={form.password}\n onChange={(e) => updateField('password', e.target.value)}\n onFocus={handleFormTouch}\n />\n updateField('marketingConsentConfirmed', e.target.checked)}\n onFocus={handleFormTouch}\n />\n \n\n\t\t\t\n By registering with Oneflare, you agree to our Privacy Policy & Terms & Conditions.\n\t\t\t\n\t\t\t{!acceptingTeamInvitation && \n Already have an account? Log in\n\t\t\t}\n \n );\n};\n\nRenderForm.propTypes = formPropTypes;\n\nconst RegistrationForm = (props) => {\n useTrackPageView(PageType.SignUp);\n return ;\n};\n\nRegistrationForm.propTypes = formPropTypes;\n\nexport default memo(RegistrationForm);\n","import React from 'react';\nimport app from '../app';\nimport RegistrationForm from './components/RegistrationForm';\n\nconst RegistrationApp = (props, _railsContext) => (\n app()\n);\n\nexport default RegistrationApp;\n","import ReactOnRails from 'react-on-rails';\nimport RegistrationApp from '../site/Registration';\n\nReactOnRails.register({\n RegistrationApp\n});\n","import styled from 'styled-components';\nimport {\n Textfield,\n Success\n} from '@oneflare/flarekit';\n\nexport const TextFieldStyled = styled(Textfield)`\n margin-bottom: ${ ( {theme} ) => theme.spacing.sm };\n`;\n\nexport const SuccessStyled = styled(Success).attrs(({theme}) => ({\n fill: theme.color.success,\n kind: 'solid'\n}))``;\n","import React from 'react';\nimport PropTypes from 'prop-types';\nimport Loader from '@oneflare/flarekit/lib/components/Loader';\nimport * as validationErrors from '../../../site/BusinessRegistration/constants/validationErrors';\nimport validateEmail from '../../services/validateEmail';\n\nimport {\n\tSuccessStyled,\n\tTextFieldStyled\n} from './styled/EmailTextField';\n\nconst EmailTextField = ({ name, email, updateEmail, readOnly, onFocus }) => {\n const handleEmailInvalid = () => {\n updateEmail({\n ...email,\n error: validationErrors.USER_EMAIL_INVALID,\n validating: false\n });\n };\n\n const validateEmailInput = async () => {\n if (!email.value) return;\n\n updateEmail({ ...email, validated: false, validating: true });\n\n try {\n const data = await validateEmail(email.value, true);\n if (data?.valid_email) {\n updateEmail({ ...email, error: '', validated: true, validating: false });\n } else {\n handleEmailInvalid();\n }\n } catch {\n handleEmailInvalid();\n }\n };\n\n const renderIcon = () => {\n if (email.validating) return ;\n if (email.value && !email.error && email.validated) return ;\n return null;\n };\n\n return (\n updateEmail({ ...email, value: e.target.value, validating: false, validated: false, error: '' })}\n onFocus={onFocus}\n />\n );\n};\n\nEmailTextField.propTypes = {\n email: PropTypes.any.isRequired,\n name: PropTypes.string.isRequired,\n onFocus: PropTypes.func,\n readOnly: PropTypes.bool,\n updateEmail: PropTypes.func.isRequired\n};\n\nEmailTextField.defaultProps = {\n email: { value: '', error: '', validated: false, validating: false },\n updateEmail: () => {},\n readOnly: false\n};\n\nexport default EmailTextField;\n","// Name constants after endpoint,\n// if its not a GET request, add action to the end eg: CREATE(POST), SAVE(PATCH|PUT), DELETE\n\n// NOTE: Always add `.json` extension to requests where the request/response is in json\n\n// Account\nexport const ACCOUNT_AUTO_RECHARGE_SAVE = '/account/payments/auto_recharge.json';\nexport const ACCOUNT_FETCH_QUOTING_CREDIT_HISTORY = '/api/v5/account/settings/fetch_quoting_credit_history?page=';\nexport const ACCOUNT_PASSWORD_SAVE = '/api/v5/account/passwords.json';\nexport const ACCOUNT_PAYMENTS = '/api/v5/account/payments?page=';\nexport const ACCOUNT_SETTINGS_SAVE = '/api/v6/account/settings';\nexport const ACCOUNT_LOGIN = '/users/sign_in.json';\nexport const ACCOUNT_RETRY_SUBSCRIPTION_PAYMENT = '/api/v5/account/business/subscriptions/%SUBSCRIPTION_ID%/renew.json';\n\n// Categories\nexport const CATEGORIES_SEARCH = '/api/v5/categories/search.json?search=';\n\n// Facebook\nexport const FACEBOOK_CONNECT = '/account/facebook.json';\n\n// Quote\nexport const QUOTE_FINALISE = '/account/business/jobs/%JOB_SLUG%/quotes/%QUOTE_ID%/finalize';\nexport const QUOTE_NEW = '/account/business/jobs/%JOB_SLUG%/quotes';\nexport const QUOTE_ONE_STEP = '/account/business/jobs/%JOB_SLUG%/quotes/create_final';\nexport const QUOTE_CREATE_DRAFT = '/account/business/jobs/%JOB_SLUG%/quotes/create_draft';\nexport const QUOTE_UPDATE_DRAFT = '/account/business/jobs/%JOB_SLUG%/quotes/%QUOTE_ID%/update_draft';\n\n// Validation\nexport const VALIDATE_ABN = '/api/v5/abn/search.json?abn=';\nexport const VALIDATE_ABN_WITH_BUSINESS_NAME = '/api/v5/abn/search.json?buisness_name=';\nexport const VALIDATE_BUSINESS_NAME = '/businesses/valid_name.json?business_detail[name]=';\nexport const VALIDATE_EMAIL = '/api/v5/validate/email.json?email=';\nexport const VALIDATE_EMAIL_WITHOUT_UNIQUENESS = '/api/v5/validate/email.json?validate_uniqueness=0&email=';\nexport const VALIDATE_PHONE_NUMBER = '/api/v5/users/valid_phone.json?phone=';\nexport const VALIDATE_PHONE_NUMBER_V6 = '/api/v6/validate/phone.json?phone=';\n\n// Business Registration\nexport const USERS_POST = '/api/v5/users.json';\n\n// Jobs\nexport const JOBS_COUNT = '/api/v5/jobs/count.json?';\n\n// Locations\nexport const AUTOCOMPLETE_LOCATIONS_SEARCH = '/api/autocomplete/v1/locations/search';\n\n// Customer\nexport const HIRE_BUSINESS_PUT = '/account/customer/quotes/%QUOTE_ID%/pick';\nexport const QUOTE_REJECT = '/account/customer/quotes/%QUOTE_ID%/reject';\nexport const CUSTOMER_JOB_TRACK = '/account/customer/jobs/%JOB_ID%/quotes/%QUOTE_ID%/tracking';\nexport const CONVERSATION_QUOTES = '/api/v5/account/customer/conversation/quotes';\n\n// Feedback\nexport const FEEDBACK_ADD_EDIT = '/account/customer/jobs/%JOB_SLUG%/feedbacks';\n\n// Bookings\nexport const BOOKING_SCHEDULES = '/api/v1/account/customer/bookings/%BOOKING_ID%/booking_schedules';\n\n// Service types\nexport const SERVICE_TYPES_SEARCH = '/api/v5/autocomplete/service_types/search.json?query=';\n\n// Service areas\nexport const SERVICE_AREAS_SUBURBS_SEARCH = '/api/v5/autocomplete/service_areas/search.json?zone_type=suburb&query=';\nexport const SERVICE_AREAS_ADMIN_PUT = '/api/admin/business/zones.json';\n\n// Messaging\nexport const CREATE_MESSAGE = '/api/v6/account/messages';\nexport const MESSAGE_SEEN = '/api/v6/account/messages/seen';\nexport const SUPPORT_MESSAGE_SEEN = '/api/v6/account/support/messages/seen';\nexport const MESSAGE_SEEN_IN_SUPPORT_INBOX = '/api/admin/support/messages/seen';\nexport const CREATE_SUPPORT_MESSAGE_IN_CUSTOMER_INBOX = '/api/v6/account/support/messages';\nexport const LOAD_OR_CREATE_MESSAGES_IN_SUPPORT_INBOX = '/api/admin/support/messages';\n","import buildApiUrl from '../utils/buildApiUrl';\nimport { error, json, status } from '../utils/fetch';\nimport { VALIDATE_EMAIL, VALIDATE_EMAIL_WITHOUT_UNIQUENESS } from '../constants/endpoints';\n\nconst validateEmail = (email, withoutUniqueness, context) => {\n const url = buildApiUrl(withoutUniqueness ? VALIDATE_EMAIL_WITHOUT_UNIQUENESS : VALIDATE_EMAIL, context);\n return fetch(`${url}${encodeURIComponent(email)}`)\n .then(status)\n .then(json)\n .catch(error);\n};\n\nexport default validateEmail;\n","import buildApiUrl from '../utils/buildApiUrl';\nimport { error, json, status } from '../utils/fetch';\nimport { VALIDATE_PHONE_NUMBER, VALIDATE_PHONE_NUMBER_V6 } from '../constants/endpoints';\n\nconst validatePhoneNumber = (phoneNumber, context, apiVersion = 'v5') => {\n const url = buildApiUrl(apiVersion === 'v6' ? VALIDATE_PHONE_NUMBER_V6 : VALIDATE_PHONE_NUMBER , context);\n return fetch(`${url}${phoneNumber}`)\n .then(status)\n .then(json)\n .catch(error);\n};\n\nexport default validatePhoneNumber;\n","const buildApiUrl = (path) => {\n const { hostname, port, protocol } = window.location;\n const portNumber = !port.length ? '' : `:${port}`;\n return `${protocol}//${hostname}${portNumber}${path}`;\n};\nexport default buildApiUrl;\n","export const error = (err) => Promise.reject(err);\n\nexport const json = (res) => res.json();\n\nexport const status = (res) => {\n if (res.status >= 200 && res.status < 300) {\n return Promise.resolve(res);\n } else { // eslint-disable-line\n return res.json().then((r) => {\n return Promise.reject(new Error(r.error || res.statusText));\n });\n }\n};\n\nexport const serverStatus = (res) => {\n if (res.status >= 200 && res.status < 300) {\n return Promise.resolve(res);\n }\n if (res.status === 404 || res.status === 500) {\n return Promise.reject(new Error('Something went wrong, please try again or call 1300 306 727'));\n }\n return res.json().then((r) => {\n return Promise.reject(new Error(r.error || res.statusText));\n });\n};\n","import { trackLoginPageView, trackMyJobsPageView, trackBusinessRegistrationPageView, trackSignUpPageView } from '@oneflare/web-analytics';\nimport { useEffect } from 'react';\nimport { useAnalyticsTracker } from './analyticsProvider';\n\n/**\n * Enum for page types.\n * @readonly\n * @enum {string}\n */\nconst PageType = Object.freeze({\n Login: 'login',\n MyJobs: 'my-jobs',\n BusinessRegistration: 'business-registration',\n SignUp: 'sign-up'\n});\n\nconst trackingMethods = {\n [PageType.Login]: trackLoginPageView,\n [PageType.MyJobs]: trackMyJobsPageView,\n [PageType.BusinessRegistration]: trackBusinessRegistrationPageView,\n [PageType.SignUp]: trackSignUpPageView\n}\n\nconst TRACK_PAGE_VIEW_CODE_SOURCE = 'useTrackPageView:useEffect';\n\nconst useTrackPageView = (pageType, opts) => {\n const { tracker } = useAnalyticsTracker();\n useEffect(() => {\n const trackPageView = (tracker, opts) => {\n if (!tracker) return;\n if (typeof opts !== 'undefined') {\n return trackingMethods[pageType](tracker, TRACK_PAGE_VIEW_CODE_SOURCE, opts);\n }\n trackingMethods[pageType](tracker,TRACK_PAGE_VIEW_CODE_SOURCE);\n };\n trackPageView(tracker, opts);\n }, [pageType, opts, tracker]);\n};\n\nexport {\n useTrackPageView,\n PageType,\n TRACK_PAGE_VIEW_CODE_SOURCE\n};\n","import { useCallback } from 'react';\nimport { trackBusinessRegistrationFormInitiated, trackBusinessRegistrationFormCompleted, trackLoginCompleted, trackLoginInitiated, trackSignUpFormCompleted, trackSignUpFormInitiated, trackSignUpInitiated } from '@oneflare/web-analytics';\nimport { useAnalyticsTracker } from './analyticsProvider';\n\nconst actionMethods = {\n BusinessRegistrationFormInitiated: trackBusinessRegistrationFormInitiated,\n BusinessRegistrationFormCompleted: trackBusinessRegistrationFormCompleted,\n LoginCompleted: trackLoginCompleted,\n LoginInitiated: trackLoginInitiated,\n SignUpInitiated: trackSignUpInitiated,\n SignUpFormCompleted: trackSignUpFormCompleted,\n SignUpFormInitiated: trackSignUpFormInitiated\n};\n\n/**\n * Register or override a tracking method for a given action type.\n * @param {string} actionType\n * @param {Function} method\n */\nexport const setActionMethod = (actionType, method) => {\n actionMethods[actionType] = method;\n};\n\n/**\n * Example usage: see trackUserActions.test.js\n */\nexport const useTrackUserActions = (actionType, eventCodeSource) => {\n const { tracker } = useAnalyticsTracker();\n const trackAction = useCallback((opts) => {\n const method = actionMethods[actionType];\n if (!method) return;\n if (typeof opts === 'undefined') {\n return method(tracker, eventCodeSource);\n }\n method(tracker, eventCodeSource, opts);\n }, [actionType, eventCodeSource, tracker]);\n return { trackAction };\n};","export const BUSINESS_NAME_INVALID = 'Please enter a valid business name.';\nexport const BUSINESS_NAME_REQUIRED = 'Please enter the name of your business.';\n\nexport const BUSINESS_ABN_INVALID = 'Please enter a valid ABN.';\nexport const BUSINESS_ABN_REQUIRED = 'What is your ABN?';\n\nexport const BUSINESS_CATEGORY_NO_RESULTS = 'Please select a profession from the dropdown.';\nexport const BUSINESS_CATEGORY_REQUIRED = 'What is your profession?';\n\nexport const BUSINESS_LOCATION_NO_RESULTS = 'There were no matches, please enter a valid Australian suburb';\nexport const BUSINESS_LOCATION_INVALID = 'Please select a suburb from the suggestions dropdown';\nexport const BUSINESS_LOCATION_REQUIRED = 'Where are you based?';\n\nexport const USER_NAME_INVALID = 'Please enter a valid name.';\nexport const USER_NAME_REQUIRED = 'What is your name?';\n\nexport const USER_EMAIL_INVALID = 'Please enter a valid email address.';\nexport const USER_EMAIL_REQUIRED = 'What is your email address?';\n\nexport const USER_PHONE_EXISTS = 'A user with this mobile number already exists.';\nexport const USER_PHONE_INVALID = 'Please enter a valid mobile number.';\nexport const USER_PHONE_REQUIRED = 'What is your mobile number?';\nexport const USER_PHONE_USING_PLACEHOLDER_NUMBER = 'We\\'re unable to validate this number, but would really love to help. Call us on 1300 441 593.';\n\nexport const USER_PASSWORD_INVALID = 'Please enter a valid password - at least 8 characters long';\nexport const EXISTING_USER_INVALID_PASSWORD = 'Existing user with invalid password';\n","function _arrayLikeToArray(r, a) {\n (null == a || a > r.length) && (a = r.length);\n for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e];\n return n;\n}\nexport { _arrayLikeToArray as default };","function asyncGeneratorStep(n, t, e, r, o, a, c) {\n try {\n var i = n[a](c),\n u = i.value;\n } catch (n) {\n return void e(n);\n }\n i.done ? t(u) : Promise.resolve(u).then(r, o);\n}\nfunction _asyncToGenerator(n) {\n return function () {\n var t = this,\n e = arguments;\n return new Promise(function (r, o) {\n var a = n.apply(t, e);\n function _next(n) {\n asyncGeneratorStep(a, r, o, _next, _throw, \"next\", n);\n }\n function _throw(n) {\n asyncGeneratorStep(a, r, o, _next, _throw, \"throw\", n);\n }\n _next(void 0);\n });\n };\n}\nexport { _asyncToGenerator as default };","import arrayWithHoles from \"./arrayWithHoles.js\";\nimport iterableToArrayLimit from \"./iterableToArrayLimit.js\";\nimport unsupportedIterableToArray from \"./unsupportedIterableToArray.js\";\nimport nonIterableRest from \"./nonIterableRest.js\";\nfunction _slicedToArray(r, e) {\n return arrayWithHoles(r) || iterableToArrayLimit(r, e) || unsupportedIterableToArray(r, e) || nonIterableRest();\n}\nexport { _slicedToArray as default };","function _arrayWithHoles(r) {\n if (Array.isArray(r)) return r;\n}\nexport { _arrayWithHoles as default };","function _iterableToArrayLimit(r, l) {\n var t = null == r ? null : \"undefined\" != typeof Symbol && r[Symbol.iterator] || r[\"@@iterator\"];\n if (null != t) {\n var e,\n n,\n i,\n u,\n a = [],\n f = !0,\n o = !1;\n try {\n if (i = (t = t.call(r)).next, 0 === l) {\n if (Object(t) !== t) return;\n f = !1;\n } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);\n } catch (r) {\n o = !0, n = r;\n } finally {\n try {\n if (!f && null != t[\"return\"] && (u = t[\"return\"](), Object(u) !== u)) return;\n } finally {\n if (o) throw n;\n }\n }\n return a;\n }\n}\nexport { _iterableToArrayLimit as default };","function _nonIterableRest() {\n throw new TypeError(\"Invalid attempt to destructure non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.\");\n}\nexport { _nonIterableRest as default };","function _taggedTemplateLiteral(e, t) {\n return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, {\n raw: {\n value: Object.freeze(t)\n }\n }));\n}\nexport { _taggedTemplateLiteral as default };","import arrayLikeToArray from \"./arrayLikeToArray.js\";\nfunction _unsupportedIterableToArray(r, a) {\n if (r) {\n if (\"string\" == typeof r) return arrayLikeToArray(r, a);\n var t = {}.toString.call(r).slice(8, -1);\n return \"Object\" === t && r.constructor && (t = r.constructor.name), \"Map\" === t || \"Set\" === t ? Array.from(r) : \"Arguments\" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? arrayLikeToArray(r, a) : void 0;\n }\n}\nexport { _unsupportedIterableToArray as default };","var b=Object.defineProperty,p=Object.defineProperties;var y=Object.getOwnPropertyDescriptors;var _=Object.getOwnPropertySymbols;var l=Object.prototype.hasOwnProperty,w=Object.prototype.propertyIsEnumerable;var d=(e,n,t)=>n in e?b(e,n,{enumerable:!0,configurable:!0,writable:!0,value:t}):e[n]=t,o=(e,n)=>{for(var t in n||(n={}))l.call(n,t)&&d(e,t,n[t]);if(_)for(var t of _(n))w.call(n,t)&&d(e,t,n[t]);return e},r=(e,n)=>p(e,y(n));var i=(e,n,t)=>new Promise((m,c)=>{var v=a=>{try{s(t.next(a))}catch(g){c(g)}},u=a=>{try{s(t.throw(a))}catch(g){c(g)}},s=a=>a.done?m(a.value):Promise.resolve(a.value).then(v,u);s((t=t.apply(e,n)).next())});function C(e,n){return i(this,null,function*(){yield e.track(o({event_name:\"About Us Page View\",event_category:\"About Us Page\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone()},e.getPageData()))})}function f(e,n){return i(this,null,function*(){yield e.track(o({event_name:\"Business Centre View\",event_category:\"Business Centre\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone()},e.getPageData()))})}function P(e,n,t){return i(this,null,function*(){yield e.track(r(o({event_name:\"Business Directory Category Page View\",event_category:\"Business Directory\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone()},e.getPageData()),{additional_properties:{business_directory_category_page:t.businessDirectoryCategoryPage}}))})}function F(e,n,t){return i(this,null,function*(){yield e.track(r(o({event_name:\"Business Directory Location Page View\",event_category:\"Business Directory\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone()},e.getPageData()),{additional_properties:{business_directory_location_page:t.businessDirectoryLocationPage}}))})}function k(e,n){return i(this,null,function*(){yield e.track(o({event_name:\"Business Directory View\",event_category:\"Business Directory\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone()},e.getPageData()))})}function I(e,n,t){return i(this,null,function*(){yield e.track({event_name:\"Business Listing Interacted\",event_category:\"Business Listing\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone(),additional_properties:{interacted_component:t.interactedComponent,business_detail_id:t.businessDetailId,business_primary_category:t.businessPrimaryCategory}})})}function B(e,n,t){return i(this,null,function*(){yield e.track(r(o({event_name:\"Business Profile View\",event_category:\"Business Profile\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone()},e.getPageData()),{additional_properties:{initiated_page:t.initiatedPage,business_detail_id:t.businessDetailId,business_primary_category:t.businessPrimaryCategory}}))})}function O(e,n,t){return i(this,null,function*(){yield e.track({event_name:\"Business Registration Form Completed\",event_category:\"Business Registration\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone(),additional_properties:{business_detail_id:t.businessDetailId,business_profession:t.businessProfession,business_location:t.businessLocation,business_expected_leads:t.businessExpectedLeads,business_marketing_consent_opted_in:t.businessMarketingConsentOptedIn,is_logged_in:t.isLoggedIn}})})}function D(e,n,t){return i(this,null,function*(){yield e.track({event_name:\"Business Registration Form Initiated\",event_category:\"Business Registration\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone(),additional_properties:{is_logged_in:t.isLoggedIn}})})}function R(e,n,t){return i(this,null,function*(){yield e.track({event_name:\"Business Registration Initiated\",event_category:\"Business Registration\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone(),additional_properties:{initiated_page:t.initiatedPage,initiated_section:t.initiatedSection,initiated_cta_text:t.initiatedCtaText,is_logged_in:t.isLoggedIn}})})}function j(e,n){return i(this,null,function*(){yield e.track(o({event_name:\"Business Registration Page View\",event_category:\"Business Registration\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone()},e.getPageData()))})}function V(e,n){return i(this,null,function*(){yield e.track(o({event_name:\"Contact Us Page View\",event_category:\"Contact Us Page\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone()},e.getPageData()))})}function h(e,n,t){return i(this,null,function*(){yield e.track(r(o({event_name:\"Cost Guides View\",event_category:\"Cost Guides\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone()},e.getPageData()),{additional_properties:{cost_guides_sub_page:t.costGuidesSubPage}}))})}function J(e,n,t){return i(this,null,function*(){yield e.track({event_name:\"Experiment Viewed\",event_category:\"Experiment\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!1,timezone:e.getTimeZone(),additional_properties:{experiment_id:t.experimentId,variation_id:t.variationId}})})}function L(e,n,t){return i(this,null,function*(){yield e.track(r(o({event_name:\"Help Centre View\",event_category:\"Help Centre\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone()},e.getPageData()),{additional_properties:{help_centre_sub_page:t.helpCentreSubPage,help_centre_article:t.helpCentreArticle}}))})}function S(e,n){return i(this,null,function*(){yield e.track(o({event_name:\"Homepage View\",event_category:\"Homepage\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone()},e.getPageData()))})}function x(e,n,t){return i(this,null,function*(){yield e.track(r(o({event_name:\"Inspiration Page View\",event_category:\"Inspiration Page\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone()},e.getPageData()),{additional_properties:{inspiration_sub_page:t.inspirationSubPage,inspiration_category:t.inspirationCategory,inspiration_article:t.inspirationArticle}}))})}function Z(e,n,t){return i(this,null,function*(){yield e.track({event_name:\"Job Form Completed\",event_category:\"Job Form\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone(),additional_properties:{job_id:t.jobId,job_form_category_id:t.jobFormCategoryId,job_form_category_name:t.jobFormCategoryName,job_form_postcode:t.jobFormPostcode,job_form_city:t.jobFormCity,is_logged_in:t.isLoggedIn}})})}function z(e,n,t){return i(this,null,function*(){yield e.track({event_name:\"Job Form Date Set\",event_category:\"Job Form\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone(),additional_properties:{date_option:t.dateOption}})})}function U(e,n,t){return i(this,null,function*(){yield e.track({event_name:\"Job Form Details Set\",event_category:\"Job Form\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone(),additional_properties:{further_details_added:t.furtherDetailsAdded,photos_added:t.photosAdded}})})}function A(e,n,t){return i(this,null,function*(){yield e.track({event_name:\"Job Form Exited\",event_category:\"Job Form\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!1,timezone:e.getTimeZone(),additional_properties:{question_id:t.questionId,question_text:t.questionText,job_form_category_id:t.jobFormCategoryId,job_form_category_name:t.jobFormCategoryName,job_form_postcode:t.jobFormPostcode,job_form_city:t.jobFormCity,is_logged_in:t.isLoggedIn}})})}function q(e,n,t){return i(this,null,function*(){yield e.track({event_name:\"Job Form Initiated\",event_category:\"Job Form\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone(),additional_properties:{initiated_page:t.initiatedPage,initiated_section:t.initiatedSection,initiated_cta_text:t.initiatedCtaText,is_logged_in:t.isLoggedIn,job_form_category_id:t.jobFormCategoryId,job_form_category_name:t.jobFormCategoryName,job_form_postcode:t.jobFormPostcode,job_form_city:t.jobFormCity}})})}function G(e,n,t){return i(this,null,function*(){yield e.track({event_name:\"Job Form Location Set\",event_category:\"Job Form\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone(),additional_properties:{job_postcode:t.jobPostcode,job_city:t.jobCity}})})}function H(e,n,t){return i(this,null,function*(){yield e.track({event_name:\"Job Form Question Completed\",event_category:\"Job Form\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone(),additional_properties:{job_form_category_id:t.jobFormCategoryId,job_form_category_name:t.jobFormCategoryName,question_id:t.questionId,question_text:t.questionText,answer_id:t.answerId,answer_text:t.answerText,job_form_step:t.jobFormStep}})})}function E(e,n,t){return i(this,null,function*(){yield e.track({event_name:\"Job Form Question Initiated\",event_category:\"Job Form\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone(),additional_properties:{job_form_category_id:t.jobFormCategoryId,job_form_category_name:t.jobFormCategoryName,question_id:t.questionId,question_text:t.questionText,job_form_step:t.jobFormStep}})})}function N(e,n){return i(this,null,function*(){yield e.track({event_name:\"Login Completed\",event_category:\"Login\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone()})})}function Q(e,n){return i(this,null,function*(){yield e.track({event_name:\"Login Initiated\",event_category:\"Login\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone()})})}function W(e,n){return i(this,null,function*(){yield e.track(o({event_name:\"Login Page View\",event_category:\"Login\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone()},e.getPageData()))})}function M(e,n){return i(this,null,function*(){yield e.track(o({event_name:\"My Jobs Page View\",event_category:\"My Jobs\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone()},e.getPageData()))})}function K(e,n){return i(this,null,function*(){yield e.track(o({event_name:\"Oneflare Business Awards Page View\",event_category:\"Oneflare Business Awards\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone()},e.getPageData()))})}function X(e,n){return i(this,null,function*(){yield e.track(o({event_name:\"Reviews Page View\",event_category:\"Reviews Page\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone()},e.getPageData()))})}function Y(e,n){return i(this,null,function*(){yield e.track({event_name:\"Sign Up Form Completed\",event_category:\"Sign Up\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone()})})}function $(e,n){return i(this,null,function*(){yield e.track({event_name:\"Sign Up Form Initiated\",event_category:\"Sign Up\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone()})})}function ee(e,n,t){return i(this,null,function*(){yield e.track({event_name:\"Sign Up Initiated\",event_category:\"Sign Up\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone(),additional_properties:{initiated_page:t.initiatedPage,initiated_section:t.initiatedSection,initiated_cta_text:t.initiatedCtaText}})})}function te(e,n){return i(this,null,function*(){yield e.track(o({event_name:\"Sign Up Page View\",event_category:\"Sign Up\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone()},e.getPageData()))})}function ne(e,n){return i(this,null,function*(){yield e.track(o({event_name:\"Win Work Guide View\",event_category:\"Win Work Guide\",event_code_source:n,event_schema_version:1,event_platform:\"web\",region_code:e.getRegionCode(),conversion_event:!0,timezone:e.getTimeZone()},e.getPageData()))})}export{C as trackAboutUsPageView,f as trackBusinessCentreView,P as trackBusinessDirectoryCategoryPageView,F as trackBusinessDirectoryLocationPageView,k as trackBusinessDirectoryView,I as trackBusinessListingInteracted,B as trackBusinessProfileView,O as trackBusinessRegistrationFormCompleted,D as trackBusinessRegistrationFormInitiated,R as trackBusinessRegistrationInitiated,j as trackBusinessRegistrationPageView,V as trackContactUsPageView,h as trackCostGuidesView,J as trackExperimentViewed,L as trackHelpCentreView,S as trackHomepageView,x as trackInspirationPageView,Z as trackJobFormCompleted,z as trackJobFormDateSet,U as trackJobFormDetailsSet,A as trackJobFormExited,q as trackJobFormInitiated,G as trackJobFormLocationSet,H as trackJobFormQuestionCompleted,E as trackJobFormQuestionInitiated,N as trackLoginCompleted,Q as trackLoginInitiated,W as trackLoginPageView,M as trackMyJobsPageView,K as trackOneflareBusinessAwardsPageView,X as trackReviewsPageView,Y as trackSignUpFormCompleted,$ as trackSignUpFormInitiated,ee as trackSignUpInitiated,te as trackSignUpPageView,ne as trackWinWorkGuideView};\n"],"names":["TextFieldStyled","styled","Textfield","withConfig","displayName","componentId","_ref","theme","spacing","sm","SuccessStyled","Success","attrs","_ref2","fill","color","success","kind","name","_ref$phone","phone","value","error","validated","validating","_ref$updatePhone","updatePhone","_ref$onFocus","onFocus","handlePhoneInvalid","_objectSpread","validationErrors","validatePhoneInput","_asyncToGenerator","_regeneratorRuntime","_callee","data","_context","prev","next","abrupt","validatePhoneNumber","sent","phone_exists","valid_phone","t0","stop","apply","arguments","React","placeholder","type","errorDisplay","icon","Loader","onBlur","onChange","e","target","FormStyled","form","media","mdUp","_templateObject","_taggedTemplateLiteral","H1Styled","h1","charcoal","LogoStyled","Oneflare","CheckboxStyled","Checkbox","_ref3","font","primaryRegular","ButtonStyled","Button","_ref4","_ref5","md","_ref6","LinkStyled","p","_ref7","xxs","AlertContainerStyled","AlertContainer","url","registrationFormData","csrfToken","headers","Headers","append","fetch","method","body","then","json","RenderForm","acceptingTeamInvitation","business","claimId","loginUrl","trackActionInitiated","useTrackUserActions","trackAction","trackActionCompleted","alertsRef","_React$useState","email","Boolean","password","marketingConsentConfirmed","_React$useState2","_slicedToArray","setForm","_React$useState3","_React$useState4","formInteracted","setFormInteracted","handleFormTouch","handleSubmit","event","formData","preventDefault","FormData","signUp","res","status","window","location","redirect_to","current","message","_x","updateField","field","_defineProperty","validatePassword","length","validateName","test","validateForm","role","onSubmit","ref","concat","readOnly","EmailTextField","updateEmail","PhoneTextField","label","checked","disabled","Anchor","href","RegistrationForm","props","useTrackPageView","PageType","SignUp","memo","_railsContext","app","ReactOnRails","RegistrationApp","handleEmailInvalid","validateEmailInput","validateEmail","valid_email","defaultProps","ACCOUNT_LOGIN","ACCOUNT_RETRY_SUBSCRIPTION_PAYMENT","CATEGORIES_SEARCH","QUOTE_FINALISE","QUOTE_NEW","QUOTE_ONE_STEP","QUOTE_CREATE_DRAFT","QUOTE_UPDATE_DRAFT","VALIDATE_ABN","VALIDATE_BUSINESS_NAME","VALIDATE_EMAIL","VALIDATE_EMAIL_WITHOUT_UNIQUENESS","VALIDATE_PHONE_NUMBER","VALIDATE_PHONE_NUMBER_V6","USERS_POST","AUTOCOMPLETE_LOCATIONS_SEARCH","SERVICE_AREAS_SUBURBS_SEARCH","SERVICE_AREAS_ADMIN_PUT","CREATE_MESSAGE","MESSAGE_SEEN","SUPPORT_MESSAGE_SEEN","MESSAGE_SEEN_IN_SUPPORT_INBOX","CREATE_SUPPORT_MESSAGE_IN_CUSTOMER_INBOX","LOAD_OR_CREATE_MESSAGES_IN_SUPPORT_INBOX","withoutUniqueness","context","buildApiUrl","encodeURIComponent","phoneNumber","apiVersion","undefined","path","_window$location","hostname","port","protocol","portNumber","err","Promise","reject","resolve","r","Error","statusText","serverStatus","Object","freeze","Login","MyJobs","BusinessRegistration","trackingMethods","trackLoginPageView","trackMyJobsPageView","trackBusinessRegistrationPageView","trackSignUpPageView","TRACK_PAGE_VIEW_CODE_SOURCE","pageType","opts","tracker","useAnalyticsTracker","useEffect","trackPageView","actionMethods","BusinessRegistrationFormInitiated","trackBusinessRegistrationFormInitiated","BusinessRegistrationFormCompleted","trackBusinessRegistrationFormCompleted","LoginCompleted","trackLoginCompleted","LoginInitiated","trackLoginInitiated","SignUpInitiated","trackSignUpInitiated","SignUpFormCompleted","trackSignUpFormCompleted","SignUpFormInitiated","trackSignUpFormInitiated","actionType","eventCodeSource","useCallback","BUSINESS_NAME_INVALID","BUSINESS_NAME_REQUIRED","BUSINESS_ABN_INVALID","BUSINESS_ABN_REQUIRED","BUSINESS_CATEGORY_NO_RESULTS","BUSINESS_CATEGORY_REQUIRED","BUSINESS_LOCATION_NO_RESULTS","BUSINESS_LOCATION_INVALID","BUSINESS_LOCATION_REQUIRED","USER_NAME_INVALID","USER_NAME_REQUIRED","USER_EMAIL_INVALID","USER_EMAIL_REQUIRED","USER_PHONE_EXISTS","USER_PHONE_INVALID","USER_PHONE_REQUIRED","USER_PHONE_USING_PLACEHOLDER_NUMBER","USER_PASSWORD_INVALID","EXISTING_USER_INVALID_PASSWORD","_arrayLikeToArray","a","n","Array","asyncGeneratorStep","t","o","c","i","u","done","this","_next","_throw","isArray","l","Symbol","iterator","f","call","push","unsupportedIterableToArray","TypeError","slice","defineProperties","raw","_unsupportedIterableToArray","toString","constructor","from","b","defineProperty","_","getOwnPropertyDescriptors","getOwnPropertySymbols","prototype","hasOwnProperty","w","propertyIsEnumerable","d","enumerable","configurable","writable","m","v","s","g","throw","O","track","event_name","event_category","event_code_source","event_schema_version","event_platform","region_code","getRegionCode","conversion_event","timezone","getTimeZone","additional_properties","business_detail_id","businessDetailId","business_profession","businessProfession","business_location","businessLocation","business_expected_leads","businessExpectedLeads","business_marketing_consent_opted_in","businessMarketingConsentOptedIn","is_logged_in","isLoggedIn","D","j","getPageData","N","Q","W","M","Y","$","ee","initiated_page","initiatedPage","initiated_section","initiatedSection","initiated_cta_text","initiatedCtaText","te"],"sourceRoot":""}