Liferay.Loader.define("adaptive-media-web@5.0.41/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 e=e=>/^[\w-]+$/.test(e)?void 0:Liferay.Language.get("please-enter-only-alphanumeric-characters-dashes-or-underscores");r.alphanumeric=e;const a=e=>{if(!e)return Liferay.Language.get("this-field-is-required")};r.required=a;const i=(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=i}}));
//# sourceMappingURL=validations.js.map