import{d,ey as b,H as m,a as g,b as f,c as v,w as i,f as s}from"./registerWidgets.5ceb46ef.js";import{B as _}from"./BaseLayout.4bdff06f.js";import{a as y}from"./asyncComputed.fd157db2.js";import{P as h}from"./project.2ac52f46.js";import"./gateway.fadd845e.js";import{O as z}from"./organization.9116c226.js";import"./index.e1d2843e.js";import{_ as j}from"./Navbar.vue_vue_type_script_setup_true_lang.5cf2e83f.js";import{S as I}from"./Sidebar.32827909.js";import{G as w,H as k,I as B,J as P,K as $,L as C,M as D,D as M,E as x,F as L}from"./icons.b59fe784.js";import"./activeRecord.693e9703.js";import"./pubsub.451b7de0.js";import"./passwordlessManager.db35a950.js";import"./storage.4e9cf889.js";import"./logo.084e5d7c.js";import"./index.1a41b32a.js";import"./Title.d4cb8bc4.js";import"./index.4fdcdf65.js";import"./index.577eba83.js";import"./Tooltip.b42f8892.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new Error().stack;r&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[r]="3409493e-c90b-41e7-aee8-a76acf97a0dd",o._sentryDebugIdIdentifier="sentry-dbid-3409493e-c90b-41e7-aee8-a76acf97a0dd")}catch{}})();const aa=d({__name:"Project",setup(o){const c=b().params.projectId,{result:a}=y(()=>h.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:"Builds",path:"builds",icon:w},{name:"Connectors",path:"connectors",icon:k},{name:"Tables",path:"tables",icon:B},{name:"API Keys",path:"api-keys",icon:P},{name:"Env Vars",path:"env-vars",icon:$},{name:"Logs",icon:C,path:"logs",beta:!0},{name:"Settings",icon:D,path:"settings"}]},{name:"Organization",items:[{name:"Projects",icon:M,path:`/organizations/${a.value.project.organizationId}/projects`},{name:"Members",icon:x,path:`/organizations/${a.value.project.organizationId}/members`},{name:"Billing",icon:L,path:`/organizations/${a.value.project.organizationId}/billing`,unavailable:!0}]}]:[]});return(e,t)=>{const n=g("router-view");return f(),v(_,null,{content:i(()=>[s(n)]),navbar:i(()=>[s(j,{class:"nav",breadcrumb:l.value},null,8,["breadcrumb"])]),sidebar:i(()=>[s(I,{class:"sidebar",sections:u.value},null,8,["sections"])]),_:1})}}});export{aa as default};
//# sourceMappingURL=Project.51f00ee9.js.map
