import{d as u,ey as b,H as p,a as g,b as _,d2 as f,f as r,e as l,bu as v,v as y}from"./registerWidgets.e46eca28.js";import{a as h}from"./asyncComputed.15fd30e0.js";import{P as j}from"./project.0d1361a7.js";import"./gateway.0d210a45.js";import{O as z}from"./organization.aa9f5b9e.js";import"./index.05c509d5.js";import{N as I}from"./Navbar.82a41a15.js";import{S as w}from"./Sidebar.f6322f52.js";import{G as P,H as k,I as x,J as B,K as D,L as M,M as $,D as C,E,F as N}from"./icons.db549bc5.js";import"./activeRecord.d83b1b14.js";import"./pubsub.8f2ecd1e.js";import"./passwordlessManager.f4cc4f94.js";import"./storage.f303ee10.js";import"./logo.084e5d7c.js";import"./Tooltip.cf86d848.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]="eb48fb3d-ae7f-465c-838e-80fe50ad5e1d",o._sentryDebugIdIdentifier="sentry-dbid-eb48fb3d-ae7f-465c-838e-80fe50ad5e1d")}catch{}})();const S={class:"project"},L={class:"content-wrapper"},O=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:D},{name:"Logs",icon:M,path:"logs",beta:!0},{name:"Settings",icon:$,path:"settings"}]},{name:"Organization",items:[{name:"Projects",icon:C,path:`/organizations/${e.value.project.organizationId}/projects`},{name:"Members",icon:E,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 _(),f(v,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",L,[r(n)])])],64)}}});const Z=y(O,[["__scopeId","data-v-d311093f"]]);export{Z as default};
//# sourceMappingURL=Project.b33a7a87.js.map
