"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),c=require("@aplus-frontend/antdv"),u=require("lodash-unified");require("../../render/index.js");require("../../config-provider/index.js");require("../../utils/index.js");const q=require("../constant.js"),_=require("../style/item-group.js"),d=require("./helper.js"),P=require("../../config-provider/hooks/use-namespace.js"),h=require("../../utils/is.js"),S=require("../../render/render.js");function b(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!e.isVNode(r)}const w=e.defineComponent({name:"ApFormItemGroup",__name:"index",props:{align:{},justify:{},prefixCls:{},gutter:{default:24},wrap:{type:Boolean,default:void 0},countPerRow:{default:3}},setup(r){const s=r,{b:i}=P.useNamespace("ap-form-item-group"),p=_.default("ap-form-item-group");function l(n){return n.map((t,f)=>{const o=t.props,a=u.pick(o,q.apFormItemColPropKeys),m=a?.span?{}:d.buildColSpan(s.countPerRow),g=u.isBoolean(o.hidden)?!!o.hidden:h.isDef(o.hidden);return e.createVNode(c.Col,e.mergeProps(m,a,{key:`${f}-${d.getStringName(o.name)}`,class:g?i("col-hidden"):""}),b(t)?t:{default:()=>[t]})})}return(n,t)=>(e.openBlock(),e.createBlock(e.unref(c.Row),e.mergeProps({class:[e.unref(i)(),e.unref(p)]},e.unref(u.omit)(s,["countPerRow"])),{default:e.withCtx(()=>[e.createVNode(e.unref(S.default),{renderer:l},{default:e.withCtx(()=>[e.renderSlot(n.$slots,"default")]),_:3})]),_:3},16,["class"]))}});exports.default=w;
