@ekyc_qoobiss/qbs-ect-cmp 4.7.25 → 4.7.26
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/cjs/agreement-info_23.cjs.entry.js +15 -6
- package/dist/cjs/agreement-info_23.cjs.entry.js.map +1 -1
- package/dist/collection/components/common/id-auto-capture/id-auto-capture.js +14 -5
- package/dist/collection/components/common/id-auto-capture/id-auto-capture.js.map +1 -1
- package/dist/esm/agreement-info_23.entry.js +15 -6
- package/dist/esm/agreement-info_23.entry.js.map +1 -1
- package/dist/qbs-ect-cmp/{p-536691cf.entry.js → p-8c3d88b3.entry.js} +2 -2
- package/dist/qbs-ect-cmp/{p-536691cf.entry.js.map → p-8c3d88b3.entry.js.map} +1 -1
- package/dist/qbs-ect-cmp/qbs-ect-cmp.esm.js +1 -1
- package/package.json +1 -1
|
@@ -530,10 +530,19 @@ const IdAutoCapture = class {
|
|
|
530
530
|
this.opencvReady = false;
|
|
531
531
|
this.isCapturing = false;
|
|
532
532
|
this.handleOpencvReady = async () => {
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
533
|
+
const checkMatReady = setInterval(async () => {
|
|
534
|
+
if (typeof cv !== 'undefined' && typeof cv.Mat === 'function') {
|
|
535
|
+
clearInterval(checkMatReady);
|
|
536
|
+
console.log('opencv:ready event received and cv.Mat is a constructor. OpenCV is truly ready.');
|
|
537
|
+
this.opencvReady = true;
|
|
538
|
+
console.log('OpenCV.js loaded. Ready to start detection.');
|
|
539
|
+
await this.getMedia(); // Get camera media once OpenCV is ready
|
|
540
|
+
await this.handleStartDetection(); // Start processing video frames
|
|
541
|
+
}
|
|
542
|
+
else {
|
|
543
|
+
console.log('OpenCV.js detected, but cv.Mat is not yet a constructor. Waiting...');
|
|
544
|
+
}
|
|
545
|
+
}, 50);
|
|
537
546
|
};
|
|
538
547
|
// Method to start video recording
|
|
539
548
|
this.startRecording = () => {
|
|
@@ -796,7 +805,7 @@ const IdAutoCapture = class {
|
|
|
796
805
|
if (TranslationUtils.state.device.isDesktop) {
|
|
797
806
|
cameraVideoClass = 'cameraVideoSelfieDesk';
|
|
798
807
|
}
|
|
799
|
-
return (index.h("div", { key: '
|
|
808
|
+
return (index.h("div", { key: '559bfe7fac1dd5a3e27916476eb5e4a8c2fef7b7', class: "container flex center" }, index.h("div", { key: 'ae81c667734915a9c1cb415623dc8228eb1c939f', class: "px-2 w-100" }, index.h("h1", { key: '3b2b2188b103dca2ece3005d06875906ab602e32', class: this.titleStyle, innerHTML: this.titleMesage }), index.h("div", { key: '80bfc6f31de728101d329710b9334f03ef70d7ee', hidden: this.verified }, index.h("div", { key: '05f7765dd9f42ce792f85e7ca096bfefc8b1c797', class: "w-100 h-100 rounded" }, index.h("div", { key: '91bef087eff53fd1fe568b580815087b5112db81', class: "camera rounded" }, index.h("video", { key: '618fe3be9beba201b0c3db4dd70f26bd1a4a31b4', id: "video", loop: true, autoplay: true, playsinline: true, muted: true, class: cameraVideoClass, ref: el => (this.videoElement = el) }), index.h("canvas", { key: 'd7558bb154af3ccdf7f8d7f100567c6744588ccc', id: "output", ref: el => (this.canvasElement = el), style: { display: 'none' } }), index.h("canvas", { key: '56aafa25e4dfb93e9ded664e453ee7c9c53bde7f', id: "processingCanvasElement", ref: el => (this.processingCanvasElement = el), style: { display: 'none' } }), index.h("div", { key: '5de9a4cb22378fc35da753f31219fa7eb32a58fa', class: "id-guide-rectangle" }), this.isCapturing && index.h("div", { key: '21362e7496c1761528541731baf71140a3d41893', class: "capture-flash-overlay" }), this.countdown > 0 && (index.h("div", { key: '2015a4ba22578673c12bd39e0d76219fd735f707', class: "absolute inset-0 bg-black bg-opacity-50 flex items-center justify-center" }, index.h("span", { key: '480811d0e692d8b9e0e0c64c1f220850c18f38b0', class: "text-white text-9xl font-bold animate-bounce" }, this.countdown)))))), index.h("div", { key: '58cb4e78d20c69e63fff719e00115a599d0a4391', class: "footer text-center" }, index.h("img", { key: '480db038bd76c75a7c1ad212214257529c30e200', src: Cameras.logoOntraceSvg })))));
|
|
800
809
|
}
|
|
801
810
|
get el() { return index.getElement(this); }
|
|
802
811
|
};
|
|
@@ -861,7 +870,7 @@ const IdSelection = class {
|
|
|
861
870
|
};
|
|
862
871
|
IdSelection.style = idSelectionCss;
|
|
863
872
|
|
|
864
|
-
const version$1 = "4.7.
|
|
873
|
+
const version$1 = "4.7.26";
|
|
865
874
|
var packageJson = {
|
|
866
875
|
version: version$1};
|
|
867
876
|
|