{
  "version": 3,
  "sources": ["../ui/app/mn.logs.list.service.js"],
  "sourcesContent": ["/*\nCopyright 2021-Present Couchbase, Inc.\n\nUse of this software is governed by the Business Source License included in\nthe file licenses/BSL-Couchbase.txt.  As of the Change Date specified in that\nfile, in accordance with the Business Source License, use of this software will\nbe governed by the Apache License, Version 2.0, included in the file\nlicenses/APL2.txt.\n*/\n\nimport {Injectable} from '@angular/core';\nimport {HttpClient} from '@angular/common/http';\nimport {timer} from 'rxjs';\nimport {switchMap, shareReplay} from 'rxjs/operators';\nimport {singletonGuard} from './mn.core.js';\n\nexport {MnLogsListService};\n\nclass MnLogsListService {\n  static get annotations() { return [\n    new Injectable()\n  ]}\n\n  static get parameters() { return [\n    HttpClient\n  ]}\n\n  constructor(http) {\n    singletonGuard(MnLogsListService);\n    this.http = http;\n\n    this.stream = {};\n\n    this.stream.logs =\n      timer(0, 10000).pipe(\n        switchMap(this.getLogs.bind(this)),\n        shareReplay({refCount: true, bufferSize: 1}));\n  }\n\n  getLogs() {\n    return this.http.get('/logs');\n  }\n}\n"],
  "mappings": "2KAkBA,2BAAwB,WACX,cAAc,CAAE,MAAO,CAChC,GAAI,uBAGK,aAAa,CAAE,MAAO,CAC/B,YAGF,YAAY,KAAM,CAChB,eAAe,mBACf,KAAK,KAAO,KAEZ,KAAK,OAAS,GAEd,KAAK,OAAO,KACV,MAAM,EAAG,KAAO,KACd,UAAU,KAAK,QAAQ,KAAK,OAC5B,YAAY,CAAC,SAAU,GAAM,WAAY,KAG/C,SAAU,CACR,MAAO,MAAK,KAAK,IAAI,WAtBzB",
  "names": []
}