import{_ as m}from"./AbstraLogo.vue_vue_type_script_setup_true_lang-hy_S2Gti.js";import{B as y}from"./BaseLayout-DcrF5dVj.js";import{e as l,Y as _,a6 as v,aP as u,aK as b,aL as g,g as f,f as h,k as o,P as n,W as w,aj as S,n as k,w as s,an as B,v as i,p as I}from"./jwt-decode.esm-CcJLQF7t.js";import{u as L}from"./editor-Bw8S8bJg.js";import{A as P}from"./index-BbEJNG8w.js";import"./logo-BiWG9_W5.js";import"./Logo-DhZ5XNo1.js";import"./ts.worker-BRz30wtU.js";import"./workspaceStore-9C3R-gE4.js";import"./userStore-SgpjV08H.js";import"./runnerData-BH8BB-8q.js";import"./url-Dm-l1SL8.js";import"./colorHelpers-CEpvYiFq.js";import"./useCodebaseEvents-CnL7aDVN.js";import"./contracts.generated-BOn2La0X.js";import"./router-D_ASJIdq.js";import"./constants-rOn-kt-k.js";import"./linters-DOzkJSum.js";import"./asyncComputed-Drro_Pqi.js";import"./index-eHQW7Ie1.js";import"./index-Bj-GtcLl.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]="998b3cfc-df9a-4948-9f45-739f28a2e835",e._sentryDebugIdIdentifier="sentry-dbid-998b3cfc-df9a-4948-9f45-739f28a2e835")}catch{}})();const $=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{...v(r)}}}),x={class:"v-spinner"};function D(e,r,a,c,d,p){return b((f(),h("div",x,[o("div",{class:"v-beat v-beat-odd",style:n(e.spinnerStyle)},null,4),o("div",{class:"v-beat v-beat-even",style:n(e.spinnerStyle)},null,4),o("div",{class:"v-beat v-beat-odd",style:n(e.spinnerStyle)},null,4)],512)),[[g,e.loading]])}const K=u($,[["render",D],["__scopeId","data-v-224007fd"]]),R={class:"content"},j=l({__name:"ProjectLogin",setup(e){const r=B(),a=S(),c=L();function d(){const t=new URL(location.href);t.searchParams.delete("api-key"),a.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){a.push({name:"error"});return}await c.createLogin(t).then(d),a.push({name:"editor"})}),(t,z)=>(f(),k(y,null,{navbar:s(()=>[i(I(P),{style:{padding:"5px 25px",border:"1px solid var(--ac-border-subtle)"}},{title:s(()=>[i(m)]),_:1})]),content:s(()=>[o("div",R,[i(K)])]),_:1}))}}),re=u(j,[["__scopeId","data-v-c9eeae4b"]]);export{re as default};
//# sourceMappingURL=ProjectLogin-DTunazBQ.js.map
