import{_ as y}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.0f0f172d.js";import{C as h}from"./ContentLayout.02f12831.js";import{l as w}from"./fetch.6614bd02.js";import{d as b,eA as g,ea as k,e as v,o as r,c,w as n,b as f,a as C,u as d,d9 as p,aG as _,a0 as x}from"./index.5572dd7e.js";import{u as I,E as T}from"./editor.c2555793.js";import{C as A}from"./Card.d430f4bc.js";import"./Logo.70a49b64.js";import"./workspaceStore.911f36b5.js";import"./url.d80febd7.js";import"./colorHelpers.b1f37418.js";import"./linters.5d4f4193.js";import"./asyncComputed.ec375dc7.js";import"./TabPane.065b3329.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="448de557-09dc-415f-9f49-9721d12859c3",e._sentryDebugIdIdentifier="sentry-dbid-448de557-09dc-415f-9f49-9721d12859c3")}catch{}})();const D={class:"card-content"},L=b({__name:"Welcome",setup(e){const o=g(),{query:i}=k(),a=I();a.loadLogin();const l=v(!0),u=async()=>{l.value=!1,setInterval(()=>{var t;return window.location.replace(((t=a==null?void 0:a.links)==null?void 0:t.project)||T.consoleUrl)},5e3)};return(async()=>{const t=i.token,s=await w("/_editor/web-editor/welcome",{method:"POST",body:JSON.stringify({token:t}),headers:{"Content-Type":"application/json"}});if(!s.ok)return u();const{ok:m}=await s.json();if(!m)return u();await o.push({name:"workspace"})})(),(t,s)=>(r(),c(h,null,{default:n(()=>[f(d(A),{bordered:!1,class:"card"},{default:n(()=>[C("div",D,[f(y,{style:{"margin-bottom":"10px"}}),l.value?(r(),c(d(p),{key:0},{default:n(()=>[_("Loading...")]),_:1})):(r(),c(d(p),{key:1},{default:n(()=>[_("Authentication failed. You are been redirected...")]),_:1}))])]),_:1})]),_:1}))}});const J=x(L,[["__scopeId","data-v-a984ec04"]]);export{J as default};
//# sourceMappingURL=Welcome.5bc75eda.js.map
