@posiwise/common-services 0.2.15 → 0.2.16

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 (49) hide show
  1. package/fesm2022/posiwise-common-services.mjs +231 -135
  2. package/fesm2022/posiwise-common-services.mjs.map +1 -1
  3. package/package.json +8 -8
  4. package/types/posiwise-common-services.d.ts +1187 -0
  5. package/index.d.ts +0 -43
  6. package/lib/ab-test.service.d.ts +0 -27
  7. package/lib/ahoy.service.d.ts +0 -21
  8. package/lib/auth.service.d.ts +0 -105
  9. package/lib/base-http.service.d.ts +0 -23
  10. package/lib/brain-api-http.service.d.ts +0 -10
  11. package/lib/brain.service.d.ts +0 -15
  12. package/lib/common-services.interface.d.ts +0 -161
  13. package/lib/common-services.module.d.ts +0 -9
  14. package/lib/common.service.d.ts +0 -39
  15. package/lib/custom-preloading.service.d.ts +0 -13
  16. package/lib/dashboard.service.d.ts +0 -9
  17. package/lib/data.service.d.ts +0 -8
  18. package/lib/date-formatter.service.d.ts +0 -10
  19. package/lib/effects/user.effects.d.ts +0 -12
  20. package/lib/form-helper.service.d.ts +0 -6
  21. package/lib/geo.service.d.ts +0 -14
  22. package/lib/google-analytics.service.d.ts +0 -40
  23. package/lib/group.service.d.ts +0 -37
  24. package/lib/hopscotch.service.d.ts +0 -25
  25. package/lib/integrations-api-http.service.d.ts +0 -10
  26. package/lib/link-loader.service.d.ts +0 -28
  27. package/lib/local-storage.service.d.ts +0 -11
  28. package/lib/logo-caching.service.d.ts +0 -11
  29. package/lib/mailbox.service.d.ts +0 -19
  30. package/lib/main-api-http.service.d.ts +0 -10
  31. package/lib/notification.service.d.ts +0 -23
  32. package/lib/number-picker.service.d.ts +0 -33
  33. package/lib/permission.service.d.ts +0 -52
  34. package/lib/primeNgHelper.d.ts +0 -4
  35. package/lib/product.service.d.ts +0 -24
  36. package/lib/profile.service.d.ts +0 -28
  37. package/lib/qualification.service.d.ts +0 -12
  38. package/lib/script-loader.service.d.ts +0 -13
  39. package/lib/secure-token-storage.service.d.ts +0 -94
  40. package/lib/sentry.service.d.ts +0 -61
  41. package/lib/seo.service.d.ts +0 -16
  42. package/lib/socket.service.d.ts +0 -13
  43. package/lib/subscription.service.d.ts +0 -40
  44. package/lib/tag.service.d.ts +0 -25
  45. package/lib/tips.service.d.ts +0 -15
  46. package/lib/toast.service.d.ts +0 -15
  47. package/lib/user.service.d.ts +0 -64
  48. package/lib/validation.service.d.ts +0 -15
  49. package/lib/window.service.d.ts +0 -10
@@ -1,16 +1,16 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Inject, Injectable, isDevMode, inject, NgModule, ViewEncapsulation } from '@angular/core';
2
+ import { DOCUMENT, 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';
6
6
  import { AppConfigService } from '@posiwise/app-config-service';
7
- import { DOCUMENT, CommonModule } from '@angular/common';
8
7
  import * as i1$2 from '@angular/common/http';
9
8
  import { HttpErrorResponse, HttpHeaders } from '@angular/common/http';
10
9
  import { throwError, of, BehaviorSubject, tap, timer } from 'rxjs';
11
10
  import { catchError, take, tap as tap$1, switchMap, map, mergeMap, distinctUntilChanged } from 'rxjs/operators';
12
11
  import { HelperService } from '@posiwise/helper-service';
13
12
  import * as i1$1 from 'ngx-toastr';
13
+ import { CommonModule } from '@angular/common';
14
14
  import { getUser, SetUser, UserActionTypes, appReducers } from '@posiwise/app-store';
15
15
  import * as i1$3 from '@ngrx/effects';
16
16
  import { Actions, createEffect, ofType, EffectsModule } from '@ngrx/effects';
@@ -107,10 +107,10 @@ class ScriptLoaderService {
107
107
  style.href = styleUrl;
108
108
  head.appendChild(style);
109
109
  }
110
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: ScriptLoaderService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
111
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: ScriptLoaderService, providedIn: 'root' }); }
110
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ScriptLoaderService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
111
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ScriptLoaderService, providedIn: 'root' }); }
112
112
  }
