@igo2/core 16.0.2 → 16.1.0

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 (113) hide show
  1. package/esm2022/lib/activity/activity.interceptor.mjs +6 -6
  2. package/esm2022/lib/activity/activity.module.mjs +12 -12
  3. package/esm2022/lib/activity/activity.service.mjs +9 -9
  4. package/esm2022/lib/analytics/shared/analytics.interface.mjs +1 -1
  5. package/esm2022/lib/analytics/shared/analytics.service.mjs +12 -9
  6. package/esm2022/lib/compression/compression.service.mjs +9 -9
  7. package/esm2022/lib/config/config.module.mjs +12 -12
  8. package/esm2022/lib/config/config.service.mjs +14 -10
  9. package/esm2022/lib/config/version.mjs +3 -3
  10. package/esm2022/lib/core.module.mjs +32 -33
  11. package/esm2022/lib/environment/environment.interface.mjs +1 -1
  12. package/esm2022/lib/gesture/gesture.module.mjs +12 -13
  13. package/esm2022/lib/gesture/gesture.provider.mjs +6 -6
  14. package/esm2022/lib/language/language.module.mjs +19 -20
  15. package/esm2022/lib/language/shared/language.service.mjs +9 -9
  16. package/esm2022/lib/media/media.service.mjs +9 -9
  17. package/esm2022/lib/message/message.module.mjs +30 -31
  18. package/esm2022/lib/message/shared/message.service.mjs +12 -12
  19. package/esm2022/lib/monitoring/index.mjs +4 -0
  20. package/esm2022/lib/monitoring/monitoring.provider.mjs +20 -0
  21. package/esm2022/lib/monitoring/sentry/index.mjs +4 -0
  22. package/esm2022/lib/monitoring/sentry/sentry.interface.mjs +2 -0
  23. package/esm2022/lib/monitoring/sentry/sentry.mjs +29 -0
  24. package/esm2022/lib/monitoring/sentry/sentry.provider.mjs +31 -0
  25. package/esm2022/lib/monitoring/sentry/sentry.utils.mjs +12 -0
  26. package/esm2022/lib/monitoring/shared/any-monitoring.interface.mjs +2 -0
  27. package/esm2022/lib/monitoring/shared/index.mjs +3 -0
  28. package/esm2022/lib/monitoring/shared/monitoring.interface.mjs +2 -0
  29. package/esm2022/lib/network/network.service.mjs +9 -9
  30. package/esm2022/lib/regex/regex.service.mjs +9 -9
  31. package/esm2022/lib/request/error.interceptor.mjs +9 -9
  32. package/esm2022/lib/request/error.module.mjs +16 -16
  33. package/esm2022/lib/request/logging.interceptor.mjs +6 -6
  34. package/esm2022/lib/request/logging.module.mjs +12 -12
  35. package/esm2022/lib/route/route.service.mjs +14 -14
  36. package/esm2022/lib/storage/storage.service.mjs +9 -9
  37. package/esm2022/lib/user/index.mjs +2 -0
  38. package/esm2022/lib/user/user.interface.mjs +2 -0
  39. package/esm2022/public_api.mjs +3 -1
  40. package/fesm2022/igo2-core.mjs +351 -264
  41. package/fesm2022/igo2-core.mjs.map +1 -1
  42. package/lib/analytics/shared/analytics.interface.d.ts +4 -0
  43. package/lib/analytics/shared/analytics.service.d.ts +5 -6
  44. package/lib/config/config.service.d.ts +2 -0
  45. package/lib/environment/environment.interface.d.ts +2 -0
  46. package/lib/monitoring/index.d.ts +3 -0
  47. package/lib/monitoring/monitoring.provider.d.ts +4 -0
  48. package/lib/monitoring/sentry/index.d.ts +3 -0
  49. package/lib/monitoring/sentry/sentry.d.ts +4 -0
  50. package/lib/monitoring/sentry/sentry.interface.d.ts +7 -0
  51. package/lib/monitoring/sentry/sentry.provider.d.ts +3 -0
  52. package/lib/monitoring/sentry/sentry.utils.d.ts +4 -0
  53. package/lib/monitoring/shared/any-monitoring.interface.d.ts +2 -0
  54. package/lib/monitoring/shared/index.d.ts +2 -0
  55. package/lib/monitoring/shared/monitoring.interface.d.ts +7 -0
  56. package/lib/user/index.d.ts +1 -0
  57. package/lib/user/user.interface.d.ts +6 -0
  58. package/locale/en.json +1 -1
  59. package/locale/fr.json +1 -1
  60. package/package.json +14 -15
  61. package/public_api.d.ts +2 -0
  62. package/{_index.scss → src/index.scss} +0 -2
  63. package/{theming → src/theming}/prebuilt-themes/blue-theme.scss +4 -11
  64. package/{theming → src/theming}/prebuilt-themes/bluedark-theme.scss +4 -11
  65. package/{theming → src/theming}/prebuilt-themes/bluedq-theme.scss +4 -10
  66. package/{theming → src/theming}/prebuilt-themes/bluegrey-theme.scss +4 -3
  67. package/{theming → src/theming}/prebuilt-themes/dark-theme.scss +4 -3
  68. package/{theming → src/theming}/prebuilt-themes/deeppurple-theme.scss +4 -3
  69. package/{theming → src/theming}/prebuilt-themes/indigo-theme.scss +4 -3
  70. package/{theming → src/theming}/prebuilt-themes/orange-theme.scss +4 -3
  71. package/{theming → src/theming}/prebuilt-themes/qcca-theme.scss +3 -1
  72. package/{theming → src/theming}/prebuilt-themes/teal-theme.scss +4 -3
  73. package/theming/prebuilt-themes/blue-theme.css +12 -3
  74. package/theming/prebuilt-themes/bluedark-theme.css +12 -3
  75. package/theming/prebuilt-themes/bluedq-theme.css +12 -3
  76. package/theming/prebuilt-themes/bluegrey-theme.css +9 -0
  77. package/theming/prebuilt-themes/dark-theme.css +9 -0
  78. package/theming/prebuilt-themes/deeppurple-theme.css +9 -0
  79. package/theming/prebuilt-themes/indigo-theme.css +9 -0
  80. package/theming/prebuilt-themes/orange-theme.css +9 -0
  81. package/theming/prebuilt-themes/qcca-theme.css +9 -0
  82. package/theming/prebuilt-themes/teal-theme.css +9 -0
  83. /package/{core-theme.scss → src/core-theme.scss} +0 -0
  84. /package/{lib → src/lib}/message/message.theming.scss +0 -0
  85. /package/{style → src/style}/all-style.scss +0 -0
  86. /package/{style → src/style}/layout.scss +0 -0
  87. /package/{style → src/style}/partial/core-utils.scss +0 -0
  88. /package/{style → src/style}/partial/core.variables.scss +0 -0
  89. /package/{style → src/style}/partial/media.scss +0 -0
  90. /package/{style → src/style}/style.scss +0 -0
  91. /package/{theming → src/theming}/all-theme.scss +0 -0
  92. /package/{theming → src/theming}/material-theme-override.scss +0 -0
  93. /package/{theming → src/theming}/prebuilt-themes/qcca/_index.scss +0 -0
  94. /package/{theming → src/theming}/prebuilt-themes/qcca/base/_index.scss +0 -0
  95. /package/{theming → src/theming}/prebuilt-themes/qcca/base/breakpoints.scss +0 -0
  96. /package/{theming → src/theming}/prebuilt-themes/qcca/base/colors.scss +0 -0
  97. /package/{theming → src/theming}/prebuilt-themes/qcca/base/palette.scss +0 -0
  98. /package/{theming → src/theming}/prebuilt-themes/qcca/base/typography/_index.scss +0 -0
  99. /package/{theming → src/theming}/prebuilt-themes/qcca/base/typography/typography.scss +0 -0
  100. /package/{theming → src/theming}/prebuilt-themes/qcca/base/typography/typography.utils.scss +0 -0
  101. /package/{theming → src/theming}/prebuilt-themes/qcca/components/_index.scss +0 -0
  102. /package/{theming → src/theming}/prebuilt-themes/qcca/components/_index.theme.scss +0 -0
  103. /package/{theming → src/theming}/prebuilt-themes/qcca/components/button.scss +0 -0
  104. /package/{theming → src/theming}/prebuilt-themes/qcca/components/dialog.scss +0 -0
  105. /package/{theming → src/theming}/prebuilt-themes/qcca/components/form-field.scss +0 -0
  106. /package/{theming → src/theming}/prebuilt-themes/qcca/components/input.scss +0 -0
  107. /package/{theming → src/theming}/prebuilt-themes/qcca/components/list.scss +0 -0
  108. /package/{theming → src/theming}/prebuilt-themes/qcca/components/panel.scss +0 -0
  109. /package/{theming → src/theming}/prebuilt-themes/qcca/components/scrollbar.scss +0 -0
  110. /package/{theming → src/theming}/prebuilt-themes/qcca/components/search-bar.scss +0 -0
  111. /package/{theming → src/theming}/prebuilt-themes/qcca/components/search-bar.theme.scss +0 -0
  112. /package/{theming → src/theming}/typography.scss +0 -0
  113. /package/{theming → src/theming}/utils/_foreground.scss +0 -0
