import{_ as h}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.f455d8d1.js";import{C as b}from"./ContentLayout.e23300ef.js";import{l as k}from"./fetch.ab879caf.js";import{d as w,e3 as g,e4 as v,f as C,c,w as s,o as i,b as f,a as x,u as d,d2 as _,az as m,Q as I}from"./index.1da01ec4.js";import{u as T,E as D}from"./editor.b53ff037.js";import{C as L}from"./Card.581a9016.js";import"./Logo.1cfd1a37.js";import"./userStore.ec835d25.js";import"./workspaceStore.baf18d3b.js";import"./runnerData.975fa800.js";import"./url.8f466486.js";import"./colorHelpers.14704dc2.js";import"./linters.6876b842.js";import"./asyncComputed.1e3f7518.js";import"./TabPane.21b14f9f.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="c3637aa1-de18-4baa-968c-50a74a5ec5a1",e._sentryDebugIdIdentifier="sentry-dbid-c3637aa1-de18-4baa-968c-50a74a5ec5a1")}catch{}})();const N={class:"card-content"},j=w({__name:"Welcome",setup(e){const t=g(),{query:n}=v(),o=T();o.loadLogin();const l=C(!0),u=async()=>{l.value=!1,setInterval(()=>{var a;return window.location.replace(((a=o==null?void 0:o.links)==null?void 0:a.project)||D.consoleUrl)},5e3)};return(async()=>{const a=n.token,r=n.redirect,p=await k("/_editor/auth/set-cookie",{method:"POST",body:JSON.stringify({token:a}),headers:{"Content-Type":"application/json"}});if(!p.ok)return u();const{ok:y}=await p.json();if(!y)return u();r?await t.push({path:r}):await t.push({name:"workspace"})})(),(a,r)=>(i(),c(b,null,{default:s(()=>[f(d(L),{bordered:!1,class:"card"},{default:s(()=>[x("div",N,[f(h,{style:{"margin-bottom":"10px"}}),l.value?(i(),c(d(_),{key:0},{default:s(()=>[m("Loading...")]),_:1})):(i(),c(d(_),{key:1},{default:s(()=>[m("Authentication failed. You are been redirected...")]),_:1}))])]),_:1})]),_:1}))}});const $=I(j,[["__scopeId","data-v-ba310460"]]);export{$ as default};
//# sourceMappingURL=Welcome.e20f48b7.js.map
