import{S as p}from"./Sidebar.e9cedb40.js";import{N as u}from"./Navbar.60d8d8eb.js";import{I as d,E as v,J as _,K as g,c as b,F as f,G as h,H as j}from"./icons.ea1ef9e9.js";import{a as n}from"./asyncComputed.841de1fc.js";import{P as z}from"./project.eda7f383.js";import{d as I,K as r,am as P,b as y,c as k,e as t,z as i,x,F as B,J as $,a as w,q as E}from"./registerWidgets.81004098.js";import"./passwordlessManager.d8088db9.js";import{O as N}from"./organization.91baba90.js";import"./Tooltip.879659d1.js";import"./logo.084e5d7c.js";import"./utils.ac5c1175.js";import"./pubsub.a0411919.js";const S={class:"project"},C=I({__name:"Project",setup(F){const l=$().params.projectId,{result:a}=n(()=>z.get(l)),{result:e}=n(()=>a.value?N.get(a.value.organizationId):Promise.resolve(null)),s=r(()=>{var o;return e.value&&a.value?[{label:(o=e.value)==null?void 0:o.name,path:`/organizations/${e.value.id}`},{label:a.value.name,path:`/projects/${a.value.id}`}]:void 0});P(()=>{console.log(s.value)});const c=r(()=>a.value?[{name:"Project",items:[{name:"Builds",path:"builds",icon:d},{name:"API Keys",path:"api-keys",icon:v},{name:"Env Vars",path:"env-vars",icon:_},{name:"Logs",icon:g,unavailable:!0,path:"logs"},{name:"Settings",icon:b,unavailable:!0,path:"settings"}]},{name:"Organization",items:[{name:"Projects",icon:f,path:`/organizations/${a.value.organizationId}/projects`},{name:"Members",icon:h,path:`/organizations/${a.value.organizationId}/members`},{name:"Billing",icon:j,path:`/organizations/${a.value.organizationId}/billing`,unavailable:!0}]}]:[]);return(o,M)=>{const m=w("router-view");return y(),k(B,null,[t(u,{class:"nav",breadcrumb:i(s)},null,8,["breadcrumb"]),x("div",S,[t(p,{class:"sidebar",sections:i(c)},null,8,["sections"]),t(m)])],64)}}});const U=E(C,[["__scopeId","data-v-5fe87aab"]]);export{U as default};
//# sourceMappingURL=Project.d9ec5254.js.map
