{"version":3,"sources":["services/login/LoginService.js","services/apiConfig.js","services/ServiceBase.js","router.js","App.js","serviceWorker.js","index.js"],"names":["cookie","isSupported","navigator","cookieEnabled","exists","name","document","indexOf","concat","write","value","expiresDate","path","domain","secure","expires","Date","toGMTString","r","escape","k","Object","keys","forEach","key","push","join","read","c","s","unescape","substring","length","remove","LoginService","login","data","request","url","method","recoverPassword","resetPassword","resetPasswordRequest","options","C_dev_front_portalfornecedor_node_modules_babel_runtime_helpers_esm_objectSpread__WEBPACK_IMPORTED_MODULE_0__","setToken","isSession","localStorage","removeItem","setItem","getToken","getItem","removeToken","apiConfig","api","base","process","arquivo","cep","rax","require","client","axios","create","baseURL","attach","auth","opt","withCredentials","raxConfig","retry","noResponseRetries","retryDelay","statusCodesToRetry","instance","onRetryAttempt","err","cfg","getConfig","console","log","currentRetryAttempt","headers","Authorization","then","response","debug","catch","error","Promise","reject","Home","lazy","all","__webpack_require__","e","bind","StatusHomologacao","LoginFornecedor","IndicaFornecedor","AvaliacaoFornecedor","AvaliacaoAW","isLogged","router","react_default","a","createElement","react","fallback","Fragment","react_router","exact","render","to","component","props","history","CreateHistory","basename","defineProperty","Array","prototype","enumerable","configurable","writable","this","i","j","id","splice","App","_this","classCallCheck","possibleConstructorReturn","getPrototypeOf","call","state","ua","window","userAgent","msieversion","className","lib","src","Component","Boolean","location","hostname","match","ReactDOM","src_App_0","getElementById","serviceWorker","ready","registration","unregister"],"mappings":"2GAsCMA,EAAS,CACdC,cAAeC,UAAUC,cACzBC,OAAQ,SAAAC,GACP,OAAOC,SAASN,OAAOO,QAAhB,GAAAC,OAA2BH,EAA3B,MAAsC,GAE9CI,MAAO,SAACJ,EAAMK,EAAOC,EAAaC,EAAMC,EAAQC,GAC/C,IAAMC,EACLJ,aAAuBK,KACpBL,EAAYM,cACW,kBAAhBN,GAA4B,IAAIK,MAAM,IAAIA,KAAuB,IAAdL,GAAmBM,cAC3EC,EAAI,IAAAV,OAAIH,EAAJ,KAAAG,OAAYW,O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H,EAAA,EAAAjH,CAAA6G,GAAAK,KAAAV,KAAMV,KACDqB,MAAQ,GAFKL,6EAMlB,IAAMM,EAAKC,OAAOxI,UAAUyI,UAE5B,OAAIF,EAAGlI,QAAQ,QAAU,GAAKkI,EAAGlI,QAAQ,WAAa,mCAQtD,OAAOsH,KAAKe,cACXpC,EAAAC,EAAAC,cAAA,OAAKmC,UAAU,kBACdrC,EAAAC,EAAAC,cAAA,OAAKmC,UAAU,6BACdrC,EAAAC,EAAAC,cAAA,2BAEAF,EAAAC,EAAAC,cAAA,mFACkEF,EAAAC,EAAAC,cAAA,WADlE,oEAIAF,EAAAC,EAAAC,cAAA,2DAIFF,EAAAC,EAAAC,cAACoC,EAAA,gBAAD,KACCtC,EAAAC,EAAAC,cAACI,EAAA,EAAD,CAAQQ,SAAS,IAAIF,QAASA,GAC7BZ,EAAAC,EAAAC,cAACqC,EAAA,gBAAD,CAAiB9B,GAAG,KAApB,cACCV,aAjCYyC,aChBEC,QACW,cAA7BP,OAAOQ,SAASC,UAEe,UAA7BT,OAAOQ,SAASC,UAEhBT,OAAOQ,SAASC,SAASC,MACvB,2DCbNC,IAASrC,OAAOR,EAAAC,EAAAC,cAAC4C,EAAD,MAAShJ,SAASiJ,eAAe,SD4H3C,kBAAmBrJ,WACrBA,UAAUsJ,cAAcC,MAAMrE,KAAK,SAAAsE,GACjCA,EAAaC","file":"static/js/main.3501ada5.chunk.js","sourcesContent":["import { request } from '../ServiceBase';\r\n\r\n/**\r\n * Realiza o login do fornecedor\r\n * @param {object} data Objeto JSON.\r\n * @param {string} data.email Email do usuário.\r\n * @param {string} data.senha senha do usuário.\r\n */\r\nconst login = data => request({ url: 'autenticacao', method: 'POST', data });\r\n\r\n/**\r\n * Envia pedido de reset de senha\r\n * @param {object} data Objeto JSON.\r\n * @param {string} data.email Email do usuário.\r\n * @param {string} data.confirmacaoEmail Confirmação de e-mail do usuário.\r\n */\r\nconst recoverPassword = data => request({ url: 'autenticacao/esqueci-senha', method: 'POST', data });\r\n\r\n/**\r\n * Realiza o reset do fornecedor com token fornecido\r\n * @param {object} data Objeto JSON.\r\n * @param {string} data.token Token de validação de reset.\r\n * @param {string} data.senha Nova senha a ser cadastrada.\r\n * @param {string} data.confirmacaoSenha Confirmação de nova senha.\r\n */\r\nconst resetPassword = data => request({ url: 'autenticacao/resetar-senha', method: 'POST', data });\r\n\r\n/**\r\n * Realiza a redefinição de senha do fornecedor\r\n * @param {object} data Objeto JSON.\r\n * @param {string} data.senhaAtual Senha atual do usuário.\r\n * @param {string} data.novaSenha Nova senha a ser cadastrada.\r\n * @param {string} data.confirmacaoNovaSenha Confirmação de nova senha.\r\n * @param {string?} data.token Token de validação de reset.\r\n */\r\nconst resetPasswordRequest = (data, options) =>\r\n\trequest({ url: 'autenticacao/redefinir-senha', method: 'POST', data, ...options });\r\n\r\nconst cookie = {\r\n\tisSupported: !!navigator.cookieEnabled,\r\n\texists: name => {\r\n\t\treturn document.cookie.indexOf(`${name}=`) + 1;\r\n\t},\r\n\twrite: (name, value, expiresDate, path, domain, secure) => {\r\n\t\tconst expires =\r\n\t\t\texpiresDate instanceof Date\r\n\t\t\t\t? expiresDate.toGMTString()\r\n\t\t\t\t: typeof expiresDate === 'number' && new Date(+new Date() + expiresDate * 1e3).toGMTString();\r\n\t\tconst r = [`${name}=${escape(value)}`];\r\n\t\tconst k = { expires, path, domain };\r\n\t\tObject.keys(k).forEach(key => {\r\n\t\t\tif (k[key]) r.push(`${k}=${k[key]}`);\r\n\t\t});\r\n\r\n\t\tif (secure) r.push('secure');\r\n\t\tdocument.cookie = r.join(';');\r\n\t\treturn true;\r\n\t},\r\n\tread: name => {\r\n\t\tconst c = document.cookie;\r\n\t\tlet s = cookie.exists(name);\r\n\t\treturn s ? unescape(c.substring((s += name.length), (c.indexOf(';', s) + 1 || c.length + 1) - 1)) : '';\r\n\t},\r\n\tremove: (name, path, domain) => {\r\n\t\treturn cookie.exists(name) && cookie.write(name, '', new Date(0), path, domain);\r\n\t},\r\n};\r\n\r\n/**\r\n * Grava um token no localStorage ou cookie dependendo do parâmetro isSession\r\n * @param {string} name Nome do token\r\n * @param {string} value Valor do token\r\n * @param {boolean?} isSession Valida se o token é temporário\r\n */\r\nconst setToken = (name, value, isSession) => {\r\n\tif (isSession) {\r\n\t\tcookie.write(name, value);\r\n\t\tlocalStorage.removeItem(name);\r\n\t} else {\r\n\t\tcookie.remove(name);\r\n\t\tlocalStorage.setItem(name, value);\r\n\t}\r\n};\r\n\r\n/**\r\n * Retorna token do localStorage ou cookie\r\n * @param {string} name Nome do token\r\n */\r\nconst getToken = name => {\r\n\treturn localStorage.getItem(name) || cookie.read(name);\r\n};\r\n\r\n/**\r\n * Remove o token do localStorage ou cookie\r\n * @param {string} name Nome do token\r\n */\r\nconst removeToken = name => {\r\n\tlocalStorage.removeItem(name);\r\n\tcookie.remove(name);\r\n};\r\n\r\nconst LoginService = {\r\n\tlogin,\r\n\trecoverPassword,\r\n\tresetPassword,\r\n\tresetPasswordRequest,\r\n\tsetToken,\r\n\tgetToken,\r\n\tremoveToken,\r\n};\r\n\r\nexport default LoginService;\r\n","const apiConfig = {\r\n\tapi: {\r\n\t\tbase: `${process.env.REACT_APP_BASE_API}/portal-fornecedor/`,\r\n\t\tarquivo: `${process.env.REACT_APP_BASE_API}/`,\r\n\t\tcep: 'https://viacep.com.br/ws/',\r\n\t},\r\n};\r\n\r\nexport default apiConfig;\r\n","import axios from 'axios';\r\n// import rax from 'retry-axios';\r\nimport apiConfig from './apiConfig';\r\nimport LoginService from './login/LoginService';\r\n\r\nconst rax = require('retry-axios');\r\n\r\nexport const client = axios.create({\r\n\tbaseURL: apiConfig.api.base,\r\n});\r\n\r\nexport const interceptorId = rax.attach(client);\r\n\r\nexport const request = (options, auth) => {\r\n\tlet opt = {\r\n\t\twithCredentials: true,\r\n\t\traxConfig: {\r\n\t\t\tretry: 3,\r\n\t\t\t// Retry twice on errors that don't return a response (ENOTFOUND, ETIMEDOUT, etc).\r\n\t\t\tnoResponseRetries: 2,\r\n\t\t\tretryDelay: 3000,\r\n\t\t\t// httpMethodsToRetry: ['GET', 'HEAD', 'OPTIONS', 'DELETE', 'PUT'],\r\n\t\t\tstatusCodesToRetry: [504],\r\n\t\t\tinstance: client,\r\n\t\t\tonRetryAttempt: err => {\r\n\t\t\t\tconst cfg = rax.getConfig(err);\r\n\t\t\t\tconsole.log(`Retry attempt #${cfg.currentRetryAttempt}`);\r\n\t\t\t},\r\n\t\t},\r\n\t\t...options,\r\n\t};\r\n\r\n\tif (auth) {\r\n\t\tif (LoginService.getToken('token')) {\r\n\t\t\topt = {\r\n\t\t\t\t...opt,\r\n\t\t\t\theaders: {\r\n\t\t\t\t\tAuthorization: `Bearer ${LoginService.getToken('token')}`,\r\n\t\t\t\t},\r\n\t\t\t};\r\n\t\t}\r\n\t}\r\n\r\n\tconst onSuccess = response => {\r\n\t\tconsole.debug('Request Successful!', response);\r\n\t\treturn response.data;\r\n\t};\r\n\r\n\tconst onError = error => {\r\n\t\treturn Promise.reject(error);\r\n\t};\r\n\r\n\treturn client(opt)\r\n\t\t.then(onSuccess)\r\n\t\t.catch(onError);\r\n};\r\n","import React, { lazy, Suspense } from 'react';\r\nimport { Route, Redirect } from 'react-router';\r\n\r\nimport LoginService from './services/login/LoginService';\r\n\r\nconst Home = lazy(() => import('./containers/home/HomePage'));\r\nconst StatusHomologacao = lazy(() => import('./containers/statusHomologacao/StatusHomologacao'));\r\nconst LoginFornecedor = lazy(() => import('./containers/login/LoginFornecedor'));\r\nconst IndicaFornecedor = lazy(() => import('./containers/indicaFornecedor/IndicaFornecedor'));\r\nconst AvaliacaoFornecedor = lazy(() => import('./containers/avaliacaoFornecedor/AvaliacaoFornecedor'));\r\nconst AvaliacaoAW = lazy(() => import('./containers/avaliacaoAW/AvaliacaoAW'));\r\n\r\nfunction isLogged() {\r\n\treturn LoginService.getToken('token') || false;\r\n}\r\n\r\nfunction router() {\r\n\treturn (\r\n\t\t}>\r\n\t\t\t } />\r\n\t\t\t (isLogged() ? : )}\r\n\t\t\t/>\r\n\t\t\t (isLogged() ? : )} />\r\n\t\t\t\r\n\t\t\t\r\n\t\t\t\t\tisLogged() ? : \r\n\t\t\t\t}\r\n\t\t\t/>\r\n\t\t\t\r\n\t\t\t\t\tisLogged() ? : \r\n\t\t\t\t}\r\n\t\t\t/>\r\n\t\t\t\r\n\t\t\t\t\tisLogged() ? : \r\n\t\t\t\t}\r\n\t\t\t/>\r\n\t\t\r\n\t);\r\n}\r\n\r\nexport default router;\r\n","import React, { Component } from 'react';\r\nimport { Router } from 'react-router-dom';\r\nimport { createBrowserHistory as CreateHistory } from 'history';\r\nimport { ThroughProvider } from 'react-through';\r\nimport { BreadcrumbsItem } from 'react-breadcrumbs-dynamic';\r\nimport router from './router';\r\nimport './App.scss';\r\n\r\nconst history = new CreateHistory({\r\n\tbasename: '/',\r\n});\r\n// eslint-disable-next-line no-extend-native\r\nObject.defineProperty(Array.prototype, 'unique', {\r\n\tenumerable: false,\r\n\tconfigurable: false,\r\n\twritable: false,\r\n\tvalue() {\r\n\t\tconst a = this.concat();\r\n\t\tfor (let i = 0; i < a.length; ++i) {\r\n\t\t\tfor (let j = i + 1; j < a.length; ++j) {\r\n\t\t\t\tif (a[i].id === a[j].id) a.splice(j--, 1);\r\n\t\t\t}\r\n\t\t}\r\n\r\n\t\treturn a;\r\n\t},\r\n});\r\n\r\nclass App extends Component {\r\n\tconstructor(props) {\r\n\t\tsuper(props);\r\n\t\tthis.state = {};\r\n\t}\r\n\r\n\tmsieversion() {\r\n\t\tconst ua = window.navigator.userAgent;\r\n\r\n\t\tif (ua.indexOf('MSIE') > 0 || ua.indexOf('Trident') > 0) {\r\n\t\t\treturn true;\r\n\t\t}\r\n\r\n\t\treturn false;\r\n\t}\r\n\r\n\trender() {\r\n\t\treturn this.msieversion() ? (\r\n\t\t\t
\r\n\t\t\t\t
\r\n\t\t\t\t\t

Atenção

\r\n\r\n\t\t\t\t\t

\r\n\t\t\t\t\t\tO sistema do Novo Focus não dá mais suporte para este navegador.
\r\n\t\t\t\t\t\tCopie o endereço abaixo e abra com o navegador Google Chrome.\r\n\t\t\t\t\t

\r\n\t\t\t\t\t

http://portalfornecedor.athiewohnrath.com.br

\r\n\t\t\t\t
\r\n\t\t\t
\r\n\t\t) : (\r\n\t\t\t\r\n\t\t\t\t\r\n\t\t\t\t\tFornecedor\r\n\t\t\t\t\t{router()}\r\n\t\t\t\t\r\n\t\t\t\r\n\t\t);\r\n\t}\r\n}\r\n\r\nexport default App;\r\n","// This optional code is used to register a service worker.\r\n// register() is not called by default.\r\n\r\n// This lets the app load faster on subsequent visits in production, and gives\r\n// it offline capabilities. However, it also means that developers (and users)\r\n// will only see deployed updates on subsequent visits to a page, after all the\r\n// existing tabs open on the page have been closed, since previously cached\r\n// resources are updated in the background.\r\n\r\n// To learn more about the benefits of this model and instructions on how to\r\n// opt-in, read https://bit.ly/CRA-PWA\r\n\r\nconst isLocalhost = Boolean(\r\n window.location.hostname === 'localhost' ||\r\n // [::1] is the IPv6 localhost address.\r\n window.location.hostname === '[::1]' ||\r\n // 127.0.0.1/8 is considered localhost for IPv4.\r\n window.location.hostname.match(\r\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\r\n )\r\n);\r\n\r\nexport function register(config) {\r\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\r\n // The URL constructor is available in all browsers that support SW.\r\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\r\n if (publicUrl.origin !== window.location.origin) {\r\n // Our service worker won't work if PUBLIC_URL is on a different origin\r\n // from what our page is served on. This might happen if a CDN is used to\r\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\r\n return;\r\n }\r\n\r\n window.addEventListener('load', () => {\r\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\r\n\r\n if (isLocalhost) {\r\n // This is running on localhost. Let's check if a service worker still exists or not.\r\n checkValidServiceWorker(swUrl, config);\r\n\r\n // Add some additional logging to localhost, pointing developers to the\r\n // service worker/PWA documentation.\r\n navigator.serviceWorker.ready.then(() => {\r\n console.log(\r\n 'This web app is being served cache-first by a service ' +\r\n 'worker. To learn more, visit https://bit.ly/CRA-PWA'\r\n );\r\n });\r\n } else {\r\n // Is not localhost. Just register service worker\r\n registerValidSW(swUrl, config);\r\n }\r\n });\r\n }\r\n}\r\n\r\nfunction registerValidSW(swUrl, config) {\r\n navigator.serviceWorker\r\n .register(swUrl)\r\n .then(registration => {\r\n registration.onupdatefound = () => {\r\n const installingWorker = registration.installing;\r\n if (installingWorker == null) {\r\n return;\r\n }\r\n installingWorker.onstatechange = () => {\r\n if (installingWorker.state === 'installed') {\r\n if (navigator.serviceWorker.controller) {\r\n // At this point, the updated precached content has been fetched,\r\n // but the previous service worker will still serve the older\r\n // content until all client tabs are closed.\r\n console.log(\r\n 'New content is available and will be used when all ' +\r\n 'tabs for this page are closed. See https://bit.ly/CRA-PWA.'\r\n );\r\n\r\n // Execute callback\r\n if (config && config.onUpdate) {\r\n config.onUpdate(registration);\r\n }\r\n } else {\r\n // At this point, everything has been precached.\r\n // It's the perfect time to display a\r\n // \"Content is cached for offline use.\" message.\r\n console.log('Content is cached for offline use.');\r\n\r\n // Execute callback\r\n if (config && config.onSuccess) {\r\n config.onSuccess(registration);\r\n }\r\n }\r\n }\r\n };\r\n };\r\n })\r\n .catch(error => {\r\n console.error('Error during service worker registration:', error);\r\n });\r\n}\r\n\r\nfunction checkValidServiceWorker(swUrl, config) {\r\n // Check if the service worker can be found. If it can't reload the page.\r\n fetch(swUrl)\r\n .then(response => {\r\n // Ensure service worker exists, and that we really are getting a JS file.\r\n const contentType = response.headers.get('content-type');\r\n if (\r\n response.status === 404 ||\r\n (contentType != null && contentType.indexOf('javascript') === -1)\r\n ) {\r\n // No service worker found. Probably a different app. Reload the page.\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister().then(() => {\r\n window.location.reload();\r\n });\r\n });\r\n } else {\r\n // Service worker found. Proceed as normal.\r\n registerValidSW(swUrl, config);\r\n }\r\n })\r\n .catch(() => {\r\n console.log(\r\n 'No internet connection found. App is running in offline mode.'\r\n );\r\n });\r\n}\r\n\r\nexport function unregister() {\r\n if ('serviceWorker' in navigator) {\r\n navigator.serviceWorker.ready.then(registration => {\r\n registration.unregister();\r\n });\r\n }\r\n}\r\n","import React from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport App from './App.js';\r\nimport * as serviceWorker from './serviceWorker';\r\n\r\nReactDOM.render(, document.getElementById('root'));\r\n\r\n// If you want your app to work offline and load faster, you can change\r\n// unregister() to register() below. Note this comes with some pitfalls.\r\n// Learn more about service workers: https://bit.ly/CRA-PWA\r\nserviceWorker.unregister();\r\n"],"sourceRoot":""}