{"version":3,"sources":["webpack:///./src/views/auth/Logout.vue?84de","webpack:///./src/views/auth/Logout.vue","webpack:///./src/views/auth/Logout.vue?7215","webpack:///./src/views/auth/Logout.vue?33a4"],"names":["render","_vm","this","_h","$createElement","_self","_c","_m","staticRenderFns","staticClass","_v","Component","name","setup","props","vm","w","window","logoutRedirect","undefined","Error","logout","dispatch","location","href","origin","component"],"mappings":"yHAAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAsBH,EAAII,MAAMC,GAAO,OAAOL,EAAIM,GAAG,IACnGC,EAAkB,CAAC,WAAa,IAAIP,EAAIC,KAASC,EAAGF,EAAIG,eAAmBE,EAAGL,EAAII,MAAMC,IAAIH,EAAG,OAAOG,EAAG,MAAM,CAACA,EAAG,KAAK,CAACG,YAAY,2BAA2B,CAACR,EAAIS,GAAG,eAAeJ,EAAG,IAAI,CAACL,EAAIS,GAAG,oD,oECapMC,EAAY,eAAgB,CAChCC,KAAM,SACNC,MAFgC,SAE1BC,EAAOC,GAEX,IAAMC,EAAoBC,QAAU,GACpC,GAAyB,OAArBD,EAAEE,qBAAgDC,IAArBH,EAAEE,eACjC,MAAM,IAAIE,MAAM,wBAJL,SAOEC,IAPF,6FAOb,8FACE,IACE,OAAMC,SAAS,eADjB,QAIEL,OAAOM,SAASC,KAAhB,UAA0BP,OAAOM,SAASE,OAA1C,YAAoDT,EAAEE,gBAL1D,2CAPa,wBAgBb,gBAAU,WACRG,UAKS,ICtCoY,I,YCO/YK,EAAY,eACd,EACA1B,EACAQ,GACA,EACA,KACA,KACA,MAIa,aAAAkB,E","file":"js/chunk-2d0db312.js","sourcesContent":["var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _vm._m(0)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('h1',{staticClass:\"title--preset-1 spacing\"},[_vm._v(\"Uitloggen\")]),_c('p',[_vm._v(\"U wordt uitgelogd een moment geduld aub...\")])])}]\n\nexport { render, staticRenderFns }","\n\n\n\n\n\n\n\r\nimport { defineComponent, onMounted } from \"@vue/composition-api\";\r\nimport Store from \"@/store\";\r\n// eslint-disable-next-line no-undef\r\ninterface ExtendedWindow extends Window {\r\n logoutRedirect?: string;\r\n}\r\nconst Component = defineComponent({\r\n name: \"Logout\",\r\n setup(props, vm) {\r\n // eslint-disable-next-line no-undef\r\n const w: ExtendedWindow = window || {};\r\n if (w.logoutRedirect === null || w.logoutRedirect === undefined) {\r\n throw new Error(\"Not all Urls are set\");\r\n }\r\n\r\n async function logout() {\r\n try {\r\n Store.dispatch(\"Auth/logOut\");\r\n } finally {\r\n // eslint-disable-next-line no-undef\r\n window.location.href = `${window.location.origin}/${w.logoutRedirect}`;\r\n }\r\n }\r\n\r\n onMounted(() => {\r\n logout();\r\n });\r\n },\r\n});\r\n\r\nexport default Component;\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Logout.vue?vue&type=script&lang=ts&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--15-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/ts-loader/index.js??ref--15-3!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./Logout.vue?vue&type=script&lang=ts&\"","import { render, staticRenderFns } from \"./Logout.vue?vue&type=template&id=7769334b&\"\nimport script from \"./Logout.vue?vue&type=script&lang=ts&\"\nexport * from \"./Logout.vue?vue&type=script&lang=ts&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}