import{u as m}from"./useDefaults-DESCdb0p-CFLjYrdG.js";import{l as _,x as r,c as f,o as s,w as g,J as a,d as l,h as c,a as i,t as u,D as t,n as h,G as v,e as C,A as G,aB as $}from"./index-D02r7Zsc.js";const k={key:0,class:"input-group-text"},y={key:0,class:"input-group-text"},N=_({__name:"BInputGroup",props:{append:{default:void 0},id:{default:void 0},prepend:{default:void 0},size:{default:"md"},tag:{default:"div"}},setup(p){G($,!0);const e=m(p,"BInputGroup"),o=r(()=>({[`input-group-${e.size}`]:e.size!=="md"})),d=r(()=>!!e.append),B=r(()=>!!e.prepend);return(n,z)=>(s(),f(v(t(e).tag),{id:t(e).id,class:h(["input-group",o.value]),role:"group"},{default:g(()=>[a(n.$slots,"prepend",{},()=>[B.value?(s(),l("span",k,[i("span",null,u(t(e).prepend),1)])):c("",!0)]),a(n.$slots,"default"),a(n.$slots,"append",{},()=>[d.value?(s(),l("span",y,[i("span",null,u(t(e).append),1)])):c("",!0)])]),_:3},8,["id","class"]))}}),T=_({__name:"BInputGroupText",props:{tag:{default:"div"},text:{default:void 0}},setup(p){const e=m(p,"BInputGroupText");return(o,d)=>(s(),f(v(t(e).tag),{class:"input-group-text"},{default:g(()=>[a(o.$slots,"default",{},()=>[C(u(t(e).text),1)])]),_:3}))}});export{N as _,T as a};