@@ -2,7 +2,7 @@ import { CommonModule } from '@angular/common';
2
2
  import * as i1 from '@angular/common/http';
3
3
  import { HTTP_INTERCEPTORS, HttpClient, HttpBackend, HttpErrorResponse, HttpClientModule, HttpResponse } from '@angular/common/http';
4
4
  import * as i0 from '@angular/core';
5
- import { Injectable, NgModule, InjectionToken, APP_INITIALIZER, Injector, Inject, Optional, SkipSelf, EventEmitter } from '@angular/core';
5
+ import { Injectable, NgModule, InjectionToken, APP_INITIALIZER, Injector, Inject, Optional, SkipSelf, ErrorHandler, EventEmitter } from '@angular/core';
6
6
  import * as i1$3 from '@angular/material/icon';
7
7
  import * as i2 from '@angular/platform-browser';
8
8
  import { HammerGestureConfig, HAMMER_GESTURE_CONFIG, HammerModule } from '@angular/platform-browser';
@@ -16,8 +16,10 @@ import { TranslateLoader, TranslateModule, MissingTranslationHandler } from '@ng
16
16
  import * as i1$2 from 'ngx-toastr';
17
17
  import { ToastrModule, ToastrService } from 'ngx-toastr';
18
18
  import * as i1$4 from '@angular/router';
19
+ import { Router } from '@angular/router';
19
20
  import * as i1$5 from '@angular/cdk/layout';
20
21
  import { Breakpoints } from '@angular/cdk/layout';
22
+ import { setUser, createErrorHandler, getCurrentHub, BrowserTracing, instrumentAngularRouting, Replay, init, TraceService } from '@sentry/angular-ivy';
21
23
 
22
24
  class ActivityService {
23
25
  counter$ = new BehaviorSubject(0);
@@ -37,15 +39,15 @@ class ActivityService {
37
39
  this.ids.splice(index, 1);
38
40
  this.counter$.next(this.ids.length);
39
41
  }
40
- static ɵfac = function ActivityService_Factory(t) { return new (t || ActivityService)(); };
41
- static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ActivityService, factory: ActivityService.ɵfac, providedIn: 'root' });
42
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActivityService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
43
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActivityService, providedIn: 'root' });
42
44
  }
43
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ActivityService, [{
44
- type: Injectable,
45
- args: [{
46
- providedIn: 'root'
47
- }]
48
- }], function () { return []; }, null); })();
45
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActivityService, decorators: [{
46
+ type: Injectable,
47
+ args: [{
48
+ providedIn: 'root'
49
+ }]
50
+ }], ctorParameters: function () { return []; } });
49
51
 
50
52
  class ActivityInterceptor {
51
53
  activityService;
@@ -67,12 +69,12 @@ class ActivityInterceptor {
67
69
  this.activityService.unregister(id);
68
70
  }));
69
71
  }
