import{_}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.14f1b61f.js";import{B as y}from"./BaseLayout.d9bc47ce.js";import{d as l,a6 as m,bY as v,Q as u,aT as b,aU as g,o as f,K as h,a,N as s,e3 as w,eH as S,J as k,c as L,w as n,b as i,u as x}from"./index.56a4aa2e.js";import{u as B}from"./editor.a4e238ac.js";import{b as I}from"./index.b739ec19.js";import"./Logo.376aef10.js";import"./userStore.31baf024.js";import"./workspaceStore.00fd0aec.js";import"./url.7ee1877f.js";import"./colorHelpers.21549eb9.js";import"./linters.bbf68979.js";import"./asyncComputed.9c066391.js";import"./index.18709242.js";import"./Avatar.1e25a656.js";import"./index.31820966.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]="77f55cd6-cf69-44f8-9f8d-fc05ad394762",e._sentryDebugIdIdentifier="sentry-dbid-77f55cd6-cf69-44f8-9f8d-fc05ad394762")}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{...v(o)}}});const P={class:"v-spinner"};function D(e,o,r,d,c,p){return b((f(),h("div",P,[a("div",{class:"v-beat v-beat-odd",style:s(e.spinnerStyle)},null,4),a("div",{class:"v-beat v-beat-even",style:s(e.spinnerStyle)},null,4),a("div",{class:"v-beat v-beat-odd",style:s(e.spinnerStyle)},null,4)],512)),[[g,e.loading]])}const K=u($,[["render",D],["__scopeId","data-v-06538001"]]),R={class:"content"},j=l({__name:"ProjectLogin",setup(e){const o=w(),r=S(),d=B();function c(){const t=new URL(location.href);t.searchParams.delete("api-key"),r.replace(t.pathname+t.search)}function p(){const t=o.query["api-key"];if(typeof t=="string")return t}return k(async()=>{const t=p();if(!t){r.push({name:"error"});return}await d.createLogin(t).then(c),r.push({name:"workspace"})}),(t,z)=>(f(),L(y,null,{navbar:n(()=>[i(x(I),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{title:n(()=>[i(_)]),_:1})]),content:n(()=>[a("div",R,[i(K)])]),_:1}))}});const O=u(j,[["__scopeId","data-v-944edebb"]]);export{O as default};
//# sourceMappingURL=ProjectLogin.93d1166d.js.map
