@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
|
@@ -1,5 +1,228 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-cf54a432.js';
|
|
2
|
-
import { A as ApiCall,
|
|
2
|
+
import { A as ApiCall, s as state, F as FlowMoments, a as FlowSteps, T as Translations, b as FlowStatus, S as SessionKeys, I as IdCaptureValues, O as OrderStatuses, c as SelfieCaptureValues } from './TranslationUtils-7c1f0f39.js';
|
|
3
|
+
|
|
4
|
+
var MobileOS;
|
|
5
|
+
(function (MobileOS) {
|
|
6
|
+
MobileOS["Android"] = "android";
|
|
7
|
+
MobileOS["iOS"] = "ios";
|
|
8
|
+
MobileOS["Unknown"] = "unknown";
|
|
9
|
+
MobileOS["WindowsPhone"] = "Windows Phone";
|
|
10
|
+
})(MobileOS || (MobileOS = {}));
|
|
11
|
+
var DesktopOS;
|
|
12
|
+
(function (DesktopOS) {
|
|
13
|
+
DesktopOS["Linux"] = "linux";
|
|
14
|
+
DesktopOS["MacOS"] = "mac_os";
|
|
15
|
+
DesktopOS["Unix"] = "unix";
|
|
16
|
+
DesktopOS["Unknown"] = "unknown";
|
|
17
|
+
DesktopOS["Windows"] = "windows";
|
|
18
|
+
})(DesktopOS || (DesktopOS = {}));
|
|
19
|
+
var Browser;
|
|
20
|
+
(function (Browser) {
|
|
21
|
+
Browser["Chrome"] = "chrome";
|
|
22
|
+
Browser["Firefox"] = "firefox";
|
|
23
|
+
Browser["Safari"] = "safari";
|
|
24
|
+
Browser["Mi"] = "mi";
|
|
25
|
+
Browser["Unknown"] = "unknown";
|
|
26
|
+
})(Browser || (Browser = {}));
|
|
27
|
+
|
|
28
|
+
class DeviceDetection {
|
|
29
|
+
constructor() {
|
|
30
|
+
var _a, _b, _c, _d;
|
|
31
|
+
this.supportedScreenOrientation = (_b = (_a = ((screen === null || screen === void 0 ? void 0 : screen.orientation) || {}).type) !== null && _a !== void 0 ? _a : screen.mozOrientation) !== null && _b !== void 0 ? _b : screen.msOrientation;
|
|
32
|
+
this.safariScreenOrientation = !(screen === null || screen === void 0 ? void 0 : screen.orientation) && matchMedia('(orientation: portrait)').matches ? 'portrait-primary' : 'landscape-primary';
|
|
33
|
+
this.initialScreenOrientation = (_d = (_c = this.supportedScreenOrientation) !== null && _c !== void 0 ? _c : this.safariScreenOrientation) !== null && _d !== void 0 ? _d : 'portrait-primary';
|
|
34
|
+
this.userAgent = navigator.userAgent || navigator.vendor || window.opera || undefined;
|
|
35
|
+
this.isMobile = this.isMobileDevice();
|
|
36
|
+
this.isTablet = this.isTabletDevice();
|
|
37
|
+
this.isDesktop = !this.isMobile && !this.isTablet;
|
|
38
|
+
}
|
|
39
|
+
// Device typology
|
|
40
|
+
isMobileDevice() {
|
|
41
|
+
const regexs = [/(Android)(.+)(Mobile)/i, /BlackBerry/i, /iPhone|iPod/i, /Opera Mini/i, /IEMobile/i];
|
|
42
|
+
return regexs.some(b => this.userAgent.match(b));
|
|
43
|
+
}
|
|
44
|
+
isTabletDevice() {
|
|
45
|
+
const regex = /(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/;
|
|
46
|
+
return regex.test(this.userAgent.toLowerCase());
|
|
47
|
+
}
|
|
48
|
+
// Device Operating System
|
|
49
|
+
getMobileOS() {
|
|
50
|
+
if (this.isMobileDevice()) {
|
|
51
|
+
if (/windows phone/i.test(this.userAgent))
|
|
52
|
+
return MobileOS.WindowsPhone;
|
|
53
|
+
else if (/android/i.test(this.userAgent))
|
|
54
|
+
return MobileOS.Android;
|
|
55
|
+
else if (/iPad|iPhone|iPod/.test(this.userAgent) && !window.MSStream)
|
|
56
|
+
return MobileOS.iOS;
|
|
57
|
+
return MobileOS.Unknown;
|
|
58
|
+
}
|
|
59
|
+
else
|
|
60
|
+
return undefined;
|
|
61
|
+
}
|
|
62
|
+
getDesktopOS() {
|
|
63
|
+
if (this.isDesktop) {
|
|
64
|
+
if (this.userAgent.indexOf('Win') !== -1)
|
|
65
|
+
return DesktopOS.Windows;
|
|
66
|
+
else if (this.userAgent.indexOf('Mac') !== -1)
|
|
67
|
+
return DesktopOS.MacOS;
|
|
68
|
+
else if (this.userAgent.indexOf('X11') !== -1)
|
|
69
|
+
return DesktopOS.Unix;
|
|
70
|
+
else if (this.userAgent.indexOf('Linux') !== -1)
|
|
71
|
+
return DesktopOS.Linux;
|
|
72
|
+
return DesktopOS.Unknown;
|
|
73
|
+
}
|
|
74
|
+
else
|
|
75
|
+
return undefined;
|
|
76
|
+
}
|
|
77
|
+
getDeviceOS() {
|
|
78
|
+
var _a;
|
|
79
|
+
return (_a = this.getMobileOS()) !== null && _a !== void 0 ? _a : this.getDesktopOS();
|
|
80
|
+
}
|
|
81
|
+
getBrowser() {
|
|
82
|
+
if (/XiaoMi/i.test(this.userAgent) || /MiuiBrowser/i.test(this.userAgent))
|
|
83
|
+
return Browser.Mi;
|
|
84
|
+
var isChrome = /chrome/i.test(this.userAgent);
|
|
85
|
+
if (isChrome)
|
|
86
|
+
return Browser.Chrome;
|
|
87
|
+
if (/firefox/i.test(navigator.userAgent))
|
|
88
|
+
return Browser.Firefox;
|
|
89
|
+
else if (!isChrome && /safari/i.test(navigator.userAgent))
|
|
90
|
+
return Browser.Safari;
|
|
91
|
+
else
|
|
92
|
+
return Browser.Unknown;
|
|
93
|
+
}
|
|
94
|
+
getDevice() {
|
|
95
|
+
var device = {
|
|
96
|
+
isDesktop: this.isDesktop,
|
|
97
|
+
desktopOS: this.getDesktopOS(),
|
|
98
|
+
isWindowsDesktop: this.getDeviceOS() === DesktopOS.Windows,
|
|
99
|
+
isLinuxOrUnixDesktop: this.getDeviceOS() === DesktopOS.Linux || this.getDeviceOS() === DesktopOS.Unix,
|
|
100
|
+
isMobile: this.isMobile,
|
|
101
|
+
mobileOS: this.getMobileOS(),
|
|
102
|
+
isAndroidDevice: this.getDeviceOS() === MobileOS.Android,
|
|
103
|
+
isAppleDevice: this.getDeviceOS() === MobileOS.iOS || this.getDeviceOS() === DesktopOS.MacOS,
|
|
104
|
+
isUnknownMobileDevice: this.getDeviceOS() === MobileOS.Unknown,
|
|
105
|
+
browser: this.getBrowser(),
|
|
106
|
+
isTablet: this.isTablet,
|
|
107
|
+
initialScreenOrientation: this.initialScreenOrientation,
|
|
108
|
+
};
|
|
109
|
+
return device;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
class Events {
|
|
114
|
+
static init(element) {
|
|
115
|
+
this.callingModule = element;
|
|
116
|
+
}
|
|
117
|
+
static flowEvent(step, moment) {
|
|
118
|
+
const eventName = `ect-${step.toString()}-${moment.toString()}-event`;
|
|
119
|
+
this.callingModule.dispatchEvent(new CustomEvent(eventName, {
|
|
120
|
+
detail: {},
|
|
121
|
+
bubbles: true,
|
|
122
|
+
cancelable: true,
|
|
123
|
+
composed: true,
|
|
124
|
+
}));
|
|
125
|
+
}
|
|
126
|
+
static flowStarted() {
|
|
127
|
+
this.callingModule.dispatchEvent(new CustomEvent('ect-started', {
|
|
128
|
+
detail: {},
|
|
129
|
+
bubbles: true,
|
|
130
|
+
cancelable: true,
|
|
131
|
+
composed: true,
|
|
132
|
+
}));
|
|
133
|
+
}
|
|
134
|
+
static flowAborted() {
|
|
135
|
+
sessionStorage.clear();
|
|
136
|
+
this.callingModule.dispatchEvent(new CustomEvent('ect-aborted', {
|
|
137
|
+
detail: {},
|
|
138
|
+
bubbles: true,
|
|
139
|
+
cancelable: true,
|
|
140
|
+
composed: true,
|
|
141
|
+
}));
|
|
142
|
+
}
|
|
143
|
+
static flowCompleted() {
|
|
144
|
+
sessionStorage.clear();
|
|
145
|
+
this.callingModule.dispatchEvent(new CustomEvent('ect-completed', {
|
|
146
|
+
detail: {},
|
|
147
|
+
bubbles: true,
|
|
148
|
+
cancelable: true,
|
|
149
|
+
composed: true,
|
|
150
|
+
}));
|
|
151
|
+
}
|
|
152
|
+
static flowError(error) {
|
|
153
|
+
sessionStorage.clear();
|
|
154
|
+
this.callingModule.dispatchEvent(new CustomEvent('ect-error', {
|
|
155
|
+
detail: { error },
|
|
156
|
+
bubbles: true,
|
|
157
|
+
cancelable: true,
|
|
158
|
+
composed: true,
|
|
159
|
+
}));
|
|
160
|
+
}
|
|
161
|
+
static tokenExpired() {
|
|
162
|
+
sessionStorage.clear();
|
|
163
|
+
this.callingModule.dispatchEvent(new CustomEvent('ect-session-expired', {
|
|
164
|
+
detail: {},
|
|
165
|
+
bubbles: true,
|
|
166
|
+
cancelable: true,
|
|
167
|
+
composed: true,
|
|
168
|
+
}));
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
class BaseComponent {
|
|
173
|
+
constructor(step) {
|
|
174
|
+
this.apiErrorEvent = null;
|
|
175
|
+
this.processError = null;
|
|
176
|
+
this.apiCall = new ApiCall();
|
|
177
|
+
if (step)
|
|
178
|
+
this.flowStep = step;
|
|
179
|
+
if (!state.device) {
|
|
180
|
+
state.device = new DeviceDetection().getDevice();
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
setEventEmitter(event) {
|
|
184
|
+
this.apiErrorEvent = event;
|
|
185
|
+
}
|
|
186
|
+
setErrorCallback(callback) {
|
|
187
|
+
this.processError = callback;
|
|
188
|
+
}
|
|
189
|
+
async logStep(step, moment) {
|
|
190
|
+
Events.flowEvent(step, moment);
|
|
191
|
+
try {
|
|
192
|
+
await this.apiCall.AddStep(step, moment);
|
|
193
|
+
}
|
|
194
|
+
catch (e) {
|
|
195
|
+
if (this.apiErrorEvent)
|
|
196
|
+
this.apiErrorEvent.emit(e);
|
|
197
|
+
else
|
|
198
|
+
this.processError(e, `${step}-${moment}`);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
201
|
+
async initialize() {
|
|
202
|
+
Events.flowEvent(this.flowStep, FlowMoments.Initialized);
|
|
203
|
+
try {
|
|
204
|
+
await this.apiCall.AddStep(this.flowStep, FlowMoments.Initialized);
|
|
205
|
+
}
|
|
206
|
+
catch (e) {
|
|
207
|
+
if (this.apiErrorEvent)
|
|
208
|
+
this.apiErrorEvent.emit(e);
|
|
209
|
+
else
|
|
210
|
+
this.processError(e, `${this.flowStep}-${FlowMoments.Initialized}`);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
async finalize() {
|
|
214
|
+
Events.flowEvent(this.flowStep, FlowMoments.Finalized);
|
|
215
|
+
try {
|
|
216
|
+
await this.apiCall.AddStep(this.flowStep, FlowMoments.Finalized);
|
|
217
|
+
}
|
|
218
|
+
catch (e) {
|
|
219
|
+
if (this.apiErrorEvent)
|
|
220
|
+
this.apiErrorEvent.emit(e);
|
|
221
|
+
else
|
|
222
|
+
this.processError(e, `${this.flowStep}-${FlowMoments.Finalized}`);
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
}
|
|
3
226
|
|
|
4
227
|
const agreementCheckCss = "";
|
|
5
228
|
|
|
@@ -14,9 +237,12 @@ const AgreementCheck = class {
|
|
|
14
237
|
this.scrollClass = 'scroll';
|
|
15
238
|
this.apiCalls = new ApiCall();
|
|
16
239
|
this.buttonEnabled = true;
|
|
17
|
-
this.baseComponent = new BaseComponent(FlowSteps.
|
|
240
|
+
this.baseComponent = new BaseComponent(FlowSteps.Agreements);
|
|
18
241
|
this.baseComponent.setEventEmitter(this.apiErrorEvent);
|
|
19
242
|
}
|
|
243
|
+
async componentWillLoad() {
|
|
244
|
+
this.translations = await Translations.getValues();
|
|
245
|
+
}
|
|
20
246
|
async componentDidLoad() {
|
|
21
247
|
try {
|
|
22
248
|
this.htmlContent = await this.apiCalls.GetAgreement(this.agreementType);
|
|
@@ -30,7 +256,7 @@ const AgreementCheck = class {
|
|
|
30
256
|
this.agreementAcceptance.emit({ agreementType: this.agreementType, result });
|
|
31
257
|
}
|
|
32
258
|
render() {
|
|
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.
|
|
259
|
+
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))))));
|
|
34
260
|
return this.htmlContent ? content : h("div", null);
|
|
35
261
|
}
|
|
36
262
|
};
|
|
@@ -54,7 +280,8 @@ const AgreementInfo = class {
|
|
|
54
280
|
async componentDidLoad() {
|
|
55
281
|
await this.baseComponent.initialize();
|
|
56
282
|
}
|
|
57
|
-
componentWillLoad() {
|
|
283
|
+
async componentWillLoad() {
|
|
284
|
+
this.translations = await Translations.getValues();
|
|
58
285
|
this.openAgreements = false;
|
|
59
286
|
this.openTerms = false;
|
|
60
287
|
}
|
|
@@ -90,7 +317,7 @@ const AgreementInfo = class {
|
|
|
90
317
|
render() {
|
|
91
318
|
let agreementsCheck = h("agreement-check", { agreementType: "agreement" });
|
|
92
319
|
let termsCheck = h("agreement-check", { agreementType: "terms" });
|
|
93
|
-
let mainComp = (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, this.
|
|
320
|
+
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))))));
|
|
94
321
|
return this.openAgreements ? agreementsCheck : this.openTerms ? termsCheck : mainComp;
|
|
95
322
|
}
|
|
96
323
|
};
|
|
@@ -4605,15 +4832,16 @@ const CameraError = class {
|
|
|
4605
4832
|
this.baseComponent.setEventEmitter(this.apiErrorEvent);
|
|
4606
4833
|
}
|
|
4607
4834
|
async componentWillLoad() {
|
|
4835
|
+
this.translations = await Translations.getValues();
|
|
4608
4836
|
this.buttonDisabled = false;
|
|
4609
|
-
this.title = this.
|
|
4610
|
-
this.description = this.
|
|
4611
|
-
this.buttonText = this.
|
|
4837
|
+
this.title = this.translations.CameraErrorValues.Title;
|
|
4838
|
+
this.description = this.translations.CameraErrorValues.Description;
|
|
4839
|
+
this.buttonText = this.translations.CameraErrorValues.Button;
|
|
4612
4840
|
}
|
|
4613
4841
|
async componentDidLoad() {
|
|
4614
4842
|
await this.baseComponent.initialize();
|
|
4615
4843
|
if (state.device.mobileOS != MobileOS.iOS) {
|
|
4616
|
-
this.demoVideo.src = this.
|
|
4844
|
+
this.demoVideo.src = this.translations.CameraErrorValues.HowToLink;
|
|
4617
4845
|
this.demoVideo.loop = true;
|
|
4618
4846
|
this.demoVideo.play();
|
|
4619
4847
|
}
|
|
@@ -4639,7 +4867,7 @@ const CameraError = class {
|
|
|
4639
4867
|
}
|
|
4640
4868
|
}
|
|
4641
4869
|
render() {
|
|
4642
|
-
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: state.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.
|
|
4870
|
+
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: state.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))))));
|
|
4643
4871
|
}
|
|
4644
4872
|
};
|
|
4645
4873
|
CameraError.style = cameraErrorCss;
|
|
@@ -4656,18 +4884,19 @@ const CaptureError = class {
|
|
|
4656
4884
|
this.baseComponent = new BaseComponent(FlowSteps.CiError);
|
|
4657
4885
|
}
|
|
4658
4886
|
async componentWillLoad() {
|
|
4887
|
+
this.translations = await Translations.getValues();
|
|
4659
4888
|
this.buttonEnabled = false;
|
|
4660
4889
|
if (this.type == 'ID') {
|
|
4661
|
-
this.titleR1 = this.
|
|
4662
|
-
this.titleR2 = this.
|
|
4663
|
-
this.descriptionR1 = this.
|
|
4664
|
-
this.descriptionR2 = this.
|
|
4890
|
+
this.titleR1 = this.translations.IdCaptureValues.ErrorTitleR1;
|
|
4891
|
+
this.titleR2 = this.translations.IdCaptureValues.ErrorTitleR2;
|
|
4892
|
+
this.descriptionR1 = this.translations.IdCaptureValues.ErrorR1;
|
|
4893
|
+
this.descriptionR2 = this.translations.IdCaptureValues.ErrorR2;
|
|
4665
4894
|
}
|
|
4666
4895
|
if (this.type == 'LIVENESS') {
|
|
4667
|
-
this.titleR1 = this.
|
|
4668
|
-
this.titleR2 = this.
|
|
4669
|
-
this.descriptionR1 = this.
|
|
4670
|
-
this.descriptionR2 = this.
|
|
4896
|
+
this.titleR1 = this.translations.SelfieCaptureValues.ErrorTitleR1;
|
|
4897
|
+
this.titleR2 = this.translations.SelfieCaptureValues.ErrorTitleR2;
|
|
4898
|
+
this.descriptionR1 = this.translations.SelfieCaptureValues.ErrorR1;
|
|
4899
|
+
this.descriptionR2 = this.translations.SelfieCaptureValues.ErrorR2;
|
|
4671
4900
|
}
|
|
4672
4901
|
}
|
|
4673
4902
|
async componentDidLoad() {
|
|
@@ -4676,7 +4905,7 @@ const CaptureError = class {
|
|
|
4676
4905
|
this.buttonText = i.toString();
|
|
4677
4906
|
await delay(1000);
|
|
4678
4907
|
}
|
|
4679
|
-
this.buttonText = this.
|
|
4908
|
+
this.buttonText = this.translations.IdCaptureValues.Button;
|
|
4680
4909
|
this.buttonEnabled = true;
|
|
4681
4910
|
}
|
|
4682
4911
|
async buttonClick() {
|
|
@@ -4685,7 +4914,7 @@ const CaptureError = class {
|
|
|
4685
4914
|
this.eventCaptureErrorDone.emit();
|
|
4686
4915
|
}
|
|
4687
4916
|
render() {
|
|
4688
|
-
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.
|
|
4917
|
+
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))))));
|
|
4689
4918
|
}
|
|
4690
4919
|
};
|
|
4691
4920
|
CaptureError.style = captureErrorCss;
|
|
@@ -4698,13 +4927,15 @@ const EndRedirect = class {
|
|
|
4698
4927
|
constructor(hostRef) {
|
|
4699
4928
|
registerInstance(this, hostRef);
|
|
4700
4929
|
this.apiErrorEvent = createEvent(this, "apiError", 7);
|
|
4701
|
-
|
|
4930
|
+
}
|
|
4931
|
+
async componentWillLoad() {
|
|
4932
|
+
this.translations = await Translations.getValues();
|
|
4702
4933
|
}
|
|
4703
4934
|
async componentDidLoad() {
|
|
4704
4935
|
Events.flowCompleted();
|
|
4705
4936
|
}
|
|
4706
4937
|
render() {
|
|
4707
|
-
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, this.
|
|
4938
|
+
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: completeSvg }))))), 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, state.requestId)), h("div", { class: "btn-buletin" }, h("p", { class: "main-text font-size-18 text-center mb-0" }, this.translations.GlobalValues.FooterText)))));
|
|
4708
4939
|
}
|
|
4709
4940
|
};
|
|
4710
4941
|
EndRedirect.style = endRedirectCss;
|
|
@@ -4738,34 +4969,35 @@ const HowToInfo = class {
|
|
|
4738
4969
|
this.buttonEnabled = false;
|
|
4739
4970
|
this.eventHowToInfoDone.emit();
|
|
4740
4971
|
}
|
|
4741
|
-
componentWillLoad() {
|
|
4972
|
+
async componentWillLoad() {
|
|
4973
|
+
this.translations = await Translations.getValues();
|
|
4742
4974
|
this.subTitle = '';
|
|
4743
4975
|
this.buttonEnabled = true;
|
|
4744
4976
|
if (state.flowStatus == FlowStatus.ID) {
|
|
4745
|
-
this.topTitle = this.
|
|
4977
|
+
this.topTitle = this.translations.HowToValues.IdTitile;
|
|
4746
4978
|
this.imagePath = 'https://ekyc.blob.core.windows.net/$web/howto_id.png';
|
|
4747
|
-
this.buttonText = this.
|
|
4979
|
+
this.buttonText = this.translations.HowToValues.IdButton;
|
|
4748
4980
|
if (this.idSide == 'front') {
|
|
4749
4981
|
this.baseComponent = new BaseComponent(FlowSteps.CiFrontHowTo);
|
|
4750
|
-
this.subTitle = this.
|
|
4982
|
+
this.subTitle = this.translations.HowToValues.IdSubTitileFace;
|
|
4751
4983
|
}
|
|
4752
4984
|
if (this.idSide == 'back') {
|
|
4753
4985
|
this.baseComponent = new BaseComponent(FlowSteps.CiBackHowTo);
|
|
4754
|
-
this.subTitle = this.
|
|
4986
|
+
this.subTitle = this.translations.HowToValues.IdSubTitileBack;
|
|
4755
4987
|
}
|
|
4756
4988
|
}
|
|
4757
4989
|
if (state.flowStatus == FlowStatus.LIVENESS) {
|
|
4758
4990
|
this.baseComponent = new BaseComponent(FlowSteps.SelfieHowTo);
|
|
4759
|
-
this.topTitle = this.
|
|
4760
|
-
this.subTitle = this.
|
|
4991
|
+
this.topTitle = this.translations.HowToValues.SelfieTitile;
|
|
4992
|
+
this.subTitle = this.translations.HowToValues.SelfieSubTitile;
|
|
4761
4993
|
this.imagePath = 'https://ekyc.blob.core.windows.net/$web/howto_selfie.png';
|
|
4762
|
-
this.buttonText = this.
|
|
4994
|
+
this.buttonText = this.translations.HowToValues.SelfieButton;
|
|
4763
4995
|
}
|
|
4764
4996
|
this.baseComponent.setEventEmitter(this.apiErrorEvent);
|
|
4765
4997
|
}
|
|
4766
4998
|
render() {
|
|
4767
4999
|
let sub = this.subTitle != '' ? h("p", { class: "font-size-2" }, this.subTitle) : null;
|
|
4768
|
-
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.
|
|
5000
|
+
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))))));
|
|
4769
5001
|
}
|
|
4770
5002
|
};
|
|
4771
5003
|
HowToInfo.style = howToInfoCss;
|
|
@@ -4937,6 +5169,7 @@ const IdBackCapture = class {
|
|
|
4937
5169
|
this.cameraSize = event.detail;
|
|
4938
5170
|
}
|
|
4939
5171
|
async componentWillLoad() {
|
|
5172
|
+
this.translations = await Translations.getValues();
|
|
4940
5173
|
//this.videoDemoStyle = this.device.isMobile ? { width: window.screen.width + 'px', height: window.screen.height + 'px', 'object-fit': 'fill' } : {};
|
|
4941
5174
|
if (!navigator.mediaDevices) {
|
|
4942
5175
|
this.apiErrorEvent.emit({ message: 'This browser does not support webRTC' });
|
|
@@ -4944,14 +5177,14 @@ const IdBackCapture = class {
|
|
|
4944
5177
|
}
|
|
4945
5178
|
async componentDidLoad() {
|
|
4946
5179
|
await this.baseComponent.logStep(FlowSteps.CiBackCapture, FlowMoments.Initialized);
|
|
4947
|
-
this.titleMesage = this.
|
|
5180
|
+
this.titleMesage = this.translations.IdCaptureValues.TtileRotate;
|
|
4948
5181
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Rotate];
|
|
4949
5182
|
this.demoVideo.play();
|
|
4950
|
-
await delay(this.
|
|
4951
|
-
this.titleMesage = this.
|
|
5183
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5184
|
+
this.titleMesage = this.translations.IdCaptureValues.TitleBack;
|
|
4952
5185
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.BackStraight];
|
|
4953
5186
|
this.demoVideo.play();
|
|
4954
|
-
await delay(this.
|
|
5187
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
4955
5188
|
this.showDemo = false;
|
|
4956
5189
|
this.openCamera();
|
|
4957
5190
|
}
|
|
@@ -4985,7 +5218,7 @@ const IdBackCapture = class {
|
|
|
4985
5218
|
if (this.verified)
|
|
4986
5219
|
return;
|
|
4987
5220
|
this.verified = true;
|
|
4988
|
-
this.titleMesage = this.
|
|
5221
|
+
this.titleMesage = this.translations.IdCaptureValues.Loading;
|
|
4989
5222
|
this.closeCamera();
|
|
4990
5223
|
this.showDemo = true;
|
|
4991
5224
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
@@ -5010,7 +5243,7 @@ const IdBackCapture = class {
|
|
|
5010
5243
|
let titleClass = this.verified ? 'color-black-2 text-center' : 'color-white text-center';
|
|
5011
5244
|
//let videoClass = this.device.isMobile ? '' : 'video-demo';
|
|
5012
5245
|
let bgDemo = this.verified ? 'container' : 'container bg-black';
|
|
5013
|
-
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.
|
|
5246
|
+
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)))));
|
|
5014
5247
|
}
|
|
5015
5248
|
get component() { return getElement(this); }
|
|
5016
5249
|
};
|
|
@@ -5046,7 +5279,8 @@ const IdCapture = class {
|
|
|
5046
5279
|
this.cameraSize = event.detail;
|
|
5047
5280
|
}
|
|
5048
5281
|
async componentWillLoad() {
|
|
5049
|
-
this.
|
|
5282
|
+
this.translations = await Translations.getValues();
|
|
5283
|
+
this.titleMesage = this.translations.IdCaptureValues.Title;
|
|
5050
5284
|
//this.videoDemoStyle = this.device.isMobile ? { 'width': window.screen.width + 'px', 'height': window.screen.height + 'px', 'object-fit': 'fill' } : {};
|
|
5051
5285
|
if (!navigator.mediaDevices) {
|
|
5052
5286
|
this.apiErrorEvent.emit({ message: 'This browser does not support webRTC' });
|
|
@@ -5056,7 +5290,7 @@ const IdCapture = class {
|
|
|
5056
5290
|
await this.baseComponent.logStep(FlowSteps.CiFrontCapture, FlowMoments.Initialized);
|
|
5057
5291
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Straight];
|
|
5058
5292
|
this.demoVideo.play();
|
|
5059
|
-
await delay(this.
|
|
5293
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5060
5294
|
this.showDemo = false;
|
|
5061
5295
|
this.openCamera();
|
|
5062
5296
|
}
|
|
@@ -5098,7 +5332,7 @@ const IdCapture = class {
|
|
|
5098
5332
|
if (this.verified)
|
|
5099
5333
|
return;
|
|
5100
5334
|
this.verified = true;
|
|
5101
|
-
this.titleMesage = this.
|
|
5335
|
+
this.titleMesage = this.translations.IdCaptureValues.Loading;
|
|
5102
5336
|
this.closeCamera();
|
|
5103
5337
|
this.showDemo = true;
|
|
5104
5338
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
@@ -5120,7 +5354,7 @@ const IdCapture = class {
|
|
|
5120
5354
|
let titleClass = this.verified ? 'color-black-2 text-center' : 'color-white text-center';
|
|
5121
5355
|
//let videoClass = this.device.isMobile ? '' : 'video-demo';
|
|
5122
5356
|
let bgDemo = this.verified ? 'container' : 'container bg-black';
|
|
5123
|
-
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.
|
|
5357
|
+
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)))));
|
|
5124
5358
|
}
|
|
5125
5359
|
get component() { return getElement(this); }
|
|
5126
5360
|
};
|
|
@@ -5156,7 +5390,8 @@ const IdTilt = class {
|
|
|
5156
5390
|
this.cameraSize = event.detail;
|
|
5157
5391
|
}
|
|
5158
5392
|
async componentWillLoad() {
|
|
5159
|
-
this.
|
|
5393
|
+
this.translations = await Translations.getValues();
|
|
5394
|
+
this.titleMesage = this.translations.IdCaptureValues.IDPoseMapping;
|
|
5160
5395
|
//this.videoDemoStyle = this.device.isMobile ? { 'width': window.screen.width + 'px', 'height': window.screen.height + 'px', 'object-fit': 'fill' } : {};
|
|
5161
5396
|
if (!navigator.mediaDevices) {
|
|
5162
5397
|
this.apiErrorEvent.emit({ message: 'This browser does not support webRTC' });
|
|
@@ -5166,7 +5401,7 @@ const IdTilt = class {
|
|
|
5166
5401
|
await this.baseComponent.logStep(FlowSteps.CiTilt, FlowMoments.Initialized);
|
|
5167
5402
|
this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Tilted];
|
|
5168
5403
|
this.demoVideo.play();
|
|
5169
|
-
await delay(this.
|
|
5404
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
5170
5405
|
this.showDemo = false;
|
|
5171
5406
|
this.openCamera();
|
|
5172
5407
|
}
|
|
@@ -5208,7 +5443,7 @@ const IdTilt = class {
|
|
|
5208
5443
|
if (this.verified)
|
|
5209
5444
|
return;
|
|
5210
5445
|
this.verified = true;
|
|
5211
|
-
this.titleMesage = this.
|
|
5446
|
+
this.titleMesage = this.translations.IdCaptureValues.Loading;
|
|
5212
5447
|
this.closeCamera();
|
|
5213
5448
|
this.showDemo = true;
|
|
5214
5449
|
this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
|
|
@@ -5230,7 +5465,7 @@ const IdTilt = class {
|
|
|
5230
5465
|
let titleClass = this.verified ? 'color-black-2 text-center' : 'color-white text-center';
|
|
5231
5466
|
//let videoClass = this.device.isMobile ? '' : 'video-demo';
|
|
5232
5467
|
let bgDemo = this.verified ? 'container' : 'container bg-black';
|
|
5233
|
-
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.
|
|
5468
|
+
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)))));
|
|
5234
5469
|
}
|
|
5235
5470
|
get component() { return getElement(this); }
|
|
5236
5471
|
};
|
|
@@ -5302,7 +5537,7 @@ function v4(options, buf, offset) {
|
|
|
5302
5537
|
}
|
|
5303
5538
|
|
|
5304
5539
|
const name = "@ekyc_qoobiss/qbs-ect-cmp";
|
|
5305
|
-
const version$1 = "3.6.
|
|
5540
|
+
const version$1 = "3.6.30";
|
|
5306
5541
|
const description = "Person Identification Component";
|
|
5307
5542
|
const main = "./dist/index.cjs.js";
|
|
5308
5543
|
const module = "./dist/index.js";
|
|
@@ -5622,6 +5857,7 @@ const LandingValidation = class {
|
|
|
5622
5857
|
}
|
|
5623
5858
|
async componentWillLoad() {
|
|
5624
5859
|
Events.flowStarted();
|
|
5860
|
+
this.translations = await Translations.getValues();
|
|
5625
5861
|
this.baseComponent.apiCall = new ApiCall();
|
|
5626
5862
|
this.buttonDisabled = false;
|
|
5627
5863
|
await this.initRequest();
|
|
@@ -5633,10 +5869,10 @@ const LandingValidation = class {
|
|
|
5633
5869
|
}
|
|
5634
5870
|
async initRequest() {
|
|
5635
5871
|
if (state.hasIdBack) {
|
|
5636
|
-
this.warningText = this.
|
|
5872
|
+
this.warningText = this.translations.LandingValues.WarningMd;
|
|
5637
5873
|
}
|
|
5638
5874
|
else {
|
|
5639
|
-
this.warningText = this.
|
|
5875
|
+
this.warningText = this.translations.LandingValues.Warning;
|
|
5640
5876
|
}
|
|
5641
5877
|
}
|
|
5642
5878
|
async startFlow() {
|
|
@@ -5679,7 +5915,7 @@ const LandingValidation = class {
|
|
|
5679
5915
|
}
|
|
5680
5916
|
}
|
|
5681
5917
|
render() {
|
|
5682
|
-
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, this.
|
|
5918
|
+
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: infoSvg })))), 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: deviceSvg })), h("h3", null, this.translations.LandingValues.DeviceInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: validationSvg })), 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: !state.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))))));
|
|
5683
5919
|
}
|
|
5684
5920
|
};
|
|
5685
5921
|
LandingValidation.style = landingValidationCss;
|
|
@@ -8579,8 +8815,9 @@ const MobileRedirect = class {
|
|
|
8579
8815
|
}
|
|
8580
8816
|
async componentWillLoad() {
|
|
8581
8817
|
Events.flowStarted();
|
|
8582
|
-
this.
|
|
8583
|
-
this.
|
|
8818
|
+
this.translations = await Translations.getValues();
|
|
8819
|
+
this.infoTextTop = this.translations.MobileRedirectValues.InfoTop;
|
|
8820
|
+
this.infoTextBottom = this.translations.MobileRedirectValues.InfoBottom;
|
|
8584
8821
|
let envUri = state.environment == 'QA' ? 'test' : 'ect';
|
|
8585
8822
|
let baseUri = state.hasIdBack ? 'https://onmd.id-kyc.com/' : 'https://onro.id-kyc.com/';
|
|
8586
8823
|
this.redirectLink = baseUri + envUri + '/mobileredirect?redirectId=' + state.redirectId;
|
|
@@ -8614,12 +8851,12 @@ const MobileRedirect = class {
|
|
|
8614
8851
|
this.apiErrorEvent.emit({ message: 'No order was started for this process.' });
|
|
8615
8852
|
}
|
|
8616
8853
|
if (this.orderStatus == OrderStatuses.Capturing) {
|
|
8617
|
-
this.infoTextTop = this.
|
|
8854
|
+
this.infoTextTop = this.translations.MobileRedirectValues.InfoWaiting;
|
|
8618
8855
|
this.waitingMobile = true;
|
|
8619
8856
|
}
|
|
8620
8857
|
if (this.orderStatus == OrderStatuses.Aborted) {
|
|
8621
8858
|
this.waitingMobile = false;
|
|
8622
|
-
this.infoTextTop = this.
|
|
8859
|
+
this.infoTextTop = this.translations.MobileRedirectValues.InfoAborted;
|
|
8623
8860
|
Events.flowAborted();
|
|
8624
8861
|
}
|
|
8625
8862
|
}
|
|
@@ -8631,7 +8868,7 @@ const MobileRedirect = class {
|
|
|
8631
8868
|
return;
|
|
8632
8869
|
}
|
|
8633
8870
|
this.waitingMobile = true;
|
|
8634
|
-
this.infoTextTop = this.
|
|
8871
|
+
this.infoTextTop = this.translations.MobileRedirectValues.InfoWaiting;
|
|
8635
8872
|
try {
|
|
8636
8873
|
await this.baseComponent.apiCall.SendLink(this.redirectLink, this.contact);
|
|
8637
8874
|
}
|
|
@@ -8649,7 +8886,7 @@ const MobileRedirect = class {
|
|
|
8649
8886
|
ev.target.value = this.contact;
|
|
8650
8887
|
}
|
|
8651
8888
|
render() {
|
|
8652
|
-
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { hidden: this.waitingMobile }, h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextTop)), h("div", { class: "qr-canvas align-center" }, h("img", { src: this.qrCode })), h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextBottom)), h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1 color-red", hidden: this.invalidValue == false }, h("b", null, this.
|
|
8889
|
+
return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { hidden: this.waitingMobile }, h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextTop)), h("div", { class: "qr-canvas align-center" }, h("img", { src: this.qrCode })), h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextBottom)), h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1 color-red", hidden: this.invalidValue == false }, h("b", null, this.translations.MobileRedirectValues.Validation)), h("input", { type: "text", id: "codeInput", class: "main-input", disabled: this.prefilledPhone, value: this.contact, onInput: ev => this.handleChangeContact(ev) })), h("div", { class: "pos-relative" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", onClick: () => this.buttonClick() }, "Trimite"), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText)))), h("div", { hidden: this.waitingMobile == false }, h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextTop))))));
|
|
8653
8890
|
}
|
|
8654
8891
|
};
|
|
8655
8892
|
MobileRedirect.style = mobileRedirectCss;
|
|
@@ -8985,8 +9222,9 @@ const SelfieCapture = class {
|
|
|
8985
9222
|
this.captureHeight = height - Math.round((window.screen.height - height) / 2);
|
|
8986
9223
|
this.captureWidth = Math.round((this.captureHeight * 9) / 16);
|
|
8987
9224
|
}
|
|
8988
|
-
componentWillLoad() {
|
|
8989
|
-
this.
|
|
9225
|
+
async componentWillLoad() {
|
|
9226
|
+
this.translations = await Translations.getValues();
|
|
9227
|
+
this.titleMesage = this.translations.SelfieCaptureValues.Title;
|
|
8990
9228
|
//this.videoDemoStyle = this.device.isMobile ? { 'width': window.screen.width + 'px', 'height': window.screen.height + 'px', 'object-fit': 'fill' } : {};
|
|
8991
9229
|
if (!navigator.mediaDevices) {
|
|
8992
9230
|
this.apiErrorEvent.emit({ message: 'This browser does not support webRTC' });
|
|
@@ -8996,7 +9234,7 @@ const SelfieCapture = class {
|
|
|
8996
9234
|
await this.baseComponent.logStep(FlowSteps.SelfieCapture, FlowMoments.Initialized);
|
|
8997
9235
|
this.demoVideo.src = SelfieCaptureValues.FacePoseDemoMapping[FacePose.Main];
|
|
8998
9236
|
this.demoVideo.play();
|
|
8999
|
-
await delay(this.
|
|
9237
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
9000
9238
|
this.demoEnded = true;
|
|
9001
9239
|
this.openCamera();
|
|
9002
9240
|
}
|
|
@@ -9037,7 +9275,7 @@ const SelfieCapture = class {
|
|
|
9037
9275
|
if (this.verified)
|
|
9038
9276
|
return;
|
|
9039
9277
|
this.verified = true;
|
|
9040
|
-
this.titleMesage = this.
|
|
9278
|
+
this.titleMesage = this.translations.SelfieCaptureValues.Loading;
|
|
9041
9279
|
this.closeCamera();
|
|
9042
9280
|
this.demoEnded = false;
|
|
9043
9281
|
this.demoVideo.src = this.uploadingLink;
|
|
@@ -9059,7 +9297,7 @@ const SelfieCapture = class {
|
|
|
9059
9297
|
let titleClass = this.verified ? 'color-black-2 text-center' : 'color-white text-center';
|
|
9060
9298
|
//let videoClass = this.device.isMobile ? '' : 'video-demo';
|
|
9061
9299
|
let bgDemo = this.verified ? 'container' : 'container bg-black';
|
|
9062
|
-
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.
|
|
9300
|
+
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)))));
|
|
9063
9301
|
}
|
|
9064
9302
|
get component() { return getElement(this); }
|
|
9065
9303
|
};
|
|
@@ -9100,8 +9338,9 @@ const SelfieTilt = class {
|
|
|
9100
9338
|
this.captureHeight = height - Math.round((window.screen.height - height) / 2);
|
|
9101
9339
|
this.captureWidth = Math.round((this.captureHeight * 9) / 16);
|
|
9102
9340
|
}
|
|
9103
|
-
componentWillLoad() {
|
|
9104
|
-
this.
|
|
9341
|
+
async componentWillLoad() {
|
|
9342
|
+
this.translations = await Translations.getValues();
|
|
9343
|
+
this.titleMesage = this.translations.SelfieCaptureValues.Title;
|
|
9105
9344
|
//this.videoDemoStyle = this.device.isMobile ? { 'width': window.screen.width + 'px', 'height': window.screen.height + 'px', 'object-fit': 'fill' } : {};
|
|
9106
9345
|
if (!navigator.mediaDevices) {
|
|
9107
9346
|
this.apiErrorEvent.emit({ message: 'This browser does not support webRTC' });
|
|
@@ -9110,11 +9349,11 @@ const SelfieTilt = class {
|
|
|
9110
9349
|
async componentDidLoad() {
|
|
9111
9350
|
this.mainStream = Stream.getInstance(VerificationMode.Tilt);
|
|
9112
9351
|
await this.baseComponent.logStep(FlowSteps.SelfieTilt, FlowMoments.Initialized);
|
|
9113
|
-
this.titleMesage = this.
|
|
9352
|
+
this.titleMesage = this.translations.SelfieCaptureValues.FacePoseMapping[Object.values(FacePose).indexOf(this.mainStream.facePose)];
|
|
9114
9353
|
this.demoEnded = false;
|
|
9115
9354
|
this.demoVideo.src = SelfieCaptureValues.FacePoseDemoMapping[this.mainStream.facePose];
|
|
9116
9355
|
this.demoVideo.play();
|
|
9117
|
-
await delay(this.
|
|
9356
|
+
await delay(this.translations.GlobalValues.VideoLenght);
|
|
9118
9357
|
this.demoEnded = true;
|
|
9119
9358
|
this.openCamera();
|
|
9120
9359
|
}
|
|
@@ -9154,7 +9393,7 @@ const SelfieTilt = class {
|
|
|
9154
9393
|
if (this.verified)
|
|
9155
9394
|
return;
|
|
9156
9395
|
this.verified = true;
|
|
9157
|
-
this.titleMesage = this.
|
|
9396
|
+
this.titleMesage = this.translations.SelfieCaptureValues.Loading;
|
|
9158
9397
|
this.closeCamera();
|
|
9159
9398
|
this.demoEnded = false;
|
|
9160
9399
|
this.demoVideo.src = this.uploadingLink;
|
|
@@ -9176,7 +9415,7 @@ const SelfieTilt = class {
|
|
|
9176
9415
|
let titleClass = this.verified ? 'color-black-2 text-center' : 'color-white text-center';
|
|
9177
9416
|
//let videoClass = this.device.isMobile ? '' : 'video-demo';
|
|
9178
9417
|
let bgDemo = this.verified ? 'container' : 'container bg-black';
|
|
9179
|
-
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.
|
|
9418
|
+
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)))));
|
|
9180
9419
|
}
|
|
9181
9420
|
get component() { return getElement(this); }
|
|
9182
9421
|
};
|
|
@@ -9229,11 +9468,12 @@ const SmsCodeValidation = class {
|
|
|
9229
9468
|
async disconnectedCallback() {
|
|
9230
9469
|
await this.baseComponent.finalize();
|
|
9231
9470
|
}
|
|
9232
|
-
componentWillRender() {
|
|
9471
|
+
async componentWillRender() {
|
|
9472
|
+
this.translations = await Translations.getValues();
|
|
9233
9473
|
if (state.flowStatus == FlowStatus.PHONE) {
|
|
9234
|
-
this.title = this.
|
|
9235
|
-
this.details = this.
|
|
9236
|
-
this.buttonText = this.
|
|
9474
|
+
this.title = this.translations.PhoneValidationValues.Title;
|
|
9475
|
+
this.details = this.translations.PhoneValidationValues.Description;
|
|
9476
|
+
this.buttonText = this.translations.PhoneValidationValues.Button;
|
|
9237
9477
|
if (state.phoneNumber && state.phoneNumber != '') {
|
|
9238
9478
|
this.phoneNumber = state.phoneNumber;
|
|
9239
9479
|
this.prefilledPhone = true;
|
|
@@ -9241,9 +9481,9 @@ const SmsCodeValidation = class {
|
|
|
9241
9481
|
}
|
|
9242
9482
|
}
|
|
9243
9483
|
if (state.flowStatus == FlowStatus.CODE || state.flowStatus == FlowStatus.CODEERROR) {
|
|
9244
|
-
this.title = this.
|
|
9245
|
-
this.details = this.
|
|
9246
|
-
this.buttonText = this.
|
|
9484
|
+
this.title = this.translations.CodeValidationValues.Title;
|
|
9485
|
+
this.details = this.translations.CodeValidationValues.Description;
|
|
9486
|
+
this.buttonText = this.translations.CodeValidationValues.Button;
|
|
9247
9487
|
}
|
|
9248
9488
|
}
|
|
9249
9489
|
async componentDidLoad() {
|
|
@@ -9269,15 +9509,15 @@ const SmsCodeValidation = class {
|
|
|
9269
9509
|
let inputBlock;
|
|
9270
9510
|
let errorBlock;
|
|
9271
9511
|
if (state.flowStatus == FlowStatus.CODEERROR) {
|
|
9272
|
-
errorBlock = h("p", { class: "main-text font-size-18 mt-15 color-red text-center" }, this.
|
|
9512
|
+
errorBlock = h("p", { class: "main-text font-size-18 mt-15 color-red text-center" }, this.translations.CodeValidationValues.Error);
|
|
9273
9513
|
}
|
|
9274
9514
|
if (state.flowStatus == FlowStatus.PHONE) {
|
|
9275
|
-
inputBlock = (h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1" }, h("b", null, this.
|
|
9515
|
+
inputBlock = (h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1" }, h("b", null, this.translations.PhoneValidationValues.Label)), h("input", { type: "tel", id: "phoneInput", class: "main-input", disabled: this.prefilledPhone, onInput: ev => this.handleChangePhone(ev), value: this.phoneNumber })));
|
|
9276
9516
|
}
|
|
9277
9517
|
else {
|
|
9278
9518
|
inputBlock = (h("div", { class: "input-container mb-15" }, h("input", { type: "text", id: "codeInput", class: "main-input", onInput: ev => this.handleChangeCode(ev), value: this.code })));
|
|
9279
9519
|
}
|
|
9280
|
-
return (h("div", { class: "container" }, h("div", { class: "row row-validare" }, h("div", null, h("h1", { class: "text-center" }, this.title), errorBlock == null ? h("p", { class: "main-text font-size-2 mt-15 mb-20 text-center" }, this.details) : errorBlock), inputBlock, h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { id: "action", disabled: !this.canSend, class: "main-button", onClick: () => this.doAction() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.
|
|
9520
|
+
return (h("div", { class: "container" }, h("div", { class: "row row-validare" }, h("div", null, h("h1", { class: "text-center" }, this.title), errorBlock == null ? h("p", { class: "main-text font-size-2 mt-15 mb-20 text-center" }, this.details) : errorBlock), inputBlock, h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { id: "action", disabled: !this.canSend, class: "main-button", onClick: () => this.doAction() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.translations.GlobalValues.FooterText))))));
|
|
9281
9521
|
}
|
|
9282
9522
|
};
|
|
9283
9523
|
SmsCodeValidation.style = smsCodeValidationCss;
|