@regulaforensics/idv-capture-web 0.1.88-nightly → 0.1.89-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 { B as Eo, r as Nn, j as qN } from "./index-ByAq3yWj.js";
1
+ import { B as Eo, r as Nn, j as qN } from "./index-DSzR5G3v.js";
2
2
  var Mz = Object.defineProperty, tz = Object.defineProperties, iz = Object.getOwnPropertyDescriptors, $N = Object.getOwnPropertySymbols, nz = Object.prototype.hasOwnProperty, rz = Object.prototype.propertyIsEnumerable, es = (e, M, t) => M in e ? Mz(e, M, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[M] = t, Sy = (e, M) => {
3
3
  for (var t in M || (M = {}))
4
4
  nz.call(M, t) && es(e, t, M[t]);
@@ -1,4 +1,4 @@
1
- import { B as ac, r as xo, j as ZE } from "./index-ByAq3yWj.js";
1
+ import { B as ac, r as xo, j as ZE } from "./index-DSzR5G3v.js";
2
2
  var XA = Object.defineProperty, QA = Object.defineProperties, $A = Object.getOwnPropertyDescriptors, zE = Object.getOwnPropertySymbols, JA = Object.prototype.hasOwnProperty, eO = Object.prototype.propertyIsEnumerable, WE = (e, t, n) => t in e ? XA(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
  JA.call(t, n) && WE(e, n, t[n]);
@@ -14571,7 +14571,7 @@ var $W = Nl, JW = ME, eY = QW, tY = ME, nY = wE, rY = {
14571
14571
  ungzip: tY,
14572
14572
  constants: nY
14573
14573
  };
14574
- const { Inflate: NSe, inflate: iY, inflateRaw: vSe, ungzip: LSe } = rY;
14574
+ const { Inflate: TSe, inflate: iY, inflateRaw: NSe, ungzip: vSe } = rY;
14575
14575
  var aY = iY;
14576
14576
  function N(e, t) {
14577
14577
  return Object.keys(t).forEach(function(n) {
@@ -19875,7 +19875,7 @@ function hSe() {
19875
19875
  yield Promise.all([r, i, a]);
19876
19876
  });
19877
19877
  }
19878
- var SSe = void 0, GA = /* @__PURE__ */ ((e) => (e.DOC_READER = "DOC_READER", e))(GA || {}), kE = /* @__PURE__ */ ((e) => (e[e.NO_INITIALIZED = 0] = "NO_INITIALIZED", e[e.UNKNOWN_STEP = 1] = "UNKNOWN_STEP", e[e.SCAN_ERROR = 2] = "SCAN_ERROR", e[e.RFID_ERROR = 3] = "RFID_ERROR", e))(kE || {}), UE = /* @__PURE__ */ ((e) => (e[e.CONFIGURATION_FAILED = 0] = "CONFIGURATION_FAILED", e[e.INTERNAL_ERROR = 1] = "INTERNAL_ERROR", e[e.PRESENTER_UNAVAILABLE = 2] = "PRESENTER_UNAVAILABLE", e))(UE || {}), Wf = "DOCUMENT";
19878
+ var GA = /* @__PURE__ */ ((e) => (e.DOC_READER = "DOC_READER", e))(GA || {}), kE = /* @__PURE__ */ ((e) => (e[e.NO_INITIALIZED = 0] = "NO_INITIALIZED", e[e.UNKNOWN_STEP = 1] = "UNKNOWN_STEP", e[e.SCAN_ERROR = 2] = "SCAN_ERROR", e[e.RFID_ERROR = 3] = "RFID_ERROR", e))(kE || {}), UE = /* @__PURE__ */ ((e) => (e[e.CONFIGURATION_FAILED = 0] = "CONFIGURATION_FAILED", e[e.INTERNAL_ERROR = 1] = "INTERNAL_ERROR", e[e.PRESENTER_UNAVAILABLE = 2] = "PRESENTER_UNAVAILABLE", e))(UE || {}), Wf = "DOCUMENT";
19879
19879
  function Eo(e) {
19880
19880
  "@babel/helpers - typeof";
19881
19881
  return Eo = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(t) {
@@ -19891,14 +19891,14 @@ function zA(e, t) {
19891
19891
  if (!(e instanceof t)) throw new TypeError("Cannot call a class as a function");
19892
19892
  }
19893
19893
  function WA(e, t, n) {
19894
- return t = Xc(t), mSe(e, YA() ? Reflect.construct(t, n || [], Xc(e).constructor) : t.apply(e, n));
19894
+ return t = Xc(t), SSe(e, YA() ? Reflect.construct(t, n || [], Xc(e).constructor) : t.apply(e, n));
19895
19895
  }
19896
- function mSe(e, t) {
19896
+ function SSe(e, t) {
19897
19897
  if (t && (Eo(t) == "object" || typeof t == "function")) return t;
19898
19898
  if (t !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
19899
- return CSe(e);
19899
+ return mSe(e);
19900
19900
  }
19901
- function CSe(e) {
19901
+ function mSe(e) {
19902
19902
  if (e === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
19903
19903
  return e;
19904
19904
  }
@@ -19927,13 +19927,13 @@ function E3(e, t) {
19927
19927
  }, E3(e, t);
19928
19928
  }
19929
19929
  function yo(e, t, n) {
19930
- return (t = ISe(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
19930
+ return (t = CSe(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
19931
19931
  }
19932
- function ISe(e) {
19933
- var t = gSe(e, "string");
19932
+ function CSe(e) {
19933
+ var t = ISe(e, "string");
19934
19934
  return Eo(t) == "symbol" ? t : t + "";
19935
19935
  }
19936
- function gSe(e, t) {
19936
+ function ISe(e, t) {
19937
19937
  if (Eo(e) != "object" || !e) return e;
19938
19938
  var n = e[Symbol.toPrimitive];
19939
19939
  if (n !== void 0) {
@@ -20005,25 +20005,25 @@ function jC(e, t) {
20005
20005
  }
20006
20006
  return n;
20007
20007
  }
20008
- function RSe(e) {
20008
+ function gSe(e) {
20009
20009
  for (var t = 1; t < arguments.length; t++) {
20010
20010
  var n = arguments[t] != null ? arguments[t] : {};
20011
20011
  t % 2 ? jC(Object(n), !0).forEach(function(r) {
20012
- ASe(e, r, n[r]);
20012
+ RSe(e, r, n[r]);
20013
20013
  }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : jC(Object(n)).forEach(function(r) {
20014
20014
  Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(n, r));
20015
20015
  });
20016
20016
  }
20017
20017
  return e;
20018
20018
  }
20019
- function ASe(e, t, n) {
20020
- return (t = OSe(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
20019
+ function RSe(e, t, n) {
20020
+ return (t = ASe(t)) in e ? Object.defineProperty(e, t, { value: n, enumerable: !0, configurable: !0, writable: !0 }) : e[t] = n, e;
20021
20021
  }
20022
- function OSe(e) {
20023
- var t = DSe(e, "string");
20022
+ function ASe(e) {
20023
+ var t = OSe(e, "string");
20024
20024
  return sl(t) == "symbol" ? t : t + "";
20025
20025
  }
20026
- function DSe(e, t) {
20026
+ function OSe(e, t) {
20027
20027
  if (sl(e) != "object" || !e) return e;
20028
20028
  var n = e[Symbol.toPrimitive];
20029
20029
  if (n !== void 0) {
@@ -20078,7 +20078,7 @@ var FE = !1, bo = function(t) {
20078
20078
  return m ? (m.internalScenario && (m.scenario = m.internalScenario), delete m.internalScenario, m) : {};
20079
20079
  }
20080
20080
  var E = {
20081
- processParam: RSe({}, d(a))
20081
+ processParam: gSe({}, d(a))
20082
20082
  };
20083
20083
  l && (E.tag = l), window.RegulaDocumentSDK.recognizerProcessParam = E, window.RegulaDocumentSDK.imageProcessParam = {
20084
20084
  processParam: {
@@ -20119,9 +20119,10 @@ bo.deinitialize = function() {
20119
20119
  (e = window.RegulaDocumentSDK) === null || e === void 0 || e.shutdown(), FE = !1;
20120
20120
  };
20121
20121
  bo.initialize = function(e) {
20122
+ var t, n = e == null || (t = e.docreader) === null || t === void 0 ? void 0 : t.devLicense;
20122
20123
  window.RegulaDocumentSDK = new ESe(), console.info("%cDocument Reader web component version: %s", "color: #6e56b0;", window.RegulaDocumentSDK.version.component), hSe().then(function() {
20123
20124
  window.RegulaDocumentSDK.initialize({
20124
- license: SSe
20125
+ license: n
20125
20126
  }), FE = !0;
20126
20127
  });
20127
20128
  };
@@ -10608,34 +10608,34 @@ var WW = function(r, t) {
10608
10608
  },
10609
10609
  preparareWorkflowAndPrepareUi: function(i) {
10610
10610
  return Gt(/* @__PURE__ */ Ue().mark(function o() {
10611
- var a, l, u, s, y, v, d, g, m, S, k, E, C;
10612
- return Ue().wrap(function(I) {
10613
- for (; ; ) switch (I.prev = I.next) {
10611
+ var a, l, u, s, y, v, d, g, m, S, k, E, C, b;
10612
+ return Ue().wrap(function(P) {
10613
+ for (; ; ) switch (P.prev = P.next) {
10614
10614
  case 0:
10615
10615
  if (t().isInitialized) {
10616
- I.next = 3;
10616
+ P.next = 3;
10617
10617
  break;
10618
10618
  }
10619
10619
  return a = new qt({
10620
10620
  errorCode: Nn.INITIALIZATION_REQUIRED
10621
- }), I.abrupt("return", {
10621
+ }), P.abrupt("return", {
10622
10622
  error: a
10623
10623
  });
10624
10624
  case 3:
10625
10625
  if (!t().currentScreenConfig) {
10626
- I.next = 6;
10626
+ P.next = 6;
10627
10627
  break;
10628
10628
  }
10629
10629
  return l = new qt({
10630
10630
  errorCode: Nn.SCENARIO_IN_PROGRESS
10631
- }), I.abrupt("return", {
10631
+ }), P.abrupt("return", {
10632
10632
  error: l
10633
10633
  });
10634
10634
  case 6:
10635
- return I.next = 8, t().wasmService.getWorkflow(i);
10635
+ return P.next = 8, t().wasmService.getWorkflow(i);
10636
10636
  case 8:
10637
- if (u = I.sent, s = $2(u.data), y = null, u.code === 4 && (y = xt.HTTP_ISSUE), u.code !== 0 && u.code !== 4 && (y = xt.PROVIDER_ERROR), u.code === 0 && !u.data.id && (y = xt.DECODING_FAILED), u.data.id && s === null && (y = xt.DECODING_FAILED), y === null) {
10638
- I.next = 19;
10637
+ if (u = P.sent, s = $2(u.data), y = null, u.code === 4 && (y = xt.HTTP_ISSUE), u.code !== 0 && u.code !== 4 && (y = xt.PROVIDER_ERROR), u.code === 0 && !u.data.id && (y = xt.DECODING_FAILED), u.data.id && s === null && (y = xt.DECODING_FAILED), y === null) {
10638
+ P.next = 19;
10639
10639
  break;
10640
10640
  }
10641
10641
  return v = new Za({
@@ -10643,20 +10643,20 @@ var WW = function(r, t) {
10643
10643
  }), d = new qt({
10644
10644
  errorCode: Nn.INTERNAL_ISSUE,
10645
10645
  underlyingBaseError: v
10646
- }), I.abrupt("return", {
10646
+ }), P.abrupt("return", {
10647
10647
  error: d
10648
10648
  });
10649
10649
  case 19:
10650
- return g = t().externalModules, m = s.steps, S = wW(g, m), k = S.isAllTemplatesSupported, E = S.unsupportedSteps, k || console.log("IDV:: Warning. Unsupported steps found: ", E), C = t().workflowId, C && i !== C && g.forEach(function(P) {
10651
- P.component.deinitialize();
10652
- }), g.forEach(function(P) {
10653
- P.component.isReady() || P.component.initialize();
10654
- }), t().setWorkflowId(i), t().setWorkflow(s), t().setLayout(s.client.layout), t().setProcessingTemplate(s.client.steps), I.abrupt("return", {
10650
+ return g = t().externalModules, m = s.steps, S = wW(g, m), k = S.isAllTemplatesSupported, E = S.unsupportedSteps, k || console.log("IDV:: Warning. Unsupported steps found: ", E), C = t().workflowId, C && i !== C && g.forEach(function(T) {
10651
+ T.component.deinitialize();
10652
+ }), b = t().modulesConfig, g.forEach(function(T) {
10653
+ T.component.isReady() || T.component.initialize(b);
10654
+ }), t().setWorkflowId(i), t().setWorkflow(s), t().setLayout(s.client.layout), t().setProcessingTemplate(s.client.steps), P.abrupt("return", {
10655
10655
  workflow: s
10656
10656
  });
10657
- case 31:
10657
+ case 32:
10658
10658
  case "end":
10659
- return I.stop();
10659
+ return P.stop();
10660
10660
  }
10661
10661
  }, o);
10662
10662
  }))();
@@ -13447,7 +13447,7 @@ var Gr = M2.create("wasm_idv"), VG = /* @__PURE__ */ function() {
13447
13447
  return ie().wrap(function(s) {
13448
13448
  for (; ; ) switch (s.prev = s.next) {
13449
13449
  case 0:
13450
- return s.prev = 1, s.next = 4, fetch("https://wasm-development.regulaforensics.com/idv/nightly/0.1/7e1faf0-48abae2fe//PlatformAdaptor.worker.js");
13450
+ return s.prev = 1, s.next = 4, fetch("https://wasm-development.regulaforensics.com/idv/nightly/0.1/98d1c95-7afea4eed//PlatformAdaptor.worker.js");
13451
13451
  case 4:
13452
13452
  return i = s.sent, s.next = 7, i.blob();
13453
13453
  case 7:
@@ -13474,7 +13474,7 @@ var Gr = M2.create("wasm_idv"), VG = /* @__PURE__ */ function() {
13474
13474
  }), s.next = 23, this.sendMessage({
13475
13475
  target: "worker-init",
13476
13476
  URL: document.URL,
13477
- currentScriptUrl: "https://wasm-development.regulaforensics.com/idv/nightly/0.1/7e1faf0-48abae2fe/",
13477
+ currentScriptUrl: "https://wasm-development.regulaforensics.com/idv/nightly/0.1/98d1c95-7afea4eed/",
13478
13478
  preMain: !0
13479
13479
  });
13480
13480
  case 23:
@@ -13505,6 +13505,8 @@ var Gr = M2.create("wasm_idv"), VG = /* @__PURE__ */ function() {
13505
13505
  deviceDescriptor: {
13506
13506
  deviceId: this._userId,
13507
13507
  deviceType: gv,
13508
+ serial: "1111111222211",
13509
+ macAddress: "00:00:00:00:00:00",
13508
13510
  heartbeatCadence: 2
13509
13511
  },
13510
13512
  host: i.host,
@@ -14793,9 +14795,9 @@ function k4() {
14793
14795
  supportedTemplates: pt.getSupportedTemplates(),
14794
14796
  component: pt
14795
14797
  }], n = I4(I4({}, "LIVENESS", function() {
14796
- return import("./index-DJxylN9j.js");
14798
+ return import("./index-B57wZKuC.js");
14797
14799
  }), "DOC_READER", function() {
14798
- return import("./index-C481QERt.js");
14800
+ return import("./index-C88VrC2j.js");
14799
14801
  }), i = /* @__PURE__ */ se().mark(function y() {
14800
14802
  var v, d, g;
14801
14803
  return se().wrap(function(S) {
package/dist/index.d.ts CHANGED
@@ -195,7 +195,12 @@ export declare class IdvWebComponent extends HTMLElement {
195
195
  }
196
196
 
197
197
  declare type InitConfig = {
198
- modulesConfig?: Record<string, any>;
198
+ modulesConfig?: {
199
+ docreader?: {
200
+ devLicense: string;
201
+ };
202
+ face?: Record<string, any>;
203
+ };
199
204
  includedModules: any[];
200
205
  };
201
206