import{d as u,eB as b,H as m,a as f,b as g,c as v,w as s,f as i}from"./outputWidgets.dd3997b1.js";import{B as _}from"./BaseLayout.896395d3.js";import{a as h}from"./asyncComputed.1a148b8f.js";import"./router.23ca8c5c.js";import"./index.c9914850.js";import{P as y}from"./project.97099b5a.js";import{O as w}from"./organization.54957d71.js";import{_ as z}from"./Navbar.vue_vue_type_script_setup_true_lang.4d66387e.js";import{S as I}from"./Sidebar.0edba9b9.js";import{e as j,R as C,S as O,T as k,U as B,v as S,H as L,V as N,W as P,N as x}from"./icons.9d0ae195.js";import"./Form.366406d1.js";import"./hasIn.fd08179b.js";import"./popupNotifcation.6af08685.js";import"./index.cf4c23b9.js";import"./record.27251633.js";import"./pubsub.7e2ca77e.js";import"./logo.084e5d7c.js";import"./Text.6383284e.js";import"./Base.20fd4dfc.js";import"./Typography.c4837fd7.js";import"./index.d9e12b81.js";import"./ArrowRightOutlined.08fa31dd.js";import"./index.e703a32a.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]="da9d2dd3-3793-4b87-9fee-d5ef56d7b49d",o._sentryDebugIdIdentifier="sentry-dbid-da9d2dd3-3793-4b87-9fee-d5ef56d7b49d")}catch{}})();const te=u({__name:"Project",setup(o){const c=b().params.projectId,{result:a}=h(()=>y.get(c).then(async e=>{const t=await w.get(e.organizationId);return{project:e,organization:t}})),d=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}),l=m(()=>{var e;return(e=a.value)!=null&&e.project?[{name:"Project",items:[{name:"Live",path:"live",icon:j},{name:"Builds",path:"builds",icon:C},{name:"Connectors",path:"connectors",icon:O,unavailable:!a.value.organization.featureFlags.CONNECTORS_CONSOLE},{name:"Tables",path:"tables",icon:k},{name:"API Keys",path:"api-keys",icon:B},{name:"Env Vars",path:"env-vars",icon:S},{name:"Files",path:"files",icon:L},{name:"Logs",icon:N,path:"logs"},{name:"Settings",icon:P,path:"settings"},{name:"Users",icon:x,path:"users"}]}]:[]});return(e,t)=>{const n=f("router-view");return g(),v(_,null,{content:s(()=>[i(n)]),navbar:s(()=>[i(z,{class:"nav",breadcrumb:d.value},null,8,["breadcrumb"])]),sidebar:s(()=>[i(I,{class:"sidebar",sections:l.value},null,8,["sections"])]),_:1})}}});export{te as default};
//# sourceMappingURL=Project.73166dc3.js.map
