@posiwise/common-services 0.1.88 → 0.1.90

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/fesm2022/posiwise-common-services.mjs +164 -191
  2. package/fesm2022/posiwise-common-services.mjs.map +1 -1
  3. package/lib/user.service.d.ts +1 -0
  4. package/package.json +11 -10
  5. package/esm2022/index.mjs +0 -47
  6. package/esm2022/lib/ab-test.service.mjs +0 -55
  7. package/esm2022/lib/ahoy.service.mjs +0 -93
  8. package/esm2022/lib/auth.service.mjs +0 -322
  9. package/esm2022/lib/base-http.service.mjs +0 -98
  10. package/esm2022/lib/brain-api-http.service.mjs +0 -26
  11. package/esm2022/lib/brain.service.mjs +0 -21
  12. package/esm2022/lib/common-services.interface.mjs +0 -2
  13. package/esm2022/lib/common-services.module.mjs +0 -23
  14. package/esm2022/lib/common.service.mjs +0 -134
  15. package/esm2022/lib/custom-preloading.service.mjs +0 -38
  16. package/esm2022/lib/dashboard.service.mjs +0 -21
  17. package/esm2022/lib/data.service.mjs +0 -21
  18. package/esm2022/lib/date-formatter.service.mjs +0 -82
  19. package/esm2022/lib/effects/user.effects.mjs +0 -27
  20. package/esm2022/lib/form-helper.service.mjs +0 -27
  21. package/esm2022/lib/geo.service.mjs +0 -40
  22. package/esm2022/lib/google-analytics.service.mjs +0 -121
  23. package/esm2022/lib/group.service.mjs +0 -122
  24. package/esm2022/lib/hopscotch.service.mjs +0 -48
  25. package/esm2022/lib/integrations-api-http.service.mjs +0 -28
  26. package/esm2022/lib/link-loader.service.mjs +0 -50
  27. package/esm2022/lib/local-storage.service.mjs +0 -32
  28. package/esm2022/lib/logo-caching.service.mjs +0 -65
  29. package/esm2022/lib/mailbox.service.mjs +0 -66
  30. package/esm2022/lib/main-api-http.service.mjs +0 -26
  31. package/esm2022/lib/notification.service.mjs +0 -70
  32. package/esm2022/lib/number-picker.service.mjs +0 -43
  33. package/esm2022/lib/permission.service.mjs +0 -252
  34. package/esm2022/lib/primeNgHelper.mjs +0 -18
  35. package/esm2022/lib/product.service.mjs +0 -78
  36. package/esm2022/lib/profile.service.mjs +0 -64
  37. package/esm2022/lib/qualification.service.mjs +0 -29
  38. package/esm2022/lib/script-loader.service.mjs +0 -79
  39. package/esm2022/lib/secure-token-storage.service.mjs +0 -264
  40. package/esm2022/lib/sentry.service.mjs +0 -384
  41. package/esm2022/lib/seo.service.mjs +0 -43
  42. package/esm2022/lib/socket.service.mjs +0 -29
  43. package/esm2022/lib/subscription.service.mjs +0 -129
  44. package/esm2022/lib/tag.service.mjs +0 -101
  45. package/esm2022/lib/tips.service.mjs +0 -38
  46. package/esm2022/lib/toast.service.mjs +0 -85
  47. package/esm2022/lib/user.service.mjs +0 -202
  48. package/esm2022/lib/validation.service.mjs +0 -36
  49. package/esm2022/lib/window.service.mjs +0 -20
  50. package/esm2022/posiwise-common-services.mjs +0 -5
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, Inject, isDevMode, inject, NgModule, ViewEncapsulation } from '@angular/core';
2
+ import { Inject, Injectable, isDevMode, inject, NgModule, ViewEncapsulation } from '@angular/core';
3
3
  import * as i3 from '@angular/router';
4
4
  import { NavigationEnd } from '@angular/router';
5
5
  import * as i1 from '@posiwise/app-config-service';
@@ -29,7 +29,7 @@ import { NgbDateParserFormatter } from '@ng-bootstrap/ng-bootstrap';
29
29
  import { webSocket } from 'rxjs/webSocket';
30
30
  import { StatusCodes } from 'http-status-codes';
31
31
  import { fromError } from 'stacktrace-js';
32
- import { createErrorHandler, init, BrowserTracing, routingInstrumentation, withScope, captureException } from '@sentry/angular-ivy';
32
+ import { createErrorHandler, init, withScope, captureException } from '@sentry/angular';
33
33
 
34
34
  class ScriptLoaderService {
35
35
  constructor(document) {
@@ -94,10 +94,10 @@ class ScriptLoaderService {
94
94
  style.href = styleUrl;
95
95
  head.appendChild(style);
96
96
  }
97
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ScriptLoaderService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
98
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ScriptLoaderService, providedIn: 'root' }); }
97
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ScriptLoaderService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
98
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ScriptLoaderService, providedIn: 'root' }); }
99
99
  }