113
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: ScriptLoaderService, decorators: [{
113
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ScriptLoaderService, decorators: [{
114
114
  type: Injectable,
115
115
  args: [{
116
116
  providedIn: 'root'
@@ -226,10 +226,10 @@ class GoogleAnalyticsService {
226
226
  this.subscription.unsubscribe();
227
227
  }
228
228
  }
229
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: GoogleAnalyticsService, deps: [{ token: i3.Router }, { token: ScriptLoaderService }, { token: i1.AppConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
230
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: GoogleAnalyticsService }); }
229
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: GoogleAnalyticsService, deps: [{ token: i3.Router }, { token: ScriptLoaderService }, { token: i1.AppConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
230
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: GoogleAnalyticsService }); }
231
231
  }
232
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: GoogleAnalyticsService, decorators: [{
232
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: GoogleAnalyticsService, decorators: [{
233
233
  type: Injectable
234
234
  }], ctorParameters: () => [{ type: i3.Router }, { type: ScriptLoaderService }, { type: i1.AppConfigService }] });
235
235
 
@@ -303,10 +303,10 @@ class CustomToastService {
303
303
  this.error(message);
304
304
  }
305
305
  }
306
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: CustomToastService, deps: [{ token: i1$1.ToastrService }], target: i0.ɵɵFactoryTarget.Injectable }); }
307
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: CustomToastService, providedIn: 'root' }); }
306
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CustomToastService, deps: [{ token: i1$1.ToastrService }], target: i0.ɵɵFactoryTarget.Injectable }); }
307
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CustomToastService, providedIn: 'root' }); }
308
308
  }
309
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: CustomToastService, decorators: [{
309
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CustomToastService, decorators: [{
310
310
  type: Injectable,
311
311
  args: [{
312
312
  providedIn: 'root'
@@ -397,10 +397,10 @@ class BaseHttpService {
397
397
  this.toast.showToast(error);
398
398
  }
399
399
  }
400
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: BaseHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
401
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: BaseHttpService }); }
400
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: BaseHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
401
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: BaseHttpService }); }
402
402
  }
403
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: BaseHttpService, decorators: [{
403
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: BaseHttpService, decorators: [{
404
404
  type: Injectable
405
405
  }], ctorParameters: () => [{ type: i1$2.HttpClient }, { type: i0.Injector }] });
406
406
 
@@ -415,10 +415,10 @@ class IntegrationsApiHttpService extends BaseHttpService {
415
415
  : config?.['links']?.integrations_api;
416
416
  });
417
417
  }
418
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: IntegrationsApiHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
419
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: IntegrationsApiHttpService, providedIn: 'root' }); }
418
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: IntegrationsApiHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
419
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: IntegrationsApiHttpService, providedIn: 'root' }); }
420
420
  }
421
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: IntegrationsApiHttpService, decorators: [{
421
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: IntegrationsApiHttpService, decorators: [{
422
422
  type: Injectable,
423
423
  args: [{
424
424
  providedIn: 'root'
@@ -444,10 +444,10 @@ class LocalStorage {
444
444
  getItem(key) {
445
445
  return localStorage.getItem(key);
446
446
  }
447
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: LocalStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
448
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: LocalStorage, providedIn: 'root' }); }
447
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: LocalStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
448
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: LocalStorage, providedIn: 'root' }); }
449
449
  }
450
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: LocalStorage, decorators: [{
450
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: LocalStorage, decorators: [{
451
451
  type: Injectable,
452
452
  args: [{
453
453
  providedIn: 'root'
@@ -463,10 +463,10 @@ class MainApiHttpService extends BaseHttpService {
463
463
  this.baseUrl = isDevMode() ? MAIN_API_PREFIX : config?.['links']?.main_api;
464
464
  });
465
465
  }
466
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: MainApiHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
467
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: MainApiHttpService, providedIn: 'root' }); }
466
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: MainApiHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
467
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: MainApiHttpService, providedIn: 'root' }); }
468
468
  }
469
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: MainApiHttpService, decorators: [{
469
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: MainApiHttpService, decorators: [{
470
470
  type: Injectable,
471
471
  args: [{
472
472
  providedIn: 'root'
@@ -720,10 +720,10 @@ class SecureTokenStorageService {
720
720
  this.phonegapTokenSubject.next(phonegapToken);
721
721
  }
722
722
  }
723
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: SecureTokenStorageService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
724
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: SecureTokenStorageService, providedIn: 'root' }); }
723
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SecureTokenStorageService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
724
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SecureTokenStorageService, providedIn: 'root' }); }
725
725
  }
726
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: SecureTokenStorageService, decorators: [{
726
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SecureTokenStorageService, decorators: [{
727
727
  type: Injectable,
728
728
  args: [{
729
729
  providedIn: 'root'
@@ -782,10 +782,10 @@ class ProfileService {
782
782
  postLinks(data) {
783
783
  return this.api.post('/user_links', data);
784
784
  }
785
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: ProfileService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
786
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: ProfileService, providedIn: 'root' }); }
785
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ProfileService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
786
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ProfileService, providedIn: 'root' }); }
787
787
  }
788
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: ProfileService, decorators: [{
788
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ProfileService, decorators: [{
789
789
  type: Injectable,
790
790
  args: [{
791
791
  providedIn: 'root'
@@ -962,10 +962,10 @@ class UserService {
962
962
  refreshUserApiTokens() {
963
963
  return this.api.get(`${this.endpoint}/refresh_user_api_tokens`);
964
964
  }
965
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: UserService, deps: [{ token: MainApiHttpService }, { token: i2.Store }, { token: i3.Router }, { token: i1.AppConfigService }, { token: ProfileService }, { token: CustomToastService }], target: i0.ɵɵFactoryTarget.Injectable }); }
966
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: UserService, providedIn: 'root' }); }
965
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: UserService, deps: [{ token: MainApiHttpService }, { token: i2.Store }, { token: i3.Router }, { token: i1.AppConfigService }, { token: ProfileService }, { token: CustomToastService }], target: i0.ɵɵFactoryTarget.Injectable }); }
966
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: UserService, providedIn: 'root' }); }
967
967
  }
