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