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.23000524.js";import{B as _}from"./BaseLayout.fb807333.js";import{a as h}from"./asyncComputed.119d5dc7.js";import"./router.863e00fe.js";import"./index.a8f1483f.js";import{P as y}from"./project.0b0ecf2e.js";import{O as j}from"./organization.b1ff8ccf.js";import{_ as z}from"./Navbar.vue_vue_type_script_setup_true_lang.730b2a97.js";import{S as I}from"./Sidebar.9a159bd6.js";import{e as w,Q as C,R as O,S as k,T as B,v as L,G as P,U as S,V as x,M as D,L as E}from"./icons.4c4e9b27.js";import"./Form.516b88d2.js";import"./hasIn.28f00305.js";import"./index.cf4c23b9.js";import"./record.fdd32742.js";import"./pubsub.1c155070.js";import"./logo.084e5d7c.js";import"./Text.4a706067.js";import"./Base.4c280123.js";import"./Typography.05b88506.js";import"./index.4490617e.js";import"./ArrowRightOutlined.08fa31dd.js";import"./index.235cb6c6.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]="fd4c0c18-6658-4c68-b3ae-61e3f60287dc",o._sentryDebugIdIdentifier="sentry-dbid-fd4c0c18-6658-4c68-b3ae-61e3f60287dc")}catch{}})();const te=d({__name:"Project",setup(o){const c=f().params.projectId,{result:e}=h(()=>y.get(c).then(async a=>{const t=await j.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: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:L},{name:"Files",path:"files",icon:P},{name:"Logs",icon:S,path:"logs"},{name:"Settings",icon:x,path:"settings"},{name:"Users",icon:D,path:"users"}]},{name:"Organization",items:[{name:"Projects",icon:E,path:`/organizations/${e.value.project.organizationId}/projects`}]}]:[]});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{te as default};
//# sourceMappingURL=Project.8ae74feb.js.map
