Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
const {localConfigLoaded} = require('../../actions/localConfig');
const {loadPrintCapabilities} = require('../../actions/print');
const ConfigUtils = require('../../utils/ConfigUtils');
const LocaleUtils = require('../../utils/LocaleUtils');
const PluginsUtils = require('../../utils/PluginsUtils');
const assign = require('object-assign');
const url = require('url');
const {isObject, isArray} = require('lodash');
const urlQuery = url.parse(window.location.href, true).query;
require('./appPolyfill');
const ErrorBoundary = require('react-error-boundary').default;
/**
* Standard MapStore2 application component
*
* @name StandardApp
* @memberof components.app
* @prop {function} appStore store creator function
* @prop {object} pluginsDef plugins definition object (e.g. as loaded from plugins.js)
* @prop {object} storeOpts options for the store
* @prop {array} initialActions list of actions to be dispatched on startup
* @prop {function|object} appComponent root component for the application
* @prop {bool} printingEnabled initializes printing environment based on mapfish-print
* @prop {function} onStoreInit optional callback called just after store creation
* @prop {function} onInit optional callback called before first rendering, can delay first rendering
* to do custom initialization (e.g. force SSO login)
* @prop {string} mode current application mode (e.g. desktop/mobile) drives plugins loaded from localConfig