import{_ as y}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.5ae60594.js";import{C as b}from"./ContentLayout.097dc0d5.js";import{l as h}from"./fetch.cc507b51.js";import{d as w,eo as g,ea as k,e as v,o as r,c as d,w as n,b as p,a as C,u as c,db as _,aG as f,a0 as x}from"./index.9f6b07f8.js";import{u as I,E as T}from"./editor.1a48a5d2.js";import{C as D}from"./Card.4ddc81b2.js";import"./Logo.e05467a8.js";import"./workspaceStore.ead640bd.js";import"./url.1a36d266.js";import"./colorHelpers.990caed0.js";import"./linters.2304cd61.js";import"./asyncComputed.b7a00680.js";import"./TabPane.5ebb03f0.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]="2de59d05-7b75-43ee-8a0e-2817e3081d69",e._sentryDebugIdIdentifier="sentry-dbid-2de59d05-7b75-43ee-8a0e-2817e3081d69")}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(),d(b,null,{default:n(()=>[p(c(D),{bordered:!1,class:"card"},{default:n(()=>[C("div",L,[p(y,{style:{"margin-bottom":"10px"}}),l.value?(r(),d(c(_),{key:0},{default:n(()=>[f("Loading...")]),_:1})):(r(),d(c(_),{key:1},{default:n(()=>[f("Authentication failed. You are been redirected...")]),_:1}))])]),_:1})]),_:1}))}});const J=x(N,[["__scopeId","data-v-a984ec04"]]);export{J as default};
//# sourceMappingURL=Welcome.6afe3b29.js.map
