{"version":3,"sources":["i18n/i18n.ts","App.tsx","serviceWorker.ts","index.tsx","aws-exports.js"],"names":["i18n","i18next","use","initReactI18next","HttpApi","LanguageDetector","init","debug","process","detection","lookupLocalStorage","ns","defaultNS","fallbackLng","preload","interpolation","escapeValue","backend","loadPath","allowMultiLoading","Routing","React","lazy","a","Loader","Container","fluid","App","useState","i18nValue","setI18nValue","useEffect","loreei18n","then","i","catch","e","Error","I18nextProvider","fallback","Boolean","window","location","hostname","match","Amplify","configure","awsExports","API","graphql_endpoint","graphql_headers","Auth","currentSession","session","Authorization","getIdToken","getJwtToken","ReactDOM","render","StrictMode","document","getElementById","navigator","serviceWorker","ready","registration","unregister","error","console","message","awsmobile"],"mappings":"8QA4BeA,EAvBFC,IACVC,IAAIC,KACJD,IAAIE,KACJF,IAAIG,KACJC,KAAK,CACJC,OAAOC,EACPC,UAAW,CACTC,mBAAoB,YAEtBC,GAAI,CAAC,QAAS,QACdC,UAAW,QACXC,YAAa,KACbC,QAAS,CAAC,MACVC,cAAe,CACbC,aAAa,GAGfC,QAAS,CACPC,SAAU,+BACVC,mBAAmB,K,0BCjBnBC,EAAUC,IAAMC,KAAN,sBAAW,sBAAAC,EAAA,sEAAkB,qDAAlB,oFAE3B,SAASC,IACP,OAAO,cAACC,EAAA,EAAD,CAAWC,OAAK,IA+BVC,MA5Bf,WAAgB,IAAD,EACqBC,mBAAsB,MAD3C,mBACNC,EADM,KACKC,EADL,KAab,OAVAC,qBAAU,WACRC,EACGC,MAAK,SAACC,GACLJ,EAAaI,MAEdC,OAAM,SAACC,GACN,MAAM,IAAIC,MAAMD,QAEnB,IAEe,OAAdP,EACK,cAACL,EAAD,IAIP,mCACE,cAACc,EAAA,EAAD,CAAiBtC,KAAM6B,EAAvB,SACE,cAAC,WAAD,CAAUU,SAAU,cAACf,EAAD,IAApB,SACE,cAACJ,EAAD,WCtBUoB,QACW,cAA7BC,OAAOC,SAASC,UAEe,UAA7BF,OAAOC,SAASC,UAEhBF,OAAOC,SAASC,SAASC,MAAM,2D,4BCVnCC,UAAQC,UAAUC,KAElBF,UAAQC,UAAU,CAChBE,IAAK,CACHC,iBAAkBzC,kDAClB0C,gBAAgB,WAAD,4BAAE,4BAAA3B,EAAA,sEACO4B,IAAKC,iBADZ,cACTC,EADS,yBAER,CACLC,cAAeD,EAAQE,aAAaC,gBAHvB,2CAAF,kDAAC,MASpBC,IAASC,OACP,cAAC,IAAMC,WAAP,UACE,cAAC,EAAD,MAEFC,SAASC,eAAe,SDwGpB,kBAAmBC,WACrBA,UAAUC,cAAcC,MACrB/B,MAAK,SAACgC,GACLA,EAAaC,gBAEd/B,OAAM,SAACgC,GACNC,QAAQD,MAAMA,EAAME,a,gCE3FbC,IAzCG,CACd,mBAAsB,YACtB,uBAA0B,CACtB,CACI,KAAQ,cACR,SAAY,gEACZ,OAAU,cAGlB,4BAA+B,iFAC/B,mBAAsB,YACtB,+BAAkC,4BAClC,6BAAgC,iDAChC,mBAAsB,YACtB,kBAAqB,sBACrB,6BAAgC,6BAChC,MAAS,GACT,gCAAmC,CAC/B,SAEJ,6BAAgC,GAChC,8BAAiC,CAC7B,QACA,QAEJ,8BAAiC,MACjC,sBAAyB,CACrB,OAEJ,yCAA4C,CACxC,wBAA2B,EAC3B,yBAA4B,IAEhC,oCAAuC,CACnC,SAEJ,yBAA4B,8DAC5B,gCAAmC,e","file":"static/js/main.8dff47d2.chunk.js","sourcesContent":["import i18next from 'i18next';\nimport LanguageDetector from 'i18next-browser-languagedetector';\nimport { initReactI18next } from 'react-i18next';\nimport HttpApi from 'i18next-http-backend';\n\nconst i18n = i18next\n .use(initReactI18next)\n .use(HttpApi)\n .use(LanguageDetector)\n .init({\n debug: process.env.REACT_APP_LOREE_ENV === 'develop',\n detection: {\n lookupLocalStorage: 'loreeLng',\n },\n ns: ['loree', 'a11y'],\n defaultNS: 'loree',\n fallbackLng: 'en',\n preload: ['en'],\n interpolation: {\n escapeValue: false, // not needed for react!!\n },\n\n backend: {\n loadPath: '/locales/{{lng}}/{{ns}}.json',\n allowMultiLoading: false,\n },\n });\n\nexport default i18n;\n","import React, { Suspense, useEffect, useState } from 'react';\nimport { i18n } from 'i18next';\nimport { I18nextProvider } from 'react-i18next';\nimport loreei18n from './i18n/i18n';\nimport './assets/stylesheets/App.scss';\nimport { Container } from 'react-bootstrap';\n\nconst Routing = React.lazy(async () => await import('./router/Router'));\n\nfunction Loader() {\n return ;\n}\n\nfunction App() {\n const [i18nValue, setI18nValue] = useState(null);\n\n useEffect(() => {\n loreei18n\n .then((i) => {\n setI18nValue(i);\n })\n .catch((e) => {\n throw new Error(e);\n });\n }, []);\n\n if (i18nValue === null) {\n return ;\n }\n\n return (\n <>\n \n }>\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(/^127(?:\\.(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)){3}$/),\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(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://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 (response.status === 404 || (contentType != null && contentType.indexOf('javascript') === -1)) {\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","/* eslint-disable @typescript-eslint/naming-convention */\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport App from './App';\nimport * as serviceWorker from './serviceWorker';\nimport Amplify, { Auth } from 'aws-amplify';\nimport awsExports from './aws-exports';\nAmplify.configure(awsExports);\n\nAmplify.configure({\n API: {\n graphql_endpoint: process.env.REACT_APP_QUERY_DOMAIN,\n graphql_headers: async () => {\n const session = await Auth.currentSession();\n return {\n Authorization: session.getIdToken().getJwtToken(),\n };\n },\n },\n});\n\nReactDOM.render(\n \n \n ,\n document.getElementById('root'),\n);\n\nserviceWorker.unregister();\n","/* eslint-disable */\n// WARNING: DO NOT EDIT. This file is automatically generated by AWS Amplify. It will be overwritten.\n\nconst awsmobile = {\n \"aws_project_region\": \"us-east-2\",\n \"aws_cloud_logic_custom\": [\n {\n \"name\": \"loreeltiapi\",\n \"endpoint\": \"https://s1vplevcfc.execute-api.us-east-2.amazonaws.com/master\",\n \"region\": \"us-east-2\"\n }\n ],\n \"aws_appsync_graphqlEndpoint\": \"https://lqwnpbebdzavhcc2ypuoxpjdoe.appsync-api.us-east-2.amazonaws.com/graphql\",\n \"aws_appsync_region\": \"us-east-2\",\n \"aws_appsync_authenticationType\": \"AMAZON_COGNITO_USER_POOLS\",\n \"aws_cognito_identity_pool_id\": \"us-east-2:f77b57cd-5bff-4a2a-82fb-3ade8ad98da3\",\n \"aws_cognito_region\": \"us-east-2\",\n \"aws_user_pools_id\": \"us-east-2_qvwkmdYPM\",\n \"aws_user_pools_web_client_id\": \"35cesrd5f3kgbbnbjdk63ai6u3\",\n \"oauth\": {},\n \"aws_cognito_username_attributes\": [\n \"EMAIL\"\n ],\n \"aws_cognito_social_providers\": [],\n \"aws_cognito_signup_attributes\": [\n \"EMAIL\",\n \"NAME\"\n ],\n \"aws_cognito_mfa_configuration\": \"OFF\",\n \"aws_cognito_mfa_types\": [\n \"SMS\"\n ],\n \"aws_cognito_password_protection_settings\": {\n \"passwordPolicyMinLength\": 8,\n \"passwordPolicyCharacters\": []\n },\n \"aws_cognito_verification_mechanisms\": [\n \"EMAIL\"\n ],\n \"aws_user_files_s3_bucket\": \"loreev2storage24cd6295054c4df4b5661676008c768e111250-master\",\n \"aws_user_files_s3_bucket_region\": \"us-east-2\"\n};\n\n\nexport default awsmobile;\n"],"sourceRoot":""}