100
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ScriptLoaderService, decorators: [{
100
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ScriptLoaderService, decorators: [{
101
101
  type: Injectable,
102
102
  args: [{
103
103
  providedIn: 'root'
@@ -213,10 +213,10 @@ class GoogleAnalyticsService {
213
213
  this.subscription.unsubscribe();
214
214
  }
215
215
  }
216
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GoogleAnalyticsService, deps: [{ token: i3.Router }, { token: ScriptLoaderService }, { token: i1.AppConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
217
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GoogleAnalyticsService }); }
216
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GoogleAnalyticsService, deps: [{ token: i3.Router }, { token: ScriptLoaderService }, { token: i1.AppConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
217
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GoogleAnalyticsService }); }
218
218
  }
219
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GoogleAnalyticsService, decorators: [{
219
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GoogleAnalyticsService, decorators: [{
220
220
  type: Injectable
221
221
  }], ctorParameters: () => [{ type: i3.Router }, { type: ScriptLoaderService }, { type: i1.AppConfigService }] });
222
222
 
@@ -290,10 +290,10 @@ class CustomToastService {
290
290
  this.error(message);
291
291
  }
292
292
  }
293
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CustomToastService, deps: [{ token: i1$1.ToastrService }], target: i0.ɵɵFactoryTarget.Injectable }); }
294
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CustomToastService, providedIn: 'root' }); }
293
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CustomToastService, deps: [{ token: i1$1.ToastrService }], target: i0.ɵɵFactoryTarget.Injectable }); }
294
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CustomToastService, providedIn: 'root' }); }
295
295
  }
296
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CustomToastService, decorators: [{
296
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CustomToastService, decorators: [{
297
297
  type: Injectable,
298
298
  args: [{
299
299
  providedIn: 'root'
@@ -384,10 +384,10 @@ class BaseHttpService {
384
384
  this.toast.showToast(error);
385
385
  }
386
386
  }
387
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: BaseHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
388
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: BaseHttpService }); }
387
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: BaseHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
388
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: BaseHttpService }); }
389
389
  }
390
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: BaseHttpService, decorators: [{
390
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: BaseHttpService, decorators: [{
391
391
  type: Injectable
392
392
  }], ctorParameters: () => [{ type: i1$2.HttpClient }, { type: i0.Injector }] });
393
393
 
@@ -402,10 +402,10 @@ class IntegrationsApiHttpService extends BaseHttpService {
402
402
  : config?.['links']?.integrations_api;
403
403
  });
404
404
  }
405
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: IntegrationsApiHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
406
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: IntegrationsApiHttpService, providedIn: 'root' }); }
405
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: IntegrationsApiHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
406
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: IntegrationsApiHttpService, providedIn: 'root' }); }
407
407
  }
408
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: IntegrationsApiHttpService, decorators: [{
408
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: IntegrationsApiHttpService, decorators: [{
409
409
  type: Injectable,
410
410
  args: [{
411
411
  providedIn: 'root'
@@ -431,10 +431,10 @@ class LocalStorage {
431
431
  getItem(key) {
432
432
  return localStorage.getItem(key);
433
433
  }
434
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: LocalStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
435
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: LocalStorage, providedIn: 'root' }); }
434
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LocalStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
435
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LocalStorage, providedIn: 'root' }); }
436
436
  }
437
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: LocalStorage, decorators: [{
437
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LocalStorage, decorators: [{
438
438
  type: Injectable,
439
439
  args: [{
440
440
  providedIn: 'root'
@@ -450,10 +450,10 @@ class MainApiHttpService extends BaseHttpService {
450
450
  this.baseUrl = isDevMode() ? MAIN_API_PREFIX : config?.['links']?.main_api;
451
451
  });
452
452
  }
453
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: MainApiHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
454
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: MainApiHttpService, providedIn: 'root' }); }
453
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: MainApiHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
454
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: MainApiHttpService, providedIn: 'root' }); }
455
455
  }
456
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: MainApiHttpService, decorators: [{
456
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: MainApiHttpService, decorators: [{
457
457
  type: Injectable,
458
458
  args: [{
459
459
  providedIn: 'root'
@@ -707,10 +707,10 @@ class SecureTokenStorageService {
707
707
  this.phonegapTokenSubject.next(phonegapToken);
708
708
  }
709
709
  }
710
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SecureTokenStorageService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
711
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SecureTokenStorageService, providedIn: 'root' }); }
710
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SecureTokenStorageService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
711
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SecureTokenStorageService, providedIn: 'root' }); }
712
712
  }
713
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SecureTokenStorageService, decorators: [{
713
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SecureTokenStorageService, decorators: [{
714
714
  type: Injectable,
715
715
  args: [{
716
716
  providedIn: 'root'
@@ -769,10 +769,10 @@ class ProfileService {
769
769
  postLinks(data) {
770
770
  return this.api.post('/user_links', data);
771
771
  }
772
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ProfileService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
773
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ProfileService, providedIn: 'root' }); }
772
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ProfileService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
773
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ProfileService, providedIn: 'root' }); }
774
774
  }
