import{_ as f}from"./AbstraLogo.vue_vue_type_script_setup_true_lang-Bw3i9XUM.js";import{B as y}from"./BaseLayout-BFLssEfX.js";import{e as l,Y as _,a6 as b,aQ as u,aL as v,aM as g,g as m,f as h,k as a,P as n,W as w,aj as S,n as k,w as s,an as B,v as i,p as I}from"./jwt-decode.esm-Dwzi-xky.js";import{u as L}from"./editor-G6fQJBjx.js";import{A as $}from"./index-Bv9rDR6J.js";import"./logo-BiWG9_W5.js";import"./Logo-B6vnfjpC.js";import"./ts.worker-BTEkdIk9.js";import"./workspaceStore-BPtCmoi9.js";import"./userStore-DCfchFeR.js";import"./runnerData-DgQOUFhY.js";import"./url-BS2CA8Zo.js";import"./colorHelpers-C3Rgr1MS.js";import"./useCodebaseEvents-DTHH288T.js";import"./contracts.generated-BWa35hcn.js";import"./router-UCi5mm2O.js";import"./constants-ooMBp8zc.js";import"./linters-Dfk2xA12.js";import"./asyncComputed-4b4Vbuu-.js";import"./index-Dtb1RGFv.js";import"./index-DB9FWOd8.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="5295f643-e133-4872-9435-c1dd928eaebb",e._sentryDebugIdIdentifier="sentry-dbid-5295f643-e133-4872-9435-c1dd928eaebb")}catch{}})();const P=l({props:{loading:{type:Boolean,default:!0},color:{type:String,default:"var(--ac-brand-primary)"},size:{type:String,default:"10px"},radius:{type:String,default:"100%"}},setup(e){const r=_({spinnerStyle:{width:e.size,height:e.size,borderRadius:e.radius,backgroundColor:e.color}});return{...b(r)}}}),x={class:"v-spinner"};function D(e,r,o,d,c,p){return v((m(),h("div",x,[a("div",{class:"v-beat v-beat-odd",style:n(e.spinnerStyle)},null,4),a("div",{class:"v-beat v-beat-even",style:n(e.spinnerStyle)},null,4),a("div",{class:"v-beat v-beat-odd",style:n(e.spinnerStyle)},null,4)],512)),[[g,e.loading]])}const R=u(P,[["render",D],["__scopeId","data-v-224007fd"]]),j={class:"content"},z=l({__name:"ProjectLogin",setup(e){const r=B(),o=S(),d=L();function c(){const t=new URL(location.href);t.searchParams.delete("api-key"),o.replace(t.pathname+t.search)}function p(){const t=r.query["api-key"];if(typeof t=="string")return t}return w(async()=>{const t=p();if(!t){o.push({name:"error"});return}await d.createLogin(t).then(c),o.push({name:"editor"})}),(t,A)=>(m(),k(y,null,{navbar:s(()=>[i(I($),{style:{padding:"5px 25px",border:"1px solid var(--ac-border-subtle)"}},{title:s(()=>[i(f)]),_:1})]),content:s(()=>[a("div",j,[i(R)])]),_:1}))}}),re=u(z,[["__scopeId","data-v-c9eeae4b"]]);export{re as default};
//# sourceMappingURL=ProjectLogin-DUhF3pRu.js.map