70
- static ɵfac = function ActivityInterceptor_Factory(t) { return new (t || ActivityInterceptor)(i0.ɵɵinject(ActivityService)); };
71
- static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ActivityInterceptor, factory: ActivityInterceptor.ɵfac });
72
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActivityInterceptor, deps: [{ token: ActivityService }], target: i0.ɵɵFactoryTarget.Injectable });
73
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActivityInterceptor });
72
74
  }
73
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ActivityInterceptor, [{
74
- type: Injectable
75
- }], function () { return [{ type: ActivityService }]; }, null); })();
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ActivityInterceptor, decorators: [{
76
+ type: Injectable
77
+ }], ctorParameters: function () { return [{ type: ActivityService }]; } });
76
78
 
77
79
  class IgoActivityModule {
78
80
  static forRoot() {
@@ -87,18 +89,18 @@ class IgoActivityModule {
87
89
  ]
88
90
  };
89
91
  }
90
- static ɵfac = function IgoActivityModule_Factory(t) { return new (t || IgoActivityModule)(); };
91
- static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoActivityModule });
92
- static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
92
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoActivityModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
93
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: IgoActivityModule });
94
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoActivityModule });
93
95
  }
94
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoActivityModule, [{
95
- type: NgModule,
96
- args: [{
97
- imports: [],
98
- declarations: [],
99
- exports: []
100
- }]
101
- }], null, null); })();
96
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoActivityModule, decorators: [{
97
+ type: NgModule,
98
+ args: [{
99
+ imports: [],
100
+ declarations: [],
101
+ exports: []
102
+ }]
103
+ }] });
102
104
 
103
105
  const CONFIG_DEPRECATED = {
104
106
  showMenuButton: {
@@ -128,14 +130,16 @@ const ALTERNATE_CONFIG_FROM_DEPRECATION = new Map(Object.entries(CONFIG_DEPRECAT
128
130
  ]));
129
131
 
130
132
  const version = {
131
- lib: '16.0.2',
132
- releaseDate: 1699370754368
133
+ lib: '16.1.0',
134
+ releaseDate: 1702401568243
133
135
  };
134
136
 
135
137
  class ConfigService {
136
138
  config;
137
139
  httpClient;
138
140
  configDeprecated = new Map(Object.entries(CONFIG_DEPRECATED));
141
+ _isLoaded$ = new BehaviorSubject(null);
142
+ isLoaded$ = this._isLoaded$.asObservable();
139
143
  constructor(handler) {
140
144
  this.httpClient = new HttpClient(handler);
141
145
  }
@@ -190,6 +194,7 @@ class ConfigService {
190
194
  const baseConfig = options.default;
191
195
  if (!options.path) {
192
196
  this.config = baseConfig;
197
+ this._isLoaded$.next(true);
193
198
  return true;
194
199
  }
195
200
  return new Promise((resolve, _reject) => {
@@ -202,19 +207,20 @@ class ConfigService {
202
207
  }))
203
208
  .subscribe((configResponse) => {
204
209
  this.config = ObjectUtils.mergeDeep(ObjectUtils.mergeDeep({ version }, baseConfig), configResponse);
210
+ this._isLoaded$.next(true);
205
211
  resolve(true);
206
212
  });
207
213
  });
208
214
  }
209
- static ɵfac = function ConfigService_Factory(t) { return new (t || ConfigService)(i0.ɵɵinject(i1.HttpBackend)); };
210
- static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ConfigService, factory: ConfigService.ɵfac, providedIn: 'root' });
215
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfigService, deps: [{ token: i1.HttpBackend }], target: i0.ɵɵFactoryTarget.Injectable });
216
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfigService, providedIn: 'root' });
211
217
  }
212
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ConfigService, [{
213
- type: Injectable,
214
- args: [{
215
- providedIn: 'root'
216
- }]
217
- }], function () { return [{ type: i1.HttpBackend }]; }, null); })();
218
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ConfigService, decorators: [{
219
+ type: Injectable,
220
+ args: [{
221
+ providedIn: 'root'
222
+ }]
223
+ }], ctorParameters: function () { return [{ type: i1.HttpBackend }]; } });
218
224
 
219
225
  let CONFIG_OPTIONS = new InjectionToken('configOptions');
220
226
  function provideConfigOptions(options) {
@@ -242,18 +248,18 @@ class IgoConfigModule {
242
248
  providers: [provideConfigOptions({}), provideConfigLoader()]
243
249
  };
244
250
  }
245
- static ɵfac = function IgoConfigModule_Factory(t) { return new (t || IgoConfigModule)(); };
246
- static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoConfigModule });
247
- static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
251
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoConfigModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
252
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: IgoConfigModule });
253
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoConfigModule });
248
254
  }
249
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoConfigModule, [{
250
- type: NgModule,
251
- args: [{
252
- imports: [],
253
- declarations: [],
254
- exports: []
255
- }]
256
- }], null, null); })();
255
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoConfigModule, decorators: [{
256
+ type: NgModule,
257
+ args: [{
258
+ imports: [],
259
+ declarations: [],
260
+ exports: []
261
+ }]
262
+ }] });
257
263
 
258
264
  class LanguageLoader {
259
265
  prefix;
@@ -324,31 +330,30 @@ class IgoLanguageModule {
324
330
  providers: [provideDefaultLanguageLoader()]
325
331
  };
326
332
  }
327
- static ɵfac = function IgoLanguageModule_Factory(t) { return new (t || IgoLanguageModule)(); };
328
- static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoLanguageModule });
329
- static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [TranslateModule.forRoot({
333
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoLanguageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
334
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: IgoLanguageModule, imports: [i1$1.TranslateModule], exports: [TranslateModule] });
335
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoLanguageModule, imports: [TranslateModule.forRoot({
330
336
  missingTranslationHandler: {
331
337
  provide: MissingTranslationHandler,
332
338
  useClass: IgoMissingTranslationHandler
333
339
  }
334
340
  }), TranslateModule] });
335
341
  }
