import m from"./Avatar.a7ca17e7.js";import d from"./Icon.30f6becb.js";import v from"./Link.a86a4ec7.js";import{g as $,E as k,G as U,j as w,H as z,o,c as t,F as L,x as N,k as l,w as h,I as n,L as p,l as r,y as u,t as c,ah as A}from"./entry.eb978f24.js";import{_ as B}from"./_plugin-vue_export-helper.c27b6911.js";import{o as I}from"./omit.b73b1bce.js";import"./nuxt-link.0033bf2d.js";import"./_baseIsEqual.8f3c5dea.js";import"./_MapCache.e1952f2e.js";import"./_baseGet.b8f437ea.js";import"./_getAllKeysIn.acace03e.js";import"./_baseAssignValue.46c694f0.js";const j=$({components:{UIcon:d,UAvatar:m,ULink:v},props:{links:{type:Array,default:()=>[]},ui:{type:Object,default:()=>k.ui.verticalNavigation}},setup(a){const i=U();return{ui:w(()=>z({},a.ui,i.ui.verticalNavigation)),omit:I}}});function E(a,i,f,F,K,S){const g=m,b=d,y=v;return o(),t("nav",{class:u(a.ui.wrapper)},[(o(!0),t(L,null,N(a.links,(e,C)=>(o(),l(y,p({key:C},a.omit(e,["label","icon","iconClass","avatar","badge","click"]),{class:[a.ui.base,a.ui.padding,a.ui.width,a.ui.ring,a.ui.rounded,a.ui.font,a.ui.size],"active-class":a.ui.active,"inactive-class":a.ui.inactive,onClick:e.click,onKeyup:i[0]||(i[0]=A(s=>s.target.blur(),["enter"]))}),{default:h(({isActive:s})=>[n(a.$slots,"avatar",{link:e,isActive:s},()=>[e.avatar?(o(),l(g,p({key:0},{size:a.ui.avatar.size,...e.avatar},{class:[a.ui.avatar.base]}),null,16,["class"])):r("",!0)]),n(a.$slots,"icon",{link:e,isActive:s},()=>[e.icon?(o(),l(b,{key:0,name:e.icon,class:u([a.ui.icon.base,s?a.ui.icon.active:a.ui.icon.inactive,e.iconClass])},null,8,["name","class"])):r("",!0)]),n(a.$slots,"default",{link:e,isActive:s},()=>[e.label?(o(),t("span",{key:0,class:u(a.ui.label)},c(e.label),3)):r("",!0)]),n(a.$slots,"badge",{link:e,isActive:s},()=>[e.badge?(o(),t("span",{key:0,class:u([a.ui.badge.base,s?a.ui.badge.active:a.ui.badge.inactive])},c(e.badge),3)):r("",!0)])]),_:2},1040,["class","active-class","inactive-class","onClick"]))),128))],2)}const T=B(j,[["render",E]]);export{T as default};
