import d from"./Avatar.b92bd51d.js";import g from"./Icon.fe8c0e68.js";import f from"./Link.cc0949f5.js";import{E as k,G as m,g as U,o as i,c as t,F as w,x as N,k as u,w as z,H as n,K as l,l as r,y as c,t as v,ar as h}from"./entry.9e31e8a4.js";import{D as A,u as B,o as I}from"./ui.config.7ae255de.js";import{_ as K}from"./_plugin-vue_export-helper.c27b6911.js";import"./tw-merge.27ca352e.js";import"./nuxt-link.f786ecc0.js";const L=k(m.ui.strategy,m.ui.verticalNavigation,A),D=U({components:{UIcon:g,UAvatar:d,ULink:f},inheritAttrs:!1,props:{links:{type:Array,default:()=>[]},ui:{type:Object,default:void 0}},setup(a){const{ui:o,attrs:p}=B("verticalNavigation",a.ui,L,{mergeWrapper:!0});return{ui:o,attrs:p,omit:I}}});function E(a,o,p,F,S,V){const b=d,y=g,C=f;return i(),t("nav",l({class:a.ui.wrapper},a.attrs),[(i(!0),t(w,null,N(a.links,(e,$)=>(i(),u(C,l({key:$},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:o[0]||(o[0]=h(s=>s.target.blur(),["enter"]))}),{default:z(({isActive:s})=>[n(a.$slots,"avatar",{link:e,isActive:s},()=>[e.avatar?(i(),u(b,l({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?(i(),u(y,{key:0,name:e.icon,class:c([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?(i(),t("span",{key:0,class:c(a.ui.label)},v(e.label),3)):r("",!0)]),n(a.$slots,"badge",{link:e,isActive:s},()=>[e.badge?(i(),t("span",{key:0,class:c([a.ui.badge.base,s?a.ui.badge.active:a.ui.badge.inactive])},v(e.badge),3)):r("",!0)])]),_:2},1040,["class","active-class","inactive-class","onClick"]))),128))],16)}const M=K(D,[["render",E]]);export{M as default};
