@ekyc_qoobiss/qbs-ect-cmp 3.6.27 → 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 (148) hide show
  1. package/dist/cjs/agreement-check_19.cjs.entry.js +9498 -0
  2. package/dist/cjs/base-component-aa9e52bf.js +832 -0
  3. package/dist/cjs/index-41696e0e.js +1573 -0
  4. package/dist/cjs/index.cjs.js +2 -0
  5. package/dist/cjs/loader-dots.cjs.entry.js +19 -0
  6. package/dist/cjs/loader.cjs.js +22 -0
  7. package/dist/cjs/qbs-ect-cmp.cjs.js +23 -0
  8. package/dist/cjs/random-actions.cjs.entry.js +23 -0
  9. package/dist/collection/assets/canvas-masks/face_green.svg +8 -0
  10. package/dist/collection/assets/canvas-masks/face_white.svg +8 -0
  11. package/dist/collection/assets/canvas-masks/id_green.svg +6 -0
  12. package/dist/collection/assets/canvas-masks/id_white.svg +6 -0
  13. package/dist/collection/assets/complete.svg +4 -0
  14. package/dist/collection/assets/landing/device.svg +14 -0
  15. package/dist/collection/assets/landing/id.svg +3 -0
  16. package/dist/collection/assets/landing/info.svg +3 -0
  17. package/dist/collection/assets/landing/validation.svg +16 -0
  18. package/dist/collection/assets/loader.svg +29 -0
  19. package/dist/collection/collection-manifest.json +32 -0
  20. package/dist/collection/components/base-component.js +63 -0
  21. package/dist/collection/components/common/agreement-check/agreement-check.css +0 -0
  22. package/dist/collection/components/common/agreement-check/agreement-check.js +104 -0
  23. package/dist/collection/components/common/camera-error/camera-error.css +0 -0
  24. package/dist/{qbs-ect-cmp/camera-error.entry.js → collection/components/common/camera-error/camera-error.js} +52 -20
  25. package/dist/collection/components/common/capture-error/capture-error.css +0 -0
  26. package/dist/{qbs-ect-cmp/capture-error.entry.js → collection/components/common/capture-error/capture-error.js} +63 -16
  27. package/dist/collection/components/common/how-to-info/how-to-info.css +0 -0
  28. package/dist/collection/components/common/how-to-info/how-to-info.js +121 -0
  29. package/dist/collection/components/common/id-back-capture/id-back-capture.css +35 -0
  30. package/dist/{qbs-ect-cmp/id-back-capture.entry.js → collection/components/common/id-back-capture/id-back-capture.js} +94 -24
  31. package/dist/collection/components/common/id-capture/id-capture.css +35 -0
  32. package/dist/{qbs-ect-cmp/id-capture.entry.js → collection/components/common/id-capture/id-capture.js} +94 -24
  33. package/dist/collection/components/common/id-tilt/id-tilt.css +35 -0
  34. package/dist/{qbs-ect-cmp/id-tilt.entry.js → collection/components/common/id-tilt/id-tilt.js} +94 -24
  35. package/dist/collection/components/common/random-actions/random-actions.css +0 -0
  36. package/dist/collection/components/common/random-actions/random-actions.js +24 -0
  37. package/dist/collection/components/common/selfie-capture/selfie-capture.css +7 -0
  38. package/dist/{qbs-ect-cmp/selfie-capture.entry.js → collection/components/common/selfie-capture/selfie-capture.js} +95 -24
  39. package/dist/collection/components/common/selfie-tilt/selfie-tilt.css +7 -0
  40. package/dist/{qbs-ect-cmp/selfie-tilt.entry.js → collection/components/common/selfie-tilt/selfie-tilt.js} +95 -24
  41. package/dist/collection/components/controls/camera/camera.css +47 -0
  42. package/dist/collection/components/controls/camera/camera.js +289 -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/{qbs-ect-cmp/agreement-info.entry.js → collection/components/flow/agreement-info/agreement-info.js} +57 -18
  47. package/dist/collection/components/flow/end-redirect/end-redirect.css +128 -0
  48. package/dist/collection/components/flow/end-redirect/end-redirect.js +47 -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 +61 -0
  51. package/dist/collection/components/flow/landing-validation/landing-validation.css +0 -0
  52. package/dist/collection/components/flow/landing-validation/landing-validation.js +122 -0
  53. package/dist/collection/components/flow/mobile-redirect/mobile-redirect.css +10 -0
  54. package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +143 -0
  55. package/dist/collection/components/flow/process-id/process-id.css +0 -0
  56. package/dist/{qbs-ect-cmp/process-id.entry.js → collection/components/flow/process-id/process-id.js} +100 -32
  57. package/dist/collection/components/flow/sms-code-validation/sms-code-validation.css +0 -0
  58. package/dist/{qbs-ect-cmp/sms-code-validation.entry.js → collection/components/flow/sms-code-validation/sms-code-validation.js} +63 -30
  59. package/dist/collection/components/flow/user-liveness/user-liveness.css +0 -0
  60. package/dist/{qbs-ect-cmp/user-liveness.entry.js → collection/components/flow/user-liveness/user-liveness.js} +91 -25
  61. package/dist/collection/components/identification-component/identification-component.css +991 -0
  62. package/dist/collection/components/identification-component/identification-component.js +408 -0
  63. package/dist/collection/global.js +0 -0
  64. package/dist/collection/helpers/ApiCall.js +223 -0
  65. package/dist/{qbs-ect-cmp/Cameras-dfbebc29.js → collection/helpers/Cameras.js} +6 -9
  66. package/dist/collection/helpers/DeviceDetection.js +85 -0
  67. package/dist/collection/helpers/Events.js +58 -0
  68. package/dist/collection/helpers/ML5.js +38 -0
  69. package/dist/collection/helpers/Stream.js +229 -0
  70. package/dist/collection/helpers/TranslationUtils.js +37 -0
  71. package/dist/collection/helpers/canvas.js +10 -0
  72. package/dist/collection/helpers/index.js +21 -0
  73. package/dist/collection/helpers/security.js +25 -0
  74. package/dist/collection/helpers/store.js +48 -0
  75. package/dist/collection/helpers/textValues.js +48 -0
  76. package/dist/collection/index.js +1 -0
  77. package/dist/collection/libs/FaceML5Detector/FaceML5Detector.js +182 -0
  78. package/dist/collection/libs/FaceML5Detector/FacePose.js +85 -0
  79. package/dist/collection/libs/IDML5Detector/IDML5Detector.js +99 -0
  80. package/dist/{qbs-ect-cmp/IDPose-181bcb25.js → collection/libs/IDML5Detector/IDPose.js} +2 -4
  81. package/dist/{qbs-ect-cmp/CaptureFlow-db5d90a4.js → collection/models/CaptureFlow.js} +4 -6
  82. package/dist/collection/models/FlowStatus.js +14 -0
  83. package/dist/collection/models/FlowSteps.js +30 -0
  84. package/dist/collection/models/IAbortResult.js +1 -0
  85. package/dist/collection/models/IAddRequest.js +1 -0
  86. package/dist/collection/models/IAgreement.js +1 -0
  87. package/dist/collection/models/ICamera.js +1 -0
  88. package/dist/{qbs-ect-cmp/IDevice-15ecfdeb.js → collection/models/IDevice.js} +4 -6
  89. package/dist/collection/models/IEctStore.js +1 -0
  90. package/dist/collection/models/IGeneration.js +1 -0
  91. package/dist/collection/models/ILinkSend.js +1 -0
  92. package/dist/collection/models/ILogResult.js +1 -0
  93. package/dist/collection/models/IOrderStatus.js +1 -0
  94. package/dist/collection/models/IOtpCheck.js +1 -0
  95. package/dist/collection/models/IOtpSend.js +1 -0
  96. package/dist/collection/models/ITranslationValues.js +1 -0
  97. package/dist/collection/models/IUploadFile.js +1 -0
  98. package/dist/collection/models/IVerificationMode.js +5 -0
  99. package/dist/collection/models/OrderStatuses.js +8 -0
  100. package/dist/{qbs-ect-cmp/utils-8225f0b7.js → collection/utils/utils.js} +8 -10
  101. package/dist/esm/agreement-check_19.entry.js +9476 -0
  102. package/dist/{qbs-ect-cmp/base-component-2e490fd9.js → esm/base-component-b7f50d31.js} +384 -62
  103. package/dist/esm/index-cf54a432.js +1543 -0
  104. package/dist/esm/index.js +1 -0
  105. package/dist/{qbs-ect-cmp → esm}/loader-dots.entry.js +1 -1
  106. package/dist/esm/loader.js +18 -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 +18 -0
  114. package/dist/{qbs-ect-cmp → esm}/random-actions.entry.js +2 -4
  115. package/dist/index.cjs.js +1 -0
  116. package/dist/index.js +1 -0
  117. package/dist/loader/cdn.js +3 -0
  118. package/dist/loader/index.cjs.js +3 -0
  119. package/dist/loader/index.d.ts +21 -0
  120. package/dist/loader/index.es2017.js +3 -0
  121. package/dist/loader/index.js +4 -0
  122. package/dist/loader/package.json +11 -0
  123. package/dist/qbs-ect-cmp/index.esm.js +0 -1
  124. package/dist/qbs-ect-cmp/p-054dc5b3.entry.js +1 -0
  125. package/dist/qbs-ect-cmp/p-215a7e76.entry.js +1 -0
  126. package/dist/qbs-ect-cmp/p-7bedffaa.js +1 -0
  127. package/dist/qbs-ect-cmp/p-8942656c.js +2 -0
  128. package/dist/qbs-ect-cmp/p-c32a782a.entry.js +1373 -0
  129. package/dist/qbs-ect-cmp/qbs-ect-cmp.css +1 -320
  130. package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -148
  131. package/package.json +1 -1
  132. package/dist/qbs-ect-cmp/ML5-657ef934.js +0 -1370
  133. package/dist/qbs-ect-cmp/Stream-b867a2be.js +0 -3104
  134. package/dist/qbs-ect-cmp/_commonjsHelpers-321aa363.js +0 -44
  135. package/dist/qbs-ect-cmp/agreement-check.entry.js +0 -41
  136. package/dist/qbs-ect-cmp/app-globals-0f993ce5.js +0 -3
  137. package/dist/qbs-ect-cmp/camera-comp.entry.js +0 -103
  138. package/dist/qbs-ect-cmp/css-shim-b7d3d95f.js +0 -4
  139. package/dist/qbs-ect-cmp/dom-64053c71.js +0 -73
  140. package/dist/qbs-ect-cmp/end-redirect.entry.js +0 -25
  141. package/dist/qbs-ect-cmp/error-end.entry.js +0 -19
  142. package/dist/qbs-ect-cmp/how-to-info.entry.js +0 -52
  143. package/dist/qbs-ect-cmp/identification-component.entry.js +0 -909
  144. package/dist/qbs-ect-cmp/index-78a05b9e.js +0 -3371
  145. package/dist/qbs-ect-cmp/landing-validation.entry.js +0 -90
  146. package/dist/qbs-ect-cmp/mobile-redirect.entry.js +0 -2984
  147. package/dist/qbs-ect-cmp/shadow-css-98135883.js +0 -387
  148. package/dist/qbs-ect-cmp/textValues-6bcc85dd.js +0 -302
