{"version":3,"file":"onecx-angular-utils-mocks.mjs","sources":["../../../../libs/angular-utils/mocks/guards-gatherer-mock.ts","../../../../libs/angular-utils/mocks/onecx-angular-utils-mocks.ts"],"sourcesContent":["import { Injectable, OnDestroy } from '@angular/core'\nimport { GuardsGatherer } from '@onecx/angular-utils/guards'\n\nexport function provideGuardsGathererMock() {\n  return [\n    GuardsGathererMock,\n    {\n      provide: GuardsGatherer,\n      useExisting: GuardsGathererMock,\n    },\n  ]\n}\n\n@Injectable()\nexport class GuardsGathererMock implements OnDestroy {\n  private result = true\n\n  // eslint-disable-next-line @angular-eslint/no-empty-lifecycle-method, @typescript-eslint/no-empty-function\n  ngOnDestroy(): void {}\n\n  setGatherResult(result: boolean): void {\n    this.result = result\n  }\n\n  gather(): Promise<any> {\n    return Promise.resolve(this.result)\n  }\n\n  // eslint-disable-next-line @typescript-eslint/no-empty-function\n  resolveRoute(): void {}\n\n  // eslint-disable-next-line @typescript-eslint/no-empty-function\n  activate(): void {}\n  // eslint-disable-next-line @typescript-eslint/no-empty-function\n  deactivate(): void {}\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;SAGgB,yBAAyB,GAAA;IACvC,OAAO;QACL,kBAAkB;AAClB,QAAA;AACE,YAAA,OAAO,EAAE,cAAc;AACvB,YAAA,WAAW,EAAE,kBAAkB;AAChC,SAAA;KACF;AACH;MAGa,kBAAkB,CAAA;AAD/B,IAAA,WAAA,GAAA;QAEU,IAAA,CAAA,MAAM,GAAG,IAAI;AAoBtB,IAAA;;AAjBC,IAAA,WAAW,KAAU;AAErB,IAAA,eAAe,CAAC,MAAe,EAAA;AAC7B,QAAA,IAAI,CAAC,MAAM,GAAG,MAAM;IACtB;IAEA,MAAM,GAAA;QACJ,OAAO,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC;IACrC;;AAGA,IAAA,YAAY,KAAU;;AAGtB,IAAA,QAAQ,KAAU;;AAElB,IAAA,UAAU,KAAU;8GApBT,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;kHAAlB,kBAAkB,EAAA,CAAA,CAAA;;2FAAlB,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAD9B;;;ACbD;;AAEG;;;;"}