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2BjL,GACrD4I,EAAIL,EAAS3K,OAAQgL,IACzBmC,EAAUxC,EAASK,GAChBf,EAAoB4B,EAAEqB,EAAiBC,IAAYD,EAAgBC,IACrED,EAAgBC,GAAS,KAE1BD,EAAgBC,GAAW,EAE5B,OAAOlD,EAAoBQ,EAAEC,EAAO,EAGjC+C,EAAqBC,KAA8B,wBAAIA,KAA8B,yBAAK,GAC9FD,EAAmBjL,QAAQ4K,EAAqBO,KAAK,KAAM,IAC3DF,EAAmBxL,KAAOmL,EAAqBO,KAAK,KAAMF,EAAmBxL,KAAK0L,KAAKF,G,KChDvFxD,EAAoB2D,QAAKpI,ECGzByE,EAAoBQ,OAAEjF,EAAW,CAAC,MAAM,IAAOyE,EAAoB,SACnEA,EAAoBQ,OAAEjF,EAAW,CAAC,MAAM,IAAOyE,EAAoB,SACnE,IAAI4D,EAAsB5D,EAAoBQ,OAAEjF,EAAW,CAAC,MAAM,IAAOyE,EAAoB,SAC7F4D,EAAsB5D,EAAoBQ,EAAEoD,G","sources":["webpack://@p2l/guides/webpack/runtime/chunk loaded","webpack://@p2l/guides/./src/consts/consts.tsx","webpack://@p2l/guides/./src/consts/dropdown-utils.ts","webpack://@p2l/guides/./src/consts/environments.tsx","webpack://@p2l/guides/./src/consts/global.tsx","webpack://@p2l/guides/./src/consts/regex.ts","webpack://@p2l/guides/./src/consts/routes.ts","webpack://@p2l/guides/./src/lib/enums.ts","webpack://@p2l/guides/./src/lib/file-size-utils.ts","webpack://@p2l/guides/./src/lib/global-styles.tsx","webpack://@p2l/guides/./src/lib/styles.tsx","webpack://@p2l/guides/./src/sign-up-agents/consts/required-services.ts","webpack://@p2l/guides/./src/sign-up-agents/consts/routes.ts","webpack://@p2l/guides/./src/sign-up-agents/index.tsx","webpack://@p2l/guides/./src/sign-up-agents/pages/registeration-confirmation/registeration-confirmation.tsx","webpack://@p2l/guides/./src/sign-up-agents/pages/registered-agent-confirmation/registered-agent-confirmation.tsx","webpack://@p2l/guides/./src/sign-up-agents/pages/sign-up-anonymous/sign-up-anonymous.tsx","webpack://@p2l/guides/./src/sign-up-agents/pages/sign-up-anonymous/sign-up-anonymous.utils.ts","webpack://@p2l/guides/./src/sign-up-agents/pages/sign-up-page/sign-up-page.tsx","webpack://@p2l/guides/./src/sign-up-agents/services/agent-service.ts","webpack://@p2l/guides/./src/sign-up-agents/services/http-service.ts","webpack://@p2l/guides/./src/sign-up-agents/sign-up-agents.tsx","webpack://@p2l/guides/./src/sign-up-agents/store/configure-store.ts","webpack://@p2l/guides/./src/sign-up-agents/store/root-reducer.ts","webpack://@p2l/guides/./src/sign-up-agents/store/shared-store.ts","webpack://@p2l/guides/./src/sign-up-agents/store/sign-up-store.ts","webpack://@p2l/guides/./src/sign-up-agents/store/ui-store.ts","webpack://@p2l/guides/./src/sign-up-agents/utils/sign-up-util.ts","webpack://@p2l/guides/./src/theme/index.ts","webpack://@p2l/guides/./src/utils/generate-path-with-query-strings.ts","webpack://@p2l/guides/./src/utils/links-utils.ts","webpack://@p2l/guides/webpack/bootstrap","webpack://@p2l/guides/webpack/runtime/compat get default export","webpack://@p2l/guides/webpack/runtime/define property getters","webpack://@p2l/guides/webpack/runtime/global","webpack://@p2l/guides/webpack/runtime/harmony module decorator","webpack://@p2l/guides/webpack/runtime/hasOwnProperty shorthand","webpack://@p2l/guides/webpack/runtime/make namespace object","webpack://@p2l/guides/webpack/runtime/runtimeId","webpack://@p2l/guides/webpack/runtime/publicPath","webpack://@p2l/guides/webpack/runtime/jsonp chunk loading","webpack://@p2l/guides/webpack/runtime/nonce","webpack://@p2l/guides/webpack/startup"],"sourcesContent":["var deferred = [];\n__webpack_require__.O = (result, chunkIds, fn, priority) => {\n\tif(chunkIds) {\n\t\tpriority = priority || 0;\n\t\tfor(var i = deferred.length; i > 0 && deferred[i - 1][2] > priority; i--) deferred[i] = deferred[i - 1];\n\t\tdeferred[i] = [chunkIds, fn, priority];\n\t\treturn;\n\t}\n\tvar notFulfilled = Infinity;\n\tfor (var i = 0; i < deferred.length; i++) {\n\t\tvar [chunkIds, fn, priority] = deferred[i];\n\t\tvar fulfilled = true;\n\t\tfor (var j = 0; j < chunkIds.length; j++) {\n\t\t\tif ((priority & 1 === 0 || notFulfilled >= priority) && Object.keys(__webpack_require__.O).every((key) => (__webpack_require__.O[key](chunkIds[j])))) {\n\t\t\t\tchunkIds.splice(j--, 1);\n\t\t\t} else {\n\t\t\t\tfulfilled = false;\n\t\t\t\tif(priority < notFulfilled) notFulfilled = priority;\n\t\t\t}\n\t\t}\n\t\tif(fulfilled) {\n\t\t\tdeferred.splice(i--, 1)\n\t\t\tvar r = fn();\n\t\t\tif (r !== undefined) result = r;\n\t\t}\n\t}\n\treturn result;\n};","export const CLASS_GUIDE = 'class-guide';\nexport const COURSE_GUIDE = 'course-guide';\nexport const LOCAL_CLASS_GUIDE = 'local-class-guide';\nexport const LOCAL_COURSE_GUIDE = 'local-course-guide';\nexport const AGENTS = 'agents';\nexport const SIGNUP_AGENTS = 'signup-agents';\nexport const AGENTS_LIST = 'agents-list';\nexport const SUGGESTIONS = 'suggestions';\nexport const SETTLEMENT_GUIDE = 'settlement-guide';\nexport const MY_SETTLEMENTS_DIALOG = 'my-settlements-dialog';\n","import { TranslateMethod } from '@p2l/utils';\n\nexport const getMeals = (translate: TranslateMethod) => {\n return [\n {\n id: 1,\n value: translate('Resource_Selection_Catering_Meal_Breakfast')\n },\n {\n id: 2,\n value: translate('Resource_Selection_Catering_Meal_Lunch')\n },\n {\n id: 3,\n value: translate('Resource_Selection_Catering_Meal_Dinner')\n },\n {\n id: 4,\n value: translate('Resource_Selection_Catering_Meal_MorningCoffee')\n },\n {\n id: 5,\n value: translate('Resource_Selection_Catering_Meal_AfternoonCoffee')\n },\n {\n id: 6,\n value: translate('Resource_Selection_Catering_Meal_EveningCoffee')\n },\n {\n id: 7,\n value: translate('Resource_Selection_Catering_Meal_LateNightSnack')\n },\n {\n id: 8,\n value: translate('Resource_Selection_Catering_Internat')\n }\n ];\n};\n\nexport const getLocals = (translate: TranslateMethod) => {\n return [\n {\n id: 1,\n value: translate('Resource_Selection_Room_Local_Auditorium')\n },\n {\n id: 2,\n value: translate('Resource_Selection_Room_Local_Classroom')\n },\n {\n id: 4,\n value: translate('Resource_Selection_Room_Local_CleaningRoom')\n },\n {\n id: 3,\n value: translate('Resource_Selection_Room_Local_GroupRoom')\n }\n ];\n};\n","import { Environment } from 'lib';\n\nexport const CURRENT_ENVIRONMENT: Environment = process.env.NODE_ENV as Environment;\n","export const webGlobal: any = window.global;\n","export const StartsWithAlphanumeric = /^[a-zA-Z0-9]/i;\nexport const ClassNameFormat = /^\\d{4}-\\d{2}$/;\nexport const EMailFormat = /^(([^<>()[\\]\\\\.,;:\\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,}))$/;\nexport const OrderNumberFormat = /^\\d{0,30}$/;\n","const MAIN_APP_ROUTES = {\n MAIN: '/',\n COURSE_GUIDE: '/course-guide',\n CLASS_GUIDE: '/class-guide',\n LOCAL_COURSE_GUIDE: '/local-course-guide',\n LOCAL_CLASS_GUIDE: '/local-class-guide',\n AGENTS: '/agents',\n SignUpAgents: '/sign-up-agents',\n AGENTS_LIST: '/agents-list',\n SUGGESTIONS: '/suggestions'\n};\n\nexport { MAIN_APP_ROUTES };\n","enum Environment {\n Development = 'development',\n Demo = 'demo',\n Hotfix = 'hotfix',\n Test = 'test',\n Production = 'production'\n}\n\nenum UserClaims {\n Id = 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/nameidentifier',\n Key = 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/sid',\n Name = 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/givenname',\n Email = 'http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress',\n CompanyId = 'http://schemas.plan2learn.dk/2018/01/identity/claims/company/id',\n CompanyName = 'http://schemas.plan2learn.dk/2018/01/identity/claims/company/name',\n DomainId = 'http://schemas.plan2learn.dk/2018/01/identity/claims/domain/id',\n DomainName = 'http://schemas.plan2learn.dk/2018/01/identity/claims/domain/name',\n Role = 'http://schemas.microsoft.com/ws/2008/06/identity/claims/role',\n Modules = 'http://schemas.plan2learn.dk/2018/01/identity/claims/company/modules'\n}\n\nenum UserRole {\n Administrator = 'user_administrator',\n SystemAdministrator = 'user_systemadministrator',\n SuperAdministrator = 'user_superadministrator',\n DomainAdministrator = 'user_domainadministrator',\n LocalAdministrator = 'user_localadministrator'\n}\n\nenum FieldType {\n TextField = 0,\n TextArea = 1,\n NumberField = 2,\n SingleSelectPicker = 3,\n MutliSelectPicker = 4,\n ImagePicker = 5,\n SingleFileUpload = 6,\n MultiFileUpload = 7,\n Tags = 8,\n SelectiveTextField = 9,\n Deadline = 10,\n Label = 11,\n DateRangeTimeRangePicker = 12,\n ResourceSelection = 13,\n PeriodsEditor = 14,\n RadioGroup = 15,\n CatalogPicker = 16,\n Checkbox = 17,\n HelpBox = 18,\n ToggleButton = 19,\n ToolTip = 20,\n SettlementExpenses = 21,\n StaticHTML = 22,\n LocalPeriodsEditor = 23,\n GroupedTags = 24,\n MobileSpacing = 25,\n UnOrderedList = 26,\n MultiOptionSwitch = 27,\n ChipSelector = 28\n}\n\nenum CourseType {\n None = 0,\n Attendance = 1,\n ELearning = 2,\n Conference = 3,\n TicketEvent = 4,\n TimeBooking = 5,\n Education = 6\n}\n\nenum TagType {\n Interest = 1,\n Provider = 2\n}\n\nexport enum CatalogTagType {\n CatalogTag = 1,\n RuleTag = 2,\n ClassTag = 3\n}\n\nenum TimeScale {\n Day = 'D',\n Week = 'W',\n Month = 'M'\n}\n\nenum PeriodType {\n DayCourse = 1,\n School = 2\n}\n\nenum ResourceType {\n Catering = 1,\n Accommodation = 2,\n Room = 3\n}\n\nenum Meal {\n Breakfast = 1,\n Lunch = 2,\n Dinner = 3,\n MorningCoffee = 4,\n AfternoonCoffee = 5,\n EveningCoffee = 6,\n LateNightSnack = 7,\n Internat = 8\n}\n\nenum Local {\n Auditorium = 1,\n Classroom = 2,\n GroupRoom = 3,\n CleaningRoom = 4\n}\n\nenum HealthCheckStatus {\n Unhealthy = 'Unhealthy',\n Degraded = 'Degraded',\n Healthy = 'Healthy'\n}\n\nenum AddressStatus {\n UnderDefinition = 1,\n Active = 2,\n Archived = 3\n}\n\nenum SettlementExpeseType {\n WorkHour = 1,\n Transport = 2,\n Catering = 3,\n Accommodation = 4,\n Other = 5\n}\n\nenum CateringType {\n Breakfast = 1 << 0, // 1 -> 0001\n Lunch = 1 << 1, // 2 -> 0010\n Dinner = 1 << 2 // 4 -> 0100\n}\n\nenum AccommodationType {\n Hotel = 1,\n MilitaryEstablishment = 2,\n FriendsPlace = 3\n}\n\nenum TransportType {\n MilitaryTransportation = 1,\n PublicTransportation = 2,\n BikeOrScooter = 3,\n PrivateCarOrMotorcycle = 4,\n PrivateCarAtOwnPreference = 5,\n PrivateCarpooling = 6,\n CivilFerry = 7,\n CivilPlane = 8,\n Cab = 9\n}\n\nexport enum ClassLocationType {\n PhysicalPresence = 1,\n Online = 2\n}\n\nenum BookingTypeChipOption {\n BookOwnResources = 1,\n KfkaBookResources = 2,\n MasterData = 3\n}\n\nexport {\n Environment,\n UserClaims,\n UserRole,\n FieldType,\n CourseType,\n TagType,\n TimeScale,\n PeriodType,\n ResourceType,\n Meal,\n Local,\n HealthCheckStatus,\n AddressStatus,\n SettlementExpeseType,\n CateringType,\n AccommodationType,\n TransportType,\n BookingTypeChipOption\n};\n","export const convertFileSize = (size: string) => {\n let multiplier = 1;\n let value = size.split(' ')[0];\n let measurement = size.split(' ')[1];\n\n switch (measurement.toLowerCase()) {\n case 'kb':\n multiplier = 1024;\n break;\n case 'mb':\n multiplier = 1024 * 1024;\n break;\n case 'gb':\n multiplier = 1024 * 1024 * 1024;\n break;\n case 'tb':\n multiplier = 1024 * 1024 * 1024 * 1024;\n break;\n default:\n multiplier = 1;\n }\n\n return Math.round(Number.parseFloat(value) * multiplier);\n};\n\nexport const calculateFileSize = (size: number) => {\n if (size < 1024) {\n return `${size} B`;\n }\n\n if (size < 1024 * 1024) {\n return `${(size / 1024).toFixed(2)} KB`;\n }\n\n if (size < 1024 * 1024 * 1024) {\n return `${(size / (1024 * 1024)).toFixed(2)} MB`;\n }\n\n return size.toString();\n};\n","import { createGlobalStyle } from 'styled-components';\n\n// Style added to support Navigation(Top bar) styling on Guides hosted together with it\nexport const NavigationGlobalStyleProvider = createGlobalStyle`\n :root {\n --font-family: 'Open Sans', 'Helvetica', sans-serif;\n }\n\n * {\n box-sizing: border-box;\n }\n\n html {\n height: 100%;\n font-family: var(--font-family);\n box-sizing: border-box;\n }\n\n h1,\n h2,\n h3,\n h4,\n h5,\n h6,\n p,\n span,\n button,\n a {\n font-family: var(--font-family);\n }\n\n body {\n height: 100%;\n margin: 0px;\n min-height: 100vh;\n scroll-behavior: smooth;\n text-rendering: optimizeLegibility;\n line-height: 1.6;\n overscroll-behavior-x: none;\n overflow-x: hidden;\n }\n\n /* Scrollbar */\n *::-webkit-scrollbar-track {\n background-color: #f5f5f5;\n }\n\n *::-webkit-scrollbar {\n width: 4px;\n height: 4px;\n background-color: #f5f5f5;\n }\n\n *::-webkit-scrollbar-thumb {\n border-radius: 2px;\n background-color: #999;\n }\n`;\n","import React from 'react';\n\nconst PrintStyle = () => (\n \n);\n\nexport { PrintStyle };\n","import { RequiredServices } from '@p2l/config';\n\nexport const requiredServices: RequiredServices = {\n api: ['auth', 'guide'],\n ui: ['guide']\n};\n","const ROUTES = {\n MAIN: '/',\n REGISTER: '/:courseId/register',\n REGISTER_ANONYMOUSLY: '/:courseId/register/external',\n SUCCESS: '/:courseId/success',\n REGISTERED_SUCCESS: '/:courseId/registered-success',\n NOT_FOUND: '/errors/not-found',\n FORBIDDEN: '/errors/forbidden'\n};\n\nexport { ROUTES };\n","import 'es6-map';\nimport 'es6-promise';\nimport 'react-app-polyfill/ie9';\nimport 'react-app-polyfill/stable';\nimport * as React from 'react';\nimport * as ReactDOM from 'react-dom';\nimport { AppContainer } from 'react-hot-loader';\nimport { Provider } from 'react-redux';\nimport { Action } from 'redux';\nimport { ThunkDispatch } from 'redux-thunk';\nimport { ConnectedRouter } from 'connected-react-router';\n\nimport { CombinedThemeProvider, ErrorBoundary, ErrorBoundaryContext } from '@p2l/ui-admin';\nimport { Configuration, ServiceCollection, setConfiguration } from '@p2l/config';\nimport { TranslationsProvider } from '@p2l/react-utils';\n\nimport createTheme from 'theme';\nimport { createBrowserHistory } from 'history';\nimport { requiredServices } from './consts';\nimport { Course } from './models';\n\nimport configureProjectStore from './store/configure-store';\nimport { reducers } from './store/root-reducer';\n\nimport { SignUpAgents } from './sign-up-agents';\nimport ApplicationState from './store/application-state';\nimport translations from '../translations.json';\n\nexport type AppDispatch = ThunkDispatch>;\n\nconst initApp = (config: Configuration, args: Course) => {\n const history = createBrowserHistory({ basename: config.basename });\n const store = configureProjectStore(reducers, history);\n\n const theme = createTheme();\n (window as any).theme = theme;\n\n ReactDOM.render(\n \n {\n console.error(error, info);\n }\n }}\n >\n \n \n \n \n \n \n \n \n \n \n \n \n ,\n document.getElementById('root')\n );\n};\n\nconst removeApp = () => {\n const element = document.getElementById('root');\n if (element !== null) {\n ReactDOM.unmountComponentAtNode(element);\n }\n};\n\nexport const bootstrap = (config: Configuration, serviceCollection: ServiceCollection, args: Course) => {\n if (setConfiguration(serviceCollection, config, requiredServices)) {\n initApp(config, args);\n }\n};\n\nexport const destroy = () => {\n removeApp();\n};\n","import React from 'react';\nimport { Container, Row, Col } from 'react-bootstrap';\nimport { connect } from 'react-redux';\n\nimport { getPrincipal } from '@p2l/config';\nimport { useTranslations } from '@p2l/react-utils';\n\nimport ApplicationState from 'sign-up-agents/store/application-state';\nimport { getUrl } from 'utils/links-utils';\n\ninterface IProps {\n isAuthenticated: boolean;\n userName: string;\n courseName: string;\n userProfileUrl: string;\n}\n\nconst Confirmation = (props: IProps) => {\n const { translate } = useTranslations();\n\n return (\n \n \n \n

