@posiwise/common-services 0.1.88 → 0.1.89
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.
- package/fesm2022/posiwise-common-services.mjs +146 -182
- package/fesm2022/posiwise-common-services.mjs.map +1 -1
- package/lib/user.service.d.ts +1 -0
- package/package.json +8 -10
- package/esm2022/index.mjs +0 -47
- package/esm2022/lib/ab-test.service.mjs +0 -55
- package/esm2022/lib/ahoy.service.mjs +0 -93
- package/esm2022/lib/auth.service.mjs +0 -322
- package/esm2022/lib/base-http.service.mjs +0 -98
- package/esm2022/lib/brain-api-http.service.mjs +0 -26
- package/esm2022/lib/brain.service.mjs +0 -21
- package/esm2022/lib/common-services.interface.mjs +0 -2
- package/esm2022/lib/common-services.module.mjs +0 -23
- package/esm2022/lib/common.service.mjs +0 -134
- package/esm2022/lib/custom-preloading.service.mjs +0 -38
- package/esm2022/lib/dashboard.service.mjs +0 -21
- package/esm2022/lib/data.service.mjs +0 -21
- package/esm2022/lib/date-formatter.service.mjs +0 -82
- package/esm2022/lib/effects/user.effects.mjs +0 -27
- package/esm2022/lib/form-helper.service.mjs +0 -27
- package/esm2022/lib/geo.service.mjs +0 -40
- package/esm2022/lib/google-analytics.service.mjs +0 -121
- package/esm2022/lib/group.service.mjs +0 -122
- package/esm2022/lib/hopscotch.service.mjs +0 -48
- package/esm2022/lib/integrations-api-http.service.mjs +0 -28
- package/esm2022/lib/link-loader.service.mjs +0 -50
- package/esm2022/lib/local-storage.service.mjs +0 -32
- package/esm2022/lib/logo-caching.service.mjs +0 -65
- package/esm2022/lib/mailbox.service.mjs +0 -66
- package/esm2022/lib/main-api-http.service.mjs +0 -26
- package/esm2022/lib/notification.service.mjs +0 -70
- package/esm2022/lib/number-picker.service.mjs +0 -43
- package/esm2022/lib/permission.service.mjs +0 -252
- package/esm2022/lib/primeNgHelper.mjs +0 -18
- package/esm2022/lib/product.service.mjs +0 -78
- package/esm2022/lib/profile.service.mjs +0 -64
- package/esm2022/lib/qualification.service.mjs +0 -29
- package/esm2022/lib/script-loader.service.mjs +0 -79
- package/esm2022/lib/secure-token-storage.service.mjs +0 -264
- package/esm2022/lib/sentry.service.mjs +0 -384
- package/esm2022/lib/seo.service.mjs +0 -43
- package/esm2022/lib/socket.service.mjs +0 -29
- package/esm2022/lib/subscription.service.mjs +0 -129
- package/esm2022/lib/tag.service.mjs +0 -101
- package/esm2022/lib/tips.service.mjs +0 -38
- package/esm2022/lib/toast.service.mjs +0 -85
- package/esm2022/lib/user.service.mjs +0 -202
- package/esm2022/lib/validation.service.mjs +0 -36
- package/esm2022/lib/window.service.mjs +0 -20
- package/esm2022/posiwise-common-services.mjs +0 -5
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { Inject, Injectable, isDevMode, inject, NgModule, ViewEncapsulation } from '@angular/core';
|
|
3
3
|
import * as i3 from '@angular/router';
|
|
4
4
|
import { NavigationEnd } from '@angular/router';
|
|
5
5
|
import * as i1 from '@posiwise/app-config-service';
|
|
@@ -29,7 +29,7 @@ import { NgbDateParserFormatter } from '@ng-bootstrap/ng-bootstrap';
|
|
|
29
29
|
import { webSocket } from 'rxjs/webSocket';
|
|
30
30
|
import { StatusCodes } from 'http-status-codes';
|
|
31
31
|
import { fromError } from 'stacktrace-js';
|
|
32
|
-
import { createErrorHandler, init,
|
|
32
|
+
import { createErrorHandler, init, withScope, captureException } from '@sentry/angular';
|
|
33
33
|
|
|
34
34
|
class ScriptLoaderService {
|
|
35
35
|
constructor(document) {
|
|
@@ -94,10 +94,10 @@ class ScriptLoaderService {
|
|
|
94
94
|
style.href = styleUrl;
|
|
95
95
|
head.appendChild(style);
|
|
96
96
|
}
|
|
97
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
98
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
97
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ScriptLoaderService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
98
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ScriptLoaderService, providedIn: 'root' }); }
|
|
99
99
|
}
|
|
100
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
100
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ScriptLoaderService, decorators: [{
|
|
101
101
|
type: Injectable,
|
|
102
102
|
args: [{
|
|
103
103
|
providedIn: 'root'
|
|
@@ -213,10 +213,10 @@ class GoogleAnalyticsService {
|
|
|
213
213
|
this.subscription.unsubscribe();
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
217
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
216
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: GoogleAnalyticsService, deps: [{ token: i3.Router }, { token: ScriptLoaderService }, { token: i1.AppConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
217
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: GoogleAnalyticsService }); }
|
|
218
218
|
}
|
|
219
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: GoogleAnalyticsService, decorators: [{
|
|
220
220
|
type: Injectable
|
|
221
221
|
}], ctorParameters: () => [{ type: i3.Router }, { type: ScriptLoaderService }, { type: i1.AppConfigService }] });
|
|
222
222
|
|
|
@@ -290,10 +290,10 @@ class CustomToastService {
|
|
|
290
290
|
this.error(message);
|
|
291
291
|
}
|
|
292
292
|
}
|
|
293
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
294
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
293
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: CustomToastService, deps: [{ token: i1$1.ToastrService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
294
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: CustomToastService, providedIn: 'root' }); }
|
|
295
295
|
}
|
|
296
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
296
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: CustomToastService, decorators: [{
|
|
297
297
|
type: Injectable,
|
|
298
298
|
args: [{
|
|
299
299
|
providedIn: 'root'
|
|
@@ -384,10 +384,10 @@ class BaseHttpService {
|
|
|
384
384
|
this.toast.showToast(error);
|
|
385
385
|
}
|
|
386
386
|
}
|
|
387
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
388
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
387
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: BaseHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
388
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: BaseHttpService }); }
|
|
389
389
|
}
|
|
390
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
390
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: BaseHttpService, decorators: [{
|
|
391
391
|
type: Injectable
|
|
392
392
|
}], ctorParameters: () => [{ type: i1$2.HttpClient }, { type: i0.Injector }] });
|
|
393
393
|
|
|
@@ -402,10 +402,10 @@ class IntegrationsApiHttpService extends BaseHttpService {
|
|
|
402
402
|
: config?.['links']?.integrations_api;
|
|
403
403
|
});
|
|
404
404
|
}
|
|
405
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
406
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
405
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: IntegrationsApiHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
406
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: IntegrationsApiHttpService, providedIn: 'root' }); }
|
|
407
407
|
}
|
|
408
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
408
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: IntegrationsApiHttpService, decorators: [{
|
|
409
409
|
type: Injectable,
|
|
410
410
|
args: [{
|
|
411
411
|
providedIn: 'root'
|
|
@@ -431,10 +431,10 @@ class LocalStorage {
|
|
|
431
431
|
getItem(key) {
|
|
432
432
|
return localStorage.getItem(key);
|
|
433
433
|
}
|
|
434
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
435
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
434
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: LocalStorage, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
435
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: LocalStorage, providedIn: 'root' }); }
|
|
436
436
|
}
|
|
437
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
437
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: LocalStorage, decorators: [{
|
|
438
438
|
type: Injectable,
|
|
439
439
|
args: [{
|
|
440
440
|
providedIn: 'root'
|
|
@@ -450,10 +450,10 @@ class MainApiHttpService extends BaseHttpService {
|
|
|
450
450
|
this.baseUrl = isDevMode() ? MAIN_API_PREFIX : config?.['links']?.main_api;
|
|
451
451
|
});
|
|
452
452
|
}
|
|
453
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
454
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
453
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: MainApiHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
454
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: MainApiHttpService, providedIn: 'root' }); }
|
|
455
455
|
}
|
|
456
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
456
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: MainApiHttpService, decorators: [{
|
|
457
457
|
type: Injectable,
|
|
458
458
|
args: [{
|
|
459
459
|
providedIn: 'root'
|
|
@@ -707,10 +707,10 @@ class SecureTokenStorageService {
|
|
|
707
707
|
this.phonegapTokenSubject.next(phonegapToken);
|
|
708
708
|
}
|
|
709
709
|
}
|
|
710
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
711
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
710
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SecureTokenStorageService, deps: [{ token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
711
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SecureTokenStorageService, providedIn: 'root' }); }
|
|
712
712
|
}
|
|
713
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
713
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SecureTokenStorageService, decorators: [{
|
|
714
714
|
type: Injectable,
|
|
715
715
|
args: [{
|
|
716
716
|
providedIn: 'root'
|
|
@@ -769,10 +769,10 @@ class ProfileService {
|
|
|
769
769
|
postLinks(data) {
|
|
770
770
|
return this.api.post('/user_links', data);
|
|
771
771
|
}
|
|
772
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
773
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
772
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ProfileService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
773
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ProfileService, providedIn: 'root' }); }
|
|
774
774
|
}
|
|
775
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
775
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ProfileService, decorators: [{
|
|
776
776
|
type: Injectable,
|
|
777
777
|
args: [{
|
|
778
778
|
providedIn: 'root'
|
|
@@ -824,8 +824,7 @@ class UserService {
|
|
|
824
824
|
this.isTosModalOpen = true;
|
|
825
825
|
const mainTosId = config?.['main_tos_id'] ?? null;
|
|
826
826
|
const tosUrl = mainTosId ? `/privacy-and-tos/${mainTosId}` : '/privacy-and-tos';
|
|
827
|
-
|
|
828
|
-
.fire({
|
|
827
|
+
swal.fire({
|
|
829
828
|
icon: 'info',
|
|
830
829
|
title: 'Accept Terms of Service',
|
|
831
830
|
html: `By clicking continue, you agree to the terms of our <a href="${tosUrl}" target="_blank" rel="noopener noreferrer">Privacy Policy and Platform Agreement</a>.`,
|
|
@@ -835,8 +834,7 @@ class UserService {
|
|
|
835
834
|
showCancelButton: false,
|
|
836
835
|
reverseButtons: false,
|
|
837
836
|
focusConfirm: true
|
|
838
|
-
})
|
|
839
|
-
.then(result => {
|
|
837
|
+
}).then(result => {
|
|
840
838
|
if (!result.isConfirmed) {
|
|
841
839
|
// Modal cannot really be dismissed without confirmation due to config above,
|
|
842
840
|
// but guard just in case.
|
|
@@ -856,25 +854,26 @@ class UserService {
|
|
|
856
854
|
this.isTosModalOpen = false;
|
|
857
855
|
},
|
|
858
856
|
error: err => {
|
|
859
|
-
|
|
860
|
-
void swal
|
|
861
|
-
.fire({
|
|
862
|
-
icon: 'error',
|
|
863
|
-
title: 'Unable to record acceptance',
|
|
864
|
-
text: message,
|
|
865
|
-
confirmButtonText: 'Try again',
|
|
866
|
-
allowOutsideClick: false,
|
|
867
|
-
allowEscapeKey: false
|
|
868
|
-
})
|
|
869
|
-
.then(() => {
|
|
870
|
-
this.isTosModalOpen = false;
|
|
871
|
-
this.checkAndHandleTosAcceptance(user);
|
|
872
|
-
});
|
|
857
|
+
this.handleTosAcceptanceError(err, user);
|
|
873
858
|
}
|
|
874
859
|
});
|
|
875
860
|
});
|
|
876
861
|
});
|
|
877
862
|
}
|
|
863
|
+
handleTosAcceptanceError(err, user) {
|
|
864
|
+
const message = HelperService.getErrorMessage(err?.error ?? err);
|
|
865
|
+
swal.fire({
|
|
866
|
+
icon: 'error',
|
|
867
|
+
title: 'Unable to record acceptance',
|
|
868
|
+
text: message,
|
|
869
|
+
confirmButtonText: 'Try again',
|
|
870
|
+
allowOutsideClick: false,
|
|
871
|
+
allowEscapeKey: false
|
|
872
|
+
}).then(() => {
|
|
873
|
+
this.isTosModalOpen = false;
|
|
874
|
+
this.checkAndHandleTosAcceptance(user);
|
|
875
|
+
});
|
|
876
|
+
}
|
|
878
877
|
followUser(id) {
|
|
879
878
|
return this.api.post(`${this.endpoint}/toggle_relationship/${id}`);
|
|
880
879
|
}
|
|
@@ -950,10 +949,10 @@ class UserService {
|
|
|
950
949
|
refreshUserApiTokens() {
|
|
951
950
|
return this.api.get(`${this.endpoint}/refresh_user_api_tokens`);
|
|
952
951
|
}
|
|
953
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
954
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
952
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: UserService, deps: [{ token: MainApiHttpService }, { token: i2.Store }, { token: i3.Router }, { token: i1.AppConfigService }, { token: ProfileService }, { token: CustomToastService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
953
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: UserService, providedIn: 'root' }); }
|
|
955
954
|
}
|
|
956
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
955
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: UserService, decorators: [{
|
|
957
956
|
type: Injectable,
|
|
958
957
|
args: [{
|
|
959
958
|
providedIn: 'root'
|
|
@@ -1248,10 +1247,10 @@ class AuthService {
|
|
|
1248
1247
|
}
|
|
1249
1248
|
});
|
|
1250
1249
|
}
|
|
1251
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1252
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1250
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AuthService, deps: [{ token: LocalStorage }, { token: SecureTokenStorageService }, { token: i3.Router }, { token: MainApiHttpService }, { token: UserService }, { token: CustomToastService }, { token: i1.AppConfigService }, { token: IntegrationsApiHttpService }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1251
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AuthService }); }
|
|
1253
1252
|
}
|
|
1254
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AuthService, decorators: [{
|
|
1255
1254
|
type: Injectable
|
|
1256
1255
|
}], ctorParameters: () => [{ type: LocalStorage }, { type: SecureTokenStorageService }, { type: i3.Router }, { type: MainApiHttpService }, { type: UserService }, { type: CustomToastService }, { type: i1.AppConfigService }, { type: IntegrationsApiHttpService }, { type: Document, decorators: [{
|
|
1257
1256
|
type: Inject,
|
|
@@ -1271,19 +1270,19 @@ class UserEffects {
|
|
|
1271
1270
|
)));
|
|
1272
1271
|
});
|
|
1273
1272
|
}
|
|
1274
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1275
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1273
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: UserEffects, deps: [{ token: UserService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1274
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: UserEffects }); }
|
|
1276
1275
|
}
|
|
1277
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1276
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: UserEffects, decorators: [{
|
|
1278
1277
|
type: Injectable
|
|
1279
1278
|
}], ctorParameters: () => [{ type: UserService }] });
|
|
1280
1279
|
|
|
1281
1280
|
class CommonServicesModule {
|
|
1282
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1283
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1284
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1281
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: CommonServicesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
1282
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.17", ngImport: i0, type: CommonServicesModule, imports: [CommonModule, i1$3.EffectsRootModule, i2.StoreRootModule] }); }
|
|
1283
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: CommonServicesModule, providers: [AuthService], imports: [CommonModule, EffectsModule.forRoot([UserEffects]), StoreModule.forRoot(appReducers)] }); }
|
|
1285
1284
|
}
|
|
1286
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1285
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: CommonServicesModule, decorators: [{
|
|
1287
1286
|
type: NgModule,
|
|
1288
1287
|
args: [{
|
|
1289
1288
|
imports: [CommonModule, EffectsModule.forRoot([UserEffects]), StoreModule.forRoot(appReducers)],
|
|
@@ -1320,10 +1319,10 @@ class SeoService {
|
|
|
1320
1319
|
this.meta.updateTag({ name: 'twitter:description', content: description });
|
|
1321
1320
|
this.meta.updateTag({ name: 'twitter:card', content: 'summary' });
|
|
1322
1321
|
}
|
|
1323
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1324
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1322
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SeoService, deps: [{ token: i1$4.Meta }, { token: i1$4.Title }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1323
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SeoService, providedIn: 'root' }); }
|
|
1325
1324
|
}
|
|
1326
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1325
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SeoService, decorators: [{
|
|
1327
1326
|
type: Injectable,
|
|
1328
1327
|
args: [{
|
|
1329
1328
|
providedIn: 'root'
|
|
@@ -1565,10 +1564,10 @@ class PermissionService {
|
|
|
1565
1564
|
getCurrentProduct() {
|
|
1566
1565
|
return JSON.parse(localStorage.getItem('product'));
|
|
1567
1566
|
}
|
|
1568
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1569
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1567
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: PermissionService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1568
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: PermissionService, providedIn: 'root' }); }
|
|
1570
1569
|
}
|
|
1571
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1570
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: PermissionService, decorators: [{
|
|
1572
1571
|
type: Injectable,
|
|
1573
1572
|
args: [{
|
|
1574
1573
|
providedIn: 'root'
|
|
@@ -1609,10 +1608,10 @@ class LinkService {
|
|
|
1609
1608
|
window.console.error('Error within linkService : ', e);
|
|
1610
1609
|
}
|
|
1611
1610
|
}
|
|
1612
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1613
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1611
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: LinkService, deps: [{ token: i0.RendererFactory2 }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1612
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: LinkService, providedIn: 'root' }); }
|
|
1614
1613
|
}
|
|
1615
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1614
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: LinkService, decorators: [{
|
|
1616
1615
|
type: Injectable,
|
|
1617
1616
|
args: [{
|
|
1618
1617
|
providedIn: 'root'
|
|
@@ -1642,10 +1641,10 @@ class CustomPreloadingStrategy {
|
|
|
1642
1641
|
const ret = routeData.preload && this.permission.isGranted(routeData.permission);
|
|
1643
1642
|
return ret;
|
|
1644
1643
|
}
|
|
1645
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1646
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1644
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: CustomPreloadingStrategy, deps: [{ token: PermissionService }, { token: i3.Router }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1645
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: CustomPreloadingStrategy, providedIn: 'root' }); }
|
|
1647
1646
|
}
|
|
1648
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1647
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: CustomPreloadingStrategy, decorators: [{
|
|
1649
1648
|
type: Injectable,
|
|
1650
1649
|
args: [{
|
|
1651
1650
|
providedIn: 'root'
|
|
@@ -1690,10 +1689,10 @@ class AbTestService {
|
|
|
1690
1689
|
console.log(typeof service);
|
|
1691
1690
|
return service ? this.injector.get(service) : this.injector.get(MainApiHttpService); // fallback to Core Microservice
|
|
1692
1691
|
}
|
|
1693
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1694
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1692
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AbTestService, deps: [{ token: i0.Injector }, { token: i1$2.HttpClient }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1693
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AbTestService, providedIn: 'root' }); }
|
|
1695
1694
|
}
|
|
1696
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1695
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AbTestService, decorators: [{
|
|
1697
1696
|
type: Injectable,
|
|
1698
1697
|
args: [{
|
|
1699
1698
|
providedIn: 'root'
|
|
@@ -1721,10 +1720,10 @@ class GeoService {
|
|
|
1721
1720
|
return this.cookieService.putObject('location_from_ip', data);
|
|
1722
1721
|
}));
|
|
1723
1722
|
}
|
|
1724
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1725
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1723
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: GeoService, deps: [{ token: MainApiHttpService }, { token: i2$1.CookieService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1724
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: GeoService, providedIn: 'root' }); }
|
|
1726
1725
|
}
|
|
1727
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1726
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: GeoService, decorators: [{
|
|
1728
1727
|
type: Injectable,
|
|
1729
1728
|
args: [{
|
|
1730
1729
|
providedIn: 'root'
|
|
@@ -1848,10 +1847,10 @@ class SubscriptionService {
|
|
|
1848
1847
|
...HelperService.getPagingParams(paging)
|
|
1849
1848
|
});
|
|
1850
1849
|
}
|
|
1851
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1852
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1850
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SubscriptionService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1851
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SubscriptionService }); }
|
|
1853
1852
|
}
|
|
1854
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1853
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SubscriptionService, decorators: [{
|
|
1855
1854
|
type: Injectable
|
|
1856
1855
|
}], ctorParameters: () => [{ type: MainApiHttpService }] });
|
|
1857
1856
|
|
|
@@ -1917,10 +1916,10 @@ class ProductService {
|
|
|
1917
1916
|
getAvailableStripeProrationBehaviors() {
|
|
1918
1917
|
return this.api.get(`admin/product/available_stripe_proration_behaviors`);
|
|
1919
1918
|
}
|
|
1920
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1921
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1919
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ProductService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1920
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ProductService, providedIn: 'root' }); }
|
|
1922
1921
|
}
|
|
1923
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1922
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ProductService, decorators: [{
|
|
1924
1923
|
type: Injectable,
|
|
1925
1924
|
args: [{
|
|
1926
1925
|
providedIn: 'root'
|
|
@@ -1954,10 +1953,10 @@ class ValidationService {
|
|
|
1954
1953
|
return valid ? null : error;
|
|
1955
1954
|
};
|
|
1956
1955
|
}
|
|
1957
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1958
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1956
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ValidationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1957
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ValidationService }); }
|
|
1959
1958
|
}
|
|
1960
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1959
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: ValidationService, decorators: [{
|
|
1961
1960
|
type: Injectable
|
|
1962
1961
|
}] });
|
|
1963
1962
|
|
|
@@ -2062,10 +2061,10 @@ class AhoyService {
|
|
|
2062
2061
|
this.toast.showToast(error);
|
|
2063
2062
|
}
|
|
2064
2063
|
}
|
|
2065
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2066
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2064
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AhoyService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2065
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AhoyService, providedIn: 'root' }); }
|
|
2067
2066
|
}
|
|
2068
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2067
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: AhoyService, decorators: [{
|
|
2069
2068
|
type: Injectable,
|
|
2070
2069
|
args: [{
|
|
2071
2070
|
providedIn: 'root'
|
|
@@ -2190,10 +2189,10 @@ class CommonService {
|
|
|
2190
2189
|
}
|
|
2191
2190
|
return this.api.post(`${CUSTOMER_SUPPORT_PATH}`, formData);
|
|
2192
2191
|
}
|
|
2193
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2194
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2192
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: CommonService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2193
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: CommonService, providedIn: 'root' }); }
|
|
2195
2194
|
}
|
|
2196
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: CommonService, decorators: [{
|
|
2197
2196
|
type: Injectable,
|
|
2198
2197
|
args: [{
|
|
2199
2198
|
providedIn: 'root'
|
|
@@ -2267,10 +2266,10 @@ class NgbDateCustomParserFormatter extends NgbDateParserFormatter {
|
|
|
2267
2266
|
day: Number(date.substring(8, 10))
|
|
2268
2267
|
};
|
|
2269
2268
|
}
|
|
2270
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2271
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2269
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: NgbDateCustomParserFormatter, deps: null, target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2270
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: NgbDateCustomParserFormatter, providedIn: 'root' }); }
|
|
2272
2271
|
}
|
|
2273
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2272
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: NgbDateCustomParserFormatter, decorators: [{
|
|
2274
2273
|
type: Injectable,
|
|
2275
2274
|
args: [{
|
|
2276
2275
|
providedIn: 'root'
|
|
@@ -2380,10 +2379,10 @@ class TagService {
|
|
|
2380
2379
|
addTagCategoryById(data, subscription_id) {
|
|
2381
2380
|
return this.api.post(this.ADMIN_TAG_CATEGORIES_PATH, { ...data, subscription_id });
|
|
2382
2381
|
}
|
|
2383
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2384
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2382
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TagService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2383
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TagService, providedIn: 'root' }); }
|
|
2385
2384
|
}
|
|
2386
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2385
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TagService, decorators: [{
|
|
2387
2386
|
type: Injectable,
|
|
2388
2387
|
args: [{
|
|
2389
2388
|
providedIn: 'root'
|
|
@@ -2413,10 +2412,10 @@ class TipsService {
|
|
|
2413
2412
|
addUserTips(data, subscription_id) {
|
|
2414
2413
|
return this.api.post(`/users/user_tips`, { ...data, subscription_id });
|
|
2415
2414
|
}
|
|
2416
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2417
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2415
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TipsService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2416
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TipsService, providedIn: 'root' }); }
|
|
2418
2417
|
}
|
|
2419
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2418
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: TipsService, decorators: [{
|
|
2420
2419
|
type: Injectable,
|
|
2421
2420
|
args: [{
|
|
2422
2421
|
providedIn: 'root'
|
|
@@ -2431,10 +2430,10 @@ class WindowService {
|
|
|
2431
2430
|
replaceUrl(url) {
|
|
2432
2431
|
window.location.href = url;
|
|
2433
2432
|
}
|
|
2434
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2435
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2433
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: WindowService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2434
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: WindowService, providedIn: 'root' }); }
|
|
2436
2435
|
}
|
|
2437
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2436
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: WindowService, decorators: [{
|
|
2438
2437
|
type: Injectable,
|
|
2439
2438
|
args: [{
|
|
2440
2439
|
providedIn: 'root'
|
|
@@ -2547,10 +2546,10 @@ class GroupService {
|
|
|
2547
2546
|
deleteCommunicationFiles(id) {
|
|
2548
2547
|
return this.api.delete(`/group_communication_files/${id}`);
|
|
2549
2548
|
}
|
|
2550
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2551
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2549
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: GroupService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2550
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: GroupService, providedIn: 'root' }); }
|
|
2552
2551
|
}
|
|
2553
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2552
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: GroupService, decorators: [{
|
|
2554
2553
|
type: Injectable,
|
|
2555
2554
|
args: [{
|
|
2556
2555
|
providedIn: 'root'
|
|
@@ -2571,10 +2570,10 @@ class QualificationService {
|
|
|
2571
2570
|
deleteQualifications(id) {
|
|
2572
2571
|
return this.api.delete(`${this.endPoint}/${id}`);
|
|
2573
2572
|
}
|
|
2574
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2575
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2573
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: QualificationService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2574
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: QualificationService, providedIn: 'root' }); }
|
|
2576
2575
|
}
|
|
2577
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2576
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: QualificationService, decorators: [{
|
|
2578
2577
|
type: Injectable,
|
|
2579
2578
|
args: [{
|
|
2580
2579
|
providedIn: 'root'
|
|
@@ -2588,10 +2587,10 @@ class DashboardService {
|
|
|
2588
2587
|
search(keyword, subscriptionId) {
|
|
2589
2588
|
return this.api.get(`/search/global_search?search_term=${keyword}&subscription_id=${subscriptionId}`);
|
|
2590
2589
|
}
|
|
2591
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2592
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2590
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: DashboardService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2591
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: DashboardService, providedIn: 'root' }); }
|
|
2593
2592
|
}
|
|
2594
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2593
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: DashboardService, decorators: [{
|
|
2595
2594
|
type: Injectable,
|
|
2596
2595
|
args: [{
|
|
2597
2596
|
providedIn: 'root'
|
|
@@ -2647,10 +2646,10 @@ class MailBoxService {
|
|
|
2647
2646
|
getRecipient(params = {}) {
|
|
2648
2647
|
return this.http.getWithParams(`${this.endpoint}available_recipients`, params);
|
|
2649
2648
|
}
|
|
2650
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2651
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2649
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: MailBoxService, deps: [{ token: MainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2650
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: MailBoxService, providedIn: 'root' }); }
|
|
2652
2651
|
}
|
|
2653
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2652
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: MailBoxService, decorators: [{
|
|
2654
2653
|
type: Injectable,
|
|
2655
2654
|
args: [{
|
|
2656
2655
|
providedIn: 'root'
|
|
@@ -2668,10 +2667,10 @@ class WebsocketService {
|
|
|
2668
2667
|
this.webSocket$ = this.webSocketSubject.asObservable().pipe(distinctUntilChanged());
|
|
2669
2668
|
});
|
|
2670
2669
|
}
|
|
2671
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2672
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2670
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: WebsocketService, deps: [{ token: i1.AppConfigService }, { token: AuthService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2671
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: WebsocketService, providedIn: 'root' }); }
|
|
2673
2672
|
}
|
|
2674
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2673
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: WebsocketService, decorators: [{
|
|
2675
2674
|
type: Injectable,
|
|
2676
2675
|
args: [{
|
|
2677
2676
|
providedIn: 'root'
|
|
@@ -2727,10 +2726,10 @@ class NotificationService {
|
|
|
2727
2726
|
return null;
|
|
2728
2727
|
}));
|
|
2729
2728
|
}
|
|
2730
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2731
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2729
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: NotificationService, deps: [{ token: MainApiHttpService }, { token: CustomToastService }, { token: WebsocketService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2730
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: NotificationService, providedIn: 'root' }); }
|
|
2732
2731
|
}
|
|
2733
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2732
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: NotificationService, decorators: [{
|
|
2734
2733
|
type: Injectable,
|
|
2735
2734
|
args: [{
|
|
2736
2735
|
providedIn: 'root'
|
|
@@ -2745,10 +2744,10 @@ class DataService {
|
|
|
2745
2744
|
changeMessage(message) {
|
|
2746
2745
|
this.messageSource.next(message);
|
|
2747
2746
|
}
|
|
2748
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2749
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2747
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: DataService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2748
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: DataService, providedIn: 'root' }); }
|
|
2750
2749
|
}
|
|
2751
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2750
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: DataService, decorators: [{
|
|
2752
2751
|
type: Injectable,
|
|
2753
2752
|
args: [{
|
|
2754
2753
|
providedIn: 'root'
|
|
@@ -2786,10 +2785,10 @@ class NumberPickerService {
|
|
|
2786
2785
|
*/
|
|
2787
2786
|
this.value = null;
|
|
2788
2787
|
}
|
|
2789
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2790
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2788
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: NumberPickerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2789
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: NumberPickerService, providedIn: 'root' }); }
|
|
2791
2790
|
}
|
|
2792
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2791
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: NumberPickerService, decorators: [{
|
|
2793
2792
|
type: Injectable,
|
|
2794
2793
|
args: [{
|
|
2795
2794
|
providedIn: 'root'
|
|
@@ -2828,15 +2827,11 @@ class SentryErrorHandler {
|
|
|
2828
2827
|
const environment = window.location.host?.includes('dev') || window.location.host?.includes('localhost')
|
|
2829
2828
|
? 'development'
|
|
2830
2829
|
: 'production';
|
|
2831
|
-
const ignoredPaths = [''];
|
|
2832
|
-
const healthCheckPaths = ['/ping'];
|
|
2833
|
-
const onePercentIgnoredPaths = [''];
|
|
2834
|
-
const fivePercentIgnoredPaths = [''];
|
|
2835
2830
|
const config = {
|
|
2836
2831
|
dsn: null,
|
|
2837
|
-
|
|
2838
|
-
//
|
|
2839
|
-
|
|
2832
|
+
// NOTE: We intentionally do not enable Performance Tracing here.
|
|
2833
|
+
// The previous integration (`BrowserTracing` + `routingInstrumentation`) was part of
|
|
2834
|
+
// the legacy `@sentry/angular-ivy` API and isn't available in `@sentry/angular` v10.
|
|
2840
2835
|
beforeSend(event, hint) {
|
|
2841
2836
|
// Check if the event is of type CloseEvent and ignore it
|
|
2842
2837
|
if (event?.exception?.values) {
|
|
@@ -2914,37 +2909,6 @@ class SentryErrorHandler {
|
|
|
2914
2909
|
return event;
|
|
2915
2910
|
},
|
|
2916
2911
|
denyUrls: [/drift.*\.js/i, /analytics.*\.js/i, /polyfills.*\.js/i, /vendor.*\.js/i],
|
|
2917
|
-
integrations: [
|
|
2918
|
-
// Registers and configures the Tracing integration,
|
|
2919
|
-
// which automatically instruments your application to monitor its
|
|
2920
|
-
// performance, including custom Angular routing instrumentation
|
|
2921
|
-
new BrowserTracing({
|
|
2922
|
-
routingInstrumentation: routingInstrumentation
|
|
2923
|
-
})
|
|
2924
|
-
],
|
|
2925
|
-
tracesSampler: samplingContext => {
|
|
2926
|
-
// Examine provided context data (including parent decision, if any) along
|
|
2927
|
-
// with anything in the global namespace to compute the sample rate or
|
|
2928
|
-
// sampling decision for this transaction
|
|
2929
|
-
const pathname = samplingContext.location.pathname;
|
|
2930
|
-
if (ignoredPaths.includes(pathname)) {
|
|
2931
|
-
return 0;
|
|
2932
|
-
}
|
|
2933
|
-
else if (healthCheckPaths.includes(pathname)) {
|
|
2934
|
-
// very low rate as these are extremely frequent and pretty useless
|
|
2935
|
-
return 0.001;
|
|
2936
|
-
}
|
|
2937
|
-
else if (onePercentIgnoredPaths.includes(pathname)) {
|
|
2938
|
-
return 0.01;
|
|
2939
|
-
}
|
|
2940
|
-
else if (fivePercentIgnoredPaths.includes(pathname)) {
|
|
2941
|
-
return 0.05;
|
|
2942
|
-
}
|
|
2943
|
-
else {
|
|
2944
|
-
// Default sample rate
|
|
2945
|
-
return 0.1;
|
|
2946
|
-
}
|
|
2947
|
-
},
|
|
2948
2912
|
environment,
|
|
2949
2913
|
// We ignore Server Errors. We have to define here since Angular
|
|
2950
2914
|
// http client uses setTimeout to detect http call progress.
|
|
@@ -3162,10 +3126,10 @@ class SentryErrorHandler {
|
|
|
3162
3126
|
console.error(error, e);
|
|
3163
3127
|
}
|
|
3164
3128
|
}
|
|
3165
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3166
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3129
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SentryErrorHandler, deps: [{ token: i1.AppConfigService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3130
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SentryErrorHandler, providedIn: 'root' }); }
|
|
3167
3131
|
}
|
|
3168
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3132
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: SentryErrorHandler, decorators: [{
|
|
3169
3133
|
type: Injectable,
|
|
3170
3134
|
args: [{
|
|
3171
3135
|
providedIn: 'root'
|
|
@@ -3225,10 +3189,10 @@ class LogoCacheService {
|
|
|
3225
3189
|
this.cache = JSON.parse(cacheData);
|
|
3226
3190
|
}
|
|
3227
3191
|
}
|
|
3228
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3229
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3192
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: LogoCacheService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3193
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: LogoCacheService, providedIn: 'root' }); }
|
|
3230
3194
|
}
|
|
3231
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: LogoCacheService, decorators: [{
|
|
3232
3196
|
type: Injectable,
|
|
3233
3197
|
args: [{
|
|
3234
3198
|
providedIn: 'root'
|
|
@@ -3267,10 +3231,10 @@ class HopscotchService {
|
|
|
3267
3231
|
window?.hopscotch?.endTour();
|
|
3268
3232
|
}
|
|
3269
3233
|
}
|
|
3270
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3271
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3234
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: HopscotchService, deps: [{ token: ScriptLoaderService }, { token: TipsService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3235
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: HopscotchService, providedIn: 'root' }); }
|
|
3272
3236
|
}
|
|
3273
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3237
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: HopscotchService, decorators: [{
|
|
3274
3238
|
type: Injectable,
|
|
3275
3239
|
args: [{
|
|
3276
3240
|
providedIn: 'root'
|
|
@@ -3286,10 +3250,10 @@ class BrainApiHttpService extends BaseHttpService {
|
|
|
3286
3250
|
this.baseUrl = isDevMode() ? BRAIN_API_PREFIX : config?.['links']['brain_api'] ?? '';
|
|
3287
3251
|
});
|
|
3288
3252
|
}
|
|
3289
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3290
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3253
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: BrainApiHttpService, deps: [{ token: i1$2.HttpClient }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3254
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: BrainApiHttpService, providedIn: 'root' }); }
|
|
3291
3255
|
}
|
|
3292
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3256
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: BrainApiHttpService, decorators: [{
|
|
3293
3257
|
type: Injectable,
|
|
3294
3258
|
args: [{
|
|
3295
3259
|
providedIn: 'root'
|
|
@@ -3303,10 +3267,10 @@ class BrainApiService {
|
|
|
3303
3267
|
invokeModel(payload) {
|
|
3304
3268
|
return this.api.post('/bedrock/invoke', payload);
|
|
3305
3269
|
}
|
|
3306
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3307
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3270
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: BrainApiService, deps: [{ token: BrainApiHttpService }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
3271
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: BrainApiService, providedIn: 'root' }); }
|
|
3308
3272
|
}
|
|
3309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3273
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.17", ngImport: i0, type: BrainApiService, decorators: [{
|
|
3310
3274
|
type: Injectable,
|
|
3311
3275
|
args: [{
|
|
3312
3276
|
providedIn: 'root'
|