vc-error-handlers 0.2.2 → 0.2.4
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 +55 -1
- 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 +157 -56
- 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';
|
|
@@ -403,6 +403,60 @@ const COMPONENT_LEVEL_API_CONFIG = [
|
|
|
403
403
|
query: null,
|
|
404
404
|
body: null,
|
|
405
405
|
},
|
|
406
|
+
{
|
|
407
|
+
method: 'POST',
|
|
408
|
+
path: 'responsibilityCenter/rcList',
|
|
409
|
+
query: null,
|
|
410
|
+
body: null,
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
method: 'GET',
|
|
414
|
+
path: 'program/overview?owner_list=1',
|
|
415
|
+
query: null,
|
|
416
|
+
body: null,
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
method: 'POST',
|
|
420
|
+
path: 'calendarDashboardReports',
|
|
421
|
+
query: null,
|
|
422
|
+
body: null,
|
|
423
|
+
},
|
|
424
|
+
{
|
|
425
|
+
method: 'POST',
|
|
426
|
+
path: 'compliance_post/?mode=myResponsibility',
|
|
427
|
+
query: null,
|
|
428
|
+
body: null,
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
method: 'POST',
|
|
432
|
+
path: 'compliance_post/?mode=auditList',
|
|
433
|
+
query: null,
|
|
434
|
+
body: null,
|
|
435
|
+
},
|
|
436
|
+
{
|
|
437
|
+
method: 'POST',
|
|
438
|
+
path: 'compliance_post/?mode=oversightResponsibility/list',
|
|
439
|
+
query: null,
|
|
440
|
+
body: null,
|
|
441
|
+
},
|
|
442
|
+
{
|
|
443
|
+
method: 'POST',
|
|
444
|
+
path: 'complianceReport/getTrendReport',
|
|
445
|
+
query: null,
|
|
446
|
+
body: null,
|
|
447
|
+
},
|
|
448
|
+
{
|
|
449
|
+
method: 'POST',
|
|
450
|
+
path: 'workroomUpdates',
|
|
451
|
+
query: null,
|
|
452
|
+
body: null,
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
method: 'POST',
|
|
456
|
+
path: 'recentActivities_new',
|
|
457
|
+
query: null,
|
|
458
|
+
body: null,
|
|
459
|
+
},
|
|
406
460
|
];
|
|
407
461
|
|
|
408
462
|
class SnackBarService {
|
|
@@ -604,19 +658,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
604
658
|
}]
|
|
605
659
|
}] });
|
|
606
660
|
|
|
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
661
|
const ASSETS = {
|
|
617
|
-
VCOMPLY_LOGO:
|
|
618
|
-
ERROR_IMAGE:
|
|
619
|
-
COMPONENT_ERROR_IMAGE:
|
|
662
|
+
VCOMPLY_LOGO: `/logo/prod/v-logo.svg`,
|
|
663
|
+
ERROR_IMAGE: `/application/images/Error-page-illustration.svg`,
|
|
664
|
+
COMPONENT_ERROR_IMAGE: `/application/images/sad-emoji-icon.svg`,
|
|
620
665
|
};
|
|
621
666
|
|
|
622
667
|
const VCOMPLY_LOGO_URL = ASSETS.VCOMPLY_LOGO;
|
|
@@ -727,30 +772,65 @@ class SnackBarComponent {
|
|
|
727
772
|
this.snackbarSubscription.unsubscribe();
|
|
728
773
|
}
|
|
729
774
|
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:
|
|
775
|
+
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
776
|
}
|
|
732
777
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SnackBarComponent, decorators: [{
|
|
733
778
|
type: Component,
|
|
734
779
|
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
780
|
}], ctorParameters: function () { return [{ type: SnackBarService }]; } });
|
|
736
781
|
|
|
737
|
-
class
|
|
782
|
+
class Configurations {
|
|
738
783
|
constructor() {
|
|
784
|
+
this.sentryConfig = {};
|
|
785
|
+
this.envConfig = {};
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
class AssetUrlService {
|
|
790
|
+
constructor(config) {
|
|
791
|
+
this.BASE_URL = '';
|
|
792
|
+
this.BASE_URL = config?.envConfig?.cdnUrl || '';
|
|
793
|
+
}
|
|
794
|
+
getFullUrl(relativePath) {
|
|
795
|
+
return `${this.BASE_URL}${relativePath}`;
|
|
796
|
+
}
|
|
797
|
+
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 }); }
|
|
798
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AssetUrlService, providedIn: 'root' }); }
|
|
799
|
+
}
|
|
800
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AssetUrlService, decorators: [{
|
|
801
|
+
type: Injectable,
|
|
802
|
+
args: [{
|
|
803
|
+
providedIn: 'root',
|
|
804
|
+
}]
|
|
805
|
+
}], ctorParameters: function () { return [{ type: Configurations, decorators: [{
|
|
806
|
+
type: Optional
|
|
807
|
+
}] }]; } });
|
|
808
|
+
|
|
809
|
+
class UnauthorizedComponent {
|
|
810
|
+
constructor(assetUrlService) {
|
|
811
|
+
this.assetUrlService = assetUrlService;
|
|
739
812
|
this.currentYear = new Date().getFullYear();
|
|
740
813
|
this.errorConfig = ERROR_CONFIG.UNAUTHORIZED;
|
|
741
814
|
this.VcomplyLogo = VCOMPLY_LOGO_URL;
|
|
742
815
|
this.altImageText = ALT_IMAGE_TEXT;
|
|
743
816
|
this.organisationName = ORGANISATION_NAME;
|
|
817
|
+
this.fullVcomplyLogo = '';
|
|
818
|
+
this.fullErrorImageUrl = '';
|
|
819
|
+
this.getAssetsUrl();
|
|
820
|
+
}
|
|
821
|
+
getAssetsUrl() {
|
|
822
|
+
this.fullVcomplyLogo = this.assetUrlService.getFullUrl(this.VcomplyLogo);
|
|
823
|
+
this.fullErrorImageUrl = this.assetUrlService.getFullUrl(this.errorConfig.imageUrl);
|
|
744
824
|
}
|
|
745
825
|
redirectToSupport() {
|
|
746
826
|
window.location.href = this.errorConfig.mail;
|
|
747
827
|
}
|
|
748
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UnauthorizedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
828
|
+
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
829
|
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.2.12", type: UnauthorizedComponent, selector: "lib-vc-error-unauthorized", ngImport: i0, template: `
|
|
750
830
|
<div class="errorPage">
|
|
751
831
|
<div class="errorPage-top">
|
|
752
832
|
<img
|
|
753
|
-
[ngSrc]="
|
|
833
|
+
[ngSrc]="fullVcomplyLogo"
|
|
754
834
|
[alt]="altImageText.VCOMPLY_LOGO"
|
|
755
835
|
width="24"
|
|
756
836
|
height="24"
|
|
@@ -760,7 +840,7 @@ class UnauthorizedComponent {
|
|
|
760
840
|
<div class="errorPage-inner">
|
|
761
841
|
<div class="errorPage-inner-image">
|
|
762
842
|
<img
|
|
763
|
-
[ngSrc]="
|
|
843
|
+
[ngSrc]="fullErrorImageUrl"
|
|
764
844
|
[alt]="altImageText.ERROR_IMAGE"
|
|
765
845
|
width="246"
|
|
766
846
|
height="178"
|
|
@@ -786,7 +866,7 @@ class UnauthorizedComponent {
|
|
|
786
866
|
</div>
|
|
787
867
|
</div>
|
|
788
868
|
</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:
|
|
869
|
+
`, 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
870
|
}
|
|
791
871
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: UnauthorizedComponent, decorators: [{
|
|
792
872
|
type: Component,
|
|
@@ -794,7 +874,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
794
874
|
<div class="errorPage">
|
|
795
875
|
<div class="errorPage-top">
|
|
796
876
|
<img
|
|
797
|
-
[ngSrc]="
|
|
877
|
+
[ngSrc]="fullVcomplyLogo"
|
|
798
878
|
[alt]="altImageText.VCOMPLY_LOGO"
|
|
799
879
|
width="24"
|
|
800
880
|
height="24"
|
|
@@ -804,7 +884,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
804
884
|
<div class="errorPage-inner">
|
|
805
885
|
<div class="errorPage-inner-image">
|
|
806
886
|
<img
|
|
807
|
-
[ngSrc]="
|
|
887
|
+
[ngSrc]="fullErrorImageUrl"
|
|
808
888
|
[alt]="altImageText.ERROR_IMAGE"
|
|
809
889
|
width="246"
|
|
810
890
|
height="178"
|
|
@@ -831,7 +911,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
831
911
|
</div>
|
|
832
912
|
</div>
|
|
833
913
|
`, 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
|
-
}] });
|
|
914
|
+
}], ctorParameters: function () { return [{ type: AssetUrlService }]; } });
|
|
835
915
|
|
|
836
916
|
class DialogConfig {
|
|
837
917
|
}
|
|
@@ -864,7 +944,7 @@ class ErrorModalComponent {
|
|
|
864
944
|
break;
|
|
865
945
|
}
|
|
866
946
|
}
|
|
867
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ErrorModalComponent, deps: [{ token: i1
|
|
947
|
+
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
948
|
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
949
|
<div class="error-dialog-box-top">{{ data.heading }}</div>
|
|
870
950
|
<div class="error-dialog-box-mid">
|
|
@@ -890,7 +970,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
890
970
|
</button>
|
|
891
971
|
</div>
|
|
892
972
|
</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
|
|
973
|
+
}], ctorParameters: function () { return [{ type: i1.AuthorizerService }, { type: DialogConfig }, { type: RouterService }]; }, propDecorators: { errorType: [{
|
|
894
974
|
type: Input
|
|
895
975
|
}] } });
|
|
896
976
|
|
|
@@ -985,7 +1065,7 @@ class DialogComponent {
|
|
|
985
1065
|
document.body.style.overflow = 'auto';
|
|
986
1066
|
}
|
|
987
1067
|
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:
|
|
1068
|
+
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
1069
|
}
|
|
990
1070
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: DialogComponent, decorators: [{
|
|
991
1071
|
type: Component,
|
|
@@ -1131,20 +1211,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1131
1211
|
}], ctorParameters: function () { return [{ type: DialogService }]; } });
|
|
1132
1212
|
|
|
1133
1213
|
class ServerErrorComponent {
|
|
1134
|
-
constructor() {
|
|
1214
|
+
constructor(assetUrlService) {
|
|
1215
|
+
this.assetUrlService = assetUrlService;
|
|
1135
1216
|
this.errorConfig = ERROR_CONFIG.SERVER_ERROR;
|
|
1136
1217
|
this.VcomplyLogo = VCOMPLY_LOGO_URL;
|
|
1137
1218
|
this.altImageText = ALT_IMAGE_TEXT;
|
|
1219
|
+
this.fullVcomplyLogo = '';
|
|
1220
|
+
this.fullErrorImageUrl = '';
|
|
1221
|
+
this.getAssetsUrl();
|
|
1222
|
+
}
|
|
1223
|
+
getAssetsUrl() {
|
|
1224
|
+
this.fullVcomplyLogo = this.assetUrlService.getFullUrl(this.VcomplyLogo);
|
|
1225
|
+
this.fullErrorImageUrl = this.assetUrlService.getFullUrl(this.errorConfig.imageUrl);
|
|
1138
1226
|
}
|
|
1139
1227
|
refreshPage() {
|
|
1140
1228
|
window.location.reload();
|
|
1141
1229
|
}
|
|
1142
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ServerErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1230
|
+
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
1231
|
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
1232
|
<div class="errorPage">
|
|
1145
1233
|
<div class="errorPage-top">
|
|
1146
1234
|
<img
|
|
1147
|
-
[ngSrc]="
|
|
1235
|
+
[ngSrc]="fullVcomplyLogo"
|
|
1148
1236
|
[alt]="altImageText.VCOMPLY_LOGO"
|
|
1149
1237
|
width="24"
|
|
1150
1238
|
height="24"
|
|
@@ -1154,7 +1242,7 @@ class ServerErrorComponent {
|
|
|
1154
1242
|
<div class="errorPage-inner">
|
|
1155
1243
|
<div class="errorPage-inner-image">
|
|
1156
1244
|
<img
|
|
1157
|
-
[ngSrc]="
|
|
1245
|
+
[ngSrc]="fullErrorImageUrl"
|
|
1158
1246
|
[alt]="altImageText.ERROR_IMAGE"
|
|
1159
1247
|
width="246"
|
|
1160
1248
|
height="178"
|
|
@@ -1171,7 +1259,7 @@ class ServerErrorComponent {
|
|
|
1171
1259
|
</div>
|
|
1172
1260
|
</div>
|
|
1173
1261
|
</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:
|
|
1262
|
+
`, 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
1263
|
}
|
|
1176
1264
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ServerErrorComponent, decorators: [{
|
|
1177
1265
|
type: Component,
|
|
@@ -1179,7 +1267,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1179
1267
|
<div class="errorPage">
|
|
1180
1268
|
<div class="errorPage-top">
|
|
1181
1269
|
<img
|
|
1182
|
-
[ngSrc]="
|
|
1270
|
+
[ngSrc]="fullVcomplyLogo"
|
|
1183
1271
|
[alt]="altImageText.VCOMPLY_LOGO"
|
|
1184
1272
|
width="24"
|
|
1185
1273
|
height="24"
|
|
@@ -1189,7 +1277,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1189
1277
|
<div class="errorPage-inner">
|
|
1190
1278
|
<div class="errorPage-inner-image">
|
|
1191
1279
|
<img
|
|
1192
|
-
[ngSrc]="
|
|
1280
|
+
[ngSrc]="fullErrorImageUrl"
|
|
1193
1281
|
[alt]="altImageText.ERROR_IMAGE"
|
|
1194
1282
|
width="246"
|
|
1195
1283
|
height="178"
|
|
@@ -1207,7 +1295,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1207
1295
|
</div>
|
|
1208
1296
|
</div>
|
|
1209
1297
|
`, 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
|
-
}] });
|
|
1298
|
+
}], ctorParameters: function () { return [{ type: AssetUrlService }]; } });
|
|
1211
1299
|
|
|
1212
1300
|
class VcErrorHandlersComponent {
|
|
1213
1301
|
constructor(errorService, snackBarService) {
|
|
@@ -1281,7 +1369,7 @@ class VcErrorHandlersComponent {
|
|
|
1281
1369
|
*ngIf="chunkUnavailable"
|
|
1282
1370
|
></lib-vc-error-chunk-unavailable>
|
|
1283
1371
|
<lib-vc-error-server-error *ngIf="serverError"></lib-vc-error-server-error>
|
|
1284
|
-
`, isInline: true, dependencies: [{ kind: "directive", type:
|
|
1372
|
+
`, 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
1373
|
}
|
|
1286
1374
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: VcErrorHandlersComponent, decorators: [{
|
|
1287
1375
|
type: Component,
|
|
@@ -1302,14 +1390,22 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1302
1390
|
}], ctorParameters: function () { return [{ type: GlobalErrorService }, { type: SnackBarService }]; } });
|
|
1303
1391
|
|
|
1304
1392
|
class PageNotFoundComponent {
|
|
1305
|
-
constructor(route) {
|
|
1393
|
+
constructor(route, assetUrlService) {
|
|
1306
1394
|
this.route = route;
|
|
1395
|
+
this.assetUrlService = assetUrlService;
|
|
1307
1396
|
this.errorConfig = ERROR_CONFIG.PAGE_NOT_FOUND;
|
|
1308
1397
|
this.VcomplyLogo = VCOMPLY_LOGO_URL;
|
|
1309
1398
|
this.altImageText = ALT_IMAGE_TEXT;
|
|
1310
1399
|
this.currentYear = new Date().getFullYear();
|
|
1311
1400
|
this.redirectionUrl = REDIRECTION_URL;
|
|
1312
1401
|
this.organisationName = ORGANISATION_NAME;
|
|
1402
|
+
this.fullVcomplyLogo = '';
|
|
1403
|
+
this.fullErrorImageUrl = '';
|
|
1404
|
+
this.getAssetUrl();
|
|
1405
|
+
}
|
|
1406
|
+
getAssetUrl() {
|
|
1407
|
+
this.fullVcomplyLogo = this.assetUrlService.getFullUrl(VCOMPLY_LOGO_URL);
|
|
1408
|
+
this.fullErrorImageUrl = this.assetUrlService.getFullUrl(this.errorConfig.imageUrl);
|
|
1313
1409
|
}
|
|
1314
1410
|
redirectToHome() {
|
|
1315
1411
|
const module_name = this.route.snapshot.data['page_path'];
|
|
@@ -1327,12 +1423,12 @@ class PageNotFoundComponent {
|
|
|
1327
1423
|
}
|
|
1328
1424
|
window.location.replace(targetPath);
|
|
1329
1425
|
}
|
|
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 }); }
|
|
1426
|
+
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
1427
|
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
1428
|
<div class="errorPage">
|
|
1333
1429
|
<div class="errorPage-top">
|
|
1334
1430
|
<img
|
|
1335
|
-
[ngSrc]="
|
|
1431
|
+
[ngSrc]="fullVcomplyLogo"
|
|
1336
1432
|
[alt]="altImageText.VCOMPLY_LOGO"
|
|
1337
1433
|
width="24"
|
|
1338
1434
|
height="24"
|
|
@@ -1342,7 +1438,7 @@ class PageNotFoundComponent {
|
|
|
1342
1438
|
<div class="errorPage-inner">
|
|
1343
1439
|
<div class="errorPage-inner-image">
|
|
1344
1440
|
<img
|
|
1345
|
-
[ngSrc]="
|
|
1441
|
+
[ngSrc]="fullErrorImageUrl"
|
|
1346
1442
|
[alt]="altImageText.ERROR_IMAGE"
|
|
1347
1443
|
width="246"
|
|
1348
1444
|
height="178"
|
|
@@ -1362,7 +1458,7 @@ class PageNotFoundComponent {
|
|
|
1362
1458
|
</div>
|
|
1363
1459
|
</div>
|
|
1364
1460
|
</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:
|
|
1461
|
+
`, 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
1462
|
}
|
|
1367
1463
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PageNotFoundComponent, decorators: [{
|
|
1368
1464
|
type: Component,
|
|
@@ -1370,7 +1466,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1370
1466
|
<div class="errorPage">
|
|
1371
1467
|
<div class="errorPage-top">
|
|
1372
1468
|
<img
|
|
1373
|
-
[ngSrc]="
|
|
1469
|
+
[ngSrc]="fullVcomplyLogo"
|
|
1374
1470
|
[alt]="altImageText.VCOMPLY_LOGO"
|
|
1375
1471
|
width="24"
|
|
1376
1472
|
height="24"
|
|
@@ -1380,7 +1476,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1380
1476
|
<div class="errorPage-inner">
|
|
1381
1477
|
<div class="errorPage-inner-image">
|
|
1382
1478
|
<img
|
|
1383
|
-
[ngSrc]="
|
|
1479
|
+
[ngSrc]="fullErrorImageUrl"
|
|
1384
1480
|
[alt]="altImageText.ERROR_IMAGE"
|
|
1385
1481
|
width="246"
|
|
1386
1482
|
height="178"
|
|
@@ -1401,22 +1497,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1401
1497
|
</div>
|
|
1402
1498
|
</div>
|
|
1403
1499
|
`, 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 }]; } });
|
|
1500
|
+
}], ctorParameters: function () { return [{ type: i3.ActivatedRoute }, { type: AssetUrlService }]; } });
|
|
1405
1501
|
|
|
1406
1502
|
class ComponentLevelServerErrorComponent {
|
|
1407
|
-
constructor() {
|
|
1503
|
+
constructor(assetUrlService) {
|
|
1504
|
+
this.assetUrlService = assetUrlService;
|
|
1408
1505
|
this.errorConfig = ERROR_CONFIG.COMPONENT_LEVEL_SERVER_ERROR;
|
|
1409
1506
|
this.altImageText = ALT_IMAGE_TEXT;
|
|
1410
|
-
this.
|
|
1507
|
+
this.fullErrorImageUrl = '';
|
|
1411
1508
|
this.onClick = new EventEmitter();
|
|
1509
|
+
this.getAssetsUrl();
|
|
1510
|
+
}
|
|
1511
|
+
getAssetsUrl() {
|
|
1512
|
+
this.fullErrorImageUrl = this.assetUrlService.getFullUrl(this.errorConfig.imageUrl);
|
|
1412
1513
|
}
|
|
1413
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ComponentLevelServerErrorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1514
|
+
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
1515
|
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
1516
|
<div class="serverError">
|
|
1416
1517
|
<div class="serverError-inner">
|
|
1417
1518
|
<div class="serverError-inner-image">
|
|
1418
1519
|
<img
|
|
1419
|
-
[ngSrc]="
|
|
1520
|
+
[ngSrc]="fullErrorImageUrl"
|
|
1420
1521
|
[alt]="altImageText.ERROR_IMAGE"
|
|
1421
1522
|
width="106"
|
|
1422
1523
|
height="76"
|
|
@@ -1433,7 +1534,7 @@ class ComponentLevelServerErrorComponent {
|
|
|
1433
1534
|
</div>
|
|
1434
1535
|
</div>
|
|
1435
1536
|
</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:
|
|
1537
|
+
`, 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
1538
|
}
|
|
1438
1539
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ComponentLevelServerErrorComponent, decorators: [{
|
|
1439
1540
|
type: Component,
|
|
@@ -1442,7 +1543,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1442
1543
|
<div class="serverError-inner">
|
|
1443
1544
|
<div class="serverError-inner-image">
|
|
1444
1545
|
<img
|
|
1445
|
-
[ngSrc]="
|
|
1546
|
+
[ngSrc]="fullErrorImageUrl"
|
|
1446
1547
|
[alt]="altImageText.ERROR_IMAGE"
|
|
1447
1548
|
width="106"
|
|
1448
1549
|
height="76"
|
|
@@ -1460,7 +1561,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1460
1561
|
</div>
|
|
1461
1562
|
</div>
|
|
1462
1563
|
`, 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: [{
|
|
1564
|
+
}], ctorParameters: function () { return [{ type: AssetUrlService }]; }, propDecorators: { onClick: [{
|
|
1464
1565
|
type: Output
|
|
1465
1566
|
}] } });
|
|
1466
1567
|
|
|
@@ -1558,7 +1659,7 @@ class FeatureFlagService {
|
|
|
1558
1659
|
return true;
|
|
1559
1660
|
}
|
|
1560
1661
|
}
|
|
1561
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FeatureFlagService, deps: [{ token: i1$
|
|
1662
|
+
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
1663
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FeatureFlagService, providedIn: 'root' }); }
|
|
1563
1664
|
}
|
|
1564
1665
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: FeatureFlagService, decorators: [{
|
|
@@ -1566,7 +1667,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImpo
|
|
|
1566
1667
|
args: [{
|
|
1567
1668
|
providedIn: 'root',
|
|
1568
1669
|
}]
|
|
1569
|
-
}], ctorParameters: function () { return [{ type: i1$
|
|
1670
|
+
}], ctorParameters: function () { return [{ type: i1$1.HttpClient }, { type: i1.AuthorizerService }, { type: Configurations, decorators: [{
|
|
1570
1671
|
type: Optional
|
|
1571
1672
|
}] }]; } });
|
|
1572
1673
|
|
|
@@ -1642,12 +1743,12 @@ class SentryErrorHandler {
|
|
|
1642
1743
|
window.location.reload();
|
|
1643
1744
|
}
|
|
1644
1745
|
}
|
|
1645
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SentryErrorHandler, deps: [{ token: i1
|
|
1746
|
+
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
1747
|
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SentryErrorHandler }); }
|
|
1647
1748
|
}
|
|
1648
1749
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SentryErrorHandler, decorators: [{
|
|
1649
1750
|
type: Injectable
|
|
1650
|
-
}], ctorParameters: function () { return [{ type: i1
|
|
1751
|
+
}], ctorParameters: function () { return [{ type: i1.AuthorizerService }, { type: GlobalErrorService }, { type: Configurations, decorators: [{
|
|
1651
1752
|
type: Optional
|
|
1652
1753
|
}] }]; } });
|
|
1653
1754
|
|