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.b43a489b.js";import{B as _}from"./BaseLayout.87d1e05b.js";import{a as h}from"./asyncComputed.a42e75bb.js";import{P as y}from"./project.289e17e1.js";import"./console.bbd86620.js";import{O as z}from"./organization.9d0e88fc.js";import"./index.d989c562.js";import{_ as j}from"./Navbar.vue_vue_type_script_setup_true_lang.19db828d.js";import{S as I}from"./Sidebar.9f99a28c.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.de9af46a.js";import"./gateway.38461683.js";import"./activeRecord.2bc5cc59.js";import"./pubsub.6fd47a9d.js";import"./index.42b92ee8.js";import"./Form.1797df89.js";import"./Title.47040052.js";import"./CollapsePanel.3e5384f9.js";import"./index.523f4a12.js";import"./index.65dea612.js";import"./index.9c88be1a.js";import"./dayjs.caeff4fe.js";import"./index.0279b5ff.js";import"./index.956893d2.js";import"./TabPane.b49c19a0.js";import"./index.0887e3a5.js";import"./index.a775b9cf.js";import"./index.e641ddba.js";import"./index.479accfd.js";import"./index.9367a16c.js";import"./index.8df4e710.js";import"./index.2fc0be8f.js";import"./index.8a60ee51.js";import"./index.85f24c29.js";import"./logo.084e5d7c.js";import"./Tooltip.d3af28c1.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]="69c0b5aa-9929-4394-816f-6a64b075a3f0",t._sentryDebugIdIdentifier="sentry-dbid-69c0b5aa-9929-4394-816f-6a64b075a3f0")}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.29fc8b43.js.map
