"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue");require("../../render/index.js");require("../../utils/index.js");const m=require("../../utils/warning.js"),c=require("../hooks/use-regist-form.js"),l=require("../../utils/is.js"),p=require("../../render/render.js"),f=e.defineComponent({name:"ApFormSet",__name:"index",props:{name:{},as:{default:"array"},initialValue:{},transform:{}},setup(a){const r=a;c.default(r);const o=m.useDevWarning("ApFormSet"),s=t=>t.map((n,u)=>{if(r.as==="object"&&!l.isDef(n.props?.name))return o(!1,"usage","FormItem skip because of no name prop."),n;const i=r.as==="array"?[r.name,u]:[r.name,n.props.name];return e.cloneVNode(n,{name:i.flat()})});return(t,n)=>(e.openBlock(),e.createBlock(e.unref(p.default),{renderer:s},{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default")]),_:3}))}});exports.default=f;
