import{d as u,eB as f,H as m,a as b,b as g,c as v,w as s,f as i}from"./outputWidgets.a3cf86d4.js";import{B as _}from"./BaseLayout.f765d34b.js";import{a as h}from"./asyncComputed.1cc21e38.js";import"./router.7ac4af4b.js";import"./index.d3453ff4.js";import{P as y}from"./project.a47b30e0.js";import{O as w}from"./organization.c08461ca.js";import{_ as z}from"./Navbar.vue_vue_type_script_setup_true_lang.f8b41211.js";import{S as I}from"./Sidebar.08dcbd6b.js";import{e as j,Q as C,R as O,S as k,T as B,v as S,G as L,U as P,V as x,M as D}from"./icons.71dd468a.js";import"./Form.48a2d714.js";import"./hasIn.c81db0e4.js";import"./index.cf4c23b9.js";import"./record.284ed593.js";import"./pubsub.f3afa6c4.js";import"./logo.084e5d7c.js";import"./Text.c33f164a.js";import"./Base.438220fe.js";import"./Typography.2d337449.js";import"./index.af89eb75.js";import"./ArrowRightOutlined.08fa31dd.js";import"./index.1c110c61.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]="7df2d00a-5977-4e52-a81d-ae481d2e6689",o._sentryDebugIdIdentifier="sentry-dbid-7df2d00a-5977-4e52-a81d-ae481d2e6689")}catch{}})();const oe=u({__name:"Project",setup(o){const c=f().params.projectId,{result:a}=h(()=>y.get(c).then(async e=>{const t=await w.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}),d=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:P,path:"logs"},{name:"Settings",icon:x,path:"settings"},{name:"Users",icon:D,path:"users"}]}]:[]});return(e,t)=>{const n=b("router-view");return g(),v(_,null,{content:s(()=>[i(n)]),navbar:s(()=>[i(z,{class:"nav",breadcrumb:l.value},null,8,["breadcrumb"])]),sidebar:s(()=>[i(I,{class:"sidebar",sections:d.value},null,8,["sections"])]),_:1})}}});export{oe as default};
//# sourceMappingURL=Project.80069799.js.map