775
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ProfileService, decorators: [{
775
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ProfileService, decorators: [{
776
776
  type: Injectable,
777
777
  args: [{
778
778
  providedIn: 'root'
@@ -824,8 +824,7 @@ class UserService {
824
824
  this.isTosModalOpen = true;
825
825
  const mainTosId = config?.['main_tos_id'] ?? null;
826
826
  const tosUrl = mainTosId ? `/privacy-and-tos/${mainTosId}` : '/privacy-and-tos';
827
- void swal
828
- .fire({
827
+ swal.fire({
829
828
  icon: 'info',
830
829
  title: 'Accept Terms of Service',
831
830
  html: `By clicking continue, you agree to the terms of our <a href="${tosUrl}" target="_blank" rel="noopener noreferrer">Privacy Policy and Platform Agreement</a>.`,
@@ -835,8 +834,7 @@ class UserService {
835
834
  showCancelButton: false,
836
835
  reverseButtons: false,
837
836
  focusConfirm: true
838
- })
839
- .then(result => {
837
+ }).then(result => {
840
838
  if (!result.isConfirmed) {
841
839
  // Modal cannot really be dismissed without confirmation due to config above,
842
840
  // but guard just in case.
@@ -856,25 +854,26 @@ class UserService {
856
854
  this.isTosModalOpen = false;
857
855
  },
858
856
  error: err => {
859
- const message = HelperService.getErrorMessage(err?.error || err);
860
- void swal
861
- .fire({
862
- icon: 'error',
863
- title: 'Unable to record acceptance',
864
- text: message,
865
- confirmButtonText: 'Try again',
866
- allowOutsideClick: false,
867
- allowEscapeKey: false
868
- })
869
- .then(() => {
870
- this.isTosModalOpen = false;
871
- this.checkAndHandleTosAcceptance(user);
872
- });
857
+ this.handleTosAcceptanceError(err, user);
873
858
  }
874
859
  });
875
860
  });
876
861
  });
877
862
  }
863
+ handleTosAcceptanceError(err, user) {
864
+ const message = HelperService.getErrorMessage(err?.error ?? err);
865
+ swal.fire({
866
+ icon: 'error',
867
+ title: 'Unable to record acceptance',
868
+ text: message,
869
+ confirmButtonText: 'Try again',
870
+ allowOutsideClick: false,
871
+ allowEscapeKey: false
872
+ }).then(() => {
873
+ this.isTosModalOpen = false;
874
+ this.checkAndHandleTosAcceptance(user);
875
+ });
876
+ }
878
877
  followUser(id) {
879
878
  return this.api.post(`${this.endpoint}/toggle_relationship/${id}`);
880
879
  }
@@ -950,10 +949,10 @@ class UserService {
950
949
  refreshUserApiTokens() {
951
950
  return this.api.get(`${this.endpoint}/refresh_user_api_tokens`);
952
951
  }
953
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UserService, deps: [{ token: MainApiHttpService }, { token: i2.Store }, { token: i3.Router }, { token: i1.AppConfigService }, { token: ProfileService }, { token: CustomToastService }], target: i0.ɵɵFactoryTarget.Injectable }); }
954
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UserService, providedIn: 'root' }); }
952
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: UserService, deps: [{ token: MainApiHttpService }, { token: i2.Store }, { token: i3.Router }, { token: i1.AppConfigService }, { token: ProfileService }, { token: CustomToastService }], target: i0.ɵɵFactoryTarget.Injectable }); }
953
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: UserService, providedIn: 'root' }); }
955
954
  }
956
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UserService, decorators: [{
955
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: UserService, decorators: [{
957
956
  type: Injectable,
958
957
  args: [{
959
958
  providedIn: 'root'
@@ -1248,10 +1247,10 @@ class AuthService {
1248
1247
  }
1249
1248
  });
1250
1249
  }
1251
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: AuthService, deps: [{ token: LocalStorage }, { token: SecureTokenStorageService }, { token: i3.Router }, { token: MainApiHttpService }, { token: UserService }, { token: CustomToastService }, { token: i1.AppConfigService }, { token: IntegrationsApiHttpService }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1252
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: AuthService }); }
1250
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: AuthService, deps: [{ token: LocalStorage }, { token: SecureTokenStorageService }, { token: i3.Router }, { token: MainApiHttpService }, { token: UserService }, { token: CustomToastService }, { token: i1.AppConfigService }, { token: IntegrationsApiHttpService }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1251
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: AuthService }); }
1253
1252
  }
1254
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: AuthService, decorators: [{
1253
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: AuthService, decorators: [{
1255
1254
  type: Injectable
1256
1255
  }], ctorParameters: () => [{ type: LocalStorage }, { type: SecureTokenStorageService }, { type: i3.Router }, { type: MainApiHttpService }, { type: UserService }, { type: CustomToastService }, { type: i1.AppConfigService }, { type: IntegrationsApiHttpService }, { type: Document, decorators: [{
1257
1256
  type: Inject,
@@ -1271,19 +1270,19 @@ class UserEffects {
1271
1270
  )));
1272
1271
  });
1273
1272
  }
1274
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UserEffects, deps: [{ token: UserService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1275
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UserEffects }); }
1273
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: UserEffects, deps: [{ token: UserService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1274
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: UserEffects }); }
1276
1275
  }
