@ekyc_qoobiss/qbs-ect-cmp 3.6.25 → 3.6.27

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 (163) hide show
  1. package/dist/i18n/en.json +100 -0
  2. package/dist/i18n/ro.json +100 -0
  3. package/dist/i18n/ru.json +100 -0
  4. package/dist/{collection/helpers/Cameras.js → qbs-ect-cmp/Cameras-dfbebc29.js} +9 -6
  5. package/dist/{collection/models/CaptureFlow.js → qbs-ect-cmp/CaptureFlow-db5d90a4.js} +6 -4
  6. package/dist/{collection/libs/IDML5Detector/IDPose.js → qbs-ect-cmp/IDPose-181bcb25.js} +4 -2
  7. package/dist/{collection/models/IDevice.js → qbs-ect-cmp/IDevice-15ecfdeb.js} +6 -4
  8. package/dist/qbs-ect-cmp/ML5-657ef934.js +1370 -0
  9. package/dist/qbs-ect-cmp/Stream-b867a2be.js +3104 -0
  10. package/dist/qbs-ect-cmp/_commonjsHelpers-321aa363.js +44 -0
  11. package/dist/qbs-ect-cmp/agreement-check.entry.js +41 -0
  12. package/dist/qbs-ect-cmp/agreement-info.entry.js +66 -0
  13. package/dist/qbs-ect-cmp/app-globals-0f993ce5.js +3 -0
  14. package/dist/qbs-ect-cmp/base-component-2e490fd9.js +502 -0
  15. package/dist/qbs-ect-cmp/camera-comp.entry.js +103 -0
  16. package/dist/qbs-ect-cmp/camera-error.entry.js +59 -0
  17. package/dist/qbs-ect-cmp/capture-error.entry.js +53 -0
  18. package/dist/qbs-ect-cmp/css-shim-b7d3d95f.js +4 -0
  19. package/dist/qbs-ect-cmp/dom-64053c71.js +73 -0
  20. package/dist/qbs-ect-cmp/end-redirect.entry.js +25 -0
  21. package/dist/qbs-ect-cmp/error-end.entry.js +19 -0
  22. package/dist/qbs-ect-cmp/how-to-info.entry.js +52 -0
  23. package/dist/{collection/components/common/id-back-capture/id-back-capture.js → qbs-ect-cmp/id-back-capture.entry.js} +30 -100
  24. package/dist/{collection/components/common/id-capture/id-capture.js → qbs-ect-cmp/id-capture.entry.js} +28 -98
  25. package/dist/{collection/components/common/id-tilt/id-tilt.js → qbs-ect-cmp/id-tilt.entry.js} +28 -98
  26. package/dist/qbs-ect-cmp/identification-component.entry.js +909 -0
  27. package/dist/qbs-ect-cmp/index-78a05b9e.js +3371 -0
  28. package/dist/qbs-ect-cmp/index.esm.js +1 -0
  29. package/dist/qbs-ect-cmp/landing-validation.entry.js +90 -0
  30. package/dist/{esm → qbs-ect-cmp}/loader-dots.entry.js +1 -1
  31. package/dist/qbs-ect-cmp/mobile-redirect.entry.js +2984 -0
  32. package/dist/{collection/components/flow/process-id/process-id.js → qbs-ect-cmp/process-id.entry.js} +32 -100
  33. package/dist/qbs-ect-cmp/qbs-ect-cmp.css +320 -1
  34. package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +148 -1
  35. package/dist/{esm → qbs-ect-cmp}/random-actions.entry.js +6 -3
  36. package/dist/{collection/components/common/selfie-capture/selfie-capture.js → qbs-ect-cmp/selfie-capture.entry.js} +28 -99
  37. package/dist/{collection/components/common/selfie-tilt/selfie-tilt.js → qbs-ect-cmp/selfie-tilt.entry.js} +29 -99
  38. package/dist/qbs-ect-cmp/shadow-css-98135883.js +387 -0
  39. package/dist/qbs-ect-cmp/sms-code-validation.entry.js +106 -0
  40. package/dist/{esm/store-fdeed827.js → qbs-ect-cmp/textValues-6bcc85dd.js} +51 -147
  41. package/dist/{collection/components/flow/user-liveness/user-liveness.js → qbs-ect-cmp/user-liveness.entry.js} +30 -91
  42. package/dist/{collection/utils/utils.js → qbs-ect-cmp/utils-8225f0b7.js} +10 -8
  43. package/dist/types/components/base-component.d.ts +2 -0
  44. package/dist/types/components/common/agreement-check/agreement-check.d.ts +1 -0
  45. package/dist/types/components/common/random-actions/random-actions.d.ts +2 -0
  46. package/dist/types/components/flow/end-redirect/end-redirect.d.ts +1 -0
  47. package/dist/types/components/identification-component/identification-component.d.ts +1 -0
  48. package/dist/types/components.d.ts +2 -0
  49. package/dist/types/helpers/TranslationUtils.d.ts +9 -0
  50. package/dist/types/helpers/textValues.d.ts +8 -95
  51. package/dist/types/models/IEctStore.d.ts +1 -0
  52. package/dist/types/models/ITranslationValues.d.ts +101 -0
  53. package/package.json +1 -1
  54. package/dist/cjs/agreement-check_19.cjs.entry.js +0 -10012
  55. package/dist/cjs/index-41696e0e.js +0 -1573
  56. package/dist/cjs/index.cjs.js +0 -2
  57. package/dist/cjs/loader-dots.cjs.entry.js +0 -19
  58. package/dist/cjs/loader.cjs.js +0 -22
  59. package/dist/cjs/qbs-ect-cmp.cjs.js +0 -23
  60. package/dist/cjs/random-actions.cjs.entry.js +0 -22
  61. package/dist/cjs/store-f1a0f55c.js +0 -413
  62. package/dist/collection/assets/canvas-masks/face_green.svg +0 -8
  63. package/dist/collection/assets/canvas-masks/face_white.svg +0 -8
  64. package/dist/collection/assets/canvas-masks/id_green.svg +0 -6
  65. package/dist/collection/assets/canvas-masks/id_white.svg +0 -6
  66. package/dist/collection/assets/complete.svg +0 -4
  67. package/dist/collection/assets/landing/device.svg +0 -14
  68. package/dist/collection/assets/landing/id.svg +0 -3
  69. package/dist/collection/assets/landing/info.svg +0 -3
  70. package/dist/collection/assets/landing/validation.svg +0 -16
  71. package/dist/collection/assets/loader.svg +0 -29
  72. package/dist/collection/collection-manifest.json +0 -32
  73. package/dist/collection/components/base-component.js +0 -59
  74. package/dist/collection/components/common/agreement-check/agreement-check.css +0 -0
  75. package/dist/collection/components/common/agreement-check/agreement-check.js +0 -101
  76. package/dist/collection/components/common/camera-error/camera-error.css +0 -0
  77. package/dist/collection/components/common/camera-error/camera-error.js +0 -91
  78. package/dist/collection/components/common/capture-error/capture-error.css +0 -0
  79. package/dist/collection/components/common/capture-error/capture-error.js +0 -101
  80. package/dist/collection/components/common/how-to-info/how-to-info.css +0 -0
  81. package/dist/collection/components/common/how-to-info/how-to-info.js +0 -122
  82. package/dist/collection/components/common/id-back-capture/id-back-capture.css +0 -35
  83. package/dist/collection/components/common/id-capture/id-capture.css +0 -35
  84. package/dist/collection/components/common/id-tilt/id-tilt.css +0 -35
  85. package/dist/collection/components/common/random-actions/random-actions.css +0 -0
  86. package/dist/collection/components/common/random-actions/random-actions.js +0 -20
  87. package/dist/collection/components/common/selfie-capture/selfie-capture.css +0 -7
  88. package/dist/collection/components/common/selfie-tilt/selfie-tilt.css +0 -7
  89. package/dist/collection/components/controls/camera/camera.css +0 -47
  90. package/dist/collection/components/controls/camera/camera.js +0 -289
  91. package/dist/collection/components/controls/loader-dots/loader-dots.css +0 -61
  92. package/dist/collection/components/controls/loader-dots/loader-dots.js +0 -18
  93. package/dist/collection/components/flow/agreement-info/agreement-info.css +0 -0
  94. package/dist/collection/components/flow/agreement-info/agreement-info.js +0 -106
  95. package/dist/collection/components/flow/end-redirect/end-redirect.css +0 -128
  96. package/dist/collection/components/flow/end-redirect/end-redirect.js +0 -44
  97. package/dist/collection/components/flow/error-end/error-end.css +0 -0
  98. package/dist/collection/components/flow/error-end/error-end.js +0 -61
  99. package/dist/collection/components/flow/landing-validation/landing-validation.css +0 -0
  100. package/dist/collection/components/flow/landing-validation/landing-validation.js +0 -122
  101. package/dist/collection/components/flow/mobile-redirect/mobile-redirect.css +0 -10
  102. package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +0 -144
  103. package/dist/collection/components/flow/process-id/process-id.css +0 -0
  104. package/dist/collection/components/flow/sms-code-validation/sms-code-validation.css +0 -0
  105. package/dist/collection/components/flow/sms-code-validation/sms-code-validation.js +0 -140
  106. package/dist/collection/components/flow/user-liveness/user-liveness.css +0 -0
  107. package/dist/collection/components/identification-component/identification-component.css +0 -991
  108. package/dist/collection/components/identification-component/identification-component.js +0 -387
  109. package/dist/collection/global.js +0 -0
  110. package/dist/collection/helpers/ApiCall.js +0 -223
  111. package/dist/collection/helpers/DeviceDetection.js +0 -85
  112. package/dist/collection/helpers/Events.js +0 -58
  113. package/dist/collection/helpers/ML5.js +0 -38
  114. package/dist/collection/helpers/Stream.js +0 -229
  115. package/dist/collection/helpers/canvas.js +0 -10
  116. package/dist/collection/helpers/index.js +0 -21
  117. package/dist/collection/helpers/security.js +0 -25
  118. package/dist/collection/helpers/store.js +0 -47
  119. package/dist/collection/helpers/textValues.js +0 -145
  120. package/dist/collection/index.js +0 -1
  121. package/dist/collection/libs/FaceML5Detector/FaceML5Detector.js +0 -229
  122. package/dist/collection/libs/FaceML5Detector/FacePose.js +0 -85
  123. package/dist/collection/libs/IDML5Detector/IDML5Detector.js +0 -99
  124. package/dist/collection/models/FlowStatus.js +0 -14
  125. package/dist/collection/models/FlowSteps.js +0 -30
  126. package/dist/collection/models/IAbortResult.js +0 -1
  127. package/dist/collection/models/IAddRequest.js +0 -1
  128. package/dist/collection/models/IAgreement.js +0 -1
  129. package/dist/collection/models/ICamera.js +0 -1
  130. package/dist/collection/models/IEctStore.js +0 -1
  131. package/dist/collection/models/IGeneration.js +0 -1
  132. package/dist/collection/models/ILinkSend.js +0 -1
  133. package/dist/collection/models/ILogResult.js +0 -1
  134. package/dist/collection/models/IOrderStatus.js +0 -1
  135. package/dist/collection/models/IOtpCheck.js +0 -1
  136. package/dist/collection/models/IOtpSend.js +0 -1
  137. package/dist/collection/models/IUploadFile.js +0 -1
  138. package/dist/collection/models/IVerificationMode.js +0 -5
  139. package/dist/collection/models/OrderStatuses.js +0 -8
  140. package/dist/esm/agreement-check_19.entry.js +0 -9990
  141. package/dist/esm/index-cf54a432.js +0 -1543
  142. package/dist/esm/index.js +0 -1
  143. package/dist/esm/loader.js +0 -18
  144. package/dist/esm/polyfills/core-js.js +0 -11
  145. package/dist/esm/polyfills/css-shim.js +0 -1
  146. package/dist/esm/polyfills/dom.js +0 -79
  147. package/dist/esm/polyfills/es5-html-element.js +0 -1
  148. package/dist/esm/polyfills/index.js +0 -34
  149. package/dist/esm/polyfills/system.js +0 -6
  150. package/dist/esm/qbs-ect-cmp.js +0 -18
  151. package/dist/index.cjs.js +0 -1
  152. package/dist/index.js +0 -1
  153. package/dist/loader/cdn.js +0 -3
  154. package/dist/loader/index.cjs.js +0 -3
  155. package/dist/loader/index.d.ts +0 -21
  156. package/dist/loader/index.es2017.js +0 -3
  157. package/dist/loader/index.js +0 -4
  158. package/dist/loader/package.json +0 -11
  159. package/dist/qbs-ect-cmp/p-054dc5b3.entry.js +0 -1
  160. package/dist/qbs-ect-cmp/p-0b381be5.js +0 -1
  161. package/dist/qbs-ect-cmp/p-4ef6223b.entry.js +0 -1373
  162. package/dist/qbs-ect-cmp/p-6be3b9ca.entry.js +0 -1
  163. package/dist/qbs-ect-cmp/p-8942656c.js +0 -2
