var __spreadArray=this&&this.__spreadArray||function(t,e){for(var r=0,i=e.length,s=t.length;r<i;r++,s++)t[s]=e[r];return t};var BaseField=function(){function t(t,e){this.id=t;this.type=e}t.decode=function(e){return Object.assign(Object.create(t.prototype),e)};t.prototype.getDisplayValue=function(t){return t};t.prototype.addInterceptor=function(t,e){var r;if(!this.interceptors){this.interceptors={}}this.interceptors=Object.assign(Object.assign({},this.interceptors),(r={},r[t]=__spreadArray(__spreadArray([],this.interceptors[t]||[]),[e]),r));return this};t.prototype.require=function(){this.required=true;return this};t.prototype.disable=function(){this.disabled=true;return this};t.prototype.hide=function(){this.visible=false;return this};t.prototype.setVisibility=function(t){this.visible=t;return this};t.prototype.setValue=function(t){this.value=t;return this};t.prototype.setErrorTitle=function(t){this.errorTitle=t;return this};return t}();export{BaseField as B};