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