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,MAAM,yCAEpBC,EAAAA,EAAAA,YAAWJ,GACnBK,QACH9G,EAAAA,EAAAA,KAAC9D,EAAAA,GAAG,CAACI,kBAAkByK,EAAAA,EAAAA,MAAmB1G,UACxCL,EAAAA,EAAAA,KAACgH,EAAAA,GAAM,M","sources":["webpack:///?e16e","webpack:///./App/services.ts","webpack:///./App/context.ts","webpack:///./App/index.tsx","webpack:///./shared/helpers/helpers.tsx","webpack:///./shared/labels/Labels.ts","webpack:///./signup.index.tsx"],"sourcesContent":["'use strict';\nvar r = window.__planday_app_registry__, p = window.__planday_public_path__;\n__webpack_public_path__ =\n r && r['planday.signup/default'] ? r['planday.signup/default'].p :\n p ? p : '/'","import {AuthError} from '@planday-corp/core/services/Auth';\nimport Service from '@planday-corp/core/services/Service';\nimport {AuthService} from '@planday-corp/core/services/protocols';\n\nexport class AnonymousAuth\n extends Service\n implements AuthService\n{\n static defaultSettings = {\n allowAnonymous: true,\n };\n\n async initialize() {\n this.rejectEvent(\n 'authenticated',\n 'Anonymous auth will never authenticate.'\n );\n }\n\n getUser(): never {\n throw AuthError.notAuthenticatedError();\n }\n\n getToken(): never {\n return this.getUser();\n }\n\n getSubjectId() {\n return this.getUser();\n }\n\n isAuthenticated() {\n return Promise.resolve(false);\n }\n\n signin() {\n return Promise.reject('Signin not possible for anonymous auth.');\n }\n\n signout() {\n return Promise.reject('Signout not possible for anonymous auth.');\n }\n}\n","import {AnonymousAuth} from './services';\nimport {ApplicationInsights} from '@microsoft/applicationinsights-web';\nimport {\n Api,\n Config,\n ConsoleLogger,\n Globalization,\n JSONStorage,\n MessageHub,\n Router,\n StorageCache,\n Telemetry,\n RealmCache,\n TranslationsApi,\n} from '@planday-corp/core/services';\nimport Notifications from '@planday-corp/core/services/Notifications';\nimport {QueryClient} from '@tanstack/react-query';\n\nexport type EnforcedLanguageSetting =\n Globalization['settings']['enforcedLanguage'];\n\ninterface AnonymousContextProps {\n /*\n * Pre-enable logger for debugging\n */\n isDebug?: boolean;\n /**\n * Translation categories\n */\n categories?: string[];\n /*\n * Router-type of the React Router\n */\n routerType?: 'Hash' | 'Browser';\n\n /*\n * Enforced language for the app, by default it will use the browser's language\n * requirement is to read the language from the url subpath\n */\n enforcedLanguage?: EnforcedLanguageSetting;\n}\n\nfunction initiateTelemetry(\n appInsights: ApplicationInsights,\n sessionJSONStorage: JSONStorage\n) {\n // Our telemetry service only works if the appInsights object is attached to the window object\n // This is a workaround to make it work\n\n // @ts-ignore\n window.appInsights = appInsights;\n // @ts-ignore\n window.appInsights.version = appInsights.snippet.version;\n\n return new Telemetry({origin}, {storage: sessionJSONStorage});\n}\n\nexport const config = new Config({\n sources: [window.DevConfig, window.PlandayConfig],\n});\n\nexport function createAzureAppInsightsContext(\n config: Config,\n props: AnonymousContextProps\n) {\n const clientId = config.get('clientId');\n const {\n isDebug = false,\n routerType = 'Hash',\n categories = [],\n enforcedLanguage,\n } = props;\n const localJSONStorage = new JSONStorage({storageType: 'local'});\n const sessionJSONStorage = new JSONStorage({storageType: 'session'});\n const logger = new ConsoleLogger(\n {isEnabled: isDebug ? true : undefined},\n {storage: sessionJSONStorage}\n );\n\n const appInsights = new ApplicationInsights({\n config: {\n enableCorsCorrelation: true,\n instrumentationKey: config.get(\n 'applicationInsights.instrumentationKey'\n ),\n },\n });\n\n appInsights.loadAppInsights();\n appInsights.trackPageView({name: 'PortalSignup.PageLoaded'});\n\n const router = new Router({type: routerType});\n const cache = new StorageCache({name: 'test'}, {storage: localJSONStorage});\n const transientCache = new RealmCache({name: 'transient_cache'});\n\n const telemetry = initiateTelemetry(appInsights, sessionJSONStorage);\n\n const messageHub = new MessageHub({}, {logger});\n const auth = new AnonymousAuth();\n\n const translationsApi = new TranslationsApi(\n {\n serverUrl: config.get('internalServices.translationsApiUrl'),\n clientId: config.get('clientId'),\n version: 'v1.0',\n subpath: 'translations',\n },\n {auth}\n );\n\n const globalization = new Globalization(\n {\n categories,\n clientId,\n isAnonymous: true,\n enforcedLanguage,\n },\n {auth, cache, transientCache, translationsApi}\n );\n\n const _logger = logger.create('Common-Context');\n _logger.log('Auth type:', Object.prototype.toString.call(auth));\n\n const notifications = new Notifications();\n\n return {\n messageHub,\n globalization,\n logger,\n router,\n auth,\n cache,\n telemetry,\n localJSONStorage,\n sessionJSONStorage,\n notifications,\n translationsApi,\n };\n}\n\nexport function createAppContext(enforcedLanguage?: EnforcedLanguageSetting) {\n const context = createAzureAppInsightsContext(config, {\n routerType: 'Browser',\n categories: [\n 'CommonTerms',\n 'Onboarding',\n 'CommonFormatting',\n 'SignUp',\n 'Countries',\n ],\n isDebug: process.env.NODE_ENV === 'development',\n enforcedLanguage,\n });\n\n const queryClient = new QueryClient();\n\n const signupApi = new Api(\n {\n serverUrl: config.get('internalServices.signupApiUrl'),\n clientId: config.get('clientId'),\n },\n {auth: context.auth}\n );\n\n return {\n ...context,\n queryClient,\n config,\n signupApi,\n };\n}\n","import {config, createAppContext, EnforcedLanguageSetting} from './context';\nimport {Translate} from '@planday-corp/globalization';\nimport {AppProvider} from '@planday-corp/react-app';\nimport ToastManager from '@planday-corp/react-app/components/ToastManager';\nimport ToastProvider from '@planday-corp/react-app/components/ToastProvider';\nimport CSSReset from '@planday-corp/ui/global/CSSReset';\nimport Fonts from '@planday-corp/ui/global/Fonts';\nimport UIProvider from '@planday-corp/ui/global/UIProvider';\nimport {grey05} from '@planday-corp/ui/styles/colors';\nimport {QueryClientProvider} from '@tanstack/react-query';\nimport {ReactQueryDevtools} from '@tanstack/react-query-devtools';\nimport React, {PropsWithChildren, Suspense, useMemo} from 'react';\nimport {createGlobalStyle} from 'styled-components';\n\n// Soft export of types\n// It's important that only types are exported to avoid breaking code splitting\nexport type AppContext = ReturnType;\nexport const IS_DEVELOPMENT = process.env.NODE_ENV === 'development';\n\n// This is a workaround specifically for PlandaySignup, not to affect current XeroSignup behavior\n// In XeroSignup we're using instance of Api class, but it cannot be instantiated without correct serviceUrl\n// In PlandaySignup we need to be able to call BE (self) on any dynamic environment, and not stick to hardcoded staging configuration\n// To achieve that we're utilizing fetch API, and calling root path directly\n// For full development experience (for .NET devs) frontend should, by default call \"https://localhost:5738\"\n\nexport const SIGNUP_API_URL = IS_DEVELOPMENT\n ? config.get('internalServices.signupApiUrl')\n : '';\n\nconst GlobalStyles = createGlobalStyle`\n body, html, #root {\n height: 100%;\n margin: 0;\n overflow-y: auto;\n background-color: ${grey05};\n }\n`;\n\ninterface AppProps {\n enforcedLanguage?: EnforcedLanguageSetting;\n}\n\nexport default function App(props: PropsWithChildren) {\n const context = useMemo(\n () => createAppContext(props.enforcedLanguage),\n [props.enforcedLanguage]\n );\n\n return (\n \n }\n >\n \n \n \n \n \n \n {props.children}\n \n \n \n \n \n \n \n \n );\n}\n","import {HubConnection, HubConnectionBuilder} from '@microsoft/signalr';\nimport {eventChannel} from 'redux-saga';\nimport {AppContext, AppStore} from '~/XeroSignup/sagas';\nimport {Country, KeyValue} from '~/XeroSignup/types/Types';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const formatPhonePrefixes = (prefixOptions: any) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n return prefixOptions.map((prefix: any) => {\n return {\n id: prefix.id,\n value: prefix.phonePrefix,\n label: `${prefix.shortName} ${prefix.phonePrefix}`,\n };\n });\n};\n\nexport const formatCountries = (countryOptions: Country[]) => {\n return countryOptions.map((country: Country) => {\n return {\n id: country.id,\n value: country.code,\n label: country.name,\n };\n });\n};\n\nexport const getTimeZones = () => {\n // for now only support au\n return [\n {value: 'Australia/Adelaide', label: `UTC +(09:30/10:30) Adelaide`},\n {value: 'Australia/Brisbane', label: `UTC +10 Brisbane`},\n {\n value: 'Australia/Sydney',\n label: `UTC +(10/11) Canberra, Melbourne, Sydney`,\n },\n {value: 'Australia/Darwin', label: `UTC +9:30 Darwin`},\n {value: 'Australia/Perth', label: `UTC +8 Perth`},\n ];\n};\n\nexport const setValidationRules = (\n formData: KeyValue,\n validationRules: KeyValue\n) => {\n const {formMetadata} = formData;\n const {settings} = formMetadata;\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n settings.map((data: any) => {\n if (data.name === 'Email') {\n validationRules.item.email = {\n required: true,\n pattern: 'email',\n };\n }\n\n if (data.name === 'Password') {\n validationRules.item.password = {\n required: true,\n pattern: 'password',\n };\n }\n\n if (data.name === 'CountryCode') {\n validationRules.item.countryCode = {\n required: true,\n };\n }\n });\n};\n\nexport function socketConnection(context: AppContext) {\n const {signupApi} = context;\n\n try {\n const connection = new HubConnectionBuilder()\n .withUrl(`${signupApi.settings.serverUrl}/signup/status`)\n .build();\n return connection;\n } catch (error) {\n // tslint:disable-next-line\n console.log('Failed to connect to Hubs:', error);\n }\n}\n\nexport function getEventChannel(store: AppStore, connection: HubConnection) {\n const signUpState = store.getState().xeroSignup;\n\n return eventChannel<{status: 'failure' | 'success'; portalUrl?: string}>(\n emit => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const successHandler = ({autoLoginUrl}: any) => {\n emit({status: 'success', portalUrl: autoLoginUrl});\n };\n\n const failureHandler = () => {\n emit({status: 'failure'});\n };\n\n connection.on('onSuccess', successHandler);\n connection.on('onFailure', failureHandler);\n\n const unsubscribe = () => {\n connection.send('Unsubscribe', signUpState.signupRequestId).then(() =>\n // tslint:disable-next-line\n console.log('Unsubscribed from Hubs')\n );\n };\n\n return unsubscribe;\n }\n );\n}\n","import {TermDescriptor} from '@planday-corp/globalization';\n\nexport const LABELS: {\n [key: string]: TermDescriptor;\n} = {\n signupToPlanday: {\n term: 'SignUp.ExternalSignup_Xero_Header',\n fallback: 'Start your free Planday trial using your Xero account details',\n },\n theFormIsPrefilled: {\n term: 'SignUp.ExternalSignup_Xero_Description',\n fallback:\n 'The form is pre-filled with details from your Xero account. Please enter the additional information required to sign up for Planday.',\n },\n firstName: {\n term: 'SignUp.FirstName',\n fallback: 'First name',\n },\n lastName: {\n term: 'SignUp.LastName',\n fallback: 'Last name',\n },\n password: {term: 'SignUp.Password', fallback: 'Password'},\n userNameEmail: {\n term: 'SignUp.Email',\n fallback: 'Username (Email)',\n },\n phoneCountryCodePrefix: {\n term: 'SignUp.CountryCode',\n fallback: 'Country code',\n },\n country: {term: 'SignUp.Country', fallback: 'Country'},\n phoneNumber: {term: 'SignUp.Phone', fallback: 'Phone'},\n companyName: {term: 'SignUp.Company', fallback: 'Company Name'},\n industry: {\n term: 'SignUp.Industry',\n fallback: 'Industry',\n },\n employees: {term: 'SignUp.Employees', fallback: 'Employees'},\n signup: {term: 'SignUp.SignUpCTA_button', fallback: 'Sign up'},\n connectYourXeroOrganisation: {\n term: 'SignUp.AuthorizationPage_ModalTitle',\n fallback: 'Connect your Xero organisation to Planday',\n },\n xeroOrganisations: {\n term: 'SignUp.AuthorizationPage_XeroOrganisations',\n fallback: 'Xero organisations',\n },\n continue: {\n term: 'CommonTerms.Continue',\n fallback: 'Continue',\n },\n loginModalTitle: {\n term: 'SignUp.AuthorizationPage_LoginModal_Title',\n fallback: 'Log in to Planday',\n },\n loginBtn: {\n term: 'CommonTerms.Login',\n fallback: 'Log in',\n },\n signupModalTitle: {\n term: 'SignUp.AuthorizationPage_SignupModal_Title',\n fallback: 'Sign up to Planday',\n },\n signupBtn: {\n term: 'CommonTerms.XeroSignup',\n fallback: 'Sign up',\n },\n linkChooseAnotherOrg: {\n term: 'SignUp.AuthorizationPage_ChooseDifferentOrganisation',\n fallback: 'Connect a different Xero organisation',\n },\n errorScreenTitle: {\n term: 'SignUp.ErrorScreen_XeroAccessDenied_Title',\n fallback: 'Unable to connect you to Planday',\n },\n errorScreenBody: {\n term: 'SignUp.ErrorScreen_XeroAccessDenied_Description',\n fallback:\n 'We were unable to connect Planday with your Xero account. To reconnect, go back and try again.',\n },\n errorScreenBtn: {\n term: 'SignUp.ErrorScreen_XeroAccessDenied_Btn',\n fallback: 'Go back and try again',\n },\n termsAndConditionsCheckboxText: {\n term: 'SignUp.TermsAndConditions_CheckboxText',\n fallback:\n 'I have read and agree to the Trial Terms, Privacy Policy, Terms & Conditions, End User License Agreement and Data Processing Agreement.',\n },\n seeAllDocuments: {\n term: 'SignUp.TermsAndConditions_SeeAllDocuments',\n fallback: 'See all documents',\n },\n here: {\n term: 'SignUp.TermsAndConditions_Here',\n fallback: 'here',\n },\n termsAndConditionsLink: {\n term: 'SignUp.TermsAndConditions_Link',\n fallback: 'https://www.planday.com/legal',\n },\n termsAndConditionsAriaTitle: {\n term: 'SignUp.TermsAndConditions_Link_AriaTitle',\n fallback: 'See all documents here',\n },\n onboardingExampleStepsTitle: {\n term: 'Onboarding.Setup_XeroToPlanday_ExampleSteps_title',\n fallback: 'Get ready to schedule your employees smarter:',\n },\n onboardingExampleStepsList: {\n term: 'Onboarding.Setup_XeroToPlanday_ExampleSteps_list',\n fallback: `Import your employees' data from Xero to Planday;Enable the relevant Awards to cover your employees;Prepare for payroll with Planday and Xero connected`,\n },\n onboardingStatusInProgress: {\n term: 'Onboarding.Setup_XeroToPlanday_ProgressStatus_title',\n fallback: 'Building your Planday system...',\n },\n onboardingStatusFinished: {\n term: 'Onboarding.Setup_XeroToPlanday_FinishedStatus_title',\n fallback: 'You can now set Planday up!',\n },\n onboardingAutoRedirectCountdown: {\n term: 'Onboarding.Setup_XeroToPlanday_RedirectCountdown',\n fallback: 'You will be redirected to your Planday system in {0} seconds.',\n },\n timeZone: {\n term: 'CommonTerms.TimeZone',\n fallback: 'Time zone',\n },\n};\n","import App from './App';\nimport Signup from './Signup';\nimport {getLocaleFromUrl} from './Signup/utils';\nimport {createRoot} from 'react-dom/client';\n\nconst el = document.getElementById('root');\nif (el === null) throw new Error('Root container missing in index.html');\n\nconst root = createRoot(el);\nroot.render(\n \n \n \n);\n"],"names":["r","window","__planday_app_registry__","p","__planday_public_path__","AnonymousAuth","Service","static","allowAnonymous","initialize","this","rejectEvent","getUser","AuthError","notAuthenticatedError","getToken","getSubjectId","isAuthenticated","Promise","resolve","signin","reject","signout","config","Config","sources","DevConfig","PlandayConfig","IS_DEVELOPMENT","process","SIGNUP_API_URL","get","GlobalStyles","createGlobalStyle","grey05","App","props","context","useMemo","enforcedLanguage","clientId","isDebug","routerType","categories","localJSONStorage","JSONStorage","storageType","sessionJSONStorage","logger","ConsoleLogger","isEnabled","undefined","storage","appInsights","ApplicationInsights","enableCorsCorrelation","instrumentationKey","loadAppInsights","trackPageView","name","router","Router","type","cache","StorageCache","transientCache","RealmCache","telemetry","version","snippet","Telemetry","origin","initiateTelemetry","messageHub","MessageHub","auth","translationsApi","TranslationsApi","serverUrl","subpath","globalization","Globalization","isAnonymous","create","log","Object","prototype","toString","call","notifications","Notifications","createAzureAppInsightsContext","queryClient","QueryClient","signupApi","Api","createAppContext","_jsx","Suspense","fallback","Translate","term","children","_jsxs","UIProvider","CSSReset","Fonts","AppProvider","services","style","height","useExperimentalIntl","QueryClientProvider","client","ToastProvider","ToastManager","maxToasts","ReactQueryDevtools","formatPhonePrefixes","prefixOptions","map","prefix","id","value","phonePrefix","label","shortName","formatCountries","countryOptions","country","code","getTimeZones","setValidationRules","formData","validationRules","formMetadata","settings","data","item","email","required","pattern","password","countryCode","socketConnection","HubConnectionBuilder","withUrl","build","error","console","getEventChannel","store","connection","signUpState","getState","xeroSignup","eventChannel","emit","on","_ref","autoLoginUrl","status","portalUrl","failureHandler","unsubscribe","send","signupRequestId","then","LABELS","signupToPlanday","theFormIsPrefilled","firstName","lastName","userNameEmail","phoneCountryCodePrefix","phoneNumber","companyName","industry","employees","signup","connectYourXeroOrganisation","xeroOrganisations","continue","loginModalTitle","loginBtn","signupModalTitle","signupBtn","linkChooseAnotherOrg","errorScreenTitle","errorScreenBody","errorScreenBtn","termsAndConditionsCheckboxText","seeAllDocuments","here","termsAndConditionsLink","termsAndConditionsAriaTitle","onboardingExampleStepsTitle","onboardingExampleStepsList","onboardingStatusInProgress","onboardingStatusFinished","onboardingAutoRedirectCountdown","timeZone","el","document","getElementById","Error","createRoot","render","getLocaleFromUrl","Signup"],"sourceRoot":""}