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.7dcb9763.js";import{B as _}from"./BaseLayout.d5edee4b.js";import{a as h}from"./asyncComputed.1391bc4e.js";import"./router.c239924b.js";import"./index.8803a7ce.js";import{P as y}from"./project.cb69380f.js";import{O as w}from"./organization.8af3635a.js";import{_ as z}from"./Navbar.vue_vue_type_script_setup_true_lang.eb619dcc.js";import{S as I}from"./Sidebar.41d4aee8.js";import{e as j,R as C,S as O,T as k,U as B,v as S,H as L,V as N,W as P,N as x}from"./icons.28fdd925.js";import"./Form.d1397da7.js";import"./hasIn.a0faa635.js";import"./popupNotifcation.2e66fb53.js";import"./index.cf4c23b9.js";import"./record.c580fef2.js";import"./pubsub.a9318333.js";import"./logo.084e5d7c.js";import"./Text.c3748e80.js";import"./Base.959092ed.js";import"./Typography.890fd94a.js";import"./index.e213635f.js";import"./ArrowRightOutlined.08fa31dd.js";import"./index.ee476d81.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]="4f23c387-7a14-4a90-a79c-72d68f9da863",o._sentryDebugIdIdentifier="sentry-dbid-4f23c387-7a14-4a90-a79c-72d68f9da863")}catch{}})();const ta=d({__name:"Project",setup(o){const c=f().params.projectId,{result:e}=h(()=>y.get(c).then(async a=>{const t=await w.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:j},{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:S},{name:"Files",path:"files",icon:L},{name:"Logs",icon:N,path:"logs"},{name:"Settings",icon:P,path:"settings"},{name:"Users",icon:x,path:"users"}]}]:[]});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{ta as default};
//# sourceMappingURL=Project.338d3243.js.map
