const e=require("../_util/classNames.js"),t=require("../_util/props-util/index.js"),n=require("../grid/Col.js"),r=require("./context.js"),i=require("./ErrorList.js");let a=require("vue");var o=(0,a.defineComponent)({compatConfig:{MODE:3},slots:Object,inheritAttrs:!1,props:[`prefixCls`,`errors`,`hasFeedback`,`onDomErrorVisibleChange`,`wrapperCol`,`help`,`extra`,`status`,`marginBottom`,`onErrorVisibleChanged`],setup(o,{slots:s}){let c=r.useInjectForm(),{wrapperCol:l}=c,u={...c};return delete u.labelCol,delete u.wrapperCol,r.useProvideForm(u),r.useProvideFormItemPrefix({prefixCls:(0,a.computed)(()=>o.prefixCls),status:(0,a.computed)(()=>o.status)}),()=>{let{prefixCls:r,wrapperCol:c,marginBottom:u,onErrorVisibleChanged:d,help:f=s.help?.(),errors:p=t.filterEmpty(s.errors?.()),extra:m=s.extra?.()}=o,h=`${r}-item`,g=c||l?.value||{},_=e.default(`${h}-control`,g.class);return(0,a.createVNode)(n.default,{...g,class:_},{default:()=>(0,a.createVNode)(a.Fragment,null,[(0,a.createVNode)(`div`,{class:`${h}-control-input`},[(0,a.createVNode)(`div`,{class:`${h}-control-input-content`},[s.default?.()])]),u!==null||p.length?(0,a.createVNode)(`div`,{style:{display:`flex`,flexWrap:`nowrap`}},[(0,a.createVNode)(i.default,{errors:p,help:f,class:`${h}-explain-connected`,onErrorVisibleChanged:d},null),!!u&&(0,a.createVNode)(`div`,{style:{width:0,height:`${u}px`}},null)]):null,m?(0,a.createVNode)(`div`,{class:`${h}-extra`},[m]):null])})}}});exports.default=o;