import{d as u,ey as b,H as p,a as g,b as _,d2 as v,f as r,e as l,bu as f,v as y}from"./registerWidgets.d6e66474.js";import{a as h}from"./asyncComputed.5c362931.js";import{P as j}from"./project.76fedfb7.js";import"./gateway.651c554e.js";import{O as z}from"./organization.dccc1664.js";import"./index.0eed7dd2.js";import{N as I}from"./Navbar.f12dce0a.js";import{S as w}from"./Sidebar.ba38e46f.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.4be6cb33.js";import"./activeRecord.1009e596.js";import"./pubsub.9e806cff.js";import"./passwordlessManager.a2051844.js";import"./storage.d7eb729a.js";import"./logo.084e5d7c.js";import"./Tooltip.a5a595bc.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]="fc9e6a8a-3436-4c60-bb87-9514b0a4ab6a",o._sentryDebugIdIdentifier="sentry-dbid-fc9e6a8a-3436-4c60-bb87-9514b0a4ab6a")}catch{}})();const S={class:"project"},L={class:"content-wrapper"},O=u({__name:"Project",setup(o){const i=b().params.projectId,{result:a}=h(()=>j.get(i).then(async e=>{const t=await z.get(e.organizationId);return{project:e,organization:t}})),m=p(()=>{var e,t,n,c;return((e=a.value)==null?void 0:e.organization)&&a.value.project?[{label:"My organizations",path:"/organizations"},{label:(n=(t=a.value)==null?void 0:t.organization)==null?void 0:n.name,path:`/organizations/${(c=a.value)==null?void 0:c.organization.id}`},{label:a.value.project.name,path:`/projects/${a.value.project.id}`}]:void 0}),d=p(()=>{var e;return(e=a.value)!=null&&e.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/${a.value.project.organizationId}/projects`},{name:"Members",icon:E,path:`/organizations/${a.value.project.organizationId}/members`},{name:"Billing",icon:N,path:`/organizations/${a.value.project.organizationId}/billing`,unavailable:!0}]}]:[]});return(e,t)=>{const n=g("router-view");return _(),v(f,null,[r(I,{class:"nav",breadcrumb:m.value},null,8,["breadcrumb"]),l("div",S,[r(w,{class:"sidebar",sections:d.value},null,8,["sections"]),l("div",L,[r(n)])])],64)}}});const Z=y(O,[["__scopeId","data-v-d311093f"]]);export{Z as default};
//# sourceMappingURL=Project.de247831.js.map
