var __extends=this&&this.__extends||function(){var t=function(e,r){t=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r))t[r]=e[r]};return t(e,r)};return function(e,r){if(typeof r!=="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");t(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}}();import{h}from"./index-ecdfb761.js";import{r as registerField}from"./FieldGenerator-3ae403b2.js";import{B as BaseField}from"./BaseField-0b01dc2c.js";var SubFormField=function(t){__extends(e,t);function e(e,r,n,o,i,u,s){var a=t.call(this,e,"subForm")||this;a.id=e;a.title=r;a.description=o;a.fields=n;a.language=s;a.layout=i;a.showFieldOrder=u;a.maxCount=1;a.minCount=1;a.separated=true;a.value=undefined;return a}e.prototype.setMaxCount=function(t){this.maxCount=t;return this};e.prototype.setMinCount=function(t){this.minCount=t;return this};e.prototype.setSeparated=function(t){this.separated=t;return this};return e}(BaseField);SubFormField.type="subForm";var render=function(t,e,r,n,o,i){return h("dvn-field-input-sub-form",{disabled:n,errors:r,field:t,onChange:function(e){e.stopImmediatePropagation();o(t,e.detail)},onBlur:function(){return i(t)},value:e})};registerField("subForm",render);export{SubFormField as S};