@ekyc_qoobiss/qbs-ect-cmp 3.6.26 → 3.6.28

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.
Files changed (53) hide show
  1. package/dist/cjs/agreement-check_19.cjs.entry.js +287 -759
  2. package/dist/cjs/base-component-aa9e52bf.js +832 -0
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/qbs-ect-cmp.cjs.js +1 -1
  5. package/dist/cjs/random-actions.cjs.entry.js +3 -2
  6. package/dist/collection/components/base-component.js +4 -0
  7. package/dist/collection/components/common/agreement-check/agreement-check.js +5 -2
  8. package/dist/collection/components/common/camera-error/camera-error.js +6 -6
  9. package/dist/collection/components/common/capture-error/capture-error.js +10 -11
  10. package/dist/collection/components/common/how-to-info/how-to-info.js +8 -9
  11. package/dist/collection/components/common/id-back-capture/id-back-capture.js +7 -7
  12. package/dist/collection/components/common/id-capture/id-capture.js +4 -4
  13. package/dist/collection/components/common/id-tilt/id-tilt.js +4 -4
  14. package/dist/collection/components/common/random-actions/random-actions.js +6 -2
  15. package/dist/collection/components/common/selfie-capture/selfie-capture.js +4 -4
  16. package/dist/collection/components/common/selfie-tilt/selfie-tilt.js +6 -5
  17. package/dist/collection/components/flow/agreement-info/agreement-info.js +1 -2
  18. package/dist/collection/components/flow/end-redirect/end-redirect.js +6 -3
  19. package/dist/collection/components/flow/landing-validation/landing-validation.js +4 -4
  20. package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +6 -7
  21. package/dist/collection/components/flow/sms-code-validation/sms-code-validation.js +9 -10
  22. package/dist/collection/components/identification-component/identification-component.js +21 -0
  23. package/dist/collection/helpers/TranslationUtils.js +37 -0
  24. package/dist/collection/helpers/store.js +1 -0
  25. package/dist/collection/helpers/textValues.js +11 -108
  26. package/dist/collection/models/ITranslationValues.js +1 -0
  27. package/dist/esm/agreement-check_19.entry.js +80 -552
  28. package/dist/esm/base-component-b7f50d31.js +824 -0
  29. package/dist/esm/loader.js +1 -1
  30. package/dist/esm/qbs-ect-cmp.js +1 -1
  31. package/dist/esm/random-actions.entry.js +3 -2
  32. package/dist/i18n/en.json +100 -0
  33. package/dist/i18n/ro.json +100 -0
  34. package/dist/i18n/ru.json +100 -0
  35. package/dist/qbs-ect-cmp/p-215a7e76.entry.js +1 -0
  36. package/dist/qbs-ect-cmp/p-7bedffaa.js +1 -0
  37. package/dist/qbs-ect-cmp/{p-40480abb.entry.js → p-c32a782a.entry.js} +2 -2
  38. package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
  39. package/dist/types/components/base-component.d.ts +2 -0
  40. package/dist/types/components/common/agreement-check/agreement-check.d.ts +1 -0
  41. package/dist/types/components/common/random-actions/random-actions.d.ts +2 -0
  42. package/dist/types/components/flow/end-redirect/end-redirect.d.ts +1 -0
  43. package/dist/types/components/identification-component/identification-component.d.ts +1 -0
  44. package/dist/types/components.d.ts +2 -0
  45. package/dist/types/helpers/TranslationUtils.d.ts +9 -0
  46. package/dist/types/helpers/textValues.d.ts +8 -95
  47. package/dist/types/models/IEctStore.d.ts +1 -0
  48. package/dist/types/models/ITranslationValues.d.ts +101 -0
  49. package/package.json +1 -1
  50. package/dist/cjs/store-f1a0f55c.js +0 -413
  51. package/dist/esm/store-fdeed827.js +0 -398
  52. package/dist/qbs-ect-cmp/p-0b381be5.js +0 -1
  53. package/dist/qbs-ect-cmp/p-6be3b9ca.entry.js +0 -1
@@ -1,264 +1,5 @@
1
1
  import { r as registerInstance, c as createEvent, h, g as getElement } from './index-cf54a432.js';
