import{d as u,ey as b,F as p,a as g,b as _,c as f,e as r,er as l,bw as v,t as y}from"./registerWidgets.eb5d1044.js";import{a as h}from"./asyncComputed.8007047f.js";import{P as j}from"./project.7478d8af.js";import"./gateway.f04b471b.js";import{O as z}from"./organization.b2a39036.js";import"./index.cbadd24c.js";import{N as I}from"./Navbar.4ca904f7.js";import{S as w}from"./Sidebar.afe32684.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.f9be01a3.js";import"./activeRecord.e38b436c.js";import"./pubsub.8f4c78dc.js";import"./passwordlessManager.5b579a25.js";import"./storage.0943951e.js";import"./logo.084e5d7c.js";import"./Tooltip.f1339241.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]="398207fb-efeb-4cf3-a6ab-4f053d26d171",o._sentryDebugIdIdentifier="sentry-dbid-398207fb-efeb-4cf3-a6ab-4f053d26d171")}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 _(),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",F,[r(n)])])],64)}}});const Z=y(L,[["__scopeId","data-v-d311093f"]]);export{Z as default};
//# sourceMappingURL=Project.da269e89.js.map
