import{d,eB as b,G as m,a as f,b as g,c as v,w as r,f as s}from"./outputWidgets.31ce2d5c.js";import{B as _}from"./BaseLayout.bada4c41.js";import{a as h}from"./asyncComputed.7e3e21f4.js";import"./router.8f071dc2.js";import"./index.e05c62e3.js";import{P as y}from"./project.41cba40c.js";import{O as z}from"./organization.e24bfce8.js";import{_ as j}from"./Navbar.vue_vue_type_script_setup_true_lang.875539f3.js";import{_ as I}from"./Sidebar.vue_vue_type_script_setup_true_lang.0c28603a.js";import{B as w,H as B,I as k,J as $,K as P,L as C,u as D,M as L,N as M,D as x,E as O,F as E}from"./icons.266b547d.js";import"./FormItem.5f0b61bf.js";import"./hasIn.932773c2.js";import"./index.0d76378d.js";import"./index.cf4c23b9.js";import"./record.b2148451.js";import"./pubsub.2d9ab3f4.js";import"./gateway.3615e807.js";import"./logo.084e5d7c.js";import"./Text.46c5bec2.js";import"./Base.eeda2dae.js";import"./index.cad5b763.js";import"./index.627ab86d.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]="bf02f38f-58f5-445a-8a90-738ea349710b",o._sentryDebugIdIdentifier="sentry-dbid-bf02f38f-58f5-445a-8a90-738ea349710b")}catch{}})();const na=d({__name:"Project",setup(o){const c=b().params.projectId,{result:a}=h(()=>y.get(c).then(async e=>{const t=await z.get(e.organizationId);return{project:e,organization:t}})),l=m(()=>{var e,t,n,p;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/${(p=a.value)==null?void 0:p.organization.id}`},{label:a.value.project.name,path:`/projects/${a.value.project.id}`}]:void 0}),u=m(()=>{var e;return(e=a.value)!=null&&e.project?[{name:"Project",items:[{name:"Live",path:"live",icon:w},{name:"Builds",path:"builds",icon:B},{name:"Connectors",path:"connectors",icon:k},{name:"Tables",path:"tables",icon:$},{name:"API Keys",path:"api-keys",icon:P},{name:"Env Vars",path:"env-vars",icon:C},{name:"Files",path:"files",icon:D},{name:"Logs",icon:L,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:O,path:`/organizations/${a.value.project.organizationId}/members`},{name:"Billing",icon:E,path:`/organizations/${a.value.project.organizationId}/billing`,unavailable:!0}]}]:[]});return(e,t)=>{const n=f("router-view");return g(),v(_,null,{content:r(()=>[s(n)]),navbar:r(()=>[s(j,{class:"nav",breadcrumb:l.value},null,8,["breadcrumb"])]),sidebar:r(()=>[s(I,{class:"sidebar",sections:u.value},null,8,["sections"])]),_:1})}}});export{na as default};
//# sourceMappingURL=Project.bb26e738.js.map
