import{_ as f}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.f628a3a7.js";import{B as m}from"./BaseLayout.3c6f8614.js";import{d as l,al as y,c8 as v,_ as u,b4 as g,b5 as b,o as _,ac as h,e as a,ad as n,ei as w,ec as S,U as L,a as k,b as s,f as i,u as x}from"./jwt-decode.esm.f87c17f7.js";import{u as B}from"./editor.90099ba3.js";import{A as I}from"./index.64d118e9.js";import"./Logo.29f26be1.js";import"./router.9ee10098.js";import"./workspaceStore.ef7daa80.js";import"./userStore.3989ac4e.js";import"./url.acca5643.js";import"./colorHelpers.43bbe7b2.js";import"./useCodebaseEvents.dc121de8.js";import"./contracts.generated.36d5f7a5.js";import"./index.9f357119.js";import"./constants.2cdc2025.js";import"./linters.6d68fd4f.js";import"./asyncComputed.515034b4.js";import"./Breadcrumb.438b89fb.js";import"./index.ed2240ea.js";import"./index.97648248.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]="f7697d00-5d3f-4862-83d4-3fc3553d08e3",e._sentryDebugIdIdentifier="sentry-dbid-f7697d00-5d3f-4862-83d4-3fc3553d08e3")}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,d,c,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(),d=B();function c(){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 d.createLogin(t).then(c),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.abc78e95.js.map
