@ekyc_qoobiss/qbs-ect-cmp 1.5.11

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/LICENSE +21 -0
  2. package/README.md +26 -0
  3. package/dist/assets/animations/face/LookDown.gif +0 -0
  4. package/dist/assets/animations/face/LookLeft.gif +0 -0
  5. package/dist/assets/animations/face/LookRight.gif +0 -0
  6. package/dist/assets/animations/face/LookUp.gif +0 -0
  7. package/dist/assets/animations/face/TiltLeft.gif +0 -0
  8. package/dist/assets/animations/face/TiltRight.gif +0 -0
  9. package/dist/assets/animations/face/general.gif +0 -0
  10. package/dist/assets/animations/id/present-id.gif +0 -0
  11. package/dist/assets/animations/id/straighten-id.gif +0 -0
  12. package/dist/assets/animations/id/tilt-id.gif +0 -0
  13. package/dist/assets/buletin/metadata.json +1 -0
  14. package/dist/assets/buletin/model.json +1 -0
  15. package/dist/assets/buletin/weights.bin +0 -0
  16. package/dist/assets/buletin-v2/metadata.json +1 -0
  17. package/dist/assets/buletin-v2/model.json +1 -0
  18. package/dist/assets/buletin-v2/weights.bin +0 -0
  19. package/dist/assets/canvas-masks/face_green.svg +8 -0
  20. package/dist/assets/canvas-masks/face_white.svg +8 -0
  21. package/dist/assets/canvas-masks/id_green.svg +6 -0
  22. package/dist/assets/canvas-masks/id_white.svg +6 -0
  23. package/dist/assets/capture-error/idError.png +0 -0
  24. package/dist/assets/capture-error/idError.svg +8 -0
  25. package/dist/assets/capture-error/selfieError.png +0 -0
  26. package/dist/assets/capture-error/selfieError.svg +11 -0
  27. package/dist/assets/complete.svg +4 -0
  28. package/dist/assets/howtos/circle.svg +11 -0
  29. package/dist/assets/howtos/idscan.svg +293 -0
  30. package/dist/assets/howtos/liveness.svg +97 -0
  31. package/dist/assets/landing/device.svg +14 -0
  32. package/dist/assets/landing/id.svg +3 -0
  33. package/dist/assets/landing/info.svg +3 -0
  34. package/dist/assets/landing/validation.svg +16 -0
  35. package/dist/cjs/agreement-check_12.cjs.entry.js +6143 -0
  36. package/dist/cjs/index-9ebcada7.js +1487 -0
  37. package/dist/cjs/index.cjs.js +2 -0
  38. package/dist/cjs/loader-dots.cjs.entry.js +19 -0
  39. package/dist/cjs/loader.cjs.js +21 -0
  40. package/dist/cjs/qbs-ect-cmp.cjs.js +19 -0
  41. package/dist/collection/assets/canvas-masks/face_green.svg +8 -0
  42. package/dist/collection/assets/canvas-masks/face_white.svg +8 -0
  43. package/dist/collection/assets/canvas-masks/id_green.svg +6 -0
  44. package/dist/collection/assets/canvas-masks/id_white.svg +6 -0
  45. package/dist/collection/assets/capture-error/idError.svg +8 -0
  46. package/dist/collection/assets/capture-error/selfieError.svg +11 -0
  47. package/dist/collection/assets/complete.svg +4 -0
  48. package/dist/collection/assets/howtos/circle.svg +11 -0
  49. package/dist/collection/assets/howtos/idscan.svg +293 -0
  50. package/dist/collection/assets/howtos/liveness.svg +97 -0
  51. package/dist/collection/assets/landing/device.svg +14 -0
  52. package/dist/collection/assets/landing/id.svg +3 -0
  53. package/dist/collection/assets/landing/info.svg +3 -0
  54. package/dist/collection/assets/landing/validation.svg +16 -0
  55. package/dist/collection/collection-manifest.json +24 -0
  56. package/dist/collection/components/agreement-check/agreement-check.css +0 -0
  57. package/dist/collection/components/agreement-check/agreement-check.js +75 -0
  58. package/dist/collection/components/agreement-info/agreement-info.css +0 -0
  59. package/dist/collection/components/agreement-info/agreement-info.js +72 -0
  60. package/dist/collection/components/capture-error/capture-error.css +0 -0
  61. package/dist/collection/components/capture-error/capture-error.js +107 -0
  62. package/dist/collection/components/controls/camera/camera.css +43 -0
  63. package/dist/collection/components/controls/camera/camera.js +306 -0
  64. package/dist/collection/components/controls/loader-dots/loader-dots.css +61 -0
  65. package/dist/collection/components/controls/loader-dots/loader-dots.js +18 -0
  66. package/dist/collection/components/end-redirect/end-redirect.css +128 -0
  67. package/dist/collection/components/end-redirect/end-redirect.js +25 -0
  68. package/dist/collection/components/how-to-info/how-to-info.css +0 -0
  69. package/dist/collection/components/how-to-info/how-to-info.js +105 -0
  70. package/dist/collection/components/id-back-capture/id-back-capture.css +35 -0
  71. package/dist/collection/components/id-back-capture/id-back-capture.js +201 -0
  72. package/dist/collection/components/id-capture/id-capture.css +35 -0
  73. package/dist/collection/components/id-capture/id-capture.js +201 -0
  74. package/dist/collection/components/identification-component/identification-component.css +999 -0
  75. package/dist/collection/components/identification-component/identification-component.js +397 -0
  76. package/dist/collection/components/landing-validation/landing-validation.css +0 -0
  77. package/dist/collection/components/landing-validation/landing-validation.js +78 -0
  78. package/dist/collection/components/selfie-capture/selfie-capture.css +22 -0
  79. package/dist/collection/components/selfie-capture/selfie-capture.js +198 -0
  80. package/dist/collection/components/sms-code-validation/sms-code-validation.css +0 -0
  81. package/dist/collection/components/sms-code-validation/sms-code-validation.js +91 -0
  82. package/dist/collection/global.js +0 -0
  83. package/dist/collection/helpers/ApiCall.js +153 -0
  84. package/dist/collection/helpers/Cameras.js +98 -0
  85. package/dist/collection/helpers/Events.js +79 -0
  86. package/dist/collection/helpers/ML5.js +20 -0
  87. package/dist/collection/helpers/Stream.js +223 -0
  88. package/dist/collection/helpers/canvas.js +10 -0
  89. package/dist/collection/helpers/index.js +54 -0
  90. package/dist/collection/helpers/security.js +25 -0
  91. package/dist/collection/helpers/store.js +15 -0
  92. package/dist/collection/helpers/textValues.js +82 -0
  93. package/dist/collection/index.js +1 -0
  94. package/dist/collection/libs/FaceML5Detector/FaceML5Detector.js +206 -0
  95. package/dist/collection/libs/FaceML5Detector/FacePose.js +84 -0
  96. package/dist/collection/libs/IDML5Detector/IDML5Detector.js +110 -0
  97. package/dist/collection/libs/IDML5Detector/IDPose.js +5 -0
  98. package/dist/collection/models/ICamera.js +1 -0
  99. package/dist/collection/models/IConstraints.js +1 -0
  100. package/dist/collection/models/IDevice.js +1 -0
  101. package/dist/collection/utils/utils.js +10 -0
  102. package/dist/esm/agreement-check_12.entry.js +6128 -0
  103. package/dist/esm/index-3fe6775c.js +1457 -0
  104. package/dist/esm/index.js +1 -0
  105. package/dist/esm/loader-dots.entry.js +15 -0
  106. package/dist/esm/loader.js +17 -0
  107. package/dist/esm/polyfills/core-js.js +11 -0
  108. package/dist/esm/polyfills/css-shim.js +1 -0
  109. package/dist/esm/polyfills/dom.js +79 -0
  110. package/dist/esm/polyfills/es5-html-element.js +1 -0
  111. package/dist/esm/polyfills/index.js +34 -0
  112. package/dist/esm/polyfills/system.js +6 -0
  113. package/dist/esm/qbs-ect-cmp.js +17 -0
  114. package/dist/index.cjs.js +1 -0
  115. package/dist/index.js +1 -0
  116. package/dist/loader/cdn.js +3 -0
  117. package/dist/loader/index.cjs.js +3 -0
  118. package/dist/loader/index.d.ts +12 -0
  119. package/dist/loader/index.es2017.js +3 -0
  120. package/dist/loader/index.js +4 -0
  121. package/dist/loader/package.json +11 -0
  122. package/dist/qbs-ect-cmp/index.esm.js +0 -0
  123. package/dist/qbs-ect-cmp/p-3ef0bad2.entry.js +1373 -0
  124. package/dist/qbs-ect-cmp/p-3fa495e4.js +2 -0
  125. package/dist/qbs-ect-cmp/p-a69bb428.entry.js +1 -0
  126. package/dist/qbs-ect-cmp/qbs-ect-cmp.css +1 -0
  127. package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -0
  128. package/dist/types/components/agreement-check/agreement-check.d.ts +11 -0
  129. package/dist/types/components/agreement-info/agreement-info.d.ts +13 -0
  130. package/dist/types/components/capture-error/capture-error.d.ts +11 -0
  131. package/dist/types/components/controls/camera/camera.d.ts +33 -0
  132. package/dist/types/components/controls/loader-dots/loader-dots.d.ts +3 -0
  133. package/dist/types/components/end-redirect/end-redirect.d.ts +4 -0
  134. package/dist/types/components/how-to-info/how-to-info.d.ts +13 -0
  135. package/dist/types/components/id-back-capture/id-back-capture.d.ts +26 -0
  136. package/dist/types/components/id-capture/id-capture.d.ts +26 -0
  137. package/dist/types/components/identification-component/identification-component.d.ts +31 -0
  138. package/dist/types/components/landing-validation/landing-validation.d.ts +11 -0
  139. package/dist/types/components/selfie-capture/selfie-capture.d.ts +26 -0
  140. package/dist/types/components/sms-code-validation/sms-code-validation.d.ts +14 -0
  141. package/dist/types/components.d.ts +262 -0
  142. package/dist/types/global.d.ts +0 -0
  143. package/dist/types/helpers/ApiCall.d.ts +12 -0
  144. package/dist/types/helpers/Cameras.d.ts +8 -0
  145. package/dist/types/helpers/Events.d.ts +12 -0
  146. package/dist/types/helpers/ML5.d.ts +8 -0
  147. package/dist/types/helpers/Stream.d.ts +58 -0
  148. package/dist/types/helpers/canvas.d.ts +2 -0
  149. package/dist/types/helpers/index.d.ts +4 -0
  150. package/dist/types/helpers/security.d.ts +4 -0
  151. package/dist/types/helpers/store.d.ts +10 -0
  152. package/dist/types/helpers/textValues.d.ts +78 -0
  153. package/dist/types/index.d.ts +1 -0
  154. package/dist/types/libs/FaceML5Detector/FaceML5Detector.d.ts +43 -0
  155. package/dist/types/libs/FaceML5Detector/FacePose.d.ts +37 -0
  156. package/dist/types/libs/IDML5Detector/IDML5Detector.d.ts +22 -0
  157. package/dist/types/libs/IDML5Detector/IDPose.d.ts +4 -0
  158. package/dist/types/models/ICamera.d.ts +10 -0
  159. package/dist/types/models/IConstraints.d.ts +21 -0
  160. package/dist/types/models/IDevice.d.ts +11 -0
  161. package/dist/types/stencil-public-runtime.d.ts +1581 -0
  162. package/dist/types/utils/utils.d.ts +2 -0
  163. package/package.json +51 -0
