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