@regulaforensics/idv-capture-web 0.1.81-nightly → 0.1.83-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.
@@ -1,4 +1,4 @@
1
- import { r as wo, j as wE } from "./index-Bsnef4XQ.js";
1
+ import { r as wo, j as wE } from "./index-DNK5sfmh.js";
2
2
  var bA = Object.defineProperty, wA = Object.defineProperties, MA = Object.getOwnPropertyDescriptors, ME = Object.getOwnPropertySymbols, PA = Object.prototype.hasOwnProperty, xA = Object.prototype.propertyIsEnumerable, PE = (e, t, n) => t in e ? bA(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, q = (e, t) => {
3
3
  for (var n in t || (t = {}))
4
4
  PA.call(t, n) && PE(e, n, t[n]);
@@ -19921,7 +19921,7 @@ function tSe(e, t) {
19921
19921
  return (t === "string" ? String : Number)(e);
19922
19922
  }
19923
19923
  console.log("::: Idv Document Module is loaded");
19924
- var nSe = "", sSe = function(t) {
19924
+ var nSe = void 0, sSe = function(t) {
19925
19925
  var n = t.perform, r = t.moduleProps, i = t.isProcessing, a = r.processParam, s = r.functionality, u = r.tag, c = wo.useRef(null), f = wo.useRef(null), _ = {
19926
19926
  // '--main-color': 'var(--base-main-color)',
19927
19927
  "--font-family": "var(--base-font-family)"
@@ -19930,28 +19930,19 @@ var nSe = "", sSe = function(t) {
19930
19930
  if (E.detail.action === ne.PROCESS_FINISHED) {
19931
19931
  var C, O, I = (C = E.detail.data) === null || C === void 0 ? void 0 : C.status, A = I === 1, g = I === 2;
19932
19932
  if (!(A || g) || !((O = E.detail.data) !== null && O !== void 0 && O.response)) return;
19933
- if (i && i(!0), s != null && s.recordScanningProcess)
19934
- window.RegulaDocumentSDK.finalizePackage().then(function(b) {
19935
- n({
19936
- transactionId: (b == null ? void 0 : b.transactionId) || "",
19937
- has_nfc: !1,
19938
- cancel: !1
19939
- });
19940
- }).catch(function(b) {
19941
- console.log("finalizePackage error: ", b), n({
19942
- transactionId: "",
19943
- cancel: !0,
19944
- has_nfc: !1
19945
- });
19946
- });
19947
- else {
19948
- var T;
19933
+ i && i(!0), window.RegulaDocumentSDK.finalizePackage().then(function(T) {
19949
19934
  n({
19950
- transactionId: (T = E.detail.data) === null || T === void 0 || (T = T.response.TransactionInfo) === null || T === void 0 ? void 0 : T.transactionId,
19935
+ transactionId: (T == null ? void 0 : T.transactionId) || "",
19951
19936
  has_nfc: !1,
19952
19937
  cancel: !1
19953
19938
  });
19954
- }
19939
+ }).catch(function(T) {
19940
+ console.log("finalizePackage error: ", T), n({
19941
+ transactionId: "",
19942
+ cancel: !0,
19943
+ has_nfc: !1
19944
+ });
19945
+ });
19955
19946
  }
19956
19947
  (((m = E.detail) === null || m === void 0 ? void 0 : m.action) === ne.CLOSE || E.detail.action === ne.CAMERA_PROCESS_CLOSED) && n({
19957
19948
  transactionId: "",