import{d as l,af as c,E as f,ak as p,J as m,V as v,ad as g,ae as r}from"./BvNnk7SS.js";import{f as h}from"./CmwQJI8y.js";import{u as _}from"./DQ_4YmnO.js";import{_ as y}from"./DXjXgEo6.js";import"./BJLPbHX2.js";import"./DGhmaXto.js";const C=l({name:"ContentNavigation",props:{query:{type:Object,required:!1,default:void 0}},async setup(i){const{query:t}=c(i),a=f(()=>typeof t.value?.params=="function"?t.value.params():t.value);if(!a.value&&p("dd-navigation").value){const{navigation:o}=_();return{navigation:o}}const{data:e}=await m(`content-navigation-${v(a.value)}`,()=>h(a.value));return{navigation:e}},render(i){const t=g(),{navigation:a}=i,e=n=>r(y,{to:n._path},()=>n.title),o=(n,u)=>r("ul",u?{"data-level":u}:null,n.map(s=>s.children?r("li",null,[e(s),o(s.children,u+1)]):r("li",null,e(s)))),d=n=>o(n,0);return t?.default?t.default({navigation:a,...this.$attrs}):d(a)}}),S=C;export{S as default};
