

const require_rolldown_runtime = require('../../../../_virtual/rolldown_runtime.js');
const require_decorateMetadata = require('../../../../_virtual/_@oxc-project_runtime@0.95.0/helpers/decorateMetadata.js');
const require_decorate = require('../../../../_virtual/_@oxc-project_runtime@0.95.0/helpers/decorate.js');
const require_validators = require('../../../../utils/validators.js');
require('../../../../utils/index.js');
const require_DidDocumentService = require('./DidDocumentService.js');
const require_DidCommV2Service = require('./DidCommV2Service.js');
let class_validator = require("class-validator");
class_validator = require_rolldown_runtime.__toESM(class_validator);

//#region src/modules/dids/domain/service/LegacyDidCommV2Service.ts
var LegacyDidCommV2Service = class LegacyDidCommV2Service extends require_DidDocumentService.DidDocumentService {
	constructor(options) {
		super({
			...options,
			type: LegacyDidCommV2Service.type
		});
		if (options) {
			this.serviceEndpoint = options.serviceEndpoint;
			this.accept = options.accept;
			this.routingKeys = options.routingKeys;
		}
	}
	toNewDidCommV2() {
		return new require_DidCommV2Service.DidCommV2Service({
			id: this.id,
			serviceEndpoint: new require_DidCommV2Service.DidCommV2ServiceEndpoint({
				uri: this.serviceEndpoint,
				accept: this.accept,
				routingKeys: this.routingKeys
			})
		});
	}
};
LegacyDidCommV2Service.type = "DIDComm";
require_decorate.__decorate([
	(0, class_validator.IsString)({ each: true }),
	(0, class_validator.IsOptional)(),
	require_decorateMetadata.__decorateMetadata("design:type", Array)
], LegacyDidCommV2Service.prototype, "routingKeys", void 0);
require_decorate.__decorate([
	(0, class_validator.IsString)({ each: true }),
	(0, class_validator.IsOptional)(),
	require_decorateMetadata.__decorateMetadata("design:type", Array)
], LegacyDidCommV2Service.prototype, "accept", void 0);
require_decorate.__decorate([
	require_validators.IsUri(),
	(0, class_validator.IsString)(),
	require_decorateMetadata.__decorateMetadata("design:type", String)
], LegacyDidCommV2Service.prototype, "serviceEndpoint", void 0);

//#endregion
exports.LegacyDidCommV2Service = LegacyDidCommV2Service;