import{V as e}from"./p-fea761e3.js";import{I as r}from"./p-abd7aeaa.js";class i extends r{evaluate(e){var r,i;if(!this.isAcceptedInputType(e))throw new Error(`Invalid value ${e} for rich text editor`);const t=(null===(r=null==e?void 0:e.children)||void 0===r?void 0:r.length)>1||1===(null===(i=null==e?void 0:e.children)||void 0===i?void 0:i.length)&&e.children.some((e=>e.isNotEmpty()));return{isValid:t,message:t?"":"This field is required"}}canEvaluate(e,r){return r?this.isAcceptedInputType(e)&&!r.disabled&&r.visible:this.isAcceptedInputType(e)}shouldShowError(e){return!e.disabled&&e.visible&&(e.touched||e.modified)}isAcceptedInputType(r){return null==r||r instanceof e}}export{i as R}