import{I as t}from"./p-abd7aeaa.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=(null===(e=this.config)||void 0===e?void 0:e.maxStrLength)||Number.MAX_VALUE;return{isValid:t.length<=r,message:t.length<=r?"":{key:"The maximum input length is {0}",args:[r]}}}canEvaluate(t,e){return e?this.isAcceptedInputType(t)&&!e.disabled&&e.visible:this.isAcceptedInputType(t)}shouldShowError(t){return!t.disabled&&t.visible&&(t.touched||t.modified)}isAcceptedInputType(t){return"string"==typeof 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=(null===(e=this.config)||void 0===e?void 0:e.minStrLength)||0;return{isValid:t.length>=r,message:t.length>=r?"":{key:"The minimum input length is {0}",args:[r]}}}canEvaluate(t,e){return e?this.isAcceptedInputType(t)&&!e.disabled&&e.visible:this.isAcceptedInputType(t)}shouldShowError(t){return!t.disabled&&t.visible&&(t.touched||t.modified)}isAcceptedInputType(t){return"string"==typeof t}}export{r as M,e as a}