import{_ as f}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.08547c28.js";import{B as y}from"./BaseLayout.b02cd6e9.js";import{d as l,a6 as m,bY as b,Q as u,aT as v,aU as g,o as _,K as h,a as r,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.f15cb536.js";import{u as B}from"./editor.964b7bf5.js";import{b as I}from"./index.381041ce.js";import"./Logo.539a2aab.js";import"./userStore.8dc60551.js";import"./workspaceStore.4333a685.js";import"./url.005bba68.js";import"./colorHelpers.f4fce95c.js";import"./linters.4d879006.js";import"./asyncComputed.3313bf29.js";import"./index.b7deb463.js";import"./Avatar.368279c6.js";import"./index.fe0be999.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]="ca9da2ad-5f59-43a2-a02e-db856256b8a1",e._sentryDebugIdIdentifier="sentry-dbid-ca9da2ad-5f59-43a2-a02e-db856256b8a1")}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 a=m({spinnerStyle:{width:e.size,height:e.size,borderRadius:e.radius,backgroundColor:e.color}});return{...b(a)}}});const P={class:"v-spinner"};function D(e,a,o,d,c,p){return v((_(),h("div",P,[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)),[[g,e.loading]])}const K=u($,[["render",D],["__scopeId","data-v-06538001"]]),R={class:"content"},j=l({__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 p(){const t=a.query["api-key"];if(typeof t=="string")return t}return k(async()=>{const t=p();if(!t){o.push({name:"error"});return}await d.createLogin(t).then(c),o.push({name:"workspace"})}),(t,z)=>(_(),L(y,null,{navbar:n(()=>[i(x(I),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{title:n(()=>[i(f)]),_:1})]),content:n(()=>[r("div",R,[i(K)])]),_:1}))}});const O=u(j,[["__scopeId","data-v-944edebb"]]);export{O as default};
//# sourceMappingURL=ProjectLogin.17b7f451.js.map
