{"version":3,"sources":["../node_modules/@ionic/core/dist/esm-es5 lazy /^/.*/.entry/.js$/ include: /.entry/.js$/ exclude: /.system/.entry/.js$/ groupOptions: {} namespace object","../node_modules/ionicons/dist/esm-es5 lazy /^/.*/.entry/.js$/ include: /.entry/.js$/ exclude: /.system/.entry/.js$/ groupOptions: {} namespace object","components/ExploreContainer.tsx","pages/Tab1.tsx","pages/Tab2.tsx","pages/Tab3.tsx","App.tsx","serviceWorker.ts","index.tsx"],"names":["map","webpackAsyncContext","req","__webpack_require__","o","Promise","resolve","then","e","Error","code","ids","id","keys","Object","module","exports","ExploreContainer","name","className","target","rel","href","Tab1","collapse","size","Tab2","Tab3","App","path","component","exact","render","to","slot","tab","icon","triangle","ellipse","square","Boolean","window","location","hostname","match","ReactDOM","document","getElementById","navigator","serviceWorker","ready","registration","unregister"],"mappings":"0HAAA,IAAIA,EAAM,CACT,kCAAmC,CAClC,GACA,IAED,iCAAkC,CACjC,GACA,IAED,2BAA4B,CAC3B,GACA,IAED,0BAA2B,CAC1B,GACA,IAED,2BAA4B,CAC3B,GACA,IAED,0BAA2B,CAC1B,GACA,IAED,8BAA+B,CAC9B,GACA,GAED,6BAA8B,CAC7B,GACA,GAED,iCAAkC,CACjC,GACA,IAED,gCAAiC,CAChC,GACA,IAED,8BAA+B,CAC9B,GACA,IAED,6BAA8B,CAC7B,GACA,IAED,8BAA+B,CAC9B,GACA,IAED,6BAA8B,CAC7B,GACA,IAED,4BAA6B,CAC5B,IACA,IAED,2BAA4B,CAC3B,IACA,IAED,8BAA+B,CAC9B,IACA,IAED,6BAA8B,CAC7B,IACA,IAED,0BAA2B,CAC1B,IACA,IAED,yBAA0B,CACzB,IACA,IAED,uBAAwB,CACvB,IACA,IAED,gCAAiC,CAChC,IACA,IAED,+BAAgC,CAC/B,IACA,IAED,2BAA4B,CAC3B,IACA,IAED,0BAA2B,CAC1B,IACA,IAED,qBAAsB,CACrB,IACA,IAED,uCAAwC,CACvC,IACA,IAED,sCAAuC,CACtC,IACA,IAED,2BAA4B,CAC3B,IACA,IAED,0BAA2B,CAC1B,IACA,IAED,mCAAoC,CACnC,IACA,IAED,kCAAmC,CAClC,IACA,IAED,4BAA6B,CAC5B,IACA,IAED,2BAA4B,CAC3B,IACA,IAED,6BAA8B,CAC7B,IACA,IAED,4BAA6B,CAC5B,IACA,IAED,4BAA6B,CAC5B,IACA,IAED,2BAA4B,CAC3B,IACA,IAED,2BAA4B,CAC3B,IACA,IAED,0BAA2B,CAC1B,IACA,IAED,uBAAwB,CACvB,IACA,IAED,6BAA8B,CAC7B,IACA,IAED,4BAA6B,CAC5B,IACA,IAED,kCAAmC,CAClC,IACA,IAED,iCAAkC,CACjC,IACA,IAED,6BAA8B,CAC7B,IACA,IAED,4BAA6B,CAC5B,IACA,IAED,2BAA4B,CAC3B,IACA,IAED,0BAA2B,CAC1B,IACA,IAED,iCAAkC,CACjC,IACA,IAED,gCAAiC,CAChC,IACA,IAED,+BAAgC,CAC/B,IACA,IAED,8BAA+B,CAC9B,IACA,IAED,+BAAgC,CAC/B,IACA,IAED,yBAA0B,CACzB,IACA,IAED,+BAAgC,CAC/B,IACA,IAED,8BAA+B,CAC9B,IACA,IAED,+BAAgC,CAC/B,IACA,IAED,8BAA+B,CAC9B,IACA,IAED,8BAA+B,CAC9B,IACA,IAED,6BAA8B,CAC7B,IACA,IAED,6BAA8B,CAC7B,IACA,IAED,4BAA6B,CAC5B,IACA,IAED,yBAA0B,CACzB,IACA,IAED,gCAAiC,CAChC,IACA,IAED,+BAAgC,CAC/B,IACA,IAED,+BAAgC,CAC/B,IACA,IAED,8BAA+B,CAC9B,IACA,IAED,uBAAwB,CACvB,IACA,IAED,sBAAuB,CACtB,IACA,IAED,8BAA+B,CAC9B,IACA,IAED,6BAA8B,CAC7B,IACA,IAED,2BAA4B,CAC3B,IACA,IAED,0BAA2B,CAC1B,IACA,IAED,4BAA6B,CAC5B,IACA,IAED,2BAA4B,CAC3B,IACA,IAED,gCAAiC,CAChC,IACA,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,UAEhBF,OAAOC,SAASC,SAASC,MACvB,2DCbNC,IAASb,OAAO,kBAAC,EAAD,MAASc,SAASC,eAAe,SDsI3C,kBAAmBC,WACrBA,UAAUC,cAAcC,MAAM3C,MAAK,SAAA4C,GACjCA,EAAaC,kB","file":"static/js/main.d467b943.chunk.js","sourcesContent":["var map = {\n\t\"./ion-action-sheet-ios.entry.js\": [\n\t\t86,\n\t\t67\n\t],\n\t\"./ion-action-sheet-md.entry.js\": [\n\t\t87,\n\t\t68\n\t],\n\t\"./ion-alert-ios.entry.js\": [\n\t\t88,\n\t\t59\n\t],\n\t\"./ion-alert-md.entry.js\": [\n\t\t89,\n\t\t60\n\t],\n\t\"./ion-app_8-ios.entry.js\": [\n\t\t90,\n\t\t53\n\t],\n\t\"./ion-app_8-md.entry.js\": [\n\t\t91,\n\t\t54\n\t],\n\t\"./ion-avatar_3-ios.entry.js\": [\n\t\t92,\n\t\t8\n\t],\n\t\"./ion-avatar_3-md.entry.js\": [\n\t\t93,\n\t\t9\n\t],\n\t\"./ion-back-button-ios.entry.js\": [\n\t\t94,\n\t\t10\n\t],\n\t\"./ion-back-button-md.entry.js\": [\n\t\t95,\n\t\t11\n\t],\n\t\"./ion-backdrop-ios.entry.js\": [\n\t\t96,\n\t\t12\n\t],\n\t\"./ion-backdrop-md.entry.js\": [\n\t\t97,\n\t\t13\n\t],\n\t\"./ion-button_2-ios.entry.js\": [\n\t\t98,\n\t\t69\n\t],\n\t\"./ion-button_2-md.entry.js\": [\n\t\t99,\n\t\t70\n\t],\n\t\"./ion-card_5-ios.entry.js\": [\n\t\t100,\n\t\t14\n\t],\n\t\"./ion-card_5-md.entry.js\": [\n\t\t101,\n\t\t15\n\t],\n\t\"./ion-checkbox-ios.entry.js\": [\n\t\t102,\n\t\t16\n\t],\n\t\"./ion-checkbox-md.entry.js\": [\n\t\t103,\n\t\t17\n\t],\n\t\"./ion-chip-ios.entry.js\": [\n\t\t104,\n\t\t18\n\t],\n\t\"./ion-chip-md.entry.js\": [\n\t\t105,\n\t\t19\n\t],\n\t\"./ion-col_3.entry.js\": [\n\t\t106,\n\t\t20\n\t],\n\t\"./ion-datetime_3-ios.entry.js\": [\n\t\t107,\n\t\t57\n\t],\n\t\"./ion-datetime_3-md.entry.js\": [\n\t\t108,\n\t\t58\n\t],\n\t\"./ion-fab_3-ios.entry.js\": [\n\t\t109,\n\t\t21\n\t],\n\t\"./ion-fab_3-md.entry.js\": [\n\t\t110,\n\t\t22\n\t],\n\t\"./ion-img.entry.js\": [\n\t\t111,\n\t\t23\n\t],\n\t\"./ion-infinite-scroll_2-ios.entry.js\": [\n\t\t112,\n\t\t24\n\t],\n\t\"./ion-infinite-scroll_2-md.entry.js\": [\n\t\t113,\n\t\t25\n\t],\n\t\"./ion-input-ios.entry.js\": [\n\t\t114,\n\t\t26\n\t],\n\t\"./ion-input-md.entry.js\": [\n\t\t115,\n\t\t27\n\t],\n\t\"./ion-item-option_3-ios.entry.js\": [\n\t\t116,\n\t\t71\n\t],\n\t\"./ion-item-option_3-md.entry.js\": [\n\t\t117,\n\t\t72\n\t],\n\t\"./ion-item_8-ios.entry.js\": [\n\t\t118,\n\t\t73\n\t],\n\t\"./ion-item_8-md.entry.js\": [\n\t\t119,\n\t\t74\n\t],\n\t\"./ion-loading-ios.entry.js\": [\n\t\t120,\n\t\t28\n\t],\n\t\"./ion-loading-md.entry.js\": [\n\t\t121,\n\t\t29\n\t],\n\t\"./ion-menu_3-ios.entry.js\": [\n\t\t122,\n\t\t75\n\t],\n\t\"./ion-menu_3-md.entry.js\": [\n\t\t123,\n\t\t76\n\t],\n\t\"./ion-modal-ios.entry.js\": [\n\t\t124,\n\t\t55\n\t],\n\t\"./ion-modal-md.entry.js\": [\n\t\t125,\n\t\t56\n\t],\n\t\"./ion-nav_2.entry.js\": [\n\t\t126,\n\t\t66\n\t],\n\t\"./ion-popover-ios.entry.js\": [\n\t\t127,\n\t\t30\n\t],\n\t\"./ion-popover-md.entry.js\": [\n\t\t128,\n\t\t31\n\t],\n\t\"./ion-progress-bar-ios.entry.js\": [\n\t\t129,\n\t\t32\n\t],\n\t\"./ion-progress-bar-md.entry.js\": [\n\t\t130,\n\t\t33\n\t],\n\t\"./ion-radio_2-ios.entry.js\": [\n\t\t131,\n\t\t34\n\t],\n\t\"./ion-radio_2-md.entry.js\": [\n\t\t132,\n\t\t35\n\t],\n\t\"./ion-range-ios.entry.js\": [\n\t\t133,\n\t\t77\n\t],\n\t\"./ion-range-md.entry.js\": [\n\t\t134,\n\t\t78\n\t],\n\t\"./ion-refresher_2-ios.entry.js\": [\n\t\t135,\n\t\t61\n\t],\n\t\"./ion-refresher_2-md.entry.js\": [\n\t\t136,\n\t\t62\n\t],\n\t\"./ion-reorder_2-ios.entry.js\": [\n\t\t137,\n\t\t36\n\t],\n\t\"./ion-reorder_2-md.entry.js\": [\n\t\t138,\n\t\t37\n\t],\n\t\"./ion-ripple-effect.entry.js\": [\n\t\t139,\n\t\t38\n\t],\n\t\"./ion-route_4.entry.js\": [\n\t\t140,\n\t\t79\n\t],\n\t\"./ion-searchbar-ios.entry.js\": [\n\t\t141,\n\t\t80\n\t],\n\t\"./ion-searchbar-md.entry.js\": [\n\t\t142,\n\t\t81\n\t],\n\t\"./ion-segment_2-ios.entry.js\": [\n\t\t143,\n\t\t82\n\t],\n\t\"./ion-segment_2-md.entry.js\": [\n\t\t144,\n\t\t83\n\t],\n\t\"./ion-select_3-ios.entry.js\": [\n\t\t145,\n\t\t84\n\t],\n\t\"./ion-select_3-md.entry.js\": [\n\t\t146,\n\t\t85\n\t],\n\t\"./ion-slide_2-ios.entry.js\": [\n\t\t147,\n\t\t86\n\t],\n\t\"./ion-slide_2-md.entry.js\": [\n\t\t148,\n\t\t87\n\t],\n\t\"./ion-spinner.entry.js\": [\n\t\t149,\n\t\t39\n\t],\n\t\"./ion-split-pane-ios.entry.js\": [\n\t\t150,\n\t\t40\n\t],\n\t\"./ion-split-pane-md.entry.js\": [\n\t\t151,\n\t\t41\n\t],\n\t\"./ion-tab-bar_2-ios.entry.js\": [\n\t\t152,\n\t\t42\n\t],\n\t\"./ion-tab-bar_2-md.entry.js\": [\n\t\t153,\n\t\t43\n\t],\n\t\"./ion-tab_2.entry.js\": [\n\t\t154,\n\t\t44\n\t],\n\t\"./ion-text.entry.js\": [\n\t\t155,\n\t\t45\n\t],\n\t\"./ion-textarea-ios.entry.js\": [\n\t\t156,\n\t\t46\n\t],\n\t\"./ion-textarea-md.entry.js\": [\n\t\t157,\n\t\t47\n\t],\n\t\"./ion-toast-ios.entry.js\": [\n\t\t158,\n\t\t63\n\t],\n\t\"./ion-toast-md.entry.js\": [\n\t\t159,\n\t\t64\n\t],\n\t\"./ion-toggle-ios.entry.js\": [\n\t\t160,\n\t\t48\n\t],\n\t\"./ion-toggle-md.entry.js\": [\n\t\t161,\n\t\t49\n\t],\n\t\"./ion-virtual-scroll.entry.js\": [\n\t\t162,\n\t\t50\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function webpackAsyncContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackAsyncContext.id = 63;\nmodule.exports = webpackAsyncContext;","var map = {\n\t\"./ion-icon.entry.js\": [\n\t\t166,\n\t\t90\n\t]\n};\nfunction webpackAsyncContext(req) {\n\tif(!__webpack_require__.o(map, req)) {\n\t\treturn Promise.resolve().then(function() {\n\t\t\tvar e = new Error(\"Cannot find module '\" + req + \"'\");\n\t\t\te.code = 'MODULE_NOT_FOUND';\n\t\t\tthrow e;\n\t\t});\n\t}\n\n\tvar ids = map[req], id = ids[0];\n\treturn __webpack_require__.e(ids[1]).then(function() {\n\t\treturn __webpack_require__(id);\n\t});\n}\nwebpackAsyncContext.keys = function webpackAsyncContextKeys() {\n\treturn Object.keys(map);\n};\nwebpackAsyncContext.id = 65;\nmodule.exports = webpackAsyncContext;","import React from 'react';\nimport './ExploreContainer.css';\n\ninterface ContainerProps {\n name: string;\n}\n\nconst ExploreContainer: React.FC = ({ name }) => {\n return (\n
\n {name}\n

Explore UI Components

\n
\n );\n};\n\nexport default ExploreContainer;\n","import React from 'react';\nimport { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/react';\nimport ExploreContainer from '../components/ExploreContainer';\nimport './Tab1.css';\n\nconst Tab1: React.FC = () => {\n return (\n \n \n \n Tab 1\n \n \n \n \n \n Tab 1\n \n \n \n \n \n );\n};\n\nexport default Tab1;\n","import React from 'react';\nimport { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/react';\nimport ExploreContainer from '../components/ExploreContainer';\nimport './Tab2.css';\n\nconst Tab2: React.FC = () => {\n return (\n \n \n \n Tab 2\n \n \n \n \n \n Tab 2\n \n \n \n \n \n );\n};\n\nexport default Tab2;\n","import React from 'react';\nimport { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/react';\nimport ExploreContainer from '../components/ExploreContainer';\nimport './Tab3.css';\n\nconst Tab3: React.FC = () => {\n return (\n \n \n \n Tab 3\n \n \n \n \n \n Tab 3\n \n \n \n \n \n );\n};\n\nexport default Tab3;\n","import React from 'react';\nimport { Redirect, Route } from 'react-router-dom';\nimport {\n IonApp,\n IonIcon,\n IonLabel,\n IonRouterOutlet,\n IonTabBar,\n IonTabButton,\n IonTabs\n} from '@ionic/react';\nimport { IonReactRouter } from '@ionic/react-router';\nimport { ellipse, square, triangle } from 'ionicons/icons';\nimport Tab1 from './pages/Tab1';\nimport Tab2 from './pages/Tab2';\nimport Tab3 from './pages/Tab3';\n\n/* Core CSS required for Ionic components to work properly */\nimport '@ionic/react/css/core.css';\n\n/* Basic CSS for apps built with Ionic */\nimport '@ionic/react/css/normalize.css';\nimport '@ionic/react/css/structure.css';\nimport '@ionic/react/css/typography.css';\n\n/* Optional CSS utils that can be commented out */\nimport '@ionic/react/css/padding.css';\nimport '@ionic/react/css/float-elements.css';\nimport '@ionic/react/css/text-alignment.css';\nimport '@ionic/react/css/text-transformation.css';\nimport '@ionic/react/css/flex-utils.css';\nimport '@ionic/react/css/display.css';\n\n/* Theme variables */\nimport './theme/variables.css';\n\nconst App: React.FC = () => (\n \n \n \n \n \n \n \n } exact={true} />\n \n \n \n \n Tab 1\n \n \n \n Tab 2\n \n \n \n Tab 3\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://bit.ly/CRA-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(\n /^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/\n )\n);\n\ntype Config = {\n onSuccess?: (registration: ServiceWorkerRegistration) => void;\n onUpdate?: (registration: ServiceWorkerRegistration) => void;\n};\n\nexport function register(config?: 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(\n process.env.PUBLIC_URL,\n window.location.href\n );\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://bit.ly/CRA-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: string, config?: 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://bit.ly/CRA-PWA.'\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: string, config?: 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(\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.then(registration => {\n registration.unregister();\n });\n }\n}\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport App from './App';\nimport * as serviceWorker from './serviceWorker';\n\nReactDOM.render(, document.getElementById('root'));\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://bit.ly/CRA-PWA\nserviceWorker.unregister();\n"],"sourceRoot":""}