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,MACzB2sC,EAAOC,QAAUR","sources":["webpack://appcontainer/./src/MicroFrontend/MicroFrontend.js","webpack://appcontainer/./src/common/constants/appNames.js","webpack://appcontainer/./src/common/constants/assetUIRoutes.js","webpack://appcontainer/./src/common/constants/controlCenterRoutes.js","webpack://appcontainer/./src/common/constants/cookieKeys.js","webpack://appcontainer/./src/common/constants/defaultLanguage.js","webpack://appcontainer/./src/common/constants/identityServerErrorCodes.js","webpack://appcontainer/./src/common/constants/mfeRoutesEnum.js","webpack://appcontainer/./src/common/constants/permissions.js","webpack://appcontainer/./src/common/utility/getCurrentApp.js","webpack://appcontainer/./src/common/utility/isMobile.js","webpack://appcontainer/./src/common/utility/localStorageUtility.js","webpack://appcontainer/./src/common/utility/updatedPush.js","webpack://appcontainer/./src/common/utility/utility.js","webpack://appcontainer/./src/modules/Common/components/I18n/Provider.js","webpack://appcontainer/./src/modules/Common/components/I18n/context.js","webpack://appcontainer/./src/services/accessRules/accountSettings/index.js","webpack://appcontainer/./src/services/accessRules/accountSettings/labels.js","webpack://appcontainer/./src/services/accessRules/accountSettings/routes.js","webpack://appcontainer/./src/services/accessRules/alertCenter/index.js","webpack://appcontainer/./src/services/accessRules/alertCenter/notifications.js","webpack://appcontainer/./src/services/accessRules/alertCenter/routes.js","webpack://appcontainer/./src/services/accessRules/contactManagement/contacts.js","webpack://appcontainer/./src/services/accessRules/contactManagement/doNotContact.js","webpack://appcontainer/./src/services/accessRules/contactManagement/groups.js","webpack://appcontainer/./src/services/accessRules/contactManagement/index.js","webpack://appcontainer/./src/services/accessRules/contactManagement/routes.js","webpack://appcontainer/./src/services/accessRules/contactManagement/schedules.js","webpack://appcontainer/./src/services/accessRules/contactManagement/selfRegistration.js","webpack://appcontainer/./src/services/accessRules/dashboard/index.js","webpack://appcontainer/./src/services/accessRules/dataDog/index.js","webpack://appcontainer/./src/services/accessRules/features/index.js","webpack://appcontainer/./src/services/accessRules/globalPermissions/administration.js","webpack://appcontainer/./src/services/accessRules/globalPermissions/index.js","webpack://appcontainer/./src/services/accessRules/globalPermissions/notifications.js","webpack://appcontainer/./src/services/accessRules/globalPermissions/userInterface.js","webpack://appcontainer/./src/services/accessRules/incidentManagement/index.js","webpack://appcontainer/./src/services/accessRules/incidentManagement/lockBox.js","webpack://appcontainer/./src/services/accessRules/incidentManagement/lookOut.js","webpack://appcontainer/./src/services/accessRules/index.js","webpack://appcontainer/./src/services/accessRules/integrations/index.js","webpack://appcontainer/./src/services/accessRules/integrations/routes.js","webpack://appcontainer/./src/services/accessRules/reporting/index.js","webpack://appcontainer/./src/services/accessRules/reporting/routes.js","webpack://appcontainer/./src/services/accessRules/socialMedia/index.js","webpack://appcontainer/./src/services/accessRules/socialMedia/socialMedia.js","webpack://appcontainer/./src/services/accessRules/solutions/index.js","webpack://appcontainer/./src/services/accessRules/solutions/routes.js","webpack://appcontainer/./src/services/accessRules/solutions/topics.js","webpack://appcontainer/./src/services/accessRules/supportAndTraining/index.js","webpack://appcontainer/./src/services/accessRules/supportAndTraining/routes.js","webpack://appcontainer/./src/services/accessRules/user/profile.js","webpack://appcontainer/./src/services/accessRules/user/settings.js","webpack://appcontainer/./src/services/accessRules/utils.js","webpack://appcontainer/./src/services/api.service.js","webpack://appcontainer/./src/services/error.handling.service.js","webpack://appcontainer/./src/services/history.service.js","webpack://appcontainer/./src/services/i18n.service.js","webpack://appcontainer/./src/services/locale.service.js","webpack://appcontainer/./src/assets/images/travel_assist_favicon.ico","webpack://appcontainer/./src/assets/images/favicon.ico","webpack://appcontainer/./src/App.tsx","webpack://appcontainer/./src/Navigation/Items/ControlCenterNav.tsx","webpack://appcontainer/./src/Navigation/SideBar/Nav.module.scss","webpack://appcontainer/./src/Navigation/SideBar/NavBar.tsx","webpack://appcontainer/./src/ResponsePortal/ResponsePortal.module.scss","webpack://appcontainer/./src/ResponsePortal/ResponsePortal.tsx","webpack://appcontainer/./src/ResponsePortal/components/ErrorToast.module.scss","webpack://appcontainer/./src/ResponsePortal/components/ErrorToast.tsx","webpack://appcontainer/./src/ResponsePortal/components/Followup.module.scss","webpack://appcontainer/./src/ResponsePortal/components/Followup.tsx","webpack://appcontainer/./src/ResponsePortal/components/Footer.module.scss","webpack://appcontainer/./src/ResponsePortal/components/Footer.tsx","webpack://appcontainer/./src/ResponsePortal/components/Header.module.scss","webpack://appcontainer/./src/ResponsePortal/components/Header.tsx","webpack://appcontainer/./src/ResponsePortal/components/Page.module.scss","webpack://appcontainer/./src/ResponsePortal/components/Page.tsx","webpack://appcontainer/./src/ResponsePortal/components/Question.module.scss","webpack://appcontainer/./src/ResponsePortal/components/Question.tsx","webpack://appcontainer/./src/ResponsePortal/components/ResponseSelection.module.scss","webpack://appcontainer/./src/ResponsePortal/components/ResponseSelection.tsx","webpack://appcontainer/./src/ResponsePortal/components/ShowResponses.module.scss","webpack://appcontainer/./src/ResponsePortal/components/ShowResponses.tsx","webpack://appcontainer/./src/ResponsePortal/components/StickyButtonBar.module.scss","webpack://appcontainer/./src/ResponsePortal/components/StickyButtonBar.tsx","webpack://appcontainer/./src/ResponsePortal/components/SuccessToast.module.scss","webpack://appcontainer/./src/ResponsePortal/components/SuccessToast.tsx","webpack://appcontainer/./src/components/BetaToastr/BetaToastr.module.scss","webpack://appcontainer/./src/components/BetaToastr/BetaToastr.tsx","webpack://appcontainer/./src/components/GroupsIcon/GroupsIcon.tsx","webpack://appcontainer/./src/components/ImpersonatorBanner/ImpersonatorBanner.module.scss","webpack://appcontainer/./src/components/ImpersonatorBanner/ImpersonatorBanner.tsx","webpack://appcontainer/./src/components/NavigationIcon/Navigation.tsx","webpack://appcontainer/./src/components/SessionTimeoutModal/SessionTimeoutModal.module.scss","webpack://appcontainer/./src/components/SessionTimeoutModal/SessionTimeoutModal.tsx","webpack://appcontainer/./src/components/TravelIcon/TravelIcon.module.scss","webpack://appcontainer/./src/components/TravelIcon/TravelIcon.tsx","webpack://appcontainer/./src/configs/SessionDefaults.ts","webpack://appcontainer/./src/configs/accountDefaults.ts","webpack://appcontainer/./src/configs/mapLayers.ts","webpack://appcontainer/./src/context/AccountContext.tsx","webpack://appcontainer/./src/context/riAccountContext.tsx","webpack://appcontainer/./src/context/sessionContext.tsx","webpack://appcontainer/./src/index.tsx","webpack://appcontainer/./src/locales/en-US/messages.ts","webpack://appcontainer/./src/modules/Common/components/DataDog/DataDog.ts","webpack://appcontainer/./src/modules/Common/components/I18n/utility.ts","webpack://appcontainer/./src/services/account.service.ts","webpack://appcontainer/./src/services/auth.service.ts","webpack://appcontainer/./src/services/config.service.ts","webpack://appcontainer/./src/services/cookie.service.ts","webpack://appcontainer/./src/services/feature.service.ts","webpack://appcontainer/./src/services/identity.service.ts","webpack://appcontainer/./src/services/jwt.service.ts","webpack://appcontainer/./src/services/map.service.ts","webpack://appcontainer/./src/services/namespace.service.ts","webpack://appcontainer/./src/services/oidc.manager.service.ts","webpack://appcontainer/./src/services/organization.service.ts","webpack://appcontainer/./src/services/permission.service.ts","webpack://appcontainer/./src/services/responseportal.service.ts","webpack://appcontainer/./src/utils/envUtilities.ts","webpack://appcontainer/./src/utils/updateDocumentMetadata.ts","webpack://appcontainer/./src/locales/ lazy ^\\.\\/.*\\/messages$ namespace object"],"sourcesContent":["import { LoadingOverlay } from '@onsolve/onsolve-ui-components';\nimport PropTypes from 'prop-types';\nimport React from 'react';\nimport LocalStorageUtility from '../common/utility/localStorageUtility';\nimport AssetUISourceFiles from '../ExternalApps/AssetUI/asset-manifest.json';\nimport HistoricalReportingSourceFiles from '../ExternalApps/HistoricalReporting/asset-manifest.json';\nimport ControlCenterSourceFiles from '../ExternalApps/ControlCenter/asset-manifest.json';\nimport CriticalCommsSourceFiles from '../ExternalApps/CriticalComms/asset-manifest.json';\nimport RISourceFiles from '../ExternalApps/RiskIntelligence/asset-manifest.json';\nimport authService from '../services/auth.service';\nimport './Microfrontend.scss';\nimport configurationService from '@services/config.service';\nimport { t } from '@lingui/macro';\n\nconst getJSFiles = (host, manifestValues, mainValue, scriptId, name) => {\n return manifestValues\n .filter((value) => value.endsWith('js'))\n .reduce((sum, value) => {\n sum.push(\n // If the script already exists, don't add it again\n !document.getElementById(value) || !document.getElementById(scriptId)\n ? new Promise((resolve) => {\n const path = `${host}${value}`;\n const script = document.createElement('script');\n\n script.id = value === mainValue ? scriptId : value;\n script.ariaLabel = name;\n script.onload = () => resolve();\n script.src = path;\n document.body.after(script);\n })\n : undefined\n );\n return sum;\n }, []);\n};\n\nconst getCSSFiles = (host, manifestValues, linkId, name) => {\n return manifestValues\n .filter((value) => value.endsWith('css'))\n .reduce((sum, value) => {\n sum.push(\n new Promise((resolve) => {\n const path = `${host}${value}`;\n const link = document.createElement('link');\n\n link.className = linkId;\n link.onload = () => resolve();\n link.rel = 'stylesheet';\n link.type = 'text/css';\n link.href = path;\n link.ariaLabel = name;\n document.head.appendChild(link);\n })\n );\n return sum;\n }, []);\n};\n\nconst getManifestFile = (name) =>\n ({\n RiskIntelligence: RISourceFiles,\n CriticalComms: CriticalCommsSourceFiles,\n ControlCenter: ControlCenterSourceFiles,\n AssetUI: AssetUISourceFiles,\n HistoricalReporting: HistoricalReportingSourceFiles,\n }[name]);\n\nclass MicroFrontend extends React.Component {\n constructor(props) {\n super(props);\n }\n\n // Link to more info about async componentDidMount: https://stackoverflow.com/questions/47970276/is-using-async-componentdidmount-good\n async componentDidMount() {\n // Still don't understand what is happening here, but the webpack chunking seems to break\n // when switching apps. Unsetting the chunk app array will ensure we refetch the references to\n // the new app being loaded in the runtime bundle\n window.webpackChunkapp = undefined;\n\n const { name, host, history, mapPreferences, setMFEi18n, locale, handleImpersonatorLogIn } = this.props;\n const environment = LocalStorageUtility.getValue('environment');\n\n if (!name) {\n return null;\n }\n\n const scriptId = `micro-frontend-script-${name}`;\n const linkId = `micro-frontend-link-${name}`;\n\n const isImageExternal = (imageSrc) => {\n const isExternal =\n imageSrc.startsWith(host) || // If image is from the current mfe host already, no need to change - we'll consider it 'external'\n !imageSrc.includes(new URL(host).host) || // If image does not contain the mfe host in the url, it's likely external\n imageSrc.startsWith('data') || // If image is data uri, ignore (consider it external)\n imageSrc.startsWith('file') || // If image is a file, ignore (consider it external)\n imageSrc.startsWith(configurationService.FileStorageServiceApiBaseUrl); // If image is from OP file service, we know it's external\n return isExternal;\n };\n\n const renderMicroFrontend = () => {\n window[`render${name}`] &&\n window[`render${name}`]({\n containerId: `${name}-container`,\n history: history,\n mapPreferences: mapPreferences,\n translationCallback: setMFEi18n,\n signOutCallback: authService.signOut,\n locale: locale,\n impersonatorCallback: handleImpersonatorLogIn,\n });\n\n // update all image sources to show apps assets\n const observer = new MutationObserver(() => {\n const images = document.getElementById(`${name}-container`)?.getElementsByTagName('img');\n\n if (images?.length) {\n Array.from(images).forEach((image) => {\n // Checking if the image source is mostly the same as the host, to not change external image sources\n // If image src is external url, no need to change it, as it will work no matter which app we are in\n if (isImageExternal(image.src)) {\n return;\n }\n const path = image.src.startsWith('http') ? new URL(image.src).pathname : image.src;\n image.src = `${host}/${path}`;\n });\n }\n });\n\n observer.observe(document.getElementById(`${name}-container`) || document.body, {\n childList: true,\n subtree: true,\n });\n };\n\n if (document.getElementById(scriptId)) {\n renderMicroFrontend();\n return;\n }\n\n const noCacheHeaders = new Headers();\n noCacheHeaders.append('pragma', 'no-cache');\n noCacheHeaders.append('cache-control', 'no-cache');\n\n const manifest =\n environment !== 'Development'\n ? await fetch(`/${name}/asset-manifest.json`, { cache: 'no-store', headers: noCacheHeaders }).then(\n (response) => response.json()\n )\n : getManifestFile(name);\n\n const manifestKeys = Object.keys(manifest['files'] || {}).length\n ? Object.keys(manifest['files'])\n : Object.keys(manifest);\n\n const originalManifestValues = Object.values(manifest['files'] || {}).length\n ? Object.values(manifest['files'])\n : Object.values(manifest);\n\n //* map /dist to the beginning of the paths for development mode\n const manifestValues = originalManifestValues.map((value) =>\n environment.toLowerCase() === 'development' ? `/dist${value}` : value\n );\n\n const [mainKey] = manifestKeys.filter((key) => key === 'main' || key === 'main.js');\n\n const mainValue = manifest[mainKey] || manifest['files'][mainKey];\n\n const promises = [\n ...getJSFiles(host, manifestValues, mainValue, scriptId, name),\n ...getCSSFiles(host, manifestValues, linkId, name),\n ];\n\n Promise.allSettled(promises).then(() => {\n renderMicroFrontend();\n });\n }\n\n componentWillUnmount() {\n const { name } = this.props;\n\n if (!name) {\n return;\n }\n\n // Remove all app style links that were added\n document.querySelectorAll(`.micro-frontend-link-${name}`).forEach((element) => element.remove());\n\n // Remove main app script that was added\n document.querySelectorAll(`#micro-frontend-script-${name}`).forEach((element) => element.remove());\n\n window[`unmount${name}`] && window[`unmount${name}`](`${name}-container`);\n }\n\n render() {\n const { name } = this.props;\n\n return (\n
\n \n
\n );\n }\n}\n\nMicroFrontend.propTypes = {\n history: PropTypes.object,\n host: PropTypes.string,\n loadCounter: PropTypes.number,\n name: PropTypes.string,\n setMFEi18n: PropTypes.func,\n handleImpersonatorLogIn: PropTypes.func,\n mapPreferences: PropTypes.object,\n};\n\nexport default MicroFrontend;\n","\n\nexport const appNames = {\n ControlCenter: 'ControlCenter',\n CriticalComms: 'CriticalComms',\n RiskIntelligence: 'RiskIntelligence',\n AssetUI: 'AssetUI',\n HistoricalReporting: 'HistoricalReporting',\n IncidentManagement: 'IncidentManagement'\n};\n","// These are all exact routes, so be sure to keep that in mind when adding any new items.\nexport const assetUIRoutes = [\n '/contacts/groups'\n]","// These are all exact routes, so be sure to keep that in mind when adding any new items.\nexport const controlCenterRoutes = [\n '/critical_communications',\n '/risk_intelligence',\n '/incident_management'\n]","const cookieKeys = {\n loggedInNamespace: 'loggedInNamespace',\n originURL: 'originURL'\n};\n\nexport default cookieKeys;\n","const defaultLanguage = {\n lcId: 'en_US',\n direction: 'LTR',\n name: 'English',\n translatedName: 'English',\n isoCode: 'en-US',\n cultureRegionCode: 'US',\n cultureDisplayName: 'English (United States)',\n cultureLanguageCode: 'en'\n};\n\nexport default defaultLanguage;\n","const identityServerErrorCodes = {\n noPermissionToLogin: '1028',\n signinLinkHasExpired: '1029'\n};\n\nexport default identityServerErrorCodes;\n","const MFERoutesEnum = {\n criticalComms: '/criticalcomms',\n riskIntelligence: '/riskintelligence',\n controlCenter: '/controlcenter'\n};\n\nexport default MFERoutesEnum;\n","// consumed by schedules module\nexport const deletePermission = 'Delete';\nexport const schedulesAdd = 'SchedulesAdd';\nexport const modify = 'Modify';\nexport const assign = 'Assign';\n\n// permissions for sidebar\nexport const godMode = 'godMode';\nexport const rootDivision = 'rootDivision';\nexport const createGroup = 'createGroup';\nexport const createNotification = 'createNotification';\nexport const useGeneral = 'useGeneral';\nexport const useEmergency = 'useEmergency';\nexport const createUser = 'createUser';\nexport const deleteGroup = 'deleteGroup';\nexport const deleteNotification = 'deleteNotification';\nexport const deleteReport = 'deleteReport';\nexport const deleteUser = 'deleteUser';\nexport const editAdHoc = 'editAdHoc';\nexport const editAni = 'editAni';\nexport const editCustomVerbiage = 'editCustomVerbiage';\nexport const editGroup = 'editGroup';\nexport const editIncident = 'editIncident';\nexport const editMapLayers = 'editMapLayers';\nexport const editNotification = 'editNotification';\nexport const editOrgNodes = 'editOrgNodes';\nexport const editPronunciation = 'editPronunciation';\nexport const editTopic = 'editTopic';\nexport const editUser = 'editUser';\nexport const initiateNotification = 'initiateNotification';\nexport const privateAccess = 'privateAccess';\nexport const setSMimeKey = 'setSMimeKey';\nexport const useTopic = 'useTopic';\nexport const viewAudit = 'viewAudit';\nexport const viewDivision = 'viewDivision';\nexport const viewGroup = 'viewGroup';\nexport const viewIncident = 'viewIncident';\nexport const viewMapLayers = 'viewMapLayers';\nexport const viewNotification = 'viewNotification';\nexport const viewReport = 'viewReport';\nexport const viewUser = 'viewUser';\nexport const adhocReports = 'adhocReports';\nexport const callBridge = 'callBridge';\nexport const cascade = 'cascade';\nexport const customReports = 'customReports';\nexport const deleteOrphanedReports = 'deleteOrphanedReports';\nexport const dtmfInitiation = 'dtmfInitiation';\nexport const dtmfLogin = 'dtmfLogin';\nexport const editMyLogin = 'editMyLogin';\nexport const editMyProfile = 'editMyProfile';\nexport const editRoles = 'editRoles';\nexport const emailInitiation = 'emailInitiation';\nexport const exportUser = 'exportUser';\nexport const gis = 'gis';\nexport const gisConfig = 'gisConfig';\nexport const grantLogin = 'grantLogin';\nexport const importUser = 'importUser';\nexport const locationManager = 'locationManager';\nexport const locationOverride = 'locationOverride';\nexport const manageApiKeys = 'manageApiKeys';\nexport const mobileInitiation = 'mobileInitiation';\nexport const myReport = 'myReport';\nexport const notificationGroups = 'notificationGroups';\nexport const notificationInbox = 'notificationInbox';\nexport const orgAdmin = 'orgAdmin';\nexport const protectedData = 'protectedData';\nexport const searchHeader = 'searchHeader';\nexport const setPriority = 'setPriority';\nexport const substituteUser = 'substituteUser';\nexport const summarySend = 'summarySend';\nexport const validateRecipient = 'validateRecipient';\nexport const viewBillAmount = 'viewBillAmount';\nexport const viewBilling = 'viewBilling';\nexport const viewDashboard = 'viewDashboard';\nexport const viewMyProfile = 'viewMyProfile';\nexport const viewOrphanedReports = 'viewOrphanedReports';\nexport const webLogin = 'webLogin';\nexport const webInitiation = 'webInitiation';\nexport const topicSubscription = 'topicSubscription';\nexport const topicSuppression = 'topicSuppression';\nexport const viewSOS = 'viewSOS';\nexport const viewLookout = 'viewLookout';\nexport const manageDeviceTypes = 'manageDeviceTypes';\nexport const roleTemplates = 'roleTemplates';\nexport const customizeDivisions = 'customizeDivisions';\nexport const viewReporting = 'viewReporting';\nexport const assignSmsProfile = 'assignSmsProfile';\nexport const editSMSList = 'editSMSList';\n\n//Schedules\nexport const createSchedule = 'createGroup';\nexport const deleteSchedule = 'deleteGroup';\nexport const editSchedule = 'editGroup';\nexport const viewSchedule = 'viewGroup';\n\n//LockBox\nexport const viewLockboxShared = 'viewLockboxShared';\nexport const editLockboxShared = 'editLockboxShared';\nexport const createLockboxShared = 'createLockboxShared';\nexport const deleteLockboxShared = 'deleteLockboxShared';\nexport const viewLockboxSecured = 'viewLockboxSecured';\nexport const editLockboxSecured = 'editLockboxSecured';\nexport const createLockboxSecured = 'createLockboxSecured';\nexport const deleteLockboxSecured = 'deleteLockboxSecured';\n\n//WeatherAndEvents\nexport const createWeatherAndEvents = 'createWeatherAndEvents';\nexport const deleteWeatherAndEvents = 'deleteWeatherAndEvents';\nexport const editWeatherAndEvents = 'editWeatherAndEvents';\nexport const viewWeatherAndEvents = 'viewWeatherAndEvents';\n\n// Control Center Access\nexport const FBA_controlcenter = 'FBA_controlcenter';\n\n// Asset UI Access\nexport const FBA_assetDatastore = 'FBA_assetDatastore';\n\n//Features by Account\nexport const FBA_RTBF = 'FBA_RTBF';\nexport const FBA_recipientSchedule = 'FBA_recipientschedule';\nexport const FBA_manageDeviceTypes = 'FBA_manageDeviceTypes';\nexport const FBA_customizeDivisions = 'FBA_customizeDivisions';\nexport const FBA_roleTemplates = 'FBA_roleTemplates';\nexport const FBA_privateAddressTypes = 'FBA_privateAddressTypes';\nexport const FBA_selfRegPortal = 'FBA_selfRegPortals';\nexport const FBA_announcementsTool = 'FBA_announcementsTool';\nexport const FBA_announcementsInbox = 'FBA_announcementsInbox';\nexport const FBA_internalConference = 'FBA_internalConference';\nexport const FBA_followUps = 'FBA_followUps';\nexport const FBA_opt_in = 'FBA_opt_in';\nexport const FBA_cascadeNotifications = 'FBA_cascadeNotifications';\nexport const FBA_displayCountryFlags = 'FBA_displayCountryFlags';\nexport const FBA_emailAttachment = 'FBA_emailAttachment';\nexport const FBA_smsSegmentCount = 'FBA_smsSegmentCount';\nexport const FBA_integrationFacebook = 'FBA_integrationFacebook';\nexport const FBA_integrationTwitter = 'FBA_integrationTwitter';\nexport const FBA_integrationMsTeams = 'FBA_integrationMsTeams';\nexport const FBA_integrations = 'FBA_integrations';\nexport const FBA_integrationSlack = 'FBA_integrationSlack';\nexport const FBA_smsProfiles = 'FBA_smsProfiles';\nexport const FBA_customtts = 'FBA_customtts';\nexport const FBA_duplicateFilters = 'FBA_duplicateFilters';\nexport const FBA_divisions = 'FBA_divisions';\nexport const FBA_subdivisions = 'FBA_subdivisions';\nexport const FBA_customReports = 'FBA_customReports';\nexport const FBA_allowBlackListedSms = 'FBA_allowBlackListedSms';\nexport const FBA_resetSmsFlagAllowed = 'FBA_resetSmsFlagAllowed';\nexport const FBA_scenarioLibrary = 'FBA_scenarioLibrary';\nexport const FBA_nextGenSendingEngine = 'FBA_nextGenSendingEngine';\nexport const weatherAndEventsEurope = 'weatherAndEventsEurope';\nexport const weatherAndEventsUSA = 'weatherAndEventsUSA';\nexport const weatherAndEventsAustralia = 'weatherAndEventsAustralia';\nexport const weatherAndEventsJapan = 'weatherAndEventsJapan';\nexport const weatherAndEventsCanada = 'weatherAndEventsCanada';\nexport const weatherAndEventsGlobal = 'weatherAndEventsGlobal';\nexport const FBA_mfa = 'FBA_mfa';\nexport const FBA_enableKatmaiReads = 'FBA_enableKatmaiReads';\nexport const FBA_lockboxShared = 'FBA_lockboxShared';\nexport const FBA_OPIncidentManagement = 'FBA_OPIncidentManagement';\nexport const FBA_doNotContact = 'FBA_doNotContact';\nexport const FBA_riskintelligenceFF = 'FBA_riskintelligenceFF';\nexport const FBA_RIHistoricalReporting = 'FBA_RIHistoricalReporting';\nexport const FBA_linkedAlerts = 'FBA_linkedAlerts';\nexport const FBA_biReportingBasicCc = 'FBA_biReportingBasicCc';\nexport const FBA_biReportingBasicTrm = 'FBA_biReportingBasicTrm';\nexport const FBA_biReportingBasicRi = 'FBA_biReportingBasicRi';\nexport const FBA_mapViewOff = 'FBA_mapViewOff';\n\n//Roles\nexport const grantLoginAccess = 'grantLoginAccess';\nexport const checkIn = 'checkIn';\nexport const quickLaunch = 'quickLaunch';\nexport const sendSOS = 'sendSOS';\nexport const sendLookout = 'sendLookout';\nexport const editEvent = 'editEvent';\nexport const viewEvent = 'viewEvent';\nexport const createEvent = 'createEvent';\nexport const deleteEvent = 'deleteEvent';\nexport const editLookout = 'editLookout';\nexport const editSOS = 'editSOS';\n//Public Feeds\nexport const viewTwitter = 'viewTwitter';\nexport const editTwitter = 'editTwitter';\nexport const useTwitter = 'useTwitter';\nexport const configureTwitter = 'configureTwitter';\n\nexport const createIntegration = 'createIntegration';\nexport const editIntegration = 'editIntegration';\nexport const viewIntegration = 'viewIntegration';\nexport const deleteIntegration = 'deleteIntegration';\n\nexport const manage2FASettings = 'manage2FASettings';\n\n//Do not Contact\nexport const createDoNotContact = 'createDoNotContact';\nexport const viewDoNotContact = 'viewDoNotContact';\nexport const editDoNotContact = 'editDoNotContact';\nexport const deleteDoNotContact = 'deleteDoNotContact';\n\n//text to keyword\nexport const FBA_ttKeyword = 'FBA_textToKeyword';\n\n//WTP\nexport const FBA_wtpCustomer = 'FBA_wtpCustomer';\n\n//Datadog\nexport const FBA_allowObservability = 'FBA_allowObservability';","/* eslint-disable linebreak-style */\nimport { appNames } from 'common/constants/appNames';\nimport PermissionService from '@services/permission.service';\nimport { assetUIRoutes } from \"common/constants/assetUIRoutes\";\n\nconst { canAccessAssetUI, canViewHistoricalReporting } = new PermissionService().permissions;\n\nconst appParams = [\n {\n appName: appNames.ControlCenter,\n paths: ['/controlCenter', '/'],\n condition: () => true\n },\n {\n appName: appNames.RiskIntelligence,\n paths: ['/riskintelligence'],\n condition: () => true\n },\n {\n appName: appNames.IncidentManagement,\n paths: ['/incident_management'],\n condition: () => true\n },\n {\n appName: appNames.CriticalComms,\n paths: ['/alerts'],\n condition: () => true\n },\n {\n appName: appNames.HistoricalReporting,\n paths: ['/eventreporting'],\n condition: () => canViewHistoricalReporting()\n },\n {\n appName: appNames.AssetUI,\n paths: assetUIRoutes,\n condition: () => canAccessAssetUI(),\n },\n];\n\nexport const getCurrentApp = () => {\n const currentLocation = window.location?.pathname.toLowerCase() ?? '';\n\n\n const {appName} = appParams.find(({paths, condition}) => {\n return paths.some(path => currentLocation.includes(path)) && condition();\n })\n\n return appName || 'OUI';\n}\n","const isMobile = {\n Android: function() {\n return navigator.userAgent.match(/Android/i);\n },\n BlackBerry: function() {\n return navigator.userAgent.match(/BlackBerry/i);\n },\n iOS: function() {\n return navigator.userAgent.match(/iPhone|iPad|iPod/i);\n },\n Opera: function() {\n return navigator.userAgent.match(/Opera Mini/i);\n },\n Windows: function() {\n return navigator.userAgent.match(/IEMobile/i);\n },\n any: function() {\n return isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows();\n }\n};\n\nexport default isMobile;\n","class LocalStorageUtility {\n static getData(key) {\n return JSON.parse(localStorage.getItem(key));\n }\n\n static getValue(key) {\n return localStorage.getItem(key);\n }\n\n static setData(key, value) {\n localStorage.setItem(key, JSON.stringify(value));\n }\n\n static selectContaining(prefix) {\n for (let key in localStorage) {\n if (!localStorage.hasOwnProperty(key)) {\n continue;\n }\n\n if (key.startsWith(prefix)) {\n return JSON.parse(localStorage.getItem(key));\n }\n }\n\n return;\n }\n\n static clear() {\n localStorage.clear();\n }\n\n static clearKeys(value) {\n Array.isArray(value) &&\n value.forEach(item => {\n localStorage.removeItem(item);\n });\n }\n\n static clearKeysContaining(prefix) {\n for (let key in localStorage) {\n if (!localStorage.hasOwnProperty(key)) {\n continue;\n }\n\n if (key.startsWith(prefix)) {\n localStorage.removeItem(key);\n }\n }\n }\n static getKeyContaining(prefix) {\n for (let key in localStorage) {\n if (!localStorage.hasOwnProperty(key)) {\n continue;\n }\n\n if (key.startsWith(prefix)) {\n return key;\n }\n }\n }\n}\n\nexport default LocalStorageUtility;\n","const routeCheck = (url = '', appName) => {\n let route = url;\n\n // If you have a match.url, it's entirely possible that the url already contains /appName here...\n const appURL = url.toLowerCase().includes(appName.toLowerCase());\n const relativePath = url.includes('./');\n\n if (!appURL && !relativePath) {\n route = url[0] == '/' ? `/${appName}${url}` : `/${appName}/${url}`;\n }\n\n return route;\n};\n\nexport const updatedPush = (push, appName) => (url, { ...optionalProps }) => {\n return Object.keys(optionalProps).length\n ? push(routeCheck(url, appName), optionalProps)\n : push(routeCheck(url, appName));\n};\n\n\nexport const updateHistoryWithFilterId = (history) => {\n const originalPush = history.push;\n\n history.push = (path, state) => {\n const currentSearchParams = new URLSearchParams(window.location.search);\n const currentFilterId = currentSearchParams.get('filterId');\n\n const newURLObject = new URL(path || window.location.pathname, window.location.href);\n const newSearchParams = newURLObject.searchParams;\n const newFilterId = newSearchParams.get('filterId');\n\n const selectedFilter = JSON.parse(localStorage.getItem('selectedFilter'));\n\n if (selectedFilter?.id) {\n newSearchParams.set('filterId', currentFilterId || newFilterId || selectedFilter.id);\n }\n\n\n newURLObject.search = newSearchParams.toString();\n path = newURLObject.pathname + newURLObject.search + newURLObject.hash;\n\n originalPush.call(history, path, state);\n };\n\n return history;\n};\n","let url = window.location.origin + '/api/';\n\nclass Utility {\n static get url() {\n return url;\n }\n}\n\nexport default Utility;\n","/* eslint-disable no-console */\nimport React, { useCallback, useEffect, useMemo, useState } from 'react';\nimport PropTypes from 'prop-types';\nimport { RawIntlProvider } from 'react-intl';\nimport { I18nBlurLoaderProvider } from '@onsolve/onsolve-ui-components';\n\nimport defaultLanguage from 'common/constants/defaultLanguage';\nimport I18nService from 'services/i18n.service';\nimport localeService from 'services/locale.service';\n\nimport { I18nContext } from './context';\nimport { i18nSetCookie } from './utility';\nimport { useLingui } from '@lingui/react';\n\nimport * as plural from 'make-plural/plurals';\n\nfunction I18nProvider({ locale, isAppLoading, children }) {\n const [language, setLanguage] = useState(defaultLanguage);\n const [intl, setIntl] = useState(I18nService.intl);\n const [loading, setLoading] = useState(true);\n const { i18n } = useLingui();\n\n async function loadLanguage(callback) {\n try {\n const { translations, ...data } = typeof callback === 'function' ? await callback() : callback;\n const config = {\n messages: translations,\n locale: 'en'\n };\n const intl = I18nService.create(config);\n const locale = data?.isoCode ?? 'en-US';\n\n const { messages } = await import(`../../../../locales/${locale}/messages`);\n i18n.load(data?.isoCode ?? 'en-US', messages);\n\n // Grabbing the plurals dynamically\n i18n.loadLocaleData({\n [locale]: { plurals: plural[locale.slice(0, 2).toLowerCase()] }\n });\n\n i18n.load(locale, translations);\n i18n.activate(locale);\n\n document.dir = data?.direction ? data.direction.toLowerCase() : 'ltr';\n setIntl(intl);\n setLanguage(data);\n } catch (e) {\n console.error(e);\n } finally {\n setLoading(false);\n }\n }\n\n useEffect(() => {\n if (!isAppLoading) {\n loadLanguage(() => localeService.init(locale ? locale : language.lcId));\n }\n }, [locale, isAppLoading]);\n\n const updateLanguage = useCallback(code => {\n setLoading(true);\n loadLanguage(() => localeService.getTranslations(code));\n i18nSetCookie(code.lcId);\n }, []);\n\n const updateLanguageWithData = useCallback(callbackResult => {\n if (typeof callbackResult === 'boolean') {\n setLoading(callbackResult);\n } else if (typeof callbackResult === 'object') {\n const { ...data } = callbackResult;\n\n loadLanguage(callbackResult);\n i18nSetCookie(data.lcId);\n }\n }, []);\n\n const value = useMemo(() => ({ loading, language, updateLanguage, updateLanguageWithData }), [\n loading,\n language,\n updateLanguage,\n updateLanguageWithData\n ]);\n\n return (\n \n \n {children}\n \n \n );\n}\n\nI18nProvider.propTypes = {\n children: PropTypes.node,\n isAppLoading: PropTypes.bool,\n locale: PropTypes.string\n};\n\nI18nProvider.defaultProps = {\n isAppLoading: false\n};\n\nexport default I18nProvider;\n","import { createContext, useContext } from 'react';\n\nimport defaultLanguage from 'common/constants/defaultLanguage';\n\nconst I18nContext = createContext({\n language: defaultLanguage,\n updateLanguage: _ => _,\n updateLanguageWithData: _ => _\n});\n\nI18nContext.displayName = 'I18nContext';\n\nfunction useI18n() {\n const context = useContext(I18nContext);\n\n if (context === undefined) {\n throw new Error(`useI18n must be used within a I18nContext`);\n }\n return context;\n}\n\nexport { I18nContext, useI18n };\n","import { default as routes } from './routes';\nimport { default as labels } from './labels';\n\nexport default {\n ...routes,\n ...labels\n};\n","import { FBA_privateAddressTypes } from 'common/constants/permissions';\n\nconst canAllowPrivateAddressTypes = permissions => !!permissions[FBA_privateAddressTypes];\n\nexport default {\n canAllowPrivateAddressTypes\n};\n","import {\n FBA_RTBF,\n FBA_allowBlackListedSms,\n FBA_customizeDivisions,\n FBA_customtts,\n FBA_divisions,\n FBA_duplicateFilters,\n FBA_manageDeviceTypes,\n FBA_resetSmsFlagAllowed,\n FBA_smsProfiles,\n FBA_subdivisions,\n assignSmsProfile,\n editAni,\n editCustomVerbiage,\n editLookout,\n editOrgNodes,\n editRoles,\n editSMSList,\n editSOS,\n grantLogin,\n orgAdmin,\n protectedData,\n setSMimeKey,\n viewDivision,\n viewLookout,\n viewReport,\n viewSOS,\n viewUser\n} from 'common/constants/permissions';\n\n// Account Defaults\nconst canViewLabels = permissions => !!permissions[FBA_manageDeviceTypes] && !!permissions[orgAdmin];\n\n// Account Structure\nconst canViewDataHierarchy = permissions => !!permissions[viewDivision];\n\nconst canViewUsers = permissions => {\n return !!permissions[grantLogin] && !!permissions[viewUser];\n};\n\nconst canViewUsersNew = permissions => permissions[viewUser];\n\nconst canViewRoles = permissions => !!permissions[editRoles] && !!permissions[viewDivision];\n\nconst canEditRoles = permissions => !!permissions[editRoles] && !!permissions[editOrgNodes];\n\nconst canViewManageDivisionSMIMEKeys = permissions => !!permissions[setSMimeKey];\n\nconst canViewMoveDivisions = permissions => !!permissions[editRoles];\n\n// Branding\nconst canViewCustomVerbiage = permissions => !!permissions[editCustomVerbiage] && !!permissions[FBA_customizeDivisions];\n\n// Delivery Settings\nconst canViewGeneralOptions = permissions => !!permissions[orgAdmin];\n\nconst canViewDivisionANI = permissions => !!permissions[orgAdmin];\n\nconst canViewCallThrottling = permissions => !!permissions[editAni];\n\n// Device Settings\nconst canViewPriority = permissions => !!permissions[orgAdmin];\n\nconst canViewRetrySettings = permissions => !!permissions[orgAdmin];\n\nconst canViewEmail = permissions => !!permissions[orgAdmin];\n\nconst canViewSMS = permissions => !!permissions[orgAdmin];\n\nconst canViewVoice = permissions => !!permissions[orgAdmin];\n\n// Security\nconst canViewProtectedDataFields = permissions => !!permissions[orgAdmin] && !!permissions[protectedData];\n\nconst canViewDataSubjectRights = permissions => !!permissions[FBA_RTBF];\n\n// Alert module\nconst canViewAlertRetrieval = permissions => !!permissions[orgAdmin];\n\nconst canViewAllowedSMS = permissions => !!permissions[orgAdmin] && !!permissions[FBA_resetSmsFlagAllowed];\n\nconst canViewDuplicateFilters = permissions => !!permissions[orgAdmin] && !!permissions[FBA_duplicateFilters];\n\nconst canViewAssignSmsProfiles = permissions => !!permissions[assignSmsProfile] && !!permissions[FBA_smsProfiles];\n\nconst canViewManageBlockedSMS = permissions => !!permissions[editSMSList] && !!permissions[FBA_allowBlackListedSms];\n\nconst canViewEditTSSVoices = permissions =>\n !!permissions[editRoles] &&\n !!permissions[FBA_customtts] &&\n (!!permissions[FBA_divisions] || !!permissions[FBA_subdivisions]);\n\nconst canViewSuppressedAlert = permissions => !!permissions[viewReport];\n\nconst canViewAlertOptions = permissions => !!permissions[orgAdmin];\n\nconst canViewLookOut = permissions => !!permissions[viewLookout];\nconst canViewSOS = permissions => !!permissions[viewSOS];\nconst canEditLookOut = permissions => !!permissions[editLookout];\nconst canEditSOS = permissions => !!permissions[editSOS];\n\nexport default {\n canViewAlertOptions,\n canViewLabels,\n canViewDataHierarchy,\n canViewUsers,\n canViewRoles,\n canEditRoles,\n canViewCustomVerbiage,\n canViewGeneralOptions,\n canViewRetrySettings,\n canViewPriority,\n canViewEmail,\n canViewSMS,\n canViewVoice,\n canViewProtectedDataFields,\n canViewDataSubjectRights,\n canViewCallThrottling,\n canViewDivisionANI,\n canViewAlertRetrieval,\n canViewAllowedSMS,\n canViewDuplicateFilters,\n canViewAssignSmsProfiles,\n canViewManageBlockedSMS,\n canViewEditTSSVoices,\n canViewSuppressedAlert,\n canViewManageDivisionSMIMEKeys,\n canViewMoveDivisions,\n canViewUsersNew,\n canViewLookOut,\n canViewSOS,\n canEditLookOut,\n canEditSOS\n};\n","import { default as notifications } from './notifications';\nimport { default as routes } from './routes';\n\nexport default {\n ...notifications,\n ...routes\n};\n","import {\n FBA_scenarioLibrary,\n createNotification,\n deleteNotification,\n editNotification,\n initiateNotification,\n useEmergency,\n useGeneral,\n viewNotification\n} from 'common/constants/permissions';\n\nimport { checkResourceAccessByDivisions } from '../utils';\n\nconst canEditNotification = permissions => !!permissions[editNotification];\nconst canViewNotification = permissions => !!permissions[viewNotification];\nconst canCreateNotification = permissions => !!permissions[createNotification];\nconst canUseGeneral = permissions => !!permissions[useGeneral];\nconst canUseEmergency = permissions => !!permissions[useEmergency];\nconst canManageScenarioLibrary = permissions => !!permissions[FBA_scenarioLibrary];\n\nconst canDeleteNotification = (permissions, params) => {\n if (!params) {\n return !!permissions[deleteNotification];\n }\n\n return checkResourceAccessByDivisions(deleteNotification, params);\n};\n\nconst canInitiateNotification = (permissions, params) => {\n if (!params) {\n return !!permissions[initiateNotification];\n }\n\n return checkResourceAccessByDivisions(initiateNotification, params);\n};\n\nexport default {\n canEditNotification,\n canViewNotification,\n canCreateNotification,\n canDeleteNotification,\n canInitiateNotification,\n canManageScenarioLibrary,\n canUseGeneral,\n canUseEmergency\n};\n","import { notificationGroups, notificationInbox, FBA_linkedAlerts } from 'common/constants/permissions';\n\nimport notifications from './notifications';\n\nconst canViewAlertInbox = permissions => permissions[notificationInbox];\n\nconst canViewAlerts = permissions =>\n notifications.canInitiateNotification(permissions) || notifications.canViewNotification(permissions);\n\nconst canViewScheduledAlerts = permissions =>\n notifications.canInitiateNotification(permissions) || notifications.canViewNotification(permissions);\n\nconst canViewBulkAlerts = permissions =>\n !!permissions[FBA_linkedAlerts] && \n (notifications.canInitiateNotification(permissions) || notifications.canViewNotification(permissions)) &&\n permissions[notificationGroups];\n\nconst canViewScenarioLibrary = permissions => {\n return notifications.canCreateNotification(permissions) && notifications.canManageScenarioLibrary(permissions);\n};\n\nexport default {\n canViewAlertInbox,\n canViewAlerts,\n canViewScheduledAlerts,\n canViewBulkAlerts,\n canViewScenarioLibrary\n};\n","import { createUser, deleteUser, exportUser, grantLogin, importUser } from 'common/constants/permissions';\n\nconst canCreateContact = permissions => !!permissions[createUser];\nconst canDeleteContact = permissions => !!permissions[deleteUser];\nconst canGrantLoginAccess = permissions => !!permissions[grantLogin];\nconst canImportContacts = permissions => !!permissions[importUser];\nconst canExportContacts = permissions => !!permissions[exportUser];\n\nexport default {\n canCreateContact,\n canDeleteContact,\n canGrantLoginAccess,\n canImportContacts,\n canExportContacts\n};\n","import * as permissionNames from 'common/constants/permissions';\nimport { getFeature } from 'services/feature.service';\n\nconst canManageDoNotContact = permissions => {\n return (\n !!permissions[permissionNames.FBA_doNotContact] && !!permissions.viewDoNotContact && getFeature('doNotContact')\n );\n};\n\nexport default {\n canManageDoNotContact\n};\n","import { deleteGroup } from 'common/constants/permissions';\n\nconst canDeleteGroup = permissions => permissions[deleteGroup] || [];\n\nexport default {\n canDeleteGroup\n};\n","import { default as groups } from './groups';\nimport { default as routes } from './routes';\nimport { default as schedules } from './schedules';\nimport { default as selfRegistration } from './selfRegistration';\nimport { default as contacts } from './contacts';\nimport { default as doNotContact } from './doNotContact';\n\nexport default {\n ...routes,\n ...schedules,\n ...groups,\n ...selfRegistration,\n ...contacts,\n ...doNotContact\n};\n","import { FBA_recipientSchedule, createGroup, editUser, viewGroup, viewUser } from 'common/constants/permissions';\n\nimport { checkResourceAccessByDivisions } from '../utils';\n\nconst canViewGroups = permissions => !!permissions[viewGroup];\n\nconst canViewContacts = (permissions, params) => {\n if (!params) {\n return !!permissions[viewUser];\n }\n return checkResourceAccessByDivisions(viewUser, params);\n};\n\nconst canViewSchedules = permissions => !!permissions[FBA_recipientSchedule];\n\nconst canCreateGroups = permissions => !!permissions[createGroup];\n\nconst canEditContacts = (permissions, params) => {\n if (!params) {\n return !!permissions[editUser];\n }\n\n return checkResourceAccessByDivisions(editUser, params);\n};\n\nexport default {\n canViewGroups,\n canViewContacts,\n canViewSchedules,\n canCreateGroups,\n canEditContacts\n};\n","import { createSchedule, deleteSchedule, editSchedule, viewSchedule } from 'common/constants/permissions';\n\nimport features from '../features';\nimport { checkResourceAccessByDivisions } from '../utils';\n\nconst canCreateSchedule = permissions => {\n return !!permissions[createSchedule];\n};\n\nconst canAssignSchedule = (/*{ permissions }*/) => true;\n\nconst canDeleteSchedule = (permissions, params) => {\n if (!params) {\n return !!permissions[deleteSchedule];\n }\n\n //in case of multiple resourceDivisions every of them need to have permission\n return checkResourceAccessByDivisions(deleteSchedule, params);\n};\nconst canEditSchedule = (permissions, params) => {\n if (!params) {\n return !!permissions[editSchedule];\n }\n\n return checkResourceAccessByDivisions(editSchedule, params);\n};\n\nconst canViewSchedule = permissions => !!permissions[viewSchedule] && features.canManageRecipientSchedule(permissions);\n\nexport default {\n canCreateSchedule,\n canAssignSchedule,\n canDeleteSchedule,\n canEditSchedule,\n canViewSchedule\n};\n","import * as permissionNames from 'common/constants/permissions';\n\nconst canManageSelfRegPortals = permissions => {\n return !!permissions[permissionNames.FBA_selfRegPortal] && !!permissions[permissionNames.orgAdmin];\n};\n\nexport default {\n canManageSelfRegPortals\n};\n","import { viewAudit } from 'common/constants/permissions';\n\nconst canViewAudit = permissions => !!permissions[viewAudit];\n\nexport default {\n canViewAudit\n};\n","import {\n FBA_allowObservability\n} from 'common/constants/permissions';\n\n\nconst canUseDatadogRUM = permissions => !!permissions[FBA_allowObservability];\n\n\nexport default {\n canUseDatadogRUM,\n};\n","import {\n FBA_cascadeNotifications,\n FBA_displayCountryFlags,\n FBA_emailAttachment,\n FBA_enableKatmaiReads,\n FBA_followUps,\n FBA_integrationFacebook,\n FBA_integrationMsTeams,\n FBA_integrationSlack,\n FBA_integrationTwitter,\n FBA_integrations,\n FBA_internalConference,\n FBA_lockboxShared,\n FBA_mfa,\n FBA_opt_in,\n FBA_recipientSchedule,\n FBA_scenarioLibrary,\n FBA_smsSegmentCount,\n FBA_riskintelligenceFF,\n FBA_nextGenSendingEngine,\n FBA_assetDatastore,\n FBA_mapViewOff,\n createDoNotContact,\n deleteDoNotContact,\n editDoNotContact,\n viewDoNotContact\n} from 'common/constants/permissions';\n\nconst canDisplayCountryFlags = permissions => !!permissions[FBA_displayCountryFlags];\nconst canManageRecipientSchedule = permissions => !!permissions[FBA_recipientSchedule];\nconst canManageInternalConferenceResponse = permissions => !!permissions[FBA_internalConference];\nconst canManageTwitter = permissions => !!permissions[FBA_integrationTwitter];\nconst canManageFollowUps = permissions => !!permissions[FBA_followUps];\nconst canManageSmsOptIn = permissions => !!permissions[FBA_opt_in];\nconst canManageCascadeNotifications = permissions => !!permissions[FBA_cascadeNotifications];\nconst canManageEmailAttachment = permissions => !!permissions[FBA_emailAttachment];\nconst canManageSMSSegments = permissions => !!permissions[FBA_smsSegmentCount];\nconst canManageScenarioLibrary = permissions => !!permissions[FBA_scenarioLibrary];\nconst canViewMFA = permissions => !!permissions[FBA_mfa];\nconst canViewAdvancedContactsFilter = permissions => !!permissions[FBA_enableKatmaiReads];\nconst canViewAdvancedGroupFilter = permissions => !!permissions[FBA_enableKatmaiReads];\nconst canManageIntegrations = permissions => !!permissions[FBA_integrations];\nconst canManageFacebook = permissions => !!permissions[FBA_integrationFacebook];\nconst canManageSlack = permissions => !!permissions[FBA_integrationSlack];\nconst canManageMSTeams = permissions => !!permissions[FBA_integrationMsTeams];\nconst canManageLockBox = permissions => !!permissions[FBA_lockboxShared];\nconst canManageRiskIntelligence = permissions => !!permissions[FBA_riskintelligenceFF];\nconst canCreateDoNotContact = permissions => !!permissions[createDoNotContact];\nconst canViewDoNotContact = permissions => !!permissions[viewDoNotContact];\nconst canEditDoNotContact = permissions => !!permissions[editDoNotContact];\nconst canDeleteDoNotContact = permissions => !!permissions[deleteDoNotContact];\nconst usesNextGenSendingEngine = permissions => !!permissions[FBA_nextGenSendingEngine];\nconst canAccessAssetUI = permissions => !!permissions[FBA_assetDatastore];\nconst canViewAssetDataStore = permissions => !!permissions[FBA_assetDatastore];\nconst canViewMapOff = (permissions) => !!permissions[FBA_mapViewOff];\n\nexport default {\n canDisplayCountryFlags,\n canManageRecipientSchedule,\n canManageInternalConferenceResponse,\n canManageFollowUps,\n canManageSmsOptIn,\n canManageCascadeNotifications,\n canManageEmailAttachment,\n canManageSMSSegments,\n canManageTwitter,\n canManageScenarioLibrary,\n canViewMFA,\n canViewAdvancedContactsFilter,\n canViewAdvancedGroupFilter,\n canManageIntegrations,\n canManageFacebook,\n canManageSlack,\n canManageMSTeams,\n canManageLockBox,\n canCreateDoNotContact,\n canEditDoNotContact,\n canViewDoNotContact,\n canDeleteDoNotContact,\n canManageRiskIntelligence,\n usesNextGenSendingEngine,\n canAccessAssetUI,\n canViewAssetDataStore,\n canViewMapOff\n};\n","import { orgAdmin } from 'common/constants/permissions';\n\nconst canOrganizationAdmin = permissions => !!permissions[orgAdmin];\n\n/*\n\nconst canNotificationDashboard = permissions => false;\nconst canEditGisConfiguration = permissions => false;\n\n*/\nexport default {\n canOrganizationAdmin\n};\n","import { default as notifications } from './notifications';\nimport { default as administration } from './administration';\nimport { default as userInterface } from './userInterface';\n\nexport default {\n ...notifications,\n ...administration,\n ...userInterface\n};\n","import { webInitiation } from 'common/constants/permissions';\n\nconst canWebInitiationNotification = permissions => !!permissions[webInitiation];\n\nexport default {\n canWebInitiationNotification\n};\n","import { summarySend } from 'common/constants/permissions';\n\nconst canSendFromShowAll = permissions => !!permissions[summarySend];\n\nexport default {\n canSendFromShowAll\n};\n","import { default as lookOut } from './lookOut';\nimport {\n canCreateSharedLockBoxFile,\n canDeleteSharedLockBoxFile,\n canEditSharedLockBoxFile,\n canViewLockBox\n} from './lockBox';\nimport { FBA_OPIncidentManagement } from 'common/constants/permissions';\n\nexport const canViewIncidentManagement = permissions => !!permissions[FBA_OPIncidentManagement];\n\nexport default {\n ...lookOut,\n canViewLockBox,\n canCreateSharedLockBoxFile,\n canDeleteSharedLockBoxFile,\n canEditSharedLockBoxFile,\n canViewIncidentManagement\n};\n","import {\n createLockboxShared,\n deleteLockboxShared,\n editLockboxShared,\n viewLockboxShared,\n viewLockboxSecured\n} from 'common/constants/permissions';\n\nimport { checkResourceAccessByDivisions } from '../utils';\nimport features from '../features';\n\nexport const canViewLockBox = permissions => (!!permissions[viewLockboxShared] || !!permissions[viewLockboxSecured]) && features.canManageLockBox(permissions);\n\nexport const canCreateSharedLockBoxFile = permissions => !!permissions[createLockboxShared];\n\nexport const canEditSharedLockBoxFile = (permissions, params) => {\n if (!params) {\n return !!permissions[editLockboxShared];\n }\n\n return checkResourceAccessByDivisions(editLockboxShared, params);\n};\n\nexport const canDeleteSharedLockBoxFile = (permissions, params) => {\n if (!params) {\n return !!permissions[deleteLockboxShared];\n }\n\n return checkResourceAccessByDivisions(deleteLockboxShared, params);\n};\n","import { editIncident } from 'common/constants/permissions';\n\nconst canEditIncident = permissions => !!permissions[editIncident];\n\nexport default {\n canEditIncident\n};\n","import accountSettings from './accountSettings';\nimport alertCenter from './alertCenter';\nimport contactManagement from './contactManagement';\nimport dashboard from './dashboard';\nimport features from './features';\nimport globalPermissions from './globalPermissions';\nimport incidentManagement from './incidentManagement';\nimport integrations from './integrations';\nimport reporting from './reporting';\nimport socialMedia from './socialMedia';\nimport solutions from './solutions';\nimport supportAndTraining from './supportAndTraining';\nimport { profile, settings } from './user';\nimport dataDog from './dataDog';\n\nexport default {\n ...features,\n ...globalPermissions,\n ...contactManagement,\n ...accountSettings,\n ...alertCenter,\n ...integrations,\n ...incidentManagement,\n ...reporting,\n ...solutions,\n ...profile,\n ...settings,\n ...supportAndTraining,\n ...dashboard,\n ...socialMedia,\n ...dataDog\n};\n","import { default as routes } from './routes';\n\nexport default {\n ...routes\n};\n","import { manageApiKeys } from 'common/constants/permissions';\n\nconst canViewAPIKeys = permissions => permissions[manageApiKeys];\n\nexport default {\n canViewAPIKeys\n};\n","import { default as routes } from './routes';\n\nexport default {\n ...routes\n};\n","import {\n FBA_customReports,\n FBA_RIHistoricalReporting,\n customReports,\n editAdHoc,\n myReport,\n viewAudit,\n viewOrphanedReports,\n viewReport,\n viewReporting,\n FBA_biReportingBasicRi,\n FBA_biReportingBasicTrm,\n FBA_biReportingBasicCc,\n FBA_wtpCustomer,\n} from 'common/constants/permissions';\n\nimport globalPermissions from '../globalPermissions';\n\nconst canViewAdHocReports = (permissions) =>\n !!permissions[editAdHoc] &&\n (!!permissions[myReport] || !!permissions[viewOrphanedReports] || !!permissions[viewReport]);\n\nconst canViewAlertHistory = (permissions) =>\n !!permissions[myReport] || !!permissions[viewOrphanedReports] || !!permissions[viewReport];\n\nconst canViewCustomReports = (permissions) => !!permissions[customReports] && !!permissions[FBA_customReports];\n\nconst canViewHistoricalReporting = (permissions) => !!permissions[FBA_RIHistoricalReporting];\n\nconst canViewReporting = (permissions) => !!permissions[viewReporting];\n\nconst canViewUsage = (permissions) => globalPermissions.canOrganizationAdmin(permissions);\n\nconst canViewAuditTrail = (permissions) => !!permissions[viewAudit];\n\nconst canViewBIReporting = (permissions) =>\n !!permissions[FBA_biReportingBasicRi] ||\n !!permissions[FBA_biReportingBasicTrm] ||\n !!permissions[FBA_biReportingBasicCc];\n\nconst canViewWTPCustomer = (permissions) => !!permissions[FBA_wtpCustomer];\n\nexport default {\n canViewAdHocReports,\n canViewAlertHistory,\n canViewHistoricalReporting,\n canViewAuditTrail,\n canViewCustomReports,\n canViewReporting,\n canViewUsage,\n canViewBIReporting,\n canViewWTPCustomer,\n};\n","import { default as socialMedia } from './socialMedia';\n\nexport default {\n ...socialMedia\n};\n","import { configureTwitter, editTwitter, useTwitter, viewTwitter } from 'common/constants/permissions';\n\nconst canViewTwitter = permissions => !!permissions[viewTwitter];\nconst canEditTwitter = permissions => !!permissions[editTwitter];\nconst canUseTwitter = permissions => !!permissions[useTwitter];\nconst canConfigureTwitter = permissions => !!permissions[configureTwitter];\n\nexport default {\n canConfigureTwitter,\n canEditTwitter,\n canUseTwitter,\n canViewTwitter\n};\n","import { default as routes } from './routes';\nimport { default as topics } from './topics';\n\nexport default {\n ...routes,\n ...topics\n};\n","import {\n useTopic,\n viewWeatherAndEvents,\n weatherAndEventsAustralia,\n weatherAndEventsCanada,\n weatherAndEventsEurope,\n weatherAndEventsGlobal,\n weatherAndEventsJapan,\n weatherAndEventsUSA,\n FBA_ttKeyword,\n} from 'common/constants/permissions';\n\nconst canViewTopics = (permissions) => !!permissions[useTopic];\n\nconst canViewWeatherAndEvents = (permissions) =>\n [\n weatherAndEventsAustralia,\n weatherAndEventsCanada,\n weatherAndEventsEurope,\n weatherAndEventsJapan,\n weatherAndEventsUSA,\n weatherAndEventsGlobal,\n ].some((x) => permissions.hasOwnProperty(x)) && permissions.hasOwnProperty(viewWeatherAndEvents);\n\nconst canManageTtKeyword = (permissions) => !!permissions[FBA_ttKeyword];\n\nexport default {\n canViewTopics,\n canViewWeatherAndEvents,\n canManageTtKeyword,\n};\n","import { editTopic } from 'common/constants/permissions';\n\nconst canEditTopic = permissions => !!permissions[editTopic];\n\nexport default {\n canEditTopic\n};\n","import { default as routes } from './routes';\n\nexport default {\n ...routes\n};\n","import { FBA_announcementsInbox, FBA_announcementsTool, orgAdmin } from 'common/constants/permissions';\n\nconst canViewAnnouncementsTool = permissions => !!permissions[orgAdmin] && !!permissions[FBA_announcementsTool];\nconst canViewAnnouncements = permissions => !!permissions[FBA_announcementsInbox];\n\nexport default {\n canViewAnnouncementsTool,\n canViewAnnouncements\n};\n","import { checkIn, editMyProfile, viewMyProfile } from 'common/constants/permissions';\n\nconst canViewMyProfile = permissions => !!permissions[viewMyProfile];\nconst canViewCheckIn = permissions => !!permissions[checkIn];\nconst canEditMyProfile = permissions => !!permissions[editMyProfile];\n\nexport default {\n canViewMyProfile,\n canViewCheckIn,\n canEditMyProfile\n};\n","import { manage2FASettings } from 'common/constants/permissions';\n\nfunction canManageMFASettings(permissions) {\n return !!permissions[manage2FASettings];\n}\n\nexport default {\n canManageMFASettings\n};\n","export function checkResourceAccessByDivisions(permissionName, params = {}) {\n const { divisions = [], resourceDivisions = [] } = params;\n const resourceDivisionsArray = Array.isArray(resourceDivisions) ? resourceDivisions : [resourceDivisions];\n\n return divisions.some(\n ({ uuid, definedPermissions }) =>\n resourceDivisionsArray.includes(uuid) && definedPermissions.includes(permissionName)\n );\n}\n","/* eslint-disable no-unused-vars */\nimport axios from 'axios';\nimport { stringify } from 'qs';\nimport { fp as _ } from '@onsolve/onsolve-ui-components';\n\nimport Utility from '../common/utility/utility';\n\nimport historyService from './history.service';\nimport jwtService from './jwt.service';\n\nconst apiWhiteList = ['/api/signin', '/res/locales[.]json', '/actions/verbiageLookup/.*'];\nconst regexWhiteList = new RegExp(`^(${apiWhiteList.join('|')})$`);\nconst responseInterceptors = [handleResponseInterception, handleResponseErrorInterception];\n\naxios.defaults.headers.common = {\n 'Content-Type': 'application/json'\n};\n\nconst getResponseInterceptors = params => params.responseInterceptors || responseInterceptors;\n\nconst responseBodyWithHeaders = (headersToInclude, responseSelector) => {\n return res => {\n return {\n data: responseSelector(res),\n headers: _.pick(res.headers, headersToInclude)\n };\n };\n};\n\nconst createHttpClient = ({\n baseURL = Utility.url,\n headers = {},\n paramsSerializerConfig = { arrayFormat: 'repeat' },\n params = {}\n} = {}) => {\n const client = axios.create({ baseURL, headers });\n\n client.interceptors.request.use(handleRequestInterception);\n client.interceptors.response.use(...getResponseInterceptors(params));\n client.defaults.paramsSerializer = params => stringify(params, { ...paramsSerializerConfig, encode: false });\n return client;\n};\n\nclass ApiService {\n constructor(baseURL, options = {}) {\n const { paramsSerializerConfig, headers, params } = options;\n\n this.baseURL = baseURL;\n this.client = createHttpClient({ baseURL, paramsSerializerConfig, headers, params });\n }\n\n all(...requestsArray) {\n return axios.all(requestsArray);\n }\n\n get(resource, params = {}) {\n return this.client.get(resource, { params });\n }\n\n getWithHeaders(\n resource,\n params = {},\n requestHeaders = {},\n responseHeaders = [],\n responseSelector = res => res.data.data,\n responseType = ''\n ) {\n const instance = axios.create({ headers: _.assign({}, requestHeaders), responseType: responseType });\n\n instance.interceptors.request.use(handleRequestInterception);\n instance.interceptors.response.use(\n responseBodyWithHeaders(responseHeaders, responseSelector),\n handleResponseErrorInterception\n );\n return instance.get(resource, { params: params, baseURL: this.baseURL });\n }\n\n post(resource, body = {}, config = {}) {\n return this.client.post(resource, body, config);\n }\n\n put(resource, body = {}) {\n return this.client.put(resource, body);\n }\n\n patch(resource, body = {}) {\n return this.client.patch(resource, body);\n }\n\n del(resource, params = {}, data = {}) {\n return this.client.delete(resource, { params, data });\n }\n\n request(config) {\n return this.client.request(config);\n }\n\n //TODO: Deprecated. You can just as easily use the constructor and it causes issues in testing.\n static create({ baseURL, paramsSerializerConfig, headers, params }) {\n return new this(baseURL, { paramsSerializerConfig, headers, params });\n }\n}\n\nfunction handleRequestInterception(config) {\n const token = jwtService.getToken();\n let {\n headers: { common }\n } = config;\n\n // TODO: handle refresh token before sending real request, make a queue for all pending requests until refresh token done\n if (!regexWhiteList.test(config.url) && token) {\n common = {\n ...common,\n Authorization: `Bearer ${token}`\n };\n config.headers.common = common;\n }\n \n if (config.url.includes('/beacon/1/')) {\n const { token } = JSON.parse(localStorage.getItem('riAccountInfo')) || {};\n\n common = {\n ...common,\n Authorization: `SVTok1 ${token}`\n };\n config.headers.common = common;\n }\n\n return config;\n}\n\nfunction handleResponseInterception(response) {\n return response && response.data;\n}\n\nfunction handleResponseErrorInterception(error) {\n if (error.response) {\n const { status } = error.response;\n\n if (status === 500) {\n historyService.forwardTo('/error/500');\n }\n }\n\n return Promise.reject(error);\n}\n\nexport { createHttpClient, handleResponseErrorInterception };\nexport default ApiService;\n","import ApiService from './api.service';\n\nconst errorHandling = {\n logError\n};\n\nasync function logError(error, info) {\n // eslint-disable-next-line no-console\n console.error('An error has occurred:', error);\n try {\n let apiService = new ApiService();\n\n let Message = (error && error.toString()) + ' ' + (info && info.componentStack);\n\n await apiService.post('ClientError/SaveException', { Message }, false);\n } catch (loggerError) {\n // eslint-disable-next-line no-console\n console.log(' failed to log error', loggerError);\n }\n}\n\nexport default errorHandling;\n","import { createBrowserHistory } from 'history';\n\nconst history = createBrowserHistory();\n\nfunction forwardTo(location, state) {\n history.push(location, state);\n}\nconst historyService = {\n forwardTo,\n history\n};\n\nexport default historyService;\n","import { createIntl, createIntlCache } from 'react-intl';\n\nconst defaultConfig = {\n locale: 'en'\n};\nlet intl = null;\n\nconst I18nService = {\n get intl() {\n if (!intl) {\n intl = createIntl(defaultConfig, this.cache);\n }\n return intl;\n },\n cache: createIntlCache(),\n create(config = defaultConfig) {\n intl = createIntl(config, this.cache);\n return intl;\n }\n};\n\nexport default I18nService;\n","import configurationService from './config.service';\nimport ApiService from './api.service';\nimport CookieService from './cookie.service';\nimport defaultLanguage from 'common/constants/defaultLanguage';\n\nclass LocaleService {\n apiService = new ApiService(configurationService.MIR3ApiBaseUrl);\n\n cookieService = new CookieService();\n\n init(userLocale) {\n const localesResult = this.getLocales(); //if we have a non-empty response in time/cached.\n\n this.locales = localesResult.length ? localesResult : [defaultLanguage];\n\n if (this.locales.length) {\n const defaultLang = this.getBrowserCultureLang();\n const cookieLang = this.cookieService.getCookieValue('lang');\n const language = cookieLang || userLocale || defaultLang;\n const formatLang = l => this.getLocaleByCode(l.replace('_', '-'));\n\n return this.getTranslations(formatLang(language));\n }\n }\n\n getLocales() {\n return this.apiService.get(`/res/locales.json`).then(response => (this.locales = response));\n }\n\n getLocaleByCode(code) {\n return this.locales.length > 1\n ? this.locales.find(locale => locale.isoCode == code || locale.cultureLanguageCode == code)\n : this.locales[0];\n }\n\n getLocaleById(id) {\n return this.locales.length > 1 ? this.locales.find(locale => locale.lcId == id) : this.locales[0];\n }\n\n getTranslations(language) {\n if (language?.lcId) {\n //We never want to call Tahoe with an undefined language, keep this here for a sanity check.\n return this.apiService.get(`/actions/verbiageLookup/${language?.lcId}`).then(({ data }) => ({\n ...language,\n translations: data\n }));\n } else {\n return { translations: {} };\n }\n }\n\n getBrowserCultureLang() {\n let browserCultureLang = window.navigator.languages ? window.navigator.languages[0] : null;\n\n browserCultureLang =\n browserCultureLang ||\n window.navigator.language ||\n window.navigator.browserLanguage ||\n window.navigator.userLanguage;\n\n return browserCultureLang;\n }\n\n getOrganizationLocales = async id => {\n return await this.apiService.get(`/actions/organization/locales/${id}`);\n };\n}\n\nexport default new LocaleService();\n","export default __webpack_public_path__ + \"travel_assist_favicon.ico\";","export default __webpack_public_path__ + \"favicon.ico\";","import BetaToastrContent from '@components/BetaToastr/BetaToastr';\nimport SessionTimeoutModal from '@components/SessionTimeoutModal/SessionTimeoutModal';\nimport { useI18n } from 'modules/Common/components/I18n/context';\nimport { i18nSetCookie } from 'modules/Common/components/I18n/utility';\nimport { DomUtils, LoadingOverlay, ToastrProvider, ToastrProviderComponent } from '@onsolve/onsolve-ui-components';\nimport queryString from 'query-string';\nimport React, { useEffect, useLayoutEffect, useRef, useState } from 'react';\nimport { BrowserRouter, Redirect, Route, Switch, useHistory } from 'react-router-dom';\nimport { isBeta, isDevelopment } from 'utils/envUtilities';\nimport { appNames } from './common/constants/appNames';\nimport { controlCenterRoutes } from './common/constants/controlCenterRoutes';\nimport { assetUIRoutes } from 'common/constants/assetUIRoutes';\nimport cookieKeys from './common/constants/cookieKeys';\nimport identityServerErrorCodes from './common/constants/identityServerErrorCodes';\nimport MFERoutesEnum from './common/constants/mfeRoutesEnum';\nimport isMobile from './common/utility/isMobile';\nimport LocalStorageUtility from './common/utility/localStorageUtility';\nimport { updateHistoryWithFilterId, updatedPush } from './common/utility/updatedPush';\nimport { useRIAccountContext } from './context/riAccountContext';\nimport MicroFrontend from './MicroFrontend/MicroFrontend';\nimport NavBar from './Navigation/SideBar/NavBar';\nimport AuthService from './services/auth.service';\nimport configurationService from './services/config.service';\nimport CookieService from './services/cookie.service';\nimport namespaceService from './services/namespace.service';\nimport { useAccountContext } from '@context/AccountContext';\nimport ImpersonatorBanner from '@components/ImpersonatorBanner/ImpersonatorBanner';\nimport jwtService from '@services/jwt.service';\nimport PermissionService from '@services/permission.service';\nimport { updateDocumentMetadata } from 'utils/updateDocumentMetadata';\nimport travelAssistFaviconPath from 'assets/images/travel_assist_favicon.ico';\nimport onsolveFaviconPath from 'assets/images/favicon.ico';\nimport MapService from '@services/map.service';\nimport { t } from '@lingui/macro';\nimport ResponsePortal from 'ResponsePortal/ResponsePortal';\nconst { protocol } = window.location;\nconst externalDomainName = configurationService.ExternalDomainName;\nconst externalHost = `${protocol}//${externalDomainName}`;\nconst BuildInformation = () => {\n const BUILD_VERSION_KEY = 'build_version';\n const buildVersion = VERSION;\n const currentBuildVersion = LocalStorageUtility.getData(BUILD_VERSION_KEY);\n if (currentBuildVersion !== buildVersion) {\n LocalStorageUtility.setData(BUILD_VERSION_KEY, buildVersion);\n console.info({ currentBuildVersion, buildVersion });\n }\n};\nconst ControlCenter = () => {\n const mfeHistory = useHistory();\n const { updateLanguageWithData, language } = useI18n();\n const { ControlCenter: controlCenter } = appNames;\n const newHistory = updateHistoryWithFilterId(mfeHistory);\n const [mapPreferences, setMapPreferences] = useState(null);\n const [loading, setLoading] = useState(true);\n const { canViewMapOff } = new PermissionService().permissions;\n useEffect(() => {\n const fetchMapPreferences = async () => {\n try {\n const preferences = await MapService.getAccountMapDisplay();\n if (canViewMapOff()) {\n preferences.isVisible = false;\n }\n setMapPreferences(preferences);\n }\n catch (error) {\n // eslint-disable-line @typescript-eslint/no-explicit-any\n //Back-end will 404 for a brand new user with no preference\n const statusCode = error.response?.status || 500;\n if (statusCode === 404) {\n const defaultPreferences = MapService.getDefaultMapViewDetails();\n if (canViewMapOff()) {\n defaultPreferences.isVisible = false;\n }\n setMapPreferences(defaultPreferences);\n }\n else {\n console.error('Error fetching map preferences:', error);\n }\n }\n finally {\n setLoading(false);\n }\n };\n fetchMapPreferences();\n }, []);\n if (loading) {\n return ;\n }\n return ();\n};\nconst AssetUI = (props) => {\n const mfeHistory = useHistory();\n const { updateLanguageWithData, language } = useI18n();\n const { AssetUI: assetui } = appNames;\n return ();\n};\nconst HistoricalReporting = (props) => {\n const mfeHistory = useHistory();\n const { updateLanguageWithData, language } = useI18n();\n const { HistoricalReporting: historicalreporting } = appNames;\n return ();\n};\nconst CriticalComms = (props) => {\n const mfeHistory = useHistory();\n const { updateLanguageWithData, language } = useI18n();\n const { CriticalComms: criticalcomms } = appNames;\n const newHistory = updateHistoryWithFilterId(mfeHistory);\n return ();\n};\nconst RiskIntelligence = () => {\n const mfeHistory = useHistory();\n const { push } = mfeHistory;\n const { RiskIntelligence: riskintelligence } = appNames;\n return ();\n};\nconst App = () => {\n const { loggedInUser: { firstName = '', lastName = '' } = {} } = useAccountContext() || {};\n const { canAccessAssetUI, canViewHistoricalReporting, canViewWTPCustomer } = new PermissionService().permissions;\n const [showBetaToastr, setShowBetaToastr] = useState(true);\n const betaToastrId = useRef('');\n window.mfeHistory = useHistory();\n const namespace = namespaceService.getNamespace();\n useLayoutEffect(() => {\n applicationLoadHandler();\n renderBetaToastr();\n const isWTPCustomer = canViewWTPCustomer();\n const title = isWTPCustomer ? 'Travel Assist' : 'OnSolve';\n const faviconPath = isWTPCustomer ? travelAssistFaviconPath : onsolveFaviconPath;\n updateDocumentMetadata(title, faviconPath);\n }, []);\n const { riAccount, isLoadingRIAccount, riConfig } = useRIAccountContext(); //Note: async, `null` until complete, can have `data` or be `false`.\n const isImpersonatingUser = jwtService.isImpersonatingUser();\n const handleImpersonatorLogIn = async (userToImpersonateSub) => {\n const userToImpersonateIdIsEmpty = !userToImpersonateSub || userToImpersonateSub === '00000000-0000-0000-0000-000000000000'; //This is to make sure that the user to impersonate has signed in at least once\n try {\n if (userToImpersonateIdIsEmpty) {\n return;\n }\n const token = await AuthService.toggleImpersonation(userToImpersonateSub);\n if (token) {\n window.location.href = '/';\n }\n }\n catch (error) {\n console.error(error);\n }\n };\n const handleCloseImpersonator = async () => {\n await AuthService.toggleImpersonation();\n window.location.reload();\n };\n const cookieService = new CookieService();\n const renderBetaToastr = () => {\n // What's New in Beta Toastr\n if (isBeta() && !isMobileAppView() && showBetaToastr) {\n const id = ToastrProvider.primary(() => , {\n isAlwaysVisible: true,\n position: DomUtils.isRtl() ? 'top-left' : 'top-right',\n variant: 'primary',\n });\n betaToastrId.current = id;\n }\n };\n const handleCloseBetaToastr = () => {\n ToastrProvider.close(betaToastrId.current);\n setShowBetaToastr(false);\n };\n const authorizeCallback = async () => {\n const params = queryString.parse(window.location.search);\n const { ui_lang, origin, redirection } = params;\n i18nSetCookie(ui_lang);\n // The redirect from IdentityServer (/authorize endpoint) to the UI after successful authentication. The example URL format:\n // https://onsolve.com/callback?origin=https%3A%2F%2F{namespace}.onsolve.com%2F&code={code}&scope={scopes}&state={state}&session_state={session_state}\n if (origin) {\n delete params.origin;\n // Redirect to `origin/callback?{queryParams}&redirection={origin}`.\n window.location.href =\n namespaceService.getClientOrigin(origin) +\n 'callback?' +\n queryString.stringify({\n ...params,\n redirection: origin,\n });\n }\n // The redirect from OnSolve.UI from the `if` above. The example URL format:\n // https://{namespace}.onsolve.com/callback?code={code}&redirection=https%3A%2F%2F{namespace}.onsolve.com%2F&scope={scopes}&session_state={session_state}&state={state}\n else {\n try {\n await AuthService.updateState();\n // Redirect to `https://{namespace}.onsolve.com` if no errors.\n window.location.href = redirection ? redirection : '/';\n }\n catch (e) {\n const is401 = e.message === 'Unauthorized (401)';\n const mir3Logout = !is401;\n const clientErrorCode = is401\n ? identityServerErrorCodes.noPermissionToLogin\n : identityServerErrorCodes.signinLinkHasExpired;\n await AuthService.signOut(mir3Logout, clientErrorCode);\n }\n }\n };\n const applicationLoadHandler = async () => {\n if (window.location.pathname === '/response') {\n return ;\n }\n else if (window.location.pathname === '/callback') {\n await authorizeCallback();\n }\n else {\n //* Check if there is an existing originURL cookie.\n //* If so - check if there is a namespace in the URL.\n //* If there's no namespace - redirect the user to originURL.\n const originUrl = cookieService.getCookieValue(cookieKeys.originURL);\n if (originUrl) {\n if (!namespace) {\n window.location.href = originUrl;\n }\n }\n const { isAuthenticated } = AuthService;\n const isCurrentAuthDataToBeCleared = () => {\n //! OF-1848: For IdP initiated SSO a \"clearAuth\" parameter is added to the query string by OnSolve.IdentityServer.\n //! If the User was logged in previously, the local storage should be cleared instead of logging User out due to expired token.\n const queryParams = new URLSearchParams(window.location.search);\n return queryParams.get('clearAuth') != null;\n };\n if (!isAuthenticated || isCurrentAuthDataToBeCleared()) {\n if (isCurrentAuthDataToBeCleared()) {\n AuthService.removeAuthData();\n }\n //! `client_error` parameter could be present in the query string if either `noPermissionToLogin`\n //! or `signinLinkHasExpired` occurred while signing in. See `authorizeCallback()` for more details.\n const clientErrorCode = new URLSearchParams(window.location.search).get('client_error');\n await AuthService.signIn(clientErrorCode);\n }\n isMobile.any() && document.body.classList.add('isMobile');\n // TODO: Temporary solution. Remove after applying new logo\n const { FeatureFlags } = configurationService;\n if (FeatureFlags.newBrandingLogo) {\n document.querySelectorAll('.temp-updatable').forEach((item) => {\n item.setAttribute('href', '/updated' + item.getAttribute('href'));\n });\n }\n }\n };\n const isMobileAppView = () => navigator.userAgent.match(/MobileAppWebView/i);\n const rootClasses = isMobileAppView() ? 'onsolve-body onsolve-body--mobileapp' : 'onsolve-body';\n if (!AuthService.isAuthenticated && window.location.pathname !== '/response') {\n return ;\n }\n //* Defaulting to RI takes precedence over everything, if they have RI, default there.\n //* If they don't have RI, Control Center takes precedence over OnSolve.UI (criticalcomms)\n return (<>\n {!isDevelopment() && !isMobileAppView() && }\n \n
\n {!isMobileAppView() && window.location.pathname !== '/response' && ()}\n
\n {isImpersonatingUser && ()}\n \n
\n \n {\n if (riAccount) {\n return ;\n }\n else if (!isLoadingRIAccount) {\n return ;\n }\n }}/>\n canAccessAssetUI() ? () : ()}/>\n canViewHistoricalReporting() ? () : ()}/>\n ()}/>\n }/>\n controlCenterRoutes.filter((route) => location.pathname.startsWith(route) || location.pathname === '/').length && !isMobileAppView() ? () : ()}/>\n \n
\n
\n
\n
\n );\n};\nBuildInformation();\nexport default App;\n","import React from 'react';\nimport GroupsIcon from '@components/GroupsIcon/GroupsIcon';\nimport { defineMessage } from '@lingui/macro';\nimport { AlertIcon, CalendarOutlinedIcon, ContactIcon, FormatListBulletIcon, GlobusIcon, HomeIcon, InsightsIcon, ReportingIcon, RssIcon, SettingsIcon, SolutionsIcon, SupportAndTrainingIcon, } from '@onsolve/onsolve-ui-components';\nimport featureService from 'services/feature.service';\nimport PermissionService from 'services/permission.service';\nimport NavigationIcon from '@components/NavigationIcon/Navigation';\nimport TravelIcon from '@components/TravelIcon/TravelIcon';\nimport './ControlCenterNav.scss';\nconst permissionService = new PermissionService();\nconst controlCenterNav = [\n {\n to: '/',\n title: defineMessage({ message: 'Control Center' }),\n icon: ,\n selected: true,\n canAccess: true,\n },\n {\n to: '/riskintelligence',\n title: defineMessage({ message: 'Risk Intelligence' }),\n icon: ,\n selected: false,\n canAccess: false,\n secondary: [\n {\n to: '/riskintelligence',\n title: defineMessage({ message: 'Event Feed' }),\n selected: false,\n canAccess: true,\n },\n {\n to: '/riskintelligence/account',\n title: defineMessage({ message: 'Account Management' }),\n selected: false,\n canAccess: true,\n },\n {\n to: '/riskintelligence/communication-methods',\n title: defineMessage({ message: 'Communication Methods' }),\n selected: false,\n canAccess: true,\n },\n {\n to: '/riskintelligence/filters',\n title: defineMessage({ message: 'Filters' }),\n selected: false,\n canAccess: true,\n },\n ],\n },\n {\n to: '/riskintelligence/travel',\n title: defineMessage({ message: 'Travel' }),\n selected: false,\n canAccess: false,\n icon: ,\n },\n {\n to: '/reports/eventreporting',\n title: defineMessage({ message: 'Risk Insights' }),\n icon: ,\n selected: false,\n canAccess: permissionService.permissions.canViewHistoricalReporting(),\n },\n {\n to: '/critical_communications',\n title: defineMessage({ message: 'Critical Communications' }),\n icon: ,\n selected: false,\n opened: false,\n canAccess: permissionService.permissions.canViewAlerts(),\n secondary: [\n {\n to: '/alerts/inbox',\n title: defineMessage({ message: 'Inbox' }),\n selected: false,\n canAccess: permissionService.permissions.canViewAlertInbox() && featureService.getFeature('alertInbox'),\n },\n {\n to: '/alerts/linked-alerts',\n title: defineMessage({ message: 'Linked Alerts' }),\n selected: false,\n canAccess: permissionService.permissions.canViewBulkAlerts() && featureService.getFeature('bulkAlertPage'),\n },\n ],\n },\n {\n to: '/incident_management',\n title: defineMessage({ message: 'Incident Management' }),\n icon: ,\n selected: false,\n canAccess: permissionService.permissions.canViewLookOut() ||\n permissionService.permissions.canViewSOS() ||\n permissionService.permissions.canViewLockBox(),\n },\n {\n to: '/contacts',\n title: defineMessage({ message: 'People' }),\n icon: ,\n selected: false,\n canAccess: permissionService.permissions.canViewContacts(),\n },\n {\n to: '/contacts/groups',\n title: defineMessage({ message: 'Groups' }),\n icon: ,\n selected: false,\n canAccess: permissionService.permissions.canViewGroups(),\n },\n {\n to: '/schedules',\n title: defineMessage({ message: 'Schedules' }),\n icon: ,\n selected: false,\n canAccess: permissionService.permissions.canViewSchedule(),\n },\n {\n to: '/reports',\n title: defineMessage({ message: 'Reports' }),\n icon: ,\n selected: false,\n canAccess: permissionService.permissions.canViewReporting(),\n },\n {\n to: '/reports/dashboards',\n title: defineMessage({ message: 'BI Reporting' }),\n icon: ,\n selected: false,\n canAccess: permissionService.permissions.canViewBIReporting(),\n },\n {\n to: '/subscriptions',\n title: defineMessage({ message: 'Subscriptions' }),\n icon: ,\n selected: false,\n canAccess: permissionService.permissions.canViewWeatherAndEvents() ||\n permissionService.permissions.canViewTopics() ||\n (permissionService.permissions.canManageTtKeyword() &&\n permissionService.permissions.canOrganizationAdmin()),\n },\n {\n to: '/configure',\n title: defineMessage({ message: 'Configure' }),\n icon: ,\n selected: false,\n canAccess: true,\n },\n {\n to: '/settings',\n title: defineMessage({ message: 'Settings' }),\n icon: ,\n selected: false,\n canAccess: true,\n },\n {\n to: '/support-training',\n title: defineMessage({ message: 'Support & Training' }),\n icon: ,\n selected: false,\n canAccess: permissionService.permissions.canViewAnnouncements() ||\n permissionService.permissions.canViewAnnouncementsTool(),\n },\n];\nexport default controlCenterNav;\n","// extracted by mini-css-extract-plugin\nexport default {\"nav\":\"-Ag9lzWrX2YCI-+skE3kfA==\",\"expanded\":\"bNBZcDOK-6wrZSxq5g0Vtw==\",\"navItemContainer\":\"IeuCFOftcco3LBj9vQSExg==\",\"secondaryNavItems\":\"TFtL7xoV7QChfHlDQ8da6w==\",\"navItem\":\"Im1apF2jUExFL81gneYckw==\",\"navItemLink\":\"YRzQ+UQNf4lPDcAl38p4IA==\",\"hamburger\":\"zROWymtZ+V5u-Ruf2NexfA==\",\"navIcon\":\"-kqIbl7gHl438pMxiFxQ7w==\",\"menuArrow\":\"_76hkGMOKyO+bA0EGh6s5fQ==\",\"open\":\"SZ7odAxPNgIIElCbDm-a+w==\",\"closed\":\"X5eL-bnELQ8dBY6F+fZQBA==\",\"shown\":\"QwWRNhyYOMjSVWG7lIf3xg==\",\"hidden\":\"pi1px+BczzVh0jnYJpiyww==\",\"navTitle\":\"UWnaZwTMOCJV78SLq6ws0g==\",\"selected\":\"sh1Wiqflcu8oEanKtpGnMw==\",\"arrowSelected\":\"Du76aijOJM1B5QT4GKaZgQ==\",\"slightly-larger\":\"mI8-gENVAbsj03gouCBiJw==\",\"codeRedLogo\":\"_3xTq7skZ3nxzdzqEyZoNWg==\",\"onSolveLogoWhite\":\"cMJnuzKCVuN+CCnGPNZrdw==\"};","import { useAccountContext } from '@context/AccountContext';\nimport { t } from '@lingui/macro';\nimport { useLingui } from '@lingui/react';\nimport controlCenterNav from '@menu/ControlCenterNav';\nimport configService from '@services/config.service';\nimport OrganizationService from '@services/organization.service';\nimport { ArrowRightIcon, BoxArrowUpRightIcon, HamburgerIcon } from '@onsolve/onsolve-ui-components';\nimport React, { useCallback, useEffect, useState } from 'react';\nimport { Link, useLocation } from 'react-router-dom';\nimport styles from './Nav.module.scss';\nimport PermissionService from '@services/permission.service';\nimport jwtService from '@services/jwt.service';\nconst isMenuOrSubMenuSelected = (path, item) => {\n if (item.secondary?.find((s) => s.to === path))\n return item.opened;\n if (item.to === path)\n return !item.opened;\n return false;\n};\nconst isRiskIntelligencePath = (path) => path === '/riskintelligence';\nconst defaultMenuItems = controlCenterNav;\nconst NavBar = ({ riskIntelligenceAccount, riskIntelligenceConfigurations }) => {\n const organizationService = new OrganizationService(configService.ControlCenterApiUrl);\n const location = useLocation();\n const { i18n } = useLingui();\n const { brand } = useAccountContext();\n const [customNavigation, setCustomNavigation] = useState(undefined);\n const { canViewWTPCustomer, canViewAssetDataStore } = new PermissionService().permissions;\n const isWTPCustomer = canViewWTPCustomer();\n const handleIsSelected = (path) => !isRiskIntelligencePath(path) && path === location.pathname;\n const [isRIContactUser, setIsRIContactUser] = useState(true);\n const [menuItems, setMenuItems] = useState(defaultMenuItems.map((item) => ({\n ...item,\n selected: handleIsSelected(item.to),\n // If the item or any secondary items (sub menu) are selected, then open the sub menu.\n opened: item.to === location.pathname || !!item.secondary?.find((s) => s.to === location.pathname)\n ? true\n : item.opened,\n secondary: item.secondary?.map((secondary) => ({\n ...secondary,\n selected: secondary.to === location.pathname,\n })),\n })));\n const [expanded, setExpanded] = useState(localStorage.getItem('nav_bar_expansion') !== 'false');\n useEffect(() => {\n // Only trigger if the location has changed\n if (menuItems.find((item) => item.selected)?.to !== location.pathname &&\n menuItems.flatMap((item) => item.secondary)?.find((item) => item?.selected)?.to !== location.pathname) {\n setMenuItems(menuItems.map((item) => ({\n ...item,\n selected: handleIsSelected(item.to),\n // If the item or any secondary items (sub menu) are selected, then open the sub menu.\n opened: item.to === location.pathname || !!item.secondary?.find((s) => s.to === location.pathname)\n ? true\n : item.opened,\n secondary: item.secondary?.map((secondary) => ({\n ...secondary,\n selected: secondary.to === location.pathname,\n })),\n })));\n }\n }, [location]); //eslint-disable-line\n const hideFromRIBrand = ['/critical_communications', '/alerts/inbox', '/alerts/linked-alerts', '/contacts/groups'];\n useEffect(() => {\n const isRIOnlyBrand = brand === 'riskintelligence';\n setMenuItems(menuItems.map((item) => ({\n ...item,\n canAccess: isRIOnlyBrand && hideFromRIBrand.includes(item.to) ? false : item.canAccess,\n secondary: item.secondary?.map((secondaryItem) => ({\n ...secondaryItem,\n canAccess: isRIOnlyBrand && hideFromRIBrand.includes(secondaryItem.to) ? false : secondaryItem.canAccess,\n })),\n })));\n }, [brand]);\n const riskIntelligencePermissionCheck = ({ to: path = '', canAccess }) => {\n if (isRIContactUser) {\n return false;\n }\n if (path.includes('riskintelligence/travel')) {\n return riskIntelligenceConfigurations?.travel;\n }\n if (path.includes('/riskintelligence')) {\n return !!riskIntelligenceAccount;\n }\n return canAccess;\n };\n useEffect(() => {\n setMenuItems([\n ...menuItems.map((item) => ({\n ...item,\n canAccess: item.to.includes('riskintelligence')\n ? riskIntelligencePermissionCheck(item)\n : item.canAccess,\n secondary: item.to.includes('riskintelligence') && !!riskIntelligenceAccount\n ? item.secondary?.map((secondaryItem) => ({\n ...secondaryItem,\n canAccess: riskIntelligencePermissionCheck(secondaryItem),\n to: secondaryItem.to.includes('riskintelligence/account')\n ? `/riskintelligence/account/${riskIntelligenceAccount?.account_id}`\n : secondaryItem.to,\n }))\n : item.secondary,\n })),\n ...[\n customNavigation && !menuItems.find((item) => item.externalRoute === customNavigation.url)\n ? {\n to: '',\n externalRoute: customNavigation.url,\n title: customNavigation.displayText,\n icon: ,\n selected: false,\n canAccess: true,\n }\n : undefined,\n ].filter(Boolean),\n ]);\n }, [riskIntelligenceAccount, riskIntelligenceConfigurations, customNavigation, isRIContactUser]); //eslint-disable-line\n useEffect(() => {\n const getNavigation = async () => {\n const customNavigation = await organizationService.GetCustomNavigation();\n if (customNavigation?.organizationUUID) {\n setCustomNavigation(customNavigation);\n }\n };\n //these methods are useful only for getting RI user details, will return undefined in non-RI accounts\n const getUserDetails = async () => {\n const orgUuid = jwtService.getOrganizationUuid();\n const userAssetId = canViewAssetDataStore() ? jwtService.getUserAssetId() : jwtService.getUserUuid();\n const userDetails = await organizationService.GetUserDetailsByAssetId(orgUuid, userAssetId);\n setIsRIContactUser(!userDetails?.isAdmin && !userDetails?.isOperator);\n };\n getNavigation();\n getUserDetails();\n }, []);\n const toggleMenu = useCallback((path) => {\n setMenuItems(menuItems.map((item) => ({\n ...item,\n selected: !isRiskIntelligencePath(path) && item.to === path,\n // If you're toggling the same menu item that's already selected, it'll close the sub menu.\n // Otherwise it leaves it alone\n opened: isMenuOrSubMenuSelected(path, item),\n secondary: item.secondary?.map((secondary) => ({\n ...secondary,\n selected: secondary.to === path,\n })),\n })));\n }, [menuItems]);\n const toggleSecondary = useCallback((path) => {\n setMenuItems(menuItems.map((item) => ({\n ...item,\n opened: item.to === path ? !item.opened : false,\n })));\n }, [menuItems]);\n const toggleNavBar = useCallback(() => {\n const newExpanded = !expanded;\n localStorage.setItem('nav_bar_expansion', newExpanded.toString());\n setExpanded(!expanded);\n }, [expanded]);\n const onMenuClick = (path) => {\n if (!isRiskIntelligencePath(path)) {\n toggleMenu(path);\n return;\n }\n if (expanded) {\n toggleSecondary(path);\n return;\n }\n // When nav bar is collapsed, on click of Risk Intelligence icon expand the nav bar and open secondary menu items\n toggleNavBar();\n setMenuItems(menuItems.map((item) => ({\n ...item,\n opened: item.to === path,\n })));\n };\n return (
\n \n {menuItems.map((item) => item.canAccess && (
\n
\n {item.externalRoute ? (\n
{item.icon}
\n
{i18n._(item.title)}
\n
) : ( onMenuClick(item.to)} className={`${styles.navItemLink} ${item.selected ? styles.selected : ''}`}>\n
{item.icon}
\n
{i18n._(item.title)}
\n )}\n\n {!!item.secondary?.filter((s) => s.canAccess).length && ()}\n
\n {!!item.secondary?.filter((s) => s.canAccess) && (
inner.selected))\n ? styles.shown\n : styles.hidden}`}>\n {item.secondary\n ?.filter((s) => s.canAccess)\n .map((secondary) => ( toggleMenu(secondary.to)} className={`${styles.navItem} ${secondary.selected ? styles.selected : ''}`}>\n
{secondary.icon}
\n
{i18n._(secondary.title)}
\n ))}\n
)}\n
))}\n
);\n};\nexport default NavBar;\n","// extracted by mini-css-extract-plugin\nexport default {\"responsePortal-page\":\"jozst8hX17D9yfNphOa89w==\",\"responsePortal-page__response-index\":\"spfGOx5Lwgb5rvZHYkjE1Q==\",\"responsePortal-page__response-question\":\"BJjc4o5ybqw5EodMexBOlw==\",\"responsePortal-page__responseOption-wrapper\":\"Lmrk8TpH4KhLue53p9h14g==\",\"responsePortal-page__responseOptionPage\":\"_7faOQ0N05vp4+F5IKHtdKQ==\",\"responsePortal-page__responseOptionForm\":\"UOht6vfM60hxBf6fFgR4Ow==\",\"responsePortal-page__response-textarea\":\"_1teTdiI0qwwA+WZvm32OMg==\",\"responsePortal-page__successToastr\":\"xPUUr5UC43R+hAbhqABJow==\",\"responsePortal-page__successToastrCloseBtn\":\"D9sjW6Uj43vsVQX6J7cnFg==\"};","import React, { useEffect, useMemo, useState } from 'react';\nimport Page from './components/Page';\nimport { getClassName } from '@onsolve/utils.get-class-name';\nimport styles from './ResponsePortal.module.scss';\nimport ResponsePortalService from '@services/responseportal.service';\nimport Question from './components/Question';\nimport SuccessToast from './components/SuccessToast';\nimport ErrorToast from './components/ErrorToast';\nimport ResponseSelection from './components/ResponseSelection';\nimport configurationService from '@services/config.service';\nimport { t } from '@lingui/macro';\nimport ShowResponses from './components/ShowResponses';\nconst ResponsePortal = ({ namespace }) => {\n const [rootClass, getChildClass] = getClassName({\n rootClass: 'responsePortal-page',\n styles,\n });\n const baseURL = configurationService.ResponseServiceUrl;\n const responseServiceClient = new ResponsePortalService(baseURL);\n const url = window.location.href;\n const urlParams = new URL(url).searchParams;\n const base64Data = urlParams.get('data');\n const decodedUrlParam = atob(base64Data);\n const queryParams1 = new URLSearchParams(decodedUrlParam);\n const alertId = queryParams1.get('scriptuuid');\n const deviceId = queryParams1.get('devicehistid');\n const [responseIndex, setResponseIndex] = useState(-1);\n const [response, setResponse] = useState(undefined);\n const [isLoading, setIsLoading] = useState(true);\n const [followUpAnswers, setFollowUpAnswers] = useState([]);\n const [currentFollowUps, setCurrentFollowUps] = useState(undefined);\n const [showSuccessToast, setShowSuccessToast] = useState(false);\n const [showErrorToast, setShowErrorToast] = useState(false);\n const [showQuestion, setShowQuestion] = useState(false);\n const [isDone, setIsDone] = useState(false);\n const [errorMessage, setErrorMessage] = useState(undefined);\n const [showFinalResponse, setShowFinalResponse] = useState(false);\n useEffect(() => {\n const GetAlertResponse = async () => {\n try {\n const data = await responseServiceClient.GetAlertResponses(alertId, deviceId);\n addSerialNumber(data);\n setResponse(data);\n setIsLoading(false);\n if (data?.settings?.confirmResponseRequired) {\n setResponseIndex(-1);\n }\n else {\n setResponseIndex(Number(queryParams1.get('response') || 0));\n setIsDone(false);\n }\n }\n catch (error) {\n console.log(error);\n if (error.message.includes('404')) {\n setShowErrorToast(true);\n setErrorMessage(t `We regret to inform you that your response has not been accepted as the alert or the link has expired.`);\n }\n }\n };\n GetAlertResponse();\n }, [alertId, deviceId]);\n useEffect(() => {\n if (responseIndex > -1) {\n response['response'] = response?.responseOptions[responseIndex]?.id;\n setResponse(() => response);\n const followUps = response?.responseOptions[responseIndex]?.followUp;\n if (followUps?.length > 0) {\n setFollowUpAnswers(followUps || []);\n setCurrentFollowUps(followUps?.[0]);\n setIsDone(followUps?.length > 1 ? false : true);\n setShowQuestion(true);\n }\n else {\n saveAnswer(responseIndex);\n }\n }\n }, [responseIndex]);\n const addSerialNumber = (data) => {\n data?.responseOptions?.map((item, index) => {\n item.followUp?.map((followup, followupIndex) => {\n followup.serialNumber = followupIndex + 1;\n });\n });\n };\n const confirmResponse = (responseSelected) => {\n response?.responseOptions?.map((item, index) => {\n if (item.id === responseSelected) {\n setResponseIndex(index);\n if (response?.responseOptions[index]?.followUp?.length === 0) {\n saveAnswer(index);\n }\n }\n });\n response['response'] = responseSelected;\n setResponse(() => response);\n };\n const changeResponse = () => {\n setShowFinalResponse(false);\n const followUps = response?.responseOptions[responseIndex]?.followUp;\n if (followUps?.length > 0) {\n setFollowUpAnswers(followUps || []);\n setCurrentFollowUps(followUps?.[0]);\n setIsDone(followUps?.length > 1 ? false : true);\n }\n if (response?.settings?.confirmResponseRequired) {\n setResponseIndex(-1);\n setShowQuestion(false);\n }\n else if (followUps?.length === 0) {\n window.location.reload();\n }\n else {\n setResponseIndex(Number(queryParams1.get('response') || 0));\n setShowQuestion(true);\n }\n };\n const isSaveBtnDisabled = useMemo(() => {\n return false;\n }, [followUpAnswers]);\n const saveResponse = (followup) => {\n const _followUpAnswers = [...followUpAnswers];\n _followUpAnswers.map((obj) => (obj.id === followup.id ? followup : obj));\n setFollowUpAnswers(_followUpAnswers);\n const currentIndex = _followUpAnswers.findIndex((item) => item.id === followup?.id);\n const nextFollowUp = currentIndex !== -1 && currentIndex < _followUpAnswers.length - 1\n ? _followUpAnswers[currentIndex + 1]\n : null;\n setCurrentFollowUps(nextFollowUp);\n const lastIndex = _followUpAnswers.length - 1;\n setIsDone(lastIndex > currentIndex + 1 ? false : true);\n };\n const saveAnswer = async (index) => {\n if (isSaveBtnDisabled)\n return;\n try {\n index = index === undefined ? responseIndex : index;\n const payload = {\n alertId: alertId,\n deviceId: deviceId,\n response: response.responseOptions[index]?.id,\n followUp: followUpAnswers,\n deviceType: 0,\n };\n setIsLoading(true);\n await responseServiceClient.PostAlertResponses(payload);\n setIsLoading(false);\n setShowSuccessToast(true);\n setShowFinalResponse(true);\n }\n catch (error) {\n console.log('error', error);\n setIsLoading(false);\n if (error?.message.includes('409')) {\n setShowErrorToast(true);\n setErrorMessage(t `Your response could not be accepted, because this notification has already been closed.`);\n }\n }\n return;\n };\n return (\n {showSuccessToast && }\n {showErrorToast && }\n
\n {response && response?.settings?.confirmResponseRequired && !showQuestion && !showFinalResponse && ()}\n {response && showQuestion && !showFinalResponse && ()}\n {showFinalResponse && ()}\n
\n
);\n};\nexport default ResponsePortal;\n","// extracted by mini-css-extract-plugin\nexport default {\"responseOptionError-page\":\"mbrv6x3wKzycVR064WLVcw==\",\"responseOptionError-page__ErrorToastr\":\"m1OVPSc2uYqLYPa5ev9W1w==\",\"responseOptionError-page__ErrorToastrMessage\":\"_2QKDomXViBztyXYEE5y1UA==\",\"responseOptionError-page__ErrorToastrCloseBtn\":\"c9Ea+DxFz2lzsQ9-QoYgaA==\"};","import React from 'react';\nimport { getClassName } from '@onsolve/utils.get-class-name';\nimport styles from './ErrorToast.module.scss';\nconst ErrorToast = ({ setShowErrorToast, message }) => {\n const [rootClass, getChildClass] = getClassName({\n rootClass: 'responseOptionError-page',\n styles,\n });\n return (
\n
\n setShowErrorToast(false)} width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n \n \n \n \n \n \n \n \n \n \n \n \n
\n\n
\n

{message}

\n
\n
\n setShowErrorToast(false)} width=\"16\" height=\"16\" viewBox=\"0 0 16 16\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">\n \n \n \n \n \n \n \n \n \n \n \n \n
\n
);\n};\nexport default ErrorToast;\n","// extracted by mini-css-extract-plugin\nexport default {\"followUp-page\":\"cZbx4Q9vLn50ABmXvGPCYQ==\",\"followUp-page__response-index\":\"TPilY4E-lvQl3QSn6zdh6Q==\",\"followUp-page__response-question\":\"N1i-A-elP0eywCt72FwhPw==\",\"followUp-page__responseOption-wrapper\":\"_0TN+-8ar8wh6l1Dw8qM6NA==\",\"followUp-page__responseOptionPage\":\"PxF3rgI0mgfjGDzUD8Iw-w==\",\"followUp-page__responseOptionForm\":\"WdIPSCJkDy7+B5hWqX9mRA==\",\"followUp-page__response-textarea\":\"LesBSP2GO1s2QGu62gQYoQ==\",\"followUp-pageonsolve-input-field__container\":\"_4suBEHRFYIRM+kGUiUe6xg==\"};","import React, { useEffect, useState } from 'react';\nimport { getClassName } from '@onsolve/utils.get-class-name';\nimport { Radio, RadioGroup, TextArea, Typography } from '@onsolve/onsolve-ui-components';\nimport { t } from '@lingui/macro';\nimport styles from './Followup.module.scss';\nconst Followup = ({ currentFollowUp, handleResponseOptionChange, handleTextAreaChange, isSaveBtnDisabled, key, }) => {\n const [rootClass, getChildClass] = getClassName({\n rootClass: 'followUp-page',\n styles,\n });\n const [selectedValue, setSelectedValue] = useState(undefined);\n const [textareaValue, setTextareaValue] = useState(undefined);\n useEffect(() => {\n if (currentFollowUp && currentFollowUp['response'] && currentFollowUp.choice.length > 0) {\n setSelectedValue(currentFollowUp['response']);\n isSaveBtnDisabled(false);\n }\n else if (currentFollowUp && currentFollowUp['response'] && currentFollowUp.choice.length === 0) {\n setTextareaValue(currentFollowUp['response']);\n isSaveBtnDisabled(false);\n }\n }, []);\n const handleRadioSelectionChange = (_, selectionValue) => {\n isSaveBtnDisabled(false);\n setSelectedValue(selectionValue?.value);\n handleResponseOptionChange(selectionValue?.value);\n };\n const handleTextChange = (_, textAreaValue) => {\n isSaveBtnDisabled(false);\n if (!textAreaValue)\n isSaveBtnDisabled(true);\n setTextareaValue(textAreaValue);\n handleTextAreaChange(textAreaValue);\n };\n return (
\n
\n
{currentFollowUp['serialNumber']}
\n \n {currentFollowUp?.verbiage?.text[0]?.value}\n \n
\n {currentFollowUp?.choice && currentFollowUp?.choice?.length > 0 && (\n {currentFollowUp?.choice?.map((choice) => ())}\n )}\n\n {currentFollowUp?.choice && currentFollowUp?.choice?.length === 0 && (