import{__assign as e}from"../../../../../../../node_modules/tslib/tslib.es6.js";var a=function(a){var s={message:{},validator:{}};return a.forEach((function(a){var t=r(a);s={message:e(e({},s.message),t.message),validator:e(e({},s.validator),t.validator)}})),s},r=function(e){var a={validator:{},message:{}};switch(e.type){case"required":a.message={required:e.errorMessage},a.validator={required:!0};break;case"email":case"numeric":case"regex":a.message={pattern:e.errorMessage},a.validator={pattern:new RegExp(e.pattern)}}return a};export{a as transformValidator};
//# sourceMappingURL=ValidatorTransformer.js.map
