import{__extends as l}from"../../../../../../../node_modules/tslib/tslib.es6.js";import{FieldType as o}from"../FormGeneratorEnums/FieldTypeEnum.js";import{Entity as i}from"./Entity.js";import t from"../../../../../../../node_modules/uuid/dist/esm-browser/v4.js";var n=function(i){function n(l){var n,e,d,r,u,s,v,a=i.call(this)||this;return a.id=null!==(n=null==l?void 0:l.id)&&void 0!==n?n:t(),a.label=null!==(e=null==l?void 0:l.label)&&void 0!==e?e:"",a.type=null!==(d=null==l?void 0:l.type)&&void 0!==d?d:o.NONE,a.placeholder=null!==(r=null==l?void 0:l.placeholder)&&void 0!==r?r:"",a.value=null!==(u=null==l?void 0:l.value)&&void 0!==u?u:"",a.validators=null!==(s=null==l?void 0:l.validators)&&void 0!==s?s:[],a.options=null!==(v=null==l?void 0:l.options)&&void 0!==v?v:"",a}return l(n,i),n.prototype.toJson=function(){return{id:this.id,label:this.label,type:this.type,placeholder:this.placeholder,value:this.value,validators:this.validators.map((function(l){return null==l?void 0:l.toJson()})),options:this.options}},n}(i);export{n as FieldEntity};
//# sourceMappingURL=Field.js.map
