import{_ as c}from"./BNEsDCLV.js";import{a7 as n,a0 as v,af as l}from"./qGWCsquX.js";function d(e,a,i){const u=e.lastIndexOf("/"),o=e.substring(0,u);i=i||{};const r=["nav nav-pills"];switch(i.direction){case"vertical":r.push("flex-column");break}let s=[];i.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,...a.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 a=l(e,"items"),i=l(e,"direction");return()=>d(e.path,a.value,{direction:i.value,prevLink:e.prevLink})}});export{_};