336
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoLanguageModule, [{
337
- type: NgModule,
338
- args: [{
339
- imports: [
340
- TranslateModule.forRoot({
341
- missingTranslationHandler: {
342
- provide: MissingTranslationHandler,
343
- useClass: IgoMissingTranslationHandler
344
- }
345
- })
346
- ],
347
- declarations: [],
348
- exports: [TranslateModule]
349
- }]
350
- }], null, null); })();
351
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IgoLanguageModule, { imports: [i1$1.TranslateModule], exports: [TranslateModule] }); })();
342
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoLanguageModule, decorators: [{
343
+ type: NgModule,
344
+ args: [{
345
+ imports: [
346
+ TranslateModule.forRoot({
347
+ missingTranslationHandler: {
348
+ provide: MissingTranslationHandler,
349
+ useClass: IgoMissingTranslationHandler
350
+ }
351
+ })
352
+ ],
353
+ declarations: [],
354
+ exports: [TranslateModule]
355
+ }]
356
+ }] });
352
357
 
353
358
  class IgoMessageModule {
354
359
  static forRoot() {
@@ -357,9 +362,9 @@ class IgoMessageModule {
357
362
  providers: []
358
363
  };
359
364
  }
360
- static ɵfac = function IgoMessageModule_Factory(t) { return new (t || IgoMessageModule)(); };
361
- static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoMessageModule });
362
- static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
365
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoMessageModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
366
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: IgoMessageModule, imports: [CommonModule, i1$2.ToastrModule] });
367
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoMessageModule, imports: [CommonModule,
363
368
  ToastrModule.forRoot({
364
369
  positionClass: 'toast-bottom-right',
365
370
  timeOut: 10000,
@@ -377,33 +382,32 @@ class IgoMessageModule {
377
382
  includeTitleDuplicates: true
378
383
  })] });
379
384
  }
380
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoMessageModule, [{
381
- type: NgModule,
382
- args: [{
383
- imports: [
384
- CommonModule,
385
- ToastrModule.forRoot({
386
- positionClass: 'toast-bottom-right',
387
- timeOut: 10000,
388
- extendedTimeOut: 10000,
389
- titleClass: 'mat-subtitle-2',
390
- messageClass: 'toast-message',
391
- closeButton: true,
392
- progressBar: true,
393
- enableHtml: true,
394
- tapToDismiss: true,
395
- maxOpened: 4,
396
- preventDuplicates: true,
397
- resetTimeoutOnDuplicate: true,
398
- countDuplicates: false,
399
- includeTitleDuplicates: true
400
- })
401
- ],
402
- declarations: [],
403
- exports: []
404
- }]
405
- }], null, null); })();
406
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IgoMessageModule, { imports: [CommonModule, i1$2.ToastrModule] }); })();
385
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoMessageModule, decorators: [{
386
+ type: NgModule,
387
+ args: [{
388
+ imports: [
389
+ CommonModule,
390
+ ToastrModule.forRoot({
391
+ positionClass: 'toast-bottom-right',
392
+ timeOut: 10000,
393
+ extendedTimeOut: 10000,
394
+ titleClass: 'mat-subtitle-2',
395
+ messageClass: 'toast-message',
396
+ closeButton: true,
397
+ progressBar: true,
398
+ enableHtml: true,
399
+ tapToDismiss: true,
400
+ maxOpened: 4,
401
+ preventDuplicates: true,
402
+ resetTimeoutOnDuplicate: true,
403
+ countDuplicates: false,
404
+ includeTitleDuplicates: true
405
+ })
406
+ ],
407
+ declarations: [],
408
+ exports: []
409
+ }]
410
+ }] });
407
411
 
408
412
  class LanguageService {
409
413
  translate;
@@ -428,15 +432,15 @@ class LanguageService {
428
432
  this.language$.next(this.language);
429
433
  });
430
434
  }
431
- static ɵfac = function LanguageService_Factory(t) { return new (t || LanguageService)(i0.ɵɵinject(i1$1.TranslateService)); };
432
- static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: LanguageService, factory: LanguageService.ɵfac, providedIn: 'root' });
435
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LanguageService, deps: [{ token: i1$1.TranslateService }], target: i0.ɵɵFactoryTarget.Injectable });
436
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LanguageService, providedIn: 'root' });
433
437
  }
434
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LanguageService, [{
435
- type: Injectable,
436
- args: [{
437
- providedIn: 'root'
438
- }]
439
- }], function () { return [{ type: i1$1.TranslateService }]; }, null); })();
438
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LanguageService, decorators: [{
439
+ type: Injectable,
440
+ args: [{
441
+ providedIn: 'root'
442
+ }]
443
+ }], ctorParameters: function () { return [{ type: i1$1.TranslateService }]; } });
440
444
 
441
445
  var MessageType;
442
446
  (function (MessageType) {
@@ -649,18 +653,18 @@ class MessageService {
649
653
  message.title = undefined;
650
654
  return message;
651
655
  }
652
- static ɵfac = function MessageService_Factory(t) { return new (t || MessageService)(i0.ɵɵinject(Injector), i0.ɵɵinject(ConfigService), i0.ɵɵinject(LanguageService)); };
653
- static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: MessageService, factory: MessageService.ɵfac, providedIn: 'root' });
656
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageService, deps: [{ token: Injector }, { token: ConfigService }, { token: LanguageService }], target: i0.ɵɵFactoryTarget.Injectable });
657
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageService, providedIn: 'root' });
654
658
  }
655
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MessageService, [{
656
- type: Injectable,
657
- args: [{
658
- providedIn: 'root'
659
- }]
660
- }], function () { return [{ type: i0.Injector, decorators: [{
661
- type: Inject,
662
- args: [Injector]
663
- }] }, { type: ConfigService }, { type: LanguageService }]; }, null); })();
659
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MessageService, decorators: [{
660
+ type: Injectable,
661
+ args: [{
662
+ providedIn: 'root'
663
+ }]
664
+ }], ctorParameters: function () { return [{ type: i0.Injector, decorators: [{
665
+ type: Inject,
666
+ args: [Injector]
667
+ }] }, { type: ConfigService }, { type: LanguageService }]; } });
664
668
 
