import{d as b,eB as f,H as r,a as g,b as v,c as _,w as s,f as l}from"./outputWidgets.3188a019.js";import{B as h}from"./BaseLayout.b50b99ac.js";import{a as y}from"./asyncComputed.7b65ee65.js";import"./router.fce6e906.js";import"./index.ada93058.js";import{P as z}from"./project.970b8c7e.js";import{O as w}from"./organization.46424875.js";import{_ as I}from"./Navbar.vue_vue_type_script_setup_true_lang.25a7c3d2.js";import{S as j}from"./Sidebar.270c31b8.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.711a251e.js";import"./Form.a4ff567f.js";import"./hasIn.f9eb80a7.js";import"./popupNotifcation.216f2062.js";import"./index.cf4c23b9.js";import"./record.c6c89e1c.js";import"./pubsub.b7936f46.js";import"./logo.084e5d7c.js";import"./Text.bf95915f.js";import"./Base.7f869b4c.js";import"./Typography.e2687acd.js";import"./index.f4890ec8.js";import"./ArrowRightOutlined.08fa31dd.js";import"./index.01617909.js";import"./index.e04abe45.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]="6cda4981-ba8a-4663-aa8f-74def60af5a7",t._sentryDebugIdIdentifier="sentry-dbid-6cda4981-ba8a-4663-aa8f-74def60af5a7")}catch{}})();const ia=b({__name:"Project",setup(t){const c=f().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=g("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.d630fa64.js.map
