import{_ as f}from"./AbstraLogo.vue_vue_type_script_setup_true_lang.15c0cc61.js";import{B as b}from"./BaseLayout.0a7e9801.js";import{d as p,D as y,K as m,$ as u,aZ as v,a_ as g,o as _,X as h,a as s,Y as a,ed as w,eq as S,W as k,c as L,w as n,b as i,u as $}from"./vue-router.663e4641.js";import{u as x}from"./editor.1767c3b8.js";import{b as B}from"./index.824a0c1a.js";import"./Logo.201d27ce.js";import"./workspaceStore.d3e54509.js";import"./url.23e7d6b6.js";import"./colorHelpers.be492f85.js";import"./asyncComputed.91dd9b14.js";import"./index.8428cf9b.js";import"./Avatar.082b8820.js";import"./index.108b4fb6.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]="4b748d7b-7b7b-406a-bd7f-b5224e61b495",e._sentryDebugIdIdentifier="sentry-dbid-4b748d7b-7b7b-406a-bd7f-b5224e61b495")}catch{}})();const I=p({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{...m(o)}}});const D={class:"v-spinner"};function P(e,o,r,d,c,l){return v((_(),h("div",D,[s("div",{class:"v-beat v-beat-odd",style:a(e.spinnerStyle)},null,4),s("div",{class:"v-beat v-beat-even",style:a(e.spinnerStyle)},null,4),s("div",{class:"v-beat v-beat-odd",style:a(e.spinnerStyle)},null,4)],512)),[[g,e.loading]])}const K=u(I,[["render",P],["__scopeId","data-v-06538001"]]),R={class:"content"},j=p({__name:"ProjectLogin",setup(e){const o=w(),r=S(),d=x();function c(){const t=new URL(location.href);t.searchParams.delete("api-key"),r.replace(t.pathname+t.search)}function l(){const t=o.query["api-key"];if(typeof t=="string")return t}return k(async()=>{const t=l();if(!t){r.push({name:"error"});return}await d.createLogin(t).then(c),r.push({name:"workspace"})}),(t,z)=>(_(),L(b,null,{navbar:n(()=>[i($(B),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{title:n(()=>[i(f)]),_:1})]),content:n(()=>[s("div",R,[i(K)])]),_:1}))}});const Z=u(j,[["__scopeId","data-v-944edebb"]]);export{Z as default};
//# sourceMappingURL=ProjectLogin.3644b853.js.map