@@ -1,29 +0,0 @@
1
- <svg id="spinnerLoaderRef" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" width="100" height="100" overflow="visible" fill="#000000" stroke="#030303" class="single-loader">
2
- <defs>
3
- <circle id="spinner" r="4" cx="50" cy="50" transform="translate(0 -30)"/>
4
- </defs>
5
- <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#spinner" transform="rotate(0 50 50)">
6
- <animate attributeName="opacity" values="0;1;0" dur="1s" begin="0s" repeatCount="indefinite"/>
7
- </use>
8
- <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#spinner" transform="rotate(45 50 50)">
9
- <animate attributeName="opacity" values="0;1;0" dur="1s" begin="0.125s" repeatCount="indefinite"/>
10
- </use>
11
- <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#spinner" transform="rotate(90 50 50)">
12
- <animate attributeName="opacity" values="0;1;0" dur="1s" begin="0.25s" repeatCount="indefinite"/>
13
- </use>
14
- <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#spinner" transform="rotate(135 50 50)">
15
- <animate attributeName="opacity" values="0;1;0" dur="1s" begin="0.375s" repeatCount="indefinite"/>
16
- </use>
17
- <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#spinner" transform="rotate(180 50 50)">
18
- <animate attributeName="opacity" values="0;1;0" dur="1s" begin="0.5s" repeatCount="indefinite"/>
19
- </use>
20
- <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#spinner" transform="rotate(225 50 50)">
21
- <animate attributeName="opacity" values="0;1;0" dur="1s" begin="0.625s" repeatCount="indefinite"/>
22
- </use>
23
- <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#spinner" transform="rotate(270 50 50)">
24
- <animate attributeName="opacity" values="0;1;0" dur="1s" begin="0.75s" repeatCount="indefinite"/>
25
- </use>
26
- <use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#spinner" transform="rotate(315 50 50)">
27
- <animate attributeName="opacity" values="0;1;0" dur="1s" begin="0.875s" repeatCount="indefinite"/>
28
- </use>
29
- </svg>
@@ -1,32 +0,0 @@
1
- {
2
- "entries": [
3
- "./components/common/agreement-check/agreement-check.js",
4
- "./components/common/camera-error/camera-error.js",
5
- "./components/common/capture-error/capture-error.js",
6
- "./components/common/how-to-info/how-to-info.js",
7
- "./components/common/id-back-capture/id-back-capture.js",
8
- "./components/common/id-capture/id-capture.js",
9
- "./components/common/id-tilt/id-tilt.js",
10
- "./components/common/random-actions/random-actions.js",
11
- "./components/common/selfie-capture/selfie-capture.js",
12
- "./components/common/selfie-tilt/selfie-tilt.js",
13
- "./components/controls/camera/camera.js",
14
- "./components/controls/loader-dots/loader-dots.js",
15
- "./components/flow/agreement-info/agreement-info.js",
16
- "./components/flow/end-redirect/end-redirect.js",
17
- "./components/flow/error-end/error-end.js",
18
- "./components/flow/landing-validation/landing-validation.js",
19
- "./components/flow/mobile-redirect/mobile-redirect.js",
20
- "./components/flow/process-id/process-id.js",
21
- "./components/flow/sms-code-validation/sms-code-validation.js",
22
- "./components/flow/user-liveness/user-liveness.js",
23
- "./components/identification-component/identification-component.js"
24
- ],
25
- "compiler": {
26
- "name": "@stencil/core",
27
- "version": "2.22.3",
28
- "typescriptVersion": "4.9.4"
29
- },
30
- "collections": [],
31
- "bundles": []
32
- }
@@ -1,59 +0,0 @@
1
- import { ApiCall } from '../helpers/ApiCall';
2
- import { DeviceDetection } from '../helpers/DeviceDetection';
3
- import Events from '../helpers/Events';
4
- import store from '../helpers/store';
5
- import { FlowMoments } from '../models/FlowSteps';
6
- export class BaseComponent {
7
- constructor(step) {
8
- this.apiErrorEvent = null;
9
- this.processError = null;
10
- this.apiCall = new ApiCall();
11
- if (step)
12
- this.flowStep = step;
13
- if (!store.device) {
14
- store.device = new DeviceDetection().getDevice();
15
- }
16
- }
17
- setEventEmitter(event) {
18
- this.apiErrorEvent = event;
19
- }
20
- setErrorCallback(callback) {
21
- this.processError = callback;
22
- }
23
- async logStep(step, moment) {
24
- Events.flowEvent(step, moment);
25
- try {
26
- await this.apiCall.AddStep(step, moment);
27
- }
28
- catch (e) {
29
- if (this.apiErrorEvent)
30
- this.apiErrorEvent.emit(e);
31
- else
32
- this.processError(e, `${step}-${moment}`);
33
- }
34
- }
35
- async initialize() {
36
- Events.flowEvent(this.flowStep, FlowMoments.Initialized);
37
- try {
38
- await this.apiCall.AddStep(this.flowStep, FlowMoments.Initialized);
39
- }
40
- catch (e) {
41
- if (this.apiErrorEvent)
42
- this.apiErrorEvent.emit(e);
43
- else
44
- this.processError(e, `${this.flowStep}-${FlowMoments.Initialized}`);
45
- }
46
- }
47
- async finalize() {
48
- Events.flowEvent(this.flowStep, FlowMoments.Finalized);
49
- try {
50
- await this.apiCall.AddStep(this.flowStep, FlowMoments.Finalized);
51
- }
52
- catch (e) {
53
- if (this.apiErrorEvent)
54
- this.apiErrorEvent.emit(e);
55
- else
56
- this.processError(e, `${this.flowStep}-${FlowMoments.Finalized}`);
57
- }
58
- }
59
- }
@@ -1,101 +0,0 @@
1
- import { h } from '@stencil/core';
2
- import { ApiCall } from '../../../helpers/ApiCall';
3
- import { AgreementCheckValues, AgreementInfoValues } from '../../../helpers/textValues';
4
- export class AgreementCheck {
5
- constructor() {
6
- this.agreementType = undefined;
7
- this.htmlContent = undefined;
8
- this.buttonEnabled = undefined;
9
- this.scrollClass = 'scroll';
10
- this.apiCalls = new ApiCall();
11
- this.buttonEnabled = true;
12
- }
13
- async componentDidLoad() {
14
- try {
15
- this.htmlContent = await this.apiCalls.GetAgreement(this.agreementType);
16
- }
17
- catch (e) {
18
- this.apiErrorEvent.emit(e);
19
- }
20
- }
21
- async buttonClick(result) {
22
- this.buttonEnabled = false;
23
- this.agreementAcceptance.emit({ agreementType: this.agreementType, result });
24
- }
25
- render() {
26
- 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))))));
27
- return this.htmlContent ? content : h("div", null);
28
- }
29
- static get is() { return "agreement-check"; }
30
- static get originalStyleUrls() {
31
- return {
32
- "$": ["agreement-check.css"]
33
- };
34
- }
35
- static get styleUrls() {
36
- return {
37
- "$": ["agreement-check.css"]
38
- };
39
- }
40
- static get properties() {
41
- return {
42
- "agreementType": {
43
- "type": "string",
44
- "mutable": false,
45
- "complexType": {
46
- "original": "string",
47
- "resolved": "string",
48
- "references": {}
49
- },
50
- "required": false,
51
- "optional": false,
52
- "docs": {
53
- "tags": [],
54
- "text": ""
55
- },
56
- "attribute": "agreement-type",
57
- "reflect": false
58
- }
59
- };
60
- }
61
- static get states() {
62
- return {
63
- "htmlContent": {},
64
- "buttonEnabled": {},
65
- "scrollClass": {}
66
- };
67
- }
68
- static get events() {
69
- return [{
70
- "method": "apiErrorEvent",
71
- "name": "apiError",
72
- "bubbles": true,
73
- "cancelable": true,
74
- "composed": true,
75
- "docs": {
76
- "tags": [],
77
- "text": ""
78
- },
79
- "complexType": {
80
- "original": "any",
81
- "resolved": "any",
82
- "references": {}
83
- }
84
- }, {
85
- "method": "agreementAcceptance",
86
- "name": "agreementAcceptance",
87
- "bubbles": true,
88
- "cancelable": true,
89
- "composed": true,
90
- "docs": {
91
- "tags": [],
92
- "text": ""
93
- },
94
- "complexType": {
95
- "original": "any",
96
- "resolved": "any",
97
- "references": {}
98
- }
99
- }];
100
- }
101
- }
@@ -1,91 +0,0 @@
1
- import { h } from '@stencil/core';
2
- import { CameraErrorValues, SessionKeys } from '../../../helpers/textValues';
3
- import store from '../../../helpers/store';
4
- import { FlowStatus } from '../../../models/FlowStatus';
5
- import { FlowSteps } from '../../../models/FlowSteps';
6
- import { MobileOS } from '../../../models/IDevice';
7
- import { BaseComponent } from '../../base-component';
8
- export class CameraError {
9
- constructor() {
10
- this.title = undefined;
11
- this.description = undefined;
12
- this.buttonDisabled = undefined;
13
- this.demoVideo = undefined;
14
- this.baseComponent = new BaseComponent(FlowSteps.CameraError);
15
- this.baseComponent.setEventEmitter(this.apiErrorEvent);
16
- }
17
- async componentWillLoad() {
18
- this.buttonDisabled = false;
19
- this.title = CameraErrorValues.Title;
20
- this.description = CameraErrorValues.Description;
21
- this.buttonText = CameraErrorValues.Button;
22
- }
23
- async componentDidLoad() {
24
- await this.baseComponent.initialize();
25
- if (store.device.mobileOS != MobileOS.iOS) {
26
- this.demoVideo.src = CameraErrorValues.HowToLink;
27
- this.demoVideo.loop = true;
28
- this.demoVideo.play();
29
- }
30
- else {
31
- var loaded = sessionStorage.getItem(SessionKeys.RefreshDoneKey);
32
- if (loaded === 'true') {
33
- sessionStorage.setItem(SessionKeys.RefreshDoneKey, 'false');
34
- store.flowStatus = FlowStatus.LANDING;
35
- }
36
- }
37
- }
38
- async disconnectedCallback() {
39
- await this.baseComponent.finalize();
40
- }
41
- async buttonClick() {
42
- this.buttonDisabled = true;
43
- if (store.device.mobileOS == MobileOS.iOS) {
44
- sessionStorage.setItem(SessionKeys.RefreshDoneKey, 'true');
45
- window.location.reload();
46
- }
47
- else {
48
- store.flowStatus = FlowStatus.LANDING;
49
- }
50
- }
51
- render() {
52
- return (h("div", { class: "container" }, h("div", { class: "row" }, h("h1", { class: "color-red" }, this.title), h("div", null, h("p", { class: "color-red font-weight-bold font-size-25 mt-5" }, this.description)), h("div", { hidden: store.device.mobileOS == MobileOS.iOS }, h("video", { id: "howtoPermissions", class: "video-demo", playsinline: true, ref: el => (this.demoVideo = el) }, h("source", { type: "video/mp4" }))), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", type: "button", disabled: this.buttonDisabled, onClick: () => this.buttonClick() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, CameraErrorValues.FooterText))))));
53
- }
54
- static get is() { return "camera-error"; }
55
- static get originalStyleUrls() {
56
- return {
57
- "$": ["camera-error.css"]
58
- };
59
- }
60
- static get styleUrls() {
61
- return {
62
- "$": ["camera-error.css"]
63
- };
64
- }
65
- static get states() {
66
- return {
67
- "title": {},
68
- "description": {},
69
- "buttonDisabled": {},
70
- "demoVideo": {}
71
- };
72
- }
73
- static get events() {
74
- return [{
75
- "method": "apiErrorEvent",
76
- "name": "apiError",
77
- "bubbles": true,
78
- "cancelable": true,
79
- "composed": true,
80
- "docs": {
81
- "tags": [],
82
- "text": ""
83
- },
84
- "complexType": {
85
- "original": "any",
86
- "resolved": "any",
87
- "references": {}
88
- }
89
- }];
90
- }
91
- }
@@ -1,101 +0,0 @@
1
- import { h } from '@stencil/core';
2
- import { IdCaptureValues, SelfieCaptureValues } from '../../../helpers/textValues';
3
- import { delay } from '../../../utils/utils';
4
- import { BaseComponent } from '../../base-component';
5
- import { FlowMoments, FlowSteps } from '../../../models/FlowSteps';
6
- export class CaptureError {
7
- constructor() {
8
- this.type = undefined;
9
- this.buttonEnabled = undefined;
10
- this.buttonText = undefined;
11
- this.baseComponent = new BaseComponent(FlowSteps.CiError);
12
- }
13
- async componentWillLoad() {
14
- this.buttonEnabled = false;
15
- if (this.type == 'ID') {
16
- this.titleR1 = IdCaptureValues.ErrorTitleR1;
17
- this.titleR2 = IdCaptureValues.ErrorTitleR2;
18
- this.descriptionR1 = IdCaptureValues.ErrorR1;
19
- this.descriptionR2 = IdCaptureValues.ErrorR2;
20
- }
21
- if (this.type == 'LIVENESS') {
22
- this.titleR1 = SelfieCaptureValues.ErrorTitleR1;
23
- this.titleR2 = SelfieCaptureValues.ErrorTitleR2;
24
- this.descriptionR1 = SelfieCaptureValues.ErrorR1;
25
- this.descriptionR2 = SelfieCaptureValues.ErrorR2;
26
- }
27
- }
28
- async componentDidLoad() {
29
- await this.baseComponent.logStep(FlowSteps.CiError, FlowMoments.Initialized);
30
- for (let i = 5; i >= 1; i--) {
31
- this.buttonText = i.toString();
32
- await delay(1000);
33
- }
34
- this.buttonText = IdCaptureValues.Button;
35
- this.buttonEnabled = true;
36
- }
37
- async buttonClick() {
38
- this.buttonEnabled = false;
39
- await this.baseComponent.logStep(FlowSteps.CiError, FlowMoments.Finalized);
40
- this.eventCaptureErrorDone.emit();
41
- }
42
- render() {
43
- 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))))));
44
- }
45
- static get is() { return "capture-error"; }
46
- static get originalStyleUrls() {
47
- return {
48
- "$": ["capture-error.css"]
49
- };
50
- }
51
- static get styleUrls() {
52
- return {
53
- "$": ["capture-error.css"]
54
- };
55
- }
56
- static get properties() {
57
- return {
58
- "type": {
59
- "type": "string",
60
- "mutable": false,
61
- "complexType": {
62
- "original": "string",
63
- "resolved": "string",
64
- "references": {}
65
- },
66
- "required": false,
67
- "optional": false,
68
- "docs": {
69
- "tags": [],
70
- "text": ""
71
- },
72
- "attribute": "type",
73
- "reflect": false
74
- }
75
- };
76
- }
77
- static get states() {
78
- return {
79
- "buttonEnabled": {},
80
- "buttonText": {}
81
- };
82
- }
83
- static get events() {
84
- return [{
85
- "method": "eventCaptureErrorDone",
86
- "name": "captureErrorDone",
87
- "bubbles": true,
88
- "cancelable": true,
89
- "composed": true,
90
- "docs": {
91
- "tags": [],
92
- "text": ""
93
- },
94
- "complexType": {
95
- "original": "any",
96
- "resolved": "any",
97
- "references": {}
98
- }
99
- }];
100
- }
101
- }
@@ -1,122 +0,0 @@
1
- import { h } from '@stencil/core';
2
- import { HowToValues } from '../../../helpers/textValues';
3
- import store from '../../../helpers/store';
4
- import { FlowStatus } from '../../../models/FlowStatus';
5
- import { BaseComponent } from '../../base-component';
6
- import { FlowSteps } from '../../../models/FlowSteps';
7
- export class HowToInfo {
8
- constructor() { this.idSide = undefined; this.topTitle = undefined; this.subTitle = undefined; this.imagePath = undefined; this.buttonText = undefined; this.buttonEnabled = undefined; }
9
- async componentDidLoad() {
10
- await this.baseComponent.initialize();
11
- }
12
- async disconnectedCallback() {
13
- await this.baseComponent.finalize();
14
- }
15
- buttonClick() {
16
- this.buttonEnabled = false;
17
- this.eventHowToInfoDone.emit();
18
- }
19
- componentWillLoad() {
20
- this.subTitle = '';
21
- this.buttonEnabled = true;
22
- if (store.flowStatus == FlowStatus.ID) {
23
- this.topTitle = HowToValues.IdTitile;
24
- this.imagePath = 'https://ekyc.blob.core.windows.net/$web/howto_id.png';
25
- this.buttonText = HowToValues.IdButton;
26
- if (this.idSide == 'front') {
27
- this.baseComponent = new BaseComponent(FlowSteps.CiFrontHowTo);
28
- this.subTitle = HowToValues.IdSubTitileFace;
29
- }
30
- if (this.idSide == 'back') {
31
- this.baseComponent = new BaseComponent(FlowSteps.CiBackHowTo);
32
- this.subTitle = HowToValues.IdSubTitileBack;
33
- }
34
- }
35
- if (store.flowStatus == FlowStatus.LIVENESS) {
36
- this.baseComponent = new BaseComponent(FlowSteps.SelfieHowTo);
37
- this.topTitle = HowToValues.SelfieTitile;
38
- this.subTitle = HowToValues.SelfieSubTitile;
39
- this.imagePath = 'https://ekyc.blob.core.windows.net/$web/howto_selfie.png';
40
- this.buttonText = HowToValues.SelfieButton;
41
- }
42
- this.baseComponent.setEventEmitter(this.apiErrorEvent);
43
- }
44
- render() {
45
- let sub = this.subTitle != '' ? h("p", { class: "font-size-2" }, this.subTitle) : null;
46
- 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))))));
47
- }
48
- static get is() { return "how-to-info"; }
49
- static get originalStyleUrls() {
50
- return {
51
- "$": ["how-to-info.css"]
52
- };
53
- }
54
- static get styleUrls() {
55
- return {
56
- "$": ["how-to-info.css"]
57
- };
58
- }
59
- static get properties() {
60
- return {
61
- "idSide": {
62
- "type": "string",
63
- "mutable": false,
64
- "complexType": {
65
- "original": "string",
66
- "resolved": "string",
67
- "references": {}
68
- },
69
- "required": false,
70
- "optional": false,
71
- "docs": {
72
- "tags": [],
73
- "text": ""
74
- },
75
- "attribute": "id-side",
76
- "reflect": false
77
- }
78
- };
79
- }
80
- static get states() {
81
- return {
82
- "topTitle": {},
83
- "subTitle": {},
84
- "imagePath": {},
85
- "buttonText": {},
86
- "buttonEnabled": {}
87
- };
88
- }
89
- static get events() {
90
- return [{
91
- "method": "eventHowToInfoDone",
92
- "name": "howToInfoDone",
93
- "bubbles": true,
94
- "cancelable": true,
95
- "composed": true,
96
- "docs": {
97
- "tags": [],
98
- "text": ""
99
- },
100
- "complexType": {
101
- "original": "any",
102
- "resolved": "any",
103
- "references": {}
104
- }
105
- }, {
106
- "method": "apiErrorEvent",
107
- "name": "apiError",
108
- "bubbles": true,
109
- "cancelable": true,
110
- "composed": true,
111
- "docs": {
112
- "tags": [],
113
- "text": ""
114
- },
115
- "complexType": {
116
- "original": "any",
117
- "resolved": "any",
118
- "references": {}
119
- }
120
- }];
121
- }
122
- }
@@ -1,35 +0,0 @@
1
- /* .cameraContainer {
2
- width: 100%;
3
- height: 100%;
4
- z-index: 10;
5
- position: relative;
6
- overflow: hidden;
7
- } */
8
-
9
- .logo {
10
- max-height: 450px;
11
- max-width: 450px;
12
- }
13
-
14
- /* .block {
15
- width: 90%;
16
- padding-left: 5%;
17
- padding-right: 5%;
18
- margin-top: 5vh;
19
- } */
20
-
21
- .canvas-on-video {
22
- max-width: 100%;
23
- max-height: 100%;
24
- position: absolute;
25
- z-index: 2;
26
- transform: scale(-1, 1);
27
- }
28
- /*
29
- @media screen and (max-height: 414px) {
30
- .logo {
31
- background-size: 140px;
32
- max-height: 140px;
33
- max-width: 140px;
34
- }
35
- } */
@@ -1,35 +0,0 @@
1
- /* .cameraContainer {
2
- width: 100%;
3
- height: 100%;
4
- z-index: 10;
5
- position: relative;
6
- overflow: hidden;
7
- } */
8
-
9
- .logo {
10
- max-height: 450px;
11
- max-width: 450px;
12
- }
13
-
14
- /* .block {
15
- width: 90%;
16
- padding-left: 5%;
17
- padding-right: 5%;
18
- margin-top: 5vh;
19
- } */
20
-
21
- .canvas-on-video {
22
- max-width: 100%;
23
- max-height: 100%;
24
- position: absolute;
25
- z-index: 2;
26
- transform: scale(-1, 1);
27
- }
28
- /*
29
- @media screen and (max-height: 414px) {
30
- .logo {
31
- background-size: 140px;
32
- max-height: 140px;
33
- max-width: 140px;
34
- }
35
- } */
@@ -1,35 +0,0 @@
1
- /* .cameraContainer {
2
- width: 100%;
3
- height: 100%;
4
- z-index: 10;
5
- position: relative;
6
- overflow: hidden;
7
- } */
8
-
9
- .logo {
10
- max-height: 450px;
11
- max-width: 450px;
12
- }
13
-
14
- /* .block {
15
- width: 90%;
16
- padding-left: 5%;
17
- padding-right: 5%;
18
- margin-top: 5vh;
19
- } */
20
-
21
- .canvas-on-video {
22
- max-width: 100%;
23
- max-height: 100%;
24
- position: absolute;
25
- z-index: 2;
26
- transform: scale(-1, 1);
27
- }
28
- /*
29
- @media screen and (max-height: 414px) {
30
- .logo {
31
- background-size: 140px;
32
- max-height: 140px;
33
- max-width: 140px;
34
- }
35
- } */
@@ -1,20 +0,0 @@
1
- import { h } from '@stencil/core';
2
- import { HowToValues } from '../../../helpers/textValues';
3
- export class RandomActions {
4
- componentWillLoad() { }
5
- buttonClick() { }
6
- render() {
7
- return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { class: "text-center" }, h("h1", null, this.topTitle)), h("div", { class: "pos-relative show-bottom" }, h("div", { class: "btn-buletin" }, h("button", { class: "main-button", onClick: () => this.buttonClick() }, this.buttonText), h("p", { class: "main-text font-size-18 text-right mb-0" }, HowToValues.FooterText))))));
8
- }
9
- static get is() { return "random-actions"; }
10
- static get originalStyleUrls() {
11
- return {
12
- "$": ["random-actions.css"]
13
- };
14
- }
15
- static get styleUrls() {
16
- return {
17
- "$": ["random-actions.css"]
18
- };
19
- }
20
- }