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

//#region ../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/string/is-tax-id.js
var require_is_tax_id = /* @__PURE__ */ require_rolldown_runtime.__commonJS({ "../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/decorator/string/is-tax-id.js": ((exports) => {
	var __importDefault = exports && exports.__importDefault || function(mod) {
		return mod && mod.__esModule ? mod : { "default": mod };
	};
	Object.defineProperty(exports, "__esModule", { value: true });
	exports.IsTaxId = exports.isTaxId = exports.IS_TAX_ID = void 0;
	const ValidateBy_1 = require_ValidateBy$1.require_ValidateBy();
	const isTaxID_1 = __importDefault(require_isTaxID$1.require_isTaxID());
	exports.IS_TAX_ID = "isTaxId";
	/**
	* Checks if the string is a valid tax ID. Default locale is `en-US`.
	* If given value is not a string, then it returns false.
	*
	* Supported locales: bg-BG, cs-CZ, de-AT, de-DE, dk-DK, el-CY, el-GR, en-CA,
	* en-IE, en-US, es-ES, et-EE, fi-FI, fr-BE, fr-FR, fr-LU, hr-HR, hu-HU, it-IT,
	* lv-LV, mt-MT, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, sk-SK, sl-SI, sv-SE.
	*/
	function isTaxId(value, locale) {
		return typeof value === "string" && (0, isTaxID_1.default)(value, locale || "en-US");
	}
	exports.isTaxId = isTaxId;
	/**
	* Checks if the string is a valid tax ID. Default locale is `en-US`.
	* If given value is not a string, then it returns false.
	*
	* Supported locales: bg-BG, cs-CZ, de-AT, de-DE, dk-DK, el-CY, el-GR, en-CA,
	* en-IE, en-US, es-ES, et-EE, fi-FI, fr-BE, fr-FR, fr-LU, hr-HR, hu-HU, it-IT,
	* lv-LV, mt-MT, nl-NL, pl-PL, pt-BR, pt-PT, ro-RO, sk-SK, sl-SI, sv-SE.
	*/
	function IsTaxId(locale, validationOptions) {
		return (0, ValidateBy_1.ValidateBy)({
			name: exports.IS_TAX_ID,
			constraints: [locale],
			validator: {
				validate: (value, args) => isTaxId(value, args === null || args === void 0 ? void 0 : args.constraints[0]),
				defaultMessage: (0, ValidateBy_1.buildMessage)((eachPrefix) => eachPrefix + "$property must be a Tax Identification Number", validationOptions)
			}
		}, validationOptions);
	}
	exports.IsTaxId = IsTaxId;
}) });

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