\n );\n};\n\nexport default Html;","import React from 'react';\nimport { withRouter } from 'react-router-dom';\nimport {translate as _} from 'simple-dict-translator';\n\nimport Page from './Page';\nimport LargeTitle from '../Components/LargeTitle';\nimport ArrowButton from '../Components/Buttons/ArrowButton';\nimport Html from '../Components/Html';\n\n\nconst Intro = ({match: { params }, history}) => {\n return (\n \n
\n )}\n \n );\n};\n\nexport default withRouter(Article);\n","import React from 'react';\nimport { withRouter } from 'react-router-dom';\n\nimport Page from './Page';\n\nconst NotFound = ({match: { params }, history}) => {\n return (\n \n 404 - Page not found\n \n );\n};\n\nexport default withRouter(NotFound);\n","import React, {Fragment} from 'react';\nimport {\n MemoryRouter as Router,\n Route\n} from 'react-router-dom';\n\nimport TopAnimatedSwitch from './Routing/TopAnimatedSwitch';\nimport FadeAnimatedSwitch from './Routing/FadeAnimatedSwitch';\nimport ScrollToTop from './Routing/ScrollToTop';\nimport constants from './constants';\nimport Intro from './Containers/Intro';\nimport Artworks from './Containers/Artworks';\nimport Menu from './Containers/Menu';\nimport Artwork from './Containers/Artwork';\nimport Article from './Containers/Article';\nimport NotFound from './Containers/NotFound';\nimport withLocale from './Hoc/withLocale';\n\nconst App = (props) => {\n console.log(props);\n return (\n
\n );\n}\n\nexport default withLocale(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 en_us = {\n 'language_swe_shortname': 'SVE',\n 'language_en_shortname': 'ENG',\n 'menu': 'Menu',\n 'to_the_artwork': 'To the artwork',\n 'main_title': 'MATRIX',\n 'main_subtitle': 'By Ea ten Kate, Jonathan Josefsson and Valeria Montti Colque for the Musem of World Culture',\n 'intro_title': 'MATRIX',\n 'intro_subtitle': 'By Ea ten Kate, Jonathan Josefsson and Valeria Montti Colque for the Musem of World Culture',\n 'intro_content': 'Welcome to Matrix, a groundbreaking work of art on the ground!',\n 'banner_message': 'Click on the figures to find out more',\n 'artists_and': ' and ',\n 'by_artists': 'Artists:',\n 'by_artist': 'Artist:',\n 'about_figure': 'About the figure',\n 'about_objects': 'About the objects',\n 'references': 'Reference-id:',\n 'play_video': 'Play the video',\n 'play': 'Play',\n 'right_arrow': 'Right facing arrow',\n};\n\nexport default en_us;\n","import en_us from './en_us';\nimport sv_se from './sv_se';\n\nexport default {\n en_us,\n sv_se,\n}","const sv_se = {\n 'language_swe_shortname': 'SVE',\n 'language_en_shortname': 'ENG',\n 'menu': 'Meny',\n 'to_the_artwork': 'Till verket',\n 'main_title': 'MATRIX',\n 'main_subtitle': 'Av Ea ten Kate, Jonathan Josefsson och Valeria Montti Colque för Världskulturmuseet',\n 'intro_title': 'MATRIX',\n 'intro_subtitle': 'Av Ea ten Kate, Jonathan Josefsson och Valeria Montti Colque för Världskulturmuseet',\n 'intro_content': 'Välkommen till Matrix! Ett konstnärligt samarbetsprojekt där konstnärerna tillsammans utgått ifrån museets samlingar och teman. Här kan du upptäcka konstverket och läsa mer om berättelserna bakom. Välkommen till Matrix, ett konstverk på marken!',\n 'banner_message': 'Klicka på figurerna för att få veta mer',\n 'artists_and': ' och ',\n 'by_artists': 'Konstnärer:',\n 'by_artist': 'Konstnär:',\n 'about_figure': 'Om figuren',\n 'about_objects': 'Om föremålen',\n 'references': 'Referens-id:',\n 'play_video': 'Spela upp video',\n 'play': 'Spela',\n 'right_arrow': 'Pil mot höger',\n};\n\nexport default sv_se;\n","import React from 'react';\nimport ReactDOM from 'react-dom';\nimport './sass/main.scss';\nimport App from './app/App';\nimport constants from './app/constants';\nimport localeService from './app/Services/LocaleService';\nimport * as serviceWorker from './serviceWorker';\nimport translations from './translations';\n\nlocaleService.addTranslation(constants.LANGUAGE_ENGLISH, translations[constants.LANGUAGE_ENGLISH]);\nlocaleService.addTranslation(constants.LANGUAGE_SWEDISH, translations[constants.LANGUAGE_SWEDISH]);\n\nlocaleService.setCurrentLocale(constants.LANGUAGE_DEFAULT);\nlocaleService.setFallbackLocale(constants.LANGUAGE_FALLBACK);\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":""}