665
669
  class ErrorInterceptor {
666
670
  messageService;
@@ -717,15 +721,15 @@ class ErrorInterceptor {
717
721
  progressBar: false
718
722
  });
719
723
  }
720
- static ɵfac = function ErrorInterceptor_Factory(t) { return new (t || ErrorInterceptor)(i0.ɵɵinject(MessageService)); };
721
- static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: ErrorInterceptor, factory: ErrorInterceptor.ɵfac, providedIn: 'root' });
724
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ErrorInterceptor, deps: [{ token: MessageService }], target: i0.ɵɵFactoryTarget.Injectable });
725
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ErrorInterceptor, providedIn: 'root' });
722
726
  }
723
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ErrorInterceptor, [{
724
- type: Injectable,
725
- args: [{
726
- providedIn: 'root'
727
- }]
728
- }], function () { return [{ type: MessageService }]; }, null); })();
727
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ErrorInterceptor, decorators: [{
728
+ type: Injectable,
729
+ args: [{
730
+ providedIn: 'root'
731
+ }]
732
+ }], ctorParameters: function () { return [{ type: MessageService }]; } });
729
733
 
730
734
  class IgoErrorModule {
731
735
  static forRoot() {
@@ -745,22 +749,22 @@ class IgoErrorModule {
745
749
  throw new Error('IgoErrorModule is already loaded. Import it in the AppModule only');
746
750
  }
747
751
  }
748
- static ɵfac = function IgoErrorModule_Factory(t) { return new (t || IgoErrorModule)(i0.ɵɵinject(IgoErrorModule, 12)); };
749
- static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoErrorModule });
750
- static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
752
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoErrorModule, deps: [{ token: IgoErrorModule, optional: true, skipSelf: true }], target: i0.ɵɵFactoryTarget.NgModule });
753
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: IgoErrorModule });
754
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoErrorModule });
751
755
  }
752
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoErrorModule, [{
753
- type: NgModule,
754
- args: [{
755
- imports: [],
756
- declarations: [],
757
- exports: []
758
- }]
759
- }], function () { return [{ type: IgoErrorModule, decorators: [{
760
- type: Optional
761
- }, {
762
- type: SkipSelf
763
- }] }]; }, null); })();
756
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoErrorModule, decorators: [{
757
+ type: NgModule,
758
+ args: [{
759
+ imports: [],
760
+ declarations: [],
761
+ exports: []
762
+ }]
763
+ }], ctorParameters: function () { return [{ type: IgoErrorModule, decorators: [{
764
+ type: Optional
765
+ }, {
766
+ type: SkipSelf
767
+ }] }]; } });
764
768
 
765
769
  const dbConfig = {
766
770
  name: 'igo2DB',
@@ -801,9 +805,14 @@ class IgoCoreModule {
801
805
  constructor(matIconRegistry, domSanitizer) {
802
806
  matIconRegistry.addSvgIconSet(domSanitizer.bypassSecurityTrustResourceUrl('./assets/igo2/core/icons/mdi.svg'));
803
807
  }
804
- static ɵfac = function IgoCoreModule_Factory(t) { return new (t || IgoCoreModule)(i0.ɵɵinject(i1$3.MatIconRegistry), i0.ɵɵinject(i2.DomSanitizer)); };
805
- static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoCoreModule });
806
- static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
808
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoCoreModule, deps: [{ token: i1$3.MatIconRegistry }, { token: i2.DomSanitizer }], target: i0.ɵɵFactoryTarget.NgModule });
809
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: IgoCoreModule, imports: [CommonModule,
810
+ HttpClientModule, IgoActivityModule, IgoConfigModule, IgoErrorModule, IgoLanguageModule, IgoMessageModule, i8.NgxIndexedDBModule], exports: [IgoActivityModule,
811
+ IgoConfigModule,
812
+ IgoErrorModule,
813
+ IgoLanguageModule,
814
+ IgoMessageModule] });
815
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoCoreModule, imports: [CommonModule,
807
816
  HttpClientModule,
808
817
  IgoActivityModule.forRoot(),
809
818
  IgoConfigModule.forRoot(),
@@ -816,35 +825,29 @@ class IgoCoreModule {
816
825
  IgoLanguageModule,
817
826
  IgoMessageModule] });
818
827
  }
819
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoCoreModule, [{
820
- type: NgModule,
821
- args: [{
822
- imports: [
823
- CommonModule,
824
- HttpClientModule,
825
- IgoActivityModule.forRoot(),
826
- IgoConfigModule.forRoot(),
827
- IgoErrorModule.forRoot(),
828
- IgoLanguageModule.forRoot(),
829
- IgoMessageModule.forRoot(),
830
- NgxIndexedDBModule.forRoot(dbConfig)
831
- ],
832
- declarations: [],
833
- exports: [
834
- IgoActivityModule,
835
- IgoConfigModule,
836
- IgoErrorModule,
837
- IgoLanguageModule,
838
- IgoMessageModule
839
- ]
840
- }]
841
- }], function () { return [{ type: i1$3.MatIconRegistry }, { type: i2.DomSanitizer }]; }, null); })();
842
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IgoCoreModule, { imports: [CommonModule,
843
- HttpClientModule, IgoActivityModule, IgoConfigModule, IgoErrorModule, IgoLanguageModule, IgoMessageModule, i8.NgxIndexedDBModule], exports: [IgoActivityModule,
844
- IgoConfigModule,
845
- IgoErrorModule,
846
- IgoLanguageModule,
847
- IgoMessageModule] }); })();
828
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoCoreModule, decorators: [{
829
+ type: NgModule,
830
+ args: [{
831
+ imports: [
832
+ CommonModule,
833
+ HttpClientModule,
834
+ IgoActivityModule.forRoot(),
835
+ IgoConfigModule.forRoot(),
836
+ IgoErrorModule.forRoot(),
837
+ IgoLanguageModule.forRoot(),
838
+ IgoMessageModule.forRoot(),
839
+ NgxIndexedDBModule.forRoot(dbConfig)
840
+ ],
841
+ declarations: [],
842
+ exports: [
843
+ IgoActivityModule,
844
+ IgoConfigModule,
845
+ IgoErrorModule,
846
+ IgoLanguageModule,
847
+ IgoMessageModule
848
+ ]
849
+ }]
850
+ }], ctorParameters: function () { return [{ type: i1$3.MatIconRegistry }, { type: i2.DomSanitizer }]; } });
848
851
 
