{"version":3,"sources":["Assets/PageLoading/PageLoading.js","serviceWorker.js","Theme/theme.js","index.js","../external \"{/\"Services/\":{/\"SeminovosApi/\":{/\"ApiUrl/\":/\"https:/seminovos-web-api.azurewebsites.net/\",/\"ApiUrlIC/\":/\"https:/seminovos-dev-web-api.azurewebsites.net/\"},/\"PagamentosApi/\":{/\"ApiUrl/\":/\"/\"},/\"ViaCepApi/\":{/\"ApiUrl/\":/\"https:/viacep.com.br/ws/\"},/\"ValorAcrescimoGarantia/\":200}}\""],"names":["classLoaderNormal","css","classLoaderCenter","classLoaderFixedCenter","LoadingPage","props","undefined","color","size","_jsx","children","BeatLoader","loading","isLocalhost","Boolean","window","location","hostname","match","registerValidSW","swUrl","config","navigator","serviceWorker","register","then","registration","onupdatefound","installingWorker","installing","onstatechange","state","console","log","controller","onUpdate","onSuccess","catch","error","$","document","on","e","which","preventDefault","$canfocus","index","this","length","eq","focus","LandingPage","lazy","Login","Forgot","App","ReactDOM","render","_jsxs","React","StrictMode","Router","Suspense","fallback","Switch","Route","path","exact","component","getElementById","URL","process","href","origin","addEventListener","fetch","headers","response","contentType","get","status","indexOf","ready","unregister","reload","checkValidServiceWorker","module","exports"],"mappings":"qHAAA,+BAMA,MAAMA,EAAoBC,KAAG;;;EAIvBC,EAAoBD,KAAG;;;;EAKvBE,EAAyBF,KAAG;;;;;;;;EA2BnBG,IAlBKC,IAEhB,MAAMJ,OAAoBK,IAAdD,EAAMJ,IAAoBD,EAAkC,sBAAdK,EAAMJ,IAA8BC,EAAkC,2BAAdG,EAAMJ,IAAmCE,EAAyBH,EAC9KO,OAAwBD,IAAhBD,EAAME,MAAsB,UAAYF,EAAME,MACtDC,OAAuBF,IAAfD,EAAMG,KAAqB,GAAKH,EAAMG,KAEpD,OACIC,cAAA,OAAAC,SACID,cAACE,aAAU,CACPV,IAAKA,EACLO,KAAMA,EACND,MAAOA,EACPK,SAAO,Q,qICxBvB,MAAMC,EAAcC,QACW,cAA7BC,OAAOC,SAASC,UAEa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AUC,OAAK,EAACC,UAAWd,IACvC7C,cAACwD,IAAK,CAACC,KAAK,IAAIE,UAAWb,WAG7B,OAEdf,SAAS6B,eAAe,SFZrB,SAAkBhD,GAIvB,GAFAW,QAAQC,IAAI,+CAEiC,kBAAmBX,UAAW,CAIzE,GAFkB,IAAIgD,IAAIC,GAAwBxD,OAAOC,SAASwD,MAEpDC,SAAW1D,OAAOC,SAASyD,OAIvC,OAEF1D,OAAO2D,iBAAiB,QAAQ,KAE9B,MAAMtD,EAAQ,oBACdY,QAAQC,IAAI,6BAA+Bb,GAEvCP,IAmFV,SAAiCO,EAAOC,GAEtCsD,MAAMvD,EAAO,CACXwD,QAAS,CAAE,iBAAkB,YAE5BnD,MAAKoD,IAEJ,MAAMC,EAAcD,EAASD,QAAQG,IAAI,gBAEnB,MAApBF,EAASG,QACO,MAAfF,IAA8D,IAAvCA,EAAYG,QAAQ,cAG5C3D,UAAUC,cAAc2D,MAAMzD,MAAKC,IACjCA,EAAayD,aAAa1D,MAAK,KAC7BV,OAAOC,SAASoE,eAKpBjE,EAAgBC,EAAOC,MAG1BgB,OAAM,KACLL,QAAQC,IACN,uGA1GAoD,CAAwBjE,EAAOC,GAI/BC,UAAUC,cAAc2D,MAAMzD,MAAK,KACjCO,QAAQC,IACN,kJAMJd,EAAgBC,EAAOC,OET/BE,I,iBC9CA+D,EAAOC,QAAU,CAAC,SAAW,CAAC,aAAe,CAAC,OAAS,+CAA+C,SAAW,oDAAoD,cAAgB,CAAC,OAAS,IAAI,UAAY,CAAC,OAAS,6BAA6B,uBAAyB,Q","file":"static/js/main.abd12410.chunk.js","sourcesContent":["import React from 'react';\r\nimport { BeatLoader} from 'react-spinners';\r\n// https://www.davidhu.io/react-spinners/\r\n\r\nimport {css} from '@emotion/core';\r\n\r\nconst classLoaderNormal = css`\r\n margin-top: 10px;\r\n margin-bottom: 10px;\r\n`\r\nconst classLoaderCenter = css`\r\n width: 100%;\r\n justify-content: center;\r\n align-items: center;\r\n`\r\nconst classLoaderFixedCenter = css`\r\n display: block;\r\n position: fixed;\r\n z-index: 1031; /* High z-index so it is on top of the page */\r\n top: 50%;\r\n right: 50%; /* or: left: 50%; */\r\n margin-top: -..px; /* half of the elements height */\r\n margin-right: -..px; /* half of the elements width */\r\n`\r\nconst LoadingPage = props => {\r\n \r\n const css = props.css === undefined ? classLoaderNormal : props.css === \"classLoaderCenter\" ? classLoaderCenter : props.css === \"classLoaderFixedCenter\" ? classLoaderFixedCenter : classLoaderNormal;\r\n const color = props.color === undefined ? \"#2A3679\" : props.color;\r\n const size = props.size === undefined ? 20 : props.size;\r\n \r\n return(\r\n
\r\n \r\n
\r\n );\r\n}\r\n\r\nexport default LoadingPage;","// Este código opcional é usado para registrar um service worker.\r\n// a função register() não é chamado por padrão.\r\n\r\n// Isso permite que o aplicativo carregue mais rápido em visitas subsequentes na produção\r\n// possui recursos offline. No entanto, também significa que os desenvolvedores (e usuários)\r\n// só verá atualizações implantadas em visitas subsequentes a uma página, depois de todo o\r\n// as guias existentes abertas na página foram fechadas, desde que previamente armazenadas em cache\r\n// recursos são atualizados em segundo plano.\r\n\r\n// Para saber mais sobre os benefícios deste modelo e instruções sobre como\r\n// aceitar, leia 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.0/8 are 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\r\n console.log('Referência ao seu ambiente = ' + process.env.NODE_ENV);\r\n\r\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\r\n // O construtor de URL está disponível em todos os navegadores que suportam SW.\r\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\r\n\r\n if (publicUrl.origin !== window.location.origin) {\r\n // Nosso service worker não funcionará se PUBLIC_URL estiver em uma origem diferente\r\n // de onde nossa página é veiculada. Isso pode acontecer se um CDN for usado para\r\n // servir ativos; consulte https://github.com/facebook/create-react-app/issues/2374\r\n return;\r\n }\r\n window.addEventListener('load', () => {\r\n // Sw personalizado para projeto\r\n const swUrl = `${process.env.PUBLIC_URL}/serviceworker.js`;\r\n console.log('Endereco service worker = ' + swUrl);\r\n\r\n if (isLocalhost) {\r\n // Se estiver sendo executado no localhost. Verificar se um service worker ainda existe ou não.\r\n checkValidServiceWorker(swUrl, config);\r\n\r\n // Adicionar algum registro adicional ao localhost, apontando os desenvolvedores para o\r\n // documentação do SW / PWA. \r\n navigator.serviceWorker.ready.then(() => {\r\n console.log(\r\n 'Este aplicativo da web está sendo servido primeiro em cache por um sw ' +\r\n '. Para maiores informações, visite https://bit.ly/CRA-PWA'\r\n );\r\n });\r\n } else {\r\n // Não é localhost, Registrar SW\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\r\n \r\n\r\n if (installingWorker == null) {\r\n return;\r\n }\r\n installingWorker.onstatechange = () => {\r\n if (installingWorker.state === 'installed') {\r\n\r\n\r\n console.log(navigator.serviceWorker.controller);\r\n\r\n\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\r\n // Neste ponto, o conteúdo pré-armazenado atualizado foi buscado,\r\n // mas o service worker anterior ainda servirá o mais antigo conteudo\r\n // até que todas as guias do cliente sejam fechadas.\r\n console.log(\r\n 'Novo conteúdo está disponível e será usado quando todos ' +\r\n 'as abas forem fechadas. Veja em 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\r\n // Neste ponto, tudo foi pré-armazenado.\r\n // É o momento perfeito para exibir uma mensagem.: \r\n // \"O conteúdo é armazenado em cache para uso offline.\"\r\n console.log('O conteúdo é armazenado em cache para uso offline.');\r\n console.log('Config = ' + config);\r\n //console.log('Config on sucess ' + config.onSuccess);\r\n \r\n // Execute callback\r\n if (config && config.onSuccess) {\r\n \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 // Verifique se o service worker pode ser encontrado. Se não for possível recarregar a página.\r\n fetch(swUrl, {\r\n headers: { 'Service-Worker': 'script' },\r\n })\r\n .then(response => {\r\n // Certifique-se de que o service worker exista e de que realmente estamos recebendo um arquivo JS.\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 // Nenhum SW encontrado. Provavelmente um aplicativo diferente. Recarregue a página.\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 // SW encontrado. Prossiga normalmente.\r\n registerValidSW(swUrl, config);\r\n }\r\n })\r\n .catch(() => {\r\n console.log(\r\n 'Nenhuma conexão de internet encontrada. O aplicativo está sendo executado no modo offline.'\r\n );\r\n });\r\n}\r\n\r\nexport function unregister() {\r\n if ('serviceWorker' in navigator) {\r\n navigator.serviceWorker.ready\r\n .then(registration => {\r\n registration.unregister();\r\n })\r\n .catch(error => {\r\n console.error(error.message);\r\n });\r\n }\r\n}\r\n","import $ from \"jquery-slim\";\r\n//move-focus-on-next-field-when-enter-is-pressed\r\n//https://stackoverflow.com/questions/24209588/how-to-move-focus-on-next-field-when-enter-is-pressed\r\n$(document).on('keypress', 'input,select', function (e) {\r\n if (e.which === 13) {\r\n e.preventDefault();\r\n // Get all focusable elements on the page\r\n var $canfocus = $(':input');\r\n var index = $canfocus.index(this) + 1;\r\n if (index >= $canfocus.length) index = 0;\r\n $canfocus.eq(index).focus();\r\n }\r\n});\r\n\r\n// var checkScrollBars = function(){\r\n// var b = $('body');\r\n// var normalw = 0;\r\n// var scrollw = 0;\r\n// if(b.prop('scrollHeight')>b.height()){\r\n// normalw = window.innerWidth;\r\n// scrollw = normalw - b.width();\r\n// $('#content').css({marginRight:'-'+scrollw+'px'});\r\n// }\r\n// }","import React, { Suspense, lazy } from 'react';\r\nimport ReactDOM from 'react-dom';\r\nimport { BrowserRouter as Router, Route, Switch } from 'react-router-dom';\r\n\r\nimport * as serviceWorker from './serviceWorker';\r\nimport \"./Theme/variable.css\";\r\nimport \"./Theme/theme.css\";\r\nimport \"./Theme/theme\";\r\n// import \"bootstrap/dist/css/bootstrap.min.css\";\r\nimport \"@fortawesome/fontawesome-free/css/all.css\";\r\nimport \"@fortawesome/fontawesome-free/js/all\";\r\nimport \"alertifyjs/build/css/alertify.css\";\r\nimport 'react-datepicker/dist/react-datepicker.css';\r\nimport LoadingPage from './Assets/PageLoading/PageLoading';\r\n//import swDev from './swDev'; \r\n\r\nconst LandingPage = lazy(() => import('./Pages/LandingPage/Lp'));\r\nconst Login = lazy(() => import('./Pages/Login/Login'));\r\nconst Forgot = lazy(() => import('./Pages/Login/Forgot'));\r\nconst App = lazy(() => import('./App'));\r\n\r\nReactDOM.render(\r\n \r\n \r\n }>\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n ,\r\n ,\r\n document.getElementById('root')\r\n);\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\n\r\n// referencias serviceWorker\r\n//https://create-react-app.dev/docs/making-a-progressive-web-app/\r\n// https://dev.to/oieduardorabelo/pwa-criar-notificacao-de-uma-nova-versao-esta-disponivel-1945\r\n// https://youtu.be/IaJqMcOMuDM\r\n\r\nserviceWorker.register();\r\n//swDev(); ","module.exports = {\"Services\":{\"SeminovosApi\":{\"ApiUrl\":\"https://seminovos-web-api.azurewebsites.net/\",\"ApiUrlIC\":\"https://seminovos-dev-web-api.azurewebsites.net/\"},\"PagamentosApi\":{\"ApiUrl\":\"\"},\"ViaCepApi\":{\"ApiUrl\":\"https://viacep.com.br/ws/\"},\"ValorAcrescimoGarantia\":200}};"],"sourceRoot":""}