968
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: UserService, decorators: [{
968
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: UserService, decorators: [{
969
969
  type: Injectable,
970
970
  args: [{
971
971
  providedIn: 'root'
@@ -1113,9 +1113,13 @@ class AuthService {
1113
1113
  return this.http.delete('session', options).pipe(tap$1(() => {
1114
1114
  this.secureTokenStorage.clearTokens().subscribe();
1115
1115
  // Reset Crisp session on logout so next visitor is anonymous again
1116
- if (window && window.$crisp && typeof window.$crisp.push === 'function') {
1116
+ if (typeof window?.$crisp?.push === 'function') {
1117
1117
  window.$crisp.push(['do', 'session:reset']);
1118
1118
  }
1119
+ // Clear HubSpot user data so next visit is not identified as previous user
1120
+ if (typeof window !== 'undefined') {
1121
+ window.hubspotUserData = undefined;
1122
+ }
1119
1123
  }));
1120
1124
  }
1121
1125
  /**
@@ -1227,7 +1231,7 @@ class AuthService {
1227
1231
  userId: userId
1228
1232
  });
1229
1233
  // Identify logged-in user in Crisp if widget is already loaded
1230
- if (window && window.$crisp && typeof window.$crisp.push === 'function') {
1234
+ if (typeof window?.$crisp?.push === 'function') {
1231
1235
  if (email) {
1232
1236
  window.$crisp.push(['set', 'user:email', email]);
1233
1237
  }
@@ -1235,13 +1239,11 @@ class AuthService {
1235
1239
  window.$crisp.push(['set', 'user:nickname', firstName]);
1236
1240
  }
1237
1241
  if (userId) {
1238
- window.$crisp.push([
1239
- 'set',
1240
- 'session:data',
1241
- [['user_id', [userId]]]
1242
- ]);
1242
+ window.$crisp.push(['set', 'session:data', [['user_id', [userId]]]]);
1243
1243
  }
1244
1244
  }
1245
+ this.notifyHubSpot(email, firstName, userId);
1246
+ // Identify logged-in user in HubSpot if widget is already loaded
1245
1247
  this.router.navigate(['home']);
1246
1248
  if ($('.cc-dismiss').length > 0) {
1247
1249
  $('.cc-dismiss')[0].click();
@@ -1249,6 +1251,22 @@ class AuthService {
1249
1251
  return true;
1250
1252
  });
1251
1253
  }
1254
+ notifyHubSpot(email, firstName, userId) {
1255
+ window.hubspotUserData = { email, name: firstName, userId };
1256
+ if (Array.isArray(window._hsq)) {
1257
+ const traits = {};
1258
+ if (email)
1259
+ traits['email'] = email;
1260
+ if (firstName)
1261
+ traits['firstname'] = firstName;
1262
+ if (userId)
1263
+ traits['user_id'] = userId;
1264
+ if (Object.keys(traits).length > 0) {
1265
+ window._hsq.push(['identify', traits]);
1266
+ window._hsq.push(['trackPageView']);
1267
+ }
1268
+ }
1269
+ }
1252
1270
  impersonateUser(data) {
1253
1271
  if (!data.phonegap) {
1254
1272
  delete data.phonegap;
@@ -1309,10 +1327,10 @@ class AuthService {
1309
1327
  }
1310
1328
  });
1311
1329
  }
1312
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", 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 }); }
1313
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: AuthService }); }
1330
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", 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 }); }
1331
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: AuthService }); }
1314
1332
  }
1315
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: AuthService, decorators: [{
1333
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: AuthService, decorators: [{
1316
1334
  type: Injectable
1317
1335
  }], ctorParameters: () => [{ type: LocalStorage }, { type: SecureTokenStorageService }, { type: i3.Router }, { type: MainApiHttpService }, { type: UserService }, { type: CustomToastService }, { type: i1.AppConfigService }, { type: IntegrationsApiHttpService }, { type: Document, decorators: [{
1318
1336
  type: Inject,
@@ -1332,19 +1350,19 @@ class UserEffects {
1332
1350
  )));
1333
1351
  });
1334
1352
  }
1335
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: UserEffects, deps: [{ token: UserService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1336
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: UserEffects }); }
1353
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: UserEffects, deps: [{ token: UserService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1354
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: UserEffects }); }
1337
1355
  }
1338
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: UserEffects, decorators: [{
1356
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: UserEffects, decorators: [{
1339
1357
  type: Injectable
1340
1358
  }], ctorParameters: () => [{ type: UserService }] });
1341
1359
 
1342
1360
  class CommonServicesModule {
1343
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: CommonServicesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1344
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.19", ngImport: i0, type: CommonServicesModule, imports: [CommonModule, i1$3.EffectsRootModule, i2.StoreRootModule] }); }
1345
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: CommonServicesModule, providers: [AuthService], imports: [CommonModule, EffectsModule.forRoot([UserEffects]), StoreModule.forRoot(appReducers)] }); }
1361
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CommonServicesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
1362
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.6", ngImport: i0, type: CommonServicesModule, imports: [CommonModule, i1$3.EffectsRootModule, i2.StoreRootModule] }); }
1363
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CommonServicesModule, providers: [AuthService], imports: [CommonModule, EffectsModule.forRoot([UserEffects]), StoreModule.forRoot(appReducers)] }); }
1346
1364
  }
1347
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: CommonServicesModule, decorators: [{
1365
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CommonServicesModule, decorators: [{
1348
1366
  type: NgModule,
1349
1367
  args: [{
1350
1368
  imports: [CommonModule, EffectsModule.forRoot([UserEffects]), StoreModule.forRoot(appReducers)],
@@ -1381,10 +1399,10 @@ class SeoService {
1381
1399
  this.meta.updateTag({ name: 'twitter:description', content: description });
1382
1400
  this.meta.updateTag({ name: 'twitter:card', content: 'summary' });
1383
1401
  }
1384
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: SeoService, deps: [{ token: i1$4.Meta }, { token: i1$4.Title }], target: i0.ɵɵFactoryTarget.Injectable }); }
1385
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: SeoService, providedIn: 'root' }); }
1402
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SeoService, deps: [{ token: i1$4.Meta }, { token: i1$4.Title }], target: i0.ɵɵFactoryTarget.Injectable }); }
1403
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SeoService, providedIn: 'root' }); }
1386
1404
  }
1387
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: SeoService, decorators: [{
1405
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SeoService, decorators: [{
1388
1406
  type: Injectable,
1389
1407
  args: [{
1390
1408
  providedIn: 'root'
@@ -1695,10 +1713,10 @@ class PermissionService {
1695
1713
  getCurrentProduct() {
1696
1714
  return JSON.parse(localStorage.getItem('product'));
1697
1715
  }
1698
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: PermissionService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1699
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: PermissionService, providedIn: 'root' }); }
1716
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: PermissionService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1717
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: PermissionService, providedIn: 'root' }); }
1700
1718
  }
1701
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: PermissionService, decorators: [{
1719
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: PermissionService, decorators: [{
1702
1720
  type: Injectable,
1703
1721
  args: [{
1704
1722
  providedIn: 'root'
@@ -1739,10 +1757,10 @@ class LinkService {
1739
1757
  window.console.error('Error within linkService : ', e);
1740
1758
  }
1741
1759
  }
1742
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: LinkService, deps: [{ token: i0.RendererFactory2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1743
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: LinkService, providedIn: 'root' }); }
1760
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: LinkService, deps: [{ token: i0.RendererFactory2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
1761
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: LinkService, providedIn: 'root' }); }
1744
1762
  }
1745
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: LinkService, decorators: [{
1763
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: LinkService, decorators: [{
1746
1764
  type: Injectable,
1747
1765
  args: [{
1748
1766
  providedIn: 'root'
@@ -1771,10 +1789,10 @@ class CustomPreloadingStrategy {
1771
1789
  const ret = routeData.preload && this.permission.isGranted(routeData.permission);
1772
1790
  return ret;
1773
1791
  }
1774
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: CustomPreloadingStrategy, deps: [{ token: PermissionService }, { token: i3.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
1775
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: CustomPreloadingStrategy, providedIn: 'root' }); }
1792
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CustomPreloadingStrategy, deps: [{ token: PermissionService }, { token: i3.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
1793
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CustomPreloadingStrategy, providedIn: 'root' }); }
1776
1794
  }
1777
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: CustomPreloadingStrategy, decorators: [{
1795
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CustomPreloadingStrategy, decorators: [{
1778
1796
  type: Injectable,
1779
1797
  args: [{
1780
1798
  providedIn: 'root'
@@ -1816,12 +1834,14 @@ class AbTestService {
1816
1834
  * dynamically loads the microservice
1817
1835
  */
1818
1836
  getServiceInstance(service) {
1819
- return service ? this.injector.get(service) : this.injector.get(MainApiHttpService); // fallback to Core Microservice
1837
+ return service
1838
+ ? this.injector.get(service)
1839
+ : this.injector.get(MainApiHttpService);
1820
1840
  }
1821
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: AbTestService, deps: [{ token: i0.Injector }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
1822
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: AbTestService, providedIn: 'root' }); }
1841
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: AbTestService, deps: [{ token: i0.Injector }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
1842
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: AbTestService, providedIn: 'root' }); }
1823
1843
  }
1824
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: AbTestService, decorators: [{
1844
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: AbTestService, decorators: [{
1825
1845
  type: Injectable,
1826
1846
  args: [{
1827
1847
  providedIn: 'root'
@@ -1849,10 +1869,10 @@ class GeoService {
1849
1869
  return this.cookieService.putObject('location_from_ip', data);
1850
1870
  }));
1851
1871
  }
1852
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: GeoService, deps: [{ token: MainApiHttpService }, { token: i2$1.CookieService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1853
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: GeoService, providedIn: 'root' }); }
1872
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: GeoService, deps: [{ token: MainApiHttpService }, { token: i2$1.CookieService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1873
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: GeoService, providedIn: 'root' }); }
1854
1874
  }
1855
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: GeoService, decorators: [{
1875
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: GeoService, decorators: [{
1856
1876
  type: Injectable,
1857
1877
  args: [{
1858
1878
  providedIn: 'root'
@@ -1976,10 +1996,10 @@ class SubscriptionService {
1976
1996
  ...HelperService.getPagingParams(paging)
1977
1997
  });
1978
1998
  }
1979
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: SubscriptionService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
1980
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: SubscriptionService }); }
1999
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SubscriptionService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2000
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SubscriptionService }); }
1981
2001
  }