849
852
  class IgoGestureConfig extends HammerGestureConfig {
850
853
  buildHammer(element) {
@@ -852,12 +855,12 @@ class IgoGestureConfig extends HammerGestureConfig {
852
855
  mc.set({ touchAction: 'pan-y' });
853
856
  return mc;
854
857
  }
855
- static ɵfac = /*@__PURE__*/ function () { let ɵIgoGestureConfig_BaseFactory; return function IgoGestureConfig_Factory(t) { return (ɵIgoGestureConfig_BaseFactory || (ɵIgoGestureConfig_BaseFactory = i0.ɵɵgetInheritedFactory(IgoGestureConfig)))(t || IgoGestureConfig); }; }();
856
- static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: IgoGestureConfig, factory: IgoGestureConfig.ɵfac });
858
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoGestureConfig, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
859
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoGestureConfig });
857
860
  }
858
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoGestureConfig, [{
859
- type: Injectable
860
- }], null, null); })();
861
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoGestureConfig, decorators: [{
862
+ type: Injectable
863
+ }] });
861
864
 
862
865
  class IgoGestureModule {
863
866
  static forRoot() {
@@ -871,19 +874,18 @@ class IgoGestureModule {
871
874
  ]
872
875
  };
873
876
  }
874
- static ɵfac = function IgoGestureModule_Factory(t) { return new (t || IgoGestureModule)(); };
875
- static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoGestureModule });
876
- static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [HammerModule] });
877
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoGestureModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
878
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: IgoGestureModule, imports: [HammerModule] });
879
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoGestureModule, imports: [HammerModule] });
877
880
  }
878
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoGestureModule, [{
879
- type: NgModule,
880
- args: [{
881
- imports: [HammerModule],
882
- declarations: [],
883
- exports: []
884
- }]
885
- }], null, null); })();
886
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(IgoGestureModule, { imports: [HammerModule] }); })();
881
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoGestureModule, decorators: [{
882
+ type: NgModule,
883
+ args: [{
884
+ imports: [HammerModule],
885
+ declarations: [],
886
+ exports: []
887
+ }]
888
+ }] });
887
889
 
888
890
  class LoggingInterceptor {
889
891
  intercept(req, next) {
@@ -903,12 +905,12 @@ class LoggingInterceptor {
903
905
  console.log(msg);
904
906
  }));
905
907
  }
906
- static ɵfac = function LoggingInterceptor_Factory(t) { return new (t || LoggingInterceptor)(); };
907
- static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: LoggingInterceptor, factory: LoggingInterceptor.ɵfac });
908
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoggingInterceptor, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
909
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoggingInterceptor });
908
910
  }
909
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoggingInterceptor, [{
910
- type: Injectable
911
- }], null, null); })();
911
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoggingInterceptor, decorators: [{
912
+ type: Injectable
913
+ }] });
912
914
 
913
915
  class IgoLoggingModule {
914
916
  static forRoot() {
@@ -923,18 +925,18 @@ class IgoLoggingModule {
923
925
  ]
924
926
  };
925
927
  }
926
- static ɵfac = function IgoLoggingModule_Factory(t) { return new (t || IgoLoggingModule)(); };
927
- static ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: IgoLoggingModule });
928
- static ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({});
928
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoLoggingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
929
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: IgoLoggingModule });
930
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoLoggingModule });
929
931
  }
930
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(IgoLoggingModule, [{
931
- type: NgModule,
932
- args: [{
933
- imports: [],
934
- declarations: [],
935
- exports: []
936
- }]
937
- }], null, null); })();
932
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: IgoLoggingModule, decorators: [{
933
+ type: NgModule,
934
+ args: [{
935
+ imports: [],
936
+ declarations: [],
937
+ exports: []
938
+ }]
939
+ }] });
938
940
 
939
941
  let ROUTE_SERVICE_OPTIONS = new InjectionToken('routeServiceOptions');
940
942
  function provideRouteServiceOptions(options) {
@@ -992,20 +994,20 @@ class RouteService {
992
994
  }
993
995
  return this.route.queryParams;
994
996
  }
995
- static ɵfac = function RouteService_Factory(t) { return new (t || RouteService)(i0.ɵɵinject(i1$4.Router), i0.ɵɵinject(i1$4.ActivatedRoute), i0.ɵɵinject(ROUTE_SERVICE_OPTIONS, 8)); };
996
- static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: RouteService, factory: RouteService.ɵfac, providedIn: 'root' });
997
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouteService, deps: [{ token: i1$4.Router }, { token: i1$4.ActivatedRoute }, { token: ROUTE_SERVICE_OPTIONS, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
998
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouteService, providedIn: 'root' });
997
999
  }
998
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RouteService, [{
999
- type: Injectable,
1000
- args: [{
1001
- providedIn: 'root'
1002
- }]
1003
- }], function () { return [{ type: i1$4.Router }, { type: i1$4.ActivatedRoute }, { type: undefined, decorators: [{
1004
- type: Inject,
1005
- args: [ROUTE_SERVICE_OPTIONS]
1006
- }, {
1007
- type: Optional
1008
- }] }]; }, null); })();
1000
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RouteService, decorators: [{
1001
+ type: Injectable,
1002
+ args: [{
1003
+ providedIn: 'root'
1004
+ }]
1005
+ }], ctorParameters: function () { return [{ type: i1$4.Router }, { type: i1$4.ActivatedRoute }, { type: undefined, decorators: [{
1006
+ type: Inject,
1007
+ args: [ROUTE_SERVICE_OPTIONS]
1008
+ }, {
1009
+ type: Optional
1010
+ }] }]; } });
1009
1011
 
1010
1012
  class AnalyticsService {
1011
1013
  config;
@@ -1041,6 +1043,9 @@ class AnalyticsService {
1041
1043
  s.parentNode.insertBefore(g, s);
1042
1044
  })();
1043
1045
  }
