import{_ as p,d as v,O as x,G as h,s as c,o as i,c as f,F as y,A as g,h as N,f as k,w as B,g as C,t as b,n as w,Q as A,i as L}from"./entry-d195bacb.mjs";const D=v({name:"NavbarCenter",setup(d,{expose:u}){u();const r=x(),{findBottomLink:a}=A(),{navigation:o,theme:s}=h(),n=c(()=>{var e;return!!((e=s.value.aside)!=null&&e.level)}),t=c(()=>{var e,_;return((_=(e=s.value)==null?void 0:e.aside)==null?void 0:_.filter)||[]}),m=c(()=>(o.value||[]).filter(e=>!t.value.includes(e._path))),l={route:r,findBottomLink:a,navigation:o,theme:s,hasNavigation:n,filtered:t,tree:m,isActive:e=>e.exact?r.fullPath===e._path:r.fullPath.startsWith(e._path)};return Object.defineProperty(l,"__isScriptSetup",{enumerable:!1,value:!0}),l}}),P={key:0,class:"flex items-center justify-center flex-1 max-w-full gap-8 py-1 overflow-hidden font-medium truncate"};function S(d,u,r,a,o,s){const n=L;return a.hasNavigation?(i(),f("nav",P,[(i(!0),f(y,null,g(a.tree,t=>(i(),k(n,{key:t._path,to:a.findBottomLink(t),class:w(["text-sm transition-colors transition-base",[a.isActive(t)?"text-primary hover:text-primary":"text-gray-700 hover:text-gray-400 dark:text-gray-200 hover:dark:text-gray-300"]])},{default:B(()=>[C(b(t.title),1)]),_:2},1032,["to","class"]))),128))])):N("",!0)}var O=p(D,[["render",S]]);export{O as default};
