import e from"../_util/classNames.mjs";import t from"../config-provider/hooks/useConfigInject.mjs";import{FormItemInputContext as n}from"../form/FormItemContext.mjs";import r from"./style/index.mjs";import{computed as i,createVNode as a,defineComponent as o}from"vue";var s=o({compatConfig:{MODE:3},name:`AInputGroup`,inheritAttrs:!1,props:{prefixCls:String,size:{type:String},compact:{type:Boolean,default:void 0}},setup(o,{slots:s,attrs:c}){let{prefixCls:l,direction:u,getPrefixCls:d}=t(`input-group`,o),f=n.useInject();n.useProvide(f,{isFormItemInput:!1});let[p,m]=r(i(()=>d(`input`))),h=i(()=>{let e=l.value;return{[`${e}`]:!0,[m.value]:!0,[`${e}-lg`]:o.size===`large`,[`${e}-sm`]:o.size===`small`,[`${e}-compact`]:o.compact,[`${e}-rtl`]:u.value===`rtl`}});return()=>p(a(`span`,{...c,class:e(h.value,c.class)},[s.default?.()]))}});export{s as default};