{"version":3,"file":"rx-angular-isr-browser.mjs","sources":["../../../../libs/isr/browser/src/isr.service.ts","../../../../libs/isr/browser/src/rx-angular-isr-browser.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-unused-vars */\nimport { isPlatformServer } from '@angular/common';\nimport { inject, Injectable, PLATFORM_ID } from '@angular/core';\nimport { IsrServiceInterface, IsrState } from '@rx-angular/isr/models';\n\n@Injectable({ providedIn: 'root' })\nexport class IsrService implements IsrServiceInterface {\n  private platformId = inject(PLATFORM_ID);\n\n  constructor() {\n    if (isPlatformServer(this.platformId)) {\n      throw new Error(\n        `IsrService should not be instantiated on the server.\n          It is only used on the client as a injection token.`,\n      );\n    }\n  }\n\n  getState(): IsrState {\n    return { revalidate: null, errors: [], extra: {} };\n  }\n\n  patchState(partialState: Partial<IsrState>): void {\n    return;\n  }\n\n  getExtra(): Record<string, unknown> {\n    return {};\n  }\n\n  activate(): void {\n    return;\n  }\n\n  addError(error: Error): void {\n    return;\n  }\n\n  addExtra(extra?: Record<string, unknown> | undefined): void {\n    return;\n  }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAAA;MAMa,UAAU,CAAA;AAGrB,IAAA,WAAA,GAAA;AAFQ,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC;AAGtC,QAAA,IAAI,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC,EAAE;YACrC,MAAM,IAAI,KAAK,CACb,CAAA;AACsD,6DAAA,CAAA,CACvD;;;IAIL,QAAQ,GAAA;AACN,QAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,KAAK,EAAE,EAAE,EAAE;;AAGpD,IAAA,UAAU,CAAC,YAA+B,EAAA;QACxC;;IAGF,QAAQ,GAAA;AACN,QAAA,OAAO,EAAE;;IAGX,QAAQ,GAAA;QACN;;AAGF,IAAA,QAAQ,CAAC,KAAY,EAAA;QACnB;;AAGF,IAAA,QAAQ,CAAC,KAA2C,EAAA;QAClD;;8GAjCS,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAAV,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAU,cADG,MAAM,EAAA,CAAA,CAAA;;2FACnB,UAAU,EAAA,UAAA,EAAA,CAAA;kBADtB,UAAU;mBAAC,EAAE,UAAU,EAAE,MAAM,EAAE;;;ACLlC;;AAEG;;;;"}