Liferay.Loader.define("adaptive-media-web@5.0.49/adaptive_media/js/form/validations",["module","exports","require"],(function(e,r,a){window;{Object.defineProperty(r,"__esModule",{value:!0}),r.validate=r.required=r.alphanumeric=void 0;const alphanumeric=e=>/^[\w-]+$/.test(e)?void 0:Liferay.Language.get("please-enter-only-alphanumeric-characters-dashes-or-underscores");r.alphanumeric=alphanumeric;const required=e=>{if(!e)return Liferay.Language.get("this-field-is-required")};r.required=required;const validate=(e,r)=>{const a={};return Object.entries(e).forEach((([e,i])=>{i.some((i=>{const t=i(r[e]);return t&&(a[e]=t),t}))})),a};r.validate=validate}}));
//# sourceMappingURL=validations.js.map