import{d as u,ey as b,F as p,a as g,b as _,c as v,e as r,er as l,bw as f,t as y}from"./registerWidgets.0d6f36c3.js";import{a as h}from"./asyncComputed.f5c93ddf.js";import{P as j}from"./project.c8d3dcb3.js";import"./gateway.b5799c1b.js";import{O as z}from"./organization.20e23ed1.js";import"./index.d806a518.js";import{N as I}from"./Navbar.547aa361.js";import{S as w}from"./Sidebar.dedfd593.js";import{F as P,G as k,H as x,I as B,J as C,K as D,L as $,C as E,D as M,E as N}from"./icons.0e440585.js";import"./activeRecord.43bccff7.js";import"./pubsub.c204a78d.js";import"./passwordlessManager.7ee1fbd9.js";import"./storage.674259be.js";import"./logo.084e5d7c.js";import"./Tooltip.6f91d258.js";(function(){try{var o=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},s=new Error().stack;s&&(o._sentryDebugIds=o._sentryDebugIds||{},o._sentryDebugIds[s]="a53c59d4-44d8-414b-8c5b-c11decd163df",o._sentryDebugIdIdentifier="sentry-dbid-a53c59d4-44d8-414b-8c5b-c11decd163df")}catch{}})();const S={class:"project"},F={class:"content-wrapper"},L=u({__name:"Project",setup(o){const i=b().params.projectId,{result:e}=h(()=>j.get(i).then(async a=>{const t=await z.get(a.organizationId);return{project:a,organization:t}})),d=p(()=>{var a,t,n,c;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/${(c=e.value)==null?void 0:c.organization.id}`},{label:e.value.project.name,path:`/projects/${e.value.project.id}`}]:void 0}),m=p(()=>{var a;return(a=e.value)!=null&&a.project?[{name:"Project",items:[{name:"Builds",path:"builds",icon:P},{name:"Connectors",path:"connectors",icon:k},{name:"Tables",path:"tables",icon:x},{name:"API Keys",path:"api-keys",icon:B},{name:"Env Vars",path:"env-vars",icon:C},{name:"Logs",icon:D,path:"logs",beta:!0},{name:"Settings",icon:$,path:"settings"}]},{name:"Organization",items:[{name:"Projects",icon:E,path:`/organizations/${e.value.project.organizationId}/projects`},{name:"Members",icon:M,path:`/organizations/${e.value.project.organizationId}/members`},{name:"Billing",icon:N,path:`/organizations/${e.value.project.organizationId}/billing`,unavailable:!0}]}]:[]});return(a,t)=>{const n=g("router-view");return _(),v(f,null,[r(I,{class:"nav",breadcrumb:d.value},null,8,["breadcrumb"]),l("div",S,[r(w,{class:"sidebar",sections:m.value},null,8,["sections"]),l("div",F,[r(n)])])],64)}}});const Z=y(L,[["__scopeId","data-v-d311093f"]]);export{Z as default};
//# sourceMappingURL=Project.89f63137.js.map
