import{d,eB as b,H as p,a as g,b as f,c as v,w as r,f as s}from"./outputWidgets.59990c05.js";import{B as _}from"./BaseLayout.ad4fb7f2.js";import{a as h}from"./asyncComputed.8e0b1df8.js";import"./router.a5c5f1f4.js";import"./index.775602e6.js";import{P as z}from"./project.38e9d8ec.js";import{O as y}from"./organization.2dff9514.js";import{_ as j}from"./Navbar.vue_vue_type_script_setup_true_lang.c88bde30.js";import{S as I}from"./Sidebar.277f9b0e.js";import{e as w,J as O,K as C,L as B,M as k,N as L,o as P,O as $,s as E,E as M,F as N,G as S}from"./icons.57eb7190.js";import"./FormItem.bb4c2077.js";import"./hasIn.a77b4ba2.js";import"./index.cf4c23b9.js";import"./record.1da16a3c.js";import"./pubsub.581fae3d.js";import"./logo.084e5d7c.js";import"./Text.f3fc4f5d.js";import"./Base.98c977f1.js";import"./Typography.164def35.js";import"./index.47de3f6a.js";import"./index.b93fafec.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[i]="834758ca-9723-4bdb-bb04-20626511f9ba",o._sentryDebugIdIdentifier="sentry-dbid-834758ca-9723-4bdb-bb04-20626511f9ba")}catch{}})();const ta=d({__name:"Project",setup(o){const c=b().params.projectId,{result:a}=h(()=>z.get(c).then(async e=>{const t=await y.get(e.organizationId);return{project:e,organization:t}})),m=p(()=>{var e,t,n,l;return((e=a.value)==null?void 0:e.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/${(l=a.value)==null?void 0:l.organization.id}`},{label:a.value.project.name,path:`/projects/${a.value.project.id}`}]:void 0}),u=p(()=>{var e;return(e=a.value)!=null&&e.project?[{name:"Project",items:[{name:"Live",path:"live",icon:w},{name:"Builds",path:"builds",icon:O},{name:"Connectors",path:"connectors",icon:C,unavailable:!a.value.organization.featureFlags.CONNECTORS_CONSOLE},{name:"Tables",path:"tables",icon:B},{name:"API Keys",path:"api-keys",icon:k},{name:"Env Vars",path:"env-vars",icon:L},{name:"Files",path:"files",icon:P},{name:"Logs",icon:$,path:"logs"},{name:"Settings",icon:E,path:"settings"}]},{name:"Organization",items:[{name:"Projects",icon:M,path:`/organizations/${a.value.project.organizationId}/projects`},{name:"Members",icon:N,path:`/organizations/${a.value.project.organizationId}/members`},{name:"Billing",icon:S,path:`/organizations/${a.value.project.organizationId}/billing`,unavailable:!0}]}]:[]});return(e,t)=>{const n=g("router-view");return f(),v(_,null,{content:r(()=>[s(n)]),navbar:r(()=>[s(j,{class:"nav",breadcrumb:m.value},null,8,["breadcrumb"])]),sidebar:r(()=>[s(I,{class:"sidebar",sections:u.value},null,8,["sections"])]),_:1})}}});export{ta as default};
//# sourceMappingURL=Project.75ccfb27.js.map
