const require_rolldown_runtime = require('../../../../../../../../_virtual/rolldown_runtime.js');
const require_ValidateBy$1 = require('../common/ValidateBy.js');
const require_ValidationOptions$1 = require('../ValidationOptions.js');
const require_isMACAddress$1 = require('../../../../../../validator@13.12.0/node_modules/validator/lib/isMACAddress.js');

//#region ../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/string/IsMacAddress.js
var require_IsMacAddress = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/string/IsMacAddress.js": ((exports) => {
	var __importDefault = exports && exports.__importDefault || function(mod) {
		return mod && mod.__esModule ? mod : { "default": mod };
	};
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.IsMACAddress = exports.isMACAddress = exports.IS_MAC_ADDRESS = void 0;
	const ValidationOptions_1 = require_ValidationOptions$1.require_ValidationOptions();
	const ValidateBy_1 = require_ValidateBy$1.require_ValidateBy();
	const isMACAddress_1 = __importDefault(require_isMACAddress$1.require_isMACAddress());
	exports.IS_MAC_ADDRESS = "isMacAddress";
	/**
	* Check if the string is a MAC address.
	* If given value is not a string, then it returns false.
	*/
	function isMACAddress(value, options) {
		return typeof value === "string" && (0, isMACAddress_1.default)(value, options);
	}
	exports.isMACAddress = isMACAddress;
	function IsMACAddress(optionsOrValidationOptionsArg, validationOptionsArg) {
		const options = !(0, ValidationOptions_1.isValidationOptions)(optionsOrValidationOptionsArg) ? optionsOrValidationOptionsArg : void 0;
		const validationOptions = (0, ValidationOptions_1.isValidationOptions)(optionsOrValidationOptionsArg) ? optionsOrValidationOptionsArg : validationOptionsArg;
		return (0, ValidateBy_1.ValidateBy)({
			name: exports.IS_MAC_ADDRESS,
			constraints: [options],
			validator: {
				validate: (value, args) => isMACAddress(value, options),
				defaultMessage: (0, ValidateBy_1.buildMessage)((eachPrefix) => eachPrefix + "$property must be a MAC Address", validationOptions)
			}
		}, validationOptions);
	}
	exports.IsMACAddress = IsMACAddress;
}) });

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