{"version":3,"file":"index-3cd0029a.js","sources":["../../../app/js/store.js","../../../app/js/i18n.js","../../../app/assets/logo.png","../../../app/js/App.vue","../../../app/js/components/Button.vue","../../../app/js/places.js","../../../app/js/supportedCountries.js","../../../app/js/views/Home.vue","../../../app/js/views/Finished.vue","../../../app/js/index.js"],"sourcesContent":["import { createPinia } from \"pinia\";\r\nimport piniaPluginPersistedstate from \"pinia-plugin-persistedstate\";\r\n\r\nconst pinia = createPinia();\r\npinia.use(piniaPluginPersistedstate);\r\n\r\nexport default pinia;","import { createI18n } from \"vue-i18n\";\r\nimport axios from \"axios\";\r\nimport en from \"../locales/en.json\";\r\nimport de from \"../locales/de.json\";\r\nimport nl from \"../locales/nl.json\";\r\n\r\nexport const SUPPORT_LOCALES = [\"en\", \"nl\", \"de\"];\r\n\r\nexport function setupI18n(\r\n options = { locale: \"en\", allowComposition: true, warnHtmlInMessage: \"off\" }\r\n) {\r\n const locale = localStorage.getItem(\"locale\" || \"en\");\r\n\r\n const i18n = createI18n({\r\n legacy: false,\r\n locale,\r\n fallbackLocale: \"en\",\r\n messages: {\r\n en,\r\n de,\r\n nl,\r\n },\r\n });\r\n\r\n setI18nLanguage(i18n, locale);\r\n\r\n return i18n;\r\n}\r\n\r\n\r\nexport function setI18nLanguage(i18n, locale) {\r\n if (i18n.mode === \"legacy\") {\r\n i18n.global.locale = locale;\r\n } else if (i18n.global) {\r\n i18n.global.locale.value = locale;\r\n } else {\r\n i18n.locale = locale;\r\n }\r\n axios.defaults.headers.common[\"Accept-Language\"] = locale;\r\n\r\n localStorage.setItem(\"locale\", locale);\r\n\r\n document.querySelector(\"html\").setAttribute(\"lang\", locale);\r\n}\r\n","export default \"__VITE_ASSET__ab211233__\"","\r\n