1982
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: SubscriptionService, decorators: [{
2002
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SubscriptionService, decorators: [{
1983
2003
  type: Injectable
1984
2004
  }], ctorParameters: () => [{ type: MainApiHttpService }] });
1985
2005
 
@@ -2047,10 +2067,10 @@ class ProductService {
2047
2067
  const params = subscription_id != null ? { subscription_id } : {};
2048
2068
  return this.api.getWithParams(`${this.endpoint}/available_stripe_proration_behaviors`, params);
2049
2069
  }
2050
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: ProductService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2051
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: ProductService, providedIn: 'root' }); }
2070
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ProductService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2071
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ProductService, providedIn: 'root' }); }
2052
2072
  }
2053
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: ProductService, decorators: [{
2073
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ProductService, decorators: [{
2054
2074
  type: Injectable,
2055
2075
  args: [{
2056
2076
  providedIn: 'root'
@@ -2084,10 +2104,10 @@ class ValidationService {
2084
2104
  return valid ? null : error;
2085
2105
  };
2086
2106
  }
2087
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: ValidationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2088
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: ValidationService }); }
2107
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ValidationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2108
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ValidationService }); }
2089
2109
  }
2090
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: ValidationService, decorators: [{
2110
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: ValidationService, decorators: [{
2091
2111
  type: Injectable
2092
2112
  }] });
