import{_ as c}from"./nuxt-link.40687dc5.js";import{a5 as n,a1 as v,aa as l}from"./entry.c7cd0af6.js";function d(e,i,a){const u=e.lastIndexOf("/"),o=e.substring(0,u);a=a||{};const r=["nav nav-pills"];switch(a.direction){case"vertical":r.push("flex-column");break}let s=[];a.prevLink&&(s=n("li",{class:"nav-item"},[n(c,{class:"nav-link",to:o},{default:()=>[n("i",{class:"fa fa-arrow-left"})]})]));const f=t=>t.length===0?e:t.substring(0,1)==="/"?`${e}${t}`:`${e}/${t}`;return n("ul",{class:r},[s,...i.map(t=>n("li",{class:"nav-item"},[n(c,{class:"nav-link",to:f(t.urlSuffix)},{default:()=>[n("i",{class:`${t.icon} pe-1`}),t.name]})]))])}const _=v({props:{path:{type:String,required:!0},items:{type:Array,required:!0},direction:{type:String},prevLink:{type:Boolean}},setup(e){const i=l(e,"items"),a=l(e,"direction");return()=>d(e.path,i.value,{direction:a.value,prevLink:e.prevLink})}});export{_};
