import{_ as b}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.ed35f1dd.js";import{C as h}from"./ContentLayout.24733df3.js";import{l as k}from"./fetch.80dabd02.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.6b1213c6.js";import{u as T,E as D}from"./editor.3928d6cb.js";import{C as L}from"./Card.e2c03a6d.js";import"./Logo.be00950c.js";import"./userStore.c0cb42b5.js";import"./workspaceStore.436b122e.js";import"./runnerData.f49521d9.js";import"./url.16d95866.js";import"./colorHelpers.59418473.js";import"./linters.caf56568.js";import"./asyncComputed.fe6ca61b.js";import"./TabPane.49a7fa43.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]="4f8670d6-6555-4c2b-bc2d-ae91a44835b0",e._sentryDebugIdIdentifier="sentry-dbid-4f8670d6-6555-4c2b-bc2d-ae91a44835b0")}catch{}})();const N={class:"card-content"},j=w({__name:"Welcome",setup(e){const t=g(),{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 k("/_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:"workspace"})})(),(o,r)=>(i(),c(h,null,{default:s(()=>[f(d(L),{bordered:!1,class:"card"},{default:s(()=>[x("div",N,[f(b,{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.305c6e57.js.map
