@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.
- package/dist/i18n/en.json +100 -0
- package/dist/i18n/ro.json +100 -0
- package/dist/i18n/ru.json +100 -0
- package/dist/{collection/helpers/Cameras.js → qbs-ect-cmp/Cameras-dfbebc29.js} +9 -6
- package/dist/{collection/models/CaptureFlow.js → qbs-ect-cmp/CaptureFlow-db5d90a4.js} +6 -4
- package/dist/{collection/libs/IDML5Detector/IDPose.js → qbs-ect-cmp/IDPose-181bcb25.js} +4 -2
- package/dist/{collection/models/IDevice.js → qbs-ect-cmp/IDevice-15ecfdeb.js} +6 -4
- package/dist/qbs-ect-cmp/ML5-657ef934.js +1370 -0
- package/dist/qbs-ect-cmp/Stream-b867a2be.js +3104 -0
- package/dist/qbs-ect-cmp/_commonjsHelpers-321aa363.js +44 -0
- package/dist/qbs-ect-cmp/agreement-check.entry.js +41 -0
- package/dist/qbs-ect-cmp/agreement-info.entry.js +66 -0
- package/dist/qbs-ect-cmp/app-globals-0f993ce5.js +3 -0
- package/dist/qbs-ect-cmp/base-component-2e490fd9.js +502 -0
- package/dist/qbs-ect-cmp/camera-comp.entry.js +103 -0
- package/dist/qbs-ect-cmp/camera-error.entry.js +59 -0
- package/dist/qbs-ect-cmp/capture-error.entry.js +53 -0
- package/dist/qbs-ect-cmp/css-shim-b7d3d95f.js +4 -0
- package/dist/qbs-ect-cmp/dom-64053c71.js +73 -0
- package/dist/qbs-ect-cmp/end-redirect.entry.js +25 -0
- package/dist/qbs-ect-cmp/error-end.entry.js +19 -0
- package/dist/qbs-ect-cmp/how-to-info.entry.js +52 -0
- package/dist/{collection/components/common/id-back-capture/id-back-capture.js → qbs-ect-cmp/id-back-capture.entry.js} +30 -100
- package/dist/{collection/components/common/id-capture/id-capture.js → qbs-ect-cmp/id-capture.entry.js} +28 -98
- package/dist/{collection/components/common/id-tilt/id-tilt.js → qbs-ect-cmp/id-tilt.entry.js} +28 -98
- package/dist/qbs-ect-cmp/identification-component.entry.js +909 -0
- package/dist/qbs-ect-cmp/index-78a05b9e.js +3371 -0
- package/dist/qbs-ect-cmp/index.esm.js +1 -0
- package/dist/qbs-ect-cmp/landing-validation.entry.js +90 -0
- package/dist/{esm → qbs-ect-cmp}/loader-dots.entry.js +1 -1
- package/dist/qbs-ect-cmp/mobile-redirect.entry.js +2984 -0
- package/dist/{collection/components/flow/process-id/process-id.js → qbs-ect-cmp/process-id.entry.js} +32 -100
- package/dist/qbs-ect-cmp/qbs-ect-cmp.css +320 -1
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +148 -1
- package/dist/{esm → qbs-ect-cmp}/random-actions.entry.js +6 -3
- package/dist/{collection/components/common/selfie-capture/selfie-capture.js → qbs-ect-cmp/selfie-capture.entry.js} +28 -99
- package/dist/{collection/components/common/selfie-tilt/selfie-tilt.js → qbs-ect-cmp/selfie-tilt.entry.js} +29 -99
- package/dist/qbs-ect-cmp/shadow-css-98135883.js +387 -0
- package/dist/qbs-ect-cmp/sms-code-validation.entry.js +106 -0
- package/dist/{esm/store-fdeed827.js → qbs-ect-cmp/textValues-6bcc85dd.js} +51 -147
- package/dist/{collection/components/flow/user-liveness/user-liveness.js → qbs-ect-cmp/user-liveness.entry.js} +30 -91
- package/dist/{collection/utils/utils.js → qbs-ect-cmp/utils-8225f0b7.js} +10 -8
- package/dist/types/components/base-component.d.ts +2 -0
- package/dist/types/components/common/agreement-check/agreement-check.d.ts +1 -0
- package/dist/types/components/common/random-actions/random-actions.d.ts +2 -0
- package/dist/types/components/flow/end-redirect/end-redirect.d.ts +1 -0
- package/dist/types/components/identification-component/identification-component.d.ts +1 -0
- package/dist/types/components.d.ts +2 -0
- package/dist/types/helpers/TranslationUtils.d.ts +9 -0
- package/dist/types/helpers/textValues.d.ts +8 -95
- package/dist/types/models/IEctStore.d.ts +1 -0
- package/dist/types/models/ITranslationValues.d.ts +101 -0
- package/package.json +1 -1
- package/dist/cjs/agreement-check_19.cjs.entry.js +0 -10012
- package/dist/cjs/index-41696e0e.js +0 -1573
- package/dist/cjs/index.cjs.js +0 -2
- package/dist/cjs/loader-dots.cjs.entry.js +0 -19
- package/dist/cjs/loader.cjs.js +0 -22
- package/dist/cjs/qbs-ect-cmp.cjs.js +0 -23
- package/dist/cjs/random-actions.cjs.entry.js +0 -22
- package/dist/cjs/store-f1a0f55c.js +0 -413
- package/dist/collection/assets/canvas-masks/face_green.svg +0 -8
- package/dist/collection/assets/canvas-masks/face_white.svg +0 -8
- package/dist/collection/assets/canvas-masks/id_green.svg +0 -6
- package/dist/collection/assets/canvas-masks/id_white.svg +0 -6
- package/dist/collection/assets/complete.svg +0 -4
- package/dist/collection/assets/landing/device.svg +0 -14
- package/dist/collection/assets/landing/id.svg +0 -3
- package/dist/collection/assets/landing/info.svg +0 -3
- package/dist/collection/assets/landing/validation.svg +0 -16
- package/dist/collection/assets/loader.svg +0 -29
- package/dist/collection/collection-manifest.json +0 -32
- package/dist/collection/components/base-component.js +0 -59
- package/dist/collection/components/common/agreement-check/agreement-check.css +0 -0
- package/dist/collection/components/common/agreement-check/agreement-check.js +0 -101
- package/dist/collection/components/common/camera-error/camera-error.css +0 -0
- package/dist/collection/components/common/camera-error/camera-error.js +0 -91
- package/dist/collection/components/common/capture-error/capture-error.css +0 -0
- package/dist/collection/components/common/capture-error/capture-error.js +0 -101
- package/dist/collection/components/common/how-to-info/how-to-info.css +0 -0
- package/dist/collection/components/common/how-to-info/how-to-info.js +0 -122
- package/dist/collection/components/common/id-back-capture/id-back-capture.css +0 -35
- package/dist/collection/components/common/id-capture/id-capture.css +0 -35
- package/dist/collection/components/common/id-tilt/id-tilt.css +0 -35
- package/dist/collection/components/common/random-actions/random-actions.css +0 -0
- package/dist/collection/components/common/random-actions/random-actions.js +0 -20
- package/dist/collection/components/common/selfie-capture/selfie-capture.css +0 -7
- package/dist/collection/components/common/selfie-tilt/selfie-tilt.css +0 -7
- package/dist/collection/components/controls/camera/camera.css +0 -47
- package/dist/collection/components/controls/camera/camera.js +0 -289
- package/dist/collection/components/controls/loader-dots/loader-dots.css +0 -61
- package/dist/collection/components/controls/loader-dots/loader-dots.js +0 -18
- package/dist/collection/components/flow/agreement-info/agreement-info.css +0 -0
- package/dist/collection/components/flow/agreement-info/agreement-info.js +0 -106
- package/dist/collection/components/flow/end-redirect/end-redirect.css +0 -128
- package/dist/collection/components/flow/end-redirect/end-redirect.js +0 -44
- package/dist/collection/components/flow/error-end/error-end.css +0 -0
- package/dist/collection/components/flow/error-end/error-end.js +0 -61
- package/dist/collection/components/flow/landing-validation/landing-validation.css +0 -0
- package/dist/collection/components/flow/landing-validation/landing-validation.js +0 -122
- package/dist/collection/components/flow/mobile-redirect/mobile-redirect.css +0 -10
- package/dist/collection/components/flow/mobile-redirect/mobile-redirect.js +0 -144
- package/dist/collection/components/flow/process-id/process-id.css +0 -0
- package/dist/collection/components/flow/sms-code-validation/sms-code-validation.css +0 -0
- package/dist/collection/components/flow/sms-code-validation/sms-code-validation.js +0 -140
- package/dist/collection/components/flow/user-liveness/user-liveness.css +0 -0
- package/dist/collection/components/identification-component/identification-component.css +0 -991
- package/dist/collection/components/identification-component/identification-component.js +0 -387
- package/dist/collection/global.js +0 -0
- package/dist/collection/helpers/ApiCall.js +0 -223
- package/dist/collection/helpers/DeviceDetection.js +0 -85
- package/dist/collection/helpers/Events.js +0 -58
- package/dist/collection/helpers/ML5.js +0 -38
- package/dist/collection/helpers/Stream.js +0 -229
- package/dist/collection/helpers/canvas.js +0 -10
- package/dist/collection/helpers/index.js +0 -21
- package/dist/collection/helpers/security.js +0 -25
- package/dist/collection/helpers/store.js +0 -47
- package/dist/collection/helpers/textValues.js +0 -145
- package/dist/collection/index.js +0 -1
- package/dist/collection/libs/FaceML5Detector/FaceML5Detector.js +0 -229
- package/dist/collection/libs/FaceML5Detector/FacePose.js +0 -85
- package/dist/collection/libs/IDML5Detector/IDML5Detector.js +0 -99
- package/dist/collection/models/FlowStatus.js +0 -14
- package/dist/collection/models/FlowSteps.js +0 -30
- package/dist/collection/models/IAbortResult.js +0 -1
- package/dist/collection/models/IAddRequest.js +0 -1
- package/dist/collection/models/IAgreement.js +0 -1
- package/dist/collection/models/ICamera.js +0 -1
- package/dist/collection/models/IEctStore.js +0 -1
- package/dist/collection/models/IGeneration.js +0 -1
- package/dist/collection/models/ILinkSend.js +0 -1
- package/dist/collection/models/ILogResult.js +0 -1
- package/dist/collection/models/IOrderStatus.js +0 -1
- package/dist/collection/models/IOtpCheck.js +0 -1
- package/dist/collection/models/IOtpSend.js +0 -1
- package/dist/collection/models/IUploadFile.js +0 -1
- package/dist/collection/models/IVerificationMode.js +0 -5
- package/dist/collection/models/OrderStatuses.js +0 -8
- package/dist/esm/agreement-check_19.entry.js +0 -9990
- package/dist/esm/index-cf54a432.js +0 -1543
- package/dist/esm/index.js +0 -1
- package/dist/esm/loader.js +0 -18
- package/dist/esm/polyfills/core-js.js +0 -11
- package/dist/esm/polyfills/css-shim.js +0 -1
- package/dist/esm/polyfills/dom.js +0 -79
- package/dist/esm/polyfills/es5-html-element.js +0 -1
- package/dist/esm/polyfills/index.js +0 -34
- package/dist/esm/polyfills/system.js +0 -6
- package/dist/esm/qbs-ect-cmp.js +0 -18
- package/dist/index.cjs.js +0 -1
- package/dist/index.js +0 -1
- package/dist/loader/cdn.js +0 -3
- package/dist/loader/index.cjs.js +0 -3
- package/dist/loader/index.d.ts +0 -21
- package/dist/loader/index.es2017.js +0 -3
- package/dist/loader/index.js +0 -4
- package/dist/loader/package.json +0 -11
- package/dist/qbs-ect-cmp/p-054dc5b3.entry.js +0 -1
- package/dist/qbs-ect-cmp/p-0b381be5.js +0 -1
- package/dist/qbs-ect-cmp/p-4ef6223b.entry.js +0 -1373
- package/dist/qbs-ect-cmp/p-6be3b9ca.entry.js +0 -1
- package/dist/qbs-ect-cmp/p-8942656c.js +0 -2
|
@@ -1,47 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,289 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,61 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
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
|
-
}
|
|
File without changes
|
|
@@ -1,106 +0,0 @@
|
|
|
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
|
-
import { FlowSteps } from '../../../models/FlowSteps';
|
|
6
|
-
import { BaseComponent } from '../../base-component';
|
|
7
|
-
export class AgreementInfo {
|
|
8
|
-
constructor() {
|
|
9
|
-
this.agreementsChecked = undefined;
|
|
10
|
-
this.termsChecked = undefined;
|
|
11
|
-
this.openAgreements = undefined;
|
|
12
|
-
this.openTerms = undefined;
|
|
13
|
-
this.baseComponent = new BaseComponent(FlowSteps.Agreements);
|
|
14
|
-
this.baseComponent.setEventEmitter(this.apiErrorEvent);
|
|
15
|
-
this.agreementsChecked = false;
|
|
16
|
-
this.termsChecked = false;
|
|
17
|
-
}
|
|
18
|
-
async componentDidLoad() {
|
|
19
|
-
await this.baseComponent.initialize();
|
|
20
|
-
}
|
|
21
|
-
componentWillLoad() {
|
|
22
|
-
this.openAgreements = false;
|
|
23
|
-
this.openTerms = false;
|
|
24
|
-
}
|
|
25
|
-
async disconnectedCallback() {
|
|
26
|
-
await this.baseComponent.finalize();
|
|
27
|
-
}
|
|
28
|
-
async buttonClick() {
|
|
29
|
-
if (this.agreementsChecked && this.termsChecked) {
|
|
30
|
-
if (store.phoneValidation) {
|
|
31
|
-
store.flowStatus = FlowStatus.PHONE;
|
|
32
|
-
}
|
|
33
|
-
else {
|
|
34
|
-
store.flowStatus = FlowStatus.ID;
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
agreementAcceptanceEmitted(data) {
|
|
39
|
-
if (data.detail.agreementType == 'agreement') {
|
|
40
|
-
this.agreementsChecked = data.detail.result;
|
|
41
|
-
this.openAgreements = false;
|
|
42
|
-
}
|
|
43
|
-
if (data.detail.agreementType == 'terms') {
|
|
44
|
-
this.termsChecked = data.detail.result;
|
|
45
|
-
this.openTerms = false;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
agreementsClicked() {
|
|
49
|
-
this.openAgreements = true;
|
|
50
|
-
}
|
|
51
|
-
termsClicked() {
|
|
52
|
-
this.openTerms = true;
|
|
53
|
-
}
|
|
54
|
-
render() {
|
|
55
|
-
let agreementsCheck = h("agreement-check", { agreementType: "agreement" });
|
|
56
|
-
let termsCheck = h("agreement-check", { agreementType: "terms" });
|
|
57
|
-
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))))));
|
|
58
|
-
return this.openAgreements ? agreementsCheck : this.openTerms ? termsCheck : mainComp;
|
|
59
|
-
}
|
|
60
|
-
static get is() { return "agreement-info"; }
|
|
61
|
-
static get originalStyleUrls() {
|
|
62
|
-
return {
|
|
63
|
-
"$": ["agreement-info.css"]
|
|
64
|
-
};
|
|
65
|
-
}
|
|
66
|
-
static get styleUrls() {
|
|
67
|
-
return {
|
|
68
|
-
"$": ["agreement-info.css"]
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
static get states() {
|
|
72
|
-
return {
|
|
73
|
-
"agreementsChecked": {},
|
|
74
|
-
"termsChecked": {},
|
|
75
|
-
"openAgreements": {},
|
|
76
|
-
"openTerms": {}
|
|
77
|
-
};
|
|
78
|
-
}
|
|
79
|
-
static get events() {
|
|
80
|
-
return [{
|
|
81
|
-
"method": "apiErrorEvent",
|
|
82
|
-
"name": "apiError",
|
|
83
|
-
"bubbles": true,
|
|
84
|
-
"cancelable": true,
|
|
85
|
-
"composed": true,
|
|
86
|
-
"docs": {
|
|
87
|
-
"tags": [],
|
|
88
|
-
"text": ""
|
|
89
|
-
},
|
|
90
|
-
"complexType": {
|
|
91
|
-
"original": "any",
|
|
92
|
-
"resolved": "any",
|
|
93
|
-
"references": {}
|
|
94
|
-
}
|
|
95
|
-
}];
|
|
96
|
-
}
|
|
97
|
-
static get listeners() {
|
|
98
|
-
return [{
|
|
99
|
-
"name": "agreementAcceptance",
|
|
100
|
-
"method": "agreementAcceptanceEmitted",
|
|
101
|
-
"target": undefined,
|
|
102
|
-
"capture": false,
|
|
103
|
-
"passive": false
|
|
104
|
-
}];
|
|
105
|
-
}
|
|
106
|
-
}
|
|
@@ -1,128 +0,0 @@
|
|
|
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
|
-
}
|