import{_ as y}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.14f1b61f.js";import{C as b}from"./ContentLayout.16882285.js";import{l as h}from"./fetch.ea97a3c3.js";import{d as w,eH as g,e3 as k,f as v,o as r,c,w as n,b as p,a as C,u as d,d2 as _,az as f,Q as x}from"./index.56a4aa2e.js";import{u as I,E as T}from"./editor.a4e238ac.js";import{C as D}from"./Card.e1cbf4fc.js";import"./Logo.376aef10.js";import"./userStore.31baf024.js";import"./workspaceStore.00fd0aec.js";import"./url.7ee1877f.js";import"./colorHelpers.21549eb9.js";import"./linters.bbf68979.js";import"./asyncComputed.9c066391.js";import"./TabPane.f81b8fb1.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]="55ab3da4-41b0-4d59-96a7-353671171261",e._sentryDebugIdIdentifier="sentry-dbid-55ab3da4-41b0-4d59-96a7-353671171261")}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(()=>[p(d(D),{bordered:!1,class:"card"},{default:n(()=>[C("div",L,[p(y,{style:{"margin-bottom":"10px"}}),l.value?(r(),c(d(_),{key:0},{default:n(()=>[f("Loading...")]),_:1})):(r(),c(d(_),{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.157ca136.js.map
