vc-error-handlers 0.2.5 → 0.2.7
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/esm2022/lib/shared/components/component-level-server-error/component-level-server-error.component.mjs +8 -15
- package/esm2022/lib/shared/components/page-not-found/page-not-found.component.mjs +10 -19
- package/esm2022/lib/shared/components/server-error/server-error.component.mjs +10 -19
- package/esm2022/lib/shared/components/unauthorized/unauthorized.component.mjs +10 -19
- package/esm2022/lib/shared/constants/assets.constants.mjs +5 -4
- package/esm2022/lib/shared/services/util.service.mjs +1 -6
- package/fesm2022/vc-error-handlers.mjs +54 -108
- package/fesm2022/vc-error-handlers.mjs.map +1 -1
- package/lib/shared/components/component-level-server-error/component-level-server-error.component.d.ts +0 -5
- package/lib/shared/components/page-not-found/page-not-found.component.d.ts +1 -6
- package/lib/shared/components/server-error/server-error.component.d.ts +0 -6
- package/lib/shared/components/unauthorized/unauthorized.component.d.ts +0 -6
- package/package.json +1 -1
- package/esm2022/lib/shared/services/assets-url.service.mjs +0 -23
- package/lib/shared/services/assets-url.service.d.ts +0 -9
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Component,
|
|
2
|
+
import { Injectable, Component, Input, Directive, ViewChild, NgModule, EventEmitter, Output, Optional, InjectionToken, ErrorHandler } from '@angular/core';
|
|
3
3
|
import { Subject, throwError } from 'rxjs';
|
|
4
4
|
import * as i3 from '@angular/router';
|
|
5
5
|
import { NavigationStart, NavigationEnd, NavigationError } from '@angular/router';
|
|
6
|
-
import * as
|
|
6
|
+
import * as i1 from '@angular/common';
|
|
7
7
|
import { CommonModule, NgOptimizedImage } from '@angular/common';
|
|
8
|
-
import * as i1 from '@vcomply/authorizer';
|
|
9
|
-
import * as i1$
|
|
8
|
+
import * as i1$1 from '@vcomply/authorizer';
|
|
9
|
+
import * as i1$2 from '@angular/common/http';
|
|
10
10
|
import { HttpResponse, HTTP_INTERCEPTORS } from '@angular/common/http';
|
|
11
11
|
import { retry, timeout, tap, catchError } from 'rxjs/operators';
|
|
12
12
|
import * as Sentry from '@sentry/angular-ivy';
|
|
@@ -554,19 +554,14 @@ class UtilsService {
|
|
|
554
554
|
return query;
|
|
555
555
|
}
|
|
556
556
|
isStringEqual(apiMethod, requestMethod) {
|
|
557
|
-
console.log('apiMethod', apiMethod === requestMethod);
|
|
558
557
|
return apiMethod === requestMethod;
|
|
559
558
|
}
|
|
560
559
|
isSubstringInString(apiPath, requestPath) {
|
|
561
|
-
console.log('requestPath', requestPath.includes(apiPath));
|
|
562
|
-
console.log('apiPath', apiPath);
|
|
563
|
-
console.log('requestPath22', requestPath);
|
|
564
560
|
return requestPath.includes(apiPath);
|
|
565
561
|
}
|
|
566
562
|
isSubsetOfObject(apiQuery, requestQuery) {
|
|
567
563
|
if (!apiQuery)
|
|
568
564
|
return true;
|
|
569
|
-
console.log('apiQuery', this.isJsonSubset(requestQuery, apiQuery));
|
|
570
565
|
return this.isJsonSubset(requestQuery, apiQuery);
|
|
571
566
|
}
|
|
572
567
|
isSubsetOfArray(apiBody, requestBody) {
|
|
@@ -714,10 +709,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
714
709
|
}]
|
|
715
710
|
}] });
|
|
716
711
|
|
|
712
|
+
const BASE_URL = 'https://cdn.v-comply.com';
|
|
717
713
|
const ASSETS = {
|
|
718
|
-
VCOMPLY_LOGO:
|
|
719
|
-
ERROR_IMAGE:
|
|
720
|
-
COMPONENT_ERROR_IMAGE:
|
|
714
|
+
VCOMPLY_LOGO: `${BASE_URL}/logo/prod/v-logo.svg`,
|
|
715
|
+
ERROR_IMAGE: `${BASE_URL}/application/images/Error-page-illustration.svg`,
|
|
716
|
+
COMPONENT_ERROR_IMAGE: `${BASE_URL}/application/images/sad-emoji-icon.svg`,
|
|
721
717
|
};
|
|
722
718
|
|
|
723
719
|
const VCOMPLY_LOGO_URL = ASSETS.VCOMPLY_LOGO;
|
|
@@ -828,65 +824,30 @@ class SnackBarComponent {
|
|
|
828
824
|
this.snackbarSubscription.unsubscribe();
|
|
829
825
|
}
|
|
830
826
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SnackBarComponent, deps: [{ token: SnackBarService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
831
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SnackBarComponent, selector: "app-snack-bar", ngImport: i0, template: "<div class=\"workflow-snackbar\" *ngIf=\"show\">\r\n <div class=\"workflow-snackbar-inner\">\r\n <div class=\"workflow-snackbarText\">\r\n <!--  -->\r\n <i class=\"icons\" [class]=\"type\" [innerHTML]=\"icon\"></i> <span [innerHTML]=\"message\">{{ message }}</span>\r\n </div>\r\n <button (click)=\"close()\">[ <span>Close</span> ]</button>\r\n </div>\r\n </div>", styles: ["::ng-deep .workflow-snackbar{position:fixed;top:20px;left:0;right:0;display:flex;align-items:center;justify-content:center;z-index:2147483647!important;pointer-events:none;animation:slide-top .3s cubic-bezier(.25,.46,.45,.94) both}::ng-deep .workflow-snackbar.white{background-color:#fff;color:#000;z-index:20}::ng-deep .workflow-snackbar.white button{color:#f6882f;font-size:11px;font-weight:400;pointer-events:all}::ng-deep .workflow-snackbar .workflow-snackbar-inner{display:flex;max-width:500px;min-width:450px;align-items:center;justify-content:space-between;padding:10px;background:#fff;border-radius:3px;box-shadow:0 0 10px #0003;min-height:55px;pointer-events:auto}::ng-deep .workflow-snackbar .workflow-snackbar-inner .workflow-snackbarText{color:#161b2f;font-size:13px;display:flex;align-items:center;width:calc(100% - 70px)}::ng-deep .workflow-snackbar .workflow-snackbar-inner .workflow-snackbarText i{background:#f1f1f1;color:#d93b41;border-radius:50px;font-size:16px;width:30px;height:30px;text-align:center;line-height:28px;margin-right:10px;min-width:30px}::ng-deep .workflow-snackbar .workflow-snackbar-inner .workflow-snackbarText i.success{color:#34aa44}::ng-deep .workflow-snackbar .workflow-snackbar-inner .workflow-snackbarText i.warning{color:#f0b819}::ng-deep .workflow-snackbar .workflow-snackbar-inner .workflow-snackbarText i.info{color:#1e5dd3}::ng-deep .workflow-snackbar .workflow-snackbar-inner .workflow-snackbarText i.alert{color:#d93b41}::ng-deep .workflow-snackbar .workflow-snackbar-inner .workflow-snackbarText i.error{color:#d93b41}::ng-deep .workflow-snackbar .workflow-snackbar-inner button{background:transparent;border:none;font-size:11px;padding:0;position:relative;color:#747576;width:65px;text-align:right;cursor:pointer;text-transform:uppercase}::ng-deep .workflow-snackbar .workflow-snackbar-inner button span{color:#1e5dd3;font-weight:500}::ng-deep .workflow-snackbar .workflow-snackbar-inner button:focus{outline:none}@keyframes slide-top{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}\n"], dependencies: [{ kind: "directive", type:
|
|
827
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: SnackBarComponent, selector: "app-snack-bar", ngImport: i0, template: "<div class=\"workflow-snackbar\" *ngIf=\"show\">\r\n <div class=\"workflow-snackbar-inner\">\r\n <div class=\"workflow-snackbarText\">\r\n <!--  -->\r\n <i class=\"icons\" [class]=\"type\" [innerHTML]=\"icon\"></i> <span [innerHTML]=\"message\">{{ message }}</span>\r\n </div>\r\n <button (click)=\"close()\">[ <span>Close</span> ]</button>\r\n </div>\r\n </div>", styles: ["::ng-deep .workflow-snackbar{position:fixed;top:20px;left:0;right:0;display:flex;align-items:center;justify-content:center;z-index:2147483647!important;pointer-events:none;animation:slide-top .3s cubic-bezier(.25,.46,.45,.94) both}::ng-deep .workflow-snackbar.white{background-color:#fff;color:#000;z-index:20}::ng-deep .workflow-snackbar.white button{color:#f6882f;font-size:11px;font-weight:400;pointer-events:all}::ng-deep .workflow-snackbar .workflow-snackbar-inner{display:flex;max-width:500px;min-width:450px;align-items:center;justify-content:space-between;padding:10px;background:#fff;border-radius:3px;box-shadow:0 0 10px #0003;min-height:55px;pointer-events:auto}::ng-deep .workflow-snackbar .workflow-snackbar-inner .workflow-snackbarText{color:#161b2f;font-size:13px;display:flex;align-items:center;width:calc(100% - 70px)}::ng-deep .workflow-snackbar .workflow-snackbar-inner .workflow-snackbarText i{background:#f1f1f1;color:#d93b41;border-radius:50px;font-size:16px;width:30px;height:30px;text-align:center;line-height:28px;margin-right:10px;min-width:30px}::ng-deep .workflow-snackbar .workflow-snackbar-inner .workflow-snackbarText i.success{color:#34aa44}::ng-deep .workflow-snackbar .workflow-snackbar-inner .workflow-snackbarText i.warning{color:#f0b819}::ng-deep .workflow-snackbar .workflow-snackbar-inner .workflow-snackbarText i.info{color:#1e5dd3}::ng-deep .workflow-snackbar .workflow-snackbar-inner .workflow-snackbarText i.alert{color:#d93b41}::ng-deep .workflow-snackbar .workflow-snackbar-inner .workflow-snackbarText i.error{color:#d93b41}::ng-deep .workflow-snackbar .workflow-snackbar-inner button{background:transparent;border:none;font-size:11px;padding:0;position:relative;color:#747576;width:65px;text-align:right;cursor:pointer;text-transform:uppercase}::ng-deep .workflow-snackbar .workflow-snackbar-inner button span{color:#1e5dd3;font-weight:500}::ng-deep .workflow-snackbar .workflow-snackbar-inner button:focus{outline:none}@keyframes slide-top{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}\n"], dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
832
828
|
}
|
|
833
829
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SnackBarComponent, decorators: [{
|
|
834
830
|
type: Component,
|
|
835
831
|
args: [{ selector: 'app-snack-bar', template: "<div class=\"workflow-snackbar\" *ngIf=\"show\">\r\n <div class=\"workflow-snackbar-inner\">\r\n <div class=\"workflow-snackbarText\">\r\n <!--  -->\r\n <i class=\"icons\" [class]=\"type\" [innerHTML]=\"icon\"></i> <span [innerHTML]=\"message\">{{ message }}</span>\r\n </div>\r\n <button (click)=\"close()\">[ <span>Close</span> ]</button>\r\n </div>\r\n </div>", styles: ["::ng-deep .workflow-snackbar{position:fixed;top:20px;left:0;right:0;display:flex;align-items:center;justify-content:center;z-index:2147483647!important;pointer-events:none;animation:slide-top .3s cubic-bezier(.25,.46,.45,.94) both}::ng-deep .workflow-snackbar.white{background-color:#fff;color:#000;z-index:20}::ng-deep .workflow-snackbar.white button{color:#f6882f;font-size:11px;font-weight:400;pointer-events:all}::ng-deep .workflow-snackbar .workflow-snackbar-inner{display:flex;max-width:500px;min-width:450px;align-items:center;justify-content:space-between;padding:10px;background:#fff;border-radius:3px;box-shadow:0 0 10px #0003;min-height:55px;pointer-events:auto}::ng-deep .workflow-snackbar .workflow-snackbar-inner .workflow-snackbarText{color:#161b2f;font-size:13px;display:flex;align-items:center;width:calc(100% - 70px)}::ng-deep .workflow-snackbar .workflow-snackbar-inner .workflow-snackbarText i{background:#f1f1f1;color:#d93b41;border-radius:50px;font-size:16px;width:30px;height:30px;text-align:center;line-height:28px;margin-right:10px;min-width:30px}::ng-deep .workflow-snackbar .workflow-snackbar-inner .workflow-snackbarText i.success{color:#34aa44}::ng-deep .workflow-snackbar .workflow-snackbar-inner .workflow-snackbarText i.warning{color:#f0b819}::ng-deep .workflow-snackbar .workflow-snackbar-inner .workflow-snackbarText i.info{color:#1e5dd3}::ng-deep .workflow-snackbar .workflow-snackbar-inner .workflow-snackbarText i.alert{color:#d93b41}::ng-deep .workflow-snackbar .workflow-snackbar-inner .workflow-snackbarText i.error{color:#d93b41}::ng-deep .workflow-snackbar .workflow-snackbar-inner button{background:transparent;border:none;font-size:11px;padding:0;position:relative;color:#747576;width:65px;text-align:right;cursor:pointer;text-transform:uppercase}::ng-deep .workflow-snackbar .workflow-snackbar-inner button span{color:#1e5dd3;font-weight:500}::ng-deep .workflow-snackbar .workflow-snackbar-inner button:focus{outline:none}@keyframes slide-top{0%{transform:translateY(-100%);opacity:0}to{transform:translateY(0);opacity:1}}\n"] }]
|
|
836
832
|
}], ctorParameters: function () { return [{ type: SnackBarService }]; } });
|
|
837
833
|
|
|
838
|
-
class Configurations {
|
|
839
|
-
constructor() {
|
|
840
|
-
this.sentryConfig = {};
|
|
841
|
-
this.envConfig = {};
|
|
842
|
-
}
|
|
843
|
-
}
|
|
844
|
-
|
|
845
|
-
class AssetUrlService {
|
|
846
|
-
constructor(config) {
|
|
847
|
-
this.BASE_URL = '';
|
|
848
|
-
this.BASE_URL = config?.envConfig?.cdnUrl || '';
|
|
849
|
-
}
|
|
850
|
-
getFullUrl(relativePath) {
|
|
851
|
-
return `${this.BASE_URL}${relativePath}`;
|
|
852
|
-
}
|
|
853
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AssetUrlService, deps: [{ token: Configurations, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
854
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AssetUrlService, providedIn: 'root' }); }
|
|
855
|
-
}
|
|
856
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AssetUrlService, decorators: [{
|
|
857
|
-
type: Injectable,
|
|
858
|
-
args: [{
|
|
859
|
-
providedIn: 'root',
|
|
860
|
-
}]
|
|
861
|
-
}], ctorParameters: function () { return [{ type: Configurations, decorators: [{
|
|
862
|
-
type: Optional
|
|
863
|
-
}] }]; } });
|
|
864
|
-
|
|
865
834
|
class UnauthorizedComponent {
|
|
866
|
-
constructor(
|
|
867
|
-
this.assetUrlService = assetUrlService;
|
|
835
|
+
constructor() {
|
|
868
836
|
this.currentYear = new Date().getFullYear();
|
|
869
837
|
this.errorConfig = ERROR_CONFIG.UNAUTHORIZED;
|
|
870
838
|
this.VcomplyLogo = VCOMPLY_LOGO_URL;
|
|
871
839
|
this.altImageText = ALT_IMAGE_TEXT;
|
|
872
840
|
this.organisationName = ORGANISATION_NAME;
|
|
873
|
-
this.fullVcomplyLogo = '';
|
|
874
|
-
this.fullErrorImageUrl = '';
|
|
875
|
-
this.getAssetsUrl();
|
|
876
|
-
}
|
|
877
|
-
getAssetsUrl() {
|
|
878
|
-
this.fullVcomplyLogo = this.assetUrlService.getFullUrl(this.VcomplyLogo);
|
|
879
|
-
this.fullErrorImageUrl = this.assetUrlService.getFullUrl(this.errorConfig.imageUrl);
|
|
880
841
|
}
|
|
881
842
|
redirectToSupport() {
|
|
882
843
|
window.location.href = this.errorConfig.mail;
|
|
883
844
|
}
|
|
884
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UnauthorizedComponent, deps: [
|
|
845
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UnauthorizedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
885
846
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: UnauthorizedComponent, selector: "lib-vc-error-unauthorized", ngImport: i0, template: `
|
|
886
847
|
<div class="errorPage">
|
|
887
848
|
<div class="errorPage-top">
|
|
888
849
|
<img
|
|
889
|
-
[ngSrc]="
|
|
850
|
+
[ngSrc]="VcomplyLogo"
|
|
890
851
|
[alt]="altImageText.VCOMPLY_LOGO"
|
|
891
852
|
width="24"
|
|
892
853
|
height="24"
|
|
@@ -896,7 +857,7 @@ class UnauthorizedComponent {
|
|
|
896
857
|
<div class="errorPage-inner">
|
|
897
858
|
<div class="errorPage-inner-image">
|
|
898
859
|
<img
|
|
899
|
-
[ngSrc]="
|
|
860
|
+
[ngSrc]="errorConfig.imageUrl"
|
|
900
861
|
[alt]="altImageText.ERROR_IMAGE"
|
|
901
862
|
width="246"
|
|
902
863
|
height="178"
|
|
@@ -922,7 +883,7 @@ class UnauthorizedComponent {
|
|
|
922
883
|
</div>
|
|
923
884
|
</div>
|
|
924
885
|
</div>
|
|
925
|
-
`, isInline: true, styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";.errorPage{background:#161b2f;position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999}.errorPage-top{width:100%;height:3rem;display:flex;align-items:center;padding-left:.75rem}.errorPage-container{background:#f2f2f5;border-radius:.75rem;border:1px solid #e3e3e9;box-shadow:0 4px 8px #1d5dd31a;height:calc(100vh - 3.75rem);display:flex;align-items:center;justify-content:center;padding:0 4rem;margin:0 .75rem;position:relative}.errorPage-inner{display:flex;align-items:center}.errorPage-inner-image{width:16rem}.errorPage-inner-right{margin-left:2rem;width:calc(100% - 18rem)}.errorPage-inner-right .errorPage-heading{-webkit-text-fill-color:#e3e3e9;-webkit-text-stroke-color:#a9aab6;-webkit-text-stroke-width:1px;color:#e3e3e9;font-size:78px;font-weight:700;line-height:110px;margin-bottom:1.5rem}.errorPage-inner-right .errorPage-text{color:#141724;font-size:19px;font-weight:500;line-height:1.75rem;margin-bottom:.5rem}.errorPage-inner-right .errorPage-details{color:#565a6f;font-size:13px;line-height:20px;margin-bottom:1.75rem}.errorPage-inner-right .errorPage-btn{background:#1e5dd3;border-radius:.25rem;border:none;color:#fff;display:inline-flex;align-items:center;font-size:11px;font-weight:500;line-height:2rem;padding:0 1rem}.errorPage-inner-right .errorPage-btn i{font-size:14px;margin-left:.25rem}.errorPage-copyright{font-size:11px;color:#787a8c;font-weight:500;position:absolute;bottom:8px;right:16px;line-height:16px}\n"], dependencies: [{ kind: "directive", type:
|
|
886
|
+
`, isInline: true, styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";.errorPage{background:#161b2f;position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999}.errorPage-top{width:100%;height:3rem;display:flex;align-items:center;padding-left:.75rem}.errorPage-container{background:#f2f2f5;border-radius:.75rem;border:1px solid #e3e3e9;box-shadow:0 4px 8px #1d5dd31a;height:calc(100vh - 3.75rem);display:flex;align-items:center;justify-content:center;padding:0 4rem;margin:0 .75rem;position:relative}.errorPage-inner{display:flex;align-items:center}.errorPage-inner-image{width:16rem}.errorPage-inner-right{margin-left:2rem;width:calc(100% - 18rem)}.errorPage-inner-right .errorPage-heading{-webkit-text-fill-color:#e3e3e9;-webkit-text-stroke-color:#a9aab6;-webkit-text-stroke-width:1px;color:#e3e3e9;font-size:78px;font-weight:700;line-height:110px;margin-bottom:1.5rem}.errorPage-inner-right .errorPage-text{color:#141724;font-size:19px;font-weight:500;line-height:1.75rem;margin-bottom:.5rem}.errorPage-inner-right .errorPage-details{color:#565a6f;font-size:13px;line-height:20px;margin-bottom:1.75rem}.errorPage-inner-right .errorPage-btn{background:#1e5dd3;border-radius:.25rem;border:none;color:#fff;display:inline-flex;align-items:center;font-size:11px;font-weight:500;line-height:2rem;padding:0 1rem}.errorPage-inner-right .errorPage-btn i{font-size:14px;margin-left:.25rem}.errorPage-copyright{font-size:11px;color:#787a8c;font-weight:500;position:absolute;bottom:8px;right:16px;line-height:16px}\n"], dependencies: [{ kind: "directive", type: i1.NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "src", "srcset"] }] }); }
|
|
926
887
|
}
|
|
927
888
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UnauthorizedComponent, decorators: [{
|
|
928
889
|
type: Component,
|
|
@@ -930,7 +891,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
930
891
|
<div class="errorPage">
|
|
931
892
|
<div class="errorPage-top">
|
|
932
893
|
<img
|
|
933
|
-
[ngSrc]="
|
|
894
|
+
[ngSrc]="VcomplyLogo"
|
|
934
895
|
[alt]="altImageText.VCOMPLY_LOGO"
|
|
935
896
|
width="24"
|
|
936
897
|
height="24"
|
|
@@ -940,7 +901,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
940
901
|
<div class="errorPage-inner">
|
|
941
902
|
<div class="errorPage-inner-image">
|
|
942
903
|
<img
|
|
943
|
-
[ngSrc]="
|
|
904
|
+
[ngSrc]="errorConfig.imageUrl"
|
|
944
905
|
[alt]="altImageText.ERROR_IMAGE"
|
|
945
906
|
width="246"
|
|
946
907
|
height="178"
|
|
@@ -967,7 +928,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
967
928
|
</div>
|
|
968
929
|
</div>
|
|
969
930
|
`, styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";.errorPage{background:#161b2f;position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999}.errorPage-top{width:100%;height:3rem;display:flex;align-items:center;padding-left:.75rem}.errorPage-container{background:#f2f2f5;border-radius:.75rem;border:1px solid #e3e3e9;box-shadow:0 4px 8px #1d5dd31a;height:calc(100vh - 3.75rem);display:flex;align-items:center;justify-content:center;padding:0 4rem;margin:0 .75rem;position:relative}.errorPage-inner{display:flex;align-items:center}.errorPage-inner-image{width:16rem}.errorPage-inner-right{margin-left:2rem;width:calc(100% - 18rem)}.errorPage-inner-right .errorPage-heading{-webkit-text-fill-color:#e3e3e9;-webkit-text-stroke-color:#a9aab6;-webkit-text-stroke-width:1px;color:#e3e3e9;font-size:78px;font-weight:700;line-height:110px;margin-bottom:1.5rem}.errorPage-inner-right .errorPage-text{color:#141724;font-size:19px;font-weight:500;line-height:1.75rem;margin-bottom:.5rem}.errorPage-inner-right .errorPage-details{color:#565a6f;font-size:13px;line-height:20px;margin-bottom:1.75rem}.errorPage-inner-right .errorPage-btn{background:#1e5dd3;border-radius:.25rem;border:none;color:#fff;display:inline-flex;align-items:center;font-size:11px;font-weight:500;line-height:2rem;padding:0 1rem}.errorPage-inner-right .errorPage-btn i{font-size:14px;margin-left:.25rem}.errorPage-copyright{font-size:11px;color:#787a8c;font-weight:500;position:absolute;bottom:8px;right:16px;line-height:16px}\n"] }]
|
|
970
|
-
}]
|
|
931
|
+
}] });
|
|
971
932
|
|
|
972
933
|
class DialogConfig {
|
|
973
934
|
}
|
|
@@ -1000,7 +961,7 @@ class ErrorModalComponent {
|
|
|
1000
961
|
break;
|
|
1001
962
|
}
|
|
1002
963
|
}
|
|
1003
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ErrorModalComponent, deps: [{ token: i1.AuthorizerService }, { token: DialogConfig }, { token: RouterService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
964
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ErrorModalComponent, deps: [{ token: i1$1.AuthorizerService }, { token: DialogConfig }, { token: RouterService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1004
965
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ErrorModalComponent, selector: "lib-vc-error-modal", inputs: { errorType: "errorType" }, ngImport: i0, template: ` <div class="error-dialog-box">
|
|
1005
966
|
<div class="error-dialog-box-top">{{ data.heading }}</div>
|
|
1006
967
|
<div class="error-dialog-box-mid">
|
|
@@ -1026,7 +987,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1026
987
|
</button>
|
|
1027
988
|
</div>
|
|
1028
989
|
</div>`, styles: [".error-dialog-box{background:#fff;border-radius:.75rem;box-shadow:0 1px 10px #0003;width:27rem}.error-dialog-box-top{color:#000;font-size:16px;font-weight:500;border-radius:.75rem .75rem 0 0;display:flex;align-items:center;height:3.375rem;padding:0 1rem;margin-bottom:1rem}.error-dialog-box-mid{color:#565a6f;font-size:13px;min-height:5.5rem;padding:0 1rem}.error-dialog-box-bottom{display:flex;justify-content:end;padding:1rem}.error-dialog-box-bottom button.logIn-btn{background:#1e5dd3;border-radius:.125rem;border:none;color:#fff;cursor:pointer;font-size:11px;height:2rem;padding:.5rem .75rem}\n"] }]
|
|
1029
|
-
}], ctorParameters: function () { return [{ type: i1.AuthorizerService }, { type: DialogConfig }, { type: RouterService }]; }, propDecorators: { errorType: [{
|
|
990
|
+
}], ctorParameters: function () { return [{ type: i1$1.AuthorizerService }, { type: DialogConfig }, { type: RouterService }]; }, propDecorators: { errorType: [{
|
|
1030
991
|
type: Input
|
|
1031
992
|
}] } });
|
|
1032
993
|
|
|
@@ -1121,7 +1082,7 @@ class DialogComponent {
|
|
|
1121
1082
|
document.body.style.overflow = 'auto';
|
|
1122
1083
|
}
|
|
1123
1084
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogComponent, deps: [{ token: i0.ComponentFactoryResolver }, { token: i0.ChangeDetectorRef }, { token: DialogRef }, { token: DialogConfig }, { token: i3.Router }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1124
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DialogComponent, selector: "app-dialog", viewQueries: [{ propertyName: "insertionPoint", first: true, predicate: InsertionDirective, descendants: true, static: true }], ngImport: i0, template: "<div\r\n class=\"overlay\"\r\n (click)=\"onOverlayClicked($event)\"\r\n [ngClass]=\"{\r\n top: position === 'TOP',\r\n right: position === 'RIGHT',\r\n bottom: position === 'BOTTOM',\r\n left: position === 'LEFT',\r\n center: position === 'CENTER',\r\n black: background === 'black',\r\n whiteBlur: background === 'whiteBlur'\r\n }\" [class.pointer-none]=\"pointer === 'none'\"\r\n>\r\n <div\r\n class=\"dialog\"\r\n [class.animate]=\"animation\"\r\n (click)=\"onDialogClicked($event)\"\r\n [ngClass]=\"{\r\n top: position === 'TOP',\r\n right: position === 'RIGHT',\r\n bottom: position === 'BOTTOM',\r\n left: position === 'LEFT',\r\n center: position === 'CENTER'\r\n }\"\r\n >\r\n <ng-template appInsertion></ng-template>\r\n </div>\r\n</div>\r\n", styles: [".overlay{display:flex;position:fixed;inset:0;align-items:center;justify-content:center;z-index:2147483009!important}.overlay.low{z-index:1}.overlay.black{background:#161b2fcc}.overlay.whiteBlur{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.overlay.top{align-items:flex-start}.overlay.right{justify-content:flex-end}.overlay.bottom{align-items:flex-end}.overlay.left{justify-content:flex-start}.dialog{position:relative}.dialog.animate.top{animation:animate-top .2s cubic-bezier(.25,.46,.45,.94) both}@keyframes animate-top{0%{transform:translateY(-100px)}to{transform:translateY(0)}}.dialog.animate.right{animation:animate-right .2s cubic-bezier(.25,.46,.45,.94) both}@keyframes animate-right{0%{transform:translate(100%)}to{transform:translate(0)}}.pointer-none{pointer-events:none}\n"], dependencies: [{ kind: "directive", type:
|
|
1085
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: DialogComponent, selector: "app-dialog", viewQueries: [{ propertyName: "insertionPoint", first: true, predicate: InsertionDirective, descendants: true, static: true }], ngImport: i0, template: "<div\r\n class=\"overlay\"\r\n (click)=\"onOverlayClicked($event)\"\r\n [ngClass]=\"{\r\n top: position === 'TOP',\r\n right: position === 'RIGHT',\r\n bottom: position === 'BOTTOM',\r\n left: position === 'LEFT',\r\n center: position === 'CENTER',\r\n black: background === 'black',\r\n whiteBlur: background === 'whiteBlur'\r\n }\" [class.pointer-none]=\"pointer === 'none'\"\r\n>\r\n <div\r\n class=\"dialog\"\r\n [class.animate]=\"animation\"\r\n (click)=\"onDialogClicked($event)\"\r\n [ngClass]=\"{\r\n top: position === 'TOP',\r\n right: position === 'RIGHT',\r\n bottom: position === 'BOTTOM',\r\n left: position === 'LEFT',\r\n center: position === 'CENTER'\r\n }\"\r\n >\r\n <ng-template appInsertion></ng-template>\r\n </div>\r\n</div>\r\n", styles: [".overlay{display:flex;position:fixed;inset:0;align-items:center;justify-content:center;z-index:2147483009!important}.overlay.low{z-index:1}.overlay.black{background:#161b2fcc}.overlay.whiteBlur{-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.overlay.top{align-items:flex-start}.overlay.right{justify-content:flex-end}.overlay.bottom{align-items:flex-end}.overlay.left{justify-content:flex-start}.dialog{position:relative}.dialog.animate.top{animation:animate-top .2s cubic-bezier(.25,.46,.45,.94) both}@keyframes animate-top{0%{transform:translateY(-100px)}to{transform:translateY(0)}}.dialog.animate.right{animation:animate-right .2s cubic-bezier(.25,.46,.45,.94) both}@keyframes animate-right{0%{transform:translate(100%)}to{transform:translate(0)}}.pointer-none{pointer-events:none}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: InsertionDirective, selector: "[appInsertion]" }] }); }
|
|
1125
1086
|
}
|
|
1126
1087
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogComponent, decorators: [{
|
|
1127
1088
|
type: Component,
|
|
@@ -1267,28 +1228,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1267
1228
|
}], ctorParameters: function () { return [{ type: DialogService }]; } });
|
|
1268
1229
|
|
|
1269
1230
|
class ServerErrorComponent {
|
|
1270
|
-
constructor(
|
|
1271
|
-
this.assetUrlService = assetUrlService;
|
|
1231
|
+
constructor() {
|
|
1272
1232
|
this.errorConfig = ERROR_CONFIG.SERVER_ERROR;
|
|
1273
1233
|
this.VcomplyLogo = VCOMPLY_LOGO_URL;
|
|
1274
1234
|
this.altImageText = ALT_IMAGE_TEXT;
|
|
1275
|
-
this.fullVcomplyLogo = '';
|
|
1276
|
-
this.fullErrorImageUrl = '';
|
|
1277
|
-
this.getAssetsUrl();
|
|
1278
|
-
}
|
|
1279
|
-
getAssetsUrl() {
|
|
1280
|
-
this.fullVcomplyLogo = this.assetUrlService.getFullUrl(this.VcomplyLogo);
|
|
1281
|
-
this.fullErrorImageUrl = this.assetUrlService.getFullUrl(this.errorConfig.imageUrl);
|
|
1282
1235
|
}
|
|
1283
1236
|
refreshPage() {
|
|
1284
1237
|
window.location.reload();
|
|
1285
1238
|
}
|
|
1286
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ServerErrorComponent, deps: [
|
|
1239
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ServerErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1287
1240
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ServerErrorComponent, selector: "lib-vc-error-server-error", ngImport: i0, template: `
|
|
1288
1241
|
<div class="errorPage">
|
|
1289
1242
|
<div class="errorPage-top">
|
|
1290
1243
|
<img
|
|
1291
|
-
[ngSrc]="
|
|
1244
|
+
[ngSrc]="VcomplyLogo"
|
|
1292
1245
|
[alt]="altImageText.VCOMPLY_LOGO"
|
|
1293
1246
|
width="24"
|
|
1294
1247
|
height="24"
|
|
@@ -1298,7 +1251,7 @@ class ServerErrorComponent {
|
|
|
1298
1251
|
<div class="errorPage-inner">
|
|
1299
1252
|
<div class="errorPage-inner-image">
|
|
1300
1253
|
<img
|
|
1301
|
-
[ngSrc]="
|
|
1254
|
+
[ngSrc]="errorConfig.imageUrl"
|
|
1302
1255
|
[alt]="altImageText.ERROR_IMAGE"
|
|
1303
1256
|
width="246"
|
|
1304
1257
|
height="178"
|
|
@@ -1315,7 +1268,7 @@ class ServerErrorComponent {
|
|
|
1315
1268
|
</div>
|
|
1316
1269
|
</div>
|
|
1317
1270
|
</div>
|
|
1318
|
-
`, isInline: true, styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";.errorPage{background:#161b2f;position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999}.errorPage-top{width:100%;height:3rem;display:flex;align-items:center;padding-left:.75rem}.errorPage-container{background:#f2f2f5;border-radius:.75rem;border:1px solid #e3e3e9;box-shadow:0 4px 8px #1d5dd31a;height:calc(100vh - 3.75rem);display:flex;align-items:center;justify-content:center;padding:0 4rem;margin:0 .75rem;position:relative}.errorPage-inner{display:flex;align-items:center}.errorPage-inner-image{width:16rem}.errorPage-inner-right{margin-left:2rem;width:calc(100% - 18rem)}.errorPage-inner-right .errorPage-heading{-webkit-text-fill-color:#e3e3e9;-webkit-text-stroke-color:#a9aab6;-webkit-text-stroke-width:1px;color:#e3e3e9;font-size:78px;font-weight:700;line-height:110px;margin-bottom:1.5rem}.errorPage-inner-right .errorPage-text{color:#141724;font-size:19px;font-weight:500;line-height:1.75rem;margin-bottom:.5rem}.errorPage-inner-right .errorPage-details{color:#565a6f;font-size:13px;line-height:20px;margin-bottom:1.75rem}.errorPage-inner-right .errorPage-btn{background:#1e5dd3;border-radius:.25rem;border:none;color:#fff;display:inline-flex;align-items:center;font-size:11px;font-weight:500;line-height:2rem;padding:0 1rem}.errorPage-inner-right .errorPage-btn i{font-size:14px;margin-left:.25rem}.errorPage-copyright{font-size:11px;color:#787a8c;font-weight:500;position:absolute;bottom:8px;right:16px;line-height:16px}\n"], dependencies: [{ kind: "directive", type:
|
|
1271
|
+
`, isInline: true, styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";.errorPage{background:#161b2f;position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999}.errorPage-top{width:100%;height:3rem;display:flex;align-items:center;padding-left:.75rem}.errorPage-container{background:#f2f2f5;border-radius:.75rem;border:1px solid #e3e3e9;box-shadow:0 4px 8px #1d5dd31a;height:calc(100vh - 3.75rem);display:flex;align-items:center;justify-content:center;padding:0 4rem;margin:0 .75rem;position:relative}.errorPage-inner{display:flex;align-items:center}.errorPage-inner-image{width:16rem}.errorPage-inner-right{margin-left:2rem;width:calc(100% - 18rem)}.errorPage-inner-right .errorPage-heading{-webkit-text-fill-color:#e3e3e9;-webkit-text-stroke-color:#a9aab6;-webkit-text-stroke-width:1px;color:#e3e3e9;font-size:78px;font-weight:700;line-height:110px;margin-bottom:1.5rem}.errorPage-inner-right .errorPage-text{color:#141724;font-size:19px;font-weight:500;line-height:1.75rem;margin-bottom:.5rem}.errorPage-inner-right .errorPage-details{color:#565a6f;font-size:13px;line-height:20px;margin-bottom:1.75rem}.errorPage-inner-right .errorPage-btn{background:#1e5dd3;border-radius:.25rem;border:none;color:#fff;display:inline-flex;align-items:center;font-size:11px;font-weight:500;line-height:2rem;padding:0 1rem}.errorPage-inner-right .errorPage-btn i{font-size:14px;margin-left:.25rem}.errorPage-copyright{font-size:11px;color:#787a8c;font-weight:500;position:absolute;bottom:8px;right:16px;line-height:16px}\n"], dependencies: [{ kind: "directive", type: i1.NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "src", "srcset"] }] }); }
|
|
1319
1272
|
}
|
|
1320
1273
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ServerErrorComponent, decorators: [{
|
|
1321
1274
|
type: Component,
|
|
@@ -1323,7 +1276,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1323
1276
|
<div class="errorPage">
|
|
1324
1277
|
<div class="errorPage-top">
|
|
1325
1278
|
<img
|
|
1326
|
-
[ngSrc]="
|
|
1279
|
+
[ngSrc]="VcomplyLogo"
|
|
1327
1280
|
[alt]="altImageText.VCOMPLY_LOGO"
|
|
1328
1281
|
width="24"
|
|
1329
1282
|
height="24"
|
|
@@ -1333,7 +1286,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1333
1286
|
<div class="errorPage-inner">
|
|
1334
1287
|
<div class="errorPage-inner-image">
|
|
1335
1288
|
<img
|
|
1336
|
-
[ngSrc]="
|
|
1289
|
+
[ngSrc]="errorConfig.imageUrl"
|
|
1337
1290
|
[alt]="altImageText.ERROR_IMAGE"
|
|
1338
1291
|
width="246"
|
|
1339
1292
|
height="178"
|
|
@@ -1351,7 +1304,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1351
1304
|
</div>
|
|
1352
1305
|
</div>
|
|
1353
1306
|
`, styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";.errorPage{background:#161b2f;position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999}.errorPage-top{width:100%;height:3rem;display:flex;align-items:center;padding-left:.75rem}.errorPage-container{background:#f2f2f5;border-radius:.75rem;border:1px solid #e3e3e9;box-shadow:0 4px 8px #1d5dd31a;height:calc(100vh - 3.75rem);display:flex;align-items:center;justify-content:center;padding:0 4rem;margin:0 .75rem;position:relative}.errorPage-inner{display:flex;align-items:center}.errorPage-inner-image{width:16rem}.errorPage-inner-right{margin-left:2rem;width:calc(100% - 18rem)}.errorPage-inner-right .errorPage-heading{-webkit-text-fill-color:#e3e3e9;-webkit-text-stroke-color:#a9aab6;-webkit-text-stroke-width:1px;color:#e3e3e9;font-size:78px;font-weight:700;line-height:110px;margin-bottom:1.5rem}.errorPage-inner-right .errorPage-text{color:#141724;font-size:19px;font-weight:500;line-height:1.75rem;margin-bottom:.5rem}.errorPage-inner-right .errorPage-details{color:#565a6f;font-size:13px;line-height:20px;margin-bottom:1.75rem}.errorPage-inner-right .errorPage-btn{background:#1e5dd3;border-radius:.25rem;border:none;color:#fff;display:inline-flex;align-items:center;font-size:11px;font-weight:500;line-height:2rem;padding:0 1rem}.errorPage-inner-right .errorPage-btn i{font-size:14px;margin-left:.25rem}.errorPage-copyright{font-size:11px;color:#787a8c;font-weight:500;position:absolute;bottom:8px;right:16px;line-height:16px}\n"] }]
|
|
1354
|
-
}]
|
|
1307
|
+
}] });
|
|
1355
1308
|
|
|
1356
1309
|
class VcErrorHandlersComponent {
|
|
1357
1310
|
constructor(errorService, snackBarService) {
|
|
@@ -1425,7 +1378,7 @@ class VcErrorHandlersComponent {
|
|
|
1425
1378
|
*ngIf="chunkUnavailable"
|
|
1426
1379
|
></lib-vc-error-chunk-unavailable>
|
|
1427
1380
|
<lib-vc-error-server-error *ngIf="serverError"></lib-vc-error-server-error>
|
|
1428
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
1381
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: SnackBarComponent, selector: "app-snack-bar" }, { kind: "component", type: UnauthorizedComponent, selector: "lib-vc-error-unauthorized" }, { kind: "component", type: SessionExpiredComponent, selector: "lib-vc-error-session-expired" }, { kind: "component", type: ChunkUnavailableComponent, selector: "lib-vc-error-chunk-unavailable" }, { kind: "component", type: ServerErrorComponent, selector: "lib-vc-error-server-error" }] }); }
|
|
1429
1382
|
}
|
|
1430
1383
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: VcErrorHandlersComponent, decorators: [{
|
|
1431
1384
|
type: Component,
|
|
@@ -1446,22 +1399,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1446
1399
|
}], ctorParameters: function () { return [{ type: GlobalErrorService }, { type: SnackBarService }]; } });
|
|
1447
1400
|
|
|
1448
1401
|
class PageNotFoundComponent {
|
|
1449
|
-
constructor(route
|
|
1402
|
+
constructor(route) {
|
|
1450
1403
|
this.route = route;
|
|
1451
|
-
this.assetUrlService = assetUrlService;
|
|
1452
1404
|
this.errorConfig = ERROR_CONFIG.PAGE_NOT_FOUND;
|
|
1453
1405
|
this.VcomplyLogo = VCOMPLY_LOGO_URL;
|
|
1454
1406
|
this.altImageText = ALT_IMAGE_TEXT;
|
|
1455
1407
|
this.currentYear = new Date().getFullYear();
|
|
1456
1408
|
this.redirectionUrl = REDIRECTION_URL;
|
|
1457
1409
|
this.organisationName = ORGANISATION_NAME;
|
|
1458
|
-
this.fullVcomplyLogo = '';
|
|
1459
|
-
this.fullErrorImageUrl = '';
|
|
1460
|
-
this.getAssetUrl();
|
|
1461
|
-
}
|
|
1462
|
-
getAssetUrl() {
|
|
1463
|
-
this.fullVcomplyLogo = this.assetUrlService.getFullUrl(VCOMPLY_LOGO_URL);
|
|
1464
|
-
this.fullErrorImageUrl = this.assetUrlService.getFullUrl(this.errorConfig.imageUrl);
|
|
1465
1410
|
}
|
|
1466
1411
|
redirectToHome() {
|
|
1467
1412
|
const module_name = this.route.snapshot.data['page_path'];
|
|
@@ -1479,12 +1424,12 @@ class PageNotFoundComponent {
|
|
|
1479
1424
|
}
|
|
1480
1425
|
window.location.replace(targetPath);
|
|
1481
1426
|
}
|
|
1482
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PageNotFoundComponent, deps: [{ token: i3.ActivatedRoute }
|
|
1427
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PageNotFoundComponent, deps: [{ token: i3.ActivatedRoute }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1483
1428
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: PageNotFoundComponent, selector: "lib-vc-error-page-not-found", ngImport: i0, template: `
|
|
1484
1429
|
<div class="errorPage">
|
|
1485
1430
|
<div class="errorPage-top">
|
|
1486
1431
|
<img
|
|
1487
|
-
[ngSrc]="
|
|
1432
|
+
[ngSrc]="VcomplyLogo"
|
|
1488
1433
|
[alt]="altImageText.VCOMPLY_LOGO"
|
|
1489
1434
|
width="24"
|
|
1490
1435
|
height="24"
|
|
@@ -1494,7 +1439,7 @@ class PageNotFoundComponent {
|
|
|
1494
1439
|
<div class="errorPage-inner">
|
|
1495
1440
|
<div class="errorPage-inner-image">
|
|
1496
1441
|
<img
|
|
1497
|
-
[ngSrc]="
|
|
1442
|
+
[ngSrc]="errorConfig.imageUrl"
|
|
1498
1443
|
[alt]="altImageText.ERROR_IMAGE"
|
|
1499
1444
|
width="246"
|
|
1500
1445
|
height="178"
|
|
@@ -1514,7 +1459,7 @@ class PageNotFoundComponent {
|
|
|
1514
1459
|
</div>
|
|
1515
1460
|
</div>
|
|
1516
1461
|
</div>
|
|
1517
|
-
`, isInline: true, styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";.errorPage{background:#161b2f;position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999}.errorPage-top{width:100%;height:3rem;display:flex;align-items:center;padding-left:.75rem}.errorPage-container{background:#f2f2f5;border-radius:.75rem;border:1px solid #e3e3e9;box-shadow:0 4px 8px #1d5dd31a;height:calc(100vh - 3.75rem);display:flex;align-items:center;justify-content:center;padding:0 4rem;margin:0 .75rem;position:relative}.errorPage-inner{display:flex;align-items:center}.errorPage-inner-image{width:16rem}.errorPage-inner-right{margin-left:2rem;width:calc(100% - 18rem)}.errorPage-inner-right .errorPage-heading{-webkit-text-fill-color:#e3e3e9;-webkit-text-stroke-color:#a9aab6;-webkit-text-stroke-width:1px;color:#e3e3e9;font-size:78px;font-weight:700;line-height:110px;margin-bottom:1.5rem}.errorPage-inner-right .errorPage-text{color:#141724;font-size:19px;font-weight:500;line-height:1.75rem;margin-bottom:.5rem}.errorPage-inner-right .errorPage-details{color:#565a6f;font-size:13px;line-height:20px;margin-bottom:1.75rem}.errorPage-inner-right .errorPage-btn{background:#1e5dd3;border-radius:.25rem;border:none;color:#fff;display:inline-flex;align-items:center;font-size:11px;font-weight:500;line-height:2rem;padding:0 1rem}.errorPage-inner-right .errorPage-btn i{font-size:14px;margin-left:.25rem}.errorPage-copyright{font-size:11px;color:#787a8c;font-weight:500;position:absolute;bottom:8px;right:16px;line-height:16px}\n"], dependencies: [{ kind: "directive", type:
|
|
1462
|
+
`, isInline: true, styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";.errorPage{background:#161b2f;position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999}.errorPage-top{width:100%;height:3rem;display:flex;align-items:center;padding-left:.75rem}.errorPage-container{background:#f2f2f5;border-radius:.75rem;border:1px solid #e3e3e9;box-shadow:0 4px 8px #1d5dd31a;height:calc(100vh - 3.75rem);display:flex;align-items:center;justify-content:center;padding:0 4rem;margin:0 .75rem;position:relative}.errorPage-inner{display:flex;align-items:center}.errorPage-inner-image{width:16rem}.errorPage-inner-right{margin-left:2rem;width:calc(100% - 18rem)}.errorPage-inner-right .errorPage-heading{-webkit-text-fill-color:#e3e3e9;-webkit-text-stroke-color:#a9aab6;-webkit-text-stroke-width:1px;color:#e3e3e9;font-size:78px;font-weight:700;line-height:110px;margin-bottom:1.5rem}.errorPage-inner-right .errorPage-text{color:#141724;font-size:19px;font-weight:500;line-height:1.75rem;margin-bottom:.5rem}.errorPage-inner-right .errorPage-details{color:#565a6f;font-size:13px;line-height:20px;margin-bottom:1.75rem}.errorPage-inner-right .errorPage-btn{background:#1e5dd3;border-radius:.25rem;border:none;color:#fff;display:inline-flex;align-items:center;font-size:11px;font-weight:500;line-height:2rem;padding:0 1rem}.errorPage-inner-right .errorPage-btn i{font-size:14px;margin-left:.25rem}.errorPage-copyright{font-size:11px;color:#787a8c;font-weight:500;position:absolute;bottom:8px;right:16px;line-height:16px}\n"], dependencies: [{ kind: "directive", type: i1.NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "src", "srcset"] }] }); }
|
|
1518
1463
|
}
|
|
1519
1464
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PageNotFoundComponent, decorators: [{
|
|
1520
1465
|
type: Component,
|
|
@@ -1522,7 +1467,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1522
1467
|
<div class="errorPage">
|
|
1523
1468
|
<div class="errorPage-top">
|
|
1524
1469
|
<img
|
|
1525
|
-
[ngSrc]="
|
|
1470
|
+
[ngSrc]="VcomplyLogo"
|
|
1526
1471
|
[alt]="altImageText.VCOMPLY_LOGO"
|
|
1527
1472
|
width="24"
|
|
1528
1473
|
height="24"
|
|
@@ -1532,7 +1477,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1532
1477
|
<div class="errorPage-inner">
|
|
1533
1478
|
<div class="errorPage-inner-image">
|
|
1534
1479
|
<img
|
|
1535
|
-
[ngSrc]="
|
|
1480
|
+
[ngSrc]="errorConfig.imageUrl"
|
|
1536
1481
|
[alt]="altImageText.ERROR_IMAGE"
|
|
1537
1482
|
width="246"
|
|
1538
1483
|
height="178"
|
|
@@ -1553,27 +1498,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1553
1498
|
</div>
|
|
1554
1499
|
</div>
|
|
1555
1500
|
`, styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";.errorPage{background:#161b2f;position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:9999}.errorPage-top{width:100%;height:3rem;display:flex;align-items:center;padding-left:.75rem}.errorPage-container{background:#f2f2f5;border-radius:.75rem;border:1px solid #e3e3e9;box-shadow:0 4px 8px #1d5dd31a;height:calc(100vh - 3.75rem);display:flex;align-items:center;justify-content:center;padding:0 4rem;margin:0 .75rem;position:relative}.errorPage-inner{display:flex;align-items:center}.errorPage-inner-image{width:16rem}.errorPage-inner-right{margin-left:2rem;width:calc(100% - 18rem)}.errorPage-inner-right .errorPage-heading{-webkit-text-fill-color:#e3e3e9;-webkit-text-stroke-color:#a9aab6;-webkit-text-stroke-width:1px;color:#e3e3e9;font-size:78px;font-weight:700;line-height:110px;margin-bottom:1.5rem}.errorPage-inner-right .errorPage-text{color:#141724;font-size:19px;font-weight:500;line-height:1.75rem;margin-bottom:.5rem}.errorPage-inner-right .errorPage-details{color:#565a6f;font-size:13px;line-height:20px;margin-bottom:1.75rem}.errorPage-inner-right .errorPage-btn{background:#1e5dd3;border-radius:.25rem;border:none;color:#fff;display:inline-flex;align-items:center;font-size:11px;font-weight:500;line-height:2rem;padding:0 1rem}.errorPage-inner-right .errorPage-btn i{font-size:14px;margin-left:.25rem}.errorPage-copyright{font-size:11px;color:#787a8c;font-weight:500;position:absolute;bottom:8px;right:16px;line-height:16px}\n"] }]
|
|
1556
|
-
}], ctorParameters: function () { return [{ type: i3.ActivatedRoute }
|
|
1501
|
+
}], ctorParameters: function () { return [{ type: i3.ActivatedRoute }]; } });
|
|
1557
1502
|
|
|
1558
1503
|
class ComponentLevelServerErrorComponent {
|
|
1559
|
-
constructor(
|
|
1560
|
-
this.assetUrlService = assetUrlService;
|
|
1504
|
+
constructor() {
|
|
1561
1505
|
this.errorConfig = ERROR_CONFIG.COMPONENT_LEVEL_SERVER_ERROR;
|
|
1562
1506
|
this.altImageText = ALT_IMAGE_TEXT;
|
|
1563
|
-
this.fullErrorImageUrl = '';
|
|
1564
1507
|
this.onClick = new EventEmitter();
|
|
1565
|
-
this.getAssetsUrl();
|
|
1566
1508
|
}
|
|
1567
|
-
|
|
1568
|
-
this.fullErrorImageUrl = this.assetUrlService.getFullUrl(this.errorConfig.imageUrl);
|
|
1569
|
-
}
|
|
1570
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ComponentLevelServerErrorComponent, deps: [{ token: AssetUrlService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1509
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ComponentLevelServerErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1571
1510
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ComponentLevelServerErrorComponent, selector: "lib-vc-error-component-server-error", outputs: { onClick: "onClick" }, ngImport: i0, template: `
|
|
1572
1511
|
<div class="serverError">
|
|
1573
1512
|
<div class="serverError-inner">
|
|
1574
1513
|
<div class="serverError-inner-image">
|
|
1575
1514
|
<img
|
|
1576
|
-
[ngSrc]="
|
|
1515
|
+
[ngSrc]="errorConfig.imageUrl"
|
|
1577
1516
|
[alt]="altImageText.ERROR_IMAGE"
|
|
1578
1517
|
width="106"
|
|
1579
1518
|
height="76"
|
|
@@ -1590,7 +1529,7 @@ class ComponentLevelServerErrorComponent {
|
|
|
1590
1529
|
</div>
|
|
1591
1530
|
</div>
|
|
1592
1531
|
</div>
|
|
1593
|
-
`, isInline: true, styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";.serverError{background:#fff;display:flex;align-items:center;justify-content:center;border-radius:2px;width:100%;height:100%}.serverError-inner{text-align:center}.serverError-inner-image{width:16rem;margin:0 auto}.serverError-inner-bottom{margin-top:1rem}.serverError-inner-bottom .serverError-heading{-webkit-text-fill-color:#e3e3e9;-webkit-text-stroke-color:#a9aab6;-webkit-text-stroke-width:1px;color:#e3e3e9;font-size:40px;font-weight:700;line-height:56px;margin-bottom:1.5rem}.serverError-inner-bottom .serverError-text{color:#141724;font-size:19px;font-weight:500;line-height:1.75rem;margin-bottom:.5rem}.serverError-inner-bottom .serverError-details{color:#565a6f;font-size:13px;line-height:20px;margin-bottom:2rem}.serverError-inner-bottom .serverError-btn{background:#1e5dd3;border-radius:.25rem;border:none;color:#fff;display:inline-flex;align-items:center;font-size:11px;font-weight:500;line-height:2rem;padding:0 1rem}.serverError-inner-bottom .serverError-btn i{font-size:12px;margin-left:8px}\n"], dependencies: [{ kind: "directive", type:
|
|
1532
|
+
`, isInline: true, styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";.serverError{background:#fff;display:flex;align-items:center;justify-content:center;border-radius:2px;width:100%;height:100%}.serverError-inner{text-align:center}.serverError-inner-image{width:16rem;margin:0 auto}.serverError-inner-bottom{margin-top:1rem}.serverError-inner-bottom .serverError-heading{-webkit-text-fill-color:#e3e3e9;-webkit-text-stroke-color:#a9aab6;-webkit-text-stroke-width:1px;color:#e3e3e9;font-size:40px;font-weight:700;line-height:56px;margin-bottom:1.5rem}.serverError-inner-bottom .serverError-text{color:#141724;font-size:19px;font-weight:500;line-height:1.75rem;margin-bottom:.5rem}.serverError-inner-bottom .serverError-details{color:#565a6f;font-size:13px;line-height:20px;margin-bottom:2rem}.serverError-inner-bottom .serverError-btn{background:#1e5dd3;border-radius:.25rem;border:none;color:#fff;display:inline-flex;align-items:center;font-size:11px;font-weight:500;line-height:2rem;padding:0 1rem}.serverError-inner-bottom .serverError-btn i{font-size:12px;margin-left:8px}\n"], dependencies: [{ kind: "directive", type: i1.NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "src", "srcset"] }] }); }
|
|
1594
1533
|
}
|
|
1595
1534
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ComponentLevelServerErrorComponent, decorators: [{
|
|
1596
1535
|
type: Component,
|
|
@@ -1599,7 +1538,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1599
1538
|
<div class="serverError-inner">
|
|
1600
1539
|
<div class="serverError-inner-image">
|
|
1601
1540
|
<img
|
|
1602
|
-
[ngSrc]="
|
|
1541
|
+
[ngSrc]="errorConfig.imageUrl"
|
|
1603
1542
|
[alt]="altImageText.ERROR_IMAGE"
|
|
1604
1543
|
width="106"
|
|
1605
1544
|
height="76"
|
|
@@ -1617,7 +1556,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1617
1556
|
</div>
|
|
1618
1557
|
</div>
|
|
1619
1558
|
`, styles: ["@import\"https://cdn.v-comply.com/design-system/css/icons/icons.css\";.serverError{background:#fff;display:flex;align-items:center;justify-content:center;border-radius:2px;width:100%;height:100%}.serverError-inner{text-align:center}.serverError-inner-image{width:16rem;margin:0 auto}.serverError-inner-bottom{margin-top:1rem}.serverError-inner-bottom .serverError-heading{-webkit-text-fill-color:#e3e3e9;-webkit-text-stroke-color:#a9aab6;-webkit-text-stroke-width:1px;color:#e3e3e9;font-size:40px;font-weight:700;line-height:56px;margin-bottom:1.5rem}.serverError-inner-bottom .serverError-text{color:#141724;font-size:19px;font-weight:500;line-height:1.75rem;margin-bottom:.5rem}.serverError-inner-bottom .serverError-details{color:#565a6f;font-size:13px;line-height:20px;margin-bottom:2rem}.serverError-inner-bottom .serverError-btn{background:#1e5dd3;border-radius:.25rem;border:none;color:#fff;display:inline-flex;align-items:center;font-size:11px;font-weight:500;line-height:2rem;padding:0 1rem}.serverError-inner-bottom .serverError-btn i{font-size:12px;margin-left:8px}\n"] }]
|
|
1620
|
-
}],
|
|
1559
|
+
}], propDecorators: { onClick: [{
|
|
1621
1560
|
type: Output
|
|
1622
1561
|
}] } });
|
|
1623
1562
|
|
|
@@ -1635,6 +1574,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1635
1574
|
}]
|
|
1636
1575
|
}] });
|
|
1637
1576
|
|
|
1577
|
+
class Configurations {
|
|
1578
|
+
constructor() {
|
|
1579
|
+
this.sentryConfig = {};
|
|
1580
|
+
this.envConfig = {};
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
|
|
1638
1584
|
class FeatureFlagService {
|
|
1639
1585
|
constructor(http, authorizer, config) {
|
|
1640
1586
|
this.http = http;
|
|
@@ -1715,7 +1661,7 @@ class FeatureFlagService {
|
|
|
1715
1661
|
return true;
|
|
1716
1662
|
}
|
|
1717
1663
|
}
|
|
1718
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FeatureFlagService, deps: [{ token: i1$
|
|
1664
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FeatureFlagService, deps: [{ token: i1$2.HttpClient }, { token: i1$1.AuthorizerService }, { token: Configurations, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1719
1665
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FeatureFlagService, providedIn: 'root' }); }
|
|
1720
1666
|
}
|
|
1721
1667
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FeatureFlagService, decorators: [{
|
|
@@ -1723,7 +1669,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1723
1669
|
args: [{
|
|
1724
1670
|
providedIn: 'root',
|
|
1725
1671
|
}]
|
|
1726
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
1672
|
+
}], ctorParameters: function () { return [{ type: i1$2.HttpClient }, { type: i1$1.AuthorizerService }, { type: Configurations, decorators: [{
|
|
1727
1673
|
type: Optional
|
|
1728
1674
|
}] }]; } });
|
|
1729
1675
|
|
|
@@ -1799,12 +1745,12 @@ class SentryErrorHandler {
|
|
|
1799
1745
|
window.location.reload();
|
|
1800
1746
|
}
|
|
1801
1747
|
}
|
|
1802
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SentryErrorHandler, deps: [{ token: i1.AuthorizerService }, { token: GlobalErrorService }, { token: Configurations, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1748
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SentryErrorHandler, deps: [{ token: i1$1.AuthorizerService }, { token: GlobalErrorService }, { token: Configurations, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1803
1749
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SentryErrorHandler }); }
|
|
1804
1750
|
}
|
|
1805
1751
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SentryErrorHandler, decorators: [{
|
|
1806
1752
|
type: Injectable
|
|
1807
|
-
}], ctorParameters: function () { return [{ type: i1.AuthorizerService }, { type: GlobalErrorService }, { type: Configurations, decorators: [{
|
|
1753
|
+
}], ctorParameters: function () { return [{ type: i1$1.AuthorizerService }, { type: GlobalErrorService }, { type: Configurations, decorators: [{
|
|
1808
1754
|
type: Optional
|
|
1809
1755
|
}] }]; } });
|
|
1810
1756
|
|