2093
2113
 
@@ -2192,10 +2212,10 @@ class AhoyService {
2192
2212
  this.toast.showToast(error);
2193
2213
  }
2194
2214
  }
2195
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: AhoyService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
2196
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: AhoyService, providedIn: 'root' }); }
2215
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: AhoyService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
2216
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: AhoyService, providedIn: 'root' }); }
2197
2217
  }
2198
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: AhoyService, decorators: [{
2218
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: AhoyService, decorators: [{
2199
2219
  type: Injectable,
2200
2220
  args: [{
2201
2221
  providedIn: 'root'
@@ -2320,10 +2340,10 @@ class CommonService {
2320
2340
  }
2321
2341
  return this.api.post(`${CUSTOMER_SUPPORT_PATH}`, formData);
2322
2342
  }
2323
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: CommonService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2324
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: CommonService, providedIn: 'root' }); }
2343
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CommonService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2344
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CommonService, providedIn: 'root' }); }
2325
2345
  }
2326
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: CommonService, decorators: [{
2346
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: CommonService, decorators: [{
2327
2347
  type: Injectable,
2328
2348
  args: [{
2329
2349
  providedIn: 'root'
@@ -2397,10 +2417,10 @@ class NgbDateCustomParserFormatter extends NgbDateParserFormatter {
2397
2417
  day: Number(date.substring(8, 10))
2398
2418
  };
2399
2419
  }
2400
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: NgbDateCustomParserFormatter, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
2401
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: NgbDateCustomParserFormatter, providedIn: 'root' }); }
2420
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NgbDateCustomParserFormatter, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
2421
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NgbDateCustomParserFormatter, providedIn: 'root' }); }
2402
2422
  }
2403
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: NgbDateCustomParserFormatter, decorators: [{
2423
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NgbDateCustomParserFormatter, decorators: [{
2404
2424
  type: Injectable,
2405
2425
  args: [{
2406
2426
  providedIn: 'root'
@@ -2510,10 +2530,10 @@ class TagService {
2510
2530
  addTagCategoryById(data, subscription_id) {
2511
2531
  return this.api.post(this.ADMIN_TAG_CATEGORIES_PATH, { ...data, subscription_id });
2512
2532
  }
2513
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TagService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2514
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TagService, providedIn: 'root' }); }
2533
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: TagService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2534
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: TagService, providedIn: 'root' }); }
2515
2535
  }
2516
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TagService, decorators: [{
2536
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: TagService, decorators: [{
2517
2537
  type: Injectable,
2518
2538
  args: [{
2519
2539
  providedIn: 'root'
@@ -2543,10 +2563,10 @@ class TipsService {
2543
2563
  addUserTips(data, subscription_id) {
2544
2564
  return this.api.post(`/users/user_tips`, { ...data, subscription_id });
2545
2565
  }
2546
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TipsService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2547
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TipsService, providedIn: 'root' }); }
2566
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: TipsService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2567
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: TipsService, providedIn: 'root' }); }
2548
2568
  }
