class t{constructor(t,e){this.id=t,this.type=e}static decode(e){return Object.assign(Object.create(t.prototype),e)}getDisplayValue(t){return t}addInterceptor(t,e){return this.interceptors||(this.interceptors={}),this.interceptors=Object.assign(Object.assign({},this.interceptors),{[t]:[...this.interceptors[t]||[],e]}),this}require(){return this.required=!0,this}disable(){return this.disabled=!0,this}hide(){return this.visible=!1,this}setValue(t){return this.value=t,this}setErrorTitle(t){return this.errorTitle=t,this}}export{t as B}