import{_ as f}from"./AbstraLogo.vue_vue_type_script_setup_true_lang-CN5_Lk1n.js";import{B as y}from"./BaseLayout-hF72oa3i.js";import{e as l,Z as _,a8 as b,aO as u,aK as v,aL as g,h as m,p as h,s as a,U as s,N as w,ai as S,f as k,w as n,an as B,m as i,j as I}from"./jwt-decode.esm-og2W_mys.js";import{u as L}from"./editor-C-Vo7iUv.js";import{A as $}from"./index-BYSR9UZR.js";import"./logo-BiWG9_W5.js";import"./Logo-BNNRtoA7.js";import"./workspaceStore-B4xim6np.js";import"./userStore-TcL0Pw6I.js";import"./runnerData-DQlisCXz.js";import"./url-Di0QLUa5.js";import"./colorHelpers-BW0h5pOm.js";import"./useCodebaseEvents-BnpEVb9l.js";import"./contracts.generated-iSDXITYR.js";import"./ts.worker-BQuKpghy.js";import"./router-BWkupiLx.js";import"./constants-DLqQBhqI.js";import"./linters-CwtAHUv8.js";import"./asyncComputed-Pl8A6UUZ.js";import"./index--EPiUUke.js";import"./index-cU8xXDOD.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="e9999a6b-df48-4341-8721-7c7e8668b9cc",e._sentryDebugIdIdentifier="sentry-dbid-e9999a6b-df48-4341-8721-7c7e8668b9cc")}catch{}})();const x=l({props:{loading:{type:Boolean,default:!0},color:{type:String,default:"var(--ac-brand-primary)"},size:{type:String,default:"10px"},radius:{type:String,default:"100%"}},setup(e){const r=_({spinnerStyle:{width:e.size,height:e.size,borderRadius:e.radius,backgroundColor:e.color}});return{...b(r)}}}),D={class:"v-spinner"};function K(e,r,o,c,d,p){return v((m(),h("div",D,[a("div",{class:"v-beat v-beat-odd",style:s(e.spinnerStyle)},null,4),a("div",{class:"v-beat v-beat-even",style:s(e.spinnerStyle)},null,4),a("div",{class:"v-beat v-beat-odd",style:s(e.spinnerStyle)},null,4)],512)),[[g,e.loading]])}const P=u(x,[["render",K],["__scopeId","data-v-224007fd"]]),R={class:"content"},j=l({__name:"ProjectLogin",setup(e){const r=B(),o=S(),c=L();function d(){const t=new URL(location.href);t.searchParams.delete("api-key"),o.replace(t.pathname+t.search)}function p(){const t=r.query["api-key"];if(typeof t=="string")return t}return w(async()=>{const t=p();if(!t){o.push({name:"error"});return}await c.createLogin(t).then(d),o.push({name:"editor"})}),(t,z)=>(m(),k(y,null,{navbar:n(()=>[i(I($),{style:{padding:"5px 25px",border:"1px solid var(--ac-border-subtle)"}},{title:n(()=>[i(f)]),_:1})]),content:n(()=>[a("div",R,[i(P)])]),_:1}))}}),re=u(j,[["__scopeId","data-v-c9eeae4b"]]);export{re as default};
//# sourceMappingURL=ProjectLogin-gAgJ0iVh.js.map
