vc-error-handlers 0.2.2 → 0.2.3
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 +16 -10
- package/esm2022/lib/shared/components/page-not-found/page-not-found.component.mjs +19 -10
- package/esm2022/lib/shared/components/server-error/server-error.component.mjs +19 -10
- package/esm2022/lib/shared/components/unauthorized/unauthorized.component.mjs +19 -10
- package/esm2022/lib/shared/constants/api-config.constants.mjs +4 -4
- package/esm2022/lib/shared/constants/assets.constants.mjs +4 -7
- package/esm2022/lib/shared/services/assets-url.service.mjs +23 -0
- package/fesm2022/vc-error-handlers.mjs +106 -59
- package/fesm2022/vc-error-handlers.mjs.map +1 -1
- package/lib/shared/components/component-level-server-error/component-level-server-error.component.d.ts +5 -1
- package/lib/shared/components/page-not-found/page-not-found.component.d.ts +6 -1
- package/lib/shared/components/server-error/server-error.component.d.ts +6 -0
- package/lib/shared/components/unauthorized/unauthorized.component.d.ts +6 -0
- package/lib/shared/services/assets-url.service.d.ts +9 -0
- package/package.json +1 -1
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Injectable, Component, Input, Directive, ViewChild, NgModule, EventEmitter, Output,
|
|
2
|
+
import { Injectable, Component, Optional, Input, Directive, ViewChild, NgModule, EventEmitter, Output, 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 i2 from '@angular/common';
|
|
7
7
|
import { CommonModule, NgOptimizedImage } from '@angular/common';
|
|
8
|
-
import * as i1
|
|
9
|
-
import * as i1$
|
|
8
|
+
import * as i1 from '@vcomply/authorizer';
|
|
9
|
+
import * as i1$1 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';
|
|
@@ -41,11 +41,11 @@ var ErrorStatusCode;
|
|
|
41
41
|
|
|
42
42
|
const PAGE_LEVEL_API_CONFIG = [
|
|
43
43
|
{
|
|
44
|
-
method: '',
|
|
45
|
-
path: '',
|
|
44
|
+
method: 'GET',
|
|
45
|
+
path: '/compliance/?mode=reports/getReportDetailsByDuedateId',
|
|
46
46
|
query: null,
|
|
47
47
|
body: null,
|
|
48
|
-
pageCodes: [''],
|
|
48
|
+
pageCodes: ['compliance: SAP'],
|
|
49
49
|
},
|
|
50
50
|
];
|
|
51
51
|
const COMPONENT_LEVEL_API_CONFIG = [
|
|
@@ -604,19 +604,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
604
604
|
}]
|
|
605
605
|
}] });
|
|
606
606
|
|
|
607
|
-
class Configurations {
|
|
608
|
-
constructor() {
|
|
609
|
-
this.sentryConfig = {};
|
|
610
|
-
this.envConfig = {};
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
const env = new Configurations();
|
|
615
|
-
const BASE_URL = env?.envConfig?.cdnUrl;
|
|
616
607
|
const ASSETS = {
|
|
617
|
-
VCOMPLY_LOGO:
|
|
618
|
-
ERROR_IMAGE:
|
|
619
|
-
COMPONENT_ERROR_IMAGE:
|
|
608
|
+
VCOMPLY_LOGO: `/logo/prod/v-logo.svg`,
|
|
609
|
+
ERROR_IMAGE: `/application/images/Error-page-illustration.svg`,
|
|
610
|
+
COMPONENT_ERROR_IMAGE: `/application/images/sad-emoji-icon.svg`,
|
|
620
611
|
};
|
|
621
612
|
|
|
622
613
|
const VCOMPLY_LOGO_URL = ASSETS.VCOMPLY_LOGO;
|
|
@@ -727,30 +718,65 @@ class SnackBarComponent {
|
|
|
727
718
|
this.snackbarSubscription.unsubscribe();
|
|
728
719
|
}
|
|
729
720
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SnackBarComponent, deps: [{ token: SnackBarService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
730
|
-
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:
|
|
721
|
+
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: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] }); }
|
|
731
722
|
}
|
|
732
723
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SnackBarComponent, decorators: [{
|
|
733
724
|
type: Component,
|
|
734
725
|
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"] }]
|
|
735
726
|
}], ctorParameters: function () { return [{ type: SnackBarService }]; } });
|
|
736
727
|
|
|
737
|
-
class
|
|
728
|
+
class Configurations {
|
|
738
729
|
constructor() {
|
|
730
|
+
this.sentryConfig = {};
|
|
731
|
+
this.envConfig = {};
|
|
732
|
+
}
|
|
733
|
+
}
|
|
734
|
+
|
|
735
|
+
class AssetUrlService {
|
|
736
|
+
constructor(config) {
|
|
737
|
+
this.BASE_URL = '';
|
|
738
|
+
this.BASE_URL = config?.envConfig?.cdnUrl || '';
|
|
739
|
+
}
|
|
740
|
+
getFullUrl(relativePath) {
|
|
741
|
+
return `${this.BASE_URL}${relativePath}`;
|
|
742
|
+
}
|
|
743
|
+
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 }); }
|
|
744
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AssetUrlService, providedIn: 'root' }); }
|
|
745
|
+
}
|
|
746
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AssetUrlService, decorators: [{
|
|
747
|
+
type: Injectable,
|
|
748
|
+
args: [{
|
|
749
|
+
providedIn: 'root',
|
|
750
|
+
}]
|
|
751
|
+
}], ctorParameters: function () { return [{ type: Configurations, decorators: [{
|
|
752
|
+
type: Optional
|
|
753
|
+
}] }]; } });
|
|
754
|
+
|
|
755
|
+
class UnauthorizedComponent {
|
|
756
|
+
constructor(assetUrlService) {
|
|
757
|
+
this.assetUrlService = assetUrlService;
|
|
739
758
|
this.currentYear = new Date().getFullYear();
|
|
740
759
|
this.errorConfig = ERROR_CONFIG.UNAUTHORIZED;
|
|
741
760
|
this.VcomplyLogo = VCOMPLY_LOGO_URL;
|
|
742
761
|
this.altImageText = ALT_IMAGE_TEXT;
|
|
743
762
|
this.organisationName = ORGANISATION_NAME;
|
|
763
|
+
this.fullVcomplyLogo = '';
|
|
764
|
+
this.fullErrorImageUrl = '';
|
|
765
|
+
this.getAssetsUrl();
|
|
766
|
+
}
|
|
767
|
+
getAssetsUrl() {
|
|
768
|
+
this.fullVcomplyLogo = this.assetUrlService.getFullUrl(this.VcomplyLogo);
|
|
769
|
+
this.fullErrorImageUrl = this.assetUrlService.getFullUrl(this.errorConfig.imageUrl);
|
|
744
770
|
}
|
|
745
771
|
redirectToSupport() {
|
|
746
772
|
window.location.href = this.errorConfig.mail;
|
|
747
773
|
}
|
|
748
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UnauthorizedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
774
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UnauthorizedComponent, deps: [{ token: AssetUrlService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
749
775
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: UnauthorizedComponent, selector: "lib-vc-error-unauthorized", ngImport: i0, template: `
|
|
750
776
|
<div class="errorPage">
|
|
751
777
|
<div class="errorPage-top">
|
|
752
778
|
<img
|
|
753
|
-
[ngSrc]="
|
|
779
|
+
[ngSrc]="fullVcomplyLogo"
|
|
754
780
|
[alt]="altImageText.VCOMPLY_LOGO"
|
|
755
781
|
width="24"
|
|
756
782
|
height="24"
|
|
@@ -760,7 +786,7 @@ class UnauthorizedComponent {
|
|
|
760
786
|
<div class="errorPage-inner">
|
|
761
787
|
<div class="errorPage-inner-image">
|
|
762
788
|
<img
|
|
763
|
-
[ngSrc]="
|
|
789
|
+
[ngSrc]="fullErrorImageUrl"
|
|
764
790
|
[alt]="altImageText.ERROR_IMAGE"
|
|
765
791
|
width="246"
|
|
766
792
|
height="178"
|
|
@@ -786,7 +812,7 @@ class UnauthorizedComponent {
|
|
|
786
812
|
</div>
|
|
787
813
|
</div>
|
|
788
814
|
</div>
|
|
789
|
-
`, 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:
|
|
815
|
+
`, 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: i2.NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "src", "srcset"] }] }); }
|
|
790
816
|
}
|
|
791
817
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UnauthorizedComponent, decorators: [{
|
|
792
818
|
type: Component,
|
|
@@ -794,7 +820,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
794
820
|
<div class="errorPage">
|
|
795
821
|
<div class="errorPage-top">
|
|
796
822
|
<img
|
|
797
|
-
[ngSrc]="
|
|
823
|
+
[ngSrc]="fullVcomplyLogo"
|
|
798
824
|
[alt]="altImageText.VCOMPLY_LOGO"
|
|
799
825
|
width="24"
|
|
800
826
|
height="24"
|
|
@@ -804,7 +830,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
804
830
|
<div class="errorPage-inner">
|
|
805
831
|
<div class="errorPage-inner-image">
|
|
806
832
|
<img
|
|
807
|
-
[ngSrc]="
|
|
833
|
+
[ngSrc]="fullErrorImageUrl"
|
|
808
834
|
[alt]="altImageText.ERROR_IMAGE"
|
|
809
835
|
width="246"
|
|
810
836
|
height="178"
|
|
@@ -831,7 +857,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
831
857
|
</div>
|
|
832
858
|
</div>
|
|
833
859
|
`, 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"] }]
|
|
834
|
-
}] });
|
|
860
|
+
}], ctorParameters: function () { return [{ type: AssetUrlService }]; } });
|
|
835
861
|
|
|
836
862
|
class DialogConfig {
|
|
837
863
|
}
|
|
@@ -864,7 +890,7 @@ class ErrorModalComponent {
|
|
|
864
890
|
break;
|
|
865
891
|
}
|
|
866
892
|
}
|
|
867
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ErrorModalComponent, deps: [{ token: i1
|
|
893
|
+
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 }); }
|
|
868
894
|
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">
|
|
869
895
|
<div class="error-dialog-box-top">{{ data.heading }}</div>
|
|
870
896
|
<div class="error-dialog-box-mid">
|
|
@@ -890,7 +916,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
890
916
|
</button>
|
|
891
917
|
</div>
|
|
892
918
|
</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"] }]
|
|
893
|
-
}], ctorParameters: function () { return [{ type: i1
|
|
919
|
+
}], ctorParameters: function () { return [{ type: i1.AuthorizerService }, { type: DialogConfig }, { type: RouterService }]; }, propDecorators: { errorType: [{
|
|
894
920
|
type: Input
|
|
895
921
|
}] } });
|
|
896
922
|
|
|
@@ -985,7 +1011,7 @@ class DialogComponent {
|
|
|
985
1011
|
document.body.style.overflow = 'auto';
|
|
986
1012
|
}
|
|
987
1013
|
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 }); }
|
|
988
|
-
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:
|
|
1014
|
+
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: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: InsertionDirective, selector: "[appInsertion]" }] }); }
|
|
989
1015
|
}
|
|
990
1016
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogComponent, decorators: [{
|
|
991
1017
|
type: Component,
|
|
@@ -1131,20 +1157,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1131
1157
|
}], ctorParameters: function () { return [{ type: DialogService }]; } });
|
|
1132
1158
|
|
|
1133
1159
|
class ServerErrorComponent {
|
|
1134
|
-
constructor() {
|
|
1160
|
+
constructor(assetUrlService) {
|
|
1161
|
+
this.assetUrlService = assetUrlService;
|
|
1135
1162
|
this.errorConfig = ERROR_CONFIG.SERVER_ERROR;
|
|
1136
1163
|
this.VcomplyLogo = VCOMPLY_LOGO_URL;
|
|
1137
1164
|
this.altImageText = ALT_IMAGE_TEXT;
|
|
1165
|
+
this.fullVcomplyLogo = '';
|
|
1166
|
+
this.fullErrorImageUrl = '';
|
|
1167
|
+
this.getAssetsUrl();
|
|
1168
|
+
}
|
|
1169
|
+
getAssetsUrl() {
|
|
1170
|
+
this.fullVcomplyLogo = this.assetUrlService.getFullUrl(this.VcomplyLogo);
|
|
1171
|
+
this.fullErrorImageUrl = this.assetUrlService.getFullUrl(this.errorConfig.imageUrl);
|
|
1138
1172
|
}
|
|
1139
1173
|
refreshPage() {
|
|
1140
1174
|
window.location.reload();
|
|
1141
1175
|
}
|
|
1142
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ServerErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1176
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ServerErrorComponent, deps: [{ token: AssetUrlService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1143
1177
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: ServerErrorComponent, selector: "lib-vc-error-server-error", ngImport: i0, template: `
|
|
1144
1178
|
<div class="errorPage">
|
|
1145
1179
|
<div class="errorPage-top">
|
|
1146
1180
|
<img
|
|
1147
|
-
[ngSrc]="
|
|
1181
|
+
[ngSrc]="fullVcomplyLogo"
|
|
1148
1182
|
[alt]="altImageText.VCOMPLY_LOGO"
|
|
1149
1183
|
width="24"
|
|
1150
1184
|
height="24"
|
|
@@ -1154,7 +1188,7 @@ class ServerErrorComponent {
|
|
|
1154
1188
|
<div class="errorPage-inner">
|
|
1155
1189
|
<div class="errorPage-inner-image">
|
|
1156
1190
|
<img
|
|
1157
|
-
[ngSrc]="
|
|
1191
|
+
[ngSrc]="fullErrorImageUrl"
|
|
1158
1192
|
[alt]="altImageText.ERROR_IMAGE"
|
|
1159
1193
|
width="246"
|
|
1160
1194
|
height="178"
|
|
@@ -1171,7 +1205,7 @@ class ServerErrorComponent {
|
|
|
1171
1205
|
</div>
|
|
1172
1206
|
</div>
|
|
1173
1207
|
</div>
|
|
1174
|
-
`, 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:
|
|
1208
|
+
`, 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: i2.NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "src", "srcset"] }] }); }
|
|
1175
1209
|
}
|
|
1176
1210
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ServerErrorComponent, decorators: [{
|
|
1177
1211
|
type: Component,
|
|
@@ -1179,7 +1213,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1179
1213
|
<div class="errorPage">
|
|
1180
1214
|
<div class="errorPage-top">
|
|
1181
1215
|
<img
|
|
1182
|
-
[ngSrc]="
|
|
1216
|
+
[ngSrc]="fullVcomplyLogo"
|
|
1183
1217
|
[alt]="altImageText.VCOMPLY_LOGO"
|
|
1184
1218
|
width="24"
|
|
1185
1219
|
height="24"
|
|
@@ -1189,7 +1223,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1189
1223
|
<div class="errorPage-inner">
|
|
1190
1224
|
<div class="errorPage-inner-image">
|
|
1191
1225
|
<img
|
|
1192
|
-
[ngSrc]="
|
|
1226
|
+
[ngSrc]="fullErrorImageUrl"
|
|
1193
1227
|
[alt]="altImageText.ERROR_IMAGE"
|
|
1194
1228
|
width="246"
|
|
1195
1229
|
height="178"
|
|
@@ -1207,7 +1241,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1207
1241
|
</div>
|
|
1208
1242
|
</div>
|
|
1209
1243
|
`, 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"] }]
|
|
1210
|
-
}] });
|
|
1244
|
+
}], ctorParameters: function () { return [{ type: AssetUrlService }]; } });
|
|
1211
1245
|
|
|
1212
1246
|
class VcErrorHandlersComponent {
|
|
1213
1247
|
constructor(errorService, snackBarService) {
|
|
@@ -1281,7 +1315,7 @@ class VcErrorHandlersComponent {
|
|
|
1281
1315
|
*ngIf="chunkUnavailable"
|
|
1282
1316
|
></lib-vc-error-chunk-unavailable>
|
|
1283
1317
|
<lib-vc-error-server-error *ngIf="serverError"></lib-vc-error-server-error>
|
|
1284
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
1318
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.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" }] }); }
|
|
1285
1319
|
}
|
|
1286
1320
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: VcErrorHandlersComponent, decorators: [{
|
|
1287
1321
|
type: Component,
|
|
@@ -1302,14 +1336,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1302
1336
|
}], ctorParameters: function () { return [{ type: GlobalErrorService }, { type: SnackBarService }]; } });
|
|
1303
1337
|
|
|
1304
1338
|
class PageNotFoundComponent {
|
|
1305
|
-
constructor(route) {
|
|
1339
|
+
constructor(route, assetUrlService) {
|
|
1306
1340
|
this.route = route;
|
|
1341
|
+
this.assetUrlService = assetUrlService;
|
|
1307
1342
|
this.errorConfig = ERROR_CONFIG.PAGE_NOT_FOUND;
|
|
1308
1343
|
this.VcomplyLogo = VCOMPLY_LOGO_URL;
|
|
1309
1344
|
this.altImageText = ALT_IMAGE_TEXT;
|
|
1310
1345
|
this.currentYear = new Date().getFullYear();
|
|
1311
1346
|
this.redirectionUrl = REDIRECTION_URL;
|
|
1312
1347
|
this.organisationName = ORGANISATION_NAME;
|
|
1348
|
+
this.fullVcomplyLogo = '';
|
|
1349
|
+
this.fullErrorImageUrl = '';
|
|
1350
|
+
this.getAssetUrl();
|
|
1351
|
+
}
|
|
1352
|
+
getAssetUrl() {
|
|
1353
|
+
this.fullVcomplyLogo = this.assetUrlService.getFullUrl(VCOMPLY_LOGO_URL);
|
|
1354
|
+
this.fullErrorImageUrl = this.assetUrlService.getFullUrl(this.errorConfig.imageUrl);
|
|
1313
1355
|
}
|
|
1314
1356
|
redirectToHome() {
|
|
1315
1357
|
const module_name = this.route.snapshot.data['page_path'];
|
|
@@ -1327,12 +1369,12 @@ class PageNotFoundComponent {
|
|
|
1327
1369
|
}
|
|
1328
1370
|
window.location.replace(targetPath);
|
|
1329
1371
|
}
|
|
1330
|
-
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 }); }
|
|
1372
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PageNotFoundComponent, deps: [{ token: i3.ActivatedRoute }, { token: AssetUrlService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1331
1373
|
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: `
|
|
1332
1374
|
<div class="errorPage">
|
|
1333
1375
|
<div class="errorPage-top">
|
|
1334
1376
|
<img
|
|
1335
|
-
[ngSrc]="
|
|
1377
|
+
[ngSrc]="fullVcomplyLogo"
|
|
1336
1378
|
[alt]="altImageText.VCOMPLY_LOGO"
|
|
1337
1379
|
width="24"
|
|
1338
1380
|
height="24"
|
|
@@ -1342,7 +1384,7 @@ class PageNotFoundComponent {
|
|
|
1342
1384
|
<div class="errorPage-inner">
|
|
1343
1385
|
<div class="errorPage-inner-image">
|
|
1344
1386
|
<img
|
|
1345
|
-
[ngSrc]="
|
|
1387
|
+
[ngSrc]="fullErrorImageUrl"
|
|
1346
1388
|
[alt]="altImageText.ERROR_IMAGE"
|
|
1347
1389
|
width="246"
|
|
1348
1390
|
height="178"
|
|
@@ -1362,7 +1404,7 @@ class PageNotFoundComponent {
|
|
|
1362
1404
|
</div>
|
|
1363
1405
|
</div>
|
|
1364
1406
|
</div>
|
|
1365
|
-
`, 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:
|
|
1407
|
+
`, 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: i2.NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "src", "srcset"] }] }); }
|
|
1366
1408
|
}
|
|
1367
1409
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PageNotFoundComponent, decorators: [{
|
|
1368
1410
|
type: Component,
|
|
@@ -1370,7 +1412,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1370
1412
|
<div class="errorPage">
|
|
1371
1413
|
<div class="errorPage-top">
|
|
1372
1414
|
<img
|
|
1373
|
-
[ngSrc]="
|
|
1415
|
+
[ngSrc]="fullVcomplyLogo"
|
|
1374
1416
|
[alt]="altImageText.VCOMPLY_LOGO"
|
|
1375
1417
|
width="24"
|
|
1376
1418
|
height="24"
|
|
@@ -1380,7 +1422,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1380
1422
|
<div class="errorPage-inner">
|
|
1381
1423
|
<div class="errorPage-inner-image">
|
|
1382
1424
|
<img
|
|
1383
|
-
[ngSrc]="
|
|
1425
|
+
[ngSrc]="fullErrorImageUrl"
|
|
1384
1426
|
[alt]="altImageText.ERROR_IMAGE"
|
|
1385
1427
|
width="246"
|
|
1386
1428
|
height="178"
|
|
@@ -1401,22 +1443,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1401
1443
|
</div>
|
|
1402
1444
|
</div>
|
|
1403
1445
|
`, 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"] }]
|
|
1404
|
-
}], ctorParameters: function () { return [{ type: i3.ActivatedRoute }]; } });
|
|
1446
|
+
}], ctorParameters: function () { return [{ type: i3.ActivatedRoute }, { type: AssetUrlService }]; } });
|
|
1405
1447
|
|
|
1406
1448
|
class ComponentLevelServerErrorComponent {
|
|
1407
|
-
constructor() {
|
|
1449
|
+
constructor(assetUrlService) {
|
|
1450
|
+
this.assetUrlService = assetUrlService;
|
|
1408
1451
|
this.errorConfig = ERROR_CONFIG.COMPONENT_LEVEL_SERVER_ERROR;
|
|
1409
1452
|
this.altImageText = ALT_IMAGE_TEXT;
|
|
1410
|
-
this.
|
|
1453
|
+
this.fullErrorImageUrl = '';
|
|
1411
1454
|
this.onClick = new EventEmitter();
|
|
1455
|
+
this.getAssetsUrl();
|
|
1456
|
+
}
|
|
1457
|
+
getAssetsUrl() {
|
|
1458
|
+
this.fullErrorImageUrl = this.assetUrlService.getFullUrl(this.errorConfig.imageUrl);
|
|
1412
1459
|
}
|
|
1413
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ComponentLevelServerErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1460
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ComponentLevelServerErrorComponent, deps: [{ token: AssetUrlService }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1414
1461
|
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: `
|
|
1415
1462
|
<div class="serverError">
|
|
1416
1463
|
<div class="serverError-inner">
|
|
1417
1464
|
<div class="serverError-inner-image">
|
|
1418
1465
|
<img
|
|
1419
|
-
[ngSrc]="
|
|
1466
|
+
[ngSrc]="fullErrorImageUrl"
|
|
1420
1467
|
[alt]="altImageText.ERROR_IMAGE"
|
|
1421
1468
|
width="106"
|
|
1422
1469
|
height="76"
|
|
@@ -1433,7 +1480,7 @@ class ComponentLevelServerErrorComponent {
|
|
|
1433
1480
|
</div>
|
|
1434
1481
|
</div>
|
|
1435
1482
|
</div>
|
|
1436
|
-
`, 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:
|
|
1483
|
+
`, 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: i2.NgOptimizedImage, selector: "img[ngSrc]", inputs: ["ngSrc", "ngSrcset", "sizes", "width", "height", "loading", "priority", "loaderParams", "disableOptimizedSrcset", "fill", "src", "srcset"] }] }); }
|
|
1437
1484
|
}
|
|
1438
1485
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ComponentLevelServerErrorComponent, decorators: [{
|
|
1439
1486
|
type: Component,
|
|
@@ -1442,7 +1489,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1442
1489
|
<div class="serverError-inner">
|
|
1443
1490
|
<div class="serverError-inner-image">
|
|
1444
1491
|
<img
|
|
1445
|
-
[ngSrc]="
|
|
1492
|
+
[ngSrc]="fullErrorImageUrl"
|
|
1446
1493
|
[alt]="altImageText.ERROR_IMAGE"
|
|
1447
1494
|
width="106"
|
|
1448
1495
|
height="76"
|
|
@@ -1460,7 +1507,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1460
1507
|
</div>
|
|
1461
1508
|
</div>
|
|
1462
1509
|
`, 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"] }]
|
|
1463
|
-
}], propDecorators: { onClick: [{
|
|
1510
|
+
}], ctorParameters: function () { return [{ type: AssetUrlService }]; }, propDecorators: { onClick: [{
|
|
1464
1511
|
type: Output
|
|
1465
1512
|
}] } });
|
|
1466
1513
|
|
|
@@ -1558,7 +1605,7 @@ class FeatureFlagService {
|
|
|
1558
1605
|
return true;
|
|
1559
1606
|
}
|
|
1560
1607
|
}
|
|
1561
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FeatureFlagService, deps: [{ token: i1$
|
|
1608
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FeatureFlagService, deps: [{ token: i1$1.HttpClient }, { token: i1.AuthorizerService }, { token: Configurations, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1562
1609
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FeatureFlagService, providedIn: 'root' }); }
|
|
1563
1610
|
}
|
|
1564
1611
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FeatureFlagService, decorators: [{
|
|
@@ -1566,7 +1613,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1566
1613
|
args: [{
|
|
1567
1614
|
providedIn: 'root',
|
|
1568
1615
|
}]
|
|
1569
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
1616
|
+
}], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: i1.AuthorizerService }, { type: Configurations, decorators: [{
|
|
1570
1617
|
type: Optional
|
|
1571
1618
|
}] }]; } });
|
|
1572
1619
|
|
|
@@ -1642,12 +1689,12 @@ class SentryErrorHandler {
|
|
|
1642
1689
|
window.location.reload();
|
|
1643
1690
|
}
|
|
1644
1691
|
}
|
|
1645
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SentryErrorHandler, deps: [{ token: i1
|
|
1692
|
+
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 }); }
|
|
1646
1693
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SentryErrorHandler }); }
|
|
1647
1694
|
}
|
|
1648
1695
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SentryErrorHandler, decorators: [{
|
|
1649
1696
|
type: Injectable
|
|
1650
|
-
}], ctorParameters: function () { return [{ type: i1
|
|
1697
|
+
}], ctorParameters: function () { return [{ type: i1.AuthorizerService }, { type: GlobalErrorService }, { type: Configurations, decorators: [{
|
|
1651
1698
|
type: Optional
|
|
1652
1699
|
}] }]; } });
|
|
1653
1700
|
|