import{_ as b}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.03625e6e.js";import{C as h}from"./ContentLayout.07f02227.js";import{l as g}from"./fetch.075da246.js";import{d as k,e4 as w,ec as v,r as C,a as i,b as s,o as c,f,e as x,u as d,T as _,g as m,_ as I}from"./jwt-decode.esm.9a8c48e0.js";import{u as T,E as D}from"./editor.fa93a97e.js";import{C as L}from"./Card.ba30a3db.js";import"./Logo.f1fdf1b2.js";import"./userStore.1333dd7d.js";import"./linters.81ad1a94.js";import"./asyncComputed.2fb09f37.js";import"./workspaceStore.b955b0a2.js";import"./runnerData.135ba9ac.js";import"./url.143ffc6e.js";import"./colorHelpers.cae3a29f.js";import"./constants.4217f4ed.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]="67c5d48c-886a-495b-ab89-45e62364d84a",e._sentryDebugIdIdentifier="sentry-dbid-67c5d48c-886a-495b-ab89-45e62364d84a")}catch{}})();const N={class:"card-content"},j=k({__name:"Welcome",setup(e){const t=w(),{query:n}=v(),a=T();a.loadLogin();const l=C(!0),u=async()=>{l.value=!1,setInterval(()=>{var o;return window.location.replace(((o=a==null?void 0:a.links)==null?void 0:o.project)||D.consoleUrl)},5e3)};return(async()=>{const o=n.token,r=n.redirect,p=await g("/_editor/auth/set-cookie",{method:"POST",body:JSON.stringify({token:o}),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:"editor"})})(),(o,r)=>(c(),i(h,null,{default:s(()=>[f(d(L),{bordered:!1,class:"card"},{default:s(()=>[x("div",N,[f(b,{style:{"margin-bottom":"10px"}}),l.value?(c(),i(d(_),{key:0},{default:s(()=>[m("Loading...")]),_:1})):(c(),i(d(_),{key:1},{default:s(()=>[m("Authentication failed. You are been redirected...")]),_:1}))])]),_:1})]),_:1}))}});const G=I(j,[["__scopeId","data-v-70d5febb"]]);export{G as default};
//# sourceMappingURL=Welcome.548c5603.js.map
