@regulaforensics/vp-frontend-document-components 8.5.2553-nightly → 8.5.2557-rc
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/main.iife.js +3 -3
- package/dist/main.js +13 -13
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -7919,7 +7919,7 @@ function wg(e) {
|
|
|
7919
7919
|
newLayout: v
|
|
7920
7920
|
} = vt(), {
|
|
7921
7921
|
translate: g
|
|
7922
|
-
} = an.useLocalize(), [R, y] = De(S === void 0), T = nt(null), O = nt(null), b = nt(null), P = nt(null), w = _ && u && R, V = n && I, B = f !== or.environment && C, G = a && E, J = m, $ = w || d || V, q = B || G, j = w || d || B || G, Q = {
|
|
7922
|
+
} = an.useLocalize(), [R, y] = De(S === void 0), T = nt(null), O = nt(null), b = nt(null), P = nt(null), w = _ && u && R, V = n && I, B = f !== or.environment && C, G = a && E, J = m, $ = w || !!d || V, q = B || G, j = w || !!d || B || G, Q = {
|
|
7923
7923
|
"--skip-position": ((t = s == null ? void 0 : s.right) !== null && t !== void 0 ? t : 0) + "px"
|
|
7924
7924
|
};
|
|
7925
7925
|
return Ve(() => {
|
|
@@ -7937,10 +7937,10 @@ function wg(e) {
|
|
|
7937
7937
|
return () => {
|
|
7938
7938
|
clearTimeout(te);
|
|
7939
7939
|
};
|
|
7940
|
-
}, [S]),
|
|
7940
|
+
}, [S]), L("div", {
|
|
7941
7941
|
part: "controls-container",
|
|
7942
7942
|
className: Ft["controls-container"],
|
|
7943
|
-
children: [
|
|
7943
|
+
children: [L("div", {
|
|
7944
7944
|
part: "controls-top-buttons",
|
|
7945
7945
|
className: Ft["top-functional-buttons"],
|
|
7946
7946
|
ref: T,
|
|
@@ -8141,7 +8141,7 @@ function NC(e) {
|
|
|
8141
8141
|
const qe = (Ce - we) / 2 * ((g != null ? g : 1) - 1);
|
|
8142
8142
|
be = (l.videoContainerParams.height - xe) / 2, be < ne && (be = ne, xe = l.videoContainerParams.height - be * 2, we = Math.round(xe * (de.width / de.height)), Oe = Math.round(re.height * (xe / de.height))), Xe = (Ce - we) / 2 + qe + Qe, Re = l.videoContainerParams.width - (Xe + we);
|
|
8143
8143
|
const tt = Math.round(Xe - (Ge - we) / 2);
|
|
8144
|
-
l.videoElement.style.width = "".concat(Ge, "px"), l.videoElement.style.left = "".concat(tt, "px"), l.videoElement.style.height = "".concat(Oe, "px");
|
|
8144
|
+
l.videoElement.style.width = "".concat(Ge, "px"), l.videoElement.style.left = "".concat(tt, "px"), l.videoElement.style.height = "".concat(Oe, "px"), l.videoElement.style.top = "auto";
|
|
8145
8145
|
} else {
|
|
8146
8146
|
const K = l.videoContainerParams.height - G.top - G.main;
|
|
8147
8147
|
let ne = re.height;
|
|
@@ -8152,7 +8152,7 @@ function NC(e) {
|
|
|
8152
8152
|
const Ce = (K - xe) / 2 * (v != null ? v : 0);
|
|
8153
8153
|
be = G.top + Ce, Xe = (l.videoContainerParams.width - we) / 2, Re = Xe;
|
|
8154
8154
|
const Qe = Math.round(be - (ne - xe) / 2);
|
|
8155
|
-
l.videoElement.style.height = "".concat(ne, "px"), l.videoElement.style.top = "".concat(Qe, "px");
|
|
8155
|
+
l.videoElement.style.width = "100%", l.videoElement.style.left = "auto", l.videoElement.style.height = "".concat(ne, "px"), l.videoElement.style.top = "".concat(Qe, "px");
|
|
8156
8156
|
}
|
|
8157
8157
|
w({
|
|
8158
8158
|
width: we,
|
|
@@ -12524,11 +12524,11 @@ function X9(e, t) {
|
|
|
12524
12524
|
var r, n;
|
|
12525
12525
|
const a = {
|
|
12526
12526
|
[wi.BarcodeMRZ]: {
|
|
12527
|
-
PROD: "https://wasm-development.regulaforensics.com/document/
|
|
12527
|
+
PROD: "https://wasm-development.regulaforensics.com/document/rc/8.5/barcodemrz/02c75c70-1e8246dde",
|
|
12528
12528
|
DEV: "./wasm/barcode-mrz/"
|
|
12529
12529
|
},
|
|
12530
12530
|
[wi.BoundsLite]: {
|
|
12531
|
-
PROD: "https://wasm-development.regulaforensics.com/document/
|
|
12531
|
+
PROD: "https://wasm-development.regulaforensics.com/document/rc/8.5/boundslite/02c75c70-1e8246dde",
|
|
12532
12532
|
DEV: "./wasm/bounds-lite/"
|
|
12533
12533
|
}
|
|
12534
12534
|
};
|
|
@@ -12774,7 +12774,7 @@ function sy(e) {
|
|
|
12774
12774
|
}, [Q, B]), Ve(() => {
|
|
12775
12775
|
var ee;
|
|
12776
12776
|
if (!c || !j || v || te || r.videoStatus !== ct.PLAY || !r.sortedDevices) return;
|
|
12777
|
-
const Z = AC([...r.sortedDevices.frontCameras, ...r.sortedDevices.backCameras], r.camera.deviceId, "8.5.
|
|
12777
|
+
const Z = AC([...r.sortedDevices.frontCameras, ...r.sortedDevices.backCameras], r.camera.deviceId, "8.5.2557-rc".trim(), ((ee = c.recognizerProcessParam.processParam.backendProcessing) === null || ee === void 0 ? void 0 : ee.serviceURL) || "");
|
|
12778
12778
|
if (cn("Metadata: ".concat(JSON.stringify(Z))), p) return;
|
|
12779
12779
|
(c.recognizerProcessParam.processParam.backendProcessing ? c.createBackendTransaction(Z) : c.startNewDocument(Z)).then(() => {
|
|
12780
12780
|
g(!0), cn("New document started");
|
|
@@ -13382,7 +13382,7 @@ function Ay(e) {
|
|
|
13382
13382
|
var m;
|
|
13383
13383
|
if ((m = i.imageProcessParam.processParam) !== null && m !== void 0 && m.backendProcessing) {
|
|
13384
13384
|
var I;
|
|
13385
|
-
const E = AC([], "", "8.5.
|
|
13385
|
+
const E = AC([], "", "8.5.2557-rc".trim(), ((I = i.recognizerProcessParam.processParam) === null || I === void 0 || (I = I.backendProcessing) === null || I === void 0 ? void 0 : I.serviceURL) || "");
|
|
13386
13386
|
yield i.createBackendTransaction(E, i.imageProcessParam);
|
|
13387
13387
|
}
|
|
13388
13388
|
const C = yield i.processImage(t, d);
|
|
@@ -16342,7 +16342,7 @@ function eL(e) {
|
|
|
16342
16342
|
}
|
|
16343
16343
|
const tL = (e) => {
|
|
16344
16344
|
var t, r;
|
|
16345
|
-
return !!((t = e.recognizerProcessParam.delegateProcessing) !== null && t !== void 0 && t.serviceURL) && !!((r = e.recognizerProcessParam) !== null && r !== void 0 && (r = r.delegateProcessing) !== null && r !== void 0 && r.delegateURL) && !Et.isMobile;
|
|
16345
|
+
return !!((t = e.recognizerProcessParam.delegateProcessing) !== null && t !== void 0 && t.serviceURL) && !!((r = e.recognizerProcessParam) !== null && r !== void 0 && (r = r.delegateProcessing) !== null && r !== void 0 && r.delegateURL) && !Et.isMobile && !(navigator.maxTouchPoints > 0);
|
|
16346
16346
|
}, rL = (e, t, r, n) => e ? t ? r ? "fromCameraGalleryMobile" : "fromMobileDesktop" : r ? "fromGalleryMobile" : "" : t ? r ? n ? "fromCameraFilesMobileDesktop" : "fromCameraFilesDesktop" : n ? "fromCameraMobileDesktop" : "fromCameraDesktop" : r ? n ? "fromFilesMobileDesktop" : "fromFilesDesktop" : n ? "fromMobileDesktop" : "", nL = (e, t, r, n) => e ? le.CHOOSE_INPUT_SOURCE : t ? le.CAMERA_PROCESSING : !t && n && !r ? le.REMOTE_SCANNER : le.CONFIGURATION_ERROR, aL = (e, t, r, n, a, i) => {
|
|
16347
16347
|
const o = r && (a || t), c = n && (i || t);
|
|
16348
16348
|
return e ? (r ? o : !0) && (n ? c : !0) : a || t;
|
|
@@ -19902,12 +19902,12 @@ const cu = jt.create("wasm"), wt = jt.create("main");
|
|
|
19902
19902
|
class qse {
|
|
19903
19903
|
constructor() {
|
|
19904
19904
|
$t(this, "_worker", null), $t(this, "_initializeListener", null), $t(this, "_processingListener", null), $t(this, "_queueService", new kse()), $t(this, "_initProcess", null), $t(this, "version", {
|
|
19905
|
-
component: "8.5.
|
|
19905
|
+
component: "8.5.2557-rc".trim()
|
|
19906
19906
|
}), $t(this, "onFinalize", null), $t(this, "isPrepared", !1), $t(this, "isInitialized", !1), $t(this, "isProcessing", !1), $t(this, "initData", null), $t(this, "recognizerProcessParam", {
|
|
19907
19907
|
processParam: {}
|
|
19908
19908
|
}), $t(this, "imageProcessParam", {
|
|
19909
19909
|
processParam: {}
|
|
19910
|
-
}), $t(this, "recognizeListener", null), $t(this, "workerPath", "https://wasm-development.regulaforensics.com/document/
|
|
19910
|
+
}), $t(this, "recognizeListener", null), $t(this, "workerPath", "https://wasm-development.regulaforensics.com/document/rc/8.5/barcodemrz/02c75c70-1e8246dde");
|
|
19911
19911
|
}
|
|
19912
19912
|
get processingListener() {
|
|
19913
19913
|
return this._processingListener;
|
|
@@ -19975,7 +19975,7 @@ class qse {
|
|
|
19975
19975
|
var r;
|
|
19976
19976
|
wt("Preparing the service");
|
|
19977
19977
|
{
|
|
19978
|
-
const n = this.workerPath === "https://wasm-development.regulaforensics.com/document/
|
|
19978
|
+
const n = this.workerPath === "https://wasm-development.regulaforensics.com/document/rc/8.5/barcodemrz/02c75c70-1e8246dde", a = Gse(t ? X9(t, "PROD") : this.workerPath);
|
|
19979
19979
|
let o = yield (yield fetch("".concat(a, "/").concat(_R))).text();
|
|
19980
19980
|
!n && !t && (o = W9(o, a));
|
|
19981
19981
|
const c = new Blob([o], {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/vp-frontend-document-components",
|
|
3
|
-
"version": "8.5.
|
|
3
|
+
"version": "8.5.2557-rc",
|
|
4
4
|
"description": "Regula framework agnostic web components to work with webcamera",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"main": "./dist/main.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"build": "vite build"
|
|
23
23
|
},
|
|
24
24
|
"dependencies": {
|
|
25
|
-
"@regulaforensics/document-reader-webclient": "^8.5.
|
|
25
|
+
"@regulaforensics/document-reader-webclient": "^8.5.621-rc",
|
|
26
26
|
"qrcode.react": "^4.2.0"
|
|
27
27
|
}
|
|
28
28
|
}
|