2
- import { A as ApiUrls, s as state, F as FlowStatus, a as AgreementCheckValues, b as AgreementInfoValues, S as SessionKeys, C as CameraErrorValues, I as IdCaptureValues, c as SelfieCaptureValues, d as CompleteValues, H as HowToValues, L as LandingValues, M as MobileRedirectValues, P as PhoneValidationValues, e as CodeValidationValues } from './store-fdeed827.js';
3
-
4
- var OrderStatuses;
5
- (function (OrderStatuses) {
6
- OrderStatuses[OrderStatuses["Capturing"] = 0] = "Capturing";
7
- OrderStatuses[OrderStatuses["FinishedCapturing"] = 1] = "FinishedCapturing";
8
- OrderStatuses[OrderStatuses["Waiting"] = 2] = "Waiting";
9
- OrderStatuses[OrderStatuses["NotFound"] = 3] = "NotFound";
10
- OrderStatuses[OrderStatuses["Aborted"] = 4] = "Aborted";
11
- })(OrderStatuses || (OrderStatuses = {}));
12
-
13
- var FlowSteps;
14
- (function (FlowSteps) {
15
- FlowSteps[FlowSteps["ComponentLoaded"] = 'component-loaded'] = "ComponentLoaded";
16
- FlowSteps[FlowSteps["MobileRedirect"] = 'mobile-redirect'] = "MobileRedirect";
17
- FlowSteps[FlowSteps["Landing"] = 'landing'] = "Landing";
18
- FlowSteps[FlowSteps["Agreements"] = 'agreements'] = "Agreements";
19
- FlowSteps[FlowSteps["OtpSend"] = 'otp-send'] = "OtpSend";
20
- FlowSteps[FlowSteps["OtpCheck"] = 'otp-check'] = "OtpCheck";
21
- FlowSteps[FlowSteps["CiFront"] = 'ci-front'] = "CiFront";
22
- FlowSteps[FlowSteps["CiFrontHowTo"] = 'ci-front-how-to'] = "CiFrontHowTo";
23
- FlowSteps[FlowSteps["CiFrontCapture"] = 'ci-front-capture'] = "CiFrontCapture";
24
- FlowSteps[FlowSteps["CiBack"] = 'ci-back'] = "CiBack";
25
- FlowSteps[FlowSteps["CiBackHowTo"] = 'ci-back-how-to'] = "CiBackHowTo";
26
- FlowSteps[FlowSteps["CiBackCapture"] = 'ci-back-capture'] = "CiBackCapture";
27
- FlowSteps[FlowSteps["CiTilt"] = 'ci-tilt'] = "CiTilt";
28
- FlowSteps[FlowSteps["CiError"] = 'ci-error'] = "CiError";
29
- FlowSteps[FlowSteps["SelfieHowTo"] = 'selfie-how-to'] = "SelfieHowTo";
30
- FlowSteps[FlowSteps["SelfieTilt"] = 'selfie-tilt'] = "SelfieTilt";
31
- FlowSteps[FlowSteps["SelfieCapture"] = 'selfie-capture'] = "SelfieCapture";
32
- FlowSteps[FlowSteps["Selfie"] = 'selfie'] = "Selfie";
33
- FlowSteps[FlowSteps["SelfieError"] = 'selfie-error'] = "SelfieError";
34
- FlowSteps[FlowSteps["End"] = 'end'] = "End";
35
- FlowSteps[FlowSteps["CameraError"] = 'camera-error'] = "CameraError";
36
- })(FlowSteps || (FlowSteps = {}));
37
- var FlowMoments;
38
- (function (FlowMoments) {
39
- FlowMoments[FlowMoments["Initialized"] = 'initialized'] = "Initialized";
40
- FlowMoments[FlowMoments["Finalized"] = 'finalized'] = "Finalized";
41
- FlowMoments[FlowMoments["None"] = 'none'] = "None";
42
- })(FlowMoments || (FlowMoments = {}));
43
-
44
- class ApiCall {
45
- constructor() {
46
- this.serviceErrors = ['Service Unavailable', 'Unauthorized'];
47
- this.toBase64 = (file) => new Promise((resolve, reject) => {
48
- const reader = new FileReader();
49
- reader.readAsDataURL(file);
50
- reader.onload = () => resolve(reader.result);
51
- reader.onerror = error => reject(error);
52
- });
53
- this.urls = new ApiUrls();
54
- }
55
- // private async http2<T>(method: string, url: string, data: string): Promise<T> {
56
- // return new Promise((resolve, reject) => {
57
- // var xhr = new XMLHttpRequest();
58
- // xhr.open(method, url);
59
- // xhr.onload = function () {
60
- // if (xhr.status >= 200 && xhr.status < 300) {
61
- // resolve(xhr.response);
62
- // } else {
63
- // reject({
64
- // status: xhr.status,
65
- // statusText: xhr.statusText,
66
- // });
67
- // }
68
- // };
69
- // xhr.onerror = function () {
70
- // reject({
71
- // status: xhr.status,
72
- // statusText: xhr.statusText,
73
- // });
74
- // };
75
- // xhr.send(data);
76
- // });
77
- // }
78
- async http(request) {
79
- const response = await fetch(request);
80
- if (!response.ok) {
81
- throw new Error(response.statusText);
82
- }
83
- try {
84
- // may error if there is no body
85
- return await response.json();
86
- }
87
- catch (ex) {
88
- throw new Error('No json found in response ' + ex);
89
- }
90
- }
91
- async post(url, data, withRetry = true) {
92
- var request = new Request(state.apiBaseUrl + url, {
93
- method: 'POST',
94
- body: data,
95
- headers: {
96
- 'Content-Type': 'application/json',
97
- 'Authorization': 'IDKYC-TOKEN ' + state.token,
98
- },
99
- });
100
- try {
101
- return await this.http(request);
102
- }
103
- catch (ex) {
104
- if (!withRetry || this.serviceErrors.includes(ex.message)) {
105
- throw ex;
106
- }
107
- this.AddLog('Error in post ', ex);
108
- try {
109
- var request2 = new Request(state.apiBaseUrl + url, {
110
- method: 'POST',
111
- body: data,
112
- headers: {
113
- 'Content-Type': 'application/json',
114
- 'Authorization': 'IDKYC-TOKEN ' + state.token,
115
- },
116
- });
117
- return await this.http(request2);
118
- }
119
- catch (ex2) {
120
- this.AddLog('Error in post ', ex2);
121
- var request3 = new Request(state.apiBaseUrl + url, {
122
- method: 'POST',
123
- body: data,
124
- headers: {
125
- 'Content-Type': 'application/json',
126
- 'Authorization': 'IDKYC-TOKEN ' + state.token,
127
- },
128
- });
129
- return await this.http(request3);
130
- }
131
- }
132
- }
133
- async get(url, withRetry = true) {
134
- var request = new Request(state.apiBaseUrl + url, {
135
- method: 'GET',
136
- headers: {
137
- 'Content-Type': 'application/json',
138
- 'Authorization': 'IDKYC-TOKEN ' + state.token,
139
- },
140
- });
141
- try {
142
- return await this.http(request);
143
- }
144
- catch (ex) {
145
- if (!withRetry || this.serviceErrors.includes(ex.message)) {
146
- throw ex;
147
- }
148
- this.AddLog('Error in get ', ex);
149
- try {
150
- var request2 = new Request(state.apiBaseUrl + url, {
151
- method: 'GET',
152
- headers: {
153
- 'Content-Type': 'application/json',
154
- 'Authorization': 'IDKYC-TOKEN ' + state.token,
155
- },
156
- });
157
- return await this.http(request2);
158
- }
159
- catch (ex2) {
160
- this.AddLog('Error in get ', ex2);
161
- var request3 = new Request(state.apiBaseUrl + url, {
162
- method: 'GET',
163
- headers: {
164
- 'Content-Type': 'application/json',
165
- 'Authorization': 'IDKYC-TOKEN ' + state.token,
166
- },
167
- });
168
- return await this.http(request3);
169
- }
170
- }
171
- }
172
- async SendOTPCode(requestId, phoneNumber) {
173
- let data = { requestId: requestId, phone: phoneNumber };
174
- let jsonResp = await this.post(this.urls.OtpSend, JSON.stringify(data));
175
- return jsonResp.sent;
176
- }
177
- async CheckOTPCode(requestId, otpCode) {
178
- let data = { requestId: requestId, otp: otpCode };
179
- let jsonResp = await this.post(this.urls.OtpCheck, JSON.stringify(data));
180
- return jsonResp.valid;
181
- }
182
- async AddIdentificationRequest(deviceInfo, version) {
183
- if (state.debug)
184
- console.log('Calling identity request with store:' + JSON.stringify(state));
185
- let data = {
186
- requestId: state.requestId,
187
- clientDeviceInfo: JSON.stringify(deviceInfo),
188
- redirectId: state.redirectId,
189
- phoneNumber: state.phoneNumber,
190
- version: version,
191
- };
192
- let jsonResp = await this.post(this.urls.IdentityInsert, JSON.stringify(data));
193
- if (state.requestId == '') {
194
- state.requestId = jsonResp.requestId;
195
- }
196
- state.hasIdBack = jsonResp.hasIdBack;
197
- state.hasIdTilt = jsonResp.hasIdTilt;
198
- state.hasSelfieGesture = jsonResp.hasSelfieGesture;
199
- state.agreementsValidation = jsonResp.agreementsValidation;
200
- state.phoneValidation = jsonResp.phoneValidation;
201
- state.phoneNumber = jsonResp.phoneNumber;
202
- return true;
203
- }
204
- async UploadFileForRequestB64(requestId, type, file) {
205
- let data = {
206
- requestId: requestId,
207
- type: type,
208
- data: await this.toBase64(file),
209
- };
210
- let respJson = await this.post(this.urls.UploadCapture, JSON.stringify(data));
211
- if (!state.hasIdBack && type == 'IdFront') {
212
- return respJson.isValid;
213
- }
214
- if (state.hasIdBack && type == 'IdBack') {
215
- return respJson.isValid;
216
- }
217
- if (type == 'Selfie') {
218
- return respJson.isValid;
219
- }
220
- return true;
221
- }
222
- async GetAgreement(agreementType) {
223
- let resp = await this.get(this.urls.GetAgreement + '?type=' + agreementType + '&requestId=' + state.requestId);
224
- return resp.htmlText;
225
- }
226
- async GenerateAgreement(agreementType) {
227
- let data = { requestId: state.requestId, documentType: agreementType };
228
- let resp = await this.post(this.urls.GenerateAgreement, JSON.stringify(data));
229
- return resp.generation;
230
- }
231
- async GetStatus(requestId) {
232
- let resp = await this.get(this.urls.GetStatus + '?orderId=' + requestId);
233
- return OrderStatuses[resp.status];
234
- }
235
- async SendLink(link, phoneNumber) {
236
- let data = { requestId: state.requestId, link: link, phoneNumber: phoneNumber };
237
- let resp = await this.post(this.urls.SendLink, JSON.stringify(data));
238
- return resp.sent;
239
- }
240
- async AddLog(error, context) {
241
- try {
242
- let data = {
243
- requestId: state.requestId,
244
- action: FlowStatus[state.flowStatus],
245
- message: JSON.stringify({ error, context }),
246
- };
247
- let result = await this.post(this.urls.AddLog, JSON.stringify(data), false);
248
- return result.saved;
249
- }
250
- catch (_a) { }
251
- }
252
- async AddStep(step, moment) {
253
- let data = { requestId: state.requestId, redirectId: state.redirectId, step: FlowSteps[step], moment: FlowMoments[moment], timestamp: new Date().toISOString() };
254
- let result = await this.post(this.urls.AddStep, JSON.stringify(data));
255
- return result.saved;
256
- }
257
- async AbortRequest() {
258
- let result = await this.post(this.urls.AbortRequest, JSON.stringify({ requestId: state.requestId }));
259
- return result.saved;
260
- }
261
- }
2
+ import { A as ApiCall, B as BaseComponent, F as FlowSteps, s as state, a as FlowStatus, S as SessionKeys, M as MobileOS, b as Browser, c as FlowMoments, E as Events, I as IdCaptureValues, O as OrderStatuses, d as SelfieCaptureValues } from './base-component-b7f50d31.js';
262
3
 
