{"version":3,"sources":["App.js","serviceWorkerRegistration.js","reportWebVitals.js","index.js"],"names":["ReactGA","initialize","testMode","HomeView","lazy","WelcomeView","Settings","videoLibrary","Slide","App","Fragment","fallback","className","exact","path","component","isLocalhost","Boolean","window","location","hostname","match","registerValidSW","swUrl","config","navigator","serviceWorker","register","then","registration","onupdatefound","installingWorker","installing","onstatechange","state","controller","console","log","reload","onUpdate","onSuccess","catch","error","reportWebVitals","onPerfEntry","Function","getCLS","getFID","getFCP","getLCP","getTTFB","ReactDOM","render","StrictMode","auto","duration","document","getElementById","URL","process","href","origin","addEventListener","fetch","headers","response","contentType","get","status","indexOf","ready","unregister","checkValidServiceWorker","serviceWorkerRegistration","e","waiting","postMessage","update"],"mappings":"kQASAA,IAAQC,WAAW,eAAgB,CAAEC,UAFvB,IAId,IAAMC,EAAWC,gBAAK,kBAAM,sEACtBC,EAAcD,gBAAK,kBAAM,6EACzBE,EAAWF,gBAAK,kBAAM,6EACtBG,EAAeH,gBAAK,kBAAM,6EAE1BI,EAAQJ,gBAAK,kBAAM,4EAgCVK,MA9Bf,WACE,OACE,cAAC,IAAD,UACE,cAAC,IAAMC,SAAP,UACE,cAAC,WAAD,CACEC,SACE,qBAAKC,UAAU,8BAAf,wBAFJ,SAKE,eAAC,IAAD,WAIE,cAAC,IAAD,CAAOC,OAAK,EAACC,KAAK,IAAIC,UAAWZ,IACjC,cAAC,IAAD,CAAOU,OAAK,EAACC,KAAK,WAAWC,UAAWV,IACxC,cAAC,IAAD,CAAOQ,OAAK,EAACC,KAAK,gBAAgBC,UAAWR,IAC7C,cAAC,IAAD,CAAOM,OAAK,EAACC,KAAK,YAAYC,UAAWT,IACzC,cAAC,IAAD,CAAOO,OAAK,EAACC,KAAK,QAAQC,UAAWP,cCvB3CQ,EAAcC,QACW,cAA7BC,OAAOC,SAASC,UAEe,UAA7BF,OAAOC,SAASC,UAEhBF,OAAOC,SAASC,SAASC,MAAM,2DAqCnC,SAASC,EAAgBC,EAAOC,GAC9BC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CA,EAAa0C,aAAa3C,MAAK,WAC7BV,OAAOC,SAASmB,eAKpBhB,EAAgBC,EAAOC,MAG1BiB,OAAM,WACLL,QAAQC,IAAI,oEAvFVmC,CAAwBjD,EAAOC,GAI/BC,UAAUC,cAAc4C,MAAM1C,MAAK,WACjCQ,QAAQC,IACN,+GAMJf,EAAgBC,EAAOC,OEvB/BiD,CAAmC,CACjClC,SAAU,SAACmC,GACT,MAA0DA,GAAK,GAA/D,IAAQC,QAAR,gBAA0C,GAA1C,GAAmBC,mBAAnB,MAAiC,KAAjC,EAA+CC,EAA/C,EAA+CA,OAC3CD,GAEFxC,QAAQC,IAAI,cAAcuC,GAE5BC,IAASjD,MAAK,WACZV,OAAOC,SAASmB,eAQtBK,M","file":"static/js/main.c3d44d9d.chunk.js","sourcesContent":["import React, { Suspense,lazy } from 'react';\nimport { BrowserRouter, Route, Switch } from \"react-router-dom\";\nimport 'bootstrap/dist/css/bootstrap.min.css';\nimport './App.css';\n\nimport ReactGA from \"react-ga4\";\n\nconst isDev = false;\n\nReactGA.initialize('G-FBR7V40S2C', { testMode: isDev });\n\nconst HomeView = lazy(() => import(\"./screens/Home\"));\nconst WelcomeView = lazy(() => import(\"./screens/Welcome\"));\nconst Settings = lazy(() => import(\"./screens/Settings\"));\nconst videoLibrary = lazy(() => import(\"./screens/VideoListComponent\"));\n// const Iframe = lazy(() => import(\"./screens/IframeComponent\"));\nconst Slide = lazy(() => import(\"./screens/SlideWelcome\"));\n\nfunction App() {\n return (\n \n \n Loading...\n }\n >\n \n {/* window.location = 'https://www.bauschhealth.com/Portals/25/Pdf/PI/arestin-pi.pdf'}/> */}\n {/* } /> */}\n \n \n \n \n \n \n\n {/* { ReactGA.pageview(props.location.pathname); return ; }} />\n { ReactGA.pageview(props.location.pathname); return ; }} />\n { ReactGA.pageview(props.location.pathname); return ; }} />\n { ReactGA.pageview(props.location.pathname); return ; }} /> */}\n \n \n \n \n );\n}\n\nexport default App;\n","// This optional code is used to register a service worker.\n// register() is not called by default.\n\n// This lets the app load faster on subsequent visits in production, and gives\n// it offline capabilities. However, it also means that developers (and users)\n// will only see deployed updates on subsequent visits to a page, after all the\n// existing tabs open on the page have been closed, since previously cached\n// resources are updated in the background.\n\n// To learn more about the benefits of this model and instructions on how to\n// opt-in, read https://cra.link/PWA\n\nconst isLocalhost = Boolean(\n window.location.hostname === 'localhost' ||\n // [::1] is the IPv6 localhost address.\n window.location.hostname === '[::1]' ||\n // 127.0.0.0/8 are considered localhost for IPv4.\n window.location.hostname.match(/^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/)\n);\n\nexport function register(config) {\n if (process.env.NODE_ENV === 'production' && 'serviceWorker' in navigator) {\n // The URL constructor is available in all browsers that support SW.\n const publicUrl = new URL(process.env.PUBLIC_URL, window.location.href);\n if (publicUrl.origin !== window.location.origin) {\n // Our service worker won't work if PUBLIC_URL is on a different origin\n // from what our page is served on. This might happen if a CDN is used to\n // serve assets; see https://github.com/facebook/create-react-app/issues/2374\n return;\n }\n\n window.addEventListener('load', () => {\n const swUrl = `${process.env.PUBLIC_URL}/service-worker.js`;\n\n if (isLocalhost) {\n // This is running on localhost. Let's check if a service worker still exists or not.\n checkValidServiceWorker(swUrl, config);\n\n // Add some additional logging to localhost, pointing developers to the\n // service worker/PWA documentation.\n navigator.serviceWorker.ready.then(() => {\n console.log(\n 'This web app is being served cache-first by a service ' +\n 'worker. To learn more, visit https://cra.link/PWA'\n );\n });\n } else {\n // Is not localhost. Just register service worker\n registerValidSW(swUrl, config);\n }\n });\n }\n}\n\nfunction registerValidSW(swUrl, config) {\n navigator.serviceWorker\n .register(swUrl)\n .then((registration) => {\n registration.onupdatefound = () => {\n const installingWorker = registration.installing;\n if (installingWorker == null) {\n return;\n }\n installingWorker.onstatechange = () => {\n if (installingWorker.state === 'installed') {\n if (navigator.serviceWorker.controller) {\n // At this point, the updated precached content has been fetched,\n // but the previous service worker will still serve the older\n // content until all client tabs are closed.\n console.log(\n 'New content is available and will be used when all ' +\n 'tabs for this page are closed. See https://cra.link/PWA.'\n );\n window.location.reload();\n\n // Execute callback\n if (config && config.onUpdate) {\n config.onUpdate(registration);\n }\n } else {\n // At this point, everything has been precached.\n // It's the perfect time to display a\n // \"Content is cached for offline use.\" message.\n console.log('Content is cached for offline use.');\n\n // Execute callback\n if (config && config.onSuccess) {\n config.onSuccess(registration);\n }\n }\n }\n };\n };\n })\n .catch((error) => {\n console.error('Error during service worker registration:', error);\n });\n}\n\nfunction checkValidServiceWorker(swUrl, config) {\n // Check if the service worker can be found. If it can't reload the page.\n fetch(swUrl, {\n headers: { 'Service-Worker': 'script' },\n })\n .then((response) => {\n // Ensure service worker exists, and that we really are getting a JS file.\n const contentType = response.headers.get('content-type');\n if (\n response.status === 404 ||\n (contentType != null && contentType.indexOf('javascript') === -1)\n ) {\n // No service worker found. Probably a different app. Reload the page.\n navigator.serviceWorker.ready.then((registration) => {\n registration.unregister().then(() => {\n window.location.reload();\n });\n });\n } else {\n // Service worker found. Proceed as normal.\n registerValidSW(swUrl, config);\n }\n })\n .catch(() => {\n console.log('No internet connection found. App is running in offline mode.');\n });\n}\n\nexport function unregister() {\n if ('serviceWorker' in navigator) {\n navigator.serviceWorker.ready\n .then((registration) => {\n registration.unregister();\n })\n .catch((error) => {\n console.error(error.message);\n });\n }\n}\n","const reportWebVitals = (onPerfEntry) => {\n if (onPerfEntry && onPerfEntry instanceof Function) {\n import('web-vitals').then(({ getCLS, getFID, getFCP, getLCP, getTTFB }) => {\n getCLS(onPerfEntry);\n getFID(onPerfEntry);\n getFCP(onPerfEntry);\n getLCP(onPerfEntry);\n getTTFB(onPerfEntry);\n });\n }\n};\n\nexport default reportWebVitals;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\nimport * as serviceWorkerRegistration from './serviceWorkerRegistration';\nimport reportWebVitals from './reportWebVitals';\nimport { ClearBrowserCacheBoundary } from 'react-clear-browser-cache';\n// import ErrorBoundary from './ErrorBoundary';\n\nReactDOM.render(\n // \n // \n // , \n \n \n \n \n ,\n document.getElementById('root')\n);\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: https://cra.link/PWA\n// serviceWorkerRegistration.register();\nserviceWorkerRegistration.register({\n onUpdate: (e) => {\n const { waiting: { postMessage = null } = {} , update } = e || {};\n if (postMessage) {\n // postMessage({ type: 'SKIP_WAITING' });\n console.log('postmessage',postMessage);\n }\n update().then(() => {\n window.location.reload();\n });\n },\n});\n\n// If you want to start measuring performance in your app, pass a function\n// to log results (for example: reportWebVitals(console.log))\n// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals\nreportWebVitals();\n"],"sourceRoot":""}