import{_ as m}from"./AbstraLogo.vue_vue_type_script_setup_true_lang-BAw03oS4.js";import{B as y}from"./BaseLayout-BXzjdyrU.js";import{e as l,J as _,bF as b,aq as u,am as v,an as g,g as f,f as h,k as a,t as n,Z as w,H as S,n as k,B as s,U as B,w as i,p as I}from"./jwt-decode.esm-cMnpfgdw.js";import{u as $}from"./editor-Bxv7phWK.js";import{A as L}from"./index-lxG4mYI3.js";import"./logo-BiWG9_W5.js";import"./Logo-DJdEFC-4.js";import"./ts.worker-T_DnATf9.js";import"./workspaceStore-B9WQPxPo.js";import"./userStore-DbIwjNKy.js";import"./runnerData-B02TUtQ4.js";import"./url-vqNrw1OC.js";import"./colorHelpers-CPrTu2hh.js";import"./useCodebaseEvents-BmsWKBkb.js";import"./contracts.generated-IQewUF6M.js";import"./files-Dpfm7nZo.js";import"./PhWarning.vue-DfBGyJDK.js";import"./router-IgkK2--t.js";import"./constants-2HINPs8G.js";import"./index-3OPJZWn2.js";import"./index-Dm-m55ls.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]="ad157fc0-93b5-496f-8302-4cf8a211917d",e._sentryDebugIdIdentifier="sentry-dbid-ad157fc0-93b5-496f-8302-4cf8a211917d")}catch{}})();const x=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)}}}),D={class:"v-spinner"};function P(e,r,o,d,c,p){return v((f(),h("div",D,[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(x,[["render",P],["__scopeId","data-v-224007fd"]]),z={class:"content"},A=l({__name:"ProjectLogin",setup(e){const r=B(),o=S(),d=$();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,C)=>(f(),k(y,null,{navbar:s(()=>[i(I(L),{style:{padding:"5px 25px",border:"1px solid var(--ac-border-subtle)"}},{title:s(()=>[i(m)]),_:1})]),content:s(()=>[a("div",z,[i(R)])]),_:1}))}}),re=u(A,[["__scopeId","data-v-c9eeae4b"]]);export{re as default};
//# sourceMappingURL=ProjectLogin-ygFehXiC.js.map
