const require_rolldown_runtime = require('../../../../../../../../_virtual/rolldown_runtime.js');
const require_ValidateBy$1 = require('./ValidateBy.js');

//#region ../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/common/Equals.js
var require_Equals = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/common/Equals.js": ((exports) => {
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.Equals = exports.equals = exports.EQUALS = void 0;
	const ValidateBy_1 = require_ValidateBy$1.require_ValidateBy();
	exports.EQUALS = "equals";
	/**
	* Checks if value matches ("===") the comparison.
	*/
	function equals(value, comparison) {
		return value === comparison;
	}
	exports.equals = equals;
	/**
	* Checks if value matches ("===") the comparison.
	*/
	function Equals(comparison, validationOptions) {
		return (0, ValidateBy_1.ValidateBy)({
			name: exports.EQUALS,
			constraints: [comparison],
			validator: {
				validate: (value, args) => equals(value, args === null || args === void 0 ? void 0 : args.constraints[0]),
				defaultMessage: (0, ValidateBy_1.buildMessage)((eachPrefix) => eachPrefix + "$property must be equal to $constraint1", validationOptions)
			}
		}, validationOptions);
	}
	exports.Equals = Equals;
}) });

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