import{B as f}from"./BaseLayout.b28fb01b.js";import{L as y}from"./Logo.cbb8373a.js";import{d as u,D as m,K as b,Y as p,aQ as g,aR as v,o as _,V as h,a as s,W as n,eB as w,eN as L,U as S,c as k,w as r,b as i,u as B}from"./vue-router.a333e065.js";import{u as x}from"./editor.970bca66.js";import{b as I}from"./index.efd82712.js";import"./router.c605742c.js";import"./linters.9fc4fe84.js";import"./asyncComputed.77239fe2.js";import"./index.20b6d4d1.js";import"./index.e9f1c85a.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]="7a6ddbac-ebec-46a7-b9ea-28d080ad8bf1",e._sentryDebugIdIdentifier="sentry-dbid-7a6ddbac-ebec-46a7-b9ea-28d080ad8bf1")}catch{}})();const D=u({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 R(e,a,o,d,c,l){return g((_(),h("div",P,[s("div",{class:"v-beat v-beat-odd",style:n(e.spinnerStyle)},null,4),s("div",{class:"v-beat v-beat-even",style:n(e.spinnerStyle)},null,4),s("div",{class:"v-beat v-beat-odd",style:n(e.spinnerStyle)},null,4)],512)),[[v,e.loading]])}const $=p(D,[["render",R],["__scopeId","data-v-06538001"]]),K={class:"content"},j=u({__name:"ProjectLogin",setup(e){const a=w(),o=L(),d=x();function c(){const t=new URL(location.href);t.searchParams.delete("api-key"),o.replace(t.pathname+t.search)}function l(){const t=a.query["api-key"];if(typeof t=="string")return t}return S(async()=>{const t=l();if(!t){o.push({name:"error"});return}await d.createLogin(t).then(c),o.push({name:"workspace"})}),(t,z)=>(_(),k(f,null,{navbar:r(()=>[i(B(I),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{title:r(()=>[i(y)]),_:1})]),content:r(()=>[s("div",K,[i($)])]),_:1}))}});const Q=p(j,[["__scopeId","data-v-6ca995fe"]]);export{Q as default};
//# sourceMappingURL=ProjectLogin.b96111cf.js.map
