{"version":3,"file":"annuadvent-ngx-core-app-config.mjs","sources":["../../../projects/ngx-core/app-config/src/app-config.module.ts","../../../projects/ngx-core/app-config/src/services/app-config.service.ts","../../../projects/ngx-core/app-config/public-api.ts","../../../projects/ngx-core/app-config/annuadvent-ngx-core-app-config.ts"],"sourcesContent":["import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { RouterModule } from '@angular/router';\r\n\r\n\r\n/**\r\n * Responsible for adding Library configuration as a provider in the root,\r\n * so that all library modules can use it, if needed. This module should be imported in App module with .forRoot().\r\n * @date 17/3/2022 - 7:58:51 pm\r\n *\r\n * @export\r\n * @class AppConfigModule\r\n * @typedef {AppConfigModule}\r\n */\r\n@NgModule({\r\n  declarations: [],\r\n  providers: [],\r\n  imports: [\r\n    CommonModule,\r\n    RouterModule,\r\n  ],\r\n  exports: [],\r\n})\r\nexport class AppConfigModule {\r\n  constructor() { }\r\n}\r\n","import { Injectable } from '@angular/core';\r\nimport { AppConfig } from '../interfaces/app-config.interface';\r\nimport { Router } from '@angular/router';\r\n\r\n@Injectable({\r\n  providedIn: 'root'\r\n})\r\nexport class AppConfigService {\r\n  private _appConfig: AppConfig = null;\r\n\r\n  constructor(private router: Router) { }\r\n\r\n\r\n  public get config(): AppConfig {\r\n    return this._appConfig;\r\n  }\r\n\r\n\r\n  public set config(v: AppConfig) {\r\n    this._appConfig = v;\r\n  }\r\n\r\n  public get openai(): any {\r\n    return this._appConfig.openai;\r\n  }\r\n\r\n\r\n  public set openai(v: any) {\r\n    this._appConfig.openai = v;\r\n  }\r\n\r\n\r\n  public get firebase(): any {\r\n    return this._appConfig.firebase;\r\n  }\r\n\r\n\r\n  public set firebase(v: any) {\r\n    this._appConfig.firebase = v;\r\n  }\r\n\r\n  public getConfigById(id: string): any {\r\n    return this._appConfig[id];\r\n  }\r\n}\r\n","\r\n// Export all exposable angular assets from ./src folder, like components, services, pipes, directives etc.\r\nexport * from './src/app-config.module';\r\nexport * from './src/services/app-config.service';\r\nexport * from './src/interfaces/app-config.interface';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;AAKA;;;;;;;;AAQG;MAUU,eAAe,CAAA;AAC1B,IAAA,WAAA,GAAA,GAAiB;8GADN,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,YALxB,YAAY;YACZ,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;AAIH,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,YALxB,YAAY;YACZ,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;2FAIH,eAAe,EAAA,UAAA,EAAA,CAAA;kBAT3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,SAAS,EAAE,EAAE;AACb,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,YAAY;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE,EAAE;AACZ,iBAAA,CAAA;;;MCfY,gBAAgB,CAAA;AAG3B,IAAA,WAAA,CAAoB,MAAc,EAAA;QAAd,IAAM,CAAA,MAAA,GAAN,MAAM,CAAQ;QAF1B,IAAU,CAAA,UAAA,GAAc,IAAI,CAAC;KAEE;AAGvC,IAAA,IAAW,MAAM,GAAA;QACf,OAAO,IAAI,CAAC,UAAU,CAAC;KACxB;IAGD,IAAW,MAAM,CAAC,CAAY,EAAA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