import{d as b,eB as g,H as r,a as f,b as v,c as _,w as s,f as l}from"./outputWidgets.ed989e0a.js";import{B as h}from"./BaseLayout.7ec04095.js";import{a as y}from"./asyncComputed.9f78a6df.js";import"./router.5e7d449c.js";import"./index.46777a19.js";import{P as z}from"./project.9f93cb4f.js";import{O as w}from"./organization.fcb3d7ee.js";import{_ as I}from"./Navbar.vue_vue_type_script_setup_true_lang.3c878dea.js";import{S as j}from"./Sidebar.e1602ffd.js";import{e as C,Q as O,R as k,S as B,T as M,v as S,G as L,U as P,V as x,M as D}from"./icons.8f8b8d07.js";import"./Form.fe660512.js";import"./hasIn.264c6078.js";import"./popupNotifcation.c17802b7.js";import"./index.cf4c23b9.js";import"./record.f2e811cc.js";import"./pubsub.14278e58.js";import"./logo.084e5d7c.js";import"./Text.8e13d454.js";import"./Base.42a4c5ca.js";import"./Typography.5e43ce25.js";import"./index.e56fd585.js";import"./ArrowRightOutlined.08fa31dd.js";import"./index.08bc448a.js";import"./index.f09baa6d.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},i=new Error().stack;i&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[i]="f27ca942-5272-4987-bda2-d9a2e3a9e9dd",t._sentryDebugIdIdentifier="sentry-dbid-f27ca942-5272-4987-bda2-d9a2e3a9e9dd")}catch{}})();const ia=b({__name:"Project",setup(t){const c=g().params.projectId,{result:e}=y(()=>z.get(c).then(async a=>{const o=await w.get(a.organizationId);return{project:a,organization:o}})),m=r(()=>{var a,o,n,p;return((a=e.value)==null?void 0:a.organization)&&e.value.project?[{label:"My organizations",path:"/organizations"},{label:(n=(o=e.value)==null?void 0:o.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}),d=r(()=>{var a;return(a=e.value)==null?void 0:a.organization.billingMetadata}),u=r(()=>{var a;return(a=e.value)!=null&&a.project?[{name:"Project",items:[{name:"Live",path:"live",icon:C},{name:"Builds",path:"builds",icon:O},{name:"Connectors",path:"connectors",icon:k,unavailable:!e.value.organization.featureFlags.CONNECTORS_CONSOLE},{name:"Tables",path:"tables",icon:B},{name:"API Keys",path:"api-keys",icon:M},{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(a,o)=>{const n=f("router-view");return v(),_(h,null,{content:s(()=>[l(n)]),navbar:s(()=>[l(I,{class:"nav",breadcrumb:m.value,"billing-metadata":d.value},null,8,["breadcrumb","billing-metadata"])]),sidebar:s(()=>[l(j,{class:"sidebar",sections:u.value},null,8,["sections"])]),_:1})}}});export{ia as default};
//# sourceMappingURL=Project.f6a10276.js.map
