import{ay as r,bl as e}from"./p-BTBbFFOR.js";class s extends r{constructor(r){super(),this.config=r}evaluate(r){if(!this.isAcceptedInputType(r))throw new Error(`Invalid time value ${r} for range mode`);const s=Array.isArray(r)&&2===r.length&&r.every((r=>e(r,this.config.timeFormat)));return{isValid:s,message:s?"":"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||Array.isArray(r)}}class t extends r{constructor(r){super(),this.config=r}evaluate(r){if(!this.isAcceptedInputType(r))throw new Error(`Invalid time value ${r}`);const s=e(r,this.config.timeFormat);return{isValid:s,message:s?"":"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{s as T,t as a}