{"version":3,"sources":["routes.js","App.js","serviceWorker.js","index.js"],"names":["Home","lazy","Promise","all","__webpack_require__","e","then","bind","SobreHospital","Contato","Convenios","Especialidades","CorrecaoLaser","CirurgiaCatarata","TratamentoCeratocone","RetinaVitreo","Glaucoma","PlasticaPelpebral","Routes","Component","constructor","props","super","this","onUpdateRoute","path","title","refleshPage","arguments","length","undefined","document","window","location","reload","render","React","createElement","BrowserRouter","basename","Suspense","fallback","className","Switch","Route","exact","App","isLocalhost","Boolean","hostname","match","registerValidSW","swUrl","config","navigator","serviceWorker","register","registration","onupdatefound","installingWorker","installing","onstatechange","state","controller","console","log","onUpdate","onSuccess","catch","error","ReactDOM","getElementById","URL","process","href","origin","addEventListener","concat","fetch","response","contentType","headers","get","status","indexOf","ready","unregister","checkValidServiceWorker"],"mappings":"kOAIA,MAAMA,EAAOC,eAAK,IAAMC,QAAAC,IAAA,CAAAC,EAAAC,EAAA,GAAAD,EAAAC,EAAA,KAAAC,KAAAF,EAAAG,KAAA,YAClBC,EAAgBP,eAAK,IAAMC,QAAAC,IAAA,CAAAC,EAAAC,EAAA,GAAAD,EAAAC,EAAA,MAAAC,KAAAF,EAAAG,KAAA,YAC3BE,EAAUR,eAAK,IAAMC,QAAAC,IAAA,CAAAC,EAAAC,EAAA,GAAAD,EAAAC,EAAA,GAAAD,EAAAC,EAAA,MAAAC,KAAAF,EAAAG,KAAA,YACrBG,EAAYT,eAAK,IAAMC,QAAAC,IAAA,CAAAC,EAAAC,EAAA,GAAAD,EAAAC,EAAA,MAAAC,KAAAF,EAAAG,KAAA,WAGvBI,EAAiBV,eAAK,IAAMC,QAAAC,IAAA,CAAAC,EAAAC,EAAA,GAAAD,EAAAC,EAAA,MAAAC,KAAAF,EAAAG,KAAA,WAC5BK,EAAgBX,eAAK,IAAMC,QAAAC,IAAA,CAAAC,EAAAC,EAAA,GAAAD,EAAAC,EAAA,KAAAC,KAAAF,EAAAG,KAAA,WAC3BM,EAAmBZ,eAAK,IAAMC,QAAAC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gB,SAASC,MACvB,2DAsCN,SAASC,EAAgBC,EAAOC,GAC9BC,UAAUC,cACPC,SAASJ,GACT9C,KAAKmD,IACJA,EAAaC,cAAgB,MAC3B,MAAMC,EAAmBF,EAAaG,WACd,MAApBD,IAGJA,EAAiBE,cAAgB,MACA,cAA3BF,EAAiBG,QACfR,UAAUC,cAAcQ,YAI1BC,QAAQC,IACN,iHAKEZ,GAAUA,EAAOa,UACnBb,EAAOa,SAAST,KAMlBO,QAAQC,IAAI,sCAGRZ,GAAUA,EAAOc,WACnBd,EAAOc,UAAUV,YAO5BW,MAAMC,IACLL,QAAQK,MAAM,4CAA6CA,KC3FjEC,IAASnC,OAAOC,IAAAC,cAACS,EAAG,MAAKf,SAASwC,eAAe,SDiB1C,SAAkBlB,GACvB,GAA6C,kBAAmBC,UAAW,CAGzE,GADkB,IAAIkB,IAAIC,GAAwBzC,OAAOC,SAASyC,MACpDC,SAAW3C,OAAOC,SAAS0C,OAIvC,OAGF3C,OAAO4C,iBAAiB,OAAQ,KAC9B,MAAMxB,EAAK,GAAAyB,OAAMJ,GAAsB,sBAEnC1B,GAgEV,SAAiCK,EAAOC,GAEtCyB,MAAM1B,GACH9C,KAAKyE,IAEJ,MAAMC,EAAcD,EAASE,QAAQC,IAAI,gBAEnB,MAApBH,EAASI,QACO,MAAfH,IAA8D,IAAvCA,EAAYI,QAAQ,cAG5C9B,UAAUC,cAAc8B,MAAM/E,KAAKmD,IACjCA,EAAa6B,aAAahF,KAAK,KAC7B0B,OAAOC,SAASC,aAKpBiB,EAAgBC,EAAOC,KAG1Be,MAAM,KACLJ,QAAQC,IACN,mEArFAsB,CAAwBnC,EAAOC,GAI/BC,UAAUC,cAAc8B,MAAM/E,KAAK,KACjC0D,QAAQC,IACN,gHAMJd,EAAgBC,EAAOC,MCvC/BE","file":"static/js/main.95a20ad5.chunk.js","sourcesContent":["import React, { Component, Suspense, lazy } from 'react';\r\nimport { BrowserRouter, Switch, Route } from 'react-router-dom'\r\n\r\n// Páginas\r\nconst Home = lazy(() => import('./pages/home'));\r\nconst SobreHospital = lazy(() => import('./pages/hospital'));\r\nconst Contato = lazy(() => import('./pages/contato'));\r\nconst Convenios = lazy(() => import('./pages/convenios'));\r\n\r\n// Paginas - Especialidades\r\nconst Especialidades = lazy(() => import('./pages/especialidades/'));\r\nconst CorrecaoLaser = lazy(() => import('./pages/especialidades/correcaoLaser'));\r\nconst CirurgiaCatarata = lazy(() => import('./pages/especialidades/cirurgiaCatarata'));\r\nconst TratamentoCeratocone = lazy(() => import('./pages/especialidades/tratamentoCetatocone'));\r\nconst RetinaVitreo = lazy(() => import('./pages/especialidades/RetinaVitreo'));\r\nconst Glaucoma = lazy(() => import('./pages/especialidades/glaucoma'));\r\nconst PlasticaPelpebral = lazy(() => import('./pages/especialidades/plasticaPalpebral'));\r\n\r\n\r\nclass Routes extends Component {\r\n constructor(props) {\r\n super();\r\n\r\n this.onUpdateRoute = this.onUpdateRoute.bind();\r\n }\r\n\r\n onUpdateRoute(path, title, refleshPage = false) {\r\n title = (title === '' ? 'Hospital de Olhos de Presidente Prudente - Oftalmo Care' : title + ' - Oftalmo Care');\r\n document.title = title;\r\n\r\n if (refleshPage)\r\n window.location.reload();\r\n\r\n // if (typeof window.ga === 'function'){\r\n // window.ga('set', 'page', '/novosite2019' + path);\r\n // window.ga('set', 'title', title);\r\n // window.ga('send', 'pageview');\r\n\r\n // console.log(\"era para trocar o pageview\", \"pageview\");\r\n // } \r\n\r\n // window.ga('set', 'page', '/novosite2019' + path);\r\n // window.ga('set', 'title', title);\r\n // window.ga('send', 'pageview');\r\n }\r\n\r\n refleshPage() {\r\n window.location.reload();\r\n }\r\n\r\n render() {\r\n return (\r\n \r\n }>\r\n \r\n { this.onUpdateRoute('/', ''); return () }} />\r\n { this.onUpdateRoute('/sobre-o-hospital', 'Conheça nosso Hospital de Olhos'); return () }} />\r\n { this.onUpdateRoute('/contato', 'Contato'); return () }} />\r\n { this.onUpdateRoute('/convenios', 'Convênios'); return () }} />\r\n\r\n {/* ESPECIALIDADES */}\r\n { this.onUpdateRoute('/especialidades', 'Especialidades'); return () }} />\r\n { this.onUpdateRoute('/especialidades/correcao-da-visao-a-laser', 'Correção da Visão a Laser'); return () }} />\r\n { this.onUpdateRoute('/especialidades/moderna-cirurgia-de-catarata', 'Moderna Cirurgia de Catarata'); return () }} />\r\n { this.onUpdateRoute('/especialidades/tratamento-para-ceratoconee-doencas-de-cornea', 'Tratamento para Ceratocone e doenças de Córnea'); return () }} />\r\n { this.onUpdateRoute('/especialidades/retina-e-vitreo', 'Retina e Vítreo'); return () }} />\r\n { this.onUpdateRoute('/especialidades/glaucoma', 'Glaucoma'); return () }} />\r\n { this.onUpdateRoute('/especialidades/plastica-palpebral', 'Plástica Palpebral'); return () }} />\r\n \r\n \r\n \r\n );\r\n }\r\n}\r\n\r\nexport default Routes;\r\n","import React from 'react';\r\n\r\n// Rotas\r\nimport Routes from './routes';\r\n\r\n// CSS\r\nimport './assets/css/principal.css';\r\nimport './assets/fonts/fontawesome/css/all.min.css';\r\n\r\nfunction App() { \r\n\r\n return (\r\n \r\n );\r\n}\r\n\r\nexport default App;","// 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';\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\n//serviceWorker.unregister();\r\nserviceWorker.register();"],"sourceRoot":""}