import{_ as b}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.195a3362.js";import{C as h}from"./ContentLayout.54591057.js";import{l as k}from"./fetch.ec97f090.js";import{d as w,e3 as g,e4 as v,f as C,c as i,w as s,o as c,b as f,a as x,u as d,d2 as _,az as m,Q as I}from"./index.46377be8.js";import{u as T,E as D}from"./editor.cee7dc8d.js";import{C as L}from"./Card.6911b926.js";import"./Logo.4d31aa3d.js";import"./userStore.f42f02ab.js";import"./workspaceStore.8f060237.js";import"./runnerData.5c45cdc1.js";import"./url.ad55f26c.js";import"./colorHelpers.eff3b20c.js";import"./linters.7cec0f30.js";import"./asyncComputed.4c162cf6.js";import"./TabPane.e3e81391.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]="ab0f9eab-7d4a-4e54-86e0-4a9424416c84",e._sentryDebugIdIdentifier="sentry-dbid-ab0f9eab-7d4a-4e54-86e0-4a9424416c84")}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)=>(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 $=I(j,[["__scopeId","data-v-ba310460"]]);export{$ as default};
//# sourceMappingURL=Welcome.fc3a4d3e.js.map