1046
+ /**
1047
+ * Pass `null` to unset the user.
1048
+ */
1044
1049
  setUser(user, profils) {
1045
1050
  if (this.options.provider === 'matomo') {
1046
1051
  if (!user) {
@@ -1077,15 +1082,15 @@ class AnalyticsService {
1077
1082
  if (this.options.provider === 'matomo')
1078
1083
  this.paq.push(['trackEvent', category, action, parameters]);
1079
1084
  }
1080
- static ɵfac = function AnalyticsService_Factory(t) { return new (t || AnalyticsService)(i0.ɵɵinject(ConfigService)); };
1081
- static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: AnalyticsService, factory: AnalyticsService.ɵfac, providedIn: 'root' });
1085
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnalyticsService, deps: [{ token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
1086
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnalyticsService, providedIn: 'root' });
1082
1087
  }
1083
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AnalyticsService, [{
1084
- type: Injectable,
1085
- args: [{
1086
- providedIn: 'root'
1087
- }]
1088
- }], function () { return [{ type: ConfigService }]; }, null); })();
1088
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AnalyticsService, decorators: [{
1089
+ type: Injectable,
1090
+ args: [{
1091
+ providedIn: 'root'
1092
+ }]
1093
+ }], ctorParameters: function () { return [{ type: ConfigService }]; } });
1089
1094
 
1090
1095
  var Media;
1091
1096
  (function (Media) {
@@ -1165,15 +1170,97 @@ class MediaService {
1165
1170
  const media = this.getMedia();
1166
1171
  return media === 'desktop';
1167
1172
  }
1168
- static ɵfac = function MediaService_Factory(t) { return new (t || MediaService)(i0.ɵɵinject(i1$5.BreakpointObserver)); };
1169
- static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: MediaService, factory: MediaService.ɵfac, providedIn: 'root' });
1173
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MediaService, deps: [{ token: i1$5.BreakpointObserver }], target: i0.ɵɵFactoryTarget.Injectable });
1174
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MediaService, providedIn: 'root' });
1175
+ }
1176
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: MediaService, decorators: [{
1177
+ type: Injectable,
1178
+ args: [{
1179
+ providedIn: 'root'
1180
+ }]
1181
+ }], ctorParameters: function () { return [{ type: i1$5.BreakpointObserver }]; } });
1182
+
1183
+ const isTracingEnabled = (options) => options.enableTracing || !!options.tracesSampleRate || !!options.tracesSampler;
1184
+ const identifySentryUser = (user) => {
1185
+ setUser(user
1186
+ ? {
1187
+ id: user.id,
1188
+ username: `${user.firstName} ${user.lastName}`,
1189
+ email: user.email
1190
+ }
1191
+ : null);
1192
+ };
1193
+
1194
+ const createSentryErrorHandler = (options) => {
1195
+ return createErrorHandler({
1196
+ logErrors: options.logErrors,
1197
+ ...(options.errorHandlerOptions ?? {})
1198
+ });
1199
+ };
1200
+ const initSentry = (options) => {
1201
+ const client = getCurrentHub().getClient();
1202
+ if (client) {
1203
+ return;
1204
+ }
1205
+ const tracingEnabled = isTracingEnabled(options);
1206
+ const baseConfig = {
1207
+ dsn: options.dsn,
1208
+ environment: options.environment,
1209
+ release: options.release,
1210
+ integrations: [
1211
+ tracingEnabled &&
1212
+ new BrowserTracing({
1213
+ routingInstrumentation: instrumentAngularRouting
1214
+ }),
1215
+ options.enableReplay && new Replay()
1216
+ ].filter(Boolean)
1217
+ };
1218
+ init(baseConfig);
1219
+ };
1220
+
1221
+ const provideSentryMonitoring = (options) => {
1222
+ const isEnabled = options.enabled !== undefined ? options.enabled : true;
1223
+ if (!isEnabled) {
1224
+ return [];
1225
+ }
1226
+ initSentry(options);
1227
+ const tracingEnabled = isTracingEnabled(options);
1228
+ return [
1229
+ {
1230
+ provide: ErrorHandler,
1231
+ useFactory: () => createSentryErrorHandler(options)
1232
+ },
1233
+ tracingEnabled && {
1234
+ provide: TraceService,
1235
+ deps: [Router]
1236
+ },
1237
+ // Force instantiate TraceService to avoid require it in any constructor.
1238
+ tracingEnabled && {
1239
+ provide: APP_INITIALIZER,
1240
+ useFactory: () => () => { },
1241
+ deps: [TraceService],
1242
+ multi: true
1243
+ }
1244
+ ].filter(Boolean);
1245
+ };
1246
+
1247
+ const MONITORING_OPTIONS = new InjectionToken('monitoring.options');
1248
+ function provideMonitoring(options) {
1249
+ if (!options) {
1250
+ return [];
1251
+ }
1252
+ const providers = [
1253
+ { provide: MONITORING_OPTIONS, useValue: options }
1254
+ ];
1255
+ switch (options.provider) {
1256
+ case 'sentry':
1257
+ providers.push(...provideSentryMonitoring(options));
1258
+ break;
1259
+ default:
1260
+ break;
1261
+ }
1262
+ return providers;
1170
1263
  }
1171
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(MediaService, [{
1172
- type: Injectable,
1173
- args: [{
1174
- providedIn: 'root'
1175
- }]
1176
- }], function () { return [{ type: i1$5.BreakpointObserver }]; }, null); })();
1177
1264
 
1178
1265
  var StorageScope;
1179
1266
  (function (StorageScope) {
@@ -1268,15 +1355,15 @@ class StorageService extends BaseStorage {
1268
1355
  super(config);
1269
1356
  this.config = config;
1270
1357
  }
1271
- static ɵfac = function StorageService_Factory(t) { return new (t || StorageService)(i0.ɵɵinject(ConfigService)); };
1272
- static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: StorageService, factory: StorageService.ɵfac, providedIn: 'root' });
1358
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StorageService, deps: [{ token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
1359
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StorageService, providedIn: 'root' });
1273
1360
  }