263
4
  const agreementCheckCss = "";
264
5
 
@@ -273,6 +14,8 @@ const AgreementCheck = class {
273
14
  this.scrollClass = 'scroll';
274
15
  this.apiCalls = new ApiCall();
275
16
  this.buttonEnabled = true;
17
+ this.baseComponent = new BaseComponent(FlowSteps.CameraError);
18
+ this.baseComponent.setEventEmitter(this.apiErrorEvent);
276
19
  }
277
20
  async componentDidLoad() {
278
21
  try {
@@ -287,235 +30,12 @@ const AgreementCheck = class {
287
30
  this.agreementAcceptance.emit({ agreementType: this.agreementType, result });
288
31
  }
289
32
  render() {
290
- 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) }, AgreementCheckValues.ButtonNo), h("button", { class: "normal-button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick(true) }, AgreementCheckValues.ButtonYes)), h("p", { class: "main-text font-size-18 text-right mb-0" }, AgreementInfoValues.FooterText))))));
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.baseComponent.translations.AgreementCheckValues.ButtonNo), h("button", { class: "normal-button", disabled: !this.buttonEnabled, onClick: () => this.buttonClick(true) }, this.baseComponent.translations.AgreementCheckValues.ButtonYes)), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.baseComponent.translations.GlobalValues.FooterText))))));
291
34
  return this.htmlContent ? content : h("div", null);
292
35
  }
293
36
  };
294
37
  AgreementCheck.style = agreementCheckCss;
295
38
 
