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

//#region ../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/number/IsPositive.js
var require_IsPositive = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/number/IsPositive.js": ((exports) => {
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.IsPositive = exports.isPositive = exports.IS_POSITIVE = void 0;
	const ValidateBy_1 = require_ValidateBy$1.require_ValidateBy();
	exports.IS_POSITIVE = "isPositive";
	/**
	* Checks if the value is a positive number greater than zero.
	*/
	function isPositive(value) {
		return typeof value === "number" && value > 0;
	}
	exports.isPositive = isPositive;
	/**
	* Checks if the value is a positive number greater than zero.
	*/
	function IsPositive(validationOptions) {
		return (0, ValidateBy_1.ValidateBy)({
			name: exports.IS_POSITIVE,
			validator: {
				validate: (value, args) => isPositive(value),
				defaultMessage: (0, ValidateBy_1.buildMessage)((eachPrefix) => eachPrefix + "$property must be a positive number", validationOptions)
			}
		}, validationOptions);
	}
	exports.IsPositive = IsPositive;
}) });

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