{"version":3,"sources":["images/spinner.gif","PrivateRoute.js","App.js","reportWebVitals.js","serviceWorker.js","index.js"],"names":["getCookie","name","nameEQ","ca","document","cookie","split","i","length","c","charAt","substring","indexOf","PrivateRoute","_ref","component","Component","rest","authed","_jsx","Route","render","props","Redirect","to","pathname","Login","lazy","Profile","Orders","PaymentHistory","Address","Groups","Search","Home","Deals","Menu","Carts","PlaceOrder","PrintOrder","PrintKOT","Error","ThankYou","Call","DisplayOrder","DisplayZomatoOrder","DisplaySwiggyOrder","FailedOrder","DownloadApp","App","Suspense","fallback","className","children","src","spinner","alt","_jsxs","Router","exact","path","reportWebVitals","onPerfEntry","Function","then","getCLS","getFID","getFCP","getLCP","getTTFB","isLocalhost","Boolean","window","location","hostname","match","registerValidSW","swUrl","config","navigator","serviceWorker","register","registration","onupdatefound","installingWorker","installing","onstatechange","state","controller","console","log","onUpdate","onSuccess","catch","error","ReactDOM","React","StrictMode","getElementById","URL","process","href","origin","addEventListener","fetch","headers","response","contentType","get","status","ready","unregister","reload","checkValidServiceWorker"],"mappings":"oGAAe,QAA0B,qC,sICGzC,SAASA,EAAUC,GAGf,IAFA,IAAIC,EAASD,EAAO,IAChBE,EAAKC,SAASC,OAAOC,MAAM,KACtBC,EAAI,EAAGA,EAAIJ,EAAGK,OAAQD,IAAK,CAEhC,IADA,IAAIE,EAAIN,EAAGI,GACY,MAAhBE,EAAEC,OAAO,IAAYD,EAAIA,EAAEE,UAAU,EAAGF,EAAED,QACjD,GAA0B,IAAtBC,EAAEG,QAAQV,GAAe,OAAOO,EAAEE,UAAUT,EAAOM,OAAQC,EAAED,QAErE,OAAO,KAkBIK,MAff,SAAqBC,GAAqC,IAAlCC,UAAWC,KAAcC,GAAMH,EAE/CI,EAAuC,QAA9BlB,EAAU,iBAA6BA,EAAU,WAAaA,EAAU,SAAW,EAAI,EAEpG,OACImB,cAACC,IAAK,IACEH,EACJI,OAASC,GAAUJ,EACbC,cAACH,EAAS,IAAKM,IACfH,cAACI,IAAQ,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J,8DAKRd,EAAgBC,EAAOC,OC9BvCE,K","file":"static/js/main.74ef31db.chunk.js","sourcesContent":["export default __webpack_public_path__ + \"static/media/spinner.770bf73c.gif\";","import React from \"react\";\nimport { Redirect, Route } from \"react-router-dom\";\n\nfunction getCookie(name) {\n var nameEQ = name + \"=\";\n var ca = document.cookie.split(\";\");\n for (var i = 0; i < ca.length; i++) {\n var c = ca[i];\n while (c.charAt(0) === \" \") c = c.substring(1, c.length);\n if (c.indexOf(nameEQ) === 0) return c.substring(nameEQ.length, c.length);\n }\n return null;\n}\n\nfunction PrivateRoute({ component: Component, ...rest }) {\n\n let authed = getCookie(\"otp_verified\") === \"yes\" && getCookie(\"mobile\") && getCookie(\"token\") ? 1 : 0;\n\n return (\n authed\n ? \n : }\n />\n )\n\n}\n\nexport default PrivateRoute;","import React, { Suspense, lazy } from \"react\";\nimport { BrowserRouter as Router, Route } from \"react-router-dom\";\nimport spinner from \"./images/spinner.gif\";\nimport PrivateRoute from \"./PrivateRoute\";\n\nconst Login = lazy(() => import('./components/auth/Login'));\nconst Profile = lazy(() => import('./components/auth/Profile'));\nconst Orders = lazy(() => import('./components/auth/Orders'));\nconst PaymentHistory = lazy(() => import('./components/auth/PaymentHistory'));\nconst Address = lazy(() => import('./components/auth/Address'));\nconst Groups = lazy(() => import('./components/auth/Groups'));\n\nconst Search = lazy(() => import('./components/pages/Search'));\nconst Home = lazy(() => import('./components/pages/Home'));\nconst Deals = lazy(() => import('./components/pages/Deals'));\nconst Menu = lazy(() => import('./components/pages/Menu'));\nconst Carts = lazy(() => import('./components/pages/Carts'));\nconst PlaceOrder = lazy(() => import('./components/pages/PlaceOrder'));\nconst PrintOrder = lazy(() => import('./components/pages/PrintOrder'));\nconst PrintKOT = lazy(() => import('./components/pages/PrintKOT'));\nconst Error = lazy(() => import('./components/pages/Error'));\nconst ThankYou = lazy(() => import('./components/pages/ThankYou'));\nconst Call = lazy(() => import('./components/pages/Call'));\nconst DisplayOrder = lazy(() => import('./components/pages/OrderList'));\nconst DisplayZomatoOrder = lazy(() => import('./components/pages/DisplayZomatoOrder'));\nconst DisplaySwiggyOrder = lazy(() => import('./components/pages/DisplaySwiggyOrder'));\n// const DisplayOrder2 = lazy(() => import('./components/pages/DisplayOrder2'));\nconst FailedOrder = lazy(() => import('./components/pages/FailedOrder'));\nconst DownloadApp = lazy(() => import('./components/pages/DownloadApp'));\n// const RawPage = lazy(() => import('./components/pages/RawPage'));\n\nfunction App() {\n\n return (\n \"Loading\"}>\n \n \n \n\n \n \n \n \n \n\n \n \n \n\n \n \n \n \n \n \n \n \n \n \n {/* */}\n \n \n\n {/* \n */}\n {/* */}\n\n \n \n );\n}\n\nexport default App;\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","// 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\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(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\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 );\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 );\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: {\n 'Service-Worker': 'script'\n },\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(\n 'No internet connection found. App is running in offline mode.'\n );\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}","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './index.css';\nimport App from './App';\nimport reportWebVitals from './reportWebVitals';\nimport * as serviceWorker from './serviceWorker';\n\nReactDOM.render(\n \n \n ,\n document.getElementById('root')\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();\nserviceWorker.register();"],"sourceRoot":""}