2549
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: TipsService, decorators: [{
2569
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: TipsService, decorators: [{
2550
2570
  type: Injectable,
2551
2571
  args: [{
2552
2572
  providedIn: 'root'
@@ -2561,10 +2581,10 @@ class WindowService {
2561
2581
  replaceUrl(url) {
2562
2582
  window.location.href = url;
2563
2583
  }
2564
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: WindowService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2565
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: WindowService, providedIn: 'root' }); }
2584
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: WindowService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2585
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: WindowService, providedIn: 'root' }); }
2566
2586
  }
2567
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: WindowService, decorators: [{
2587
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: WindowService, decorators: [{
2568
2588
  type: Injectable,
2569
2589
  args: [{
2570
2590
  providedIn: 'root'
@@ -2677,10 +2697,10 @@ class GroupService {
2677
2697
  deleteCommunicationFiles(id) {
2678
2698
  return this.api.delete(`/group_communication_files/${id}`);
2679
2699
  }
2680
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: GroupService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2681
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: GroupService, providedIn: 'root' }); }
2700
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: GroupService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2701
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: GroupService, providedIn: 'root' }); }
2682
2702
  }
2683
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: GroupService, decorators: [{
2703
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: GroupService, decorators: [{
2684
2704
  type: Injectable,
2685
2705
  args: [{
2686
2706
  providedIn: 'root'
@@ -2701,10 +2721,10 @@ class QualificationService {
2701
2721
  deleteQualifications(id) {
2702
2722
  return this.api.delete(`${this.endPoint}/${id}`);
2703
2723
  }
2704
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: QualificationService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2705
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: QualificationService, providedIn: 'root' }); }
2724
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: QualificationService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2725
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: QualificationService, providedIn: 'root' }); }
2706
2726
  }
2707
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: QualificationService, decorators: [{
2727
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: QualificationService, decorators: [{
2708
2728
  type: Injectable,
2709
2729
  args: [{
2710
2730
  providedIn: 'root'
@@ -2718,10 +2738,10 @@ class DashboardService {
2718
2738
  search(keyword, subscriptionId) {
2719
2739
  return this.api.get(`/search/global_search?search_term=${keyword}&subscription_id=${subscriptionId}`);
2720
2740
  }
2721
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: DashboardService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2722
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: DashboardService, providedIn: 'root' }); }
2741
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: DashboardService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2742
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: DashboardService, providedIn: 'root' }); }
2723
2743
  }
2724
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: DashboardService, decorators: [{
2744
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: DashboardService, decorators: [{
2725
2745
  type: Injectable,
2726
2746
  args: [{
2727
2747
  providedIn: 'root'
@@ -2777,16 +2797,92 @@ class MailBoxService {
2777
2797
  getRecipient(params = {}) {
2778
2798
  return this.http.getWithParams(`${this.endpoint}available_recipients`, params);
2779
2799
  }
2780
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: MailBoxService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2781
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: MailBoxService, providedIn: 'root' }); }
2800
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: MailBoxService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2801
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: MailBoxService, providedIn: 'root' }); }
2782
2802
  }
2783
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: MailBoxService, decorators: [{
2803
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: MailBoxService, decorators: [{
2784
2804
  type: Injectable,
2785
2805
  args: [{
2786
2806
  providedIn: 'root'
2787
2807
  }]
2788
2808
  }], ctorParameters: () => [{ type: MainApiHttpService }] });
2789
2809
 