296
- var MobileOS;
297
- (function (MobileOS) {
298
- MobileOS["Android"] = "android";
299
- MobileOS["iOS"] = "ios";
300
- MobileOS["Unknown"] = "unknown";
301
- MobileOS["WindowsPhone"] = "Windows Phone";
302
- })(MobileOS || (MobileOS = {}));
303
- var DesktopOS;
304
- (function (DesktopOS) {
305
- DesktopOS["Linux"] = "linux";
306
- DesktopOS["MacOS"] = "mac_os";
307
- DesktopOS["Unix"] = "unix";
308
- DesktopOS["Unknown"] = "unknown";
309
- DesktopOS["Windows"] = "windows";
310
- })(DesktopOS || (DesktopOS = {}));
311
- var Browser;
312
- (function (Browser) {
313
- Browser["Chrome"] = "chrome";
314
- Browser["Firefox"] = "firefox";
315
- Browser["Safari"] = "safari";
316
- Browser["Mi"] = "mi";
317
- Browser["Unknown"] = "unknown";
318
- })(Browser || (Browser = {}));
319
-
320
- class DeviceDetection {
321
- constructor() {
322
- var _a, _b, _c, _d;
323
- 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;
324
- this.safariScreenOrientation = !(screen === null || screen === void 0 ? void 0 : screen.orientation) && matchMedia('(orientation: portrait)').matches ? 'portrait-primary' : 'landscape-primary';
325
- this.initialScreenOrientation = (_d = (_c = this.supportedScreenOrientation) !== null && _c !== void 0 ? _c : this.safariScreenOrientation) !== null && _d !== void 0 ? _d : 'portrait-primary';
326
- this.userAgent = navigator.userAgent || navigator.vendor || window.opera || undefined;
327
- this.isMobile = this.isMobileDevice();
328
- this.isTablet = this.isTabletDevice();
329
- this.isDesktop = !this.isMobile && !this.isTablet;
330
- }
331
- // Device typology
332
- isMobileDevice() {
333
- const regexs = [/(Android)(.+)(Mobile)/i, /BlackBerry/i, /iPhone|iPod/i, /Opera Mini/i, /IEMobile/i];
334
- return regexs.some(b => this.userAgent.match(b));
335
- }
336
- isTabletDevice() {
337
- const regex = /(ipad|tablet|(android(?!.*mobile))|(windows(?!.*phone)(.*touch))|kindle|playbook|silk|(puffin(?!.*(IP|AP|WP))))/;
338
- return regex.test(this.userAgent.toLowerCase());
339
- }
340
- // Device Operating System
341
- getMobileOS() {
342
- if (this.isMobileDevice()) {
343
- if (/windows phone/i.test(this.userAgent))
344
- return MobileOS.WindowsPhone;
345
- else if (/android/i.test(this.userAgent))
346
- return MobileOS.Android;
347
- else if (/iPad|iPhone|iPod/.test(this.userAgent) && !window.MSStream)
348
- return MobileOS.iOS;
349
- return MobileOS.Unknown;
350
- }
351
- else
352
- return undefined;
353
- }
354
- getDesktopOS() {
355
- if (this.isDesktop) {
356
- if (this.userAgent.indexOf('Win') !== -1)
357
- return DesktopOS.Windows;
358
- else if (this.userAgent.indexOf('Mac') !== -1)
359
- return DesktopOS.MacOS;
360
- else if (this.userAgent.indexOf('X11') !== -1)
361
- return DesktopOS.Unix;
362
- else if (this.userAgent.indexOf('Linux') !== -1)
363
- return DesktopOS.Linux;
364
- return DesktopOS.Unknown;
365
- }
366
- else
367
- return undefined;
368
- }
369
- getDeviceOS() {
370
- var _a;
371
- return (_a = this.getMobileOS()) !== null && _a !== void 0 ? _a : this.getDesktopOS();
372
- }
373
- getBrowser() {
374
- if (/XiaoMi/i.test(this.userAgent) || /MiuiBrowser/i.test(this.userAgent))
375
- return Browser.Mi;
376
- var isChrome = /chrome/i.test(this.userAgent);
377
- if (isChrome)
378
- return Browser.Chrome;
379
- if (/firefox/i.test(navigator.userAgent))
380
- return Browser.Firefox;
381
- else if (!isChrome && /safari/i.test(navigator.userAgent))
382
- return Browser.Safari;
383
- else
384
- return Browser.Unknown;
385
- }
386
- getDevice() {
387
- var device = {
388
- isDesktop: this.isDesktop,
389
- desktopOS: this.getDesktopOS(),
390
- isWindowsDesktop: this.getDeviceOS() === DesktopOS.Windows,
391
- isLinuxOrUnixDesktop: this.getDeviceOS() === DesktopOS.Linux || this.getDeviceOS() === DesktopOS.Unix,
392
- isMobile: this.isMobile,
393
- mobileOS: this.getMobileOS(),
394
- isAndroidDevice: this.getDeviceOS() === MobileOS.Android,
395
- isAppleDevice: this.getDeviceOS() === MobileOS.iOS || this.getDeviceOS() === DesktopOS.MacOS,
396
- isUnknownMobileDevice: this.getDeviceOS() === MobileOS.Unknown,
397
- browser: this.getBrowser(),
398
- isTablet: this.isTablet,
399
- initialScreenOrientation: this.initialScreenOrientation,
400
- };
401
- return device;
402
- }
403
- }
404
-
405
- class Events {
406
- static init(element) {
407
- this.callingModule = element;
408
- }
409
- static flowEvent(step, moment) {
410
- const eventName = `ect-${step.toString()}-${moment.toString()}-event`;
411
- this.callingModule.dispatchEvent(new CustomEvent(eventName, {
412
- detail: {},
413
- bubbles: true,
414
- cancelable: true,
415
- composed: true,
416
- }));
417
- }
418
- static flowStarted() {
419
- this.callingModule.dispatchEvent(new CustomEvent('ect-started', {
420
- detail: {},
421
- bubbles: true,
422
- cancelable: true,
423
- composed: true,
424
- }));
425
- }
426
- static flowAborted() {
427
- sessionStorage.clear();
428
- this.callingModule.dispatchEvent(new CustomEvent('ect-aborted', {
429
- detail: {},
430
- bubbles: true,
431
- cancelable: true,
432
- composed: true,
433
- }));
434
- }
435
- static flowCompleted() {
436
- sessionStorage.clear();
437
- this.callingModule.dispatchEvent(new CustomEvent('ect-completed', {
438
- detail: {},
439
- bubbles: true,
440
- cancelable: true,
441
- composed: true,
442
- }));
443
- }
444
- static flowError(error) {
445
- sessionStorage.clear();
446
- this.callingModule.dispatchEvent(new CustomEvent('ect-error', {
447
- detail: { error },
448
- bubbles: true,
449
- cancelable: true,
450
- composed: true,
451
- }));
452
- }
453
- static tokenExpired() {
454
- sessionStorage.clear();
455
- this.callingModule.dispatchEvent(new CustomEvent('ect-session-expired', {
456
- detail: {},
457
- bubbles: true,
458
- cancelable: true,
459
- composed: true,
460
- }));
461
- }
462
- }
463
-
464
- class BaseComponent {
465
- constructor(step) {
466
- this.apiErrorEvent = null;
467
- this.processError = null;
468
- this.apiCall = new ApiCall();
469
- if (step)
470
- this.flowStep = step;
471
- if (!state.device) {
472
- state.device = new DeviceDetection().getDevice();
473
- }
474
- }
475
- setEventEmitter(event) {
476
- this.apiErrorEvent = event;
477
- }
478
- setErrorCallback(callback) {
479
- this.processError = callback;
480
- }
481
- async logStep(step, moment) {
482
- Events.flowEvent(step, moment);
483
- try {
484
- await this.apiCall.AddStep(step, moment);
485
- }
486
- catch (e) {
487
- if (this.apiErrorEvent)
488
- this.apiErrorEvent.emit(e);
489
- else
490
- this.processError(e, `${step}-${moment}`);
491
- }
492
- }
493
- async initialize() {
494
- Events.flowEvent(this.flowStep, FlowMoments.Initialized);
495
- try {
496
- await this.apiCall.AddStep(this.flowStep, FlowMoments.Initialized);
497
- }
498
- catch (e) {
499
- if (this.apiErrorEvent)
500
- this.apiErrorEvent.emit(e);
501
- else
502
- this.processError(e, `${this.flowStep}-${FlowMoments.Initialized}`);
503
- }
504
- }
505
- async finalize() {
506
- Events.flowEvent(this.flowStep, FlowMoments.Finalized);
507
- try {
508
- await this.apiCall.AddStep(this.flowStep, FlowMoments.Finalized);
509
- }
510
- catch (e) {
511
- if (this.apiErrorEvent)
512
- this.apiErrorEvent.emit(e);
513
- else
514
- this.processError(e, `${this.flowStep}-${FlowMoments.Finalized}`);
515
- }
516
- }
517
- }
518
-
519
39
  const agreementInfoCss = "";
520
40
 
521
41
  const AgreementInfo = class {
@@ -570,7 +90,7 @@ const AgreementInfo = class {
570
90
  render() {
571
91
  let agreementsCheck = h("agreement-check", { agreementType: "agreement" });
572
92
  let termsCheck = h("agreement-check", { agreementType: "terms" });
573
- let mainComp = (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, 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 }), 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 }), AgreementInfoValues.Terms))), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", onClick: () => this.buttonClick() }, AgreementInfoValues.Button), h("p", { class: "main-text font-size-18 text-right mb-0" }, AgreementInfoValues.FooterText))))));
93
+ let mainComp = (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, this.baseComponent.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.baseComponent.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.baseComponent.translations.AgreementInfoValues.Terms))), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", onClick: () => this.buttonClick() }, this.baseComponent.translations.AgreementInfoValues.Button), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.baseComponent.translations.GlobalValues.FooterText))))));
574
94
  return this.openAgreements ? agreementsCheck : this.openTerms ? termsCheck : mainComp;
575
95
  }
576
96
  };
@@ -5086,14 +4606,14 @@ const CameraError = class {
5086
4606
  }
5087
4607
  async componentWillLoad() {
5088
4608
  this.buttonDisabled = false;
5089
- this.title = CameraErrorValues.Title;
5090
- this.description = CameraErrorValues.Description;
5091
- this.buttonText = CameraErrorValues.Button;
4609
+ this.title = this.baseComponent.translations.CameraErrorValues.Title;
4610
+ this.description = this.baseComponent.translations.CameraErrorValues.Description;
4611
+ this.buttonText = this.baseComponent.translations.CameraErrorValues.Button;
5092
4612
  }
5093
4613
  async componentDidLoad() {
5094
4614
  await this.baseComponent.initialize();
5095
4615
  if (state.device.mobileOS != MobileOS.iOS) {
5096
- this.demoVideo.src = CameraErrorValues.HowToLink;
4616
+ this.demoVideo.src = this.baseComponent.translations.CameraErrorValues.HowToLink;
5097
4617
  this.demoVideo.loop = true;
5098
4618
  this.demoVideo.play();
5099
4619
  }
@@ -5119,7 +4639,7 @@ const CameraError = class {
5119
4639
  }
5120
4640
  }
5121
4641
  render() {
5122
- 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" }, CameraErrorValues.FooterText))))));
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.baseComponent.translations.GlobalValues.FooterText))))));
5123
4643
  }
5124
4644
  };
5125
4645
  CameraError.style = cameraErrorCss;