@@ -0,0 +1,289 @@
1
+ import { Stream } from '../../../helpers/Stream';
2
+ import { h } from '@stencil/core';
3
+ import store from '../../../helpers/store';
4
+ import { VerificationMode } from '../../../models/IVerificationMode';
5
+ // import { PipelineResult } from '../../../libs/FaceDetector/PipelineResult';
6
+ export class Camera {
7
+ constructor() {
8
+ this.callbackErrors = (error, isError) => {
9
+ if (isError) {
10
+ this.errorCameraEvent.emit(error);
11
+ this.eventCloseCamera.emit();
12
+ }
13
+ else {
14
+ this.errorCameraEvent.emit(error);
15
+ }
16
+ };
17
+ this.callbackAutoCapturing = () => {
18
+ this.eventTakePhoto.emit();
19
+ };
20
+ // callbackFaceDetectionErrors = (e: PipelineResult) => {
21
+ // Events.detectionError(e);
22
+ // };
23
+ this.callbackSelfieRecordingReady = (recording) => {
24
+ this.eventRecordingSelfieReady.emit(recording);
25
+ };
26
+ this.callbackIdRecordingReady = (recording) => {
27
+ this.eventRecordingIdReady.emit(recording);
28
+ };
29
+ this.callbackTimeElapsed = () => {
30
+ this.eventTimeElapsed.emit();
31
+ };
32
+ this.callbackChangeTitle = (message) => {
33
+ this.eventChangeTitle.emit(message);
34
+ };
35
+ this.callbackVideoStarted = () => {
36
+ this.eventVideoStarted.emit(this.component.getBoundingClientRect());
37
+ };
38
+ this.callbackVerificationFinished = () => {
39
+ this.verificationFinished.emit();
40
+ };
41
+ this.modelPath = 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 (store.device.isDesktop) {
52
+ cameraVideoClass = 'cameraVideoSelfieDesk';
53
+ cameraCanvasClass = 'cameraCanvasSelfieDesk';
54
+ }
55
+ if (this.captureMode == 'selfie') {
56
+ cameraVideoClass = 'cameraVideoSelfie';
57
+ cameraCanvasClass = 'cameraCanvasSelfie';
58
+ }
59
+ 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) })));
60
+ }
61
+ startStream() {
62
+ var captureMode = this.captureMode == 'tilt' ? VerificationMode.Tilt : VerificationMode.Full;
63
+ const stream = Stream.getInstance(captureMode);
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
+ "probabilityThreshold": {
115
+ "type": "number",
116
+ "mutable": false,
117
+ "complexType": {
118
+ "original": "number",
119
+ "resolved": "number",
120
+ "references": {}
121
+ },
122
+ "required": false,
123
+ "optional": false,
124
+ "docs": {
125
+ "tags": [],
126
+ "text": ""
127
+ },
128
+ "attribute": "probability-threshold",
129
+ "reflect": false
130
+ },
131
+ "captureMode": {
132
+ "type": "string",
133
+ "mutable": false,
134
+ "complexType": {
135
+ "original": "string",
136
+ "resolved": "string",
137
+ "references": {}
138
+ },
139
+ "required": false,
140
+ "optional": false,
141
+ "docs": {
142
+ "tags": [],
143
+ "text": ""
144
+ },
145
+ "attribute": "capture-mode",
146
+ "reflect": false
147
+ }
148
+ };
149
+ }
150
+ static get events() {
151
+ return [{
152
+ "method": "eventVideoStarted",
153
+ "name": "videoStarted",
154
+ "bubbles": true,
155
+ "cancelable": true,
156
+ "composed": true,
157
+ "docs": {
158
+ "tags": [],
159
+ "text": ""
160
+ },
161
+ "complexType": {
162
+ "original": "any",
163
+ "resolved": "any",
164
+ "references": {}
165
+ }
166
+ }, {
167
+ "method": "eventCloseCamera",
168
+ "name": "closeCamera",
169
+ "bubbles": true,
170
+ "cancelable": true,
171
+ "composed": true,
172
+ "docs": {
173
+ "tags": [],
174
+ "text": ""
175
+ },
176
+ "complexType": {
177
+ "original": "any",
178
+ "resolved": "any",
179
+ "references": {}
180
+ }
181
+ }, {
182
+ "method": "errorCameraEvent",
183
+ "name": "errorCamera",
184
+ "bubbles": true,
185
+ "cancelable": true,
186
+ "composed": true,
187
+ "docs": {
188
+ "tags": [],
189
+ "text": ""
190
+ },
191
+ "complexType": {
192
+ "original": "any",
193
+ "resolved": "any",
194
+ "references": {}
195
+ }
196
+ }, {
197
+ "method": "eventTakePhoto",
198
+ "name": "takePhoto",
199
+ "bubbles": true,
200
+ "cancelable": true,
201
+ "composed": true,
202
+ "docs": {
203
+ "tags": [],
204
+ "text": ""
205
+ },
206
+ "complexType": {
207
+ "original": "any",
208
+ "resolved": "any",
209
+ "references": {}
210
+ }
211
+ }, {
212
+ "method": "eventRecordingSelfieReady",
213
+ "name": "recordingSelfieCapture",
214
+ "bubbles": true,
215
+ "cancelable": true,
216
+ "composed": true,
217
+ "docs": {
218
+ "tags": [],
219
+ "text": ""
220
+ },
221
+ "complexType": {
222
+ "original": "any",
223
+ "resolved": "any",
224
+ "references": {}
225
+ }
226
+ }, {
227
+ "method": "eventRecordingIdReady",
228
+ "name": "recordingIdCapture",
229
+ "bubbles": true,
230
+ "cancelable": true,
231
+ "composed": true,
232
+ "docs": {
233
+ "tags": [],
234
+ "text": ""
235
+ },
236
+ "complexType": {
237
+ "original": "any",
238
+ "resolved": "any",
239
+ "references": {}
240
+ }
241
+ }, {
242
+ "method": "eventTimeElapsed",
243
+ "name": "timeElapsed",
244
+ "bubbles": true,
245
+ "cancelable": true,
246
+ "composed": true,
247
+ "docs": {
248
+ "tags": [],
249
+ "text": ""
250
+ },
251
+ "complexType": {
252
+ "original": "any",
253
+ "resolved": "any",
254
+ "references": {}
255
+ }
256
+ }, {
257
+ "method": "eventChangeTitle",
258
+ "name": "changeTitle",
259
+ "bubbles": true,
260
+ "cancelable": true,
261
+ "composed": true,
262
+ "docs": {
263
+ "tags": [],
264
+ "text": ""
265
+ },
266
+ "complexType": {
267
+ "original": "any",
268
+ "resolved": "any",
269
+ "references": {}
270
+ }
271
+ }, {
272
+ "method": "verificationFinished",
273
+ "name": "verificationFinished",
274
+ "bubbles": true,
275
+ "cancelable": true,
276
+ "composed": true,
277
+ "docs": {
278
+ "tags": [],
279
+ "text": ""
280
+ },
281
+ "complexType": {
282
+ "original": "any",
283
+ "resolved": "any",
284
+ "references": {}
285
+ }
286
+ }];
287
+ }
288
+ static get elementRef() { return "component"; }
289
+ }
@@ -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
+ }
@@ -1,14 +1,10 @@
1
- import { r as registerInstance, e as createEvent, h } from './index-78a05b9e.js';
2
- import { s as state, F as FlowStatus } from './textValues-6bcc85dd.js';
3
- import { B as BaseComponent, F as FlowSteps } from './base-component-2e490fd9.js';
4
- import './IDevice-15ecfdeb.js';
5
-
6
- const agreementInfoCss = "";
7
-
8
- const AgreementInfo = class {
9
- constructor(hostRef) {
10
- registerInstance(this, hostRef);
11
- this.apiErrorEvent = createEvent(this, "apiError", 7);
1
+ import { h } from '@stencil/core';
2
+ import store from '../../../helpers/store';
3
+ import { FlowStatus } from '../../../models/FlowStatus';
4
+ import { FlowSteps } from '../../../models/FlowSteps';
5
+ import { BaseComponent } from '../../base-component';
6
+ export class AgreementInfo {
7
+ constructor() {
12
8
  this.agreementsChecked = undefined;
13
9
  this.termsChecked = undefined;
14
10
  this.openAgreements = undefined;
@@ -30,11 +26,11 @@ const AgreementInfo = class {
30
26
  }
31
27
  async buttonClick() {
32
28
  if (this.agreementsChecked && this.termsChecked) {
33
- if (state.phoneValidation) {
34
- state.flowStatus = FlowStatus.PHONE;
29
+ if (store.phoneValidation) {
30
+ store.flowStatus = FlowStatus.PHONE;
35
31
  }
36
32
  else {
37
- state.flowStatus = FlowStatus.ID;
33
+ store.flowStatus = FlowStatus.ID;
38
34
  }
39
35
  }
40
36
  }
@@ -60,7 +56,50 @@ const AgreementInfo = class {
60
56
  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))))));
