import{d,eB as b,G as m,a as g,b as v,c as f,w as r,f as s}from"./outputWidgets.6c6bbcfd.js";import{B as h}from"./BaseLayout.41269b73.js";import{a as _}from"./asyncComputed.77186ed9.js";import"./router.98f12fd8.js";import"./index.fa74f1f3.js";import{P as y}from"./project.680d2460.js";import{O as z}from"./organization.0937221e.js";import{_ as j}from"./Navbar.vue_vue_type_script_setup_true_lang.249bda57.js";import{S as I}from"./Sidebar.7639c037.js";import{y as w,z as B,A as k,B as C,C as P,D as $,q as x,E as D,F as L,u as M,v as O,x as S}from"./icons.89c226d3.js";import"./Base.d198dcc9.js";import"./transButton.2945a1d9.js";import"./Text.51d0b007.js";import"./Title.307e6445.js";import"./index.d102918e.js";import"./record.5aef9f17.js";import"./pubsub.ccb56b51.js";import"./gateway.3543d1b0.js";import"./logo.084e5d7c.js";import"./index.eb6d3cc3.js";import"./Tooltip.30e005fb.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]="b099c52b-2522-43c8-8c3e-c353c347e74e",o._sentryDebugIdIdentifier="sentry-dbid-b099c52b-2522-43c8-8c3e-c353c347e74e")}catch{}})();const te=d({__name:"Project",setup(o){const c=b().params.projectId,{result:e}=_(()=>y.get(c).then(async a=>{const t=await z.get(a.organizationId);return{project:a,organization:t}})),l=m(()=>{var a,t,n,p;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/${(p=e.value)==null?void 0:p.organization.id}`},{label:e.value.project.name,path:`/projects/${e.value.project.id}`}]:void 0}),u=m(()=>{var a;return(a=e.value)!=null&&a.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:C},{name:"API Keys",path:"api-keys",icon:P},{name:"Env Vars",path:"env-vars",icon:$},{name:"Files",path:"files",icon:x},{name:"Logs",icon:D,path:"logs",beta:!0},{name:"Settings",icon:L,path:"settings"}]},{name:"Organization",items:[{name:"Projects",icon:M,path:`/organizations/${e.value.project.organizationId}/projects`},{name:"Members",icon:O,path:`/organizations/${e.value.project.organizationId}/members`},{name:"Billing",icon:S,path:`/organizations/${e.value.project.organizationId}/billing`,unavailable:!0}]}]:[]});return(a,t)=>{const n=g("router-view");return v(),f(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{te as default};
//# sourceMappingURL=Project.db44b282.js.map