@@ -5138,16 +4658,16 @@ const CaptureError = class {
5138
4658
  async componentWillLoad() {
5139
4659
  this.buttonEnabled = false;
5140
4660
  if (this.type == 'ID') {
5141
- this.titleR1 = IdCaptureValues.ErrorTitleR1;
5142
- this.titleR2 = IdCaptureValues.ErrorTitleR2;
5143
- this.descriptionR1 = IdCaptureValues.ErrorR1;
5144
- this.descriptionR2 = IdCaptureValues.ErrorR2;
4661
+ this.titleR1 = this.baseComponent.translations.IdCaptureValues.ErrorTitleR1;
4662
+ this.titleR2 = this.baseComponent.translations.IdCaptureValues.ErrorTitleR2;
4663
+ this.descriptionR1 = this.baseComponent.translations.IdCaptureValues.ErrorR1;
4664
+ this.descriptionR2 = this.baseComponent.translations.IdCaptureValues.ErrorR2;
5145
4665
  }
5146
4666
  if (this.type == 'LIVENESS') {
5147
- this.titleR1 = SelfieCaptureValues.ErrorTitleR1;
5148
- this.titleR2 = SelfieCaptureValues.ErrorTitleR2;
5149
- this.descriptionR1 = SelfieCaptureValues.ErrorR1;
5150
- this.descriptionR2 = SelfieCaptureValues.ErrorR2;
4667
+ this.titleR1 = this.baseComponent.translations.SelfieCaptureValues.ErrorTitleR1;
4668
+ this.titleR2 = this.baseComponent.translations.SelfieCaptureValues.ErrorTitleR2;
4669
+ this.descriptionR1 = this.baseComponent.translations.SelfieCaptureValues.ErrorR1;
4670
+ this.descriptionR2 = this.baseComponent.translations.SelfieCaptureValues.ErrorR2;
5151
4671
  }
5152
4672
  }
5153
4673
  async componentDidLoad() {
@@ -5156,7 +4676,7 @@ const CaptureError = class {
5156
4676
  this.buttonText = i.toString();
5157
4677
  await delay(1000);
5158
4678
  }
5159
- this.buttonText = IdCaptureValues.Button;
4679
+ this.buttonText = this.baseComponent.translations.IdCaptureValues.Button;
5160
4680
  this.buttonEnabled = true;
5161
4681
  }
5162
4682
  async buttonClick() {
@@ -5165,7 +4685,7 @@ const CaptureError = class {
5165
4685
  this.eventCaptureErrorDone.emit();
5166
4686
  }
5167
4687
  render() {
5168
- 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" }, IdCaptureValues.FooterText))))));
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.baseComponent.translations.GlobalValues.FooterText))))));
5169
4689
  }
5170
4690
  };
5171
4691
  CaptureError.style = captureErrorCss;
@@ -5175,12 +4695,16 @@ const completeSvg = 'data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iODMiIGhlaWdodD0iO
5175
4695
  const endRedirectCss = "h1{font-family:'Inter', sans-serif;font-style:normal;font-weight:900;font-size:4vh;line-height:4vh;letter-spacing:0.01em;color:#1f2024}p{font-family:'Inter', sans-serif;font-style:normal;font-weight:400;font-size:2vh;line-height:3vh;color:#1f2024;text-align:justify}.container{gap:10rem;text-align:center}.greet{color:rgb(73, 78, 79);visibility:hidden;animation-name:rise;animation-delay:1s;animation-fill-mode:forwards}@keyframes rise{0%{visibility:hidden}50%{visibility:visible}100%{visibility:visible}}.container-coin{background-color:transparent;perspective:1000px;rotate:120deg 0deg}.coin-flip{animation:flip 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards;visibility:hidden}.coin-scale{animation:show 0.4s ease-in;animation-delay:0.5s;transform-style:preserve-3d;animation-fill-mode:forwards}.coin{margin-top:10rem}@keyframes flip{0%{transform:rotateX(140deg);visibility:visible}25%{transform:rotateX(120deg);visibility:visible}50%{transform:rotateX(90deg);visibility:visible}75%{transform:rotateX(75deg);visibility:visible}100%{transform:rotateX(0deg);visibility:visible}}@keyframes show{0%{transform:scale(0)}25%{transform:scale(0.2)}40%{transform:scale(0.4)}50%{transform:scale(0.5)}60%{transform:scale(0.6)}70%{transform:scale(0.7)}100%{transform:scale(1)}}";
5176
4696
 
5177
4697
  const EndRedirect = class {
5178
- constructor(hostRef) { registerInstance(this, hostRef); this.apiErrorEvent = createEvent(this, "apiError", 7); }
4698
+ constructor(hostRef) {
4699
+ registerInstance(this, hostRef);
4700
+ this.apiErrorEvent = createEvent(this, "apiError", 7);
4701
+ this.baseComponent = new BaseComponent(FlowSteps.End);
4702
+ }
5179
4703
  async componentDidLoad() {
5180
4704
  Events.flowCompleted();
5181
4705
  }
5182
4706
  render() {
5183
- return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, CompleteValues.Title), h("p", { class: "main-text font-size-18 mt-8 text-center" }, 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" }, CompleteValues.Message), h("p", null, state.requestId)), h("div", { class: "btn-buletin" }, h("p", { class: "main-text font-size-18 text-center mb-0" }, CompleteValues.FooterText)))));
4707
+ return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, this.baseComponent.translations.CompleteValues.Title), h("p", { class: "main-text font-size-18 mt-8 text-center" }, this.baseComponent.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.baseComponent.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.baseComponent.translations.GlobalValues.FooterText)))));
5184
4708
  }
5185
4709
  };
5186
4710
  EndRedirect.style = endRedirectCss;
@@ -5218,30 +4742,30 @@ const HowToInfo = class {
5218
4742
  this.subTitle = '';
5219
4743
  this.buttonEnabled = true;
5220
4744
  if (state.flowStatus == FlowStatus.ID) {
5221
- this.topTitle = HowToValues.IdTitile;
4745
+ this.topTitle = this.baseComponent.translations.HowToValues.IdTitile;
5222
4746
  this.imagePath = 'https://ekyc.blob.core.windows.net/$web/howto_id.png';
5223
- this.buttonText = HowToValues.IdButton;
4747
+ this.buttonText = this.baseComponent.translations.HowToValues.IdButton;
5224
4748
  if (this.idSide == 'front') {
5225
4749
  this.baseComponent = new BaseComponent(FlowSteps.CiFrontHowTo);
5226
- this.subTitle = HowToValues.IdSubTitileFace;
4750
+ this.subTitle = this.baseComponent.translations.HowToValues.IdSubTitileFace;
5227
4751
  }
5228
4752
  if (this.idSide == 'back') {
5229
4753
  this.baseComponent = new BaseComponent(FlowSteps.CiBackHowTo);
5230
- this.subTitle = HowToValues.IdSubTitileBack;
4754
+ this.subTitle = this.baseComponent.translations.HowToValues.IdSubTitileBack;
5231
4755
  }
5232
4756
  }
5233
4757
  if (state.flowStatus == FlowStatus.LIVENESS) {
5234
4758
  this.baseComponent = new BaseComponent(FlowSteps.SelfieHowTo);
5235
- this.topTitle = HowToValues.SelfieTitile;
5236
- this.subTitle = HowToValues.SelfieSubTitile;
4759
+ this.topTitle = this.baseComponent.translations.HowToValues.SelfieTitile;
4760
+ this.subTitle = this.baseComponent.translations.HowToValues.SelfieSubTitile;
5237
4761
  this.imagePath = 'https://ekyc.blob.core.windows.net/$web/howto_selfie.png';
5238
- this.buttonText = HowToValues.SelfieButton;
4762
+ this.buttonText = this.baseComponent.translations.HowToValues.SelfieButton;
5239
4763
  }
5240
4764
  this.baseComponent.setEventEmitter(this.apiErrorEvent);
5241
4765
  }
