import{_ as f}from"./AbstraLogo.vue_vue_type_script_setup_true_lang-DyvdRQ5C.js";import{B as y}from"./BaseLayout-DqjedjOF.js";import{e as l,K as _,bG as b,ar as u,an as v,ao as g,g as m,f as h,k as o,v as n,Z as w,J as S,l as k,w as s,U as B,p as i,n as I}from"./jwt-decode.esm-BPi7UGps.js";import{u as $}from"./editor-CnbEe7DK.js";import{A as L}from"./index-Z0_27hN7.js";import"./logo-BiWG9_W5.js";import"./Logo-BjkHFdxE.js";import"./ts.worker-DiZKOtzb.js";import"./workspaceStore-C0F9gl0n.js";import"./userStore-DX_yqXyz.js";import"./runnerData-CVdM876v.js";import"./url-pqXfY2Q9.js";import"./colorHelpers-2--HXixt.js";import"./useCodebaseEvents-Ccf6_-Bi.js";import"./contracts.generated-WqVTaSfA.js";import"./files-BiI5Sxwx.js";import"./PhBug.vue-Bkhda6M2.js";import"./router-COzRLoz4.js";import"./constants-BsVzWrXw.js";import"./index-CV-Gr7Pq.js";import"./index-CFDEbZ_7.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]="72eb631a-16e5-43da-bac3-67d3f1db98a4",e._sentryDebugIdIdentifier="sentry-dbid-72eb631a-16e5-43da-bac3-67d3f1db98a4")}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 K(e,r,a,d,c,p){return v((m(),h("div",D,[o("div",{class:"v-beat v-beat-odd",style:n(e.spinnerStyle)},null,4),o("div",{class:"v-beat v-beat-even",style:n(e.spinnerStyle)},null,4),o("div",{class:"v-beat v-beat-odd",style:n(e.spinnerStyle)},null,4)],512)),[[g,e.loading]])}const P=u(x,[["render",K],["__scopeId","data-v-224007fd"]]),R={class:"content"},z=l({__name:"ProjectLogin",setup(e){const r=B(),a=S(),d=$();function c(){const t=new URL(location.href);t.searchParams.delete("api-key"),a.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){a.push({name:"error"});return}await d.createLogin(t).then(c),a.push({name:"editor"})}),(t,A)=>(m(),k(y,null,{navbar:s(()=>[i(I(L),{style:{padding:"5px 25px",border:"1px solid var(--ac-border-subtle)"}},{title:s(()=>[i(f)]),_:1})]),content:s(()=>[o("div",R,[i(P)])]),_:1}))}}),re=u(z,[["__scopeId","data-v-c9eeae4b"]]);export{re as default};
//# sourceMappingURL=ProjectLogin-xBuNDDrh.js.map
