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.17392370.js";import{B as _}from"./BaseLayout.b515a973.js";import{a as h}from"./asyncComputed.76849272.js";import{P as y}from"./project.3f54ada6.js";import"./console.9b12928f.js";import{O as z}from"./organization.33951447.js";import"./index.c5e8e3a4.js";import{_ as j}from"./Navbar.vue_vue_type_script_setup_true_lang.a1d71624.js";import{S as I}from"./Sidebar.74bc0c7a.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.baa5f07a.js";import"./gateway.ee06b706.js";import"./activeRecord.84b679f6.js";import"./pubsub.fc739490.js";import"./index.7c30bb7a.js";import"./Form.e398e550.js";import"./Title.bc3ff086.js";import"./CollapsePanel.853dbd0d.js";import"./index.2e2d3a0a.js";import"./index.ba0ff767.js";import"./index.84380f11.js";import"./dayjs.05e1ae11.js";import"./index.56ff0f0c.js";import"./index.bd94f307.js";import"./TabPane.25e9ccd4.js";import"./index.8aa7fba2.js";import"./index.50017ce4.js";import"./index.fffd13c2.js";import"./index.d2f4083e.js";import"./index.1fd97730.js";import"./index.3e3b85af.js";import"./index.18880d1b.js";import"./index.8c91651f.js";import"./index.8d8985c7.js";import"./logo.084e5d7c.js";import"./Tooltip.bf2aef65.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]="a1edf21f-7e2d-4eb4-ac35-243ff8c38c30",t._sentryDebugIdIdentifier="sentry-dbid-a1edf21f-7e2d-4eb4-ac35-243ff8c38c30")}catch{}})();const fo=d({__name:"Project",setup(t){const p=b().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}),u=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=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{fo as default};
//# sourceMappingURL=Project.680dbf19.js.map
