import{_ as f}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.3f7b87b1.js";import{B as y}from"./BaseLayout.e134b491.js";import{d as l,ad as m,c0 as b,_ as u,aY as v,aZ as g,o as _,a4 as h,e as a,a5 as n,ec as w,e4 as S,k,a as L,b as s,f as i,u as x}from"./jwt-decode.esm.4aed0432.js";import{u as B}from"./editor.6231e3c0.js";import{b as I}from"./index.2f3003a8.js";import"./Logo.0edaafdf.js";import"./userStore.6b52d148.js";import"./linters.65561fda.js";import"./asyncComputed.728c1605.js";import"./workspaceStore.a95ba086.js";import"./runnerData.72dae76e.js";import"./url.b192466e.js";import"./colorHelpers.1c38eab0.js";import"./constants.6bea9d72.js";import"./index.46be4ae3.js";import"./index.58d4cba0.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]="edbe2361-b7b2-4232-897c-c454f9067b52",e._sentryDebugIdIdentifier="sentry-dbid-edbe2361-b7b2-4232-897c-c454f9067b52")}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=m({spinnerStyle:{width:e.size,height:e.size,borderRadius:e.radius,backgroundColor:e.color}});return{...b(o)}}});const P={class:"v-spinner"};function D(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 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 k(async()=>{const t=p();if(!t){r.push({name:"error"});return}await d.createLogin(t).then(c),r.push({name:"editor"})}),(t,C)=>(_(),L(y,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 T=u(z,[["__scopeId","data-v-d2a19803"]]);export{T as default};
//# sourceMappingURL=ProjectLogin.254ed81c.js.map