1274
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StorageService, [{
1275
- type: Injectable,
1276
- args: [{
1277
- providedIn: 'root'
1278
- }]
1279
- }], function () { return [{ type: ConfigService }]; }, null); })();
1361
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: StorageService, decorators: [{
1362
+ type: Injectable,
1363
+ args: [{
1364
+ providedIn: 'root'
1365
+ }]
1366
+ }], ctorParameters: function () { return [{ type: ConfigService }]; } });
1280
1367
 
1281
1368
  function getNumber(v, endposition, length) {
1282
1369
  /* tslint:disable:no-bitwise*/
@@ -1407,15 +1494,15 @@ class CompressionService {
1407
1494
  return out;
1408
1495
  /* tslint:enable:no-bitwise*/
1409
1496
  }
1410
- static ɵfac = function CompressionService_Factory(t) { return new (t || CompressionService)(); };
1411
- static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: CompressionService, factory: CompressionService.ɵfac, providedIn: 'root' });
1497
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CompressionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
1498
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CompressionService, providedIn: 'root' });
1412
1499
  }
1413
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CompressionService, [{
1414
- type: Injectable,
1415
- args: [{
1416
- providedIn: 'root'
1417
- }]
1418
- }], function () { return []; }, null); })();
1500
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CompressionService, decorators: [{
1501
+ type: Injectable,
1502
+ args: [{
1503
+ providedIn: 'root'
1504
+ }]
1505
+ }], ctorParameters: function () { return []; } });
1419
1506
 
1420
1507
  class NetworkService {
1421
1508
  messageService;
@@ -1467,15 +1554,15 @@ class NetworkService {
1467
1554
  ? this.stateChangeEventEmitter.pipe(debounceTime(300), startWith(this.state))
1468
1555
  : this.stateChangeEventEmitter.pipe(debounceTime(300));
1469
1556
  }
1470
- static ɵfac = function NetworkService_Factory(t) { return new (t || NetworkService)(i0.ɵɵinject(MessageService), i0.ɵɵinject(i0.Injector)); };
1471
- static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: NetworkService, factory: NetworkService.ɵfac, providedIn: 'root' });
1557
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NetworkService, deps: [{ token: MessageService }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
1558
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NetworkService, providedIn: 'root' });
1472
1559
  }
1473
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(NetworkService, [{
1474
- type: Injectable,
1475
- args: [{
1476
- providedIn: 'root'
1477
- }]
1478
- }], function () { return [{ type: MessageService }, { type: i0.Injector }]; }, null); })();
1560
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: NetworkService, decorators: [{
1561
+ type: Injectable,
1562
+ args: [{
1563
+ providedIn: 'root'
1564
+ }]
1565
+ }], ctorParameters: function () { return [{ type: MessageService }, { type: i0.Injector }]; } });
1479
1566
 
1480
1567
  class RegexService {
1481
1568
  config;
@@ -1493,15 +1580,15 @@ class RegexService {
1493
1580
  }
1494
1581
  return;
1495
1582
  }
1496
- static ɵfac = function RegexService_Factory(t) { return new (t || RegexService)(i0.ɵɵinject(ConfigService)); };
1497
- static ɵprov = /*@__PURE__*/ i0.ɵɵdefineInjectable({ token: RegexService, factory: RegexService.ɵfac, providedIn: 'root' });
1583
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RegexService, deps: [{ token: ConfigService }], target: i0.ɵɵFactoryTarget.Injectable });
1584
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RegexService, providedIn: 'root' });
1498
1585
  }
1499
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RegexService, [{
1500
- type: Injectable,
1501
- args: [{
1502
- providedIn: 'root'
1503
- }]
1504
- }], function () { return [{ type: ConfigService }]; }, null); })();
1586
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: RegexService, decorators: [{
1587
+ type: Injectable,
1588
+ args: [{
1589
+ providedIn: 'root'
1590
+ }]
1591
+ }], ctorParameters: function () { return [{ type: ConfigService }]; } });
1505
1592
 
1506
1593
  /*
1507
1594
  * Public API Surface of core
@@ -1511,5 +1598,5 @@ class RegexService {
1511
1598
  * Generated bundle index. Do not edit.
1512
1599
  */
1513
1600
 
1514
- export { ActivityInterceptor, ActivityService, AnalyticsService, BaseStorage, CONFIG_OPTIONS, CompressionService, ConfigService, ErrorInterceptor, IgoActivityModule, IgoConfigModule, IgoCoreModule, IgoErrorModule, IgoGestureConfig, IgoGestureModule, IgoLanguageModule, IgoLoggingModule, IgoMessageModule, IgoMissingTranslationHandler, LanguageLoader, LanguageService, LoggingInterceptor, Media, MediaOrientation, MediaService, MessageService, MessageType, NetworkService, ROUTE_SERVICE_OPTIONS, RegexService, RouteService, StorageScope, StorageService, StorageServiceEventEnum, configFactory, defaultLanguageLoader, provideConfigLoader, provideConfigOptions, provideDefaultLanguageLoader, provideLanguageLoader, provideRouteServiceOptions, version };
1601
+ export { ActivityInterceptor, ActivityService, AnalyticsService, BaseStorage, CONFIG_OPTIONS, CompressionService, ConfigService, ErrorInterceptor, IgoActivityModule, IgoConfigModule, IgoCoreModule, IgoErrorModule, IgoGestureConfig, IgoGestureModule, IgoLanguageModule, IgoLoggingModule, IgoMessageModule, IgoMissingTranslationHandler, LanguageLoader, LanguageService, LoggingInterceptor, MONITORING_OPTIONS, Media, MediaOrientation, MediaService, MessageService, MessageType, NetworkService, ROUTE_SERVICE_OPTIONS, RegexService, RouteService, StorageScope, StorageService, StorageServiceEventEnum, configFactory, defaultLanguageLoader, identifySentryUser, isTracingEnabled, provideConfigLoader, provideConfigOptions, provideDefaultLanguageLoader, provideLanguageLoader, provideMonitoring, provideRouteServiceOptions, provideSentryMonitoring, version };
1515
1602
  //# sourceMappingURL=igo2-core.mjs.map