import{d,eA as b,J as c,a as g,b as v,c as f,w as i,f as s}from"./outputWidgets.eddbac36.js";import{B as _}from"./BaseLayout.bab34813.js";import{a as h}from"./asyncComputed.fbd351ba.js";import{P as y}from"./project.d3d29cca.js";import"./console.56ba8e89.js";import{O as z}from"./organization.69809293.js";import"./index.c1e978a8.js";import{_ as j}from"./Navbar.vue_vue_type_script_setup_true_lang.0d731b76.js";import{S as I}from"./Sidebar.947219a8.js";import{I as w,J as k,K as B,L as P,M as $,N as C,O as M,F as x,G as D,H as L}from"./icons.08aaa24c.js";import"./gateway.e4ec4a58.js";import"./activeRecord.64b754df.js";import"./pubsub.9aea5614.js";import"./index.cc18f239.js";import"./Form.f5163eed.js";import"./Title.7ca27be1.js";import"./index.1a0ec4ff.js";import"./index.31447910.js";import"./index.9c583b89.js";import"./dayjs.d80a3524.js";import"./index.8318ec36.js";import"./index.8b693270.js";import"./TabPane.05333dfb.js";import"./index.b6a61078.js";import"./index.7a28d537.js";import"./index.d099a09e.js";import"./index.933610ff.js";import"./index.2c51d0a8.js";import"./index.b131e8f9.js";import"./index.3475d619.js";import"./index.f428cf3a.js";import"./logo.084e5d7c.js";import"./Tooltip.94e52160.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="9117e521-3c28-49e2-b388-ade0a4ae96db",e._sentryDebugIdIdentifier="sentry-dbid-9117e521-3c28-49e2-b388-ade0a4ae96db")}catch{}})();const da=d({__name:"Project",setup(e){const p=b().params.projectId,{result:a}=h(()=>y.get(p).then(async o=>{const t=await z.get(o.organizationId);return{project:o,organization:t}})),l=c(()=>{var o,t,n,m;return((o=a.value)==null?void 0:o.organization)&&a.value.project?[{label:"My organizations",path:"/organizations"},{label:(n=(t=a.value)==null?void 0:t.organization)==null?void 0:n.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,t)=>{const n=g("router-view");return v(),f(_,null,{content:i(()=>[s(n)]),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{da as default};
//# sourceMappingURL=Project.17d37898.js.map