1277
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: UserEffects, decorators: [{
1276
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: UserEffects, decorators: [{
1278
1277
  type: Injectable
1279
1278
  }], ctorParameters: () => [{ type: UserService }] });
1280
1279
 
1281
1280
  class CommonServicesModule {
1282
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CommonServicesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1283
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "17.3.11", ngImport: i0, type: CommonServicesModule, imports: [CommonModule, i1$3.EffectsRootModule, i2.StoreRootModule] }); }
1284
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CommonServicesModule, providers: [AuthService], imports: [CommonModule, EffectsModule.forRoot([UserEffects]), StoreModule.forRoot(appReducers)] }); }
1281
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CommonServicesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1282
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.18", ngImport: i0, type: CommonServicesModule, imports: [CommonModule, i1$3.EffectsRootModule, i2.StoreRootModule] }); }
1283
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CommonServicesModule, providers: [AuthService], imports: [CommonModule, EffectsModule.forRoot([UserEffects]), StoreModule.forRoot(appReducers)] }); }
1285
1284
  }
1286
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CommonServicesModule, decorators: [{
1285
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CommonServicesModule, decorators: [{
1287
1286
  type: NgModule,
1288
1287
  args: [{
1289
1288
  imports: [CommonModule, EffectsModule.forRoot([UserEffects]), StoreModule.forRoot(appReducers)],
@@ -1320,10 +1319,10 @@ class SeoService {
1320
1319
  this.meta.updateTag({ name: 'twitter:description', content: description });
1321
1320
  this.meta.updateTag({ name: 'twitter:card', content: 'summary' });
1322
1321
  }
1323
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SeoService, deps: [{ token: i1$4.Meta }, { token: i1$4.Title }], target: i0.ɵɵFactoryTarget.Injectable }); }
1324
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SeoService, providedIn: 'root' }); }
1322
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SeoService, deps: [{ token: i1$4.Meta }, { token: i1$4.Title }], target: i0.ɵɵFactoryTarget.Injectable }); }
1323
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SeoService, providedIn: 'root' }); }
1325
1324
  }
