import{B as _}from"./BaseLayout.aafefd5e.js";import{L as y}from"./Logo.ba350f35.js";import{d as u,D as m,K as b,$ as p,aZ as g,a_ as v,o as f,X as h,a as r,Y as s,ed as w,eq as L,W as S,c as k,w as n,b as i,u as x}from"./vue-router.4a8a3251.js";import{u as B}from"./editor.3a553aeb.js";import{b as I}from"./index.c09b77c2.js";import"./workspaceStore.f4d19cfe.js";import"./url.11181b9e.js";import"./colorHelpers.e2d21695.js";import"./asyncComputed.0c2e75f9.js";import"./index.03ada8a9.js";import"./Avatar.9ea85931.js";import"./index.81074c92.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]="f81cfffd-5b1c-4d1f-92e8-8a9bb5a43a39",e._sentryDebugIdIdentifier="sentry-dbid-f81cfffd-5b1c-4d1f-92e8-8a9bb5a43a39")}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 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,c,d,l){return g((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)),[[v,e.loading]])}const K=p($,[["render",P],["__scopeId","data-v-06538001"]]),R={class:"content"},j=u({__name:"ProjectLogin",setup(e){const o=w(),a=L(),c=B();function d(){const t=new URL(location.href);t.searchParams.delete("api-key"),a.replace(t.pathname+t.search)}function l(){const t=o.query["api-key"];if(typeof t=="string")return t}return S(async()=>{const t=l();if(!t){a.push({name:"error"});return}await c.createLogin(t).then(d),a.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",R,[i(K)])]),_:1}))}});const Y=p(j,[["__scopeId","data-v-6ca995fe"]]);export{Y as default};
//# sourceMappingURL=ProjectLogin.70d678ef.js.map