@@ -0,0 +1,306 @@
1
+ import { Stream } from '../../../helpers/Stream';
2
+ import { h } from '@stencil/core';
3
+ // import { PipelineResult } from '../../../libs/FaceDetector/PipelineResult';
4
+ // import Events from '../../../helpers/Events';
5
+ export class Camera {
6
+ constructor() {
7
+ this.callbackErrors = (error, isError) => {
8
+ if (isError) {
9
+ this.errorCameraEvent.emit(error);
10
+ this.eventCloseCamera.emit();
11
+ }
12
+ else {
13
+ this.errorCameraEvent.emit(error);
14
+ }
15
+ };
16
+ this.callbackAutoCapturing = () => {
17
+ this.eventTakePhoto.emit();
18
+ };
19
+ // callbackFaceDetectionErrors = (e: PipelineResult) => {
20
+ // Events.detectionError(e);
21
+ // };
22
+ this.callbackSelfieRecordingReady = (recording) => {
23
+ this.eventRecordingSelfieReady.emit(recording);
24
+ };
25
+ this.callbackIdRecordingReady = (recording) => {
26
+ this.eventRecordingIdReady.emit(recording);
27
+ };
28
+ this.callbackTimeElapsed = () => {
29
+ this.eventTimeElapsed.emit();
30
+ };
31
+ this.callbackChangeTitle = (message) => {
32
+ this.eventChangeTitle.emit(message);
33
+ };
34
+ this.callbackStopAnimation = () => {
35
+ this.eventStopAnimation.emit();
36
+ };
37
+ this.callbackVideoStarted = () => {
38
+ this.eventVideoStarted.emit(this.component.getBoundingClientRect());
39
+ };
40
+ this.modelPath = undefined;
41
+ this.device = undefined;
42
+ this.probabilityThreshold = undefined;
43
+ this.captureMode = undefined;
44
+ }
45
+ componentDidLoad() {
46
+ this.startStream();
47
+ }
48
+ render() {
49
+ let cameraVideoClass = 'cameraVideo';
50
+ let cameraCanvasClass = 'cameraCanvas';
51
+ if (this.captureMode == 'selfie') {
52
+ cameraVideoClass = 'cameraVideoSelfie';
53
+ cameraCanvasClass = 'cameraCanvasSelfie';
54
+ }
55
+ return (h("div", { class: "camera" }, h("video", { id: "video", loop: true, autoplay: true, playsinline: true, muted: true, class: cameraVideoClass, ref: el => (this.cameraVideo = el) }), h("canvas", { id: "output", class: cameraCanvasClass, ref: el => (this.cameraCanvas = el) })));
56
+ }
57
+ startStream() {
58
+ if (!Stream.instance)
59
+ Stream.getInstance(this.device, this.modelPath);
60
+ const stream = Stream.getInstance();
61
+ stream.updateHtmlElements(this.cameraVideo, this.cameraCanvas, this.component);
62
+ if (this.captureMode == 'selfie') {
63
+ stream.setFaceDetection(true);
64
+ stream.setCallbackRecordingReady(this.callbackSelfieRecordingReady);
65
+ // stream.setShowMask(true);
66
+ // stream.setProbabilityThreshold(this.probabilityThreshold);
67
+ // stream.setCallbackFaceDetectionErrors(this.callbackFaceDetectionErrors);
68
+ }
69
+ else {
70
+ stream.setIdDetection(true);
71
+ stream.setCallbackRecordingReady(this.callbackIdRecordingReady);
72
+ // stream.setShowMask(false);
73
+ }
74
+ stream.setCallbackErrors(this.callbackErrors);
75
+ stream.setCallbackAutoCapturing(this.callbackAutoCapturing);
76
+ stream.setCallbackChangeTitle(this.callbackChangeTitle);
77
+ stream.setCallbackStopAnimation(this.callbackStopAnimation);
78
+ stream.setCallbackVideoStarted(this.callbackVideoStarted);
79
+ stream.setCallbackTimeElapsed(this.callbackTimeElapsed);
80
+ }
81
+ static get is() { return "camera-comp"; }
82
+ static get originalStyleUrls() {
83
+ return {
84
+ "$": ["camera.css"]
85
+ };
86
+ }
87
+ static get styleUrls() {
88
+ return {
89
+ "$": ["camera.css"]
90
+ };
91
+ }
92
+ static get properties() {
93
+ return {
94
+ "modelPath": {
95
+ "type": "string",
96
+ "mutable": false,
97
+ "complexType": {
98
+ "original": "string",
99
+ "resolved": "string",
100
+ "references": {}
101
+ },
102
+ "required": false,
103
+ "optional": false,
104
+ "docs": {
105
+ "tags": [],
106
+ "text": ""
107
+ },
108
+ "attribute": "model-path",
109
+ "reflect": false
110
+ },
111
+ "device": {
112
+ "type": "unknown",
113
+ "mutable": false,
114
+ "complexType": {
115
+ "original": "Device",
116
+ "resolved": "Device",
117
+ "references": {
118
+ "Device": {
119
+ "location": "import",
120
+ "path": "../../../models/IDevice"
121
+ }
122
+ }
123
+ },
124
+ "required": false,
125
+ "optional": false,
126
+ "docs": {
127
+ "tags": [],
128
+ "text": ""
129
+ }
130
+ },
131
+ "probabilityThreshold": {
132
+ "type": "number",
133
+ "mutable": false,
134
+ "complexType": {
135
+ "original": "number",
136
+ "resolved": "number",
137
+ "references": {}
138
+ },
139
+ "required": false,
140
+ "optional": false,
141
+ "docs": {
142
+ "tags": [],
143
+ "text": ""
144
+ },
145
+ "attribute": "probability-threshold",
146
+ "reflect": false
147
+ },
148
+ "captureMode": {
149
+ "type": "string",
150
+ "mutable": false,
151
+ "complexType": {
152
+ "original": "string",
153
+ "resolved": "string",
154
+ "references": {}
155
+ },
156
+ "required": false,
157
+ "optional": false,
158
+ "docs": {
159
+ "tags": [],
160
+ "text": ""
161
+ },
162
+ "attribute": "capture-mode",
163
+ "reflect": false
164
+ }
165
+ };
166
+ }
167
+ static get events() {
168
+ return [{
169
+ "method": "eventVideoStarted",
170
+ "name": "videoStarted",
171
+ "bubbles": true,
172
+ "cancelable": true,
173
+ "composed": true,
174
+ "docs": {
175
+ "tags": [],
176
+ "text": ""
177
+ },
178
+ "complexType": {
179
+ "original": "any",
180
+ "resolved": "any",
181
+ "references": {}
182
+ }
183
+ }, {
184
+ "method": "eventCloseCamera",
185
+ "name": "closeCamera",
186
+ "bubbles": true,
187
+ "cancelable": true,
188
+ "composed": true,
189
+ "docs": {
190
+ "tags": [],
191
+ "text": ""
192
+ },
193
+ "complexType": {
194
+ "original": "any",
195
+ "resolved": "any",
196
+ "references": {}
197
+ }
198
+ }, {
199
+ "method": "errorCameraEvent",
200
+ "name": "errorCamera",
201
+ "bubbles": true,
202
+ "cancelable": true,
203
+ "composed": true,
204
+ "docs": {
205
+ "tags": [],
206
+ "text": ""
207
+ },
208
+ "complexType": {
209
+ "original": "any",
210
+ "resolved": "any",
211
+ "references": {}
212
+ }
213
+ }, {
214
+ "method": "eventTakePhoto",
215
+ "name": "takePhoto",
216
+ "bubbles": true,
217
+ "cancelable": true,
218
+ "composed": true,
219
+ "docs": {
220
+ "tags": [],
221
+ "text": ""
222
+ },
223
+ "complexType": {
224
+ "original": "any",
225
+ "resolved": "any",
226
+ "references": {}
227
+ }
228
+ }, {
229
+ "method": "eventRecordingSelfieReady",
230
+ "name": "recordingSelfieCapture",
231
+ "bubbles": true,
232
+ "cancelable": true,
233
+ "composed": true,
234
+ "docs": {
235
+ "tags": [],
236
+ "text": ""
237
+ },
238
+ "complexType": {
239
+ "original": "any",
240
+ "resolved": "any",
241
+ "references": {}
242
+ }
243
+ }, {
244
+ "method": "eventRecordingIdReady",
245
+ "name": "recordingIdCapture",
246
+ "bubbles": true,
247
+ "cancelable": true,
248
+ "composed": true,
249
+ "docs": {
250
+ "tags": [],
251
+ "text": ""
252
+ },
253
+ "complexType": {
254
+ "original": "any",
255
+ "resolved": "any",
256
+ "references": {}
257
+ }
258
+ }, {
259
+ "method": "eventTimeElapsed",
260
+ "name": "timeElapsed",
261
+ "bubbles": true,
262
+ "cancelable": true,
263
+ "composed": true,
264
+ "docs": {
265
+ "tags": [],
266
+ "text": ""
267
+ },
268
+ "complexType": {
269
+ "original": "any",
270
+ "resolved": "any",
271
+ "references": {}
272
+ }
273
+ }, {
274
+ "method": "eventChangeTitle",
275
+ "name": "changeTitle",
276
+ "bubbles": true,
277
+ "cancelable": true,
278
+ "composed": true,
279
+ "docs": {
280
+ "tags": [],
281
+ "text": ""
282
+ },
283
+ "complexType": {
284
+ "original": "any",
285
+ "resolved": "any",
286
+ "references": {}
287
+ }
288
+ }, {
289
+ "method": "eventStopAnimation",
290
+ "name": "stopAnimation",
291
+ "bubbles": true,
292
+ "cancelable": true,
293
+ "composed": true,
294
+ "docs": {
295
+ "tags": [],
296
+ "text": ""
297
+ },
298
+ "complexType": {
299
+ "original": "any",
300
+ "resolved": "any",
301
+ "references": {}
302
+ }
303
+ }];
304
+ }
305
+ static get elementRef() { return "component"; }
306
+ }
@@ -0,0 +1,61 @@
1
+ i,
2
+ i::before,
3
+ i::after {
4
+ animation-duration: 0.5s;
5
+ animation-timing-function: ease-in-out;
6
+ animation-iteration-count: infinite;
7
+ }
8
+
9
+ body {
10
+ font-family: sans-serif;
11
+ }
12
+
13
+ i {
14
+ width: 300px;
15
+ height: 75px;
16
+ margin: auto;
17
+ display: block;
18
+ background: no-repeat;
19
+ background-image: radial-gradient(closest-side, #47b6a2 90%, rgba(0, 0, 0, 0)), radial-gradient(closest-side, #47b6a2 90%, rgba(0, 0, 0, 0));
20
+ background-size: 75px 75px;
21
+ background-position: 0%, 50%;
22
+ position: relative;
23
+ transform: translateZ(0) scale(0.25);
24
+ animation-name: slide;
25
+ }
26
+ i::before,
27
+ i::after {
28
+ content: '';
29
+ width: 75px;
30
+ height: 75px;
31
+ background: radial-gradient(closest-side, #47b6a2 90%, rgba(0, 0, 0, 0));
32
+ position: absolute;
33
+ top: 50%;
34
+ margin-top: -37.5px;
35
+ animation-name: reveal;
36
+ }
37
+ i::before {
38
+ left: 1%;
39
+ animation-delay: 40ms;
40
+ }
41
+ i::after {
42
+ right: 1%;
43
+ animation-direction: reverse;
44
+ }
45
+
46
+ @keyframes slide {
47
+ from {
48
+ background-position: 0%, 50%;
49
+ }
50
+ to {
51
+ background-position: 50%, 100%;
52
+ }
53
+ }
54
+ @keyframes reveal {
55
+ from {
56
+ transform: scale(0.001);
57
+ }
58
+ to {
59
+ transform: scale(1);
60
+ }
61
+ }
@@ -0,0 +1,18 @@
1
+ import { h } from '@stencil/core';
2
+ export class LoaderDots {
3
+ render() {
4
+ return h("i", null);
5
+ }
6
+ static get is() { return "loader-dots"; }
7
+ static get encapsulation() { return "shadow"; }
8
+ static get originalStyleUrls() {
9
+ return {
10
+ "$": ["loader-dots.css"]
11
+ };
12
+ }
13
+ static get styleUrls() {
14
+ return {
15
+ "$": ["loader-dots.css"]
16
+ };
17
+ }
18
+ }
@@ -0,0 +1,128 @@
1
+ h1 {
2
+ font-family: 'Inter', sans-serif;
3
+ font-style: normal;
4
+ font-weight: 900;
5
+ font-size: 4vh;
6
+ line-height: 4vh;
7
+ letter-spacing: 0.01em;
8
+ color: #1f2024;
9
+ }
10
+
11
+ p {
12
+ font-family: 'Inter', sans-serif;
13
+ font-style: normal;
14
+ font-weight: 400;
15
+ font-size: 2vh;
16
+ line-height: 3vh;
17
+ color: #1f2024;
18
+ text-align: justify;
19
+ }
20
+
21
+ .container {
22
+ gap: 10rem;
23
+ text-align: center;
24
+ }
25
+
26
+ .greet {
27
+ color: rgb(73, 78, 79);
28
+ visibility: hidden;
29
+ animation-name: rise;
30
+ animation-delay: 1s;
31
+ animation-fill-mode: forwards;
32
+ }
33
+
34
+ @keyframes rise {
35
+ 0% {
36
+ visibility: hidden;
37
+ }
38
+
39
+ 50% {
40
+ visibility: visible;
41
+ }
42
+
43
+ 100% {
44
+ visibility: visible;
45
+ }
46
+ }
47
+
48
+ .container-coin {
49
+ background-color: transparent;
50
+ perspective: 1000px;
51
+ rotate: 120deg 0deg;
52
+ }
53
+
54
+ .coin-flip {
55
+ animation: flip 0.4s ease-in;
56
+ animation-delay: 0.5s;
57
+ transform-style: preserve-3d;
58
+ animation-fill-mode: forwards;
59
+ visibility: hidden;
60
+ }
61
+
62
+ .coin-scale {
63
+ animation: show 0.4s ease-in;
64
+ animation-delay: 0.5s;
65
+ transform-style: preserve-3d;
66
+ animation-fill-mode: forwards;
67
+ }
68
+
69
+ .coin {
70
+ margin-top: 10rem;
71
+ }
72
+
73
+ @keyframes flip {
74
+ 0% {
75
+ transform: rotateX(140deg);
76
+ visibility: visible;
77
+ }
78
+
79
+ 25% {
80
+ transform: rotateX(120deg);
81
+ visibility: visible;
82
+ }
83
+
84
+ 50% {
85
+ transform: rotateX(90deg);
86
+ visibility: visible;
87
+ }
88
+
89
+ 75% {
90
+ transform: rotateX(75deg);
91
+ visibility: visible;
92
+ }
93
+
94
+ 100% {
95
+ transform: rotateX(0deg);
96
+ visibility: visible;
97
+ }
98
+ }
99
+
100
+ @keyframes show {
101
+ 0% {
102
+ transform: scale(0);
103
+ }
104
+
105
+ 25% {
106
+ transform: scale(0.2);
107
+ }
108
+
109
+ 40% {
110
+ transform: scale(0.4);
111
+ }
112
+
113
+ 50% {
114
+ transform: scale(0.5);
115
+ }
116
+
117
+ 60% {
118
+ transform: scale(0.6);
119
+ }
120
+
121
+ 70% {
122
+ transform: scale(0.7);
123
+ }
124
+
125
+ 100% {
126
+ transform: scale(1);
127
+ }
128
+ }
@@ -0,0 +1,25 @@
1
+ import { h } from '@stencil/core';
2
+ import { CompleteValues, SessionKeys } from '../../helpers/textValues';
3
+ // @ts-ignore
4
+ import completeImg from '../../assets/complete.svg';
5
+ import store from '../../helpers/store';
6
+ export class EndRedirect {
7
+ componentDidLoad() {
8
+ sessionStorage.removeItem(SessionKeys.RequestIdKey);
9
+ sessionStorage.removeItem(SessionKeys.FlowStatusKey);
10
+ }
11
+ render() {
12
+ 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: completeImg }))))), h("div", null, h("p", { class: "font-weight-900 font-size-3 color-black-2 text-center mt-20" }, CompleteValues.Message), h("p", null, store.requestId)), h("div", { class: "btn-buletin" }, h("p", { class: "main-text font-size-18 text-center mb-0" }, CompleteValues.FooterText)))));
13
+ }
14
+ static get is() { return "end-redirect"; }
15
+ static get originalStyleUrls() {
16
+ return {
17
+ "$": ["end-redirect.css"]
18
+ };
19
+ }
20
+ static get styleUrls() {
21
+ return {
22
+ "$": ["end-redirect.css"]
23
+ };
24
+ }
25
+ }
@@ -0,0 +1,105 @@
1
+ import { h } from '@stencil/core';
2
+ import { HowToValues } from '../../helpers/textValues';
3
+ import store from '../../helpers/store';
4
+ // @ts-ignore
5
+ import idImg from '../../assets/howtos/idscan.svg';
6
+ // @ts-ignore
7
+ import livenessImg from '../../assets/howtos/liveness.svg';
8
+ export class HowToInfo {
9
+ constructor() {
10
+ this.idSide = undefined;
11
+ this.topTitle = undefined;
12
+ this.subTitle = undefined;
13
+ this.descriptionR1 = undefined;
14
+ this.descriptionR2 = undefined;
15
+ this.descriptionR3 = undefined;
16
+ this.imagePath = undefined;
17
+ this.buttonText = undefined;
18
+ }
19
+ buttonClick() {
20
+ if (store.flowStatus == 'HOWTOID') {
21
+ if (this.idSide == '' || this.idSide == 'face') {
22
+ store.flowStatus = 'ID';
23
+ }
24
+ if (this.idSide == 'back') {
25
+ store.flowStatus = 'IDBACK';
26
+ }
27
+ }
28
+ if (store.flowStatus == 'HOWTOLIVENESS') {
29
+ store.flowStatus = 'LIVENESS';
30
+ }
31
+ }
32
+ componentWillLoad() {
33
+ this.subTitle = '';
34
+ if (store.flowStatus == 'HOWTOID') {
35
+ this.topTitle = HowToValues.IdTitile;
36
+ this.descriptionR1 = HowToValues.IdDescriptionR1;
37
+ this.descriptionR2 = HowToValues.IdDescriptionR2;
38
+ this.descriptionR3 = HowToValues.IdDescriptionR3;
39
+ this.imagePath = idImg;
40
+ this.buttonText = HowToValues.IdButton;
41
+ if (this.idSide == 'face') {
42
+ this.subTitle = HowToValues.IdSubTitileFace;
43
+ }
44
+ if (this.idSide == 'back') {
45
+ this.subTitle = HowToValues.IdSubTitileBack;
46
+ }
47
+ }
48
+ if (store.flowStatus == 'HOWTOLIVENESS') {
49
+ this.topTitle = HowToValues.SelfieTitile;
50
+ this.descriptionR1 = HowToValues.SelfieDescriptionR1;
51
+ this.descriptionR2 = HowToValues.SelfieDescriptionR2;
52
+ this.descriptionR3 = '';
53
+ this.imagePath = livenessImg;
54
+ this.buttonText = HowToValues.SelfieButton;
55
+ }
56
+ }
57
+ render() {
58
+ let details = store.flowStatus == 'HOWTOID' ? (h("ul", { class: "main-text font-size-2 pl-2-5" }, h("li", null, this.descriptionR1), h("li", null, this.descriptionR2), h("li", null, h("b", null, this.descriptionR3)))) : (h("ul", { class: "main-text font-size-2 pl-2-5" }, h("li", null, this.descriptionR1), h("li", null, this.descriptionR2)));
59
+ let sub = this.subTitle != '' ? h("p", null, this.subTitle) : null;
60
+ return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", null, h("h1", null, this.topTitle), sub, h("div", { class: "d-flex space-between align-center" }, details)), h("div", { class: "div-ci" }, h("img", { src: this.imagePath })), h("div", { class: "pos-relative" }, 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))))));
61
+ }
62
+ static get is() { return "how-to-info"; }
63
+ static get originalStyleUrls() {
64
+ return {
65
+ "$": ["how-to-info.css"]
66
+ };
67
+ }
68
+ static get styleUrls() {
69
+ return {
70
+ "$": ["how-to-info.css"]
71
+ };
72
+ }
73
+ static get properties() {
74
+ return {
75
+ "idSide": {
76
+ "type": "string",
77
+ "mutable": false,
78
+ "complexType": {
79
+ "original": "string",
80
+ "resolved": "string",
81
+ "references": {}
82
+ },
83
+ "required": false,
84
+ "optional": false,
85
+ "docs": {
86
+ "tags": [],
87
+ "text": ""
88
+ },
89
+ "attribute": "id-side",
90
+ "reflect": false
91
+ }
92
+ };
93
+ }
94
+ static get states() {
95
+ return {
96
+ "topTitle": {},
97
+ "subTitle": {},
98
+ "descriptionR1": {},
99
+ "descriptionR2": {},
100
+ "descriptionR3": {},
101
+ "imagePath": {},
102
+ "buttonText": {}
103
+ };
104
+ }
105
+ }
@@ -0,0 +1,35 @@
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
+ } */