import{d as v,eB as f,H as r,a as _,b as u,c as d,w as s,ex as h,f as c}from"./outputWidgets.809f1c57.js";import{B as y}from"./BaseLayout.98c0a25c.js";import{a as z}from"./asyncComputed.466c4877.js";import"./router.5b895db7.js";import"./index.c651a706.js";import{P as w}from"./project.a38d4e8b.js";import{O as I}from"./organization.7e2d2c41.js";import{_ as j}from"./Navbar.vue_vue_type_script_setup_true_lang.29173086.js";import{_ as C,S as k}from"./Sidebar.76db99d5.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.8975fdbd.js";import"./Form.023148df.js";import"./hasIn.e1b15717.js";import"./popupNotifcation.0b39d2d3.js";import"./index.cf4c23b9.js";import"./record.41a2948e.js";import"./pubsub.67132179.js";import"./logo.084e5d7c.js";import"./Text.9d2b2621.js";import"./Base.4c033746.js";import"./Typography.f29a9c7e.js";import"./index.a7443c5a.js";import"./ArrowRightOutlined.08fa31dd.js";import"./index.6c6ae89c.js";import"./index.48e1252c.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]="2a2c8bb3-eddc-4105-8181-ac6ee7951b31",t._sentryDebugIdIdentifier="sentry-dbid-2a2c8bb3-eddc-4105-8181-ac6ee7951b31")}catch{}})();const sa=v({__name:"Project",setup(t){const l=f().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}),g=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:g.value},null,8,["sections"])]),_:1})}}});export{sa as default};
//# sourceMappingURL=Project.6cac6f19.js.map