1326
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SeoService, decorators: [{
1325
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SeoService, decorators: [{
1327
1326
  type: Injectable,
1328
1327
  args: [{
1329
1328
  providedIn: 'root'
@@ -1354,7 +1353,7 @@ class PermissionService {
1354
1353
  // or Pages.Beta or Pages.Alpha
1355
1354
  if (permissionName?.includes('||')) {
1356
1355
  const parts = permissionName.split('||').map(p => p.trim());
1357
- if (this.hasAnyGrantedPermission(parts, user)) {
1356
+ if (this.hasAnyGrantedPermission(parts, user, productSlug)) {
1358
1357
  return true;
1359
1358
  }
1360
1359
  }
@@ -1371,8 +1370,12 @@ class PermissionService {
1371
1370
  // user not logged-in
1372
1371
  return false;
1373
1372
  }
1374
- hasAnyGrantedPermission(parts, user) {
1375
- return parts.some(part => user['auth']?.['granted'][part]);
1373
+ hasAnyGrantedPermission(parts, user, productSlug = null) {
1374
+ return parts.some(part => {
1375
+ // Format the permission part with the current subscription slug if needed
1376
+ const formattedPart = this.getFormattedPermissionName(part, productSlug);
1377
+ return user['auth']?.['granted'][formattedPart];
1378
+ });
1376
1379
  }
1377
1380
  handleProductKey(productKey, user, permission_key, permissionName) {
1378
1381
  if (productKey) {
@@ -1404,11 +1407,15 @@ class PermissionService {
1404
1407
  else {
1405
1408
  slugToCheck = productSlug;
1406
1409
  }
1407
- if (!permissionName.includes(slugToCheck) && permissionName.includes('Pages.Product.')) {
1408
- permissionName = permissionName.replace('Pages.Product.', slugToCheck);
1409
- }
1410
- if (permissionName.includes('Pages.Role.') && !permissionName.includes(slugToCheck)) {
1411
- permissionName = permissionName.replace('Pages.Role.', slugToCheck);
1410
+ // Only format if we have a valid slug to check
1411
+ if (slugToCheck) {
1412
+ if (!permissionName.includes(slugToCheck) &&
1413
+ permissionName.includes('Pages.Product.')) {
1414
+ permissionName = permissionName.replace('Pages.Product.', slugToCheck);
1415
+ }
1416
+ if (permissionName.includes('Pages.Role.') && !permissionName.includes(slugToCheck)) {
1417
+ permissionName = permissionName.replace('Pages.Role.', slugToCheck);
1418
+ }
1412
1419
  }
1413
1420
  return permissionName;
1414
1421
  }
@@ -1493,7 +1500,8 @@ class PermissionService {
1493
1500
  evaluated = this.isGranted(raw, productKey, permission_key, productSlug);
1494
1501
  }
1495
1502
  else {
1496
- evaluated = this.isGranted(raw);
1503
+ // Pass productSlug to isGranted to ensure slug-aware permission checking
1504
+ evaluated = this.isGranted(raw, null, null, productSlug);
1497
1505
  }
1498
1506
  expr += ` ${evaluated} `;
1499
1507
  }
@@ -1565,10 +1573,10 @@ class PermissionService {
1565
1573
  getCurrentProduct() {
1566
1574
  return JSON.parse(localStorage.getItem('product'));
1567
1575
  }
1568
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: PermissionService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1569
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: PermissionService, providedIn: 'root' }); }
1576
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: PermissionService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1577
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: PermissionService, providedIn: 'root' }); }
1570
1578
  }
1571
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: PermissionService, decorators: [{
1579
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: PermissionService, decorators: [{
1572
1580
  type: Injectable,
1573
1581
  args: [{
1574
1582
  providedIn: 'root'
@@ -1609,10 +1617,10 @@ class LinkService {
1609
1617
  window.console.error('Error within linkService : ', e);
1610
1618
  }
1611
1619
  }
1612
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: LinkService, deps: [{ token: i0.RendererFactory2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1613
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: LinkService, providedIn: 'root' }); }
1620
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LinkService, deps: [{ token: i0.RendererFactory2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1621
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LinkService, providedIn: 'root' }); }
1614
1622
  }
1615
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: LinkService, decorators: [{
1623
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LinkService, decorators: [{
1616
1624
  type: Injectable,
1617
1625
  args: [{
1618
1626
  providedIn: 'root'
@@ -1642,10 +1650,10 @@ class CustomPreloadingStrategy {
1642
1650
  const ret = routeData.preload && this.permission.isGranted(routeData.permission);
1643
1651
  return ret;
1644
1652
  }
1645
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CustomPreloadingStrategy, deps: [{ token: PermissionService }, { token: i3.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
1646
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CustomPreloadingStrategy, providedIn: 'root' }); }
1653
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CustomPreloadingStrategy, deps: [{ token: PermissionService }, { token: i3.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
1654
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CustomPreloadingStrategy, providedIn: 'root' }); }
1647
1655
  }
1648
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CustomPreloadingStrategy, decorators: [{
1656
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CustomPreloadingStrategy, decorators: [{
1649
1657
  type: Injectable,
1650
1658
  args: [{
1651
1659
  providedIn: 'root'
@@ -1690,10 +1698,10 @@ class AbTestService {
1690
1698
  console.log(typeof service);
1691
1699
  return service ? this.injector.get(service) : this.injector.get(MainApiHttpService); // fallback to Core Microservice
1692
1700
  }
1693
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: AbTestService, deps: [{ token: i0.Injector }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
1694
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: AbTestService, providedIn: 'root' }); }
1701
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: AbTestService, deps: [{ token: i0.Injector }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
1702
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: AbTestService, providedIn: 'root' }); }
1695
1703
  }
1696
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: AbTestService, decorators: [{
1704
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: AbTestService, decorators: [{
1697
1705
  type: Injectable,
1698
1706
  args: [{
1699
1707
  providedIn: 'root'
@@ -1721,10 +1729,10 @@ class GeoService {
1721
1729
  return this.cookieService.putObject('location_from_ip', data);
1722
1730
  }));
1723
1731
  }
1724
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GeoService, deps: [{ token: MainApiHttpService }, { token: i2$1.CookieService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1725
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GeoService, providedIn: 'root' }); }
1732
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GeoService, deps: [{ token: MainApiHttpService }, { token: i2$1.CookieService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1733
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GeoService, providedIn: 'root' }); }
1726
1734
  }
1727
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GeoService, decorators: [{
1735
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GeoService, decorators: [{
1728
1736
  type: Injectable,
1729
1737
  args: [{
1730
1738
  providedIn: 'root'
@@ -1848,10 +1856,10 @@ class SubscriptionService {
1848
1856
  ...HelperService.getPagingParams(paging)
1849
1857
  });
1850
1858
  }
1851
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SubscriptionService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1852
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SubscriptionService }); }
1859
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SubscriptionService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1860
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SubscriptionService }); }
1853
1861
  }
1854
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SubscriptionService, decorators: [{
1862
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SubscriptionService, decorators: [{
1855
1863
  type: Injectable
1856
1864
  }], ctorParameters: () => [{ type: MainApiHttpService }] });
1857
1865
 
@@ -1917,10 +1925,10 @@ class ProductService {
1917
1925
  getAvailableStripeProrationBehaviors() {
1918
1926
  return this.api.get(`admin/product/available_stripe_proration_behaviors`);
1919
1927
  }
1920
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ProductService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1921
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ProductService, providedIn: 'root' }); }
1928
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ProductService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1929
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ProductService, providedIn: 'root' }); }
1922
1930
  }
1923
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ProductService, decorators: [{
1931
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ProductService, decorators: [{
1924
1932
  type: Injectable,
1925
1933
  args: [{
1926
1934
  providedIn: 'root'
@@ -1954,10 +1962,10 @@ class ValidationService {
1954
1962
  return valid ? null : error;
1955
1963
  };
1956
1964
  }
1957
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ValidationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1958
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ValidationService }); }
1965
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ValidationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
1966
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ValidationService }); }
1959
1967
  }
