import{B as _}from"./BaseLayout.b9e22e7c.js";import{L as y}from"./Logo.0479a65d.js";import{d as l,D as m,K as b,$ as p,aR as g,aS as v,o as f,W as h,a as s,X as n,eu as w,eH as S,V as L,c as k,w as r,b as i,u as x}from"./vue-router.6a68d184.js";import{u as B}from"./editor.0db96f57.js";import{b as I}from"./index.4689ac82.js";import"./router.97fb03b1.js";import"./linters.83a9cabc.js";import"./asyncComputed.f77117da.js";import"./index.e791b572.js";import"./index.4be87654.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]="a03fe7d6-51e4-40b9-8bfb-1967004fd0ce",e._sentryDebugIdIdentifier="sentry-dbid-a03fe7d6-51e4-40b9-8bfb-1967004fd0ce")}catch{}})();const $=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 o=m({spinnerStyle:{width:e.size,height:e.size,borderRadius:e.radius,backgroundColor:e.color}});return{...b(o)}}});const D={class:"v-spinner"};function P(e,o,a,d,c,u){return g((f(),h("div",D,[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 R=p($,[["render",P],["__scopeId","data-v-06538001"]]),K={class:"content"},j=l({__name:"ProjectLogin",setup(e){const o=w(),a=S(),d=B();function c(){const t=new URL(location.href);t.searchParams.delete("api-key"),a.replace(t.pathname+t.search)}function u(){const t=o.query["api-key"];if(typeof t=="string")return t}return L(async()=>{const t=u();if(!t){a.push({name:"error"});return}await d.createLogin(t).then(c),a.push({name:"workspace"})}),(t,z)=>(f(),k(_,null,{navbar:r(()=>[i(x(I),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{title:r(()=>[i(y)]),_:1})]),content:r(()=>[s("div",K,[i(R)])]),_:1}))}});const W=p(j,[["__scopeId","data-v-6ca995fe"]]);export{W as default};
//# sourceMappingURL=ProjectLogin.8e58db21.js.map
