import{d,eA as b,J as c,a as g,b as f,c as v,w as i,f as s}from"./outputWidgets.1f391ab3.js";import{B as _}from"./BaseLayout.40ae7430.js";import{a as h}from"./asyncComputed.56fb497e.js";import{P as y}from"./project.76ccde49.js";import"./console.3edc9cde.js";import{O as z}from"./organization.390058ee.js";import"./index.e8fb5940.js";import{_ as j}from"./Navbar.vue_vue_type_script_setup_true_lang.3d43f6bf.js";import{S as I}from"./Sidebar.4f7628fa.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.35fd2af6.js";import"./gateway.98993b50.js";import"./activeRecord.b9964a93.js";import"./pubsub.ab26e051.js";import"./index.a24e4cfd.js";import"./Form.d88e907e.js";import"./Title.e19c9b7e.js";import"./CollapsePanel.ed22c9ce.js";import"./index.3daa08be.js";import"./index.beaf06d8.js";import"./index.16917afa.js";import"./dayjs.12321a58.js";import"./index.06f9a351.js";import"./index.130e9d58.js";import"./TabPane.49afc3f4.js";import"./index.a2705008.js";import"./index.257ed691.js";import"./index.72e9f57c.js";import"./index.4260e6cf.js";import"./index.f0baefdd.js";import"./index.37b8f4ea.js";import"./index.18aa8459.js";import"./index.d09067f1.js";import"./index.6e066317.js";import"./logo.084e5d7c.js";import"./Tooltip.96672692.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]="f58d29b2-1a75-4a3b-8c11-fcb284a16ac3",t._sentryDebugIdIdentifier="sentry-dbid-f58d29b2-1a75-4a3b-8c11-fcb284a16ac3")}catch{}})();const ga=d({__name:"Project",setup(t){const p=b().params.projectId,{result:a}=h(()=>y.get(p).then(async o=>{const e=await z.get(o.organizationId);return{project:o,organization:e}})),l=c(()=>{var o,e,r,m;return((o=a.value)==null?void 0:o.organization)&&a.value.project?[{label:"My organizations",path:"/organizations"},{label:(r=(e=a.value)==null?void 0:e.organization)==null?void 0:r.name,path:`/organizations/${(m=a.value)==null?void 0:m.organization.id}`},{label:a.value.project.name,path:`/projects/${a.value.project.id}`}]:void 0}),u=c(()=>{var o;return(o=a.value)!=null&&o.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/${a.value.project.organizationId}/projects`},{name:"Members",icon:D,path:`/organizations/${a.value.project.organizationId}/members`},{name:"Billing",icon:L,path:`/organizations/${a.value.project.organizationId}/billing`,unavailable:!0}]}]:[]});return(o,e)=>{const r=g("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:u.value},null,8,["sections"])]),_:1})}}});export{ga as default};
//# sourceMappingURL=Project.c746345b.js.map
