@regulaforensics/vp-frontend-document-components 9.7.2964-rc → 9.7.2965-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.js CHANGED
@@ -12857,11 +12857,11 @@ function ux(e, t) {
12857
12857
  var n, r;
12858
12858
  let i = {
12859
12859
  [pi.BarcodeMRZ]: {
12860
- PROD: "https://wasm-development.regulaforensics.com/document/rc/9.7/barcodemrz/1427f1bc-cbdefdf35",
12860
+ PROD: "https://wasm-development.regulaforensics.com/document/rc/9.7/barcodemrz/59d623f3-e437ce566",
12861
12861
  DEV: "./wasm/barcode-mrz/"
12862
12862
  },
12863
12863
  [pi.BoundsLite]: {
12864
- PROD: "https://wasm-development.regulaforensics.com/document/rc/9.7/boundslite/1427f1bc-cbdefdf35",
12864
+ PROD: "https://wasm-development.regulaforensics.com/document/rc/9.7/boundslite/59d623f3-e437ce566",
12865
12865
  DEV: "./wasm/bounds-lite/"
12866
12866
  }
12867
12867
  };
@@ -13271,7 +13271,7 @@ function $x(e) {
13271
13271
  let t = yield Rs({
13272
13272
  cameras: [...n.sortedDevices.frontCameras, ...n.sortedDevices.backCameras],
13273
13273
  cameraID: n.camera.deviceId,
13274
- sdkVersion: "9.7.2964-rc",
13274
+ sdkVersion: "9.7.2965-rc",
13275
13275
  serviceUrl: ((e = s.recognizerProcessParam.processParam.backendProcessing) == null ? void 0 : e.serviceURL) || ""
13276
13276
  });
13277
13277
  Qx(`Metadata: ${JSON.stringify(t)}`);
@@ -13996,7 +13996,7 @@ function LS(e) {
13996
13996
  try {
13997
13997
  var n;
13998
13998
  if ((n = a.imageProcessParam.processParam) != null && n.backendProcessing) {
13999
- let e = yield Rs({ sdkVersion: "9.7.2964-rc" });
13999
+ let e = yield Rs({ sdkVersion: "9.7.2965-rc" });
14000
14000
  yield a.createBackendTransaction(e, a.imageProcessParam);
14001
14001
  }
14002
14002
  let e = yield a.processImage(t, o);
@@ -16562,8 +16562,9 @@ function LE(e) {
16562
16562
  //#endregion
16563
16563
  //#region src/components/document-reader/helpers.ts
16564
16564
  var RE = (e) => {
16565
- var t, n;
16566
- return !!((t = window.RegulaDocumentSDK.recognizerProcessParam.delegateProcessing) != null && t.serviceURL) && !!((n = window.RegulaDocumentSDK.recognizerProcessParam) != null && (n = n.delegateProcessing) != null && n.delegateURL) && !(navigator.maxTouchPoints > 0) && (!ds.isMobile || e);
16565
+ var t;
16566
+ let n = ((t = window.RegulaDocumentSDK.recognizerProcessParam) == null ? void 0 : t.delegateProcessing) || {}, r = n.serviceURL, i = n.delegateURL;
16567
+ return !!r && !!i && (navigator.maxTouchPoints <= 0 && !ds.isMobile || e);
16567
16568
  }, zE = (e, t, n, r) => e ? t ? n ? "fromCameraGalleryMobile" : "fromMobileDesktop" : n ? "fromGalleryMobile" : "" : t ? n ? r ? "fromCameraFilesMobileDesktop" : "fromCameraFilesDesktop" : r ? "fromCameraMobileDesktop" : "fromCameraDesktop" : n ? r ? "fromFilesMobileDesktop" : "fromFilesDesktop" : r ? "fromMobileDesktop" : "", BE = (e, t, n, r) => e ? K.CHOOSE_INPUT_SOURCE : t ? K.CAMERA_PROCESSING : !t && r && !n ? K.REMOTE_SCANNER : K.CONFIGURATION_ERROR, VE = (e, t, n, r, i, a) => e ? (n ? n && (i || t) : !0) && (r ? r && (a || t) : !0) : i || t;
16568
16569
  eo(), ns();
16569
16570
  function HE(e, t) {
@@ -20529,7 +20530,7 @@ function uA(e, t) {
20529
20530
  }
20530
20531
  var dA = Js.create("wasm"), fA = Js.create("main"), pA = class {
20531
20532
  constructor() {
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.7.2964-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.7/barcodemrz/1427f1bc-cbdefdf35"), cA(this, "pageIdx", null);
20533
+ 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.7.2965-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.7/barcodemrz/59d623f3-e437ce566"), cA(this, "pageIdx", null);
20533
20534
  }
20534
20535
  get processingListener() {
20535
20536
  return this._processingListener;
@@ -20582,7 +20583,7 @@ var dA = Js.create("wasm"), fA = Js.create("main"), pA = class {
20582
20583
  var n;
20583
20584
  fA("Preparing the service");
20584
20585
  {
20585
- let n = t.workerPath === "https://wasm-development.regulaforensics.com/document/rc/9.7/barcodemrz/1427f1bc-cbdefdf35", r = aA(e && n ? ux(e, "PROD") : t.workerPath), i = yield (yield fetch(`${r}/${Ti}`)).text();
20586
+ let n = t.workerPath === "https://wasm-development.regulaforensics.com/document/rc/9.7/barcodemrz/59d623f3-e437ce566", r = aA(e && n ? ux(e, "PROD") : t.workerPath), i = yield (yield fetch(`${r}/${Ti}`)).text();
20586
20587
  n || (i = lx(i, r));
20587
20588
  let a = new Blob([i], { type: "text/plain" }), o = URL.createObjectURL(a);
20588
20589
  t._worker = new Worker(o), URL.revokeObjectURL(o);
@@ -20621,7 +20622,7 @@ var dA = Js.create("wasm"), fA = Js.create("main"), pA = class {
20621
20622
  hostName: (n = document.location) == null ? void 0 : n.origin,
20622
20623
  license: e == null ? void 0 : e.license
20623
20624
  },
20624
- telemetry: yield Rs({ sdkVersion: "9.7.2964-rc" }),
20625
+ telemetry: yield Rs({ sdkVersion: "9.7.2965-rc" }),
20625
20626
  processParam: t.recognizerProcessParam.processParam || t.imageProcessParam.processParam
20626
20627
  }
20627
20628
  }), 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.7.2964-rc",
3
+ "version": "9.7.2965-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",