@ekyc_qoobiss/qbs-ect-cmp 1.2.0

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 (173) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +49 -0
  3. package/dist/assets/canvas-masks/face_green.svg +8 -0
  4. package/dist/assets/canvas-masks/face_white.svg +8 -0
  5. package/dist/assets/canvas-masks/id_green.svg +6 -0
  6. package/dist/assets/canvas-masks/id_white.svg +6 -0
  7. package/dist/assets/complete.svg +4 -0
  8. package/dist/assets/landing/device.svg +14 -0
  9. package/dist/assets/landing/id.svg +3 -0
  10. package/dist/assets/landing/info.svg +3 -0
  11. package/dist/assets/landing/validation.svg +16 -0
  12. package/dist/assets/ml5-preload.png +0 -0
  13. package/dist/cjs/agreement-check_17.cjs.entry.js +9549 -0
  14. package/dist/cjs/index-79f82518.js +1568 -0
  15. package/dist/cjs/index.cjs.js +2 -0
  16. package/dist/cjs/loader-dots.cjs.entry.js +19 -0
  17. package/dist/cjs/loader.cjs.js +22 -0
  18. package/dist/cjs/qbs-ect-cmp.cjs.js +23 -0
  19. package/dist/collection/assets/canvas-masks/face_green.svg +8 -0
  20. package/dist/collection/assets/canvas-masks/face_white.svg +8 -0
  21. package/dist/collection/assets/canvas-masks/id_green.svg +6 -0
  22. package/dist/collection/assets/canvas-masks/id_white.svg +6 -0
  23. package/dist/collection/assets/complete.svg +4 -0
  24. package/dist/collection/assets/landing/device.svg +14 -0
  25. package/dist/collection/assets/landing/id.svg +3 -0
  26. package/dist/collection/assets/landing/info.svg +3 -0
  27. package/dist/collection/assets/landing/validation.svg +16 -0
  28. package/dist/collection/collection-manifest.json +29 -0
  29. package/dist/collection/components/common/agreement-check/agreement-check.css +0 -0
  30. package/dist/collection/components/common/agreement-check/agreement-check.js +95 -0
  31. package/dist/collection/components/common/capture-error/capture-error.css +0 -0
  32. package/dist/collection/components/common/capture-error/capture-error.js +73 -0
  33. package/dist/collection/components/common/how-to-info/how-to-info.css +0 -0
  34. package/dist/collection/components/common/how-to-info/how-to-info.js +98 -0
  35. package/dist/collection/components/common/id-back-capture/id-back-capture.css +35 -0
  36. package/dist/collection/components/common/id-back-capture/id-back-capture.js +212 -0
  37. package/dist/collection/components/common/id-capture/id-capture.css +35 -0
  38. package/dist/collection/components/common/id-capture/id-capture.js +213 -0
  39. package/dist/collection/components/common/selfie-capture/selfie-capture.css +7 -0
  40. package/dist/collection/components/common/selfie-capture/selfie-capture.js +222 -0
  41. package/dist/collection/components/controls/camera/camera.css +47 -0
  42. package/dist/collection/components/controls/camera/camera.js +309 -0
  43. package/dist/collection/components/controls/loader-dots/loader-dots.css +61 -0
  44. package/dist/collection/components/controls/loader-dots/loader-dots.js +18 -0
  45. package/dist/collection/components/flow/agreement-info/agreement-info.css +0 -0
  46. package/dist/collection/components/flow/agreement-info/agreement-info.js +73 -0
  47. package/dist/collection/components/flow/end-redirect/end-redirect.css +128 -0
  48. package/dist/collection/components/flow/end-redirect/end-redirect.js +26 -0
  49. package/dist/collection/components/flow/error-end/error-end.css +0 -0
  50. package/dist/collection/components/flow/error-end/error-end.js +64 -0
  51. package/dist/collection/components/flow/id-double-side/id-double-side.css +0 -0
  52. package/dist/collection/components/flow/id-double-side/id-double-side.js +284 -0
  53. package/dist/collection/components/flow/id-single-side/id-single-side.css +0 -0
  54. package/dist/collection/components/flow/id-single-side/id-single-side.js +225 -0
  55. package/dist/collection/components/flow/landing-validation/landing-validation.css +0 -0
  56. package/dist/collection/components/flow/landing-validation/landing-validation.js +88 -0
  57. package/dist/collection/components/flow/mobile-redirect/mobile-redirect.css +10 -0
  58. package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +128 -0
  59. package/dist/collection/components/flow/sms-code-validation/sms-code-validation.css +0 -0
  60. package/dist/collection/components/flow/sms-code-validation/sms-code-validation.js +115 -0
  61. package/dist/collection/components/flow/user-liveness/user-liveness.css +0 -0
  62. package/dist/collection/components/flow/user-liveness/user-liveness.js +214 -0
  63. package/dist/collection/components/identification-component/identification-component.css +1043 -0
  64. package/dist/collection/components/identification-component/identification-component.js +355 -0
  65. package/dist/collection/global.js +0 -0
  66. package/dist/collection/helpers/ApiCall.js +113 -0
  67. package/dist/collection/helpers/Cameras.js +98 -0
  68. package/dist/collection/helpers/Events.js +39 -0
  69. package/dist/collection/helpers/ML5.js +35 -0
  70. package/dist/collection/helpers/Stream.js +223 -0
  71. package/dist/collection/helpers/canvas.js +10 -0
  72. package/dist/collection/helpers/index.js +54 -0
  73. package/dist/collection/helpers/security.js +25 -0
  74. package/dist/collection/helpers/store.js +39 -0
  75. package/dist/collection/helpers/textValues.js +128 -0
  76. package/dist/collection/index.js +1 -0
  77. package/dist/collection/libs/FaceML5Detector/FaceML5Detector.js +227 -0
  78. package/dist/collection/libs/FaceML5Detector/FacePose.js +85 -0
  79. package/dist/collection/libs/IDML5Detector/IDML5Detector.js +101 -0
  80. package/dist/collection/libs/IDML5Detector/IDPose.js +8 -0
  81. package/dist/collection/models/FlowStatus.js +12 -0
  82. package/dist/collection/models/IAddRequest.js +1 -0
  83. package/dist/collection/models/IAgreement.js +1 -0
  84. package/dist/collection/models/ICamera.js +1 -0
  85. package/dist/collection/models/IConstraints.js +1 -0
  86. package/dist/collection/models/IDevice.js +1 -0
  87. package/dist/collection/models/IGeneration.js +1 -0
  88. package/dist/collection/models/ILinkSend.js +1 -0
  89. package/dist/collection/models/ILogResult.js +1 -0
  90. package/dist/collection/models/IOrderStatus.js +1 -0
  91. package/dist/collection/models/IOtpCheck.js +1 -0
  92. package/dist/collection/models/IOtpSend.js +1 -0
  93. package/dist/collection/models/IUploadFile.js +1 -0
  94. package/dist/collection/models/OrderStatuses.js +7 -0
  95. package/dist/collection/utils/utils.js +10 -0
  96. package/dist/esm/agreement-check_17.entry.js +9529 -0
  97. package/dist/esm/index-9d69e511.js +1538 -0
  98. package/dist/esm/index.js +1 -0
  99. package/dist/esm/loader-dots.entry.js +15 -0
  100. package/dist/esm/loader.js +18 -0
  101. package/dist/esm/polyfills/core-js.js +11 -0
  102. package/dist/esm/polyfills/css-shim.js +1 -0
  103. package/dist/esm/polyfills/dom.js +79 -0
  104. package/dist/esm/polyfills/es5-html-element.js +1 -0
  105. package/dist/esm/polyfills/index.js +34 -0
  106. package/dist/esm/polyfills/system.js +6 -0
  107. package/dist/esm/qbs-ect-cmp.js +18 -0
  108. package/dist/index.cjs.js +1 -0
  109. package/dist/index.js +1 -0
  110. package/dist/loader/cdn.js +3 -0
  111. package/dist/loader/index.cjs.js +3 -0
  112. package/dist/loader/index.d.ts +21 -0
  113. package/dist/loader/index.es2017.js +3 -0
  114. package/dist/loader/index.js +4 -0
  115. package/dist/loader/package.json +11 -0
  116. package/dist/qbs-ect-cmp/index.esm.js +0 -0
  117. package/dist/qbs-ect-cmp/p-06e42b28.js +2 -0
  118. package/dist/qbs-ect-cmp/p-4c8e922b.entry.js +1 -0
  119. package/dist/qbs-ect-cmp/p-b65cc797.entry.js +1373 -0
  120. package/dist/qbs-ect-cmp/qbs-ect-cmp.css +1 -0
  121. package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -0
  122. package/dist/types/components/common/agreement-check/agreement-check.d.ts +12 -0
  123. package/dist/types/components/common/capture-error/capture-error.d.ts +10 -0
  124. package/dist/types/components/common/how-to-info/how-to-info.d.ts +12 -0
  125. package/dist/types/components/common/id-back-capture/id-back-capture.d.ts +28 -0
  126. package/dist/types/components/common/id-capture/id-capture.d.ts +28 -0
  127. package/dist/types/components/common/selfie-capture/selfie-capture.d.ts +30 -0
  128. package/dist/types/components/controls/camera/camera.d.ts +33 -0
  129. package/dist/types/components/controls/loader-dots/loader-dots.d.ts +3 -0
  130. package/dist/types/components/flow/agreement-info/agreement-info.d.ts +13 -0
  131. package/dist/types/components/flow/end-redirect/end-redirect.d.ts +4 -0
  132. package/dist/types/components/flow/error-end/error-end.d.ts +6 -0
  133. package/dist/types/components/flow/id-double-side/id-double-side.d.ts +27 -0
  134. package/dist/types/components/flow/id-single-side/id-single-side.d.ts +23 -0
  135. package/dist/types/components/flow/landing-validation/landing-validation.d.ts +10 -0
  136. package/dist/types/components/flow/mobile-redirect/mobile-redirect.d.ts +22 -0
  137. package/dist/types/components/flow/sms-code-validation/sms-code-validation.d.ts +16 -0
  138. package/dist/types/components/flow/user-liveness/user-liveness.d.ts +22 -0
  139. package/dist/types/components/identification-component/identification-component.d.ts +24 -0
  140. package/dist/types/components.d.ts +370 -0
  141. package/dist/types/global.d.ts +0 -0
  142. package/dist/types/helpers/ApiCall.d.ts +19 -0
  143. package/dist/types/helpers/Cameras.d.ts +8 -0
  144. package/dist/types/helpers/Events.d.ts +8 -0
  145. package/dist/types/helpers/ML5.d.ts +10 -0
  146. package/dist/types/helpers/Stream.d.ts +70 -0
  147. package/dist/types/helpers/canvas.d.ts +2 -0
  148. package/dist/types/helpers/index.d.ts +4 -0
  149. package/dist/types/helpers/security.d.ts +4 -0
  150. package/dist/types/helpers/store.d.ts +16 -0
  151. package/dist/types/helpers/textValues.d.ts +107 -0
  152. package/dist/types/index.d.ts +1 -0
  153. package/dist/types/libs/FaceML5Detector/FaceML5Detector.d.ts +40 -0
  154. package/dist/types/libs/FaceML5Detector/FacePose.d.ts +36 -0
  155. package/dist/types/libs/IDML5Detector/IDML5Detector.d.ts +22 -0
  156. package/dist/types/libs/IDML5Detector/IDPose.d.ts +7 -0
  157. package/dist/types/models/FlowStatus.d.ts +11 -0
  158. package/dist/types/models/IAddRequest.d.ts +6 -0
  159. package/dist/types/models/IAgreement.d.ts +3 -0
  160. package/dist/types/models/ICamera.d.ts +10 -0
  161. package/dist/types/models/IConstraints.d.ts +21 -0
  162. package/dist/types/models/IDevice.d.ts +11 -0
  163. package/dist/types/models/IGeneration.d.ts +3 -0
  164. package/dist/types/models/ILinkSend.d.ts +3 -0
  165. package/dist/types/models/ILogResult.d.ts +3 -0
  166. package/dist/types/models/IOrderStatus.d.ts +4 -0
  167. package/dist/types/models/IOtpCheck.d.ts +3 -0
  168. package/dist/types/models/IOtpSend.d.ts +3 -0
  169. package/dist/types/models/IUploadFile.d.ts +4 -0
  170. package/dist/types/models/OrderStatuses.d.ts +6 -0
  171. package/dist/types/stencil-public-runtime.d.ts +1637 -0
  172. package/dist/types/utils/utils.d.ts +2 -0
  173. package/package.json +52 -0
