{"version":3,"file":"X509Module.mjs","names":[],"sources":["../../../src/modules/x509/X509Module.ts"],"sourcesContent":["import type { DependencyManager, Module } from '../../plugins'\nimport { X509Api } from './X509Api'\nimport type { X509ModuleConfigOptions } from './X509ModuleConfig'\nimport { X509ModuleConfig } from './X509ModuleConfig'\nimport { X509Service } from './X509Service'\n\n/**\n * @public\n */\nexport class X509Module implements Module {\n  public readonly api = X509Api\n\n  public readonly config: X509ModuleConfig\n\n  public constructor(options?: X509ModuleConfigOptions) {\n    this.config = new X509ModuleConfig(options)\n  }\n\n  /**\n   * Registers the dependencies of the sd-jwt-vc module on the dependency manager.\n   */\n  public register(dependencyManager: DependencyManager) {\n    // Register config\n    dependencyManager.registerInstance(X509ModuleConfig, this.config)\n\n    // Services\n    dependencyManager.registerSingleton(X509Service)\n  }\n}\n"],"mappings":";;;;;;;;;;AASA,IAAa,aAAb,MAA0C;CAKxC,AAAO,YAAY,SAAmC;OAJtC,MAAM;AAKpB,OAAK,SAAS,IAAI,iBAAiB,QAAQ;;;;;CAM7C,AAAO,SAAS,mBAAsC;AAEpD,oBAAkB,iBAAiB,kBAAkB,KAAK,OAAO;AAGjE,oBAAkB,kBAAkB,YAAY"}