import{Ct as e,F as t,H as n,It as r,Mt as i,Q as a,W as o,_t as s,at as c,c as l,d as u,ft as d,ht as f,jt as p,l as m,mt as h,ot as g,wt as _}from"../chunks/BA99CCI5.js";import"../chunks/xihTtKlq.js";import"../chunks/DGo8yE5j.js";import{t as v}from"../chunks/3rupxGJ5.js";import{t as y}from"../chunks/CqoQtmn5.js";import{t as b}from"../chunks/D8FWRTM5.js";import{t as x}from"../chunks/e-haqc9Z.js";import{t as S}from"../chunks/CJ4k5gis2.js";import{t as C}from"../chunks/BfBgZfCV2.js";import{t as w}from"../chunks/DxZIQ_tr2.js";import{t as T}from"../chunks/DSmeX4VS2.js";var E=new Set([`$$slots`,`$$events`,`$$legacy`]);function D(e,t){let n=l(t,E),r=[[`path`,{d:`M15 8a1 1 0 0 1-1-1V2a2.4 2.4 0 0 1 1.704.706l3.588 3.588A2.4 2.4 0 0 1 20 8z`}],[`path`,{d:`M20 8v12a2 2 0 0 1-2 2h-4.182`}],[`path`,{d:`m3.305 19.53.923-.382`}],[`path`,{d:`M4 10.592V4a2 2 0 0 1 2-2h8`}],[`path`,{d:`m4.228 16.852-.924-.383`}],[`path`,{d:`m5.852 15.228-.383-.923`}],[`path`,{d:`m5.852 20.772-.383.924`}],[`path`,{d:`m8.148 15.228.383-.923`}],[`path`,{d:`m8.53 21.696-.382-.924`}],[`path`,{d:`m9.773 16.852.922-.383`}],[`path`,{d:`m9.773 19.148.922.383`}],[`circle`,{cx:`7`,cy:`18`,r:`3`}]];v(e,m({name:`file-cog`},()=>n,{get iconNode(){return r}}))}var O=new Set([`$$slots`,`$$events`,`$$legacy`]);function k(e,t){let n=l(t,O),r=[[`circle`,{cx:`6`,cy:`6`,r:`3`}],[`path`,{d:`M6 9v12`}],[`path`,{d:`m21 3-6 6`}],[`path`,{d:`m21 9-6-6`}],[`path`,{d:`M18 11.5V15`}],[`circle`,{cx:`18`,cy:`18`,r:`3`}]];v(e,m({name:`git-pull-request-closed`},()=>n,{get iconNode(){return r}}))}var A=new Set([`$$slots`,`$$events`,`$$legacy`]);function j(e,t){let n=l(t,A),r=[[`path`,{d:`M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8`}],[`path`,{d:`M3 3v5h5`}],[`path`,{d:`M12 7v5l4 2`}]];v(e,m({name:`rotate-ccw-clock`},()=>n,{get iconNode(){return r}}))}var M=o(`<div class="px-4 pb-4 md:px-8 md:pb-8"><!> <!></div>`);function N(o,l){i(l,!1);let m=()=>_(C,`$page`,v),[v,E]=e(),O=f(),A=f(),N=f(),P=f();c(()=>m(),()=>{s(O,m().data.database)}),c(()=>m(),()=>{s(A,m().url.pathname)}),c(()=>(a(O),a(A),x),()=>{s(N,a(O)?[{label:`Changes`,href:`/databases/${a(O).id}/changes`,icon:y,active:a(A).endsWith(`/changes`),onboarding:`db-tab-changes`},{label:`Updates`,href:`/databases/${a(O).id}/commits`,icon:j,active:a(A).includes(`/commits`),onboarding:`db-tab-commits`},{label:`Conflicts`,href:`/databases/${a(O).id}/conflicts`,icon:k,active:a(A).includes(`/conflicts`),onboarding:`db-tab-conflicts`},...w.tweaks?[{label:`Tweaks`,href:`/databases/${a(O).id}/tweaks`,icon:S,active:a(A).includes(`/tweaks`),onboarding:`db-tab-tweaks`}]:[],...a(O).hasPat?[{label:`Announcements`,href:`/databases/${a(O).id}/announcements`,icon:b,active:a(A).includes(`/announcements`)},{label:`Config`,href:`/databases/${a(O).id}/config`,icon:D,active:a(A).includes(`/config`)}]:[],{label:`Settings`,href:`/databases/${a(O).id}/settings`,icon:x,active:a(A).includes(`/settings`),onboarding:`db-tab-settings`}]:[])}),c(()=>a(O),()=>{s(P,{items:[{label:`Databases`,href:`/databases`}],current:a(O)?.name??``})}),g(),u();var F=M(),I=d(F);T(I,{get tabs(){return a(N)},get breadcrumb(){return a(P)},responsive:!0,mobileBreakpoint:1400});var L=h(I,2);t(L,l,`default`,{},null),r(F),n(o,F),p(),E()}export{N as component};