{"version":3,"file":"SdJwtVcModule.mjs","names":[],"sources":["../../../src/modules/sd-jwt-vc/SdJwtVcModule.ts"],"sourcesContent":["import type { DependencyManager, Module } from '../../plugins'\nimport { SdJwtVcRepository } from './repository'\nimport { SdJwtVcApi } from './SdJwtVcApi'\nimport { SdJwtVcModuleConfig, type SdJwtVcModuleConfigOptions } from './SdJwtVcModuleConfig'\nimport { SdJwtVcService } from './SdJwtVcService'\n\n/**\n * @public\n */\nexport class SdJwtVcModule implements Module {\n  public readonly config: SdJwtVcModuleConfig\n\n  public readonly api = SdJwtVcApi\n\n  public constructor(options?: SdJwtVcModuleConfigOptions) {\n    this.config = new SdJwtVcModuleConfig(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    // Config\n    dependencyManager.registerInstance(SdJwtVcModuleConfig, this.config)\n\n    // Services\n    dependencyManager.registerSingleton(SdJwtVcService)\n\n    // Repositories\n    dependencyManager.registerSingleton(SdJwtVcRepository)\n  }\n}\n"],"mappings":";;;;;;;;;AASA,IAAa,gBAAb,MAA6C;CAK3C,YAAmB,SAAsC;EAFzD,KAAgB,MAAM;EAGpB,KAAK,SAAS,IAAI,oBAAoB,OAAO;CAC/C;;;;CAKA,SAAgB,mBAAsC;EAEpD,kBAAkB,iBAAiB,qBAAqB,KAAK,MAAM;EAGnE,kBAAkB,kBAAkB,cAAc;EAGlD,kBAAkB,kBAAkB,iBAAiB;CACvD;AACF"}