import{d,eB as f,H as m,a as b,b as g,c as v,w as s,f as i}from"./outputWidgets.181aa682.js";import{B as _}from"./BaseLayout.46a6c8c9.js";import{a as h}from"./asyncComputed.7ebec2c8.js";import"./router.b42d7cbe.js";import"./index.b33a0e54.js";import{P as y}from"./project.9a80be33.js";import{O as w}from"./organization.c6a7236b.js";import{_ as z}from"./Navbar.vue_vue_type_script_setup_true_lang.ceda935d.js";import{S as I}from"./Sidebar.40d2470f.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.0993a98a.js";import"./Form.674f6096.js";import"./hasIn.95ace56c.js";import"./popupNotifcation.39419412.js";import"./index.cf4c23b9.js";import"./record.36169a1a.js";import"./pubsub.ce62596d.js";import"./logo.084e5d7c.js";import"./Text.c22c06ac.js";import"./Base.5a460e6d.js";import"./Typography.136d7768.js";import"./index.b49e989c.js";import"./ArrowRightOutlined.08fa31dd.js";import"./index.069ae257.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]="62fa4234-157b-4a13-8390-f0fd1baa9993",o._sentryDebugIdIdentifier="sentry-dbid-62fa4234-157b-4a13-8390-f0fd1baa9993")}catch{}})();const ta=d({__name:"Project",setup(o){const c=f().params.projectId,{result:e}=h(()=>y.get(c).then(async a=>{const t=await w.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:j},{name:"Builds",path:"builds",icon:C},{name:"Connectors",path:"connectors",icon:O,unavailable:!e.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(a,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:u.value},null,8,["sections"])]),_:1})}}});export{ta as default};
//# sourceMappingURL=Project.8aaf2789.js.map
