import{I as r}from"./p-abd7aeaa.js";class e extends r{constructor(r){super(),this.phoneNumberValueGetter=r}evaluate(r){if(!this.isAcceptedInputType(r))throw new Error(`Invalid value ${r} for input phone number`);const e=""!==this.phoneNumberValueGetter();return{isValid:e,message:e?"":"This field is required"}}canEvaluate(r,e){return e?this.isAcceptedInputType(r)&&!e.disabled&&e.visible:this.isAcceptedInputType(r)}shouldShowError(r){return!r.disabled&&r.visible&&(r.touched||r.modified)}isAcceptedInputType(r){return null==r||"string"==typeof r}}export{e as I}