import{_ as y}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.30c7ded0.js";import{C as b}from"./ContentLayout.ee4f4aa2.js";import{l as h}from"./fetch.5d8f4620.js";import{d as w,eo as g,ea as k,e as v,o as r,c,w as n,b as f,a as C,u as d,db as p,aG as _,a0 as x}from"./index.73a38d81.js";import{u as I,E as T}from"./editor.a961dd5c.js";import{C as D}from"./Card.f9ea02bd.js";import"./Logo.20f38e81.js";import"./workspaceStore.9a1cf89e.js";import"./url.9bc6af1d.js";import"./colorHelpers.2f665bfc.js";import"./linters.19a229f9.js";import"./asyncComputed.c6319089.js";import"./TabPane.5f6856ea.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]="92f31e91-7b08-427f-84d0-313f75293869",e._sentryDebugIdIdentifier="sentry-dbid-92f31e91-7b08-427f-84d0-313f75293869")}catch{}})();const L={class:"card-content"},N=w({__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 h("/_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(b,null,{default:n(()=>[f(d(D),{bordered:!1,class:"card"},{default:n(()=>[C("div",L,[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(N,[["__scopeId","data-v-a984ec04"]]);export{J as default};
//# sourceMappingURL=Welcome.79ce8d70.js.map
