\n Loading...}>\n \n \n \n {PublicRoutes}\n {PrivateRoutes}\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(\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 '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, 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, 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\n .then(registration => {\n registration.unregister()\n })\n .catch(error => {\n console.error(error.message)\n })\n }\n}\n","const colors = {\n primary: \"#FFFFFF\",\n primaryHover: \"#4fc126\",\n secondary: \"#E1E1E1\",\n secondaryHover: \"purple\",\n dark: \"#3B3B3B\",\n highlight: \"#FF2A42\",\n white: \"white\",\n black: \"black\",\n backgroundOutside: \"#FAFAFA\",\n};\n\nexport default colors;\n","import colors from './color'\n\nexport const theme = {\n colors,\n fontSizes: [\n '0.7rem',\n '0.8rem',\n '0.9rem',\n '1rem',\n '1.1rem',\n '1.2rem',\n '1.5rem',\n '1.7rem',\n '2rem'\n ],\n borders: [\n 0,\n '1px solid',\n '2px solid',\n '3px solid',\n '4px solid',\n '5px solid',\n '6px solid'\n ],\n lineHeights: [1, 1.25, 1.5],\n radius: [3, 4, 5, 6, '50%'],\n maxWidths: [320, 500, 768, 1024, 1200, 1536],\n paddings: ['1rem', '2rem', '3rem', '3.5rem'],\n spaces: ['0.5rem', '0.7rem', '1rem', '1.5rem', '2rem'],\n buttons: {\n primary: {\n color: colors.white,\n backgroundColor: colors.primary,\n border: 'none',\n '&:hover': {\n color: colors.white,\n backgroundColor: colors.primaryHover\n },\n '&:focus': {\n color: colors.white,\n backgroundColor: colors.primary,\n border: colors.primary\n }\n },\n secondary: {\n color: colors.primary,\n backgroundColor: colors.white,\n border: 'none',\n '&:hover': {\n color: colors.white,\n backgroundColor: colors.primary\n },\n '&:focus': {\n color: colors.white,\n backgroundColor: colors.primary,\n border: colors.primary\n }\n }\n }\n}\n","import { createGlobalStyle } from \"styled-components\";\nimport \"antd/dist/antd.css\";\nimport { themeGet } from \"@styled-system/theme-get\";\n\nconst GlobalStyle = createGlobalStyle`\n* {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\nbody {\n margin: 0;\n padding: 0;\n /* font-family: -apple-system, BlinkMacSystemFont, 'Open Sans', 'Segoe UI',\n 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',\n 'Helvetica Neue', sans-serif; */\n font-family: 'Roboto', sans-serif;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\ncode {\n font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',\n monospace;\n}\n\n.ant-tabs {\n transition-duration: 0s !important;\n}\n\n.ant-tabs-tab-active {\n background: ${themeGet(\"colors.primary\")} !important;\n color:${themeGet(\"colors.white\")} !important;\n}\n\n.ant-tabs-tab {\n width: 100px;\n}\n\n.ant-tabs-tab-active .ant-tabs-tab-btn,\n.ant-tabs-tab-btn:focus {\n color: ${themeGet(\"colors.white\")} !important;\n}\n\n.ant-tabs-tab-btn {\n font-size: 1rem;\n font-weight: 500;\n margin: auto;\n}\n\n.ant-tabs-tab:hover {\n color: ${themeGet(\"colors.primary\")} !important;\n}\nbody {\n /* font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen,\n Ubuntu, Cantarell, Fira Sans, Droid Sans, Helvetica Neue, sans-serif; */\n}\n\n`;\n\nexport default GlobalStyle;\n","import React, { useState } from \"react\";\nimport styles from \"./styled.module.scss\";\nimport { Link } from \"react-router-dom\";\nimport \"../Slide.css\";\nimport { Col, Row } from \"antd\";\n\nconst Header = () => {\n const [isActive, setActive] = useState(null);\n const ClickMenu = () => {\n isActive ? setActive(false) : setActive(true);\n };\n\n const CloseMenu = () => {\n setActive(null);\n };\n return (\n <>\n \n
\n \n \n >\n );\n};\nexport default Header;\n","import \"react-app-polyfill/ie11\";\nimport \"react-app-polyfill/stable\";\n\nimport React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { BrowserRouter } from \"react-router-dom\";\nimport { ThemeProvider } from \"styled-components\";\nimport {\n ApolloClient,\n InMemoryCache,\n ApolloProvider,\n createHttpLink,\n} from \"@apollo/client\";\nimport { setContext } from \"@apollo/client/link/context\";\n\nimport App from \"./App\";\nimport * as serviceWorker from \"./serviceWorker\";\nimport { theme } from \"./theme/theme\";\nimport \"antd/dist/antd.css\";\nimport GlobalStyle from \"./theme/globalStyle\";\nimport Header from \"./containers/Layout/Header\";\nimport ReactGA from \"react-ga4\";\n\nReactGA.initialize(\"G-JC7HZZCPBL\");\n\nconst httpLink = createHttpLink({\n // eslint-disable-next-line no-undef\n uri: process.env.REACT_APP_API_URL,\n});\n\nconst authLink = setContext((_, { headers }) => {\n const token = localStorage.getItem(\"token\");\n return {\n headers: {\n ...headers,\n authorization: token ? `Bearer ${token}` : \"\",\n },\n };\n});\n\nconst client = new ApolloClient({\n cache: new InMemoryCache(),\n link: authLink.concat(httpLink),\n headers: {\n authorization: localStorage.getItem(\"token\") || \"\",\n },\n});\n\nReactDOM.render(\n \n \n \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://bit.ly/CRA-PWA\nserviceWorker.unregister();\n"],"sourceRoot":""}