@regulaforensics/vp-frontend-document-components 9.6.2935-rc → 9.6.2937-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 +5 -5
- package/dist/main.js +16 -9
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -12815,10 +12815,14 @@ function ox() {
|
|
|
12815
12815
|
}, i.src = e;
|
|
12816
12816
|
}))(t);
|
|
12817
12817
|
if (n.width * n.height > 536870912) throw new Lu(Zr.INCORRECT_FILE);
|
|
12818
|
+
let r = yield new Promise((t, n) => {
|
|
12819
|
+
let r = new FileReader();
|
|
12820
|
+
r.onload = () => t(r.result), r.onerror = () => n(new Lu(Zr.INCORRECT_FILE, r.error)), r.readAsArrayBuffer(e);
|
|
12821
|
+
});
|
|
12818
12822
|
return {
|
|
12819
12823
|
width: n.width,
|
|
12820
12824
|
height: n.height,
|
|
12821
|
-
data:
|
|
12825
|
+
data: r
|
|
12822
12826
|
};
|
|
12823
12827
|
});
|
|
12824
12828
|
return function(t) {
|
|
@@ -12853,11 +12857,11 @@ function ux(e, t) {
|
|
|
12853
12857
|
var n, r;
|
|
12854
12858
|
let i = {
|
|
12855
12859
|
[pi.BarcodeMRZ]: {
|
|
12856
|
-
PROD: "https://wasm-development.regulaforensics.com/document/rc/9.6/barcodemrz/
|
|
12860
|
+
PROD: "https://wasm-development.regulaforensics.com/document/rc/9.6/barcodemrz/573130ed-cd2688a37",
|
|
12857
12861
|
DEV: "./wasm/barcode-mrz/"
|
|
12858
12862
|
},
|
|
12859
12863
|
[pi.BoundsLite]: {
|
|
12860
|
-
PROD: "https://wasm-development.regulaforensics.com/document/rc/9.6/boundslite/
|
|
12864
|
+
PROD: "https://wasm-development.regulaforensics.com/document/rc/9.6/boundslite/573130ed-cd2688a37",
|
|
12861
12865
|
DEV: "./wasm/bounds-lite/"
|
|
12862
12866
|
}
|
|
12863
12867
|
};
|
|
@@ -13267,7 +13271,7 @@ function $x(e) {
|
|
|
13267
13271
|
let t = yield Rs({
|
|
13268
13272
|
cameras: [...n.sortedDevices.frontCameras, ...n.sortedDevices.backCameras],
|
|
13269
13273
|
cameraID: n.camera.deviceId,
|
|
13270
|
-
sdkVersion: "9.6.
|
|
13274
|
+
sdkVersion: "9.6.2937-rc",
|
|
13271
13275
|
serviceUrl: ((e = s.recognizerProcessParam.processParam.backendProcessing) == null ? void 0 : e.serviceURL) || ""
|
|
13272
13276
|
});
|
|
13273
13277
|
Qx(`Metadata: ${JSON.stringify(t)}`);
|
|
@@ -13549,7 +13553,10 @@ function _S(e) {
|
|
|
13549
13553
|
let e = yield oe.getRecord();
|
|
13550
13554
|
if (!e) return;
|
|
13551
13555
|
if (a.video = e, i) {
|
|
13552
|
-
let t = e.data, n = lS(e, cS), r = yield
|
|
13556
|
+
let t = e.data, n = lS(e, cS), r = yield new Promise((e, n) => {
|
|
13557
|
+
let r = new FileReader();
|
|
13558
|
+
r.onload = () => e(r.result), r.onerror = () => n(r.error), r.readAsArrayBuffer(t);
|
|
13559
|
+
}), i = new Uint8ClampedArray(r);
|
|
13553
13560
|
yield x.addDataToPackage(i, {
|
|
13554
13561
|
sizeBytes: t.size,
|
|
13555
13562
|
dataName: "processingVideo",
|
|
@@ -13989,7 +13996,7 @@ function LS(e) {
|
|
|
13989
13996
|
try {
|
|
13990
13997
|
var n;
|
|
13991
13998
|
if ((n = a.imageProcessParam.processParam) != null && n.backendProcessing) {
|
|
13992
|
-
let e = yield Rs({ sdkVersion: "9.6.
|
|
13999
|
+
let e = yield Rs({ sdkVersion: "9.6.2937-rc" });
|
|
13993
14000
|
yield a.createBackendTransaction(e, a.imageProcessParam);
|
|
13994
14001
|
}
|
|
13995
14002
|
let e = yield a.processImage(t, o);
|
|
@@ -20451,7 +20458,7 @@ function uA(e, t) {
|
|
|
20451
20458
|
}
|
|
20452
20459
|
var dA = Js.create("wasm"), fA = Js.create("main"), pA = class {
|
|
20453
20460
|
constructor() {
|
|
20454
|
-
cA(this, "_worker", null), cA(this, "_initializeListener", null), cA(this, "_processingListener", null), cA(this, "_queueService", new Bk()), cA(this, "_initProcess", null), cA(this, "version", { component: "9.6.
|
|
20461
|
+
cA(this, "_worker", null), cA(this, "_initializeListener", null), cA(this, "_processingListener", null), cA(this, "_queueService", new Bk()), cA(this, "_initProcess", null), cA(this, "version", { component: "9.6.2937-rc" }), cA(this, "onFinalize", null), cA(this, "isPrepared", !1), cA(this, "isInitialized", !1), cA(this, "isProcessing", !1), cA(this, "initData", null), cA(this, "recognizerProcessParam", { processParam: {} }), cA(this, "imageProcessParam", { processParam: {} }), cA(this, "recognizeListener", null), cA(this, "workerPath", "https://wasm-development.regulaforensics.com/document/rc/9.6/barcodemrz/573130ed-cd2688a37"), cA(this, "pageIdx", null);
|
|
20455
20462
|
}
|
|
20456
20463
|
get processingListener() {
|
|
20457
20464
|
return this._processingListener;
|
|
@@ -20504,7 +20511,7 @@ var dA = Js.create("wasm"), fA = Js.create("main"), pA = class {
|
|
|
20504
20511
|
var n;
|
|
20505
20512
|
fA("Preparing the service");
|
|
20506
20513
|
{
|
|
20507
|
-
let n = t.workerPath === "https://wasm-development.regulaforensics.com/document/rc/9.6/barcodemrz/
|
|
20514
|
+
let n = t.workerPath === "https://wasm-development.regulaforensics.com/document/rc/9.6/barcodemrz/573130ed-cd2688a37", r = aA(e && n ? ux(e, "PROD") : t.workerPath), i = yield (yield fetch(`${r}/${Ti}`)).text();
|
|
20508
20515
|
n || (i = lx(i, r));
|
|
20509
20516
|
let a = new Blob([i], { type: "text/plain" }), o = URL.createObjectURL(a);
|
|
20510
20517
|
t._worker = new Worker(o), URL.revokeObjectURL(o);
|
|
@@ -20543,7 +20550,7 @@ var dA = Js.create("wasm"), fA = Js.create("main"), pA = class {
|
|
|
20543
20550
|
hostName: (n = document.location) == null ? void 0 : n.origin,
|
|
20544
20551
|
license: e == null ? void 0 : e.license
|
|
20545
20552
|
},
|
|
20546
|
-
telemetry: yield Rs({ sdkVersion: "9.6.
|
|
20553
|
+
telemetry: yield Rs({ sdkVersion: "9.6.2937-rc" }),
|
|
20547
20554
|
processParam: t.recognizerProcessParam.processParam || t.imageProcessParam.processParam
|
|
20548
20555
|
}
|
|
20549
20556
|
}), a = i.scenario, o = i.license;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@regulaforensics/vp-frontend-document-components",
|
|
3
|
-
"version": "9.6.
|
|
3
|
+
"version": "9.6.2937-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": "^9.6.
|
|
25
|
+
"@regulaforensics/document-reader-webclient": "^9.6.957-rc",
|
|
26
26
|
"qrcode.react": "^4.2.0"
|
|
27
27
|
}
|
|
28
28
|
}
|