1960
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: ValidationService, decorators: [{
1968
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: ValidationService, decorators: [{
1961
1969
  type: Injectable
1962
1970
  }] });
1963
1971
 
@@ -2062,10 +2070,10 @@ class AhoyService {
2062
2070
  this.toast.showToast(error);
2063
2071
  }
2064
2072
  }
2065
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: AhoyService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
2066
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: AhoyService, providedIn: 'root' }); }
2073
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: AhoyService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
2074
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: AhoyService, providedIn: 'root' }); }
2067
2075
  }
2068
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: AhoyService, decorators: [{
2076
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: AhoyService, decorators: [{
2069
2077
  type: Injectable,
2070
2078
  args: [{
2071
2079
  providedIn: 'root'
@@ -2190,10 +2198,10 @@ class CommonService {
2190
2198
  }
2191
2199
  return this.api.post(`${CUSTOMER_SUPPORT_PATH}`, formData);
2192
2200
  }
2193
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CommonService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2194
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CommonService, providedIn: 'root' }); }
2201
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CommonService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2202
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CommonService, providedIn: 'root' }); }
2195
2203
  }
2196
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: CommonService, decorators: [{
2204
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: CommonService, decorators: [{
2197
2205
  type: Injectable,
2198
2206
  args: [{
2199
2207
  providedIn: 'root'
@@ -2267,10 +2275,10 @@ class NgbDateCustomParserFormatter extends NgbDateParserFormatter {
2267
2275
  day: Number(date.substring(8, 10))
2268
2276
  };
2269
2277
  }
2270
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NgbDateCustomParserFormatter, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
2271
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NgbDateCustomParserFormatter, providedIn: 'root' }); }
2278
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: NgbDateCustomParserFormatter, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
2279
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: NgbDateCustomParserFormatter, providedIn: 'root' }); }
2272
2280
  }
2273
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NgbDateCustomParserFormatter, decorators: [{
2281
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: NgbDateCustomParserFormatter, decorators: [{
2274
2282
  type: Injectable,
2275
2283
  args: [{
2276
2284
  providedIn: 'root'
@@ -2380,10 +2388,10 @@ class TagService {
2380
2388
  addTagCategoryById(data, subscription_id) {
2381
2389
  return this.api.post(this.ADMIN_TAG_CATEGORIES_PATH, { ...data, subscription_id });
2382
2390
  }
2383
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: TagService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2384
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: TagService, providedIn: 'root' }); }
2391
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TagService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2392
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TagService, providedIn: 'root' }); }
2385
2393
  }
2386
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: TagService, decorators: [{
2394
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TagService, decorators: [{
2387
2395
  type: Injectable,
2388
2396
  args: [{
2389
2397
  providedIn: 'root'
@@ -2413,10 +2421,10 @@ class TipsService {
2413
2421
  addUserTips(data, subscription_id) {
2414
2422
  return this.api.post(`/users/user_tips`, { ...data, subscription_id });
2415
2423
  }
2416
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: TipsService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2417
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: TipsService, providedIn: 'root' }); }
2424
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TipsService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2425
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TipsService, providedIn: 'root' }); }
2418
2426
  }
2419
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: TipsService, decorators: [{
2427
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: TipsService, decorators: [{
2420
2428
  type: Injectable,
2421
2429
  args: [{
2422
2430
  providedIn: 'root'
@@ -2431,10 +2439,10 @@ class WindowService {
2431
2439
  replaceUrl(url) {
2432
2440
  window.location.href = url;
2433
2441
  }
2434
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: WindowService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2435
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: WindowService, providedIn: 'root' }); }
2442
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: WindowService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2443
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: WindowService, providedIn: 'root' }); }
2436
2444
  }
2437
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: WindowService, decorators: [{
2445
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: WindowService, decorators: [{
2438
2446
  type: Injectable,
2439
2447
  args: [{
2440
2448
  providedIn: 'root'
@@ -2547,10 +2555,10 @@ class GroupService {
2547
2555
  deleteCommunicationFiles(id) {
2548
2556
  return this.api.delete(`/group_communication_files/${id}`);
2549
2557
  }
2550
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GroupService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2551
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GroupService, providedIn: 'root' }); }
2558
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GroupService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2559
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GroupService, providedIn: 'root' }); }
2552
2560
  }
2553
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: GroupService, decorators: [{
2561
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: GroupService, decorators: [{
2554
2562
  type: Injectable,
2555
2563
  args: [{
2556
2564
  providedIn: 'root'
@@ -2571,10 +2579,10 @@ class QualificationService {
2571
2579
  deleteQualifications(id) {
2572
2580
  return this.api.delete(`${this.endPoint}/${id}`);
2573
2581
  }
2574
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: QualificationService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2575
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: QualificationService, providedIn: 'root' }); }
2582
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: QualificationService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2583
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: QualificationService, providedIn: 'root' }); }
2576
2584
  }