5242
4766
  render() {
5243
4767
  let sub = this.subTitle != '' ? h("p", { class: "font-size-2" }, this.subTitle) : null;
5244
- 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" }, HowToValues.FooterText))))));
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.baseComponent.translations.GlobalValues.FooterText))))));
5245
4769
  }
5246
4770
  };
5247
4771
  HowToInfo.style = howToInfoCss;
@@ -5420,14 +4944,14 @@ const IdBackCapture = class {
5420
4944
  }
5421
4945
  async componentDidLoad() {
5422
4946
  await this.baseComponent.logStep(FlowSteps.CiBackCapture, FlowMoments.Initialized);
5423
- this.titleMesage = IdCaptureValues.TtileRotate;
4947
+ this.titleMesage = this.baseComponent.translations.IdCaptureValues.TtileRotate;
5424
4948
  this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Rotate];
5425
4949
  this.demoVideo.play();
5426
- await delay(IdCaptureValues.VideoLenght);
5427
- this.titleMesage = IdCaptureValues.TitleBack;
4950
+ await delay(this.baseComponent.translations.GlobalValues.VideoLenght);
4951
+ this.titleMesage = this.baseComponent.translations.IdCaptureValues.TitleBack;
5428
4952
  this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.BackStraight];
5429
4953
  this.demoVideo.play();
5430
- await delay(IdCaptureValues.VideoLenght);
4954
+ await delay(this.baseComponent.translations.GlobalValues.VideoLenght);
5431
4955
  this.showDemo = false;
5432
4956
  this.openCamera();
5433
4957
  }
@@ -5461,7 +4985,7 @@ const IdBackCapture = class {
5461
4985
  if (this.verified)
5462
4986
  return;
5463
4987
  this.verified = true;
5464
- this.titleMesage = IdCaptureValues.Loading;
4988
+ this.titleMesage = this.baseComponent.translations.IdCaptureValues.Loading;
5465
4989
  this.closeCamera();
5466
4990
  this.showDemo = true;
5467
4991
  this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
@@ -5486,7 +5010,7 @@ const IdBackCapture = class {
5486
5010
  let titleClass = this.verified ? 'color-black-2 text-center' : 'color-white text-center';
5487
5011
  //let videoClass = this.device.isMobile ? '' : 'video-demo';
5488
5012
  let bgDemo = this.verified ? 'container' : 'container bg-black';
5489
- 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" }, IdCaptureValues.FooterText)))));
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.baseComponent.translations.GlobalValues.FooterText)))));
5490
5014
  }
5491
5015
  get component() { return getElement(this); }
5492
5016
  };
@@ -5522,7 +5046,7 @@ const IdCapture = class {
5522
5046
  this.cameraSize = event.detail;
5523
5047
  }
5524
5048
  async componentWillLoad() {
5525
- this.titleMesage = IdCaptureValues.Title;
5049
+ this.titleMesage = this.baseComponent.translations.IdCaptureValues.Title;
5526
5050
  //this.videoDemoStyle = this.device.isMobile ? { 'width': window.screen.width + 'px', 'height': window.screen.height + 'px', 'object-fit': 'fill' } : {};
5527
5051
  if (!navigator.mediaDevices) {
5528
5052
  this.apiErrorEvent.emit({ message: 'This browser does not support webRTC' });
@@ -5532,7 +5056,7 @@ const IdCapture = class {
5532
5056
  await this.baseComponent.logStep(FlowSteps.CiFrontCapture, FlowMoments.Initialized);
5533
5057
  this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Straight];
5534
5058
  this.demoVideo.play();
5535
- await delay(IdCaptureValues.VideoLenght);
5059
+ await delay(this.baseComponent.translations.GlobalValues.VideoLenght);
5536
5060
  this.showDemo = false;
5537
5061
  this.openCamera();
5538
5062
  }
@@ -5574,7 +5098,7 @@ const IdCapture = class {
5574
5098
  if (this.verified)
5575
5099
  return;
5576
5100
  this.verified = true;
5577
- this.titleMesage = IdCaptureValues.Loading;
5101
+ this.titleMesage = this.baseComponent.translations.IdCaptureValues.Loading;
5578
5102
  this.closeCamera();
5579
5103
  this.showDemo = true;
5580
5104
  this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
@@ -5596,7 +5120,7 @@ const IdCapture = class {
5596
5120
  let titleClass = this.verified ? 'color-black-2 text-center' : 'color-white text-center';
5597
5121
  //let videoClass = this.device.isMobile ? '' : 'video-demo';
5598
5122
  let bgDemo = this.verified ? 'container' : 'container bg-black';
5599
- 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" }, IdCaptureValues.FooterText)))));
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.baseComponent.translations.GlobalValues.FooterText)))));
5600
5124
  }
5601
5125
  get component() { return getElement(this); }
5602
5126
  };
@@ -5632,7 +5156,7 @@ const IdTilt = class {
5632
5156
  this.cameraSize = event.detail;
5633
5157
  }
5634
5158
  async componentWillLoad() {
5635
- this.titleMesage = IdCaptureValues.IDPoseMapping[1];
5159
+ this.titleMesage = this.baseComponent.translations.IdCaptureValues.IDPoseMapping;
5636
5160
  //this.videoDemoStyle = this.device.isMobile ? { 'width': window.screen.width + 'px', 'height': window.screen.height + 'px', 'object-fit': 'fill' } : {};
5637
5161
  if (!navigator.mediaDevices) {
5638
5162
  this.apiErrorEvent.emit({ message: 'This browser does not support webRTC' });
@@ -5642,7 +5166,7 @@ const IdTilt = class {
5642
5166
  await this.baseComponent.logStep(FlowSteps.CiTilt, FlowMoments.Initialized);
5643
5167
  this.demoVideo.src = IdCaptureValues.IDPoseDemoMapping[IDPose.Tilted];
5644
5168
  this.demoVideo.play();
5645
- await delay(IdCaptureValues.VideoLenght);
5169
+ await delay(this.baseComponent.translations.GlobalValues.VideoLenght);
5646
5170
  this.showDemo = false;
5647
5171
  this.openCamera();
5648
5172
  }
@@ -5684,7 +5208,7 @@ const IdTilt = class {
5684
5208
  if (this.verified)
5685
5209
  return;
5686
5210
  this.verified = true;
5687
- this.titleMesage = IdCaptureValues.Loading;
5211
+ this.titleMesage = this.baseComponent.translations.IdCaptureValues.Loading;
5688
5212
  this.closeCamera();
5689
5213
  this.showDemo = true;
5690
5214
  this.demoVideo.src = 'https://ekyc.blob.core.windows.net/$web/animations/uploading_id.mp4';
@@ -5706,7 +5230,7 @@ const IdTilt = class {
5706
5230
  let titleClass = this.verified ? 'color-black-2 text-center' : 'color-white text-center';
5707
5231
  //let videoClass = this.device.isMobile ? '' : 'video-demo';
5708
5232
  let bgDemo = this.verified ? 'container' : 'container bg-black';
5709
- 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" }, IdCaptureValues.FooterText)))));
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.baseComponent.translations.GlobalValues.FooterText)))));
5710
5234
  }
5711
5235
  get component() { return getElement(this); }
5712
5236
  };
@@ -5778,7 +5302,7 @@ function v4(options, buf, offset) {
5778
5302
  }
5779
5303
 
5780
5304
  const name = "@ekyc_qoobiss/qbs-ect-cmp";
