import{d as u,eB as f,G as p,a as g,b,c as v,w as r,f as s}from"./outputWidgets.ed48fa42.js";import{B as _}from"./BaseLayout.d9525cfc.js";import{a as h}from"./asyncComputed.bb2b1403.js";import"./router.1b12d634.js";import"./index.5e38be4e.js";import{P as z}from"./project.74c1366e.js";import{O as y}from"./organization.96c70a51.js";import{_ as j}from"./Navbar.vue_vue_type_script_setup_true_lang.a83a88e0.js";import{S as I}from"./Sidebar.776cb86d.js";import{e as w,L as O,M as C,N as B,O as P,P as k,q as L,Q as $,s as M,G as N,H as S,I as x}from"./icons.92b5bc38.js";import"./FormItem.c1c36356.js";import"./hasIn.a220eabf.js";import"./index.60984836.js";import"./index.cf4c23b9.js";import"./record.2ea2ab4d.js";import"./pubsub.90864e85.js";import"./logo.084e5d7c.js";import"./Text.b5b9d884.js";import"./index.ce22d79e.js";import"./index.2264b72c.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]="5df8e348-e502-4ef4-9d07-f421923eff8d",o._sentryDebugIdIdentifier="sentry-dbid-5df8e348-e502-4ef4-9d07-f421923eff8d")}catch{}})();const oe=u({__name:"Project",setup(o){const c=f().params.projectId,{result:e}=h(()=>z.get(c).then(async a=>{const t=await y.get(a.organizationId);return{project:a,organization:t}})),m=p(()=>{var a,t,n,l;return((a=e.value)==null?void 0:a.organization)&&e.value.project?[{label:"My organizations",path:"/organizations"},{label:(n=(t=e.value)==null?void 0:t.organization)==null?void 0:n.name,path:`/organizations/${(l=e.value)==null?void 0:l.organization.id}`},{label:e.value.project.name,path:`/projects/${e.value.project.id}`}]:void 0}),d=p(()=>{var a;return(a=e.value)!=null&&a.project?[{name:"Project",items:[{name:"Live",path:"live",icon:w},{name:"Builds",path:"builds",icon:O},{name:"Connectors",path:"connectors",icon:C,unavailable:!e.value.organization.featureFlags.CONNECTORS_CONSOLE},{name:"Tables",path:"tables",icon:B},{name:"API Keys",path:"api-keys",icon:P},{name:"Env Vars",path:"env-vars",icon:k},{name:"Files",path:"files",icon:L},{name:"Logs",icon:$,path:"logs"},{name:"Settings",icon:M,path:"settings"}]},{name:"Organization",items:[{name:"Projects",icon:N,path:`/organizations/${e.value.project.organizationId}/projects`},{name:"Members",icon:S,path:`/organizations/${e.value.project.organizationId}/members`},{name:"Billing",icon:x,path:`/organizations/${e.value.project.organizationId}/billing`,unavailable:!0}]}]:[]});return(a,t)=>{const n=g("router-view");return b(),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:d.value},null,8,["sections"])]),_:1})}}});export{oe as default};
//# sourceMappingURL=Project.cfabadef.js.map
