import{_ as s}from"./AbstraLogo.vue_vue_type_script_setup_true_lang-BAw03oS4.js";import{L as i}from"./CircularLoading-BM6NYRgA.js";import{e as c,H as d,Z as l,f as u,g as f,w as n,B as p,k as _,R as h,p as w,l as m,aq as g}from"./jwt-decode.esm-cMnpfgdw.js";import{a as y}from"./router-D_ihKcxX.js";import"./logo-BiWG9_W5.js";import"./Logo-DJdEFC-4.js";import"./ts.worker-T_DnATf9.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new Error().stack;e&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[e]="13e58e7e-f8e6-477e-b799-650f19d39d10",a._sentryDebugIdIdentifier="sentry-dbid-13e58e7e-f8e6-477e-b799-650f19d39d10")}catch{}})();const b=a=>{const e=new URLSearchParams(a.replace(/^#/,"")),t=e.get("jwt"),o=e.get("error"),r={};return t&&(r.jwt=t),o&&(r.error=o),r},k={class:"oauth-callback"},I={class:"message"},j=c({__name:"OAuthCallback",setup(a){const e=d();return l(async()=>{const{jwt:t,error:o}=b(window.location.hash);if(window.location.hash&&window.history.replaceState(null,"",window.location.pathname+window.location.search),o||!t){await e.push({name:"login",query:{error:o??"oidc_login_failed"}});return}if(!y.saveJWT(t)){await e.push({name:"login",query:{error:"oidc_login_failed"}});return}await e.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})]))}}),R=g(j,[["__scopeId","data-v-dcad4324"]]);export{R as default};
//# sourceMappingURL=OAuthCallback-3_7wt1y_.js.map