2577
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: QualificationService, decorators: [{
2585
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: QualificationService, decorators: [{
2578
2586
  type: Injectable,
2579
2587
  args: [{
2580
2588
  providedIn: 'root'
@@ -2588,10 +2596,10 @@ class DashboardService {
2588
2596
  search(keyword, subscriptionId) {
2589
2597
  return this.api.get(`/search/global_search?search_term=${keyword}&subscription_id=${subscriptionId}`);
2590
2598
  }
2591
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: DashboardService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2592
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: DashboardService, providedIn: 'root' }); }
2599
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: DashboardService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2600
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: DashboardService, providedIn: 'root' }); }
2593
2601
  }
2594
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: DashboardService, decorators: [{
2602
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: DashboardService, decorators: [{
2595
2603
  type: Injectable,
2596
2604
  args: [{
2597
2605
  providedIn: 'root'
@@ -2647,10 +2655,10 @@ class MailBoxService {
2647
2655
  getRecipient(params = {}) {
2648
2656
  return this.http.getWithParams(`${this.endpoint}available_recipients`, params);
2649
2657
  }
2650
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: MailBoxService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2651
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: MailBoxService, providedIn: 'root' }); }
2658
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: MailBoxService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2659
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: MailBoxService, providedIn: 'root' }); }
2652
2660
  }
2653
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: MailBoxService, decorators: [{
2661
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: MailBoxService, decorators: [{
2654
2662
  type: Injectable,
2655
2663
  args: [{
2656
2664
  providedIn: 'root'
@@ -2668,10 +2676,10 @@ class WebsocketService {
2668
2676
  this.webSocket$ = this.webSocketSubject.asObservable().pipe(distinctUntilChanged());
2669
2677
  });
2670
2678
  }
2671
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: WebsocketService, deps: [{ token: i1.AppConfigService }, { token: AuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2672
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: WebsocketService, providedIn: 'root' }); }
2679
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: WebsocketService, deps: [{ token: i1.AppConfigService }, { token: AuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2680
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: WebsocketService, providedIn: 'root' }); }
2673
2681
  }
2674
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: WebsocketService, decorators: [{
2682
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: WebsocketService, decorators: [{
2675
2683
  type: Injectable,
2676
2684
  args: [{
2677
2685
  providedIn: 'root'
@@ -2727,10 +2735,10 @@ class NotificationService {
2727
2735
  return null;
2728
2736
  }));
2729
2737
  }
2730
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NotificationService, deps: [{ token: MainApiHttpService }, { token: CustomToastService }, { token: WebsocketService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2731
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NotificationService, providedIn: 'root' }); }
2738
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: NotificationService, deps: [{ token: MainApiHttpService }, { token: CustomToastService }, { token: WebsocketService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2739
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: NotificationService, providedIn: 'root' }); }
2732
2740
  }
2733
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NotificationService, decorators: [{
2741
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: NotificationService, decorators: [{
2734
2742
  type: Injectable,
2735
2743
  args: [{
2736
2744
  providedIn: 'root'
@@ -2745,10 +2753,10 @@ class DataService {
2745
2753
  changeMessage(message) {
2746
2754
  this.messageSource.next(message);
2747
2755
  }
2748
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: DataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2749
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: DataService, providedIn: 'root' }); }
2756
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: DataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2757
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: DataService, providedIn: 'root' }); }
2750
2758
  }
2751
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: DataService, decorators: [{
2759
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: DataService, decorators: [{
2752
2760
  type: Injectable,
2753
2761
  args: [{
2754
2762
  providedIn: 'root'
@@ -2786,10 +2794,10 @@ class NumberPickerService {
2786
2794
  */
2787
2795
  this.value = null;
2788
2796
  }
2789
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NumberPickerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2790
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NumberPickerService, providedIn: 'root' }); }
2797
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: NumberPickerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2798
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: NumberPickerService, providedIn: 'root' }); }
2791
2799
  }
