import{d as g,eB as v,H as r,a as _,b as u,c as d,w as s,ex as h,f as c}from"./outputWidgets.74b0761d.js";import{B as y}from"./BaseLayout.e514e975.js";import{a as z}from"./asyncComputed.fbb4ba44.js";import"./router.e97d6286.js";import"./index.c51517e3.js";import{P as w}from"./project.abf3ccd9.js";import{O as I}from"./organization.9216f762.js";import{_ as j}from"./Navbar.vue_vue_type_script_setup_true_lang.76a26ee0.js";import{_ as C,S as k}from"./Sidebar.33571818.js";import{e as O,Q as B,R as M,S,T as x,v as L,G as N,U as P,V as D,M as E}from"./icons.fd5c09b0.js";import"./Form.a24c61ad.js";import"./hasIn.d2130316.js";import"./popupNotifcation.2bb5bdcc.js";import"./index.cf4c23b9.js";import"./record.acc69298.js";import"./pubsub.4c1d9617.js";import"./logo.084e5d7c.js";import"./Text.b007494b.js";import"./Base.4463d78c.js";import"./Typography.5e0282a3.js";import"./index.d2307af6.js";import"./ArrowRightOutlined.08fa31dd.js";import"./index.5e119e42.js";import"./index.2189f45b.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]="52f56ba8-88ca-464f-9653-cd7afa9b7f63",t._sentryDebugIdIdentifier="sentry-dbid-52f56ba8-88ca-464f-9653-cd7afa9b7f63")}catch{}})();const sa=g({__name:"Project",setup(t){const l=v().params.projectId,{result:e}=z(()=>w.get(l).then(async a=>{const o=await I.get(a.organizationId);return{project:a,organization:o}})),b=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}),m=r(()=>{var a;return(a=e.value)==null?void 0:a.organization.billingMetadata}),f=r(()=>{var a;return(a=e.value)!=null&&a.project?[{name:"Project",items:[{name:"Live",path:"live",icon:O},{name:"Builds",path:"builds",icon:B},{name:"Connectors",path:"connectors",icon:M,unavailable:!e.value.organization.featureFlags.CONNECTORS_CONSOLE},{name:"Tables",path:"tables",icon:S},{name:"API Keys",path:"api-keys",icon:x},{name:"Env Vars",path:"env-vars",icon:L},{name:"Files",path:"files",icon:N},{name:"Logs",icon:P,path:"logs"},{name:"Settings",icon:D,path:"settings"},{name:"Users",icon:E,path:"users"}]}]:[]});return(a,o)=>{const n=_("router-view");return u(),d(y,null,{content:s(()=>[m.value?(u(),d(C,{key:0,"billing-metadata":m.value},null,8,["billing-metadata"])):h("",!0),c(n)]),navbar:s(()=>[c(j,{class:"nav",breadcrumb:b.value},null,8,["breadcrumb"])]),sidebar:s(()=>[c(k,{class:"sidebar",sections:f.value},null,8,["sections"])]),_:1})}}});export{sa as default};
//# sourceMappingURL=Project.be1602ee.js.map
