{"version":3,"sources":["App.tsx","reportWebVitals.ts","serviceWorker.ts","theme.ts","index.tsx"],"names":["App","react_default","a","createElement","center","stack","maxW","p","heading","as","size","esm_text","fontWeight","pt","href","reportWebVitals","onPerfEntry","Function","__webpack_require__","e","then","bind","_ref","getCLS","getFID","getFCP","getLCP","getTTFB","Boolean","window","location","hostname","match","theme","extendTheme","config","initialColorMode","colors","gray","100","200","300","400","500","700","800","900","withDefaultColorScheme","colorScheme","ReactDOM","render","react","chakra_provider","react_router_dom","esm","App_App","document","getElementById","navigator","serviceWorker","ready","registration","unregister","catch","error","console","message"],"mappings":"gOAGaA,EAAM,WACjB,OACEC,EAAAC,EAAAC,cAACC,EAAA,EAAD,KACEH,EAAAC,EAAAC,cAACE,EAAA,EAAD,CAAOC,KAAM,QAASC,EAAG,GACvBN,EAAAC,EAAAC,cAACK,EAAA,EAAD,uCACAP,EAAAC,EAAAC,cAACK,EAAA,EAAD,CAASC,GAAG,KAAKC,KAAK,KAAtB,wCAGAT,EAAAC,EAAAC,cAACQ,EAAA,EAAD,CAAMF,GAAG,IAAIG,WAAW,WAAWC,GAAG,KAAtC,WACW,IACTZ,EAAAC,EAAAC,cAAA,KAAGW,KAAK,wBACNb,EAAAC,EAAAC,cAAA,6BAHJ,wBAOAF,EAAAC,EAAAC,cAACQ,EAAA,EAAD,kLAKAV,EAAAC,EAAAC,cAACQ,EAAA,EAAD,iLCTOI,EAZS,SAACC,GACnBA,GAAeA,aAAuBC,UACxCC,EAAAC,EAAA,GAAAC,KAAAF,EAAAG,KAAA,WAAqBD,KAAK,SAAAE,GAAiD,IAA9CC,EAA8CD,EAA9CC,OAAQC,EAAsCF,EAAtCE,OAAQC,EAA8BH,EAA9BG,OAAQC,EAAsBJ,EAAtBI,OAAQC,EAAcL,EAAdK,QAC3DJ,EAAOP,GACPQ,EAAOR,GACPS,EAAOT,GACPU,EAAOV,GACPW,EAAQX,MCGMY,QACW,cAA7BC,OAAOC,SAASC,UAEe,UAA7BF,OAAOC,SAASC,UAEhBF,OAAOC,SAASC,SAASC,MACvB,gFCKSC,EArBDC,YACZ,CACEC,OAAQ,CACNC,iBAAkB,QAEpBC,OAAQ,CACNC,KAAM,CACJC,IAAK,UACLC,IAAK,UACLC,IAAK,UACLC,IAAK,UACLC,IAAK,UACLC,IAAK,UACLC,IAAK,UACLC,IAAK,aAIXC,YAAuB,CAAEC,YAAa,kBCXxCC,IAASC,OACPC,EAAA,cAACA,EAAA,WAAD,KACEA,EAAA,cAACC,EAAA,EAAD,CAAgBnB,MAAOA,GACrBkB,EAAA,cAACE,EAAA,EAAD,KACEF,EAAA,cAACG,EAAA,gBAAD,MACAH,EAAA,cAACI,EAAD,SAINC,SAASC,eAAe,SFsHpB,kBAAmBC,WACrBA,UAAUC,cAAcC,MACrBxC,KAAK,SAACyC,GACLA,EAAaC,eAEdC,MAAM,SAACC,GACNC,QAAQD,MAAMA,EAAME,WElH5BnD","file":"static/js/main.dc342745.chunk.js","sourcesContent":["import { Center, Heading, Stack, Text } from \"@chakra-ui/layout\";\nimport React from \"react\";\n\nexport const App = () => {\n return (\n
\n \n Gratulerer med konfirmasjonen!\n \n ..og kondolerer, du er snart voksen.\n \n \n Dette er{\" \"}\n \n rolsen33.com\n \n , din egen nettside!\n \n \n Den er kanskje ikke den mest fancy nettsiden akkurat nå, men tanken er\n at vi kan jobbe med den sammen for å lære litt om nettsider og\n programmering 🤓\n \n \n Nå som du snart er voksen, er det også på sin plass at du får et par\n ordentlige voksen-underbukser, som er designet for aktive og raske\n bois ⚡️\n \n \n
\n );\n};\n","import { ReportHandler } from 'web-vitals';\n\nconst reportWebVitals = (onPerfEntry?: ReportHandler) => {\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// 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(\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(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: 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://cra.link/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 is 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\n .then((registration) => {\n registration.unregister();\n })\n .catch((error) => {\n console.error(error.message);\n });\n }\n}\n","import { extendTheme, withDefaultColorScheme } from '@chakra-ui/react';\n\nconst theme = extendTheme(\n {\n config: {\n initialColorMode: 'dark',\n },\n colors: {\n gray: {\n 100: '#fafafa',\n 200: '#eeeeee',\n 300: '#e0e0e0',\n 400: '#bdbdbd',\n 500: '#9e9e9e',\n 700: '#424242',\n 800: '#212121',\n 900: '#1a1a1a',\n },\n },\n },\n withDefaultColorScheme({ colorScheme: 'gray' })\n);\n\nexport default theme;\n","import { ChakraProvider, ColorModeScript } from \"@chakra-ui/react\";\nimport * as React from \"react\";\nimport ReactDOM from \"react-dom\";\nimport { App } from \"./App\";\nimport reportWebVitals from \"./reportWebVitals\";\nimport * as serviceWorker from \"./serviceWorker\";\nimport theme from \"./theme\";\nimport { BrowserRouter } from \"react-router-dom\";\n\nReactDOM.render(\n \n \n \n \n \n \n \n ,\n 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://cra.link/PWA\nserviceWorker.unregister();\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":""}