import{_ as s}from"./AbstraLogo.vue_vue_type_script_setup_true_lang-CPoq8QfW.js";import{L as i}from"./CircularLoading-BC1f3vav.js";import{e as c,N as d,n as l,f as u,g as f,v as n,x as _,k as p,U as h,s as w,K as m,as as b}from"./jwt-decode.esm-TBTnMpAQ.js";import{a as g}from"./router-D3FyrFLh.js";import"./logo-BiWG9_W5.js";import"./Logo-DSVZcRye.js";import"./ts.worker-9cx-N_QF.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="20a0f646-81a4-4b4e-bb51-d2b6e4e24a59",e._sentryDebugIdIdentifier="sentry-dbid-20a0f646-81a4-4b4e-bb51-d2b6e4e24a59")}catch{}})();const y=e=>{const a=new URLSearchParams(e.replace(/^#/,"")),t=a.get("jwt"),o=a.get("error"),r={};return t&&(r.jwt=t),o&&(r.error=o),r},k={class:"oauth-callback"},I={class:"message"},v=c({__name:"OAuthCallback",setup(e){const a=d();return l(async()=>{const{jwt:t,error:o}=y(window.location.hash);if(window.location.hash&&window.history.replaceState(null,"",window.location.pathname+window.location.search),o||!t){await a.push({name:"login",query:{error:o??"oidc_login_failed"}});return}if(!g.saveJWT(t)){await a.push({name:"login",query:{error:"oidc_login_failed"}});return}await a.push({path:"/"})}),(t,o)=>(f(),u("div",k,[n(s,{"hide-text":"",size:"large"}),n(i,{direction:"column",justify:"center"},{default:_(()=>[p("span",I,h(w(m).translate("i18n_auth_authenticating")),1)]),_:1})]))}}),S=b(v,[["__scopeId","data-v-dcad4324"]]);export{S as default};
//# sourceMappingURL=OAuthCallback-6xsk22nq.js.map
