import{_ as m}from"./AbstraLogo.vue_vue_type_script_setup_true_lang-BP-78XpT.js";import{B as y}from"./BaseLayout-BG4TVeXU.js";import{e as l,O as _,bI as b,ar as u,ao as v,ap as g,g as f,f as h,k as a,G as s,n as w,N as S,q as k,x as n,W as I,v as i,s as B}from"./jwt-decode.esm-CX61wVx3.js";import{u as $}from"./editor-tdrTCwbw.js";import{A as x}from"./index-DmKWfeKm.js";import"./logo-BiWG9_W5.js";import"./Logo-Dr2w7cZG.js";import"./externalPlayer-D7i6YlKj.js";import"./fetch-BOLOxrH8.js";import"./workspaceStore-QlTT1mu8.js";import"./userStore-C3Z0vN5p.js";import"./runnerData-B4AKypWD.js";import"./url-D1jI6Lt8.js";import"./colorHelpers-Dde0Xcnl.js";import"./useCodebaseEvents-BK-wKPXc.js";import"./codebaseEvents-s4M7UMV6.js";import"./constants-B5rys1IL.js";import"./files-IqWfdQBD.js";import"./ts.worker-DBbJtN2A.js";import"./router-XYEQzGpi.js";import"./index-BMo8fvaH.js";import"./index-DhpJ3FpU.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]="1b1097d3-3afb-4df4-8b2c-2fc05385ac8f",e._sentryDebugIdIdentifier="sentry-dbid-1b1097d3-3afb-4df4-8b2c-2fc05385ac8f")}catch{}})();const L=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,c,d,p){return v((f(),h("div",D,[a("div",{class:"v-beat v-beat-odd",style:s(e.spinnerStyle)},null,4),a("div",{class:"v-beat v-beat-even",style:s(e.spinnerStyle)},null,4),a("div",{class:"v-beat v-beat-odd",style:s(e.spinnerStyle)},null,4)],512)),[[g,e.loading]])}const R=u(L,[["render",P],["__scopeId","data-v-224007fd"]]),z={class:"content"},A=l({__name:"ProjectLogin",setup(e){const r=I(),o=S(),c=$();function d(){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 c.createLogin(t).then(d),o.push({name:"editor"})}),(t,C)=>(f(),k(y,null,{navbar:n(()=>[i(B(x),{style:{padding:"5px 25px",border:"1px solid var(--ac-border-subtle)"}},{title:n(()=>[i(m)]),_:1})]),content:n(()=>[a("div",z,[i(R)])]),_:1}))}}),oe=u(A,[["__scopeId","data-v-c9eeae4b"]]);export{oe as default};
//# sourceMappingURL=ProjectLogin-XVrG2zc5.js.map
