import{_ as r}from"./FieldBase-BNePpS9o.mjs";const u={extends:r,props:{value:{type:[String,Number,Object],default:void 0},defaultValue:{type:[String,Number],default:""}},computed:{currValue(){const e=typeof this.value;return e==="string"||e==="number"?this.value:this.defaultValue}},methods:{validate(e){return this.required&&(!e||`${e}`.trim()==="")?{valid:!1,errors:["Field is required"]}:{valid:!0,errors:[]}}}};export{u as _};