{"version":3,"file":"Auth.vue.mjs","sources":["../../lib/auth/Auth.vue"],"sourcesContent":["<template>\n    <div></div>\n</template>\n  \n<script>\n  export default {\n    name: 'Auth',\n    methods: {\n        login() {\n            this.$keycloak.loginFn({ redirectUri: this.loginRedirect });\n        },\n        logout() {\n            this.$keycloak.logoutFn({ redirectUri: this.logoutRedirect });\n        },\n    },\n    computed: {\n        loginRedirect() {\n            return this.$env.authentication.login.loginRedirectUri\n                ? `${window.location.origin}${this.$env.authentication.login.loginRedirectUri}${window.location.search}`\n                : `${window.location.href}`\n        },\n        logoutRedirect() {\n            return this.$env.authentication.login.logoutRedirectUri\n                ? `${window.location.origin}${this.$env.authentication.login.logoutRedirectUri}${window.location.search}`\n                : `${window.location.href}`\n        },\n    },\n    created() {\n        if (this.$route.name === 'Login' && !this.$keycloak.authenticated) this.login();\n        if (this.$route.name === 'Logout') this.logout();\n    },\n  };\n</script>\n  "],"names":["_sfc_main","_createElementBlock"],"mappings":";;AAKE,MAAKA,IAAU;AAAA,EACb,MAAM;AAAA,EACN,SAAS;AAAA,IACL,QAAQ;AACJ,WAAK,UAAU,QAAQ,EAAE,aAAa,KAAK,cAAc,CAAC;AAAA,IAC7D;AAAA,IACD,SAAS;AACL,WAAK,UAAU,SAAS,EAAE,aAAa,KAAK,eAAe,CAAC;AAAA,IAC/D;AAAA,EACJ;AAAA,EACD,UAAU;AAAA,IACN,gBAAgB;AACZ,aAAO,KAAK,KAAK,eAAe,MAAM,mBAChC,GAAG,OAAO,SAAS,MAAM,GAAG,KAAK,KAAK,eAAe,MAAM,gBAAgB,GAAG,OAAO,SAAS,MAAM,KACpG,GAAG,OAAO,SAAS,IAAI;AAAA,IAChC;AAAA,IACD,iBAAiB;AACb,aAAO,KAAK,KAAK,eAAe,MAAM,oBAChC,GAAG,OAAO,SAAS,MAAM,GAAG,KAAK,KAAK,eAAe,MAAM,iBAAiB,GAAG,OAAO,SAAS,MAAM,KACrG,GAAG,OAAO,SAAS,IAAI;AAAA,IAChC;AAAA,EACJ;AAAA,EACD,UAAU;AACN,IAAI,KAAK,OAAO,SAAS,WAAW,CAAC,KAAK,UAAU,iBAAe,KAAK,SACpE,KAAK,OAAO,SAAS,YAAU,KAAK;EAC3C;;;cA7BDC,EAAW,KAAA;;;"}