2810
+ /* eslint-disable @typescript-eslint/no-explicit-any */
2811
+ class McpJsonRpcService {
2812
+ /** Dev MCP host (avoids relying on dev-server proxy for /main-api-mcp). */
2813
+ static { this.MCP_DEV_HTTP_URL = 'https://main-api-mcp.dev.posiwise.com/mcp'; }
2814
+ constructor(http, appConfigService, store) {
2815
+ this.http = http;
2816
+ this.appConfigService = appConfigService;
2817
+ this.store = store;
2818
+ this.nextId = 1;
2819
+ }
2820
+ pickApiCredentials(user) {
2821
+ if (!user) {
2822
+ return null;
2823
+ }
2824
+ const token = user.api_user_token ?? user.api_keys?.api_user_token;
2825
+ const userId = user.api_user_id ?? user.api_keys?.api_user_id;
2826
+ if (!token || !userId) {
2827
+ return null;
2828
+ }
2829
+ return { token, userId };
2830
+ }
2831
+ rpc(method, params) {
2832
+ const id = this.nextId++;
2833
+ const body = {
2834
+ jsonrpc: '2.0',
2835
+ id,
2836
+ method,
2837
+ ...(params !== undefined ? { params } : {})
2838
+ };
2839
+ const url$ = isDevMode()
2840
+ ? of(McpJsonRpcService.MCP_DEV_HTTP_URL)
2841
+ : this.appConfigService.appConfig$.pipe(take(1), switchMap(c => {
2842
+ const url = c?.links?.['mcp'] ?? c?.links?.['main_api_mcp'];
2843
+ if (typeof url === 'string' && url.trim()) {
2844
+ return of(url.trim());
2845
+ }
2846
+ return throwError(() => new Error('MCP is not configured: set links.mcp or links.main_api_mcp in app configuration.'));
2847
+ }));
2848
+ return url$.pipe(switchMap(url => this.store.pipe(take(1), map((app) => this.pickApiCredentials(app.user?.currentUser ?? null)), switchMap(creds => {
2849
+ if (!creds) {
2850
+ return throwError(() => new Error('MCP needs API credentials. Ensure your account exposes api_user_token and api_user_id (see Account / API keys).'));
2851
+ }
2852
+ const headers = new HttpHeaders({
2853
+ 'Content-Type': 'application/json',
2854
+ 'X-API-USER-TOKEN': creds.token,
2855
+ 'X-API-USER-ID': creds.userId
2856
+ });
2857
+ return this.http.post(url, body, { headers });
2858
+ }))));
2859
+ }
2860
+ listTools() {
2861
+ return this.rpc('tools/list', {}).pipe(map(res => {
2862
+ if (res.error) {
2863
+ throw new Error(res.error.message ?? 'MCP tools/list failed');
2864
+ }
2865
+ return (res.result ?? { tools: [] });
2866
+ }));
2867
+ }
2868
+ callTool(name, args = {}) {
2869
+ return this.rpc('tools/call', { name, arguments: args }).pipe(map(res => {
2870
+ if (res.error) {
2871
+ throw new Error(res.error.message ?? 'MCP tools/call failed');
2872
+ }
2873
+ return res.result;
2874
+ }));
2875
+ }
2876
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: McpJsonRpcService, deps: [{ token: i1$2.HttpClient }, { token: i1.AppConfigService }, { token: i2.Store }], target: i0.ɵɵFactoryTarget.Injectable }); }
2877
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: McpJsonRpcService, providedIn: 'root' }); }
2878
+ }
2879
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: McpJsonRpcService, decorators: [{
2880
+ type: Injectable,
2881
+ args: [{
2882
+ providedIn: 'root'
2883
+ }]
2884
+ }], ctorParameters: () => [{ type: i1$2.HttpClient }, { type: i1.AppConfigService }, { type: i2.Store }] });
2885
+
2790
2886
  class WebsocketService {
2791
2887
  constructor(appConfigService, authService) {
2792
2888
  this.appConfigService = appConfigService;
@@ -2798,10 +2894,10 @@ class WebsocketService {
2798
2894
  this.webSocket$ = this.webSocketSubject.asObservable().pipe(distinctUntilChanged());
2799
2895
  });
2800
2896
  }
2801
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: WebsocketService, deps: [{ token: i1.AppConfigService }, { token: AuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2802
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: WebsocketService, providedIn: 'root' }); }
2897
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: WebsocketService, deps: [{ token: i1.AppConfigService }, { token: AuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2898
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: WebsocketService, providedIn: 'root' }); }
2803
2899
  }
2804
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: WebsocketService, decorators: [{
2900
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: WebsocketService, decorators: [{
2805
2901
  type: Injectable,
2806
2902
  args: [{
2807
2903
  providedIn: 'root'
@@ -2857,10 +2953,10 @@ class NotificationService {
2857
2953
  return null;
2858
2954
  }));
2859
2955
  }
2860
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: NotificationService, deps: [{ token: MainApiHttpService }, { token: CustomToastService }, { token: WebsocketService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2861
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: NotificationService, providedIn: 'root' }); }
2956
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NotificationService, deps: [{ token: MainApiHttpService }, { token: CustomToastService }, { token: WebsocketService }], target: i0.ɵɵFactoryTarget.Injectable }); }
2957
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NotificationService, providedIn: 'root' }); }
2862
2958
  }
2863
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: NotificationService, decorators: [{
2959
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NotificationService, decorators: [{
2864
2960
  type: Injectable,
2865
2961
  args: [{
2866
2962
  providedIn: 'root'
@@ -2875,10 +2971,10 @@ class DataService {
2875
2971
  changeMessage(message) {
2876
2972
  this.messageSource.next(message);
2877
2973
  }
2878
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: DataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2879
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: DataService, providedIn: 'root' }); }
2974
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: DataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2975
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: DataService, providedIn: 'root' }); }
2880
2976
  }
2881
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: DataService, decorators: [{
2977
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: DataService, decorators: [{
2882
2978
  type: Injectable,
2883
2979
  args: [{
2884
2980
  providedIn: 'root'
@@ -2916,10 +3012,10 @@ class NumberPickerService {
2916
3012
  */
2917
3013
  this.value = null;
2918
3014
  }
2919
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: NumberPickerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
2920
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: NumberPickerService, providedIn: 'root' }); }
3015
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NumberPickerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3016
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NumberPickerService, providedIn: 'root' }); }
2921
3017
  }
