import{_ as m}from"./AbstraLogo.vue_vue_type_script_setup_true_lang-Bv4ioy1b.js";import{B as y}from"./BaseLayout-rS36fZtH.js";import{e as l,R as _,a0 as b,aM as u,aI as v,aJ as g,g as f,f as h,k as o,H as s,P as w,af as S,n as k,w as n,aj as I,v as i,p as B}from"./jwt-decode.esm-BqGP18yB.js";import{u as $}from"./editor-BsSRQxsN.js";import{A as L}from"./index-BaQ8cE3j.js";import"./logo-BiWG9_W5.js";import"./Logo-BqFI0zUz.js";import"./ts.worker-hurvzKxX.js";import"./workspaceStore-Cu41OBef.js";import"./userStore-DcKmjdDx.js";import"./runnerData-BpSzztKt.js";import"./url-YfJg_a8Q.js";import"./colorHelpers-5riH0JNn.js";import"./useCodebaseEvents-DPvKYBye.js";import"./contracts.generated-Dfht8ecQ.js";import"./files-vYCq_6zA.js";import"./PhBug.vue-Dq3VvaZw.js";import"./router-CXkMa0R8.js";import"./constants-CtuskQyt.js";import"./index-CRhDPqL8.js";import"./index-B-x2aGdm.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]="9f23376e-01ea-472e-bb9f-9097a6ccc003",e._sentryDebugIdIdentifier="sentry-dbid-9f23376e-01ea-472e-bb9f-9097a6ccc003")}catch{}})();const P=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)}}}),R={class:"v-spinner"};function x(e,r,a,c,d,p){return v((f(),h("div",R,[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)),[[g,e.loading]])}const D=u(P,[["render",x],["__scopeId","data-v-224007fd"]]),j={class:"content"},z=l({__name:"ProjectLogin",setup(e){const r=I(),a=S(),c=$();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,A)=>(f(),k(y,null,{navbar:n(()=>[i(B(L),{style:{padding:"5px 25px",border:"1px solid var(--ac-border-subtle)"}},{title:n(()=>[i(m)]),_:1})]),content:n(()=>[o("div",j,[i(D)])]),_:1}))}}),re=u(z,[["__scopeId","data-v-c9eeae4b"]]);export{re as default};
//# sourceMappingURL=ProjectLogin-BR-K_JId.js.map
