import{d,eB as b,H as m,a as f,b as g,c as v,w as s,f as i}from"./outputWidgets.d0655b77.js";import{B as _}from"./BaseLayout.39945c51.js";import{a as h}from"./asyncComputed.6d9729a3.js";import"./router.f0341f86.js";import"./index.ec8c2171.js";import{P as y}from"./project.a6ba2a90.js";import{O as w}from"./organization.8fcc1a76.js";import{_ as z}from"./Navbar.vue_vue_type_script_setup_true_lang.72b42b09.js";import{S as I}from"./Sidebar.05b04300.js";import{e as j,Q as C,R as O,S as k,T as B,v as S,G as L,U as P,V as x,M as D}from"./icons.48cd3bcb.js";import"./Form.7eb0b389.js";import"./hasIn.195539bf.js";import"./index.cf4c23b9.js";import"./record.f8788007.js";import"./pubsub.8725881c.js";import"./logo.084e5d7c.js";import"./Text.9f828711.js";import"./Base.f7249e73.js";import"./Typography.a3b07fc7.js";import"./index.d04975f7.js";import"./ArrowRightOutlined.08fa31dd.js";import"./index.0c97541b.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="fea6c30a-3a93-4104-a0c5-db68287e6a11",o._sentryDebugIdIdentifier="sentry-dbid-fea6c30a-3a93-4104-a0c5-db68287e6a11")}catch{}})();const oa=d({__name:"Project",setup(o){const c=b().params.projectId,{result:e}=h(()=>y.get(c).then(async a=>{const t=await w.get(a.organizationId);return{project:a,organization:t}})),l=m(()=>{var a,t,n,p;return((a=e.value)==null?void 0:a.organization)&&e.value.project?[{label:"My organizations",path:"/organizations"},{label:(n=(t=e.value)==null?void 0:t.organization)==null?void 0:n.name,path:`/organizations/${(p=e.value)==null?void 0:p.organization.id}`},{label:e.value.project.name,path:`/projects/${e.value.project.id}`}]:void 0}),u=m(()=>{var a;return(a=e.value)!=null&&a.project?[{name:"Project",items:[{name:"Live",path:"live",icon:j},{name:"Builds",path:"builds",icon:C},{name:"Connectors",path:"connectors",icon:O,unavailable:!e.value.organization.featureFlags.CONNECTORS_CONSOLE},{name:"Tables",path:"tables",icon:k},{name:"API Keys",path:"api-keys",icon:B},{name:"Env Vars",path:"env-vars",icon:S},{name:"Files",path:"files",icon:L},{name:"Logs",icon:P,path:"logs"},{name:"Settings",icon:x,path:"settings"},{name:"Users",icon:D,path:"users"}]}]:[]});return(a,t)=>{const n=f("router-view");return g(),v(_,null,{content:s(()=>[i(n)]),navbar:s(()=>[i(z,{class:"nav",breadcrumb:l.value},null,8,["breadcrumb"])]),sidebar:s(()=>[i(I,{class:"sidebar",sections:u.value},null,8,["sections"])]),_:1})}}});export{oa as default};
//# sourceMappingURL=Project.f7c749dd.js.map
