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

//#region ../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/string/IsStrongPassword.js
var require_IsStrongPassword = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/string/IsStrongPassword.js": ((exports) => {
	var __createBinding = exports && exports.__createBinding || (Object.create ? (function(o, m, k, k2) {
		if (k2 === void 0) k2 = k;
		var desc = Object.getOwnPropertyDescriptor(m, k);
		if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) desc = {
			enumerable: true,
			get: function() {
				return m[k];
			}
		};
		Object.defineProperty(o, k2, desc);
	}) : (function(o, m, k, k2) {
		if (k2 === void 0) k2 = k;
		o[k2] = m[k];
	}));
	var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v) {
		Object.defineProperty(o, "default", {
			enumerable: true,
			value: v
		});
	}) : function(o, v) {
		o["default"] = v;
	});
	var __importStar = exports && exports.__importStar || function(mod) {
		if (mod && mod.__esModule) return mod;
		var result = {};
		if (mod != null) {
			for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
		}
		__setModuleDefault(result, mod);
		return result;
	};
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.IsStrongPassword = exports.isStrongPassword = exports.IS_STRONG_PASSWORD = void 0;
	const validator = __importStar(require_index.require_validator());
	const ValidateBy_1 = require_ValidateBy$1.require_ValidateBy();
	exports.IS_STRONG_PASSWORD = "isStrongPassword";
	/**
	* Checks if the string is a strong password.
	* If given value is not a string, then it returns false.
	*/
	function isStrongPassword(value, options) {
		return typeof value === "string" && validator.isStrongPassword(value, options);
	}
	exports.isStrongPassword = isStrongPassword;
	/**
	* Checks if the string is a strong password.
	* If given value is not a string, then it returns false.
	*/
	function IsStrongPassword(options, validationOptions) {
		return (0, ValidateBy_1.ValidateBy)({
			name: exports.IS_STRONG_PASSWORD,
			constraints: [options],
			validator: {
				validate: (value, args) => isStrongPassword(value, args.constraints[0]),
				defaultMessage: (0, ValidateBy_1.buildMessage)((eachPrefix) => eachPrefix + "$property is not strong enough", validationOptions)
			}
		}, validationOptions);
	}
	exports.IsStrongPassword = IsStrongPassword;
}) });

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