import{l as i,x as o,A as C,B as L,at as d,c as p,o as f,w as c,J as v,n as k,G as m,ao as z,I as A,L as G,D as a}from"./index-D02r7Zsc.js";import{u as b}from"./useDefaults-DESCdb0p-CFLjYrdG.js";import{u as $,_ as O}from"./BLink.vue_vue_type_script_setup_true_lang-Ct47WhzE-DDPYis_D.js";const j=i({__name:"BListGroup",props:{flush:{type:Boolean,default:!1},horizontal:{type:[Boolean,String],default:!1},numbered:{type:Boolean,default:!1},tag:{default:"div"}},setup(u){const e=b(u,"BListGroup"),s=o(()=>{const t=e.flush?!1:e.horizontal;return{"list-group-flush":e.flush,"list-group-horizontal":t===!0,[`list-group-horizontal-${t}`]:typeof t=="string","list-group-numbered":e.numbered}}),r=o(()=>e.numbered===!0?"ol":e.tag);return C(d,{numbered:L(()=>e.numbered)}),(t,n)=>(f(),p(m(r.value),{class:k(["list-group",s.value])},{default:c(()=>[v(t.$slots,"default")]),_:3},8,["class"]))}}),w=i({__name:"BListGroupItem",props:{action:{type:Boolean,default:!1},button:{type:Boolean,default:!1},tag:{default:"div"},active:{type:Boolean,default:!1},activeClass:{default:void 0},disabled:{type:Boolean,default:void 0},exactActiveClass:{default:void 0},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}},setup(u){const e=b(u,"BListGroupItem"),s=z(),r=A(d,null),{computedLink:t}=$(e),n=o(()=>!e.button&&t.value),y=o(()=>r?.numbered.value?"li":e.button?"button":n.value?O:e.tag),h=o(()=>e.action||n.value||e.button||["a","router-link","button","b-link"].includes(e.tag)),B=o(()=>({[`list-group-item-${e.variant}`]:e.variant!==null&&e.variant!==void 0,"list-group-item-action":h.value,active:e.active,disabled:e.disabled})),_=o(()=>{const l={};return e.button&&((!s||!s.type)&&(l.type="button"),e.disabled&&(l.disabled=!0)),l});return(l,x)=>(f(),p(m(y.value),G({class:["list-group-item",B.value],"aria-current":a(e).active?!0:void 0,"aria-disabled":a(e).disabled?!0:void 0,target:n.value?a(e).target:void 0,href:a(e).button?void 0:a(e).href,to:a(e).button?void 0:a(e).to},_.value),{default:c(()=>[v(l.$slots,"default")]),_:3},16,["class","aria-current","aria-disabled","target","href","to"]))}});export{j as _,w as a};
