import{B as f}from"./BaseLayout.2064c280.js";import{L as y}from"./Logo.18e623b2.js";import{d as l,D as b,K as m,S as p,aM as v,aN as g,o as _,eu as h,a as r,ev as s,eB as w,eM as S,$ as L,c as k,w as n,b as i,u as B}from"./vue-router.74c693f1.js";import{u as x}from"./editor.f5f1b567.js";import{b as I}from"./index.adf2c504.js";import"./router.1b9ffe64.js";import"./workspaces.521596e9.js";import"./asyncComputed.7b5c3427.js";import"./runnerData.91386489.js";import"./url.8b7ee03b.js";import"./record.0d85e3b6.js";import"./index.08822948.js";import"./index.33768c38.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]="4276feb5-be48-4048-b627-9e7930e4aeb4",e._sentryDebugIdIdentifier="sentry-dbid-4276feb5-be48-4048-b627-9e7930e4aeb4")}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=b({spinnerStyle:{width:e.size,height:e.size,borderRadius:e.radius,backgroundColor:e.color}});return{...m(o)}}});const D={class:"v-spinner"};function P(e,o,a,d,c,u){return v((_(),h("div",D,[r("div",{class:"v-beat v-beat-odd",style:s(e.spinnerStyle)},null,4),r("div",{class:"v-beat v-beat-even",style:s(e.spinnerStyle)},null,4),r("div",{class:"v-beat v-beat-odd",style:s(e.spinnerStyle)},null,4)],512)),[[g,e.loading]])}const K=p($,[["render",P],["__scopeId","data-v-06538001"]]),R={class:"content"},j=l({__name:"ProjectLogin",setup(e){const o=w(),a=S(),d=x();function c(){const t=new URL(location.href);t.searchParams.delete("api-key"),a.replace(t.pathname+t.search)}function u(){const t=o.query["api-key"];if(typeof t=="string")return t}return L(async()=>{const t=u();if(!t){a.push({name:"error"});return}await d.createLogin(t).then(c),a.push({name:"workspace"})}),(t,z)=>(_(),k(f,null,{navbar:n(()=>[i(B(I),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{title:n(()=>[i(y)]),_:1})]),content:n(()=>[r("div",R,[i(K)])]),_:1}))}});const Q=p(j,[["__scopeId","data-v-b8abf1f9"]]);export{Q as default};
//# sourceMappingURL=ProjectLogin.e5c3a86e.js.map