2922
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: NumberPickerService, decorators: [{
3018
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: NumberPickerService, decorators: [{
2923
3019
  type: Injectable,
2924
3020
  args: [{
2925
3021
  providedIn: 'root'
@@ -3354,10 +3450,10 @@ class SentryErrorHandler {
3354
3450
  console.error(error, e);
3355
3451
  }
3356
3452
  }
3357
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: SentryErrorHandler, deps: [{ token: i1.AppConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
3358
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: SentryErrorHandler, providedIn: 'root' }); }
3453
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SentryErrorHandler, deps: [{ token: i1.AppConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
3454
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SentryErrorHandler, providedIn: 'root' }); }
3359
3455
  }
3360
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: SentryErrorHandler, decorators: [{
3456
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: SentryErrorHandler, decorators: [{
3361
3457
  type: Injectable,
3362
3458
  args: [{
3363
3459
  providedIn: 'root'
@@ -3417,10 +3513,10 @@ class LogoCacheService {
3417
3513
  this.cache = JSON.parse(cacheData);
3418
3514
  }
3419
3515
  }
3420
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: LogoCacheService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3421
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: LogoCacheService, providedIn: 'root' }); }
3516
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: LogoCacheService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
3517
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: LogoCacheService, providedIn: 'root' }); }
3422
3518
  }
3423
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: LogoCacheService, decorators: [{
3519
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: LogoCacheService, decorators: [{
3424
3520
  type: Injectable,
3425
3521
  args: [{
3426
3522
  providedIn: 'root'
@@ -3459,10 +3555,10 @@ class HopscotchService {
3459
3555
  window?.hopscotch?.endTour();
3460
3556
  }
3461
3557
  }
3462
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: HopscotchService, deps: [{ token: ScriptLoaderService }, { token: TipsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
3463
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: HopscotchService, providedIn: 'root' }); }
3558
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: HopscotchService, deps: [{ token: ScriptLoaderService }, { token: TipsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
3559
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: HopscotchService, providedIn: 'root' }); }
3464
3560
  }
3465
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: HopscotchService, decorators: [{
3561
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: HopscotchService, decorators: [{
3466
3562
  type: Injectable,
3467
3563
  args: [{
3468
3564
  providedIn: 'root'
@@ -3478,10 +3574,10 @@ class BrainApiHttpService extends BaseHttpService {
3478
3574
  this.baseUrl = isDevMode() ? BRAIN_API_PREFIX : config?.['links']['brain_api'] ?? '';
3479
3575
  });
3480
3576
  }
3481
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: BrainApiHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
3482
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: BrainApiHttpService, providedIn: 'root' }); }
3577
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: BrainApiHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
3578
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: BrainApiHttpService, providedIn: 'root' }); }
3483
3579
  }
3484
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: BrainApiHttpService, decorators: [{
3580
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: BrainApiHttpService, decorators: [{
3485
3581
  type: Injectable,
3486
3582
  args: [{
3487
3583
  providedIn: 'root'
@@ -3495,10 +3591,10 @@ class BrainApiService {
3495
3591
  invokeModel(payload) {
3496
3592
  return this.api.post('/bedrock/invoke', payload);
3497
3593
  }
3498
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: BrainApiService, deps: [{ token: BrainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
3499
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: BrainApiService, providedIn: 'root' }); }
3594
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: BrainApiService, deps: [{ token: BrainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
3595
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: BrainApiService, providedIn: 'root' }); }
3500
3596
  }
3501
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImport: i0, type: BrainApiService, decorators: [{
3597
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.6", ngImport: i0, type: BrainApiService, decorators: [{
3502
3598
  type: Injectable,
3503
3599
  args: [{
3504
3600
  providedIn: 'root'
@@ -3513,5 +3609,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.19", ngImpo
3513
3609
  * Generated bundle index. Do not edit.
3514
3610
  */
3515
3611
 
3516
- export { AbTestService, AhoyService, AuthService, BaseHttpService, BrainApiHttpService, BrainApiService, CommonService, CommonServicesModule, CustomPreloadingStrategy, CustomToastService, DashboardService, DataService, FormHelperService, GeoService, GoogleAnalyticsService, GroupService, HopscotchService, IntegrationsApiHttpService, LinkService, LocalStorage, LogoCacheService, MailBoxService, MainApiHttpService, NgbDateCustomParserFormatter, NotificationService, NumberPickerService, PermissionService, PrimeNgHelper, ProductService, ProfileService, QualificationService, ScriptLoaderService, SecureTokenStorageService, SentryErrorHandler, SeoService, SubscriptionService, TagService, TipsService, UserEffects, UserService, ValidationService, WebsocketService, WindowService };
3612
+ export { AbTestService, AhoyService, AuthService, BaseHttpService, BrainApiHttpService, BrainApiService, CommonService, CommonServicesModule, CustomPreloadingStrategy, CustomToastService, DashboardService, DataService, FormHelperService, GeoService, GoogleAnalyticsService, GroupService, HopscotchService, IntegrationsApiHttpService, LinkService, LocalStorage, LogoCacheService, MailBoxService, MainApiHttpService, McpJsonRpcService, NgbDateCustomParserFormatter, NotificationService, NumberPickerService, PermissionService, PrimeNgHelper, ProductService, ProfileService, QualificationService, ScriptLoaderService, SecureTokenStorageService, SentryErrorHandler, SeoService, SubscriptionService, TagService, TipsService, UserEffects, UserService, ValidationService, WebsocketService, WindowService };
3517
3613
  //# sourceMappingURL=posiwise-common-services.mjs.map