{"version":3,"sources":["components/api-authorization/AuthorizeRoute.js","serviceWorker.js","components/api-authorization/Login.js","components/api-authorization/Logout.js","components/api-authorization/ApiAuthorizationRoutes.js","Layout/AppMain/index.js","DemoPages/Main/index.js","reducers/index.js","index.js","config/configureStore.js","components/api-authorization/ApiAuthorizationConstants.js","components/api-authorization/AuthorizeService.js","reducers/ThemeOptions.js","assets/utils/images/sidebar/city1.jpg"],"names":["Component","Boolean","window","location","hostname","match","Login","props","state","message","undefined","action","this","LoginActions","login","getReturnUrl","LoginCallback","processLoginCallback","LoginFailed","error","URLSearchParams","search","get","QueryParameterNames","Message","setState","Profile","redirectToProfile","Register","redirectToRegister","Error","returnUrl","authService","signIn","result","status","AuthenticationResultStatus","Redirect","Success","Fail","navigateToReturnUrl","url","href","completeSignIn","fromQuery","ReturnUrl","startsWith","origin","redirectToApiAuthorizationPath","ApplicationPaths","IdentityRegisterPath","encodeURI","IdentityManagePath","apiAuthorizationPath","redirectUrl","replace","Logout","isReady","authenticated","LogoutActions","history","local","logout","LogoutCallback","processLogoutCallback","LoggedOut","populateAuthenticationState","console","log","isAuthenticated","signOut","completeSignOut","ApiAuthorizationRoutes","path","render","loginAction","LogOut","logoutAction","LogOutCallback","name","UserPages","lazy","Applications","Dashboards","Widgets","Elements","Components","Charts","Forms","Tables","Landing","Administrator","RegistrationForms","DocumentPage","Renewal","MotorProposalForm","CustomerProfile","MotorPassengerInjury","AppMain","fallback","className","type","component","ApiAuthorizationPrefix","exact","to","Main","closedSmallerSidebar","colorScheme","enableClosedSidebar","enableFixedHeader","enableFixedSidebar","enableFixedFooter","enableMobileMenu","enablePageTabsAlt","handleWidth","width","cx","React","withRouter","connect","ThemeOptions","store","createStore","combineReducers","reducers","rootElement","document","getElementById","ReactDOM","navigator","serviceWorker","ready","then","registration","unregister","ApplicationName","prefix","DefaultLoginRedirectPath","ApiAuthorizationClientConfigurationUrl","_callbacks","_nextSubscriptionId","_user","_isAuthenticated","_popUpDisabled","getUser","user","profile","ensureUserManagerInitialized","userManager","access_token","signinSilent","createArguments","silentUser","updateState","success","signinPopup","popUpUser","signinRedirect","redirect","signinCallback","signoutPopup","signoutRedirect","signoutCallback","response","data","notifySubscribers","callback","push","subscription","subscriptionId","subscriptionIndex","map","element","index","found","filter","length","splice","i","useReplaceToNavigate","fetch","ok","json","settings","automaticSilentRenew","includeIdTokenInSilentRenew","userStore","WebStorageStateStore","UserManager","events","addUserSignedOut","a","removeUser","setEnableBackgroundImage","enableBackgroundImage","setEnableFixedHeader","setEnableHeaderShadow","enableHeaderShadow","setEnableSidebarShadow","enableSidebarShadow","setEnablePageTitleIcon","enablePageTitleIcon","setEnablePageTitleSubheading","enablePageTitleSubheading","setEnablePageTabsAlt","setEnableFixedSidebar","setEnableClosedSidebar","setEnableMobileMenu","setEnableMobileMenuSmall","enableMobileMenuSmall","setEnableFixedFooter","setBackgroundColor","backgroundColor","setHeaderBackgroundColor","headerBackgroundColor","setColorScheme","setBackgroundImageOpacity","backgroundImageOpacity","setBackgroundImage","backgroundImage","reducer","sideBar6","module","exports"],"mappings":"oNAM4CA,a,gJCMxBC,QACW,cAA7BC,OAAOC,SAASC,UAEe,UAA7BF,OAAOC,SAASC,UAEhBF,OAAOC,SAASC,SAASC,MACvB,2D,mKCROC,EAAb,kDACI,WAAYC,GAAQ,IAAD,8BACf,cAAMA,IAEDC,MAAQ,CACTC,aAASC,GAJE,EADvB,gEAUQ,IAAMC,EAASC,KAAKL,MAAMI,OAC1B,OAAQA,GACJ,KAAKE,IAAaP,MACdM,KAAKE,MAAMF,KAAKG,gBAChB,MACJ,KAAKF,IAAaG,cACdJ,KAAKK,uBACL,MACJ,KAAKJ,IAAaK,YACd,IACMC,EADS,IAAIC,gBAAgBlB,OAAOC,SAASkB,QAC9BC,IAAIC,IAAoBC,SAC7CZ,KAAKa,SAAS,CAAEhB,QAASU,IACzB,MACJ,KAAKN,IAAaa,QACdd,KAAKe,oBACL,MACJ,KAAKd,IAAae,SACdhB,KAAKiB,qBACL,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M,GADP,IAEI+M,sBAAuB5M,EAAO4M,wBAGtC,IAlMwB,iCAmMpB,OAAO,2BACA/M,GADP,IAEIoG,YAAajG,EAAOiG,cAG5B,IA1M4B,qCA2MxB,OAAO,2BACApG,GADP,IAEIoN,gBAAiBjN,EAAOiN,kBAGhC,IA7MoC,6CA8MhC,OAAO,2BACApN,GADP,IAEIkN,uBAAwB/M,EAAO+M,yBAI3C,OAAOlN,I,mBCzOXuN,EAAOC,QAAU,IAA0B,oC","file":"static/js/main.241479cb.chunk.js","sourcesContent":["import React from 'react'\nimport { Component } from 'react'\nimport { Route, Redirect } from 'react-router-dom'\nimport { ApplicationPaths, QueryParameterNames } from './ApiAuthorizationConstants'\nimport authService from './AuthorizeService'\n\nexport default class AuthorizeRoute extends Component {\n constructor(props) {\n super(props);\n\n this.state = {\n ready: false,\n authenticated: false\n };\n }\n\n componentDidMount() {\n this._subscription = authService.subscribe(() => this.authenticationChanged());\n this.populateAuthenticationState();\n }\n\n componentWillUnmount() {\n authService.unsubscribe(this._subscription);\n }\n\n render() {\n const { ready, authenticated } = this.state;\n var link = document.createElement(\"a\");\n link.href = this.props.path;\n const returnUrl = `${link.protocol}//${link.host}${link.pathname}${link.search}${link.hash}`;\n const redirectUrl = `${ApplicationPaths.Login}?${QueryParameterNames.ReturnUrl}=${encodeURIComponent(returnUrl)}`\n if (!ready) {\n return
;\n } else {\n const { component: Component, ...rest } = this.props;\n return {\n if (authenticated) {\n return \n } else {\n return \n }\n }} />\n }\n }\n\n async populateAuthenticationState() {\n const authenticated = await authService.isAuthenticated();\n this.setState({ ready: true, authenticated });\n }\n\n async authenticationChanged() {\n this.setState({ ready: false, authenticated: false });\n await this.populateAuthenticationState();\n }\n}\n","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://bit.ly/CRA-PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === \"localhost\" ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === \"[::1]\" ||\n // 127.0.0.1/8 is considered localhost for IPv4.\n window.location.hostname.match(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\nexport function register(config) {\n if (process.env.NODE_ENV === \"production\" && \"serviceWorker\" in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener(\"load\", () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n \"This web app is being served cache-first by a service \" +\n \"worker. To learn more, visit https://bit.ly/CRA-PWA\"\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then((registration) => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === \"installed\") {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n \"New content is available and will be used when all \" +\n \"tabs for this page are closed. See https://bit.ly/CRA-PWA.\"\n );\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log(\"Content is cached for offline use.\");\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch((error) => {\n console.error(\"Error during service worker registration:\", error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl)\n .then((response) => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get(\"content-type\");\n if (\n response.status === 404 ||\n (contentType != null && contentType.indexOf(\"javascript\") === -1)\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then((registration) => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log(\n \"No internet connection found. App is running in offline mode.\"\n );\n });\n}\n\nexport function unregister() {\n if (\"serviceWorker\" in navigator) {\n navigator.serviceWorker.ready.then((registration) => {\n registration.unregister();\n });\n }\n}\n","import React from 'react'\nimport { Component } from 'react';\nimport authService from './AuthorizeService';\nimport { AuthenticationResultStatus } from './AuthorizeService';\nimport { LoginActions, QueryParameterNames, ApplicationPaths } from './ApiAuthorizationConstants';\n\n// The main responsibility of this component is to handle the user's login process.\n// This is the starting point for the login process. Any component that needs to authenticate\n// a user can simply perform a redirect to this component with a returnUrl query parameter and\n// let the component perform the login and return back to the return url.\nexport class Login extends Component {\n constructor(props) {\n super(props);\n\n this.state = {\n message: undefined\n };\n }\n\n componentDidMount() {\n const action = this.props.action;\n switch (action) {\n case LoginActions.Login:\n this.login(this.getReturnUrl());\n break;\n case LoginActions.LoginCallback:\n this.processLoginCallback();\n break;\n case LoginActions.LoginFailed:\n const params = new URLSearchParams(window.location.search);\n const error = params.get(QueryParameterNames.Message);\n this.setState({ message: error });\n break;\n case LoginActions.Profile:\n this.redirectToProfile();\n break;\n case LoginActions.Register:\n this.redirectToRegister();\n break;\n default:\n throw new Error(`Invalid action '${action}'`);\n }\n }\n\n render() {\n const action = this.props.action;\n const { message } = this.state;\n\n if (!!message) {\n return
{message}
\n } else {\n switch (action) {\n case LoginActions.Login:\n return (
Processing login
);\n case LoginActions.LoginCallback:\n return (
Processing login callback
);\n case LoginActions.Profile:\n case LoginActions.Register:\n return (
);\n default:\n throw new Error(`Invalid action '${action}'`);\n }\n }\n }\n\n async login(returnUrl) {\n const state = { returnUrl };\n const result = await authService.signIn(state);\n switch (result.status) {\n case AuthenticationResultStatus.Redirect:\n break;\n case AuthenticationResultStatus.Success:\n await this.navigateToReturnUrl(returnUrl);\n break;\n case AuthenticationResultStatus.Fail:\n this.setState({ message: result.message });\n break;\n default:\n throw new Error(`Invalid status result ${result.status}.`);\n }\n }\n\n async processLoginCallback() {\n const url = window.location.href;\n const result = await authService.completeSignIn(url);\n switch (result.status) {\n case AuthenticationResultStatus.Redirect:\n // There should not be any redirects as the only time completeSignIn finishes\n // is when we are doing a redirect sign in flow.\n throw new Error('Should not redirect.');\n case AuthenticationResultStatus.Success:\n await this.navigateToReturnUrl(this.getReturnUrl(result.state));\n break;\n case AuthenticationResultStatus.Fail:\n this.setState({ message: result.message });\n break;\n default:\n throw new Error(`Invalid authentication result status '${result.status}'.`);\n }\n }\n\n getReturnUrl(state) {\n const params = new URLSearchParams(window.location.search);\n const fromQuery = params.get(QueryParameterNames.ReturnUrl);\n if (fromQuery && !fromQuery.startsWith(`${window.location.origin}/`)) {\n // This is an extra check to prevent open redirects.\n throw new Error(\"Invalid return url. The return url needs to have the same origin as the current page.\")\n }\n return (state && state.returnUrl) || fromQuery || `${window.location.origin}/`;\n }\n\n redirectToRegister() {\n this.redirectToApiAuthorizationPath(`${ApplicationPaths.IdentityRegisterPath}?${QueryParameterNames.ReturnUrl}=${encodeURI(ApplicationPaths.Login)}`);\n }\n\n redirectToProfile() {\n this.redirectToApiAuthorizationPath(ApplicationPaths.IdentityManagePath);\n }\n\n redirectToApiAuthorizationPath(apiAuthorizationPath) {\n const redirectUrl = `${window.location.origin}/${apiAuthorizationPath}`;\n // It's important that we do a replace here so that when the user hits the back arrow on the\n // browser they get sent back to where it was on the app instead of to an endpoint on this\n // component.\n window.location.replace(redirectUrl);\n }\n\n navigateToReturnUrl(returnUrl) {\n // It's important that we do a replace here so that we remove the callback uri with the\n // fragment containing the tokens from the browser history.\n window.location.replace(returnUrl);\n }\n}\n","import React from 'react'\nimport { Component } from 'react';\nimport authService from './AuthorizeService';\nimport { AuthenticationResultStatus } from './AuthorizeService';\nimport { QueryParameterNames, LogoutActions, ApplicationPaths } from './ApiAuthorizationConstants';\n\n// The main responsibility of this component is to handle the user's logout process.\n// This is the starting point for the logout process, which is usually initiated when a\n// user clicks on the logout button on the LoginMenu component.\nexport class Logout extends Component {\n constructor(props) {\n super(props);\n\n this.state = {\n message: undefined,\n isReady: false,\n authenticated: false\n };\n }\n\n componentDidMount() {\n const action = this.props.action;\n switch (action) {\n case LogoutActions.Logout:\n if (!!window.history.state.state.local) {\n this.logout(this.getReturnUrl());\n } else {\n // This prevents regular links to /authentication/logout from triggering a logout\n this.setState({ isReady: true, message: \"The logout was not initiated from within the page.\" });\n }\n break;\n case LogoutActions.LogoutCallback:\n this.processLogoutCallback();\n break;\n case LogoutActions.LoggedOut:\n this.setState({ isReady: true, message: \"You successfully logged out!\" });\n break;\n default:\n throw new Error(`Invalid action '${action}'`);\n }\n\n this.populateAuthenticationState();\n }\n\n render() {\n const { isReady, message } = this.state;\n if (!isReady) {\n return
\n }\n if (!!message) {\n return (
{message}
);\n } else {\n const action = this.props.action;\n switch (action) {\n case LogoutActions.Logout:\n return (
Processing logout
);\n case LogoutActions.LogoutCallback:\n return (
Processing logout callback
);\n case LogoutActions.LoggedOut:\n return (
{message}
);\n default:\n throw new Error(`Invalid action '${action}'`);\n }\n }\n }\n\n async logout(returnUrl) {\n console.log('Logout Initiated...');\n const state = { returnUrl };\n const isauthenticated = await authService.isAuthenticated();\n if (isauthenticated) {\n const result = await authService.signOut(state);\n switch (result.status) {\n case AuthenticationResultStatus.Redirect:\n console.log('Logout Redirect');\n break;\n case AuthenticationResultStatus.Success:\n console.log('Logout Success');\n await this.navigateToReturnUrl(returnUrl);\n break;\n case AuthenticationResultStatus.Fail:\n console.log('Logout Fail');\n this.setState({ message: result.message });\n break;\n default:\n console.log('Logout Error');\n throw new Error(\"Invalid authentication result status.\");\n }\n } else {\n console.log('You successfully logged out!');\n this.setState({ message: \"You successfully logged out!\" });\n }\n }\n\n async processLogoutCallback() {\n const url = window.location.href;\n const result = await authService.completeSignOut(url);\n switch (result.status) {\n case AuthenticationResultStatus.Redirect:\n // There should not be any redirects as the only time completeAuthentication finishes\n // is when we are doing a redirect sign in flow.\n throw new Error('Should not redirect.');\n case AuthenticationResultStatus.Success:\n await this.navigateToReturnUrl(this.getReturnUrl(result.state));\n break;\n case AuthenticationResultStatus.Fail:\n this.setState({ message: result.message });\n break;\n default:\n throw new Error(\"Invalid authentication result status.\");\n }\n }\n\n async populateAuthenticationState() {\n const authenticated = await authService.isAuthenticated();\n this.setState({ isReady: true, authenticated });\n }\n\n getReturnUrl(state) {\n const params = new URLSearchParams(window.location.search);\n const fromQuery = params.get(QueryParameterNames.ReturnUrl);\n if (fromQuery && !fromQuery.startsWith(`${window.location.origin}/`)) {\n // This is an extra check to prevent open redirects.\n throw new Error(\"Invalid return url. The return url needs to have the same origin as the current page.\")\n }\n return (state && state.returnUrl) ||\n fromQuery ||\n `${window.location.origin}${ApplicationPaths.LoggedOut}`;\n }\n\n navigateToReturnUrl(returnUrl) {\n return window.location.replace(returnUrl);\n }\n}\n","import React, { Component, Fragment } from 'react';\nimport { Route } from 'react-router';\nimport { Login } from './Login'\nimport { Logout } from './Logout'\nimport { ApplicationPaths, LoginActions, LogoutActions } from './ApiAuthorizationConstants';\n\nexport default class ApiAuthorizationRoutes extends Component {\n\n render () {\n return(\n \n loginAction(LoginActions.Login)} />\n loginAction(LoginActions.LoginFailed)} />\n loginAction(LoginActions.LoginCallback)} />\n loginAction(LoginActions.Profile)} />\n loginAction(LoginActions.Register)} />\n logoutAction(LogoutActions.Logout)} />\n logoutAction(LogoutActions.LogoutCallback)} />\n logoutAction(LogoutActions.LoggedOut)} />\n );\n }\n}\n\nfunction loginAction(name){\n return ();\n}\n\nfunction logoutAction(name) {\n return ();\n}\n","import { Route, Redirect } from \"react-router-dom\";\nimport React, { Suspense, lazy, Fragment } from \"react\";\nimport Loader from \"react-loaders\";\n\nimport { ToastContainer } from \"react-toastify\";\n\nimport AuthorizeRoute from \"../../components/api-authorization/AuthorizeRoute\";\nimport ApiAuthorizationRoutes from \"../../components/api-authorization/ApiAuthorizationRoutes\";\nimport { ApplicationPaths } from \"../../components/api-authorization/ApiAuthorizationConstants\";\n\nconst UserPages = lazy(() => import(\"../../DemoPages/UserPages\"));\nconst Applications = lazy(() => import(\"../../DemoPages/Applications\"));\nconst Dashboards = lazy(() => import(\"../../DemoPages/Dashboards\"));\n\nconst Widgets = lazy(() => import(\"../../DemoPages/Widgets\"));\nconst Elements = lazy(() => import(\"../../DemoPages/Elements\"));\nconst Components = lazy(() => import(\"../../DemoPages/Components\"));\nconst Charts = lazy(() => import(\"../../DemoPages/Charts\"));\nconst Forms = lazy(() => import(\"../../DemoPages/Forms\"));\nconst Tables = lazy(() => import(\"../../DemoPages/Tables\"));\nconst Landing = lazy(() => import(\"../../DemoPages/Landing\"));\nconst Administrator = lazy(() => import(\"../../DemoPages/Administrator\"));\n\n\n\nconst RegistrationForms = lazy(() =>\n import(\"../../DemoPages/RegistrationForms\")\n);\nconst DocumentPage = lazy(() =>\n import(\"../../DemoPages/DocumentPending\")\n);\nconst Renewal = lazy(() => import(\"../../DemoPages/Renewal\"));\nconst MotorProposalForm = lazy(() =>\n import(\"../../DemoPages/MotorProposalForm\")\n);\nconst Profile = lazy(() => import(\"../../DemoPages/Profile\"));\nconst CustomerProfile = lazy(() => import(\"../../DemoPages/CustomerProfile\"));\nconst MotorPassengerInjury = lazy(() =>\n import(\"../../DemoPages/MotorPassengerInjury\")\n);\n\nconst AppMain = () => {\n return (\n \n {/* Components */}\n\n \n
\n
\n \n
\n
\n Please wait while we load all the Components examples\n \n Because this is a demonstration we load at once all the\n Components examples. This wouldn't happen in a real live app!\n \n
\n
\n \n }\n >\n \n \n \n {/* Forms */}\n\n \n
\n
\n \n
\n
\n Please wait while we load all the Forms examples\n \n Because this is a demonstration we load at once all the Forms\n examples. This wouldn't happen in a real live app!\n \n
\n
\n \n }\n >\n \n \n\n {/* Charts */}\n\n \n
\n
\n \n
\n
\n Please wait while we load all the Charts examples\n \n Because this is a demonstration we load at once all the Charts\n examples. This wouldn't happen in a real live app!\n \n
\n
\n \n }\n >\n \n \n\n {/* Tables */}\n\n \n
\n
\n \n
\n
\n Please wait while we load all the Tables examples\n \n Because this is a demonstration we load at once all the Tables\n examples. This wouldn't happen in a real live app!\n \n
\n
\n \n }\n >\n \n \n\n {/* Elements */}\n\n \n
\n
\n \n
\n
\n Please wait while we load all the Elements examples\n \n Because this is a demonstration we load at once all the\n Elements examples. This wouldn't happen in a real live app!\n \n
\n
\n \n }\n >\n \n \n\n {/* Dashboard Widgets */}\n\n \n
\n
\n \n
\n
\n Please wait while we load all the Dashboard Widgets examples\n \n Because this is a demonstration we load at once all the\n Dashboard Widgets examples. This wouldn't happen in a real\n live app!\n \n
\n
\n \n }\n >\n \n \n\n {/* Pages */}\n\n \n
\n
\n \n
\n
\n Please wait while we load all the Pages examples\n \n Because this is a demonstration we load at once all the Pages\n examples. This wouldn't happen in a real live app!\n \n
\n
\n \n }\n >\n \n \n\n {/* Pending Document */}\n\n \n
\n
\n \n
\n
\n Please wait while we load all the Pages examples\n \n Because this is a demonstration we load at once all the Pages\n examples. This wouldn't happen in a real live app!\n \n
\n
\n \n }\n >\n \n \n\n {/* Applications */}\n\n \n
\n
\n \n
\n
\n Please wait while we load all the Applications examples\n \n Because this is a demonstration we load at once all the\n Applications examples. This wouldn't happen in a real live\n app!\n \n
\n
\n \n }\n >\n \n \n\n {/* Landing */}\n\n \n
\n
\n \n
\n
\n Processing. Please wait!\n Thank you for using the LAMCO Insurance System.\n
\n
\n \n }\n >\n \n \n\n {/* Landing */}\n\n {/* Registration Forms */}\n\n \n
\n
\n \n
\n
\n Processing. Please wait!\n Thank you for using the LAMCO Insurance System.\n
\n
\n \n }\n >\n \n \n\n {/* Registration forms */}\n\n {/* Renewal Forms */}\n\n \n
\n
\n \n
\n
\n Processing. Please wait!\n Thank you for using the LAMCO Insurance System.\n
\n
\n \n }\n >\n \n \n\n {/* Renewal forms */}\n\n {/* Motor proposal Forms */}\n\n \n
\n
\n \n
\n
\n Processing. Please wait!\n Thank you for using the LAMCO Insurance System.\n
\n
\n \n }\n >\n \n \n\n {/* Motor proposal forms */}\n\n {/* Customer Profile Forms */}\n\n \n
\n
\n \n
\n
\n Processing. Please wait!\n Thank you for using the LAMCO Insurance System.\n
\n
\n \n }\n >\n \n \n\n {/* Customer Profile forms */}\n\n {/* Profile Forms */}\n\n \n
\n
\n \n
\n
\n Processing. Please wait!\n Thank you for using the LAMCO Insurance System.\n
\n
\n \n }\n >\n \n \n\n {/* Profile forms */}\n\n {/* Motor Passenger Injury Form */}\n\n \n
\n
\n \n
\n
\n Processing. Please wait!\n Thank you for using the LAMCO Insurance System.\n
\n
\n \n }\n >\n \n \n\n {/* Motor Passenger Injury Form */}\n\n {/* Administrator */}\n\n \n
\n
\n \n
\n
\n Processing. Please wait!\n Thank you for using the LAMCO Insurance System.\n
\n
\n \n }\n >\n \n \n\n {/* Administrator */}\n\n {/* Dashboards */}\n\n \n
\n
\n \n
\n
\n Please wait while we load all the Dashboards examples\n \n Because this is a demonstration, we load at once all the\n Dashboards examples. This wouldn't happen in a real live app!\n \n
\n
\n \n }\n >\n \n \n\n } />\n \n
\n );\n};\n\nexport default AppMain;\n","import React, { Fragment } from \"react\";\nimport { connect } from \"react-redux\";\nimport cx from \"classnames\";\nimport { withRouter } from \"react-router-dom\";\n\nimport ResizeDetector from \"react-resize-detector\";\n\nimport AppMain from \"../../Layout/AppMain\";\n\nclass Main extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n closedSmallerSidebar: false,\n };\n }\n\n render() {\n let {\n colorScheme,\n enableFixedHeader,\n enableFixedSidebar,\n enableFixedFooter,\n enableClosedSidebar,\n closedSmallerSidebar,\n enableMobileMenu,\n enablePageTabsAlt,\n } = this.props;\n\n return (\n (\n \n \n \n \n \n )}\n />\n );\n }\n}\n\nconst mapStateToProp = (state) => ({\n colorScheme: state.ThemeOptions.colorScheme,\n enableFixedHeader: state.ThemeOptions.enableFixedHeader,\n enableMobileMenu: state.ThemeOptions.enableMobileMenu,\n enableFixedFooter: state.ThemeOptions.enableFixedFooter,\n enableFixedSidebar: state.ThemeOptions.enableFixedSidebar,\n enableClosedSidebar: state.ThemeOptions.enableClosedSidebar,\n enablePageTabsAlt: state.ThemeOptions.enablePageTabsAlt,\n});\n\nexport default withRouter(connect(mapStateToProp)(Main));\n","import ThemeOptions from \"./ThemeOptions\";\n\nexport default {\n ThemeOptions,\n};\n","import \"./polyfills\";\nimport React from \"react\";\nimport ReactDOM from \"react-dom\";\n\nimport * as serviceWorker from \"./serviceWorker\";\n\nimport { BrowserRouter } from \"react-router-dom\";\nimport \"./assets/base.scss\";\nimport Main from \"./DemoPages/Main\";\nimport configureStore from \"./config/configureStore\";\nimport { Provider } from \"react-redux\";\n\nconst store = configureStore();\nconst rootElement = document.getElementById(\"root\");\n\nconst renderApp = (Component) => {\n ReactDOM.render(\n \n \n \n \n ,\n rootElement\n );\n};\n\nrenderApp(Main);\n\nif (module.hot) {\n module.hot.accept(\"./DemoPages/Main\", () => {\n const NextApp = require(\"./DemoPages/Main\").default;\n renderApp(NextApp);\n });\n}\nserviceWorker.unregister();\n","import { createStore, combineReducers } from \"redux\";\nimport reducers from \"../reducers\";\n\nexport default function configureStore() {\n return createStore(\n combineReducers({\n ...reducers,\n }),\n {}\n );\n}\n","export const ApplicationName = 'lamco_react';\n\nexport const QueryParameterNames = {\n ReturnUrl: 'returnUrl',\n Message: 'message'\n};\n\nexport const LogoutActions = {\n LogoutCallback: 'logout-callback',\n Logout: 'logout',\n LoggedOut: 'logged-out'\n};\n\nexport const LoginActions = {\n Login: 'login',\n LoginCallback: 'login-callback',\n LoginFailed: 'login-failed',\n Profile: 'profile',\n Register: 'register'\n};\n\nconst prefix = '/authentication';\n\nexport const ApplicationPaths = {\n DefaultLoginRedirectPath: '/',\n ApiAuthorizationClientConfigurationUrl: `/_configuration/${ApplicationName}`,\n ApiAuthorizationPrefix: prefix,\n Login: `${prefix}/${LoginActions.Login}`,\n LoginFailed: `${prefix}/${LoginActions.LoginFailed}`,\n LoginCallback: `${prefix}/${LoginActions.LoginCallback}`,\n Register: `${prefix}/${LoginActions.Register}`,\n Profile: `${prefix}/${LoginActions.Profile}`,\n LogOut: `${prefix}/${LogoutActions.Logout}`,\n //LoggedOut: `${prefix}/${LogoutActions.LoggedOut}`,\n LoggedOut: '/Account/Login',\n LogOutCallback: `${prefix}/${LogoutActions.LogoutCallback}`,\n IdentityRegisterPath: 'Identity/Account/Register',\n IdentityManagePath: 'Identity/Account/Manage'\n};\n","import { UserManager, WebStorageStateStore } from 'oidc-client';\nimport { ApplicationPaths, ApplicationName } from './ApiAuthorizationConstants';\n\nexport class AuthorizeService {\n _callbacks = [];\n _nextSubscriptionId = 0;\n _user = null;\n _isAuthenticated = false;\n\n // By default pop ups are disabled because they don't work properly on Edge.\n // If you want to enable pop up authentication simply set this flag to false.\n _popUpDisabled = true;\n\n async isAuthenticated() {\n const user = await this.getUser();\n return !!user;\n }\n\n async getUser() {\n if (this._user && this._user.profile) {\n return this._user.profile;\n }\n\n await this.ensureUserManagerInitialized();\n const user = await this.userManager.getUser();\n return user && user.profile;\n }\n\n async getAccessToken() {\n await this.ensureUserManagerInitialized();\n const user = await this.userManager.getUser();\n return user && user.access_token;\n }\n\n // We try to authenticate the user in three different ways:\n // 1) We try to see if we can authenticate the user silently. This happens\n // when the user is already logged in on the IdP and is done using a hidden iframe\n // on the client.\n // 2) We try to authenticate the user using a PopUp Window. This might fail if there is a\n // Pop-Up blocker or the user has disabled PopUps.\n // 3) If the two methods above fail, we redirect the browser to the IdP to perform a traditional\n // redirect flow.\n async signIn(state) {\n await this.ensureUserManagerInitialized();\n try {\n const silentUser = await this.userManager.signinSilent(this.createArguments());\n this.updateState(silentUser);\n return this.success(state);\n } catch (silentError) {\n // User might not be authenticated, fallback to popup authentication\n console.log(\"Silent authentication error: \", silentError);\n\n try {\n if (this._popUpDisabled) {\n throw new Error('Popup disabled. Change \\'AuthorizeService.js:AuthorizeService._popupDisabled\\' to false to enable it.')\n }\n\n const popUpUser = await this.userManager.signinPopup(this.createArguments());\n this.updateState(popUpUser);\n return this.success(state);\n } catch (popUpError) {\n if (popUpError.message === \"Popup window closed\") {\n // The user explicitly cancelled the login action by closing an opened popup.\n return this.error(\"The user closed the window.\");\n } else if (!this._popUpDisabled) {\n console.log(\"Popup authentication error: \", popUpError);\n }\n\n // PopUps might be blocked by the user, fallback to redirect\n try {\n await this.userManager.signinRedirect(this.createArguments(state));\n return this.redirect();\n } catch (redirectError) {\n console.log(\"Redirect authentication error: \", redirectError);\n return this.error(redirectError);\n }\n }\n }\n }\n\n async completeSignIn(url) {\n try {\n await this.ensureUserManagerInitialized();\n const user = await this.userManager.signinCallback(url);\n this.updateState(user);\n return this.success(user && user.state);\n } catch (error) {\n console.log('There was an error signing in: ', error);\n return this.error('There was an error signing in.');\n }\n }\n\n // We try to sign out the user in two different ways:\n // 1) We try to do a sign-out using a PopUp Window. This might fail if there is a\n // Pop-Up blocker or the user has disabled PopUps.\n // 2) If the method above fails, we redirect the browser to the IdP to perform a traditional\n // post logout redirect flow.\n async signOut(state) {\n await this.ensureUserManagerInitialized();\n try {\n if (this._popUpDisabled) {\n throw new Error('Popup disabled. Change \\'AuthorizeService.js:AuthorizeService._popupDisabled\\' to false to enable it.')\n }\n\n await this.userManager.signoutPopup(this.createArguments());\n this.updateState(undefined);\n return this.success(state);\n } catch (popupSignOutError) {\n try {\n await this.userManager.signoutRedirect(this.createArguments(state));\n return this.redirect();\n } catch (redirectSignOutError) {\n console.log(\"Redirect signout error: \", redirectSignOutError);\n return this.error(redirectSignOutError);\n }\n }\n }\n\n async completeSignOut(url) {\n await this.ensureUserManagerInitialized();\n try {\n const response = await this.userManager.signoutCallback(url);\n this.updateState(null);\n return this.success(response && response.data);\n } catch (error) {\n console.log(`There was an error trying to log out '${error}'.`);\n return this.error(error);\n }\n }\n\n updateState(user) {\n this._user = user;\n this._isAuthenticated = !!this._user;\n this.notifySubscribers();\n }\n\n subscribe(callback) {\n this._callbacks.push({ callback, subscription: this._nextSubscriptionId++ });\n return this._nextSubscriptionId - 1;\n }\n\n unsubscribe(subscriptionId) {\n const subscriptionIndex = this._callbacks\n .map((element, index) => element.subscription === subscriptionId ? { found: true, index } : { found: false })\n .filter(element => element.found === true);\n if (subscriptionIndex.length !== 1) {\n throw new Error(`Found an invalid number of subscriptions ${subscriptionIndex.length}`);\n }\n\n this._callbacks.splice(subscriptionIndex[0].index, 1);\n }\n\n notifySubscribers() {\n for (let i = 0; i < this._callbacks.length; i++) {\n const callback = this._callbacks[i].callback;\n callback();\n }\n }\n\n createArguments(state) {\n return { useReplaceToNavigate: true, data: state };\n }\n\n error(message) {\n return { status: AuthenticationResultStatus.Fail, message };\n }\n\n success(state) {\n return { status: AuthenticationResultStatus.Success, state };\n }\n\n redirect() {\n return { status: AuthenticationResultStatus.Redirect };\n }\n\n async ensureUserManagerInitialized() {\n if (this.userManager !== undefined) {\n return;\n }\n\n let response = await fetch(ApplicationPaths.ApiAuthorizationClientConfigurationUrl);\n if (!response.ok) {\n throw new Error(`Could not load settings for ApplicationName`);\n }\n \n let settings = await response.json();\n settings.automaticSilentRenew = true;\n settings.includeIdTokenInSilentRenew = true;\n settings.userStore = new WebStorageStateStore({\n prefix: ApplicationName\n });\n this.userManager = new UserManager(settings);\n this.userManager.events.addUserSignedOut(async () => {\n await this.userManager.removeUser();\n this.updateState(undefined);\n });\n }\n\n static get instance() { return authService }\n}\n\nconst authService = new AuthorizeService();\n\nexport default authService;\n\nexport const AuthenticationResultStatus = {\n Redirect: 'redirect',\n Success: 'success',\n Fail: 'fail'\n};\n","import sideBar6 from '../assets/utils/images/sidebar/city1.jpg';\n\nexport const SET_ENABLE_BACKGROUND_IMAGE = 'THEME_OPTIONS/SET_ENABLE_BACKGROUND_IMAGE';\n\nexport const SET_ENABLE_MOBILE_MENU = 'THEME_OPTIONS/SET_ENABLE_MOBILE_MENU';\nexport const SET_ENABLE_MOBILE_MENU_SMALL = 'THEME_OPTIONS/SET_ENABLE_MOBILE_MENU_SMALL';\n\nexport const SET_ENABLE_FIXED_HEADER = 'THEME_OPTIONS/SET_ENABLE_FIXED_HEADER';\nexport const SET_ENABLE_HEADER_SHADOW = 'THEME_OPTIONS/SET_ENABLE_HEADER_SHADOW';\nexport const SET_ENABLE_SIDEBAR_SHADOW = 'THEME_OPTIONS/SET_ENABLE_SIDEBAR_SHADOW';\nexport const SET_ENABLE_FIXED_SIDEBAR = 'THEME_OPTIONS/SET_ENABLE_FIXED_SIDEBAR';\nexport const SET_ENABLE_CLOSED_SIDEBAR = 'THEME_OPTIONS/SET_ENABLE_CLOSED_SIDEBAR';\nexport const SET_ENABLE_FIXED_FOOTER = 'THEME_OPTIONS/SET_ENABLE_FIXED_FOOTER';\n\nexport const SET_ENABLE_PAGETITLE_ICON = 'THEME_OPTIONS/SET_ENABLE_PAGETITLE_ICON';\nexport const SET_ENABLE_PAGETITLE_SUBHEADING = 'THEME_OPTIONS/SET_ENABLE_PAGETITLE_SUBHEADING';\nexport const SET_ENABLE_PAGE_TABS_ALT = 'THEME_OPTIONS/SET_ENABLE_PAGE_TABS_ALT';\n\nexport const SET_BACKGROUND_IMAGE = 'THEME_OPTIONS/SET_BACKGROUND_IMAGE';\nexport const SET_BACKGROUND_COLOR = 'THEME_OPTIONS/SET_BACKGROUND_COLOR';\nexport const SET_COLOR_SCHEME = 'THEME_OPTIONS/SET_COLOR_SCHEME';\nexport const SET_BACKGROUND_IMAGE_OPACITY = 'THEME_OPTIONS/SET_BACKGROUND_IMAGE_OPACITY';\n\nexport const SET_HEADER_BACKGROUND_COLOR = 'THEME_OPTIONS/SET_HEADER_BACKGROUND_COLOR';\n\n\nexport const setEnableBackgroundImage = enableBackgroundImage => ({\n type: SET_ENABLE_BACKGROUND_IMAGE,\n enableBackgroundImage\n});\n\nexport const setEnableFixedHeader = enableFixedHeader => ({\n type: SET_ENABLE_FIXED_HEADER,\n enableFixedHeader\n});\n\nexport const setEnableHeaderShadow = enableHeaderShadow => ({\n type: SET_ENABLE_HEADER_SHADOW,\n enableHeaderShadow\n});\n\nexport const setEnableSidebarShadow = enableSidebarShadow => ({\n type: SET_ENABLE_SIDEBAR_SHADOW,\n enableSidebarShadow\n});\n\nexport const setEnablePageTitleIcon = enablePageTitleIcon => ({\n type: SET_ENABLE_PAGETITLE_ICON,\n enablePageTitleIcon\n});\n\nexport const setEnablePageTitleSubheading = enablePageTitleSubheading => ({\n type: SET_ENABLE_PAGETITLE_SUBHEADING,\n enablePageTitleSubheading\n});\n\nexport const setEnablePageTabsAlt = enablePageTabsAlt => ({\n type: SET_ENABLE_PAGE_TABS_ALT,\n enablePageTabsAlt\n});\n\nexport const setEnableFixedSidebar = enableFixedSidebar => ({\n type: SET_ENABLE_FIXED_SIDEBAR,\n enableFixedSidebar\n});\n\nexport const setEnableClosedSidebar = enableClosedSidebar => ({\n type: SET_ENABLE_CLOSED_SIDEBAR,\n enableClosedSidebar\n});\n\nexport const setEnableMobileMenu = enableMobileMenu => ({\n type: SET_ENABLE_MOBILE_MENU,\n enableMobileMenu\n});\n\nexport const setEnableMobileMenuSmall = enableMobileMenuSmall => ({\n type: SET_ENABLE_MOBILE_MENU_SMALL,\n enableMobileMenuSmall\n});\n\nexport const setEnableFixedFooter = enableFixedFooter => ({\n type: SET_ENABLE_FIXED_FOOTER,\n enableFixedFooter\n});\n\nexport const setBackgroundColor = backgroundColor => ({\n type: SET_BACKGROUND_COLOR,\n backgroundColor\n});\n\nexport const setHeaderBackgroundColor = headerBackgroundColor => ({\n type: SET_HEADER_BACKGROUND_COLOR,\n headerBackgroundColor\n});\n\nexport const setColorScheme = colorScheme => ({\n type: SET_COLOR_SCHEME,\n colorScheme\n});\n\nexport const setBackgroundImageOpacity = backgroundImageOpacity => ({\n type: SET_BACKGROUND_IMAGE_OPACITY,\n backgroundImageOpacity\n});\n\nexport const setBackgroundImage = backgroundImage => ({\n type: SET_BACKGROUND_IMAGE,\n backgroundImage\n});\n\nexport default function reducer(state = {\n backgroundColor: '',\n headerBackgroundColor: '',\n enableMobileMenuSmall: '',\n enableBackgroundImage: false,\n enableClosedSidebar: false,\n enableFixedHeader: true,\n enableHeaderShadow: true,\n enableSidebarShadow: true,\n enableFixedFooter: true,\n enableFixedSidebar: true,\n colorScheme: 'white',\n backgroundImage: sideBar6,\n backgroundImageOpacity: 'opacity-06',\n enablePageTitleIcon: true,\n enablePageTitleSubheading: true,\n enablePageTabsAlt: true,\n}, action) {\n switch (action.type) {\n case SET_ENABLE_BACKGROUND_IMAGE:\n return {\n ...state,\n enableBackgroundImage: action.enableBackgroundImage\n };\n\n case SET_ENABLE_FIXED_HEADER:\n return {\n ...state,\n enableFixedHeader: action.enableFixedHeader\n };\n\n case SET_ENABLE_HEADER_SHADOW:\n return {\n ...state,\n enableHeaderShadow: action.enableHeaderShadow\n };\n\n case SET_ENABLE_SIDEBAR_SHADOW:\n return {\n ...state,\n enableSidebarShadow: action.enableSidebarShadow\n };\n\n case SET_ENABLE_PAGETITLE_ICON:\n return {\n ...state,\n enablePageTitleIcon: action.enablePageTitleIcon\n };\n\n case SET_ENABLE_PAGETITLE_SUBHEADING:\n return {\n ...state,\n enablePageTitleSubheading: action.enablePageTitleSubheading\n };\n\n case SET_ENABLE_PAGE_TABS_ALT:\n return {\n ...state,\n enablePageTabsAlt: action.enablePageTabsAlt\n };\n\n case SET_ENABLE_FIXED_SIDEBAR:\n return {\n ...state,\n enableFixedSidebar: action.enableFixedSidebar\n };\n\n case SET_ENABLE_MOBILE_MENU:\n return {\n ...state,\n enableMobileMenu: action.enableMobileMenu\n };\n\n case SET_ENABLE_MOBILE_MENU_SMALL:\n return {\n ...state,\n enableMobileMenuSmall: action.enableMobileMenuSmall\n };\n\n case SET_ENABLE_CLOSED_SIDEBAR:\n return {\n ...state,\n enableClosedSidebar: action.enableClosedSidebar\n };\n\n case SET_ENABLE_FIXED_FOOTER:\n return {\n ...state,\n enableFixedFooter: action.enableFixedFooter\n };\n\n case SET_BACKGROUND_COLOR:\n return {\n ...state,\n backgroundColor: action.backgroundColor\n };\n\n case SET_HEADER_BACKGROUND_COLOR:\n return {\n ...state,\n headerBackgroundColor: action.headerBackgroundColor\n };\n\n case SET_COLOR_SCHEME:\n return {\n ...state,\n colorScheme: action.colorScheme\n };\n\n case SET_BACKGROUND_IMAGE:\n return {\n ...state,\n backgroundImage: action.backgroundImage\n };\n\n case SET_BACKGROUND_IMAGE_OPACITY:\n return {\n ...state,\n backgroundImageOpacity: action.backgroundImageOpacity\n };\n default:\n }\n return state;\n}\n","module.exports = __webpack_public_path__ + \"static/media/city1.ebc5562d.jpg\";"],"sourceRoot":""}