import{ay as t,aC as s}from"./p-BTBbFFOR.js";class e extends t{constructor(t){super(),this.config=t}evaluate(t){var e;if(!this.isAcceptedInputType(t))throw new Error(`Unexpected type of input: ${typeof t}: ${t}`);const r=isNaN(null===(e=this.config)||void 0===e?void 0:e.maxValue)?Number.MAX_VALUE:this.config.maxValue;return{isValid:s(String(t).replace(/,/g,""))<=r,message:s(String(t).replace(/,/g,""))<=r?"":{key:"The maximum input value is {0}",args:[r]}}}canEvaluate(t,s){return s?this.isAcceptedInputType(t)&&!s.disabled&&s.visible:this.isAcceptedInputType(t)}shouldShowError(t){return!t.disabled&&t.visible&&(t.touched||t.modified)}isAcceptedInputType(t){return!isNaN(s(t))||/^\s*[-+]?(\d{1,3})(,\d{3})*(\.\d*)?\s*$/.test(t)}}class r extends t{constructor(t){super(),this.config=t}evaluate(t){var e;if(!this.isAcceptedInputType(t))throw new Error(`Unexpected type of input: ${typeof t}: ${t}`);const r=isNaN(null===(e=this.config)||void 0===e?void 0:e.minValue)?0:this.config.minValue;return{isValid:s(String(t).replace(/,/g,""))>=r,message:s(String(t).replace(/,/g,""))>=r?"":{key:"The minimum input value is {0}",args:[r]}}}canEvaluate(t,s){return s?this.isAcceptedInputType(t)&&!s.disabled&&s.visible:this.isAcceptedInputType(t)}shouldShowError(t){return!t.disabled&&t.visible&&(t.touched||t.modified)}isAcceptedInputType(t){return!isNaN(s(t))||/^\s*[-+]?(\d{1,3})(,\d{3})*(\.\d*)?\s*$/.test(t)}}export{r as M,e as a}