{"version":3,"sources":["hooks/useFormatMessage.ts","helpers/toast.ts","components/Layouts/Footer/index.tsx","components/Layouts/Header/index.tsx","models/Publications/operations.ts","components/Layouts/Footer/Footer.module.scss","components/Layouts/Header/Header.module.scss","components/Layouts/Header/logo.png"],"names":["__webpack_require__","d","__webpack_exports__","useFormatMessage","react_intl__WEBPACK_IMPORTED_MODULE_0__","formatMessage","useIntl","id","toast","_core_apollo_client_v2_apollo_client__WEBPACK_IMPORTED_MODULE_0__","content","severity","arguments","length","undefined","client","writeData","data","__typename","visible","Footer","react__WEBPACK_IMPORTED_MODULE_0__","react__WEBPACK_IMPORTED_MODULE_0___default","n","react_intl__WEBPACK_IMPORTED_MODULE_1__","_material_ui_core_Link__WEBPACK_IMPORTED_MODULE_2__","_Footer_module_scss__WEBPACK_IMPORTED_MODULE_3__","_Footer_module_scss__WEBPACK_IMPORTED_MODULE_3___default","React","createElement","className","styles","wrapper","copyText","FormattedMessage","alertText","process","Link","href","withRouter","_ref","_localStorage","_localStorage2","_localStorage6","_localStorage7","_localStorage8","_localStorage9","_localStorage10","_localStorage11","_localStorage12","_localStorage13","_localStorage14","_localStorage15","location","_ref$simple","simple","useApolloClient","token","localStorage","getItem","profile","pathname","_","get","search","isOnLandingPage","includes","isMobile","useMediaQuery","baseData","useQuery","GET_ACTIVE_ALERT_VISIBLE_AND_BATCH_EXPORT_REPORTS","menuIsVisible","filtersVisibility","_useState","useState","_useState2","_slicedToArray","queryString","replace","queryObject","qs","parse","omit","stringify","encodeValuesOnly","_useState3","window","concat","_useState4","pathSignIn","_useQuery2","LAST_ALERT_PUBLICATION","skip","_useMutation","loading","useMutation","SIGN_OUT","onCompleted","onError","signOut","updateClientAppState","params","app","_objectSpread","useEffect","toggleFilters","handleCloseMobileMenu","mobileMenuIsVisible","handleOpenGuidedTour","openTourGuided","filtersAreVisible","handleExit","resetToken","variables","sessionToken","handleLocaleChange","locale","_localStorage3","setItem","reload","_React$useState","_React$useState2","anchorLocaleEl","setAnchorLocaleEl","_React$useState3","_React$useState4","anchorLaucherEl","setAnchorLaucherEl","_React$useState5","_React$useState6","anchorPerfilEl","setAnchorPerfilEl","_useState5","_useState6","noteOpen","setNoteOpen","_localStorage4","noticeRead","Number","Date","now","isDocumentRecentlyRead","handleNoteDialogClose","event","reason","_localStorage5","String","classnames","_defineProperty","wrapperSimple","topContent","logoImage","src","logo","alt","actions","navList","NavLink","navLinkActive","to","isModule","activeClassName","navListItemSpacing","navListItemNotification","IconButton","size","aria-label","color","onClick","Tooltip","title","PriorityHighIcon","LiveHelpIcon","navListItemTranslate","Button","startIcon","TranslateIcon","endIcon","Boolean","ExpandLessIcon","ExpandMoreIcon","currentTarget","Menu","anchorEl","getContentAnchorEl","anchorOrigin","vertical","horizontal","transformOrigin","keepMounted","open","onClose","aria-controls","aria-haspopup","MenuItem","selected","bind","this","navListItemGrap","navListItemLogin","InputIcon","PersonIcon","split","menuItemSubMenu","Fragment","Divider","navListItemLaucher","AppsRoundedIcon","Grid","container","navMenuLaucherMenu","name","url","image","map","iniciative","index","item","xs","key","navMenuLaucherItem","menuButton","menuButtonActive","MenuIcon","mobileMenuNav","mobileMenuNavIsVisible","style","height","innerHeight","navListMobile","navListMobileLink","navListMobileLinkActive","navListMobileIconItem","navListMobileItemLogin","navListMobileItemUserInfo","ExitToAppIcon","Dialog","scroll","aria-labelledby","DialogTitle","DialogContent","dividers","textAlign","DialogContentText","Typography","variant","listStyle","marginBottom","marginLeft","DialogActions","kind","definitions","operation","value","variableDefinitions","directives","selectionSet","selections","loc","start","end","source","body","locationOffset","line","column","module","exports","ecostageImage","primaryColor","secondaryColor","thirdColor","fourthColor","fifthColor","sixthColor","blackColor","blackColorSecondary","blackColorThird","blackDisabled","blackHint","grayColor","whiteColor","whiteTrueColor","errorColor","successColor","waitingColor","fontFamily","bottomContent","bottomRightContent","profileBox","link","activeLink","signInButton","signInButtonIcon","signInButtonText","locationIcon","autocompleteOptionTitle","autocompleteOptionSubtitle","infoList","infoItem","infoItemBadgeTotalTag","infoItemLabel","infoItemValue","actionControls","actionControlsWithPadding","actionButton","actionButtonIconBadge","actionButtonIconWrapper","spin","actionButtonLeft","actionButtonActive","actionButtonActiveLeft","actionsSeparator","MuiButton-endIcon","MuiButton-startIcon","loadingAggregationWrapper","navListItemUserInfo","navListItemUserInfoName","profileBoxLink","exitButton","betaInfo","actionButtonIconFile","navListItemApi","navListItemGenerateReports","p"],"mappings":"0FAAAA,EAAAC,EAAAC,EAAA,sBAAAC,IAAA,IAAAC,EAAAJ,EAAA,MAEe,SAASG,IAAmB,IACjCE,EAAkBC,cAAlBD,cAGR,OAFe,SAACE,GAAU,OAAKF,EAAc,CAAEE,2CCJjDP,EAAAC,EAAAC,EAAA,sBAAAM,IAAA,IAAAC,EAAAT,EAAA,KAEe,SAASQ,EAAME,GAAuC,IAAtBC,EAAQC,UAAAC,OAAA,QAAAC,IAAAF,UAAA,GAAAA,UAAA,GAAG,UACxDG,IAAOC,UAAU,CACfC,KAAM,CACJT,MAAO,CACLU,WAAY,aACZR,UACAC,WACAQ,SAAS,yCCTjBnB,EAAAC,EAAAC,EAAA,sBAAAkB,IAAA,IAAAC,EAAArB,EAAA,GAAAsB,EAAAtB,EAAAuB,EAAAF,GAAAG,EAAAxB,EAAA,MAAAyB,EAAAzB,EAAA,MAAA0B,EAAA1B,EAAA,KAAA2B,EAAA3B,EAAAuB,EAAAG,GAOO,SAASN,IACd,OACEQ,IAAAC,cAAA,UAAQC,UAAWC,IAAOC,SACxBJ,IAAAC,cAAA,SAAOC,UAAWC,IAAOE,UAAU,6CACAL,IAAAC,cAACK,IAAgB,CAAC3B,GAAG,sBAExDqB,IAAAC,cAAA,SAAOC,UAAWC,IAAOI,WACvBP,IAAAC,cAAA,YACED,IAAAC,cAACK,IAAgB,CAAC3B,GAAG,mBAAmB,IAAE6B,QAA8B,uBACxER,IAAAC,cAACQ,IAAI,CAACC,KAAK,UACTV,IAAAC,cAACK,IAAgB,CAAC3B,GAAG,inBCs8BlBgC,gBA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BAAA,wCAAAoC,iBAAA,iCAAAmH,sBAAA,oCAAA5J,cAAA,8BAAA6C,gBAAA,gCAAAgH,0BAAA,0CAAAC,oBAAA,oCAAA1G,mBAAA,mCAAAU,mBAAA,mCAAAiG,wBAAA,wCAAAhG,WAAA,2BAAAC,iBAAA,iCAAAE,cAAA,8BAAAC,uBAAA,uCAAAI,cAAA,8BAAAG,sBAAA,sCAAAC,uBAAA,uCAAAC,0BAAA,0CAAAJ,kBAAA,kCAAAC,wBAAA,wCAAAuF,eAAA,+BAAAC,WAAA,2BAAAC,SAAA,yBAAAC,qBAAA,qCAAAC,eAAA,+BAAAC,2BAAA,iECDlBzD,EAAAC,QAAiB5Q,EAAAqU,EAAuB","file":"static/js/4.498439a1.chunk.js","sourcesContent":["import { useIntl } from 'react-intl';\n\nexport default function useFormatMessage() {\n const { formatMessage } = useIntl();\n const format = (id: string) => formatMessage({ id });\n\n return format;\n}\n","import client from '../core/apollo-client-v2/apollo-client';\n\nexport default function toast(content: string, severity = 'success') {\n client.writeData({\n data: {\n toast: {\n __typename: 'ToastState',\n content,\n severity,\n visible: true\n }\n }\n });\n}\n","import React from 'react';\nimport { FormattedMessage } from 'react-intl';\n\nimport Link from '@material-ui/core/Link';\n\nimport styles from './Footer.module.scss';\n\nexport function Footer() {\n return (\n <footer className={styles.wrapper}>\n <small className={styles.copyText}>\n © Copyright · MapBiomas Alerta · <FormattedMessage id='footer.copyright' />\n </small>\n <small className={styles.alertText}>\n <span>\n <FormattedMessage id='footer.version' /> {process.env.REACT_APP_GIT_TAG} · \n <Link href='/terms'>\n <FormattedMessage id='pages.terms_and_privacity' />\n </Link>\n </span>\n </small>\n </footer>\n );\n}\n","import React, { Fragment, useEffect, useState } from 'react';\nimport { FormattedMessage } from 'react-intl';\nimport { NavLink, withRouter } from 'react-router-dom';\n\nimport { useApolloClient, useMutation, useQuery } from '@apollo/react-hooks';\nimport classnames from 'classnames';\nimport _ from 'lodash';\nimport moment from 'moment';\nimport qs from 'qs';\n\nimport {\n Button,\n DialogActions,\n DialogContent,\n DialogContentText,\n DialogTitle,\n IconButton,\n Menu,\n MenuItem,\n Typography,\n} from '@material-ui/core';\nimport Dialog from '@material-ui/core/Dialog';\nimport Divider from '@material-ui/core/Divider';\nimport Grid from '@material-ui/core/Grid';\nimport Tooltip from '@material-ui/core/Tooltip';\nimport useMediaQuery from '@material-ui/core/useMediaQuery';\nimport AppsRoundedIcon from '@material-ui/icons/AppsRounded';\nimport ExitToAppIcon from '@material-ui/icons/ExitToApp';\nimport ExpandLessIcon from '@material-ui/icons/ExpandLess';\nimport ExpandMoreIcon from '@material-ui/icons/ExpandMore';\nimport InputIcon from '@material-ui/icons/Input';\nimport LiveHelpIcon from '@material-ui/icons/LiveHelp';\nimport MenuIcon from '@material-ui/icons/Menu';\nimport PersonIcon from '@material-ui/icons/Person';\nimport PriorityHighIcon from '@material-ui/icons/PriorityHigh';\nimport TranslateIcon from '@material-ui/icons/Translate';\n\nimport resetToken from '../../../core/apollo-client-v2/helpers/resetToken';\nimport { isModule } from '../../../helpers/locale';\nimport useFormatMessage from '../../../hooks/useFormatMessage';\nimport { GET_ACTIVE_ALERT_VISIBLE_AND_BATCH_EXPORT_REPORTS } from '../../../models/InMemoryCache/localFields';\nimport { LAST_ALERT_PUBLICATION } from '../../../models/Publications/operations';\nimport { SIGN_OUT } from '../../../models/User/operations';\nimport { IHeaderProps, IInitiative } from './Header.interfaces';\n// @ts-ignore\nimport styles from './Header.module.scss';\n// @ts-ignore\nimport logo from './logo.png';\n\nfunction Header({ location, simple = false }: IHeaderProps) {\n const formatMessage = useFormatMessage();\n const client = useApolloClient();\n const token = localStorage?.getItem('token') || '';\n const profile = localStorage?.getItem('profile') || '';\n const pathname = _.get(location, 'pathname');\n const search = _.get(location, 'search');\n let filteredLocationSearch = '';\n const isOnLandingPage =\n _.includes(pathname, '/mapa') ||\n _.includes(pathname, '/lista') ||\n _.includes(pathname, '/estatisticas') ||\n _.includes(pathname, '/laudos-e-acoes');\n const isMobile = useMediaQuery('(max-width: 640px)');\n\n // const [menuIsVisible, setMenuIsVisible] = useState(false);\n\n const { data: baseData } = useQuery(GET_ACTIVE_ALERT_VISIBLE_AND_BATCH_EXPORT_REPORTS);\n const menuIsVisible = _.get(baseData, 'app.mobileMenuIsVisible');\n const filtersVisibility = _.get(baseData, 'app.filtersAreVisible');\n const [noteRADOpen, setNoteRADOpen] = useState(true);\n\n if (search) {\n const queryString = search.replace('?', '');\n let queryObject = qs.parse(queryString);\n queryObject = _.omit(queryObject, ['locationType', 'locationText']);\n\n filteredLocationSearch = qs.stringify(queryObject, { encodeValuesOnly: true });\n }\n\n const handleRADNoteDialogClose = () => {\n setNoteRADOpen(false);\n };\n\n const [pathSignIn, setPathSignIn] = useState(\n window.location.pathname && window.location.pathname !== '/sign-in' && window.location.pathname !== '/confirmacao'\n ? `/sign-in?callback_url=${window.location.pathname}`\n : '/sign-in'\n );\n\n // const [checkExports, {\n // data: checkExportsData,\n // loading: loadingCheckExportsData,\n // }] = useLazyQuery(CHECK_EXPORTS_STATUS, {\n // fetchPolicy: 'cache-and-network',\n // variables: {\n // limit: 50,\n // offset: 0\n // },\n // skip: !isOnLandingPage\n // });\n\n const mapbiomas_iniciatives: IInitiative[] = [\n {\n name: 'MapBiomas Brasil',\n url: 'https://brasil.mapbiomas.org/',\n image: 'https://brasil.mapbiomas.org/wp-content/themes/mapbiomas/assets/images/sites/mapbiomas-brasil.png',\n },\n {\n name: 'MapBiomas Alerta',\n url: 'https://alerta.mapbiomas.org/',\n image: 'https://brasil.mapbiomas.org/wp-content/themes/mapbiomas/assets/images/sites/mapbiomas-alerta.png',\n },\n {\n name: 'MapBiomas Indonésia',\n url: 'https://mapbiomas.nusantara.earth/',\n image: 'https://brasil.mapbiomas.org/wp-content/themes/mapbiomas/assets/images/sites/mapbiomas-indonesia.png',\n },\n {\n name: 'MapBiomas Amazônia',\n url: 'https://amazonia.mapbiomas.org/',\n image: 'https://brasil.mapbiomas.org/wp-content/themes/mapbiomas/assets/images/sites/mapbiomas-amazonia.png',\n },\n {\n name: 'MapBiomas Peru',\n url: 'https://peru.mapbiomas.org/',\n image: 'https://brasil.mapbiomas.org/wp-content/themes/mapbiomas/assets/images/sites/mapbiomas-peru.png',\n },\n {\n name: 'MapBiomas Chaco',\n url: 'https://chaco.mapbiomas.org/',\n image: 'https://brasil.mapbiomas.org/wp-content/themes/mapbiomas/assets/images/sites/mapbiomas-chaco.png',\n },\n {\n name: 'MapBiomas Bolivia',\n url: 'https://bolivia.mapbiomas.org/',\n image: 'https://brasil.mapbiomas.org/wp-content/themes/mapbiomas/assets/images/sites/mapbiomas-bolivia.png',\n },\n {\n name: 'MapBiomas Bosqueatlantico',\n url: 'https://bosqueatlantico.mapbiomas.org/',\n image:\n 'https://brasil.mapbiomas.org/wp-content/themes/mapbiomas/assets/images/sites/mapbiomas-bosque-atlantico.png',\n },\n {\n name: 'MapBiomas Colombia',\n url: 'https://colombia.mapbiomas.org/',\n image: 'https://brasil.mapbiomas.org/wp-content/themes/mapbiomas/assets/images/sites/mapbiomas-colombia.png',\n },\n {\n name: 'MapBiomas Pampa',\n url: 'https://pampa.mapbiomas.org/',\n image: 'https://brasil.mapbiomas.org/wp-content/themes/mapbiomas/assets/images/sites/mapbiomas-pampa.png',\n },\n {\n name: 'MapBiomas Venezuela',\n url: 'https://venezuela.mapbiomas.org/',\n image: 'https://brasil.mapbiomas.org/wp-content/themes/mapbiomas/assets/images/sites/mapbiomas-venezuela.png',\n },\n {\n name: 'MapBiomas Ãrida',\n url: 'https://arido.mapbiomas.org/',\n image: 'https://brasil.mapbiomas.org/wp-content/themes/mapbiomas/assets/images/sites/mapbiomas-arida.png',\n },\n {\n name: 'MapBiomas Uruguay',\n url: 'https://uruguay.mapbiomas.org/',\n image: 'https://brasil.mapbiomas.org/wp-content/themes/mapbiomas/assets/images/sites/mapbiomas-uruguay.png',\n },\n {\n name: 'MapBiomas Fogo',\n url: 'https://plataforma.brasil.mapbiomas.org/fogo',\n image: 'https://brasil.mapbiomas.org/wp-content/themes/mapbiomas/assets/images/sites/mapbiomas-fogo.png',\n },\n {\n name: 'MapBiomas Ecuador',\n url: 'https://ecuador.mapbiomas.org/',\n image: 'https://brasil.mapbiomas.org/wp-content/themes/mapbiomas/assets/images/sites/mapbiomas-ecuador.png',\n },\n {\n name: 'MapBiomas Solo',\n url: 'https://plataforma.brasil.mapbiomas.org/solo',\n image: 'https://brasil.mapbiomas.org/wp-content/themes/mapbiomas/assets/images/sites/mapbiomas-solo.png',\n },\n {\n name: 'MapBiomas Paraguay',\n url: 'https://paraguay.mapbiomas.org/',\n image: 'https://brasil.mapbiomas.org/wp-content/themes/mapbiomas/assets/images/sites/mapbiomas-paraguay.png',\n },\n {\n name: '',\n url: '',\n },\n ];\n\n const { data: lastPublicationData, loading: loadingLastPublicationData } = useQuery(LAST_ALERT_PUBLICATION, {\n skip: !isOnLandingPage,\n });\n\n const [signOut] = useMutation(SIGN_OUT, {\n onCompleted: () => {\n window.location.href = '/';\n },\n onError: () => {\n window.location.href = '/';\n },\n });\n\n const updateClientAppState = (params: any) => {\n client.writeData({\n data: {\n app: {\n __typename: 'AppState',\n ...params,\n },\n },\n });\n };\n\n useEffect(() => {\n if (filtersVisibility && isMobile) {\n toggleFilters();\n }\n }, [isMobile]);\n\n const handleToggleMobileMenu = () => {\n updateClientAppState({ mobileMenuIsVisible: !menuIsVisible });\n };\n\n const handleCloseMobileMenu = () => {\n updateClientAppState({ mobileMenuIsVisible: false });\n };\n\n const handleOpenGuidedTour = () => {\n updateClientAppState({ openTourGuided: true });\n };\n\n const toggleFilters = () => {\n updateClientAppState({ filtersAreVisible: !filtersVisibility });\n };\n\n const handleExit = () => {\n resetToken();\n signOut({ variables: { sessionToken: token } });\n };\n\n const handleLocaleChange = (locale: string) => {\n localStorage?.setItem('locale', locale);\n window.location.reload();\n };\n\n const renderLastPublicationData = () => {\n if (loadingLastPublicationData && !lastPublicationData) {\n return null;\n }\n\n const lastPublication = _.get(lastPublicationData, 'lastAlertPublication');\n const { total, publishedAt } = lastPublication || {};\n\n if (total < 1) {\n return null;\n }\n\n return (\n <Tooltip title={formatMessage('alerts.published_at') + ' ' + moment(publishedAt).format('DD/MM/YYYY')}>\n <span>\n {total}{' '}\n {total > 1\n ? formatMessage('alerts_filters.panels.alerts.new_alerts')\n : formatMessage('alerts_filters.panels.alerts.new_alert')}\n </span>\n </Tooltip>\n );\n };\n\n // const renderHeaderLoading = () => {\n // // eslint-disable-next-line no-undef\n // if (loadingAggregationsData || !aggregationsData || isLoadingAlertData) {\n // //setTotalAlert(null)\n // return (\n // <div className={styles.loadingAggregationWrapper}>\n // <CircularProgress color=\"primary\" size={20} />\n // </div>\n // );\n // }\n // }\n\n const [anchorLocaleEl, setAnchorLocaleEl] = React.useState<HTMLButtonElement | null>(null);\n const [anchorLaucherEl, setAnchorLaucherEl] = React.useState<HTMLButtonElement | null>(null);\n\n const handleLaucherClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorLaucherEl(event.currentTarget);\n };\n const handleLaucherClose = () => {\n setAnchorLaucherEl(null);\n };\n\n const handleLocaleClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorLocaleEl(event.currentTarget);\n };\n const handleLocaleClose = () => {\n setAnchorLocaleEl(null);\n };\n\n const [anchorPerfilEl, setAnchorPerfilEl] = React.useState<HTMLButtonElement | null>(null);\n const handlePerfilClick = (event: React.MouseEvent<HTMLButtonElement>) => {\n setAnchorPerfilEl(event.currentTarget);\n };\n const handlePerfilClose = () => {\n setAnchorPerfilEl(null);\n };\n\n const [noteOpen, setNoteOpen] = useState(false);\n\n const isDocumentRecentlyRead = () => {\n const noticeRead = Number(localStorage?.getItem('noticeRead'));\n const thirtyDays = 2592000000;\n return noticeRead && Date.now() - noticeRead < thirtyDays;\n };\n\n useEffect(() => {\n if (!isDocumentRecentlyRead() && isOnLandingPage) {\n setNoteOpen(true);\n }\n }, []);\n\n const handleNoteDialogClose = (event: React.MouseEvent<any>, reason?: string) => {\n if (reason && reason == 'backdropClick') return;\n localStorage?.setItem('noticeRead', String(Date.now()));\n setNoteOpen(false);\n };\n\n return (\n <header\n className={classnames(styles.wrapper, {\n [styles.wrapperSimple]: simple,\n })}\n >\n <div className={styles.topContent}>\n <a href='http://alerta.mapbiomas.org/'>\n <img className={styles.logoImage} src={logo} id='logo-mapbiomas-alerta' alt='logo MapBiomas Alerta' />\n </a>\n <nav className={styles.actions}>\n {!isMobile && (\n <ul className={styles.navList}>\n <li>\n <NavLink\n className={classnames({\n [styles.navLinkActive]: _.includes(['/mapa', '/lista', '/estatisticas'], pathname),\n })}\n to={`/mapa${search}`}\n id='header-map'\n >\n <FormattedMessage id='menu.alerts' />\n </NavLink>\n </li>\n {isModule('brazil') && (\n <li>\n <NavLink activeClassName={styles.navLinkActive} id='inspection_monitor' to='/monitor-da-fiscalizacao'>\n <FormattedMessage id='menu.inspection_monitor' />\n </NavLink>\n </li>\n )}\n <li>\n <NavLink activeClassName={styles.navLinkActive} to='/downloads' id='header-downloads'>\n <FormattedMessage id='menu.downloads' />\n </NavLink>\n </li>\n {isModule('brazil') && (\n <li>\n <NavLink activeClassName={styles.navLinkActive} to='/plugins' id='header-plugins'>\n <FormattedMessage id='menu.plugins' />\n </NavLink>\n </li>\n )}\n <li>\n <NavLink activeClassName={styles.navLinkActive} to='/api' id='header-api'>\n <FormattedMessage id='menu.api' />\n </NavLink>\n </li>\n <li className={styles.navListItemSpacing}></li>\n <li className={styles.navListItemNotification}>\n <IconButton\n size='small'\n aria-label={formatMessage('alert_form.note_concern_read')}\n color='inherit'\n id='header-precaution'\n onClick={() => {\n setNoteOpen(true);\n }}\n >\n <Tooltip title={formatMessage('alert_form.note_concern_read')}>\n <PriorityHighIcon />\n </Tooltip>\n </IconButton>\n </li>\n <li className={styles.navListItemNotification}>\n <IconButton\n size='small'\n aria-label={formatMessage('tour_guided.title_tooltip')}\n color='inherit'\n id='header-tour_guided'\n onClick={handleOpenGuidedTour}\n >\n <Tooltip title={formatMessage('tour_guided.title_tooltip')}>\n <LiveHelpIcon />\n </Tooltip>\n </IconButton>\n </li>\n <li className={styles.navListItemTranslate}>\n <Tooltip\n title={\n localStorage?.getItem('locale') !== 'en' ? (\n <FormattedMessage id='locale.pt_br' />\n ) : (\n <FormattedMessage id='locale.en' />\n )\n }\n >\n <Button\n size='small'\n id='header-translate'\n startIcon={<TranslateIcon />}\n endIcon={!Boolean(anchorLocaleEl) ? <ExpandMoreIcon /> : <ExpandLessIcon />}\n onClick={handleLocaleClick}\n >\n {\n //localStorage?.getItem('locale') !== 'en' ? 'BR' : 'EN'\n }\n </Button>\n </Tooltip>\n <Menu\n id='simple-menu'\n anchorEl={anchorLocaleEl}\n getContentAnchorEl={null}\n anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}\n transformOrigin={{ vertical: 'top', horizontal: 'center' }}\n keepMounted\n open={Boolean(anchorLocaleEl)}\n onClose={handleLocaleClose}\n aria-controls='simple-menu'\n aria-haspopup='true'\n >\n <MenuItem\n selected={localStorage?.getItem('locale') === 'pt-BR'}\n onClick={handleLocaleChange.bind(this, 'pt-BR')}\n >\n <FormattedMessage id='locale.pt_br' />\n </MenuItem>\n <MenuItem\n selected={localStorage?.getItem('locale') === 'en'}\n onClick={handleLocaleChange.bind(this, 'en')}\n >\n <FormattedMessage id='locale.en' />\n </MenuItem>\n {isModule('indonesia') === true ||\n (localStorage?.getItem('beta') === 'true' && (\n <MenuItem\n selected={localStorage?.getItem('locale') === 'id'}\n onClick={handleLocaleChange.bind(this, 'id')}\n >\n <FormattedMessage id='locale.id' />\n </MenuItem>\n ))}\n </Menu>\n </li>\n <li className={styles.navListItemGrap}></li>\n {!token && (\n <li className={styles.navListItemLogin} id='header-sign-in'>\n <NavLink to={pathSignIn}>\n <InputIcon />\n <span>\n <FormattedMessage id='menu.sign_in' />\n </span>\n </NavLink>\n </li>\n )}\n\n {token && (\n <li className={styles.navListItemLogin}>\n <Tooltip title={`Email: ${localStorage?.getItem('email')}`}>\n <Button\n onClick={handlePerfilClick}\n startIcon={<PersonIcon />}\n endIcon={!anchorPerfilEl ? <ExpandMoreIcon /> : <ExpandLessIcon />}\n >\n {localStorage?.getItem('name')?.split(' ')[0]}\n </Button>\n </Tooltip>\n <Menu\n id='perfil-menu'\n anchorEl={anchorPerfilEl}\n getContentAnchorEl={null}\n anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}\n transformOrigin={{ vertical: 'top', horizontal: 'center' }}\n keepMounted\n open={Boolean(anchorPerfilEl)}\n onClose={handlePerfilClose}\n >\n <MenuItem\n onClick={() => {\n window.location.href = '/account';\n }}\n >\n <FormattedMessage id='profile_menu.profile' /> {localStorage?.getItem('beta') ? ' (Beta)' : ''}{' '}\n </MenuItem>\n <MenuItem\n className={styles.menuItemSubMenu}\n onClick={() => {\n window.location.href = '/account';\n }}\n >\n <FormattedMessage id='profile_menu.manager_account' />\n </MenuItem>\n <MenuItem\n className={styles.menuItemSubMenu}\n onClick={() => {\n window.location.href = '/account/my-maps';\n }}\n >\n <FormattedMessage id='profile_menu.my_maps' />\n </MenuItem>\n <MenuItem\n className={styles.menuItemSubMenu}\n onClick={() => {\n window.location.href = '/account/authenticated-reports';\n }}\n >\n <FormattedMessage id='profile_menu.my_authenticated_reports' />\n </MenuItem>\n <MenuItem\n className={styles.menuItemSubMenu}\n onClick={() => {\n window.location.href = '/account/support-cases';\n }}\n >\n <FormattedMessage id='administrator.tabs.support_cases' />\n </MenuItem>\n {['administrator', 'coordinator', 'institution_member', 'institution_manager'].includes(\n profile\n ) && (\n <MenuItem\n onClick={() => {\n window.location.href = '/institution';\n }}\n >\n <FormattedMessage id='profile_menu.institution' />\n </MenuItem>\n )}\n {profile && ['administrator', 'coordinator', 'institution_manager'].includes(profile) && (\n <Fragment>\n <MenuItem\n className={styles.menuItemSubMenu}\n onClick={() => {\n window.location.href = '/institution/customizable-report';\n }}\n >\n <FormattedMessage id='profile_menu.custom_report' />\n </MenuItem>\n </Fragment>\n )}\n {['administrator', 'coordinator'].includes(profile) && (\n <MenuItem\n className={styles.menuItemSubMenu}\n onClick={() => {\n window.location.href = '/institution/upload-actions';\n }}\n >\n <FormattedMessage id='profile_menu.upload_actions' />\n </MenuItem>\n )}\n {['institution_manager', 'institution_member', 'administrator', 'coordinator'].includes(\n profile\n ) && (\n <Fragment>\n <MenuItem\n className={styles.menuItemSubMenu}\n onClick={() => {\n window.location.href = '/institution/upload-batch/actions';\n }}\n >\n <FormattedMessage id='profile_menu.upload_actions_lote' />\n </MenuItem>\n <MenuItem\n className={styles.menuItemSubMenu}\n onClick={() => {\n window.location.href = '/institution/upload-batch/authorizations';\n }}\n >\n <FormattedMessage id='profile_menu.upload_authorizations_lote' />\n </MenuItem>\n </Fragment>\n )}\n {token && ['administrator', 'coordinator'].includes(profile) && (\n <Fragment>\n <MenuItem\n onClick={() => {\n window.location.href = '/administrator';\n }}\n >\n <FormattedMessage id='menu.admin' />\n </MenuItem>\n <MenuItem\n className={styles.menuItemSubMenu}\n onClick={() => {\n window.location.href = '/administrator/users';\n }}\n >\n <FormattedMessage id='administrator.tabs.users' />\n </MenuItem>\n <MenuItem\n className={styles.menuItemSubMenu}\n onClick={() => {\n window.location.href = '/administrator/institutions';\n }}\n >\n <FormattedMessage id='administrator.tabs.institutions' />\n </MenuItem>\n <MenuItem\n className={styles.menuItemSubMenu}\n onClick={() => {\n window.location.href = '/administrator/support-cases';\n }}\n >\n <FormattedMessage id='administrator.tabs.support_cases' />\n </MenuItem>\n <MenuItem\n className={styles.menuItemSubMenu}\n onClick={() => {\n window.location.href = '/administrator/upload-actions';\n }}\n >\n <FormattedMessage id='administrator.tabs.uploaded_actions' />\n </MenuItem>\n <MenuItem\n className={styles.menuItemSubMenu}\n onClick={() => {\n window.location.href = '/administrator/upload-batch/actions';\n }}\n >\n <FormattedMessage id='administrator.tabs.uploaded_actions_lote' />\n </MenuItem>\n <MenuItem\n className={styles.menuItemSubMenu}\n onClick={() => {\n window.location.href = '/administrator/upload-batch/authorizations';\n }}\n >\n <FormattedMessage id='administrator.tabs.uploaded_authorizations_lote' />\n </MenuItem>\n </Fragment>\n )}\n <Divider />\n <MenuItem onClick={handleExit}>\n <FormattedMessage id='menu.sign_out' />\n </MenuItem>\n </Menu>\n </li>\n )}\n {localStorage?.getItem('beta') && (\n <li className={styles.navListItemLaucher}>\n <Tooltip title='Iniciativas MapBiomas'>\n <Button\n size='small'\n id='header-laucher'\n startIcon={<AppsRoundedIcon />}\n onClick={handleLaucherClick}\n >\n {\n //localStorage?.getItem('locale') !== 'en' ? 'BR' : 'EN'\n }\n </Button>\n </Tooltip>\n <Menu\n id='laucher-menu'\n anchorEl={anchorLaucherEl}\n getContentAnchorEl={null}\n anchorOrigin={{ vertical: 'bottom', horizontal: 'center' }}\n transformOrigin={{ vertical: 'top', horizontal: 'center' }}\n keepMounted\n open={Boolean(anchorLaucherEl)}\n onClose={handleLaucherClose}\n aria-controls='laucher-menu'\n aria-haspopup='true'\n >\n <Grid container className={styles.navMenuLaucherMenu}>\n {mapbiomas_iniciatives.map((iniciative, index) => {\n return (\n <Grid item xs={6} key={index}>\n <Tooltip title={iniciative.name}>\n <a href={iniciative.url}>\n <img alt='' className={styles.navMenuLaucherItem} src={iniciative.image} />\n </a>\n </Tooltip>\n </Grid>\n );\n })}\n </Grid>\n </Menu>\n </li>\n )}\n </ul>\n )}\n {isMobile && (\n <button\n id='mobile-menu-button'\n className={classnames(styles.menuButton, {\n [styles.menuButtonActive]: menuIsVisible,\n })}\n onClick={handleToggleMobileMenu}\n >\n <MenuIcon />\n </button>\n )}\n </nav>\n </div>\n {isMobile && (\n <nav\n className={classnames(styles.mobileMenuNav, {\n [styles.mobileMenuNavIsVisible]: menuIsVisible,\n })}\n style={{ height: window.innerHeight - (50 + 30) }}\n >\n <ul className={styles.navListMobile}>\n <li>\n <NavLink\n className={classnames(styles.navListMobileLink, {\n [styles.navListMobileLinkActive]: _.includes(['/mapa', '/lista', '/estatisticas'], pathname),\n })}\n to={`/mapa${search}`}\n id='header-map'\n onClick={handleCloseMobileMenu}\n >\n <FormattedMessage id='menu.alerts' />\n </NavLink>\n </li>\n {isModule('brazil') && (\n <li>\n <NavLink\n className={styles.navListMobileLink}\n activeClassName={styles.navListMobileLinkActive}\n to='/monitor-da-fiscalizacao'\n id='inspection_monitor'\n onClick={handleCloseMobileMenu}\n >\n <FormattedMessage id='menu.inspection_monitor' />\n </NavLink>\n </li>\n )}\n <li>\n <NavLink\n className={styles.navListMobileLink}\n activeClassName={styles.navListMobileLinkActive}\n to='/downloads'\n id='header-downloads'\n onClick={handleCloseMobileMenu}\n >\n <FormattedMessage id='menu.downloads' />\n </NavLink>\n </li>\n {isModule('brazil') && (\n <li>\n <NavLink\n className={styles.navListMobileLink}\n activeClassName={styles.navListMobileLinkActive}\n to='/plugins'\n id='header-plugins'\n onClick={handleCloseMobileMenu}\n >\n <FormattedMessage id='menu.plugins' />\n </NavLink>\n </li>\n )}\n <li>\n <NavLink activeClassName={styles.navLinkActive} to='/api' id='header-api'>\n <FormattedMessage id='menu.api' />\n </NavLink>\n </li>\n <li\n className={styles.navListMobileIconItem}\n id='header-precaution'\n onClick={() => {\n setNoteOpen(true);\n }}\n >\n <PriorityHighIcon />\n <span>\n <FormattedMessage id='alert_form.note_concern' />\n </span>\n </li>\n <li id='header-tour_guided' className={styles.navListMobileIconItem} onClick={handleOpenGuidedTour}>\n <LiveHelpIcon />\n <span>\n <FormattedMessage id='tour_guided.title' />\n </span>\n </li>\n <li id='header-translate' className={styles.navListMobileIconItem}>\n <TranslateIcon />\n <a href='#' onClick={handleLocaleChange.bind(this, 'pt-BR')}>\n PT-BR\n </a>\n <span> | </span>\n <a href='#' onClick={handleLocaleChange.bind(this, 'en')}>\n EN\n </a>\n </li>\n {!token && (\n <li id='header-sign-in' className={styles.navListMobileItemLogin}>\n <NavLink onClick={handleCloseMobileMenu} to={pathSignIn}>\n <InputIcon />\n <span>\n <FormattedMessage id='menu.sign_in' />\n </span>\n </NavLink>\n </li>\n )}\n {token && (\n <li className={styles.navListMobileItemLogin}>\n <span\n className={styles.navListMobileItemUserInfo}\n onClick={() => {\n window.location.href = '/account';\n }}\n >\n <PersonIcon />\n <span>{localStorage?.getItem('name')}</span>\n </span>\n <button onClick={handleExit}>\n <ExitToAppIcon />\n <span>\n <FormattedMessage id='menu.sign_out' />\n </span>\n </button>\n </li>\n )}\n </ul>\n </nav>\n )}\n {/* {\n isOnLandingPage && <Filters\n history={ history }\n isMobile={ isMobile }\n isOnMapPage={ isOnLandingPage }\n isVisible={ filtersVisibility && !simple }\n location={ location }\n onToggle={ toggleFilters }\n />\n } */}\n <Dialog\n id='header-note-concern'\n scroll={'paper'}\n open={noteOpen}\n onClose={handleNoteDialogClose}\n aria-labelledby='confirmation-dialog-title'\n >\n <DialogTitle id='alert-dialog-title'>\n {' '}\n <FormattedMessage id='alert_form.note_concern' />{' '}\n </DialogTitle>\n <DialogContent dividers={true} style={{ textAlign: 'justify' }}>\n <DialogContentText>\n <Typography variant='body2'>\n <FormattedMessage id='alert_form.note_concern_body' />\n </Typography>\n </DialogContentText>\n <DialogContentText>\n <Typography variant='body2'>\n <FormattedMessage id='alert_form.note_concern_body_1' />\n </Typography>\n </DialogContentText>\n <DialogContentText>\n <Typography variant='body2'>\n <b>\n <FormattedMessage id='alert_form.note_concern_important' />\n </b>\n </Typography>\n <Typography variant='body2'>\n <b>\n <FormattedMessage id='alert_form.note_concern_important_explanation' />\n </b>\n </Typography>\n </DialogContentText>\n <DialogContentText>\n <FormattedMessage id='alert_form.note_concern_explanations' />\n </DialogContentText>\n <DialogContentText>\n <Typography variant='body2'>\n <ol style={{ listStyle: 'decimal' }}>\n <li style={{ listStyle: 'decimal', marginBottom: '10px', marginLeft: '12px' }}>\n <FormattedMessage id='alert_form.note_concern_explanations_1' />\n </li>\n <li style={{ listStyle: 'decimal', marginBottom: '10px', marginLeft: '12px' }}>\n <FormattedMessage id='alert_form.note_concern_explanations_2' />\n </li>\n <li style={{ listStyle: 'decimal', marginBottom: '10px', marginLeft: '12px' }}>\n <FormattedMessage id='alert_form.note_concern_explanations_3' />\n </li>\n <li style={{ listStyle: 'decimal', marginBottom: '10px', marginLeft: '12px' }}>\n <FormattedMessage id='alert_form.note_concern_explanations_4' />\n </li>\n <li style={{ listStyle: 'decimal', marginBottom: '10px', marginLeft: '12px' }}>\n <FormattedMessage id='alert_form.note_concern_explanations_5' />\n </li>\n <li style={{ listStyle: 'decimal', marginBottom: '10px', marginLeft: '12px' }}>\n <FormattedMessage id='alert_form.note_concern_explanations_6' />\n </li>\n <li style={{ listStyle: 'decimal', marginBottom: '10px', marginLeft: '12px' }}>\n <FormattedMessage id='alert_form.note_concern_explanations_7' />\n </li>\n <li style={{ listStyle: 'decimal', marginBottom: '10px', marginLeft: '12px' }}>\n <FormattedMessage id='alert_form.note_concern_explanations_8' />\n </li>\n <li style={{ listStyle: 'decimal', marginBottom: '10px', marginLeft: '12px' }}>\n <FormattedMessage id='alert_form.note_concern_explanations_9' />\n </li>\n <li style={{ listStyle: 'decimal', marginBottom: '10px', marginLeft: '12px' }}>\n <FormattedMessage id='alert_form.note_concern_explanations_10' />\n </li>\n <li style={{ listStyle: 'decimal', marginBottom: '10px', marginLeft: '12px' }}>\n <FormattedMessage id='alert_form.note_concern_explanations_11' />\n </li>\n </ol>\n </Typography>\n </DialogContentText>\n <DialogContentText>\n <Typography variant='body2'>\n <FormattedMessage id='alert_form.note_concern_explanations_footer' />\n </Typography>\n </DialogContentText>\n <DialogContentText style={{ textAlign: 'right' }}>\n <Typography variant='caption'>\n <FormattedMessage id='alert_form.note_concern_update_at' />\n </Typography>\n </DialogContentText>\n </DialogContent>\n <DialogActions>\n <Button onClick={handleNoteDialogClose} color='primary'>\n <FormattedMessage id='operations.agree' />\n </Button>\n </DialogActions>\n </Dialog>\n {location?.pathname === '/mapa' && isModule('brazil') && false && (\n <Dialog\n id='header-note-concern-rad'\n scroll={'paper'}\n open={noteRADOpen}\n onClose={handleRADNoteDialogClose}\n aria-labelledby='confirmation-dialog-title'\n >\n <DialogTitle id='alert-dialog-title'> Atenção! </DialogTitle>\n <DialogContent dividers={true}>\n <DialogContentText>\n <Typography variant='body2' style={{ textAlign: 'center' }}>\n Entre <b>27/05 e 16/06</b>, a plataforma do MapBiomas Alerta está passando por um processo de\n atualização que pode causar instabilidade. Pode haver diferenças em dados que contêm cruzamentos de\n territórios, particularmente naqueles cruzamentos referentes a imóveis rurais (CAR, SIGEF, RL, APP) e\n dados de autorizações e embargos.\n </Typography>\n </DialogContentText>\n <DialogContentText>\n <Typography></Typography>\n </DialogContentText>\n <DialogContentText>\n <Typography variant='body2' style={{ textAlign: 'center', marginTop: '24px', marginBottom: '12px' }}>\n <b>\n PARA ACESSAR A BASE DE DADOS COMPLETA DO RAD 2023, ACESSE{' '}\n <a style={{ color: '#c0392b' }} target='_blank' href='https://alerta.mapbiomas.org/relatorio/'>\n https://alerta.mapbiomas.org/relatorio\n </a>\n </b>\n </Typography>\n </DialogContentText>\n </DialogContent>\n <DialogActions>\n <Button onClick={handleRADNoteDialogClose} color='primary'>\n Entendi\n </Button>\n </DialogActions>\n </Dialog>\n )}\n </header>\n );\n}\n\nexport default withRouter(Header);\n","import {gql} from 'graphql.macro';\n\nexport const LAST_ALERT_PUBLICATION = gql`\n query lastAlertPublication{\n lastAlertPublication{\n total\n publishedAt\n publicationRange\n }\n }\n`;","// extracted by mini-css-extract-plugin\nmodule.exports = {\"wrapper\":\"Footer_wrapper__1HDMm\",\"copyText\":\"Footer_copyText__2CZho\",\"alertText\":\"Footer_alertText__2hOwn\",\"ecostageImage\":\"Footer_ecostageImage__3rUt5\"};","// extracted by mini-css-extract-plugin\nmodule.exports = {\"primaryColor\":\"#595959\",\"secondaryColor\":\"#7a7a7a\",\"thirdColor\":\"#f39c12\",\"fourthColor\":\"#81A5BC\",\"fifthColor\":\"#c0392b\",\"sixthColor\":\"#92B692\",\"blackColor\":\"rgba(23,23,23,0.85)\",\"blackColorSecondary\":\"rgba(23,23,23,0.85)\",\"blackColorThird\":\"#b7b7b7\",\"blackDisabled\":\"rgba(54,54,54,0.73)\",\"blackHint\":\"rgba(54,54,54,0.38)\",\"grayColor\":\"#F8F9FB\",\"whiteColor\":\"#EAEAEA\",\"whiteTrueColor\":\"#fff\",\"errorColor\":\"#d32f2f\",\"successColor\":\"#598f36\",\"waitingColor\":\"#f39c12\",\"fontFamily\":\"\\\"Lato\\\",sans-serif\",\"wrapper\":\"Header_wrapper__2goSM\",\"wrapperSimple\":\"Header_wrapperSimple__30kn8\",\"topContent\":\"Header_topContent__2jlO5\",\"bottomContent\":\"Header_bottomContent__2KHlx\",\"bottomRightContent\":\"Header_bottomRightContent__CXxgm\",\"profileBox\":\"Header_profileBox__3_Iqr\",\"logoImage\":\"Header_logoImage__3QLKy\",\"actions\":\"Header_actions__3Tb92\",\"link\":\"Header_link__3nUY-\",\"activeLink\":\"Header_activeLink__E1u-L\",\"signInButton\":\"Header_signInButton__4HKIy\",\"signInButtonIcon\":\"Header_signInButtonIcon__1cz0Z\",\"signInButtonText\":\"Header_signInButtonText__3OLdn\",\"locationIcon\":\"Header_locationIcon__1mT_r\",\"autocompleteOptionTitle\":\"Header_autocompleteOptionTitle__E-W2N\",\"autocompleteOptionSubtitle\":\"Header_autocompleteOptionSubtitle__1014E\",\"infoList\":\"Header_infoList__1aA1S\",\"infoItem\":\"Header_infoItem__3hAkQ\",\"infoItemBadgeTotalTag\":\"Header_infoItemBadgeTotalTag__3feB3\",\"infoItemLabel\":\"Header_infoItemLabel__1f-rf\",\"infoItemValue\":\"Header_infoItemValue__ZtABx\",\"actionControls\":\"Header_actionControls__33hRf\",\"actionControlsWithPadding\":\"Header_actionControlsWithPadding__3if_Z\",\"actionButton\":\"Header_actionButton__1WbHg\",\"actionButtonIconBadge\":\"Header_actionButtonIconBadge__eJkrt\",\"actionButtonIconWrapper\":\"Header_actionButtonIconWrapper__Q_vHV\",\"spin\":\"Header_spin__1GBUE\",\"actionButtonLeft\":\"Header_actionButtonLeft__18lyu\",\"actionButtonActive\":\"Header_actionButtonActive__1RNG9\",\"actionButtonActiveLeft\":\"Header_actionButtonActiveLeft__2vj0-\",\"actionsSeparator\":\"Header_actionsSeparator__3a98M\",\"navList\":\"Header_navList__3qMH0\",\"navListItemSpacing\":\"Header_navListItemSpacing__32aP6\",\"navListItemTranslate\":\"Header_navListItemTranslate__2oG1I\",\"MuiButton-endIcon\":\"Header_MuiButton-endIcon__1VgNq\",\"navListItemLaucher\":\"Header_navListItemLaucher__1nRjv\",\"navListItemNotification\":\"Header_navListItemNotification__2YvlX\",\"navListItemLogin\":\"Header_navListItemLogin__19mwo\",\"MuiButton-startIcon\":\"Header_MuiButton-startIcon__7sfSc\",\"navLinkActive\":\"Header_navLinkActive__1aks0\",\"menuItemSubMenu\":\"Header_menuItemSubMenu__2Dwsy\",\"loadingAggregationWrapper\":\"Header_loadingAggregationWrapper__G9ejX\",\"navListItemUserInfo\":\"Header_navListItemUserInfo__23CbS\",\"navMenuLaucherMenu\":\"Header_navMenuLaucherMenu__1qOSf\",\"navMenuLaucherItem\":\"Header_navMenuLaucherItem__2cyW_\",\"navListItemUserInfoName\":\"Header_navListItemUserInfoName__alGWM\",\"menuButton\":\"Header_menuButton__1Pmq4\",\"menuButtonActive\":\"Header_menuButtonActive__2dJM1\",\"mobileMenuNav\":\"Header_mobileMenuNav__238JC\",\"mobileMenuNavIsVisible\":\"Header_mobileMenuNavIsVisible__1gIEn\",\"navListMobile\":\"Header_navListMobile__110p3\",\"navListMobileIconItem\":\"Header_navListMobileIconItem__2td_7\",\"navListMobileItemLogin\":\"Header_navListMobileItemLogin__DfEPH\",\"navListMobileItemUserInfo\":\"Header_navListMobileItemUserInfo__2AgGt\",\"navListMobileLink\":\"Header_navListMobileLink__ZzrK5\",\"navListMobileLinkActive\":\"Header_navListMobileLinkActive__k3jhf\",\"profileBoxLink\":\"Header_profileBoxLink__22a45\",\"exitButton\":\"Header_exitButton__2x7iy\",\"betaInfo\":\"Header_betaInfo__2taHJ\",\"actionButtonIconFile\":\"Header_actionButtonIconFile__1NJSY\",\"navListItemApi\":\"Header_navListItemApi__2wlTN\",\"navListItemGenerateReports\":\"Header_navListItemGenerateReports__3WZOz\"};","module.exports = __webpack_public_path__ + \"static/media/logo.a37c8166.png\";"],"sourceRoot":""}