const require_rolldown_runtime = require('../../../../../_virtual/rolldown_runtime.js');
const require_index = require('../../../../../node_modules/.pnpm/class-transformer@0.5.1/node_modules/class-transformer/cjs/index.js');
const require_index$1 = require('../../../../../node_modules/.pnpm/class-validator@0.14.1/node_modules/class-validator/cjs/index.js');
const require_decorateMetadata = require('../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorateMetadata.js');
const require_decorate = require('../../../../../_virtual/_@oxc-project_runtime@0.94.0/helpers/decorate.js');
const require_L10nDecorator = require('./L10nDecorator.js');

//#region ../didcomm/src/decorators/l10n/L10nDecoratorExtension.ts
var import_cjs = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_index.require_cjs());
var import_cjs$1 = /* @__PURE__ */ require_rolldown_runtime.__toESM(require_index$1.require_cjs());
function L10nDecorated(Base) {
	var _ref;
	class L10nDecoratorExtension extends Base {
		addLocale(locale) {
			this.l10n = new require_L10nDecorator.L10nDecorator({ locale });
		}
		getLocale() {
			if (this.l10n?.locale) return this.l10n.locale;
		}
	}
	require_decorate.__decorate([
		(0, import_cjs.Expose)({ name: "~l10n" }),
		(0, import_cjs.Type)(() => require_L10nDecorator.L10nDecorator),
		(0, import_cjs$1.ValidateNested)(),
		(0, import_cjs$1.IsOptional)(),
		(0, import_cjs$1.IsInstance)(require_L10nDecorator.L10nDecorator),
		require_decorateMetadata.__decorateMetadata("design:type", typeof (_ref = typeof require_L10nDecorator.L10nDecorator !== "undefined" && require_L10nDecorator.L10nDecorator) === "function" ? _ref : Object)
	], L10nDecoratorExtension.prototype, "l10n", void 0);
	return L10nDecoratorExtension;
}

//#endregion
exports.L10nDecorated = L10nDecorated;