@ekyc_qoobiss/qbs-ect-cmp 1.5.21 → 1.5.23

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 (66) hide show
  1. package/README.md +3 -4
  2. package/dist/cjs/agreement-check_12.cjs.entry.js +45 -48
  3. package/dist/cjs/{index-9ebcada7.js → index-be29a2a8.js} +0 -5
  4. package/dist/cjs/loader-dots.cjs.entry.js +1 -1
  5. package/dist/cjs/loader.cjs.js +2 -2
  6. package/dist/cjs/qbs-ect-cmp.cjs.js +2 -2
  7. package/dist/collection/components/id-back-capture/id-back-capture.js +18 -21
  8. package/dist/collection/components/id-capture/id-capture.js +18 -21
  9. package/dist/collection/components/selfie-capture/selfie-capture.js +17 -20
  10. package/dist/esm/agreement-check_12.entry.js +45 -48
  11. package/dist/esm/{index-3fe6775c.js → index-b6e6428d.js} +1 -5
  12. package/dist/esm/loader-dots.entry.js +1 -1
  13. package/dist/esm/loader.js +2 -2
  14. package/dist/esm/qbs-ect-cmp.js +2 -2
  15. package/dist/qbs-ect-cmp/{p-a69bb428.entry.js → p-45a94ee0.entry.js} +1 -1
  16. package/dist/qbs-ect-cmp/p-742256cd.js +2 -0
  17. package/dist/qbs-ect-cmp/{p-d2c3c6ec.entry.js → p-96512201.entry.js} +2 -2
  18. package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
  19. package/dist/types/components/id-back-capture/id-back-capture.d.ts +0 -2
  20. package/dist/types/components/id-capture/id-capture.d.ts +0 -2
  21. package/dist/types/components/selfie-capture/selfie-capture.d.ts +0 -2
  22. package/package.json +1 -1
  23. package/dist/components/ApiCall.js +0 -156
  24. package/dist/components/Cameras.js +0 -100
  25. package/dist/components/agreement-check.d.ts +0 -11
  26. package/dist/components/agreement-check.js +0 -6
  27. package/dist/components/agreement-check2.js +0 -45
  28. package/dist/components/agreement-info.d.ts +0 -11
  29. package/dist/components/agreement-info.js +0 -6
  30. package/dist/components/agreement-info2.js +0 -76
  31. package/dist/components/camera-comp.d.ts +0 -11
  32. package/dist/components/camera-comp.js +0 -6
  33. package/dist/components/camera.js +0 -4609
  34. package/dist/components/capture-error.d.ts +0 -11
  35. package/dist/components/capture-error.js +0 -6
  36. package/dist/components/capture-error2.js +0 -69
  37. package/dist/components/end-redirect.d.ts +0 -11
  38. package/dist/components/end-redirect.js +0 -6
  39. package/dist/components/end-redirect2.js +0 -37
  40. package/dist/components/how-to-info.d.ts +0 -11
  41. package/dist/components/how-to-info.js +0 -6
  42. package/dist/components/how-to-info2.js +0 -92
  43. package/dist/components/id-back-capture.d.ts +0 -11
  44. package/dist/components/id-back-capture.js +0 -6
  45. package/dist/components/id-back-capture2.js +0 -142
  46. package/dist/components/id-capture.d.ts +0 -11
  47. package/dist/components/id-capture.js +0 -6
  48. package/dist/components/id-capture2.js +0 -142
  49. package/dist/components/identification-component.d.ts +0 -11
  50. package/dist/components/identification-component.js +0 -411
  51. package/dist/components/index.d.ts +0 -34
  52. package/dist/components/index.js +0 -14
  53. package/dist/components/landing-validation.d.ts +0 -11
  54. package/dist/components/landing-validation.js +0 -6
  55. package/dist/components/landing-validation2.js +0 -61
  56. package/dist/components/loader-dots.d.ts +0 -11
  57. package/dist/components/loader-dots.js +0 -33
  58. package/dist/components/selfie-capture.d.ts +0 -11
  59. package/dist/components/selfie-capture.js +0 -6
  60. package/dist/components/selfie-capture2.js +0 -140
  61. package/dist/components/sms-code-validation.d.ts +0 -11
  62. package/dist/components/sms-code-validation.js +0 -6
  63. package/dist/components/sms-code-validation2.js +0 -98
  64. package/dist/components/store.js +0 -209
  65. package/dist/components/textValues.js +0 -84
  66. package/dist/qbs-ect-cmp/p-3fa495e4.js +0 -2