@@ -0,0 +1,47 @@
1
+ .camera {
2
+ width: 100%;
3
+ height: 100%;
4
+ color: white;
5
+ display: flex;
6
+ align-items: center;
7
+ justify-content: center;
8
+ position: relative;
9
+ }
10
+
11
+ .cameraCanvas,
12
+ .cameraCanvasSelfie,
13
+ .cameraCanvasSelfieDesk {
14
+ z-index: 3;
15
+ max-width: 100%;
16
+ max-height: 100%;
17
+ border-radius: 10px;
18
+ }
19
+
20
+ .cameraCanvasSelfie,
21
+ .cameraCanvasSelfieDesk {
22
+ transform: scale(-1, 1);
23
+ -webkit-transform: scale(-1, 1);
24
+ }
25
+
26
+ .cameraVideo,
27
+ .cameraVideoSelfie,
28
+ .cameraVideoSelfieDesk {
29
+ z-index: 2;
30
+ position: absolute;
31
+ max-width: 100%;
32
+ max-height: 100%;
33
+ border-radius: 10px;
34
+ }
35
+
36
+ .cameraVideoSelfie,
37
+ .cameraVideoSelfieDesk {
38
+ transform: scale(-1, 1);
39
+ -webkit-transform: scale(-1, 1);
40
+ }
41
+
42
+ .cameraMobile {
43
+ position: fixed;
44
+ top: 0;
45
+ left: 0;
46
+ background: black;
47
+ }
@@ -0,0 +1,309 @@
1
+ import { Stream } from '../../../helpers/Stream';
2
+ import { h } from '@stencil/core';
3
+ // import { PipelineResult } from '../../../libs/FaceDetector/PipelineResult';
4
+ export class Camera {
5
+ constructor() {
6
+ this.callbackErrors = (error, isError) => {
7
+ if (isError) {
8
+ this.errorCameraEvent.emit(error);
9
+ this.eventCloseCamera.emit();
10
+ }
11
+ else {
12
+ this.errorCameraEvent.emit(error);
13
+ }
14
+ };
15
+ this.callbackAutoCapturing = () => {
16
+ this.eventTakePhoto.emit();
17
+ };
18
+ // callbackFaceDetectionErrors = (e: PipelineResult) => {
19
+ // Events.detectionError(e);
20
+ // };
21
+ this.callbackSelfieRecordingReady = (recording) => {
22
+ this.eventRecordingSelfieReady.emit(recording);
23
+ };
24
+ this.callbackIdRecordingReady = (recording) => {
25
+ this.eventRecordingIdReady.emit(recording);
26
+ };
27
+ this.callbackTimeElapsed = () => {
28
+ this.eventTimeElapsed.emit();
29
+ };
30
+ this.callbackChangeTitle = (message) => {
31
+ this.eventChangeTitle.emit(message);
32
+ };
33
+ this.callbackVideoStarted = () => {
34
+ this.eventVideoStarted.emit(this.component.getBoundingClientRect());
35
+ };
36
+ this.callbackVerificationFinished = () => {
37
+ this.verificationFinished.emit();
38
+ };
39
+ this.modelPath = undefined;
40
+ this.device = undefined;
41
+ this.probabilityThreshold = undefined;
42
+ this.captureMode = undefined;
43
+ }
44
+ componentDidLoad() {
45
+ this.startStream();
46
+ }
47
+ render() {
48
+ let cameraVideoClass = 'cameraVideo';
49
+ let cameraCanvasClass = 'cameraCanvas';
50
+ if (this.device.isWin) {
51
+ cameraVideoClass = 'cameraVideoSelfieDesk';
52
+ cameraCanvasClass = 'cameraCanvasSelfieDesk';
53
+ }
54
+ if (this.captureMode == 'selfie') {
55
+ cameraVideoClass = 'cameraVideoSelfie';
56
+ cameraCanvasClass = 'cameraCanvasSelfie';
57
+ }
58
+ 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) })));
59
+ }
60
+ startStream() {
61
+ if (!Stream.instance)
62
+ Stream.getInstance(this.device, this.modelPath);
63
+ const stream = Stream.getInstance();
64
+ stream.updateHtmlElements(this.cameraVideo, this.cameraCanvas, this.component);
65
+ if (this.captureMode == 'selfie') {
66
+ stream.setFaceDetection(true);
67
+ stream.setCallbackRecordingReady(this.callbackSelfieRecordingReady);
68
+ // stream.setShowMask(true);
69
+ // stream.setProbabilityThreshold(this.probabilityThreshold);
70
+ // stream.setCallbackFaceDetectionErrors(this.callbackFaceDetectionErrors);
71
+ }
72
+ else {
73
+ stream.setIdDetection(true);
74
+ stream.setCallbackRecordingReady(this.callbackIdRecordingReady);
75
+ // stream.setShowMask(false);
76
+ }
77
+ stream.setCallbackErrors(this.callbackErrors);
78
+ stream.setCallbackAutoCapturing(this.callbackAutoCapturing);
79
+ stream.setCallbackChangeTitle(this.callbackChangeTitle);
80
+ stream.setCallbackVideoStarted(this.callbackVideoStarted);
81
+ stream.setCallbackTimeElapsed(this.callbackTimeElapsed);
82
+ stream.setVerificationFinished(this.callbackVerificationFinished);
83
+ }
84
+ static get is() { return "camera-comp"; }
85
+ static get originalStyleUrls() {
86
+ return {
87
+ "$": ["camera.css"]
88
+ };
89
+ }
90
+ static get styleUrls() {
91
+ return {
92
+ "$": ["camera.css"]
93
+ };
94
+ }
95
+ static get properties() {
96
+ return {
97
+ "modelPath": {
98
+ "type": "string",
99
+ "mutable": false,
100
+ "complexType": {
101
+ "original": "string",
102
+ "resolved": "string",
103
+ "references": {}
104
+ },
105
+ "required": false,
106
+ "optional": false,
107
+ "docs": {
108
+ "tags": [],
109
+ "text": ""
110
+ },
111
+ "attribute": "model-path",
112
+ "reflect": false
113
+ },
114
+ "device": {
115
+ "type": "unknown",
116
+ "mutable": false,
117
+ "complexType": {
118
+ "original": "Device",
119
+ "resolved": "Device",
120
+ "references": {
121
+ "Device": {
122
+ "location": "import",
123
+ "path": "../../../models/IDevice"
124
+ }
125
+ }
126
+ },
127
+ "required": false,
128
+ "optional": false,
129
+ "docs": {
130
+ "tags": [],
131
+ "text": ""
132
+ }
133
+ },
134
+ "probabilityThreshold": {
135
+ "type": "number",
136
+ "mutable": false,
137
+ "complexType": {
138
+ "original": "number",
139
+ "resolved": "number",
140
+ "references": {}
141
+ },
142
+ "required": false,
143
+ "optional": false,
144
+ "docs": {
145
+ "tags": [],
146
+ "text": ""
147
+ },
148
+ "attribute": "probability-threshold",
149
+ "reflect": false
150
+ },
151
+ "captureMode": {
152
+ "type": "string",
153
+ "mutable": false,
154
+ "complexType": {
155
+ "original": "string",
156
+ "resolved": "string",
157
+ "references": {}
158
+ },
159
+ "required": false,
160
+ "optional": false,
161
+ "docs": {
162
+ "tags": [],
163
+ "text": ""
164
+ },
165
+ "attribute": "capture-mode",
166
+ "reflect": false
167
+ }
168
+ };
169
+ }
170
+ static get events() {
171
+ return [{
172
+ "method": "eventVideoStarted",
173
+ "name": "videoStarted",
174
+ "bubbles": true,
175
+ "cancelable": true,
176
+ "composed": true,
177
+ "docs": {
178
+ "tags": [],
179
+ "text": ""
180
+ },
181
+ "complexType": {
182
+ "original": "any",
183
+ "resolved": "any",
184
+ "references": {}
185
+ }
186
+ }, {
187
+ "method": "eventCloseCamera",
188
+ "name": "closeCamera",
189
+ "bubbles": true,
190
+ "cancelable": true,
191
+ "composed": true,
192
+ "docs": {
193
+ "tags": [],
194
+ "text": ""
195
+ },
196
+ "complexType": {
197
+ "original": "any",
198
+ "resolved": "any",
199
+ "references": {}
200
+ }
201
+ }, {
202
+ "method": "errorCameraEvent",
203
+ "name": "errorCamera",
204
+ "bubbles": true,
205
+ "cancelable": true,
206
+ "composed": true,
207
+ "docs": {
208
+ "tags": [],
209
+ "text": ""
210
+ },
211
+ "complexType": {
212
+ "original": "any",
213
+ "resolved": "any",
214
+ "references": {}
215
+ }
216
+ }, {
217
+ "method": "eventTakePhoto",
218
+ "name": "takePhoto",
219
+ "bubbles": true,
220
+ "cancelable": true,
221
+ "composed": true,
222
+ "docs": {
223
+ "tags": [],
224
+ "text": ""
225
+ },
226
+ "complexType": {
227
+ "original": "any",
228
+ "resolved": "any",
229
+ "references": {}
230
+ }
231
+ }, {
232
+ "method": "eventRecordingSelfieReady",
233
+ "name": "recordingSelfieCapture",
234
+ "bubbles": true,
235
+ "cancelable": true,
236
+ "composed": true,
237
+ "docs": {
238
+ "tags": [],
239
+ "text": ""
240
+ },
241
+ "complexType": {
242
+ "original": "any",
243
+ "resolved": "any",
244
+ "references": {}
245
+ }
246
+ }, {
247
+ "method": "eventRecordingIdReady",
248
+ "name": "recordingIdCapture",
249
+ "bubbles": true,
250
+ "cancelable": true,
251
+ "composed": true,
252
+ "docs": {
253
+ "tags": [],
254
+ "text": ""
255
+ },
256
+ "complexType": {
257
+ "original": "any",
258
+ "resolved": "any",
259
+ "references": {}
260
+ }
261
+ }, {
262
+ "method": "eventTimeElapsed",
263
+ "name": "timeElapsed",
264
+ "bubbles": true,
265
+ "cancelable": true,
266
+ "composed": true,
267
+ "docs": {
268
+ "tags": [],
269
+ "text": ""
270
+ },
271
+ "complexType": {
272
+ "original": "any",
273
+ "resolved": "any",
274
+ "references": {}
275
+ }
276
+ }, {
277
+ "method": "eventChangeTitle",
278
+ "name": "changeTitle",
279
+ "bubbles": true,
280
+ "cancelable": true,
281
+ "composed": true,
282
+ "docs": {
283
+ "tags": [],
284
+ "text": ""
285
+ },
286
+ "complexType": {
287
+ "original": "any",
288
+ "resolved": "any",
289
+ "references": {}
290
+ }
291
+ }, {
292
+ "method": "verificationFinished",
293
+ "name": "verificationFinished",
294
+ "bubbles": true,
295
+ "cancelable": true,
296
+ "composed": true,
297
+ "docs": {
298
+ "tags": [],
299
+ "text": ""
300
+ },
301
+ "complexType": {
302
+ "original": "any",
303
+ "resolved": "any",
304
+ "references": {}
305
+ }
306
+ }];
307
+ }
308
+ static get elementRef() { return "component"; }
309
+ }
@@ -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, #1FEAA6 90%, rgba(0, 0, 0, 0)), radial-gradient(closest-side, #1FEAA6 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, #1FEAA6 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,73 @@
1
+ import { h } from '@stencil/core';
2
+ import store from '../../../helpers/store';
3
+ import { AgreementInfoValues } from '../../../helpers/textValues';
4
+ import { FlowStatus } from '../../../models/FlowStatus';
5
+ export class AgreementInfo {
6
+ constructor() {
7
+ this.agreementsChecked = undefined;
8
+ this.termsChecked = undefined;
9
+ this.openAgreements = undefined;
10
+ this.openTerms = undefined;
11
+ this.agreementsChecked = false;
12
+ this.termsChecked = false;
13
+ }
14
+ componentWillLoad() {
15
+ this.openAgreements = false;
16
+ this.openTerms = false;
17
+ }
18
+ buttonClick() {
19
+ if (this.agreementsChecked && this.termsChecked) {
20
+ store.flowStatus = FlowStatus.PHONE;
21
+ }
22
+ }
23
+ agreementAcceptanceEmitted(data) {
24
+ if (data.detail.agreementType == 'agreement') {
25
+ this.agreementsChecked = data.detail.result;
26
+ this.openAgreements = false;
27
+ }
28
+ if (data.detail.agreementType == 'terms') {
29
+ this.termsChecked = data.detail.result;
30
+ this.openTerms = false;
31
+ }
32
+ }
33
+ agreementsClicked() {
34
+ this.openAgreements = true;
35
+ }
36
+ termsClicked() {
37
+ this.openTerms = true;
38
+ }
39
+ render() {
40
+ let agreementsCheck = h("agreement-check", { agreementType: "agreement" });
41
+ let termsCheck = h("agreement-check", { agreementType: "terms" });
42
+ 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))))));
43
+ return this.openAgreements ? agreementsCheck : this.openTerms ? termsCheck : mainComp;
44
+ }
45
+ static get is() { return "agreement-info"; }
46
+ static get originalStyleUrls() {
47
+ return {
48
+ "$": ["agreement-info.css"]
49
+ };
50
+ }
51
+ static get styleUrls() {
52
+ return {
53
+ "$": ["agreement-info.css"]
54
+ };
55
+ }
56
+ static get states() {
57
+ return {
58
+ "agreementsChecked": {},
59
+ "termsChecked": {},
60
+ "openAgreements": {},
61
+ "openTerms": {}
62
+ };
63
+ }
64
+ static get listeners() {
65
+ return [{
66
+ "name": "agreementAcceptance",
67
+ "method": "agreementAcceptanceEmitted",
68
+ "target": undefined,
69
+ "capture": false,
70
+ "passive": false
71
+ }];
72
+ }
73
+ }
@@ -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,26 @@
1
+ import { h } from '@stencil/core';
2
+ import { CompleteValues } from '../../../helpers/textValues';
3
+ // @ts-ignore
4
+ import completeImg from '../../../assets/complete.svg';
5
+ import store from '../../../helpers/store';
6
+ import Events from '../../../helpers/Events';
7
+ export class EndRedirect {
8
+ componentDidLoad() {
9
+ Events.init(window);
10
+ Events.flowCompleted();
11
+ }
12
+ render() {
13
+ 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", { class: "text-center" }, 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)))));
14
+ }
15
+ static get is() { return "end-redirect"; }
16
+ static get originalStyleUrls() {
17
+ return {
18
+ "$": ["end-redirect.css"]
19
+ };
20
+ }
21
+ static get styleUrls() {
22
+ return {
23
+ "$": ["end-redirect.css"]
24
+ };
25
+ }
26
+ }