import{_ as f}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.6b048d65.js";import{B as m}from"./BaseLayout.e4ec9468.js";import{d as l,al as y,c8 as b,_ as u,b4 as v,b5 as g,o as _,ac as h,e as a,ad as n,U as w,a as S,b as s,eA as L,ec as k,f as i,u as x}from"./jwt-decode.esm.fbcfeaec.js";import{u as B}from"./editor.350f5b11.js";import{A as I}from"./index.1e99e64a.js";import"./Logo.6d480788.js";import"./router.12185547.js";import"./workspaceStore.fb02f79a.js";import"./userStore.5192b178.js";import"./url.90414523.js";import"./colorHelpers.0cd68eec.js";import"./useCodebaseEvents.c1fc4662.js";import"./contracts.generated.2749c9b0.js";import"./index.d9ce41fc.js";import"./constants.b8ded506.js";import"./linters.ada1363c.js";import"./asyncComputed.5a2bb5ad.js";import"./index.561c6514.js";import"./index.1615381a.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]="46836547-8705-47b6-8031-d08c6f7abb13",e._sentryDebugIdIdentifier="sentry-dbid-46836547-8705-47b6-8031-d08c6f7abb13")}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{...b(o)}}});const P={class:"v-spinner"};function A(e,o,r,d,c,p){return v((_(),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)),[[g,e.loading]])}const D=u($,[["render",A],["__scopeId","data-v-06538001"]]),R={class:"content"},j=l({__name:"ProjectLogin",setup(e){const o=L(),r=k(),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 w(async()=>{const t=p();if(!t){r.push({name:"error"});return}await d.createLogin(t).then(c),r.push({name:"editor"})}),(t,z)=>(_(),S(m,null,{navbar:s(()=>[i(x(I),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{title:s(()=>[i(f)]),_:1})]),content:s(()=>[a("div",R,[i(D)])]),_:1}))}});const ee=u(j,[["__scopeId","data-v-d2a19803"]]);export{ee as default};
//# sourceMappingURL=ProjectLogin.f3b72a0d.js.map