61
57
  return this.openAgreements ? agreementsCheck : this.openTerms ? termsCheck : mainComp;
62
58
  }
63
- };
64
- AgreementInfo.style = agreementInfoCss;
65
-
66
- export { AgreementInfo as agreement_info };
59
+ static get is() { return "agreement-info"; }
60
+ static get originalStyleUrls() {
61
+ return {
62
+ "$": ["agreement-info.css"]
63
+ };
64
+ }
65
+ static get styleUrls() {
66
+ return {
67
+ "$": ["agreement-info.css"]
68
+ };
69
+ }
70
+ static get states() {
71
+ return {
72
+ "agreementsChecked": {},
73
+ "termsChecked": {},
74
+ "openAgreements": {},
75
+ "openTerms": {}
76
+ };
77
+ }
78
+ static get events() {
79
+ return [{
80
+ "method": "apiErrorEvent",
81
+ "name": "apiError",
82
+ "bubbles": true,
83
+ "cancelable": true,
84
+ "composed": true,
85
+ "docs": {
86
+ "tags": [],
87
+ "text": ""
88
+ },
89
+ "complexType": {
90
+ "original": "any",
91
+ "resolved": "any",
92
+ "references": {}
93
+ }
94
+ }];
95
+ }
96
+ static get listeners() {
97
+ return [{
98
+ "name": "agreementAcceptance",
99
+ "method": "agreementAcceptanceEmitted",
100
+ "target": undefined,
101
+ "capture": false,
102
+ "passive": false
103
+ }];
104
+ }
105
+ }
@@ -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,47 @@
1
+ import { h } from '@stencil/core';
2
+ // @ts-ignore
3
+ import completeImg from '../../../assets/complete.svg';
4
+ import store from '../../../helpers/store';
5
+ import Events from '../../../helpers/Events';
6
+ import { BaseComponent } from '../../base-component';
7
+ import { FlowSteps } from '../../../models/FlowSteps';
8
+ export class EndRedirect {
9
+ constructor() {
10
+ this.baseComponent = new BaseComponent(FlowSteps.End);
11
+ }
12
+ async componentDidLoad() {
13
+ Events.flowCompleted();
14
+ }
15
+ render() {
16
+ 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: completeImg }))))), 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, store.requestId)), h("div", { class: "btn-buletin" }, h("p", { class: "main-text font-size-18 text-center mb-0" }, this.baseComponent.translations.GlobalValues.FooterText)))));
17
+ }
18
+ static get is() { return "end-redirect"; }
19
+ static get originalStyleUrls() {
20
+ return {
21
+ "$": ["end-redirect.css"]
22
+ };
23
+ }
24
+ static get styleUrls() {
25
+ return {
26
+ "$": ["end-redirect.css"]
27
+ };
28
+ }
29
+ static get events() {
30
+ return [{
31
+ "method": "apiErrorEvent",
32
+ "name": "apiError",
33
+ "bubbles": true,
34
+ "cancelable": true,
35
+ "composed": true,
36
+ "docs": {
37
+ "tags": [],
38
+ "text": ""
39
+ },
40
+ "complexType": {
41
+ "original": "any",
42
+ "resolved": "any",
43
+ "references": {}
44
+ }
45
+ }];
46
+ }
47
+ }
@@ -0,0 +1,61 @@
1
+ import { h } from '@stencil/core';
2
+ import store from '../../../helpers/store';
3
+ export class ErrorEnd {
4
+ constructor() {
5
+ this.message = undefined;
6
+ this.errorTitle = undefined;
7
+ }
8
+ componentDidLoad() { }
9
+ render() {
10
+ return (h("div", { class: "container" }, h("div", { class: "row" }, h("div", { class: "text-center" }, h("h1", null, this.errorTitle)), h("div", { class: "text-center" }, h("p", null, store.requestId)), h("div", null, h("p", { class: "color-red font-weight-bold font-size-2 text-center mt-10" }, this.message)))));
11
+ }
12
+ static get is() { return "error-end"; }
13
+ static get originalStyleUrls() {
14
+ return {
15
+ "$": ["error-end.css"]
16
+ };
17
+ }
18
+ static get styleUrls() {
19
+ return {
20
+ "$": ["error-end.css"]
21
+ };
22
+ }
23
+ static get properties() {
24
+ return {
25
+ "message": {
26
+ "type": "string",
27
+ "mutable": false,
28
+ "complexType": {
29
+ "original": "string",
30
+ "resolved": "string",
31
+ "references": {}
32
+ },
33
+ "required": false,
34
+ "optional": false,
35
+ "docs": {
36
+ "tags": [],
37
+ "text": ""
38
+ },
39
+ "attribute": "message",
40
+ "reflect": false
41
+ },
42
+ "errorTitle": {
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": "error-title",
57
+ "reflect": false
58
+ }
59
+ };
60
+ }
61
+ }