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

//#region ../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/string/is-iso4217-currency-code.js
var require_is_iso4217_currency_code = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/string/is-iso4217-currency-code.js": ((exports) => {
	var __importDefault = exports && exports.__importDefault || function(mod) {
		return mod && mod.__esModule ? mod : { "default": mod };
	};
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.IsISO4217CurrencyCode = exports.isISO4217CurrencyCode = exports.IS_ISO4217_CURRENCY_CODE = void 0;
	const ValidateBy_1 = require_ValidateBy$1.require_ValidateBy();
	const isISO4217_1 = __importDefault(require_isISO4217$1.require_isISO4217());
	exports.IS_ISO4217_CURRENCY_CODE = "isISO4217CurrencyCode";
	/**
	* Check if the string is a valid [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) officially assigned currency code.
	*/
	function isISO4217CurrencyCode(value) {
		return typeof value === "string" && (0, isISO4217_1.default)(value);
	}
	exports.isISO4217CurrencyCode = isISO4217CurrencyCode;
	/**
	* Check if the string is a valid [ISO 4217](https://en.wikipedia.org/wiki/ISO_4217) officially assigned currency code.
	*/
	function IsISO4217CurrencyCode(validationOptions) {
		return (0, ValidateBy_1.ValidateBy)({
			name: exports.IS_ISO4217_CURRENCY_CODE,
			validator: {
				validate: (value, args) => isISO4217CurrencyCode(value),
				defaultMessage: (0, ValidateBy_1.buildMessage)((eachPrefix) => eachPrefix + "$property must be a valid ISO4217 currency code", validationOptions)
			}
		}, validationOptions);
	}
	exports.IsISO4217CurrencyCode = IsISO4217CurrencyCode;
}) });

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