import{d as u,eA as g,J as c,a as b,b as f,c as v,w as i,f as s}from"./outputWidgets.52de64cd.js";import{B as _}from"./BaseLayout.c2f90625.js";import{a as h}from"./asyncComputed.00e76dd1.js";import{P as y}from"./project.3a024f51.js";import"./console.4411c7a7.js";import{O as z}from"./organization.c1c9ebf3.js";import"./index.8361ad88.js";import{_ as j}from"./Navbar.vue_vue_type_script_setup_true_lang.af414718.js";import{S as I}from"./Sidebar.6597dab7.js";import{k as w,J as k,K as B,L as P,M as $,N as C,O as M,G as x,H as D,I as L}from"./icons.bf6505eb.js";import"./gateway.e1457457.js";import"./activeRecord.ebcbfc07.js";import"./pubsub.6e9aa6f2.js";import"./index.a07ffcc5.js";import"./Form.09072055.js";import"./Title.baba2b21.js";import"./index.7800af0b.js";import"./index.c0e74c90.js";import"./index.e5d92658.js";import"./dayjs.7ad6aa6d.js";import"./index.5718341d.js";import"./index.3ed5d65c.js";import"./TabPane.c3c2f5a1.js";import"./index.396ff1b5.js";import"./CollapsePanel.d756b861.js";import"./index.9b3c2ba8.js";import"./index.f6c308cc.js";import"./index.f7915957.js";import"./index.1ebdd57a.js";import"./index.7fdb6bd8.js";import"./index.693f4596.js";import"./index.5a37ef67.js";import"./index.19e4a065.js";import"./logo.084e5d7c.js";import"./Tooltip.c187cf3d.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},n=new Error().stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="8dd3ad72-af33-434c-890f-ae88535d604e",t._sentryDebugIdIdentifier="sentry-dbid-8dd3ad72-af33-434c-890f-ae88535d604e")}catch{}})();const fo=u({__name:"Project",setup(t){const p=g().params.projectId,{result:o}=h(()=>y.get(p).then(async a=>{const e=await z.get(a.organizationId);return{project:a,organization:e}})),l=c(()=>{var a,e,r,m;return((a=o.value)==null?void 0:a.organization)&&o.value.project?[{label:"My organizations",path:"/organizations"},{label:(r=(e=o.value)==null?void 0:e.organization)==null?void 0:r.name,path:`/organizations/${(m=o.value)==null?void 0:m.organization.id}`},{label:o.value.project.name,path:`/projects/${o.value.project.id}`}]:void 0}),d=c(()=>{var a;return(a=o.value)!=null&&a.project?[{name:"Project",items:[{name:"Builds",path:"builds",icon:w},{name:"Connectors",path:"connectors",icon:k},{name:"Tables",path:"tables",icon:B},{name:"API Keys",path:"api-keys",icon:P},{name:"Env Vars",path:"env-vars",icon:$},{name:"Logs",icon:C,path:"logs",beta:!0},{name:"Settings",icon:M,path:"settings"}]},{name:"Organization",items:[{name:"Projects",icon:x,path:`/organizations/${o.value.project.organizationId}/projects`},{name:"Members",icon:D,path:`/organizations/${o.value.project.organizationId}/members`},{name:"Billing",icon:L,path:`/organizations/${o.value.project.organizationId}/billing`,unavailable:!0}]}]:[]});return(a,e)=>{const r=b("router-view");return f(),v(_,null,{content:i(()=>[s(r)]),navbar:i(()=>[s(j,{class:"nav",breadcrumb:l.value},null,8,["breadcrumb"])]),sidebar:i(()=>[s(I,{class:"sidebar",sections:d.value},null,8,["sections"])]),_:1})}}});export{fo as default};
//# sourceMappingURL=Project.7395b467.js.map