5781
- const version$1 = "3.6.26";
5305
+ const version$1 = "3.6.28";
5782
5306
  const description = "Person Identification Component";
5783
5307
  const main = "./dist/index.cjs.js";
5784
5308
  const module = "./dist/index.js";
@@ -5906,6 +5430,7 @@ const IdentificationComponent = class {
5906
5430
  this.env = undefined;
5907
5431
  this.redirect_id = undefined;
5908
5432
  this.phone_number = undefined;
5433
+ this.lang_iso = undefined;
5909
5434
  this.idSide = '';
5910
5435
  this.errorMessage = undefined;
5911
5436
  this.errorTitle = undefined;
@@ -5938,6 +5463,9 @@ const IdentificationComponent = class {
5938
5463
  if (this.phone_number && this.phone_number != '') {
5939
5464
  state.phoneNumber = this.phone_number;
5940
5465
  }
5466
+ if (this.lang_iso && this.lang_iso != '') {
5467
+ state.langIso = this.lang_iso;
5468
+ }
5941
5469
  var ini = sessionStorage.getItem(SessionKeys.InitialisedKey);
5942
5470
  if (ini && ini.toLowerCase() == 'true') {
5943
5471
  state.initialised = true;
@@ -6105,10 +5633,10 @@ const LandingValidation = class {
6105
5633
  }
6106
5634
  async initRequest() {
6107
5635
  if (state.hasIdBack) {
6108
- this.warningText = LandingValues.WarningMd;
5636
+ this.warningText = this.baseComponent.translations.LandingValues.WarningMd;
6109
5637
  }
6110
5638
  else {
6111
- this.warningText = LandingValues.Warning;
5639
+ this.warningText = this.baseComponent.translations.LandingValues.Warning;
6112
5640
  }
6113
5641
  }
6114
5642
  async startFlow() {
@@ -6151,7 +5679,7 @@ const LandingValidation = class {
6151
5679
  }
6152
5680
  }
6153
5681
  render() {
6154
- return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, LandingValues.Title), h("div", { class: "d-flex space-between align-center" }, h("p", { class: "main-text font-size-2" }, 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, LandingValues.IdInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: deviceSvg })), h("h3", null, LandingValues.DeviceInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: validationSvg })), h("h3", null, 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() }, LandingValues.Button), h("p", { class: "main-text font-size-2 link-text mb-0", onClick: () => this.leaveFlow() }, LandingValues.ButtonLeave), h("p", { class: "main-text font-size-18 text-right mb-0" }, LandingValues.FooterText))))));
5682
+ return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", { class: "text-center" }, this.baseComponent.translations.LandingValues.Title), h("div", { class: "d-flex space-between align-center" }, h("p", { class: "main-text font-size-2" }, this.baseComponent.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.baseComponent.translations.LandingValues.IdInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: deviceSvg })), h("h3", null, this.baseComponent.translations.LandingValues.DeviceInfo)), h("div", { class: "img-text" }, h("div", { class: "bg-img" }, h("img", { src: validationSvg })), h("h3", null, this.baseComponent.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.baseComponent.translations.LandingValues.Button), h("p", { class: "main-text font-size-2 link-text mb-0", onClick: () => this.leaveFlow() }, this.baseComponent.translations.LandingValues.ButtonLeave), h("p", { class: "main-text font-size-18 text-right mb-0" }, this.baseComponent.translations.GlobalValues.FooterText))))));
6155
5683
  }
6156
5684
  };
6157
5685
  LandingValidation.style = landingValidationCss;
@@ -9051,8 +8579,8 @@ const MobileRedirect = class {
9051
8579
  }
9052
8580
  async componentWillLoad() {
9053
8581
  Events.flowStarted();
9054
- this.infoTextTop = MobileRedirectValues.InfoTop;
9055
- this.infoTextBottom = MobileRedirectValues.InfoBottom;
8582
+ this.infoTextTop = this.baseComponent.translations.MobileRedirectValues.InfoTop;
8583
+ this.infoTextBottom = this.baseComponent.translations.MobileRedirectValues.InfoBottom;
9056
8584
  let envUri = state.environment == 'QA' ? 'test' : 'ect';
9057
8585
  let baseUri = state.hasIdBack ? 'https://onmd.id-kyc.com/' : 'https://onro.id-kyc.com/';
9058
8586
  this.redirectLink = baseUri + envUri + '/mobileredirect?redirectId=' + state.redirectId;
@@ -9086,12 +8614,12 @@ const MobileRedirect = class {
9086
8614
  this.apiErrorEvent.emit({ message: 'No order was started for this process.' });
9087
8615
  }
9088
8616
  if (this.orderStatus == OrderStatuses.Capturing) {
9089
- this.infoTextTop = MobileRedirectValues.InfoWaiting;
8617
+ this.infoTextTop = this.baseComponent.translations.MobileRedirectValues.InfoWaiting;
9090
8618
  this.waitingMobile = true;
9091
8619
  }
9092
8620
  if (this.orderStatus == OrderStatuses.Aborted) {
9093
8621
  this.waitingMobile = false;
9094
- this.infoTextTop = MobileRedirectValues.InfoAborted;
8622
+ this.infoTextTop = this.baseComponent.translations.MobileRedirectValues.InfoAborted;
9095
8623
  Events.flowAborted();
9096
8624
  }
9097
8625
  }
@@ -9103,7 +8631,7 @@ const MobileRedirect = class {
9103
8631
  return;
9104
8632
  }
9105
8633
  this.waitingMobile = true;
9106
- this.infoTextTop = MobileRedirectValues.InfoWaiting;
8634
+ this.infoTextTop = this.baseComponent.translations.MobileRedirectValues.InfoWaiting;
9107
8635
  try {
9108
8636
  await this.baseComponent.apiCall.SendLink(this.redirectLink, this.contact);
9109
8637
  }
@@ -9121,7 +8649,7 @@ const MobileRedirect = class {
9121
8649
  ev.target.value = this.contact;
9122
8650
  }
9123
8651
  render() {
9124
- 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, 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" }, MobileRedirectValues.FooterText)))), h("div", { hidden: this.waitingMobile == false }, h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextTop))))));
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.baseComponent.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.baseComponent.translations.GlobalValues.FooterText)))), h("div", { hidden: this.waitingMobile == false }, h("div", { class: "text-center" }, h("p", { class: "font-size-2" }, this.infoTextTop))))));
9125
8653
  }
9126
8654
  };
9127
8655
  MobileRedirect.style = mobileRedirectCss;
@@ -9458,7 +8986,7 @@ const SelfieCapture = class {
9458
8986
  this.captureWidth = Math.round((this.captureHeight * 9) / 16);
9459
8987
  }
