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