const require_rolldown_runtime = require('../../../../../../../../_virtual/rolldown_runtime.js');
const require_ValidateBy$1 = require('../common/ValidateBy.js');
const require_matches$1 = require('../../../../../../validator@13.12.0/node_modules/validator/lib/matches.js');

//#region ../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/string/IsMilitaryTime.js
var require_IsMilitaryTime = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/string/IsMilitaryTime.js": ((exports) => {
	var __importDefault = exports && exports.__importDefault || function(mod) {
		return mod && mod.__esModule ? mod : { "default": mod };
	};
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.IsMilitaryTime = exports.isMilitaryTime = exports.IS_MILITARY_TIME = void 0;
	const ValidateBy_1 = require_ValidateBy$1.require_ValidateBy();
	const matches_1 = __importDefault(require_matches$1.require_matches());
	exports.IS_MILITARY_TIME = "isMilitaryTime";
	/**
	* Checks if the string represents a time without a given timezone in the format HH:MM (military)
	* If the given value does not match the pattern HH:MM, then it returns false.
	*/
	function isMilitaryTime(value) {
		return typeof value === "string" && (0, matches_1.default)(value, /^([01]\d|2[0-3]):?([0-5]\d)$/);
	}
	exports.isMilitaryTime = isMilitaryTime;
	/**
	* Checks if the string represents a time without a given timezone in the format HH:MM (military)
	* If the given value does not match the pattern HH:MM, then it returns false.
	*/
	function IsMilitaryTime(validationOptions) {
		return (0, ValidateBy_1.ValidateBy)({
			name: exports.IS_MILITARY_TIME,
			validator: {
				validate: (value, args) => isMilitaryTime(value),
				defaultMessage: (0, ValidateBy_1.buildMessage)((eachPrefix) => eachPrefix + "$property must be a valid representation of military time in the format HH:MM", validationOptions)
			}
		}, validationOptions);
	}
	exports.IsMilitaryTime = IsMilitaryTime;
}) });

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