import{_ as f}from"./AbstraLogo.vue_vue_type_script_setup_true_lang-CPoq8QfW.js";import{B as y}from"./BaseLayout-Dy8KRkAS.js";import{e as l,O as _,bG as b,as as u,ao as v,ap as g,g as m,f as h,k as o,G as s,n as w,N as S,q as k,x as n,W as B,v as i,s as I}from"./jwt-decode.esm-TBTnMpAQ.js";import{u as $}from"./editor-CjW72KCN.js";import{A as x}from"./index-BJxFVQQC.js";import"./logo-BiWG9_W5.js";import"./Logo-DSVZcRye.js";import"./externalPlayer-D2sigvKf.js";import"./fetch-DSyaUbf1.js";import"./ts.worker-9cx-N_QF.js";import"./workspaceStore-BFbr_c_Q.js";import"./userStore-CKr6VRns.js";import"./runnerData-5zbRPzoM.js";import"./url-qvab8xVu.js";import"./colorHelpers-BMn7fztv.js";import"./useCodebaseEvents-C_jpTZ_U.js";import"./codebaseEvents-BFKqkTR1.js";import"./contracts.generated-BC6Af2JL.js";import"./constants-B87hyFPv.js";import"./files-CouHTBes.js";import"./router-Bt-fVezd.js";import"./index-DOGf0BqE.js";import"./index-CycazgOp.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]="ee5b7a17-6a4a-47ca-98bf-6245bdacd012",e._sentryDebugIdIdentifier="sentry-dbid-ee5b7a17-6a4a-47ca-98bf-6245bdacd012")}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,a,d,c,p){return v((m(),h("div",D,[o("div",{class:"v-beat v-beat-odd",style:s(e.spinnerStyle)},null,4),o("div",{class:"v-beat v-beat-even",style:s(e.spinnerStyle)},null,4),o("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=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,C)=>(m(),k(y,null,{navbar:n(()=>[i(I(x),{style:{padding:"5px 25px",border:"1px solid var(--ac-border-subtle)"}},{title:n(()=>[i(f)]),_:1})]),content:n(()=>[o("div",z,[i(R)])]),_:1}))}}),oe=u(A,[["__scopeId","data-v-c9eeae4b"]]);export{oe as default};
//# sourceMappingURL=ProjectLogin-7VPrhRgE.js.map
