import{u as y}from"./useAlignment-Cw-9AVid-Db1FQC5G.js";import{u as f}from"./useDefaults-DESCdb0p-CFLjYrdG.js";import{_ as B}from"./BLink.vue_vue_type_script_setup_true_lang-Ct47WhzE-DDPYis_D.js";import{p as _}from"./object-0ALvRU0O-3BORTTD-.js";import{l as u,x as c,c as b,o as p,w as v,J as i,n as C,G as k,D as n,d as h,b as g,L as H}from"./index-D02r7Zsc.js";const D=u({__name:"BNav",props:{align:{default:void 0},cardHeader:{type:Boolean,default:!1},fill:{type:Boolean,default:!1},justified:{type:Boolean,default:!1},pills:{type:Boolean,default:!1},small:{type:Boolean,default:!1},tabs:{type:Boolean,default:!1},tag:{default:"ul"},underline:{type:Boolean,default:!1},vertical:{type:Boolean,default:!1}},setup(l){const e=f(l,"BNav"),a=y(()=>e.align),o=c(()=>({"nav-tabs":e.tabs,"nav-pills":e.pills&&!e.tabs,"card-header-tabs":!e.vertical&&e.cardHeader&&e.tabs,"card-header-pills":!e.vertical&&e.cardHeader&&e.pills&&!e.tabs,"flex-column":e.vertical,"nav-fill":!e.vertical&&e.fill,"nav-justified":!e.vertical&&e.justified,[a.value]:!e.vertical&&e.align!==void 0,small:e.small,"nav-underline":e.underline}));return(s,t)=>(p(),b(k(n(e).tag),{class:C(["nav",o.value])},{default:v(()=>[i(s.$slots,"default")]),_:3},8,["class"]))}}),O={class:"nav-item"},P=u({__name:"BNavItem",props:{linkAttrs:{default:void 0},linkClass:{default:void 0},active:{type:Boolean,default:void 0},activeClass:{default:void 0},disabled:{type:Boolean,default:void 0},exactActiveClass:{default:"router-link-exact-active active"},href:{default:void 0},icon:{type:Boolean,default:void 0},noRel:{type:Boolean},opacity:{default:void 0},opacityHover:{default:void 0},prefetch:{type:Boolean},prefetchOn:{},noPrefetch:{type:Boolean},prefetchedClass:{},rel:{default:void 0},replace:{type:Boolean,default:void 0},routerComponentName:{default:void 0},stretched:{type:Boolean,default:!1},target:{default:void 0},to:{default:void 0},underlineOffset:{default:void 0},underlineOffsetHover:{default:void 0},underlineOpacity:{default:void 0},underlineOpacityHover:{default:void 0},underlineVariant:{default:void 0},variant:{default:void 0}},emits:["click"],setup(l,{emit:d}){const a=f(l,"BNavItem"),o=d,s=c(()=>_(a,["active","activeClass","exactActiveClass","append","disabled","href","icon","opacity","opacityHover","rel","replace","routerComponentName","target","to","underlineOffset","underlineOffsetHover","underlineOpacity","underlineOpacityHover","underlineVariant","variant"]));return(t,r)=>(p(),h("li",O,[g(B,H({class:["nav-link",t.linkClass],tabindex:n(a).disabled?-1:void 0,"aria-disabled":n(a).disabled?!0:void 0},{...s.value,...t.linkAttrs},{onClick:r[0]||(r[0]=m=>o("click",m))}),{default:v(()=>[i(t.$slots,"default")]),_:3},16,["class","tabindex","aria-disabled"]),i(t.$slots,"after")]))}});export{D as _,P as a};
