import{_ as s}from"./AbstraLogo.vue_vue_type_script_setup_true_lang-B6ccuaeQ.js";import{L as i}from"./CircularLoading-DQwa5T8S.js";import{e as c,H as d,Y as l,f as u,g as f,t as n,y as _,k as p,R as h,n as w,G as m,aq as g}from"./jwt-decode.esm-Bw7_fA5B.js";import{a as b}from"./router-CZr_q44o.js";import"./logo-BiWG9_W5.js";import"./Logo-DXEJHghK.js";import"./ts.worker-C335cFo8.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[a]="602050da-79f6-4d4b-b5b4-3d83af6d227a",t._sentryDebugIdIdentifier="sentry-dbid-602050da-79f6-4d4b-b5b4-3d83af6d227a")}catch{}})();const y=t=>{const a=new URLSearchParams(t.replace(/^#/,"")),e=a.get("jwt"),o=a.get("error"),r={};return e&&(r.jwt=e),o&&(r.error=o),r},k={class:"oauth-callback"},I={class:"message"},j=c({__name:"OAuthCallback",setup(t){const a=d();return l(async()=>{const{jwt:e,error:o}=y(window.location.hash);if(window.location.hash&&window.history.replaceState(null,"",window.location.pathname+window.location.search),o||!e){await a.push({name:"login",query:{error:o??"oidc_login_failed"}});return}if(!b.saveJWT(e)){await a.push({name:"login",query:{error:"oidc_login_failed"}});return}await a.push({path:"/"})}),(e,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-DiSaVuup.js.map
