import{_ as m}from"./AbstraLogo.vue_vue_type_script_setup_true_lang--TrSji4U.js";import{B as y}from"./BaseLayout-8rFeaZVy.js";import{a as l,W as _,a5 as b,aK as u,aG as g,aH as v,f,k as h,n as o,Q as s,J as w,af as S,b as k,w as n,ag as B,h as i,u as I}from"./jwt-decode.esm-Dw_OlTCW.js";import{u as $}from"./editor-Cv3nuAVg.js";import{A as L}from"./index-BkFmLeP_.js";import"./logo-BiWG9_W5.js";import"./Logo-CecBL509.js";import"./router-EePVc0Jw.js";import"./userStore-4FpRPoeM.js";import"./workspaceStore-CeNiHwH_.js";import"./runnerData-DZ54UJZ3.js";import"./url-vGC2YsRB.js";import"./colorHelpers-Chvd75S3.js";import"./useCodebaseEvents-Bflf0zUq.js";import"./contracts.generated-BY4ff4DP.js";import"./ts.worker-5sEEipil.js";import"./constants-DtajWhvQ.js";import"./linters-7piodHpP.js";import"./asyncComputed-3zrnCYug.js";import"./index-BNW_czQY.js";import"./index-CKBppVEa.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]="da5a5db0-ce26-4201-baed-0d9935b25f50",e._sentryDebugIdIdentifier="sentry-dbid-da5a5db0-ce26-4201-baed-0d9935b25f50")}catch{}})();const x=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 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,a,d,p,c){return g((f(),h("div",D,[o("div",{class:"v-beat v-beat-odd",style:s(e.spinnerStyle)},null,4),o("div",{class:"v-beat v-beat-even",style:s(e.spinnerStyle)},null,4),o("div",{class:"v-beat v-beat-odd",style:s(e.spinnerStyle)},null,4)],512)),[[v,e.loading]])}const P=u(x,[["render",K],["__scopeId","data-v-06538001"]]),R={class:"content"},z=l({__name:"ProjectLogin",setup(e){const r=B(),a=S(),d=$();function p(){const t=new URL(location.href);t.searchParams.delete("api-key"),a.replace(t.pathname+t.search)}function c(){const t=r.query["api-key"];if(typeof t=="string")return t}return w(async()=>{const t=c();if(!t){a.push({name:"error"});return}await d.createLogin(t).then(p),a.push({name:"editor"})}),(t,A)=>(f(),k(y,null,{navbar:n(()=>[i(I(L),{style:{padding:"5px 25px",border:"1px solid #f0f0f0"}},{title:n(()=>[i(m)]),_:1})]),content:n(()=>[o("div",R,[i(P)])]),_:1}))}}),re=u(z,[["__scopeId","data-v-d2a19803"]]);export{re as default};
//# sourceMappingURL=ProjectLogin-BCK1zbTY.js.map
