import{B as _}from"./BaseLayout.5eae7f3f.js";import{L as y}from"./Logo.808f63ec.js";import{d as u,D as m,K as g,$ as p,aR as v,aS as b,o as f,W as h,a as r,X as s,e7 as w,ek as S,V as L,c as k,w as n,b as i,u as x}from"./vue-router.2175af64.js";import{u as B}from"./editor.9a46e8cb.js";import{b as I}from"./index.7eeabcf6.js";import"./workspaceStore.d0364043.js";import"./url.bfee0c48.js";import"./linters.c0cb546c.js";import"./asyncComputed.bdf01236.js";import"./index.fc22bfee.js";import"./Avatar.e011245d.js";import"./index.0d626be8.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]="fb103feb-2dfa-488d-8d03-53a80f6a3ae7",e._sentryDebugIdIdentifier="sentry-dbid-fb103feb-2dfa-488d-8d03-53a80f6a3ae7")}catch{}})();const $=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{...g(a)}}});const D={class:"v-spinner"};function P(e,a,o,d,c,l){return v((f(),h("div",D,[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)),[[b,e.loading]])}const R=p($,[["render",P],["__scopeId","data-v-06538001"]]),K={class:"content"},j=u({__name:"ProjectLogin",setup(e){const a=w(),o=S(),d=B();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 L(async()=>{const t=l();if(!t){o.push({name:"error"});return}await d.createLogin(t).then(c),o.push({name:"workspace"})}),(t,z)=>(f(),k(_,null,{navbar:n(()=>[i(x(I),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{title:n(()=>[i(y)]),_:1})]),content:n(()=>[r("div",K,[i(R)])]),_:1}))}});const G=p(j,[["__scopeId","data-v-6ca995fe"]]);export{G as default};
//# sourceMappingURL=ProjectLogin.91fd0d26.js.map