\n {translate('Sign_Up_Agents_Agent')}\n

\n
\n {props.courseName}\n
\n
\n
\n
\n
\n

{translate('Sign_Up_Agents_Registeration_Confirmed')}

\n

\n {translate('Sign_Up_Agents_Registeration_Confirmation_Dear')} {props.userName}.\n
\n
\n {translate('Sign_Up_Agents_Registeration_Confirmation_Message')}:\n
\n
\n {props.courseName}\n
\n
\n {translate('Sign_Up_Agents_Registeration_Confirmation_Notification')}.\n {props.isAuthenticated && (\n <>\n
\n
\n {translate('Sign_Up_Agents_Registeration_Confirmation_Cancel_Agent')} {translate('Sign_Up_Agents_Registeration_Confirmation_User_Profile')}\n \n )}\n

\n
\n \n {translate('Sign_Up_Agents_Registeration_Confirmation_Back_Catalog')}\n \n
\n
\n \n
\n
\n );\n};\n\nconst mapStateToProps = (state: ApplicationState) => ({\n isAuthenticated: getPrincipal().id ? true : false,\n userName: getPrincipal().id ? getPrincipal().name : state.signup.name,\n courseName: state.signup.course ? state.signup.course.name : '',\n userProfileUrl: getUrl('participantAgents')\n});\n\nconst ConfirmationContainer = connect(mapStateToProps)(Confirmation);\n\nexport { ConfirmationContainer };\n","import React from 'react';\nimport { Container, Row, Col } from 'react-bootstrap';\nimport { connect } from 'react-redux';\n\nimport { getPrincipal } from '@p2l/config';\nimport { useTranslations } from '@p2l/react-utils';\n\nimport ApplicationState from 'sign-up-agents/store/application-state';\nimport { AppDispatch } from 'sign-up-agents';\nimport { getUrl } from 'utils/links-utils';\n\ninterface IProps {\n isAuthenticated: boolean;\n courseName: string;\n userProfileUrl: string;\n}\n\nconst RegisteredAgentConfirmation = (props: IProps) => {\n const { translate } = useTranslations();\n return (\n \n \n \n

\n {translate('Sign_Up_Agents_Agent')}\n

\n
\n {props.courseName}\n
\n
\n
\n
\n
\n

{translate('Sign_Up_Agents_Registeration_Confirmation_Already_Registered').replace('{0}', props.courseName)}

\n {props.isAuthenticated && (\n

\n
\n
\n {translate('Sign_Up_Agents_Registeration_Confirmation_Cancel_Agent')} {translate('Sign_Up_Agents_Registeration_Confirmation_User_Profile')}\n

\n )}\n
\n \n {translate('Sign_Up_Agents_Registeration_Confirmation_Back_Catalog')}\n \n
\n
\n \n
\n
\n );\n};\n\nconst mapStateToProps = (state: ApplicationState) => ({\n isAuthenticated: getPrincipal().id ? true : false,\n courseName: state.signup.course ? state.signup.course.name : '',\n userProfileUrl: getUrl('participantAgents')\n});\n\nconst RegisteredAgentConfirmationContainer = connect(mapStateToProps)(RegisteredAgentConfirmation);\n\nexport { RegisteredAgentConfirmationContainer };\n","import React from 'react';\nimport { Button, Container, Row, Col, Form, Spinner } from 'react-bootstrap';\nimport { connect } from 'react-redux';\n\nimport { TranslateMethod } from '@p2l/utils';\nimport { useTranslations } from '@p2l/react-utils';\nimport { FormControlLabel, Switch } from '@p2l/ui-admin';\n\nimport { registerForCourse, setName, setEmail, setConfirmEmail, setIsInfinite } from 'sign-up-agents/store/sign-up-store';\nimport ApplicationState from 'sign-up-agents/store/application-state';\nimport { AppDispatch } from 'sign-up-agents';\nimport { Course } from 'sign-up-agents/models';\nimport { hasNameError, hasEmailError, hasConfirmEmailError } from './sign-up-anonymous.utils';\n\ninterface IProps {\n course: Course | null;\n name: string;\n email: string;\n confirmEmail: string;\n isValidating: boolean;\n loading: boolean;\n isInfinite: boolean;\n\n onRegister: (translate: TranslateMethod) => void;\n onNameChanged: (value: string) => void;\n onEmailChanged: (value: string) => void;\n onConfirmEmailChanged: (value: string) => void;\n setIsInfinite: (value: boolean) => void;\n}\n\nconst SignUpAnonymousPage = (props: IProps) => {\n const { translate } = useTranslations();\n\n return (\n \n \n \n
\n {props.loading ? (\n \n \n \n ) : (\n
\n \n \n {translate('Sign_Up_Suggestions_Anonymous_Name')} *\n \n ) => props.onNameChanged(event.target.value)}\n required\n isInvalid={props.isValidating && hasNameError(props.name, translate) !== null}\n placeholder={translate('Sign_Up_Suggestions_Anonymous_Name')}\n />\n {props.isValidating && hasNameError(props.name, translate)}\n \n \n \n {translate('Sign_Up_Suggestions_Anonymous_Email')} *\n \n ) => props.onEmailChanged(event.target.value)}\n required\n isInvalid={props.isValidating && hasEmailError(props.email, translate) !== null}\n type=\"email\"\n placeholder={translate('Sign_Up_Suggestions_Anonymous_Email')}\n />\n {props.isValidating && hasEmailError(props.email, translate)}\n \n \n \n {translate('Sign_Up_Suggestions_Anonymous_Confirm_Email')} *\n \n ) => props.onConfirmEmailChanged(event.target.value)}\n required\n isInvalid={props.isValidating && hasConfirmEmailError(props.email, props.confirmEmail, translate) !== null}\n type=\"email\"\n placeholder={translate('Sign_Up_Suggestions_Anonymous_Confirm_Email')}\n />\n {props.isValidating && hasConfirmEmailError(props.email, props.confirmEmail, translate)}\n \n }\n checked={props.isInfinite}\n value={props.isInfinite}\n onChange={(event: any) => {\n props.setIsInfinite(event.target.checked);\n }}\n label={translate('Sign_Up_Agents_Register_Is_Infinite_Label')}\n />\n
\n \n
\n \n )}\n
\n \n
\n
\n );\n};\n\nconst mapStateToProps = (state: ApplicationState) => ({\n course: state.signup.course,\n isValidating: state.signup.isValidating,\n name: state.signup.name,\n email: state.signup.email,\n confirmEmail: state.signup.confirmEmail,\n loading: state.ui.showModuleLoader,\n isInfinite: state.signup.isInfinite\n});\n\nconst mapDispatchToProps = (dispatch: AppDispatch) => ({\n onRegister(translate: TranslateMethod) {\n dispatch(registerForCourse(translate));\n },\n onNameChanged(value: string) {\n dispatch(setName(value));\n },\n onEmailChanged(value: string) {\n dispatch(setEmail(value));\n },\n onConfirmEmailChanged(value: string) {\n dispatch(setConfirmEmail(value));\n },\n setIsInfinite(value: boolean) {\n dispatch(setIsInfinite(value));\n }\n});\n\nconst SignUpAnonymousPageContainer = connect(mapStateToProps, mapDispatchToProps)(SignUpAnonymousPage);\n\nexport { SignUpAnonymousPageContainer };\n","import { TranslateMethod } from '@p2l/utils';\n\nconst regexEmail = /^\\w+([.-]?\\w+)*@\\w+([.-]?\\w+)*(\\.\\w{2,3})+$/;\n\nconst hasEmailError = (email: string, translate: TranslateMethod): string | null => {\n if (email.length == 0 || email.length > 100 || !email.match(regexEmail)) {\n return translate('Sign_Up_Suggestions_Anonymous_Email_Validation');\n }\n return null;\n};\n\nconst hasConfirmEmailError = (email: string, confirmEmail: string, translate: TranslateMethod): string | null => {\n if (email.length == 0 || confirmEmail.length === 0 || email.length > 100 || !email.match(regexEmail) || email !== confirmEmail) {\n return translate('Sign_Up_Suggestions_Anonymous_Confirm_Email_Validation');\n }\n return null;\n};\n\nconst hasNameError = (name: string, translate: TranslateMethod): string | null => {\n if (name.length == 0 || name.length > 100) {\n return translate('Sign_Up_Suggestions_Anonymous_Name_Validation');\n }\n return null;\n};\n\nexport { hasNameError, hasEmailError, hasConfirmEmailError };\n","import React from 'react';\nimport { Button, Container, Row, Col } from 'react-bootstrap';\nimport { connect } from 'react-redux';\n\nimport { useTranslations } from '@p2l/react-utils';\nimport { TranslateMethod } from '@p2l/utils';\nimport { FormControlLabel, Switch } from '@p2l/ui-admin';\n\nimport { registerForCourse, setIsInfinite } from 'sign-up-agents/store/sign-up-store';\nimport ApplicationState from 'sign-up-agents/store/application-state';\nimport { AppDispatch } from 'sign-up-agents';\nimport { Course } from 'sign-up-agents/models';\n\ninterface IProps {\n course: Course | null;\n isInfinite: boolean;\n onRegister: (translate: TranslateMethod) => void;\n setIsInfinite: (value: boolean) => void;\n}\n\nconst SignUpPage = (props: IProps) => {\n const { translate } = useTranslations();\n\n return (\n \n \n \n

\n {translate('Sign_Up_Agents_Agent')}\n

\n
\n {props.course ? props.course.name : ''}\n
\n
\n

{translate('Sign_Up_Agents_Register_Confirm_Message')}

\n

${props.course ? props.course.name : ''}`) }}>

\n }\n checked={props.isInfinite}\n value={props.isInfinite}\n onChange={(event: any) => {\n props.setIsInfinite(event.target.checked);\n }}\n label={translate('Sign_Up_Agents_Register_Is_Infinite_Label')}\n />\n
\n \n
\n
\n \n
\n
\n );\n};\n\nconst mapStateToProps = (state: ApplicationState) => ({\n course: state.signup.course,\n isInfinite: state.signup.isInfinite\n});\n\nconst mapDispatchToProps = (dispatch: AppDispatch) => ({\n onRegister(translate: TranslateMethod) {\n dispatch(registerForCourse(translate));\n },\n setIsInfinite(value: boolean) {\n dispatch(setIsInfinite(value));\n }\n});\n\nconst SignUpPageContainer = connect(mapStateToProps, mapDispatchToProps)(SignUpPage);\n\nexport { SignUpPageContainer };\n","import http from './http-service';\n\nimport { DataServiceResponse, ODataExpression, ODataExpressionBuilder, ODataOperator, ODataQueryBuilder, PaginatedList } from '@p2l/data-service';\nimport { AgentRow } from 'agents-list/models';\nimport { AgentCreateModel, AgentModel } from 'sign-up-agents/models';\n\nasync function createClassAgent(model: AgentCreateModel): Promise> {\n return http.post(`api/v1/agents`, model);\n}\n\nasync function userHasAgentForCourse(courseId: number): Promise>> {\n let oDataExpressions = new ODataExpression('CourseId', ODataOperator.Eq, courseId);\n const queryUrl = new ODataQueryBuilder(`api/v1/agents/user`).Where(new ODataExpressionBuilder().And([oDataExpressions])).BuildQuery();\n return await http.get(queryUrl);\n}\n\nexport { createClassAgent, userHasAgentForCourse };\n","import { push } from 'connected-react-router';\n\nimport { addSnack, getStoreRef } from '@p2l/redux-utils';\nimport { DataServiceResponse, DataServiceError, HttpService } from '@p2l/data-service';\nimport { getApi, getToken, getCulture } from '@p2l/config';\nimport { useTranslationsFromCookie } from '@p2l/utils';\n\nimport { Environment } from 'lib';\nimport { CURRENT_ENVIRONMENT, SIGNUP_AGENTS } from 'consts';\nimport { ROUTES } from 'sign-up-agents/consts/routes';\nimport { generatePathWithQueryString } from 'utils/generate-path-with-query-strings';\nimport translations from '../../translations.json';\n\nlet translate = useTranslationsFromCookie(translations);\n\nconst defaultConfiguration = {\n useCorelationId: true,\n withCredentials: !(CURRENT_ENVIRONMENT == Environment.Development),\n onSuccess: (response: DataServiceResponse) => Promise.resolve(response),\n onError: (error: DataServiceError) => {\n const errorTranslation = translate('Guide_Snack_Server_Error');\n if (error.response && error.response.status === 403) {\n getStoreRef(SIGNUP_AGENTS).dispatch(push(generatePathWithQueryString(ROUTES.FORBIDDEN)));\n } else if (error.response && error.response.status === 404) {\n getStoreRef(SIGNUP_AGENTS).dispatch(push(generatePathWithQueryString(ROUTES.NOT_FOUND)));\n } else if (error.response && error.response.status >= 400 && error.response.status <= 500) {\n const errors = (error.response as any).data.dictionary;\n if (errors) {\n Object.keys(errors).forEach(x => {\n if (x === 'Already_Registered') {\n const course = getStoreRef(SIGNUP_AGENTS).getState().signup.course;\n if (course) {\n getStoreRef(SIGNUP_AGENTS).dispatch(push(generatePathWithQueryString(ROUTES.REGISTERED_SUCCESS, { courseId: course.id })));\n }\n } else {\n const errorsByKey = errors[x];\n let message;\n if (errorsByKey.errors) {\n message = `${x}: ${errorsByKey.errors.map((y: any) => translate(y.errorMessage))}`;\n } else {\n message = errorTranslation;\n }\n getStoreRef(SIGNUP_AGENTS).dispatch(addSnack(message));\n }\n });\n } else {\n getStoreRef(SIGNUP_AGENTS).dispatch(addSnack(translate('Guide_Api_Error')));\n }\n } else {\n getStoreRef(SIGNUP_AGENTS).dispatch(addSnack(errorTranslation));\n }\n return Promise.reject(error);\n }\n};\n\n/** This http service is for calling the classes api */\nconst httpService = new HttpService({\n baseUrl: '',\n ...defaultConfiguration\n});\n\nexport const configureHttp = () => {\n httpService.setBaseUrl(getApi('guide'));\n setAdditionalHeaders(httpService, getToken(), getCulture());\n};\n\nconst setAdditionalHeaders = (service: HttpService, token: string, culture: string) => {\n service.setAuthorizationHeader(token);\n service.setHeaderValue(culture, 'Accept-Language');\n service.setHeaderValue('no-cache', 'Pragma');\n};\nexport default httpService;\n","import React, { useEffect } from 'react';\nimport { Route, Switch, Redirect, generatePath } from 'react-router';\nimport { connect } from 'react-redux';\n\nimport { LinearProgress, NotFoundPage, ForbiddenPage } from '@p2l/ui-admin';\nimport { useTranslations } from '@p2l/react-utils';\n\nimport { ROUTES } from './consts/routes';\nimport { SignUpPageContainer } from './pages/sign-up-page';\nimport { SignUpAnonymousPageContainer } from './pages/sign-up-anonymous';\nimport ApplicationState from './store/application-state';\nimport { AppDispatch } from 'sign-up-agents';\nimport { initAppData } from './store/shared-store';\nimport { ConfirmationContainer } from './pages/registeration-confirmation';\nimport { RegisteredAgentConfirmationContainer } from './pages/registered-agent-confirmation';\nimport { Course } from './models';\nimport { generatePathWithQueryString } from 'utils/generate-path-with-query-strings';\nimport { getPrincipal } from '@p2l/config';\n\ninterface IProps {\n appInitialed: boolean;\n onAppInit(course: Course): void;\n course: Course;\n userId: number | undefined;\n}\n\nconst SignUpAgentsComponent = (props: IProps) => {\n const { translate } = useTranslations();\n\n useEffect(() => {\n props.onAppInit(props.course);\n }, []);\n if (props.appInitialed) {\n return (\n \n \n \n \n \n (\n {\n window.location.pathname = ROUTES.MAIN;\n }}\n />\n )}\n />\n (\n {\n window.location.pathname = ROUTES.MAIN;\n }}\n />\n )}\n />\n \n {props.userId ? : }\n \n \n );\n } else {\n return ;\n }\n};\n\nconst mapStateToProps = (state: ApplicationState) => ({\n appInitialed: state.shared.appInitialed,\n userId: getPrincipal().id\n});\n\nconst mapDispatchToProps = (dispatch: AppDispatch) => ({\n onAppInit(course: Course) {\n dispatch(initAppData(course));\n }\n});\n\nconst createPathFor = (path: string = ROUTES.REGISTER, courseId: number) => generatePath(path, { courseId: courseId });\nconst createPathWithQueryStringFor = (path: string = ROUTES.REGISTER, courseId: number) => generatePathWithQueryString(path, { courseId: courseId });\nconst SignUpAgents = connect(mapStateToProps, mapDispatchToProps)(SignUpAgentsComponent);\nexport { SignUpAgents };\n","import { AnyAction, combineReducers } from 'redux';\nimport { createLogger } from 'redux-logger';\nimport { configureStore, EnhancedStore, getDefaultMiddleware } from '@reduxjs/toolkit';\nimport { connectRouter, routerMiddleware } from 'connected-react-router';\n\nimport { configureStoreRef } from '@p2l/redux-utils';\n\nimport { CURRENT_ENVIRONMENT } from 'consts';\nimport { History } from 'history';\nimport { Environment } from 'lib';\nimport ApplicationState from './application-state';\n\nfunction configureProjectStore(reducers: object, history?: History) {\n const middleware = [...getDefaultMiddleware()];\n if (history) {\n middleware.push(routerMiddleware(history));\n }\n if (CURRENT_ENVIRONMENT !== Environment.Production) {\n middleware.push(createLogger());\n }\n const store = configureStore({\n reducer: getRootReducer(reducers, history),\n middleware: middleware\n });\n configureStoreRef(store, 'signup-agents');\n return store as EnhancedStore;\n}\n\nfunction getRootReducer(reducers: object, history?: History) {\n let allReducers: any = {\n ...reducers\n };\n\n if (history) {\n allReducers.router = connectRouter(history);\n }\n\n return combineReducers({\n ...allReducers\n });\n}\n\nexport default configureProjectStore;\n","import { NotificationStoreReducer } from '@p2l/redux-utils';\n\nimport * as UiStore from './ui-store';\nimport * as SharedStore from './shared-store';\nimport * as SignUpStore from './sign-up-store';\n\nconst reducers = {\n ui: UiStore.reducer,\n notifications: NotificationStoreReducer,\n shared: SharedStore.reducer,\n signup: SignUpStore.reducer\n};\n\nexport { reducers };\n","import { createSlice, PayloadAction } from '@reduxjs/toolkit';\nimport { push } from 'connected-react-router';\nimport { generatePath } from 'react-router';\n\nimport { IOption } from '@p2l/redux-utils';\nimport { getPrincipal } from '@p2l/config';\n\nimport { AppThunk } from './app-thunk';\nimport { configureHttp } from '../services/http-service';\nimport { Administrator } from 'agents/models/adminstrator-model';\nimport { GuideStatus, GuidesTypes } from 'agents/lib';\nimport { Course } from 'sign-up-agents/models';\nimport { setCourse } from './sign-up-store';\nimport { isUserRegistered } from 'sign-up-agents/utils/sign-up-util';\nimport { ROUTES } from 'sign-up-agents/consts/routes';\n\nexport interface SharedStore {\n appInitialed: boolean;\n domains: IOption[];\n showActionLoader: boolean;\n administrators: Administrator[];\n types: IOption[];\n statuses: IOption[];\n}\n\nexport const initialState: SharedStore = {\n appInitialed: false,\n domains: [],\n administrators: [],\n types: [],\n statuses: [],\n showActionLoader: false\n};\n\nconst slice = createSlice({\n name: 'shared',\n initialState,\n reducers: {\n setAppInitialed(state: SharedStore, action: PayloadAction) {\n state.appInitialed = true;\n },\n setDomains: (state: SharedStore, action: PayloadAction[]>) => {\n state.domains = action.payload;\n },\n triggerActionLoader: (state: SharedStore, action: PayloadAction) => {\n state.showActionLoader = action.payload;\n },\n setAdministrators: (state: SharedStore, action: PayloadAction) => {\n state.administrators = action.payload;\n },\n setStatuses: (state: SharedStore, action: PayloadAction[]>) => {\n state.statuses = action.payload;\n },\n setTypes: (state: SharedStore, action: PayloadAction[]>) => {\n state.types = action.payload;\n }\n }\n});\n\nexport const { setAppInitialed, setDomains, triggerActionLoader, setAdministrators, setStatuses, setTypes } = slice.actions;\n\nexport const reducer = slice.reducer;\n\n//thunk\nexport const initAppData = (course: Course): AppThunk => async (dispatch, store) => {\n dispatch(setCourse(course));\n configureHttp();\n\n if (getPrincipal().id > 0) {\n const isRegistered = await isUserRegistered(course.id);\n if (isRegistered) {\n dispatch(push(generatePath(ROUTES.REGISTERED_SUCCESS, { courseId: course.id })));\n }\n }\n dispatch(setAppInitialed());\n};\n","import { createSlice, PayloadAction } from '@reduxjs/toolkit';\nimport { push } from 'connected-react-router';\n\nimport { getPrincipal } from '@p2l/config';\nimport { TranslateMethod } from '@p2l/utils';\n\nimport { AppThunk } from './app-thunk';\nimport { ROUTES } from 'sign-up-agents/consts/routes';\nimport { Course, AgentCreateModel } from 'sign-up-agents/models';\nimport { createClassAgent } from 'sign-up-agents/services/agent-service';\nimport { hasEmailError, hasNameError, hasConfirmEmailError } from 'sign-up-agents/pages/sign-up-anonymous/sign-up-anonymous.utils';\nimport { generatePathWithQueryString } from 'utils/generate-path-with-query-strings';\n\nexport interface SignUpStore {\n course: Course | null;\n name: string;\n email: string;\n confirmEmail: string;\n isValidating: boolean;\n isInfinite: boolean;\n}\n\nexport const initialState: SignUpStore = {\n course: null,\n name: '',\n email: '',\n confirmEmail: '',\n isValidating: false,\n isInfinite: false\n};\n\nconst slice = createSlice({\n name: 'signup',\n initialState,\n reducers: {\n setCourse: (state: SignUpStore, action: PayloadAction) => {\n state.course = action.payload;\n },\n setName: (state: SignUpStore, action: PayloadAction) => {\n state.name = action.payload;\n },\n setEmail: (state: SignUpStore, action: PayloadAction) => {\n state.email = action.payload;\n },\n setConfirmEmail: (state: SignUpStore, action: PayloadAction) => {\n state.confirmEmail = action.payload;\n },\n setIsValidating: (state: SignUpStore, action: PayloadAction) => {\n state.isValidating = action.payload;\n },\n setIsInfinite: (state: SignUpStore, action: PayloadAction) => {\n state.isInfinite = action.payload;\n }\n }\n});\n\nexport const { setCourse, setName, setEmail, setConfirmEmail, setIsValidating, setIsInfinite } = slice.actions;\n\nexport const registerForCourse = (translate: TranslateMethod): AppThunk => async (dispatch, store) => {\n let hasErrors = false;\n if (!getPrincipal().id) {\n dispatch(setIsValidating(true));\n hasErrors =\n hasNameError(store().signup.name, translate) !== null || hasEmailError(store().signup.email, translate) !== null || hasConfirmEmailError(store().signup.email, store().signup.confirmEmail, translate) !== null;\n }\n if (!hasErrors) {\n const tempCourse = store().signup.course;\n if (tempCourse) {\n let agentCreate: AgentCreateModel = getPrincipal().id\n ? { courseId: tempCourse.id, catalogueKey: tempCourse.catalogueKey, isInfinite: store().signup.isInfinite }\n : { courseId: tempCourse.id, catalogueKey: tempCourse.catalogueKey, name: store().signup.name, email: store().signup.email, isInfinite: store().signup.isInfinite };\n\n const results = await createClassAgent(agentCreate);\n if (results.data) {\n dispatch(push(generatePathWithQueryString(ROUTES.SUCCESS, { courseId: tempCourse.id })));\n }\n }\n }\n};\n\nexport const alreadyRegistered = (): AppThunk => async (dispatch, store) => {\n const tempCourse = store().signup.course;\n if (tempCourse) {\n dispatch(push(generatePathWithQueryString(ROUTES.REGISTERED_SUCCESS, { courseId: tempCourse.id })));\n }\n};\n\nexport const reducer = slice.reducer;\n","import { createSlice } from '@reduxjs/toolkit';\n\nexport interface UiStore {\n showInitialLoader: boolean;\n showModuleLoader: boolean;\n}\n\nexport const initialState: UiStore = {\n showInitialLoader: true,\n showModuleLoader: false\n};\n\nconst slice = createSlice({\n name: 'ui',\n initialState,\n reducers: {\n showInitialLoader: (state: UiStore) => {\n state.showInitialLoader = true;\n },\n hideInitialLoader: (state: UiStore) => {\n state.showInitialLoader = false;\n },\n showModuleLoader: (state: UiStore) => {\n state.showModuleLoader = true;\n },\n hideModuleLoader: (state: UiStore) => {\n state.showModuleLoader = false;\n }\n }\n});\n\nexport const { showInitialLoader, hideInitialLoader, showModuleLoader, hideModuleLoader } = slice.actions;\n\nexport const reducer = slice.reducer;\n","import { userHasAgentForCourse } from 'sign-up-agents/services/agent-service';\n\nexport async function isUserRegistered(courseId: number): Promise {\n const hasAgent = await userHasAgentForCourse(courseId);\n return hasAgent.data.items.length > 0;\n}\n","import { Theme, createTheme as p2lAdminCreateTheme } from '@p2l/ui-admin';\nimport { brightenColor } from '@p2l/utils';\n\nexport interface ThemeProps {\n primaryColor?: string;\n}\n\nconst createTheme = (themeProps?: ThemeProps): Theme => {\n const theme = p2lAdminCreateTheme();\n\n let newTheme = {\n ...theme,\n palette: {\n ...theme.palette,\n text: {\n ...theme.palette.text,\n inverted: '#fff'\n }\n }\n };\n\n if (themeProps) {\n newTheme = {\n ...newTheme,\n palette: {\n ...newTheme.palette,\n primary: {\n ...newTheme.palette.primary,\n main: themeProps.primaryColor || newTheme.palette.primary.main,\n light: themeProps.primaryColor ? brightenColor(themeProps.primaryColor, 20) : newTheme.palette.primary.light\n }\n }\n };\n }\n\n return newTheme;\n};\n\nexport default createTheme;\n","import { generatePath } from 'react-router';\n\nexport const generatePathWithQueryString = (pattern: string, params?: { [paramName: string]: string | number | boolean | undefined }): string => {\n return generatePath(pattern, params) + window.location.search;\n};\n","const links: any = {\n adminDashboard: '/admin',\n course: '/KursusValg.aspx?id={id}',\n instructorClasses: '/Underviser/teachercourses.aspx',\n participantAgents: '/kursist/KursistAgenter',\n catalog: '/',\n instructorPage: '/instructor'\n};\n\nexport const getUrl = (link: string, params?: any): string => {\n let url: string = links[link];\n if (url && params) {\n for (let param in params) {\n let value = params[param];\n url = url.replace(new RegExp(`{${param}}`), value);\n }\n }\n\n return url;\n};\n","// The module cache\nvar __webpack_module_cache__ = {};\n\n// The require function\nfunction __webpack_require__(moduleId) {\n\t// Check if module is in cache\n\tvar cachedModule = __webpack_module_cache__[moduleId];\n\tif (cachedModule !== undefined) {\n\t\treturn cachedModule.exports;\n\t}\n\t// Create a new module (and put it into the cache)\n\tvar module = __webpack_module_cache__[moduleId] = {\n\t\tid: moduleId,\n\t\tloaded: false,\n\t\texports: {}\n\t};\n\n\t// Execute the module function\n\t__webpack_modules__[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n\t// Flag the module as loaded\n\tmodule.loaded = true;\n\n\t// Return the exports of the module\n\treturn module.exports;\n}\n\n// expose the modules object (__webpack_modules__)\n__webpack_require__.m = __webpack_modules__;\n\n","// getDefaultExport function for compatibility with non-harmony modules\n__webpack_require__.n = (module) => {\n\tvar getter = module && module.__esModule ?\n\t\t() => (module['default']) :\n\t\t() => (module);\n\t__webpack_require__.d(getter, { a: getter });\n\treturn getter;\n};","// define getter functions for harmony exports\n__webpack_require__.d = (exports, definition) => {\n\tfor(var key in definition) {\n\t\tif(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {\n\t\t\tObject.defineProperty(exports, key, { enumerable: true, get: definition[key] });\n\t\t}\n\t}\n};","__webpack_require__.g = (function() {\n\tif (typeof globalThis === 'object') return globalThis;\n\ttry {\n\t\treturn this || new Function('return this')();\n\t} catch (e) {\n\t\tif (typeof window === 'object') return window;\n\t}\n})();","__webpack_require__.hmd = (module) => {\n\tmodule = Object.create(module);\n\tif (!module.children) module.children = [];\n\tObject.defineProperty(module, 'exports', {\n\t\tenumerable: true,\n\t\tset: () => {\n\t\t\tthrow new Error('ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: ' + module.id);\n\t\t}\n\t});\n\treturn module;\n};","__webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))","// define __esModule on exports\n__webpack_require__.r = (exports) => {\n\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n\t}\n\tObject.defineProperty(exports, '__esModule', { value: true });\n};","__webpack_require__.j = 830;","__webpack_require__.p = \"/\";","// no baseURI\n\n// object to store loaded and loading chunks\n// undefined = chunk not loaded, null = chunk preloaded/prefetched\n// [resolve, reject, Promise] = chunk loading, 0 = chunk loaded\nvar installedChunks = {\n\t830: 0\n};\n\n// no chunk on demand loading\n\n// no prefetching\n\n// no preloaded\n\n// no HMR\n\n// no HMR manifest\n\n__webpack_require__.O.j = (chunkId) => (installedChunks[chunkId] === 0);\n\n// install a JSONP callback for chunk loading\nvar webpackJsonpCallback = (parentChunkLoadingFunction, data) => {\n\tvar [chunkIds, moreModules, runtime] = data;\n\t// add \"moreModules\" to the modules object,\n\t// then flag all \"chunkIds\" as loaded and fire callback\n\tvar moduleId, chunkId, i = 0;\n\tif(chunkIds.some((id) => (installedChunks[id] !== 0))) {\n\t\tfor(moduleId in moreModules) {\n\t\t\tif(__webpack_require__.o(moreModules, moduleId)) {\n\t\t\t\t__webpack_require__.m[moduleId] = moreModules[moduleId];\n\t\t\t}\n\t\t}\n\t\tif(runtime) var result = runtime(__webpack_require__);\n\t}\n\tif(parentChunkLoadingFunction) parentChunkLoadingFunction(data);\n\tfor(;i < chunkIds.length; i++) {\n\t\tchunkId = chunkIds[i];\n\t\tif(__webpack_require__.o(installedChunks, chunkId) && installedChunks[chunkId]) {\n\t\t\tinstalledChunks[chunkId][0]();\n\t\t}\n\t\tinstalledChunks[chunkId] = 0;\n\t}\n\treturn __webpack_require__.O(result);\n}\n\nvar chunkLoadingGlobal = self[\"webpackChunk_p2l_guides\"] = self[\"webpackChunk_p2l_guides\"] || [];\nchunkLoadingGlobal.forEach(webpackJsonpCallback.bind(null, 0));\nchunkLoadingGlobal.push = webpackJsonpCallback.bind(null, chunkLoadingGlobal.push.bind(chunkLoadingGlobal));","__webpack_require__.nc = undefined;","// startup\n// Load entry module and return exports\n// This entry module depends on other loaded chunks and execution need to be delayed\n__webpack_require__.O(undefined, [736], () => (__webpack_require__(26981)))\n__webpack_require__.O(undefined, [736], () => (__webpack_require__(63658)))\nvar __webpack_exports__ = __webpack_require__.O(undefined, [736], () => (__webpack_require__(35487)))\n__webpack_exports__ = __webpack_require__.O(__webpack_exports__);\n"],"names":["deferred","SIGNUP_AGENTS","reactHotLoader","leaveModule","reactHotLoaderGlobal","require","default","register","module","translate","id","value","CURRENT_ENVIRONMENT","process","webGlobal","window","global","MAIN","COURSE_GUIDE","CLASS_GUIDE","LOCAL_COURSE_GUIDE","LOCAL_CLASS_GUIDE","AGENTS","SignUpAgents","AGENTS_LIST","SUGGESTIONS","Environment","size","multiplier","split","toLowerCase","Math","round","Number","parseFloat","concat","toFixed","toString","NavigationGlobalStyleProvider","createGlobalStyle","_templateObject","PrintStyle","React","requiredServices","api","ui","ROUTES","REGISTER","REGISTER_ANONYMOUSLY","SUCCESS","REGISTERED_SUCCESS","NOT_FOUND","FORBIDDEN","initApp","config","args","history","createBrowserHistory","basename","store","configureProjectStore","reducers","theme","createTheme","ReactDOM","AppContainer","ErrorBoundaryContext","onError","error","info","console","ErrorBoundary","Provider","ConnectedRouter","CombinedThemeProvider","TranslationsProvider","culture","translations","course","document","getElementById","removeApp","element","bootstrap","serviceCollection","setConfiguration","destroy","Confirmation","props","useTranslations","Container","Row","className","Col","xs","courseName","userName","isAuthenticated","href","userProfileUrl","location","origin","mapStateToProps","state","getPrincipal","name","signup","getUrl","ConfirmationContainer","connect","RegisteredAgentConfirmation","replace","RegisteredAgentConfirmationContainer","SignUpAnonymousPage","loading","Spinner","animation","Form","controlId","type","onChange","event","onNameChanged","target","required","isInvalid","isValidating","hasNameError","placeholder","onEmailChanged","hasEmailError","email","onConfirmEmailChanged","hasConfirmEmailError","confirmEmail","FormControlLabel","control","Switch","checked","isInfinite","setIsInfinite","label","Button","variant","onClick","onRegister","showModuleLoader","mapDispatchToProps","dispatch","registerForCourse","setName","setEmail","setConfirmEmail","SignUpAnonymousPageContainer","regexEmail","length","match","SignUpPage","md","dangerouslySetInnerHTML","__html","SignUpPageContainer","async","createClassAgent","model","http","userHasAgentForCourse","courseId","oDataExpressions","ODataExpression","ODataOperator","queryUrl","ODataQueryBuilder","Where","ODataExpressionBuilder","And","BuildQuery","useTranslationsFromCookie","defaultConfiguration","useCorelationId","withCredentials","onSuccess","response","Promise","resolve","errorTranslation","status","getStoreRef","push","generatePathWithQueryString","errors","data","dictionary","Object","keys","forEach","x","getState","errorsByKey","message","map","y","errorMessage","addSnack","reject","httpService","HttpService","baseUrl","configureHttp","setBaseUrl","getApi","setAdditionalHeaders","getToken","getCulture","service","token","setAuthorizationHeader","setHeaderValue","_default","SignUpAgentsComponent","useEffect","onAppInit","appInitialed","Route","path","createPathFor","exact","component","NotFoundPage","titleLabel","messageLabel","buttonLabel","navigateTo","pathname","ForbiddenPage","userId","Redirect","to","createPathWithQueryStringFor","LinearProgress","shared","initAppData","arguments","undefined","generatePath","middleware","getDefaultMiddleware","routerMiddleware","createLogger","configureStore","reducer","getRootReducer","configureStoreRef","allReducers","router","connectRouter","combineReducers","UiStore","notifications","NotificationStoreReducer","SharedStore","SignUpStore","initialState","domains","administrators","types","statuses","showActionLoader","slice","createSlice","setAppInitialed","action","setDomains","payload","triggerActionLoader","setAdministrators","setStatuses","setTypes","actions","setCourse","isUserRegistered","setIsValidating","hasErrors","tempCourse","agentCreate","catalogueKey","alreadyRegistered","showInitialLoader","hideInitialLoader","hideModuleLoader","items","themeProps","p2lAdminCreateTheme","newTheme","palette","text","inverted","primary","main","primaryColor","light","brightenColor","pattern","params","search","links","adminDashboard","instructorClasses","participantAgents","catalog","instructorPage","link","url","param","RegExp","__webpack_module_cache__","__webpack_require__","moduleId","cachedModule","exports","loaded","__webpack_modules__","call","m","O","result","chunkIds","fn","priority","notFulfilled","Infinity","i","fulfilled","j","every","key","splice","r","n","getter","__esModule","d","a","definition","o","defineProperty","enumerable","get","g","globalThis","this","Function","e","hmd","create","children","set","Error","obj","prop","prototype","hasOwnProperty","Symbol","toStringTag","p","installedChunks","chunkId","webpackJsonpCallback","parentChunkLoadingFunction","moreModules","runtime","some","chunkLoadingGlobal","self","bind","nc","__webpack_exports__"],"sourceRoot":""}