@ekyc_qoobiss/qbs-ect-cmp 3.6.28 → 3.6.30
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/dist/cjs/{base-component-aa9e52bf.js → TranslationUtils-e23d3c71.js} +19 -234
- package/dist/cjs/agreement-check_19.cjs.entry.js +524 -284
- package/dist/cjs/random-actions.cjs.entry.js +5 -6
- package/dist/collection/components/base-component.js +0 -4
- package/dist/collection/components/common/agreement-check/agreement-check.js +6 -2
- package/dist/collection/components/common/camera-error/camera-error.js +7 -5
- package/dist/collection/components/common/capture-error/capture-error.js +12 -10
- package/dist/collection/components/common/how-to-info/how-to-info.js +11 -9
- package/dist/collection/components/common/id-back-capture/id-back-capture.js +8 -6
- package/dist/collection/components/common/id-capture/id-capture.js +6 -4
- package/dist/collection/components/common/id-tilt/id-tilt.js +6 -4
- package/dist/collection/components/common/random-actions/random-actions.js +5 -6
- package/dist/collection/components/common/selfie-capture/selfie-capture.js +7 -5
- package/dist/collection/components/common/selfie-tilt/selfie-tilt.js +8 -6
- package/dist/collection/components/flow/agreement-info/agreement-info.js +4 -2
- package/dist/collection/components/flow/end-redirect/end-redirect.js +5 -4
- package/dist/collection/components/flow/landing-validation/landing-validation.js +5 -3
- package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +8 -6
- package/dist/collection/components/flow/sms-code-validation/sms-code-validation.js +12 -10
- package/dist/collection/helpers/ApiCall.js +4 -0
- package/dist/collection/helpers/TranslationUtils.js +15 -7
- package/dist/collection/helpers/textValues.js +1 -0
- package/dist/esm/{base-component-b7f50d31.js → TranslationUtils-7c1f0f39.js} +19 -233
- package/dist/esm/agreement-check_19.entry.js +316 -76
- package/dist/esm/random-actions.entry.js +5 -6
- package/dist/qbs-ect-cmp/p-16f9efd0.entry.js +1 -0
- package/dist/qbs-ect-cmp/p-d82d57ff.js +1 -0
- package/dist/qbs-ect-cmp/{p-c32a782a.entry.js → p-fea085b0.entry.js} +2 -2
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/dist/types/components/base-component.d.ts +0 -2
- package/dist/types/components/common/agreement-check/agreement-check.d.ts +2 -0
- package/dist/types/components/common/camera-error/camera-error.d.ts +1 -0
- package/dist/types/components/common/capture-error/capture-error.d.ts +1 -0
- package/dist/types/components/common/how-to-info/how-to-info.d.ts +2 -1
- package/dist/types/components/common/id-back-capture/id-back-capture.d.ts +1 -0
- package/dist/types/components/common/id-capture/id-capture.d.ts +1 -0
- package/dist/types/components/common/id-tilt/id-tilt.d.ts +1 -0
- package/dist/types/components/common/random-actions/random-actions.d.ts +2 -2
- package/dist/types/components/common/selfie-capture/selfie-capture.d.ts +2 -1
- package/dist/types/components/common/selfie-tilt/selfie-tilt.d.ts +2 -1
- package/dist/types/components/flow/agreement-info/agreement-info.d.ts +2 -1
- package/dist/types/components/flow/end-redirect/end-redirect.d.ts +2 -1
- package/dist/types/components/flow/landing-validation/landing-validation.d.ts +1 -0
- package/dist/types/components/flow/mobile-redirect/mobile-redirect.d.ts +1 -0
- package/dist/types/components/flow/sms-code-validation/sms-code-validation.d.ts +2 -1
- package/dist/types/helpers/ApiCall.d.ts +2 -0
- package/dist/types/helpers/TranslationUtils.d.ts +1 -0
- package/dist/types/helpers/textValues.d.ts +1 -0
- package/package.json +1 -1
- package/dist/i18n/en.json +0 -100
- package/dist/i18n/ro.json +0 -100
- package/dist/i18n/ru.json +0 -100
- package/dist/qbs-ect-cmp/p-215a7e76.entry.js +0 -1
- package/dist/qbs-ect-cmp/p-7bedffaa.js +0 -1
|
@@ -3,19 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
5
|
const index = require('./index-41696e0e.js');
|
|
6
|
-
const
|
|
6
|
+
const TranslationUtils = require('./TranslationUtils-e23d3c71.js');
|
|
7
7
|
|
|
8
8
|
const randomActionsCss = "";
|
|
9
9
|
|
|
10
10
|
const RandomActions = class {
|
|
11
|
-
constructor(hostRef) {
|
|
12
|
-
|
|
13
|
-
this.
|
|
11
|
+
constructor(hostRef) { index.registerInstance(this, hostRef); }
|
|
12
|
+
async componentWillLoad() {
|
|
13
|
+
this.translations = await TranslationUtils.Translations.getValues();
|
|
14
14
|
}
|
|
15
|
-
componentWillLoad() { }
|
|
16
15
|
buttonClick() { }
|
|
17
16
|
render() {
|
|
18
|
-
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", { class: "text-center" }, index.h("h1", null, this.topTitle)), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", onClick: () => this.buttonClick() }, this.buttonText), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, this.
|
|
17
|
+
return (index.h("div", { class: "container" }, index.h("div", { class: "row" }, index.h("div", { class: "text-center" }, index.h("h1", null, this.topTitle)), index.h("div", { class: "pos-relative show-bottom" }, index.h("div", { class: "btn-buletin" }, index.h("button", { class: "main-button", onClick: () => this.buttonClick() }, this.buttonText), index.h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))));
|
|
19
18
|
}
|
|
20
19
|
};
|
|
21
20
|
RandomActions.style = randomActionsCss;
|
|
@@ -3,7 +3,6 @@ import { DeviceDetection } from '../helpers/DeviceDetection';
|
|
|
3
3
|
import Events from '../helpers/Events';
|
|
4
4
|
import store from '../helpers/store';
|
|
5
5
|
import { FlowMoments } from '../models/FlowSteps';
|
|
6
|
-
import { Translations } from '../helpers/TranslationUtils';
|
|
7
6
|
export class BaseComponent {
|
|
8
7
|
constructor(step) {
|
|
9
8
|
this.apiErrorEvent = null;
|
|
@@ -14,9 +13,6 @@ export class BaseComponent {
|
|
|
14
13
|
if (!store.device) {
|
|
15
14
|
store.device = new DeviceDetection().getDevice();
|
|
16
15
|
}
|
|
17
|
-
Translations.getValues().then(data => {
|
|
18
|
-
this.translations = data;
|
|
19
|
-
});
|
|
20
16
|
}
|
|
21
17
|
setEventEmitter(event) {
|
|
22
18
|
this.apiErrorEvent = event;
|
|
@@ -2,6 +2,7 @@ import { h } from '@stencil/core';
|
|
|
2
2
|
import { ApiCall } from '../../../helpers/ApiCall';
|
|
3
3
|
import { FlowSteps } from '../../../models/FlowSteps';
|
|
4
4
|
import { BaseComponent } from '../../base-component';
|
|
5
|
+
import { Translations } from '../../../helpers/TranslationUtils';
|
|
5
6
|
export class AgreementCheck {
|
|
6
7
|
constructor() {
|
|
7
8
|
this.agreementType = undefined;
|
|
@@ -10,9 +11,12 @@ export class AgreementCheck {
|
|
|
10
11
|
this.scrollClass = 'scroll';
|
|
11
12
|
this.apiCalls = new ApiCall();
|
|
12
13
|
this.buttonEnabled = true;
|
|
13
|
-
this.baseComponent = new BaseComponent(FlowSteps.
|
|
14
|
+
this.baseComponent = new BaseComponent(FlowSteps.Agreements);
|
|
14
15
|
this.baseComponent.setEventEmitter(this.apiErrorEvent);
|
|
15
16
|
}
|
|
17
|
+
async componentWillLoad() {
|
|
18
|
+
this.translations = await Translations.getValues();
|
|
19
|
+
}
|
|
16
20
|
async componentDidLoad() {
|
|
17
21
|
try {
|
|
18
22
|
this.htmlContent = await this.apiCalls.GetAgreement(this.agreementType);
|
|
@@ -26,7 +30,7 @@ export class AgreementCheck {
|
|
|
26
30
|
this.agreementAcceptance.emit({ agreementType: this.agreementType, result });
|
|
27
31
|
}
|
|
28
32
|
render() {
|
|
29
|
-
let content = (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { class: this.scrollClass, innerHTML: this.htmlContent }), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("div", { class: "d-flex two-buttons" }, h("button", { class: "normal-button red-button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick(false) }, this.
|
|
33
|
+
let content = (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { class: this.scrollClass, innerHTML: this.htmlContent }), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("div", { class: "d-flex two-buttons" }, h("button", { class: "normal-button red-button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick(false) }, this.translations.AgreementCheckValues.ButtonNo), h("button", { class: "normal-button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick(true) }, this.translations.AgreementCheckValues.ButtonYes)), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))));
|
|
30
34
|
return this.htmlContent ? content : h("div", null);
|
|
31
35
|
}
|
|
32
36
|
static get is() { return "agreement-check"; }
|
|
@@ -5,6 +5,7 @@ import { FlowStatus } from '../../../models/FlowStatus';
|
|
|
5
5
|
import { FlowSteps } from '../../../models/FlowSteps';
|
|
6
6
|
import { MobileOS } from '../../../models/IDevice';
|
|
7
7
|
import { BaseComponent } from '../../base-component';
|
|
8
|
+
import { Translations } from '../../../helpers/TranslationUtils';
|
|
8
9
|
export class CameraError {
|
|
9
10
|
constructor() {
|
|
10
11
|
this.title = undefined;
|
|
@@ -15,15 +16,16 @@ export class CameraError {
|
|
|
15
16
|
this.baseComponent.setEventEmitter(this.apiErrorEvent);
|
|
16
17
|
}
|
|
17
18
|
async componentWillLoad() {
|
|
19
|
+
this.translations = await Translations.getValues();
|
|
18
20
|
this.buttonDisabled = false;
|
|
19
|
-
this.title = this.
|
|
20
|
-
this.description = this.
|
|
21
|
-
this.buttonText = this.
|
|
21
|
+
this.title = this.translations.CameraErrorValues.Title;
|
|
22
|
+
this.description = this.translations.CameraErrorValues.Description;
|
|
23
|
+
this.buttonText = this.translations.CameraErrorValues.Button;
|
|
22
24
|
}
|
|
23
25
|
async componentDidLoad() {
|
|
24
26
|
await this.baseComponent.initialize();
|
|
25
27
|
if (store.device.mobileOS != MobileOS.iOS) {
|
|
26
|
-
this.demoVideo.src = this.
|
|
28
|
+
this.demoVideo.src = this.translations.CameraErrorValues.HowToLink;
|
|
27
29
|
this.demoVideo.loop = true;
|
|
28
30
|
this.demoVideo.play();
|
|
29
31
|
}
|
|
@@ -49,7 +51,7 @@ export class CameraError {
|
|
|
49
51
|
}
|
|
50
52
|
}
|
|
51
53
|
render() {
|
|
52
|
-
return (h("div", { class: "container" }, h("div", { class: "row" }, h("h1", { class: "color-red" }, this.title), h("div", null, h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.description)), h("div", { hidden: store.device.mobileOS == MobileOS.iOS }, h("video", { id: "howtoPermissions", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", type: "button", disabled: this.buttonDisabled, onClick: () => this.buttonClick() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.
|
|
54
|
+
return (h("div", { class: "container" }, h("div", { class: "row" }, h("h1", { class: "color-red" }, this.title), h("div", null, h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.description)), h("div", { hidden: store.device.mobileOS == MobileOS.iOS }, h("video", { id: "howtoPermissions", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", type: "button", disabled: this.buttonDisabled, onClick: () => this.buttonClick() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))));
|
|
53
55
|
}
|
|
54
56
|
static get is() { return "camera-error"; }
|
|
55
57
|
static get originalStyleUrls() {
|
|
@@ -2,6 +2,7 @@ import { h } from '@stencil/core';
|
|
|
2
2
|
import { delay } from '../../../utils/utils';
|
|
3
3
|
import { BaseComponent } from '../../base-component';
|
|
4
4
|
import { FlowMoments, FlowSteps } from '../../../models/FlowSteps';
|
|
5
|
+
import { Translations } from '../../../helpers/TranslationUtils';
|
|
5
6
|
export class CaptureError {
|
|
6
7
|
constructor() {
|
|
7
8
|
this.type = undefined;
|
|
@@ -10,18 +11,19 @@ export class CaptureError {
|
|
|
10
11
|
this.baseComponent = new BaseComponent(FlowSteps.CiError);
|
|
11
12
|
}
|
|
12
13
|
async componentWillLoad() {
|
|
14
|
+
this.translations = await Translations.getValues();
|
|
13
15
|
this.buttonEnabled = false;
|
|
14
16
|
if (this.type == 'ID') {
|
|
15
|
-
this.titleR1 = this.
|
|
16
|
-
this.titleR2 = this.
|
|
17
|
-
this.descriptionR1 = this.
|
|
18
|
-
this.descriptionR2 = this.
|
|
17
|
+
this.titleR1 = this.translations.IdCaptureValues.ErrorTitleR1;
|
|
18
|
+
this.titleR2 = this.translations.IdCaptureValues.ErrorTitleR2;
|
|
19
|
+
this.descriptionR1 = this.translations.IdCaptureValues.ErrorR1;
|
|
20
|
+
this.descriptionR2 = this.translations.IdCaptureValues.ErrorR2;
|
|
19
21
|
}
|
|
20
22
|
if (this.type == 'LIVENESS') {
|
|
21
|
-
this.titleR1 = this.
|
|
22
|
-
this.titleR2 = this.
|
|
23
|
-
this.descriptionR1 = this.
|
|
24
|
-
this.descriptionR2 = this.
|
|
23
|
+
this.titleR1 = this.translations.SelfieCaptureValues.ErrorTitleR1;
|
|
24
|
+
this.titleR2 = this.translations.SelfieCaptureValues.ErrorTitleR2;
|
|
25
|
+
this.descriptionR1 = this.translations.SelfieCaptureValues.ErrorR1;
|
|
26
|
+
this.descriptionR2 = this.translations.SelfieCaptureValues.ErrorR2;
|
|
25
27
|
}
|
|
26
28
|
}
|
|
27
29
|
async componentDidLoad() {
|
|
@@ -30,7 +32,7 @@ export class CaptureError {
|
|
|
30
32
|
this.buttonText = i.toString();
|
|
31
33
|
await delay(1000);
|
|
32
34
|
}
|
|
33
|
-
this.buttonText = this.
|
|
35
|
+
this.buttonText = this.translations.IdCaptureValues.Button;
|
|
34
36
|
this.buttonEnabled = true;
|
|
35
37
|
}
|
|
36
38
|
async buttonClick() {
|
|
@@ -39,7 +41,7 @@ export class CaptureError {
|
|
|
39
41
|
this.eventCaptureErrorDone.emit();
|
|
40
42
|
}
|
|
41
43
|
render() {
|
|
42
|
-
return (h("div", { class: "container" }, h("div", { class: "row" }, h("h1", { class: "color-red" }, this.titleR1), h("h1", { class: "color-red" }, this.titleR2), h("div", null, h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.descriptionR1), h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.descriptionR2)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", type: "button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.
|
|
44
|
+
return (h("div", { class: "container" }, h("div", { class: "row" }, h("h1", { class: "color-red" }, this.titleR1), h("h1", { class: "color-red" }, this.titleR2), h("div", null, h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.descriptionR1), h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.descriptionR2)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", type: "button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))));
|
|
43
45
|
}
|
|
44
46
|
static get is() { return "capture-error"; }
|
|
45
47
|
static get originalStyleUrls() {
|
|
@@ -3,6 +3,7 @@ import store from '../../../helpers/store';
|
|
|
3
3
|
import { FlowStatus } from '../../../models/FlowStatus';
|
|
4
4
|
import { BaseComponent } from '../../base-component';
|
|
5
5
|
import { FlowSteps } from '../../../models/FlowSteps';
|
|
6
|
+
import { Translations } from '../../../helpers/TranslationUtils';
|
|
6
7
|
export class HowToInfo {
|
|
7
8
|
constructor() { this.idSide = undefined; this.topTitle = undefined; this.subTitle = undefined; this.imagePath = undefined; this.buttonText = undefined; this.buttonEnabled = undefined; }
|
|
8
9
|
async componentDidLoad() {
|
|
@@ -15,34 +16,35 @@ export class HowToInfo {
|
|
|
15
16
|
this.buttonEnabled = false;
|
|
16
17
|
this.eventHowToInfoDone.emit();
|
|
17
18
|
}
|
|
18
|
-
componentWillLoad() {
|
|
19
|
+
async componentWillLoad() {
|
|
20
|
+
this.translations = await Translations.getValues();
|
|
19
21
|
this.subTitle = '';
|
|
20
22
|
this.buttonEnabled = true;
|
|
21
23
|
if (store.flowStatus == FlowStatus.ID) {
|
|
22
|
-
this.topTitle = this.
|
|
24
|
+
this.topTitle = this.translations.HowToValues.IdTitile;
|
|
23
25
|
this.imagePath = 'https://ekyc.blob.core.windows.net/$web/howto_id.png';
|
|
24
|
-
this.buttonText = this.
|
|
26
|
+
this.buttonText = this.translations.HowToValues.IdButton;
|
|
25
27
|
if (this.idSide == 'front') {
|
|
26
28
|
this.baseComponent = new BaseComponent(FlowSteps.CiFrontHowTo);
|
|
27
|
-
this.subTitle = this.
|
|
29
|
+
this.subTitle = this.translations.HowToValues.IdSubTitileFace;
|
|
28
30
|
}
|
|
29
31
|
if (this.idSide == 'back') {
|
|
30
32
|
this.baseComponent = new BaseComponent(FlowSteps.CiBackHowTo);
|
|
31
|
-
this.subTitle = this.
|
|
33
|
+
this.subTitle = this.translations.HowToValues.IdSubTitileBack;
|
|
32
34
|
}
|
|
33
35
|
}
|
|
34
36
|
if (store.flowStatus == FlowStatus.LIVENESS) {
|
|
35
37
|
this.baseComponent = new BaseComponent(FlowSteps.SelfieHowTo);
|
|
36
|
-
this.topTitle = this.
|
|
37
|
-
this.subTitle = this.
|
|
38
|
+
this.topTitle = this.translations.HowToValues.SelfieTitile;
|
|
39
|
+
this.subTitle = this.translations.HowToValues.SelfieSubTitile;
|
|
38
40
|
this.imagePath = 'https://ekyc.blob.core.windows.net/$web/howto_selfie.png';
|
|
39
|
-
this.buttonText = this.
|
|
41
|
+
this.buttonText = this.translations.HowToValues.SelfieButton;
|
|
40
42
|
}
|
|
41
43
|
this.baseComponent.setEventEmitter(this.apiErrorEvent);
|
|
42
44
|
}
|
|
43
45
|
render() {
|
|
44
46
|
let sub = this.subTitle != '' ? h("p", { class: "font-size-2" }, this.subTitle) : null;
|
|
45
|
-
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { class: "div-ci align-center" }, h("img", { src: this.imagePath })), h("div", { class: "text-center" }, h("h1", null, this.topTitle), sub), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.
|
|
47
|
+
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { class: "div-ci align-center" }, h("img", { src: this.imagePath })), h("div", { class: "text-center" }, h("h1", null, this.topTitle), sub), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))));
|
|
46
48
|
}
|
|
47
49
|
static get is() { return "how-to-info"; }
|
|
48
50
|
static get originalStyleUrls() {
|
|
@@ -10,6 +10,7 @@ import { BaseComponent } from '../../base-component';
|
|
|
10
10
|
import { FlowMoments, FlowSteps } from '../../../models/FlowSteps';
|
|
11
11
|
import { VerificationMode } from '../../../models/IVerificationMode';
|
|
12
12
|
import { IdCaptureValues } from '../../../helpers/textValues';
|
|
13
|
+
import { Translations } from '../../../helpers/TranslationUtils';
|
|
13
14
|
// import { IDPose } from '../../libs/IDML5Detector/IDPose';
|
|
14
15
|
export class IdBackCapture {
|
|
15
16
|
// @State() private animationPath: string;
|
|
@@ -36,6 +37,7 @@ export class IdBackCapture {
|
|
|
36
37
|
this.cameraSize = event.detail;
|
|
37
38
|
}
|
|
38
39
|
async componentWillLoad() {
|
|
40
|
+
this.translations = await Translations.getValues();
|
|
39
41
|
//this.videoDemoStyle = this.device.isMobile ? { width: window.screen.width + 'px', height: window.screen.height + 'px', 'object-fit': 'fill' } : {};
|
|
40
42
|
if (!navigator.mediaDevices) {
|
|
41
43
|
this.apiErrorEvent.emit({ message: 'This browser does not support webRTC' });
|
|
@@ -43,14 +45,14 @@ export class IdBackCapture {
|
|
|
43
45
|
}
|
|
44
46
|
async componentDidLoad() {
|
|
45
47
|
await this.baseComponent.logStep(FlowSteps.CiBackCapture, FlowMoments.Initialized);
|
|
46
|
-
this.titleMesage = this.
|
|
48
|
+
this.titleMesage = this.translations.IdCaptureValues.TtileRotate;
|
|
47
49
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Rotate];
|
|
48
50
|
this.demoVideo.play();
|
|
49
|
-
await delay(this.
|
|
50
|
-
this.titleMesage = this.
|
|
51
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
52
|
+
this.titleMesage = this.translations.IdCaptureValues.TitleBack;
|
|
51
53
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.BackStraight];
|
|
52
54
|
this.demoVideo.play();
|
|
53
|
-
await delay(this.
|
|
55
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
54
56
|
this.showDemo = false;
|
|
55
57
|
this.openCamera();
|
|
56
58
|
}
|
|
@@ -84,7 +86,7 @@ export class IdBackCapture {
|
|
|
84
86
|
if (this.verified)
|
|
85
87
|
return;
|
|
86
88
|
this.verified = true;
|
|
87
|
-
this.titleMesage = this.
|
|
89
|
+
this.titleMesage = this.translations.IdCaptureValues.Loading;
|
|
88
90
|
this.closeCamera();
|
|
89
91
|
this.showDemo = true;
|
|
90
92
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
@@ -109,7 +111,7 @@ export class IdBackCapture {
|
|
|
109
111
|
let titleClass = this.verified ? 'color-black-2 text-center' : 'color-white text-center';
|
|
110
112
|
//let videoClass = this.device.isMobile ? '' : 'video-demo';
|
|
111
113
|
let bgDemo = this.verified ? 'container' : 'container bg-black';
|
|
112
|
-
return (h("div", { class: bgDemo }, h("div", { class: "container-video" }, h("div", { hidden: this.showDemo == false }, h("video", { id: "howtoBack", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { hidden: this.showDemo }, h("div", { hidden: this.verified }, h("div", { class: "video-capture" }, h("div", { style: cameraStyle }, h("div", { style: cameraStyleInner }, h("camera-comp", { "capture-mode": "id" })))))), h("div", { class: "capture-title" }, h("h1", { class: titleClass }, this.titleMesage), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.
|
|
114
|
+
return (h("div", { class: bgDemo }, h("div", { class: "container-video" }, h("div", { hidden: this.showDemo == false }, h("video", { id: "howtoBack", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { hidden: this.showDemo }, h("div", { hidden: this.verified }, h("div", { class: "video-capture" }, h("div", { style: cameraStyle }, h("div", { style: cameraStyleInner }, h("camera-comp", { "capture-mode": "id" })))))), h("div", { class: "capture-title" }, h("h1", { class: titleClass }, this.titleMesage), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText)))));
|
|
113
115
|
}
|
|
114
116
|
static get is() { return "id-back-capture"; }
|
|
115
117
|
static get originalStyleUrls() {
|
|
@@ -10,6 +10,7 @@ import store from '../../../helpers/store';
|
|
|
10
10
|
import { BaseComponent } from '../../base-component';
|
|
11
11
|
import { FlowMoments, FlowSteps } from '../../../models/FlowSteps';
|
|
12
12
|
import { VerificationMode } from '../../../models/IVerificationMode';
|
|
13
|
+
import { Translations } from '../../../helpers/TranslationUtils';
|
|
13
14
|
// import { IDPose } from '../../libs/IDML5Detector/IDPose';
|
|
14
15
|
export class IdCapture {
|
|
15
16
|
// @State() private animationPath: string;
|
|
@@ -36,7 +37,8 @@ export class IdCapture {
|
|
|
36
37
|
this.cameraSize = event.detail;
|
|
37
38
|
}
|
|
38
39
|
async componentWillLoad() {
|
|
39
|
-
this.
|
|
40
|
+
this.translations = await Translations.getValues();
|
|
41
|
+
this.titleMesage = this.translations.IdCaptureValues.Title;
|
|
40
42
|
//this.videoDemoStyle = this.device.isMobile ? { 'width': window.screen.width + 'px', 'height': window.screen.height + 'px', 'object-fit': 'fill' } : {};
|
|
41
43
|
if (!navigator.mediaDevices) {
|
|
42
44
|
this.apiErrorEvent.emit({ message: 'This browser does not support webRTC' });
|
|
@@ -46,7 +48,7 @@ export class IdCapture {
|
|
|
46
48
|
await this.baseComponent.logStep(FlowSteps.CiFrontCapture, FlowMoments.Initialized);
|
|
47
49
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Straight];
|
|
48
50
|
this.demoVideo.play();
|
|
49
|
-
await delay(this.
|
|
51
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
50
52
|
this.showDemo = false;
|
|
51
53
|
this.openCamera();
|
|
52
54
|
}
|
|
@@ -88,7 +90,7 @@ export class IdCapture {
|
|
|
88
90
|
if (this.verified)
|
|
89
91
|
return;
|
|
90
92
|
this.verified = true;
|
|
91
|
-
this.titleMesage = this.
|
|
93
|
+
this.titleMesage = this.translations.IdCaptureValues.Loading;
|
|
92
94
|
this.closeCamera();
|
|
93
95
|
this.showDemo = true;
|
|
94
96
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
@@ -110,7 +112,7 @@ export class IdCapture {
|
|
|
110
112
|
let titleClass = this.verified ? 'color-black-2 text-center' : 'color-white text-center';
|
|
111
113
|
//let videoClass = this.device.isMobile ? '' : 'video-demo';
|
|
112
114
|
let bgDemo = this.verified ? 'container' : 'container bg-black';
|
|
113
|
-
return (h("div", { class: bgDemo }, h("div", { class: "container-video" }, h("div", { hidden: this.showDemo == false }, h("video", { id: "howtoFront", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { hidden: this.showDemo }, h("div", { hidden: this.verified }, h("div", { class: "video-capture" }, h("div", { style: cameraStyle }, h("div", { style: cameraStyleInner }, h("camera-comp", { "capture-mode": "id" })))))), h("div", { class: "capture-title" }, h("h1", { class: titleClass }, this.titleMesage), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.
|
|
115
|
+
return (h("div", { class: bgDemo }, h("div", { class: "container-video" }, h("div", { hidden: this.showDemo == false }, h("video", { id: "howtoFront", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { hidden: this.showDemo }, h("div", { hidden: this.verified }, h("div", { class: "video-capture" }, h("div", { style: cameraStyle }, h("div", { style: cameraStyleInner }, h("camera-comp", { "capture-mode": "id" })))))), h("div", { class: "capture-title" }, h("h1", { class: titleClass }, this.titleMesage), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText)))));
|
|
114
116
|
}
|
|
115
117
|
static get is() { return "id-capture"; }
|
|
116
118
|
static get originalStyleUrls() {
|
|
@@ -10,6 +10,7 @@ import store from '../../../helpers/store';
|
|
|
10
10
|
import { BaseComponent } from '../../base-component';
|
|
11
11
|
import { FlowMoments, FlowSteps } from '../../../models/FlowSteps';
|
|
12
12
|
import { VerificationMode } from '../../../models/IVerificationMode';
|
|
13
|
+
import { Translations } from '../../../helpers/TranslationUtils';
|
|
13
14
|
// import { IDPose } from '../../libs/IDML5Detector/IDPose';
|
|
14
15
|
export class IdTilt {
|
|
15
16
|
// @State() private animationPath: string;
|
|
@@ -36,7 +37,8 @@ export class IdTilt {
|
|
|
36
37
|
this.cameraSize = event.detail;
|
|
37
38
|
}
|
|
38
39
|
async componentWillLoad() {
|
|
39
|
-
this.
|
|
40
|
+
this.translations = await Translations.getValues();
|
|
41
|
+
this.titleMesage = this.translations.IdCaptureValues.IDPoseMapping;
|
|
40
42
|
//this.videoDemoStyle = this.device.isMobile ? { 'width': window.screen.width + 'px', 'height': window.screen.height + 'px', 'object-fit': 'fill' } : {};
|
|
41
43
|
if (!navigator.mediaDevices) {
|
|
42
44
|
this.apiErrorEvent.emit({ message: 'This browser does not support webRTC' });
|
|
@@ -46,7 +48,7 @@ export class IdTilt {
|
|
|
46
48
|
await this.baseComponent.logStep(FlowSteps.CiTilt, FlowMoments.Initialized);
|
|
47
49
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Tilted];
|
|
48
50
|
this.demoVideo.play();
|
|
49
|
-
await delay(this.
|
|
51
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
50
52
|
this.showDemo = false;
|
|
51
53
|
this.openCamera();
|
|
52
54
|
}
|
|
@@ -88,7 +90,7 @@ export class IdTilt {
|
|
|
88
90
|
if (this.verified)
|
|
89
91
|
return;
|
|
90
92
|
this.verified = true;
|
|
91
|
-
this.titleMesage = this.
|
|
93
|
+
this.titleMesage = this.translations.IdCaptureValues.Loading;
|
|
92
94
|
this.closeCamera();
|
|
93
95
|
this.showDemo = true;
|
|
94
96
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
@@ -110,7 +112,7 @@ export class IdTilt {
|
|
|
110
112
|
let titleClass = this.verified ? 'color-black-2 text-center' : 'color-white text-center';
|
|
111
113
|
//let videoClass = this.device.isMobile ? '' : 'video-demo';
|
|
112
114
|
let bgDemo = this.verified ? 'container' : 'container bg-black';
|
|
113
|
-
return (h("div", { class: bgDemo }, h("div", { class: "container-video" }, h("div", { hidden: this.showDemo == false }, h("video", { id: "howtoFront", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { hidden: this.showDemo }, h("div", { hidden: this.verified }, h("div", { class: "video-capture" }, h("div", { style: cameraStyle }, h("div", { style: cameraStyleInner }, h("camera-comp", { "capture-mode": "tilt" })))))), h("div", { class: "capture-title" }, h("h1", { class: titleClass }, this.titleMesage), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.
|
|
115
|
+
return (h("div", { class: bgDemo }, h("div", { class: "container-video" }, h("div", { hidden: this.showDemo == false }, h("video", { id: "howtoFront", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { hidden: this.showDemo }, h("div", { hidden: this.verified }, h("div", { class: "video-capture" }, h("div", { style: cameraStyle }, h("div", { style: cameraStyleInner }, h("camera-comp", { "capture-mode": "tilt" })))))), h("div", { class: "capture-title" }, h("h1", { class: titleClass }, this.titleMesage), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText)))));
|
|
114
116
|
}
|
|
115
117
|
static get is() { return "id-tilt"; }
|
|
116
118
|
static get originalStyleUrls() {
|
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { h } from '@stencil/core';
|
|
2
|
-
import {
|
|
3
|
-
import { FlowSteps } from '../../../models/FlowSteps';
|
|
2
|
+
import { Translations } from '../../../helpers/TranslationUtils';
|
|
4
3
|
export class RandomActions {
|
|
5
|
-
constructor() {
|
|
6
|
-
|
|
4
|
+
constructor() { }
|
|
5
|
+
async componentWillLoad() {
|
|
6
|
+
this.translations = await Translations.getValues();
|
|
7
7
|
}
|
|
8
|
-
componentWillLoad() { }
|
|
9
8
|
buttonClick() { }
|
|
10
9
|
render() {
|
|
11
|
-
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { class: "text-center" }, h("h1", null, this.topTitle)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", onClick: () => this.buttonClick() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.
|
|
10
|
+
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { class: "text-center" }, h("h1", null, this.topTitle)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", onClick: () => this.buttonClick() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))));
|
|
12
11
|
}
|
|
13
12
|
static get is() { return "random-actions"; }
|
|
14
13
|
static get originalStyleUrls() {
|
|
@@ -9,6 +9,7 @@ import store from '../../../helpers/store';
|
|
|
9
9
|
import { BaseComponent } from '../../base-component';
|
|
10
10
|
import { FlowMoments, FlowSteps } from '../../../models/FlowSteps';
|
|
11
11
|
import { VerificationMode } from '../../../models/IVerificationMode';
|
|
12
|
+
import { Translations } from '../../../helpers/TranslationUtils';
|
|
12
13
|
export class SelfieCapture {
|
|
13
14
|
// @State() private animationPath: string;
|
|
14
15
|
constructor() {
|
|
@@ -39,8 +40,9 @@ export class SelfieCapture {
|
|
|
39
40
|
this.captureHeight = height - Math.round((window.screen.height - height) / 2);
|
|
40
41
|
this.captureWidth = Math.round((this.captureHeight * 9) / 16);
|
|
41
42
|
}
|
|
42
|
-
componentWillLoad() {
|
|
43
|
-
this.
|
|
43
|
+
async componentWillLoad() {
|
|
44
|
+
this.translations = await Translations.getValues();
|
|
45
|
+
this.titleMesage = this.translations.SelfieCaptureValues.Title;
|
|
44
46
|
//this.videoDemoStyle = this.device.isMobile ? { 'width': window.screen.width + 'px', 'height': window.screen.height + 'px', 'object-fit': 'fill' } : {};
|
|
45
47
|
if (!navigator.mediaDevices) {
|
|
46
48
|
this.apiErrorEvent.emit({ message: 'This browser does not support webRTC' });
|
|
@@ -50,7 +52,7 @@ export class SelfieCapture {
|
|
|
50
52
|
await this.baseComponent.logStep(FlowSteps.SelfieCapture, FlowMoments.Initialized);
|
|
51
53
|
this.demoVideo.src = SelfieCaptureValues.FacePoseDemoMapping[FacePose.Main];
|
|
52
54
|
this.demoVideo.play();
|
|
53
|
-
await delay(this.
|
|
55
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
54
56
|
this.demoEnded = true;
|
|
55
57
|
this.openCamera();
|
|
56
58
|
}
|
|
@@ -91,7 +93,7 @@ export class SelfieCapture {
|
|
|
91
93
|
if (this.verified)
|
|
92
94
|
return;
|
|
93
95
|
this.verified = true;
|
|
94
|
-
this.titleMesage = this.
|
|
96
|
+
this.titleMesage = this.translations.SelfieCaptureValues.Loading;
|
|
95
97
|
this.closeCamera();
|
|
96
98
|
this.demoEnded = false;
|
|
97
99
|
this.demoVideo.src = this.uploadingLink;
|
|
@@ -113,7 +115,7 @@ export class SelfieCapture {
|
|
|
113
115
|
let titleClass = this.verified ? 'color-black-2 text-center' : 'color-white text-center';
|
|
114
116
|
//let videoClass = this.device.isMobile ? '' : 'video-demo';
|
|
115
117
|
let bgDemo = this.verified ? 'container' : 'container bg-black';
|
|
116
|
-
return (h("div", { class: bgDemo }, h("div", { class: "container-video" }, h("div", { hidden: this.demoEnded }, h("video", { id: "howtoSelfie", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { hidden: this.demoEnded == false }, h("div", { hidden: this.verified }, h("div", { class: "video-capture" }, h("div", { style: cameraStyle }, h("camera-comp", { "capture-mode": "selfie" }))))), h("div", { class: "capture-title" }, h("h1", { class: titleClass }, this.titleMesage), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.
|
|
118
|
+
return (h("div", { class: bgDemo }, h("div", { class: "container-video" }, h("div", { hidden: this.demoEnded }, h("video", { id: "howtoSelfie", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { hidden: this.demoEnded == false }, h("div", { hidden: this.verified }, h("div", { class: "video-capture" }, h("div", { style: cameraStyle }, h("camera-comp", { "capture-mode": "selfie" }))))), h("div", { class: "capture-title" }, h("h1", { class: titleClass }, this.titleMesage), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText)))));
|
|
117
119
|
}
|
|
118
120
|
static get is() { return "selfie-capture"; }
|
|
119
121
|
static get originalStyleUrls() {
|
|
@@ -9,6 +9,7 @@ import { BaseComponent } from '../../base-component';
|
|
|
9
9
|
import { FlowMoments, FlowSteps } from '../../../models/FlowSteps';
|
|
10
10
|
import { VerificationMode } from '../../../models/IVerificationMode';
|
|
11
11
|
import { FacePose } from '../../../libs/FaceML5Detector/FacePose';
|
|
12
|
+
import { Translations } from '../../../helpers/TranslationUtils';
|
|
12
13
|
export class SelfieTilt {
|
|
13
14
|
// @State() private animationPath: string;
|
|
14
15
|
constructor() {
|
|
@@ -39,8 +40,9 @@ export class SelfieTilt {
|
|
|
39
40
|
this.captureHeight = height - Math.round((window.screen.height - height) / 2);
|
|
40
41
|
this.captureWidth = Math.round((this.captureHeight * 9) / 16);
|
|
41
42
|
}
|
|
42
|
-
componentWillLoad() {
|
|
43
|
-
this.
|
|
43
|
+
async componentWillLoad() {
|
|
44
|
+
this.translations = await Translations.getValues();
|
|
45
|
+
this.titleMesage = this.translations.SelfieCaptureValues.Title;
|
|
44
46
|
//this.videoDemoStyle = this.device.isMobile ? { 'width': window.screen.width + 'px', 'height': window.screen.height + 'px', 'object-fit': 'fill' } : {};
|
|
45
47
|
if (!navigator.mediaDevices) {
|
|
46
48
|
this.apiErrorEvent.emit({ message: 'This browser does not support webRTC' });
|
|
@@ -49,11 +51,11 @@ export class SelfieTilt {
|
|
|
49
51
|
async componentDidLoad() {
|
|
50
52
|
this.mainStream = Stream.getInstance(VerificationMode.Tilt);
|
|
51
53
|
await this.baseComponent.logStep(FlowSteps.SelfieTilt, FlowMoments.Initialized);
|
|
52
|
-
this.titleMesage = this.
|
|
54
|
+
this.titleMesage = this.translations.SelfieCaptureValues.FacePoseMapping[Object.values(FacePose).indexOf(this.mainStream.facePose)];
|
|
53
55
|
this.demoEnded = false;
|
|
54
56
|
this.demoVideo.src = SelfieCaptureValues.FacePoseDemoMapping[this.mainStream.facePose];
|
|
55
57
|
this.demoVideo.play();
|
|
56
|
-
await delay(this.
|
|
58
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
57
59
|
this.demoEnded = true;
|
|
58
60
|
this.openCamera();
|
|
59
61
|
}
|
|
@@ -93,7 +95,7 @@ export class SelfieTilt {
|
|
|
93
95
|
if (this.verified)
|
|
94
96
|
return;
|
|
95
97
|
this.verified = true;
|
|
96
|
-
this.titleMesage = this.
|
|
98
|
+
this.titleMesage = this.translations.SelfieCaptureValues.Loading;
|
|
97
99
|
this.closeCamera();
|
|
98
100
|
this.demoEnded = false;
|
|
99
101
|
this.demoVideo.src = this.uploadingLink;
|
|
@@ -115,7 +117,7 @@ export class SelfieTilt {
|
|
|
115
117
|
let titleClass = this.verified ? 'color-black-2 text-center' : 'color-white text-center';
|
|
116
118
|
//let videoClass = this.device.isMobile ? '' : 'video-demo';
|
|
117
119
|
let bgDemo = this.verified ? 'container' : 'container bg-black';
|
|
118
|
-
return (h("div", { class: bgDemo }, h("div", { class: "container-video" }, h("div", { hidden: this.demoEnded }, h("video", { id: "howtoSelfie", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { hidden: this.demoEnded == false }, h("div", { hidden: this.verified }, h("div", { class: "video-capture" }, h("div", { style: cameraStyle }, h("camera-comp", { "capture-mode": "selfie" }))))), h("div", { class: "capture-title" }, h("h1", { class: titleClass }, this.titleMesage), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.
|
|
120
|
+
return (h("div", { class: bgDemo }, h("div", { class: "container-video" }, h("div", { hidden: this.demoEnded }, h("video", { id: "howtoSelfie", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { hidden: this.demoEnded == false }, h("div", { hidden: this.verified }, h("div", { class: "video-capture" }, h("div", { style: cameraStyle }, h("camera-comp", { "capture-mode": "selfie" }))))), h("div", { class: "capture-title" }, h("h1", { class: titleClass }, this.titleMesage), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText)))));
|
|
119
121
|
}
|
|
120
122
|
static get is() { return "selfie-tilt"; }
|
|
121
123
|
static get originalStyleUrls() {
|
|
@@ -3,6 +3,7 @@ import store from '../../../helpers/store';
|
|
|
3
3
|
import { FlowStatus } from '../../../models/FlowStatus';
|
|
4
4
|
import { FlowSteps } from '../../../models/FlowSteps';
|
|
5
5
|
import { BaseComponent } from '../../base-component';
|
|
6
|
+
import { Translations } from '../../../helpers/TranslationUtils';
|
|
6
7
|
export class AgreementInfo {
|
|
7
8
|
constructor() {
|
|
8
9
|
this.agreementsChecked = undefined;
|
|
@@ -17,7 +18,8 @@ export class AgreementInfo {
|
|
|
17
18
|
async componentDidLoad() {
|
|
18
19
|
await this.baseComponent.initialize();
|
|
19
20
|
}
|
|
20
|
-
componentWillLoad() {
|
|
21
|
+
async componentWillLoad() {
|
|
22
|
+
this.translations = await Translations.getValues();
|
|
21
23
|
this.openAgreements = false;
|
|
22
24
|
this.openTerms = false;
|
|
23
25
|
}
|
|
@@ -53,7 +55,7 @@ export class AgreementInfo {
|
|
|
53
55
|
render() {
|
|
54
56
|
let agreementsCheck = h("agreement-check", { agreementType: "agreement" });
|
|
55
57
|
let termsCheck = h("agreement-check", { agreementType: "terms" });
|
|
56
|
-
let mainComp = (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, this.
|
|
58
|
+
let mainComp = (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, this.translations.AgreementInfoValues.Title), h("div", { class: "d-flex space-between align-center" }, h("h3", { class: "main-text font-size-2", onClick: () => this.agreementsClicked() }, h("input", { type: "checkbox", readOnly: true, checked: this.agreementsChecked }), this.translations.AgreementInfoValues.Agreement)), h("div", { class: "d-flex space-between align-center" }, h("h3", { class: "main-text font-size-2", onClick: () => this.termsClicked() }, h("input", { type: "checkbox", readOnly: true, checked: this.termsChecked }), this.translations.AgreementInfoValues.Terms))), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", onClick: () => this.buttonClick() }, this.translations.AgreementInfoValues.Button), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))));
|
|
57
59
|
return this.openAgreements ? agreementsCheck : this.openTerms ? termsCheck : mainComp;
|
|
58
60
|
}
|
|
59
61
|
static get is() { return "agreement-info"; }
|
|
@@ -3,17 +3,18 @@ import { h } from '@stencil/core';
|
|
|
3
3
|
import completeImg from '../../../assets/complete.svg';
|
|
4
4
|
import store from '../../../helpers/store';
|
|
5
5
|
import Events from '../../../helpers/Events';
|
|
6
|
-
import {
|
|
7
|
-
import { FlowSteps } from '../../../models/FlowSteps';
|
|
6
|
+
import { Translations } from '../../../helpers/TranslationUtils';
|
|
8
7
|
export class EndRedirect {
|
|
9
8
|
constructor() {
|
|
10
|
-
|
|
9
|
+
}
|
|
10
|
+
async componentWillLoad() {
|
|
11
|
+
this.translations = await Translations.getValues();
|
|
11
12
|
}
|
|
12
13
|
async componentDidLoad() {
|
|
13
14
|
Events.flowCompleted();
|
|
14
15
|
}
|
|
15
16
|
render() {
|
|
16
|
-
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, this.
|
|
17
|
+
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, this.translations.CompleteValues.Title), h("p", { class: "main-text font-size-18 mt-8 text-center" }, this.translations.CompleteValues.Description)), h("div", { class: "buletin-container" }, h("div", { class: "container-coin" }, h("div", { class: "coin-scale" }, h("div", { class: "coin-flip" }, h("img", { class: "w-40 coin", src: completeImg }))))), h("div", { class: "text-center" }, h("p", { class: "font-weight-900 font-size-3 color-black-2 text-center mt-20" }, this.translations.CompleteValues.Message), h("p", null, store.requestId)), h("div", { class: "btn-buletin" }, h("p", { class: "main-text font-size-18 text-center mb-0" }, this.translations.GlobalValues.FooterText)))));
|
|
17
18
|
}
|
|
18
19
|
static get is() { return "end-redirect"; }
|
|
19
20
|
static get originalStyleUrls() {
|
|
@@ -16,6 +16,7 @@ import idSvg from '../../../assets/landing/id.svg';
|
|
|
16
16
|
import idValidation from '../../../assets/landing/validation.svg';
|
|
17
17
|
// @ts-ignore
|
|
18
18
|
import idDevice from '../../../assets/landing/device.svg';
|
|
19
|
+
import { Translations } from '../../../helpers/TranslationUtils';
|
|
19
20
|
export class LandingValidation {
|
|
20
21
|
constructor() {
|
|
21
22
|
this.warningText = undefined;
|
|
@@ -25,6 +26,7 @@ export class LandingValidation {
|
|
|
25
26
|
}
|
|
26
27
|
async componentWillLoad() {
|
|
27
28
|
Events.flowStarted();
|
|
29
|
+
this.translations = await Translations.getValues();
|
|
28
30
|
this.baseComponent.apiCall = new ApiCall();
|
|
29
31
|
this.buttonDisabled = false;
|
|
30
32
|
await this.initRequest();
|
|
@@ -36,10 +38,10 @@ export class LandingValidation {
|
|
|
36
38
|
}
|
|
37
39
|
async initRequest() {
|
|
38
40
|
if (store.hasIdBack) {
|
|
39
|
-
this.warningText = this.
|
|
41
|
+
this.warningText = this.translations.LandingValues.WarningMd;
|
|
40
42
|
}
|
|
41
43
|
else {
|
|
42
|
-
this.warningText = this.
|
|
44
|
+
this.warningText = this.translations.LandingValues.Warning;
|
|
43
45
|
}
|
|
44
46
|
}
|
|
45
47
|
async startFlow() {
|
|
@@ -82,7 +84,7 @@ export class LandingValidation {
|
|
|
82
84
|
}
|
|
83
85
|
}
|
|
84
86
|
render() {
|
|
85
|
-
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, this.
|
|
87
|
+
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, this.translations.LandingValues.Title), h("div", { class: "d-flex space-between align-center" }, h("p", { class: "main-text font-size-2" }, this.translations.LandingValues.Description), h("div", { class: "img-info" }, h("div", { class: "i-effect" }), h("img", { src: info })))), h("div", { class: "info-container" }, h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: idSvg })), h("h3", null, this.translations.LandingValues.IdInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: idDevice })), h("h3", null, this.translations.LandingValues.DeviceInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: idValidation })), h("h3", null, this.translations.LandingValues.SmsInfo))), h("div", { class: "terms-container" }, h("h3", { class: "font-size-2 mb-1 text-center" }, this.warningText)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", type: "button", disabled: !store.initialised || this.buttonDisabled, onClick: () => this.startFlow() }, this.translations.LandingValues.Button), h("p", { class: "main-text font-size-2 link-text mb-0", onClick: () => this.leaveFlow() }, this.translations.LandingValues.ButtonLeave), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))));
|
|
86
88
|
}
|
|
87
89
|
static get is() { return "landing-validation"; }
|
|
88
90
|
static get originalStyleUrls() {
|