9460
8988
  componentWillLoad() {
9461
- this.titleMesage = SelfieCaptureValues.Title;
8989
+ this.titleMesage = this.baseComponent.translations.SelfieCaptureValues.Title;
9462
8990
  //this.videoDemoStyle = this.device.isMobile ? { 'width': window.screen.width + 'px', 'height': window.screen.height + 'px', 'object-fit': 'fill' } : {};
9463
8991
  if (!navigator.mediaDevices) {
9464
8992
  this.apiErrorEvent.emit({ message: 'This browser does not support webRTC' });
@@ -9468,7 +8996,7 @@ const SelfieCapture = class {
9468
8996
  await this.baseComponent.logStep(FlowSteps.SelfieCapture, FlowMoments.Initialized);
9469
8997
  this.demoVideo.src = SelfieCaptureValues.FacePoseDemoMapping[FacePose.Main];
9470
8998
  this.demoVideo.play();
9471
- await delay(SelfieCaptureValues.VideoLenght);
8999
+ await delay(this.baseComponent.translations.GlobalValues.VideoLenght);
9472
9000
  this.demoEnded = true;
9473
9001
  this.openCamera();
9474
9002
  }
@@ -9509,7 +9037,7 @@ const SelfieCapture = class {
9509
9037
  if (this.verified)
9510
9038
  return;
9511
9039
  this.verified = true;
9512
- this.titleMesage = SelfieCaptureValues.Loading;
9040
+ this.titleMesage = this.baseComponent.translations.SelfieCaptureValues.Loading;
9513
9041
  this.closeCamera();
9514
9042
  this.demoEnded = false;
9515
9043
  this.demoVideo.src = this.uploadingLink;
@@ -9531,7 +9059,7 @@ const SelfieCapture = class {
9531
9059
  let titleClass = this.verified ? 'color-black-2 text-center' : 'color-white text-center';
9532
9060
  //let videoClass = this.device.isMobile ? '' : 'video-demo';
9533
9061
  let bgDemo = this.verified ? 'container' : 'container bg-black';
9534
- 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" }, SelfieCaptureValues.FooterText)))));
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.baseComponent.translations.GlobalValues.FooterText)))));
9535
9063
  }
9536
9064
  get component() { return getElement(this); }
9537
9065
  };
@@ -9573,7 +9101,7 @@ const SelfieTilt = class {
9573
9101
  this.captureWidth = Math.round((this.captureHeight * 9) / 16);
9574
9102
  }
9575
9103
  componentWillLoad() {
9576
- this.titleMesage = SelfieCaptureValues.Title;
9104
+ this.titleMesage = this.baseComponent.translations.SelfieCaptureValues.Title;
9577
9105
  //this.videoDemoStyle = this.device.isMobile ? { 'width': window.screen.width + 'px', 'height': window.screen.height + 'px', 'object-fit': 'fill' } : {};
9578
9106
  if (!navigator.mediaDevices) {
9579
9107
  this.apiErrorEvent.emit({ message: 'This browser does not support webRTC' });
@@ -9582,11 +9110,11 @@ const SelfieTilt = class {
9582
9110
  async componentDidLoad() {
9583
9111
  this.mainStream = Stream.getInstance(VerificationMode.Tilt);
9584
9112
  await this.baseComponent.logStep(FlowSteps.SelfieTilt, FlowMoments.Initialized);
9585
- this.titleMesage = SelfieCaptureValues.FacePoseMapping[this.mainStream.facePose];
9113
+ this.titleMesage = this.baseComponent.translations.SelfieCaptureValues.FacePoseMapping[Object.values(FacePose).indexOf(this.mainStream.facePose)];
9586
9114
  this.demoEnded = false;
9587
9115
  this.demoVideo.src = SelfieCaptureValues.FacePoseDemoMapping[this.mainStream.facePose];
9588
9116
  this.demoVideo.play();
9589
- await delay(SelfieCaptureValues.VideoLenght);
9117
+ await delay(this.baseComponent.translations.GlobalValues.VideoLenght);
9590
9118
  this.demoEnded = true;
9591
9119
  this.openCamera();
9592
9120
  }
@@ -9626,7 +9154,7 @@ const SelfieTilt = class {
9626
9154
  if (this.verified)
9627
9155
  return;
9628
9156
  this.verified = true;
9629
- this.titleMesage = SelfieCaptureValues.Loading;
9157
+ this.titleMesage = this.baseComponent.translations.SelfieCaptureValues.Loading;
9630
9158
  this.closeCamera();
9631
9159
  this.demoEnded = false;
9632
9160
  this.demoVideo.src = this.uploadingLink;
@@ -9648,7 +9176,7 @@ const SelfieTilt = class {
9648
9176
  let titleClass = this.verified ? 'color-black-2 text-center' : 'color-white text-center';
9649
9177
  //let videoClass = this.device.isMobile ? '' : 'video-demo';
9650
9178
  let bgDemo = this.verified ? 'container' : 'container bg-black';
9651
- 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" }, SelfieCaptureValues.FooterText)))));
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.baseComponent.translations.GlobalValues.FooterText)))));
9652
9180
  }
9653
9181
  get component() { return getElement(this); }
9654
9182
  };
@@ -9703,9 +9231,9 @@ const SmsCodeValidation = class {
9703
9231
  }
9704
9232
  componentWillRender() {
9705
9233
  if (state.flowStatus == FlowStatus.PHONE) {
9706
- this.title = PhoneValidationValues.Title;
9707
- this.details = PhoneValidationValues.Description;
9708
- this.buttonText = PhoneValidationValues.Button;
9234
+ this.title = this.baseComponent.translations.PhoneValidationValues.Title;
9235
+ this.details = this.baseComponent.translations.PhoneValidationValues.Description;
9236
+ this.buttonText = this.baseComponent.translations.PhoneValidationValues.Button;
9709
9237
  if (state.phoneNumber && state.phoneNumber != '') {
9710
9238
  this.phoneNumber = state.phoneNumber;
9711
9239
  this.prefilledPhone = true;
@@ -9713,9 +9241,9 @@ const SmsCodeValidation = class {
9713
9241
  }
9714
9242
  }
9715
9243
  if (state.flowStatus == FlowStatus.CODE || state.flowStatus == FlowStatus.CODEERROR) {
9716
- this.title = CodeValidationValues.Title;
9717
- this.details = CodeValidationValues.Description;
9718
- this.buttonText = CodeValidationValues.Button;
9244
+ this.title = this.baseComponent.translations.CodeValidationValues.Title;
9245
+ this.details = this.baseComponent.translations.CodeValidationValues.Description;
9246
+ this.buttonText = this.baseComponent.translations.CodeValidationValues.Button;
9719
9247
  }
9720
9248
  }
9721
9249
  async componentDidLoad() {
@@ -9741,15 +9269,15 @@ const SmsCodeValidation = class {
9741
9269
  let inputBlock;
9742
9270
  let errorBlock;
9743
9271
  if (state.flowStatus == FlowStatus.CODEERROR) {
9744
- errorBlock = h("p", { class: "main-text font-size-18 mt-15 color-red text-center" }, CodeValidationValues.Error);
9272
+ errorBlock = h("p", { class: "main-text font-size-18 mt-15 color-red text-center" }, this.baseComponent.translations.CodeValidationValues.Error);
9745
9273
  }
9746
9274
  if (state.flowStatus == FlowStatus.PHONE) {
9747
- inputBlock = (h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1" }, h("b", null, PhoneValidationValues.Label)), h("input", { type: "tel", id: "phoneInput", class: "main-input", disabled: this.prefilledPhone, onInput: ev => this.handleChangePhone(ev), value: this.phoneNumber })));
9275
+ inputBlock = (h("div", { class: "input-container mb-15" }, h("label", { class: "font-size-18 mb-1" }, h("b", null, this.baseComponent.translations.PhoneValidationValues.Label)), h("input", { type: "tel", id: "phoneInput", class: "main-input", disabled: this.prefilledPhone, onInput: ev => this.handleChangePhone(ev), value: this.phoneNumber })));
9748
9276
  }
9749
9277
  else {
9750
9278
  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 })));
9751
9279
  }
9752
- 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" }, PhoneValidationValues.FooterText))))));
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.baseComponent.translations.GlobalValues.FooterText))))));
9753
9281
  }
9754
9282
  };
9755
9283
  SmsCodeValidation.style = smsCodeValidationCss;