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