{"version":3,"sources":["AppLocations.js","components/Logo.jsx","components/utils/storage.js","contexts/authProvider.js","components/Dashboard/Header/index.js","components/utils/myAxios.js","components/Dashboard/Sidebar/Profile.js","dataTree.js","components/Dashboard/Sidebar/Sidebar.js","components/Dashboard/DashboardProvider.js","components/Loader.jsx","hooks/useNotification.js","components/Oauth.jsx","pages/login.js","pages/provaDeVida/graphql.js","assets/modeloFoto/modelo.jpg","utils/storage.js","utils/cpfMask.js","components/generic/FileUploader/index.js","assets/file-excel-solid.svg","assets/csv.svg","components/CheckBox.jsx","pages/provaDeVida/index.js","assets/naoAutorizado.svg","pages/naoAutorizado.js","assets/rotaNaoEncontrada.svg","pages/rotaNaoEncontrada.js","App.js","index.js"],"names":["DefaultLocation","Location","HomeLocation","LoginLocation","ProvaDeVidaLocation","Logo","props","size","href","locations","path","className","clsx","getStorage","key","now","Date","newKey","expiresIn","localStorage","getItem","undefined","name","removeItem","e","removeStorage","setStorage","value","expires","Math","abs","schedule","setItem","AuthContext","React","createContext","AuthProvider","children","useState","dadosUsuario","setDadosUsuario","isAutenticado","setIsAutenticado","Provider","handleLogin","data","Object","keys","map","item","JSON","stringify","funcionalidades","handleLogout","clear","isAuthorized","location","arrFuncionalidades","parse","push","Array","isArray","includes","pathname","Header","isSideBarExpanded","setSideBarExpanded","useContext","style","zIndex","onClick","fontSize","authOptions","token","baseURL","process","timeout","crossdomain","headers","authorization","Profile","imgAvatar","setImgAvatar","pgAvatar","setPGAvatar","nomeAvatar","setNomeAvatar","useEffect","getAvatar","a","axios","post","cod_pessoa","response","base64","sgl_posto_graduacao","nom_guerra_servidor","console","error","src","alt","DataTree","nodesTest","menuStorage","menus","rootMenus","filter","menu","cod_menu_pai","baseUrl","i","label","dsc_title_menu","url","dsc_url","j","cod_menu","el","getMenuFromStorage","nodeTemplate","node","options","border","Sidebar","paddingTop","width","visible","onHide","showCloseIcon","DashboardContext","DashboardProvider","transition","Loader","strokeWidth","MyLoader","active","spinner","NotificationContext","NotificationProvider","notify","toast","useNotification","OauthModal","loading","setLoading","history","useHistory","onSuccess","code","fetch","then","json","userData","jwt_decode","authorizationUrl","clientId","redirectUri","responseType","state","random","buttonText","onFailure","Login","queryDados","gql","queryTotais","mutPendenciaDocs","cpfMask","replace","thumbsContainer","display","flexDirection","flexWrap","marginTop","stlSize","thumb","borderRadius","marginBottom","marginRight","height","padding","boxSizing","thumbInner","minWidth","overflow","img","FileUploader","files","onDrop","bind","this","forEach","file","URL","revokeObjectURL","preview","setState","assign","createObjectURL","handleChangeExterno","thumbs","index","isOpen","round","accept","maxFile","multiple","maxSize","getRootProps","getInputProps","isDragActive","classNames","Component","CheckBox","defaultValue","onChangeHandler","useForm","defaultValues","checkboxValue","control","handleSubmit","setValue","onSubmit","render","field","gap","type","scale","checked","onChange","isChecked","target","fontWeight","ProvaDeVida","globalFilter","setGlobalFilter","dataPessoas","setDataPessoas","dataPessoas2","setDataPessoas2","displayResponsive","setDisplayResponsive","codPessoaSelecionada","setCodPessoaSelecionada","podeFazerPV","setPodeFazerPV","loadingLocal","setLoadingLocal","loadingonDrop","setLoadingOnDrop","selectedStatus","setSelectedStatus","selectedStatusAuto","setSelectedStatusAuto","fileName","setFileName","checkedState","setCheckedState","selecteddadosMilitares","setSelecteddadosMilitares","setChecked","dataPessoas3","setDataPessoas3","dt","useRef","meses","useMutation","cadastraRestricao","mutLoading","mutError","handleCheckBoxChange","rowData","codCadastrador","parseInt","prev","variables","pFlgBloqueio","pCodPessoa","pCodPessoaAlteracao","info","useCallback","values","length","config","newName","String","getTime","substr","FormData","append","result","success","message","useQuery","loadingTotais","dadosTotais","fetchPolicy","onCompleted","formattedData","_","cloneDeep","fnGovbrListaProvaVida","nodes","nomCompletoPessoa","trim","fezPvUltAnoAutomatica","fezPvUltAnoManual","datUltimaRealizacaoAutomatica","moment","format","datUltimaRealizacaoManual","datUltimaSolicitacao","datNascimentoPessoa","numCpfPessoa","maskCpfPessoa","contato","newCheckedState","codPessoa","flgBloqueadoSougov","formattedData2","k","join","header","getMonth","fnGovbrTotaisProvaVida","totalMes","fizeramMes","faltamFazerMes","pendenciaTotal","onInput","valorAjustado","placeholder","marginLeft","xlsImage","rawData","wb","Sheets","XLSX","json_to_sheet","SheetNames","excelBuffer","bookType","Blob","FileSaver","exportToXLS","csv2","ws","csvOutput","sheet_to_csv","exportToCSV","fazProvaVidaManual","filename","newDataPessoas","newItem","statusItemTemplate","option","icon","statusFilter","itemTemplate","showClear","statusFilterAuto","pendFilter","orderedItems","entries","sort","orderedObj","fromEntries","sortedData","b","handleOrder","breakpoints","footer","disabled","autoFocus","modelo","ref","dataKey","rowHover","selection","onSelectionChange","paginator","stripedRows","rows","emptyMessage","currentPageReportTemplate","paginatorTemplate","rowsPerPageOptions","rowClassName","body","Fragment","sortable","filterPlaceholder","bodyStyle","textAlign","vlrIdentificacaoUnica","filterMatchMode","filterElement","headerStyle","tooltip","tooltipOptions","position","pessoa","num_cpf_pessoa","datRealizacao","dat_realizacao","cod_modo_atualizacao","dataRealizaAutomatica","dataRealizaManual","status","margin","NaoAutorizado","naoAutorizado","RotaNaoEncontrada","URLSearchParams","useLocation","search","get","NotFoundIcon","Routes","restricted","component","exact","PrivateRoute","rest","to","PublicRoute","MainScreen","basename","autoClose","AppRouter","urlGraphql","endsWith","httpLink","createHttpLink","uri","authLink","setContext","client","ApolloClient","link","concat","cache","InMemoryCache","ApolloProvider","ReactDOM","document","getElementById"],"mappings":"kWAGaA,EAAkB,IAAIC,IAAS,KAC/BC,EAAe,IAAID,IAAS,kBAC5BE,EAAgB,IAAIF,IAAS,wBAM7BG,GALkB,IAAIH,IAAS,0BACP,IAAIA,IACvC,iCAGiC,IAAIA,IAAS,gC,+BCNjC,SAASI,EAAKC,GAC3B,IAAQC,EAASD,EAATC,KACR,OACE,mBAAGC,KAAMC,EAAuBC,KAAhC,SACE,sBAAKC,UAAU,oCAAf,UACE,sBAAMA,UAAWC,YAAK,mBAAD,eAA6BL,IAAlD,eACA,sBAAMI,UAAWC,YAAK,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WAAD,CAAUK,GAAI/Z,EAA8BC,OAE5C,cAAC0M,EAAD,eAAe9M,SAOzB,SAASoa,KACP,OACE,cAAC,gBAAD,CAAeC,SAAUhW,OAAzB,SACE,cAACvC,EAAD,UACE,cAAC8F,EAAD,UACE,eAACQ,GAAD,WACE,cAACwR,GAAD,IACA,cAAC,IAAD,CAAgBU,UAAW,eAQxB,SAASC,KACtB,IAAIC,EAAa,GAEfA,EADEnW,6CAAuCoW,SAAS,KACxC,UAAMpW,6CAAN,WACK,UAAMA,6CAAN,YAEjB,IAAMqW,EAAWC,YAAe,CAC9BC,IAAKJ,IAGDK,EAAWC,aAAW,SAACzI,EAAD,GAAqB,IAAf7N,EAAc,EAAdA,QAE1BL,EAAQtD,aAAaC,QACzB,aAGF,MAAO,CACL0D,QAAQ,2BACHA,GADE,IAGLC,cAAeN,EAAK,UAAMA,GAAU,SAKpC4W,EAAS,IAAIC,IAAa,CAC9BC,KAAMJ,EAASK,OAAOR,GACtBS,MAAO,IAAIC,MAGb,OACE,cAACC,EAAA,EAAD,CAAgBN,OAAQA,EAAxB,SACE,cAACX,GAAD,M,mCCvHNkB,IAAS7N,OAAO,cAAC8M,GAAD,IAAegB,SAASC,eAAe,W","file":"static/js/main.7fa42ab6.chunk.js","sourcesContent":["import Location from \"react-app-location\";\n\n//default\nexport const DefaultLocation = new Location(\"/\");\nexport const HomeLocation = new Location(\"/frontend/home\");\nexport const LoginLocation = new Location(\"/frontend/auth/login\");\nexport const SignoutLocation = new Location(\"/frontend/auth/signout\");\nexport const NaoAutorizadoLocation = new Location(\n \"/frontend/auth/nao-autorizado\"\n);\n\nexport const ProvaDeVidaLocation = new Location(\"/frontend/gestao-prova-vida\");\n","import React from \"react\";\nimport clsx from \"clsx\";\nimport PropTypes from \"prop-types\";\nimport * as locations from \"AppLocations\";\n\nexport default function Logo(props) {\n const { size } = props;\n return (\n \n
\n P\n \n ROVA DE VIDA\n \n
\n
\n );\n}\n\nLogo.propTypes = {\n size: PropTypes.oneOf([\n \"xs\",\n \"sm\",\n \"md\",\n \"lg\",\n \"xl\",\n \"2xl\",\n \"3xl\",\n \"4xl\",\n \"5xl\",\n ]),\n};\n","/* removeStorage: removes a key from localStorage and its sibling expiracy key\n params:\n key : localStorage key to remove\n returns:\n : telling if operation succeeded\n */\nexport const removeStorage = (name) => {\n try {\n /* eslint no-undef : 0 */\n const newKey = name + \"_\" + process.env.REACT_APP_CLIENT_ID;\n localStorage.removeItem(newKey);\n localStorage.removeItem(`${newKey}_expiresIn`);\n } catch (e) {\n return false;\n }\n return true;\n};\n/* getStorage: retrieves a key from localStorage previously set with setStorage().\n params:\n key : localStorage key\n returns:\n : value of localStorage key\n null : in case of expired key or failure\n */\nexport const getStorage = (key) => {\n const now = Date.now(); // epoch time, lets deal only with integer\n const newKey = key + \"_\" + process.env.REACT_APP_CLIENT_ID;\n // set expiration for storage\n let expiresIn = localStorage.getItem(`${newKey}_expiresIn`);\n if (expiresIn === undefined || expiresIn === null) {\n expiresIn = 0;\n }\n\n if (expiresIn < now) {\n // Expired\n removeStorage(key);\n return null;\n }\n try {\n const value = localStorage.getItem(newKey);\n return value;\n } catch (e) {\n return null;\n }\n};\n/* setStorage: writes a key into localStorage setting a expire time\n params:\n key : localStorage key\n value : localStorage value\n expires : number of seconds from now to expire the key\n returns:\n : telling if operation succeeded\n */\nexport const setStorage = (key, value, expires) => {\n if (expires === undefined || expires === null) {\n expires = 60 * 60 * 24 * 180; // default: seconds for 1 hour\n } else {\n expires = Math.abs(expires); // make sure it's positive\n }\n\n const now = Date.now(); // millisecs since epoch time, lets deal only with integer\n const schedule = now + expires * 1000;\n try {\n const newKey = key + \"_\" + process.env.REACT_APP_CLIENT_ID;\n localStorage.setItem(newKey, value);\n localStorage.setItem(`${newKey}_expiresIn`, schedule);\n } catch (e) {\n return false;\n }\n return true;\n};\n","import { getStorage, setStorage } from \"components/utils/storage\";\nimport React, { useState } from \"react\";\nexport const AuthContext = React.createContext({});\n\nexport default function AuthProvider({ children }) {\n const [dadosUsuario, setDadosUsuario] = useState({});\n const [isAutenticado, setIsAutenticado] = useState(() => {\n if (getStorage(\"cod_pessoa\")) return true;\n else return false;\n });\n\n const handleLogin = (data) => {\n setIsAutenticado(true);\n setDadosUsuario(data);\n Object.keys(data).map((item) => setStorage(item, data[item]));\n setStorage(\"funcionalidades\", JSON.stringify(data.funcionalidades));\n };\n\n const handleLogout = () => {\n setIsAutenticado(false);\n setDadosUsuario({});\n localStorage.clear();\n };\n\n const isAuthorized = (location) => {\n let arrFuncionalidades = [];\n const funcionalidades = JSON.parse(getStorage(\"funcionalidades\"));\n funcionalidades &&\n Object.keys(funcionalidades).map((item) => arrFuncionalidades.push(item));\n\n if (!Array.isArray(arrFuncionalidades)) return false;\n\n if (arrFuncionalidades.includes(location.pathname)) return true;\n else return false;\n };\n\n return (\n \n {children}\n \n );\n}\n","import clsx from \"clsx\";\nimport Logo from \"components/Logo\";\nimport { AuthContext } from \"contexts/authProvider\";\nimport React, { useContext } from \"react\";\n\nexport default function Header({ isSideBarExpanded, setSideBarExpanded }) {\n const { handleLogout } = useContext(AuthContext);\n return (\n \n
\n \n \n setSideBarExpanded((isSideBarExpanded) => !isSideBarExpanded)\n }\n >\n \n \n
\n
\n \n \n \n
\n \n );\n}\n","import { getStorage } from \"./storage\";\n\nexport const authOptions = () => {\n const token = getStorage(\"token\");\n const options = {\n baseURL: `${process.env.REACT_APP_BASE_URL_BACKEND}`,\n timeout: 220000,\n crossdomain: true,\n headers: {\n \"Access-Control-Allow-Origin\": \"*\",\n authorization: token,\n \"x-access-token\": token,\n },\n };\n return options;\n};\n\nexport const authOptionsFile = () => {\n return {\n ...authOptions(),\n responseType: \"blob\",\n };\n};\n","import axios from \"axios\";\nimport React, { useState, useEffect, useContext } from \"react\";\nimport { AuthContext } from \"contexts/authProvider\";\nimport { authOptions } from \"components/utils/myAxios\";\nimport { getStorage, setStorage } from \"components/utils/storage\";\n\nexport function Profile() {\n const { isAutenticado, dadosUsuario } = useContext(AuthContext);\n const [imgAvatar, setImgAvatar] = useState(\n () => getStorage(\"imgAvatar\") ?? null\n );\n const [pgAvatar, setPGAvatar] = useState(\n () => getStorage(\"sglPostoGraduacao\") ?? null\n );\n const [nomeAvatar, setNomeAvatar] = useState(\n () => getStorage(\"nomGuerraServidor\") ?? null\n );\n\n useEffect(() => {\n if (isAutenticado) getAvatar();\n }, [isAutenticado]);\n\n const getAvatar = async () => {\n try {\n const response = await axios.post(\n \"/users/getAvatar\",\n {\n cod_pessoa: dadosUsuario.cod_pessoa,\n },\n authOptions()\n );\n\n setImgAvatar(response.data.base64);\n setPGAvatar(response.data.sgl_posto_graduacao);\n setNomeAvatar(response.data.nom_guerra_servidor);\n\n setStorage(\"imgAvatar\", response.data.base64);\n setStorage(\"sglPostoGraduacao\", response.data.sgl_posto_graduacao);\n setStorage(\"nomGuerraServidor\", response.data.nom_guerra_servidor);\n } catch (error) {\n console.error(error);\n }\n };\n\n return (\n
\n {\n \n }\n {/*
*/}\n
\n
\n {pgAvatar}. {nomeAvatar}\n
\n
\n
\n );\n}\n","import React from \"react\";\nimport { Tree } from \"primereact/tree\";\nimport { getStorage } from \"components/utils/storage\";\n\nexport function getMenuFromStorage() {\n const menuStorage = getStorage(\"menus\");\n\n const menus = JSON.parse(menuStorage);\n\n const rootMenus = menus?.filter((menu) => !menu.cod_menu_pai);\n const baseUrl =\n process.env.REACT_APP_BASENAME_FRONTEND === undefined\n ? \"\"\n : process.env.REACT_APP_BASENAME_FRONTEND;\n const nodesTest = rootMenus?.map((menu, i) => ({\n key: i,\n label: menu.dsc_title_menu,\n url: `${baseUrl}${menu.dsc_url}`,\n children: menus\n .map((item, j) => {\n if (item.cod_menu_pai === menu.cod_menu) {\n return {\n key: `${i}-${j}`,\n label: item.dsc_title_menu,\n url: baseUrl + item.dsc_url,\n };\n } else return null;\n })\n .filter((el) => el !== null),\n }));\n return nodesTest;\n}\n\nexport const DataTree = () => {\n let nodesTest = getMenuFromStorage();\n\n const nodeTemplate = (node, options) => {\n let label = {node.label};\n if (node.url) {\n label = {node.label};\n }\n\n return {label};\n };\n\n return (\n
\n
\n \n
\n
\n );\n};\n","import React from \"react\";\nimport { Sidebar as PrimeSideBar } from \"primereact/sidebar\";\nimport { Divider } from \"primereact/divider\";\n\nimport { Profile } from \"./Profile\";\nimport { DataTree } from \"dataTree\";\n\nexport default function Sidebar({ isSideBarExpanded, setSideBarExpanded }) {\n return (\n setSideBarExpanded(false)}\n showCloseIcon={false}\n >\n \n \n \n \n );\n}\n","import React, { useContext, useState } from \"react\";\nimport clsx from \"clsx\";\n\nimport Header from \"./Header\";\nimport Sidebar from \"./Sidebar/Sidebar\";\nimport { AuthContext } from \"contexts/authProvider\";\n\nexport const DashboardContext = React.createContext({});\n\nexport default function DashboardProvider({ children }) {\n const [isSideBarExpanded, setSideBarExpanded] = useState(false);\n const { isAutenticado } = useContext(AuthContext);\n if (isAutenticado) {\n return (\n
\n \n
\n \n \n \n {children}\n \n
\n
\n
\n );\n } else {\n return
{children}
;\n }\n}\n","import { ProgressSpinner } from \"primereact/progressspinner\";\nimport LoadingOverlay from \"react-loading-overlay\";\n\nimport React from \"react\";\nimport PropTypes from \"prop-types\";\n\nexport function Loader({ strokeWidth }) {\n return (\n
\n \n
\n );\n}\n\nexport function MyLoader({ active, children, strokeWidth }) {\n return (\n }\n >\n {children}\n \n );\n}\n\nLoader.propTypes = {\n strokeWidth: PropTypes.string,\n};\n","import React, { useContext } from \"react\";\nimport { toast } from \"react-toastify\";\nexport const NotificationContext = React.createContext({});\n\nexport default function NotificationProvider({ children }) {\n const notify = toast;\n\n return (\n \n {children}\n \n );\n}\n\nexport function useNotification() {\n const context = useContext(NotificationContext);\n\n return context;\n}\n","/* eslint-disable no-undef */\nimport { AuthContext } from \"contexts/authProvider\";\nimport React, { useState, useContext } from \"react\";\nimport { useHistory } from \"react-router-dom\";\nimport { Loader } from \"components/Loader\";\nimport OAuth2Login from \"react-simple-oauth2-login\";\nimport jwt_decode from \"jwt-decode\";\n\nimport * as locations from \"AppLocations\";\nimport { useNotification } from \"hooks/useNotification\";\n\nexport function OauthModal({ className }) {\n const { handleLogin } = useContext(AuthContext);\n const [loading, setLoading] = useState(false);\n const { notify } = useNotification();\n let history = useHistory();\n\n const onSuccess = async ({ code }) => {\n try {\n let response = await fetch(\n `${process.env.REACT_APP_SERVER_OAUTH_URL}/users/oauthToken?code=${code}&clientId=${process.env.REACT_APP_CLIENT_ID}&redirectUri=${process.env.REACT_APP_REDIRECT_URI}`\n ).then(setLoading(true));\n response = await response.json();\n\n let userData = jwt_decode(response.token);\n\n userData.data = {\n ...userData.data,\n funcionalidades: response.funcionalidades,\n menus: JSON.stringify(response.menus),\n };\n\n handleLogin({ ...userData.data, token: response.token });\n\n history.push(locations.DefaultLocation.path);\n } catch (e) {\n notify.error(\"Erro ao buscar dados!\");\n setLoading(false);\n console.error(e);\n }\n };\n\n return (\n <>\n notify.error(\"Erro na autenticação do usuário.\")}\n />\n {loading && }\n \n );\n}\n","import Logo from \"components/Logo\";\nimport { OauthModal } from \"components/Oauth\";\nimport React from \"react\";\n\nexport const Login = () => {\n return (\n
\n
\n \n \n
\n
\n );\n};\n","import { gql } from \"@apollo/client\";\n\nexport const queryDados = gql`\n query MyQuery {\n fnGovbrListaProvaVida {\n nodes {\n codPessoa\n nomCompletoPessoa\n contato\n datUltimaSolicitacao\n datUltimaRealizacaoManual\n datUltimaRealizacaoAutomatica\n datNascimentoPessoa\n fezPvUltAnoAutomatica\n fezPvUltAnoManual\n numCpfPessoa\n vlrIdentificacaoUnica\n sglPostoGraduacao\n dscSituacao\n locsitNomOrgao\n flgBloqueadoSougov\n datBloqueioSougov\n datDesbloqueioSougov\n codUsuarioBloqueioSougov\n codUsuarioDesbloqueioSougov\n }\n }\n }\n`;\n\nexport const queryTotais = gql`\n query MyQuery {\n fnGovbrTotaisProvaVida {\n nodes {\n totalMes\n faltamFazerMes\n fizeramMes\n pendenciaTotal\n }\n }\n }\n`;\n\n// Mutation for \"fnGovbrCadastroRestricaoSougov\"\nexport const mutPendenciaDocs = gql`\n mutation MyMutation(\n $pFlgBloqueio: Boolean!\n $pCodPessoa: BigInt!\n $pCodPessoaAlteracao: BigInt!\n ) {\n fnGovbrCadastraRestricaoSougov(\n input: {\n pFlgBloqueio: $pFlgBloqueio\n pCodPessoa: $pCodPessoa\n pCodPessoaAlteracao: $pCodPessoaAlteracao\n }\n ) {\n boolean\n }\n }\n`;\n","export default __webpack_public_path__ + \"static/media/modelo.450e51d6.jpg\";","/* removeStorage: removes a key from localStorage and its sibling expiracy key\n params:\n key : localStorage key to remove\n returns:\n : telling if operation succeeded\n */\nexport const removeStorage = (name) => {\n try {\n /* eslint no-undef : 0 */\n localStorage.removeItem(name);\n localStorage.removeItem(`${name}_expiresIn`);\n } catch (e) {\n return false;\n }\n return true;\n};\n/* getStorage: retrieves a key from localStorage previously set with setStorage().\n params:\n key : localStorage key\n returns:\n : value of localStorage key\n null : in case of expired key or failure\n */\nexport const getStorage = (key) => {\n const now = Date.now(); // epoch time, lets deal only with integer\n // set expiration for storage\n let expiresIn = localStorage.getItem(`${key}_expiresIn`);\n if (expiresIn === undefined || expiresIn === null) {\n expiresIn = 0;\n }\n\n if (expiresIn < now) {\n // Expired\n removeStorage(key);\n return null;\n }\n try {\n const value = localStorage.getItem(key);\n return value;\n } catch (e) {\n return null;\n }\n};\n/* setStorage: writes a key into localStorage setting a expire time\n params:\n key : localStorage key\n value : localStorage value\n expires : number of seconds from now to expire the key\n returns:\n : telling if operation succeeded\n */\nexport const setStorage = (key, value, expires) => {\n if (expires === undefined || expires === null) {\n expires = 60 * 60 * 24 * 180; // default: seconds for 1 hour\n } else {\n expires = Math.abs(expires); // make sure it's positive\n }\n\n const now = Date.now(); // millisecs since epoch time, lets deal only with integer\n const schedule = now + expires * 1000;\n try {\n localStorage.setItem(key, value);\n localStorage.setItem(`${key}_expiresIn`, schedule);\n } catch (e) {\n return false;\n }\n return true;\n};\n","export const cpfMask = (value) => {\n // console.log(\"valeee\", value);\n return value\n .replace(/\\D/g, \"\") // substitui qualquer caracter que nao seja numero por nada\n .replace(/(\\d{3})(\\d)/, \"$1.$2\") // captura 2 grupos de numero o primeiro de 3 e o segundo de 1, apos capturar o primeiro grupo ele adiciona um ponto antes do segundo grupo de numero\n .replace(/(\\d{3})(\\d)/, \"$1.$2\")\n .replace(/(\\d{3})(\\d{1,2})/, \"$1-$2\")\n .replace(/(-\\d{2})\\d+?$/, \"$1\"); // captura 2 numeros seguidos de um traço e não deixa ser digitado mais nada\n};\n","import React from \"react\";\nimport classNames from \"classnames\";\nimport Dropzone from \"react-dropzone\";\nimport \"./styles.css\";\n// import Lightbox from \"react-image-lightbox\";\n\nconst thumbsContainer = {\n display: \"flex\",\n flexDirection: \"row\",\n flexWrap: \"wrap\",\n marginTop: 16,\n};\n\nconst stlSize = {\n fontSize: \"12px\",\n};\n\nconst thumb = {\n display: \"inline-flex\",\n borderRadius: 2,\n border: \"1px solid #eaeaea\",\n marginBottom: 8,\n marginRight: 8,\n width: 100,\n height: 100,\n padding: 4,\n boxSizing: \"border-box\",\n};\n\nconst thumbInner = {\n display: \"flex\",\n minWidth: 0,\n overflow: \"hidden\",\n};\n\nconst img = {\n display: \"block\",\n width: \"auto\",\n height: \"100%\",\n};\n\nclass FileUploader extends React.Component {\n constructor(props) {\n super(props);\n this.state = {\n files: [],\n // isOpen: false\n };\n\n this.onDrop = this.onDrop.bind(this);\n }\n\n componentWillUnmount() {\n // Make sure to revoke the data uris to avoid memory leaks\n this.state.files.forEach((file) => URL.revokeObjectURL(file.preview));\n }\n\n /* eslint-disable */\n onDrop(files) {\n this.setState({\n files: files.map((file) =>\n Object.assign(file, {\n preview: URL.createObjectURL(file),\n })\n ),\n });\n if (this.props.handleChangeExterno) {\n this.props.handleChangeExterno(files);\n }\n }\n /* eslint-enable */\n\n render() {\n // const { files, isOpen } = this.state;\n const { files } = this.state;\n const thumbs = files.map((file, index) => (\n
\n
\n
\n this.setState({ isOpen: true })}\n />\n
\n {/* {isOpen && (\n this.setState({ isOpen: false })}\n />\n )} */}\n
\n
\n {file.name} - {Math.round((file.size / 1024 / 1024) * 100) / 100} KB\n
\n
\n ));\n return (\n
\n
\n
\n \n {({ getRootProps, getInputProps, isDragActive }) => {\n return (\n \n \n {isDragActive ? (\n Coloque os arquivos aqui\n ) : (\n \n Arraste os arquivos para essa área ou clique aqui.\n \n )}\n

\n Somente arquivos no formato JPEG, PNG e PDF\n

\n

\n Tamanho máximo do arquivo: 10 MB\n

\n
\n );\n }}\n \n \n
\n \n
\n );\n }\n}\nexport default FileUploader;\n","export default __webpack_public_path__ + \"static/media/file-excel-solid.f3ac358d.svg\";","export default __webpack_public_path__ + \"static/media/csv.8c408d1e.svg\";","import React from \"react\";\nimport { useForm, Controller } from \"react-hook-form\";\n\nexport default function CheckBox({ label, defaultValue, onChangeHandler }) {\n const { control, handleSubmit, setValue } = useForm({\n defaultValues: {\n checkboxValue: defaultValue || false\n }\n });\n\n const onSubmit = (data) => {\n try {\n if (onChangeHandler) {\n onChangeHandler(data.checkboxValue);\n }\n } catch (error) {\n console.error(error);\n }\n };\n\n return (\n
\n (\n
\n {\n const isChecked = e.target.checked;\n field.onChange(isChecked);\n setValue(\"checkboxValue\", isChecked);\n handleSubmit(onSubmit)();\n }}\n />\n \n
\n )}\n />\n \n );\n}","import axios from \"axios\";\nimport React, { useState, useRef, useCallback } from \"react\";\nimport { authOptions } from \"components/utils/myAxios\";\nimport { queryDados, queryTotais, mutPendenciaDocs } from \"./graphql\";\nimport { Loader, MyLoader } from \"components/Loader\";\nimport { useMutation, useQuery } from \"@apollo/client\";\nimport { DataTable } from \"primereact/datatable\";\nimport { Column } from \"primereact/column\";\nimport { InputText } from \"primereact/inputtext\";\nimport { Button } from \"primereact/button\";\nimport { useNotification } from \"hooks/useNotification\";\nimport { Dropdown } from \"primereact/dropdown\";\nimport { Dialog } from \"primereact/dialog\";\nimport moment from \"moment\";\nimport modelo from \"assets/modeloFoto/modelo.jpg\";\nimport { getStorage } from \"utils/storage\";\n\nimport _ from \"lodash\";\n\nimport \"../../styles/dataTable.css\";\nimport { Chip } from \"primereact/chip\";\nimport { cpfMask } from \"utils/cpfMask\";\nimport FileUploader from \"components/generic/FileUploader\";\nimport xlsImage from \"../../assets/file-excel-solid.svg\";\nimport csv2 from \"../../assets/csv.svg\";\nimport * as XLSX from \"xlsx\";\nimport * as FileSaver from \"file-saver\";\nimport CheckBox from \"components/CheckBox\";\n\nexport default function ProvaDeVida() {\n const { notify } = useNotification();\n const [globalFilter, setGlobalFilter] = useState(null);\n const [dataPessoas, setDataPessoas] = useState(null);\n const [dataPessoas2, setDataPessoas2] = useState(null);\n const [displayResponsive, setDisplayResponsive] = useState(false);\n const [codPessoaSelecionada, setCodPessoaSelecionada] = useState();\n const [podeFazerPV, setPodeFazerPV] = useState(false);\n const [loadingLocal, setLoadingLocal] = useState(false);\n const [loadingonDrop, setLoadingOnDrop] = useState(false);\n const [selectedStatus, setSelectedStatus] = useState(null);\n const [selectedStatusAuto, setSelectedStatusAuto] = useState(null);\n const [fileName, setFileName] = useState(null);\n const [checkedState, setCheckedState] = useState({});\n const [selecteddadosMilitares, setSelecteddadosMilitares] = useState(null);\n const [checked, setChecked] = useState();\n const [dataPessoas3, setDataPessoas3] = useState(null);\n\n let dt = useRef(null);\n\n const meses = [\n \"Janeiro\",\n \"Fevereiro\",\n \"Março\",\n \"Abril\",\n \"Maio\",\n \"Junho\",\n \"Julho\",\n \"Agosto\",\n \"Setembro\",\n \"Outubro\",\n \"Novembro\",\n \"Dezembro\",\n ];\n\n const [cadastraRestricao, { loading: mutLoading, error: mutError }] =\n useMutation(mutPendenciaDocs);\n\n const handleCheckBoxChange = async (e, rowData) => {\n const codCadastrador = parseInt(getStorage(\"cod_pessoa_160\"));\n\n try {\n setCheckedState((prev) => ({\n ...prev,\n [rowData]: e,\n }));\n\n await cadastraRestricao({\n variables: {\n pFlgBloqueio: e,\n pCodPessoa: parseInt(rowData),\n pCodPessoaAlteracao: codCadastrador,\n },\n });\n\n notify.info(\"Pendência administrativa atualizada com sucesso\");\n } catch (error) {\n console.error(error);\n }\n };\n\n if (mutError) {\n notify.error(\"Erro ao salvar pendência administrativa\");\n return null;\n }\n\n const fileTypeXls =\n \"application/vnd.openxmlformats-officedocument.spreadsheetml.sheet;charset=UTF-8\";\n // const fileExtension = \".xlsx\";\n\n // Função para exportar dados da tabela para XLS\n const exportToXLS = (rawData, fileName) => {\n const ws = XLSX.utils.json_to_sheet(rawData);\n const wb = { Sheets: { data: ws }, SheetNames: [\"data\"] };\n const excelBuffer = XLSX.write(wb, { bookType: \"xlsx\", type: \"array\" });\n const data = new Blob([excelBuffer], { type: fileTypeXls });\n FileSaver.saveAs(data, fileName + \".xlsx\");\n };\n\n const exportToCSV = (rawData, fileName) => {\n const ws = XLSX.utils.json_to_sheet(rawData);\n const csvOutput = XLSX.utils.sheet_to_csv(ws);\n FileSaver.saveAs(\n new Blob([csvOutput], { type: \"application/octet-stream\" }),\n fileName + \".csv\"\n );\n };\n\n const onDrop = useCallback(\n async (values) => {\n // Do something with the files\n\n setLoadingOnDrop(true);\n if (values.length === 0) return false;\n let config = authOptions();\n let now = new Date();\n let files = values;\n\n let newName =\n String(codPessoaSelecionada) +\n \"_\" +\n now.getTime() +\n \"_\" +\n files[0].name.substr(0, files[0].name.length); //nome do arquivo\n let data = new FormData(); //dados para upload\n\n data.append(\"filename\", newName);\n\n data.append(\"cod_pessoa\", codPessoaSelecionada);\n data.append(\"file\", files[0]);\n try {\n let result = await axios.post(\"/gpv/uploadAnexos\", data, config);\n\n if (result.data.success === true) {\n setPodeFazerPV(true);\n setFileName(result.data.message);\n notify.info(\"Upload feito com sucesso.\");\n } else {\n notify.error(\"Erro ao fazer upload.\");\n setPodeFazerPV(false);\n }\n } catch (error) {\n notify.error(\"Erro ao fazer upload.\");\n setLoadingOnDrop(false);\n console.error(error);\n }\n setLoadingOnDrop(false);\n // setNomAnexoJustificativa(newName);\n return null;\n },\n [codPessoaSelecionada]\n );\n\n const { loading: loadingTotais, data: dadosTotais } = useQuery(queryTotais);\n\n const { loading, error, data } = useQuery(queryDados, {\n fetchPolicy: \"network-only\",\n onCompleted: (data) => {\n data = _.cloneDeep(data.fnGovbrListaProvaVida.nodes);\n\n let formattedData = data.map((item) => {\n return {\n ...item,\n nomCompletoPessoa: item.nomCompletoPessoa.trim(),\n\n fezPvUltAnoAutomatica:\n item.fezPvUltAnoAutomatica === true ? \"Sim\" : \"Não\",\n\n fezPvUltAnoManual: item.fezPvUltAnoManual === true ? \"Sim\" : \"Não\",\n\n datUltimaRealizacaoAutomatica:\n item.datUltimaRealizacaoAutomatica !== null\n ? moment(new Date(item.datUltimaRealizacaoAutomatica)).format(\n \"DD/MM/YYYY\"\n )\n : \"\",\n datUltimaRealizacaoManual:\n item.datUltimaRealizacaoManual !== null\n ? moment(new Date(item.datUltimaRealizacaoManual)).format(\n \"DD/MM/YYYY\"\n )\n : \"\",\n\n datUltimaSolicitacao:\n item.datUltimaSolicitacao !== null\n ? moment(new Date(item.datUltimaSolicitacao)).format(\"DD/MM/YYYY\")\n : \"\",\n\n datNascimentoPessoa:\n item.datNascimentoPessoa !== null\n ? moment(\n new Date(\n item.datNascimentoPessoa\n .replace(/-/g, \"/\")\n .replace(/T.+/, \"\")\n )\n ).format(\"DD/MM/YYYY\")\n : \"\",\n numCpfPessoa: item.numCpfPessoa,\n maskCpfPessoa: cpfMask(item.numCpfPessoa),\n contato: item.contato === null ? [] : item.contato,\n };\n });\n\n const newCheckedState = {};\n formattedData.forEach((item) => {\n newCheckedState[item.codPessoa] = item.flgBloqueadoSougov;\n });\n setCheckedState(newCheckedState);\n\n let formattedData2 = data.map((item) => {\n return {\n ...item,\n\n contato:\n item.contato === null\n ? \"\"\n : Object.keys(item.contato)\n .map(function (k) {\n return item.contato[k];\n })\n .join(\" - \"),\n };\n });\n\n setDataPessoas(formattedData);\n setDataPessoas2(formattedData2);\n },\n });\n\n if (loading) return ;\n\n if (error || data === undefined) {\n notify.error(\"Erro ao buscar dados!\");\n return null;\n }\n\n function handleOrder(e) {\n const isChecked = e.target.checked;\n setChecked(isChecked);\n\n if (isChecked) {\n setDataPessoas3(dataPessoas);\n\n const orderedItems = Object.entries(checkedState).sort(\n ([, a], [, b]) => (b === true) - (a === true)\n );\n\n const orderedObj = Object.fromEntries(orderedItems);\n\n setCheckedState(orderedObj);\n\n if (dataPessoas) {\n const sortedData = [...dataPessoas].sort((a, b) => {\n return (\n (checkedState[b.codPessoa] === true) -\n (checkedState[a.codPessoa] === true)\n );\n });\n\n setDataPessoas(sortedData);\n }\n } else {\n setDataPessoas(dataPessoas3);\n }\n }\n\n const header = (\n
\n {!loadingTotais ? (\n
\n \n Qtd. Total de PV em {meses[new Date().getMonth()]}:\n \n \n {dadosTotais.fnGovbrTotaisProvaVida.nodes[0].totalMes}\n \n\n |\n\n \n Qtd. PV realizadas em {meses[new Date().getMonth()]}:\n \n \n {dadosTotais.fnGovbrTotaisProvaVida.nodes[0].fizeramMes}\n \n\n |\n\n \n Qtd. PV pendentes em {meses[new Date().getMonth()]}:\n \n \n {dadosTotais.fnGovbrTotaisProvaVida.nodes[0].faltamFazerMes}\n \n\n |\n\n \n Qtd. Total com Pendência Administrativa:\n \n \n {dadosTotais.fnGovbrTotaisProvaVida.nodes[0].pendenciaTotal}\n \n
\n ) : (\n \n )}\n\n
\n \n \n {\n const valorAjustado = e.target.value.replace(/[.-]/g, \"\");\n setGlobalFilter(valorAjustado);\n }}\n placeholder=\"Pesquisar\"\n />\n \n {\n exportToXLS(dataPessoas2, \"resultado\");\n }}\n />\n {\n exportToCSV(dataPessoas2, \"resultado\");\n }}\n />\n
\n
\n );\n\n const nomeBody = (rowData) => {\n return (\n \n Nome\n {rowData.nomCompletoPessoa}\n \n );\n };\n\n const cpfBody = (rowData) => {\n return (\n \n CPF\n {cpfMask(rowData.numCpfPessoa)}\n \n );\n };\n\n const siapeBody = (rowData) => {\n return (\n \n SIAPE\n {rowData.vlrIdentificacaoUnica}\n \n );\n };\n\n const dataNascimentoBody = (rowData) => {\n return (\n \n Data de Nascimento\n {rowData.datNascimentoPessoa}\n \n );\n };\n\n const dataSolicitacao = (rowData) => {\n return (\n \n Data da última solicitação\n {rowData.datUltimaSolicitacao}\n \n );\n };\n\n const dataRealizaManual = (rowData) => {\n return (\n \n Data da última realização Manual\n {rowData.datUltimaRealizacaoManual}\n \n );\n };\n\n const dataRealizaAutomatica = (rowData) => {\n return (\n \n \n Data da última realização Automática\n \n {rowData.datUltimaRealizacaoAutomatica}\n \n );\n };\n\n const imgFezPVAutomatica = (rowData) => {\n if (rowData.fezPvUltAnoAutomatica === \"Sim\") {\n return (\n \n Fez PV último ano Automática\n \n \n );\n } else {\n return (\n \n Fez PV último ano Automática\n \n \n );\n }\n };\n const imgFezPVManual = (rowData) => {\n if (rowData.fezPvUltAnoManual === \"Sim\") {\n return (\n \n Fez PV último ano Manual\n \n \n );\n } else {\n return (\n \n Fez PV último ano Manual\n \n \n );\n }\n };\n\n const acoesPV = (rowData) => {\n return (\n <>\n \n \n {\n setLoadingLocal(true);\n const response = await axios.post(\n \"/gpv/solicitaProvaVidaLocal\",\n {\n pessoa: {\n num_cpf_pessoa: rowData.numCpfPessoa,\n cod_pessoa: rowData.codPessoa,\n },\n },\n authOptions()\n );\n\n if (response.data.success) {\n const newDataPessoas = dataPessoas.map((item) => {\n if (item.codPessoa === rowData.codPessoa) {\n let newItem = _.cloneDeep(item);\n newItem.datUltimaSolicitacao = moment(new Date()).format(\n \"DD/MM/YYYY\"\n );\n return newItem;\n }\n return item;\n });\n setDataPessoas(newDataPessoas);\n notify.info(\"Solicitação realizada com sucesso\");\n } else {\n notify.error(\"Erro ao solicitar Prova de Vida no Gov.BR\");\n }\n setLoadingLocal(false);\n }}\n />\n  \n {\n setLoadingLocal(true);\n const response = await axios.post(\n \"/gpv/verificaProvaVidaLocal\",\n {\n pessoa: {\n num_cpf_pessoa: rowData.numCpfPessoa,\n cod_pessoa: rowData.codPessoa,\n },\n },\n authOptions()\n );\n\n if (response.data.success === true) {\n const newDataPessoas = dataPessoas.map((item) => {\n if (item.codPessoa === rowData.codPessoa) {\n let newItem = _.cloneDeep(item);\n\n let datRealizacao = moment(\n response.data.dat_realizacao\n ).format(\"DD/MM/YYYY\");\n\n if (response.data.cod_modo_atualizacao === 1) {\n newItem.fezPvUltAnoAutomatica = true;\n\n newItem.dataRealizaAutomatica = datRealizacao;\n notify.info(\n \"Realizou atualização automática em \" + datRealizacao\n );\n } else if (response.data.cod_modo_atualizacao === 2) {\n newItem.fezPvUltAnoManual = true;\n\n newItem.dataRealizaManual = datRealizacao;\n notify.info(\n \"Realizou atualização manual em \" + datRealizacao\n );\n }\n\n return newItem;\n }\n return item;\n });\n setDataPessoas(newDataPessoas);\n } else if (response.data.success === false) {\n notify.info(\"Ainda não realizou a Prova de Vida\");\n } else {\n notify.error(\"Erro ao solicitar nova Prova de Vida\");\n }\n setLoadingLocal(false);\n }}\n />\n  \n {\n setCodPessoaSelecionada(rowData.codPessoa);\n setDisplayResponsive(true);\n }}\n />\n  \n {\n if (!checkedState[rowData.codPessoa]) {\n return notify.error(\n \"Cadastre a pendência administrativa antes de enviar a mensagem no GovBr.\"\n );\n }\n\n setLoadingLocal(true);\n\n try {\n const response = await axios.post(\n \"/gpv/solicitaProvaVidaPresencial\",\n {\n pessoa: {\n num_cpf_pessoa: rowData.numCpfPessoa,\n cod_pessoa: rowData.codPessoa,\n },\n },\n authOptions()\n );\n\n if (response.status === 200) {\n notify.info(\n \"Notificação de pendência administrativa enviada com sucesso\"\n );\n } else {\n notify.error(\n \"Erro ao enviar notificação de pendência administrativa\"\n );\n }\n } catch (error) {\n console.error(\"Erro na requisição:\", error);\n\n if (error.response) {\n notify.error(\"Erro ao enviar notificação\");\n } else {\n notify.error(\"Falha na comunicação com o servidor\");\n }\n } finally {\n setLoadingLocal(false);\n }\n }}\n />\n  \n {mutLoading ? (\n \n ) : (\n {\n handleCheckBoxChange(e, rowData.codPessoa);\n }}\n style={{ display: \"block\", margin: \"0 auto\" }}\n />\n )}\n \n \n );\n };\n\n const renderFooter = () => {\n return (\n
\n setDisplayResponsive(false)}\n className=\"p-button-text\"\n />\n fazProvaVidaManual()}\n autoFocus\n />\n
\n );\n };\n\n const fazProvaVidaManual = async () => {\n -setLoadingLocal(true);\n let config = authOptions();\n\n let data = new FormData(); //dados para upload\n\n data.append(\"filename\", fileName);\n data.append(\"cod_pessoa\", codPessoaSelecionada);\n\n try {\n let result = await axios.post(\n \"/gpv/realizarProvaVidaManual\",\n { filename: fileName, cod_pessoa: codPessoaSelecionada },\n config\n );\n\n if (result.data.success === true) {\n const newDataPessoas = dataPessoas.map((item) => {\n if (item.codPessoa === codPessoaSelecionada) {\n let newItem = _.cloneDeep(item);\n newItem.fezPvUltAnoManual = true;\n newItem.datUltimaRealizacaoManual = moment(new Date()).format(\n \"DD/MM/YYYY\"\n );\n return newItem;\n }\n return item;\n });\n setDataPessoas(newDataPessoas);\n notify.info(\"Prova de vida realizada com sucesso\");\n } else {\n notify.error(\"Erro ao realizar prova de vida\");\n }\n setPodeFazerPV(false);\n setDisplayResponsive(false);\n } catch (error) {\n console.error(error);\n setPodeFazerPV(false);\n setDisplayResponsive(false);\n setLoadingLocal(false);\n }\n setLoadingLocal(false);\n };\n\n const statusItemTemplate = (option) => {\n if (option.value === \"sim\") {\n return \"Sim\";\n }\n if (option === \"Sim\") {\n return (\n \n );\n } else {\n return (\n \n );\n }\n };\n\n const onStatusChange = (e) => {\n dt.filter(e.value, \"fezPvUltAnoManual\", \"equals\");\n setSelectedStatus(e.value);\n };\n\n const onStatusChangeAuto = (e) => {\n dt.filter(e.value, \"fezPvUltAnoAutomatica\", \"equals\");\n setSelectedStatusAuto(e.value);\n };\n\n const statuses = [\"Sim\", \"Não\"];\n const statusesAuto = [\"Sim\", \"Não\"];\n const statusFilter = (\n \n );\n const statusFilterAuto = (\n \n );\n\n const pendFilter = (\n \n );\n\n const rowClass = (data) => {\n return {\n \"bg-red\": data.flgBloqueadoSougov || checkedState[data.codPessoa],\n };\n };\n\n return (\n
\n setDisplayResponsive(false)}\n breakpoints={{ \"960px\": \"75vw\" }}\n style={{ width: \"50vw\" }}\n footer={renderFooter()}\n >\n

\n Evite utilizar a prova de vida manualmente. Caso não consiga realizar\n a PV através do Gov.BR, anexe uma imagem conforme o modelo a seguir:\n

\n
\n \n
\n\n \n \n \n \n\n
\n (dt = el)}\n value={dataPessoas}\n header={header}\n className=\"p-datatable-responsive-demo\"\n dataKey={data.codPessoa}\n rowHover\n selection={selecteddadosMilitares}\n onSelectionChange={(e) => setSelecteddadosMilitares(e.value)}\n globalFilter={globalFilter}\n paginator\n stripedRows\n rows={10}\n emptyMessage=\"Sem registros\"\n currentPageReportTemplate=\"De {first} a {last} em um total de {totalRecords} registros\"\n paginatorTemplate=\"FirstPageLink PrevPageLink PageLinks NextPageLink LastPageLink CurrentPageReport RowsPerPageDropdown\"\n rowsPerPageOptions={[10, 25, 50]}\n rowClassName={rowClass}\n >\n \n \n \n \n \n \n \n (\n <>\n Contato 1\n {typeof rowData.contato[1] !== \"undefined\"\n ? rowData.contato[1]\n : \"\"}\n
\n Contato 2\n {typeof rowData.contato[1] !== \"undefined\"\n ? rowData.contato[2]\n : \"\"}\n
\n E-mail\n {typeof rowData.contato[1] !== \"undefined\"\n ? rowData.contato[4]\n : \"\"}\n \n )}\n bodyStyle={{\n textAlign: \"left\",\n overflow: \"visible\",\n fontSize: \"0.7em\",\n }}\n filterPlaceholder=\"Contato\"\n />\n \n \n \n \n
\n
\n );\n}\n","export default __webpack_public_path__ + \"static/media/naoAutorizado.0c776934.svg\";","import React from \"react\";\nimport naoAutorizado from \"assets/naoAutorizado.svg\";\n\nexport default function NaoAutorizado() {\n return (\n
\n
\n \"nao-autorizado\"\n USUÁRIO NÃO AUTORIZADO\n Verifique as razões de bloqueio com o suporte da DITIC\n
\n
\n );\n}\n","export default __webpack_public_path__ + \"static/media/rotaNaoEncontrada.6c9a08b6.svg\";","import React from \"react\";\nimport NotFoundIcon from \"assets/rotaNaoEncontrada.svg\";\nimport { Loader } from \"components/Loader\";\nimport { useLocation } from \"react-router-dom\";\n\nfunction useParamsQuery() {\n return new URLSearchParams(useLocation().search);\n}\n\nexport default function RotaNaoEncontrada() {\n let paramsQuery = useParamsQuery();\n\n //Retornar página com loader caso o app esteja logando\n if (paramsQuery.get(\"code\")) {\n return (\n
\n
\n \n
\n
\n );\n }\n\n return (\n
\n
\n \"nao-autorizado\"\n ROTA NÃO ENCONTRADA\n Verifique as razões de bloqueio com o suporte da DITIC\n
\n
\n );\n}\n","/* eslint-disable no-undef */\nimport React, { useContext } from \"react\";\nimport {\n BrowserRouter,\n Route,\n Switch,\n Redirect,\n useLocation,\n} from \"react-router-dom\";\nimport {\n ApolloClient,\n InMemoryCache,\n ApolloProvider,\n createHttpLink,\n} from \"@apollo/client\";\nimport * as locations from \"AppLocations\";\nimport { setContext } from \"@apollo/client/link/context\";\n\nimport DashboardProvider from \"./components/Dashboard/DashboardProvider\";\nimport { Login } from \"./pages/login\";\nimport AuthProvider, { AuthContext } from \"./contexts/authProvider\";\nimport NotificationProvider from \"hooks/useNotification\";\nimport { ToastContainer } from \"react-toastify\";\nimport ProvaDeVida from \"pages/provaDeVida\";\n\nimport NaoAutorizado from \"pages/naoAutorizado\";\nimport RotaNaoEncontrada from \"pages/rotaNaoEncontrada\";\n\nfunction Routes() {\n return (\n \n \n \n \n\n \n \n \n \n );\n}\n\nconst PrivateRoute = ({ component: Component, ...rest }) => {\n const { isAutenticado, isAuthorized } = useContext(AuthContext);\n let location = useLocation();\n return (\n \n isAutenticado ? (\n isAuthorized(location) ? (\n \n ) : (\n \n )\n ) : (\n \n )\n }\n />\n );\n};\n\nconst PublicRoute = ({ component: Component, restricted, ...rest }) => {\n const { isAutenticado } = useContext(AuthContext);\n return (\n \n isAutenticado && restricted ? (\n \n ) : (\n \n )\n }\n />\n );\n};\n\nfunction MainScreen() {\n return (\n \n \n \n \n \n \n \n \n \n \n );\n}\n\nexport default function AppRouter() {\n let urlGraphql = \"\";\n if (process.env.REACT_APP_BASE_URL_BACKEND.endsWith(\"/\")) {\n urlGraphql = `${process.env.REACT_APP_BASE_URL_BACKEND}graphql`;\n } else urlGraphql = `${process.env.REACT_APP_BASE_URL_BACKEND}/graphql`;\n\n const httpLink = createHttpLink({\n uri: urlGraphql,\n });\n\n const authLink = setContext((_, { headers }) => {\n // get the authentication token from local storage if it exists\n const token = localStorage.getItem(\n \"token_\" + process.env.REACT_APP_CLIENT_ID\n );\n // return the headers to the context so httpLink can read them\n return {\n headers: {\n ...headers,\n // authorization: token ? `Bearer ${token}` : \"\",\n authorization: token ? `${token}` : \"\",\n },\n };\n });\n\n const client = new ApolloClient({\n link: authLink.concat(httpLink),\n cache: new InMemoryCache(),\n });\n\n return (\n \n \n \n );\n}\n","/*eslint-disable*/\n\nimport \"react-app-polyfill/ie11\";\nimport React from \"react\";\nimport ReactDOM from \"react-dom\";\n// import { HashRouter } from \"react-router-dom\";\nimport AppRouter from \"./App\";\n\nimport \"tailwindcss/tailwind.css\";\nimport \"styles/theme.css\";\nimport \"primereact/resources/primereact.min.css\";\nimport \"primeicons/primeicons.css\";\nimport \"react-toastify/dist/ReactToastify.css\";\n\n//import * as serviceWorker from './serviceWorker';\n// import AuthorizationCodeExample from \"./AuthorizationCodeExample\";\n\n// const root = ReactDOM.createRoot(document.getElementById(\"root\"));\n// root.render();\n\n// eslint-disable-next-line\nReactDOM.render(, document.getElementById(\"root\"));\n\n// If you want your app to work offline and load faster, you can change\n// unregister() to register() below. Note this comes with some pitfalls.\n// Learn more about service workers: http://bit.ly/CRA-PWA\n//serviceWorker.unregister();\n"],"sourceRoot":""}