@regulaforensics/vp-frontend-document-components 9.6.2934-nightly → 9.6.2936-nightly
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/nightly/9.6/barcodemrz/
|
|
12860
|
+
PROD: "https://wasm-development.regulaforensics.com/document/nightly/9.6/barcodemrz/b0c7ad31-7ec06988f",
|
|
12857
12861
|
DEV: "./wasm/barcode-mrz/"
|
|
12858
12862
|
},
|
|
12859
12863
|
[pi.BoundsLite]: {
|
|
12860
|
-
PROD: "https://wasm-development.regulaforensics.com/document/nightly/9.6/boundslite/
|
|
12864
|
+
PROD: "https://wasm-development.regulaforensics.com/document/nightly/9.6/boundslite/b0c7ad31-7ec06988f",
|
|
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.2936-nightly",
|
|
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.2936-nightly" });
|
|
13993
14000
|
yield a.createBackendTransaction(e, a.imageProcessParam);
|
|
13994
14001
|
}
|
|
13995
14002
|
let e = yield a.processImage(t, o);
|
|
@@ -20522,7 +20529,7 @@ function uA(e, t) {
|
|
|
20522
20529
|
}
|
|
20523
20530
|
var dA = Js.create("wasm"), fA = Js.create("main"), pA = class {
|
|
20524
20531
|
constructor() {
|
|
20525
|
-
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.
|
|
20532
|
+
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.2936-nightly" }), 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/nightly/9.6/barcodemrz/b0c7ad31-7ec06988f"), cA(this, "pageIdx", null);
|
|
20526
20533
|
}
|
|
20527
20534
|
get processingListener() {
|
|
20528
20535
|
return this._processingListener;
|
|
@@ -20575,7 +20582,7 @@ var dA = Js.create("wasm"), fA = Js.create("main"), pA = class {
|
|
|
20575
20582
|
var n;
|
|
20576
20583
|
fA("Preparing the service");
|
|
20577
20584
|
{
|
|
20578
|
-
let n = t.workerPath === "https://wasm-development.regulaforensics.com/document/nightly/9.6/barcodemrz/
|
|
20585
|
+
let n = t.workerPath === "https://wasm-development.regulaforensics.com/document/nightly/9.6/barcodemrz/b0c7ad31-7ec06988f", r = aA(e && n ? ux(e, "PROD") : t.workerPath), i = yield (yield fetch(`${r}/${Ti}`)).text();
|
|
20579
20586
|
n || (i = lx(i, r));
|
|
20580
20587
|
let a = new Blob([i], { type: "text/plain" }), o = URL.createObjectURL(a);
|
|
20581
20588
|
t._worker = new Worker(o), URL.revokeObjectURL(o);
|
|
@@ -20614,7 +20621,7 @@ var dA = Js.create("wasm"), fA = Js.create("main"), pA = class {
|
|
|
20614
20621
|
hostName: (n = document.location) == null ? void 0 : n.origin,
|
|
20615
20622
|
license: e == null ? void 0 : e.license
|
|
20616
20623
|
},
|
|
20617
|
-
telemetry: yield Rs({ sdkVersion: "9.6.
|
|
20624
|
+
telemetry: yield Rs({ sdkVersion: "9.6.2936-nightly" }),
|
|
20618
20625
|
processParam: t.recognizerProcessParam.processParam || t.imageProcessParam.processParam
|
|
20619
20626
|
}
|
|
20620
20627
|
}), 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.2936-nightly",
|
|
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.956-nightly",
|
|
26
26
|
"qrcode.react": "^4.2.0"
|
|
27
27
|
}
|
|
28
28
|
}
|