@@ -1,142 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h } from '@stencil/core/internal/client';
2
- import { I as IDPose, E as Events, S as Stream, a as IDML5Detector, F as FaceML5Detector, d as defineCustomElement$1 } from './camera.js';
3
- import { C as Cameras } from './Cameras.js';
4
- import { I as IdCaptureValues } from './textValues.js';
5
-
6
- const idBackCaptureCss = ".logo{max-height:450px;max-width:450px}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;z-index:2;transform:scale(-1, 1)}";
7
-
8
- const IdBackCapture = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
9
- constructor() {
10
- super();
11
- this.__registerHost();
12
- this.eventPhotoCapture = createEvent(this, "photoIdBackCapture", 7);
13
- this.photoIsReady = photos => {
14
- this.closeCamera();
15
- this.eventPhotoCapture.emit(photos);
16
- };
17
- this.device = undefined;
18
- this.videoStarted = undefined;
19
- this.cameraSize = undefined;
20
- this.stopAnimation = undefined;
21
- this.captureTaken = undefined;
22
- this.titleMesage = undefined;
23
- this.animationPath = undefined;
24
- this.captureTaken = false;
25
- this.cameras = new Cameras();
26
- }
27
- eventChangeTitle(event) {
28
- this.stopAnimation = false;
29
- if (event.detail == IDPose.Tilted) {
30
- this.animationPath = getAssetPath('../../assets/animations/id/tilt-id.gif');
31
- }
32
- if (event.detail == IDPose.Straight) {
33
- this.animationPath = getAssetPath('../../assets/animations/id/straighten-id.gif');
34
- }
35
- this.titleMesage = IdCaptureValues.IDPoseMapping[event.detail];
36
- }
37
- eventVideoStarted(event) {
38
- this.videoStarted = true;
39
- this.cameraSize = event.detail;
40
- }
41
- eventStopAnimation() {
42
- this.stopAnimation = true;
43
- }
44
- async componentWillLoad() {
45
- Events.init(this.component);
46
- this.titleMesage = IdCaptureValues.Title;
47
- if (!navigator.mediaDevices) {
48
- Events.errorEvent('This browser does not support webRTC');
49
- }
50
- }
51
- componentDidLoad() {
52
- this.openCamera();
53
- this.animationPath = getAssetPath('../../assets/animations/id/present-id.gif');
54
- }
55
- async openCamera() {
56
- let _cameras = await this.cameras.GetCameras(this.device);
57
- var recommCamera = this.cameras.GetRecommendedCamera(_cameras);
58
- var constraints = this.cameras.GetConstraints(recommCamera === null || recommCamera === void 0 ? void 0 : recommCamera.deviceId, this.device);
59
- setTimeout(() => {
60
- navigator.mediaDevices
61
- .getUserMedia(constraints)
62
- .then(stream => {
63
- const superStream = Stream.getInstance();
64
- superStream.initStream(stream);
65
- })
66
- .catch(e => {
67
- this.closeCamera();
68
- Events.errorEvent(e);
69
- });
70
- }, 100);
71
- }
72
- closeCamera() {
73
- if (Stream.instance) {
74
- Events.closeEvent();
75
- Stream.getInstance().dropStream();
76
- }
77
- }
78
- disconnectedCallback() {
79
- this.closeCamera();
80
- Stream.instance = null;
81
- IDML5Detector.instance = null;
82
- FaceML5Detector.instance = null;
83
- }
84
- takePhoto() {
85
- if (this.captureTaken)
86
- return;
87
- this.captureTaken = true;
88
- this.titleMesage = IdCaptureValues.Loading;
89
- Stream.getInstance()
90
- .takePhoto()
91
- .then(res => {
92
- this.photoIsReady(res[0]);
93
- });
94
- }
95
- render() {
96
- let loadingBlock;
97
- if (this.captureTaken) {
98
- loadingBlock = (h("div", { class: "pos-relative" }, h("div", { class: "dot-effect" }, h("div", { class: "snippet", "data-title": ".dot-shuttle" }, h("div", { class: "stage filter-contrast" }, h("div", { class: "dot-shuttle" }))))));
99
- }
100
- let animationBlock;
101
- if (this.videoStarted && this.stopAnimation !== true) {
102
- animationBlock = (h("img", { class: "animation", "data-src": this.animationPath, src: this.animationPath }));
103
- }
104
- let cameraStyle;
105
- let cameraStyleInner;
106
- if (this.videoStarted) {
107
- cameraStyle = { width: Math.round(this.cameraSize.width) + 'px', height: Math.round(this.cameraSize.width * 9 / 16) + 'px', overflow: 'hidden', borderRadius: '10px' };
108
- cameraStyleInner = { marginTop: Math.round((this.cameraSize.height - this.cameraSize.width * 9 / 16) / 2) * -1 + 'px' };
109
- }
110
- return (h("div", { class: "container bg-black" }, h("div", { class: "row ctheight-100" }, h("div", null, h("h1", { class: "color-white" }, this.titleMesage)), h("div", { hidden: this.captureTaken, class: "chenar-buletin pos-relative" }, animationBlock, h("div", { style: cameraStyle }, h("div", { style: cameraStyleInner }, h("camera-comp", { device: this.device, "capture-mode": "id" })))), loadingBlock, h("div", { class: "pos-relative" }, h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText)))));
111
- }
112
- get component() { return this; }
113
- static get style() { return idBackCaptureCss; }
114
- }, [0, "id-back-capture", {
115
- "device": [16],
116
- "videoStarted": [32],
117
- "cameraSize": [32],
118
- "stopAnimation": [32],
119
- "captureTaken": [32],
120
- "titleMesage": [32],
121
- "animationPath": [32]
122
- }, [[0, "changeTitle", "eventChangeTitle"], [0, "videoStarted", "eventVideoStarted"], [0, "stopAnimation", "eventStopAnimation"], [0, "takePhoto", "takePhoto"]]]);
123
- function defineCustomElement() {
124
- if (typeof customElements === "undefined") {
125
- return;
126
- }
127
- const components = ["id-back-capture", "camera-comp"];
128
- components.forEach(tagName => { switch (tagName) {
129
- case "id-back-capture":
130
- if (!customElements.get(tagName)) {
131
- customElements.define(tagName, IdBackCapture);
132
- }
133
- break;
134
- case "camera-comp":
135
- if (!customElements.get(tagName)) {
136
- defineCustomElement$1();
137
- }
138
- break;
139
- } });
140
- }
141
-
142
- export { IdBackCapture as I, defineCustomElement as d };
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface IdCapture extends Components.IdCapture, HTMLElement {}
4
- export const IdCapture: {
5
- prototype: IdCapture;
6
- new (): IdCapture;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;
@@ -1,6 +0,0 @@
1
- import { I as IdCapture$1, d as defineCustomElement$1 } from './id-capture2.js';
2
-
3
- const IdCapture = IdCapture$1;
4
- const defineCustomElement = defineCustomElement$1;
5
-
6
- export { IdCapture, defineCustomElement };
@@ -1,142 +0,0 @@
1
- import { proxyCustomElement, HTMLElement, createEvent, getAssetPath, h } from '@stencil/core/internal/client';
2
- import { I as IDPose, E as Events, S as Stream, a as IDML5Detector, F as FaceML5Detector, d as defineCustomElement$1 } from './camera.js';
3
- import { C as Cameras } from './Cameras.js';
4
- import { I as IdCaptureValues } from './textValues.js';
5
-
6
- const idCaptureCss = ".logo{max-height:450px;max-width:450px}.canvas-on-video{max-width:100%;max-height:100%;position:absolute;z-index:2;transform:scale(-1, 1)}";
7
-
8
- const IdCapture = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
9
- constructor() {
10
- super();
11
- this.__registerHost();
12
- this.eventPhotoCapture = createEvent(this, "photoIdCapture", 7);
13
- this.photoIsReady = photos => {
14
- this.closeCamera();
15
- this.eventPhotoCapture.emit(photos);
16
- };
17
- this.device = undefined;
18
- this.videoStarted = undefined;
19
- this.cameraSize = undefined;
20
- this.stopAnimation = undefined;
21
- this.captureTaken = undefined;
22
- this.titleMesage = undefined;
23
- this.animationPath = undefined;
24
- this.captureTaken = false;
25
- this.cameras = new Cameras();
26
- }
27
- eventChangeTitle(event) {
28
- this.stopAnimation = false;
29
- if (event.detail == IDPose.Tilted) {
30
- this.animationPath = getAssetPath('../../assets/animations/id/tilt-id.gif');
31
- }
32
- if (event.detail == IDPose.Straight) {
33
- this.animationPath = getAssetPath('../../assets/animations/id/straighten-id.gif');
34
- }
35
- this.titleMesage = IdCaptureValues.IDPoseMapping[event.detail];
36
- }
37
- eventVideoStarted(event) {
38
- this.videoStarted = true;
39
- this.cameraSize = event.detail;
40
- }
41
- eventStopAnimation() {
42
- this.stopAnimation = true;
43
- }
44
- async componentWillLoad() {
45
- Events.init(this.component);
46
- this.titleMesage = IdCaptureValues.Title;
47
- if (!navigator.mediaDevices) {
48
- Events.errorEvent('This browser does not support webRTC');
49
- }
50
- }
51
- componentDidLoad() {
52
- this.openCamera();
53
- this.animationPath = getAssetPath('../../assets/animations/id/present-id.gif');
54
- }
55
- async openCamera() {
56
- let _cameras = await this.cameras.GetCameras(this.device);
57
- var recommCamera = this.cameras.GetRecommendedCamera(_cameras);
58
- var constraints = this.cameras.GetConstraints(recommCamera === null || recommCamera === void 0 ? void 0 : recommCamera.deviceId, this.device);
59
- setTimeout(() => {
60
- navigator.mediaDevices
61
- .getUserMedia(constraints)
62
- .then(stream => {
63
- const superStream = Stream.getInstance();
64
- superStream.initStream(stream);
65
- })
66
- .catch(e => {
67
- this.closeCamera();
68
- Events.errorEvent(e);
69
- });
70
- }, 100);
71
- }
72
- closeCamera() {
73
- if (Stream.instance) {
74
- Events.closeEvent();
75
- Stream.getInstance().dropStream();
76
- }
77
- }
78
- disconnectedCallback() {
79
- this.closeCamera();
80
- Stream.instance = null;
81
- IDML5Detector.instance = null;
82
- FaceML5Detector.instance = null;
83
- }
84
- takePhoto() {
85
- if (this.captureTaken)
86
- return;
87
- this.captureTaken = true;
88
- this.titleMesage = IdCaptureValues.Loading;
89
- Stream.getInstance()
90
- .takePhoto()
91
- .then(res => {
92
- this.photoIsReady(res[0]);
93
- });
94
- }
95
- render() {
96
- let loadingBlock;
97
- if (this.captureTaken) {
98
- loadingBlock = (h("div", { class: "pos-relative" }, h("div", { class: "dot-effect" }, h("div", { class: "snippet", "data-title": ".dot-shuttle" }, h("div", { class: "stage filter-contrast" }, h("div", { class: "dot-shuttle" }))))));
99
- }
100
- let animationBlock;
101
- if (this.videoStarted && this.stopAnimation !== true) {
102
- animationBlock = (h("img", { class: "animation", "data-src": this.animationPath, src: this.animationPath }));
103
- }
104
- let cameraStyle;
105
- let cameraStyleInner;
106
- if (this.videoStarted) {
107
- cameraStyle = { width: Math.round(this.cameraSize.width) + 'px', height: Math.round(this.cameraSize.width * 9 / 16) + 'px', overflow: 'hidden', borderRadius: '10px' };
108
- cameraStyleInner = { marginTop: Math.round((this.cameraSize.height - this.cameraSize.width * 9 / 16) / 2) * -1 + 'px' };
109
- }
110
- return (h("div", { class: "container bg-black" }, h("div", { class: "row ctheight-100" }, h("div", null, h("h1", { class: "color-white" }, this.titleMesage)), h("div", { hidden: this.captureTaken, class: "chenar-buletin pos-relative" }, animationBlock, h("div", { style: cameraStyle }, h("div", { style: cameraStyleInner }, h("camera-comp", { device: this.device, "capture-mode": "id" })))), loadingBlock, h("div", { class: "pos-relative" }, h("p", { class: "main-text font-size-18 text-right mb-0" }, IdCaptureValues.FooterText)))));
111
- }
112
- get component() { return this; }
113
- static get style() { return idCaptureCss; }
114
- }, [0, "id-capture", {
115
- "device": [16],
116
- "videoStarted": [32],
117
- "cameraSize": [32],
118
- "stopAnimation": [32],
119
- "captureTaken": [32],
120
- "titleMesage": [32],
121
- "animationPath": [32]
122
- }, [[0, "changeTitle", "eventChangeTitle"], [0, "videoStarted", "eventVideoStarted"], [0, "stopAnimation", "eventStopAnimation"], [0, "takePhoto", "takePhoto"]]]);
123
- function defineCustomElement() {
124
- if (typeof customElements === "undefined") {
125
- return;
126
- }
127
- const components = ["id-capture", "camera-comp"];
128
- components.forEach(tagName => { switch (tagName) {
129
- case "id-capture":
130
- if (!customElements.get(tagName)) {
131
- customElements.define(tagName, IdCapture);
132
- }
133
- break;
134
- case "camera-comp":
135
- if (!customElements.get(tagName)) {
136
- defineCustomElement$1();
137
- }
138
- break;
139
- } });
140
- }
141
-
142
- export { IdCapture as I, defineCustomElement as d };
@@ -1,11 +0,0 @@
1
- import type { Components, JSX } from "../types/components";
2
-
3
- interface IdentificationComponent extends Components.IdentificationComponent, HTMLElement {}
4
- export const IdentificationComponent: {
5
- prototype: IdentificationComponent;
6
- new (): IdentificationComponent;
7
- };
8
- /**
9
- * Used to define this component and all nested components recursively.
10
- */
11
- export const defineCustomElement: () => void;