import{_ as f}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.ed35f1dd.js";import{B as y}from"./BaseLayout.af75a5c7.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,e4 as w,e3 as S,J as k,c as L,w as n,b as i,u as x}from"./index.6b1213c6.js";import{u as B}from"./editor.3928d6cb.js";import{b as I}from"./index.381184ce.js";import"./Logo.be00950c.js";import"./userStore.c0cb42b5.js";import"./workspaceStore.436b122e.js";import"./runnerData.f49521d9.js";import"./url.16d95866.js";import"./colorHelpers.59418473.js";import"./linters.caf56568.js";import"./asyncComputed.fe6ca61b.js";import"./index.b230dc7b.js";import"./Avatar.85cb2dd6.js";import"./index.6b776599.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]="71cdfe81-73af-4faa-9cd7-7297bbb014cd",e._sentryDebugIdIdentifier="sentry-dbid-71cdfe81-73af-4faa-9cd7-7297bbb014cd")}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 P={class:"v-spinner"};function D(e,o,a,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 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 p(){const t=o.query["api-key"];if(typeof t=="string")return t}return k(async()=>{const t=p();if(!t){a.push({name:"error"});return}await d.createLogin(t).then(c),a.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 W=u(j,[["__scopeId","data-v-944edebb"]]);export{W as default};
//# sourceMappingURL=ProjectLogin.1fa0f3af.js.map
