import{_ as y}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.224ac585.js";import{C as b}from"./ContentLayout.da1c7798.js";import{l as h}from"./fetch.8db10b99.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 i,d9 as p,aG as _,a0 as x}from"./index.0396e68e.js";import{u as I,E as T}from"./editor.a6792a5c.js";import{C as D}from"./Card.5d980ebc.js";import"./Logo.008d40fa.js";import"./workspaceStore.63e90c7b.js";import"./url.892c62bd.js";import"./colorHelpers.1afbbca5.js";import"./linters.13eb7d79.js";import"./asyncComputed.fdf54570.js";import"./TabPane.b5e1cdd3.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]="b2f004f5-eef7-4648-b81a-8a5625eb2ca7",e._sentryDebugIdIdentifier="sentry-dbid-b2f004f5-eef7-4648-b81a-8a5625eb2ca7")}catch{}})();const L={class:"card-content"},N=w({__name:"Welcome",setup(e){const o=g(),{query:d}=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=d.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(i(D),{bordered:!1,class:"card"},{default:n(()=>[C("div",L,[f(y,{style:{"margin-bottom":"10px"}}),l.value?(r(),c(i(p),{key:0},{default:n(()=>[_("Loading...")]),_:1})):(r(),c(i(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.e63a9463.js.map
