import{_ as f}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.a5002164.js";import{B as y}from"./BaseLayout.f25b06b4.js";import{d as l,E as m,L as b,a0 as u,a_ as v,a$ as g,o as _,Y as h,a as r,Z as s,ea as w,eo as S,X as L,c as k,w as n,b as i,u as $}from"./index.3c5f59e1.js";import{u as x}from"./editor.053eb30e.js";import{b as B}from"./index.27732c7a.js";import"./Logo.602eeccd.js";import"./workspaceStore.d7d1ce9e.js";import"./url.900b2c7a.js";import"./colorHelpers.9aa601f7.js";import"./linters.974424b0.js";import"./asyncComputed.d69215c4.js";import"./index.5b322011.js";import"./Avatar.6e70bc68.js";import"./index.4f70a280.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},a=new Error().stack;a&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[a]="b92a3886-bf3e-4110-ae5a-e8ac39d24d41",e._sentryDebugIdIdentifier="sentry-dbid-b92a3886-bf3e-4110-ae5a-e8ac39d24d41")}catch{}})();const I=l({props:{loading:{type:Boolean,default:!0},color:{type:String,default:"#ea576a"},size:{type:String,default:"10px"},radius:{type:String,default:"100%"}},setup(e){const a=m({spinnerStyle:{width:e.size,height:e.size,borderRadius:e.radius,backgroundColor:e.color}});return{...b(a)}}});const P={class:"v-spinner"};function D(e,a,o,d,c,p){return v((_(),h("div",P,[r("div",{class:"v-beat v-beat-odd",style:s(e.spinnerStyle)},null,4),r("div",{class:"v-beat v-beat-even",style:s(e.spinnerStyle)},null,4),r("div",{class:"v-beat v-beat-odd",style:s(e.spinnerStyle)},null,4)],512)),[[g,e.loading]])}const R=u(I,[["render",D],["__scopeId","data-v-06538001"]]),j={class:"content"},z=l({__name:"ProjectLogin",setup(e){const a=w(),o=S(),d=x();function c(){const t=new URL(location.href);t.searchParams.delete("api-key"),o.replace(t.pathname+t.search)}function p(){const t=a.query["api-key"];if(typeof t=="string")return t}return L(async()=>{const t=p();if(!t){o.push({name:"error"});return}await d.createLogin(t).then(c),o.push({name:"workspace"})}),(t,C)=>(_(),k(y,null,{navbar:n(()=>[i($(B),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{title:n(()=>[i(f)]),_:1})]),content:n(()=>[r("div",j,[i(R)])]),_:1}))}});const J=u(z,[["__scopeId","data-v-944edebb"]]);export{J as default};
//# sourceMappingURL=ProjectLogin.2cb50bd6.js.map
