const require_rolldown_runtime = require('../../../../../../../../_virtual/rolldown_runtime.js');
const require_register_decorator$1 = require('../../register-decorator.js');

//#region ../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/common/ValidateBy.js
var require_ValidateBy = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/common/ValidateBy.js": ((exports) => {
	Object.defineProperty(exports, "__esModule", { value: true });
	const register_decorator_1 = require_register_decorator$1.require_register_decorator();
	function buildMessage(impl, validationOptions) {
		return (validationArguments) => {
			return impl(validationOptions && validationOptions.each ? "each value in " : "", validationArguments);
		};
	}
	exports.buildMessage = buildMessage;
	function ValidateBy(options, validationOptions) {
		return function(object, propertyName) {
			(0, register_decorator_1.registerDecorator)({
				name: options.name,
				target: object.constructor,
				propertyName,
				options: validationOptions,
				constraints: options.constraints,
				validator: options.validator
			});
		};
	}
	exports.ValidateBy = ValidateBy;
}) });

//#endregion
Object.defineProperty(exports, 'default', {
  enumerable: true,
  get: function () {
    return require_ValidateBy();
  }
});