import{d as _,K as i,b as g,c as v,e as s,z as c,x as d,F as b,J as f,a as y,q as h}from"./registerWidgets.6b985ae3.js";import{a as l}from"./asyncComputed.c09cd499.js";import{P as I}from"./project.76660e72.js";import"./gateway.dce6b10e.js";import{O as j}from"./organization.8d34bfb1.js";import"./index.49f550b6.js";import{N as z}from"./Navbar.5f30bdbf.js";import{S as w}from"./Sidebar.20ea6d44.js";import{I as P,J as k,E as x,K as B,L as $,M as C,F as D,G as E,H as M}from"./icons.d11f56c4.js";import"./activeRecord.2d62b323.js";import"./pubsub.f8c17d6a.js";import"./passwordlessManager.426afe51.js";import"./logo.084e5d7c.js";import"./Tooltip.f51842e2.js";(function(){try{var a=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},o=new Error().stack;o&&(a._sentryDebugIds=a._sentryDebugIds||{},a._sentryDebugIds[o]="ddfd71cc-6639-4d24-9881-cda0dad40762",a._sentryDebugIdIdentifier="sentry-dbid-ddfd71cc-6639-4d24-9881-cda0dad40762")}catch{}})();const N={class:"project"},S={class:"content-wrapper"},F=_({__name:"Project",setup(a){const r=f().params.projectId,{result:e}=l(()=>I.get(r)),{result:t}=l(()=>e.value?j.get(e.value.organizationId):Promise.resolve(null)),p=i(()=>{var n;return t.value&&e.value?[{label:(n=t.value)==null?void 0:n.name,path:`/organizations/${t.value.id}`},{label:e.value.name,path:`/projects/${e.value.id}`}]:void 0}),m=i(()=>e.value?[{name:"Project",items:[{name:"Builds",path:"builds",icon:P},{name:"Connectors",path:"connectors",icon:k},{name:"API Keys",path:"api-keys",icon:x},{name:"Env Vars",path:"env-vars",icon:B},{name:"Logs",icon:$,path:"logs",beta:!0},{name:"Settings",icon:C,path:"settings"}]},{name:"Organization",items:[{name:"Projects",icon:D,path:`/organizations/${e.value.organizationId}/projects`},{name:"Members",icon:E,path:`/organizations/${e.value.organizationId}/members`},{name:"Billing",icon:M,path:`/organizations/${e.value.organizationId}/billing`,unavailable:!0}]}]:[]);return(n,K)=>{const u=y("router-view");return g(),v(b,null,[s(z,{class:"nav",breadcrumb:c(p)},null,8,["breadcrumb"]),d("div",N,[s(w,{class:"sidebar",sections:c(m)},null,8,["sections"]),d("div",S,[s(u)])])],64)}}});const Y=h(F,[["__scopeId","data-v-f3927501"]]);export{Y as default};
//# sourceMappingURL=Project.7c8983b6.js.map
