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.396f5ce1.js";import{B as h}from"./BaseLayout.16854fe5.js";import{a as _}from"./asyncComputed.95737324.js";import"./router.898a5ca4.js";import"./index.d80eeb49.js";import{P as y}from"./project.e7f48580.js";import{O as z}from"./organization.e739f1ec.js";import{_ as j}from"./Navbar.vue_vue_type_script_setup_true_lang.3f62416a.js";import{S as I}from"./Sidebar.d3db2ba0.js";import{C as w,H as k,I as B,J as C,K as P,L as $,u as L,M,N as x,E as D,F as O,G as S}from"./icons.37b6f90f.js";import"./FormItem.a8de7296.js";import"./hasIn.63a13365.js";import"./index.f3919413.js";import"./index.cf4c23b9.js";import"./record.1aff3d29.js";import"./pubsub.06faa612.js";import"./gateway.a0e7cb55.js";import"./logo.084e5d7c.js";import"./Text.4e180dc2.js";import"./Base.ee1dde08.js";import"./index.f6bad865.js";import"./Tooltip.92756f89.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]="d9afdab3-52f5-46bf-93bb-8f9b2c447ba0",o._sentryDebugIdIdentifier="sentry-dbid-d9afdab3-52f5-46bf-93bb-8f9b2c447ba0")}catch{}})();const na=d({__name:"Project",setup(o){const c=b().params.projectId,{result:a}=_(()=>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:k},{name:"Connectors",path:"connectors",icon:B},{name:"Tables",path:"tables",icon:C},{name:"API Keys",path:"api-keys",icon:P},{name:"Env Vars",path:"env-vars",icon:$},{name:"Files",path:"files",icon:L},{name:"Logs",icon:M,path:"logs",beta:!0},{name:"Settings",icon:x,path:"settings"}]},{name:"Organization",items:[{name:"Projects",icon:D,path:`/organizations/${a.value.project.organizationId}/projects`},{name:"Members",icon:O,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=f("router-view");return g(),v(h,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.b2bdde51.js.map