2792
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: NumberPickerService, decorators: [{
2800
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: NumberPickerService, decorators: [{
2793
2801
  type: Injectable,
2794
2802
  args: [{
2795
2803
  providedIn: 'root'
@@ -2828,15 +2836,11 @@ class SentryErrorHandler {
2828
2836
  const environment = window.location.host?.includes('dev') || window.location.host?.includes('localhost')
2829
2837
  ? 'development'
2830
2838
  : 'production';
2831
- const ignoredPaths = [''];
2832
- const healthCheckPaths = ['/ping'];
2833
- const onePercentIgnoredPaths = [''];
2834
- const fivePercentIgnoredPaths = [''];
2835
2839
  const config = {
2836
2840
  dsn: null,
2837
- tracesSampleRate: 0.1,
2838
- // Disable unused features to reduce bundle size
2839
- enableTracing: false,
2841
+ // NOTE: We intentionally do not enable Performance Tracing here.
2842
+ // The previous integration (`BrowserTracing` + `routingInstrumentation`) was part of
2843
+ // the legacy `@sentry/angular-ivy` API and isn't available in `@sentry/angular` v10.
2840
2844
  beforeSend(event, hint) {
2841
2845
  // Check if the event is of type CloseEvent and ignore it
2842
2846
  if (event?.exception?.values) {
@@ -2914,37 +2918,6 @@ class SentryErrorHandler {
2914
2918
  return event;
2915
2919
  },
2916
2920
  denyUrls: [/drift.*\.js/i, /analytics.*\.js/i, /polyfills.*\.js/i, /vendor.*\.js/i],
2917
- integrations: [
2918
- // Registers and configures the Tracing integration,
2919
- // which automatically instruments your application to monitor its
2920
- // performance, including custom Angular routing instrumentation
2921
- new BrowserTracing({
2922
- routingInstrumentation: routingInstrumentation
2923
- })
2924
- ],
2925
- tracesSampler: samplingContext => {
2926
- // Examine provided context data (including parent decision, if any) along
2927
- // with anything in the global namespace to compute the sample rate or
2928
- // sampling decision for this transaction
2929
- const pathname = samplingContext.location.pathname;
2930
- if (ignoredPaths.includes(pathname)) {
2931
- return 0;
2932
- }
2933
- else if (healthCheckPaths.includes(pathname)) {
2934
- // very low rate as these are extremely frequent and pretty useless
2935
- return 0.001;
2936
- }
2937
- else if (onePercentIgnoredPaths.includes(pathname)) {
2938
- return 0.01;
2939
- }
2940
- else if (fivePercentIgnoredPaths.includes(pathname)) {
2941
- return 0.05;
2942
- }
2943
- else {
2944
- // Default sample rate
2945
- return 0.1;
2946
- }
2947
- },
2948
2921
  environment,
2949
2922
  // We ignore Server Errors. We have to define here since Angular
2950
2923
  // http client uses setTimeout to detect http call progress.
@@ -3162,10 +3135,10 @@ class SentryErrorHandler {
3162
3135
  console.error(error, e);
3163
3136
  }
3164
3137
  }
3165
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SentryErrorHandler, deps: [{ token: i1.AppConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
3166
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SentryErrorHandler, providedIn: 'root' }); }
3138
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SentryErrorHandler, deps: [{ token: i1.AppConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
3139
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SentryErrorHandler, providedIn: 'root' }); }
3167
3140
  }
3168
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: SentryErrorHandler, decorators: [{
3141
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: SentryErrorHandler, decorators: [{
3169
3142
  type: Injectable,
3170
3143
  args: [{
3171
3144
  providedIn: 'root'
@@ -3225,10 +3198,10 @@ class LogoCacheService {
3225
3198
  this.cache = JSON.parse(cacheData);
3226
3199
  }
3227
3200
  }
3228
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: LogoCacheService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3229
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: LogoCacheService, providedIn: 'root' }); }
3201
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LogoCacheService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3202
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LogoCacheService, providedIn: 'root' }); }
3230
3203
  }
3231
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: LogoCacheService, decorators: [{
3204
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: LogoCacheService, decorators: [{
3232
3205
  type: Injectable,
3233
3206
  args: [{
3234
3207
  providedIn: 'root'
@@ -3267,10 +3240,10 @@ class HopscotchService {
3267
3240
  window?.hopscotch?.endTour();
3268
3241
  }
3269
3242
  }
3270
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: HopscotchService, deps: [{ token: ScriptLoaderService }, { token: TipsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
3271
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: HopscotchService, providedIn: 'root' }); }
3243
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: HopscotchService, deps: [{ token: ScriptLoaderService }, { token: TipsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
3244
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: HopscotchService, providedIn: 'root' }); }
3272
3245
  }
3273
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: HopscotchService, decorators: [{
3246
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: HopscotchService, decorators: [{
3274
3247
  type: Injectable,
3275
3248
  args: [{
3276
3249
  providedIn: 'root'
@@ -3286,10 +3259,10 @@ class BrainApiHttpService extends BaseHttpService {
3286
3259
  this.baseUrl = isDevMode() ? BRAIN_API_PREFIX : config?.['links']['brain_api'] ?? '';
3287
3260
  });
3288
3261
  }
3289
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: BrainApiHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
3290
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: BrainApiHttpService, providedIn: 'root' }); }
3262
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: BrainApiHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
3263
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: BrainApiHttpService, providedIn: 'root' }); }
3291
3264
  }
3292
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: BrainApiHttpService, decorators: [{
3265
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: BrainApiHttpService, decorators: [{
3293
3266
  type: Injectable,
3294
3267
  args: [{
3295
3268
  providedIn: 'root'
@@ -3303,10 +3276,10 @@ class BrainApiService {
3303
3276
  invokeModel(payload) {
3304
3277
  return this.api.post('/bedrock/invoke', payload);
3305
3278
  }
3306
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: BrainApiService, deps: [{ token: BrainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
3307
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: BrainApiService, providedIn: 'root' }); }
3279
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: BrainApiService, deps: [{ token: BrainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
3280
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: BrainApiService, providedIn: 'root' }); }
3308
3281
  }
3309
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.11", ngImport: i0, type: BrainApiService, decorators: [{
3282
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.18", ngImport: i0, type: BrainApiService, decorators: [{
3310
3283
  type: Injectable,
3311
3284
  args: [{
3312
3285
  providedIn: 'root'