import{d as u,eB as g,G as p,a as b,b as f,c as v,w as r,f as s}from"./outputWidgets.1e038a78.js";import{B as _}from"./BaseLayout.88802a90.js";import{a as h}from"./asyncComputed.499f8882.js";import"./router.399d85a7.js";import"./index.8620d4ea.js";import{P as z}from"./project.b7c93078.js";import{O as y}from"./organization.eeb3108f.js";import{_ as j}from"./Navbar.vue_vue_type_script_setup_true_lang.2ef04e4e.js";import{S as I}from"./Sidebar.d5d1d90d.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.d1aae4c7.js";import"./FormItem.542b6ffb.js";import"./hasIn.3b666b8d.js";import"./index.0ed8646e.js";import"./index.cf4c23b9.js";import"./record.c646ebe1.js";import"./pubsub.3f35ef3d.js";import"./logo.084e5d7c.js";import"./Text.44f96dcb.js";import"./index.5dbcb54e.js";import"./index.912bd131.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]="546dad06-e73e-4355-994e-68236839c2df",o._sentryDebugIdIdentifier="sentry-dbid-546dad06-e73e-4355-994e-68236839c2df")}catch{}})();const oa=u({__name:"Project",setup(o){const c=g().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}),d=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: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/${a.value.project.organizationId}/projects`},{name:"Members",icon:S,path:`/organizations/${a.value.project.organizationId}/members`},{name:"Billing",icon:x,path:`/organizations/${a.value.project.organizationId}/billing`,unavailable:!0}]}]:[]});return(e,t)=>{const n=b("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:d.value},null,8,["sections"])]),_:1})}}});export{oa as default};
//# sourceMappingURL=Project.01f76f9a.js.map
