import{d as e}from"../como-ts-utils/como-ts-utils.52443996.js";var t=(e=>(e[e.required=1]="required",e[e.existisRequired=2]="existisRequired",e[e.notEmptyRequired=3]="notEmptyRequired",e))(t||{});class i{GetQuickRules(e,t){const i=this,r={};return e.forEach((e=>{(1==e.ruleType||2==e.ruleType&&t.hasOwnProperty(e.field)||3==e.ruleType&&t[e.field])&&(r[e.field]=i[e.field])})),r}async Validator(t,i){return await e.ComoTsValidate(t,i)}async DataRuleAndValidator(e,t){const i=this.GetQuickRules(e,t);return await this.Validator(i,t)}}export{i as B,t as Q};
