import{_ as f}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.9f98292e.js";import{B as m}from"./BaseLayout.1ec2c96d.js";import{d as l,ae as y,c1 as v,_ as u,aZ as g,a_ as b,o as _,a5 as h,e as a,a6 as n,eb as w,e5 as S,J as L,a as k,b as s,f as i,u as x}from"./jwt-decode.esm.d4517a10.js";import{u as B}from"./editor.3a4714e3.js";import{A as I}from"./index.5d6b1e62.js";import"./Logo.82d6ab70.js";import"./router.262190ec.js";import"./workspaceStore.6244d03d.js";import"./userStore.31024da3.js";import"./url.e8732f77.js";import"./colorHelpers.37d9932b.js";import"./useCodebaseEvents.53dec1f2.js";import"./contracts.generated.590b1102.js";import"./constants.7d38ec8b.js";import"./linters.2f3141cb.js";import"./asyncComputed.cf5282fc.js";import"./index.4176fe88.js";import"./Breadcrumb.26dec5f7.js";import"./index.c34a405a.js";import"./index.fb182bd1.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="f6c54963-38e0-46a5-8c06-9c22d2e16216",e._sentryDebugIdIdentifier="sentry-dbid-f6c54963-38e0-46a5-8c06-9c22d2e16216")}catch{}})();const $=l({props:{loading:{type:Boolean,default:!0},color:{type:String,default:"#ea576a"},size:{type:String,default:"10px"},radius:{type:String,default:"100%"}},setup(e){const o=y({spinnerStyle:{width:e.size,height:e.size,borderRadius:e.radius,backgroundColor:e.color}});return{...v(o)}}});const P={class:"v-spinner"};function D(e,o,r,c,d,p){return g((_(),h("div",P,[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)),[[b,e.loading]])}const R=u($,[["render",D],["__scopeId","data-v-06538001"]]),j={class:"content"},z=l({__name:"ProjectLogin",setup(e){const o=w(),r=S(),c=B();function d(){const t=new URL(location.href);t.searchParams.delete("api-key"),r.replace(t.pathname+t.search)}function p(){const t=o.query["api-key"];if(typeof t=="string")return t}return L(async()=>{const t=p();if(!t){r.push({name:"error"});return}await c.createLogin(t).then(d),r.push({name:"editor"})}),(t,A)=>(_(),k(m,null,{navbar:s(()=>[i(x(I),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{title:s(()=>[i(f)]),_:1})]),content:s(()=>[a("div",j,[i(R)])]),_:1}))}});const te=u(z,[["__scopeId","data-v-d2a19803"]]);export{te as default};
//# sourceMappingURL=ProjectLogin.e7a6f444.js.map
