import{_ as k}from"./Avatar.AyoIKaT6.js";import h from"./Icon.sNzKdesA.js";import w from"./Link.5Iw4xYEc.js";import C from"./Divider.9352K5Cq.js";import{C as D,D as b,f as V,E as v,i as _,N as j,O as B,o as r,c as t,F as f,v as m,b as K,w as M,H as n,j as l,K as g,k as s,x as c,d as O,t as y,G as P}from"./entry.2xM5grDS.js";import{u as S}from"./selectMenu.72ERhOvP.js";import{_ as E}from"./_plugin-vue_export-helper.x3n3nnut.js";import{a as F}from"./link.O6hAleNp.js";import"./Icon.rhzHF9SY.js";import"./index.aIcZnwHK.js";import"./nuxt-link.6gyhzeaI.js";const J={wrapper:"relative",base:"group relative flex items-center gap-2 focus:outline-none focus-visible:outline-none dark:focus-visible:outline-none focus-visible:before:ring-inset focus-visible:before:ring-1 focus-visible:before:ring-primary-500 dark:focus-visible:before:ring-primary-400 before:absolute before:inset-px before:rounded-md disabled:cursor-not-allowed disabled:opacity-75",ring:"focus-visible:ring-inset focus-visible:ring-2 focus-visible:ring-primary-500 dark:focus-visible:ring-primary-400",padding:"px-3 py-1.5",width:"w-full",rounded:"rounded-md",font:"font-medium",size:"text-sm",active:"text-gray-900 dark:text-white before:bg-gray-100 dark:before:bg-gray-800",inactive:"text-gray-500 dark:text-gray-400 hover:text-gray-900 dark:hover:text-white hover:before:bg-gray-50 dark:hover:before:bg-gray-800/50",label:"truncate relative",icon:{base:"flex-shrink-0 w-4 h-4",active:"text-gray-700 dark:text-gray-200",inactive:"text-gray-400 dark:text-gray-500 group-hover:text-gray-700 dark:group-hover:text-gray-200"},avatar:{base:"flex-shrink-0",size:"3xs"},badge:{base:"relative ms-auto inline-block py-0.5 px-2 text-xs rounded-md -me-1 -my-0.5",active:"bg-white dark:bg-gray-900",inactive:"bg-gray-100 dark:bg-gray-800 text-gray-900 dark:text-white group-hover:bg-white dark:group-hover:bg-gray-900"},divider:{wrapper:{base:"p-2"}}},x=D(b.ui.strategy,b.ui.verticalNavigation,J),G=V({components:{UIcon:h,UAvatar:k,ULink:w,UDivider:C},inheritAttrs:!1,props:{links:{type:Array,default:()=>[]},class:{type:[String,Object,Array],default:()=>""},ui:{type:Object,default:()=>({})}},setup(e){const{ui:o,attrs:d}=S("verticalNavigation",v(e,"ui"),x,v(e,"class")),p=_(()=>Array.isArray(e.links[0])?e.links:[e.links]);return{ui:o,attrs:d,sections:p,getULinkProps:F,twMerge:j,twJoin:B}}}),H={key:0,class:"sr-only"};function I(e,o,d,p,R,T){const $=k,U=h,N=w,z=C;return r(),t("nav",g({class:e.ui.wrapper},e.attrs),[(r(!0),t(f,null,m(e.sections,(A,u)=>(r(),t("ul",{key:`section${u}`},[(r(!0),t(f,null,m(A,(a,L)=>(r(),t("li",{key:`section${u}-${L}`},[K(N,g(e.getULinkProps(a),{class:[e.ui.base,e.ui.padding,e.ui.width,e.ui.ring,e.ui.rounded,e.ui.font,e.ui.size],"active-class":e.ui.active,"inactive-class":e.ui.inactive,onClick:a.click,onKeyup:o[0]||(o[0]=P(i=>i.target.blur(),["enter"]))}),{default:M(({isActive:i})=>[n(e.$slots,"avatar",{link:a,isActive:i},()=>[a.avatar?(r(),l($,g({key:0},{size:e.ui.avatar.size,...a.avatar},{class:[e.ui.avatar.base]}),null,16,["class"])):s("",!0)]),n(e.$slots,"icon",{link:a,isActive:i},()=>[a.icon?(r(),l(U,{key:0,name:a.icon,class:c(e.twMerge(e.twJoin(e.ui.icon.base,i?e.ui.icon.active:e.ui.icon.inactive),a.iconClass))},null,8,["name","class"])):s("",!0)]),n(e.$slots,"default",{link:a,isActive:i},()=>[a.label?(r(),t("span",{key:0,class:c(e.twMerge(e.ui.label,a.labelClass))},[i?(r(),t("span",H," Current page: ")):s("",!0),O(" "+y(a.label),1)],2)):s("",!0)]),n(e.$slots,"badge",{link:a,isActive:i},()=>[a.badge?(r(),t("span",{key:0,class:c([e.ui.badge.base,i?e.ui.badge.active:e.ui.badge.inactive])},y(a.badge),3)):s("",!0)])]),_:2},1040,["class","active-class","inactive-class","onClick"])]))),128)),u<e.sections.length-1?(r(),l(z,{key:0,ui:e.ui.divider},null,8,["ui"])):s("",!0)]))),128))],16)}const se=E(G,[["render",I]]);export{se as default};
